@shipfox/api-workflows-dto 9.3.0 → 12.0.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 +46 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/inter-module.d.ts +53 -1
- package/dist/inter-module.d.ts.map +1 -1
- package/dist/inter-module.js +30 -2
- package/dist/inter-module.js.map +1 -1
- package/dist/schemas/checkout-token.d.ts +9 -0
- package/dist/schemas/checkout-token.d.ts.map +1 -1
- package/dist/schemas/checkout-token.js +7 -0
- package/dist/schemas/checkout-token.js.map +1 -1
- package/dist/schemas/index.d.ts +3 -3
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +3 -3
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/job-execution.d.ts +15 -0
- package/dist/schemas/job-execution.d.ts.map +1 -1
- package/dist/schemas/job-execution.js +7 -0
- package/dist/schemas/job-execution.js.map +1 -1
- package/dist/schemas/job-listening.d.ts +18 -0
- package/dist/schemas/job-listening.d.ts.map +1 -1
- package/dist/schemas/job-listening.js +6 -0
- package/dist/schemas/job-listening.js.map +1 -1
- package/dist/schemas/step.d.ts +3 -0
- package/dist/schemas/step.d.ts.map +1 -1
- package/dist/schemas/step.js +8 -6
- package/dist/schemas/step.js.map +1 -1
- package/dist/schemas/workflow-run-detail.d.ts +36 -0
- package/dist/schemas/workflow-run-detail.d.ts.map +1 -1
- package/dist/schemas/workflow-run.d.ts +155 -0
- package/dist/schemas/workflow-run.d.ts.map +1 -1
- package/dist/schemas/workflow-run.js +39 -1
- package/dist/schemas/workflow-run.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/dist/working-directory.d.ts +9 -0
- package/dist/working-directory.d.ts.map +1 -0
- package/dist/working-directory.js +23 -0
- package/dist/working-directory.js.map +1 -0
- package/package.json +3 -3
- package/src/index.ts +16 -0
- package/src/inter-module.test.ts +17 -0
- package/src/inter-module.ts +27 -1
- package/src/schemas/checkout-token.test.ts +44 -2
- package/src/schemas/checkout-token.ts +13 -0
- package/src/schemas/index.ts +15 -0
- package/src/schemas/job-execution.test.ts +15 -0
- package/src/schemas/job-execution.ts +13 -0
- package/src/schemas/job-listening.test.ts +4 -0
- package/src/schemas/job-listening.ts +4 -0
- package/src/schemas/step.test.ts +13 -0
- package/src/schemas/step.ts +7 -5
- package/src/schemas/workflow-run.test.ts +106 -1
- package/src/schemas/workflow-run.ts +56 -1
- package/src/working-directory.ts +28 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/job-execution.ts"],"sourcesContent":["import {z} from 'zod';\nimport {logOutcomeSchema} from './log-outcome.js';\nimport {stepDtoSchema, stepErrorDtoSchema} from './step.js';\n\nexport const STEP_RESPONSE_MAX_LENGTH = 8 * 1024;\n\n/**\n * The job to progress is identified by the caller's lease-token claims, never by\n * the request. An unknown job is a 404, not a `done`.\n */\nexport const nextStepResponseSchema = z.discriminatedUnion('kind', [\n z.object({\n kind: z.literal('step'),\n step: stepDtoSchema,\n attempt: z\n .number()\n .int()\n .positive()\n .describe(\n 'Attempt number for this step dispatch. Echo it back when reporting the step result so stale reports from older attempts can be ignored.',\n ),\n lease_token: z\n .string()\n .min(1)\n .describe(\n 'Job-lease token re-scoped to this dispatched step attempt. The runner presents it as its lease for log-append authorization and carries it on later step requests.',\n ),\n }),\n z.object({\n kind: z.literal('done'),\n status: z\n .enum(['succeeded', 'failed'])\n .describe('Terminal status of the job when no step remains to run.'),\n }),\n]);\n\nexport type NextStepResponseDto = z.infer<typeof nextStepResponseSchema>;\n\nexport const reportStepBodySchema = z\n .object({\n status: z.enum(['succeeded', 'failed']).describe('Final status reported for the step attempt.'),\n error: stepErrorDtoSchema\n .optional()\n .describe('Failure details. Required when status is failed.'),\n attempt: z\n .number()\n .int()\n .positive()\n .optional()\n .describe(\n 'Attempt number echoed from next-step. Older runners may omit it; when present, it protects the workflow from stale reports.',\n ),\n exit_code: z\n .number()\n .int()\n .nullable()\n .optional()\n .describe(\n 'Process exit code for the step attempt. Persisted as the canonical attempt exit code and used by gate evaluation.',\n ),\n output: z\n .record(z.string(), z.unknown())\n .nullable()\n .optional()\n .describe(\n 'Structured output captured for attempt history. Large textual logs are stored separately.',\n ),\n response: z\n .string()\n .max(STEP_RESPONSE_MAX_LENGTH)\n .optional()\n .describe('Capped final assistant response for agent step attempts. Omitted for run steps.'),\n log_outcome: logOutcomeSchema.describe(\n 'Whether the runner drained all locally spooled logs before reporting, or abandoned the log stream for backend closure.',\n ),\n })\n .refine((body) => (body.status === 'succeeded' ? body.error == null : body.error != null), {\n message: 'succeeded steps must not include an error and failed steps must include one',\n });\n\nexport type ReportStepBodyDto = z.infer<typeof reportStepBodySchema>;\n\nexport const reportStepResponseSchema = z.object({\n ok: z.boolean().describe('Whether the step report was accepted.'),\n cancel: z\n .boolean()\n .describe(\n 'Whether the runner should stop working on the job because it finished without full success.',\n ),\n});\n\nexport type ReportStepResponseDto = z.infer<typeof reportStepResponseSchema>;\n"],"names":["z","logOutcomeSchema","stepDtoSchema","stepErrorDtoSchema","STEP_RESPONSE_MAX_LENGTH","nextStepResponseSchema","discriminatedUnion","object","kind","literal","step","attempt","number","int","positive","describe","lease_token","string","min","status","enum","reportStepBodySchema","error","optional","exit_code","nullable","output","record","unknown","response","max","log_outcome","refine","body","message","reportStepResponseSchema","ok","boolean","cancel"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,gBAAgB,QAAO,mBAAmB;AAClD,SAAQC,aAAa,EAAEC,kBAAkB,QAAO,YAAY;AAE5D,OAAO,MAAMC,2BAA2B,IAAI,KAAK;AAEjD;;;CAGC,GACD,OAAO,MAAMC,yBAAyBL,EAAEM,kBAAkB,CAAC,QAAQ;IACjEN,EAAEO,MAAM,CAAC;QACPC,MAAMR,EAAES,OAAO,CAAC;QAChBC,MAAMR;QACNS,SAASX,EACNY,MAAM,GACNC,GAAG,GACHC,QAAQ,GACRC,QAAQ,CACP;QAEJC,aAAahB,EACViB,MAAM,GACNC,GAAG,CAAC,GACJH,QAAQ,CACP;IAEN;IACAf,EAAEO,MAAM,CAAC;QACPC,MAAMR,EAAES,OAAO,CAAC;QAChBU,QAAQnB,EACLoB,IAAI,CAAC;YAAC;YAAa;SAAS,EAC5BL,QAAQ,CAAC;IACd;CACD,EAAE;AAIH,OAAO,MAAMM,uBAAuBrB,EACjCO,MAAM,CAAC;IACNY,QAAQnB,EAAEoB,IAAI,CAAC;QAAC;QAAa;KAAS,EAAEL,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/job-execution.ts"],"sourcesContent":["import {z} from 'zod';\nimport {logOutcomeSchema} from './log-outcome.js';\nimport {stepDtoSchema, stepErrorDtoSchema} from './step.js';\n\nexport const STEP_RESPONSE_MAX_LENGTH = 8 * 1024;\n\n/**\n * The job to progress is identified by the caller's lease-token claims, never by\n * the request. An unknown job is a 404, not a `done`.\n */\nexport const nextStepResponseSchema = z.discriminatedUnion('kind', [\n z.object({\n kind: z.literal('step'),\n step: stepDtoSchema,\n attempt: z\n .number()\n .int()\n .positive()\n .describe(\n 'Attempt number for this step dispatch. Echo it back when reporting the step result so stale reports from older attempts can be ignored.',\n ),\n lease_token: z\n .string()\n .min(1)\n .describe(\n 'Job-lease token re-scoped to this dispatched step attempt. The runner presents it as its lease for log-append authorization and carries it on later step requests.',\n ),\n }),\n z.object({\n kind: z.literal('done'),\n status: z\n .enum(['succeeded', 'failed'])\n .describe('Terminal status of the job when no step remains to run.'),\n }),\n]);\n\nexport type NextStepResponseDto = z.infer<typeof nextStepResponseSchema>;\n\nexport const checkoutResultSchema = z\n .object({\n repository: z.string().min(1),\n ref: z.string().min(1),\n commit: z.string().min(1),\n path: z.string().min(1),\n })\n .describe('Resolved repository checkout details reported by the runner.');\nexport type CheckoutResultDto = z.infer<typeof checkoutResultSchema>;\n\nexport const reportStepBodySchema = z\n .object({\n status: z.enum(['succeeded', 'failed']).describe('Final status reported for the step attempt.'),\n error: stepErrorDtoSchema\n .optional()\n .describe('Failure details. Required when status is failed.'),\n attempt: z\n .number()\n .int()\n .positive()\n .optional()\n .describe(\n 'Attempt number echoed from next-step. Older runners may omit it; when present, it protects the workflow from stale reports.',\n ),\n exit_code: z\n .number()\n .int()\n .nullable()\n .optional()\n .describe(\n 'Process exit code for the step attempt. Persisted as the canonical attempt exit code and used by gate evaluation.',\n ),\n output: z\n .record(z.string(), z.unknown())\n .nullable()\n .optional()\n .describe(\n 'Structured output captured for attempt history. Large textual logs are stored separately.',\n ),\n checkout: checkoutResultSchema\n .optional()\n .describe('Resolved repository checkout details captured for attempt history.'),\n response: z\n .string()\n .max(STEP_RESPONSE_MAX_LENGTH)\n .optional()\n .describe('Capped final assistant response for agent step attempts. Omitted for run steps.'),\n log_outcome: logOutcomeSchema.describe(\n 'Whether the runner drained all locally spooled logs before reporting, or abandoned the log stream for backend closure.',\n ),\n })\n .refine((body) => (body.status === 'succeeded' ? body.error == null : body.error != null), {\n message: 'succeeded steps must not include an error and failed steps must include one',\n });\n\nexport type ReportStepBodyDto = z.infer<typeof reportStepBodySchema>;\n\nexport const reportStepResponseSchema = z.object({\n ok: z.boolean().describe('Whether the step report was accepted.'),\n cancel: z\n .boolean()\n .describe(\n 'Whether the runner should stop working on the job because it finished without full success.',\n ),\n});\n\nexport type ReportStepResponseDto = z.infer<typeof reportStepResponseSchema>;\n"],"names":["z","logOutcomeSchema","stepDtoSchema","stepErrorDtoSchema","STEP_RESPONSE_MAX_LENGTH","nextStepResponseSchema","discriminatedUnion","object","kind","literal","step","attempt","number","int","positive","describe","lease_token","string","min","status","enum","checkoutResultSchema","repository","ref","commit","path","reportStepBodySchema","error","optional","exit_code","nullable","output","record","unknown","checkout","response","max","log_outcome","refine","body","message","reportStepResponseSch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JgB,QAAQ/B,EACLgC,MAAM,CAAChC,EAAEiB,MAAM,IAAIjB,EAAEiC,OAAO,IAC5BH,QAAQ,GACRF,QAAQ,GACRb,QAAQ,CACP;IAEJmB,UAAUb,qBACPO,QAAQ,GACRb,QAAQ,CAAC;IACZoB,UAAUnC,EACPiB,MAAM,GACNmB,GAAG,CAAChC,0BACJwB,QAAQ,GACRb,QAAQ,CAAC;IACZsB,aAAapC,iBAAiBc,QAAQ,CACpC;AAEJ,GACCuB,MAAM,CAAC,CAACC,OAAUA,KAAKpB,MAAM,KAAK,cAAcoB,KAAKZ,KAAK,IAAI,OAAOY,KAAKZ,KAAK,IAAI,MAAO;IACzFa,SAAS;AACX,GAAG;AAIL,OAAO,MAAMC,2BAA2BzC,EAAEO,MAAM,CAAC;IAC/CmC,IAAI1C,EAAE2C,OAAO,GAAG5B,QAAQ,CAAC;IACzB6B,QAAQ5C,EACL2C,OAAO,GACP5B,QAAQ,CACP;AAEN,GAAG"}
|
|
@@ -57,6 +57,12 @@ export declare const workflowExecutionEventSchema: z.ZodObject<{
|
|
|
57
57
|
event: z.ZodString;
|
|
58
58
|
delivery_id: z.ZodString;
|
|
59
59
|
received_at: z.ZodString;
|
|
60
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
64
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
65
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
60
66
|
data: z.ZodUnknown;
|
|
61
67
|
}, z.core.$strip>;
|
|
62
68
|
export declare const workflowExecutionContextSchema: z.ZodObject<{
|
|
@@ -70,6 +76,12 @@ export declare const workflowExecutionContextSchema: z.ZodObject<{
|
|
|
70
76
|
event: z.ZodString;
|
|
71
77
|
delivery_id: z.ZodString;
|
|
72
78
|
received_at: z.ZodString;
|
|
79
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
80
|
+
id: z.ZodString;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
83
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
84
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
73
85
|
data: z.ZodUnknown;
|
|
74
86
|
}, z.core.$strip>>;
|
|
75
87
|
}, z.core.$strip>;
|
|
@@ -79,6 +91,12 @@ export declare const triggerEventsBatchSchema: z.ZodObject<{
|
|
|
79
91
|
event: z.ZodString;
|
|
80
92
|
delivery_id: z.ZodString;
|
|
81
93
|
received_at: z.ZodString;
|
|
94
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
95
|
+
id: z.ZodString;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
98
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
99
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
82
100
|
data: z.ZodUnknown;
|
|
83
101
|
}, z.core.$strip>>;
|
|
84
102
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-listening.d.ts","sourceRoot":"","sources":["../../src/schemas/job-listening.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,aAAa;;;EAAoC,CAAC;AAC/D,eAAO,MAAM,oBAAoB;;;;EAAgD,CAAC;AAClF,eAAO,MAAM,sBAAsB;;;;;EAA8D,CAAC;AAElG,eAAO,MAAM,sBAAsB;;;;;iBAKjC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS7B,CAAC;AAEH,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"job-listening.d.ts","sourceRoot":"","sources":["../../src/schemas/job-listening.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CA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
|
delivery_id: z.string(),
|
|
45
45
|
received_at: z.string(),
|
|
46
|
+
project: z.object({
|
|
47
|
+
id: z.string().uuid()
|
|
48
|
+
}).nullable(),
|
|
49
|
+
repository: z.string().nullable(),
|
|
50
|
+
ref: z.string().nullable(),
|
|
51
|
+
commit: z.string().nullable(),
|
|
46
52
|
data: z.unknown()
|
|
47
53
|
});
|
|
48
54
|
export const workflowExecutionContextSchema = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/job-listening.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const jobModeSchema = z.enum(['one_shot', 'listening']);\nexport const listenerStatusSchema = z.enum(['inactive', 'listening', 'resolved']);\nexport const resolutionReasonSchema = z.enum(['until', 'timeout', 'max_executions', 'cancelled']);\n\nexport const listeningTriggerSchema = z.object({\n source: z.string(),\n event: z.string(),\n inputs: z.record(z.string(), z.unknown()).optional(),\n filter: z.string().optional(),\n});\n\nexport const jobListeningBatchSchema = z.object({\n debounce_ms: z.number().int().positive().optional(),\n max_size: z.number().int().positive().optional(),\n max_wait_ms: z.number().int().positive().optional(),\n});\n\nexport const jobListeningSchema = z.object({\n on: z.array(listeningTriggerSchema).min(1),\n until: z.array(listeningTriggerSchema).min(1).nullable(),\n timeout_ms: z.number().int().positive().nullable(),\n max_executions: z.number().int().positive().nullable(),\n batch: jobListeningBatchSchema.nullable(),\n on_resolve: z.enum(['finish', 'cancel']),\n execution_timeout_ms: z.number().int().positive().nullable(),\n name: z.string().nullable(),\n});\n\nexport const workflowExecutionEventSchema = z.object({\n source: z.string(),\n event: z.string(),\n delivery_id: z.string(),\n received_at: z.string(),\n data: z.unknown(),\n});\n\nexport const workflowExecutionContextSchema = z.object({\n index: z.number().int().nonnegative(),\n name: z.string(),\n status: z.string(),\n started_at: z.string().nullable(),\n finished_at: z.string().nullable(),\n events: z.array(workflowExecutionEventSchema),\n});\n\nexport const triggerEventsBatchSchema = z.object({\n events: z.array(workflowExecutionEventSchema),\n});\n\nexport type JobModeDto = z.infer<typeof jobModeSchema>;\nexport type ListenerStatusDto = z.infer<typeof listenerStatusSchema>;\nexport type ResolutionReasonDto = z.infer<typeof resolutionReasonSchema>;\nexport type ListeningTriggerDto = z.infer<typeof listeningTriggerSchema>;\nexport type JobListeningDto = z.infer<typeof jobListeningSchema>;\nexport type WorkflowExecutionEventDto = z.infer<typeof workflowExecutionEventSchema>;\nexport type WorkflowExecutionContextDto = z.infer<typeof workflowExecutionContextSchema>;\nexport type TriggerEventsBatchDto = z.infer<typeof triggerEventsBatchSchema>;\n"],"names":["z","jobModeSchema","enum","listenerStatusSchema","resolutionReasonSchema","listeningTriggerSchema","object","source","string","event","inputs","record","unknown","optional","filter","jobListeningBatchSchema","debounce_ms","number","int","positive","max_size","max_wait_ms","jobListeningSchema","on","array","min","until","nullable","timeout_ms","max_executions","batch","on_resolve","execution_timeout_ms","name","workflowExecutionEventSchema","delivery_id","received_at","data","workflowExecutionContextSchema","index","nonnegative","status","started_at","finished_at","events","triggerEventsBatchSchema"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,gBAAgBD,EAAEE,IAAI,CAAC;IAAC;IAAY;CAAY,EAAE;AAC/D,OAAO,MAAMC,uBAAuBH,EAAEE,IAAI,CAAC;IAAC;IAAY;IAAa;CAAW,EAAE;AAClF,OAAO,MAAME,yBAAyBJ,EAAEE,IAAI,CAAC;IAAC;IAAS;IAAW;IAAkB;CAAY,EAAE;AAElG,OAAO,MAAMG,yBAAyBL,EAAEM,MAAM,CAAC;IAC7CC,QAAQP,EAAEQ,MAAM;IAChBC,OAAOT,EAAEQ,MAAM;IACfE,QAAQV,EAAEW,MAAM,CAACX,EAAEQ,MAAM,IAAIR,EAAEY,OAAO,IAAIC,QAAQ;IAClDC,QAAQd,EAAEQ,MAAM,GAAGK,QAAQ;AAC7B,GAAG;AAEH,OAAO,MAAME,0BAA0Bf,EAAEM,MAAM,CAAC;IAC9CU,aAAahB,EAAEiB,MAAM,GAAGC,GAAG,GAAGC,QAAQ,GAAGN,QAAQ;IACjDO,UAAUpB,EAAEiB,MAAM,GAAGC,GAAG,GAAGC,QAAQ,GAAGN,QAAQ;IAC9CQ,aAAarB,EAAEiB,MAAM,GAAGC,GAAG,GAAGC,QAAQ,GAAGN,QAAQ;AACnD,GAAG;AAEH,OAAO,MAAMS,qBAAqBtB,EAAEM,MAAM,CAAC;IACzCiB,IAAIvB,EAAEwB,KAAK,CAACnB,wBAAwBoB,GAAG,CAAC;IACxCC,OAAO1B,EAAEwB,KAAK,CAACnB,wBAAwBoB,GAAG,CAAC,GAAGE,QAAQ;IACtDC,YAAY5B,EAAEiB,MAAM,GAAGC,GAAG,GAAGC,QAAQ,GAAGQ,QAAQ;IAChDE,gBAAgB7B,EAAEiB,MAAM,GAAGC,GAAG,GAAGC,QAAQ,GAAGQ,QAAQ;IACpDG,OAAOf,wBAAwBY,QAAQ;IACvCI,YAAY/B,EAAEE,IAAI,CAAC;QAAC;QAAU;KAAS;IACvC8B,sBAAsBhC,EAAEiB,MAAM,GAAGC,GAAG,GAAGC,QAAQ,GAAGQ,QAAQ;IAC1DM,MAAMjC,EAAEQ,MAAM,GAAGmB,QAAQ;AAC3B,GAAG;AAEH,OAAO,MAAMO,+BAA+BlC,EAAEM,MAAM,CAAC;IACnDC,QAAQP,EAAEQ,MAAM;IAChBC,OAAOT,EAAEQ,MAAM;IACf2B,aAAanC,EAAEQ,MAAM;IACrB4B,aAAapC,EAAEQ,MAAM;IACrB6B,
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/job-listening.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const jobModeSchema = z.enum(['one_shot', 'listening']);\nexport const listenerStatusSchema = z.enum(['inactive', 'listening', 'resolved']);\nexport const resolutionReasonSchema = z.enum(['until', 'timeout', 'max_executions', 'cancelled']);\n\nexport const listeningTriggerSchema = z.object({\n source: z.string(),\n event: z.string(),\n inputs: z.record(z.string(), z.unknown()).optional(),\n filter: z.string().optional(),\n});\n\nexport const jobListeningBatchSchema = z.object({\n debounce_ms: z.number().int().positive().optional(),\n max_size: z.number().int().positive().optional(),\n max_wait_ms: z.number().int().positive().optional(),\n});\n\nexport const jobListeningSchema = z.object({\n on: z.array(listeningTriggerSchema).min(1),\n until: z.array(listeningTriggerSchema).min(1).nullable(),\n timeout_ms: z.number().int().positive().nullable(),\n max_executions: z.number().int().positive().nullable(),\n batch: jobListeningBatchSchema.nullable(),\n on_resolve: z.enum(['finish', 'cancel']),\n execution_timeout_ms: z.number().int().positive().nullable(),\n name: z.string().nullable(),\n});\n\nexport const workflowExecutionEventSchema = z.object({\n source: z.string(),\n event: z.string(),\n delivery_id: z.string(),\n received_at: z.string(),\n project: z.object({id: z.string().uuid()}).nullable(),\n repository: z.string().nullable(),\n ref: z.string().nullable(),\n commit: z.string().nullable(),\n data: z.unknown(),\n});\n\nexport const workflowExecutionContextSchema = z.object({\n index: z.number().int().nonnegative(),\n name: z.string(),\n status: z.string(),\n started_at: z.string().nullable(),\n finished_at: z.string().nullable(),\n events: z.array(workflowExecutionEventSchema),\n});\n\nexport const triggerEventsBatchSchema = z.object({\n events: z.array(workflowExecutionEventSchema),\n});\n\nexport type JobModeDto = z.infer<typeof jobModeSchema>;\nexport type ListenerStatusDto = z.infer<typeof listenerStatusSchema>;\nexport type ResolutionReasonDto = z.infer<typeof resolutionReasonSchema>;\nexport type ListeningTriggerDto = z.infer<typeof listeningTriggerSchema>;\nexport type JobListeningDto = z.infer<typeof jobListeningSchema>;\nexport type WorkflowExecutionEventDto = z.infer<typeof workflowExecutionEventSchema>;\nexport type WorkflowExecutionContextDto = z.infer<typeof workflowExecutionContextSchema>;\nexport type TriggerEventsBatchDto = z.infer<typeof triggerEventsBatchSchema>;\n"],"names":["z","jobModeSchema","enum","listenerStatusSchema","resolutionReasonSchema","listeningTriggerSchema","object","source","string","event","inputs","record","unknown","optional","filter","jobListeningBatchSchema","debounce_ms","number","int","positive","max_size","max_wait_ms","jobListeningSchema","on","array","min","until","nullable","timeout_ms","max_executions","batch","on_resolve","execution_timeout_ms","name","workflowExecutionEventSchema","delivery_id","received_at","project","id","uuid","repository","ref","commit","data","workflowExecutionContextSchema","index","nonnegative","status","started_at","finished_at","events","triggerEventsBatchSchema"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,gBAAgBD,EAAEE,IAAI,CAAC;IAAC;IAAY;CAAY,EAAE;AAC/D,OAAO,MAAMC,uBAAuBH,EAAEE,IAAI,CAAC;IAAC;IAAY;IAAa;CAAW,EAAE;AAClF,OAAO,MAAME,yBAAyBJ,EAAEE,IAAI,CAAC;IAAC;IAAS;IAAW;IAAkB;CAAY,EAAE;AAElG,OAAO,MAAMG,yBAAyBL,EAAEM,MAAM,CAAC;IAC7CC,QAAQP,EAAEQ,MAAM;IAChBC,OAAOT,EAAEQ,MAAM;IACfE,QAAQV,EAAEW,MAAM,CAACX,EAAEQ,MAAM,IAAIR,EAAEY,OAAO,IAAIC,QAAQ;IAClDC,QAAQd,EAAEQ,MAAM,GAAGK,QAAQ;AAC7B,GAAG;AAEH,OAAO,MAAME,0BAA0Bf,EAAEM,MAAM,CAAC;IAC9CU,aAAahB,EAAEiB,MAAM,GAAGC,GAAG,GAAGC,QAAQ,GAAGN,QAAQ;IACjDO,UAAUpB,EAAEiB,MAAM,GAAGC,GAAG,GAAGC,QAAQ,GAAGN,QAAQ;IAC9CQ,aAAarB,EAAEiB,MAAM,GAAGC,GAAG,GAAGC,QAAQ,GAAGN,QAAQ;AACnD,GAAG;AAEH,OAAO,MAAMS,qBAAqBtB,EAAEM,MAAM,CAAC;IACzCiB,IAAIvB,EAAEwB,KAAK,CAACnB,wBAAwBoB,GAAG,CAAC;IACxCC,OAAO1B,EAAEwB,KAAK,CAACnB,wBAAwBoB,GAAG,CAAC,GAAGE,QAAQ;IACtDC,YAAY5B,EAAEiB,MAAM,GAAGC,GAAG,GAAGC,QAAQ,GAAGQ,QAAQ;IAChD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ZodEnum<{
|
|
|
10
10
|
output_invalid: "output_invalid";
|
|
11
11
|
agent_config_invalid: "agent_config_invalid";
|
|
12
12
|
agent_invocation_failed: "agent_invocation_failed";
|
|
13
|
+
agent_harness_unavailable: "agent_harness_unavailable";
|
|
13
14
|
}>;
|
|
14
15
|
export type StepErrorReasonDto = z.infer<typeof stepErrorReasonSchema>;
|
|
15
16
|
export declare const agentConfigIssueSchema: z.ZodEnum<{
|
|
@@ -41,6 +42,7 @@ export declare const stepErrorDtoSchema: z.ZodNullable<z.ZodObject<{
|
|
|
41
42
|
output_invalid: "output_invalid";
|
|
42
43
|
agent_config_invalid: "agent_config_invalid";
|
|
43
44
|
agent_invocation_failed: "agent_invocation_failed";
|
|
45
|
+
agent_harness_unavailable: "agent_harness_unavailable";
|
|
44
46
|
}>>;
|
|
45
47
|
field: z.ZodOptional<z.ZodString>;
|
|
46
48
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -89,6 +91,7 @@ export declare const stepDtoSchema: z.ZodObject<{
|
|
|
89
91
|
output_invalid: "output_invalid";
|
|
90
92
|
agent_config_invalid: "agent_config_invalid";
|
|
91
93
|
agent_invocation_failed: "agent_invocation_failed";
|
|
94
|
+
agent_harness_unavailable: "agent_harness_unavailable";
|
|
92
95
|
}>>;
|
|
93
96
|
field: z.ZodOptional<z.ZodString>;
|
|
94
97
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -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;
|
|
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,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shooting. The runner
|
|
3
3
|
// reports it and the server stores it as-is. The `checkout_*`, `git_unavailable`,
|
|
4
4
|
// `workspace_prep_failed`, and `setup_aborted` values cover setup-phase failures.
|
|
5
|
-
// For agent steps the cause is split: `agent_config_invalid` is a user-fixable
|
|
6
|
-
// configuration error
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
5
|
+
// For agent steps the cause is split three ways: `agent_config_invalid` is a user-fixable
|
|
6
|
+
// configuration error and carries an `agent_config_issue`; `agent_invocation_failed`
|
|
7
|
+
// covers a provider/API failure once the configuration is valid; and
|
|
8
|
+
// `agent_harness_unavailable` means the runner could not start its harness, so the model
|
|
9
|
+
// was never called. The latter carries no `agent_config_issue`, because every issue code
|
|
10
|
+
// names a user-fixable cause. (Aborts are never reported: the step loop stops before reporting.)
|
|
10
11
|
export const stepErrorReasonSchema = z.enum([
|
|
11
12
|
'checkout_failed',
|
|
12
13
|
'checkout_auth_failed',
|
|
@@ -17,7 +18,8 @@ export const stepErrorReasonSchema = z.enum([
|
|
|
17
18
|
'config_unresolvable',
|
|
18
19
|
'output_invalid',
|
|
19
20
|
'agent_config_invalid',
|
|
20
|
-
'agent_invocation_failed'
|
|
21
|
+
'agent_invocation_failed',
|
|
22
|
+
'agent_harness_unavailable'
|
|
21
23
|
]);
|
|
22
24
|
export const agentConfigIssueSchema = z.enum([
|
|
23
25
|
'step_config_invalid',
|
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: `agent_config_invalid` is a user-fixable\n// configuration error (unknown provider, missing provider credentials on the runner,\n// wrong provider/model pair, missing model or prompt), while `agent_invocation_failed`\n// covers a genuine provider/API failure once the config is valid (network, 5xx, auth\n// rejected at call time). (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]);\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,+EAA+E;AAC/E,qFAAqF;AACrF,uFAAuF;AACvF,qFAAqF;AACrF,6FAA6F;AAC7F,OAAO,MAAMC,wBAAwBD,EAAEE,IAAI,CAAC;IAC1C;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,WAAWX,EAAEY,MAAM,GAA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;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 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,OAAO,MAAMG,gCAAgC,KAAK;AAElD,OAAO,MAAMC,qBAAqBN,EAC/BO,MAAM,CAAC;IACNC,SAASR,EAAES,MAAM,GAAGC,GAAG,CAACL;IACxBM,WAAWX,EAAEY,MAAM,GAAGC,GAAG,GAAGC,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C,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"}
|
|
@@ -24,6 +24,12 @@ export declare const jobExecutionDtoSchema: z.ZodObject<{
|
|
|
24
24
|
event: z.ZodString;
|
|
25
25
|
delivery_id: z.ZodString;
|
|
26
26
|
received_at: z.ZodString;
|
|
27
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
31
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
32
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
27
33
|
data: z.ZodUnknown;
|
|
28
34
|
}, z.core.$strip>>>;
|
|
29
35
|
outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -62,6 +68,7 @@ export declare const workflowRunStepDetailDtoSchema: z.ZodObject<{
|
|
|
62
68
|
output_invalid: "output_invalid";
|
|
63
69
|
agent_config_invalid: "agent_config_invalid";
|
|
64
70
|
agent_invocation_failed: "agent_invocation_failed";
|
|
71
|
+
agent_harness_unavailable: "agent_harness_unavailable";
|
|
65
72
|
}>>;
|
|
66
73
|
field: z.ZodOptional<z.ZodString>;
|
|
67
74
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -175,6 +182,12 @@ export declare const workflowRunJobExecutionDetailDtoSchema: z.ZodObject<{
|
|
|
175
182
|
event: z.ZodString;
|
|
176
183
|
delivery_id: z.ZodString;
|
|
177
184
|
received_at: z.ZodString;
|
|
185
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
186
|
+
id: z.ZodString;
|
|
187
|
+
}, z.core.$strip>>;
|
|
188
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
189
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
190
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
178
191
|
data: z.ZodUnknown;
|
|
179
192
|
}, z.core.$strip>>>;
|
|
180
193
|
outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -211,6 +224,7 @@ export declare const workflowRunJobExecutionDetailDtoSchema: z.ZodObject<{
|
|
|
211
224
|
output_invalid: "output_invalid";
|
|
212
225
|
agent_config_invalid: "agent_config_invalid";
|
|
213
226
|
agent_invocation_failed: "agent_invocation_failed";
|
|
227
|
+
agent_harness_unavailable: "agent_harness_unavailable";
|
|
214
228
|
}>>;
|
|
215
229
|
field: z.ZodOptional<z.ZodString>;
|
|
216
230
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -399,6 +413,12 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
|
|
|
399
413
|
event: z.ZodString;
|
|
400
414
|
delivery_id: z.ZodString;
|
|
401
415
|
received_at: z.ZodString;
|
|
416
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
417
|
+
id: z.ZodString;
|
|
418
|
+
}, z.core.$strip>>;
|
|
419
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
420
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
421
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
402
422
|
data: z.ZodUnknown;
|
|
403
423
|
}, z.core.$strip>>>;
|
|
404
424
|
outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -435,6 +455,7 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
|
|
|
435
455
|
output_invalid: "output_invalid";
|
|
436
456
|
agent_config_invalid: "agent_config_invalid";
|
|
437
457
|
agent_invocation_failed: "agent_invocation_failed";
|
|
458
|
+
agent_harness_unavailable: "agent_harness_unavailable";
|
|
438
459
|
}>>;
|
|
439
460
|
field: z.ZodOptional<z.ZodString>;
|
|
440
461
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -536,7 +557,9 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
536
557
|
id: z.ZodString;
|
|
537
558
|
project_id: z.ZodString;
|
|
538
559
|
definition_id: z.ZodString;
|
|
560
|
+
number: z.ZodNumber;
|
|
539
561
|
name: z.ZodString;
|
|
562
|
+
workflow_name: z.ZodString;
|
|
540
563
|
status: z.ZodEnum<{
|
|
541
564
|
cancelled: "cancelled";
|
|
542
565
|
pending: "pending";
|
|
@@ -550,6 +573,12 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
550
573
|
trigger_source: z.ZodString;
|
|
551
574
|
trigger_event: z.ZodString;
|
|
552
575
|
trigger_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
576
|
+
trigger_reference: z.ZodNullable<z.ZodObject<{
|
|
577
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
578
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
579
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
580
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
581
|
+
}, z.core.$strip>>;
|
|
553
582
|
inputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
554
583
|
source_snapshot: z.ZodNullable<z.ZodObject<{
|
|
555
584
|
content: z.ZodString;
|
|
@@ -670,6 +699,12 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
670
699
|
event: z.ZodString;
|
|
671
700
|
delivery_id: z.ZodString;
|
|
672
701
|
received_at: z.ZodString;
|
|
702
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
703
|
+
id: z.ZodString;
|
|
704
|
+
}, z.core.$strip>>;
|
|
705
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
706
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
707
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
673
708
|
data: z.ZodUnknown;
|
|
674
709
|
}, z.core.$strip>>>;
|
|
675
710
|
outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -706,6 +741,7 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
706
741
|
output_invalid: "output_invalid";
|
|
707
742
|
agent_config_invalid: "agent_config_invalid";
|
|
708
743
|
agent_invocation_failed: "agent_invocation_failed";
|
|
744
|
+
agent_harness_unavailable: "agent_harness_unavailable";
|
|
709
745
|
}>>;
|
|
710
746
|
field: z.ZodOptional<z.ZodString>;
|
|
711
747
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -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
|
|
1
|
+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C;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAIpF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG1C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -56,11 +56,20 @@ export declare const workflowSourceSnapshotSchema: z.ZodObject<{
|
|
|
56
56
|
format: z.ZodLiteral<"yaml">;
|
|
57
57
|
}, z.core.$strip>;
|
|
58
58
|
export type WorkflowSourceSnapshotDto = z.infer<typeof workflowSourceSnapshotSchema>;
|
|
59
|
+
export declare const workflowRunTriggerReferenceSchema: z.ZodObject<{
|
|
60
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
61
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
62
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
63
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export type WorkflowRunTriggerReferenceDto = z.infer<typeof workflowRunTriggerReferenceSchema>;
|
|
59
66
|
export declare const workflowRunDtoSchema: z.ZodObject<{
|
|
60
67
|
id: z.ZodString;
|
|
61
68
|
project_id: z.ZodString;
|
|
62
69
|
definition_id: z.ZodString;
|
|
70
|
+
number: z.ZodNumber;
|
|
63
71
|
name: z.ZodString;
|
|
72
|
+
workflow_name: z.ZodString;
|
|
64
73
|
status: z.ZodEnum<{
|
|
65
74
|
cancelled: "cancelled";
|
|
66
75
|
pending: "pending";
|
|
@@ -74,6 +83,12 @@ export declare const workflowRunDtoSchema: z.ZodObject<{
|
|
|
74
83
|
trigger_source: z.ZodString;
|
|
75
84
|
trigger_event: z.ZodString;
|
|
76
85
|
trigger_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
86
|
+
trigger_reference: z.ZodNullable<z.ZodObject<{
|
|
87
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
88
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
89
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
90
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
91
|
+
}, z.core.$strip>>;
|
|
77
92
|
inputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
78
93
|
source_snapshot: z.ZodNullable<z.ZodObject<{
|
|
79
94
|
content: z.ZodString;
|
|
@@ -109,7 +124,9 @@ export declare const workflowRunResponseSchema: z.ZodObject<{
|
|
|
109
124
|
id: z.ZodString;
|
|
110
125
|
project_id: z.ZodString;
|
|
111
126
|
definition_id: z.ZodString;
|
|
127
|
+
number: z.ZodNumber;
|
|
112
128
|
name: z.ZodString;
|
|
129
|
+
workflow_name: z.ZodString;
|
|
113
130
|
status: z.ZodEnum<{
|
|
114
131
|
cancelled: "cancelled";
|
|
115
132
|
pending: "pending";
|
|
@@ -123,6 +140,12 @@ export declare const workflowRunResponseSchema: z.ZodObject<{
|
|
|
123
140
|
trigger_source: z.ZodString;
|
|
124
141
|
trigger_event: z.ZodString;
|
|
125
142
|
trigger_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
143
|
+
trigger_reference: z.ZodNullable<z.ZodObject<{
|
|
144
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
145
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
146
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
147
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
126
149
|
inputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
127
150
|
source_snapshot: z.ZodNullable<z.ZodObject<{
|
|
128
151
|
content: z.ZodString;
|
|
@@ -156,12 +179,113 @@ export declare const workflowRunAttemptsResponseSchema: z.ZodObject<{
|
|
|
156
179
|
}, z.core.$strip>>;
|
|
157
180
|
}, z.core.$strip>;
|
|
158
181
|
export type WorkflowRunAttemptsResponseDto = z.infer<typeof workflowRunAttemptsResponseSchema>;
|
|
182
|
+
export declare const workflowRunJobSummaryDtoSchema: z.ZodObject<{
|
|
183
|
+
id: z.ZodString;
|
|
184
|
+
key: z.ZodString;
|
|
185
|
+
name: z.ZodNullable<z.ZodString>;
|
|
186
|
+
status: z.ZodEnum<{
|
|
187
|
+
cancelled: "cancelled";
|
|
188
|
+
pending: "pending";
|
|
189
|
+
running: "running";
|
|
190
|
+
succeeded: "succeeded";
|
|
191
|
+
failed: "failed";
|
|
192
|
+
skipped: "skipped";
|
|
193
|
+
}>;
|
|
194
|
+
position: z.ZodNumber;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
export type WorkflowRunJobSummaryDto = z.infer<typeof workflowRunJobSummaryDtoSchema>;
|
|
197
|
+
/**
|
|
198
|
+
* How many jobs a run list row carries in graph order.
|
|
199
|
+
*
|
|
200
|
+
* A workflow has no job limit, and the list is polled while runs are active, so the row
|
|
201
|
+
* cannot carry every job of every run on the page. This bound is the API's, deliberately set
|
|
202
|
+
* above what any current surface draws: a client is free to show fewer without a server
|
|
203
|
+
* change, and `job_status_counts` still describes the jobs beyond it.
|
|
204
|
+
*/
|
|
205
|
+
export declare const WORKFLOW_RUN_JOB_PREVIEW_LIMIT = 16;
|
|
206
|
+
/** One status and how many of the run's jobs hold it, counted over all of them. */
|
|
207
|
+
export declare const workflowRunJobStatusCountDtoSchema: z.ZodObject<{
|
|
208
|
+
status: z.ZodEnum<{
|
|
209
|
+
cancelled: "cancelled";
|
|
210
|
+
pending: "pending";
|
|
211
|
+
running: "running";
|
|
212
|
+
succeeded: "succeeded";
|
|
213
|
+
failed: "failed";
|
|
214
|
+
skipped: "skipped";
|
|
215
|
+
}>;
|
|
216
|
+
count: z.ZodNumber;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
export type WorkflowRunJobStatusCountDto = z.infer<typeof workflowRunJobStatusCountDtoSchema>;
|
|
219
|
+
export declare const workflowRunListItemSchema: z.ZodObject<{
|
|
220
|
+
id: z.ZodString;
|
|
221
|
+
project_id: z.ZodString;
|
|
222
|
+
definition_id: z.ZodString;
|
|
223
|
+
number: z.ZodNumber;
|
|
224
|
+
name: z.ZodString;
|
|
225
|
+
workflow_name: z.ZodString;
|
|
226
|
+
status: z.ZodEnum<{
|
|
227
|
+
cancelled: "cancelled";
|
|
228
|
+
pending: "pending";
|
|
229
|
+
running: "running";
|
|
230
|
+
succeeded: "succeeded";
|
|
231
|
+
failed: "failed";
|
|
232
|
+
}>;
|
|
233
|
+
current_attempt: z.ZodNumber;
|
|
234
|
+
latest_attempt: z.ZodNumber;
|
|
235
|
+
trigger_provider: z.ZodNullable<z.ZodString>;
|
|
236
|
+
trigger_source: z.ZodString;
|
|
237
|
+
trigger_event: z.ZodString;
|
|
238
|
+
trigger_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
239
|
+
trigger_reference: z.ZodNullable<z.ZodObject<{
|
|
240
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
241
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
242
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
243
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
244
|
+
}, z.core.$strip>>;
|
|
245
|
+
inputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
246
|
+
source_snapshot: z.ZodNullable<z.ZodObject<{
|
|
247
|
+
content: z.ZodString;
|
|
248
|
+
format: z.ZodLiteral<"yaml">;
|
|
249
|
+
}, z.core.$strip>>;
|
|
250
|
+
created_at: z.ZodString;
|
|
251
|
+
updated_at: z.ZodString;
|
|
252
|
+
started_at: z.ZodNullable<z.ZodString>;
|
|
253
|
+
finished_at: z.ZodNullable<z.ZodString>;
|
|
254
|
+
jobs: z.ZodArray<z.ZodObject<{
|
|
255
|
+
id: z.ZodString;
|
|
256
|
+
key: z.ZodString;
|
|
257
|
+
name: z.ZodNullable<z.ZodString>;
|
|
258
|
+
status: z.ZodEnum<{
|
|
259
|
+
cancelled: "cancelled";
|
|
260
|
+
pending: "pending";
|
|
261
|
+
running: "running";
|
|
262
|
+
succeeded: "succeeded";
|
|
263
|
+
failed: "failed";
|
|
264
|
+
skipped: "skipped";
|
|
265
|
+
}>;
|
|
266
|
+
position: z.ZodNumber;
|
|
267
|
+
}, z.core.$strip>>;
|
|
268
|
+
job_status_counts: z.ZodArray<z.ZodObject<{
|
|
269
|
+
status: z.ZodEnum<{
|
|
270
|
+
cancelled: "cancelled";
|
|
271
|
+
pending: "pending";
|
|
272
|
+
running: "running";
|
|
273
|
+
succeeded: "succeeded";
|
|
274
|
+
failed: "failed";
|
|
275
|
+
skipped: "skipped";
|
|
276
|
+
}>;
|
|
277
|
+
count: z.ZodNumber;
|
|
278
|
+
}, z.core.$strip>>;
|
|
279
|
+
}, z.core.$strip>;
|
|
280
|
+
export type WorkflowRunListItemDto = z.infer<typeof workflowRunListItemSchema>;
|
|
159
281
|
export declare const workflowRunListResponseSchema: z.ZodObject<{
|
|
160
282
|
runs: z.ZodArray<z.ZodObject<{
|
|
161
283
|
id: z.ZodString;
|
|
162
284
|
project_id: z.ZodString;
|
|
163
285
|
definition_id: z.ZodString;
|
|
286
|
+
number: z.ZodNumber;
|
|
164
287
|
name: z.ZodString;
|
|
288
|
+
workflow_name: z.ZodString;
|
|
165
289
|
status: z.ZodEnum<{
|
|
166
290
|
cancelled: "cancelled";
|
|
167
291
|
pending: "pending";
|
|
@@ -175,6 +299,12 @@ export declare const workflowRunListResponseSchema: z.ZodObject<{
|
|
|
175
299
|
trigger_source: z.ZodString;
|
|
176
300
|
trigger_event: z.ZodString;
|
|
177
301
|
trigger_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
302
|
+
trigger_reference: z.ZodNullable<z.ZodObject<{
|
|
303
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
304
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
305
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
306
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
307
|
+
}, z.core.$strip>>;
|
|
178
308
|
inputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
179
309
|
source_snapshot: z.ZodNullable<z.ZodObject<{
|
|
180
310
|
content: z.ZodString;
|
|
@@ -184,6 +314,31 @@ export declare const workflowRunListResponseSchema: z.ZodObject<{
|
|
|
184
314
|
updated_at: z.ZodString;
|
|
185
315
|
started_at: z.ZodNullable<z.ZodString>;
|
|
186
316
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
317
|
+
jobs: z.ZodArray<z.ZodObject<{
|
|
318
|
+
id: z.ZodString;
|
|
319
|
+
key: z.ZodString;
|
|
320
|
+
name: z.ZodNullable<z.ZodString>;
|
|
321
|
+
status: z.ZodEnum<{
|
|
322
|
+
cancelled: "cancelled";
|
|
323
|
+
pending: "pending";
|
|
324
|
+
running: "running";
|
|
325
|
+
succeeded: "succeeded";
|
|
326
|
+
failed: "failed";
|
|
327
|
+
skipped: "skipped";
|
|
328
|
+
}>;
|
|
329
|
+
position: z.ZodNumber;
|
|
330
|
+
}, z.core.$strip>>;
|
|
331
|
+
job_status_counts: z.ZodArray<z.ZodObject<{
|
|
332
|
+
status: z.ZodEnum<{
|
|
333
|
+
cancelled: "cancelled";
|
|
334
|
+
pending: "pending";
|
|
335
|
+
running: "running";
|
|
336
|
+
succeeded: "succeeded";
|
|
337
|
+
failed: "failed";
|
|
338
|
+
skipped: "skipped";
|
|
339
|
+
}>;
|
|
340
|
+
count: z.ZodNumber;
|
|
341
|
+
}, z.core.$strip>>;
|
|
187
342
|
}, z.core.$strip>>;
|
|
188
343
|
next_cursor: z.ZodNullable<z.ZodString>;
|
|
189
344
|
filtered_total_count: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-run.d.ts","sourceRoot":"","sources":["../../src/schemas/workflow-run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow-run.d.ts","sourceRoot":"","sources":["../../src/schemas/workflow-run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,uBAAuB;;;;;;EAMlC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,0BAA0B;;;EAA4B,CAAC;AAEpE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEjF,eAAO,MAAM,0BAA0B;;;;;iBAErC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAwCjF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;iBAAyD,CAAC;AAEjG,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEjF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;iBAEX,CAAC;AAEnC,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE7F,eAAO,MAAM,4BAA4B;;;iBAGvC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAA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