@lssm/example.agent-console 0.0.0-canary-20251223215909 → 0.0.0-canary-20251225044228

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 (62) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +33 -33
  2. package/.turbo/turbo-build.log +33 -33
  3. package/CHANGELOG.md +6 -6
  4. package/dist/agent/agent.entity.d.ts +36 -36
  5. package/dist/agent/agent.entity.d.ts.map +1 -1
  6. package/dist/agent/agent.enum.d.ts +4 -4
  7. package/dist/agent/agent.event.d.ts +30 -30
  8. package/dist/agent/agent.event.d.ts.map +1 -1
  9. package/dist/agent/agent.event.js +41 -12
  10. package/dist/agent/agent.event.js.map +1 -1
  11. package/dist/agent/agent.operation.d.ts +120 -154
  12. package/dist/agent/agent.operation.d.ts.map +1 -1
  13. package/dist/agent/agent.operation.js +12 -9
  14. package/dist/agent/agent.operation.js.map +1 -1
  15. package/dist/agent/agent.presentation.d.ts.map +1 -1
  16. package/dist/agent/agent.presentation.js +19 -6
  17. package/dist/agent/agent.presentation.js.map +1 -1
  18. package/dist/agent/agent.schema.d.ts +95 -95
  19. package/dist/agent.feature.js +76 -69
  20. package/dist/agent.feature.js.map +1 -1
  21. package/dist/run/run.entity.d.ts +56 -56
  22. package/dist/run/run.enum.d.ts +5 -5
  23. package/dist/run/run.event.d.ts +70 -70
  24. package/dist/run/run.event.d.ts.map +1 -1
  25. package/dist/run/run.event.js +69 -21
  26. package/dist/run/run.event.js.map +1 -1
  27. package/dist/run/run.operation.d.ts +182 -176
  28. package/dist/run/run.operation.d.ts.map +1 -1
  29. package/dist/run/run.operation.js +16 -10
  30. package/dist/run/run.operation.js.map +1 -1
  31. package/dist/run/run.presentation.d.ts.map +1 -1
  32. package/dist/run/run.presentation.js +13 -4
  33. package/dist/run/run.presentation.js.map +1 -1
  34. package/dist/run/run.schema.d.ts +99 -99
  35. package/dist/tool/tool.entity.d.ts +24 -24
  36. package/dist/tool/tool.enum.d.ts +4 -4
  37. package/dist/tool/tool.event.d.ts +24 -24
  38. package/dist/tool/tool.event.d.ts.map +1 -1
  39. package/dist/tool/tool.event.js +25 -9
  40. package/dist/tool/tool.event.js.map +1 -1
  41. package/dist/tool/tool.handler.d.ts.map +1 -1
  42. package/dist/tool/tool.operation.d.ts +108 -102
  43. package/dist/tool/tool.operation.d.ts.map +1 -1
  44. package/dist/tool/tool.operation.js +14 -8
  45. package/dist/tool/tool.operation.js.map +1 -1
  46. package/dist/tool/tool.presentation.d.ts.map +1 -1
  47. package/dist/tool/tool.presentation.js +13 -4
  48. package/dist/tool/tool.presentation.js.map +1 -1
  49. package/dist/tool/tool.schema.d.ts +52 -52
  50. package/dist/tool/tool.schema.d.ts.map +1 -1
  51. package/package.json +8 -8
  52. package/src/agent/agent.event.ts +34 -12
  53. package/src/agent/agent.operation.ts +12 -9
  54. package/src/agent/agent.presentation.ts +16 -3
  55. package/src/agent.feature.ts +58 -56
  56. package/src/run/run.event.ts +58 -21
  57. package/src/run/run.operation.ts +16 -10
  58. package/src/run/run.presentation.ts +11 -2
  59. package/src/tool/tool.event.ts +27 -10
  60. package/src/tool/tool.operation.ts +14 -8
  61. package/src/tool/tool.presentation.ts +11 -2
  62. package/tsconfig.tsbuildinfo +1 -1
@@ -1,112 +1,115 @@
1
- import * as _lssm_lib_schema732 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema773 from "@lssm/lib.schema";
2
2
  import * as _lssm_lib_contracts27 from "@lssm/lib.contracts";
3
3
 
4
4
  //#region src/tool/tool.operation.d.ts
5
5
  /**
6
6
  * CreateToolCommand - Creates a new tool definition.
7
7
  */
8
- declare const CreateToolCommand: _lssm_lib_contracts27.OperationSpec<_lssm_lib_schema732.SchemaModel<{
8
+ declare const CreateToolCommand: _lssm_lib_contracts27.OperationSpec<_lssm_lib_schema773.SchemaModel<{
9
9
  organizationId: {
10
- type: _lssm_lib_schema732.FieldType<string, string>;
10
+ type: _lssm_lib_schema773.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  name: {
14
- type: _lssm_lib_schema732.FieldType<string, string>;
14
+ type: _lssm_lib_schema773.FieldType<string, string>;
15
15
  isOptional: false;
16
16
  };
17
17
  slug: {
18
- type: _lssm_lib_schema732.FieldType<string, string>;
18
+ type: _lssm_lib_schema773.FieldType<string, string>;
19
19
  isOptional: false;
20
20
  };
21
21
  description: {
22
- type: _lssm_lib_schema732.FieldType<string, string>;
22
+ type: _lssm_lib_schema773.FieldType<string, string>;
23
23
  isOptional: false;
24
24
  };
25
25
  category: {
26
- type: _lssm_lib_schema732.EnumType<[string, string, string, string, string, string]>;
26
+ type: _lssm_lib_schema773.EnumType<[string, string, string, string, string, string]>;
27
27
  isOptional: true;
28
28
  };
29
29
  parametersSchema: {
30
- type: _lssm_lib_schema732.FieldType<Record<string, unknown>, Record<string, unknown>>;
30
+ type: _lssm_lib_schema773.FieldType<Record<string, unknown>, Record<string, unknown>>;
31
31
  isOptional: false;
32
32
  };
33
33
  outputSchema: {
34
- type: _lssm_lib_schema732.FieldType<Record<string, unknown>, Record<string, unknown>>;
34
+ type: _lssm_lib_schema773.FieldType<Record<string, unknown>, Record<string, unknown>>;
35
35
  isOptional: true;
36
36
  };
37
37
  implementationType: {
38
- type: _lssm_lib_schema732.EnumType<[string, string, string]>;
38
+ type: _lssm_lib_schema773.EnumType<[string, string, string]>;
39
39
  isOptional: false;
40
40
  };
41
41
  implementationConfig: {
42
- type: _lssm_lib_schema732.FieldType<Record<string, unknown>, Record<string, unknown>>;
42
+ type: _lssm_lib_schema773.FieldType<Record<string, unknown>, Record<string, unknown>>;
43
43
  isOptional: false;
44
44
  };
45
45
  maxInvocationsPerMinute: {
46
- type: _lssm_lib_schema732.FieldType<number, number>;
46
+ type: _lssm_lib_schema773.FieldType<number, number>;
47
47
  isOptional: true;
48
48
  };
49
49
  timeoutMs: {
50
- type: _lssm_lib_schema732.FieldType<number, number>;
50
+ type: _lssm_lib_schema773.FieldType<number, number>;
51
51
  isOptional: true;
52
52
  };
53
53
  tags: {
54
- type: _lssm_lib_schema732.FieldType<string, string>;
54
+ type: _lssm_lib_schema773.FieldType<string, string>;
55
55
  isArray: true;
56
56
  isOptional: true;
57
57
  };
58
- }>, _lssm_lib_schema732.SchemaModel<{
58
+ }>, _lssm_lib_schema773.SchemaModel<{
59
59
  id: {
60
- type: _lssm_lib_schema732.FieldType<string, string>;
60
+ type: _lssm_lib_schema773.FieldType<string, string>;
61
61
  isOptional: false;
62
62
  };
63
63
  name: {
64
- type: _lssm_lib_schema732.FieldType<string, string>;
64
+ type: _lssm_lib_schema773.FieldType<string, string>;
65
65
  isOptional: false;
66
66
  };
67
67
  slug: {
68
- type: _lssm_lib_schema732.FieldType<string, string>;
68
+ type: _lssm_lib_schema773.FieldType<string, string>;
69
69
  isOptional: false;
70
70
  };
71
71
  status: {
72
- type: _lssm_lib_schema732.EnumType<[string, string, string, string]>;
72
+ type: _lssm_lib_schema773.EnumType<[string, string, string, string]>;
73
73
  isOptional: false;
74
74
  };
75
75
  }>, {
76
- name: string;
76
+ key: string;
77
77
  version: number;
78
+ stability: string;
79
+ owners: "@agent-console-team"[];
80
+ tags: string[];
78
81
  when: string;
79
- payload: _lssm_lib_schema732.SchemaModel<{
82
+ payload: _lssm_lib_schema773.SchemaModel<{
80
83
  id: {
81
- type: _lssm_lib_schema732.FieldType<string, string>;
84
+ type: _lssm_lib_schema773.FieldType<string, string>;
82
85
  isOptional: false;
83
86
  };
84
87
  name: {
85
- type: _lssm_lib_schema732.FieldType<string, string>;
88
+ type: _lssm_lib_schema773.FieldType<string, string>;
86
89
  isOptional: false;
87
90
  };
88
91
  slug: {
89
- type: _lssm_lib_schema732.FieldType<string, string>;
92
+ type: _lssm_lib_schema773.FieldType<string, string>;
90
93
  isOptional: false;
91
94
  };
92
95
  description: {
93
- type: _lssm_lib_schema732.FieldType<string, string>;
96
+ type: _lssm_lib_schema773.FieldType<string, string>;
94
97
  isOptional: false;
95
98
  };
96
99
  category: {
97
- type: _lssm_lib_schema732.EnumType<[string, string, string, string, string, string]>;
100
+ type: _lssm_lib_schema773.EnumType<[string, string, string, string, string, string]>;
98
101
  isOptional: false;
99
102
  };
100
103
  status: {
101
- type: _lssm_lib_schema732.EnumType<[string, string, string, string]>;
104
+ type: _lssm_lib_schema773.EnumType<[string, string, string, string]>;
102
105
  isOptional: false;
103
106
  };
104
107
  version: {
105
- type: _lssm_lib_schema732.FieldType<string, string>;
108
+ type: _lssm_lib_schema773.FieldType<string, string>;
106
109
  isOptional: false;
107
110
  };
108
111
  createdAt: {
109
- type: _lssm_lib_schema732.FieldType<Date, string>;
112
+ type: _lssm_lib_schema773.FieldType<Date, string>;
110
113
  isOptional: false;
111
114
  };
112
115
  }>;
@@ -114,100 +117,103 @@ declare const CreateToolCommand: _lssm_lib_contracts27.OperationSpec<_lssm_lib_s
114
117
  /**
115
118
  * UpdateToolCommand - Updates an existing tool.
116
119
  */
117
- declare const UpdateToolCommand: _lssm_lib_contracts27.OperationSpec<_lssm_lib_schema732.SchemaModel<{
120
+ declare const UpdateToolCommand: _lssm_lib_contracts27.OperationSpec<_lssm_lib_schema773.SchemaModel<{
118
121
  toolId: {
119
- type: _lssm_lib_schema732.FieldType<string, string>;
122
+ type: _lssm_lib_schema773.FieldType<string, string>;
120
123
  isOptional: false;
121
124
  };
122
125
  name: {
123
- type: _lssm_lib_schema732.FieldType<string, string>;
126
+ type: _lssm_lib_schema773.FieldType<string, string>;
124
127
  isOptional: true;
125
128
  };
126
129
  description: {
127
- type: _lssm_lib_schema732.FieldType<string, string>;
130
+ type: _lssm_lib_schema773.FieldType<string, string>;
128
131
  isOptional: true;
129
132
  };
130
133
  status: {
131
- type: _lssm_lib_schema732.EnumType<[string, string, string, string]>;
134
+ type: _lssm_lib_schema773.EnumType<[string, string, string, string]>;
132
135
  isOptional: true;
133
136
  };
134
137
  parametersSchema: {
135
- type: _lssm_lib_schema732.FieldType<Record<string, unknown>, Record<string, unknown>>;
138
+ type: _lssm_lib_schema773.FieldType<Record<string, unknown>, Record<string, unknown>>;
136
139
  isOptional: true;
137
140
  };
138
141
  outputSchema: {
139
- type: _lssm_lib_schema732.FieldType<Record<string, unknown>, Record<string, unknown>>;
142
+ type: _lssm_lib_schema773.FieldType<Record<string, unknown>, Record<string, unknown>>;
140
143
  isOptional: true;
141
144
  };
142
145
  implementationConfig: {
143
- type: _lssm_lib_schema732.FieldType<Record<string, unknown>, Record<string, unknown>>;
146
+ type: _lssm_lib_schema773.FieldType<Record<string, unknown>, Record<string, unknown>>;
144
147
  isOptional: true;
145
148
  };
146
149
  maxInvocationsPerMinute: {
147
- type: _lssm_lib_schema732.FieldType<number, number>;
150
+ type: _lssm_lib_schema773.FieldType<number, number>;
148
151
  isOptional: true;
149
152
  };
150
153
  timeoutMs: {
151
- type: _lssm_lib_schema732.FieldType<number, number>;
154
+ type: _lssm_lib_schema773.FieldType<number, number>;
152
155
  isOptional: true;
153
156
  };
154
157
  tags: {
155
- type: _lssm_lib_schema732.FieldType<string, string>;
158
+ type: _lssm_lib_schema773.FieldType<string, string>;
156
159
  isArray: true;
157
160
  isOptional: true;
158
161
  };
159
- }>, _lssm_lib_schema732.SchemaModel<{
162
+ }>, _lssm_lib_schema773.SchemaModel<{
160
163
  id: {
161
- type: _lssm_lib_schema732.FieldType<string, string>;
164
+ type: _lssm_lib_schema773.FieldType<string, string>;
162
165
  isOptional: false;
163
166
  };
164
167
  name: {
165
- type: _lssm_lib_schema732.FieldType<string, string>;
168
+ type: _lssm_lib_schema773.FieldType<string, string>;
166
169
  isOptional: false;
167
170
  };
168
171
  status: {
169
- type: _lssm_lib_schema732.EnumType<[string, string, string, string]>;
172
+ type: _lssm_lib_schema773.EnumType<[string, string, string, string]>;
170
173
  isOptional: false;
171
174
  };
172
175
  updatedAt: {
173
- type: _lssm_lib_schema732.FieldType<Date, string>;
176
+ type: _lssm_lib_schema773.FieldType<Date, string>;
174
177
  isOptional: false;
175
178
  };
176
179
  }>, {
177
- name: string;
180
+ key: string;
178
181
  version: number;
182
+ stability: string;
183
+ owners: "@agent-console-team"[];
184
+ tags: string[];
179
185
  when: string;
180
- payload: _lssm_lib_schema732.SchemaModel<{
186
+ payload: _lssm_lib_schema773.SchemaModel<{
181
187
  id: {
182
- type: _lssm_lib_schema732.FieldType<string, string>;
188
+ type: _lssm_lib_schema773.FieldType<string, string>;
183
189
  isOptional: false;
184
190
  };
185
191
  name: {
186
- type: _lssm_lib_schema732.FieldType<string, string>;
192
+ type: _lssm_lib_schema773.FieldType<string, string>;
187
193
  isOptional: false;
188
194
  };
189
195
  slug: {
190
- type: _lssm_lib_schema732.FieldType<string, string>;
196
+ type: _lssm_lib_schema773.FieldType<string, string>;
191
197
  isOptional: false;
192
198
  };
193
199
  description: {
194
- type: _lssm_lib_schema732.FieldType<string, string>;
200
+ type: _lssm_lib_schema773.FieldType<string, string>;
195
201
  isOptional: false;
196
202
  };
197
203
  category: {
198
- type: _lssm_lib_schema732.EnumType<[string, string, string, string, string, string]>;
204
+ type: _lssm_lib_schema773.EnumType<[string, string, string, string, string, string]>;
199
205
  isOptional: false;
200
206
  };
201
207
  status: {
202
- type: _lssm_lib_schema732.EnumType<[string, string, string, string]>;
208
+ type: _lssm_lib_schema773.EnumType<[string, string, string, string]>;
203
209
  isOptional: false;
204
210
  };
205
211
  version: {
206
- type: _lssm_lib_schema732.FieldType<string, string>;
212
+ type: _lssm_lib_schema773.FieldType<string, string>;
207
213
  isOptional: false;
208
214
  };
209
215
  createdAt: {
210
- type: _lssm_lib_schema732.FieldType<Date, string>;
216
+ type: _lssm_lib_schema773.FieldType<Date, string>;
211
217
  isOptional: false;
212
218
  };
213
219
  }>;
@@ -215,146 +221,146 @@ declare const UpdateToolCommand: _lssm_lib_contracts27.OperationSpec<_lssm_lib_s
215
221
  /**
216
222
  * GetToolQuery - Retrieves a tool by ID.
217
223
  */
218
- declare const GetToolQuery: _lssm_lib_contracts27.OperationSpec<_lssm_lib_schema732.SchemaModel<{
224
+ declare const GetToolQuery: _lssm_lib_contracts27.OperationSpec<_lssm_lib_schema773.SchemaModel<{
219
225
  toolId: {
220
- type: _lssm_lib_schema732.FieldType<string, string>;
226
+ type: _lssm_lib_schema773.FieldType<string, string>;
221
227
  isOptional: false;
222
228
  };
223
- }>, _lssm_lib_schema732.SchemaModel<{
229
+ }>, _lssm_lib_schema773.SchemaModel<{
224
230
  id: {
225
- type: _lssm_lib_schema732.FieldType<string, string>;
231
+ type: _lssm_lib_schema773.FieldType<string, string>;
226
232
  isOptional: false;
227
233
  };
228
234
  organizationId: {
229
- type: _lssm_lib_schema732.FieldType<string, string>;
235
+ type: _lssm_lib_schema773.FieldType<string, string>;
230
236
  isOptional: false;
231
237
  };
232
238
  name: {
233
- type: _lssm_lib_schema732.FieldType<string, string>;
239
+ type: _lssm_lib_schema773.FieldType<string, string>;
234
240
  isOptional: false;
235
241
  };
236
242
  slug: {
237
- type: _lssm_lib_schema732.FieldType<string, string>;
243
+ type: _lssm_lib_schema773.FieldType<string, string>;
238
244
  isOptional: false;
239
245
  };
240
246
  description: {
241
- type: _lssm_lib_schema732.FieldType<string, string>;
247
+ type: _lssm_lib_schema773.FieldType<string, string>;
242
248
  isOptional: false;
243
249
  };
244
250
  category: {
245
- type: _lssm_lib_schema732.EnumType<[string, string, string, string, string, string]>;
251
+ type: _lssm_lib_schema773.EnumType<[string, string, string, string, string, string]>;
246
252
  isOptional: false;
247
253
  };
248
254
  status: {
249
- type: _lssm_lib_schema732.EnumType<[string, string, string, string]>;
255
+ type: _lssm_lib_schema773.EnumType<[string, string, string, string]>;
250
256
  isOptional: false;
251
257
  };
252
258
  parametersSchema: {
253
- type: _lssm_lib_schema732.FieldType<Record<string, unknown>, Record<string, unknown>>;
259
+ type: _lssm_lib_schema773.FieldType<Record<string, unknown>, Record<string, unknown>>;
254
260
  isOptional: false;
255
261
  };
256
262
  outputSchema: {
257
- type: _lssm_lib_schema732.FieldType<Record<string, unknown>, Record<string, unknown>>;
263
+ type: _lssm_lib_schema773.FieldType<Record<string, unknown>, Record<string, unknown>>;
258
264
  isOptional: true;
259
265
  };
260
266
  implementationType: {
261
- type: _lssm_lib_schema732.EnumType<[string, string, string]>;
267
+ type: _lssm_lib_schema773.EnumType<[string, string, string]>;
262
268
  isOptional: false;
263
269
  };
264
270
  implementationConfig: {
265
- type: _lssm_lib_schema732.FieldType<Record<string, unknown>, Record<string, unknown>>;
271
+ type: _lssm_lib_schema773.FieldType<Record<string, unknown>, Record<string, unknown>>;
266
272
  isOptional: false;
267
273
  };
268
274
  maxInvocationsPerMinute: {
269
- type: _lssm_lib_schema732.FieldType<number, number>;
275
+ type: _lssm_lib_schema773.FieldType<number, number>;
270
276
  isOptional: true;
271
277
  };
272
278
  timeoutMs: {
273
- type: _lssm_lib_schema732.FieldType<number, number>;
279
+ type: _lssm_lib_schema773.FieldType<number, number>;
274
280
  isOptional: false;
275
281
  defaultValue: number;
276
282
  };
277
283
  version: {
278
- type: _lssm_lib_schema732.FieldType<string, string>;
284
+ type: _lssm_lib_schema773.FieldType<string, string>;
279
285
  isOptional: false;
280
286
  };
281
287
  tags: {
282
- type: _lssm_lib_schema732.FieldType<string, string>;
288
+ type: _lssm_lib_schema773.FieldType<string, string>;
283
289
  isArray: true;
284
290
  isOptional: true;
285
291
  };
286
292
  createdAt: {
287
- type: _lssm_lib_schema732.FieldType<Date, string>;
293
+ type: _lssm_lib_schema773.FieldType<Date, string>;
288
294
  isOptional: false;
289
295
  };
290
296
  updatedAt: {
291
- type: _lssm_lib_schema732.FieldType<Date, string>;
297
+ type: _lssm_lib_schema773.FieldType<Date, string>;
292
298
  isOptional: false;
293
299
  };
294
300
  }>, undefined>;
295
301
  /**
296
302
  * ListToolsQuery - Lists tools for an organization.
297
303
  */
298
- declare const ListToolsQuery: _lssm_lib_contracts27.OperationSpec<_lssm_lib_schema732.SchemaModel<{
304
+ declare const ListToolsQuery: _lssm_lib_contracts27.OperationSpec<_lssm_lib_schema773.SchemaModel<{
299
305
  organizationId: {
300
- type: _lssm_lib_schema732.FieldType<string, string>;
306
+ type: _lssm_lib_schema773.FieldType<string, string>;
301
307
  isOptional: false;
302
308
  };
303
309
  category: {
304
- type: _lssm_lib_schema732.EnumType<[string, string, string, string, string, string]>;
310
+ type: _lssm_lib_schema773.EnumType<[string, string, string, string, string, string]>;
305
311
  isOptional: true;
306
312
  };
307
313
  status: {
308
- type: _lssm_lib_schema732.EnumType<[string, string, string, string]>;
314
+ type: _lssm_lib_schema773.EnumType<[string, string, string, string]>;
309
315
  isOptional: true;
310
316
  };
311
317
  search: {
312
- type: _lssm_lib_schema732.FieldType<string, string>;
318
+ type: _lssm_lib_schema773.FieldType<string, string>;
313
319
  isOptional: true;
314
320
  };
315
321
  limit: {
316
- type: _lssm_lib_schema732.FieldType<number, number>;
322
+ type: _lssm_lib_schema773.FieldType<number, number>;
317
323
  isOptional: true;
318
324
  defaultValue: number;
319
325
  };
320
326
  offset: {
321
- type: _lssm_lib_schema732.FieldType<number, number>;
327
+ type: _lssm_lib_schema773.FieldType<number, number>;
322
328
  isOptional: true;
323
329
  defaultValue: number;
324
330
  };
325
- }>, _lssm_lib_schema732.SchemaModel<{
331
+ }>, _lssm_lib_schema773.SchemaModel<{
326
332
  items: {
327
- type: _lssm_lib_schema732.SchemaModel<{
333
+ type: _lssm_lib_schema773.SchemaModel<{
328
334
  id: {
329
- type: _lssm_lib_schema732.FieldType<string, string>;
335
+ type: _lssm_lib_schema773.FieldType<string, string>;
330
336
  isOptional: false;
331
337
  };
332
338
  name: {
333
- type: _lssm_lib_schema732.FieldType<string, string>;
339
+ type: _lssm_lib_schema773.FieldType<string, string>;
334
340
  isOptional: false;
335
341
  };
336
342
  slug: {
337
- type: _lssm_lib_schema732.FieldType<string, string>;
343
+ type: _lssm_lib_schema773.FieldType<string, string>;
338
344
  isOptional: false;
339
345
  };
340
346
  description: {
341
- type: _lssm_lib_schema732.FieldType<string, string>;
347
+ type: _lssm_lib_schema773.FieldType<string, string>;
342
348
  isOptional: false;
343
349
  };
344
350
  category: {
345
- type: _lssm_lib_schema732.EnumType<[string, string, string, string, string, string]>;
351
+ type: _lssm_lib_schema773.EnumType<[string, string, string, string, string, string]>;
346
352
  isOptional: false;
347
353
  };
348
354
  status: {
349
- type: _lssm_lib_schema732.EnumType<[string, string, string, string]>;
355
+ type: _lssm_lib_schema773.EnumType<[string, string, string, string]>;
350
356
  isOptional: false;
351
357
  };
352
358
  version: {
353
- type: _lssm_lib_schema732.FieldType<string, string>;
359
+ type: _lssm_lib_schema773.FieldType<string, string>;
354
360
  isOptional: false;
355
361
  };
356
362
  createdAt: {
357
- type: _lssm_lib_schema732.FieldType<Date, string>;
363
+ type: _lssm_lib_schema773.FieldType<Date, string>;
358
364
  isOptional: false;
359
365
  };
360
366
  }>;
@@ -362,41 +368,41 @@ declare const ListToolsQuery: _lssm_lib_contracts27.OperationSpec<_lssm_lib_sche
362
368
  isOptional: false;
363
369
  };
364
370
  total: {
365
- type: _lssm_lib_schema732.FieldType<number, number>;
371
+ type: _lssm_lib_schema773.FieldType<number, number>;
366
372
  isOptional: false;
367
373
  };
368
374
  hasMore: {
369
- type: _lssm_lib_schema732.FieldType<boolean, boolean>;
375
+ type: _lssm_lib_schema773.FieldType<boolean, boolean>;
370
376
  isOptional: false;
371
377
  };
372
378
  }>, undefined>;
373
379
  /**
374
380
  * TestToolCommand - Tests a tool with sample input.
375
381
  */
376
- declare const TestToolCommand: _lssm_lib_contracts27.OperationSpec<_lssm_lib_schema732.SchemaModel<{
382
+ declare const TestToolCommand: _lssm_lib_contracts27.OperationSpec<_lssm_lib_schema773.SchemaModel<{
377
383
  toolId: {
378
- type: _lssm_lib_schema732.FieldType<string, string>;
384
+ type: _lssm_lib_schema773.FieldType<string, string>;
379
385
  isOptional: false;
380
386
  };
381
387
  testInput: {
382
- type: _lssm_lib_schema732.FieldType<Record<string, unknown>, Record<string, unknown>>;
388
+ type: _lssm_lib_schema773.FieldType<Record<string, unknown>, Record<string, unknown>>;
383
389
  isOptional: false;
384
390
  };
385
- }>, _lssm_lib_schema732.SchemaModel<{
391
+ }>, _lssm_lib_schema773.SchemaModel<{
386
392
  success: {
387
- type: _lssm_lib_schema732.FieldType<boolean, boolean>;
393
+ type: _lssm_lib_schema773.FieldType<boolean, boolean>;
388
394
  isOptional: false;
389
395
  };
390
396
  output: {
391
- type: _lssm_lib_schema732.FieldType<Record<string, unknown>, Record<string, unknown>>;
397
+ type: _lssm_lib_schema773.FieldType<Record<string, unknown>, Record<string, unknown>>;
392
398
  isOptional: true;
393
399
  };
394
400
  error: {
395
- type: _lssm_lib_schema732.FieldType<string, string>;
401
+ type: _lssm_lib_schema773.FieldType<string, string>;
396
402
  isOptional: true;
397
403
  };
398
404
  durationMs: {
399
- type: _lssm_lib_schema732.FieldType<number, number>;
405
+ type: _lssm_lib_schema773.FieldType<number, number>;
400
406
  isOptional: false;
401
407
  };
402
408
  }>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"tool.operation.d.ts","names":[],"sources":["../../src/tool/tool.operation.ts"],"sourcesContent":[],"mappings":";;;;;;;cAea,yCAAiB,kCAAA;EAAjB,cAAA,EAAA;IA2CX,IAAA,EAAA,mBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;EA3C4B,gBAAA,EAAA;;;;;;;;;;;;;;;;EAAA,uBAAA,EAAA;IAgDjB,IAAA,+BA2CX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;;;;UA3F4B,mBAAA,CAAA;;;;IAgDA,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;MAAA,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;MAgDjB,UA6BX,EAAA,KAAA;IAAA,CAAA;;MA7BuB,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAA,CAAA,CAAA;AAkCzB,CAAA,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/lib.schema";
4
4
  import { defineCommand, defineQuery } from "@lssm/lib.contracts/operations";
5
5
 
6
6
  //#region src/tool/tool.operation.ts
7
- const OWNERS = ["agent-console-team"];
7
+ const OWNERS = ["@agent-console-team"];
8
8
  /**
9
9
  * CreateToolCommand - Creates a new tool definition.
10
10
  */
11
11
  const CreateToolCommand = defineCommand({
12
12
  meta: {
13
- name: "agent.tool.create",
13
+ key: "agent.tool.create",
14
14
  version: 1,
15
15
  stability: "stable",
16
16
  owners: [...OWNERS],
@@ -52,8 +52,11 @@ const CreateToolCommand = defineCommand({
52
52
  policy: { auth: "user" },
53
53
  sideEffects: {
54
54
  emits: [{
55
- name: "tool.created",
55
+ key: "tool.created",
56
56
  version: 1,
57
+ stability: "stable",
58
+ owners: [...OWNERS],
59
+ tags: ["tool", "created"],
57
60
  when: "Tool is successfully created",
58
61
  payload: ToolSummaryModel
59
62
  }],
@@ -65,7 +68,7 @@ const CreateToolCommand = defineCommand({
65
68
  */
66
69
  const UpdateToolCommand = defineCommand({
67
70
  meta: {
68
- name: "agent.tool.update",
71
+ key: "agent.tool.update",
69
72
  version: 1,
70
73
  stability: "stable",
71
74
  owners: [...OWNERS],
@@ -107,8 +110,11 @@ const UpdateToolCommand = defineCommand({
107
110
  policy: { auth: "user" },
108
111
  sideEffects: {
109
112
  emits: [{
110
- name: "tool.updated",
113
+ key: "tool.updated",
111
114
  version: 1,
115
+ stability: "stable",
116
+ owners: [...OWNERS],
117
+ tags: ["tool", "updated"],
112
118
  when: "Tool is updated",
113
119
  payload: ToolSummaryModel
114
120
  }],
@@ -120,7 +126,7 @@ const UpdateToolCommand = defineCommand({
120
126
  */
121
127
  const GetToolQuery = defineQuery({
122
128
  meta: {
123
- name: "agent.tool.get",
129
+ key: "agent.tool.get",
124
130
  version: 1,
125
131
  stability: "stable",
126
132
  owners: [...OWNERS],
@@ -152,7 +158,7 @@ const GetToolQuery = defineQuery({
152
158
  */
153
159
  const ListToolsQuery = defineQuery({
154
160
  meta: {
155
- name: "agent.tool.list",
161
+ key: "agent.tool.list",
156
162
  version: 1,
157
163
  stability: "stable",
158
164
  owners: [...OWNERS],
@@ -219,7 +225,7 @@ const ListToolsQuery = defineQuery({
219
225
  */
220
226
  const TestToolCommand = defineCommand({
221
227
  meta: {
222
- name: "agent.tool.test",
228
+ key: "agent.tool.test",
223
229
  version: 1,
224
230
  stability: "stable",
225
231
  owners: [...OWNERS],
@@ -1 +1 @@
1
- {"version":3,"file":"tool.operation.js","names":[],"sources":["../../src/tool/tool.operation.ts"],"sourcesContent":["import { defineCommand, defineQuery } from '@lssm/lib.contracts/operations';\nimport { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport { ToolCategoryEnum, ToolStatusEnum } from './tool.enum';\nimport {\n CreateToolInputModel,\n ToolModel,\n ToolSummaryModel,\n UpdateToolInputModel,\n} from './tool.schema';\n\nconst OWNERS = ['agent-console-team'] as const;\n\n/**\n * CreateToolCommand - Creates a new tool definition.\n */\nexport const CreateToolCommand = defineCommand({\n meta: {\n name: 'agent.tool.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'create'],\n description: 'Creates a new AI tool definition.',\n goal: 'Allow users to define new tools that agents can use.',\n context: 'Called from the tool builder UI when creating a new tool.',\n },\n io: {\n input: CreateToolInputModel,\n output: defineSchemaModel({\n name: 'CreateToolOutput',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: ToolStatusEnum, isOptional: false },\n },\n }),\n errors: {\n SLUG_EXISTS: {\n description: 'A tool with this slug already exists in the organization',\n http: 409,\n gqlCode: 'SLUG_EXISTS',\n when: 'Slug is already taken',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'tool.created',\n version: 1,\n when: 'Tool is successfully created',\n payload: ToolSummaryModel,\n },\n ],\n audit: ['tool.created'],\n },\n});\n\n/**\n * UpdateToolCommand - Updates an existing tool.\n */\nexport const UpdateToolCommand = defineCommand({\n meta: {\n name: 'agent.tool.update',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'update'],\n description: 'Updates an existing AI tool definition.',\n goal: 'Allow users to modify tool settings and configuration.',\n context: 'Called from the tool settings UI.',\n },\n io: {\n input: UpdateToolInputModel,\n output: defineSchemaModel({\n name: 'UpdateToolOutput',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n status: { type: ToolStatusEnum, isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n }),\n errors: {\n TOOL_NOT_FOUND: {\n description: 'The specified tool does not exist',\n http: 404,\n gqlCode: 'TOOL_NOT_FOUND',\n when: 'Tool ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'tool.updated',\n version: 1,\n when: 'Tool is updated',\n payload: ToolSummaryModel,\n },\n ],\n audit: ['tool.updated'],\n },\n});\n\n/**\n * GetToolQuery - Retrieves a tool by ID.\n */\nexport const GetToolQuery = defineQuery({\n meta: {\n name: 'agent.tool.get',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'get'],\n description: 'Retrieves a tool by its ID.',\n goal: 'View detailed tool configuration.',\n context: 'Called when viewing tool details or editing.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetToolInput',\n fields: {\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n output: ToolModel,\n errors: {\n TOOL_NOT_FOUND: {\n description: 'The specified tool does not exist',\n http: 404,\n gqlCode: 'TOOL_NOT_FOUND',\n when: 'Tool ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n});\n\n/**\n * ListToolsQuery - Lists tools for an organization.\n */\nexport const ListToolsQuery = defineQuery({\n meta: {\n name: 'agent.tool.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'list'],\n description: 'Lists tools for an organization with optional filtering.',\n goal: 'Browse and search available tools.',\n context: 'Tool list/dashboard view.',\n },\n io: {\n input: defineSchemaModel({\n name: 'ListToolsInput',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n category: { type: ToolCategoryEnum, isOptional: true },\n status: { type: ToolStatusEnum, isOptional: true },\n search: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n }),\n output: defineSchemaModel({\n name: 'ListToolsOutput',\n fields: {\n items: { type: ToolSummaryModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n hasMore: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n});\n\n/**\n * TestToolCommand - Tests a tool with sample input.\n */\nexport const TestToolCommand = defineCommand({\n meta: {\n name: 'agent.tool.test',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'test'],\n description: 'Tests a tool with sample input to verify it works correctly.',\n goal: 'Validate tool configuration before deployment.',\n context: 'Tool builder UI - test panel.',\n },\n io: {\n input: defineSchemaModel({\n name: 'TestToolInput',\n fields: {\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n testInput: { type: ScalarTypeEnum.JSONObject(), isOptional: false },\n },\n }),\n output: defineSchemaModel({\n name: 'TestToolOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n output: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n error: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n durationMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n },\n }),\n errors: {\n TOOL_NOT_FOUND: {\n description: 'The specified tool does not exist',\n http: 404,\n gqlCode: 'TOOL_NOT_FOUND',\n when: 'Tool ID is invalid',\n },\n TOOL_EXECUTION_ERROR: {\n description: 'Tool execution failed',\n http: 500,\n gqlCode: 'TOOL_EXECUTION_ERROR',\n when: 'Tool returns an error',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: { audit: ['tool.tested'] },\n});\n"],"mappings":";;;;;;AAUA,MAAM,SAAS,CAAC,qBAAqB;;;;AAKrC,MAAa,oBAAoB,cAAc;CAC7C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,QAAQ,SAAS;EACxB,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ,kBAAkB;GACxB,MAAM;GACN,QAAQ;IACN,IAAI;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACjE,MAAM;KAAE,MAAM,eAAe,gBAAgB;KAAE,YAAY;KAAO;IAClE,MAAM;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACnE,QAAQ;KAAE,MAAM;KAAgB,YAAY;KAAO;IACpD;GACF,CAAC;EACF,QAAQ,EACN,aAAa;GACX,aAAa;GACb,MAAM;GACN,SAAS;GACT,MAAM;GACP,EACF;EACF;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,eAAe;EACxB;CACF,CAAC;;;;AAKF,MAAa,oBAAoB,cAAc;CAC7C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,QAAQ,SAAS;EACxB,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ,kBA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IACN,SAAS;IACT,MAAM;IACP;GACD,sBAAsB;IACpB,aAAa;IACb,MAAM;IACN,SAAS;IACT,MAAM;IACP;GACF;EACF;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa,EAAE,OAAO,CAAC,cAAc,EAAE;CACxC,CAAC"}
1
+ {"version":3,"file":"tool.operation.js","names":[],"sources":["../../src/tool/tool.operation.ts"],"sourcesContent":["import { defineCommand, defineQuery } from '@lssm/lib.contracts/operations';\nimport { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport { ToolCategoryEnum, ToolStatusEnum } from './tool.enum';\nimport {\n CreateToolInputModel,\n ToolModel,\n ToolSummaryModel,\n UpdateToolInputModel,\n} from './tool.schema';\n\nconst OWNERS = ['@agent-console-team'] as const;\n\n/**\n * CreateToolCommand - Creates a new tool definition.\n */\nexport const CreateToolCommand = defineCommand({\n meta: {\n key: 'agent.tool.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'create'],\n description: 'Creates a new AI tool definition.',\n goal: 'Allow users to define new tools that agents can use.',\n context: 'Called from the tool builder UI when creating a new tool.',\n },\n io: {\n input: CreateToolInputModel,\n output: defineSchemaModel({\n name: 'CreateToolOutput',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: ToolStatusEnum, isOptional: false },\n },\n }),\n errors: {\n SLUG_EXISTS: {\n description: 'A tool with this slug already exists in the organization',\n http: 409,\n gqlCode: 'SLUG_EXISTS',\n when: 'Slug is already taken',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'tool.created',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'created'],\n when: 'Tool is successfully created',\n payload: ToolSummaryModel,\n },\n ],\n audit: ['tool.created'],\n },\n});\n\n/**\n * UpdateToolCommand - Updates an existing tool.\n */\nexport const UpdateToolCommand = defineCommand({\n meta: {\n key: 'agent.tool.update',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'update'],\n description: 'Updates an existing AI tool definition.',\n goal: 'Allow users to modify tool settings and configuration.',\n context: 'Called from the tool settings UI.',\n },\n io: {\n input: UpdateToolInputModel,\n output: defineSchemaModel({\n name: 'UpdateToolOutput',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n status: { type: ToolStatusEnum, isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n }),\n errors: {\n TOOL_NOT_FOUND: {\n description: 'The specified tool does not exist',\n http: 404,\n gqlCode: 'TOOL_NOT_FOUND',\n when: 'Tool ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'tool.updated',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'updated'],\n when: 'Tool is updated',\n payload: ToolSummaryModel,\n },\n ],\n audit: ['tool.updated'],\n },\n});\n\n/**\n * GetToolQuery - Retrieves a tool by ID.\n */\nexport const GetToolQuery = defineQuery({\n meta: {\n key: 'agent.tool.get',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'get'],\n description: 'Retrieves a tool by its ID.',\n goal: 'View detailed tool configuration.',\n context: 'Called when viewing tool details or editing.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetToolInput',\n fields: {\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n output: ToolModel,\n errors: {\n TOOL_NOT_FOUND: {\n description: 'The specified tool does not exist',\n http: 404,\n gqlCode: 'TOOL_NOT_FOUND',\n when: 'Tool ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n});\n\n/**\n * ListToolsQuery - Lists tools for an organization.\n */\nexport const ListToolsQuery = defineQuery({\n meta: {\n key: 'agent.tool.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'list'],\n description: 'Lists tools for an organization with optional filtering.',\n goal: 'Browse and search available tools.',\n context: 'Tool list/dashboard view.',\n },\n io: {\n input: defineSchemaModel({\n name: 'ListToolsInput',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n category: { type: ToolCategoryEnum, isOptional: true },\n status: { type: ToolStatusEnum, isOptional: true },\n search: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n }),\n output: defineSchemaModel({\n name: 'ListToolsOutput',\n fields: {\n items: { type: ToolSummaryModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n hasMore: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n});\n\n/**\n * TestToolCommand - Tests a tool with sample input.\n */\nexport const TestToolCommand = defineCommand({\n meta: {\n key: 'agent.tool.test',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['tool', 'test'],\n description: 'Tests a tool with sample input to verify it works correctly.',\n goal: 'Validate tool configuration before deployment.',\n context: 'Tool builder UI - test panel.',\n },\n io: {\n input: defineSchemaModel({\n name: 'TestToolInput',\n fields: {\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n testInput: { type: ScalarTypeEnum.JSONObject(), isOptional: false },\n },\n }),\n output: defineSchemaModel({\n name: 'TestToolOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n output: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n error: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n durationMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n },\n }),\n errors: {\n TOOL_NOT_FOUND: {\n description: 'The specified tool does not exist',\n http: 404,\n gqlCode: 'TOOL_NOT_FOUND',\n when: 'Tool ID is invalid',\n },\n TOOL_EXECUTION_ERROR: {\n description: 'Tool execution failed',\n http: 500,\n gqlCode: 'TOOL_EXECUTION_ERROR',\n when: 'Tool returns an error',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: { audit: ['tool.tested'] },\n});\n"],"mappings":";;;;;;AAUA,MAAM,SAAS,CAAC,sBAAsB;;;;AAKtC,MAAa,oBAAoB,cAAc;CAC7C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,QAAQ,SAAS;EACxB,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ,kBAAkB;GACxB,MAAM;GACN,QAAQ;IACN,IAAI;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACjE,MAAM;KAAE,MAAM,eAAe,gBAAgB;KAAE,YAAY;KAAO;IAClE,MAAM;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACnE,QAAQ;KAAE,MAAM;KAAgB,YAAY;KAAO;IACpD;GACF,CAAC;EACF,QAAQ,EACN,aAAa;GACX,aAAa;GACb,MAAM;GACN,SAAS;GACT,MAAM;GACP,EACF;EACF;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,KAAK;GACL,SAAS;GACT,WAAW;GACX,QAAQ,CAAC,GAAG,OAAO;GACnB,MAAM,CAAC,QAAQ,UAAU;GACzB,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,eAAe;EACxB;CACF,CAAC;;;;AAKF,MAAa,oBAAoB,cAAc;CAC7C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,QAAQ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,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAM;IACnE,YAAY;KAAE,MAAM,eAAe,cAAc;KAAE,YAAY;KAAO;IACvE;GACF,CAAC;EACF,QAAQ;GACN,gBAAgB;IACd,aAAa;IACb,MAAM;IACN,SAAS;IACT,MAAM;IACP;GACD,sBAAsB;IACpB,aAAa;IACb,MAAM;IACN,SAAS;IACT,MAAM;IACP;GACF;EACF;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa,EAAE,OAAO,CAAC,cAAc,EAAE;CACxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tool.presentation.d.ts","names":[],"sources":["../../src/tool/tool.presentation.ts"],"sourcesContent":[],"mappings":";;;;;;AAMA;AAuBa,cAvBA,oBAwCZ,EAxCkC,gBAwClC;;;;cAjBY,wBAAwB"}
1
+ {"version":3,"file":"tool.presentation.d.ts","names":[],"sources":["../../src/tool/tool.presentation.ts"],"sourcesContent":[],"mappings":";;;;;;AAOA;AA2Ba,cA3BA,oBAgDZ,EAhDkC,gBAgDlC;;;;cArBY,wBAAwB"}