@stigmer/react 3.12.2 → 3.12.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 (429) hide show
  1. package/access/ManageAccessDialog.d.ts.map +1 -1
  2. package/access/ManageAccessDialog.js +3 -19
  3. package/access/ManageAccessDialog.js.map +1 -1
  4. package/agent/steps/IdentityStep.d.ts.map +1 -1
  5. package/agent/steps/IdentityStep.js +2 -1
  6. package/agent/steps/IdentityStep.js.map +1 -1
  7. package/agent-instance/AgentInstanceDetailPanel.d.ts.map +1 -1
  8. package/agent-instance/AgentInstanceDetailPanel.js +2 -1
  9. package/agent-instance/AgentInstanceDetailPanel.js.map +1 -1
  10. package/agent-instance/CreateAgentInstanceDialog.d.ts.map +1 -1
  11. package/agent-instance/CreateAgentInstanceDialog.js +7 -20
  12. package/agent-instance/CreateAgentInstanceDialog.js.map +1 -1
  13. package/api-key/CreateApiKeyForm.d.ts.map +1 -1
  14. package/api-key/CreateApiKeyForm.js +2 -1
  15. package/api-key/CreateApiKeyForm.js.map +1 -1
  16. package/attachment/AttachmentImageLightbox.d.ts.map +1 -1
  17. package/attachment/AttachmentImageLightbox.js +8 -23
  18. package/attachment/AttachmentImageLightbox.js.map +1 -1
  19. package/channel/ChannelConversationsDialog.d.ts.map +1 -1
  20. package/channel/ChannelConversationsDialog.js +5 -20
  21. package/channel/ChannelConversationsDialog.js.map +1 -1
  22. package/channel/ChannelCredentialsDialog.d.ts.map +1 -1
  23. package/channel/ChannelCredentialsDialog.js +3 -19
  24. package/channel/ChannelCredentialsDialog.js.map +1 -1
  25. package/channel/ChannelTemplatesDialog.d.ts.map +1 -1
  26. package/channel/ChannelTemplatesDialog.js +6 -21
  27. package/channel/ChannelTemplatesDialog.js.map +1 -1
  28. package/channel/ConnectSlackDialog.d.ts.map +1 -1
  29. package/channel/ConnectSlackDialog.js +5 -22
  30. package/channel/ConnectSlackDialog.js.map +1 -1
  31. package/channel/ConnectWhatsAppDialog.d.ts.map +1 -1
  32. package/channel/ConnectWhatsAppDialog.js +3 -21
  33. package/channel/ConnectWhatsAppDialog.js.map +1 -1
  34. package/channel/connect/ServingAppSection.d.ts.map +1 -1
  35. package/channel/connect/ServingAppSection.js +2 -1
  36. package/channel/connect/ServingAppSection.js.map +1 -1
  37. package/channel-app/CreateChannelAppForm.d.ts.map +1 -1
  38. package/channel-app/CreateChannelAppForm.js +2 -1
  39. package/channel-app/CreateChannelAppForm.js.map +1 -1
  40. package/conversation/ConversationAttentionBanner.d.ts +23 -6
  41. package/conversation/ConversationAttentionBanner.d.ts.map +1 -1
  42. package/conversation/ConversationAttentionBanner.js +25 -10
  43. package/conversation/ConversationAttentionBanner.js.map +1 -1
  44. package/conversation/ConversationListPane.d.ts.map +1 -1
  45. package/conversation/ConversationListPane.js +26 -6
  46. package/conversation/ConversationListPane.js.map +1 -1
  47. package/conversation/ConversationTimelineView.d.ts.map +1 -1
  48. package/conversation/ConversationTimelineView.js +2 -1
  49. package/conversation/ConversationTimelineView.js.map +1 -1
  50. package/conversation/ConversationsWorkbench.d.ts.map +1 -1
  51. package/conversation/ConversationsWorkbench.js +1 -1
  52. package/conversation/ConversationsWorkbench.js.map +1 -1
  53. package/cursor-accounts/CursorAccountsConsole.d.ts.map +1 -1
  54. package/cursor-accounts/CursorAccountsConsole.js +2 -1
  55. package/cursor-accounts/CursorAccountsConsole.js.map +1 -1
  56. package/cursor-accounts/MemberKeysPanel.d.ts.map +1 -1
  57. package/cursor-accounts/MemberKeysPanel.js +2 -1
  58. package/cursor-accounts/MemberKeysPanel.js.map +1 -1
  59. package/dashboard/DashboardFailedRuns.d.ts.map +1 -1
  60. package/dashboard/DashboardFailedRuns.js +2 -1
  61. package/dashboard/DashboardFailedRuns.js.map +1 -1
  62. package/dependency-graph/DependencyGraph.d.ts.map +1 -1
  63. package/dependency-graph/DependencyGraph.js +2 -1
  64. package/dependency-graph/DependencyGraph.js.map +1 -1
  65. package/dependency-graph/DependencyTreeNode.d.ts.map +1 -1
  66. package/dependency-graph/DependencyTreeNode.js +2 -1
  67. package/dependency-graph/DependencyTreeNode.js.map +1 -1
  68. package/environment/EnvironmentPicker.d.ts.map +1 -1
  69. package/environment/EnvironmentPicker.js +2 -1
  70. package/environment/EnvironmentPicker.js.map +1 -1
  71. package/error/SecretFlowErrorGuide.d.ts.map +1 -1
  72. package/error/SecretFlowErrorGuide.js +2 -1
  73. package/error/SecretFlowErrorGuide.js.map +1 -1
  74. package/execution/ApprovalCard.d.ts.map +1 -1
  75. package/execution/ApprovalCard.js +13 -3
  76. package/execution/ApprovalCard.js.map +1 -1
  77. package/execution/ArtifactContentBody.d.ts.map +1 -1
  78. package/execution/ArtifactContentBody.js +2 -1
  79. package/execution/ArtifactContentBody.js.map +1 -1
  80. package/execution/ArtifactPreviewModal.d.ts.map +1 -1
  81. package/execution/ArtifactPreviewModal.js +11 -17
  82. package/execution/ArtifactPreviewModal.js.map +1 -1
  83. package/execution/ArtifactsWidget.d.ts.map +1 -1
  84. package/execution/ArtifactsWidget.js +2 -1
  85. package/execution/ArtifactsWidget.js.map +1 -1
  86. package/execution/FileChangeProgressBar.d.ts.map +1 -1
  87. package/execution/FileChangeProgressBar.js +2 -1
  88. package/execution/FileChangeProgressBar.js.map +1 -1
  89. package/execution/TodoList.d.ts.map +1 -1
  90. package/execution/TodoList.js +2 -1
  91. package/execution/TodoList.js.map +1 -1
  92. package/execution/ToolCallItem.d.ts +3 -1
  93. package/execution/ToolCallItem.d.ts.map +1 -1
  94. package/execution/ToolCallItem.js +19 -7
  95. package/execution/ToolCallItem.js.map +1 -1
  96. package/execution/WriteBacksWidget.d.ts.map +1 -1
  97. package/execution/WriteBacksWidget.js +2 -1
  98. package/execution/WriteBacksWidget.js.map +1 -1
  99. package/execution/index.d.ts +1 -1
  100. package/execution/index.d.ts.map +1 -1
  101. package/execution/index.js +1 -1
  102. package/execution/index.js.map +1 -1
  103. package/execution/tool-categories.d.ts +37 -3
  104. package/execution/tool-categories.d.ts.map +1 -1
  105. package/execution/tool-categories.js +74 -2
  106. package/execution/tool-categories.js.map +1 -1
  107. package/execution/tool-presenter.d.ts +15 -0
  108. package/execution/tool-presenter.d.ts.map +1 -1
  109. package/execution/tool-presenter.js +7 -2
  110. package/execution/tool-presenter.js.map +1 -1
  111. package/iam-policy/PeopleWithAccess.d.ts.map +1 -1
  112. package/iam-policy/PeopleWithAccess.js +2 -1
  113. package/iam-policy/PeopleWithAccess.js.map +1 -1
  114. package/iam-policy/PrincipalPicker.d.ts.map +1 -1
  115. package/iam-policy/PrincipalPicker.js +2 -1
  116. package/iam-policy/PrincipalPicker.js.map +1 -1
  117. package/iam-policy/RoleSelector.d.ts.map +1 -1
  118. package/iam-policy/RoleSelector.js +2 -1
  119. package/iam-policy/RoleSelector.js.map +1 -1
  120. package/identity-provider/CreateIdentityProviderForm.d.ts.map +1 -1
  121. package/identity-provider/CreateIdentityProviderForm.js +2 -1
  122. package/identity-provider/CreateIdentityProviderForm.js.map +1 -1
  123. package/identity-provider/IdentityProviderDetailPanel.d.ts.map +1 -1
  124. package/identity-provider/IdentityProviderDetailPanel.js +2 -1
  125. package/identity-provider/IdentityProviderDetailPanel.js.map +1 -1
  126. package/identity-provider/IdentityProviderWizard.d.ts.map +1 -1
  127. package/identity-provider/IdentityProviderWizard.js +2 -1
  128. package/identity-provider/IdentityProviderWizard.js.map +1 -1
  129. package/index.d.ts +4 -2
  130. package/index.d.ts.map +1 -1
  131. package/index.js +4 -1
  132. package/index.js.map +1 -1
  133. package/internal/DialogShell.d.ts +77 -0
  134. package/internal/DialogShell.d.ts.map +1 -0
  135. package/internal/DialogShell.js +77 -0
  136. package/internal/DialogShell.js.map +1 -0
  137. package/internal/element-resets.d.ts +17 -0
  138. package/internal/element-resets.d.ts.map +1 -0
  139. package/internal/element-resets.js +32 -0
  140. package/internal/element-resets.js.map +1 -0
  141. package/internal/file-tree/FileTreeNode.d.ts.map +1 -1
  142. package/internal/file-tree/FileTreeNode.js +2 -1
  143. package/internal/file-tree/FileTreeNode.js.map +1 -1
  144. package/internal/markdown-components.d.ts +7 -0
  145. package/internal/markdown-components.d.ts.map +1 -1
  146. package/internal/markdown-components.js +15 -5
  147. package/internal/markdown-components.js.map +1 -1
  148. package/invitation/InvitationManager.d.ts.map +1 -1
  149. package/invitation/InvitationManager.js +2 -1
  150. package/invitation/InvitationManager.js.map +1 -1
  151. package/manifest/ApplyManifestDialog.d.ts.map +1 -1
  152. package/manifest/ApplyManifestDialog.js +8 -17
  153. package/manifest/ApplyManifestDialog.js.map +1 -1
  154. package/manifest/EditResourceYamlDialog.d.ts.map +1 -1
  155. package/manifest/EditResourceYamlDialog.js +3 -19
  156. package/manifest/EditResourceYamlDialog.js.map +1 -1
  157. package/mcp-server/McpServerConnectDialog.d.ts.map +1 -1
  158. package/mcp-server/McpServerConnectDialog.js +8 -20
  159. package/mcp-server/McpServerConnectDialog.js.map +1 -1
  160. package/mcp-server/McpServerDetailView.d.ts.map +1 -1
  161. package/mcp-server/McpServerDetailView.js +4 -15
  162. package/mcp-server/McpServerDetailView.js.map +1 -1
  163. package/mcp-server/steps/IdentityTransportStep.d.ts.map +1 -1
  164. package/mcp-server/steps/IdentityTransportStep.js +2 -1
  165. package/mcp-server/steps/IdentityTransportStep.js.map +1 -1
  166. package/package.json +4 -4
  167. package/platform-client/CreatePlatformClientForm.d.ts.map +1 -1
  168. package/platform-client/CreatePlatformClientForm.js +2 -1
  169. package/platform-client/CreatePlatformClientForm.js.map +1 -1
  170. package/platform-client/PlatformClientDetailPanel.d.ts.map +1 -1
  171. package/platform-client/PlatformClientDetailPanel.js +2 -1
  172. package/platform-client/PlatformClientDetailPanel.js.map +1 -1
  173. package/pricing-governance/BaselineEditor.d.ts.map +1 -1
  174. package/pricing-governance/BaselineEditor.js +2 -1
  175. package/pricing-governance/BaselineEditor.js.map +1 -1
  176. package/pricing-governance/PricingGovernanceConsole.d.ts.map +1 -1
  177. package/pricing-governance/PricingGovernanceConsole.js +2 -1
  178. package/pricing-governance/PricingGovernanceConsole.js.map +1 -1
  179. package/provider-standing/ProviderStandingAccessNotice.d.ts +11 -0
  180. package/provider-standing/ProviderStandingAccessNotice.d.ts.map +1 -0
  181. package/provider-standing/ProviderStandingAccessNotice.js +14 -0
  182. package/provider-standing/ProviderStandingAccessNotice.js.map +1 -0
  183. package/provider-standing/ProviderStandingConsole.d.ts +24 -0
  184. package/provider-standing/ProviderStandingConsole.d.ts.map +1 -0
  185. package/provider-standing/ProviderStandingConsole.js +98 -0
  186. package/provider-standing/ProviderStandingConsole.js.map +1 -0
  187. package/provider-standing/index.d.ts +6 -0
  188. package/provider-standing/index.d.ts.map +1 -0
  189. package/provider-standing/index.js +6 -0
  190. package/provider-standing/index.js.map +1 -0
  191. package/provider-standing/useProviderStanding.d.ts +34 -0
  192. package/provider-standing/useProviderStanding.d.ts.map +1 -0
  193. package/provider-standing/useProviderStanding.js +26 -0
  194. package/provider-standing/useProviderStanding.js.map +1 -0
  195. package/provider.d.ts +12 -0
  196. package/provider.d.ts.map +1 -1
  197. package/provider.js +12 -0
  198. package/provider.js.map +1 -1
  199. package/resource-creation/StepIndicator.d.ts.map +1 -1
  200. package/resource-creation/StepIndicator.js +2 -1
  201. package/resource-creation/StepIndicator.js.map +1 -1
  202. package/resource-detail/ConfirmDialog.d.ts +2 -3
  203. package/resource-detail/ConfirmDialog.d.ts.map +1 -1
  204. package/resource-detail/ConfirmDialog.js +8 -20
  205. package/resource-detail/ConfirmDialog.js.map +1 -1
  206. package/schedule/ScheduleDetailView.d.ts.map +1 -1
  207. package/schedule/ScheduleDetailView.js +3 -2
  208. package/schedule/ScheduleDetailView.js.map +1 -1
  209. package/schedule/ScheduleRunsTable.d.ts.map +1 -1
  210. package/schedule/ScheduleRunsTable.js +2 -1
  211. package/schedule/ScheduleRunsTable.js.map +1 -1
  212. package/session/facets/ArtifactsTab.d.ts.map +1 -1
  213. package/session/facets/ArtifactsTab.js +2 -1
  214. package/session/facets/ArtifactsTab.js.map +1 -1
  215. package/session/facets/ChangesTab.d.ts.map +1 -1
  216. package/session/facets/ChangesTab.js +2 -1
  217. package/session/facets/ChangesTab.js.map +1 -1
  218. package/session/facets/UsageTab.d.ts +10 -3
  219. package/session/facets/UsageTab.d.ts.map +1 -1
  220. package/session/facets/UsageTab.js +42 -6
  221. package/session/facets/UsageTab.js.map +1 -1
  222. package/session/index.d.ts +1 -1
  223. package/session/index.d.ts.map +1 -1
  224. package/session/index.js.map +1 -1
  225. package/session/useSessionUsage.d.ts +25 -0
  226. package/session/useSessionUsage.d.ts.map +1 -1
  227. package/session/useSessionUsage.js +11 -0
  228. package/session/useSessionUsage.js.map +1 -1
  229. package/settings/settings-nav.d.ts.map +1 -1
  230. package/settings/settings-nav.js +7 -1
  231. package/settings/settings-nav.js.map +1 -1
  232. package/settings/useSettingsNavGroups.d.ts.map +1 -1
  233. package/settings/useSettingsNavGroups.js +4 -1
  234. package/settings/useSettingsNavGroups.js.map +1 -1
  235. package/sharing/ShareAgentDialog.d.ts.map +1 -1
  236. package/sharing/ShareAgentDialog.js +4 -21
  237. package/sharing/ShareAgentDialog.js.map +1 -1
  238. package/sidebar/WorkspaceSidebar.d.ts.map +1 -1
  239. package/sidebar/WorkspaceSidebar.js +2 -1
  240. package/sidebar/WorkspaceSidebar.js.map +1 -1
  241. package/skill/SkillDiffDialog.d.ts.map +1 -1
  242. package/skill/SkillDiffDialog.js +5 -21
  243. package/skill/SkillDiffDialog.js.map +1 -1
  244. package/skill/SkillFileBrowser.d.ts.map +1 -1
  245. package/skill/SkillFileBrowser.js +2 -1
  246. package/skill/SkillFileBrowser.js.map +1 -1
  247. package/skill/internal/fetchAndUnpackArtifact.d.ts +1 -1
  248. package/skill/internal/fetchAndUnpackArtifact.d.ts.map +1 -1
  249. package/skill/internal/fetchAndUnpackArtifact.js +47 -3
  250. package/skill/internal/fetchAndUnpackArtifact.js.map +1 -1
  251. package/skill/useSkillDiff.d.ts.map +1 -1
  252. package/skill/useSkillDiff.js +7 -1
  253. package/skill/useSkillDiff.js.map +1 -1
  254. package/skill/useSkillUpload.d.ts.map +1 -1
  255. package/skill/useSkillUpload.js +22 -4
  256. package/skill/useSkillUpload.js.map +1 -1
  257. package/src/__tests__/bare-host-resets.layout.test.tsx +184 -0
  258. package/src/access/ManageAccessDialog.tsx +7 -27
  259. package/src/agent/steps/IdentityStep.tsx +2 -1
  260. package/src/agent-instance/AgentInstanceDetailPanel.tsx +2 -1
  261. package/src/agent-instance/CreateAgentInstanceDialog.tsx +14 -27
  262. package/src/api-key/CreateApiKeyForm.tsx +2 -1
  263. package/src/attachment/AttachmentImageLightbox.tsx +13 -36
  264. package/src/channel/ChannelConversationsDialog.tsx +10 -28
  265. package/src/channel/ChannelCredentialsDialog.tsx +8 -28
  266. package/src/channel/ChannelTemplatesDialog.tsx +12 -30
  267. package/src/channel/ConnectSlackDialog.tsx +10 -31
  268. package/src/channel/ConnectWhatsAppDialog.tsx +8 -30
  269. package/src/channel/connect/ServingAppSection.tsx +2 -1
  270. package/src/channel-app/CreateChannelAppForm.tsx +2 -1
  271. package/src/conversation/ConversationAttentionBanner.tsx +64 -19
  272. package/src/conversation/ConversationListPane.tsx +39 -17
  273. package/src/conversation/ConversationTimelineView.tsx +2 -1
  274. package/src/conversation/ConversationsWorkbench.tsx +1 -0
  275. package/src/conversation/__tests__/ConversationAttentionBanner.test.tsx +76 -2
  276. package/src/conversation/__tests__/ConversationListPane.test.tsx +15 -4
  277. package/src/cursor-accounts/CursorAccountsConsole.tsx +2 -1
  278. package/src/cursor-accounts/MemberKeysPanel.tsx +2 -1
  279. package/src/dashboard/DashboardFailedRuns.tsx +2 -1
  280. package/src/dependency-graph/DependencyGraph.tsx +2 -1
  281. package/src/dependency-graph/DependencyTreeNode.tsx +2 -1
  282. package/src/environment/EnvironmentPicker.tsx +2 -1
  283. package/src/error/SecretFlowErrorGuide.tsx +3 -2
  284. package/src/execution/ApprovalCard.tsx +23 -2
  285. package/src/execution/ArtifactContentBody.tsx +2 -1
  286. package/src/execution/ArtifactPreviewModal.tsx +15 -27
  287. package/src/execution/ArtifactsWidget.tsx +2 -1
  288. package/src/execution/FileChangeProgressBar.tsx +2 -1
  289. package/src/execution/TodoList.tsx +2 -1
  290. package/src/execution/ToolCallItem.tsx +19 -8
  291. package/src/execution/WriteBacksWidget.tsx +2 -1
  292. package/src/execution/__tests__/intent-title.test.tsx +221 -0
  293. package/src/execution/index.ts +3 -0
  294. package/src/execution/tool-categories.ts +103 -5
  295. package/src/execution/tool-presenter.ts +22 -1
  296. package/src/iam-policy/PeopleWithAccess.tsx +2 -1
  297. package/src/iam-policy/PrincipalPicker.tsx +2 -0
  298. package/src/iam-policy/RoleSelector.tsx +2 -1
  299. package/src/identity-provider/CreateIdentityProviderForm.tsx +2 -1
  300. package/src/identity-provider/IdentityProviderDetailPanel.tsx +2 -1
  301. package/src/identity-provider/IdentityProviderWizard.tsx +2 -1
  302. package/src/index.ts +16 -0
  303. package/src/internal/DialogShell.tsx +169 -0
  304. package/src/internal/__tests__/DialogShell.test.tsx +223 -0
  305. package/src/internal/element-resets.ts +33 -0
  306. package/src/internal/file-tree/FileTreeNode.tsx +2 -1
  307. package/src/internal/markdown-components.tsx +15 -5
  308. package/src/invitation/InvitationManager.tsx +3 -2
  309. package/src/manifest/ApplyManifestDialog.tsx +10 -27
  310. package/src/manifest/EditResourceYamlDialog.tsx +4 -31
  311. package/src/mcp-server/McpServerConnectDialog.tsx +15 -29
  312. package/src/mcp-server/McpServerDetailView.tsx +12 -24
  313. package/src/mcp-server/steps/IdentityTransportStep.tsx +3 -2
  314. package/src/platform-client/CreatePlatformClientForm.tsx +4 -3
  315. package/src/platform-client/PlatformClientDetailPanel.tsx +4 -3
  316. package/src/pricing-governance/BaselineEditor.tsx +3 -2
  317. package/src/pricing-governance/PricingGovernanceConsole.tsx +2 -1
  318. package/src/provider-standing/ProviderStandingAccessNotice.tsx +36 -0
  319. package/src/provider-standing/ProviderStandingConsole.tsx +216 -0
  320. package/src/provider-standing/__tests__/ProviderStandingConsole.test.tsx +143 -0
  321. package/src/provider-standing/index.ts +8 -0
  322. package/src/provider-standing/useProviderStanding.ts +50 -0
  323. package/src/provider.tsx +12 -0
  324. package/src/resource-creation/StepIndicator.tsx +2 -1
  325. package/src/resource-detail/ConfirmDialog.tsx +9 -30
  326. package/src/schedule/ScheduleDetailView.tsx +3 -2
  327. package/src/schedule/ScheduleRunsTable.tsx +2 -1
  328. package/src/session/__tests__/UsageTab.test.tsx +136 -0
  329. package/src/session/__tests__/useSessionUsage.test.ts +19 -0
  330. package/src/session/facets/ArtifactsTab.tsx +2 -1
  331. package/src/session/facets/ChangesTab.tsx +2 -1
  332. package/src/session/facets/UsageTab.tsx +98 -6
  333. package/src/session/index.ts +1 -0
  334. package/src/session/useSessionUsage.ts +37 -0
  335. package/src/settings/__tests__/useSettingsNavGroups.test.tsx +11 -1
  336. package/src/settings/settings-nav.ts +7 -0
  337. package/src/settings/useSettingsNavGroups.ts +8 -1
  338. package/src/sharing/ShareAgentDialog.tsx +9 -30
  339. package/src/sidebar/WorkspaceSidebar.tsx +2 -1
  340. package/src/skill/SkillDiffDialog.tsx +13 -36
  341. package/src/skill/SkillFileBrowser.tsx +2 -1
  342. package/src/skill/__tests__/SkillFileBrowser.test.tsx +10 -2
  343. package/src/skill/__tests__/fetchAndUnpackArtifact.test.ts +90 -0
  344. package/src/skill/__tests__/useSkillUpload.test.ts +69 -0
  345. package/src/skill/internal/fetchAndUnpackArtifact.ts +54 -4
  346. package/src/skill/useSkillDiff.ts +7 -1
  347. package/src/skill/useSkillUpload.ts +25 -6
  348. package/src/workflow/FailedRunsWidget.tsx +2 -1
  349. package/src/workflow/PendingApprovalsWidget.tsx +2 -1
  350. package/src/workflow/ViewYamlDialog.tsx +18 -37
  351. package/src/workflow/WorkflowArchitectDialog.tsx +11 -43
  352. package/src/workflow/WorkflowExplainDialog.tsx +11 -37
  353. package/src/workflow/WorkflowGraphFullscreenDialog.tsx +14 -26
  354. package/src/workflow/WorkflowRunDialog.tsx +21 -48
  355. package/src/workflow/execution-comparison/ExecutionComparisonPicker.tsx +14 -31
  356. package/src/workflow/facets/WorkflowArtifactsTab.tsx +2 -1
  357. package/src/workflow/facets/WorkflowUsageTab.tsx +2 -1
  358. package/src/workflow/inspector/WorkflowSummaryPanel.tsx +2 -1
  359. package/src/workflow/inspector/tabs/BranchesTab.tsx +2 -1
  360. package/src/workflow/inspector/tabs/IterationTab.tsx +2 -1
  361. package/src/workflow/instance/CreateWorkflowInstanceDialog.tsx +14 -27
  362. package/src/workflow/instance/WorkflowInstanceDetailPanel.tsx +2 -1
  363. package/src/workflow/templates/WorkflowTemplatePreview.tsx +18 -28
  364. package/src/workspace/ExplorerTree.tsx +2 -1
  365. package/src/workspace/WorkspaceContentSearch.tsx +2 -1
  366. package/src/workspace/WorkspaceFileSearch.tsx +2 -1
  367. package/src/workspace/WorkspaceSummary.tsx +2 -1
  368. package/styles.css +1 -1
  369. package/workflow/FailedRunsWidget.d.ts.map +1 -1
  370. package/workflow/FailedRunsWidget.js +2 -1
  371. package/workflow/FailedRunsWidget.js.map +1 -1
  372. package/workflow/PendingApprovalsWidget.d.ts.map +1 -1
  373. package/workflow/PendingApprovalsWidget.js +2 -1
  374. package/workflow/PendingApprovalsWidget.js.map +1 -1
  375. package/workflow/ViewYamlDialog.d.ts.map +1 -1
  376. package/workflow/ViewYamlDialog.js +10 -29
  377. package/workflow/ViewYamlDialog.js.map +1 -1
  378. package/workflow/WorkflowArchitectDialog.d.ts.map +1 -1
  379. package/workflow/WorkflowArchitectDialog.js +5 -24
  380. package/workflow/WorkflowArchitectDialog.js.map +1 -1
  381. package/workflow/WorkflowExplainDialog.d.ts.map +1 -1
  382. package/workflow/WorkflowExplainDialog.js +5 -21
  383. package/workflow/WorkflowExplainDialog.js.map +1 -1
  384. package/workflow/WorkflowGraphFullscreenDialog.d.ts.map +1 -1
  385. package/workflow/WorkflowGraphFullscreenDialog.js +11 -17
  386. package/workflow/WorkflowGraphFullscreenDialog.js.map +1 -1
  387. package/workflow/WorkflowRunDialog.d.ts.map +1 -1
  388. package/workflow/WorkflowRunDialog.js +13 -29
  389. package/workflow/WorkflowRunDialog.js.map +1 -1
  390. package/workflow/execution-comparison/ExecutionComparisonPicker.d.ts.map +1 -1
  391. package/workflow/execution-comparison/ExecutionComparisonPicker.js +8 -26
  392. package/workflow/execution-comparison/ExecutionComparisonPicker.js.map +1 -1
  393. package/workflow/facets/WorkflowArtifactsTab.d.ts.map +1 -1
  394. package/workflow/facets/WorkflowArtifactsTab.js +2 -1
  395. package/workflow/facets/WorkflowArtifactsTab.js.map +1 -1
  396. package/workflow/facets/WorkflowUsageTab.d.ts.map +1 -1
  397. package/workflow/facets/WorkflowUsageTab.js +2 -1
  398. package/workflow/facets/WorkflowUsageTab.js.map +1 -1
  399. package/workflow/inspector/WorkflowSummaryPanel.d.ts.map +1 -1
  400. package/workflow/inspector/WorkflowSummaryPanel.js +2 -1
  401. package/workflow/inspector/WorkflowSummaryPanel.js.map +1 -1
  402. package/workflow/inspector/tabs/BranchesTab.d.ts.map +1 -1
  403. package/workflow/inspector/tabs/BranchesTab.js +2 -1
  404. package/workflow/inspector/tabs/BranchesTab.js.map +1 -1
  405. package/workflow/inspector/tabs/IterationTab.d.ts.map +1 -1
  406. package/workflow/inspector/tabs/IterationTab.js +2 -1
  407. package/workflow/inspector/tabs/IterationTab.js.map +1 -1
  408. package/workflow/instance/CreateWorkflowInstanceDialog.d.ts.map +1 -1
  409. package/workflow/instance/CreateWorkflowInstanceDialog.js +7 -20
  410. package/workflow/instance/CreateWorkflowInstanceDialog.js.map +1 -1
  411. package/workflow/instance/WorkflowInstanceDetailPanel.d.ts.map +1 -1
  412. package/workflow/instance/WorkflowInstanceDetailPanel.js +2 -1
  413. package/workflow/instance/WorkflowInstanceDetailPanel.js.map +1 -1
  414. package/workflow/templates/WorkflowTemplatePreview.d.ts +1 -1
  415. package/workflow/templates/WorkflowTemplatePreview.d.ts.map +1 -1
  416. package/workflow/templates/WorkflowTemplatePreview.js +10 -22
  417. package/workflow/templates/WorkflowTemplatePreview.js.map +1 -1
  418. package/workspace/ExplorerTree.d.ts.map +1 -1
  419. package/workspace/ExplorerTree.js +2 -1
  420. package/workspace/ExplorerTree.js.map +1 -1
  421. package/workspace/WorkspaceContentSearch.d.ts.map +1 -1
  422. package/workspace/WorkspaceContentSearch.js +2 -1
  423. package/workspace/WorkspaceContentSearch.js.map +1 -1
  424. package/workspace/WorkspaceFileSearch.d.ts.map +1 -1
  425. package/workspace/WorkspaceFileSearch.js +2 -1
  426. package/workspace/WorkspaceFileSearch.js.map +1 -1
  427. package/workspace/WorkspaceSummary.d.ts.map +1 -1
  428. package/workspace/WorkspaceSummary.js +2 -1
  429. package/workspace/WorkspaceSummary.js.map +1 -1
@@ -3,7 +3,10 @@
3
3
  import { TriangleAlert } from "lucide-react";
4
4
  import { cn } from "@stigmer/theme";
5
5
  import { getUserMessage } from "@stigmer/sdk";
6
- import type { ChannelConversation } from "@stigmer/protos/ai/stigmer/agentic/agentchannel/v1/conversation_io_pb";
6
+ import {
7
+ ConversationControl,
8
+ type ChannelConversation,
9
+ } from "@stigmer/protos/ai/stigmer/agentic/agentchannel/v1/conversation_io_pb";
7
10
  import { Button } from "../button/Button.js";
8
11
  import type { UseConversationParticipationReturn } from "./useConversationParticipation.js";
9
12
 
@@ -13,28 +16,51 @@ export interface ConversationAttentionBannerProps {
13
16
  readonly conversation: ChannelConversation;
14
17
  /** The participation commands (from `useConversationParticipation`). */
15
18
  readonly participation: UseConversationParticipationReturn;
19
+ /**
20
+ * Whether the channel's provider has a staff send lane — the same
21
+ * fact `ConversationControlBanner` takes. When `false` the banner
22
+ * offers only Dismiss: a takeover would silence the agent with no way
23
+ * to reply, and the control banner beside this one already explains
24
+ * the missing lane, so a disabled Take over here would duplicate it.
25
+ * Defaults to `true` for hosts that only wire providers with staff
26
+ * lanes.
27
+ */
28
+ readonly supportsStaffReplies?: boolean;
16
29
  /** Additional classes for the banner container. */
17
30
  readonly className?: string;
18
31
  }
19
32
 
20
33
  /**
21
34
  * The needs-attention banner (channel-conversations DD-008): the
22
- * escalating agent's reason, verbatim, with the false-alarm dismissal.
35
+ * escalating agent's reason, verbatim, with the escalation's ANSWER
36
+ * beside its false-alarm dismissal.
37
+ *
38
+ * Take over is the primary action because the human arriving IS the
39
+ * answer to an escalation — taking over clears attention structurally
40
+ * (cloud#266 / F-20: the answer used to live one banner away in
41
+ * equal-weight chrome, so staff read the plea and missed the response).
42
+ * It renders only while the agent holds the conversation on a channel
43
+ * with a staff lane; a human already holding it IS the attention
44
+ * answered, so only Dismiss remains.
23
45
  *
24
46
  * Dismiss is `clearAttention` — attention clears in place and control
25
- * never moves (taking over also clears it, structurally, because the
26
- * human arriving IS the answer to an escalation). Renders nothing while
27
- * the conversation is unflagged.
47
+ * never moves. Renders nothing while the conversation is unflagged.
28
48
  */
29
49
  export function ConversationAttentionBanner({
30
50
  conversation,
31
51
  participation,
52
+ supportsStaffReplies = true,
32
53
  className,
33
54
  }: ConversationAttentionBannerProps) {
34
55
  if (!conversation.needsAttention) return null;
35
56
 
36
- const { clearAttention, pendingCommands, commandErrors } = participation;
37
- const error = commandErrors.get("clearAttention");
57
+ const { takeOver, clearAttention, pendingCommands, commandErrors } = participation;
58
+ // Take over's failure renders on the control banner too — same
59
+ // command, same truth; a rare failure showing twice on the stacked
60
+ // banners beats it hiding beside the button the staffer pressed.
61
+ const error = commandErrors.get("clearAttention") ?? commandErrors.get("takeOver");
62
+ const humanHeld = conversation.control === ConversationControl.control_human;
63
+ const offersTakeOver = !humanHeld && supportsStaffReplies;
38
64
 
39
65
  return (
40
66
  <div
@@ -56,18 +82,37 @@ export function ConversationAttentionBanner({
56
82
  )}
57
83
  </span>
58
84
  </p>
59
- <Button
60
- variant="outline"
61
- size="xs"
62
- onClick={() =>
63
- void clearAttention().catch(() => {
64
- // Recorded in commandErrors and rendered below.
65
- })
66
- }
67
- disabled={pendingCommands.has("clearAttention")}
68
- >
69
- {pendingCommands.has("clearAttention") ? "Dismissing…" : "Dismiss"}
70
- </Button>
85
+ {/* One shrink-proof group, right-aligned even after a wrap
86
+ (ml-auto): under a long reason the actions used to wrap to
87
+ the bottom-LEFT and read as part of the message (F-20). */}
88
+ <div className="stg:ml-auto stg:flex stg:shrink-0 stg:items-center stg:gap-2">
89
+ <Button
90
+ variant="outline"
91
+ size="xs"
92
+ onClick={() =>
93
+ void clearAttention().catch(() => {
94
+ // Recorded in commandErrors and rendered below.
95
+ })
96
+ }
97
+ disabled={pendingCommands.has("clearAttention")}
98
+ >
99
+ {pendingCommands.has("clearAttention") ? "Dismissing…" : "Dismiss"}
100
+ </Button>
101
+ {offersTakeOver && (
102
+ <Button
103
+ variant="primary"
104
+ size="xs"
105
+ onClick={() =>
106
+ void takeOver().catch(() => {
107
+ // Recorded in commandErrors and rendered below.
108
+ })
109
+ }
110
+ disabled={pendingCommands.has("takeOver")}
111
+ >
112
+ {pendingCommands.has("takeOver") ? "Taking over…" : "Take over"}
113
+ </Button>
114
+ )}
115
+ </div>
71
116
  </div>
72
117
  {error && (
73
118
  <p className="stg:mt-1 stg:text-xs stg:text-destructive">{getUserMessage(error)}</p>
@@ -4,6 +4,7 @@ import { memo, useCallback, useId, useRef } from "react";
4
4
  import { timestampDate } from "@bufbuild/protobuf/wkt";
5
5
  import { MessageSquare, TriangleAlert, User } from "lucide-react";
6
6
  import { cn } from "@stigmer/theme";
7
+ import { UNSTYLED_LIST } from "../internal/element-resets.js";
7
8
  import { getUserMessage } from "@stigmer/sdk";
8
9
  import type { AgentChannel } from "@stigmer/protos/ai/stigmer/agentic/agentchannel/v1/api_pb";
9
10
  import {
@@ -193,7 +194,7 @@ export function ConversationListPane({
193
194
  {/* One context-only provider arms every row's attention
194
195
  tooltip (the WorkspaceSidebar recents-list precedent). */}
195
196
  <TooltipProvider>
196
- <ul className="stg:space-y-0.5">
197
+ <ul className={cn(UNSTYLED_LIST, "stg:space-y-0.5")}>
197
198
  {conversations.map((conversation) => (
198
199
  <ConversationRow
199
200
  key={`${conversation.agentChannelId}:${conversation.conversationKey}`}
@@ -333,6 +334,20 @@ function ConversationFilterToggle({
333
334
  );
334
335
  }
335
336
 
337
+ /**
338
+ * The awaiting dot's meaning, shared verbatim by its tooltip and its
339
+ * sr-only text — one string per strength so sighted-hover and
340
+ * screen-reader users hear the identical fact. The copy carries the
341
+ * DISTINCTION, not just the fact (cloud#266): who holds the
342
+ * conversation is exactly what the two strengths encode, and it names
343
+ * the stake without promising an outcome — a muted dot survives a dead
344
+ * agent turn on purpose (DD-011 D-b's recovery path).
345
+ */
346
+ const AWAITING_COPY: Record<"strong" | "muted", string> = {
347
+ strong: "Customer awaiting reply — a human has this conversation; the agent will not answer",
348
+ muted: "Customer awaiting reply — the agent has this conversation",
349
+ };
350
+
336
351
  const ConversationRow = memo(function ConversationRow({
337
352
  conversation,
338
353
  label,
@@ -425,22 +440,29 @@ const ConversationRow = memo(function ConversationRow({
425
440
  // carries a dot under its timestamp. Strength maps the
426
441
  // holder (DD-011 D-a): strong when a human holds it — the
427
442
  // agent will not answer, a person must — muted when the
428
- // agent does. No tooltip and no tab stop (the F-18
429
- // discipline); the sr-only text is the accessible meaning.
430
- <span className="stg:flex">
431
- <span
432
- aria-hidden="true"
433
- className={cn(
434
- "stg:size-2 stg:rounded-full",
435
- awaiting === "strong" ? "stg:bg-primary" : "stg:bg-muted-foreground",
436
- )}
437
- />
438
- <span className="stg:sr-only">
439
- {awaiting === "strong"
440
- ? "Customer awaiting reply — the conversation is human-held"
441
- : "Customer awaiting reply"}
442
- </span>
443
- </span>
443
+ // agent does. Strong is FILLED and muted is a hollow RING
444
+ // (cloud#266): fill-vs-outline reads as "act vs watching"
445
+ // without decoding color, and color alone inverted in dark
446
+ // mode, where the muted gray outshone the strong primary.
447
+ // The meaning rides the house tooltip (the attention
448
+ // icon's exact pattern above — span trigger inside the row
449
+ // button, out of the tab order, sr-only as the accessible
450
+ // name); a bare dot told a first-time viewer nothing.
451
+ <Tooltip>
452
+ <TooltipTrigger render={<span className="stg:flex" />}>
453
+ <span
454
+ aria-hidden="true"
455
+ className={cn(
456
+ "stg:size-2 stg:rounded-full",
457
+ awaiting === "strong"
458
+ ? "stg:bg-primary"
459
+ : "stg:border-2 stg:border-muted-foreground",
460
+ )}
461
+ />
462
+ <span className="stg:sr-only">{AWAITING_COPY[awaiting]}</span>
463
+ </TooltipTrigger>
464
+ <TooltipContent side="top">{AWAITING_COPY[awaiting]}</TooltipContent>
465
+ </Tooltip>
444
466
  )}
445
467
  </span>
446
468
  )}
@@ -4,6 +4,7 @@ import { memo, useMemo } from "react";
4
4
  import { timestampDate } from "@bufbuild/protobuf/wkt";
5
5
  import { Ban, Check, CheckCheck, Clock, Info, MessageSquare, TriangleAlert } from "lucide-react";
6
6
  import { cn } from "@stigmer/theme";
7
+ import { UNSTYLED_LIST } from "../internal/element-resets.js";
7
8
  import { getUserMessage } from "@stigmer/sdk";
8
9
  import type { ConversationTimelineItem } from "@stigmer/protos/ai/stigmer/agentic/agentchannel/v1/conversation_io_pb";
9
10
  import { channelProviderOf, type ChannelProviderId } from "../channel/providers.js";
@@ -165,7 +166,7 @@ export function ConversationTimelineView({
165
166
  >
166
167
  {day.label}
167
168
  </div>
168
- <ul className="stg:space-y-1.5">
169
+ <ul className={cn(UNSTYLED_LIST, "stg:space-y-1.5")}>
169
170
  {day.items.map((item) => (
170
171
  <TimelineItemRow
171
172
  key={item.itemId}
@@ -340,6 +340,7 @@ export function ConversationsWorkbench({
340
340
  <ConversationAttentionBanner
341
341
  conversation={detail.conversation}
342
342
  participation={participation}
343
+ supportsStaffReplies={descriptor?.supportsStaffReplies ?? true}
343
344
  />
344
345
  )}
345
346
  {detail.conversation && (
@@ -2,7 +2,10 @@ import { describe, it, expect, vi, afterEach } from "vitest";
2
2
  import { cleanup, render, screen } from "@testing-library/react";
3
3
  import userEvent from "@testing-library/user-event";
4
4
  import { create } from "@bufbuild/protobuf";
5
- import { ChannelConversationSchema } from "@stigmer/protos/ai/stigmer/agentic/agentchannel/v1/conversation_io_pb";
5
+ import {
6
+ ChannelConversationSchema,
7
+ ConversationControl,
8
+ } from "@stigmer/protos/ai/stigmer/agentic/agentchannel/v1/conversation_io_pb";
6
9
  import { ConversationAttentionBanner } from "../ConversationAttentionBanner";
7
10
  import type {
8
11
  ConversationCommand,
@@ -23,7 +26,7 @@ function participation(
23
26
  ): UseConversationParticipationReturn {
24
27
  return {
25
28
  reply: vi.fn(),
26
- takeOver: vi.fn(),
29
+ takeOver: vi.fn().mockResolvedValue(conversation()),
27
30
  handBack: vi.fn(),
28
31
  clearAttention: vi.fn().mockResolvedValue(conversation()),
29
32
  pendingCommands: new Set<ConversationCommand>(),
@@ -79,4 +82,75 @@ describe("ConversationAttentionBanner", () => {
79
82
  );
80
83
  expect(screen.getByText("agent channel ach_1 not found")).toBeDefined();
81
84
  });
85
+
86
+ it("offers Take over beside Dismiss while the agent holds it — the escalation's answer lives where the escalation speaks (cloud#266, F-20)", async () => {
87
+ const user = userEvent.setup();
88
+ const p = participation();
89
+ render(
90
+ <ConversationAttentionBanner
91
+ conversation={conversation({ needsAttention: true })}
92
+ participation={p}
93
+ />,
94
+ );
95
+
96
+ await user.click(screen.getByRole("button", { name: "Take over" }));
97
+ expect(p.takeOver).toHaveBeenCalled();
98
+ // Dismiss stays — the false-alarm path never disappears.
99
+ expect(screen.getByRole("button", { name: "Dismiss" })).toBeDefined();
100
+ });
101
+
102
+ it("offers only Dismiss when a human already holds it — the human arriving IS the attention answered", () => {
103
+ render(
104
+ <ConversationAttentionBanner
105
+ conversation={conversation({
106
+ needsAttention: true,
107
+ control: ConversationControl.control_human,
108
+ controlledBy: "idt_staff",
109
+ })}
110
+ participation={participation()}
111
+ />,
112
+ );
113
+
114
+ expect(screen.queryByRole("button", { name: "Take over" })).toBeNull();
115
+ expect(screen.getByRole("button", { name: "Dismiss" })).toBeDefined();
116
+ });
117
+
118
+ it("offers only Dismiss on senderless providers — the control banner already explains the missing lane", () => {
119
+ render(
120
+ <ConversationAttentionBanner
121
+ conversation={conversation({ needsAttention: true })}
122
+ participation={participation()}
123
+ supportsStaffReplies={false}
124
+ />,
125
+ );
126
+
127
+ expect(screen.queryByRole("button", { name: "Take over" })).toBeNull();
128
+ expect(screen.getByRole("button", { name: "Dismiss" })).toBeDefined();
129
+ });
130
+
131
+ it("shows the takeover in flight and renders its failure verbatim", () => {
132
+ const { rerender } = render(
133
+ <ConversationAttentionBanner
134
+ conversation={conversation({ needsAttention: true })}
135
+ participation={participation({
136
+ pendingCommands: new Set<ConversationCommand>(["takeOver"]),
137
+ })}
138
+ />,
139
+ );
140
+ expect(screen.getByRole("button", { name: "Taking over…" })).toBeDefined();
141
+
142
+ rerender(
143
+ <ConversationAttentionBanner
144
+ conversation={conversation({ needsAttention: true })}
145
+ participation={participation({
146
+ commandErrors: new Map([
147
+ ["takeOver", new Error("this channel is disabled: set spec.enabled to resume messaging on it")],
148
+ ]),
149
+ })}
150
+ />,
151
+ );
152
+ expect(
153
+ screen.getByText("this channel is disabled: set spec.enabled to resume messaging on it"),
154
+ ).toBeDefined();
155
+ });
82
156
  });
@@ -145,7 +145,7 @@ describe("ConversationListPane", () => {
145
145
  ).toBeDefined();
146
146
  });
147
147
 
148
- it("uses the house tooltip for the attention badge and no native titles anywhere (F-18)", () => {
148
+ it("uses the house tooltip for the attention badge and awaiting dot, no native titles anywhere (F-18)", () => {
149
149
  const { container } = render(
150
150
  <ConversationListPane
151
151
  {...baseProps()}
@@ -154,6 +154,9 @@ describe("ConversationListPane", () => {
154
154
  displayName: "Pat with a very long name that will truncate",
155
155
  needsAttention: true,
156
156
  attentionReason: "refund I cannot process",
157
+ // The awaiting dot renders too, so its tooltip trigger is
158
+ // under the same no-title / no-tab-stop assertions below.
159
+ awaitingReply: true,
157
160
  }),
158
161
  ]}
159
162
  />,
@@ -204,8 +207,12 @@ describe("ConversationListPane", () => {
204
207
  />,
205
208
  );
206
209
 
210
+ // The copy names the stake, not just the fact (cloud#266): a
211
+ // human-held wait is one only a person can end.
207
212
  expect(
208
- screen.getByText("Customer awaiting reply — the conversation is human-held"),
213
+ screen.getByText(
214
+ "Customer awaiting reply — a human has this conversation; the agent will not answer",
215
+ ),
209
216
  ).toBeDefined();
210
217
  });
211
218
 
@@ -217,9 +224,13 @@ describe("ConversationListPane", () => {
217
224
  />,
218
225
  );
219
226
 
220
- expect(screen.getByText("Customer awaiting reply")).toBeDefined();
221
227
  expect(
222
- screen.queryByText("Customer awaiting reply — the conversation is human-held"),
228
+ screen.getByText("Customer awaiting reply — the agent has this conversation"),
229
+ ).toBeDefined();
230
+ expect(
231
+ screen.queryByText(
232
+ "Customer awaiting reply — a human has this conversation; the agent will not answer",
233
+ ),
223
234
  ).toBeNull();
224
235
  });
225
236
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { useCallback, useState } from "react";
4
4
  import { cn } from "@stigmer/theme";
5
+ import { UNSTYLED_LIST } from "../internal/element-resets.js";
5
6
  import { getUserMessage, isPermissionDenied } from "@stigmer/sdk";
6
7
  import type { CursorAccount } from "@stigmer/protos/ai/stigmer/platform/cursoraccount/v1/cursor_account_pb";
7
8
  import type { CursorAccountSummary } from "@stigmer/protos/ai/stigmer/platform/cursoraccount/v1/io_pb";
@@ -145,7 +146,7 @@ export function CursorAccountsConsole({ className }: CursorAccountsConsoleProps)
145
146
  add member execution keys to make it routable.
146
147
  </p>
147
148
  ) : (
148
- <ul role="list" aria-label="Cursor accounts" className="stg:m-0 stg:list-none stg:p-0">
149
+ <ul role="list" aria-label="Cursor accounts" className={UNSTYLED_LIST}>
149
150
  {accounts.map((summary) => (
150
151
  <AccountRow
151
152
  key={summary.account?.accountId}
@@ -5,6 +5,7 @@ import { cn } from "@stigmer/theme";
5
5
  import { getUserMessage } from "@stigmer/sdk";
6
6
  import type { CursorAccountView } from "@stigmer/protos/ai/stigmer/platform/cursoraccount/v1/io_pb";
7
7
  import { Button } from "../button/index.js";
8
+ import { UNSTYLED_LIST } from "../internal/element-resets.js";
8
9
  import { INPUT_CLASSES } from "../internal/form-primitives.js";
9
10
  import { toError } from "../internal/toError.js";
10
11
  import type { CursorAccountCoverage } from "./cursor-account-coverage.js";
@@ -259,7 +260,7 @@ export function MemberKeysPanel({
259
260
  <ul
260
261
  role="list"
261
262
  aria-label="Import results"
262
- className="stg:m-0 stg:list-none stg:space-y-0.5 stg:p-0 stg:text-[11px]"
263
+ className={cn(UNSTYLED_LIST, "stg:space-y-0.5 stg:text-[11px]")}
263
264
  >
264
265
  {importResults.map((result) => (
265
266
  <li
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { memo } from "react";
4
4
  import { cn } from "@stigmer/theme";
5
+ import { UNSTYLED_LIST } from "../internal/element-resets.js";
5
6
  import type { DashboardFailedRun } from "./types.js";
6
7
  import { formatRelativeTime } from "../activity/format-relative-time.js";
7
8
 
@@ -54,7 +55,7 @@ export const DashboardFailedRuns = memo(function DashboardFailedRuns({
54
55
  No recent failures
55
56
  </p>
56
57
  ) : (
57
- <ul className="stg:space-y-1.5" role="list">
58
+ <ul className={cn(UNSTYLED_LIST, "stg:space-y-1.5")} role="list">
58
59
  {failedRuns.map((run) => (
59
60
  <li
60
61
  key={run.id}
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { useCallback, useRef, type KeyboardEvent } from "react";
4
4
  import { cn } from "@stigmer/theme";
5
+ import { UNSTYLED_LIST } from "../internal/element-resets.js";
5
6
  import type { DependencyGraphProps } from "./types.js";
6
7
  import { DependencyTreeNode } from "./DependencyTreeNode.js";
7
8
 
@@ -114,7 +115,7 @@ export function DependencyGraph({
114
115
  role="tree"
115
116
  aria-label={`Dependencies of ${root.label}`}
116
117
  onKeyDown={handleKeyDown}
117
- className="stg:rounded-lg stg:border stg:border-border stg:p-2"
118
+ className={cn(UNSTYLED_LIST, "stg:rounded-lg stg:border stg:border-border stg:p-2")}
118
119
  >
119
120
  <DependencyTreeNode
120
121
  node={root}
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { useCallback, useState, type KeyboardEvent } from "react";
4
4
  import { cn } from "@stigmer/theme";
5
+ import { UNSTYLED_LIST } from "../internal/element-resets.js";
5
6
  import type { DependencyNode, NodeKind } from "./types.js";
6
7
 
7
8
  interface DependencyTreeNodeProps {
@@ -152,7 +153,7 @@ export function DependencyTreeNode({
152
153
  {showChildren && (
153
154
  <ul
154
155
  role="group"
155
- className="stg:relative stg:ml-[11px] stg:border-l stg:border-border stg:pl-3"
156
+ className={cn(UNSTYLED_LIST, "stg:relative stg:ml-[11px] stg:border-l stg:border-border stg:pl-3")}
156
157
  >
157
158
  {node.children.map((child) => (
158
159
  <DependencyTreeNode
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { useCallback, useId, useMemo } from "react";
4
4
  import { cn } from "@stigmer/theme";
5
+ import { UNSTYLED_LIST } from "../internal/element-resets.js";
5
6
  import type { Environment } from "@stigmer/protos/ai/stigmer/agentic/environment/v1/api_pb";
6
7
  import type { ResourceRef } from "@stigmer/sdk";
7
8
  import { useEnvironmentList } from "./useEnvironmentList.js";
@@ -217,7 +218,7 @@ function SelectedList({
217
218
  total,
218
219
  }: SelectedListProps) {
219
220
  return (
220
- <ol className="stg:space-y-1.5" aria-label="Selected environments (merge order)">
221
+ <ol className={cn(UNSTYLED_LIST, "stg:space-y-1.5")} aria-label="Selected environments (merge order)">
221
222
  {value.map((ref, index) => (
222
223
  <li
223
224
  key={`${ref.org}-${ref.slug}-${index}`}
@@ -3,6 +3,7 @@
3
3
  import { useMemo } from "react";
4
4
  import { StigmerError, getUserMessage } from "@stigmer/sdk";
5
5
  import { cn } from "@stigmer/theme";
6
+ import { UNSTYLED_LIST } from "../internal/element-resets.js";
6
7
 
7
8
  /** Props for {@link SecretFlowErrorGuide}. */
8
9
  export interface SecretFlowErrorGuideProps {
@@ -113,7 +114,7 @@ export function SecretFlowErrorGuide({
113
114
  <p className="stg:text-xs stg:text-amber-700 stg:dark:text-amber-300">
114
115
  <span className="stg:font-medium">{server}</span> requires:
115
116
  </p>
116
- <ul className="stg:mt-0.5 stg:space-y-0.5">
117
+ <ul className={cn(UNSTYLED_LIST, "stg:mt-0.5 stg:space-y-0.5")}>
117
118
  {vars.map((v) => (
118
119
  <li
119
120
  key={v}
@@ -131,7 +132,7 @@ export function SecretFlowErrorGuide({
131
132
  <p className="stg:text-xs stg:text-amber-700/90 stg:dark:text-amber-300/90">
132
133
  You can provide these values in two ways:
133
134
  </p>
134
- <ul className="stg:mt-1 stg:space-y-0.5 stg:text-xs stg:text-amber-700/80 stg:dark:text-amber-300/80">
135
+ <ul className={cn(UNSTYLED_LIST, "stg:mt-1 stg:space-y-0.5 stg:text-xs stg:text-amber-700/80 stg:dark:text-amber-300/80")}>
135
136
  <li className="stg:flex stg:items-start stg:gap-1.5">
136
137
  <span className="stg:mt-px stg:shrink-0">•</span>
137
138
  <span>
@@ -12,6 +12,7 @@ import {
12
12
  import {
13
13
  resolveToolCategoryFromKind,
14
14
  extractPrimaryArgFromPreview,
15
+ extractShellIntentFromPreview,
15
16
  extractWriteContentFromPreview,
16
17
  isFileCategory,
17
18
  type ToolCategory,
@@ -160,6 +161,26 @@ export function ApprovalCardHeader({
160
161
  ],
161
162
  );
162
163
 
164
+ // A shell gate whose call carries a model-authored intent phrase titles
165
+ // the header with it (stigmer#276) — supplementary context only: the
166
+ // command stays foregrounded in the body's terminal preview, which remains
167
+ // the content the user is approving.
168
+ const intent = useMemo(
169
+ () =>
170
+ extractShellIntentFromPreview(
171
+ pendingApproval.toolName,
172
+ pendingApproval.argsPreview,
173
+ pendingApproval.mcpServerSlug,
174
+ pendingApproval.toolKind,
175
+ ),
176
+ [
177
+ pendingApproval.toolName,
178
+ pendingApproval.argsPreview,
179
+ pendingApproval.mcpServerSlug,
180
+ pendingApproval.toolKind,
181
+ ],
182
+ );
183
+
163
184
  return (
164
185
  <div
165
186
  className={cn(
@@ -173,7 +194,7 @@ export function ApprovalCardHeader({
173
194
 
174
195
  <span className="stg:min-w-0 stg:flex-1 stg:flex stg:items-center stg:gap-1.5 stg:overflow-hidden">
175
196
  <span className="stg:shrink-0 stg:font-medium stg:text-foreground">
176
- {categoryInfo.label}
197
+ {intent ?? categoryInfo.label}
177
198
  </span>
178
199
  {primaryArg &&
179
200
  categoryInfo.category !== "shell" &&
@@ -186,7 +207,7 @@ export function ApprovalCardHeader({
186
207
  />
187
208
  ) : (
188
209
  // Shell is the exception: its command is shown in the body's
189
- // terminal session, so the header stays minimal (icon + label).
210
+ // terminal session, so the header stays minimal (icon + title).
190
211
  <span className="stg:min-w-0 stg:truncate stg:font-mono stg:text-muted-foreground">
191
212
  {primaryArg}
192
213
  </span>
@@ -2,6 +2,7 @@
2
2
 
3
3
  import type { ExecutionArtifact } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/artifact_pb";
4
4
  import { ExecutionArtifactKind } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/enum_pb";
5
+ import { UNSTYLED_LIST } from "../internal/element-resets.js";
5
6
  import { ArtifactFileContent } from "./ArtifactFileContent.js";
6
7
  import type { SkillPackageDetection } from "../library/detect-skill-package.js";
7
8
 
@@ -103,7 +104,7 @@ function DirectoryContentView({
103
104
  <h3 className="stg:mb-2 stg:text-xs stg:font-medium stg:text-muted-foreground">
104
105
  Files ({entries.length})
105
106
  </h3>
106
- <ul className="stg:space-y-0.5" role="list">
107
+ <ul className={`${UNSTYLED_LIST} stg:space-y-0.5`} role="list">
107
108
  {entries.map((entry) => (
108
109
  <li
109
110
  key={entry}
@@ -1,8 +1,9 @@
1
1
  "use client";
2
2
 
3
- import { useCallback, useEffect, useRef } from "react";
3
+ import { useCallback } from "react";
4
4
  import type { ExecutionArtifact } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/artifact_pb";
5
5
  import { cn } from "@stigmer/theme";
6
+ import { DialogShell } from "../internal/DialogShell.js";
6
7
  import { useArtifactDownload } from "./useArtifactDownload.js";
7
8
  import { formatArtifactSize } from "./artifact-utils.js";
8
9
  import { ArtifactContentBody } from "./ArtifactContentBody.js";
@@ -253,37 +254,24 @@ export function ArtifactPreviewModal({
253
254
  onImplement,
254
255
  className,
255
256
  }: ArtifactPreviewModalProps) {
256
- const dialogRef = useRef<HTMLDialogElement>(null);
257
-
258
- useEffect(() => {
259
- const dialog = dialogRef.current;
260
- if (!dialog) return;
261
-
262
- if (open && !dialog.open) {
263
- dialog.showModal();
264
- } else if (!open && dialog.open) {
265
- dialog.close();
266
- }
267
- }, [open]);
268
-
269
- const handleCancel = useCallback(
270
- (e: React.SyntheticEvent) => {
271
- e.preventDefault();
272
- onClose();
257
+ const handleOpenChange = useCallback(
258
+ (nextOpen: boolean) => {
259
+ if (!nextOpen) onClose();
273
260
  },
274
261
  [onClose],
275
262
  );
276
263
 
277
264
  return (
278
- <dialog
279
- ref={dialogRef}
280
- onCancel={handleCancel}
265
+ <DialogShell
266
+ open={open}
267
+ onOpenChange={handleOpenChange}
268
+ width="3xl"
281
269
  aria-label={`Preview ${artifact.name}`}
282
- className={cn(
283
- "stg:fixed stg:inset-0 stg:m-auto stg:w-full stg:max-w-3xl stg:rounded-lg stg:border stg:border-border stg:bg-background stg:p-0 stg:text-foreground stg:shadow-lg stg:outline-none",
284
- "stg:[&::backdrop]:bg-black/50",
285
- className,
286
- )}
270
+ // Background surface is deliberate for content previews. The
271
+ // previously hardcoded ::backdrop color (bg-black/50 it escaped the
272
+ // #652 fence via the arbitrary-variant spelling) now rides the
273
+ // shell's token backdrop.
274
+ className={cn("stg:bg-background stg:text-foreground stg:outline-none", className)}
287
275
  >
288
276
  {open && (
289
277
  <ArtifactPreviewContent
@@ -296,7 +284,7 @@ export function ArtifactPreviewModal({
296
284
  onImplement={onImplement}
297
285
  />
298
286
  )}
299
- </dialog>
287
+ </DialogShell>
300
288
  );
301
289
  }
302
290