@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,338 @@
1
+ import { LogLevelEnum, RunStatusEnum, RunStepTypeEnum } from "./run.enum.js";
2
+ import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
3
+
4
+ //#region src/run/run.schema.ts
5
+ /**
6
+ * Input data for agent execution.
7
+ */
8
+ const RunInputModel = defineSchemaModel({
9
+ name: "RunInput",
10
+ description: "Input data for agent execution",
11
+ fields: {
12
+ message: {
13
+ type: ScalarTypeEnum.NonEmptyString(),
14
+ isOptional: false
15
+ },
16
+ context: {
17
+ type: ScalarTypeEnum.JSONObject(),
18
+ isOptional: true
19
+ }
20
+ }
21
+ });
22
+ /**
23
+ * Individual step within a run.
24
+ */
25
+ const RunStepModel = defineSchemaModel({
26
+ name: "RunStep",
27
+ description: "Individual step within a run",
28
+ fields: {
29
+ id: {
30
+ type: ScalarTypeEnum.String_unsecure(),
31
+ isOptional: false
32
+ },
33
+ stepNumber: {
34
+ type: ScalarTypeEnum.Int_unsecure(),
35
+ isOptional: false
36
+ },
37
+ type: {
38
+ type: RunStepTypeEnum,
39
+ isOptional: false
40
+ },
41
+ toolId: {
42
+ type: ScalarTypeEnum.String_unsecure(),
43
+ isOptional: true
44
+ },
45
+ toolName: {
46
+ type: ScalarTypeEnum.String_unsecure(),
47
+ isOptional: true
48
+ },
49
+ input: {
50
+ type: ScalarTypeEnum.JSONObject(),
51
+ isOptional: true
52
+ },
53
+ output: {
54
+ type: ScalarTypeEnum.JSONObject(),
55
+ isOptional: true
56
+ },
57
+ status: {
58
+ type: RunStatusEnum,
59
+ isOptional: false
60
+ },
61
+ errorMessage: {
62
+ type: ScalarTypeEnum.String_unsecure(),
63
+ isOptional: true
64
+ },
65
+ tokensUsed: {
66
+ type: ScalarTypeEnum.Int_unsecure(),
67
+ isOptional: false,
68
+ defaultValue: 0
69
+ },
70
+ durationMs: {
71
+ type: ScalarTypeEnum.Int_unsecure(),
72
+ isOptional: true
73
+ },
74
+ startedAt: {
75
+ type: ScalarTypeEnum.DateTime(),
76
+ isOptional: false
77
+ },
78
+ completedAt: {
79
+ type: ScalarTypeEnum.DateTime(),
80
+ isOptional: true
81
+ }
82
+ }
83
+ });
84
+ /**
85
+ * Execution log entry.
86
+ */
87
+ const RunLogModel = defineSchemaModel({
88
+ name: "RunLog",
89
+ description: "Execution log entry",
90
+ fields: {
91
+ id: {
92
+ type: ScalarTypeEnum.String_unsecure(),
93
+ isOptional: false
94
+ },
95
+ stepId: {
96
+ type: ScalarTypeEnum.String_unsecure(),
97
+ isOptional: true
98
+ },
99
+ level: {
100
+ type: LogLevelEnum,
101
+ isOptional: false
102
+ },
103
+ message: {
104
+ type: ScalarTypeEnum.String_unsecure(),
105
+ isOptional: false
106
+ },
107
+ data: {
108
+ type: ScalarTypeEnum.JSONObject(),
109
+ isOptional: true
110
+ },
111
+ source: {
112
+ type: ScalarTypeEnum.String_unsecure(),
113
+ isOptional: true
114
+ },
115
+ traceId: {
116
+ type: ScalarTypeEnum.String_unsecure(),
117
+ isOptional: true
118
+ },
119
+ spanId: {
120
+ type: ScalarTypeEnum.String_unsecure(),
121
+ isOptional: true
122
+ },
123
+ timestamp: {
124
+ type: ScalarTypeEnum.DateTime(),
125
+ isOptional: false
126
+ }
127
+ }
128
+ });
129
+ /**
130
+ * Agent reference in a run.
131
+ */
132
+ const RunAgentRefModel = defineSchemaModel({
133
+ name: "RunAgentRef",
134
+ description: "Agent reference in a run",
135
+ fields: {
136
+ id: {
137
+ type: ScalarTypeEnum.String_unsecure(),
138
+ isOptional: false
139
+ },
140
+ name: {
141
+ type: ScalarTypeEnum.NonEmptyString(),
142
+ isOptional: false
143
+ },
144
+ modelProvider: {
145
+ type: ScalarTypeEnum.String_unsecure(),
146
+ isOptional: false
147
+ },
148
+ modelName: {
149
+ type: ScalarTypeEnum.String_unsecure(),
150
+ isOptional: false
151
+ }
152
+ }
153
+ });
154
+ /**
155
+ * Agent execution instance.
156
+ */
157
+ const RunModel = defineSchemaModel({
158
+ name: "Run",
159
+ description: "Agent execution instance",
160
+ fields: {
161
+ id: {
162
+ type: ScalarTypeEnum.String_unsecure(),
163
+ isOptional: false
164
+ },
165
+ organizationId: {
166
+ type: ScalarTypeEnum.String_unsecure(),
167
+ isOptional: false
168
+ },
169
+ agentId: {
170
+ type: ScalarTypeEnum.String_unsecure(),
171
+ isOptional: false
172
+ },
173
+ userId: {
174
+ type: ScalarTypeEnum.String_unsecure(),
175
+ isOptional: true
176
+ },
177
+ sessionId: {
178
+ type: ScalarTypeEnum.String_unsecure(),
179
+ isOptional: true
180
+ },
181
+ input: {
182
+ type: ScalarTypeEnum.JSONObject(),
183
+ isOptional: false
184
+ },
185
+ output: {
186
+ type: ScalarTypeEnum.JSONObject(),
187
+ isOptional: true
188
+ },
189
+ status: {
190
+ type: RunStatusEnum,
191
+ isOptional: false
192
+ },
193
+ errorMessage: {
194
+ type: ScalarTypeEnum.String_unsecure(),
195
+ isOptional: true
196
+ },
197
+ errorCode: {
198
+ type: ScalarTypeEnum.String_unsecure(),
199
+ isOptional: true
200
+ },
201
+ totalTokens: {
202
+ type: ScalarTypeEnum.Int_unsecure(),
203
+ isOptional: false,
204
+ defaultValue: 0
205
+ },
206
+ promptTokens: {
207
+ type: ScalarTypeEnum.Int_unsecure(),
208
+ isOptional: false,
209
+ defaultValue: 0
210
+ },
211
+ completionTokens: {
212
+ type: ScalarTypeEnum.Int_unsecure(),
213
+ isOptional: false,
214
+ defaultValue: 0
215
+ },
216
+ totalIterations: {
217
+ type: ScalarTypeEnum.Int_unsecure(),
218
+ isOptional: false,
219
+ defaultValue: 0
220
+ },
221
+ durationMs: {
222
+ type: ScalarTypeEnum.Int_unsecure(),
223
+ isOptional: true
224
+ },
225
+ estimatedCostUsd: {
226
+ type: ScalarTypeEnum.Float_unsecure(),
227
+ isOptional: true
228
+ },
229
+ queuedAt: {
230
+ type: ScalarTypeEnum.DateTime(),
231
+ isOptional: false
232
+ },
233
+ startedAt: {
234
+ type: ScalarTypeEnum.DateTime(),
235
+ isOptional: true
236
+ },
237
+ completedAt: {
238
+ type: ScalarTypeEnum.DateTime(),
239
+ isOptional: true
240
+ },
241
+ metadata: {
242
+ type: ScalarTypeEnum.JSONObject(),
243
+ isOptional: true
244
+ },
245
+ steps: {
246
+ type: RunStepModel,
247
+ isArray: true,
248
+ isOptional: true
249
+ },
250
+ logs: {
251
+ type: RunLogModel,
252
+ isArray: true,
253
+ isOptional: true
254
+ },
255
+ agent: {
256
+ type: RunAgentRefModel,
257
+ isOptional: true
258
+ }
259
+ }
260
+ });
261
+ /**
262
+ * Summary of a run for list views.
263
+ */
264
+ const RunSummaryModel = defineSchemaModel({
265
+ name: "RunSummary",
266
+ description: "Summary of a run for list views",
267
+ fields: {
268
+ id: {
269
+ type: ScalarTypeEnum.String_unsecure(),
270
+ isOptional: false
271
+ },
272
+ agentId: {
273
+ type: ScalarTypeEnum.String_unsecure(),
274
+ isOptional: false
275
+ },
276
+ agentName: {
277
+ type: ScalarTypeEnum.NonEmptyString(),
278
+ isOptional: false
279
+ },
280
+ status: {
281
+ type: RunStatusEnum,
282
+ isOptional: false
283
+ },
284
+ totalTokens: {
285
+ type: ScalarTypeEnum.Int_unsecure(),
286
+ isOptional: false
287
+ },
288
+ durationMs: {
289
+ type: ScalarTypeEnum.Int_unsecure(),
290
+ isOptional: true
291
+ },
292
+ estimatedCostUsd: {
293
+ type: ScalarTypeEnum.Float_unsecure(),
294
+ isOptional: true
295
+ },
296
+ queuedAt: {
297
+ type: ScalarTypeEnum.DateTime(),
298
+ isOptional: false
299
+ },
300
+ completedAt: {
301
+ type: ScalarTypeEnum.DateTime(),
302
+ isOptional: true
303
+ }
304
+ }
305
+ });
306
+ /**
307
+ * Timeline data point for metrics.
308
+ */
309
+ const TimelineDataPointModel = defineSchemaModel({
310
+ name: "TimelineDataPoint",
311
+ description: "Timeline data point for metrics",
312
+ fields: {
313
+ period: {
314
+ type: ScalarTypeEnum.String_unsecure(),
315
+ isOptional: false
316
+ },
317
+ runs: {
318
+ type: ScalarTypeEnum.Int_unsecure(),
319
+ isOptional: false
320
+ },
321
+ tokens: {
322
+ type: ScalarTypeEnum.Int_unsecure(),
323
+ isOptional: false
324
+ },
325
+ costUsd: {
326
+ type: ScalarTypeEnum.Float_unsecure(),
327
+ isOptional: false
328
+ },
329
+ avgDurationMs: {
330
+ type: ScalarTypeEnum.Float_unsecure(),
331
+ isOptional: false
332
+ }
333
+ }
334
+ });
335
+
336
+ //#endregion
337
+ export { RunAgentRefModel, RunInputModel, RunLogModel, RunModel, RunStepModel, RunSummaryModel, TimelineDataPointModel };
338
+ //# sourceMappingURL=run.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.schema.js","names":[],"sources":["../../src/run/run.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@contractspec/lib.schema';\nimport { RunStatusEnum, RunStepTypeEnum, LogLevelEnum } from './run.enum';\n\n/**\n * Input data for agent execution.\n */\nexport const RunInputModel = defineSchemaModel({\n name: 'RunInput',\n description: 'Input data for agent execution',\n fields: {\n message: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n context: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n },\n});\n\n/**\n * Individual step within a run.\n */\nexport const RunStepModel = defineSchemaModel({\n name: 'RunStep',\n description: 'Individual step within a run',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n stepNumber: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n type: { type: RunStepTypeEnum, isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n toolName: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n input: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n output: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n status: { type: RunStatusEnum, isOptional: false },\n errorMessage: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n tokensUsed: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 0,\n },\n durationMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n startedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n },\n});\n\n/**\n * Execution log entry.\n */\nexport const RunLogModel = defineSchemaModel({\n name: 'RunLog',\n description: 'Execution log entry',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n stepId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n level: { type: LogLevelEnum, isOptional: false },\n message: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n data: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n source: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n traceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n spanId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Agent reference in a run.\n */\nexport const RunAgentRefModel = defineSchemaModel({\n name: 'RunAgentRef',\n description: 'Agent reference in a run',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelProvider: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n modelName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\n/**\n * Agent execution instance.\n */\nexport const RunModel = defineSchemaModel({\n name: 'Run',\n description: 'Agent execution instance',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n sessionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n input: { type: ScalarTypeEnum.JSONObject(), isOptional: false },\n output: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n status: { type: RunStatusEnum, isOptional: false },\n errorMessage: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n errorCode: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n totalTokens: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 0,\n },\n promptTokens: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 0,\n },\n completionTokens: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 0,\n },\n totalIterations: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 0,\n },\n durationMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n estimatedCostUsd: {\n type: ScalarTypeEnum.Float_unsecure(),\n isOptional: true,\n },\n queuedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n startedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n metadata: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n steps: { type: RunStepModel, isArray: true, isOptional: true },\n logs: { type: RunLogModel, isArray: true, isOptional: true },\n agent: { type: RunAgentRefModel, isOptional: true },\n },\n});\n\n/**\n * Summary of a run for list views.\n */\nexport const RunSummaryModel = defineSchemaModel({\n name: 'RunSummary',\n description: 'Summary of a run for list views',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n agentName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n status: { type: RunStatusEnum, isOptional: false },\n totalTokens: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n durationMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n estimatedCostUsd: {\n type: ScalarTypeEnum.Float_unsecure(),\n isOptional: true,\n },\n queuedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n },\n});\n\n/**\n * Timeline data point for metrics.\n */\nexport const TimelineDataPointModel = defineSchemaModel({\n name: 'TimelineDataPoint',\n description: 'Timeline data point for metrics',\n fields: {\n period: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n runs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n tokens: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n costUsd: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n avgDurationMs: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n },\n});\n"],"mappings":"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"}
@@ -0,0 +1,4 @@
1
+ import { MOCK_AGENTS } from "./mock-agents.js";
2
+ import { MOCK_TOOLS } from "./mock-tools.js";
3
+ import { MOCK_RUNS } from "./mock-runs.js";
4
+ export { MOCK_AGENTS, MOCK_RUNS, MOCK_TOOLS };
@@ -0,0 +1,5 @@
1
+ import { MOCK_AGENTS } from "./mock-agents.js";
2
+ import { MOCK_TOOLS } from "./mock-tools.js";
3
+ import { MOCK_RUNS } from "./mock-runs.js";
4
+
5
+ export { MOCK_AGENTS, MOCK_RUNS, MOCK_TOOLS };
@@ -0,0 +1,88 @@
1
+ //#region src/shared/mock-agents.d.ts
2
+ /**
3
+ * Mock agent data for testing and demos.
4
+ */
5
+ declare const MOCK_AGENTS: ({
6
+ id: string;
7
+ organizationId: string;
8
+ name: string;
9
+ slug: string;
10
+ description: string;
11
+ status: "ACTIVE";
12
+ modelProvider: "OPENAI";
13
+ modelName: string;
14
+ modelConfig: {
15
+ temperature: number;
16
+ };
17
+ systemPrompt: string;
18
+ toolChoice: "auto";
19
+ maxIterations: number;
20
+ timeoutMs: number;
21
+ version: string;
22
+ tags: string[];
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ } | {
26
+ id: string;
27
+ organizationId: string;
28
+ name: string;
29
+ slug: string;
30
+ description: string;
31
+ status: "ACTIVE";
32
+ modelProvider: "ANTHROPIC";
33
+ modelName: string;
34
+ modelConfig: {
35
+ temperature: number;
36
+ };
37
+ systemPrompt: string;
38
+ toolChoice: "auto";
39
+ maxIterations: number;
40
+ timeoutMs: number;
41
+ version: string;
42
+ tags: string[];
43
+ createdAt: Date;
44
+ updatedAt: Date;
45
+ } | {
46
+ id: string;
47
+ organizationId: string;
48
+ name: string;
49
+ slug: string;
50
+ description: string;
51
+ status: "PAUSED";
52
+ modelProvider: "OPENAI";
53
+ modelName: string;
54
+ modelConfig: {
55
+ temperature: number;
56
+ };
57
+ systemPrompt: string;
58
+ toolChoice: "required";
59
+ maxIterations: number;
60
+ timeoutMs: number;
61
+ version: string;
62
+ tags: string[];
63
+ createdAt: Date;
64
+ updatedAt: Date;
65
+ } | {
66
+ id: string;
67
+ organizationId: string;
68
+ name: string;
69
+ slug: string;
70
+ description: string;
71
+ status: "DRAFT";
72
+ modelProvider: "GOOGLE";
73
+ modelName: string;
74
+ modelConfig: {
75
+ temperature: number;
76
+ };
77
+ systemPrompt: string;
78
+ toolChoice: "auto";
79
+ maxIterations: number;
80
+ timeoutMs: number;
81
+ version: string;
82
+ tags: string[];
83
+ createdAt: Date;
84
+ updatedAt: Date;
85
+ })[];
86
+ //#endregion
87
+ export { MOCK_AGENTS };
88
+ //# sourceMappingURL=mock-agents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock-agents.d.ts","names":[],"sources":["../../src/shared/mock-agents.ts"],"sourcesContent":[],"mappings":";;AAGA;;cAAa"}
@@ -0,0 +1,94 @@
1
+ //#region src/shared/mock-agents.ts
2
+ /**
3
+ * Mock agent data for testing and demos.
4
+ */
5
+ const MOCK_AGENTS = [
6
+ {
7
+ id: "agent-1",
8
+ organizationId: "demo-org",
9
+ name: "Customer Support Bot",
10
+ slug: "customer-support-bot",
11
+ description: "Handles tier-1 customer inquiries and routes complex issues.",
12
+ status: "ACTIVE",
13
+ modelProvider: "OPENAI",
14
+ modelName: "gpt-4o-mini",
15
+ modelConfig: { temperature: .7 },
16
+ systemPrompt: "You are a helpful customer support assistant.",
17
+ toolChoice: "auto",
18
+ maxIterations: 10,
19
+ timeoutMs: 12e4,
20
+ version: "1.0.0",
21
+ tags: ["support", "tier-1"],
22
+ createdAt: /* @__PURE__ */ new Date("2024-01-15T10:00:00Z"),
23
+ updatedAt: /* @__PURE__ */ new Date("2024-03-20T14:30:00Z")
24
+ },
25
+ {
26
+ id: "agent-2",
27
+ organizationId: "demo-org",
28
+ name: "Code Review Assistant",
29
+ slug: "code-review-assistant",
30
+ description: "Reviews pull requests and provides actionable feedback.",
31
+ status: "ACTIVE",
32
+ modelProvider: "ANTHROPIC",
33
+ modelName: "claude-sonnet-4-20250514",
34
+ modelConfig: { temperature: .3 },
35
+ systemPrompt: "You are a code review expert.",
36
+ toolChoice: "auto",
37
+ maxIterations: 15,
38
+ timeoutMs: 18e4,
39
+ version: "2.1.0",
40
+ tags: [
41
+ "code",
42
+ "review",
43
+ "dev"
44
+ ],
45
+ createdAt: /* @__PURE__ */ new Date("2024-02-10T09:00:00Z"),
46
+ updatedAt: /* @__PURE__ */ new Date("2024-04-05T11:15:00Z")
47
+ },
48
+ {
49
+ id: "agent-3",
50
+ organizationId: "demo-org",
51
+ name: "Data Analyst",
52
+ slug: "data-analyst",
53
+ description: "Queries databases and generates insights from data.",
54
+ status: "PAUSED",
55
+ modelProvider: "OPENAI",
56
+ modelName: "gpt-4o",
57
+ modelConfig: { temperature: .5 },
58
+ systemPrompt: "You are a data analyst expert in SQL and analytics.",
59
+ toolChoice: "required",
60
+ maxIterations: 20,
61
+ timeoutMs: 3e5,
62
+ version: "1.2.0",
63
+ tags: [
64
+ "data",
65
+ "analytics",
66
+ "sql"
67
+ ],
68
+ createdAt: /* @__PURE__ */ new Date("2024-03-01T08:00:00Z"),
69
+ updatedAt: /* @__PURE__ */ new Date("2024-04-10T16:45:00Z")
70
+ },
71
+ {
72
+ id: "agent-4",
73
+ organizationId: "demo-org",
74
+ name: "Meeting Scheduler",
75
+ slug: "meeting-scheduler",
76
+ description: "Schedules meetings and manages calendar conflicts.",
77
+ status: "DRAFT",
78
+ modelProvider: "GOOGLE",
79
+ modelName: "gemini-2.0-flash",
80
+ modelConfig: { temperature: .2 },
81
+ systemPrompt: "You help schedule and organize meetings efficiently.",
82
+ toolChoice: "auto",
83
+ maxIterations: 5,
84
+ timeoutMs: 6e4,
85
+ version: "0.1.0",
86
+ tags: ["calendar", "scheduling"],
87
+ createdAt: /* @__PURE__ */ new Date("2024-04-01T12:00:00Z"),
88
+ updatedAt: /* @__PURE__ */ new Date("2024-04-01T12:00:00Z")
89
+ }
90
+ ];
91
+
92
+ //#endregion
93
+ export { MOCK_AGENTS };
94
+ //# sourceMappingURL=mock-agents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock-agents.js","names":[],"sources":["../../src/shared/mock-agents.ts"],"sourcesContent":["/**\n * Mock agent data for testing and demos.\n */\nexport const MOCK_AGENTS = [\n {\n id: 'agent-1',\n organizationId: 'demo-org',\n name: 'Customer Support Bot',\n slug: 'customer-support-bot',\n description: 'Handles tier-1 customer inquiries and routes complex issues.',\n status: 'ACTIVE' as const,\n modelProvider: 'OPENAI' as const,\n modelName: 'gpt-4o-mini',\n modelConfig: { temperature: 0.7 },\n systemPrompt: 'You are a helpful customer support assistant.',\n toolChoice: 'auto' as const,\n maxIterations: 10,\n timeoutMs: 120000,\n version: '1.0.0',\n tags: ['support', 'tier-1'],\n createdAt: new Date('2024-01-15T10:00:00Z'),\n updatedAt: new Date('2024-03-20T14:30:00Z'),\n },\n {\n id: 'agent-2',\n organizationId: 'demo-org',\n name: 'Code Review Assistant',\n slug: 'code-review-assistant',\n description: 'Reviews pull requests and provides actionable feedback.',\n status: 'ACTIVE' as const,\n modelProvider: 'ANTHROPIC' as const,\n modelName: 'claude-sonnet-4-20250514',\n modelConfig: { temperature: 0.3 },\n systemPrompt: 'You are a code review expert.',\n toolChoice: 'auto' as const,\n maxIterations: 15,\n timeoutMs: 180000,\n version: '2.1.0',\n tags: ['code', 'review', 'dev'],\n createdAt: new Date('2024-02-10T09:00:00Z'),\n updatedAt: new Date('2024-04-05T11:15:00Z'),\n },\n {\n id: 'agent-3',\n organizationId: 'demo-org',\n name: 'Data Analyst',\n slug: 'data-analyst',\n description: 'Queries databases and generates insights from data.',\n status: 'PAUSED' as const,\n modelProvider: 'OPENAI' as const,\n modelName: 'gpt-4o',\n modelConfig: { temperature: 0.5 },\n systemPrompt: 'You are a data analyst expert in SQL and analytics.',\n toolChoice: 'required' as const,\n maxIterations: 20,\n timeoutMs: 300000,\n version: '1.2.0',\n tags: ['data', 'analytics', 'sql'],\n createdAt: new Date('2024-03-01T08:00:00Z'),\n updatedAt: new Date('2024-04-10T16:45:00Z'),\n },\n {\n id: 'agent-4',\n organizationId: 'demo-org',\n name: 'Meeting Scheduler',\n slug: 'meeting-scheduler',\n description: 'Schedules meetings and manages calendar conflicts.',\n status: 'DRAFT' as const,\n modelProvider: 'GOOGLE' as const,\n modelName: 'gemini-2.0-flash',\n modelConfig: { temperature: 0.2 },\n systemPrompt: 'You help schedule and organize meetings efficiently.',\n toolChoice: 'auto' as const,\n maxIterations: 5,\n timeoutMs: 60000,\n version: '0.1.0',\n tags: ['calendar', 'scheduling'],\n createdAt: new Date('2024-04-01T12:00:00Z'),\n updatedAt: new Date('2024-04-01T12:00:00Z'),\n },\n];\n"],"mappings":";;;;AAGA,MAAa,cAAc;CACzB;EACE,IAAI;EACJ,gBAAgB;EAChB,MAAM;EACN,MAAM;EACN,aAAa;EACb,QAAQ;EACR,eAAe;EACf,WAAW;EACX,aAAa,EAAE,aAAa,IAAK;EACjC,cAAc;EACd,YAAY;EACZ,eAAe;EACf,WAAW;EACX,SAAS;EACT,MAAM,CAAC,WAAW,SAAS;EAC3B,2BAAW,IAAI,KAAK,uBAAuB;EAC3C,2BAAW,IAAI,KAAK,uBAAuB;EAC5C;CACD;EACE,IAAI;EACJ,gBAAgB;EAChB,MAAM;EACN,MAAM;EACN,aAAa;EACb,QAAQ;EACR,eAAe;EACf,WAAW;EACX,aAAa,EAAE,aAAa,IAAK;EACjC,cAAc;EACd,YAAY;EACZ,eAAe;EACf,WAAW;EACX,SAAS;EACT,MAAM;GAAC;GAAQ;GAAU;GAAM;EAC/B,2BAAW,IAAI,KAAK,uBAAuB;EAC3C,2BAAW,IAAI,KAAK,uBAAuB;EAC5C;CACD;EACE,IAAI;EACJ,gBAAgB;EAChB,MAAM;EACN,MAAM;EACN,aAAa;EACb,QAAQ;EACR,eAAe;EACf,WAAW;EACX,aAAa,EAAE,aAAa,IAAK;EACjC,cAAc;EACd,YAAY;EACZ,eAAe;EACf,WAAW;EACX,SAAS;EACT,MAAM;GAAC;GAAQ;GAAa;GAAM;EAClC,2BAAW,IAAI,KAAK,uBAAuB;EAC3C,2BAAW,IAAI,KAAK,uBAAuB;EAC5C;CACD;EACE,IAAI;EACJ,gBAAgB;EAChB,MAAM;EACN,MAAM;EACN,aAAa;EACb,QAAQ;EACR,eAAe;EACf,WAAW;EACX,aAAa,EAAE,aAAa,IAAK;EACjC,cAAc;EACd,YAAY;EACZ,eAAe;EACf,WAAW;EACX,SAAS;EACT,MAAM,CAAC,YAAY,aAAa;EAChC,2BAAW,IAAI,KAAK,uBAAuB;EAC3C,2BAAW,IAAI,KAAK,uBAAuB;EAC5C;CACF"}
@@ -0,0 +1,120 @@
1
+ //#region src/shared/mock-runs.d.ts
2
+ /**
3
+ * Mock run data for testing and demos.
4
+ */
5
+ declare const MOCK_RUNS: ({
6
+ id: string;
7
+ organizationId: string;
8
+ agentId: string;
9
+ agentName: string;
10
+ userId: string;
11
+ sessionId: string;
12
+ input: {
13
+ message: string;
14
+ context: {
15
+ prNumber?: undefined;
16
+ };
17
+ };
18
+ output: {
19
+ response: string;
20
+ };
21
+ status: "COMPLETED";
22
+ totalTokens: number;
23
+ promptTokens: number;
24
+ completionTokens: number;
25
+ totalIterations: number;
26
+ durationMs: number;
27
+ estimatedCostUsd: number;
28
+ queuedAt: Date;
29
+ startedAt: Date;
30
+ completedAt: Date;
31
+ steps: never[];
32
+ logs: never[];
33
+ errorMessage?: undefined;
34
+ errorCode?: undefined;
35
+ } | {
36
+ id: string;
37
+ organizationId: string;
38
+ agentId: string;
39
+ agentName: string;
40
+ userId: string;
41
+ input: {
42
+ message: string;
43
+ context: {
44
+ prNumber: number;
45
+ };
46
+ };
47
+ status: "IN_PROGRESS";
48
+ totalTokens: number;
49
+ promptTokens: number;
50
+ completionTokens: number;
51
+ totalIterations: number;
52
+ queuedAt: Date;
53
+ startedAt: Date;
54
+ steps: never[];
55
+ logs: never[];
56
+ sessionId?: undefined;
57
+ output?: undefined;
58
+ durationMs?: undefined;
59
+ estimatedCostUsd?: undefined;
60
+ completedAt?: undefined;
61
+ errorMessage?: undefined;
62
+ errorCode?: undefined;
63
+ } | {
64
+ id: string;
65
+ organizationId: string;
66
+ agentId: string;
67
+ agentName: string;
68
+ userId: string;
69
+ input: {
70
+ message: string;
71
+ context?: undefined;
72
+ };
73
+ output: {
74
+ response: string;
75
+ };
76
+ status: "COMPLETED";
77
+ totalTokens: number;
78
+ promptTokens: number;
79
+ completionTokens: number;
80
+ totalIterations: number;
81
+ durationMs: number;
82
+ estimatedCostUsd: number;
83
+ queuedAt: Date;
84
+ startedAt: Date;
85
+ completedAt: Date;
86
+ steps: never[];
87
+ logs: never[];
88
+ sessionId?: undefined;
89
+ errorMessage?: undefined;
90
+ errorCode?: undefined;
91
+ } | {
92
+ id: string;
93
+ organizationId: string;
94
+ agentId: string;
95
+ agentName: string;
96
+ userId: string;
97
+ input: {
98
+ message: string;
99
+ context?: undefined;
100
+ };
101
+ status: "FAILED";
102
+ errorMessage: string;
103
+ errorCode: string;
104
+ totalTokens: number;
105
+ promptTokens: number;
106
+ completionTokens: number;
107
+ totalIterations: number;
108
+ durationMs: number;
109
+ queuedAt: Date;
110
+ startedAt: Date;
111
+ completedAt: Date;
112
+ steps: never[];
113
+ logs: never[];
114
+ sessionId?: undefined;
115
+ output?: undefined;
116
+ estimatedCostUsd?: undefined;
117
+ })[];
118
+ //#endregion
119
+ export { MOCK_RUNS };
120
+ //# sourceMappingURL=mock-runs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock-runs.d.ts","names":[],"sources":["../../src/shared/mock-runs.ts"],"sourcesContent":[],"mappings":";;AAGA;;cAAa"}