@lssm/example.agent-console 0.0.0-canary-20251221193616 → 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 (235) 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 +30 -30
  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 +125 -125
  17. package/dist/agent/agent.operation.js +35 -36
  18. package/dist/agent/agent.operation.js.map +1 -1
  19. package/dist/agent/agent.schema.d.ts +95 -95
  20. package/dist/agent/agent.schema.d.ts.map +1 -1
  21. package/dist/agent/agent.schema.js +77 -77
  22. package/dist/agent/agent.schema.js.map +1 -1
  23. package/dist/docs/agent-console.docblock.js +1 -2
  24. package/dist/docs/agent-console.docblock.js.map +1 -1
  25. package/dist/index.d.ts +3 -0
  26. package/dist/run/run.entity.d.ts +56 -56
  27. package/dist/run/run.entity.js +62 -62
  28. package/dist/run/run.entity.js.map +1 -1
  29. package/dist/run/run.enum.js +5 -5
  30. package/dist/run/run.enum.js.map +1 -1
  31. package/dist/run/run.event.d.ts +70 -70
  32. package/dist/run/run.event.js +71 -73
  33. package/dist/run/run.event.js.map +1 -1
  34. package/dist/run/run.operation.d.ts +1 -1
  35. package/dist/run/run.operation.js +57 -58
  36. package/dist/run/run.operation.js.map +1 -1
  37. package/dist/run/run.schema.js +65 -65
  38. package/dist/run/run.schema.js.map +1 -1
  39. package/dist/tool/tool.entity.js +27 -27
  40. package/dist/tool/tool.entity.js.map +1 -1
  41. package/dist/tool/tool.enum.js +4 -4
  42. package/dist/tool/tool.enum.js.map +1 -1
  43. package/dist/tool/tool.event.d.ts +1 -1
  44. package/dist/tool/tool.event.js +25 -27
  45. package/dist/tool/tool.event.js.map +1 -1
  46. package/dist/tool/tool.handler.d.ts.map +1 -1
  47. package/dist/tool/tool.operation.d.ts +1 -1
  48. package/dist/tool/tool.operation.js +28 -29
  49. package/dist/tool/tool.operation.js.map +1 -1
  50. package/dist/tool/tool.schema.js +44 -44
  51. package/dist/tool/tool.schema.js.map +1 -1
  52. package/package.json +9 -9
  53. package/tsconfig.tsbuildinfo +1 -1
  54. package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +0 -6
  55. package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +0 -1
  56. package/dist/libs/contracts/dist/capabilities/index.js +0 -1
  57. package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -89
  58. package/dist/libs/contracts/dist/capabilities/openbanking.js.map +0 -1
  59. package/dist/libs/contracts/dist/client/index.js +0 -5
  60. package/dist/libs/contracts/dist/client/react/feature-render.js +0 -3
  61. package/dist/libs/contracts/dist/client/react/form-render.js +0 -5
  62. package/dist/libs/contracts/dist/client/react/index.js +0 -4
  63. package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
  64. package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -61
  65. package/dist/libs/contracts/dist/contract-registry/schemas.js.map +0 -1
  66. package/dist/libs/contracts/dist/data-views/data-views.js +0 -7
  67. package/dist/libs/contracts/dist/data-views/data-views.js.map +0 -1
  68. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -17
  69. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +0 -1
  70. package/dist/libs/contracts/dist/docs/index.js +0 -25
  71. package/dist/libs/contracts/dist/docs/meta.docs.js +0 -30
  72. package/dist/libs/contracts/dist/docs/meta.docs.js.map +0 -1
  73. package/dist/libs/contracts/dist/docs/presentations.js +0 -72
  74. package/dist/libs/contracts/dist/docs/presentations.js.map +0 -1
  75. package/dist/libs/contracts/dist/docs/registry.js +0 -45
  76. package/dist/libs/contracts/dist/docs/registry.js.map +0 -1
  77. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -81
  78. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +0 -1
  79. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -58
  80. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +0 -1
  81. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -17
  82. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +0 -1
  83. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -358
  84. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +0 -1
  85. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -38
  86. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +0 -1
  87. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -17
  88. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +0 -1
  89. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -21
  90. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +0 -1
  91. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -49
  92. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +0 -1
  93. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -80
  94. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +0 -1
  95. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -85
  96. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +0 -1
  97. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -46
  98. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +0 -1
  99. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -68
  100. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +0 -1
  101. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -41
  102. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +0 -1
  103. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -70
  104. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +0 -1
  105. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -48
  106. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +0 -1
  107. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -63
  108. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +0 -1
  109. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -156
  110. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +0 -1
  111. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -21
  112. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +0 -1
  113. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -102
  114. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +0 -1
  115. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -21
  116. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +0 -1
  117. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +0 -97
  118. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +0 -1
  119. package/dist/libs/contracts/dist/events.js +0 -11
  120. package/dist/libs/contracts/dist/events.js.map +0 -1
  121. package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
  122. package/dist/libs/contracts/dist/features.js +0 -7
  123. package/dist/libs/contracts/dist/features.js.map +0 -1
  124. package/dist/libs/contracts/dist/forms/forms.js +0 -1
  125. package/dist/libs/contracts/dist/index.js +0 -88
  126. package/dist/libs/contracts/dist/index.js.map +0 -1
  127. package/dist/libs/contracts/dist/install.js +0 -2
  128. package/dist/libs/contracts/dist/integrations/index.js +0 -18
  129. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
  130. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +0 -1
  131. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
  132. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +0 -1
  133. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  134. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
  135. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +0 -1
  136. package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -241
  137. package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +0 -1
  138. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -14
  139. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +0 -1
  140. package/dist/libs/contracts/dist/integrations/operations.js +0 -377
  141. package/dist/libs/contracts/dist/integrations/operations.js.map +0 -1
  142. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -53
  143. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +0 -1
  144. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -76
  145. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +0 -1
  146. package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -88
  147. package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +0 -1
  148. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -67
  149. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +0 -1
  150. package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
  151. package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -69
  152. package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +0 -1
  153. package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -69
  154. package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +0 -1
  155. package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -117
  156. package/dist/libs/contracts/dist/integrations/providers/powens.js.map +0 -1
  157. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -74
  158. package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +0 -1
  159. package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
  160. package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -84
  161. package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +0 -1
  162. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -62
  163. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +0 -1
  164. package/dist/libs/contracts/dist/jsonschema.js +0 -1
  165. package/dist/libs/contracts/dist/knowledge/index.js +0 -7
  166. package/dist/libs/contracts/dist/knowledge/operations.js +0 -306
  167. package/dist/libs/contracts/dist/knowledge/operations.js.map +0 -1
  168. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -35
  169. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +0 -1
  170. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -35
  171. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +0 -1
  172. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -39
  173. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +0 -1
  174. package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
  175. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -35
  176. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +0 -1
  177. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -38
  178. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +0 -1
  179. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -35
  180. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +0 -1
  181. package/dist/libs/contracts/dist/llm/exporters.js +0 -21
  182. package/dist/libs/contracts/dist/llm/exporters.js.map +0 -1
  183. package/dist/libs/contracts/dist/llm/index.js +0 -2
  184. package/dist/libs/contracts/dist/llm/prompts.js +0 -1
  185. package/dist/libs/contracts/dist/onboarding-base.js +0 -196
  186. package/dist/libs/contracts/dist/onboarding-base.js.map +0 -1
  187. package/dist/libs/contracts/dist/openapi.js +0 -1
  188. package/dist/libs/contracts/dist/operations/index.js +0 -2
  189. package/dist/libs/contracts/dist/operations/operation.js +0 -35
  190. package/dist/libs/contracts/dist/operations/operation.js.map +0 -1
  191. package/dist/libs/contracts/dist/operations/registry.js +0 -8
  192. package/dist/libs/contracts/dist/operations/registry.js.map +0 -1
  193. package/dist/libs/contracts/dist/ownership.js +0 -24
  194. package/dist/libs/contracts/dist/ownership.js.map +0 -1
  195. package/dist/libs/contracts/dist/presentations/index.js +0 -2
  196. package/dist/libs/contracts/dist/presentations/presentations.js +0 -8
  197. package/dist/libs/contracts/dist/presentations/presentations.js.map +0 -1
  198. package/dist/libs/contracts/dist/presentations/transform-engine.js +0 -12
  199. package/dist/libs/contracts/dist/presentations/transform-engine.js.map +0 -1
  200. package/dist/libs/contracts/dist/prompt.js +0 -1
  201. package/dist/libs/contracts/dist/promptRegistry.js +0 -1
  202. package/dist/libs/contracts/dist/regenerator/index.js +0 -1
  203. package/dist/libs/contracts/dist/regenerator/service.js +0 -7
  204. package/dist/libs/contracts/dist/regenerator/service.js.map +0 -1
  205. package/dist/libs/contracts/dist/registry-utils.js +0 -24
  206. package/dist/libs/contracts/dist/registry-utils.js.map +0 -1
  207. package/dist/libs/contracts/dist/resources.js +0 -1
  208. package/dist/libs/contracts/dist/schema/dist/index.js +0 -3874
  209. package/dist/libs/contracts/dist/schema/dist/index.js.map +0 -1
  210. package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
  211. package/dist/libs/contracts/dist/server/index.js +0 -8
  212. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
  213. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -3
  214. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
  215. package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
  216. package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
  217. package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
  218. package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
  219. package/dist/libs/contracts/dist/server/rest-express.js +0 -1
  220. package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
  221. package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
  222. package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
  223. package/dist/libs/contracts/dist/telemetry/index.js +0 -1
  224. package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
  225. package/dist/libs/contracts/dist/tests/index.js +0 -1
  226. package/dist/libs/contracts/dist/tests/runner.js +0 -2
  227. package/dist/libs/contracts/dist/workflow/index.js +0 -2
  228. package/dist/libs/contracts/dist/workflow/runner.js +0 -1
  229. package/dist/libs/contracts/dist/workflow/spec.js +0 -7
  230. package/dist/libs/contracts/dist/workflow/spec.js.map +0 -1
  231. package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +0 -122
  232. package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +0 -1
  233. package/dist/libs/contracts/dist/workspace-config/index.js +0 -1
  234. package/dist/libs/schema/dist/index.js +0 -4922
  235. package/dist/libs/schema/dist/index.js.map +0 -1
@@ -1,8 +1,7 @@
1
- import { E5, K5 } from "../libs/schema/dist/index.js";
2
- import { defineCommand, defineQuery } from "../libs/contracts/dist/operations/operation.js";
3
- import "../libs/contracts/dist/operations/index.js";
4
1
  import { GranularityEnum, LogLevelEnum, RunStatusEnum } from "./run.enum.js";
5
2
  import { RunInputModel, RunLogModel, RunModel, RunStepModel, RunSummaryModel, TimelineDataPointModel } from "./run.schema.js";
3
+ import { ScalarTypeEnum, defineSchemaModel } from "@lssm/lib.schema";
4
+ import { defineCommand, defineQuery } from "@lssm/lib.contracts/operations";
6
5
 
7
6
  //#region src/run/run.operation.ts
8
7
  const OWNERS = ["agent-console-team"];
@@ -21,11 +20,11 @@ const ExecuteAgentCommand = defineCommand({
21
20
  context: "Called from chat interface or API."
22
21
  },
23
22
  io: {
24
- input: K5({
23
+ input: defineSchemaModel({
25
24
  name: "ExecuteAgentInput",
26
25
  fields: {
27
26
  agentId: {
28
- type: E5.String_unsecure(),
27
+ type: ScalarTypeEnum.String_unsecure(),
29
28
  isOptional: false
30
29
  },
31
30
  input: {
@@ -33,32 +32,32 @@ const ExecuteAgentCommand = defineCommand({
33
32
  isOptional: false
34
33
  },
35
34
  sessionId: {
36
- type: E5.String_unsecure(),
35
+ type: ScalarTypeEnum.String_unsecure(),
37
36
  isOptional: true
38
37
  },
39
38
  metadata: {
40
- type: E5.JSONObject(),
39
+ type: ScalarTypeEnum.JSONObject(),
41
40
  isOptional: true
42
41
  },
43
42
  stream: {
44
- type: E5.Boolean(),
43
+ type: ScalarTypeEnum.Boolean(),
45
44
  isOptional: true
46
45
  },
47
46
  maxIterations: {
48
- type: E5.Int_unsecure(),
47
+ type: ScalarTypeEnum.Int_unsecure(),
49
48
  isOptional: true
50
49
  },
51
50
  timeoutMs: {
52
- type: E5.Int_unsecure(),
51
+ type: ScalarTypeEnum.Int_unsecure(),
53
52
  isOptional: true
54
53
  }
55
54
  }
56
55
  }),
57
- output: K5({
56
+ output: defineSchemaModel({
58
57
  name: "ExecuteAgentOutput",
59
58
  fields: {
60
59
  runId: {
61
- type: E5.String_unsecure(),
60
+ type: ScalarTypeEnum.String_unsecure(),
62
61
  isOptional: false
63
62
  },
64
63
  status: {
@@ -66,7 +65,7 @@ const ExecuteAgentCommand = defineCommand({
66
65
  isOptional: false
67
66
  },
68
67
  estimatedWaitMs: {
69
- type: E5.Int_unsecure(),
68
+ type: ScalarTypeEnum.Int_unsecure(),
70
69
  isOptional: true
71
70
  }
72
71
  }
@@ -112,24 +111,24 @@ const CancelRunCommand = defineCommand({
112
111
  context: "Called when user wants to abort a long-running task."
113
112
  },
114
113
  io: {
115
- input: K5({
114
+ input: defineSchemaModel({
116
115
  name: "CancelRunInput",
117
116
  fields: {
118
117
  runId: {
119
- type: E5.String_unsecure(),
118
+ type: ScalarTypeEnum.String_unsecure(),
120
119
  isOptional: false
121
120
  },
122
121
  reason: {
123
- type: E5.String_unsecure(),
122
+ type: ScalarTypeEnum.String_unsecure(),
124
123
  isOptional: true
125
124
  }
126
125
  }
127
126
  }),
128
- output: K5({
127
+ output: defineSchemaModel({
129
128
  name: "CancelRunOutput",
130
129
  fields: {
131
130
  success: {
132
- type: E5.Boolean(),
131
+ type: ScalarTypeEnum.Boolean(),
133
132
  isOptional: false
134
133
  },
135
134
  status: {
@@ -179,19 +178,19 @@ const GetRunQuery = defineQuery({
179
178
  context: "Run details page or monitoring."
180
179
  },
181
180
  io: {
182
- input: K5({
181
+ input: defineSchemaModel({
183
182
  name: "GetRunInput",
184
183
  fields: {
185
184
  runId: {
186
- type: E5.String_unsecure(),
185
+ type: ScalarTypeEnum.String_unsecure(),
187
186
  isOptional: false
188
187
  },
189
188
  includeSteps: {
190
- type: E5.Boolean(),
189
+ type: ScalarTypeEnum.Boolean(),
191
190
  isOptional: true
192
191
  },
193
192
  includeLogs: {
194
- type: E5.Boolean(),
193
+ type: ScalarTypeEnum.Boolean(),
195
194
  isOptional: true
196
195
  }
197
196
  }
@@ -221,23 +220,23 @@ const ListRunsQuery = defineQuery({
221
220
  context: "Run history/dashboard view."
222
221
  },
223
222
  io: {
224
- input: K5({
223
+ input: defineSchemaModel({
225
224
  name: "ListRunsInput",
226
225
  fields: {
227
226
  organizationId: {
228
- type: E5.String_unsecure(),
227
+ type: ScalarTypeEnum.String_unsecure(),
229
228
  isOptional: true
230
229
  },
231
230
  agentId: {
232
- type: E5.String_unsecure(),
231
+ type: ScalarTypeEnum.String_unsecure(),
233
232
  isOptional: true
234
233
  },
235
234
  userId: {
236
- type: E5.String_unsecure(),
235
+ type: ScalarTypeEnum.String_unsecure(),
237
236
  isOptional: true
238
237
  },
239
238
  sessionId: {
240
- type: E5.String_unsecure(),
239
+ type: ScalarTypeEnum.String_unsecure(),
241
240
  isOptional: true
242
241
  },
243
242
  status: {
@@ -245,26 +244,26 @@ const ListRunsQuery = defineQuery({
245
244
  isOptional: true
246
245
  },
247
246
  startDate: {
248
- type: E5.DateTime(),
247
+ type: ScalarTypeEnum.DateTime(),
249
248
  isOptional: true
250
249
  },
251
250
  endDate: {
252
- type: E5.DateTime(),
251
+ type: ScalarTypeEnum.DateTime(),
253
252
  isOptional: true
254
253
  },
255
254
  limit: {
256
- type: E5.Int_unsecure(),
255
+ type: ScalarTypeEnum.Int_unsecure(),
257
256
  isOptional: true,
258
257
  defaultValue: 20
259
258
  },
260
259
  offset: {
261
- type: E5.Int_unsecure(),
260
+ type: ScalarTypeEnum.Int_unsecure(),
262
261
  isOptional: true,
263
262
  defaultValue: 0
264
263
  }
265
264
  }
266
265
  }),
267
- output: K5({
266
+ output: defineSchemaModel({
268
267
  name: "ListRunsOutput",
269
268
  fields: {
270
269
  items: {
@@ -273,11 +272,11 @@ const ListRunsQuery = defineQuery({
273
272
  isOptional: false
274
273
  },
275
274
  total: {
276
- type: E5.Int_unsecure(),
275
+ type: ScalarTypeEnum.Int_unsecure(),
277
276
  isOptional: false
278
277
  },
279
278
  hasMore: {
280
- type: E5.Boolean(),
279
+ type: ScalarTypeEnum.Boolean(),
281
280
  isOptional: false
282
281
  }
283
282
  }
@@ -300,14 +299,14 @@ const GetRunStepsQuery = defineQuery({
300
299
  context: "Run details page - steps tab."
301
300
  },
302
301
  io: {
303
- input: K5({
302
+ input: defineSchemaModel({
304
303
  name: "GetRunStepsInput",
305
304
  fields: { runId: {
306
- type: E5.String_unsecure(),
305
+ type: ScalarTypeEnum.String_unsecure(),
307
306
  isOptional: false
308
307
  } }
309
308
  }),
310
- output: K5({
309
+ output: defineSchemaModel({
311
310
  name: "GetRunStepsOutput",
312
311
  fields: { steps: {
313
312
  type: RunStepModel,
@@ -333,11 +332,11 @@ const GetRunLogsQuery = defineQuery({
333
332
  context: "Run details page - logs tab."
334
333
  },
335
334
  io: {
336
- input: K5({
335
+ input: defineSchemaModel({
337
336
  name: "GetRunLogsInput",
338
337
  fields: {
339
338
  runId: {
340
- type: E5.String_unsecure(),
339
+ type: ScalarTypeEnum.String_unsecure(),
341
340
  isOptional: false
342
341
  },
343
342
  level: {
@@ -345,22 +344,22 @@ const GetRunLogsQuery = defineQuery({
345
344
  isOptional: true
346
345
  },
347
346
  stepId: {
348
- type: E5.String_unsecure(),
347
+ type: ScalarTypeEnum.String_unsecure(),
349
348
  isOptional: true
350
349
  },
351
350
  limit: {
352
- type: E5.Int_unsecure(),
351
+ type: ScalarTypeEnum.Int_unsecure(),
353
352
  isOptional: true,
354
353
  defaultValue: 100
355
354
  },
356
355
  offset: {
357
- type: E5.Int_unsecure(),
356
+ type: ScalarTypeEnum.Int_unsecure(),
358
357
  isOptional: true,
359
358
  defaultValue: 0
360
359
  }
361
360
  }
362
361
  }),
363
- output: K5({
362
+ output: defineSchemaModel({
364
363
  name: "GetRunLogsOutput",
365
364
  fields: {
366
365
  items: {
@@ -369,11 +368,11 @@ const GetRunLogsQuery = defineQuery({
369
368
  isOptional: false
370
369
  },
371
370
  total: {
372
- type: E5.Int_unsecure(),
371
+ type: ScalarTypeEnum.Int_unsecure(),
373
372
  isOptional: false
374
373
  },
375
374
  hasMore: {
376
- type: E5.Boolean(),
375
+ type: ScalarTypeEnum.Boolean(),
377
376
  isOptional: false
378
377
  }
379
378
  }
@@ -396,23 +395,23 @@ const GetRunMetricsQuery = defineQuery({
396
395
  context: "Analytics dashboard."
397
396
  },
398
397
  io: {
399
- input: K5({
398
+ input: defineSchemaModel({
400
399
  name: "GetRunMetricsInput",
401
400
  fields: {
402
401
  organizationId: {
403
- type: E5.String_unsecure(),
402
+ type: ScalarTypeEnum.String_unsecure(),
404
403
  isOptional: false
405
404
  },
406
405
  agentId: {
407
- type: E5.String_unsecure(),
406
+ type: ScalarTypeEnum.String_unsecure(),
408
407
  isOptional: true
409
408
  },
410
409
  startDate: {
411
- type: E5.DateTime(),
410
+ type: ScalarTypeEnum.DateTime(),
412
411
  isOptional: false
413
412
  },
414
413
  endDate: {
415
- type: E5.DateTime(),
414
+ type: ScalarTypeEnum.DateTime(),
416
415
  isOptional: false
417
416
  },
418
417
  granularity: {
@@ -422,35 +421,35 @@ const GetRunMetricsQuery = defineQuery({
422
421
  }
423
422
  }
424
423
  }),
425
- output: K5({
424
+ output: defineSchemaModel({
426
425
  name: "GetRunMetricsOutput",
427
426
  fields: {
428
427
  totalRuns: {
429
- type: E5.Int_unsecure(),
428
+ type: ScalarTypeEnum.Int_unsecure(),
430
429
  isOptional: false
431
430
  },
432
431
  completedRuns: {
433
- type: E5.Int_unsecure(),
432
+ type: ScalarTypeEnum.Int_unsecure(),
434
433
  isOptional: false
435
434
  },
436
435
  failedRuns: {
437
- type: E5.Int_unsecure(),
436
+ type: ScalarTypeEnum.Int_unsecure(),
438
437
  isOptional: false
439
438
  },
440
439
  totalTokens: {
441
- type: E5.Int_unsecure(),
440
+ type: ScalarTypeEnum.Int_unsecure(),
442
441
  isOptional: false
443
442
  },
444
443
  totalCostUsd: {
445
- type: E5.Float_unsecure(),
444
+ type: ScalarTypeEnum.Float_unsecure(),
446
445
  isOptional: false
447
446
  },
448
447
  averageDurationMs: {
449
- type: E5.Float_unsecure(),
448
+ type: ScalarTypeEnum.Float_unsecure(),
450
449
  isOptional: false
451
450
  },
452
451
  successRate: {
453
- type: E5.Float_unsecure(),
452
+ type: ScalarTypeEnum.Float_unsecure(),
454
453
  isOptional: false
455
454
  },
456
455
  timeline: {
@@ -1 +1 @@
1
- {"version":3,"file":"run.operation.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/run/run.operation.ts"],"sourcesContent":["import { defineCommand, defineQuery } from '@lssm/lib.contracts/operations';\nimport { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport { GranularityEnum, LogLevelEnum, RunStatusEnum } from './run.enum';\nimport {\n RunInputModel,\n RunLogModel,\n RunModel,\n RunStepModel,\n RunSummaryModel,\n TimelineDataPointModel,\n} from './run.schema';\n\nconst OWNERS = ['agent-console-team'] as const;\n\n/**\n * ExecuteAgentCommand - Starts a new agent run.\n */\nexport const ExecuteAgentCommand = defineCommand({\n meta: {\n name: 'agent.run.execute',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['run', 'execute'],\n description: 'Starts a new agent run with the given input.',\n goal: 'Execute an AI agent with user input.',\n context: 'Called from chat interface or API.',\n },\n io: {\n input: defineSchemaModel({\n name: 'ExecuteAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n input: { type: RunInputModel, isOptional: false },\n sessionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n metadata: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n stream: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n maxIterations: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n }),\n output: defineSchemaModel({\n name: 'ExecuteAgentOutput',\n fields: {\n runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: RunStatusEnum, isOptional: false },\n estimatedWaitMs: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n },\n },\n }),\n errors: {\n AGENT_NOT_FOUND: {\n description: 'The specified agent does not exist',\n http: 404,\n gqlCode: 'AGENT_NOT_FOUND',\n when: 'Agent ID is invalid',\n },\n AGENT_NOT_ACTIVE: {\n description: 'The specified agent is not active',\n http: 400,\n gqlCode: 'AGENT_NOT_ACTIVE',\n when: 'Agent is in draft/paused/archived state',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'run.started',\n version: 1,\n when: 'Run is queued',\n payload: RunSummaryModel,\n },\n ],\n audit: ['run.started'],\n },\n});\n\n/**\n * CancelRunCommand - Cancels an in-progress run.\n */\nexport const CancelRunCommand = defineCommand({\n meta: {\n name: 'agent.run.cancel',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['run', 'cancel'],\n description: 'Cancels an in-progress agent run.',\n goal: 'Stop a running agent execution.',\n context: 'Called when user wants to abort a long-running task.',\n },\n io: {\n input: defineSchemaModel({\n name: 'CancelRunInput',\n fields: {\n runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n reason: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n }),\n output: defineSchemaModel({\n name: 'CancelRunOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n status: { type: RunStatusEnum, isOptional: false },\n },\n }),\n errors: {\n RUN_NOT_FOUND: {\n description: 'The specified run does not exist',\n http: 404,\n gqlCode: 'RUN_NOT_FOUND',\n when: 'Run ID is invalid',\n },\n RUN_NOT_CANCELLABLE: {\n description: 'The run cannot be cancelled',\n http: 400,\n gqlCode: 'RUN_NOT_CANCELLABLE',\n when: 'Run is already completed/failed/cancelled',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'run.cancelled',\n version: 1,\n when: 'Run is cancelled',\n payload: RunSummaryModel,\n },\n ],\n audit: ['run.cancelled'],\n },\n});\n\n/**\n * GetRunQuery - Retrieves a run by ID.\n */\nexport const GetRunQuery = defineQuery({\n meta: {\n name: 'agent.run.get',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['run', 'get'],\n description: 'Retrieves a run by its ID with optional details.',\n goal: 'View detailed run information.',\n context: 'Run details page or monitoring.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetRunInput',\n fields: {\n runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n includeSteps: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n includeLogs: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n },\n }),\n output: RunModel,\n errors: {\n RUN_NOT_FOUND: {\n description: 'The specified run does not exist',\n http: 404,\n gqlCode: 'RUN_NOT_FOUND',\n when: 'Run ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n});\n\n/**\n * ListRunsQuery - Lists runs for an organization or agent.\n */\nexport const ListRunsQuery = defineQuery({\n meta: {\n name: 'agent.run.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['run', 'list'],\n description: 'Lists runs with optional filtering.',\n goal: 'Browse and search run history.',\n context: 'Run history/dashboard view.',\n },\n io: {\n input: defineSchemaModel({\n name: 'ListRunsInput',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n userId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n sessionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: RunStatusEnum, isOptional: true },\n startDate: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n endDate: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n }),\n output: defineSchemaModel({\n name: 'ListRunsOutput',\n fields: {\n items: { type: RunSummaryModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n hasMore: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n});\n\n/**\n * GetRunStepsQuery - Retrieves steps for a run.\n */\nexport const GetRunStepsQuery = defineQuery({\n meta: {\n name: 'agent.run.getSteps',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['run', 'steps'],\n description: 'Retrieves all steps for a specific run.',\n goal: 'View step-by-step execution details.',\n context: 'Run details page - steps tab.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetRunStepsInput',\n fields: {\n runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n output: defineSchemaModel({\n name: 'GetRunStepsOutput',\n fields: {\n steps: { type: RunStepModel, isArray: true, isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n});\n\n/**\n * GetRunLogsQuery - Retrieves logs for a run.\n */\nexport const GetRunLogsQuery = defineQuery({\n meta: {\n name: 'agent.run.getLogs',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['run', 'logs'],\n description: 'Retrieves all logs for a specific run.',\n goal: 'Debug and audit run execution.',\n context: 'Run details page - logs tab.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetRunLogsInput',\n fields: {\n runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n level: { type: LogLevelEnum, isOptional: true },\n stepId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 100,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n }),\n output: defineSchemaModel({\n name: 'GetRunLogsOutput',\n fields: {\n items: { type: RunLogModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n hasMore: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n});\n\n/**\n * GetRunMetricsQuery - Retrieves aggregated metrics for runs.\n */\nexport const GetRunMetricsQuery = defineQuery({\n meta: {\n name: 'agent.run.getMetrics',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['run', 'metrics'],\n description: 'Retrieves aggregated metrics for runs within a time period.',\n goal: 'Monitor and analyze agent usage.',\n context: 'Analytics dashboard.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetRunMetricsInput',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n startDate: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n endDate: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n granularity: {\n type: GranularityEnum,\n isOptional: true,\n defaultValue: 'day',\n },\n },\n }),\n output: defineSchemaModel({\n name: 'GetRunMetricsOutput',\n fields: {\n totalRuns: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n completedRuns: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n },\n failedRuns: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n totalTokens: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n totalCostUsd: {\n type: ScalarTypeEnum.Float_unsecure(),\n isOptional: false,\n },\n averageDurationMs: {\n type: ScalarTypeEnum.Float_unsecure(),\n isOptional: false,\n },\n successRate: {\n type: ScalarTypeEnum.Float_unsecure(),\n isOptional: false,\n },\n timeline: {\n type: TimelineDataPointModel,\n isArray: true,\n isOptional: false,\n },\n },\n }),\n },\n policy: { auth: 'user' },\n});\n"],"mappings":";;;;;;;AAYA,MAAM,SAAS,CAAC,qBAAqB;;;;AAKrC,MAAa,sBAAsB,cAAc;CAC/C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,M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AAgB;KACd,MAAMC,GAAe,iBAAiB;KACtC,YAAY;KACb;IACD,SAAS;KAAE,MAAMA,GAAe,iBAAiB;KAAE,YAAY;KAAM;IACrE,WAAW;KAAE,MAAMA,GAAe,UAAU;KAAE,YAAY;KAAO;IACjE,SAAS;KAAE,MAAMA,GAAe,UAAU;KAAE,YAAY;KAAO;IAC/D,aAAa;KACX,MAAM;KACN,YAAY;KACZ,cAAc;KACf;IACF;GACF,CAAC;EACF,QAAQD,GAAkB;GACxB,MAAM;GACN,QAAQ;IACN,WAAW;KAAE,MAAMC,GAAe,cAAc;KAAE,YAAY;KAAO;IACrE,eAAe;KACb,MAAMA,GAAe,cAAc;KACnC,YAAY;KACb;IACD,YAAY;KAAE,MAAMA,GAAe,cAAc;KAAE,YAAY;KAAO;IACtE,aAAa;KAAE,MAAMA,GAAe,cAAc;KAAE,YAAY;KAAO;IACvE,cAAc;KACZ,MAAMA,GAAe,gBAAgB;KACrC,YAAY;KACb;IACD,mBAAmB;KACjB,MAAMA,GAAe,gBAAgB;KACrC,YAAY;KACb;IACD,aAAa;KACX,MAAMA,GAAe,gBAAgB;KACrC,YAAY;KACb;IACD,UAAU;KACR,MAAM;KACN,SAAS;KACT,YAAY;KACb;IACF;GACF,CAAC;EACH;CACD,QAAQ,EAAE,MAAM,QAAQ;CACzB,CAAC"}
1
+ {"version":3,"file":"run.operation.js","names":[],"sources":["../../src/run/run.operation.ts"],"sourcesContent":["import { defineCommand, defineQuery } from '@lssm/lib.contracts/operations';\nimport { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport { GranularityEnum, LogLevelEnum, RunStatusEnum } from './run.enum';\nimport {\n RunInputModel,\n RunLogModel,\n RunModel,\n RunStepModel,\n RunSummaryModel,\n TimelineDataPointModel,\n} from './run.schema';\n\nconst OWNERS = ['agent-console-team'] as const;\n\n/**\n * ExecuteAgentCommand - Starts a new agent run.\n */\nexport const ExecuteAgentCommand = defineCommand({\n meta: {\n name: 'agent.run.execute',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['run', 'execute'],\n description: 'Starts a new agent run with the given input.',\n goal: 'Execute an AI agent with user input.',\n context: 'Called from chat interface or API.',\n },\n io: {\n input: defineSchemaModel({\n name: 'ExecuteAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n input: { type: RunInputModel, isOptional: false },\n sessionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n metadata: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n stream: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n maxIterations: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n }),\n output: defineSchemaModel({\n name: 'ExecuteAgentOutput',\n fields: {\n runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: RunStatusEnum, isOptional: false },\n estimatedWaitMs: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n },\n },\n }),\n errors: {\n AGENT_NOT_FOUND: {\n description: 'The specified agent does not exist',\n http: 404,\n gqlCode: 'AGENT_NOT_FOUND',\n when: 'Agent ID is invalid',\n },\n AGENT_NOT_ACTIVE: {\n description: 'The specified agent is not active',\n http: 400,\n gqlCode: 'AGENT_NOT_ACTIVE',\n when: 'Agent is in draft/paused/archived state',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'run.started',\n version: 1,\n when: 'Run is queued',\n payload: RunSummaryModel,\n },\n ],\n audit: ['run.started'],\n },\n});\n\n/**\n * CancelRunCommand - Cancels an in-progress run.\n */\nexport const CancelRunCommand = defineCommand({\n meta: {\n name: 'agent.run.cancel',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['run', 'cancel'],\n description: 'Cancels an in-progress agent run.',\n goal: 'Stop a running agent execution.',\n context: 'Called when user wants to abort a long-running task.',\n },\n io: {\n input: defineSchemaModel({\n name: 'CancelRunInput',\n fields: {\n runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n reason: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n }),\n output: defineSchemaModel({\n name: 'CancelRunOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n status: { type: RunStatusEnum, isOptional: false },\n },\n }),\n errors: {\n RUN_NOT_FOUND: {\n description: 'The specified run does not exist',\n http: 404,\n gqlCode: 'RUN_NOT_FOUND',\n when: 'Run ID is invalid',\n },\n RUN_NOT_CANCELLABLE: {\n description: 'The run cannot be cancelled',\n http: 400,\n gqlCode: 'RUN_NOT_CANCELLABLE',\n when: 'Run is already completed/failed/cancelled',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'run.cancelled',\n version: 1,\n when: 'Run is cancelled',\n payload: RunSummaryModel,\n },\n ],\n audit: ['run.cancelled'],\n },\n});\n\n/**\n * GetRunQuery - Retrieves a run by ID.\n */\nexport const GetRunQuery = defineQuery({\n meta: {\n name: 'agent.run.get',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['run', 'get'],\n description: 'Retrieves a run by its ID with optional details.',\n goal: 'View detailed run information.',\n context: 'Run details page or monitoring.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetRunInput',\n fields: {\n runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n includeSteps: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n includeLogs: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n },\n }),\n output: RunModel,\n errors: {\n RUN_NOT_FOUND: {\n description: 'The specified run does not exist',\n http: 404,\n gqlCode: 'RUN_NOT_FOUND',\n when: 'Run ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n});\n\n/**\n * ListRunsQuery - Lists runs for an organization or agent.\n */\nexport const ListRunsQuery = defineQuery({\n meta: {\n name: 'agent.run.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['run', 'list'],\n description: 'Lists runs with optional filtering.',\n goal: 'Browse and search run history.',\n context: 'Run history/dashboard view.',\n },\n io: {\n input: defineSchemaModel({\n name: 'ListRunsInput',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n userId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n sessionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: RunStatusEnum, isOptional: true },\n startDate: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n endDate: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n }),\n output: defineSchemaModel({\n name: 'ListRunsOutput',\n fields: {\n items: { type: RunSummaryModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n hasMore: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n});\n\n/**\n * GetRunStepsQuery - Retrieves steps for a run.\n */\nexport const GetRunStepsQuery = defineQuery({\n meta: {\n name: 'agent.run.getSteps',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['run', 'steps'],\n description: 'Retrieves all steps for a specific run.',\n goal: 'View step-by-step execution details.',\n context: 'Run details page - steps tab.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetRunStepsInput',\n fields: {\n runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n output: defineSchemaModel({\n name: 'GetRunStepsOutput',\n fields: {\n steps: { type: RunStepModel, isArray: true, isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n});\n\n/**\n * GetRunLogsQuery - Retrieves logs for a run.\n */\nexport const GetRunLogsQuery = defineQuery({\n meta: {\n name: 'agent.run.getLogs',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['run', 'logs'],\n description: 'Retrieves all logs for a specific run.',\n goal: 'Debug and audit run execution.',\n context: 'Run details page - logs tab.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetRunLogsInput',\n fields: {\n runId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n level: { type: LogLevelEnum, isOptional: true },\n stepId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 100,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n }),\n output: defineSchemaModel({\n name: 'GetRunLogsOutput',\n fields: {\n items: { type: RunLogModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n hasMore: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n});\n\n/**\n * GetRunMetricsQuery - Retrieves aggregated metrics for runs.\n */\nexport const GetRunMetricsQuery = defineQuery({\n meta: {\n name: 'agent.run.getMetrics',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['run', 'metrics'],\n description: 'Retrieves aggregated metrics for runs within a time period.',\n goal: 'Monitor and analyze agent usage.',\n context: 'Analytics dashboard.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetRunMetricsInput',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n startDate: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n endDate: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n granularity: {\n type: GranularityEnum,\n isOptional: true,\n defaultValue: 'day',\n },\n },\n }),\n output: defineSchemaModel({\n name: 'GetRunMetricsOutput',\n fields: {\n totalRuns: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n completedRuns: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n },\n failedRuns: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n totalTokens: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n totalCostUsd: {\n type: ScalarTypeEnum.Float_unsecure(),\n isOptional: false,\n },\n averageDurationMs: {\n type: ScalarTypeEnum.Float_unsecure(),\n isOptional: false,\n },\n successRate: {\n type: ScalarTypeEnum.Float_unsecure(),\n isOptional: false,\n },\n timeline: {\n type: TimelineDataPointModel,\n isArray: true,\n isOptional: false,\n },\n },\n }),\n },\n policy: { auth: 'user' },\n});\n"],"mappings":";;;;;;AAYA,MAAM,SAAS,CAAC,qBAAqB;;;;AAKrC,MAAa,sBAAsB,cAAc;CAC/C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,OAAO,UAAU;EACxB,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO,kBAAkB;GACvB,MAAM;GACN,QAAQ;IACN,SAAS;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACtE,OAAO;KAAE,MAAM;KAAe,YAAY;KAAO;IACjD,WAAW;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAM;IACvE,UAAU;KAAE,MAAM,eAAe,YAAY;KAAE,YAAY;KAAM;IACjE,QAAQ;KAAE,MAAM,eAAe,SAAS;KAAE,YAAY;KAAM;IAC5D,eAAe;KACb,MAAM,eAAe,cAAc;KACnC,YAAY;KACb;IACD,WAAW;KAAE,MAAM,eAAe,cAAc;KAAE,YAAY;KAAM;IACrE;GACF,CAAC;EACF,QAAQ,kBAAkB;GACxB,MAAM;GACN,QAAQ;IACN,OAAO;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACpE,QAAQ;KAAE,MAAM;KAAe,YAAY;KAAO;IAClD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