@lssm/example.agent-console 0.0.0-canary-20251217083314 → 1.41.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 (196) hide show
  1. package/.turbo/turbo-build.log +46 -48
  2. package/dist/agent/agent.contracts.js +1 -336
  3. package/dist/agent/agent.entity.js +1 -136
  4. package/dist/agent/agent.enum.js +1 -34
  5. package/dist/agent/agent.event.js +1 -183
  6. package/dist/agent/agent.handler.js +1 -83
  7. package/dist/agent/agent.presentation.js +1 -75
  8. package/dist/agent/agent.schema.js +1 -407
  9. package/dist/agent/index.js +1 -9
  10. package/dist/agent.feature.js +1 -295
  11. package/dist/docs/agent-console.docblock.js +5 -69
  12. package/dist/docs/index.js +1 -1
  13. package/dist/example.js +1 -50
  14. package/dist/handlers/index.js +1 -5
  15. package/dist/index.js +1 -32
  16. package/dist/presentations/index.js +1 -5
  17. package/dist/run/index.js +1 -9
  18. package/dist/run/run.contracts.js +1 -469
  19. package/dist/run/run.entity.js +1 -205
  20. package/dist/run/run.enum.js +1 -45
  21. package/dist/run/run.event.js +1 -389
  22. package/dist/run/run.handler.js +1 -82
  23. package/dist/run/run.presentation.js +1 -55
  24. package/dist/run/run.schema.js +1 -339
  25. package/dist/shared/index.js +1 -5
  26. package/dist/shared/mock-agents.js +1 -93
  27. package/dist/shared/mock-runs.js +1 -117
  28. package/dist/shared/mock-tools.js +1 -180
  29. package/dist/tool/index.js +1 -9
  30. package/dist/tool/tool.contracts.js +1 -288
  31. package/dist/tool/tool.entity.js +1 -105
  32. package/dist/tool/tool.enum.js +1 -35
  33. package/dist/tool/tool.event.js +1 -145
  34. package/dist/tool/tool.handler.js +1 -86
  35. package/dist/tool/tool.presentation.js +1 -55
  36. package/dist/tool/tool.schema.js +1 -237
  37. package/package.json +43 -45
  38. package/tsconfig.tsbuildinfo +1 -1
  39. package/.turbo/turbo-build$colon$bundle.log +0 -272
  40. package/CHANGELOG.md +0 -16
  41. package/dist/agent/agent.contracts.d.ts +0 -504
  42. package/dist/agent/agent.entity.d.ts +0 -54
  43. package/dist/agent/agent.enum.d.ts +0 -17
  44. package/dist/agent/agent.event.d.ts +0 -127
  45. package/dist/agent/agent.handler.d.ts +0 -99
  46. package/dist/agent/agent.presentation.d.ts +0 -18
  47. package/dist/agent/agent.schema.d.ts +0 -400
  48. package/dist/agent/index.d.ts +0 -8
  49. package/dist/agent.feature.d.ts +0 -11
  50. package/dist/docs/agent-console.docblock.d.ts +0 -1
  51. package/dist/docs/index.d.ts +0 -1
  52. package/dist/example.d.ts +0 -39
  53. package/dist/handlers/index.d.ts +0 -4
  54. package/dist/index.d.ts +0 -27
  55. package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -88
  56. package/dist/libs/contracts/dist/client/index.js +0 -5
  57. package/dist/libs/contracts/dist/client/react/feature-render.js +0 -2
  58. package/dist/libs/contracts/dist/client/react/form-render.js +0 -4
  59. package/dist/libs/contracts/dist/client/react/index.js +0 -4
  60. package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
  61. package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -60
  62. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  63. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
  64. package/dist/libs/contracts/dist/docs/index.js +0 -29
  65. package/dist/libs/contracts/dist/docs/presentations.js +0 -71
  66. package/dist/libs/contracts/dist/docs/registry.js +0 -44
  67. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  68. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  69. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  70. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  71. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  72. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
  73. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
  74. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
  75. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
  76. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
  77. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
  78. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
  79. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
  80. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
  81. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
  82. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
  83. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
  84. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
  85. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
  86. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
  87. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
  88. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
  89. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
  90. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
  91. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
  92. package/dist/libs/contracts/dist/events.js +0 -10
  93. package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
  94. package/dist/libs/contracts/dist/index.js +0 -71
  95. package/dist/libs/contracts/dist/install.js +0 -2
  96. package/dist/libs/contracts/dist/integrations/contracts.js +0 -377
  97. package/dist/libs/contracts/dist/integrations/index.js +0 -18
  98. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
  99. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
  100. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  101. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
  102. package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -242
  103. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -13
  104. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -52
  105. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -75
  106. package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -87
  107. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -66
  108. package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
  109. package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -68
  110. package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -68
  111. package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -116
  112. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -73
  113. package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
  114. package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -83
  115. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -61
  116. package/dist/libs/contracts/dist/jsonschema.js +0 -1
  117. package/dist/libs/contracts/dist/knowledge/contracts.js +0 -306
  118. package/dist/libs/contracts/dist/knowledge/index.js +0 -7
  119. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -34
  120. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
  121. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
  122. package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
  123. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -34
  124. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -37
  125. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
  126. package/dist/libs/contracts/dist/llm/exporters.js +0 -19
  127. package/dist/libs/contracts/dist/llm/index.js +0 -2
  128. package/dist/libs/contracts/dist/llm/prompts.js +0 -1
  129. package/dist/libs/contracts/dist/onboarding-base.js +0 -196
  130. package/dist/libs/contracts/dist/openapi.js +0 -1
  131. package/dist/libs/contracts/dist/ownership.js +0 -21
  132. package/dist/libs/contracts/dist/presentations.js +0 -1
  133. package/dist/libs/contracts/dist/presentations.v2.js +0 -11
  134. package/dist/libs/contracts/dist/prompt.js +0 -1
  135. package/dist/libs/contracts/dist/promptRegistry.js +0 -1
  136. package/dist/libs/contracts/dist/regenerator/index.js +0 -1
  137. package/dist/libs/contracts/dist/regenerator/service.js +0 -6
  138. package/dist/libs/contracts/dist/registry.js +0 -2
  139. package/dist/libs/contracts/dist/resources.js +0 -1
  140. package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
  141. package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
  142. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
  143. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -39
  144. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  145. package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
  146. package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
  147. package/dist/libs/contracts/dist/schema/dist/index.js +0 -6
  148. package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
  149. package/dist/libs/contracts/dist/server/index.js +0 -8
  150. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
  151. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -2
  152. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
  153. package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
  154. package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
  155. package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
  156. package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
  157. package/dist/libs/contracts/dist/server/rest-express.js +0 -1
  158. package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
  159. package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
  160. package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
  161. package/dist/libs/contracts/dist/spec.js +0 -34
  162. package/dist/libs/contracts/dist/telemetry/index.js +0 -1
  163. package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
  164. package/dist/libs/contracts/dist/tests/index.js +0 -1
  165. package/dist/libs/contracts/dist/tests/runner.js +0 -2
  166. package/dist/libs/contracts/dist/workflow/index.js +0 -1
  167. package/dist/libs/contracts/dist/workflow/runner.js +0 -1
  168. package/dist/libs/schema/dist/EnumType.js +0 -56
  169. package/dist/libs/schema/dist/FieldType.js +0 -49
  170. package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -236
  171. package/dist/libs/schema/dist/SchemaModel.js +0 -39
  172. package/dist/libs/schema/dist/entity/defineEntity.js +0 -236
  173. package/dist/libs/schema/dist/entity/index.js +0 -2
  174. package/dist/libs/schema/dist/entity/types.js +0 -1
  175. package/dist/libs/schema/dist/index.js +0 -6
  176. package/dist/presentations/index.d.ts +0 -4
  177. package/dist/run/index.d.ts +0 -8
  178. package/dist/run/run.contracts.d.ts +0 -713
  179. package/dist/run/run.entity.d.ts +0 -81
  180. package/dist/run/run.enum.d.ts +0 -21
  181. package/dist/run/run.event.d.ts +0 -289
  182. package/dist/run/run.handler.d.ts +0 -202
  183. package/dist/run/run.presentation.d.ts +0 -14
  184. package/dist/run/run.schema.d.ts +0 -415
  185. package/dist/shared/index.d.ts +0 -4
  186. package/dist/shared/mock-agents.d.ts +0 -87
  187. package/dist/shared/mock-runs.d.ts +0 -119
  188. package/dist/shared/mock-tools.d.ts +0 -243
  189. package/dist/tool/index.d.ts +0 -8
  190. package/dist/tool/tool.contracts.d.ts +0 -404
  191. package/dist/tool/tool.entity.d.ts +0 -41
  192. package/dist/tool/tool.enum.d.ts +0 -17
  193. package/dist/tool/tool.event.d.ts +0 -102
  194. package/dist/tool/tool.handler.d.ts +0 -314
  195. package/dist/tool/tool.presentation.d.ts +0 -14
  196. package/dist/tool/tool.schema.d.ts +0 -217
@@ -1,102 +0,0 @@
1
- import * as _lssm_lib_contracts22 from "@lssm/lib.contracts";
2
- import * as _lssm_lib_schema456 from "@lssm/lib.schema";
3
-
4
- //#region src/tool/tool.event.d.ts
5
- /**
6
- * ToolCreatedEvent - A new tool was created.
7
- */
8
- declare const ToolCreatedEvent: _lssm_lib_contracts22.EventSpec<_lssm_lib_schema456.SchemaModel<{
9
- id: {
10
- type: _lssm_lib_schema456.FieldType<string, string>;
11
- isOptional: false;
12
- };
13
- organizationId: {
14
- type: _lssm_lib_schema456.FieldType<string, string>;
15
- isOptional: false;
16
- };
17
- name: {
18
- type: _lssm_lib_schema456.FieldType<string, string>;
19
- isOptional: false;
20
- };
21
- slug: {
22
- type: _lssm_lib_schema456.FieldType<string, string>;
23
- isOptional: false;
24
- };
25
- category: {
26
- type: _lssm_lib_schema456.FieldType<string, string>;
27
- isOptional: false;
28
- };
29
- implementationType: {
30
- type: _lssm_lib_schema456.FieldType<string, string>;
31
- isOptional: false;
32
- };
33
- createdById: {
34
- type: _lssm_lib_schema456.FieldType<string, string>;
35
- isOptional: true;
36
- };
37
- createdAt: {
38
- type: _lssm_lib_schema456.FieldType<Date, string>;
39
- isOptional: false;
40
- };
41
- }>>;
42
- /**
43
- * ToolUpdatedEvent - A tool was updated.
44
- */
45
- declare const ToolUpdatedEvent: _lssm_lib_contracts22.EventSpec<_lssm_lib_schema456.SchemaModel<{
46
- id: {
47
- type: _lssm_lib_schema456.FieldType<string, string>;
48
- isOptional: false;
49
- };
50
- organizationId: {
51
- type: _lssm_lib_schema456.FieldType<string, string>;
52
- isOptional: false;
53
- };
54
- name: {
55
- type: _lssm_lib_schema456.FieldType<string, string>;
56
- isOptional: false;
57
- };
58
- status: {
59
- type: _lssm_lib_schema456.FieldType<string, string>;
60
- isOptional: false;
61
- };
62
- updatedFields: {
63
- type: _lssm_lib_schema456.FieldType<string, string>;
64
- isArray: true;
65
- isOptional: false;
66
- };
67
- updatedAt: {
68
- type: _lssm_lib_schema456.FieldType<Date, string>;
69
- isOptional: false;
70
- };
71
- }>>;
72
- /**
73
- * ToolStatusChangedEvent - A tool's status was changed.
74
- */
75
- declare const ToolStatusChangedEvent: _lssm_lib_contracts22.EventSpec<_lssm_lib_schema456.SchemaModel<{
76
- id: {
77
- type: _lssm_lib_schema456.FieldType<string, string>;
78
- isOptional: false;
79
- };
80
- organizationId: {
81
- type: _lssm_lib_schema456.FieldType<string, string>;
82
- isOptional: false;
83
- };
84
- name: {
85
- type: _lssm_lib_schema456.FieldType<string, string>;
86
- isOptional: false;
87
- };
88
- previousStatus: {
89
- type: _lssm_lib_schema456.FieldType<string, string>;
90
- isOptional: false;
91
- };
92
- newStatus: {
93
- type: _lssm_lib_schema456.FieldType<string, string>;
94
- isOptional: false;
95
- };
96
- changedAt: {
97
- type: _lssm_lib_schema456.FieldType<Date, string>;
98
- isOptional: false;
99
- };
100
- }>>;
101
- //#endregion
102
- export { ToolCreatedEvent, ToolStatusChangedEvent, ToolUpdatedEvent };
@@ -1,314 +0,0 @@
1
- //#region src/tool/tool.handler.d.ts
2
- interface ListToolsInput {
3
- organizationId: string;
4
- category?: 'RETRIEVAL' | 'COMPUTATION' | 'COMMUNICATION' | 'INTEGRATION' | 'UTILITY' | 'CUSTOM';
5
- status?: 'DRAFT' | 'ACTIVE' | 'DEPRECATED' | 'DISABLED';
6
- search?: string;
7
- limit?: number;
8
- offset?: number;
9
- }
10
- interface ToolSummary {
11
- id: string;
12
- name: string;
13
- slug: string;
14
- description: string;
15
- category: 'RETRIEVAL' | 'COMPUTATION' | 'COMMUNICATION' | 'INTEGRATION' | 'UTILITY' | 'CUSTOM';
16
- status: 'DRAFT' | 'ACTIVE' | 'DEPRECATED' | 'DISABLED';
17
- version: string;
18
- createdAt: Date;
19
- }
20
- interface ListToolsOutput {
21
- items: ToolSummary[];
22
- total: number;
23
- hasMore: boolean;
24
- }
25
- /**
26
- * Mock handler for ListToolsQuery.
27
- */
28
- declare function mockListToolsHandler(input: ListToolsInput): Promise<ListToolsOutput>;
29
- /**
30
- * Mock handler for GetToolQuery.
31
- */
32
- declare function mockGetToolHandler(input: {
33
- toolId: string;
34
- }): Promise<{
35
- id: string;
36
- organizationId: string;
37
- name: string;
38
- slug: string;
39
- description: string;
40
- category: "RETRIEVAL";
41
- status: "ACTIVE";
42
- parametersSchema: {
43
- type: string;
44
- properties: {
45
- query: {
46
- type: string;
47
- description: string;
48
- };
49
- numResults: {
50
- type: string;
51
- default: number;
52
- };
53
- maxRows?: undefined;
54
- to?: undefined;
55
- subject?: undefined;
56
- body?: undefined;
57
- action?: undefined;
58
- repo?: undefined;
59
- params?: undefined;
60
- expression?: undefined;
61
- };
62
- required: string[];
63
- };
64
- outputSchema: {
65
- type: string;
66
- items: {
67
- type: string;
68
- };
69
- properties?: undefined;
70
- };
71
- implementationType: "http";
72
- implementationConfig: {
73
- url: string;
74
- method: string;
75
- handler?: undefined;
76
- auth?: undefined;
77
- };
78
- maxInvocationsPerMinute: number;
79
- timeoutMs: number;
80
- version: string;
81
- tags: string[];
82
- createdAt: Date;
83
- updatedAt: Date;
84
- } | {
85
- id: string;
86
- organizationId: string;
87
- name: string;
88
- slug: string;
89
- description: string;
90
- category: "RETRIEVAL";
91
- status: "ACTIVE";
92
- parametersSchema: {
93
- type: string;
94
- properties: {
95
- query: {
96
- type: string;
97
- description: string;
98
- };
99
- maxRows: {
100
- type: string;
101
- default: number;
102
- };
103
- numResults?: undefined;
104
- to?: undefined;
105
- subject?: undefined;
106
- body?: undefined;
107
- action?: undefined;
108
- repo?: undefined;
109
- params?: undefined;
110
- expression?: undefined;
111
- };
112
- required: string[];
113
- };
114
- outputSchema: {
115
- type: string;
116
- items?: undefined;
117
- properties?: undefined;
118
- };
119
- implementationType: "function";
120
- implementationConfig: {
121
- handler: string;
122
- url?: undefined;
123
- method?: undefined;
124
- auth?: undefined;
125
- };
126
- maxInvocationsPerMinute: number;
127
- timeoutMs: number;
128
- version: string;
129
- tags: string[];
130
- createdAt: Date;
131
- updatedAt: Date;
132
- } | {
133
- id: string;
134
- organizationId: string;
135
- name: string;
136
- slug: string;
137
- description: string;
138
- category: "COMMUNICATION";
139
- status: "ACTIVE";
140
- parametersSchema: {
141
- type: string;
142
- properties: {
143
- to: {
144
- type: string;
145
- };
146
- subject: {
147
- type: string;
148
- };
149
- body: {
150
- type: string;
151
- };
152
- query?: undefined;
153
- numResults?: undefined;
154
- maxRows?: undefined;
155
- action?: undefined;
156
- repo?: undefined;
157
- params?: undefined;
158
- expression?: undefined;
159
- };
160
- required: string[];
161
- };
162
- implementationType: "http";
163
- implementationConfig: {
164
- url: string;
165
- method: string;
166
- handler?: undefined;
167
- auth?: undefined;
168
- };
169
- maxInvocationsPerMinute: number;
170
- timeoutMs: number;
171
- version: string;
172
- tags: string[];
173
- createdAt: Date;
174
- updatedAt: Date;
175
- outputSchema?: undefined;
176
- } | {
177
- id: string;
178
- organizationId: string;
179
- name: string;
180
- slug: string;
181
- description: string;
182
- category: "INTEGRATION";
183
- status: "ACTIVE";
184
- parametersSchema: {
185
- type: string;
186
- properties: {
187
- action: {
188
- type: string;
189
- enum: string[];
190
- };
191
- repo: {
192
- type: string;
193
- };
194
- params: {
195
- type: string;
196
- };
197
- query?: undefined;
198
- numResults?: undefined;
199
- maxRows?: undefined;
200
- to?: undefined;
201
- subject?: undefined;
202
- body?: undefined;
203
- expression?: undefined;
204
- };
205
- required: string[];
206
- };
207
- implementationType: "http";
208
- implementationConfig: {
209
- url: string;
210
- auth: string;
211
- method?: undefined;
212
- handler?: undefined;
213
- };
214
- maxInvocationsPerMinute: number;
215
- timeoutMs: number;
216
- version: string;
217
- tags: string[];
218
- createdAt: Date;
219
- updatedAt: Date;
220
- outputSchema?: undefined;
221
- } | {
222
- id: string;
223
- organizationId: string;
224
- name: string;
225
- slug: string;
226
- description: string;
227
- category: "COMPUTATION";
228
- status: "ACTIVE";
229
- parametersSchema: {
230
- type: string;
231
- properties: {
232
- expression: {
233
- type: string;
234
- description: string;
235
- };
236
- query?: undefined;
237
- numResults?: undefined;
238
- maxRows?: undefined;
239
- to?: undefined;
240
- subject?: undefined;
241
- body?: undefined;
242
- action?: undefined;
243
- repo?: undefined;
244
- params?: undefined;
245
- };
246
- required: string[];
247
- };
248
- outputSchema: {
249
- type: string;
250
- properties: {
251
- result: {
252
- type: string;
253
- };
254
- };
255
- items?: undefined;
256
- };
257
- implementationType: "function";
258
- implementationConfig: {
259
- handler: string;
260
- url?: undefined;
261
- method?: undefined;
262
- auth?: undefined;
263
- };
264
- timeoutMs: number;
265
- version: string;
266
- tags: string[];
267
- createdAt: Date;
268
- updatedAt: Date;
269
- maxInvocationsPerMinute?: undefined;
270
- }>;
271
- /**
272
- * Mock handler for CreateToolCommand.
273
- */
274
- declare function mockCreateToolHandler(input: {
275
- organizationId: string;
276
- name: string;
277
- slug: string;
278
- description: string;
279
- implementationType: 'http' | 'function' | 'workflow';
280
- }): Promise<{
281
- id: string;
282
- name: string;
283
- slug: string;
284
- status: "DRAFT";
285
- }>;
286
- /**
287
- * Mock handler for UpdateToolCommand.
288
- */
289
- declare function mockUpdateToolHandler(input: {
290
- toolId: string;
291
- name?: string;
292
- status?: 'DRAFT' | 'ACTIVE' | 'DEPRECATED' | 'DISABLED';
293
- }): Promise<{
294
- id: string;
295
- name: string;
296
- status: "DRAFT" | "ACTIVE" | "DEPRECATED" | "DISABLED";
297
- updatedAt: Date;
298
- }>;
299
- /**
300
- * Mock handler for TestToolCommand.
301
- */
302
- declare function mockTestToolHandler(input: {
303
- toolId: string;
304
- testInput: Record<string, unknown>;
305
- }): Promise<{
306
- success: boolean;
307
- output: {
308
- result: string;
309
- input: Record<string, unknown>;
310
- };
311
- durationMs: number;
312
- }>;
313
- //#endregion
314
- export { ListToolsInput, ListToolsOutput, ToolSummary, mockCreateToolHandler, mockGetToolHandler, mockListToolsHandler, mockTestToolHandler, mockUpdateToolHandler };
@@ -1,14 +0,0 @@
1
- import { PresentationDescriptorV2 } from "@lssm/lib.contracts";
2
-
3
- //#region src/tool/tool.presentation.d.ts
4
-
5
- /**
6
- * Presentation for displaying a list of tools.
7
- */
8
- declare const ToolListPresentation: PresentationDescriptorV2;
9
- /**
10
- * Presentation for tool detail view.
11
- */
12
- declare const ToolDetailPresentation: PresentationDescriptorV2;
13
- //#endregion
14
- export { ToolDetailPresentation, ToolListPresentation };
@@ -1,217 +0,0 @@
1
- import * as _lssm_lib_schema658 from "@lssm/lib.schema";
2
-
3
- //#region src/tool/tool.schema.d.ts
4
- /**
5
- * AI tool definition.
6
- */
7
- declare const ToolModel: _lssm_lib_schema658.SchemaModel<{
8
- id: {
9
- type: _lssm_lib_schema658.FieldType<string, string>;
10
- isOptional: false;
11
- };
12
- organizationId: {
13
- type: _lssm_lib_schema658.FieldType<string, string>;
14
- isOptional: false;
15
- };
16
- name: {
17
- type: _lssm_lib_schema658.FieldType<string, string>;
18
- isOptional: false;
19
- };
20
- slug: {
21
- type: _lssm_lib_schema658.FieldType<string, string>;
22
- isOptional: false;
23
- };
24
- description: {
25
- type: _lssm_lib_schema658.FieldType<string, string>;
26
- isOptional: false;
27
- };
28
- category: {
29
- type: _lssm_lib_schema658.EnumType<[string, string, string, string, string, string]>;
30
- isOptional: false;
31
- };
32
- status: {
33
- type: _lssm_lib_schema658.EnumType<[string, string, string, string]>;
34
- isOptional: false;
35
- };
36
- parametersSchema: {
37
- type: _lssm_lib_schema658.FieldType<Record<string, unknown>, Record<string, unknown>>;
38
- isOptional: false;
39
- };
40
- outputSchema: {
41
- type: _lssm_lib_schema658.FieldType<Record<string, unknown>, Record<string, unknown>>;
42
- isOptional: true;
43
- };
44
- implementationType: {
45
- type: _lssm_lib_schema658.EnumType<[string, string, string]>;
46
- isOptional: false;
47
- };
48
- implementationConfig: {
49
- type: _lssm_lib_schema658.FieldType<Record<string, unknown>, Record<string, unknown>>;
50
- isOptional: false;
51
- };
52
- maxInvocationsPerMinute: {
53
- type: _lssm_lib_schema658.FieldType<number, number>;
54
- isOptional: true;
55
- };
56
- timeoutMs: {
57
- type: _lssm_lib_schema658.FieldType<number, number>;
58
- isOptional: false;
59
- defaultValue: number;
60
- };
61
- version: {
62
- type: _lssm_lib_schema658.FieldType<string, string>;
63
- isOptional: false;
64
- };
65
- tags: {
66
- type: _lssm_lib_schema658.FieldType<string, string>;
67
- isArray: true;
68
- isOptional: true;
69
- };
70
- createdAt: {
71
- type: _lssm_lib_schema658.FieldType<Date, string>;
72
- isOptional: false;
73
- };
74
- updatedAt: {
75
- type: _lssm_lib_schema658.FieldType<Date, string>;
76
- isOptional: false;
77
- };
78
- }>;
79
- /**
80
- * Summary of a tool for list views.
81
- */
82
- declare const ToolSummaryModel: _lssm_lib_schema658.SchemaModel<{
83
- id: {
84
- type: _lssm_lib_schema658.FieldType<string, string>;
85
- isOptional: false;
86
- };
87
- name: {
88
- type: _lssm_lib_schema658.FieldType<string, string>;
89
- isOptional: false;
90
- };
91
- slug: {
92
- type: _lssm_lib_schema658.FieldType<string, string>;
93
- isOptional: false;
94
- };
95
- description: {
96
- type: _lssm_lib_schema658.FieldType<string, string>;
97
- isOptional: false;
98
- };
99
- category: {
100
- type: _lssm_lib_schema658.EnumType<[string, string, string, string, string, string]>;
101
- isOptional: false;
102
- };
103
- status: {
104
- type: _lssm_lib_schema658.EnumType<[string, string, string, string]>;
105
- isOptional: false;
106
- };
107
- version: {
108
- type: _lssm_lib_schema658.FieldType<string, string>;
109
- isOptional: false;
110
- };
111
- createdAt: {
112
- type: _lssm_lib_schema658.FieldType<Date, string>;
113
- isOptional: false;
114
- };
115
- }>;
116
- /**
117
- * Input for creating a tool.
118
- */
119
- declare const CreateToolInputModel: _lssm_lib_schema658.SchemaModel<{
120
- organizationId: {
121
- type: _lssm_lib_schema658.FieldType<string, string>;
122
- isOptional: false;
123
- };
124
- name: {
125
- type: _lssm_lib_schema658.FieldType<string, string>;
126
- isOptional: false;
127
- };
128
- slug: {
129
- type: _lssm_lib_schema658.FieldType<string, string>;
130
- isOptional: false;
131
- };
132
- description: {
133
- type: _lssm_lib_schema658.FieldType<string, string>;
134
- isOptional: false;
135
- };
136
- category: {
137
- type: _lssm_lib_schema658.EnumType<[string, string, string, string, string, string]>;
138
- isOptional: true;
139
- };
140
- parametersSchema: {
141
- type: _lssm_lib_schema658.FieldType<Record<string, unknown>, Record<string, unknown>>;
142
- isOptional: false;
143
- };
144
- outputSchema: {
145
- type: _lssm_lib_schema658.FieldType<Record<string, unknown>, Record<string, unknown>>;
146
- isOptional: true;
147
- };
148
- implementationType: {
149
- type: _lssm_lib_schema658.EnumType<[string, string, string]>;
150
- isOptional: false;
151
- };
152
- implementationConfig: {
153
- type: _lssm_lib_schema658.FieldType<Record<string, unknown>, Record<string, unknown>>;
154
- isOptional: false;
155
- };
156
- maxInvocationsPerMinute: {
157
- type: _lssm_lib_schema658.FieldType<number, number>;
158
- isOptional: true;
159
- };
160
- timeoutMs: {
161
- type: _lssm_lib_schema658.FieldType<number, number>;
162
- isOptional: true;
163
- };
164
- tags: {
165
- type: _lssm_lib_schema658.FieldType<string, string>;
166
- isArray: true;
167
- isOptional: true;
168
- };
169
- }>;
170
- /**
171
- * Input for updating a tool.
172
- */
173
- declare const UpdateToolInputModel: _lssm_lib_schema658.SchemaModel<{
174
- toolId: {
175
- type: _lssm_lib_schema658.FieldType<string, string>;
176
- isOptional: false;
177
- };
178
- name: {
179
- type: _lssm_lib_schema658.FieldType<string, string>;
180
- isOptional: true;
181
- };
182
- description: {
183
- type: _lssm_lib_schema658.FieldType<string, string>;
184
- isOptional: true;
185
- };
186
- status: {
187
- type: _lssm_lib_schema658.EnumType<[string, string, string, string]>;
188
- isOptional: true;
189
- };
190
- parametersSchema: {
191
- type: _lssm_lib_schema658.FieldType<Record<string, unknown>, Record<string, unknown>>;
192
- isOptional: true;
193
- };
194
- outputSchema: {
195
- type: _lssm_lib_schema658.FieldType<Record<string, unknown>, Record<string, unknown>>;
196
- isOptional: true;
197
- };
198
- implementationConfig: {
199
- type: _lssm_lib_schema658.FieldType<Record<string, unknown>, Record<string, unknown>>;
200
- isOptional: true;
201
- };
202
- maxInvocationsPerMinute: {
203
- type: _lssm_lib_schema658.FieldType<number, number>;
204
- isOptional: true;
205
- };
206
- timeoutMs: {
207
- type: _lssm_lib_schema658.FieldType<number, number>;
208
- isOptional: true;
209
- };
210
- tags: {
211
- type: _lssm_lib_schema658.FieldType<string, string>;
212
- isArray: true;
213
- isOptional: true;
214
- };
215
- }>;
216
- //#endregion
217
- export { CreateToolInputModel, ToolModel, ToolSummaryModel, UpdateToolInputModel };