@lssm/example.agent-console 0.0.0-canary-20251217083314 → 0.0.0-canary-20251220002821
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 +365 -272
- package/.turbo/turbo-build.log +366 -48
- package/CHANGELOG.md +6 -6
- package/LICENSE +21 -0
- package/dist/agent/agent.contracts.d.ts +128 -127
- package/dist/agent/agent.contracts.d.ts.map +1 -0
- package/dist/agent/agent.contracts.js +36 -37
- package/dist/agent/agent.contracts.js.map +1 -0
- package/dist/agent/agent.entity.d.ts +38 -37
- package/dist/agent/agent.entity.d.ts.map +1 -0
- package/dist/agent/agent.entity.js +42 -42
- package/dist/agent/agent.entity.js.map +1 -0
- package/dist/agent/agent.enum.d.ts +6 -5
- package/dist/agent/agent.enum.d.ts.map +1 -0
- package/dist/agent/agent.enum.js +6 -6
- package/dist/agent/agent.enum.js.map +1 -0
- package/dist/agent/agent.event.d.ts +33 -32
- package/dist/agent/agent.event.d.ts.map +1 -0
- package/dist/agent/agent.event.js +33 -33
- package/dist/agent/agent.event.js.map +1 -0
- package/dist/agent/agent.handler.d.ts +2 -1
- package/dist/agent/agent.handler.d.ts.map +1 -0
- package/dist/agent/agent.handler.js +2 -1
- package/dist/agent/agent.handler.js.map +1 -0
- package/dist/agent/agent.presentation.d.ts +2 -1
- package/dist/agent/agent.presentation.d.ts.map +1 -0
- package/dist/agent/agent.presentation.js +2 -1
- package/dist/agent/agent.presentation.js.map +1 -0
- package/dist/agent/agent.schema.d.ts +97 -96
- package/dist/agent/agent.schema.d.ts.map +1 -0
- package/dist/agent/agent.schema.js +79 -80
- package/dist/agent/agent.schema.js.map +1 -0
- package/dist/agent.feature.d.ts +2 -1
- package/dist/agent.feature.d.ts.map +1 -0
- package/dist/agent.feature.js +2 -1
- package/dist/agent.feature.js.map +1 -0
- package/dist/docs/agent-console.docblock.js +2 -1
- package/dist/docs/agent-console.docblock.js.map +1 -0
- package/dist/example.d.ts +2 -1
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +2 -1
- package/dist/example.js.map +1 -0
- package/dist/libs/contracts/dist/capabilities/openbanking.js +2 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js.map +1 -0
- package/dist/libs/contracts/dist/contract-registry/schemas.js +2 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js.map +1 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/index.js +2 -6
- package/dist/libs/contracts/dist/docs/meta.docs.js +30 -0
- package/dist/libs/contracts/dist/docs/meta.docs.js.map +1 -0
- package/dist/libs/contracts/dist/docs/presentations.js +2 -1
- package/dist/libs/contracts/dist/docs/presentations.js.map +1 -0
- package/dist/libs/contracts/dist/docs/registry.js +2 -1
- package/dist/libs/contracts/dist/docs/registry.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +97 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +1 -0
- package/dist/libs/contracts/dist/events.js +2 -1
- package/dist/libs/contracts/dist/events.js.map +1 -0
- package/dist/libs/contracts/dist/index.js +3 -2
- package/dist/libs/contracts/dist/integrations/contracts.js +65 -66
- package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +31 -32
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +18 -19
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +32 -33
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +60 -61
- package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +2 -1
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/powens.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/contracts.js +44 -45
- package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
- package/dist/libs/contracts/dist/llm/exporters.js +2 -1
- package/dist/libs/contracts/dist/llm/exporters.js.map +1 -0
- package/dist/libs/contracts/dist/onboarding-base.js +22 -23
- package/dist/libs/contracts/dist/onboarding-base.js.map +1 -0
- package/dist/libs/contracts/dist/ownership.js +4 -2
- package/dist/libs/contracts/dist/ownership.js.map +1 -0
- package/dist/libs/contracts/dist/presentations.v2.js +2 -1
- package/dist/libs/contracts/dist/presentations.v2.js.map +1 -0
- package/dist/libs/contracts/dist/regenerator/service.js +2 -1
- package/dist/libs/contracts/dist/regenerator/service.js.map +1 -0
- package/dist/libs/contracts/dist/schema/dist/index.js +3874 -6
- package/dist/libs/contracts/dist/schema/dist/index.js.map +1 -0
- package/dist/libs/contracts/dist/spec.js +2 -1
- package/dist/libs/contracts/dist/spec.js.map +1 -0
- package/dist/libs/schema/dist/index.js +4922 -6
- package/dist/libs/schema/dist/index.js.map +1 -0
- package/dist/run/run.contracts.d.ts +176 -175
- package/dist/run/run.contracts.d.ts.map +1 -0
- package/dist/run/run.contracts.js +58 -59
- package/dist/run/run.contracts.js.map +1 -0
- package/dist/run/run.entity.d.ts +58 -57
- package/dist/run/run.entity.d.ts.map +1 -0
- package/dist/run/run.entity.js +64 -64
- package/dist/run/run.entity.js.map +1 -0
- package/dist/run/run.enum.d.ts +7 -6
- package/dist/run/run.enum.d.ts.map +1 -0
- package/dist/run/run.enum.js +7 -7
- package/dist/run/run.enum.js.map +1 -0
- package/dist/run/run.event.d.ts +73 -72
- package/dist/run/run.event.d.ts.map +1 -0
- package/dist/run/run.event.js +73 -74
- package/dist/run/run.event.js.map +1 -0
- package/dist/run/run.handler.d.ts +2 -1
- package/dist/run/run.handler.d.ts.map +1 -0
- package/dist/run/run.handler.js +2 -1
- package/dist/run/run.handler.js.map +1 -0
- package/dist/run/run.presentation.d.ts +2 -1
- package/dist/run/run.presentation.d.ts.map +1 -0
- package/dist/run/run.presentation.js +2 -1
- package/dist/run/run.presentation.js.map +1 -0
- package/dist/run/run.schema.d.ts +101 -100
- package/dist/run/run.schema.d.ts.map +1 -0
- package/dist/run/run.schema.js +67 -68
- package/dist/run/run.schema.js.map +1 -0
- package/dist/shared/mock-agents.d.ts +2 -1
- package/dist/shared/mock-agents.d.ts.map +1 -0
- package/dist/shared/mock-agents.js +2 -1
- package/dist/shared/mock-agents.js.map +1 -0
- package/dist/shared/mock-runs.d.ts +2 -1
- package/dist/shared/mock-runs.d.ts.map +1 -0
- package/dist/shared/mock-runs.js +2 -1
- package/dist/shared/mock-runs.js.map +1 -0
- package/dist/shared/mock-tools.d.ts +2 -1
- package/dist/shared/mock-tools.d.ts.map +1 -0
- package/dist/shared/mock-tools.js +2 -1
- package/dist/shared/mock-tools.js.map +1 -0
- package/dist/tool/tool.contracts.d.ts +103 -102
- package/dist/tool/tool.contracts.d.ts.map +1 -0
- package/dist/tool/tool.contracts.js +29 -30
- package/dist/tool/tool.contracts.js.map +1 -0
- package/dist/tool/tool.entity.d.ts +26 -25
- package/dist/tool/tool.entity.d.ts.map +1 -0
- package/dist/tool/tool.entity.js +29 -29
- package/dist/tool/tool.entity.js.map +1 -0
- package/dist/tool/tool.enum.d.ts +6 -5
- package/dist/tool/tool.enum.d.ts.map +1 -0
- package/dist/tool/tool.enum.js +6 -6
- package/dist/tool/tool.enum.js.map +1 -0
- package/dist/tool/tool.event.d.ts +27 -26
- package/dist/tool/tool.event.d.ts.map +1 -0
- package/dist/tool/tool.event.js +27 -27
- package/dist/tool/tool.event.js.map +1 -0
- package/dist/tool/tool.handler.d.ts +2 -1
- package/dist/tool/tool.handler.d.ts.map +1 -0
- package/dist/tool/tool.handler.js +2 -1
- package/dist/tool/tool.handler.js.map +1 -0
- package/dist/tool/tool.presentation.d.ts +2 -1
- package/dist/tool/tool.presentation.d.ts.map +1 -0
- package/dist/tool/tool.presentation.js +2 -1
- package/dist/tool/tool.presentation.js.map +1 -0
- package/dist/tool/tool.schema.d.ts +54 -53
- package/dist/tool/tool.schema.d.ts.map +1 -0
- package/dist/tool/tool.schema.js +46 -47
- package/dist/tool/tool.schema.js.map +1 -0
- package/package.json +18 -10
- package/src/agent/agent.entity.ts +1 -6
- package/src/run/run.entity.ts +1 -6
- package/src/tool/tool.entity.ts +1 -6
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -39
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
- package/dist/libs/schema/dist/EnumType.js +0 -56
- package/dist/libs/schema/dist/FieldType.js +0 -49
- package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/schema/dist/SchemaModel.js +0 -39
- package/dist/libs/schema/dist/entity/defineEntity.js +0 -236
- package/dist/libs/schema/dist/entity/index.js +0 -2
- package/dist/libs/schema/dist/entity/types.js +0 -1
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
|
|
3
|
-
import "../libs/schema/dist/index.js";
|
|
1
|
+
import { E5, K5 } from "../libs/schema/dist/index.js";
|
|
4
2
|
import { defineCommand, defineQuery } from "../libs/contracts/dist/spec.js";
|
|
5
3
|
import { ToolCategoryEnum, ToolStatusEnum } from "./tool.enum.js";
|
|
6
4
|
import { CreateToolInputModel, ToolModel, ToolSummaryModel, UpdateToolInputModel } from "./tool.schema.js";
|
|
@@ -23,19 +21,19 @@ const CreateToolCommand = defineCommand({
|
|
|
23
21
|
},
|
|
24
22
|
io: {
|
|
25
23
|
input: CreateToolInputModel,
|
|
26
|
-
output:
|
|
24
|
+
output: K5({
|
|
27
25
|
name: "CreateToolOutput",
|
|
28
26
|
fields: {
|
|
29
27
|
id: {
|
|
30
|
-
type:
|
|
28
|
+
type: E5.String_unsecure(),
|
|
31
29
|
isOptional: false
|
|
32
30
|
},
|
|
33
31
|
name: {
|
|
34
|
-
type:
|
|
32
|
+
type: E5.NonEmptyString(),
|
|
35
33
|
isOptional: false
|
|
36
34
|
},
|
|
37
35
|
slug: {
|
|
38
|
-
type:
|
|
36
|
+
type: E5.String_unsecure(),
|
|
39
37
|
isOptional: false
|
|
40
38
|
},
|
|
41
39
|
status: {
|
|
@@ -78,15 +76,15 @@ const UpdateToolCommand = defineCommand({
|
|
|
78
76
|
},
|
|
79
77
|
io: {
|
|
80
78
|
input: UpdateToolInputModel,
|
|
81
|
-
output:
|
|
79
|
+
output: K5({
|
|
82
80
|
name: "UpdateToolOutput",
|
|
83
81
|
fields: {
|
|
84
82
|
id: {
|
|
85
|
-
type:
|
|
83
|
+
type: E5.String_unsecure(),
|
|
86
84
|
isOptional: false
|
|
87
85
|
},
|
|
88
86
|
name: {
|
|
89
|
-
type:
|
|
87
|
+
type: E5.NonEmptyString(),
|
|
90
88
|
isOptional: false
|
|
91
89
|
},
|
|
92
90
|
status: {
|
|
@@ -94,7 +92,7 @@ const UpdateToolCommand = defineCommand({
|
|
|
94
92
|
isOptional: false
|
|
95
93
|
},
|
|
96
94
|
updatedAt: {
|
|
97
|
-
type:
|
|
95
|
+
type: E5.DateTime(),
|
|
98
96
|
isOptional: false
|
|
99
97
|
}
|
|
100
98
|
}
|
|
@@ -132,10 +130,10 @@ const GetToolQuery = defineQuery({
|
|
|
132
130
|
context: "Called when viewing tool details or editing."
|
|
133
131
|
},
|
|
134
132
|
io: {
|
|
135
|
-
input:
|
|
133
|
+
input: K5({
|
|
136
134
|
name: "GetToolInput",
|
|
137
135
|
fields: { toolId: {
|
|
138
|
-
type:
|
|
136
|
+
type: E5.String_unsecure(),
|
|
139
137
|
isOptional: false
|
|
140
138
|
} }
|
|
141
139
|
}),
|
|
@@ -164,11 +162,11 @@ const ListToolsQuery = defineQuery({
|
|
|
164
162
|
context: "Tool list/dashboard view."
|
|
165
163
|
},
|
|
166
164
|
io: {
|
|
167
|
-
input:
|
|
165
|
+
input: K5({
|
|
168
166
|
name: "ListToolsInput",
|
|
169
167
|
fields: {
|
|
170
168
|
organizationId: {
|
|
171
|
-
type:
|
|
169
|
+
type: E5.String_unsecure(),
|
|
172
170
|
isOptional: false
|
|
173
171
|
},
|
|
174
172
|
category: {
|
|
@@ -180,22 +178,22 @@ const ListToolsQuery = defineQuery({
|
|
|
180
178
|
isOptional: true
|
|
181
179
|
},
|
|
182
180
|
search: {
|
|
183
|
-
type:
|
|
181
|
+
type: E5.String_unsecure(),
|
|
184
182
|
isOptional: true
|
|
185
183
|
},
|
|
186
184
|
limit: {
|
|
187
|
-
type:
|
|
185
|
+
type: E5.Int_unsecure(),
|
|
188
186
|
isOptional: true,
|
|
189
187
|
defaultValue: 20
|
|
190
188
|
},
|
|
191
189
|
offset: {
|
|
192
|
-
type:
|
|
190
|
+
type: E5.Int_unsecure(),
|
|
193
191
|
isOptional: true,
|
|
194
192
|
defaultValue: 0
|
|
195
193
|
}
|
|
196
194
|
}
|
|
197
195
|
}),
|
|
198
|
-
output:
|
|
196
|
+
output: K5({
|
|
199
197
|
name: "ListToolsOutput",
|
|
200
198
|
fields: {
|
|
201
199
|
items: {
|
|
@@ -204,11 +202,11 @@ const ListToolsQuery = defineQuery({
|
|
|
204
202
|
isOptional: false
|
|
205
203
|
},
|
|
206
204
|
total: {
|
|
207
|
-
type:
|
|
205
|
+
type: E5.Int_unsecure(),
|
|
208
206
|
isOptional: false
|
|
209
207
|
},
|
|
210
208
|
hasMore: {
|
|
211
|
-
type:
|
|
209
|
+
type: E5.Boolean(),
|
|
212
210
|
isOptional: false
|
|
213
211
|
}
|
|
214
212
|
}
|
|
@@ -231,36 +229,36 @@ const TestToolCommand = defineCommand({
|
|
|
231
229
|
context: "Tool builder UI - test panel."
|
|
232
230
|
},
|
|
233
231
|
io: {
|
|
234
|
-
input:
|
|
232
|
+
input: K5({
|
|
235
233
|
name: "TestToolInput",
|
|
236
234
|
fields: {
|
|
237
235
|
toolId: {
|
|
238
|
-
type:
|
|
236
|
+
type: E5.String_unsecure(),
|
|
239
237
|
isOptional: false
|
|
240
238
|
},
|
|
241
239
|
testInput: {
|
|
242
|
-
type:
|
|
240
|
+
type: E5.JSONObject(),
|
|
243
241
|
isOptional: false
|
|
244
242
|
}
|
|
245
243
|
}
|
|
246
244
|
}),
|
|
247
|
-
output:
|
|
245
|
+
output: K5({
|
|
248
246
|
name: "TestToolOutput",
|
|
249
247
|
fields: {
|
|
250
248
|
success: {
|
|
251
|
-
type:
|
|
249
|
+
type: E5.Boolean(),
|
|
252
250
|
isOptional: false
|
|
253
251
|
},
|
|
254
252
|
output: {
|
|
255
|
-
type:
|
|
253
|
+
type: E5.JSONObject(),
|
|
256
254
|
isOptional: true
|
|
257
255
|
},
|
|
258
256
|
error: {
|
|
259
|
-
type:
|
|
257
|
+
type: E5.String_unsecure(),
|
|
260
258
|
isOptional: true
|
|
261
259
|
},
|
|
262
260
|
durationMs: {
|
|
263
|
-
type:
|
|
261
|
+
type: E5.Int_unsecure(),
|
|
264
262
|
isOptional: false
|
|
265
263
|
}
|
|
266
264
|
}
|
|
@@ -285,4 +283,5 @@ const TestToolCommand = defineCommand({
|
|
|
285
283
|
});
|
|
286
284
|
|
|
287
285
|
//#endregion
|
|
288
|
-
export { CreateToolCommand, GetToolQuery, ListToolsQuery, TestToolCommand, UpdateToolCommand };
|
|
286
|
+
export { CreateToolCommand, GetToolQuery, ListToolsQuery, TestToolCommand, UpdateToolCommand };
|
|
287
|
+
//# sourceMappingURL=tool.contracts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.contracts.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/tool/tool.contracts.ts"],"sourcesContent":["import { defineCommand, defineQuery } from '@lssm/lib.contracts/spec';\nimport { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport { ToolCategoryEnum, ToolStatusEnum } from './tool.enum';\nimport {\n ToolModel,\n ToolSummaryModel,\n CreateToolInputModel,\n UpdateToolInputModel,\n} from './tool.schema';\n\nconst OWNERS = ['agent-console-team'] as const;\n\n/**\n * CreateToolCommand - Creates a new tool definition.\n */\nexport const CreateToolCommand = defineCommand({\n meta: {\n name: 'agent.tool.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'create'],\n description: 'Creates a new AI tool definition.',\n goal: 'Allow users to define new tools that agents can use.',\n context: 'Called from the tool builder UI when creating a new tool.',\n },\n io: {\n input: CreateToolInputModel,\n output: defineSchemaModel({\n name: 'CreateToolOutput',\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 status: { type: ToolStatusEnum, isOptional: false },\n },\n }),\n errors: {\n SLUG_EXISTS: {\n description: 'A tool with this slug already exists in the organization',\n http: 409,\n gqlCode: 'SLUG_EXISTS',\n when: 'Slug is already taken',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'tool.created',\n version: 1,\n when: 'Tool is successfully created',\n payload: ToolSummaryModel,\n },\n ],\n audit: ['tool.created'],\n },\n});\n\n/**\n * UpdateToolCommand - Updates an existing tool.\n */\nexport const UpdateToolCommand = defineCommand({\n meta: {\n name: 'agent.tool.update',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'update'],\n description: 'Updates an existing AI tool definition.',\n goal: 'Allow users to modify tool settings and configuration.',\n context: 'Called from the tool settings UI.',\n },\n io: {\n input: UpdateToolInputModel,\n output: defineSchemaModel({\n name: 'UpdateToolOutput',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n status: { type: ToolStatusEnum, isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n }),\n errors: {\n TOOL_NOT_FOUND: {\n description: 'The specified tool does not exist',\n http: 404,\n gqlCode: 'TOOL_NOT_FOUND',\n when: 'Tool ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'tool.updated',\n version: 1,\n when: 'Tool is updated',\n payload: ToolSummaryModel,\n },\n ],\n audit: ['tool.updated'],\n },\n});\n\n/**\n * GetToolQuery - Retrieves a tool by ID.\n */\nexport const GetToolQuery = defineQuery({\n meta: {\n name: 'agent.tool.get',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'get'],\n description: 'Retrieves a tool by its ID.',\n goal: 'View detailed tool configuration.',\n context: 'Called when viewing tool details or editing.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetToolInput',\n fields: {\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n output: ToolModel,\n errors: {\n TOOL_NOT_FOUND: {\n description: 'The specified tool does not exist',\n http: 404,\n gqlCode: 'TOOL_NOT_FOUND',\n when: 'Tool ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n});\n\n/**\n * ListToolsQuery - Lists tools for an organization.\n */\nexport const ListToolsQuery = defineQuery({\n meta: {\n name: 'agent.tool.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'list'],\n description: 'Lists tools for an organization with optional filtering.',\n goal: 'Browse and search available tools.',\n context: 'Tool list/dashboard view.',\n },\n io: {\n input: defineSchemaModel({\n name: 'ListToolsInput',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n category: { type: ToolCategoryEnum, isOptional: true },\n status: { type: ToolStatusEnum, isOptional: true },\n search: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n }),\n output: defineSchemaModel({\n name: 'ListToolsOutput',\n fields: {\n items: { type: ToolSummaryModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n hasMore: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n});\n\n/**\n * TestToolCommand - Tests a tool with sample input.\n */\nexport const TestToolCommand = defineCommand({\n meta: {\n name: 'agent.tool.test',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'test'],\n description: 'Tests a tool with sample input to verify it works correctly.',\n goal: 'Validate tool configuration before deployment.',\n context: 'Tool builder UI - test panel.',\n },\n io: {\n input: defineSchemaModel({\n name: 'TestToolInput',\n fields: {\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n testInput: { type: ScalarTypeEnum.JSONObject(), isOptional: false },\n },\n }),\n output: defineSchemaModel({\n name: 'TestToolOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n output: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n error: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n durationMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n },\n }),\n errors: {\n TOOL_NOT_FOUND: {\n description: 'The specified tool does not exist',\n http: 404,\n gqlCode: 'TOOL_NOT_FOUND',\n when: 'Tool ID is invalid',\n },\n TOOL_EXECUTION_ERROR: {\n description: 'Tool execution failed',\n http: 500,\n gqlCode: 'TOOL_EXECUTION_ERROR',\n when: 'Tool returns an error',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: { audit: ['tool.tested'] },\n});\n"],"mappings":";;;;;;AAUA,MAAM,SAAS,CAAC,qBAAqB;;;;AAKrC,MAAa,oBAAoB,cAAc;CAC7C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,QAAQ,SAAS;EACxB,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQA,GAAkB;GACxB,MAAM;GACN,QAAQ;IACN,IAAI;KAAE,MAAMC,GAAe,iBAAiB;KAAE,YAAY;KAAO;IACjE,MAAM;KAAE,MAAMA,GAAe,gBAAgB;KAAE,YAAY;KAAO;IAClE,MAAM;KAAE,MAAMA,GAAe,iBAAiB;KAAE,YAAY;KAAO;IACnE,QAAQ;KAAE,MAAM;KAAgB,YAAY;KAAO;IACpD;GACF,CAAC;EACF,QAAQ,EACN,aAAa;GACX,aAAa;GACb,MAAM;GACN,SAAS;GACT,MAAM;GACP,EACF;EACF;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,eAAe;EACxB;CACF,CAAC;;;;AAKF,MAAa,oBAAoB,cAAc;CAC7C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,QAAQ,SAAS;EACxB,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQD,GAAkB;GACxB,M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AAM;IACN,SAAS;IACT,MAAM;IACP;GACD,sBAAsB;IACpB,aAAa;IACb,MAAM;IACN,SAAS;IACT,MAAM;IACP;GACF;EACF;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa,EAAE,OAAO,CAAC,cAAc,EAAE;CACxC,CAAC"}
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema149 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_schema149.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Tool status enum for entities.
|
|
10
10
|
*/
|
|
11
|
-
declare const ToolStatusEntityEnum:
|
|
11
|
+
declare const ToolStatusEntityEnum: _lssm_lib_schema149.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* Implementation type enum for entities.
|
|
14
14
|
*/
|
|
15
|
-
declare const ImplementationTypeEntityEnum:
|
|
15
|
+
declare const ImplementationTypeEntityEnum: _lssm_lib_schema149.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_schema149.EntitySpec<{
|
|
20
|
+
id: _lssm_lib_schema149.EntityScalarField;
|
|
21
|
+
organizationId: _lssm_lib_schema149.EntityScalarField;
|
|
22
|
+
name: _lssm_lib_schema149.EntityScalarField;
|
|
23
|
+
slug: _lssm_lib_schema149.EntityScalarField;
|
|
24
|
+
description: _lssm_lib_schema149.EntityScalarField;
|
|
25
|
+
category: _lssm_lib_schema149.EntityEnumField;
|
|
26
|
+
status: _lssm_lib_schema149.EntityEnumField;
|
|
27
|
+
parametersSchema: _lssm_lib_schema149.EntityScalarField;
|
|
28
|
+
outputSchema: _lssm_lib_schema149.EntityScalarField;
|
|
29
|
+
implementationType: _lssm_lib_schema149.EntityEnumField;
|
|
30
|
+
implementationConfig: _lssm_lib_schema149.EntityScalarField;
|
|
31
|
+
maxInvocationsPerMinute: _lssm_lib_schema149.EntityScalarField;
|
|
32
|
+
timeoutMs: _lssm_lib_schema149.EntityScalarField;
|
|
33
|
+
version: _lssm_lib_schema149.EntityScalarField;
|
|
34
|
+
tags: _lssm_lib_schema149.EntityScalarField;
|
|
35
|
+
createdAt: _lssm_lib_schema149.EntityScalarField;
|
|
36
|
+
updatedAt: _lssm_lib_schema149.EntityScalarField;
|
|
37
|
+
createdById: _lssm_lib_schema149.EntityScalarField;
|
|
38
|
+
agents: _lssm_lib_schema149.EntityRelationField;
|
|
39
39
|
}>;
|
|
40
40
|
//#endregion
|
|
41
|
-
export { ImplementationTypeEntityEnum, ToolCategoryEntityEnum, ToolEntity, ToolStatusEntityEnum };
|
|
41
|
+
export { ImplementationTypeEntityEnum, ToolCategoryEntityEnum, ToolEntity, ToolStatusEntityEnum };
|
|
42
|
+
//# sourceMappingURL=tool.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.entity.d.ts","names":[],"sources":["../../src/tool/tool.entity.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,sBAWX,EAAA,mBAAA,CAXiC,aAWjC;AAKF;AASA;AASA;AAsDE,cAxEW,oBAwEX,EApEA,mBAAA,CAJ+B,aAwE/B;;;;cA/DW,8BAIX,mBAAA,CAJuC;;;;cAS5B,gCAAU;MAsDrB,mBAAA,CAAA;;;;;;;;;;sBAtDqB,uCAAA;EAAA,uBAAA,uCAAA"}
|
package/dist/tool/tool.entity.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../libs/schema/dist/entity/index.js";
|
|
1
|
+
import { L5, Z5, _5, b5 } from "../libs/schema/dist/index.js";
|
|
3
2
|
|
|
4
3
|
//#region src/tool/tool.entity.ts
|
|
5
4
|
/**
|
|
6
5
|
* Tool category enum for entities.
|
|
7
6
|
*/
|
|
8
|
-
const ToolCategoryEntityEnum =
|
|
7
|
+
const ToolCategoryEntityEnum = Z5({
|
|
9
8
|
name: "ToolCategory",
|
|
10
9
|
values: [
|
|
11
10
|
"RETRIEVAL",
|
|
@@ -20,7 +19,7 @@ const ToolCategoryEntityEnum = defineEntityEnum({
|
|
|
20
19
|
/**
|
|
21
20
|
* Tool status enum for entities.
|
|
22
21
|
*/
|
|
23
|
-
const ToolStatusEntityEnum =
|
|
22
|
+
const ToolStatusEntityEnum = Z5({
|
|
24
23
|
name: "ToolStatus",
|
|
25
24
|
values: [
|
|
26
25
|
"DRAFT",
|
|
@@ -33,7 +32,7 @@ const ToolStatusEntityEnum = defineEntityEnum({
|
|
|
33
32
|
/**
|
|
34
33
|
* Implementation type enum for entities.
|
|
35
34
|
*/
|
|
36
|
-
const ImplementationTypeEntityEnum =
|
|
35
|
+
const ImplementationTypeEntityEnum = Z5({
|
|
37
36
|
name: "ImplementationType",
|
|
38
37
|
values: [
|
|
39
38
|
"http",
|
|
@@ -45,54 +44,54 @@ const ImplementationTypeEntityEnum = defineEntityEnum({
|
|
|
45
44
|
/**
|
|
46
45
|
* Tool entity - Represents an AI tool definition.
|
|
47
46
|
*/
|
|
48
|
-
const ToolEntity =
|
|
47
|
+
const ToolEntity = L5({
|
|
49
48
|
name: "Tool",
|
|
50
49
|
schema: "agent_console",
|
|
51
50
|
description: "An AI tool that can be used by agents.",
|
|
52
51
|
fields: {
|
|
53
|
-
id:
|
|
54
|
-
organizationId:
|
|
55
|
-
name:
|
|
56
|
-
slug:
|
|
57
|
-
description:
|
|
58
|
-
category:
|
|
59
|
-
status:
|
|
60
|
-
parametersSchema:
|
|
61
|
-
outputSchema:
|
|
52
|
+
id: _5.id(),
|
|
53
|
+
organizationId: _5.string({ description: "Organization that owns this tool" }),
|
|
54
|
+
name: _5.string({ description: "Tool name" }),
|
|
55
|
+
slug: _5.string({ description: "URL-safe identifier" }),
|
|
56
|
+
description: _5.string({ description: "Tool description" }),
|
|
57
|
+
category: _5.enum("ToolCategory", { default: "CUSTOM" }),
|
|
58
|
+
status: _5.enum("ToolStatus", { default: "DRAFT" }),
|
|
59
|
+
parametersSchema: _5.json({ description: "JSON Schema for tool parameters" }),
|
|
60
|
+
outputSchema: _5.json({
|
|
62
61
|
isOptional: true,
|
|
63
62
|
description: "JSON Schema for tool output"
|
|
64
63
|
}),
|
|
65
|
-
implementationType:
|
|
66
|
-
implementationConfig:
|
|
67
|
-
maxInvocationsPerMinute:
|
|
64
|
+
implementationType: _5.enum("ImplementationType"),
|
|
65
|
+
implementationConfig: _5.json({ description: "Implementation configuration" }),
|
|
66
|
+
maxInvocationsPerMinute: _5.int({
|
|
68
67
|
isOptional: true,
|
|
69
68
|
description: "Rate limit"
|
|
70
69
|
}),
|
|
71
|
-
timeoutMs:
|
|
70
|
+
timeoutMs: _5.int({
|
|
72
71
|
default: 3e4,
|
|
73
72
|
description: "Execution timeout"
|
|
74
73
|
}),
|
|
75
|
-
version:
|
|
74
|
+
version: _5.string({
|
|
76
75
|
default: "1.0.0",
|
|
77
76
|
description: "Tool version"
|
|
78
77
|
}),
|
|
79
|
-
tags:
|
|
78
|
+
tags: _5.string({
|
|
80
79
|
isArray: true,
|
|
81
80
|
isOptional: true,
|
|
82
81
|
description: "Tags for categorization"
|
|
83
82
|
}),
|
|
84
|
-
createdAt:
|
|
85
|
-
updatedAt:
|
|
86
|
-
createdById:
|
|
83
|
+
createdAt: _5.createdAt(),
|
|
84
|
+
updatedAt: _5.updatedAt(),
|
|
85
|
+
createdById: _5.string({
|
|
87
86
|
isOptional: true,
|
|
88
87
|
description: "User who created this tool"
|
|
89
88
|
}),
|
|
90
|
-
agents:
|
|
89
|
+
agents: _5.hasMany("Agent", { description: "Agents using this tool" })
|
|
91
90
|
},
|
|
92
91
|
indexes: [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
b5.unique(["organizationId", "slug"]),
|
|
93
|
+
b5.on(["organizationId", "category"]),
|
|
94
|
+
b5.on(["organizationId", "status"])
|
|
96
95
|
],
|
|
97
96
|
enums: [
|
|
98
97
|
ToolCategoryEntityEnum,
|
|
@@ -102,4 +101,5 @@ const ToolEntity = defineEntity({
|
|
|
102
101
|
});
|
|
103
102
|
|
|
104
103
|
//#endregion
|
|
105
|
-
export { ImplementationTypeEntityEnum, ToolCategoryEntityEnum, ToolEntity, ToolStatusEntityEnum };
|
|
104
|
+
export { ImplementationTypeEntityEnum, ToolCategoryEntityEnum, ToolEntity, ToolStatusEntityEnum };
|
|
105
|
+
//# sourceMappingURL=tool.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.entity.js","names":["defineEntityEnum","defineEntity","field","index"],"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,yBAAyBA,GAAiB;CACrD,MAAM;CACN,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;E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,QAAQA,GAAM,QAAQ,SAAS,EAAE,aAAa,0BAA0B,CAAC;EAC1E;CACD,SAAS;EACPC,GAAM,OAAO,CAAC,kBAAkB,OAAO,CAAC;EACxCA,GAAM,GAAG,CAAC,kBAAkB,WAAW,CAAC;EACxCA,GAAM,GAAG,CAAC,kBAAkB,SAAS,CAAC;EACvC;CACD,OAAO;EACL;EACA;EACA;EACD;CACF,CAAC"}
|
package/dist/tool/tool.enum.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema296 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_schema296.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_schema296.EnumType<[string, string, string, string]>;
|
|
12
12
|
/**
|
|
13
13
|
* Implementation type enum.
|
|
14
14
|
*/
|
|
15
|
-
declare const ImplementationTypeEnum:
|
|
15
|
+
declare const ImplementationTypeEnum: _lssm_lib_schema296.EnumType<[string, string, string]>;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum };
|
|
17
|
+
export { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum };
|
|
18
|
+
//# sourceMappingURL=tool.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.enum.d.ts","names":[],"sources":["../../src/tool/tool.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,gBAOX,EAAA,mBAAA,CAP2B,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;AAY7B;AAUA;;cAVa,gBAKX,mBAAA,CALyB;;;;cAUd,wBAIX,mBAAA,CAJiC"}
|
package/dist/tool/tool.enum.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../libs/schema/dist/index.js";
|
|
1
|
+
import { N5 } from "../libs/schema/dist/index.js";
|
|
3
2
|
|
|
4
3
|
//#region src/tool/tool.enum.ts
|
|
5
4
|
/**
|
|
6
5
|
* Tool category enum.
|
|
7
6
|
*/
|
|
8
|
-
const ToolCategoryEnum =
|
|
7
|
+
const ToolCategoryEnum = N5("ToolCategory", [
|
|
9
8
|
"RETRIEVAL",
|
|
10
9
|
"COMPUTATION",
|
|
11
10
|
"COMMUNICATION",
|
|
@@ -16,7 +15,7 @@ const ToolCategoryEnum = defineEnum("ToolCategory", [
|
|
|
16
15
|
/**
|
|
17
16
|
* Tool status enum.
|
|
18
17
|
*/
|
|
19
|
-
const ToolStatusEnum =
|
|
18
|
+
const ToolStatusEnum = N5("ToolStatus", [
|
|
20
19
|
"DRAFT",
|
|
21
20
|
"ACTIVE",
|
|
22
21
|
"DEPRECATED",
|
|
@@ -25,11 +24,12 @@ const ToolStatusEnum = defineEnum("ToolStatus", [
|
|
|
25
24
|
/**
|
|
26
25
|
* Implementation type enum.
|
|
27
26
|
*/
|
|
28
|
-
const ImplementationTypeEnum =
|
|
27
|
+
const ImplementationTypeEnum = N5("ImplementationType", [
|
|
29
28
|
"http",
|
|
30
29
|
"function",
|
|
31
30
|
"workflow"
|
|
32
31
|
]);
|
|
33
32
|
|
|
34
33
|
//#endregion
|
|
35
|
-
export { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum };
|
|
34
|
+
export { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum };
|
|
35
|
+
//# sourceMappingURL=tool.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.enum.js","names":["defineEnum"],"sources":["../../src/tool/tool.enum.ts"],"sourcesContent":["import { defineEnum } from '@lssm/lib.schema';\n\n/**\n * Tool category enum.\n */\nexport const ToolCategoryEnum = defineEnum('ToolCategory', [\n 'RETRIEVAL',\n 'COMPUTATION',\n 'COMMUNICATION',\n 'INTEGRATION',\n 'UTILITY',\n 'CUSTOM',\n]);\n\n/**\n * Tool status enum.\n */\nexport const ToolStatusEnum = defineEnum('ToolStatus', [\n 'DRAFT',\n 'ACTIVE',\n 'DEPRECATED',\n 'DISABLED',\n]);\n\n/**\n * Implementation type enum.\n */\nexport const ImplementationTypeEnum = defineEnum('ImplementationType', [\n 'http',\n 'function',\n 'workflow',\n]);\n"],"mappings":";;;;;;AAKA,MAAa,mBAAmBA,GAAW,gBAAgB;CACzD;CACA;CACA;CACA;CACA;CACA;CACD,CAAC;;;;AAKF,MAAa,iBAAiBA,GAAW,cAAc;CACrD;CACA;CACA;CACA;CACD,CAAC;;;;AAKF,MAAa,yBAAyBA,GAAW,sBAAsB;CACrE;CACA;CACA;CACD,CAAC"}
|
|
@@ -1,102 +1,103 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_contracts11 from "@lssm/lib.contracts";
|
|
2
|
+
import * as _lssm_lib_schema334 from "@lssm/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/tool/tool.event.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* ToolCreatedEvent - A new tool was created.
|
|
7
7
|
*/
|
|
8
|
-
declare const ToolCreatedEvent:
|
|
8
|
+
declare const ToolCreatedEvent: _lssm_lib_contracts11.EventSpec<_lssm_lib_schema334.SchemaModel<{
|
|
9
9
|
id: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
organizationId: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
name: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
slug: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
category: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
27
27
|
isOptional: false;
|
|
28
28
|
};
|
|
29
29
|
implementationType: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
31
31
|
isOptional: false;
|
|
32
32
|
};
|
|
33
33
|
createdById: {
|
|
34
|
-
type:
|
|
34
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
35
35
|
isOptional: true;
|
|
36
36
|
};
|
|
37
37
|
createdAt: {
|
|
38
|
-
type:
|
|
38
|
+
type: _lssm_lib_schema334.FieldType<Date, string>;
|
|
39
39
|
isOptional: false;
|
|
40
40
|
};
|
|
41
41
|
}>>;
|
|
42
42
|
/**
|
|
43
43
|
* ToolUpdatedEvent - A tool was updated.
|
|
44
44
|
*/
|
|
45
|
-
declare const ToolUpdatedEvent:
|
|
45
|
+
declare const ToolUpdatedEvent: _lssm_lib_contracts11.EventSpec<_lssm_lib_schema334.SchemaModel<{
|
|
46
46
|
id: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
organizationId: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
name: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
status: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
updatedFields: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
64
64
|
isArray: true;
|
|
65
65
|
isOptional: false;
|
|
66
66
|
};
|
|
67
67
|
updatedAt: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema334.FieldType<Date, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
}>>;
|
|
72
72
|
/**
|
|
73
73
|
* ToolStatusChangedEvent - A tool's status was changed.
|
|
74
74
|
*/
|
|
75
|
-
declare const ToolStatusChangedEvent:
|
|
75
|
+
declare const ToolStatusChangedEvent: _lssm_lib_contracts11.EventSpec<_lssm_lib_schema334.SchemaModel<{
|
|
76
76
|
id: {
|
|
77
|
-
type:
|
|
77
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
78
78
|
isOptional: false;
|
|
79
79
|
};
|
|
80
80
|
organizationId: {
|
|
81
|
-
type:
|
|
81
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
82
82
|
isOptional: false;
|
|
83
83
|
};
|
|
84
84
|
name: {
|
|
85
|
-
type:
|
|
85
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
86
86
|
isOptional: false;
|
|
87
87
|
};
|
|
88
88
|
previousStatus: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
newStatus: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema334.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
changedAt: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema334.FieldType<Date, string>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
}>>;
|
|
101
101
|
//#endregion
|
|
102
|
-
export { ToolCreatedEvent, ToolStatusChangedEvent, ToolUpdatedEvent };
|
|
102
|
+
export { ToolCreatedEvent, ToolStatusChangedEvent, ToolUpdatedEvent };
|
|
103
|
+
//# sourceMappingURL=tool.event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.event.d.ts","names":[],"sources":["../../src/tool/tool.event.ts"],"sourcesContent":[],"mappings":";;;;;;;cA8Ba,kBAAgB,qBAAA,CAAA,8BAAA;EAAhB,EAAA,EAAA;IAKX,IAAA,EAAA,mBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;qBAL2B;EAAA,CAAA;EAAA,IAAA,EAAA;IAiChB,IAAA,+BAKX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;uCAL2B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAgChB,WAAA,EAAA;IAMX,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;cAtCW,kBAAgB,qBAAA,CAAA,8BAAA;;UAK3B,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2BW,wBAAsB,qBAAA,CAAA,8BAAA;;UAMjC,mBAAA,CAAA"}
|