@contractspec/example.agent-console 1.44.1 → 1.45.1
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 +26 -26
- package/.turbo/turbo-build.log +32 -32
- package/CHANGELOG.md +41 -0
- package/dist/agent/agent.event.js +4 -4
- package/dist/agent/agent.event.js.map +1 -1
- package/dist/agent/agent.operation.d.ts +1 -1
- package/dist/agent/agent.operation.js +7 -7
- package/dist/agent/agent.operation.js.map +1 -1
- package/dist/agent/agent.presentation.js +3 -3
- package/dist/agent/agent.presentation.js.map +1 -1
- package/dist/agent/agent.schema.d.ts +95 -95
- package/dist/agent.feature.js +60 -60
- package/dist/agent.feature.js.map +1 -1
- package/dist/example.d.ts +3 -36
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +16 -11
- package/dist/example.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.js +7 -7
- package/dist/run/run.event.js.map +1 -1
- package/dist/run/run.operation.d.ts +2 -2
- package/dist/run/run.operation.js +9 -9
- package/dist/run/run.operation.js.map +1 -1
- package/dist/run/run.presentation.js +2 -2
- package/dist/run/run.presentation.js.map +1 -1
- package/dist/tool/tool.event.js +3 -3
- package/dist/tool/tool.event.js.map +1 -1
- package/dist/tool/tool.operation.d.ts +2 -2
- package/dist/tool/tool.operation.js +7 -7
- package/dist/tool/tool.operation.js.map +1 -1
- package/dist/tool/tool.presentation.js +2 -2
- package/dist/tool/tool.presentation.js.map +1 -1
- package/package.json +8 -8
- package/src/agent/agent.event.ts +4 -4
- package/src/agent/agent.operation.ts +8 -8
- package/src/agent/agent.presentation.ts +3 -3
- package/src/agent.feature.ts +60 -60
- package/src/example.ts +16 -9
- package/src/run/run.event.ts +7 -7
- package/src/run/run.operation.ts +9 -9
- package/src/run/run.presentation.ts +2 -2
- package/src/tool/tool.event.ts +3 -3
- package/src/tool/tool.operation.ts +7 -7
- package/src/tool/tool.presentation.ts +2 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -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 '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/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
|
+
{"version":3,"file":"tool.presentation.js","names":["ToolListPresentation: PresentationSpec","ToolDetailPresentation: PresentationSpec"],"sources":["../../src/tool/tool.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/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.0.0',\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.0.0',\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": "@contractspec/example.agent-console",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.45.1",
|
|
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
|
-
"@contractspec/lib.schema": "1.
|
|
61
|
-
"@contractspec/lib.contracts": "1.
|
|
62
|
-
"@contractspec/lib.identity-rbac": "1.
|
|
63
|
-
"@contractspec/module.audit-trail": "1.
|
|
64
|
-
"@contractspec/lib.jobs": "1.
|
|
60
|
+
"@contractspec/lib.schema": "1.45.1",
|
|
61
|
+
"@contractspec/lib.contracts": "1.45.1",
|
|
62
|
+
"@contractspec/lib.identity-rbac": "1.45.1",
|
|
63
|
+
"@contractspec/module.audit-trail": "1.45.1",
|
|
64
|
+
"@contractspec/lib.jobs": "1.45.1",
|
|
65
65
|
"zod": "^4.1.13"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@contractspec/tool.tsdown": "1.
|
|
69
|
-
"@contractspec/tool.typescript": "1.
|
|
68
|
+
"@contractspec/tool.tsdown": "1.45.1",
|
|
69
|
+
"@contractspec/tool.typescript": "1.45.1",
|
|
70
70
|
"tsdown": "^0.18.3",
|
|
71
71
|
"typescript": "^5.9.3"
|
|
72
72
|
},
|
package/src/agent/agent.event.ts
CHANGED
|
@@ -34,7 +34,7 @@ const AgentCreatedPayload = defineSchemaModel({
|
|
|
34
34
|
export const AgentCreatedEvent = defineEvent({
|
|
35
35
|
meta: {
|
|
36
36
|
key: 'agent-console.agent.created',
|
|
37
|
-
version: 1,
|
|
37
|
+
version: '1.0.0',
|
|
38
38
|
description: 'A new AI agent was configured.',
|
|
39
39
|
stability: 'stable',
|
|
40
40
|
owners: [...OWNERS],
|
|
@@ -72,7 +72,7 @@ const AgentUpdatedPayload = defineSchemaModel({
|
|
|
72
72
|
export const AgentUpdatedEvent = defineEvent({
|
|
73
73
|
meta: {
|
|
74
74
|
key: 'agent-console.agent.updated',
|
|
75
|
-
version: 1,
|
|
75
|
+
version: '1.0.0',
|
|
76
76
|
description: 'An AI agent configuration was updated.',
|
|
77
77
|
stability: 'stable',
|
|
78
78
|
owners: [...OWNERS],
|
|
@@ -102,7 +102,7 @@ const AgentToolAssignedPayload = defineSchemaModel({
|
|
|
102
102
|
export const AgentToolAssignedEvent = defineEvent({
|
|
103
103
|
meta: {
|
|
104
104
|
key: 'agent-console.agent.toolAssigned',
|
|
105
|
-
version: 1,
|
|
105
|
+
version: '1.0.0',
|
|
106
106
|
description: 'A tool was assigned to an agent.',
|
|
107
107
|
stability: 'stable',
|
|
108
108
|
owners: [...OWNERS],
|
|
@@ -132,7 +132,7 @@ const AgentToolRemovedPayload = defineSchemaModel({
|
|
|
132
132
|
export const AgentToolRemovedEvent = defineEvent({
|
|
133
133
|
meta: {
|
|
134
134
|
key: 'agent-console.agent.toolRemoved',
|
|
135
|
-
version: 1,
|
|
135
|
+
version: '1.0.0',
|
|
136
136
|
description: 'A tool was removed from an agent.',
|
|
137
137
|
stability: 'stable',
|
|
138
138
|
owners: [...OWNERS],
|
|
@@ -20,7 +20,7 @@ const OWNERS = ['@agent-console-team'] as const;
|
|
|
20
20
|
export const CreateAgentCommand = defineCommand({
|
|
21
21
|
meta: {
|
|
22
22
|
key: 'agent-console.agent.create',
|
|
23
|
-
version: 1,
|
|
23
|
+
version: '1.0.0',
|
|
24
24
|
stability: 'stable',
|
|
25
25
|
owners: [...OWNERS],
|
|
26
26
|
tags: ['agent', 'create'],
|
|
@@ -54,7 +54,7 @@ export const CreateAgentCommand = defineCommand({
|
|
|
54
54
|
emits: [
|
|
55
55
|
{
|
|
56
56
|
// name: 'agent.created',
|
|
57
|
-
// version: 1,
|
|
57
|
+
// version: '1.0.0',
|
|
58
58
|
// payload: AgentSummaryModel,
|
|
59
59
|
ref: AgentCreatedEvent.meta,
|
|
60
60
|
when: 'Agent is successfully created',
|
|
@@ -106,7 +106,7 @@ export const CreateAgentCommand = defineCommand({
|
|
|
106
106
|
export const UpdateAgentCommand = defineCommand({
|
|
107
107
|
meta: {
|
|
108
108
|
key: 'agent-console.agent.update',
|
|
109
|
-
version: 1,
|
|
109
|
+
version: '1.0.0',
|
|
110
110
|
stability: 'stable',
|
|
111
111
|
owners: [...OWNERS],
|
|
112
112
|
tags: ['agent', 'update'],
|
|
@@ -139,7 +139,7 @@ export const UpdateAgentCommand = defineCommand({
|
|
|
139
139
|
emits: [
|
|
140
140
|
{
|
|
141
141
|
key: 'agent.updated',
|
|
142
|
-
version: 1,
|
|
142
|
+
version: '1.0.0',
|
|
143
143
|
stability: 'stable',
|
|
144
144
|
owners: [...OWNERS],
|
|
145
145
|
tags: ['agent', 'updated'],
|
|
@@ -189,7 +189,7 @@ export const UpdateAgentCommand = defineCommand({
|
|
|
189
189
|
export const GetAgentQuery = defineQuery({
|
|
190
190
|
meta: {
|
|
191
191
|
key: 'agent-console.agent.get',
|
|
192
|
-
version: 1,
|
|
192
|
+
version: '1.0.0',
|
|
193
193
|
stability: 'stable',
|
|
194
194
|
owners: [...OWNERS],
|
|
195
195
|
tags: ['agent', 'get'],
|
|
@@ -252,7 +252,7 @@ export const GetAgentQuery = defineQuery({
|
|
|
252
252
|
export const ListAgentsQuery = defineQuery({
|
|
253
253
|
meta: {
|
|
254
254
|
key: 'agent-console.agent.list',
|
|
255
|
-
version: 1,
|
|
255
|
+
version: '1.0.0',
|
|
256
256
|
stability: 'stable',
|
|
257
257
|
owners: [...OWNERS],
|
|
258
258
|
tags: ['agent', 'list'],
|
|
@@ -324,7 +324,7 @@ export const ListAgentsQuery = defineQuery({
|
|
|
324
324
|
export const AssignToolToAgentCommand = defineCommand({
|
|
325
325
|
meta: {
|
|
326
326
|
key: 'agent-console.agent.assignTool',
|
|
327
|
-
version: 1,
|
|
327
|
+
version: '1.0.0',
|
|
328
328
|
stability: 'stable',
|
|
329
329
|
owners: [...OWNERS],
|
|
330
330
|
tags: ['agent', 'tool', 'assign'],
|
|
@@ -399,7 +399,7 @@ export const AssignToolToAgentCommand = defineCommand({
|
|
|
399
399
|
export const RemoveToolFromAgentCommand = defineCommand({
|
|
400
400
|
meta: {
|
|
401
401
|
key: 'agent-console.agent.removeTool',
|
|
402
|
-
version: 1,
|
|
402
|
+
version: '1.0.0',
|
|
403
403
|
stability: 'stable',
|
|
404
404
|
owners: [...OWNERS],
|
|
405
405
|
tags: ['agent', 'tool', 'remove'],
|
|
@@ -8,7 +8,7 @@ import { AgentSummaryModel } from './agent.schema';
|
|
|
8
8
|
export const AgentListPresentation: PresentationSpec = {
|
|
9
9
|
meta: {
|
|
10
10
|
key: 'agent-console.agent.list',
|
|
11
|
-
version: 1,
|
|
11
|
+
version: '1.0.0',
|
|
12
12
|
title: 'Agent List',
|
|
13
13
|
description:
|
|
14
14
|
'List view of AI agents with status, model provider, and version info',
|
|
@@ -35,7 +35,7 @@ export const AgentListPresentation: PresentationSpec = {
|
|
|
35
35
|
export const AgentDetailPresentation: PresentationSpec = {
|
|
36
36
|
meta: {
|
|
37
37
|
key: 'agent-console.agent.detail',
|
|
38
|
-
version: 1,
|
|
38
|
+
version: '1.0.0',
|
|
39
39
|
title: 'Agent Details',
|
|
40
40
|
description:
|
|
41
41
|
'Detailed view of an AI agent with configuration, tools, and recent runs',
|
|
@@ -61,7 +61,7 @@ export const AgentDetailPresentation: PresentationSpec = {
|
|
|
61
61
|
export const AgentConsoleDashboardPresentation: PresentationSpec = {
|
|
62
62
|
meta: {
|
|
63
63
|
key: 'agent-console.dashboard',
|
|
64
|
-
version: 1,
|
|
64
|
+
version: '1.0.0',
|
|
65
65
|
title: 'Agent Console Dashboard',
|
|
66
66
|
description: 'Dashboard overview of AI agents, runs, and tools',
|
|
67
67
|
goal: 'Provide a high-level overview of the AI platform health and usage.',
|
package/src/agent.feature.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { FeatureModuleSpec } from '@contractspec/lib.contracts';
|
|
|
12
12
|
export const AgentConsoleFeature: FeatureModuleSpec = {
|
|
13
13
|
meta: {
|
|
14
14
|
key: 'agent-console',
|
|
15
|
-
version: 1,
|
|
15
|
+
version: '1.0.0',
|
|
16
16
|
title: 'AI Agent Console',
|
|
17
17
|
description: 'AI agent orchestration with tools, runs, and logs management',
|
|
18
18
|
domain: 'ai-ops',
|
|
@@ -24,89 +24,89 @@ export const AgentConsoleFeature: FeatureModuleSpec = {
|
|
|
24
24
|
// All contract operations included in this feature
|
|
25
25
|
operations: [
|
|
26
26
|
// Agent operations
|
|
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 },
|
|
27
|
+
{ key: 'agent-console.agent.create', version: '1.0.0' },
|
|
28
|
+
{ key: 'agent-console.agent.update', version: '1.0.0' },
|
|
29
|
+
{ key: 'agent-console.agent.get', version: '1.0.0' },
|
|
30
|
+
{ key: 'agent-console.agent.list', version: '1.0.0' },
|
|
31
|
+
{ key: 'agent-console.agent.assignTool', version: '1.0.0' },
|
|
32
|
+
{ key: 'agent-console.agent.removeTool', version: '1.0.0' },
|
|
33
33
|
|
|
34
34
|
// Tool operations
|
|
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 },
|
|
35
|
+
{ key: 'agent.tool.create', version: '1.0.0' },
|
|
36
|
+
{ key: 'agent.tool.update', version: '1.0.0' },
|
|
37
|
+
{ key: 'agent.tool.get', version: '1.0.0' },
|
|
38
|
+
{ key: 'agent.tool.list', version: '1.0.0' },
|
|
39
|
+
{ key: 'agent.tool.test', version: '1.0.0' },
|
|
40
40
|
|
|
41
41
|
// Run operations
|
|
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 },
|
|
42
|
+
{ key: 'agent.run.execute', version: '1.0.0' },
|
|
43
|
+
{ key: 'agent.run.cancel', version: '1.0.0' },
|
|
44
|
+
{ key: 'agent.run.get', version: '1.0.0' },
|
|
45
|
+
{ key: 'agent.run.list', version: '1.0.0' },
|
|
46
|
+
{ key: 'agent.run.getSteps', version: '1.0.0' },
|
|
47
|
+
{ key: 'agent.run.getLogs', version: '1.0.0' },
|
|
48
|
+
{ key: 'agent.run.getMetrics', version: '1.0.0' },
|
|
49
49
|
],
|
|
50
50
|
|
|
51
51
|
// Events emitted by this feature
|
|
52
52
|
events: [
|
|
53
53
|
// Agent events
|
|
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 },
|
|
54
|
+
{ key: 'agent-console.agent.created', version: '1.0.0' },
|
|
55
|
+
{ key: 'agent-console.agent.updated', version: '1.0.0' },
|
|
56
|
+
{ key: 'agent-console.agent.toolAssigned', version: '1.0.0' },
|
|
57
|
+
{ key: 'agent-console.agent.toolRemoved', version: '1.0.0' },
|
|
58
58
|
|
|
59
59
|
// Tool events
|
|
60
|
-
{ key: 'agent.tool.created', version: 1 },
|
|
61
|
-
{ key: 'agent.tool.updated', version: 1 },
|
|
62
|
-
{ key: 'agent.tool.statusChanged', version: 1 },
|
|
60
|
+
{ key: 'agent.tool.created', version: '1.0.0' },
|
|
61
|
+
{ key: 'agent.tool.updated', version: '1.0.0' },
|
|
62
|
+
{ key: 'agent.tool.statusChanged', version: '1.0.0' },
|
|
63
63
|
|
|
64
64
|
// Run events
|
|
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 },
|
|
65
|
+
{ key: 'agent.run.started', version: '1.0.0' },
|
|
66
|
+
{ key: 'agent.run.completed', version: '1.0.0' },
|
|
67
|
+
{ key: 'agent.run.failed', version: '1.0.0' },
|
|
68
|
+
{ key: 'agent.run.cancelled', version: '1.0.0' },
|
|
69
|
+
{ key: 'agent.run.toolInvoked', version: '1.0.0' },
|
|
70
|
+
{ key: 'agent.run.toolCompleted', version: '1.0.0' },
|
|
71
|
+
{ key: 'agent.run.messageGenerated', version: '1.0.0' },
|
|
72
72
|
],
|
|
73
73
|
|
|
74
74
|
// Presentations associated with this feature
|
|
75
75
|
presentations: [
|
|
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 },
|
|
76
|
+
{ key: 'agent-console.dashboard', version: '1.0.0' },
|
|
77
|
+
{ key: 'agent-console.agent.list', version: '1.0.0' },
|
|
78
|
+
{ key: 'agent-console.agent.detail', version: '1.0.0' },
|
|
79
|
+
{ key: 'agent-console.run.list', version: '1.0.0' },
|
|
80
|
+
{ key: 'agent-console.run.detail', version: '1.0.0' },
|
|
81
|
+
{ key: 'agent-console.tool.list', version: '1.0.0' },
|
|
82
|
+
{ key: 'agent-console.tool.detail', version: '1.0.0' },
|
|
83
83
|
],
|
|
84
84
|
|
|
85
85
|
// Link operations to their primary presentations
|
|
86
86
|
opToPresentation: [
|
|
87
87
|
{
|
|
88
|
-
op: { key: 'agent-console.agent.list', version: 1 },
|
|
89
|
-
pres: { key: 'agent-console.agent.list', version: 1 },
|
|
88
|
+
op: { key: 'agent-console.agent.list', version: '1.0.0' },
|
|
89
|
+
pres: { key: 'agent-console.agent.list', version: '1.0.0' },
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
|
-
op: { key: 'agent-console.agent.get', version: 1 },
|
|
93
|
-
pres: { key: 'agent-console.agent.detail', version: 1 },
|
|
92
|
+
op: { key: 'agent-console.agent.get', version: '1.0.0' },
|
|
93
|
+
pres: { key: 'agent-console.agent.detail', version: '1.0.0' },
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
op: { key: 'agent.run.list', version: 1 },
|
|
97
|
-
pres: { key: 'agent-console.run.list', version: 1 },
|
|
96
|
+
op: { key: 'agent.run.list', version: '1.0.0' },
|
|
97
|
+
pres: { key: 'agent-console.run.list', version: '1.0.0' },
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
|
-
op: { key: 'agent.run.get', version: 1 },
|
|
101
|
-
pres: { key: 'agent-console.run.detail', version: 1 },
|
|
100
|
+
op: { key: 'agent.run.get', version: '1.0.0' },
|
|
101
|
+
pres: { key: 'agent-console.run.detail', version: '1.0.0' },
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
|
-
op: { key: 'agent.tool.list', version: 1 },
|
|
105
|
-
pres: { key: 'agent-console.tool.list', version: 1 },
|
|
104
|
+
op: { key: 'agent.tool.list', version: '1.0.0' },
|
|
105
|
+
pres: { key: 'agent-console.tool.list', version: '1.0.0' },
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
|
-
op: { key: 'agent.tool.get', version: 1 },
|
|
109
|
-
pres: { key: 'agent-console.tool.detail', version: 1 },
|
|
108
|
+
op: { key: 'agent.tool.get', version: '1.0.0' },
|
|
109
|
+
pres: { key: 'agent-console.tool.detail', version: '1.0.0' },
|
|
110
110
|
},
|
|
111
111
|
],
|
|
112
112
|
|
|
@@ -114,22 +114,22 @@ export const AgentConsoleFeature: FeatureModuleSpec = {
|
|
|
114
114
|
presentationsTargets: [
|
|
115
115
|
{
|
|
116
116
|
key: 'agent-console.dashboard',
|
|
117
|
-
version: 1,
|
|
117
|
+
version: '1.0.0',
|
|
118
118
|
targets: ['react', 'markdown'],
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
key: 'agent-console.agent.list',
|
|
122
|
-
version: 1,
|
|
122
|
+
version: '1.0.0',
|
|
123
123
|
targets: ['react', 'markdown', 'application/json'],
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
key: 'agent-console.run.list',
|
|
127
|
-
version: 1,
|
|
127
|
+
version: '1.0.0',
|
|
128
128
|
targets: ['react', 'markdown', 'application/json'],
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
key: 'agent-console.tool.list',
|
|
132
|
-
version: 1,
|
|
132
|
+
version: '1.0.0',
|
|
133
133
|
targets: ['react', 'markdown', 'application/json'],
|
|
134
134
|
},
|
|
135
135
|
],
|
|
@@ -137,10 +137,10 @@ export const AgentConsoleFeature: FeatureModuleSpec = {
|
|
|
137
137
|
// Capability requirements
|
|
138
138
|
capabilities: {
|
|
139
139
|
requires: [
|
|
140
|
-
{ key: 'identity', version: 1 },
|
|
141
|
-
{ key: 'audit-trail', version: 1 },
|
|
142
|
-
{ key: 'jobs', version: 1 },
|
|
140
|
+
{ key: 'identity', version: '1.0.0' },
|
|
141
|
+
{ key: 'audit-trail', version: '1.0.0' },
|
|
142
|
+
{ key: 'jobs', version: '1.0.0' },
|
|
143
143
|
],
|
|
144
|
-
provides: [{ key: 'agent', version: 1 }],
|
|
144
|
+
provides: [{ key: 'agent', version: '1.0.0' }],
|
|
145
145
|
},
|
|
146
146
|
};
|
package/src/example.ts
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
'
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import type { ExampleSpec } from '@contractspec/lib.contracts';
|
|
2
|
+
|
|
3
|
+
const example: ExampleSpec = {
|
|
4
|
+
meta: {
|
|
5
|
+
key: 'agent-console',
|
|
6
|
+
version: '1.0.0',
|
|
7
|
+
title: 'Agent Console',
|
|
8
|
+
description:
|
|
9
|
+
'AI agent ops console: tools, agents, runs, logs, and metrics (spec-first, regenerable).',
|
|
10
|
+
kind: 'template',
|
|
11
|
+
visibility: 'public',
|
|
12
|
+
stability: 'experimental',
|
|
13
|
+
owners: ['@platform.core'],
|
|
14
|
+
tags: ['ai', 'agents', 'tools', 'orchestration'],
|
|
15
|
+
},
|
|
9
16
|
docs: {
|
|
10
17
|
rootDocId: 'docs.examples.agent-console.reference',
|
|
11
18
|
goalDocId: 'docs.examples.agent-console.goal',
|
|
@@ -29,6 +36,6 @@ const example = {
|
|
|
29
36
|
studio: { enabled: true, installable: true },
|
|
30
37
|
mcp: { enabled: true },
|
|
31
38
|
},
|
|
32
|
-
}
|
|
39
|
+
};
|
|
33
40
|
|
|
34
41
|
export default example;
|
package/src/run/run.event.ts
CHANGED
|
@@ -30,7 +30,7 @@ const RunStartedPayload = defineSchemaModel({
|
|
|
30
30
|
export const RunStartedEvent = defineEvent({
|
|
31
31
|
meta: {
|
|
32
32
|
key: 'agent.run.started',
|
|
33
|
-
version: 1,
|
|
33
|
+
version: '1.0.0',
|
|
34
34
|
description: 'An agent run was started.',
|
|
35
35
|
stability: 'stable',
|
|
36
36
|
owners: [...OWNERS],
|
|
@@ -77,7 +77,7 @@ const RunCompletedPayload = defineSchemaModel({
|
|
|
77
77
|
export const RunCompletedEvent = defineEvent({
|
|
78
78
|
meta: {
|
|
79
79
|
key: 'agent.run.completed',
|
|
80
|
-
version: 1,
|
|
80
|
+
version: '1.0.0',
|
|
81
81
|
description: 'An agent run completed successfully.',
|
|
82
82
|
stability: 'stable',
|
|
83
83
|
owners: [...OWNERS],
|
|
@@ -116,7 +116,7 @@ const RunFailedPayload = defineSchemaModel({
|
|
|
116
116
|
export const RunFailedEvent = defineEvent({
|
|
117
117
|
meta: {
|
|
118
118
|
key: 'agent.run.failed',
|
|
119
|
-
version: 1,
|
|
119
|
+
version: '1.0.0',
|
|
120
120
|
description: 'An agent run encountered an error.',
|
|
121
121
|
stability: 'stable',
|
|
122
122
|
owners: [...OWNERS],
|
|
@@ -153,7 +153,7 @@ const RunCancelledPayload = defineSchemaModel({
|
|
|
153
153
|
export const RunCancelledEvent = defineEvent({
|
|
154
154
|
meta: {
|
|
155
155
|
key: 'agent.run.cancelled',
|
|
156
|
-
version: 1,
|
|
156
|
+
version: '1.0.0',
|
|
157
157
|
description: 'An agent run was cancelled by the user.',
|
|
158
158
|
stability: 'stable',
|
|
159
159
|
owners: [...OWNERS],
|
|
@@ -184,7 +184,7 @@ const ToolInvokedPayload = defineSchemaModel({
|
|
|
184
184
|
export const ToolInvokedEvent = defineEvent({
|
|
185
185
|
meta: {
|
|
186
186
|
key: 'agent.run.toolInvoked',
|
|
187
|
-
version: 1,
|
|
187
|
+
version: '1.0.0',
|
|
188
188
|
description: 'A tool was invoked during an agent run.',
|
|
189
189
|
stability: 'stable',
|
|
190
190
|
owners: [...OWNERS],
|
|
@@ -218,7 +218,7 @@ const ToolCompletedPayload = defineSchemaModel({
|
|
|
218
218
|
export const ToolCompletedEvent = defineEvent({
|
|
219
219
|
meta: {
|
|
220
220
|
key: 'agent.run.toolCompleted',
|
|
221
|
-
version: 1,
|
|
221
|
+
version: '1.0.0',
|
|
222
222
|
description: 'A tool invocation completed during an agent run.',
|
|
223
223
|
stability: 'stable',
|
|
224
224
|
owners: [...OWNERS],
|
|
@@ -254,7 +254,7 @@ const MessageGeneratedPayload = defineSchemaModel({
|
|
|
254
254
|
export const MessageGeneratedEvent = defineEvent({
|
|
255
255
|
meta: {
|
|
256
256
|
key: 'agent.run.messageGenerated',
|
|
257
|
-
version: 1,
|
|
257
|
+
version: '1.0.0',
|
|
258
258
|
description: 'An agent generated a message during a run.',
|
|
259
259
|
stability: 'stable',
|
|
260
260
|
owners: [...OWNERS],
|
package/src/run/run.operation.ts
CHANGED
|
@@ -21,7 +21,7 @@ const OWNERS = ['@agent-console-team'] as const;
|
|
|
21
21
|
export const ExecuteAgentCommand = defineCommand({
|
|
22
22
|
meta: {
|
|
23
23
|
key: 'agent.run.execute',
|
|
24
|
-
version: 1,
|
|
24
|
+
version: '1.0.0',
|
|
25
25
|
stability: 'stable',
|
|
26
26
|
owners: [...OWNERS],
|
|
27
27
|
tags: ['run', 'execute'],
|
|
@@ -76,7 +76,7 @@ export const ExecuteAgentCommand = defineCommand({
|
|
|
76
76
|
emits: [
|
|
77
77
|
{
|
|
78
78
|
key: 'run.started',
|
|
79
|
-
version: 1,
|
|
79
|
+
version: '1.0.0',
|
|
80
80
|
stability: 'stable',
|
|
81
81
|
owners: [...OWNERS],
|
|
82
82
|
tags: ['run', 'started'],
|
|
@@ -117,7 +117,7 @@ export const ExecuteAgentCommand = defineCommand({
|
|
|
117
117
|
export const CancelRunCommand = defineCommand({
|
|
118
118
|
meta: {
|
|
119
119
|
key: 'agent.run.cancel',
|
|
120
|
-
version: 1,
|
|
120
|
+
version: '1.0.0',
|
|
121
121
|
stability: 'stable',
|
|
122
122
|
owners: [...OWNERS],
|
|
123
123
|
tags: ['run', 'cancel'],
|
|
@@ -160,7 +160,7 @@ export const CancelRunCommand = defineCommand({
|
|
|
160
160
|
emits: [
|
|
161
161
|
{
|
|
162
162
|
key: 'run.cancelled',
|
|
163
|
-
version: 1,
|
|
163
|
+
version: '1.0.0',
|
|
164
164
|
stability: 'stable',
|
|
165
165
|
owners: [...OWNERS],
|
|
166
166
|
tags: ['run', 'cancelled'],
|
|
@@ -201,7 +201,7 @@ export const CancelRunCommand = defineCommand({
|
|
|
201
201
|
export const GetRunQuery = defineQuery({
|
|
202
202
|
meta: {
|
|
203
203
|
key: 'agent.run.get',
|
|
204
|
-
version: 1,
|
|
204
|
+
version: '1.0.0',
|
|
205
205
|
stability: 'stable',
|
|
206
206
|
owners: [...OWNERS],
|
|
207
207
|
tags: ['run', 'get'],
|
|
@@ -254,7 +254,7 @@ export const GetRunQuery = defineQuery({
|
|
|
254
254
|
export const ListRunsQuery = defineQuery({
|
|
255
255
|
meta: {
|
|
256
256
|
key: 'agent.run.list',
|
|
257
|
-
version: 1,
|
|
257
|
+
version: '1.0.0',
|
|
258
258
|
stability: 'stable',
|
|
259
259
|
owners: [...OWNERS],
|
|
260
260
|
tags: ['run', 'list'],
|
|
@@ -323,7 +323,7 @@ export const ListRunsQuery = defineQuery({
|
|
|
323
323
|
export const GetRunStepsQuery = defineQuery({
|
|
324
324
|
meta: {
|
|
325
325
|
key: 'agent.run.getSteps',
|
|
326
|
-
version: 1,
|
|
326
|
+
version: '1.0.0',
|
|
327
327
|
stability: 'stable',
|
|
328
328
|
owners: [...OWNERS],
|
|
329
329
|
tags: ['run', 'steps'],
|
|
@@ -371,7 +371,7 @@ export const GetRunStepsQuery = defineQuery({
|
|
|
371
371
|
export const GetRunLogsQuery = defineQuery({
|
|
372
372
|
meta: {
|
|
373
373
|
key: 'agent.run.getLogs',
|
|
374
|
-
version: 1,
|
|
374
|
+
version: '1.0.0',
|
|
375
375
|
stability: 'stable',
|
|
376
376
|
owners: [...OWNERS],
|
|
377
377
|
tags: ['run', 'logs'],
|
|
@@ -433,7 +433,7 @@ export const GetRunLogsQuery = defineQuery({
|
|
|
433
433
|
export const GetRunMetricsQuery = defineQuery({
|
|
434
434
|
meta: {
|
|
435
435
|
key: 'agent.run.getMetrics',
|
|
436
|
-
version: 1,
|
|
436
|
+
version: '1.0.0',
|
|
437
437
|
stability: 'stable',
|
|
438
438
|
owners: [...OWNERS],
|
|
439
439
|
tags: ['run', 'metrics'],
|
|
@@ -8,7 +8,7 @@ import { RunSummaryModel } from './run.schema';
|
|
|
8
8
|
export const RunListPresentation: PresentationSpec = {
|
|
9
9
|
meta: {
|
|
10
10
|
key: 'agent-console.run.list',
|
|
11
|
-
version: 1,
|
|
11
|
+
version: '1.0.0',
|
|
12
12
|
title: 'Run List',
|
|
13
13
|
description:
|
|
14
14
|
'List view of agent runs with status, tokens, and duration info',
|
|
@@ -35,7 +35,7 @@ export const RunListPresentation: PresentationSpec = {
|
|
|
35
35
|
export const RunDetailPresentation: PresentationSpec = {
|
|
36
36
|
meta: {
|
|
37
37
|
key: 'agent-console.run.detail',
|
|
38
|
-
version: 1,
|
|
38
|
+
version: '1.0.0',
|
|
39
39
|
title: 'Run Details',
|
|
40
40
|
description: 'Detailed view of an agent run with steps, logs, and metrics',
|
|
41
41
|
goal: 'Allow users to inspect and debug a specific agent run.',
|
package/src/tool/tool.event.ts
CHANGED
|
@@ -33,7 +33,7 @@ const ToolCreatedPayload = defineSchemaModel({
|
|
|
33
33
|
export const ToolCreatedEvent = defineEvent({
|
|
34
34
|
meta: {
|
|
35
35
|
key: 'agent.tool.created',
|
|
36
|
-
version: 1,
|
|
36
|
+
version: '1.0.0',
|
|
37
37
|
description: 'A new AI tool was created.',
|
|
38
38
|
stability: 'stable',
|
|
39
39
|
owners: [...OWNERS],
|
|
@@ -71,7 +71,7 @@ const ToolUpdatedPayload = defineSchemaModel({
|
|
|
71
71
|
export const ToolUpdatedEvent = defineEvent({
|
|
72
72
|
meta: {
|
|
73
73
|
key: 'agent.tool.updated',
|
|
74
|
-
version: 1,
|
|
74
|
+
version: '1.0.0',
|
|
75
75
|
description: 'An AI tool configuration was updated.',
|
|
76
76
|
stability: 'stable',
|
|
77
77
|
owners: [...OWNERS],
|
|
@@ -108,7 +108,7 @@ const ToolStatusChangedPayload = defineSchemaModel({
|
|
|
108
108
|
export const ToolStatusChangedEvent = defineEvent({
|
|
109
109
|
meta: {
|
|
110
110
|
key: 'agent.tool.statusChanged',
|
|
111
|
-
version: 1,
|
|
111
|
+
version: '1.0.0',
|
|
112
112
|
description:
|
|
113
113
|
'An AI tool status was changed (activated, deprecated, disabled).',
|
|
114
114
|
stability: 'stable',
|
|
@@ -19,7 +19,7 @@ const OWNERS = ['@agent-console-team'] as const;
|
|
|
19
19
|
export const CreateToolCommand = defineCommand({
|
|
20
20
|
meta: {
|
|
21
21
|
key: 'agent.tool.create',
|
|
22
|
-
version: 1,
|
|
22
|
+
version: '1.0.0',
|
|
23
23
|
stability: 'stable',
|
|
24
24
|
owners: [...OWNERS],
|
|
25
25
|
tags: ['tool', 'create'],
|
|
@@ -52,7 +52,7 @@ export const CreateToolCommand = defineCommand({
|
|
|
52
52
|
emits: [
|
|
53
53
|
{
|
|
54
54
|
key: 'tool.created',
|
|
55
|
-
version: 1,
|
|
55
|
+
version: '1.0.0',
|
|
56
56
|
stability: 'stable',
|
|
57
57
|
owners: [...OWNERS],
|
|
58
58
|
tags: ['tool', 'created'],
|
|
@@ -103,7 +103,7 @@ export const CreateToolCommand = defineCommand({
|
|
|
103
103
|
export const UpdateToolCommand = defineCommand({
|
|
104
104
|
meta: {
|
|
105
105
|
key: 'agent.tool.update',
|
|
106
|
-
version: 1,
|
|
106
|
+
version: '1.0.0',
|
|
107
107
|
stability: 'stable',
|
|
108
108
|
owners: [...OWNERS],
|
|
109
109
|
tags: ['tool', 'update'],
|
|
@@ -136,7 +136,7 @@ export const UpdateToolCommand = defineCommand({
|
|
|
136
136
|
emits: [
|
|
137
137
|
{
|
|
138
138
|
key: 'tool.updated',
|
|
139
|
-
version: 1,
|
|
139
|
+
version: '1.0.0',
|
|
140
140
|
stability: 'stable',
|
|
141
141
|
owners: [...OWNERS],
|
|
142
142
|
tags: ['tool', 'updated'],
|
|
@@ -176,7 +176,7 @@ export const UpdateToolCommand = defineCommand({
|
|
|
176
176
|
export const GetToolQuery = defineQuery({
|
|
177
177
|
meta: {
|
|
178
178
|
key: 'agent.tool.get',
|
|
179
|
-
version: 1,
|
|
179
|
+
version: '1.0.0',
|
|
180
180
|
stability: 'stable',
|
|
181
181
|
owners: [...OWNERS],
|
|
182
182
|
tags: ['tool', 'get'],
|
|
@@ -232,7 +232,7 @@ export const GetToolQuery = defineQuery({
|
|
|
232
232
|
export const ListToolsQuery = defineQuery({
|
|
233
233
|
meta: {
|
|
234
234
|
key: 'agent.tool.list',
|
|
235
|
-
version: 1,
|
|
235
|
+
version: '1.0.0',
|
|
236
236
|
stability: 'stable',
|
|
237
237
|
owners: [...OWNERS],
|
|
238
238
|
tags: ['tool', 'list'],
|
|
@@ -298,7 +298,7 @@ export const ListToolsQuery = defineQuery({
|
|
|
298
298
|
export const TestToolCommand = defineCommand({
|
|
299
299
|
meta: {
|
|
300
300
|
key: 'agent.tool.test',
|
|
301
|
-
version: 1,
|
|
301
|
+
version: '1.0.0',
|
|
302
302
|
stability: 'stable',
|
|
303
303
|
owners: [...OWNERS],
|
|
304
304
|
tags: ['tool', 'test'],
|