@lssm/example.agent-console 0.0.0-canary-20251223214424 → 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 +29 -29
- package/.turbo/turbo-build.log +32 -32
- package/CHANGELOG.md +6 -6
- 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 +5 -39
- 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.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/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"}
|
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',
|
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
|
});
|