@shipfox/api-workflows 9.3.0 → 10.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipfox/api-workflows",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "10.1.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/ShipfoxHQ/shipfox.git",
|
|
@@ -22,23 +22,23 @@
|
|
|
22
22
|
"@temporalio/workflow": "1.18.1",
|
|
23
23
|
"drizzle-orm": "^0.45.2",
|
|
24
24
|
"zod": "^4.4.3",
|
|
25
|
-
"@shipfox/api-auth-context": "
|
|
26
|
-
"@shipfox/api-auth-dto": "
|
|
27
|
-
"@shipfox/api-agent-dto": "
|
|
25
|
+
"@shipfox/api-auth-context": "10.1.0",
|
|
26
|
+
"@shipfox/api-auth-dto": "10.1.0",
|
|
27
|
+
"@shipfox/api-agent-dto": "10.0.0",
|
|
28
28
|
"@shipfox/annotations-dto": "9.0.2",
|
|
29
|
-
"@shipfox/api-definitions-dto": "
|
|
30
|
-
"@shipfox/api-projects-dto": "
|
|
29
|
+
"@shipfox/api-definitions-dto": "10.0.0",
|
|
30
|
+
"@shipfox/api-projects-dto": "10.1.0",
|
|
31
31
|
"@shipfox/api-integration-core-dto": "9.0.2",
|
|
32
|
-
"@shipfox/api-runners-dto": "
|
|
32
|
+
"@shipfox/api-runners-dto": "10.0.0",
|
|
33
33
|
"@shipfox/api-secrets-dto": "9.0.2",
|
|
34
|
-
"@shipfox/api-workflows-dto": "
|
|
35
|
-
"@shipfox/api-workspaces-dto": "
|
|
34
|
+
"@shipfox/api-workflows-dto": "10.0.0",
|
|
35
|
+
"@shipfox/api-workspaces-dto": "10.0.0",
|
|
36
36
|
"@shipfox/inter-module": "0.2.2",
|
|
37
|
-
"@shipfox/expression": "1.
|
|
37
|
+
"@shipfox/expression": "1.2.0",
|
|
38
38
|
"@shipfox/node-drizzle": "0.3.4",
|
|
39
39
|
"@shipfox/node-error-monitoring": "0.3.0",
|
|
40
|
-
"@shipfox/node-fastify": "0.
|
|
41
|
-
"@shipfox/node-module": "1.0.
|
|
40
|
+
"@shipfox/node-fastify": "0.4.0",
|
|
41
|
+
"@shipfox/node-module": "1.0.4",
|
|
42
42
|
"@shipfox/node-opentelemetry": "0.6.3",
|
|
43
43
|
"@shipfox/node-outbox": "0.2.6",
|
|
44
44
|
"@shipfox/node-postgres": "0.4.4",
|
|
@@ -49,6 +49,26 @@ describe('fromStepErrorDto', () => {
|
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
+
it('round-trips an agent harness availability failure without inventing an issue code', () => {
|
|
53
|
+
const persisted = fromStepErrorDto({
|
|
54
|
+
message: 'Pi extension setup failed: Unknown option: --mcp-config',
|
|
55
|
+
reason: 'agent_harness_unavailable',
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
expect(persisted).toEqual({
|
|
59
|
+
message: 'Pi extension setup failed: Unknown option: --mcp-config',
|
|
60
|
+
reason: 'agent_harness_unavailable',
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
const dto = toStepDto(step({type: 'agent', error: persisted}));
|
|
64
|
+
|
|
65
|
+
expect(dto.error).toEqual({
|
|
66
|
+
message: 'Pi extension setup failed: Unknown option: --mcp-config',
|
|
67
|
+
reason: 'agent_harness_unavailable',
|
|
68
|
+
category: 'user',
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
|
|
52
72
|
it('persists config error field and source diagnostics', () => {
|
|
53
73
|
const persisted = fromStepErrorDto({
|
|
54
74
|
message: 'Could not resolve env.VERSION',
|
|
@@ -41,4 +41,7 @@ export const runnersTestClient: RunnersInterModuleClient = {
|
|
|
41
41
|
getLeaseState: async (params) => ({active: activeLeases.has(leaseKey(params))}),
|
|
42
42
|
getEffectiveRunnerToolCapabilities: async ({runnerSessionId}) =>
|
|
43
43
|
toolCapabilities.get(runnerSessionId) ?? {capabilities: {harnesses: {}}, reportFresh: false},
|
|
44
|
+
getWorkspaceJobCounts: async ({workspaceIds}) => ({
|
|
45
|
+
counts: workspaceIds.map((workspaceId) => ({workspaceId, queued: 0, running: 0})),
|
|
46
|
+
}),
|
|
44
47
|
};
|