@lssm/example.agent-console 0.0.0-canary-20251221193616 → 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 +30 -30
- 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 +125 -125
- package/dist/agent/agent.operation.js +35 -36
- package/dist/agent/agent.operation.js.map +1 -1
- package/dist/agent/agent.schema.d.ts +95 -95
- package/dist/agent/agent.schema.d.ts.map +1 -1
- 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.js +5 -5
- package/dist/run/run.enum.js.map +1 -1
- package/dist/run/run.event.d.ts +70 -70
- package/dist/run/run.event.js +71 -73
- package/dist/run/run.event.js.map +1 -1
- package/dist/run/run.operation.d.ts +1 -1
- package/dist/run/run.operation.js +57 -58
- package/dist/run/run.operation.js.map +1 -1
- package/dist/run/run.schema.js +65 -65
- package/dist/run/run.schema.js.map +1 -1
- package/dist/tool/tool.entity.js +27 -27
- package/dist/tool/tool.entity.js.map +1 -1
- package/dist/tool/tool.enum.js +4 -4
- package/dist/tool/tool.enum.js.map +1 -1
- package/dist/tool/tool.event.d.ts +1 -1
- 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 +1 -1
- package/dist/tool/tool.operation.js +28 -29
- package/dist/tool/tool.operation.js.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 -122
- 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
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { E5, K5 } from "../libs/schema/dist/index.js";
|
|
2
1
|
import { AgentStatusEnum, ModelProviderEnum, ToolChoiceEnum } from "./agent.enum.js";
|
|
2
|
+
import { ScalarTypeEnum, defineSchemaModel } from "@lssm/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/agent/agent.schema.ts
|
|
5
5
|
/**
|
|
6
6
|
* AI agent configuration schema.
|
|
7
7
|
*/
|
|
8
|
-
const AgentModel =
|
|
8
|
+
const AgentModel = defineSchemaModel({
|
|
9
9
|
name: "Agent",
|
|
10
10
|
description: "AI agent configuration",
|
|
11
11
|
fields: {
|
|
12
12
|
id: {
|
|
13
|
-
type:
|
|
13
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
14
14
|
isOptional: false
|
|
15
15
|
},
|
|
16
16
|
organizationId: {
|
|
17
|
-
type:
|
|
17
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
18
18
|
isOptional: false
|
|
19
19
|
},
|
|
20
20
|
name: {
|
|
21
|
-
type:
|
|
21
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
22
22
|
isOptional: false
|
|
23
23
|
},
|
|
24
24
|
slug: {
|
|
25
|
-
type:
|
|
25
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
26
26
|
isOptional: false
|
|
27
27
|
},
|
|
28
28
|
description: {
|
|
29
|
-
type:
|
|
29
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
30
30
|
isOptional: true
|
|
31
31
|
},
|
|
32
32
|
status: {
|
|
@@ -38,23 +38,23 @@ const AgentModel = K5({
|
|
|
38
38
|
isOptional: false
|
|
39
39
|
},
|
|
40
40
|
modelName: {
|
|
41
|
-
type:
|
|
41
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
42
42
|
isOptional: false
|
|
43
43
|
},
|
|
44
44
|
modelConfig: {
|
|
45
|
-
type:
|
|
45
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
46
46
|
isOptional: true
|
|
47
47
|
},
|
|
48
48
|
systemPrompt: {
|
|
49
|
-
type:
|
|
49
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
50
50
|
isOptional: false
|
|
51
51
|
},
|
|
52
52
|
userPromptTemplate: {
|
|
53
|
-
type:
|
|
53
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
54
54
|
isOptional: true
|
|
55
55
|
},
|
|
56
56
|
toolIds: {
|
|
57
|
-
type:
|
|
57
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
58
58
|
isArray: true,
|
|
59
59
|
isOptional: true
|
|
60
60
|
},
|
|
@@ -64,34 +64,34 @@ const AgentModel = K5({
|
|
|
64
64
|
defaultValue: "auto"
|
|
65
65
|
},
|
|
66
66
|
maxIterations: {
|
|
67
|
-
type:
|
|
67
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
68
68
|
isOptional: false,
|
|
69
69
|
defaultValue: 10
|
|
70
70
|
},
|
|
71
71
|
maxTokensPerRun: {
|
|
72
|
-
type:
|
|
72
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
73
73
|
isOptional: true
|
|
74
74
|
},
|
|
75
75
|
timeoutMs: {
|
|
76
|
-
type:
|
|
76
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
77
77
|
isOptional: false,
|
|
78
78
|
defaultValue: 12e4
|
|
79
79
|
},
|
|
80
80
|
version: {
|
|
81
|
-
type:
|
|
81
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
82
82
|
isOptional: false
|
|
83
83
|
},
|
|
84
84
|
tags: {
|
|
85
|
-
type:
|
|
85
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
86
86
|
isArray: true,
|
|
87
87
|
isOptional: true
|
|
88
88
|
},
|
|
89
89
|
createdAt: {
|
|
90
|
-
type:
|
|
90
|
+
type: ScalarTypeEnum.DateTime(),
|
|
91
91
|
isOptional: false
|
|
92
92
|
},
|
|
93
93
|
updatedAt: {
|
|
94
|
-
type:
|
|
94
|
+
type: ScalarTypeEnum.DateTime(),
|
|
95
95
|
isOptional: false
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -99,24 +99,24 @@ const AgentModel = K5({
|
|
|
99
99
|
/**
|
|
100
100
|
* Summary of an agent for list views.
|
|
101
101
|
*/
|
|
102
|
-
const AgentSummaryModel =
|
|
102
|
+
const AgentSummaryModel = defineSchemaModel({
|
|
103
103
|
name: "AgentSummary",
|
|
104
104
|
description: "Summary of an agent for list views",
|
|
105
105
|
fields: {
|
|
106
106
|
id: {
|
|
107
|
-
type:
|
|
107
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
108
108
|
isOptional: false
|
|
109
109
|
},
|
|
110
110
|
name: {
|
|
111
|
-
type:
|
|
111
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
112
112
|
isOptional: false
|
|
113
113
|
},
|
|
114
114
|
slug: {
|
|
115
|
-
type:
|
|
115
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
116
116
|
isOptional: false
|
|
117
117
|
},
|
|
118
118
|
description: {
|
|
119
|
-
type:
|
|
119
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
120
120
|
isOptional: true
|
|
121
121
|
},
|
|
122
122
|
status: {
|
|
@@ -128,15 +128,15 @@ const AgentSummaryModel = K5({
|
|
|
128
128
|
isOptional: false
|
|
129
129
|
},
|
|
130
130
|
modelName: {
|
|
131
|
-
type:
|
|
131
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
132
132
|
isOptional: false
|
|
133
133
|
},
|
|
134
134
|
version: {
|
|
135
|
-
type:
|
|
135
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
136
136
|
isOptional: false
|
|
137
137
|
},
|
|
138
138
|
createdAt: {
|
|
139
|
-
type:
|
|
139
|
+
type: ScalarTypeEnum.DateTime(),
|
|
140
140
|
isOptional: false
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -144,28 +144,28 @@ const AgentSummaryModel = K5({
|
|
|
144
144
|
/**
|
|
145
145
|
* Tool reference in agent context.
|
|
146
146
|
*/
|
|
147
|
-
const AgentToolRefModel =
|
|
147
|
+
const AgentToolRefModel = defineSchemaModel({
|
|
148
148
|
name: "AgentToolRef",
|
|
149
149
|
description: "Tool reference in agent context",
|
|
150
150
|
fields: {
|
|
151
151
|
id: {
|
|
152
|
-
type:
|
|
152
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
153
153
|
isOptional: false
|
|
154
154
|
},
|
|
155
155
|
name: {
|
|
156
|
-
type:
|
|
156
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
157
157
|
isOptional: false
|
|
158
158
|
},
|
|
159
159
|
slug: {
|
|
160
|
-
type:
|
|
160
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
161
161
|
isOptional: false
|
|
162
162
|
},
|
|
163
163
|
description: {
|
|
164
|
-
type:
|
|
164
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
165
165
|
isOptional: false
|
|
166
166
|
},
|
|
167
167
|
category: {
|
|
168
|
-
type:
|
|
168
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
169
169
|
isOptional: false
|
|
170
170
|
}
|
|
171
171
|
}
|
|
@@ -173,28 +173,28 @@ const AgentToolRefModel = K5({
|
|
|
173
173
|
/**
|
|
174
174
|
* Agent with associated tools.
|
|
175
175
|
*/
|
|
176
|
-
const AgentWithToolsModel =
|
|
176
|
+
const AgentWithToolsModel = defineSchemaModel({
|
|
177
177
|
name: "AgentWithTools",
|
|
178
178
|
description: "Agent with associated tools",
|
|
179
179
|
fields: {
|
|
180
180
|
id: {
|
|
181
|
-
type:
|
|
181
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
182
182
|
isOptional: false
|
|
183
183
|
},
|
|
184
184
|
organizationId: {
|
|
185
|
-
type:
|
|
185
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
186
186
|
isOptional: false
|
|
187
187
|
},
|
|
188
188
|
name: {
|
|
189
|
-
type:
|
|
189
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
190
190
|
isOptional: false
|
|
191
191
|
},
|
|
192
192
|
slug: {
|
|
193
|
-
type:
|
|
193
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
194
194
|
isOptional: false
|
|
195
195
|
},
|
|
196
196
|
description: {
|
|
197
|
-
type:
|
|
197
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
198
198
|
isOptional: true
|
|
199
199
|
},
|
|
200
200
|
status: {
|
|
@@ -206,23 +206,23 @@ const AgentWithToolsModel = K5({
|
|
|
206
206
|
isOptional: false
|
|
207
207
|
},
|
|
208
208
|
modelName: {
|
|
209
|
-
type:
|
|
209
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
210
210
|
isOptional: false
|
|
211
211
|
},
|
|
212
212
|
modelConfig: {
|
|
213
|
-
type:
|
|
213
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
214
214
|
isOptional: true
|
|
215
215
|
},
|
|
216
216
|
systemPrompt: {
|
|
217
|
-
type:
|
|
217
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
218
218
|
isOptional: false
|
|
219
219
|
},
|
|
220
220
|
userPromptTemplate: {
|
|
221
|
-
type:
|
|
221
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
222
222
|
isOptional: true
|
|
223
223
|
},
|
|
224
224
|
toolIds: {
|
|
225
|
-
type:
|
|
225
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
226
226
|
isArray: true,
|
|
227
227
|
isOptional: true
|
|
228
228
|
},
|
|
@@ -231,32 +231,32 @@ const AgentWithToolsModel = K5({
|
|
|
231
231
|
isOptional: false
|
|
232
232
|
},
|
|
233
233
|
maxIterations: {
|
|
234
|
-
type:
|
|
234
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
235
235
|
isOptional: false
|
|
236
236
|
},
|
|
237
237
|
maxTokensPerRun: {
|
|
238
|
-
type:
|
|
238
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
239
239
|
isOptional: true
|
|
240
240
|
},
|
|
241
241
|
timeoutMs: {
|
|
242
|
-
type:
|
|
242
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
243
243
|
isOptional: false
|
|
244
244
|
},
|
|
245
245
|
version: {
|
|
246
|
-
type:
|
|
246
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
247
247
|
isOptional: false
|
|
248
248
|
},
|
|
249
249
|
tags: {
|
|
250
|
-
type:
|
|
250
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
251
251
|
isArray: true,
|
|
252
252
|
isOptional: true
|
|
253
253
|
},
|
|
254
254
|
createdAt: {
|
|
255
|
-
type:
|
|
255
|
+
type: ScalarTypeEnum.DateTime(),
|
|
256
256
|
isOptional: false
|
|
257
257
|
},
|
|
258
258
|
updatedAt: {
|
|
259
|
-
type:
|
|
259
|
+
type: ScalarTypeEnum.DateTime(),
|
|
260
260
|
isOptional: false
|
|
261
261
|
},
|
|
262
262
|
tools: {
|
|
@@ -269,24 +269,24 @@ const AgentWithToolsModel = K5({
|
|
|
269
269
|
/**
|
|
270
270
|
* Input for creating an agent.
|
|
271
271
|
*/
|
|
272
|
-
const CreateAgentInputModel =
|
|
272
|
+
const CreateAgentInputModel = defineSchemaModel({
|
|
273
273
|
name: "CreateAgentInput",
|
|
274
274
|
description: "Input for creating an agent",
|
|
275
275
|
fields: {
|
|
276
276
|
organizationId: {
|
|
277
|
-
type:
|
|
277
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
278
278
|
isOptional: false
|
|
279
279
|
},
|
|
280
280
|
name: {
|
|
281
|
-
type:
|
|
281
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
282
282
|
isOptional: false
|
|
283
283
|
},
|
|
284
284
|
slug: {
|
|
285
|
-
type:
|
|
285
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
286
286
|
isOptional: false
|
|
287
287
|
},
|
|
288
288
|
description: {
|
|
289
|
-
type:
|
|
289
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
290
290
|
isOptional: true
|
|
291
291
|
},
|
|
292
292
|
modelProvider: {
|
|
@@ -294,23 +294,23 @@ const CreateAgentInputModel = K5({
|
|
|
294
294
|
isOptional: false
|
|
295
295
|
},
|
|
296
296
|
modelName: {
|
|
297
|
-
type:
|
|
297
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
298
298
|
isOptional: false
|
|
299
299
|
},
|
|
300
300
|
modelConfig: {
|
|
301
|
-
type:
|
|
301
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
302
302
|
isOptional: true
|
|
303
303
|
},
|
|
304
304
|
systemPrompt: {
|
|
305
|
-
type:
|
|
305
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
306
306
|
isOptional: false
|
|
307
307
|
},
|
|
308
308
|
userPromptTemplate: {
|
|
309
|
-
type:
|
|
309
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
310
310
|
isOptional: true
|
|
311
311
|
},
|
|
312
312
|
toolIds: {
|
|
313
|
-
type:
|
|
313
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
314
314
|
isArray: true,
|
|
315
315
|
isOptional: true
|
|
316
316
|
},
|
|
@@ -319,19 +319,19 @@ const CreateAgentInputModel = K5({
|
|
|
319
319
|
isOptional: true
|
|
320
320
|
},
|
|
321
321
|
maxIterations: {
|
|
322
|
-
type:
|
|
322
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
323
323
|
isOptional: true
|
|
324
324
|
},
|
|
325
325
|
maxTokensPerRun: {
|
|
326
|
-
type:
|
|
326
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
327
327
|
isOptional: true
|
|
328
328
|
},
|
|
329
329
|
timeoutMs: {
|
|
330
|
-
type:
|
|
330
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
331
331
|
isOptional: true
|
|
332
332
|
},
|
|
333
333
|
tags: {
|
|
334
|
-
type:
|
|
334
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
335
335
|
isArray: true,
|
|
336
336
|
isOptional: true
|
|
337
337
|
}
|
|
@@ -340,20 +340,20 @@ const CreateAgentInputModel = K5({
|
|
|
340
340
|
/**
|
|
341
341
|
* Input for updating an agent.
|
|
342
342
|
*/
|
|
343
|
-
const UpdateAgentInputModel =
|
|
343
|
+
const UpdateAgentInputModel = defineSchemaModel({
|
|
344
344
|
name: "UpdateAgentInput",
|
|
345
345
|
description: "Input for updating an agent",
|
|
346
346
|
fields: {
|
|
347
347
|
agentId: {
|
|
348
|
-
type:
|
|
348
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
349
349
|
isOptional: false
|
|
350
350
|
},
|
|
351
351
|
name: {
|
|
352
|
-
type:
|
|
352
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
353
353
|
isOptional: true
|
|
354
354
|
},
|
|
355
355
|
description: {
|
|
356
|
-
type:
|
|
356
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
357
357
|
isOptional: true
|
|
358
358
|
},
|
|
359
359
|
status: {
|
|
@@ -361,19 +361,19 @@ const UpdateAgentInputModel = K5({
|
|
|
361
361
|
isOptional: true
|
|
362
362
|
},
|
|
363
363
|
modelConfig: {
|
|
364
|
-
type:
|
|
364
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
365
365
|
isOptional: true
|
|
366
366
|
},
|
|
367
367
|
systemPrompt: {
|
|
368
|
-
type:
|
|
368
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
369
369
|
isOptional: true
|
|
370
370
|
},
|
|
371
371
|
userPromptTemplate: {
|
|
372
|
-
type:
|
|
372
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
373
373
|
isOptional: true
|
|
374
374
|
},
|
|
375
375
|
toolIds: {
|
|
376
|
-
type:
|
|
376
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
377
377
|
isArray: true,
|
|
378
378
|
isOptional: true
|
|
379
379
|
},
|
|
@@ -382,19 +382,19 @@ const UpdateAgentInputModel = K5({
|
|
|
382
382
|
isOptional: true
|
|
383
383
|
},
|
|
384
384
|
maxIterations: {
|
|
385
|
-
type:
|
|
385
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
386
386
|
isOptional: true
|
|
387
387
|
},
|
|
388
388
|
maxTokensPerRun: {
|
|
389
|
-
type:
|
|
389
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
390
390
|
isOptional: true
|
|
391
391
|
},
|
|
392
392
|
timeoutMs: {
|
|
393
|
-
type:
|
|
393
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
394
394
|
isOptional: true
|
|
395
395
|
},
|
|
396
396
|
tags: {
|
|
397
|
-
type:
|
|
397
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
398
398
|
isArray: true,
|
|
399
399
|
isOptional: true
|
|
400
400
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.schema.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/agent/agent.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport {\n AgentStatusEnum,\n ModelProviderEnum,\n ToolChoiceEnum,\n} from './agent.enum';\n\n/**\n * AI agent configuration schema.\n */\nexport const AgentModel = defineSchemaModel({\n name: 'Agent',\n description: 'AI agent configuration',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: AgentStatusEnum, isOptional: false },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: {\n type: ToolChoiceEnum,\n isOptional: false,\n defaultValue: 'auto',\n },\n maxIterations: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 10,\n },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 120000,\n },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Summary of an agent for list views.\n */\nexport const AgentSummaryModel = defineSchemaModel({\n name: 'AgentSummary',\n description: 'Summary of an agent for list views',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: AgentStatusEnum, isOptional: false },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Tool reference in agent context.\n */\nexport const AgentToolRefModel = defineSchemaModel({\n name: 'AgentToolRef',\n description: 'Tool reference in agent context',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n category: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\n/**\n * Agent with associated tools.\n */\nexport const AgentWithToolsModel = defineSchemaModel({\n name: 'AgentWithTools',\n description: 'Agent with associated tools',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: AgentStatusEnum, isOptional: false },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: { type: ToolChoiceEnum, isOptional: false },\n maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n tools: { type: AgentToolRefModel, isArray: true, isOptional: true },\n },\n});\n\n/**\n * Input for creating an agent.\n */\nexport const CreateAgentInputModel = defineSchemaModel({\n name: 'CreateAgentInput',\n description: 'Input for creating an agent',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: { type: ToolChoiceEnum, isOptional: true },\n maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n },\n});\n\n/**\n * Input for updating an agent.\n */\nexport const UpdateAgentInputModel = defineSchemaModel({\n name: 'UpdateAgentInput',\n description: 'Input for updating an agent',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: true },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: AgentStatusEnum, isOptional: true },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: { type: ToolChoiceEnum, isOptional: true },\n maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n },\n});\n"],"mappings":";;;;;;;AAUA,MAAa,aAAaA,GAAkB;CAC1C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,gBAAgB;GACd,MAAMA,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,MAAM;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EAClE,MAAM;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,aAAa;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,QAAQ;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b;EACD,YAAY;GAAE,MAAM;GAAgB,YAAY;GAAM;EACtD,eAAe;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAM;EACxE,iBAAiB;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAM;EAC1E,WAAW;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAM;EACpE,MAAM;GACJ,MAAMA,GAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACF;CACF,CAAC;;;;AAKF,MAAa,wBAAwBD,GAAkB;CACrD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,SAAS;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,MAAM;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAM;EACjE,aAAa;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,QAAQ;GAAE,MAAM;GAAiB,YAAY;GAAM;EACnD,aAAa;GAAE,MAAMA,GAAe,YAAY;GAAE,YAAY;GAAM;EACpE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EAC1E,oBAAoB;GAClB,MAAMA,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,SAAS;GACP,MAAMA,GAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACD,YAAY;GAAE,MAAM;GAAgB,YAAY;GAAM;EACtD,eAAe;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAM;EACxE,iBAAiB;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAM;EAC1E,WAAW;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAM;EACpE,MAAM;GACJ,MAAMA,GAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACF;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"agent.schema.js","names":[],"sources":["../../src/agent/agent.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport {\n AgentStatusEnum,\n ModelProviderEnum,\n ToolChoiceEnum,\n} from './agent.enum';\n\n/**\n * AI agent configuration schema.\n */\nexport const AgentModel = defineSchemaModel({\n name: 'Agent',\n description: 'AI agent configuration',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: AgentStatusEnum, isOptional: false },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: {\n type: ToolChoiceEnum,\n isOptional: false,\n defaultValue: 'auto',\n },\n maxIterations: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 10,\n },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 120000,\n },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Summary of an agent for list views.\n */\nexport const AgentSummaryModel = defineSchemaModel({\n name: 'AgentSummary',\n description: 'Summary of an agent for list views',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: AgentStatusEnum, isOptional: false },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Tool reference in agent context.\n */\nexport const AgentToolRefModel = defineSchemaModel({\n name: 'AgentToolRef',\n description: 'Tool reference in agent context',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n category: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\n/**\n * Agent with associated tools.\n */\nexport const AgentWithToolsModel = defineSchemaModel({\n name: 'AgentWithTools',\n description: 'Agent with associated tools',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: AgentStatusEnum, isOptional: false },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: { type: ToolChoiceEnum, isOptional: false },\n maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n tools: { type: AgentToolRefModel, isArray: true, isOptional: true },\n },\n});\n\n/**\n * Input for creating an agent.\n */\nexport const CreateAgentInputModel = defineSchemaModel({\n name: 'CreateAgentInput',\n description: 'Input for creating an agent',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: { type: ToolChoiceEnum, isOptional: true },\n maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n },\n});\n\n/**\n * Input for updating an agent.\n */\nexport const UpdateAgentInputModel = defineSchemaModel({\n name: 'UpdateAgentInput',\n description: 'Input for updating an agent',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: true },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: AgentStatusEnum, isOptional: true },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: { type: ToolChoiceEnum, isOptional: true },\n maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n },\n});\n"],"mappings":";;;;;;;AAUA,MAAa,aAAa,kBAAkB;CAC1C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,gBAAgB;GACd,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,MAAM;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAO;EAClE,MAAM;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,QAAQ;GAAE,MAAM;GAAiB,YAAY;GAAO;EACpD,eAAe;GAAE,MAAM;GAAmB,YAAY;GAAO;EAC7D,WAAW;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAO;EACvE,aAA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Y;GAAM;EACpE,MAAM;GACJ,MAAM,eAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACF;CACF,CAAC;;;;AAKF,MAAa,wBAAwB,kBAAkB;CACrD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,MAAM;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAM;EACjE,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,QAAQ;GAAE,MAAM;GAAiB,YAAY;GAAM;EACnD,aAAa;GAAE,MAAM,eAAe,YAAY;GAAE,YAAY;GAAM;EACpE,cAAc;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EAC1E,oBAAoB;GAClB,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,SAAS;GACP,MAAM,eAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACD,YAAY;GAAE,MAAM;GAAgB,YAAY;GAAM;EACtD,eAAe;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EACxE,iBAAiB;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EAC1E,WAAW;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EACpE,MAAM;GACJ,MAAM,eAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-console.docblock.js","names":[],"sources":["../../src/docs/agent-console.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@lssm/lib.contracts/docs';\nimport { registerDocBlocks } from '@lssm/lib.contracts/docs';\n\nconst agentConsoleDocBlocks: DocBlock[] = [\n {\n id: 'docs.examples.agent-console.goal',\n title: 'Agent Console — Goal',\n summary: 'AI agent ops console: tools, agents, runs, logs, and metrics.',\n kind: 'goal',\n visibility: 'public',\n route: '/docs/examples/agent-console/goal',\n tags: ['ai', 'agents', 'goal'],\n body: `## Why it matters\n- Provides a regenerable agent operations surface with tool registry and run history.\n- Prevents drift between tool schemas, agent configs, and execution logs.\n\n## Business/Product goal\n- Safely manage tools/agents/runs with auditability and observability.\n- Enable staged rollout of tools and metrics via feature flags.\n\n## Success criteria\n- Tool/agent/run specs regenerate UI/API/events cleanly.\n- Logs/metrics stay aligned and PII is scoped.`,\n },\n {\n id: 'docs.examples.agent-console.usage',\n title: 'Agent Console — Usage',\n summary: 'How to operate, extend, and regenerate the agent console safely.',\n kind: 'usage',\n visibility: 'public',\n route: '/docs/examples/agent-console/usage',\n tags: ['ai', 'agents', 'usage'],\n body: `## Setup\n1) Seed (if available) or create tools and agents; define run configs.\n2) Configure Notifications for run completion/failure; Audit for changes.\n\n## Extend & regenerate\n1) Adjust tool schemas (inputs/outputs), agent configs, run metrics in spec.\n2) Regenerate to sync UI/API/events/logs; mark PII paths for run payloads.\n3) Use Feature Flags to gate risky tools or execution policies.\n\n## Guardrails\n- Emit events for run lifecycle; store logs with redaction where needed.\n- Enforce tool input validation; avoid unsafe arbitrary code exec in handlers.\n- Keep tenant/user scoping explicit for ops data.`,\n },\n {\n id: 'docs.examples.agent-console.reference',\n title: 'Agent Console — Reference',\n summary:\n 'Entities, contracts, events, and presentations for the agent console.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/examples/agent-console',\n tags: ['ai', 'agents', 'reference'],\n body: `## Entities\n- Tool, Agent, AgentTool, Run, RunStep, RunLog, RunMetric.\n\n## Contracts\n- tool/create, agent/create, agent/execute, run/get, run/logs, run/metrics.\n\n## Events\n- tool.created, agent.created, run.started/completed/failed, tool.invoked.\n\n## Presentations\n- Tool registry, agent list/detail, run list/detail, metrics dashboards.\n\n## Notes\n- Keep tool schemas explicit; enforce validation in spec.\n- Use Audit Trail for agent/run changes; Notifications for run outcomes.`,\n },\n {\n id: 'docs.examples.agent-console.constraints',\n title: 'Agent Console — Constraints & Safety',\n summary:\n 'Internal guardrails for tool/agent/run safety, PII, and regeneration.',\n kind: 'reference',\n visibility: 'internal',\n route: '/docs/examples/agent-console/constraints',\n tags: ['ai', 'agents', 'constraints', 'internal'],\n body: `## Constraints\n- Tool schemas (inputs/outputs) must be explicit in spec; no arbitrary untyped payloads.\n- Events to emit: tool.created, agent.created, run.started/completed/failed, tool.invoked.\n- Regeneration must not loosen execution policies or logging without explicit spec diff.\n\n## Safety & PII\n- Mark PII in run payloads/logs; redact in markdown/JSON targets.\n- Avoid exposing raw tool outputs to MCP/web without policy checks.\n\n## Verification\n- Add fixtures for tool schema changes and run lifecycle.\n- Ensure Audit/Notifications remain wired for runs; metrics collection unchanged.\n- Use Feature Flags to gate risky tools; default safe/off.`,\n },\n];\n\nregisterDocBlocks(agentConsoleDocBlocks);\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-console.docblock.js","names":[],"sources":["../../src/docs/agent-console.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@lssm/lib.contracts/docs';\nimport { registerDocBlocks } from '@lssm/lib.contracts/docs';\n\nconst agentConsoleDocBlocks: DocBlock[] = [\n {\n id: 'docs.examples.agent-console.goal',\n title: 'Agent Console — Goal',\n summary: 'AI agent ops console: tools, agents, runs, logs, and metrics.',\n kind: 'goal',\n visibility: 'public',\n route: '/docs/examples/agent-console/goal',\n tags: ['ai', 'agents', 'goal'],\n body: `## Why it matters\n- Provides a regenerable agent operations surface with tool registry and run history.\n- Prevents drift between tool schemas, agent configs, and execution logs.\n\n## Business/Product goal\n- Safely manage tools/agents/runs with auditability and observability.\n- Enable staged rollout of tools and metrics via feature flags.\n\n## Success criteria\n- Tool/agent/run specs regenerate UI/API/events cleanly.\n- Logs/metrics stay aligned and PII is scoped.`,\n },\n {\n id: 'docs.examples.agent-console.usage',\n title: 'Agent Console — Usage',\n summary: 'How to operate, extend, and regenerate the agent console safely.',\n kind: 'usage',\n visibility: 'public',\n route: '/docs/examples/agent-console/usage',\n tags: ['ai', 'agents', 'usage'],\n body: `## Setup\n1) Seed (if available) or create tools and agents; define run configs.\n2) Configure Notifications for run completion/failure; Audit for changes.\n\n## Extend & regenerate\n1) Adjust tool schemas (inputs/outputs), agent configs, run metrics in spec.\n2) Regenerate to sync UI/API/events/logs; mark PII paths for run payloads.\n3) Use Feature Flags to gate risky tools or execution policies.\n\n## Guardrails\n- Emit events for run lifecycle; store logs with redaction where needed.\n- Enforce tool input validation; avoid unsafe arbitrary code exec in handlers.\n- Keep tenant/user scoping explicit for ops data.`,\n },\n {\n id: 'docs.examples.agent-console.reference',\n title: 'Agent Console — Reference',\n summary:\n 'Entities, contracts, events, and presentations for the agent console.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/examples/agent-console',\n tags: ['ai', 'agents', 'reference'],\n body: `## Entities\n- Tool, Agent, AgentTool, Run, RunStep, RunLog, RunMetric.\n\n## Contracts\n- tool/create, agent/create, agent/execute, run/get, run/logs, run/metrics.\n\n## Events\n- tool.created, agent.created, run.started/completed/failed, tool.invoked.\n\n## Presentations\n- Tool registry, agent list/detail, run list/detail, metrics dashboards.\n\n## Notes\n- Keep tool schemas explicit; enforce validation in spec.\n- Use Audit Trail for agent/run changes; Notifications for run outcomes.`,\n },\n {\n id: 'docs.examples.agent-console.constraints',\n title: 'Agent Console — Constraints & Safety',\n summary:\n 'Internal guardrails for tool/agent/run safety, PII, and regeneration.',\n kind: 'reference',\n visibility: 'internal',\n route: '/docs/examples/agent-console/constraints',\n tags: ['ai', 'agents', 'constraints', 'internal'],\n body: `## Constraints\n- Tool schemas (inputs/outputs) must be explicit in spec; no arbitrary untyped payloads.\n- Events to emit: tool.created, agent.created, run.started/completed/failed, tool.invoked.\n- Regeneration must not loosen execution policies or logging without explicit spec diff.\n\n## Safety & PII\n- Mark PII in run payloads/logs; redact in markdown/JSON targets.\n- Avoid exposing raw tool outputs to MCP/web without policy checks.\n\n## Verification\n- Add fixtures for tool schema changes and run lifecycle.\n- Ensure Audit/Notifications remain wired for runs; metrics collection unchanged.\n- Use Feature Flags to gate risky tools; default safe/off.`,\n },\n];\n\nregisterDocBlocks(agentConsoleDocBlocks);\n"],"mappings":";;;AAgGA,kBA7F0C;CACxC;EACE,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAO;EAC9B,MAAM;;;;;;;;;;;EAWP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAQ;EAC/B,MAAM;;;;;;;;;;;;;EAaP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SACE;EACF,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAY;EACnC,MAAM;;;;;;;;;;;;;;;EAeP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SACE;EACF,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAe;GAAW;EACjD,MAAM;;;;;;;;;;;;;EAaP;CACF,CAEuC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { AgentSummary, AgentToolRef, AgentWithTools, GetAgentInput, ListAgentsIn
|
|
|
6
6
|
import { AssignToolToAgentCommand, CreateAgentCommand, GetAgentQuery, ListAgentsQuery, RemoveToolFromAgentCommand, UpdateAgentCommand } from "./agent/agent.operation.js";
|
|
7
7
|
import { AgentConsoleDashboardPresentation, AgentDetailPresentation, AgentListPresentation } from "./agent/agent.presentation.js";
|
|
8
8
|
import { AgentModel, AgentSummaryModel, AgentToolRefModel, AgentWithToolsModel, CreateAgentInputModel, UpdateAgentInputModel } from "./agent/agent.schema.js";
|
|
9
|
+
import "./agent/index.js";
|
|
9
10
|
import example from "./example.js";
|
|
10
11
|
import { ListRunsInput, ListRunsOutput, RunSummary, mockCancelRunHandler, mockExecuteAgentHandler, mockGetRunHandler, mockListRunsHandler } from "./run/run.handler.js";
|
|
11
12
|
import { ListToolsInput, ListToolsOutput, ToolSummary, mockCreateToolHandler, mockGetToolHandler, mockListToolsHandler, mockTestToolHandler, mockUpdateToolHandler } from "./tool/tool.handler.js";
|
|
@@ -15,12 +16,14 @@ import { CancelRunCommand, ExecuteAgentCommand, GetRunLogsQuery, GetRunMetricsQu
|
|
|
15
16
|
import { MessageGeneratedEvent, RunCancelledEvent, RunCompletedEvent, RunFailedEvent, RunStartedEvent, ToolCompletedEvent, ToolInvokedEvent } from "./run/run.event.js";
|
|
16
17
|
import { LogLevelEntityEnum, RunEntity, RunLogEntity, RunStatusEntityEnum, RunStepEntity, RunStepTypeEntityEnum } from "./run/run.entity.js";
|
|
17
18
|
import { RunDetailPresentation, RunListPresentation } from "./run/run.presentation.js";
|
|
19
|
+
import "./run/index.js";
|
|
18
20
|
import { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum } from "./tool/tool.enum.js";
|
|
19
21
|
import { CreateToolInputModel, ToolModel, ToolSummaryModel, UpdateToolInputModel } from "./tool/tool.schema.js";
|
|
20
22
|
import { CreateToolCommand, GetToolQuery, ListToolsQuery, TestToolCommand, UpdateToolCommand } from "./tool/tool.operation.js";
|
|
21
23
|
import { ToolCreatedEvent, ToolStatusChangedEvent, ToolUpdatedEvent } from "./tool/tool.event.js";
|
|
22
24
|
import { ImplementationTypeEntityEnum, ToolCategoryEntityEnum, ToolEntity, ToolStatusEntityEnum } from "./tool/tool.entity.js";
|
|
23
25
|
import { ToolDetailPresentation, ToolListPresentation } from "./tool/tool.presentation.js";
|
|
26
|
+
import "./tool/index.js";
|
|
24
27
|
import { MOCK_AGENTS } from "./shared/mock-agents.js";
|
|
25
28
|
import { MOCK_TOOLS } from "./shared/mock-tools.js";
|
|
26
29
|
import { MOCK_RUNS } from "./shared/mock-runs.js";
|