@shipfox/api-agent-dto 12.0.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +18 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inter-module.d.ts +56 -43
- package/dist/inter-module.d.ts.map +1 -1
- package/dist/inter-module.js +11 -2
- package/dist/inter-module.js.map +1 -1
- package/dist/schemas/catalog.d.ts +49 -101
- package/dist/schemas/catalog.d.ts.map +1 -1
- package/dist/schemas/catalog.js +26 -5
- package/dist/schemas/catalog.js.map +1 -1
- 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/index.d.ts +3 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +3 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/managed-provider.d.ts +32 -0
- package/dist/schemas/managed-provider.d.ts.map +1 -0
- package/dist/schemas/managed-provider.js +8 -0
- package/dist/schemas/managed-provider.js.map +1 -0
- 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 +16 -7
- package/dist/schemas/runtime-config.d.ts.map +1 -1
- package/dist/schemas/runtime-config.js +7 -2
- package/dist/schemas/runtime-config.js.map +1 -1
- package/dist/schemas/workspace-defaults.d.ts +2 -2
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/index.ts +9 -0
- package/src/inter-module.ts +12 -1
- package/src/schemas/catalog.test.ts +38 -0
- package/src/schemas/catalog.ts +22 -2
- package/src/schemas/index.ts +11 -0
- package/src/schemas/managed-provider.ts +36 -0
- package/src/schemas/runtime-config.test.ts +19 -0
- package/src/schemas/runtime-config.ts +13 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -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,"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,YACvC,WAAW,EACX,UAAU,EACV,wBAAwB,EACxB,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,MAAM,EACN,UAAU,EACV,uBAAuB,EACvB,uBAAuB,EACvB,KAAK,EACL,YAAY,EACZ,mBAAmB,EACnB,KAAK,EACL,eAAe,EACf,UAAU,EACV,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,CACf,CAAC;AAEX,eAAO,MAAM,8BAA8B,YACzC,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,gBAAgB,CACR,CAAC;AAEX,eAAO,MAAM,kBAAkB,ukBAGrB,CAAC;AAEX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuC,CAAC;AACnF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6B,CAAC;AAC3D,eAAO,MAAM,2BAA2B,QAAsC,CAAC;AAC/E,eAAO,MAAM,sBAAsB,aAAgD,CAAC;AAEpF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC/D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEhE"}
|
|
@@ -1,32 +1,37 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { customModelProviderRuntimeConfigSchema } from './custom-model-provider.js';
|
|
3
|
+
export declare const claudeRuntimeConfigSchema: z.ZodObject<{
|
|
4
|
+
base_url: z.ZodString;
|
|
5
|
+
auth_token: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type ClaudeRuntimeConfigDto = z.infer<typeof claudeRuntimeConfigSchema>;
|
|
3
8
|
/**
|
|
4
9
|
* Lease-scoped runtime credentials. The credential values are secrets and must
|
|
5
10
|
* never be written to logs, traces, client state, or generic catalog surfaces.
|
|
6
11
|
*/
|
|
7
12
|
export declare const agentRuntimeCredentialsResponseSchema: z.ZodObject<{
|
|
8
13
|
harness: z.ZodEnum<{
|
|
9
|
-
pi: "pi";
|
|
10
14
|
claude: "claude";
|
|
15
|
+
pi: "pi";
|
|
11
16
|
}>;
|
|
12
17
|
provider_id: z.ZodString;
|
|
13
18
|
model: z.ZodString;
|
|
14
19
|
thinking: z.ZodEnum<{
|
|
15
|
-
|
|
16
|
-
minimal: "minimal";
|
|
20
|
+
high: "high";
|
|
17
21
|
low: "low";
|
|
22
|
+
max: "max";
|
|
18
23
|
medium: "medium";
|
|
19
|
-
|
|
24
|
+
minimal: "minimal";
|
|
25
|
+
off: "off";
|
|
20
26
|
xhigh: "xhigh";
|
|
21
|
-
max: "max";
|
|
22
27
|
}>;
|
|
23
28
|
credentials: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
24
29
|
custom_provider: z.ZodOptional<z.ZodObject<{
|
|
25
30
|
api: z.ZodEnum<{
|
|
26
|
-
"openai-completions": "openai-completions";
|
|
27
|
-
"openai-responses": "openai-responses";
|
|
28
31
|
"anthropic-messages": "anthropic-messages";
|
|
29
32
|
"google-generative-ai": "google-generative-ai";
|
|
33
|
+
"openai-completions": "openai-completions";
|
|
34
|
+
"openai-responses": "openai-responses";
|
|
30
35
|
}>;
|
|
31
36
|
base_url: z.ZodString;
|
|
32
37
|
headers: z.ZodArray<z.ZodObject<{
|
|
@@ -44,6 +49,10 @@ export declare const agentRuntimeCredentialsResponseSchema: z.ZodObject<{
|
|
|
44
49
|
}, z.core.$strip>>;
|
|
45
50
|
requires_api_key: z.ZodBoolean;
|
|
46
51
|
}, z.core.$strip>>;
|
|
52
|
+
claude: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
base_url: z.ZodString;
|
|
54
|
+
auth_token: z.ZodString;
|
|
55
|
+
}, z.core.$strip>>;
|
|
47
56
|
}, z.core.$strip>;
|
|
48
57
|
export type AgentRuntimeCredentialsResponseDto = z.infer<typeof agentRuntimeCredentialsResponseSchema>;
|
|
49
58
|
export type { CustomModelProviderRuntimeConfigDto } from './custom-model-provider.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-config.d.ts","sourceRoot":"","sources":["../../src/schemas/runtime-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,sCAAsC,EAAC,MAAM,4BAA4B,CAAC;AAMlF;;;GAGG;AACH,eAAO,MAAM,qCAAqC
|
|
1
|
+
{"version":3,"file":"runtime-config.d.ts","sourceRoot":"","sources":["../../src/schemas/runtime-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,sCAAsC,EAAC,MAAM,4BAA4B,CAAC;AAMlF,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwB9C,CAAC;AAEL,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,qCAAqC,CAC7C,CAAC;AACF,YAAY,EAAC,mCAAmC,EAAC,MAAM,4BAA4B,CAAC;AACpF,OAAO,EAAC,sCAAsC,EAAC,CAAC"}
|
|
@@ -4,6 +4,10 @@ import { customModelProviderRuntimeConfigSchema } from './custom-model-provider.
|
|
|
4
4
|
import { isReservedModelProviderId, modelProviderRefSchema } from './model-provider-id.js';
|
|
5
5
|
const credentialKeySchema = z.string().min(1);
|
|
6
6
|
const credentialValueSchema = z.string().min(1);
|
|
7
|
+
export const claudeRuntimeConfigSchema = z.object({
|
|
8
|
+
base_url: z.string().url().max(2048),
|
|
9
|
+
auth_token: credentialValueSchema
|
|
10
|
+
});
|
|
7
11
|
/**
|
|
8
12
|
* Lease-scoped runtime credentials. The credential values are secrets and must
|
|
9
13
|
* never be written to logs, traces, client state, or generic catalog surfaces.
|
|
@@ -13,9 +17,10 @@ const credentialValueSchema = z.string().min(1);
|
|
|
13
17
|
model: z.string().min(1),
|
|
14
18
|
thinking: agentThinkingSchema,
|
|
15
19
|
credentials: z.record(credentialKeySchema, credentialValueSchema),
|
|
16
|
-
custom_provider: customModelProviderRuntimeConfigSchema.optional()
|
|
20
|
+
custom_provider: customModelProviderRuntimeConfigSchema.optional(),
|
|
21
|
+
claude: claudeRuntimeConfigSchema.optional()
|
|
17
22
|
}).superRefine((response, ctx)=>{
|
|
18
|
-
if (isReservedModelProviderId(response.provider_id) || response.custom_provider !== undefined) {
|
|
23
|
+
if (isReservedModelProviderId(response.provider_id) || response.custom_provider !== undefined || response.claude !== undefined) {
|
|
19
24
|
return;
|
|
20
25
|
}
|
|
21
26
|
ctx.addIssue({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/runtime-config.ts"],"sourcesContent":["import {agentThinkingSchema, harnessSchema} from '@shipfox/workflow-document';\nimport {z} from 'zod';\nimport {customModelProviderRuntimeConfigSchema} from './custom-model-provider.js';\nimport {isReservedModelProviderId, modelProviderRefSchema} from './model-provider-id.js';\n\nconst credentialKeySchema = z.string().min(1);\nconst credentialValueSchema = z.string().min(1);\n\n/**\n * Lease-scoped runtime credentials. The credential values are secrets and must\n * never be written to logs, traces, client state, or generic catalog surfaces.\n */\nexport const agentRuntimeCredentialsResponseSchema = z\n .object({\n harness: harnessSchema,\n provider_id: modelProviderRefSchema,\n model: z.string().min(1),\n thinking: agentThinkingSchema,\n credentials: z.record(credentialKeySchema, credentialValueSchema),\n custom_provider: customModelProviderRuntimeConfigSchema.optional(),\n })\n .superRefine((response, ctx) => {\n if (isReservedModelProviderId(response.provider_id)
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/runtime-config.ts"],"sourcesContent":["import {agentThinkingSchema, harnessSchema} from '@shipfox/workflow-document';\nimport {z} from 'zod';\nimport {customModelProviderRuntimeConfigSchema} from './custom-model-provider.js';\nimport {isReservedModelProviderId, modelProviderRefSchema} from './model-provider-id.js';\n\nconst credentialKeySchema = z.string().min(1);\nconst credentialValueSchema = z.string().min(1);\n\nexport const claudeRuntimeConfigSchema = z.object({\n base_url: z.string().url().max(2048),\n auth_token: credentialValueSchema,\n});\n\nexport type ClaudeRuntimeConfigDto = z.infer<typeof claudeRuntimeConfigSchema>;\n\n/**\n * Lease-scoped runtime credentials. The credential values are secrets and must\n * never be written to logs, traces, client state, or generic catalog surfaces.\n */\nexport const agentRuntimeCredentialsResponseSchema = z\n .object({\n harness: harnessSchema,\n provider_id: modelProviderRefSchema,\n model: z.string().min(1),\n thinking: agentThinkingSchema,\n credentials: z.record(credentialKeySchema, credentialValueSchema),\n custom_provider: customModelProviderRuntimeConfigSchema.optional(),\n claude: claudeRuntimeConfigSchema.optional(),\n })\n .superRefine((response, ctx) => {\n if (\n isReservedModelProviderId(response.provider_id) ||\n response.custom_provider !== undefined ||\n response.claude !== undefined\n ) {\n return;\n }\n\n ctx.addIssue({\n code: 'custom',\n path: ['custom_provider'],\n message: 'Custom model provider runtime config is required for custom model provider refs.',\n });\n });\n\nexport type AgentRuntimeCredentialsResponseDto = z.infer<\n typeof agentRuntimeCredentialsResponseSchema\n>;\nexport type {CustomModelProviderRuntimeConfigDto} from './custom-model-provider.js';\nexport {customModelProviderRuntimeConfigSchema};\n"],"names":["agentThinkingSchema","harnessSchema","z","customModelProviderRuntimeConfigSchema","isReservedModelProviderId","modelProviderRefSchema","credentialKeySchema","string","min","credentialValueSchema","claudeRuntimeConfigSchema","object","base_url","url","max","auth_token","agentRuntimeCredentialsResponseSchema","harness","provider_id","model","thinking","credentials","record","custom_provider","optional","claude","superRefine","response","ctx","undefined","addIssue","code","path","message"],"mappings":"AAAA,SAAQA,mBAAmB,EAAEC,aAAa,QAAO,6BAA6B;AAC9E,SAAQC,CAAC,QAAO,MAAM;AACtB,SAAQC,sCAAsC,QAAO,6BAA6B;AAClF,SAAQC,yBAAyB,EAAEC,sBAAsB,QAAO,yBAAyB;AAEzF,MAAMC,sBAAsBJ,EAAEK,MAAM,GAAGC,GAAG,CAAC;AAC3C,MAAMC,wBAAwBP,EAAEK,MAAM,GAAGC,GAAG,CAAC;AAE7C,OAAO,MAAME,4BAA4BR,EAAES,MAAM,CAAC;IAChDC,UAAUV,EAAEK,MAAM,GAAGM,GAAG,GAAGC,GAAG,CAAC;IAC/BC,YAAYN;AACd,GAAG;AAIH;;;CAGC,GACD,OAAO,MAAMO,wCAAwCd,EAClDS,MAAM,CAAC;IACNM,SAAShB;IACTiB,aAAab;IACbc,OAAOjB,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACtBY,UAAUpB;IACVqB,aAAanB,EAAEoB,MAAM,CAAChB,qBAAqBG;IAC3Cc,iBAAiBpB,uCAAuCqB,QAAQ;IAChEC,QAAQf,0BAA0Bc,QAAQ;AAC5C,GACCE,WAAW,CAAC,CAACC,UAAUC;IACtB,IACExB,0BAA0BuB,SAAST,WAAW,KAC9CS,SAASJ,eAAe,KAAKM,aAC7BF,SAASF,MAAM,KAAKI,WACpB;QACA;IACF;IAEAD,IAAIE,QAAQ,CAAC;QACXC,MAAM;QACNC,MAAM;YAAC;SAAkB;QACzBC,SAAS;IACX;AACF,GAAG;AAML,SAAQ9B,sCAAsC,GAAE"}
|
|
@@ -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>;
|