@lssm/example.agent-console 0.0.0-canary-20251222120211 → 0.0.0-canary-20251223010757
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 +127 -379
- package/.turbo/turbo-build.log +128 -380
- package/CHANGELOG.md +6 -6
- package/dist/agent/agent.entity.d.ts +36 -36
- package/dist/agent/agent.entity.d.ts.map +1 -1
- package/dist/agent/agent.entity.js +40 -40
- package/dist/agent/agent.entity.js.map +1 -1
- package/dist/agent/agent.enum.d.ts +4 -4
- package/dist/agent/agent.enum.d.ts.map +1 -1
- package/dist/agent/agent.enum.js +4 -4
- package/dist/agent/agent.enum.js.map +1 -1
- package/dist/agent/agent.event.d.ts +31 -31
- package/dist/agent/agent.event.d.ts.map +1 -1
- package/dist/agent/agent.event.js +31 -33
- package/dist/agent/agent.event.js.map +1 -1
- package/dist/agent/agent.operation.d.ts +126 -126
- package/dist/agent/agent.operation.d.ts.map +1 -1
- package/dist/agent/agent.operation.js +35 -36
- package/dist/agent/agent.operation.js.map +1 -1
- package/dist/agent/agent.presentation.d.ts.map +1 -1
- package/dist/agent/agent.schema.d.ts +95 -95
- package/dist/agent/agent.schema.js +77 -77
- package/dist/agent/agent.schema.js.map +1 -1
- package/dist/docs/agent-console.docblock.js +1 -2
- package/dist/docs/agent-console.docblock.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/run/run.entity.d.ts +56 -56
- package/dist/run/run.entity.js +62 -62
- package/dist/run/run.entity.js.map +1 -1
- package/dist/run/run.enum.d.ts +5 -5
- package/dist/run/run.enum.js +5 -5
- package/dist/run/run.enum.js.map +1 -1
- package/dist/run/run.event.d.ts +71 -71
- package/dist/run/run.event.d.ts.map +1 -1
- package/dist/run/run.event.js +71 -73
- package/dist/run/run.event.js.map +1 -1
- package/dist/run/run.operation.d.ts +175 -175
- package/dist/run/run.operation.d.ts.map +1 -1
- package/dist/run/run.operation.js +57 -58
- package/dist/run/run.operation.js.map +1 -1
- package/dist/run/run.schema.d.ts +99 -99
- package/dist/run/run.schema.js +65 -65
- package/dist/run/run.schema.js.map +1 -1
- package/dist/tool/tool.entity.d.ts +24 -24
- package/dist/tool/tool.entity.js +27 -27
- package/dist/tool/tool.entity.js.map +1 -1
- package/dist/tool/tool.enum.d.ts +4 -4
- package/dist/tool/tool.enum.js +4 -4
- package/dist/tool/tool.enum.js.map +1 -1
- package/dist/tool/tool.event.d.ts +25 -25
- package/dist/tool/tool.event.js +25 -27
- package/dist/tool/tool.event.js.map +1 -1
- package/dist/tool/tool.handler.d.ts.map +1 -1
- package/dist/tool/tool.operation.d.ts +101 -101
- package/dist/tool/tool.operation.js +28 -29
- package/dist/tool/tool.operation.js.map +1 -1
- package/dist/tool/tool.presentation.d.ts.map +1 -1
- package/dist/tool/tool.schema.js +44 -44
- package/dist/tool/tool.schema.js.map +1 -1
- package/package.json +9 -9
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +0 -6
- package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +0 -1
- package/dist/libs/contracts/dist/capabilities/index.js +0 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -89
- package/dist/libs/contracts/dist/capabilities/openbanking.js.map +0 -1
- package/dist/libs/contracts/dist/client/index.js +0 -5
- package/dist/libs/contracts/dist/client/react/feature-render.js +0 -3
- package/dist/libs/contracts/dist/client/react/form-render.js +0 -5
- package/dist/libs/contracts/dist/client/react/index.js +0 -4
- package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -61
- package/dist/libs/contracts/dist/contract-registry/schemas.js.map +0 -1
- package/dist/libs/contracts/dist/data-views/data-views.js +0 -7
- package/dist/libs/contracts/dist/data-views/data-views.js.map +0 -1
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -17
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/index.js +0 -25
- package/dist/libs/contracts/dist/docs/meta.docs.js +0 -30
- package/dist/libs/contracts/dist/docs/meta.docs.js.map +0 -1
- package/dist/libs/contracts/dist/docs/presentations.js +0 -72
- package/dist/libs/contracts/dist/docs/presentations.js.map +0 -1
- package/dist/libs/contracts/dist/docs/registry.js +0 -45
- package/dist/libs/contracts/dist/docs/registry.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -81
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -58
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -17
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -358
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -38
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -17
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -21
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -49
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -80
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -85
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -46
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -68
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -41
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -70
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -48
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -63
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -156
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -21
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -102
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -21
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +0 -1
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +0 -97
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +0 -1
- package/dist/libs/contracts/dist/events.js +0 -11
- package/dist/libs/contracts/dist/events.js.map +0 -1
- package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
- package/dist/libs/contracts/dist/features.js +0 -7
- package/dist/libs/contracts/dist/features.js.map +0 -1
- package/dist/libs/contracts/dist/forms/forms.js +0 -1
- package/dist/libs/contracts/dist/index.js +0 -88
- package/dist/libs/contracts/dist/index.js.map +0 -1
- package/dist/libs/contracts/dist/install.js +0 -2
- package/dist/libs/contracts/dist/integrations/index.js +0 -18
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -241
- package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -14
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/operations.js +0 -377
- package/dist/libs/contracts/dist/integrations/operations.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -53
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -76
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -88
- package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -67
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -69
- package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -69
- package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -117
- package/dist/libs/contracts/dist/integrations/providers/powens.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -74
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -84
- package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -62
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +0 -1
- package/dist/libs/contracts/dist/jsonschema.js +0 -1
- package/dist/libs/contracts/dist/knowledge/index.js +0 -7
- package/dist/libs/contracts/dist/knowledge/operations.js +0 -306
- package/dist/libs/contracts/dist/knowledge/operations.js.map +0 -1
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -35
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +0 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -35
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +0 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -39
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +0 -1
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -35
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +0 -1
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -38
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +0 -1
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -35
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +0 -1
- package/dist/libs/contracts/dist/llm/exporters.js +0 -21
- package/dist/libs/contracts/dist/llm/exporters.js.map +0 -1
- package/dist/libs/contracts/dist/llm/index.js +0 -2
- package/dist/libs/contracts/dist/llm/prompts.js +0 -1
- package/dist/libs/contracts/dist/onboarding-base.js +0 -196
- package/dist/libs/contracts/dist/onboarding-base.js.map +0 -1
- package/dist/libs/contracts/dist/openapi.js +0 -1
- package/dist/libs/contracts/dist/operations/index.js +0 -2
- package/dist/libs/contracts/dist/operations/operation.js +0 -35
- package/dist/libs/contracts/dist/operations/operation.js.map +0 -1
- package/dist/libs/contracts/dist/operations/registry.js +0 -8
- package/dist/libs/contracts/dist/operations/registry.js.map +0 -1
- package/dist/libs/contracts/dist/ownership.js +0 -24
- package/dist/libs/contracts/dist/ownership.js.map +0 -1
- package/dist/libs/contracts/dist/presentations/index.js +0 -2
- package/dist/libs/contracts/dist/presentations/presentations.js +0 -8
- package/dist/libs/contracts/dist/presentations/presentations.js.map +0 -1
- package/dist/libs/contracts/dist/presentations/transform-engine.js +0 -12
- package/dist/libs/contracts/dist/presentations/transform-engine.js.map +0 -1
- package/dist/libs/contracts/dist/prompt.js +0 -1
- package/dist/libs/contracts/dist/promptRegistry.js +0 -1
- package/dist/libs/contracts/dist/regenerator/index.js +0 -1
- package/dist/libs/contracts/dist/regenerator/service.js +0 -7
- package/dist/libs/contracts/dist/regenerator/service.js.map +0 -1
- package/dist/libs/contracts/dist/registry-utils.js +0 -24
- package/dist/libs/contracts/dist/registry-utils.js.map +0 -1
- package/dist/libs/contracts/dist/resources.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/index.js +0 -3874
- package/dist/libs/contracts/dist/schema/dist/index.js.map +0 -1
- package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
- package/dist/libs/contracts/dist/server/index.js +0 -8
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -3
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
- package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
- package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
- package/dist/libs/contracts/dist/server/rest-express.js +0 -1
- package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
- package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
- package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
- package/dist/libs/contracts/dist/telemetry/index.js +0 -1
- package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
- package/dist/libs/contracts/dist/tests/index.js +0 -1
- package/dist/libs/contracts/dist/tests/runner.js +0 -2
- package/dist/libs/contracts/dist/workflow/index.js +0 -2
- package/dist/libs/contracts/dist/workflow/runner.js +0 -1
- package/dist/libs/contracts/dist/workflow/spec.js +0 -7
- package/dist/libs/contracts/dist/workflow/spec.js.map +0 -1
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +0 -164
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +0 -1
- package/dist/libs/contracts/dist/workspace-config/index.js +0 -1
- package/dist/libs/schema/dist/index.js +0 -4922
- package/dist/libs/schema/dist/index.js.map +0 -1
package/dist/run/run.schema.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { E5, K5 } from "../libs/schema/dist/index.js";
|
|
2
1
|
import { LogLevelEnum, RunStatusEnum, RunStepTypeEnum } from "./run.enum.js";
|
|
2
|
+
import { ScalarTypeEnum, defineSchemaModel } from "@lssm/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/run/run.schema.ts
|
|
5
5
|
/**
|
|
6
6
|
* Input data for agent execution.
|
|
7
7
|
*/
|
|
8
|
-
const RunInputModel =
|
|
8
|
+
const RunInputModel = defineSchemaModel({
|
|
9
9
|
name: "RunInput",
|
|
10
10
|
description: "Input data for agent execution",
|
|
11
11
|
fields: {
|
|
12
12
|
message: {
|
|
13
|
-
type:
|
|
13
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
14
14
|
isOptional: false
|
|
15
15
|
},
|
|
16
16
|
context: {
|
|
17
|
-
type:
|
|
17
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
18
18
|
isOptional: true
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -22,16 +22,16 @@ const RunInputModel = K5({
|
|
|
22
22
|
/**
|
|
23
23
|
* Individual step within a run.
|
|
24
24
|
*/
|
|
25
|
-
const RunStepModel =
|
|
25
|
+
const RunStepModel = defineSchemaModel({
|
|
26
26
|
name: "RunStep",
|
|
27
27
|
description: "Individual step within a run",
|
|
28
28
|
fields: {
|
|
29
29
|
id: {
|
|
30
|
-
type:
|
|
30
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
31
31
|
isOptional: false
|
|
32
32
|
},
|
|
33
33
|
stepNumber: {
|
|
34
|
-
type:
|
|
34
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
35
35
|
isOptional: false
|
|
36
36
|
},
|
|
37
37
|
type: {
|
|
@@ -39,19 +39,19 @@ const RunStepModel = K5({
|
|
|
39
39
|
isOptional: false
|
|
40
40
|
},
|
|
41
41
|
toolId: {
|
|
42
|
-
type:
|
|
42
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
43
43
|
isOptional: true
|
|
44
44
|
},
|
|
45
45
|
toolName: {
|
|
46
|
-
type:
|
|
46
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
47
47
|
isOptional: true
|
|
48
48
|
},
|
|
49
49
|
input: {
|
|
50
|
-
type:
|
|
50
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
51
51
|
isOptional: true
|
|
52
52
|
},
|
|
53
53
|
output: {
|
|
54
|
-
type:
|
|
54
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
55
55
|
isOptional: true
|
|
56
56
|
},
|
|
57
57
|
status: {
|
|
@@ -59,24 +59,24 @@ const RunStepModel = K5({
|
|
|
59
59
|
isOptional: false
|
|
60
60
|
},
|
|
61
61
|
errorMessage: {
|
|
62
|
-
type:
|
|
62
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
63
63
|
isOptional: true
|
|
64
64
|
},
|
|
65
65
|
tokensUsed: {
|
|
66
|
-
type:
|
|
66
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
67
67
|
isOptional: false,
|
|
68
68
|
defaultValue: 0
|
|
69
69
|
},
|
|
70
70
|
durationMs: {
|
|
71
|
-
type:
|
|
71
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
72
72
|
isOptional: true
|
|
73
73
|
},
|
|
74
74
|
startedAt: {
|
|
75
|
-
type:
|
|
75
|
+
type: ScalarTypeEnum.DateTime(),
|
|
76
76
|
isOptional: false
|
|
77
77
|
},
|
|
78
78
|
completedAt: {
|
|
79
|
-
type:
|
|
79
|
+
type: ScalarTypeEnum.DateTime(),
|
|
80
80
|
isOptional: true
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -84,16 +84,16 @@ const RunStepModel = K5({
|
|
|
84
84
|
/**
|
|
85
85
|
* Execution log entry.
|
|
86
86
|
*/
|
|
87
|
-
const RunLogModel =
|
|
87
|
+
const RunLogModel = defineSchemaModel({
|
|
88
88
|
name: "RunLog",
|
|
89
89
|
description: "Execution log entry",
|
|
90
90
|
fields: {
|
|
91
91
|
id: {
|
|
92
|
-
type:
|
|
92
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
93
93
|
isOptional: false
|
|
94
94
|
},
|
|
95
95
|
stepId: {
|
|
96
|
-
type:
|
|
96
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
97
97
|
isOptional: true
|
|
98
98
|
},
|
|
99
99
|
level: {
|
|
@@ -101,27 +101,27 @@ const RunLogModel = K5({
|
|
|
101
101
|
isOptional: false
|
|
102
102
|
},
|
|
103
103
|
message: {
|
|
104
|
-
type:
|
|
104
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
105
105
|
isOptional: false
|
|
106
106
|
},
|
|
107
107
|
data: {
|
|
108
|
-
type:
|
|
108
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
109
109
|
isOptional: true
|
|
110
110
|
},
|
|
111
111
|
source: {
|
|
112
|
-
type:
|
|
112
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
113
113
|
isOptional: true
|
|
114
114
|
},
|
|
115
115
|
traceId: {
|
|
116
|
-
type:
|
|
116
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
117
117
|
isOptional: true
|
|
118
118
|
},
|
|
119
119
|
spanId: {
|
|
120
|
-
type:
|
|
120
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
121
121
|
isOptional: true
|
|
122
122
|
},
|
|
123
123
|
timestamp: {
|
|
124
|
-
type:
|
|
124
|
+
type: ScalarTypeEnum.DateTime(),
|
|
125
125
|
isOptional: false
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -129,24 +129,24 @@ const RunLogModel = K5({
|
|
|
129
129
|
/**
|
|
130
130
|
* Agent reference in a run.
|
|
131
131
|
*/
|
|
132
|
-
const RunAgentRefModel =
|
|
132
|
+
const RunAgentRefModel = defineSchemaModel({
|
|
133
133
|
name: "RunAgentRef",
|
|
134
134
|
description: "Agent reference in a run",
|
|
135
135
|
fields: {
|
|
136
136
|
id: {
|
|
137
|
-
type:
|
|
137
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
138
138
|
isOptional: false
|
|
139
139
|
},
|
|
140
140
|
name: {
|
|
141
|
-
type:
|
|
141
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
142
142
|
isOptional: false
|
|
143
143
|
},
|
|
144
144
|
modelProvider: {
|
|
145
|
-
type:
|
|
145
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
146
146
|
isOptional: false
|
|
147
147
|
},
|
|
148
148
|
modelName: {
|
|
149
|
-
type:
|
|
149
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
150
150
|
isOptional: false
|
|
151
151
|
}
|
|
152
152
|
}
|
|
@@ -154,36 +154,36 @@ const RunAgentRefModel = K5({
|
|
|
154
154
|
/**
|
|
155
155
|
* Agent execution instance.
|
|
156
156
|
*/
|
|
157
|
-
const RunModel =
|
|
157
|
+
const RunModel = defineSchemaModel({
|
|
158
158
|
name: "Run",
|
|
159
159
|
description: "Agent execution instance",
|
|
160
160
|
fields: {
|
|
161
161
|
id: {
|
|
162
|
-
type:
|
|
162
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
163
163
|
isOptional: false
|
|
164
164
|
},
|
|
165
165
|
organizationId: {
|
|
166
|
-
type:
|
|
166
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
167
167
|
isOptional: false
|
|
168
168
|
},
|
|
169
169
|
agentId: {
|
|
170
|
-
type:
|
|
170
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
171
171
|
isOptional: false
|
|
172
172
|
},
|
|
173
173
|
userId: {
|
|
174
|
-
type:
|
|
174
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
175
175
|
isOptional: true
|
|
176
176
|
},
|
|
177
177
|
sessionId: {
|
|
178
|
-
type:
|
|
178
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
179
179
|
isOptional: true
|
|
180
180
|
},
|
|
181
181
|
input: {
|
|
182
|
-
type:
|
|
182
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
183
183
|
isOptional: false
|
|
184
184
|
},
|
|
185
185
|
output: {
|
|
186
|
-
type:
|
|
186
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
187
187
|
isOptional: true
|
|
188
188
|
},
|
|
189
189
|
status: {
|
|
@@ -191,55 +191,55 @@ const RunModel = K5({
|
|
|
191
191
|
isOptional: false
|
|
192
192
|
},
|
|
193
193
|
errorMessage: {
|
|
194
|
-
type:
|
|
194
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
195
195
|
isOptional: true
|
|
196
196
|
},
|
|
197
197
|
errorCode: {
|
|
198
|
-
type:
|
|
198
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
199
199
|
isOptional: true
|
|
200
200
|
},
|
|
201
201
|
totalTokens: {
|
|
202
|
-
type:
|
|
202
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
203
203
|
isOptional: false,
|
|
204
204
|
defaultValue: 0
|
|
205
205
|
},
|
|
206
206
|
promptTokens: {
|
|
207
|
-
type:
|
|
207
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
208
208
|
isOptional: false,
|
|
209
209
|
defaultValue: 0
|
|
210
210
|
},
|
|
211
211
|
completionTokens: {
|
|
212
|
-
type:
|
|
212
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
213
213
|
isOptional: false,
|
|
214
214
|
defaultValue: 0
|
|
215
215
|
},
|
|
216
216
|
totalIterations: {
|
|
217
|
-
type:
|
|
217
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
218
218
|
isOptional: false,
|
|
219
219
|
defaultValue: 0
|
|
220
220
|
},
|
|
221
221
|
durationMs: {
|
|
222
|
-
type:
|
|
222
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
223
223
|
isOptional: true
|
|
224
224
|
},
|
|
225
225
|
estimatedCostUsd: {
|
|
226
|
-
type:
|
|
226
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
227
227
|
isOptional: true
|
|
228
228
|
},
|
|
229
229
|
queuedAt: {
|
|
230
|
-
type:
|
|
230
|
+
type: ScalarTypeEnum.DateTime(),
|
|
231
231
|
isOptional: false
|
|
232
232
|
},
|
|
233
233
|
startedAt: {
|
|
234
|
-
type:
|
|
234
|
+
type: ScalarTypeEnum.DateTime(),
|
|
235
235
|
isOptional: true
|
|
236
236
|
},
|
|
237
237
|
completedAt: {
|
|
238
|
-
type:
|
|
238
|
+
type: ScalarTypeEnum.DateTime(),
|
|
239
239
|
isOptional: true
|
|
240
240
|
},
|
|
241
241
|
metadata: {
|
|
242
|
-
type:
|
|
242
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
243
243
|
isOptional: true
|
|
244
244
|
},
|
|
245
245
|
steps: {
|
|
@@ -261,20 +261,20 @@ const RunModel = K5({
|
|
|
261
261
|
/**
|
|
262
262
|
* Summary of a run for list views.
|
|
263
263
|
*/
|
|
264
|
-
const RunSummaryModel =
|
|
264
|
+
const RunSummaryModel = defineSchemaModel({
|
|
265
265
|
name: "RunSummary",
|
|
266
266
|
description: "Summary of a run for list views",
|
|
267
267
|
fields: {
|
|
268
268
|
id: {
|
|
269
|
-
type:
|
|
269
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
270
270
|
isOptional: false
|
|
271
271
|
},
|
|
272
272
|
agentId: {
|
|
273
|
-
type:
|
|
273
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
274
274
|
isOptional: false
|
|
275
275
|
},
|
|
276
276
|
agentName: {
|
|
277
|
-
type:
|
|
277
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
278
278
|
isOptional: false
|
|
279
279
|
},
|
|
280
280
|
status: {
|
|
@@ -282,23 +282,23 @@ const RunSummaryModel = K5({
|
|
|
282
282
|
isOptional: false
|
|
283
283
|
},
|
|
284
284
|
totalTokens: {
|
|
285
|
-
type:
|
|
285
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
286
286
|
isOptional: false
|
|
287
287
|
},
|
|
288
288
|
durationMs: {
|
|
289
|
-
type:
|
|
289
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
290
290
|
isOptional: true
|
|
291
291
|
},
|
|
292
292
|
estimatedCostUsd: {
|
|
293
|
-
type:
|
|
293
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
294
294
|
isOptional: true
|
|
295
295
|
},
|
|
296
296
|
queuedAt: {
|
|
297
|
-
type:
|
|
297
|
+
type: ScalarTypeEnum.DateTime(),
|
|
298
298
|
isOptional: false
|
|
299
299
|
},
|
|
300
300
|
completedAt: {
|
|
301
|
-
type:
|
|
301
|
+
type: ScalarTypeEnum.DateTime(),
|
|
302
302
|
isOptional: true
|
|
303
303
|
}
|
|
304
304
|
}
|
|
@@ -306,28 +306,28 @@ const RunSummaryModel = K5({
|
|
|
306
306
|
/**
|
|
307
307
|
* Timeline data point for metrics.
|
|
308
308
|
*/
|
|
309
|
-
const TimelineDataPointModel =
|
|
309
|
+
const TimelineDataPointModel = defineSchemaModel({
|
|
310
310
|
name: "TimelineDataPoint",
|
|
311
311
|
description: "Timeline data point for metrics",
|
|
312
312
|
fields: {
|
|
313
313
|
period: {
|
|
314
|
-
type:
|
|
314
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
315
315
|
isOptional: false
|
|
316
316
|
},
|
|
317
317
|
runs: {
|
|
318
|
-
type:
|
|
318
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
319
319
|
isOptional: false
|
|
320
320
|
},
|
|
321
321
|
tokens: {
|
|
322
|
-
type:
|
|
322
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
323
323
|
isOptional: false
|
|
324
324
|
},
|
|
325
325
|
costUsd: {
|
|
326
|
-
type:
|
|
326
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
327
327
|
isOptional: false
|
|
328
328
|
},
|
|
329
329
|
avgDurationMs: {
|
|
330
|
-
type:
|
|
330
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
331
331
|
isOptional: false
|
|
332
332
|
}
|
|
333
333
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.schema.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/run/run.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/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":";;;;;;;AAMA,MAAa,gBAAgBA,GAAkB;CAC7C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,SAAS;GAAE,MAAMC,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACrE,SAAS;GAAE,MAAMA,GAAe,YAAY;GAAE,YAAY;GAAM;EACjE;CACF,CAAC;;;;AAKF,MA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D,MAAM;CACN,aAAa;CACb,QAAQ;EACN,QAAQ;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,MAAM;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EAChE,QAAQ;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EAClE,SAAS;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACrE,eAAe;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EAC5E;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"run.schema.js","names":[],"sources":["../../src/run/run.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/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":";;;;;;;AAMA,MAAa,gBAAgB,kBAAkB;CAC7C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,SAAS;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAO;EACrE,SAAS;GAAE,MAAM,eAAe,YAAY;GAAE,YAAY;GAAM;EACjE;CACF,CAAC;;;;AAKF,MAAa,eAAe,kBAAkB;CAC5C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,YAAY;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EACtE,MAAM;GAAE,MAAM;GAAiB,YAAY;GAAO;EAClD,QAAQ;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACpE,UAAU;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACtE,OAAO;GAAE,MAAM,eAAe,YAAY;GAAE,YAAY;GAAM;EAC9D,QAAQ;GAAE,MAAM,eAAe,YAAY;GAAE,YAAY;GAAM;EAC/D,QAAQ;GAAE,MAAM;GAAe,YAAY;GAAO;EAClD,cAAc;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EAC1E,YAAY;GACV,MAAM,eAAe,cAAc;GACnC,YAAY;GACZ,cAAc;GACf;EACD,YAAY;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EACrE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EACjE,aAAa;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e,iBAAiB;GAAE,YAAY;GAAO;EACtE,WAAW;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAO;EACvE,QAAQ;GAAE,MAAM;GAAe,YAAY;GAAO;EAClD,aAAa;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EACvE,YAAY;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EACrE,kBAAkB;GAChB,MAAM,eAAe,gBAAgB;GACrC,YAAY;GACb;EACD,UAAU;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAChE,aAAa;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAM;EACnE;CACF,CAAC;;;;AAKF,MAAa,yBAAyB,kBAAkB;CACtD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,QAAQ;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,MAAM;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EAChE,QAAQ;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EAClE,SAAS;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAO;EACrE,eAAe;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAO;EAC5E;CACF,CAAC"}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema734 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/tool/tool.entity.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tool category enum for entities.
|
|
6
6
|
*/
|
|
7
|
-
declare const ToolCategoryEntityEnum:
|
|
7
|
+
declare const ToolCategoryEntityEnum: _lssm_lib_schema734.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Tool status enum for entities.
|
|
10
10
|
*/
|
|
11
|
-
declare const ToolStatusEntityEnum:
|
|
11
|
+
declare const ToolStatusEntityEnum: _lssm_lib_schema734.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* Implementation type enum for entities.
|
|
14
14
|
*/
|
|
15
|
-
declare const ImplementationTypeEntityEnum:
|
|
15
|
+
declare const ImplementationTypeEntityEnum: _lssm_lib_schema734.EntityEnumDef;
|
|
16
16
|
/**
|
|
17
17
|
* Tool entity - Represents an AI tool definition.
|
|
18
18
|
*/
|
|
19
|
-
declare const ToolEntity:
|
|
20
|
-
id:
|
|
21
|
-
organizationId:
|
|
22
|
-
name:
|
|
23
|
-
slug:
|
|
24
|
-
description:
|
|
25
|
-
category:
|
|
26
|
-
status:
|
|
27
|
-
parametersSchema:
|
|
28
|
-
outputSchema:
|
|
29
|
-
implementationType:
|
|
30
|
-
implementationConfig:
|
|
31
|
-
maxInvocationsPerMinute:
|
|
32
|
-
timeoutMs:
|
|
33
|
-
version:
|
|
34
|
-
tags:
|
|
35
|
-
createdAt:
|
|
36
|
-
updatedAt:
|
|
37
|
-
createdById:
|
|
38
|
-
agents:
|
|
19
|
+
declare const ToolEntity: _lssm_lib_schema734.EntitySpec<{
|
|
20
|
+
id: _lssm_lib_schema734.EntityScalarField;
|
|
21
|
+
organizationId: _lssm_lib_schema734.EntityScalarField;
|
|
22
|
+
name: _lssm_lib_schema734.EntityScalarField;
|
|
23
|
+
slug: _lssm_lib_schema734.EntityScalarField;
|
|
24
|
+
description: _lssm_lib_schema734.EntityScalarField;
|
|
25
|
+
category: _lssm_lib_schema734.EntityEnumField;
|
|
26
|
+
status: _lssm_lib_schema734.EntityEnumField;
|
|
27
|
+
parametersSchema: _lssm_lib_schema734.EntityScalarField;
|
|
28
|
+
outputSchema: _lssm_lib_schema734.EntityScalarField;
|
|
29
|
+
implementationType: _lssm_lib_schema734.EntityEnumField;
|
|
30
|
+
implementationConfig: _lssm_lib_schema734.EntityScalarField;
|
|
31
|
+
maxInvocationsPerMinute: _lssm_lib_schema734.EntityScalarField;
|
|
32
|
+
timeoutMs: _lssm_lib_schema734.EntityScalarField;
|
|
33
|
+
version: _lssm_lib_schema734.EntityScalarField;
|
|
34
|
+
tags: _lssm_lib_schema734.EntityScalarField;
|
|
35
|
+
createdAt: _lssm_lib_schema734.EntityScalarField;
|
|
36
|
+
updatedAt: _lssm_lib_schema734.EntityScalarField;
|
|
37
|
+
createdById: _lssm_lib_schema734.EntityScalarField;
|
|
38
|
+
agents: _lssm_lib_schema734.EntityRelationField;
|
|
39
39
|
}>;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { ImplementationTypeEntityEnum, ToolCategoryEntityEnum, ToolEntity, ToolStatusEntityEnum };
|
package/dist/tool/tool.entity.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineEntity, defineEntityEnum, field, index } from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/tool/tool.entity.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tool category enum for entities.
|
|
6
6
|
*/
|
|
7
|
-
const ToolCategoryEntityEnum =
|
|
7
|
+
const ToolCategoryEntityEnum = defineEntityEnum({
|
|
8
8
|
name: "ToolCategory",
|
|
9
9
|
values: [
|
|
10
10
|
"RETRIEVAL",
|
|
@@ -19,7 +19,7 @@ const ToolCategoryEntityEnum = Z5({
|
|
|
19
19
|
/**
|
|
20
20
|
* Tool status enum for entities.
|
|
21
21
|
*/
|
|
22
|
-
const ToolStatusEntityEnum =
|
|
22
|
+
const ToolStatusEntityEnum = defineEntityEnum({
|
|
23
23
|
name: "ToolStatus",
|
|
24
24
|
values: [
|
|
25
25
|
"DRAFT",
|
|
@@ -32,7 +32,7 @@ const ToolStatusEntityEnum = Z5({
|
|
|
32
32
|
/**
|
|
33
33
|
* Implementation type enum for entities.
|
|
34
34
|
*/
|
|
35
|
-
const ImplementationTypeEntityEnum =
|
|
35
|
+
const ImplementationTypeEntityEnum = defineEntityEnum({
|
|
36
36
|
name: "ImplementationType",
|
|
37
37
|
values: [
|
|
38
38
|
"http",
|
|
@@ -44,54 +44,54 @@ const ImplementationTypeEntityEnum = Z5({
|
|
|
44
44
|
/**
|
|
45
45
|
* Tool entity - Represents an AI tool definition.
|
|
46
46
|
*/
|
|
47
|
-
const ToolEntity =
|
|
47
|
+
const ToolEntity = defineEntity({
|
|
48
48
|
name: "Tool",
|
|
49
49
|
schema: "agent_console",
|
|
50
50
|
description: "An AI tool that can be used by agents.",
|
|
51
51
|
fields: {
|
|
52
|
-
id:
|
|
53
|
-
organizationId:
|
|
54
|
-
name:
|
|
55
|
-
slug:
|
|
56
|
-
description:
|
|
57
|
-
category:
|
|
58
|
-
status:
|
|
59
|
-
parametersSchema:
|
|
60
|
-
outputSchema:
|
|
52
|
+
id: field.id(),
|
|
53
|
+
organizationId: field.string({ description: "Organization that owns this tool" }),
|
|
54
|
+
name: field.string({ description: "Tool name" }),
|
|
55
|
+
slug: field.string({ description: "URL-safe identifier" }),
|
|
56
|
+
description: field.string({ description: "Tool description" }),
|
|
57
|
+
category: field.enum("ToolCategory", { default: "CUSTOM" }),
|
|
58
|
+
status: field.enum("ToolStatus", { default: "DRAFT" }),
|
|
59
|
+
parametersSchema: field.json({ description: "JSON Schema for tool parameters" }),
|
|
60
|
+
outputSchema: field.json({
|
|
61
61
|
isOptional: true,
|
|
62
62
|
description: "JSON Schema for tool output"
|
|
63
63
|
}),
|
|
64
|
-
implementationType:
|
|
65
|
-
implementationConfig:
|
|
66
|
-
maxInvocationsPerMinute:
|
|
64
|
+
implementationType: field.enum("ImplementationType"),
|
|
65
|
+
implementationConfig: field.json({ description: "Implementation configuration" }),
|
|
66
|
+
maxInvocationsPerMinute: field.int({
|
|
67
67
|
isOptional: true,
|
|
68
68
|
description: "Rate limit"
|
|
69
69
|
}),
|
|
70
|
-
timeoutMs:
|
|
70
|
+
timeoutMs: field.int({
|
|
71
71
|
default: 3e4,
|
|
72
72
|
description: "Execution timeout"
|
|
73
73
|
}),
|
|
74
|
-
version:
|
|
74
|
+
version: field.string({
|
|
75
75
|
default: "1.0.0",
|
|
76
76
|
description: "Tool version"
|
|
77
77
|
}),
|
|
78
|
-
tags:
|
|
78
|
+
tags: field.string({
|
|
79
79
|
isArray: true,
|
|
80
80
|
isOptional: true,
|
|
81
81
|
description: "Tags for categorization"
|
|
82
82
|
}),
|
|
83
|
-
createdAt:
|
|
84
|
-
updatedAt:
|
|
85
|
-
createdById:
|
|
83
|
+
createdAt: field.createdAt(),
|
|
84
|
+
updatedAt: field.updatedAt(),
|
|
85
|
+
createdById: field.string({
|
|
86
86
|
isOptional: true,
|
|
87
87
|
description: "User who created this tool"
|
|
88
88
|
}),
|
|
89
|
-
agents:
|
|
89
|
+
agents: field.hasMany("Agent", { description: "Agents using this tool" })
|
|
90
90
|
},
|
|
91
91
|
indexes: [
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
index.unique(["organizationId", "slug"]),
|
|
93
|
+
index.on(["organizationId", "category"]),
|
|
94
|
+
index.on(["organizationId", "status"])
|
|
95
95
|
],
|
|
96
96
|
enums: [
|
|
97
97
|
ToolCategoryEntityEnum,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.entity.js","names":[
|
|
1
|
+
{"version":3,"file":"tool.entity.js","names":[],"sources":["../../src/tool/tool.entity.ts"],"sourcesContent":["import { defineEntity, defineEntityEnum, field, index } from '@lssm/lib.schema';\n\n/**\n * Tool category enum for entities.\n */\nexport const ToolCategoryEntityEnum = defineEntityEnum({\n name: 'ToolCategory',\n values: [\n 'RETRIEVAL',\n 'COMPUTATION',\n 'COMMUNICATION',\n 'INTEGRATION',\n 'UTILITY',\n 'CUSTOM',\n ],\n description: 'Category of tool',\n});\n\n/**\n * Tool status enum for entities.\n */\nexport const ToolStatusEntityEnum = defineEntityEnum({\n name: 'ToolStatus',\n values: ['DRAFT', 'ACTIVE', 'DEPRECATED', 'DISABLED'],\n description: 'Status of tool',\n});\n\n/**\n * Implementation type enum for entities.\n */\nexport const ImplementationTypeEntityEnum = defineEntityEnum({\n name: 'ImplementationType',\n values: ['http', 'function', 'workflow'],\n description: 'How the tool is implemented',\n});\n\n/**\n * Tool entity - Represents an AI tool definition.\n */\nexport const ToolEntity = defineEntity({\n name: 'Tool',\n schema: 'agent_console',\n description: 'An AI tool that can be used by agents.',\n fields: {\n id: field.id(),\n organizationId: field.string({\n description: 'Organization that owns this tool',\n }),\n name: field.string({ description: 'Tool name' }),\n slug: field.string({ description: 'URL-safe identifier' }),\n description: field.string({ description: 'Tool description' }),\n category: field.enum('ToolCategory', { default: 'CUSTOM' }),\n status: field.enum('ToolStatus', { default: 'DRAFT' }),\n parametersSchema: field.json({\n description: 'JSON Schema for tool parameters',\n }),\n outputSchema: field.json({\n isOptional: true,\n description: 'JSON Schema for tool output',\n }),\n implementationType: field.enum('ImplementationType'),\n implementationConfig: field.json({\n description: 'Implementation configuration',\n }),\n maxInvocationsPerMinute: field.int({\n isOptional: true,\n description: 'Rate limit',\n }),\n timeoutMs: field.int({ default: 30000, description: 'Execution timeout' }),\n version: field.string({ default: '1.0.0', description: 'Tool version' }),\n tags: field.string({\n isArray: true,\n isOptional: true,\n description: 'Tags for categorization',\n }),\n createdAt: field.createdAt(),\n updatedAt: field.updatedAt(),\n createdById: field.string({\n isOptional: true,\n description: 'User who created this tool',\n }),\n agents: field.hasMany('Agent', { description: 'Agents using this tool' }),\n },\n indexes: [\n index.unique(['organizationId', 'slug']),\n index.on(['organizationId', 'category']),\n index.on(['organizationId', 'status']),\n ],\n enums: [\n ToolCategoryEntityEnum,\n ToolStatusEntityEnum,\n ImplementationTypeEntityEnum,\n ],\n});\n"],"mappings":";;;;;;AAKA,MAAa,yBAAyB,iBAAiB;CACrD,MAAM;CACN,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;EACD;CACD,aAAa;CACd,CAAC;;;;AAKF,MAAa,uBAAuB,iBAAiB;CACnD,MAAM;CACN,QAAQ;EAAC;EAAS;EAAU;EAAc;EAAW;CACrD,aAAa;CACd,CAAC;;;;AAKF,MAAa,+BAA+B,iBAAiB;CAC3D,MAAM;CACN,QAAQ;EAAC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AO;EACL;EACA;EACA;EACD;CACF,CAAC"}
|
package/dist/tool/tool.enum.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema757 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/tool/tool.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tool category enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const ToolCategoryEnum:
|
|
7
|
+
declare const ToolCategoryEnum: _lssm_lib_schema757.EnumType<[string, string, string, string, string, string]>;
|
|
8
8
|
/**
|
|
9
9
|
* Tool status enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const ToolStatusEnum:
|
|
11
|
+
declare const ToolStatusEnum: _lssm_lib_schema757.EnumType<[string, string, string, string]>;
|
|
12
12
|
/**
|
|
13
13
|
* Implementation type enum.
|
|
14
14
|
*/
|
|
15
|
-
declare const ImplementationTypeEnum:
|
|
15
|
+
declare const ImplementationTypeEnum: _lssm_lib_schema757.EnumType<[string, string, string]>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum };
|
|
18
18
|
//# sourceMappingURL=tool.enum.d.ts.map
|