@contractspec/example.agent-console 3.7.6 → 3.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +126 -105
- package/AGENTS.md +52 -31
- package/CHANGELOG.md +29 -0
- package/README.md +112 -83
- package/dist/agent/agent.event.js +1 -1
- package/dist/agent/agent.handler.d.ts +3 -0
- package/dist/agent/agent.handler.js +730 -1
- package/dist/agent/agent.operation.js +1 -1
- package/dist/agent/index.d.ts +5 -5
- package/dist/agent/index.js +74 -73
- package/dist/agent.feature.js +179 -0
- package/dist/browser/agent/agent.event.js +1 -1
- package/dist/browser/agent/agent.handler.js +730 -1
- package/dist/browser/agent/agent.operation.js +1 -1
- package/dist/browser/agent/index.js +74 -73
- package/dist/browser/agent.feature.js +179 -0
- package/dist/browser/docs/agent-console.docblock.js +11 -8
- package/dist/browser/docs/index.js +11 -8
- package/dist/browser/example.js +2 -3
- package/dist/browser/handlers/agent.handlers.js +1883 -2
- package/dist/browser/handlers/index.js +2142 -8
- package/dist/browser/index.js +4075 -3161
- package/dist/browser/presentations/index.js +51 -51
- package/dist/browser/run/index.js +380 -374
- package/dist/browser/run/run.event.js +2 -2
- package/dist/browser/run/run.handler.js +666 -1
- package/dist/browser/run/run.presentation.js +2 -2
- package/dist/browser/shared/index.js +293 -1
- package/dist/browser/shared/mock-runs.js +5 -0
- package/dist/browser/tool/index.js +161 -161
- package/dist/browser/tool/tool.event.js +1 -1
- package/dist/browser/tool/tool.handler.js +479 -3
- package/dist/browser/tool/tool.presentation.js +2 -2
- package/dist/browser/ui/AgentDashboard.js +1816 -931
- package/dist/browser/ui/AgentDashboard.visualizations.js +217 -0
- package/dist/browser/ui/AgentRunList.js +360 -128
- package/dist/browser/ui/AgentToolRegistry.js +9 -9
- package/dist/browser/ui/hooks/index.js +611 -161
- package/dist/browser/ui/hooks/useAgentList.js +1 -1
- package/dist/browser/ui/hooks/useAgentMutations.js +444 -9
- package/dist/browser/ui/hooks/useRunList.js +26 -11
- package/dist/browser/ui/hooks/useToolList.js +1 -1
- package/dist/browser/ui/index.js +2161 -1258
- package/dist/browser/ui/modals/AgentActionsModal.js +13 -13
- package/dist/browser/ui/modals/CreateAgentModal.js +15 -15
- package/dist/browser/ui/modals/index.js +297 -297
- package/dist/browser/ui/renderers/agent-list.markdown.js +14 -5
- package/dist/browser/ui/renderers/agent-list.renderer.js +7 -7
- package/dist/browser/ui/renderers/dashboard.markdown.js +207 -36
- package/dist/browser/ui/renderers/index.js +359 -163
- package/dist/browser/ui/renderers/run-list.markdown.js +9 -4
- package/dist/browser/ui/renderers/tool-registry.markdown.js +15 -4
- package/dist/browser/ui/views/AgentListView.js +7 -7
- package/dist/browser/ui/views/RunDataTable.js +326 -0
- package/dist/browser/ui/views/RunListView.js +360 -128
- package/dist/browser/ui/views/ToolRegistryView.js +9 -9
- package/dist/browser/ui/views/index.js +478 -246
- package/dist/browser/ui/views/run-data-table.columns.js +271 -0
- package/dist/browser/ui/views/run-list.shared.js +177 -0
- package/dist/browser/visualizations/catalog.js +134 -0
- package/dist/browser/visualizations/index.js +187 -0
- package/dist/browser/visualizations/selectors.js +181 -0
- package/dist/docs/agent-console.docblock.js +11 -8
- package/dist/docs/index.js +11 -8
- package/dist/example.js +2 -3
- package/dist/example.test.d.ts +1 -0
- package/dist/handlers/agent.handlers.d.ts +2 -0
- package/dist/handlers/agent.handlers.js +1883 -2
- package/dist/handlers/index.d.ts +2 -4
- package/dist/handlers/index.js +2142 -8
- package/dist/handlers/mock-handlers.test.d.ts +1 -0
- package/dist/index.d.ts +6 -4
- package/dist/index.js +4075 -3161
- package/dist/node/agent/agent.event.js +1 -1
- package/dist/node/agent/agent.handler.js +730 -1
- package/dist/node/agent/agent.operation.js +1 -1
- package/dist/node/agent/index.js +74 -73
- package/dist/node/agent.feature.js +179 -0
- package/dist/node/docs/agent-console.docblock.js +11 -8
- package/dist/node/docs/index.js +11 -8
- package/dist/node/example.js +2 -3
- package/dist/node/handlers/agent.handlers.js +1883 -2
- package/dist/node/handlers/index.js +2142 -8
- package/dist/node/index.js +4075 -3161
- package/dist/node/presentations/index.js +51 -51
- package/dist/node/run/index.js +380 -374
- package/dist/node/run/run.event.js +2 -2
- package/dist/node/run/run.handler.js +666 -1
- package/dist/node/run/run.presentation.js +2 -2
- package/dist/node/shared/index.js +293 -1
- package/dist/node/shared/mock-runs.js +5 -0
- package/dist/node/tool/index.js +161 -161
- package/dist/node/tool/tool.event.js +1 -1
- package/dist/node/tool/tool.handler.js +479 -3
- package/dist/node/tool/tool.presentation.js +2 -2
- package/dist/node/ui/AgentDashboard.js +1816 -931
- package/dist/node/ui/AgentDashboard.visualizations.js +217 -0
- package/dist/node/ui/AgentRunList.js +360 -128
- package/dist/node/ui/AgentToolRegistry.js +9 -9
- package/dist/node/ui/hooks/index.js +611 -161
- package/dist/node/ui/hooks/useAgentList.js +1 -1
- package/dist/node/ui/hooks/useAgentMutations.js +444 -9
- package/dist/node/ui/hooks/useRunList.js +26 -11
- package/dist/node/ui/hooks/useToolList.js +1 -1
- package/dist/node/ui/index.js +2161 -1258
- package/dist/node/ui/modals/AgentActionsModal.js +13 -13
- package/dist/node/ui/modals/CreateAgentModal.js +15 -15
- package/dist/node/ui/modals/index.js +297 -297
- package/dist/node/ui/renderers/agent-list.markdown.js +14 -5
- package/dist/node/ui/renderers/agent-list.renderer.js +7 -7
- package/dist/node/ui/renderers/dashboard.markdown.js +207 -36
- package/dist/node/ui/renderers/index.js +359 -163
- package/dist/node/ui/renderers/run-list.markdown.js +9 -4
- package/dist/node/ui/renderers/tool-registry.markdown.js +15 -4
- package/dist/node/ui/views/AgentListView.js +7 -7
- package/dist/node/ui/views/RunDataTable.js +326 -0
- package/dist/node/ui/views/RunListView.js +360 -128
- package/dist/node/ui/views/ToolRegistryView.js +9 -9
- package/dist/node/ui/views/index.js +478 -246
- package/dist/node/ui/views/run-data-table.columns.js +271 -0
- package/dist/node/ui/views/run-list.shared.js +177 -0
- package/dist/node/visualizations/catalog.js +134 -0
- package/dist/node/visualizations/index.js +187 -0
- package/dist/node/visualizations/selectors.js +181 -0
- package/dist/presentations/index.d.ts +3 -5
- package/dist/presentations/index.js +51 -51
- package/dist/proof/index.d.ts +2 -0
- package/dist/proof/meetup-proof.d.ts +10 -0
- package/dist/proof/meetup-proof.runtime.d.ts +22 -0
- package/dist/proof/meetup-proof.scenario.d.ts +2 -0
- package/dist/proof/meetup-proof.suite.d.ts +1 -0
- package/dist/proof/meetup-proof.test.d.ts +1 -0
- package/dist/run/index.d.ts +7 -7
- package/dist/run/index.js +380 -374
- package/dist/run/run.event.js +2 -2
- package/dist/run/run.handler.d.ts +7 -0
- package/dist/run/run.handler.js +666 -1
- package/dist/run/run.presentation.js +2 -2
- package/dist/shared/demo-dashboard-data.d.ts +16 -0
- package/dist/shared/demo-runtime-seed.d.ts +17 -0
- package/dist/shared/demo-runtime.d.ts +8 -0
- package/dist/shared/demo-runtime.test.d.ts +1 -0
- package/dist/shared/index.d.ts +4 -1
- package/dist/shared/index.js +293 -1
- package/dist/shared/mock-runs.d.ts +4 -0
- package/dist/shared/mock-runs.js +5 -0
- package/dist/tool/index.d.ts +7 -7
- package/dist/tool/index.js +161 -161
- package/dist/tool/tool.event.js +1 -1
- package/dist/tool/tool.handler.d.ts +3 -0
- package/dist/tool/tool.handler.js +479 -3
- package/dist/tool/tool.presentation.js +2 -2
- package/dist/ui/AgentDashboard.js +1816 -931
- package/dist/ui/AgentDashboard.sandbox.test.d.ts +1 -0
- package/dist/ui/AgentDashboard.visualizations.d.ts +4 -0
- package/dist/ui/AgentDashboard.visualizations.js +218 -0
- package/dist/ui/AgentRunList.js +360 -128
- package/dist/ui/AgentToolRegistry.js +9 -9
- package/dist/ui/hooks/index.d.ts +4 -4
- package/dist/ui/hooks/index.js +611 -161
- package/dist/ui/hooks/useAgentList.d.ts +5 -0
- package/dist/ui/hooks/useAgentList.js +1 -1
- package/dist/ui/hooks/useAgentMutations.d.ts +9 -2
- package/dist/ui/hooks/useAgentMutations.js +444 -9
- package/dist/ui/hooks/useRunList.d.ts +13 -2
- package/dist/ui/hooks/useRunList.js +26 -11
- package/dist/ui/hooks/useToolList.d.ts +5 -0
- package/dist/ui/hooks/useToolList.js +1 -1
- package/dist/ui/index.d.ts +3 -3
- package/dist/ui/index.js +2161 -1258
- package/dist/ui/modals/AgentActionsModal.js +13 -13
- package/dist/ui/modals/CreateAgentModal.js +15 -15
- package/dist/ui/modals/index.d.ts +1 -1
- package/dist/ui/modals/index.js +297 -297
- package/dist/ui/renderers/agent-list.markdown.d.ts +5 -0
- package/dist/ui/renderers/agent-list.markdown.js +14 -5
- package/dist/ui/renderers/agent-list.renderer.js +7 -7
- package/dist/ui/renderers/dashboard.markdown.d.ts +5 -0
- package/dist/ui/renderers/dashboard.markdown.js +207 -36
- package/dist/ui/renderers/index.d.ts +2 -2
- package/dist/ui/renderers/index.js +359 -163
- package/dist/ui/renderers/run-list.markdown.d.ts +5 -0
- package/dist/ui/renderers/run-list.markdown.js +9 -4
- package/dist/ui/renderers/tool-registry.markdown.d.ts +6 -1
- package/dist/ui/renderers/tool-registry.markdown.js +15 -4
- package/dist/ui/views/AgentListView.js +7 -7
- package/dist/ui/views/RunDataTable.d.ts +18 -0
- package/dist/ui/views/RunDataTable.js +327 -0
- package/dist/ui/views/RunListView.js +360 -128
- package/dist/ui/views/ToolRegistryView.js +9 -9
- package/dist/ui/views/index.js +478 -246
- package/dist/ui/views/run-data-table.columns.d.ts +3 -0
- package/dist/ui/views/run-data-table.columns.js +272 -0
- package/dist/ui/views/run-list.shared.d.ts +14 -0
- package/dist/ui/views/run-list.shared.js +178 -0
- package/dist/visualizations/catalog.d.ts +10 -0
- package/dist/visualizations/catalog.js +135 -0
- package/dist/visualizations/index.d.ts +2 -0
- package/dist/visualizations/index.js +188 -0
- package/dist/visualizations/selectors.d.ts +3 -0
- package/dist/visualizations/selectors.js +182 -0
- package/dist/visualizations/selectors.test.d.ts +1 -0
- package/package.json +114 -12
- package/proofs/agent-console-meetup.replay.json +220 -0
- package/src/agent/agent.entity.ts +111 -111
- package/src/agent/agent.enum.ts +12 -12
- package/src/agent/agent.event.ts +91 -91
- package/src/agent/agent.handler.ts +144 -127
- package/src/agent/agent.operation.ts +400 -400
- package/src/agent/agent.presentation.ts +62 -62
- package/src/agent/agent.schema.ts +175 -175
- package/src/agent/agent.test-spec.ts +48 -48
- package/src/agent/index.ts +46 -51
- package/src/agent.capability.ts +11 -11
- package/src/agent.feature.ts +134 -131
- package/src/docs/agent-console.docblock.ts +52 -49
- package/src/example.test.ts +75 -0
- package/src/example.ts +34 -35
- package/src/handlers/agent.handlers.ts +576 -522
- package/src/handlers/index.ts +30 -14
- package/src/handlers/mock-handlers.test.ts +77 -0
- package/src/index.ts +10 -9
- package/src/presentations/index.ts +11 -13
- package/src/proof/index.ts +2 -0
- package/src/proof/meetup-proof.runtime.ts +196 -0
- package/src/proof/meetup-proof.scenario.ts +99 -0
- package/src/proof/meetup-proof.suite.ts +29 -0
- package/src/proof/meetup-proof.test.ts +28 -0
- package/src/proof/meetup-proof.ts +130 -0
- package/src/run/index.ts +49 -54
- package/src/run/run.entity.ts +137 -137
- package/src/run/run.enum.ts +18 -18
- package/src/run/run.event.ts +174 -174
- package/src/run/run.handler.ts +113 -96
- package/src/run/run.operation.ts +474 -474
- package/src/run/run.presentation.ts +42 -42
- package/src/run/run.schema.ts +126 -126
- package/src/run/run.test-spec.ts +48 -48
- package/src/seeders/index.ts +21 -21
- package/src/shared/demo-dashboard-data.ts +58 -0
- package/src/shared/demo-runtime-seed.ts +139 -0
- package/src/shared/demo-runtime.test.ts +169 -0
- package/src/shared/demo-runtime.ts +260 -0
- package/src/shared/index.ts +12 -1
- package/src/shared/mock-agents.ts +76 -76
- package/src/shared/mock-runs.ts +107 -102
- package/src/shared/mock-tools.ts +140 -140
- package/src/shared/overlay-types.ts +23 -23
- package/src/tool/index.ts +39 -44
- package/src/tool/tool.entity.ts +73 -73
- package/src/tool/tool.enum.ts +13 -13
- package/src/tool/tool.event.ts +80 -80
- package/src/tool/tool.handler.ts +124 -107
- package/src/tool/tool.operation.ts +328 -328
- package/src/tool/tool.presentation.ts +43 -43
- package/src/tool/tool.schema.ts +106 -106
- package/src/tool/tool.test-spec.ts +48 -48
- package/src/ui/AgentDashboard.sandbox.test.tsx +312 -0
- package/src/ui/AgentDashboard.tsx +351 -348
- package/src/ui/AgentDashboard.visualizations.tsx +35 -0
- package/src/ui/hooks/index.ts +7 -7
- package/src/ui/hooks/useAgentList.ts +57 -56
- package/src/ui/hooks/useAgentMutations.ts +168 -159
- package/src/ui/hooks/useRunList.ts +90 -57
- package/src/ui/hooks/useToolList.ts +102 -101
- package/src/ui/index.ts +6 -9
- package/src/ui/modals/AgentActionsModal.tsx +262 -262
- package/src/ui/modals/CreateAgentModal.tsx +232 -232
- package/src/ui/modals/index.ts +1 -1
- package/src/ui/overlays/demo-overlays.ts +52 -52
- package/src/ui/renderers/agent-list.markdown.ts +81 -61
- package/src/ui/renderers/agent-list.renderer.tsx +14 -14
- package/src/ui/renderers/dashboard.markdown.ts +135 -139
- package/src/ui/renderers/index.ts +3 -4
- package/src/ui/renderers/run-list.markdown.ts +56 -47
- package/src/ui/renderers/tool-registry.markdown.ts +79 -66
- package/src/ui/views/AgentListView.tsx +90 -90
- package/src/ui/views/RunDataTable.tsx +74 -0
- package/src/ui/views/RunListView.tsx +84 -158
- package/src/ui/views/ToolRegistryView.tsx +113 -113
- package/src/ui/views/run-data-table.columns.tsx +102 -0
- package/src/ui/views/run-list.shared.tsx +139 -0
- package/src/visualizations/catalog.ts +132 -0
- package/src/visualizations/index.ts +2 -0
- package/src/visualizations/selectors.test.ts +12 -0
- package/src/visualizations/selectors.ts +70 -0
- package/tsconfig.json +7 -8
- package/tsdown.config.js +24 -3
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1",
|
|
3
|
+
"createdAt": "2026-03-20T09:48:00.000Z",
|
|
4
|
+
"run": {
|
|
5
|
+
"runId": "proof-1",
|
|
6
|
+
"status": "completed",
|
|
7
|
+
"mode": "code-execution",
|
|
8
|
+
"scenarioKey": "agent-console.meetup.proof",
|
|
9
|
+
"target": {
|
|
10
|
+
"targetId": "sandbox-agent-console",
|
|
11
|
+
"kind": "sandbox",
|
|
12
|
+
"isolation": "sandbox",
|
|
13
|
+
"environment": "local",
|
|
14
|
+
"baseUrl": "https://sandbox.contractspec.local/agent-console",
|
|
15
|
+
"allowlistedDomains": ["sandbox.contractspec.local"]
|
|
16
|
+
},
|
|
17
|
+
"steps": [
|
|
18
|
+
{
|
|
19
|
+
"stepId": "proof-2",
|
|
20
|
+
"stepKey": "open-dashboard",
|
|
21
|
+
"runId": "proof-1",
|
|
22
|
+
"mode": "code-execution",
|
|
23
|
+
"actionClass": "code-exec-read",
|
|
24
|
+
"verdict": "autonomous",
|
|
25
|
+
"requiresApproval": false,
|
|
26
|
+
"status": "completed",
|
|
27
|
+
"startedAt": "2026-03-20T09:32:00.000Z",
|
|
28
|
+
"output": {
|
|
29
|
+
"agentCount": 4,
|
|
30
|
+
"runCount": 5,
|
|
31
|
+
"toolCount": 5
|
|
32
|
+
},
|
|
33
|
+
"completedAt": "2026-03-20T09:34:00.000Z",
|
|
34
|
+
"summary": "Seeded dashboard ready with 4 agents, 5 tools, and 5 runs.",
|
|
35
|
+
"metadata": {
|
|
36
|
+
"output": {
|
|
37
|
+
"agentCount": 4,
|
|
38
|
+
"runCount": 5,
|
|
39
|
+
"toolCount": 5
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"stepId": "proof-4",
|
|
45
|
+
"stepKey": "create-agent",
|
|
46
|
+
"runId": "proof-1",
|
|
47
|
+
"mode": "code-execution",
|
|
48
|
+
"actionClass": "code-exec-mutate",
|
|
49
|
+
"verdict": "assist",
|
|
50
|
+
"requiresApproval": true,
|
|
51
|
+
"status": "completed",
|
|
52
|
+
"startedAt": "2026-03-20T09:35:00.000Z",
|
|
53
|
+
"output": {
|
|
54
|
+
"agentId": "agent-meetup-1",
|
|
55
|
+
"status": "DRAFT"
|
|
56
|
+
},
|
|
57
|
+
"completedAt": "2026-03-20T09:37:00.000Z",
|
|
58
|
+
"summary": "Created Paris Meetup Demo Agent as agent-meetup-1.",
|
|
59
|
+
"metadata": {
|
|
60
|
+
"output": {
|
|
61
|
+
"agentId": "agent-meetup-1",
|
|
62
|
+
"status": "DRAFT"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"stepId": "proof-6",
|
|
68
|
+
"stepKey": "activate-agent",
|
|
69
|
+
"runId": "proof-1",
|
|
70
|
+
"mode": "code-execution",
|
|
71
|
+
"actionClass": "code-exec-mutate",
|
|
72
|
+
"verdict": "assist",
|
|
73
|
+
"requiresApproval": true,
|
|
74
|
+
"status": "completed",
|
|
75
|
+
"startedAt": "2026-03-20T09:38:00.000Z",
|
|
76
|
+
"output": {
|
|
77
|
+
"agentId": "agent-meetup-1",
|
|
78
|
+
"status": "ACTIVE"
|
|
79
|
+
},
|
|
80
|
+
"completedAt": "2026-03-20T09:40:00.000Z",
|
|
81
|
+
"summary": "Activated Paris Meetup Demo Agent.",
|
|
82
|
+
"metadata": {
|
|
83
|
+
"output": {
|
|
84
|
+
"agentId": "agent-meetup-1",
|
|
85
|
+
"status": "ACTIVE"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"stepId": "proof-8",
|
|
91
|
+
"stepKey": "execute-agent",
|
|
92
|
+
"runId": "proof-1",
|
|
93
|
+
"mode": "code-execution",
|
|
94
|
+
"actionClass": "code-exec-mutate",
|
|
95
|
+
"verdict": "assist",
|
|
96
|
+
"requiresApproval": true,
|
|
97
|
+
"status": "completed",
|
|
98
|
+
"startedAt": "2026-03-20T09:41:00.000Z",
|
|
99
|
+
"output": {
|
|
100
|
+
"runId": "run-meetup-1",
|
|
101
|
+
"status": "COMPLETED",
|
|
102
|
+
"totalTokens": 1028
|
|
103
|
+
},
|
|
104
|
+
"completedAt": "2026-03-20T09:43:00.000Z",
|
|
105
|
+
"summary": "Executed Paris Meetup Demo Agent and completed run-meetup-1.",
|
|
106
|
+
"metadata": {
|
|
107
|
+
"output": {
|
|
108
|
+
"runId": "run-meetup-1",
|
|
109
|
+
"status": "COMPLETED",
|
|
110
|
+
"totalTokens": 1028
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"stepId": "proof-10",
|
|
116
|
+
"stepKey": "inspect-dashboard",
|
|
117
|
+
"runId": "proof-1",
|
|
118
|
+
"mode": "code-execution",
|
|
119
|
+
"actionClass": "code-exec-read",
|
|
120
|
+
"verdict": "autonomous",
|
|
121
|
+
"requiresApproval": false,
|
|
122
|
+
"status": "completed",
|
|
123
|
+
"startedAt": "2026-03-20T09:44:00.000Z",
|
|
124
|
+
"output": {
|
|
125
|
+
"agentCount": 5,
|
|
126
|
+
"runCount": 6,
|
|
127
|
+
"toolCount": 5,
|
|
128
|
+
"latestAgentName": "Paris Meetup Demo Agent",
|
|
129
|
+
"latestRunId": "run-meetup-1",
|
|
130
|
+
"successRate": 0.6666666666666666
|
|
131
|
+
},
|
|
132
|
+
"completedAt": "2026-03-20T09:46:00.000Z",
|
|
133
|
+
"summary": "Paris Meetup Demo Agent is visible with 5 agents and 6 runs.",
|
|
134
|
+
"metadata": {
|
|
135
|
+
"output": {
|
|
136
|
+
"agentCount": 5,
|
|
137
|
+
"runCount": 6,
|
|
138
|
+
"toolCount": 5,
|
|
139
|
+
"latestAgentName": "Paris Meetup Demo Agent",
|
|
140
|
+
"latestRunId": "run-meetup-1",
|
|
141
|
+
"successRate": 0.6666666666666666
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"createdAt": "2026-03-20T09:30:00.000Z",
|
|
147
|
+
"updatedAt": "2026-03-20T09:47:00.000Z",
|
|
148
|
+
"evidenceCount": 5
|
|
149
|
+
},
|
|
150
|
+
"assertions": [
|
|
151
|
+
{
|
|
152
|
+
"assertionKey": "captured-step-summaries",
|
|
153
|
+
"status": "passed"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"assertionKey": "execution-completed",
|
|
157
|
+
"status": "passed"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"assertionKey": "final-summary-mentions-meetup-agent",
|
|
161
|
+
"status": "passed"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"assertionKey": "final-dashboard-shape",
|
|
165
|
+
"status": "passed"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"artifacts": [
|
|
169
|
+
{
|
|
170
|
+
"artifactId": "proof-3",
|
|
171
|
+
"kind": "step-summary",
|
|
172
|
+
"runId": "proof-1",
|
|
173
|
+
"stepId": "proof-2",
|
|
174
|
+
"uri": "artifact://proof-3",
|
|
175
|
+
"hash": "815b21629e7e8a82376bd9c47e49192f9c4d5ff3b81bfd23d149b2922834b802",
|
|
176
|
+
"summary": "Seeded dashboard agents=4 tools=5 runs=5",
|
|
177
|
+
"createdAt": "2026-03-20T09:33:00.000Z"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"artifactId": "proof-5",
|
|
181
|
+
"kind": "step-summary",
|
|
182
|
+
"runId": "proof-1",
|
|
183
|
+
"stepId": "proof-4",
|
|
184
|
+
"uri": "artifact://proof-5",
|
|
185
|
+
"hash": "6deb2379988765661f26baaddaf5d3dd8d6115097c3f318f257b2f0fd71b8041",
|
|
186
|
+
"summary": "Created Paris Meetup Demo Agent (agent-meetup-1)",
|
|
187
|
+
"createdAt": "2026-03-20T09:36:00.000Z"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"artifactId": "proof-7",
|
|
191
|
+
"kind": "step-summary",
|
|
192
|
+
"runId": "proof-1",
|
|
193
|
+
"stepId": "proof-6",
|
|
194
|
+
"uri": "artifact://proof-7",
|
|
195
|
+
"hash": "eedef831df5bd02593572bcd979efbf9155d3aef4b6bba3bb4b5444ba6f59f6a",
|
|
196
|
+
"summary": "Activated Paris Meetup Demo Agent",
|
|
197
|
+
"createdAt": "2026-03-20T09:39:00.000Z"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"artifactId": "proof-9",
|
|
201
|
+
"kind": "step-summary",
|
|
202
|
+
"runId": "proof-1",
|
|
203
|
+
"stepId": "proof-8",
|
|
204
|
+
"uri": "artifact://proof-9",
|
|
205
|
+
"hash": "6939940cd8a2219f6387ea2fb1341b33aee5ab2c2b11f6e4755f157c37afa572",
|
|
206
|
+
"summary": "Completed run-meetup-1 for Paris Meetup Demo Agent",
|
|
207
|
+
"createdAt": "2026-03-20T09:42:00.000Z"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"artifactId": "proof-11",
|
|
211
|
+
"kind": "step-summary",
|
|
212
|
+
"runId": "proof-1",
|
|
213
|
+
"stepId": "proof-10",
|
|
214
|
+
"uri": "artifact://proof-11",
|
|
215
|
+
"hash": "d62d67ef87eb4dc831ab2bb7cd4ab30bd02b88e832c22f338d89ecdfe425db06",
|
|
216
|
+
"summary": "Final dashboard agents=5 runs=6",
|
|
217
|
+
"createdAt": "2026-03-20T09:45:00.000Z"
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
}
|
|
@@ -1,137 +1,137 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
defineEntity,
|
|
3
|
+
defineEntityEnum,
|
|
4
|
+
field,
|
|
5
|
+
index,
|
|
6
6
|
} from '@contractspec/lib.schema';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Agent status for lifecycle management.
|
|
10
10
|
*/
|
|
11
11
|
export const AgentStatusEntityEnum = defineEntityEnum({
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
name: 'AgentStatus',
|
|
13
|
+
values: ['DRAFT', 'ACTIVE', 'PAUSED', 'ARCHIVED'],
|
|
14
|
+
description: 'Lifecycle status of the agent',
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Agent model provider.
|
|
19
19
|
*/
|
|
20
20
|
export const ModelProviderEntityEnum = defineEntityEnum({
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
name: 'ModelProvider',
|
|
22
|
+
values: ['OPENAI', 'ANTHROPIC', 'GOOGLE', 'MISTRAL', 'CUSTOM'],
|
|
23
|
+
description: 'AI model provider',
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Agent entity - Represents an AI agent configuration.
|
|
28
28
|
*/
|
|
29
29
|
export const AgentEntity = defineEntity({
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
30
|
+
name: 'Agent',
|
|
31
|
+
schema: 'agent_console',
|
|
32
|
+
description:
|
|
33
|
+
'Represents an AI agent configuration with assigned tools and parameters.',
|
|
34
|
+
fields: {
|
|
35
|
+
id: field.id(),
|
|
36
|
+
organizationId: field.string({
|
|
37
|
+
description: 'Organization that owns this agent',
|
|
38
|
+
}),
|
|
39
|
+
name: field.string({ description: 'Agent name (1-100 chars)' }),
|
|
40
|
+
slug: field.string({
|
|
41
|
+
description: 'URL-safe identifier (lowercase, numbers, hyphens)',
|
|
42
|
+
}),
|
|
43
|
+
description: field.string({
|
|
44
|
+
isOptional: true,
|
|
45
|
+
description: 'Agent description (max 1000 chars)',
|
|
46
|
+
}),
|
|
47
|
+
status: field.enum('AgentStatus', { default: 'DRAFT' }),
|
|
48
|
+
modelProvider: field.enum('ModelProvider', { default: 'OPENAI' }),
|
|
49
|
+
modelName: field.string({
|
|
50
|
+
description: "Model identifier: 'gpt-4', 'claude-3-opus', etc.",
|
|
51
|
+
}),
|
|
52
|
+
modelConfig: field.json({
|
|
53
|
+
isOptional: true,
|
|
54
|
+
description: 'Model parameters: temperature, max_tokens, etc.',
|
|
55
|
+
}),
|
|
56
|
+
systemPrompt: field.string({ description: 'System prompt for the agent' }),
|
|
57
|
+
userPromptTemplate: field.string({
|
|
58
|
+
isOptional: true,
|
|
59
|
+
description: 'Template for user prompts',
|
|
60
|
+
}),
|
|
61
|
+
toolIds: field.string({
|
|
62
|
+
isArray: true,
|
|
63
|
+
isOptional: true,
|
|
64
|
+
description: 'IDs of assigned tools',
|
|
65
|
+
}),
|
|
66
|
+
toolChoice: field.string({
|
|
67
|
+
default: 'auto',
|
|
68
|
+
description: "Tool selection mode: 'auto', 'required', 'none'",
|
|
69
|
+
}),
|
|
70
|
+
maxIterations: field.int({
|
|
71
|
+
default: 10,
|
|
72
|
+
description: 'Maximum iterations per run',
|
|
73
|
+
}),
|
|
74
|
+
maxTokensPerRun: field.int({
|
|
75
|
+
isOptional: true,
|
|
76
|
+
description: 'Maximum tokens per run',
|
|
77
|
+
}),
|
|
78
|
+
timeoutMs: field.int({
|
|
79
|
+
default: 120000,
|
|
80
|
+
description: 'Execution timeout in milliseconds',
|
|
81
|
+
}),
|
|
82
|
+
version: field.string({ default: '1.0.0', description: 'Agent version' }),
|
|
83
|
+
tags: field.string({
|
|
84
|
+
isArray: true,
|
|
85
|
+
isOptional: true,
|
|
86
|
+
description: 'Tags for categorization',
|
|
87
|
+
}),
|
|
88
|
+
createdAt: field.createdAt(),
|
|
89
|
+
updatedAt: field.updatedAt(),
|
|
90
|
+
createdById: field.string({
|
|
91
|
+
isOptional: true,
|
|
92
|
+
description: 'User who created this agent',
|
|
93
|
+
}),
|
|
94
|
+
tools: field.hasMany('Tool', {
|
|
95
|
+
description: 'Tools assigned to this agent',
|
|
96
|
+
}),
|
|
97
|
+
},
|
|
98
|
+
indexes: [
|
|
99
|
+
index.unique(['organizationId', 'slug']),
|
|
100
|
+
index.on(['organizationId', 'status']),
|
|
101
|
+
index.on(['modelProvider', 'modelName']),
|
|
102
|
+
],
|
|
103
|
+
enums: [AgentStatusEntityEnum, ModelProviderEntityEnum],
|
|
104
104
|
});
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
107
|
* AgentTool join entity - Links agents to their assigned tools.
|
|
108
108
|
*/
|
|
109
109
|
export const AgentToolEntity = defineEntity({
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
110
|
+
name: 'AgentTool',
|
|
111
|
+
schema: 'agent_console',
|
|
112
|
+
description: 'Links an agent to its assigned tools with configuration.',
|
|
113
|
+
fields: {
|
|
114
|
+
id: field.id(),
|
|
115
|
+
agentId: field.foreignKey({ description: 'Agent ID' }),
|
|
116
|
+
toolId: field.foreignKey({ description: 'Tool ID' }),
|
|
117
|
+
config: field.json({
|
|
118
|
+
isOptional: true,
|
|
119
|
+
description: 'Tool-specific configuration for this agent',
|
|
120
|
+
}),
|
|
121
|
+
order: field.int({
|
|
122
|
+
default: 0,
|
|
123
|
+
description: 'Order of tool in agent tool list',
|
|
124
|
+
}),
|
|
125
|
+
isEnabled: field.boolean({
|
|
126
|
+
default: true,
|
|
127
|
+
description: 'Whether tool is enabled for this agent',
|
|
128
|
+
}),
|
|
129
|
+
createdAt: field.createdAt(),
|
|
130
|
+
agent: field.belongsTo('Agent', ['agentId'], ['id']),
|
|
131
|
+
tool: field.belongsTo('Tool', ['toolId'], ['id']),
|
|
132
|
+
},
|
|
133
|
+
indexes: [
|
|
134
|
+
index.unique(['agentId', 'toolId']),
|
|
135
|
+
index.on(['agentId', 'order']),
|
|
136
|
+
],
|
|
137
137
|
});
|
package/src/agent/agent.enum.ts
CHANGED
|
@@ -4,28 +4,28 @@ import { defineEnum } from '@contractspec/lib.schema';
|
|
|
4
4
|
* Agent status enum.
|
|
5
5
|
*/
|
|
6
6
|
export const AgentStatusEnum = defineEnum('AgentStatus', [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
'DRAFT',
|
|
8
|
+
'ACTIVE',
|
|
9
|
+
'PAUSED',
|
|
10
|
+
'ARCHIVED',
|
|
11
11
|
]);
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Model provider enum.
|
|
15
15
|
*/
|
|
16
16
|
export const ModelProviderEnum = defineEnum('ModelProvider', [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
'OPENAI',
|
|
18
|
+
'ANTHROPIC',
|
|
19
|
+
'GOOGLE',
|
|
20
|
+
'MISTRAL',
|
|
21
|
+
'CUSTOM',
|
|
22
22
|
]);
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Tool choice mode enum.
|
|
26
26
|
*/
|
|
27
27
|
export const ToolChoiceEnum = defineEnum('ToolChoice', [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
'auto',
|
|
29
|
+
'required',
|
|
30
|
+
'none',
|
|
31
31
|
]);
|