@contractspec/example.agent-console 1.44.1 → 1.45.0

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.
Files changed (48) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +26 -26
  2. package/.turbo/turbo-build.log +34 -34
  3. package/CHANGELOG.md +29 -0
  4. package/dist/agent/agent.event.js +4 -4
  5. package/dist/agent/agent.event.js.map +1 -1
  6. package/dist/agent/agent.operation.d.ts +1 -1
  7. package/dist/agent/agent.operation.js +7 -7
  8. package/dist/agent/agent.operation.js.map +1 -1
  9. package/dist/agent/agent.presentation.js +3 -3
  10. package/dist/agent/agent.presentation.js.map +1 -1
  11. package/dist/agent.feature.js +60 -60
  12. package/dist/agent.feature.js.map +1 -1
  13. package/dist/example.d.ts +3 -36
  14. package/dist/example.d.ts.map +1 -1
  15. package/dist/example.js +16 -11
  16. package/dist/example.js.map +1 -1
  17. package/dist/run/run.entity.d.ts +56 -56
  18. package/dist/run/run.enum.d.ts +5 -5
  19. package/dist/run/run.event.d.ts +71 -71
  20. package/dist/run/run.event.js +7 -7
  21. package/dist/run/run.event.js.map +1 -1
  22. package/dist/run/run.operation.d.ts +177 -177
  23. package/dist/run/run.operation.js +9 -9
  24. package/dist/run/run.operation.js.map +1 -1
  25. package/dist/run/run.presentation.js +2 -2
  26. package/dist/run/run.presentation.js.map +1 -1
  27. package/dist/tool/tool.entity.d.ts +24 -24
  28. package/dist/tool/tool.enum.d.ts +4 -4
  29. package/dist/tool/tool.event.js +3 -3
  30. package/dist/tool/tool.event.js.map +1 -1
  31. package/dist/tool/tool.operation.d.ts +2 -2
  32. package/dist/tool/tool.operation.js +7 -7
  33. package/dist/tool/tool.operation.js.map +1 -1
  34. package/dist/tool/tool.presentation.js +2 -2
  35. package/dist/tool/tool.presentation.js.map +1 -1
  36. package/package.json +8 -8
  37. package/src/agent/agent.event.ts +4 -4
  38. package/src/agent/agent.operation.ts +8 -8
  39. package/src/agent/agent.presentation.ts +3 -3
  40. package/src/agent.feature.ts +60 -60
  41. package/src/example.ts +16 -9
  42. package/src/run/run.event.ts +7 -7
  43. package/src/run/run.operation.ts +9 -9
  44. package/src/run/run.presentation.ts +2 -2
  45. package/src/tool/tool.event.ts +3 -3
  46. package/src/tool/tool.operation.ts +7 -7
  47. package/src/tool/tool.presentation.ts +2 -2
  48. package/tsconfig.tsbuildinfo +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"agent.presentation.js","names":["AgentListPresentation: PresentationSpec","AgentDetailPresentation: PresentationSpec","AgentConsoleDashboardPresentation: PresentationSpec"],"sources":["../../src/agent/agent.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\nimport { AgentSummaryModel } from './agent.schema';\n\n/**\n * Presentation for displaying a list of AI agents.\n */\nexport const AgentListPresentation: PresentationSpec = {\n meta: {\n key: 'agent-console.agent.list',\n version: 1,\n title: 'Agent List',\n description:\n 'List view of AI agents with status, model provider, and version info',\n goal: 'Provide an overview of all agents in an organization.',\n context: 'Main landing page for agent management.',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['agent', 'list', 'dashboard'],\n stability: StabilityEnum.Experimental,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AgentListView',\n props: AgentSummaryModel,\n },\n targets: ['react', 'markdown', 'application/json'],\n policy: { flags: ['agent-console.enabled'] },\n};\n\n/**\n * Presentation for agent detail view.\n */\nexport const AgentDetailPresentation: PresentationSpec = {\n meta: {\n key: 'agent-console.agent.detail',\n version: 1,\n title: 'Agent Details',\n description:\n 'Detailed view of an AI agent with configuration, tools, and recent runs',\n goal: 'Allow users to inspect and configure a specific agent.',\n context: 'Detailed view of an agent.',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['agent', 'detail'],\n stability: StabilityEnum.Experimental,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AgentDetailView',\n },\n targets: ['react', 'markdown'],\n policy: { flags: ['agent-console.enabled'] },\n};\n\n/**\n * Dashboard presentation for Agent Console - overview of agents, runs, and tools.\n */\nexport const AgentConsoleDashboardPresentation: PresentationSpec = {\n meta: {\n key: 'agent-console.dashboard',\n version: 1,\n title: 'Agent Console Dashboard',\n description: 'Dashboard overview of AI agents, runs, and tools',\n goal: 'Provide a high-level overview of the AI platform health and usage.',\n context: 'Root dashboard of the Agent Console.',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['dashboard', 'overview'],\n stability: StabilityEnum.Experimental,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AgentConsoleDashboard',\n },\n targets: ['react', 'markdown'],\n policy: { flags: ['agent-console.enabled'] },\n};\n"],"mappings":";;;;;;;AAOA,MAAaA,wBAA0C;CACrD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,SAAS;EACT,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM;GAAC;GAAS;GAAQ;GAAY;EACpC,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,0BAA4C;CACvD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,SAAS;EACT,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM,CAAC,SAAS,SAAS;EACzB,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;;;;AAKD,MAAaC,oCAAsD;CACjE,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,MAAM;EACN,SAAS;EACT,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM,CAAC,aAAa,WAAW;EAC/B,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":"agent.presentation.js","names":["AgentListPresentation: PresentationSpec","AgentDetailPresentation: PresentationSpec","AgentConsoleDashboardPresentation: PresentationSpec"],"sources":["../../src/agent/agent.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\nimport { AgentSummaryModel } from './agent.schema';\n\n/**\n * Presentation for displaying a list of AI agents.\n */\nexport const AgentListPresentation: PresentationSpec = {\n meta: {\n key: 'agent-console.agent.list',\n version: '1.0.0',\n title: 'Agent List',\n description:\n 'List view of AI agents with status, model provider, and version info',\n goal: 'Provide an overview of all agents in an organization.',\n context: 'Main landing page for agent management.',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['agent', 'list', 'dashboard'],\n stability: StabilityEnum.Experimental,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AgentListView',\n props: AgentSummaryModel,\n },\n targets: ['react', 'markdown', 'application/json'],\n policy: { flags: ['agent-console.enabled'] },\n};\n\n/**\n * Presentation for agent detail view.\n */\nexport const AgentDetailPresentation: PresentationSpec = {\n meta: {\n key: 'agent-console.agent.detail',\n version: '1.0.0',\n title: 'Agent Details',\n description:\n 'Detailed view of an AI agent with configuration, tools, and recent runs',\n goal: 'Allow users to inspect and configure a specific agent.',\n context: 'Detailed view of an agent.',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['agent', 'detail'],\n stability: StabilityEnum.Experimental,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AgentDetailView',\n },\n targets: ['react', 'markdown'],\n policy: { flags: ['agent-console.enabled'] },\n};\n\n/**\n * Dashboard presentation for Agent Console - overview of agents, runs, and tools.\n */\nexport const AgentConsoleDashboardPresentation: PresentationSpec = {\n meta: {\n key: 'agent-console.dashboard',\n version: '1.0.0',\n title: 'Agent Console Dashboard',\n description: 'Dashboard overview of AI agents, runs, and tools',\n goal: 'Provide a high-level overview of the AI platform health and usage.',\n context: 'Root dashboard of the Agent Console.',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['dashboard', 'overview'],\n stability: StabilityEnum.Experimental,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AgentConsoleDashboard',\n },\n targets: ['react', 'markdown'],\n policy: { flags: ['agent-console.enabled'] },\n};\n"],"mappings":";;;;;;;AAOA,MAAaA,wBAA0C;CACrD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,SAAS;EACT,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM;GAAC;GAAS;GAAQ;GAAY;EACpC,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,0BAA4C;CACvD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,SAAS;EACT,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM,CAAC,SAAS,SAAS;EACzB,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;;;;AAKD,MAAaC,oCAAsD;CACjE,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,MAAM;EACN,SAAS;EACT,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM,CAAC,aAAa,WAAW;EAC/B,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"}
@@ -6,7 +6,7 @@
6
6
  const AgentConsoleFeature = {
7
7
  meta: {
8
8
  key: "agent-console",
9
- version: 1,
9
+ version: "1.0.0",
10
10
  title: "AI Agent Console",
11
11
  description: "AI agent orchestration with tools, runs, and logs management",
12
12
  domain: "ai-ops",
@@ -21,236 +21,236 @@ const AgentConsoleFeature = {
21
21
  operations: [
22
22
  {
23
23
  key: "agent-console.agent.create",
24
- version: 1
24
+ version: "1.0.0"
25
25
  },
26
26
  {
27
27
  key: "agent-console.agent.update",
28
- version: 1
28
+ version: "1.0.0"
29
29
  },
30
30
  {
31
31
  key: "agent-console.agent.get",
32
- version: 1
32
+ version: "1.0.0"
33
33
  },
34
34
  {
35
35
  key: "agent-console.agent.list",
36
- version: 1
36
+ version: "1.0.0"
37
37
  },
38
38
  {
39
39
  key: "agent-console.agent.assignTool",
40
- version: 1
40
+ version: "1.0.0"
41
41
  },
42
42
  {
43
43
  key: "agent-console.agent.removeTool",
44
- version: 1
44
+ version: "1.0.0"
45
45
  },
46
46
  {
47
47
  key: "agent.tool.create",
48
- version: 1
48
+ version: "1.0.0"
49
49
  },
50
50
  {
51
51
  key: "agent.tool.update",
52
- version: 1
52
+ version: "1.0.0"
53
53
  },
54
54
  {
55
55
  key: "agent.tool.get",
56
- version: 1
56
+ version: "1.0.0"
57
57
  },
58
58
  {
59
59
  key: "agent.tool.list",
60
- version: 1
60
+ version: "1.0.0"
61
61
  },
62
62
  {
63
63
  key: "agent.tool.test",
64
- version: 1
64
+ version: "1.0.0"
65
65
  },
66
66
  {
67
67
  key: "agent.run.execute",
68
- version: 1
68
+ version: "1.0.0"
69
69
  },
70
70
  {
71
71
  key: "agent.run.cancel",
72
- version: 1
72
+ version: "1.0.0"
73
73
  },
74
74
  {
75
75
  key: "agent.run.get",
76
- version: 1
76
+ version: "1.0.0"
77
77
  },
78
78
  {
79
79
  key: "agent.run.list",
80
- version: 1
80
+ version: "1.0.0"
81
81
  },
82
82
  {
83
83
  key: "agent.run.getSteps",
84
- version: 1
84
+ version: "1.0.0"
85
85
  },
86
86
  {
87
87
  key: "agent.run.getLogs",
88
- version: 1
88
+ version: "1.0.0"
89
89
  },
90
90
  {
91
91
  key: "agent.run.getMetrics",
92
- version: 1
92
+ version: "1.0.0"
93
93
  }
94
94
  ],
95
95
  events: [
96
96
  {
97
97
  key: "agent-console.agent.created",
98
- version: 1
98
+ version: "1.0.0"
99
99
  },
100
100
  {
101
101
  key: "agent-console.agent.updated",
102
- version: 1
102
+ version: "1.0.0"
103
103
  },
104
104
  {
105
105
  key: "agent-console.agent.toolAssigned",
106
- version: 1
106
+ version: "1.0.0"
107
107
  },
108
108
  {
109
109
  key: "agent-console.agent.toolRemoved",
110
- version: 1
110
+ version: "1.0.0"
111
111
  },
112
112
  {
113
113
  key: "agent.tool.created",
114
- version: 1
114
+ version: "1.0.0"
115
115
  },
116
116
  {
117
117
  key: "agent.tool.updated",
118
- version: 1
118
+ version: "1.0.0"
119
119
  },
120
120
  {
121
121
  key: "agent.tool.statusChanged",
122
- version: 1
122
+ version: "1.0.0"
123
123
  },
124
124
  {
125
125
  key: "agent.run.started",
126
- version: 1
126
+ version: "1.0.0"
127
127
  },
128
128
  {
129
129
  key: "agent.run.completed",
130
- version: 1
130
+ version: "1.0.0"
131
131
  },
132
132
  {
133
133
  key: "agent.run.failed",
134
- version: 1
134
+ version: "1.0.0"
135
135
  },
136
136
  {
137
137
  key: "agent.run.cancelled",
138
- version: 1
138
+ version: "1.0.0"
139
139
  },
140
140
  {
141
141
  key: "agent.run.toolInvoked",
142
- version: 1
142
+ version: "1.0.0"
143
143
  },
144
144
  {
145
145
  key: "agent.run.toolCompleted",
146
- version: 1
146
+ version: "1.0.0"
147
147
  },
148
148
  {
149
149
  key: "agent.run.messageGenerated",
150
- version: 1
150
+ version: "1.0.0"
151
151
  }
152
152
  ],
153
153
  presentations: [
154
154
  {
155
155
  key: "agent-console.dashboard",
156
- version: 1
156
+ version: "1.0.0"
157
157
  },
158
158
  {
159
159
  key: "agent-console.agent.list",
160
- version: 1
160
+ version: "1.0.0"
161
161
  },
162
162
  {
163
163
  key: "agent-console.agent.detail",
164
- version: 1
164
+ version: "1.0.0"
165
165
  },
166
166
  {
167
167
  key: "agent-console.run.list",
168
- version: 1
168
+ version: "1.0.0"
169
169
  },
170
170
  {
171
171
  key: "agent-console.run.detail",
172
- version: 1
172
+ version: "1.0.0"
173
173
  },
174
174
  {
175
175
  key: "agent-console.tool.list",
176
- version: 1
176
+ version: "1.0.0"
177
177
  },
178
178
  {
179
179
  key: "agent-console.tool.detail",
180
- version: 1
180
+ version: "1.0.0"
181
181
  }
182
182
  ],
183
183
  opToPresentation: [
184
184
  {
185
185
  op: {
186
186
  key: "agent-console.agent.list",
187
- version: 1
187
+ version: "1.0.0"
188
188
  },
189
189
  pres: {
190
190
  key: "agent-console.agent.list",
191
- version: 1
191
+ version: "1.0.0"
192
192
  }
193
193
  },
194
194
  {
195
195
  op: {
196
196
  key: "agent-console.agent.get",
197
- version: 1
197
+ version: "1.0.0"
198
198
  },
199
199
  pres: {
200
200
  key: "agent-console.agent.detail",
201
- version: 1
201
+ version: "1.0.0"
202
202
  }
203
203
  },
204
204
  {
205
205
  op: {
206
206
  key: "agent.run.list",
207
- version: 1
207
+ version: "1.0.0"
208
208
  },
209
209
  pres: {
210
210
  key: "agent-console.run.list",
211
- version: 1
211
+ version: "1.0.0"
212
212
  }
213
213
  },
214
214
  {
215
215
  op: {
216
216
  key: "agent.run.get",
217
- version: 1
217
+ version: "1.0.0"
218
218
  },
219
219
  pres: {
220
220
  key: "agent-console.run.detail",
221
- version: 1
221
+ version: "1.0.0"
222
222
  }
223
223
  },
224
224
  {
225
225
  op: {
226
226
  key: "agent.tool.list",
227
- version: 1
227
+ version: "1.0.0"
228
228
  },
229
229
  pres: {
230
230
  key: "agent-console.tool.list",
231
- version: 1
231
+ version: "1.0.0"
232
232
  }
233
233
  },
234
234
  {
235
235
  op: {
236
236
  key: "agent.tool.get",
237
- version: 1
237
+ version: "1.0.0"
238
238
  },
239
239
  pres: {
240
240
  key: "agent-console.tool.detail",
241
- version: 1
241
+ version: "1.0.0"
242
242
  }
243
243
  }
244
244
  ],
245
245
  presentationsTargets: [
246
246
  {
247
247
  key: "agent-console.dashboard",
248
- version: 1,
248
+ version: "1.0.0",
249
249
  targets: ["react", "markdown"]
250
250
  },
251
251
  {
252
252
  key: "agent-console.agent.list",
253
- version: 1,
253
+ version: "1.0.0",
254
254
  targets: [
255
255
  "react",
256
256
  "markdown",
@@ -259,7 +259,7 @@ const AgentConsoleFeature = {
259
259
  },
260
260
  {
261
261
  key: "agent-console.run.list",
262
- version: 1,
262
+ version: "1.0.0",
263
263
  targets: [
264
264
  "react",
265
265
  "markdown",
@@ -268,7 +268,7 @@ const AgentConsoleFeature = {
268
268
  },
269
269
  {
270
270
  key: "agent-console.tool.list",
271
- version: 1,
271
+ version: "1.0.0",
272
272
  targets: [
273
273
  "react",
274
274
  "markdown",
@@ -280,20 +280,20 @@ const AgentConsoleFeature = {
280
280
  requires: [
281
281
  {
282
282
  key: "identity",
283
- version: 1
283
+ version: "1.0.0"
284
284
  },
285
285
  {
286
286
  key: "audit-trail",
287
- version: 1
287
+ version: "1.0.0"
288
288
  },
289
289
  {
290
290
  key: "jobs",
291
- version: 1
291
+ version: "1.0.0"
292
292
  }
293
293
  ],
294
294
  provides: [{
295
295
  key: "agent",
296
- version: 1
296
+ version: "1.0.0"
297
297
  }]
298
298
  }
299
299
  };
@@ -1 +1 @@
1
- {"version":3,"file":"agent.feature.js","names":["AgentConsoleFeature: FeatureModuleSpec"],"sources":["../src/agent.feature.ts"],"sourcesContent":["/**\n * Agent Console Feature Module Specification\n *\n * Defines the feature module for agent orchestration capabilities.\n */\nimport type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\n/**\n * Agent Console feature module that bundles all agent, tool, and run\n * operations, events, and presentations into an installable feature.\n */\nexport const AgentConsoleFeature: FeatureModuleSpec = {\n meta: {\n key: 'agent-console',\n version: 1,\n title: 'AI Agent Console',\n description: 'AI agent orchestration with tools, runs, and logs management',\n domain: 'ai-ops',\n owners: ['@agent-console-team'],\n tags: ['ai', 'agents', 'orchestration'],\n stability: 'stable',\n },\n\n // All contract operations included in this feature\n operations: [\n // Agent operations\n { key: 'agent-console.agent.create', version: 1 },\n { key: 'agent-console.agent.update', version: 1 },\n { key: 'agent-console.agent.get', version: 1 },\n { key: 'agent-console.agent.list', version: 1 },\n { key: 'agent-console.agent.assignTool', version: 1 },\n { key: 'agent-console.agent.removeTool', version: 1 },\n\n // Tool operations\n { key: 'agent.tool.create', version: 1 },\n { key: 'agent.tool.update', version: 1 },\n { key: 'agent.tool.get', version: 1 },\n { key: 'agent.tool.list', version: 1 },\n { key: 'agent.tool.test', version: 1 },\n\n // Run operations\n { key: 'agent.run.execute', version: 1 },\n { key: 'agent.run.cancel', version: 1 },\n { key: 'agent.run.get', version: 1 },\n { key: 'agent.run.list', version: 1 },\n { key: 'agent.run.getSteps', version: 1 },\n { key: 'agent.run.getLogs', version: 1 },\n { key: 'agent.run.getMetrics', version: 1 },\n ],\n\n // Events emitted by this feature\n events: [\n // Agent events\n { key: 'agent-console.agent.created', version: 1 },\n { key: 'agent-console.agent.updated', version: 1 },\n { key: 'agent-console.agent.toolAssigned', version: 1 },\n { key: 'agent-console.agent.toolRemoved', version: 1 },\n\n // Tool events\n { key: 'agent.tool.created', version: 1 },\n { key: 'agent.tool.updated', version: 1 },\n { key: 'agent.tool.statusChanged', version: 1 },\n\n // Run events\n { key: 'agent.run.started', version: 1 },\n { key: 'agent.run.completed', version: 1 },\n { key: 'agent.run.failed', version: 1 },\n { key: 'agent.run.cancelled', version: 1 },\n { key: 'agent.run.toolInvoked', version: 1 },\n { key: 'agent.run.toolCompleted', version: 1 },\n { key: 'agent.run.messageGenerated', version: 1 },\n ],\n\n // Presentations associated with this feature\n presentations: [\n { key: 'agent-console.dashboard', version: 1 },\n { key: 'agent-console.agent.list', version: 1 },\n { key: 'agent-console.agent.detail', version: 1 },\n { key: 'agent-console.run.list', version: 1 },\n { key: 'agent-console.run.detail', version: 1 },\n { key: 'agent-console.tool.list', version: 1 },\n { key: 'agent-console.tool.detail', version: 1 },\n ],\n\n // Link operations to their primary presentations\n opToPresentation: [\n {\n op: { key: 'agent-console.agent.list', version: 1 },\n pres: { key: 'agent-console.agent.list', version: 1 },\n },\n {\n op: { key: 'agent-console.agent.get', version: 1 },\n pres: { key: 'agent-console.agent.detail', version: 1 },\n },\n {\n op: { key: 'agent.run.list', version: 1 },\n pres: { key: 'agent-console.run.list', version: 1 },\n },\n {\n op: { key: 'agent.run.get', version: 1 },\n pres: { key: 'agent-console.run.detail', version: 1 },\n },\n {\n op: { key: 'agent.tool.list', version: 1 },\n pres: { key: 'agent-console.tool.list', version: 1 },\n },\n {\n op: { key: 'agent.tool.get', version: 1 },\n pres: { key: 'agent-console.tool.detail', version: 1 },\n },\n ],\n\n // Target requirements for multi-surface rendering\n presentationsTargets: [\n {\n key: 'agent-console.dashboard',\n version: 1,\n targets: ['react', 'markdown'],\n },\n {\n key: 'agent-console.agent.list',\n version: 1,\n targets: ['react', 'markdown', 'application/json'],\n },\n {\n key: 'agent-console.run.list',\n version: 1,\n targets: ['react', 'markdown', 'application/json'],\n },\n {\n key: 'agent-console.tool.list',\n version: 1,\n targets: ['react', 'markdown', 'application/json'],\n },\n ],\n\n // Capability requirements\n capabilities: {\n requires: [\n { key: 'identity', version: 1 },\n { key: 'audit-trail', version: 1 },\n { key: 'jobs', version: 1 },\n ],\n provides: [{ key: 'agent', version: 1 }],\n },\n};\n"],"m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E,KAAK;GACL,SAAS;GACT,SAAS;IAAC;IAAS;IAAY;IAAmB;GACnD;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS;IAAC;IAAS;IAAY;IAAmB;GACnD;EACF;CAGD,cAAc;EACZ,UAAU;GACR;IAAE,KAAK;IAAY,SAAS;IAAG;GAC/B;IAAE,KAAK;IAAe,SAAS;IAAG;GAClC;IAAE,KAAK;IAAQ,SAAS;IAAG;GAC5B;EACD,UAAU,CAAC;GAAE,KAAK;GAAS,SAAS;GAAG,CAAC;EACzC;CACF"}
1
+ {"version":3,"file":"agent.feature.js","names":["AgentConsoleFeature: FeatureModuleSpec"],"sources":["../src/agent.feature.ts"],"sourcesContent":["/**\n * Agent Console Feature Module Specification\n *\n * Defines the feature module for agent orchestration capabilities.\n */\nimport type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\n/**\n * Agent Console feature module that bundles all agent, tool, and run\n * operations, events, and presentations into an installable feature.\n */\nexport const AgentConsoleFeature: FeatureModuleSpec = {\n meta: {\n key: 'agent-console',\n version: '1.0.0',\n title: 'AI Agent Console',\n description: 'AI agent orchestration with tools, runs, and logs management',\n domain: 'ai-ops',\n owners: ['@agent-console-team'],\n tags: ['ai', 'agents', 'orchestration'],\n stability: 'stable',\n },\n\n // All contract operations included in this feature\n operations: [\n // Agent operations\n { key: 'agent-console.agent.create', version: '1.0.0' },\n { key: 'agent-console.agent.update', version: '1.0.0' },\n { key: 'agent-console.agent.get', version: '1.0.0' },\n { key: 'agent-console.agent.list', version: '1.0.0' },\n { key: 'agent-console.agent.assignTool', version: '1.0.0' },\n { key: 'agent-console.agent.removeTool', version: '1.0.0' },\n\n // Tool operations\n { key: 'agent.tool.create', version: '1.0.0' },\n { key: 'agent.tool.update', version: '1.0.0' },\n { key: 'agent.tool.get', version: '1.0.0' },\n { key: 'agent.tool.list', version: '1.0.0' },\n { key: 'agent.tool.test', version: '1.0.0' },\n\n // Run operations\n { key: 'agent.run.execute', version: '1.0.0' },\n { key: 'agent.run.cancel', version: '1.0.0' },\n { key: 'agent.run.get', version: '1.0.0' },\n { key: 'agent.run.list', version: '1.0.0' },\n { key: 'agent.run.getSteps', version: '1.0.0' },\n { key: 'agent.run.getLogs', version: '1.0.0' },\n { key: 'agent.run.getMetrics', version: '1.0.0' },\n ],\n\n // Events emitted by this feature\n events: [\n // Agent events\n { key: 'agent-console.agent.created', version: '1.0.0' },\n { key: 'agent-console.agent.updated', version: '1.0.0' },\n { key: 'agent-console.agent.toolAssigned', version: '1.0.0' },\n { key: 'agent-console.agent.toolRemoved', version: '1.0.0' },\n\n // Tool events\n { key: 'agent.tool.created', version: '1.0.0' },\n { key: 'agent.tool.updated', version: '1.0.0' },\n { key: 'agent.tool.statusChanged', version: '1.0.0' },\n\n // Run events\n { key: 'agent.run.started', version: '1.0.0' },\n { key: 'agent.run.completed', version: '1.0.0' },\n { key: 'agent.run.failed', version: '1.0.0' },\n { key: 'agent.run.cancelled', version: '1.0.0' },\n { key: 'agent.run.toolInvoked', version: '1.0.0' },\n { key: 'agent.run.toolCompleted', version: '1.0.0' },\n { key: 'agent.run.messageGenerated', version: '1.0.0' },\n ],\n\n // Presentations associated with this feature\n presentations: [\n { key: 'agent-console.dashboard', version: '1.0.0' },\n { key: 'agent-console.agent.list', version: '1.0.0' },\n { key: 'agent-console.agent.detail', version: '1.0.0' },\n { key: 'agent-console.run.list', version: '1.0.0' },\n { key: 'agent-console.run.detail', version: '1.0.0' },\n { key: 'agent-console.tool.list', version: '1.0.0' },\n { key: 'agent-console.tool.detail', version: '1.0.0' },\n ],\n\n // Link operations to their primary presentations\n opToPresentation: [\n {\n op: { key: 'agent-console.agent.list', version: '1.0.0' },\n pres: { key: 'agent-console.agent.list', version: '1.0.0' },\n },\n {\n op: { key: 'agent-console.agent.get', version: '1.0.0' },\n pres: { key: 'agent-console.agent.detail', version: '1.0.0' },\n },\n {\n op: { key: 'agent.run.list', version: '1.0.0' },\n pres: { key: 'agent-console.run.list', version: '1.0.0' },\n },\n {\n op: { key: 'agent.run.get', version: '1.0.0' },\n pres: { key: 'agent-console.run.detail', version: '1.0.0' },\n },\n {\n op: { key: 'agent.tool.list', version: '1.0.0' },\n pres: { key: 'agent-console.tool.list', version: '1.0.0' },\n },\n {\n op: { key: 'agent.tool.get', version: '1.0.0' },\n pres: { key: 'agent-console.tool.detail', version: '1.0.0' },\n },\n ],\n\n // Target requirements for multi-surface rendering\n presentationsTargets: [\n {\n key: 'agent-console.dashboard',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'agent-console.agent.list',\n version: '1.0.0',\n targets: ['react', 'markdown', 'application/json'],\n },\n {\n key: 'agent-console.run.list',\n version: '1.0.0',\n targets: ['react', 'markdown', 'application/json'],\n },\n {\n key: 'agent-console.tool.list',\n version: '1.0.0',\n targets: ['react', 'markdown', 'application/json'],\n },\n ],\n\n // Capability requirements\n capabilities: {\n requires: [\n { key: 'identity', version: '1.0.0' },\n { key: 'audit-trail', version: '1.0.0' },\n { key: 'jobs', version: '1.0.0' },\n ],\n provides: [{ key: 'agent', version: '1.0.0' }],\n },\n};\n"],"mappings":";;;;;AAWA,MAAaA,sBAAyC;CACpD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM;GAAC;GAAM;GAAU;GAAgB;EACvC,WAAW;EACZ;CAGD,YAAY;EAEV;GAAE,KAAK;GAA8B,SAAS;GAAS;EACvD;GAAE,KAAK;GAA8B,SAAS;GAAS;EACvD;GAAE,KAAK;GAA2B,SAAS;GAAS;EACpD;GAAE,KAAK;GAA4B,SAAS;GAAS;EACrD;GAAE,KAAK;GAAkC,SAAS;GAAS;EAC3D;GAAE,KAAK;GAAkC,SAAS;GAAS;EAG3D;GAAE,KAAK;GAAqB,SAAS;GAAS;EAC9C;GAAE,KAAK;GAAqB,SAAS;GAAS;EAC9C;GAAE,KAAK;GAAkB,SAAS;GAAS;EAC3C;GAAE,K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D,MAAM;IAAE,KAAK;IAA4B,SAAS;IAAS;GAC5D;EACD;GACE,IAAI;IAAE,KAAK;IAA2B,SAAS;IAAS;GACxD,MAAM;IAAE,KAAK;IAA8B,SAAS;IAAS;GAC9D;EACD;GACE,IAAI;IAAE,KAAK;IAAkB,SAAS;IAAS;GAC/C,MAAM;IAAE,KAAK;IAA0B,SAAS;IAAS;GAC1D;EACD;GACE,IAAI;IAAE,KAAK;IAAiB,SAAS;IAAS;GAC9C,MAAM;IAAE,KAAK;IAA4B,SAAS;IAAS;GAC5D;EACD;GACE,IAAI;IAAE,KAAK;IAAmB,SAAS;IAAS;GAChD,MAAM;IAAE,KAAK;IAA2B,SAAS;IAAS;GAC3D;EACD;GACE,IAAI;IAAE,KAAK;IAAkB,SAAS;IAAS;GAC/C,MAAM;IAAE,KAAK;IAA6B,SAAS;IAAS;GAC7D;EACF;CAGD,sBAAsB;EACpB;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS;IAAC;IAAS;IAAY;IAAmB;GACnD;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS;IAAC;IAAS;IAAY;IAAmB;GACnD;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS;IAAC;IAAS;IAAY;IAAmB;GACnD;EACF;CAGD,cAAc;EACZ,UAAU;GACR;IAAE,KAAK;IAAY,SAAS;IAAS;GACrC;IAAE,KAAK;IAAe,SAAS;IAAS;GACxC;IAAE,KAAK;IAAQ,SAAS;IAAS;GAClC;EACD,UAAU,CAAC;GAAE,KAAK;GAAS,SAAS;GAAS,CAAC;EAC/C;CACF"}
package/dist/example.d.ts CHANGED
@@ -1,40 +1,7 @@
1
+ import { ExampleSpec } from "@contractspec/lib.contracts";
2
+
1
3
  //#region src/example.d.ts
2
- declare const example: {
3
- readonly id: "agent-console";
4
- readonly title: "Agent Console";
5
- readonly summary: "AI agent ops console: tools, agents, runs, logs, and metrics (spec-first, regenerable).";
6
- readonly tags: readonly ["ai", "agents", "tools", "orchestration"];
7
- readonly kind: "template";
8
- readonly visibility: "public";
9
- readonly docs: {
10
- readonly rootDocId: "docs.examples.agent-console.reference";
11
- readonly goalDocId: "docs.examples.agent-console.goal";
12
- readonly usageDocId: "docs.examples.agent-console.usage";
13
- readonly constraintsDocId: "docs.examples.agent-console.constraints";
14
- };
15
- readonly entrypoints: {
16
- readonly packageName: "@contractspec/example.agent-console";
17
- readonly feature: "./feature";
18
- readonly contracts: "./contracts";
19
- readonly presentations: "./presentations";
20
- readonly handlers: "./handlers";
21
- readonly docs: "./docs";
22
- };
23
- readonly surfaces: {
24
- readonly templates: true;
25
- readonly sandbox: {
26
- readonly enabled: true;
27
- readonly modes: readonly ["playground", "specs", "builder", "markdown", "evolution"];
28
- };
29
- readonly studio: {
30
- readonly enabled: true;
31
- readonly installable: true;
32
- };
33
- readonly mcp: {
34
- readonly enabled: true;
35
- };
36
- };
37
- };
4
+ declare const example: ExampleSpec;
38
5
  //#endregion
39
6
  export { example as default };
40
7
  //# sourceMappingURL=example.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EA+BI,EAAA,eAAA"}
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAAS"}
package/dist/example.js CHANGED
@@ -1,16 +1,21 @@
1
1
  //#region src/example.ts
2
2
  const example = {
3
- id: "agent-console",
4
- title: "Agent Console",
5
- summary: "AI agent ops console: tools, agents, runs, logs, and metrics (spec-first, regenerable).",
6
- tags: [
7
- "ai",
8
- "agents",
9
- "tools",
10
- "orchestration"
11
- ],
12
- kind: "template",
13
- visibility: "public",
3
+ meta: {
4
+ key: "agent-console",
5
+ version: "1.0.0",
6
+ title: "Agent Console",
7
+ description: "AI agent ops console: tools, agents, runs, logs, and metrics (spec-first, regenerable).",
8
+ kind: "template",
9
+ visibility: "public",
10
+ stability: "experimental",
11
+ owners: ["@platform.core"],
12
+ tags: [
13
+ "ai",
14
+ "agents",
15
+ "tools",
16
+ "orchestration"
17
+ ]
18
+ },
14
19
  docs: {
15
20
  rootDocId: "docs.examples.agent-console.reference",
16
21
  goalDocId: "docs.examples.agent-console.goal",
@@ -1 +1 @@
1
- {"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'agent-console',\n title: 'Agent Console',\n summary:\n 'AI agent ops console: tools, agents, runs, logs, and metrics (spec-first, regenerable).',\n tags: ['ai', 'agents', 'tools', 'orchestration'],\n kind: 'template',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.agent-console.reference',\n goalDocId: 'docs.examples.agent-console.goal',\n usageDocId: 'docs.examples.agent-console.usage',\n constraintsDocId: 'docs.examples.agent-console.constraints',\n },\n entrypoints: {\n packageName: '@contractspec/example.agent-console',\n feature: './feature',\n contracts: './contracts',\n presentations: './presentations',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: {\n enabled: true,\n modes: ['playground', 'specs', 'builder', 'markdown', 'evolution'],\n },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n} as const;\n\nexport default example;\n"],"mappings":";AAAA,MAAM,UAAU;CACd,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;EAAC;EAAM;EAAU;EAAS;EAAgB;CAChD,MAAM;CACN,YAAY;CACZ,MAAM;EACJ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EACnB;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,eAAe;EACf,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GACP,SAAS;GACT,OAAO;IAAC;IAAc;IAAS;IAAW;IAAY;IAAY;GACnE;EACD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
1
+ {"version":3,"file":"example.js","names":["example: ExampleSpec"],"sources":["../src/example.ts"],"sourcesContent":["import type { ExampleSpec } from '@contractspec/lib.contracts';\n\nconst example: ExampleSpec = {\n meta: {\n key: 'agent-console',\n version: '1.0.0',\n title: 'Agent Console',\n description:\n 'AI agent ops console: tools, agents, runs, logs, and metrics (spec-first, regenerable).',\n kind: 'template',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['ai', 'agents', 'tools', 'orchestration'],\n },\n docs: {\n rootDocId: 'docs.examples.agent-console.reference',\n goalDocId: 'docs.examples.agent-console.goal',\n usageDocId: 'docs.examples.agent-console.usage',\n constraintsDocId: 'docs.examples.agent-console.constraints',\n },\n entrypoints: {\n packageName: '@contractspec/example.agent-console',\n feature: './feature',\n contracts: './contracts',\n presentations: './presentations',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: {\n enabled: true,\n modes: ['playground', 'specs', 'builder', 'markdown', 'evolution'],\n },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n};\n\nexport default example;\n"],"mappings":";AAEA,MAAMA,UAAuB;CAC3B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAM;GAAU;GAAS;GAAgB;EACjD;CACD,MAAM;EACJ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EACnB;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,eAAe;EACf,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GACP,SAAS;GACT,OAAO;IAAC;IAAc;IAAS;IAAW;IAAY;IAAY;GACnE;EACD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
@@ -1,81 +1,81 @@
1
- import * as _contractspec_lib_schema325 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema498 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/run/run.entity.d.ts
4
4
  /**
5
5
  * Run status enum for entities.
6
6
  */
7
- declare const RunStatusEntityEnum: _contractspec_lib_schema325.EntityEnumDef;
7
+ declare const RunStatusEntityEnum: _contractspec_lib_schema498.EntityEnumDef;
8
8
  /**
9
9
  * Run step type enum for entities.
10
10
  */
11
- declare const RunStepTypeEntityEnum: _contractspec_lib_schema325.EntityEnumDef;
11
+ declare const RunStepTypeEntityEnum: _contractspec_lib_schema498.EntityEnumDef;
12
12
  /**
13
13
  * Log level enum for entities.
14
14
  */
15
- declare const LogLevelEntityEnum: _contractspec_lib_schema325.EntityEnumDef;
15
+ declare const LogLevelEntityEnum: _contractspec_lib_schema498.EntityEnumDef;
16
16
  /**
17
17
  * Run entity - Represents an agent execution.
18
18
  */
19
- declare const RunEntity: _contractspec_lib_schema325.EntitySpec<{
20
- id: _contractspec_lib_schema325.EntityScalarField;
21
- organizationId: _contractspec_lib_schema325.EntityScalarField;
22
- agentId: _contractspec_lib_schema325.EntityScalarField;
23
- userId: _contractspec_lib_schema325.EntityScalarField;
24
- sessionId: _contractspec_lib_schema325.EntityScalarField;
25
- input: _contractspec_lib_schema325.EntityScalarField;
26
- output: _contractspec_lib_schema325.EntityScalarField;
27
- status: _contractspec_lib_schema325.EntityEnumField;
28
- errorMessage: _contractspec_lib_schema325.EntityScalarField;
29
- errorCode: _contractspec_lib_schema325.EntityScalarField;
30
- totalTokens: _contractspec_lib_schema325.EntityScalarField;
31
- promptTokens: _contractspec_lib_schema325.EntityScalarField;
32
- completionTokens: _contractspec_lib_schema325.EntityScalarField;
33
- totalIterations: _contractspec_lib_schema325.EntityScalarField;
34
- durationMs: _contractspec_lib_schema325.EntityScalarField;
35
- estimatedCostUsd: _contractspec_lib_schema325.EntityScalarField;
36
- queuedAt: _contractspec_lib_schema325.EntityScalarField;
37
- startedAt: _contractspec_lib_schema325.EntityScalarField;
38
- completedAt: _contractspec_lib_schema325.EntityScalarField;
39
- metadata: _contractspec_lib_schema325.EntityScalarField;
40
- agent: _contractspec_lib_schema325.EntityRelationField;
41
- steps: _contractspec_lib_schema325.EntityRelationField;
42
- logs: _contractspec_lib_schema325.EntityRelationField;
19
+ declare const RunEntity: _contractspec_lib_schema498.EntitySpec<{
20
+ id: _contractspec_lib_schema498.EntityScalarField;
21
+ organizationId: _contractspec_lib_schema498.EntityScalarField;
22
+ agentId: _contractspec_lib_schema498.EntityScalarField;
23
+ userId: _contractspec_lib_schema498.EntityScalarField;
24
+ sessionId: _contractspec_lib_schema498.EntityScalarField;
25
+ input: _contractspec_lib_schema498.EntityScalarField;
26
+ output: _contractspec_lib_schema498.EntityScalarField;
27
+ status: _contractspec_lib_schema498.EntityEnumField;
28
+ errorMessage: _contractspec_lib_schema498.EntityScalarField;
29
+ errorCode: _contractspec_lib_schema498.EntityScalarField;
30
+ totalTokens: _contractspec_lib_schema498.EntityScalarField;
31
+ promptTokens: _contractspec_lib_schema498.EntityScalarField;
32
+ completionTokens: _contractspec_lib_schema498.EntityScalarField;
33
+ totalIterations: _contractspec_lib_schema498.EntityScalarField;
34
+ durationMs: _contractspec_lib_schema498.EntityScalarField;
35
+ estimatedCostUsd: _contractspec_lib_schema498.EntityScalarField;
36
+ queuedAt: _contractspec_lib_schema498.EntityScalarField;
37
+ startedAt: _contractspec_lib_schema498.EntityScalarField;
38
+ completedAt: _contractspec_lib_schema498.EntityScalarField;
39
+ metadata: _contractspec_lib_schema498.EntityScalarField;
40
+ agent: _contractspec_lib_schema498.EntityRelationField;
41
+ steps: _contractspec_lib_schema498.EntityRelationField;
42
+ logs: _contractspec_lib_schema498.EntityRelationField;
43
43
  }>;
44
44
  /**
45
45
  * RunStep entity - Individual step in a run.
46
46
  */
47
- declare const RunStepEntity: _contractspec_lib_schema325.EntitySpec<{
48
- id: _contractspec_lib_schema325.EntityScalarField;
49
- runId: _contractspec_lib_schema325.EntityScalarField;
50
- stepNumber: _contractspec_lib_schema325.EntityScalarField;
51
- type: _contractspec_lib_schema325.EntityEnumField;
52
- toolId: _contractspec_lib_schema325.EntityScalarField;
53
- toolName: _contractspec_lib_schema325.EntityScalarField;
54
- input: _contractspec_lib_schema325.EntityScalarField;
55
- output: _contractspec_lib_schema325.EntityScalarField;
56
- status: _contractspec_lib_schema325.EntityEnumField;
57
- errorMessage: _contractspec_lib_schema325.EntityScalarField;
58
- tokensUsed: _contractspec_lib_schema325.EntityScalarField;
59
- durationMs: _contractspec_lib_schema325.EntityScalarField;
60
- startedAt: _contractspec_lib_schema325.EntityScalarField;
61
- completedAt: _contractspec_lib_schema325.EntityScalarField;
62
- run: _contractspec_lib_schema325.EntityRelationField;
47
+ declare const RunStepEntity: _contractspec_lib_schema498.EntitySpec<{
48
+ id: _contractspec_lib_schema498.EntityScalarField;
49
+ runId: _contractspec_lib_schema498.EntityScalarField;
50
+ stepNumber: _contractspec_lib_schema498.EntityScalarField;
51
+ type: _contractspec_lib_schema498.EntityEnumField;
52
+ toolId: _contractspec_lib_schema498.EntityScalarField;
53
+ toolName: _contractspec_lib_schema498.EntityScalarField;
54
+ input: _contractspec_lib_schema498.EntityScalarField;
55
+ output: _contractspec_lib_schema498.EntityScalarField;
56
+ status: _contractspec_lib_schema498.EntityEnumField;
57
+ errorMessage: _contractspec_lib_schema498.EntityScalarField;
58
+ tokensUsed: _contractspec_lib_schema498.EntityScalarField;
59
+ durationMs: _contractspec_lib_schema498.EntityScalarField;
60
+ startedAt: _contractspec_lib_schema498.EntityScalarField;
61
+ completedAt: _contractspec_lib_schema498.EntityScalarField;
62
+ run: _contractspec_lib_schema498.EntityRelationField;
63
63
  }>;
64
64
  /**
65
65
  * RunLog entity - Log entry for a run.
66
66
  */
67
- declare const RunLogEntity: _contractspec_lib_schema325.EntitySpec<{
68
- id: _contractspec_lib_schema325.EntityScalarField;
69
- runId: _contractspec_lib_schema325.EntityScalarField;
70
- stepId: _contractspec_lib_schema325.EntityScalarField;
71
- level: _contractspec_lib_schema325.EntityEnumField;
72
- message: _contractspec_lib_schema325.EntityScalarField;
73
- data: _contractspec_lib_schema325.EntityScalarField;
74
- source: _contractspec_lib_schema325.EntityScalarField;
75
- traceId: _contractspec_lib_schema325.EntityScalarField;
76
- spanId: _contractspec_lib_schema325.EntityScalarField;
77
- timestamp: _contractspec_lib_schema325.EntityScalarField;
78
- run: _contractspec_lib_schema325.EntityRelationField;
67
+ declare const RunLogEntity: _contractspec_lib_schema498.EntitySpec<{
68
+ id: _contractspec_lib_schema498.EntityScalarField;
69
+ runId: _contractspec_lib_schema498.EntityScalarField;
70
+ stepId: _contractspec_lib_schema498.EntityScalarField;
71
+ level: _contractspec_lib_schema498.EntityEnumField;
72
+ message: _contractspec_lib_schema498.EntityScalarField;
73
+ data: _contractspec_lib_schema498.EntityScalarField;
74
+ source: _contractspec_lib_schema498.EntityScalarField;
75
+ traceId: _contractspec_lib_schema498.EntityScalarField;
76
+ spanId: _contractspec_lib_schema498.EntityScalarField;
77
+ timestamp: _contractspec_lib_schema498.EntityScalarField;
78
+ run: _contractspec_lib_schema498.EntityRelationField;
79
79
  }>;
80
80
  //#endregion
81
81
  export { LogLevelEntityEnum, RunEntity, RunLogEntity, RunStatusEntityEnum, RunStepEntity, RunStepTypeEntityEnum };