@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,34 +1,32 @@
|
|
|
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 { AgentStatusEnum, ModelProviderEnum, ToolChoiceEnum } from "./agent.enum.js";
|
|
5
3
|
|
|
6
4
|
//#region src/agent/agent.schema.ts
|
|
7
5
|
/**
|
|
8
6
|
* AI agent configuration schema.
|
|
9
7
|
*/
|
|
10
|
-
const AgentModel =
|
|
8
|
+
const AgentModel = K5({
|
|
11
9
|
name: "Agent",
|
|
12
10
|
description: "AI agent configuration",
|
|
13
11
|
fields: {
|
|
14
12
|
id: {
|
|
15
|
-
type:
|
|
13
|
+
type: E5.String_unsecure(),
|
|
16
14
|
isOptional: false
|
|
17
15
|
},
|
|
18
16
|
organizationId: {
|
|
19
|
-
type:
|
|
17
|
+
type: E5.String_unsecure(),
|
|
20
18
|
isOptional: false
|
|
21
19
|
},
|
|
22
20
|
name: {
|
|
23
|
-
type:
|
|
21
|
+
type: E5.NonEmptyString(),
|
|
24
22
|
isOptional: false
|
|
25
23
|
},
|
|
26
24
|
slug: {
|
|
27
|
-
type:
|
|
25
|
+
type: E5.String_unsecure(),
|
|
28
26
|
isOptional: false
|
|
29
27
|
},
|
|
30
28
|
description: {
|
|
31
|
-
type:
|
|
29
|
+
type: E5.String_unsecure(),
|
|
32
30
|
isOptional: true
|
|
33
31
|
},
|
|
34
32
|
status: {
|
|
@@ -40,23 +38,23 @@ const AgentModel = defineSchemaModel({
|
|
|
40
38
|
isOptional: false
|
|
41
39
|
},
|
|
42
40
|
modelName: {
|
|
43
|
-
type:
|
|
41
|
+
type: E5.NonEmptyString(),
|
|
44
42
|
isOptional: false
|
|
45
43
|
},
|
|
46
44
|
modelConfig: {
|
|
47
|
-
type:
|
|
45
|
+
type: E5.JSONObject(),
|
|
48
46
|
isOptional: true
|
|
49
47
|
},
|
|
50
48
|
systemPrompt: {
|
|
51
|
-
type:
|
|
49
|
+
type: E5.String_unsecure(),
|
|
52
50
|
isOptional: false
|
|
53
51
|
},
|
|
54
52
|
userPromptTemplate: {
|
|
55
|
-
type:
|
|
53
|
+
type: E5.String_unsecure(),
|
|
56
54
|
isOptional: true
|
|
57
55
|
},
|
|
58
56
|
toolIds: {
|
|
59
|
-
type:
|
|
57
|
+
type: E5.String_unsecure(),
|
|
60
58
|
isArray: true,
|
|
61
59
|
isOptional: true
|
|
62
60
|
},
|
|
@@ -66,34 +64,34 @@ const AgentModel = defineSchemaModel({
|
|
|
66
64
|
defaultValue: "auto"
|
|
67
65
|
},
|
|
68
66
|
maxIterations: {
|
|
69
|
-
type:
|
|
67
|
+
type: E5.Int_unsecure(),
|
|
70
68
|
isOptional: false,
|
|
71
69
|
defaultValue: 10
|
|
72
70
|
},
|
|
73
71
|
maxTokensPerRun: {
|
|
74
|
-
type:
|
|
72
|
+
type: E5.Int_unsecure(),
|
|
75
73
|
isOptional: true
|
|
76
74
|
},
|
|
77
75
|
timeoutMs: {
|
|
78
|
-
type:
|
|
76
|
+
type: E5.Int_unsecure(),
|
|
79
77
|
isOptional: false,
|
|
80
78
|
defaultValue: 12e4
|
|
81
79
|
},
|
|
82
80
|
version: {
|
|
83
|
-
type:
|
|
81
|
+
type: E5.NonEmptyString(),
|
|
84
82
|
isOptional: false
|
|
85
83
|
},
|
|
86
84
|
tags: {
|
|
87
|
-
type:
|
|
85
|
+
type: E5.String_unsecure(),
|
|
88
86
|
isArray: true,
|
|
89
87
|
isOptional: true
|
|
90
88
|
},
|
|
91
89
|
createdAt: {
|
|
92
|
-
type:
|
|
90
|
+
type: E5.DateTime(),
|
|
93
91
|
isOptional: false
|
|
94
92
|
},
|
|
95
93
|
updatedAt: {
|
|
96
|
-
type:
|
|
94
|
+
type: E5.DateTime(),
|
|
97
95
|
isOptional: false
|
|
98
96
|
}
|
|
99
97
|
}
|
|
@@ -101,24 +99,24 @@ const AgentModel = defineSchemaModel({
|
|
|
101
99
|
/**
|
|
102
100
|
* Summary of an agent for list views.
|
|
103
101
|
*/
|
|
104
|
-
const AgentSummaryModel =
|
|
102
|
+
const AgentSummaryModel = K5({
|
|
105
103
|
name: "AgentSummary",
|
|
106
104
|
description: "Summary of an agent for list views",
|
|
107
105
|
fields: {
|
|
108
106
|
id: {
|
|
109
|
-
type:
|
|
107
|
+
type: E5.String_unsecure(),
|
|
110
108
|
isOptional: false
|
|
111
109
|
},
|
|
112
110
|
name: {
|
|
113
|
-
type:
|
|
111
|
+
type: E5.NonEmptyString(),
|
|
114
112
|
isOptional: false
|
|
115
113
|
},
|
|
116
114
|
slug: {
|
|
117
|
-
type:
|
|
115
|
+
type: E5.String_unsecure(),
|
|
118
116
|
isOptional: false
|
|
119
117
|
},
|
|
120
118
|
description: {
|
|
121
|
-
type:
|
|
119
|
+
type: E5.String_unsecure(),
|
|
122
120
|
isOptional: true
|
|
123
121
|
},
|
|
124
122
|
status: {
|
|
@@ -130,15 +128,15 @@ const AgentSummaryModel = defineSchemaModel({
|
|
|
130
128
|
isOptional: false
|
|
131
129
|
},
|
|
132
130
|
modelName: {
|
|
133
|
-
type:
|
|
131
|
+
type: E5.NonEmptyString(),
|
|
134
132
|
isOptional: false
|
|
135
133
|
},
|
|
136
134
|
version: {
|
|
137
|
-
type:
|
|
135
|
+
type: E5.NonEmptyString(),
|
|
138
136
|
isOptional: false
|
|
139
137
|
},
|
|
140
138
|
createdAt: {
|
|
141
|
-
type:
|
|
139
|
+
type: E5.DateTime(),
|
|
142
140
|
isOptional: false
|
|
143
141
|
}
|
|
144
142
|
}
|
|
@@ -146,28 +144,28 @@ const AgentSummaryModel = defineSchemaModel({
|
|
|
146
144
|
/**
|
|
147
145
|
* Tool reference in agent context.
|
|
148
146
|
*/
|
|
149
|
-
const AgentToolRefModel =
|
|
147
|
+
const AgentToolRefModel = K5({
|
|
150
148
|
name: "AgentToolRef",
|
|
151
149
|
description: "Tool reference in agent context",
|
|
152
150
|
fields: {
|
|
153
151
|
id: {
|
|
154
|
-
type:
|
|
152
|
+
type: E5.String_unsecure(),
|
|
155
153
|
isOptional: false
|
|
156
154
|
},
|
|
157
155
|
name: {
|
|
158
|
-
type:
|
|
156
|
+
type: E5.NonEmptyString(),
|
|
159
157
|
isOptional: false
|
|
160
158
|
},
|
|
161
159
|
slug: {
|
|
162
|
-
type:
|
|
160
|
+
type: E5.String_unsecure(),
|
|
163
161
|
isOptional: false
|
|
164
162
|
},
|
|
165
163
|
description: {
|
|
166
|
-
type:
|
|
164
|
+
type: E5.String_unsecure(),
|
|
167
165
|
isOptional: false
|
|
168
166
|
},
|
|
169
167
|
category: {
|
|
170
|
-
type:
|
|
168
|
+
type: E5.String_unsecure(),
|
|
171
169
|
isOptional: false
|
|
172
170
|
}
|
|
173
171
|
}
|
|
@@ -175,28 +173,28 @@ const AgentToolRefModel = defineSchemaModel({
|
|
|
175
173
|
/**
|
|
176
174
|
* Agent with associated tools.
|
|
177
175
|
*/
|
|
178
|
-
const AgentWithToolsModel =
|
|
176
|
+
const AgentWithToolsModel = K5({
|
|
179
177
|
name: "AgentWithTools",
|
|
180
178
|
description: "Agent with associated tools",
|
|
181
179
|
fields: {
|
|
182
180
|
id: {
|
|
183
|
-
type:
|
|
181
|
+
type: E5.String_unsecure(),
|
|
184
182
|
isOptional: false
|
|
185
183
|
},
|
|
186
184
|
organizationId: {
|
|
187
|
-
type:
|
|
185
|
+
type: E5.String_unsecure(),
|
|
188
186
|
isOptional: false
|
|
189
187
|
},
|
|
190
188
|
name: {
|
|
191
|
-
type:
|
|
189
|
+
type: E5.NonEmptyString(),
|
|
192
190
|
isOptional: false
|
|
193
191
|
},
|
|
194
192
|
slug: {
|
|
195
|
-
type:
|
|
193
|
+
type: E5.String_unsecure(),
|
|
196
194
|
isOptional: false
|
|
197
195
|
},
|
|
198
196
|
description: {
|
|
199
|
-
type:
|
|
197
|
+
type: E5.String_unsecure(),
|
|
200
198
|
isOptional: true
|
|
201
199
|
},
|
|
202
200
|
status: {
|
|
@@ -208,23 +206,23 @@ const AgentWithToolsModel = defineSchemaModel({
|
|
|
208
206
|
isOptional: false
|
|
209
207
|
},
|
|
210
208
|
modelName: {
|
|
211
|
-
type:
|
|
209
|
+
type: E5.NonEmptyString(),
|
|
212
210
|
isOptional: false
|
|
213
211
|
},
|
|
214
212
|
modelConfig: {
|
|
215
|
-
type:
|
|
213
|
+
type: E5.JSONObject(),
|
|
216
214
|
isOptional: true
|
|
217
215
|
},
|
|
218
216
|
systemPrompt: {
|
|
219
|
-
type:
|
|
217
|
+
type: E5.String_unsecure(),
|
|
220
218
|
isOptional: false
|
|
221
219
|
},
|
|
222
220
|
userPromptTemplate: {
|
|
223
|
-
type:
|
|
221
|
+
type: E5.String_unsecure(),
|
|
224
222
|
isOptional: true
|
|
225
223
|
},
|
|
226
224
|
toolIds: {
|
|
227
|
-
type:
|
|
225
|
+
type: E5.String_unsecure(),
|
|
228
226
|
isArray: true,
|
|
229
227
|
isOptional: true
|
|
230
228
|
},
|
|
@@ -233,32 +231,32 @@ const AgentWithToolsModel = defineSchemaModel({
|
|
|
233
231
|
isOptional: false
|
|
234
232
|
},
|
|
235
233
|
maxIterations: {
|
|
236
|
-
type:
|
|
234
|
+
type: E5.Int_unsecure(),
|
|
237
235
|
isOptional: false
|
|
238
236
|
},
|
|
239
237
|
maxTokensPerRun: {
|
|
240
|
-
type:
|
|
238
|
+
type: E5.Int_unsecure(),
|
|
241
239
|
isOptional: true
|
|
242
240
|
},
|
|
243
241
|
timeoutMs: {
|
|
244
|
-
type:
|
|
242
|
+
type: E5.Int_unsecure(),
|
|
245
243
|
isOptional: false
|
|
246
244
|
},
|
|
247
245
|
version: {
|
|
248
|
-
type:
|
|
246
|
+
type: E5.NonEmptyString(),
|
|
249
247
|
isOptional: false
|
|
250
248
|
},
|
|
251
249
|
tags: {
|
|
252
|
-
type:
|
|
250
|
+
type: E5.String_unsecure(),
|
|
253
251
|
isArray: true,
|
|
254
252
|
isOptional: true
|
|
255
253
|
},
|
|
256
254
|
createdAt: {
|
|
257
|
-
type:
|
|
255
|
+
type: E5.DateTime(),
|
|
258
256
|
isOptional: false
|
|
259
257
|
},
|
|
260
258
|
updatedAt: {
|
|
261
|
-
type:
|
|
259
|
+
type: E5.DateTime(),
|
|
262
260
|
isOptional: false
|
|
263
261
|
},
|
|
264
262
|
tools: {
|
|
@@ -271,24 +269,24 @@ const AgentWithToolsModel = defineSchemaModel({
|
|
|
271
269
|
/**
|
|
272
270
|
* Input for creating an agent.
|
|
273
271
|
*/
|
|
274
|
-
const CreateAgentInputModel =
|
|
272
|
+
const CreateAgentInputModel = K5({
|
|
275
273
|
name: "CreateAgentInput",
|
|
276
274
|
description: "Input for creating an agent",
|
|
277
275
|
fields: {
|
|
278
276
|
organizationId: {
|
|
279
|
-
type:
|
|
277
|
+
type: E5.String_unsecure(),
|
|
280
278
|
isOptional: false
|
|
281
279
|
},
|
|
282
280
|
name: {
|
|
283
|
-
type:
|
|
281
|
+
type: E5.NonEmptyString(),
|
|
284
282
|
isOptional: false
|
|
285
283
|
},
|
|
286
284
|
slug: {
|
|
287
|
-
type:
|
|
285
|
+
type: E5.String_unsecure(),
|
|
288
286
|
isOptional: false
|
|
289
287
|
},
|
|
290
288
|
description: {
|
|
291
|
-
type:
|
|
289
|
+
type: E5.String_unsecure(),
|
|
292
290
|
isOptional: true
|
|
293
291
|
},
|
|
294
292
|
modelProvider: {
|
|
@@ -296,23 +294,23 @@ const CreateAgentInputModel = defineSchemaModel({
|
|
|
296
294
|
isOptional: false
|
|
297
295
|
},
|
|
298
296
|
modelName: {
|
|
299
|
-
type:
|
|
297
|
+
type: E5.NonEmptyString(),
|
|
300
298
|
isOptional: false
|
|
301
299
|
},
|
|
302
300
|
modelConfig: {
|
|
303
|
-
type:
|
|
301
|
+
type: E5.JSONObject(),
|
|
304
302
|
isOptional: true
|
|
305
303
|
},
|
|
306
304
|
systemPrompt: {
|
|
307
|
-
type:
|
|
305
|
+
type: E5.String_unsecure(),
|
|
308
306
|
isOptional: false
|
|
309
307
|
},
|
|
310
308
|
userPromptTemplate: {
|
|
311
|
-
type:
|
|
309
|
+
type: E5.String_unsecure(),
|
|
312
310
|
isOptional: true
|
|
313
311
|
},
|
|
314
312
|
toolIds: {
|
|
315
|
-
type:
|
|
313
|
+
type: E5.String_unsecure(),
|
|
316
314
|
isArray: true,
|
|
317
315
|
isOptional: true
|
|
318
316
|
},
|
|
@@ -321,19 +319,19 @@ const CreateAgentInputModel = defineSchemaModel({
|
|
|
321
319
|
isOptional: true
|
|
322
320
|
},
|
|
323
321
|
maxIterations: {
|
|
324
|
-
type:
|
|
322
|
+
type: E5.Int_unsecure(),
|
|
325
323
|
isOptional: true
|
|
326
324
|
},
|
|
327
325
|
maxTokensPerRun: {
|
|
328
|
-
type:
|
|
326
|
+
type: E5.Int_unsecure(),
|
|
329
327
|
isOptional: true
|
|
330
328
|
},
|
|
331
329
|
timeoutMs: {
|
|
332
|
-
type:
|
|
330
|
+
type: E5.Int_unsecure(),
|
|
333
331
|
isOptional: true
|
|
334
332
|
},
|
|
335
333
|
tags: {
|
|
336
|
-
type:
|
|
334
|
+
type: E5.String_unsecure(),
|
|
337
335
|
isArray: true,
|
|
338
336
|
isOptional: true
|
|
339
337
|
}
|
|
@@ -342,20 +340,20 @@ const CreateAgentInputModel = defineSchemaModel({
|
|
|
342
340
|
/**
|
|
343
341
|
* Input for updating an agent.
|
|
344
342
|
*/
|
|
345
|
-
const UpdateAgentInputModel =
|
|
343
|
+
const UpdateAgentInputModel = K5({
|
|
346
344
|
name: "UpdateAgentInput",
|
|
347
345
|
description: "Input for updating an agent",
|
|
348
346
|
fields: {
|
|
349
347
|
agentId: {
|
|
350
|
-
type:
|
|
348
|
+
type: E5.String_unsecure(),
|
|
351
349
|
isOptional: false
|
|
352
350
|
},
|
|
353
351
|
name: {
|
|
354
|
-
type:
|
|
352
|
+
type: E5.NonEmptyString(),
|
|
355
353
|
isOptional: true
|
|
356
354
|
},
|
|
357
355
|
description: {
|
|
358
|
-
type:
|
|
356
|
+
type: E5.String_unsecure(),
|
|
359
357
|
isOptional: true
|
|
360
358
|
},
|
|
361
359
|
status: {
|
|
@@ -363,19 +361,19 @@ const UpdateAgentInputModel = defineSchemaModel({
|
|
|
363
361
|
isOptional: true
|
|
364
362
|
},
|
|
365
363
|
modelConfig: {
|
|
366
|
-
type:
|
|
364
|
+
type: E5.JSONObject(),
|
|
367
365
|
isOptional: true
|
|
368
366
|
},
|
|
369
367
|
systemPrompt: {
|
|
370
|
-
type:
|
|
368
|
+
type: E5.String_unsecure(),
|
|
371
369
|
isOptional: true
|
|
372
370
|
},
|
|
373
371
|
userPromptTemplate: {
|
|
374
|
-
type:
|
|
372
|
+
type: E5.String_unsecure(),
|
|
375
373
|
isOptional: true
|
|
376
374
|
},
|
|
377
375
|
toolIds: {
|
|
378
|
-
type:
|
|
376
|
+
type: E5.String_unsecure(),
|
|
379
377
|
isArray: true,
|
|
380
378
|
isOptional: true
|
|
381
379
|
},
|
|
@@ -384,19 +382,19 @@ const UpdateAgentInputModel = defineSchemaModel({
|
|
|
384
382
|
isOptional: true
|
|
385
383
|
},
|
|
386
384
|
maxIterations: {
|
|
387
|
-
type:
|
|
385
|
+
type: E5.Int_unsecure(),
|
|
388
386
|
isOptional: true
|
|
389
387
|
},
|
|
390
388
|
maxTokensPerRun: {
|
|
391
|
-
type:
|
|
389
|
+
type: E5.Int_unsecure(),
|
|
392
390
|
isOptional: true
|
|
393
391
|
},
|
|
394
392
|
timeoutMs: {
|
|
395
|
-
type:
|
|
393
|
+
type: E5.Int_unsecure(),
|
|
396
394
|
isOptional: true
|
|
397
395
|
},
|
|
398
396
|
tags: {
|
|
399
|
-
type:
|
|
397
|
+
type: E5.String_unsecure(),
|
|
400
398
|
isArray: true,
|
|
401
399
|
isOptional: true
|
|
402
400
|
}
|
|
@@ -404,4 +402,5 @@ const UpdateAgentInputModel = defineSchemaModel({
|
|
|
404
402
|
});
|
|
405
403
|
|
|
406
404
|
//#endregion
|
|
407
|
-
export { AgentModel, AgentSummaryModel, AgentToolRefModel, AgentWithToolsModel, CreateAgentInputModel, UpdateAgentInputModel };
|
|
405
|
+
export { AgentModel, AgentSummaryModel, AgentToolRefModel, AgentWithToolsModel, CreateAgentInputModel, UpdateAgentInputModel };
|
|
406
|
+
//# sourceMappingURL=agent.schema.js.map
|
|
@@ -0,0 +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,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AAC"}
|
package/dist/agent.feature.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.feature.d.ts","names":[],"sources":["../src/agent.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAWa,qBAAqB"}
|
package/dist/agent.feature.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.feature.js","names":["AgentConsoleFeature: FeatureModuleSpec"],"sources":["../src/agent.feature.ts"],"sourcesContent":["/**\n * Agent Console Feature Module Specification\n *\n * Defines the feature module for agent orchestration capabilities.\n */\nimport type { FeatureModuleSpec } from '@lssm/lib.contracts';\n\n/**\n * Agent Console feature module that bundles all agent, tool, and run\n * operations, events, and presentations into an installable feature.\n */\nexport const AgentConsoleFeature: FeatureModuleSpec = {\n meta: {\n key: 'agent-console',\n title: 'AI Agent Console',\n description: 'AI agent orchestration with tools, runs, and logs management',\n domain: 'ai-ops',\n owners: ['@agent-console-team'],\n tags: ['ai', 'agents', 'orchestration'],\n stability: 'experimental',\n },\n\n // All contract operations included in this feature\n operations: [\n // Agent operations\n { name: 'agent.agent.create', version: 1 },\n { name: 'agent.agent.update', version: 1 },\n { name: 'agent.agent.get', version: 1 },\n { name: 'agent.agent.list', version: 1 },\n { name: 'agent.agent.assignTool', version: 1 },\n { name: 'agent.agent.removeTool', version: 1 },\n\n // Tool operations\n { name: 'agent.tool.create', version: 1 },\n { name: 'agent.tool.update', version: 1 },\n { name: 'agent.tool.get', version: 1 },\n { name: 'agent.tool.list', version: 1 },\n { name: 'agent.tool.test', version: 1 },\n\n // Run operations\n { name: 'agent.run.execute', version: 1 },\n { name: 'agent.run.cancel', version: 1 },\n { name: 'agent.run.get', version: 1 },\n { name: 'agent.run.list', version: 1 },\n { name: 'agent.run.getSteps', version: 1 },\n { name: 'agent.run.getLogs', version: 1 },\n { name: 'agent.run.getMetrics', version: 1 },\n ],\n\n // Events emitted by this feature\n events: [\n // Agent events\n { name: 'agent.agent.created', version: 1 },\n { name: 'agent.agent.updated', version: 1 },\n { name: 'agent.agent.toolAssigned', version: 1 },\n { name: 'agent.agent.toolRemoved', version: 1 },\n\n // Tool events\n { name: 'agent.tool.created', version: 1 },\n { name: 'agent.tool.updated', version: 1 },\n { name: 'agent.tool.statusChanged', version: 1 },\n\n // Run events\n { name: 'agent.run.started', version: 1 },\n { name: 'agent.run.completed', version: 1 },\n { name: 'agent.run.failed', version: 1 },\n { name: 'agent.run.cancelled', version: 1 },\n { name: 'agent.run.toolInvoked', version: 1 },\n { name: 'agent.run.toolCompleted', version: 1 },\n { name: 'agent.run.messageGenerated', version: 1 },\n ],\n\n // Presentations associated with this feature\n presentations: [\n { name: 'agent-console.dashboard', version: 1 },\n { name: 'agent-console.agent.list', version: 1 },\n { name: 'agent-console.agent.detail', version: 1 },\n { name: 'agent-console.run.list', version: 1 },\n { name: 'agent-console.run.detail', version: 1 },\n { name: 'agent-console.tool.list', version: 1 },\n { name: 'agent-console.tool.detail', version: 1 },\n ],\n\n // Link operations to their primary presentations\n opToPresentation: [\n {\n op: { name: 'agent.agent.list', version: 1 },\n pres: { name: 'agent-console.agent.list', version: 1 },\n },\n {\n op: { name: 'agent.agent.get', version: 1 },\n pres: { name: 'agent-console.agent.detail', version: 1 },\n },\n {\n op: { name: 'agent.run.list', version: 1 },\n pres: { name: 'agent-console.run.list', version: 1 },\n },\n {\n op: { name: 'agent.run.get', version: 1 },\n pres: { name: 'agent-console.run.detail', version: 1 },\n },\n {\n op: { name: 'agent.tool.list', version: 1 },\n pres: { name: 'agent-console.tool.list', version: 1 },\n },\n {\n op: { name: 'agent.tool.get', version: 1 },\n pres: { name: 'agent-console.tool.detail', version: 1 },\n },\n ],\n\n // Target requirements for multi-surface rendering\n presentationsTargets: [\n {\n name: 'agent-console.dashboard',\n version: 1,\n targets: ['react', 'markdown'],\n },\n {\n name: 'agent-console.agent.list',\n version: 1,\n targets: ['react', 'markdown', 'application/json'],\n },\n {\n name: 'agent-console.run.list',\n version: 1,\n targets: ['react', 'markdown', 'application/json'],\n },\n {\n name: 'agent-console.tool.list',\n version: 1,\n targets: ['react', 'markdown', 'application/json'],\n },\n ],\n\n // Capability requirements\n capabilities: {\n requires: [\n { key: 'identity', version: 1 },\n { key: 'audit-trail', version: 1 },\n { key: 'jobs', version: 1 },\n ],\n },\n};\n"],"mappings":";;;;;AAWA,MAAaA,sBAAyC;CACpD,MAAM;EACJ,KAAK;EACL,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM;GAAC;GAAM;GAAU;GAAgB;EACvC,WAAW;EACZ;CAGD,YAAY;EAEV;GAAE,MAAM;GAAsB,SAAS;GAAG;EAC1C;GAAE,MAAM;GAAsB,SAAS;GAAG;EAC1C;GAAE,MAAM;GAAmB,SAAS;GAAG;EACvC;GAAE,MAAM;GAAoB,SAAS;GAAG;EACxC;GAAE,MAAM;GAA0B,SAAS;GAAG;EAC9C;GAAE,MAAM;GAA0B,SAAS;GAAG;EAG9C;GAAE,MAAM;GAAqB,SAAS;GAAG;EACzC;GAAE,MAAM;GAAqB,SAAS;GAAG;EACzC;GAAE,MAAM;GAAkB,SAAS;GAAG;EACtC;GAAE,MAAM;GAAmB,SAAS;GAAG;EACvC;GAAE,MAAM;GAAmB,SAAS;GAAG;EAGvC;GAAE,MAAM;GAAqB,SAAS;GAAG;EACzC;GAAE,MAAM;GAAoB,SAAS;GAAG;EACxC;GAAE,MAAM;GAAiB,SAAS;GAAG;EACrC;GAAE,MAAM;GAAkB,SAAS;GAAG;EACtC;GAAE,MAAM;GAAsB,SAAS;GAAG;EAC1C;GAAE,MAAM;GAAqB,SAAS;GAAG;EACzC;GAAE,MAAM;GAAwB,SAAS;GAAG;EAC7C;CAGD,QAAQ;EAEN;GAAE,MAAM;GAAuB,SAAS;GAAG;EAC3C;GAAE,MAAM;GAAuB,SAAS;GAAG;EAC3C;GAAE,MAAM;GAA4B,SAAS;GAAG;EAChD;GAAE,MAAM;GAA2B,S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C1C,MAAM;IAAE,MAAM;IAA6B,SAAS;IAAG;GACxD;EACF;CAGD,sBAAsB;EACpB;GACE,MAAM;GACN,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,MAAM;GACN,SAAS;GACT,SAAS;IAAC;IAAS;IAAY;IAAmB;GACnD;EACD;GACE,MAAM;GACN,SAAS;GACT,SAAS;IAAC;IAAS;IAAY;IAAmB;GACnD;EACD;GACE,MAAM;GACN,SAAS;GACT,SAAS;IAAC;IAAS;IAAY;IAAmB;GACnD;EACF;CAGD,cAAc,EACZ,UAAU;EACR;GAAE,KAAK;GAAY,SAAS;GAAG;EAC/B;GAAE,KAAK;GAAe,SAAS;GAAG;EAClC;GAAE,KAAK;GAAQ,SAAS;GAAG;EAC5B,EACF;CACF"}
|
|
@@ -0,0 +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":";;;;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/example.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EA+BI,EAAA,eAAA"}
|
package/dist/example.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'agent-console',\n title: 'Agent Console',\n summary:\n 'AI agent ops console: tools, agents, runs, logs, and metrics (spec-first, regenerable).',\n tags: ['ai', 'agents', 'tools', 'orchestration'],\n kind: 'template',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.agent-console.reference',\n goalDocId: 'docs.examples.agent-console.goal',\n usageDocId: 'docs.examples.agent-console.usage',\n constraintsDocId: 'docs.examples.agent-console.constraints',\n },\n entrypoints: {\n packageName: '@lssm/example.agent-console',\n feature: './feature',\n contracts: './contracts',\n presentations: './presentations',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: {\n enabled: true,\n modes: ['playground', 'specs', 'builder', 'markdown', 'evolution'],\n },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n} as const;\n\nexport default example;\n"],"mappings":";AAAA,MAAM,UAAU;CACd,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;EAAC;EAAM;EAAU;EAAS;EAAgB;CAChD,MAAM;CACN,YAAY;CACZ,MAAM;EACJ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EACnB;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,eAAe;EACf,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GACP,SAAS;GACT,OAAO;IAAC;IAAc;IAAS;IAAW;IAAY;IAAY;GACnE;EACD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openbanking.js","names":[],"sources":["../../../../../../../libs/contracts/dist/capabilities/openbanking.js"],"sourcesContent":["import { StabilityEnum } from \"../ownership.js\";\n\n//#region src/capabilities/openbanking.ts\nconst OWNERS = [\"platform.finance\"];\nconst TAGS = [\"open-banking\", \"finance\"];\nconst openBankingAccountsReadCapability = {\n\tmeta: {\n\t\tkey: \"openbanking.accounts.read\",\n\t\tversion: 1,\n\t\tkind: \"integration\",\n\t\ttitle: \"Open Banking Accounts (Read)\",\n\t\tdescription: \"Provides read-only access to linked bank accounts, including account summaries and metadata.\",\n\t\tdomain: \"finance\",\n\t\towners: [...OWNERS],\n\t\ttags: [...TAGS],\n\t\tstability: StabilityEnum.Experimental\n\t},\n\tprovides: [\n\t\t{\n\t\t\tsurface: \"operation\",\n\t\t\tname: \"openbanking.accounts.list\",\n\t\t\tversion: 1,\n\t\t\tdescription: \"List bank accounts linked to a Powens open banking connection.\"\n\t\t},\n\t\t{\n\t\t\tsurface: \"operation\",\n\t\t\tname: \"openbanking.accounts.get\",\n\t\t\tversion: 1,\n\t\t\tdescription: \"Retrieve the canonical bank account record for a specific account.\"\n\t\t},\n\t\t{\n\t\t\tsurface: \"operation\",\n\t\t\tname: \"openbanking.accounts.sync\",\n\t\t\tversion: 1,\n\t\t\tdescription: \"Trigger a refresh of bank account metadata from the open banking provider.\"\n\t\t}\n\t]\n};\nconst openBankingTransactionsReadCapability = {\n\tmeta: {\n\t\tkey: \"openbanking.transactions.read\",\n\t\tversion: 1,\n\t\tkind: \"integration\",\n\t\ttitle: \"Open Banking Transactions (Read)\",\n\t\tdescription: \"Enables retrieval of transaction history for linked bank accounts via open banking providers.\",\n\t\tdomain: \"finance\",\n\t\towners: [...OWNERS],\n\t\ttags: [...TAGS, \"transactions\"],\n\t\tstability: StabilityEnum.Experimental\n\t},\n\tprovides: [{\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.transactions.list\",\n\t\tversion: 1,\n\t\tdescription: \"List transactions for a given bank account with optional date filtering.\"\n\t}, {\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.transactions.sync\",\n\t\tversion: 1,\n\t\tdescription: \"Synchronise transactions from the open banking provider into the canonical ledger.\"\n\t}]\n};\nconst openBankingBalancesReadCapability = {\n\tmeta: {\n\t\tkey: \"openbanking.balances.read\",\n\t\tversion: 1,\n\t\tkind: \"integration\",\n\t\ttitle: \"Open Banking Balances (Read)\",\n\t\tdescription: \"Allows querying of current and available balances for linked bank accounts via open banking providers.\",\n\t\tdomain: \"finance\",\n\t\towners: [...OWNERS],\n\t\ttags: [...TAGS, \"balances\"],\n\t\tstability: StabilityEnum.Experimental\n\t},\n\tprovides: [{\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.balances.get\",\n\t\tversion: 1,\n\t\tdescription: \"Retrieve the latest known balances for a specified bank account.\"\n\t}, {\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.balances.refresh\",\n\t\tversion: 1,\n\t\tdescription: \"Force a balance refresh from the open banking provider.\"\n\t}]\n};\nfunction registerOpenBankingCapabilities(registry) {\n\treturn registry.register(openBankingAccountsReadCapability).register(openBankingTransactionsReadCapability).register(openBankingBalancesReadCapability);\n}\n\n//#endregion\nexport { openBankingAccountsReadCapability, openBankingBalancesReadCapability, openBankingTransactionsReadCapability, registerOpenBankingCapabilities };"],"mappings":";;;AAGA,MAAM,SAAS,CAAC,mBAAmB;AACnC,MAAM,OAAO,CAAC,gBAAgB,UAAU;AACxC,MAAM,oCAAoC;CACzC,MAAM;EACL,KAAK;EACL,SAAS;EACT,MAAM;EACN,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,GAAG,KAAK;EACf,WAAW,cAAc;EACzB;CACD,UAAU;EACT;GACC,SAAS;GACT,MAAM;GACN,SAAS;GACT,aAAa;GACb;EACD;GACC,SAAS;GACT,MAAM;GACN,SAAS;GACT,aAAa;GACb;EACD;GACC,SAAS;GACT,MAAM;GACN,SAAS;GACT,aAAa;GACb;EACD;CACD;AACD,MAAM,wCAAwC;CAC7C,MAAM;EACL,KAAK;EACL,SAAS;EACT,MAAM;EACN,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,GAAG,MAAM,eAAe;EAC/B,WAAW,cAAc;EACzB;CACD,UAAU,CAAC;EACV,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,EAAE;EACF,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,CAAC;CACF;AACD,MAAM,oCAAoC;CACzC,MAAM;EACL,KAAK;EACL,SAAS;EACT,MAAM;EACN,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,GAAG,MAAM,WAAW;EAC3B,WAAW,cAAc;EACzB;CACD,UAAU,CAAC;EACV,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,EAAE;EACF,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,CAAC;CACF"}
|
|
@@ -57,4 +57,5 @@ const ContractRegistryManifestSchema = z.object({
|
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
//#endregion
|
|
60
|
-
export { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema };
|
|
60
|
+
export { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema };
|
|
61
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","names":[],"sources":["../../../../../../../libs/contracts/dist/contract-registry/schemas.js"],"sourcesContent":["import { StabilityEnum } from \"../ownership.js\";\nimport z from \"zod\";\n\n//#region src/contract-registry/schemas.ts\nconst ContractRegistryItemTypeValues = [\n\t\"contractspec:operation\",\n\t\"contractspec:event\",\n\t\"contractspec:presentation\",\n\t\"contractspec:form\",\n\t\"contractspec:feature\",\n\t\"contractspec:workflow\",\n\t\"contractspec:template\",\n\t\"contractspec:integration\",\n\t\"contractspec:data-view\",\n\t\"contractspec:migration\",\n\t\"contractspec:telemetry\",\n\t\"contractspec:experiment\",\n\t\"contractspec:app-config\",\n\t\"contractspec:knowledge\"\n];\nconst ContractRegistryItemTypeSchema = z.enum(ContractRegistryItemTypeValues);\nconst ContractRegistryFileSchema = z.object({\n\tpath: z.string().min(1),\n\ttype: z.string().min(1),\n\tcontent: z.string().optional()\n});\nconst ContractRegistryItemSchema = z.object({\n\tname: z.string().min(1),\n\ttype: ContractRegistryItemTypeSchema,\n\tversion: z.number().int().nonnegative(),\n\ttitle: z.string().min(1),\n\tdescription: z.string().min(1),\n\tmeta: z.object({\n\t\tstability: z.enum([\n\t\t\tStabilityEnum.Idea,\n\t\t\tStabilityEnum.InCreation,\n\t\t\tStabilityEnum.Experimental,\n\t\t\tStabilityEnum.Beta,\n\t\t\tStabilityEnum.Stable,\n\t\t\tStabilityEnum.Deprecated\n\t\t]),\n\t\towners: z.array(z.string().min(1)).default([]),\n\t\ttags: z.array(z.string().min(1)).default([])\n\t}),\n\tdependencies: z.array(z.string().min(1)).optional(),\n\tregistryDependencies: z.array(z.string().min(1)).optional(),\n\tfiles: z.array(ContractRegistryFileSchema).min(1),\n\tschema: z.object({\n\t\tinput: z.unknown().optional(),\n\t\toutput: z.unknown().optional()\n\t}).optional()\n});\nconst ContractRegistryManifestSchema = z.object({\n\t$schema: z.string().min(1).optional(),\n\tname: z.string().min(1),\n\thomepage: z.string().min(1).optional(),\n\titems: z.array(ContractRegistryItemSchema)\n});\n\n//#endregion\nexport { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema, ContractRegistryManifestSchema };"],"mappings":";;;;AAoBA,MAAM,iCAAiC,EAAE,KAhBF;CACtC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,CAC4E;AAC7E,MAAM,6BAA6B,EAAE,OAAO;CAC3C,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,CAAC;AACF,MAAM,6BAA6B,EAAE,OAAO;CAC3C,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,MAAM;CACN,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,aAAa;CACvC,OAAO,EAAE,QAAQ,CAAC,IAAI,EAAE;CACxB,aAAa,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC9B,MAAM,EAAE,OAAO;EACd,WAAW,EAAE,KAAK;GACjB,cAAc;GACd,cAAc;GACd,cAAc;GACd,cAAc;GACd,cAAc;GACd,cAAc;GACd,CAAC;EACF,Q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