@contractspec/example.agent-console 1.56.1 → 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 +211 -277
  2. package/.turbo/turbo-prebuild.log +1 -0
  3. package/CHANGELOG.md +36 -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 -7
  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 +40 -55
  112. package/dist/handlers/agent.handlers.d.ts +121 -121
  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 -9
  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 -9
  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 -7
  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 -9
  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 -9
  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 -9
  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 +657 -119
  335. package/tsdown.config.js +1 -2
  336. package/.turbo/turbo-build$colon$bundle.log +0 -280
  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
@@ -1 +1 @@
1
- {"version":3,"file":"run.schema.d.ts","names":[],"sources":["../../src/run/run.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAMa,cAAA,aAOX,8BAPwB,WAOxB,CAAA;EAAA,OAAA,EAAA;UAAA,2BAAA,CAAA;;;;IAPwB,IAAA,uCAAA,OAAA,CAAA,MAAA,EAAA,OAAA,CAAA,QAAA,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA;IAYb,UAAA,EAsBX,IAAA;EAAA,CAAA;;;;;cAtBW,0CAAY;;UAsBvB,2BAAA,CAAA;;;;;;;;;;;;+CAtBuB,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;EA2BZ,CAAA;EAcX,QAAA,EAAA;;;;;;;;;;;;;IAdsB,IAAA,sCAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;IAmBX,UAAA,EAAA,KAYX;EAAA,CAAA;;;;;EAZ2B,UAAA,EAAA;IAiBhB,IAAA,uCAkDX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;;;;;;;;cAtFW,yCAAW;;UActB,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,8CAAgB;;UAY3B,2BAAA,CAAA;;;;;;EAKmB,CAAA;EAuDR,aAAA,EAAA;IAiBX,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;cAxEW,QAuDe,8BAvDP,WAuDO,CAAA;EAAA,EAAA,EAAA;IAsBf,IAAA,EA3BX,2BAAA,CAAA,SAqCA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;EAViC,OAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAtBtB,6CAAe;;UAiB1B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,oDAAsB;;UAUjC,2BAAA,CAAA"}
1
+ {"version":3,"file":"run.schema.d.ts","sourceRoot":"","sources":["../../src/run/run.schema.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;EAOxB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBvB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EActB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;EAY3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkDnB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;EAUjC,CAAC"}
@@ -1,338 +1,180 @@
1
- import { LogLevelEnum, RunStatusEnum, RunStepTypeEnum } from "./run.enum.js";
2
- import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
1
+ // @bun
2
+ // src/run/run.enum.ts
3
+ import { defineEnum } from "@contractspec/lib.schema";
4
+ var RunStatusEnum = defineEnum("RunStatus", [
5
+ "QUEUED",
6
+ "IN_PROGRESS",
7
+ "COMPLETED",
8
+ "FAILED",
9
+ "CANCELLED",
10
+ "EXPIRED"
11
+ ]);
12
+ var RunStepTypeEnum = defineEnum("RunStepType", [
13
+ "MESSAGE_CREATION",
14
+ "TOOL_CALL",
15
+ "TOOL_RESULT",
16
+ "ERROR"
17
+ ]);
18
+ var LogLevelEnum = defineEnum("LogLevel", [
19
+ "DEBUG",
20
+ "INFO",
21
+ "WARN",
22
+ "ERROR"
23
+ ]);
24
+ var GranularityEnum = defineEnum("Granularity", [
25
+ "hour",
26
+ "day",
27
+ "week",
28
+ "month"
29
+ ]);
3
30
 
4
- //#region src/run/run.schema.ts
5
- /**
6
- * Input data for agent execution.
7
- */
8
- const RunInputModel = defineSchemaModel({
9
- name: "RunInput",
10
- description: "Input data for agent execution",
11
- fields: {
12
- message: {
13
- type: ScalarTypeEnum.NonEmptyString(),
14
- isOptional: false
15
- },
16
- context: {
17
- type: ScalarTypeEnum.JSONObject(),
18
- isOptional: true
19
- }
20
- }
31
+ // src/run/run.schema.ts
32
+ import { defineSchemaModel, ScalarTypeEnum } from "@contractspec/lib.schema";
33
+ var RunInputModel = defineSchemaModel({
34
+ name: "RunInput",
35
+ description: "Input data for agent execution",
36
+ fields: {
37
+ message: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
38
+ context: { type: ScalarTypeEnum.JSONObject(), isOptional: true }
39
+ }
21
40
  });
22
- /**
23
- * Individual step within a run.
24
- */
25
- const RunStepModel = defineSchemaModel({
26
- name: "RunStep",
27
- description: "Individual step within a run",
28
- fields: {
29
- id: {
30
- type: ScalarTypeEnum.String_unsecure(),
31
- isOptional: false
32
- },
33
- stepNumber: {
34
- type: ScalarTypeEnum.Int_unsecure(),
35
- isOptional: false
36
- },
37
- type: {
38
- type: RunStepTypeEnum,
39
- isOptional: false
40
- },
41
- toolId: {
42
- type: ScalarTypeEnum.String_unsecure(),
43
- isOptional: true
44
- },
45
- toolName: {
46
- type: ScalarTypeEnum.String_unsecure(),
47
- isOptional: true
48
- },
49
- input: {
50
- type: ScalarTypeEnum.JSONObject(),
51
- isOptional: true
52
- },
53
- output: {
54
- type: ScalarTypeEnum.JSONObject(),
55
- isOptional: true
56
- },
57
- status: {
58
- type: RunStatusEnum,
59
- isOptional: false
60
- },
61
- errorMessage: {
62
- type: ScalarTypeEnum.String_unsecure(),
63
- isOptional: true
64
- },
65
- tokensUsed: {
66
- type: ScalarTypeEnum.Int_unsecure(),
67
- isOptional: false,
68
- defaultValue: 0
69
- },
70
- durationMs: {
71
- type: ScalarTypeEnum.Int_unsecure(),
72
- isOptional: true
73
- },
74
- startedAt: {
75
- type: ScalarTypeEnum.DateTime(),
76
- isOptional: false
77
- },
78
- completedAt: {
79
- type: ScalarTypeEnum.DateTime(),
80
- isOptional: true
81
- }
82
- }
41
+ var RunStepModel = defineSchemaModel({
42
+ name: "RunStep",
43
+ description: "Individual step within a run",
44
+ fields: {
45
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
46
+ stepNumber: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
47
+ type: { type: RunStepTypeEnum, isOptional: false },
48
+ toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
49
+ toolName: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
50
+ input: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
51
+ output: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
52
+ status: { type: RunStatusEnum, isOptional: false },
53
+ errorMessage: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
54
+ tokensUsed: {
55
+ type: ScalarTypeEnum.Int_unsecure(),
56
+ isOptional: false,
57
+ defaultValue: 0
58
+ },
59
+ durationMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
60
+ startedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
61
+ completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true }
62
+ }
83
63
  });
84
- /**
85
- * Execution log entry.
86
- */
87
- const RunLogModel = defineSchemaModel({
88
- name: "RunLog",
89
- description: "Execution log entry",
90
- fields: {
91
- id: {
92
- type: ScalarTypeEnum.String_unsecure(),
93
- isOptional: false
94
- },
95
- stepId: {
96
- type: ScalarTypeEnum.String_unsecure(),
97
- isOptional: true
98
- },
99
- level: {
100
- type: LogLevelEnum,
101
- isOptional: false
102
- },
103
- message: {
104
- type: ScalarTypeEnum.String_unsecure(),
105
- isOptional: false
106
- },
107
- data: {
108
- type: ScalarTypeEnum.JSONObject(),
109
- isOptional: true
110
- },
111
- source: {
112
- type: ScalarTypeEnum.String_unsecure(),
113
- isOptional: true
114
- },
115
- traceId: {
116
- type: ScalarTypeEnum.String_unsecure(),
117
- isOptional: true
118
- },
119
- spanId: {
120
- type: ScalarTypeEnum.String_unsecure(),
121
- isOptional: true
122
- },
123
- timestamp: {
124
- type: ScalarTypeEnum.DateTime(),
125
- isOptional: false
126
- }
127
- }
64
+ var RunLogModel = defineSchemaModel({
65
+ name: "RunLog",
66
+ description: "Execution log entry",
67
+ fields: {
68
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
69
+ stepId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
70
+ level: { type: LogLevelEnum, isOptional: false },
71
+ message: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
72
+ data: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
73
+ source: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
74
+ traceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
75
+ spanId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
76
+ timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false }
77
+ }
128
78
  });
129
- /**
130
- * Agent reference in a run.
131
- */
132
- const RunAgentRefModel = defineSchemaModel({
133
- name: "RunAgentRef",
134
- description: "Agent reference in a run",
135
- fields: {
136
- id: {
137
- type: ScalarTypeEnum.String_unsecure(),
138
- isOptional: false
139
- },
140
- name: {
141
- type: ScalarTypeEnum.NonEmptyString(),
142
- isOptional: false
143
- },
144
- modelProvider: {
145
- type: ScalarTypeEnum.String_unsecure(),
146
- isOptional: false
147
- },
148
- modelName: {
149
- type: ScalarTypeEnum.String_unsecure(),
150
- isOptional: false
151
- }
152
- }
79
+ var RunAgentRefModel = defineSchemaModel({
80
+ name: "RunAgentRef",
81
+ description: "Agent reference in a run",
82
+ fields: {
83
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
84
+ name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
85
+ modelProvider: {
86
+ type: ScalarTypeEnum.String_unsecure(),
87
+ isOptional: false
88
+ },
89
+ modelName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
90
+ }
153
91
  });
154
- /**
155
- * Agent execution instance.
156
- */
157
- const RunModel = defineSchemaModel({
158
- name: "Run",
159
- description: "Agent execution instance",
160
- fields: {
161
- id: {
162
- type: ScalarTypeEnum.String_unsecure(),
163
- isOptional: false
164
- },
165
- organizationId: {
166
- type: ScalarTypeEnum.String_unsecure(),
167
- isOptional: false
168
- },
169
- agentId: {
170
- type: ScalarTypeEnum.String_unsecure(),
171
- isOptional: false
172
- },
173
- userId: {
174
- type: ScalarTypeEnum.String_unsecure(),
175
- isOptional: true
176
- },
177
- sessionId: {
178
- type: ScalarTypeEnum.String_unsecure(),
179
- isOptional: true
180
- },
181
- input: {
182
- type: ScalarTypeEnum.JSONObject(),
183
- isOptional: false
184
- },
185
- output: {
186
- type: ScalarTypeEnum.JSONObject(),
187
- isOptional: true
188
- },
189
- status: {
190
- type: RunStatusEnum,
191
- isOptional: false
192
- },
193
- errorMessage: {
194
- type: ScalarTypeEnum.String_unsecure(),
195
- isOptional: true
196
- },
197
- errorCode: {
198
- type: ScalarTypeEnum.String_unsecure(),
199
- isOptional: true
200
- },
201
- totalTokens: {
202
- type: ScalarTypeEnum.Int_unsecure(),
203
- isOptional: false,
204
- defaultValue: 0
205
- },
206
- promptTokens: {
207
- type: ScalarTypeEnum.Int_unsecure(),
208
- isOptional: false,
209
- defaultValue: 0
210
- },
211
- completionTokens: {
212
- type: ScalarTypeEnum.Int_unsecure(),
213
- isOptional: false,
214
- defaultValue: 0
215
- },
216
- totalIterations: {
217
- type: ScalarTypeEnum.Int_unsecure(),
218
- isOptional: false,
219
- defaultValue: 0
220
- },
221
- durationMs: {
222
- type: ScalarTypeEnum.Int_unsecure(),
223
- isOptional: true
224
- },
225
- estimatedCostUsd: {
226
- type: ScalarTypeEnum.Float_unsecure(),
227
- isOptional: true
228
- },
229
- queuedAt: {
230
- type: ScalarTypeEnum.DateTime(),
231
- isOptional: false
232
- },
233
- startedAt: {
234
- type: ScalarTypeEnum.DateTime(),
235
- isOptional: true
236
- },
237
- completedAt: {
238
- type: ScalarTypeEnum.DateTime(),
239
- isOptional: true
240
- },
241
- metadata: {
242
- type: ScalarTypeEnum.JSONObject(),
243
- isOptional: true
244
- },
245
- steps: {
246
- type: RunStepModel,
247
- isArray: true,
248
- isOptional: true
249
- },
250
- logs: {
251
- type: RunLogModel,
252
- isArray: true,
253
- isOptional: true
254
- },
255
- agent: {
256
- type: RunAgentRefModel,
257
- isOptional: true
258
- }
259
- }
92
+ var RunModel = defineSchemaModel({
93
+ name: "Run",
94
+ description: "Agent execution instance",
95
+ fields: {
96
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
97
+ organizationId: {
98
+ type: ScalarTypeEnum.String_unsecure(),
99
+ isOptional: false
100
+ },
101
+ agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
102
+ userId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
103
+ sessionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
104
+ input: { type: ScalarTypeEnum.JSONObject(), isOptional: false },
105
+ output: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
106
+ status: { type: RunStatusEnum, isOptional: false },
107
+ errorMessage: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
108
+ errorCode: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
109
+ totalTokens: {
110
+ type: ScalarTypeEnum.Int_unsecure(),
111
+ isOptional: false,
112
+ defaultValue: 0
113
+ },
114
+ promptTokens: {
115
+ type: ScalarTypeEnum.Int_unsecure(),
116
+ isOptional: false,
117
+ defaultValue: 0
118
+ },
119
+ completionTokens: {
120
+ type: ScalarTypeEnum.Int_unsecure(),
121
+ isOptional: false,
122
+ defaultValue: 0
123
+ },
124
+ totalIterations: {
125
+ type: ScalarTypeEnum.Int_unsecure(),
126
+ isOptional: false,
127
+ defaultValue: 0
128
+ },
129
+ durationMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
130
+ estimatedCostUsd: {
131
+ type: ScalarTypeEnum.Float_unsecure(),
132
+ isOptional: true
133
+ },
134
+ queuedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
135
+ startedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
136
+ completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
137
+ metadata: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
138
+ steps: { type: RunStepModel, isArray: true, isOptional: true },
139
+ logs: { type: RunLogModel, isArray: true, isOptional: true },
140
+ agent: { type: RunAgentRefModel, isOptional: true }
141
+ }
260
142
  });
261
- /**
262
- * Summary of a run for list views.
263
- */
264
- const RunSummaryModel = defineSchemaModel({
265
- name: "RunSummary",
266
- description: "Summary of a run for list views",
267
- fields: {
268
- id: {
269
- type: ScalarTypeEnum.String_unsecure(),
270
- isOptional: false
271
- },
272
- agentId: {
273
- type: ScalarTypeEnum.String_unsecure(),
274
- isOptional: false
275
- },
276
- agentName: {
277
- type: ScalarTypeEnum.NonEmptyString(),
278
- isOptional: false
279
- },
280
- status: {
281
- type: RunStatusEnum,
282
- isOptional: false
283
- },
284
- totalTokens: {
285
- type: ScalarTypeEnum.Int_unsecure(),
286
- isOptional: false
287
- },
288
- durationMs: {
289
- type: ScalarTypeEnum.Int_unsecure(),
290
- isOptional: true
291
- },
292
- estimatedCostUsd: {
293
- type: ScalarTypeEnum.Float_unsecure(),
294
- isOptional: true
295
- },
296
- queuedAt: {
297
- type: ScalarTypeEnum.DateTime(),
298
- isOptional: false
299
- },
300
- completedAt: {
301
- type: ScalarTypeEnum.DateTime(),
302
- isOptional: true
303
- }
304
- }
143
+ var RunSummaryModel = defineSchemaModel({
144
+ name: "RunSummary",
145
+ description: "Summary of a run for list views",
146
+ fields: {
147
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
148
+ agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
149
+ agentName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
150
+ status: { type: RunStatusEnum, isOptional: false },
151
+ totalTokens: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
152
+ durationMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
153
+ estimatedCostUsd: {
154
+ type: ScalarTypeEnum.Float_unsecure(),
155
+ isOptional: true
156
+ },
157
+ queuedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
158
+ completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true }
159
+ }
305
160
  });
306
- /**
307
- * Timeline data point for metrics.
308
- */
309
- const TimelineDataPointModel = defineSchemaModel({
310
- name: "TimelineDataPoint",
311
- description: "Timeline data point for metrics",
312
- fields: {
313
- period: {
314
- type: ScalarTypeEnum.String_unsecure(),
315
- isOptional: false
316
- },
317
- runs: {
318
- type: ScalarTypeEnum.Int_unsecure(),
319
- isOptional: false
320
- },
321
- tokens: {
322
- type: ScalarTypeEnum.Int_unsecure(),
323
- isOptional: false
324
- },
325
- costUsd: {
326
- type: ScalarTypeEnum.Float_unsecure(),
327
- isOptional: false
328
- },
329
- avgDurationMs: {
330
- type: ScalarTypeEnum.Float_unsecure(),
331
- isOptional: false
332
- }
333
- }
161
+ var TimelineDataPointModel = defineSchemaModel({
162
+ name: "TimelineDataPoint",
163
+ description: "Timeline data point for metrics",
164
+ fields: {
165
+ period: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
166
+ runs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
167
+ tokens: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
168
+ costUsd: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
169
+ avgDurationMs: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false }
170
+ }
334
171
  });
335
-
336
- //#endregion
337
- export { RunAgentRefModel, RunInputModel, RunLogModel, RunModel, RunStepModel, RunSummaryModel, TimelineDataPointModel };
338
- //# sourceMappingURL=run.schema.js.map
172
+ export {
173
+ TimelineDataPointModel,
174
+ RunSummaryModel,
175
+ RunStepModel,
176
+ RunModel,
177
+ RunLogModel,
178
+ RunInputModel,
179
+ RunAgentRefModel
180
+ };
@@ -1,8 +1,3 @@
1
- import * as _contractspec_lib_contracts31 from "@contractspec/lib.contracts";
2
-
3
- //#region src/run/run.test-spec.d.ts
4
- declare const runListTest: _contractspec_lib_contracts31.TestSpec;
5
- declare const runGetTest: _contractspec_lib_contracts31.TestSpec;
6
- //#endregion
7
- export { runGetTest, runListTest };
1
+ export declare const runListTest: import("@contractspec/lib.contracts").TestSpec;
2
+ export declare const runGetTest: import("@contractspec/lib.contracts").TestSpec;
8
3
  //# sourceMappingURL=run.test-spec.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"run.test-spec.d.ts","names":[],"sources":["../../src/run/run.test-spec.ts"],"sourcesContent":[],"mappings":";;;cAEa,aAyBX,6BAAA,CAzBsB;cA2BX,YAyBX,6BAAA,CAzBqB"}
1
+ {"version":3,"file":"run.test-spec.d.ts","sourceRoot":"","sources":["../../src/run/run.test-spec.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,gDAyBtB,CAAC;AAEH,eAAO,MAAM,UAAU,gDAyBrB,CAAC"}
@@ -1,65 +1,59 @@
1
+ // @bun
2
+ // src/run/run.test-spec.ts
1
3
  import { defineTestSpec } from "@contractspec/lib.contracts";
2
-
3
- //#region src/run/run.test-spec.ts
4
- const runListTest = defineTestSpec({
5
- meta: {
6
- key: "test.agent.run.list",
7
- version: "1.0.0",
8
- owners: ["@agent-console-team"],
9
- description: "Test for listing runs",
10
- stability: "stable",
11
- tags: ["test"]
12
- },
13
- target: {
14
- type: "operation",
15
- operation: {
16
- key: "agent.run.list",
17
- version: "1.0.0"
18
- }
19
- },
20
- scenarios: [{
21
- key: "success",
22
- when: { operation: { key: "agent.run.list" } },
23
- then: [{
24
- type: "expectOutput",
25
- match: {}
26
- }]
27
- }, {
28
- key: "error",
29
- when: { operation: { key: "agent.run.list" } },
30
- then: [{ type: "expectError" }]
31
- }]
4
+ var runListTest = defineTestSpec({
5
+ meta: {
6
+ key: "test.agent.run.list",
7
+ version: "1.0.0",
8
+ owners: ["@agent-console-team"],
9
+ description: "Test for listing runs",
10
+ stability: "stable",
11
+ tags: ["test"]
12
+ },
13
+ target: {
14
+ type: "operation",
15
+ operation: { key: "agent.run.list", version: "1.0.0" }
16
+ },
17
+ scenarios: [
18
+ {
19
+ key: "success",
20
+ when: { operation: { key: "agent.run.list" } },
21
+ then: [{ type: "expectOutput", match: {} }]
22
+ },
23
+ {
24
+ key: "error",
25
+ when: { operation: { key: "agent.run.list" } },
26
+ then: [{ type: "expectError" }]
27
+ }
28
+ ]
32
29
  });
33
- const runGetTest = defineTestSpec({
34
- meta: {
35
- key: "test.agent.run.get",
36
- version: "1.0.0",
37
- owners: ["@agent-console-team"],
38
- description: "Test for getting run",
39
- stability: "stable",
40
- tags: ["test"]
41
- },
42
- target: {
43
- type: "operation",
44
- operation: {
45
- key: "agent.run.get",
46
- version: "1.0.0"
47
- }
48
- },
49
- scenarios: [{
50
- key: "success",
51
- when: { operation: { key: "agent.run.get" } },
52
- then: [{
53
- type: "expectOutput",
54
- match: {}
55
- }]
56
- }, {
57
- key: "error",
58
- when: { operation: { key: "agent.run.get" } },
59
- then: [{ type: "expectError" }]
60
- }]
30
+ var runGetTest = defineTestSpec({
31
+ meta: {
32
+ key: "test.agent.run.get",
33
+ version: "1.0.0",
34
+ owners: ["@agent-console-team"],
35
+ description: "Test for getting run",
36
+ stability: "stable",
37
+ tags: ["test"]
38
+ },
39
+ target: {
40
+ type: "operation",
41
+ operation: { key: "agent.run.get", version: "1.0.0" }
42
+ },
43
+ scenarios: [
44
+ {
45
+ key: "success",
46
+ when: { operation: { key: "agent.run.get" } },
47
+ then: [{ type: "expectOutput", match: {} }]
48
+ },
49
+ {
50
+ key: "error",
51
+ when: { operation: { key: "agent.run.get" } },
52
+ then: [{ type: "expectError" }]
53
+ }
54
+ ]
61
55
  });
62
-
63
- //#endregion
64
- export { runGetTest, runListTest };
65
- //# sourceMappingURL=run.test-spec.js.map
56
+ export {
57
+ runListTest,
58
+ runGetTest
59
+ };
@@ -1,10 +1,6 @@
1
- import { DatabasePort } from "@contractspec/lib.runtime-sandbox";
2
-
3
- //#region src/seeders/index.d.ts
4
- declare function seedAgentConsole(params: {
5
- projectId: string;
6
- db: DatabasePort;
1
+ import type { DatabasePort } from '@contractspec/lib.runtime-sandbox';
2
+ export declare function seedAgentConsole(params: {
3
+ projectId: string;
4
+ db: DatabasePort;
7
5
  }): Promise<void>;
8
- //#endregion
9
- export { seedAgentConsole };
10
6
  //# sourceMappingURL=index.d.ts.map