@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,720 @@
1
+ import * as _contractspec_lib_contracts12 from "@contractspec/lib.contracts";
2
+ import * as _contractspec_lib_schema194 from "@contractspec/lib.schema";
3
+
4
+ //#region src/run/run.operation.d.ts
5
+ /**
6
+ * ExecuteAgentCommand - Starts a new agent run.
7
+ */
8
+ declare const ExecuteAgentCommand: _contractspec_lib_contracts12.OperationSpec<_contractspec_lib_schema194.SchemaModel<{
9
+ agentId: {
10
+ type: _contractspec_lib_schema194.FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ input: {
14
+ type: _contractspec_lib_schema194.SchemaModel<{
15
+ message: {
16
+ type: _contractspec_lib_schema194.FieldType<string, string>;
17
+ isOptional: false;
18
+ };
19
+ context: {
20
+ type: _contractspec_lib_schema194.FieldType<Record<string, unknown>, Record<string, unknown>>;
21
+ isOptional: true;
22
+ };
23
+ }>;
24
+ isOptional: false;
25
+ };
26
+ sessionId: {
27
+ type: _contractspec_lib_schema194.FieldType<string, string>;
28
+ isOptional: true;
29
+ };
30
+ metadata: {
31
+ type: _contractspec_lib_schema194.FieldType<Record<string, unknown>, Record<string, unknown>>;
32
+ isOptional: true;
33
+ };
34
+ stream: {
35
+ type: _contractspec_lib_schema194.FieldType<boolean, boolean>;
36
+ isOptional: true;
37
+ };
38
+ maxIterations: {
39
+ type: _contractspec_lib_schema194.FieldType<number, number>;
40
+ isOptional: true;
41
+ };
42
+ timeoutMs: {
43
+ type: _contractspec_lib_schema194.FieldType<number, number>;
44
+ isOptional: true;
45
+ };
46
+ }>, _contractspec_lib_schema194.SchemaModel<{
47
+ runId: {
48
+ type: _contractspec_lib_schema194.FieldType<string, string>;
49
+ isOptional: false;
50
+ };
51
+ status: {
52
+ type: _contractspec_lib_schema194.EnumType<[string, string, string, string, string, string]>;
53
+ isOptional: false;
54
+ };
55
+ estimatedWaitMs: {
56
+ type: _contractspec_lib_schema194.FieldType<number, number>;
57
+ isOptional: true;
58
+ };
59
+ }>, {
60
+ key: string;
61
+ version: string;
62
+ stability: string;
63
+ owners: "@agent-console-team"[];
64
+ tags: string[];
65
+ when: string;
66
+ payload: _contractspec_lib_schema194.SchemaModel<{
67
+ id: {
68
+ type: _contractspec_lib_schema194.FieldType<string, string>;
69
+ isOptional: false;
70
+ };
71
+ agentId: {
72
+ type: _contractspec_lib_schema194.FieldType<string, string>;
73
+ isOptional: false;
74
+ };
75
+ agentName: {
76
+ type: _contractspec_lib_schema194.FieldType<string, string>;
77
+ isOptional: false;
78
+ };
79
+ status: {
80
+ type: _contractspec_lib_schema194.EnumType<[string, string, string, string, string, string]>;
81
+ isOptional: false;
82
+ };
83
+ totalTokens: {
84
+ type: _contractspec_lib_schema194.FieldType<number, number>;
85
+ isOptional: false;
86
+ };
87
+ durationMs: {
88
+ type: _contractspec_lib_schema194.FieldType<number, number>;
89
+ isOptional: true;
90
+ };
91
+ estimatedCostUsd: {
92
+ type: _contractspec_lib_schema194.FieldType<number, number>;
93
+ isOptional: true;
94
+ };
95
+ queuedAt: {
96
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
97
+ isOptional: false;
98
+ };
99
+ completedAt: {
100
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
101
+ isOptional: true;
102
+ };
103
+ }>;
104
+ }[]>;
105
+ /**
106
+ * CancelRunCommand - Cancels an in-progress run.
107
+ */
108
+ declare const CancelRunCommand: _contractspec_lib_contracts12.OperationSpec<_contractspec_lib_schema194.SchemaModel<{
109
+ runId: {
110
+ type: _contractspec_lib_schema194.FieldType<string, string>;
111
+ isOptional: false;
112
+ };
113
+ reason: {
114
+ type: _contractspec_lib_schema194.FieldType<string, string>;
115
+ isOptional: true;
116
+ };
117
+ }>, _contractspec_lib_schema194.SchemaModel<{
118
+ success: {
119
+ type: _contractspec_lib_schema194.FieldType<boolean, boolean>;
120
+ isOptional: false;
121
+ };
122
+ status: {
123
+ type: _contractspec_lib_schema194.EnumType<[string, string, string, string, string, string]>;
124
+ isOptional: false;
125
+ };
126
+ }>, {
127
+ key: string;
128
+ version: string;
129
+ stability: string;
130
+ owners: "@agent-console-team"[];
131
+ tags: string[];
132
+ when: string;
133
+ payload: _contractspec_lib_schema194.SchemaModel<{
134
+ id: {
135
+ type: _contractspec_lib_schema194.FieldType<string, string>;
136
+ isOptional: false;
137
+ };
138
+ agentId: {
139
+ type: _contractspec_lib_schema194.FieldType<string, string>;
140
+ isOptional: false;
141
+ };
142
+ agentName: {
143
+ type: _contractspec_lib_schema194.FieldType<string, string>;
144
+ isOptional: false;
145
+ };
146
+ status: {
147
+ type: _contractspec_lib_schema194.EnumType<[string, string, string, string, string, string]>;
148
+ isOptional: false;
149
+ };
150
+ totalTokens: {
151
+ type: _contractspec_lib_schema194.FieldType<number, number>;
152
+ isOptional: false;
153
+ };
154
+ durationMs: {
155
+ type: _contractspec_lib_schema194.FieldType<number, number>;
156
+ isOptional: true;
157
+ };
158
+ estimatedCostUsd: {
159
+ type: _contractspec_lib_schema194.FieldType<number, number>;
160
+ isOptional: true;
161
+ };
162
+ queuedAt: {
163
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
164
+ isOptional: false;
165
+ };
166
+ completedAt: {
167
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
168
+ isOptional: true;
169
+ };
170
+ }>;
171
+ }[]>;
172
+ /**
173
+ * GetRunQuery - Retrieves a run by ID.
174
+ */
175
+ declare const GetRunQuery: _contractspec_lib_contracts12.OperationSpec<_contractspec_lib_schema194.SchemaModel<{
176
+ runId: {
177
+ type: _contractspec_lib_schema194.FieldType<string, string>;
178
+ isOptional: false;
179
+ };
180
+ includeSteps: {
181
+ type: _contractspec_lib_schema194.FieldType<boolean, boolean>;
182
+ isOptional: true;
183
+ };
184
+ includeLogs: {
185
+ type: _contractspec_lib_schema194.FieldType<boolean, boolean>;
186
+ isOptional: true;
187
+ };
188
+ }>, _contractspec_lib_schema194.SchemaModel<{
189
+ id: {
190
+ type: _contractspec_lib_schema194.FieldType<string, string>;
191
+ isOptional: false;
192
+ };
193
+ organizationId: {
194
+ type: _contractspec_lib_schema194.FieldType<string, string>;
195
+ isOptional: false;
196
+ };
197
+ agentId: {
198
+ type: _contractspec_lib_schema194.FieldType<string, string>;
199
+ isOptional: false;
200
+ };
201
+ userId: {
202
+ type: _contractspec_lib_schema194.FieldType<string, string>;
203
+ isOptional: true;
204
+ };
205
+ sessionId: {
206
+ type: _contractspec_lib_schema194.FieldType<string, string>;
207
+ isOptional: true;
208
+ };
209
+ input: {
210
+ type: _contractspec_lib_schema194.FieldType<Record<string, unknown>, Record<string, unknown>>;
211
+ isOptional: false;
212
+ };
213
+ output: {
214
+ type: _contractspec_lib_schema194.FieldType<Record<string, unknown>, Record<string, unknown>>;
215
+ isOptional: true;
216
+ };
217
+ status: {
218
+ type: _contractspec_lib_schema194.EnumType<[string, string, string, string, string, string]>;
219
+ isOptional: false;
220
+ };
221
+ errorMessage: {
222
+ type: _contractspec_lib_schema194.FieldType<string, string>;
223
+ isOptional: true;
224
+ };
225
+ errorCode: {
226
+ type: _contractspec_lib_schema194.FieldType<string, string>;
227
+ isOptional: true;
228
+ };
229
+ totalTokens: {
230
+ type: _contractspec_lib_schema194.FieldType<number, number>;
231
+ isOptional: false;
232
+ defaultValue: number;
233
+ };
234
+ promptTokens: {
235
+ type: _contractspec_lib_schema194.FieldType<number, number>;
236
+ isOptional: false;
237
+ defaultValue: number;
238
+ };
239
+ completionTokens: {
240
+ type: _contractspec_lib_schema194.FieldType<number, number>;
241
+ isOptional: false;
242
+ defaultValue: number;
243
+ };
244
+ totalIterations: {
245
+ type: _contractspec_lib_schema194.FieldType<number, number>;
246
+ isOptional: false;
247
+ defaultValue: number;
248
+ };
249
+ durationMs: {
250
+ type: _contractspec_lib_schema194.FieldType<number, number>;
251
+ isOptional: true;
252
+ };
253
+ estimatedCostUsd: {
254
+ type: _contractspec_lib_schema194.FieldType<number, number>;
255
+ isOptional: true;
256
+ };
257
+ queuedAt: {
258
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
259
+ isOptional: false;
260
+ };
261
+ startedAt: {
262
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
263
+ isOptional: true;
264
+ };
265
+ completedAt: {
266
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
267
+ isOptional: true;
268
+ };
269
+ metadata: {
270
+ type: _contractspec_lib_schema194.FieldType<Record<string, unknown>, Record<string, unknown>>;
271
+ isOptional: true;
272
+ };
273
+ steps: {
274
+ type: _contractspec_lib_schema194.SchemaModel<{
275
+ id: {
276
+ type: _contractspec_lib_schema194.FieldType<string, string>;
277
+ isOptional: false;
278
+ };
279
+ stepNumber: {
280
+ type: _contractspec_lib_schema194.FieldType<number, number>;
281
+ isOptional: false;
282
+ };
283
+ type: {
284
+ type: _contractspec_lib_schema194.EnumType<[string, string, string, string]>;
285
+ isOptional: false;
286
+ };
287
+ toolId: {
288
+ type: _contractspec_lib_schema194.FieldType<string, string>;
289
+ isOptional: true;
290
+ };
291
+ toolName: {
292
+ type: _contractspec_lib_schema194.FieldType<string, string>;
293
+ isOptional: true;
294
+ };
295
+ input: {
296
+ type: _contractspec_lib_schema194.FieldType<Record<string, unknown>, Record<string, unknown>>;
297
+ isOptional: true;
298
+ };
299
+ output: {
300
+ type: _contractspec_lib_schema194.FieldType<Record<string, unknown>, Record<string, unknown>>;
301
+ isOptional: true;
302
+ };
303
+ status: {
304
+ type: _contractspec_lib_schema194.EnumType<[string, string, string, string, string, string]>;
305
+ isOptional: false;
306
+ };
307
+ errorMessage: {
308
+ type: _contractspec_lib_schema194.FieldType<string, string>;
309
+ isOptional: true;
310
+ };
311
+ tokensUsed: {
312
+ type: _contractspec_lib_schema194.FieldType<number, number>;
313
+ isOptional: false;
314
+ defaultValue: number;
315
+ };
316
+ durationMs: {
317
+ type: _contractspec_lib_schema194.FieldType<number, number>;
318
+ isOptional: true;
319
+ };
320
+ startedAt: {
321
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
322
+ isOptional: false;
323
+ };
324
+ completedAt: {
325
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
326
+ isOptional: true;
327
+ };
328
+ }>;
329
+ isArray: true;
330
+ isOptional: true;
331
+ };
332
+ logs: {
333
+ type: _contractspec_lib_schema194.SchemaModel<{
334
+ id: {
335
+ type: _contractspec_lib_schema194.FieldType<string, string>;
336
+ isOptional: false;
337
+ };
338
+ stepId: {
339
+ type: _contractspec_lib_schema194.FieldType<string, string>;
340
+ isOptional: true;
341
+ };
342
+ level: {
343
+ type: _contractspec_lib_schema194.EnumType<[string, string, string, string]>;
344
+ isOptional: false;
345
+ };
346
+ message: {
347
+ type: _contractspec_lib_schema194.FieldType<string, string>;
348
+ isOptional: false;
349
+ };
350
+ data: {
351
+ type: _contractspec_lib_schema194.FieldType<Record<string, unknown>, Record<string, unknown>>;
352
+ isOptional: true;
353
+ };
354
+ source: {
355
+ type: _contractspec_lib_schema194.FieldType<string, string>;
356
+ isOptional: true;
357
+ };
358
+ traceId: {
359
+ type: _contractspec_lib_schema194.FieldType<string, string>;
360
+ isOptional: true;
361
+ };
362
+ spanId: {
363
+ type: _contractspec_lib_schema194.FieldType<string, string>;
364
+ isOptional: true;
365
+ };
366
+ timestamp: {
367
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
368
+ isOptional: false;
369
+ };
370
+ }>;
371
+ isArray: true;
372
+ isOptional: true;
373
+ };
374
+ agent: {
375
+ type: _contractspec_lib_schema194.SchemaModel<{
376
+ id: {
377
+ type: _contractspec_lib_schema194.FieldType<string, string>;
378
+ isOptional: false;
379
+ };
380
+ name: {
381
+ type: _contractspec_lib_schema194.FieldType<string, string>;
382
+ isOptional: false;
383
+ };
384
+ modelProvider: {
385
+ type: _contractspec_lib_schema194.FieldType<string, string>;
386
+ isOptional: false;
387
+ };
388
+ modelName: {
389
+ type: _contractspec_lib_schema194.FieldType<string, string>;
390
+ isOptional: false;
391
+ };
392
+ }>;
393
+ isOptional: true;
394
+ };
395
+ }>, undefined>;
396
+ /**
397
+ * ListRunsQuery - Lists runs for an organization or agent.
398
+ */
399
+ declare const ListRunsQuery: _contractspec_lib_contracts12.OperationSpec<_contractspec_lib_schema194.SchemaModel<{
400
+ organizationId: {
401
+ type: _contractspec_lib_schema194.FieldType<string, string>;
402
+ isOptional: true;
403
+ };
404
+ agentId: {
405
+ type: _contractspec_lib_schema194.FieldType<string, string>;
406
+ isOptional: true;
407
+ };
408
+ userId: {
409
+ type: _contractspec_lib_schema194.FieldType<string, string>;
410
+ isOptional: true;
411
+ };
412
+ sessionId: {
413
+ type: _contractspec_lib_schema194.FieldType<string, string>;
414
+ isOptional: true;
415
+ };
416
+ status: {
417
+ type: _contractspec_lib_schema194.EnumType<[string, string, string, string, string, string]>;
418
+ isOptional: true;
419
+ };
420
+ startDate: {
421
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
422
+ isOptional: true;
423
+ };
424
+ endDate: {
425
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
426
+ isOptional: true;
427
+ };
428
+ limit: {
429
+ type: _contractspec_lib_schema194.FieldType<number, number>;
430
+ isOptional: true;
431
+ defaultValue: number;
432
+ };
433
+ offset: {
434
+ type: _contractspec_lib_schema194.FieldType<number, number>;
435
+ isOptional: true;
436
+ defaultValue: number;
437
+ };
438
+ }>, _contractspec_lib_schema194.SchemaModel<{
439
+ items: {
440
+ type: _contractspec_lib_schema194.SchemaModel<{
441
+ id: {
442
+ type: _contractspec_lib_schema194.FieldType<string, string>;
443
+ isOptional: false;
444
+ };
445
+ agentId: {
446
+ type: _contractspec_lib_schema194.FieldType<string, string>;
447
+ isOptional: false;
448
+ };
449
+ agentName: {
450
+ type: _contractspec_lib_schema194.FieldType<string, string>;
451
+ isOptional: false;
452
+ };
453
+ status: {
454
+ type: _contractspec_lib_schema194.EnumType<[string, string, string, string, string, string]>;
455
+ isOptional: false;
456
+ };
457
+ totalTokens: {
458
+ type: _contractspec_lib_schema194.FieldType<number, number>;
459
+ isOptional: false;
460
+ };
461
+ durationMs: {
462
+ type: _contractspec_lib_schema194.FieldType<number, number>;
463
+ isOptional: true;
464
+ };
465
+ estimatedCostUsd: {
466
+ type: _contractspec_lib_schema194.FieldType<number, number>;
467
+ isOptional: true;
468
+ };
469
+ queuedAt: {
470
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
471
+ isOptional: false;
472
+ };
473
+ completedAt: {
474
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
475
+ isOptional: true;
476
+ };
477
+ }>;
478
+ isArray: true;
479
+ isOptional: false;
480
+ };
481
+ total: {
482
+ type: _contractspec_lib_schema194.FieldType<number, number>;
483
+ isOptional: false;
484
+ };
485
+ hasMore: {
486
+ type: _contractspec_lib_schema194.FieldType<boolean, boolean>;
487
+ isOptional: false;
488
+ };
489
+ }>, undefined>;
490
+ /**
491
+ * GetRunStepsQuery - Retrieves steps for a run.
492
+ */
493
+ declare const GetRunStepsQuery: _contractspec_lib_contracts12.OperationSpec<_contractspec_lib_schema194.SchemaModel<{
494
+ runId: {
495
+ type: _contractspec_lib_schema194.FieldType<string, string>;
496
+ isOptional: false;
497
+ };
498
+ }>, _contractspec_lib_schema194.SchemaModel<{
499
+ steps: {
500
+ type: _contractspec_lib_schema194.SchemaModel<{
501
+ id: {
502
+ type: _contractspec_lib_schema194.FieldType<string, string>;
503
+ isOptional: false;
504
+ };
505
+ stepNumber: {
506
+ type: _contractspec_lib_schema194.FieldType<number, number>;
507
+ isOptional: false;
508
+ };
509
+ type: {
510
+ type: _contractspec_lib_schema194.EnumType<[string, string, string, string]>;
511
+ isOptional: false;
512
+ };
513
+ toolId: {
514
+ type: _contractspec_lib_schema194.FieldType<string, string>;
515
+ isOptional: true;
516
+ };
517
+ toolName: {
518
+ type: _contractspec_lib_schema194.FieldType<string, string>;
519
+ isOptional: true;
520
+ };
521
+ input: {
522
+ type: _contractspec_lib_schema194.FieldType<Record<string, unknown>, Record<string, unknown>>;
523
+ isOptional: true;
524
+ };
525
+ output: {
526
+ type: _contractspec_lib_schema194.FieldType<Record<string, unknown>, Record<string, unknown>>;
527
+ isOptional: true;
528
+ };
529
+ status: {
530
+ type: _contractspec_lib_schema194.EnumType<[string, string, string, string, string, string]>;
531
+ isOptional: false;
532
+ };
533
+ errorMessage: {
534
+ type: _contractspec_lib_schema194.FieldType<string, string>;
535
+ isOptional: true;
536
+ };
537
+ tokensUsed: {
538
+ type: _contractspec_lib_schema194.FieldType<number, number>;
539
+ isOptional: false;
540
+ defaultValue: number;
541
+ };
542
+ durationMs: {
543
+ type: _contractspec_lib_schema194.FieldType<number, number>;
544
+ isOptional: true;
545
+ };
546
+ startedAt: {
547
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
548
+ isOptional: false;
549
+ };
550
+ completedAt: {
551
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
552
+ isOptional: true;
553
+ };
554
+ }>;
555
+ isArray: true;
556
+ isOptional: false;
557
+ };
558
+ }>, undefined>;
559
+ /**
560
+ * GetRunLogsQuery - Retrieves logs for a run.
561
+ */
562
+ declare const GetRunLogsQuery: _contractspec_lib_contracts12.OperationSpec<_contractspec_lib_schema194.SchemaModel<{
563
+ runId: {
564
+ type: _contractspec_lib_schema194.FieldType<string, string>;
565
+ isOptional: false;
566
+ };
567
+ level: {
568
+ type: _contractspec_lib_schema194.EnumType<[string, string, string, string]>;
569
+ isOptional: true;
570
+ };
571
+ stepId: {
572
+ type: _contractspec_lib_schema194.FieldType<string, string>;
573
+ isOptional: true;
574
+ };
575
+ limit: {
576
+ type: _contractspec_lib_schema194.FieldType<number, number>;
577
+ isOptional: true;
578
+ defaultValue: number;
579
+ };
580
+ offset: {
581
+ type: _contractspec_lib_schema194.FieldType<number, number>;
582
+ isOptional: true;
583
+ defaultValue: number;
584
+ };
585
+ }>, _contractspec_lib_schema194.SchemaModel<{
586
+ items: {
587
+ type: _contractspec_lib_schema194.SchemaModel<{
588
+ id: {
589
+ type: _contractspec_lib_schema194.FieldType<string, string>;
590
+ isOptional: false;
591
+ };
592
+ stepId: {
593
+ type: _contractspec_lib_schema194.FieldType<string, string>;
594
+ isOptional: true;
595
+ };
596
+ level: {
597
+ type: _contractspec_lib_schema194.EnumType<[string, string, string, string]>;
598
+ isOptional: false;
599
+ };
600
+ message: {
601
+ type: _contractspec_lib_schema194.FieldType<string, string>;
602
+ isOptional: false;
603
+ };
604
+ data: {
605
+ type: _contractspec_lib_schema194.FieldType<Record<string, unknown>, Record<string, unknown>>;
606
+ isOptional: true;
607
+ };
608
+ source: {
609
+ type: _contractspec_lib_schema194.FieldType<string, string>;
610
+ isOptional: true;
611
+ };
612
+ traceId: {
613
+ type: _contractspec_lib_schema194.FieldType<string, string>;
614
+ isOptional: true;
615
+ };
616
+ spanId: {
617
+ type: _contractspec_lib_schema194.FieldType<string, string>;
618
+ isOptional: true;
619
+ };
620
+ timestamp: {
621
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
622
+ isOptional: false;
623
+ };
624
+ }>;
625
+ isArray: true;
626
+ isOptional: false;
627
+ };
628
+ total: {
629
+ type: _contractspec_lib_schema194.FieldType<number, number>;
630
+ isOptional: false;
631
+ };
632
+ hasMore: {
633
+ type: _contractspec_lib_schema194.FieldType<boolean, boolean>;
634
+ isOptional: false;
635
+ };
636
+ }>, undefined>;
637
+ /**
638
+ * GetRunMetricsQuery - Retrieves aggregated metrics for runs.
639
+ */
640
+ declare const GetRunMetricsQuery: _contractspec_lib_contracts12.OperationSpec<_contractspec_lib_schema194.SchemaModel<{
641
+ organizationId: {
642
+ type: _contractspec_lib_schema194.FieldType<string, string>;
643
+ isOptional: false;
644
+ };
645
+ agentId: {
646
+ type: _contractspec_lib_schema194.FieldType<string, string>;
647
+ isOptional: true;
648
+ };
649
+ startDate: {
650
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
651
+ isOptional: false;
652
+ };
653
+ endDate: {
654
+ type: _contractspec_lib_schema194.FieldType<Date, string>;
655
+ isOptional: false;
656
+ };
657
+ granularity: {
658
+ type: _contractspec_lib_schema194.EnumType<[string, string, string, string]>;
659
+ isOptional: true;
660
+ defaultValue: string;
661
+ };
662
+ }>, _contractspec_lib_schema194.SchemaModel<{
663
+ totalRuns: {
664
+ type: _contractspec_lib_schema194.FieldType<number, number>;
665
+ isOptional: false;
666
+ };
667
+ completedRuns: {
668
+ type: _contractspec_lib_schema194.FieldType<number, number>;
669
+ isOptional: false;
670
+ };
671
+ failedRuns: {
672
+ type: _contractspec_lib_schema194.FieldType<number, number>;
673
+ isOptional: false;
674
+ };
675
+ totalTokens: {
676
+ type: _contractspec_lib_schema194.FieldType<number, number>;
677
+ isOptional: false;
678
+ };
679
+ totalCostUsd: {
680
+ type: _contractspec_lib_schema194.FieldType<number, number>;
681
+ isOptional: false;
682
+ };
683
+ averageDurationMs: {
684
+ type: _contractspec_lib_schema194.FieldType<number, number>;
685
+ isOptional: false;
686
+ };
687
+ successRate: {
688
+ type: _contractspec_lib_schema194.FieldType<number, number>;
689
+ isOptional: false;
690
+ };
691
+ timeline: {
692
+ type: _contractspec_lib_schema194.SchemaModel<{
693
+ period: {
694
+ type: _contractspec_lib_schema194.FieldType<string, string>;
695
+ isOptional: false;
696
+ };
697
+ runs: {
698
+ type: _contractspec_lib_schema194.FieldType<number, number>;
699
+ isOptional: false;
700
+ };
701
+ tokens: {
702
+ type: _contractspec_lib_schema194.FieldType<number, number>;
703
+ isOptional: false;
704
+ };
705
+ costUsd: {
706
+ type: _contractspec_lib_schema194.FieldType<number, number>;
707
+ isOptional: false;
708
+ };
709
+ avgDurationMs: {
710
+ type: _contractspec_lib_schema194.FieldType<number, number>;
711
+ isOptional: false;
712
+ };
713
+ }>;
714
+ isArray: true;
715
+ isOptional: false;
716
+ };
717
+ }>, undefined>;
718
+ //#endregion
719
+ export { CancelRunCommand, ExecuteAgentCommand, GetRunLogsQuery, GetRunMetricsQuery, GetRunQuery, GetRunStepsQuery, ListRunsQuery };
720
+ //# sourceMappingURL=run.operation.d.ts.map