@lssm/example.agent-console 0.0.0-canary-20251223215909 → 0.0.0-canary-20251225044228
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 +33 -33
- package/.turbo/turbo-build.log +33 -33
- 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.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.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
package/src/agent.feature.ts
CHANGED
|
@@ -12,122 +12,123 @@ import type { FeatureModuleSpec } from '@lssm/lib.contracts';
|
|
|
12
12
|
export const AgentConsoleFeature: FeatureModuleSpec = {
|
|
13
13
|
meta: {
|
|
14
14
|
key: 'agent-console',
|
|
15
|
+
version: 1,
|
|
15
16
|
title: 'AI Agent Console',
|
|
16
17
|
description: 'AI agent orchestration with tools, runs, and logs management',
|
|
17
18
|
domain: 'ai-ops',
|
|
18
19
|
owners: ['@agent-console-team'],
|
|
19
20
|
tags: ['ai', 'agents', 'orchestration'],
|
|
20
|
-
stability: '
|
|
21
|
+
stability: 'stable',
|
|
21
22
|
},
|
|
22
23
|
|
|
23
24
|
// All contract operations included in this feature
|
|
24
25
|
operations: [
|
|
25
26
|
// Agent operations
|
|
26
|
-
{
|
|
27
|
-
{
|
|
28
|
-
{
|
|
29
|
-
{
|
|
30
|
-
{
|
|
31
|
-
{
|
|
27
|
+
{ key: 'agent-console.agent.create', version: 1 },
|
|
28
|
+
{ key: 'agent-console.agent.update', version: 1 },
|
|
29
|
+
{ key: 'agent-console.agent.get', version: 1 },
|
|
30
|
+
{ key: 'agent-console.agent.list', version: 1 },
|
|
31
|
+
{ key: 'agent-console.agent.assignTool', version: 1 },
|
|
32
|
+
{ key: 'agent-console.agent.removeTool', version: 1 },
|
|
32
33
|
|
|
33
34
|
// Tool operations
|
|
34
|
-
{
|
|
35
|
-
{
|
|
36
|
-
{
|
|
37
|
-
{
|
|
38
|
-
{
|
|
35
|
+
{ key: 'agent.tool.create', version: 1 },
|
|
36
|
+
{ key: 'agent.tool.update', version: 1 },
|
|
37
|
+
{ key: 'agent.tool.get', version: 1 },
|
|
38
|
+
{ key: 'agent.tool.list', version: 1 },
|
|
39
|
+
{ key: 'agent.tool.test', version: 1 },
|
|
39
40
|
|
|
40
41
|
// Run operations
|
|
41
|
-
{
|
|
42
|
-
{
|
|
43
|
-
{
|
|
44
|
-
{
|
|
45
|
-
{
|
|
46
|
-
{
|
|
47
|
-
{
|
|
42
|
+
{ key: 'agent.run.execute', version: 1 },
|
|
43
|
+
{ key: 'agent.run.cancel', version: 1 },
|
|
44
|
+
{ key: 'agent.run.get', version: 1 },
|
|
45
|
+
{ key: 'agent.run.list', version: 1 },
|
|
46
|
+
{ key: 'agent.run.getSteps', version: 1 },
|
|
47
|
+
{ key: 'agent.run.getLogs', version: 1 },
|
|
48
|
+
{ key: 'agent.run.getMetrics', version: 1 },
|
|
48
49
|
],
|
|
49
50
|
|
|
50
51
|
// Events emitted by this feature
|
|
51
52
|
events: [
|
|
52
53
|
// Agent events
|
|
53
|
-
{
|
|
54
|
-
{
|
|
55
|
-
{
|
|
56
|
-
{
|
|
54
|
+
{ key: 'agent-console.agent.created', version: 1 },
|
|
55
|
+
{ key: 'agent-console.agent.updated', version: 1 },
|
|
56
|
+
{ key: 'agent-console.agent.toolAssigned', version: 1 },
|
|
57
|
+
{ key: 'agent-console.agent.toolRemoved', version: 1 },
|
|
57
58
|
|
|
58
59
|
// Tool events
|
|
59
|
-
{
|
|
60
|
-
{
|
|
61
|
-
{
|
|
60
|
+
{ key: 'agent.tool.created', version: 1 },
|
|
61
|
+
{ key: 'agent.tool.updated', version: 1 },
|
|
62
|
+
{ key: 'agent.tool.statusChanged', version: 1 },
|
|
62
63
|
|
|
63
64
|
// Run events
|
|
64
|
-
{
|
|
65
|
-
{
|
|
66
|
-
{
|
|
67
|
-
{
|
|
68
|
-
{
|
|
69
|
-
{
|
|
70
|
-
{
|
|
65
|
+
{ key: 'agent.run.started', version: 1 },
|
|
66
|
+
{ key: 'agent.run.completed', version: 1 },
|
|
67
|
+
{ key: 'agent.run.failed', version: 1 },
|
|
68
|
+
{ key: 'agent.run.cancelled', version: 1 },
|
|
69
|
+
{ key: 'agent.run.toolInvoked', version: 1 },
|
|
70
|
+
{ key: 'agent.run.toolCompleted', version: 1 },
|
|
71
|
+
{ key: 'agent.run.messageGenerated', version: 1 },
|
|
71
72
|
],
|
|
72
73
|
|
|
73
74
|
// Presentations associated with this feature
|
|
74
75
|
presentations: [
|
|
75
|
-
{
|
|
76
|
-
{
|
|
77
|
-
{
|
|
78
|
-
{
|
|
79
|
-
{
|
|
80
|
-
{
|
|
81
|
-
{
|
|
76
|
+
{ key: 'agent-console.dashboard', version: 1 },
|
|
77
|
+
{ key: 'agent-console.agent.list', version: 1 },
|
|
78
|
+
{ key: 'agent-console.agent.detail', version: 1 },
|
|
79
|
+
{ key: 'agent-console.run.list', version: 1 },
|
|
80
|
+
{ key: 'agent-console.run.detail', version: 1 },
|
|
81
|
+
{ key: 'agent-console.tool.list', version: 1 },
|
|
82
|
+
{ key: 'agent-console.tool.detail', version: 1 },
|
|
82
83
|
],
|
|
83
84
|
|
|
84
85
|
// Link operations to their primary presentations
|
|
85
86
|
opToPresentation: [
|
|
86
87
|
{
|
|
87
|
-
op: {
|
|
88
|
-
pres: {
|
|
88
|
+
op: { key: 'agent-console.agent.list', version: 1 },
|
|
89
|
+
pres: { key: 'agent-console.agent.list', version: 1 },
|
|
89
90
|
},
|
|
90
91
|
{
|
|
91
|
-
op: {
|
|
92
|
-
pres: {
|
|
92
|
+
op: { key: 'agent-console.agent.get', version: 1 },
|
|
93
|
+
pres: { key: 'agent-console.agent.detail', version: 1 },
|
|
93
94
|
},
|
|
94
95
|
{
|
|
95
|
-
op: {
|
|
96
|
-
pres: {
|
|
96
|
+
op: { key: 'agent.run.list', version: 1 },
|
|
97
|
+
pres: { key: 'agent-console.run.list', version: 1 },
|
|
97
98
|
},
|
|
98
99
|
{
|
|
99
|
-
op: {
|
|
100
|
-
pres: {
|
|
100
|
+
op: { key: 'agent.run.get', version: 1 },
|
|
101
|
+
pres: { key: 'agent-console.run.detail', version: 1 },
|
|
101
102
|
},
|
|
102
103
|
{
|
|
103
|
-
op: {
|
|
104
|
-
pres: {
|
|
104
|
+
op: { key: 'agent.tool.list', version: 1 },
|
|
105
|
+
pres: { key: 'agent-console.tool.list', version: 1 },
|
|
105
106
|
},
|
|
106
107
|
{
|
|
107
|
-
op: {
|
|
108
|
-
pres: {
|
|
108
|
+
op: { key: 'agent.tool.get', version: 1 },
|
|
109
|
+
pres: { key: 'agent-console.tool.detail', version: 1 },
|
|
109
110
|
},
|
|
110
111
|
],
|
|
111
112
|
|
|
112
113
|
// Target requirements for multi-surface rendering
|
|
113
114
|
presentationsTargets: [
|
|
114
115
|
{
|
|
115
|
-
|
|
116
|
+
key: 'agent-console.dashboard',
|
|
116
117
|
version: 1,
|
|
117
118
|
targets: ['react', 'markdown'],
|
|
118
119
|
},
|
|
119
120
|
{
|
|
120
|
-
|
|
121
|
+
key: 'agent-console.agent.list',
|
|
121
122
|
version: 1,
|
|
122
123
|
targets: ['react', 'markdown', 'application/json'],
|
|
123
124
|
},
|
|
124
125
|
{
|
|
125
|
-
|
|
126
|
+
key: 'agent-console.run.list',
|
|
126
127
|
version: 1,
|
|
127
128
|
targets: ['react', 'markdown', 'application/json'],
|
|
128
129
|
},
|
|
129
130
|
{
|
|
130
|
-
|
|
131
|
+
key: 'agent-console.tool.list',
|
|
131
132
|
version: 1,
|
|
132
133
|
targets: ['react', 'markdown', 'application/json'],
|
|
133
134
|
},
|
|
@@ -140,5 +141,6 @@ export const AgentConsoleFeature: FeatureModuleSpec = {
|
|
|
140
141
|
{ key: 'audit-trail', version: 1 },
|
|
141
142
|
{ key: 'jobs', version: 1 },
|
|
142
143
|
],
|
|
144
|
+
provides: [{ key: 'agent', version: 1 }],
|
|
143
145
|
},
|
|
144
146
|
};
|
package/src/run/run.event.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { defineEvent, defineSchemaModel } from '@lssm/lib.contracts';
|
|
2
2
|
import { ScalarTypeEnum, defineEnum } from '@lssm/lib.schema';
|
|
3
3
|
|
|
4
|
+
const OWNERS = ['@agent-console-team'] as const;
|
|
5
|
+
|
|
4
6
|
/**
|
|
5
7
|
* Payload for run started event.
|
|
6
8
|
*/
|
|
@@ -26,9 +28,14 @@ const RunStartedPayload = defineSchemaModel({
|
|
|
26
28
|
* RunStartedEvent - An agent run was started.
|
|
27
29
|
*/
|
|
28
30
|
export const RunStartedEvent = defineEvent({
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
meta: {
|
|
32
|
+
key: 'agent.run.started',
|
|
33
|
+
version: 1,
|
|
34
|
+
description: 'An agent run was started.',
|
|
35
|
+
stability: 'stable',
|
|
36
|
+
owners: [...OWNERS],
|
|
37
|
+
tags: ['run', 'started'],
|
|
38
|
+
},
|
|
32
39
|
payload: RunStartedPayload,
|
|
33
40
|
});
|
|
34
41
|
|
|
@@ -68,9 +75,14 @@ const RunCompletedPayload = defineSchemaModel({
|
|
|
68
75
|
* RunCompletedEvent - An agent run completed successfully.
|
|
69
76
|
*/
|
|
70
77
|
export const RunCompletedEvent = defineEvent({
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
78
|
+
meta: {
|
|
79
|
+
key: 'agent.run.completed',
|
|
80
|
+
version: 1,
|
|
81
|
+
description: 'An agent run completed successfully.',
|
|
82
|
+
stability: 'stable',
|
|
83
|
+
owners: [...OWNERS],
|
|
84
|
+
tags: ['run', 'completed'],
|
|
85
|
+
},
|
|
74
86
|
payload: RunCompletedPayload,
|
|
75
87
|
});
|
|
76
88
|
|
|
@@ -102,9 +114,14 @@ const RunFailedPayload = defineSchemaModel({
|
|
|
102
114
|
* RunFailedEvent - An agent run failed.
|
|
103
115
|
*/
|
|
104
116
|
export const RunFailedEvent = defineEvent({
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
117
|
+
meta: {
|
|
118
|
+
key: 'agent.run.failed',
|
|
119
|
+
version: 1,
|
|
120
|
+
description: 'An agent run encountered an error.',
|
|
121
|
+
stability: 'stable',
|
|
122
|
+
owners: [...OWNERS],
|
|
123
|
+
tags: ['run', 'failed'],
|
|
124
|
+
},
|
|
108
125
|
payload: RunFailedPayload,
|
|
109
126
|
});
|
|
110
127
|
|
|
@@ -134,9 +151,14 @@ const RunCancelledPayload = defineSchemaModel({
|
|
|
134
151
|
* RunCancelledEvent - An agent run was cancelled.
|
|
135
152
|
*/
|
|
136
153
|
export const RunCancelledEvent = defineEvent({
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
154
|
+
meta: {
|
|
155
|
+
key: 'agent.run.cancelled',
|
|
156
|
+
version: 1,
|
|
157
|
+
description: 'An agent run was cancelled by the user.',
|
|
158
|
+
stability: 'stable',
|
|
159
|
+
owners: [...OWNERS],
|
|
160
|
+
tags: ['run', 'cancelled'],
|
|
161
|
+
},
|
|
140
162
|
payload: RunCancelledPayload,
|
|
141
163
|
});
|
|
142
164
|
|
|
@@ -160,9 +182,14 @@ const ToolInvokedPayload = defineSchemaModel({
|
|
|
160
182
|
* ToolInvokedEvent - A tool was invoked during a run.
|
|
161
183
|
*/
|
|
162
184
|
export const ToolInvokedEvent = defineEvent({
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
185
|
+
meta: {
|
|
186
|
+
key: 'agent.run.toolInvoked',
|
|
187
|
+
version: 1,
|
|
188
|
+
description: 'A tool was invoked during an agent run.',
|
|
189
|
+
stability: 'stable',
|
|
190
|
+
owners: [...OWNERS],
|
|
191
|
+
tags: ['run', 'tool', 'invoked'],
|
|
192
|
+
},
|
|
166
193
|
payload: ToolInvokedPayload,
|
|
167
194
|
});
|
|
168
195
|
|
|
@@ -189,9 +216,14 @@ const ToolCompletedPayload = defineSchemaModel({
|
|
|
189
216
|
* ToolCompletedEvent - A tool invocation completed.
|
|
190
217
|
*/
|
|
191
218
|
export const ToolCompletedEvent = defineEvent({
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
219
|
+
meta: {
|
|
220
|
+
key: 'agent.run.toolCompleted',
|
|
221
|
+
version: 1,
|
|
222
|
+
description: 'A tool invocation completed during an agent run.',
|
|
223
|
+
stability: 'stable',
|
|
224
|
+
owners: [...OWNERS],
|
|
225
|
+
tags: ['run', 'tool', 'completed'],
|
|
226
|
+
},
|
|
195
227
|
payload: ToolCompletedPayload,
|
|
196
228
|
});
|
|
197
229
|
|
|
@@ -220,8 +252,13 @@ const MessageGeneratedPayload = defineSchemaModel({
|
|
|
220
252
|
* MessageGeneratedEvent - Agent generated a message.
|
|
221
253
|
*/
|
|
222
254
|
export const MessageGeneratedEvent = defineEvent({
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
255
|
+
meta: {
|
|
256
|
+
key: 'agent.run.messageGenerated',
|
|
257
|
+
version: 1,
|
|
258
|
+
description: 'An agent generated a message during a run.',
|
|
259
|
+
stability: 'stable',
|
|
260
|
+
owners: [...OWNERS],
|
|
261
|
+
tags: ['run', 'message', 'generated'],
|
|
262
|
+
},
|
|
226
263
|
payload: MessageGeneratedPayload,
|
|
227
264
|
});
|
package/src/run/run.operation.ts
CHANGED
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
TimelineDataPointModel,
|
|
11
11
|
} from './run.schema';
|
|
12
12
|
|
|
13
|
-
const OWNERS = ['agent-console-team'] as const;
|
|
13
|
+
const OWNERS = ['@agent-console-team'] as const;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* ExecuteAgentCommand - Starts a new agent run.
|
|
17
17
|
*/
|
|
18
18
|
export const ExecuteAgentCommand = defineCommand({
|
|
19
19
|
meta: {
|
|
20
|
-
|
|
20
|
+
key: 'agent.run.execute',
|
|
21
21
|
version: 1,
|
|
22
22
|
stability: 'stable',
|
|
23
23
|
owners: [...OWNERS],
|
|
@@ -72,8 +72,11 @@ export const ExecuteAgentCommand = defineCommand({
|
|
|
72
72
|
sideEffects: {
|
|
73
73
|
emits: [
|
|
74
74
|
{
|
|
75
|
-
|
|
75
|
+
key: 'run.started',
|
|
76
76
|
version: 1,
|
|
77
|
+
stability: 'stable',
|
|
78
|
+
owners: [...OWNERS],
|
|
79
|
+
tags: ['run', 'started'],
|
|
77
80
|
when: 'Run is queued',
|
|
78
81
|
payload: RunSummaryModel,
|
|
79
82
|
},
|
|
@@ -87,7 +90,7 @@ export const ExecuteAgentCommand = defineCommand({
|
|
|
87
90
|
*/
|
|
88
91
|
export const CancelRunCommand = defineCommand({
|
|
89
92
|
meta: {
|
|
90
|
-
|
|
93
|
+
key: 'agent.run.cancel',
|
|
91
94
|
version: 1,
|
|
92
95
|
stability: 'stable',
|
|
93
96
|
owners: [...OWNERS],
|
|
@@ -130,8 +133,11 @@ export const CancelRunCommand = defineCommand({
|
|
|
130
133
|
sideEffects: {
|
|
131
134
|
emits: [
|
|
132
135
|
{
|
|
133
|
-
|
|
136
|
+
key: 'run.cancelled',
|
|
134
137
|
version: 1,
|
|
138
|
+
stability: 'stable',
|
|
139
|
+
owners: [...OWNERS],
|
|
140
|
+
tags: ['run', 'cancelled'],
|
|
135
141
|
when: 'Run is cancelled',
|
|
136
142
|
payload: RunSummaryModel,
|
|
137
143
|
},
|
|
@@ -145,7 +151,7 @@ export const CancelRunCommand = defineCommand({
|
|
|
145
151
|
*/
|
|
146
152
|
export const GetRunQuery = defineQuery({
|
|
147
153
|
meta: {
|
|
148
|
-
|
|
154
|
+
key: 'agent.run.get',
|
|
149
155
|
version: 1,
|
|
150
156
|
stability: 'stable',
|
|
151
157
|
owners: [...OWNERS],
|
|
@@ -181,7 +187,7 @@ export const GetRunQuery = defineQuery({
|
|
|
181
187
|
*/
|
|
182
188
|
export const ListRunsQuery = defineQuery({
|
|
183
189
|
meta: {
|
|
184
|
-
|
|
190
|
+
key: 'agent.run.list',
|
|
185
191
|
version: 1,
|
|
186
192
|
stability: 'stable',
|
|
187
193
|
owners: [...OWNERS],
|
|
@@ -233,7 +239,7 @@ export const ListRunsQuery = defineQuery({
|
|
|
233
239
|
*/
|
|
234
240
|
export const GetRunStepsQuery = defineQuery({
|
|
235
241
|
meta: {
|
|
236
|
-
|
|
242
|
+
key: 'agent.run.getSteps',
|
|
237
243
|
version: 1,
|
|
238
244
|
stability: 'stable',
|
|
239
245
|
owners: [...OWNERS],
|
|
@@ -264,7 +270,7 @@ export const GetRunStepsQuery = defineQuery({
|
|
|
264
270
|
*/
|
|
265
271
|
export const GetRunLogsQuery = defineQuery({
|
|
266
272
|
meta: {
|
|
267
|
-
|
|
273
|
+
key: 'agent.run.getLogs',
|
|
268
274
|
version: 1,
|
|
269
275
|
stability: 'stable',
|
|
270
276
|
owners: [...OWNERS],
|
|
@@ -309,7 +315,7 @@ export const GetRunLogsQuery = defineQuery({
|
|
|
309
315
|
*/
|
|
310
316
|
export const GetRunMetricsQuery = defineQuery({
|
|
311
317
|
meta: {
|
|
312
|
-
|
|
318
|
+
key: 'agent.run.getMetrics',
|
|
313
319
|
version: 1,
|
|
314
320
|
stability: 'stable',
|
|
315
321
|
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 { RunSummaryModel } from './run.schema';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -6,13 +7,17 @@ import { RunSummaryModel } from './run.schema';
|
|
|
6
7
|
*/
|
|
7
8
|
export const RunListPresentation: PresentationSpec = {
|
|
8
9
|
meta: {
|
|
9
|
-
|
|
10
|
+
key: 'agent-console.run.list',
|
|
10
11
|
version: 1,
|
|
12
|
+
title: 'Run List',
|
|
11
13
|
description:
|
|
12
14
|
'List view of agent runs with status, tokens, and duration info',
|
|
15
|
+
goal: 'Provide an overview of agent execution history and performance.',
|
|
16
|
+
context: 'Run history dashboard.',
|
|
13
17
|
domain: 'agent-console',
|
|
14
18
|
owners: ['@agent-console-team'],
|
|
15
19
|
tags: ['run', 'list', 'dashboard'],
|
|
20
|
+
stability: StabilityEnum.Experimental,
|
|
16
21
|
},
|
|
17
22
|
source: {
|
|
18
23
|
type: 'component',
|
|
@@ -29,12 +34,16 @@ export const RunListPresentation: PresentationSpec = {
|
|
|
29
34
|
*/
|
|
30
35
|
export const RunDetailPresentation: PresentationSpec = {
|
|
31
36
|
meta: {
|
|
32
|
-
|
|
37
|
+
key: 'agent-console.run.detail',
|
|
33
38
|
version: 1,
|
|
39
|
+
title: 'Run Details',
|
|
34
40
|
description: 'Detailed view of an agent run with steps, logs, and metrics',
|
|
41
|
+
goal: 'Allow users to inspect and debug a specific agent run.',
|
|
42
|
+
context: 'Detailed view of an agent run.',
|
|
35
43
|
domain: 'agent-console',
|
|
36
44
|
owners: ['@agent-console-team'],
|
|
37
45
|
tags: ['run', 'detail'],
|
|
46
|
+
stability: StabilityEnum.Experimental,
|
|
38
47
|
},
|
|
39
48
|
source: {
|
|
40
49
|
type: 'component',
|
package/src/tool/tool.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 tool created event.
|
|
6
8
|
*/
|
|
@@ -29,9 +31,14 @@ const ToolCreatedPayload = defineSchemaModel({
|
|
|
29
31
|
* ToolCreatedEvent - A new tool was created.
|
|
30
32
|
*/
|
|
31
33
|
export const ToolCreatedEvent = defineEvent({
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
meta: {
|
|
35
|
+
key: 'agent.tool.created',
|
|
36
|
+
version: 1,
|
|
37
|
+
description: 'A new AI tool was created.',
|
|
38
|
+
stability: 'stable',
|
|
39
|
+
owners: [...OWNERS],
|
|
40
|
+
tags: ['tool', 'created'],
|
|
41
|
+
},
|
|
35
42
|
payload: ToolCreatedPayload,
|
|
36
43
|
});
|
|
37
44
|
|
|
@@ -62,9 +69,14 @@ const ToolUpdatedPayload = defineSchemaModel({
|
|
|
62
69
|
* ToolUpdatedEvent - A tool was updated.
|
|
63
70
|
*/
|
|
64
71
|
export const ToolUpdatedEvent = defineEvent({
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
meta: {
|
|
73
|
+
key: 'agent.tool.updated',
|
|
74
|
+
version: 1,
|
|
75
|
+
description: 'An AI tool configuration was updated.',
|
|
76
|
+
stability: 'stable',
|
|
77
|
+
owners: [...OWNERS],
|
|
78
|
+
tags: ['tool', 'updated'],
|
|
79
|
+
},
|
|
68
80
|
payload: ToolUpdatedPayload,
|
|
69
81
|
});
|
|
70
82
|
|
|
@@ -94,9 +106,14 @@ const ToolStatusChangedPayload = defineSchemaModel({
|
|
|
94
106
|
* ToolStatusChangedEvent - A tool's status was changed.
|
|
95
107
|
*/
|
|
96
108
|
export const ToolStatusChangedEvent = defineEvent({
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
109
|
+
meta: {
|
|
110
|
+
key: 'agent.tool.statusChanged',
|
|
111
|
+
version: 1,
|
|
112
|
+
description:
|
|
113
|
+
'An AI tool status was changed (activated, deprecated, disabled).',
|
|
114
|
+
stability: 'stable',
|
|
115
|
+
owners: [...OWNERS],
|
|
116
|
+
tags: ['tool', 'status'],
|
|
117
|
+
},
|
|
101
118
|
payload: ToolStatusChangedPayload,
|
|
102
119
|
});
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
UpdateToolInputModel,
|
|
9
9
|
} from './tool.schema';
|
|
10
10
|
|
|
11
|
-
const OWNERS = ['agent-console-team'] as const;
|
|
11
|
+
const OWNERS = ['@agent-console-team'] as const;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* CreateToolCommand - Creates a new tool definition.
|
|
15
15
|
*/
|
|
16
16
|
export const CreateToolCommand = defineCommand({
|
|
17
17
|
meta: {
|
|
18
|
-
|
|
18
|
+
key: 'agent.tool.create',
|
|
19
19
|
version: 1,
|
|
20
20
|
stability: 'stable',
|
|
21
21
|
owners: [...OWNERS],
|
|
@@ -48,8 +48,11 @@ export const CreateToolCommand = defineCommand({
|
|
|
48
48
|
sideEffects: {
|
|
49
49
|
emits: [
|
|
50
50
|
{
|
|
51
|
-
|
|
51
|
+
key: 'tool.created',
|
|
52
52
|
version: 1,
|
|
53
|
+
stability: 'stable',
|
|
54
|
+
owners: [...OWNERS],
|
|
55
|
+
tags: ['tool', 'created'],
|
|
53
56
|
when: 'Tool is successfully created',
|
|
54
57
|
payload: ToolSummaryModel,
|
|
55
58
|
},
|
|
@@ -63,7 +66,7 @@ export const CreateToolCommand = defineCommand({
|
|
|
63
66
|
*/
|
|
64
67
|
export const UpdateToolCommand = defineCommand({
|
|
65
68
|
meta: {
|
|
66
|
-
|
|
69
|
+
key: 'agent.tool.update',
|
|
67
70
|
version: 1,
|
|
68
71
|
stability: 'stable',
|
|
69
72
|
owners: [...OWNERS],
|
|
@@ -96,8 +99,11 @@ export const UpdateToolCommand = defineCommand({
|
|
|
96
99
|
sideEffects: {
|
|
97
100
|
emits: [
|
|
98
101
|
{
|
|
99
|
-
|
|
102
|
+
key: 'tool.updated',
|
|
100
103
|
version: 1,
|
|
104
|
+
stability: 'stable',
|
|
105
|
+
owners: [...OWNERS],
|
|
106
|
+
tags: ['tool', 'updated'],
|
|
101
107
|
when: 'Tool is updated',
|
|
102
108
|
payload: ToolSummaryModel,
|
|
103
109
|
},
|
|
@@ -111,7 +117,7 @@ export const UpdateToolCommand = defineCommand({
|
|
|
111
117
|
*/
|
|
112
118
|
export const GetToolQuery = defineQuery({
|
|
113
119
|
meta: {
|
|
114
|
-
|
|
120
|
+
key: 'agent.tool.get',
|
|
115
121
|
version: 1,
|
|
116
122
|
stability: 'stable',
|
|
117
123
|
owners: [...OWNERS],
|
|
@@ -145,7 +151,7 @@ export const GetToolQuery = defineQuery({
|
|
|
145
151
|
*/
|
|
146
152
|
export const ListToolsQuery = defineQuery({
|
|
147
153
|
meta: {
|
|
148
|
-
|
|
154
|
+
key: 'agent.tool.list',
|
|
149
155
|
version: 1,
|
|
150
156
|
stability: 'stable',
|
|
151
157
|
owners: [...OWNERS],
|
|
@@ -194,7 +200,7 @@ export const ListToolsQuery = defineQuery({
|
|
|
194
200
|
*/
|
|
195
201
|
export const TestToolCommand = defineCommand({
|
|
196
202
|
meta: {
|
|
197
|
-
|
|
203
|
+
key: 'agent.tool.test',
|
|
198
204
|
version: 1,
|
|
199
205
|
stability: 'stable',
|
|
200
206
|
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 { ToolSummaryModel } from './tool.schema';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -6,13 +7,17 @@ import { ToolSummaryModel } from './tool.schema';
|
|
|
6
7
|
*/
|
|
7
8
|
export const ToolListPresentation: PresentationSpec = {
|
|
8
9
|
meta: {
|
|
9
|
-
|
|
10
|
+
key: 'agent-console.tool.list',
|
|
10
11
|
version: 1,
|
|
12
|
+
title: 'Tool List',
|
|
11
13
|
description:
|
|
12
14
|
'List view of AI tools with category, status, and version info',
|
|
15
|
+
goal: 'Provide an overview of all available tools for agents.',
|
|
16
|
+
context: 'Tool management dashboard.',
|
|
13
17
|
domain: 'agent-console',
|
|
14
18
|
owners: ['@agent-console-team'],
|
|
15
19
|
tags: ['tool', 'list', 'dashboard'],
|
|
20
|
+
stability: StabilityEnum.Experimental,
|
|
16
21
|
},
|
|
17
22
|
source: {
|
|
18
23
|
type: 'component',
|
|
@@ -29,13 +34,17 @@ export const ToolListPresentation: PresentationSpec = {
|
|
|
29
34
|
*/
|
|
30
35
|
export const ToolDetailPresentation: PresentationSpec = {
|
|
31
36
|
meta: {
|
|
32
|
-
|
|
37
|
+
key: 'agent-console.tool.detail',
|
|
33
38
|
version: 1,
|
|
39
|
+
title: 'Tool Details',
|
|
34
40
|
description:
|
|
35
41
|
'Detailed view of an AI tool with configuration and test panel',
|
|
42
|
+
goal: 'Allow users to inspect and test a specific tool.',
|
|
43
|
+
context: 'Detailed view of a tool.',
|
|
36
44
|
domain: 'agent-console',
|
|
37
45
|
owners: ['@agent-console-team'],
|
|
38
46
|
tags: ['tool', 'detail'],
|
|
47
|
+
stability: StabilityEnum.Experimental,
|
|
39
48
|
},
|
|
40
49
|
source: {
|
|
41
50
|
type: 'component',
|