@stigmer/react 3.1.1 → 3.1.3

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 (483) hide show
  1. package/composer/SessionComposer.d.ts +25 -1
  2. package/composer/SessionComposer.d.ts.map +1 -1
  3. package/composer/SessionComposer.js +19 -8
  4. package/composer/SessionComposer.js.map +1 -1
  5. package/execution/ArtifactContentRenderer.d.ts +11 -1
  6. package/execution/ArtifactContentRenderer.d.ts.map +1 -1
  7. package/execution/ArtifactContentRenderer.js +39 -15
  8. package/execution/ArtifactContentRenderer.js.map +1 -1
  9. package/execution/ArtifactPreviewModal.d.ts +5 -5
  10. package/execution/ArtifactPreviewModal.js +4 -4
  11. package/execution/ArtifactPreviewModal.js.map +1 -1
  12. package/execution/FileChangeProgressBar.d.ts +47 -0
  13. package/execution/FileChangeProgressBar.d.ts.map +1 -0
  14. package/execution/FileChangeProgressBar.js +49 -0
  15. package/execution/FileChangeProgressBar.js.map +1 -0
  16. package/execution/FileChangesView.d.ts.map +1 -1
  17. package/execution/FileChangesView.js +19 -4
  18. package/execution/FileChangesView.js.map +1 -1
  19. package/execution/FilePathContext.d.ts +8 -1
  20. package/execution/FilePathContext.d.ts.map +1 -1
  21. package/execution/FilePathContext.js.map +1 -1
  22. package/execution/FilePathLink.d.ts.map +1 -1
  23. package/execution/FilePathLink.js +21 -6
  24. package/execution/FilePathLink.js.map +1 -1
  25. package/execution/FileReviewAtoms.d.ts +27 -0
  26. package/execution/FileReviewAtoms.d.ts.map +1 -0
  27. package/execution/FileReviewAtoms.js +64 -0
  28. package/execution/FileReviewAtoms.js.map +1 -0
  29. package/execution/FileReviewCard.d.ts +2 -2
  30. package/execution/FileReviewCard.d.ts.map +1 -1
  31. package/execution/FileReviewCard.js +32 -62
  32. package/execution/FileReviewCard.js.map +1 -1
  33. package/execution/MessageEntry.d.ts +20 -0
  34. package/execution/MessageEntry.d.ts.map +1 -1
  35. package/execution/MessageEntry.js +19 -5
  36. package/execution/MessageEntry.js.map +1 -1
  37. package/execution/MessageThread.d.ts +75 -13
  38. package/execution/MessageThread.d.ts.map +1 -1
  39. package/execution/MessageThread.js +195 -27
  40. package/execution/MessageThread.js.map +1 -1
  41. package/execution/PlanArtifactCard.d.ts +36 -21
  42. package/execution/PlanArtifactCard.d.ts.map +1 -1
  43. package/execution/PlanArtifactCard.js +39 -25
  44. package/execution/PlanArtifactCard.js.map +1 -1
  45. package/execution/PlanCompletionCard.d.ts +4 -4
  46. package/execution/PlanCompletionCard.d.ts.map +1 -1
  47. package/execution/PlanCompletionCard.js +4 -4
  48. package/execution/PlanCompletionCard.js.map +1 -1
  49. package/execution/PlanDocumentMessage.d.ts +32 -0
  50. package/execution/PlanDocumentMessage.d.ts.map +1 -0
  51. package/execution/PlanDocumentMessage.js +37 -0
  52. package/execution/PlanDocumentMessage.js.map +1 -0
  53. package/execution/PlanStreamingCard.d.ts +50 -0
  54. package/execution/PlanStreamingCard.d.ts.map +1 -0
  55. package/execution/PlanStreamingCard.js +40 -0
  56. package/execution/PlanStreamingCard.js.map +1 -0
  57. package/execution/index.d.ts +9 -1
  58. package/execution/index.d.ts.map +1 -1
  59. package/execution/index.js +4 -0
  60. package/execution/index.js.map +1 -1
  61. package/execution/use-build-from-plan-hotkey.d.ts +1 -1
  62. package/execution/use-build-from-plan-hotkey.js +1 -1
  63. package/execution/useArtifactCopy.d.ts +51 -0
  64. package/execution/useArtifactCopy.d.ts.map +1 -0
  65. package/execution/useArtifactCopy.js +75 -0
  66. package/execution/useArtifactCopy.js.map +1 -0
  67. package/execution/useArtifactDownload.d.ts.map +1 -1
  68. package/execution/useArtifactDownload.js +17 -5
  69. package/execution/useArtifactDownload.js.map +1 -1
  70. package/execution/useCreateAgentExecution.d.ts +12 -0
  71. package/execution/useCreateAgentExecution.d.ts.map +1 -1
  72. package/execution/useCreateAgentExecution.js +5 -1
  73. package/execution/useCreateAgentExecution.js.map +1 -1
  74. package/github/decodeGitHubContent.d.ts +29 -0
  75. package/github/decodeGitHubContent.d.ts.map +1 -0
  76. package/github/decodeGitHubContent.js +72 -0
  77. package/github/decodeGitHubContent.js.map +1 -0
  78. package/github/index.d.ts +1 -0
  79. package/github/index.d.ts.map +1 -1
  80. package/github/index.js +1 -0
  81. package/github/index.js.map +1 -1
  82. package/github/useGitHubFileReader.d.ts +26 -0
  83. package/github/useGitHubFileReader.d.ts.map +1 -0
  84. package/github/useGitHubFileReader.js +106 -0
  85. package/github/useGitHubFileReader.js.map +1 -0
  86. package/github/useGitHubTreeLister.d.ts.map +1 -1
  87. package/github/useGitHubTreeLister.js +6 -2
  88. package/github/useGitHubTreeLister.js.map +1 -1
  89. package/index.d.ts +9 -9
  90. package/index.d.ts.map +1 -1
  91. package/index.js +5 -5
  92. package/index.js.map +1 -1
  93. package/internal/ResizableSplit.d.ts +72 -22
  94. package/internal/ResizableSplit.d.ts.map +1 -1
  95. package/internal/ResizableSplit.js +96 -38
  96. package/internal/ResizableSplit.js.map +1 -1
  97. package/internal/VirtualizedThread.d.ts +5 -3
  98. package/internal/VirtualizedThread.d.ts.map +1 -1
  99. package/internal/VirtualizedThread.js +6 -4
  100. package/internal/VirtualizedThread.js.map +1 -1
  101. package/internal/file-icons/index.d.ts +17 -0
  102. package/internal/file-icons/index.d.ts.map +1 -0
  103. package/internal/file-icons/index.js +60 -0
  104. package/internal/file-icons/index.js.map +1 -0
  105. package/internal/file-tree/FileTreeNode.d.ts +18 -1
  106. package/internal/file-tree/FileTreeNode.d.ts.map +1 -1
  107. package/internal/file-tree/FileTreeNode.js +11 -2
  108. package/internal/file-tree/FileTreeNode.js.map +1 -1
  109. package/internal/markdown-components.d.ts +38 -1
  110. package/internal/markdown-components.d.ts.map +1 -1
  111. package/internal/markdown-components.js +86 -11
  112. package/internal/markdown-components.js.map +1 -1
  113. package/{workflow → internal}/motion-preference.d.ts +7 -4
  114. package/internal/motion-preference.d.ts.map +1 -0
  115. package/{workflow → internal}/motion-preference.js +7 -4
  116. package/internal/motion-preference.js.map +1 -0
  117. package/internal/store/index.d.ts +33 -0
  118. package/internal/store/index.d.ts.map +1 -1
  119. package/internal/store/index.js +59 -0
  120. package/internal/store/index.js.map +1 -1
  121. package/internal/store/workspace-editors-store.d.ts +145 -0
  122. package/internal/store/workspace-editors-store.d.ts.map +1 -0
  123. package/internal/store/workspace-editors-store.js +208 -0
  124. package/internal/store/workspace-editors-store.js.map +1 -0
  125. package/internal/store/workspace-file-selection-store.d.ts +38 -0
  126. package/internal/store/workspace-file-selection-store.d.ts.map +1 -0
  127. package/internal/store/workspace-file-selection-store.js +62 -0
  128. package/internal/store/workspace-file-selection-store.js.map +1 -0
  129. package/internal/useRevealLine.d.ts +49 -0
  130. package/internal/useRevealLine.d.ts.map +1 -0
  131. package/internal/useRevealLine.js +43 -0
  132. package/internal/useRevealLine.js.map +1 -0
  133. package/library/detect-plan-artifact.d.ts +43 -4
  134. package/library/detect-plan-artifact.d.ts.map +1 -1
  135. package/library/detect-plan-artifact.js +45 -5
  136. package/library/detect-plan-artifact.js.map +1 -1
  137. package/library/detect-streaming-plan.d.ts +45 -0
  138. package/library/detect-streaming-plan.d.ts.map +1 -0
  139. package/library/detect-streaming-plan.js +83 -0
  140. package/library/detect-streaming-plan.js.map +1 -0
  141. package/library/index.d.ts +4 -1
  142. package/library/index.d.ts.map +1 -1
  143. package/library/index.js +2 -1
  144. package/library/index.js.map +1 -1
  145. package/package.json +4 -4
  146. package/session/NewSessionViewer.d.ts +19 -4
  147. package/session/NewSessionViewer.d.ts.map +1 -1
  148. package/session/NewSessionViewer.js +52 -25
  149. package/session/NewSessionViewer.js.map +1 -1
  150. package/session/PlanEditor.d.ts +55 -0
  151. package/session/PlanEditor.d.ts.map +1 -0
  152. package/session/PlanEditor.js +88 -0
  153. package/session/PlanEditor.js.map +1 -0
  154. package/session/PlanStreamingDocument.d.ts +30 -0
  155. package/session/PlanStreamingDocument.d.ts.map +1 -0
  156. package/session/PlanStreamingDocument.js +37 -0
  157. package/session/PlanStreamingDocument.js.map +1 -0
  158. package/session/SessionPanelChip.d.ts +26 -0
  159. package/session/SessionPanelChip.d.ts.map +1 -0
  160. package/session/SessionPanelChip.js +40 -0
  161. package/session/SessionPanelChip.js.map +1 -0
  162. package/session/SessionViewer.d.ts +34 -7
  163. package/session/SessionViewer.d.ts.map +1 -1
  164. package/session/SessionViewer.js +334 -33
  165. package/session/SessionViewer.js.map +1 -1
  166. package/session/{inspector → facets}/ArtifactsTab.d.ts +10 -2
  167. package/session/facets/ArtifactsTab.d.ts.map +1 -0
  168. package/session/{inspector → facets}/ArtifactsTab.js +8 -3
  169. package/session/facets/ArtifactsTab.js.map +1 -0
  170. package/session/{inspector → facets}/ChangesTab.d.ts +3 -3
  171. package/session/facets/ChangesTab.d.ts.map +1 -0
  172. package/session/{inspector → facets}/ChangesTab.js +3 -3
  173. package/session/facets/ChangesTab.js.map +1 -0
  174. package/session/facets/InspectTab.d.ts.map +1 -0
  175. package/session/facets/InspectTab.js.map +1 -0
  176. package/session/{inspector → facets}/SetupTab.d.ts +11 -2
  177. package/session/facets/SetupTab.d.ts.map +1 -0
  178. package/session/{inspector → facets}/SetupTab.js +4 -3
  179. package/session/facets/SetupTab.js.map +1 -0
  180. package/session/{inspector → facets}/UsageTab.d.ts +1 -1
  181. package/session/facets/UsageTab.d.ts.map +1 -0
  182. package/session/{inspector → facets}/UsageTab.js +1 -1
  183. package/session/facets/UsageTab.js.map +1 -0
  184. package/session/{inspector → facets}/index.d.ts +0 -6
  185. package/session/facets/index.d.ts.map +1 -0
  186. package/session/{inspector → facets}/index.js +0 -3
  187. package/session/facets/index.js.map +1 -0
  188. package/session/index.d.ts +11 -2
  189. package/session/index.d.ts.map +1 -1
  190. package/session/index.js +15 -2
  191. package/session/index.js.map +1 -1
  192. package/session/plan-document.d.ts +21 -0
  193. package/session/plan-document.d.ts.map +1 -0
  194. package/session/plan-document.js +28 -0
  195. package/session/plan-document.js.map +1 -0
  196. package/session/useOpenFileChange.d.ts +20 -0
  197. package/session/useOpenFileChange.d.ts.map +1 -0
  198. package/session/useOpenFileChange.js +31 -0
  199. package/session/useOpenFileChange.js.map +1 -0
  200. package/session/usePlanDraft.d.ts +52 -0
  201. package/session/usePlanDraft.d.ts.map +1 -0
  202. package/session/usePlanDraft.js +63 -0
  203. package/session/usePlanDraft.js.map +1 -0
  204. package/session/useSessionConversation.d.ts +14 -1
  205. package/session/useSessionConversation.d.ts.map +1 -1
  206. package/session/useSessionConversation.js +20 -2
  207. package/session/useSessionConversation.js.map +1 -1
  208. package/session/useSessionPageFlow.d.ts.map +1 -1
  209. package/session/useSessionPageFlow.js +1 -0
  210. package/session/useSessionPageFlow.js.map +1 -1
  211. package/session/useSessionPanel.d.ts +120 -0
  212. package/session/useSessionPanel.d.ts.map +1 -0
  213. package/session/useSessionPanel.js +130 -0
  214. package/session/useSessionPanel.js.map +1 -0
  215. package/session/useSessionRailViews.d.ts +45 -0
  216. package/session/useSessionRailViews.d.ts.map +1 -0
  217. package/session/useSessionRailViews.js +105 -0
  218. package/session/useSessionRailViews.js.map +1 -0
  219. package/src/composer/SessionComposer.tsx +53 -10
  220. package/src/composer/__tests__/SessionComposer-contract.test.tsx +58 -4
  221. package/src/execution/ArtifactContentRenderer.tsx +101 -24
  222. package/src/execution/ArtifactPreviewModal.tsx +9 -9
  223. package/src/execution/FileChangeProgressBar.tsx +121 -0
  224. package/src/execution/FileChangesView.tsx +18 -4
  225. package/src/execution/FilePathContext.tsx +8 -1
  226. package/src/execution/FilePathLink.tsx +22 -6
  227. package/src/execution/FileReviewAtoms.tsx +89 -0
  228. package/src/execution/FileReviewCard.tsx +57 -90
  229. package/src/execution/MessageEntry.tsx +49 -1
  230. package/src/execution/MessageThread.tsx +308 -39
  231. package/src/execution/PlanArtifactCard.tsx +174 -64
  232. package/src/execution/PlanCompletionCard.tsx +5 -5
  233. package/src/execution/PlanDocumentMessage.tsx +96 -0
  234. package/src/execution/PlanStreamingCard.tsx +141 -0
  235. package/src/execution/__tests__/ArtifactContentRenderer.test.tsx +80 -1
  236. package/src/execution/__tests__/ArtifactPreviewModal.test.tsx +6 -6
  237. package/src/execution/__tests__/FileChangeProgressBar.test.tsx +125 -0
  238. package/src/execution/__tests__/FilePathLink.test.tsx +87 -0
  239. package/src/execution/__tests__/FileReviewCard.test.tsx +66 -7
  240. package/src/execution/__tests__/MessageThread.test.tsx +102 -1
  241. package/src/execution/__tests__/PlanArtifactCard.test.tsx +114 -26
  242. package/src/execution/__tests__/PlanCompletionCard.test.tsx +2 -2
  243. package/src/execution/__tests__/PlanDocumentMessage.test.tsx +55 -0
  244. package/src/execution/__tests__/PlanStreamingCard.test.tsx +56 -0
  245. package/src/execution/__tests__/buildThreadItems-plan-completion.test.ts +600 -22
  246. package/src/execution/__tests__/message-entry.test.tsx +17 -0
  247. package/src/execution/__tests__/useArtifactCopy.test.tsx +90 -0
  248. package/src/execution/__tests__/useArtifactDownload.test.tsx +2 -0
  249. package/src/execution/__tests__/useCreateAgentExecution.test.tsx +85 -0
  250. package/src/execution/index.ts +13 -1
  251. package/src/execution/use-build-from-plan-hotkey.ts +1 -1
  252. package/src/execution/useArtifactCopy.ts +109 -0
  253. package/src/execution/useArtifactDownload.ts +17 -5
  254. package/src/execution/useCreateAgentExecution.ts +18 -1
  255. package/src/github/__tests__/decodeGitHubContent.test.ts +102 -0
  256. package/src/github/__tests__/useGitHubFileReader.test.ts +183 -0
  257. package/src/github/decodeGitHubContent.ts +83 -0
  258. package/src/github/index.ts +1 -0
  259. package/src/github/useGitHubFileReader.ts +152 -0
  260. package/src/github/useGitHubTreeLister.ts +6 -2
  261. package/src/index.ts +69 -9
  262. package/src/internal/ResizableSplit.tsx +184 -51
  263. package/src/internal/VirtualizedThread.tsx +12 -4
  264. package/src/internal/__tests__/ResizableSplit.test.tsx +125 -3
  265. package/src/internal/__tests__/markdown-components.test.tsx +68 -0
  266. package/src/internal/__tests__/useRevealLine.test.tsx +97 -0
  267. package/src/internal/file-icons/__tests__/file-icons.test.tsx +35 -0
  268. package/src/internal/file-icons/index.tsx +137 -0
  269. package/src/internal/file-tree/FileTreeNode.tsx +56 -5
  270. package/src/internal/file-tree/__tests__/FileTreeNode-explorer.test.tsx +86 -0
  271. package/src/internal/markdown-components.tsx +116 -11
  272. package/src/{workflow → internal}/motion-preference.ts +7 -4
  273. package/src/internal/store/__tests__/workspace-editors-store.test.ts +216 -0
  274. package/src/internal/store/__tests__/workspace-file-selection-store.test.ts +118 -0
  275. package/src/internal/store/index.ts +94 -0
  276. package/src/internal/store/workspace-editors-store.ts +315 -0
  277. package/src/internal/store/workspace-file-selection-store.ts +88 -0
  278. package/src/internal/useRevealLine.ts +81 -0
  279. package/src/library/__tests__/detect-plan-artifact.test.ts +69 -0
  280. package/src/library/__tests__/detect-streaming-plan.test.ts +234 -0
  281. package/src/library/detect-plan-artifact.ts +62 -5
  282. package/src/library/detect-streaming-plan.ts +108 -0
  283. package/src/library/index.ts +7 -0
  284. package/src/session/NewSessionViewer.tsx +123 -55
  285. package/src/session/PlanEditor.tsx +361 -0
  286. package/src/session/PlanStreamingDocument.tsx +97 -0
  287. package/src/session/SessionPanelChip.tsx +103 -0
  288. package/src/session/SessionViewer.tsx +655 -96
  289. package/src/session/__tests__/NewSessionViewer.test.tsx +148 -0
  290. package/src/session/__tests__/PlanEditor.test.tsx +217 -0
  291. package/src/session/__tests__/PlanStreamingDocument.test.tsx +50 -0
  292. package/src/session/__tests__/SessionPanelChip.test.tsx +42 -0
  293. package/src/session/__tests__/SessionViewer-fileReviewDock.test.tsx +66 -4
  294. package/src/session/__tests__/SessionViewer-transcriptFileOpen.test.tsx +205 -0
  295. package/src/session/__tests__/audienceWiring.test.tsx +55 -19
  296. package/src/session/__tests__/useOpenFileChange.test.tsx +82 -0
  297. package/src/session/__tests__/usePlanDraft.test.ts +102 -0
  298. package/src/session/__tests__/useSessionConversation.test.tsx +44 -0
  299. package/src/session/__tests__/useSessionPanel.test.ts +298 -0
  300. package/src/session/__tests__/useSessionRailViews.test.tsx +124 -0
  301. package/src/session/{inspector → facets}/ArtifactsTab.tsx +27 -5
  302. package/src/session/{inspector → facets}/ChangesTab.tsx +3 -3
  303. package/src/session/{inspector → facets}/SetupTab.tsx +13 -1
  304. package/src/session/{inspector → facets}/UsageTab.tsx +1 -1
  305. package/src/session/{inspector → facets}/__tests__/ArtifactsTab.test.tsx +42 -8
  306. package/src/session/facets/__tests__/SetupTab.test.tsx +44 -0
  307. package/src/session/{inspector → facets}/index.ts +0 -16
  308. package/src/session/index.ts +30 -13
  309. package/src/session/plan-document.ts +30 -0
  310. package/src/session/useOpenFileChange.ts +53 -0
  311. package/src/session/usePlanDraft.ts +109 -0
  312. package/src/session/useSessionConversation.ts +38 -3
  313. package/src/session/useSessionPageFlow.ts +1 -0
  314. package/src/session/useSessionPanel.ts +288 -0
  315. package/src/session/useSessionRailViews.tsx +200 -0
  316. package/src/workflow/WorkflowExecutionGraph.tsx +1 -1
  317. package/src/workflow/index.ts +1 -1
  318. package/src/workflow/useFollowExecution.ts +1 -1
  319. package/src/workspace/EditorTabs.tsx +174 -0
  320. package/src/workspace/ExplorerTree.tsx +253 -0
  321. package/src/workspace/FileViewer.tsx +537 -0
  322. package/src/workspace/WorkspaceContentSearch.tsx +502 -0
  323. package/src/workspace/WorkspaceContentSearcher.ts +70 -0
  324. package/src/workspace/WorkspaceEditor.tsx +19 -16
  325. package/src/workspace/WorkspaceFileLister.ts +11 -0
  326. package/src/workspace/WorkspaceFileReader.ts +57 -0
  327. package/src/workspace/WorkspaceFileSearch.tsx +452 -0
  328. package/src/workspace/WorkspaceSurface.tsx +839 -0
  329. package/src/workspace/__tests__/EditorTabs.test.tsx +102 -0
  330. package/src/workspace/__tests__/ExplorerTree.test.tsx +204 -0
  331. package/src/workspace/__tests__/FileViewer.test.tsx +439 -0
  332. package/src/workspace/__tests__/WorkspaceContentSearch.test.tsx +229 -0
  333. package/src/workspace/__tests__/WorkspaceEditor-initialPanel.test.tsx +19 -0
  334. package/src/workspace/__tests__/WorkspaceFileSearch.test.tsx +227 -0
  335. package/src/workspace/__tests__/WorkspaceSurface.test.tsx +418 -0
  336. package/src/workspace/__tests__/a11y/harness.tsx +140 -0
  337. package/src/workspace/__tests__/a11y/mock-capabilities.ts +138 -0
  338. package/src/workspace/__tests__/a11y/workspace-editor.a11y.test.tsx +65 -0
  339. package/src/workspace/__tests__/a11y/workspace-explorer-search.a11y.test.tsx +112 -0
  340. package/src/workspace/__tests__/a11y/workspace-viewer-tabs.a11y.test.tsx +69 -0
  341. package/src/workspace/__tests__/findChangeForSelection.test.ts +132 -0
  342. package/src/workspace/__tests__/matchContentPreview.test.ts +55 -0
  343. package/src/workspace/__tests__/matchWorkspaceFiles.test.ts +104 -0
  344. package/src/workspace/__tests__/resolveWorkspaceFileSelection.test.ts +135 -0
  345. package/src/workspace/__tests__/useWorkspaceContentSearch.test.tsx +196 -0
  346. package/src/workspace/__tests__/useWorkspaceFileContent.test.tsx +190 -0
  347. package/src/workspace/__tests__/useWorkspaceFileSearch.test.tsx +162 -0
  348. package/src/workspace/findChangeForSelection.ts +61 -0
  349. package/src/workspace/index.ts +56 -2
  350. package/src/workspace/matchContentPreview.ts +51 -0
  351. package/src/workspace/matchWorkspaceFiles.ts +86 -0
  352. package/src/workspace/resolveWorkspaceFileSelection.ts +119 -0
  353. package/src/workspace/useWorkspaceContentSearch.ts +228 -0
  354. package/src/workspace/useWorkspaceFileContent.ts +129 -0
  355. package/src/workspace/useWorkspaceFileSearch.ts +184 -0
  356. package/src/workspace/useWorkspaceFiles.ts +27 -27
  357. package/src/workspace/workspaceListingCache.ts +93 -0
  358. package/styles.css +1 -1
  359. package/workflow/WorkflowExecutionGraph.js +1 -1
  360. package/workflow/WorkflowExecutionGraph.js.map +1 -1
  361. package/workflow/index.d.ts +1 -1
  362. package/workflow/index.d.ts.map +1 -1
  363. package/workflow/index.js +1 -1
  364. package/workflow/index.js.map +1 -1
  365. package/workflow/useFollowExecution.js +1 -1
  366. package/workflow/useFollowExecution.js.map +1 -1
  367. package/workspace/EditorTabs.d.ts +47 -0
  368. package/workspace/EditorTabs.d.ts.map +1 -0
  369. package/workspace/EditorTabs.js +78 -0
  370. package/workspace/EditorTabs.js.map +1 -0
  371. package/workspace/ExplorerTree.d.ts +32 -0
  372. package/workspace/ExplorerTree.d.ts.map +1 -0
  373. package/workspace/ExplorerTree.js +49 -0
  374. package/workspace/ExplorerTree.js.map +1 -0
  375. package/workspace/FileViewer.d.ts +93 -0
  376. package/workspace/FileViewer.d.ts.map +1 -0
  377. package/workspace/FileViewer.js +193 -0
  378. package/workspace/FileViewer.js.map +1 -0
  379. package/workspace/WorkspaceContentSearch.d.ts +41 -0
  380. package/workspace/WorkspaceContentSearch.d.ts.map +1 -0
  381. package/workspace/WorkspaceContentSearch.js +216 -0
  382. package/workspace/WorkspaceContentSearch.js.map +1 -0
  383. package/workspace/WorkspaceContentSearcher.d.ts +59 -0
  384. package/workspace/WorkspaceContentSearcher.d.ts.map +1 -0
  385. package/workspace/WorkspaceContentSearcher.js +7 -0
  386. package/workspace/WorkspaceContentSearcher.js.map +1 -0
  387. package/workspace/WorkspaceEditor.d.ts.map +1 -1
  388. package/workspace/WorkspaceEditor.js +8 -10
  389. package/workspace/WorkspaceEditor.js.map +1 -1
  390. package/workspace/WorkspaceFileLister.d.ts +11 -0
  391. package/workspace/WorkspaceFileLister.d.ts.map +1 -1
  392. package/workspace/WorkspaceFileReader.d.ts +48 -0
  393. package/workspace/WorkspaceFileReader.d.ts.map +1 -0
  394. package/workspace/WorkspaceFileReader.js +11 -0
  395. package/workspace/WorkspaceFileReader.js.map +1 -0
  396. package/workspace/WorkspaceFileSearch.d.ts +32 -0
  397. package/workspace/WorkspaceFileSearch.d.ts.map +1 -0
  398. package/workspace/WorkspaceFileSearch.js +175 -0
  399. package/workspace/WorkspaceFileSearch.js.map +1 -0
  400. package/workspace/WorkspaceSurface.d.ts +151 -0
  401. package/workspace/WorkspaceSurface.d.ts.map +1 -0
  402. package/workspace/WorkspaceSurface.js +220 -0
  403. package/workspace/WorkspaceSurface.js.map +1 -0
  404. package/workspace/findChangeForSelection.d.ts +19 -0
  405. package/workspace/findChangeForSelection.d.ts.map +1 -0
  406. package/workspace/findChangeForSelection.js +46 -0
  407. package/workspace/findChangeForSelection.js.map +1 -0
  408. package/workspace/index.d.ts +24 -2
  409. package/workspace/index.d.ts.map +1 -1
  410. package/workspace/index.js +13 -1
  411. package/workspace/index.js.map +1 -1
  412. package/workspace/matchContentPreview.d.ts +21 -0
  413. package/workspace/matchContentPreview.d.ts.map +1 -0
  414. package/workspace/matchContentPreview.js +36 -0
  415. package/workspace/matchContentPreview.js.map +1 -0
  416. package/workspace/matchWorkspaceFiles.d.ts +30 -0
  417. package/workspace/matchWorkspaceFiles.d.ts.map +1 -0
  418. package/workspace/matchWorkspaceFiles.js +58 -0
  419. package/workspace/matchWorkspaceFiles.js.map +1 -0
  420. package/workspace/resolveWorkspaceFileSelection.d.ts +19 -0
  421. package/workspace/resolveWorkspaceFileSelection.d.ts.map +1 -0
  422. package/workspace/resolveWorkspaceFileSelection.js +115 -0
  423. package/workspace/resolveWorkspaceFileSelection.js.map +1 -0
  424. package/workspace/useWorkspaceContentSearch.d.ts +69 -0
  425. package/workspace/useWorkspaceContentSearch.d.ts.map +1 -0
  426. package/workspace/useWorkspaceContentSearch.js +154 -0
  427. package/workspace/useWorkspaceContentSearch.js.map +1 -0
  428. package/workspace/useWorkspaceFileContent.d.ts +73 -0
  429. package/workspace/useWorkspaceFileContent.d.ts.map +1 -0
  430. package/workspace/useWorkspaceFileContent.js +57 -0
  431. package/workspace/useWorkspaceFileContent.js.map +1 -0
  432. package/workspace/useWorkspaceFileSearch.d.ts +61 -0
  433. package/workspace/useWorkspaceFileSearch.d.ts.map +1 -0
  434. package/workspace/useWorkspaceFileSearch.js +119 -0
  435. package/workspace/useWorkspaceFileSearch.js.map +1 -0
  436. package/workspace/useWorkspaceFiles.d.ts +13 -5
  437. package/workspace/useWorkspaceFiles.d.ts.map +1 -1
  438. package/workspace/useWorkspaceFiles.js +18 -19
  439. package/workspace/useWorkspaceFiles.js.map +1 -1
  440. package/workspace/workspaceListingCache.d.ts +47 -0
  441. package/workspace/workspaceListingCache.d.ts.map +1 -0
  442. package/workspace/workspaceListingCache.js +55 -0
  443. package/workspace/workspaceListingCache.js.map +1 -0
  444. package/session/inspector/ArtifactsTab.d.ts.map +0 -1
  445. package/session/inspector/ArtifactsTab.js.map +0 -1
  446. package/session/inspector/ChangesTab.d.ts.map +0 -1
  447. package/session/inspector/ChangesTab.js.map +0 -1
  448. package/session/inspector/InspectTab.d.ts.map +0 -1
  449. package/session/inspector/InspectTab.js.map +0 -1
  450. package/session/inspector/SessionInspector.d.ts +0 -64
  451. package/session/inspector/SessionInspector.d.ts.map +0 -1
  452. package/session/inspector/SessionInspector.js +0 -53
  453. package/session/inspector/SessionInspector.js.map +0 -1
  454. package/session/inspector/SetupTab.d.ts.map +0 -1
  455. package/session/inspector/SetupTab.js.map +0 -1
  456. package/session/inspector/UsageTab.d.ts.map +0 -1
  457. package/session/inspector/UsageTab.js.map +0 -1
  458. package/session/inspector/WorkspaceTab.d.ts +0 -35
  459. package/session/inspector/WorkspaceTab.d.ts.map +0 -1
  460. package/session/inspector/WorkspaceTab.js +0 -75
  461. package/session/inspector/WorkspaceTab.js.map +0 -1
  462. package/session/inspector/index.d.ts.map +0 -1
  463. package/session/inspector/index.js.map +0 -1
  464. package/session/inspector/useSessionInspector.d.ts +0 -49
  465. package/session/inspector/useSessionInspector.d.ts.map +0 -1
  466. package/session/inspector/useSessionInspector.js +0 -122
  467. package/session/inspector/useSessionInspector.js.map +0 -1
  468. package/src/session/inspector/SessionInspector.tsx +0 -162
  469. package/src/session/inspector/WorkspaceTab.tsx +0 -245
  470. package/src/session/inspector/__tests__/useSessionInspector.test.ts +0 -251
  471. package/src/session/inspector/useSessionInspector.ts +0 -178
  472. package/src/workspace/WorkspaceEntryFiles.tsx +0 -196
  473. package/workflow/motion-preference.d.ts.map +0 -1
  474. package/workflow/motion-preference.js.map +0 -1
  475. package/workspace/WorkspaceEntryFiles.d.ts +0 -22
  476. package/workspace/WorkspaceEntryFiles.d.ts.map +0 -1
  477. package/workspace/WorkspaceEntryFiles.js +0 -58
  478. package/workspace/WorkspaceEntryFiles.js.map +0 -1
  479. /package/session/{inspector → facets}/InspectTab.d.ts +0 -0
  480. /package/session/{inspector → facets}/InspectTab.js +0 -0
  481. /package/src/{workflow → internal}/__tests__/motion-preference.test.ts +0 -0
  482. /package/src/session/{inspector → facets}/InspectTab.tsx +0 -0
  483. /package/src/session/{inspector → facets}/__tests__/ChangesTab.test.tsx +0 -0
@@ -3,15 +3,15 @@ export interface ChangesTabProps {
3
3
  readonly executions: readonly AgentExecution[];
4
4
  }
5
5
  /**
6
- * Changes facet for the SessionInspector — the session's git write-backs
6
+ * Changes facet for the session panel — the session's git write-backs
7
7
  * (branch/commit/PR), one `WriteBackCard` per entry.
8
8
  *
9
9
  * Local file changes deliberately do NOT render here: they live in the
10
10
  * transcript, where each stamped edit row shows its diff in place and the
11
11
  * per-turn decision bar carries the review controls and file list
12
12
  * (`FileReviewCard`). Duplicating them in a side panel gave the same change a
13
- * third rendering with no added authority. The tab therefore only surfaces
14
- * once a write-back exists (see `buildVisibleTabs`).
13
+ * third rendering with no added authority. The facet therefore only surfaces
14
+ * once a write-back exists (see `useSessionRailViews`).
15
15
  */
16
16
  export declare function ChangesTab({ executions }: ChangesTabProps): import("react/jsx-runtime").JSX.Element;
17
17
  //# sourceMappingURL=ChangesTab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChangesTab.d.ts","sourceRoot":"","sources":["../../../src/session/facets/ChangesTab.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAC;AAIlG,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,UAAU,EAAE,SAAS,cAAc,EAAE,CAAC;CAChD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,EAAE,UAAU,EAAE,EAAE,eAAe,2CAuBzD"}
@@ -3,15 +3,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { useSessionWriteBacks } from "../useSessionWriteBacks.js";
4
4
  import { WriteBackCard } from "../../execution/WriteBackCard.js";
5
5
  /**
6
- * Changes facet for the SessionInspector — the session's git write-backs
6
+ * Changes facet for the session panel — the session's git write-backs
7
7
  * (branch/commit/PR), one `WriteBackCard` per entry.
8
8
  *
9
9
  * Local file changes deliberately do NOT render here: they live in the
10
10
  * transcript, where each stamped edit row shows its diff in place and the
11
11
  * per-turn decision bar carries the review controls and file list
12
12
  * (`FileReviewCard`). Duplicating them in a side panel gave the same change a
13
- * third rendering with no added authority. The tab therefore only surfaces
14
- * once a write-back exists (see `buildVisibleTabs`).
13
+ * third rendering with no added authority. The facet therefore only surfaces
14
+ * once a write-back exists (see `useSessionRailViews`).
15
15
  */
16
16
  export function ChangesTab({ executions }) {
17
17
  const { writeBacks, hasWriteBacks } = useSessionWriteBacks(executions);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChangesTab.js","sourceRoot":"","sources":["../../../src/session/facets/ChangesTab.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAMjE;;;;;;;;;;GAUG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,UAAU,EAAmB;IACxD,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAEvE,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,CACL,cAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,WAAW,YACnC,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACzB,cAA8C,IAAI,EAAC,UAAU,YAC3D,KAAC,aAAa,IAAC,SAAS,EAAE,KAAK,CAAC,SAAS,GAAI,IADrC,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAEtC,CACP,CAAC,GACE,CACP,CAAC;IACJ,CAAC;IAED,OAAO,CACL,cAAK,SAAS,EAAC,iEAAiE,YAC9E,YAAG,SAAS,EAAC,+BAA+B,uHAGxC,GACA,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InspectTab.d.ts","sourceRoot":"","sources":["../../../src/session/facets/InspectTab.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAElF,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,YAAY,EAAE,kBAAkB,GAAG,IAAI,CAAC;CAClD;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,EAAE,YAAY,EAAE,EAAE,eAAe,2CAsB3D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InspectTab.js","sourceRoot":"","sources":["../../../src/session/facets/InspectTab.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAQb;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,YAAY,EAAmB;IAC1D,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,OAAO,CACL,eAAK,SAAS,EAAC,iEAAiE,aAC9E,KAAC,cAAc,KAAG,EAClB,YAAG,SAAS,EAAC,oCAAoC,2EAE7C,IACA,CACP,CAAC;IACJ,CAAC;IAED,OAAO,CACL,eAAK,SAAS,EAAC,yCAAyC,aACtD,wCACc,eAAM,SAAS,EAAC,6BAA6B,YAAE,YAAY,CAAC,IAAI,GAAQ,IAClF,EACJ,YAAG,SAAS,EAAC,kBAAkB,iDAE3B,IACA,CACP,CAAC;AACJ,CAAC;AAED,SAAS,cAAc;IACrB,OAAO,CACL,eACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,SAAS,EAAC,uBAAuB,iBACrB,MAAM,aAElB,eAAM,CAAC,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,GAAG,EAClD,eAAM,CAAC,EAAC,gBAAgB,GAAG,IACvB,CACP,CAAC;AACJ,CAAC"}
@@ -26,10 +26,19 @@ export interface SetupTabProps {
26
26
  * buttons. When absent, sections are read-only (DD-011).
27
27
  */
28
28
  readonly mutations?: SetupTabMutationCallbacks;
29
+ /**
30
+ * Host-injected access management control (e.g. the Console's
31
+ * `ManageAccessButton`) rendered as the facet's final section. A slot keeps
32
+ * the SDK auth-agnostic (DD-004); the injected control owns its own
33
+ * visibility (permission gating), so this section renders no chrome of its
34
+ * own — an empty heading over a denied control would read as breakage.
35
+ */
36
+ readonly accessSlot?: React.ReactNode;
29
37
  }
30
38
  /**
31
39
  * Persistent session configuration panel (Configure tab) — shows agent,
32
- * MCP servers, skills, run config, and session variables.
40
+ * MCP servers, skills, run config, session variables, and the host's
41
+ * access management control (via `accessSlot`).
33
42
  *
34
43
  * Workspace management has moved to the dedicated Workspace tab.
35
44
  *
@@ -39,5 +48,5 @@ export interface SetupTabProps {
39
48
  *
40
49
  * All visual properties flow through `--stgm-*` tokens (DD-005).
41
50
  */
42
- export declare function SetupTab({ agentRef, isDefaultAgent, mcpServerUsages, skillRefs, sessionVariables, harness, executionTarget, modelId, mutations, }: SetupTabProps): import("react/jsx-runtime").JSX.Element;
51
+ export declare function SetupTab({ agentRef, isDefaultAgent, mcpServerUsages, skillRefs, sessionVariables, harness, executionTarget, modelId, mutations, accessSlot, }: SetupTabProps): import("react/jsx-runtime").JSX.Element;
43
52
  //# sourceMappingURL=SetupTab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetupTab.d.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AED;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,cAAc,EACd,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,OAAO,EACP,eAAe,EACf,OAAO,EACP,SAAS,EACT,UAAU,GACX,EAAE,aAAa,2CAkCf"}
@@ -4,7 +4,8 @@ import { cn } from "@stigmer/theme";
4
4
  import { HARNESS_META } from "../../models/harness.js";
5
5
  /**
6
6
  * Persistent session configuration panel (Configure tab) — shows agent,
7
- * MCP servers, skills, run config, and session variables.
7
+ * MCP servers, skills, run config, session variables, and the host's
8
+ * access management control (via `accessSlot`).
8
9
  *
9
10
  * Workspace management has moved to the dedicated Workspace tab.
10
11
  *
@@ -14,9 +15,9 @@ import { HARNESS_META } from "../../models/harness.js";
14
15
  *
15
16
  * All visual properties flow through `--stgm-*` tokens (DD-005).
16
17
  */
17
- export function SetupTab({ agentRef, isDefaultAgent, mcpServerUsages, skillRefs, sessionVariables, harness, executionTarget, modelId, mutations, }) {
18
+ export function SetupTab({ agentRef, isDefaultAgent, mcpServerUsages, skillRefs, sessionVariables, harness, executionTarget, modelId, mutations, accessSlot, }) {
18
19
  const hasSessionVars = sessionVariables != null && !sessionVariables.isEmpty;
19
- return (_jsxs("div", { className: "flex flex-col gap-5", children: [_jsx(RunConfigSection, { harness: harness, executionTarget: executionTarget, modelId: modelId }), _jsx(AgentSection, { agentRef: agentRef, isDefaultAgent: isDefaultAgent, onRemove: mutations?.onRemoveAgent }), _jsx(McpSection, { mcpServerUsages: mcpServerUsages, onRemove: mutations?.onRemoveMcp }), _jsx(SkillsSection, { skillRefs: skillRefs, onRemove: mutations?.onRemoveSkill }), hasSessionVars && (_jsx(SessionVarsSection, { entries: sessionVariables.entries }))] }));
20
+ return (_jsxs("div", { className: "flex flex-col gap-5", children: [_jsx(RunConfigSection, { harness: harness, executionTarget: executionTarget, modelId: modelId }), _jsx(AgentSection, { agentRef: agentRef, isDefaultAgent: isDefaultAgent, onRemove: mutations?.onRemoveAgent }), _jsx(McpSection, { mcpServerUsages: mcpServerUsages, onRemove: mutations?.onRemoveMcp }), _jsx(SkillsSection, { skillRefs: skillRefs, onRemove: mutations?.onRemoveSkill }), hasSessionVars && (_jsx(SessionVarsSection, { entries: sessionVariables.entries })), accessSlot && _jsx("section", { children: accessSlot })] }));
20
21
  }
21
22
  // ---------------------------------------------------------------------------
22
23
  // Shared section primitives
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetupTab.js","sourceRoot":"","sources":["../../../src/session/facets/SetupTab.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAuCvD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,QAAQ,CAAC,EACvB,QAAQ,EACR,cAAc,EACd,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,OAAO,EACP,eAAe,EACf,OAAO,EACP,SAAS,EACT,UAAU,GACI;IACd,MAAM,cAAc,GAAG,gBAAgB,IAAI,IAAI,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;IAE7E,OAAO,CACL,eAAK,SAAS,EAAC,qBAAqB,aAClC,KAAC,gBAAgB,IACf,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,GAChB,EAEF,KAAC,YAAY,IACX,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,SAAS,EAAE,aAAa,GAClC,EAEF,KAAC,UAAU,IACT,eAAe,EAAE,eAAe,EAChC,QAAQ,EAAE,SAAS,EAAE,WAAW,GAChC,EAEF,KAAC,aAAa,IACZ,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,SAAS,EAAE,aAAa,GAClC,EAED,cAAc,IAAI,CACjB,KAAC,kBAAkB,IAAC,OAAO,EAAE,gBAAgB,CAAC,OAAO,GA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only executions: readonly AgentExecution[];
4
4
  }
5
5
  /**
6
- * Usage facet for the SessionInspector.
6
+ * Usage facet for the session panel (a `useSessionRailViews` rail view).
7
7
  *
8
8
  * Uses `useSessionUsage` to determine if data exists, then delegates
9
9
  * rendering to the existing `UsageWidget`. Shows an empty state when
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UsageTab.d.ts","sourceRoot":"","sources":["../../../src/session/facets/UsageTab.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAC;AAIlG,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,UAAU,EAAE,SAAS,cAAc,EAAE,CAAC;CAChD;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,EAAE,UAAU,EAAE,EAAE,aAAa,2CAcrD"}
@@ -3,7 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { useSessionUsage } from "../useSessionUsage.js";
4
4
  import { UsageWidget } from "../../execution/UsageWidget.js";
5
5
  /**
6
- * Usage facet for the SessionInspector.
6
+ * Usage facet for the session panel (a `useSessionRailViews` rail view).
7
7
  *
8
8
  * Uses `useSessionUsage` to determine if data exists, then delegates
9
9
  * rendering to the existing `UsageWidget`. Shows an empty state when
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UsageTab.js","sourceRoot":"","sources":["../../../src/session/facets/UsageTab.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAM7D;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAE,UAAU,EAAiB;IACpD,MAAM,KAAK,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;IAE1C,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QACpB,OAAO,CACL,cAAK,SAAS,EAAC,iEAAiE,YAC9E,YAAG,SAAS,EAAC,+BAA+B,0EAExC,GACA,CACP,CAAC;IACJ,CAAC;IAED,OAAO,KAAC,WAAW,IAAC,UAAU,EAAE,UAAU,GAAI,CAAC;AACjD,CAAC"}
@@ -1,7 +1,3 @@
1
- export { SessionInspector } from "./SessionInspector.js";
2
- export type { SessionInspectorProps } from "./SessionInspector.js";
3
- export { useSessionInspector, buildVisibleTabs } from "./useSessionInspector.js";
4
- export type { SessionInspectorTabId, UseSessionInspectorOptions, UseSessionInspectorReturn, } from "./useSessionInspector.js";
5
1
  export { ChangesTab } from "./ChangesTab.js";
6
2
  export type { ChangesTabProps } from "./ChangesTab.js";
7
3
  export { ArtifactsTab } from "./ArtifactsTab.js";
@@ -12,6 +8,4 @@ export { InspectTab } from "./InspectTab.js";
12
8
  export type { InspectTabProps } from "./InspectTab.js";
13
9
  export { SetupTab } from "./SetupTab.js";
14
10
  export type { SetupTabProps, SetupTabMutationCallbacks, } from "./SetupTab.js";
15
- export { WorkspaceTab } from "./WorkspaceTab.js";
16
- export type { WorkspaceTabProps, WorkspaceTabActions, } from "./WorkspaceTab.js";
17
11
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/session/facets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EACV,aAAa,EACb,yBAAyB,GAC1B,MAAM,eAAe,CAAC"}
@@ -1,9 +1,6 @@
1
- export { SessionInspector } from "./SessionInspector.js";
2
- export { useSessionInspector, buildVisibleTabs } from "./useSessionInspector.js";
3
1
  export { ChangesTab } from "./ChangesTab.js";
4
2
  export { ArtifactsTab } from "./ArtifactsTab.js";
5
3
  export { UsageTab } from "./UsageTab.js";
6
4
  export { InspectTab } from "./InspectTab.js";
7
5
  export { SetupTab } from "./SetupTab.js";
8
- export { WorkspaceTab } from "./WorkspaceTab.js";
9
6
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/session/facets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
@@ -42,8 +42,17 @@ export { SessionViewer } from "./SessionViewer.js";
42
42
  export type { SessionViewerProps } from "./SessionViewer.js";
43
43
  export { NewSessionViewer } from "./NewSessionViewer.js";
44
44
  export type { NewSessionViewerProps } from "./NewSessionViewer.js";
45
+ export { useSessionPanel } from "./useSessionPanel.js";
46
+ export type { SessionPanelController, UseSessionPanelOptions, } from "./useSessionPanel.js";
47
+ export { usePlanDraft, planDraftKey } from "./usePlanDraft.js";
48
+ export type { PlanDraftController } from "./usePlanDraft.js";
49
+ export { PlanEditor } from "./PlanEditor.js";
50
+ export type { PlanEditorProps } from "./PlanEditor.js";
51
+ export { PlanStreamingDocument } from "./PlanStreamingDocument.js";
52
+ export type { PlanStreamingDocumentProps } from "./PlanStreamingDocument.js";
53
+ export { PLAN_DOCUMENT_ENTRY_ID, PLAN_DOCUMENT_PATH, } from "./plan-document.js";
45
54
  export type { SelectedThreadItem } from "../internal/store/selection-store.js";
46
- export { SessionInspector, useSessionInspector, buildVisibleTabs, SetupTab, } from "./inspector/index.js";
47
- export type { SessionInspectorProps, SessionInspectorTabId, UseSessionInspectorOptions, UseSessionInspectorReturn, SetupTabProps, SetupTabMutationCallbacks, } from "./inspector/index.js";
55
+ export { SetupTab } from "./facets/index.js";
56
+ export type { SetupTabProps, SetupTabMutationCallbacks, } from "./facets/index.js";
48
57
  export { PENDING_SUBJECT, resolvedSubject } from "@stigmer/sdk";
49
58
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/session/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACzF,YAAY,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,YAAY,EACV,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,oBAA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BAAsB,CAAC;AAI9B,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC/D,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,YAAY,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EACL,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAG5B,YAAY,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAI/E,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,YAAY,EACV,aAAa,EACb,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
package/session/index.js CHANGED
@@ -21,8 +21,21 @@ export { useSessionSearch } from "./useSessionSearch.js";
21
21
  export { SessionViewer } from "./SessionViewer.js";
22
22
  // NewSessionViewer — launcher organism with progressive Setup panel
23
23
  export { NewSessionViewer } from "./NewSessionViewer.js";
24
- // SessionInspectortabbed right-side inspector panel
25
- export { SessionInspector, useSessionInspector, buildVisibleTabs, SetupTab, } from "./inspector/index.js";
24
+ // Unified session-panel controller drives the WorkspaceSurface open-editor
25
+ // group, the collapsed/open state, and the rail-view FSM (for platform
26
+ // builders embedding the surface directly).
27
+ export { useSessionPanel } from "./useSessionPanel.js";
28
+ // Plan draft — viewer-owned in-place edit of the session's current plan
29
+ // (edit-as-input; the published plan.md artifact is never mutated).
30
+ export { usePlanDraft, planDraftKey } from "./usePlanDraft.js";
31
+ // Plan document — the editor-area plan surface (mounted as a virtual document
32
+ // in the workspace surface) and the identity of its tab.
33
+ export { PlanEditor } from "./PlanEditor.js";
34
+ export { PlanStreamingDocument } from "./PlanStreamingDocument.js";
35
+ export { PLAN_DOCUMENT_ENTRY_ID, PLAN_DOCUMENT_PATH, } from "./plan-document.js";
36
+ // Session facet components — the panel's rail views (Config et al.), also
37
+ // independently importable (DD-003).
38
+ export { SetupTab } from "./facets/index.js";
26
39
  // Session utilities (re-exported from @stigmer/sdk)
27
40
  export { PENDING_SUBJECT, resolvedSubject } from "@stigmer/sdk";
28
41
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/session/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAMzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAQzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAMrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAMrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAM/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAMjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAMvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAM3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAM7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,OAAO,EAAE,kBAAkB,EAAE,M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AE,MAAM,6BAA6B,CAAC;AAGrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAM3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAM7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,EACL,cAAc,EACd,cAAc,EACd,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAMpB,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAMzD,wDAAwD;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,oEAAoE;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,6EAA6E;AAC7E,uEAAuE;AACvE,4CAA4C;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAMvD,wEAAwE;AACxE,oEAAoE;AACpE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG/D,8EAA8E;AAC9E,yDAAyD;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EACL,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAK5B,0EAA0E;AAC1E,qCAAqC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAM7C,oDAAoD;AACpD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Virtual entry id of the plan document tab. One tab per session — the host
3
+ * swaps WHICH plan the tab shows (latest editable, or a superseded plan
4
+ * read-only); the tab itself never multiplies.
5
+ */
6
+ export declare const PLAN_DOCUMENT_ENTRY_ID: string;
7
+ /**
8
+ * The plan tab's path — doubles as its tab label.
9
+ *
10
+ * Deliberately plan-AGNOSTIC ("Plan"), not the artifact's filename. The
11
+ * workspace surface identifies a virtual document's tab by
12
+ * `editorKey(entryId, path)`, so `path` is part of the tab's IDENTITY — and the
13
+ * session keeps exactly ONE plan tab that swaps which plan it shows (latest
14
+ * editable, or a superseded plan read-only). Now that plans carry unique,
15
+ * title-derived filenames (`<slug>_<id>.plan.md`), binding this label to any one
16
+ * plan's name would mint a new tab identity per plan and shatter the
17
+ * single-tab design. A stable, generic label is therefore required, not a
18
+ * stylistic choice — do not "fix" it to track the filename.
19
+ */
20
+ export declare const PLAN_DOCUMENT_PATH = "Plan";
21
+ //# sourceMappingURL=plan-document.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan-document.d.ts","sourceRoot":"","sources":["../../src/session/plan-document.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,QAAyB,CAAC;AAE7D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB,SAAS,CAAC"}
@@ -0,0 +1,28 @@
1
+ // Identity of the session's plan tab in the workspace surface's editor group.
2
+ //
3
+ // Kept in its own module (not in PlanEditor.tsx) so behavior-only consumers —
4
+ // useSessionPanel opens the tab, SessionViewer routes to it — depend on the
5
+ // identity without pulling the component (and its markdown renderer) into
6
+ // their module graph (DD-003 headless-first).
7
+ import { virtualEntryId } from "../internal/store/index.js";
8
+ /**
9
+ * Virtual entry id of the plan document tab. One tab per session — the host
10
+ * swaps WHICH plan the tab shows (latest editable, or a superseded plan
11
+ * read-only); the tab itself never multiplies.
12
+ */
13
+ export const PLAN_DOCUMENT_ENTRY_ID = virtualEntryId("plan");
14
+ /**
15
+ * The plan tab's path — doubles as its tab label.
16
+ *
17
+ * Deliberately plan-AGNOSTIC ("Plan"), not the artifact's filename. The
18
+ * workspace surface identifies a virtual document's tab by
19
+ * `editorKey(entryId, path)`, so `path` is part of the tab's IDENTITY — and the
20
+ * session keeps exactly ONE plan tab that swaps which plan it shows (latest
21
+ * editable, or a superseded plan read-only). Now that plans carry unique,
22
+ * title-derived filenames (`<slug>_<id>.plan.md`), binding this label to any one
23
+ * plan's name would mint a new tab identity per plan and shatter the
24
+ * single-tab design. A stable, generic label is therefore required, not a
25
+ * stylistic choice — do not "fix" it to track the filename.
26
+ */
27
+ export const PLAN_DOCUMENT_PATH = "Plan";
28
+ //# sourceMappingURL=plan-document.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan-document.js","sourceRoot":"","sources":["../../src/session/plan-document.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,EAAE;AACF,8EAA8E;AAC9E,4EAA4E;AAC5E,0EAA0E;AAC1E,8CAA8C;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAE7D;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { AgentExecution } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/api_pb";
2
+ import type { FileChange } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/message_pb";
3
+ import type { WorkspaceEntry } from "../workspace/useWorkspaceEntries.js";
4
+ import type { SelectedWorkspaceFile } from "../internal/store/workspace-file-selection-store.js";
5
+ /**
6
+ * Correlate the open workspace file with the one session {@link FileChange} that
7
+ * touched it, so a changed file can default to its authoritative
8
+ * `baseline→candidate` diff (Slice 4 / DD-06).
9
+ *
10
+ * The net-change fold is skipped while no file is open (via `EMPTY_EXECUTIONS`),
11
+ * and the join reuses the same DD-08 resolver + entries + sandbox root that
12
+ * opened the file — so "the diff shown" can never disagree with "the file
13
+ * opened". Both the inspector's Viewer tab and the workspace surface consume
14
+ * this single hook rather than re-deriving the correlation.
15
+ *
16
+ * @returns the matching change, or `null` when the open file was not changed
17
+ * this session (or no file is open).
18
+ */
19
+ export declare function useOpenFileChange(selectedFile: SelectedWorkspaceFile | null | undefined, allExecutions: readonly AgentExecution[], entries: readonly WorkspaceEntry[] | undefined, sandboxWorkspaceRoot: string | undefined): FileChange | null;
20
+ //# sourceMappingURL=useOpenFileChange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOpenFileChange.d.ts","sourceRoot":"","sources":["../../src/session/useOpenFileChange.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAC;AAClG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iEAAiE,CAAC;AAClG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAWjG;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,qBAAqB,GAAG,IAAI,GAAG,SAAS,EACtD,aAAa,EAAE,SAAS,cAAc,EAAE,EACxC,OAAO,EAAE,SAAS,cAAc,EAAE,GAAG,SAAS,EAC9C,oBAAoB,EAAE,MAAM,GAAG,SAAS,GACvC,UAAU,GAAG,IAAI,CAgBnB"}
@@ -0,0 +1,31 @@
1
+ "use client";
2
+ import { useMemo } from "react";
3
+ import { findChangeForSelection } from "../workspace/findChangeForSelection.js";
4
+ import { useSessionFileChanges } from "./useSessionFileChanges.js";
5
+ /**
6
+ * Stable empty executions passed to {@link useSessionFileChanges} while no file
7
+ * is open, so the (fetch-free) net-change fold stays trivial during streaming
8
+ * and only folds once a file is actually being viewed.
9
+ */
10
+ const EMPTY_EXECUTIONS = [];
11
+ /**
12
+ * Correlate the open workspace file with the one session {@link FileChange} that
13
+ * touched it, so a changed file can default to its authoritative
14
+ * `baseline→candidate` diff (Slice 4 / DD-06).
15
+ *
16
+ * The net-change fold is skipped while no file is open (via `EMPTY_EXECUTIONS`),
17
+ * and the join reuses the same DD-08 resolver + entries + sandbox root that
18
+ * opened the file — so "the diff shown" can never disagree with "the file
19
+ * opened". Both the inspector's Viewer tab and the workspace surface consume
20
+ * this single hook rather than re-deriving the correlation.
21
+ *
22
+ * @returns the matching change, or `null` when the open file was not changed
23
+ * this session (or no file is open).
24
+ */
25
+ export function useOpenFileChange(selectedFile, allExecutions, entries, sandboxWorkspaceRoot) {
26
+ const { fileChanges } = useSessionFileChanges(selectedFile ? allExecutions : EMPTY_EXECUTIONS);
27
+ return useMemo(() => selectedFile && entries
28
+ ? findChangeForSelection(selectedFile, fileChanges, entries, sandboxWorkspaceRoot) ?? null
29
+ : null, [selectedFile, fileChanges, entries, sandboxWorkspaceRoot]);
30
+ }
31
+ //# sourceMappingURL=useOpenFileChange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOpenFileChange.js","sourceRoot":"","sources":["../../src/session/useOpenFileChange.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE;;;;GAIG;AACH,MAAM,gBAAgB,GAA8B,EAAE,CAAC;AAEvD;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,iBAAiB,CAC/B,YAAsD,EACtD,aAAwC,EACxC,OAA8C,EAC9C,oBAAwC;IAExC,MAAM,EAAE,WAAW,EAAE,GAAG,qBAAqB,CAC3C,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,gBAAgB,CAChD,CAAC;IACF,OAAO,OAAO,CACZ,GAAG,EAAE,CACH,YAAY,IAAI,OAAO;QACrB,CAAC,CAAC,sBAAsB,CACpB,YAAY,EACZ,WAAW,EACX,OAAO,EACP,oBAAoB,CACrB,IAAI,IAAI;QACX,CAAC,CAAC,IAAI,EACV,CAAC,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,oBAAoB,CAAC,CAC3D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,52 @@
1
+ import type { SessionPlan } from "../library/detect-plan-artifact.js";
2
+ /**
3
+ * Identity of a plan for draft scoping: the execution that published it plus
4
+ * the artifact's content hash. A refined plan (new execution) or a republished
5
+ * plan (same key, new hash) produces a NEW identity, which orphans any draft
6
+ * of the previous plan — a draft of plan N must never silently ride along
7
+ * once plan N+1 exists.
8
+ */
9
+ export declare function planDraftKey(plan: SessionPlan): string;
10
+ /** Controller returned by {@link usePlanDraft}. */
11
+ export interface PlanDraftController {
12
+ /**
13
+ * The user's in-place edit of the current plan, or `null` when the plan is
14
+ * unedited. Always scoped to the CURRENT plan — a draft made against a
15
+ * superseded plan reads as `null` here (it is dropped, never migrated).
16
+ */
17
+ readonly draftText: string | null;
18
+ /** True when the current plan has an active draft. */
19
+ readonly isEdited: boolean;
20
+ /**
21
+ * Set (or update) the draft for the current plan. Pass `null` to revert to
22
+ * the published plan. No-ops when the session has no plan.
23
+ */
24
+ readonly setDraft: (text: string | null) => void;
25
+ /**
26
+ * Snapshot reader for submit-time consumers: returns the current draft (or
27
+ * `null`) without the caller depending on draft state. Referentially stable
28
+ * for the lifetime of the component (DD-010) — the "Build" action reads the
29
+ * draft through this at click time, so per-keystroke draft updates never
30
+ * re-bind the build callback or re-render the conversation column.
31
+ */
32
+ readonly readDraft: () => string | null;
33
+ }
34
+ /**
35
+ * Owns the local draft of the session's current plan (Phase: refine before
36
+ * build). The draft is a client-side overlay — the published `plan.md`
37
+ * artifact is immutable and is never written back (edit-as-input, not
38
+ * artifact mutation). The approved plan (draft if edited, else the artifact
39
+ * text) is delivered to the implement execution as an attachment.
40
+ *
41
+ * Ownership lives at the viewer level, NOT inside the plan document tab's
42
+ * editor: the panel subtree unmounts wholesale on collapse (and the editor
43
+ * remounts per plan identity), so editor-local state would be destroyed by
44
+ * every collapse or tab switch — silently losing the user's edits.
45
+ *
46
+ * Supersession is derived, not synchronized: the draft is stored with the
47
+ * plan identity it was made against ({@link planDraftKey}), and reads resolve
48
+ * against the CURRENT plan's identity. When a newer plan arrives the old
49
+ * draft simply stops matching — no effect, no cleanup, no stale-flush race.
50
+ */
51
+ export declare function usePlanDraft(plan: SessionPlan | undefined): PlanDraftController;
52
+ //# sourceMappingURL=usePlanDraft.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePlanDraft.d.ts","sourceRoot":"","sources":["../../src/session/usePlanDraft.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEtE;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAEtD;AAED,mDAAmD;AACnD,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,sDAAsD;IACtD,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;CACzC;AAOD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,WAAW,GAAG,SAAS,GAC5B,mBAAmB,CA2CrB"}
@@ -0,0 +1,63 @@
1
+ "use client";
2
+ import { useCallback, useMemo, useRef, useState } from "react";
3
+ /**
4
+ * Identity of a plan for draft scoping: the execution that published it plus
5
+ * the artifact's content hash. A refined plan (new execution) or a republished
6
+ * plan (same key, new hash) produces a NEW identity, which orphans any draft
7
+ * of the previous plan — a draft of plan N must never silently ride along
8
+ * once plan N+1 exists.
9
+ */
10
+ export function planDraftKey(plan) {
11
+ return `${plan.executionId}:${plan.artifact.contentHash}`;
12
+ }
13
+ /**
14
+ * Owns the local draft of the session's current plan (Phase: refine before
15
+ * build). The draft is a client-side overlay — the published `plan.md`
16
+ * artifact is immutable and is never written back (edit-as-input, not
17
+ * artifact mutation). The approved plan (draft if edited, else the artifact
18
+ * text) is delivered to the implement execution as an attachment.
19
+ *
20
+ * Ownership lives at the viewer level, NOT inside the plan document tab's
21
+ * editor: the panel subtree unmounts wholesale on collapse (and the editor
22
+ * remounts per plan identity), so editor-local state would be destroyed by
23
+ * every collapse or tab switch — silently losing the user's edits.
24
+ *
25
+ * Supersession is derived, not synchronized: the draft is stored with the
26
+ * plan identity it was made against ({@link planDraftKey}), and reads resolve
27
+ * against the CURRENT plan's identity. When a newer plan arrives the old
28
+ * draft simply stops matching — no effect, no cleanup, no stale-flush race.
29
+ */
30
+ export function usePlanDraft(plan) {
31
+ const [draft, setDraftState] = useState(null);
32
+ const currentKey = plan ? planDraftKey(plan) : null;
33
+ const draftText = draft !== null && currentKey !== null && draft.key === currentKey
34
+ ? draft.text
35
+ : null;
36
+ // Render-synced mirrors so `readDraft` stays referentially stable while
37
+ // always observing the latest draft/plan (the useSessionPanel viewRef
38
+ // pattern).
39
+ const draftRef = useRef(draft);
40
+ draftRef.current = draft;
41
+ const currentKeyRef = useRef(currentKey);
42
+ currentKeyRef.current = currentKey;
43
+ const setDraft = useCallback((text) => {
44
+ const key = currentKeyRef.current;
45
+ if (!key)
46
+ return;
47
+ setDraftState(text === null ? null : { key, text });
48
+ }, []);
49
+ const readDraft = useCallback(() => {
50
+ const current = draftRef.current;
51
+ const key = currentKeyRef.current;
52
+ return current !== null && key !== null && current.key === key
53
+ ? current.text
54
+ : null;
55
+ }, []);
56
+ return useMemo(() => ({
57
+ draftText,
58
+ isEdited: draftText !== null,
59
+ setDraft,
60
+ readDraft,
61
+ }), [draftText, setDraft, readDraft]);
62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,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC,EACD,EAAE,CACH,CAAC;IAEF,MAAM,SAAS,GAAG,WAAW,CAAC,GAAkB,EAAE;QAChD,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;QACjC,MAAM,GAAG,GAAG,aAAa,CAAC,OAAO,CAAC;QAClC,OAAO,OAAO,KAAK,IAAI,IAAI,GAAG,KAAK,IAAI,IAAI,OAAO,CAAC,GAAG,KAAK,GAAG;YAC5D,CAAC,CAAC,OAAO,CAAC,IAAI;YACd,CAAC,CAAC,IAAI,CAAC;IACX,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,OAAO,CACZ,GAAG,EAAE,CAAC,CAAC;QACL,SAAS;QACT,QAAQ,EAAE,SAAS,KAAK,IAAI;QAC5B,QAAQ;QACR,SAAS;KACV,CAAC,EACF,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC,CACjC,CAAC;AACJ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { AgentExecution } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/api_pb";
2
2
  import type { PendingApproval } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/approval_pb";
3
- import type { FileChangeSet } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/filereview_pb";
3
+ import type { FileChangeProgress, FileChangeSet } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/filereview_pb";
4
4
  import { ApprovalAction, ExecutionPhase, FileDecisionAction } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/enum_pb";
5
5
  import type { Session } from "@stigmer/protos/ai/stigmer/agentic/session/v1/api_pb";
6
6
  import type { McpServerUsage as ProtoMcpServerUsage } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/spec_pb";
@@ -61,6 +61,12 @@ export interface SendFollowUpOptions {
61
61
  * - `"plan"`: read-only analysis, no file mutations.
62
62
  */
63
63
  readonly interactionMode?: "agent" | "plan";
64
+ /**
65
+ * Marks this execution as a Build-from-plan turn.
66
+ *
67
+ * @see {@link CreateAgentExecutionInput.buildFromPlan}
68
+ */
69
+ readonly buildFromPlan?: boolean;
64
70
  /**
65
71
  * Auto-approve every tool call for this execution (bypass the HITL gate).
66
72
  *
@@ -168,6 +174,13 @@ export interface UseSessionConversationReturn {
168
174
  readonly clearApprovalError: () => void;
169
175
  /** Captured change sets awaiting file review on the active execution, empty when none. */
170
176
  readonly fileChangeSets: readonly FileChangeSet[];
177
+ /**
178
+ * Mid-run live capture (DD-32): the transient, non-authoritative snapshot of the
179
+ * workspace delta accumulating during the active turn ("N files changed so far").
180
+ * Undefined when no turn is currently capturing. Never decidable — the reviewed
181
+ * diff is {@link fileChangeSets}.
182
+ */
183
+ readonly fileChangeProgress: FileChangeProgress | undefined;
171
184
  /** Submit a file-review decision for a change set. The executionId is managed internally. */
172
185
  readonly submitFileDecision: (changeSetId: string, action: FileDecisionAction, options?: FileDecisionOptions) => Promise<void>;
173
186
  /** Decision keys ({@link fileDecisionKey}) currently being submitted. */
@@ -1 +1 @@
1
- {"version":3,"file":"useSessionConversation.d.ts","sourceRoot":"","sources":["../../src/session/useSessionConversation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAC;AAClG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kEAAkE,CAAC;AACxG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oEAAoE,CAAC;AACxG,OAAO,EAAE,cAAc,EAAE,cAAc,EAAuB,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AACvJ,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sDAAsD,CAAC;AACpF,OAAO,KAAK,EAAE,cAAc,IAAI,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AACjH,OAAO,KAAK,EAAE,cAAc,IAAI,mBAAmB,EAAE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