@shipfox/api-workflows-dto 13.0.0 → 13.1.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/schemas/job-execution.d.ts +4 -0
- package/dist/schemas/job-execution.d.ts.map +1 -1
- package/dist/schemas/step.d.ts +4 -0
- package/dist/schemas/step.d.ts.map +1 -1
- package/dist/schemas/step.js +2 -0
- package/dist/schemas/step.js.map +1 -1
- package/dist/schemas/workflow-run-detail.d.ts +8 -0
- package/dist/schemas/workflow-run-detail.d.ts.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/schemas/step.test.ts +15 -0
- package/src/schemas/step.ts +2 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipfox/api-workflows-dto",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "13.
|
|
4
|
+
"version": "13.1.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/ShipfoxHQ/shipfox.git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"zod": "^4.4.3",
|
|
26
|
-
"@shipfox/api-agent-dto": "
|
|
26
|
+
"@shipfox/api-agent-dto": "13.1.0",
|
|
27
27
|
"@shipfox/inter-module": "0.2.3"
|
|
28
28
|
},
|
|
29
29
|
"imports": {
|
package/src/schemas/step.test.ts
CHANGED
|
@@ -53,6 +53,21 @@ describe('stepErrorDtoSchema', () => {
|
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
+
it('accepts a stable runtime error code and managed provider identity', () => {
|
|
57
|
+
const result = stepErrorDtoSchema.parse({
|
|
58
|
+
message: 'Agent runtime config request failed with status 422: workspace-providers-disabled.',
|
|
59
|
+
code: 'workspace-providers-disabled',
|
|
60
|
+
managed_provider_id: 'shipfox',
|
|
61
|
+
reason: 'agent_config_invalid',
|
|
62
|
+
agent_config_issue: 'provider_unsupported',
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
expect(result).toMatchObject({
|
|
66
|
+
code: 'workspace-providers-disabled',
|
|
67
|
+
managed_provider_id: 'shipfox',
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
56
71
|
it('accepts typed output validation failures', () => {
|
|
57
72
|
const result = stepErrorDtoSchema.parse({
|
|
58
73
|
message: 'Output "count" must be a finite number or numeric string.',
|
package/src/schemas/step.ts
CHANGED
|
@@ -59,6 +59,8 @@ export const STEP_ERROR_MESSAGE_MAX_LENGTH = 2048;
|
|
|
59
59
|
export const stepErrorDtoSchema = z
|
|
60
60
|
.object({
|
|
61
61
|
message: z.string().max(STEP_ERROR_MESSAGE_MAX_LENGTH),
|
|
62
|
+
code: z.string().min(1).optional(),
|
|
63
|
+
managed_provider_id: z.string().min(1).optional(),
|
|
62
64
|
exit_code: z.number().int().nullable().optional(),
|
|
63
65
|
signal: z.string().optional(),
|
|
64
66
|
reason: stepErrorReasonSchema.optional(),
|