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
@@ -1,6 +1,7 @@
1
1
  import { useEffect, useRef, useState } from 'react';
2
2
  import { useAppStore, type JobState } from '../stores/appStore';
3
3
  import type { PlanFull } from '@arco/shared';
4
+ import { beginPlanRefine } from './terminalInput/planDraft';
4
5
 
5
6
  interface Props {
6
7
  job: JobState;
@@ -9,6 +10,8 @@ interface Props {
9
10
  // member: routes the body to the cluster's shared PLAN. The server creates
10
11
  // or updates the canonical per-cwd plan automatically.
11
12
  onAttachToCluster?: (body: string) => Promise<void> | void;
13
+ // Sends a plan-review turn to this tab's agent; enables REFINE.
14
+ onSend?: (content: string, attachments?: string[], kind?: 'steer' | 'follow-up' | 'interrupt', primitive?: 'docs' | 'git' | 'plan-review') => boolean | void;
12
15
  }
13
16
 
14
17
  // Sits between the chat panel and the composer. Shows up when
@@ -17,7 +20,7 @@ interface Props {
17
20
  // - mode 'review' → SAVE & ATTACH / DISCARD buttons
18
21
  // - mode 'autosave' → fires the save itself on mount, briefly shows a
19
22
  // "saved" status then dismisses
20
- export function PlanCandidateBanner({ job, onAttachPlan, onAttachToCluster }: Props) {
23
+ export function PlanCandidateBanner({ job, onAttachPlan, onAttachToCluster, onSend }: Props) {
21
24
  const candidate = job.planCandidate;
22
25
  const setPlanCandidate = useAppStore((s) => s.setPlanCandidate);
23
26
  const cwd = job.config.workingDirectory;
@@ -25,6 +28,10 @@ export function PlanCandidateBanner({ job, onAttachPlan, onAttachToCluster }: Pr
25
28
  const [error, setError] = useState<string | null>(null);
26
29
  const [savedTitle, setSavedTitle] = useState<string | null>(null);
27
30
  const autosaveFiredRef = useRef(false);
31
+ const [refining, setRefining] = useState(false);
32
+ const [note, setNote] = useState('');
33
+ const pushNotification = useAppStore((s) => s.pushNotification);
34
+ const revising = job.pendingPlanCapture === 'review';
28
35
 
29
36
  // Pulled out of the JSX because the autosave path calls it via useEffect
30
37
  // before any click can. Returns the created PlanFull or throws.
@@ -89,68 +96,115 @@ export function PlanCandidateBanner({ job, onAttachPlan, onAttachToCluster }: Pr
89
96
  );
90
97
  }
91
98
 
92
- // Review mode — operator picks Save or Discard.
99
+ // Review mode: the operator saves, refines or discards the draft. In a
100
+ // cluster tab the only save target is the cluster plan.
101
+ const submitRefine = () => {
102
+ if (!onSend) return;
103
+ if (beginPlanRefine(job.id, (content) => onSend(content, undefined, undefined, 'plan-review'), note, Boolean(onAttachToCluster))) {
104
+ setRefining(false);
105
+ setNote('');
106
+ setError(null);
107
+ } else {
108
+ pushNotification('error', 'Wait for the current turn to finish, and enter a note, before refining the plan draft.');
109
+ }
110
+ };
111
+ const afterSave = (title: string) => {
112
+ setSavedTitle(title);
113
+ setTimeout(() => setPlanCandidate(job.id, null), 2500);
114
+ };
115
+ const busy = saving || revising;
93
116
  return (
94
- <div style={bannerStyle}>
95
- <span className="display-font" style={{ color: 'var(--color-accent-secondary)', fontSize: '10px', letterSpacing: '1.5px' }}>
96
- PLAN DRAFT READY
97
- </span>
98
- <span style={{ color: 'var(--color-fg-muted)', fontSize: '10px', flex: 1 }}>
99
- {candidate.body.length} chars · {extractPlanTitle(candidate.body)}
100
- </span>
101
- {error && <span style={{ color: 'var(--color-warning)', fontSize: '10px' }}>{error}</span>}
102
- <button
103
- disabled={saving}
104
- onClick={async () => {
105
- setSaving(true);
106
- setError(null);
107
- try {
108
- const plan = await persist();
109
- onAttachPlan?.(plan.id);
110
- setSavedTitle(plan.title);
111
- setTimeout(() => setPlanCandidate(job.id, null), 2500);
112
- } catch (err) {
113
- setError(err instanceof Error ? err.message : String(err));
114
- } finally {
115
- setSaving(false);
116
- }
117
- }}
118
- className="display-font"
119
- style={primaryBtn}
120
- >
121
- {saving ? 'SAVING…' : (onAttachToCluster ? 'ATTACH TO WORKER' : 'SAVE & ATTACH')}
122
- </button>
123
- {onAttachToCluster && (
117
+ <div>
118
+ <div style={bannerStyle}>
119
+ <span className="display-font" style={{ color: 'var(--color-accent-secondary)', fontSize: '10px', letterSpacing: '1.5px' }}>
120
+ {revising ? 'REVISING PLAN DRAFT...' : 'PLAN DRAFT READY'}
121
+ </span>
122
+ <span style={{ color: 'var(--color-fg-muted)', fontSize: '10px', flex: 1 }}>
123
+ {candidate.body.length} chars · {extractPlanTitle(candidate.body)}
124
+ </span>
125
+ {error && <span style={{ color: 'var(--color-warning)', fontSize: '10px' }}>{error}</span>}
126
+ {onAttachToCluster ? (
127
+ <button
128
+ data-help="cluster.plan-tab.attach-from-banner"
129
+ disabled={busy}
130
+ onClick={async () => {
131
+ setSaving(true);
132
+ setError(null);
133
+ try {
134
+ await onAttachToCluster(candidate.body);
135
+ afterSave(extractPlanTitle(candidate.body));
136
+ } catch (err) {
137
+ setError(err instanceof Error ? err.message : String(err));
138
+ } finally {
139
+ setSaving(false);
140
+ }
141
+ }}
142
+ className="display-font"
143
+ style={primaryBtn}
144
+ >
145
+ {saving ? 'SAVING…' : 'ATTACH TO CLUSTER'}
146
+ </button>
147
+ ) : (
148
+ <button
149
+ disabled={busy}
150
+ onClick={async () => {
151
+ setSaving(true);
152
+ setError(null);
153
+ try {
154
+ const plan = await persist();
155
+ onAttachPlan?.(plan.id);
156
+ afterSave(plan.title);
157
+ } catch (err) {
158
+ setError(err instanceof Error ? err.message : String(err));
159
+ } finally {
160
+ setSaving(false);
161
+ }
162
+ }}
163
+ className="display-font"
164
+ style={primaryBtn}
165
+ >
166
+ {saving ? 'SAVING…' : 'SAVE & ATTACH'}
167
+ </button>
168
+ )}
169
+ {onSend && (
170
+ <button
171
+ data-help="composer.plan-refine"
172
+ disabled={busy}
173
+ onClick={() => setRefining((v) => !v)}
174
+ className="display-font"
175
+ style={ghostBtn}
176
+ >
177
+ REFINE
178
+ </button>
179
+ )}
124
180
  <button
125
- data-help="cluster.plan-tab.attach-from-banner"
126
- disabled={saving}
127
- onClick={async () => {
128
- setSaving(true);
129
- setError(null);
130
- try {
131
- await onAttachToCluster(candidate.body);
132
- setSavedTitle(extractPlanTitle(candidate.body));
133
- setTimeout(() => setPlanCandidate(job.id, null), 2500);
134
- } catch (err) {
135
- setError(err instanceof Error ? err.message : String(err));
136
- } finally {
137
- setSaving(false);
138
- }
139
- }}
181
+ disabled={busy}
182
+ onClick={() => setPlanCandidate(job.id, null)}
140
183
  className="display-font"
141
- style={primaryBtn}
184
+ style={ghostBtn}
142
185
  >
143
- ATTACH TO CLUSTER
186
+ DISCARD
144
187
  </button>
188
+ </div>
189
+ {refining && !revising && (
190
+ <div style={{ ...bannerStyle, borderTop: 'none' }}>
191
+ <input
192
+ data-help="composer.plan-refine-note"
193
+ autoFocus
194
+ value={note}
195
+ maxLength={2000}
196
+ placeholder="What should change in this draft?"
197
+ onChange={(e) => setNote(e.target.value)}
198
+ onKeyDown={(e) => {
199
+ if (e.key === 'Enter' && note.trim()) submitRefine();
200
+ if (e.key === 'Escape') setRefining(false);
201
+ }}
202
+ style={{ flex: 1, minWidth: 0, background: 'transparent', border: '1px solid var(--color-border-hairline)', color: 'var(--color-fg-primary)', padding: '4px 8px', fontSize: '11px', fontFamily: 'var(--font-body)' }}
203
+ />
204
+ <button disabled={!note.trim()} onClick={submitRefine} className="display-font" style={primaryBtn}>SEND</button>
205
+ <button onClick={() => setRefining(false)} className="display-font" style={ghostBtn}>CANCEL</button>
206
+ </div>
145
207
  )}
146
- <button
147
- disabled={saving}
148
- onClick={() => setPlanCandidate(job.id, null)}
149
- className="display-font"
150
- style={ghostBtn}
151
- >
152
- DISCARD
153
- </button>
154
208
  </div>
155
209
  );
156
210
  }
@@ -1,4 +1,6 @@
1
1
  import type { JobState } from '../stores/appStore';
2
+ import { DialogShell } from './DialogShell';
3
+ import { PublicProjectBox } from './PublicProjectBox';
2
4
 
3
5
  interface Props {
4
6
  job: JobState;
@@ -21,96 +23,63 @@ interface Props {
21
23
  export function PlanComposerDialog({ job, onConfirm, onCancel, isClusterMember }: Props) {
22
24
  const hasExistingPlan = Boolean(job.plan);
23
25
  return (
24
- <div
25
- style={{
26
- position: 'fixed',
27
- inset: 0,
28
- background: 'rgba(0,0,0,0.6)',
29
- zIndex: 50,
30
- display: 'flex',
31
- alignItems: 'center',
32
- justifyContent: 'center',
33
- }}
34
- onClick={onCancel}
26
+ <DialogShell
27
+ title="Draft project plan"
28
+ dataHelp="composer.plan"
29
+ onClose={onCancel}
30
+ closeOnBackdrop
31
+ width={460}
32
+ zIndex={50}
33
+ actions={(
34
+ <button onClick={onCancel} data-help="plan.composer-cancel" className="display-font" style={cancelBtn}>
35
+ CANCEL
36
+ </button>
37
+ )}
35
38
  >
36
- <div
37
- onClick={(e) => e.stopPropagation()}
38
- style={{
39
- background: 'var(--color-bg-dialog)',
40
- border: '1px solid var(--color-accent-primary-dim)',
41
- borderRadius: '6px',
42
- padding: '18px 22px',
43
- width: 'min(460px, calc(92vw / var(--ui-scale, 1)))',
44
- fontFamily: 'var(--font-body)',
45
- }}
46
- >
47
- <div
48
- className="display-font"
49
- style={{
50
- fontSize: '12px',
51
- letterSpacing: '3px',
52
- color: 'var(--color-accent-primary)',
53
- marginBottom: '6px',
54
- }}
55
- >
56
- DRAFT PROJECT PLAN
57
- </div>
58
- <div
59
- style={{
60
- fontSize: '11px',
61
- color: 'var(--color-fg-muted)',
62
- lineHeight: 1.5,
63
- marginBottom: '14px',
64
- }}
65
- >
66
- Asks the agent to synthesize this conversation into a project plan,
67
- then captures the reply as a new plan and attaches it to this workflow.
68
- {hasExistingPlan && (
69
- <span style={{ color: 'var(--color-warning)', display: 'block', marginTop: '6px' }}>
70
- A plan is already attached: saving will replace it.
71
- </span>
72
- )}
73
- {isClusterMember && (
74
- <span
75
- data-help="composer.plan-cluster-member"
76
- style={{ color: 'var(--color-accent-secondary-dim)', display: 'block', marginTop: '6px' }}
77
- >
78
- This workflow is in a cluster: AUTOSAVE routes through the
79
- choice banner so you can pick between attaching to the worker
80
- or the cluster's shared PLAN.
81
- </span>
82
- )}
83
- </div>
39
+ <div style={{ fontSize: '11px', color: 'var(--color-fg-muted)', lineHeight: 1.5 }}>
40
+ Asks the agent to synthesize this conversation into a project plan,
41
+ then captures the reply as a new plan and attaches it to this workflow.
42
+ {hasExistingPlan && (
43
+ <span style={{ color: 'var(--color-warning)', display: 'block', marginTop: '6px' }}>
44
+ A plan is already attached: saving will replace it.
45
+ </span>
46
+ )}
47
+ {isClusterMember && (
48
+ <span
49
+ data-help="composer.plan-cluster-member"
50
+ style={{ color: 'var(--color-accent-secondary-dim)', display: 'block', marginTop: '6px' }}
51
+ >
52
+ This workflow is in a cluster: AUTOSAVE routes through the
53
+ choice banner so you can pick between attaching to the worker
54
+ or the cluster's shared PLAN.
55
+ </span>
56
+ )}
57
+ </div>
84
58
 
85
- <button
86
- onClick={() => onConfirm('review')}
87
- data-help="plan.draft-review"
88
- className="display-font"
89
- style={primaryBtn}
90
- title="Inject the prompt; you'll see the agent's draft and click to save"
91
- >
92
- DRAFT → I'LL REVIEW
93
- <span style={hint}>see the draft, then click Save & Attach</span>
94
- </button>
59
+ <PublicProjectBox cwd={job.config.workingDirectory ?? ''} testId="plan-dialog-public-project" />
95
60
 
96
- <button
97
- onClick={() => onConfirm('autosave')}
98
- data-help="plan.draft-autosave"
99
- className="display-font"
100
- style={secondaryBtn}
101
- title="Inject the prompt; auto-save the agent's reply with no review step"
102
- >
103
- DRAFT &amp; AUTO-SAVE
104
- <span style={hint}>save the reply immediately, no confirmation</span>
105
- </button>
61
+ <button
62
+ onClick={() => onConfirm('review')}
63
+ data-help="plan.draft-review"
64
+ className="display-font"
65
+ style={primaryBtn}
66
+ title="Inject the prompt; you'll see the agent's draft and click to save"
67
+ >
68
+ DRAFT {'\u2192'} I'LL REVIEW
69
+ <span style={hint}>see the draft, then click Save & Attach</span>
70
+ </button>
106
71
 
107
- <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '14px' }}>
108
- <button onClick={onCancel} data-help="plan.composer-cancel" className="display-font" style={cancelBtn}>
109
- CANCEL
110
- </button>
111
- </div>
112
- </div>
113
- </div>
72
+ <button
73
+ onClick={() => onConfirm('autosave')}
74
+ data-help="plan.draft-autosave"
75
+ className="display-font"
76
+ style={secondaryBtn}
77
+ title="Inject the prompt; auto-save the agent's reply with no review step"
78
+ >
79
+ DRAFT &amp; AUTO-SAVE
80
+ <span style={hint}>save the reply immediately, no confirmation</span>
81
+ </button>
82
+ </DialogShell>
114
83
  );
115
84
  }
116
85
 
@@ -118,7 +87,6 @@ const primaryBtn: React.CSSProperties = {
118
87
  display: 'block',
119
88
  width: '100%',
120
89
  padding: '12px 14px',
121
- marginBottom: '8px',
122
90
  background: 'transparent',
123
91
  border: '1px solid var(--color-accent-primary)',
124
92
  color: 'var(--color-accent-primary)',
@@ -0,0 +1,60 @@
1
+ import { useCallback, useEffect, useState } from 'react';
2
+
3
+ interface Report { isGit: boolean; hasState: boolean; tracked: number; trackedSample: string[]; ignored: boolean; ignoreFile: 'default' | 'missing' | 'edited' }
4
+
5
+ const DISMISS_KEY = 'arco.projectStateNotice.';
6
+ const btn: React.CSSProperties = { padding: '2px 8px', fontSize: '10px', letterSpacing: '1px', cursor: 'pointer' };
7
+
8
+ // One quiet, dismissible notice per project when Arco's project state folder is
9
+ // tracked by Git or not ignored. Nothing changes until a button is pressed.
10
+ export function ProjectStateNotice({ cwd, skip = false }: { cwd: string; skip?: boolean }) {
11
+ const [report, setReport] = useState<Report | null>(null);
12
+ const [dismissed, setDismissed] = useState(() => { try { return localStorage.getItem(DISMISS_KEY + cwd) === '1'; } catch { return false; } });
13
+ const [message, setMessage] = useState('');
14
+ const [busy, setBusy] = useState(false);
15
+ const load = useCallback(() => {
16
+ void fetch(`/api/public-project/state?path=${encodeURIComponent(cwd)}`)
17
+ .then((r) => (r.ok ? r.json() as Promise<Report> : null))
18
+ .then((r) => setReport(r))
19
+ .catch(() => setReport(null));
20
+ }, [cwd]);
21
+ useEffect(() => {
22
+ try { setDismissed(localStorage.getItem(DISMISS_KEY + cwd) === '1'); } catch { setDismissed(false); }
23
+ if (cwd && !skip) load(); else setReport(null);
24
+ }, [cwd, skip, load]);
25
+
26
+ const act = async (action: 'restore-ignore' | 'stop-tracking') => {
27
+ setBusy(true);
28
+ try {
29
+ const res = await fetch(`/api/public-project/${action}`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ path: cwd }) });
30
+ const body = await res.json() as { ok?: boolean; backup?: string; removed?: number; error?: string };
31
+ if (!res.ok || body.ok === false) setMessage(body.error ?? 'The change did not apply.');
32
+ else if (action === 'restore-ignore') setMessage(body.backup ? `The ignore file was restored. Your edited file was kept as ${body.backup}.` : 'The ignore file was restored.');
33
+ else setMessage(`Stopped tracking ${body.removed ?? 0} file(s). The files are still on disk. Commit this change to finish; anything already pushed stays in the remote's history.`);
34
+ } catch { setMessage('The change did not apply.'); }
35
+ setBusy(false);
36
+ load();
37
+ };
38
+
39
+ if (!cwd || skip || dismissed || !report || !report.isGit) return null;
40
+ const tracked = report.tracked > 0;
41
+ const unignored = report.hasState && !report.ignored;
42
+ if (!tracked && !unignored && !message) return null;
43
+ const dismiss = () => { try { localStorage.setItem(DISMISS_KEY + cwd, '1'); } catch { /* no-op */ } setDismissed(true); };
44
+ return (
45
+ <div data-testid="project-state-notice" data-help="project-state.notice" style={{ display: 'flex', flexWrap: 'wrap', alignItems: 'center', gap: '8px', padding: '5px 10px', fontSize: '11px', color: 'var(--color-fg-muted)', borderTop: '1px solid var(--color-border-hairline)' }}>
46
+ <span>
47
+ {tracked
48
+ ? `Git is tracking ${report.tracked} file(s) in this project's .arco folder (Arco's private state).`
49
+ : report.ignoreFile === 'missing' ? "This project's .arco folder is not ignored by Git: its ignore file is missing."
50
+ : "This project's .arco folder is not ignored by Git: its ignore file was edited."}
51
+ {tracked && report.trackedSample.length > 0 ? ` For example ${report.trackedSample.slice(0, 2).join(', ')}.` : ''}
52
+ {tracked && ' If this repository is public, rotate any secret that may be in them.'}
53
+ </span>
54
+ {unignored && <button type="button" data-testid="project-state-restore" disabled={busy} onClick={() => void act('restore-ignore')} style={btn}>RESTORE IGNORE FILE</button>}
55
+ {tracked && <button type="button" data-testid="project-state-stop" disabled={busy} onClick={() => void act('stop-tracking')} style={btn}>STOP TRACKING</button>}
56
+ <button type="button" data-testid="project-state-dismiss" onClick={dismiss} style={btn}>DISMISS</button>
57
+ {message && <span data-testid="project-state-message" style={{ flexBasis: '100%' }}>{message}</span>}
58
+ </div>
59
+ );
60
+ }
@@ -0,0 +1,25 @@
1
+ import { usePublicProject } from '../utils/publicProject';
2
+
3
+ interface Props {
4
+ cwd: string;
5
+ testId?: string;
6
+ /** Called with the effective value after the user changes it. */
7
+ onChange?: (value: boolean) => void;
8
+ }
9
+
10
+ // "This project is public (or will be)": remembered per project folder in this
11
+ // browser, pre-ticked only when the Git remote is confirmed public.
12
+ export function PublicProjectBox({ cwd, testId = 'public-project-box', onChange }: Props) {
13
+ const { checked, set, reason, hint } = usePublicProject(cwd);
14
+ if (!cwd) return null;
15
+ return (
16
+ <span data-help="plan.public-project" style={{ display: 'inline-flex', flexDirection: 'column', gap: '2px', fontSize: '11px', color: 'var(--color-fg-muted)' }}>
17
+ <label style={{ display: 'inline-flex', alignItems: 'center', gap: '7px' }}>
18
+ <input type="checkbox" data-testid={testId} checked={checked} onChange={(event) => { set(event.target.checked); onChange?.(event.target.checked); }} />
19
+ This project is public (or will be)
20
+ </label>
21
+ {reason && <span data-testid={`${testId}-reason`}>{reason}</span>}
22
+ {!reason && hint && <span data-testid={`${testId}-hint`}>{hint}</span>}
23
+ </span>
24
+ );
25
+ }
@@ -2,6 +2,7 @@ import { useMemo, useState } from 'react';
2
2
  import type { WorkflowConfig, ProviderName, ModelName, EffortLevel } from '@arco/shared';
3
3
  import { RESEARCH_DEFAULT_ROUNDS, RESEARCH_MAX_ROUNDS_CEILING } from '@arco/shared';
4
4
  import { RunAsPicker, spawnConfigFromRunAs, type RunAsSelection } from './RunAsPicker';
5
+ import { DialogShell } from './DialogShell';
5
6
 
6
7
  // Deep Research one-off composer surface - docs/ARCHITECTURE.md
7
8
  // Sibling of DOCS / GIT: a topic brief + a hard round cap + the shared RUN AS
@@ -59,25 +60,20 @@ export function ResearchDialog({ parentConfig, onConfirm, onSpawn, onCancel }: P
59
60
  };
60
61
 
61
62
  return (
62
- <div
63
- style={{ position: 'fixed', inset: 0, background: 'rgba(0,0,0,0.6)', zIndex: 50, display: 'flex', alignItems: 'center', justifyContent: 'center' }}
64
- onClick={onCancel}
63
+ <DialogShell
64
+ title="Deep research"
65
+ dataHelp="composer.research"
66
+ onClose={onCancel}
67
+ closeOnBackdrop
68
+ width={540}
69
+ zIndex={50}
70
+ actions={(
71
+ <>
72
+ <Btn onClick={onCancel}>CANCEL</Btn>
73
+ <Btn primary disabled={!canSend} onClick={send}>{isCurrentPrimary ? 'RESEARCH' : 'RESEARCH (NEW TAB)'}</Btn>
74
+ </>
75
+ )}
65
76
  >
66
- <div
67
- data-help="composer.research"
68
- onClick={(e) => e.stopPropagation()}
69
- style={{
70
- background: 'var(--color-bg-dialog)',
71
- border: '1px solid var(--color-accent-primary-dim)',
72
- borderRadius: '6px',
73
- padding: '18px 22px',
74
- width: 'min(540px, calc(94vw / var(--ui-scale, 1)))',
75
- fontFamily: 'var(--font-body)',
76
- }}
77
- >
78
- <div className="display-font" style={{ fontSize: '12px', letterSpacing: '3px', color: 'var(--color-accent-primary)', marginBottom: '6px' }}>
79
- DEEP RESEARCH
80
- </div>
81
77
  <div style={{ fontSize: '11px', color: 'var(--color-fg-muted)', lineHeight: 1.5, marginBottom: '12px' }}>
82
78
  Runs one bounded research turn: the agent plans queries, searches the web, reads results, and writes a cited markdown report into the RESEARCH tab. The round cap is a hard ceiling on web-search rounds.
83
79
  </div>
@@ -126,12 +122,7 @@ export function ResearchDialog({ parentConfig, onConfirm, onSpawn, onCancel }: P
126
122
  <RunAsPicker current={currentPrimary} selection={runAs} onChange={setRunAs} utility />
127
123
  </div>
128
124
 
129
- <div style={{ display: 'flex', justifyContent: 'flex-end', gap: '8px', marginTop: '14px' }}>
130
- <Btn onClick={onCancel}>CANCEL</Btn>
131
- <Btn primary disabled={!canSend} onClick={send}>{isCurrentPrimary ? 'RESEARCH' : 'RESEARCH (NEW TAB)'}</Btn>
132
- </div>
133
- </div>
134
- </div>
125
+ </DialogShell>
135
126
  );
136
127
  }
137
128
 
@@ -5,6 +5,7 @@ import { useAppStore } from '../stores/appStore';
5
5
  import { effortsForModel, clampEffortForProvider } from '../utils/format';
6
6
  import { claudeModelLabel, defaultModelForProvider, modelsForProvider, useModelCatalogs } from '../utils/modelCatalog';
7
7
  import { CursorModelSelect } from './CursorModelSelect';
8
+ import { DialogShell } from './DialogShell';
8
9
 
9
10
  // Shared look for the Cursor family/effort dropdowns — matches the dialog's
10
11
  // text inputs (sunken bg, hairline border, accent text).
@@ -206,40 +207,37 @@ export function ReviewDialog({ primary, onConfirm, onCancel, prefilledPlanRef, p
206
207
  });
207
208
 
208
209
  return (
209
- <div
210
- style={{
211
- position: 'fixed',
212
- inset: 0,
213
- background: 'rgba(0,0,0,0.6)',
214
- zIndex: 50,
215
- display: 'flex',
216
- alignItems: 'center',
217
- justifyContent: 'center',
218
- }}
219
- onClick={onCancel}
210
+ <DialogShell
211
+ title="Run review"
212
+ dataHelp="actions.review"
213
+ onClose={onCancel}
214
+ closeOnBackdrop
215
+ width={420}
216
+ zIndex={50}
217
+ actions={(
218
+ <>
219
+ <span data-help="review.cancel" style={{ display: 'inline-flex' }}>
220
+ <Btn onClick={onCancel}>CANCEL</Btn>
221
+ </span>
222
+ <span data-help="review.run" style={{ display: 'inline-flex' }}>
223
+ <Btn
224
+ primary
225
+ onClick={() => {
226
+ const ref = buildContextRef();
227
+ const diff = !isScopeLocked && scopeKind === 'git-diff' ? false : includeGitDiff;
228
+ if (usingMember && onConfirmViaMember) {
229
+ onConfirmViaMember(reviewerKind, ref, diff);
230
+ } else {
231
+ onConfirm({ provider, model, effort, ...(provider === 'codex' && providerAccountRef ? { providerAccountRef } : {}) }, ref, diff);
232
+ }
233
+ }}
234
+ >
235
+ {usingMember ? 'SEND REVIEW TASK' : 'RUN REVIEW'}
236
+ </Btn>
237
+ </span>
238
+ </>
239
+ )}
220
240
  >
221
- <div
222
- onClick={(e) => e.stopPropagation()}
223
- style={{
224
- background: 'var(--color-bg-dialog)',
225
- border: '1px solid var(--color-accent-primary-dim)',
226
- borderRadius: '6px',
227
- padding: '18px 22px',
228
- width: 'min(420px, calc(92vw / var(--ui-scale, 1)))',
229
- fontFamily: 'var(--font-body)',
230
- }}
231
- >
232
- <div
233
- className="display-font"
234
- style={{
235
- fontSize: '12px',
236
- letterSpacing: '3px',
237
- color: 'var(--color-accent-primary)',
238
- marginBottom: '14px',
239
- }}
240
- >
241
- RUN REVIEW
242
- </div>
243
241
 
244
242
  {clusterContext && clusterPeers.length > 0 && (
245
243
  <Field label="STEP 2: WHO DOES THE REVIEW?" helpKey="review.dispatch">
@@ -513,36 +511,13 @@ export function ReviewDialog({ primary, onConfirm, onCancel, prefilledPlanRef, p
513
511
  </Field>
514
512
  )}
515
513
 
516
- <div style={{ display: 'flex', justifyContent: 'flex-end', gap: '8px', marginTop: '16px' }}>
517
- <span data-help="review.cancel" style={{ display: 'inline-flex' }}>
518
- <Btn onClick={onCancel}>CANCEL</Btn>
519
- </span>
520
- <span data-help="review.run" style={{ display: 'inline-flex' }}>
521
- <Btn
522
- primary
523
- onClick={() => {
524
- const ref = buildContextRef();
525
- const diff = !isScopeLocked && scopeKind === 'git-diff' ? false : includeGitDiff;
526
- if (usingMember && onConfirmViaMember) {
527
- onConfirmViaMember(reviewerKind, ref, diff);
528
- } else {
529
- onConfirm({ provider, model, effort, ...(provider === 'codex' && providerAccountRef ? { providerAccountRef } : {}) }, ref, diff);
530
- }
531
- }}
532
- >
533
- {usingMember ? 'SEND REVIEW TASK' : 'RUN REVIEW'}
534
- </Btn>
535
- </span>
536
- </div>
537
-
538
514
  <div
539
515
  className="display-font"
540
516
  style={{ marginTop: '10px', fontSize: '9px', color: 'var(--color-fg-muted)', letterSpacing: '0.5px' }}
541
517
  >
542
518
  Read-only tools. Output lands in the Review tab as a markdown artifact.
543
519
  </div>
544
- </div>
545
- </div>
520
+ </DialogShell>
546
521
  );
547
522
  }
548
523