@contractspec/example.agent-console 1.44.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 (168) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +133 -0
  2. package/.turbo/turbo-build.log +134 -0
  3. package/CHANGELOG.md +212 -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 +19 -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/index.d.ts +8 -0
  35. package/dist/agent/index.js +9 -0
  36. package/dist/agent.feature.d.ts +12 -0
  37. package/dist/agent.feature.d.ts.map +1 -0
  38. package/dist/agent.feature.js +303 -0
  39. package/dist/agent.feature.js.map +1 -0
  40. package/dist/docs/agent-console.docblock.d.ts +1 -0
  41. package/dist/docs/agent-console.docblock.js +113 -0
  42. package/dist/docs/agent-console.docblock.js.map +1 -0
  43. package/dist/docs/index.d.ts +1 -0
  44. package/dist/docs/index.js +1 -0
  45. package/dist/example.d.ts +40 -0
  46. package/dist/example.d.ts.map +1 -0
  47. package/dist/example.js +51 -0
  48. package/dist/example.js.map +1 -0
  49. package/dist/handlers/index.d.ts +4 -0
  50. package/dist/handlers/index.js +5 -0
  51. package/dist/index.d.ts +30 -0
  52. package/dist/index.js +32 -0
  53. package/dist/presentations/index.d.ts +4 -0
  54. package/dist/presentations/index.js +5 -0
  55. package/dist/run/index.d.ts +8 -0
  56. package/dist/run/index.js +9 -0
  57. package/dist/run/run.entity.d.ts +82 -0
  58. package/dist/run/run.entity.d.ts.map +1 -0
  59. package/dist/run/run.entity.js +205 -0
  60. package/dist/run/run.entity.js.map +1 -0
  61. package/dist/run/run.enum.d.ts +22 -0
  62. package/dist/run/run.enum.d.ts.map +1 -0
  63. package/dist/run/run.enum.js +45 -0
  64. package/dist/run/run.enum.js.map +1 -0
  65. package/dist/run/run.event.d.ts +290 -0
  66. package/dist/run/run.event.d.ts.map +1 -0
  67. package/dist/run/run.event.js +434 -0
  68. package/dist/run/run.event.js.map +1 -0
  69. package/dist/run/run.handler.d.ts +203 -0
  70. package/dist/run/run.handler.d.ts.map +1 -0
  71. package/dist/run/run.handler.js +83 -0
  72. package/dist/run/run.handler.js.map +1 -0
  73. package/dist/run/run.operation.d.ts +720 -0
  74. package/dist/run/run.operation.d.ts.map +1 -0
  75. package/dist/run/run.operation.js +626 -0
  76. package/dist/run/run.operation.js.map +1 -0
  77. package/dist/run/run.presentation.d.ts +15 -0
  78. package/dist/run/run.presentation.d.ts.map +1 -0
  79. package/dist/run/run.presentation.js +65 -0
  80. package/dist/run/run.presentation.js.map +1 -0
  81. package/dist/run/run.schema.d.ts +416 -0
  82. package/dist/run/run.schema.d.ts.map +1 -0
  83. package/dist/run/run.schema.js +338 -0
  84. package/dist/run/run.schema.js.map +1 -0
  85. package/dist/shared/index.d.ts +4 -0
  86. package/dist/shared/index.js +5 -0
  87. package/dist/shared/mock-agents.d.ts +88 -0
  88. package/dist/shared/mock-agents.d.ts.map +1 -0
  89. package/dist/shared/mock-agents.js +94 -0
  90. package/dist/shared/mock-agents.js.map +1 -0
  91. package/dist/shared/mock-runs.d.ts +120 -0
  92. package/dist/shared/mock-runs.d.ts.map +1 -0
  93. package/dist/shared/mock-runs.js +118 -0
  94. package/dist/shared/mock-runs.js.map +1 -0
  95. package/dist/shared/mock-tools.d.ts +244 -0
  96. package/dist/shared/mock-tools.d.ts.map +1 -0
  97. package/dist/shared/mock-tools.js +181 -0
  98. package/dist/shared/mock-tools.js.map +1 -0
  99. package/dist/tool/index.d.ts +8 -0
  100. package/dist/tool/index.js +9 -0
  101. package/dist/tool/tool.entity.d.ts +42 -0
  102. package/dist/tool/tool.entity.d.ts.map +1 -0
  103. package/dist/tool/tool.entity.js +105 -0
  104. package/dist/tool/tool.entity.js.map +1 -0
  105. package/dist/tool/tool.enum.d.ts +18 -0
  106. package/dist/tool/tool.enum.d.ts.map +1 -0
  107. package/dist/tool/tool.enum.js +35 -0
  108. package/dist/tool/tool.enum.js.map +1 -0
  109. package/dist/tool/tool.event.d.ts +103 -0
  110. package/dist/tool/tool.event.d.ts.map +1 -0
  111. package/dist/tool/tool.event.js +159 -0
  112. package/dist/tool/tool.event.js.map +1 -0
  113. package/dist/tool/tool.handler.d.ts +315 -0
  114. package/dist/tool/tool.handler.d.ts.map +1 -0
  115. package/dist/tool/tool.handler.js +87 -0
  116. package/dist/tool/tool.handler.js.map +1 -0
  117. package/dist/tool/tool.operation.d.ts +411 -0
  118. package/dist/tool/tool.operation.d.ts.map +1 -0
  119. package/dist/tool/tool.operation.js +406 -0
  120. package/dist/tool/tool.operation.js.map +1 -0
  121. package/dist/tool/tool.presentation.d.ts +15 -0
  122. package/dist/tool/tool.presentation.d.ts.map +1 -0
  123. package/dist/tool/tool.presentation.js +65 -0
  124. package/dist/tool/tool.presentation.js.map +1 -0
  125. package/dist/tool/tool.schema.d.ts +218 -0
  126. package/dist/tool/tool.schema.d.ts.map +1 -0
  127. package/dist/tool/tool.schema.js +236 -0
  128. package/dist/tool/tool.schema.js.map +1 -0
  129. package/example.ts +1 -0
  130. package/package.json +123 -0
  131. package/src/agent/agent.entity.ts +137 -0
  132. package/src/agent/agent.enum.ts +31 -0
  133. package/src/agent/agent.event.ts +142 -0
  134. package/src/agent/agent.handler.ts +178 -0
  135. package/src/agent/agent.operation.ts +444 -0
  136. package/src/agent/agent.presentation.ts +81 -0
  137. package/src/agent/agent.schema.ts +214 -0
  138. package/src/agent/index.ts +67 -0
  139. package/src/agent.feature.ts +146 -0
  140. package/src/docs/agent-console.docblock.ts +97 -0
  141. package/src/docs/index.ts +1 -0
  142. package/src/example.ts +34 -0
  143. package/src/handlers/index.ts +27 -0
  144. package/src/index.ts +27 -0
  145. package/src/presentations/index.ts +26 -0
  146. package/src/run/index.ts +68 -0
  147. package/src/run/run.entity.ts +175 -0
  148. package/src/run/run.enum.ts +43 -0
  149. package/src/run/run.event.ts +264 -0
  150. package/src/run/run.handler.ts +138 -0
  151. package/src/run/run.operation.ts +524 -0
  152. package/src/run/run.presentation.ts +55 -0
  153. package/src/run/run.schema.ts +169 -0
  154. package/src/shared/index.ts +6 -0
  155. package/src/shared/mock-agents.ts +81 -0
  156. package/src/shared/mock-runs.ts +107 -0
  157. package/src/shared/mock-tools.ts +145 -0
  158. package/src/tool/index.ts +60 -0
  159. package/src/tool/tool.entity.ts +99 -0
  160. package/src/tool/tool.enum.ts +32 -0
  161. package/src/tool/tool.event.ts +119 -0
  162. package/src/tool/tool.handler.ts +154 -0
  163. package/src/tool/tool.operation.ts +366 -0
  164. package/src/tool/tool.presentation.ts +56 -0
  165. package/src/tool/tool.schema.ts +133 -0
  166. package/tsconfig.json +10 -0
  167. package/tsconfig.tsbuildinfo +1 -0
  168. package/tsdown.config.js +7 -0
@@ -0,0 +1,65 @@
1
+ import { RunSummaryModel } from "./run.schema.js";
2
+ import { StabilityEnum } 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 = {
9
+ meta: {
10
+ key: "agent-console.run.list",
11
+ version: 1,
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 = {
42
+ meta: {
43
+ key: "agent-console.run.detail",
44
+ version: 1,
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":["RunListPresentation: PresentationSpec","RunDetailPresentation: PresentationSpec"],"sources":["../../src/run/run.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\nimport { RunSummaryModel } from './run.schema';\n\n/**\n * Presentation for displaying a list of agent runs.\n */\nexport const RunListPresentation: PresentationSpec = {\n meta: {\n key: 'agent-console.run.list',\n version: 1,\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: PresentationSpec = {\n meta: {\n key: 'agent-console.run.detail',\n version: 1,\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":";;;;;;;AAOA,MAAaA,sBAAwC;CACnD,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;;;;AAKD,MAAaC,wBAA0C;CACrD,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"}
@@ -0,0 +1,416 @@
1
+ import * as _contractspec_lib_schema418 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_schema418.SchemaModel<{
8
+ message: {
9
+ type: _contractspec_lib_schema418.FieldType<string, string>;
10
+ isOptional: false;
11
+ };
12
+ context: {
13
+ type: _contractspec_lib_schema418.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_schema418.SchemaModel<{
21
+ id: {
22
+ type: _contractspec_lib_schema418.FieldType<string, string>;
23
+ isOptional: false;
24
+ };
25
+ stepNumber: {
26
+ type: _contractspec_lib_schema418.FieldType<number, number>;
27
+ isOptional: false;
28
+ };
29
+ type: {
30
+ type: _contractspec_lib_schema418.EnumType<[string, string, string, string]>;
31
+ isOptional: false;
32
+ };
33
+ toolId: {
34
+ type: _contractspec_lib_schema418.FieldType<string, string>;
35
+ isOptional: true;
36
+ };
37
+ toolName: {
38
+ type: _contractspec_lib_schema418.FieldType<string, string>;
39
+ isOptional: true;
40
+ };
41
+ input: {
42
+ type: _contractspec_lib_schema418.FieldType<Record<string, unknown>, Record<string, unknown>>;
43
+ isOptional: true;
44
+ };
45
+ output: {
46
+ type: _contractspec_lib_schema418.FieldType<Record<string, unknown>, Record<string, unknown>>;
47
+ isOptional: true;
48
+ };
49
+ status: {
50
+ type: _contractspec_lib_schema418.EnumType<[string, string, string, string, string, string]>;
51
+ isOptional: false;
52
+ };
53
+ errorMessage: {
54
+ type: _contractspec_lib_schema418.FieldType<string, string>;
55
+ isOptional: true;
56
+ };
57
+ tokensUsed: {
58
+ type: _contractspec_lib_schema418.FieldType<number, number>;
59
+ isOptional: false;
60
+ defaultValue: number;
61
+ };
62
+ durationMs: {
63
+ type: _contractspec_lib_schema418.FieldType<number, number>;
64
+ isOptional: true;
65
+ };
66
+ startedAt: {
67
+ type: _contractspec_lib_schema418.FieldType<Date, string>;
68
+ isOptional: false;
69
+ };
70
+ completedAt: {
71
+ type: _contractspec_lib_schema418.FieldType<Date, string>;
72
+ isOptional: true;
73
+ };
74
+ }>;
75
+ /**
76
+ * Execution log entry.
77
+ */
78
+ declare const RunLogModel: _contractspec_lib_schema418.SchemaModel<{
79
+ id: {
80
+ type: _contractspec_lib_schema418.FieldType<string, string>;
81
+ isOptional: false;
82
+ };
83
+ stepId: {
84
+ type: _contractspec_lib_schema418.FieldType<string, string>;
85
+ isOptional: true;
86
+ };
87
+ level: {
88
+ type: _contractspec_lib_schema418.EnumType<[string, string, string, string]>;
89
+ isOptional: false;
90
+ };
91
+ message: {
92
+ type: _contractspec_lib_schema418.FieldType<string, string>;
93
+ isOptional: false;
94
+ };
95
+ data: {
96
+ type: _contractspec_lib_schema418.FieldType<Record<string, unknown>, Record<string, unknown>>;
97
+ isOptional: true;
98
+ };
99
+ source: {
100
+ type: _contractspec_lib_schema418.FieldType<string, string>;
101
+ isOptional: true;
102
+ };
103
+ traceId: {
104
+ type: _contractspec_lib_schema418.FieldType<string, string>;
105
+ isOptional: true;
106
+ };
107
+ spanId: {
108
+ type: _contractspec_lib_schema418.FieldType<string, string>;
109
+ isOptional: true;
110
+ };
111
+ timestamp: {
112
+ type: _contractspec_lib_schema418.FieldType<Date, string>;
113
+ isOptional: false;
114
+ };
115
+ }>;
116
+ /**
117
+ * Agent reference in a run.
118
+ */
119
+ declare const RunAgentRefModel: _contractspec_lib_schema418.SchemaModel<{
120
+ id: {
121
+ type: _contractspec_lib_schema418.FieldType<string, string>;
122
+ isOptional: false;
123
+ };
124
+ name: {
125
+ type: _contractspec_lib_schema418.FieldType<string, string>;
126
+ isOptional: false;
127
+ };
128
+ modelProvider: {
129
+ type: _contractspec_lib_schema418.FieldType<string, string>;
130
+ isOptional: false;
131
+ };
132
+ modelName: {
133
+ type: _contractspec_lib_schema418.FieldType<string, string>;
134
+ isOptional: false;
135
+ };
136
+ }>;
137
+ /**
138
+ * Agent execution instance.
139
+ */
140
+ declare const RunModel: _contractspec_lib_schema418.SchemaModel<{
141
+ id: {
142
+ type: _contractspec_lib_schema418.FieldType<string, string>;
143
+ isOptional: false;
144
+ };
145
+ organizationId: {
146
+ type: _contractspec_lib_schema418.FieldType<string, string>;
147
+ isOptional: false;
148
+ };
149
+ agentId: {
150
+ type: _contractspec_lib_schema418.FieldType<string, string>;
151
+ isOptional: false;
152
+ };
153
+ userId: {
154
+ type: _contractspec_lib_schema418.FieldType<string, string>;
155
+ isOptional: true;
156
+ };
157
+ sessionId: {
158
+ type: _contractspec_lib_schema418.FieldType<string, string>;
159
+ isOptional: true;
160
+ };
161
+ input: {
162
+ type: _contractspec_lib_schema418.FieldType<Record<string, unknown>, Record<string, unknown>>;
163
+ isOptional: false;
164
+ };
165
+ output: {
166
+ type: _contractspec_lib_schema418.FieldType<Record<string, unknown>, Record<string, unknown>>;
167
+ isOptional: true;
168
+ };
169
+ status: {
170
+ type: _contractspec_lib_schema418.EnumType<[string, string, string, string, string, string]>;
171
+ isOptional: false;
172
+ };
173
+ errorMessage: {
174
+ type: _contractspec_lib_schema418.FieldType<string, string>;
175
+ isOptional: true;
176
+ };
177
+ errorCode: {
178
+ type: _contractspec_lib_schema418.FieldType<string, string>;
179
+ isOptional: true;
180
+ };
181
+ totalTokens: {
182
+ type: _contractspec_lib_schema418.FieldType<number, number>;
183
+ isOptional: false;
184
+ defaultValue: number;
185
+ };
186
+ promptTokens: {
187
+ type: _contractspec_lib_schema418.FieldType<number, number>;
188
+ isOptional: false;
189
+ defaultValue: number;
190
+ };
191
+ completionTokens: {
192
+ type: _contractspec_lib_schema418.FieldType<number, number>;
193
+ isOptional: false;
194
+ defaultValue: number;
195
+ };
196
+ totalIterations: {
197
+ type: _contractspec_lib_schema418.FieldType<number, number>;
198
+ isOptional: false;
199
+ defaultValue: number;
200
+ };
201
+ durationMs: {
202
+ type: _contractspec_lib_schema418.FieldType<number, number>;
203
+ isOptional: true;
204
+ };
205
+ estimatedCostUsd: {
206
+ type: _contractspec_lib_schema418.FieldType<number, number>;
207
+ isOptional: true;
208
+ };
209
+ queuedAt: {
210
+ type: _contractspec_lib_schema418.FieldType<Date, string>;
211
+ isOptional: false;
212
+ };
213
+ startedAt: {
214
+ type: _contractspec_lib_schema418.FieldType<Date, string>;
215
+ isOptional: true;
216
+ };
217
+ completedAt: {
218
+ type: _contractspec_lib_schema418.FieldType<Date, string>;
219
+ isOptional: true;
220
+ };
221
+ metadata: {
222
+ type: _contractspec_lib_schema418.FieldType<Record<string, unknown>, Record<string, unknown>>;
223
+ isOptional: true;
224
+ };
225
+ steps: {
226
+ type: _contractspec_lib_schema418.SchemaModel<{
227
+ id: {
228
+ type: _contractspec_lib_schema418.FieldType<string, string>;
229
+ isOptional: false;
230
+ };
231
+ stepNumber: {
232
+ type: _contractspec_lib_schema418.FieldType<number, number>;
233
+ isOptional: false;
234
+ };
235
+ type: {
236
+ type: _contractspec_lib_schema418.EnumType<[string, string, string, string]>;
237
+ isOptional: false;
238
+ };
239
+ toolId: {
240
+ type: _contractspec_lib_schema418.FieldType<string, string>;
241
+ isOptional: true;
242
+ };
243
+ toolName: {
244
+ type: _contractspec_lib_schema418.FieldType<string, string>;
245
+ isOptional: true;
246
+ };
247
+ input: {
248
+ type: _contractspec_lib_schema418.FieldType<Record<string, unknown>, Record<string, unknown>>;
249
+ isOptional: true;
250
+ };
251
+ output: {
252
+ type: _contractspec_lib_schema418.FieldType<Record<string, unknown>, Record<string, unknown>>;
253
+ isOptional: true;
254
+ };
255
+ status: {
256
+ type: _contractspec_lib_schema418.EnumType<[string, string, string, string, string, string]>;
257
+ isOptional: false;
258
+ };
259
+ errorMessage: {
260
+ type: _contractspec_lib_schema418.FieldType<string, string>;
261
+ isOptional: true;
262
+ };
263
+ tokensUsed: {
264
+ type: _contractspec_lib_schema418.FieldType<number, number>;
265
+ isOptional: false;
266
+ defaultValue: number;
267
+ };
268
+ durationMs: {
269
+ type: _contractspec_lib_schema418.FieldType<number, number>;
270
+ isOptional: true;
271
+ };
272
+ startedAt: {
273
+ type: _contractspec_lib_schema418.FieldType<Date, string>;
274
+ isOptional: false;
275
+ };
276
+ completedAt: {
277
+ type: _contractspec_lib_schema418.FieldType<Date, string>;
278
+ isOptional: true;
279
+ };
280
+ }>;
281
+ isArray: true;
282
+ isOptional: true;
283
+ };
284
+ logs: {
285
+ type: _contractspec_lib_schema418.SchemaModel<{
286
+ id: {
287
+ type: _contractspec_lib_schema418.FieldType<string, string>;
288
+ isOptional: false;
289
+ };
290
+ stepId: {
291
+ type: _contractspec_lib_schema418.FieldType<string, string>;
292
+ isOptional: true;
293
+ };
294
+ level: {
295
+ type: _contractspec_lib_schema418.EnumType<[string, string, string, string]>;
296
+ isOptional: false;
297
+ };
298
+ message: {
299
+ type: _contractspec_lib_schema418.FieldType<string, string>;
300
+ isOptional: false;
301
+ };
302
+ data: {
303
+ type: _contractspec_lib_schema418.FieldType<Record<string, unknown>, Record<string, unknown>>;
304
+ isOptional: true;
305
+ };
306
+ source: {
307
+ type: _contractspec_lib_schema418.FieldType<string, string>;
308
+ isOptional: true;
309
+ };
310
+ traceId: {
311
+ type: _contractspec_lib_schema418.FieldType<string, string>;
312
+ isOptional: true;
313
+ };
314
+ spanId: {
315
+ type: _contractspec_lib_schema418.FieldType<string, string>;
316
+ isOptional: true;
317
+ };
318
+ timestamp: {
319
+ type: _contractspec_lib_schema418.FieldType<Date, string>;
320
+ isOptional: false;
321
+ };
322
+ }>;
323
+ isArray: true;
324
+ isOptional: true;
325
+ };
326
+ agent: {
327
+ type: _contractspec_lib_schema418.SchemaModel<{
328
+ id: {
329
+ type: _contractspec_lib_schema418.FieldType<string, string>;
330
+ isOptional: false;
331
+ };
332
+ name: {
333
+ type: _contractspec_lib_schema418.FieldType<string, string>;
334
+ isOptional: false;
335
+ };
336
+ modelProvider: {
337
+ type: _contractspec_lib_schema418.FieldType<string, string>;
338
+ isOptional: false;
339
+ };
340
+ modelName: {
341
+ type: _contractspec_lib_schema418.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_schema418.SchemaModel<{
352
+ id: {
353
+ type: _contractspec_lib_schema418.FieldType<string, string>;
354
+ isOptional: false;
355
+ };
356
+ agentId: {
357
+ type: _contractspec_lib_schema418.FieldType<string, string>;
358
+ isOptional: false;
359
+ };
360
+ agentName: {
361
+ type: _contractspec_lib_schema418.FieldType<string, string>;
362
+ isOptional: false;
363
+ };
364
+ status: {
365
+ type: _contractspec_lib_schema418.EnumType<[string, string, string, string, string, string]>;
366
+ isOptional: false;
367
+ };
368
+ totalTokens: {
369
+ type: _contractspec_lib_schema418.FieldType<number, number>;
370
+ isOptional: false;
371
+ };
372
+ durationMs: {
373
+ type: _contractspec_lib_schema418.FieldType<number, number>;
374
+ isOptional: true;
375
+ };
376
+ estimatedCostUsd: {
377
+ type: _contractspec_lib_schema418.FieldType<number, number>;
378
+ isOptional: true;
379
+ };
380
+ queuedAt: {
381
+ type: _contractspec_lib_schema418.FieldType<Date, string>;
382
+ isOptional: false;
383
+ };
384
+ completedAt: {
385
+ type: _contractspec_lib_schema418.FieldType<Date, string>;
386
+ isOptional: true;
387
+ };
388
+ }>;
389
+ /**
390
+ * Timeline data point for metrics.
391
+ */
392
+ declare const TimelineDataPointModel: _contractspec_lib_schema418.SchemaModel<{
393
+ period: {
394
+ type: _contractspec_lib_schema418.FieldType<string, string>;
395
+ isOptional: false;
396
+ };
397
+ runs: {
398
+ type: _contractspec_lib_schema418.FieldType<number, number>;
399
+ isOptional: false;
400
+ };
401
+ tokens: {
402
+ type: _contractspec_lib_schema418.FieldType<number, number>;
403
+ isOptional: false;
404
+ };
405
+ costUsd: {
406
+ type: _contractspec_lib_schema418.FieldType<number, number>;
407
+ isOptional: false;
408
+ };
409
+ avgDurationMs: {
410
+ type: _contractspec_lib_schema418.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"}