@contractspec/example.agent-console 1.57.0 → 1.58.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 (386) hide show
  1. package/.turbo/turbo-build.log +210 -278
  2. package/.turbo/turbo-prebuild.log +1 -0
  3. package/CHANGELOG.md +16 -0
  4. package/dist/agent/agent.entity.d.ts +35 -40
  5. package/dist/agent/agent.entity.d.ts.map +1 -1
  6. package/dist/agent/agent.entity.js +124 -132
  7. package/dist/agent/agent.enum.d.ts +3 -8
  8. package/dist/agent/agent.enum.d.ts.map +1 -1
  9. package/dist/agent/agent.enum.js +22 -30
  10. package/dist/agent/agent.event.d.ts +105 -111
  11. package/dist/agent/agent.event.d.ts.map +1 -1
  12. package/dist/agent/agent.event.js +107 -200
  13. package/dist/agent/agent.handler.d.ts +74 -77
  14. package/dist/agent/agent.handler.d.ts.map +1 -1
  15. package/dist/agent/agent.handler.js +293 -75
  16. package/dist/agent/agent.operation.d.ts +424 -430
  17. package/dist/agent/agent.operation.d.ts.map +1 -1
  18. package/dist/agent/agent.operation.js +728 -478
  19. package/dist/agent/agent.presentation.d.ts +3 -8
  20. package/dist/agent/agent.presentation.d.ts.map +1 -1
  21. package/dist/agent/agent.presentation.js +275 -84
  22. package/dist/agent/agent.schema.d.ts +371 -376
  23. package/dist/agent/agent.schema.d.ts.map +1 -1
  24. package/dist/agent/agent.schema.js +209 -399
  25. package/dist/agent/agent.test-spec.d.ts +2 -7
  26. package/dist/agent/agent.test-spec.d.ts.map +1 -1
  27. package/dist/agent/agent.test-spec.js +56 -62
  28. package/dist/agent/index.d.ts +11 -8
  29. package/dist/agent/index.d.ts.map +1 -0
  30. package/dist/agent/index.js +1245 -9
  31. package/dist/agent.capability.d.ts +1 -6
  32. package/dist/agent.capability.d.ts.map +1 -1
  33. package/dist/agent.capability.js +17 -20
  34. package/dist/agent.feature.d.ts +7 -6
  35. package/dist/agent.feature.d.ts.map +1 -1
  36. package/dist/agent.feature.js +117 -303
  37. package/dist/browser/agent/agent.entity.js +127 -0
  38. package/dist/browser/agent/agent.enum.js +25 -0
  39. package/dist/browser/agent/agent.event.js +116 -0
  40. package/dist/browser/agent/agent.handler.js +301 -0
  41. package/dist/browser/agent/agent.operation.js +735 -0
  42. package/dist/browser/agent/agent.presentation.js +279 -0
  43. package/dist/browser/agent/agent.schema.js +215 -0
  44. package/dist/browser/agent/agent.test-spec.js +58 -0
  45. package/dist/browser/agent/index.js +1244 -0
  46. package/dist/browser/agent.capability.js +16 -0
  47. package/dist/browser/agent.feature.js +118 -0
  48. package/dist/browser/docs/agent-console.docblock.js +93 -0
  49. package/dist/browser/docs/index.js +93 -0
  50. package/dist/browser/example.js +42 -0
  51. package/dist/browser/handlers/agent.handlers.js +252 -0
  52. package/dist/browser/handlers/index.js +799 -0
  53. package/dist/browser/index.js +5895 -0
  54. package/dist/browser/presentations/index.js +684 -0
  55. package/dist/browser/run/index.js +1350 -0
  56. package/dist/browser/run/run.entity.js +160 -0
  57. package/dist/browser/run/run.enum.js +34 -0
  58. package/dist/browser/run/run.event.js +213 -0
  59. package/dist/browser/run/run.handler.js +254 -0
  60. package/dist/browser/run/run.operation.js +667 -0
  61. package/dist/browser/run/run.presentation.js +220 -0
  62. package/dist/browser/run/run.schema.js +179 -0
  63. package/dist/browser/run/run.test-spec.js +58 -0
  64. package/dist/browser/seeders/index.js +21 -0
  65. package/dist/browser/shared/index.js +334 -0
  66. package/dist/browser/shared/mock-agents.js +82 -0
  67. package/dist/browser/shared/mock-runs.js +108 -0
  68. package/dist/browser/shared/mock-tools.js +146 -0
  69. package/dist/browser/shared/overlay-types.js +0 -0
  70. package/dist/browser/tool/index.js +946 -0
  71. package/dist/browser/tool/tool.entity.js +90 -0
  72. package/dist/browser/tool/tool.enum.js +26 -0
  73. package/dist/browser/tool/tool.event.js +99 -0
  74. package/dist/browser/tool/tool.handler.js +223 -0
  75. package/dist/browser/tool/tool.operation.js +482 -0
  76. package/dist/browser/tool/tool.presentation.js +185 -0
  77. package/dist/browser/tool/tool.schema.js +141 -0
  78. package/dist/browser/tool/tool.test-spec.js +58 -0
  79. package/dist/browser/ui/AgentDashboard.js +1607 -0
  80. package/dist/browser/ui/AgentRunList.js +250 -0
  81. package/dist/browser/ui/AgentToolRegistry.js +212 -0
  82. package/dist/browser/ui/hooks/index.js +271 -0
  83. package/dist/browser/ui/hooks/useAgentList.js +55 -0
  84. package/dist/browser/ui/hooks/useAgentMutations.js +76 -0
  85. package/dist/browser/ui/hooks/useRunList.js +55 -0
  86. package/dist/browser/ui/hooks/useToolList.js +85 -0
  87. package/dist/browser/ui/index.js +2080 -0
  88. package/dist/browser/ui/modals/AgentActionsModal.js +304 -0
  89. package/dist/browser/ui/modals/CreateAgentModal.js +229 -0
  90. package/dist/browser/ui/modals/index.js +532 -0
  91. package/dist/browser/ui/overlays/demo-overlays.js +64 -0
  92. package/dist/browser/ui/overlays/index.js +64 -0
  93. package/dist/browser/ui/renderers/agent-list.markdown.js +55 -0
  94. package/dist/browser/ui/renderers/agent-list.renderer.js +180 -0
  95. package/dist/browser/ui/renderers/dashboard.markdown.js +117 -0
  96. package/dist/browser/ui/renderers/index.js +446 -0
  97. package/dist/browser/ui/renderers/run-list.markdown.js +45 -0
  98. package/dist/browser/ui/renderers/tool-registry.markdown.js +53 -0
  99. package/dist/browser/ui/views/AgentListView.js +165 -0
  100. package/dist/browser/ui/views/RunListView.js +247 -0
  101. package/dist/browser/ui/views/ToolRegistryView.js +209 -0
  102. package/dist/browser/ui/views/index.js +619 -0
  103. package/dist/docs/agent-console.docblock.d.ts +2 -1
  104. package/dist/docs/agent-console.docblock.d.ts.map +1 -0
  105. package/dist/docs/agent-console.docblock.js +45 -64
  106. package/dist/docs/index.d.ts +2 -1
  107. package/dist/docs/index.d.ts.map +1 -0
  108. package/dist/docs/index.js +94 -1
  109. package/dist/example.d.ts +2 -6
  110. package/dist/example.d.ts.map +1 -1
  111. package/dist/example.js +41 -55
  112. package/dist/handlers/agent.handlers.d.ts +121 -120
  113. package/dist/handlers/agent.handlers.d.ts.map +1 -1
  114. package/dist/handlers/agent.handlers.js +235 -245
  115. package/dist/handlers/index.d.ts +8 -5
  116. package/dist/handlers/index.d.ts.map +1 -0
  117. package/dist/handlers/index.js +799 -5
  118. package/dist/index.d.ts +26 -48
  119. package/dist/index.d.ts.map +1 -0
  120. package/dist/index.js +5896 -50
  121. package/dist/node/agent/agent.entity.js +127 -0
  122. package/dist/node/agent/agent.enum.js +25 -0
  123. package/dist/node/agent/agent.event.js +116 -0
  124. package/dist/node/agent/agent.handler.js +301 -0
  125. package/dist/node/agent/agent.operation.js +735 -0
  126. package/dist/node/agent/agent.presentation.js +279 -0
  127. package/dist/node/agent/agent.schema.js +215 -0
  128. package/dist/node/agent/agent.test-spec.js +58 -0
  129. package/dist/node/agent/index.js +1244 -0
  130. package/dist/node/agent.capability.js +16 -0
  131. package/dist/node/agent.feature.js +118 -0
  132. package/dist/node/docs/agent-console.docblock.js +93 -0
  133. package/dist/node/docs/index.js +93 -0
  134. package/dist/node/example.js +42 -0
  135. package/dist/node/handlers/agent.handlers.js +252 -0
  136. package/dist/node/handlers/index.js +799 -0
  137. package/dist/node/index.js +5895 -0
  138. package/dist/node/presentations/index.js +684 -0
  139. package/dist/node/run/index.js +1350 -0
  140. package/dist/node/run/run.entity.js +160 -0
  141. package/dist/node/run/run.enum.js +34 -0
  142. package/dist/node/run/run.event.js +213 -0
  143. package/dist/node/run/run.handler.js +254 -0
  144. package/dist/node/run/run.operation.js +667 -0
  145. package/dist/node/run/run.presentation.js +220 -0
  146. package/dist/node/run/run.schema.js +179 -0
  147. package/dist/node/run/run.test-spec.js +58 -0
  148. package/dist/node/seeders/index.js +21 -0
  149. package/dist/node/shared/index.js +334 -0
  150. package/dist/node/shared/mock-agents.js +82 -0
  151. package/dist/node/shared/mock-runs.js +108 -0
  152. package/dist/node/shared/mock-tools.js +146 -0
  153. package/dist/node/shared/overlay-types.js +0 -0
  154. package/dist/node/tool/index.js +946 -0
  155. package/dist/node/tool/tool.entity.js +90 -0
  156. package/dist/node/tool/tool.enum.js +26 -0
  157. package/dist/node/tool/tool.event.js +99 -0
  158. package/dist/node/tool/tool.handler.js +223 -0
  159. package/dist/node/tool/tool.operation.js +482 -0
  160. package/dist/node/tool/tool.presentation.js +185 -0
  161. package/dist/node/tool/tool.schema.js +141 -0
  162. package/dist/node/tool/tool.test-spec.js +58 -0
  163. package/dist/node/ui/AgentDashboard.js +1607 -0
  164. package/dist/node/ui/AgentRunList.js +250 -0
  165. package/dist/node/ui/AgentToolRegistry.js +212 -0
  166. package/dist/node/ui/hooks/index.js +271 -0
  167. package/dist/node/ui/hooks/useAgentList.js +55 -0
  168. package/dist/node/ui/hooks/useAgentMutations.js +76 -0
  169. package/dist/node/ui/hooks/useRunList.js +55 -0
  170. package/dist/node/ui/hooks/useToolList.js +85 -0
  171. package/dist/node/ui/index.js +2080 -0
  172. package/dist/node/ui/modals/AgentActionsModal.js +304 -0
  173. package/dist/node/ui/modals/CreateAgentModal.js +229 -0
  174. package/dist/node/ui/modals/index.js +532 -0
  175. package/dist/node/ui/overlays/demo-overlays.js +64 -0
  176. package/dist/node/ui/overlays/index.js +64 -0
  177. package/dist/node/ui/renderers/agent-list.markdown.js +55 -0
  178. package/dist/node/ui/renderers/agent-list.renderer.js +180 -0
  179. package/dist/node/ui/renderers/dashboard.markdown.js +117 -0
  180. package/dist/node/ui/renderers/index.js +446 -0
  181. package/dist/node/ui/renderers/run-list.markdown.js +45 -0
  182. package/dist/node/ui/renderers/tool-registry.markdown.js +53 -0
  183. package/dist/node/ui/views/AgentListView.js +165 -0
  184. package/dist/node/ui/views/RunListView.js +247 -0
  185. package/dist/node/ui/views/ToolRegistryView.js +209 -0
  186. package/dist/node/ui/views/index.js +619 -0
  187. package/dist/presentations/index.d.ts +9 -4
  188. package/dist/presentations/index.d.ts.map +1 -0
  189. package/dist/presentations/index.js +684 -4
  190. package/dist/run/index.d.ts +11 -8
  191. package/dist/run/index.d.ts.map +1 -0
  192. package/dist/run/index.js +1351 -9
  193. package/dist/run/run.entity.d.ts +55 -60
  194. package/dist/run/run.entity.d.ts.map +1 -1
  195. package/dist/run/run.entity.js +155 -199
  196. package/dist/run/run.enum.d.ts +4 -9
  197. package/dist/run/run.enum.d.ts.map +1 -1
  198. package/dist/run/run.enum.js +30 -40
  199. package/dist/run/run.event.d.ts +255 -261
  200. package/dist/run/run.event.d.ts.map +1 -1
  201. package/dist/run/run.event.js +198 -418
  202. package/dist/run/run.handler.d.ts +169 -172
  203. package/dist/run/run.handler.d.ts.map +1 -1
  204. package/dist/run/run.handler.js +246 -74
  205. package/dist/run/run.operation.d.ts +658 -664
  206. package/dist/run/run.operation.d.ts.map +1 -1
  207. package/dist/run/run.operation.js +659 -617
  208. package/dist/run/run.presentation.d.ts +2 -7
  209. package/dist/run/run.presentation.d.ts.map +1 -1
  210. package/dist/run/run.presentation.js +217 -61
  211. package/dist/run/run.schema.d.ts +367 -372
  212. package/dist/run/run.schema.d.ts.map +1 -1
  213. package/dist/run/run.schema.js +172 -330
  214. package/dist/run/run.test-spec.d.ts +2 -7
  215. package/dist/run/run.test-spec.d.ts.map +1 -1
  216. package/dist/run/run.test-spec.js +56 -62
  217. package/dist/seeders/index.d.ts +4 -8
  218. package/dist/seeders/index.d.ts.map +1 -1
  219. package/dist/seeders/index.js +19 -17
  220. package/dist/shared/index.d.ts +7 -4
  221. package/dist/shared/index.d.ts.map +1 -0
  222. package/dist/shared/index.js +334 -4
  223. package/dist/shared/mock-agents.d.ts +77 -80
  224. package/dist/shared/mock-agents.d.ts.map +1 -1
  225. package/dist/shared/mock-agents.js +82 -93
  226. package/dist/shared/mock-runs.d.ts +107 -110
  227. package/dist/shared/mock-runs.d.ts.map +1 -1
  228. package/dist/shared/mock-runs.js +108 -117
  229. package/dist/shared/mock-tools.d.ts +217 -220
  230. package/dist/shared/mock-tools.d.ts.map +1 -1
  231. package/dist/shared/mock-tools.js +146 -180
  232. package/dist/shared/overlay-types.d.ts +25 -28
  233. package/dist/shared/overlay-types.d.ts.map +1 -1
  234. package/dist/shared/overlay-types.js +1 -0
  235. package/dist/tool/index.d.ts +11 -8
  236. package/dist/tool/index.d.ts.map +1 -0
  237. package/dist/tool/index.js +947 -9
  238. package/dist/tool/tool.entity.d.ts +23 -28
  239. package/dist/tool/tool.entity.d.ts.map +1 -1
  240. package/dist/tool/tool.entity.js +87 -101
  241. package/dist/tool/tool.enum.d.ts +3 -8
  242. package/dist/tool/tool.enum.d.ts.map +1 -1
  243. package/dist/tool/tool.enum.js +23 -31
  244. package/dist/tool/tool.event.d.ts +84 -90
  245. package/dist/tool/tool.event.d.ts.map +1 -1
  246. package/dist/tool/tool.event.js +92 -151
  247. package/dist/tool/tool.handler.d.ts +266 -269
  248. package/dist/tool/tool.handler.d.ts.map +1 -1
  249. package/dist/tool/tool.handler.js +213 -76
  250. package/dist/tool/tool.operation.d.ts +359 -365
  251. package/dist/tool/tool.operation.d.ts.map +1 -1
  252. package/dist/tool/tool.operation.js +477 -400
  253. package/dist/tool/tool.presentation.d.ts +2 -7
  254. package/dist/tool/tool.presentation.d.ts.map +1 -1
  255. package/dist/tool/tool.presentation.js +182 -61
  256. package/dist/tool/tool.schema.d.ts +196 -201
  257. package/dist/tool/tool.schema.d.ts.map +1 -1
  258. package/dist/tool/tool.schema.js +137 -231
  259. package/dist/tool/tool.test-spec.d.ts +2 -7
  260. package/dist/tool/tool.test-spec.d.ts.map +1 -1
  261. package/dist/tool/tool.test-spec.js +56 -62
  262. package/dist/ui/AgentDashboard.d.ts +1 -6
  263. package/dist/ui/AgentDashboard.d.ts.map +1 -1
  264. package/dist/ui/AgentDashboard.js +1598 -410
  265. package/dist/ui/AgentRunList.d.ts +7 -2
  266. package/dist/ui/AgentRunList.d.ts.map +1 -0
  267. package/dist/ui/AgentRunList.js +249 -3
  268. package/dist/ui/AgentToolRegistry.d.ts +7 -2
  269. package/dist/ui/AgentToolRegistry.d.ts.map +1 -0
  270. package/dist/ui/AgentToolRegistry.js +211 -3
  271. package/dist/ui/hooks/index.d.ts +8 -6
  272. package/dist/ui/hooks/index.d.ts.map +1 -0
  273. package/dist/ui/hooks/index.js +270 -6
  274. package/dist/ui/hooks/useAgentList.d.ts +21 -25
  275. package/dist/ui/hooks/useAgentList.d.ts.map +1 -1
  276. package/dist/ui/hooks/useAgentList.js +52 -62
  277. package/dist/ui/hooks/useAgentMutations.d.ts +22 -25
  278. package/dist/ui/hooks/useAgentMutations.d.ts.map +1 -1
  279. package/dist/ui/hooks/useAgentMutations.js +73 -120
  280. package/dist/ui/hooks/useRunList.d.ts +17 -21
  281. package/dist/ui/hooks/useRunList.d.ts.map +1 -1
  282. package/dist/ui/hooks/useRunList.js +52 -62
  283. package/dist/ui/hooks/useToolList.d.ts +32 -36
  284. package/dist/ui/hooks/useToolList.d.ts.map +1 -1
  285. package/dist/ui/hooks/useToolList.js +82 -92
  286. package/dist/ui/index.d.ts +9 -24
  287. package/dist/ui/index.d.ts.map +1 -0
  288. package/dist/ui/index.js +2081 -24
  289. package/dist/ui/modals/AgentActionsModal.d.ts +11 -24
  290. package/dist/ui/modals/AgentActionsModal.d.ts.map +1 -1
  291. package/dist/ui/modals/AgentActionsModal.js +300 -257
  292. package/dist/ui/modals/CreateAgentModal.d.ts +12 -21
  293. package/dist/ui/modals/CreateAgentModal.d.ts.map +1 -1
  294. package/dist/ui/modals/CreateAgentModal.js +226 -210
  295. package/dist/ui/modals/index.d.ts +3 -3
  296. package/dist/ui/modals/index.d.ts.map +1 -0
  297. package/dist/ui/modals/index.js +532 -3
  298. package/dist/ui/overlays/demo-overlays.d.ts +10 -8
  299. package/dist/ui/overlays/demo-overlays.d.ts.map +1 -1
  300. package/dist/ui/overlays/demo-overlays.js +63 -71
  301. package/dist/ui/overlays/index.d.ts +2 -2
  302. package/dist/ui/overlays/index.d.ts.map +1 -0
  303. package/dist/ui/overlays/index.js +65 -3
  304. package/dist/ui/renderers/agent-list.markdown.d.ts +9 -8
  305. package/dist/ui/renderers/agent-list.markdown.d.ts.map +1 -1
  306. package/dist/ui/renderers/agent-list.markdown.js +55 -50
  307. package/dist/ui/renderers/agent-list.renderer.d.ts +5 -6
  308. package/dist/ui/renderers/agent-list.renderer.d.ts.map +1 -1
  309. package/dist/ui/renderers/agent-list.renderer.js +179 -17
  310. package/dist/ui/renderers/dashboard.markdown.d.ts +9 -8
  311. package/dist/ui/renderers/dashboard.markdown.d.ts.map +1 -1
  312. package/dist/ui/renderers/dashboard.markdown.js +115 -97
  313. package/dist/ui/renderers/index.d.ts +9 -6
  314. package/dist/ui/renderers/index.d.ts.map +1 -0
  315. package/dist/ui/renderers/index.js +446 -6
  316. package/dist/ui/renderers/run-list.markdown.d.ts +9 -8
  317. package/dist/ui/renderers/run-list.markdown.d.ts.map +1 -1
  318. package/dist/ui/renderers/run-list.markdown.js +42 -40
  319. package/dist/ui/renderers/tool-registry.markdown.d.ts +9 -8
  320. package/dist/ui/renderers/tool-registry.markdown.d.ts.map +1 -1
  321. package/dist/ui/renderers/tool-registry.markdown.js +52 -53
  322. package/dist/ui/views/AgentListView.d.ts +1 -6
  323. package/dist/ui/views/AgentListView.d.ts.map +1 -1
  324. package/dist/ui/views/AgentListView.js +161 -88
  325. package/dist/ui/views/RunListView.d.ts +4 -11
  326. package/dist/ui/views/RunListView.d.ts.map +1 -1
  327. package/dist/ui/views/RunListView.js +237 -154
  328. package/dist/ui/views/ToolRegistryView.d.ts +4 -11
  329. package/dist/ui/views/ToolRegistryView.d.ts.map +1 -1
  330. package/dist/ui/views/ToolRegistryView.js +205 -92
  331. package/dist/ui/views/index.d.ts +7 -4
  332. package/dist/ui/views/index.d.ts.map +1 -0
  333. package/dist/ui/views/index.js +619 -4
  334. package/package.json +656 -118
  335. package/tsdown.config.js +1 -2
  336. package/.turbo/turbo-build$colon$bundle.log +0 -285
  337. package/dist/agent/agent.entity.js.map +0 -1
  338. package/dist/agent/agent.enum.js.map +0 -1
  339. package/dist/agent/agent.event.js.map +0 -1
  340. package/dist/agent/agent.handler.js.map +0 -1
  341. package/dist/agent/agent.operation.js.map +0 -1
  342. package/dist/agent/agent.presentation.js.map +0 -1
  343. package/dist/agent/agent.schema.js.map +0 -1
  344. package/dist/agent/agent.test-spec.js.map +0 -1
  345. package/dist/agent.capability.js.map +0 -1
  346. package/dist/agent.feature.js.map +0 -1
  347. package/dist/docs/agent-console.docblock.js.map +0 -1
  348. package/dist/example.js.map +0 -1
  349. package/dist/handlers/agent.handlers.js.map +0 -1
  350. package/dist/run/run.entity.js.map +0 -1
  351. package/dist/run/run.enum.js.map +0 -1
  352. package/dist/run/run.event.js.map +0 -1
  353. package/dist/run/run.handler.js.map +0 -1
  354. package/dist/run/run.operation.js.map +0 -1
  355. package/dist/run/run.presentation.js.map +0 -1
  356. package/dist/run/run.schema.js.map +0 -1
  357. package/dist/run/run.test-spec.js.map +0 -1
  358. package/dist/seeders/index.js.map +0 -1
  359. package/dist/shared/mock-agents.js.map +0 -1
  360. package/dist/shared/mock-runs.js.map +0 -1
  361. package/dist/shared/mock-tools.js.map +0 -1
  362. package/dist/tool/tool.entity.js.map +0 -1
  363. package/dist/tool/tool.enum.js.map +0 -1
  364. package/dist/tool/tool.event.js.map +0 -1
  365. package/dist/tool/tool.handler.js.map +0 -1
  366. package/dist/tool/tool.operation.js.map +0 -1
  367. package/dist/tool/tool.presentation.js.map +0 -1
  368. package/dist/tool/tool.schema.js.map +0 -1
  369. package/dist/tool/tool.test-spec.js.map +0 -1
  370. package/dist/ui/AgentDashboard.js.map +0 -1
  371. package/dist/ui/hooks/useAgentList.js.map +0 -1
  372. package/dist/ui/hooks/useAgentMutations.js.map +0 -1
  373. package/dist/ui/hooks/useRunList.js.map +0 -1
  374. package/dist/ui/hooks/useToolList.js.map +0 -1
  375. package/dist/ui/modals/AgentActionsModal.js.map +0 -1
  376. package/dist/ui/modals/CreateAgentModal.js.map +0 -1
  377. package/dist/ui/overlays/demo-overlays.js.map +0 -1
  378. package/dist/ui/renderers/agent-list.markdown.js.map +0 -1
  379. package/dist/ui/renderers/agent-list.renderer.js.map +0 -1
  380. package/dist/ui/renderers/dashboard.markdown.js.map +0 -1
  381. package/dist/ui/renderers/run-list.markdown.js.map +0 -1
  382. package/dist/ui/renderers/tool-registry.markdown.js.map +0 -1
  383. package/dist/ui/views/AgentListView.js.map +0 -1
  384. package/dist/ui/views/RunListView.js.map +0 -1
  385. package/dist/ui/views/ToolRegistryView.js.map +0 -1
  386. package/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,1244 @@
1
+ // src/agent/agent.entity.ts
2
+ import {
3
+ defineEntity,
4
+ defineEntityEnum,
5
+ field,
6
+ index
7
+ } from "@contractspec/lib.schema";
8
+ var AgentStatusEntityEnum = defineEntityEnum({
9
+ name: "AgentStatus",
10
+ values: ["DRAFT", "ACTIVE", "PAUSED", "ARCHIVED"],
11
+ description: "Lifecycle status of the agent"
12
+ });
13
+ var ModelProviderEntityEnum = defineEntityEnum({
14
+ name: "ModelProvider",
15
+ values: ["OPENAI", "ANTHROPIC", "GOOGLE", "MISTRAL", "CUSTOM"],
16
+ description: "AI model provider"
17
+ });
18
+ var AgentEntity = defineEntity({
19
+ name: "Agent",
20
+ schema: "agent_console",
21
+ description: "Represents an AI agent configuration with assigned tools and parameters.",
22
+ fields: {
23
+ id: field.id(),
24
+ organizationId: field.string({
25
+ description: "Organization that owns this agent"
26
+ }),
27
+ name: field.string({ description: "Agent name (1-100 chars)" }),
28
+ slug: field.string({
29
+ description: "URL-safe identifier (lowercase, numbers, hyphens)"
30
+ }),
31
+ description: field.string({
32
+ isOptional: true,
33
+ description: "Agent description (max 1000 chars)"
34
+ }),
35
+ status: field.enum("AgentStatus", { default: "DRAFT" }),
36
+ modelProvider: field.enum("ModelProvider", { default: "OPENAI" }),
37
+ modelName: field.string({
38
+ description: "Model identifier: 'gpt-4', 'claude-3-opus', etc."
39
+ }),
40
+ modelConfig: field.json({
41
+ isOptional: true,
42
+ description: "Model parameters: temperature, max_tokens, etc."
43
+ }),
44
+ systemPrompt: field.string({ description: "System prompt for the agent" }),
45
+ userPromptTemplate: field.string({
46
+ isOptional: true,
47
+ description: "Template for user prompts"
48
+ }),
49
+ toolIds: field.string({
50
+ isArray: true,
51
+ isOptional: true,
52
+ description: "IDs of assigned tools"
53
+ }),
54
+ toolChoice: field.string({
55
+ default: "auto",
56
+ description: "Tool selection mode: 'auto', 'required', 'none'"
57
+ }),
58
+ maxIterations: field.int({
59
+ default: 10,
60
+ description: "Maximum iterations per run"
61
+ }),
62
+ maxTokensPerRun: field.int({
63
+ isOptional: true,
64
+ description: "Maximum tokens per run"
65
+ }),
66
+ timeoutMs: field.int({
67
+ default: 120000,
68
+ description: "Execution timeout in milliseconds"
69
+ }),
70
+ version: field.string({ default: "1.0.0", description: "Agent version" }),
71
+ tags: field.string({
72
+ isArray: true,
73
+ isOptional: true,
74
+ description: "Tags for categorization"
75
+ }),
76
+ createdAt: field.createdAt(),
77
+ updatedAt: field.updatedAt(),
78
+ createdById: field.string({
79
+ isOptional: true,
80
+ description: "User who created this agent"
81
+ }),
82
+ tools: field.hasMany("Tool", {
83
+ description: "Tools assigned to this agent"
84
+ })
85
+ },
86
+ indexes: [
87
+ index.unique(["organizationId", "slug"]),
88
+ index.on(["organizationId", "status"]),
89
+ index.on(["modelProvider", "modelName"])
90
+ ],
91
+ enums: [AgentStatusEntityEnum, ModelProviderEntityEnum]
92
+ });
93
+ var AgentToolEntity = defineEntity({
94
+ name: "AgentTool",
95
+ schema: "agent_console",
96
+ description: "Links an agent to its assigned tools with configuration.",
97
+ fields: {
98
+ id: field.id(),
99
+ agentId: field.foreignKey({ description: "Agent ID" }),
100
+ toolId: field.foreignKey({ description: "Tool ID" }),
101
+ config: field.json({
102
+ isOptional: true,
103
+ description: "Tool-specific configuration for this agent"
104
+ }),
105
+ order: field.int({
106
+ default: 0,
107
+ description: "Order of tool in agent tool list"
108
+ }),
109
+ isEnabled: field.boolean({
110
+ default: true,
111
+ description: "Whether tool is enabled for this agent"
112
+ }),
113
+ createdAt: field.createdAt(),
114
+ agent: field.belongsTo("Agent", ["agentId"], ["id"]),
115
+ tool: field.belongsTo("Tool", ["toolId"], ["id"])
116
+ },
117
+ indexes: [
118
+ index.unique(["agentId", "toolId"]),
119
+ index.on(["agentId", "order"])
120
+ ]
121
+ });
122
+
123
+ // src/agent/agent.enum.ts
124
+ import { defineEnum } from "@contractspec/lib.schema";
125
+ var AgentStatusEnum = defineEnum("AgentStatus", [
126
+ "DRAFT",
127
+ "ACTIVE",
128
+ "PAUSED",
129
+ "ARCHIVED"
130
+ ]);
131
+ var ModelProviderEnum = defineEnum("ModelProvider", [
132
+ "OPENAI",
133
+ "ANTHROPIC",
134
+ "GOOGLE",
135
+ "MISTRAL",
136
+ "CUSTOM"
137
+ ]);
138
+ var ToolChoiceEnum = defineEnum("ToolChoice", [
139
+ "auto",
140
+ "required",
141
+ "none"
142
+ ]);
143
+
144
+ // src/agent/agent.event.ts
145
+ import { defineEvent, defineSchemaModel } from "@contractspec/lib.contracts";
146
+ import { ScalarTypeEnum } from "@contractspec/lib.schema";
147
+ var OWNERS = ["@agent-console-team"];
148
+ var AgentCreatedPayload = defineSchemaModel({
149
+ name: "AgentCreatedPayload",
150
+ description: "Payload for agent created event",
151
+ fields: {
152
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
153
+ organizationId: {
154
+ type: ScalarTypeEnum.String_unsecure(),
155
+ isOptional: false
156
+ },
157
+ name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
158
+ slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
159
+ modelProvider: {
160
+ type: ScalarTypeEnum.String_unsecure(),
161
+ isOptional: false
162
+ },
163
+ modelName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
164
+ toolCount: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
165
+ createdById: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
166
+ createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
167
+ }
168
+ });
169
+ var AgentCreatedEvent = defineEvent({
170
+ meta: {
171
+ key: "agent-console.agent.created",
172
+ version: "1.0.0",
173
+ description: "A new AI agent was configured.",
174
+ stability: "stable",
175
+ owners: [...OWNERS],
176
+ tags: ["agent", "created"]
177
+ },
178
+ payload: AgentCreatedPayload
179
+ });
180
+ var AgentUpdatedPayload = defineSchemaModel({
181
+ name: "AgentUpdatedPayload",
182
+ description: "Payload for agent updated event",
183
+ fields: {
184
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
185
+ organizationId: {
186
+ type: ScalarTypeEnum.String_unsecure(),
187
+ isOptional: false
188
+ },
189
+ name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
190
+ status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
191
+ updatedFields: {
192
+ type: ScalarTypeEnum.String_unsecure(),
193
+ isArray: true,
194
+ isOptional: false
195
+ },
196
+ updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
197
+ }
198
+ });
199
+ var AgentUpdatedEvent = defineEvent({
200
+ meta: {
201
+ key: "agent-console.agent.updated",
202
+ version: "1.0.0",
203
+ description: "An AI agent configuration was updated.",
204
+ stability: "stable",
205
+ owners: [...OWNERS],
206
+ tags: ["agent", "updated"]
207
+ },
208
+ payload: AgentUpdatedPayload
209
+ });
210
+ var AgentToolAssignedPayload = defineSchemaModel({
211
+ name: "AgentToolAssignedPayload",
212
+ description: "Payload for agent tool assigned event",
213
+ fields: {
214
+ agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
215
+ toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
216
+ agentName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
217
+ toolName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
218
+ assignedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
219
+ }
220
+ });
221
+ var AgentToolAssignedEvent = defineEvent({
222
+ meta: {
223
+ key: "agent-console.agent.toolAssigned",
224
+ version: "1.0.0",
225
+ description: "A tool was assigned to an agent.",
226
+ stability: "stable",
227
+ owners: [...OWNERS],
228
+ tags: ["agent", "tool", "assigned"]
229
+ },
230
+ payload: AgentToolAssignedPayload
231
+ });
232
+ var AgentToolRemovedPayload = defineSchemaModel({
233
+ name: "AgentToolRemovedPayload",
234
+ description: "Payload for agent tool removed event",
235
+ fields: {
236
+ agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
237
+ toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
238
+ agentName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
239
+ toolName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
240
+ removedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
241
+ }
242
+ });
243
+ var AgentToolRemovedEvent = defineEvent({
244
+ meta: {
245
+ key: "agent-console.agent.toolRemoved",
246
+ version: "1.0.0",
247
+ description: "A tool was removed from an agent.",
248
+ stability: "stable",
249
+ owners: [...OWNERS],
250
+ tags: ["agent", "tool", "removed"]
251
+ },
252
+ payload: AgentToolRemovedPayload
253
+ });
254
+
255
+ // src/shared/mock-agents.ts
256
+ var MOCK_AGENTS = [
257
+ {
258
+ id: "agent-1",
259
+ organizationId: "demo-org",
260
+ name: "Customer Support Bot",
261
+ slug: "customer-support-bot",
262
+ description: "Handles tier-1 customer inquiries and routes complex issues.",
263
+ status: "ACTIVE",
264
+ modelProvider: "OPENAI",
265
+ modelName: "gpt-4o-mini",
266
+ modelConfig: { temperature: 0.7 },
267
+ systemPrompt: "You are a helpful customer support assistant.",
268
+ toolChoice: "auto",
269
+ maxIterations: 10,
270
+ timeoutMs: 120000,
271
+ version: "1.0.0",
272
+ tags: ["support", "tier-1"],
273
+ createdAt: new Date("2024-01-15T10:00:00Z"),
274
+ updatedAt: new Date("2024-03-20T14:30:00Z")
275
+ },
276
+ {
277
+ id: "agent-2",
278
+ organizationId: "demo-org",
279
+ name: "Code Review Assistant",
280
+ slug: "code-review-assistant",
281
+ description: "Reviews pull requests and provides actionable feedback.",
282
+ status: "ACTIVE",
283
+ modelProvider: "ANTHROPIC",
284
+ modelName: "claude-sonnet-4-20250514",
285
+ modelConfig: { temperature: 0.3 },
286
+ systemPrompt: "You are a code review expert.",
287
+ toolChoice: "auto",
288
+ maxIterations: 15,
289
+ timeoutMs: 180000,
290
+ version: "2.1.0",
291
+ tags: ["code", "review", "dev"],
292
+ createdAt: new Date("2024-02-10T09:00:00Z"),
293
+ updatedAt: new Date("2024-04-05T11:15:00Z")
294
+ },
295
+ {
296
+ id: "agent-3",
297
+ organizationId: "demo-org",
298
+ name: "Data Analyst",
299
+ slug: "data-analyst",
300
+ description: "Queries databases and generates insights from data.",
301
+ status: "PAUSED",
302
+ modelProvider: "OPENAI",
303
+ modelName: "gpt-4o",
304
+ modelConfig: { temperature: 0.5 },
305
+ systemPrompt: "You are a data analyst expert in SQL and analytics.",
306
+ toolChoice: "required",
307
+ maxIterations: 20,
308
+ timeoutMs: 300000,
309
+ version: "1.2.0",
310
+ tags: ["data", "analytics", "sql"],
311
+ createdAt: new Date("2024-03-01T08:00:00Z"),
312
+ updatedAt: new Date("2024-04-10T16:45:00Z")
313
+ },
314
+ {
315
+ id: "agent-4",
316
+ organizationId: "demo-org",
317
+ name: "Meeting Scheduler",
318
+ slug: "meeting-scheduler",
319
+ description: "Schedules meetings and manages calendar conflicts.",
320
+ status: "DRAFT",
321
+ modelProvider: "GOOGLE",
322
+ modelName: "gemini-2.0-flash",
323
+ modelConfig: { temperature: 0.2 },
324
+ systemPrompt: "You help schedule and organize meetings efficiently.",
325
+ toolChoice: "auto",
326
+ maxIterations: 5,
327
+ timeoutMs: 60000,
328
+ version: "0.1.0",
329
+ tags: ["calendar", "scheduling"],
330
+ createdAt: new Date("2024-04-01T12:00:00Z"),
331
+ updatedAt: new Date("2024-04-01T12:00:00Z")
332
+ }
333
+ ];
334
+
335
+ // src/shared/mock-tools.ts
336
+ var MOCK_TOOLS = [
337
+ {
338
+ id: "tool-1",
339
+ organizationId: "demo-org",
340
+ name: "Web Search",
341
+ slug: "web-search",
342
+ description: "Search the web for real-time information using Brave API.",
343
+ category: "RETRIEVAL",
344
+ status: "ACTIVE",
345
+ parametersSchema: {
346
+ type: "object",
347
+ properties: {
348
+ query: { type: "string", description: "Search query" },
349
+ numResults: { type: "number", default: 10 }
350
+ },
351
+ required: ["query"]
352
+ },
353
+ outputSchema: { type: "array", items: { type: "object" } },
354
+ implementationType: "http",
355
+ implementationConfig: {
356
+ url: "https://api.brave.com/search",
357
+ method: "GET"
358
+ },
359
+ maxInvocationsPerMinute: 60,
360
+ timeoutMs: 30000,
361
+ version: "1.0.0",
362
+ tags: ["search", "web"],
363
+ createdAt: new Date("2024-01-01T00:00:00Z"),
364
+ updatedAt: new Date("2024-02-15T10:00:00Z")
365
+ },
366
+ {
367
+ id: "tool-2",
368
+ organizationId: "demo-org",
369
+ name: "SQL Query",
370
+ slug: "sql-query",
371
+ description: "Execute read-only SQL queries against the data warehouse.",
372
+ category: "RETRIEVAL",
373
+ status: "ACTIVE",
374
+ parametersSchema: {
375
+ type: "object",
376
+ properties: {
377
+ query: { type: "string", description: "SQL query" },
378
+ maxRows: { type: "number", default: 100 }
379
+ },
380
+ required: ["query"]
381
+ },
382
+ outputSchema: { type: "object" },
383
+ implementationType: "function",
384
+ implementationConfig: { handler: "executeSqlQuery" },
385
+ maxInvocationsPerMinute: 30,
386
+ timeoutMs: 60000,
387
+ version: "1.1.0",
388
+ tags: ["sql", "database"],
389
+ createdAt: new Date("2024-01-05T00:00:00Z"),
390
+ updatedAt: new Date("2024-03-10T14:00:00Z")
391
+ },
392
+ {
393
+ id: "tool-3",
394
+ organizationId: "demo-org",
395
+ name: "Email Sender",
396
+ slug: "email-sender",
397
+ description: "Send emails via SMTP or API.",
398
+ category: "COMMUNICATION",
399
+ status: "ACTIVE",
400
+ parametersSchema: {
401
+ type: "object",
402
+ properties: {
403
+ to: { type: "string" },
404
+ subject: { type: "string" },
405
+ body: { type: "string" }
406
+ },
407
+ required: ["to", "subject", "body"]
408
+ },
409
+ implementationType: "http",
410
+ implementationConfig: { url: "/api/send-email", method: "POST" },
411
+ maxInvocationsPerMinute: 10,
412
+ timeoutMs: 30000,
413
+ version: "1.0.0",
414
+ tags: ["email", "communication"],
415
+ createdAt: new Date("2024-02-01T00:00:00Z"),
416
+ updatedAt: new Date("2024-02-01T00:00:00Z")
417
+ },
418
+ {
419
+ id: "tool-4",
420
+ organizationId: "demo-org",
421
+ name: "GitHub Integration",
422
+ slug: "github-integration",
423
+ description: "Interact with GitHub repositories, PRs, and issues.",
424
+ category: "INTEGRATION",
425
+ status: "ACTIVE",
426
+ parametersSchema: {
427
+ type: "object",
428
+ properties: {
429
+ action: {
430
+ type: "string",
431
+ enum: ["list_prs", "get_pr", "create_comment"]
432
+ },
433
+ repo: { type: "string" },
434
+ params: { type: "object" }
435
+ },
436
+ required: ["action", "repo"]
437
+ },
438
+ implementationType: "http",
439
+ implementationConfig: { url: "https://api.github.com", auth: "token" },
440
+ maxInvocationsPerMinute: 100,
441
+ timeoutMs: 15000,
442
+ version: "2.0.0",
443
+ tags: ["github", "integration", "code"],
444
+ createdAt: new Date("2024-02-20T00:00:00Z"),
445
+ updatedAt: new Date("2024-04-01T09:00:00Z")
446
+ },
447
+ {
448
+ id: "tool-5",
449
+ organizationId: "demo-org",
450
+ name: "Calculator",
451
+ slug: "calculator",
452
+ description: "Perform mathematical calculations.",
453
+ category: "COMPUTATION",
454
+ status: "ACTIVE",
455
+ parametersSchema: {
456
+ type: "object",
457
+ properties: {
458
+ expression: {
459
+ type: "string",
460
+ description: "Math expression to evaluate"
461
+ }
462
+ },
463
+ required: ["expression"]
464
+ },
465
+ outputSchema: {
466
+ type: "object",
467
+ properties: { result: { type: "number" } }
468
+ },
469
+ implementationType: "function",
470
+ implementationConfig: { handler: "evaluateMath" },
471
+ timeoutMs: 5000,
472
+ version: "1.0.0",
473
+ tags: ["math", "utility"],
474
+ createdAt: new Date("2024-01-10T00:00:00Z"),
475
+ updatedAt: new Date("2024-01-10T00:00:00Z")
476
+ }
477
+ ];
478
+
479
+ // src/agent/agent.handler.ts
480
+ async function mockListAgentsHandler(input) {
481
+ const {
482
+ organizationId,
483
+ status,
484
+ modelProvider,
485
+ search,
486
+ limit = 20,
487
+ offset = 0
488
+ } = input;
489
+ let filtered = MOCK_AGENTS.filter((a) => a.organizationId === organizationId);
490
+ if (status)
491
+ filtered = filtered.filter((a) => a.status === status);
492
+ if (modelProvider)
493
+ filtered = filtered.filter((a) => a.modelProvider === modelProvider);
494
+ if (search) {
495
+ const q = search.toLowerCase();
496
+ filtered = filtered.filter((a) => a.name.toLowerCase().includes(q) || a.description?.toLowerCase().includes(q) || a.tags?.some((t) => t.toLowerCase().includes(q)));
497
+ }
498
+ const total = filtered.length;
499
+ const items = filtered.slice(offset, offset + limit).map((a) => ({
500
+ id: a.id,
501
+ name: a.name,
502
+ slug: a.slug,
503
+ description: a.description,
504
+ status: a.status,
505
+ modelProvider: a.modelProvider,
506
+ modelName: a.modelName,
507
+ version: a.version,
508
+ createdAt: a.createdAt
509
+ }));
510
+ return { items, total, hasMore: offset + limit < total };
511
+ }
512
+ async function mockGetAgentHandler(input) {
513
+ const agent = MOCK_AGENTS.find((a) => a.id === input.agentId);
514
+ if (!agent)
515
+ throw new Error("AGENT_NOT_FOUND");
516
+ const result = { ...agent, toolIds: ["tool-1", "tool-2"] };
517
+ if (input.includeTools) {
518
+ result.tools = MOCK_TOOLS.slice(0, 2).map((t) => ({
519
+ id: t.id,
520
+ name: t.name,
521
+ slug: t.slug,
522
+ description: t.description,
523
+ category: t.category
524
+ }));
525
+ }
526
+ return result;
527
+ }
528
+ async function mockCreateAgentHandler(input) {
529
+ const exists = MOCK_AGENTS.some((a) => a.organizationId === input.organizationId && a.slug === input.slug);
530
+ if (exists)
531
+ throw new Error("SLUG_EXISTS");
532
+ return {
533
+ id: `agent-${Date.now()}`,
534
+ name: input.name,
535
+ slug: input.slug,
536
+ status: "DRAFT"
537
+ };
538
+ }
539
+ async function mockUpdateAgentHandler(input) {
540
+ const agent = MOCK_AGENTS.find((a) => a.id === input.agentId);
541
+ if (!agent)
542
+ throw new Error("AGENT_NOT_FOUND");
543
+ return {
544
+ id: agent.id,
545
+ name: input.name ?? agent.name,
546
+ status: input.status ?? agent.status,
547
+ updatedAt: new Date
548
+ };
549
+ }
550
+
551
+ // src/agent/agent.schema.ts
552
+ import { defineSchemaModel as defineSchemaModel2, ScalarTypeEnum as ScalarTypeEnum2 } from "@contractspec/lib.schema";
553
+ var AgentModel = defineSchemaModel2({
554
+ name: "Agent",
555
+ description: "AI agent configuration",
556
+ fields: {
557
+ id: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
558
+ organizationId: {
559
+ type: ScalarTypeEnum2.String_unsecure(),
560
+ isOptional: false
561
+ },
562
+ name: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: false },
563
+ slug: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
564
+ description: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
565
+ status: { type: AgentStatusEnum, isOptional: false },
566
+ modelProvider: { type: ModelProviderEnum, isOptional: false },
567
+ modelName: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: false },
568
+ modelConfig: { type: ScalarTypeEnum2.JSONObject(), isOptional: true },
569
+ systemPrompt: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
570
+ userPromptTemplate: {
571
+ type: ScalarTypeEnum2.String_unsecure(),
572
+ isOptional: true
573
+ },
574
+ toolIds: {
575
+ type: ScalarTypeEnum2.String_unsecure(),
576
+ isArray: true,
577
+ isOptional: true
578
+ },
579
+ toolChoice: {
580
+ type: ToolChoiceEnum,
581
+ isOptional: false,
582
+ defaultValue: "auto"
583
+ },
584
+ maxIterations: {
585
+ type: ScalarTypeEnum2.Int_unsecure(),
586
+ isOptional: false,
587
+ defaultValue: 10
588
+ },
589
+ maxTokensPerRun: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true },
590
+ timeoutMs: {
591
+ type: ScalarTypeEnum2.Int_unsecure(),
592
+ isOptional: false,
593
+ defaultValue: 120000
594
+ },
595
+ version: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: false },
596
+ tags: {
597
+ type: ScalarTypeEnum2.String_unsecure(),
598
+ isArray: true,
599
+ isOptional: true
600
+ },
601
+ createdAt: { type: ScalarTypeEnum2.DateTime(), isOptional: false },
602
+ updatedAt: { type: ScalarTypeEnum2.DateTime(), isOptional: false }
603
+ }
604
+ });
605
+ var AgentSummaryModel = defineSchemaModel2({
606
+ name: "AgentSummary",
607
+ description: "Summary of an agent for list views",
608
+ fields: {
609
+ id: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
610
+ name: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: false },
611
+ slug: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
612
+ description: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
613
+ status: { type: AgentStatusEnum, isOptional: false },
614
+ modelProvider: { type: ModelProviderEnum, isOptional: false },
615
+ modelName: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: false },
616
+ version: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: false },
617
+ createdAt: { type: ScalarTypeEnum2.DateTime(), isOptional: false }
618
+ }
619
+ });
620
+ var AgentToolRefModel = defineSchemaModel2({
621
+ name: "AgentToolRef",
622
+ description: "Tool reference in agent context",
623
+ fields: {
624
+ id: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
625
+ name: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: false },
626
+ slug: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
627
+ description: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
628
+ category: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false }
629
+ }
630
+ });
631
+ var AgentWithToolsModel = defineSchemaModel2({
632
+ name: "AgentWithTools",
633
+ description: "Agent with associated tools",
634
+ fields: {
635
+ id: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
636
+ organizationId: {
637
+ type: ScalarTypeEnum2.String_unsecure(),
638
+ isOptional: false
639
+ },
640
+ name: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: false },
641
+ slug: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
642
+ description: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
643
+ status: { type: AgentStatusEnum, isOptional: false },
644
+ modelProvider: { type: ModelProviderEnum, isOptional: false },
645
+ modelName: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: false },
646
+ modelConfig: { type: ScalarTypeEnum2.JSONObject(), isOptional: true },
647
+ systemPrompt: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
648
+ userPromptTemplate: {
649
+ type: ScalarTypeEnum2.String_unsecure(),
650
+ isOptional: true
651
+ },
652
+ toolIds: {
653
+ type: ScalarTypeEnum2.String_unsecure(),
654
+ isArray: true,
655
+ isOptional: true
656
+ },
657
+ toolChoice: { type: ToolChoiceEnum, isOptional: false },
658
+ maxIterations: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: false },
659
+ maxTokensPerRun: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true },
660
+ timeoutMs: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: false },
661
+ version: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: false },
662
+ tags: {
663
+ type: ScalarTypeEnum2.String_unsecure(),
664
+ isArray: true,
665
+ isOptional: true
666
+ },
667
+ createdAt: { type: ScalarTypeEnum2.DateTime(), isOptional: false },
668
+ updatedAt: { type: ScalarTypeEnum2.DateTime(), isOptional: false },
669
+ tools: { type: AgentToolRefModel, isArray: true, isOptional: true }
670
+ }
671
+ });
672
+ var CreateAgentInputModel = defineSchemaModel2({
673
+ name: "CreateAgentInput",
674
+ description: "Input for creating an agent",
675
+ fields: {
676
+ organizationId: {
677
+ type: ScalarTypeEnum2.String_unsecure(),
678
+ isOptional: false
679
+ },
680
+ name: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: false },
681
+ slug: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
682
+ description: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
683
+ modelProvider: { type: ModelProviderEnum, isOptional: false },
684
+ modelName: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: false },
685
+ modelConfig: { type: ScalarTypeEnum2.JSONObject(), isOptional: true },
686
+ systemPrompt: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
687
+ userPromptTemplate: {
688
+ type: ScalarTypeEnum2.String_unsecure(),
689
+ isOptional: true
690
+ },
691
+ toolIds: {
692
+ type: ScalarTypeEnum2.String_unsecure(),
693
+ isArray: true,
694
+ isOptional: true
695
+ },
696
+ toolChoice: { type: ToolChoiceEnum, isOptional: true },
697
+ maxIterations: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true },
698
+ maxTokensPerRun: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true },
699
+ timeoutMs: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true },
700
+ tags: {
701
+ type: ScalarTypeEnum2.String_unsecure(),
702
+ isArray: true,
703
+ isOptional: true
704
+ }
705
+ }
706
+ });
707
+ var UpdateAgentInputModel = defineSchemaModel2({
708
+ name: "UpdateAgentInput",
709
+ description: "Input for updating an agent",
710
+ fields: {
711
+ agentId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
712
+ name: { type: ScalarTypeEnum2.NonEmptyString(), isOptional: true },
713
+ description: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
714
+ status: { type: AgentStatusEnum, isOptional: true },
715
+ modelConfig: { type: ScalarTypeEnum2.JSONObject(), isOptional: true },
716
+ systemPrompt: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
717
+ userPromptTemplate: {
718
+ type: ScalarTypeEnum2.String_unsecure(),
719
+ isOptional: true
720
+ },
721
+ toolIds: {
722
+ type: ScalarTypeEnum2.String_unsecure(),
723
+ isArray: true,
724
+ isOptional: true
725
+ },
726
+ toolChoice: { type: ToolChoiceEnum, isOptional: true },
727
+ maxIterations: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true },
728
+ maxTokensPerRun: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true },
729
+ timeoutMs: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true },
730
+ tags: {
731
+ type: ScalarTypeEnum2.String_unsecure(),
732
+ isArray: true,
733
+ isOptional: true
734
+ }
735
+ }
736
+ });
737
+
738
+ // src/agent/agent.operation.ts
739
+ import {
740
+ defineCommand,
741
+ defineQuery
742
+ } from "@contractspec/lib.contracts/operations";
743
+ import { defineSchemaModel as defineSchemaModel3, ScalarTypeEnum as ScalarTypeEnum3 } from "@contractspec/lib.schema";
744
+ var OWNERS2 = ["@agent-console-team"];
745
+ var CreateAgentCommand = defineCommand({
746
+ meta: {
747
+ key: "agent-console.agent.create",
748
+ version: "1.0.0",
749
+ stability: "stable",
750
+ owners: [...OWNERS2],
751
+ tags: ["agent", "create"],
752
+ description: "Creates a new AI agent configuration.",
753
+ goal: "Allow users to define new AI agents with specific models and tools.",
754
+ context: "Called from the agent builder UI when creating a new agent."
755
+ },
756
+ io: {
757
+ input: CreateAgentInputModel,
758
+ output: defineSchemaModel3({
759
+ name: "CreateAgentOutput",
760
+ fields: {
761
+ id: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
762
+ name: { type: ScalarTypeEnum3.NonEmptyString(), isOptional: false },
763
+ slug: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
764
+ status: { type: AgentStatusEnum, isOptional: false }
765
+ }
766
+ }),
767
+ errors: {
768
+ SLUG_EXISTS: {
769
+ description: "An agent with this slug already exists in the organization",
770
+ http: 409,
771
+ gqlCode: "SLUG_EXISTS",
772
+ when: "Slug is already taken"
773
+ }
774
+ }
775
+ },
776
+ policy: { auth: "user" },
777
+ sideEffects: {
778
+ emits: [
779
+ {
780
+ ref: AgentCreatedEvent.meta,
781
+ when: "Agent is successfully created"
782
+ }
783
+ ],
784
+ audit: ["agent-console.agent.created"]
785
+ },
786
+ acceptance: {
787
+ scenarios: [
788
+ {
789
+ key: "create-agent-happy-path",
790
+ given: ["User is authenticated", "Organization exists"],
791
+ when: ["User submits valid agent configuration"],
792
+ then: [
793
+ "New agent is created with DRAFT status",
794
+ "AgentCreated event is emitted"
795
+ ]
796
+ },
797
+ {
798
+ key: "create-agent-slug-conflict",
799
+ given: ["User is authenticated", "Agent with same slug exists"],
800
+ when: ["User submits agent with duplicate slug"],
801
+ then: ["SLUG_EXISTS error is returned with 409 status"]
802
+ }
803
+ ],
804
+ examples: [
805
+ {
806
+ key: "basic-create",
807
+ input: {
808
+ name: "Support Assistant",
809
+ slug: "support-assistant",
810
+ modelProvider: "openai",
811
+ modelId: "gpt-4"
812
+ },
813
+ output: {
814
+ id: "agent-123",
815
+ name: "Support Assistant",
816
+ slug: "support-assistant",
817
+ status: "draft"
818
+ }
819
+ }
820
+ ]
821
+ }
822
+ });
823
+ var UpdateAgentCommand = defineCommand({
824
+ meta: {
825
+ key: "agent-console.agent.update",
826
+ version: "1.0.0",
827
+ stability: "stable",
828
+ owners: [...OWNERS2],
829
+ tags: ["agent", "update"],
830
+ description: "Updates an existing AI agent configuration.",
831
+ goal: "Allow users to modify agent settings and configuration.",
832
+ context: "Called from the agent settings UI."
833
+ },
834
+ io: {
835
+ input: UpdateAgentInputModel,
836
+ output: defineSchemaModel3({
837
+ name: "UpdateAgentOutput",
838
+ fields: {
839
+ id: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
840
+ name: { type: ScalarTypeEnum3.NonEmptyString(), isOptional: false },
841
+ status: { type: AgentStatusEnum, isOptional: false },
842
+ updatedAt: { type: ScalarTypeEnum3.DateTime(), isOptional: false }
843
+ }
844
+ }),
845
+ errors: {
846
+ AGENT_NOT_FOUND: {
847
+ description: "The specified agent does not exist",
848
+ http: 404,
849
+ gqlCode: "AGENT_NOT_FOUND",
850
+ when: "Agent ID is invalid"
851
+ }
852
+ }
853
+ },
854
+ policy: { auth: "user" },
855
+ sideEffects: {
856
+ emits: [
857
+ {
858
+ key: "agent.updated",
859
+ version: "1.0.0",
860
+ stability: "stable",
861
+ owners: [...OWNERS2],
862
+ tags: ["agent", "updated"],
863
+ when: "Agent is updated",
864
+ payload: AgentSummaryModel
865
+ }
866
+ ],
867
+ audit: ["agent.updated"]
868
+ },
869
+ acceptance: {
870
+ scenarios: [
871
+ {
872
+ key: "update-agent-happy-path",
873
+ given: ["Agent exists", "User owns the agent"],
874
+ when: ["User submits updated configuration"],
875
+ then: ["Agent is updated", "AgentUpdated event is emitted"]
876
+ },
877
+ {
878
+ key: "update-agent-not-found",
879
+ given: ["Agent does not exist"],
880
+ when: ["User attempts to update"],
881
+ then: ["AGENT_NOT_FOUND error is returned"]
882
+ }
883
+ ],
884
+ examples: [
885
+ {
886
+ key: "update-name",
887
+ input: {
888
+ agentId: "agent-123",
889
+ name: "Updated Assistant",
890
+ systemPrompt: "You are a helpful assistant."
891
+ },
892
+ output: {
893
+ id: "agent-123",
894
+ name: "Updated Assistant",
895
+ status: "draft",
896
+ updatedAt: "2025-01-01T00:00:00Z"
897
+ }
898
+ }
899
+ ]
900
+ }
901
+ });
902
+ var GetAgentQuery = defineQuery({
903
+ meta: {
904
+ key: "agent-console.agent.get",
905
+ version: "1.0.0",
906
+ stability: "stable",
907
+ owners: [...OWNERS2],
908
+ tags: ["agent", "get"],
909
+ description: "Retrieves an agent by its ID.",
910
+ goal: "View detailed agent configuration.",
911
+ context: "Called when viewing agent details or editing."
912
+ },
913
+ io: {
914
+ input: defineSchemaModel3({
915
+ name: "GetAgentInput",
916
+ fields: {
917
+ agentId: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
918
+ includeTools: { type: ScalarTypeEnum3.Boolean(), isOptional: true }
919
+ }
920
+ }),
921
+ output: AgentWithToolsModel,
922
+ errors: {
923
+ AGENT_NOT_FOUND: {
924
+ description: "The specified agent does not exist",
925
+ http: 404,
926
+ gqlCode: "AGENT_NOT_FOUND",
927
+ when: "Agent ID is invalid"
928
+ }
929
+ }
930
+ },
931
+ policy: { auth: "user" },
932
+ acceptance: {
933
+ scenarios: [
934
+ {
935
+ key: "get-agent-happy-path",
936
+ given: ["Agent exists"],
937
+ when: ["User requests agent by ID"],
938
+ then: ["Agent details are returned"]
939
+ },
940
+ {
941
+ key: "get-agent-with-tools",
942
+ given: ["Agent exists with assigned tools"],
943
+ when: ["User requests agent with includeTools=true"],
944
+ then: ["Agent details with tools list are returned"]
945
+ }
946
+ ],
947
+ examples: [
948
+ {
949
+ key: "get-basic",
950
+ input: { agentId: "agent-123", includeTools: false },
951
+ output: {
952
+ id: "agent-123",
953
+ name: "Support Assistant",
954
+ status: "active",
955
+ tools: []
956
+ }
957
+ }
958
+ ]
959
+ }
960
+ });
961
+ var ListAgentsQuery = defineQuery({
962
+ meta: {
963
+ key: "agent-console.agent.list",
964
+ version: "1.0.0",
965
+ stability: "stable",
966
+ owners: [...OWNERS2],
967
+ tags: ["agent", "list"],
968
+ description: "Lists agents for an organization with optional filtering.",
969
+ goal: "Browse and search available agents.",
970
+ context: "Agent list/dashboard view."
971
+ },
972
+ io: {
973
+ input: defineSchemaModel3({
974
+ name: "ListAgentsInput",
975
+ fields: {
976
+ organizationId: {
977
+ type: ScalarTypeEnum3.String_unsecure(),
978
+ isOptional: false
979
+ },
980
+ status: { type: AgentStatusEnum, isOptional: true },
981
+ modelProvider: { type: ModelProviderEnum, isOptional: true },
982
+ search: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
983
+ limit: {
984
+ type: ScalarTypeEnum3.Int_unsecure(),
985
+ isOptional: true,
986
+ defaultValue: 20
987
+ },
988
+ offset: {
989
+ type: ScalarTypeEnum3.Int_unsecure(),
990
+ isOptional: true,
991
+ defaultValue: 0
992
+ }
993
+ }
994
+ }),
995
+ output: defineSchemaModel3({
996
+ name: "ListAgentsOutput",
997
+ fields: {
998
+ items: { type: AgentSummaryModel, isArray: true, isOptional: false },
999
+ total: { type: ScalarTypeEnum3.Int_unsecure(), isOptional: false },
1000
+ hasMore: { type: ScalarTypeEnum3.Boolean(), isOptional: false }
1001
+ }
1002
+ })
1003
+ },
1004
+ policy: { auth: "user" },
1005
+ acceptance: {
1006
+ scenarios: [
1007
+ {
1008
+ key: "list-agents-happy-path",
1009
+ given: ["Organization has agents"],
1010
+ when: ["User lists agents"],
1011
+ then: ["Paginated list of agents is returned"]
1012
+ },
1013
+ {
1014
+ key: "list-agents-filter-by-status",
1015
+ given: ["Organization has agents with mixed statuses"],
1016
+ when: ["User filters by status=active"],
1017
+ then: ["Only active agents are returned"]
1018
+ }
1019
+ ],
1020
+ examples: [
1021
+ {
1022
+ key: "list-basic",
1023
+ input: { organizationId: "org-123", limit: 10, offset: 0 },
1024
+ output: { items: [], total: 0, hasMore: false }
1025
+ }
1026
+ ]
1027
+ }
1028
+ });
1029
+ var AssignToolToAgentCommand = defineCommand({
1030
+ meta: {
1031
+ key: "agent-console.agent.assignTool",
1032
+ version: "1.0.0",
1033
+ stability: "stable",
1034
+ owners: [...OWNERS2],
1035
+ tags: ["agent", "tool", "assign"],
1036
+ description: "Assigns a tool to an agent with optional configuration.",
1037
+ goal: "Enable agents to use specific tools.",
1038
+ context: "Agent configuration UI - tool selection."
1039
+ },
1040
+ io: {
1041
+ input: defineSchemaModel3({
1042
+ name: "AssignToolToAgentInput",
1043
+ fields: {
1044
+ agentId: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
1045
+ toolId: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
1046
+ config: { type: ScalarTypeEnum3.JSONObject(), isOptional: true },
1047
+ order: { type: ScalarTypeEnum3.Int_unsecure(), isOptional: true }
1048
+ }
1049
+ }),
1050
+ output: defineSchemaModel3({
1051
+ name: "AssignToolToAgentOutput",
1052
+ fields: {
1053
+ agentToolId: {
1054
+ type: ScalarTypeEnum3.String_unsecure(),
1055
+ isOptional: false
1056
+ },
1057
+ agentId: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
1058
+ toolId: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false }
1059
+ }
1060
+ }),
1061
+ errors: {
1062
+ TOOL_ALREADY_ASSIGNED: {
1063
+ description: "This tool is already assigned to the agent",
1064
+ http: 409,
1065
+ gqlCode: "TOOL_ALREADY_ASSIGNED",
1066
+ when: "Tool assignment already exists"
1067
+ }
1068
+ }
1069
+ },
1070
+ policy: { auth: "user" },
1071
+ sideEffects: { audit: ["agent.tool.assigned"] },
1072
+ acceptance: {
1073
+ scenarios: [
1074
+ {
1075
+ key: "assign-tool-happy-path",
1076
+ given: ["Agent exists", "Tool exists and is not assigned"],
1077
+ when: ["User assigns tool to agent"],
1078
+ then: ["Tool is assigned", "Assignment ID is returned"]
1079
+ },
1080
+ {
1081
+ key: "assign-tool-already-assigned",
1082
+ given: ["Tool is already assigned to agent"],
1083
+ when: ["User attempts to assign again"],
1084
+ then: ["TOOL_ALREADY_ASSIGNED error is returned"]
1085
+ }
1086
+ ],
1087
+ examples: [
1088
+ {
1089
+ key: "assign-basic",
1090
+ input: { agentId: "agent-123", toolId: "tool-456" },
1091
+ output: {
1092
+ agentToolId: "at-789",
1093
+ agentId: "agent-123",
1094
+ toolId: "tool-456"
1095
+ }
1096
+ }
1097
+ ]
1098
+ }
1099
+ });
1100
+ var RemoveToolFromAgentCommand = defineCommand({
1101
+ meta: {
1102
+ key: "agent-console.agent.removeTool",
1103
+ version: "1.0.0",
1104
+ stability: "stable",
1105
+ owners: [...OWNERS2],
1106
+ tags: ["agent", "tool", "remove"],
1107
+ description: "Removes a tool assignment from an agent.",
1108
+ goal: "Disable specific tools for an agent.",
1109
+ context: "Agent configuration UI - tool management."
1110
+ },
1111
+ io: {
1112
+ input: defineSchemaModel3({
1113
+ name: "RemoveToolFromAgentInput",
1114
+ fields: {
1115
+ agentId: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
1116
+ toolId: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false }
1117
+ }
1118
+ }),
1119
+ output: defineSchemaModel3({
1120
+ name: "RemoveToolFromAgentOutput",
1121
+ fields: {
1122
+ success: { type: ScalarTypeEnum3.Boolean(), isOptional: false }
1123
+ }
1124
+ })
1125
+ },
1126
+ policy: { auth: "user" },
1127
+ sideEffects: { audit: ["agent.tool.removed"] },
1128
+ acceptance: {
1129
+ scenarios: [
1130
+ {
1131
+ key: "remove-tool-happy-path",
1132
+ given: ["Agent exists", "Tool is assigned to agent"],
1133
+ when: ["User removes tool from agent"],
1134
+ then: ["Tool is unassigned", "Success is returned"]
1135
+ }
1136
+ ],
1137
+ examples: [
1138
+ {
1139
+ key: "remove-basic",
1140
+ input: { agentId: "agent-123", toolId: "tool-456" },
1141
+ output: { success: true }
1142
+ }
1143
+ ]
1144
+ }
1145
+ });
1146
+
1147
+ // src/agent/agent.presentation.ts
1148
+ import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
1149
+ var AgentListPresentation = definePresentation({
1150
+ meta: {
1151
+ key: "agent-console.agent.viewList",
1152
+ version: "1.0.0",
1153
+ title: "Agent List",
1154
+ description: "List view of AI agents with status, model provider, and version info",
1155
+ goal: "Provide an overview of all agents in an organization.",
1156
+ context: "Main landing page for agent management.",
1157
+ domain: "agent-console",
1158
+ owners: ["@agent-console-team"],
1159
+ tags: ["agent", "list", "dashboard"],
1160
+ stability: StabilityEnum.Experimental
1161
+ },
1162
+ source: {
1163
+ type: "component",
1164
+ framework: "react",
1165
+ componentKey: "AgentListView",
1166
+ props: AgentSummaryModel
1167
+ },
1168
+ targets: ["react", "markdown", "application/json"],
1169
+ policy: { flags: ["agent-console.enabled"] }
1170
+ });
1171
+ var AgentDetailPresentation = definePresentation({
1172
+ meta: {
1173
+ key: "agent-console.agent.detail",
1174
+ version: "1.0.0",
1175
+ title: "Agent Details",
1176
+ description: "Detailed view of an AI agent with configuration, tools, and recent runs",
1177
+ goal: "Allow users to inspect and configure a specific agent.",
1178
+ context: "Detailed view of an agent.",
1179
+ domain: "agent-console",
1180
+ owners: ["@agent-console-team"],
1181
+ tags: ["agent", "detail"],
1182
+ stability: StabilityEnum.Experimental
1183
+ },
1184
+ source: {
1185
+ type: "component",
1186
+ framework: "react",
1187
+ componentKey: "AgentDetailView"
1188
+ },
1189
+ targets: ["react", "markdown"],
1190
+ policy: { flags: ["agent-console.enabled"] }
1191
+ });
1192
+ var AgentConsoleDashboardPresentation = definePresentation({
1193
+ meta: {
1194
+ key: "agent-console.dashboard",
1195
+ version: "1.0.0",
1196
+ title: "Agent Console Dashboard",
1197
+ description: "Dashboard overview of AI agents, runs, and tools",
1198
+ goal: "Provide a high-level overview of the AI platform health and usage.",
1199
+ context: "Root dashboard of the Agent Console.",
1200
+ domain: "agent-console",
1201
+ owners: ["@agent-console-team"],
1202
+ tags: ["dashboard", "overview"],
1203
+ stability: StabilityEnum.Experimental
1204
+ },
1205
+ source: {
1206
+ type: "component",
1207
+ framework: "react",
1208
+ componentKey: "AgentConsoleDashboard"
1209
+ },
1210
+ targets: ["react", "markdown"],
1211
+ policy: { flags: ["agent-console.enabled"] }
1212
+ });
1213
+ export {
1214
+ mockUpdateAgentHandler,
1215
+ mockListAgentsHandler,
1216
+ mockGetAgentHandler,
1217
+ mockCreateAgentHandler,
1218
+ UpdateAgentInputModel,
1219
+ UpdateAgentCommand,
1220
+ ToolChoiceEnum,
1221
+ RemoveToolFromAgentCommand,
1222
+ ModelProviderEnum,
1223
+ ModelProviderEntityEnum,
1224
+ ListAgentsQuery,
1225
+ GetAgentQuery,
1226
+ CreateAgentInputModel,
1227
+ CreateAgentCommand,
1228
+ AssignToolToAgentCommand,
1229
+ AgentWithToolsModel,
1230
+ AgentUpdatedEvent,
1231
+ AgentToolRemovedEvent,
1232
+ AgentToolRefModel,
1233
+ AgentToolEntity,
1234
+ AgentToolAssignedEvent,
1235
+ AgentSummaryModel,
1236
+ AgentStatusEnum,
1237
+ AgentStatusEntityEnum,
1238
+ AgentModel,
1239
+ AgentListPresentation,
1240
+ AgentEntity,
1241
+ AgentDetailPresentation,
1242
+ AgentCreatedEvent,
1243
+ AgentConsoleDashboardPresentation
1244
+ };