@stigmer/react 0.0.71 → 0.0.73

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 (440) hide show
  1. package/agent/AgentEnvForm.d.ts +2 -0
  2. package/agent/AgentEnvForm.d.ts.map +1 -1
  3. package/agent/AgentEnvForm.js.map +1 -1
  4. package/agent/AgentPicker.d.ts +2 -0
  5. package/agent/AgentPicker.d.ts.map +1 -1
  6. package/agent/AgentPicker.js.map +1 -1
  7. package/agent/agentSetupReducer.d.ts +69 -7
  8. package/agent/agentSetupReducer.d.ts.map +1 -1
  9. package/agent/agentSetupReducer.js.map +1 -1
  10. package/agent/useAgentCount.d.ts +2 -0
  11. package/agent/useAgentCount.d.ts.map +1 -1
  12. package/agent/useAgentCount.js.map +1 -1
  13. package/attachment/AttachmentChipList.d.ts +15 -0
  14. package/attachment/AttachmentChipList.d.ts.map +1 -1
  15. package/attachment/AttachmentChipList.js +15 -0
  16. package/attachment/AttachmentChipList.js.map +1 -1
  17. package/attachment/useAttachments.d.ts +14 -0
  18. package/attachment/useAttachments.d.ts.map +1 -1
  19. package/attachment/useAttachments.js.map +1 -1
  20. package/composer/useComposer.d.ts +5 -0
  21. package/composer/useComposer.d.ts.map +1 -1
  22. package/composer/useComposer.js.map +1 -1
  23. package/execution/ExecutionPhaseBadge.d.ts +1 -1
  24. package/execution/ExecutionPhaseBadge.js +1 -1
  25. package/execution/McpToolDetail.d.ts +16 -8
  26. package/execution/McpToolDetail.d.ts.map +1 -1
  27. package/execution/McpToolDetail.js +0 -6
  28. package/execution/McpToolDetail.js.map +1 -1
  29. package/execution/TodoList.d.ts +8 -0
  30. package/execution/TodoList.d.ts.map +1 -1
  31. package/execution/TodoList.js +8 -0
  32. package/execution/TodoList.js.map +1 -1
  33. package/execution/ToolArgsView.d.ts +1 -0
  34. package/execution/ToolArgsView.d.ts.map +1 -1
  35. package/execution/ToolArgsView.js.map +1 -1
  36. package/execution/UsageWidget.d.ts +1 -1
  37. package/execution/UsageWidget.js +1 -1
  38. package/execution/file-path-resolver.d.ts +10 -0
  39. package/execution/file-path-resolver.d.ts.map +1 -1
  40. package/execution/file-path-resolver.js.map +1 -1
  41. package/execution/index.d.ts +1 -1
  42. package/execution/index.d.ts.map +1 -1
  43. package/execution/index.js.map +1 -1
  44. package/execution/useArtifactContent.d.ts +33 -0
  45. package/execution/useArtifactContent.d.ts.map +1 -1
  46. package/execution/useArtifactContent.js +33 -0
  47. package/execution/useArtifactContent.js.map +1 -1
  48. package/execution/useSubmitApproval.d.ts +2 -0
  49. package/execution/useSubmitApproval.d.ts.map +1 -1
  50. package/execution/useSubmitApproval.js.map +1 -1
  51. package/github/GitHubRepoPicker.d.ts +13 -0
  52. package/github/GitHubRepoPicker.d.ts.map +1 -1
  53. package/github/GitHubRepoPicker.js +13 -0
  54. package/github/GitHubRepoPicker.js.map +1 -1
  55. package/github/useGitHubConnection.d.ts +29 -1
  56. package/github/useGitHubConnection.d.ts.map +1 -1
  57. package/github/useGitHubConnection.js +29 -1
  58. package/github/useGitHubConnection.js.map +1 -1
  59. package/github/useGitHubRepos.d.ts +31 -0
  60. package/github/useGitHubRepos.d.ts.map +1 -1
  61. package/github/useGitHubRepos.js +31 -0
  62. package/github/useGitHubRepos.js.map +1 -1
  63. package/github/useGitHubSearch.d.ts +25 -0
  64. package/github/useGitHubSearch.d.ts.map +1 -1
  65. package/github/useGitHubSearch.js +25 -0
  66. package/github/useGitHubSearch.js.map +1 -1
  67. package/iam-policy/GrantAccessForm.d.ts +39 -0
  68. package/iam-policy/GrantAccessForm.d.ts.map +1 -0
  69. package/iam-policy/GrantAccessForm.js +75 -0
  70. package/iam-policy/GrantAccessForm.js.map +1 -0
  71. package/iam-policy/OrgMembersPanel.d.ts +28 -0
  72. package/iam-policy/OrgMembersPanel.d.ts.map +1 -0
  73. package/iam-policy/OrgMembersPanel.js +192 -0
  74. package/iam-policy/OrgMembersPanel.js.map +1 -0
  75. package/iam-policy/RoleSelector.d.ts +37 -0
  76. package/iam-policy/RoleSelector.d.ts.map +1 -0
  77. package/iam-policy/RoleSelector.js +42 -0
  78. package/iam-policy/RoleSelector.js.map +1 -0
  79. package/iam-policy/index.d.ts +12 -0
  80. package/iam-policy/index.d.ts.map +1 -0
  81. package/iam-policy/index.js +12 -0
  82. package/iam-policy/index.js.map +1 -0
  83. package/iam-policy/useCreateIamPolicy.d.ts +35 -0
  84. package/iam-policy/useCreateIamPolicy.d.ts.map +1 -0
  85. package/iam-policy/useCreateIamPolicy.js +46 -0
  86. package/iam-policy/useCreateIamPolicy.js.map +1 -0
  87. package/iam-policy/useDeleteIamPolicy.d.ts +34 -0
  88. package/iam-policy/useDeleteIamPolicy.d.ts.map +1 -0
  89. package/iam-policy/useDeleteIamPolicy.js +45 -0
  90. package/iam-policy/useDeleteIamPolicy.js.map +1 -0
  91. package/iam-policy/useGrantableRoles.d.ts +28 -0
  92. package/iam-policy/useGrantableRoles.d.ts.map +1 -0
  93. package/iam-policy/useGrantableRoles.js +32 -0
  94. package/iam-policy/useGrantableRoles.js.map +1 -0
  95. package/iam-policy/usePrincipalsCount.d.ts +31 -0
  96. package/iam-policy/usePrincipalsCount.d.ts.map +1 -0
  97. package/iam-policy/usePrincipalsCount.js +72 -0
  98. package/iam-policy/usePrincipalsCount.js.map +1 -0
  99. package/iam-policy/useResourceAccess.d.ts +51 -0
  100. package/iam-policy/useResourceAccess.d.ts.map +1 -0
  101. package/iam-policy/useResourceAccess.js +85 -0
  102. package/iam-policy/useResourceAccess.js.map +1 -0
  103. package/iam-policy/useRevokeOrgAccess.d.ts +36 -0
  104. package/iam-policy/useRevokeOrgAccess.d.ts.map +1 -0
  105. package/iam-policy/useRevokeOrgAccess.js +48 -0
  106. package/iam-policy/useRevokeOrgAccess.js.map +1 -0
  107. package/iam-policy/useRoleSelector.d.ts +52 -0
  108. package/iam-policy/useRoleSelector.d.ts.map +1 -0
  109. package/iam-policy/useRoleSelector.js +50 -0
  110. package/iam-policy/useRoleSelector.js.map +1 -0
  111. package/iam-policy/useWhoAmI.d.ts +30 -0
  112. package/iam-policy/useWhoAmI.d.ts.map +1 -0
  113. package/iam-policy/useWhoAmI.js +56 -0
  114. package/iam-policy/useWhoAmI.js.map +1 -0
  115. package/identity-provider/CreateIdentityProviderForm.d.ts +39 -0
  116. package/identity-provider/CreateIdentityProviderForm.d.ts.map +1 -0
  117. package/identity-provider/CreateIdentityProviderForm.js +102 -0
  118. package/identity-provider/CreateIdentityProviderForm.js.map +1 -0
  119. package/identity-provider/IdentityProviderDetailPanel.d.ts +42 -0
  120. package/identity-provider/IdentityProviderDetailPanel.d.ts.map +1 -0
  121. package/identity-provider/IdentityProviderDetailPanel.js +156 -0
  122. package/identity-provider/IdentityProviderDetailPanel.js.map +1 -0
  123. package/identity-provider/IdentityProviderListPanel.d.ts +41 -0
  124. package/identity-provider/IdentityProviderListPanel.d.ts.map +1 -0
  125. package/identity-provider/IdentityProviderListPanel.js +110 -0
  126. package/identity-provider/IdentityProviderListPanel.js.map +1 -0
  127. package/identity-provider/IdentityProviderWizard.d.ts +40 -0
  128. package/identity-provider/IdentityProviderWizard.d.ts.map +1 -0
  129. package/identity-provider/IdentityProviderWizard.js +180 -0
  130. package/identity-provider/IdentityProviderWizard.js.map +1 -0
  131. package/identity-provider/ProviderPicker.d.ts +28 -0
  132. package/identity-provider/ProviderPicker.d.ts.map +1 -0
  133. package/identity-provider/ProviderPicker.js +64 -0
  134. package/identity-provider/ProviderPicker.js.map +1 -0
  135. package/identity-provider/SsoLoginPrompt.d.ts +51 -0
  136. package/identity-provider/SsoLoginPrompt.d.ts.map +1 -0
  137. package/identity-provider/SsoLoginPrompt.js +119 -0
  138. package/identity-provider/SsoLoginPrompt.js.map +1 -0
  139. package/identity-provider/index.d.ts +14 -0
  140. package/identity-provider/index.d.ts.map +1 -0
  141. package/identity-provider/index.js +14 -0
  142. package/identity-provider/index.js.map +1 -0
  143. package/identity-provider/presets.d.ts +65 -0
  144. package/identity-provider/presets.d.ts.map +1 -0
  145. package/identity-provider/presets.js +200 -0
  146. package/identity-provider/presets.js.map +1 -0
  147. package/identity-provider/useCreateIdentityProvider.d.ts +37 -0
  148. package/identity-provider/useCreateIdentityProvider.d.ts.map +1 -0
  149. package/identity-provider/useCreateIdentityProvider.js +48 -0
  150. package/identity-provider/useCreateIdentityProvider.js.map +1 -0
  151. package/identity-provider/useDeleteIdentityProvider.d.ts +34 -0
  152. package/identity-provider/useDeleteIdentityProvider.d.ts.map +1 -0
  153. package/identity-provider/useDeleteIdentityProvider.js +45 -0
  154. package/identity-provider/useDeleteIdentityProvider.js.map +1 -0
  155. package/identity-provider/useIdentityProvider.d.ts +37 -0
  156. package/identity-provider/useIdentityProvider.d.ts.map +1 -0
  157. package/identity-provider/useIdentityProvider.js +62 -0
  158. package/identity-provider/useIdentityProvider.js.map +1 -0
  159. package/identity-provider/useIdentityProviderList.d.ts +48 -0
  160. package/identity-provider/useIdentityProviderList.d.ts.map +1 -0
  161. package/identity-provider/useIdentityProviderList.js +75 -0
  162. package/identity-provider/useIdentityProviderList.js.map +1 -0
  163. package/identity-provider/useOidcDiscovery.d.ts +39 -0
  164. package/identity-provider/useOidcDiscovery.d.ts.map +1 -0
  165. package/identity-provider/useOidcDiscovery.js +76 -0
  166. package/identity-provider/useOidcDiscovery.js.map +1 -0
  167. package/identity-provider/useSsoProvider.d.ts +50 -0
  168. package/identity-provider/useSsoProvider.d.ts.map +1 -0
  169. package/identity-provider/useSsoProvider.js +83 -0
  170. package/identity-provider/useSsoProvider.js.map +1 -0
  171. package/identity-provider/useUpdateIdentityProvider.d.ts +38 -0
  172. package/identity-provider/useUpdateIdentityProvider.d.ts.map +1 -0
  173. package/identity-provider/useUpdateIdentityProvider.js +49 -0
  174. package/identity-provider/useUpdateIdentityProvider.js.map +1 -0
  175. package/index.d.ts +14 -5
  176. package/index.d.ts.map +1 -1
  177. package/index.js +10 -2
  178. package/index.js.map +1 -1
  179. package/internal/CloudFeatureNotice.d.ts +12 -0
  180. package/internal/CloudFeatureNotice.d.ts.map +1 -1
  181. package/internal/CloudFeatureNotice.js +12 -0
  182. package/internal/CloudFeatureNotice.js.map +1 -1
  183. package/invitation/InvitationCreatedAlert.d.ts +35 -0
  184. package/invitation/InvitationCreatedAlert.d.ts.map +1 -0
  185. package/invitation/InvitationCreatedAlert.js +60 -0
  186. package/invitation/InvitationCreatedAlert.js.map +1 -0
  187. package/invitation/InvitationManager.d.ts +44 -0
  188. package/invitation/InvitationManager.d.ts.map +1 -0
  189. package/invitation/InvitationManager.js +248 -0
  190. package/invitation/InvitationManager.js.map +1 -0
  191. package/invitation/InvitationRedemption.d.ts +69 -0
  192. package/invitation/InvitationRedemption.d.ts.map +1 -0
  193. package/invitation/InvitationRedemption.js +140 -0
  194. package/invitation/InvitationRedemption.js.map +1 -0
  195. package/invitation/index.d.ts +17 -0
  196. package/invitation/index.d.ts.map +1 -0
  197. package/invitation/index.js +9 -0
  198. package/invitation/index.js.map +1 -0
  199. package/invitation/useCreateInvitation.d.ts +52 -0
  200. package/invitation/useCreateInvitation.d.ts.map +1 -0
  201. package/invitation/useCreateInvitation.js +55 -0
  202. package/invitation/useCreateInvitation.js.map +1 -0
  203. package/invitation/useInvitationPreview.d.ts +51 -0
  204. package/invitation/useInvitationPreview.d.ts.map +1 -0
  205. package/invitation/useInvitationPreview.js +80 -0
  206. package/invitation/useInvitationPreview.js.map +1 -0
  207. package/invitation/useOrgInvitations.d.ts +36 -0
  208. package/invitation/useOrgInvitations.d.ts.map +1 -0
  209. package/invitation/useOrgInvitations.js +65 -0
  210. package/invitation/useOrgInvitations.js.map +1 -0
  211. package/invitation/useRedeemInvitation.d.ts +47 -0
  212. package/invitation/useRedeemInvitation.d.ts.map +1 -0
  213. package/invitation/useRedeemInvitation.js +53 -0
  214. package/invitation/useRedeemInvitation.js.map +1 -0
  215. package/invitation/useRevokeInvitation.d.ts +35 -0
  216. package/invitation/useRevokeInvitation.d.ts.map +1 -0
  217. package/invitation/useRevokeInvitation.js +47 -0
  218. package/invitation/useRevokeInvitation.js.map +1 -0
  219. package/library/detect-skill-package.d.ts +1 -0
  220. package/library/detect-skill-package.d.ts.map +1 -1
  221. package/library/detect-skill-package.js.map +1 -1
  222. package/library/detect-stigmer-resource.d.ts +1 -0
  223. package/library/detect-stigmer-resource.d.ts.map +1 -1
  224. package/library/detect-stigmer-resource.js.map +1 -1
  225. package/library/parse-resource-yaml.d.ts +4 -0
  226. package/library/parse-resource-yaml.d.ts.map +1 -1
  227. package/library/parse-resource-yaml.js.map +1 -1
  228. package/mcp-server/McpServerDetailView.d.ts +2 -2
  229. package/mcp-server/McpServerDetailView.d.ts.map +1 -1
  230. package/mcp-server/McpServerDetailView.js.map +1 -1
  231. package/mcp-server/index.d.ts +1 -1
  232. package/mcp-server/index.d.ts.map +1 -1
  233. package/mcp-server/index.js.map +1 -1
  234. package/mcp-server/mcpServerSetupReducer.d.ts +54 -0
  235. package/mcp-server/mcpServerSetupReducer.d.ts.map +1 -1
  236. package/mcp-server/mcpServerSetupReducer.js.map +1 -1
  237. package/models/ModelSelector.d.ts +9 -0
  238. package/models/ModelSelector.d.ts.map +1 -1
  239. package/models/ModelSelector.js +9 -0
  240. package/models/ModelSelector.js.map +1 -1
  241. package/models/registry.d.ts +11 -1
  242. package/models/registry.d.ts.map +1 -1
  243. package/models/registry.js.map +1 -1
  244. package/models/useModelRegistry.d.ts +20 -0
  245. package/models/useModelRegistry.d.ts.map +1 -1
  246. package/models/useModelRegistry.js +20 -0
  247. package/models/useModelRegistry.js.map +1 -1
  248. package/organization/OrgProfilePanel.d.ts +31 -0
  249. package/organization/OrgProfilePanel.d.ts.map +1 -0
  250. package/organization/OrgProfilePanel.js +147 -0
  251. package/organization/OrgProfilePanel.js.map +1 -0
  252. package/organization/index.d.ts +6 -0
  253. package/organization/index.d.ts.map +1 -1
  254. package/organization/index.js +3 -0
  255. package/organization/index.js.map +1 -1
  256. package/organization/useOrganization.d.ts +31 -0
  257. package/organization/useOrganization.d.ts.map +1 -0
  258. package/organization/useOrganization.js +56 -0
  259. package/organization/useOrganization.js.map +1 -0
  260. package/organization/useUpdateOrganization.d.ts +40 -0
  261. package/organization/useUpdateOrganization.d.ts.map +1 -0
  262. package/organization/useUpdateOrganization.js +51 -0
  263. package/organization/useUpdateOrganization.js.map +1 -0
  264. package/package.json +4 -4
  265. package/provider.d.ts +1 -0
  266. package/provider.d.ts.map +1 -1
  267. package/provider.js.map +1 -1
  268. package/search/useResourceList.d.ts +4 -2
  269. package/search/useResourceList.d.ts.map +1 -1
  270. package/search/useResourceList.js +2 -1
  271. package/search/useResourceList.js.map +1 -1
  272. package/search/useResourceSearch.d.ts +10 -2
  273. package/search/useResourceSearch.d.ts.map +1 -1
  274. package/search/useResourceSearch.js +2 -1
  275. package/search/useResourceSearch.js.map +1 -1
  276. package/session/group-sessions.d.ts +23 -0
  277. package/session/group-sessions.d.ts.map +1 -1
  278. package/session/group-sessions.js +23 -0
  279. package/session/group-sessions.js.map +1 -1
  280. package/session/index.d.ts +1 -1
  281. package/session/index.d.ts.map +1 -1
  282. package/session/index.js.map +1 -1
  283. package/session/useCreateSession.d.ts +11 -2
  284. package/session/useCreateSession.d.ts.map +1 -1
  285. package/session/useCreateSession.js.map +1 -1
  286. package/session/useSession.d.ts +24 -0
  287. package/session/useSession.d.ts.map +1 -1
  288. package/session/useSession.js +24 -0
  289. package/session/useSession.js.map +1 -1
  290. package/session/useSessionArtifacts.d.ts +1 -0
  291. package/session/useSessionArtifacts.d.ts.map +1 -1
  292. package/session/useSessionArtifacts.js.map +1 -1
  293. package/session/useSessionConversation.d.ts +7 -0
  294. package/session/useSessionConversation.d.ts.map +1 -1
  295. package/session/useSessionConversation.js.map +1 -1
  296. package/session/useSessionExecutions.d.ts +23 -0
  297. package/session/useSessionExecutions.d.ts.map +1 -1
  298. package/session/useSessionExecutions.js +23 -0
  299. package/session/useSessionExecutions.js.map +1 -1
  300. package/session/useSessionList.d.ts +19 -0
  301. package/session/useSessionList.d.ts.map +1 -1
  302. package/session/useSessionList.js +19 -0
  303. package/session/useSessionList.js.map +1 -1
  304. package/session/useSessionWriteBacks.d.ts +1 -0
  305. package/session/useSessionWriteBacks.d.ts.map +1 -1
  306. package/session/useSessionWriteBacks.js.map +1 -1
  307. package/session/useUpdateSession.d.ts +22 -0
  308. package/session/useUpdateSession.d.ts.map +1 -1
  309. package/session/useUpdateSession.js +22 -0
  310. package/session/useUpdateSession.js.map +1 -1
  311. package/skill/SkillPicker.d.ts +15 -0
  312. package/skill/SkillPicker.d.ts.map +1 -1
  313. package/skill/SkillPicker.js +15 -0
  314. package/skill/SkillPicker.js.map +1 -1
  315. package/src/agent/AgentEnvForm.tsx +2 -0
  316. package/src/agent/AgentPicker.tsx +2 -0
  317. package/src/agent/agentSetupReducer.ts +109 -20
  318. package/src/agent/useAgentCount.ts +2 -0
  319. package/src/attachment/AttachmentChipList.tsx +15 -0
  320. package/src/attachment/useAttachments.ts +14 -0
  321. package/src/composer/useComposer.ts +5 -0
  322. package/src/execution/ExecutionPhaseBadge.tsx +1 -1
  323. package/src/execution/McpToolDetail.tsx +18 -6
  324. package/src/execution/TodoList.tsx +8 -0
  325. package/src/execution/ToolArgsView.tsx +1 -0
  326. package/src/execution/UsageWidget.tsx +1 -1
  327. package/src/execution/file-path-resolver.ts +28 -4
  328. package/src/execution/index.ts +5 -1
  329. package/src/execution/useArtifactContent.ts +33 -0
  330. package/src/execution/useSubmitApproval.ts +2 -0
  331. package/src/github/GitHubRepoPicker.tsx +13 -0
  332. package/src/github/useGitHubConnection.ts +29 -1
  333. package/src/github/useGitHubRepos.ts +31 -0
  334. package/src/github/useGitHubSearch.ts +25 -0
  335. package/src/iam-policy/GrantAccessForm.tsx +198 -0
  336. package/src/iam-policy/OrgMembersPanel.tsx +572 -0
  337. package/src/iam-policy/RoleSelector.tsx +105 -0
  338. package/src/iam-policy/index.ts +51 -0
  339. package/src/iam-policy/useCreateIamPolicy.ts +66 -0
  340. package/src/iam-policy/useDeleteIamPolicy.ts +65 -0
  341. package/src/iam-policy/useGrantableRoles.ts +45 -0
  342. package/src/iam-policy/usePrincipalsCount.ts +96 -0
  343. package/src/iam-policy/useResourceAccess.ts +128 -0
  344. package/src/iam-policy/useRevokeOrgAccess.ts +74 -0
  345. package/src/iam-policy/useRoleSelector.ts +97 -0
  346. package/src/iam-policy/useWhoAmI.ts +78 -0
  347. package/src/identity-provider/CreateIdentityProviderForm.tsx +308 -0
  348. package/src/identity-provider/IdentityProviderDetailPanel.tsx +583 -0
  349. package/src/identity-provider/IdentityProviderListPanel.tsx +370 -0
  350. package/src/identity-provider/IdentityProviderWizard.tsx +684 -0
  351. package/src/identity-provider/ProviderPicker.tsx +152 -0
  352. package/src/identity-provider/SsoLoginPrompt.tsx +404 -0
  353. package/src/identity-provider/index.ts +67 -0
  354. package/src/identity-provider/presets.ts +262 -0
  355. package/src/identity-provider/useCreateIdentityProvider.ts +68 -0
  356. package/src/identity-provider/useDeleteIdentityProvider.ts +65 -0
  357. package/src/identity-provider/useIdentityProvider.ts +86 -0
  358. package/src/identity-provider/useIdentityProviderList.ts +100 -0
  359. package/src/identity-provider/useOidcDiscovery.ts +124 -0
  360. package/src/identity-provider/useSsoProvider.ts +99 -0
  361. package/src/identity-provider/useUpdateIdentityProvider.ts +69 -0
  362. package/src/index.ts +121 -1
  363. package/src/internal/CloudFeatureNotice.tsx +12 -0
  364. package/src/invitation/InvitationCreatedAlert.tsx +185 -0
  365. package/src/invitation/InvitationManager.tsx +842 -0
  366. package/src/invitation/InvitationRedemption.tsx +434 -0
  367. package/src/invitation/index.ts +16 -0
  368. package/src/invitation/useCreateInvitation.ts +83 -0
  369. package/src/invitation/useInvitationPreview.ts +103 -0
  370. package/src/invitation/useOrgInvitations.ts +88 -0
  371. package/src/invitation/useRedeemInvitation.ts +82 -0
  372. package/src/invitation/useRevokeInvitation.ts +66 -0
  373. package/src/library/detect-skill-package.ts +4 -1
  374. package/src/library/detect-stigmer-resource.ts +4 -1
  375. package/src/library/parse-resource-yaml.ts +12 -2
  376. package/src/mcp-server/McpServerDetailView.tsx +2 -1
  377. package/src/mcp-server/index.ts +4 -1
  378. package/src/mcp-server/mcpServerSetupReducer.ts +86 -8
  379. package/src/models/ModelSelector.tsx +9 -0
  380. package/src/models/registry.ts +11 -1
  381. package/src/models/useModelRegistry.ts +20 -0
  382. package/src/organization/OrgProfilePanel.tsx +451 -0
  383. package/src/organization/index.ts +6 -0
  384. package/src/organization/useOrganization.ts +79 -0
  385. package/src/organization/useUpdateOrganization.ts +71 -0
  386. package/src/provider.tsx +1 -0
  387. package/src/search/useResourceList.ts +6 -3
  388. package/src/search/useResourceSearch.ts +12 -3
  389. package/src/session/group-sessions.ts +23 -0
  390. package/src/session/index.ts +1 -0
  391. package/src/session/useCreateSession.ts +19 -3
  392. package/src/session/useSession.ts +24 -0
  393. package/src/session/useSessionArtifacts.ts +1 -0
  394. package/src/session/useSessionConversation.ts +7 -0
  395. package/src/session/useSessionExecutions.ts +23 -0
  396. package/src/session/useSessionList.ts +19 -0
  397. package/src/session/useSessionWriteBacks.ts +1 -0
  398. package/src/session/useUpdateSession.ts +22 -0
  399. package/src/skill/SkillPicker.tsx +15 -0
  400. package/src/usage/OrgUsagePanel.tsx +465 -0
  401. package/src/usage/date-range.ts +86 -0
  402. package/src/usage/index.ts +13 -0
  403. package/src/usage/useOrgUsageReport.ts +110 -0
  404. package/src/workspace/FolderBrowser.tsx +9 -0
  405. package/src/workspace/WorkspaceEditor.tsx +17 -0
  406. package/src/workspace/useFolderListing.ts +24 -0
  407. package/src/workspace/useWorkspaceEntries.ts +38 -0
  408. package/styles.css +1 -1
  409. package/usage/OrgUsagePanel.d.ts +24 -0
  410. package/usage/OrgUsagePanel.d.ts.map +1 -0
  411. package/usage/OrgUsagePanel.js +134 -0
  412. package/usage/OrgUsagePanel.js.map +1 -0
  413. package/usage/date-range.d.ts +36 -0
  414. package/usage/date-range.d.ts.map +1 -0
  415. package/usage/date-range.js +69 -0
  416. package/usage/date-range.js.map +1 -0
  417. package/usage/index.d.ts +7 -0
  418. package/usage/index.d.ts.map +1 -0
  419. package/usage/index.js +4 -0
  420. package/usage/index.js.map +1 -0
  421. package/usage/useOrgUsageReport.d.ts +48 -0
  422. package/usage/useOrgUsageReport.d.ts.map +1 -0
  423. package/usage/useOrgUsageReport.js +72 -0
  424. package/usage/useOrgUsageReport.js.map +1 -0
  425. package/workspace/FolderBrowser.d.ts +9 -0
  426. package/workspace/FolderBrowser.d.ts.map +1 -1
  427. package/workspace/FolderBrowser.js +9 -0
  428. package/workspace/FolderBrowser.js.map +1 -1
  429. package/workspace/WorkspaceEditor.d.ts +17 -0
  430. package/workspace/WorkspaceEditor.d.ts.map +1 -1
  431. package/workspace/WorkspaceEditor.js +17 -0
  432. package/workspace/WorkspaceEditor.js.map +1 -1
  433. package/workspace/useFolderListing.d.ts +24 -0
  434. package/workspace/useFolderListing.d.ts.map +1 -1
  435. package/workspace/useFolderListing.js +24 -0
  436. package/workspace/useFolderListing.js.map +1 -1
  437. package/workspace/useWorkspaceEntries.d.ts +38 -0
  438. package/workspace/useWorkspaceEntries.d.ts.map +1 -1
  439. package/workspace/useWorkspaceEntries.js +25 -0
  440. package/workspace/useWorkspaceEntries.js.map +1 -1
@@ -12,6 +12,28 @@ import { useStigmer } from "../hooks";
12
12
  * {@link useSessionConversation} rather than used directly. Platform
13
13
  * builders who need direct session mutation can use this hook
14
14
  * standalone.
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * function RenameSession({ session }: { session: Session }) {
19
+ * const { update, isUpdating, error } = useUpdateSession();
20
+ *
21
+ * async function handleRename(newSubject: string) {
22
+ * await update({
23
+ * name: session.metadata!.name,
24
+ * org: session.metadata!.org,
25
+ * agentInstanceId: session.spec?.agentInstanceId,
26
+ * subject: newSubject,
27
+ * });
28
+ * }
29
+ *
30
+ * return (
31
+ * <button onClick={() => handleRename("New subject")} disabled={isUpdating}>
32
+ * Rename
33
+ * </button>
34
+ * );
35
+ * }
36
+ * ```
15
37
  */
16
38
  export function useUpdateSession() {
17
39
  const stigmer = useStigmer();
@@ -1 +1 @@
1
- {"version":3,"file":"useUpdateSession.js","sourceRoot":"","sources":["../../src/session/useUpdateSession.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AActC;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,gBAAgB;IAC9B,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAExD,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAEzD,MAAM,MAAM,GAAG,WAAW,CACxB,KAAK,EAAE,KAAmB,EAAoB,EAAE;QAC9C,aAAa,CAAC,IAAI,CAAC,CAAC;QACpB,QAAQ,CAAC,IAAI,CAAC,CAAC;QAEf,IAAI,CAAC;YACH,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC7C,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,OAAO,GACX,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,0BAA0B,CAAC;YAClE,QAAQ,CAAC,OAAO,CAAC,CAAC;YAClB,MAAM,GAAG,CAAC;QACZ,CAAC;gBAAS,CAAC;YACT,aAAa,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;IACH,CAAC,EACD,CAAC,OAAO,CAAC,CACV,CAAC;IAEF,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK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EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;AACnD,CAAC"}
@@ -34,6 +34,21 @@ export interface SkillPickerProps {
34
34
  * Selected skills produce `ResourceRef[]` with `kind: skill`.
35
35
  *
36
36
  * All visual properties flow through `--stgm-*` tokens.
37
+ *
38
+ * @example
39
+ * ```tsx
40
+ * function SkillSelector({ org }: { org: string }) {
41
+ * const [skills, setSkills] = useState<ResourceRef[]>([]);
42
+ *
43
+ * return (
44
+ * <SkillPicker
45
+ * org={org}
46
+ * value={skills}
47
+ * onChange={setSkills}
48
+ * />
49
+ * );
50
+ * }
51
+ * ```
37
52
  */
38
53
  export declare function SkillPicker({ org, scope, value, onChange, onDisplayNameResolved, disabled, className, }: SkillPickerProps): import("react/jsx-runtime").JSX.Element;
39
54
  //# sourceMappingURL=SkillPicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SkillPicker.d.ts","sourceRoot":"","sources":["../../src/skill/SkillPicker.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAQhD,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,0DAA0D;IAC1D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC/B,2CAA2C;IAC3C,QAAQ,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC;IAC9B,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IACjD,+EAA+E;IAC/E,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,gCAAgC;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,yDAAyD;IACzD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAQD;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,KAAK,EACL,KAAK,EACL,QAAQ,EACR,qBAAqB,EACrB,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,2CA8MlB"}
1
+ {"version":3,"file":"SkillPicker.d.ts","sourceRoot":"","sources":["../../src/skill/SkillPicker.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAQhD,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,0DAA0D;IAC1D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC/B,2CAA2C;IAC3C,QAAQ,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC;IAC9B,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IACjD,+EAA+E;IAC/E,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,gCAAgC;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,yDAAyD;IACzD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAQD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,KAAK,EACL,KAAK,EACL,QAAQ,EACR,qBAAqB,EACrB,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,2CA8MlB"}
@@ -20,6 +20,21 @@ const LIST_ID = "stgm-skill-list";
20
20
  * Selected skills produce `ResourceRef[]` with `kind: skill`.
21
21
  *
22
22
  * All visual properties flow through `--stgm-*` tokens.
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * function SkillSelector({ org }: { org: string }) {
27
+ * const [skills, setSkills] = useState<ResourceRef[]>([]);
28
+ *
29
+ * return (
30
+ * <SkillPicker
31
+ * org={org}
32
+ * value={skills}
33
+ * onChange={setSkills}
34
+ * />
35
+ * );
36
+ * }
37
+ * ```
23
38
  */
24
39
  export function SkillPicker({ org, scope, value, onChange, onDisplayNameResolved, disabled, className, }) {
25
40
  const { results, isLoading, error, query, setQuery } = useSkillSearch(org, { scope });
@@ -1 +1 @@
1
- {"version":3,"file":"SkillPicker.js","sourceRoot":"","sources":["../../src/skill/SkillPicker.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,MAAM,EACN,OAAO,GAER,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AACtH,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AA4BpD,SAAS,MAAM,CAAC,GAAgB;IAC9B,OAAO,GAAG,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC;AAClC,CAAC;AAED,MAAM,OAAO,GAAG,iBAAiB,CAAC;AAElC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,WAAW,CAAC,EAC1B,GAAG,EACH,KAAK,EACL,KAAK,EACL,QAAQ,EACR,qBAAqB,EACrB,QAAQ,EACR,SAAS,GACQ;IACjB,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAE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AG,GAC7B,CACP,CAAC;AACJ,CAAC"}
@@ -55,6 +55,7 @@ export interface AgentEnvFormProps {
55
55
  readonly onCancel?: () => void;
56
56
  /** When true, the submit button shows a spinner and inputs are disabled. */
57
57
  readonly isSubmitting?: boolean;
58
+ /** Prevents interaction with all form inputs when `true`. */
58
59
  readonly disabled?: boolean;
59
60
  /**
60
61
  * Initial state of the "Save for future runs" toggle.
@@ -75,6 +76,7 @@ export interface AgentEnvFormProps {
75
76
  * Passed through to {@link EnvVarForm}.
76
77
  */
77
78
  readonly poolValues?: EnvVarFormProps["poolValues"];
79
+ /** Additional CSS class names for the root container. */
78
80
  readonly className?: string;
79
81
  }
80
82
 
@@ -36,7 +36,9 @@ export interface AgentPickerProps {
36
36
  * @default "org"
37
37
  */
38
38
  readonly scope?: "org" | "all";
39
+ /** Prevents interaction with the picker when `true`. */
39
40
  readonly disabled?: boolean;
41
+ /** Additional CSS class names for the root container. */
40
42
  readonly className?: string;
41
43
  }
42
44
 
@@ -18,9 +18,22 @@ import type { AgentEnvFormVariable } from "./AgentEnvForm";
18
18
  * Create the session with `agentRef` directly.
19
19
  */
20
20
  export type AgentResolution =
21
- | { readonly mode: "saved"; readonly instanceId: string }
22
- | { readonly mode: "oneTime"; readonly runtimeEnv: Record<string, EnvVarInput> }
23
- | { readonly mode: "direct" };
21
+ | {
22
+ /** Secrets were persisted to the user's personal environment. */
23
+ readonly mode: "saved";
24
+ /** ID of the personal agent instance to use for session creation. */
25
+ readonly instanceId: string;
26
+ }
27
+ | {
28
+ /** Secrets were collected but not persisted — pass to execution only. */
29
+ readonly mode: "oneTime";
30
+ /** Collected secrets to forward as execution-scoped runtime env vars. */
31
+ readonly runtimeEnv: Record<string, EnvVarInput>;
32
+ }
33
+ | {
34
+ /** The agent has no `env_spec` and needs no secrets. */
35
+ readonly mode: "direct";
36
+ };
24
37
 
25
38
  // ---------------------------------------------------------------------------
26
39
  // State machine — phases of the agent setup flow
@@ -36,26 +49,48 @@ export type AgentResolution =
36
49
  * narrowing in consumer code.
37
50
  */
38
51
  export type AgentSetupPhase =
39
- | { readonly status: "idle" }
40
- | { readonly status: "resolving"; readonly agentRef: ResourceRef }
41
52
  | {
53
+ /** No agent resolution has been initiated. */
54
+ readonly status: "idle";
55
+ }
56
+ | {
57
+ /** The agent blueprint is being fetched and its env spec is being evaluated. */
58
+ readonly status: "resolving";
59
+ /** Reference to the agent being resolved. */
60
+ readonly agentRef: ResourceRef;
61
+ }
62
+ | {
63
+ /** The agent requires environment variables that the user has not yet provided. */
42
64
  readonly status: "needsEnvVars";
65
+ /** Reference to the agent being set up. */
43
66
  readonly agentRef: ResourceRef;
67
+ /** Server-assigned ID of the agent blueprint. */
44
68
  readonly agentId: string;
69
+ /** Display name of the agent. */
45
70
  readonly agentName: string;
71
+ /** Environment variables the user must provide before proceeding. */
46
72
  readonly missingVariables: AgentEnvFormVariable[];
47
73
  }
48
74
  | {
75
+ /** Environment variables are being persisted or the instance is being provisioned. */
49
76
  readonly status: "submitting";
77
+ /** Reference to the agent being set up. */
50
78
  readonly agentRef: ResourceRef;
79
+ /** Server-assigned ID of the agent blueprint. */
51
80
  readonly agentId: string;
81
+ /** Display name of the agent. */
52
82
  readonly agentName: string;
83
+ /** Environment variables that were collected from the user. */
53
84
  readonly missingVariables: AgentEnvFormVariable[];
54
85
  }
55
86
  | {
87
+ /** The agent is fully resolved and ready for session creation. */
56
88
  readonly status: "ready";
89
+ /** Reference to the resolved agent. */
57
90
  readonly agentRef: ResourceRef;
91
+ /** Display name of the resolved agent. */
58
92
  readonly agentName: string;
93
+ /** How the agent was resolved — determines session creation strategy. */
59
94
  readonly resolution: AgentResolution;
60
95
  };
61
96
 
@@ -68,6 +103,7 @@ export type AgentSetupPhase =
68
103
  * error messages without losing the current phase context.
69
104
  */
70
105
  export type AgentSetupState = AgentSetupPhase & {
106
+ /** Error from the last async transition, or `null` when healthy. */
71
107
  readonly error: Error | null;
72
108
  };
73
109
 
@@ -76,63 +112,116 @@ export type AgentSetupState = AgentSetupPhase & {
76
112
  // ---------------------------------------------------------------------------
77
113
 
78
114
  /**
79
- * Result returned by {@link useAgentSetup.resolveAgent}.
115
+ * Result returned by `useAgentSetup().resolveAgent()`.
116
+ *
117
+ * - `"ready"` — the agent can be used immediately.
118
+ * - `"needsEnvVars"` — the agent requires environment variables
119
+ * the user has not yet provided.
120
+ */
121
+ /**
122
+ * Result returned by `useAgentSetup().submitEnvVars()` — always `"ready"`.
123
+ *
124
+ * Also used as the `"ready"` variant of {@link AgentSetupResult}.
125
+ */
126
+ export interface AgentSetupReadyResult {
127
+ /** The agent is ready for session creation. */
128
+ readonly status: "ready";
129
+ /** Reference to the resolved agent. */
130
+ readonly agentRef: ResourceRef;
131
+ /** Display name of the resolved agent. */
132
+ readonly agentName: string;
133
+ /** How the agent was resolved — determines session creation strategy. */
134
+ readonly resolution: AgentResolution;
135
+ }
136
+
137
+ /**
138
+ * Result returned by `useAgentSetup().resolveAgent()`.
80
139
  *
81
140
  * - `"ready"` — the agent can be used immediately.
82
141
  * - `"needsEnvVars"` — the agent requires environment variables
83
142
  * the user has not yet provided.
84
143
  */
85
144
  export type AgentSetupResult =
145
+ | AgentSetupReadyResult
86
146
  | {
87
- readonly status: "ready";
88
- readonly agentRef: ResourceRef;
89
- readonly agentName: string;
90
- readonly resolution: AgentResolution;
91
- }
92
- | {
147
+ /** The agent requires env vars the user has not yet provided. */
93
148
  readonly status: "needsEnvVars";
149
+ /** Reference to the agent being set up. */
94
150
  readonly agentRef: ResourceRef;
151
+ /** Display name of the agent. */
95
152
  readonly agentName: string;
153
+ /** Environment variables the user must provide before proceeding. */
96
154
  readonly missingVariables: AgentEnvFormVariable[];
97
155
  };
98
156
 
99
- /** Result returned by {@link useAgentSetup.submitEnvVars} — always `"ready"`. */
100
- export type AgentSetupReadyResult = AgentSetupResult & { readonly status: "ready" };
101
-
102
157
  // ---------------------------------------------------------------------------
103
158
  // Actions
104
159
  // ---------------------------------------------------------------------------
105
160
 
106
161
  /** Action union for the agent setup state machine managed by {@link agentSetupReducer}. */
107
162
  export type AgentSetupAction =
108
- | { readonly type: "RESOLVE_START"; readonly agentRef: ResourceRef }
109
163
  | {
164
+ /** Begin resolving an agent's requirements. */
165
+ readonly type: "RESOLVE_START";
166
+ /** Reference to the agent to resolve. */
167
+ readonly agentRef: ResourceRef;
168
+ }
169
+ | {
170
+ /** Agent resolved but requires env vars from the user. */
110
171
  readonly type: "RESOLVE_NEEDS_ENV";
172
+ /** Reference to the agent. */
111
173
  readonly agentRef: ResourceRef;
174
+ /** Server-assigned agent ID. */
112
175
  readonly agentId: string;
176
+ /** Display name of the agent. */
113
177
  readonly agentName: string;
178
+ /** Variables the user must provide. */
114
179
  readonly missingVariables: AgentEnvFormVariable[];
115
180
  }
116
181
  | {
182
+ /** Agent resolved and is ready for session creation. */
117
183
  readonly type: "RESOLVE_READY";
184
+ /** Reference to the resolved agent. */
118
185
  readonly agentRef: ResourceRef;
186
+ /** Display name of the resolved agent. */
119
187
  readonly agentName: string;
188
+ /** Resolution strategy for session creation. */
120
189
  readonly resolution: AgentResolution;
121
190
  }
122
191
  | {
192
+ /** Re-evaluate missing variables after pool values arrive. */
123
193
  readonly type: "POOL_RESOLVE";
194
+ /** Updated missing variables (may be empty if pool covered all). */
124
195
  readonly missingVariables: AgentEnvFormVariable[];
125
196
  }
126
- | { readonly type: "SUBMIT_START" }
127
197
  | {
198
+ /** Begin persisting env vars or creating an agent instance. */
199
+ readonly type: "SUBMIT_START";
200
+ }
201
+ | {
202
+ /** Env var submission succeeded — agent is ready. */
128
203
  readonly type: "SUBMIT_READY";
204
+ /** Reference to the resolved agent. */
129
205
  readonly agentRef: ResourceRef;
206
+ /** Display name of the resolved agent. */
130
207
  readonly agentName: string;
208
+ /** Resolution strategy for session creation. */
131
209
  readonly resolution: AgentResolution;
132
210
  }
133
- | { readonly type: "ERROR"; readonly error: Error }
134
- | { readonly type: "CLEAR_ERROR" }
135
- | { readonly type: "RESET" };
211
+ | {
212
+ /** An async operation failed. */
213
+ readonly type: "ERROR";
214
+ /** The error that occurred. */
215
+ readonly error: Error;
216
+ }
217
+ | {
218
+ /** Clear the error without changing phase. */
219
+ readonly type: "CLEAR_ERROR";
220
+ }
221
+ | {
222
+ /** Reset to idle state. */
223
+ readonly type: "RESET";
224
+ };
136
225
 
137
226
  // ---------------------------------------------------------------------------
138
227
  // Reducer
@@ -26,7 +26,9 @@ export interface UseAgentCountReturn {
26
26
  * until the first successful fetch completes.
27
27
  */
28
28
  readonly count: number | undefined;
29
+ /** `true` while the count fetch is in flight. */
29
30
  readonly isLoading: boolean;
31
+ /** Error message from the last failed fetch, or `null` when healthy. */
30
32
  readonly error: string | null;
31
33
  /** Re-fetch the count with the same parameters. */
32
34
  readonly refetch: () => void;
@@ -27,6 +27,21 @@ export interface AttachmentChipListProps {
27
27
  * who compose their own attachment UI.
28
28
  *
29
29
  * All visual properties flow through `--stgm-*` tokens.
30
+ *
31
+ * @example
32
+ * ```tsx
33
+ * function CustomComposer() {
34
+ * const attachments = useAttachments({ sessionId });
35
+ *
36
+ * return (
37
+ * <AttachmentChipList
38
+ * entries={attachments.entries}
39
+ * onRemove={attachments.remove}
40
+ * onRetry={attachments.retry}
41
+ * />
42
+ * );
43
+ * }
44
+ * ```
30
45
  */
31
46
  export function AttachmentChipList({
32
47
  entries,
@@ -31,6 +31,20 @@ export type AttachmentPhase = "uploading" | "ready" | "error";
31
31
  * The `id` is a stable string generated at add-time, used as a React
32
32
  * key and for removal. The same `File` added twice produces two
33
33
  * independent entries with distinct IDs.
34
+ *
35
+ * @example
36
+ * ```tsx
37
+ * const attachments = useAttachments();
38
+ *
39
+ * attachments.entries.map((entry) => (
40
+ * <span key={entry.id}>
41
+ * {entry.file.name}
42
+ * {entry.phase === "uploading" && <Spinner />}
43
+ * {entry.phase === "error" && <span>{entry.error}</span>}
44
+ * {entry.phase === "ready" && <CheckIcon />}
45
+ * </span>
46
+ * ));
47
+ * ```
34
48
  */
35
49
  export interface AttachmentEntry {
36
50
  /** Unique client-side identifier for this attachment. */
@@ -40,10 +40,15 @@ export interface UseComposerReturn {
40
40
  * then specifying overrides.
41
41
  */
42
42
  readonly textareaProps: {
43
+ /** Ref to the underlying `<textarea>` element. */
43
44
  readonly ref: RefObject<HTMLTextAreaElement | null>;
45
+ /** Current message text bound to the textarea. */
44
46
  readonly value: string;
47
+ /** Change handler that updates message state and triggers auto-resize. */
45
48
  readonly onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
49
+ /** Key handler that submits on Enter and allows Shift+Enter for newlines. */
46
50
  readonly onKeyDown: (e: KeyboardEvent<HTMLTextAreaElement>) => void;
51
+ /** Whether the textarea is disabled (prevents typing and submission). */
47
52
  readonly disabled: boolean;
48
53
  };
49
54
  /** Whether the current message is non-empty and the input is not disabled. */
@@ -85,7 +85,7 @@ const PHASE_CONFIG: ReadonlyMap<ExecutionPhase, PhaseConfig> = new Map([
85
85
  ]);
86
86
 
87
87
  /**
88
- * Displays the lifecycle phase of an {@link AgentExecution} as an
88
+ * Displays the lifecycle phase of an `AgentExecution` as an
89
89
  * inline badge with a status icon and label.
90
90
  *
91
91
  * Renders nothing for `EXECUTION_PHASE_UNSPECIFIED`.
@@ -66,6 +66,16 @@ export function McpToolDetail({ toolCall, className }: McpToolDetailProps) {
66
66
  // Metadata
67
67
  // ---------------------------------------------------------------------------
68
68
 
69
+ /** Props for {@link McpMetadataRow}. */
70
+ export interface McpMetadataRowProps {
71
+ /** Slug of the MCP server that owns the tool. */
72
+ readonly mcpServerSlug: string;
73
+ /** Name of the tool that was invoked. */
74
+ readonly toolName: string;
75
+ /** Human-readable execution duration, or `null` if still running. */
76
+ readonly duration: string | null;
77
+ }
78
+
69
79
  /**
70
80
  * Displays MCP server slug, tool name, and optional duration as a
71
81
  * compact metadata row above tool arguments.
@@ -74,11 +84,7 @@ export function McpMetadataRow({
74
84
  mcpServerSlug,
75
85
  toolName,
76
86
  duration,
77
- }: {
78
- mcpServerSlug: string;
79
- toolName: string;
80
- duration: string | null;
81
- }) {
87
+ }: McpMetadataRowProps) {
82
88
  const hasMetadata = mcpServerSlug || duration;
83
89
  if (!hasMetadata) return null;
84
90
 
@@ -101,13 +107,19 @@ export function McpMetadataRow({
101
107
  // Arguments — structured key-value rendering
102
108
  // ---------------------------------------------------------------------------
103
109
 
110
+ /** Props for {@link McpArgsView}. */
111
+ export interface McpArgsViewProps {
112
+ /** Tool argument map to render as a key-value list. */
113
+ readonly args: Record<string, unknown>;
114
+ }
115
+
104
116
  /**
105
117
  * Renders MCP tool arguments as a structured key-value list.
106
118
  *
107
119
  * Scalars display inline; objects and arrays collapse into
108
120
  * formatted JSON blocks via {@link CollapsibleJsonBlock}.
109
121
  */
110
- export function McpArgsView({ args }: { args: Record<string, unknown> }) {
122
+ export function McpArgsView({ args }: McpArgsViewProps) {
111
123
  const entries = Object.entries(args);
112
124
  if (entries.length === 0) return null;
113
125
 
@@ -38,6 +38,14 @@ function todoSortKey(item: TodoItem): number {
38
38
  * task description.
39
39
  *
40
40
  * All visual properties flow through `--stgm-*` tokens.
41
+ *
42
+ * @example
43
+ * ```tsx
44
+ * const execution = stream.execution;
45
+ * const todos = execution?.status?.todos ?? {};
46
+ *
47
+ * <TodoList todos={todos} />
48
+ * ```
41
49
  */
42
50
  export function TodoList({ todos, className }: TodoListProps) {
43
51
  const sortedTodos = useMemo(() => {
@@ -34,6 +34,7 @@ export interface ToolArgsViewProps {
34
34
  readonly args: Record<string, unknown> | null;
35
35
  /** MCP server slug for MCP tool classification and metadata. */
36
36
  readonly mcpServerSlug?: string;
37
+ /** Additional CSS class names for the root container. */
37
38
  readonly className?: string;
38
39
  }
39
40
 
@@ -25,7 +25,7 @@ export interface UsageWidgetProps {
25
25
 
26
26
  /**
27
27
  * Right-sidebar widget that displays session-level cost and token
28
- * usage aggregated from per-message {@link LlmCallMetrics}.
28
+ * usage aggregated from per-message `LlmCallMetrics`.
29
29
  *
30
30
  * Usage data is computed purely from messages the frontend already
31
31
  * has — no server RPC is required for the real-time widget.
@@ -8,8 +8,18 @@ const PLATFORM_DIR_NAME = ".stigmer";
8
8
  * platform mount (`.stigmer/`) namespace.
9
9
  */
10
10
  export type PathClassification =
11
- | { readonly kind: "workspace"; readonly remainder: string }
12
- | { readonly kind: "platform"; readonly subpath: string };
11
+ | {
12
+ /** The path targets a workspace source entry. */
13
+ readonly kind: "workspace";
14
+ /** Path relative to the workspace root, with `.stigmer/` prefix stripped. */
15
+ readonly remainder: string;
16
+ }
17
+ | {
18
+ /** The path targets the virtual platform mount (`.stigmer/`). */
19
+ readonly kind: "platform";
20
+ /** Path within the platform namespace, after the `.stigmer/` prefix. */
21
+ readonly subpath: string;
22
+ };
13
23
 
14
24
  /**
15
25
  * Classifies whether a path targets the virtual platform mount
@@ -80,8 +90,22 @@ export function resolveGitBrowseUrl(
80
90
  * to decide rendering (anchor vs. copy button).
81
91
  */
82
92
  export type ResolvedPathAction =
83
- | { readonly action: "link"; readonly url: string; readonly tooltip: string }
84
- | { readonly action: "copy"; readonly value: string; readonly tooltip: string };
93
+ | {
94
+ /** Open the path as a navigable URL (e.g. GitHub blob link). */
95
+ readonly action: "link";
96
+ /** Resolved external URL to open. */
97
+ readonly url: string;
98
+ /** Human-readable label for the link action. */
99
+ readonly tooltip: string;
100
+ }
101
+ | {
102
+ /** Copy the path to the clipboard (no navigable URL available). */
103
+ readonly action: "copy";
104
+ /** Resolved path string to copy. */
105
+ readonly value: string;
106
+ /** Human-readable label for the copy action. */
107
+ readonly tooltip: string;
108
+ };
85
109
 
86
110
  /**
87
111
  * Resolves a tool-call file path to a user action.
@@ -48,7 +48,11 @@ export { ToolCallDetail, formatDuration } from "./ToolCallDetail";
48
48
  export type { ToolCallDetailProps } from "./ToolCallDetail";
49
49
 
50
50
  export { McpToolDetail, McpArgsView, McpMetadataRow, parseMcpResult } from "./McpToolDetail";
51
- export type { McpToolDetailProps } from "./McpToolDetail";
51
+ export type {
52
+ McpToolDetailProps,
53
+ McpArgsViewProps,
54
+ McpMetadataRowProps,
55
+ } from "./McpToolDetail";
52
56
 
53
57
  export { ToolArgsView } from "./ToolArgsView";
54
58
  export type { ToolArgsViewProps } from "./ToolArgsView";
@@ -86,6 +86,39 @@ export interface UseArtifactContentReturn {
86
86
  * stable but `contentHash` changes, triggering a re-fetch so the UI never
87
87
  * shows stale content. Pass `undefined` or omit for backwards compatibility.
88
88
  *
89
+ * @example
90
+ * ```tsx
91
+ * function ArtifactViewer({ executionId, artifact }: {
92
+ * executionId: string;
93
+ * artifact: ExecutionArtifact;
94
+ * }) {
95
+ * const shouldFetch = isTextArtifact(artifact)
96
+ * && Number(artifact.sizeBytes) < 512_000;
97
+ *
98
+ * const { content, contentType, isTruncated, isLoading } = useArtifactContent(
99
+ * shouldFetch ? executionId : null,
100
+ * shouldFetch ? artifact.storageKey : null,
101
+ * );
102
+ *
103
+ * if (isLoading) return <Skeleton />;
104
+ * if (!content) return null;
105
+ *
106
+ * return (
107
+ * <ArtifactContentRenderer
108
+ * content={content}
109
+ * contentType={contentType}
110
+ * isTruncated={isTruncated}
111
+ * />
112
+ * );
113
+ * }
114
+ * ```
115
+ *
116
+ * @example
117
+ * ```tsx
118
+ * // Extract a single file from a directory artifact
119
+ * const { content } = useArtifactContent(executionId, storageKey, "SKILL.md");
120
+ * ```
121
+ *
89
122
  * @see useExecutionArtifacts — extracts artifact metadata from an execution
90
123
  * @see isTextArtifact — heuristic for whether content is fetchable as text
91
124
  */
@@ -26,7 +26,9 @@ export interface UseSubmitApprovalReturn {
26
26
  * approve one tool while another decision is still in flight.
27
27
  */
28
28
  readonly submittingToolCallIds: ReadonlySet<string>;
29
+ /** Error from the last failed approval submission, or `null` when healthy. */
29
30
  readonly error: Error | null;
31
+ /** Reset `error` to `null`. */
30
32
  readonly clearError: () => void;
31
33
  }
32
34