@shipfox/api-agent-dto 10.0.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 +23 -0
- package/dist/inter-module.d.ts +3 -9
- package/dist/inter-module.d.ts.map +1 -1
- package/dist/inter-module.js +4 -1
- package/dist/inter-module.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/inter-module.ts +4 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$ shipfox-swc
|
|
2
|
-
Successfully compiled: 11 files with swc (
|
|
2
|
+
Successfully compiled: 11 files with swc (305.45ms)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @shipfox/api-agent-dto
|
|
2
2
|
|
|
3
|
+
## 12.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ee2ce67: Accept a `${{ }}` interpolation in an agent step's `thinking` field. The schema
|
|
8
|
+
still offers the per-harness enum for editor completion, and the dispatcher
|
|
9
|
+
checks the resolved value against the harness levels. An unsupported
|
|
10
|
+
resolved level fails the step.
|
|
11
|
+
- 28daafe: Validate literal agent model and provider values during workflow authoring.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [ee2ce67]
|
|
16
|
+
- Updated dependencies [e95fdf4]
|
|
17
|
+
- Updated dependencies [f78740d]
|
|
18
|
+
- Updated dependencies [adf07e7]
|
|
19
|
+
- Updated dependencies [3f781ee]
|
|
20
|
+
- Updated dependencies [032d316]
|
|
21
|
+
- Updated dependencies [c2a8e54]
|
|
22
|
+
- Updated dependencies [7f90b0c]
|
|
23
|
+
- @shipfox/workflow-document@3.0.0
|
|
24
|
+
- @shipfox/inter-module@0.2.3
|
|
25
|
+
|
|
3
26
|
## 10.0.0
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/inter-module.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ declare const agentValidationCatalogSchema: z.ZodObject<{
|
|
|
15
15
|
claude: "claude";
|
|
16
16
|
}>;
|
|
17
17
|
supported_provider_ids: z.ZodArray<z.ZodString>;
|
|
18
|
+
model_ids_by_provider: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
18
19
|
thinking_levels: z.ZodArray<z.ZodEnum<{
|
|
19
20
|
off: "off";
|
|
20
21
|
minimal: "minimal";
|
|
@@ -48,6 +49,7 @@ export declare const agentInterModuleContract: import("@shipfox/inter-module").I
|
|
|
48
49
|
claude: "claude";
|
|
49
50
|
}>;
|
|
50
51
|
supported_provider_ids: z.ZodArray<z.ZodString>;
|
|
52
|
+
model_ids_by_provider: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
51
53
|
thinking_levels: z.ZodArray<z.ZodEnum<{
|
|
52
54
|
off: "off";
|
|
53
55
|
minimal: "minimal";
|
|
@@ -72,15 +74,7 @@ export declare const agentInterModuleContract: import("@shipfox/inter-module").I
|
|
|
72
74
|
}>>;
|
|
73
75
|
provider: z.ZodOptional<z.ZodString>;
|
|
74
76
|
model: z.ZodOptional<z.ZodString>;
|
|
75
|
-
thinking: z.ZodOptional<z.
|
|
76
|
-
off: "off";
|
|
77
|
-
minimal: "minimal";
|
|
78
|
-
low: "low";
|
|
79
|
-
medium: "medium";
|
|
80
|
-
high: "high";
|
|
81
|
-
xhigh: "xhigh";
|
|
82
|
-
max: "max";
|
|
83
|
-
}>>;
|
|
77
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
84
78
|
}, z.core.$strip>;
|
|
85
79
|
}, z.core.$strip>;
|
|
86
80
|
readonly output: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAQtB,QAAA,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAQtB,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiBhC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAkBlF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BnC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
package/dist/inter-module.js
CHANGED
|
@@ -13,6 +13,7 @@ const agentValidationCatalogSchema = z.object({
|
|
|
13
13
|
harnesses: z.array(z.object({
|
|
14
14
|
id: harnessSchema,
|
|
15
15
|
supported_provider_ids: z.array(z.string().min(1)),
|
|
16
|
+
model_ids_by_provider: z.record(z.string().min(1), z.array(z.string().min(1))).optional(),
|
|
16
17
|
thinking_levels: z.array(agentThinkingSchema),
|
|
17
18
|
effective_tools: z.array(z.string().min(1))
|
|
18
19
|
}))
|
|
@@ -21,7 +22,9 @@ const agentConfigInputSchema = z.object({
|
|
|
21
22
|
harness: harnessSchema.optional(),
|
|
22
23
|
provider: modelProviderRefSchema.optional(),
|
|
23
24
|
model: z.string().optional(),
|
|
24
|
-
|
|
25
|
+
// A resolved template may contain any string; the agent module validates it
|
|
26
|
+
// against the resolved harness and returns the domain error if it is invalid.
|
|
27
|
+
thinking: z.string().optional()
|
|
25
28
|
});
|
|
26
29
|
const resolvedAgentConfigSchema = z.object({
|
|
27
30
|
harness: harnessSchema,
|
package/dist/inter-module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/inter-module.ts"],"sourcesContent":["import {defineInterModuleContract, type InterModuleClient} from '@shipfox/inter-module';\nimport {z} from 'zod';\nimport {\n agentRuntimeCredentialsResponseSchema,\n agentThinkingSchema,\n harnessSchema,\n modelProviderRefSchema,\n} from '#schemas/index.js';\n\nconst agentValidationCatalogSchema = z.object({\n version: z.literal(1),\n providers: z.array(\n z.object({\n id: z.string().min(1),\n support_status: z.enum(['supported', 'unsupported']),\n }),\n ),\n harnesses: z.array(\n z.object({\n id: harnessSchema,\n supported_provider_ids: z.array(z.string().min(1)),\n thinking_levels: z.array(agentThinkingSchema),\n effective_tools: z.array(z.string().min(1)),\n }),\n ),\n});\n\nexport type AgentValidationCatalog = z.infer<typeof agentValidationCatalogSchema>;\n\nconst agentConfigInputSchema = z.object({\n harness: harnessSchema.optional(),\n provider: modelProviderRefSchema.optional(),\n model: z.string().optional(),\n thinking:
|
|
1
|
+
{"version":3,"sources":["../src/inter-module.ts"],"sourcesContent":["import {defineInterModuleContract, type InterModuleClient} from '@shipfox/inter-module';\nimport {z} from 'zod';\nimport {\n agentRuntimeCredentialsResponseSchema,\n agentThinkingSchema,\n harnessSchema,\n modelProviderRefSchema,\n} from '#schemas/index.js';\n\nconst agentValidationCatalogSchema = z.object({\n version: z.literal(1),\n providers: z.array(\n z.object({\n id: z.string().min(1),\n support_status: z.enum(['supported', 'unsupported']),\n }),\n ),\n harnesses: z.array(\n z.object({\n id: harnessSchema,\n supported_provider_ids: z.array(z.string().min(1)),\n model_ids_by_provider: z.record(z.string().min(1), z.array(z.string().min(1))).optional(),\n thinking_levels: z.array(agentThinkingSchema),\n effective_tools: z.array(z.string().min(1)),\n }),\n ),\n});\n\nexport type AgentValidationCatalog = z.infer<typeof agentValidationCatalogSchema>;\n\nconst agentConfigInputSchema = z.object({\n harness: harnessSchema.optional(),\n provider: modelProviderRefSchema.optional(),\n model: z.string().optional(),\n // A resolved template may contain any string; the agent module validates it\n // against the resolved harness and returns the domain error if it is invalid.\n thinking: z.string().optional(),\n});\n\nconst resolvedAgentConfigSchema = z.object({\n harness: harnessSchema,\n provider: modelProviderRefSchema,\n model: z.string(),\n thinking: agentThinkingSchema,\n});\n\nexport const agentInterModuleContract = defineInterModuleContract({\n module: 'agent',\n methods: {\n getValidationCatalog: {\n input: z.object({}),\n output: agentValidationCatalogSchema,\n errors: {},\n },\n resolveAgentConfig: {\n input: z.object({workspaceId: z.string().uuid().nullable(), config: agentConfigInputSchema}),\n output: resolvedAgentConfigSchema,\n errors: {'agent-config-invalid': z.object({})},\n },\n resolveRuntimeCredentials: {\n input: z.object({\n workspaceId: z.string().uuid(),\n harness: harnessSchema,\n provider: modelProviderRefSchema,\n model: z.string(),\n thinking: agentThinkingSchema,\n }),\n output: agentRuntimeCredentialsResponseSchema,\n errors: {\n 'model-provider-not-configured': z.object({}),\n 'model-provider-credentials-invalid': z.object({}),\n },\n },\n },\n});\n\nexport type AgentInterModuleClient = InterModuleClient<typeof agentInterModuleContract>;\n"],"names":["defineInterModuleContract","z","agentRuntimeCredentialsResponseSchema","agentThinkingSchema","harnessSchema","modelProviderRefSchema","agentValidationCatalogSchema","object","version","literal","providers","array","id","string","min","support_status","enum","harnesses","supported_provider_ids","model_ids_by_provider","record","optional","thinking_levels","effective_tools","agentConfigInputSchema","harness","provider","model","thinking","resolvedAgentConfigSchema","agentInterModuleContract","module","methods","getValidationCatalog","input","output","errors","resolveAgentConfig","workspaceId","uuid","nullable","config","resolveRuntimeCredentials"],"mappings":"AAAA,SAAQA,yBAAyB,QAA+B,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