@contractspec/example.agent-console 1.44.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 (168) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +133 -0
  2. package/.turbo/turbo-build.log +134 -0
  3. package/CHANGELOG.md +212 -0
  4. package/LICENSE +21 -0
  5. package/README.md +86 -0
  6. package/dist/agent/agent.entity.d.ts +55 -0
  7. package/dist/agent/agent.entity.d.ts.map +1 -0
  8. package/dist/agent/agent.entity.js +136 -0
  9. package/dist/agent/agent.entity.js.map +1 -0
  10. package/dist/agent/agent.enum.d.ts +18 -0
  11. package/dist/agent/agent.enum.d.ts.map +1 -0
  12. package/dist/agent/agent.enum.js +34 -0
  13. package/dist/agent/agent.enum.js.map +1 -0
  14. package/dist/agent/agent.event.d.ts +128 -0
  15. package/dist/agent/agent.event.d.ts.map +1 -0
  16. package/dist/agent/agent.event.js +210 -0
  17. package/dist/agent/agent.event.js.map +1 -0
  18. package/dist/agent/agent.handler.d.ts +100 -0
  19. package/dist/agent/agent.handler.d.ts.map +1 -0
  20. package/dist/agent/agent.handler.js +84 -0
  21. package/dist/agent/agent.handler.js.map +1 -0
  22. package/dist/agent/agent.operation.d.ts +471 -0
  23. package/dist/agent/agent.operation.d.ts.map +1 -0
  24. package/dist/agent/agent.operation.js +486 -0
  25. package/dist/agent/agent.operation.js.map +1 -0
  26. package/dist/agent/agent.presentation.d.ts +19 -0
  27. package/dist/agent/agent.presentation.d.ts.map +1 -0
  28. package/dist/agent/agent.presentation.js +89 -0
  29. package/dist/agent/agent.presentation.js.map +1 -0
  30. package/dist/agent/agent.schema.d.ts +401 -0
  31. package/dist/agent/agent.schema.d.ts.map +1 -0
  32. package/dist/agent/agent.schema.js +406 -0
  33. package/dist/agent/agent.schema.js.map +1 -0
  34. package/dist/agent/index.d.ts +8 -0
  35. package/dist/agent/index.js +9 -0
  36. package/dist/agent.feature.d.ts +12 -0
  37. package/dist/agent.feature.d.ts.map +1 -0
  38. package/dist/agent.feature.js +303 -0
  39. package/dist/agent.feature.js.map +1 -0
  40. package/dist/docs/agent-console.docblock.d.ts +1 -0
  41. package/dist/docs/agent-console.docblock.js +113 -0
  42. package/dist/docs/agent-console.docblock.js.map +1 -0
  43. package/dist/docs/index.d.ts +1 -0
  44. package/dist/docs/index.js +1 -0
  45. package/dist/example.d.ts +40 -0
  46. package/dist/example.d.ts.map +1 -0
  47. package/dist/example.js +51 -0
  48. package/dist/example.js.map +1 -0
  49. package/dist/handlers/index.d.ts +4 -0
  50. package/dist/handlers/index.js +5 -0
  51. package/dist/index.d.ts +30 -0
  52. package/dist/index.js +32 -0
  53. package/dist/presentations/index.d.ts +4 -0
  54. package/dist/presentations/index.js +5 -0
  55. package/dist/run/index.d.ts +8 -0
  56. package/dist/run/index.js +9 -0
  57. package/dist/run/run.entity.d.ts +82 -0
  58. package/dist/run/run.entity.d.ts.map +1 -0
  59. package/dist/run/run.entity.js +205 -0
  60. package/dist/run/run.entity.js.map +1 -0
  61. package/dist/run/run.enum.d.ts +22 -0
  62. package/dist/run/run.enum.d.ts.map +1 -0
  63. package/dist/run/run.enum.js +45 -0
  64. package/dist/run/run.enum.js.map +1 -0
  65. package/dist/run/run.event.d.ts +290 -0
  66. package/dist/run/run.event.d.ts.map +1 -0
  67. package/dist/run/run.event.js +434 -0
  68. package/dist/run/run.event.js.map +1 -0
  69. package/dist/run/run.handler.d.ts +203 -0
  70. package/dist/run/run.handler.d.ts.map +1 -0
  71. package/dist/run/run.handler.js +83 -0
  72. package/dist/run/run.handler.js.map +1 -0
  73. package/dist/run/run.operation.d.ts +720 -0
  74. package/dist/run/run.operation.d.ts.map +1 -0
  75. package/dist/run/run.operation.js +626 -0
  76. package/dist/run/run.operation.js.map +1 -0
  77. package/dist/run/run.presentation.d.ts +15 -0
  78. package/dist/run/run.presentation.d.ts.map +1 -0
  79. package/dist/run/run.presentation.js +65 -0
  80. package/dist/run/run.presentation.js.map +1 -0
  81. package/dist/run/run.schema.d.ts +416 -0
  82. package/dist/run/run.schema.d.ts.map +1 -0
  83. package/dist/run/run.schema.js +338 -0
  84. package/dist/run/run.schema.js.map +1 -0
  85. package/dist/shared/index.d.ts +4 -0
  86. package/dist/shared/index.js +5 -0
  87. package/dist/shared/mock-agents.d.ts +88 -0
  88. package/dist/shared/mock-agents.d.ts.map +1 -0
  89. package/dist/shared/mock-agents.js +94 -0
  90. package/dist/shared/mock-agents.js.map +1 -0
  91. package/dist/shared/mock-runs.d.ts +120 -0
  92. package/dist/shared/mock-runs.d.ts.map +1 -0
  93. package/dist/shared/mock-runs.js +118 -0
  94. package/dist/shared/mock-runs.js.map +1 -0
  95. package/dist/shared/mock-tools.d.ts +244 -0
  96. package/dist/shared/mock-tools.d.ts.map +1 -0
  97. package/dist/shared/mock-tools.js +181 -0
  98. package/dist/shared/mock-tools.js.map +1 -0
  99. package/dist/tool/index.d.ts +8 -0
  100. package/dist/tool/index.js +9 -0
  101. package/dist/tool/tool.entity.d.ts +42 -0
  102. package/dist/tool/tool.entity.d.ts.map +1 -0
  103. package/dist/tool/tool.entity.js +105 -0
  104. package/dist/tool/tool.entity.js.map +1 -0
  105. package/dist/tool/tool.enum.d.ts +18 -0
  106. package/dist/tool/tool.enum.d.ts.map +1 -0
  107. package/dist/tool/tool.enum.js +35 -0
  108. package/dist/tool/tool.enum.js.map +1 -0
  109. package/dist/tool/tool.event.d.ts +103 -0
  110. package/dist/tool/tool.event.d.ts.map +1 -0
  111. package/dist/tool/tool.event.js +159 -0
  112. package/dist/tool/tool.event.js.map +1 -0
  113. package/dist/tool/tool.handler.d.ts +315 -0
  114. package/dist/tool/tool.handler.d.ts.map +1 -0
  115. package/dist/tool/tool.handler.js +87 -0
  116. package/dist/tool/tool.handler.js.map +1 -0
  117. package/dist/tool/tool.operation.d.ts +411 -0
  118. package/dist/tool/tool.operation.d.ts.map +1 -0
  119. package/dist/tool/tool.operation.js +406 -0
  120. package/dist/tool/tool.operation.js.map +1 -0
  121. package/dist/tool/tool.presentation.d.ts +15 -0
  122. package/dist/tool/tool.presentation.d.ts.map +1 -0
  123. package/dist/tool/tool.presentation.js +65 -0
  124. package/dist/tool/tool.presentation.js.map +1 -0
  125. package/dist/tool/tool.schema.d.ts +218 -0
  126. package/dist/tool/tool.schema.d.ts.map +1 -0
  127. package/dist/tool/tool.schema.js +236 -0
  128. package/dist/tool/tool.schema.js.map +1 -0
  129. package/example.ts +1 -0
  130. package/package.json +123 -0
  131. package/src/agent/agent.entity.ts +137 -0
  132. package/src/agent/agent.enum.ts +31 -0
  133. package/src/agent/agent.event.ts +142 -0
  134. package/src/agent/agent.handler.ts +178 -0
  135. package/src/agent/agent.operation.ts +444 -0
  136. package/src/agent/agent.presentation.ts +81 -0
  137. package/src/agent/agent.schema.ts +214 -0
  138. package/src/agent/index.ts +67 -0
  139. package/src/agent.feature.ts +146 -0
  140. package/src/docs/agent-console.docblock.ts +97 -0
  141. package/src/docs/index.ts +1 -0
  142. package/src/example.ts +34 -0
  143. package/src/handlers/index.ts +27 -0
  144. package/src/index.ts +27 -0
  145. package/src/presentations/index.ts +26 -0
  146. package/src/run/index.ts +68 -0
  147. package/src/run/run.entity.ts +175 -0
  148. package/src/run/run.enum.ts +43 -0
  149. package/src/run/run.event.ts +264 -0
  150. package/src/run/run.handler.ts +138 -0
  151. package/src/run/run.operation.ts +524 -0
  152. package/src/run/run.presentation.ts +55 -0
  153. package/src/run/run.schema.ts +169 -0
  154. package/src/shared/index.ts +6 -0
  155. package/src/shared/mock-agents.ts +81 -0
  156. package/src/shared/mock-runs.ts +107 -0
  157. package/src/shared/mock-tools.ts +145 -0
  158. package/src/tool/index.ts +60 -0
  159. package/src/tool/tool.entity.ts +99 -0
  160. package/src/tool/tool.enum.ts +32 -0
  161. package/src/tool/tool.event.ts +119 -0
  162. package/src/tool/tool.handler.ts +154 -0
  163. package/src/tool/tool.operation.ts +366 -0
  164. package/src/tool/tool.presentation.ts +56 -0
  165. package/src/tool/tool.schema.ts +133 -0
  166. package/tsconfig.json +10 -0
  167. package/tsconfig.tsbuildinfo +1 -0
  168. package/tsdown.config.js +7 -0
@@ -0,0 +1,303 @@
1
+ //#region src/agent.feature.ts
2
+ /**
3
+ * Agent Console feature module that bundles all agent, tool, and run
4
+ * operations, events, and presentations into an installable feature.
5
+ */
6
+ const AgentConsoleFeature = {
7
+ meta: {
8
+ key: "agent-console",
9
+ version: 1,
10
+ title: "AI Agent Console",
11
+ description: "AI agent orchestration with tools, runs, and logs management",
12
+ domain: "ai-ops",
13
+ owners: ["@agent-console-team"],
14
+ tags: [
15
+ "ai",
16
+ "agents",
17
+ "orchestration"
18
+ ],
19
+ stability: "stable"
20
+ },
21
+ operations: [
22
+ {
23
+ key: "agent-console.agent.create",
24
+ version: 1
25
+ },
26
+ {
27
+ key: "agent-console.agent.update",
28
+ version: 1
29
+ },
30
+ {
31
+ key: "agent-console.agent.get",
32
+ version: 1
33
+ },
34
+ {
35
+ key: "agent-console.agent.list",
36
+ version: 1
37
+ },
38
+ {
39
+ key: "agent-console.agent.assignTool",
40
+ version: 1
41
+ },
42
+ {
43
+ key: "agent-console.agent.removeTool",
44
+ version: 1
45
+ },
46
+ {
47
+ key: "agent.tool.create",
48
+ version: 1
49
+ },
50
+ {
51
+ key: "agent.tool.update",
52
+ version: 1
53
+ },
54
+ {
55
+ key: "agent.tool.get",
56
+ version: 1
57
+ },
58
+ {
59
+ key: "agent.tool.list",
60
+ version: 1
61
+ },
62
+ {
63
+ key: "agent.tool.test",
64
+ version: 1
65
+ },
66
+ {
67
+ key: "agent.run.execute",
68
+ version: 1
69
+ },
70
+ {
71
+ key: "agent.run.cancel",
72
+ version: 1
73
+ },
74
+ {
75
+ key: "agent.run.get",
76
+ version: 1
77
+ },
78
+ {
79
+ key: "agent.run.list",
80
+ version: 1
81
+ },
82
+ {
83
+ key: "agent.run.getSteps",
84
+ version: 1
85
+ },
86
+ {
87
+ key: "agent.run.getLogs",
88
+ version: 1
89
+ },
90
+ {
91
+ key: "agent.run.getMetrics",
92
+ version: 1
93
+ }
94
+ ],
95
+ events: [
96
+ {
97
+ key: "agent-console.agent.created",
98
+ version: 1
99
+ },
100
+ {
101
+ key: "agent-console.agent.updated",
102
+ version: 1
103
+ },
104
+ {
105
+ key: "agent-console.agent.toolAssigned",
106
+ version: 1
107
+ },
108
+ {
109
+ key: "agent-console.agent.toolRemoved",
110
+ version: 1
111
+ },
112
+ {
113
+ key: "agent.tool.created",
114
+ version: 1
115
+ },
116
+ {
117
+ key: "agent.tool.updated",
118
+ version: 1
119
+ },
120
+ {
121
+ key: "agent.tool.statusChanged",
122
+ version: 1
123
+ },
124
+ {
125
+ key: "agent.run.started",
126
+ version: 1
127
+ },
128
+ {
129
+ key: "agent.run.completed",
130
+ version: 1
131
+ },
132
+ {
133
+ key: "agent.run.failed",
134
+ version: 1
135
+ },
136
+ {
137
+ key: "agent.run.cancelled",
138
+ version: 1
139
+ },
140
+ {
141
+ key: "agent.run.toolInvoked",
142
+ version: 1
143
+ },
144
+ {
145
+ key: "agent.run.toolCompleted",
146
+ version: 1
147
+ },
148
+ {
149
+ key: "agent.run.messageGenerated",
150
+ version: 1
151
+ }
152
+ ],
153
+ presentations: [
154
+ {
155
+ key: "agent-console.dashboard",
156
+ version: 1
157
+ },
158
+ {
159
+ key: "agent-console.agent.list",
160
+ version: 1
161
+ },
162
+ {
163
+ key: "agent-console.agent.detail",
164
+ version: 1
165
+ },
166
+ {
167
+ key: "agent-console.run.list",
168
+ version: 1
169
+ },
170
+ {
171
+ key: "agent-console.run.detail",
172
+ version: 1
173
+ },
174
+ {
175
+ key: "agent-console.tool.list",
176
+ version: 1
177
+ },
178
+ {
179
+ key: "agent-console.tool.detail",
180
+ version: 1
181
+ }
182
+ ],
183
+ opToPresentation: [
184
+ {
185
+ op: {
186
+ key: "agent-console.agent.list",
187
+ version: 1
188
+ },
189
+ pres: {
190
+ key: "agent-console.agent.list",
191
+ version: 1
192
+ }
193
+ },
194
+ {
195
+ op: {
196
+ key: "agent-console.agent.get",
197
+ version: 1
198
+ },
199
+ pres: {
200
+ key: "agent-console.agent.detail",
201
+ version: 1
202
+ }
203
+ },
204
+ {
205
+ op: {
206
+ key: "agent.run.list",
207
+ version: 1
208
+ },
209
+ pres: {
210
+ key: "agent-console.run.list",
211
+ version: 1
212
+ }
213
+ },
214
+ {
215
+ op: {
216
+ key: "agent.run.get",
217
+ version: 1
218
+ },
219
+ pres: {
220
+ key: "agent-console.run.detail",
221
+ version: 1
222
+ }
223
+ },
224
+ {
225
+ op: {
226
+ key: "agent.tool.list",
227
+ version: 1
228
+ },
229
+ pres: {
230
+ key: "agent-console.tool.list",
231
+ version: 1
232
+ }
233
+ },
234
+ {
235
+ op: {
236
+ key: "agent.tool.get",
237
+ version: 1
238
+ },
239
+ pres: {
240
+ key: "agent-console.tool.detail",
241
+ version: 1
242
+ }
243
+ }
244
+ ],
245
+ presentationsTargets: [
246
+ {
247
+ key: "agent-console.dashboard",
248
+ version: 1,
249
+ targets: ["react", "markdown"]
250
+ },
251
+ {
252
+ key: "agent-console.agent.list",
253
+ version: 1,
254
+ targets: [
255
+ "react",
256
+ "markdown",
257
+ "application/json"
258
+ ]
259
+ },
260
+ {
261
+ key: "agent-console.run.list",
262
+ version: 1,
263
+ targets: [
264
+ "react",
265
+ "markdown",
266
+ "application/json"
267
+ ]
268
+ },
269
+ {
270
+ key: "agent-console.tool.list",
271
+ version: 1,
272
+ targets: [
273
+ "react",
274
+ "markdown",
275
+ "application/json"
276
+ ]
277
+ }
278
+ ],
279
+ capabilities: {
280
+ requires: [
281
+ {
282
+ key: "identity",
283
+ version: 1
284
+ },
285
+ {
286
+ key: "audit-trail",
287
+ version: 1
288
+ },
289
+ {
290
+ key: "jobs",
291
+ version: 1
292
+ }
293
+ ],
294
+ provides: [{
295
+ key: "agent",
296
+ version: 1
297
+ }]
298
+ }
299
+ };
300
+
301
+ //#endregion
302
+ export { AgentConsoleFeature };
303
+ //# sourceMappingURL=agent.feature.js.map
@@ -0,0 +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"],"mappings":"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"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,113 @@
1
+ import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+
3
+ //#region src/docs/agent-console.docblock.ts
4
+ registerDocBlocks([
5
+ {
6
+ id: "docs.examples.agent-console.goal",
7
+ title: "Agent Console — Goal",
8
+ summary: "AI agent ops console: tools, agents, runs, logs, and metrics.",
9
+ kind: "goal",
10
+ visibility: "public",
11
+ route: "/docs/examples/agent-console/goal",
12
+ tags: [
13
+ "ai",
14
+ "agents",
15
+ "goal"
16
+ ],
17
+ body: `## Why it matters
18
+ - Provides a regenerable agent operations surface with tool registry and run history.
19
+ - Prevents drift between tool schemas, agent configs, and execution logs.
20
+
21
+ ## Business/Product goal
22
+ - Safely manage tools/agents/runs with auditability and observability.
23
+ - Enable staged rollout of tools and metrics via feature flags.
24
+
25
+ ## Success criteria
26
+ - Tool/agent/run specs regenerate UI/API/events cleanly.
27
+ - Logs/metrics stay aligned and PII is scoped.`
28
+ },
29
+ {
30
+ id: "docs.examples.agent-console.usage",
31
+ title: "Agent Console — Usage",
32
+ summary: "How to operate, extend, and regenerate the agent console safely.",
33
+ kind: "usage",
34
+ visibility: "public",
35
+ route: "/docs/examples/agent-console/usage",
36
+ tags: [
37
+ "ai",
38
+ "agents",
39
+ "usage"
40
+ ],
41
+ body: `## Setup
42
+ 1) Seed (if available) or create tools and agents; define run configs.
43
+ 2) Configure Notifications for run completion/failure; Audit for changes.
44
+
45
+ ## Extend & regenerate
46
+ 1) Adjust tool schemas (inputs/outputs), agent configs, run metrics in spec.
47
+ 2) Regenerate to sync UI/API/events/logs; mark PII paths for run payloads.
48
+ 3) Use Feature Flags to gate risky tools or execution policies.
49
+
50
+ ## Guardrails
51
+ - Emit events for run lifecycle; store logs with redaction where needed.
52
+ - Enforce tool input validation; avoid unsafe arbitrary code exec in handlers.
53
+ - Keep tenant/user scoping explicit for ops data.`
54
+ },
55
+ {
56
+ id: "docs.examples.agent-console.reference",
57
+ title: "Agent Console — Reference",
58
+ summary: "Entities, contracts, events, and presentations for the agent console.",
59
+ kind: "reference",
60
+ visibility: "public",
61
+ route: "/docs/examples/agent-console",
62
+ tags: [
63
+ "ai",
64
+ "agents",
65
+ "reference"
66
+ ],
67
+ body: `## Entities
68
+ - Tool, Agent, AgentTool, Run, RunStep, RunLog, RunMetric.
69
+
70
+ ## Contracts
71
+ - tool/create, agent/create, agent/execute, run/get, run/logs, run/metrics.
72
+
73
+ ## Events
74
+ - tool.created, agent.created, run.started/completed/failed, tool.invoked.
75
+
76
+ ## Presentations
77
+ - Tool registry, agent list/detail, run list/detail, metrics dashboards.
78
+
79
+ ## Notes
80
+ - Keep tool schemas explicit; enforce validation in spec.
81
+ - Use Audit Trail for agent/run changes; Notifications for run outcomes.`
82
+ },
83
+ {
84
+ id: "docs.examples.agent-console.constraints",
85
+ title: "Agent Console — Constraints & Safety",
86
+ summary: "Internal guardrails for tool/agent/run safety, PII, and regeneration.",
87
+ kind: "reference",
88
+ visibility: "internal",
89
+ route: "/docs/examples/agent-console/constraints",
90
+ tags: [
91
+ "ai",
92
+ "agents",
93
+ "constraints",
94
+ "internal"
95
+ ],
96
+ body: `## Constraints
97
+ - Tool schemas (inputs/outputs) must be explicit in spec; no arbitrary untyped payloads.
98
+ - Events to emit: tool.created, agent.created, run.started/completed/failed, tool.invoked.
99
+ - Regeneration must not loosen execution policies or logging without explicit spec diff.
100
+
101
+ ## Safety & PII
102
+ - Mark PII in run payloads/logs; redact in markdown/JSON targets.
103
+ - Avoid exposing raw tool outputs to MCP/web without policy checks.
104
+
105
+ ## Verification
106
+ - Add fixtures for tool schema changes and run lifecycle.
107
+ - Ensure Audit/Notifications remain wired for runs; metrics collection unchanged.
108
+ - Use Feature Flags to gate risky tools; default safe/off.`
109
+ }
110
+ ]);
111
+
112
+ //#endregion
113
+ //# sourceMappingURL=agent-console.docblock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-console.docblock.js","names":[],"sources":["../../src/docs/agent-console.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@contractspec/lib.contracts/docs';\nimport { registerDocBlocks } from '@contractspec/lib.contracts/docs';\n\nconst agentConsoleDocBlocks: DocBlock[] = [\n {\n id: 'docs.examples.agent-console.goal',\n title: 'Agent Console — Goal',\n summary: 'AI agent ops console: tools, agents, runs, logs, and metrics.',\n kind: 'goal',\n visibility: 'public',\n route: '/docs/examples/agent-console/goal',\n tags: ['ai', 'agents', 'goal'],\n body: `## Why it matters\n- Provides a regenerable agent operations surface with tool registry and run history.\n- Prevents drift between tool schemas, agent configs, and execution logs.\n\n## Business/Product goal\n- Safely manage tools/agents/runs with auditability and observability.\n- Enable staged rollout of tools and metrics via feature flags.\n\n## Success criteria\n- Tool/agent/run specs regenerate UI/API/events cleanly.\n- Logs/metrics stay aligned and PII is scoped.`,\n },\n {\n id: 'docs.examples.agent-console.usage',\n title: 'Agent Console — Usage',\n summary: 'How to operate, extend, and regenerate the agent console safely.',\n kind: 'usage',\n visibility: 'public',\n route: '/docs/examples/agent-console/usage',\n tags: ['ai', 'agents', 'usage'],\n body: `## Setup\n1) Seed (if available) or create tools and agents; define run configs.\n2) Configure Notifications for run completion/failure; Audit for changes.\n\n## Extend & regenerate\n1) Adjust tool schemas (inputs/outputs), agent configs, run metrics in spec.\n2) Regenerate to sync UI/API/events/logs; mark PII paths for run payloads.\n3) Use Feature Flags to gate risky tools or execution policies.\n\n## Guardrails\n- Emit events for run lifecycle; store logs with redaction where needed.\n- Enforce tool input validation; avoid unsafe arbitrary code exec in handlers.\n- Keep tenant/user scoping explicit for ops data.`,\n },\n {\n id: 'docs.examples.agent-console.reference',\n title: 'Agent Console — Reference',\n summary:\n 'Entities, contracts, events, and presentations for the agent console.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/examples/agent-console',\n tags: ['ai', 'agents', 'reference'],\n body: `## Entities\n- Tool, Agent, AgentTool, Run, RunStep, RunLog, RunMetric.\n\n## Contracts\n- tool/create, agent/create, agent/execute, run/get, run/logs, run/metrics.\n\n## Events\n- tool.created, agent.created, run.started/completed/failed, tool.invoked.\n\n## Presentations\n- Tool registry, agent list/detail, run list/detail, metrics dashboards.\n\n## Notes\n- Keep tool schemas explicit; enforce validation in spec.\n- Use Audit Trail for agent/run changes; Notifications for run outcomes.`,\n },\n {\n id: 'docs.examples.agent-console.constraints',\n title: 'Agent Console — Constraints & Safety',\n summary:\n 'Internal guardrails for tool/agent/run safety, PII, and regeneration.',\n kind: 'reference',\n visibility: 'internal',\n route: '/docs/examples/agent-console/constraints',\n tags: ['ai', 'agents', 'constraints', 'internal'],\n body: `## Constraints\n- Tool schemas (inputs/outputs) must be explicit in spec; no arbitrary untyped payloads.\n- Events to emit: tool.created, agent.created, run.started/completed/failed, tool.invoked.\n- Regeneration must not loosen execution policies or logging without explicit spec diff.\n\n## Safety & PII\n- Mark PII in run payloads/logs; redact in markdown/JSON targets.\n- Avoid exposing raw tool outputs to MCP/web without policy checks.\n\n## Verification\n- Add fixtures for tool schema changes and run lifecycle.\n- Ensure Audit/Notifications remain wired for runs; metrics collection unchanged.\n- Use Feature Flags to gate risky tools; default safe/off.`,\n },\n];\n\nregisterDocBlocks(agentConsoleDocBlocks);\n"],"mappings":";;;AAgGA,kBA7F0C;CACxC;EACE,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAO;EAC9B,MAAM;;;;;;;;;;;EAWP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAQ;EAC/B,MAAM;;;;;;;;;;;;;EAaP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SACE;EACF,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAY;EACnC,MAAM;;;;;;;;;;;;;;;EAeP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SACE;EACF,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAe;GAAW;EACjD,MAAM;;;;;;;;;;;;;EAaP;CACF,CAEuC"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ import "./agent-console.docblock.js";
@@ -0,0 +1,40 @@
1
+ //#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
+ };
38
+ //#endregion
39
+ export { example as default };
40
+ //# sourceMappingURL=example.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EA+BI,EAAA,eAAA"}
@@ -0,0 +1,51 @@
1
+ //#region src/example.ts
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",
14
+ docs: {
15
+ rootDocId: "docs.examples.agent-console.reference",
16
+ goalDocId: "docs.examples.agent-console.goal",
17
+ usageDocId: "docs.examples.agent-console.usage",
18
+ constraintsDocId: "docs.examples.agent-console.constraints"
19
+ },
20
+ entrypoints: {
21
+ packageName: "@contractspec/example.agent-console",
22
+ feature: "./feature",
23
+ contracts: "./contracts",
24
+ presentations: "./presentations",
25
+ handlers: "./handlers",
26
+ docs: "./docs"
27
+ },
28
+ surfaces: {
29
+ templates: true,
30
+ sandbox: {
31
+ enabled: true,
32
+ modes: [
33
+ "playground",
34
+ "specs",
35
+ "builder",
36
+ "markdown",
37
+ "evolution"
38
+ ]
39
+ },
40
+ studio: {
41
+ enabled: true,
42
+ installable: true
43
+ },
44
+ mcp: { enabled: true }
45
+ }
46
+ };
47
+ var example_default = example;
48
+
49
+ //#endregion
50
+ export { example_default as default };
51
+ //# sourceMappingURL=example.js.map
@@ -0,0 +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"}
@@ -0,0 +1,4 @@
1
+ import { AgentSummary, mockCreateAgentHandler, mockGetAgentHandler, mockListAgentsHandler } from "../agent/agent.handler.js";
2
+ import { RunSummary, mockExecuteAgentHandler, mockGetRunHandler, mockListRunsHandler } from "../run/run.handler.js";
3
+ import { ToolSummary, mockCreateToolHandler, mockGetToolHandler, mockListToolsHandler } from "../tool/tool.handler.js";
4
+ export { type AgentSummary, type RunSummary, type ToolSummary, mockCreateAgentHandler, mockCreateToolHandler, mockExecuteAgentHandler, mockGetAgentHandler, mockGetRunHandler, mockGetToolHandler, mockListAgentsHandler, mockListRunsHandler, mockListToolsHandler };
@@ -0,0 +1,5 @@
1
+ import { mockCreateAgentHandler, mockGetAgentHandler, mockListAgentsHandler } from "../agent/agent.handler.js";
2
+ import { mockExecuteAgentHandler, mockGetRunHandler, mockListRunsHandler } from "../run/run.handler.js";
3
+ import { mockCreateToolHandler, mockGetToolHandler, mockListToolsHandler } from "../tool/tool.handler.js";
4
+
5
+ export { mockCreateAgentHandler, mockCreateToolHandler, mockExecuteAgentHandler, mockGetAgentHandler, mockGetRunHandler, mockGetToolHandler, mockListAgentsHandler, mockListRunsHandler, mockListToolsHandler };
@@ -0,0 +1,30 @@
1
+ import { AgentConsoleFeature } from "./agent.feature.js";
2
+ import { AgentEntity, AgentStatusEntityEnum, AgentToolEntity, ModelProviderEntityEnum } from "./agent/agent.entity.js";
3
+ import { AgentStatusEnum, ModelProviderEnum, ToolChoiceEnum } from "./agent/agent.enum.js";
4
+ import { AgentCreatedEvent, AgentToolAssignedEvent, AgentToolRemovedEvent, AgentUpdatedEvent } from "./agent/agent.event.js";
5
+ import { AgentSummary, AgentToolRef, AgentWithTools, GetAgentInput, ListAgentsInput, ListAgentsOutput, mockCreateAgentHandler, mockGetAgentHandler, mockListAgentsHandler, mockUpdateAgentHandler } from "./agent/agent.handler.js";
6
+ import { AssignToolToAgentCommand, CreateAgentCommand, GetAgentQuery, ListAgentsQuery, RemoveToolFromAgentCommand, UpdateAgentCommand } from "./agent/agent.operation.js";
7
+ import { AgentConsoleDashboardPresentation, AgentDetailPresentation, AgentListPresentation } from "./agent/agent.presentation.js";
8
+ import { AgentModel, AgentSummaryModel, AgentToolRefModel, AgentWithToolsModel, CreateAgentInputModel, UpdateAgentInputModel } from "./agent/agent.schema.js";
9
+ import "./agent/index.js";
10
+ import example from "./example.js";
11
+ import { ListRunsInput, ListRunsOutput, RunSummary, mockCancelRunHandler, mockExecuteAgentHandler, mockGetRunHandler, mockListRunsHandler } from "./run/run.handler.js";
12
+ import { ListToolsInput, ListToolsOutput, ToolSummary, mockCreateToolHandler, mockGetToolHandler, mockListToolsHandler, mockTestToolHandler, mockUpdateToolHandler } from "./tool/tool.handler.js";
13
+ import { GranularityEnum, LogLevelEnum, RunStatusEnum, RunStepTypeEnum } from "./run/run.enum.js";
14
+ import { RunAgentRefModel, RunInputModel, RunLogModel, RunModel, RunStepModel, RunSummaryModel, TimelineDataPointModel } from "./run/run.schema.js";
15
+ import { CancelRunCommand, ExecuteAgentCommand, GetRunLogsQuery, GetRunMetricsQuery, GetRunQuery, GetRunStepsQuery, ListRunsQuery } from "./run/run.operation.js";
16
+ import { MessageGeneratedEvent, RunCancelledEvent, RunCompletedEvent, RunFailedEvent, RunStartedEvent, ToolCompletedEvent, ToolInvokedEvent } from "./run/run.event.js";
17
+ import { LogLevelEntityEnum, RunEntity, RunLogEntity, RunStatusEntityEnum, RunStepEntity, RunStepTypeEntityEnum } from "./run/run.entity.js";
18
+ import { RunDetailPresentation, RunListPresentation } from "./run/run.presentation.js";
19
+ import "./run/index.js";
20
+ import { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum } from "./tool/tool.enum.js";
21
+ import { CreateToolInputModel, ToolModel, ToolSummaryModel, UpdateToolInputModel } from "./tool/tool.schema.js";
22
+ import { CreateToolCommand, GetToolQuery, ListToolsQuery, TestToolCommand, UpdateToolCommand } from "./tool/tool.operation.js";
23
+ import { ToolCreatedEvent, ToolStatusChangedEvent, ToolUpdatedEvent } from "./tool/tool.event.js";
24
+ import { ImplementationTypeEntityEnum, ToolCategoryEntityEnum, ToolEntity, ToolStatusEntityEnum } from "./tool/tool.entity.js";
25
+ import { ToolDetailPresentation, ToolListPresentation } from "./tool/tool.presentation.js";
26
+ import "./tool/index.js";
27
+ import { MOCK_AGENTS } from "./shared/mock-agents.js";
28
+ import { MOCK_TOOLS } from "./shared/mock-tools.js";
29
+ import { MOCK_RUNS } from "./shared/mock-runs.js";
30
+ export { AgentConsoleDashboardPresentation, AgentConsoleFeature, AgentCreatedEvent, AgentDetailPresentation, AgentEntity, AgentListPresentation, AgentModel, AgentStatusEntityEnum, AgentStatusEnum, AgentSummary, AgentSummaryModel, AgentToolAssignedEvent, AgentToolEntity, AgentToolRef, AgentToolRefModel, AgentToolRemovedEvent, AgentUpdatedEvent, AgentWithTools, AgentWithToolsModel, AssignToolToAgentCommand, CancelRunCommand, CreateAgentCommand, CreateAgentInputModel, CreateToolCommand, CreateToolInputModel, ExecuteAgentCommand, GetAgentInput, GetAgentQuery, GetRunLogsQuery, GetRunMetricsQuery, GetRunQuery, GetRunStepsQuery, GetToolQuery, GranularityEnum, ImplementationTypeEntityEnum, ImplementationTypeEnum, ListAgentsInput, ListAgentsOutput, ListAgentsQuery, ListRunsInput, ListRunsOutput, ListRunsQuery, ListToolsInput, ListToolsOutput, ListToolsQuery, LogLevelEntityEnum, LogLevelEnum, MOCK_AGENTS, MOCK_RUNS, MOCK_TOOLS, MessageGeneratedEvent, ModelProviderEntityEnum, ModelProviderEnum, RemoveToolFromAgentCommand, RunAgentRefModel, RunCancelledEvent, RunCompletedEvent, RunDetailPresentation, RunEntity, RunFailedEvent, RunInputModel, RunListPresentation, RunLogEntity, RunLogModel, RunModel, RunStartedEvent, RunStatusEntityEnum, RunStatusEnum, RunStepEntity, RunStepModel, RunStepTypeEntityEnum, RunStepTypeEnum, RunSummary, RunSummaryModel, TestToolCommand, TimelineDataPointModel, ToolCategoryEntityEnum, ToolCategoryEnum, ToolChoiceEnum, ToolCompletedEvent, ToolCreatedEvent, ToolDetailPresentation, ToolEntity, ToolInvokedEvent, ToolListPresentation, ToolModel, ToolStatusChangedEvent, ToolStatusEntityEnum, ToolStatusEnum, ToolSummary, ToolSummaryModel, ToolUpdatedEvent, UpdateAgentCommand, UpdateAgentInputModel, UpdateToolCommand, UpdateToolInputModel, example, mockCancelRunHandler, mockCreateAgentHandler, mockCreateToolHandler, mockExecuteAgentHandler, mockGetAgentHandler, mockGetRunHandler, mockGetToolHandler, mockListAgentsHandler, mockListRunsHandler, mockListToolsHandler, mockTestToolHandler, mockUpdateAgentHandler, mockUpdateToolHandler };
package/dist/index.js ADDED
@@ -0,0 +1,32 @@
1
+ import { AgentConsoleFeature } from "./agent.feature.js";
2
+ import example_default from "./example.js";
3
+ import { AgentStatusEnum, ModelProviderEnum, ToolChoiceEnum } from "./agent/agent.enum.js";
4
+ import { AgentModel, AgentSummaryModel, AgentToolRefModel, AgentWithToolsModel, CreateAgentInputModel, UpdateAgentInputModel } from "./agent/agent.schema.js";
5
+ import { AgentCreatedEvent, AgentToolAssignedEvent, AgentToolRemovedEvent, AgentUpdatedEvent } from "./agent/agent.event.js";
6
+ import { AssignToolToAgentCommand, CreateAgentCommand, GetAgentQuery, ListAgentsQuery, RemoveToolFromAgentCommand, UpdateAgentCommand } from "./agent/agent.operation.js";
7
+ import { AgentEntity, AgentStatusEntityEnum, AgentToolEntity, ModelProviderEntityEnum } from "./agent/agent.entity.js";
8
+ import { AgentConsoleDashboardPresentation, AgentDetailPresentation, AgentListPresentation } from "./agent/agent.presentation.js";
9
+ import { MOCK_AGENTS } from "./shared/mock-agents.js";
10
+ import { MOCK_TOOLS } from "./shared/mock-tools.js";
11
+ import { mockCreateAgentHandler, mockGetAgentHandler, mockListAgentsHandler, mockUpdateAgentHandler } from "./agent/agent.handler.js";
12
+ import "./agent/index.js";
13
+ import { GranularityEnum, LogLevelEnum, RunStatusEnum, RunStepTypeEnum } from "./run/run.enum.js";
14
+ import { RunAgentRefModel, RunInputModel, RunLogModel, RunModel, RunStepModel, RunSummaryModel, TimelineDataPointModel } from "./run/run.schema.js";
15
+ import { CancelRunCommand, ExecuteAgentCommand, GetRunLogsQuery, GetRunMetricsQuery, GetRunQuery, GetRunStepsQuery, ListRunsQuery } from "./run/run.operation.js";
16
+ import { MessageGeneratedEvent, RunCancelledEvent, RunCompletedEvent, RunFailedEvent, RunStartedEvent, ToolCompletedEvent, ToolInvokedEvent } from "./run/run.event.js";
17
+ import { LogLevelEntityEnum, RunEntity, RunLogEntity, RunStatusEntityEnum, RunStepEntity, RunStepTypeEntityEnum } from "./run/run.entity.js";
18
+ import { RunDetailPresentation, RunListPresentation } from "./run/run.presentation.js";
19
+ import { MOCK_RUNS } from "./shared/mock-runs.js";
20
+ import { mockCancelRunHandler, mockExecuteAgentHandler, mockGetRunHandler, mockListRunsHandler } from "./run/run.handler.js";
21
+ import "./run/index.js";
22
+ import { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum } from "./tool/tool.enum.js";
23
+ import { CreateToolInputModel, ToolModel, ToolSummaryModel, UpdateToolInputModel } from "./tool/tool.schema.js";
24
+ import { CreateToolCommand, GetToolQuery, ListToolsQuery, TestToolCommand, UpdateToolCommand } from "./tool/tool.operation.js";
25
+ import { ToolCreatedEvent, ToolStatusChangedEvent, ToolUpdatedEvent } from "./tool/tool.event.js";
26
+ import { ImplementationTypeEntityEnum, ToolCategoryEntityEnum, ToolEntity, ToolStatusEntityEnum } from "./tool/tool.entity.js";
27
+ import { ToolDetailPresentation, ToolListPresentation } from "./tool/tool.presentation.js";
28
+ import { mockCreateToolHandler, mockGetToolHandler, mockListToolsHandler, mockTestToolHandler, mockUpdateToolHandler } from "./tool/tool.handler.js";
29
+ import "./tool/index.js";
30
+ import "./docs/index.js";
31
+
32
+ export { AgentConsoleDashboardPresentation, AgentConsoleFeature, AgentCreatedEvent, AgentDetailPresentation, AgentEntity, AgentListPresentation, AgentModel, AgentStatusEntityEnum, AgentStatusEnum, AgentSummaryModel, AgentToolAssignedEvent, AgentToolEntity, AgentToolRefModel, AgentToolRemovedEvent, AgentUpdatedEvent, AgentWithToolsModel, AssignToolToAgentCommand, CancelRunCommand, CreateAgentCommand, CreateAgentInputModel, CreateToolCommand, CreateToolInputModel, ExecuteAgentCommand, GetAgentQuery, GetRunLogsQuery, GetRunMetricsQuery, GetRunQuery, GetRunStepsQuery, GetToolQuery, GranularityEnum, ImplementationTypeEntityEnum, ImplementationTypeEnum, ListAgentsQuery, ListRunsQuery, ListToolsQuery, LogLevelEntityEnum, LogLevelEnum, MOCK_AGENTS, MOCK_RUNS, MOCK_TOOLS, MessageGeneratedEvent, ModelProviderEntityEnum, ModelProviderEnum, RemoveToolFromAgentCommand, RunAgentRefModel, RunCancelledEvent, RunCompletedEvent, RunDetailPresentation, RunEntity, RunFailedEvent, RunInputModel, RunListPresentation, RunLogEntity, RunLogModel, RunModel, RunStartedEvent, RunStatusEntityEnum, RunStatusEnum, RunStepEntity, RunStepModel, RunStepTypeEntityEnum, RunStepTypeEnum, RunSummaryModel, TestToolCommand, TimelineDataPointModel, ToolCategoryEntityEnum, ToolCategoryEnum, ToolChoiceEnum, ToolCompletedEvent, ToolCreatedEvent, ToolDetailPresentation, ToolEntity, ToolInvokedEvent, ToolListPresentation, ToolModel, ToolStatusChangedEvent, ToolStatusEntityEnum, ToolStatusEnum, ToolSummaryModel, ToolUpdatedEvent, UpdateAgentCommand, UpdateAgentInputModel, UpdateToolCommand, UpdateToolInputModel, example_default as example, mockCancelRunHandler, mockCreateAgentHandler, mockCreateToolHandler, mockExecuteAgentHandler, mockGetAgentHandler, mockGetRunHandler, mockGetToolHandler, mockListAgentsHandler, mockListRunsHandler, mockListToolsHandler, mockTestToolHandler, mockUpdateAgentHandler, mockUpdateToolHandler };
@@ -0,0 +1,4 @@
1
+ import { AgentConsoleDashboardPresentation, AgentDetailPresentation, AgentListPresentation } from "../agent/agent.presentation.js";
2
+ import { RunDetailPresentation, RunListPresentation } from "../run/run.presentation.js";
3
+ import { ToolDetailPresentation, ToolListPresentation } from "../tool/tool.presentation.js";
4
+ export { AgentConsoleDashboardPresentation, AgentDetailPresentation, AgentListPresentation, RunDetailPresentation, RunListPresentation, RunDetailPresentation as RunMetricsPresentation, ToolDetailPresentation, ToolListPresentation, ToolListPresentation as ToolRegistryPresentation };
@@ -0,0 +1,5 @@
1
+ import { AgentConsoleDashboardPresentation, AgentDetailPresentation, AgentListPresentation } from "../agent/agent.presentation.js";
2
+ import { RunDetailPresentation, RunListPresentation } from "../run/run.presentation.js";
3
+ import { ToolDetailPresentation, ToolListPresentation } from "../tool/tool.presentation.js";
4
+
5
+ export { AgentConsoleDashboardPresentation, AgentDetailPresentation, AgentListPresentation, RunDetailPresentation, RunListPresentation, RunDetailPresentation as RunMetricsPresentation, ToolDetailPresentation, ToolListPresentation, ToolListPresentation as ToolRegistryPresentation };
@@ -0,0 +1,8 @@
1
+ import { ListRunsInput, ListRunsOutput, RunSummary, mockCancelRunHandler, mockExecuteAgentHandler, mockGetRunHandler, mockListRunsHandler } from "./run.handler.js";
2
+ import { GranularityEnum, LogLevelEnum, RunStatusEnum, RunStepTypeEnum } from "./run.enum.js";
3
+ import { RunAgentRefModel, RunInputModel, RunLogModel, RunModel, RunStepModel, RunSummaryModel, TimelineDataPointModel } from "./run.schema.js";
4
+ import { CancelRunCommand, ExecuteAgentCommand, GetRunLogsQuery, GetRunMetricsQuery, GetRunQuery, GetRunStepsQuery, ListRunsQuery } from "./run.operation.js";
5
+ import { MessageGeneratedEvent, RunCancelledEvent, RunCompletedEvent, RunFailedEvent, RunStartedEvent, ToolCompletedEvent, ToolInvokedEvent } from "./run.event.js";
6
+ import { LogLevelEntityEnum, RunEntity, RunLogEntity, RunStatusEntityEnum, RunStepEntity, RunStepTypeEntityEnum } from "./run.entity.js";
7
+ import { RunDetailPresentation, RunListPresentation } from "./run.presentation.js";
8
+ export { CancelRunCommand, ExecuteAgentCommand, GetRunLogsQuery, GetRunMetricsQuery, GetRunQuery, GetRunStepsQuery, GranularityEnum, type ListRunsInput, type ListRunsOutput, ListRunsQuery, LogLevelEntityEnum, LogLevelEnum, MessageGeneratedEvent, RunAgentRefModel, RunCancelledEvent, RunCompletedEvent, RunDetailPresentation, RunEntity, RunFailedEvent, RunInputModel, RunListPresentation, RunLogEntity, RunLogModel, RunModel, RunStartedEvent, RunStatusEntityEnum, RunStatusEnum, RunStepEntity, RunStepModel, RunStepTypeEntityEnum, RunStepTypeEnum, type RunSummary, RunSummaryModel, TimelineDataPointModel, ToolCompletedEvent, ToolInvokedEvent, mockCancelRunHandler, mockExecuteAgentHandler, mockGetRunHandler, mockListRunsHandler };