@lssm/example.agent-console 0.0.0-canary-20251217054315 → 0.0.0-canary-20251217060804

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 (38) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +81 -0
  2. package/CHANGELOG.md +6 -36
  3. package/dist/agent/agent.contracts.d.ts +504 -0
  4. package/dist/agent/agent.entity.d.ts +54 -0
  5. package/dist/agent/agent.enum.d.ts +17 -0
  6. package/dist/agent/agent.event.d.ts +127 -0
  7. package/dist/agent/agent.handler.d.ts +99 -0
  8. package/dist/agent/agent.presentation.d.ts +18 -0
  9. package/dist/agent/agent.schema.d.ts +400 -0
  10. package/dist/agent/index.d.ts +8 -0
  11. package/dist/agent.feature.d.ts +11 -0
  12. package/dist/docs/agent-console.docblock.d.ts +1 -0
  13. package/dist/docs/index.d.ts +1 -0
  14. package/dist/example.d.ts +39 -0
  15. package/dist/handlers/index.d.ts +4 -0
  16. package/dist/index.d.ts +30 -0
  17. package/dist/presentations/index.d.ts +4 -0
  18. package/dist/run/index.d.ts +8 -0
  19. package/dist/run/run.contracts.d.ts +713 -0
  20. package/dist/run/run.entity.d.ts +81 -0
  21. package/dist/run/run.enum.d.ts +21 -0
  22. package/dist/run/run.event.d.ts +289 -0
  23. package/dist/run/run.handler.d.ts +202 -0
  24. package/dist/run/run.presentation.d.ts +14 -0
  25. package/dist/run/run.schema.d.ts +415 -0
  26. package/dist/shared/index.d.ts +4 -0
  27. package/dist/shared/mock-agents.d.ts +87 -0
  28. package/dist/shared/mock-runs.d.ts +119 -0
  29. package/dist/shared/mock-tools.d.ts +243 -0
  30. package/dist/tool/index.d.ts +8 -0
  31. package/dist/tool/tool.contracts.d.ts +404 -0
  32. package/dist/tool/tool.entity.d.ts +41 -0
  33. package/dist/tool/tool.enum.d.ts +17 -0
  34. package/dist/tool/tool.event.d.ts +102 -0
  35. package/dist/tool/tool.handler.d.ts +314 -0
  36. package/dist/tool/tool.presentation.d.ts +14 -0
  37. package/dist/tool/tool.schema.d.ts +217 -0
  38. package/package.json +43 -43
@@ -0,0 +1,243 @@
1
+ //#region src/shared/mock-tools.d.ts
2
+ /**
3
+ * Mock tool data for testing and demos.
4
+ */
5
+ declare const MOCK_TOOLS: ({
6
+ id: string;
7
+ organizationId: string;
8
+ name: string;
9
+ slug: string;
10
+ description: string;
11
+ category: "RETRIEVAL";
12
+ status: "ACTIVE";
13
+ parametersSchema: {
14
+ type: string;
15
+ properties: {
16
+ query: {
17
+ type: string;
18
+ description: string;
19
+ };
20
+ numResults: {
21
+ type: string;
22
+ default: number;
23
+ };
24
+ maxRows?: undefined;
25
+ to?: undefined;
26
+ subject?: undefined;
27
+ body?: undefined;
28
+ action?: undefined;
29
+ repo?: undefined;
30
+ params?: undefined;
31
+ expression?: undefined;
32
+ };
33
+ required: string[];
34
+ };
35
+ outputSchema: {
36
+ type: string;
37
+ items: {
38
+ type: string;
39
+ };
40
+ properties?: undefined;
41
+ };
42
+ implementationType: "http";
43
+ implementationConfig: {
44
+ url: string;
45
+ method: string;
46
+ handler?: undefined;
47
+ auth?: undefined;
48
+ };
49
+ maxInvocationsPerMinute: number;
50
+ timeoutMs: number;
51
+ version: string;
52
+ tags: string[];
53
+ createdAt: Date;
54
+ updatedAt: Date;
55
+ } | {
56
+ id: string;
57
+ organizationId: string;
58
+ name: string;
59
+ slug: string;
60
+ description: string;
61
+ category: "RETRIEVAL";
62
+ status: "ACTIVE";
63
+ parametersSchema: {
64
+ type: string;
65
+ properties: {
66
+ query: {
67
+ type: string;
68
+ description: string;
69
+ };
70
+ maxRows: {
71
+ type: string;
72
+ default: number;
73
+ };
74
+ numResults?: undefined;
75
+ to?: undefined;
76
+ subject?: undefined;
77
+ body?: undefined;
78
+ action?: undefined;
79
+ repo?: undefined;
80
+ params?: undefined;
81
+ expression?: undefined;
82
+ };
83
+ required: string[];
84
+ };
85
+ outputSchema: {
86
+ type: string;
87
+ items?: undefined;
88
+ properties?: undefined;
89
+ };
90
+ implementationType: "function";
91
+ implementationConfig: {
92
+ handler: string;
93
+ url?: undefined;
94
+ method?: undefined;
95
+ auth?: undefined;
96
+ };
97
+ maxInvocationsPerMinute: number;
98
+ timeoutMs: number;
99
+ version: string;
100
+ tags: string[];
101
+ createdAt: Date;
102
+ updatedAt: Date;
103
+ } | {
104
+ id: string;
105
+ organizationId: string;
106
+ name: string;
107
+ slug: string;
108
+ description: string;
109
+ category: "COMMUNICATION";
110
+ status: "ACTIVE";
111
+ parametersSchema: {
112
+ type: string;
113
+ properties: {
114
+ to: {
115
+ type: string;
116
+ };
117
+ subject: {
118
+ type: string;
119
+ };
120
+ body: {
121
+ type: string;
122
+ };
123
+ query?: undefined;
124
+ numResults?: undefined;
125
+ maxRows?: undefined;
126
+ action?: undefined;
127
+ repo?: undefined;
128
+ params?: undefined;
129
+ expression?: undefined;
130
+ };
131
+ required: string[];
132
+ };
133
+ implementationType: "http";
134
+ implementationConfig: {
135
+ url: string;
136
+ method: string;
137
+ handler?: undefined;
138
+ auth?: undefined;
139
+ };
140
+ maxInvocationsPerMinute: number;
141
+ timeoutMs: number;
142
+ version: string;
143
+ tags: string[];
144
+ createdAt: Date;
145
+ updatedAt: Date;
146
+ outputSchema?: undefined;
147
+ } | {
148
+ id: string;
149
+ organizationId: string;
150
+ name: string;
151
+ slug: string;
152
+ description: string;
153
+ category: "INTEGRATION";
154
+ status: "ACTIVE";
155
+ parametersSchema: {
156
+ type: string;
157
+ properties: {
158
+ action: {
159
+ type: string;
160
+ enum: string[];
161
+ };
162
+ repo: {
163
+ type: string;
164
+ };
165
+ params: {
166
+ type: string;
167
+ };
168
+ query?: undefined;
169
+ numResults?: undefined;
170
+ maxRows?: undefined;
171
+ to?: undefined;
172
+ subject?: undefined;
173
+ body?: undefined;
174
+ expression?: undefined;
175
+ };
176
+ required: string[];
177
+ };
178
+ implementationType: "http";
179
+ implementationConfig: {
180
+ url: string;
181
+ auth: string;
182
+ method?: undefined;
183
+ handler?: undefined;
184
+ };
185
+ maxInvocationsPerMinute: number;
186
+ timeoutMs: number;
187
+ version: string;
188
+ tags: string[];
189
+ createdAt: Date;
190
+ updatedAt: Date;
191
+ outputSchema?: undefined;
192
+ } | {
193
+ id: string;
194
+ organizationId: string;
195
+ name: string;
196
+ slug: string;
197
+ description: string;
198
+ category: "COMPUTATION";
199
+ status: "ACTIVE";
200
+ parametersSchema: {
201
+ type: string;
202
+ properties: {
203
+ expression: {
204
+ type: string;
205
+ description: string;
206
+ };
207
+ query?: undefined;
208
+ numResults?: undefined;
209
+ maxRows?: undefined;
210
+ to?: undefined;
211
+ subject?: undefined;
212
+ body?: undefined;
213
+ action?: undefined;
214
+ repo?: undefined;
215
+ params?: undefined;
216
+ };
217
+ required: string[];
218
+ };
219
+ outputSchema: {
220
+ type: string;
221
+ properties: {
222
+ result: {
223
+ type: string;
224
+ };
225
+ };
226
+ items?: undefined;
227
+ };
228
+ implementationType: "function";
229
+ implementationConfig: {
230
+ handler: string;
231
+ url?: undefined;
232
+ method?: undefined;
233
+ auth?: undefined;
234
+ };
235
+ timeoutMs: number;
236
+ version: string;
237
+ tags: string[];
238
+ createdAt: Date;
239
+ updatedAt: Date;
240
+ maxInvocationsPerMinute?: undefined;
241
+ })[];
242
+ //#endregion
243
+ export { MOCK_TOOLS };
@@ -0,0 +1,8 @@
1
+ import { ListToolsInput, ListToolsOutput, ToolSummary, mockCreateToolHandler, mockGetToolHandler, mockListToolsHandler, mockTestToolHandler, mockUpdateToolHandler } from "./tool.handler.js";
2
+ import { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum } from "./tool.enum.js";
3
+ import { CreateToolInputModel, ToolModel, ToolSummaryModel, UpdateToolInputModel } from "./tool.schema.js";
4
+ import { CreateToolCommand, GetToolQuery, ListToolsQuery, TestToolCommand, UpdateToolCommand } from "./tool.contracts.js";
5
+ import { ToolCreatedEvent, ToolStatusChangedEvent, ToolUpdatedEvent } from "./tool.event.js";
6
+ import { ImplementationTypeEntityEnum, ToolCategoryEntityEnum, ToolEntity, ToolStatusEntityEnum } from "./tool.entity.js";
7
+ import { ToolDetailPresentation, ToolListPresentation } from "./tool.presentation.js";
8
+ export { CreateToolCommand, CreateToolInputModel, GetToolQuery, ImplementationTypeEntityEnum, ImplementationTypeEnum, type ListToolsInput, type ListToolsOutput, ListToolsQuery, TestToolCommand, ToolCategoryEntityEnum, ToolCategoryEnum, ToolCreatedEvent, ToolDetailPresentation, ToolEntity, ToolListPresentation, ToolModel, ToolStatusChangedEvent, ToolStatusEntityEnum, ToolStatusEnum, type ToolSummary, ToolSummaryModel, ToolUpdatedEvent, UpdateToolCommand, UpdateToolInputModel, mockCreateToolHandler, mockGetToolHandler, mockListToolsHandler, mockTestToolHandler, mockUpdateToolHandler };
@@ -0,0 +1,404 @@
1
+ import * as _lssm_lib_schema6 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
3
+
4
+ //#region src/tool/tool.contracts.d.ts
5
+ /**
6
+ * CreateToolCommand - Creates a new tool definition.
7
+ */
8
+ declare const CreateToolCommand: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema6.SchemaModel<{
9
+ organizationId: {
10
+ type: _lssm_lib_schema6.FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ name: {
14
+ type: _lssm_lib_schema6.FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ slug: {
18
+ type: _lssm_lib_schema6.FieldType<string, string>;
19
+ isOptional: false;
20
+ };
21
+ description: {
22
+ type: _lssm_lib_schema6.FieldType<string, string>;
23
+ isOptional: false;
24
+ };
25
+ category: {
26
+ type: _lssm_lib_schema6.EnumType<[string, string, string, string, string, string]>;
27
+ isOptional: true;
28
+ };
29
+ parametersSchema: {
30
+ type: _lssm_lib_schema6.FieldType<Record<string, unknown>, Record<string, unknown>>;
31
+ isOptional: false;
32
+ };
33
+ outputSchema: {
34
+ type: _lssm_lib_schema6.FieldType<Record<string, unknown>, Record<string, unknown>>;
35
+ isOptional: true;
36
+ };
37
+ implementationType: {
38
+ type: _lssm_lib_schema6.EnumType<[string, string, string]>;
39
+ isOptional: false;
40
+ };
41
+ implementationConfig: {
42
+ type: _lssm_lib_schema6.FieldType<Record<string, unknown>, Record<string, unknown>>;
43
+ isOptional: false;
44
+ };
45
+ maxInvocationsPerMinute: {
46
+ type: _lssm_lib_schema6.FieldType<number, number>;
47
+ isOptional: true;
48
+ };
49
+ timeoutMs: {
50
+ type: _lssm_lib_schema6.FieldType<number, number>;
51
+ isOptional: true;
52
+ };
53
+ tags: {
54
+ type: _lssm_lib_schema6.FieldType<string, string>;
55
+ isArray: true;
56
+ isOptional: true;
57
+ };
58
+ }>, _lssm_lib_schema6.SchemaModel<{
59
+ id: {
60
+ type: _lssm_lib_schema6.FieldType<string, string>;
61
+ isOptional: false;
62
+ };
63
+ name: {
64
+ type: _lssm_lib_schema6.FieldType<string, string>;
65
+ isOptional: false;
66
+ };
67
+ slug: {
68
+ type: _lssm_lib_schema6.FieldType<string, string>;
69
+ isOptional: false;
70
+ };
71
+ status: {
72
+ type: _lssm_lib_schema6.EnumType<[string, string, string, string]>;
73
+ isOptional: false;
74
+ };
75
+ }>, {
76
+ name: string;
77
+ version: number;
78
+ when: string;
79
+ payload: _lssm_lib_schema6.SchemaModel<{
80
+ id: {
81
+ type: _lssm_lib_schema6.FieldType<string, string>;
82
+ isOptional: false;
83
+ };
84
+ name: {
85
+ type: _lssm_lib_schema6.FieldType<string, string>;
86
+ isOptional: false;
87
+ };
88
+ slug: {
89
+ type: _lssm_lib_schema6.FieldType<string, string>;
90
+ isOptional: false;
91
+ };
92
+ description: {
93
+ type: _lssm_lib_schema6.FieldType<string, string>;
94
+ isOptional: false;
95
+ };
96
+ category: {
97
+ type: _lssm_lib_schema6.EnumType<[string, string, string, string, string, string]>;
98
+ isOptional: false;
99
+ };
100
+ status: {
101
+ type: _lssm_lib_schema6.EnumType<[string, string, string, string]>;
102
+ isOptional: false;
103
+ };
104
+ version: {
105
+ type: _lssm_lib_schema6.FieldType<string, string>;
106
+ isOptional: false;
107
+ };
108
+ createdAt: {
109
+ type: _lssm_lib_schema6.FieldType<Date, string>;
110
+ isOptional: false;
111
+ };
112
+ }>;
113
+ }[]>;
114
+ /**
115
+ * UpdateToolCommand - Updates an existing tool.
116
+ */
117
+ declare const UpdateToolCommand: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema6.SchemaModel<{
118
+ toolId: {
119
+ type: _lssm_lib_schema6.FieldType<string, string>;
120
+ isOptional: false;
121
+ };
122
+ name: {
123
+ type: _lssm_lib_schema6.FieldType<string, string>;
124
+ isOptional: true;
125
+ };
126
+ description: {
127
+ type: _lssm_lib_schema6.FieldType<string, string>;
128
+ isOptional: true;
129
+ };
130
+ status: {
131
+ type: _lssm_lib_schema6.EnumType<[string, string, string, string]>;
132
+ isOptional: true;
133
+ };
134
+ parametersSchema: {
135
+ type: _lssm_lib_schema6.FieldType<Record<string, unknown>, Record<string, unknown>>;
136
+ isOptional: true;
137
+ };
138
+ outputSchema: {
139
+ type: _lssm_lib_schema6.FieldType<Record<string, unknown>, Record<string, unknown>>;
140
+ isOptional: true;
141
+ };
142
+ implementationConfig: {
143
+ type: _lssm_lib_schema6.FieldType<Record<string, unknown>, Record<string, unknown>>;
144
+ isOptional: true;
145
+ };
146
+ maxInvocationsPerMinute: {
147
+ type: _lssm_lib_schema6.FieldType<number, number>;
148
+ isOptional: true;
149
+ };
150
+ timeoutMs: {
151
+ type: _lssm_lib_schema6.FieldType<number, number>;
152
+ isOptional: true;
153
+ };
154
+ tags: {
155
+ type: _lssm_lib_schema6.FieldType<string, string>;
156
+ isArray: true;
157
+ isOptional: true;
158
+ };
159
+ }>, _lssm_lib_schema6.SchemaModel<{
160
+ id: {
161
+ type: _lssm_lib_schema6.FieldType<string, string>;
162
+ isOptional: false;
163
+ };
164
+ name: {
165
+ type: _lssm_lib_schema6.FieldType<string, string>;
166
+ isOptional: false;
167
+ };
168
+ status: {
169
+ type: _lssm_lib_schema6.EnumType<[string, string, string, string]>;
170
+ isOptional: false;
171
+ };
172
+ updatedAt: {
173
+ type: _lssm_lib_schema6.FieldType<Date, string>;
174
+ isOptional: false;
175
+ };
176
+ }>, {
177
+ name: string;
178
+ version: number;
179
+ when: string;
180
+ payload: _lssm_lib_schema6.SchemaModel<{
181
+ id: {
182
+ type: _lssm_lib_schema6.FieldType<string, string>;
183
+ isOptional: false;
184
+ };
185
+ name: {
186
+ type: _lssm_lib_schema6.FieldType<string, string>;
187
+ isOptional: false;
188
+ };
189
+ slug: {
190
+ type: _lssm_lib_schema6.FieldType<string, string>;
191
+ isOptional: false;
192
+ };
193
+ description: {
194
+ type: _lssm_lib_schema6.FieldType<string, string>;
195
+ isOptional: false;
196
+ };
197
+ category: {
198
+ type: _lssm_lib_schema6.EnumType<[string, string, string, string, string, string]>;
199
+ isOptional: false;
200
+ };
201
+ status: {
202
+ type: _lssm_lib_schema6.EnumType<[string, string, string, string]>;
203
+ isOptional: false;
204
+ };
205
+ version: {
206
+ type: _lssm_lib_schema6.FieldType<string, string>;
207
+ isOptional: false;
208
+ };
209
+ createdAt: {
210
+ type: _lssm_lib_schema6.FieldType<Date, string>;
211
+ isOptional: false;
212
+ };
213
+ }>;
214
+ }[]>;
215
+ /**
216
+ * GetToolQuery - Retrieves a tool by ID.
217
+ */
218
+ declare const GetToolQuery: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema6.SchemaModel<{
219
+ toolId: {
220
+ type: _lssm_lib_schema6.FieldType<string, string>;
221
+ isOptional: false;
222
+ };
223
+ }>, _lssm_lib_schema6.SchemaModel<{
224
+ id: {
225
+ type: _lssm_lib_schema6.FieldType<string, string>;
226
+ isOptional: false;
227
+ };
228
+ organizationId: {
229
+ type: _lssm_lib_schema6.FieldType<string, string>;
230
+ isOptional: false;
231
+ };
232
+ name: {
233
+ type: _lssm_lib_schema6.FieldType<string, string>;
234
+ isOptional: false;
235
+ };
236
+ slug: {
237
+ type: _lssm_lib_schema6.FieldType<string, string>;
238
+ isOptional: false;
239
+ };
240
+ description: {
241
+ type: _lssm_lib_schema6.FieldType<string, string>;
242
+ isOptional: false;
243
+ };
244
+ category: {
245
+ type: _lssm_lib_schema6.EnumType<[string, string, string, string, string, string]>;
246
+ isOptional: false;
247
+ };
248
+ status: {
249
+ type: _lssm_lib_schema6.EnumType<[string, string, string, string]>;
250
+ isOptional: false;
251
+ };
252
+ parametersSchema: {
253
+ type: _lssm_lib_schema6.FieldType<Record<string, unknown>, Record<string, unknown>>;
254
+ isOptional: false;
255
+ };
256
+ outputSchema: {
257
+ type: _lssm_lib_schema6.FieldType<Record<string, unknown>, Record<string, unknown>>;
258
+ isOptional: true;
259
+ };
260
+ implementationType: {
261
+ type: _lssm_lib_schema6.EnumType<[string, string, string]>;
262
+ isOptional: false;
263
+ };
264
+ implementationConfig: {
265
+ type: _lssm_lib_schema6.FieldType<Record<string, unknown>, Record<string, unknown>>;
266
+ isOptional: false;
267
+ };
268
+ maxInvocationsPerMinute: {
269
+ type: _lssm_lib_schema6.FieldType<number, number>;
270
+ isOptional: true;
271
+ };
272
+ timeoutMs: {
273
+ type: _lssm_lib_schema6.FieldType<number, number>;
274
+ isOptional: false;
275
+ defaultValue: number;
276
+ };
277
+ version: {
278
+ type: _lssm_lib_schema6.FieldType<string, string>;
279
+ isOptional: false;
280
+ };
281
+ tags: {
282
+ type: _lssm_lib_schema6.FieldType<string, string>;
283
+ isArray: true;
284
+ isOptional: true;
285
+ };
286
+ createdAt: {
287
+ type: _lssm_lib_schema6.FieldType<Date, string>;
288
+ isOptional: false;
289
+ };
290
+ updatedAt: {
291
+ type: _lssm_lib_schema6.FieldType<Date, string>;
292
+ isOptional: false;
293
+ };
294
+ }>, undefined>;
295
+ /**
296
+ * ListToolsQuery - Lists tools for an organization.
297
+ */
298
+ declare const ListToolsQuery: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema6.SchemaModel<{
299
+ organizationId: {
300
+ type: _lssm_lib_schema6.FieldType<string, string>;
301
+ isOptional: false;
302
+ };
303
+ category: {
304
+ type: _lssm_lib_schema6.EnumType<[string, string, string, string, string, string]>;
305
+ isOptional: true;
306
+ };
307
+ status: {
308
+ type: _lssm_lib_schema6.EnumType<[string, string, string, string]>;
309
+ isOptional: true;
310
+ };
311
+ search: {
312
+ type: _lssm_lib_schema6.FieldType<string, string>;
313
+ isOptional: true;
314
+ };
315
+ limit: {
316
+ type: _lssm_lib_schema6.FieldType<number, number>;
317
+ isOptional: true;
318
+ defaultValue: number;
319
+ };
320
+ offset: {
321
+ type: _lssm_lib_schema6.FieldType<number, number>;
322
+ isOptional: true;
323
+ defaultValue: number;
324
+ };
325
+ }>, _lssm_lib_schema6.SchemaModel<{
326
+ items: {
327
+ type: _lssm_lib_schema6.SchemaModel<{
328
+ id: {
329
+ type: _lssm_lib_schema6.FieldType<string, string>;
330
+ isOptional: false;
331
+ };
332
+ name: {
333
+ type: _lssm_lib_schema6.FieldType<string, string>;
334
+ isOptional: false;
335
+ };
336
+ slug: {
337
+ type: _lssm_lib_schema6.FieldType<string, string>;
338
+ isOptional: false;
339
+ };
340
+ description: {
341
+ type: _lssm_lib_schema6.FieldType<string, string>;
342
+ isOptional: false;
343
+ };
344
+ category: {
345
+ type: _lssm_lib_schema6.EnumType<[string, string, string, string, string, string]>;
346
+ isOptional: false;
347
+ };
348
+ status: {
349
+ type: _lssm_lib_schema6.EnumType<[string, string, string, string]>;
350
+ isOptional: false;
351
+ };
352
+ version: {
353
+ type: _lssm_lib_schema6.FieldType<string, string>;
354
+ isOptional: false;
355
+ };
356
+ createdAt: {
357
+ type: _lssm_lib_schema6.FieldType<Date, string>;
358
+ isOptional: false;
359
+ };
360
+ }>;
361
+ isArray: true;
362
+ isOptional: false;
363
+ };
364
+ total: {
365
+ type: _lssm_lib_schema6.FieldType<number, number>;
366
+ isOptional: false;
367
+ };
368
+ hasMore: {
369
+ type: _lssm_lib_schema6.FieldType<boolean, boolean>;
370
+ isOptional: false;
371
+ };
372
+ }>, undefined>;
373
+ /**
374
+ * TestToolCommand - Tests a tool with sample input.
375
+ */
376
+ declare const TestToolCommand: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema6.SchemaModel<{
377
+ toolId: {
378
+ type: _lssm_lib_schema6.FieldType<string, string>;
379
+ isOptional: false;
380
+ };
381
+ testInput: {
382
+ type: _lssm_lib_schema6.FieldType<Record<string, unknown>, Record<string, unknown>>;
383
+ isOptional: false;
384
+ };
385
+ }>, _lssm_lib_schema6.SchemaModel<{
386
+ success: {
387
+ type: _lssm_lib_schema6.FieldType<boolean, boolean>;
388
+ isOptional: false;
389
+ };
390
+ output: {
391
+ type: _lssm_lib_schema6.FieldType<Record<string, unknown>, Record<string, unknown>>;
392
+ isOptional: true;
393
+ };
394
+ error: {
395
+ type: _lssm_lib_schema6.FieldType<string, string>;
396
+ isOptional: true;
397
+ };
398
+ durationMs: {
399
+ type: _lssm_lib_schema6.FieldType<number, number>;
400
+ isOptional: false;
401
+ };
402
+ }>, undefined>;
403
+ //#endregion
404
+ export { CreateToolCommand, GetToolQuery, ListToolsQuery, TestToolCommand, UpdateToolCommand };
@@ -0,0 +1,41 @@
1
+ import * as _lssm_lib_schema511 from "@lssm/lib.schema";
2
+
3
+ //#region src/tool/tool.entity.d.ts
4
+ /**
5
+ * Tool category enum for entities.
6
+ */
7
+ declare const ToolCategoryEntityEnum: _lssm_lib_schema511.EntityEnumDef;
8
+ /**
9
+ * Tool status enum for entities.
10
+ */
11
+ declare const ToolStatusEntityEnum: _lssm_lib_schema511.EntityEnumDef;
12
+ /**
13
+ * Implementation type enum for entities.
14
+ */
15
+ declare const ImplementationTypeEntityEnum: _lssm_lib_schema511.EntityEnumDef;
16
+ /**
17
+ * Tool entity - Represents an AI tool definition.
18
+ */
19
+ declare const ToolEntity: _lssm_lib_schema511.EntitySpec<{
20
+ id: _lssm_lib_schema511.EntityScalarField;
21
+ organizationId: _lssm_lib_schema511.EntityScalarField;
22
+ name: _lssm_lib_schema511.EntityScalarField;
23
+ slug: _lssm_lib_schema511.EntityScalarField;
24
+ description: _lssm_lib_schema511.EntityScalarField;
25
+ category: _lssm_lib_schema511.EntityEnumField;
26
+ status: _lssm_lib_schema511.EntityEnumField;
27
+ parametersSchema: _lssm_lib_schema511.EntityScalarField;
28
+ outputSchema: _lssm_lib_schema511.EntityScalarField;
29
+ implementationType: _lssm_lib_schema511.EntityEnumField;
30
+ implementationConfig: _lssm_lib_schema511.EntityScalarField;
31
+ maxInvocationsPerMinute: _lssm_lib_schema511.EntityScalarField;
32
+ timeoutMs: _lssm_lib_schema511.EntityScalarField;
33
+ version: _lssm_lib_schema511.EntityScalarField;
34
+ tags: _lssm_lib_schema511.EntityScalarField;
35
+ createdAt: _lssm_lib_schema511.EntityScalarField;
36
+ updatedAt: _lssm_lib_schema511.EntityScalarField;
37
+ createdById: _lssm_lib_schema511.EntityScalarField;
38
+ agents: _lssm_lib_schema511.EntityRelationField;
39
+ }>;
40
+ //#endregion
41
+ export { ImplementationTypeEntityEnum, ToolCategoryEntityEnum, ToolEntity, ToolStatusEntityEnum };
@@ -0,0 +1,17 @@
1
+ import * as _lssm_lib_schema3 from "@lssm/lib.schema";
2
+
3
+ //#region src/tool/tool.enum.d.ts
4
+ /**
5
+ * Tool category enum.
6
+ */
7
+ declare const ToolCategoryEnum: _lssm_lib_schema3.EnumType<[string, string, string, string, string, string]>;
8
+ /**
9
+ * Tool status enum.
10
+ */
11
+ declare const ToolStatusEnum: _lssm_lib_schema3.EnumType<[string, string, string, string]>;
12
+ /**
13
+ * Implementation type enum.
14
+ */
15
+ declare const ImplementationTypeEnum: _lssm_lib_schema3.EnumType<[string, string, string]>;
16
+ //#endregion
17
+ export { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum };