@lssm/example.agent-console 0.0.0-canary-20251225052113 → 0.0.0-canary-20251225071908

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.
@@ -65,7 +65,10 @@ export const CreateAgentCommand = defineCommand({
65
65
  key: 'create-agent-happy-path',
66
66
  given: ['User is authenticated', 'Organization exists'],
67
67
  when: ['User submits valid agent configuration'],
68
- then: ['New agent is created with DRAFT status', 'AgentCreated event is emitted'],
68
+ then: [
69
+ 'New agent is created with DRAFT status',
70
+ 'AgentCreated event is emitted',
71
+ ],
69
72
  },
70
73
  {
71
74
  key: 'create-agent-slug-conflict',
@@ -77,8 +80,18 @@ export const CreateAgentCommand = defineCommand({
77
80
  examples: [
78
81
  {
79
82
  key: 'basic-create',
80
- input: { name: 'Support Assistant', slug: 'support-assistant', modelProvider: 'openai', modelId: 'gpt-4' },
81
- output: { id: 'agent-123', name: 'Support Assistant', slug: 'support-assistant', status: 'draft' },
83
+ input: {
84
+ name: 'Support Assistant',
85
+ slug: 'support-assistant',
86
+ modelProvider: 'openai',
87
+ modelId: 'gpt-4',
88
+ },
89
+ output: {
90
+ id: 'agent-123',
91
+ name: 'Support Assistant',
92
+ slug: 'support-assistant',
93
+ status: 'draft',
94
+ },
82
95
  },
83
96
  ],
84
97
  },
@@ -151,8 +164,17 @@ export const UpdateAgentCommand = defineCommand({
151
164
  examples: [
152
165
  {
153
166
  key: 'update-name',
154
- input: { agentId: 'agent-123', name: 'Updated Assistant', systemPrompt: 'You are a helpful assistant.' },
155
- output: { id: 'agent-123', name: 'Updated Assistant', status: 'draft', updatedAt: '2025-01-01T00:00:00Z' },
167
+ input: {
168
+ agentId: 'agent-123',
169
+ name: 'Updated Assistant',
170
+ systemPrompt: 'You are a helpful assistant.',
171
+ },
172
+ output: {
173
+ id: 'agent-123',
174
+ name: 'Updated Assistant',
175
+ status: 'draft',
176
+ updatedAt: '2025-01-01T00:00:00Z',
177
+ },
156
178
  },
157
179
  ],
158
180
  },
@@ -210,7 +232,12 @@ export const GetAgentQuery = defineQuery({
210
232
  {
211
233
  key: 'get-basic',
212
234
  input: { agentId: 'agent-123', includeTools: false },
213
- output: { id: 'agent-123', name: 'Support Assistant', status: 'active', tools: [] },
235
+ output: {
236
+ id: 'agent-123',
237
+ name: 'Support Assistant',
238
+ status: 'active',
239
+ tools: [],
240
+ },
214
241
  },
215
242
  ],
216
243
  },
@@ -353,7 +380,11 @@ export const AssignToolToAgentCommand = defineCommand({
353
380
  {
354
381
  key: 'assign-basic',
355
382
  input: { agentId: 'agent-123', toolId: 'tool-456' },
356
- output: { agentToolId: 'at-789', agentId: 'agent-123', toolId: 'tool-456' },
383
+ output: {
384
+ agentToolId: 'at-789',
385
+ agentId: 'agent-123',
386
+ toolId: 'tool-456',
387
+ },
357
388
  },
358
389
  ],
359
390
  },
@@ -499,8 +499,22 @@ export const GetRunMetricsQuery = defineQuery({
499
499
  examples: [
500
500
  {
501
501
  key: 'get-daily-metrics',
502
- input: { organizationId: 'org-123', startDate: '2025-01-01', endDate: '2025-01-31', granularity: 'day' },
503
- output: { totalRuns: 100, completedRuns: 90, failedRuns: 10, totalTokens: 50000, totalCostUsd: 5.0, averageDurationMs: 2500, successRate: 0.9, timeline: [] },
502
+ input: {
503
+ organizationId: 'org-123',
504
+ startDate: '2025-01-01',
505
+ endDate: '2025-01-31',
506
+ granularity: 'day',
507
+ },
508
+ output: {
509
+ totalRuns: 100,
510
+ completedRuns: 90,
511
+ failedRuns: 10,
512
+ totalTokens: 50000,
513
+ totalCostUsd: 5.0,
514
+ averageDurationMs: 2500,
515
+ successRate: 0.9,
516
+ timeline: [],
517
+ },
504
518
  },
505
519
  ],
506
520
  },
@@ -77,8 +77,18 @@ export const CreateToolCommand = defineCommand({
77
77
  examples: [
78
78
  {
79
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' },
80
+ input: {
81
+ name: 'Weather API',
82
+ slug: 'weather-api',
83
+ category: 'api',
84
+ description: 'Fetches weather data',
85
+ },
86
+ output: {
87
+ id: 'tool-123',
88
+ name: 'Weather API',
89
+ slug: 'weather-api',
90
+ status: 'draft',
91
+ },
82
92
  },
83
93
  ],
84
94
  },
@@ -146,7 +156,12 @@ export const UpdateToolCommand = defineCommand({
146
156
  {
147
157
  key: 'update-description',
148
158
  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' },
159
+ output: {
160
+ id: 'tool-123',
161
+ name: 'Weather API',
162
+ status: 'draft',
163
+ updatedAt: '2025-01-01T00:00:00Z',
164
+ },
150
165
  },
151
166
  ],
152
167
  },
@@ -197,7 +212,12 @@ export const GetToolQuery = defineQuery({
197
212
  {
198
213
  key: 'get-basic',
199
214
  input: { toolId: 'tool-123' },
200
- output: { id: 'tool-123', name: 'Weather API', status: 'active', category: 'api' },
215
+ output: {
216
+ id: 'tool-123',
217
+ name: 'Weather API',
218
+ status: 'active',
219
+ category: 'api',
220
+ },
201
221
  },
202
222
  ],
203
223
  },