@stigmer/react 0.4.8 → 0.5.0

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 (631) 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/dependency-graph/DependencyGraph.d.ts +37 -0
  54. package/dependency-graph/DependencyGraph.d.ts.map +1 -0
  55. package/dependency-graph/DependencyGraph.js +88 -0
  56. package/dependency-graph/DependencyGraph.js.map +1 -0
  57. package/dependency-graph/DependencyTreeNode.d.ts +23 -0
  58. package/dependency-graph/DependencyTreeNode.d.ts.map +1 -0
  59. package/dependency-graph/DependencyTreeNode.js +99 -0
  60. package/dependency-graph/DependencyTreeNode.js.map +1 -0
  61. package/dependency-graph/index.d.ts +4 -0
  62. package/dependency-graph/index.d.ts.map +1 -0
  63. package/dependency-graph/index.js +5 -0
  64. package/dependency-graph/index.js.map +1 -0
  65. package/dependency-graph/types.d.ts +130 -0
  66. package/dependency-graph/types.d.ts.map +1 -0
  67. package/dependency-graph/types.js +2 -0
  68. package/dependency-graph/types.js.map +1 -0
  69. package/dependency-graph/useDependencyGraph.d.ts +27 -0
  70. package/dependency-graph/useDependencyGraph.d.ts.map +1 -0
  71. package/dependency-graph/useDependencyGraph.js +129 -0
  72. package/dependency-graph/useDependencyGraph.js.map +1 -0
  73. package/empty-state/EmptyState.d.ts +29 -0
  74. package/empty-state/EmptyState.d.ts.map +1 -0
  75. package/empty-state/EmptyState.js +45 -0
  76. package/empty-state/EmptyState.js.map +1 -0
  77. package/empty-state/index.d.ts +4 -0
  78. package/empty-state/index.d.ts.map +1 -0
  79. package/empty-state/index.js +3 -0
  80. package/empty-state/index.js.map +1 -0
  81. package/empty-state/types.d.ts +73 -0
  82. package/empty-state/types.d.ts.map +1 -0
  83. package/empty-state/types.js +2 -0
  84. package/empty-state/types.js.map +1 -0
  85. package/empty-state/useEmptyState.d.ts +18 -0
  86. package/empty-state/useEmptyState.d.ts.map +1 -0
  87. package/empty-state/useEmptyState.js +72 -0
  88. package/empty-state/useEmptyState.js.map +1 -0
  89. package/feedback/StigmerToaster.d.ts +18 -0
  90. package/feedback/StigmerToaster.d.ts.map +1 -0
  91. package/feedback/StigmerToaster.js +31 -0
  92. package/feedback/StigmerToaster.js.map +1 -0
  93. package/feedback/index.d.ts +4 -0
  94. package/feedback/index.d.ts.map +1 -0
  95. package/feedback/index.js +3 -0
  96. package/feedback/index.js.map +1 -0
  97. package/feedback/toast.d.ts +14 -0
  98. package/feedback/toast.d.ts.map +1 -0
  99. package/feedback/toast.js +14 -0
  100. package/feedback/toast.js.map +1 -0
  101. package/feedback/types.d.ts +4 -0
  102. package/feedback/types.d.ts.map +1 -0
  103. package/feedback/types.js +2 -0
  104. package/feedback/types.js.map +1 -0
  105. package/index.d.ts +30 -10
  106. package/index.d.ts.map +1 -1
  107. package/index.js +29 -9
  108. package/index.js.map +1 -1
  109. package/inline-edit/InlineEditImage.d.ts +20 -0
  110. package/inline-edit/InlineEditImage.d.ts.map +1 -0
  111. package/inline-edit/InlineEditImage.js +85 -0
  112. package/inline-edit/InlineEditImage.js.map +1 -0
  113. package/inline-edit/InlineEditKeyValue.d.ts +29 -0
  114. package/inline-edit/InlineEditKeyValue.d.ts.map +1 -0
  115. package/inline-edit/InlineEditKeyValue.js +67 -0
  116. package/inline-edit/InlineEditKeyValue.js.map +1 -0
  117. package/inline-edit/InlineEditResourceList.d.ts +34 -0
  118. package/inline-edit/InlineEditResourceList.d.ts.map +1 -0
  119. package/inline-edit/InlineEditResourceList.js +99 -0
  120. package/inline-edit/InlineEditResourceList.js.map +1 -0
  121. package/inline-edit/InlineEditSelect.d.ts +18 -0
  122. package/inline-edit/InlineEditSelect.d.ts.map +1 -0
  123. package/inline-edit/InlineEditSelect.js +54 -0
  124. package/inline-edit/InlineEditSelect.js.map +1 -0
  125. package/inline-edit/InlineEditText.d.ts +23 -0
  126. package/inline-edit/InlineEditText.d.ts.map +1 -0
  127. package/inline-edit/InlineEditText.js +79 -0
  128. package/inline-edit/InlineEditText.js.map +1 -0
  129. package/inline-edit/InlineEditTextarea.d.ts +22 -0
  130. package/inline-edit/InlineEditTextarea.d.ts.map +1 -0
  131. package/inline-edit/InlineEditTextarea.js +83 -0
  132. package/inline-edit/InlineEditTextarea.js.map +1 -0
  133. package/inline-edit/index.d.ts +16 -0
  134. package/inline-edit/index.d.ts.map +1 -0
  135. package/inline-edit/index.js +8 -0
  136. package/inline-edit/index.js.map +1 -0
  137. package/inline-edit/types.d.ts +42 -0
  138. package/inline-edit/types.d.ts.map +1 -0
  139. package/inline-edit/types.js +2 -0
  140. package/inline-edit/types.js.map +1 -0
  141. package/inline-edit/useInlineFieldSave.d.ts +23 -0
  142. package/inline-edit/useInlineFieldSave.d.ts.map +1 -0
  143. package/inline-edit/useInlineFieldSave.js +44 -0
  144. package/inline-edit/useInlineFieldSave.js.map +1 -0
  145. package/internal/Tabs.d.ts +4 -38
  146. package/internal/Tabs.d.ts.map +1 -1
  147. package/internal/Tabs.js +3 -62
  148. package/internal/Tabs.js.map +1 -1
  149. package/library/ImportResourceDialog.d.ts +43 -0
  150. package/library/ImportResourceDialog.d.ts.map +1 -0
  151. package/library/ImportResourceDialog.js +90 -0
  152. package/library/ImportResourceDialog.js.map +1 -0
  153. package/library/index.d.ts +7 -4
  154. package/library/index.d.ts.map +1 -1
  155. package/library/index.js +4 -2
  156. package/library/index.js.map +1 -1
  157. package/library/serialize-resource-yaml.d.ts +53 -0
  158. package/library/serialize-resource-yaml.d.ts.map +1 -1
  159. package/library/serialize-resource-yaml.js +275 -0
  160. package/library/serialize-resource-yaml.js.map +1 -1
  161. package/library/useExportResource.d.ts +56 -0
  162. package/library/useExportResource.d.ts.map +1 -0
  163. package/library/useExportResource.js +137 -0
  164. package/library/useExportResource.js.map +1 -0
  165. package/library/useImportResource.d.ts +84 -0
  166. package/library/useImportResource.d.ts.map +1 -0
  167. package/library/useImportResource.js +188 -0
  168. package/library/useImportResource.js.map +1 -0
  169. package/mcp-server/McpServerCreationWizard.d.ts +55 -0
  170. package/mcp-server/McpServerCreationWizard.d.ts.map +1 -0
  171. package/mcp-server/McpServerCreationWizard.js +121 -0
  172. package/mcp-server/McpServerCreationWizard.js.map +1 -0
  173. package/mcp-server/McpServerDetailView.d.ts +21 -1
  174. package/mcp-server/McpServerDetailView.d.ts.map +1 -1
  175. package/mcp-server/McpServerDetailView.js +113 -20
  176. package/mcp-server/McpServerDetailView.js.map +1 -1
  177. package/mcp-server/index.d.ts +8 -0
  178. package/mcp-server/index.d.ts.map +1 -1
  179. package/mcp-server/index.js +4 -0
  180. package/mcp-server/index.js.map +1 -1
  181. package/mcp-server/internal/mcpServerToInput.d.ts +12 -0
  182. package/mcp-server/internal/mcpServerToInput.d.ts.map +1 -0
  183. package/mcp-server/internal/mcpServerToInput.js +81 -0
  184. package/mcp-server/internal/mcpServerToInput.js.map +1 -0
  185. package/mcp-server/steps/EnvironmentAuthStep.d.ts +15 -0
  186. package/mcp-server/steps/EnvironmentAuthStep.d.ts.map +1 -0
  187. package/mcp-server/steps/EnvironmentAuthStep.js +55 -0
  188. package/mcp-server/steps/EnvironmentAuthStep.js.map +1 -0
  189. package/mcp-server/steps/IdentityTransportStep.d.ts +19 -0
  190. package/mcp-server/steps/IdentityTransportStep.d.ts.map +1 -0
  191. package/mcp-server/steps/IdentityTransportStep.js +73 -0
  192. package/mcp-server/steps/IdentityTransportStep.js.map +1 -0
  193. package/mcp-server/steps/ReviewStep.d.ts +23 -0
  194. package/mcp-server/steps/ReviewStep.d.ts.map +1 -0
  195. package/mcp-server/steps/ReviewStep.js +137 -0
  196. package/mcp-server/steps/ReviewStep.js.map +1 -0
  197. package/mcp-server/steps/types.d.ts +56 -0
  198. package/mcp-server/steps/types.d.ts.map +1 -0
  199. package/mcp-server/steps/types.js +27 -0
  200. package/mcp-server/steps/types.js.map +1 -0
  201. package/mcp-server/useCreateMcpServer.d.ts +45 -0
  202. package/mcp-server/useCreateMcpServer.d.ts.map +1 -0
  203. package/mcp-server/useCreateMcpServer.js +50 -0
  204. package/mcp-server/useCreateMcpServer.js.map +1 -0
  205. package/mcp-server/useUpdateMcpServer.d.ts +24 -0
  206. package/mcp-server/useUpdateMcpServer.d.ts.map +1 -0
  207. package/mcp-server/useUpdateMcpServer.js +35 -0
  208. package/mcp-server/useUpdateMcpServer.js.map +1 -0
  209. package/package.json +8 -4
  210. package/resource-creation/CreationPicker.d.ts +60 -0
  211. package/resource-creation/CreationPicker.d.ts.map +1 -0
  212. package/resource-creation/CreationPicker.js +74 -0
  213. package/resource-creation/CreationPicker.js.map +1 -0
  214. package/resource-creation/StepIndicator.d.ts +28 -0
  215. package/resource-creation/StepIndicator.d.ts.map +1 -0
  216. package/resource-creation/StepIndicator.js +40 -0
  217. package/resource-creation/StepIndicator.js.map +1 -0
  218. package/resource-creation/TemplateCard.d.ts +24 -0
  219. package/resource-creation/TemplateCard.d.ts.map +1 -0
  220. package/resource-creation/TemplateCard.js +68 -0
  221. package/resource-creation/TemplateCard.js.map +1 -0
  222. package/resource-creation/TemplateGallery.d.ts +43 -0
  223. package/resource-creation/TemplateGallery.d.ts.map +1 -0
  224. package/resource-creation/TemplateGallery.js +78 -0
  225. package/resource-creation/TemplateGallery.js.map +1 -0
  226. package/resource-creation/WizardNav.d.ts +31 -0
  227. package/resource-creation/WizardNav.d.ts.map +1 -0
  228. package/resource-creation/WizardNav.js +29 -0
  229. package/resource-creation/WizardNav.js.map +1 -0
  230. package/resource-creation/WizardShell.d.ts +41 -0
  231. package/resource-creation/WizardShell.d.ts.map +1 -0
  232. package/resource-creation/WizardShell.js +55 -0
  233. package/resource-creation/WizardShell.js.map +1 -0
  234. package/resource-creation/index.d.ts +21 -0
  235. package/resource-creation/index.d.ts.map +1 -0
  236. package/resource-creation/index.js +14 -0
  237. package/resource-creation/index.js.map +1 -0
  238. package/resource-creation/templates/agent-templates.d.ts +15 -0
  239. package/resource-creation/templates/agent-templates.d.ts.map +1 -0
  240. package/resource-creation/templates/agent-templates.js +148 -0
  241. package/resource-creation/templates/agent-templates.js.map +1 -0
  242. package/resource-creation/templates/index.d.ts +5 -0
  243. package/resource-creation/templates/index.d.ts.map +1 -0
  244. package/resource-creation/templates/index.js +5 -0
  245. package/resource-creation/templates/index.js.map +1 -0
  246. package/resource-creation/templates/mcp-server-templates.d.ts +15 -0
  247. package/resource-creation/templates/mcp-server-templates.d.ts.map +1 -0
  248. package/resource-creation/templates/mcp-server-templates.js +92 -0
  249. package/resource-creation/templates/mcp-server-templates.js.map +1 -0
  250. package/resource-creation/templates/types.d.ts +48 -0
  251. package/resource-creation/templates/types.d.ts.map +1 -0
  252. package/resource-creation/templates/types.js +16 -0
  253. package/resource-creation/templates/types.js.map +1 -0
  254. package/resource-creation/types.d.ts +88 -0
  255. package/resource-creation/types.d.ts.map +1 -0
  256. package/resource-creation/types.js +2 -0
  257. package/resource-creation/types.js.map +1 -0
  258. package/resource-creation/useTemplateFilter.d.ts +43 -0
  259. package/resource-creation/useTemplateFilter.d.ts.map +1 -0
  260. package/resource-creation/useTemplateFilter.js +73 -0
  261. package/resource-creation/useTemplateFilter.js.map +1 -0
  262. package/resource-creation/useWizardState.d.ts +67 -0
  263. package/resource-creation/useWizardState.d.ts.map +1 -0
  264. package/resource-creation/useWizardState.js +143 -0
  265. package/resource-creation/useWizardState.js.map +1 -0
  266. package/resource-detail/ConfirmDialog.d.ts +44 -0
  267. package/resource-detail/ConfirmDialog.d.ts.map +1 -0
  268. package/resource-detail/ConfirmDialog.js +62 -0
  269. package/resource-detail/ConfirmDialog.js.map +1 -0
  270. package/resource-detail/ResourceActionBar.d.ts +42 -0
  271. package/resource-detail/ResourceActionBar.d.ts.map +1 -0
  272. package/resource-detail/ResourceActionBar.js +64 -0
  273. package/resource-detail/ResourceActionBar.js.map +1 -0
  274. package/resource-detail/ResourceDetailShell.d.ts +36 -0
  275. package/resource-detail/ResourceDetailShell.d.ts.map +1 -0
  276. package/resource-detail/ResourceDetailShell.js +65 -0
  277. package/resource-detail/ResourceDetailShell.js.map +1 -0
  278. package/resource-detail/Section.d.ts +18 -0
  279. package/resource-detail/Section.d.ts.map +1 -0
  280. package/resource-detail/Section.js +18 -0
  281. package/resource-detail/Section.js.map +1 -0
  282. package/resource-detail/index.d.ts +15 -0
  283. package/resource-detail/index.d.ts.map +1 -0
  284. package/resource-detail/index.js +10 -0
  285. package/resource-detail/index.js.map +1 -0
  286. package/resource-detail/types.d.ts +146 -0
  287. package/resource-detail/types.d.ts.map +1 -0
  288. package/resource-detail/types.js +2 -0
  289. package/resource-detail/types.js.map +1 -0
  290. package/resource-detail/useConfirmAction.d.ts +41 -0
  291. package/resource-detail/useConfirmAction.d.ts.map +1 -0
  292. package/resource-detail/useConfirmAction.js +30 -0
  293. package/resource-detail/useConfirmAction.js.map +1 -0
  294. package/resource-detail/useCopyResource.d.ts +28 -0
  295. package/resource-detail/useCopyResource.d.ts.map +1 -0
  296. package/resource-detail/useCopyResource.js +46 -0
  297. package/resource-detail/useCopyResource.js.map +1 -0
  298. package/resource-detail/useDeleteResource.d.ts +40 -0
  299. package/resource-detail/useDeleteResource.d.ts.map +1 -0
  300. package/resource-detail/useDeleteResource.js +83 -0
  301. package/resource-detail/useDeleteResource.js.map +1 -0
  302. package/resource-detail/useDetailTabs.d.ts +46 -0
  303. package/resource-detail/useDetailTabs.d.ts.map +1 -0
  304. package/resource-detail/useDetailTabs.js +47 -0
  305. package/resource-detail/useDetailTabs.js.map +1 -0
  306. package/resource-workbench/components/BulkActionBar.d.ts +36 -0
  307. package/resource-workbench/components/BulkActionBar.d.ts.map +1 -0
  308. package/resource-workbench/components/BulkActionBar.js +35 -0
  309. package/resource-workbench/components/BulkActionBar.js.map +1 -0
  310. package/resource-workbench/components/ColumnHeader.d.ts +23 -0
  311. package/resource-workbench/components/ColumnHeader.d.ts.map +1 -0
  312. package/resource-workbench/components/ColumnHeader.js +25 -0
  313. package/resource-workbench/components/ColumnHeader.js.map +1 -0
  314. package/resource-workbench/components/FilterBar.d.ts +33 -0
  315. package/resource-workbench/components/FilterBar.d.ts.map +1 -0
  316. package/resource-workbench/components/FilterBar.js +72 -0
  317. package/resource-workbench/components/FilterBar.js.map +1 -0
  318. package/resource-workbench/components/ResourceAvatar.d.ts +29 -0
  319. package/resource-workbench/components/ResourceAvatar.d.ts.map +1 -0
  320. package/resource-workbench/components/ResourceAvatar.js +51 -0
  321. package/resource-workbench/components/ResourceAvatar.js.map +1 -0
  322. package/resource-workbench/components/ResourceCards.d.ts +39 -0
  323. package/resource-workbench/components/ResourceCards.d.ts.map +1 -0
  324. package/resource-workbench/components/ResourceCards.js +41 -0
  325. package/resource-workbench/components/ResourceCards.js.map +1 -0
  326. package/resource-workbench/components/ResourceInspector.d.ts +26 -0
  327. package/resource-workbench/components/ResourceInspector.d.ts.map +1 -0
  328. package/resource-workbench/components/ResourceInspector.js +22 -0
  329. package/resource-workbench/components/ResourceInspector.js.map +1 -0
  330. package/resource-workbench/components/ResourceList.d.ts +39 -0
  331. package/resource-workbench/components/ResourceList.d.ts.map +1 -0
  332. package/resource-workbench/components/ResourceList.js +41 -0
  333. package/resource-workbench/components/ResourceList.js.map +1 -0
  334. package/resource-workbench/components/ResourceTable.d.ts +47 -0
  335. package/resource-workbench/components/ResourceTable.d.ts.map +1 -0
  336. package/resource-workbench/components/ResourceTable.js +78 -0
  337. package/resource-workbench/components/ResourceTable.js.map +1 -0
  338. package/resource-workbench/components/ResourceWorkbench.d.ts +131 -0
  339. package/resource-workbench/components/ResourceWorkbench.d.ts.map +1 -0
  340. package/resource-workbench/components/ResourceWorkbench.js +170 -0
  341. package/resource-workbench/components/ResourceWorkbench.js.map +1 -0
  342. package/resource-workbench/components/SelectionCheckbox.d.ts +24 -0
  343. package/resource-workbench/components/SelectionCheckbox.d.ts.map +1 -0
  344. package/resource-workbench/components/SelectionCheckbox.js +16 -0
  345. package/resource-workbench/components/SelectionCheckbox.js.map +1 -0
  346. package/resource-workbench/components/StatusBadge.d.ts +31 -0
  347. package/resource-workbench/components/StatusBadge.d.ts.map +1 -0
  348. package/resource-workbench/components/StatusBadge.js +75 -0
  349. package/resource-workbench/components/StatusBadge.js.map +1 -0
  350. package/resource-workbench/components/ViewSwitcher.d.ts +21 -0
  351. package/resource-workbench/components/ViewSwitcher.d.ts.map +1 -0
  352. package/resource-workbench/components/ViewSwitcher.js +37 -0
  353. package/resource-workbench/components/ViewSwitcher.js.map +1 -0
  354. package/resource-workbench/hooks/useResourceCollection.d.ts +93 -0
  355. package/resource-workbench/hooks/useResourceCollection.d.ts.map +1 -0
  356. package/resource-workbench/hooks/useResourceCollection.js +133 -0
  357. package/resource-workbench/hooks/useResourceCollection.js.map +1 -0
  358. package/resource-workbench/hooks/useResourceFilters.d.ts +73 -0
  359. package/resource-workbench/hooks/useResourceFilters.d.ts.map +1 -0
  360. package/resource-workbench/hooks/useResourceFilters.js +105 -0
  361. package/resource-workbench/hooks/useResourceFilters.js.map +1 -0
  362. package/resource-workbench/hooks/useResourceSelection.d.ts +44 -0
  363. package/resource-workbench/hooks/useResourceSelection.d.ts.map +1 -0
  364. package/resource-workbench/hooks/useResourceSelection.js +123 -0
  365. package/resource-workbench/hooks/useResourceSelection.js.map +1 -0
  366. package/resource-workbench/hooks/useViewPreference.d.ts +32 -0
  367. package/resource-workbench/hooks/useViewPreference.d.ts.map +1 -0
  368. package/resource-workbench/hooks/useViewPreference.js +60 -0
  369. package/resource-workbench/hooks/useViewPreference.js.map +1 -0
  370. package/resource-workbench/index.d.ts +34 -0
  371. package/resource-workbench/index.d.ts.map +1 -0
  372. package/resource-workbench/index.js +19 -0
  373. package/resource-workbench/index.js.map +1 -0
  374. package/resource-workbench/types.d.ts +165 -0
  375. package/resource-workbench/types.d.ts.map +1 -0
  376. package/resource-workbench/types.js +2 -0
  377. package/resource-workbench/types.js.map +1 -0
  378. package/runner/RunnerDetailView.d.ts +44 -0
  379. package/runner/RunnerDetailView.d.ts.map +1 -0
  380. package/runner/RunnerDetailView.js +154 -0
  381. package/runner/RunnerDetailView.js.map +1 -0
  382. package/runner/RunnerListPanel.d.ts +26 -1
  383. package/runner/RunnerListPanel.d.ts.map +1 -1
  384. package/runner/RunnerListPanel.js +68 -46
  385. package/runner/RunnerListPanel.js.map +1 -1
  386. package/runner/index.d.ts +7 -1
  387. package/runner/index.d.ts.map +1 -1
  388. package/runner/index.js +3 -0
  389. package/runner/index.js.map +1 -1
  390. package/runner/shared.d.ts +31 -0
  391. package/runner/shared.d.ts.map +1 -0
  392. package/runner/shared.js +55 -0
  393. package/runner/shared.js.map +1 -0
  394. package/runner/useRunner.d.ts +37 -0
  395. package/runner/useRunner.d.ts.map +1 -0
  396. package/runner/useRunner.js +24 -0
  397. package/runner/useRunner.js.map +1 -0
  398. package/session/__tests__/group-sessions.test.js +3 -3
  399. package/session/__tests__/group-sessions.test.js.map +1 -1
  400. package/skill/SkillDetailView.d.ts +70 -7
  401. package/skill/SkillDetailView.d.ts.map +1 -1
  402. package/skill/SkillDetailView.js +107 -39
  403. package/skill/SkillDetailView.js.map +1 -1
  404. package/skill/SkillDiffDialog.d.ts +42 -0
  405. package/skill/SkillDiffDialog.d.ts.map +1 -0
  406. package/skill/SkillDiffDialog.js +72 -0
  407. package/skill/SkillDiffDialog.js.map +1 -0
  408. package/skill/SkillFileBrowser.d.ts +31 -0
  409. package/skill/SkillFileBrowser.d.ts.map +1 -0
  410. package/skill/SkillFileBrowser.js +105 -0
  411. package/skill/SkillFileBrowser.js.map +1 -0
  412. package/skill/SkillUploader.d.ts +39 -0
  413. package/skill/SkillUploader.d.ts.map +1 -0
  414. package/skill/SkillUploader.js +141 -0
  415. package/skill/SkillUploader.js.map +1 -0
  416. package/skill/index.d.ts +18 -0
  417. package/skill/index.d.ts.map +1 -1
  418. package/skill/index.js +9 -0
  419. package/skill/index.js.map +1 -1
  420. package/skill/internal/computeArtifactHash.d.ts +9 -0
  421. package/skill/internal/computeArtifactHash.d.ts.map +1 -0
  422. package/skill/internal/computeArtifactHash.js +14 -0
  423. package/skill/internal/computeArtifactHash.js.map +1 -0
  424. package/skill/internal/fetchAndUnpackArtifact.d.ts +16 -0
  425. package/skill/internal/fetchAndUnpackArtifact.d.ts.map +1 -0
  426. package/skill/internal/fetchAndUnpackArtifact.js +34 -0
  427. package/skill/internal/fetchAndUnpackArtifact.js.map +1 -0
  428. package/skill/usePushSkill.d.ts +53 -0
  429. package/skill/usePushSkill.d.ts.map +1 -0
  430. package/skill/usePushSkill.js +57 -0
  431. package/skill/usePushSkill.js.map +1 -0
  432. package/skill/useSkillArtifact.d.ts +37 -0
  433. package/skill/useSkillArtifact.d.ts.map +1 -0
  434. package/skill/useSkillArtifact.js +76 -0
  435. package/skill/useSkillArtifact.js.map +1 -0
  436. package/skill/useSkillDiff.d.ts +31 -0
  437. package/skill/useSkillDiff.d.ts.map +1 -0
  438. package/skill/useSkillDiff.js +97 -0
  439. package/skill/useSkillDiff.js.map +1 -0
  440. package/skill/useSkillDuplicateCheck.d.ts +34 -0
  441. package/skill/useSkillDuplicateCheck.d.ts.map +1 -0
  442. package/skill/useSkillDuplicateCheck.js +58 -0
  443. package/skill/useSkillDuplicateCheck.js.map +1 -0
  444. package/skill/useSkillUpload.d.ts +69 -0
  445. package/skill/useSkillUpload.d.ts.map +1 -0
  446. package/skill/useSkillUpload.js +157 -0
  447. package/skill/useSkillUpload.js.map +1 -0
  448. package/skill/useSkillVersions.d.ts +46 -0
  449. package/skill/useSkillVersions.d.ts.map +1 -0
  450. package/skill/useSkillVersions.js +104 -0
  451. package/skill/useSkillVersions.js.map +1 -0
  452. package/src/action-menu/ActionMenu.tsx +151 -0
  453. package/src/action-menu/index.ts +9 -0
  454. package/src/action-menu/types.ts +70 -0
  455. package/src/agent/AgentCreationWizard.tsx +201 -0
  456. package/src/agent/AgentDetailView.tsx +817 -321
  457. package/src/agent/index.ts +16 -0
  458. package/src/agent/internal/agentToInput.ts +95 -0
  459. package/src/agent/steps/CapabilitiesStep.tsx +363 -0
  460. package/src/agent/steps/IdentityStep.tsx +259 -0
  461. package/src/agent/steps/ReviewStep.tsx +211 -0
  462. package/src/agent/steps/types.ts +53 -0
  463. package/src/agent/useCreateAgent.ts +76 -0
  464. package/src/agent/useUpdateAgent.ts +55 -0
  465. package/src/dependency-graph/DependencyGraph.tsx +153 -0
  466. package/src/dependency-graph/DependencyTreeNode.tsx +282 -0
  467. package/src/dependency-graph/index.ts +15 -0
  468. package/src/dependency-graph/types.ts +131 -0
  469. package/src/dependency-graph/useDependencyGraph.ts +158 -0
  470. package/src/empty-state/EmptyState.tsx +90 -0
  471. package/src/empty-state/index.ts +9 -0
  472. package/src/empty-state/types.ts +81 -0
  473. package/src/empty-state/useEmptyState.ts +85 -0
  474. package/src/feedback/StigmerToaster.tsx +45 -0
  475. package/src/feedback/index.ts +3 -0
  476. package/src/feedback/toast.ts +13 -0
  477. package/src/feedback/types.ts +7 -0
  478. package/src/index.ts +270 -8
  479. package/src/inline-edit/InlineEditImage.tsx +208 -0
  480. package/src/inline-edit/InlineEditKeyValue.tsx +278 -0
  481. package/src/inline-edit/InlineEditResourceList.tsx +325 -0
  482. package/src/inline-edit/InlineEditSelect.tsx +150 -0
  483. package/src/inline-edit/InlineEditText.tsx +211 -0
  484. package/src/inline-edit/InlineEditTextarea.tsx +209 -0
  485. package/src/inline-edit/index.ts +28 -0
  486. package/src/inline-edit/types.ts +47 -0
  487. package/src/inline-edit/useInlineFieldSave.ts +62 -0
  488. package/src/internal/Tabs.tsx +4 -164
  489. package/src/library/ImportResourceDialog.tsx +227 -0
  490. package/src/library/index.ts +18 -8
  491. package/src/library/serialize-resource-yaml.ts +356 -0
  492. package/src/library/useExportResource.ts +183 -0
  493. package/src/library/useImportResource.ts +253 -0
  494. package/src/mcp-server/McpServerCreationWizard.tsx +206 -0
  495. package/src/mcp-server/McpServerDetailView.tsx +392 -105
  496. package/src/mcp-server/index.ts +16 -0
  497. package/src/mcp-server/internal/mcpServerToInput.ts +95 -0
  498. package/src/mcp-server/steps/EnvironmentAuthStep.tsx +462 -0
  499. package/src/mcp-server/steps/IdentityTransportStep.tsx +531 -0
  500. package/src/mcp-server/steps/ReviewStep.tsx +297 -0
  501. package/src/mcp-server/steps/types.ts +85 -0
  502. package/src/mcp-server/useCreateMcpServer.ts +76 -0
  503. package/src/mcp-server/useUpdateMcpServer.ts +55 -0
  504. package/src/resource-creation/CreationPicker.tsx +292 -0
  505. package/src/resource-creation/StepIndicator.tsx +156 -0
  506. package/src/resource-creation/TemplateCard.tsx +143 -0
  507. package/src/resource-creation/TemplateGallery.tsx +222 -0
  508. package/src/resource-creation/WizardNav.tsx +163 -0
  509. package/src/resource-creation/WizardShell.tsx +124 -0
  510. package/src/resource-creation/index.ts +45 -0
  511. package/src/resource-creation/templates/agent-templates.ts +160 -0
  512. package/src/resource-creation/templates/index.ts +7 -0
  513. package/src/resource-creation/templates/mcp-server-templates.ts +106 -0
  514. package/src/resource-creation/templates/types.ts +64 -0
  515. package/src/resource-creation/types.ts +105 -0
  516. package/src/resource-creation/useTemplateFilter.ts +117 -0
  517. package/src/resource-creation/useWizardState.ts +223 -0
  518. package/src/resource-detail/ConfirmDialog.tsx +127 -0
  519. package/src/resource-detail/ResourceActionBar.tsx +157 -0
  520. package/src/resource-detail/ResourceDetailShell.tsx +184 -0
  521. package/src/resource-detail/Section.tsx +78 -0
  522. package/src/resource-detail/index.ts +34 -0
  523. package/src/resource-detail/types.ts +177 -0
  524. package/src/resource-detail/useConfirmAction.ts +70 -0
  525. package/src/resource-detail/useCopyResource.ts +74 -0
  526. package/src/resource-detail/useDeleteResource.ts +110 -0
  527. package/src/resource-detail/useDetailTabs.ts +93 -0
  528. package/src/resource-workbench/components/BulkActionBar.tsx +122 -0
  529. package/src/resource-workbench/components/ColumnHeader.tsx +105 -0
  530. package/src/resource-workbench/components/FilterBar.tsx +173 -0
  531. package/src/resource-workbench/components/ResourceAvatar.tsx +109 -0
  532. package/src/resource-workbench/components/ResourceCards.tsx +126 -0
  533. package/src/resource-workbench/components/ResourceInspector.tsx +88 -0
  534. package/src/resource-workbench/components/ResourceList.tsx +121 -0
  535. package/src/resource-workbench/components/ResourceTable.tsx +222 -0
  536. package/src/resource-workbench/components/ResourceWorkbench.tsx +695 -0
  537. package/src/resource-workbench/components/SelectionCheckbox.tsx +52 -0
  538. package/src/resource-workbench/components/StatusBadge.tsx +119 -0
  539. package/src/resource-workbench/components/ViewSwitcher.tsx +135 -0
  540. package/src/resource-workbench/hooks/useResourceCollection.ts +261 -0
  541. package/src/resource-workbench/hooks/useResourceFilters.ts +216 -0
  542. package/src/resource-workbench/hooks/useResourceSelection.ts +178 -0
  543. package/src/resource-workbench/hooks/useViewPreference.ts +75 -0
  544. package/src/resource-workbench/index.ts +73 -0
  545. package/src/resource-workbench/types.ts +220 -0
  546. package/src/runner/RunnerDetailView.tsx +410 -0
  547. package/src/runner/RunnerListPanel.tsx +126 -111
  548. package/src/runner/index.ts +13 -1
  549. package/src/runner/shared.tsx +124 -0
  550. package/src/runner/useRunner.ts +59 -0
  551. package/src/session/__tests__/group-sessions.test.ts +5 -3
  552. package/src/skill/SkillDetailView.tsx +371 -165
  553. package/src/skill/SkillDiffDialog.tsx +213 -0
  554. package/src/skill/SkillFileBrowser.tsx +289 -0
  555. package/src/skill/SkillUploader.tsx +481 -0
  556. package/src/skill/index.ts +34 -0
  557. package/src/skill/internal/computeArtifactHash.ts +13 -0
  558. package/src/skill/internal/fetchAndUnpackArtifact.ts +48 -0
  559. package/src/skill/usePushSkill.ts +101 -0
  560. package/src/skill/useSkillArtifact.ts +107 -0
  561. package/src/skill/useSkillDiff.ts +128 -0
  562. package/src/skill/useSkillDuplicateCheck.ts +92 -0
  563. package/src/skill/useSkillUpload.ts +231 -0
  564. package/src/skill/useSkillVersions.ts +165 -0
  565. package/src/styles.css +28 -0
  566. package/src/tabs/Tabs.tsx +184 -0
  567. package/src/tabs/index.ts +2 -0
  568. package/src/version-history/DiffFileList.tsx +111 -0
  569. package/src/version-history/DiffSummary.tsx +61 -0
  570. package/src/version-history/DiffViewer.tsx +163 -0
  571. package/src/version-history/MultiFileDiffView.tsx +114 -0
  572. package/src/version-history/VersionTimeline.tsx +232 -0
  573. package/src/version-history/VersionTimelineEntry.tsx +254 -0
  574. package/src/version-history/computeDiff.ts +61 -0
  575. package/src/version-history/computeMultiFileDiff.ts +97 -0
  576. package/src/version-history/index.ts +22 -0
  577. package/src/version-history/types.ts +129 -0
  578. package/styles.css +1 -1
  579. package/tabs/Tabs.d.ts +58 -0
  580. package/tabs/Tabs.d.ts.map +1 -0
  581. package/tabs/Tabs.js +80 -0
  582. package/tabs/Tabs.js.map +1 -0
  583. package/tabs/index.d.ts +3 -0
  584. package/tabs/index.d.ts.map +1 -0
  585. package/tabs/index.js +2 -0
  586. package/tabs/index.js.map +1 -0
  587. package/version-history/DiffFileList.d.ts +22 -0
  588. package/version-history/DiffFileList.d.ts.map +1 -0
  589. package/version-history/DiffFileList.js +37 -0
  590. package/version-history/DiffFileList.js.map +1 -0
  591. package/version-history/DiffSummary.d.ts +21 -0
  592. package/version-history/DiffSummary.d.ts.map +1 -0
  593. package/version-history/DiffSummary.js +16 -0
  594. package/version-history/DiffSummary.js.map +1 -0
  595. package/version-history/DiffViewer.d.ts +31 -0
  596. package/version-history/DiffViewer.d.ts.map +1 -0
  597. package/version-history/DiffViewer.js +60 -0
  598. package/version-history/DiffViewer.js.map +1 -0
  599. package/version-history/MultiFileDiffView.d.ts +30 -0
  600. package/version-history/MultiFileDiffView.d.ts.map +1 -0
  601. package/version-history/MultiFileDiffView.js +40 -0
  602. package/version-history/MultiFileDiffView.js.map +1 -0
  603. package/version-history/VersionTimeline.d.ts +29 -0
  604. package/version-history/VersionTimeline.d.ts.map +1 -0
  605. package/version-history/VersionTimeline.js +87 -0
  606. package/version-history/VersionTimeline.js.map +1 -0
  607. package/version-history/VersionTimelineEntry.d.ts +22 -0
  608. package/version-history/VersionTimelineEntry.d.ts.map +1 -0
  609. package/version-history/VersionTimelineEntry.js +98 -0
  610. package/version-history/VersionTimelineEntry.js.map +1 -0
  611. package/version-history/computeDiff.d.ts +16 -0
  612. package/version-history/computeDiff.d.ts.map +1 -0
  613. package/version-history/computeDiff.js +54 -0
  614. package/version-history/computeDiff.js.map +1 -0
  615. package/version-history/computeMultiFileDiff.d.ts +15 -0
  616. package/version-history/computeMultiFileDiff.d.ts.map +1 -0
  617. package/version-history/computeMultiFileDiff.js +83 -0
  618. package/version-history/computeMultiFileDiff.js.map +1 -0
  619. package/version-history/index.d.ts +14 -0
  620. package/version-history/index.d.ts.map +1 -0
  621. package/version-history/index.js +9 -0
  622. package/version-history/index.js.map +1 -0
  623. package/version-history/types.d.ts +106 -0
  624. package/version-history/types.d.ts.map +1 -0
  625. package/version-history/types.js +2 -0
  626. package/version-history/types.js.map +1 -0
  627. package/library/ResourceListView.d.ts +0 -174
  628. package/library/ResourceListView.d.ts.map +0 -1
  629. package/library/ResourceListView.js +0 -318
  630. package/library/ResourceListView.js.map +0 -1
  631. package/src/library/ResourceListView.tsx +0 -956
@@ -0,0 +1,29 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { cn } from "@stigmer/theme";
4
+ /**
5
+ * Navigation footer for the wizard shell.
6
+ *
7
+ * Renders Back / Next|Submit buttons in a standardized layout.
8
+ * The primary (right-side) button adapts its label and loading
9
+ * state based on whether it's the final step.
10
+ *
11
+ * Keyboard: Enter triggers the primary action when focused within
12
+ * the wizard content (not within text areas or other multi-line inputs).
13
+ */
14
+ export function WizardNav({ showBack, nextLabel, nextDisabled, isSubmitting, onBack, onNext, onCancel, className, }) {
15
+ return (_jsxs("div", { className: cn("flex items-center justify-between border-t border-border px-6 py-4", className), children: [_jsx("div", { className: "flex items-center gap-2", children: onCancel && (_jsx("button", { type: "button", onClick: onCancel, disabled: isSubmitting, className: cn("rounded-md px-3 py-1.5 text-sm", "text-muted-foreground transition-colors", "hover:text-foreground hover:bg-accent-hover", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", "disabled:pointer-events-none disabled:opacity-50"), children: "Cancel" })) }), _jsxs("div", { className: "flex items-center gap-2", children: [showBack && (_jsxs("button", { type: "button", onClick: onBack, disabled: isSubmitting, className: cn("inline-flex items-center gap-1.5 rounded-md border border-input bg-background px-3 py-1.5 text-sm font-medium text-foreground transition-colors", "hover:bg-accent-hover", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", "disabled:pointer-events-none disabled:opacity-50"), children: [_jsx(ArrowLeftIcon, { className: "size-3.5" }), "Back"] })), _jsxs("button", { type: "button", onClick: onNext, disabled: nextDisabled || isSubmitting, className: cn("inline-flex items-center gap-1.5 rounded-md bg-primary px-4 py-1.5 text-sm font-medium text-primary-foreground transition-colors", "hover:bg-primary-hover", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", "disabled:pointer-events-none disabled:opacity-40"), children: [isSubmitting && _jsx(SpinnerIcon, {}), nextLabel, !isSubmitting && _jsx(ArrowRightIcon, { className: "size-3.5" })] })] })] }));
16
+ }
17
+ // ---------------------------------------------------------------------------
18
+ // Icons
19
+ // ---------------------------------------------------------------------------
20
+ function ArrowLeftIcon({ className }) {
21
+ return (_jsx("svg", { className: className, viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: "M10 3 5 8l5 5" }) }));
22
+ }
23
+ function ArrowRightIcon({ className }) {
24
+ return (_jsx("svg", { className: className, viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: "m6 3 5 5-5 5" }) }));
25
+ }
26
+ function SpinnerIcon() {
27
+ return (_jsx("svg", { width: "14", height: "14", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", className: "animate-spin", "aria-hidden": "true", children: _jsx("path", { d: "M8 2a6 6 0 1 0 6 6" }) }));
28
+ }
29
+ //# sourceMappingURL=WizardNav.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WizardNav.js","sourceRoot":"","sources":["../../src/resource-creation/WizardNav.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAsBpC;;;;;;;;;GASG;AACH,MAAM,UAAU,SAAS,CAAC,EACxB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,GACM;IACf,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,oEAAoE,EACpE,SAAS,CACV,aAED,cAAK,SAAS,EAAC,yBAAyB,YACrC,QAAQ,IAAI,CACX,iBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,EAAE,CACX,gCAAgC,EAChC,yCAAyC,EACzC,6CAA6C,EAC7C,yEAAyE,EACzE,kDAAkD,CACnD,uBAGM,CACV,GACG,EAEN,eAAK,SAAS,EAAC,yBAAyB,aACrC,QAAQ,IAAI,CACX,kBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,EAAE,CACX,iJAAiJ,EACjJ,uBAAuB,EACvB,yEAAyE,EACzE,kDAAkD,CACnD,aAED,KAAC,aAAa,IAAC,SAAS,EAAC,UAAU,GAAG,YAE/B,CACV,EAED,kBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,YAAY,IAAI,YAAY,EACtC,SAAS,EAAE,EAAE,CACX,kIAAkI,EAClI,wBAAwB,EACxB,yEAAyE,EACzE,kDAAkD,CACnD,aAEA,YAAY,IAAI,KAAC,WAAW,KAAG,EAC/B,SAAS,EACT,CAAC,YAAY,IAAI,KAAC,cAAc,IAAC,SAAS,EAAC,UAAU,GAAG,IAClD,IACL,IACF,CACP,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,QAAQ;AACR,8EAA8E;AAE9E,SAAS,aAAa,CAAC,EAAE,SAAS,EAAmC;IACnE,OAAO,CACL,cACE,SAAS,EAAE,SAAS,EACpB,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,iBACV,MAAM,YAElB,eAAM,CAAC,EAAC,eAAe,GAAG,GACtB,CACP,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CAAC,EAAE,SAAS,EAAmC;IACpE,OAAO,CACL,cACE,SAAS,EAAE,SAAS,EACpB,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,iBACV,MAAM,YAElB,eAAM,CAAC,EAAC,cAAc,GAAG,GACrB,CACP,CAAC;AACJ,CAAC;AAED,SAAS,WAAW;IAClB,OAAO,CACL,cACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,SAAS,EAAC,cAAc,iBACZ,MAAM,YAElB,eAAM,CAAC,EAAC,oBAAoB,GAAG,GAC3B,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,41 @@
1
+ import type { WizardShellProps } from "./types";
2
+ /**
3
+ * Reusable multi-step wizard layout for resource creation flows.
4
+ *
5
+ * Renders three zones:
6
+ * 1. **Step indicator sidebar** — vertical progress showing all steps
7
+ * 2. **Content area** — the active step's form content (via `children`)
8
+ * 3. **Navigation footer** — Back / Next / Create buttons
9
+ *
10
+ * This component is resource-agnostic. It accepts step definitions for
11
+ * the indicator, delegates content rendering to the consumer, and
12
+ * emits navigation events. The consumer (e.g., `AgentCreationWizard`)
13
+ * manages form state via `useWizardState` and renders the appropriate
14
+ * step component as `children`.
15
+ *
16
+ * Layout:
17
+ * - **Desktop** (>= 640px): Sidebar (200px) + content (flex-1) side by side
18
+ * - **Mobile** (< 640px): Step indicator as compact top bar, content below
19
+ *
20
+ * All visual properties via `--stgm-*` tokens. Zero Console or
21
+ * framework dependencies — works in any React host.
22
+ *
23
+ * @example
24
+ * ```tsx
25
+ * <WizardShell
26
+ * steps={steps}
27
+ * currentStepIndex={wizard.currentStepIndex}
28
+ * submitLabel="Create agent"
29
+ * isSubmitting={isCreating}
30
+ * canGoNext={wizard.canGoNext}
31
+ * canGoBack={wizard.canGoBack}
32
+ * onNext={wizard.goNext}
33
+ * onBack={wizard.goBack}
34
+ * onCancel={handleCancel}
35
+ * >
36
+ * {renderCurrentStep()}
37
+ * </WizardShell>
38
+ * ```
39
+ */
40
+ export declare function WizardShell({ steps, currentStepIndex, children, submitLabel, isSubmitting, canGoNext, canGoBack, onNext, onBack, onGoToStep, onCancel, className, }: WizardShellProps): import("react/jsx-runtime").JSX.Element;
41
+ //# sourceMappingURL=WizardShell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WizardShell.d.ts","sourceRoot":"","sources":["../../src/resource-creation/WizardShell.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAIhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,SAAgB,EAChB,SAAiB,EACjB,MAAM,EACN,MAAM,EACN,UAAU,EACV,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,2CA+ClB"}
@@ -0,0 +1,55 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { cn } from "@stigmer/theme";
4
+ import { StepIndicator } from "./StepIndicator";
5
+ import { WizardNav } from "./WizardNav";
6
+ /**
7
+ * Reusable multi-step wizard layout for resource creation flows.
8
+ *
9
+ * Renders three zones:
10
+ * 1. **Step indicator sidebar** — vertical progress showing all steps
11
+ * 2. **Content area** — the active step's form content (via `children`)
12
+ * 3. **Navigation footer** — Back / Next / Create buttons
13
+ *
14
+ * This component is resource-agnostic. It accepts step definitions for
15
+ * the indicator, delegates content rendering to the consumer, and
16
+ * emits navigation events. The consumer (e.g., `AgentCreationWizard`)
17
+ * manages form state via `useWizardState` and renders the appropriate
18
+ * step component as `children`.
19
+ *
20
+ * Layout:
21
+ * - **Desktop** (>= 640px): Sidebar (200px) + content (flex-1) side by side
22
+ * - **Mobile** (< 640px): Step indicator as compact top bar, content below
23
+ *
24
+ * All visual properties via `--stgm-*` tokens. Zero Console or
25
+ * framework dependencies — works in any React host.
26
+ *
27
+ * @example
28
+ * ```tsx
29
+ * <WizardShell
30
+ * steps={steps}
31
+ * currentStepIndex={wizard.currentStepIndex}
32
+ * submitLabel="Create agent"
33
+ * isSubmitting={isCreating}
34
+ * canGoNext={wizard.canGoNext}
35
+ * canGoBack={wizard.canGoBack}
36
+ * onNext={wizard.goNext}
37
+ * onBack={wizard.goBack}
38
+ * onCancel={handleCancel}
39
+ * >
40
+ * {renderCurrentStep()}
41
+ * </WizardShell>
42
+ * ```
43
+ */
44
+ export function WizardShell({ steps, currentStepIndex, children, submitLabel, isSubmitting, canGoNext = true, canGoBack = false, onNext, onBack, onGoToStep, onCancel, className, }) {
45
+ const isLastStep = currentStepIndex === steps.length - 1;
46
+ const nextLabel = isLastStep ? submitLabel : "Next";
47
+ return (_jsxs("div", { className: cn("flex min-h-0 flex-col overflow-hidden rounded-lg border border-border bg-background", className), children: [_jsxs("div", { className: "flex items-center gap-2 border-b border-border px-4 py-3 sm:hidden", children: [_jsx(MobileProgress, { current: currentStepIndex + 1, total: steps.length }), _jsx("span", { className: "text-sm font-medium text-foreground", children: steps[currentStepIndex]?.label })] }), _jsxs("div", { className: "flex min-h-0 flex-1", children: [_jsx("aside", { className: "hidden w-52 shrink-0 border-r border-border bg-muted-faint px-3 py-6 sm:block", children: _jsx(StepIndicator, { steps: steps, currentStepIndex: currentStepIndex, onStepClick: onGoToStep }) }), _jsx("main", { className: "flex-1 overflow-y-auto px-6 py-6 sm:px-8", children: children })] }), _jsx(WizardNav, { showBack: canGoBack, nextLabel: nextLabel, nextDisabled: !canGoNext, isSubmitting: isSubmitting, onBack: onBack, onNext: onNext, onCancel: onCancel })] }));
48
+ }
49
+ // ---------------------------------------------------------------------------
50
+ // Mobile progress (compact step display)
51
+ // ---------------------------------------------------------------------------
52
+ function MobileProgress({ current, total, }) {
53
+ return (_jsxs("span", { className: "inline-flex items-center justify-center rounded-full bg-primary px-2 py-0.5 text-[10px] font-semibold text-primary-foreground", children: [current, "/", total] }));
54
+ }
55
+ //# sourceMappingURL=WizardShell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WizardShell.js","sourceRoot":"","sources":["../../src/resource-creation/WizardShell.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,UAAU,WAAW,CAAC,EAC1B,KAAK,EACL,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,SAAS,GAAG,IAAI,EAChB,SAAS,GAAG,KAAK,EACjB,MAAM,EACN,MAAM,EACN,UAAU,EACV,QAAQ,EACR,SAAS,GACQ;IACjB,MAAM,UAAU,GAAG,gBAAgB,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IACzD,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC;IAEpD,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,qFAAqF,EACrF,SAAS,CACV,aAGD,eAAK,SAAS,EAAC,oEAAoE,aACjF,KAAC,cAAc,IAAC,OAAO,EAAE,gBAAgB,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,GAAI,EACtE,eAAM,SAAS,EAAC,qCAAqC,YAClD,KAAK,CAAC,gBAAgB,CAAC,EAAE,KAAK,GAC1B,IACH,EAEN,eAAK,SAAS,EAAC,qBAAqB,aAElC,gBAAO,SAAS,EAAC,+EAA+E,YAC9F,KAAC,aAAa,IACZ,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,WAAW,EAAE,UAAU,GACvB,GACI,EAGR,eAAM,SAAS,EAAC,0CAA0C,YACvD,QAAQ,GACJ,IACH,EAGN,KAAC,SAAS,IACR,QAAQ,EAAE,SAAS,EACnB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,CAAC,SAAS,EACxB,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,GAClB,IACE,CACP,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,yCAAyC;AACzC,8EAA8E;AAE9E,SAAS,cAAc,CAAC,EACtB,OAAO,EACP,KAAK,GAIN;IACC,OAAO,CACL,gBAAM,SAAS,EAAC,+HAA+H,aAC5I,OAAO,OAAG,KAAK,IACX,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,21 @@
1
+ export type { EnvVarEntry, KeyValueEntry, WizardStepDef, WizardState, WizardShellProps, } from "./types";
2
+ export type { ResourceTemplate, TemplateCategory } from "./templates/types";
3
+ export { TEMPLATE_CATEGORY_LABELS } from "./templates/types";
4
+ export { AGENT_TEMPLATES } from "./templates/agent-templates";
5
+ export { MCP_SERVER_TEMPLATES } from "./templates/mcp-server-templates";
6
+ export { useWizardState } from "./useWizardState";
7
+ export type { UseWizardStateOptions, UseWizardStateReturn, } from "./useWizardState";
8
+ export { useTemplateFilter } from "./useTemplateFilter";
9
+ export type { UseTemplateFilterOptions, UseTemplateFilterReturn, } from "./useTemplateFilter";
10
+ export { WizardShell } from "./WizardShell";
11
+ export { WizardNav } from "./WizardNav";
12
+ export type { WizardNavProps } from "./WizardNav";
13
+ export { StepIndicator } from "./StepIndicator";
14
+ export type { StepIndicatorProps } from "./StepIndicator";
15
+ export { TemplateCard } from "./TemplateCard";
16
+ export type { TemplateCardProps } from "./TemplateCard";
17
+ export { TemplateGallery } from "./TemplateGallery";
18
+ export type { TemplateGalleryProps } from "./TemplateGallery";
19
+ export { CreationPicker } from "./CreationPicker";
20
+ export type { CreationPickerProps, CreationPath } from "./CreationPicker";
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resource-creation/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAGjB,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAGxE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EACV,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EACV,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,14 @@
1
+ export { TEMPLATE_CATEGORY_LABELS } from "./templates/types";
2
+ export { AGENT_TEMPLATES } from "./templates/agent-templates";
3
+ export { MCP_SERVER_TEMPLATES } from "./templates/mcp-server-templates";
4
+ // Hooks
5
+ export { useWizardState } from "./useWizardState";
6
+ export { useTemplateFilter } from "./useTemplateFilter";
7
+ // Components
8
+ export { WizardShell } from "./WizardShell";
9
+ export { WizardNav } from "./WizardNav";
10
+ export { StepIndicator } from "./StepIndicator";
11
+ export { TemplateCard } from "./TemplateCard";
12
+ export { TemplateGallery } from "./TemplateGallery";
13
+ export { CreationPicker } from "./CreationPicker";
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resource-creation/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,QAAQ;AACR,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAMxD,aAAa;AACb,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { AgentWizardData } from "../../agent/steps/types";
2
+ import type { ResourceTemplate } from "./types";
3
+ /**
4
+ * Built-in agent templates shipped with the SDK.
5
+ *
6
+ * Each template pre-fills the agent creation wizard with a curated
7
+ * set of instructions, name, and description. Users can customize
8
+ * every field after selection — templates are starting points, not
9
+ * constraints.
10
+ *
11
+ * Platform builders can pass their own template arrays to the
12
+ * gallery; these built-in templates are a convenience default.
13
+ */
14
+ export declare const AGENT_TEMPLATES: readonly ResourceTemplate<AgentWizardData>[];
15
+ //# sourceMappingURL=agent-templates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-templates.d.ts","sourceRoot":"","sources":["../../../src/resource-creation/templates/agent-templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,gBAAgB,CAAC,eAAe,CAAC,EAiJvE,CAAC"}
@@ -0,0 +1,148 @@
1
+ /**
2
+ * Built-in agent templates shipped with the SDK.
3
+ *
4
+ * Each template pre-fills the agent creation wizard with a curated
5
+ * set of instructions, name, and description. Users can customize
6
+ * every field after selection — templates are starting points, not
7
+ * constraints.
8
+ *
9
+ * Platform builders can pass their own template arrays to the
10
+ * gallery; these built-in templates are a convenience default.
11
+ */
12
+ export const AGENT_TEMPLATES = [
13
+ {
14
+ id: "customer-support",
15
+ name: "Customer Support Agent",
16
+ description: "A support agent that handles customer inquiries with empathy, follows escalation procedures, and maintains a professional tone.",
17
+ category: "customer-support",
18
+ tags: ["support", "helpdesk", "tickets", "customer"],
19
+ data: {
20
+ name: "Customer Support Agent",
21
+ description: "Handles customer inquiries, troubleshoots issues, and escalates when necessary.",
22
+ instructions: `You are a customer support agent. Your role is to help customers resolve their issues efficiently and empathetically.
23
+
24
+ ## Guidelines
25
+
26
+ - **Tone:** Professional, friendly, and patient. Acknowledge the customer's frustration before troubleshooting.
27
+ - **Scope:** Answer questions about the product, troubleshoot common issues, and guide customers through solutions step by step.
28
+ - **Escalation:** If you cannot resolve the issue within your capabilities, clearly explain what you've tried and escalate to a human agent with a summary of the conversation.
29
+ - **Privacy:** Never ask for or store sensitive information like passwords or payment details. Direct customers to secure channels for sensitive operations.
30
+
31
+ ## Response Format
32
+
33
+ 1. Acknowledge the customer's issue
34
+ 2. Ask clarifying questions if needed
35
+ 3. Provide a step-by-step solution
36
+ 4. Confirm the issue is resolved or escalate`,
37
+ },
38
+ },
39
+ {
40
+ id: "code-review",
41
+ name: "Code Review Agent",
42
+ description: "Reviews pull requests and code changes with a focus on correctness, maintainability, and adherence to coding standards.",
43
+ category: "code-review",
44
+ tags: ["code", "review", "pull-request", "engineering"],
45
+ data: {
46
+ name: "Code Review Agent",
47
+ description: "Reviews code changes for correctness, maintainability, and style consistency.",
48
+ instructions: `You are a code reviewer. Your role is to review code changes and provide constructive, actionable feedback.
49
+
50
+ ## Review Priorities (in order)
51
+
52
+ 1. **Correctness** — Does the code do what it claims? Are there edge cases, off-by-one errors, or logic flaws?
53
+ 2. **Security** — Are there injection vulnerabilities, auth bypasses, or data leaks?
54
+ 3. **Maintainability** — Is the code readable? Would a new team member understand it in under 5 minutes?
55
+ 4. **Performance** — Are there obvious performance issues (N+1 queries, unnecessary allocations, blocking calls)?
56
+ 5. **Style** — Does it follow the project's conventions?
57
+
58
+ ## Feedback Format
59
+
60
+ - Be specific: reference line numbers and variable names.
61
+ - Explain *why* something is a problem, not just *what* to change.
62
+ - Distinguish between blockers (must fix), suggestions (should consider), and nits (optional polish).
63
+ - Acknowledge what the author did well.`,
64
+ },
65
+ },
66
+ {
67
+ id: "data-analysis",
68
+ name: "Data Analysis Agent",
69
+ description: "Analyzes datasets, generates insights, and presents findings with clear explanations and visualizations.",
70
+ category: "data-analysis",
71
+ tags: ["data", "analytics", "insights", "reporting"],
72
+ data: {
73
+ name: "Data Analysis Agent",
74
+ description: "Analyzes data, identifies patterns, and presents actionable insights.",
75
+ instructions: `You are a data analysis agent. Your role is to help users understand their data by identifying patterns, anomalies, and actionable insights.
76
+
77
+ ## Guidelines
78
+
79
+ - **Clarity over complexity:** Explain findings in plain language before diving into technical details. Not every user is a data scientist.
80
+ - **Statistical rigor:** When making claims about trends or correlations, state the confidence level and sample size. Distinguish correlation from causation.
81
+ - **Visualization:** When appropriate, suggest or generate charts and tables that make the data story clear. Choose the right chart type for the data relationship being shown.
82
+ - **Assumptions:** State your assumptions explicitly. If the data is incomplete or ambiguous, say so rather than guessing.
83
+
84
+ ## Response Structure
85
+
86
+ 1. Summary of the key finding (one sentence)
87
+ 2. Supporting evidence with specific numbers
88
+ 3. Recommended next steps or questions to investigate further`,
89
+ },
90
+ },
91
+ {
92
+ id: "content-writer",
93
+ name: "Content Writer Agent",
94
+ description: "Writes and edits content with consistent style, tone, and formatting across different content types.",
95
+ category: "content",
96
+ tags: ["writing", "content", "copywriting", "editing"],
97
+ data: {
98
+ name: "Content Writer Agent",
99
+ description: "Creates and edits written content with consistent style and tone.",
100
+ instructions: `You are a content writing agent. Your role is to produce clear, engaging, and well-structured written content.
101
+
102
+ ## Writing Principles
103
+
104
+ - **Audience-first:** Adapt vocabulary, depth, and tone to the target audience. Technical docs for developers differ from blog posts for general readers.
105
+ - **Structure:** Use headings, short paragraphs, and bullet points for scannability. Front-load the most important information.
106
+ - **Voice:** Active voice by default. Concise sentences. Avoid filler words and unnecessary qualifiers.
107
+ - **Accuracy:** Do not invent facts, statistics, or quotes. If you are uncertain, say so.
108
+
109
+ ## Content Types
110
+
111
+ - Blog posts: informative, engaging, SEO-aware structure
112
+ - Documentation: precise, task-oriented, with code examples where relevant
113
+ - Marketing copy: benefit-focused, clear call-to-action
114
+ - Internal communications: concise, action-oriented
115
+
116
+ ## Editing Mode
117
+
118
+ When editing existing content, preserve the author's voice while improving clarity and flow. Explain your changes.`,
119
+ },
120
+ },
121
+ {
122
+ id: "devops-assistant",
123
+ name: "DevOps Assistant Agent",
124
+ description: "Assists with infrastructure operations, incident response, and deployment workflows.",
125
+ category: "devops",
126
+ tags: ["devops", "infrastructure", "deployment", "incident", "sre"],
127
+ data: {
128
+ name: "DevOps Assistant Agent",
129
+ description: "Assists with infrastructure operations, incident triage, and deployment workflows.",
130
+ instructions: `You are a DevOps assistant agent. Your role is to help engineering teams with infrastructure operations, incident response, and deployment workflows.
131
+
132
+ ## Capabilities
133
+
134
+ - **Incident triage:** Analyze alerts, logs, and metrics to identify the likely root cause. Prioritize by blast radius and customer impact.
135
+ - **Runbook execution:** Follow documented runbooks step by step. If a step fails or produces unexpected output, pause and report rather than improvising.
136
+ - **Deployment support:** Guide users through deployment checklists, validate configurations, and monitor rollout health.
137
+ - **Infrastructure queries:** Answer questions about resource configurations, service dependencies, and architecture topology.
138
+
139
+ ## Safety Rules
140
+
141
+ - **Never execute destructive operations** (delete, force-push, scale-to-zero) without explicit human confirmation.
142
+ - **Always verify the target environment** (staging vs production) before any operation.
143
+ - **Prefer read-only operations** when gathering information. Only suggest write operations when the user requests a change.
144
+ - **Escalate uncertainty:** If you are not confident in a diagnosis or action, say so and recommend involving a human operator.`,
145
+ },
146
+ },
147
+ ];
148
+ //# sourceMappingURL=agent-templates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-templates.js","sourceRoot":"","sources":["../../../src/resource-creation/templates/agent-templates.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,eAAe,GAAiD;IAC3E;QACE,EAAE,EAAE,kBAAkB;QACtB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EACT,iIAAiI;QACnI,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC;QACpD,IAAI,EAAE;YACJ,IAAI,EAAE,wBAAwB;YAC9B,WAAW,EACT,iFAAiF;YACnF,YAAY,EAAE;;;;;;;;;;;;;;6CAcyB;SACxC;KACF;IACD;QACE,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,mBAAmB;QACzB,WAAW,EACT,yHAAyH;QAC3H,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,CAAC;QACvD,IAAI,EAAE;YACJ,IAAI,EAAE,mBAAmB;YACzB,WAAW,EACT,+EAA+E;YACjF,YAAY,EAAE;;;;;;;;;;;;;;;wCAeoB;SACnC;KACF;IACD;QACE,EAAE,EAAE,eAAe;QACnB,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EACT,0GAA0G;QAC5G,QAAQ,EAAE,eAAe;QACzB,IAAI,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,CAAC;QACpD,IAAI,EAAE;YACJ,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EACT,uEAAuE;YACzE,YAAY,EAAE;;;;;;;;;;;;;8DAa0C;SACzD;KACF;IACD;QACE,EAAE,EAAE,gBAAgB;QACpB,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EACT,sGAAsG;QACxG,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,CAAC;QACtD,IAAI,EAAE;YACJ,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EACT,mEAAmE;YACrE,YAAY,EAAE;;;;;;;;;;;;;;;;;;mHAkB+F;SAC9G;KACF;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EACT,sFAAsF;QACxF,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,CAAC,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,CAAC;QACnE,IAAI,EAAE;YACJ,IAAI,EAAE,wBAAwB;YAC9B,WAAW,EACT,oFAAoF;YACtF,YAAY,EAAE;;;;;;;;;;;;;;gIAc4G;SAC3H;KACF;CACF,CAAC"}
@@ -0,0 +1,5 @@
1
+ export type { ResourceTemplate, TemplateCategory } from "./types";
2
+ export { TEMPLATE_CATEGORY_LABELS } from "./types";
3
+ export { AGENT_TEMPLATES } from "./agent-templates";
4
+ export { MCP_SERVER_TEMPLATES } from "./mcp-server-templates";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resource-creation/templates/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { TEMPLATE_CATEGORY_LABELS } from "./types";
2
+ // Static template data
3
+ export { AGENT_TEMPLATES } from "./agent-templates";
4
+ export { MCP_SERVER_TEMPLATES } from "./mcp-server-templates";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resource-creation/templates/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEnD,uBAAuB;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { McpServerWizardData } from "../../mcp-server/steps/types";
2
+ import type { ResourceTemplate } from "./types";
3
+ /**
4
+ * Built-in MCP server templates shipped with the SDK.
5
+ *
6
+ * Each template pre-fills the MCP server creation wizard with a
7
+ * curated transport configuration, environment variable declarations,
8
+ * and descriptive metadata. Users can customize every field after
9
+ * selection.
10
+ *
11
+ * Platform builders can pass their own template arrays to the
12
+ * gallery; these built-in templates are a convenience default.
13
+ */
14
+ export declare const MCP_SERVER_TEMPLATES: readonly ResourceTemplate<McpServerWizardData>[];
15
+ //# sourceMappingURL=mcp-server-templates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp-server-templates.d.ts","sourceRoot":"","sources":["../../../src/resource-creation/templates/mcp-server-templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,gBAAgB,CAAC,mBAAmB,CAAC,EA2F9E,CAAC"}
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Built-in MCP server templates shipped with the SDK.
3
+ *
4
+ * Each template pre-fills the MCP server creation wizard with a
5
+ * curated transport configuration, environment variable declarations,
6
+ * and descriptive metadata. Users can customize every field after
7
+ * selection.
8
+ *
9
+ * Platform builders can pass their own template arrays to the
10
+ * gallery; these built-in templates are a convenience default.
11
+ */
12
+ export const MCP_SERVER_TEMPLATES = [
13
+ {
14
+ id: "github",
15
+ name: "GitHub",
16
+ description: "Connect to the GitHub API for repository management, issue tracking, pull requests, and code search.",
17
+ category: "integration",
18
+ tags: ["github", "git", "repository", "api", "code"],
19
+ data: {
20
+ name: "GitHub",
21
+ description: "GitHub API integration for repository management, issues, pull requests, and code search.",
22
+ transportType: "http",
23
+ httpUrl: "https://api.githubcopilot.com",
24
+ env: [
25
+ {
26
+ key: "GITHUB_TOKEN",
27
+ description: "GitHub personal access token with appropriate scopes.",
28
+ isSecret: true,
29
+ optional: false,
30
+ },
31
+ ],
32
+ },
33
+ },
34
+ {
35
+ id: "slack",
36
+ name: "Slack",
37
+ description: "Connect to the Slack API for sending messages, managing channels, and reading conversation history.",
38
+ category: "integration",
39
+ tags: ["slack", "messaging", "chat", "communication"],
40
+ data: {
41
+ name: "Slack",
42
+ description: "Slack API integration for messaging, channel management, and conversation history.",
43
+ transportType: "http",
44
+ httpUrl: "https://slack.com/api/mcp",
45
+ env: [
46
+ {
47
+ key: "SLACK_BOT_TOKEN",
48
+ description: "Slack Bot User OAuth token (xoxb-...).",
49
+ isSecret: true,
50
+ optional: false,
51
+ },
52
+ ],
53
+ },
54
+ },
55
+ {
56
+ id: "postgresql",
57
+ name: "PostgreSQL",
58
+ description: "Connect to a PostgreSQL database for querying, schema inspection, and data management.",
59
+ category: "integration",
60
+ tags: ["postgres", "postgresql", "database", "sql", "data"],
61
+ data: {
62
+ name: "PostgreSQL",
63
+ description: "PostgreSQL database connection for querying, schema inspection, and data management.",
64
+ transportType: "stdio",
65
+ stdioCommand: "npx",
66
+ stdioArgs: "-y @modelcontextprotocol/server-postgres",
67
+ env: [
68
+ {
69
+ key: "DATABASE_URL",
70
+ description: "PostgreSQL connection string (e.g. postgresql://user:pass@host:5432/db).",
71
+ isSecret: true,
72
+ optional: false,
73
+ },
74
+ ],
75
+ },
76
+ },
77
+ {
78
+ id: "filesystem",
79
+ name: "Filesystem",
80
+ description: "Provide read and write access to a local directory for file management and content operations.",
81
+ category: "general",
82
+ tags: ["filesystem", "files", "local", "directory"],
83
+ data: {
84
+ name: "Filesystem",
85
+ description: "Local filesystem access for reading, writing, and managing files within a directory.",
86
+ transportType: "stdio",
87
+ stdioCommand: "npx",
88
+ stdioArgs: "-y @modelcontextprotocol/server-filesystem /path/to/directory",
89
+ },
90
+ },
91
+ ];
92
+ //# sourceMappingURL=mcp-server-templates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp-server-templates.js","sourceRoot":"","sources":["../../../src/resource-creation/templates/mcp-server-templates.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAC/B;IACE;QACE,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,QAAQ;QACd,WAAW,EACT,sGAAsG;QACxG,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,CAAC;QACpD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,2FAA2F;YAC7F,aAAa,EAAE,MAAM;YACrB,OAAO,EAAE,+BAA+B;YACxC,GAAG,EAAE;gBACH;oBACE,GAAG,EAAE,cAAc;oBACnB,WAAW,EACT,uDAAuD;oBACzD,QAAQ,EAAE,IAAI;oBACd,QAAQ,EAAE,KAAK;iBAChB;aACF;SACF;KACF;IACD;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,OAAO;QACb,WAAW,EACT,qGAAqG;QACvG,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,eAAe,CAAC;QACrD,IAAI,EAAE;YACJ,IAAI,EAAE,OAAO;YACb,WAAW,EACT,oFAAoF;YACtF,aAAa,EAAE,MAAM;YACrB,OAAO,EAAE,2BAA2B;YACpC,GAAG,EAAE;gBACH;oBACE,GAAG,EAAE,iBAAiB;oBACtB,WAAW,EAAE,wCAAwC;oBACrD,QAAQ,EAAE,IAAI;oBACd,QAAQ,EAAE,KAAK;iBAChB;aACF;SACF;KACF;IACD;QACE,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,YAAY;QAClB,WAAW,EACT,wFAAwF;QAC1F,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC;QAC3D,IAAI,EAAE;YACJ,IAAI,EAAE,YAAY;YAClB,WAAW,EACT,sFAAsF;YACxF,aAAa,EAAE,OAAO;YACtB,YAAY,EAAE,KAAK;YACnB,SAAS,EAAE,0CAA0C;YACrD,GAAG,EAAE;gBACH;oBACE,GAAG,EAAE,cAAc;oBACnB,WAAW,EACT,0EAA0E;oBAC5E,QAAQ,EAAE,IAAI;oBACd,QAAQ,EAAE,KAAK;iBAChB;aACF;SACF;KACF;IACD;QACE,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,YAAY;QAClB,WAAW,EACT,gGAAgG;QAClG,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,CAAC,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC;QACnD,IAAI,EAAE;YACJ,IAAI,EAAE,YAAY;YAClB,WAAW,EACT,sFAAsF;YACxF,aAAa,EAAE,OAAO;YACtB,YAAY,EAAE,KAAK;YACnB,SAAS,EACP,+DAA+D;SAClE;KACF;CACF,CAAC"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Template categories for grouping resource templates in the gallery.
3
+ *
4
+ * Each category maps to a common use-case domain. The gallery renders
5
+ * these as filterable tabs. Platform builders can use the same
6
+ * categories or extend with custom values if they define their own
7
+ * template arrays.
8
+ */
9
+ export type TemplateCategory = "customer-support" | "code-review" | "data-analysis" | "devops" | "content" | "integration" | "general";
10
+ /**
11
+ * Human-readable labels for template categories.
12
+ *
13
+ * Used by the gallery UI for tab labels and screen readers.
14
+ * Exported so platform builders can reuse or extend them.
15
+ */
16
+ export declare const TEMPLATE_CATEGORY_LABELS: Record<TemplateCategory, string>;
17
+ /**
18
+ * A pre-built resource configuration that seeds a creation wizard.
19
+ *
20
+ * Generic over `TData` — the wizard's accumulated form state type.
21
+ * For agents, `TData` is `AgentWizardData`; for MCP servers,
22
+ * `TData` is `McpServerWizardData`.
23
+ *
24
+ * `data` is `Partial<TData>`: only the fields the template wants to
25
+ * pre-fill. The wizard merges this with its default empty state via
26
+ * `{ ...createInitialWizardData(), ...template.data }`.
27
+ *
28
+ * @typeParam TData - The wizard's accumulated form data shape.
29
+ */
30
+ export interface ResourceTemplate<TData> {
31
+ /** Stable template identifier (unique within a resource kind). */
32
+ readonly id: string;
33
+ /** Human-readable template name displayed in the gallery card. */
34
+ readonly name: string;
35
+ /** Short description of what this template sets up. */
36
+ readonly description: string;
37
+ /** Category for gallery filtering. */
38
+ readonly category: TemplateCategory;
39
+ /** Searchable tags for the gallery's text search. */
40
+ readonly tags?: readonly string[];
41
+ /**
42
+ * Partial wizard data to merge with defaults when the user
43
+ * selects this template. Only fields that the template wants
44
+ * to pre-fill are included.
45
+ */
46
+ readonly data: Partial<TData>;
47
+ }
48
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/resource-creation/templates/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GACxB,kBAAkB,GAClB,aAAa,GACb,eAAe,GACf,QAAQ,GACR,SAAS,GACT,aAAa,GACb,SAAS,CAAC;AAEd;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAQrE,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,gBAAgB,CAAC,KAAK;IACrC,kEAAkE;IAClE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,kEAAkE;IAClE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,uDAAuD;IACvD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,sCAAsC;IACtC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,qDAAqD;IACrD,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CAC/B"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Human-readable labels for template categories.
3
+ *
4
+ * Used by the gallery UI for tab labels and screen readers.
5
+ * Exported so platform builders can reuse or extend them.
6
+ */
7
+ export const TEMPLATE_CATEGORY_LABELS = {
8
+ "customer-support": "Customer Support",
9
+ "code-review": "Code Review",
10
+ "data-analysis": "Data Analysis",
11
+ devops: "DevOps",
12
+ content: "Content",
13
+ integration: "Integration",
14
+ general: "General",
15
+ };
16
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/resource-creation/templates/types.ts"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAqC;IACxE,kBAAkB,EAAE,kBAAkB;IACtC,aAAa,EAAE,aAAa;IAC5B,eAAe,EAAE,eAAe;IAChC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,SAAS;CACnB,CAAC"}