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.
Files changed (296) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/README.md +5 -1
  3. package/client/dist/assets/{PhosphorBackdrop-CkVIGkeX.js → PhosphorBackdrop-CNumba2X.js} +1 -1
  4. package/client/dist/assets/{ThemedBackgroundShaderImpl-DHF7CnpE.js → ThemedBackgroundShaderImpl-DX5KyCt3.js} +1 -1
  5. package/client/dist/assets/{XtermView-SY0UcZUS.js → XtermView-DhS5g8Rt.js} +1 -1
  6. package/client/dist/assets/{galleryEditor-Ca4F8HiM.js → galleryEditor-fPb76Cjv.js} +1 -1
  7. package/client/dist/assets/index-CjkHb-_n.js +592 -0
  8. package/client/dist/assets/index-DIbh3ae5.css +1 -0
  9. package/client/dist/index.html +2 -2
  10. package/client/src/App.tsx +2 -0
  11. package/client/src/alerts/desktopAlerts.ts +13 -1
  12. package/client/src/brief/briefFacts.ts +22 -0
  13. package/client/src/brief/briefFromStore.ts +7 -2
  14. package/client/src/components/ArtifactMoveDialog.tsx +64 -0
  15. package/client/src/components/BriefControl.tsx +38 -47
  16. package/client/src/components/CatchMeUp.tsx +25 -25
  17. package/client/src/components/CheckpointActions.tsx +7 -4
  18. package/client/src/components/ClusterComposerButtons.tsx +6 -3
  19. package/client/src/components/ClusterPlanTab.tsx +15 -1
  20. package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +6 -2
  21. package/client/src/components/ClusterTab.tsx +33 -3
  22. package/client/src/components/ClusterTaskBoardTab.tsx +62 -8
  23. package/client/src/components/DialogShell.tsx +115 -0
  24. package/client/src/components/DocsUpdateDialog.tsx +16 -42
  25. package/client/src/components/ForwardMessages.tsx +28 -32
  26. package/client/src/components/GitDialog.tsx +52 -52
  27. package/client/src/components/GitOtherWork.tsx +4 -2
  28. package/client/src/components/HandoffDialog.tsx +19 -45
  29. package/client/src/components/Home/HomeView.tsx +36 -8
  30. package/client/src/components/Home/home.css +7 -0
  31. package/client/src/components/KeepButton.tsx +23 -0
  32. package/client/src/components/MdTuneupDialog.tsx +52 -51
  33. package/client/src/components/MemberCard.tsx +4 -1
  34. package/client/src/components/MemberPane.tsx +1 -1
  35. package/client/src/components/NotificationCenter.tsx +4 -3
  36. package/client/src/components/NotificationChannelsSettings.tsx +25 -7
  37. package/client/src/components/PlanCandidateBanner.tsx +111 -57
  38. package/client/src/components/PlanComposerDialog.tsx +55 -87
  39. package/client/src/components/ProjectStateNotice.tsx +60 -0
  40. package/client/src/components/PublicProjectBox.tsx +25 -0
  41. package/client/src/components/ResearchDialog.tsx +15 -24
  42. package/client/src/components/ReviewDialog.tsx +32 -57
  43. package/client/src/components/RightPanel/OutputsPanel.tsx +4 -0
  44. package/client/src/components/RightPanel/PlanTab.tsx +24 -2
  45. package/client/src/components/RightPanel/UsageTab.tsx +77 -1
  46. package/client/src/components/SkillEditorDialog.tsx +38 -73
  47. package/client/src/components/SpawnDialog.tsx +19 -41
  48. package/client/src/components/StorageWarnings.tsx +21 -0
  49. package/client/src/components/SystemHeader.tsx +2 -2
  50. package/client/src/components/TerminalInput.tsx +6 -2
  51. package/client/src/components/TidyComposer.tsx +24 -41
  52. package/client/src/components/TranscriptSendDialog.tsx +151 -202
  53. package/client/src/components/UtilityAgentPicker.tsx +4 -2
  54. package/client/src/components/WorkflowCreator/index.tsx +2 -0
  55. package/client/src/components/WorkflowView.tsx +4 -1
  56. package/client/src/components/clusterNeedsYou.ts +35 -3
  57. package/client/src/components/compare/CompareDialog.tsx +26 -2
  58. package/client/src/components/terminalInput/planDraft.ts +33 -4
  59. package/client/src/components/utilityResult.ts +5 -1
  60. package/client/src/explorer/ExplorerApp.tsx +5 -2
  61. package/client/src/explorer/PlansLens.tsx +60 -19
  62. package/client/src/explorer/StorageLens.tsx +275 -0
  63. package/client/src/explorer/launch.ts +3 -3
  64. package/client/src/explorer/plansGrouping.ts +15 -0
  65. package/client/src/help/content/cluster.tsx +42 -7
  66. package/client/src/help/content/composer.tsx +26 -6
  67. package/client/src/help/content/header.tsx +16 -14
  68. package/client/src/help/content/misc.tsx +141 -6
  69. package/client/src/help/content/rightPanel.tsx +16 -0
  70. package/client/src/help/content/settings.tsx +4 -4
  71. package/client/src/help/manualSections/actions.tsx +19 -4
  72. package/client/src/help/manualSections/clusters.tsx +29 -16
  73. package/client/src/help/manualSections/configuration.tsx +6 -4
  74. package/client/src/help/manualSections/maintenance.tsx +27 -5
  75. package/client/src/help/manualSections/plans.tsx +96 -2
  76. package/client/src/help/manualSections/powerFeatures.tsx +2 -2
  77. package/client/src/help/manualSections/reference.tsx +6 -0
  78. package/client/src/help/manualSections/workspace.tsx +9 -5
  79. package/client/src/stores/appStore.ts +10 -1
  80. package/client/src/stores/appStore.types.ts +2 -0
  81. package/client/src/stores/mdTuneupStore.ts +5 -4
  82. package/client/src/stores/memoryTrim.ts +18 -2
  83. package/client/src/stores/storageWarningStore.ts +18 -0
  84. package/client/src/utils/gitDialogMemory.ts +26 -0
  85. package/client/src/utils/historyEvents.ts +1 -0
  86. package/client/src/utils/homeModel.ts +19 -0
  87. package/client/src/utils/publicProject.ts +56 -0
  88. package/client/src/ws/handleServerMessage.ts +7 -2
  89. package/docs/ARCHITECTURE.md +1 -1
  90. package/docs/CHECKPOINTS.md +2 -0
  91. package/docs/CLIENT.md +29 -11
  92. package/docs/FEATURES.md +14 -11
  93. package/docs/GETTING_STARTED.md +7 -7
  94. package/docs/GLOSSARY.md +3 -3
  95. package/docs/GOTCHAS.md +3 -2
  96. package/docs/HTTP_API.md +31 -1
  97. package/docs/NOTIFICATIONS.md +13 -14
  98. package/docs/OPERATIONS.md +27 -1
  99. package/docs/OPERATOR_ACTIONS.md +1 -1
  100. package/docs/OUTPUTS.md +9 -0
  101. package/docs/PERSISTENCE.md +34 -4
  102. package/docs/PLAN_OR_BOARD.md +7 -0
  103. package/docs/PRIMITIVES.md +3 -3
  104. package/docs/PROTOCOL.md +14 -4
  105. package/docs/PROTOCOL_CLUSTER.md +3 -2
  106. package/docs/SERVICE_MODE.md +5 -1
  107. package/docs/SETTINGS.md +8 -6
  108. package/docs/STORAGE_PLAN.md +324 -0
  109. package/docs/TASK_LEDGER.md +5 -4
  110. package/native/linux-arm64/manifest.json +1 -1
  111. package/node_modules/@arco/shared/dist/index.d.ts +2 -0
  112. package/node_modules/@arco/shared/dist/index.js +2 -0
  113. package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +1 -1
  114. package/node_modules/@arco/shared/dist/protocol/autoPickup.js +1 -1
  115. package/node_modules/@arco/shared/dist/protocol/checkpoints.d.ts +1 -0
  116. package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +2 -1
  117. package/node_modules/@arco/shared/dist/protocol/index.d.ts +1 -0
  118. package/node_modules/@arco/shared/dist/protocol/index.js +1 -0
  119. package/node_modules/@arco/shared/dist/protocol/mdTuneup.d.ts +6 -0
  120. package/node_modules/@arco/shared/dist/protocol/notifications.d.ts +2 -1
  121. package/node_modules/@arco/shared/dist/protocol/notifications.js +3 -2
  122. package/node_modules/@arco/shared/dist/protocol/plans.d.ts +2 -0
  123. package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +2 -1
  124. package/node_modules/@arco/shared/dist/protocol/storage.d.ts +21 -0
  125. package/node_modules/@arco/shared/dist/protocol/storage.js +3 -0
  126. package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +3 -0
  127. package/node_modules/@arco/shared/dist/protocol/utilityAgent.d.ts +2 -2
  128. package/node_modules/@arco/shared/dist/protocol/utilityAgent.js +2 -2
  129. package/node_modules/@arco/shared/dist/publicGuardrails.d.ts +7 -0
  130. package/node_modules/@arco/shared/dist/publicGuardrails.js +47 -0
  131. package/node_modules/@arco/shared/dist/publicSafetyRules.d.ts +1 -0
  132. package/node_modules/@arco/shared/dist/publicSafetyRules.js +6 -0
  133. package/node_modules/@arco/shared/package.json +1 -1
  134. package/package.json +3 -2
  135. package/scripts/packaging/arco.mjs +17 -1
  136. package/scripts/packaging/services.mjs +35 -5
  137. package/scripts/packaging/storage.mjs +125 -0
  138. package/scripts/packaging/update.mjs +3 -3
  139. package/server/dist/artifactCopy.d.ts +26 -0
  140. package/server/dist/artifactCopy.js +398 -0
  141. package/server/dist/atomicFile.d.ts +1 -0
  142. package/server/dist/atomicFile.js +1 -1
  143. package/server/dist/attention.d.ts +1 -1
  144. package/server/dist/attention.js +10 -13
  145. package/server/dist/catchUp.d.ts +2 -0
  146. package/server/dist/catchUp.js +46 -23
  147. package/server/dist/clusterPeerOps.d.ts +2 -0
  148. package/server/dist/clusterPeerOps.js +2 -0
  149. package/server/dist/clusterSnapshots.js +22 -12
  150. package/server/dist/eventLog.d.ts +55 -0
  151. package/server/dist/eventLog.js +792 -0
  152. package/server/dist/explorerLaunch.d.ts +4 -1
  153. package/server/dist/explorerLaunch.js +3 -2
  154. package/server/dist/explorerPlans.d.ts +4 -0
  155. package/server/dist/explorerPlans.js +27 -2
  156. package/server/dist/http/clusterRoutes.js +2 -0
  157. package/server/dist/http/explorerRoutes.js +2 -1
  158. package/server/dist/http/publicProjectRoutes.d.ts +2 -0
  159. package/server/dist/http/publicProjectRoutes.js +68 -0
  160. package/server/dist/http/router.js +6 -0
  161. package/server/dist/http/storageRoutes.d.ts +2 -0
  162. package/server/dist/http/storageRoutes.js +254 -0
  163. package/server/dist/http/usageStatsRoutes.js +3 -12
  164. package/server/dist/index.js +4 -0
  165. package/server/dist/keepStore.d.ts +16 -0
  166. package/server/dist/keepStore.js +119 -0
  167. package/server/dist/management/clusterActivity.js +6 -20
  168. package/server/dist/management/initHubLink.js +10 -43
  169. package/server/dist/mcp/clusterMcpTools.js +8 -1
  170. package/server/dist/notifications.d.ts +3 -1
  171. package/server/dist/notifications.js +5 -4
  172. package/server/dist/outputStore.d.ts +1 -0
  173. package/server/dist/outputStore.js +1 -1
  174. package/server/dist/outputs.js +39 -8
  175. package/server/dist/planHistory.d.ts +3 -0
  176. package/server/dist/planHistory.js +60 -0
  177. package/server/dist/primitives/runMdTuneup.d.ts +5 -1
  178. package/server/dist/primitives/runMdTuneup.js +43 -2
  179. package/server/dist/project/taskLedger.d.ts +4 -0
  180. package/server/dist/project/taskLedger.js +19 -0
  181. package/server/dist/providers/claude-native/peerTools.js +4 -0
  182. package/server/dist/providers/claude-native/resumeSummary.js +30 -19
  183. package/server/dist/providers/index.js +8 -13
  184. package/server/dist/providers/localProviderQueue.d.ts +2 -0
  185. package/server/dist/providers/localProviderQueue.js +11 -0
  186. package/server/dist/publicProject.d.ts +54 -0
  187. package/server/dist/publicProject.js +135 -0
  188. package/server/dist/recall/index.js +22 -23
  189. package/server/dist/server/broadcast.d.ts +2 -1
  190. package/server/dist/server/broadcast.js +56 -1
  191. package/server/dist/smartPickupAdapters.d.ts +7 -0
  192. package/server/dist/smartPickupAdapters.js +172 -8
  193. package/server/dist/storageActions.d.ts +50 -0
  194. package/server/dist/storageActions.js +326 -0
  195. package/server/dist/storageArchive.d.ts +24 -0
  196. package/server/dist/storageArchive.js +358 -0
  197. package/server/dist/storageOverview.d.ts +47 -0
  198. package/server/dist/storageOverview.js +197 -0
  199. package/server/dist/storageReport.d.ts +48 -0
  200. package/server/dist/storageReport.js +185 -0
  201. package/server/dist/storageWarnings.d.ts +4 -0
  202. package/server/dist/storageWarnings.js +96 -0
  203. package/server/dist/workers/limits.js +4 -1
  204. package/server/dist/workflowStore.d.ts +2 -0
  205. package/server/dist/workflowStore.js +88 -72
  206. package/server/dist/workflows/purgeWorkflow.d.ts +1 -0
  207. package/server/dist/workflows/purgeWorkflow.js +15 -2
  208. package/server/dist/workflows/sessionDiscovery.js +5 -17
  209. package/server/dist/workflows/sessionIndex.js +22 -17
  210. package/server/dist/ws/taskLedgerHandlers.js +8 -3
  211. package/server/dist/ws/workflowHandlers.js +5 -4
  212. package/server/package.json +1 -1
  213. package/server/src/artifactCopy.ts +254 -0
  214. package/server/src/atomicFile.ts +1 -1
  215. package/server/src/attention.ts +9 -10
  216. package/server/src/catchUp.ts +37 -15
  217. package/server/src/clusterPeerOps.ts +5 -0
  218. package/server/src/clusterSnapshots.ts +20 -13
  219. package/server/src/eventLog.ts +571 -0
  220. package/server/src/explorerLaunch.ts +3 -2
  221. package/server/src/explorerPlans.ts +22 -2
  222. package/server/src/http/clusterRoutes.ts +4 -1
  223. package/server/src/http/explorerRoutes.ts +2 -1
  224. package/server/src/http/publicProjectRoutes.ts +54 -0
  225. package/server/src/http/router.ts +4 -0
  226. package/server/src/http/storageRoutes.ts +187 -0
  227. package/server/src/http/usageStatsRoutes.ts +3 -11
  228. package/server/src/index.ts +4 -0
  229. package/server/src/keepStore.ts +102 -0
  230. package/server/src/management/clusterActivity.ts +6 -16
  231. package/server/src/management/initHubLink.ts +10 -39
  232. package/server/src/mcp/clusterMcpTools.ts +8 -2
  233. package/server/src/notifications.ts +4 -3
  234. package/server/src/outputStore.ts +5 -2
  235. package/server/src/outputs.ts +30 -6
  236. package/server/src/planHistory.ts +48 -0
  237. package/server/src/primitives/runMdTuneup.ts +32 -2
  238. package/server/src/project/taskLedger.ts +20 -0
  239. package/server/src/providers/claude-native/peerTools.ts +4 -0
  240. package/server/src/providers/claude-native/resumeSummary.ts +32 -18
  241. package/server/src/providers/index.ts +2 -16
  242. package/server/src/providers/localProviderQueue.ts +13 -0
  243. package/server/src/publicProject.ts +142 -0
  244. package/server/src/recall/index.ts +4 -9
  245. package/server/src/server/broadcast.ts +53 -1
  246. package/server/src/smartPickupAdapters.ts +128 -5
  247. package/server/src/storageActions.ts +216 -0
  248. package/server/src/storageArchive.ts +277 -0
  249. package/server/src/storageOverview.ts +184 -0
  250. package/server/src/storageReport.ts +210 -0
  251. package/server/src/storageWarnings.ts +84 -0
  252. package/server/src/workers/limits.ts +4 -1
  253. package/server/src/workflowStore.ts +78 -61
  254. package/server/src/workflows/purgeWorkflow.ts +12 -3
  255. package/server/src/workflows/sessionDiscovery.ts +5 -13
  256. package/server/src/workflows/sessionIndex.ts +5 -9
  257. package/server/src/ws/taskLedgerHandlers.ts +8 -3
  258. package/server/src/ws/workflowHandlers.ts +5 -4
  259. package/shared/dist/index.d.ts +2 -0
  260. package/shared/dist/index.js +2 -0
  261. package/shared/dist/protocol/autoPickup.d.ts +1 -1
  262. package/shared/dist/protocol/autoPickup.js +1 -1
  263. package/shared/dist/protocol/checkpoints.d.ts +1 -0
  264. package/shared/dist/protocol/clusters.d.ts +2 -1
  265. package/shared/dist/protocol/index.d.ts +1 -0
  266. package/shared/dist/protocol/index.js +1 -0
  267. package/shared/dist/protocol/mdTuneup.d.ts +6 -0
  268. package/shared/dist/protocol/notifications.d.ts +2 -1
  269. package/shared/dist/protocol/notifications.js +3 -2
  270. package/shared/dist/protocol/plans.d.ts +2 -0
  271. package/shared/dist/protocol/serverMessages.d.ts +2 -1
  272. package/shared/dist/protocol/storage.d.ts +21 -0
  273. package/shared/dist/protocol/storage.js +3 -0
  274. package/shared/dist/protocol/tasks.d.ts +3 -0
  275. package/shared/dist/protocol/utilityAgent.d.ts +2 -2
  276. package/shared/dist/protocol/utilityAgent.js +2 -2
  277. package/shared/dist/publicGuardrails.d.ts +7 -0
  278. package/shared/dist/publicGuardrails.js +47 -0
  279. package/shared/dist/publicSafetyRules.d.ts +1 -0
  280. package/shared/dist/publicSafetyRules.js +6 -0
  281. package/shared/src/index.ts +3 -0
  282. package/shared/src/protocol/autoPickup.ts +1 -1
  283. package/shared/src/protocol/checkpoints.ts +4 -0
  284. package/shared/src/protocol/clusters.ts +6 -1
  285. package/shared/src/protocol/index.ts +1 -0
  286. package/shared/src/protocol/mdTuneup.ts +5 -0
  287. package/shared/src/protocol/notifications.ts +6 -2
  288. package/shared/src/protocol/plans.ts +2 -0
  289. package/shared/src/protocol/serverMessages.ts +2 -0
  290. package/shared/src/protocol/storage.ts +35 -0
  291. package/shared/src/protocol/tasks.ts +6 -0
  292. package/shared/src/protocol/utilityAgent.ts +2 -2
  293. package/shared/src/publicGuardrails.ts +50 -0
  294. package/shared/src/publicSafetyRules.ts +5 -0
  295. package/client/dist/assets/index-CcNtMA2y.js +0 -546
  296. package/client/dist/assets/index-Dl8tYsSp.css +0 -1
@@ -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 and per channel, off by default, and never create an
27
- // in-app toast.
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 },
@@ -69,6 +69,8 @@ export interface PlanRefFull extends PlanRefSummary {
69
69
  }
70
70
  export interface PlanLibraryEntry extends PlanSummary {
71
71
  refCount: number;
72
+ checkboxTotal?: number;
73
+ checkboxDone?: number;
72
74
  attached: boolean;
73
75
  clusters: Array<{
74
76
  clusterId: string;
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ // Storage warnings and the KEEP mark (P7.4, docs/STORAGE_PLAN.md).
2
+ export {};
3
+ //# sourceMappingURL=storage.js.map
@@ -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 = 600;
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;
@@ -6,12 +6,12 @@
6
6
  // Claude Native (no tools field), Cursor (Ask mode, no capabilities), Ollama
7
7
  // (no tools field) and Codex (one-shot app-server, read-only sandbox, any
8
8
  // tool item or approval request ends the turn).
9
- export const UTILITY_AGENT_PROVIDERS = ['claude', 'codex', 'cursor', 'ollama'];
9
+ export const UTILITY_AGENT_PROVIDERS = ['claude', 'codex', 'cursor', 'ollama', 'lmstudio', 'llamacpp', 'strata', 'deepseek'];
10
10
  export const UTILITY_AGENT_MODEL_MAX = 200;
11
11
  // Input beyond this many characters is cut before it is sent.
12
12
  export const UTILITY_JOB_INPUT_MAX_CHARS = 24_000;
13
13
  export const UTILITY_JOB_TIMEOUT_MS = 60_000;
14
- export const UTILITY_JOB_MAX_OUTPUT_TOKENS = 600;
14
+ export const UTILITY_JOB_MAX_OUTPUT_TOKENS = 2048;
15
15
  export function sanitizeUtilityAgent(raw) {
16
16
  if (!raw || typeof raw !== 'object')
17
17
  return null;
@@ -0,0 +1,7 @@
1
+ export declare const GUARDRAILS_HEADING = "Privacy and public safety";
2
+ export declare const PUBLIC_GUARDRAILS_TEMPLATE = "## Privacy and public safety\n\nThis project is public, or will be. Every commit, push and release follows these rules.\n\n**Never committed or published**\n- Secrets: tokens, keys, passwords, `.env` files and credentials.\n- Local details: file paths from a machine, machine and host names, IP addresses and usernames.\n- Personal data of anyone.\n- Screenshots, logs and recordings that show any of the above.\n- Private agent state and instruction files kept for local use.\n\n**Identity**\n- Every commit uses the project's chosen author and committer identity, with no other names or tool attributions in commits, pull requests or release notes.\n\n**How the rules are enforced**\n- Ignore rules keep private state, local configuration and scratch files out of the repository.\n- A secret scanner or a pre-commit check runs before every commit.\n- The staged diff is read in full before each commit and each push.\n\n**When something slips**\n- Revoke or rotate the secret first.\n- Rewriting history does not undo a push that was public: assume anything pushed was seen.\n";
3
+ export declare function hasGuardrails(body: string): boolean;
4
+ /** Insert the template before the first phase heading (or at the end). Returns the body unchanged when already present. */
5
+ export declare function insertGuardrails(body: string): string;
6
+ /** Text added to the plan draft prompt when the project is public. */
7
+ export declare const PUBLIC_DRAFT_REQUEST = "This project is public, or will be. Include a \"Privacy and public safety\" section of standing rules fitted to this project, placed before the first phase. Do not use ### headings inside it: ### lines are phases, so use bold labels and flat lists. Start from this template, name the project-specific risks you can see, and say how each rule is enforced:\n\n## Privacy and public safety\n\nThis project is public, or will be. Every commit, push and release follows these rules.\n\n**Never committed or published**\n- Secrets: tokens, keys, passwords, `.env` files and credentials.\n- Local details: file paths from a machine, machine and host names, IP addresses and usernames.\n- Personal data of anyone.\n- Screenshots, logs and recordings that show any of the above.\n- Private agent state and instruction files kept for local use.\n\n**Identity**\n- Every commit uses the project's chosen author and committer identity, with no other names or tool attributions in commits, pull requests or release notes.\n\n**How the rules are enforced**\n- Ignore rules keep private state, local configuration and scratch files out of the repository.\n- A secret scanner or a pre-commit check runs before every commit.\n- The staged diff is read in full before each commit and each push.\n\n**When something slips**\n- Revoke or rotate the secret first.\n- Rewriting history does not undo a push that was public: assume anything pushed was seen.\n";
@@ -0,0 +1,47 @@
1
+ // Shared "Privacy and public safety" plan section. One fixed, generic template
2
+ // used by the plan draft prompt (when a project is public) and by INSERT
3
+ // GUARDRAILS in the plan view. Plain language; no real names or paths.
4
+ export const GUARDRAILS_HEADING = 'Privacy and public safety';
5
+ export const PUBLIC_GUARDRAILS_TEMPLATE = `## ${GUARDRAILS_HEADING}
6
+
7
+ This project is public, or will be. Every commit, push and release follows these rules.
8
+
9
+ **Never committed or published**
10
+ - Secrets: tokens, keys, passwords, \`.env\` files and credentials.
11
+ - Local details: file paths from a machine, machine and host names, IP addresses and usernames.
12
+ - Personal data of anyone.
13
+ - Screenshots, logs and recordings that show any of the above.
14
+ - Private agent state and instruction files kept for local use.
15
+
16
+ **Identity**
17
+ - Every commit uses the project's chosen author and committer identity, with no other names or tool attributions in commits, pull requests or release notes.
18
+
19
+ **How the rules are enforced**
20
+ - Ignore rules keep private state, local configuration and scratch files out of the repository.
21
+ - A secret scanner or a pre-commit check runs before every commit.
22
+ - The staged diff is read in full before each commit and each push.
23
+
24
+ **When something slips**
25
+ - Revoke or rotate the secret first.
26
+ - Rewriting history does not undo a push that was public: assume anything pushed was seen.
27
+ `;
28
+ const HEADING_RE = new RegExp(`^#{1,6}\\s*${GUARDRAILS_HEADING}\\s*$`, 'im');
29
+ export function hasGuardrails(body) {
30
+ return HEADING_RE.test(body);
31
+ }
32
+ /** Insert the template before the first phase heading (or at the end). Returns the body unchanged when already present. */
33
+ export function insertGuardrails(body) {
34
+ if (hasGuardrails(body))
35
+ return body;
36
+ const match = /^### .*$/m.exec(body);
37
+ const block = `${PUBLIC_GUARDRAILS_TEMPLATE}\n`;
38
+ if (!match)
39
+ return `${body.replace(/\s+$/, '')}${body.trim() ? '\n\n' : ''}${PUBLIC_GUARDRAILS_TEMPLATE}`;
40
+ const head = body.slice(0, match.index).replace(/\s+$/, '');
41
+ return `${head}${head ? '\n\n' : ''}${block}${body.slice(match.index)}`;
42
+ }
43
+ /** Text added to the plan draft prompt when the project is public. */
44
+ export const PUBLIC_DRAFT_REQUEST = `This project is public, or will be. Include a "${GUARDRAILS_HEADING}" section of standing rules fitted to this project, placed before the first phase. Do not use ### headings inside it: ### lines are phases, so use bold labels and flat lists. Start from this template, name the project-specific risks you can see, and say how each rule is enforced:
45
+
46
+ ${PUBLIC_GUARDRAILS_TEMPLATE}`;
47
+ //# sourceMappingURL=publicGuardrails.js.map
@@ -0,0 +1 @@
1
+ export declare const publicSafetyRules: readonly [readonly ["private-key", RegExp], readonly ["provider-token", RegExp], readonly ["credential-assignment", RegExp]];
@@ -0,0 +1,6 @@
1
+ export const publicSafetyRules = [
2
+ ['private-key', /-----BEGIN (?:RSA |EC |DSA |OPENSSH )?PRIVATE KEY-----/],
3
+ ['provider-token', /\b(?:sk-(?:proj-|ant-api\d+-)?[A-Za-z0-9_-]{24,}|gh[pousr]_[A-Za-z0-9]{30,}|github_pat_[A-Za-z0-9_]{40,}|AKIA[0-9A-Z]{16})\b/],
4
+ ['credential-assignment', /\b(?:api_key|apiKey|access_token|refresh_token|client_secret)\s*[=:]\s*["'][A-Za-z0-9_./+\-=]{32,}["']/],
5
+ ];
6
+ //# sourceMappingURL=publicSafetyRules.js.map
@@ -6,3 +6,6 @@ export * from './outputs.js';
6
6
  export * from './clusterCoordination.js';
7
7
  export * from './localCapacity.js';
8
8
  export * from './autoPickupAck.js';
9
+ export * from './publicGuardrails.js';
10
+
11
+ export * from './publicSafetyRules.js';
@@ -35,7 +35,7 @@ export function resolveAutoPickupMode(mode: unknown, legacyEnabled: unknown): Au
35
35
  return legacyEnabled === true ? 'rule' : 'off';
36
36
  }
37
37
 
38
- export const SMART_PICKUP_EVALUATOR_PROVIDERS = ['claude', 'codex', 'cursor', 'ollama'] as const;
38
+ export const SMART_PICKUP_EVALUATOR_PROVIDERS = ['claude', 'codex', 'cursor', 'ollama', 'lmstudio', 'llamacpp', 'strata', 'deepseek'] as const;
39
39
  export type SmartPickupEvaluatorProvider = typeof SMART_PICKUP_EVALUATOR_PROVIDERS[number];
40
40
 
41
41
  export interface SmartPickupEvaluator {
@@ -166,6 +166,10 @@ export interface CheckpointRevertedMessage {
166
166
  workflowId: string;
167
167
  // The checkpoint that was restored (its guard seq).
168
168
  seq: number;
169
+ // Same value as `seq`, kept under a name that survives the event envelope
170
+ // (which replaces `seq` with the event sequence) so history can tell which
171
+ // checkpoint was restored.
172
+ restoredSeq?: number;
169
173
  // Number of files in the restored tree.
170
174
  fileCount: number;
171
175
  // The safety snapshot taken BEFORE the revert — ref (git) or tar name.
@@ -894,10 +894,15 @@ export interface ClusterMemberReplacedMessage {
894
894
  // `bodyLength` is logged into events.jsonl (the lightweight audit shape —
895
895
  // the full body lives on disk under <cwd>/.arco/plans/ and in the next
896
896
  // cluster_state push). Fired on cluster_plan_set / attach / clear.
897
+ // Live pushes carry `body`. The audit copy written to each member's
898
+ // events.jsonl carries `bodySha256` instead (P7.2): the body is stored once in
899
+ // <cwd>/.arco/plans/.history/<sha256>.md. Logs written before 0.1.4 carry
900
+ // `body`; a cleared plan, or a body that could not be stored, keeps `body`.
897
901
  export interface ClusterPlanChangedMessage {
898
902
  type: 'cluster_plan_changed';
899
903
  clusterId: string;
900
- body: string; // empty string = cleared
904
+ body?: string; // empty string = cleared
905
+ bodySha256?: string;
901
906
  updatedAt: number;
902
907
  bodyLength: number; // duplicates body.length for the events.jsonl audit row
903
908
  }
@@ -25,6 +25,7 @@ export * from './mdTuneup.js';
25
25
  export * from './handoffs.js';
26
26
  export * from './checkpoints.js';
27
27
  export * from './liveChanges.js';
28
+ export * from './storage.js';
28
29
  export * from './gitOps.js';
29
30
  export * from './bakeoffs.js';
30
31
  export * from './terminal.js';
@@ -16,8 +16,12 @@ export interface MdTuneupCandidate {
16
16
  lines?: number;
17
17
  approximateTokens?: number;
18
18
  hints?: string[];
19
+ // Relative paths of instruction-name links that resolve to this file.
20
+ alsoReadAs?: string[];
19
21
  }
20
22
 
23
+ export interface MdTuneupSkippedLink { path: string; reason: string; }
24
+
21
25
  // Client asks the server which instruction files exist in the cwd (so the
22
26
  // dialog can offer a pick list instead of guessing). Fired when the operator
23
27
  // opens the TUNE MD dialog.
@@ -32,6 +36,7 @@ export interface MdTuneupCandidatesMessage {
32
36
  type: 'md_tuneup_candidates';
33
37
  workflowId: string;
34
38
  candidates: MdTuneupCandidate[];
39
+ skippedLinks?: MdTuneupSkippedLink[];
35
40
  defaultPath?: string;
36
41
  }
37
42
 
@@ -14,6 +14,7 @@ import type { ProviderName } from './providers.js';
14
14
 
15
15
  // The seven workbench event categories from the plan. Mute is per-category.
16
16
  export type WorkbenchNoticeCategory =
17
+ | 'attention' // failed or waiting attention notice
17
18
  | 'port-change' // package startup moved to an available port
18
19
  | 'computer-watch' // explicitly armed Computer completion watch
19
20
  | 'turn-finished' // a long primary turn completed
@@ -29,6 +30,7 @@ export const WORKBENCH_NOTICE_CATEGORIES: readonly WorkbenchNoticeCategory[] = [
29
30
  'port-change',
30
31
  'computer-watch',
31
32
  'turn-finished',
33
+ 'attention',
32
34
  'quota-recovered',
33
35
  'auth-expired',
34
36
  'cluster-nudge',
@@ -78,8 +80,8 @@ export interface SetNotificationMutesMessage {
78
80
 
79
81
  // ---------------------------------------------------------------------------
80
82
  // Attention alerts (desktop and phone). Separate from workbench notices: they
81
- // are opt-in per event and per channel, off by default, and never create an
82
- // in-app toast.
83
+ // are opt-in per event for desktop and phone, and never create an in-app toast.
84
+ // Quiet in-app notices follow the existing BELL category settings.
83
85
 
84
86
  export const ATTENTION_KINDS = ['finished', 'failed', 'waiting'] as const;
85
87
  export type AttentionKind = typeof ATTENTION_KINDS[number];
@@ -167,4 +169,6 @@ export interface AttentionEventMessage {
167
169
  kind: AttentionKind;
168
170
  workflowId: string;
169
171
  workflowName: string;
172
+ // Short turns and filtered cluster members can still produce in-app notices.
173
+ desktopEligible?: boolean;
170
174
  }
@@ -148,6 +148,8 @@ export interface PlanRefFull extends PlanRefSummary {
148
148
  // One row of `GET /api/explorer/plans` — the cross-project plans library.
149
149
  export interface PlanLibraryEntry extends PlanSummary {
150
150
  refCount: number;
151
+ checkboxTotal?: number;
152
+ checkboxDone?: number;
151
153
  // True when a workflow attachment span is still open or a cluster binds it.
152
154
  attached: boolean;
153
155
  clusters: Array<{ clusterId: string; name: string }>;
@@ -42,6 +42,7 @@ import type {
42
42
  } from './handoffs.js';
43
43
  import type { CheckpointCreatedMessage, CheckpointRevertedMessage, TurnChangesMessage } from './checkpoints.js';
44
44
  import type { LiveChangesSnapshotMessage } from './liveChanges.js';
45
+ import type { StorageWarningMessage } from './storage.js';
45
46
  import type { GitOpResultMessage } from './gitOps.js';
46
47
  import type { MediaOpResultMessage, MediaStemsResultMessage } from './media.js';
47
48
  import type { TerminalOpenedMessage, TerminalKilledMessage, TerminalCommandLoggedMessage, TerminalSessionsMessage } from './terminal.js';
@@ -1416,6 +1417,7 @@ export interface TurnMessagesDeliveredMessage {
1416
1417
  }
1417
1418
 
1418
1419
  export type ServerMessage =
1420
+ | StorageWarningMessage
1419
1421
  | TurnMessagesDeliveredMessage
1420
1422
  | AppUpdateAvailableMessage
1421
1423
  | ComputerActivityChangedMessage
@@ -0,0 +1,35 @@
1
+ // Storage warnings and the KEEP mark (P7.4, docs/STORAGE_PLAN.md).
2
+
3
+ // One large item in a conversation folder. `path` is relative to the
4
+ // conversation folder and uses `/`: a single artifact file, or `artifacts`
5
+ // for the conversation's whole artifacts folder when its total is large.
6
+ export interface StorageWarningItem {
7
+ path: string;
8
+ bytes: number;
9
+ kind: 'file' | 'conversation';
10
+ }
11
+
12
+ // Sent (and logged) after a turn ends when an artifact file reaches the file
13
+ // threshold or a conversation's artifacts reach the conversation threshold.
14
+ // Each item warns once; approving it sets KEEP with reason `size-warning`,
15
+ // and a kept item never warns again.
16
+ export interface StorageWarningMessage {
17
+ type: 'storage_warning';
18
+ workflowId: string;
19
+ items: StorageWarningItem[];
20
+ fileThresholdBytes: number;
21
+ conversationThresholdBytes: number;
22
+ }
23
+
24
+ // <project>/.arco/workflows/<id>/keep.json. Archive, delete, EMPTY SCRATCH
25
+ // and size warnings skip kept items. A kept path covers everything below it;
26
+ // "." keeps the whole conversation.
27
+ export interface KeepItem {
28
+ path: string;
29
+ reason: 'operator' | 'size-warning';
30
+ at: number;
31
+ }
32
+ export interface KeepFile {
33
+ version: 1;
34
+ items: KeepItem[];
35
+ }
@@ -84,6 +84,9 @@ export interface LedgerTask {
84
84
  // Director/workers Stage J — task should run isolated. Dispatcher skips
85
85
  // until a worktree exists unless the operator armed autoWorktree.
86
86
  worktreeRequired?: boolean;
87
+ // Optional release label such as "0.1.4" so a board can answer what is in a
88
+ // release. Absent = unlabeled (the common case); older ledgers never carry it.
89
+ release?: string;
87
90
  // §D3 — the director's advisory sign-off verdict. See TaskSignoff. Absent =
88
91
  // not yet reviewed (the board renders PENDING). Additive + projection-safe.
89
92
  signoff?: TaskSignoff;
@@ -202,6 +205,7 @@ export interface TaskLedgerCreateMessage {
202
205
  goalMode?: boolean;
203
206
  goalMaxTurns?: number;
204
207
  worktreeRequired?: boolean;
208
+ release?: string;
205
209
  }
206
210
 
207
211
  // Patch an existing task. Any subset of fields. `status: 'done'` is honored
@@ -223,6 +227,8 @@ export interface TaskLedgerUpdateMessage {
223
227
  goalMode?: boolean;
224
228
  goalMaxTurns?: number | null;
225
229
  worktreeRequired?: boolean;
230
+ // Release label; an empty string clears it.
231
+ release?: string;
226
232
  // §D3 — operator-side (re)assignment from the LEDGER tab. Empty string
227
233
  // clears the claim (→ unassigned). Workers never reach this message; they
228
234
  // claim/release through the `cluster_task_*` peer-tools.
@@ -7,7 +7,7 @@
7
7
  // Claude Native (no tools field), Cursor (Ask mode, no capabilities), Ollama
8
8
  // (no tools field) and Codex (one-shot app-server, read-only sandbox, any
9
9
  // tool item or approval request ends the turn).
10
- export const UTILITY_AGENT_PROVIDERS = ['claude', 'codex', 'cursor', 'ollama'] as const;
10
+ export const UTILITY_AGENT_PROVIDERS = ['claude', 'codex', 'cursor', 'ollama', 'lmstudio', 'llamacpp', 'strata', 'deepseek'] as const;
11
11
  export type UtilityAgentProvider = typeof UTILITY_AGENT_PROVIDERS[number];
12
12
 
13
13
  export interface UtilityAgent {
@@ -19,7 +19,7 @@ export const UTILITY_AGENT_MODEL_MAX = 200;
19
19
  // Input beyond this many characters is cut before it is sent.
20
20
  export const UTILITY_JOB_INPUT_MAX_CHARS = 24_000;
21
21
  export const UTILITY_JOB_TIMEOUT_MS = 60_000;
22
- export const UTILITY_JOB_MAX_OUTPUT_TOKENS = 600;
22
+ export const UTILITY_JOB_MAX_OUTPUT_TOKENS = 2048;
23
23
 
24
24
  export function sanitizeUtilityAgent(raw: unknown): UtilityAgent | null {
25
25
  if (!raw || typeof raw !== 'object') return null;
@@ -0,0 +1,50 @@
1
+ // Shared "Privacy and public safety" plan section. One fixed, generic template
2
+ // used by the plan draft prompt (when a project is public) and by INSERT
3
+ // GUARDRAILS in the plan view. Plain language; no real names or paths.
4
+
5
+ export const GUARDRAILS_HEADING = 'Privacy and public safety';
6
+
7
+ export const PUBLIC_GUARDRAILS_TEMPLATE = `## ${GUARDRAILS_HEADING}
8
+
9
+ This project is public, or will be. Every commit, push and release follows these rules.
10
+
11
+ **Never committed or published**
12
+ - Secrets: tokens, keys, passwords, \`.env\` files and credentials.
13
+ - Local details: file paths from a machine, machine and host names, IP addresses and usernames.
14
+ - Personal data of anyone.
15
+ - Screenshots, logs and recordings that show any of the above.
16
+ - Private agent state and instruction files kept for local use.
17
+
18
+ **Identity**
19
+ - Every commit uses the project's chosen author and committer identity, with no other names or tool attributions in commits, pull requests or release notes.
20
+
21
+ **How the rules are enforced**
22
+ - Ignore rules keep private state, local configuration and scratch files out of the repository.
23
+ - A secret scanner or a pre-commit check runs before every commit.
24
+ - The staged diff is read in full before each commit and each push.
25
+
26
+ **When something slips**
27
+ - Revoke or rotate the secret first.
28
+ - Rewriting history does not undo a push that was public: assume anything pushed was seen.
29
+ `;
30
+
31
+ const HEADING_RE = new RegExp(`^#{1,6}\\s*${GUARDRAILS_HEADING}\\s*$`, 'im');
32
+
33
+ export function hasGuardrails(body: string): boolean {
34
+ return HEADING_RE.test(body);
35
+ }
36
+
37
+ /** Insert the template before the first phase heading (or at the end). Returns the body unchanged when already present. */
38
+ export function insertGuardrails(body: string): string {
39
+ if (hasGuardrails(body)) return body;
40
+ const match = /^### .*$/m.exec(body);
41
+ const block = `${PUBLIC_GUARDRAILS_TEMPLATE}\n`;
42
+ if (!match) return `${body.replace(/\s+$/, '')}${body.trim() ? '\n\n' : ''}${PUBLIC_GUARDRAILS_TEMPLATE}`;
43
+ const head = body.slice(0, match.index).replace(/\s+$/, '');
44
+ return `${head}${head ? '\n\n' : ''}${block}${body.slice(match.index)}`;
45
+ }
46
+
47
+ /** Text added to the plan draft prompt when the project is public. */
48
+ export const PUBLIC_DRAFT_REQUEST = `This project is public, or will be. Include a "${GUARDRAILS_HEADING}" section of standing rules fitted to this project, placed before the first phase. Do not use ### headings inside it: ### lines are phases, so use bold labels and flat lists. Start from this template, name the project-specific risks you can see, and say how each rule is enforced:
49
+
50
+ ${PUBLIC_GUARDRAILS_TEMPLATE}`;
@@ -0,0 +1,5 @@
1
+ export const publicSafetyRules = [
2
+ ['private-key', /-----BEGIN (?:RSA |EC |DSA |OPENSSH )?PRIVATE KEY-----/],
3
+ ['provider-token', /\b(?:sk-(?:proj-|ant-api\d+-)?[A-Za-z0-9_-]{24,}|gh[pousr]_[A-Za-z0-9]{30,}|github_pat_[A-Za-z0-9_]{40,}|AKIA[0-9A-Z]{16})\b/],
4
+ ['credential-assignment', /\b(?:api_key|apiKey|access_token|refresh_token|client_secret)\s*[=:]\s*["'][A-Za-z0-9_./+\-=]{32,}["']/],
5
+ ] as const;