@shipfox/api-workflows-dto 12.2.0 → 12.5.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 (47) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +12 -0
  3. package/dist/events.d.ts +18 -0
  4. package/dist/events.d.ts.map +1 -1
  5. package/dist/events.js +9 -1
  6. package/dist/events.js.map +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +1 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/schemas/evaluation-trace.d.ts +36 -0
  12. package/dist/schemas/evaluation-trace.d.ts.map +1 -0
  13. package/dist/schemas/evaluation-trace.js +25 -0
  14. package/dist/schemas/evaluation-trace.js.map +1 -0
  15. package/dist/schemas/index.d.ts +3 -2
  16. package/dist/schemas/index.d.ts.map +1 -1
  17. package/dist/schemas/index.js +3 -2
  18. package/dist/schemas/index.js.map +1 -1
  19. package/dist/schemas/job-execution.d.ts +21 -0
  20. package/dist/schemas/job-execution.d.ts.map +1 -1
  21. package/dist/schemas/job.d.ts +22 -0
  22. package/dist/schemas/job.d.ts.map +1 -1
  23. package/dist/schemas/job.js +7 -1
  24. package/dist/schemas/job.js.map +1 -1
  25. package/dist/schemas/step.d.ts +89 -0
  26. package/dist/schemas/step.d.ts.map +1 -1
  27. package/dist/schemas/step.js +13 -0
  28. package/dist/schemas/step.js.map +1 -1
  29. package/dist/schemas/workflow-run-detail.d.ts +219 -0
  30. package/dist/schemas/workflow-run-detail.d.ts.map +1 -1
  31. package/dist/schemas/workflow-run-detail.js +12 -1
  32. package/dist/schemas/workflow-run-detail.js.map +1 -1
  33. package/dist/tsconfig.test.tsbuildinfo +1 -1
  34. package/package.json +1 -1
  35. package/src/events.test.ts +40 -0
  36. package/src/events.ts +8 -0
  37. package/src/index.ts +11 -0
  38. package/src/schemas/evaluation-trace.test.ts +40 -0
  39. package/src/schemas/evaluation-trace.ts +30 -0
  40. package/src/schemas/index.ts +13 -0
  41. package/src/schemas/job.test.ts +16 -0
  42. package/src/schemas/job.ts +6 -0
  43. package/src/schemas/step-source-location.test.ts +2 -0
  44. package/src/schemas/step.test.ts +17 -1
  45. package/src/schemas/step.ts +20 -0
  46. package/src/schemas/workflow-run-detail.ts +15 -1
  47. package/tsconfig.build.tsbuildinfo +1 -1
@@ -1,2 +1,2 @@
1
1
  $ shipfox-swc
2
- Successfully compiled: 15 files with swc (461.04ms)
2
+ Successfully compiled: 16 files with swc (548.29ms)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @shipfox/api-workflows-dto
2
2
 
3
+ ## 12.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5b1838c: Expose actionable status reasons and messages when materialized job outputs cannot be persisted.
8
+
9
+ ## 12.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 4b0731e: Adds workflow troubleshooting details, evaluation traces, failure annotations, runner context, step output metadata, and lazy paginated annotation summaries.
14
+
3
15
  ## 12.2.0
4
16
 
5
17
  ### Minor Changes
package/dist/events.d.ts CHANGED
@@ -124,6 +124,7 @@ export declare const workflowsJobEventDeliveredSchema: z.ZodObject<{
124
124
  export type WorkflowsJobEventDeliveredEventDto = z.infer<typeof workflowsJobEventDeliveredSchema>;
125
125
  export declare const workflowsJobTerminatedSchema: z.ZodObject<{
126
126
  jobId: z.ZodString;
127
+ jobExecutionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
128
  workflowRunId: z.ZodString;
128
129
  workflowRunAttemptId: z.ZodString;
129
130
  status: z.ZodEnum<{
@@ -138,6 +139,8 @@ export declare const workflowsJobTerminatedSchema: z.ZodObject<{
138
139
  condition_rejected: "condition_rejected";
139
140
  default_gate_rejected: "default_gate_rejected";
140
141
  dependency_not_completed: "dependency_not_completed";
142
+ output_invalid: "output_invalid";
143
+ output_too_large: "output_too_large";
141
144
  run_cancelled: "run_cancelled";
142
145
  runner_lost: "runner_lost";
143
146
  step_failed: "step_failed";
@@ -145,6 +148,7 @@ export declare const workflowsJobTerminatedSchema: z.ZodObject<{
145
148
  unknown: "unknown";
146
149
  user_cancelled: "user_cancelled";
147
150
  }>>;
151
+ statusReasonMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
152
  }, z.core.$strip>;
149
153
  export type WorkflowsJobTerminatedEventDto = z.infer<typeof workflowsJobTerminatedSchema>;
150
154
  export declare const workflowsJobStepsSettledSchema: z.ZodObject<{
@@ -176,6 +180,11 @@ export declare const workflowsStepAttemptTerminatedSchema: z.ZodObject<{
176
180
  projectId: z.ZodString;
177
181
  stepId: z.ZodString;
178
182
  attempt: z.ZodNumber;
183
+ status: z.ZodOptional<z.ZodEnum<{
184
+ cancelled: "cancelled";
185
+ failed: "failed";
186
+ succeeded: "succeeded";
187
+ }>>;
179
188
  logOutcome: z.ZodEnum<{
180
189
  abandoned: "abandoned";
181
190
  drained: "drained";
@@ -277,6 +286,7 @@ export declare const workflowsEventSchemas: {
277
286
  }, z.core.$strip>;
278
287
  "workflows.job.terminated": z.ZodObject<{
279
288
  jobId: z.ZodString;
289
+ jobExecutionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
280
290
  workflowRunId: z.ZodString;
281
291
  workflowRunAttemptId: z.ZodString;
282
292
  status: z.ZodEnum<{
@@ -291,6 +301,8 @@ export declare const workflowsEventSchemas: {
291
301
  condition_rejected: "condition_rejected";
292
302
  default_gate_rejected: "default_gate_rejected";
293
303
  dependency_not_completed: "dependency_not_completed";
304
+ output_invalid: "output_invalid";
305
+ output_too_large: "output_too_large";
294
306
  run_cancelled: "run_cancelled";
295
307
  runner_lost: "runner_lost";
296
308
  step_failed: "step_failed";
@@ -298,6 +310,7 @@ export declare const workflowsEventSchemas: {
298
310
  unknown: "unknown";
299
311
  user_cancelled: "user_cancelled";
300
312
  }>>;
313
+ statusReasonMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
314
  }, z.core.$strip>;
302
315
  "workflows.job.steps_settled": z.ZodObject<{
303
316
  jobId: z.ZodString;
@@ -326,6 +339,11 @@ export declare const workflowsEventSchemas: {
326
339
  projectId: z.ZodString;
327
340
  stepId: z.ZodString;
328
341
  attempt: z.ZodNumber;
342
+ status: z.ZodOptional<z.ZodEnum<{
343
+ cancelled: "cancelled";
344
+ failed: "failed";
345
+ succeeded: "succeeded";
346
+ }>>;
329
347
  logOutcome: z.ZodEnum<{
330
348
  abandoned: "abandoned";
331
349
  drained: "drained";
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAOtB,eAAO,MAAM,sCAAsC,EACjD,wCAAiD,CAAC;AAEpD,eAAO,MAAM,iCAAiC,EAAG,mCAA4C,CAAC;AAE9F,eAAO,MAAM,gCAAgC,EAAG,kCAA2C,CAAC;AAC5F,eAAO,MAAM,iCAAiC,EAAG,mCAA4C,CAAC;AAC9F,eAAO,MAAM,uBAAuB,EAAG,yBAAkC,CAAC;AAC1E,eAAO,MAAM,6BAA6B,EAAG,+BAAwC,CAAC;AAGtF,eAAO,MAAM,wBAAwB,EAAG,0BAAmC,CAAC;AAI5E,eAAO,MAAM,2BAA2B,EAAG,6BAAsC,CAAC;AAKlF,eAAO,MAAM,+BAA+B,EAAG,iCAA0C,CAAC;AAC1F,eAAO,MAAM,iCAAiC,EAAG,mCAA4C,CAAC;AAE9F,eAAO,MAAM,wCAAwC;;;;;;;iBAOnD,CAAC;AACH,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAC9D,OAAO,wCAAwC,CAChD,CAAC;AAIF,eAAO,MAAM,+BAA+B;;;;EAA+C,CAAC;AAC5F,eAAO,MAAM,uBAAuB;;;;;EAA0D,CAAC;AAC/F,eAAO,MAAM,oBAAoB;;;;EAAkC,CAAC;AAEpE,eAAO,MAAM,oCAAoC;;;;;;;;;iBAK/C,CAAC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,MAAM,WAAW,oBAAoB;IACnC,CAAC,sCAAsC,CAAC,EAAE,0CAA0C,CAAC;IACrF,CAAC,iCAAiC,CAAC,EAAE,sCAAsC,CAAC;IAC5E,CAAC,gCAAgC,CAAC,EAAE,qCAAqC,CAAC;IAC1E,CAAC,iCAAiC,CAAC,EAAE,qCAAqC,CAAC;IAC3E,CAAC,uBAAuB,CAAC,EAAE,6BAA6B,CAAC;IACzD,CAAC,6BAA6B,CAAC,EAAE,kCAAkC,CAAC;IACpE,CAAC,wBAAwB,CAAC,EAAE,8BAA8B,CAAC;IAC3D,CAAC,2BAA2B,CAAC,EAAE,gCAAgC,CAAC;IAChE,CAAC,+BAA+B,CAAC,EAAE,oCAAoC,CAAC;IACxE,CAAC,iCAAiC,CAAC,EAAE,sCAAsC,CAAC;CAC7E;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWuB,CAAC"}
package/dist/events.js CHANGED
@@ -116,10 +116,15 @@ export const workflowsJobEventDeliveredSchema = z.object({
116
116
  });
117
117
  export const workflowsJobTerminatedSchema = z.object({
118
118
  jobId: nonEmptyStringSchema,
119
+ // Optional for compatibility with terminal events written before the current execution
120
+ // identity became part of the event contract. New events always include the value, or null
121
+ // when the job was terminated before an execution was created.
122
+ jobExecutionId: nonEmptyStringSchema.nullable().optional(),
119
123
  workflowRunId: nonEmptyStringSchema,
120
124
  workflowRunAttemptId: nonEmptyStringSchema,
121
125
  status: jobTerminalStatusSchema,
122
- statusReason: jobStatusReasonSchema.nullable()
126
+ statusReason: jobStatusReasonSchema.nullable(),
127
+ statusReasonMessage: z.string().nullable().optional()
123
128
  });
124
129
  const settledStatusSchema = z.enum([
125
130
  'succeeded',
@@ -149,6 +154,9 @@ export const workflowsStepAttemptTerminatedSchema = z.object({
149
154
  projectId: nonEmptyStringSchema,
150
155
  stepId: nonEmptyStringSchema,
151
156
  attempt: z.number().int().positive(),
157
+ // Optional so the subscriber can continue to consume terminal events written
158
+ // before the status field was added. New outbox events always include it.
159
+ status: terminalStatusSchema.optional(),
152
160
  logOutcome: logOutcomeSchema
153
161
  });
154
162
  export const workflowsEventSchemas = {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/events.ts"],"sourcesContent":["import {z} from 'zod';\nimport {jobStatusReasonSchema} from './schemas/job.js';\nimport {listeningTriggerSchema} from './schemas/job-listening.js';\nimport {logOutcomeSchema} from './schemas/log-outcome.js';\n\nconst nonEmptyStringSchema = z.string().nonempty();\n\nexport const WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED =\n 'workflows.workflow_run_attempt.created' as const;\n// Terminal fact for a workflow run, written in the same transaction as the status flip.\nexport const WORKFLOWS_WORKFLOW_RUN_TERMINATED = 'workflows.workflow_run.terminated' as const;\n// Intent fact for cooperative run cancellation. Consumers use this to stop orchestration.\nexport const WORKFLOWS_WORKFLOW_RUN_CANCELLED = 'workflows.workflow_run.cancelled' as const;\nexport const WORKFLOWS_JOB_EXECUTION_TIMED_OUT = 'workflows.job_execution.timed_out' as const;\nexport const WORKFLOWS_JOB_ACTIVATED = 'workflows.job.activated' as const;\nexport const WORKFLOWS_JOB_EVENT_DELIVERED = 'workflows.job_event.delivered' as const;\n// Terminal fact for a job: the single reliable \"this job is over\" signal, written in\n// the same transaction as the status flip, on every terminal path.\nexport const WORKFLOWS_JOB_TERMINATED = 'workflows.job.terminated' as const;\n// Internal signal, not a terminal fact: a job's steps have all settled, so the\n// on-job-steps-settled subscriber can raise the Temporal JOB_FINISHED_SIGNAL. Fires\n// before the job row is terminal; observe WORKFLOWS_JOB_TERMINATED for the outcome.\nexport const WORKFLOWS_JOB_STEPS_SETTLED = 'workflows.job.steps_settled' as const;\n// Written in the same transaction as a durable gate restart: the failed attempt\n// plus the rewind of the projection from `restart_from`. The pull-based runner\n// re-dispatches the rewound step on its next pull, so consumers must treat this\n// at-least-once outbox event as idempotent audit data.\nexport const WORKFLOWS_STEP_RESTART_ENQUEUED = 'workflows.step.restart_enqueued' as const;\nexport const WORKFLOWS_STEP_ATTEMPT_TERMINATED = 'workflows.step_attempt.terminated' as const;\n\nexport const workflowsWorkflowRunAttemptCreatedSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n attempt: z.number().int().positive(),\n workspaceId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n definitionId: nonEmptyStringSchema,\n});\nexport type WorkflowsWorkflowRunAttemptCreatedEventDto = z.infer<\n typeof workflowsWorkflowRunAttemptCreatedSchema\n>;\n\n// Keep outbox terminal statuses narrower than the public status schemas, which\n// also carry pending/running and job-only skipped.\nexport const workflowRunTerminalStatusSchema = z.enum(['succeeded', 'failed', 'cancelled']);\nexport const jobTerminalStatusSchema = z.enum(['succeeded', 'failed', 'cancelled', 'skipped']);\nexport const terminalStatusSchema = workflowRunTerminalStatusSchema;\n\nexport const workflowsWorkflowRunTerminatedSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n status: workflowRunTerminalStatusSchema,\n});\nexport type WorkflowsWorkflowRunTerminatedEventDto = z.infer<\n typeof workflowsWorkflowRunTerminatedSchema\n>;\n\nexport const workflowsWorkflowRunCancelledSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n});\nexport type WorkflowsWorkflowRunCancelledEventDto = z.infer<\n typeof workflowsWorkflowRunCancelledSchema\n>;\n\nexport const workflowsJobExecutionTimedOutSchema = z.object({\n jobId: nonEmptyStringSchema,\n jobExecutionId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n});\nexport type WorkflowsJobExecutionTimedOutEventDto = z.infer<\n typeof workflowsJobExecutionTimedOutSchema\n>;\n\nconst workflowsJobActivatedBaseSchema = z.object({\n jobId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n});\n\n// Keep this passive DTO schema local so the transport package does not depend on expression runtime code.\nexport type ListenerFilterExpressionType =\n | 'string'\n | 'int'\n | 'double'\n | 'bool'\n | 'null'\n | 'timestamp'\n | {kind: 'object'; fields: Record<string, ListenerFilterExpressionType>}\n | {kind: 'map'}\n | {kind: 'list'; element: ListenerFilterExpressionType};\n\nconst listenerFilterExpressionTypeSchema: z.ZodType<ListenerFilterExpressionType> = z.lazy(() =>\n z.union([\n z.enum(['string', 'int', 'double', 'bool', 'null', 'timestamp']),\n z.object({\n kind: z.literal('object'),\n fields: z.record(z.string(), listenerFilterExpressionTypeSchema),\n }),\n z.object({kind: z.literal('map')}),\n z.object({kind: z.literal('list'), element: listenerFilterExpressionTypeSchema}),\n ]),\n);\n\nexport const listenerFilterOutputTypesSchema = z.record(\n z.string(),\n z.record(z.string(), listenerFilterExpressionTypeSchema),\n);\nexport type ListenerFilterOutputTypes = z.infer<typeof listenerFilterOutputTypesSchema>;\n\nconst resolvedListeningTriggerSchema = listeningTriggerSchema.extend({\n filter_snapshot: z.record(z.string(), z.unknown()).optional(),\n filter_output_types: listenerFilterOutputTypesSchema.optional(),\n});\n\nexport const workflowsJobActivatedSchema = z.discriminatedUnion('mode', [\n workflowsJobActivatedBaseSchema.extend({\n mode: z.literal('one_shot'),\n on: z.array(resolvedListeningTriggerSchema).nullable().optional(),\n until: z.array(resolvedListeningTriggerSchema).nullable().optional(),\n }),\n workflowsJobActivatedBaseSchema.extend({\n mode: z.literal('listening'),\n on: z.array(resolvedListeningTriggerSchema).nonempty(),\n until: z.array(resolvedListeningTriggerSchema).nullable(),\n }),\n]);\nexport type WorkflowsJobActivatedEventDto = z.infer<typeof workflowsJobActivatedSchema>;\n\nexport const workflowsJobEventDeliveredSchema = z.object({\n jobId: nonEmptyStringSchema,\n disposition: z.enum(['fire', 'resolve']),\n eventRef: nonEmptyStringSchema,\n eventName: nonEmptyStringSchema,\n});\nexport type WorkflowsJobEventDeliveredEventDto = z.infer<typeof workflowsJobEventDeliveredSchema>;\n\nexport const workflowsJobTerminatedSchema = z.object({\n jobId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n status: jobTerminalStatusSchema,\n statusReason: jobStatusReasonSchema.nullable(),\n});\nexport type WorkflowsJobTerminatedEventDto = z.infer<typeof workflowsJobTerminatedSchema>;\n\nconst settledStatusSchema = z.enum(['succeeded', 'failed']);\n\nexport const workflowsJobStepsSettledSchema = z.object({\n jobId: nonEmptyStringSchema,\n jobExecutionId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n status: settledStatusSchema,\n});\nexport type WorkflowsJobStepsSettledEventDto = z.infer<typeof workflowsJobStepsSettledSchema>;\n\nexport const workflowsStepRestartEnqueuedSchema = z.object({\n jobId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n failedStepId: nonEmptyStringSchema,\n failedStepAttempt: z.number(),\n restartFromStepId: nonEmptyStringSchema,\n feedback: nonEmptyStringSchema,\n});\nexport type WorkflowsStepRestartEnqueuedEventDto = z.infer<\n typeof workflowsStepRestartEnqueuedSchema\n>;\n\nexport const workflowsStepAttemptTerminatedSchema = z.object({\n jobId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n stepId: nonEmptyStringSchema,\n attempt: z.number().int().positive(),\n logOutcome: logOutcomeSchema,\n});\nexport type WorkflowsStepAttemptTerminatedEventDto = z.infer<\n typeof workflowsStepAttemptTerminatedSchema\n>;\n\nexport interface WorkflowsEventMapDto {\n [WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED]: WorkflowsWorkflowRunAttemptCreatedEventDto;\n [WORKFLOWS_WORKFLOW_RUN_TERMINATED]: WorkflowsWorkflowRunTerminatedEventDto;\n [WORKFLOWS_WORKFLOW_RUN_CANCELLED]: WorkflowsWorkflowRunCancelledEventDto;\n [WORKFLOWS_JOB_EXECUTION_TIMED_OUT]: WorkflowsJobExecutionTimedOutEventDto;\n [WORKFLOWS_JOB_ACTIVATED]: WorkflowsJobActivatedEventDto;\n [WORKFLOWS_JOB_EVENT_DELIVERED]: WorkflowsJobEventDeliveredEventDto;\n [WORKFLOWS_JOB_TERMINATED]: WorkflowsJobTerminatedEventDto;\n [WORKFLOWS_JOB_STEPS_SETTLED]: WorkflowsJobStepsSettledEventDto;\n [WORKFLOWS_STEP_RESTART_ENQUEUED]: WorkflowsStepRestartEnqueuedEventDto;\n [WORKFLOWS_STEP_ATTEMPT_TERMINATED]: WorkflowsStepAttemptTerminatedEventDto;\n}\n\nexport const workflowsEventSchemas = {\n [WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED]: workflowsWorkflowRunAttemptCreatedSchema,\n [WORKFLOWS_WORKFLOW_RUN_TERMINATED]: workflowsWorkflowRunTerminatedSchema,\n [WORKFLOWS_WORKFLOW_RUN_CANCELLED]: workflowsWorkflowRunCancelledSchema,\n [WORKFLOWS_JOB_EXECUTION_TIMED_OUT]: workflowsJobExecutionTimedOutSchema,\n [WORKFLOWS_JOB_ACTIVATED]: workflowsJobActivatedSchema,\n [WORKFLOWS_JOB_EVENT_DELIVERED]: workflowsJobEventDeliveredSchema,\n [WORKFLOWS_JOB_TERMINATED]: workflowsJobTerminatedSchema,\n [WORKFLOWS_JOB_STEPS_SETTLED]: workflowsJobStepsSettledSchema,\n [WORKFLOWS_STEP_RESTART_ENQUEUED]: workflowsStepRestartEnqueuedSchema,\n [WORKFLOWS_STEP_ATTEMPT_TERMINATED]: workflowsStepAttemptTerminatedSchema,\n} satisfies Record<keyof WorkflowsEventMapDto, z.ZodType>;\n"],"names":["z","jobStatusReasonSchema","listeningTriggerSchema","logOutcomeSchema","nonEmptyStringSchema","string","nonempty","WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED","WORKFLOWS_WORKFLOW_RUN_TERMINATED","WORKFLOWS_WORKFLOW_RUN_CANCELLED","WORKFLOWS_JOB_EXECUTION_TIMED_OUT","WORKFLOWS_JOB_ACTIVATED","WORKFLOWS_JOB_EVENT_DELIVERED","WORKFLOWS_JOB_TERMINATED","WORKFLOWS_JOB_STEPS_SETTLED","WORKFLOWS_STEP_RESTART_ENQUEUED","WORKFLOWS_STEP_ATTEMPT_TERMINATED","workflowsWorkflowRunAttemptCreatedSchema","object","workflowRunId","workflowRunAttemptId","attempt","number","int","positive","workspaceId","projectId","definitionId","workflowRunTerminalStatusSchema","enum","jobTerminalStatusSchema","terminalStatusSchema","workflowsWorkflowRunTerminatedSchema","status","workflowsWorkflowRunCancelledSchema","workflowsJobExecutionTimedOutSchema","jobId","jobExecutionId","workflowsJobActivatedBaseSchema","listenerFilterExpressionTypeSchema","lazy","union","kind","literal","fields","record","element","listenerFilterOutputTypesSchema","resolvedListeningTriggerSchema","extend","filter_snapshot","unknown","optional","filter_output_types","workflowsJobActivatedSchema","discriminatedUnion","mode","on","array","nullable","until","workflowsJobEventDeliveredSchema","disposition","eventRef","eventName","workflowsJobTerminatedSchema","statusReason","settledStatusSchema","workflowsJobStepsSettledSchema","workflowsStepRestartEnqueuedSchema","failedStepId","failedStepAttempt","restartFromStepId","feedback","workflowsStepAttemptTerminatedSchema","stepId","logOutcome","workflowsEventSchemas"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,qBAAqB,QAAO,mBAAmB;AACvD,SAAQC,sBAAsB,QAAO,6BAA6B;AAClE,SAAQC,gBAAgB,QAAO,2BAA2B;AAE1D,MAAMC,uBAAuBJ,EAAEK,MAAM,GAAGC,QAAQ;AAEhD,OAAO,MAAMC,y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kC,EAAEyB;IACrC,CAACxB,wBAAwB,EAAE2C;IAC3B,CAAC1C,8BAA8B,EAAEiD;IACjC,CAAChD,yBAAyB,EAAEoD;IAC5B,CAACnD,4BAA4B,EAAEsD;IAC/B,CAACrD,gCAAgC,EAAEsD;IACnC,CAACrD,kCAAkC,EAAE0D;AACvC,EAA0D"}
1
+ {"version":3,"sources":["../src/events.ts"],"sourcesContent":["import {z} from 'zod';\nimport {jobStatusReasonSchema} from './schemas/job.js';\nimport {listeningTriggerSchema} from './schemas/job-listening.js';\nimport {logOutcomeSchema} from './schemas/log-outcome.js';\n\nconst nonEmptyStringSchema = z.string().nonempty();\n\nexport const WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED =\n 'workflows.workflow_run_attempt.created' as const;\n// Terminal fact for a workflow run, written in the same transaction as the status flip.\nexport const WORKFLOWS_WORKFLOW_RUN_TERMINATED = 'workflows.workflow_run.terminated' as const;\n// Intent fact for cooperative run cancellation. Consumers use this to stop orchestration.\nexport const WORKFLOWS_WORKFLOW_RUN_CANCELLED = 'workflows.workflow_run.cancelled' as const;\nexport const WORKFLOWS_JOB_EXECUTION_TIMED_OUT = 'workflows.job_execution.timed_out' as const;\nexport const WORKFLOWS_JOB_ACTIVATED = 'workflows.job.activated' as const;\nexport const WORKFLOWS_JOB_EVENT_DELIVERED = 'workflows.job_event.delivered' as const;\n// Terminal fact for a job: the single reliable \"this job is over\" signal, written in\n// the same transaction as the status flip, on every terminal path.\nexport const WORKFLOWS_JOB_TERMINATED = 'workflows.job.terminated' as const;\n// Internal signal, not a terminal fact: a job's steps have all settled, so the\n// on-job-steps-settled subscriber can raise the Temporal JOB_FINISHED_SIGNAL. Fires\n// before the job row is terminal; observe WORKFLOWS_JOB_TERMINATED for the outcome.\nexport const WORKFLOWS_JOB_STEPS_SETTLED = 'workflows.job.steps_settled' as const;\n// Written in the same transaction as a durable gate restart: the failed attempt\n// plus the rewind of the projection from `restart_from`. The pull-based runner\n// re-dispatches the rewound step on its next pull, so consumers must treat this\n// at-least-once outbox event as idempotent audit data.\nexport const WORKFLOWS_STEP_RESTART_ENQUEUED = 'workflows.step.restart_enqueued' as const;\nexport const WORKFLOWS_STEP_ATTEMPT_TERMINATED = 'workflows.step_attempt.terminated' as const;\n\nexport const workflowsWorkflowRunAttemptCreatedSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n attempt: z.number().int().positive(),\n workspaceId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n definitionId: nonEmptyStringSchema,\n});\nexport type WorkflowsWorkflowRunAttemptCreatedEventDto = z.infer<\n typeof workflowsWorkflowRunAttemptCreatedSchema\n>;\n\n// Keep outbox terminal statuses narrower than the public status schemas, which\n// also carry pending/running and job-only skipped.\nexport const workflowRunTerminalStatusSchema = z.enum(['succeeded', 'failed', 'cancelled']);\nexport const jobTerminalStatusSchema = z.enum(['succeeded', 'failed', 'cancelled', 'skipped']);\nexport const terminalStatusSchema = workflowRunTerminalStatusSchema;\n\nexport const workflowsWorkflowRunTerminatedSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n status: workflowRunTerminalStatusSchema,\n});\nexport type WorkflowsWorkflowRunTerminatedEventDto = z.infer<\n typeof workflowsWorkflowRunTerminatedSchema\n>;\n\nexport const workflowsWorkflowRunCancelledSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n});\nexport type WorkflowsWorkflowRunCancelledEventDto = z.infer<\n typeof workflowsWorkflowRunCancelledSchema\n>;\n\nexport const workflowsJobExecutionTimedOutSchema = z.object({\n jobId: nonEmptyStringSchema,\n jobExecutionId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n});\nexport type WorkflowsJobExecutionTimedOutEventDto = z.infer<\n typeof workflowsJobExecutionTimedOutSchema\n>;\n\nconst workflowsJobActivatedBaseSchema = z.object({\n jobId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n});\n\n// Keep this passive DTO schema local so the transport package does not depend on expression runtime code.\nexport type ListenerFilterExpressionType =\n | 'string'\n | 'int'\n | 'double'\n | 'bool'\n | 'null'\n | 'timestamp'\n | {kind: 'object'; fields: Record<string, ListenerFilterExpressionType>}\n | {kind: 'map'}\n | {kind: 'list'; element: ListenerFilterExpressionType};\n\nconst listenerFilterExpressionTypeSchema: z.ZodType<ListenerFilterExpressionType> = z.lazy(() =>\n z.union([\n z.enum(['string', 'int', 'double', 'bool', 'null', 'timestamp']),\n z.object({\n kind: z.literal('object'),\n fields: z.record(z.string(), listenerFilterExpressionTypeSchema),\n }),\n z.object({kind: z.literal('map')}),\n z.object({kind: z.literal('list'), element: listenerFilterExpressionTypeSchema}),\n ]),\n);\n\nexport const listenerFilterOutputTypesSchema = z.record(\n z.string(),\n z.record(z.string(), listenerFilterExpressionTypeSchema),\n);\nexport type ListenerFilterOutputTypes = z.infer<typeof listenerFilterOutputTypesSchema>;\n\nconst resolvedListeningTriggerSchema = listeningTriggerSchema.extend({\n filter_snapshot: z.record(z.string(), z.unknown()).optional(),\n filter_output_types: listenerFilterOutputTypesSchema.optional(),\n});\n\nexport const workflowsJobActivatedSchema = z.discriminatedUnion('mode', [\n workflowsJobActivatedBaseSchema.extend({\n mode: z.literal('one_shot'),\n on: z.array(resolvedListeningTriggerSchema).nullable().optional(),\n until: z.array(resolvedListeningTriggerSchema).nullable().optional(),\n }),\n workflowsJobActivatedBaseSchema.extend({\n mode: z.literal('listening'),\n on: z.array(resolvedListeningTriggerSchema).nonempty(),\n until: z.array(resolvedListeningTriggerSchema).nullable(),\n }),\n]);\nexport type WorkflowsJobActivatedEventDto = z.infer<typeof workflowsJobActivatedSchema>;\n\nexport const workflowsJobEventDeliveredSchema = z.object({\n jobId: nonEmptyStringSchema,\n disposition: z.enum(['fire', 'resolve']),\n eventRef: nonEmptyStringSchema,\n eventName: nonEmptyStringSchema,\n});\nexport type WorkflowsJobEventDeliveredEventDto = z.infer<typeof workflowsJobEventDeliveredSchema>;\n\nexport const workflowsJobTerminatedSchema = z.object({\n jobId: nonEmptyStringSchema,\n // Optional for compatibility with terminal events written before the current execution\n // identity became part of the event contract. New events always include the value, or null\n // when the job was terminated before an execution was created.\n jobExecutionId: nonEmptyStringSchema.nullable().optional(),\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n status: jobTerminalStatusSchema,\n statusReason: jobStatusReasonSchema.nullable(),\n statusReasonMessage: z.string().nullable().optional(),\n});\nexport type WorkflowsJobTerminatedEventDto = z.infer<typeof workflowsJobTerminatedSchema>;\n\nconst settledStatusSchema = z.enum(['succeeded', 'failed']);\n\nexport const workflowsJobStepsSettledSchema = z.object({\n jobId: nonEmptyStringSchema,\n jobExecutionId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n status: settledStatusSchema,\n});\nexport type WorkflowsJobStepsSettledEventDto = z.infer<typeof workflowsJobStepsSettledSchema>;\n\nexport const workflowsStepRestartEnqueuedSchema = z.object({\n jobId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n failedStepId: nonEmptyStringSchema,\n failedStepAttempt: z.number(),\n restartFromStepId: nonEmptyStringSchema,\n feedback: nonEmptyStringSchema,\n});\nexport type WorkflowsStepRestartEnqueuedEventDto = z.infer<\n typeof workflowsStepRestartEnqueuedSchema\n>;\n\nexport const workflowsStepAttemptTerminatedSchema = z.object({\n jobId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n stepId: nonEmptyStringSchema,\n attempt: z.number().int().positive(),\n // Optional so the subscriber can continue to consume terminal events written\n // before the status field was added. New outbox events always include it.\n status: terminalStatusSchema.optional(),\n logOutcome: logOutcomeSchema,\n});\nexport type WorkflowsStepAttemptTerminatedEventDto = z.infer<\n typeof workflowsStepAttemptTerminatedSchema\n>;\n\nexport interface WorkflowsEventMapDto {\n [WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED]: WorkflowsWorkflowRunAttemptCreatedEventDto;\n [WORKFLOWS_WORKFLOW_RUN_TERMINATED]: WorkflowsWorkflowRunTerminatedEventDto;\n [WORKFLOWS_WORKFLOW_RUN_CANCELLED]: WorkflowsWorkflowRunCancelledEventDto;\n [WORKFLOWS_JOB_EXECUTION_TIMED_OUT]: WorkflowsJobExecutionTimedOutEventDto;\n [WORKFLOWS_JOB_ACTIVATED]: WorkflowsJobActivatedEventDto;\n [WORKFLOWS_JOB_EVENT_DELIVERED]: WorkflowsJobEventDeliveredEventDto;\n [WORKFLOWS_JOB_TERMINATED]: WorkflowsJobTerminatedEventDto;\n [WORKFLOWS_JOB_STEPS_SETTLED]: WorkflowsJobStepsSettledEventDto;\n [WORKFLOWS_STEP_RESTART_ENQUEUED]: WorkflowsStepRestartEnqueuedEventDto;\n [WORKFLOWS_STEP_ATTEMPT_TERMINATED]: WorkflowsStepAttemptTerminatedEventDto;\n}\n\nexport const workflowsEventSchemas = {\n [WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED]: workflowsWorkflowRunAttemptCreatedSchema,\n [WORKFLOWS_WORKFLOW_RUN_TERMINATED]: workflowsWorkflowRunTerminatedSchema,\n [WORKFLOWS_WORKFLOW_RUN_CANCELLED]: workflowsWorkflowRunCancelledSchema,\n [WORKFLOWS_JOB_EXECUTION_TIMED_OUT]: workflowsJobExecutionTimedOutSchema,\n [WORKFLOWS_JOB_ACTIVATED]: workflowsJobActivatedSchema,\n [WORKFLOWS_JOB_EVENT_DELIVERED]: workflowsJobEventDeliveredSchema,\n [WORKFLOWS_JOB_TERMINATED]: workflowsJobTerminatedSchema,\n [WORKFLOWS_JOB_STEPS_SETTLED]: workflowsJobStepsSettledSchema,\n [WORKFLOWS_STEP_RESTART_ENQUEUED]: workflowsStepRestartEnqueuedSchema,\n [WORKFLOWS_STEP_ATTEMPT_TERMINATED]: workflowsStepAttemptTerminatedSchema,\n} satisfies Record<keyof WorkflowsEventMapDto, z.ZodType>;\n"],"names":["z","jobStatusReasonSchema","listeningTriggerSchema","logOutcomeSchema","nonEmptyStringSchema","string","nonempty","WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED","WORKFLOWS_WORKFLOW_RUN_TERMINATED","WORKFLOWS_WORKFLOW_RUN_CANCELLED","WORKFLOWS_JOB_EXECUTION_TIMED_OUT","WORKFLOWS_JOB_ACTIVATED","WORKFLOWS_JOB_EVENT_DELIVERED","WORKFLOWS_JOB_TERMINATED","WORKFLOWS_JOB_STEPS_SETTLED","WORKFLOWS_STEP_RESTART_ENQUEUED","WORKFLOWS_STEP_ATTEMPT_TERMINATED","workflowsWorkflowRunAttemptCreatedSchema","object","workflowRunId","workflowRunAttemptId","attempt","number","int","positive","workspaceId","projectId","definitionId","workflowRunTerminalStatusSchema","enum","jobTerminalStatusSchema","terminalStatusSchema","workflowsWorkflowRunTerminatedSchema","status","workflowsWorkflowRunCancelledSchema","workflowsJobExecutionTimedOutSchema","jobId","jobExecutionId","workflowsJobActivatedBaseSchema","listenerFilterExpressionTypeSchema","lazy","union","kind","literal","fields","record","element","listenerFilterOutputTypesSchema","resolvedListeningTriggerSchema","extend","filter_snapshot","unknown","optional","filter_output_types","workflowsJobActivatedSchema","discriminatedUnion","mode","on","array","nullable","until","workflowsJobEventDeliveredSchema","disposition","eventRef","eventName","workflowsJobTerminatedSchema","statusReason","statusReasonMessage","settledStatusSchema","workflowsJobStepsSettledSchema","workflowsStepRestartEnqueuedSchema","failedStepId","failedStepAttempt","restartFromStepId","feedback","workflowsStepAttemptTerminatedSchema","stepId","logOutcome","workflowsEventSchemas"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB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3E,EAAEkB,MAAM,CAAC;IAC3DkB,OAAOhC;IACPe,eAAef;IACfgB,sBAAsBhB;IACtBqB,aAAarB;IACbsB,WAAWtB;IACXwE,QAAQxE;IACRiB,SAASrB,EAAEsB,MAAM,GAAGC,GAAG,GAAGC,QAAQ;IAClC,6EAA6E;IAC7E,0EAA0E;IAC1ES,QAAQF,qBAAqBqB,QAAQ;IACrCyB,YAAY1E;AACd,GAAG;AAkBH,OAAO,MAAM2E,wBAAwB;IACnC,CAACvE,uCAAuC,EAAEU;IAC1C,CAACT,kCAAkC,EAAEwB;IACrC,CAACvB,iCAAiC,EAAEyB;IACpC,CAACxB,kCAAkC,EAAEyB;IACrC,CAACxB,wBAAwB,EAAE2C;IAC3B,CAAC1C,8BAA8B,EAAEiD;IACjC,CAAChD,yBAAyB,EAAEoD;IAC5B,CAACnD,4BAA4B,EAAEuD;IAC/B,CAACtD,gCAAgC,EAAEuD;IACnC,CAACtD,kCAAkC,EAAE2D;AACvC,EAA0D"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { type AgentConfigIssueDto, type AgentRuntimeConfigQueryDto, agentConfigIssueSchema, agentRuntimeConfigQuerySchema, type CheckoutIntentDto, type CheckoutResultDto, type CheckoutTokenAuthDto, type CheckoutTokenParamsDto, type CheckoutTokenQueryDto, type CheckoutTokenResponseDto, checkoutIntentSchema, checkoutResultSchema, checkoutTokenAuthSchema, checkoutTokenParamsSchema, checkoutTokenQuerySchema, checkoutTokenResponseSchema, type JobDto, type JobExecutionDto, type JobListeningDto, type JobModeDto, type JobStatusDto, type JobStatusReasonDto, jobDtoSchema, jobListeningBatchSchema, jobListeningSchema, jobModeSchema, jobStatusReasonSchema, jobStatusSchema, type ListenerStatusDto, type ListeningTriggerDto, type LogOutcomeDto, listenerStatusSchema, listeningTriggerSchema, logOutcomeSchema, type NextStepResponseDto, nextStepResponseSchema, type ReportStepBodyDto, type ReportStepResponseDto, type RerunWorkflowRunBodyDto, type ResolutionReasonDto, reportStepBodySchema, reportStepResponseSchema, rerunWorkflowRunBodySchema, resolutionReasonSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, STEP_RESPONSE_MAX_LENGTH, type StepAttemptDto, type StepDto, type StepErrorCategoryDto, type StepErrorDto, type StepErrorReasonDto, type StepGateResultDto, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema, type TriggerEventsBatchDto, triggerEventsBatchSchema, type WorkflowExecutionContextDto, type WorkflowExecutionEventDto, type WorkflowRunAggregatesQueryDto, type WorkflowRunAggregatesResponseDto, type WorkflowRunAttemptDto, type WorkflowRunAttemptsResponseDto, type WorkflowRunDetailResponseDto, type WorkflowRunDto, type WorkflowRunJobDetailDto, type WorkflowRunJobExecutionDetailDto, type WorkflowRunListQueryDto, type WorkflowRunListResponseDto, type WorkflowRunRerunModeDto, type WorkflowRunResponseDto, type WorkflowRunStatusDto, type WorkflowRunStepDetailDto, workflowExecutionContextSchema, workflowExecutionEventSchema, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDetailResponseSchema, workflowRunDtoSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunJobStatusCountDtoSchema, workflowRunJobSummaryDtoSchema, workflowRunListItemSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowRunStepDetailDtoSchema, } from '#schemas/index.js';
1
+ export { type AgentConfigIssueDto, type AgentRuntimeConfigQueryDto, agentConfigIssueSchema, agentRuntimeConfigQuerySchema, type CheckoutIntentDto, type CheckoutResultDto, type CheckoutTokenAuthDto, type CheckoutTokenParamsDto, type CheckoutTokenQueryDto, type CheckoutTokenResponseDto, checkoutIntentSchema, checkoutResultSchema, checkoutTokenAuthSchema, checkoutTokenParamsSchema, checkoutTokenQuerySchema, checkoutTokenResponseSchema, type EvaluationTraceDto, type EvaluationTraceEntryDto, evaluationTraceEntrySchema, evaluationTraceSchema, type JobDto, type JobExecutionDto, type JobListeningDto, type JobModeDto, type JobStatusDto, type JobStatusReasonDto, jobDtoSchema, jobListeningBatchSchema, jobListeningSchema, jobModeSchema, jobStatusReasonSchema, jobStatusSchema, type ListenerStatusDto, type ListeningTriggerDto, type LogOutcomeDto, listenerStatusSchema, listeningTriggerSchema, logOutcomeSchema, type NextStepResponseDto, nextStepResponseSchema, type ReportStepBodyDto, type ReportStepResponseDto, type RerunWorkflowRunBodyDto, type ResolutionReasonDto, reportStepBodySchema, reportStepResponseSchema, rerunWorkflowRunBodySchema, resolutionReasonSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, STEP_RESPONSE_MAX_LENGTH, STEP_STATUS_REASONS, type StepAttemptDetailDto, type StepAttemptDetailResponseDto, type StepAttemptDto, type StepDto, type StepErrorCategoryDto, type StepErrorDto, type StepErrorReasonDto, type StepGateResultDto, type StepStatusReasonDto, stepAttemptDetailDtoSchema, stepAttemptDetailResponseSchema, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema, stepStatusReasonSchema, type TriggerEventsBatchDto, triggerEventsBatchSchema, type WorkflowExecutionContextDto, type WorkflowExecutionEventDto, type WorkflowRunAggregatesQueryDto, type WorkflowRunAggregatesResponseDto, type WorkflowRunAttemptDto, type WorkflowRunAttemptsResponseDto, type WorkflowRunDetailResponseDto, type WorkflowRunDto, type WorkflowRunJobDetailDto, type WorkflowRunJobExecutionDetailDto, type WorkflowRunListQueryDto, type WorkflowRunListResponseDto, type WorkflowRunRerunModeDto, type WorkflowRunResponseDto, type WorkflowRunStatusDto, type WorkflowRunStepDetailDto, workflowExecutionContextSchema, workflowExecutionEventSchema, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDetailResponseSchema, workflowRunDtoSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunJobStatusCountDtoSchema, workflowRunJobSummaryDtoSchema, workflowRunListItemSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowRunStepDetailDtoSchema, } from '#schemas/index.js';
2
2
  export { type StepSourceLocationDto, stepSourceLocationSchema } from '#schemas/step.js';
3
3
  export { WORKFLOW_RUN_JOB_PREVIEW_LIMIT, type WorkflowRunJobStatusCountDto, type WorkflowRunJobSummaryDto, type WorkflowRunListItemDto, type WorkflowRunTriggerReferenceDto, type WorkflowSourceSnapshotDto, workflowRunTriggerReferenceSchema, workflowSourceSnapshotSchema, } from '#schemas/workflow-run.js';
4
4
  export { jobTerminalStatusSchema, type ListenerFilterExpressionType, type ListenerFilterOutputTypes, listenerFilterOutputTypesSchema, terminalStatusSchema, WORKFLOWS_JOB_ACTIVATED, WORKFLOWS_JOB_EVENT_DELIVERED, WORKFLOWS_JOB_EXECUTION_TIMED_OUT, WORKFLOWS_JOB_STEPS_SETTLED, WORKFLOWS_JOB_TERMINATED, WORKFLOWS_STEP_ATTEMPT_TERMINATED, WORKFLOWS_STEP_RESTART_ENQUEUED, WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED, WORKFLOWS_WORKFLOW_RUN_CANCELLED, WORKFLOWS_WORKFLOW_RUN_TERMINATED, type WorkflowsEventMapDto, type WorkflowsJobActivatedEventDto, type WorkflowsJobEventDeliveredEventDto, type WorkflowsJobExecutionTimedOutEventDto, type WorkflowsJobStepsSettledEventDto, type WorkflowsJobTerminatedEventDto, type WorkflowsStepAttemptTerminatedEventDto, type WorkflowsStepRestartEnqueuedEventDto, type WorkflowsWorkflowRunAttemptCreatedEventDto, type WorkflowsWorkflowRunCancelledEventDto, type WorkflowsWorkflowRunTerminatedEventDto, workflowRunTerminalStatusSchema, workflowsEventSchemas, workflowsJobActivatedSchema, workflowsJobEventDeliveredSchema, workflowsJobExecutionTimedOutSchema, workflowsJobStepsSettledSchema, workflowsJobTerminatedSchema, workflowsStepAttemptTerminatedSchema, workflowsStepRestartEnqueuedSchema, workflowsWorkflowRunAttemptCreatedSchema, workflowsWorkflowRunCancelledSchema, workflowsWorkflowRunTerminatedSchema, } from './events.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,sBAAsB,EACtB,6BAA6B,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,KAAK,MAAM,EACX,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,YAAY,EACZ,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,KAAK,mBAAmB,EACxB,sBAAsB,EACtB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,6BAA6B,EAC7B,wBAAwB,EACxB,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,oBAAoB,EACpB,aAAa,EAC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EAAC,KAAK,qBAAqB,EAAE,wBAAwB,EAAC,MAAM,kBAAkB,CAAC;AACtF,OAAO,EACL,8BAA8B,EAC9B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,iCAAiC,EACjC,4BAA4B,GAC7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,+BAA+B,EAC/B,oBAAoB,EACpB,uBAAuB,EACvB,6BAA6B,EAC7B,iCAAiC,EACjC,2BAA2B,EAC3B,wBAAwB,EACxB,iCAAiC,EACjC,+BAA+B,EAC/B,sCAAsC,EACtC,gCAAgC,EAChC,iCAAiC,EACjC,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,qCAAqC,EAC1C,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,sCAAsC,EAC3C,KAAK,oCAAoC,EACzC,KAAK,0CAA0C,EAC/C,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAC3C,+BAA+B,EAC/B,qBAAqB,EACrB,2BAA2B,EAC3B,gCAAgC,EAChC,mCAAmC,EACnC,8BAA8B,EAC9B,4BAA4B,EAC5B,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,mCAAmC,EACnC,oCAAoC,GACrC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,sBAAsB,EAAE,4BAA4B,EAAC,MAAM,wBAAwB,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { agentConfigIssueSchema, agentRuntimeConfigQuerySchema, checkoutIntentSchema, checkoutResultSchema, checkoutTokenAuthSchema, checkoutTokenParamsSchema, checkoutTokenQuerySchema, checkoutTokenResponseSchema, jobDtoSchema, jobListeningBatchSchema, jobListeningSchema, jobModeSchema, jobStatusReasonSchema, jobStatusSchema, listenerStatusSchema, listeningTriggerSchema, logOutcomeSchema, nextStepResponseSchema, reportStepBodySchema, reportStepResponseSchema, rerunWorkflowRunBodySchema, resolutionReasonSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, STEP_RESPONSE_MAX_LENGTH, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema, triggerEventsBatchSchema, workflowExecutionContextSchema, workflowExecutionEventSchema, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDetailResponseSchema, workflowRunDtoSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunJobStatusCountDtoSchema, workflowRunJobSummaryDtoSchema, workflowRunListItemSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowRunStepDetailDtoSchema } from '#schemas/index.js';
1
+ export { agentConfigIssueSchema, agentRuntimeConfigQuerySchema, checkoutIntentSchema, checkoutResultSchema, checkoutTokenAuthSchema, checkoutTokenParamsSchema, checkoutTokenQuerySchema, checkoutTokenResponseSchema, evaluationTraceEntrySchema, evaluationTraceSchema, jobDtoSchema, jobListeningBatchSchema, jobListeningSchema, jobModeSchema, jobStatusReasonSchema, jobStatusSchema, listenerStatusSchema, listeningTriggerSchema, logOutcomeSchema, nextStepResponseSchema, reportStepBodySchema, reportStepResponseSchema, rerunWorkflowRunBodySchema, resolutionReasonSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, STEP_RESPONSE_MAX_LENGTH, STEP_STATUS_REASONS, stepAttemptDetailDtoSchema, stepAttemptDetailResponseSchema, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema, stepStatusReasonSchema, triggerEventsBatchSchema, workflowExecutionContextSchema, workflowExecutionEventSchema, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDetailResponseSchema, workflowRunDtoSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunJobStatusCountDtoSchema, workflowRunJobSummaryDtoSchema, workflowRunListItemSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowRunStepDetailDtoSchema } from '#schemas/index.js';
2
2
  export { stepSourceLocationSchema } from '#schemas/step.js';
3
3
  export { WORKFLOW_RUN_JOB_PREVIEW_LIMIT, workflowRunTriggerReferenceSchema, workflowSourceSnapshotSchema } from '#schemas/workflow-run.js';
4
4
  export { jobTerminalStatusSchema, listenerFilterOutputTypesSchema, terminalStatusSchema, WORKFLOWS_JOB_ACTIVATED, WORKFLOWS_JOB_EVENT_DELIVERED, WORKFLOWS_JOB_EXECUTION_TIMED_OUT, WORKFLOWS_JOB_STEPS_SETTLED, WORKFLOWS_JOB_TERMINATED, WORKFLOWS_STEP_ATTEMPT_TERMINATED, WORKFLOWS_STEP_RESTART_ENQUEUED, WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED, WORKFLOWS_WORKFLOW_RUN_CANCELLED, WORKFLOWS_WORKFLOW_RUN_TERMINATED, workflowRunTerminalStatusSchema, workflowsEventSchemas, workflowsJobActivatedSchema, workflowsJobEventDeliveredSchema, workflowsJobExecutionTimedOutSchema, workflowsJobStepsSettledSchema, workflowsJobTerminatedSchema, workflowsStepAttemptTerminatedSchema, workflowsStepRestartEnqueuedSchema, workflowsWorkflowRunAttemptCreatedSchema, workflowsWorkflowRunCancelledSchema, workflowsWorkflowRunTerminatedSchema } from './events.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n type AgentConfigIssueDto,\n type AgentRuntimeConfigQueryDto,\n agentConfigIssueSchema,\n agentRuntimeConfigQuerySchema,\n type CheckoutIntentDto,\n type CheckoutResultDto,\n type CheckoutTokenAuthDto,\n type CheckoutTokenParamsDto,\n type CheckoutTokenQueryDto,\n type CheckoutTokenResponseDto,\n checkoutIntentSchema,\n checkoutResultSchema,\n checkoutTokenAuthSchema,\n checkoutTokenParamsSchema,\n checkoutTokenQuerySchema,\n checkoutTokenResponseSchema,\n type JobDto,\n type JobExecutionDto,\n type JobListeningDto,\n type JobModeDto,\n type JobStatusDto,\n type JobStatusReasonDto,\n jobDtoSchema,\n jobListeningBatchSchema,\n jobListeningSchema,\n jobModeSchema,\n jobStatusReasonSchema,\n jobStatusSchema,\n type ListenerStatusDto,\n type ListeningTriggerDto,\n type LogOutcomeDto,\n listenerStatusSchema,\n listeningTriggerSchema,\n logOutcomeSchema,\n type NextStepResponseDto,\n nextStepResponseSchema,\n type ReportStepBodyDto,\n type ReportStepResponseDto,\n type RerunWorkflowRunBodyDto,\n type ResolutionReasonDto,\n reportStepBodySchema,\n reportStepResponseSchema,\n rerunWorkflowRunBodySchema,\n resolutionReasonSchema,\n STEP_ERROR_MESSAGE_MAX_LENGTH,\n STEP_RESPONSE_MAX_LENGTH,\n type StepAttemptDto,\n type StepDto,\n type StepErrorCategoryDto,\n type StepErrorDto,\n type StepErrorReasonDto,\n type StepGateResultDto,\n stepAttemptDtoSchema,\n stepDtoSchema,\n stepErrorCategorySchema,\n stepErrorDtoSchema,\n stepErrorReasonSchema,\n stepGateResultDtoSchema,\n type TriggerEventsBatchDto,\n triggerEventsBatchSchema,\n type WorkflowExecutionContextDto,\n type WorkflowExecutionEventDto,\n type WorkflowRunAggregatesQueryDto,\n type WorkflowRunAggregatesResponseDto,\n type WorkflowRunAttemptDto,\n type WorkflowRunAttemptsResponseDto,\n type WorkflowRunDetailResponseDto,\n type WorkflowRunDto,\n type WorkflowRunJobDetailDto,\n type WorkflowRunJobExecutionDetailDto,\n type WorkflowRunListQueryDto,\n type WorkflowRunListResponseDto,\n type WorkflowRunRerunModeDto,\n type WorkflowRunResponseDto,\n type WorkflowRunStatusDto,\n type WorkflowRunStepDetailDto,\n workflowExecutionContextSchema,\n workflowExecutionEventSchema,\n workflowRunAggregatesQuerySchema,\n workflowRunAggregatesResponseSchema,\n workflowRunAttemptDtoSchema,\n workflowRunAttemptsResponseSchema,\n workflowRunDetailResponseSchema,\n workflowRunDtoSchema,\n workflowRunJobDetailDtoSchema,\n workflowRunJobExecutionDetailDtoSchema,\n workflowRunJobStatusCountDtoSchema,\n workflowRunJobSummaryDtoSchema,\n workflowRunListItemSchema,\n workflowRunListQuerySchema,\n workflowRunListResponseSchema,\n workflowRunRerunModeSchema,\n workflowRunResponseSchema,\n workflowRunStatusSchema,\n workflowRunStepDetailDtoSchema,\n} from '#schemas/index.js';\nexport {type StepSourceLocationDto, stepSourceLocationSchema} from '#schemas/step.js';\nexport {\n WORKFLOW_RUN_JOB_PREVIEW_LIMIT,\n type WorkflowRunJobStatusCountDto,\n type WorkflowRunJobSummaryDto,\n type WorkflowRunListItemDto,\n type WorkflowRunTriggerReferenceDto,\n type WorkflowSourceSnapshotDto,\n workflowRunTriggerReferenceSchema,\n workflowSourceSnapshotSchema,\n} from '#schemas/workflow-run.js';\nexport {\n jobTerminalStatusSchema,\n type ListenerFilterExpressionType,\n type ListenerFilterOutputTypes,\n listenerFilterOutputTypesSchema,\n terminalStatusSchema,\n WORKFLOWS_JOB_ACTIVATED,\n WORKFLOWS_JOB_EVENT_DELIVERED,\n WORKFLOWS_JOB_EXECUTION_TIMED_OUT,\n WORKFLOWS_JOB_STEPS_SETTLED,\n WORKFLOWS_JOB_TERMINATED,\n WORKFLOWS_STEP_ATTEMPT_TERMINATED,\n WORKFLOWS_STEP_RESTART_ENQUEUED,\n WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED,\n WORKFLOWS_WORKFLOW_RUN_CANCELLED,\n WORKFLOWS_WORKFLOW_RUN_TERMINATED,\n type WorkflowsEventMapDto,\n type WorkflowsJobActivatedEventDto,\n type WorkflowsJobEventDeliveredEventDto,\n type WorkflowsJobExecutionTimedOutEventDto,\n type WorkflowsJobStepsSettledEventDto,\n type WorkflowsJobTerminatedEventDto,\n type WorkflowsStepAttemptTerminatedEventDto,\n type WorkflowsStepRestartEnqueuedEventDto,\n type WorkflowsWorkflowRunAttemptCreatedEventDto,\n type WorkflowsWorkflowRunCancelledEventDto,\n type WorkflowsWorkflowRunTerminatedEventDto,\n workflowRunTerminalStatusSchema,\n workflowsEventSchemas,\n workflowsJobActivatedSchema,\n workflowsJobEventDeliveredSchema,\n workflowsJobExecutionTimedOutSchema,\n workflowsJobStepsSettledSchema,\n workflowsJobTerminatedSchema,\n workflowsStepAttemptTerminatedSchema,\n workflowsStepRestartEnqueuedSchema,\n workflowsWorkflowRunAttemptCreatedSchema,\n workflowsWorkflowRunCancelledSchema,\n workflowsWorkflowRunTerminatedSchema,\n} from './events.js';\nexport {assertWorkingDirectory, InvalidWorkingDirectoryError} from './working-directory.js';\n"],"names":["agentConfigIssueSchema","agentRuntimeConfigQuerySchema","checkoutIntentSchema","checkoutResultSchema","checkoutTokenAuthSchema","checkoutTokenParamsSchema","checkoutTokenQuerySchema","checkoutTokenResponseSchema","jobDtoSchema","jobListeningBatchSchema","jobListeningSchema","jobModeSchema","jobStatusReasonSchema","jobStatusSchema","listenerStatusSchema","listeningTriggerSchema","logOutcomeSchema","nextStepResponseSchema","reportStepBodySchema","reportStepResponseSchema","rerunWorkflowRunBodySchema","resolutionReasonSchema","STEP_ERROR_MESSAGE_MAX_LENGTH","STEP_RESPONSE_MAX_LENGTH","stepAttemptDtoSchema","stepDtoSchema","stepErrorCategorySchema","stepErrorDtoSchema","stepErrorReasonSchema","stepGateResultDtoSchema","triggerEventsBatchSchema","workflowExecutionContextSchema","workflowExecutionEventSchema","workflowRunAggregatesQuerySchema","workflowRunAggregatesResponseSchema","workflowRunAttemptDtoSchema","workflowRunAttemptsResponseSchema","workflowRunDetailResponseSchema","workflowRunDtoSchema","workflowRunJobDetailDtoSchema","workflowRunJobExecutionDetailDtoSchema","workflowRunJobStatusCountDtoSchema","workflowRunJobSummaryDtoSchema","workflowRunListItemSchema","workflowRunListQuerySchema","workflowRunListResponseSchema","workflowRunRerunModeSchema","workflowRunResponseSchema","workflowRunStatusSchema","workflowRunStepDetailDtoSchema","stepSourceLocationSchema","WORKFLOW_RUN_JOB_PREVIEW_LIMIT","workflowRunTriggerReferenceSchema","workflowSourceSnapshotSchema","jobTerminalStatusSchema","listenerFilterOutputTypesSchema","terminalStatusSchema","WORKFLOWS_JOB_ACTIVATED","WORKFLOWS_JOB_EVENT_DELIVERED","WORKFLOWS_JOB_EXECUTION_TIMED_OUT","WORKFLOWS_JOB_STEPS_SETTLED","WORKFLOWS_JOB_TERMINATED","WORKFLOWS_STEP_ATTEMPT_TERMINATED","WORKFLOWS_STEP_RESTART_ENQUEUED","WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED","WORKFLOWS_WORKFLOW_RUN_CANCELLED","WORKFLOWS_WORKFLOW_RUN_TERMINATED","workflowRunTerminalStatusSchema","workflowsEventSchemas","workflowsJobActivatedSchema","workflowsJobEventDeliveredSchema","workflowsJobExecutionTimedOutSchema","workflowsJobStepsSettledSchema","workflowsJobTerminatedSchema","workflowsStepAttemptTerminatedSchema","workflowsStepRestartEnqueuedSchema","workflowsWorkflowRunAttemptCreatedSchema","workflowsWorkflowRunCancelledSchema","workflowsWorkflowRunTerminatedSchema","assertWorkingDirectory","InvalidWorkingDirectoryError"],"mappings":"AAAA,SAGEA,sBAAsB,EACtBC,6BAA6B,EAO7BC,oBAAoB,EACpBC,oBAAoB,EACpBC,uBAAuB,EACvBC,yBAAyB,EACzBC,wBAAwB,EACxBC,2BAA2B,EAO3BC,YAAY,EACZC,uBAAuB,EACvBC,kBAAkB,EAClBC,aAAa,EACbC,qBAAqB,EACrBC,eAAe,EAIfC,oBAAoB,EACpBC,sBAAsB,EACtBC,gBAAgB,EAEhBC,sBAAsB,EAKtBC,oBAAoB,EACpBC,wBAAwB,EACxBC,0BAA0B,EAC1BC,sBAAsB,EACtBC,6BAA6B,EAC7BC,wBAAwB,EAOxBC,oBAAoB,EACpBC,aAAa,EACbC,uBAAuB,EACvBC,kBAAkB,EAClBC,qBAAqB,EACrBC,uBAAuB,EAEvBC,wBAAwB,EAiBxBC,8BAA8B,EAC9BC,4BAA4B,EAC5BC,gCAAgC,EAChCC,mCAAmC,EACnCC,2BAA2B,EAC3BC,iCAAiC,EACjCC,+BAA+B,EAC/BC,oBAAoB,EACpBC,6BAA6B,EAC7BC,sCAAsC,EACtCC,kCAAkC,EAClCC,8BAA8B,EAC9BC,yBAAyB,EACzBC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,0BAA0B,EAC1BC,yBAAyB,EACzBC,uBAAuB,EACvBC,8BAA8B,QACzB,oBAAoB;AAC3B,SAAoCC,wBAAwB,QAAO,mBAAmB;AACtF,SACEC,8BAA8B,EAM9BC,iCAAiC,EACjCC,4BAA4B,QACvB,2BAA2B;AAClC,SACEC,uBAAuB,EAGvBC,+BAA+B,EAC/BC,oBAAoB,EACpBC,uBAAuB,EACvBC,6BAA6B,EAC7BC,iCAAiC,EACjCC,2BAA2B,EAC3BC,wBAAwB,EACxBC,iCAAiC,EACjCC,+BAA+B,EAC/BC,sCAAsC,EACtCC,gCAAgC,EAChCC,iCAAiC,EAYjCC,+BAA+B,EAC/BC,qBAAqB,EACrBC,2BAA2B,EAC3BC,gCAAgC,EAChCC,mCAAmC,EACnCC,8BAA8B,EAC9BC,4BAA4B,EAC5BC,oCAAoC,EACpCC,kCAAkC,EAClCC,wCAAwC,EACxCC,mCAAmC,EACnCC,oCAAoC,QAC/B,cAAc;AACrB,SAAQC,sBAAsB,EAAEC,4BAA4B,QAAO,yBAAyB"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n type AgentConfigIssueDto,\n type AgentRuntimeConfigQueryDto,\n agentConfigIssueSchema,\n agentRuntimeConfigQuerySchema,\n type CheckoutIntentDto,\n type CheckoutResultDto,\n type CheckoutTokenAuthDto,\n type CheckoutTokenParamsDto,\n type CheckoutTokenQueryDto,\n type CheckoutTokenResponseDto,\n checkoutIntentSchema,\n checkoutResultSchema,\n checkoutTokenAuthSchema,\n checkoutTokenParamsSchema,\n checkoutTokenQuerySchema,\n checkoutTokenResponseSchema,\n type EvaluationTraceDto,\n type EvaluationTraceEntryDto,\n evaluationTraceEntrySchema,\n evaluationTraceSchema,\n type JobDto,\n type JobExecutionDto,\n type JobListeningDto,\n type JobModeDto,\n type JobStatusDto,\n type JobStatusReasonDto,\n jobDtoSchema,\n jobListeningBatchSchema,\n jobListeningSchema,\n jobModeSchema,\n jobStatusReasonSchema,\n jobStatusSchema,\n type ListenerStatusDto,\n type ListeningTriggerDto,\n type LogOutcomeDto,\n listenerStatusSchema,\n listeningTriggerSchema,\n logOutcomeSchema,\n type NextStepResponseDto,\n nextStepResponseSchema,\n type ReportStepBodyDto,\n type ReportStepResponseDto,\n type RerunWorkflowRunBodyDto,\n type ResolutionReasonDto,\n reportStepBodySchema,\n reportStepResponseSchema,\n rerunWorkflowRunBodySchema,\n resolutionReasonSchema,\n STEP_ERROR_MESSAGE_MAX_LENGTH,\n STEP_RESPONSE_MAX_LENGTH,\n STEP_STATUS_REASONS,\n type StepAttemptDetailDto,\n type StepAttemptDetailResponseDto,\n type StepAttemptDto,\n type StepDto,\n type StepErrorCategoryDto,\n type StepErrorDto,\n type StepErrorReasonDto,\n type StepGateResultDto,\n type StepStatusReasonDto,\n stepAttemptDetailDtoSchema,\n stepAttemptDetailResponseSchema,\n stepAttemptDtoSchema,\n stepDtoSchema,\n stepErrorCategorySchema,\n stepErrorDtoSchema,\n stepErrorReasonSchema,\n stepGateResultDtoSchema,\n stepStatusReasonSchema,\n type TriggerEventsBatchDto,\n triggerEventsBatchSchema,\n type WorkflowExecutionContextDto,\n type WorkflowExecutionEventDto,\n type WorkflowRunAggregatesQueryDto,\n type WorkflowRunAggregatesResponseDto,\n type WorkflowRunAttemptDto,\n type WorkflowRunAttemptsResponseDto,\n type WorkflowRunDetailResponseDto,\n type WorkflowRunDto,\n type WorkflowRunJobDetailDto,\n type WorkflowRunJobExecutionDetailDto,\n type WorkflowRunListQueryDto,\n type WorkflowRunListResponseDto,\n type WorkflowRunRerunModeDto,\n type WorkflowRunResponseDto,\n type WorkflowRunStatusDto,\n type WorkflowRunStepDetailDto,\n workflowExecutionContextSchema,\n workflowExecutionEventSchema,\n workflowRunAggregatesQuerySchema,\n workflowRunAggregatesResponseSchema,\n workflowRunAttemptDtoSchema,\n workflowRunAttemptsResponseSchema,\n workflowRunDetailResponseSchema,\n workflowRunDtoSchema,\n workflowRunJobDetailDtoSchema,\n workflowRunJobExecutionDetailDtoSchema,\n workflowRunJobStatusCountDtoSchema,\n workflowRunJobSummaryDtoSchema,\n workflowRunListItemSchema,\n workflowRunListQuerySchema,\n workflowRunListResponseSchema,\n workflowRunRerunModeSchema,\n workflowRunResponseSchema,\n workflowRunStatusSchema,\n workflowRunStepDetailDtoSchema,\n} from '#schemas/index.js';\nexport {type StepSourceLocationDto, stepSourceLocationSchema} from '#schemas/step.js';\nexport {\n WORKFLOW_RUN_JOB_PREVIEW_LIMIT,\n type WorkflowRunJobStatusCountDto,\n type WorkflowRunJobSummaryDto,\n type WorkflowRunListItemDto,\n type WorkflowRunTriggerReferenceDto,\n type WorkflowSourceSnapshotDto,\n workflowRunTriggerReferenceSchema,\n workflowSourceSnapshotSchema,\n} from '#schemas/workflow-run.js';\nexport {\n jobTerminalStatusSchema,\n type ListenerFilterExpressionType,\n type ListenerFilterOutputTypes,\n listenerFilterOutputTypesSchema,\n terminalStatusSchema,\n WORKFLOWS_JOB_ACTIVATED,\n WORKFLOWS_JOB_EVENT_DELIVERED,\n WORKFLOWS_JOB_EXECUTION_TIMED_OUT,\n WORKFLOWS_JOB_STEPS_SETTLED,\n WORKFLOWS_JOB_TERMINATED,\n WORKFLOWS_STEP_ATTEMPT_TERMINATED,\n WORKFLOWS_STEP_RESTART_ENQUEUED,\n WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED,\n WORKFLOWS_WORKFLOW_RUN_CANCELLED,\n WORKFLOWS_WORKFLOW_RUN_TERMINATED,\n type WorkflowsEventMapDto,\n type WorkflowsJobActivatedEventDto,\n type WorkflowsJobEventDeliveredEventDto,\n type WorkflowsJobExecutionTimedOutEventDto,\n type WorkflowsJobStepsSettledEventDto,\n type WorkflowsJobTerminatedEventDto,\n type WorkflowsStepAttemptTerminatedEventDto,\n type WorkflowsStepRestartEnqueuedEventDto,\n type WorkflowsWorkflowRunAttemptCreatedEventDto,\n type WorkflowsWorkflowRunCancelledEventDto,\n type WorkflowsWorkflowRunTerminatedEventDto,\n workflowRunTerminalStatusSchema,\n workflowsEventSchemas,\n workflowsJobActivatedSchema,\n workflowsJobEventDeliveredSchema,\n workflowsJobExecutionTimedOutSchema,\n workflowsJobStepsSettledSchema,\n workflowsJobTerminatedSchema,\n workflowsStepAttemptTerminatedSchema,\n workflowsStepRestartEnqueuedSchema,\n workflowsWorkflowRunAttemptCreatedSchema,\n workflowsWorkflowRunCancelledSchema,\n workflowsWorkflowRunTerminatedSchema,\n} from './events.js';\nexport {assertWorkingDirectory, InvalidWorkingDirectoryError} from './working-directory.js';\n"],"names":["agentConfigIssueSchema","agentRuntimeConfigQuerySchema","checkoutIntentSchema","checkoutResultSchema","checkoutTokenAuthSchema","checkoutTokenParamsSchema","checkoutTokenQuerySchema","checkoutTokenResponseSchema","evaluationTraceEntrySchema","evaluationTraceSchema","jobDtoSchema","jobListeningBatchSchema","jobListeningSchema","jobModeSchema","jobStatusReasonSchema","jobStatusSchema","listenerStatusSchema","listeningTriggerSchema","logOutcomeSchema","nextStepResponseSchema","reportStepBodySchema","reportStepResponseSchema","rerunWorkflowRunBodySchema","resolutionReasonSchema","STEP_ERROR_MESSAGE_MAX_LENGTH","STEP_RESPONSE_MAX_LENGTH","STEP_STATUS_REASONS","stepAttemptDetailDtoSchema","stepAttemptDetailResponseSchema","stepAttemptDtoSchema","stepDtoSchema","stepErrorCategorySchema","stepErrorDtoSchema","stepErrorReasonSchema","stepGateResultDtoSchema","stepStatusReasonSchema","triggerEventsBatchSchema","workflowExecutionContextSchema","workflowExecutionEventSchema","workflowRunAggregatesQuerySchema","workflowRunAggregatesResponseSchema","workflowRunAttemptDtoSchema","workflowRunAttemptsResponseSchema","workflowRunDetailResponseSchema","workflowRunDtoSchema","workflowRunJobDetailDtoSchema","workflowRunJobExecutionDetailDtoSchema","workflowRunJobStatusCountDtoSchema","workflowRunJobSummaryDtoSchema","workflowRunListItemSchema","workflowRunListQuerySchema","workflowRunListResponseSchema","workflowRunRerunModeSchema","workflowRunResponseSchema","workflowRunStatusSchema","workflowRunStepDetailDtoSchema","stepSourceLocationSchema","WORKFLOW_RUN_JOB_PREVIEW_LIMIT","workflowRunTriggerReferenceSchema","workflowSourceSnapshotSchema","jobTerminalStatusSchema","listenerFilterOutputTypesSchema","terminalStatusSchema","WORKFLOWS_JOB_ACTIVATED","WORKFLOWS_JOB_EVENT_DELIVERED","WORKFLOWS_JOB_EXECUTION_TIMED_OUT","WORKFLOWS_JOB_STEPS_SETTLED","WORKFLOWS_JOB_TERMINATED","WORKFLOWS_STEP_ATTEMPT_TERMINATED","WORKFLOWS_STEP_RESTART_ENQUEUED","WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED","WORKFLOWS_WORKFLOW_RUN_CANCELLED","WORKFLOWS_WORKFLOW_RUN_TERMINATED","workflowRunTerminalStatusSchema","workflowsEventSchemas","workflowsJobActivatedSchema","workflowsJobEventDeliveredSchema","workflowsJobExecutionTimedOutSchema","workflowsJobStepsSettledSchema","workflowsJobTerminatedSchema","workflowsStepAttemptTerminatedSchema","workflowsStepRestartEnqueuedSchema","workflowsWorkflowRunAttemptCreatedSchema","workflowsWorkflowRunCancelledSchema","workflowsWorkflowRunTerminatedSchema","assertWorkingDirectory","InvalidWorkingDirectoryError"],"mappings":"AAAA,SAGEA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+B,EAC/BC,qBAAqB,EACrBC,2BAA2B,EAC3BC,gCAAgC,EAChCC,mCAAmC,EACnCC,8BAA8B,EAC9BC,4BAA4B,EAC5BC,oCAAoC,EACpCC,kCAAkC,EAClCC,wCAAwC,EACxCC,mCAAmC,EACnCC,oCAAoC,QAC/B,cAAc;AACrB,SAAQC,sBAAsB,EAAEC,4BAA4B,QAAO,yBAAyB"}
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ export declare const evaluationTraceEntrySchema: z.ZodUnion<readonly [z.ZodObject<{
3
+ expression: z.ZodString;
4
+ roots: z.ZodArray<z.ZodString>;
5
+ fill_target: z.ZodString;
6
+ evaluated_at: z.ZodString;
7
+ field: z.ZodString;
8
+ value: z.ZodOptional<z.ZodString>;
9
+ truncated: z.ZodOptional<z.ZodBoolean>;
10
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
11
+ reference: z.ZodOptional<z.ZodBoolean>;
12
+ degraded: z.ZodOptional<z.ZodBoolean>;
13
+ env_key: z.ZodOptional<z.ZodString>;
14
+ }, z.core.$strip>, z.ZodObject<{
15
+ truncated: z.ZodLiteral<true>;
16
+ dropped: z.ZodNumber;
17
+ }, z.core.$strip>]>;
18
+ export declare const evaluationTraceSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
19
+ expression: z.ZodString;
20
+ roots: z.ZodArray<z.ZodString>;
21
+ fill_target: z.ZodString;
22
+ evaluated_at: z.ZodString;
23
+ field: z.ZodString;
24
+ value: z.ZodOptional<z.ZodString>;
25
+ truncated: z.ZodOptional<z.ZodBoolean>;
26
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
27
+ reference: z.ZodOptional<z.ZodBoolean>;
28
+ degraded: z.ZodOptional<z.ZodBoolean>;
29
+ env_key: z.ZodOptional<z.ZodString>;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ truncated: z.ZodLiteral<true>;
32
+ dropped: z.ZodNumber;
33
+ }, z.core.$strip>]>>;
34
+ export type EvaluationTraceEntryDto = z.infer<typeof evaluationTraceEntrySchema>;
35
+ export type EvaluationTraceDto = z.infer<typeof evaluationTraceSchema>;
36
+ //# sourceMappingURL=evaluation-trace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluation-trace.d.ts","sourceRoot":"","sources":["../../src/schemas/evaluation-trace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAqBtB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;mBAGrC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;oBAAsC,CAAC;AAEzE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACjF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ const evaluationTraceValueSchema = z.object({
3
+ expression: z.string(),
4
+ roots: z.array(z.string()),
5
+ fill_target: z.string(),
6
+ evaluated_at: z.string(),
7
+ field: z.string(),
8
+ value: z.string().optional(),
9
+ truncated: z.boolean().optional(),
10
+ expr_truncated: z.boolean().optional(),
11
+ reference: z.boolean().optional(),
12
+ degraded: z.boolean().optional(),
13
+ env_key: z.string().optional()
14
+ });
15
+ const evaluationTraceLimitSchema = z.object({
16
+ truncated: z.literal(true),
17
+ dropped: z.number().int().nonnegative()
18
+ });
19
+ export const evaluationTraceEntrySchema = z.union([
20
+ evaluationTraceValueSchema,
21
+ evaluationTraceLimitSchema
22
+ ]);
23
+ export const evaluationTraceSchema = z.array(evaluationTraceEntrySchema);
24
+
25
+ //# sourceMappingURL=evaluation-trace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/schemas/evaluation-trace.ts"],"sourcesContent":["import {z} from 'zod';\n\nconst evaluationTraceValueSchema = z.object({\n expression: z.string(),\n roots: z.array(z.string()),\n fill_target: z.string(),\n evaluated_at: z.string(),\n field: z.string(),\n value: z.string().optional(),\n truncated: z.boolean().optional(),\n expr_truncated: z.boolean().optional(),\n reference: z.boolean().optional(),\n degraded: z.boolean().optional(),\n env_key: z.string().optional(),\n});\n\nconst evaluationTraceLimitSchema = z.object({\n truncated: z.literal(true),\n dropped: z.number().int().nonnegative(),\n});\n\nexport const evaluationTraceEntrySchema = z.union([\n evaluationTraceValueSchema,\n evaluationTraceLimitSchema,\n]);\n\nexport const evaluationTraceSchema = z.array(evaluationTraceEntrySchema);\n\nexport type EvaluationTraceEntryDto = z.infer<typeof evaluationTraceEntrySchema>;\nexport type EvaluationTraceDto = z.infer<typeof evaluationTraceSchema>;\n"],"names":["z","evaluationTraceValueSchema","object","expression","string","roots","array","fill_target","evaluated_at","field","value","optional","truncated","boolean","expr_truncated","reference","degraded","env_key","evaluationTraceLimitSchema","literal","dropped","number","int","nonnegative","evaluationTraceEntrySchema","union","evaluationTraceSchema"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,MAAMC,6BAA6BD,EAAEE,MAAM,CAAC;IAC1CC,YAAYH,EAAEI,MAAM;IACpBC,OAAOL,EAAEM,KAAK,CAACN,EAAEI,MAAM;IACvBG,aAAaP,EAAEI,MAAM;IACrBI,cAAcR,EAAEI,MAAM;IACtBK,OAAOT,EAAEI,MAAM;IACfM,OAAOV,EAAEI,MAAM,GAAGO,QAAQ;IAC1BC,WAAWZ,EAAEa,OAAO,GAAGF,QAAQ;IAC/BG,gBAAgBd,EAAEa,OAAO,GAAGF,QAAQ;IACpCI,WAAWf,EAAEa,OAAO,GAAGF,QAAQ;IAC/BK,UAAUhB,EAAEa,OAAO,GAAGF,QAAQ;IAC9BM,SAASjB,EAAEI,MAAM,GAAGO,QAAQ;AAC9B;AAEA,MAAMO,6BAA6BlB,EAAEE,MAAM,CAAC;IAC1CU,WAAWZ,EAAEmB,OAAO,CAAC;IACrBC,SAASpB,EAAEqB,MAAM,GAAGC,GAAG,GAAGC,WAAW;AACvC;AAEA,OAAO,MAAMC,6BAA6BxB,EAAEyB,KAAK,CAAC;IAChDxB;IACAiB;CACD,EAAE;AAEH,OAAO,MAAMQ,wBAAwB1B,EAAEM,KAAK,CAACkB,4BAA4B"}
@@ -1,11 +1,12 @@
1
1
  export { type AgentRuntimeConfigQueryDto, agentRuntimeConfigQuerySchema, } from './agent-runtime-config.js';
2
2
  export { type CheckoutIntentDto, checkoutIntentSchema } from './checkout.js';
3
3
  export { type CheckoutTokenAuthDto, type CheckoutTokenParamsDto, type CheckoutTokenQueryDto, type CheckoutTokenResponseDto, checkoutTokenAuthSchema, checkoutTokenParamsSchema, checkoutTokenQuerySchema, checkoutTokenResponseSchema, } from './checkout-token.js';
4
+ export { type EvaluationTraceDto, type EvaluationTraceEntryDto, evaluationTraceEntrySchema, evaluationTraceSchema, } from './evaluation-trace.js';
4
5
  export { type JobDto, type JobStatusDto, type JobStatusReasonDto, jobDtoSchema, jobStatusReasonSchema, jobStatusSchema, } from './job.js';
5
6
  export { type CheckoutResultDto, checkoutResultSchema, type NextStepResponseDto, nextStepResponseSchema, type ReportStepBodyDto, type ReportStepResponseDto, reportStepBodySchema, reportStepResponseSchema, STEP_RESPONSE_MAX_LENGTH, } from './job-execution.js';
6
7
  export { type JobListeningDto, type JobModeDto, jobListeningBatchSchema, jobListeningSchema, jobModeSchema, type ListenerStatusDto, type ListeningTriggerDto, listenerStatusSchema, listeningTriggerSchema, type ResolutionReasonDto, resolutionReasonSchema, type TriggerEventsBatchDto, triggerEventsBatchSchema, type WorkflowExecutionContextDto, type WorkflowExecutionEventDto, workflowExecutionContextSchema, workflowExecutionEventSchema, } from './job-listening.js';
7
8
  export { type LogOutcomeDto, logOutcomeSchema } from './log-outcome.js';
8
- export { type AgentConfigIssueDto, agentConfigIssueSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, type StepAttemptDto, type StepDto, type StepErrorCategoryDto, type StepErrorDto, type StepErrorReasonDto, type StepGateResultDto, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema, } from './step.js';
9
+ export { type AgentConfigIssueDto, agentConfigIssueSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, STEP_STATUS_REASONS, type StepAttemptDetailDto, type StepAttemptDto, type StepDto, type StepErrorCategoryDto, type StepErrorDto, type StepErrorReasonDto, type StepGateResultDto, type StepStatusReasonDto, stepAttemptDetailDtoSchema, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema, stepStatusReasonSchema, } from './step.js';
9
10
  export { type RerunWorkflowRunBodyDto, rerunWorkflowRunBodySchema, WORKFLOW_RUN_JOB_PREVIEW_LIMIT, type WorkflowRunAggregatesQueryDto, type WorkflowRunAggregatesResponseDto, type WorkflowRunAttemptDto, type WorkflowRunAttemptsResponseDto, type WorkflowRunDto, type WorkflowRunJobStatusCountDto, type WorkflowRunJobSummaryDto, type WorkflowRunListItemDto, type WorkflowRunListQueryDto, type WorkflowRunListResponseDto, type WorkflowRunRerunModeDto, type WorkflowRunResponseDto, type WorkflowRunStatusDto, type WorkflowRunTriggerReferenceDto, type WorkflowSourceSnapshotDto, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDtoSchema, workflowRunJobStatusCountDtoSchema, workflowRunJobSummaryDtoSchema, workflowRunListItemSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowRunTriggerReferenceSchema, workflowSourceSnapshotSchema, } from './workflow-run.js';
10
- export { type JobExecutionDto, jobExecutionDtoSchema, jobExecutionStatusSchema, type WorkflowRunDetailResponseDto, type WorkflowRunJobDetailDto, type WorkflowRunJobExecutionDetailDto, type WorkflowRunStepDetailDto, workflowRunDetailResponseSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunStepDetailDtoSchema, } from './workflow-run-detail.js';
11
+ export { type JobExecutionDto, jobExecutionDtoSchema, jobExecutionStatusSchema, type StepAttemptDetailResponseDto, stepAttemptDetailResponseSchema, type WorkflowRunDetailResponseDto, type WorkflowRunJobDetailDto, type WorkflowRunJobExecutionDetailDto, type WorkflowRunStepDetailDto, workflowRunDetailResponseSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunStepDetailDtoSchema, } from './workflow-run-detail.js';
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAC/B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAC,KAAK,iBAAiB,EAAE,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAC3E,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,YAAY,EACZ,qBAAqB,EACrB,eAAe,GAChB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,KAAK,iBAAiB,EACtB,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,sBAAsB,EACtB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,KAAK,iBAAiB,EACtB,KAAK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AqB,EACrB,wBAAwB,EACxB,KAAK,4BAA4B,EACjC,+BAA+B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,KAAK,wBAAwB,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,sCAAsC,EACtC,8BAA8B,GAC/B,MAAM,0BAA0B,CAAC"}
@@ -1,12 +1,13 @@
1
1
  export { agentRuntimeConfigQuerySchema } from './agent-runtime-config.js';
2
2
  export { checkoutIntentSchema } from './checkout.js';
3
3
  export { checkoutTokenAuthSchema, checkoutTokenParamsSchema, checkoutTokenQuerySchema, checkoutTokenResponseSchema } from './checkout-token.js';
4
+ export { evaluationTraceEntrySchema, evaluationTraceSchema } from './evaluation-trace.js';
4
5
  export { jobDtoSchema, jobStatusReasonSchema, jobStatusSchema } from './job.js';
5
6
  export { checkoutResultSchema, nextStepResponseSchema, reportStepBodySchema, reportStepResponseSchema, STEP_RESPONSE_MAX_LENGTH } from './job-execution.js';
6
7
  export { jobListeningBatchSchema, jobListeningSchema, jobModeSchema, listenerStatusSchema, listeningTriggerSchema, resolutionReasonSchema, triggerEventsBatchSchema, workflowExecutionContextSchema, workflowExecutionEventSchema } from './job-listening.js';
7
8
  export { logOutcomeSchema } from './log-outcome.js';
8
- export { agentConfigIssueSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema } from './step.js';
9
+ export { agentConfigIssueSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, STEP_STATUS_REASONS, stepAttemptDetailDtoSchema, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema, stepStatusReasonSchema } from './step.js';
9
10
  export { rerunWorkflowRunBodySchema, WORKFLOW_RUN_JOB_PREVIEW_LIMIT, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDtoSchema, workflowRunJobStatusCountDtoSchema, workflowRunJobSummaryDtoSchema, workflowRunListItemSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowRunTriggerReferenceSchema, workflowSourceSnapshotSchema } from './workflow-run.js';
10
- export { jobExecutionDtoSchema, jobExecutionStatusSchema, workflowRunDetailResponseSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunStepDetailDtoSchema } from './workflow-run-detail.js';
11
+ export { jobExecutionDtoSchema, jobExecutionStatusSchema, stepAttemptDetailResponseSchema, workflowRunDetailResponseSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunStepDetailDtoSchema } from './workflow-run-detail.js';
11
12
 
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n type AgentRuntimeConfigQueryDto,\n agentRuntimeConfigQuerySchema,\n} from './agent-runtime-config.js';\nexport {type CheckoutIntentDto, checkoutIntentSchema} from './checkout.js';\nexport {\n type CheckoutTokenAuthDto,\n type CheckoutTokenParamsDto,\n type CheckoutTokenQueryDto,\n type CheckoutTokenResponseDto,\n checkoutTokenAuthSchema,\n checkoutTokenParamsSchema,\n checkoutTokenQuerySchema,\n checkoutTokenResponseSchema,\n} from './checkout-token.js';\nexport {\n type JobDto,\n type JobStatusDto,\n type JobStatusReasonDto,\n jobDtoSchema,\n jobStatusReasonSchema,\n jobStatusSchema,\n} from './job.js';\nexport {\n type CheckoutResultDto,\n checkoutResultSchema,\n type NextStepResponseDto,\n nextStepResponseSchema,\n type ReportStepBodyDto,\n type ReportStepResponseDto,\n reportStepBodySchema,\n reportStepResponseSchema,\n STEP_RESPONSE_MAX_LENGTH,\n} from './job-execution.js';\nexport {\n type JobListeningDto,\n type JobModeDto,\n jobListeningBatchSchema,\n jobListeningSchema,\n jobModeSchema,\n type ListenerStatusDto,\n type ListeningTriggerDto,\n listenerStatusSchema,\n listeningTriggerSchema,\n type ResolutionReasonDto,\n resolutionReasonSchema,\n type TriggerEventsBatchDto,\n triggerEventsBatchSchema,\n type WorkflowExecutionContextDto,\n type WorkflowExecutionEventDto,\n workflowExecutionContextSchema,\n workflowExecutionEventSchema,\n} from './job-listening.js';\nexport {type LogOutcomeDto, logOutcomeSchema} from './log-outcome.js';\nexport {\n type AgentConfigIssueDto,\n agentConfigIssueSchema,\n STEP_ERROR_MESSAGE_MAX_LENGTH,\n type StepAttemptDto,\n type StepDto,\n type StepErrorCategoryDto,\n type StepErrorDto,\n type StepErrorReasonDto,\n type StepGateResultDto,\n stepAttemptDtoSchema,\n stepDtoSchema,\n stepErrorCategorySchema,\n stepErrorDtoSchema,\n stepErrorReasonSchema,\n stepGateResultDtoSchema,\n} from './step.js';\nexport {\n type RerunWorkflowRunBodyDto,\n rerunWorkflowRunBodySchema,\n WORKFLOW_RUN_JOB_PREVIEW_LIMIT,\n type WorkflowRunAggregatesQueryDto,\n type WorkflowRunAggregatesResponseDto,\n type WorkflowRunAttemptDto,\n type WorkflowRunAttemptsResponseDto,\n type WorkflowRunDto,\n type WorkflowRunJobStatusCountDto,\n type WorkflowRunJobSummaryDto,\n type WorkflowRunListItemDto,\n type WorkflowRunListQueryDto,\n type WorkflowRunListResponseDto,\n type WorkflowRunRerunModeDto,\n type WorkflowRunResponseDto,\n type WorkflowRunStatusDto,\n type WorkflowRunTriggerReferenceDto,\n type WorkflowSourceSnapshotDto,\n workflowRunAggregatesQuerySchema,\n workflowRunAggregatesResponseSchema,\n workflowRunAttemptDtoSchema,\n workflowRunAttemptsResponseSchema,\n workflowRunDtoSchema,\n workflowRunJobStatusCountDtoSchema,\n workflowRunJobSummaryDtoSchema,\n workflowRunListItemSchema,\n workflowRunListQuerySchema,\n workflowRunListResponseSchema,\n workflowRunRerunModeSchema,\n workflowRunResponseSchema,\n workflowRunStatusSchema,\n workflowRunTriggerReferenceSchema,\n workflowSourceSnapshotSchema,\n} from './workflow-run.js';\nexport {\n type JobExecutionDto,\n jobExecutionDtoSchema,\n jobExecutionStatusSchema,\n type WorkflowRunDetailResponseDto,\n type WorkflowRunJobDetailDto,\n type WorkflowRunJobExecutionDetailDto,\n type WorkflowRunStepDetailDto,\n workflowRunDetailResponseSchema,\n workflowRunJobDetailDtoSchema,\n workflowRunJobExecutionDetailDtoSchema,\n workflowRunStepDetailDtoSchema,\n} from './workflow-run-detail.js';\n"],"names":["agentRuntimeConfigQuerySchema","checkoutIntentSchema","checkoutTokenAuthSchema","checkoutTokenParamsSchema","checkoutTokenQuerySchema","checkoutTokenResponseSchema","jobDtoSchema","jobStatusReasonSchema","jobStatusSchema","checkoutResultSchema","nextStepResponseSchema","reportStepBodySchema","reportStepResponseSchema","STEP_RESPONSE_MAX_LENGTH","jobListeningBatchSchema","jobListeningSchema","jobModeSchema","listenerStatusSchema","listeningTriggerSchema","resolutionReasonSchema","triggerEventsBatchSchema","workflowExecutionContextSchema","workflowExecutionEventSchema","logOutcomeSchema","agentConfigIssueSchema","STEP_ERROR_MESSAGE_MAX_LENGTH","stepAttemptDtoSchema","stepDtoSchema","stepErrorCategorySchema","stepErrorDtoSchema","stepErrorReasonSchema","stepGateResultDtoSchema","rerunWorkflowRunBodySchema","WORKFLOW_RUN_JOB_PREVIEW_LIMIT","workflowRunAggregatesQuerySchema","workflowRunAggregatesResponseSchema","workflowRunAttemptDtoSchema","workflowRunAttemptsResponseSchema","workflowRunDtoSchema","workflowRunJobStatusCountDtoSchema","workflowRunJobSummaryDtoSchema","workflowRunListItemSchema","workflowRunListQuerySchema","workflowRunListResponseSchema","workflowRunRerunModeSchema","workflowRunResponseSchema","workflowRunStatusSchema","workflowRunTriggerReferenceSchema","workflowSourceSnapshotSchema","jobExecutionDtoSchema","jobExecutionStatusSchema","workflowRunDetailResponseSchema","workflowRunJobDetailDtoSchema","workflowRunJobExecutionDetailDtoSchema","workflowRunStepDetailDtoSchema"],"mappings":"AAAA,SAEEA,6BAA6B,QACxB,4BAA4B;AACnC,SAAgCC,oBAAoB,QAAO,gBAAgB;AAC3E,SAKEC,uBAAuB,EACvBC,yBAAyB,EACzBC,wBAAwB,EACxBC,2BAA2B,QACtB,sBAAsB;AAC7B,SAIEC,YAAY,EACZC,qBAAqB,EACrBC,eAAe,QACV,WAAW;AAClB,SAEEC,oBAAoB,EAEpBC,sBAAsB,EAGtBC,oBAAoB,EACpBC,wBAAwB,EACxBC,wBAAwB,QACnB,qBAAqB;AAC5B,SAGEC,uBAAuB,EACvBC,kBAAkB,EAClBC,aAAa,EAGbC,oBAAoB,EACpBC,sBAAsB,EAEtBC,sBAAsB,EAEtBC,wBAAwB,EAGxBC,8BAA8B,EAC9BC,4BAA4B,QACvB,qBAAqB;AAC5B,SAA4BC,gBAAgB,QAAO,mBAAmB;AACtE,SAEEC,sBAAsB,EACtBC,6BAA6B,EAO7BC,oBAAoB,EACpBC,aAAa,EACbC,uBAAuB,EACvBC,kBAAkB,EAClBC,qBAAqB,EACrBC,uBAAuB,QAClB,YAAY;AACnB,SAEEC,0BAA0B,EAC1BC,8BAA8B,EAgB9BC,gCAAgC,EAChCC,mCAAmC,EACnCC,2BAA2B,EAC3BC,iCAAiC,EACjCC,oBAAoB,EACpBC,kCAAkC,EAClCC,8BAA8B,EAC9BC,yBAAyB,EACzBC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,0BAA0B,EAC1BC,yBAAyB,EACzBC,uBAAuB,EACvBC,iCAAiC,EACjCC,4BAA4B,QACvB,oBAAoB;AAC3B,SAEEC,qBAAqB,EACrBC,wBAAwB,EAKxBC,+BAA+B,EAC/BC,6BAA6B,EAC7BC,sCAAsC,EACtCC,8BAA8B,QACzB,2BAA2B"}
1
+ {"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n type AgentRuntimeConfigQueryDto,\n agentRuntimeConfigQuerySchema,\n} from './agent-runtime-config.js';\nexport {type CheckoutIntentDto, checkoutIntentSchema} from './checkout.js';\nexport {\n type CheckoutTokenAuthDto,\n type CheckoutTokenParamsDto,\n type CheckoutTokenQueryDto,\n type CheckoutTokenResponseDto,\n checkoutTokenAuthSchema,\n checkoutTokenParamsSchema,\n checkoutTokenQuerySchema,\n checkoutTokenResponseSchema,\n} from './checkout-token.js';\nexport {\n type EvaluationTraceDto,\n type EvaluationTraceEntryDto,\n evaluationTraceEntrySchema,\n evaluationTraceSchema,\n} from './evaluation-trace.js';\nexport {\n type JobDto,\n type JobStatusDto,\n type JobStatusReasonDto,\n jobDtoSchema,\n jobStatusReasonSchema,\n jobStatusSchema,\n} from './job.js';\nexport {\n type CheckoutResultDto,\n checkoutResultSchema,\n type NextStepResponseDto,\n nextStepResponseSchema,\n type ReportStepBodyDto,\n type ReportStepResponseDto,\n reportStepBodySchema,\n reportStepResponseSchema,\n STEP_RESPONSE_MAX_LENGTH,\n} from './job-execution.js';\nexport {\n type JobListeningDto,\n type JobModeDto,\n jobListeningBatchSchema,\n jobListeningSchema,\n jobModeSchema,\n type ListenerStatusDto,\n type ListeningTriggerDto,\n listenerStatusSchema,\n listeningTriggerSchema,\n type ResolutionReasonDto,\n resolutionReasonSchema,\n type TriggerEventsBatchDto,\n triggerEventsBatchSchema,\n type WorkflowExecutionContextDto,\n type WorkflowExecutionEventDto,\n workflowExecutionContextSchema,\n workflowExecutionEventSchema,\n} from './job-listening.js';\nexport {type LogOutcomeDto, logOutcomeSchema} from './log-outcome.js';\nexport {\n type AgentConfigIssueDto,\n agentConfigIssueSchema,\n STEP_ERROR_MESSAGE_MAX_LENGTH,\n STEP_STATUS_REASONS,\n type StepAttemptDetailDto,\n type StepAttemptDto,\n type StepDto,\n type StepErrorCategoryDto,\n type StepErrorDto,\n type StepErrorReasonDto,\n type StepGateResultDto,\n type StepStatusReasonDto,\n stepAttemptDetailDtoSchema,\n stepAttemptDtoSchema,\n stepDtoSchema,\n stepErrorCategorySchema,\n stepErrorDtoSchema,\n stepErrorReasonSchema,\n stepGateResultDtoSchema,\n stepStatusReasonSchema,\n} from './step.js';\nexport {\n type RerunWorkflowRunBodyDto,\n rerunWorkflowRunBodySchema,\n WORKFLOW_RUN_JOB_PREVIEW_LIMIT,\n type WorkflowRunAggregatesQueryDto,\n type WorkflowRunAggregatesResponseDto,\n type WorkflowRunAttemptDto,\n type WorkflowRunAttemptsResponseDto,\n type WorkflowRunDto,\n type WorkflowRunJobStatusCountDto,\n type WorkflowRunJobSummaryDto,\n type WorkflowRunListItemDto,\n type WorkflowRunListQueryDto,\n type WorkflowRunListResponseDto,\n type WorkflowRunRerunModeDto,\n type WorkflowRunResponseDto,\n type WorkflowRunStatusDto,\n type WorkflowRunTriggerReferenceDto,\n type WorkflowSourceSnapshotDto,\n workflowRunAggregatesQuerySchema,\n workflowRunAggregatesResponseSchema,\n workflowRunAttemptDtoSchema,\n workflowRunAttemptsResponseSchema,\n workflowRunDtoSchema,\n workflowRunJobStatusCountDtoSchema,\n workflowRunJobSummaryDtoSchema,\n workflowRunListItemSchema,\n workflowRunListQuerySchema,\n workflowRunListResponseSchema,\n workflowRunRerunModeSchema,\n workflowRunResponseSchema,\n workflowRunStatusSchema,\n workflowRunTriggerReferenceSchema,\n workflowSourceSnapshotSchema,\n} from './workflow-run.js';\nexport {\n type JobExecutionDto,\n jobExecutionDtoSchema,\n jobExecutionStatusSchema,\n type StepAttemptDetailResponseDto,\n stepAttemptDetailResponseSchema,\n type WorkflowRunDetailResponseDto,\n type WorkflowRunJobDetailDto,\n type WorkflowRunJobExecutionDetailDto,\n type WorkflowRunStepDetailDto,\n workflowRunDetailResponseSchema,\n workflowRunJobDetailDtoSchema,\n workflowRunJobExecutionDetailDtoSchema,\n workflowRunStepDetailDtoSchema,\n} from './workflow-run-detail.js';\n"],"names":["agentRuntimeConfigQuerySchema","checkoutIntentSchema","checkoutTokenAuthSchema","checkoutTokenParamsSchema","checkoutTokenQuerySchema","checkoutTokenResponseSchema","evaluationTraceEntrySchema","evaluationTraceSchema","jobDtoSchema","jobStatusReasonSchema","jobStatusSchema","checkoutResultSchema","nextStepResponseSchema","reportStepBodySchema","reportStepResponseSchema","STEP_RESPONSE_MAX_LENGTH","jobListeningBatchSchema","jobListeningSchema","jobModeSchema","listenerStatusSchema","listeningTriggerSchema","resolutionReasonSchema","triggerEventsBatchSchema","workflowExecutionContextSchema","workflowExecutionEventSchema","logOutcomeSchema","agentConfigIssueSchema","STEP_ERROR_MESSAGE_MAX_LENGTH","STEP_STATUS_REASONS","stepAttemptDetailDtoSchema","stepAttemptDtoSchema","stepDtoSchema","stepErrorCategorySchema","stepErrorDtoSchema","stepErrorReasonSchema","stepGateResultDtoSchema","stepStatusReasonSchema","rerunWorkflowRunBodySchema","WORKFLOW_RUN_JOB_PREVIEW_LIMIT","workflowRunAggregatesQuerySchema","workflowRunAggregatesResponseSchema","workflowRunAttemptDtoSchema","workflowRunAttemptsResponseSchema","workflowRunDtoSchema","workflowRunJobStatusCountDtoSchema","workflowRunJobSummaryDtoSchema","workflowRunListItemSchema","workflowRunListQuerySchema","workflowRunListResponseSchema","workflowRunRerunModeSchema","workflowRunResponseSchema","workflowRunStatusSchema","workflowRunTriggerReferenceSchema","workflowSourceSnapshotSchema","jobExecutionDtoSchema","jobExecutionStatusSchema","stepAttemptDetailResponseSchema","workflowRunDetailResponseSchema","workflowRunJobDetailDtoSchema","workflowRunJobExecutionDetailDtoSchema","workflowRunStepDetailDtoSchema"],"mappings":"AAAA,SAEEA,6BAA6B,QACxB,4BAA4B;AACnC,SAAgCC,oBAAoB,QAAO,gBAAgB;AAC3E,SAKEC,uBAAuB,EACvBC,yBAAyB,EACzBC,wBAAwB,EACxBC,2BAA2B,QACtB,sBAAsB;AAC7B,SAGEC,0BAA0B,EAC1BC,qBAAqB,QAChB,wBAAwB;AAC/B,SAIEC,YAAY,EACZC,qBAAqB,EACrBC,eAAe,QACV,WAAW;AAClB,SAEEC,oBAAoB,EAEpBC,sBAAsB,EAGtBC,oBAAoB,EACpBC,wBAAwB,EACxBC,wBAAwB,QACnB,qBAAqB;AAC5B,SAGEC,uBAAuB,EACvBC,kBAAkB,EAClBC,aAAa,EAGbC,oBAAoB,EACpBC,sBAAsB,EAEtBC,sBAAsB,EAEtBC,wBAAwB,EAGxBC,8BAA8B,EAC9BC,4BAA4B,QACvB,qBAAqB;AAC5B,SAA4BC,gBAAgB,QAAO,mBAAmB;AACtE,SAEEC,sBAAsB,EACtBC,6BAA6B,EAC7BC,mBAAmB,EASnBC,0BAA0B,EAC1BC,oBAAoB,EACpBC,aAAa,EACbC,uBAAuB,EACvBC,kBAAkB,EAClBC,qBAAqB,EACrBC,uBAAuB,EACvBC,sBAAsB,QACjB,YAAY;AACnB,SAEEC,0BAA0B,EAC1BC,8BAA8B,EAgB9BC,gCAAgC,EAChCC,mCAAmC,EACnCC,2BAA2B,EAC3BC,iCAAiC,EACjCC,oBAAoB,EACpBC,kCAAkC,EAClCC,8BAA8B,EAC9BC,yBAAyB,EACzBC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,0BAA0B,EAC1BC,yBAAyB,EACzBC,uBAAuB,EACvBC,iCAAiC,EACjCC,4BAA4B,QACvB,oBAAoB;AAC3B,SAEEC,qBAAqB,EACrBC,wBAAwB,EAExBC,+BAA+B,EAK/BC,+BAA+B,EAC/BC,6BAA6B,EAC7BC,sCAAsC,EACtCC,8BAA8B,QACzB,2BAA2B"}
@@ -16,8 +16,29 @@ export declare const nextStepResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
16
16
  end_line: z.ZodNumber;
17
17
  }, z.core.$strip>>;
18
18
  status: z.ZodString;
19
+ status_reason: z.ZodNullable<z.ZodEnum<{
20
+ condition_errored: "condition_errored";
21
+ condition_rejected: "condition_rejected";
22
+ default_gate_rejected: "default_gate_rejected";
23
+ }>>;
19
24
  type: z.ZodString;
20
25
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
26
+ evaluation_trace: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
27
+ expression: z.ZodString;
28
+ roots: z.ZodArray<z.ZodString>;
29
+ fill_target: z.ZodString;
30
+ evaluated_at: z.ZodString;
31
+ field: z.ZodString;
32
+ value: z.ZodOptional<z.ZodString>;
33
+ truncated: z.ZodOptional<z.ZodBoolean>;
34
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
35
+ reference: z.ZodOptional<z.ZodBoolean>;
36
+ degraded: z.ZodOptional<z.ZodBoolean>;
37
+ env_key: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ truncated: z.ZodLiteral<true>;
40
+ dropped: z.ZodNumber;
41
+ }, z.core.$strip>]>>>;
21
42
  error: z.ZodNullable<z.ZodObject<{
22
43
  message: z.ZodString;
23
44
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1 +1 @@
1
- {"version":3,"file":"job-execution.d.ts","sourceRoot":"","sources":["../../src/schemas/job-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,wBAAwB,QAAW,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwBjC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEzE,eAAO,MAAM,oBAAoB;;;;;iBAO0C,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAErE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2C7B,CAAC;AAEL,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAErE,eAAO,MAAM,wBAAwB;;;iBAOnC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"job-execution.d.ts","sourceRoot":"","sources":["../../src/schemas/job-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,wBAAwB,QAAW,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwBjC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEzE,eAAO,MAAM,oBAAoB;;;;;iBAO0C,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAErE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2C7B,CAAC;AAEL,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAErE,eAAO,MAAM,wBAAwB;;;iBAOnC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -13,6 +13,8 @@ export declare const jobStatusReasonSchema: z.ZodEnum<{
13
13
  condition_rejected: "condition_rejected";
14
14
  default_gate_rejected: "default_gate_rejected";
15
15
  dependency_not_completed: "dependency_not_completed";
16
+ output_invalid: "output_invalid";
17
+ output_too_large: "output_too_large";
16
18
  run_cancelled: "run_cancelled";
17
19
  runner_lost: "runner_lost";
18
20
  step_failed: "step_failed";
@@ -43,6 +45,8 @@ export declare const jobDtoSchema: z.ZodObject<{
43
45
  condition_rejected: "condition_rejected";
44
46
  default_gate_rejected: "default_gate_rejected";
45
47
  dependency_not_completed: "dependency_not_completed";
48
+ output_invalid: "output_invalid";
49
+ output_too_large: "output_too_large";
46
50
  run_cancelled: "run_cancelled";
47
51
  runner_lost: "runner_lost";
48
52
  step_failed: "step_failed";
@@ -51,6 +55,24 @@ export declare const jobDtoSchema: z.ZodObject<{
51
55
  user_cancelled: "user_cancelled";
52
56
  }>>;
53
57
  carried_over: z.ZodBoolean;
58
+ success: z.ZodNullable<z.ZodString>;
59
+ runner: z.ZodNullable<z.ZodArray<z.ZodString>>;
60
+ evaluation_trace: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
61
+ expression: z.ZodString;
62
+ roots: z.ZodArray<z.ZodString>;
63
+ fill_target: z.ZodString;
64
+ evaluated_at: z.ZodString;
65
+ field: z.ZodString;
66
+ value: z.ZodOptional<z.ZodString>;
67
+ truncated: z.ZodOptional<z.ZodBoolean>;
68
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
69
+ reference: z.ZodOptional<z.ZodBoolean>;
70
+ degraded: z.ZodOptional<z.ZodBoolean>;
71
+ env_key: z.ZodOptional<z.ZodString>;
72
+ }, z.core.$strip>, z.ZodObject<{
73
+ truncated: z.ZodLiteral<true>;
74
+ dropped: z.ZodNumber;
75
+ }, z.core.$strip>]>>>;
54
76
  listening: z.ZodNullable<z.ZodObject<{
55
77
  on: z.ZodArray<z.ZodObject<{
56
78
  source: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"job.d.ts","sourceRoot":"","sources":["../../src/schemas/job.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAQtB,eAAO,MAAM,eAAe;;;;;;;EAO1B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAYhC,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiBvB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAClD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC3D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"job.d.ts","sourceRoot":"","sources":["../../src/schemas/job.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAStB,eAAO,MAAM,eAAe;;;;;;;EAO1B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;EAchC,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBvB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAClD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC3D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { evaluationTraceSchema } from './evaluation-trace.js';
2
3
  import { jobListeningSchema, jobModeSchema, listenerStatusSchema, resolutionReasonSchema } from './job-listening.js';
3
4
  export const jobStatusSchema = z.enum([
4
5
  'pending',
@@ -18,8 +19,10 @@ export const jobStatusReasonSchema = z.enum([
18
19
  'run_cancelled',
19
20
  'timed_out',
20
21
  'runner_lost',
22
+ 'output_too_large',
21
23
  'step_failed',
22
- 'unknown'
24
+ 'unknown',
25
+ 'output_invalid'
23
26
  ]);
24
27
  export const jobDtoSchema = z.object({
25
28
  id: z.string().uuid(),
@@ -30,6 +33,9 @@ export const jobDtoSchema = z.object({
30
33
  status: jobStatusSchema,
31
34
  status_reason: jobStatusReasonSchema.nullable(),
32
35
  carried_over: z.boolean(),
36
+ success: z.string().nullable(),
37
+ runner: z.array(z.string()).nullable(),
38
+ evaluation_trace: evaluationTraceSchema.nullable(),
33
39
  listening: jobListeningSchema.nullable(),
34
40
  listener_status: listenerStatusSchema,
35
41
  resolution_reason: resolutionReasonSchema.nullable(),