@shipfox/api-definitions 12.3.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipfox/api-definitions",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "13.1.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/ShipfoxHQ/shipfox.git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"js-yaml": "^4.1.0",
|
|
27
27
|
"yaml": "^2.8.3",
|
|
28
28
|
"zod": "^4.4.3",
|
|
29
|
-
"@shipfox/api-agent-dto": "
|
|
29
|
+
"@shipfox/api-agent-dto": "13.1.0",
|
|
30
30
|
"@shipfox/api-auth-context": "12.2.0",
|
|
31
31
|
"@shipfox/api-definitions-dto": "12.3.0",
|
|
32
32
|
"@shipfox/api-integration-core-dto": "12.2.0",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type {AgentValidationCatalog} from '@shipfox/api-agent-dto/inter-module';
|
|
1
2
|
import type {WorkflowDocument} from '@shipfox/workflow-document';
|
|
2
3
|
import {agentValidationCatalog} from '#test/agent-validation-catalog.js';
|
|
3
4
|
import type {IntegrationValidationContext} from '../entities/integration-context.js';
|
|
@@ -4985,6 +4986,55 @@ describe('normalizeWorkflowDocument', () => {
|
|
|
4985
4986
|
]);
|
|
4986
4987
|
});
|
|
4987
4988
|
|
|
4989
|
+
it('accepts a managed provider on Claude when the catalog exposes an Anthropic model', () => {
|
|
4990
|
+
const providerId = 'shipfox-managed';
|
|
4991
|
+
const managedCatalog: AgentValidationCatalog = {
|
|
4992
|
+
...agentValidationCatalog,
|
|
4993
|
+
providers: [
|
|
4994
|
+
...agentValidationCatalog.providers,
|
|
4995
|
+
{id: providerId, support_status: 'supported'},
|
|
4996
|
+
],
|
|
4997
|
+
harnesses: agentValidationCatalog.harnesses.map((harness) =>
|
|
4998
|
+
harness.id === 'claude'
|
|
4999
|
+
? {
|
|
5000
|
+
...harness,
|
|
5001
|
+
supported_provider_ids: [...harness.supported_provider_ids, providerId],
|
|
5002
|
+
model_ids_by_provider: {
|
|
5003
|
+
...harness.model_ids_by_provider,
|
|
5004
|
+
[providerId]: ['managed-claude'],
|
|
5005
|
+
},
|
|
5006
|
+
}
|
|
5007
|
+
: harness,
|
|
5008
|
+
),
|
|
5009
|
+
};
|
|
5010
|
+
|
|
5011
|
+
const model = normalizeWorkflowDocument(
|
|
5012
|
+
{
|
|
5013
|
+
name: 'managed Claude provider',
|
|
5014
|
+
jobs: {
|
|
5015
|
+
fix: {
|
|
5016
|
+
steps: [
|
|
5017
|
+
{
|
|
5018
|
+
harness: 'claude',
|
|
5019
|
+
provider: providerId,
|
|
5020
|
+
model: 'managed-claude',
|
|
5021
|
+
prompt: 'Fix it.',
|
|
5022
|
+
},
|
|
5023
|
+
],
|
|
5024
|
+
},
|
|
5025
|
+
},
|
|
5026
|
+
},
|
|
5027
|
+
{agentValidationCatalog: managedCatalog},
|
|
5028
|
+
);
|
|
5029
|
+
|
|
5030
|
+
expect(model.jobs[0]?.steps[0]).toMatchObject({
|
|
5031
|
+
kind: 'agent',
|
|
5032
|
+
harness: 'claude',
|
|
5033
|
+
provider: providerId,
|
|
5034
|
+
model: 'managed-claude',
|
|
5035
|
+
});
|
|
5036
|
+
});
|
|
5037
|
+
|
|
4988
5038
|
it('reports typed interpolation expression errors for trusted known contexts', () => {
|
|
4989
5039
|
const document: WorkflowDocument = {
|
|
4990
5040
|
name: 'bad trusted path',
|