@lssm/example.agent-console 0.0.0-canary-20251225044228 → 0.0.0-canary-20251225052113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build$colon$bundle.log +11 -11
- package/.turbo/turbo-build.log +17 -17
- package/CHANGELOG.md +6 -6
- package/dist/agent/agent.operation.d.ts +115 -115
- package/dist/agent/agent.operation.d.ts.map +1 -1
- package/dist/agent/agent.operation.js +152 -4
- package/dist/agent/agent.operation.js.map +1 -1
- package/dist/agent/agent.schema.d.ts +95 -95
- package/dist/run/run.entity.d.ts +56 -56
- package/dist/run/run.enum.d.ts +5 -5
- package/dist/run/run.event.d.ts +70 -70
- package/dist/run/run.operation.d.ts +174 -174
- package/dist/run/run.operation.d.ts.map +1 -1
- package/dist/run/run.operation.js +157 -5
- package/dist/run/run.operation.js.map +1 -1
- package/dist/run/run.schema.d.ts +99 -99
- package/dist/tool/tool.entity.d.ts +24 -24
- package/dist/tool/tool.enum.d.ts +4 -4
- package/dist/tool/tool.event.d.ts +24 -24
- package/dist/tool/tool.handler.d.ts.map +1 -1
- package/dist/tool/tool.operation.d.ts +100 -100
- package/dist/tool/tool.operation.d.ts.map +1 -1
- package/dist/tool/tool.operation.js +116 -3
- package/dist/tool/tool.operation.js.map +1 -1
- package/dist/tool/tool.presentation.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/agent/agent.operation.ts +132 -0
- package/src/run/run.operation.ts +131 -0
- package/src/tool/tool.operation.ts +97 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -59,6 +59,29 @@ export const CreateToolCommand = defineCommand({
|
|
|
59
59
|
],
|
|
60
60
|
audit: ['tool.created'],
|
|
61
61
|
},
|
|
62
|
+
acceptance: {
|
|
63
|
+
scenarios: [
|
|
64
|
+
{
|
|
65
|
+
key: 'create-tool-happy-path',
|
|
66
|
+
given: ['User is authenticated', 'Organization exists'],
|
|
67
|
+
when: ['User submits valid tool configuration'],
|
|
68
|
+
then: ['New tool is created', 'ToolCreated event is emitted'],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
key: 'create-tool-slug-conflict',
|
|
72
|
+
given: ['Tool with same slug exists'],
|
|
73
|
+
when: ['User submits tool with duplicate slug'],
|
|
74
|
+
then: ['SLUG_EXISTS error is returned'],
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
examples: [
|
|
78
|
+
{
|
|
79
|
+
key: 'create-api-tool',
|
|
80
|
+
input: { name: 'Weather API', slug: 'weather-api', category: 'api', description: 'Fetches weather data' },
|
|
81
|
+
output: { id: 'tool-123', name: 'Weather API', slug: 'weather-api', status: 'draft' },
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
},
|
|
62
85
|
});
|
|
63
86
|
|
|
64
87
|
/**
|
|
@@ -110,6 +133,23 @@ export const UpdateToolCommand = defineCommand({
|
|
|
110
133
|
],
|
|
111
134
|
audit: ['tool.updated'],
|
|
112
135
|
},
|
|
136
|
+
acceptance: {
|
|
137
|
+
scenarios: [
|
|
138
|
+
{
|
|
139
|
+
key: 'update-tool-happy-path',
|
|
140
|
+
given: ['Tool exists', 'User owns the tool'],
|
|
141
|
+
when: ['User submits updated configuration'],
|
|
142
|
+
then: ['Tool is updated', 'ToolUpdated event is emitted'],
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
examples: [
|
|
146
|
+
{
|
|
147
|
+
key: 'update-description',
|
|
148
|
+
input: { toolId: 'tool-123', description: 'Updated weather API tool' },
|
|
149
|
+
output: { id: 'tool-123', name: 'Weather API', status: 'draft', updatedAt: '2025-01-01T00:00:00Z' },
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
},
|
|
113
153
|
});
|
|
114
154
|
|
|
115
155
|
/**
|
|
@@ -144,6 +184,23 @@ export const GetToolQuery = defineQuery({
|
|
|
144
184
|
},
|
|
145
185
|
},
|
|
146
186
|
policy: { auth: 'user' },
|
|
187
|
+
acceptance: {
|
|
188
|
+
scenarios: [
|
|
189
|
+
{
|
|
190
|
+
key: 'get-tool-happy-path',
|
|
191
|
+
given: ['Tool exists'],
|
|
192
|
+
when: ['User requests tool by ID'],
|
|
193
|
+
then: ['Tool details are returned'],
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
examples: [
|
|
197
|
+
{
|
|
198
|
+
key: 'get-basic',
|
|
199
|
+
input: { toolId: 'tool-123' },
|
|
200
|
+
output: { id: 'tool-123', name: 'Weather API', status: 'active', category: 'api' },
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
},
|
|
147
204
|
});
|
|
148
205
|
|
|
149
206
|
/**
|
|
@@ -193,6 +250,23 @@ export const ListToolsQuery = defineQuery({
|
|
|
193
250
|
}),
|
|
194
251
|
},
|
|
195
252
|
policy: { auth: 'user' },
|
|
253
|
+
acceptance: {
|
|
254
|
+
scenarios: [
|
|
255
|
+
{
|
|
256
|
+
key: 'list-tools-happy-path',
|
|
257
|
+
given: ['Organization has tools'],
|
|
258
|
+
when: ['User lists tools'],
|
|
259
|
+
then: ['Paginated list of tools is returned'],
|
|
260
|
+
},
|
|
261
|
+
],
|
|
262
|
+
examples: [
|
|
263
|
+
{
|
|
264
|
+
key: 'list-by-category',
|
|
265
|
+
input: { organizationId: 'org-123', category: 'api', limit: 10 },
|
|
266
|
+
output: { items: [], total: 0, hasMore: false },
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
},
|
|
196
270
|
});
|
|
197
271
|
|
|
198
272
|
/**
|
|
@@ -243,4 +317,27 @@ export const TestToolCommand = defineCommand({
|
|
|
243
317
|
},
|
|
244
318
|
policy: { auth: 'user' },
|
|
245
319
|
sideEffects: { audit: ['tool.tested'] },
|
|
320
|
+
acceptance: {
|
|
321
|
+
scenarios: [
|
|
322
|
+
{
|
|
323
|
+
key: 'test-tool-success',
|
|
324
|
+
given: ['Tool exists', 'Tool is configured correctly'],
|
|
325
|
+
when: ['User runs test with valid input'],
|
|
326
|
+
then: ['Tool executes successfully', 'Output is returned'],
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
key: 'test-tool-failure',
|
|
330
|
+
given: ['Tool exists', 'Tool has configuration error'],
|
|
331
|
+
when: ['User runs test'],
|
|
332
|
+
then: ['TOOL_EXECUTION_ERROR is returned'],
|
|
333
|
+
},
|
|
334
|
+
],
|
|
335
|
+
examples: [
|
|
336
|
+
{
|
|
337
|
+
key: 'test-weather-api',
|
|
338
|
+
input: { toolId: 'tool-123', testInput: { city: 'Paris' } },
|
|
339
|
+
output: { success: true, output: { temperature: 22 }, durationMs: 150 },
|
|
340
|
+
},
|
|
341
|
+
],
|
|
342
|
+
},
|
|
246
343
|
});
|