@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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +16 -0
- package/dist/events.d.ts +52 -33
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +24 -1
- package/dist/events.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inter-module.d.ts +50 -50
- package/dist/inter-module.d.ts.map +1 -1
- package/dist/schemas/job-execution.d.ts +27 -23
- package/dist/schemas/job-execution.d.ts.map +1 -1
- package/dist/schemas/job-listening.d.ts +6 -6
- package/dist/schemas/job.d.ts +22 -22
- package/dist/schemas/log-outcome.d.ts +1 -1
- package/dist/schemas/step.d.ts +36 -30
- package/dist/schemas/step.d.ts.map +1 -1
- package/dist/schemas/step.js +3 -1
- package/dist/schemas/step.js.map +1 -1
- package/dist/schemas/workflow-run-detail.d.ts +84 -76
- package/dist/schemas/workflow-run-detail.d.ts.map +1 -1
- package/dist/schemas/workflow-run.d.ts +27 -27
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/dist/working-directory.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/events.test.ts +2 -0
- package/src/events.ts +31 -0
- package/src/index.ts +3 -0
- package/src/schemas/step.test.ts +12 -0
- package/src/schemas/step.ts +3 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/schemas/step.js.map
CHANGED
|
@@ -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 setup-phase 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 '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,kFAAkF;AAClF,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;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,O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CAACzC,EAAES,MAAM,IAAIT,EAAE0C,OAAO;IACtC;CACD,EACA5B,QAAQ,GAAG;AAId,0EAA0E;AAC1E,mFAAmF;AACnF,OAAO,MAAMwC,uBAAuBtD,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';\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;IAA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AChBG,MAAMrD,EAAEyC,MAAM,CAACzC,EAAES,MAAM,IAAIT,EAAE0C,OAAO;IACtC;CACD,EACA5B,QAAQ,GAAG;AAId,0EAA0E;AAC1E,mFAAmF;AACnF,OAAO,MAAMwC,uBAAuBtD,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,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const jobExecutionStatusSchema: z.ZodEnum<{
|
|
3
3
|
cancelled: "cancelled";
|
|
4
|
+
failed: "failed";
|
|
4
5
|
pending: "pending";
|
|
5
6
|
running: "running";
|
|
6
7
|
succeeded: "succeeded";
|
|
7
|
-
failed: "failed";
|
|
8
8
|
}>;
|
|
9
9
|
export declare const jobExecutionDtoSchema: z.ZodObject<{
|
|
10
10
|
id: z.ZodString;
|
|
@@ -13,10 +13,10 @@ export declare const jobExecutionDtoSchema: z.ZodObject<{
|
|
|
13
13
|
name: z.ZodString;
|
|
14
14
|
status: z.ZodEnum<{
|
|
15
15
|
cancelled: "cancelled";
|
|
16
|
+
failed: "failed";
|
|
16
17
|
pending: "pending";
|
|
17
18
|
running: "running";
|
|
18
19
|
succeeded: "succeeded";
|
|
19
|
-
failed: "failed";
|
|
20
20
|
}>;
|
|
21
21
|
status_reason: z.ZodNullable<z.ZodString>;
|
|
22
22
|
trigger_events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -58,26 +58,28 @@ export declare const workflowRunStepDetailDtoSchema: z.ZodObject<{
|
|
|
58
58
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
59
59
|
signal: z.ZodOptional<z.ZodString>;
|
|
60
60
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
61
|
-
|
|
61
|
+
agent_config_invalid: "agent_config_invalid";
|
|
62
|
+
agent_harness_unavailable: "agent_harness_unavailable";
|
|
63
|
+
agent_invocation_failed: "agent_invocation_failed";
|
|
62
64
|
checkout_auth_failed: "checkout_auth_failed";
|
|
65
|
+
checkout_destination_occupied: "checkout_destination_occupied";
|
|
66
|
+
checkout_failed: "checkout_failed";
|
|
67
|
+
checkout_path_invalid: "checkout_path_invalid";
|
|
63
68
|
checkout_unavailable: "checkout_unavailable";
|
|
64
|
-
git_unavailable: "git_unavailable";
|
|
65
|
-
workspace_prep_failed: "workspace_prep_failed";
|
|
66
|
-
setup_aborted: "setup_aborted";
|
|
67
69
|
config_unresolvable: "config_unresolvable";
|
|
70
|
+
git_unavailable: "git_unavailable";
|
|
68
71
|
output_invalid: "output_invalid";
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
agent_harness_unavailable: "agent_harness_unavailable";
|
|
72
|
+
setup_aborted: "setup_aborted";
|
|
73
|
+
workspace_prep_failed: "workspace_prep_failed";
|
|
72
74
|
}>>;
|
|
73
75
|
field: z.ZodOptional<z.ZodString>;
|
|
74
76
|
source: z.ZodOptional<z.ZodString>;
|
|
75
77
|
agent_config_issue: z.ZodOptional<z.ZodEnum<{
|
|
76
|
-
|
|
78
|
+
credentials_invalid: "credentials_invalid";
|
|
79
|
+
model_unavailable: "model_unavailable";
|
|
77
80
|
provider_not_configured: "provider_not_configured";
|
|
78
81
|
provider_unsupported: "provider_unsupported";
|
|
79
|
-
|
|
80
|
-
credentials_invalid: "credentials_invalid";
|
|
82
|
+
step_config_invalid: "step_config_invalid";
|
|
81
83
|
}>>;
|
|
82
84
|
category: z.ZodOptional<z.ZodEnum<{
|
|
83
85
|
setup: "setup";
|
|
@@ -171,10 +173,10 @@ export declare const workflowRunJobExecutionDetailDtoSchema: z.ZodObject<{
|
|
|
171
173
|
name: z.ZodString;
|
|
172
174
|
status: z.ZodEnum<{
|
|
173
175
|
cancelled: "cancelled";
|
|
176
|
+
failed: "failed";
|
|
174
177
|
pending: "pending";
|
|
175
178
|
running: "running";
|
|
176
179
|
succeeded: "succeeded";
|
|
177
|
-
failed: "failed";
|
|
178
180
|
}>;
|
|
179
181
|
status_reason: z.ZodNullable<z.ZodString>;
|
|
180
182
|
trigger_events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -214,26 +216,28 @@ export declare const workflowRunJobExecutionDetailDtoSchema: z.ZodObject<{
|
|
|
214
216
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
215
217
|
signal: z.ZodOptional<z.ZodString>;
|
|
216
218
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
217
|
-
|
|
219
|
+
agent_config_invalid: "agent_config_invalid";
|
|
220
|
+
agent_harness_unavailable: "agent_harness_unavailable";
|
|
221
|
+
agent_invocation_failed: "agent_invocation_failed";
|
|
218
222
|
checkout_auth_failed: "checkout_auth_failed";
|
|
223
|
+
checkout_destination_occupied: "checkout_destination_occupied";
|
|
224
|
+
checkout_failed: "checkout_failed";
|
|
225
|
+
checkout_path_invalid: "checkout_path_invalid";
|
|
219
226
|
checkout_unavailable: "checkout_unavailable";
|
|
220
|
-
git_unavailable: "git_unavailable";
|
|
221
|
-
workspace_prep_failed: "workspace_prep_failed";
|
|
222
|
-
setup_aborted: "setup_aborted";
|
|
223
227
|
config_unresolvable: "config_unresolvable";
|
|
228
|
+
git_unavailable: "git_unavailable";
|
|
224
229
|
output_invalid: "output_invalid";
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
agent_harness_unavailable: "agent_harness_unavailable";
|
|
230
|
+
setup_aborted: "setup_aborted";
|
|
231
|
+
workspace_prep_failed: "workspace_prep_failed";
|
|
228
232
|
}>>;
|
|
229
233
|
field: z.ZodOptional<z.ZodString>;
|
|
230
234
|
source: z.ZodOptional<z.ZodString>;
|
|
231
235
|
agent_config_issue: z.ZodOptional<z.ZodEnum<{
|
|
232
|
-
|
|
236
|
+
credentials_invalid: "credentials_invalid";
|
|
237
|
+
model_unavailable: "model_unavailable";
|
|
233
238
|
provider_not_configured: "provider_not_configured";
|
|
234
239
|
provider_unsupported: "provider_unsupported";
|
|
235
|
-
|
|
236
|
-
credentials_invalid: "credentials_invalid";
|
|
240
|
+
step_config_invalid: "step_config_invalid";
|
|
237
241
|
}>>;
|
|
238
242
|
category: z.ZodOptional<z.ZodEnum<{
|
|
239
243
|
setup: "setup";
|
|
@@ -327,29 +331,29 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
|
|
|
327
331
|
key: z.ZodString;
|
|
328
332
|
name: z.ZodNullable<z.ZodString>;
|
|
329
333
|
mode: z.ZodEnum<{
|
|
330
|
-
one_shot: "one_shot";
|
|
331
334
|
listening: "listening";
|
|
335
|
+
one_shot: "one_shot";
|
|
332
336
|
}>;
|
|
333
337
|
status: z.ZodEnum<{
|
|
334
338
|
cancelled: "cancelled";
|
|
339
|
+
failed: "failed";
|
|
335
340
|
pending: "pending";
|
|
336
341
|
running: "running";
|
|
337
|
-
succeeded: "succeeded";
|
|
338
|
-
failed: "failed";
|
|
339
342
|
skipped: "skipped";
|
|
343
|
+
succeeded: "succeeded";
|
|
340
344
|
}>;
|
|
341
345
|
status_reason: z.ZodNullable<z.ZodEnum<{
|
|
342
|
-
|
|
343
|
-
dependency_not_completed: "dependency_not_completed";
|
|
346
|
+
condition_errored: "condition_errored";
|
|
344
347
|
condition_false: "condition_false";
|
|
345
|
-
default_gate_rejected: "default_gate_rejected";
|
|
346
348
|
condition_rejected: "condition_rejected";
|
|
347
|
-
|
|
348
|
-
|
|
349
|
+
default_gate_rejected: "default_gate_rejected";
|
|
350
|
+
dependency_not_completed: "dependency_not_completed";
|
|
349
351
|
run_cancelled: "run_cancelled";
|
|
350
|
-
timed_out: "timed_out";
|
|
351
352
|
runner_lost: "runner_lost";
|
|
352
353
|
step_failed: "step_failed";
|
|
354
|
+
timed_out: "timed_out";
|
|
355
|
+
unknown: "unknown";
|
|
356
|
+
user_cancelled: "user_cancelled";
|
|
353
357
|
}>>;
|
|
354
358
|
carried_over: z.ZodBoolean;
|
|
355
359
|
listening: z.ZodNullable<z.ZodObject<{
|
|
@@ -373,22 +377,22 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
|
|
|
373
377
|
max_wait_ms: z.ZodOptional<z.ZodNumber>;
|
|
374
378
|
}, z.core.$strip>>;
|
|
375
379
|
on_resolve: z.ZodEnum<{
|
|
376
|
-
finish: "finish";
|
|
377
380
|
cancel: "cancel";
|
|
381
|
+
finish: "finish";
|
|
378
382
|
}>;
|
|
379
383
|
execution_timeout_ms: z.ZodNullable<z.ZodNumber>;
|
|
380
384
|
name: z.ZodNullable<z.ZodString>;
|
|
381
385
|
}, z.core.$strip>>;
|
|
382
386
|
listener_status: z.ZodEnum<{
|
|
383
|
-
listening: "listening";
|
|
384
387
|
inactive: "inactive";
|
|
388
|
+
listening: "listening";
|
|
385
389
|
resolved: "resolved";
|
|
386
390
|
}>;
|
|
387
391
|
resolution_reason: z.ZodNullable<z.ZodEnum<{
|
|
388
|
-
until: "until";
|
|
389
|
-
timeout: "timeout";
|
|
390
|
-
max_executions: "max_executions";
|
|
391
392
|
cancelled: "cancelled";
|
|
393
|
+
max_executions: "max_executions";
|
|
394
|
+
timeout: "timeout";
|
|
395
|
+
until: "until";
|
|
392
396
|
}>>;
|
|
393
397
|
outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
394
398
|
dependencies: z.ZodArray<z.ZodString>;
|
|
@@ -402,10 +406,10 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
|
|
|
402
406
|
name: z.ZodString;
|
|
403
407
|
status: z.ZodEnum<{
|
|
404
408
|
cancelled: "cancelled";
|
|
409
|
+
failed: "failed";
|
|
405
410
|
pending: "pending";
|
|
406
411
|
running: "running";
|
|
407
412
|
succeeded: "succeeded";
|
|
408
|
-
failed: "failed";
|
|
409
413
|
}>;
|
|
410
414
|
status_reason: z.ZodNullable<z.ZodString>;
|
|
411
415
|
trigger_events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -445,26 +449,28 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
|
|
|
445
449
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
446
450
|
signal: z.ZodOptional<z.ZodString>;
|
|
447
451
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
448
|
-
|
|
452
|
+
agent_config_invalid: "agent_config_invalid";
|
|
453
|
+
agent_harness_unavailable: "agent_harness_unavailable";
|
|
454
|
+
agent_invocation_failed: "agent_invocation_failed";
|
|
449
455
|
checkout_auth_failed: "checkout_auth_failed";
|
|
456
|
+
checkout_destination_occupied: "checkout_destination_occupied";
|
|
457
|
+
checkout_failed: "checkout_failed";
|
|
458
|
+
checkout_path_invalid: "checkout_path_invalid";
|
|
450
459
|
checkout_unavailable: "checkout_unavailable";
|
|
451
|
-
git_unavailable: "git_unavailable";
|
|
452
|
-
workspace_prep_failed: "workspace_prep_failed";
|
|
453
|
-
setup_aborted: "setup_aborted";
|
|
454
460
|
config_unresolvable: "config_unresolvable";
|
|
461
|
+
git_unavailable: "git_unavailable";
|
|
455
462
|
output_invalid: "output_invalid";
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
agent_harness_unavailable: "agent_harness_unavailable";
|
|
463
|
+
setup_aborted: "setup_aborted";
|
|
464
|
+
workspace_prep_failed: "workspace_prep_failed";
|
|
459
465
|
}>>;
|
|
460
466
|
field: z.ZodOptional<z.ZodString>;
|
|
461
467
|
source: z.ZodOptional<z.ZodString>;
|
|
462
468
|
agent_config_issue: z.ZodOptional<z.ZodEnum<{
|
|
463
|
-
|
|
469
|
+
credentials_invalid: "credentials_invalid";
|
|
470
|
+
model_unavailable: "model_unavailable";
|
|
464
471
|
provider_not_configured: "provider_not_configured";
|
|
465
472
|
provider_unsupported: "provider_unsupported";
|
|
466
|
-
|
|
467
|
-
credentials_invalid: "credentials_invalid";
|
|
473
|
+
step_config_invalid: "step_config_invalid";
|
|
468
474
|
}>>;
|
|
469
475
|
category: z.ZodOptional<z.ZodEnum<{
|
|
470
476
|
setup: "setup";
|
|
@@ -562,10 +568,10 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
562
568
|
workflow_name: z.ZodString;
|
|
563
569
|
status: z.ZodEnum<{
|
|
564
570
|
cancelled: "cancelled";
|
|
571
|
+
failed: "failed";
|
|
565
572
|
pending: "pending";
|
|
566
573
|
running: "running";
|
|
567
574
|
succeeded: "succeeded";
|
|
568
|
-
failed: "failed";
|
|
569
575
|
}>;
|
|
570
576
|
current_attempt: z.ZodNumber;
|
|
571
577
|
latest_attempt: z.ZodNumber;
|
|
@@ -594,17 +600,17 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
594
600
|
attempt: z.ZodNumber;
|
|
595
601
|
status: z.ZodEnum<{
|
|
596
602
|
cancelled: "cancelled";
|
|
603
|
+
failed: "failed";
|
|
597
604
|
pending: "pending";
|
|
598
605
|
running: "running";
|
|
599
606
|
succeeded: "succeeded";
|
|
600
|
-
failed: "failed";
|
|
601
607
|
}>;
|
|
602
608
|
created_at: z.ZodString;
|
|
603
609
|
started_at: z.ZodNullable<z.ZodString>;
|
|
604
610
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
605
611
|
rerun_mode: z.ZodNullable<z.ZodEnum<{
|
|
606
|
-
failed: "failed";
|
|
607
612
|
all: "all";
|
|
613
|
+
failed: "failed";
|
|
608
614
|
}>>;
|
|
609
615
|
}, z.core.$strip>;
|
|
610
616
|
jobs: z.ZodArray<z.ZodObject<{
|
|
@@ -613,29 +619,29 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
613
619
|
key: z.ZodString;
|
|
614
620
|
name: z.ZodNullable<z.ZodString>;
|
|
615
621
|
mode: z.ZodEnum<{
|
|
616
|
-
one_shot: "one_shot";
|
|
617
622
|
listening: "listening";
|
|
623
|
+
one_shot: "one_shot";
|
|
618
624
|
}>;
|
|
619
625
|
status: z.ZodEnum<{
|
|
620
626
|
cancelled: "cancelled";
|
|
627
|
+
failed: "failed";
|
|
621
628
|
pending: "pending";
|
|
622
629
|
running: "running";
|
|
623
|
-
succeeded: "succeeded";
|
|
624
|
-
failed: "failed";
|
|
625
630
|
skipped: "skipped";
|
|
631
|
+
succeeded: "succeeded";
|
|
626
632
|
}>;
|
|
627
633
|
status_reason: z.ZodNullable<z.ZodEnum<{
|
|
628
|
-
|
|
629
|
-
dependency_not_completed: "dependency_not_completed";
|
|
634
|
+
condition_errored: "condition_errored";
|
|
630
635
|
condition_false: "condition_false";
|
|
631
|
-
default_gate_rejected: "default_gate_rejected";
|
|
632
636
|
condition_rejected: "condition_rejected";
|
|
633
|
-
|
|
634
|
-
|
|
637
|
+
default_gate_rejected: "default_gate_rejected";
|
|
638
|
+
dependency_not_completed: "dependency_not_completed";
|
|
635
639
|
run_cancelled: "run_cancelled";
|
|
636
|
-
timed_out: "timed_out";
|
|
637
640
|
runner_lost: "runner_lost";
|
|
638
641
|
step_failed: "step_failed";
|
|
642
|
+
timed_out: "timed_out";
|
|
643
|
+
unknown: "unknown";
|
|
644
|
+
user_cancelled: "user_cancelled";
|
|
639
645
|
}>>;
|
|
640
646
|
carried_over: z.ZodBoolean;
|
|
641
647
|
listening: z.ZodNullable<z.ZodObject<{
|
|
@@ -659,22 +665,22 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
659
665
|
max_wait_ms: z.ZodOptional<z.ZodNumber>;
|
|
660
666
|
}, z.core.$strip>>;
|
|
661
667
|
on_resolve: z.ZodEnum<{
|
|
662
|
-
finish: "finish";
|
|
663
668
|
cancel: "cancel";
|
|
669
|
+
finish: "finish";
|
|
664
670
|
}>;
|
|
665
671
|
execution_timeout_ms: z.ZodNullable<z.ZodNumber>;
|
|
666
672
|
name: z.ZodNullable<z.ZodString>;
|
|
667
673
|
}, z.core.$strip>>;
|
|
668
674
|
listener_status: z.ZodEnum<{
|
|
669
|
-
listening: "listening";
|
|
670
675
|
inactive: "inactive";
|
|
676
|
+
listening: "listening";
|
|
671
677
|
resolved: "resolved";
|
|
672
678
|
}>;
|
|
673
679
|
resolution_reason: z.ZodNullable<z.ZodEnum<{
|
|
674
|
-
until: "until";
|
|
675
|
-
timeout: "timeout";
|
|
676
|
-
max_executions: "max_executions";
|
|
677
680
|
cancelled: "cancelled";
|
|
681
|
+
max_executions: "max_executions";
|
|
682
|
+
timeout: "timeout";
|
|
683
|
+
until: "until";
|
|
678
684
|
}>>;
|
|
679
685
|
outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
680
686
|
dependencies: z.ZodArray<z.ZodString>;
|
|
@@ -688,10 +694,10 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
688
694
|
name: z.ZodString;
|
|
689
695
|
status: z.ZodEnum<{
|
|
690
696
|
cancelled: "cancelled";
|
|
697
|
+
failed: "failed";
|
|
691
698
|
pending: "pending";
|
|
692
699
|
running: "running";
|
|
693
700
|
succeeded: "succeeded";
|
|
694
|
-
failed: "failed";
|
|
695
701
|
}>;
|
|
696
702
|
status_reason: z.ZodNullable<z.ZodString>;
|
|
697
703
|
trigger_events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -731,26 +737,28 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
731
737
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
732
738
|
signal: z.ZodOptional<z.ZodString>;
|
|
733
739
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
734
|
-
|
|
740
|
+
agent_config_invalid: "agent_config_invalid";
|
|
741
|
+
agent_harness_unavailable: "agent_harness_unavailable";
|
|
742
|
+
agent_invocation_failed: "agent_invocation_failed";
|
|
735
743
|
checkout_auth_failed: "checkout_auth_failed";
|
|
744
|
+
checkout_destination_occupied: "checkout_destination_occupied";
|
|
745
|
+
checkout_failed: "checkout_failed";
|
|
746
|
+
checkout_path_invalid: "checkout_path_invalid";
|
|
736
747
|
checkout_unavailable: "checkout_unavailable";
|
|
737
|
-
git_unavailable: "git_unavailable";
|
|
738
|
-
workspace_prep_failed: "workspace_prep_failed";
|
|
739
|
-
setup_aborted: "setup_aborted";
|
|
740
748
|
config_unresolvable: "config_unresolvable";
|
|
749
|
+
git_unavailable: "git_unavailable";
|
|
741
750
|
output_invalid: "output_invalid";
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
agent_harness_unavailable: "agent_harness_unavailable";
|
|
751
|
+
setup_aborted: "setup_aborted";
|
|
752
|
+
workspace_prep_failed: "workspace_prep_failed";
|
|
745
753
|
}>>;
|
|
746
754
|
field: z.ZodOptional<z.ZodString>;
|
|
747
755
|
source: z.ZodOptional<z.ZodString>;
|
|
748
756
|
agent_config_issue: z.ZodOptional<z.ZodEnum<{
|
|
749
|
-
|
|
757
|
+
credentials_invalid: "credentials_invalid";
|
|
758
|
+
model_unavailable: "model_unavailable";
|
|
750
759
|
provider_not_configured: "provider_not_configured";
|
|
751
760
|
provider_unsupported: "provider_unsupported";
|
|
752
|
-
|
|
753
|
-
credentials_invalid: "credentials_invalid";
|
|
761
|
+
step_config_invalid: "step_config_invalid";
|
|
754
762
|
}>>;
|
|
755
763
|
category: z.ZodOptional<z.ZodEnum<{
|
|
756
764
|
setup: "setup";
|
|
@@ -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
|
|
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,CAA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