@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 +1 @@
1
- {"version":3,"sources":["../../src/schemas/job.ts"],"sourcesContent":["import {z} from 'zod';\nimport {\n jobListeningSchema,\n jobModeSchema,\n listenerStatusSchema,\n resolutionReasonSchema,\n} from './job-listening.js';\n\nexport const jobStatusSchema = z.enum([\n 'pending',\n 'running',\n 'succeeded',\n 'failed',\n 'cancelled',\n 'skipped',\n]);\n\nexport const jobStatusReasonSchema = z.enum([\n 'dependency_not_completed',\n 'condition_false',\n 'default_gate_rejected',\n 'condition_rejected',\n 'condition_errored',\n 'user_cancelled',\n 'run_cancelled',\n 'timed_out',\n 'runner_lost',\n 'step_failed',\n 'unknown',\n]);\n\nexport const jobDtoSchema = z.object({\n id: z.string().uuid(),\n run_attempt_id: z.string().uuid(),\n key: z.string(),\n name: z.string().nullable(),\n mode: jobModeSchema,\n status: jobStatusSchema,\n status_reason: jobStatusReasonSchema.nullable(),\n carried_over: z.boolean(),\n listening: jobListeningSchema.nullable(),\n listener_status: listenerStatusSchema,\n resolution_reason: resolutionReasonSchema.nullable(),\n outputs: z.record(z.string(), z.unknown()).nullable(),\n dependencies: z.array(z.string()),\n position: z.number(),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type JobDto = z.infer<typeof jobDtoSchema>;\nexport type JobStatusDto = z.infer<typeof jobStatusSchema>;\nexport type JobStatusReasonDto = z.infer<typeof jobStatusReasonSchema>;\n"],"names":["z","jobListeningSchema","jobModeSchema","listenerStatusSchema","resolutionReasonSchema","jobStatusSchema","enum","jobStatusReasonSchema","jobDtoSchema","object","id","string","uuid","run_attempt_id","key","name","nullable","mode","status","status_reason","carried_over","boolean","listening","listener_status","resolution_reason","outputs","record","unknown","dependencies","array","position","number","created_at","updated_at"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SACEC,kBAAkB,EAClBC,aAAa,EACbC,oBAAoB,EACpBC,sBAAsB,QACjB,qBAAqB;AAE5B,OAAO,MAAMC,kBAAkBL,EAAEM,IAAI,CAAC;IACpC;IACA;IACA;IACA;IACA;IACA;CACD,EAAE;AAEH,OAAO,MAAMC,wBAAwBP,EAAEM,IAAI,CAAC;IAC1C;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD,EAAE;AAEH,OAAO,MAAME,eAAeR,EAAES,MAAM,CAAC;IACnCC,IAAIV,EAAEW,MAAM,GAAGC,IAAI;IACnBC,gBAAgBb,EAAEW,MAAM,GAAGC,IAAI;IAC/BE,KAAKd,EAAEW,MAAM;IACbI,MAAMf,EAAEW,MAAM,GAAGK,QAAQ;IACzBC,MAAMf;IACNgB,QAAQb;IACRc,eAAeZ,sBAAsBS,QAAQ;IAC7CI,cAAcpB,EAAEqB,OAAO;IACvBC,WAAWrB,mBAAmBe,QAAQ;IACtCO,iBAAiBpB;IACjBqB,mBAAmBpB,uBAAuBY,QAAQ;IAClDS,SAASzB,EAAE0B,MAAM,CAAC1B,EAAEW,MAAM,IAAIX,EAAE2B,OAAO,IAAIX,QAAQ;IACnDY,cAAc5B,EAAE6B,KAAK,CAAC7B,EAAEW,MAAM;IAC9BmB,UAAU9B,EAAE+B,MAAM;IAClBC,YAAYhC,EAAEW,MAAM;IACpBsB,YAAYjC,EAAEW,MAAM;AACtB,GAAG"}
1
+ {"version":3,"sources":["../../src/schemas/job.ts"],"sourcesContent":["import {z} from 'zod';\nimport {evaluationTraceSchema} from './evaluation-trace.js';\nimport {\n jobListeningSchema,\n jobModeSchema,\n listenerStatusSchema,\n resolutionReasonSchema,\n} from './job-listening.js';\n\nexport const jobStatusSchema = z.enum([\n 'pending',\n 'running',\n 'succeeded',\n 'failed',\n 'cancelled',\n 'skipped',\n]);\n\nexport const jobStatusReasonSchema = z.enum([\n 'dependency_not_completed',\n 'condition_false',\n 'default_gate_rejected',\n 'condition_rejected',\n 'condition_errored',\n 'user_cancelled',\n 'run_cancelled',\n 'timed_out',\n 'runner_lost',\n 'output_too_large',\n 'step_failed',\n 'unknown',\n 'output_invalid',\n]);\n\nexport const jobDtoSchema = z.object({\n id: z.string().uuid(),\n run_attempt_id: z.string().uuid(),\n key: z.string(),\n name: z.string().nullable(),\n mode: jobModeSchema,\n status: jobStatusSchema,\n status_reason: jobStatusReasonSchema.nullable(),\n carried_over: z.boolean(),\n success: z.string().nullable(),\n runner: z.array(z.string()).nullable(),\n evaluation_trace: evaluationTraceSchema.nullable(),\n listening: jobListeningSchema.nullable(),\n listener_status: listenerStatusSchema,\n resolution_reason: resolutionReasonSchema.nullable(),\n outputs: z.record(z.string(), z.unknown()).nullable(),\n dependencies: z.array(z.string()),\n position: z.number(),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type JobDto = z.infer<typeof jobDtoSchema>;\nexport type JobStatusDto = z.infer<typeof jobStatusSchema>;\nexport type JobStatusReasonDto = z.infer<typeof jobStatusReasonSchema>;\n"],"names":["z","evaluationTraceSchema","jobListeningSchema","jobModeSchema","listenerStatusSchema","resolutionReasonSchema","jobStatusSchema","enum","jobStatusReasonSchema","jobDtoSchema","object","id","string","uuid","run_attempt_id","key","name","nullable","mode","status","status_reason","carried_over","boolean","success","runner","array","evaluation_trace","listening","listener_status","resolution_reason","outputs","record","unknown","dependencies","position","number","created_at","updated_at"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,qBAAqB,QAAO,wBAAwB;AAC5D,SACEC,kBAAkB,EAClBC,aAAa,EACbC,oBAAoB,EACpBC,sBAAsB,QACjB,qBAAqB;AAE5B,OAAO,MAAMC,kBAAkBN,EAAEO,IAAI,CAAC;IACpC;IACA;IACA;IACA;IACA;IACA;CACD,EAAE;AAEH,OAAO,MAAMC,wBAAwBR,EAAEO,IAAI,CAAC;IAC1C;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD,EAAE;AAEH,OAAO,MAAME,eAAeT,EAAEU,MAAM,CAAC;IACnCC,IAAIX,EAAEY,MAAM,GAAGC,IAAI;IACnBC,gBAAgBd,EAAEY,MAAM,GAAGC,IAAI;IAC/BE,KAAKf,EAAEY,MAAM;IACbI,MAAMhB,EAAEY,MAAM,GAAGK,QAAQ;IACzBC,MAAMf;IACNgB,QAAQb;IACRc,eAAeZ,sBAAsBS,QAAQ;IAC7CI,cAAcrB,EAAEsB,OAAO;IACvBC,SAASvB,EAAEY,MAAM,GAAGK,QAAQ;IAC5BO,QAAQxB,EAAEyB,KAAK,CAACzB,EAAEY,MAAM,IAAIK,QAAQ;IACpCS,kBAAkBzB,sBAAsBgB,QAAQ;IAChDU,WAAWzB,mBAAmBe,QAAQ;IACtCW,iBAAiBxB;IACjByB,mBAAmBxB,uBAAuBY,QAAQ;IAClDa,SAAS9B,EAAE+B,MAAM,CAAC/B,EAAEY,MAAM,IAAIZ,EAAEgC,OAAO,IAAIf,QAAQ;IACnDgB,cAAcjC,EAAEyB,KAAK,CAACzB,EAAEY,MAAM;IAC9BsB,UAAUlC,EAAEmC,MAAM;IAClBC,YAAYpC,EAAEY,MAAM;IACpByB,YAAYrC,EAAEY,MAAM;AACtB,GAAG"}
@@ -1,4 +1,11 @@
1
1
  import { z } from 'zod';
2
+ export declare const STEP_STATUS_REASONS: readonly ['default_gate_rejected', 'condition_rejected', 'condition_errored'];
3
+ export declare const stepStatusReasonSchema: z.ZodEnum<{
4
+ condition_errored: "condition_errored";
5
+ condition_rejected: "condition_rejected";
6
+ default_gate_rejected: "default_gate_rejected";
7
+ }>;
8
+ export type StepStatusReasonDto = z.infer<typeof stepStatusReasonSchema>;
2
9
  export declare const stepErrorReasonSchema: z.ZodEnum<{
3
10
  agent_config_invalid: "agent_config_invalid";
4
11
  agent_harness_unavailable: "agent_harness_unavailable";
@@ -78,8 +85,29 @@ export declare const stepDtoSchema: z.ZodObject<{
78
85
  end_line: z.ZodNumber;
79
86
  }, z.core.$strip>>;
80
87
  status: z.ZodString;
88
+ status_reason: z.ZodNullable<z.ZodEnum<{
89
+ condition_errored: "condition_errored";
90
+ condition_rejected: "condition_rejected";
91
+ default_gate_rejected: "default_gate_rejected";
92
+ }>>;
81
93
  type: z.ZodString;
82
94
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
95
+ evaluation_trace: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
96
+ expression: z.ZodString;
97
+ roots: z.ZodArray<z.ZodString>;
98
+ fill_target: z.ZodString;
99
+ evaluated_at: z.ZodString;
100
+ field: z.ZodString;
101
+ value: z.ZodOptional<z.ZodString>;
102
+ truncated: z.ZodOptional<z.ZodBoolean>;
103
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
104
+ reference: z.ZodOptional<z.ZodBoolean>;
105
+ degraded: z.ZodOptional<z.ZodBoolean>;
106
+ env_key: z.ZodOptional<z.ZodString>;
107
+ }, z.core.$strip>, z.ZodObject<{
108
+ truncated: z.ZodLiteral<true>;
109
+ dropped: z.ZodNumber;
110
+ }, z.core.$strip>]>>>;
83
111
  error: z.ZodNullable<z.ZodObject<{
84
112
  message: z.ZodString;
85
113
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -192,4 +220,65 @@ export declare const stepAttemptDtoSchema: z.ZodObject<{
192
220
  finished_at: z.ZodNullable<z.ZodString>;
193
221
  }, z.core.$strip>;
194
222
  export type StepAttemptDto = z.infer<typeof stepAttemptDtoSchema>;
223
+ export declare const stepAttemptDetailDtoSchema: z.ZodObject<{
224
+ id: z.ZodString;
225
+ step_id: z.ZodString;
226
+ attempt: z.ZodNumber;
227
+ execution_order: z.ZodNumber;
228
+ status: z.ZodString;
229
+ exit_code: z.ZodNullable<z.ZodNumber>;
230
+ output: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
231
+ outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
232
+ response: z.ZodNullable<z.ZodString>;
233
+ error: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
234
+ gate_result: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
235
+ kind: z.ZodLiteral<"none">;
236
+ }, z.core.$strip>, z.ZodObject<{
237
+ kind: z.ZodLiteral<"not_evaluated">;
238
+ }, z.core.$strip>, z.ZodObject<{
239
+ kind: z.ZodLiteral<"passed">;
240
+ passed: z.ZodLiteral<true>;
241
+ source: z.ZodString;
242
+ exit_code: z.ZodNullable<z.ZodNumber>;
243
+ }, z.core.$strip>, z.ZodObject<{
244
+ kind: z.ZodLiteral<"failed">;
245
+ passed: z.ZodLiteral<false>;
246
+ source: z.ZodString;
247
+ exit_code: z.ZodNullable<z.ZodNumber>;
248
+ }, z.core.$strip>, z.ZodObject<{
249
+ kind: z.ZodLiteral<"uncheckable">;
250
+ passed: z.ZodLiteral<false>;
251
+ uncheckable: z.ZodLiteral<true>;
252
+ reason: z.ZodString;
253
+ exit_code: z.ZodNullable<z.ZodNumber>;
254
+ }, z.core.$strip>, z.ZodObject<{
255
+ kind: z.ZodLiteral<"evaluation_error">;
256
+ reason: z.ZodString;
257
+ exit_code: z.ZodNullable<z.ZodNumber>;
258
+ }, z.core.$strip>, z.ZodObject<{
259
+ kind: z.ZodLiteral<"unknown">;
260
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
261
+ }, z.core.$strip>], "kind">>;
262
+ restart_feedback: z.ZodNullable<z.ZodString>;
263
+ started_at: z.ZodString;
264
+ finished_at: z.ZodNullable<z.ZodString>;
265
+ config: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
266
+ evaluation_trace: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
267
+ expression: z.ZodString;
268
+ roots: z.ZodArray<z.ZodString>;
269
+ fill_target: z.ZodString;
270
+ evaluated_at: z.ZodString;
271
+ field: z.ZodString;
272
+ value: z.ZodOptional<z.ZodString>;
273
+ truncated: z.ZodOptional<z.ZodBoolean>;
274
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
275
+ reference: z.ZodOptional<z.ZodBoolean>;
276
+ degraded: z.ZodOptional<z.ZodBoolean>;
277
+ env_key: z.ZodOptional<z.ZodString>;
278
+ }, z.core.$strip>, z.ZodObject<{
279
+ truncated: z.ZodLiteral<true>;
280
+ dropped: z.ZodNumber;
281
+ }, z.core.$strip>]>>>;
282
+ }, z.core.$strip>;
283
+ export type StepAttemptDetailDto = z.infer<typeof stepAttemptDetailDtoSchema>;
195
284
  //# sourceMappingURL=step.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../src/schemas/step.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAWtB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;EAchC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEvE,eAAO,MAAM,sBAAsB;;;;;;EAMjC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAIzE,eAAO,MAAM,uBAAuB;;;EAA4B,CAAC;AAEjE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,6BAA6B,OAAO,CAAC;AAElD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkBlB,CAAC;AAEd,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,M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aluation-trace.js';
3
+ export const STEP_STATUS_REASONS = [
4
+ 'default_gate_rejected',
5
+ 'condition_rejected',
6
+ 'condition_errored'
7
+ ];
8
+ export const stepStatusReasonSchema = z.enum(STEP_STATUS_REASONS);
2
9
  // Machine-readable cause of a step failure, for DB troubleshooting. The runner
3
10
  // reports it and the server stores it as-is. The `checkout_*`, `git_unavailable`,
4
11
  // `workspace_prep_failed`, and `setup_aborted` values cover checkout/setup failures.
@@ -68,8 +75,10 @@ export const stepDtoSchema = z.object({
68
75
  name: z.string(),
69
76
  source_location: stepSourceLocationSchema.nullable(),
70
77
  status: z.string(),
78
+ status_reason: stepStatusReasonSchema.nullable(),
71
79
  type: z.string(),
72
80
  config: z.record(z.string(), z.unknown()),
81
+ evaluation_trace: evaluationTraceSchema.nullable(),
73
82
  error: stepErrorDtoSchema,
74
83
  position: z.number(),
75
84
  // Execution-attempt identity of the current projection (>1 after a restart).
@@ -137,5 +146,9 @@ export const stepAttemptDtoSchema = z.object({
137
146
  started_at: z.string(),
138
147
  finished_at: z.string().nullable()
139
148
  });
149
+ export const stepAttemptDetailDtoSchema = stepAttemptDtoSchema.extend({
150
+ config: z.record(z.string(), z.unknown()).nullable(),
151
+ evaluation_trace: evaluationTraceSchema.nullable()
152
+ });
140
153
 
141
154
  //# sourceMappingURL=step.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/step.ts"],"sourcesContent":["import {z} from 'zod';\n\n// Machine-readable cause of a step failure, for DB troubleshooting. The runner\n// reports it and the server stores it as-is. The `checkout_*`, `git_unavailable`,\n// `workspace_prep_failed`, and `setup_aborted` values cover checkout/setup failures.\n// For agent steps the cause is split three ways: `agent_config_invalid` is a user-fixable\n// configuration error and carries an `agent_config_issue`; `agent_invocation_failed`\n// covers a provider/API failure once the configuration is valid; and\n// `agent_harness_unavailable` means the runner could not start its harness, so the model\n// was never called. The latter carries no `agent_config_issue`, because every issue code\n// names a user-fixable cause. (Aborts are never reported: the step loop stops before reporting.)\nexport const stepErrorReasonSchema = z.enum([\n 'checkout_failed',\n 'checkout_auth_failed',\n 'checkout_unavailable',\n 'checkout_path_invalid',\n 'checkout_destination_occupied',\n 'git_unavailable',\n 'workspace_prep_failed',\n 'setup_aborted',\n 'config_unresolvable',\n 'output_invalid',\n 'agent_config_invalid',\n 'agent_invocation_failed',\n 'agent_harness_unavailable',\n]);\n\nexport type StepErrorReasonDto = z.infer<typeof stepErrorReasonSchema>;\n\nexport const agentConfigIssueSchema = z.enum([\n 'step_config_invalid',\n 'provider_not_configured',\n 'provider_unsupported',\n 'model_unavailable',\n 'credentials_invalid',\n]);\n\nexport type AgentConfigIssueDto = z.infer<typeof agentConfigIssueSchema>;\n\n// Whether a failure is infrastructure (`setup`) or user-code (`user`). Server-derived\n// from the step's type on the read path; the runner never sends it.\nexport const stepErrorCategorySchema = z.enum(['setup', 'user']);\n\nexport type StepErrorCategoryDto = z.infer<typeof stepErrorCategorySchema>;\n\nexport const STEP_ERROR_MESSAGE_MAX_LENGTH = 2048;\n\nexport const stepErrorDtoSchema = z\n .object({\n message: z.string().max(STEP_ERROR_MESSAGE_MAX_LENGTH),\n exit_code: z.number().int().nullable().optional(),\n signal: z.string().optional(),\n reason: stepErrorReasonSchema.optional(),\n field: z.string().optional(),\n source: z.string().optional(),\n agent_config_issue: agentConfigIssueSchema.optional(),\n category: stepErrorCategorySchema.optional(),\n })\n .refine(\n (error) => error.agent_config_issue === undefined || error.reason === 'agent_config_invalid',\n {\n message: 'agent_config_issue requires reason to be agent_config_invalid',\n path: ['agent_config_issue'],\n },\n )\n .nullable();\n\nexport type StepErrorDto = z.infer<typeof stepErrorDtoSchema>;\n\nexport const stepSourceLocationSchema = z\n .object({\n start_line: z.number().int().positive(),\n end_line: z.number().int().positive(),\n })\n .refine((value) => value.end_line >= value.start_line, {\n message: 'end_line must be greater than or equal to start_line',\n path: ['end_line'],\n });\n\nexport type StepSourceLocationDto = z.infer<typeof stepSourceLocationSchema>;\n\nexport const stepDtoSchema = z.object({\n id: z.string().uuid(),\n job_execution_id: z.string().uuid(),\n key: z.string().nullable(),\n name: z.string(),\n source_location: stepSourceLocationSchema.nullable(),\n status: z.string(),\n type: z.string(),\n config: z.record(z.string(), z.unknown()),\n error: stepErrorDtoSchema,\n position: z.number(),\n // Execution-attempt identity of the current projection (>1 after a restart).\n current_attempt: z.number().int(),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type StepDto = z.infer<typeof stepDtoSchema>;\n\nexport const stepGateResultDtoSchema = z\n .discriminatedUnion('kind', [\n z.object({\n kind: z.literal('none'),\n }),\n z.object({\n kind: z.literal('not_evaluated'),\n }),\n z.object({\n kind: z.literal('passed'),\n passed: z.literal(true),\n source: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('failed'),\n passed: z.literal(false),\n source: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('uncheckable'),\n passed: z.literal(false),\n uncheckable: z.literal(true),\n reason: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('evaluation_error'),\n reason: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('unknown'),\n data: z.record(z.string(), z.unknown()),\n }),\n ])\n .nullable();\n\nexport type StepGateResultDto = z.infer<typeof stepGateResultDtoSchema>;\n\n// One execution attempt of a step (the durable history behind the current\n// projection). Surfaced in run details so a restarted step's attempts are visible.\nexport const stepAttemptDtoSchema = z.object({\n id: z.string().uuid(),\n step_id: z.string().uuid(),\n attempt: z.number().int().positive(),\n execution_order: z.number().int().positive(),\n status: z.string(),\n exit_code: z.number().int().nullable(),\n // `output` and `error` are opaque audit blobs: the raw jsonb persisted for the\n // attempt, NOT snake_case-normalized (their nested keys may be camelCase, e.g.\n // `error.exitCode`). Consume the top-level snake_case `exit_code` for the\n // numeric code; treat these as display/debug payloads.\n output: z.record(z.string(), z.unknown()).nullable(),\n outputs: z.record(z.string(), z.unknown()).nullable(),\n response: z.string().nullable(),\n error: z.record(z.string(), z.unknown()).nullable(),\n // `unknown.data` is the raw jsonb gate payload for legacy or unrecognized\n // rows; nested keys are not snake_case-normalized.\n gate_result: stepGateResultDtoSchema,\n restart_feedback: z.string().nullable(),\n started_at: z.string(),\n finished_at: z.string().nullable(),\n});\n\nexport type StepAttemptDto = z.infer<typeof stepAttemptDtoSchema>;\n"],"names":["z","stepErrorReasonSchema","enum","agentConfigIssueSchema","stepErrorCategorySchema","STEP_ERROR_MESSAGE_MAX_LENGTH","stepErrorDtoSchema","object","message","string","max","exit_code","number","int","nullable","optional","signal","reason","field","source","agent_config_issue","category","refine","error","undefined","path","stepSourceLocationSchema","start_line","positive","end_line","value","stepDtoSchema","id","uuid","job_execution_id","key","name","source_location","status","type","config","record","unknown","position","current_attempt","created_at","updated_at","stepGateResultDtoSchema","discriminatedUnion","kind","literal","passed","uncheckable","data","stepAttemptDtoSchema","step_id","attempt","execution_order","output","outputs","response","gate_result","restart_feedback","started_at","finished_at"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,+EAA+E;AAC/E,kFAAkF;AAClF,qFAAqF;AACrF,0FAA0F;AAC1F,qFAAqF;AACrF,qEAAqE;AACrE,yFAAyF;AACzF,yFAAyF;AACzF,iGAAiG;AACjG,OAAO,MAAMC,wBAAwBD,EAAEE,IAAI,CAAC;IAC1C;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD,EAAE;AAIH,OAAO,MAAMC,yBAAyBH,EAAEE,IAAI,CAAC;IAC3C;IACA;IACA;IACA;IACA;CACD,EAAE;AAIH,sFAAsF;AACtF,oEAAoE;AACpE,OAAO,MAAME,0BAA0BJ,EAAEE,IAAI,CAAC;IAAC;IAAS;CAAO,EAAE;AAIjE,OAAO,MAAMG,gCAAgC,KAAK;AAElD,OAAO,MAAMC,qBAAqBN,EAC/BO,MAAM,CAAC;IACNC,SAASR,EAAES,MAAM,GAAGC,GAAG,CAACL;IACxBM,WAA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D,EAAEO,MAAM,CAAC;IAC3CyB,IAAIhC,EAAES,MAAM,GAAGwB,IAAI;IACnBsB,SAASvD,EAAES,MAAM,GAAGwB,IAAI;IACxBuB,SAASxD,EAAEY,MAAM,GAAGC,GAAG,GAAGe,QAAQ;IAClC6B,iBAAiBzD,EAAEY,MAAM,GAAGC,GAAG,GAAGe,QAAQ;IAC1CU,QAAQtC,EAAES,MAAM;IAChBE,WAAWX,EAAEY,MAAM,GAAGC,GAAG,GAAGC,QAAQ;IACpC,+EAA+E;IAC/E,+EAA+E;IAC/E,0EAA0E;IAC1E,uDAAuD;IACvD4C,QAAQ1D,EAAEyC,MAAM,CAACzC,EAAES,MAAM,IAAIT,EAAE0C,OAAO,IAAI5B,QAAQ;IAClD6C,SAAS3D,EAAEyC,MAAM,CAACzC,EAAES,MAAM,IAAIT,EAAE0C,OAAO,IAAI5B,QAAQ;IACnD8C,UAAU5D,EAAES,MAAM,GAAGK,QAAQ;IAC7BS,OAAOvB,EAAEyC,MAAM,CAACzC,EAAES,MAAM,IAAIT,EAAE0C,OAAO,IAAI5B,QAAQ;IACjD,0EAA0E;IAC1E,mDAAmD;IACnD+C,aAAad;IACbe,kBAAkB9D,EAAES,MAAM,GAAGK,QAAQ;IACrCiD,YAAY/D,EAAES,MAAM;IACpBuD,aAAahE,EAAES,MAAM,GAAGK,QAAQ;AAClC,GAAG"}
1
+ {"version":3,"sources":["../../src/schemas/step.ts"],"sourcesContent":["import {z} from 'zod';\nimport {evaluationTraceSchema} from './evaluation-trace.js';\n\nexport const STEP_STATUS_REASONS = [\n 'default_gate_rejected',\n 'condition_rejected',\n 'condition_errored',\n] as const;\n\nexport const stepStatusReasonSchema = z.enum(STEP_STATUS_REASONS);\n\nexport type StepStatusReasonDto = z.infer<typeof stepStatusReasonSchema>;\n\n// Machine-readable cause of a step failure, for DB troubleshooting. The runner\n// reports it and the server stores it as-is. The `checkout_*`, `git_unavailable`,\n// `workspace_prep_failed`, and `setup_aborted` values cover checkout/setup failures.\n// For agent steps the cause is split three ways: `agent_config_invalid` is a user-fixable\n// configuration error and carries an `agent_config_issue`; `agent_invocation_failed`\n// covers a provider/API failure once the configuration is valid; and\n// `agent_harness_unavailable` means the runner could not start its harness, so the model\n// was never called. The latter carries no `agent_config_issue`, because every issue code\n// names a user-fixable cause. (Aborts are never reported: the step loop stops before reporting.)\nexport const stepErrorReasonSchema = z.enum([\n 'checkout_failed',\n 'checkout_auth_failed',\n 'checkout_unavailable',\n 'checkout_path_invalid',\n 'checkout_destination_occupied',\n 'git_unavailable',\n 'workspace_prep_failed',\n 'setup_aborted',\n 'config_unresolvable',\n 'output_invalid',\n 'agent_config_invalid',\n 'agent_invocation_failed',\n 'agent_harness_unavailable',\n]);\n\nexport type StepErrorReasonDto = z.infer<typeof stepErrorReasonSchema>;\n\nexport const agentConfigIssueSchema = z.enum([\n 'step_config_invalid',\n 'provider_not_configured',\n 'provider_unsupported',\n 'model_unavailable',\n 'credentials_invalid',\n]);\n\nexport type AgentConfigIssueDto = z.infer<typeof agentConfigIssueSchema>;\n\n// Whether a failure is infrastructure (`setup`) or user-code (`user`). Server-derived\n// from the step's type on the read path; the runner never sends it.\nexport const stepErrorCategorySchema = z.enum(['setup', 'user']);\n\nexport type StepErrorCategoryDto = z.infer<typeof stepErrorCategorySchema>;\n\nexport const STEP_ERROR_MESSAGE_MAX_LENGTH = 2048;\n\nexport const stepErrorDtoSchema = z\n .object({\n message: z.string().max(STEP_ERROR_MESSAGE_MAX_LENGTH),\n exit_code: z.number().int().nullable().optional(),\n signal: z.string().optional(),\n reason: stepErrorReasonSchema.optional(),\n field: z.string().optional(),\n source: z.string().optional(),\n agent_config_issue: agentConfigIssueSchema.optional(),\n category: stepErrorCategorySchema.optional(),\n })\n .refine(\n (error) => error.agent_config_issue === undefined || error.reason === 'agent_config_invalid',\n {\n message: 'agent_config_issue requires reason to be agent_config_invalid',\n path: ['agent_config_issue'],\n },\n )\n .nullable();\n\nexport type StepErrorDto = z.infer<typeof stepErrorDtoSchema>;\n\nexport const stepSourceLocationSchema = z\n .object({\n start_line: z.number().int().positive(),\n end_line: z.number().int().positive(),\n })\n .refine((value) => value.end_line >= value.start_line, {\n message: 'end_line must be greater than or equal to start_line',\n path: ['end_line'],\n });\n\nexport type StepSourceLocationDto = z.infer<typeof stepSourceLocationSchema>;\n\nexport const stepDtoSchema = z.object({\n id: z.string().uuid(),\n job_execution_id: z.string().uuid(),\n key: z.string().nullable(),\n name: z.string(),\n source_location: stepSourceLocationSchema.nullable(),\n status: z.string(),\n status_reason: stepStatusReasonSchema.nullable(),\n type: z.string(),\n config: z.record(z.string(), z.unknown()),\n evaluation_trace: evaluationTraceSchema.nullable(),\n error: stepErrorDtoSchema,\n position: z.number(),\n // Execution-attempt identity of the current projection (>1 after a restart).\n current_attempt: z.number().int(),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type StepDto = z.infer<typeof stepDtoSchema>;\n\nexport const stepGateResultDtoSchema = z\n .discriminatedUnion('kind', [\n z.object({\n kind: z.literal('none'),\n }),\n z.object({\n kind: z.literal('not_evaluated'),\n }),\n z.object({\n kind: z.literal('passed'),\n passed: z.literal(true),\n source: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('failed'),\n passed: z.literal(false),\n source: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('uncheckable'),\n passed: z.literal(false),\n uncheckable: z.literal(true),\n reason: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('evaluation_error'),\n reason: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('unknown'),\n data: z.record(z.string(), z.unknown()),\n }),\n ])\n .nullable();\n\nexport type StepGateResultDto = z.infer<typeof stepGateResultDtoSchema>;\n\n// One execution attempt of a step (the durable history behind the current\n// projection). Surfaced in run details so a restarted step's attempts are visible.\nexport const stepAttemptDtoSchema = z.object({\n id: z.string().uuid(),\n step_id: z.string().uuid(),\n attempt: z.number().int().positive(),\n execution_order: z.number().int().positive(),\n status: z.string(),\n exit_code: z.number().int().nullable(),\n // `output` and `error` are opaque audit blobs: the raw jsonb persisted for the\n // attempt, NOT snake_case-normalized (their nested keys may be camelCase, e.g.\n // `error.exitCode`). Consume the top-level snake_case `exit_code` for the\n // numeric code; treat these as display/debug payloads.\n output: z.record(z.string(), z.unknown()).nullable(),\n outputs: z.record(z.string(), z.unknown()).nullable(),\n response: z.string().nullable(),\n error: z.record(z.string(), z.unknown()).nullable(),\n // `unknown.data` is the raw jsonb gate payload for legacy or unrecognized\n // rows; nested keys are not snake_case-normalized.\n gate_result: stepGateResultDtoSchema,\n restart_feedback: z.string().nullable(),\n started_at: z.string(),\n finished_at: z.string().nullable(),\n});\n\nexport type StepAttemptDto = z.infer<typeof stepAttemptDtoSchema>;\n\nexport const stepAttemptDetailDtoSchema = stepAttemptDtoSchema.extend({\n config: z.record(z.string(), z.unknown()).nullable(),\n evaluation_trace: evaluationTraceSchema.nullable(),\n});\n\nexport type StepAttemptDetailDto = z.infer<typeof stepAttemptDetailDtoSchema>;\n"],"names":["z","evaluationTraceSchema","STEP_STATUS_REASONS","stepStatusReasonSchema","enum","stepErrorReasonSchema","agentConfigIssueSchema","stepErrorCategorySchema","STEP_ERROR_MESSAGE_MAX_LENGTH","stepErrorDtoSchema","object","message","string","max","exit_code","number","int","nullable","optional","signal","reason","field","source","agent_config_issue","category","refine","error","undefined","path","stepSourceLocationSchema","start_line","positive","end_line","value","stepDtoSchema","id","uuid","job_execution_id","key","name","source_location","status","status_reason","type","config","record","unknown","evaluation_trace","position","current_attempt","created_at","updated_at","stepGateResultDtoSchema","discriminatedUnion","kind","literal","passed","uncheckable","data","stepAttemptDtoSchema","step_id","attempt","execution_order","output","outputs","response","gate_result","restart_feedback","started_at","finished_at","stepAttemptDetailDtoSchema","extend"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,qBAAqB,QAAO,wBAAwB;AAE5D,OAAO,MA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7B,QAAQ;IAClD+C,SAAShE,EAAE6C,MAAM,CAAC7C,EAAEY,MAAM,IAAIZ,EAAE8C,OAAO,IAAI7B,QAAQ;IACnDgD,UAAUjE,EAAEY,MAAM,GAAGK,QAAQ;IAC7BS,OAAO1B,EAAE6C,MAAM,CAAC7C,EAAEY,MAAM,IAAIZ,EAAE8C,OAAO,IAAI7B,QAAQ;IACjD,0EAA0E;IAC1E,mDAAmD;IACnDiD,aAAad;IACbe,kBAAkBnE,EAAEY,MAAM,GAAGK,QAAQ;IACrCmD,YAAYpE,EAAEY,MAAM;IACpByD,aAAarE,EAAEY,MAAM,GAAGK,QAAQ;AAClC,GAAG;AAIH,OAAO,MAAMqD,6BAA6BX,qBAAqBY,MAAM,CAAC;IACpE3B,QAAQ5C,EAAE6C,MAAM,CAAC7C,EAAEY,MAAM,IAAIZ,EAAE8C,OAAO,IAAI7B,QAAQ;IAClD8B,kBAAkB9C,sBAAsBgB,QAAQ;AAClD,GAAG"}
@@ -19,6 +19,8 @@ export declare const jobExecutionDtoSchema: z.ZodObject<{
19
19
  succeeded: "succeeded";
20
20
  }>;
21
21
  status_reason: z.ZodNullable<z.ZodString>;
22
+ status_reason_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ runner: z.ZodNullable<z.ZodArray<z.ZodString>>;
22
24
  trigger_events: z.ZodDefault<z.ZodArray<z.ZodObject<{
23
25
  source: z.ZodString;
24
26
  event: z.ZodString;
@@ -33,6 +35,22 @@ export declare const jobExecutionDtoSchema: z.ZodObject<{
33
35
  data: z.ZodUnknown;
34
36
  }, z.core.$strip>>>;
35
37
  outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
38
+ evaluation_trace: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
39
+ expression: z.ZodString;
40
+ roots: z.ZodArray<z.ZodString>;
41
+ fill_target: z.ZodString;
42
+ evaluated_at: z.ZodString;
43
+ field: z.ZodString;
44
+ value: z.ZodOptional<z.ZodString>;
45
+ truncated: z.ZodOptional<z.ZodBoolean>;
46
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
47
+ reference: z.ZodOptional<z.ZodBoolean>;
48
+ degraded: z.ZodOptional<z.ZodBoolean>;
49
+ env_key: z.ZodOptional<z.ZodString>;
50
+ }, z.core.$strip>, z.ZodObject<{
51
+ truncated: z.ZodLiteral<true>;
52
+ dropped: z.ZodNumber;
53
+ }, z.core.$strip>]>>>;
36
54
  queued_at: z.ZodNullable<z.ZodString>;
37
55
  started_at: z.ZodNullable<z.ZodString>;
38
56
  finished_at: z.ZodNullable<z.ZodString>;
@@ -51,8 +69,29 @@ export declare const workflowRunStepDetailDtoSchema: z.ZodObject<{
51
69
  end_line: z.ZodNumber;
52
70
  }, z.core.$strip>>;
53
71
  status: z.ZodString;
72
+ status_reason: z.ZodNullable<z.ZodEnum<{
73
+ condition_errored: "condition_errored";
74
+ condition_rejected: "condition_rejected";
75
+ default_gate_rejected: "default_gate_rejected";
76
+ }>>;
54
77
  type: z.ZodString;
55
78
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
79
+ evaluation_trace: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
80
+ expression: z.ZodString;
81
+ roots: z.ZodArray<z.ZodString>;
82
+ fill_target: z.ZodString;
83
+ evaluated_at: z.ZodString;
84
+ field: z.ZodString;
85
+ value: z.ZodOptional<z.ZodString>;
86
+ truncated: z.ZodOptional<z.ZodBoolean>;
87
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
88
+ reference: z.ZodOptional<z.ZodBoolean>;
89
+ degraded: z.ZodOptional<z.ZodBoolean>;
90
+ env_key: z.ZodOptional<z.ZodString>;
91
+ }, z.core.$strip>, z.ZodObject<{
92
+ truncated: z.ZodLiteral<true>;
93
+ dropped: z.ZodNumber;
94
+ }, z.core.$strip>]>>>;
56
95
  error: z.ZodNullable<z.ZodObject<{
57
96
  message: z.ZodString;
58
97
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -166,6 +205,29 @@ export declare const workflowRunStepDetailDtoSchema: z.ZodObject<{
166
205
  }, z.core.$strip>>;
167
206
  }, z.core.$strip>;
168
207
  export type WorkflowRunStepDetailDto = z.infer<typeof workflowRunStepDetailDtoSchema>;
208
+ export declare const stepAttemptDetailResponseSchema: z.ZodObject<{
209
+ step_id: z.ZodString;
210
+ attempt: z.ZodNumber;
211
+ authored_config: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
212
+ config: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
213
+ evaluation_trace: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
214
+ expression: z.ZodString;
215
+ roots: z.ZodArray<z.ZodString>;
216
+ fill_target: z.ZodString;
217
+ evaluated_at: z.ZodString;
218
+ field: z.ZodString;
219
+ value: z.ZodOptional<z.ZodString>;
220
+ truncated: z.ZodOptional<z.ZodBoolean>;
221
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
222
+ reference: z.ZodOptional<z.ZodBoolean>;
223
+ degraded: z.ZodOptional<z.ZodBoolean>;
224
+ env_key: z.ZodOptional<z.ZodString>;
225
+ }, z.core.$strip>, z.ZodObject<{
226
+ truncated: z.ZodLiteral<true>;
227
+ dropped: z.ZodNumber;
228
+ }, z.core.$strip>]>>>;
229
+ }, z.core.$strip>;
230
+ export type StepAttemptDetailResponseDto = z.infer<typeof stepAttemptDetailResponseSchema>;
169
231
  export declare const workflowRunJobExecutionDetailDtoSchema: z.ZodObject<{
170
232
  id: z.ZodString;
171
233
  job_id: z.ZodString;
@@ -179,6 +241,8 @@ export declare const workflowRunJobExecutionDetailDtoSchema: z.ZodObject<{
179
241
  succeeded: "succeeded";
180
242
  }>;
181
243
  status_reason: z.ZodNullable<z.ZodString>;
244
+ status_reason_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
+ runner: z.ZodNullable<z.ZodArray<z.ZodString>>;
182
246
  trigger_events: z.ZodDefault<z.ZodArray<z.ZodObject<{
183
247
  source: z.ZodString;
184
248
  event: z.ZodString;
@@ -193,6 +257,22 @@ export declare const workflowRunJobExecutionDetailDtoSchema: z.ZodObject<{
193
257
  data: z.ZodUnknown;
194
258
  }, z.core.$strip>>>;
195
259
  outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
260
+ evaluation_trace: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
261
+ expression: z.ZodString;
262
+ roots: z.ZodArray<z.ZodString>;
263
+ fill_target: z.ZodString;
264
+ evaluated_at: z.ZodString;
265
+ field: z.ZodString;
266
+ value: z.ZodOptional<z.ZodString>;
267
+ truncated: z.ZodOptional<z.ZodBoolean>;
268
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
269
+ reference: z.ZodOptional<z.ZodBoolean>;
270
+ degraded: z.ZodOptional<z.ZodBoolean>;
271
+ env_key: z.ZodOptional<z.ZodString>;
272
+ }, z.core.$strip>, z.ZodObject<{
273
+ truncated: z.ZodLiteral<true>;
274
+ dropped: z.ZodNumber;
275
+ }, z.core.$strip>]>>>;
196
276
  queued_at: z.ZodNullable<z.ZodString>;
197
277
  started_at: z.ZodNullable<z.ZodString>;
198
278
  finished_at: z.ZodNullable<z.ZodString>;
@@ -209,8 +289,29 @@ export declare const workflowRunJobExecutionDetailDtoSchema: z.ZodObject<{
209
289
  end_line: z.ZodNumber;
210
290
  }, z.core.$strip>>;
211
291
  status: z.ZodString;
292
+ status_reason: z.ZodNullable<z.ZodEnum<{
293
+ condition_errored: "condition_errored";
294
+ condition_rejected: "condition_rejected";
295
+ default_gate_rejected: "default_gate_rejected";
296
+ }>>;
212
297
  type: z.ZodString;
213
298
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
299
+ evaluation_trace: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
300
+ expression: z.ZodString;
301
+ roots: z.ZodArray<z.ZodString>;
302
+ fill_target: z.ZodString;
303
+ evaluated_at: z.ZodString;
304
+ field: z.ZodString;
305
+ value: z.ZodOptional<z.ZodString>;
306
+ truncated: z.ZodOptional<z.ZodBoolean>;
307
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
308
+ reference: z.ZodOptional<z.ZodBoolean>;
309
+ degraded: z.ZodOptional<z.ZodBoolean>;
310
+ env_key: z.ZodOptional<z.ZodString>;
311
+ }, z.core.$strip>, z.ZodObject<{
312
+ truncated: z.ZodLiteral<true>;
313
+ dropped: z.ZodNumber;
314
+ }, z.core.$strip>]>>>;
214
315
  error: z.ZodNullable<z.ZodObject<{
215
316
  message: z.ZodString;
216
317
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -348,6 +449,8 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
348
449
  condition_rejected: "condition_rejected";
349
450
  default_gate_rejected: "default_gate_rejected";
350
451
  dependency_not_completed: "dependency_not_completed";
452
+ output_invalid: "output_invalid";
453
+ output_too_large: "output_too_large";
351
454
  run_cancelled: "run_cancelled";
352
455
  runner_lost: "runner_lost";
353
456
  step_failed: "step_failed";
@@ -356,6 +459,24 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
356
459
  user_cancelled: "user_cancelled";
357
460
  }>>;
358
461
  carried_over: z.ZodBoolean;
462
+ success: z.ZodNullable<z.ZodString>;
463
+ runner: z.ZodNullable<z.ZodArray<z.ZodString>>;
464
+ evaluation_trace: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
465
+ expression: z.ZodString;
466
+ roots: z.ZodArray<z.ZodString>;
467
+ fill_target: z.ZodString;
468
+ evaluated_at: z.ZodString;
469
+ field: z.ZodString;
470
+ value: z.ZodOptional<z.ZodString>;
471
+ truncated: z.ZodOptional<z.ZodBoolean>;
472
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
473
+ reference: z.ZodOptional<z.ZodBoolean>;
474
+ degraded: z.ZodOptional<z.ZodBoolean>;
475
+ env_key: z.ZodOptional<z.ZodString>;
476
+ }, z.core.$strip>, z.ZodObject<{
477
+ truncated: z.ZodLiteral<true>;
478
+ dropped: z.ZodNumber;
479
+ }, z.core.$strip>]>>>;
359
480
  listening: z.ZodNullable<z.ZodObject<{
360
481
  on: z.ZodArray<z.ZodObject<{
361
482
  source: z.ZodString;
@@ -412,6 +533,8 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
412
533
  succeeded: "succeeded";
413
534
  }>;
414
535
  status_reason: z.ZodNullable<z.ZodString>;
536
+ status_reason_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
537
+ runner: z.ZodNullable<z.ZodArray<z.ZodString>>;
415
538
  trigger_events: z.ZodDefault<z.ZodArray<z.ZodObject<{
416
539
  source: z.ZodString;
417
540
  event: z.ZodString;
@@ -426,6 +549,22 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
426
549
  data: z.ZodUnknown;
427
550
  }, z.core.$strip>>>;
428
551
  outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
552
+ evaluation_trace: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
553
+ expression: z.ZodString;
554
+ roots: z.ZodArray<z.ZodString>;
555
+ fill_target: z.ZodString;
556
+ evaluated_at: z.ZodString;
557
+ field: z.ZodString;
558
+ value: z.ZodOptional<z.ZodString>;
559
+ truncated: z.ZodOptional<z.ZodBoolean>;
560
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
561
+ reference: z.ZodOptional<z.ZodBoolean>;
562
+ degraded: z.ZodOptional<z.ZodBoolean>;
563
+ env_key: z.ZodOptional<z.ZodString>;
564
+ }, z.core.$strip>, z.ZodObject<{
565
+ truncated: z.ZodLiteral<true>;
566
+ dropped: z.ZodNumber;
567
+ }, z.core.$strip>]>>>;
429
568
  queued_at: z.ZodNullable<z.ZodString>;
430
569
  started_at: z.ZodNullable<z.ZodString>;
431
570
  finished_at: z.ZodNullable<z.ZodString>;
@@ -442,8 +581,29 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
442
581
  end_line: z.ZodNumber;
443
582
  }, z.core.$strip>>;
444
583
  status: z.ZodString;
584
+ status_reason: z.ZodNullable<z.ZodEnum<{
585
+ condition_errored: "condition_errored";
586
+ condition_rejected: "condition_rejected";
587
+ default_gate_rejected: "default_gate_rejected";
588
+ }>>;
445
589
  type: z.ZodString;
446
590
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
591
+ evaluation_trace: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
592
+ expression: z.ZodString;
593
+ roots: z.ZodArray<z.ZodString>;
594
+ fill_target: z.ZodString;
595
+ evaluated_at: z.ZodString;
596
+ field: z.ZodString;
597
+ value: z.ZodOptional<z.ZodString>;
598
+ truncated: z.ZodOptional<z.ZodBoolean>;
599
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
600
+ reference: z.ZodOptional<z.ZodBoolean>;
601
+ degraded: z.ZodOptional<z.ZodBoolean>;
602
+ env_key: z.ZodOptional<z.ZodString>;
603
+ }, z.core.$strip>, z.ZodObject<{
604
+ truncated: z.ZodLiteral<true>;
605
+ dropped: z.ZodNumber;
606
+ }, z.core.$strip>]>>>;
447
607
  error: z.ZodNullable<z.ZodObject<{
448
608
  message: z.ZodString;
449
609
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -636,6 +796,8 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
636
796
  condition_rejected: "condition_rejected";
637
797
  default_gate_rejected: "default_gate_rejected";
638
798
  dependency_not_completed: "dependency_not_completed";
799
+ output_invalid: "output_invalid";
800
+ output_too_large: "output_too_large";
639
801
  run_cancelled: "run_cancelled";
640
802
  runner_lost: "runner_lost";
641
803
  step_failed: "step_failed";
@@ -644,6 +806,24 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
644
806
  user_cancelled: "user_cancelled";
645
807
  }>>;
646
808
  carried_over: z.ZodBoolean;
809
+ success: z.ZodNullable<z.ZodString>;
810
+ runner: z.ZodNullable<z.ZodArray<z.ZodString>>;
811
+ evaluation_trace: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
812
+ expression: z.ZodString;
813
+ roots: z.ZodArray<z.ZodString>;
814
+ fill_target: z.ZodString;
815
+ evaluated_at: z.ZodString;
816
+ field: z.ZodString;
817
+ value: z.ZodOptional<z.ZodString>;
818
+ truncated: z.ZodOptional<z.ZodBoolean>;
819
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
820
+ reference: z.ZodOptional<z.ZodBoolean>;
821
+ degraded: z.ZodOptional<z.ZodBoolean>;
822
+ env_key: z.ZodOptional<z.ZodString>;
823
+ }, z.core.$strip>, z.ZodObject<{
824
+ truncated: z.ZodLiteral<true>;
825
+ dropped: z.ZodNumber;
826
+ }, z.core.$strip>]>>>;
647
827
  listening: z.ZodNullable<z.ZodObject<{
648
828
  on: z.ZodArray<z.ZodObject<{
649
829
  source: z.ZodString;
@@ -700,6 +880,8 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
700
880
  succeeded: "succeeded";
701
881
  }>;
702
882
  status_reason: z.ZodNullable<z.ZodString>;
883
+ status_reason_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
884
+ runner: z.ZodNullable<z.ZodArray<z.ZodString>>;
703
885
  trigger_events: z.ZodDefault<z.ZodArray<z.ZodObject<{
704
886
  source: z.ZodString;
705
887
  event: z.ZodString;
@@ -714,6 +896,22 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
714
896
  data: z.ZodUnknown;
715
897
  }, z.core.$strip>>>;
716
898
  outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
899
+ evaluation_trace: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
900
+ expression: z.ZodString;
901
+ roots: z.ZodArray<z.ZodString>;
902
+ fill_target: z.ZodString;
903
+ evaluated_at: z.ZodString;
904
+ field: z.ZodString;
905
+ value: z.ZodOptional<z.ZodString>;
906
+ truncated: z.ZodOptional<z.ZodBoolean>;
907
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
908
+ reference: z.ZodOptional<z.ZodBoolean>;
909
+ degraded: z.ZodOptional<z.ZodBoolean>;
910
+ env_key: z.ZodOptional<z.ZodString>;
911
+ }, z.core.$strip>, z.ZodObject<{
912
+ truncated: z.ZodLiteral<true>;
913
+ dropped: z.ZodNumber;
914
+ }, z.core.$strip>]>>>;
717
915
  queued_at: z.ZodNullable<z.ZodString>;
718
916
  started_at: z.ZodNullable<z.ZodString>;
719
917
  finished_at: z.ZodNullable<z.ZodString>;
@@ -730,8 +928,29 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
730
928
  end_line: z.ZodNumber;
731
929
  }, z.core.$strip>>;
732
930
  status: z.ZodString;
931
+ status_reason: z.ZodNullable<z.ZodEnum<{
932
+ condition_errored: "condition_errored";
933
+ condition_rejected: "condition_rejected";
934
+ default_gate_rejected: "default_gate_rejected";
935
+ }>>;
733
936
  type: z.ZodString;
734
937
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
938
+ evaluation_trace: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
939
+ expression: z.ZodString;
940
+ roots: z.ZodArray<z.ZodString>;
941
+ fill_target: z.ZodString;
942
+ evaluated_at: z.ZodString;
943
+ field: z.ZodString;
944
+ value: z.ZodOptional<z.ZodString>;
945
+ truncated: z.ZodOptional<z.ZodBoolean>;
946
+ expr_truncated: z.ZodOptional<z.ZodBoolean>;
947
+ reference: z.ZodOptional<z.ZodBoolean>;
948
+ degraded: z.ZodOptional<z.ZodBoolean>;
949
+ env_key: z.ZodOptional<z.ZodString>;
950
+ }, z.core.$strip>, z.ZodObject<{
951
+ truncated: z.ZodLiteral<true>;
952
+ dropped: z.ZodNumber;
953
+ }, z.core.$strip>]>>>;
735
954
  error: z.ZodNullable<z.ZodObject<{
736
955
  message: z.ZodString;
737
956
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-run-detail.d.ts","sourceRoot":"","sources":["../../src/schemas/workflow-run-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAMtB,eAAO,MAAM,wBAAwB;;;;;;EAMnC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAehC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAIpE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG1C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import { z } from 'zod';
2
+ import { evaluationTraceSchema } from './evaluation-trace.js';
2
3
  import { jobDtoSchema } from './job.js';
3
4
  import { workflowExecutionEventSchema } from './job-listening.js';
4
- import { stepAttemptDtoSchema, stepDtoSchema } from './step.js';
5
+ import { stepAttemptDetailDtoSchema, stepAttemptDtoSchema, stepDtoSchema } from './step.js';
5
6
  import { workflowRunAttemptDtoSchema, workflowRunResponseSchema } from './workflow-run.js';
6
7
  export const jobExecutionStatusSchema = z.enum([
7
8
  'pending',
@@ -17,8 +18,11 @@ export const jobExecutionDtoSchema = z.object({
17
18
  name: z.string(),
18
19
  status: jobExecutionStatusSchema,
19
20
  status_reason: z.string().nullable(),
21
+ status_reason_message: z.string().nullable().optional(),
22
+ runner: z.array(z.string()).nullable(),
20
23
  trigger_events: z.array(workflowExecutionEventSchema).default([]),
21
24
  outputs: z.record(z.string(), z.unknown()).nullable(),
25
+ evaluation_trace: evaluationTraceSchema.nullable(),
22
26
  queued_at: z.string().nullable(),
23
27
  started_at: z.string().nullable(),
24
28
  finished_at: z.string().nullable(),
@@ -35,6 +39,13 @@ export const workflowRunStepDetailDtoSchema = stepDtoSchema.extend({
35
39
  gate_result: stepAttemptDtoSchema.shape.gate_result,
36
40
  attempts: z.array(stepAttemptDtoSchema)
37
41
  });
42
+ export const stepAttemptDetailResponseSchema = z.object({
43
+ step_id: z.string().uuid(),
44
+ attempt: stepAttemptDetailDtoSchema.shape.attempt,
45
+ authored_config: z.record(z.string(), z.unknown()).nullable(),
46
+ config: stepAttemptDetailDtoSchema.shape.config,
47
+ evaluation_trace: stepAttemptDetailDtoSchema.shape.evaluation_trace
48
+ });
38
49
  export const workflowRunJobExecutionDetailDtoSchema = jobExecutionDtoSchema.extend({
39
50
  steps: z.array(workflowRunStepDetailDtoSchema)
40
51
  });