@shipfox/api-workflows-dto 12.0.0 → 12.2.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.
@@ -7,8 +7,8 @@ import { z } from 'zod';
7
7
  export declare const workflowsInterModuleContract: import("@shipfox/inter-module").InterModuleContract<{
8
8
  readonly module: "workflows";
9
9
  readonly methods: {
10
- readonly startRunFromTrigger: {
11
- readonly input: z.ZodObject<{
10
+ startRunFromTrigger: {
11
+ input: z.ZodObject<{
12
12
  workspaceId: z.ZodString;
13
13
  projectId: z.ZodString;
14
14
  definitionId: z.ZodString;
@@ -34,60 +34,60 @@ export declare const workflowsInterModuleContract: import("@shipfox/inter-module
34
34
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
35
35
  idempotencyKey: z.ZodString;
36
36
  }, z.core.$strip>;
37
- readonly output: z.ZodObject<{
37
+ output: z.ZodObject<{
38
38
  id: z.ZodString;
39
39
  name: z.ZodString;
40
40
  }, z.core.$strip>;
41
- readonly errors: {
42
- readonly 'workspace-not-found': z.ZodObject<{
41
+ errors: {
42
+ 'workspace-not-found': z.ZodObject<{
43
43
  workspaceId: z.ZodString;
44
44
  }, z.core.$strip>;
45
- readonly 'workspace-suspended': z.ZodObject<{
45
+ 'workspace-suspended': z.ZodObject<{
46
46
  workspaceId: z.ZodString;
47
47
  }, z.core.$strip>;
48
- readonly 'workspace-deleted': z.ZodObject<{
48
+ 'workspace-deleted': z.ZodObject<{
49
49
  workspaceId: z.ZodString;
50
50
  }, z.core.$strip>;
51
- readonly 'definition-not-found': z.ZodObject<{
51
+ 'definition-not-found': z.ZodObject<{
52
52
  definitionId: z.ZodString;
53
53
  }, z.core.$strip>;
54
- readonly 'project-mismatch': z.ZodObject<{}, z.core.$strip>;
55
- readonly 'agent-config-unresolvable': z.ZodObject<{
54
+ 'project-mismatch': z.ZodObject<{}, z.core.$strip>;
55
+ 'agent-config-unresolvable': z.ZodObject<{
56
56
  definitionId: z.ZodString;
57
57
  }, z.core.$strip>;
58
- readonly 'agent-integration-materialization-failed': z.ZodObject<{}, z.core.$strip>;
59
- readonly 'interpolation-unresolvable': z.ZodObject<{
58
+ 'agent-integration-materialization-failed': z.ZodObject<{}, z.core.$strip>;
59
+ 'interpolation-unresolvable': z.ZodObject<{
60
60
  definitionId: z.ZodString;
61
61
  field: z.ZodEnum<{
62
- run: "run";
63
- env: "env";
64
- "agent.prompt": "agent.prompt";
65
62
  "agent.model": "agent.model";
63
+ "agent.prompt": "agent.prompt";
66
64
  "agent.provider": "agent.provider";
67
65
  "agent.thinking": "agent.thinking";
68
- "job.runner": "job.runner";
69
- "job.outputs": "job.outputs";
66
+ "checkout.connection": "checkout.connection";
67
+ "checkout.path": "checkout.path";
68
+ "checkout.project": "checkout.project";
69
+ "checkout.ref": "checkout.ref";
70
+ "checkout.repository": "checkout.repository";
71
+ env: "env";
70
72
  "job.execution_name": "job.execution_name";
71
- "workflow.run_name": "workflow.run_name";
73
+ "job.outputs": "job.outputs";
74
+ "job.runner": "job.runner";
75
+ run: "run";
76
+ "step.feedback": "step.feedback";
72
77
  "step.name": "step.name";
73
78
  "step.working_directory": "step.working_directory";
74
- "step.feedback": "step.feedback";
75
- "checkout.project": "checkout.project";
76
- "checkout.connection": "checkout.connection";
77
- "checkout.repository": "checkout.repository";
78
- "checkout.ref": "checkout.ref";
79
- "checkout.path": "checkout.path";
79
+ "workflow.run_name": "workflow.run_name";
80
80
  }>;
81
81
  source: z.ZodString;
82
82
  envKey: z.ZodOptional<z.ZodString>;
83
83
  }, z.core.$strip>;
84
- readonly 'invalid-job-runner-labels': z.ZodObject<{
84
+ 'invalid-job-runner-labels': z.ZodObject<{
85
85
  labels: z.ZodArray<z.ZodString>;
86
86
  }, z.core.$strip>;
87
87
  };
88
88
  };
89
- readonly resolveWorkflowRunTriggerReference: {
90
- readonly input: z.ZodObject<{
89
+ resolveWorkflowRunTriggerReference: {
90
+ input: z.ZodObject<{
91
91
  workspaceId: z.ZodString;
92
92
  triggerConnectionId: z.ZodString;
93
93
  triggerPayload: z.ZodUnion<readonly [z.ZodObject<{
@@ -109,7 +109,7 @@ export declare const workflowsInterModuleContract: import("@shipfox/inter-module
109
109
  data: z.ZodUnknown;
110
110
  }, z.core.$strip>]>;
111
111
  }, z.core.$strip>;
112
- readonly output: z.ZodNullable<z.ZodObject<{
112
+ output: z.ZodNullable<z.ZodObject<{
113
113
  project: z.ZodNullable<z.ZodObject<{
114
114
  id: z.ZodString;
115
115
  }, z.core.$strip>>;
@@ -119,8 +119,8 @@ export declare const workflowsInterModuleContract: import("@shipfox/inter-module
119
119
  actor: z.ZodNullable<z.ZodString>;
120
120
  }, z.core.$strip>>;
121
121
  };
122
- readonly deliverEventToJobListener: {
123
- readonly input: z.ZodObject<{
122
+ deliverEventToJobListener: {
123
+ input: z.ZodObject<{
124
124
  jobId: z.ZodString;
125
125
  disposition: z.ZodEnum<{
126
126
  fire: "fire";
@@ -144,42 +144,42 @@ export declare const workflowsInterModuleContract: import("@shipfox/inter-module
144
144
  payload: z.ZodUnknown;
145
145
  receivedAt: z.ZodString;
146
146
  }, z.core.$strip>;
147
- readonly output: z.ZodObject<{
147
+ output: z.ZodObject<{
148
148
  buffered: z.ZodBoolean;
149
149
  skipped: z.ZodBoolean;
150
150
  }, z.core.$strip>;
151
- readonly errors: {
152
- readonly 'workspace-not-found': z.ZodObject<{
151
+ errors: {
152
+ 'workspace-not-found': z.ZodObject<{
153
153
  workspaceId: z.ZodString;
154
154
  }, z.core.$strip>;
155
- readonly 'workspace-suspended': z.ZodObject<{
155
+ 'workspace-suspended': z.ZodObject<{
156
156
  workspaceId: z.ZodString;
157
157
  }, z.core.$strip>;
158
- readonly 'workspace-deleted': z.ZodObject<{
158
+ 'workspace-deleted': z.ZodObject<{
159
159
  workspaceId: z.ZodString;
160
160
  }, z.core.$strip>;
161
161
  };
162
162
  };
163
- readonly getStepLogContext: {
164
- readonly input: z.ZodObject<{
163
+ getStepLogContext: {
164
+ input: z.ZodObject<{
165
165
  stepId: z.ZodString;
166
166
  }, z.core.$strip>;
167
- readonly output: z.ZodObject<{
167
+ output: z.ZodObject<{
168
168
  harness: z.ZodEnum<{
169
- pi: "pi";
170
169
  claude: "claude";
170
+ pi: "pi";
171
171
  }>;
172
172
  }, z.core.$strip>;
173
173
  };
174
- readonly getLeasedAgentToolContext: {
175
- readonly input: z.ZodObject<{
174
+ getLeasedAgentToolContext: {
175
+ input: z.ZodObject<{
176
176
  jobId: z.ZodString;
177
177
  jobExecutionId: z.ZodString;
178
178
  runnerSessionId: z.ZodString;
179
179
  stepId: z.ZodString;
180
180
  attempt: z.ZodNumber;
181
181
  }, z.core.$strip>;
182
- readonly output: z.ZodObject<{
182
+ output: z.ZodObject<{
183
183
  workspaceId: z.ZodString;
184
184
  integrations: z.ZodArray<z.ZodObject<{
185
185
  connectionId: z.ZodString;
@@ -210,14 +210,14 @@ export declare const workflowsInterModuleContract: import("@shipfox/inter-module
210
210
  }, z.core.$strict>>;
211
211
  }, z.core.$strict>>;
212
212
  }, z.core.$strip>;
213
- readonly errors: {
214
- readonly 'lease-not-active': z.ZodObject<{}, z.core.$strip>;
215
- readonly 'step-not-found': z.ZodObject<{}, z.core.$strip>;
216
- readonly 'job-not-found': z.ZodObject<{}, z.core.$strip>;
217
- readonly 'step-attempt-mismatch': z.ZodObject<{}, z.core.$strip>;
218
- readonly 'step-not-running': z.ZodObject<{}, z.core.$strip>;
219
- readonly 'leased-step-not-agent': z.ZodObject<{}, z.core.$strip>;
220
- readonly 'agent-step-config-invalid': z.ZodObject<{}, z.core.$strip>;
213
+ errors: {
214
+ 'lease-not-active': z.ZodObject<{}, z.core.$strip>;
215
+ 'step-not-found': z.ZodObject<{}, z.core.$strip>;
216
+ 'job-not-found': z.ZodObject<{}, z.core.$strip>;
217
+ 'step-attempt-mismatch': z.ZodObject<{}, z.core.$strip>;
218
+ 'step-not-running': z.ZodObject<{}, z.core.$strip>;
219
+ 'leased-step-not-agent': z.ZodObject<{}, z.core.$strip>;
220
+ 'agent-step-config-invalid': z.ZodObject<{}, z.core.$strip>;
221
221
  };
222
222
  };
223
223
  };
@@ -1 +1 @@
1
- {"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAsDtB;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuFvC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
1
+ {"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAsDtB;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;QAGrC,mBAAmB;YACjB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;YASL,MAAM;;;;YACN,MAAM;gBACJ,qBAAqB;;;gBACrB,qBAAqB;;;gBACrB,mBAAmB;;;gBACnB,sBAAsB;;;gBACtB,kBAAkB;gBAClB,2BAA2B;;;gBAC3B,0CAA0C;gBAC1C,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;gBAM5B,2BAA2B;;;;;QAG/B,kCAAkC;YAChC,KAAK;;;;;;;;;;;;;;;;;;;;;;YAKL,MAAM;;;;;;;;;;QAER,yBAAyB;YACvB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;YAaL,MAAM;;;;YACN,MAAM;gBACJ,qBAAqB;;;gBACrB,qBAAqB;;;gBACrB,mBAAmB;;;;;QAGvB,iBAAiB;YACf,KAAK;;;YACL,MAAM;;;;;;;QAER,yBAAyB;YACvB,KAAK;;;;;;;YAOL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAIN,MAAM;gBACJ,kBAAkB;gBAClB,gBAAgB;gBAChB,eAAe;gBACf,uBAAuB;gBACvB,kBAAkB;gBAClB,uBAAuB;gBACvB,2BAA2B;;;;EAIjC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -23,26 +23,28 @@ export declare const nextStepResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
23
23
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
24
  signal: z.ZodOptional<z.ZodString>;
25
25
  reason: z.ZodOptional<z.ZodEnum<{
26
- checkout_failed: "checkout_failed";
26
+ agent_config_invalid: "agent_config_invalid";
27
+ agent_harness_unavailable: "agent_harness_unavailable";
28
+ agent_invocation_failed: "agent_invocation_failed";
27
29
  checkout_auth_failed: "checkout_auth_failed";
30
+ checkout_destination_occupied: "checkout_destination_occupied";
31
+ checkout_failed: "checkout_failed";
32
+ checkout_path_invalid: "checkout_path_invalid";
28
33
  checkout_unavailable: "checkout_unavailable";
29
- git_unavailable: "git_unavailable";
30
- workspace_prep_failed: "workspace_prep_failed";
31
- setup_aborted: "setup_aborted";
32
34
  config_unresolvable: "config_unresolvable";
35
+ git_unavailable: "git_unavailable";
33
36
  output_invalid: "output_invalid";
34
- agent_config_invalid: "agent_config_invalid";
35
- agent_invocation_failed: "agent_invocation_failed";
36
- agent_harness_unavailable: "agent_harness_unavailable";
37
+ setup_aborted: "setup_aborted";
38
+ workspace_prep_failed: "workspace_prep_failed";
37
39
  }>>;
38
40
  field: z.ZodOptional<z.ZodString>;
39
41
  source: z.ZodOptional<z.ZodString>;
40
42
  agent_config_issue: z.ZodOptional<z.ZodEnum<{
41
- step_config_invalid: "step_config_invalid";
43
+ credentials_invalid: "credentials_invalid";
44
+ model_unavailable: "model_unavailable";
42
45
  provider_not_configured: "provider_not_configured";
43
46
  provider_unsupported: "provider_unsupported";
44
- model_unavailable: "model_unavailable";
45
- credentials_invalid: "credentials_invalid";
47
+ step_config_invalid: "step_config_invalid";
46
48
  }>>;
47
49
  category: z.ZodOptional<z.ZodEnum<{
48
50
  setup: "setup";
@@ -59,8 +61,8 @@ export declare const nextStepResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
59
61
  }, z.core.$strip>, z.ZodObject<{
60
62
  kind: z.ZodLiteral<"done">;
61
63
  status: z.ZodEnum<{
62
- succeeded: "succeeded";
63
64
  failed: "failed";
65
+ succeeded: "succeeded";
64
66
  }>;
65
67
  }, z.core.$strip>], "kind">;
66
68
  export type NextStepResponseDto = z.infer<typeof nextStepResponseSchema>;
@@ -73,34 +75,36 @@ export declare const checkoutResultSchema: z.ZodObject<{
73
75
  export type CheckoutResultDto = z.infer<typeof checkoutResultSchema>;
74
76
  export declare const reportStepBodySchema: z.ZodObject<{
75
77
  status: z.ZodEnum<{
76
- succeeded: "succeeded";
77
78
  failed: "failed";
79
+ succeeded: "succeeded";
78
80
  }>;
79
81
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
80
82
  message: z.ZodString;
81
83
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
82
84
  signal: z.ZodOptional<z.ZodString>;
83
85
  reason: z.ZodOptional<z.ZodEnum<{
84
- checkout_failed: "checkout_failed";
86
+ agent_config_invalid: "agent_config_invalid";
87
+ agent_harness_unavailable: "agent_harness_unavailable";
88
+ agent_invocation_failed: "agent_invocation_failed";
85
89
  checkout_auth_failed: "checkout_auth_failed";
90
+ checkout_destination_occupied: "checkout_destination_occupied";
91
+ checkout_failed: "checkout_failed";
92
+ checkout_path_invalid: "checkout_path_invalid";
86
93
  checkout_unavailable: "checkout_unavailable";
87
- git_unavailable: "git_unavailable";
88
- workspace_prep_failed: "workspace_prep_failed";
89
- setup_aborted: "setup_aborted";
90
94
  config_unresolvable: "config_unresolvable";
95
+ git_unavailable: "git_unavailable";
91
96
  output_invalid: "output_invalid";
92
- agent_config_invalid: "agent_config_invalid";
93
- agent_invocation_failed: "agent_invocation_failed";
94
- agent_harness_unavailable: "agent_harness_unavailable";
97
+ setup_aborted: "setup_aborted";
98
+ workspace_prep_failed: "workspace_prep_failed";
95
99
  }>>;
96
100
  field: z.ZodOptional<z.ZodString>;
97
101
  source: z.ZodOptional<z.ZodString>;
98
102
  agent_config_issue: z.ZodOptional<z.ZodEnum<{
99
- step_config_invalid: "step_config_invalid";
103
+ credentials_invalid: "credentials_invalid";
104
+ model_unavailable: "model_unavailable";
100
105
  provider_not_configured: "provider_not_configured";
101
106
  provider_unsupported: "provider_unsupported";
102
- model_unavailable: "model_unavailable";
103
- credentials_invalid: "credentials_invalid";
107
+ step_config_invalid: "step_config_invalid";
104
108
  }>>;
105
109
  category: z.ZodOptional<z.ZodEnum<{
106
110
  setup: "setup";
@@ -118,8 +122,8 @@ export declare const reportStepBodySchema: z.ZodObject<{
118
122
  }, z.core.$strip>>;
119
123
  response: z.ZodOptional<z.ZodString>;
120
124
  log_outcome: z.ZodEnum<{
121
- drained: "drained";
122
125
  abandoned: "abandoned";
126
+ drained: "drained";
123
127
  }>;
124
128
  }, z.core.$strip>;
125
129
  export type ReportStepBodyDto = z.infer<typeof reportStepBodySchema>;
@@ -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,sBAA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AAM,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,18 +1,18 @@
1
1
  import { z } from 'zod';
2
2
  export declare const jobModeSchema: z.ZodEnum<{
3
- one_shot: "one_shot";
4
3
  listening: "listening";
4
+ one_shot: "one_shot";
5
5
  }>;
6
6
  export declare const listenerStatusSchema: z.ZodEnum<{
7
- listening: "listening";
8
7
  inactive: "inactive";
8
+ listening: "listening";
9
9
  resolved: "resolved";
10
10
  }>;
11
11
  export declare const resolutionReasonSchema: z.ZodEnum<{
12
- until: "until";
13
- timeout: "timeout";
14
- max_executions: "max_executions";
15
12
  cancelled: "cancelled";
13
+ max_executions: "max_executions";
14
+ timeout: "timeout";
15
+ until: "until";
16
16
  }>;
17
17
  export declare const listeningTriggerSchema: z.ZodObject<{
18
18
  source: z.ZodString;
@@ -46,8 +46,8 @@ export declare const jobListeningSchema: z.ZodObject<{
46
46
  max_wait_ms: z.ZodOptional<z.ZodNumber>;
47
47
  }, z.core.$strip>>;
48
48
  on_resolve: z.ZodEnum<{
49
- finish: "finish";
50
49
  cancel: "cancel";
50
+ finish: "finish";
51
51
  }>;
52
52
  execution_timeout_ms: z.ZodNullable<z.ZodNumber>;
53
53
  name: z.ZodNullable<z.ZodString>;
@@ -1,24 +1,24 @@
1
1
  import { z } from 'zod';
2
2
  export declare const jobStatusSchema: z.ZodEnum<{
3
3
  cancelled: "cancelled";
4
+ failed: "failed";
4
5
  pending: "pending";
5
6
  running: "running";
6
- succeeded: "succeeded";
7
- failed: "failed";
8
7
  skipped: "skipped";
8
+ succeeded: "succeeded";
9
9
  }>;
10
10
  export declare const jobStatusReasonSchema: z.ZodEnum<{
11
- unknown: "unknown";
12
- dependency_not_completed: "dependency_not_completed";
11
+ condition_errored: "condition_errored";
13
12
  condition_false: "condition_false";
14
- default_gate_rejected: "default_gate_rejected";
15
13
  condition_rejected: "condition_rejected";
16
- condition_errored: "condition_errored";
17
- user_cancelled: "user_cancelled";
14
+ default_gate_rejected: "default_gate_rejected";
15
+ dependency_not_completed: "dependency_not_completed";
18
16
  run_cancelled: "run_cancelled";
19
- timed_out: "timed_out";
20
17
  runner_lost: "runner_lost";
21
18
  step_failed: "step_failed";
19
+ timed_out: "timed_out";
20
+ unknown: "unknown";
21
+ user_cancelled: "user_cancelled";
22
22
  }>;
23
23
  export declare const jobDtoSchema: z.ZodObject<{
24
24
  id: z.ZodString;
@@ -26,29 +26,29 @@ export declare const jobDtoSchema: z.ZodObject<{
26
26
  key: z.ZodString;
27
27
  name: z.ZodNullable<z.ZodString>;
28
28
  mode: z.ZodEnum<{
29
- one_shot: "one_shot";
30
29
  listening: "listening";
30
+ one_shot: "one_shot";
31
31
  }>;
32
32
  status: z.ZodEnum<{
33
33
  cancelled: "cancelled";
34
+ failed: "failed";
34
35
  pending: "pending";
35
36
  running: "running";
36
- succeeded: "succeeded";
37
- failed: "failed";
38
37
  skipped: "skipped";
38
+ succeeded: "succeeded";
39
39
  }>;
40
40
  status_reason: z.ZodNullable<z.ZodEnum<{
41
- unknown: "unknown";
42
- dependency_not_completed: "dependency_not_completed";
41
+ condition_errored: "condition_errored";
43
42
  condition_false: "condition_false";
44
- default_gate_rejected: "default_gate_rejected";
45
43
  condition_rejected: "condition_rejected";
46
- condition_errored: "condition_errored";
47
- user_cancelled: "user_cancelled";
44
+ default_gate_rejected: "default_gate_rejected";
45
+ dependency_not_completed: "dependency_not_completed";
48
46
  run_cancelled: "run_cancelled";
49
- timed_out: "timed_out";
50
47
  runner_lost: "runner_lost";
51
48
  step_failed: "step_failed";
49
+ timed_out: "timed_out";
50
+ unknown: "unknown";
51
+ user_cancelled: "user_cancelled";
52
52
  }>>;
53
53
  carried_over: z.ZodBoolean;
54
54
  listening: z.ZodNullable<z.ZodObject<{
@@ -72,22 +72,22 @@ export declare const jobDtoSchema: z.ZodObject<{
72
72
  max_wait_ms: z.ZodOptional<z.ZodNumber>;
73
73
  }, z.core.$strip>>;
74
74
  on_resolve: z.ZodEnum<{
75
- finish: "finish";
76
75
  cancel: "cancel";
76
+ finish: "finish";
77
77
  }>;
78
78
  execution_timeout_ms: z.ZodNullable<z.ZodNumber>;
79
79
  name: z.ZodNullable<z.ZodString>;
80
80
  }, z.core.$strip>>;
81
81
  listener_status: z.ZodEnum<{
82
- listening: "listening";
83
82
  inactive: "inactive";
83
+ listening: "listening";
84
84
  resolved: "resolved";
85
85
  }>;
86
86
  resolution_reason: z.ZodNullable<z.ZodEnum<{
87
- until: "until";
88
- timeout: "timeout";
89
- max_executions: "max_executions";
90
87
  cancelled: "cancelled";
88
+ max_executions: "max_executions";
89
+ timeout: "timeout";
90
+ until: "until";
91
91
  }>>;
92
92
  outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
93
93
  dependencies: z.ZodArray<z.ZodString>;
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const logOutcomeSchema: z.ZodEnum<{
3
- drained: "drained";
4
3
  abandoned: "abandoned";
4
+ drained: "drained";
5
5
  }>;
6
6
  export type LogOutcomeDto = z.infer<typeof logOutcomeSchema>;
7
7
  //# sourceMappingURL=log-outcome.d.ts.map
@@ -1,24 +1,26 @@
1
1
  import { z } from 'zod';
2
2
  export declare const stepErrorReasonSchema: z.ZodEnum<{
3
- checkout_failed: "checkout_failed";
3
+ agent_config_invalid: "agent_config_invalid";
4
+ agent_harness_unavailable: "agent_harness_unavailable";
5
+ agent_invocation_failed: "agent_invocation_failed";
4
6
  checkout_auth_failed: "checkout_auth_failed";
7
+ checkout_destination_occupied: "checkout_destination_occupied";
8
+ checkout_failed: "checkout_failed";
9
+ checkout_path_invalid: "checkout_path_invalid";
5
10
  checkout_unavailable: "checkout_unavailable";
6
- git_unavailable: "git_unavailable";
7
- workspace_prep_failed: "workspace_prep_failed";
8
- setup_aborted: "setup_aborted";
9
11
  config_unresolvable: "config_unresolvable";
12
+ git_unavailable: "git_unavailable";
10
13
  output_invalid: "output_invalid";
11
- agent_config_invalid: "agent_config_invalid";
12
- agent_invocation_failed: "agent_invocation_failed";
13
- agent_harness_unavailable: "agent_harness_unavailable";
14
+ setup_aborted: "setup_aborted";
15
+ workspace_prep_failed: "workspace_prep_failed";
14
16
  }>;
15
17
  export type StepErrorReasonDto = z.infer<typeof stepErrorReasonSchema>;
16
18
  export declare const agentConfigIssueSchema: z.ZodEnum<{
17
- step_config_invalid: "step_config_invalid";
19
+ credentials_invalid: "credentials_invalid";
20
+ model_unavailable: "model_unavailable";
18
21
  provider_not_configured: "provider_not_configured";
19
22
  provider_unsupported: "provider_unsupported";
20
- model_unavailable: "model_unavailable";
21
- credentials_invalid: "credentials_invalid";
23
+ step_config_invalid: "step_config_invalid";
22
24
  }>;
23
25
  export type AgentConfigIssueDto = z.infer<typeof agentConfigIssueSchema>;
24
26
  export declare const stepErrorCategorySchema: z.ZodEnum<{
@@ -32,26 +34,28 @@ export declare const stepErrorDtoSchema: z.ZodNullable<z.ZodObject<{
32
34
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
35
  signal: z.ZodOptional<z.ZodString>;
34
36
  reason: z.ZodOptional<z.ZodEnum<{
35
- checkout_failed: "checkout_failed";
37
+ agent_config_invalid: "agent_config_invalid";
38
+ agent_harness_unavailable: "agent_harness_unavailable";
39
+ agent_invocation_failed: "agent_invocation_failed";
36
40
  checkout_auth_failed: "checkout_auth_failed";
41
+ checkout_destination_occupied: "checkout_destination_occupied";
42
+ checkout_failed: "checkout_failed";
43
+ checkout_path_invalid: "checkout_path_invalid";
37
44
  checkout_unavailable: "checkout_unavailable";
38
- git_unavailable: "git_unavailable";
39
- workspace_prep_failed: "workspace_prep_failed";
40
- setup_aborted: "setup_aborted";
41
45
  config_unresolvable: "config_unresolvable";
46
+ git_unavailable: "git_unavailable";
42
47
  output_invalid: "output_invalid";
43
- agent_config_invalid: "agent_config_invalid";
44
- agent_invocation_failed: "agent_invocation_failed";
45
- agent_harness_unavailable: "agent_harness_unavailable";
48
+ setup_aborted: "setup_aborted";
49
+ workspace_prep_failed: "workspace_prep_failed";
46
50
  }>>;
47
51
  field: z.ZodOptional<z.ZodString>;
48
52
  source: z.ZodOptional<z.ZodString>;
49
53
  agent_config_issue: z.ZodOptional<z.ZodEnum<{
50
- step_config_invalid: "step_config_invalid";
54
+ credentials_invalid: "credentials_invalid";
55
+ model_unavailable: "model_unavailable";
51
56
  provider_not_configured: "provider_not_configured";
52
57
  provider_unsupported: "provider_unsupported";
53
- model_unavailable: "model_unavailable";
54
- credentials_invalid: "credentials_invalid";
58
+ step_config_invalid: "step_config_invalid";
55
59
  }>>;
56
60
  category: z.ZodOptional<z.ZodEnum<{
57
61
  setup: "setup";
@@ -81,26 +85,28 @@ export declare const stepDtoSchema: z.ZodObject<{
81
85
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
82
86
  signal: z.ZodOptional<z.ZodString>;
83
87
  reason: z.ZodOptional<z.ZodEnum<{
84
- checkout_failed: "checkout_failed";
88
+ agent_config_invalid: "agent_config_invalid";
89
+ agent_harness_unavailable: "agent_harness_unavailable";
90
+ agent_invocation_failed: "agent_invocation_failed";
85
91
  checkout_auth_failed: "checkout_auth_failed";
92
+ checkout_destination_occupied: "checkout_destination_occupied";
93
+ checkout_failed: "checkout_failed";
94
+ checkout_path_invalid: "checkout_path_invalid";
86
95
  checkout_unavailable: "checkout_unavailable";
87
- git_unavailable: "git_unavailable";
88
- workspace_prep_failed: "workspace_prep_failed";
89
- setup_aborted: "setup_aborted";
90
96
  config_unresolvable: "config_unresolvable";
97
+ git_unavailable: "git_unavailable";
91
98
  output_invalid: "output_invalid";
92
- agent_config_invalid: "agent_config_invalid";
93
- agent_invocation_failed: "agent_invocation_failed";
94
- agent_harness_unavailable: "agent_harness_unavailable";
99
+ setup_aborted: "setup_aborted";
100
+ workspace_prep_failed: "workspace_prep_failed";
95
101
  }>>;
96
102
  field: z.ZodOptional<z.ZodString>;
97
103
  source: z.ZodOptional<z.ZodString>;
98
104
  agent_config_issue: z.ZodOptional<z.ZodEnum<{
99
- step_config_invalid: "step_config_invalid";
105
+ credentials_invalid: "credentials_invalid";
106
+ model_unavailable: "model_unavailable";
100
107
  provider_not_configured: "provider_not_configured";
101
108
  provider_unsupported: "provider_unsupported";
102
- model_unavailable: "model_unavailable";
103
- credentials_invalid: "credentials_invalid";
109
+ step_config_invalid: "step_config_invalid";
104
110
  }>>;
105
111
  category: z.ZodOptional<z.ZodEnum<{
106
112
  setup: "setup";
@@ -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;;;;;;;;;;;;EAYhC,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,MAAM,wBAAwB;;;iBAQjC,CAAC;AAEL,MAAM,MAAM,qBAAqB,GAAG,CAAC,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CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,wBAAwB;;;iBAQjC,CAAC;AAEL,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE7E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAexB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAqCvB,CAAC;AAEd,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAIxE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqB/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  // Machine-readable cause of a step failure, for DB troubleshooting. The runner
3
3
  // reports it and the server stores it as-is. The `checkout_*`, `git_unavailable`,
4
- // `workspace_prep_failed`, and `setup_aborted` values cover setup-phase failures.
4
+ // `workspace_prep_failed`, and `setup_aborted` values cover checkout/setup failures.
5
5
  // For agent steps the cause is split three ways: `agent_config_invalid` is a user-fixable
6
6
  // configuration error and carries an `agent_config_issue`; `agent_invocation_failed`
7
7
  // covers a provider/API failure once the configuration is valid; and
@@ -12,6 +12,8 @@ export const stepErrorReasonSchema = z.enum([
12
12
  'checkout_failed',
13
13
  'checkout_auth_failed',
14
14
  'checkout_unavailable',
15
+ 'checkout_path_invalid',
16
+ 'checkout_destination_occupied',
15
17
  'git_unavailable',
16
18
  'workspace_prep_failed',
17
19
  'setup_aborted',