@lssm/example.agent-console 0.0.0-canary-20251223215909 → 0.0.0-canary-20251225042407
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 +36 -36
- package/.turbo/turbo-build.log +35 -35
- package/CHANGELOG.md +6 -6
- package/dist/agent/agent.entity.d.ts +36 -36
- package/dist/agent/agent.entity.d.ts.map +1 -1
- package/dist/agent/agent.enum.d.ts +4 -4
- package/dist/agent/agent.enum.d.ts.map +1 -1
- package/dist/agent/agent.event.d.ts +30 -30
- package/dist/agent/agent.event.d.ts.map +1 -1
- package/dist/agent/agent.event.js +41 -12
- package/dist/agent/agent.event.js.map +1 -1
- package/dist/agent/agent.operation.d.ts +120 -154
- package/dist/agent/agent.operation.d.ts.map +1 -1
- package/dist/agent/agent.operation.js +12 -9
- package/dist/agent/agent.operation.js.map +1 -1
- package/dist/agent/agent.presentation.d.ts.map +1 -1
- package/dist/agent/agent.presentation.js +19 -6
- package/dist/agent/agent.presentation.js.map +1 -1
- package/dist/agent/agent.schema.d.ts +95 -95
- package/dist/agent/agent.schema.d.ts.map +1 -1
- package/dist/agent.feature.js +76 -69
- package/dist/agent.feature.js.map +1 -1
- package/dist/run/run.entity.d.ts +56 -56
- package/dist/run/run.enum.d.ts +5 -5
- package/dist/run/run.event.d.ts +70 -70
- package/dist/run/run.event.d.ts.map +1 -1
- package/dist/run/run.event.js +69 -21
- package/dist/run/run.event.js.map +1 -1
- package/dist/run/run.operation.d.ts +182 -176
- package/dist/run/run.operation.d.ts.map +1 -1
- package/dist/run/run.operation.js +16 -10
- package/dist/run/run.operation.js.map +1 -1
- package/dist/run/run.presentation.d.ts.map +1 -1
- package/dist/run/run.presentation.js +13 -4
- package/dist/run/run.presentation.js.map +1 -1
- package/dist/run/run.schema.d.ts +99 -99
- package/dist/tool/tool.entity.d.ts +24 -24
- package/dist/tool/tool.enum.d.ts +4 -4
- package/dist/tool/tool.event.d.ts +24 -24
- package/dist/tool/tool.event.d.ts.map +1 -1
- package/dist/tool/tool.event.js +25 -9
- package/dist/tool/tool.event.js.map +1 -1
- package/dist/tool/tool.handler.d.ts.map +1 -1
- package/dist/tool/tool.operation.d.ts +108 -102
- package/dist/tool/tool.operation.d.ts.map +1 -1
- package/dist/tool/tool.operation.js +14 -8
- package/dist/tool/tool.operation.js.map +1 -1
- package/dist/tool/tool.presentation.d.ts.map +1 -1
- package/dist/tool/tool.presentation.js +13 -4
- package/dist/tool/tool.presentation.js.map +1 -1
- package/dist/tool/tool.schema.d.ts +52 -52
- package/dist/tool/tool.schema.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/agent/agent.event.ts +34 -12
- package/src/agent/agent.operation.ts +12 -9
- package/src/agent/agent.presentation.ts +16 -3
- package/src/agent.feature.ts +58 -56
- package/src/run/run.event.ts +58 -21
- package/src/run/run.operation.ts +16 -10
- package/src/run/run.presentation.ts +11 -2
- package/src/tool/tool.event.ts +27 -10
- package/src/tool/tool.operation.ts +14 -8
- package/src/tool/tool.presentation.ts +11 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ToolSummaryModel } from "./tool.schema.js";
|
|
2
|
+
import { StabilityEnum } from "@lssm/lib.contracts";
|
|
2
3
|
|
|
3
4
|
//#region src/tool/tool.presentation.ts
|
|
4
5
|
/**
|
|
@@ -6,16 +7,20 @@ import { ToolSummaryModel } from "./tool.schema.js";
|
|
|
6
7
|
*/
|
|
7
8
|
const ToolListPresentation = {
|
|
8
9
|
meta: {
|
|
9
|
-
|
|
10
|
+
key: "agent-console.tool.list",
|
|
10
11
|
version: 1,
|
|
12
|
+
title: "Tool List",
|
|
11
13
|
description: "List view of AI tools with category, status, and version info",
|
|
14
|
+
goal: "Provide an overview of all available tools for agents.",
|
|
15
|
+
context: "Tool management dashboard.",
|
|
12
16
|
domain: "agent-console",
|
|
13
17
|
owners: ["@agent-console-team"],
|
|
14
18
|
tags: [
|
|
15
19
|
"tool",
|
|
16
20
|
"list",
|
|
17
21
|
"dashboard"
|
|
18
|
-
]
|
|
22
|
+
],
|
|
23
|
+
stability: StabilityEnum.Experimental
|
|
19
24
|
},
|
|
20
25
|
source: {
|
|
21
26
|
type: "component",
|
|
@@ -35,12 +40,16 @@ const ToolListPresentation = {
|
|
|
35
40
|
*/
|
|
36
41
|
const ToolDetailPresentation = {
|
|
37
42
|
meta: {
|
|
38
|
-
|
|
43
|
+
key: "agent-console.tool.detail",
|
|
39
44
|
version: 1,
|
|
45
|
+
title: "Tool Details",
|
|
40
46
|
description: "Detailed view of an AI tool with configuration and test panel",
|
|
47
|
+
goal: "Allow users to inspect and test a specific tool.",
|
|
48
|
+
context: "Detailed view of a tool.",
|
|
41
49
|
domain: "agent-console",
|
|
42
50
|
owners: ["@agent-console-team"],
|
|
43
|
-
tags: ["tool", "detail"]
|
|
51
|
+
tags: ["tool", "detail"],
|
|
52
|
+
stability: StabilityEnum.Experimental
|
|
44
53
|
},
|
|
45
54
|
source: {
|
|
46
55
|
type: "component",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.presentation.js","names":["ToolListPresentation: PresentationSpec","ToolDetailPresentation: PresentationSpec"],"sources":["../../src/tool/tool.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@lssm/lib.contracts';\nimport { ToolSummaryModel } from './tool.schema';\n\n/**\n * Presentation for displaying a list of tools.\n */\nexport const ToolListPresentation: PresentationSpec = {\n meta: {\n
|
|
1
|
+
{"version":3,"file":"tool.presentation.js","names":["ToolListPresentation: PresentationSpec","ToolDetailPresentation: PresentationSpec"],"sources":["../../src/tool/tool.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@lssm/lib.contracts';\nimport { StabilityEnum } from '@lssm/lib.contracts';\nimport { ToolSummaryModel } from './tool.schema';\n\n/**\n * Presentation for displaying a list of tools.\n */\nexport const ToolListPresentation: PresentationSpec = {\n meta: {\n key: 'agent-console.tool.list',\n version: 1,\n title: 'Tool List',\n description:\n 'List view of AI tools with category, status, and version info',\n goal: 'Provide an overview of all available tools for agents.',\n context: 'Tool management dashboard.',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['tool', 'list', 'dashboard'],\n stability: StabilityEnum.Experimental,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ToolListView',\n props: ToolSummaryModel,\n },\n targets: ['react', 'markdown', 'application/json'],\n policy: { flags: ['agent-console.enabled'] },\n};\n\n/**\n * Presentation for tool detail view.\n */\nexport const ToolDetailPresentation: PresentationSpec = {\n meta: {\n key: 'agent-console.tool.detail',\n version: 1,\n title: 'Tool Details',\n description:\n 'Detailed view of an AI tool with configuration and test panel',\n goal: 'Allow users to inspect and test a specific tool.',\n context: 'Detailed view of a tool.',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['tool', 'detail'],\n stability: StabilityEnum.Experimental,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ToolDetailView',\n },\n targets: ['react', 'markdown'],\n policy: { flags: ['agent-console.enabled'] },\n};\n"],"mappings":";;;;;;;AAOA,MAAaA,uBAAyC;CACpD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,SAAS;EACT,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM;GAAC;GAAQ;GAAQ;GAAY;EACnC,WAAW,cAAc;EAC1B;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS;EAAC;EAAS;EAAY;EAAmB;CAClD,QAAQ,EAAE,OAAO,CAAC,wBAAwB,EAAE;CAC7C;;;;AAKD,MAAaC,yBAA2C;CACtD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,SAAS;EACT,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM,CAAC,QAAQ,SAAS;EACxB,WAAW,cAAc;EAC1B;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EAAE,OAAO,CAAC,wBAAwB,EAAE;CAC7C"}
|
|
@@ -1,168 +1,168 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/tool/tool.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* AI tool definition.
|
|
6
6
|
*/
|
|
7
|
-
declare const ToolModel:
|
|
7
|
+
declare const ToolModel: _lssm_lib_schema0.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
organizationId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
name: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
slug: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
description: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
category: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string]>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
status: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
parametersSchema: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
outputSchema: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
42
42
|
isOptional: true;
|
|
43
43
|
};
|
|
44
44
|
implementationType: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string]>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
implementationConfig: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
maxInvocationsPerMinute: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
54
54
|
isOptional: true;
|
|
55
55
|
};
|
|
56
56
|
timeoutMs: {
|
|
57
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
defaultValue: number;
|
|
60
60
|
};
|
|
61
61
|
version: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
tags: {
|
|
66
|
-
type:
|
|
66
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
67
67
|
isArray: true;
|
|
68
68
|
isOptional: true;
|
|
69
69
|
};
|
|
70
70
|
createdAt: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
updatedAt: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
}>;
|
|
79
79
|
/**
|
|
80
80
|
* Summary of a tool for list views.
|
|
81
81
|
*/
|
|
82
|
-
declare const ToolSummaryModel:
|
|
82
|
+
declare const ToolSummaryModel: _lssm_lib_schema0.SchemaModel<{
|
|
83
83
|
id: {
|
|
84
|
-
type:
|
|
84
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
name: {
|
|
88
|
-
type:
|
|
88
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
slug: {
|
|
92
|
-
type:
|
|
92
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
description: {
|
|
96
|
-
type:
|
|
96
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
category: {
|
|
100
|
-
type:
|
|
100
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string]>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
status: {
|
|
104
|
-
type:
|
|
104
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
version: {
|
|
108
|
-
type:
|
|
108
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
109
109
|
isOptional: false;
|
|
110
110
|
};
|
|
111
111
|
createdAt: {
|
|
112
|
-
type:
|
|
112
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
113
113
|
isOptional: false;
|
|
114
114
|
};
|
|
115
115
|
}>;
|
|
116
116
|
/**
|
|
117
117
|
* Input for creating a tool.
|
|
118
118
|
*/
|
|
119
|
-
declare const CreateToolInputModel:
|
|
119
|
+
declare const CreateToolInputModel: _lssm_lib_schema0.SchemaModel<{
|
|
120
120
|
organizationId: {
|
|
121
|
-
type:
|
|
121
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
name: {
|
|
125
|
-
type:
|
|
125
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
126
126
|
isOptional: false;
|
|
127
127
|
};
|
|
128
128
|
slug: {
|
|
129
|
-
type:
|
|
129
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
130
130
|
isOptional: false;
|
|
131
131
|
};
|
|
132
132
|
description: {
|
|
133
|
-
type:
|
|
133
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
134
134
|
isOptional: false;
|
|
135
135
|
};
|
|
136
136
|
category: {
|
|
137
|
-
type:
|
|
137
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string]>;
|
|
138
138
|
isOptional: true;
|
|
139
139
|
};
|
|
140
140
|
parametersSchema: {
|
|
141
|
-
type:
|
|
141
|
+
type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
142
142
|
isOptional: false;
|
|
143
143
|
};
|
|
144
144
|
outputSchema: {
|
|
145
|
-
type:
|
|
145
|
+
type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
146
146
|
isOptional: true;
|
|
147
147
|
};
|
|
148
148
|
implementationType: {
|
|
149
|
-
type:
|
|
149
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string]>;
|
|
150
150
|
isOptional: false;
|
|
151
151
|
};
|
|
152
152
|
implementationConfig: {
|
|
153
|
-
type:
|
|
153
|
+
type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
154
154
|
isOptional: false;
|
|
155
155
|
};
|
|
156
156
|
maxInvocationsPerMinute: {
|
|
157
|
-
type:
|
|
157
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
158
158
|
isOptional: true;
|
|
159
159
|
};
|
|
160
160
|
timeoutMs: {
|
|
161
|
-
type:
|
|
161
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
162
162
|
isOptional: true;
|
|
163
163
|
};
|
|
164
164
|
tags: {
|
|
165
|
-
type:
|
|
165
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
166
166
|
isArray: true;
|
|
167
167
|
isOptional: true;
|
|
168
168
|
};
|
|
@@ -170,45 +170,45 @@ declare const CreateToolInputModel: _lssm_lib_schema831.SchemaModel<{
|
|
|
170
170
|
/**
|
|
171
171
|
* Input for updating a tool.
|
|
172
172
|
*/
|
|
173
|
-
declare const UpdateToolInputModel:
|
|
173
|
+
declare const UpdateToolInputModel: _lssm_lib_schema0.SchemaModel<{
|
|
174
174
|
toolId: {
|
|
175
|
-
type:
|
|
175
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
176
176
|
isOptional: false;
|
|
177
177
|
};
|
|
178
178
|
name: {
|
|
179
|
-
type:
|
|
179
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
180
180
|
isOptional: true;
|
|
181
181
|
};
|
|
182
182
|
description: {
|
|
183
|
-
type:
|
|
183
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
184
184
|
isOptional: true;
|
|
185
185
|
};
|
|
186
186
|
status: {
|
|
187
|
-
type:
|
|
187
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
|
|
188
188
|
isOptional: true;
|
|
189
189
|
};
|
|
190
190
|
parametersSchema: {
|
|
191
|
-
type:
|
|
191
|
+
type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
192
192
|
isOptional: true;
|
|
193
193
|
};
|
|
194
194
|
outputSchema: {
|
|
195
|
-
type:
|
|
195
|
+
type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
196
196
|
isOptional: true;
|
|
197
197
|
};
|
|
198
198
|
implementationConfig: {
|
|
199
|
-
type:
|
|
199
|
+
type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
200
200
|
isOptional: true;
|
|
201
201
|
};
|
|
202
202
|
maxInvocationsPerMinute: {
|
|
203
|
-
type:
|
|
203
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
204
204
|
isOptional: true;
|
|
205
205
|
};
|
|
206
206
|
timeoutMs: {
|
|
207
|
-
type:
|
|
207
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
208
208
|
isOptional: true;
|
|
209
209
|
};
|
|
210
210
|
tags: {
|
|
211
|
-
type:
|
|
211
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
212
212
|
isArray: true;
|
|
213
213
|
isOptional: true;
|
|
214
214
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.schema.d.ts","names":[],"sources":["../../src/tool/tool.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,SAuCX,
|
|
1
|
+
{"version":3,"file":"tool.schema.d.ts","names":[],"sources":["../../src/tool/tool.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,SAuCX,oBAvCoB,WAuCpB,CAAA;EAAA,EAAA,EAAA;UAAA,iBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;oCAvCoB,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EA4CT,CAAA;EAaX,gBAAA,EAAA;;;;;;;;;oCAb2B,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAkBhB,CAAA;EA8BX,oBAAA,EAAA;;;;;;;;;;;;;;;;;;qCA9B+B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,OAAA,EAAA,IAAA;IAmCpB,UAAA,EAAA,IAAA;EAyBX,CAAA;;;;;;;;;;;;;cA9EW,oCAAgB;;UAa3B,iBAAA,CAAA;gBAwC+B,KAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAnCpB,wCAAoB;;UA8B/B,iBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,wCAAoB;;UAyB/B,iBAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.agent-console",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251225042407",
|
|
4
4
|
"description": "Agent Console example - AI agent orchestration with tools, runs, and logs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -57,16 +57,16 @@
|
|
|
57
57
|
"test": "bun run"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@lssm/lib.schema": "0.0.0-canary-
|
|
61
|
-
"@lssm/lib.contracts": "0.0.0-canary-
|
|
62
|
-
"@lssm/lib.identity-rbac": "0.0.0-canary-
|
|
63
|
-
"@lssm/module.audit-trail": "0.0.0-canary-
|
|
64
|
-
"@lssm/lib.jobs": "0.0.0-canary-
|
|
60
|
+
"@lssm/lib.schema": "0.0.0-canary-20251225042407",
|
|
61
|
+
"@lssm/lib.contracts": "0.0.0-canary-20251225042407",
|
|
62
|
+
"@lssm/lib.identity-rbac": "0.0.0-canary-20251225042407",
|
|
63
|
+
"@lssm/module.audit-trail": "0.0.0-canary-20251225042407",
|
|
64
|
+
"@lssm/lib.jobs": "0.0.0-canary-20251225042407",
|
|
65
65
|
"zod": "^4.1.13"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@lssm/tool.tsdown": "0.0.0-canary-
|
|
69
|
-
"@lssm/tool.typescript": "0.0.0-canary-
|
|
68
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251225042407",
|
|
69
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251225042407",
|
|
70
70
|
"tsdown": "^0.18.1",
|
|
71
71
|
"typescript": "^5.9.3"
|
|
72
72
|
},
|
package/src/agent/agent.event.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { defineEvent, defineSchemaModel } from '@lssm/lib.contracts';
|
|
2
2
|
import { ScalarTypeEnum } from '@lssm/lib.schema';
|
|
3
3
|
|
|
4
|
+
const OWNERS = ['@agent-console-team'] as const;
|
|
5
|
+
|
|
4
6
|
/**
|
|
5
7
|
* Payload for agent created event.
|
|
6
8
|
*/
|
|
@@ -30,9 +32,14 @@ const AgentCreatedPayload = defineSchemaModel({
|
|
|
30
32
|
* AgentCreatedEvent - A new agent was created.
|
|
31
33
|
*/
|
|
32
34
|
export const AgentCreatedEvent = defineEvent({
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
meta: {
|
|
36
|
+
key: 'agent-console.agent.created',
|
|
37
|
+
version: 1,
|
|
38
|
+
description: 'A new AI agent was configured.',
|
|
39
|
+
stability: 'stable',
|
|
40
|
+
owners: [...OWNERS],
|
|
41
|
+
tags: ['agent', 'created'],
|
|
42
|
+
},
|
|
36
43
|
payload: AgentCreatedPayload,
|
|
37
44
|
});
|
|
38
45
|
|
|
@@ -63,9 +70,14 @@ const AgentUpdatedPayload = defineSchemaModel({
|
|
|
63
70
|
* AgentUpdatedEvent - An agent was updated.
|
|
64
71
|
*/
|
|
65
72
|
export const AgentUpdatedEvent = defineEvent({
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
73
|
+
meta: {
|
|
74
|
+
key: 'agent-console.agent.updated',
|
|
75
|
+
version: 1,
|
|
76
|
+
description: 'An AI agent configuration was updated.',
|
|
77
|
+
stability: 'stable',
|
|
78
|
+
owners: [...OWNERS],
|
|
79
|
+
tags: ['agent', 'updated'],
|
|
80
|
+
},
|
|
69
81
|
payload: AgentUpdatedPayload,
|
|
70
82
|
});
|
|
71
83
|
|
|
@@ -88,9 +100,14 @@ const AgentToolAssignedPayload = defineSchemaModel({
|
|
|
88
100
|
* AgentToolAssignedEvent - A tool was assigned to an agent.
|
|
89
101
|
*/
|
|
90
102
|
export const AgentToolAssignedEvent = defineEvent({
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
103
|
+
meta: {
|
|
104
|
+
key: 'agent-console.agent.toolAssigned',
|
|
105
|
+
version: 1,
|
|
106
|
+
description: 'A tool was assigned to an agent.',
|
|
107
|
+
stability: 'stable',
|
|
108
|
+
owners: [...OWNERS],
|
|
109
|
+
tags: ['agent', 'tool', 'assigned'],
|
|
110
|
+
},
|
|
94
111
|
payload: AgentToolAssignedPayload,
|
|
95
112
|
});
|
|
96
113
|
|
|
@@ -113,8 +130,13 @@ const AgentToolRemovedPayload = defineSchemaModel({
|
|
|
113
130
|
* AgentToolRemovedEvent - A tool was removed from an agent.
|
|
114
131
|
*/
|
|
115
132
|
export const AgentToolRemovedEvent = defineEvent({
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
133
|
+
meta: {
|
|
134
|
+
key: 'agent-console.agent.toolRemoved',
|
|
135
|
+
version: 1,
|
|
136
|
+
description: 'A tool was removed from an agent.',
|
|
137
|
+
stability: 'stable',
|
|
138
|
+
owners: [...OWNERS],
|
|
139
|
+
tags: ['agent', 'tool', 'removed'],
|
|
140
|
+
},
|
|
119
141
|
payload: AgentToolRemovedPayload,
|
|
120
142
|
});
|
|
@@ -16,7 +16,7 @@ const OWNERS = ['@agent-console-team'] as const;
|
|
|
16
16
|
*/
|
|
17
17
|
export const CreateAgentCommand = defineCommand({
|
|
18
18
|
meta: {
|
|
19
|
-
|
|
19
|
+
key: 'agent-console.agent.create',
|
|
20
20
|
version: 1,
|
|
21
21
|
stability: 'stable',
|
|
22
22
|
owners: [...OWNERS],
|
|
@@ -53,11 +53,11 @@ export const CreateAgentCommand = defineCommand({
|
|
|
53
53
|
// name: 'agent.created',
|
|
54
54
|
// version: 1,
|
|
55
55
|
// payload: AgentSummaryModel,
|
|
56
|
-
ref: AgentCreatedEvent,
|
|
56
|
+
ref: AgentCreatedEvent.meta,
|
|
57
57
|
when: 'Agent is successfully created',
|
|
58
58
|
},
|
|
59
59
|
],
|
|
60
|
-
audit: ['agent.created'],
|
|
60
|
+
audit: ['agent-console.agent.created'],
|
|
61
61
|
},
|
|
62
62
|
});
|
|
63
63
|
|
|
@@ -66,7 +66,7 @@ export const CreateAgentCommand = defineCommand({
|
|
|
66
66
|
*/
|
|
67
67
|
export const UpdateAgentCommand = defineCommand({
|
|
68
68
|
meta: {
|
|
69
|
-
|
|
69
|
+
key: 'agent-console.agent.update',
|
|
70
70
|
version: 1,
|
|
71
71
|
stability: 'stable',
|
|
72
72
|
owners: [...OWNERS],
|
|
@@ -99,8 +99,11 @@ export const UpdateAgentCommand = defineCommand({
|
|
|
99
99
|
sideEffects: {
|
|
100
100
|
emits: [
|
|
101
101
|
{
|
|
102
|
-
|
|
102
|
+
key: 'agent.updated',
|
|
103
103
|
version: 1,
|
|
104
|
+
stability: 'stable',
|
|
105
|
+
owners: [...OWNERS],
|
|
106
|
+
tags: ['agent', 'updated'],
|
|
104
107
|
when: 'Agent is updated',
|
|
105
108
|
payload: AgentSummaryModel,
|
|
106
109
|
},
|
|
@@ -114,7 +117,7 @@ export const UpdateAgentCommand = defineCommand({
|
|
|
114
117
|
*/
|
|
115
118
|
export const GetAgentQuery = defineQuery({
|
|
116
119
|
meta: {
|
|
117
|
-
|
|
120
|
+
key: 'agent-console.agent.get',
|
|
118
121
|
version: 1,
|
|
119
122
|
stability: 'stable',
|
|
120
123
|
owners: [...OWNERS],
|
|
@@ -149,7 +152,7 @@ export const GetAgentQuery = defineQuery({
|
|
|
149
152
|
*/
|
|
150
153
|
export const ListAgentsQuery = defineQuery({
|
|
151
154
|
meta: {
|
|
152
|
-
|
|
155
|
+
key: 'agent-console.agent.list',
|
|
153
156
|
version: 1,
|
|
154
157
|
stability: 'stable',
|
|
155
158
|
owners: [...OWNERS],
|
|
@@ -198,7 +201,7 @@ export const ListAgentsQuery = defineQuery({
|
|
|
198
201
|
*/
|
|
199
202
|
export const AssignToolToAgentCommand = defineCommand({
|
|
200
203
|
meta: {
|
|
201
|
-
|
|
204
|
+
key: 'agent-console.agent.assignTool',
|
|
202
205
|
version: 1,
|
|
203
206
|
stability: 'stable',
|
|
204
207
|
owners: [...OWNERS],
|
|
@@ -246,7 +249,7 @@ export const AssignToolToAgentCommand = defineCommand({
|
|
|
246
249
|
*/
|
|
247
250
|
export const RemoveToolFromAgentCommand = defineCommand({
|
|
248
251
|
meta: {
|
|
249
|
-
|
|
252
|
+
key: 'agent-console.agent.removeTool',
|
|
250
253
|
version: 1,
|
|
251
254
|
stability: 'stable',
|
|
252
255
|
owners: [...OWNERS],
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PresentationSpec } from '@lssm/lib.contracts';
|
|
2
|
+
import { StabilityEnum } from '@lssm/lib.contracts';
|
|
2
3
|
import { AgentSummaryModel } from './agent.schema';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -6,13 +7,17 @@ import { AgentSummaryModel } from './agent.schema';
|
|
|
6
7
|
*/
|
|
7
8
|
export const AgentListPresentation: PresentationSpec = {
|
|
8
9
|
meta: {
|
|
9
|
-
|
|
10
|
+
key: 'agent-console.agent.list',
|
|
10
11
|
version: 1,
|
|
12
|
+
title: 'Agent List',
|
|
11
13
|
description:
|
|
12
14
|
'List view of AI agents with status, model provider, and version info',
|
|
15
|
+
goal: 'Provide an overview of all agents in an organization.',
|
|
16
|
+
context: 'Main landing page for agent management.',
|
|
13
17
|
domain: 'agent-console',
|
|
14
18
|
owners: ['@agent-console-team'],
|
|
15
19
|
tags: ['agent', 'list', 'dashboard'],
|
|
20
|
+
stability: StabilityEnum.Experimental,
|
|
16
21
|
},
|
|
17
22
|
source: {
|
|
18
23
|
type: 'component',
|
|
@@ -29,13 +34,17 @@ export const AgentListPresentation: PresentationSpec = {
|
|
|
29
34
|
*/
|
|
30
35
|
export const AgentDetailPresentation: PresentationSpec = {
|
|
31
36
|
meta: {
|
|
32
|
-
|
|
37
|
+
key: 'agent-console.agent.detail',
|
|
33
38
|
version: 1,
|
|
39
|
+
title: 'Agent Details',
|
|
34
40
|
description:
|
|
35
41
|
'Detailed view of an AI agent with configuration, tools, and recent runs',
|
|
42
|
+
goal: 'Allow users to inspect and configure a specific agent.',
|
|
43
|
+
context: 'Detailed view of an agent.',
|
|
36
44
|
domain: 'agent-console',
|
|
37
45
|
owners: ['@agent-console-team'],
|
|
38
46
|
tags: ['agent', 'detail'],
|
|
47
|
+
stability: StabilityEnum.Experimental,
|
|
39
48
|
},
|
|
40
49
|
source: {
|
|
41
50
|
type: 'component',
|
|
@@ -51,12 +60,16 @@ export const AgentDetailPresentation: PresentationSpec = {
|
|
|
51
60
|
*/
|
|
52
61
|
export const AgentConsoleDashboardPresentation: PresentationSpec = {
|
|
53
62
|
meta: {
|
|
54
|
-
|
|
63
|
+
key: 'agent-console.dashboard',
|
|
55
64
|
version: 1,
|
|
65
|
+
title: 'Agent Console Dashboard',
|
|
56
66
|
description: 'Dashboard overview of AI agents, runs, and tools',
|
|
67
|
+
goal: 'Provide a high-level overview of the AI platform health and usage.',
|
|
68
|
+
context: 'Root dashboard of the Agent Console.',
|
|
57
69
|
domain: 'agent-console',
|
|
58
70
|
owners: ['@agent-console-team'],
|
|
59
71
|
tags: ['dashboard', 'overview'],
|
|
72
|
+
stability: StabilityEnum.Experimental,
|
|
60
73
|
},
|
|
61
74
|
source: {
|
|
62
75
|
type: 'component',
|