@shipfox/api-agent-dto 10.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 +30 -0
- package/dist/inter-module.d.ts +46 -52
- 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/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 +3 -3
- package/src/inter-module.ts +4 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -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>;
|
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const SUPPORTED_MODEL_PROVIDER_IDS: readonly [
|
|
3
|
-
export declare const UNSUPPORTED_MODEL_PROVIDER_IDS: readonly [
|
|
2
|
+
export declare const SUPPORTED_MODEL_PROVIDER_IDS: readonly ['anthropic', 'ant-ling', 'azure-openai-responses', 'openai', 'deepseek', 'nvidia', 'google', 'mistral', 'groq', 'cerebras', 'cloudflare-ai-gateway', 'cloudflare-workers-ai', 'xai', 'openrouter', 'vercel-ai-gateway', 'zai', 'zai-coding-cn', 'opencode', 'opencode-go', 'huggingface', 'fireworks', 'together', 'kimi-coding', 'qwen-token-plan', 'qwen-token-plan-cn', 'minimax', 'minimax-cn', 'moonshotai', 'moonshotai-cn', 'xiaomi', 'xiaomi-token-plan-cn', 'xiaomi-token-plan-ams', 'xiaomi-token-plan-sgp'];
|
|
3
|
+
export declare const UNSUPPORTED_MODEL_PROVIDER_IDS: readonly ['amazon-bedrock', 'google-vertex', 'openai-codex', 'github-copilot'];
|
|
4
4
|
export declare const MODEL_PROVIDER_IDS: readonly ["anthropic", "ant-ling", "azure-openai-responses", "openai", "deepseek", "nvidia", "google", "mistral", "groq", "cerebras", "cloudflare-ai-gateway", "cloudflare-workers-ai", "xai", "openrouter", "vercel-ai-gateway", "zai", "zai-coding-cn", "opencode", "opencode-go", "huggingface", "fireworks", "together", "kimi-coding", "qwen-token-plan", "qwen-token-plan-cn", "minimax", "minimax-cn", "moonshotai", "moonshotai-cn", "xiaomi", "xiaomi-token-plan-cn", "xiaomi-token-plan-ams", "xiaomi-token-plan-sgp", "amazon-bedrock", "google-vertex", "openai-codex", "github-copilot"];
|
|
5
5
|
export declare const supportedModelProviderIdSchema: z.ZodEnum<{
|
|
6
|
-
anthropic: "anthropic";
|
|
7
6
|
"ant-ling": "ant-ling";
|
|
7
|
+
anthropic: "anthropic";
|
|
8
8
|
"azure-openai-responses": "azure-openai-responses";
|
|
9
|
-
openai: "openai";
|
|
10
|
-
deepseek: "deepseek";
|
|
11
|
-
nvidia: "nvidia";
|
|
12
|
-
google: "google";
|
|
13
|
-
mistral: "mistral";
|
|
14
|
-
groq: "groq";
|
|
15
9
|
cerebras: "cerebras";
|
|
16
10
|
"cloudflare-ai-gateway": "cloudflare-ai-gateway";
|
|
17
11
|
"cloudflare-workers-ai": "cloudflare-workers-ai";
|
|
18
|
-
|
|
19
|
-
openrouter: "openrouter";
|
|
20
|
-
"vercel-ai-gateway": "vercel-ai-gateway";
|
|
21
|
-
zai: "zai";
|
|
22
|
-
"zai-coding-cn": "zai-coding-cn";
|
|
23
|
-
opencode: "opencode";
|
|
24
|
-
"opencode-go": "opencode-go";
|
|
25
|
-
huggingface: "huggingface";
|
|
12
|
+
deepseek: "deepseek";
|
|
26
13
|
fireworks: "fireworks";
|
|
27
|
-
|
|
14
|
+
google: "google";
|
|
15
|
+
groq: "groq";
|
|
16
|
+
huggingface: "huggingface";
|
|
28
17
|
"kimi-coding": "kimi-coding";
|
|
29
|
-
"qwen-token-plan": "qwen-token-plan";
|
|
30
|
-
"qwen-token-plan-cn": "qwen-token-plan-cn";
|
|
31
18
|
minimax: "minimax";
|
|
32
19
|
"minimax-cn": "minimax-cn";
|
|
20
|
+
mistral: "mistral";
|
|
33
21
|
moonshotai: "moonshotai";
|
|
34
22
|
"moonshotai-cn": "moonshotai-cn";
|
|
23
|
+
nvidia: "nvidia";
|
|
24
|
+
openai: "openai";
|
|
25
|
+
opencode: "opencode";
|
|
26
|
+
"opencode-go": "opencode-go";
|
|
27
|
+
openrouter: "openrouter";
|
|
28
|
+
"qwen-token-plan": "qwen-token-plan";
|
|
29
|
+
"qwen-token-plan-cn": "qwen-token-plan-cn";
|
|
30
|
+
together: "together";
|
|
31
|
+
"vercel-ai-gateway": "vercel-ai-gateway";
|
|
32
|
+
xai: "xai";
|
|
35
33
|
xiaomi: "xiaomi";
|
|
36
|
-
"xiaomi-token-plan-cn": "xiaomi-token-plan-cn";
|
|
37
34
|
"xiaomi-token-plan-ams": "xiaomi-token-plan-ams";
|
|
35
|
+
"xiaomi-token-plan-cn": "xiaomi-token-plan-cn";
|
|
38
36
|
"xiaomi-token-plan-sgp": "xiaomi-token-plan-sgp";
|
|
37
|
+
zai: "zai";
|
|
38
|
+
"zai-coding-cn": "zai-coding-cn";
|
|
39
39
|
}>;
|
|
40
40
|
export declare const providerIdSchema: z.ZodEnum<{
|
|
41
|
-
|
|
41
|
+
"amazon-bedrock": "amazon-bedrock";
|
|
42
42
|
"ant-ling": "ant-ling";
|
|
43
|
+
anthropic: "anthropic";
|
|
43
44
|
"azure-openai-responses": "azure-openai-responses";
|
|
44
|
-
openai: "openai";
|
|
45
|
-
deepseek: "deepseek";
|
|
46
|
-
nvidia: "nvidia";
|
|
47
|
-
google: "google";
|
|
48
|
-
mistral: "mistral";
|
|
49
|
-
groq: "groq";
|
|
50
45
|
cerebras: "cerebras";
|
|
51
46
|
"cloudflare-ai-gateway": "cloudflare-ai-gateway";
|
|
52
47
|
"cloudflare-workers-ai": "cloudflare-workers-ai";
|
|
53
|
-
|
|
54
|
-
openrouter: "openrouter";
|
|
55
|
-
"vercel-ai-gateway": "vercel-ai-gateway";
|
|
56
|
-
zai: "zai";
|
|
57
|
-
"zai-coding-cn": "zai-coding-cn";
|
|
58
|
-
opencode: "opencode";
|
|
59
|
-
"opencode-go": "opencode-go";
|
|
60
|
-
huggingface: "huggingface";
|
|
48
|
+
deepseek: "deepseek";
|
|
61
49
|
fireworks: "fireworks";
|
|
62
|
-
|
|
50
|
+
"github-copilot": "github-copilot";
|
|
51
|
+
google: "google";
|
|
52
|
+
"google-vertex": "google-vertex";
|
|
53
|
+
groq: "groq";
|
|
54
|
+
huggingface: "huggingface";
|
|
63
55
|
"kimi-coding": "kimi-coding";
|
|
64
|
-
"qwen-token-plan": "qwen-token-plan";
|
|
65
|
-
"qwen-token-plan-cn": "qwen-token-plan-cn";
|
|
66
56
|
minimax: "minimax";
|
|
67
57
|
"minimax-cn": "minimax-cn";
|
|
58
|
+
mistral: "mistral";
|
|
68
59
|
moonshotai: "moonshotai";
|
|
69
60
|
"moonshotai-cn": "moonshotai-cn";
|
|
61
|
+
nvidia: "nvidia";
|
|
62
|
+
openai: "openai";
|
|
63
|
+
"openai-codex": "openai-codex";
|
|
64
|
+
opencode: "opencode";
|
|
65
|
+
"opencode-go": "opencode-go";
|
|
66
|
+
openrouter: "openrouter";
|
|
67
|
+
"qwen-token-plan": "qwen-token-plan";
|
|
68
|
+
"qwen-token-plan-cn": "qwen-token-plan-cn";
|
|
69
|
+
together: "together";
|
|
70
|
+
"vercel-ai-gateway": "vercel-ai-gateway";
|
|
71
|
+
xai: "xai";
|
|
70
72
|
xiaomi: "xiaomi";
|
|
71
|
-
"xiaomi-token-plan-cn": "xiaomi-token-plan-cn";
|
|
72
73
|
"xiaomi-token-plan-ams": "xiaomi-token-plan-ams";
|
|
74
|
+
"xiaomi-token-plan-cn": "xiaomi-token-plan-cn";
|
|
73
75
|
"xiaomi-token-plan-sgp": "xiaomi-token-plan-sgp";
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
"openai-codex": "openai-codex";
|
|
77
|
-
"github-copilot": "github-copilot";
|
|
76
|
+
zai: "zai";
|
|
77
|
+
"zai-coding-cn": "zai-coding-cn";
|
|
78
78
|
}>;
|
|
79
79
|
export declare const MODEL_PROVIDER_SLUG_PATTERN: RegExp;
|
|
80
80
|
export declare const modelProviderRefSchema: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-provider-id.d.ts","sourceRoot":"","sources":["../../src/schemas/model-provider-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"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,OAAO,CAEhE"}
|
|
@@ -6,27 +6,27 @@ import { customModelProviderRuntimeConfigSchema } from './custom-model-provider.
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const agentRuntimeCredentialsResponseSchema: z.ZodObject<{
|
|
8
8
|
harness: z.ZodEnum<{
|
|
9
|
-
pi: "pi";
|
|
10
9
|
claude: "claude";
|
|
10
|
+
pi: "pi";
|
|
11
11
|
}>;
|
|
12
12
|
provider_id: z.ZodString;
|
|
13
13
|
model: z.ZodString;
|
|
14
14
|
thinking: z.ZodEnum<{
|
|
15
|
-
|
|
16
|
-
minimal: "minimal";
|
|
15
|
+
high: "high";
|
|
17
16
|
low: "low";
|
|
17
|
+
max: "max";
|
|
18
18
|
medium: "medium";
|
|
19
|
-
|
|
19
|
+
minimal: "minimal";
|
|
20
|
+
off: "off";
|
|
20
21
|
xhigh: "xhigh";
|
|
21
|
-
max: "max";
|
|
22
22
|
}>;
|
|
23
23
|
credentials: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
24
24
|
custom_provider: z.ZodOptional<z.ZodObject<{
|
|
25
25
|
api: z.ZodEnum<{
|
|
26
|
-
"openai-completions": "openai-completions";
|
|
27
|
-
"openai-responses": "openai-responses";
|
|
28
26
|
"anthropic-messages": "anthropic-messages";
|
|
29
27
|
"google-generative-ai": "google-generative-ai";
|
|
28
|
+
"openai-completions": "openai-completions";
|
|
29
|
+
"openai-responses": "openai-responses";
|
|
30
30
|
}>;
|
|
31
31
|
base_url: z.ZodString;
|
|
32
32
|
headers: z.ZodArray<z.ZodObject<{
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const setDefaultHarnessBodySchema: z.ZodObject<{
|
|
3
3
|
harness_id: z.ZodEnum<{
|
|
4
|
-
pi: "pi";
|
|
5
4
|
claude: "claude";
|
|
5
|
+
pi: "pi";
|
|
6
6
|
}>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
export type SetDefaultHarnessBodyDto = z.infer<typeof setDefaultHarnessBodySchema>;
|
|
9
9
|
export declare const setDefaultHarnessResponseSchema: z.ZodObject<{
|
|
10
10
|
default_harness_id: z.ZodEnum<{
|
|
11
|
-
pi: "pi";
|
|
12
11
|
claude: "claude";
|
|
12
|
+
pi: "pi";
|
|
13
13
|
}>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
export type SetDefaultHarnessResponseDto = z.infer<typeof setDefaultHarnessResponseSchema>;
|