@stigmer/react 0.4.8 → 0.5.1

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 (709) hide show
  1. package/action-menu/ActionMenu.d.ts +64 -0
  2. package/action-menu/ActionMenu.d.ts.map +1 -0
  3. package/action-menu/ActionMenu.js +78 -0
  4. package/action-menu/ActionMenu.js.map +1 -0
  5. package/action-menu/index.d.ts +3 -0
  6. package/action-menu/index.d.ts.map +1 -0
  7. package/action-menu/index.js +2 -0
  8. package/action-menu/index.js.map +1 -0
  9. package/action-menu/types.d.ts +65 -0
  10. package/action-menu/types.d.ts.map +1 -0
  11. package/action-menu/types.js +2 -0
  12. package/action-menu/types.js.map +1 -0
  13. package/agent/AgentCreationWizard.d.ts +55 -0
  14. package/agent/AgentCreationWizard.d.ts.map +1 -0
  15. package/agent/AgentCreationWizard.js +115 -0
  16. package/agent/AgentCreationWizard.js.map +1 -0
  17. package/agent/AgentDetailView.d.ts +77 -9
  18. package/agent/AgentDetailView.d.ts.map +1 -1
  19. package/agent/AgentDetailView.js +265 -87
  20. package/agent/AgentDetailView.js.map +1 -1
  21. package/agent/index.d.ts +8 -0
  22. package/agent/index.d.ts.map +1 -1
  23. package/agent/index.js +4 -0
  24. package/agent/index.js.map +1 -1
  25. package/agent/internal/agentToInput.d.ts +12 -0
  26. package/agent/internal/agentToInput.d.ts.map +1 -0
  27. package/agent/internal/agentToInput.js +72 -0
  28. package/agent/internal/agentToInput.js.map +1 -0
  29. package/agent/steps/CapabilitiesStep.d.ts +16 -0
  30. package/agent/steps/CapabilitiesStep.d.ts.map +1 -0
  31. package/agent/steps/CapabilitiesStep.js +80 -0
  32. package/agent/steps/CapabilitiesStep.js.map +1 -0
  33. package/agent/steps/IdentityStep.d.ts +18 -0
  34. package/agent/steps/IdentityStep.d.ts.map +1 -0
  35. package/agent/steps/IdentityStep.js +43 -0
  36. package/agent/steps/IdentityStep.js.map +1 -0
  37. package/agent/steps/ReviewStep.d.ts +23 -0
  38. package/agent/steps/ReviewStep.d.ts.map +1 -0
  39. package/agent/steps/ReviewStep.js +73 -0
  40. package/agent/steps/ReviewStep.js.map +1 -0
  41. package/agent/steps/types.d.ts +35 -0
  42. package/agent/steps/types.d.ts.map +1 -0
  43. package/agent/steps/types.js +16 -0
  44. package/agent/steps/types.js.map +1 -0
  45. package/agent/useCreateAgent.d.ts +45 -0
  46. package/agent/useCreateAgent.d.ts.map +1 -0
  47. package/agent/useCreateAgent.js +50 -0
  48. package/agent/useCreateAgent.js.map +1 -0
  49. package/agent/useUpdateAgent.d.ts +24 -0
  50. package/agent/useUpdateAgent.d.ts.map +1 -0
  51. package/agent/useUpdateAgent.js +35 -0
  52. package/agent/useUpdateAgent.js.map +1 -0
  53. package/composer/ContextChip.d.ts +7 -2
  54. package/composer/ContextChip.d.ts.map +1 -1
  55. package/composer/ContextChip.js +2 -1
  56. package/composer/ContextChip.js.map +1 -1
  57. package/composer/SessionComposer.d.ts +11 -0
  58. package/composer/SessionComposer.d.ts.map +1 -1
  59. package/composer/SessionComposer.js +33 -4
  60. package/composer/SessionComposer.js.map +1 -1
  61. package/dependency-graph/DependencyGraph.d.ts +37 -0
  62. package/dependency-graph/DependencyGraph.d.ts.map +1 -0
  63. package/dependency-graph/DependencyGraph.js +88 -0
  64. package/dependency-graph/DependencyGraph.js.map +1 -0
  65. package/dependency-graph/DependencyTreeNode.d.ts +23 -0
  66. package/dependency-graph/DependencyTreeNode.d.ts.map +1 -0
  67. package/dependency-graph/DependencyTreeNode.js +99 -0
  68. package/dependency-graph/DependencyTreeNode.js.map +1 -0
  69. package/dependency-graph/index.d.ts +4 -0
  70. package/dependency-graph/index.d.ts.map +1 -0
  71. package/dependency-graph/index.js +5 -0
  72. package/dependency-graph/index.js.map +1 -0
  73. package/dependency-graph/types.d.ts +130 -0
  74. package/dependency-graph/types.d.ts.map +1 -0
  75. package/dependency-graph/types.js +2 -0
  76. package/dependency-graph/types.js.map +1 -0
  77. package/dependency-graph/useDependencyGraph.d.ts +27 -0
  78. package/dependency-graph/useDependencyGraph.d.ts.map +1 -0
  79. package/dependency-graph/useDependencyGraph.js +129 -0
  80. package/dependency-graph/useDependencyGraph.js.map +1 -0
  81. package/empty-state/EmptyState.d.ts +29 -0
  82. package/empty-state/EmptyState.d.ts.map +1 -0
  83. package/empty-state/EmptyState.js +45 -0
  84. package/empty-state/EmptyState.js.map +1 -0
  85. package/empty-state/index.d.ts +4 -0
  86. package/empty-state/index.d.ts.map +1 -0
  87. package/empty-state/index.js +3 -0
  88. package/empty-state/index.js.map +1 -0
  89. package/empty-state/types.d.ts +73 -0
  90. package/empty-state/types.d.ts.map +1 -0
  91. package/empty-state/types.js +2 -0
  92. package/empty-state/types.js.map +1 -0
  93. package/empty-state/useEmptyState.d.ts +18 -0
  94. package/empty-state/useEmptyState.d.ts.map +1 -0
  95. package/empty-state/useEmptyState.js +72 -0
  96. package/empty-state/useEmptyState.js.map +1 -0
  97. package/environment/usePersonalEnvironment.d.ts.map +1 -1
  98. package/environment/usePersonalEnvironment.js +1 -0
  99. package/environment/usePersonalEnvironment.js.map +1 -1
  100. package/feedback/StigmerToaster.d.ts +18 -0
  101. package/feedback/StigmerToaster.d.ts.map +1 -0
  102. package/feedback/StigmerToaster.js +31 -0
  103. package/feedback/StigmerToaster.js.map +1 -0
  104. package/feedback/index.d.ts +4 -0
  105. package/feedback/index.d.ts.map +1 -0
  106. package/feedback/index.js +3 -0
  107. package/feedback/index.js.map +1 -0
  108. package/feedback/toast.d.ts +14 -0
  109. package/feedback/toast.d.ts.map +1 -0
  110. package/feedback/toast.js +14 -0
  111. package/feedback/toast.js.map +1 -0
  112. package/feedback/types.d.ts +4 -0
  113. package/feedback/types.d.ts.map +1 -0
  114. package/feedback/types.js +2 -0
  115. package/feedback/types.js.map +1 -0
  116. package/index.d.ts +32 -12
  117. package/index.d.ts.map +1 -1
  118. package/index.js +30 -10
  119. package/index.js.map +1 -1
  120. package/inline-edit/InlineEditImage.d.ts +20 -0
  121. package/inline-edit/InlineEditImage.d.ts.map +1 -0
  122. package/inline-edit/InlineEditImage.js +85 -0
  123. package/inline-edit/InlineEditImage.js.map +1 -0
  124. package/inline-edit/InlineEditKeyValue.d.ts +33 -0
  125. package/inline-edit/InlineEditKeyValue.d.ts.map +1 -0
  126. package/inline-edit/InlineEditKeyValue.js +67 -0
  127. package/inline-edit/InlineEditKeyValue.js.map +1 -0
  128. package/inline-edit/InlineEditResourceList.d.ts +34 -0
  129. package/inline-edit/InlineEditResourceList.d.ts.map +1 -0
  130. package/inline-edit/InlineEditResourceList.js +99 -0
  131. package/inline-edit/InlineEditResourceList.js.map +1 -0
  132. package/inline-edit/InlineEditSelect.d.ts +18 -0
  133. package/inline-edit/InlineEditSelect.d.ts.map +1 -0
  134. package/inline-edit/InlineEditSelect.js +54 -0
  135. package/inline-edit/InlineEditSelect.js.map +1 -0
  136. package/inline-edit/InlineEditText.d.ts +23 -0
  137. package/inline-edit/InlineEditText.d.ts.map +1 -0
  138. package/inline-edit/InlineEditText.js +79 -0
  139. package/inline-edit/InlineEditText.js.map +1 -0
  140. package/inline-edit/InlineEditTextarea.d.ts +22 -0
  141. package/inline-edit/InlineEditTextarea.d.ts.map +1 -0
  142. package/inline-edit/InlineEditTextarea.js +83 -0
  143. package/inline-edit/InlineEditTextarea.js.map +1 -0
  144. package/inline-edit/index.d.ts +16 -0
  145. package/inline-edit/index.d.ts.map +1 -0
  146. package/inline-edit/index.js +8 -0
  147. package/inline-edit/index.js.map +1 -0
  148. package/inline-edit/types.d.ts +42 -0
  149. package/inline-edit/types.d.ts.map +1 -0
  150. package/inline-edit/types.js +2 -0
  151. package/inline-edit/types.js.map +1 -0
  152. package/inline-edit/useInlineFieldSave.d.ts +23 -0
  153. package/inline-edit/useInlineFieldSave.d.ts.map +1 -0
  154. package/inline-edit/useInlineFieldSave.js +44 -0
  155. package/inline-edit/useInlineFieldSave.js.map +1 -0
  156. package/internal/Tabs.d.ts +4 -38
  157. package/internal/Tabs.d.ts.map +1 -1
  158. package/internal/Tabs.js +3 -62
  159. package/internal/Tabs.js.map +1 -1
  160. package/internal/useFetch.js +2 -2
  161. package/internal/useFetch.js.map +1 -1
  162. package/library/ImportResourceDialog.d.ts +43 -0
  163. package/library/ImportResourceDialog.d.ts.map +1 -0
  164. package/library/ImportResourceDialog.js +90 -0
  165. package/library/ImportResourceDialog.js.map +1 -0
  166. package/library/index.d.ts +7 -4
  167. package/library/index.d.ts.map +1 -1
  168. package/library/index.js +4 -2
  169. package/library/index.js.map +1 -1
  170. package/library/serialize-resource-yaml.d.ts +53 -0
  171. package/library/serialize-resource-yaml.d.ts.map +1 -1
  172. package/library/serialize-resource-yaml.js +275 -0
  173. package/library/serialize-resource-yaml.js.map +1 -1
  174. package/library/useExportResource.d.ts +56 -0
  175. package/library/useExportResource.d.ts.map +1 -0
  176. package/library/useExportResource.js +137 -0
  177. package/library/useExportResource.js.map +1 -0
  178. package/library/useImportResource.d.ts +84 -0
  179. package/library/useImportResource.d.ts.map +1 -0
  180. package/library/useImportResource.js +188 -0
  181. package/library/useImportResource.js.map +1 -0
  182. package/mcp-server/McpServerCreationWizard.d.ts +55 -0
  183. package/mcp-server/McpServerCreationWizard.d.ts.map +1 -0
  184. package/mcp-server/McpServerCreationWizard.js +121 -0
  185. package/mcp-server/McpServerCreationWizard.js.map +1 -0
  186. package/mcp-server/McpServerDetailView.d.ts +21 -1
  187. package/mcp-server/McpServerDetailView.d.ts.map +1 -1
  188. package/mcp-server/McpServerDetailView.js +235 -43
  189. package/mcp-server/McpServerDetailView.js.map +1 -1
  190. package/mcp-server/index.d.ts +8 -0
  191. package/mcp-server/index.d.ts.map +1 -1
  192. package/mcp-server/index.js +4 -0
  193. package/mcp-server/index.js.map +1 -1
  194. package/mcp-server/internal/mcpServerToInput.d.ts +12 -0
  195. package/mcp-server/internal/mcpServerToInput.d.ts.map +1 -0
  196. package/mcp-server/internal/mcpServerToInput.js +81 -0
  197. package/mcp-server/internal/mcpServerToInput.js.map +1 -0
  198. package/mcp-server/steps/EnvironmentAuthStep.d.ts +15 -0
  199. package/mcp-server/steps/EnvironmentAuthStep.d.ts.map +1 -0
  200. package/mcp-server/steps/EnvironmentAuthStep.js +55 -0
  201. package/mcp-server/steps/EnvironmentAuthStep.js.map +1 -0
  202. package/mcp-server/steps/IdentityTransportStep.d.ts +19 -0
  203. package/mcp-server/steps/IdentityTransportStep.d.ts.map +1 -0
  204. package/mcp-server/steps/IdentityTransportStep.js +73 -0
  205. package/mcp-server/steps/IdentityTransportStep.js.map +1 -0
  206. package/mcp-server/steps/ReviewStep.d.ts +23 -0
  207. package/mcp-server/steps/ReviewStep.d.ts.map +1 -0
  208. package/mcp-server/steps/ReviewStep.js +137 -0
  209. package/mcp-server/steps/ReviewStep.js.map +1 -0
  210. package/mcp-server/steps/types.d.ts +56 -0
  211. package/mcp-server/steps/types.d.ts.map +1 -0
  212. package/mcp-server/steps/types.js +27 -0
  213. package/mcp-server/steps/types.js.map +1 -0
  214. package/mcp-server/useCreateMcpServer.d.ts +45 -0
  215. package/mcp-server/useCreateMcpServer.d.ts.map +1 -0
  216. package/mcp-server/useCreateMcpServer.js +50 -0
  217. package/mcp-server/useCreateMcpServer.js.map +1 -0
  218. package/mcp-server/useUpdateMcpServer.d.ts +24 -0
  219. package/mcp-server/useUpdateMcpServer.d.ts.map +1 -0
  220. package/mcp-server/useUpdateMcpServer.js +35 -0
  221. package/mcp-server/useUpdateMcpServer.js.map +1 -0
  222. package/models/ModelRegistryContext.d.ts +2 -0
  223. package/models/ModelRegistryContext.d.ts.map +1 -1
  224. package/models/ModelRegistryContext.js +1 -0
  225. package/models/ModelRegistryContext.js.map +1 -1
  226. package/models/ModelSelector.d.ts.map +1 -1
  227. package/models/ModelSelector.js +2 -2
  228. package/models/ModelSelector.js.map +1 -1
  229. package/models/__tests__/useModelRegistry.test.js +4 -3
  230. package/models/__tests__/useModelRegistry.test.js.map +1 -1
  231. package/models/useModelRegistry.d.ts +2 -0
  232. package/models/useModelRegistry.d.ts.map +1 -1
  233. package/models/useModelRegistry.js +3 -2
  234. package/models/useModelRegistry.js.map +1 -1
  235. package/package.json +8 -4
  236. package/provider.d.ts.map +1 -1
  237. package/provider.js +69 -22
  238. package/provider.js.map +1 -1
  239. package/resource-creation/CreationPicker.d.ts +60 -0
  240. package/resource-creation/CreationPicker.d.ts.map +1 -0
  241. package/resource-creation/CreationPicker.js +74 -0
  242. package/resource-creation/CreationPicker.js.map +1 -0
  243. package/resource-creation/StepIndicator.d.ts +28 -0
  244. package/resource-creation/StepIndicator.d.ts.map +1 -0
  245. package/resource-creation/StepIndicator.js +40 -0
  246. package/resource-creation/StepIndicator.js.map +1 -0
  247. package/resource-creation/TemplateCard.d.ts +24 -0
  248. package/resource-creation/TemplateCard.d.ts.map +1 -0
  249. package/resource-creation/TemplateCard.js +68 -0
  250. package/resource-creation/TemplateCard.js.map +1 -0
  251. package/resource-creation/TemplateGallery.d.ts +43 -0
  252. package/resource-creation/TemplateGallery.d.ts.map +1 -0
  253. package/resource-creation/TemplateGallery.js +78 -0
  254. package/resource-creation/TemplateGallery.js.map +1 -0
  255. package/resource-creation/WizardNav.d.ts +31 -0
  256. package/resource-creation/WizardNav.d.ts.map +1 -0
  257. package/resource-creation/WizardNav.js +29 -0
  258. package/resource-creation/WizardNav.js.map +1 -0
  259. package/resource-creation/WizardShell.d.ts +41 -0
  260. package/resource-creation/WizardShell.d.ts.map +1 -0
  261. package/resource-creation/WizardShell.js +55 -0
  262. package/resource-creation/WizardShell.js.map +1 -0
  263. package/resource-creation/index.d.ts +21 -0
  264. package/resource-creation/index.d.ts.map +1 -0
  265. package/resource-creation/index.js +14 -0
  266. package/resource-creation/index.js.map +1 -0
  267. package/resource-creation/templates/agent-templates.d.ts +15 -0
  268. package/resource-creation/templates/agent-templates.d.ts.map +1 -0
  269. package/resource-creation/templates/agent-templates.js +148 -0
  270. package/resource-creation/templates/agent-templates.js.map +1 -0
  271. package/resource-creation/templates/index.d.ts +5 -0
  272. package/resource-creation/templates/index.d.ts.map +1 -0
  273. package/resource-creation/templates/index.js +5 -0
  274. package/resource-creation/templates/index.js.map +1 -0
  275. package/resource-creation/templates/mcp-server-templates.d.ts +15 -0
  276. package/resource-creation/templates/mcp-server-templates.d.ts.map +1 -0
  277. package/resource-creation/templates/mcp-server-templates.js +92 -0
  278. package/resource-creation/templates/mcp-server-templates.js.map +1 -0
  279. package/resource-creation/templates/types.d.ts +48 -0
  280. package/resource-creation/templates/types.d.ts.map +1 -0
  281. package/resource-creation/templates/types.js +16 -0
  282. package/resource-creation/templates/types.js.map +1 -0
  283. package/resource-creation/types.d.ts +88 -0
  284. package/resource-creation/types.d.ts.map +1 -0
  285. package/resource-creation/types.js +2 -0
  286. package/resource-creation/types.js.map +1 -0
  287. package/resource-creation/useTemplateFilter.d.ts +43 -0
  288. package/resource-creation/useTemplateFilter.d.ts.map +1 -0
  289. package/resource-creation/useTemplateFilter.js +73 -0
  290. package/resource-creation/useTemplateFilter.js.map +1 -0
  291. package/resource-creation/useWizardState.d.ts +67 -0
  292. package/resource-creation/useWizardState.d.ts.map +1 -0
  293. package/resource-creation/useWizardState.js +143 -0
  294. package/resource-creation/useWizardState.js.map +1 -0
  295. package/resource-detail/ConfirmDialog.d.ts +44 -0
  296. package/resource-detail/ConfirmDialog.d.ts.map +1 -0
  297. package/resource-detail/ConfirmDialog.js +62 -0
  298. package/resource-detail/ConfirmDialog.js.map +1 -0
  299. package/resource-detail/ResourceActionBar.d.ts +42 -0
  300. package/resource-detail/ResourceActionBar.d.ts.map +1 -0
  301. package/resource-detail/ResourceActionBar.js +64 -0
  302. package/resource-detail/ResourceActionBar.js.map +1 -0
  303. package/resource-detail/ResourceDetailShell.d.ts +36 -0
  304. package/resource-detail/ResourceDetailShell.d.ts.map +1 -0
  305. package/resource-detail/ResourceDetailShell.js +65 -0
  306. package/resource-detail/ResourceDetailShell.js.map +1 -0
  307. package/resource-detail/Section.d.ts +18 -0
  308. package/resource-detail/Section.d.ts.map +1 -0
  309. package/resource-detail/Section.js +18 -0
  310. package/resource-detail/Section.js.map +1 -0
  311. package/resource-detail/index.d.ts +15 -0
  312. package/resource-detail/index.d.ts.map +1 -0
  313. package/resource-detail/index.js +10 -0
  314. package/resource-detail/index.js.map +1 -0
  315. package/resource-detail/types.d.ts +146 -0
  316. package/resource-detail/types.d.ts.map +1 -0
  317. package/resource-detail/types.js +2 -0
  318. package/resource-detail/types.js.map +1 -0
  319. package/resource-detail/useConfirmAction.d.ts +41 -0
  320. package/resource-detail/useConfirmAction.d.ts.map +1 -0
  321. package/resource-detail/useConfirmAction.js +30 -0
  322. package/resource-detail/useConfirmAction.js.map +1 -0
  323. package/resource-detail/useCopyResource.d.ts +28 -0
  324. package/resource-detail/useCopyResource.d.ts.map +1 -0
  325. package/resource-detail/useCopyResource.js +46 -0
  326. package/resource-detail/useCopyResource.js.map +1 -0
  327. package/resource-detail/useDeleteResource.d.ts +40 -0
  328. package/resource-detail/useDeleteResource.d.ts.map +1 -0
  329. package/resource-detail/useDeleteResource.js +83 -0
  330. package/resource-detail/useDeleteResource.js.map +1 -0
  331. package/resource-detail/useDetailTabs.d.ts +46 -0
  332. package/resource-detail/useDetailTabs.d.ts.map +1 -0
  333. package/resource-detail/useDetailTabs.js +47 -0
  334. package/resource-detail/useDetailTabs.js.map +1 -0
  335. package/resource-workbench/components/BulkActionBar.d.ts +36 -0
  336. package/resource-workbench/components/BulkActionBar.d.ts.map +1 -0
  337. package/resource-workbench/components/BulkActionBar.js +35 -0
  338. package/resource-workbench/components/BulkActionBar.js.map +1 -0
  339. package/resource-workbench/components/ColumnHeader.d.ts +23 -0
  340. package/resource-workbench/components/ColumnHeader.d.ts.map +1 -0
  341. package/resource-workbench/components/ColumnHeader.js +25 -0
  342. package/resource-workbench/components/ColumnHeader.js.map +1 -0
  343. package/resource-workbench/components/FilterBar.d.ts +33 -0
  344. package/resource-workbench/components/FilterBar.d.ts.map +1 -0
  345. package/resource-workbench/components/FilterBar.js +72 -0
  346. package/resource-workbench/components/FilterBar.js.map +1 -0
  347. package/resource-workbench/components/ResourceAvatar.d.ts +29 -0
  348. package/resource-workbench/components/ResourceAvatar.d.ts.map +1 -0
  349. package/resource-workbench/components/ResourceAvatar.js +51 -0
  350. package/resource-workbench/components/ResourceAvatar.js.map +1 -0
  351. package/resource-workbench/components/ResourceCards.d.ts +39 -0
  352. package/resource-workbench/components/ResourceCards.d.ts.map +1 -0
  353. package/resource-workbench/components/ResourceCards.js +41 -0
  354. package/resource-workbench/components/ResourceCards.js.map +1 -0
  355. package/resource-workbench/components/ResourceInspector.d.ts +26 -0
  356. package/resource-workbench/components/ResourceInspector.d.ts.map +1 -0
  357. package/resource-workbench/components/ResourceInspector.js +22 -0
  358. package/resource-workbench/components/ResourceInspector.js.map +1 -0
  359. package/resource-workbench/components/ResourceList.d.ts +39 -0
  360. package/resource-workbench/components/ResourceList.d.ts.map +1 -0
  361. package/resource-workbench/components/ResourceList.js +41 -0
  362. package/resource-workbench/components/ResourceList.js.map +1 -0
  363. package/resource-workbench/components/ResourceTable.d.ts +47 -0
  364. package/resource-workbench/components/ResourceTable.d.ts.map +1 -0
  365. package/resource-workbench/components/ResourceTable.js +78 -0
  366. package/resource-workbench/components/ResourceTable.js.map +1 -0
  367. package/resource-workbench/components/ResourceWorkbench.d.ts +131 -0
  368. package/resource-workbench/components/ResourceWorkbench.d.ts.map +1 -0
  369. package/resource-workbench/components/ResourceWorkbench.js +170 -0
  370. package/resource-workbench/components/ResourceWorkbench.js.map +1 -0
  371. package/resource-workbench/components/SelectionCheckbox.d.ts +24 -0
  372. package/resource-workbench/components/SelectionCheckbox.d.ts.map +1 -0
  373. package/resource-workbench/components/SelectionCheckbox.js +16 -0
  374. package/resource-workbench/components/SelectionCheckbox.js.map +1 -0
  375. package/resource-workbench/components/StatusBadge.d.ts +31 -0
  376. package/resource-workbench/components/StatusBadge.d.ts.map +1 -0
  377. package/resource-workbench/components/StatusBadge.js +75 -0
  378. package/resource-workbench/components/StatusBadge.js.map +1 -0
  379. package/resource-workbench/components/ViewSwitcher.d.ts +21 -0
  380. package/resource-workbench/components/ViewSwitcher.d.ts.map +1 -0
  381. package/resource-workbench/components/ViewSwitcher.js +37 -0
  382. package/resource-workbench/components/ViewSwitcher.js.map +1 -0
  383. package/resource-workbench/hooks/useResourceCollection.d.ts +93 -0
  384. package/resource-workbench/hooks/useResourceCollection.d.ts.map +1 -0
  385. package/resource-workbench/hooks/useResourceCollection.js +133 -0
  386. package/resource-workbench/hooks/useResourceCollection.js.map +1 -0
  387. package/resource-workbench/hooks/useResourceFilters.d.ts +73 -0
  388. package/resource-workbench/hooks/useResourceFilters.d.ts.map +1 -0
  389. package/resource-workbench/hooks/useResourceFilters.js +105 -0
  390. package/resource-workbench/hooks/useResourceFilters.js.map +1 -0
  391. package/resource-workbench/hooks/useResourceSelection.d.ts +44 -0
  392. package/resource-workbench/hooks/useResourceSelection.d.ts.map +1 -0
  393. package/resource-workbench/hooks/useResourceSelection.js +123 -0
  394. package/resource-workbench/hooks/useResourceSelection.js.map +1 -0
  395. package/resource-workbench/hooks/useViewPreference.d.ts +32 -0
  396. package/resource-workbench/hooks/useViewPreference.d.ts.map +1 -0
  397. package/resource-workbench/hooks/useViewPreference.js +60 -0
  398. package/resource-workbench/hooks/useViewPreference.js.map +1 -0
  399. package/resource-workbench/index.d.ts +34 -0
  400. package/resource-workbench/index.d.ts.map +1 -0
  401. package/resource-workbench/index.js +19 -0
  402. package/resource-workbench/index.js.map +1 -0
  403. package/resource-workbench/types.d.ts +165 -0
  404. package/resource-workbench/types.d.ts.map +1 -0
  405. package/resource-workbench/types.js +2 -0
  406. package/resource-workbench/types.js.map +1 -0
  407. package/runner/RunnerDetailView.d.ts +44 -0
  408. package/runner/RunnerDetailView.d.ts.map +1 -0
  409. package/runner/RunnerDetailView.js +154 -0
  410. package/runner/RunnerDetailView.js.map +1 -0
  411. package/runner/RunnerListPanel.d.ts +26 -1
  412. package/runner/RunnerListPanel.d.ts.map +1 -1
  413. package/runner/RunnerListPanel.js +68 -46
  414. package/runner/RunnerListPanel.js.map +1 -1
  415. package/runner/index.d.ts +7 -1
  416. package/runner/index.d.ts.map +1 -1
  417. package/runner/index.js +3 -0
  418. package/runner/index.js.map +1 -1
  419. package/runner/shared.d.ts +31 -0
  420. package/runner/shared.d.ts.map +1 -0
  421. package/runner/shared.js +55 -0
  422. package/runner/shared.js.map +1 -0
  423. package/runner/useRunner.d.ts +37 -0
  424. package/runner/useRunner.d.ts.map +1 -0
  425. package/runner/useRunner.js +24 -0
  426. package/runner/useRunner.js.map +1 -0
  427. package/session/__tests__/group-sessions.test.js +3 -3
  428. package/session/__tests__/group-sessions.test.js.map +1 -1
  429. package/session/__tests__/session-spec-converters.test.d.ts +2 -0
  430. package/session/__tests__/session-spec-converters.test.d.ts.map +1 -0
  431. package/session/__tests__/session-spec-converters.test.js +162 -0
  432. package/session/__tests__/session-spec-converters.test.js.map +1 -0
  433. package/session/__tests__/useNewSessionFlow.test.js +2 -2
  434. package/session/__tests__/useNewSessionFlow.test.js.map +1 -1
  435. package/session/__tests__/usePersistedModel.test.js +1 -1
  436. package/session/__tests__/usePersistedModel.test.js.map +1 -1
  437. package/session/group-sessions.d.ts +17 -0
  438. package/session/group-sessions.d.ts.map +1 -1
  439. package/session/group-sessions.js +46 -0
  440. package/session/group-sessions.js.map +1 -1
  441. package/session/index.d.ts +4 -2
  442. package/session/index.d.ts.map +1 -1
  443. package/session/index.js +2 -1
  444. package/session/index.js.map +1 -1
  445. package/session/session-spec-converters.d.ts +24 -0
  446. package/session/session-spec-converters.d.ts.map +1 -0
  447. package/session/session-spec-converters.js +72 -0
  448. package/session/session-spec-converters.js.map +1 -0
  449. package/session/useSessionConversation.d.ts.map +1 -1
  450. package/session/useSessionConversation.js +1 -56
  451. package/session/useSessionConversation.js.map +1 -1
  452. package/session/useSessionPageFlow.d.ts +5 -0
  453. package/session/useSessionPageFlow.d.ts.map +1 -1
  454. package/session/useSessionPageFlow.js +20 -6
  455. package/session/useSessionPageFlow.js.map +1 -1
  456. package/session/useSessionSearch.d.ts +57 -0
  457. package/session/useSessionSearch.d.ts.map +1 -0
  458. package/session/useSessionSearch.js +94 -0
  459. package/session/useSessionSearch.js.map +1 -0
  460. package/skill/SkillDetailView.d.ts +70 -7
  461. package/skill/SkillDetailView.d.ts.map +1 -1
  462. package/skill/SkillDetailView.js +107 -39
  463. package/skill/SkillDetailView.js.map +1 -1
  464. package/skill/SkillDiffDialog.d.ts +42 -0
  465. package/skill/SkillDiffDialog.d.ts.map +1 -0
  466. package/skill/SkillDiffDialog.js +72 -0
  467. package/skill/SkillDiffDialog.js.map +1 -0
  468. package/skill/SkillFileBrowser.d.ts +31 -0
  469. package/skill/SkillFileBrowser.d.ts.map +1 -0
  470. package/skill/SkillFileBrowser.js +105 -0
  471. package/skill/SkillFileBrowser.js.map +1 -0
  472. package/skill/SkillUploader.d.ts +39 -0
  473. package/skill/SkillUploader.d.ts.map +1 -0
  474. package/skill/SkillUploader.js +141 -0
  475. package/skill/SkillUploader.js.map +1 -0
  476. package/skill/index.d.ts +18 -0
  477. package/skill/index.d.ts.map +1 -1
  478. package/skill/index.js +9 -0
  479. package/skill/index.js.map +1 -1
  480. package/skill/internal/computeArtifactHash.d.ts +9 -0
  481. package/skill/internal/computeArtifactHash.d.ts.map +1 -0
  482. package/skill/internal/computeArtifactHash.js +14 -0
  483. package/skill/internal/computeArtifactHash.js.map +1 -0
  484. package/skill/internal/fetchAndUnpackArtifact.d.ts +16 -0
  485. package/skill/internal/fetchAndUnpackArtifact.d.ts.map +1 -0
  486. package/skill/internal/fetchAndUnpackArtifact.js +34 -0
  487. package/skill/internal/fetchAndUnpackArtifact.js.map +1 -0
  488. package/skill/usePushSkill.d.ts +53 -0
  489. package/skill/usePushSkill.d.ts.map +1 -0
  490. package/skill/usePushSkill.js +57 -0
  491. package/skill/usePushSkill.js.map +1 -0
  492. package/skill/useSkillArtifact.d.ts +37 -0
  493. package/skill/useSkillArtifact.d.ts.map +1 -0
  494. package/skill/useSkillArtifact.js +76 -0
  495. package/skill/useSkillArtifact.js.map +1 -0
  496. package/skill/useSkillDiff.d.ts +31 -0
  497. package/skill/useSkillDiff.d.ts.map +1 -0
  498. package/skill/useSkillDiff.js +97 -0
  499. package/skill/useSkillDiff.js.map +1 -0
  500. package/skill/useSkillDuplicateCheck.d.ts +34 -0
  501. package/skill/useSkillDuplicateCheck.d.ts.map +1 -0
  502. package/skill/useSkillDuplicateCheck.js +58 -0
  503. package/skill/useSkillDuplicateCheck.js.map +1 -0
  504. package/skill/useSkillUpload.d.ts +69 -0
  505. package/skill/useSkillUpload.d.ts.map +1 -0
  506. package/skill/useSkillUpload.js +157 -0
  507. package/skill/useSkillUpload.js.map +1 -0
  508. package/skill/useSkillVersions.d.ts +46 -0
  509. package/skill/useSkillVersions.d.ts.map +1 -0
  510. package/skill/useSkillVersions.js +104 -0
  511. package/skill/useSkillVersions.js.map +1 -0
  512. package/src/action-menu/ActionMenu.tsx +151 -0
  513. package/src/action-menu/index.ts +9 -0
  514. package/src/action-menu/types.ts +70 -0
  515. package/src/agent/AgentCreationWizard.tsx +201 -0
  516. package/src/agent/AgentDetailView.tsx +817 -321
  517. package/src/agent/index.ts +16 -0
  518. package/src/agent/internal/agentToInput.ts +95 -0
  519. package/src/agent/steps/CapabilitiesStep.tsx +363 -0
  520. package/src/agent/steps/IdentityStep.tsx +259 -0
  521. package/src/agent/steps/ReviewStep.tsx +211 -0
  522. package/src/agent/steps/types.ts +53 -0
  523. package/src/agent/useCreateAgent.ts +76 -0
  524. package/src/agent/useUpdateAgent.ts +55 -0
  525. package/src/composer/ContextChip.tsx +20 -11
  526. package/src/composer/SessionComposer.tsx +52 -3
  527. package/src/dependency-graph/DependencyGraph.tsx +153 -0
  528. package/src/dependency-graph/DependencyTreeNode.tsx +282 -0
  529. package/src/dependency-graph/index.ts +15 -0
  530. package/src/dependency-graph/types.ts +131 -0
  531. package/src/dependency-graph/useDependencyGraph.ts +158 -0
  532. package/src/empty-state/EmptyState.tsx +90 -0
  533. package/src/empty-state/index.ts +9 -0
  534. package/src/empty-state/types.ts +81 -0
  535. package/src/empty-state/useEmptyState.ts +85 -0
  536. package/src/environment/usePersonalEnvironment.ts +1 -0
  537. package/src/feedback/StigmerToaster.tsx +45 -0
  538. package/src/feedback/index.ts +3 -0
  539. package/src/feedback/toast.ts +13 -0
  540. package/src/feedback/types.ts +7 -0
  541. package/src/index.ts +275 -8
  542. package/src/inline-edit/InlineEditImage.tsx +208 -0
  543. package/src/inline-edit/InlineEditKeyValue.tsx +301 -0
  544. package/src/inline-edit/InlineEditResourceList.tsx +325 -0
  545. package/src/inline-edit/InlineEditSelect.tsx +150 -0
  546. package/src/inline-edit/InlineEditText.tsx +211 -0
  547. package/src/inline-edit/InlineEditTextarea.tsx +209 -0
  548. package/src/inline-edit/index.ts +28 -0
  549. package/src/inline-edit/types.ts +47 -0
  550. package/src/inline-edit/useInlineFieldSave.ts +62 -0
  551. package/src/internal/Tabs.tsx +4 -164
  552. package/src/internal/useFetch.ts +2 -2
  553. package/src/library/ImportResourceDialog.tsx +227 -0
  554. package/src/library/index.ts +18 -8
  555. package/src/library/serialize-resource-yaml.ts +356 -0
  556. package/src/library/useExportResource.ts +183 -0
  557. package/src/library/useImportResource.ts +253 -0
  558. package/src/mcp-server/McpServerCreationWizard.tsx +206 -0
  559. package/src/mcp-server/McpServerDetailView.tsx +816 -155
  560. package/src/mcp-server/index.ts +16 -0
  561. package/src/mcp-server/internal/mcpServerToInput.ts +95 -0
  562. package/src/mcp-server/steps/EnvironmentAuthStep.tsx +462 -0
  563. package/src/mcp-server/steps/IdentityTransportStep.tsx +531 -0
  564. package/src/mcp-server/steps/ReviewStep.tsx +297 -0
  565. package/src/mcp-server/steps/types.ts +85 -0
  566. package/src/mcp-server/useCreateMcpServer.ts +76 -0
  567. package/src/mcp-server/useUpdateMcpServer.ts +55 -0
  568. package/src/models/ModelRegistryContext.ts +3 -0
  569. package/src/models/ModelSelector.tsx +25 -2
  570. package/src/models/__tests__/useModelRegistry.test.tsx +5 -3
  571. package/src/models/useModelRegistry.ts +5 -2
  572. package/src/provider.tsx +69 -18
  573. package/src/resource-creation/CreationPicker.tsx +292 -0
  574. package/src/resource-creation/StepIndicator.tsx +156 -0
  575. package/src/resource-creation/TemplateCard.tsx +143 -0
  576. package/src/resource-creation/TemplateGallery.tsx +222 -0
  577. package/src/resource-creation/WizardNav.tsx +163 -0
  578. package/src/resource-creation/WizardShell.tsx +124 -0
  579. package/src/resource-creation/index.ts +45 -0
  580. package/src/resource-creation/templates/agent-templates.ts +160 -0
  581. package/src/resource-creation/templates/index.ts +7 -0
  582. package/src/resource-creation/templates/mcp-server-templates.ts +106 -0
  583. package/src/resource-creation/templates/types.ts +64 -0
  584. package/src/resource-creation/types.ts +105 -0
  585. package/src/resource-creation/useTemplateFilter.ts +117 -0
  586. package/src/resource-creation/useWizardState.ts +223 -0
  587. package/src/resource-detail/ConfirmDialog.tsx +127 -0
  588. package/src/resource-detail/ResourceActionBar.tsx +157 -0
  589. package/src/resource-detail/ResourceDetailShell.tsx +184 -0
  590. package/src/resource-detail/Section.tsx +78 -0
  591. package/src/resource-detail/index.ts +34 -0
  592. package/src/resource-detail/types.ts +177 -0
  593. package/src/resource-detail/useConfirmAction.ts +70 -0
  594. package/src/resource-detail/useCopyResource.ts +74 -0
  595. package/src/resource-detail/useDeleteResource.ts +110 -0
  596. package/src/resource-detail/useDetailTabs.ts +93 -0
  597. package/src/resource-workbench/components/BulkActionBar.tsx +122 -0
  598. package/src/resource-workbench/components/ColumnHeader.tsx +105 -0
  599. package/src/resource-workbench/components/FilterBar.tsx +173 -0
  600. package/src/resource-workbench/components/ResourceAvatar.tsx +109 -0
  601. package/src/resource-workbench/components/ResourceCards.tsx +126 -0
  602. package/src/resource-workbench/components/ResourceInspector.tsx +88 -0
  603. package/src/resource-workbench/components/ResourceList.tsx +121 -0
  604. package/src/resource-workbench/components/ResourceTable.tsx +222 -0
  605. package/src/resource-workbench/components/ResourceWorkbench.tsx +695 -0
  606. package/src/resource-workbench/components/SelectionCheckbox.tsx +52 -0
  607. package/src/resource-workbench/components/StatusBadge.tsx +119 -0
  608. package/src/resource-workbench/components/ViewSwitcher.tsx +135 -0
  609. package/src/resource-workbench/hooks/useResourceCollection.ts +261 -0
  610. package/src/resource-workbench/hooks/useResourceFilters.ts +216 -0
  611. package/src/resource-workbench/hooks/useResourceSelection.ts +178 -0
  612. package/src/resource-workbench/hooks/useViewPreference.ts +75 -0
  613. package/src/resource-workbench/index.ts +73 -0
  614. package/src/resource-workbench/types.ts +220 -0
  615. package/src/runner/RunnerDetailView.tsx +410 -0
  616. package/src/runner/RunnerListPanel.tsx +126 -111
  617. package/src/runner/index.ts +13 -1
  618. package/src/runner/shared.tsx +124 -0
  619. package/src/runner/useRunner.ts +59 -0
  620. package/src/session/__tests__/group-sessions.test.ts +5 -3
  621. package/src/session/__tests__/session-spec-converters.test.ts +185 -0
  622. package/src/session/__tests__/useNewSessionFlow.test.tsx +2 -2
  623. package/src/session/__tests__/usePersistedModel.test.tsx +1 -1
  624. package/src/session/group-sessions.ts +65 -0
  625. package/src/session/index.ts +8 -2
  626. package/src/session/session-spec-converters.ts +86 -0
  627. package/src/session/useSessionConversation.ts +5 -64
  628. package/src/session/useSessionPageFlow.ts +28 -7
  629. package/src/session/useSessionSearch.ts +149 -0
  630. package/src/skill/SkillDetailView.tsx +371 -165
  631. package/src/skill/SkillDiffDialog.tsx +213 -0
  632. package/src/skill/SkillFileBrowser.tsx +289 -0
  633. package/src/skill/SkillUploader.tsx +481 -0
  634. package/src/skill/index.ts +34 -0
  635. package/src/skill/internal/computeArtifactHash.ts +13 -0
  636. package/src/skill/internal/fetchAndUnpackArtifact.ts +48 -0
  637. package/src/skill/usePushSkill.ts +101 -0
  638. package/src/skill/useSkillArtifact.ts +107 -0
  639. package/src/skill/useSkillDiff.ts +128 -0
  640. package/src/skill/useSkillDuplicateCheck.ts +92 -0
  641. package/src/skill/useSkillUpload.ts +231 -0
  642. package/src/skill/useSkillVersions.ts +165 -0
  643. package/src/styles.css +28 -0
  644. package/src/tabs/Tabs.tsx +184 -0
  645. package/src/tabs/index.ts +2 -0
  646. package/src/version-history/DiffFileList.tsx +111 -0
  647. package/src/version-history/DiffSummary.tsx +61 -0
  648. package/src/version-history/DiffViewer.tsx +163 -0
  649. package/src/version-history/MultiFileDiffView.tsx +114 -0
  650. package/src/version-history/VersionTimeline.tsx +232 -0
  651. package/src/version-history/VersionTimelineEntry.tsx +254 -0
  652. package/src/version-history/computeDiff.ts +61 -0
  653. package/src/version-history/computeMultiFileDiff.ts +97 -0
  654. package/src/version-history/index.ts +22 -0
  655. package/src/version-history/types.ts +129 -0
  656. package/styles.css +1 -1
  657. package/tabs/Tabs.d.ts +58 -0
  658. package/tabs/Tabs.d.ts.map +1 -0
  659. package/tabs/Tabs.js +80 -0
  660. package/tabs/Tabs.js.map +1 -0
  661. package/tabs/index.d.ts +3 -0
  662. package/tabs/index.d.ts.map +1 -0
  663. package/tabs/index.js +2 -0
  664. package/tabs/index.js.map +1 -0
  665. package/version-history/DiffFileList.d.ts +22 -0
  666. package/version-history/DiffFileList.d.ts.map +1 -0
  667. package/version-history/DiffFileList.js +37 -0
  668. package/version-history/DiffFileList.js.map +1 -0
  669. package/version-history/DiffSummary.d.ts +21 -0
  670. package/version-history/DiffSummary.d.ts.map +1 -0
  671. package/version-history/DiffSummary.js +16 -0
  672. package/version-history/DiffSummary.js.map +1 -0
  673. package/version-history/DiffViewer.d.ts +31 -0
  674. package/version-history/DiffViewer.d.ts.map +1 -0
  675. package/version-history/DiffViewer.js +60 -0
  676. package/version-history/DiffViewer.js.map +1 -0
  677. package/version-history/MultiFileDiffView.d.ts +30 -0
  678. package/version-history/MultiFileDiffView.d.ts.map +1 -0
  679. package/version-history/MultiFileDiffView.js +40 -0
  680. package/version-history/MultiFileDiffView.js.map +1 -0
  681. package/version-history/VersionTimeline.d.ts +29 -0
  682. package/version-history/VersionTimeline.d.ts.map +1 -0
  683. package/version-history/VersionTimeline.js +87 -0
  684. package/version-history/VersionTimeline.js.map +1 -0
  685. package/version-history/VersionTimelineEntry.d.ts +22 -0
  686. package/version-history/VersionTimelineEntry.d.ts.map +1 -0
  687. package/version-history/VersionTimelineEntry.js +98 -0
  688. package/version-history/VersionTimelineEntry.js.map +1 -0
  689. package/version-history/computeDiff.d.ts +16 -0
  690. package/version-history/computeDiff.d.ts.map +1 -0
  691. package/version-history/computeDiff.js +54 -0
  692. package/version-history/computeDiff.js.map +1 -0
  693. package/version-history/computeMultiFileDiff.d.ts +15 -0
  694. package/version-history/computeMultiFileDiff.d.ts.map +1 -0
  695. package/version-history/computeMultiFileDiff.js +83 -0
  696. package/version-history/computeMultiFileDiff.js.map +1 -0
  697. package/version-history/index.d.ts +14 -0
  698. package/version-history/index.d.ts.map +1 -0
  699. package/version-history/index.js +9 -0
  700. package/version-history/index.js.map +1 -0
  701. package/version-history/types.d.ts +106 -0
  702. package/version-history/types.d.ts.map +1 -0
  703. package/version-history/types.js +2 -0
  704. package/version-history/types.js.map +1 -0
  705. package/library/ResourceListView.d.ts +0 -174
  706. package/library/ResourceListView.d.ts.map +0 -1
  707. package/library/ResourceListView.js +0 -318
  708. package/library/ResourceListView.js.map +0 -1
  709. package/src/library/ResourceListView.tsx +0 -956
@@ -0,0 +1,64 @@
1
+ import type { ActionMenuProps, ActionMenuTriggerProps, ActionMenuContentProps, ActionMenuItemProps, ActionMenuSeparatorProps, ActionMenuGroupProps } from "./types";
2
+ /**
3
+ * Compound menu component for resource item actions.
4
+ *
5
+ * Built on top of the SDK's internal Base UI menu primitives with
6
+ * opinionated conventions for resource management UX:
7
+ * - Icon + label + optional shortcut hint layout
8
+ * - Destructive variant for dangerous actions
9
+ * - Grouped sections with labels
10
+ * - Keyboard navigation (arrows, Enter, Esc) via Base UI
11
+ * - Portal rendering with theme inheritance
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * <ActionMenu>
16
+ * <ActionMenu.Trigger>
17
+ * <button aria-label="Agent actions">
18
+ * <MoreHorizontal className="h-4 w-4" />
19
+ * </button>
20
+ * </ActionMenu.Trigger>
21
+ * <ActionMenu.Content>
22
+ * <ActionMenu.Item icon={<Edit />} onSelect={handleEdit}>
23
+ * Edit
24
+ * </ActionMenu.Item>
25
+ * <ActionMenu.Item icon={<Copy />} onSelect={handleDuplicate}>
26
+ * Duplicate
27
+ * </ActionMenu.Item>
28
+ * <ActionMenu.Separator />
29
+ * <ActionMenu.Item
30
+ * icon={<Trash2 />}
31
+ * variant="destructive"
32
+ * onSelect={handleDelete}
33
+ * >
34
+ * Delete
35
+ * </ActionMenu.Item>
36
+ * </ActionMenu.Content>
37
+ * </ActionMenu>
38
+ * ```
39
+ */
40
+ declare function ActionMenuRoot({ children }: ActionMenuProps): import("react/jsx-runtime").JSX.Element;
41
+ declare function Trigger({ children, className, "aria-label": ariaLabel, }: ActionMenuTriggerProps): import("react/jsx-runtime").JSX.Element;
42
+ declare function Content({ children, align, className }: ActionMenuContentProps): import("react/jsx-runtime").JSX.Element;
43
+ declare function Item({ children, onSelect, icon, shortcut, variant, disabled, className, }: ActionMenuItemProps): import("react/jsx-runtime").JSX.Element;
44
+ declare function Separator({ className }: ActionMenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
45
+ declare function Group({ children, label, className }: ActionMenuGroupProps): import("react/jsx-runtime").JSX.Element;
46
+ /**
47
+ * Public compound component for resource item action menus.
48
+ *
49
+ * Subcomponents:
50
+ * - `ActionMenu.Trigger` — the element that opens the menu
51
+ * - `ActionMenu.Content` — the menu panel container
52
+ * - `ActionMenu.Item` — a single action (with icon, shortcut, destructive variant)
53
+ * - `ActionMenu.Separator` — a visual divider between items/groups
54
+ * - `ActionMenu.Group` — a labeled section of items
55
+ */
56
+ export declare const ActionMenu: typeof ActionMenuRoot & {
57
+ Trigger: typeof Trigger;
58
+ Content: typeof Content;
59
+ Item: typeof Item;
60
+ Separator: typeof Separator;
61
+ Group: typeof Group;
62
+ };
63
+ export {};
64
+ //# sourceMappingURL=ActionMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/action-menu/ActionMenu.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,iBAAS,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,eAAe,2CAEpD;AAED,iBAAS,OAAO,CAAC,EACf,QAAQ,EACR,SAAS,EACT,YAAY,EAAE,SAAqB,GACpC,EAAE,sBAAsB,2CAexB;AAED,iBAAS,OAAO,CAAC,EAAE,QAAQ,EAAE,KAAa,EAAE,SAAS,EAAE,EAAE,sBAAsB,2CAM9E;AAED,iBAAS,IAAI,CAAC,EACZ,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,OAAmB,EACnB,QAAQ,EACR,SAAS,GACV,EAAE,mBAAmB,2CAmBrB;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,wBAAwB,2CAEzD;AAED,iBAAS,KAAK,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,oBAAoB,2CAOlE;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU;;;;;;CAMrB,CAAC"}
@@ -0,0 +1,78 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { cn } from "@stigmer/theme";
4
+ import { Menu, MenuTrigger, MenuContent as InternalMenuContent, MenuItem as InternalMenuItem, MenuSeparator as InternalMenuSeparator, MenuGroup as InternalMenuGroup, MenuLabel, } from "../internal/menu";
5
+ /**
6
+ * Compound menu component for resource item actions.
7
+ *
8
+ * Built on top of the SDK's internal Base UI menu primitives with
9
+ * opinionated conventions for resource management UX:
10
+ * - Icon + label + optional shortcut hint layout
11
+ * - Destructive variant for dangerous actions
12
+ * - Grouped sections with labels
13
+ * - Keyboard navigation (arrows, Enter, Esc) via Base UI
14
+ * - Portal rendering with theme inheritance
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * <ActionMenu>
19
+ * <ActionMenu.Trigger>
20
+ * <button aria-label="Agent actions">
21
+ * <MoreHorizontal className="h-4 w-4" />
22
+ * </button>
23
+ * </ActionMenu.Trigger>
24
+ * <ActionMenu.Content>
25
+ * <ActionMenu.Item icon={<Edit />} onSelect={handleEdit}>
26
+ * Edit
27
+ * </ActionMenu.Item>
28
+ * <ActionMenu.Item icon={<Copy />} onSelect={handleDuplicate}>
29
+ * Duplicate
30
+ * </ActionMenu.Item>
31
+ * <ActionMenu.Separator />
32
+ * <ActionMenu.Item
33
+ * icon={<Trash2 />}
34
+ * variant="destructive"
35
+ * onSelect={handleDelete}
36
+ * >
37
+ * Delete
38
+ * </ActionMenu.Item>
39
+ * </ActionMenu.Content>
40
+ * </ActionMenu>
41
+ * ```
42
+ */
43
+ function ActionMenuRoot({ children }) {
44
+ return _jsx(Menu, { children: children });
45
+ }
46
+ function Trigger({ children, className, "aria-label": ariaLabel = "Actions", }) {
47
+ return (_jsx(MenuTrigger, { className: cn("inline-flex items-center justify-center rounded-md p-1", "text-muted-foreground hover:text-foreground hover:bg-accent", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", "data-popup-open:bg-accent data-popup-open:text-foreground", className), "aria-label": ariaLabel, children: children }));
48
+ }
49
+ function Content({ children, align = "end", className }) {
50
+ return (_jsx(InternalMenuContent, { align: align, className: cn("min-w-44", className), children: children }));
51
+ }
52
+ function Item({ children, onSelect, icon, shortcut, variant = "default", disabled, className, }) {
53
+ return (_jsxs(InternalMenuItem, { variant: variant, disabled: disabled, onClick: onSelect, className: cn("justify-between", className), children: [_jsxs("span", { className: "flex items-center gap-2", children: [icon, _jsx("span", { children: children })] }), shortcut && (_jsx("kbd", { className: "ml-auto text-[11px] tracking-widest text-muted-foreground-subtle", children: shortcut }))] }));
54
+ }
55
+ function Separator({ className }) {
56
+ return _jsx(InternalMenuSeparator, { className: className });
57
+ }
58
+ function Group({ children, label, className }) {
59
+ return (_jsxs(InternalMenuGroup, { className: className, children: [label && _jsx(MenuLabel, { children: label }), children] }));
60
+ }
61
+ /**
62
+ * Public compound component for resource item action menus.
63
+ *
64
+ * Subcomponents:
65
+ * - `ActionMenu.Trigger` — the element that opens the menu
66
+ * - `ActionMenu.Content` — the menu panel container
67
+ * - `ActionMenu.Item` — a single action (with icon, shortcut, destructive variant)
68
+ * - `ActionMenu.Separator` — a visual divider between items/groups
69
+ * - `ActionMenu.Group` — a labeled section of items
70
+ */
71
+ export const ActionMenu = Object.assign(ActionMenuRoot, {
72
+ Trigger,
73
+ Content,
74
+ Item,
75
+ Separator,
76
+ Group,
77
+ });
78
+ //# sourceMappingURL=ActionMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionMenu.js","sourceRoot":"","sources":["../../src/action-menu/ActionMenu.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EACL,IAAI,EACJ,WAAW,EACX,WAAW,IAAI,mBAAmB,EAClC,QAAQ,IAAI,gBAAgB,EAC5B,aAAa,IAAI,qBAAqB,EACtC,SAAS,IAAI,iBAAiB,EAC9B,SAAS,GACV,MAAM,kBAAkB,CAAC;AAU1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,SAAS,cAAc,CAAC,EAAE,QAAQ,EAAmB;IACnD,OAAO,KAAC,IAAI,cAAE,QAAQ,GAAQ,CAAC;AACjC,CAAC;AAED,SAAS,OAAO,CAAC,EACf,QAAQ,EACR,SAAS,EACT,YAAY,EAAE,SAAS,GAAG,SAAS,GACZ;IACvB,OAAO,CACL,KAAC,WAAW,IACV,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,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE;IACtD,OAAO;IACP,OAAO;IACP,IAAI;IACJ,SAAS;IACT,KAAK;CACN,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ActionMenu } from "./ActionMenu";
2
+ export type { ActionMenuProps, ActionMenuTriggerProps, ActionMenuContentProps, ActionMenuItemProps, ActionMenuSeparatorProps, ActionMenuGroupProps, } from "./types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/action-menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { ActionMenu } from "./ActionMenu";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/action-menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,65 @@
1
+ import type { ReactNode } from "react";
2
+ /** Props for the {@link ActionMenu} root. */
3
+ export interface ActionMenuProps {
4
+ /** Menu content (Trigger + Content). */
5
+ readonly children: ReactNode;
6
+ }
7
+ /** Props for the `ActionMenu.Trigger` element. */
8
+ export interface ActionMenuTriggerProps {
9
+ /** The trigger element (typically an icon button). */
10
+ readonly children: ReactNode;
11
+ /** Additional CSS classes for the trigger wrapper. */
12
+ readonly className?: string;
13
+ /** Accessible label for the trigger. @default "Actions" */
14
+ readonly "aria-label"?: string;
15
+ }
16
+ /** Props for the `ActionMenu.Content` panel. */
17
+ export interface ActionMenuContentProps {
18
+ /** Menu items, groups, and separators. */
19
+ readonly children: ReactNode;
20
+ /**
21
+ * Horizontal alignment relative to the trigger.
22
+ * @default "end"
23
+ */
24
+ readonly align?: "start" | "center" | "end";
25
+ /** Additional CSS classes for the menu popup. */
26
+ readonly className?: string;
27
+ }
28
+ /** Props for the `ActionMenu.Item`. */
29
+ export interface ActionMenuItemProps {
30
+ /** Item label text. */
31
+ readonly children: ReactNode;
32
+ /** Click handler. */
33
+ readonly onSelect?: () => void;
34
+ /** Optional icon rendered before the label. */
35
+ readonly icon?: ReactNode;
36
+ /** Optional keyboard shortcut hint rendered after the label. */
37
+ readonly shortcut?: string;
38
+ /**
39
+ * Visual variant.
40
+ * - `"default"` — standard item styling
41
+ * - `"destructive"` — red/danger styling for delete, remove, revoke actions
42
+ *
43
+ * @default "default"
44
+ */
45
+ readonly variant?: "default" | "destructive";
46
+ /** Whether the item is disabled. */
47
+ readonly disabled?: boolean;
48
+ /** Additional CSS classes. */
49
+ readonly className?: string;
50
+ }
51
+ /** Props for the `ActionMenu.Separator`. */
52
+ export interface ActionMenuSeparatorProps {
53
+ /** Additional CSS classes. */
54
+ readonly className?: string;
55
+ }
56
+ /** Props for the `ActionMenu.Group`. */
57
+ export interface ActionMenuGroupProps {
58
+ /** Group items. */
59
+ readonly children: ReactNode;
60
+ /** Optional label shown above the group. */
61
+ readonly label?: string;
62
+ /** Additional CSS classes. */
63
+ readonly className?: string;
64
+ }
65
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/action-menu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,6CAA6C;AAC7C,MAAM,WAAW,eAAe;IAC9B,wCAAwC;IACxC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAC9B;AAED,kDAAkD;AAClD,MAAM,WAAW,sBAAsB;IACrC,sDAAsD;IACtD,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,sDAAsD;IACtD,QAAQ,CAA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AC7B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/action-menu/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,55 @@
1
+ import type { AgentWizardData } from "./steps/types";
2
+ /** Result passed to `onComplete` after successful agent creation. */
3
+ export interface AgentCreationResult {
4
+ /** Organization slug of the created agent. */
5
+ readonly org: string;
6
+ /** Agent slug (for URL construction). */
7
+ readonly slug: string;
8
+ /** Agent display name. */
9
+ readonly name: string;
10
+ }
11
+ /** Props for {@link AgentCreationWizard}. */
12
+ export interface AgentCreationWizardProps {
13
+ /** Organization to create the agent in. */
14
+ readonly org: string;
15
+ /**
16
+ * Optional partial data to pre-fill the wizard with.
17
+ *
18
+ * Merged with defaults via `{ ...createInitialWizardData(), ...initialData }`.
19
+ * Use this for template-based creation, resource duplication, or any
20
+ * flow that starts the wizard with pre-populated fields.
21
+ */
22
+ readonly initialData?: Partial<AgentWizardData>;
23
+ /** Called after the agent is successfully created. */
24
+ readonly onComplete: (result: AgentCreationResult) => void;
25
+ /** Called when the user cancels the wizard. */
26
+ readonly onCancel?: () => void;
27
+ /** Additional CSS classes for the root container. */
28
+ readonly className?: string;
29
+ }
30
+ /**
31
+ * Multi-step wizard for creating a new agent blueprint.
32
+ *
33
+ * Three condensed steps:
34
+ * 1. **Identity & Instructions** — name, slug, description, visibility, system prompt
35
+ * 2. **Capabilities** — MCP servers + tools, skills, env var declarations (all optional)
36
+ * 3. **Review & Create** — YAML preview + submission
37
+ *
38
+ * Uses the shared `WizardShell` layout and `useWizardState` hook for
39
+ * navigation. Form data accumulates in the wizard state; on the final
40
+ * step the user reviews and confirms creation.
41
+ *
42
+ * This component is an SDK-first, embeddable wizard with zero Console
43
+ * dependencies. Platform builders can mount it anywhere.
44
+ *
45
+ * @example
46
+ * ```tsx
47
+ * <AgentCreationWizard
48
+ * org="acme"
49
+ * onComplete={({ org, slug }) => navigate(`/agents/${org}/${slug}`)}
50
+ * onCancel={() => navigate("/agents")}
51
+ * />
52
+ * ```
53
+ */
54
+ export declare function AgentCreationWizard({ org, initialData, onComplete, onCancel, className, }: AgentCreationWizardProps): import("react/jsx-runtime").JSX.Element;
55
+ //# sourceMappingURL=AgentCreationWizard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentCreationWizard.d.ts","sourceRoot":"","sources":["../../src/agent/AgentCreationWizard.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAMrD,qEAAqE;AACrE,MAAM,WAAW,mBAAmB;IAClC,8CAA8C;IAC9C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0BAA0B;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,6CAA6C;AAC7C,MAAM,WAAW,wBAAwB;IACvC,2CAA2C;IAC3C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAChD,sDAAsD;IACtD,QAAQ,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC3D,+CAA+C;IAC/C,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,qDAAqD;IACrD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AA6BD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,GAAG,EACH,WAAW,EACX,UAAU,EACV,QAAQ,EACR,SAAS,GACV,EAAE,wBAAwB,2CAgG1B"}
@@ -0,0 +1,115 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { useCallback, useMemo } from "react";
4
+ import { useWizardState } from "../resource-creation/useWizardState";
5
+ import { WizardShell } from "../resource-creation/WizardShell";
6
+ import { useCreateAgent } from "./useCreateAgent";
7
+ import { IdentityStep } from "./steps/IdentityStep";
8
+ import { CapabilitiesStep } from "./steps/CapabilitiesStep";
9
+ import { ReviewStep, buildAgentInput } from "./steps/ReviewStep";
10
+ import { createInitialWizardData } from "./steps/types";
11
+ // ---------------------------------------------------------------------------
12
+ // Step definitions
13
+ // ---------------------------------------------------------------------------
14
+ const STEPS = [
15
+ {
16
+ id: "identity",
17
+ label: "Identity & Instructions",
18
+ validate: (data) => {
19
+ if (!data.name.trim())
20
+ return "Name is required";
21
+ return null;
22
+ },
23
+ },
24
+ {
25
+ id: "capabilities",
26
+ label: "Capabilities",
27
+ },
28
+ {
29
+ id: "review",
30
+ label: "Review & Create",
31
+ },
32
+ ];
33
+ // ---------------------------------------------------------------------------
34
+ // Component
35
+ // ---------------------------------------------------------------------------
36
+ /**
37
+ * Multi-step wizard for creating a new agent blueprint.
38
+ *
39
+ * Three condensed steps:
40
+ * 1. **Identity & Instructions** — name, slug, description, visibility, system prompt
41
+ * 2. **Capabilities** — MCP servers + tools, skills, env var declarations (all optional)
42
+ * 3. **Review & Create** — YAML preview + submission
43
+ *
44
+ * Uses the shared `WizardShell` layout and `useWizardState` hook for
45
+ * navigation. Form data accumulates in the wizard state; on the final
46
+ * step the user reviews and confirms creation.
47
+ *
48
+ * This component is an SDK-first, embeddable wizard with zero Console
49
+ * dependencies. Platform builders can mount it anywhere.
50
+ *
51
+ * @example
52
+ * ```tsx
53
+ * <AgentCreationWizard
54
+ * org="acme"
55
+ * onComplete={({ org, slug }) => navigate(`/agents/${org}/${slug}`)}
56
+ * onCancel={() => navigate("/agents")}
57
+ * />
58
+ * ```
59
+ */
60
+ export function AgentCreationWizard({ org, initialData, onComplete, onCancel, className, }) {
61
+ const mergedInitialData = useMemo(() => ({ ...createInitialWizardData(), ...initialData }),
62
+ // initialData is consumed once at mount — not reactive by design
63
+ [initialData]);
64
+ const wizard = useWizardState({
65
+ steps: STEPS,
66
+ initialData: mergedInitialData,
67
+ });
68
+ const { create, isCreating, error, clearError } = useCreateAgent();
69
+ const handleNext = useCallback(() => {
70
+ if (wizard.isLastStep) {
71
+ handleSubmit();
72
+ }
73
+ else {
74
+ clearError();
75
+ wizard.goNext();
76
+ }
77
+ }, [wizard.isLastStep, wizard.goNext, clearError]);
78
+ const handleSubmit = useCallback(async () => {
79
+ clearError();
80
+ const input = buildAgentInput(org, wizard.data);
81
+ try {
82
+ const agent = await create(input);
83
+ onComplete({
84
+ org: agent.metadata?.org ?? org,
85
+ slug: agent.metadata?.slug ?? input.slug ?? input.name,
86
+ name: agent.metadata?.name ?? input.name,
87
+ });
88
+ }
89
+ catch {
90
+ // Error is captured by useCreateAgent and displayed in ReviewStep
91
+ }
92
+ }, [org, wizard.data, create, clearError, onComplete]);
93
+ const currentStepContent = useMemo(() => {
94
+ switch (wizard.currentStep.id) {
95
+ case "identity":
96
+ return (_jsx(IdentityStep, { data: wizard.data, updateData: wizard.updateData, validationError: wizard.validationError }));
97
+ case "capabilities":
98
+ return (_jsx(CapabilitiesStep, { org: org, data: wizard.data, updateData: wizard.updateData }));
99
+ case "review":
100
+ return (_jsx(ReviewStep, { org: org, data: wizard.data, isCreating: isCreating, error: error }));
101
+ default:
102
+ return null;
103
+ }
104
+ }, [
105
+ wizard.currentStep.id,
106
+ wizard.data,
107
+ wizard.updateData,
108
+ wizard.validationError,
109
+ org,
110
+ isCreating,
111
+ error,
112
+ ]);
113
+ return (_jsx(WizardShell, { steps: STEPS, currentStepIndex: wizard.currentStepIndex, submitLabel: "Create agent", isSubmitting: isCreating, canGoNext: wizard.canGoNext, canGoBack: wizard.canGoBack, onNext: handleNext, onBack: wizard.goBack, onGoToStep: wizard.goToStep, onCancel: onCancel, className: className, children: currentStepContent }));
114
+ }
115
+ //# sourceMappingURL=AgentCreationWizard.js.map
@@ -0,0 +1 @@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ACf,CAAC;AACJ,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
2
+ import type { AdditionalTab, DetailAction } from "../resource-detail/types";
2
3
  /** Props for {@link AgentDetailView}. */
3
4
  export interface AgentDetailViewProps {
4
5
  /** Organization slug that owns the agent. */
@@ -44,17 +45,79 @@ export interface AgentDetailViewProps {
44
45
  readonly onVisibilityChange?: (v: ApiResourceVisibility) => void;
45
46
  /** `true` while a visibility update RPC is in flight. */
46
47
  readonly isVisibilityPending?: boolean;
48
+ /**
49
+ * Primary action rendered as a visible button in the header area.
50
+ * Typically "Edit" for agent detail pages.
51
+ */
52
+ readonly primaryAction?: DetailAction;
53
+ /**
54
+ * Secondary actions rendered in the kebab overflow menu.
55
+ * Typically: Copy ID, Copy slug, Export JSON, Duplicate, Delete.
56
+ */
57
+ readonly actions?: readonly DetailAction[];
58
+ /**
59
+ * Additional tabs to render alongside the built-in "Overview" tab.
60
+ * When provided (with at least one entry), a tab bar appears.
61
+ * When omitted or empty, no tab bar is shown (single-tab suppression).
62
+ *
63
+ * Each entry provides both the tab metadata and the content to render.
64
+ * The SDK manages the tab switching logic internally.
65
+ *
66
+ * @example
67
+ * ```tsx
68
+ * <AgentDetailView
69
+ * org="acme"
70
+ * slug="my-agent"
71
+ * additionalTabs={[
72
+ * { id: "dependencies", label: "Dependencies", content: <DependencyGraph /> },
73
+ * ]}
74
+ * />
75
+ * ```
76
+ */
77
+ readonly additionalTabs?: readonly AdditionalTab[];
78
+ /**
79
+ * Controlled active tab ID. When provided together with `onTabChange`,
80
+ * the component operates in controlled mode — the consumer owns tab state.
81
+ * When omitted, the component manages its own internal tab state.
82
+ */
83
+ readonly activeTab?: string;
84
+ /**
85
+ * Controlled tab change handler. When provided together with `activeTab`,
86
+ * the component operates in controlled mode.
87
+ */
88
+ readonly onTabChange?: (tabId: string) => void;
89
+ /**
90
+ * Default active tab ID when in uncontrolled mode.
91
+ * @default "overview"
92
+ */
93
+ readonly defaultTab?: string;
94
+ /**
95
+ * When `true`, fields on the detail view become click-to-edit.
96
+ * Each field saves independently via `stigmer.agent.update()`.
97
+ * @default false
98
+ */
99
+ readonly editable?: boolean;
100
+ /**
101
+ * Called after a successful inline field save with the updated agent.
102
+ * Consumers can use this to refresh breadcrumbs, sync URL state, etc.
103
+ */
104
+ readonly onResourceUpdated?: (agent: import("@stigmer/protos/ai/stigmer/agentic/agent/v1/api_pb").Agent) => void;
47
105
  /** Additional CSS classes for the root container. */
48
106
  readonly className?: string;
49
107
  }
50
108
  /**
51
- * Read-only detail view for an Agent blueprint.
109
+ * Operational detail hub for an Agent blueprint.
52
110
  *
53
111
  * Fetches the agent via {@link useAgent} internally and renders its
54
- * full configuration in structured sections: header, instructions,
55
- * MCP server usages, skills, sub-agents, and environment variables.
56
- * Sections with no data are omitted entirely — reducing visual noise
57
- * per the aesthetic-minimalist design heuristic (Nielsen #8).
112
+ * full configuration inside a {@link ResourceDetailShell}: a
113
+ * standardized header with action bar, followed by structured content
114
+ * sections (instructions, MCP server usages, skills, sub-agents, and
115
+ * environment variables). Sections with no data are omitted entirely
116
+ * — reducing visual noise per Nielsen heuristic #8.
117
+ *
118
+ * The action bar transforms this from a read-only view into an
119
+ * operational hub. Actions are provided by the consumer via
120
+ * `primaryAction` and `actions` props.
58
121
  *
59
122
  * Handles loading, error, and not-found states automatically.
60
123
  * Zero Console dependencies — safe for platform builder embedding.
@@ -68,14 +131,19 @@ export interface AgentDetailViewProps {
68
131
  *
69
132
  * @example
70
133
  * ```tsx
71
- * // With cross-resource linking in a Console page
134
+ * // Operational hub with actions in a Console page
72
135
  * <AgentDetailView
73
136
  * org={org}
74
137
  * slug={slug}
75
- * onMcpServerClick={({ org, slug }) => router.push(`/library/mcp-servers/${org}/${slug}`)}
76
- * onSkillClick={({ org, slug }) => router.push(`/library/skills/${org}/${slug}`)}
138
+ * primaryAction={{ id: "edit", label: "Edit", onAction: handleEdit }}
139
+ * actions={[
140
+ * { id: "copy-id", label: "Copy ID", onAction: () => copyId(id) },
141
+ * { id: "delete", label: "Delete", variant: "destructive", onAction: handleDelete },
142
+ * ]}
143
+ * onMcpServerClick={({ org, slug }) => navigateToDetail("mcp-servers", org, slug)}
144
+ * onSkillClick={({ org, slug }) => navigateToDetail("skills", org, slug)}
77
145
  * />
78
146
  * ```
79
147
  */
80
- export declare function AgentDetailView({ org, slug, onMcpServerClick, onSkillClick, onResourceLoad, onVisibilityChange, isVisibilityPending, className, }: AgentDetailViewProps): import("react/jsx-runtime").JSX.Element;
148
+ export declare function AgentDetailView({ org, slug, onMcpServerClick, onSkillClick, onResourceLoad, onVisibilityChange, isVisibilityPending, primaryAction, actions, additionalTabs, activeTab, onTabChange, defaultTab, editable, onResourceUpdated, className, }: AgentDetailViewProps): import("react/jsx-runtime").JSX.Element;
81
149
  //# sourceMappingURL=AgentDetailView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AgentDetailView.d.ts","sourceRoot":"","sources":["../../src/agent/AgentDetailView.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAO/F,yCAAyC;AACzC,MAAM,WAAW,oBAAoB;IACnC,6CAA6C;IAC7C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACzE;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACrE;;;;;;;OAOG;IACH,QAAQ,CAAC,cAAc,CA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