@lssm/example.agent-console 0.0.0-canary-20251217083314 → 1.41.0
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.log +46 -48
- package/dist/agent/agent.contracts.js +1 -336
- package/dist/agent/agent.entity.js +1 -136
- package/dist/agent/agent.enum.js +1 -34
- package/dist/agent/agent.event.js +1 -183
- package/dist/agent/agent.handler.js +1 -83
- package/dist/agent/agent.presentation.js +1 -75
- package/dist/agent/agent.schema.js +1 -407
- package/dist/agent/index.js +1 -9
- package/dist/agent.feature.js +1 -295
- package/dist/docs/agent-console.docblock.js +5 -69
- package/dist/docs/index.js +1 -1
- package/dist/example.js +1 -50
- package/dist/handlers/index.js +1 -5
- package/dist/index.js +1 -32
- package/dist/presentations/index.js +1 -5
- package/dist/run/index.js +1 -9
- package/dist/run/run.contracts.js +1 -469
- package/dist/run/run.entity.js +1 -205
- package/dist/run/run.enum.js +1 -45
- package/dist/run/run.event.js +1 -389
- package/dist/run/run.handler.js +1 -82
- package/dist/run/run.presentation.js +1 -55
- package/dist/run/run.schema.js +1 -339
- package/dist/shared/index.js +1 -5
- package/dist/shared/mock-agents.js +1 -93
- package/dist/shared/mock-runs.js +1 -117
- package/dist/shared/mock-tools.js +1 -180
- package/dist/tool/index.js +1 -9
- package/dist/tool/tool.contracts.js +1 -288
- package/dist/tool/tool.entity.js +1 -105
- package/dist/tool/tool.enum.js +1 -35
- package/dist/tool/tool.event.js +1 -145
- package/dist/tool/tool.handler.js +1 -86
- package/dist/tool/tool.presentation.js +1 -55
- package/dist/tool/tool.schema.js +1 -237
- package/package.json +43 -45
- package/tsconfig.tsbuildinfo +1 -1
- package/.turbo/turbo-build$colon$bundle.log +0 -272
- package/CHANGELOG.md +0 -16
- package/dist/agent/agent.contracts.d.ts +0 -504
- package/dist/agent/agent.entity.d.ts +0 -54
- package/dist/agent/agent.enum.d.ts +0 -17
- package/dist/agent/agent.event.d.ts +0 -127
- package/dist/agent/agent.handler.d.ts +0 -99
- package/dist/agent/agent.presentation.d.ts +0 -18
- package/dist/agent/agent.schema.d.ts +0 -400
- package/dist/agent/index.d.ts +0 -8
- package/dist/agent.feature.d.ts +0 -11
- package/dist/docs/agent-console.docblock.d.ts +0 -1
- package/dist/docs/index.d.ts +0 -1
- package/dist/example.d.ts +0 -39
- package/dist/handlers/index.d.ts +0 -4
- package/dist/index.d.ts +0 -27
- package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -88
- package/dist/libs/contracts/dist/client/index.js +0 -5
- package/dist/libs/contracts/dist/client/react/feature-render.js +0 -2
- package/dist/libs/contracts/dist/client/react/form-render.js +0 -4
- package/dist/libs/contracts/dist/client/react/index.js +0 -4
- package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -60
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/index.js +0 -29
- package/dist/libs/contracts/dist/docs/presentations.js +0 -71
- package/dist/libs/contracts/dist/docs/registry.js +0 -44
- 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/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
- package/dist/libs/contracts/dist/events.js +0 -10
- package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
- package/dist/libs/contracts/dist/index.js +0 -71
- package/dist/libs/contracts/dist/install.js +0 -2
- package/dist/libs/contracts/dist/integrations/contracts.js +0 -377
- package/dist/libs/contracts/dist/integrations/index.js +0 -18
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -242
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -13
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -52
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -75
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -87
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -66
- package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -68
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -68
- package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -116
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -73
- package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -83
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -61
- package/dist/libs/contracts/dist/jsonschema.js +0 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js +0 -306
- package/dist/libs/contracts/dist/knowledge/index.js +0 -7
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -34
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -34
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -37
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
- package/dist/libs/contracts/dist/llm/exporters.js +0 -19
- package/dist/libs/contracts/dist/llm/index.js +0 -2
- package/dist/libs/contracts/dist/llm/prompts.js +0 -1
- package/dist/libs/contracts/dist/onboarding-base.js +0 -196
- package/dist/libs/contracts/dist/openapi.js +0 -1
- package/dist/libs/contracts/dist/ownership.js +0 -21
- package/dist/libs/contracts/dist/presentations.js +0 -1
- package/dist/libs/contracts/dist/presentations.v2.js +0 -11
- package/dist/libs/contracts/dist/prompt.js +0 -1
- package/dist/libs/contracts/dist/promptRegistry.js +0 -1
- package/dist/libs/contracts/dist/regenerator/index.js +0 -1
- package/dist/libs/contracts/dist/regenerator/service.js +0 -6
- package/dist/libs/contracts/dist/registry.js +0 -2
- package/dist/libs/contracts/dist/resources.js +0 -1
- 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/contracts/dist/schema/dist/index.js +0 -6
- package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
- package/dist/libs/contracts/dist/server/index.js +0 -8
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -2
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
- package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
- package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
- package/dist/libs/contracts/dist/server/rest-express.js +0 -1
- package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
- package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
- package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
- package/dist/libs/contracts/dist/spec.js +0 -34
- package/dist/libs/contracts/dist/telemetry/index.js +0 -1
- package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
- package/dist/libs/contracts/dist/tests/index.js +0 -1
- package/dist/libs/contracts/dist/tests/runner.js +0 -2
- package/dist/libs/contracts/dist/workflow/index.js +0 -1
- package/dist/libs/contracts/dist/workflow/runner.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
- package/dist/libs/schema/dist/index.js +0 -6
- package/dist/presentations/index.d.ts +0 -4
- package/dist/run/index.d.ts +0 -8
- package/dist/run/run.contracts.d.ts +0 -713
- package/dist/run/run.entity.d.ts +0 -81
- package/dist/run/run.enum.d.ts +0 -21
- package/dist/run/run.event.d.ts +0 -289
- package/dist/run/run.handler.d.ts +0 -202
- package/dist/run/run.presentation.d.ts +0 -14
- package/dist/run/run.schema.d.ts +0 -415
- package/dist/shared/index.d.ts +0 -4
- package/dist/shared/mock-agents.d.ts +0 -87
- package/dist/shared/mock-runs.d.ts +0 -119
- package/dist/shared/mock-tools.d.ts +0 -243
- package/dist/tool/index.d.ts +0 -8
- package/dist/tool/tool.contracts.d.ts +0 -404
- package/dist/tool/tool.entity.d.ts +0 -41
- package/dist/tool/tool.enum.d.ts +0 -17
- package/dist/tool/tool.event.d.ts +0 -102
- package/dist/tool/tool.handler.d.ts +0 -314
- package/dist/tool/tool.presentation.d.ts +0 -14
- package/dist/tool/tool.schema.d.ts +0 -217
package/dist/tool/tool.event.js
CHANGED
|
@@ -1,145 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../libs/schema/dist/index.js";
|
|
3
|
-
import { defineSchemaModel } from "../libs/contracts/dist/schema/dist/SchemaModel.js";
|
|
4
|
-
import { defineEvent } from "../libs/contracts/dist/events.js";
|
|
5
|
-
import "../libs/contracts/dist/index.js";
|
|
6
|
-
|
|
7
|
-
//#region src/tool/tool.event.ts
|
|
8
|
-
/**
|
|
9
|
-
* Payload for tool created event.
|
|
10
|
-
*/
|
|
11
|
-
const ToolCreatedPayload = defineSchemaModel({
|
|
12
|
-
name: "ToolCreatedPayload",
|
|
13
|
-
description: "Payload for tool created event",
|
|
14
|
-
fields: {
|
|
15
|
-
id: {
|
|
16
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
17
|
-
isOptional: false
|
|
18
|
-
},
|
|
19
|
-
organizationId: {
|
|
20
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
21
|
-
isOptional: false
|
|
22
|
-
},
|
|
23
|
-
name: {
|
|
24
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
25
|
-
isOptional: false
|
|
26
|
-
},
|
|
27
|
-
slug: {
|
|
28
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
29
|
-
isOptional: false
|
|
30
|
-
},
|
|
31
|
-
category: {
|
|
32
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
33
|
-
isOptional: false
|
|
34
|
-
},
|
|
35
|
-
implementationType: {
|
|
36
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
37
|
-
isOptional: false
|
|
38
|
-
},
|
|
39
|
-
createdById: {
|
|
40
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
41
|
-
isOptional: true
|
|
42
|
-
},
|
|
43
|
-
createdAt: {
|
|
44
|
-
type: ScalarTypeEnum.DateTime(),
|
|
45
|
-
isOptional: false
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
/**
|
|
50
|
-
* ToolCreatedEvent - A new tool was created.
|
|
51
|
-
*/
|
|
52
|
-
const ToolCreatedEvent = defineEvent({
|
|
53
|
-
name: "agent.tool.created",
|
|
54
|
-
version: 1,
|
|
55
|
-
description: "A new AI tool was created.",
|
|
56
|
-
payload: ToolCreatedPayload
|
|
57
|
-
});
|
|
58
|
-
/**
|
|
59
|
-
* Payload for tool updated event.
|
|
60
|
-
*/
|
|
61
|
-
const ToolUpdatedPayload = defineSchemaModel({
|
|
62
|
-
name: "ToolUpdatedPayload",
|
|
63
|
-
description: "Payload for tool updated event",
|
|
64
|
-
fields: {
|
|
65
|
-
id: {
|
|
66
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
67
|
-
isOptional: false
|
|
68
|
-
},
|
|
69
|
-
organizationId: {
|
|
70
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
71
|
-
isOptional: false
|
|
72
|
-
},
|
|
73
|
-
name: {
|
|
74
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
75
|
-
isOptional: false
|
|
76
|
-
},
|
|
77
|
-
status: {
|
|
78
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
79
|
-
isOptional: false
|
|
80
|
-
},
|
|
81
|
-
updatedFields: {
|
|
82
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
83
|
-
isArray: true,
|
|
84
|
-
isOptional: false
|
|
85
|
-
},
|
|
86
|
-
updatedAt: {
|
|
87
|
-
type: ScalarTypeEnum.DateTime(),
|
|
88
|
-
isOptional: false
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
/**
|
|
93
|
-
* ToolUpdatedEvent - A tool was updated.
|
|
94
|
-
*/
|
|
95
|
-
const ToolUpdatedEvent = defineEvent({
|
|
96
|
-
name: "agent.tool.updated",
|
|
97
|
-
version: 1,
|
|
98
|
-
description: "An AI tool configuration was updated.",
|
|
99
|
-
payload: ToolUpdatedPayload
|
|
100
|
-
});
|
|
101
|
-
/**
|
|
102
|
-
* Payload for tool status changed event.
|
|
103
|
-
*/
|
|
104
|
-
const ToolStatusChangedPayload = defineSchemaModel({
|
|
105
|
-
name: "ToolStatusChangedPayload",
|
|
106
|
-
description: "Payload for tool status changed event",
|
|
107
|
-
fields: {
|
|
108
|
-
id: {
|
|
109
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
110
|
-
isOptional: false
|
|
111
|
-
},
|
|
112
|
-
organizationId: {
|
|
113
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
114
|
-
isOptional: false
|
|
115
|
-
},
|
|
116
|
-
name: {
|
|
117
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
118
|
-
isOptional: false
|
|
119
|
-
},
|
|
120
|
-
previousStatus: {
|
|
121
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
122
|
-
isOptional: false
|
|
123
|
-
},
|
|
124
|
-
newStatus: {
|
|
125
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
126
|
-
isOptional: false
|
|
127
|
-
},
|
|
128
|
-
changedAt: {
|
|
129
|
-
type: ScalarTypeEnum.DateTime(),
|
|
130
|
-
isOptional: false
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
/**
|
|
135
|
-
* ToolStatusChangedEvent - A tool's status was changed.
|
|
136
|
-
*/
|
|
137
|
-
const ToolStatusChangedEvent = defineEvent({
|
|
138
|
-
name: "agent.tool.statusChanged",
|
|
139
|
-
version: 1,
|
|
140
|
-
description: "An AI tool status was changed (activated, deprecated, disabled).",
|
|
141
|
-
payload: ToolStatusChangedPayload
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
//#endregion
|
|
145
|
-
export { ToolCreatedEvent, ToolStatusChangedEvent, ToolUpdatedEvent };
|
|
1
|
+
import{ScalarTypeEnum as e}from"@lssm/lib.schema";import{defineEvent as t,defineSchemaModel as n}from"@lssm/lib.contracts";const r=t({name:`agent.tool.created`,version:1,description:`A new AI tool was created.`,payload:n({name:`ToolCreatedPayload`,description:`Payload for tool created event`,fields:{id:{type:e.String_unsecure(),isOptional:!1},organizationId:{type:e.String_unsecure(),isOptional:!1},name:{type:e.String_unsecure(),isOptional:!1},slug:{type:e.String_unsecure(),isOptional:!1},category:{type:e.String_unsecure(),isOptional:!1},implementationType:{type:e.String_unsecure(),isOptional:!1},createdById:{type:e.String_unsecure(),isOptional:!0},createdAt:{type:e.DateTime(),isOptional:!1}}})}),i=t({name:`agent.tool.updated`,version:1,description:`An AI tool configuration was updated.`,payload:n({name:`ToolUpdatedPayload`,description:`Payload for tool updated event`,fields:{id:{type:e.String_unsecure(),isOptional:!1},organizationId:{type:e.String_unsecure(),isOptional:!1},name:{type:e.String_unsecure(),isOptional:!1},status:{type:e.String_unsecure(),isOptional:!1},updatedFields:{type:e.String_unsecure(),isArray:!0,isOptional:!1},updatedAt:{type:e.DateTime(),isOptional:!1}}})}),a=t({name:`agent.tool.statusChanged`,version:1,description:`An AI tool status was changed (activated, deprecated, disabled).`,payload:n({name:`ToolStatusChangedPayload`,description:`Payload for tool status changed event`,fields:{id:{type:e.String_unsecure(),isOptional:!1},organizationId:{type:e.String_unsecure(),isOptional:!1},name:{type:e.String_unsecure(),isOptional:!1},previousStatus:{type:e.String_unsecure(),isOptional:!1},newStatus:{type:e.String_unsecure(),isOptional:!1},changedAt:{type:e.DateTime(),isOptional:!1}}})});export{r as ToolCreatedEvent,a as ToolStatusChangedEvent,i as ToolUpdatedEvent};
|
|
@@ -1,86 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
//#region src/tool/tool.handler.ts
|
|
4
|
-
/**
|
|
5
|
-
* Mock handlers for Tool contracts.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Mock handler for ListToolsQuery.
|
|
9
|
-
*/
|
|
10
|
-
async function mockListToolsHandler(input) {
|
|
11
|
-
const { organizationId, category, status, search, limit = 20, offset = 0 } = input;
|
|
12
|
-
let filtered = MOCK_TOOLS.filter((t) => t.organizationId === organizationId);
|
|
13
|
-
if (category) filtered = filtered.filter((t) => t.category === category);
|
|
14
|
-
if (status) filtered = filtered.filter((t) => t.status === status);
|
|
15
|
-
if (search) {
|
|
16
|
-
const q = search.toLowerCase();
|
|
17
|
-
filtered = filtered.filter((t) => t.name.toLowerCase().includes(q) || t.description.toLowerCase().includes(q));
|
|
18
|
-
}
|
|
19
|
-
const total = filtered.length;
|
|
20
|
-
return {
|
|
21
|
-
items: filtered.slice(offset, offset + limit).map((t) => ({
|
|
22
|
-
id: t.id,
|
|
23
|
-
name: t.name,
|
|
24
|
-
slug: t.slug,
|
|
25
|
-
description: t.description,
|
|
26
|
-
category: t.category,
|
|
27
|
-
status: t.status,
|
|
28
|
-
version: t.version,
|
|
29
|
-
createdAt: t.createdAt
|
|
30
|
-
})),
|
|
31
|
-
total,
|
|
32
|
-
hasMore: offset + limit < total
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Mock handler for GetToolQuery.
|
|
37
|
-
*/
|
|
38
|
-
async function mockGetToolHandler(input) {
|
|
39
|
-
const tool = MOCK_TOOLS.find((t) => t.id === input.toolId);
|
|
40
|
-
if (!tool) throw new Error("TOOL_NOT_FOUND");
|
|
41
|
-
return tool;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Mock handler for CreateToolCommand.
|
|
45
|
-
*/
|
|
46
|
-
async function mockCreateToolHandler(input) {
|
|
47
|
-
if (MOCK_TOOLS.some((t) => t.organizationId === input.organizationId && t.slug === input.slug)) throw new Error("SLUG_EXISTS");
|
|
48
|
-
return {
|
|
49
|
-
id: `tool-${Date.now()}`,
|
|
50
|
-
name: input.name,
|
|
51
|
-
slug: input.slug,
|
|
52
|
-
status: "DRAFT"
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Mock handler for UpdateToolCommand.
|
|
57
|
-
*/
|
|
58
|
-
async function mockUpdateToolHandler(input) {
|
|
59
|
-
const tool = MOCK_TOOLS.find((t) => t.id === input.toolId);
|
|
60
|
-
if (!tool) throw new Error("TOOL_NOT_FOUND");
|
|
61
|
-
return {
|
|
62
|
-
id: tool.id,
|
|
63
|
-
name: input.name ?? tool.name,
|
|
64
|
-
status: input.status ?? tool.status,
|
|
65
|
-
updatedAt: /* @__PURE__ */ new Date()
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Mock handler for TestToolCommand.
|
|
70
|
-
*/
|
|
71
|
-
async function mockTestToolHandler(input) {
|
|
72
|
-
if (!MOCK_TOOLS.find((t) => t.id === input.toolId)) throw new Error("TOOL_NOT_FOUND");
|
|
73
|
-
const startTime = Date.now();
|
|
74
|
-
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
75
|
-
return {
|
|
76
|
-
success: true,
|
|
77
|
-
output: {
|
|
78
|
-
result: "Test successful",
|
|
79
|
-
input: input.testInput
|
|
80
|
-
},
|
|
81
|
-
durationMs: Date.now() - startTime
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
//#endregion
|
|
86
|
-
export { mockCreateToolHandler, mockGetToolHandler, mockListToolsHandler, mockTestToolHandler, mockUpdateToolHandler };
|
|
1
|
+
import{MOCK_TOOLS as e}from"../shared/mock-tools.js";async function t(t){let{organizationId:n,category:r,status:i,search:a,limit:o=20,offset:s=0}=t,c=e.filter(e=>e.organizationId===n);if(r&&(c=c.filter(e=>e.category===r)),i&&(c=c.filter(e=>e.status===i)),a){let e=a.toLowerCase();c=c.filter(t=>t.name.toLowerCase().includes(e)||t.description.toLowerCase().includes(e))}let l=c.length;return{items:c.slice(s,s+o).map(e=>({id:e.id,name:e.name,slug:e.slug,description:e.description,category:e.category,status:e.status,version:e.version,createdAt:e.createdAt})),total:l,hasMore:s+o<l}}async function n(t){let n=e.find(e=>e.id===t.toolId);if(!n)throw Error(`TOOL_NOT_FOUND`);return n}async function r(t){if(e.some(e=>e.organizationId===t.organizationId&&e.slug===t.slug))throw Error(`SLUG_EXISTS`);return{id:`tool-${Date.now()}`,name:t.name,slug:t.slug,status:`DRAFT`}}async function i(t){let n=e.find(e=>e.id===t.toolId);if(!n)throw Error(`TOOL_NOT_FOUND`);return{id:n.id,name:t.name??n.name,status:t.status??n.status,updatedAt:new Date}}async function a(t){if(!e.find(e=>e.id===t.toolId))throw Error(`TOOL_NOT_FOUND`);let n=Date.now();return await new Promise(e=>setTimeout(e,100)),{success:!0,output:{result:`Test successful`,input:t.testInput},durationMs:Date.now()-n}}export{r as mockCreateToolHandler,n as mockGetToolHandler,t as mockListToolsHandler,a as mockTestToolHandler,i as mockUpdateToolHandler};
|
|
@@ -1,55 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
//#region src/tool/tool.presentation.ts
|
|
4
|
-
/**
|
|
5
|
-
* Presentation for displaying a list of tools.
|
|
6
|
-
*/
|
|
7
|
-
const ToolListPresentation = {
|
|
8
|
-
meta: {
|
|
9
|
-
name: "agent-console.tool.list",
|
|
10
|
-
version: 1,
|
|
11
|
-
description: "List view of AI tools with category, status, and version info",
|
|
12
|
-
domain: "agent-console",
|
|
13
|
-
owners: ["@agent-console-team"],
|
|
14
|
-
tags: [
|
|
15
|
-
"tool",
|
|
16
|
-
"list",
|
|
17
|
-
"dashboard"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
source: {
|
|
21
|
-
type: "component",
|
|
22
|
-
framework: "react",
|
|
23
|
-
componentKey: "ToolListView",
|
|
24
|
-
props: ToolSummaryModel
|
|
25
|
-
},
|
|
26
|
-
targets: [
|
|
27
|
-
"react",
|
|
28
|
-
"markdown",
|
|
29
|
-
"application/json"
|
|
30
|
-
],
|
|
31
|
-
policy: { flags: ["agent-console.enabled"] }
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Presentation for tool detail view.
|
|
35
|
-
*/
|
|
36
|
-
const ToolDetailPresentation = {
|
|
37
|
-
meta: {
|
|
38
|
-
name: "agent-console.tool.detail",
|
|
39
|
-
version: 1,
|
|
40
|
-
description: "Detailed view of an AI tool with configuration and test panel",
|
|
41
|
-
domain: "agent-console",
|
|
42
|
-
owners: ["@agent-console-team"],
|
|
43
|
-
tags: ["tool", "detail"]
|
|
44
|
-
},
|
|
45
|
-
source: {
|
|
46
|
-
type: "component",
|
|
47
|
-
framework: "react",
|
|
48
|
-
componentKey: "ToolDetailView"
|
|
49
|
-
},
|
|
50
|
-
targets: ["react", "markdown"],
|
|
51
|
-
policy: { flags: ["agent-console.enabled"] }
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
//#endregion
|
|
55
|
-
export { ToolDetailPresentation, ToolListPresentation };
|
|
1
|
+
import{ToolSummaryModel as e}from"./tool.schema.js";const t={meta:{name:`agent-console.tool.list`,version:1,description:`List view of AI tools with category, status, and version info`,domain:`agent-console`,owners:[`@agent-console-team`],tags:[`tool`,`list`,`dashboard`]},source:{type:`component`,framework:`react`,componentKey:`ToolListView`,props:e},targets:[`react`,`markdown`,`application/json`],policy:{flags:[`agent-console.enabled`]}},n={meta:{name:`agent-console.tool.detail`,version:1,description:`Detailed view of an AI tool with configuration and test panel`,domain:`agent-console`,owners:[`@agent-console-team`],tags:[`tool`,`detail`]},source:{type:`component`,framework:`react`,componentKey:`ToolDetailView`},targets:[`react`,`markdown`],policy:{flags:[`agent-console.enabled`]}};export{n as ToolDetailPresentation,t as ToolListPresentation};
|
package/dist/tool/tool.schema.js
CHANGED
|
@@ -1,237 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
|
|
3
|
-
import "../libs/schema/dist/index.js";
|
|
4
|
-
import { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum } from "./tool.enum.js";
|
|
5
|
-
|
|
6
|
-
//#region src/tool/tool.schema.ts
|
|
7
|
-
/**
|
|
8
|
-
* AI tool definition.
|
|
9
|
-
*/
|
|
10
|
-
const ToolModel = defineSchemaModel({
|
|
11
|
-
name: "Tool",
|
|
12
|
-
description: "AI tool definition",
|
|
13
|
-
fields: {
|
|
14
|
-
id: {
|
|
15
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
16
|
-
isOptional: false
|
|
17
|
-
},
|
|
18
|
-
organizationId: {
|
|
19
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
20
|
-
isOptional: false
|
|
21
|
-
},
|
|
22
|
-
name: {
|
|
23
|
-
type: ScalarTypeEnum.NonEmptyString(),
|
|
24
|
-
isOptional: false
|
|
25
|
-
},
|
|
26
|
-
slug: {
|
|
27
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
28
|
-
isOptional: false
|
|
29
|
-
},
|
|
30
|
-
description: {
|
|
31
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
32
|
-
isOptional: false
|
|
33
|
-
},
|
|
34
|
-
category: {
|
|
35
|
-
type: ToolCategoryEnum,
|
|
36
|
-
isOptional: false
|
|
37
|
-
},
|
|
38
|
-
status: {
|
|
39
|
-
type: ToolStatusEnum,
|
|
40
|
-
isOptional: false
|
|
41
|
-
},
|
|
42
|
-
parametersSchema: {
|
|
43
|
-
type: ScalarTypeEnum.JSONObject(),
|
|
44
|
-
isOptional: false
|
|
45
|
-
},
|
|
46
|
-
outputSchema: {
|
|
47
|
-
type: ScalarTypeEnum.JSONObject(),
|
|
48
|
-
isOptional: true
|
|
49
|
-
},
|
|
50
|
-
implementationType: {
|
|
51
|
-
type: ImplementationTypeEnum,
|
|
52
|
-
isOptional: false
|
|
53
|
-
},
|
|
54
|
-
implementationConfig: {
|
|
55
|
-
type: ScalarTypeEnum.JSONObject(),
|
|
56
|
-
isOptional: false
|
|
57
|
-
},
|
|
58
|
-
maxInvocationsPerMinute: {
|
|
59
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
60
|
-
isOptional: true
|
|
61
|
-
},
|
|
62
|
-
timeoutMs: {
|
|
63
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
64
|
-
isOptional: false,
|
|
65
|
-
defaultValue: 3e4
|
|
66
|
-
},
|
|
67
|
-
version: {
|
|
68
|
-
type: ScalarTypeEnum.NonEmptyString(),
|
|
69
|
-
isOptional: false
|
|
70
|
-
},
|
|
71
|
-
tags: {
|
|
72
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
73
|
-
isArray: true,
|
|
74
|
-
isOptional: true
|
|
75
|
-
},
|
|
76
|
-
createdAt: {
|
|
77
|
-
type: ScalarTypeEnum.DateTime(),
|
|
78
|
-
isOptional: false
|
|
79
|
-
},
|
|
80
|
-
updatedAt: {
|
|
81
|
-
type: ScalarTypeEnum.DateTime(),
|
|
82
|
-
isOptional: false
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
/**
|
|
87
|
-
* Summary of a tool for list views.
|
|
88
|
-
*/
|
|
89
|
-
const ToolSummaryModel = defineSchemaModel({
|
|
90
|
-
name: "ToolSummary",
|
|
91
|
-
description: "Summary of a tool for list views",
|
|
92
|
-
fields: {
|
|
93
|
-
id: {
|
|
94
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
95
|
-
isOptional: false
|
|
96
|
-
},
|
|
97
|
-
name: {
|
|
98
|
-
type: ScalarTypeEnum.NonEmptyString(),
|
|
99
|
-
isOptional: false
|
|
100
|
-
},
|
|
101
|
-
slug: {
|
|
102
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
103
|
-
isOptional: false
|
|
104
|
-
},
|
|
105
|
-
description: {
|
|
106
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
107
|
-
isOptional: false
|
|
108
|
-
},
|
|
109
|
-
category: {
|
|
110
|
-
type: ToolCategoryEnum,
|
|
111
|
-
isOptional: false
|
|
112
|
-
},
|
|
113
|
-
status: {
|
|
114
|
-
type: ToolStatusEnum,
|
|
115
|
-
isOptional: false
|
|
116
|
-
},
|
|
117
|
-
version: {
|
|
118
|
-
type: ScalarTypeEnum.NonEmptyString(),
|
|
119
|
-
isOptional: false
|
|
120
|
-
},
|
|
121
|
-
createdAt: {
|
|
122
|
-
type: ScalarTypeEnum.DateTime(),
|
|
123
|
-
isOptional: false
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
/**
|
|
128
|
-
* Input for creating a tool.
|
|
129
|
-
*/
|
|
130
|
-
const CreateToolInputModel = defineSchemaModel({
|
|
131
|
-
name: "CreateToolInput",
|
|
132
|
-
description: "Input for creating a tool",
|
|
133
|
-
fields: {
|
|
134
|
-
organizationId: {
|
|
135
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
136
|
-
isOptional: false
|
|
137
|
-
},
|
|
138
|
-
name: {
|
|
139
|
-
type: ScalarTypeEnum.NonEmptyString(),
|
|
140
|
-
isOptional: false
|
|
141
|
-
},
|
|
142
|
-
slug: {
|
|
143
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
144
|
-
isOptional: false
|
|
145
|
-
},
|
|
146
|
-
description: {
|
|
147
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
148
|
-
isOptional: false
|
|
149
|
-
},
|
|
150
|
-
category: {
|
|
151
|
-
type: ToolCategoryEnum,
|
|
152
|
-
isOptional: true
|
|
153
|
-
},
|
|
154
|
-
parametersSchema: {
|
|
155
|
-
type: ScalarTypeEnum.JSONObject(),
|
|
156
|
-
isOptional: false
|
|
157
|
-
},
|
|
158
|
-
outputSchema: {
|
|
159
|
-
type: ScalarTypeEnum.JSONObject(),
|
|
160
|
-
isOptional: true
|
|
161
|
-
},
|
|
162
|
-
implementationType: {
|
|
163
|
-
type: ImplementationTypeEnum,
|
|
164
|
-
isOptional: false
|
|
165
|
-
},
|
|
166
|
-
implementationConfig: {
|
|
167
|
-
type: ScalarTypeEnum.JSONObject(),
|
|
168
|
-
isOptional: false
|
|
169
|
-
},
|
|
170
|
-
maxInvocationsPerMinute: {
|
|
171
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
172
|
-
isOptional: true
|
|
173
|
-
},
|
|
174
|
-
timeoutMs: {
|
|
175
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
176
|
-
isOptional: true
|
|
177
|
-
},
|
|
178
|
-
tags: {
|
|
179
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
180
|
-
isArray: true,
|
|
181
|
-
isOptional: true
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
/**
|
|
186
|
-
* Input for updating a tool.
|
|
187
|
-
*/
|
|
188
|
-
const UpdateToolInputModel = defineSchemaModel({
|
|
189
|
-
name: "UpdateToolInput",
|
|
190
|
-
description: "Input for updating a tool",
|
|
191
|
-
fields: {
|
|
192
|
-
toolId: {
|
|
193
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
194
|
-
isOptional: false
|
|
195
|
-
},
|
|
196
|
-
name: {
|
|
197
|
-
type: ScalarTypeEnum.NonEmptyString(),
|
|
198
|
-
isOptional: true
|
|
199
|
-
},
|
|
200
|
-
description: {
|
|
201
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
202
|
-
isOptional: true
|
|
203
|
-
},
|
|
204
|
-
status: {
|
|
205
|
-
type: ToolStatusEnum,
|
|
206
|
-
isOptional: true
|
|
207
|
-
},
|
|
208
|
-
parametersSchema: {
|
|
209
|
-
type: ScalarTypeEnum.JSONObject(),
|
|
210
|
-
isOptional: true
|
|
211
|
-
},
|
|
212
|
-
outputSchema: {
|
|
213
|
-
type: ScalarTypeEnum.JSONObject(),
|
|
214
|
-
isOptional: true
|
|
215
|
-
},
|
|
216
|
-
implementationConfig: {
|
|
217
|
-
type: ScalarTypeEnum.JSONObject(),
|
|
218
|
-
isOptional: true
|
|
219
|
-
},
|
|
220
|
-
maxInvocationsPerMinute: {
|
|
221
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
222
|
-
isOptional: true
|
|
223
|
-
},
|
|
224
|
-
timeoutMs: {
|
|
225
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
226
|
-
isOptional: true
|
|
227
|
-
},
|
|
228
|
-
tags: {
|
|
229
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
230
|
-
isArray: true,
|
|
231
|
-
isOptional: true
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
//#endregion
|
|
237
|
-
export { CreateToolInputModel, ToolModel, ToolSummaryModel, UpdateToolInputModel };
|
|
1
|
+
import{ImplementationTypeEnum as e,ToolCategoryEnum as t,ToolStatusEnum as n}from"./tool.enum.js";import{ScalarTypeEnum as r,defineSchemaModel as i}from"@lssm/lib.schema";const a=i({name:`Tool`,description:`AI tool definition`,fields:{id:{type:r.String_unsecure(),isOptional:!1},organizationId:{type:r.String_unsecure(),isOptional:!1},name:{type:r.NonEmptyString(),isOptional:!1},slug:{type:r.String_unsecure(),isOptional:!1},description:{type:r.String_unsecure(),isOptional:!1},category:{type:t,isOptional:!1},status:{type:n,isOptional:!1},parametersSchema:{type:r.JSONObject(),isOptional:!1},outputSchema:{type:r.JSONObject(),isOptional:!0},implementationType:{type:e,isOptional:!1},implementationConfig:{type:r.JSONObject(),isOptional:!1},maxInvocationsPerMinute:{type:r.Int_unsecure(),isOptional:!0},timeoutMs:{type:r.Int_unsecure(),isOptional:!1,defaultValue:3e4},version:{type:r.NonEmptyString(),isOptional:!1},tags:{type:r.String_unsecure(),isArray:!0,isOptional:!0},createdAt:{type:r.DateTime(),isOptional:!1},updatedAt:{type:r.DateTime(),isOptional:!1}}}),o=i({name:`ToolSummary`,description:`Summary of a tool for list views`,fields:{id:{type:r.String_unsecure(),isOptional:!1},name:{type:r.NonEmptyString(),isOptional:!1},slug:{type:r.String_unsecure(),isOptional:!1},description:{type:r.String_unsecure(),isOptional:!1},category:{type:t,isOptional:!1},status:{type:n,isOptional:!1},version:{type:r.NonEmptyString(),isOptional:!1},createdAt:{type:r.DateTime(),isOptional:!1}}}),s=i({name:`CreateToolInput`,description:`Input for creating a tool`,fields:{organizationId:{type:r.String_unsecure(),isOptional:!1},name:{type:r.NonEmptyString(),isOptional:!1},slug:{type:r.String_unsecure(),isOptional:!1},description:{type:r.String_unsecure(),isOptional:!1},category:{type:t,isOptional:!0},parametersSchema:{type:r.JSONObject(),isOptional:!1},outputSchema:{type:r.JSONObject(),isOptional:!0},implementationType:{type:e,isOptional:!1},implementationConfig:{type:r.JSONObject(),isOptional:!1},maxInvocationsPerMinute:{type:r.Int_unsecure(),isOptional:!0},timeoutMs:{type:r.Int_unsecure(),isOptional:!0},tags:{type:r.String_unsecure(),isArray:!0,isOptional:!0}}}),c=i({name:`UpdateToolInput`,description:`Input for updating a tool`,fields:{toolId:{type:r.String_unsecure(),isOptional:!1},name:{type:r.NonEmptyString(),isOptional:!0},description:{type:r.String_unsecure(),isOptional:!0},status:{type:n,isOptional:!0},parametersSchema:{type:r.JSONObject(),isOptional:!0},outputSchema:{type:r.JSONObject(),isOptional:!0},implementationConfig:{type:r.JSONObject(),isOptional:!0},maxInvocationsPerMinute:{type:r.Int_unsecure(),isOptional:!0},timeoutMs:{type:r.Int_unsecure(),isOptional:!0},tags:{type:r.String_unsecure(),isArray:!0,isOptional:!0}}});export{s as CreateToolInputModel,a as ToolModel,o as ToolSummaryModel,c as UpdateToolInputModel};
|
package/package.json
CHANGED
|
@@ -1,51 +1,49 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.agent-console",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.41.0",
|
|
4
4
|
"description": "Agent Console example - AI agent orchestration with tools, runs, and logs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
|
-
".": "./
|
|
10
|
-
"./agent": "./
|
|
11
|
-
"./agent.feature": "./
|
|
12
|
-
"./agent/agent.contracts": "./
|
|
13
|
-
"./agent/agent.entity": "./
|
|
14
|
-
"./agent/agent.enum": "./
|
|
15
|
-
"./agent/agent.event": "./
|
|
16
|
-
"./agent/agent.handler": "./
|
|
17
|
-
"./agent/agent.presentation": "./
|
|
18
|
-
"./agent/agent.schema": "./
|
|
19
|
-
"./docs": "./
|
|
20
|
-
"./docs/agent-console.docblock": "./
|
|
21
|
-
"./example": "./
|
|
22
|
-
"./handlers": "./
|
|
23
|
-
"./presentations": "./
|
|
24
|
-
"./run": "./
|
|
25
|
-
"./run/run.contracts": "./
|
|
26
|
-
"./run/run.entity": "./
|
|
27
|
-
"./run/run.enum": "./
|
|
28
|
-
"./run/run.event": "./
|
|
29
|
-
"./run/run.handler": "./
|
|
30
|
-
"./run/run.presentation": "./
|
|
31
|
-
"./run/run.schema": "./
|
|
32
|
-
"./shared": "./
|
|
33
|
-
"./shared/mock-agents": "./
|
|
34
|
-
"./shared/mock-runs": "./
|
|
35
|
-
"./shared/mock-tools": "./
|
|
36
|
-
"./tool": "./
|
|
37
|
-
"./tool/tool.contracts": "./
|
|
38
|
-
"./tool/tool.entity": "./
|
|
39
|
-
"./tool/tool.enum": "./
|
|
40
|
-
"./tool/tool.event": "./
|
|
41
|
-
"./tool/tool.handler": "./
|
|
42
|
-
"./tool/tool.presentation": "./
|
|
43
|
-
"./tool/tool.schema": "./
|
|
9
|
+
".": "./src/index.ts",
|
|
10
|
+
"./agent": "./src/agent/index.ts",
|
|
11
|
+
"./agent.feature": "./src/agent.feature.ts",
|
|
12
|
+
"./agent/agent.contracts": "./src/agent/agent.contracts.ts",
|
|
13
|
+
"./agent/agent.entity": "./src/agent/agent.entity.ts",
|
|
14
|
+
"./agent/agent.enum": "./src/agent/agent.enum.ts",
|
|
15
|
+
"./agent/agent.event": "./src/agent/agent.event.ts",
|
|
16
|
+
"./agent/agent.handler": "./src/agent/agent.handler.ts",
|
|
17
|
+
"./agent/agent.presentation": "./src/agent/agent.presentation.ts",
|
|
18
|
+
"./agent/agent.schema": "./src/agent/agent.schema.ts",
|
|
19
|
+
"./docs": "./src/docs/index.ts",
|
|
20
|
+
"./docs/agent-console.docblock": "./src/docs/agent-console.docblock.ts",
|
|
21
|
+
"./example": "./src/example.ts",
|
|
22
|
+
"./handlers": "./src/handlers/index.ts",
|
|
23
|
+
"./presentations": "./src/presentations/index.ts",
|
|
24
|
+
"./run": "./src/run/index.ts",
|
|
25
|
+
"./run/run.contracts": "./src/run/run.contracts.ts",
|
|
26
|
+
"./run/run.entity": "./src/run/run.entity.ts",
|
|
27
|
+
"./run/run.enum": "./src/run/run.enum.ts",
|
|
28
|
+
"./run/run.event": "./src/run/run.event.ts",
|
|
29
|
+
"./run/run.handler": "./src/run/run.handler.ts",
|
|
30
|
+
"./run/run.presentation": "./src/run/run.presentation.ts",
|
|
31
|
+
"./run/run.schema": "./src/run/run.schema.ts",
|
|
32
|
+
"./shared": "./src/shared/index.ts",
|
|
33
|
+
"./shared/mock-agents": "./src/shared/mock-agents.ts",
|
|
34
|
+
"./shared/mock-runs": "./src/shared/mock-runs.ts",
|
|
35
|
+
"./shared/mock-tools": "./src/shared/mock-tools.ts",
|
|
36
|
+
"./tool": "./src/tool/index.ts",
|
|
37
|
+
"./tool/tool.contracts": "./src/tool/tool.contracts.ts",
|
|
38
|
+
"./tool/tool.entity": "./src/tool/tool.entity.ts",
|
|
39
|
+
"./tool/tool.enum": "./src/tool/tool.enum.ts",
|
|
40
|
+
"./tool/tool.event": "./src/tool/tool.event.ts",
|
|
41
|
+
"./tool/tool.handler": "./src/tool/tool.handler.ts",
|
|
42
|
+
"./tool/tool.presentation": "./src/tool/tool.presentation.ts",
|
|
43
|
+
"./tool/tool.schema": "./src/tool/tool.schema.ts",
|
|
44
44
|
"./*": "./*"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
|
-
"publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
|
|
48
|
-
"publish:pkg:canary": "bun publish:pkg --tag canary",
|
|
49
47
|
"build": "bun build:bundle && bun build:types",
|
|
50
48
|
"build:bundle": "tsdown",
|
|
51
49
|
"build:types": "tsc --noEmit",
|
|
@@ -57,16 +55,16 @@
|
|
|
57
55
|
"test": "bun run"
|
|
58
56
|
},
|
|
59
57
|
"dependencies": {
|
|
60
|
-
"@lssm/lib.schema": "
|
|
61
|
-
"@lssm/lib.contracts": "
|
|
62
|
-
"@lssm/lib.identity-rbac": "
|
|
63
|
-
"@lssm/module.audit-trail": "
|
|
64
|
-
"@lssm/lib.jobs": "
|
|
58
|
+
"@lssm/lib.schema": "workspace:*",
|
|
59
|
+
"@lssm/lib.contracts": "workspace:*",
|
|
60
|
+
"@lssm/lib.identity-rbac": "workspace:*",
|
|
61
|
+
"@lssm/module.audit-trail": "workspace:*",
|
|
62
|
+
"@lssm/lib.jobs": "workspace:*",
|
|
65
63
|
"zod": "^4.1.13"
|
|
66
64
|
},
|
|
67
65
|
"devDependencies": {
|
|
68
|
-
"@lssm/tool.tsdown": "
|
|
69
|
-
"@lssm/tool.typescript": "
|
|
66
|
+
"@lssm/tool.tsdown": "workspace:*",
|
|
67
|
+
"@lssm/tool.typescript": "workspace:*",
|
|
70
68
|
"tsdown": "^0.17.4",
|
|
71
69
|
"typescript": "^5.9.3"
|
|
72
70
|
},
|