@lssm/example.agent-console 0.0.0-canary-20251217063201 → 0.0.0-canary-20251217072406
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.
- package/.turbo/turbo-build$colon$bundle.log +271 -237
- package/.turbo/turbo-build.log +272 -48
- package/CHANGELOG.md +6 -6
- package/dist/agent/agent.contracts.d.ts +126 -126
- package/dist/agent/agent.contracts.js +336 -1
- package/dist/agent/agent.entity.d.ts +36 -36
- package/dist/agent/agent.entity.js +136 -1
- package/dist/agent/agent.enum.d.ts +4 -4
- package/dist/agent/agent.enum.js +34 -1
- package/dist/agent/agent.event.d.ts +31 -31
- package/dist/agent/agent.event.js +183 -1
- package/dist/agent/agent.handler.d.ts +1 -1
- package/dist/agent/agent.handler.js +83 -1
- package/dist/agent/agent.presentation.js +75 -1
- package/dist/agent/agent.schema.d.ts +95 -95
- package/dist/agent/agent.schema.js +407 -1
- package/dist/agent/index.js +9 -1
- package/dist/agent.feature.js +295 -1
- package/dist/docs/agent-console.docblock.js +69 -5
- package/dist/docs/index.js +1 -1
- package/dist/example.js +50 -1
- package/dist/handlers/index.js +5 -1
- package/dist/index.js +32 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js +88 -1
- package/dist/libs/contracts/dist/client/index.js +5 -1
- package/dist/libs/contracts/dist/client/react/feature-render.js +2 -1
- package/dist/libs/contracts/dist/client/react/form-render.js +4 -1
- package/dist/libs/contracts/dist/client/react/index.js +4 -1
- package/dist/libs/contracts/dist/contract-registry/index.js +1 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js +60 -1
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +16 -76
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +16 -350
- package/dist/libs/contracts/dist/docs/index.js +29 -1
- package/dist/libs/contracts/dist/docs/presentations.js +71 -1
- package/dist/libs/contracts/dist/docs/registry.js +44 -1
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +16 -383
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +16 -68
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +16 -140
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +16 -86
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -1
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +24 -2
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +21 -2
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +16 -213
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +73 -5
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +37 -1
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -1
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +20 -262
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +48 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +24 -2
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +23 -2
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +25 -16
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +67 -1
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +22 -2
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +40 -36
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +47 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +23 -2
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +36 -3
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -1
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +36 -3
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -1
- package/dist/libs/contracts/dist/events.js +10 -1
- package/dist/libs/contracts/dist/experiments/evaluator.js +1 -1
- package/dist/libs/contracts/dist/index.js +71 -1
- package/dist/libs/contracts/dist/install.js +2 -1
- package/dist/libs/contracts/dist/integrations/contracts.js +377 -1
- package/dist/libs/contracts/dist/integrations/index.js +18 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +228 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +159 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +210 -1
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +242 -1
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +13 -1
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +52 -1
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +75 -1
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +87 -1
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +66 -1
- package/dist/libs/contracts/dist/integrations/providers/index.js +11 -1
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +68 -1
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +68 -1
- package/dist/libs/contracts/dist/integrations/providers/powens.js +116 -1
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +73 -1
- package/dist/libs/contracts/dist/integrations/providers/registry.js +10 -1
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +83 -1
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +61 -1
- package/dist/libs/contracts/dist/jsonschema.js +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js +306 -1
- package/dist/libs/contracts/dist/knowledge/index.js +7 -1
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +34 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +34 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +38 -1
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +6 -1
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +34 -1
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +37 -1
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +34 -1
- package/dist/libs/contracts/dist/llm/exporters.js +19 -1
- package/dist/libs/contracts/dist/llm/index.js +2 -1
- package/dist/libs/contracts/dist/llm/prompts.js +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js +196 -1
- package/dist/libs/contracts/dist/openapi.js +1 -1
- package/dist/libs/contracts/dist/ownership.js +21 -1
- package/dist/libs/contracts/dist/presentations.js +1 -1
- package/dist/libs/contracts/dist/presentations.v2.js +11 -1
- package/dist/libs/contracts/dist/prompt.js +1 -1
- package/dist/libs/contracts/dist/promptRegistry.js +1 -1
- package/dist/libs/contracts/dist/regenerator/index.js +1 -1
- package/dist/libs/contracts/dist/regenerator/service.js +6 -1
- package/dist/libs/contracts/dist/registry.js +2 -1
- package/dist/libs/contracts/dist/resources.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +2 -1
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +49 -1
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +236 -1
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +39 -1
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +2 -1
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/index.js +6 -1
- package/dist/libs/contracts/dist/server/graphql-pothos.js +6 -1
- package/dist/libs/contracts/dist/server/index.js +8 -1
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +4 -1
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +2 -1
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -1
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +2 -1
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -1
- package/dist/libs/contracts/dist/server/provider-mcp.js +1 -1
- package/dist/libs/contracts/dist/server/rest-elysia.js +1 -1
- package/dist/libs/contracts/dist/server/rest-express.js +1 -1
- package/dist/libs/contracts/dist/server/rest-generic.js +1 -1
- package/dist/libs/contracts/dist/server/rest-next-app.js +1 -1
- package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -1
- package/dist/libs/contracts/dist/spec.js +34 -1
- package/dist/libs/contracts/dist/telemetry/index.js +1 -1
- package/dist/libs/contracts/dist/telemetry/tracker.js +1 -1
- package/dist/libs/contracts/dist/tests/index.js +1 -1
- package/dist/libs/contracts/dist/tests/runner.js +2 -1
- package/dist/libs/contracts/dist/workflow/index.js +1 -1
- package/dist/libs/contracts/dist/workflow/runner.js +1 -1
- package/dist/libs/schema/dist/EnumType.js +56 -1
- package/dist/libs/schema/dist/FieldType.js +49 -1
- package/dist/libs/schema/dist/ScalarTypeEnum.js +236 -1
- package/dist/libs/schema/dist/SchemaModel.js +39 -1
- package/dist/libs/schema/dist/entity/defineEntity.js +236 -1
- package/dist/libs/schema/dist/entity/index.js +2 -1
- package/dist/libs/schema/dist/entity/types.js +1 -1
- package/dist/libs/schema/dist/index.js +6 -1
- package/dist/presentations/index.js +5 -1
- package/dist/run/index.js +9 -1
- package/dist/run/run.contracts.d.ts +175 -175
- package/dist/run/run.contracts.js +469 -1
- package/dist/run/run.entity.d.ts +56 -56
- package/dist/run/run.entity.js +205 -1
- package/dist/run/run.enum.d.ts +5 -5
- package/dist/run/run.enum.js +45 -1
- package/dist/run/run.event.d.ts +71 -71
- package/dist/run/run.event.js +389 -1
- package/dist/run/run.handler.js +82 -1
- package/dist/run/run.presentation.js +55 -1
- package/dist/run/run.schema.d.ts +99 -99
- package/dist/run/run.schema.js +339 -1
- package/dist/shared/index.js +5 -1
- package/dist/shared/mock-agents.js +93 -1
- package/dist/shared/mock-runs.js +117 -1
- package/dist/shared/mock-tools.js +180 -1
- package/dist/tool/index.js +9 -1
- package/dist/tool/tool.contracts.d.ts +101 -101
- package/dist/tool/tool.contracts.js +288 -1
- package/dist/tool/tool.entity.d.ts +24 -24
- package/dist/tool/tool.entity.js +105 -1
- package/dist/tool/tool.enum.d.ts +4 -4
- package/dist/tool/tool.enum.js +35 -1
- package/dist/tool/tool.event.d.ts +25 -25
- package/dist/tool/tool.event.js +145 -1
- package/dist/tool/tool.handler.d.ts +1 -1
- package/dist/tool/tool.handler.js +86 -1
- package/dist/tool/tool.presentation.js +55 -1
- package/dist/tool/tool.schema.d.ts +52 -52
- package/dist/tool/tool.schema.js +237 -1
- package/package.json +8 -8
- package/tsconfig.tsbuildinfo +1 -1
package/dist/run/run.schema.js
CHANGED
|
@@ -1 +1,339 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { ScalarTypeEnum } from "../libs/schema/dist/ScalarTypeEnum.js";
|
|
2
|
+
import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
|
|
3
|
+
import "../libs/schema/dist/index.js";
|
|
4
|
+
import { LogLevelEnum, RunStatusEnum, RunStepTypeEnum } from "./run.enum.js";
|
|
5
|
+
|
|
6
|
+
//#region src/run/run.schema.ts
|
|
7
|
+
/**
|
|
8
|
+
* Input data for agent execution.
|
|
9
|
+
*/
|
|
10
|
+
const RunInputModel = defineSchemaModel({
|
|
11
|
+
name: "RunInput",
|
|
12
|
+
description: "Input data for agent execution",
|
|
13
|
+
fields: {
|
|
14
|
+
message: {
|
|
15
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
16
|
+
isOptional: false
|
|
17
|
+
},
|
|
18
|
+
context: {
|
|
19
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
20
|
+
isOptional: true
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
/**
|
|
25
|
+
* Individual step within a run.
|
|
26
|
+
*/
|
|
27
|
+
const RunStepModel = defineSchemaModel({
|
|
28
|
+
name: "RunStep",
|
|
29
|
+
description: "Individual step within a run",
|
|
30
|
+
fields: {
|
|
31
|
+
id: {
|
|
32
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
33
|
+
isOptional: false
|
|
34
|
+
},
|
|
35
|
+
stepNumber: {
|
|
36
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
37
|
+
isOptional: false
|
|
38
|
+
},
|
|
39
|
+
type: {
|
|
40
|
+
type: RunStepTypeEnum,
|
|
41
|
+
isOptional: false
|
|
42
|
+
},
|
|
43
|
+
toolId: {
|
|
44
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
45
|
+
isOptional: true
|
|
46
|
+
},
|
|
47
|
+
toolName: {
|
|
48
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
49
|
+
isOptional: true
|
|
50
|
+
},
|
|
51
|
+
input: {
|
|
52
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
53
|
+
isOptional: true
|
|
54
|
+
},
|
|
55
|
+
output: {
|
|
56
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
57
|
+
isOptional: true
|
|
58
|
+
},
|
|
59
|
+
status: {
|
|
60
|
+
type: RunStatusEnum,
|
|
61
|
+
isOptional: false
|
|
62
|
+
},
|
|
63
|
+
errorMessage: {
|
|
64
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
65
|
+
isOptional: true
|
|
66
|
+
},
|
|
67
|
+
tokensUsed: {
|
|
68
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
69
|
+
isOptional: false,
|
|
70
|
+
defaultValue: 0
|
|
71
|
+
},
|
|
72
|
+
durationMs: {
|
|
73
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
74
|
+
isOptional: true
|
|
75
|
+
},
|
|
76
|
+
startedAt: {
|
|
77
|
+
type: ScalarTypeEnum.DateTime(),
|
|
78
|
+
isOptional: false
|
|
79
|
+
},
|
|
80
|
+
completedAt: {
|
|
81
|
+
type: ScalarTypeEnum.DateTime(),
|
|
82
|
+
isOptional: true
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
/**
|
|
87
|
+
* Execution log entry.
|
|
88
|
+
*/
|
|
89
|
+
const RunLogModel = defineSchemaModel({
|
|
90
|
+
name: "RunLog",
|
|
91
|
+
description: "Execution log entry",
|
|
92
|
+
fields: {
|
|
93
|
+
id: {
|
|
94
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
95
|
+
isOptional: false
|
|
96
|
+
},
|
|
97
|
+
stepId: {
|
|
98
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
99
|
+
isOptional: true
|
|
100
|
+
},
|
|
101
|
+
level: {
|
|
102
|
+
type: LogLevelEnum,
|
|
103
|
+
isOptional: false
|
|
104
|
+
},
|
|
105
|
+
message: {
|
|
106
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
107
|
+
isOptional: false
|
|
108
|
+
},
|
|
109
|
+
data: {
|
|
110
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
111
|
+
isOptional: true
|
|
112
|
+
},
|
|
113
|
+
source: {
|
|
114
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
115
|
+
isOptional: true
|
|
116
|
+
},
|
|
117
|
+
traceId: {
|
|
118
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
119
|
+
isOptional: true
|
|
120
|
+
},
|
|
121
|
+
spanId: {
|
|
122
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
123
|
+
isOptional: true
|
|
124
|
+
},
|
|
125
|
+
timestamp: {
|
|
126
|
+
type: ScalarTypeEnum.DateTime(),
|
|
127
|
+
isOptional: false
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
/**
|
|
132
|
+
* Agent reference in a run.
|
|
133
|
+
*/
|
|
134
|
+
const RunAgentRefModel = defineSchemaModel({
|
|
135
|
+
name: "RunAgentRef",
|
|
136
|
+
description: "Agent reference in a run",
|
|
137
|
+
fields: {
|
|
138
|
+
id: {
|
|
139
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
140
|
+
isOptional: false
|
|
141
|
+
},
|
|
142
|
+
name: {
|
|
143
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
144
|
+
isOptional: false
|
|
145
|
+
},
|
|
146
|
+
modelProvider: {
|
|
147
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
148
|
+
isOptional: false
|
|
149
|
+
},
|
|
150
|
+
modelName: {
|
|
151
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
152
|
+
isOptional: false
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
/**
|
|
157
|
+
* Agent execution instance.
|
|
158
|
+
*/
|
|
159
|
+
const RunModel = defineSchemaModel({
|
|
160
|
+
name: "Run",
|
|
161
|
+
description: "Agent execution instance",
|
|
162
|
+
fields: {
|
|
163
|
+
id: {
|
|
164
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
165
|
+
isOptional: false
|
|
166
|
+
},
|
|
167
|
+
organizationId: {
|
|
168
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
169
|
+
isOptional: false
|
|
170
|
+
},
|
|
171
|
+
agentId: {
|
|
172
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
173
|
+
isOptional: false
|
|
174
|
+
},
|
|
175
|
+
userId: {
|
|
176
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
177
|
+
isOptional: true
|
|
178
|
+
},
|
|
179
|
+
sessionId: {
|
|
180
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
181
|
+
isOptional: true
|
|
182
|
+
},
|
|
183
|
+
input: {
|
|
184
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
185
|
+
isOptional: false
|
|
186
|
+
},
|
|
187
|
+
output: {
|
|
188
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
189
|
+
isOptional: true
|
|
190
|
+
},
|
|
191
|
+
status: {
|
|
192
|
+
type: RunStatusEnum,
|
|
193
|
+
isOptional: false
|
|
194
|
+
},
|
|
195
|
+
errorMessage: {
|
|
196
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
197
|
+
isOptional: true
|
|
198
|
+
},
|
|
199
|
+
errorCode: {
|
|
200
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
201
|
+
isOptional: true
|
|
202
|
+
},
|
|
203
|
+
totalTokens: {
|
|
204
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
205
|
+
isOptional: false,
|
|
206
|
+
defaultValue: 0
|
|
207
|
+
},
|
|
208
|
+
promptTokens: {
|
|
209
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
210
|
+
isOptional: false,
|
|
211
|
+
defaultValue: 0
|
|
212
|
+
},
|
|
213
|
+
completionTokens: {
|
|
214
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
215
|
+
isOptional: false,
|
|
216
|
+
defaultValue: 0
|
|
217
|
+
},
|
|
218
|
+
totalIterations: {
|
|
219
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
220
|
+
isOptional: false,
|
|
221
|
+
defaultValue: 0
|
|
222
|
+
},
|
|
223
|
+
durationMs: {
|
|
224
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
225
|
+
isOptional: true
|
|
226
|
+
},
|
|
227
|
+
estimatedCostUsd: {
|
|
228
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
229
|
+
isOptional: true
|
|
230
|
+
},
|
|
231
|
+
queuedAt: {
|
|
232
|
+
type: ScalarTypeEnum.DateTime(),
|
|
233
|
+
isOptional: false
|
|
234
|
+
},
|
|
235
|
+
startedAt: {
|
|
236
|
+
type: ScalarTypeEnum.DateTime(),
|
|
237
|
+
isOptional: true
|
|
238
|
+
},
|
|
239
|
+
completedAt: {
|
|
240
|
+
type: ScalarTypeEnum.DateTime(),
|
|
241
|
+
isOptional: true
|
|
242
|
+
},
|
|
243
|
+
metadata: {
|
|
244
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
245
|
+
isOptional: true
|
|
246
|
+
},
|
|
247
|
+
steps: {
|
|
248
|
+
type: RunStepModel,
|
|
249
|
+
isArray: true,
|
|
250
|
+
isOptional: true
|
|
251
|
+
},
|
|
252
|
+
logs: {
|
|
253
|
+
type: RunLogModel,
|
|
254
|
+
isArray: true,
|
|
255
|
+
isOptional: true
|
|
256
|
+
},
|
|
257
|
+
agent: {
|
|
258
|
+
type: RunAgentRefModel,
|
|
259
|
+
isOptional: true
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
/**
|
|
264
|
+
* Summary of a run for list views.
|
|
265
|
+
*/
|
|
266
|
+
const RunSummaryModel = defineSchemaModel({
|
|
267
|
+
name: "RunSummary",
|
|
268
|
+
description: "Summary of a run for list views",
|
|
269
|
+
fields: {
|
|
270
|
+
id: {
|
|
271
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
272
|
+
isOptional: false
|
|
273
|
+
},
|
|
274
|
+
agentId: {
|
|
275
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
276
|
+
isOptional: false
|
|
277
|
+
},
|
|
278
|
+
agentName: {
|
|
279
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
280
|
+
isOptional: false
|
|
281
|
+
},
|
|
282
|
+
status: {
|
|
283
|
+
type: RunStatusEnum,
|
|
284
|
+
isOptional: false
|
|
285
|
+
},
|
|
286
|
+
totalTokens: {
|
|
287
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
288
|
+
isOptional: false
|
|
289
|
+
},
|
|
290
|
+
durationMs: {
|
|
291
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
292
|
+
isOptional: true
|
|
293
|
+
},
|
|
294
|
+
estimatedCostUsd: {
|
|
295
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
296
|
+
isOptional: true
|
|
297
|
+
},
|
|
298
|
+
queuedAt: {
|
|
299
|
+
type: ScalarTypeEnum.DateTime(),
|
|
300
|
+
isOptional: false
|
|
301
|
+
},
|
|
302
|
+
completedAt: {
|
|
303
|
+
type: ScalarTypeEnum.DateTime(),
|
|
304
|
+
isOptional: true
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
/**
|
|
309
|
+
* Timeline data point for metrics.
|
|
310
|
+
*/
|
|
311
|
+
const TimelineDataPointModel = defineSchemaModel({
|
|
312
|
+
name: "TimelineDataPoint",
|
|
313
|
+
description: "Timeline data point for metrics",
|
|
314
|
+
fields: {
|
|
315
|
+
period: {
|
|
316
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
317
|
+
isOptional: false
|
|
318
|
+
},
|
|
319
|
+
runs: {
|
|
320
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
321
|
+
isOptional: false
|
|
322
|
+
},
|
|
323
|
+
tokens: {
|
|
324
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
325
|
+
isOptional: false
|
|
326
|
+
},
|
|
327
|
+
costUsd: {
|
|
328
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
329
|
+
isOptional: false
|
|
330
|
+
},
|
|
331
|
+
avgDurationMs: {
|
|
332
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
333
|
+
isOptional: false
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
|
|
338
|
+
//#endregion
|
|
339
|
+
export { RunAgentRefModel, RunInputModel, RunLogModel, RunModel, RunStepModel, RunSummaryModel, TimelineDataPointModel };
|
package/dist/shared/index.js
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
import{MOCK_AGENTS
|
|
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 };
|
|
@@ -1 +1,93 @@
|
|
|
1
|
-
|
|
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 };
|
package/dist/shared/mock-runs.js
CHANGED
|
@@ -1 +1,117 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/shared/mock-runs.ts
|
|
2
|
+
/**
|
|
3
|
+
* Mock run data for testing and demos.
|
|
4
|
+
*/
|
|
5
|
+
const MOCK_RUNS = [
|
|
6
|
+
{
|
|
7
|
+
id: "run-1",
|
|
8
|
+
organizationId: "demo-org",
|
|
9
|
+
agentId: "agent-1",
|
|
10
|
+
agentName: "Customer Support Bot",
|
|
11
|
+
userId: "user-1",
|
|
12
|
+
sessionId: "session-1",
|
|
13
|
+
input: {
|
|
14
|
+
message: "How do I reset my password?",
|
|
15
|
+
context: {}
|
|
16
|
+
},
|
|
17
|
+
output: { response: "You can reset your password by clicking..." },
|
|
18
|
+
status: "COMPLETED",
|
|
19
|
+
totalTokens: 1250,
|
|
20
|
+
promptTokens: 800,
|
|
21
|
+
completionTokens: 450,
|
|
22
|
+
totalIterations: 3,
|
|
23
|
+
durationMs: 4500,
|
|
24
|
+
estimatedCostUsd: .0025,
|
|
25
|
+
queuedAt: /* @__PURE__ */ new Date("2024-04-15T10:00:00Z"),
|
|
26
|
+
startedAt: /* @__PURE__ */ new Date("2024-04-15T10:00:01Z"),
|
|
27
|
+
completedAt: /* @__PURE__ */ new Date("2024-04-15T10:00:05Z"),
|
|
28
|
+
steps: [],
|
|
29
|
+
logs: []
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: "run-2",
|
|
33
|
+
organizationId: "demo-org",
|
|
34
|
+
agentId: "agent-2",
|
|
35
|
+
agentName: "Code Review Assistant",
|
|
36
|
+
userId: "user-2",
|
|
37
|
+
input: {
|
|
38
|
+
message: "Review PR #123",
|
|
39
|
+
context: { prNumber: 123 }
|
|
40
|
+
},
|
|
41
|
+
status: "IN_PROGRESS",
|
|
42
|
+
totalTokens: 3500,
|
|
43
|
+
promptTokens: 3e3,
|
|
44
|
+
completionTokens: 500,
|
|
45
|
+
totalIterations: 5,
|
|
46
|
+
queuedAt: /* @__PURE__ */ new Date("2024-04-15T10:30:00Z"),
|
|
47
|
+
startedAt: /* @__PURE__ */ new Date("2024-04-15T10:30:02Z"),
|
|
48
|
+
steps: [],
|
|
49
|
+
logs: []
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: "run-3",
|
|
53
|
+
organizationId: "demo-org",
|
|
54
|
+
agentId: "agent-1",
|
|
55
|
+
agentName: "Customer Support Bot",
|
|
56
|
+
userId: "user-1",
|
|
57
|
+
input: { message: "What are your business hours?" },
|
|
58
|
+
output: { response: "Our business hours are 9 AM to 5 PM EST..." },
|
|
59
|
+
status: "COMPLETED",
|
|
60
|
+
totalTokens: 800,
|
|
61
|
+
promptTokens: 500,
|
|
62
|
+
completionTokens: 300,
|
|
63
|
+
totalIterations: 2,
|
|
64
|
+
durationMs: 2100,
|
|
65
|
+
estimatedCostUsd: .0012,
|
|
66
|
+
queuedAt: /* @__PURE__ */ new Date("2024-04-15T09:00:00Z"),
|
|
67
|
+
startedAt: /* @__PURE__ */ new Date("2024-04-15T09:00:01Z"),
|
|
68
|
+
completedAt: /* @__PURE__ */ new Date("2024-04-15T09:00:03Z"),
|
|
69
|
+
steps: [],
|
|
70
|
+
logs: []
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: "run-4",
|
|
74
|
+
organizationId: "demo-org",
|
|
75
|
+
agentId: "agent-3",
|
|
76
|
+
agentName: "Data Analyst",
|
|
77
|
+
userId: "user-3",
|
|
78
|
+
input: { message: "Generate sales report for Q1" },
|
|
79
|
+
status: "FAILED",
|
|
80
|
+
errorMessage: "Database connection timeout",
|
|
81
|
+
errorCode: "DB_TIMEOUT",
|
|
82
|
+
totalTokens: 2e3,
|
|
83
|
+
promptTokens: 1500,
|
|
84
|
+
completionTokens: 500,
|
|
85
|
+
totalIterations: 8,
|
|
86
|
+
durationMs: 45e3,
|
|
87
|
+
queuedAt: /* @__PURE__ */ new Date("2024-04-14T15:00:00Z"),
|
|
88
|
+
startedAt: /* @__PURE__ */ new Date("2024-04-14T15:00:05Z"),
|
|
89
|
+
completedAt: /* @__PURE__ */ new Date("2024-04-14T15:00:50Z"),
|
|
90
|
+
steps: [],
|
|
91
|
+
logs: []
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: "run-5",
|
|
95
|
+
organizationId: "demo-org",
|
|
96
|
+
agentId: "agent-2",
|
|
97
|
+
agentName: "Code Review Assistant",
|
|
98
|
+
userId: "user-2",
|
|
99
|
+
input: { message: "Review PR #120" },
|
|
100
|
+
output: { response: "Code review complete. 3 suggestions..." },
|
|
101
|
+
status: "COMPLETED",
|
|
102
|
+
totalTokens: 5200,
|
|
103
|
+
promptTokens: 4e3,
|
|
104
|
+
completionTokens: 1200,
|
|
105
|
+
totalIterations: 7,
|
|
106
|
+
durationMs: 15e3,
|
|
107
|
+
estimatedCostUsd: .0156,
|
|
108
|
+
queuedAt: /* @__PURE__ */ new Date("2024-04-14T11:00:00Z"),
|
|
109
|
+
startedAt: /* @__PURE__ */ new Date("2024-04-14T11:00:03Z"),
|
|
110
|
+
completedAt: /* @__PURE__ */ new Date("2024-04-14T11:00:18Z"),
|
|
111
|
+
steps: [],
|
|
112
|
+
logs: []
|
|
113
|
+
}
|
|
114
|
+
];
|
|
115
|
+
|
|
116
|
+
//#endregion
|
|
117
|
+
export { MOCK_RUNS };
|