arco-workbench 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +1 -1
- package/README.md +5 -1
- package/client/dist/assets/{PhosphorBackdrop-CkVIGkeX.js → PhosphorBackdrop-CNumba2X.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-DHF7CnpE.js → ThemedBackgroundShaderImpl-DX5KyCt3.js} +1 -1
- package/client/dist/assets/{XtermView-SY0UcZUS.js → XtermView-DhS5g8Rt.js} +1 -1
- package/client/dist/assets/{galleryEditor-Ca4F8HiM.js → galleryEditor-fPb76Cjv.js} +1 -1
- package/client/dist/assets/index-CjkHb-_n.js +592 -0
- package/client/dist/assets/index-DIbh3ae5.css +1 -0
- package/client/dist/index.html +2 -2
- package/client/src/App.tsx +2 -0
- package/client/src/alerts/desktopAlerts.ts +13 -1
- package/client/src/brief/briefFacts.ts +22 -0
- package/client/src/brief/briefFromStore.ts +7 -2
- package/client/src/components/ArtifactMoveDialog.tsx +64 -0
- package/client/src/components/BriefControl.tsx +38 -47
- package/client/src/components/CatchMeUp.tsx +25 -25
- package/client/src/components/CheckpointActions.tsx +7 -4
- package/client/src/components/ClusterComposerButtons.tsx +6 -3
- package/client/src/components/ClusterPlanTab.tsx +15 -1
- package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +6 -2
- package/client/src/components/ClusterTab.tsx +33 -3
- package/client/src/components/ClusterTaskBoardTab.tsx +62 -8
- package/client/src/components/DialogShell.tsx +115 -0
- package/client/src/components/DocsUpdateDialog.tsx +16 -42
- package/client/src/components/ForwardMessages.tsx +28 -32
- package/client/src/components/GitDialog.tsx +52 -52
- package/client/src/components/GitOtherWork.tsx +4 -2
- package/client/src/components/HandoffDialog.tsx +19 -45
- package/client/src/components/Home/HomeView.tsx +36 -8
- package/client/src/components/Home/home.css +7 -0
- package/client/src/components/KeepButton.tsx +23 -0
- package/client/src/components/MdTuneupDialog.tsx +52 -51
- package/client/src/components/MemberCard.tsx +4 -1
- package/client/src/components/MemberPane.tsx +1 -1
- package/client/src/components/NotificationCenter.tsx +4 -3
- package/client/src/components/NotificationChannelsSettings.tsx +25 -7
- package/client/src/components/PlanCandidateBanner.tsx +111 -57
- package/client/src/components/PlanComposerDialog.tsx +55 -87
- package/client/src/components/ProjectStateNotice.tsx +60 -0
- package/client/src/components/PublicProjectBox.tsx +25 -0
- package/client/src/components/ResearchDialog.tsx +15 -24
- package/client/src/components/ReviewDialog.tsx +32 -57
- package/client/src/components/RightPanel/OutputsPanel.tsx +4 -0
- package/client/src/components/RightPanel/PlanTab.tsx +24 -2
- package/client/src/components/RightPanel/UsageTab.tsx +77 -1
- package/client/src/components/SkillEditorDialog.tsx +38 -73
- package/client/src/components/SpawnDialog.tsx +19 -41
- package/client/src/components/StorageWarnings.tsx +21 -0
- package/client/src/components/SystemHeader.tsx +2 -2
- package/client/src/components/TerminalInput.tsx +6 -2
- package/client/src/components/TidyComposer.tsx +24 -41
- package/client/src/components/TranscriptSendDialog.tsx +151 -202
- package/client/src/components/UtilityAgentPicker.tsx +4 -2
- package/client/src/components/WorkflowCreator/index.tsx +2 -0
- package/client/src/components/WorkflowView.tsx +4 -1
- package/client/src/components/clusterNeedsYou.ts +35 -3
- package/client/src/components/compare/CompareDialog.tsx +26 -2
- package/client/src/components/terminalInput/planDraft.ts +33 -4
- package/client/src/components/utilityResult.ts +5 -1
- package/client/src/explorer/ExplorerApp.tsx +5 -2
- package/client/src/explorer/PlansLens.tsx +60 -19
- package/client/src/explorer/StorageLens.tsx +275 -0
- package/client/src/explorer/launch.ts +3 -3
- package/client/src/explorer/plansGrouping.ts +15 -0
- package/client/src/help/content/cluster.tsx +42 -7
- package/client/src/help/content/composer.tsx +26 -6
- package/client/src/help/content/header.tsx +16 -14
- package/client/src/help/content/misc.tsx +141 -6
- package/client/src/help/content/rightPanel.tsx +16 -0
- package/client/src/help/content/settings.tsx +4 -4
- package/client/src/help/manualSections/actions.tsx +19 -4
- package/client/src/help/manualSections/clusters.tsx +29 -16
- package/client/src/help/manualSections/configuration.tsx +6 -4
- package/client/src/help/manualSections/maintenance.tsx +27 -5
- package/client/src/help/manualSections/plans.tsx +96 -2
- package/client/src/help/manualSections/powerFeatures.tsx +2 -2
- package/client/src/help/manualSections/reference.tsx +6 -0
- package/client/src/help/manualSections/workspace.tsx +9 -5
- package/client/src/stores/appStore.ts +10 -1
- package/client/src/stores/appStore.types.ts +2 -0
- package/client/src/stores/mdTuneupStore.ts +5 -4
- package/client/src/stores/memoryTrim.ts +18 -2
- package/client/src/stores/storageWarningStore.ts +18 -0
- package/client/src/utils/gitDialogMemory.ts +26 -0
- package/client/src/utils/historyEvents.ts +1 -0
- package/client/src/utils/homeModel.ts +19 -0
- package/client/src/utils/publicProject.ts +56 -0
- package/client/src/ws/handleServerMessage.ts +7 -2
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/CHECKPOINTS.md +2 -0
- package/docs/CLIENT.md +29 -11
- package/docs/FEATURES.md +14 -11
- package/docs/GETTING_STARTED.md +7 -7
- package/docs/GLOSSARY.md +3 -3
- package/docs/GOTCHAS.md +3 -2
- package/docs/HTTP_API.md +31 -1
- package/docs/NOTIFICATIONS.md +13 -14
- package/docs/OPERATIONS.md +27 -1
- package/docs/OPERATOR_ACTIONS.md +1 -1
- package/docs/OUTPUTS.md +9 -0
- package/docs/PERSISTENCE.md +34 -4
- package/docs/PLAN_OR_BOARD.md +7 -0
- package/docs/PRIMITIVES.md +3 -3
- package/docs/PROTOCOL.md +14 -4
- package/docs/PROTOCOL_CLUSTER.md +3 -2
- package/docs/SERVICE_MODE.md +5 -1
- package/docs/SETTINGS.md +8 -6
- package/docs/STORAGE_PLAN.md +324 -0
- package/docs/TASK_LEDGER.md +5 -4
- package/native/linux-arm64/manifest.json +1 -1
- package/node_modules/@arco/shared/dist/index.d.ts +2 -0
- package/node_modules/@arco/shared/dist/index.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +1 -1
- package/node_modules/@arco/shared/dist/protocol/autoPickup.js +1 -1
- package/node_modules/@arco/shared/dist/protocol/checkpoints.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +2 -1
- package/node_modules/@arco/shared/dist/protocol/index.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/index.js +1 -0
- package/node_modules/@arco/shared/dist/protocol/mdTuneup.d.ts +6 -0
- package/node_modules/@arco/shared/dist/protocol/notifications.d.ts +2 -1
- package/node_modules/@arco/shared/dist/protocol/notifications.js +3 -2
- package/node_modules/@arco/shared/dist/protocol/plans.d.ts +2 -0
- package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +2 -1
- package/node_modules/@arco/shared/dist/protocol/storage.d.ts +21 -0
- package/node_modules/@arco/shared/dist/protocol/storage.js +3 -0
- package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +3 -0
- package/node_modules/@arco/shared/dist/protocol/utilityAgent.d.ts +2 -2
- package/node_modules/@arco/shared/dist/protocol/utilityAgent.js +2 -2
- package/node_modules/@arco/shared/dist/publicGuardrails.d.ts +7 -0
- package/node_modules/@arco/shared/dist/publicGuardrails.js +47 -0
- package/node_modules/@arco/shared/dist/publicSafetyRules.d.ts +1 -0
- package/node_modules/@arco/shared/dist/publicSafetyRules.js +6 -0
- package/node_modules/@arco/shared/package.json +1 -1
- package/package.json +3 -2
- package/scripts/packaging/arco.mjs +17 -1
- package/scripts/packaging/services.mjs +35 -5
- package/scripts/packaging/storage.mjs +125 -0
- package/scripts/packaging/update.mjs +3 -3
- package/server/dist/artifactCopy.d.ts +26 -0
- package/server/dist/artifactCopy.js +398 -0
- package/server/dist/atomicFile.d.ts +1 -0
- package/server/dist/atomicFile.js +1 -1
- package/server/dist/attention.d.ts +1 -1
- package/server/dist/attention.js +10 -13
- package/server/dist/catchUp.d.ts +2 -0
- package/server/dist/catchUp.js +46 -23
- package/server/dist/clusterPeerOps.d.ts +2 -0
- package/server/dist/clusterPeerOps.js +2 -0
- package/server/dist/clusterSnapshots.js +22 -12
- package/server/dist/eventLog.d.ts +55 -0
- package/server/dist/eventLog.js +792 -0
- package/server/dist/explorerLaunch.d.ts +4 -1
- package/server/dist/explorerLaunch.js +3 -2
- package/server/dist/explorerPlans.d.ts +4 -0
- package/server/dist/explorerPlans.js +27 -2
- package/server/dist/http/clusterRoutes.js +2 -0
- package/server/dist/http/explorerRoutes.js +2 -1
- package/server/dist/http/publicProjectRoutes.d.ts +2 -0
- package/server/dist/http/publicProjectRoutes.js +68 -0
- package/server/dist/http/router.js +6 -0
- package/server/dist/http/storageRoutes.d.ts +2 -0
- package/server/dist/http/storageRoutes.js +254 -0
- package/server/dist/http/usageStatsRoutes.js +3 -12
- package/server/dist/index.js +4 -0
- package/server/dist/keepStore.d.ts +16 -0
- package/server/dist/keepStore.js +119 -0
- package/server/dist/management/clusterActivity.js +6 -20
- package/server/dist/management/initHubLink.js +10 -43
- package/server/dist/mcp/clusterMcpTools.js +8 -1
- package/server/dist/notifications.d.ts +3 -1
- package/server/dist/notifications.js +5 -4
- package/server/dist/outputStore.d.ts +1 -0
- package/server/dist/outputStore.js +1 -1
- package/server/dist/outputs.js +39 -8
- package/server/dist/planHistory.d.ts +3 -0
- package/server/dist/planHistory.js +60 -0
- package/server/dist/primitives/runMdTuneup.d.ts +5 -1
- package/server/dist/primitives/runMdTuneup.js +43 -2
- package/server/dist/project/taskLedger.d.ts +4 -0
- package/server/dist/project/taskLedger.js +19 -0
- package/server/dist/providers/claude-native/peerTools.js +4 -0
- package/server/dist/providers/claude-native/resumeSummary.js +30 -19
- package/server/dist/providers/index.js +8 -13
- package/server/dist/providers/localProviderQueue.d.ts +2 -0
- package/server/dist/providers/localProviderQueue.js +11 -0
- package/server/dist/publicProject.d.ts +54 -0
- package/server/dist/publicProject.js +135 -0
- package/server/dist/recall/index.js +22 -23
- package/server/dist/server/broadcast.d.ts +2 -1
- package/server/dist/server/broadcast.js +56 -1
- package/server/dist/smartPickupAdapters.d.ts +7 -0
- package/server/dist/smartPickupAdapters.js +172 -8
- package/server/dist/storageActions.d.ts +50 -0
- package/server/dist/storageActions.js +326 -0
- package/server/dist/storageArchive.d.ts +24 -0
- package/server/dist/storageArchive.js +358 -0
- package/server/dist/storageOverview.d.ts +47 -0
- package/server/dist/storageOverview.js +197 -0
- package/server/dist/storageReport.d.ts +48 -0
- package/server/dist/storageReport.js +185 -0
- package/server/dist/storageWarnings.d.ts +4 -0
- package/server/dist/storageWarnings.js +96 -0
- package/server/dist/workers/limits.js +4 -1
- package/server/dist/workflowStore.d.ts +2 -0
- package/server/dist/workflowStore.js +88 -72
- package/server/dist/workflows/purgeWorkflow.d.ts +1 -0
- package/server/dist/workflows/purgeWorkflow.js +15 -2
- package/server/dist/workflows/sessionDiscovery.js +5 -17
- package/server/dist/workflows/sessionIndex.js +22 -17
- package/server/dist/ws/taskLedgerHandlers.js +8 -3
- package/server/dist/ws/workflowHandlers.js +5 -4
- package/server/package.json +1 -1
- package/server/src/artifactCopy.ts +254 -0
- package/server/src/atomicFile.ts +1 -1
- package/server/src/attention.ts +9 -10
- package/server/src/catchUp.ts +37 -15
- package/server/src/clusterPeerOps.ts +5 -0
- package/server/src/clusterSnapshots.ts +20 -13
- package/server/src/eventLog.ts +571 -0
- package/server/src/explorerLaunch.ts +3 -2
- package/server/src/explorerPlans.ts +22 -2
- package/server/src/http/clusterRoutes.ts +4 -1
- package/server/src/http/explorerRoutes.ts +2 -1
- package/server/src/http/publicProjectRoutes.ts +54 -0
- package/server/src/http/router.ts +4 -0
- package/server/src/http/storageRoutes.ts +187 -0
- package/server/src/http/usageStatsRoutes.ts +3 -11
- package/server/src/index.ts +4 -0
- package/server/src/keepStore.ts +102 -0
- package/server/src/management/clusterActivity.ts +6 -16
- package/server/src/management/initHubLink.ts +10 -39
- package/server/src/mcp/clusterMcpTools.ts +8 -2
- package/server/src/notifications.ts +4 -3
- package/server/src/outputStore.ts +5 -2
- package/server/src/outputs.ts +30 -6
- package/server/src/planHistory.ts +48 -0
- package/server/src/primitives/runMdTuneup.ts +32 -2
- package/server/src/project/taskLedger.ts +20 -0
- package/server/src/providers/claude-native/peerTools.ts +4 -0
- package/server/src/providers/claude-native/resumeSummary.ts +32 -18
- package/server/src/providers/index.ts +2 -16
- package/server/src/providers/localProviderQueue.ts +13 -0
- package/server/src/publicProject.ts +142 -0
- package/server/src/recall/index.ts +4 -9
- package/server/src/server/broadcast.ts +53 -1
- package/server/src/smartPickupAdapters.ts +128 -5
- package/server/src/storageActions.ts +216 -0
- package/server/src/storageArchive.ts +277 -0
- package/server/src/storageOverview.ts +184 -0
- package/server/src/storageReport.ts +210 -0
- package/server/src/storageWarnings.ts +84 -0
- package/server/src/workers/limits.ts +4 -1
- package/server/src/workflowStore.ts +78 -61
- package/server/src/workflows/purgeWorkflow.ts +12 -3
- package/server/src/workflows/sessionDiscovery.ts +5 -13
- package/server/src/workflows/sessionIndex.ts +5 -9
- package/server/src/ws/taskLedgerHandlers.ts +8 -3
- package/server/src/ws/workflowHandlers.ts +5 -4
- package/shared/dist/index.d.ts +2 -0
- package/shared/dist/index.js +2 -0
- package/shared/dist/protocol/autoPickup.d.ts +1 -1
- package/shared/dist/protocol/autoPickup.js +1 -1
- package/shared/dist/protocol/checkpoints.d.ts +1 -0
- package/shared/dist/protocol/clusters.d.ts +2 -1
- package/shared/dist/protocol/index.d.ts +1 -0
- package/shared/dist/protocol/index.js +1 -0
- package/shared/dist/protocol/mdTuneup.d.ts +6 -0
- package/shared/dist/protocol/notifications.d.ts +2 -1
- package/shared/dist/protocol/notifications.js +3 -2
- package/shared/dist/protocol/plans.d.ts +2 -0
- package/shared/dist/protocol/serverMessages.d.ts +2 -1
- package/shared/dist/protocol/storage.d.ts +21 -0
- package/shared/dist/protocol/storage.js +3 -0
- package/shared/dist/protocol/tasks.d.ts +3 -0
- package/shared/dist/protocol/utilityAgent.d.ts +2 -2
- package/shared/dist/protocol/utilityAgent.js +2 -2
- package/shared/dist/publicGuardrails.d.ts +7 -0
- package/shared/dist/publicGuardrails.js +47 -0
- package/shared/dist/publicSafetyRules.d.ts +1 -0
- package/shared/dist/publicSafetyRules.js +6 -0
- package/shared/src/index.ts +3 -0
- package/shared/src/protocol/autoPickup.ts +1 -1
- package/shared/src/protocol/checkpoints.ts +4 -0
- package/shared/src/protocol/clusters.ts +6 -1
- package/shared/src/protocol/index.ts +1 -0
- package/shared/src/protocol/mdTuneup.ts +5 -0
- package/shared/src/protocol/notifications.ts +6 -2
- package/shared/src/protocol/plans.ts +2 -0
- package/shared/src/protocol/serverMessages.ts +2 -0
- package/shared/src/protocol/storage.ts +35 -0
- package/shared/src/protocol/tasks.ts +6 -0
- package/shared/src/protocol/utilityAgent.ts +2 -2
- package/shared/src/publicGuardrails.ts +50 -0
- package/shared/src/publicSafetyRules.ts +5 -0
- package/client/dist/assets/index-CcNtMA2y.js +0 -546
- package/client/dist/assets/index-Dl8tYsSp.css +0 -1
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
# Storage plan
|
|
2
|
+
|
|
3
|
+
This page explains where Arco's disk space goes, what Arco will change to use less of it, and how saved history stays readable through those changes. It is for the operator reviewing the storage work and for the builders implementing it. Nothing described here deletes anything without an operator click.
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
|
|
7
|
+
- The large items are agent-made copies of projects with their build output, artifacts (mostly virtual machine disk images), browser caches and voice environments. Conversation logs are smaller but grow without limit.
|
|
8
|
+
- Half of all conversation-log bytes are repeated full copies of the task board. P7.2 stops writing them.
|
|
9
|
+
- Old log pieces compress very well. P7.3 seals them into compressed files; nothing is deleted and every reader still sees the full history.
|
|
10
|
+
- Artifacts get size warnings with a permanent approval (P7.4). Closed conversations can be archived or deleted on the operator's click (P7.5). Plans are never touched.
|
|
11
|
+
|
|
12
|
+
## Plans are permanent
|
|
13
|
+
|
|
14
|
+
Plans (`<project>/.arco/plans/<id>.md`, their `.refs/` folders and the plan history in `plans/.history/`) are stored apart from conversation folders. No sealing, archive, delete, scratch clean-up, size warning or disk-budget action in P7.2 to P7.5 touches them, and plans need no KEEP mark. Tests assert that sealing a log, and later archiving or deleting a conversation, leaves every plan and reference doc in place.
|
|
15
|
+
|
|
16
|
+
## Where the space goes
|
|
17
|
+
|
|
18
|
+
### How it was measured
|
|
19
|
+
|
|
20
|
+
The storage report (USAGE > **MEASURE STORAGE** and **MEASURE ARCO FOLDER**) walks a state folder in a background worker and puts every file into exactly one bucket. Rules:
|
|
21
|
+
|
|
22
|
+
- Sizes are logical file sizes. The allocated size on disk is reported beside them.
|
|
23
|
+
- A file with several hard links is counted once. The extra links are reported separately.
|
|
24
|
+
- A project state folder inside another state folder (chat and Genesis projects inside Arco's own folder) is skipped there and measured as its own project.
|
|
25
|
+
- Links to other places are never followed. Nothing is written.
|
|
26
|
+
|
|
27
|
+
Two sets of state folders on one machine were measured, read-only. Set A is Arco's own state. Set B is state with the same folder layout, written by an earlier version of the software over several months of heavy use. Set B shows what Arco's state grows into; Set A is still small.
|
|
28
|
+
|
|
29
|
+
### Totals
|
|
30
|
+
|
|
31
|
+
| | Set A | Set B |
|
|
32
|
+
| --- | --- | --- |
|
|
33
|
+
| Project state folders | 45 | 144 |
|
|
34
|
+
| Project state, logical | 5.4 MB | 116.5 GB |
|
|
35
|
+
| Extra hard links (not counted again) | 0 | 7.8 GB |
|
|
36
|
+
| Arco's own folder | 1.71 GB | 58.8 GB |
|
|
37
|
+
| Nested project state folders skipped in Arco's own folder | 1 | 28 |
|
|
38
|
+
|
|
39
|
+
The earlier report counted hard links twice and counted the chat projects inside Arco's own folder twice. The figures above remove both.
|
|
40
|
+
|
|
41
|
+
### Project state by bucket (Set B)
|
|
42
|
+
|
|
43
|
+
| Bucket | Bytes | Share |
|
|
44
|
+
| --- | --- | --- |
|
|
45
|
+
| Worktrees and isolated copies | 62.0 GB | 53% |
|
|
46
|
+
| Artifacts | 43.9 GB | 38% |
|
|
47
|
+
| Conversation logs | 8.0 GB | 7% |
|
|
48
|
+
| Other (an audit folder and built programs) | 1.8 GB | 2% |
|
|
49
|
+
| Scratch files | 0.48 GB | under 1% |
|
|
50
|
+
| Other conversation files | 0.33 GB | under 1% |
|
|
51
|
+
| Task boards | 0.02 GB | under 1% |
|
|
52
|
+
| Plans | under 0.01 GB | under 1% |
|
|
53
|
+
|
|
54
|
+
### The largest project (Set B)
|
|
55
|
+
|
|
56
|
+
| Bucket | Bytes |
|
|
57
|
+
| --- | --- |
|
|
58
|
+
| Worktrees and isolated copies | 61.9 GB (about 54.5 GB of it compiler output in six build folders) |
|
|
59
|
+
| Artifacts | 35.5 GB |
|
|
60
|
+
| Conversation logs | 5.2 GB |
|
|
61
|
+
| Other | 1.6 GB (an audit folder 1.5 GB, built programs 0.2 GB) |
|
|
62
|
+
| Total | 104.3 GB (110.9 GB before removing 6.5 GB of extra hard links) |
|
|
63
|
+
|
|
64
|
+
The 70 GB that the first report could not explain is the worktrees bucket (agents made Git worktrees inside the project's state folder and built in them), the audit folder, and hard links counted twice. The largest project has no nested state folder.
|
|
65
|
+
|
|
66
|
+
### Arco's own folder
|
|
67
|
+
|
|
68
|
+
| Bucket | Set A | Set B |
|
|
69
|
+
| --- | --- | --- |
|
|
70
|
+
| Caches and browser profiles | 0.27 GB | 29.0 GB (one browser profile cache) |
|
|
71
|
+
| Voice and media models | 1.40 GB | 18.7 GB (16.4 GB of it Python environments) |
|
|
72
|
+
| Provider account data | 0 | 9.7 GB (session files of a separate provider home) |
|
|
73
|
+
| Checkpoints | 0.03 GB | 0.84 GB |
|
|
74
|
+
| Saved clusters | under 0.01 GB | 0.33 GB |
|
|
75
|
+
| Server logs | 0.01 GB | 0.03 GB |
|
|
76
|
+
| Other | under 0.01 GB | 0.27 GB |
|
|
77
|
+
|
|
78
|
+
### Conversation logs (Set B)
|
|
79
|
+
|
|
80
|
+
- 1,885 logs. The median log is 0.39 MB. 207 logs are above 8 MiB; 42 logs are above 32 MiB and hold 3.5 GB together. The largest is 463 MB.
|
|
81
|
+
- By event type: full task board copies 49.7%, tool calls 28.4%, streamed text 9.6%, reasoning 4.6%, plan bodies 0.9%. In Set A, board copies are 5.2%.
|
|
82
|
+
- The largest log is 463 MB, of which all but 742 bytes are board copies.
|
|
83
|
+
|
|
84
|
+
### Artifacts (Set B)
|
|
85
|
+
|
|
86
|
+
- 674 of 1,895 conversations have artifacts.
|
|
87
|
+
- 24 artifact files are 100 MiB or larger, 15 are 500 MiB or larger, 7 are 1 GiB or larger, 1 is larger than 5 GiB.
|
|
88
|
+
- Disk images account for 21.2 GB of the large files.
|
|
89
|
+
- Two conversations hold more than 5 GiB of artifacts each.
|
|
90
|
+
|
|
91
|
+
### Compression of logs
|
|
92
|
+
|
|
93
|
+
Measured on real logs with Node's built-in `zlib`, without writing anything:
|
|
94
|
+
|
|
95
|
+
| Sample | Uncompressed | gzip | Brotli (quality 5, 16 MiB window) |
|
|
96
|
+
| --- | --- | --- | --- |
|
|
97
|
+
| 12 logs between 2 and 40 MB | 80 MB | 4.3x smaller | 14.3x smaller |
|
|
98
|
+
| A 116 MB log without board copies | 116 MB | 3.8x | 146x |
|
|
99
|
+
| The 463 MB board-copy log | 463 MB | 3.4x (5.9 s) | 3,240x (0.8 s) |
|
|
100
|
+
|
|
101
|
+
gzip only finds repeats within 32 KB, so repeated board copies and long tool outputs do not shrink much. Brotli with a 16 MiB window finds them. Brotli is part of `node:zlib`; it needs no new dependency.
|
|
102
|
+
|
|
103
|
+
## What was checked in the code
|
|
104
|
+
|
|
105
|
+
| Claim | Result |
|
|
106
|
+
| --- | --- |
|
|
107
|
+
| The log is append-only with no rotation | Confirmed. `workflowStore.ts` `persistAndStampSeq` queues records and `flushBuffer` appends. The 100 MB figure in the `INIT_TAIL_READ_BYTES` comment is not enforced. |
|
|
108
|
+
| Board copies are needed in the log | Not needed. `taskLedgerHandlers.ts` `broadcastSnapshot` writes a full copy on every change, every `task_ledger_list` and every reconnect (`sendTaskLedgerSnapshot`). The board itself lives in the ledger store (`taskLedger.ts` `load`). Reconnecting tabs get a fresh copy from `sendTaskLedgerSnapshot` and cluster subscriptions (`clusterHandlers.ts`). Recovery uses `task_ledger_event` mutations (`taskLedger.ts` `rebuildFromEvents`). The cluster board copies sent by `clusterPeerOps.ts` already go out live only (`broadcastCluster`). |
|
|
109
|
+
| Plan bodies are needed in the log | Not needed for state. `broadcast.ts` `broadcastCluster` copies `cluster_plan_changed` into every member's log as an audit record. The client handler ignores it (`handleServerMessage.ts`). No server code reads the body back. |
|
|
110
|
+
| Streamed text can be merged | Not safe. Each delta has its own sequence number and parent link; merging changes reconnect and HISTORY behavior. Compression covers it instead. |
|
|
111
|
+
| Reads are bounded | Not always. `replayEvents`, `replayEventsWithTs` and `readEventsPageBefore` read the whole file. `resumeSummary.ts` `replayMessagesWithResumePolicy` reads the whole file for branch history. Compression does not make this worse; P7.3 keeps the same memory profile and reads compressed pieces as a stream. |
|
|
112
|
+
| Nothing is ever reclaimed | Too broad. `gitSnapshots.ts` `pruneOldCheckpoints` prunes older checkpoint refs. Closing a conversation keeps its folder; `purgeWorkflow` deletes only on an explicit request. |
|
|
113
|
+
|
|
114
|
+
## Decisions and recommendations
|
|
115
|
+
|
|
116
|
+
Each item lists the recommendation, what it costs, and the operator's direction where one was given.
|
|
117
|
+
|
|
118
|
+
### 1. Task board copies (P7.2, approved)
|
|
119
|
+
|
|
120
|
+
- **Recommendation:** stop writing full board copies to conversation logs. Keep writing the per-change `task_ledger_event` records. Send board copies to open tabs live only.
|
|
121
|
+
- **Trade-off:** a log no longer shows the whole board at a past moment. The board at any point can still be rebuilt from the change records. Old logs keep their copies.
|
|
122
|
+
- **Effect:** about half of all log bytes in Set B.
|
|
123
|
+
|
|
124
|
+
### 2. Plan bodies in logs (P7.2)
|
|
125
|
+
|
|
126
|
+
- **Recommendation:** store each distinct plan body once in a plan history folder, `<project>/.arco/plans/.history/<sha256>.md`, and log only its hash and length. The history folder sits inside the plans folder, so it is permanent like the plans.
|
|
127
|
+
- **Trade-off:** reading an old plan version needs the history file, not just the log. The saving is small (under 1%); the main gain is that a long plan is not copied into every member's log on every tick.
|
|
128
|
+
|
|
129
|
+
### 3. Streamed text
|
|
130
|
+
|
|
131
|
+
- **Recommendation:** leave streamed text as it is. Sealed segments compress it.
|
|
132
|
+
- **Trade-off:** the live file is larger until it is sealed.
|
|
133
|
+
|
|
134
|
+
### 4. Log segments (P7.3, approved)
|
|
135
|
+
|
|
136
|
+
- **Recommendation:** seal the live log when it passes 16 MiB into compressed segments of at most 16 MiB of records each, using Brotli from `node:zlib` (quality 5, 16 MiB window). This differs from the earlier gzip suggestion: Brotli is equally built in and is 3 to 1,000 times more effective on these logs, and faster on the large ones.
|
|
137
|
+
- **Trade-off:** fewer outside tools read Brotli than gzip. The export command below turns any log back into one plain file.
|
|
138
|
+
|
|
139
|
+
- **Closed conversations:** a log is sealed when it is written to, so closed conversations keep their plain logs until the operator clicks **COMPRESS OLD LOGS** on the STORAGE page. It seals the closed conversations of one project and skips open or working ones; there is no background sweep.
|
|
140
|
+
|
|
141
|
+
### 5. Downgrade (P7.3)
|
|
142
|
+
|
|
143
|
+
- **Recommendation:** releases from 0.1.4 on write a format marker in each sealed conversation and refuse to write to a log with a newer format than they know. Releases before 0.1.4 cannot refuse; for them, `arco storage unseal` exports every sealed log back into one plain `events.jsonl` before a downgrade.
|
|
144
|
+
- **Trade-off:** a downgrade without the export shows only the unsealed part of each history. It does not corrupt anything: the newest record stays in the live file, so sequence numbers continue correctly. Upgrading again shows the full history.
|
|
145
|
+
|
|
146
|
+
### 6. Artifact warnings and scratch (P7.4, approved with conditions)
|
|
147
|
+
|
|
148
|
+
- **Recommendation:** warn at write time when one artifact file reaches 1 GiB, or a conversation's artifacts reach 5 GiB. In Set B this would have warned for 7 files and 2 conversations out of 1,895. Approving a warning sets **KEEP** on that file or folder, and it never warns again.
|
|
149
|
+
- **Scratch:** each conversation gets `scratch/` beside `artifacts/`, not inside it. Agent guidance says to put large intermediate files there. **EMPTY SCRATCH** deletes it, only on the operator's click and after a confirmation. Kept items are skipped.
|
|
150
|
+
- **Trade-off:** files under the thresholds never warn, even when many of them add up. The per-conversation total covers most of that.
|
|
151
|
+
- **Checked when:** a turn ends. `ARCO_ARTIFACT_WARN_FILE_BYTES` and `ARCO_ARTIFACT_WARN_CONVERSATION_BYTES` override the thresholds.
|
|
152
|
+
|
|
153
|
+
### 7. Archive, delete and the disk-budget notice (P7.5, approved)
|
|
154
|
+
|
|
155
|
+
- **Recommendation:** **ARCHIVE** packs a closed conversation folder into one compressed file, `<project>/.arco/archive/<id>.arcoarchive`, and can be restored; **DELETE** removes it after a confirmation. Both are operator clicks. The optional auto-archive rule ("closed more than 30 days") is off by default and never deletes. A disk-budget notice appears when all state folders and Arco's own folder together pass 100 GiB; the number is adjustable and the notice can be turned off.
|
|
156
|
+
- **How:** the archive holds each file with its SHA-256 and is read back against them before any file is removed; kept items and links stay in the conversation folder. Restore checks the whole archive first and never overwrites a file. Delete uses the existing purge and leaves kept items. The rule and the notice live in Arco's `storage-policy.json`; a daily run applies the rule and measures again for the notice.
|
|
157
|
+
- **Trade-off:** archiving keeps the bytes of artifacts that are already compressed (disk images, archives), so it frees little for them. Delete is the only way to reclaim those, and it stays a confirmed click.
|
|
158
|
+
|
|
159
|
+
### 8. One storage page for all projects (approved)
|
|
160
|
+
|
|
161
|
+
- **Recommendation:** yes. The **STORAGE** view in the ARTIFACTS window lists every known project, largest first, with logs, artifacts, scratch, worktrees and the biggest item, and Arco's own folder as its own row. It reads the same report as USAGE.
|
|
162
|
+
|
|
163
|
+
### 9. Worktrees and caches (new, needs a decision)
|
|
164
|
+
|
|
165
|
+
- **Finding:** in Set B the largest bucket is not logs or artifacts but agent-made worktrees inside a project's state folder, mostly compiler output (62 GB). Arco's own folder holds a 29 GB browser cache and 16 GB of voice Python environments.
|
|
166
|
+
- **Recommendation:** show these rows on the STORAGE page with their size and, for worktrees, whether they have uncommitted changes. Any clean-up action (deleting a worktree with no uncommitted changes, clearing the browser cache) is a separate decision and is not part of P7.4 or P7.5.
|
|
167
|
+
|
|
168
|
+
## P7.2 design: stop writing waste
|
|
169
|
+
|
|
170
|
+
### Board copies
|
|
171
|
+
|
|
172
|
+
1. Add `sendWorkflowLive(workflowId, message)` in `server/src/server/broadcast.ts`. It sends to the conversation's open tabs without a sequence number and without writing to the log.
|
|
173
|
+
2. `taskLedgerHandlers.ts` `broadcastSnapshot` uses it. This covers every caller: the LEDGER mutations, `handleTaskLedgerList`, `sendTaskLedgerSnapshot`, member replacement in `clusterHandlers.ts` and `taskWorktreeHandlers.ts`.
|
|
174
|
+
3. `emitEvent` keeps writing `task_ledger_event` through `broadcastWorkflow`, unchanged.
|
|
175
|
+
4. Nothing else changes. Cluster board copies already go out live only.
|
|
176
|
+
|
|
177
|
+
A tab that is closed when the board changes gets the current board when it reconnects (`sendTaskLedgerSnapshot`), or when it opens the board (`task_ledger_list`).
|
|
178
|
+
|
|
179
|
+
### Plan bodies
|
|
180
|
+
|
|
181
|
+
1. `server/src/planHistory.ts` adds `rememberPlanBody(cwd, body)`. It writes `<cwd>/.arco/plans/.history/<sha256>.md` once, through a temporary file and a rename, and returns the hash. An empty body (plan cleared) writes nothing.
|
|
182
|
+
2. In `broadcastCluster`, the copy written to each member's log replaces `body` with `bodySha256`. `bodyLength` and `updatedAt` stay. Live cluster subscribers still receive the full message.
|
|
183
|
+
3. `ClusterPlanChangedMessage` in `shared/src/protocol/clusters.ts` makes `body` optional and adds `bodySha256`.
|
|
184
|
+
4. Plan readers that list `plans/` read only top-level `.md` files, so `.history/` does not appear as plans. A test pins that.
|
|
185
|
+
|
|
186
|
+
### Compatibility of P7.2
|
|
187
|
+
|
|
188
|
+
| Case | Expected |
|
|
189
|
+
| --- | --- |
|
|
190
|
+
| Old log with board copies, replayed by new code | The client applies them as before. Cluster restore still keeps only the last copy (`compactRestoredEvents`). |
|
|
191
|
+
| New log, reconnect | The board arrives from the live copy sent on reconnect. |
|
|
192
|
+
| New log, ledger recovery (`rebuildFromEvents`) | Same board as before, from the change records. |
|
|
193
|
+
| New log, saved cluster save and restore | Restores with no board copy in the log; the board comes from the ledger store. |
|
|
194
|
+
| Plan change | One history file per distinct body; the logged event has hash and length; the history file equals the body. |
|
|
195
|
+
| Old log with plan bodies | Read unchanged. |
|
|
196
|
+
| Downgrade to 0.1.3 | Compatible. 0.1.3 sends live board copies itself and ignores the plan event. |
|
|
197
|
+
|
|
198
|
+
## P7.3 design: sealed, compressed segments
|
|
199
|
+
|
|
200
|
+
### Files
|
|
201
|
+
|
|
202
|
+
In each conversation folder:
|
|
203
|
+
|
|
204
|
+
| File | Meaning |
|
|
205
|
+
| --- | --- |
|
|
206
|
+
| `events.jsonl` | The live log. Plain text, appended as today. |
|
|
207
|
+
| `events.<firstSeq>-<lastSeq>.jsonl.br` | A sealed segment. Brotli-compressed records with sequence numbers `firstSeq` to `lastSeq`, each zero-padded to 12 digits so that name order is sequence order. |
|
|
208
|
+
| `log-format.json` | Written when the first segment is sealed: `{ "format": 2 }`. |
|
|
209
|
+
| `*.tmp` | An unfinished write. Ignored by readers; removed by the next seal. |
|
|
210
|
+
|
|
211
|
+
### Sealing
|
|
212
|
+
|
|
213
|
+
Sealing runs in the conversation's existing flush chain (`flushBuffer`), after an append that leaves the live file at 16 MiB or more. Events keep getting sequence numbers and wait in memory while it runs; nothing waits on the server's event loop.
|
|
214
|
+
|
|
215
|
+
1. Read the live file as a stream, up to its last complete line.
|
|
216
|
+
2. Skip a record only when an existing segment's name covers its sequence number and that segment passes the content check: it decompresses, every line parses, sequence numbers rise, and the first and last match the name (left over from an interrupted seal, or the copied record). A segment that fails is renamed `<name>.damaged-<time>`, kept on disk and no longer read; its records are sealed again from the live file.
|
|
217
|
+
3. Write the other records into segments of at most 16 MiB of records each, never spanning an existing segment: compress into a `.tmp` file, flush it to disk, read it back and compare, then rename it to its final name and flush the folder.
|
|
218
|
+
4. Write `log-format.json` if it is missing.
|
|
219
|
+
5. Replace the live file with a new one that holds only the newest sealed record, through a temporary file and a rename.
|
|
220
|
+
|
|
221
|
+
The copied last record keeps sequence numbers continuous for a release that reads only `events.jsonl`. New readers skip a live record only up to the newest sequence number they read from a segment, or that a checked segment holds, so it is never seen twice and a damaged segment never hides live records.
|
|
222
|
+
|
|
223
|
+
### Crash safety
|
|
224
|
+
|
|
225
|
+
| Interrupted | On disk | Result |
|
|
226
|
+
| --- | --- | --- |
|
|
227
|
+
| Before a segment's rename | A `.tmp` file and the full live file | Readers ignore the `.tmp`; the next seal removes it and starts again. A segment that failed its read-back is never renamed into place. |
|
|
228
|
+
| After some segments, before the live file is replaced | Segments and the full live file | Readers skip the live records already read from a segment; the next seal checks those segments and continues after them. |
|
|
229
|
+
| A segment whose content does not match its name (disk damage, or a release before this check) | That segment and the full live file | The next seal moves the segment aside and seals its records again from the live file. |
|
|
230
|
+
| During the live file replacement | The old or the new live file, never half of one | Both are valid. |
|
|
231
|
+
| Live file replacement refused (Windows, a reader holds it open) | Segments and the full live file; the temporary file removed | Reported; readers skip what is sealed; the next seal replaces the live file. |
|
|
232
|
+
|
|
233
|
+
Sequence numbers come from `readLatestSeq`, which reads the live file's tail, and from the highest `lastSeq` in any segment name, including segments moved aside as damaged. They stay monotonic across seals, crashes, restarts and damaged segments.
|
|
234
|
+
|
|
235
|
+
### Readers
|
|
236
|
+
|
|
237
|
+
A new module, `server/src/eventLog.ts`, gives every reader the same view: segments in order, then the live file, each record once. Its functions: `listSegments`, `readLogLines` (an async stream from a sequence number), `readLogText`, `readLogTail`, and for the synchronous readers `readLogTailSync` and `readLogHeadSync`.
|
|
238
|
+
|
|
239
|
+
| Reader | File and function | Change |
|
|
240
|
+
| --- | --- | --- |
|
|
241
|
+
| Sequence recovery | `workflowStore.ts` `readLatestSeq` | Falls back to the newest segment name. |
|
|
242
|
+
| First sequence (gap fallback) | `workflowStore.ts` `readFirstSeq` | Oldest segment name; else the live file's first record. |
|
|
243
|
+
| Full replay | `workflowStore.ts` `replayEvents`, `replayEventsWithTs` | `readLogLines`. |
|
|
244
|
+
| HISTORY pages | `workflowStore.ts` `readEventsPageBefore` | `readLogLines`. |
|
|
245
|
+
| Tail replay | `workflowStore.ts` `replayTailEvents` | `readLogTail`: the live tail, plus the newest segments when the live file is shorter than the limit. |
|
|
246
|
+
| Typed scan | `workflowStore.ts` `scanEventsOfTypes` | `readLogLines` with the same text filter. |
|
|
247
|
+
| Resume and REWIND | `resumeSummary.ts` `replayMessagesWithResumePolicy` | The whole history (`readLogText`) when segments exist, as one byte-addressed text; the plain-log path is unchanged. |
|
|
248
|
+
| Saved cluster save | `clusterSnapshots.ts` `saveSnapshot` | `readLogText`. The snapshot stays one plain log per member; the 512 MiB cap applies to the uncompressed text. |
|
|
249
|
+
| Saved cluster restore | `clusterSnapshots.ts` `restoreSnapshot` | No change: it writes a new plain log. |
|
|
250
|
+
| CATCH ME UP | `catchUp.ts` `readCatchUpEvents` | `readLogTail`. |
|
|
251
|
+
| Resume picker | `workflows/sessionIndex.ts` `scanOperatorMessages` | `readLogLines`. |
|
|
252
|
+
| Session titles | `workflows/sessionDiscovery.ts` `readFirstUserText` | `readLogHeadSync`. |
|
|
253
|
+
| Recall | `recall/index.ts` `scanEvents` | `readLogLines`. |
|
|
254
|
+
| Hub link | `management/initHubLink.ts` `readLastMessage`, `readFullTranscript` | `readLogTailSync`. |
|
|
255
|
+
| Cluster activity | `management/clusterActivity.ts` `readMemberActivity` | `readLogTailSync`. |
|
|
256
|
+
| Outputs | `outputs.ts` `reconcile` | Its byte offset into `events.jsonl` becomes a sequence cursor, because sealing replaces the live file. |
|
|
257
|
+
| Usage | `http/usageStatsRoutes.ts` `collectWorkflowUsage` | `readLogLines`. |
|
|
258
|
+
| Storage report | `storageReport.ts` | Already counts segments by type. |
|
|
259
|
+
| Genesis move | `ws/genesisHandlers.ts` `moveWorkflowStoreDir` | No change: it moves the whole folder. |
|
|
260
|
+
| Delete | `http/workflowDataRoutes.ts` `purgeWorkflow` | No change: it removes the whole folder. |
|
|
261
|
+
| Diagnostics | `diagnostics/checks.ts` `checkEventsLogRoundTrip` | No change: it uses its own temporary log. |
|
|
262
|
+
|
|
263
|
+
The callers of the `workflowStore.ts` readers need no change: `handoffHandlers.ts`, `turnEngine.ts`, `workflowHandlers.ts`, `clusterHandlers.ts`, `knowledgeHandlers.ts`, `taskLedger.ts` (`rebuildFromEvents`), `voice/computerContext.ts`, `voice/conditionContext.ts`, `voice/conditionReply.ts`, `peerRecipientContext.ts`, `recall/summarize.ts` and Claude Native's `worker.ts`.
|
|
264
|
+
|
|
265
|
+
A segment that cannot be read is reported and skipped; the reader continues with the next one and the history shows a gap. Nothing is deleted or rewritten.
|
|
266
|
+
|
|
267
|
+
### Downgrade and export
|
|
268
|
+
|
|
269
|
+
- `log-format.json` lets releases from 0.1.4 on recognize a newer format and refuse to write to it.
|
|
270
|
+
- `arco storage unseal` (and `npm run storage:unseal` in a source checkout) writes every sealed conversation back to one plain `events.jsonl`: all segments, then the live records, checked for order and count before it replaces the live file. Only then are the segments and the marker removed. It refuses to run while Arco is running.
|
|
271
|
+
|
|
272
|
+
### Compatibility tests for P7.3
|
|
273
|
+
|
|
274
|
+
| Log shape | Tests |
|
|
275
|
+
| --- | --- |
|
|
276
|
+
| Plain log only (every log today) | Every reader above returns the same result as before. |
|
|
277
|
+
| Segments and a live file | Full replay, HISTORY pages, typed scan, resume and REWIND across a segment boundary, gap fallback, tail replay, CATCH ME UP, usage, recall, resume picker, session titles, hub link, cluster activity, outputs, ledger rebuild, saved cluster save and restore. |
|
|
278
|
+
| Live file holding only the copied record | Sequence recovery, reconnect, the next append continues the sequence. |
|
|
279
|
+
| Interrupted seal (each row of the crash table) | No record lost or seen twice; the next seal finishes the job. |
|
|
280
|
+
| A record larger than 1 MiB at the end | Sequence recovery and tail replay. |
|
|
281
|
+
| Several segments, including a long plain log sealed in one go | Order and sequence continuity; reading streams one segment at a time. |
|
|
282
|
+
| An unreadable segment | Reported, skipped, the rest readable, nothing deleted. |
|
|
283
|
+
| Concurrent appends during a seal | All records present, in order. |
|
|
284
|
+
| `arco storage unseal` | Produces one plain log equal to the full history; a plain-log reader (the 0.1.3 behavior) then sees everything. |
|
|
285
|
+
| Downgrade without export | The plain-log reader sees the live part and continues the sequence without duplicates. |
|
|
286
|
+
| Plans | Sealing, archive and delete never touch `plans/` or `plans/.history/`. |
|
|
287
|
+
|
|
288
|
+
## P7.4 and P7.5: who builds what
|
|
289
|
+
|
|
290
|
+
| Part | Builder |
|
|
291
|
+
| --- | --- |
|
|
292
|
+
| All-projects report endpoint (`/api/storage-report?scope=all`, cached, bounded) | Builder Heavy |
|
|
293
|
+
| Size warnings at artifact write time (event and notice data), thresholds, approval sets KEEP | Builder Heavy (server), Builder 1 (notice and approval control) |
|
|
294
|
+
| Per-conversation `scratch/`, **EMPTY SCRATCH** endpoint, agent guidance text | Builder Heavy |
|
|
295
|
+
| **ARCHIVE**, restore and **DELETE** endpoints, the off-by-default auto-archive rule, disk-budget notice data | Builder Heavy |
|
|
296
|
+
| KEEP marks and **MOVE TO PROJECT** | Builder 1 |
|
|
297
|
+
| **STORAGE** view in the ARTIFACTS window (rows, expand, buttons calling the endpoints) | Builder 1 |
|
|
298
|
+
|
|
299
|
+
### KEEP file format
|
|
300
|
+
|
|
301
|
+
One file per conversation, `<project>/.arco/workflows/<id>/keep.json`, written through a temporary file and a rename:
|
|
302
|
+
|
|
303
|
+
```json
|
|
304
|
+
{ "version": 1, "items": [ { "path": "artifacts/disk.qcow2", "reason": "operator", "at": 1700000000000 } ] }
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
- `path` is relative to the conversation folder, uses `/`, and never contains `..`. `"."` keeps the whole conversation.
|
|
308
|
+
- `reason` is `operator` (the KEEP button) or `size-warning` (an approved warning).
|
|
309
|
+
- A kept path also covers everything below it.
|
|
310
|
+
- Archive, delete, **EMPTY SCRATCH** and size warnings all read this file and skip kept items. A missing or unreadable file means nothing is kept, and archive and delete then stop and ask instead of acting.
|
|
311
|
+
|
|
312
|
+
## Limits of these numbers
|
|
313
|
+
|
|
314
|
+
- They are one point-in-time scan of the folders found on one machine. Files can change during a scan.
|
|
315
|
+
- Logical sizes can exceed the space used on disk (sparse disk images) or fall below it (small files).
|
|
316
|
+
- Git objects shared with a project's own history cannot be assigned to single conversations.
|
|
317
|
+
- Compression ratios come from a sample of real logs; they are not guarantees.
|
|
318
|
+
|
|
319
|
+
## Related
|
|
320
|
+
|
|
321
|
+
- [Persistence](PERSISTENCE.md)
|
|
322
|
+
- [Operations](OPERATIONS.md)
|
|
323
|
+
- [HTTP API](HTTP_API.md)
|
|
324
|
+
- [Client](CLIENT.md)
|
package/docs/TASK_LEDGER.md
CHANGED
|
@@ -109,7 +109,7 @@ from the workflow):
|
|
|
109
109
|
|
|
110
110
|
| Message | Effect |
|
|
111
111
|
|---|---|
|
|
112
|
-
| `task_ledger_snapshot` | The full cwd-scoped list (`cwd`, `tasks[]`).
|
|
112
|
+
| `task_ledger_snapshot` | The full cwd-scoped list (`cwd`, `tasks[]`). Sent live after every mutation and on connect/rehydrate; never written to `events.jsonl` (since 0.1.4; older logs still hold copies and replay them). The client keys it by `cwd`. |
|
|
113
113
|
| `task_ledger_event` | The durable per-mutation event (`op`, `id`, `task?`, `payload?`, `at`). This is what lands in `events.jsonl` and what `rebuildFromEvents()` folds. Live clients no-op on it (the snapshot follows). |
|
|
114
114
|
|
|
115
115
|
On rehydrate the server pushes a `task_ledger_snapshot` per workflow (see
|
|
@@ -197,9 +197,9 @@ REST in `http/clusterRoutes.ts`), exactly like `cluster_plan_tick` /
|
|
|
197
197
|
|---|---|---|
|
|
198
198
|
| `cluster_task_list` | Read the cluster cwd's ledger (id, title, status, assignee, links, kernel metadata). Read-only. | `no_cwd` |
|
|
199
199
|
| `cluster_task_show` | Read one task's details: task, parents, children, comments, runs. Read-only. | `no_cwd`, `not_found` |
|
|
200
|
-
| `cluster_task_create` | Create a new non-terminal `todo` task in the cluster cwd, with optional notes/body, assignee, priority, parentIds, links, reviewRequired, goalMode, and
|
|
200
|
+
| `cluster_task_create` | Create a new non-terminal `todo` task in the cluster cwd, with optional notes/body, assignee, priority, parentIds, links, reviewRequired, goalMode, goalMaxTurns, and an optional release label. | `no_cwd`, `empty_title`, `invalid_link`, `not_found`, `operator_gated` for terminal status attempts |
|
|
201
201
|
| `cluster_task_claim` | Set `assignee = caller`, `status = in_progress`. | `not_found`, `already_claimed` (a *different* member owns it, no stomp; re-claim by the owner is a no-op) |
|
|
202
|
-
| `cluster_task_update` | Change worker-allowed `status` (`triage`/`todo`/`ready`/`in_progress`/`blocked`/`review`) and/or `notes
|
|
202
|
+
| `cluster_task_update` | Change worker-allowed `status` (`triage`/`todo`/`ready`/`in_progress`/`blocked`/`review`) and/or `notes`, and set or clear the `release` label. | `not_found`, **`operator_gated`** when `status === 'done'` or `status === 'archived'` |
|
|
203
203
|
| `cluster_task_heartbeat` | Create/update the caller's visible run heartbeat for a task; optional note is stored as run metadata and a durable heartbeat comment. | `no_cwd`, `not_found` |
|
|
204
204
|
| `cluster_task_link` | Add a dependency: `childId` depends on `parentId`. Rejects self-links and cycles. | `no_cwd`, `not_found`, `invalid_link` |
|
|
205
205
|
| `cluster_task_unlink` | Remove a dependency: `childId` no longer depends on `parentId`. | `no_cwd`, `not_found`, `invalid_link` |
|
|
@@ -381,7 +381,7 @@ Operator clearing on review cards uses **ACCEPT** (marks one task done through
|
|
|
381
381
|
the same `task_ledger_update` path as the LEDGER tab; workers cannot do this)
|
|
382
382
|
and **RECHECK** (sends a templated note to the sign-off author). **ACCEPT ALL
|
|
383
383
|
MET** accepts every visible review task whose sign-off reads met. Done tasks
|
|
384
|
-
|
|
384
|
+
are shown by default and hidden when **SHOW DONE** is turned off (remembered); review tasks older than seven days fold behind
|
|
385
385
|
an older-count row. A **NEED YOU** badge above the member cards counts review
|
|
386
386
|
tasks with a director sign-off, tasks blocked on an operator decision, and
|
|
387
387
|
members waiting on an answer; selecting an item opens the board or focuses that
|
|
@@ -389,6 +389,7 @@ member. Settings > Agents and clusters **Board auto-done** (off by default)
|
|
|
389
389
|
marks a met review task done without a separate ACCEPT click. The Board and Plan
|
|
390
390
|
tabs each carry a one-line purpose label so the two stay distinct.
|
|
391
391
|
|
|
392
|
+
**Release labels.** A task may carry an optional `release` label (for example `0.1.4`, at most 24 characters) set from the card drawer's RELEASE field or by the director through `cluster_task_create` / `cluster_task_update` (an empty string clears it). When any task is labeled, the board header offers a release filter (ALL RELEASES, each label, NO RELEASE); a chosen label shows how many tasks are in it, how many the operator accepted (done) and how many are left, and reads READY TO RELEASE when none are left. CATCH ME UP lists board changes in its range with their release label and adds a one-line movement summary; BRIEF on a cluster adds the board totals, release progress and the last day's movement. Boards with no labels, and ledgers written before labels existed, look and load as before.
|
|
392
393
|
Mutations also come from peer tools and the other explicit operator controls.
|
|
393
394
|
The `DISPATCH ONCE` button performs one deterministic dispatcher sweep for
|
|
394
395
|
ready explicitly-assigned work and then waits for the next operator click. The
|
|
@@ -8,7 +8,7 @@ export declare function isAutoPickupMode(value: unknown): value is AutoPickupMod
|
|
|
8
8
|
export declare function isSmartPickupMode(mode: AutoPickupMode | undefined): mode is 'smart-observe' | 'smart-auto';
|
|
9
9
|
export declare function autoPickupWakes(mode: AutoPickupMode | undefined): boolean;
|
|
10
10
|
export declare function resolveAutoPickupMode(mode: unknown, legacyEnabled: unknown): AutoPickupMode;
|
|
11
|
-
export declare const SMART_PICKUP_EVALUATOR_PROVIDERS: readonly ["claude", "codex", "cursor", "ollama"];
|
|
11
|
+
export declare const SMART_PICKUP_EVALUATOR_PROVIDERS: readonly ["claude", "codex", "cursor", "ollama", "lmstudio", "llamacpp", "strata", "deepseek"];
|
|
12
12
|
export type SmartPickupEvaluatorProvider = typeof SMART_PICKUP_EVALUATOR_PROVIDERS[number];
|
|
13
13
|
export interface SmartPickupEvaluator {
|
|
14
14
|
provider: SmartPickupEvaluatorProvider;
|
|
@@ -28,7 +28,7 @@ export function resolveAutoPickupMode(mode, legacyEnabled) {
|
|
|
28
28
|
return mode;
|
|
29
29
|
return legacyEnabled === true ? 'rule' : 'off';
|
|
30
30
|
}
|
|
31
|
-
export const SMART_PICKUP_EVALUATOR_PROVIDERS = ['claude', 'codex', 'cursor', 'ollama'];
|
|
31
|
+
export const SMART_PICKUP_EVALUATOR_PROVIDERS = ['claude', 'codex', 'cursor', 'ollama', 'lmstudio', 'llamacpp', 'strata', 'deepseek'];
|
|
32
32
|
export const SMART_PICKUP_MODEL_MAX = 200;
|
|
33
33
|
export function sanitizeSmartPickupEvaluator(raw) {
|
|
34
34
|
if (!raw || typeof raw !== 'object')
|
|
@@ -442,7 +442,8 @@ export interface ClusterMemberReplacedMessage {
|
|
|
442
442
|
export interface ClusterPlanChangedMessage {
|
|
443
443
|
type: 'cluster_plan_changed';
|
|
444
444
|
clusterId: string;
|
|
445
|
-
body
|
|
445
|
+
body?: string;
|
|
446
|
+
bodySha256?: string;
|
|
446
447
|
updatedAt: number;
|
|
447
448
|
bodyLength: number;
|
|
448
449
|
}
|
|
@@ -20,6 +20,7 @@ export * from './mdTuneup.js';
|
|
|
20
20
|
export * from './handoffs.js';
|
|
21
21
|
export * from './checkpoints.js';
|
|
22
22
|
export * from './liveChanges.js';
|
|
23
|
+
export * from './storage.js';
|
|
23
24
|
export * from './gitOps.js';
|
|
24
25
|
export * from './bakeoffs.js';
|
|
25
26
|
export * from './terminal.js';
|
|
@@ -24,6 +24,7 @@ export * from './mdTuneup.js';
|
|
|
24
24
|
export * from './handoffs.js';
|
|
25
25
|
export * from './checkpoints.js';
|
|
26
26
|
export * from './liveChanges.js';
|
|
27
|
+
export * from './storage.js';
|
|
27
28
|
export * from './gitOps.js';
|
|
28
29
|
export * from './bakeoffs.js';
|
|
29
30
|
export * from './terminal.js';
|
|
@@ -8,6 +8,11 @@ export interface MdTuneupCandidate {
|
|
|
8
8
|
lines?: number;
|
|
9
9
|
approximateTokens?: number;
|
|
10
10
|
hints?: string[];
|
|
11
|
+
alsoReadAs?: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface MdTuneupSkippedLink {
|
|
14
|
+
path: string;
|
|
15
|
+
reason: string;
|
|
11
16
|
}
|
|
12
17
|
export interface MdTuneupCandidatesRequestMessage {
|
|
13
18
|
type: 'md_tuneup_candidates_request';
|
|
@@ -17,6 +22,7 @@ export interface MdTuneupCandidatesMessage {
|
|
|
17
22
|
type: 'md_tuneup_candidates';
|
|
18
23
|
workflowId: string;
|
|
19
24
|
candidates: MdTuneupCandidate[];
|
|
25
|
+
skippedLinks?: MdTuneupSkippedLink[];
|
|
20
26
|
defaultPath?: string;
|
|
21
27
|
}
|
|
22
28
|
export interface MdTuneupRequestMessage {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ProviderName } from './providers.js';
|
|
2
|
-
export type WorkbenchNoticeCategory = 'port-change' | 'computer-watch' | 'turn-finished' | 'quota-recovered' | 'auth-expired' | 'cluster-nudge' | 'terminal-exited' | 'preview-failed' | 'pr-status' | 'backup';
|
|
2
|
+
export type WorkbenchNoticeCategory = 'attention' | 'port-change' | 'computer-watch' | 'turn-finished' | 'quota-recovered' | 'auth-expired' | 'cluster-nudge' | 'terminal-exited' | 'preview-failed' | 'pr-status' | 'backup';
|
|
3
3
|
export declare const WORKBENCH_NOTICE_CATEGORIES: readonly WorkbenchNoticeCategory[];
|
|
4
4
|
export type WorkbenchNoticeSeverity = 'info' | 'success' | 'warning' | 'error';
|
|
5
5
|
export interface WorkbenchNotice {
|
|
@@ -57,4 +57,5 @@ export interface AttentionEventMessage {
|
|
|
57
57
|
kind: AttentionKind;
|
|
58
58
|
workflowId: string;
|
|
59
59
|
workflowName: string;
|
|
60
|
+
desktopEligible?: boolean;
|
|
60
61
|
}
|
|
@@ -13,6 +13,7 @@ export const WORKBENCH_NOTICE_CATEGORIES = [
|
|
|
13
13
|
'port-change',
|
|
14
14
|
'computer-watch',
|
|
15
15
|
'turn-finished',
|
|
16
|
+
'attention',
|
|
16
17
|
'quota-recovered',
|
|
17
18
|
'auth-expired',
|
|
18
19
|
'cluster-nudge',
|
|
@@ -23,8 +24,8 @@ export const WORKBENCH_NOTICE_CATEGORIES = [
|
|
|
23
24
|
];
|
|
24
25
|
// ---------------------------------------------------------------------------
|
|
25
26
|
// Attention alerts (desktop and phone). Separate from workbench notices: they
|
|
26
|
-
// are opt-in per event
|
|
27
|
-
// in-app
|
|
27
|
+
// are opt-in per event for desktop and phone, and never create an in-app toast.
|
|
28
|
+
// Quiet in-app notices follow the existing BELL category settings.
|
|
28
29
|
export const ATTENTION_KINDS = ['finished', 'failed', 'waiting'];
|
|
29
30
|
export const DEFAULT_NOTIFICATION_CHANNELS = {
|
|
30
31
|
desktop: { finished: false, failed: false, waiting: false },
|
|
@@ -22,6 +22,7 @@ import type { WorkbenchNoticeMessage, NotificationMutesMessage, AttentionEventMe
|
|
|
22
22
|
import type { HandoffStartedMessage, HandoffArtifactReadyMessage, HandoffCompleteMessage, HandoffLockSnapshotMessage, SpawnFromHereCompleteMessage } from './handoffs.js';
|
|
23
23
|
import type { CheckpointCreatedMessage, CheckpointRevertedMessage, TurnChangesMessage } from './checkpoints.js';
|
|
24
24
|
import type { LiveChangesSnapshotMessage } from './liveChanges.js';
|
|
25
|
+
import type { StorageWarningMessage } from './storage.js';
|
|
25
26
|
import type { GitOpResultMessage } from './gitOps.js';
|
|
26
27
|
import type { MediaOpResultMessage, MediaStemsResultMessage } from './media.js';
|
|
27
28
|
import type { TerminalOpenedMessage, TerminalKilledMessage, TerminalCommandLoggedMessage, TerminalSessionsMessage } from './terminal.js';
|
|
@@ -759,7 +760,7 @@ export interface TurnMessagesDeliveredMessage {
|
|
|
759
760
|
workflowId: string;
|
|
760
761
|
clientMessageIds: string[];
|
|
761
762
|
}
|
|
762
|
-
export type ServerMessage = TurnMessagesDeliveredMessage | AppUpdateAvailableMessage | ComputerActivityChangedMessage | ComputerContextUpdatedMessage | ConnectedMessage | WorkflowCreatedMessage | WorkspaceSnapshotMessage | WorkflowConfigSyncedMessage | PrimaryTextMessage | PrimaryCompleteMessage | PrimaryTurnTokenUsageMessage | HookRewroteInputMessage | ToolGateTriggeredMessage | GateRequiredMessage | GateResolvedMessage | GateStandingMessage | ToolLoopWarningMessage | WorkerStuckMessage | ToolPostureSetMessage | GoalSetMessage | GoalRunStateMessage | PinnedSkillsSetMessage | ProjectTrustPromptMessage | ProjectTrustSetMessage | FileMutationQueuedMessage | ModelResolvedMessage | PrimaryRefusalMessage | CtxActionMessage | NativeCompactingMessage | ContextFoldedMessage | NativeCompactedMessage | PrimaryToolCounterMessage | SandboxChunkAddedMessage | SandboxDbClearedMessage | ToolFilteredMessage | ToolEvictedMessage | PeerMessageSentMessage | PeerMessageReceivedMessage | PeerSendRejectedMessage | PrimaryModelMessage | PrimaryThinkingMessage | PrimaryToolUseMessage | PrimaryTurnStartedMessage | PrimaryTurnEndedMessage | WorkerSpawnedMessage | WorkerTextMessage | WorkerThinkingMessage | WorkerToolUseMessage | WorkerCompleteMessage | WorkerActivityMessage | WorkerModelMessage | WorkerErrorMessage | FileUploadedMessage | CapabilitiesUpdatedMessage | CapabilitiesChangedMessage | SettingsUpdatedMessage | ConversationChangedMessage | PrimaryArtifactMessage | QuotaStatusMessage | TurnCancelledMessage | WorkflowStateSnapshotMessage | WorkflowSessionMetadataMessage | ReplayBatchMessage | ShutdownMessage | SystemErrorMessage | UserMessageEchoMessage | ReviewStartedMessage | ReviewArtifactReadyMessage | ResearchStartedMessage | ResearchProgressMessage | ResearchCompleteMessage | CompareStartedMessage | CompareLegDeltaMessage | CompareLegCompleteMessage | CompareCompleteMessage | CompareVoteRecordedMessage | ProviderFellBackMessage | DiagnosticsMessage | DocEditStartedMessage | DocEditProposedMessage | MdTuneupStartedMessage | MdTuneupProposedMessage | MdTuneupAppliedMessage | MdTuneupCandidatesMessage | MdTuneupUndoneMessage | KnowledgeDistillStartedMessage | KnowledgeDistillProposedMessage | RecallSummaryReadyMessage | HandoffStartedMessage | HandoffArtifactReadyMessage | HandoffCompleteMessage | HandoffLockSnapshotMessage | SpawnFromHereCompleteMessage | CheckpointCreatedMessage | TurnChangesMessage | CheckpointRevertedMessage | LiveChangesSnapshotMessage | GitOpResultMessage | BakeoffListResultMessage | BakeoffStateMessage | BakeoffErrorMessage | BakeoffAttemptsRemovedMessage | OutputSavedMessage | MediaOpResultMessage | MediaStemsResultMessage | SessionEntryMessage | ContextUsageMessage | UltracodeFleetProgressMessage | ContextBudgetMessage | OperatorQuestionMessage | OperatorQuestionReplyResultMessage | VoiceToolCallMessage | SystemNoticeMessage | ClaudeNativeQuestionSettledMessage | QueuedMessageCancelledMessage | QueuedMessagesDrainedMessage | PrimaryActivityMessage | SessionHistoryStatusMessage | PlanAttachedMessage | PlanDetachedMessage | CodexTokenSnapshotMessage | PreviewSetMessage | PreviewClearedMessage | PreviewHistoryMessage | OperatorLabelMessage | LeafMoveMessage | QueueUpdateMessage | TodosUpdatedMessage | PlanSetMessage | PlanExitedMessage | PlanCandidateReadyMessage | TaskStartedMessage | TaskStatusMessage | BranchSummaryMessage | ClusterStateMessage | ClusterNotFoundMessage | ClusterCreatedMessage | ClusterDeletedMessage | ClusterMemberAddedMessage | ClusterMemberRemovedMessage | ClusterMemberReplacedMessage | ClusterBroadcastDispatchedMessage | ClusterDispatchResultMessage | ClusterSwarmCreatedMessage | ClusterOrchestrationAssistStartedMessage | ClusterOrchestrationProposalStartedMessage | ClusterOrchestrationProposalSnapshotMessage | ClusterOrchestrationProposalProposedMessage | ClusterOrchestrationProposalRejectedMessage | ClusterOrchestrationProposalAppliedMessage | ClusterPlanChangedMessage | ClusterMemberNudgedMessage | WorkflowRenamedMessage | WorkflowRenameResultMessage | CodebaseMemoryStateMessage | ClusterAutoTurnFiredMessage | ClusterSnapshotListResultMessage | ClusterSnapshotSavedMessage | ClusterSnapshotConflictMessage | ClusterSnapshotErrorMessage | TerminalOpenedMessage | TerminalKilledMessage | TerminalCommandLoggedMessage | TerminalSessionsMessage | TaskLedgerSnapshotMessage | TaskLedgerEventMessage | McpRegistrySnapshotMessage | McpProbeResultMessage | McpAllowSnapshotMessage | McpMalwareWarningMessage | GenesisSeedUpdatedMessage | WorkflowCwdBoundMessage | GenesisScaffoldedMessage | GenesisCreativeArmedMessage | GenesisAssistStartedMessage | GenesisAssistProposedMessage | PreviewCaptureStartedMessage | PreviewCaptureReadyMessage | WorkbenchNoticeMessage | NotificationMutesMessage | AttentionEventMessage | HubLinkStatusMessage;
|
|
763
|
+
export type ServerMessage = StorageWarningMessage | TurnMessagesDeliveredMessage | AppUpdateAvailableMessage | ComputerActivityChangedMessage | ComputerContextUpdatedMessage | ConnectedMessage | WorkflowCreatedMessage | WorkspaceSnapshotMessage | WorkflowConfigSyncedMessage | PrimaryTextMessage | PrimaryCompleteMessage | PrimaryTurnTokenUsageMessage | HookRewroteInputMessage | ToolGateTriggeredMessage | GateRequiredMessage | GateResolvedMessage | GateStandingMessage | ToolLoopWarningMessage | WorkerStuckMessage | ToolPostureSetMessage | GoalSetMessage | GoalRunStateMessage | PinnedSkillsSetMessage | ProjectTrustPromptMessage | ProjectTrustSetMessage | FileMutationQueuedMessage | ModelResolvedMessage | PrimaryRefusalMessage | CtxActionMessage | NativeCompactingMessage | ContextFoldedMessage | NativeCompactedMessage | PrimaryToolCounterMessage | SandboxChunkAddedMessage | SandboxDbClearedMessage | ToolFilteredMessage | ToolEvictedMessage | PeerMessageSentMessage | PeerMessageReceivedMessage | PeerSendRejectedMessage | PrimaryModelMessage | PrimaryThinkingMessage | PrimaryToolUseMessage | PrimaryTurnStartedMessage | PrimaryTurnEndedMessage | WorkerSpawnedMessage | WorkerTextMessage | WorkerThinkingMessage | WorkerToolUseMessage | WorkerCompleteMessage | WorkerActivityMessage | WorkerModelMessage | WorkerErrorMessage | FileUploadedMessage | CapabilitiesUpdatedMessage | CapabilitiesChangedMessage | SettingsUpdatedMessage | ConversationChangedMessage | PrimaryArtifactMessage | QuotaStatusMessage | TurnCancelledMessage | WorkflowStateSnapshotMessage | WorkflowSessionMetadataMessage | ReplayBatchMessage | ShutdownMessage | SystemErrorMessage | UserMessageEchoMessage | ReviewStartedMessage | ReviewArtifactReadyMessage | ResearchStartedMessage | ResearchProgressMessage | ResearchCompleteMessage | CompareStartedMessage | CompareLegDeltaMessage | CompareLegCompleteMessage | CompareCompleteMessage | CompareVoteRecordedMessage | ProviderFellBackMessage | DiagnosticsMessage | DocEditStartedMessage | DocEditProposedMessage | MdTuneupStartedMessage | MdTuneupProposedMessage | MdTuneupAppliedMessage | MdTuneupCandidatesMessage | MdTuneupUndoneMessage | KnowledgeDistillStartedMessage | KnowledgeDistillProposedMessage | RecallSummaryReadyMessage | HandoffStartedMessage | HandoffArtifactReadyMessage | HandoffCompleteMessage | HandoffLockSnapshotMessage | SpawnFromHereCompleteMessage | CheckpointCreatedMessage | TurnChangesMessage | CheckpointRevertedMessage | LiveChangesSnapshotMessage | GitOpResultMessage | BakeoffListResultMessage | BakeoffStateMessage | BakeoffErrorMessage | BakeoffAttemptsRemovedMessage | OutputSavedMessage | MediaOpResultMessage | MediaStemsResultMessage | SessionEntryMessage | ContextUsageMessage | UltracodeFleetProgressMessage | ContextBudgetMessage | OperatorQuestionMessage | OperatorQuestionReplyResultMessage | VoiceToolCallMessage | SystemNoticeMessage | ClaudeNativeQuestionSettledMessage | QueuedMessageCancelledMessage | QueuedMessagesDrainedMessage | PrimaryActivityMessage | SessionHistoryStatusMessage | PlanAttachedMessage | PlanDetachedMessage | CodexTokenSnapshotMessage | PreviewSetMessage | PreviewClearedMessage | PreviewHistoryMessage | OperatorLabelMessage | LeafMoveMessage | QueueUpdateMessage | TodosUpdatedMessage | PlanSetMessage | PlanExitedMessage | PlanCandidateReadyMessage | TaskStartedMessage | TaskStatusMessage | BranchSummaryMessage | ClusterStateMessage | ClusterNotFoundMessage | ClusterCreatedMessage | ClusterDeletedMessage | ClusterMemberAddedMessage | ClusterMemberRemovedMessage | ClusterMemberReplacedMessage | ClusterBroadcastDispatchedMessage | ClusterDispatchResultMessage | ClusterSwarmCreatedMessage | ClusterOrchestrationAssistStartedMessage | ClusterOrchestrationProposalStartedMessage | ClusterOrchestrationProposalSnapshotMessage | ClusterOrchestrationProposalProposedMessage | ClusterOrchestrationProposalRejectedMessage | ClusterOrchestrationProposalAppliedMessage | ClusterPlanChangedMessage | ClusterMemberNudgedMessage | WorkflowRenamedMessage | WorkflowRenameResultMessage | CodebaseMemoryStateMessage | ClusterAutoTurnFiredMessage | ClusterSnapshotListResultMessage | ClusterSnapshotSavedMessage | ClusterSnapshotConflictMessage | ClusterSnapshotErrorMessage | TerminalOpenedMessage | TerminalKilledMessage | TerminalCommandLoggedMessage | TerminalSessionsMessage | TaskLedgerSnapshotMessage | TaskLedgerEventMessage | McpRegistrySnapshotMessage | McpProbeResultMessage | McpAllowSnapshotMessage | McpMalwareWarningMessage | GenesisSeedUpdatedMessage | WorkflowCwdBoundMessage | GenesisScaffoldedMessage | GenesisCreativeArmedMessage | GenesisAssistStartedMessage | GenesisAssistProposedMessage | PreviewCaptureStartedMessage | PreviewCaptureReadyMessage | WorkbenchNoticeMessage | NotificationMutesMessage | AttentionEventMessage | HubLinkStatusMessage;
|
|
763
764
|
export type WorkflowEvent<M extends ServerMessage = ServerMessage> = M & {
|
|
764
765
|
seq: number;
|
|
765
766
|
parentEventSeq?: number;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface StorageWarningItem {
|
|
2
|
+
path: string;
|
|
3
|
+
bytes: number;
|
|
4
|
+
kind: 'file' | 'conversation';
|
|
5
|
+
}
|
|
6
|
+
export interface StorageWarningMessage {
|
|
7
|
+
type: 'storage_warning';
|
|
8
|
+
workflowId: string;
|
|
9
|
+
items: StorageWarningItem[];
|
|
10
|
+
fileThresholdBytes: number;
|
|
11
|
+
conversationThresholdBytes: number;
|
|
12
|
+
}
|
|
13
|
+
export interface KeepItem {
|
|
14
|
+
path: string;
|
|
15
|
+
reason: 'operator' | 'size-warning';
|
|
16
|
+
at: number;
|
|
17
|
+
}
|
|
18
|
+
export interface KeepFile {
|
|
19
|
+
version: 1;
|
|
20
|
+
items: KeepItem[];
|
|
21
|
+
}
|
|
@@ -31,6 +31,7 @@ export interface LedgerTask {
|
|
|
31
31
|
assignee?: string;
|
|
32
32
|
worktree?: TaskWorktree;
|
|
33
33
|
worktreeRequired?: boolean;
|
|
34
|
+
release?: string;
|
|
34
35
|
signoff?: TaskSignoff;
|
|
35
36
|
}
|
|
36
37
|
export type TaskSignoffState = 'met' | 'not_met' | 'partial';
|
|
@@ -105,6 +106,7 @@ export interface TaskLedgerCreateMessage {
|
|
|
105
106
|
goalMode?: boolean;
|
|
106
107
|
goalMaxTurns?: number;
|
|
107
108
|
worktreeRequired?: boolean;
|
|
109
|
+
release?: string;
|
|
108
110
|
}
|
|
109
111
|
export interface TaskLedgerUpdateMessage {
|
|
110
112
|
type: 'task_ledger_update';
|
|
@@ -122,6 +124,7 @@ export interface TaskLedgerUpdateMessage {
|
|
|
122
124
|
goalMode?: boolean;
|
|
123
125
|
goalMaxTurns?: number | null;
|
|
124
126
|
worktreeRequired?: boolean;
|
|
127
|
+
release?: string;
|
|
125
128
|
assignee?: string;
|
|
126
129
|
}
|
|
127
130
|
export interface TaskLedgerDeleteMessage {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const UTILITY_AGENT_PROVIDERS: readonly ["claude", "codex", "cursor", "ollama"];
|
|
1
|
+
export declare const UTILITY_AGENT_PROVIDERS: readonly ["claude", "codex", "cursor", "ollama", "lmstudio", "llamacpp", "strata", "deepseek"];
|
|
2
2
|
export type UtilityAgentProvider = typeof UTILITY_AGENT_PROVIDERS[number];
|
|
3
3
|
export interface UtilityAgent {
|
|
4
4
|
provider: UtilityAgentProvider;
|
|
@@ -7,7 +7,7 @@ export interface UtilityAgent {
|
|
|
7
7
|
export declare const UTILITY_AGENT_MODEL_MAX = 200;
|
|
8
8
|
export declare const UTILITY_JOB_INPUT_MAX_CHARS = 24000;
|
|
9
9
|
export declare const UTILITY_JOB_TIMEOUT_MS = 60000;
|
|
10
|
-
export declare const UTILITY_JOB_MAX_OUTPUT_TOKENS =
|
|
10
|
+
export declare const UTILITY_JOB_MAX_OUTPUT_TOKENS = 2048;
|
|
11
11
|
export declare function sanitizeUtilityAgent(raw: unknown): UtilityAgent | null;
|
|
12
12
|
export declare function utilityModelHint(provider: UtilityAgentProvider): string | null;
|
|
13
13
|
export declare function suggestUtilityModel(provider: UtilityAgentProvider, models: readonly string[]): string | null;
|