Add manual cloud backup controls and manager modal

This commit is contained in:
Hao19911125
2026-04-10 17:26:57 +08:00
parent a6b3137511
commit 09b6e1e566
11 changed files with 3016 additions and 925 deletions

View File

@@ -436,6 +436,49 @@ async function testGraphSnapshotConverters() {
processedRange: [8, 9],
},
];
graph.maintenanceJournal = [
{
id: "maintenance-1",
action: "compress",
updatedAt: 123,
},
];
graph.knowledgeState = {
activeOwnerKey: "owner:hero",
owners: {
"owner:hero": {
ownerKey: "owner:hero",
displayName: "Hero",
},
},
};
graph.regionState = {
activeRegion: "camp",
knownRegions: {
camp: {
regionId: "camp",
displayName: "Camp",
},
},
};
graph.timelineState = {
activeSegmentId: "segment-1",
segments: [
{
id: "segment-1",
label: "Night 1",
},
],
};
graph.summaryState = {
updatedAt: 456,
entries: [
{
id: "summary-1",
text: "Summary text",
},
],
};
graph.nodes.push({
id: "node-converter",
type: "event",
@@ -461,6 +504,11 @@ async function testGraphSnapshotConverters() {
assert.equal(rebuilt.nodes.length, 1);
assert.equal(rebuilt.nodes[0].id, "node-converter");
assert.equal(rebuilt.vectorIndexState.hashToNodeId["vec-hash"], "node-converter");
assert.equal(rebuilt.maintenanceJournal[0].id, "maintenance-1");
assert.equal(rebuilt.knowledgeState.activeOwnerKey, "owner:hero");
assert.equal(rebuilt.regionState.activeRegion, "camp");
assert.equal(rebuilt.timelineState.activeSegmentId, "segment-1");
assert.equal(rebuilt.summaryState.entries[0].id, "summary-1");
}
async function main() {