@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,32 +1,32 @@
1
- import { E5, K5 } from "../libs/schema/dist/index.js";
2
1
  import { AgentStatusEnum, ModelProviderEnum, ToolChoiceEnum } from "./agent.enum.js";
2
+ import { ScalarTypeEnum, defineSchemaModel } from "@lssm/lib.schema";
3
3
 
4
4
  //#region src/agent/agent.schema.ts
5
5
  /**
6
6
  * AI agent configuration schema.
7
7
  */
8
- const AgentModel = K5({
8
+ const AgentModel = defineSchemaModel({
9
9
  name: "Agent",
10
10
  description: "AI agent configuration",
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: true
31
31
  },
32
32
  status: {
@@ -38,23 +38,23 @@ const AgentModel = K5({
38
38
  isOptional: false
39
39
  },
40
40
  modelName: {
41
- type: E5.NonEmptyString(),
41
+ type: ScalarTypeEnum.NonEmptyString(),
42
42
  isOptional: false
43
43
  },
44
44
  modelConfig: {
45
- type: E5.JSONObject(),
45
+ type: ScalarTypeEnum.JSONObject(),
46
46
  isOptional: true
47
47
  },
48
48
  systemPrompt: {
49
- type: E5.String_unsecure(),
49
+ type: ScalarTypeEnum.String_unsecure(),
50
50
  isOptional: false
51
51
  },
52
52
  userPromptTemplate: {
53
- type: E5.String_unsecure(),
53
+ type: ScalarTypeEnum.String_unsecure(),
54
54
  isOptional: true
55
55
  },
56
56
  toolIds: {
57
- type: E5.String_unsecure(),
57
+ type: ScalarTypeEnum.String_unsecure(),
58
58
  isArray: true,
59
59
  isOptional: true
60
60
  },
@@ -64,34 +64,34 @@ const AgentModel = K5({
64
64
  defaultValue: "auto"
65
65
  },
66
66
  maxIterations: {
67
- type: E5.Int_unsecure(),
67
+ type: ScalarTypeEnum.Int_unsecure(),
68
68
  isOptional: false,
69
69
  defaultValue: 10
70
70
  },
71
71
  maxTokensPerRun: {
72
- type: E5.Int_unsecure(),
72
+ type: ScalarTypeEnum.Int_unsecure(),
73
73
  isOptional: true
74
74
  },
75
75
  timeoutMs: {
76
- type: E5.Int_unsecure(),
76
+ type: ScalarTypeEnum.Int_unsecure(),
77
77
  isOptional: false,
78
78
  defaultValue: 12e4
79
79
  },
80
80
  version: {
81
- type: E5.NonEmptyString(),
81
+ type: ScalarTypeEnum.NonEmptyString(),
82
82
  isOptional: false
83
83
  },
84
84
  tags: {
85
- type: E5.String_unsecure(),
85
+ type: ScalarTypeEnum.String_unsecure(),
86
86
  isArray: true,
87
87
  isOptional: true
88
88
  },
89
89
  createdAt: {
90
- type: E5.DateTime(),
90
+ type: ScalarTypeEnum.DateTime(),
91
91
  isOptional: false
92
92
  },
93
93
  updatedAt: {
94
- type: E5.DateTime(),
94
+ type: ScalarTypeEnum.DateTime(),
95
95
  isOptional: false
96
96
  }
97
97
  }
@@ -99,24 +99,24 @@ const AgentModel = K5({
99
99
  /**
100
100
  * Summary of an agent for list views.
101
101
  */
102
- const AgentSummaryModel = K5({
102
+ const AgentSummaryModel = defineSchemaModel({
103
103
  name: "AgentSummary",
104
104
  description: "Summary of an agent for list views",
105
105
  fields: {
106
106
  id: {
107
- type: E5.String_unsecure(),
107
+ type: ScalarTypeEnum.String_unsecure(),
108
108
  isOptional: false
109
109
  },
110
110
  name: {
111
- type: E5.NonEmptyString(),
111
+ type: ScalarTypeEnum.NonEmptyString(),
112
112
  isOptional: false
113
113
  },
114
114
  slug: {
115
- type: E5.String_unsecure(),
115
+ type: ScalarTypeEnum.String_unsecure(),
116
116
  isOptional: false
117
117
  },
118
118
  description: {
119
- type: E5.String_unsecure(),
119
+ type: ScalarTypeEnum.String_unsecure(),
120
120
  isOptional: true
121
121
  },
122
122
  status: {
@@ -128,15 +128,15 @@ const AgentSummaryModel = K5({
128
128
  isOptional: false
129
129
  },
130
130
  modelName: {
131
- type: E5.NonEmptyString(),
131
+ type: ScalarTypeEnum.NonEmptyString(),
132
132
  isOptional: false
133
133
  },
134
134
  version: {
135
- type: E5.NonEmptyString(),
135
+ type: ScalarTypeEnum.NonEmptyString(),
136
136
  isOptional: false
137
137
  },
138
138
  createdAt: {
139
- type: E5.DateTime(),
139
+ type: ScalarTypeEnum.DateTime(),
140
140
  isOptional: false
141
141
  }
142
142
  }
@@ -144,28 +144,28 @@ const AgentSummaryModel = K5({
144
144
  /**
145
145
  * Tool reference in agent context.
146
146
  */
147
- const AgentToolRefModel = K5({
147
+ const AgentToolRefModel = defineSchemaModel({
148
148
  name: "AgentToolRef",
149
149
  description: "Tool reference in agent context",
150
150
  fields: {
151
151
  id: {
152
- type: E5.String_unsecure(),
152
+ type: ScalarTypeEnum.String_unsecure(),
153
153
  isOptional: false
154
154
  },
155
155
  name: {
156
- type: E5.NonEmptyString(),
156
+ type: ScalarTypeEnum.NonEmptyString(),
157
157
  isOptional: false
158
158
  },
159
159
  slug: {
160
- type: E5.String_unsecure(),
160
+ type: ScalarTypeEnum.String_unsecure(),
161
161
  isOptional: false
162
162
  },
163
163
  description: {
164
- type: E5.String_unsecure(),
164
+ type: ScalarTypeEnum.String_unsecure(),
165
165
  isOptional: false
166
166
  },
167
167
  category: {
168
- type: E5.String_unsecure(),
168
+ type: ScalarTypeEnum.String_unsecure(),
169
169
  isOptional: false
170
170
  }
171
171
  }
@@ -173,28 +173,28 @@ const AgentToolRefModel = K5({
173
173
  /**
174
174
  * Agent with associated tools.
175
175
  */
176
- const AgentWithToolsModel = K5({
176
+ const AgentWithToolsModel = defineSchemaModel({
177
177
  name: "AgentWithTools",
178
178
  description: "Agent with associated tools",
179
179
  fields: {
180
180
  id: {
181
- type: E5.String_unsecure(),
181
+ type: ScalarTypeEnum.String_unsecure(),
182
182
  isOptional: false
183
183
  },
184
184
  organizationId: {
185
- type: E5.String_unsecure(),
185
+ type: ScalarTypeEnum.String_unsecure(),
186
186
  isOptional: false
187
187
  },
188
188
  name: {
189
- type: E5.NonEmptyString(),
189
+ type: ScalarTypeEnum.NonEmptyString(),
190
190
  isOptional: false
191
191
  },
192
192
  slug: {
193
- type: E5.String_unsecure(),
193
+ type: ScalarTypeEnum.String_unsecure(),
194
194
  isOptional: false
195
195
  },
196
196
  description: {
197
- type: E5.String_unsecure(),
197
+ type: ScalarTypeEnum.String_unsecure(),
198
198
  isOptional: true
199
199
  },
200
200
  status: {
@@ -206,23 +206,23 @@ const AgentWithToolsModel = K5({
206
206
  isOptional: false
207
207
  },
208
208
  modelName: {
209
- type: E5.NonEmptyString(),
209
+ type: ScalarTypeEnum.NonEmptyString(),
210
210
  isOptional: false
211
211
  },
212
212
  modelConfig: {
213
- type: E5.JSONObject(),
213
+ type: ScalarTypeEnum.JSONObject(),
214
214
  isOptional: true
215
215
  },
216
216
  systemPrompt: {
217
- type: E5.String_unsecure(),
217
+ type: ScalarTypeEnum.String_unsecure(),
218
218
  isOptional: false
219
219
  },
220
220
  userPromptTemplate: {
221
- type: E5.String_unsecure(),
221
+ type: ScalarTypeEnum.String_unsecure(),
222
222
  isOptional: true
223
223
  },
224
224
  toolIds: {
225
- type: E5.String_unsecure(),
225
+ type: ScalarTypeEnum.String_unsecure(),
226
226
  isArray: true,
227
227
  isOptional: true
228
228
  },
@@ -231,32 +231,32 @@ const AgentWithToolsModel = K5({
231
231
  isOptional: false
232
232
  },
233
233
  maxIterations: {
234
- type: E5.Int_unsecure(),
234
+ type: ScalarTypeEnum.Int_unsecure(),
235
235
  isOptional: false
236
236
  },
237
237
  maxTokensPerRun: {
238
- type: E5.Int_unsecure(),
238
+ type: ScalarTypeEnum.Int_unsecure(),
239
239
  isOptional: true
240
240
  },
241
241
  timeoutMs: {
242
- type: E5.Int_unsecure(),
242
+ type: ScalarTypeEnum.Int_unsecure(),
243
243
  isOptional: false
244
244
  },
245
245
  version: {
246
- type: E5.NonEmptyString(),
246
+ type: ScalarTypeEnum.NonEmptyString(),
247
247
  isOptional: false
248
248
  },
249
249
  tags: {
250
- type: E5.String_unsecure(),
250
+ type: ScalarTypeEnum.String_unsecure(),
251
251
  isArray: true,
252
252
  isOptional: true
253
253
  },
254
254
  createdAt: {
255
- type: E5.DateTime(),
255
+ type: ScalarTypeEnum.DateTime(),
256
256
  isOptional: false
257
257
  },
258
258
  updatedAt: {
259
- type: E5.DateTime(),
259
+ type: ScalarTypeEnum.DateTime(),
260
260
  isOptional: false
261
261
  },
262
262
  tools: {
@@ -269,24 +269,24 @@ const AgentWithToolsModel = K5({
269
269
  /**
270
270
  * Input for creating an agent.
271
271
  */
272
- const CreateAgentInputModel = K5({
272
+ const CreateAgentInputModel = defineSchemaModel({
273
273
  name: "CreateAgentInput",
274
274
  description: "Input for creating an agent",
275
275
  fields: {
276
276
  organizationId: {
277
- type: E5.String_unsecure(),
277
+ type: ScalarTypeEnum.String_unsecure(),
278
278
  isOptional: false
279
279
  },
280
280
  name: {
281
- type: E5.NonEmptyString(),
281
+ type: ScalarTypeEnum.NonEmptyString(),
282
282
  isOptional: false
283
283
  },
284
284
  slug: {
285
- type: E5.String_unsecure(),
285
+ type: ScalarTypeEnum.String_unsecure(),
286
286
  isOptional: false
287
287
  },
288
288
  description: {
289
- type: E5.String_unsecure(),
289
+ type: ScalarTypeEnum.String_unsecure(),
290
290
  isOptional: true
291
291
  },
292
292
  modelProvider: {
@@ -294,23 +294,23 @@ const CreateAgentInputModel = K5({
294
294
  isOptional: false
295
295
  },
296
296
  modelName: {
297
- type: E5.NonEmptyString(),
297
+ type: ScalarTypeEnum.NonEmptyString(),
298
298
  isOptional: false
299
299
  },
300
300
  modelConfig: {
301
- type: E5.JSONObject(),
301
+ type: ScalarTypeEnum.JSONObject(),
302
302
  isOptional: true
303
303
  },
304
304
  systemPrompt: {
305
- type: E5.String_unsecure(),
305
+ type: ScalarTypeEnum.String_unsecure(),
306
306
  isOptional: false
307
307
  },
308
308
  userPromptTemplate: {
309
- type: E5.String_unsecure(),
309
+ type: ScalarTypeEnum.String_unsecure(),
310
310
  isOptional: true
311
311
  },
312
312
  toolIds: {
313
- type: E5.String_unsecure(),
313
+ type: ScalarTypeEnum.String_unsecure(),
314
314
  isArray: true,
315
315
  isOptional: true
316
316
  },
@@ -319,19 +319,19 @@ const CreateAgentInputModel = K5({
319
319
  isOptional: true
320
320
  },
321
321
  maxIterations: {
322
- type: E5.Int_unsecure(),
322
+ type: ScalarTypeEnum.Int_unsecure(),
323
323
  isOptional: true
324
324
  },
325
325
  maxTokensPerRun: {
326
- type: E5.Int_unsecure(),
326
+ type: ScalarTypeEnum.Int_unsecure(),
327
327
  isOptional: true
328
328
  },
329
329
  timeoutMs: {
330
- type: E5.Int_unsecure(),
330
+ type: ScalarTypeEnum.Int_unsecure(),
331
331
  isOptional: true
332
332
  },
333
333
  tags: {
334
- type: E5.String_unsecure(),
334
+ type: ScalarTypeEnum.String_unsecure(),
335
335
  isArray: true,
336
336
  isOptional: true
337
337
  }
@@ -340,20 +340,20 @@ const CreateAgentInputModel = K5({
340
340
  /**
341
341
  * Input for updating an agent.
342
342
  */
343
- const UpdateAgentInputModel = K5({
343
+ const UpdateAgentInputModel = defineSchemaModel({
344
344
  name: "UpdateAgentInput",
345
345
  description: "Input for updating an agent",
346
346
  fields: {
347
347
  agentId: {
348
- type: E5.String_unsecure(),
348
+ type: ScalarTypeEnum.String_unsecure(),
349
349
  isOptional: false
350
350
  },
351
351
  name: {
352
- type: E5.NonEmptyString(),
352
+ type: ScalarTypeEnum.NonEmptyString(),
353
353
  isOptional: true
354
354
  },
355
355
  description: {
356
- type: E5.String_unsecure(),
356
+ type: ScalarTypeEnum.String_unsecure(),
357
357
  isOptional: true
358
358
  },
359
359
  status: {
@@ -361,19 +361,19 @@ const UpdateAgentInputModel = K5({
361
361
  isOptional: true
362
362
  },
363
363
  modelConfig: {
364
- type: E5.JSONObject(),
364
+ type: ScalarTypeEnum.JSONObject(),
365
365
  isOptional: true
366
366
  },
367
367
  systemPrompt: {
368
- type: E5.String_unsecure(),
368
+ type: ScalarTypeEnum.String_unsecure(),
369
369
  isOptional: true
370
370
  },
371
371
  userPromptTemplate: {
372
- type: E5.String_unsecure(),
372
+ type: ScalarTypeEnum.String_unsecure(),
373
373
  isOptional: true
374
374
  },
375
375
  toolIds: {
376
- type: E5.String_unsecure(),
376
+ type: ScalarTypeEnum.String_unsecure(),
377
377
  isArray: true,
378
378
  isOptional: true
379
379
  },
@@ -382,19 +382,19 @@ const UpdateAgentInputModel = K5({
382
382
  isOptional: true
383
383
  },
384
384
  maxIterations: {
385
- type: E5.Int_unsecure(),
385
+ type: ScalarTypeEnum.Int_unsecure(),
386
386
  isOptional: true
387
387
  },
388
388
  maxTokensPerRun: {
389
- type: E5.Int_unsecure(),
389
+ type: ScalarTypeEnum.Int_unsecure(),
390
390
  isOptional: true
391
391
  },
392
392
  timeoutMs: {
393
- type: E5.Int_unsecure(),
393
+ type: ScalarTypeEnum.Int_unsecure(),
394
394
  isOptional: true
395
395
  },
396
396
  tags: {
397
- type: E5.String_unsecure(),
397
+ type: ScalarTypeEnum.String_unsecure(),
398
398
  isArray: true,
399
399
  isOptional: true
400
400
  }
@@ -1 +1 @@
1
- {"version":3,"file":"agent.schema.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/agent/agent.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport {\n AgentStatusEnum,\n ModelProviderEnum,\n ToolChoiceEnum,\n} from './agent.enum';\n\n/**\n * AI agent configuration schema.\n */\nexport const AgentModel = defineSchemaModel({\n name: 'Agent',\n description: 'AI agent configuration',\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: true },\n status: { type: AgentStatusEnum, isOptional: false },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: {\n type: ToolChoiceEnum,\n isOptional: false,\n defaultValue: 'auto',\n },\n maxIterations: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 10,\n },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 120000,\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 an agent for list views.\n */\nexport const AgentSummaryModel = defineSchemaModel({\n name: 'AgentSummary',\n description: 'Summary of an agent 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: true },\n status: { type: AgentStatusEnum, isOptional: false },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Tool reference in agent context.\n */\nexport const AgentToolRefModel = defineSchemaModel({\n name: 'AgentToolRef',\n description: 'Tool reference in agent context',\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: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\n/**\n * Agent with associated tools.\n */\nexport const AgentWithToolsModel = defineSchemaModel({\n name: 'AgentWithTools',\n description: 'Agent with associated tools',\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: true },\n status: { type: AgentStatusEnum, isOptional: false },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: { type: ToolChoiceEnum, isOptional: false },\n maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\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 tools: { type: AgentToolRefModel, isArray: true, isOptional: true },\n },\n});\n\n/**\n * Input for creating an agent.\n */\nexport const CreateAgentInputModel = defineSchemaModel({\n name: 'CreateAgentInput',\n description: 'Input for creating an agent',\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: true },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: { type: ToolChoiceEnum, isOptional: true },\n maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\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 an agent.\n */\nexport const UpdateAgentInputModel = defineSchemaModel({\n name: 'UpdateAgentInput',\n description: 'Input for updating an agent',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: true },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: AgentStatusEnum, isOptional: true },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: { type: ToolChoiceEnum, isOptional: true },\n maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\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,aAAaA,GAAkB;CAC1C,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;GAAM;EACzE,QAAQ;GAAE,MAAM;GAAiB,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MAAM;GAAgB,YAAY;GAAM;EACtD,eAAe;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAM;EACxE,iBAAiB;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAM;EAC1E,WAAW;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAM;EACpE,MAAM;GACJ,MAAMA,GAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACF;CACF,CAAC;;;;AAKF,MAAa,wBAAwBD,GAAkB;CACrD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,SAAS;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,MAAM;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAM;EACjE,aAAa;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,QAAQ;GAAE,MAAM;GAAiB,YAAY;GAAM;EACnD,aAAa;GAAE,MAAMA,GAAe,YAAY;GAAE,YAAY;GAAM;EACpE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EAC1E,oBAAoB;GAClB,MAAMA,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,SAAS;GACP,MAAMA,GAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACD,YAAY;GAAE,MAAM;GAAgB,YAAY;GAAM;EACtD,eAAe;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAM;EACxE,iBAAiB;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAM;EAC1E,WAAW;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAM;EACpE,MAAM;GACJ,MAAMA,GAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACF;CACF,CAAC"}
1
+ {"version":3,"file":"agent.schema.js","names":[],"sources":["../../src/agent/agent.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport {\n AgentStatusEnum,\n ModelProviderEnum,\n ToolChoiceEnum,\n} from './agent.enum';\n\n/**\n * AI agent configuration schema.\n */\nexport const AgentModel = defineSchemaModel({\n name: 'Agent',\n description: 'AI agent configuration',\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: true },\n status: { type: AgentStatusEnum, isOptional: false },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: {\n type: ToolChoiceEnum,\n isOptional: false,\n defaultValue: 'auto',\n },\n maxIterations: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 10,\n },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 120000,\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 an agent for list views.\n */\nexport const AgentSummaryModel = defineSchemaModel({\n name: 'AgentSummary',\n description: 'Summary of an agent 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: true },\n status: { type: AgentStatusEnum, isOptional: false },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Tool reference in agent context.\n */\nexport const AgentToolRefModel = defineSchemaModel({\n name: 'AgentToolRef',\n description: 'Tool reference in agent context',\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: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\n/**\n * Agent with associated tools.\n */\nexport const AgentWithToolsModel = defineSchemaModel({\n name: 'AgentWithTools',\n description: 'Agent with associated tools',\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: true },\n status: { type: AgentStatusEnum, isOptional: false },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: { type: ToolChoiceEnum, isOptional: false },\n maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\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 tools: { type: AgentToolRefModel, isArray: true, isOptional: true },\n },\n});\n\n/**\n * Input for creating an agent.\n */\nexport const CreateAgentInputModel = defineSchemaModel({\n name: 'CreateAgentInput',\n description: 'Input for creating an agent',\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: true },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: { type: ToolChoiceEnum, isOptional: true },\n maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\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 an agent.\n */\nexport const UpdateAgentInputModel = defineSchemaModel({\n name: 'UpdateAgentInput',\n description: 'Input for updating an agent',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: true },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: AgentStatusEnum, isOptional: true },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: { type: ToolChoiceEnum, isOptional: true },\n maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\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,aAAa,kBAAkB;CAC1C,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;GAAM;EACzE,QAAQ;GAAE,MAAM;GAAiB,YAAY;GAAO;EACpD,eAAe;GAAE,MAAM;GAAmB,YAAY;GAAO;EAC7D,WAAW;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAO;EACvE,aAAa;GAAE,MAAM,eAAe,YAAY;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MAAM,eAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACF;CACF,CAAC;;;;AAKF,MAAa,wBAAwB,kBAAkB;CACrD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,MAAM;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAM;EACjE,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,QAAQ;GAAE,MAAM;GAAiB,YAAY;GAAM;EACnD,aAAa;GAAE,MAAM,eAAe,YAAY;GAAE,YAAY;GAAM;EACpE,cAAc;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EAC1E,oBAAoB;GAClB,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,SAAS;GACP,MAAM,eAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACD,YAAY;GAAE,MAAM;GAAgB,YAAY;GAAM;EACtD,eAAe;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EACxE,iBAAiB;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EAC1E,WAAW;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EACpE,MAAM;GACJ,MAAM,eAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACF;CACF,CAAC"}
@@ -1,5 +1,4 @@
1
- import { registerDocBlocks } from "../libs/contracts/dist/docs/registry.js";
2
- import "../libs/contracts/dist/docs/index.js";
1
+ import { registerDocBlocks } from "@lssm/lib.contracts/docs";
3
2
 
4
3
  //#region src/docs/agent-console.docblock.ts
5
4
  registerDocBlocks([
@@ -1 +1 @@
1
- {"version":3,"file":"agent-console.docblock.js","names":[],"sources":["../../src/docs/agent-console.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@lssm/lib.contracts/docs';\nimport { registerDocBlocks } from '@lssm/lib.contracts/docs';\n\nconst agentConsoleDocBlocks: DocBlock[] = [\n {\n id: 'docs.examples.agent-console.goal',\n title: 'Agent Console — Goal',\n summary: 'AI agent ops console: tools, agents, runs, logs, and metrics.',\n kind: 'goal',\n visibility: 'public',\n route: '/docs/examples/agent-console/goal',\n tags: ['ai', 'agents', 'goal'],\n body: `## Why it matters\n- Provides a regenerable agent operations surface with tool registry and run history.\n- Prevents drift between tool schemas, agent configs, and execution logs.\n\n## Business/Product goal\n- Safely manage tools/agents/runs with auditability and observability.\n- Enable staged rollout of tools and metrics via feature flags.\n\n## Success criteria\n- Tool/agent/run specs regenerate UI/API/events cleanly.\n- Logs/metrics stay aligned and PII is scoped.`,\n },\n {\n id: 'docs.examples.agent-console.usage',\n title: 'Agent Console — Usage',\n summary: 'How to operate, extend, and regenerate the agent console safely.',\n kind: 'usage',\n visibility: 'public',\n route: '/docs/examples/agent-console/usage',\n tags: ['ai', 'agents', 'usage'],\n body: `## Setup\n1) Seed (if available) or create tools and agents; define run configs.\n2) Configure Notifications for run completion/failure; Audit for changes.\n\n## Extend & regenerate\n1) Adjust tool schemas (inputs/outputs), agent configs, run metrics in spec.\n2) Regenerate to sync UI/API/events/logs; mark PII paths for run payloads.\n3) Use Feature Flags to gate risky tools or execution policies.\n\n## Guardrails\n- Emit events for run lifecycle; store logs with redaction where needed.\n- Enforce tool input validation; avoid unsafe arbitrary code exec in handlers.\n- Keep tenant/user scoping explicit for ops data.`,\n },\n {\n id: 'docs.examples.agent-console.reference',\n title: 'Agent Console — Reference',\n summary:\n 'Entities, contracts, events, and presentations for the agent console.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/examples/agent-console',\n tags: ['ai', 'agents', 'reference'],\n body: `## Entities\n- Tool, Agent, AgentTool, Run, RunStep, RunLog, RunMetric.\n\n## Contracts\n- tool/create, agent/create, agent/execute, run/get, run/logs, run/metrics.\n\n## Events\n- tool.created, agent.created, run.started/completed/failed, tool.invoked.\n\n## Presentations\n- Tool registry, agent list/detail, run list/detail, metrics dashboards.\n\n## Notes\n- Keep tool schemas explicit; enforce validation in spec.\n- Use Audit Trail for agent/run changes; Notifications for run outcomes.`,\n },\n {\n id: 'docs.examples.agent-console.constraints',\n title: 'Agent Console — Constraints & Safety',\n summary:\n 'Internal guardrails for tool/agent/run safety, PII, and regeneration.',\n kind: 'reference',\n visibility: 'internal',\n route: '/docs/examples/agent-console/constraints',\n tags: ['ai', 'agents', 'constraints', 'internal'],\n body: `## Constraints\n- Tool schemas (inputs/outputs) must be explicit in spec; no arbitrary untyped payloads.\n- Events to emit: tool.created, agent.created, run.started/completed/failed, tool.invoked.\n- Regeneration must not loosen execution policies or logging without explicit spec diff.\n\n## Safety & PII\n- Mark PII in run payloads/logs; redact in markdown/JSON targets.\n- Avoid exposing raw tool outputs to MCP/web without policy checks.\n\n## Verification\n- Add fixtures for tool schema changes and run lifecycle.\n- Ensure Audit/Notifications remain wired for runs; metrics collection unchanged.\n- Use Feature Flags to gate risky tools; default safe/off.`,\n },\n];\n\nregisterDocBlocks(agentConsoleDocBlocks);\n"],"mappings":";;;;AAgGA,kBA7F0C;CACxC;EACE,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAO;EAC9B,MAAM;;;;;;;;;;;EAWP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAQ;EAC/B,MAAM;;;;;;;;;;;;;EAaP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SACE;EACF,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAY;EACnC,MAAM;;;;;;;;;;;;;;;EAeP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SACE;EACF,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAe;GAAW;EACjD,MAAM;;;;;;;;;;;;;EAaP;CACF,CAEuC"}
1
+ {"version":3,"file":"agent-console.docblock.js","names":[],"sources":["../../src/docs/agent-console.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@lssm/lib.contracts/docs';\nimport { registerDocBlocks } from '@lssm/lib.contracts/docs';\n\nconst agentConsoleDocBlocks: DocBlock[] = [\n {\n id: 'docs.examples.agent-console.goal',\n title: 'Agent Console — Goal',\n summary: 'AI agent ops console: tools, agents, runs, logs, and metrics.',\n kind: 'goal',\n visibility: 'public',\n route: '/docs/examples/agent-console/goal',\n tags: ['ai', 'agents', 'goal'],\n body: `## Why it matters\n- Provides a regenerable agent operations surface with tool registry and run history.\n- Prevents drift between tool schemas, agent configs, and execution logs.\n\n## Business/Product goal\n- Safely manage tools/agents/runs with auditability and observability.\n- Enable staged rollout of tools and metrics via feature flags.\n\n## Success criteria\n- Tool/agent/run specs regenerate UI/API/events cleanly.\n- Logs/metrics stay aligned and PII is scoped.`,\n },\n {\n id: 'docs.examples.agent-console.usage',\n title: 'Agent Console — Usage',\n summary: 'How to operate, extend, and regenerate the agent console safely.',\n kind: 'usage',\n visibility: 'public',\n route: '/docs/examples/agent-console/usage',\n tags: ['ai', 'agents', 'usage'],\n body: `## Setup\n1) Seed (if available) or create tools and agents; define run configs.\n2) Configure Notifications for run completion/failure; Audit for changes.\n\n## Extend & regenerate\n1) Adjust tool schemas (inputs/outputs), agent configs, run metrics in spec.\n2) Regenerate to sync UI/API/events/logs; mark PII paths for run payloads.\n3) Use Feature Flags to gate risky tools or execution policies.\n\n## Guardrails\n- Emit events for run lifecycle; store logs with redaction where needed.\n- Enforce tool input validation; avoid unsafe arbitrary code exec in handlers.\n- Keep tenant/user scoping explicit for ops data.`,\n },\n {\n id: 'docs.examples.agent-console.reference',\n title: 'Agent Console — Reference',\n summary:\n 'Entities, contracts, events, and presentations for the agent console.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/examples/agent-console',\n tags: ['ai', 'agents', 'reference'],\n body: `## Entities\n- Tool, Agent, AgentTool, Run, RunStep, RunLog, RunMetric.\n\n## Contracts\n- tool/create, agent/create, agent/execute, run/get, run/logs, run/metrics.\n\n## Events\n- tool.created, agent.created, run.started/completed/failed, tool.invoked.\n\n## Presentations\n- Tool registry, agent list/detail, run list/detail, metrics dashboards.\n\n## Notes\n- Keep tool schemas explicit; enforce validation in spec.\n- Use Audit Trail for agent/run changes; Notifications for run outcomes.`,\n },\n {\n id: 'docs.examples.agent-console.constraints',\n title: 'Agent Console — Constraints & Safety',\n summary:\n 'Internal guardrails for tool/agent/run safety, PII, and regeneration.',\n kind: 'reference',\n visibility: 'internal',\n route: '/docs/examples/agent-console/constraints',\n tags: ['ai', 'agents', 'constraints', 'internal'],\n body: `## Constraints\n- Tool schemas (inputs/outputs) must be explicit in spec; no arbitrary untyped payloads.\n- Events to emit: tool.created, agent.created, run.started/completed/failed, tool.invoked.\n- Regeneration must not loosen execution policies or logging without explicit spec diff.\n\n## Safety & PII\n- Mark PII in run payloads/logs; redact in markdown/JSON targets.\n- Avoid exposing raw tool outputs to MCP/web without policy checks.\n\n## Verification\n- Add fixtures for tool schema changes and run lifecycle.\n- Ensure Audit/Notifications remain wired for runs; metrics collection unchanged.\n- Use Feature Flags to gate risky tools; default safe/off.`,\n },\n];\n\nregisterDocBlocks(agentConsoleDocBlocks);\n"],"mappings":";;;AAgGA,kBA7F0C;CACxC;EACE,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAO;EAC9B,MAAM;;;;;;;;;;;EAWP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAQ;EAC/B,MAAM;;;;;;;;;;;;;EAaP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SACE;EACF,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAY;EACnC,MAAM;;;;;;;;;;;;;;;EAeP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SACE;EACF,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAM;GAAU;GAAe;GAAW;EACjD,MAAM;;;;;;;;;;;;;EAaP;CACF,CAEuC"}
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ import { AgentSummary, AgentToolRef, AgentWithTools, GetAgentInput, ListAgentsIn
6
6
  import { AssignToolToAgentCommand, CreateAgentCommand, GetAgentQuery, ListAgentsQuery, RemoveToolFromAgentCommand, UpdateAgentCommand } from "./agent/agent.operation.js";
7
7
  import { AgentConsoleDashboardPresentation, AgentDetailPresentation, AgentListPresentation } from "./agent/agent.presentation.js";
8
8
  import { AgentModel, AgentSummaryModel, AgentToolRefModel, AgentWithToolsModel, CreateAgentInputModel, UpdateAgentInputModel } from "./agent/agent.schema.js";
9
+ import "./agent/index.js";
9
10
  import example from "./example.js";
10
11
  import { ListRunsInput, ListRunsOutput, RunSummary, mockCancelRunHandler, mockExecuteAgentHandler, mockGetRunHandler, mockListRunsHandler } from "./run/run.handler.js";
11
12
  import { ListToolsInput, ListToolsOutput, ToolSummary, mockCreateToolHandler, mockGetToolHandler, mockListToolsHandler, mockTestToolHandler, mockUpdateToolHandler } from "./tool/tool.handler.js";
@@ -15,12 +16,14 @@ import { CancelRunCommand, ExecuteAgentCommand, GetRunLogsQuery, GetRunMetricsQu
15
16
  import { MessageGeneratedEvent, RunCancelledEvent, RunCompletedEvent, RunFailedEvent, RunStartedEvent, ToolCompletedEvent, ToolInvokedEvent } from "./run/run.event.js";
16
17
  import { LogLevelEntityEnum, RunEntity, RunLogEntity, RunStatusEntityEnum, RunStepEntity, RunStepTypeEntityEnum } from "./run/run.entity.js";
17
18
  import { RunDetailPresentation, RunListPresentation } from "./run/run.presentation.js";
19
+ import "./run/index.js";
18
20
  import { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum } from "./tool/tool.enum.js";
19
21
  import { CreateToolInputModel, ToolModel, ToolSummaryModel, UpdateToolInputModel } from "./tool/tool.schema.js";
20
22
  import { CreateToolCommand, GetToolQuery, ListToolsQuery, TestToolCommand, UpdateToolCommand } from "./tool/tool.operation.js";
21
23
  import { ToolCreatedEvent, ToolStatusChangedEvent, ToolUpdatedEvent } from "./tool/tool.event.js";
22
24
  import { ImplementationTypeEntityEnum, ToolCategoryEntityEnum, ToolEntity, ToolStatusEntityEnum } from "./tool/tool.entity.js";
23
25
  import { ToolDetailPresentation, ToolListPresentation } from "./tool/tool.presentation.js";
26
+ import "./tool/index.js";
24
27
  import { MOCK_AGENTS } from "./shared/mock-agents.js";
25
28
  import { MOCK_TOOLS } from "./shared/mock-tools.js";
26
29
  import { MOCK_RUNS } from "./shared/mock-runs.js";