@contractspec/example.agent-console 0.0.0-canary-20260113170453

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 (306) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +280 -0
  2. package/.turbo/turbo-build.log +281 -0
  3. package/CHANGELOG.md +368 -0
  4. package/LICENSE +21 -0
  5. package/README.md +86 -0
  6. package/dist/agent/agent.entity.d.ts +55 -0
  7. package/dist/agent/agent.entity.d.ts.map +1 -0
  8. package/dist/agent/agent.entity.js +136 -0
  9. package/dist/agent/agent.entity.js.map +1 -0
  10. package/dist/agent/agent.enum.d.ts +18 -0
  11. package/dist/agent/agent.enum.d.ts.map +1 -0
  12. package/dist/agent/agent.enum.js +34 -0
  13. package/dist/agent/agent.enum.js.map +1 -0
  14. package/dist/agent/agent.event.d.ts +128 -0
  15. package/dist/agent/agent.event.d.ts.map +1 -0
  16. package/dist/agent/agent.event.js +210 -0
  17. package/dist/agent/agent.event.js.map +1 -0
  18. package/dist/agent/agent.handler.d.ts +100 -0
  19. package/dist/agent/agent.handler.d.ts.map +1 -0
  20. package/dist/agent/agent.handler.js +84 -0
  21. package/dist/agent/agent.handler.js.map +1 -0
  22. package/dist/agent/agent.operation.d.ts +471 -0
  23. package/dist/agent/agent.operation.d.ts.map +1 -0
  24. package/dist/agent/agent.operation.js +486 -0
  25. package/dist/agent/agent.operation.js.map +1 -0
  26. package/dist/agent/agent.presentation.d.ts +18 -0
  27. package/dist/agent/agent.presentation.d.ts.map +1 -0
  28. package/dist/agent/agent.presentation.js +89 -0
  29. package/dist/agent/agent.presentation.js.map +1 -0
  30. package/dist/agent/agent.schema.d.ts +401 -0
  31. package/dist/agent/agent.schema.d.ts.map +1 -0
  32. package/dist/agent/agent.schema.js +406 -0
  33. package/dist/agent/agent.schema.js.map +1 -0
  34. package/dist/agent/agent.test-spec.d.ts +8 -0
  35. package/dist/agent/agent.test-spec.d.ts.map +1 -0
  36. package/dist/agent/agent.test-spec.js +65 -0
  37. package/dist/agent/agent.test-spec.js.map +1 -0
  38. package/dist/agent/index.d.ts +8 -0
  39. package/dist/agent/index.js +9 -0
  40. package/dist/agent.capability.d.ts +7 -0
  41. package/dist/agent.capability.d.ts.map +1 -0
  42. package/dist/agent.capability.js +20 -0
  43. package/dist/agent.capability.js.map +1 -0
  44. package/dist/agent.feature.d.ts +12 -0
  45. package/dist/agent.feature.d.ts.map +1 -0
  46. package/dist/agent.feature.js +305 -0
  47. package/dist/agent.feature.js.map +1 -0
  48. package/dist/docs/agent-console.docblock.d.ts +1 -0
  49. package/dist/docs/agent-console.docblock.js +113 -0
  50. package/dist/docs/agent-console.docblock.js.map +1 -0
  51. package/dist/docs/index.d.ts +1 -0
  52. package/dist/docs/index.js +1 -0
  53. package/dist/example.d.ts +7 -0
  54. package/dist/example.d.ts.map +1 -0
  55. package/dist/example.js +58 -0
  56. package/dist/example.js.map +1 -0
  57. package/dist/handlers/agent.handlers.d.ts +135 -0
  58. package/dist/handlers/agent.handlers.d.ts.map +1 -0
  59. package/dist/handlers/agent.handlers.js +263 -0
  60. package/dist/handlers/agent.handlers.js.map +1 -0
  61. package/dist/handlers/index.d.ts +5 -0
  62. package/dist/handlers/index.js +6 -0
  63. package/dist/index.d.ts +48 -0
  64. package/dist/index.js +50 -0
  65. package/dist/presentations/index.d.ts +4 -0
  66. package/dist/presentations/index.js +5 -0
  67. package/dist/run/index.d.ts +8 -0
  68. package/dist/run/index.js +9 -0
  69. package/dist/run/run.entity.d.ts +82 -0
  70. package/dist/run/run.entity.d.ts.map +1 -0
  71. package/dist/run/run.entity.js +205 -0
  72. package/dist/run/run.entity.js.map +1 -0
  73. package/dist/run/run.enum.d.ts +22 -0
  74. package/dist/run/run.enum.d.ts.map +1 -0
  75. package/dist/run/run.enum.js +45 -0
  76. package/dist/run/run.enum.js.map +1 -0
  77. package/dist/run/run.event.d.ts +290 -0
  78. package/dist/run/run.event.d.ts.map +1 -0
  79. package/dist/run/run.event.js +434 -0
  80. package/dist/run/run.event.js.map +1 -0
  81. package/dist/run/run.handler.d.ts +203 -0
  82. package/dist/run/run.handler.d.ts.map +1 -0
  83. package/dist/run/run.handler.js +83 -0
  84. package/dist/run/run.handler.js.map +1 -0
  85. package/dist/run/run.operation.d.ts +720 -0
  86. package/dist/run/run.operation.d.ts.map +1 -0
  87. package/dist/run/run.operation.js +626 -0
  88. package/dist/run/run.operation.js.map +1 -0
  89. package/dist/run/run.presentation.d.ts +14 -0
  90. package/dist/run/run.presentation.d.ts.map +1 -0
  91. package/dist/run/run.presentation.js +65 -0
  92. package/dist/run/run.presentation.js.map +1 -0
  93. package/dist/run/run.schema.d.ts +416 -0
  94. package/dist/run/run.schema.d.ts.map +1 -0
  95. package/dist/run/run.schema.js +338 -0
  96. package/dist/run/run.schema.js.map +1 -0
  97. package/dist/run/run.test-spec.d.ts +8 -0
  98. package/dist/run/run.test-spec.d.ts.map +1 -0
  99. package/dist/run/run.test-spec.js +65 -0
  100. package/dist/run/run.test-spec.js.map +1 -0
  101. package/dist/seeders/index.d.ts +10 -0
  102. package/dist/seeders/index.d.ts.map +1 -0
  103. package/dist/seeders/index.js +20 -0
  104. package/dist/seeders/index.js.map +1 -0
  105. package/dist/shared/index.d.ts +4 -0
  106. package/dist/shared/index.js +5 -0
  107. package/dist/shared/mock-agents.d.ts +88 -0
  108. package/dist/shared/mock-agents.d.ts.map +1 -0
  109. package/dist/shared/mock-agents.js +94 -0
  110. package/dist/shared/mock-agents.js.map +1 -0
  111. package/dist/shared/mock-runs.d.ts +120 -0
  112. package/dist/shared/mock-runs.d.ts.map +1 -0
  113. package/dist/shared/mock-runs.js +118 -0
  114. package/dist/shared/mock-runs.js.map +1 -0
  115. package/dist/shared/mock-tools.d.ts +244 -0
  116. package/dist/shared/mock-tools.d.ts.map +1 -0
  117. package/dist/shared/mock-tools.js +181 -0
  118. package/dist/shared/mock-tools.js.map +1 -0
  119. package/dist/shared/overlay-types.d.ts +34 -0
  120. package/dist/shared/overlay-types.d.ts.map +1 -0
  121. package/dist/shared/overlay-types.js +0 -0
  122. package/dist/tool/index.d.ts +8 -0
  123. package/dist/tool/index.js +9 -0
  124. package/dist/tool/tool.entity.d.ts +42 -0
  125. package/dist/tool/tool.entity.d.ts.map +1 -0
  126. package/dist/tool/tool.entity.js +105 -0
  127. package/dist/tool/tool.entity.js.map +1 -0
  128. package/dist/tool/tool.enum.d.ts +18 -0
  129. package/dist/tool/tool.enum.d.ts.map +1 -0
  130. package/dist/tool/tool.enum.js +35 -0
  131. package/dist/tool/tool.enum.js.map +1 -0
  132. package/dist/tool/tool.event.d.ts +103 -0
  133. package/dist/tool/tool.event.d.ts.map +1 -0
  134. package/dist/tool/tool.event.js +159 -0
  135. package/dist/tool/tool.event.js.map +1 -0
  136. package/dist/tool/tool.handler.d.ts +315 -0
  137. package/dist/tool/tool.handler.d.ts.map +1 -0
  138. package/dist/tool/tool.handler.js +87 -0
  139. package/dist/tool/tool.handler.js.map +1 -0
  140. package/dist/tool/tool.operation.d.ts +411 -0
  141. package/dist/tool/tool.operation.d.ts.map +1 -0
  142. package/dist/tool/tool.operation.js +406 -0
  143. package/dist/tool/tool.operation.js.map +1 -0
  144. package/dist/tool/tool.presentation.d.ts +14 -0
  145. package/dist/tool/tool.presentation.d.ts.map +1 -0
  146. package/dist/tool/tool.presentation.js +65 -0
  147. package/dist/tool/tool.presentation.js.map +1 -0
  148. package/dist/tool/tool.schema.d.ts +218 -0
  149. package/dist/tool/tool.schema.d.ts.map +1 -0
  150. package/dist/tool/tool.schema.js +236 -0
  151. package/dist/tool/tool.schema.js.map +1 -0
  152. package/dist/tool/tool.test-spec.d.ts +8 -0
  153. package/dist/tool/tool.test-spec.d.ts.map +1 -0
  154. package/dist/tool/tool.test-spec.js +65 -0
  155. package/dist/tool/tool.test-spec.js.map +1 -0
  156. package/dist/ui/AgentDashboard.d.ts +7 -0
  157. package/dist/ui/AgentDashboard.d.ts.map +1 -0
  158. package/dist/ui/AgentDashboard.js +420 -0
  159. package/dist/ui/AgentDashboard.js.map +1 -0
  160. package/dist/ui/AgentRunList.d.ts +2 -0
  161. package/dist/ui/AgentRunList.js +5 -0
  162. package/dist/ui/AgentToolRegistry.d.ts +2 -0
  163. package/dist/ui/AgentToolRegistry.js +5 -0
  164. package/dist/ui/hooks/index.d.ts +6 -0
  165. package/dist/ui/hooks/index.js +8 -0
  166. package/dist/ui/hooks/useAgentList.d.ts +28 -0
  167. package/dist/ui/hooks/useAgentList.d.ts.map +1 -0
  168. package/dist/ui/hooks/useAgentList.js +66 -0
  169. package/dist/ui/hooks/useAgentList.js.map +1 -0
  170. package/dist/ui/hooks/useAgentMutations.d.ts +29 -0
  171. package/dist/ui/hooks/useAgentMutations.d.ts.map +1 -0
  172. package/dist/ui/hooks/useAgentMutations.js +124 -0
  173. package/dist/ui/hooks/useAgentMutations.js.map +1 -0
  174. package/dist/ui/hooks/useRunList.d.ts +24 -0
  175. package/dist/ui/hooks/useRunList.d.ts.map +1 -0
  176. package/dist/ui/hooks/useRunList.js +66 -0
  177. package/dist/ui/hooks/useRunList.js.map +1 -0
  178. package/dist/ui/hooks/useToolList.d.ts +40 -0
  179. package/dist/ui/hooks/useToolList.d.ts.map +1 -0
  180. package/dist/ui/hooks/useToolList.js +96 -0
  181. package/dist/ui/hooks/useToolList.js.map +1 -0
  182. package/dist/ui/index.d.ts +24 -0
  183. package/dist/ui/index.js +24 -0
  184. package/dist/ui/modals/AgentActionsModal.d.ts +27 -0
  185. package/dist/ui/modals/AgentActionsModal.d.ts.map +1 -0
  186. package/dist/ui/modals/AgentActionsModal.js +262 -0
  187. package/dist/ui/modals/AgentActionsModal.js.map +1 -0
  188. package/dist/ui/modals/CreateAgentModal.d.ts +25 -0
  189. package/dist/ui/modals/CreateAgentModal.d.ts.map +1 -0
  190. package/dist/ui/modals/CreateAgentModal.js +214 -0
  191. package/dist/ui/modals/CreateAgentModal.js.map +1 -0
  192. package/dist/ui/modals/index.d.ts +3 -0
  193. package/dist/ui/modals/index.js +4 -0
  194. package/dist/ui/overlays/demo-overlays.d.ts +19 -0
  195. package/dist/ui/overlays/demo-overlays.d.ts.map +1 -0
  196. package/dist/ui/overlays/demo-overlays.js +73 -0
  197. package/dist/ui/overlays/demo-overlays.js.map +1 -0
  198. package/dist/ui/overlays/index.d.ts +2 -0
  199. package/dist/ui/overlays/index.js +3 -0
  200. package/dist/ui/renderers/agent-list.markdown.d.ts +15 -0
  201. package/dist/ui/renderers/agent-list.markdown.d.ts.map +1 -0
  202. package/dist/ui/renderers/agent-list.markdown.js +51 -0
  203. package/dist/ui/renderers/agent-list.markdown.js.map +1 -0
  204. package/dist/ui/renderers/agent-list.renderer.d.ts +11 -0
  205. package/dist/ui/renderers/agent-list.renderer.d.ts.map +1 -0
  206. package/dist/ui/renderers/agent-list.renderer.js +19 -0
  207. package/dist/ui/renderers/agent-list.renderer.js.map +1 -0
  208. package/dist/ui/renderers/dashboard.markdown.d.ts +15 -0
  209. package/dist/ui/renderers/dashboard.markdown.d.ts.map +1 -0
  210. package/dist/ui/renderers/dashboard.markdown.js +100 -0
  211. package/dist/ui/renderers/dashboard.markdown.js.map +1 -0
  212. package/dist/ui/renderers/index.d.ts +6 -0
  213. package/dist/ui/renderers/index.js +7 -0
  214. package/dist/ui/renderers/run-list.markdown.d.ts +15 -0
  215. package/dist/ui/renderers/run-list.markdown.d.ts.map +1 -0
  216. package/dist/ui/renderers/run-list.markdown.js +44 -0
  217. package/dist/ui/renderers/run-list.markdown.js.map +1 -0
  218. package/dist/ui/renderers/tool-registry.markdown.d.ts +15 -0
  219. package/dist/ui/renderers/tool-registry.markdown.d.ts.map +1 -0
  220. package/dist/ui/renderers/tool-registry.markdown.js +55 -0
  221. package/dist/ui/renderers/tool-registry.markdown.js.map +1 -0
  222. package/dist/ui/views/AgentListView.d.ts +7 -0
  223. package/dist/ui/views/AgentListView.d.ts.map +1 -0
  224. package/dist/ui/views/AgentListView.js +93 -0
  225. package/dist/ui/views/AgentListView.js.map +1 -0
  226. package/dist/ui/views/RunListView.d.ts +14 -0
  227. package/dist/ui/views/RunListView.d.ts.map +1 -0
  228. package/dist/ui/views/RunListView.js +165 -0
  229. package/dist/ui/views/RunListView.js.map +1 -0
  230. package/dist/ui/views/ToolRegistryView.d.ts +14 -0
  231. package/dist/ui/views/ToolRegistryView.d.ts.map +1 -0
  232. package/dist/ui/views/ToolRegistryView.js +97 -0
  233. package/dist/ui/views/ToolRegistryView.js.map +1 -0
  234. package/dist/ui/views/index.d.ts +4 -0
  235. package/dist/ui/views/index.js +5 -0
  236. package/example.ts +1 -0
  237. package/package.json +155 -0
  238. package/src/agent/agent.entity.ts +137 -0
  239. package/src/agent/agent.enum.ts +31 -0
  240. package/src/agent/agent.event.ts +142 -0
  241. package/src/agent/agent.handler.ts +178 -0
  242. package/src/agent/agent.operation.ts +444 -0
  243. package/src/agent/agent.presentation.ts +80 -0
  244. package/src/agent/agent.schema.ts +214 -0
  245. package/src/agent/agent.test-spec.ts +55 -0
  246. package/src/agent/index.ts +67 -0
  247. package/src/agent.capability.ts +13 -0
  248. package/src/agent.feature.ts +147 -0
  249. package/src/docs/agent-console.docblock.ts +97 -0
  250. package/src/docs/index.ts +1 -0
  251. package/src/example.ts +41 -0
  252. package/src/handlers/agent.handlers.ts +572 -0
  253. package/src/handlers/index.ts +30 -0
  254. package/src/index.ts +32 -0
  255. package/src/presentations/index.ts +26 -0
  256. package/src/run/index.ts +68 -0
  257. package/src/run/run.entity.ts +175 -0
  258. package/src/run/run.enum.ts +43 -0
  259. package/src/run/run.event.ts +264 -0
  260. package/src/run/run.handler.ts +138 -0
  261. package/src/run/run.operation.ts +524 -0
  262. package/src/run/run.presentation.ts +54 -0
  263. package/src/run/run.schema.ts +169 -0
  264. package/src/run/run.test-spec.ts +55 -0
  265. package/src/seeders/index.ts +29 -0
  266. package/src/shared/index.ts +6 -0
  267. package/src/shared/mock-agents.ts +81 -0
  268. package/src/shared/mock-runs.ts +107 -0
  269. package/src/shared/mock-tools.ts +145 -0
  270. package/src/shared/overlay-types.ts +39 -0
  271. package/src/tool/index.ts +60 -0
  272. package/src/tool/tool.entity.ts +99 -0
  273. package/src/tool/tool.enum.ts +32 -0
  274. package/src/tool/tool.event.ts +119 -0
  275. package/src/tool/tool.handler.ts +154 -0
  276. package/src/tool/tool.operation.ts +366 -0
  277. package/src/tool/tool.presentation.ts +55 -0
  278. package/src/tool/tool.schema.ts +133 -0
  279. package/src/tool/tool.test-spec.ts +55 -0
  280. package/src/ui/AgentDashboard.tsx +416 -0
  281. package/src/ui/AgentRunList.tsx +8 -0
  282. package/src/ui/AgentToolRegistry.tsx +8 -0
  283. package/src/ui/hooks/index.ts +14 -0
  284. package/src/ui/hooks/useAgentList.ts +80 -0
  285. package/src/ui/hooks/useAgentMutations.ts +156 -0
  286. package/src/ui/hooks/useRunList.ts +81 -0
  287. package/src/ui/hooks/useToolList.ts +122 -0
  288. package/src/ui/index.ts +21 -0
  289. package/src/ui/modals/AgentActionsModal.tsx +306 -0
  290. package/src/ui/modals/CreateAgentModal.tsx +257 -0
  291. package/src/ui/modals/index.ts +2 -0
  292. package/src/ui/overlays/demo-overlays.ts +77 -0
  293. package/src/ui/overlays/index.ts +1 -0
  294. package/src/ui/renderers/agent-list.markdown.ts +84 -0
  295. package/src/ui/renderers/agent-list.renderer.tsx +27 -0
  296. package/src/ui/renderers/dashboard.markdown.ts +169 -0
  297. package/src/ui/renderers/index.ts +12 -0
  298. package/src/ui/renderers/run-list.markdown.ts +75 -0
  299. package/src/ui/renderers/tool-registry.markdown.ts +91 -0
  300. package/src/ui/views/AgentListView.tsx +113 -0
  301. package/src/ui/views/RunListView.tsx +173 -0
  302. package/src/ui/views/ToolRegistryView.tsx +140 -0
  303. package/src/ui/views/index.ts +6 -0
  304. package/tsconfig.json +10 -0
  305. package/tsconfig.tsbuildinfo +1 -0
  306. package/tsdown.config.js +7 -0
@@ -0,0 +1,65 @@
1
+ import { RunSummaryModel } from "./run.schema.js";
2
+ import { StabilityEnum, definePresentation } from "@contractspec/lib.contracts";
3
+
4
+ //#region src/run/run.presentation.ts
5
+ /**
6
+ * Presentation for displaying a list of agent runs.
7
+ */
8
+ const RunListPresentation = definePresentation({
9
+ meta: {
10
+ key: "agent-console.run.list",
11
+ version: "1.0.0",
12
+ title: "Run List",
13
+ description: "List view of agent runs with status, tokens, and duration info",
14
+ goal: "Provide an overview of agent execution history and performance.",
15
+ context: "Run history dashboard.",
16
+ domain: "agent-console",
17
+ owners: ["@agent-console-team"],
18
+ tags: [
19
+ "run",
20
+ "list",
21
+ "dashboard"
22
+ ],
23
+ stability: StabilityEnum.Experimental
24
+ },
25
+ source: {
26
+ type: "component",
27
+ framework: "react",
28
+ componentKey: "RunListView",
29
+ props: RunSummaryModel
30
+ },
31
+ targets: [
32
+ "react",
33
+ "markdown",
34
+ "application/json"
35
+ ],
36
+ policy: { flags: ["agent-console.enabled"] }
37
+ });
38
+ /**
39
+ * Presentation for run detail view.
40
+ */
41
+ const RunDetailPresentation = definePresentation({
42
+ meta: {
43
+ key: "agent-console.run.detail",
44
+ version: "1.0.0",
45
+ title: "Run Details",
46
+ description: "Detailed view of an agent run with steps, logs, and metrics",
47
+ goal: "Allow users to inspect and debug a specific agent run.",
48
+ context: "Detailed view of an agent run.",
49
+ domain: "agent-console",
50
+ owners: ["@agent-console-team"],
51
+ tags: ["run", "detail"],
52
+ stability: StabilityEnum.Experimental
53
+ },
54
+ source: {
55
+ type: "component",
56
+ framework: "react",
57
+ componentKey: "RunDetailView"
58
+ },
59
+ targets: ["react", "markdown"],
60
+ policy: { flags: ["agent-console.enabled"] }
61
+ });
62
+
63
+ //#endregion
64
+ export { RunDetailPresentation, RunListPresentation };
65
+ //# sourceMappingURL=run.presentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.presentation.js","names":[],"sources":["../../src/run/run.presentation.ts"],"sourcesContent":["import { StabilityEnum, definePresentation } from '@contractspec/lib.contracts';\nimport { RunSummaryModel } from './run.schema';\n\n/**\n * Presentation for displaying a list of agent runs.\n */\nexport const RunListPresentation = definePresentation({\n meta: {\n key: 'agent-console.run.list',\n version: '1.0.0',\n title: 'Run List',\n description:\n 'List view of agent runs with status, tokens, and duration info',\n goal: 'Provide an overview of agent execution history and performance.',\n context: 'Run history dashboard.',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['run', 'list', 'dashboard'],\n stability: StabilityEnum.Experimental,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'RunListView',\n props: RunSummaryModel,\n },\n targets: ['react', 'markdown', 'application/json'],\n policy: { flags: ['agent-console.enabled'] },\n});\n\n/**\n * Presentation for run detail view.\n */\nexport const RunDetailPresentation = definePresentation({\n meta: {\n key: 'agent-console.run.detail',\n version: '1.0.0',\n title: 'Run Details',\n description: 'Detailed view of an agent run with steps, logs, and metrics',\n goal: 'Allow users to inspect and debug a specific agent run.',\n context: 'Detailed view of an agent run.',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['run', 'detail'],\n stability: StabilityEnum.Experimental,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'RunDetailView',\n },\n targets: ['react', 'markdown'],\n policy: { flags: ['agent-console.enabled'] },\n});\n"],"mappings":";;;;;;;AAMA,MAAa,sBAAsB,mBAAmB;CACpD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,SAAS;EACT,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM;GAAC;GAAO;GAAQ;GAAY;EAClC,WAAW,cAAc;EAC1B;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS;EAAC;EAAS;EAAY;EAAmB;CAClD,QAAQ,EAAE,OAAO,CAAC,wBAAwB,EAAE;CAC7C,CAAC;;;;AAKF,MAAa,wBAAwB,mBAAmB;CACtD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,MAAM;EACN,SAAS;EACT,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM,CAAC,OAAO,SAAS;EACvB,WAAW,cAAc;EAC1B;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EAAE,OAAO,CAAC,wBAAwB,EAAE;CAC7C,CAAC"}
@@ -0,0 +1,416 @@
1
+ import * as _contractspec_lib_schema481 from "@contractspec/lib.schema";
2
+
3
+ //#region src/run/run.schema.d.ts
4
+ /**
5
+ * Input data for agent execution.
6
+ */
7
+ declare const RunInputModel: _contractspec_lib_schema481.SchemaModel<{
8
+ message: {
9
+ type: _contractspec_lib_schema481.FieldType<string, string>;
10
+ isOptional: false;
11
+ };
12
+ context: {
13
+ type: _contractspec_lib_schema481.FieldType<Record<string, unknown>, Record<string, unknown>>;
14
+ isOptional: true;
15
+ };
16
+ }>;
17
+ /**
18
+ * Individual step within a run.
19
+ */
20
+ declare const RunStepModel: _contractspec_lib_schema481.SchemaModel<{
21
+ id: {
22
+ type: _contractspec_lib_schema481.FieldType<string, string>;
23
+ isOptional: false;
24
+ };
25
+ stepNumber: {
26
+ type: _contractspec_lib_schema481.FieldType<number, number>;
27
+ isOptional: false;
28
+ };
29
+ type: {
30
+ type: _contractspec_lib_schema481.EnumType<[string, string, string, string]>;
31
+ isOptional: false;
32
+ };
33
+ toolId: {
34
+ type: _contractspec_lib_schema481.FieldType<string, string>;
35
+ isOptional: true;
36
+ };
37
+ toolName: {
38
+ type: _contractspec_lib_schema481.FieldType<string, string>;
39
+ isOptional: true;
40
+ };
41
+ input: {
42
+ type: _contractspec_lib_schema481.FieldType<Record<string, unknown>, Record<string, unknown>>;
43
+ isOptional: true;
44
+ };
45
+ output: {
46
+ type: _contractspec_lib_schema481.FieldType<Record<string, unknown>, Record<string, unknown>>;
47
+ isOptional: true;
48
+ };
49
+ status: {
50
+ type: _contractspec_lib_schema481.EnumType<[string, string, string, string, string, string]>;
51
+ isOptional: false;
52
+ };
53
+ errorMessage: {
54
+ type: _contractspec_lib_schema481.FieldType<string, string>;
55
+ isOptional: true;
56
+ };
57
+ tokensUsed: {
58
+ type: _contractspec_lib_schema481.FieldType<number, number>;
59
+ isOptional: false;
60
+ defaultValue: number;
61
+ };
62
+ durationMs: {
63
+ type: _contractspec_lib_schema481.FieldType<number, number>;
64
+ isOptional: true;
65
+ };
66
+ startedAt: {
67
+ type: _contractspec_lib_schema481.FieldType<Date, string>;
68
+ isOptional: false;
69
+ };
70
+ completedAt: {
71
+ type: _contractspec_lib_schema481.FieldType<Date, string>;
72
+ isOptional: true;
73
+ };
74
+ }>;
75
+ /**
76
+ * Execution log entry.
77
+ */
78
+ declare const RunLogModel: _contractspec_lib_schema481.SchemaModel<{
79
+ id: {
80
+ type: _contractspec_lib_schema481.FieldType<string, string>;
81
+ isOptional: false;
82
+ };
83
+ stepId: {
84
+ type: _contractspec_lib_schema481.FieldType<string, string>;
85
+ isOptional: true;
86
+ };
87
+ level: {
88
+ type: _contractspec_lib_schema481.EnumType<[string, string, string, string]>;
89
+ isOptional: false;
90
+ };
91
+ message: {
92
+ type: _contractspec_lib_schema481.FieldType<string, string>;
93
+ isOptional: false;
94
+ };
95
+ data: {
96
+ type: _contractspec_lib_schema481.FieldType<Record<string, unknown>, Record<string, unknown>>;
97
+ isOptional: true;
98
+ };
99
+ source: {
100
+ type: _contractspec_lib_schema481.FieldType<string, string>;
101
+ isOptional: true;
102
+ };
103
+ traceId: {
104
+ type: _contractspec_lib_schema481.FieldType<string, string>;
105
+ isOptional: true;
106
+ };
107
+ spanId: {
108
+ type: _contractspec_lib_schema481.FieldType<string, string>;
109
+ isOptional: true;
110
+ };
111
+ timestamp: {
112
+ type: _contractspec_lib_schema481.FieldType<Date, string>;
113
+ isOptional: false;
114
+ };
115
+ }>;
116
+ /**
117
+ * Agent reference in a run.
118
+ */
119
+ declare const RunAgentRefModel: _contractspec_lib_schema481.SchemaModel<{
120
+ id: {
121
+ type: _contractspec_lib_schema481.FieldType<string, string>;
122
+ isOptional: false;
123
+ };
124
+ name: {
125
+ type: _contractspec_lib_schema481.FieldType<string, string>;
126
+ isOptional: false;
127
+ };
128
+ modelProvider: {
129
+ type: _contractspec_lib_schema481.FieldType<string, string>;
130
+ isOptional: false;
131
+ };
132
+ modelName: {
133
+ type: _contractspec_lib_schema481.FieldType<string, string>;
134
+ isOptional: false;
135
+ };
136
+ }>;
137
+ /**
138
+ * Agent execution instance.
139
+ */
140
+ declare const RunModel: _contractspec_lib_schema481.SchemaModel<{
141
+ id: {
142
+ type: _contractspec_lib_schema481.FieldType<string, string>;
143
+ isOptional: false;
144
+ };
145
+ organizationId: {
146
+ type: _contractspec_lib_schema481.FieldType<string, string>;
147
+ isOptional: false;
148
+ };
149
+ agentId: {
150
+ type: _contractspec_lib_schema481.FieldType<string, string>;
151
+ isOptional: false;
152
+ };
153
+ userId: {
154
+ type: _contractspec_lib_schema481.FieldType<string, string>;
155
+ isOptional: true;
156
+ };
157
+ sessionId: {
158
+ type: _contractspec_lib_schema481.FieldType<string, string>;
159
+ isOptional: true;
160
+ };
161
+ input: {
162
+ type: _contractspec_lib_schema481.FieldType<Record<string, unknown>, Record<string, unknown>>;
163
+ isOptional: false;
164
+ };
165
+ output: {
166
+ type: _contractspec_lib_schema481.FieldType<Record<string, unknown>, Record<string, unknown>>;
167
+ isOptional: true;
168
+ };
169
+ status: {
170
+ type: _contractspec_lib_schema481.EnumType<[string, string, string, string, string, string]>;
171
+ isOptional: false;
172
+ };
173
+ errorMessage: {
174
+ type: _contractspec_lib_schema481.FieldType<string, string>;
175
+ isOptional: true;
176
+ };
177
+ errorCode: {
178
+ type: _contractspec_lib_schema481.FieldType<string, string>;
179
+ isOptional: true;
180
+ };
181
+ totalTokens: {
182
+ type: _contractspec_lib_schema481.FieldType<number, number>;
183
+ isOptional: false;
184
+ defaultValue: number;
185
+ };
186
+ promptTokens: {
187
+ type: _contractspec_lib_schema481.FieldType<number, number>;
188
+ isOptional: false;
189
+ defaultValue: number;
190
+ };
191
+ completionTokens: {
192
+ type: _contractspec_lib_schema481.FieldType<number, number>;
193
+ isOptional: false;
194
+ defaultValue: number;
195
+ };
196
+ totalIterations: {
197
+ type: _contractspec_lib_schema481.FieldType<number, number>;
198
+ isOptional: false;
199
+ defaultValue: number;
200
+ };
201
+ durationMs: {
202
+ type: _contractspec_lib_schema481.FieldType<number, number>;
203
+ isOptional: true;
204
+ };
205
+ estimatedCostUsd: {
206
+ type: _contractspec_lib_schema481.FieldType<number, number>;
207
+ isOptional: true;
208
+ };
209
+ queuedAt: {
210
+ type: _contractspec_lib_schema481.FieldType<Date, string>;
211
+ isOptional: false;
212
+ };
213
+ startedAt: {
214
+ type: _contractspec_lib_schema481.FieldType<Date, string>;
215
+ isOptional: true;
216
+ };
217
+ completedAt: {
218
+ type: _contractspec_lib_schema481.FieldType<Date, string>;
219
+ isOptional: true;
220
+ };
221
+ metadata: {
222
+ type: _contractspec_lib_schema481.FieldType<Record<string, unknown>, Record<string, unknown>>;
223
+ isOptional: true;
224
+ };
225
+ steps: {
226
+ type: _contractspec_lib_schema481.SchemaModel<{
227
+ id: {
228
+ type: _contractspec_lib_schema481.FieldType<string, string>;
229
+ isOptional: false;
230
+ };
231
+ stepNumber: {
232
+ type: _contractspec_lib_schema481.FieldType<number, number>;
233
+ isOptional: false;
234
+ };
235
+ type: {
236
+ type: _contractspec_lib_schema481.EnumType<[string, string, string, string]>;
237
+ isOptional: false;
238
+ };
239
+ toolId: {
240
+ type: _contractspec_lib_schema481.FieldType<string, string>;
241
+ isOptional: true;
242
+ };
243
+ toolName: {
244
+ type: _contractspec_lib_schema481.FieldType<string, string>;
245
+ isOptional: true;
246
+ };
247
+ input: {
248
+ type: _contractspec_lib_schema481.FieldType<Record<string, unknown>, Record<string, unknown>>;
249
+ isOptional: true;
250
+ };
251
+ output: {
252
+ type: _contractspec_lib_schema481.FieldType<Record<string, unknown>, Record<string, unknown>>;
253
+ isOptional: true;
254
+ };
255
+ status: {
256
+ type: _contractspec_lib_schema481.EnumType<[string, string, string, string, string, string]>;
257
+ isOptional: false;
258
+ };
259
+ errorMessage: {
260
+ type: _contractspec_lib_schema481.FieldType<string, string>;
261
+ isOptional: true;
262
+ };
263
+ tokensUsed: {
264
+ type: _contractspec_lib_schema481.FieldType<number, number>;
265
+ isOptional: false;
266
+ defaultValue: number;
267
+ };
268
+ durationMs: {
269
+ type: _contractspec_lib_schema481.FieldType<number, number>;
270
+ isOptional: true;
271
+ };
272
+ startedAt: {
273
+ type: _contractspec_lib_schema481.FieldType<Date, string>;
274
+ isOptional: false;
275
+ };
276
+ completedAt: {
277
+ type: _contractspec_lib_schema481.FieldType<Date, string>;
278
+ isOptional: true;
279
+ };
280
+ }>;
281
+ isArray: true;
282
+ isOptional: true;
283
+ };
284
+ logs: {
285
+ type: _contractspec_lib_schema481.SchemaModel<{
286
+ id: {
287
+ type: _contractspec_lib_schema481.FieldType<string, string>;
288
+ isOptional: false;
289
+ };
290
+ stepId: {
291
+ type: _contractspec_lib_schema481.FieldType<string, string>;
292
+ isOptional: true;
293
+ };
294
+ level: {
295
+ type: _contractspec_lib_schema481.EnumType<[string, string, string, string]>;
296
+ isOptional: false;
297
+ };
298
+ message: {
299
+ type: _contractspec_lib_schema481.FieldType<string, string>;
300
+ isOptional: false;
301
+ };
302
+ data: {
303
+ type: _contractspec_lib_schema481.FieldType<Record<string, unknown>, Record<string, unknown>>;
304
+ isOptional: true;
305
+ };
306
+ source: {
307
+ type: _contractspec_lib_schema481.FieldType<string, string>;
308
+ isOptional: true;
309
+ };
310
+ traceId: {
311
+ type: _contractspec_lib_schema481.FieldType<string, string>;
312
+ isOptional: true;
313
+ };
314
+ spanId: {
315
+ type: _contractspec_lib_schema481.FieldType<string, string>;
316
+ isOptional: true;
317
+ };
318
+ timestamp: {
319
+ type: _contractspec_lib_schema481.FieldType<Date, string>;
320
+ isOptional: false;
321
+ };
322
+ }>;
323
+ isArray: true;
324
+ isOptional: true;
325
+ };
326
+ agent: {
327
+ type: _contractspec_lib_schema481.SchemaModel<{
328
+ id: {
329
+ type: _contractspec_lib_schema481.FieldType<string, string>;
330
+ isOptional: false;
331
+ };
332
+ name: {
333
+ type: _contractspec_lib_schema481.FieldType<string, string>;
334
+ isOptional: false;
335
+ };
336
+ modelProvider: {
337
+ type: _contractspec_lib_schema481.FieldType<string, string>;
338
+ isOptional: false;
339
+ };
340
+ modelName: {
341
+ type: _contractspec_lib_schema481.FieldType<string, string>;
342
+ isOptional: false;
343
+ };
344
+ }>;
345
+ isOptional: true;
346
+ };
347
+ }>;
348
+ /**
349
+ * Summary of a run for list views.
350
+ */
351
+ declare const RunSummaryModel: _contractspec_lib_schema481.SchemaModel<{
352
+ id: {
353
+ type: _contractspec_lib_schema481.FieldType<string, string>;
354
+ isOptional: false;
355
+ };
356
+ agentId: {
357
+ type: _contractspec_lib_schema481.FieldType<string, string>;
358
+ isOptional: false;
359
+ };
360
+ agentName: {
361
+ type: _contractspec_lib_schema481.FieldType<string, string>;
362
+ isOptional: false;
363
+ };
364
+ status: {
365
+ type: _contractspec_lib_schema481.EnumType<[string, string, string, string, string, string]>;
366
+ isOptional: false;
367
+ };
368
+ totalTokens: {
369
+ type: _contractspec_lib_schema481.FieldType<number, number>;
370
+ isOptional: false;
371
+ };
372
+ durationMs: {
373
+ type: _contractspec_lib_schema481.FieldType<number, number>;
374
+ isOptional: true;
375
+ };
376
+ estimatedCostUsd: {
377
+ type: _contractspec_lib_schema481.FieldType<number, number>;
378
+ isOptional: true;
379
+ };
380
+ queuedAt: {
381
+ type: _contractspec_lib_schema481.FieldType<Date, string>;
382
+ isOptional: false;
383
+ };
384
+ completedAt: {
385
+ type: _contractspec_lib_schema481.FieldType<Date, string>;
386
+ isOptional: true;
387
+ };
388
+ }>;
389
+ /**
390
+ * Timeline data point for metrics.
391
+ */
392
+ declare const TimelineDataPointModel: _contractspec_lib_schema481.SchemaModel<{
393
+ period: {
394
+ type: _contractspec_lib_schema481.FieldType<string, string>;
395
+ isOptional: false;
396
+ };
397
+ runs: {
398
+ type: _contractspec_lib_schema481.FieldType<number, number>;
399
+ isOptional: false;
400
+ };
401
+ tokens: {
402
+ type: _contractspec_lib_schema481.FieldType<number, number>;
403
+ isOptional: false;
404
+ };
405
+ costUsd: {
406
+ type: _contractspec_lib_schema481.FieldType<number, number>;
407
+ isOptional: false;
408
+ };
409
+ avgDurationMs: {
410
+ type: _contractspec_lib_schema481.FieldType<number, number>;
411
+ isOptional: false;
412
+ };
413
+ }>;
414
+ //#endregion
415
+ export { RunAgentRefModel, RunInputModel, RunLogModel, RunModel, RunStepModel, RunSummaryModel, TimelineDataPointModel };
416
+ //# sourceMappingURL=run.schema.d.ts.map
@@ -0,0 +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"}