@dexto/agent-management 1.6.27 → 1.7.1
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/dist/AgentManager.cjs +1 -1
- package/dist/AgentManager.d.ts +3 -35
- package/dist/AgentManager.d.ts.map +1 -1
- package/dist/AgentManager.js +1 -1
- package/dist/images/image-store.cjs +2 -0
- package/dist/images/image-store.d.ts +3 -39
- package/dist/images/image-store.d.ts.map +1 -1
- package/dist/images/image-store.js +2 -0
- package/dist/models/custom-models.d.ts +14 -62
- package/dist/models/custom-models.d.ts.map +1 -1
- package/dist/models/model-picker-state.d.ts +102 -101
- package/dist/models/model-picker-state.d.ts.map +1 -1
- package/dist/plugins/marketplace/schemas.cjs +1 -1
- package/dist/plugins/marketplace/schemas.d.ts +32 -196
- package/dist/plugins/marketplace/schemas.d.ts.map +1 -1
- package/dist/plugins/marketplace/schemas.js +1 -1
- package/dist/plugins/schemas.cjs +2 -2
- package/dist/plugins/schemas.d.ts +17 -143
- package/dist/plugins/schemas.d.ts.map +1 -1
- package/dist/plugins/schemas.js +2 -2
- package/dist/preferences/schemas.cjs +2 -2
- package/dist/preferences/schemas.d.ts +78 -246
- package/dist/preferences/schemas.d.ts.map +1 -1
- package/dist/preferences/schemas.js +2 -2
- package/dist/project-registry.d.ts +6 -86
- package/dist/project-registry.d.ts.map +1 -1
- package/dist/registry/types.d.ts +13 -73
- package/dist/registry/types.d.ts.map +1 -1
- package/dist/runtime/schemas.cjs +2 -2
- package/dist/runtime/schemas.d.ts +26 -31
- package/dist/runtime/schemas.d.ts.map +1 -1
- package/dist/runtime/schemas.js +2 -2
- package/dist/tool-factories/agent-spawner/factory.d.ts.map +1 -1
- package/dist/tool-factories/agent-spawner/schemas.d.ts +4 -61
- package/dist/tool-factories/agent-spawner/schemas.d.ts.map +1 -1
- package/dist/tool-factories/creator-tools/schemas.d.ts +9 -8
- package/dist/tool-factories/creator-tools/schemas.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/AgentManager.cjs
CHANGED
|
@@ -108,7 +108,7 @@ class AgentManager {
|
|
|
108
108
|
if (error instanceof import_zod.ZodError) {
|
|
109
109
|
throw import_errors.RegistryError.registryParseError(
|
|
110
110
|
this.registryPath,
|
|
111
|
-
`Invalid registry schema: ${error.
|
|
111
|
+
`Invalid registry schema: ${error.issues.map((e) => e.message).join(", ")}`
|
|
112
112
|
);
|
|
113
113
|
}
|
|
114
114
|
throw import_errors.RegistryError.registryParseError(
|
package/dist/AgentManager.d.ts
CHANGED
|
@@ -37,41 +37,9 @@ declare const RegistrySchema: z.ZodObject<{
|
|
|
37
37
|
description: z.ZodString;
|
|
38
38
|
configPath: z.ZodString;
|
|
39
39
|
author: z.ZodOptional<z.ZodString>;
|
|
40
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
name: string;
|
|
44
|
-
description: string;
|
|
45
|
-
configPath: string;
|
|
46
|
-
author?: string | undefined;
|
|
47
|
-
tags?: string[] | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
id: string;
|
|
50
|
-
name: string;
|
|
51
|
-
description: string;
|
|
52
|
-
configPath: string;
|
|
53
|
-
author?: string | undefined;
|
|
54
|
-
tags?: string[] | undefined;
|
|
55
|
-
}>, "many">;
|
|
56
|
-
}, "strict", z.ZodTypeAny, {
|
|
57
|
-
agents: {
|
|
58
|
-
id: string;
|
|
59
|
-
name: string;
|
|
60
|
-
description: string;
|
|
61
|
-
configPath: string;
|
|
62
|
-
author?: string | undefined;
|
|
63
|
-
tags?: string[] | undefined;
|
|
64
|
-
}[];
|
|
65
|
-
}, {
|
|
66
|
-
agents: {
|
|
67
|
-
id: string;
|
|
68
|
-
name: string;
|
|
69
|
-
description: string;
|
|
70
|
-
configPath: string;
|
|
71
|
-
author?: string | undefined;
|
|
72
|
-
tags?: string[] | undefined;
|
|
73
|
-
}[];
|
|
74
|
-
}>;
|
|
40
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
+
}, z.core.$strict>>;
|
|
42
|
+
}, z.core.$strict>;
|
|
75
43
|
type Registry = z.output<typeof RegistrySchema>;
|
|
76
44
|
/**
|
|
77
45
|
* AgentManager - Simple registry-based agent lifecycle management
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentManager.d.ts","sourceRoot":"","sources":["../src/AgentManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,EAAE,CAAC,EAAY,MAAM,KAAK,CAAC;AAGlC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CAC/B;AAED;;GAEG;AACH,QAAA,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"AgentManager.d.ts","sourceRoot":"","sources":["../src/AgentManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,EAAE,CAAC,EAAY,MAAM,KAAK,CAAC;AAGlC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CAC/B;AAED;;GAEG;AACH,QAAA,MAAM,cAAc;;;;;;;;;kBAeP,CAAC;AAEd,KAAK,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,YAAY;IACrB,OAAO,CAAC,QAAQ,CAAyB;IACzC,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAS;IAEzB;;;;;;;;;;;;;OAaG;gBACS,YAAY,EAAE,MAAM;IAKhC;;;;;;;;;;;;;;;;OAgBG;IACG,YAAY,IAAI,OAAO,CAAC,QAAQ,CAAC;IA8BvC;;;;;;;;;;;;;;;OAeG;IACH,UAAU,IAAI,aAAa,EAAE;IAiB7B;;;;;;;;;;;;;;;;;;;OAmBG;IACG,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAqChD;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;CAUhC"}
|
package/dist/AgentManager.js
CHANGED
|
@@ -75,7 +75,7 @@ class AgentManager {
|
|
|
75
75
|
if (error instanceof ZodError) {
|
|
76
76
|
throw RegistryError.registryParseError(
|
|
77
77
|
this.registryPath,
|
|
78
|
-
`Invalid registry schema: ${error.
|
|
78
|
+
`Invalid registry schema: ${error.issues.map((e) => e.message).join(", ")}`
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
81
|
throw RegistryError.registryParseError(
|
|
@@ -53,9 +53,11 @@ var import_path2 = require("../utils/path.js");
|
|
|
53
53
|
const ImageRegistryFileSchema = import_zod.z.object({
|
|
54
54
|
version: import_zod.z.literal(1),
|
|
55
55
|
images: import_zod.z.record(
|
|
56
|
+
import_zod.z.string(),
|
|
56
57
|
import_zod.z.object({
|
|
57
58
|
active: import_zod.z.string().optional(),
|
|
58
59
|
installed: import_zod.z.record(
|
|
60
|
+
import_zod.z.string(),
|
|
59
61
|
import_zod.z.object({
|
|
60
62
|
entryFile: import_zod.z.string(),
|
|
61
63
|
installedAt: import_zod.z.string()
|
|
@@ -6,45 +6,9 @@ declare const ImageRegistryFileSchema: z.ZodObject<{
|
|
|
6
6
|
installed: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7
7
|
entryFile: z.ZodString;
|
|
8
8
|
installedAt: z.ZodString;
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}, {
|
|
13
|
-
installedAt: string;
|
|
14
|
-
entryFile: string;
|
|
15
|
-
}>>;
|
|
16
|
-
}, "strict", z.ZodTypeAny, {
|
|
17
|
-
installed: Record<string, {
|
|
18
|
-
installedAt: string;
|
|
19
|
-
entryFile: string;
|
|
20
|
-
}>;
|
|
21
|
-
active?: string | undefined;
|
|
22
|
-
}, {
|
|
23
|
-
installed: Record<string, {
|
|
24
|
-
installedAt: string;
|
|
25
|
-
entryFile: string;
|
|
26
|
-
}>;
|
|
27
|
-
active?: string | undefined;
|
|
28
|
-
}>>;
|
|
29
|
-
}, "strict", z.ZodTypeAny, {
|
|
30
|
-
version: 1;
|
|
31
|
-
images: Record<string, {
|
|
32
|
-
installed: Record<string, {
|
|
33
|
-
installedAt: string;
|
|
34
|
-
entryFile: string;
|
|
35
|
-
}>;
|
|
36
|
-
active?: string | undefined;
|
|
37
|
-
}>;
|
|
38
|
-
}, {
|
|
39
|
-
version: 1;
|
|
40
|
-
images: Record<string, {
|
|
41
|
-
installed: Record<string, {
|
|
42
|
-
installedAt: string;
|
|
43
|
-
entryFile: string;
|
|
44
|
-
}>;
|
|
45
|
-
active?: string | undefined;
|
|
46
|
-
}>;
|
|
47
|
-
}>;
|
|
9
|
+
}, z.core.$strict>>;
|
|
10
|
+
}, z.core.$strict>>;
|
|
11
|
+
}, z.core.$strict>;
|
|
48
12
|
export type ImageRegistryFile = z.output<typeof ImageRegistryFileSchema>;
|
|
49
13
|
export interface ImageSpecifierParts {
|
|
50
14
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-store.d.ts","sourceRoot":"","sources":["../../src/images/image-store.ts"],"names":[],"mappings":"AAKA,O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AA8B,CAChD,SAAS,EAAE,mBAAmB,EAC9B,QAAQ,GAAE,MAAkC,GAC7C,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA8BxB;AAED,wBAAsB,qBAAqB,CACvC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,QAAQ,GAAE,MAAkC,GAC7C,OAAO,CAAC,IAAI,CAAC,CASf;AAED,wBAAsB,oBAAoB,CACtC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,GACtD,OAAO,CAAC,IAAI,CAAC,CA+Bf"}
|
|
@@ -8,9 +8,11 @@ import { getDextoGlobalPath } from "../utils/path.js";
|
|
|
8
8
|
const ImageRegistryFileSchema = z.object({
|
|
9
9
|
version: z.literal(1),
|
|
10
10
|
images: z.record(
|
|
11
|
+
z.string(),
|
|
11
12
|
z.object({
|
|
12
13
|
active: z.string().optional(),
|
|
13
14
|
installed: z.record(
|
|
15
|
+
z.string(),
|
|
14
16
|
z.object({
|
|
15
17
|
entryFile: z.string(),
|
|
16
18
|
installedAt: z.string()
|
|
@@ -25,9 +25,19 @@ export type CustomModelProvider = (typeof CUSTOM_MODEL_PROVIDERS)[number];
|
|
|
25
25
|
* rather than in the local JSON file. Current approach is suitable for
|
|
26
26
|
* local CLI usage where the file is in ~/.dexto/ (user-private).
|
|
27
27
|
*/
|
|
28
|
-
export declare const CustomModelSchema: z.
|
|
28
|
+
export declare const CustomModelSchema: z.ZodObject<{
|
|
29
29
|
name: z.ZodString;
|
|
30
|
-
provider: z.ZodDefault<z.ZodEnum<
|
|
30
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
31
|
+
"openai-compatible": "openai-compatible";
|
|
32
|
+
openrouter: "openrouter";
|
|
33
|
+
litellm: "litellm";
|
|
34
|
+
glama: "glama";
|
|
35
|
+
vertex: "vertex";
|
|
36
|
+
bedrock: "bedrock";
|
|
37
|
+
local: "local";
|
|
38
|
+
ollama: "ollama";
|
|
39
|
+
"dexto-nova": "dexto-nova";
|
|
40
|
+
}>>;
|
|
31
41
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
32
42
|
displayName: z.ZodOptional<z.ZodString>;
|
|
33
43
|
maxInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -37,66 +47,8 @@ export declare const CustomModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
37
47
|
reasoning: z.ZodOptional<z.ZodObject<{
|
|
38
48
|
variant: z.ZodString;
|
|
39
49
|
budgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
budgetTokens?: number | undefined;
|
|
43
|
-
}, {
|
|
44
|
-
variant: string;
|
|
45
|
-
budgetTokens?: number | undefined;
|
|
46
|
-
}>>;
|
|
47
|
-
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
name: string;
|
|
49
|
-
provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
50
|
-
apiKey?: string | undefined;
|
|
51
|
-
baseURL?: string | undefined;
|
|
52
|
-
reasoning?: {
|
|
53
|
-
variant: string;
|
|
54
|
-
budgetTokens?: number | undefined;
|
|
55
|
-
} | undefined;
|
|
56
|
-
filePath?: string | undefined;
|
|
57
|
-
displayName?: string | undefined;
|
|
58
|
-
maxInputTokens?: number | undefined;
|
|
59
|
-
maxOutputTokens?: number | undefined;
|
|
60
|
-
}, {
|
|
61
|
-
name: string;
|
|
62
|
-
provider?: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
63
|
-
apiKey?: string | undefined;
|
|
64
|
-
baseURL?: string | undefined;
|
|
65
|
-
reasoning?: {
|
|
66
|
-
variant: string;
|
|
67
|
-
budgetTokens?: number | undefined;
|
|
68
|
-
} | undefined;
|
|
69
|
-
filePath?: string | undefined;
|
|
70
|
-
displayName?: string | undefined;
|
|
71
|
-
maxInputTokens?: number | undefined;
|
|
72
|
-
maxOutputTokens?: number | undefined;
|
|
73
|
-
}>, {
|
|
74
|
-
name: string;
|
|
75
|
-
provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
76
|
-
apiKey?: string | undefined;
|
|
77
|
-
baseURL?: string | undefined;
|
|
78
|
-
reasoning?: {
|
|
79
|
-
variant: string;
|
|
80
|
-
budgetTokens?: number | undefined;
|
|
81
|
-
} | undefined;
|
|
82
|
-
filePath?: string | undefined;
|
|
83
|
-
displayName?: string | undefined;
|
|
84
|
-
maxInputTokens?: number | undefined;
|
|
85
|
-
maxOutputTokens?: number | undefined;
|
|
86
|
-
}, {
|
|
87
|
-
name: string;
|
|
88
|
-
provider?: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
89
|
-
apiKey?: string | undefined;
|
|
90
|
-
baseURL?: string | undefined;
|
|
91
|
-
reasoning?: {
|
|
92
|
-
variant: string;
|
|
93
|
-
budgetTokens?: number | undefined;
|
|
94
|
-
} | undefined;
|
|
95
|
-
filePath?: string | undefined;
|
|
96
|
-
displayName?: string | undefined;
|
|
97
|
-
maxInputTokens?: number | undefined;
|
|
98
|
-
maxOutputTokens?: number | undefined;
|
|
99
|
-
}>;
|
|
50
|
+
}, z.core.$strict>>;
|
|
51
|
+
}, z.core.$strip>;
|
|
100
52
|
export type CustomModel = z.output<typeof CustomModelSchema>;
|
|
101
53
|
/**
|
|
102
54
|
* Get the path to the custom models storage file.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-models.d.ts","sourceRoot":"","sources":["../../src/models/custom-models.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,2CAA2C;AAC3C,eAAO,MAAM,sBAAsB,wHAUzB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"custom-models.d.ts","sourceRoot":"","sources":["../../src/models/custom-models.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,2CAA2C;AAC3C,eAAO,MAAM,sBAAsB,wHAUzB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;iBAkDxB,CAAC;AAEP,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAO7D;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED;;GAEG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAmB/D;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBvE;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAUtE;AAED;;GAEG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAG9E"}
|
|
@@ -4,127 +4,128 @@ export declare const MODEL_PICKER_STATE_VERSION = 1;
|
|
|
4
4
|
export declare const MODEL_PICKER_RECENTS_LIMIT = 10;
|
|
5
5
|
export declare const MODEL_PICKER_FAVORITES_LIMIT = 100;
|
|
6
6
|
declare const ModelPickerModelSchema: z.ZodObject<{
|
|
7
|
-
provider: z.ZodEnum<
|
|
7
|
+
provider: z.ZodEnum<{
|
|
8
|
+
openai: "openai";
|
|
9
|
+
"openai-compatible": "openai-compatible";
|
|
10
|
+
anthropic: "anthropic";
|
|
11
|
+
google: "google";
|
|
12
|
+
groq: "groq";
|
|
13
|
+
xai: "xai";
|
|
14
|
+
cohere: "cohere";
|
|
15
|
+
minimax: "minimax";
|
|
16
|
+
glm: "glm";
|
|
17
|
+
openrouter: "openrouter";
|
|
18
|
+
litellm: "litellm";
|
|
19
|
+
glama: "glama";
|
|
20
|
+
vertex: "vertex";
|
|
21
|
+
bedrock: "bedrock";
|
|
22
|
+
local: "local";
|
|
23
|
+
ollama: "ollama";
|
|
24
|
+
"dexto-nova": "dexto-nova";
|
|
25
|
+
}>;
|
|
8
26
|
model: z.ZodString;
|
|
9
27
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
10
|
-
},
|
|
11
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
12
|
-
model: string;
|
|
13
|
-
baseURL?: string | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
16
|
-
model: string;
|
|
17
|
-
baseURL?: string | undefined;
|
|
18
|
-
}>;
|
|
28
|
+
}, z.core.$strict>;
|
|
19
29
|
declare const ModelPickerEntrySchema: z.ZodObject<{
|
|
20
|
-
provider: z.ZodEnum<
|
|
30
|
+
provider: z.ZodEnum<{
|
|
31
|
+
openai: "openai";
|
|
32
|
+
"openai-compatible": "openai-compatible";
|
|
33
|
+
anthropic: "anthropic";
|
|
34
|
+
google: "google";
|
|
35
|
+
groq: "groq";
|
|
36
|
+
xai: "xai";
|
|
37
|
+
cohere: "cohere";
|
|
38
|
+
minimax: "minimax";
|
|
39
|
+
glm: "glm";
|
|
40
|
+
openrouter: "openrouter";
|
|
41
|
+
litellm: "litellm";
|
|
42
|
+
glama: "glama";
|
|
43
|
+
vertex: "vertex";
|
|
44
|
+
bedrock: "bedrock";
|
|
45
|
+
local: "local";
|
|
46
|
+
ollama: "ollama";
|
|
47
|
+
"dexto-nova": "dexto-nova";
|
|
48
|
+
}>;
|
|
21
49
|
model: z.ZodString;
|
|
22
50
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
23
|
-
} & {
|
|
24
51
|
updatedAt: z.ZodString;
|
|
25
|
-
},
|
|
26
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
27
|
-
model: string;
|
|
28
|
-
updatedAt: string;
|
|
29
|
-
baseURL?: string | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
32
|
-
model: string;
|
|
33
|
-
updatedAt: string;
|
|
34
|
-
baseURL?: string | undefined;
|
|
35
|
-
}>;
|
|
52
|
+
}, z.core.$strict>;
|
|
36
53
|
declare const ModelPickerStateSchema: z.ZodObject<{
|
|
37
54
|
version: z.ZodLiteral<1>;
|
|
38
55
|
recents: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
39
|
-
provider: z.ZodEnum<
|
|
56
|
+
provider: z.ZodEnum<{
|
|
57
|
+
openai: "openai";
|
|
58
|
+
"openai-compatible": "openai-compatible";
|
|
59
|
+
anthropic: "anthropic";
|
|
60
|
+
google: "google";
|
|
61
|
+
groq: "groq";
|
|
62
|
+
xai: "xai";
|
|
63
|
+
cohere: "cohere";
|
|
64
|
+
minimax: "minimax";
|
|
65
|
+
glm: "glm";
|
|
66
|
+
openrouter: "openrouter";
|
|
67
|
+
litellm: "litellm";
|
|
68
|
+
glama: "glama";
|
|
69
|
+
vertex: "vertex";
|
|
70
|
+
bedrock: "bedrock";
|
|
71
|
+
local: "local";
|
|
72
|
+
ollama: "ollama";
|
|
73
|
+
"dexto-nova": "dexto-nova";
|
|
74
|
+
}>;
|
|
40
75
|
model: z.ZodString;
|
|
41
76
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
42
|
-
} & {
|
|
43
77
|
updatedAt: z.ZodString;
|
|
44
|
-
},
|
|
45
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
46
|
-
model: string;
|
|
47
|
-
updatedAt: string;
|
|
48
|
-
baseURL?: string | undefined;
|
|
49
|
-
}, {
|
|
50
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
51
|
-
model: string;
|
|
52
|
-
updatedAt: string;
|
|
53
|
-
baseURL?: string | undefined;
|
|
54
|
-
}>, "many">>;
|
|
78
|
+
}, z.core.$strict>>>;
|
|
55
79
|
favorites: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
56
|
-
provider: z.ZodEnum<
|
|
80
|
+
provider: z.ZodEnum<{
|
|
81
|
+
openai: "openai";
|
|
82
|
+
"openai-compatible": "openai-compatible";
|
|
83
|
+
anthropic: "anthropic";
|
|
84
|
+
google: "google";
|
|
85
|
+
groq: "groq";
|
|
86
|
+
xai: "xai";
|
|
87
|
+
cohere: "cohere";
|
|
88
|
+
minimax: "minimax";
|
|
89
|
+
glm: "glm";
|
|
90
|
+
openrouter: "openrouter";
|
|
91
|
+
litellm: "litellm";
|
|
92
|
+
glama: "glama";
|
|
93
|
+
vertex: "vertex";
|
|
94
|
+
bedrock: "bedrock";
|
|
95
|
+
local: "local";
|
|
96
|
+
ollama: "ollama";
|
|
97
|
+
"dexto-nova": "dexto-nova";
|
|
98
|
+
}>;
|
|
57
99
|
model: z.ZodString;
|
|
58
100
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
59
|
-
} & {
|
|
60
101
|
updatedAt: z.ZodString;
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
model: string;
|
|
64
|
-
updatedAt: string;
|
|
65
|
-
baseURL?: string | undefined;
|
|
66
|
-
}, {
|
|
67
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
68
|
-
model: string;
|
|
69
|
-
updatedAt: string;
|
|
70
|
-
baseURL?: string | undefined;
|
|
71
|
-
}>, "many">>;
|
|
72
|
-
}, "strict", z.ZodTypeAny, {
|
|
73
|
-
version: 1;
|
|
74
|
-
recents: {
|
|
75
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
76
|
-
model: string;
|
|
77
|
-
updatedAt: string;
|
|
78
|
-
baseURL?: string | undefined;
|
|
79
|
-
}[];
|
|
80
|
-
favorites: {
|
|
81
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
82
|
-
model: string;
|
|
83
|
-
updatedAt: string;
|
|
84
|
-
baseURL?: string | undefined;
|
|
85
|
-
}[];
|
|
86
|
-
}, {
|
|
87
|
-
version: 1;
|
|
88
|
-
recents?: {
|
|
89
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
90
|
-
model: string;
|
|
91
|
-
updatedAt: string;
|
|
92
|
-
baseURL?: string | undefined;
|
|
93
|
-
}[] | undefined;
|
|
94
|
-
favorites?: {
|
|
95
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
96
|
-
model: string;
|
|
97
|
-
updatedAt: string;
|
|
98
|
-
baseURL?: string | undefined;
|
|
99
|
-
}[] | undefined;
|
|
100
|
-
}>;
|
|
102
|
+
}, z.core.$strict>>>;
|
|
103
|
+
}, z.core.$strict>;
|
|
101
104
|
declare const SetFavoriteModelsInputSchema: z.ZodObject<{
|
|
102
105
|
favorites: z.ZodArray<z.ZodObject<{
|
|
103
|
-
provider: z.ZodEnum<
|
|
106
|
+
provider: z.ZodEnum<{
|
|
107
|
+
openai: "openai";
|
|
108
|
+
"openai-compatible": "openai-compatible";
|
|
109
|
+
anthropic: "anthropic";
|
|
110
|
+
google: "google";
|
|
111
|
+
groq: "groq";
|
|
112
|
+
xai: "xai";
|
|
113
|
+
cohere: "cohere";
|
|
114
|
+
minimax: "minimax";
|
|
115
|
+
glm: "glm";
|
|
116
|
+
openrouter: "openrouter";
|
|
117
|
+
litellm: "litellm";
|
|
118
|
+
glama: "glama";
|
|
119
|
+
vertex: "vertex";
|
|
120
|
+
bedrock: "bedrock";
|
|
121
|
+
local: "local";
|
|
122
|
+
ollama: "ollama";
|
|
123
|
+
"dexto-nova": "dexto-nova";
|
|
124
|
+
}>;
|
|
104
125
|
model: z.ZodString;
|
|
105
126
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
model: string;
|
|
109
|
-
baseURL?: string | undefined;
|
|
110
|
-
}, {
|
|
111
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
112
|
-
model: string;
|
|
113
|
-
baseURL?: string | undefined;
|
|
114
|
-
}>, "many">;
|
|
115
|
-
}, "strict", z.ZodTypeAny, {
|
|
116
|
-
favorites: {
|
|
117
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
118
|
-
model: string;
|
|
119
|
-
baseURL?: string | undefined;
|
|
120
|
-
}[];
|
|
121
|
-
}, {
|
|
122
|
-
favorites: {
|
|
123
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
124
|
-
model: string;
|
|
125
|
-
baseURL?: string | undefined;
|
|
126
|
-
}[];
|
|
127
|
-
}>;
|
|
127
|
+
}, z.core.$strict>>;
|
|
128
|
+
}, z.core.$strict>;
|
|
128
129
|
export type ModelPickerModel = z.output<typeof ModelPickerModelSchema>;
|
|
129
130
|
export type ModelPickerEntry = z.output<typeof ModelPickerEntrySchema>;
|
|
130
131
|
export type ModelPickerState = z.output<typeof ModelPickerStateSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-picker-state.d.ts","sourceRoot":"","sources":["../../src/models/model-picker-state.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,0BAA0B,IAAI,CAAC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,wBAAgB,qBAAqB,CAAC,KAAK,EAAE;IACzC,KAAK,EAAE,gBAAgB,CAAC;IACxB,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC5B,GAAG,gBAAgB,CAenB;AAED,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAkBtE;AAED,wBAAsB,oBAAoB,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAajF;AAED,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAkB1F;AAED,wBAAsB,mBAAmB,CACrC,KAAK,EAAE,gBAAgB,GACxB,OAAO,CAAC;IAAE,KAAK,EAAE,gBAAgB,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE,CAAC,CA+B3D;AAED,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAoBhG"}
|
|
@@ -40,7 +40,7 @@ const MarketplaceEntrySchema = import_zod.z.object({
|
|
|
40
40
|
}).strict();
|
|
41
41
|
const KnownMarketplacesFileSchema = import_zod.z.object({
|
|
42
42
|
version: import_zod.z.number().default(1).describe("File format version"),
|
|
43
|
-
marketplaces: import_zod.z.record(MarketplaceEntrySchema).default({}).describe("Registered marketplaces by name")
|
|
43
|
+
marketplaces: import_zod.z.record(import_zod.z.string(), MarketplaceEntrySchema).default({}).describe("Registered marketplaces by name")
|
|
44
44
|
}).strict();
|
|
45
45
|
const MarketplacePluginEntrySchema = import_zod.z.object({
|
|
46
46
|
name: import_zod.z.string().min(1).describe("Plugin name"),
|