@lssm/example.agent-console 0.0.0-canary-20251222120211 → 0.0.0-canary-20251223010757

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 (243) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +127 -379
  2. package/.turbo/turbo-build.log +128 -380
  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.entity.js +40 -40
  7. package/dist/agent/agent.entity.js.map +1 -1
  8. package/dist/agent/agent.enum.d.ts +4 -4
  9. package/dist/agent/agent.enum.d.ts.map +1 -1
  10. package/dist/agent/agent.enum.js +4 -4
  11. package/dist/agent/agent.enum.js.map +1 -1
  12. package/dist/agent/agent.event.d.ts +31 -31
  13. package/dist/agent/agent.event.d.ts.map +1 -1
  14. package/dist/agent/agent.event.js +31 -33
  15. package/dist/agent/agent.event.js.map +1 -1
  16. package/dist/agent/agent.operation.d.ts +126 -126
  17. package/dist/agent/agent.operation.d.ts.map +1 -1
  18. package/dist/agent/agent.operation.js +35 -36
  19. package/dist/agent/agent.operation.js.map +1 -1
  20. package/dist/agent/agent.presentation.d.ts.map +1 -1
  21. package/dist/agent/agent.schema.d.ts +95 -95
  22. package/dist/agent/agent.schema.js +77 -77
  23. package/dist/agent/agent.schema.js.map +1 -1
  24. package/dist/docs/agent-console.docblock.js +1 -2
  25. package/dist/docs/agent-console.docblock.js.map +1 -1
  26. package/dist/index.d.ts +3 -0
  27. package/dist/run/run.entity.d.ts +56 -56
  28. package/dist/run/run.entity.js +62 -62
  29. package/dist/run/run.entity.js.map +1 -1
  30. package/dist/run/run.enum.d.ts +5 -5
  31. package/dist/run/run.enum.js +5 -5
  32. package/dist/run/run.enum.js.map +1 -1
  33. package/dist/run/run.event.d.ts +71 -71
  34. package/dist/run/run.event.d.ts.map +1 -1
  35. package/dist/run/run.event.js +71 -73
  36. package/dist/run/run.event.js.map +1 -1
  37. package/dist/run/run.operation.d.ts +175 -175
  38. package/dist/run/run.operation.d.ts.map +1 -1
  39. package/dist/run/run.operation.js +57 -58
  40. package/dist/run/run.operation.js.map +1 -1
  41. package/dist/run/run.schema.d.ts +99 -99
  42. package/dist/run/run.schema.js +65 -65
  43. package/dist/run/run.schema.js.map +1 -1
  44. package/dist/tool/tool.entity.d.ts +24 -24
  45. package/dist/tool/tool.entity.js +27 -27
  46. package/dist/tool/tool.entity.js.map +1 -1
  47. package/dist/tool/tool.enum.d.ts +4 -4
  48. package/dist/tool/tool.enum.js +4 -4
  49. package/dist/tool/tool.enum.js.map +1 -1
  50. package/dist/tool/tool.event.d.ts +25 -25
  51. package/dist/tool/tool.event.js +25 -27
  52. package/dist/tool/tool.event.js.map +1 -1
  53. package/dist/tool/tool.handler.d.ts.map +1 -1
  54. package/dist/tool/tool.operation.d.ts +101 -101
  55. package/dist/tool/tool.operation.js +28 -29
  56. package/dist/tool/tool.operation.js.map +1 -1
  57. package/dist/tool/tool.presentation.d.ts.map +1 -1
  58. package/dist/tool/tool.schema.js +44 -44
  59. package/dist/tool/tool.schema.js.map +1 -1
  60. package/package.json +9 -9
  61. package/tsconfig.tsbuildinfo +1 -1
  62. package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +0 -6
  63. package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +0 -1
  64. package/dist/libs/contracts/dist/capabilities/index.js +0 -1
  65. package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -89
  66. package/dist/libs/contracts/dist/capabilities/openbanking.js.map +0 -1
  67. package/dist/libs/contracts/dist/client/index.js +0 -5
  68. package/dist/libs/contracts/dist/client/react/feature-render.js +0 -3
  69. package/dist/libs/contracts/dist/client/react/form-render.js +0 -5
  70. package/dist/libs/contracts/dist/client/react/index.js +0 -4
  71. package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
  72. package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -61
  73. package/dist/libs/contracts/dist/contract-registry/schemas.js.map +0 -1
  74. package/dist/libs/contracts/dist/data-views/data-views.js +0 -7
  75. package/dist/libs/contracts/dist/data-views/data-views.js.map +0 -1
  76. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -17
  77. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +0 -1
  78. package/dist/libs/contracts/dist/docs/index.js +0 -25
  79. package/dist/libs/contracts/dist/docs/meta.docs.js +0 -30
  80. package/dist/libs/contracts/dist/docs/meta.docs.js.map +0 -1
  81. package/dist/libs/contracts/dist/docs/presentations.js +0 -72
  82. package/dist/libs/contracts/dist/docs/presentations.js.map +0 -1
  83. package/dist/libs/contracts/dist/docs/registry.js +0 -45
  84. package/dist/libs/contracts/dist/docs/registry.js.map +0 -1
  85. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -81
  86. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +0 -1
  87. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -58
  88. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +0 -1
  89. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -17
  90. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +0 -1
  91. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -358
  92. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +0 -1
  93. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -38
  94. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +0 -1
  95. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -17
  96. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +0 -1
  97. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -21
  98. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +0 -1
  99. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -49
  100. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +0 -1
  101. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -80
  102. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +0 -1
  103. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -85
  104. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +0 -1
  105. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -46
  106. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +0 -1
  107. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -68
  108. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +0 -1
  109. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -41
  110. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +0 -1
  111. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -70
  112. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +0 -1
  113. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -48
  114. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +0 -1
  115. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -63
  116. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +0 -1
  117. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -156
  118. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +0 -1
  119. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -21
  120. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +0 -1
  121. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -102
  122. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +0 -1
  123. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -21
  124. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +0 -1
  125. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +0 -97
  126. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +0 -1
  127. package/dist/libs/contracts/dist/events.js +0 -11
  128. package/dist/libs/contracts/dist/events.js.map +0 -1
  129. package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
  130. package/dist/libs/contracts/dist/features.js +0 -7
  131. package/dist/libs/contracts/dist/features.js.map +0 -1
  132. package/dist/libs/contracts/dist/forms/forms.js +0 -1
  133. package/dist/libs/contracts/dist/index.js +0 -88
  134. package/dist/libs/contracts/dist/index.js.map +0 -1
  135. package/dist/libs/contracts/dist/install.js +0 -2
  136. package/dist/libs/contracts/dist/integrations/index.js +0 -18
  137. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
  138. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +0 -1
  139. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
  140. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +0 -1
  141. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  142. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
  143. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +0 -1
  144. package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -241
  145. package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +0 -1
  146. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -14
  147. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +0 -1
  148. package/dist/libs/contracts/dist/integrations/operations.js +0 -377
  149. package/dist/libs/contracts/dist/integrations/operations.js.map +0 -1
  150. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -53
  151. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +0 -1
  152. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -76
  153. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +0 -1
  154. package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -88
  155. package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +0 -1
  156. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -67
  157. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +0 -1
  158. package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
  159. package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -69
  160. package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +0 -1
  161. package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -69
  162. package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +0 -1
  163. package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -117
  164. package/dist/libs/contracts/dist/integrations/providers/powens.js.map +0 -1
  165. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -74
  166. package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +0 -1
  167. package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
  168. package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -84
  169. package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +0 -1
  170. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -62
  171. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +0 -1
  172. package/dist/libs/contracts/dist/jsonschema.js +0 -1
  173. package/dist/libs/contracts/dist/knowledge/index.js +0 -7
  174. package/dist/libs/contracts/dist/knowledge/operations.js +0 -306
  175. package/dist/libs/contracts/dist/knowledge/operations.js.map +0 -1
  176. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -35
  177. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +0 -1
  178. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -35
  179. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +0 -1
  180. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -39
  181. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +0 -1
  182. package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
  183. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -35
  184. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +0 -1
  185. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -38
  186. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +0 -1
  187. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -35
  188. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +0 -1
  189. package/dist/libs/contracts/dist/llm/exporters.js +0 -21
  190. package/dist/libs/contracts/dist/llm/exporters.js.map +0 -1
  191. package/dist/libs/contracts/dist/llm/index.js +0 -2
  192. package/dist/libs/contracts/dist/llm/prompts.js +0 -1
  193. package/dist/libs/contracts/dist/onboarding-base.js +0 -196
  194. package/dist/libs/contracts/dist/onboarding-base.js.map +0 -1
  195. package/dist/libs/contracts/dist/openapi.js +0 -1
  196. package/dist/libs/contracts/dist/operations/index.js +0 -2
  197. package/dist/libs/contracts/dist/operations/operation.js +0 -35
  198. package/dist/libs/contracts/dist/operations/operation.js.map +0 -1
  199. package/dist/libs/contracts/dist/operations/registry.js +0 -8
  200. package/dist/libs/contracts/dist/operations/registry.js.map +0 -1
  201. package/dist/libs/contracts/dist/ownership.js +0 -24
  202. package/dist/libs/contracts/dist/ownership.js.map +0 -1
  203. package/dist/libs/contracts/dist/presentations/index.js +0 -2
  204. package/dist/libs/contracts/dist/presentations/presentations.js +0 -8
  205. package/dist/libs/contracts/dist/presentations/presentations.js.map +0 -1
  206. package/dist/libs/contracts/dist/presentations/transform-engine.js +0 -12
  207. package/dist/libs/contracts/dist/presentations/transform-engine.js.map +0 -1
  208. package/dist/libs/contracts/dist/prompt.js +0 -1
  209. package/dist/libs/contracts/dist/promptRegistry.js +0 -1
  210. package/dist/libs/contracts/dist/regenerator/index.js +0 -1
  211. package/dist/libs/contracts/dist/regenerator/service.js +0 -7
  212. package/dist/libs/contracts/dist/regenerator/service.js.map +0 -1
  213. package/dist/libs/contracts/dist/registry-utils.js +0 -24
  214. package/dist/libs/contracts/dist/registry-utils.js.map +0 -1
  215. package/dist/libs/contracts/dist/resources.js +0 -1
  216. package/dist/libs/contracts/dist/schema/dist/index.js +0 -3874
  217. package/dist/libs/contracts/dist/schema/dist/index.js.map +0 -1
  218. package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
  219. package/dist/libs/contracts/dist/server/index.js +0 -8
  220. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
  221. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -3
  222. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
  223. package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
  224. package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
  225. package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
  226. package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
  227. package/dist/libs/contracts/dist/server/rest-express.js +0 -1
  228. package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
  229. package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
  230. package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
  231. package/dist/libs/contracts/dist/telemetry/index.js +0 -1
  232. package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
  233. package/dist/libs/contracts/dist/tests/index.js +0 -1
  234. package/dist/libs/contracts/dist/tests/runner.js +0 -2
  235. package/dist/libs/contracts/dist/workflow/index.js +0 -2
  236. package/dist/libs/contracts/dist/workflow/runner.js +0 -1
  237. package/dist/libs/contracts/dist/workflow/spec.js +0 -7
  238. package/dist/libs/contracts/dist/workflow/spec.js.map +0 -1
  239. package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +0 -164
  240. package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +0 -1
  241. package/dist/libs/contracts/dist/workspace-config/index.js +0 -1
  242. package/dist/libs/schema/dist/index.js +0 -4922
  243. package/dist/libs/schema/dist/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"tool.operation.js","names":["defineSchemaModel","ScalarTypeEnum"],"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,QAAQA,GAAkB;GACxB,MAAM;GACN,QAAQ;IACN,IAAI;KAAE,MAAMC,GAAe,iBAAiB;KAAE,YAAY;KAAO;IACjE,MAAM;KAAE,MAAMA,GAAe,gBAAgB;KAAE,YAAY;KAAO;IAClE,MAAM;KAAE,MAAMA,GAAe,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,CA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;KAAE,MAAMA,GAAe,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
+ {"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;E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gB;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,oBAuBwB,EAvBF,wBAwClC;;;;cAjBY,wBAAwB"}
1
+ {"version":3,"file":"tool.presentation.d.ts","names":[],"sources":["../../src/tool/tool.presentation.ts"],"sourcesContent":[],"mappings":";;;;;;AAMA;AAuBa,cAvBA,oBAwCZ,EAxCkC,wBAwClC;;;;cAjBY,wBAAwB"}
@@ -1,32 +1,32 @@
1
- import { E5, K5 } from "../libs/schema/dist/index.js";
2
1
  import { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum } from "./tool.enum.js";
2
+ import { ScalarTypeEnum, defineSchemaModel } from "@lssm/lib.schema";
3
3
 
4
4
  //#region src/tool/tool.schema.ts
5
5
  /**
6
6
  * AI tool definition.
7
7
  */
8
- const ToolModel = K5({
8
+ const ToolModel = defineSchemaModel({
9
9
  name: "Tool",
10
10
  description: "AI tool definition",
11
11
  fields: {
12
12
  id: {
13
- type: E5.String_unsecure(),
13
+ type: ScalarTypeEnum.String_unsecure(),
14
14
  isOptional: false
15
15
  },
16
16
  organizationId: {
17
- type: E5.String_unsecure(),
17
+ type: ScalarTypeEnum.String_unsecure(),
18
18
  isOptional: false
19
19
  },
20
20
  name: {
21
- type: E5.NonEmptyString(),
21
+ type: ScalarTypeEnum.NonEmptyString(),
22
22
  isOptional: false
23
23
  },
24
24
  slug: {
25
- type: E5.String_unsecure(),
25
+ type: ScalarTypeEnum.String_unsecure(),
26
26
  isOptional: false
27
27
  },
28
28
  description: {
29
- type: E5.String_unsecure(),
29
+ type: ScalarTypeEnum.String_unsecure(),
30
30
  isOptional: false
31
31
  },
32
32
  category: {
@@ -38,11 +38,11 @@ const ToolModel = K5({
38
38
  isOptional: false
39
39
  },
40
40
  parametersSchema: {
41
- type: E5.JSONObject(),
41
+ type: ScalarTypeEnum.JSONObject(),
42
42
  isOptional: false
43
43
  },
44
44
  outputSchema: {
45
- type: E5.JSONObject(),
45
+ type: ScalarTypeEnum.JSONObject(),
46
46
  isOptional: true
47
47
  },
48
48
  implementationType: {
@@ -50,33 +50,33 @@ const ToolModel = K5({
50
50
  isOptional: false
51
51
  },
52
52
  implementationConfig: {
53
- type: E5.JSONObject(),
53
+ type: ScalarTypeEnum.JSONObject(),
54
54
  isOptional: false
55
55
  },
56
56
  maxInvocationsPerMinute: {
57
- type: E5.Int_unsecure(),
57
+ type: ScalarTypeEnum.Int_unsecure(),
58
58
  isOptional: true
59
59
  },
60
60
  timeoutMs: {
61
- type: E5.Int_unsecure(),
61
+ type: ScalarTypeEnum.Int_unsecure(),
62
62
  isOptional: false,
63
63
  defaultValue: 3e4
64
64
  },
65
65
  version: {
66
- type: E5.NonEmptyString(),
66
+ type: ScalarTypeEnum.NonEmptyString(),
67
67
  isOptional: false
68
68
  },
69
69
  tags: {
70
- type: E5.String_unsecure(),
70
+ type: ScalarTypeEnum.String_unsecure(),
71
71
  isArray: true,
72
72
  isOptional: true
73
73
  },
74
74
  createdAt: {
75
- type: E5.DateTime(),
75
+ type: ScalarTypeEnum.DateTime(),
76
76
  isOptional: false
77
77
  },
78
78
  updatedAt: {
79
- type: E5.DateTime(),
79
+ type: ScalarTypeEnum.DateTime(),
80
80
  isOptional: false
81
81
  }
82
82
  }
@@ -84,24 +84,24 @@ const ToolModel = K5({
84
84
  /**
85
85
  * Summary of a tool for list views.
86
86
  */
87
- const ToolSummaryModel = K5({
87
+ const ToolSummaryModel = defineSchemaModel({
88
88
  name: "ToolSummary",
89
89
  description: "Summary of a tool for list views",
90
90
  fields: {
91
91
  id: {
92
- type: E5.String_unsecure(),
92
+ type: ScalarTypeEnum.String_unsecure(),
93
93
  isOptional: false
94
94
  },
95
95
  name: {
96
- type: E5.NonEmptyString(),
96
+ type: ScalarTypeEnum.NonEmptyString(),
97
97
  isOptional: false
98
98
  },
99
99
  slug: {
100
- type: E5.String_unsecure(),
100
+ type: ScalarTypeEnum.String_unsecure(),
101
101
  isOptional: false
102
102
  },
103
103
  description: {
104
- type: E5.String_unsecure(),
104
+ type: ScalarTypeEnum.String_unsecure(),
105
105
  isOptional: false
106
106
  },
107
107
  category: {
@@ -113,11 +113,11 @@ const ToolSummaryModel = K5({
113
113
  isOptional: false
114
114
  },
115
115
  version: {
116
- type: E5.NonEmptyString(),
116
+ type: ScalarTypeEnum.NonEmptyString(),
117
117
  isOptional: false
118
118
  },
119
119
  createdAt: {
120
- type: E5.DateTime(),
120
+ type: ScalarTypeEnum.DateTime(),
121
121
  isOptional: false
122
122
  }
123
123
  }
@@ -125,24 +125,24 @@ const ToolSummaryModel = K5({
125
125
  /**
126
126
  * Input for creating a tool.
127
127
  */
128
- const CreateToolInputModel = K5({
128
+ const CreateToolInputModel = defineSchemaModel({
129
129
  name: "CreateToolInput",
130
130
  description: "Input for creating a tool",
131
131
  fields: {
132
132
  organizationId: {
133
- type: E5.String_unsecure(),
133
+ type: ScalarTypeEnum.String_unsecure(),
134
134
  isOptional: false
135
135
  },
136
136
  name: {
137
- type: E5.NonEmptyString(),
137
+ type: ScalarTypeEnum.NonEmptyString(),
138
138
  isOptional: false
139
139
  },
140
140
  slug: {
141
- type: E5.String_unsecure(),
141
+ type: ScalarTypeEnum.String_unsecure(),
142
142
  isOptional: false
143
143
  },
144
144
  description: {
145
- type: E5.String_unsecure(),
145
+ type: ScalarTypeEnum.String_unsecure(),
146
146
  isOptional: false
147
147
  },
148
148
  category: {
@@ -150,11 +150,11 @@ const CreateToolInputModel = K5({
150
150
  isOptional: true
151
151
  },
152
152
  parametersSchema: {
153
- type: E5.JSONObject(),
153
+ type: ScalarTypeEnum.JSONObject(),
154
154
  isOptional: false
155
155
  },
156
156
  outputSchema: {
157
- type: E5.JSONObject(),
157
+ type: ScalarTypeEnum.JSONObject(),
158
158
  isOptional: true
159
159
  },
160
160
  implementationType: {
@@ -162,19 +162,19 @@ const CreateToolInputModel = K5({
162
162
  isOptional: false
163
163
  },
164
164
  implementationConfig: {
165
- type: E5.JSONObject(),
165
+ type: ScalarTypeEnum.JSONObject(),
166
166
  isOptional: false
167
167
  },
168
168
  maxInvocationsPerMinute: {
169
- type: E5.Int_unsecure(),
169
+ type: ScalarTypeEnum.Int_unsecure(),
170
170
  isOptional: true
171
171
  },
172
172
  timeoutMs: {
173
- type: E5.Int_unsecure(),
173
+ type: ScalarTypeEnum.Int_unsecure(),
174
174
  isOptional: true
175
175
  },
176
176
  tags: {
177
- type: E5.String_unsecure(),
177
+ type: ScalarTypeEnum.String_unsecure(),
178
178
  isArray: true,
179
179
  isOptional: true
180
180
  }
@@ -183,20 +183,20 @@ const CreateToolInputModel = K5({
183
183
  /**
184
184
  * Input for updating a tool.
185
185
  */
186
- const UpdateToolInputModel = K5({
186
+ const UpdateToolInputModel = defineSchemaModel({
187
187
  name: "UpdateToolInput",
188
188
  description: "Input for updating a tool",
189
189
  fields: {
190
190
  toolId: {
191
- type: E5.String_unsecure(),
191
+ type: ScalarTypeEnum.String_unsecure(),
192
192
  isOptional: false
193
193
  },
194
194
  name: {
195
- type: E5.NonEmptyString(),
195
+ type: ScalarTypeEnum.NonEmptyString(),
196
196
  isOptional: true
197
197
  },
198
198
  description: {
199
- type: E5.String_unsecure(),
199
+ type: ScalarTypeEnum.String_unsecure(),
200
200
  isOptional: true
201
201
  },
202
202
  status: {
@@ -204,27 +204,27 @@ const UpdateToolInputModel = K5({
204
204
  isOptional: true
205
205
  },
206
206
  parametersSchema: {
207
- type: E5.JSONObject(),
207
+ type: ScalarTypeEnum.JSONObject(),
208
208
  isOptional: true
209
209
  },
210
210
  outputSchema: {
211
- type: E5.JSONObject(),
211
+ type: ScalarTypeEnum.JSONObject(),
212
212
  isOptional: true
213
213
  },
214
214
  implementationConfig: {
215
- type: E5.JSONObject(),
215
+ type: ScalarTypeEnum.JSONObject(),
216
216
  isOptional: true
217
217
  },
218
218
  maxInvocationsPerMinute: {
219
- type: E5.Int_unsecure(),
219
+ type: ScalarTypeEnum.Int_unsecure(),
220
220
  isOptional: true
221
221
  },
222
222
  timeoutMs: {
223
- type: E5.Int_unsecure(),
223
+ type: ScalarTypeEnum.Int_unsecure(),
224
224
  isOptional: true
225
225
  },
226
226
  tags: {
227
- type: E5.String_unsecure(),
227
+ type: ScalarTypeEnum.String_unsecure(),
228
228
  isArray: true,
229
229
  isOptional: true
230
230
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tool.schema.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/tool/tool.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport {\n ToolCategoryEnum,\n ToolStatusEnum,\n ImplementationTypeEnum,\n} from './tool.enum';\n\n/**\n * AI tool definition.\n */\nexport const ToolModel = defineSchemaModel({\n name: 'Tool',\n description: 'AI tool definition',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n category: { type: ToolCategoryEnum, isOptional: false },\n status: { type: ToolStatusEnum, isOptional: false },\n parametersSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: false },\n outputSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n implementationType: { type: ImplementationTypeEnum, isOptional: false },\n implementationConfig: {\n type: ScalarTypeEnum.JSONObject(),\n isOptional: false,\n },\n maxInvocationsPerMinute: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n },\n timeoutMs: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 30000,\n },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Summary of a tool for list views.\n */\nexport const ToolSummaryModel = defineSchemaModel({\n name: 'ToolSummary',\n description: 'Summary of a tool for list views',\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 description: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n category: { type: ToolCategoryEnum, isOptional: false },\n status: { type: ToolStatusEnum, isOptional: false },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Input for creating a tool.\n */\nexport const CreateToolInputModel = defineSchemaModel({\n name: 'CreateToolInput',\n description: 'Input for creating a tool',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n category: { type: ToolCategoryEnum, isOptional: true },\n parametersSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: false },\n outputSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n implementationType: { type: ImplementationTypeEnum, isOptional: false },\n implementationConfig: {\n type: ScalarTypeEnum.JSONObject(),\n isOptional: false,\n },\n maxInvocationsPerMinute: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n },\n});\n\n/**\n * Input for updating a tool.\n */\nexport const UpdateToolInputModel = defineSchemaModel({\n name: 'UpdateToolInput',\n description: 'Input for updating a tool',\n fields: {\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: true },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: ToolStatusEnum, isOptional: true },\n parametersSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n outputSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n implementationConfig: {\n type: ScalarTypeEnum.JSONObject(),\n isOptional: true,\n },\n maxInvocationsPerMinute: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n },\n});\n"],"mappings":";;;;;;;AAUA,MAAa,YAAYA,GAAkB;CACzC,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,gBAAgB;GACd,MAAMA,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,MAAM;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EAClE,MAAM;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,aAAa;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC1E,UAAU;GAAE,MAAM;GAAkB,YAAY;GAAO;EACvD,QAAQ;GAAE,MAAM;GAAgB,YAAY;GAAO;EACnD,kBAAkB;GAAE,MAAMA,GAAe,YAAY;GAAE,YAAY;GAAO;EAC1E,cAAc;GAAE,MAAMA,GAAe,YAAY;GAAE,Y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":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport {\n ToolCategoryEnum,\n ToolStatusEnum,\n ImplementationTypeEnum,\n} from './tool.enum';\n\n/**\n * AI tool definition.\n */\nexport const ToolModel = defineSchemaModel({\n name: 'Tool',\n description: 'AI tool definition',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n category: { type: ToolCategoryEnum, isOptional: false },\n status: { type: ToolStatusEnum, isOptional: false },\n parametersSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: false },\n outputSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n implementationType: { type: ImplementationTypeEnum, isOptional: false },\n implementationConfig: {\n type: ScalarTypeEnum.JSONObject(),\n isOptional: false,\n },\n maxInvocationsPerMinute: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n },\n timeoutMs: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 30000,\n },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Summary of a tool for list views.\n */\nexport const ToolSummaryModel = defineSchemaModel({\n name: 'ToolSummary',\n description: 'Summary of a tool for list views',\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 description: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n category: { type: ToolCategoryEnum, isOptional: false },\n status: { type: ToolStatusEnum, isOptional: false },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Input for creating a tool.\n */\nexport const CreateToolInputModel = defineSchemaModel({\n name: 'CreateToolInput',\n description: 'Input for creating a tool',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n category: { type: ToolCategoryEnum, isOptional: true },\n parametersSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: false },\n outputSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n implementationType: { type: ImplementationTypeEnum, isOptional: false },\n implementationConfig: {\n type: ScalarTypeEnum.JSONObject(),\n isOptional: false,\n },\n maxInvocationsPerMinute: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n },\n});\n\n/**\n * Input for updating a tool.\n */\nexport const UpdateToolInputModel = defineSchemaModel({\n name: 'UpdateToolInput',\n description: 'Input for updating a tool',\n fields: {\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: true },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: ToolStatusEnum, isOptional: true },\n parametersSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n outputSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n implementationConfig: {\n type: ScalarTypeEnum.JSONObject(),\n isOptional: true,\n },\n maxInvocationsPerMinute: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n },\n});\n"],"mappings":";;;;;;;AAUA,MAAa,YAAY,kBAAkB;CACzC,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,gBAAgB;GACd,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,MAAM;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAO;EAClE,MAAM;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC1E,UAAU;GAAE,MAAM;GAAkB,YAAY;GAAO;EACvD,QAAQ;GAAE,MAAM;GAAgB,YAAY;GAAO;EACnD,kBAAkB;GAAE,MAAM,eAAe,YAAY;GAAE,YAAY;GAAO;EAC1E,cAAc;GAAE,MAAM,eAAe,YAAY;GAAE,YAAY;GAAM;EACrE,oBAAoB;GAAE,MAAM;GAAwB,YAAY;GAAO;EACvE,sBAAsB;GACpB,MAAM,eAAe,YAAY;GACjC,YAAY;GACb;EACD,yBAAyB;GACvB,MAAM,eAAe,cAAc;GACnC,YAAY;GACb;EACD,WAAW;GACT,MAAM,eAAe,cAAc;GACnC,YAAY;GACZ,cAAc;GACf;EACD,SAAS;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAO;EACrE,MAAM;GACJ,MAAM,eAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACD,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EACjE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;;;;AAKF,MAAa,mBAAmB,kBAAkB;CAChD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAA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EACN,QAAQ;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,MAAM;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAM;EACjE,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,QAAQ;GAAE,MAAM;GAAgB,YAAY;GAAM;EAClD,kBAAkB;GAAE,MAAM,eAAe,YAAY;GAAE,YAAY;GAAM;EACzE,cAAc;GAAE,MAAM,eAAe,YAAY;GAAE,YAAY;GAAM;EACrE,sBAAsB;GACpB,MAAM,eAAe,YAAY;GACjC,YAAY;GACb;EACD,yBAAyB;GACvB,MAAM,eAAe,cAAc;GACnC,YAAY;GACb;EACD,WAAW;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EACpE,MAAM;GACJ,MAAM,eAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACF;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/example.agent-console",
3
- "version": "0.0.0-canary-20251222120211",
3
+ "version": "0.0.0-canary-20251223010757",
4
4
  "description": "Agent Console example - AI agent orchestration with tools, runs, and logs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -46,7 +46,7 @@
46
46
  "scripts": {
47
47
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
48
48
  "publish:pkg:canary": "bun publish:pkg --tag canary",
49
- "build": "bun build:bundle && bun build:types",
49
+ "build": "bun build:types && bun build:bundle",
50
50
  "build:bundle": "tsdown",
51
51
  "build:types": "tsc --noEmit",
52
52
  "dev": "bun build:bundle --watch",
@@ -57,16 +57,16 @@
57
57
  "test": "bun run"
58
58
  },
59
59
  "dependencies": {
60
- "@lssm/lib.schema": "0.0.0-canary-20251222120211",
61
- "@lssm/lib.contracts": "0.0.0-canary-20251222120211",
62
- "@lssm/lib.identity-rbac": "0.0.0-canary-20251222120211",
63
- "@lssm/module.audit-trail": "0.0.0-canary-20251222120211",
64
- "@lssm/lib.jobs": "0.0.0-canary-20251222120211",
60
+ "@lssm/lib.schema": "0.0.0-canary-20251223010757",
61
+ "@lssm/lib.contracts": "0.0.0-canary-20251223010757",
62
+ "@lssm/lib.identity-rbac": "0.0.0-canary-20251223010757",
63
+ "@lssm/module.audit-trail": "0.0.0-canary-20251223010757",
64
+ "@lssm/lib.jobs": "0.0.0-canary-20251223010757",
65
65
  "zod": "^4.1.13"
66
66
  },
67
67
  "devDependencies": {
68
- "@lssm/tool.tsdown": "0.0.0-canary-20251222120211",
69
- "@lssm/tool.typescript": "0.0.0-canary-20251222120211",
68
+ "@lssm/tool.tsdown": "0.0.0-canary-20251223010757",
69
+ "@lssm/tool.typescript": "0.0.0-canary-20251223010757",
70
70
  "tsdown": "^0.18.1",
71
71
  "typescript": "^5.9.3"
72
72
  },