@shipfox/api-agent-dto 12.0.0 → 12.2.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 +7 -0
- package/dist/inter-module.d.ts +43 -43
- package/dist/inter-module.d.ts.map +1 -1
- package/dist/schemas/catalog.d.ts +69 -69
- package/dist/schemas/custom-model-provider.d.ts +27 -27
- package/dist/schemas/harness.d.ts +1 -1
- package/dist/schemas/harness.d.ts.map +1 -1
- package/dist/schemas/materialized-agent-step-config.d.ts +5 -5
- package/dist/schemas/model-provider-config.d.ts +5 -5
- package/dist/schemas/model-provider-id.d.ts +44 -44
- package/dist/schemas/model-provider-id.d.ts.map +1 -1
- package/dist/schemas/runtime-config.d.ts +7 -7
- package/dist/schemas/workspace-defaults.d.ts +2 -2
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +2 -2
- 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 (391.58ms)
|
package/CHANGELOG.md
CHANGED
package/dist/inter-module.d.ts
CHANGED
|
@@ -11,19 +11,19 @@ declare const agentValidationCatalogSchema: z.ZodObject<{
|
|
|
11
11
|
}, z.core.$strip>>;
|
|
12
12
|
harnesses: z.ZodArray<z.ZodObject<{
|
|
13
13
|
id: z.ZodEnum<{
|
|
14
|
-
pi: "pi";
|
|
15
14
|
claude: "claude";
|
|
15
|
+
pi: "pi";
|
|
16
16
|
}>;
|
|
17
17
|
supported_provider_ids: z.ZodArray<z.ZodString>;
|
|
18
18
|
model_ids_by_provider: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
19
19
|
thinking_levels: z.ZodArray<z.ZodEnum<{
|
|
20
|
-
|
|
21
|
-
minimal: "minimal";
|
|
20
|
+
high: "high";
|
|
22
21
|
low: "low";
|
|
22
|
+
max: "max";
|
|
23
23
|
medium: "medium";
|
|
24
|
-
|
|
24
|
+
minimal: "minimal";
|
|
25
|
+
off: "off";
|
|
25
26
|
xhigh: "xhigh";
|
|
26
|
-
max: "max";
|
|
27
27
|
}>>;
|
|
28
28
|
effective_tools: z.ZodArray<z.ZodString>;
|
|
29
29
|
}, z.core.$strip>>;
|
|
@@ -32,9 +32,9 @@ export type AgentValidationCatalog = z.infer<typeof agentValidationCatalogSchema
|
|
|
32
32
|
export declare const agentInterModuleContract: import("@shipfox/inter-module").InterModuleContract<{
|
|
33
33
|
readonly module: "agent";
|
|
34
34
|
readonly methods: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
getValidationCatalog: {
|
|
36
|
+
input: z.ZodObject<{}, z.core.$strip>;
|
|
37
|
+
output: z.ZodObject<{
|
|
38
38
|
version: z.ZodLiteral<1>;
|
|
39
39
|
providers: z.ZodArray<z.ZodObject<{
|
|
40
40
|
id: z.ZodString;
|
|
@@ -45,101 +45,101 @@ export declare const agentInterModuleContract: import("@shipfox/inter-module").I
|
|
|
45
45
|
}, z.core.$strip>>;
|
|
46
46
|
harnesses: z.ZodArray<z.ZodObject<{
|
|
47
47
|
id: z.ZodEnum<{
|
|
48
|
-
pi: "pi";
|
|
49
48
|
claude: "claude";
|
|
49
|
+
pi: "pi";
|
|
50
50
|
}>;
|
|
51
51
|
supported_provider_ids: z.ZodArray<z.ZodString>;
|
|
52
52
|
model_ids_by_provider: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
53
53
|
thinking_levels: z.ZodArray<z.ZodEnum<{
|
|
54
|
-
|
|
55
|
-
minimal: "minimal";
|
|
54
|
+
high: "high";
|
|
56
55
|
low: "low";
|
|
56
|
+
max: "max";
|
|
57
57
|
medium: "medium";
|
|
58
|
-
|
|
58
|
+
minimal: "minimal";
|
|
59
|
+
off: "off";
|
|
59
60
|
xhigh: "xhigh";
|
|
60
|
-
max: "max";
|
|
61
61
|
}>>;
|
|
62
62
|
effective_tools: z.ZodArray<z.ZodString>;
|
|
63
63
|
}, z.core.$strip>>;
|
|
64
64
|
}, z.core.$strip>;
|
|
65
|
-
|
|
65
|
+
errors: {};
|
|
66
66
|
};
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
resolveAgentConfig: {
|
|
68
|
+
input: z.ZodObject<{
|
|
69
69
|
workspaceId: z.ZodNullable<z.ZodString>;
|
|
70
70
|
config: z.ZodObject<{
|
|
71
71
|
harness: z.ZodOptional<z.ZodEnum<{
|
|
72
|
-
pi: "pi";
|
|
73
72
|
claude: "claude";
|
|
73
|
+
pi: "pi";
|
|
74
74
|
}>>;
|
|
75
75
|
provider: z.ZodOptional<z.ZodString>;
|
|
76
76
|
model: z.ZodOptional<z.ZodString>;
|
|
77
77
|
thinking: z.ZodOptional<z.ZodString>;
|
|
78
78
|
}, z.core.$strip>;
|
|
79
79
|
}, z.core.$strip>;
|
|
80
|
-
|
|
80
|
+
output: z.ZodObject<{
|
|
81
81
|
harness: z.ZodEnum<{
|
|
82
|
-
pi: "pi";
|
|
83
82
|
claude: "claude";
|
|
83
|
+
pi: "pi";
|
|
84
84
|
}>;
|
|
85
85
|
provider: z.ZodString;
|
|
86
86
|
model: z.ZodString;
|
|
87
87
|
thinking: z.ZodEnum<{
|
|
88
|
-
|
|
89
|
-
minimal: "minimal";
|
|
88
|
+
high: "high";
|
|
90
89
|
low: "low";
|
|
90
|
+
max: "max";
|
|
91
91
|
medium: "medium";
|
|
92
|
-
|
|
92
|
+
minimal: "minimal";
|
|
93
|
+
off: "off";
|
|
93
94
|
xhigh: "xhigh";
|
|
94
|
-
max: "max";
|
|
95
95
|
}>;
|
|
96
96
|
}, z.core.$strip>;
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
errors: {
|
|
98
|
+
'agent-config-invalid': z.ZodObject<{}, z.core.$strip>;
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
resolveRuntimeCredentials: {
|
|
102
|
+
input: z.ZodObject<{
|
|
103
103
|
workspaceId: z.ZodString;
|
|
104
104
|
harness: z.ZodEnum<{
|
|
105
|
-
pi: "pi";
|
|
106
105
|
claude: "claude";
|
|
106
|
+
pi: "pi";
|
|
107
107
|
}>;
|
|
108
108
|
provider: z.ZodString;
|
|
109
109
|
model: z.ZodString;
|
|
110
110
|
thinking: z.ZodEnum<{
|
|
111
|
-
|
|
112
|
-
minimal: "minimal";
|
|
111
|
+
high: "high";
|
|
113
112
|
low: "low";
|
|
113
|
+
max: "max";
|
|
114
114
|
medium: "medium";
|
|
115
|
-
|
|
115
|
+
minimal: "minimal";
|
|
116
|
+
off: "off";
|
|
116
117
|
xhigh: "xhigh";
|
|
117
|
-
max: "max";
|
|
118
118
|
}>;
|
|
119
119
|
}, z.core.$strip>;
|
|
120
|
-
|
|
120
|
+
output: z.ZodObject<{
|
|
121
121
|
harness: z.ZodEnum<{
|
|
122
|
-
pi: "pi";
|
|
123
122
|
claude: "claude";
|
|
123
|
+
pi: "pi";
|
|
124
124
|
}>;
|
|
125
125
|
provider_id: z.ZodString;
|
|
126
126
|
model: z.ZodString;
|
|
127
127
|
thinking: z.ZodEnum<{
|
|
128
|
-
|
|
129
|
-
minimal: "minimal";
|
|
128
|
+
high: "high";
|
|
130
129
|
low: "low";
|
|
130
|
+
max: "max";
|
|
131
131
|
medium: "medium";
|
|
132
|
-
|
|
132
|
+
minimal: "minimal";
|
|
133
|
+
off: "off";
|
|
133
134
|
xhigh: "xhigh";
|
|
134
|
-
max: "max";
|
|
135
135
|
}>;
|
|
136
136
|
credentials: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
137
137
|
custom_provider: z.ZodOptional<z.ZodObject<{
|
|
138
138
|
api: z.ZodEnum<{
|
|
139
|
-
"openai-completions": "openai-completions";
|
|
140
|
-
"openai-responses": "openai-responses";
|
|
141
139
|
"anthropic-messages": "anthropic-messages";
|
|
142
140
|
"google-generative-ai": "google-generative-ai";
|
|
141
|
+
"openai-completions": "openai-completions";
|
|
142
|
+
"openai-responses": "openai-responses";
|
|
143
143
|
}>;
|
|
144
144
|
base_url: z.ZodString;
|
|
145
145
|
headers: z.ZodArray<z.ZodObject<{
|
|
@@ -158,9 +158,9 @@ export declare const agentInterModuleContract: import("@shipfox/inter-module").I
|
|
|
158
158
|
requires_api_key: z.ZodBoolean;
|
|
159
159
|
}, z.core.$strip>>;
|
|
160
160
|
}, z.core.$strip>;
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
errors: {
|
|
162
|
+
'model-provider-not-configured': z.ZodObject<{}, z.core.$strip>;
|
|
163
|
+
'model-provider-credentials-invalid': z.ZodObject<{}, z.core.$strip>;
|
|
164
164
|
};
|
|
165
165
|
};
|
|
166
166
|
};
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiBhC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAkBlF,eAAO,MAAM,wBAAwB
|
|
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;;;QAGjC,oBAAoB;YAClB,KAAK;YACL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;YACN,MAAM;;QAER,kBAAkB;YAChB,KAAK;;;;;;;;;;;;YACL,MAAM;;;;;;;;;;;;;;;;;YACN,MAAM;gBAAG,sBAAsB;;;QAEjC,yBAAyB;YACvB,KAAK;;;;;;;;;;;;;;;;;;YAOL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YACN,MAAM;gBACJ,+BAA+B;gBAC/B,oCAAoC;;;;EAI1C,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -20,43 +20,43 @@ export declare const modelProviderSupportStatusSchema: z.ZodEnum<{
|
|
|
20
20
|
export type ModelProviderSupportStatus = z.infer<typeof modelProviderSupportStatusSchema>;
|
|
21
21
|
export declare const modelProviderCatalogSeedSchema: z.ZodObject<{
|
|
22
22
|
id: z.ZodEnum<{
|
|
23
|
-
|
|
23
|
+
"amazon-bedrock": "amazon-bedrock";
|
|
24
24
|
"ant-ling": "ant-ling";
|
|
25
|
+
anthropic: "anthropic";
|
|
25
26
|
"azure-openai-responses": "azure-openai-responses";
|
|
26
|
-
openai: "openai";
|
|
27
|
-
deepseek: "deepseek";
|
|
28
|
-
nvidia: "nvidia";
|
|
29
|
-
google: "google";
|
|
30
|
-
mistral: "mistral";
|
|
31
|
-
groq: "groq";
|
|
32
27
|
cerebras: "cerebras";
|
|
33
28
|
"cloudflare-ai-gateway": "cloudflare-ai-gateway";
|
|
34
29
|
"cloudflare-workers-ai": "cloudflare-workers-ai";
|
|
35
|
-
|
|
36
|
-
openrouter: "openrouter";
|
|
37
|
-
"vercel-ai-gateway": "vercel-ai-gateway";
|
|
38
|
-
zai: "zai";
|
|
39
|
-
"zai-coding-cn": "zai-coding-cn";
|
|
40
|
-
opencode: "opencode";
|
|
41
|
-
"opencode-go": "opencode-go";
|
|
42
|
-
huggingface: "huggingface";
|
|
30
|
+
deepseek: "deepseek";
|
|
43
31
|
fireworks: "fireworks";
|
|
44
|
-
|
|
32
|
+
"github-copilot": "github-copilot";
|
|
33
|
+
google: "google";
|
|
34
|
+
"google-vertex": "google-vertex";
|
|
35
|
+
groq: "groq";
|
|
36
|
+
huggingface: "huggingface";
|
|
45
37
|
"kimi-coding": "kimi-coding";
|
|
46
|
-
"qwen-token-plan": "qwen-token-plan";
|
|
47
|
-
"qwen-token-plan-cn": "qwen-token-plan-cn";
|
|
48
38
|
minimax: "minimax";
|
|
49
39
|
"minimax-cn": "minimax-cn";
|
|
40
|
+
mistral: "mistral";
|
|
50
41
|
moonshotai: "moonshotai";
|
|
51
42
|
"moonshotai-cn": "moonshotai-cn";
|
|
43
|
+
nvidia: "nvidia";
|
|
44
|
+
openai: "openai";
|
|
45
|
+
"openai-codex": "openai-codex";
|
|
46
|
+
opencode: "opencode";
|
|
47
|
+
"opencode-go": "opencode-go";
|
|
48
|
+
openrouter: "openrouter";
|
|
49
|
+
"qwen-token-plan": "qwen-token-plan";
|
|
50
|
+
"qwen-token-plan-cn": "qwen-token-plan-cn";
|
|
51
|
+
together: "together";
|
|
52
|
+
"vercel-ai-gateway": "vercel-ai-gateway";
|
|
53
|
+
xai: "xai";
|
|
52
54
|
xiaomi: "xiaomi";
|
|
53
|
-
"xiaomi-token-plan-cn": "xiaomi-token-plan-cn";
|
|
54
55
|
"xiaomi-token-plan-ams": "xiaomi-token-plan-ams";
|
|
56
|
+
"xiaomi-token-plan-cn": "xiaomi-token-plan-cn";
|
|
55
57
|
"xiaomi-token-plan-sgp": "xiaomi-token-plan-sgp";
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"openai-codex": "openai-codex";
|
|
59
|
-
"github-copilot": "github-copilot";
|
|
58
|
+
zai: "zai";
|
|
59
|
+
"zai-coding-cn": "zai-coding-cn";
|
|
60
60
|
}>;
|
|
61
61
|
label: z.ZodString;
|
|
62
62
|
support_status: z.ZodEnum<{
|
|
@@ -74,43 +74,43 @@ export declare const modelProviderCatalogSeedSchema: z.ZodObject<{
|
|
|
74
74
|
export type ModelProviderCatalogSeedDto = z.infer<typeof modelProviderCatalogSeedSchema>;
|
|
75
75
|
export declare const modelProviderCatalogEntrySchema: z.ZodObject<{
|
|
76
76
|
id: z.ZodEnum<{
|
|
77
|
-
|
|
77
|
+
"amazon-bedrock": "amazon-bedrock";
|
|
78
78
|
"ant-ling": "ant-ling";
|
|
79
|
+
anthropic: "anthropic";
|
|
79
80
|
"azure-openai-responses": "azure-openai-responses";
|
|
80
|
-
openai: "openai";
|
|
81
|
-
deepseek: "deepseek";
|
|
82
|
-
nvidia: "nvidia";
|
|
83
|
-
google: "google";
|
|
84
|
-
mistral: "mistral";
|
|
85
|
-
groq: "groq";
|
|
86
81
|
cerebras: "cerebras";
|
|
87
82
|
"cloudflare-ai-gateway": "cloudflare-ai-gateway";
|
|
88
83
|
"cloudflare-workers-ai": "cloudflare-workers-ai";
|
|
89
|
-
|
|
90
|
-
openrouter: "openrouter";
|
|
91
|
-
"vercel-ai-gateway": "vercel-ai-gateway";
|
|
92
|
-
zai: "zai";
|
|
93
|
-
"zai-coding-cn": "zai-coding-cn";
|
|
94
|
-
opencode: "opencode";
|
|
95
|
-
"opencode-go": "opencode-go";
|
|
96
|
-
huggingface: "huggingface";
|
|
84
|
+
deepseek: "deepseek";
|
|
97
85
|
fireworks: "fireworks";
|
|
98
|
-
|
|
86
|
+
"github-copilot": "github-copilot";
|
|
87
|
+
google: "google";
|
|
88
|
+
"google-vertex": "google-vertex";
|
|
89
|
+
groq: "groq";
|
|
90
|
+
huggingface: "huggingface";
|
|
99
91
|
"kimi-coding": "kimi-coding";
|
|
100
|
-
"qwen-token-plan": "qwen-token-plan";
|
|
101
|
-
"qwen-token-plan-cn": "qwen-token-plan-cn";
|
|
102
92
|
minimax: "minimax";
|
|
103
93
|
"minimax-cn": "minimax-cn";
|
|
94
|
+
mistral: "mistral";
|
|
104
95
|
moonshotai: "moonshotai";
|
|
105
96
|
"moonshotai-cn": "moonshotai-cn";
|
|
97
|
+
nvidia: "nvidia";
|
|
98
|
+
openai: "openai";
|
|
99
|
+
"openai-codex": "openai-codex";
|
|
100
|
+
opencode: "opencode";
|
|
101
|
+
"opencode-go": "opencode-go";
|
|
102
|
+
openrouter: "openrouter";
|
|
103
|
+
"qwen-token-plan": "qwen-token-plan";
|
|
104
|
+
"qwen-token-plan-cn": "qwen-token-plan-cn";
|
|
105
|
+
together: "together";
|
|
106
|
+
"vercel-ai-gateway": "vercel-ai-gateway";
|
|
107
|
+
xai: "xai";
|
|
106
108
|
xiaomi: "xiaomi";
|
|
107
|
-
"xiaomi-token-plan-cn": "xiaomi-token-plan-cn";
|
|
108
109
|
"xiaomi-token-plan-ams": "xiaomi-token-plan-ams";
|
|
110
|
+
"xiaomi-token-plan-cn": "xiaomi-token-plan-cn";
|
|
109
111
|
"xiaomi-token-plan-sgp": "xiaomi-token-plan-sgp";
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
"openai-codex": "openai-codex";
|
|
113
|
-
"github-copilot": "github-copilot";
|
|
112
|
+
zai: "zai";
|
|
113
|
+
"zai-coding-cn": "zai-coding-cn";
|
|
114
114
|
}>;
|
|
115
115
|
label: z.ZodString;
|
|
116
116
|
support_status: z.ZodEnum<{
|
|
@@ -133,43 +133,43 @@ export type ModelProviderCatalogEntryDto = z.infer<typeof modelProviderCatalogEn
|
|
|
133
133
|
export declare const modelProviderCatalogResponseSchema: z.ZodObject<{
|
|
134
134
|
providers: z.ZodArray<z.ZodObject<{
|
|
135
135
|
id: z.ZodEnum<{
|
|
136
|
-
|
|
136
|
+
"amazon-bedrock": "amazon-bedrock";
|
|
137
137
|
"ant-ling": "ant-ling";
|
|
138
|
+
anthropic: "anthropic";
|
|
138
139
|
"azure-openai-responses": "azure-openai-responses";
|
|
139
|
-
openai: "openai";
|
|
140
|
-
deepseek: "deepseek";
|
|
141
|
-
nvidia: "nvidia";
|
|
142
|
-
google: "google";
|
|
143
|
-
mistral: "mistral";
|
|
144
|
-
groq: "groq";
|
|
145
140
|
cerebras: "cerebras";
|
|
146
141
|
"cloudflare-ai-gateway": "cloudflare-ai-gateway";
|
|
147
142
|
"cloudflare-workers-ai": "cloudflare-workers-ai";
|
|
148
|
-
|
|
149
|
-
openrouter: "openrouter";
|
|
150
|
-
"vercel-ai-gateway": "vercel-ai-gateway";
|
|
151
|
-
zai: "zai";
|
|
152
|
-
"zai-coding-cn": "zai-coding-cn";
|
|
153
|
-
opencode: "opencode";
|
|
154
|
-
"opencode-go": "opencode-go";
|
|
155
|
-
huggingface: "huggingface";
|
|
143
|
+
deepseek: "deepseek";
|
|
156
144
|
fireworks: "fireworks";
|
|
157
|
-
|
|
145
|
+
"github-copilot": "github-copilot";
|
|
146
|
+
google: "google";
|
|
147
|
+
"google-vertex": "google-vertex";
|
|
148
|
+
groq: "groq";
|
|
149
|
+
huggingface: "huggingface";
|
|
158
150
|
"kimi-coding": "kimi-coding";
|
|
159
|
-
"qwen-token-plan": "qwen-token-plan";
|
|
160
|
-
"qwen-token-plan-cn": "qwen-token-plan-cn";
|
|
161
151
|
minimax: "minimax";
|
|
162
152
|
"minimax-cn": "minimax-cn";
|
|
153
|
+
mistral: "mistral";
|
|
163
154
|
moonshotai: "moonshotai";
|
|
164
155
|
"moonshotai-cn": "moonshotai-cn";
|
|
156
|
+
nvidia: "nvidia";
|
|
157
|
+
openai: "openai";
|
|
158
|
+
"openai-codex": "openai-codex";
|
|
159
|
+
opencode: "opencode";
|
|
160
|
+
"opencode-go": "opencode-go";
|
|
161
|
+
openrouter: "openrouter";
|
|
162
|
+
"qwen-token-plan": "qwen-token-plan";
|
|
163
|
+
"qwen-token-plan-cn": "qwen-token-plan-cn";
|
|
164
|
+
together: "together";
|
|
165
|
+
"vercel-ai-gateway": "vercel-ai-gateway";
|
|
166
|
+
xai: "xai";
|
|
165
167
|
xiaomi: "xiaomi";
|
|
166
|
-
"xiaomi-token-plan-cn": "xiaomi-token-plan-cn";
|
|
167
168
|
"xiaomi-token-plan-ams": "xiaomi-token-plan-ams";
|
|
169
|
+
"xiaomi-token-plan-cn": "xiaomi-token-plan-cn";
|
|
168
170
|
"xiaomi-token-plan-sgp": "xiaomi-token-plan-sgp";
|
|
169
|
-
|
|
170
|
-
"
|
|
171
|
-
"openai-codex": "openai-codex";
|
|
172
|
-
"github-copilot": "github-copilot";
|
|
171
|
+
zai: "zai";
|
|
172
|
+
"zai-coding-cn": "zai-coding-cn";
|
|
173
173
|
}>;
|
|
174
174
|
label: z.ZodString;
|
|
175
175
|
support_status: z.ZodEnum<{
|
|
@@ -5,10 +5,10 @@ export declare const DEFAULT_CUSTOM_MODEL_MAX_OUTPUT_TOKENS = 16384;
|
|
|
5
5
|
export declare const DEFAULT_CUSTOM_MODEL_INPUT_IMAGE = false;
|
|
6
6
|
export declare const DEFAULT_CUSTOM_MODEL_REASONING = false;
|
|
7
7
|
export declare const modelProviderApiSchema: z.ZodEnum<{
|
|
8
|
-
"openai-completions": "openai-completions";
|
|
9
|
-
"openai-responses": "openai-responses";
|
|
10
8
|
"anthropic-messages": "anthropic-messages";
|
|
11
9
|
"google-generative-ai": "google-generative-ai";
|
|
10
|
+
"openai-completions": "openai-completions";
|
|
11
|
+
"openai-responses": "openai-responses";
|
|
12
12
|
}>;
|
|
13
13
|
export type ModelProviderApi = z.infer<typeof modelProviderApiSchema>;
|
|
14
14
|
export declare const customAgentModelSchema: z.ZodObject<{
|
|
@@ -39,17 +39,12 @@ export declare const updateCustomModelProviderHeaderRequestSchema: z.ZodObject<{
|
|
|
39
39
|
}, z.core.$strip>;
|
|
40
40
|
export type UpdateCustomModelProviderHeaderRequestDto = z.infer<typeof updateCustomModelProviderHeaderRequestSchema>;
|
|
41
41
|
export declare const createCustomModelProviderBodySchema: z.ZodObject<{
|
|
42
|
-
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
|
-
name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
44
|
-
value: z.ZodString;
|
|
45
|
-
secret: z.ZodBoolean;
|
|
46
|
-
}, z.core.$strip>>>;
|
|
47
42
|
display_name: z.ZodString;
|
|
48
43
|
api: z.ZodEnum<{
|
|
49
|
-
"openai-completions": "openai-completions";
|
|
50
|
-
"openai-responses": "openai-responses";
|
|
51
44
|
"anthropic-messages": "anthropic-messages";
|
|
52
45
|
"google-generative-ai": "google-generative-ai";
|
|
46
|
+
"openai-completions": "openai-completions";
|
|
47
|
+
"openai-responses": "openai-responses";
|
|
53
48
|
}>;
|
|
54
49
|
base_url: z.ZodString;
|
|
55
50
|
api_key: z.ZodOptional<z.ZodString>;
|
|
@@ -63,9 +58,24 @@ export declare const createCustomModelProviderBodySchema: z.ZodObject<{
|
|
|
63
58
|
}, z.core.$strip>>;
|
|
64
59
|
default_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
60
|
slug: z.ZodString;
|
|
61
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62
|
+
name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
63
|
+
value: z.ZodString;
|
|
64
|
+
secret: z.ZodBoolean;
|
|
65
|
+
}, z.core.$strip>>>;
|
|
66
66
|
}, z.core.$strip>;
|
|
67
67
|
export type CreateCustomModelProviderBodyDto = z.infer<typeof createCustomModelProviderBodySchema>;
|
|
68
68
|
export declare const updateCustomModelProviderBodySchema: z.ZodObject<{
|
|
69
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
70
|
+
api: z.ZodOptional<z.ZodEnum<{
|
|
71
|
+
"anthropic-messages": "anthropic-messages";
|
|
72
|
+
"google-generative-ai": "google-generative-ai";
|
|
73
|
+
"openai-completions": "openai-completions";
|
|
74
|
+
"openai-responses": "openai-responses";
|
|
75
|
+
}>>;
|
|
76
|
+
base_url: z.ZodOptional<z.ZodString>;
|
|
77
|
+
api_key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
78
|
+
default_model: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
69
79
|
headers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
70
80
|
name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
71
81
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -80,24 +90,14 @@ export declare const updateCustomModelProviderBodySchema: z.ZodObject<{
|
|
|
80
90
|
input_image: z.ZodOptional<z.ZodBoolean>;
|
|
81
91
|
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
82
92
|
}, z.core.$strip>>>>;
|
|
83
|
-
display_name: z.ZodOptional<z.ZodString>;
|
|
84
|
-
api: z.ZodOptional<z.ZodEnum<{
|
|
85
|
-
"openai-completions": "openai-completions";
|
|
86
|
-
"openai-responses": "openai-responses";
|
|
87
|
-
"anthropic-messages": "anthropic-messages";
|
|
88
|
-
"google-generative-ai": "google-generative-ai";
|
|
89
|
-
}>>;
|
|
90
|
-
base_url: z.ZodOptional<z.ZodString>;
|
|
91
|
-
api_key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
92
|
-
default_model: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
93
93
|
}, z.core.$strip>;
|
|
94
94
|
export type UpdateCustomModelProviderBodyDto = z.infer<typeof updateCustomModelProviderBodySchema>;
|
|
95
95
|
export declare const discoverCustomModelProviderModelsBodySchema: z.ZodObject<{
|
|
96
96
|
api: z.ZodEnum<{
|
|
97
|
-
"openai-completions": "openai-completions";
|
|
98
|
-
"openai-responses": "openai-responses";
|
|
99
97
|
"anthropic-messages": "anthropic-messages";
|
|
100
98
|
"google-generative-ai": "google-generative-ai";
|
|
99
|
+
"openai-completions": "openai-completions";
|
|
100
|
+
"openai-responses": "openai-responses";
|
|
101
101
|
}>;
|
|
102
102
|
base_url: z.ZodString;
|
|
103
103
|
api_key: z.ZodOptional<z.ZodString>;
|
|
@@ -109,10 +109,10 @@ export declare const discoverCustomModelProviderModelsBodySchema: z.ZodObject<{
|
|
|
109
109
|
export type DiscoverCustomModelProviderModelsBodyDto = z.infer<typeof discoverCustomModelProviderModelsBodySchema>;
|
|
110
110
|
export declare const discoverCustomModelProviderModelsBySlugBodySchema: z.ZodObject<{
|
|
111
111
|
api: z.ZodOptional<z.ZodEnum<{
|
|
112
|
-
"openai-completions": "openai-completions";
|
|
113
|
-
"openai-responses": "openai-responses";
|
|
114
112
|
"anthropic-messages": "anthropic-messages";
|
|
115
113
|
"google-generative-ai": "google-generative-ai";
|
|
114
|
+
"openai-completions": "openai-completions";
|
|
115
|
+
"openai-responses": "openai-responses";
|
|
116
116
|
}>>;
|
|
117
117
|
base_url: z.ZodOptional<z.ZodString>;
|
|
118
118
|
api_key: z.ZodOptional<z.ZodString>;
|
|
@@ -133,10 +133,10 @@ export declare const discoverCustomModelProviderModelsResponseSchema: z.ZodObjec
|
|
|
133
133
|
export type DiscoverCustomModelProviderModelsResponseDto = z.infer<typeof discoverCustomModelProviderModelsResponseSchema>;
|
|
134
134
|
export declare const customModelProviderRuntimeConfigSchema: z.ZodObject<{
|
|
135
135
|
api: z.ZodEnum<{
|
|
136
|
-
"openai-completions": "openai-completions";
|
|
137
|
-
"openai-responses": "openai-responses";
|
|
138
136
|
"anthropic-messages": "anthropic-messages";
|
|
139
137
|
"google-generative-ai": "google-generative-ai";
|
|
138
|
+
"openai-completions": "openai-completions";
|
|
139
|
+
"openai-responses": "openai-responses";
|
|
140
140
|
}>;
|
|
141
141
|
base_url: z.ZodString;
|
|
142
142
|
headers: z.ZodArray<z.ZodObject<{
|
|
@@ -157,10 +157,10 @@ export declare const customModelProviderRuntimeConfigSchema: z.ZodObject<{
|
|
|
157
157
|
export type CustomModelProviderRuntimeConfigDto = z.infer<typeof customModelProviderRuntimeConfigSchema>;
|
|
158
158
|
export declare const customModelProviderConfigDtoSchema: z.ZodObject<{
|
|
159
159
|
api: z.ZodEnum<{
|
|
160
|
-
"openai-completions": "openai-completions";
|
|
161
|
-
"openai-responses": "openai-responses";
|
|
162
160
|
"anthropic-messages": "anthropic-messages";
|
|
163
161
|
"google-generative-ai": "google-generative-ai";
|
|
162
|
+
"openai-completions": "openai-completions";
|
|
163
|
+
"openai-responses": "openai-responses";
|
|
164
164
|
}>;
|
|
165
165
|
base_url: z.ZodString;
|
|
166
166
|
headers: z.ZodArray<z.ZodObject<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type AgentThinking, type Harness } from '@shipfox/workflow-document';
|
|
2
2
|
import { type ModelProviderRef } from './model-provider-id.js';
|
|
3
|
-
export declare const PI_HARNESS_TOOL_PACKAGE_NAMES: readonly [
|
|
3
|
+
export declare const PI_HARNESS_TOOL_PACKAGE_NAMES: readonly ['pi-web-access'];
|
|
4
4
|
export declare const HARNESS_TOOL_PACKAGE_NAMES: readonly ["pi-web-access"];
|
|
5
5
|
export type HarnessToolPackageName = (typeof HARNESS_TOOL_PACKAGE_NAMES)[number];
|
|
6
6
|
export interface HarnessToolDescriptor {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../src/schemas/harness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,aAAa,EAA0B,KAAK,OAAO,EAAC,MAAM,4BAA4B,CAAC;AACpG,OAAO,EAAC,KAAK,gBAAgB,EAA+B,MAAM,wBAAwB,CAAC;AAE3F,eAAO,MAAM,6BAA6B,
|
|
1
|
+
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../src/schemas/harness.ts"],"names":[],"mappings":"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"}
|
|
@@ -100,19 +100,19 @@ export declare const agentIntegrationMcpServerSchema: z.ZodObject<{
|
|
|
100
100
|
}, z.core.$strict>;
|
|
101
101
|
export declare const materializedAgentStepConfigSchema: z.ZodObject<{
|
|
102
102
|
harness: z.ZodDefault<z.ZodEnum<{
|
|
103
|
-
pi: "pi";
|
|
104
103
|
claude: "claude";
|
|
104
|
+
pi: "pi";
|
|
105
105
|
}>>;
|
|
106
106
|
provider: z.ZodString;
|
|
107
107
|
model: z.ZodString;
|
|
108
108
|
thinking: z.ZodEnum<{
|
|
109
|
-
|
|
110
|
-
minimal: "minimal";
|
|
109
|
+
high: "high";
|
|
111
110
|
low: "low";
|
|
111
|
+
max: "max";
|
|
112
112
|
medium: "medium";
|
|
113
|
-
|
|
113
|
+
minimal: "minimal";
|
|
114
|
+
off: "off";
|
|
114
115
|
xhigh: "xhigh";
|
|
115
|
-
max: "max";
|
|
116
116
|
}>;
|
|
117
117
|
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
118
|
integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -16,10 +16,10 @@ export declare const modelProviderConfigResponseSchema: z.ZodDiscriminatedUnion<
|
|
|
16
16
|
updated_at: z.ZodString;
|
|
17
17
|
}, z.core.$strip>, z.ZodObject<{
|
|
18
18
|
api: z.ZodEnum<{
|
|
19
|
-
"openai-completions": "openai-completions";
|
|
20
|
-
"openai-responses": "openai-responses";
|
|
21
19
|
"anthropic-messages": "anthropic-messages";
|
|
22
20
|
"google-generative-ai": "google-generative-ai";
|
|
21
|
+
"openai-completions": "openai-completions";
|
|
22
|
+
"openai-responses": "openai-responses";
|
|
23
23
|
}>;
|
|
24
24
|
base_url: z.ZodString;
|
|
25
25
|
headers: z.ZodArray<z.ZodObject<{
|
|
@@ -52,10 +52,10 @@ export declare const listModelProviderConfigsResponseSchema: z.ZodObject<{
|
|
|
52
52
|
updated_at: z.ZodString;
|
|
53
53
|
}, z.core.$strip>, z.ZodObject<{
|
|
54
54
|
api: z.ZodEnum<{
|
|
55
|
-
"openai-completions": "openai-completions";
|
|
56
|
-
"openai-responses": "openai-responses";
|
|
57
55
|
"anthropic-messages": "anthropic-messages";
|
|
58
56
|
"google-generative-ai": "google-generative-ai";
|
|
57
|
+
"openai-completions": "openai-completions";
|
|
58
|
+
"openai-responses": "openai-responses";
|
|
59
59
|
}>;
|
|
60
60
|
base_url: z.ZodString;
|
|
61
61
|
headers: z.ZodArray<z.ZodObject<{
|
|
@@ -80,8 +80,8 @@ export declare const listModelProviderConfigsResponseSchema: z.ZodObject<{
|
|
|
80
80
|
}, z.core.$strip>], "kind">>;
|
|
81
81
|
default_provider_id: z.ZodNullable<z.ZodString>;
|
|
82
82
|
default_harness_id: z.ZodNullable<z.ZodEnum<{
|
|
83
|
-
pi: "pi";
|
|
84
83
|
claude: "claude";
|
|
84
|
+
pi: "pi";
|
|
85
85
|
}>>;
|
|
86
86
|
}, z.core.$strip>;
|
|
87
87
|
export type ListModelProviderConfigsResponseDto = z.infer<typeof listModelProviderConfigsResponseSchema>;
|