@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,160 @@
1
+ import type { AgentWizardData } from "../../agent/steps/types";
2
+ import type { ResourceTemplate } from "./types";
3
+
4
+ /**
5
+ * Built-in agent templates shipped with the SDK.
6
+ *
7
+ * Each template pre-fills the agent creation wizard with a curated
8
+ * set of instructions, name, and description. Users can customize
9
+ * every field after selection — templates are starting points, not
10
+ * constraints.
11
+ *
12
+ * Platform builders can pass their own template arrays to the
13
+ * gallery; these built-in templates are a convenience default.
14
+ */
15
+ export const AGENT_TEMPLATES: readonly ResourceTemplate<AgentWizardData>[] = [
16
+ {
17
+ id: "customer-support",
18
+ name: "Customer Support Agent",
19
+ description:
20
+ "A support agent that handles customer inquiries with empathy, follows escalation procedures, and maintains a professional tone.",
21
+ category: "customer-support",
22
+ tags: ["support", "helpdesk", "tickets", "customer"],
23
+ data: {
24
+ name: "Customer Support Agent",
25
+ description:
26
+ "Handles customer inquiries, troubleshoots issues, and escalates when necessary.",
27
+ instructions: `You are a customer support agent. Your role is to help customers resolve their issues efficiently and empathetically.
28
+
29
+ ## Guidelines
30
+
31
+ - **Tone:** Professional, friendly, and patient. Acknowledge the customer's frustration before troubleshooting.
32
+ - **Scope:** Answer questions about the product, troubleshoot common issues, and guide customers through solutions step by step.
33
+ - **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.
34
+ - **Privacy:** Never ask for or store sensitive information like passwords or payment details. Direct customers to secure channels for sensitive operations.
35
+
36
+ ## Response Format
37
+
38
+ 1. Acknowledge the customer's issue
39
+ 2. Ask clarifying questions if needed
40
+ 3. Provide a step-by-step solution
41
+ 4. Confirm the issue is resolved or escalate`,
42
+ },
43
+ },
44
+ {
45
+ id: "code-review",
46
+ name: "Code Review Agent",
47
+ description:
48
+ "Reviews pull requests and code changes with a focus on correctness, maintainability, and adherence to coding standards.",
49
+ category: "code-review",
50
+ tags: ["code", "review", "pull-request", "engineering"],
51
+ data: {
52
+ name: "Code Review Agent",
53
+ description:
54
+ "Reviews code changes for correctness, maintainability, and style consistency.",
55
+ instructions: `You are a code reviewer. Your role is to review code changes and provide constructive, actionable feedback.
56
+
57
+ ## Review Priorities (in order)
58
+
59
+ 1. **Correctness** — Does the code do what it claims? Are there edge cases, off-by-one errors, or logic flaws?
60
+ 2. **Security** — Are there injection vulnerabilities, auth bypasses, or data leaks?
61
+ 3. **Maintainability** — Is the code readable? Would a new team member understand it in under 5 minutes?
62
+ 4. **Performance** — Are there obvious performance issues (N+1 queries, unnecessary allocations, blocking calls)?
63
+ 5. **Style** — Does it follow the project's conventions?
64
+
65
+ ## Feedback Format
66
+
67
+ - Be specific: reference line numbers and variable names.
68
+ - Explain *why* something is a problem, not just *what* to change.
69
+ - Distinguish between blockers (must fix), suggestions (should consider), and nits (optional polish).
70
+ - Acknowledge what the author did well.`,
71
+ },
72
+ },
73
+ {
74
+ id: "data-analysis",
75
+ name: "Data Analysis Agent",
76
+ description:
77
+ "Analyzes datasets, generates insights, and presents findings with clear explanations and visualizations.",
78
+ category: "data-analysis",
79
+ tags: ["data", "analytics", "insights", "reporting"],
80
+ data: {
81
+ name: "Data Analysis Agent",
82
+ description:
83
+ "Analyzes data, identifies patterns, and presents actionable insights.",
84
+ instructions: `You are a data analysis agent. Your role is to help users understand their data by identifying patterns, anomalies, and actionable insights.
85
+
86
+ ## Guidelines
87
+
88
+ - **Clarity over complexity:** Explain findings in plain language before diving into technical details. Not every user is a data scientist.
89
+ - **Statistical rigor:** When making claims about trends or correlations, state the confidence level and sample size. Distinguish correlation from causation.
90
+ - **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.
91
+ - **Assumptions:** State your assumptions explicitly. If the data is incomplete or ambiguous, say so rather than guessing.
92
+
93
+ ## Response Structure
94
+
95
+ 1. Summary of the key finding (one sentence)
96
+ 2. Supporting evidence with specific numbers
97
+ 3. Recommended next steps or questions to investigate further`,
98
+ },
99
+ },
100
+ {
101
+ id: "content-writer",
102
+ name: "Content Writer Agent",
103
+ description:
104
+ "Writes and edits content with consistent style, tone, and formatting across different content types.",
105
+ category: "content",
106
+ tags: ["writing", "content", "copywriting", "editing"],
107
+ data: {
108
+ name: "Content Writer Agent",
109
+ description:
110
+ "Creates and edits written content with consistent style and tone.",
111
+ instructions: `You are a content writing agent. Your role is to produce clear, engaging, and well-structured written content.
112
+
113
+ ## Writing Principles
114
+
115
+ - **Audience-first:** Adapt vocabulary, depth, and tone to the target audience. Technical docs for developers differ from blog posts for general readers.
116
+ - **Structure:** Use headings, short paragraphs, and bullet points for scannability. Front-load the most important information.
117
+ - **Voice:** Active voice by default. Concise sentences. Avoid filler words and unnecessary qualifiers.
118
+ - **Accuracy:** Do not invent facts, statistics, or quotes. If you are uncertain, say so.
119
+
120
+ ## Content Types
121
+
122
+ - Blog posts: informative, engaging, SEO-aware structure
123
+ - Documentation: precise, task-oriented, with code examples where relevant
124
+ - Marketing copy: benefit-focused, clear call-to-action
125
+ - Internal communications: concise, action-oriented
126
+
127
+ ## Editing Mode
128
+
129
+ When editing existing content, preserve the author's voice while improving clarity and flow. Explain your changes.`,
130
+ },
131
+ },
132
+ {
133
+ id: "devops-assistant",
134
+ name: "DevOps Assistant Agent",
135
+ description:
136
+ "Assists with infrastructure operations, incident response, and deployment workflows.",
137
+ category: "devops",
138
+ tags: ["devops", "infrastructure", "deployment", "incident", "sre"],
139
+ data: {
140
+ name: "DevOps Assistant Agent",
141
+ description:
142
+ "Assists with infrastructure operations, incident triage, and deployment workflows.",
143
+ instructions: `You are a DevOps assistant agent. Your role is to help engineering teams with infrastructure operations, incident response, and deployment workflows.
144
+
145
+ ## Capabilities
146
+
147
+ - **Incident triage:** Analyze alerts, logs, and metrics to identify the likely root cause. Prioritize by blast radius and customer impact.
148
+ - **Runbook execution:** Follow documented runbooks step by step. If a step fails or produces unexpected output, pause and report rather than improvising.
149
+ - **Deployment support:** Guide users through deployment checklists, validate configurations, and monitor rollout health.
150
+ - **Infrastructure queries:** Answer questions about resource configurations, service dependencies, and architecture topology.
151
+
152
+ ## Safety Rules
153
+
154
+ - **Never execute destructive operations** (delete, force-push, scale-to-zero) without explicit human confirmation.
155
+ - **Always verify the target environment** (staging vs production) before any operation.
156
+ - **Prefer read-only operations** when gathering information. Only suggest write operations when the user requests a change.
157
+ - **Escalate uncertainty:** If you are not confident in a diagnosis or action, say so and recommend involving a human operator.`,
158
+ },
159
+ },
160
+ ];
@@ -0,0 +1,7 @@
1
+ // Types
2
+ export type { ResourceTemplate, TemplateCategory } from "./types";
3
+ export { TEMPLATE_CATEGORY_LABELS } from "./types";
4
+
5
+ // Static template data
6
+ export { AGENT_TEMPLATES } from "./agent-templates";
7
+ export { MCP_SERVER_TEMPLATES } from "./mcp-server-templates";
@@ -0,0 +1,106 @@
1
+ import type { McpServerWizardData } from "../../mcp-server/steps/types";
2
+ import type { ResourceTemplate } from "./types";
3
+
4
+ /**
5
+ * Built-in MCP server templates shipped with the SDK.
6
+ *
7
+ * Each template pre-fills the MCP server creation wizard with a
8
+ * curated transport configuration, environment variable declarations,
9
+ * and descriptive metadata. Users can customize every field after
10
+ * selection.
11
+ *
12
+ * Platform builders can pass their own template arrays to the
13
+ * gallery; these built-in templates are a convenience default.
14
+ */
15
+ export const MCP_SERVER_TEMPLATES: readonly ResourceTemplate<McpServerWizardData>[] =
16
+ [
17
+ {
18
+ id: "github",
19
+ name: "GitHub",
20
+ description:
21
+ "Connect to the GitHub API for repository management, issue tracking, pull requests, and code search.",
22
+ category: "integration",
23
+ tags: ["github", "git", "repository", "api", "code"],
24
+ data: {
25
+ name: "GitHub",
26
+ description:
27
+ "GitHub API integration for repository management, issues, pull requests, and code search.",
28
+ transportType: "http",
29
+ httpUrl: "https://api.githubcopilot.com",
30
+ env: [
31
+ {
32
+ key: "GITHUB_TOKEN",
33
+ description:
34
+ "GitHub personal access token with appropriate scopes.",
35
+ isSecret: true,
36
+ optional: false,
37
+ },
38
+ ],
39
+ },
40
+ },
41
+ {
42
+ id: "slack",
43
+ name: "Slack",
44
+ description:
45
+ "Connect to the Slack API for sending messages, managing channels, and reading conversation history.",
46
+ category: "integration",
47
+ tags: ["slack", "messaging", "chat", "communication"],
48
+ data: {
49
+ name: "Slack",
50
+ description:
51
+ "Slack API integration for messaging, channel management, and conversation history.",
52
+ transportType: "http",
53
+ httpUrl: "https://slack.com/api/mcp",
54
+ env: [
55
+ {
56
+ key: "SLACK_BOT_TOKEN",
57
+ description: "Slack Bot User OAuth token (xoxb-...).",
58
+ isSecret: true,
59
+ optional: false,
60
+ },
61
+ ],
62
+ },
63
+ },
64
+ {
65
+ id: "postgresql",
66
+ name: "PostgreSQL",
67
+ description:
68
+ "Connect to a PostgreSQL database for querying, schema inspection, and data management.",
69
+ category: "integration",
70
+ tags: ["postgres", "postgresql", "database", "sql", "data"],
71
+ data: {
72
+ name: "PostgreSQL",
73
+ description:
74
+ "PostgreSQL database connection for querying, schema inspection, and data management.",
75
+ transportType: "stdio",
76
+ stdioCommand: "npx",
77
+ stdioArgs: "-y @modelcontextprotocol/server-postgres",
78
+ env: [
79
+ {
80
+ key: "DATABASE_URL",
81
+ description:
82
+ "PostgreSQL connection string (e.g. postgresql://user:pass@host:5432/db).",
83
+ isSecret: true,
84
+ optional: false,
85
+ },
86
+ ],
87
+ },
88
+ },
89
+ {
90
+ id: "filesystem",
91
+ name: "Filesystem",
92
+ description:
93
+ "Provide read and write access to a local directory for file management and content operations.",
94
+ category: "general",
95
+ tags: ["filesystem", "files", "local", "directory"],
96
+ data: {
97
+ name: "Filesystem",
98
+ description:
99
+ "Local filesystem access for reading, writing, and managing files within a directory.",
100
+ transportType: "stdio",
101
+ stdioCommand: "npx",
102
+ stdioArgs:
103
+ "-y @modelcontextprotocol/server-filesystem /path/to/directory",
104
+ },
105
+ },
106
+ ];
@@ -0,0 +1,64 @@
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 =
10
+ | "customer-support"
11
+ | "code-review"
12
+ | "data-analysis"
13
+ | "devops"
14
+ | "content"
15
+ | "integration"
16
+ | "general";
17
+
18
+ /**
19
+ * Human-readable labels for template categories.
20
+ *
21
+ * Used by the gallery UI for tab labels and screen readers.
22
+ * Exported so platform builders can reuse or extend them.
23
+ */
24
+ export const TEMPLATE_CATEGORY_LABELS: Record<TemplateCategory, string> = {
25
+ "customer-support": "Customer Support",
26
+ "code-review": "Code Review",
27
+ "data-analysis": "Data Analysis",
28
+ devops: "DevOps",
29
+ content: "Content",
30
+ integration: "Integration",
31
+ general: "General",
32
+ };
33
+
34
+ /**
35
+ * A pre-built resource configuration that seeds a creation wizard.
36
+ *
37
+ * Generic over `TData` — the wizard's accumulated form state type.
38
+ * For agents, `TData` is `AgentWizardData`; for MCP servers,
39
+ * `TData` is `McpServerWizardData`.
40
+ *
41
+ * `data` is `Partial<TData>`: only the fields the template wants to
42
+ * pre-fill. The wizard merges this with its default empty state via
43
+ * `{ ...createInitialWizardData(), ...template.data }`.
44
+ *
45
+ * @typeParam TData - The wizard's accumulated form data shape.
46
+ */
47
+ export interface ResourceTemplate<TData> {
48
+ /** Stable template identifier (unique within a resource kind). */
49
+ readonly id: string;
50
+ /** Human-readable template name displayed in the gallery card. */
51
+ readonly name: string;
52
+ /** Short description of what this template sets up. */
53
+ readonly description: string;
54
+ /** Category for gallery filtering. */
55
+ readonly category: TemplateCategory;
56
+ /** Searchable tags for the gallery's text search. */
57
+ readonly tags?: readonly string[];
58
+ /**
59
+ * Partial wizard data to merge with defaults when the user
60
+ * selects this template. Only fields that the template wants
61
+ * to pre-fill are included.
62
+ */
63
+ readonly data: Partial<TData>;
64
+ }
@@ -0,0 +1,105 @@
1
+ import type { ReactNode } from "react";
2
+
3
+ // ---------------------------------------------------------------------------
4
+ // Shared form entry types — reusable across all resource creation wizards
5
+ // ---------------------------------------------------------------------------
6
+
7
+ /** A single env var declaration entry in a wizard form. */
8
+ export interface EnvVarEntry {
9
+ /** Environment variable name (e.g. GITHUB_TOKEN). */
10
+ readonly key: string;
11
+ /** Human-readable description. */
12
+ readonly description: string;
13
+ /** Whether this variable holds a secret value. */
14
+ readonly isSecret: boolean;
15
+ /** Whether the variable is optional. */
16
+ readonly optional: boolean;
17
+ }
18
+
19
+ /** A generic key-value pair entry for wizard forms (e.g. HTTP headers). */
20
+ export interface KeyValueEntry {
21
+ /** The key (e.g. header name). */
22
+ readonly key: string;
23
+ /** The value (e.g. header value). */
24
+ readonly value: string;
25
+ }
26
+
27
+ // ---------------------------------------------------------------------------
28
+ // Wizard step definition — describes a single step in the wizard
29
+ // ---------------------------------------------------------------------------
30
+
31
+ /**
32
+ * Defines a wizard step's metadata and validation logic.
33
+ *
34
+ * Generic over `TData` — the accumulated form state type that flows
35
+ * through all steps. Each step's `validate` function receives the full
36
+ * accumulated state and returns an error message or `null` if valid.
37
+ *
38
+ * @typeParam TData - Shape of the wizard's accumulated form data.
39
+ */
40
+ export interface WizardStepDef<TData> {
41
+ /** Stable step identifier (used as key and for navigation). */
42
+ readonly id: string;
43
+ /** Human-readable step label displayed in the step indicator. */
44
+ readonly label: string;
45
+ /**
46
+ * Validates the current data before allowing navigation to the next step.
47
+ * Returns a descriptive error string if invalid, or `null` if the step
48
+ * passes validation.
49
+ *
50
+ * When omitted, the step is always considered valid.
51
+ */
52
+ readonly validate?: (data: TData) => string | null;
53
+ }
54
+
55
+ // ---------------------------------------------------------------------------
56
+ // Wizard state — the internal state managed by useWizardState
57
+ // ---------------------------------------------------------------------------
58
+
59
+ /** Internal state shape for the wizard reducer. */
60
+ export interface WizardState<TData> {
61
+ /** Zero-based index of the currently active step. */
62
+ readonly currentStepIndex: number;
63
+ /** Accumulated form data across all steps. */
64
+ readonly data: TData;
65
+ /** Validation error for the current step, or `null` when valid. */
66
+ readonly validationError: string | null;
67
+ }
68
+
69
+ // ---------------------------------------------------------------------------
70
+ // WizardShell props — the reusable wizard layout component
71
+ // ---------------------------------------------------------------------------
72
+
73
+ /**
74
+ * Props for {@link WizardShell} — the resource-agnostic wizard layout.
75
+ *
76
+ * Renders a step indicator, content area, and navigation footer.
77
+ * The content for each step is provided via `children` — the wizard
78
+ * shell does not know about step-specific rendering.
79
+ */
80
+ export interface WizardShellProps {
81
+ /** Step definitions for the progress indicator (only `id` and `label` are used for rendering). */
82
+ readonly steps: readonly { readonly id: string; readonly label: string }[];
83
+ /** Zero-based index of the currently active step. */
84
+ readonly currentStepIndex: number;
85
+ /** Content to render in the main area (the active step's UI). */
86
+ readonly children: ReactNode;
87
+ /** Label for the final step's action button (e.g. "Create agent"). */
88
+ readonly submitLabel: string;
89
+ /** Whether the submit action is currently in progress. */
90
+ readonly isSubmitting?: boolean;
91
+ /** Whether the "Next" / submit button should be disabled. */
92
+ readonly canGoNext?: boolean;
93
+ /** Whether the "Back" button should be shown. */
94
+ readonly canGoBack?: boolean;
95
+ /** Called when the user clicks "Next" or the submit button. */
96
+ readonly onNext: () => void;
97
+ /** Called when the user clicks "Back". */
98
+ readonly onBack: () => void;
99
+ /** Called when a completed step is clicked in the indicator (backward jump). */
100
+ readonly onGoToStep?: (index: number) => void;
101
+ /** Called when the user cancels the wizard entirely. */
102
+ readonly onCancel?: () => void;
103
+ /** Additional CSS classes for the root container. */
104
+ readonly className?: string;
105
+ }
@@ -0,0 +1,117 @@
1
+ "use client";
2
+
3
+ import { useCallback, useMemo, useState } from "react";
4
+ import type { ResourceTemplate, TemplateCategory } from "./templates/types";
5
+
6
+ // ---------------------------------------------------------------------------
7
+ // Public API
8
+ // ---------------------------------------------------------------------------
9
+
10
+ /** Options for {@link useTemplateFilter}. */
11
+ export interface UseTemplateFilterOptions<TData> {
12
+ /** The full set of templates to filter. */
13
+ readonly templates: readonly ResourceTemplate<TData>[];
14
+ }
15
+
16
+ /** Return value of {@link useTemplateFilter}. */
17
+ export interface UseTemplateFilterReturn<TData> {
18
+ /** Templates matching the current search query and active category. */
19
+ readonly filtered: readonly ResourceTemplate<TData>[];
20
+ /** Current search query string. */
21
+ readonly query: string;
22
+ /** Update the search query. */
23
+ readonly setQuery: (query: string) => void;
24
+ /** Currently active category filter, or `null` for "All". */
25
+ readonly activeCategory: TemplateCategory | null;
26
+ /** Set the active category filter. Pass `null` to show all. */
27
+ readonly setActiveCategory: (category: TemplateCategory | null) => void;
28
+ /** Deduplicated, sorted list of categories present in the template set. */
29
+ readonly availableCategories: readonly TemplateCategory[];
30
+ }
31
+
32
+ // ---------------------------------------------------------------------------
33
+ // Hook
34
+ // ---------------------------------------------------------------------------
35
+
36
+ /**
37
+ * Headless hook for filtering and searching a set of resource templates.
38
+ *
39
+ * Provides category tab state, text search across name/description/tags,
40
+ * and the filtered result set. Fully memoized — only recalculates when
41
+ * inputs change.
42
+ *
43
+ * Platform builders can use this hook with their own rendering; the
44
+ * styled `TemplateGallery` component uses it internally.
45
+ *
46
+ * @typeParam TData - The wizard data shape (e.g. `AgentWizardData`).
47
+ *
48
+ * @example
49
+ * ```tsx
50
+ * const { filtered, query, setQuery, activeCategory, setActiveCategory, availableCategories } =
51
+ * useTemplateFilter({ templates: AGENT_TEMPLATES });
52
+ *
53
+ * // Render your own gallery UI using `filtered`
54
+ * ```
55
+ */
56
+ export function useTemplateFilter<TData>(
57
+ options: UseTemplateFilterOptions<TData>,
58
+ ): UseTemplateFilterReturn<TData> {
59
+ const { templates } = options;
60
+
61
+ const [query, setQueryRaw] = useState("");
62
+ const [activeCategory, setActiveCategory] = useState<TemplateCategory | null>(
63
+ null,
64
+ );
65
+
66
+ const setQuery = useCallback((q: string) => {
67
+ setQueryRaw(q);
68
+ }, []);
69
+
70
+ const availableCategories = useMemo(() => {
71
+ const seen = new Set<TemplateCategory>();
72
+ for (const t of templates) {
73
+ seen.add(t.category);
74
+ }
75
+ const sorted = [...seen].sort();
76
+ return sorted;
77
+ }, [templates]);
78
+
79
+ const filtered = useMemo(() => {
80
+ let result: readonly ResourceTemplate<TData>[] = templates;
81
+
82
+ if (activeCategory) {
83
+ result = result.filter((t) => t.category === activeCategory);
84
+ }
85
+
86
+ const trimmed = query.trim().toLowerCase();
87
+ if (trimmed) {
88
+ result = result.filter((t) => {
89
+ const haystack = [t.name, t.description, ...(t.tags ?? [])]
90
+ .join(" ")
91
+ .toLowerCase();
92
+ return haystack.includes(trimmed);
93
+ });
94
+ }
95
+
96
+ return result;
97
+ }, [templates, activeCategory, query]);
98
+
99
+ return useMemo(
100
+ () => ({
101
+ filtered,
102
+ query,
103
+ setQuery,
104
+ activeCategory,
105
+ setActiveCategory,
106
+ availableCategories,
107
+ }),
108
+ [
109
+ filtered,
110
+ query,
111
+ setQuery,
112
+ activeCategory,
113
+ setActiveCategory,
114
+ availableCategories,
115
+ ],
116
+ );
117
+ }