@lssm/example.agent-console 0.0.0-canary-20251217083314 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/.turbo/turbo-build.log +46 -48
  2. package/dist/agent/agent.contracts.js +1 -336
  3. package/dist/agent/agent.entity.js +1 -136
  4. package/dist/agent/agent.enum.js +1 -34
  5. package/dist/agent/agent.event.js +1 -183
  6. package/dist/agent/agent.handler.js +1 -83
  7. package/dist/agent/agent.presentation.js +1 -75
  8. package/dist/agent/agent.schema.js +1 -407
  9. package/dist/agent/index.js +1 -9
  10. package/dist/agent.feature.js +1 -295
  11. package/dist/docs/agent-console.docblock.js +5 -69
  12. package/dist/docs/index.js +1 -1
  13. package/dist/example.js +1 -50
  14. package/dist/handlers/index.js +1 -5
  15. package/dist/index.js +1 -32
  16. package/dist/presentations/index.js +1 -5
  17. package/dist/run/index.js +1 -9
  18. package/dist/run/run.contracts.js +1 -469
  19. package/dist/run/run.entity.js +1 -205
  20. package/dist/run/run.enum.js +1 -45
  21. package/dist/run/run.event.js +1 -389
  22. package/dist/run/run.handler.js +1 -82
  23. package/dist/run/run.presentation.js +1 -55
  24. package/dist/run/run.schema.js +1 -339
  25. package/dist/shared/index.js +1 -5
  26. package/dist/shared/mock-agents.js +1 -93
  27. package/dist/shared/mock-runs.js +1 -117
  28. package/dist/shared/mock-tools.js +1 -180
  29. package/dist/tool/index.js +1 -9
  30. package/dist/tool/tool.contracts.js +1 -288
  31. package/dist/tool/tool.entity.js +1 -105
  32. package/dist/tool/tool.enum.js +1 -35
  33. package/dist/tool/tool.event.js +1 -145
  34. package/dist/tool/tool.handler.js +1 -86
  35. package/dist/tool/tool.presentation.js +1 -55
  36. package/dist/tool/tool.schema.js +1 -237
  37. package/package.json +43 -45
  38. package/tsconfig.tsbuildinfo +1 -1
  39. package/.turbo/turbo-build$colon$bundle.log +0 -272
  40. package/CHANGELOG.md +0 -16
  41. package/dist/agent/agent.contracts.d.ts +0 -504
  42. package/dist/agent/agent.entity.d.ts +0 -54
  43. package/dist/agent/agent.enum.d.ts +0 -17
  44. package/dist/agent/agent.event.d.ts +0 -127
  45. package/dist/agent/agent.handler.d.ts +0 -99
  46. package/dist/agent/agent.presentation.d.ts +0 -18
  47. package/dist/agent/agent.schema.d.ts +0 -400
  48. package/dist/agent/index.d.ts +0 -8
  49. package/dist/agent.feature.d.ts +0 -11
  50. package/dist/docs/agent-console.docblock.d.ts +0 -1
  51. package/dist/docs/index.d.ts +0 -1
  52. package/dist/example.d.ts +0 -39
  53. package/dist/handlers/index.d.ts +0 -4
  54. package/dist/index.d.ts +0 -27
  55. package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -88
  56. package/dist/libs/contracts/dist/client/index.js +0 -5
  57. package/dist/libs/contracts/dist/client/react/feature-render.js +0 -2
  58. package/dist/libs/contracts/dist/client/react/form-render.js +0 -4
  59. package/dist/libs/contracts/dist/client/react/index.js +0 -4
  60. package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
  61. package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -60
  62. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  63. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
  64. package/dist/libs/contracts/dist/docs/index.js +0 -29
  65. package/dist/libs/contracts/dist/docs/presentations.js +0 -71
  66. package/dist/libs/contracts/dist/docs/registry.js +0 -44
  67. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  68. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  69. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  70. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  71. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  72. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
  73. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
  74. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
  75. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
  76. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
  77. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
  78. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
  79. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
  80. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
  81. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
  82. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
  83. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
  84. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
  85. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
  86. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
  87. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
  88. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
  89. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
  90. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
  91. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
  92. package/dist/libs/contracts/dist/events.js +0 -10
  93. package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
  94. package/dist/libs/contracts/dist/index.js +0 -71
  95. package/dist/libs/contracts/dist/install.js +0 -2
  96. package/dist/libs/contracts/dist/integrations/contracts.js +0 -377
  97. package/dist/libs/contracts/dist/integrations/index.js +0 -18
  98. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
  99. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
  100. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  101. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
  102. package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -242
  103. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -13
  104. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -52
  105. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -75
  106. package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -87
  107. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -66
  108. package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
  109. package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -68
  110. package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -68
  111. package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -116
  112. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -73
  113. package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
  114. package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -83
  115. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -61
  116. package/dist/libs/contracts/dist/jsonschema.js +0 -1
  117. package/dist/libs/contracts/dist/knowledge/contracts.js +0 -306
  118. package/dist/libs/contracts/dist/knowledge/index.js +0 -7
  119. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -34
  120. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
  121. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
  122. package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
  123. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -34
  124. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -37
  125. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
  126. package/dist/libs/contracts/dist/llm/exporters.js +0 -19
  127. package/dist/libs/contracts/dist/llm/index.js +0 -2
  128. package/dist/libs/contracts/dist/llm/prompts.js +0 -1
  129. package/dist/libs/contracts/dist/onboarding-base.js +0 -196
  130. package/dist/libs/contracts/dist/openapi.js +0 -1
  131. package/dist/libs/contracts/dist/ownership.js +0 -21
  132. package/dist/libs/contracts/dist/presentations.js +0 -1
  133. package/dist/libs/contracts/dist/presentations.v2.js +0 -11
  134. package/dist/libs/contracts/dist/prompt.js +0 -1
  135. package/dist/libs/contracts/dist/promptRegistry.js +0 -1
  136. package/dist/libs/contracts/dist/regenerator/index.js +0 -1
  137. package/dist/libs/contracts/dist/regenerator/service.js +0 -6
  138. package/dist/libs/contracts/dist/registry.js +0 -2
  139. package/dist/libs/contracts/dist/resources.js +0 -1
  140. package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
  141. package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
  142. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
  143. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -39
  144. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  145. package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
  146. package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
  147. package/dist/libs/contracts/dist/schema/dist/index.js +0 -6
  148. package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
  149. package/dist/libs/contracts/dist/server/index.js +0 -8
  150. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
  151. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -2
  152. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
  153. package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
  154. package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
  155. package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
  156. package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
  157. package/dist/libs/contracts/dist/server/rest-express.js +0 -1
  158. package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
  159. package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
  160. package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
  161. package/dist/libs/contracts/dist/spec.js +0 -34
  162. package/dist/libs/contracts/dist/telemetry/index.js +0 -1
  163. package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
  164. package/dist/libs/contracts/dist/tests/index.js +0 -1
  165. package/dist/libs/contracts/dist/tests/runner.js +0 -2
  166. package/dist/libs/contracts/dist/workflow/index.js +0 -1
  167. package/dist/libs/contracts/dist/workflow/runner.js +0 -1
  168. package/dist/libs/schema/dist/EnumType.js +0 -56
  169. package/dist/libs/schema/dist/FieldType.js +0 -49
  170. package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -236
  171. package/dist/libs/schema/dist/SchemaModel.js +0 -39
  172. package/dist/libs/schema/dist/entity/defineEntity.js +0 -236
  173. package/dist/libs/schema/dist/entity/index.js +0 -2
  174. package/dist/libs/schema/dist/entity/types.js +0 -1
  175. package/dist/libs/schema/dist/index.js +0 -6
  176. package/dist/presentations/index.d.ts +0 -4
  177. package/dist/run/index.d.ts +0 -8
  178. package/dist/run/run.contracts.d.ts +0 -713
  179. package/dist/run/run.entity.d.ts +0 -81
  180. package/dist/run/run.enum.d.ts +0 -21
  181. package/dist/run/run.event.d.ts +0 -289
  182. package/dist/run/run.handler.d.ts +0 -202
  183. package/dist/run/run.presentation.d.ts +0 -14
  184. package/dist/run/run.schema.d.ts +0 -415
  185. package/dist/shared/index.d.ts +0 -4
  186. package/dist/shared/mock-agents.d.ts +0 -87
  187. package/dist/shared/mock-runs.d.ts +0 -119
  188. package/dist/shared/mock-tools.d.ts +0 -243
  189. package/dist/tool/index.d.ts +0 -8
  190. package/dist/tool/tool.contracts.d.ts +0 -404
  191. package/dist/tool/tool.entity.d.ts +0 -41
  192. package/dist/tool/tool.enum.d.ts +0 -17
  193. package/dist/tool/tool.event.d.ts +0 -102
  194. package/dist/tool/tool.handler.d.ts +0 -314
  195. package/dist/tool/tool.presentation.d.ts +0 -14
  196. package/dist/tool/tool.schema.d.ts +0 -217
@@ -1,48 +1,46 @@
1
-
2
- $ bun build:bundle && bun build:types
3
- $ tsdown
4
- ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
5
- ℹ config file: /Users/tboutron/Documents/clients/lssm/monorepo-lssm/packages/contractspec/packages/examples/agent-console/tsdown.config.js (unrun)
6
- ℹ entry: src/agent.feature.ts, src/example.ts, src/index.ts, src/agent/agent.contracts.ts, src/agent/agent.entity.ts, src/agent/agent.enum.ts, src/agent/agent.event.ts, src/agent/agent.handler.ts, src/agent/agent.presentation.ts, src/agent/agent.schema.ts, src/agent/index.ts, src/docs/agent-console.docblock.ts, src/docs/index.ts, src/handlers/index.ts, src/presentations/index.ts, src/shared/index.ts, src/shared/mock-agents.ts, src/shared/mock-runs.ts, src/shared/mock-tools.ts, src/run/index.ts, src/run/run.contracts.ts, src/run/run.entity.ts, src/run/run.enum.ts, src/run/run.event.ts, src/run/run.handler.ts, src/run/run.presentation.ts, src/run/run.schema.ts, src/tool/index.ts, src/tool/tool.contracts.ts, src/tool/tool.entity.ts, src/tool/tool.enum.ts, src/tool/tool.event.ts, src/tool/tool.handler.ts, src/tool/tool.presentation.ts, src/tool/tool.schema.ts
7
- ℹ target: esnext
8
- ℹ tsconfig: tsconfig.json
9
- ℹ Build start
10
- ℹ Cleaning 42 files
11
- ℹ dist/run/run.contracts.js 6.37 kB │ gzip: 1.63 kB
12
- ℹ dist/index.js 5.65 kB │ gzip: 1.48 kB
13
- ℹ dist/agent/agent.contracts.js 5.04 kB │ gzip: 1.42 kB
14
- ℹ dist/agent/agent.schema.js 4.85 kB │ gzip: 0.71 kB
15
- ℹ dist/run/run.event.js 4.73 kB │ gzip: 0.81 kB
16
- ℹ dist/tool/tool.contracts.js 4.25 kB │ gzip: 1.30 kB
17
- ℹ dist/run/run.schema.js 3.90 kB │ gzip: 0.83 kB
18
- ℹ dist/run/run.entity.js 3.69 kB │ gzip: 1.16 kB
19
- ℹ dist/docs/agent-console.docblock.js 3.37 kB │ gzip: 1.36 kB
20
- ℹ dist/shared/mock-tools.js 3.09 kB │ gzip: 1.00 kB
21
- ℹ dist/agent.feature.js 2.88 kB │ gzip: 0.62 kB
22
- ℹ dist/agent/agent.entity.js 2.87 kB │ gzip: 1.12 kB
23
- ℹ dist/tool/tool.schema.js 2.85 kB │ gzip: 0.57 kB
24
- ℹ dist/shared/mock-runs.js 2.35 kB │ gzip: 0.72 kB
25
- ℹ dist/agent/agent.event.js 2.25 kB │ gzip: 0.51 kB
26
- ℹ dist/shared/mock-agents.js 2.03 kB │ gzip: 0.81 kB
27
- ℹ dist/tool/tool.entity.js 1.88 kB │ gzip: 0.79 kB
28
- ℹ dist/run/index.js 1.84 kB │ gzip: 0.60 kB
29
- ℹ dist/tool/tool.event.js 1.81 kB │ gzip: 0.47 kB
30
- ℹ dist/agent/index.js 1.74 kB │ gzip: 0.53 kB
31
- ℹ dist/tool/index.js 1.47 kB │ gzip: 0.46 kB
32
- ℹ dist/agent/agent.handler.js 1.47 kB │ gzip: 0.67 kB
33
- ℹ dist/tool/tool.handler.js 1.41 kB │ gzip: 0.66 kB
34
- ℹ dist/run/run.handler.js 1.40 kB │ gzip: 0.68 kB
35
- ℹ dist/agent/agent.presentation.js 1.27 kB │ gzip: 0.44 kB
36
- ℹ dist/tool/tool.presentation.js 0.85 kB │ gzip: 0.39 kB
37
- ℹ dist/run/run.presentation.js 0.84 kB │ gzip: 0.38 kB
38
- ℹ dist/example.js 0.78 kB │ gzip: 0.41 kB
39
- ℹ dist/presentations/index.js 0.59 kB │ gzip: 0.21 kB
40
- ℹ dist/handlers/index.js 0.59 kB │ gzip: 0.21 kB
41
- ℹ dist/run/run.enum.js 0.40 kB │ gzip: 0.28 kB
42
- ℹ dist/tool/tool.enum.js 0.34 kB │ gzip: 0.25 kB
43
- ℹ dist/agent/agent.enum.js 0.30 kB │ gzip: 0.23 kB
44
- ℹ dist/shared/index.js 0.19 kB │ gzip: 0.12 kB
45
- ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
46
- ℹ 35 files, total: 79.37 kB
47
- ✔ Build complete in 204ms
48
- $ tsc --noEmit
1
+ $ bun build:bundle && bun build:types
2
+ $ tsdown
3
+ ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
4
+ ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/agent-console/tsdown.config.js
5
+ ℹ entry: src/agent.feature.ts, src/example.ts, src/index.ts, src/docs/agent-console.docblock.ts, src/docs/index.ts, src/handlers/index.ts, src/agent/agent.contracts.ts, src/agent/agent.entity.ts, src/agent/agent.enum.ts, src/agent/agent.event.ts, src/agent/agent.handler.ts, src/agent/agent.presentation.ts, src/agent/agent.schema.ts, src/agent/index.ts, src/presentations/index.ts, src/run/index.ts, src/run/run.contracts.ts, src/run/run.entity.ts, src/run/run.enum.ts, src/run/run.event.ts, src/run/run.handler.ts, src/run/run.presentation.ts, src/run/run.schema.ts, src/shared/index.ts, src/shared/mock-agents.ts, src/shared/mock-runs.ts, src/shared/mock-tools.ts, src/tool/index.ts, src/tool/tool.contracts.ts, src/tool/tool.entity.ts, src/tool/tool.enum.ts, src/tool/tool.event.ts, src/tool/tool.handler.ts, src/tool/tool.presentation.ts, src/tool/tool.schema.ts
6
+ ℹ target: esnext
7
+ ℹ tsconfig: tsconfig.json
8
+ ℹ Build start
9
+ ℹ dist/run/run.contracts.js 6.37 kB │ gzip: 1.63 kB
10
+ ℹ dist/index.js 5.65 kB │ gzip: 1.48 kB
11
+ ℹ dist/agent/agent.contracts.js 5.04 kB │ gzip: 1.42 kB
12
+ ℹ dist/agent/agent.schema.js 4.85 kB │ gzip: 0.71 kB
13
+ ℹ dist/run/run.event.js 4.73 kB │ gzip: 0.81 kB
14
+ ℹ dist/tool/tool.contracts.js 4.25 kB │ gzip: 1.30 kB
15
+ ℹ dist/run/run.schema.js 3.90 kB │ gzip: 0.83 kB
16
+ ℹ dist/run/run.entity.js 3.69 kB │ gzip: 1.16 kB
17
+ ℹ dist/docs/agent-console.docblock.js 3.37 kB │ gzip: 1.36 kB
18
+ ℹ dist/shared/mock-tools.js 3.09 kB │ gzip: 1.00 kB
19
+ ℹ dist/agent.feature.js 2.88 kB │ gzip: 0.62 kB
20
+ ℹ dist/agent/agent.entity.js 2.87 kB │ gzip: 1.12 kB
21
+ ℹ dist/tool/tool.schema.js 2.85 kB │ gzip: 0.57 kB
22
+ ℹ dist/shared/mock-runs.js 2.35 kB │ gzip: 0.72 kB
23
+ ℹ dist/agent/agent.event.js 2.25 kB │ gzip: 0.51 kB
24
+ ℹ dist/shared/mock-agents.js 2.03 kB │ gzip: 0.81 kB
25
+ ℹ dist/tool/tool.entity.js 1.88 kB │ gzip: 0.79 kB
26
+ ℹ dist/run/index.js 1.84 kB │ gzip: 0.60 kB
27
+ ℹ dist/tool/tool.event.js 1.81 kB │ gzip: 0.47 kB
28
+ ℹ dist/agent/index.js 1.74 kB │ gzip: 0.53 kB
29
+ ℹ dist/tool/index.js 1.47 kB │ gzip: 0.46 kB
30
+ ℹ dist/agent/agent.handler.js 1.47 kB │ gzip: 0.67 kB
31
+ ℹ dist/tool/tool.handler.js 1.41 kB │ gzip: 0.66 kB
32
+ ℹ dist/run/run.handler.js 1.40 kB │ gzip: 0.68 kB
33
+ ℹ dist/agent/agent.presentation.js 1.27 kB │ gzip: 0.44 kB
34
+ ℹ dist/tool/tool.presentation.js 0.85 kB │ gzip: 0.39 kB
35
+ ℹ dist/run/run.presentation.js 0.84 kB │ gzip: 0.38 kB
36
+ ℹ dist/example.js 0.78 kB │ gzip: 0.41 kB
37
+ ℹ dist/presentations/index.js 0.59 kB │ gzip: 0.21 kB
38
+ ℹ dist/handlers/index.js 0.59 kB │ gzip: 0.21 kB
39
+ ℹ dist/run/run.enum.js 0.40 kB │ gzip: 0.28 kB
40
+ ℹ dist/tool/tool.enum.js 0.34 kB │ gzip: 0.25 kB
41
+ ℹ dist/agent/agent.enum.js 0.30 kB │ gzip: 0.23 kB
42
+ ℹ dist/shared/index.js 0.19 kB │ gzip: 0.12 kB
43
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
44
+ ℹ 35 files, total: 79.37 kB
45
+ ✔ Build complete in 172ms
46
+ $ tsc --noEmit
@@ -1,336 +1 @@
1
- import { ScalarTypeEnum } from "../libs/schema/dist/ScalarTypeEnum.js";
2
- import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
3
- import "../libs/schema/dist/index.js";
4
- import { AgentStatusEnum, ModelProviderEnum } from "./agent.enum.js";
5
- import { AgentSummaryModel, AgentWithToolsModel, CreateAgentInputModel, UpdateAgentInputModel } from "./agent.schema.js";
6
- import { defineCommand, defineQuery } from "../libs/contracts/dist/spec.js";
7
- import { AgentCreatedEvent } from "./agent.event.js";
8
-
9
- //#region src/agent/agent.contracts.ts
10
- const OWNERS = ["@agent-console-team"];
11
- /**
12
- * CreateAgentCommand - Creates a new agent configuration.
13
- */
14
- const CreateAgentCommand = defineCommand({
15
- meta: {
16
- name: "agent.agent.create",
17
- version: 1,
18
- stability: "stable",
19
- owners: [...OWNERS],
20
- tags: ["agent", "create"],
21
- description: "Creates a new AI agent configuration.",
22
- goal: "Allow users to define new AI agents with specific models and tools.",
23
- context: "Called from the agent builder UI when creating a new agent."
24
- },
25
- io: {
26
- input: CreateAgentInputModel,
27
- output: defineSchemaModel({
28
- name: "CreateAgentOutput",
29
- fields: {
30
- id: {
31
- type: ScalarTypeEnum.String_unsecure(),
32
- isOptional: false
33
- },
34
- name: {
35
- type: ScalarTypeEnum.NonEmptyString(),
36
- isOptional: false
37
- },
38
- slug: {
39
- type: ScalarTypeEnum.String_unsecure(),
40
- isOptional: false
41
- },
42
- status: {
43
- type: AgentStatusEnum,
44
- isOptional: false
45
- }
46
- }
47
- }),
48
- errors: { SLUG_EXISTS: {
49
- description: "An agent with this slug already exists in the organization",
50
- http: 409,
51
- gqlCode: "SLUG_EXISTS",
52
- when: "Slug is already taken"
53
- } }
54
- },
55
- policy: { auth: "user" },
56
- sideEffects: {
57
- emits: [{
58
- ref: AgentCreatedEvent,
59
- when: "Agent is successfully created"
60
- }],
61
- audit: ["agent.created"]
62
- }
63
- });
64
- /**
65
- * UpdateAgentCommand - Updates an existing agent.
66
- */
67
- const UpdateAgentCommand = defineCommand({
68
- meta: {
69
- name: "agent.agent.update",
70
- version: 1,
71
- stability: "stable",
72
- owners: [...OWNERS],
73
- tags: ["agent", "update"],
74
- description: "Updates an existing AI agent configuration.",
75
- goal: "Allow users to modify agent settings and configuration.",
76
- context: "Called from the agent settings UI."
77
- },
78
- io: {
79
- input: UpdateAgentInputModel,
80
- output: defineSchemaModel({
81
- name: "UpdateAgentOutput",
82
- fields: {
83
- id: {
84
- type: ScalarTypeEnum.String_unsecure(),
85
- isOptional: false
86
- },
87
- name: {
88
- type: ScalarTypeEnum.NonEmptyString(),
89
- isOptional: false
90
- },
91
- status: {
92
- type: AgentStatusEnum,
93
- isOptional: false
94
- },
95
- updatedAt: {
96
- type: ScalarTypeEnum.DateTime(),
97
- isOptional: false
98
- }
99
- }
100
- }),
101
- errors: { AGENT_NOT_FOUND: {
102
- description: "The specified agent does not exist",
103
- http: 404,
104
- gqlCode: "AGENT_NOT_FOUND",
105
- when: "Agent ID is invalid"
106
- } }
107
- },
108
- policy: { auth: "user" },
109
- sideEffects: {
110
- emits: [{
111
- name: "agent.updated",
112
- version: 1,
113
- when: "Agent is updated",
114
- payload: AgentSummaryModel
115
- }],
116
- audit: ["agent.updated"]
117
- }
118
- });
119
- /**
120
- * GetAgentQuery - Retrieves an agent by ID.
121
- */
122
- const GetAgentQuery = defineQuery({
123
- meta: {
124
- name: "agent.agent.get",
125
- version: 1,
126
- stability: "stable",
127
- owners: [...OWNERS],
128
- tags: ["agent", "get"],
129
- description: "Retrieves an agent by its ID.",
130
- goal: "View detailed agent configuration.",
131
- context: "Called when viewing agent details or editing."
132
- },
133
- io: {
134
- input: defineSchemaModel({
135
- name: "GetAgentInput",
136
- fields: {
137
- agentId: {
138
- type: ScalarTypeEnum.String_unsecure(),
139
- isOptional: false
140
- },
141
- includeTools: {
142
- type: ScalarTypeEnum.Boolean(),
143
- isOptional: true
144
- }
145
- }
146
- }),
147
- output: AgentWithToolsModel,
148
- errors: { AGENT_NOT_FOUND: {
149
- description: "The specified agent does not exist",
150
- http: 404,
151
- gqlCode: "AGENT_NOT_FOUND",
152
- when: "Agent ID is invalid"
153
- } }
154
- },
155
- policy: { auth: "user" }
156
- });
157
- /**
158
- * ListAgentsQuery - Lists agents for an organization.
159
- */
160
- const ListAgentsQuery = defineQuery({
161
- meta: {
162
- name: "agent.agent.list",
163
- version: 1,
164
- stability: "stable",
165
- owners: [...OWNERS],
166
- tags: ["agent", "list"],
167
- description: "Lists agents for an organization with optional filtering.",
168
- goal: "Browse and search available agents.",
169
- context: "Agent list/dashboard view."
170
- },
171
- io: {
172
- input: defineSchemaModel({
173
- name: "ListAgentsInput",
174
- fields: {
175
- organizationId: {
176
- type: ScalarTypeEnum.String_unsecure(),
177
- isOptional: false
178
- },
179
- status: {
180
- type: AgentStatusEnum,
181
- isOptional: true
182
- },
183
- modelProvider: {
184
- type: ModelProviderEnum,
185
- isOptional: true
186
- },
187
- search: {
188
- type: ScalarTypeEnum.String_unsecure(),
189
- isOptional: true
190
- },
191
- limit: {
192
- type: ScalarTypeEnum.Int_unsecure(),
193
- isOptional: true,
194
- defaultValue: 20
195
- },
196
- offset: {
197
- type: ScalarTypeEnum.Int_unsecure(),
198
- isOptional: true,
199
- defaultValue: 0
200
- }
201
- }
202
- }),
203
- output: defineSchemaModel({
204
- name: "ListAgentsOutput",
205
- fields: {
206
- items: {
207
- type: AgentSummaryModel,
208
- isArray: true,
209
- isOptional: false
210
- },
211
- total: {
212
- type: ScalarTypeEnum.Int_unsecure(),
213
- isOptional: false
214
- },
215
- hasMore: {
216
- type: ScalarTypeEnum.Boolean(),
217
- isOptional: false
218
- }
219
- }
220
- })
221
- },
222
- policy: { auth: "user" }
223
- });
224
- /**
225
- * AssignToolToAgentCommand - Assigns a tool to an agent.
226
- */
227
- const AssignToolToAgentCommand = defineCommand({
228
- meta: {
229
- name: "agent.agent.assignTool",
230
- version: 1,
231
- stability: "stable",
232
- owners: [...OWNERS],
233
- tags: [
234
- "agent",
235
- "tool",
236
- "assign"
237
- ],
238
- description: "Assigns a tool to an agent with optional configuration.",
239
- goal: "Enable agents to use specific tools.",
240
- context: "Agent configuration UI - tool selection."
241
- },
242
- io: {
243
- input: defineSchemaModel({
244
- name: "AssignToolToAgentInput",
245
- fields: {
246
- agentId: {
247
- type: ScalarTypeEnum.String_unsecure(),
248
- isOptional: false
249
- },
250
- toolId: {
251
- type: ScalarTypeEnum.String_unsecure(),
252
- isOptional: false
253
- },
254
- config: {
255
- type: ScalarTypeEnum.JSONObject(),
256
- isOptional: true
257
- },
258
- order: {
259
- type: ScalarTypeEnum.Int_unsecure(),
260
- isOptional: true
261
- }
262
- }
263
- }),
264
- output: defineSchemaModel({
265
- name: "AssignToolToAgentOutput",
266
- fields: {
267
- agentToolId: {
268
- type: ScalarTypeEnum.String_unsecure(),
269
- isOptional: false
270
- },
271
- agentId: {
272
- type: ScalarTypeEnum.String_unsecure(),
273
- isOptional: false
274
- },
275
- toolId: {
276
- type: ScalarTypeEnum.String_unsecure(),
277
- isOptional: false
278
- }
279
- }
280
- }),
281
- errors: { TOOL_ALREADY_ASSIGNED: {
282
- description: "This tool is already assigned to the agent",
283
- http: 409,
284
- gqlCode: "TOOL_ALREADY_ASSIGNED",
285
- when: "Tool assignment already exists"
286
- } }
287
- },
288
- policy: { auth: "user" },
289
- sideEffects: { audit: ["agent.tool.assigned"] }
290
- });
291
- /**
292
- * RemoveToolFromAgentCommand - Removes a tool from an agent.
293
- */
294
- const RemoveToolFromAgentCommand = defineCommand({
295
- meta: {
296
- name: "agent.agent.removeTool",
297
- version: 1,
298
- stability: "stable",
299
- owners: [...OWNERS],
300
- tags: [
301
- "agent",
302
- "tool",
303
- "remove"
304
- ],
305
- description: "Removes a tool assignment from an agent.",
306
- goal: "Disable specific tools for an agent.",
307
- context: "Agent configuration UI - tool management."
308
- },
309
- io: {
310
- input: defineSchemaModel({
311
- name: "RemoveToolFromAgentInput",
312
- fields: {
313
- agentId: {
314
- type: ScalarTypeEnum.String_unsecure(),
315
- isOptional: false
316
- },
317
- toolId: {
318
- type: ScalarTypeEnum.String_unsecure(),
319
- isOptional: false
320
- }
321
- }
322
- }),
323
- output: defineSchemaModel({
324
- name: "RemoveToolFromAgentOutput",
325
- fields: { success: {
326
- type: ScalarTypeEnum.Boolean(),
327
- isOptional: false
328
- } }
329
- })
330
- },
331
- policy: { auth: "user" },
332
- sideEffects: { audit: ["agent.tool.removed"] }
333
- });
334
-
335
- //#endregion
336
- export { AssignToolToAgentCommand, CreateAgentCommand, GetAgentQuery, ListAgentsQuery, RemoveToolFromAgentCommand, UpdateAgentCommand };
1
+ import{AgentStatusEnum as e,ModelProviderEnum as t}from"./agent.enum.js";import{AgentSummaryModel as n,AgentWithToolsModel as r,CreateAgentInputModel as i,UpdateAgentInputModel as a}from"./agent.schema.js";import{AgentCreatedEvent as o}from"./agent.event.js";import{ScalarTypeEnum as s,defineSchemaModel as c}from"@lssm/lib.schema";import{defineCommand as l,defineQuery as u}from"@lssm/lib.contracts/spec";const d=[`@agent-console-team`],f=l({meta:{name:`agent.agent.create`,version:1,stability:`stable`,owners:[...d],tags:[`agent`,`create`],description:`Creates a new AI agent configuration.`,goal:`Allow users to define new AI agents with specific models and tools.`,context:`Called from the agent builder UI when creating a new agent.`},io:{input:i,output:c({name:`CreateAgentOutput`,fields:{id:{type:s.String_unsecure(),isOptional:!1},name:{type:s.NonEmptyString(),isOptional:!1},slug:{type:s.String_unsecure(),isOptional:!1},status:{type:e,isOptional:!1}}}),errors:{SLUG_EXISTS:{description:`An agent with this slug already exists in the organization`,http:409,gqlCode:`SLUG_EXISTS`,when:`Slug is already taken`}}},policy:{auth:`user`},sideEffects:{emits:[{ref:o,when:`Agent is successfully created`}],audit:[`agent.created`]}}),p=l({meta:{name:`agent.agent.update`,version:1,stability:`stable`,owners:[...d],tags:[`agent`,`update`],description:`Updates an existing AI agent configuration.`,goal:`Allow users to modify agent settings and configuration.`,context:`Called from the agent settings UI.`},io:{input:a,output:c({name:`UpdateAgentOutput`,fields:{id:{type:s.String_unsecure(),isOptional:!1},name:{type:s.NonEmptyString(),isOptional:!1},status:{type:e,isOptional:!1},updatedAt:{type:s.DateTime(),isOptional:!1}}}),errors:{AGENT_NOT_FOUND:{description:`The specified agent does not exist`,http:404,gqlCode:`AGENT_NOT_FOUND`,when:`Agent ID is invalid`}}},policy:{auth:`user`},sideEffects:{emits:[{name:`agent.updated`,version:1,when:`Agent is updated`,payload:n}],audit:[`agent.updated`]}}),m=u({meta:{name:`agent.agent.get`,version:1,stability:`stable`,owners:[...d],tags:[`agent`,`get`],description:`Retrieves an agent by its ID.`,goal:`View detailed agent configuration.`,context:`Called when viewing agent details or editing.`},io:{input:c({name:`GetAgentInput`,fields:{agentId:{type:s.String_unsecure(),isOptional:!1},includeTools:{type:s.Boolean(),isOptional:!0}}}),output:r,errors:{AGENT_NOT_FOUND:{description:`The specified agent does not exist`,http:404,gqlCode:`AGENT_NOT_FOUND`,when:`Agent ID is invalid`}}},policy:{auth:`user`}}),h=u({meta:{name:`agent.agent.list`,version:1,stability:`stable`,owners:[...d],tags:[`agent`,`list`],description:`Lists agents for an organization with optional filtering.`,goal:`Browse and search available agents.`,context:`Agent list/dashboard view.`},io:{input:c({name:`ListAgentsInput`,fields:{organizationId:{type:s.String_unsecure(),isOptional:!1},status:{type:e,isOptional:!0},modelProvider:{type:t,isOptional:!0},search:{type:s.String_unsecure(),isOptional:!0},limit:{type:s.Int_unsecure(),isOptional:!0,defaultValue:20},offset:{type:s.Int_unsecure(),isOptional:!0,defaultValue:0}}}),output:c({name:`ListAgentsOutput`,fields:{items:{type:n,isArray:!0,isOptional:!1},total:{type:s.Int_unsecure(),isOptional:!1},hasMore:{type:s.Boolean(),isOptional:!1}}})},policy:{auth:`user`}}),g=l({meta:{name:`agent.agent.assignTool`,version:1,stability:`stable`,owners:[...d],tags:[`agent`,`tool`,`assign`],description:`Assigns a tool to an agent with optional configuration.`,goal:`Enable agents to use specific tools.`,context:`Agent configuration UI - tool selection.`},io:{input:c({name:`AssignToolToAgentInput`,fields:{agentId:{type:s.String_unsecure(),isOptional:!1},toolId:{type:s.String_unsecure(),isOptional:!1},config:{type:s.JSONObject(),isOptional:!0},order:{type:s.Int_unsecure(),isOptional:!0}}}),output:c({name:`AssignToolToAgentOutput`,fields:{agentToolId:{type:s.String_unsecure(),isOptional:!1},agentId:{type:s.String_unsecure(),isOptional:!1},toolId:{type:s.String_unsecure(),isOptional:!1}}}),errors:{TOOL_ALREADY_ASSIGNED:{description:`This tool is already assigned to the agent`,http:409,gqlCode:`TOOL_ALREADY_ASSIGNED`,when:`Tool assignment already exists`}}},policy:{auth:`user`},sideEffects:{audit:[`agent.tool.assigned`]}}),_=l({meta:{name:`agent.agent.removeTool`,version:1,stability:`stable`,owners:[...d],tags:[`agent`,`tool`,`remove`],description:`Removes a tool assignment from an agent.`,goal:`Disable specific tools for an agent.`,context:`Agent configuration UI - tool management.`},io:{input:c({name:`RemoveToolFromAgentInput`,fields:{agentId:{type:s.String_unsecure(),isOptional:!1},toolId:{type:s.String_unsecure(),isOptional:!1}}}),output:c({name:`RemoveToolFromAgentOutput`,fields:{success:{type:s.Boolean(),isOptional:!1}}})},policy:{auth:`user`},sideEffects:{audit:[`agent.tool.removed`]}});export{g as AssignToolToAgentCommand,f as CreateAgentCommand,m as GetAgentQuery,h as ListAgentsQuery,_ as RemoveToolFromAgentCommand,p as UpdateAgentCommand};
@@ -1,136 +1 @@
1
- import { defineEntity, defineEntityEnum, field, index } from "../libs/schema/dist/entity/defineEntity.js";
2
- import "../libs/schema/dist/entity/index.js";
3
-
4
- //#region src/agent/agent.entity.ts
5
- /**
6
- * Agent status for lifecycle management.
7
- */
8
- const AgentStatusEntityEnum = defineEntityEnum({
9
- name: "AgentStatus",
10
- values: [
11
- "DRAFT",
12
- "ACTIVE",
13
- "PAUSED",
14
- "ARCHIVED"
15
- ],
16
- description: "Lifecycle status of the agent"
17
- });
18
- /**
19
- * Agent model provider.
20
- */
21
- const ModelProviderEntityEnum = defineEntityEnum({
22
- name: "ModelProvider",
23
- values: [
24
- "OPENAI",
25
- "ANTHROPIC",
26
- "GOOGLE",
27
- "MISTRAL",
28
- "CUSTOM"
29
- ],
30
- description: "AI model provider"
31
- });
32
- /**
33
- * Agent entity - Represents an AI agent configuration.
34
- */
35
- const AgentEntity = defineEntity({
36
- name: "Agent",
37
- schema: "agent_console",
38
- description: "Represents an AI agent configuration with assigned tools and parameters.",
39
- fields: {
40
- id: field.id(),
41
- organizationId: field.string({ description: "Organization that owns this agent" }),
42
- name: field.string({ description: "Agent name (1-100 chars)" }),
43
- slug: field.string({ description: "URL-safe identifier (lowercase, numbers, hyphens)" }),
44
- description: field.string({
45
- isOptional: true,
46
- description: "Agent description (max 1000 chars)"
47
- }),
48
- status: field.enum("AgentStatus", { default: "DRAFT" }),
49
- modelProvider: field.enum("ModelProvider", { default: "OPENAI" }),
50
- modelName: field.string({ description: "Model identifier: 'gpt-4', 'claude-3-opus', etc." }),
51
- modelConfig: field.json({
52
- isOptional: true,
53
- description: "Model parameters: temperature, max_tokens, etc."
54
- }),
55
- systemPrompt: field.string({ description: "System prompt for the agent" }),
56
- userPromptTemplate: field.string({
57
- isOptional: true,
58
- description: "Template for user prompts"
59
- }),
60
- toolIds: field.string({
61
- isArray: true,
62
- isOptional: true,
63
- description: "IDs of assigned tools"
64
- }),
65
- toolChoice: field.string({
66
- default: "auto",
67
- description: "Tool selection mode: 'auto', 'required', 'none'"
68
- }),
69
- maxIterations: field.int({
70
- default: 10,
71
- description: "Maximum iterations per run"
72
- }),
73
- maxTokensPerRun: field.int({
74
- isOptional: true,
75
- description: "Maximum tokens per run"
76
- }),
77
- timeoutMs: field.int({
78
- default: 12e4,
79
- description: "Execution timeout in milliseconds"
80
- }),
81
- version: field.string({
82
- default: "1.0.0",
83
- description: "Agent version"
84
- }),
85
- tags: field.string({
86
- isArray: true,
87
- isOptional: true,
88
- description: "Tags for categorization"
89
- }),
90
- createdAt: field.createdAt(),
91
- updatedAt: field.updatedAt(),
92
- createdById: field.string({
93
- isOptional: true,
94
- description: "User who created this agent"
95
- }),
96
- tools: field.hasMany("Tool", { description: "Tools assigned to this agent" })
97
- },
98
- indexes: [
99
- index.unique(["organizationId", "slug"]),
100
- index.on(["organizationId", "status"]),
101
- index.on(["modelProvider", "modelName"])
102
- ],
103
- enums: [AgentStatusEntityEnum, ModelProviderEntityEnum]
104
- });
105
- /**
106
- * AgentTool join entity - Links agents to their assigned tools.
107
- */
108
- const AgentToolEntity = defineEntity({
109
- name: "AgentTool",
110
- schema: "agent_console",
111
- description: "Links an agent to its assigned tools with configuration.",
112
- fields: {
113
- id: field.id(),
114
- agentId: field.foreignKey({ description: "Agent ID" }),
115
- toolId: field.foreignKey({ description: "Tool ID" }),
116
- config: field.json({
117
- isOptional: true,
118
- description: "Tool-specific configuration for this agent"
119
- }),
120
- order: field.int({
121
- default: 0,
122
- description: "Order of tool in agent tool list"
123
- }),
124
- isEnabled: field.boolean({
125
- default: true,
126
- description: "Whether tool is enabled for this agent"
127
- }),
128
- createdAt: field.createdAt(),
129
- agent: field.belongsTo("Agent", ["agentId"], ["id"]),
130
- tool: field.belongsTo("Tool", ["toolId"], ["id"])
131
- },
132
- indexes: [index.unique(["agentId", "toolId"]), index.on(["agentId", "order"])]
133
- });
134
-
135
- //#endregion
136
- export { AgentEntity, AgentStatusEntityEnum, AgentToolEntity, ModelProviderEntityEnum };
1
+ import{defineEntity as e,defineEntityEnum as t,field as n,index as r}from"@lssm/lib.schema/entity";const i=t({name:`AgentStatus`,values:[`DRAFT`,`ACTIVE`,`PAUSED`,`ARCHIVED`],description:`Lifecycle status of the agent`}),a=t({name:`ModelProvider`,values:[`OPENAI`,`ANTHROPIC`,`GOOGLE`,`MISTRAL`,`CUSTOM`],description:`AI model provider`}),o=e({name:`Agent`,schema:`agent_console`,description:`Represents an AI agent configuration with assigned tools and parameters.`,fields:{id:n.id(),organizationId:n.string({description:`Organization that owns this agent`}),name:n.string({description:`Agent name (1-100 chars)`}),slug:n.string({description:`URL-safe identifier (lowercase, numbers, hyphens)`}),description:n.string({isOptional:!0,description:`Agent description (max 1000 chars)`}),status:n.enum(`AgentStatus`,{default:`DRAFT`}),modelProvider:n.enum(`ModelProvider`,{default:`OPENAI`}),modelName:n.string({description:`Model identifier: 'gpt-4', 'claude-3-opus', etc.`}),modelConfig:n.json({isOptional:!0,description:`Model parameters: temperature, max_tokens, etc.`}),systemPrompt:n.string({description:`System prompt for the agent`}),userPromptTemplate:n.string({isOptional:!0,description:`Template for user prompts`}),toolIds:n.string({isArray:!0,isOptional:!0,description:`IDs of assigned tools`}),toolChoice:n.string({default:`auto`,description:`Tool selection mode: 'auto', 'required', 'none'`}),maxIterations:n.int({default:10,description:`Maximum iterations per run`}),maxTokensPerRun:n.int({isOptional:!0,description:`Maximum tokens per run`}),timeoutMs:n.int({default:12e4,description:`Execution timeout in milliseconds`}),version:n.string({default:`1.0.0`,description:`Agent version`}),tags:n.string({isArray:!0,isOptional:!0,description:`Tags for categorization`}),createdAt:n.createdAt(),updatedAt:n.updatedAt(),createdById:n.string({isOptional:!0,description:`User who created this agent`}),tools:n.hasMany(`Tool`,{description:`Tools assigned to this agent`})},indexes:[r.unique([`organizationId`,`slug`]),r.on([`organizationId`,`status`]),r.on([`modelProvider`,`modelName`])],enums:[i,a]}),s=e({name:`AgentTool`,schema:`agent_console`,description:`Links an agent to its assigned tools with configuration.`,fields:{id:n.id(),agentId:n.foreignKey({description:`Agent ID`}),toolId:n.foreignKey({description:`Tool ID`}),config:n.json({isOptional:!0,description:`Tool-specific configuration for this agent`}),order:n.int({default:0,description:`Order of tool in agent tool list`}),isEnabled:n.boolean({default:!0,description:`Whether tool is enabled for this agent`}),createdAt:n.createdAt(),agent:n.belongsTo(`Agent`,[`agentId`],[`id`]),tool:n.belongsTo(`Tool`,[`toolId`],[`id`])},indexes:[r.unique([`agentId`,`toolId`]),r.on([`agentId`,`order`])]});export{o as AgentEntity,i as AgentStatusEntityEnum,s as AgentToolEntity,a as ModelProviderEntityEnum};
@@ -1,34 +1 @@
1
- import { defineEnum } from "../libs/schema/dist/EnumType.js";
2
- import "../libs/schema/dist/index.js";
3
-
4
- //#region src/agent/agent.enum.ts
5
- /**
6
- * Agent status enum.
7
- */
8
- const AgentStatusEnum = defineEnum("AgentStatus", [
9
- "DRAFT",
10
- "ACTIVE",
11
- "PAUSED",
12
- "ARCHIVED"
13
- ]);
14
- /**
15
- * Model provider enum.
16
- */
17
- const ModelProviderEnum = defineEnum("ModelProvider", [
18
- "OPENAI",
19
- "ANTHROPIC",
20
- "GOOGLE",
21
- "MISTRAL",
22
- "CUSTOM"
23
- ]);
24
- /**
25
- * Tool choice mode enum.
26
- */
27
- const ToolChoiceEnum = defineEnum("ToolChoice", [
28
- "auto",
29
- "required",
30
- "none"
31
- ]);
32
-
33
- //#endregion
34
- export { AgentStatusEnum, ModelProviderEnum, ToolChoiceEnum };
1
+ import{defineEnum as e}from"@lssm/lib.schema";const t=e(`AgentStatus`,[`DRAFT`,`ACTIVE`,`PAUSED`,`ARCHIVED`]),n=e(`ModelProvider`,[`OPENAI`,`ANTHROPIC`,`GOOGLE`,`MISTRAL`,`CUSTOM`]),r=e(`ToolChoice`,[`auto`,`required`,`none`]);export{t as AgentStatusEnum,n as ModelProviderEnum,r as ToolChoiceEnum};