@dexto/agent-management 1.5.6 → 1.5.8
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/config/config-enrichment.cjs +72 -21
- package/dist/config/config-enrichment.d.ts +10 -2
- package/dist/config/config-enrichment.d.ts.map +1 -1
- package/dist/config/config-enrichment.js +76 -21
- package/dist/config/discover-prompts.cjs +1 -1
- package/dist/config/discover-prompts.d.ts +11 -11
- package/dist/config/discover-prompts.d.ts.map +1 -1
- package/dist/config/discover-prompts.js +1 -1
- package/dist/config/loader.cjs +31 -13
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/loader.js +31 -13
- package/dist/index.cjs +76 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +78 -0
- package/dist/models/custom-models.cjs +2 -1
- package/dist/models/custom-models.d.ts +7 -6
- package/dist/models/custom-models.d.ts.map +1 -1
- package/dist/models/custom-models.js +2 -1
- package/dist/plugins/discover-plugins.cjs +176 -0
- package/dist/plugins/discover-plugins.d.ts +39 -0
- package/dist/plugins/discover-plugins.d.ts.map +1 -0
- package/dist/plugins/discover-plugins.js +140 -0
- package/dist/plugins/discover-skills.cjs +93 -0
- package/dist/plugins/discover-skills.d.ts +49 -0
- package/dist/plugins/discover-skills.d.ts.map +1 -0
- package/dist/plugins/discover-skills.js +58 -0
- package/dist/plugins/error-codes.cjs +47 -0
- package/dist/plugins/error-codes.d.ts +24 -0
- package/dist/plugins/error-codes.d.ts.map +1 -0
- package/dist/plugins/error-codes.js +23 -0
- package/dist/plugins/errors.cjs +197 -0
- package/dist/plugins/errors.d.ts +68 -0
- package/dist/plugins/errors.d.ts.map +1 -0
- package/dist/plugins/errors.js +173 -0
- package/dist/plugins/index.cjs +144 -0
- package/dist/plugins/index.d.ts +23 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +115 -0
- package/dist/plugins/install-plugin.cjs +211 -0
- package/dist/plugins/install-plugin.d.ts +47 -0
- package/dist/plugins/install-plugin.d.ts.map +1 -0
- package/dist/plugins/install-plugin.js +173 -0
- package/dist/plugins/list-plugins.cjs +134 -0
- package/dist/plugins/list-plugins.d.ts +26 -0
- package/dist/plugins/list-plugins.d.ts.map +1 -0
- package/dist/plugins/list-plugins.js +99 -0
- package/dist/plugins/load-plugin.cjs +197 -0
- package/dist/plugins/load-plugin.d.ts +20 -0
- package/dist/plugins/load-plugin.d.ts.map +1 -0
- package/dist/plugins/load-plugin.js +163 -0
- package/dist/plugins/marketplace/error-codes.cjs +45 -0
- package/dist/plugins/marketplace/error-codes.d.ts +21 -0
- package/dist/plugins/marketplace/error-codes.d.ts.map +1 -0
- package/dist/plugins/marketplace/error-codes.js +21 -0
- package/dist/plugins/marketplace/errors.cjs +188 -0
- package/dist/plugins/marketplace/errors.d.ts +64 -0
- package/dist/plugins/marketplace/errors.d.ts.map +1 -0
- package/dist/plugins/marketplace/errors.js +164 -0
- package/dist/plugins/marketplace/index.cjs +95 -0
- package/dist/plugins/marketplace/index.d.ts +14 -0
- package/dist/plugins/marketplace/index.d.ts.map +1 -0
- package/dist/plugins/marketplace/index.js +74 -0
- package/dist/plugins/marketplace/install-from-marketplace.cjs +152 -0
- package/dist/plugins/marketplace/install-from-marketplace.d.ts +25 -0
- package/dist/plugins/marketplace/install-from-marketplace.d.ts.map +1 -0
- package/dist/plugins/marketplace/install-from-marketplace.js +120 -0
- package/dist/plugins/marketplace/operations.cjs +374 -0
- package/dist/plugins/marketplace/operations.d.ts +43 -0
- package/dist/plugins/marketplace/operations.d.ts.map +1 -0
- package/dist/plugins/marketplace/operations.js +339 -0
- package/dist/plugins/marketplace/registry.cjs +166 -0
- package/dist/plugins/marketplace/registry.d.ts +72 -0
- package/dist/plugins/marketplace/registry.d.ts.map +1 -0
- package/dist/plugins/marketplace/registry.js +119 -0
- package/dist/plugins/marketplace/schemas.cjs +79 -0
- package/dist/plugins/marketplace/schemas.d.ts +260 -0
- package/dist/plugins/marketplace/schemas.d.ts.map +1 -0
- package/dist/plugins/marketplace/schemas.js +49 -0
- package/dist/plugins/marketplace/types.cjs +16 -0
- package/dist/plugins/marketplace/types.d.ts +156 -0
- package/dist/plugins/marketplace/types.d.ts.map +1 -0
- package/dist/plugins/marketplace/types.js +0 -0
- package/dist/plugins/schemas.cjs +74 -0
- package/dist/plugins/schemas.d.ts +262 -0
- package/dist/plugins/schemas.d.ts.map +1 -0
- package/dist/plugins/schemas.js +46 -0
- package/dist/plugins/types.cjs +16 -0
- package/dist/plugins/types.d.ts +186 -0
- package/dist/plugins/types.d.ts.map +1 -0
- package/dist/plugins/types.js +0 -0
- package/dist/plugins/uninstall-plugin.cjs +133 -0
- package/dist/plugins/uninstall-plugin.d.ts +24 -0
- package/dist/plugins/uninstall-plugin.d.ts.map +1 -0
- package/dist/plugins/uninstall-plugin.js +99 -0
- package/dist/plugins/validate-plugin.cjs +180 -0
- package/dist/plugins/validate-plugin.d.ts +53 -0
- package/dist/plugins/validate-plugin.d.ts.map +1 -0
- package/dist/plugins/validate-plugin.js +145 -0
- package/dist/preferences/errors.cjs +11 -0
- package/dist/preferences/errors.d.ts +1 -0
- package/dist/preferences/errors.d.ts.map +1 -1
- package/dist/preferences/errors.js +11 -0
- package/dist/preferences/loader.cjs +119 -6
- package/dist/preferences/loader.d.ts +21 -1
- package/dist/preferences/loader.d.ts.map +1 -1
- package/dist/preferences/loader.js +102 -1
- package/dist/preferences/schemas.cjs +12 -0
- package/dist/preferences/schemas.d.ts +38 -12
- package/dist/preferences/schemas.d.ts.map +1 -1
- package/dist/preferences/schemas.js +10 -0
- package/dist/runtime/AgentRuntime.cjs +1 -2
- package/dist/runtime/AgentRuntime.d.ts.map +1 -1
- package/dist/runtime/AgentRuntime.js +1 -2
- package/dist/tool-provider/llm-resolution.cjs +74 -0
- package/dist/tool-provider/llm-resolution.d.ts +51 -0
- package/dist/tool-provider/llm-resolution.d.ts.map +1 -0
- package/dist/tool-provider/llm-resolution.js +50 -0
- package/dist/tool-provider/runtime-service.cjs +246 -34
- package/dist/tool-provider/runtime-service.d.ts +34 -2
- package/dist/tool-provider/runtime-service.d.ts.map +1 -1
- package/dist/tool-provider/runtime-service.js +236 -34
- package/dist/tool-provider/tool-provider.cjs +154 -1
- package/dist/tool-provider/tool-provider.d.ts +7 -1
- package/dist/tool-provider/tool-provider.d.ts.map +1 -1
- package/dist/tool-provider/tool-provider.js +161 -1
- package/dist/tool-provider/types.d.ts +2 -0
- package/dist/tool-provider/types.d.ts.map +1 -1
- package/dist/utils/api-key-resolver.cjs +5 -2
- package/dist/utils/api-key-resolver.d.ts.map +1 -1
- package/dist/utils/api-key-resolver.js +5 -2
- package/dist/utils/dexto-auth.cjs +83 -0
- package/dist/utils/dexto-auth.d.ts +23 -0
- package/dist/utils/dexto-auth.d.ts.map +1 -0
- package/dist/utils/dexto-auth.js +57 -0
- package/dist/utils/feature-flags.cjs +32 -0
- package/dist/utils/feature-flags.d.ts +21 -0
- package/dist/utils/feature-flags.d.ts.map +1 -0
- package/dist/utils/feature-flags.js +8 -0
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -25,15 +25,25 @@ __export(index_exports, {
|
|
|
25
25
|
ConfigError: () => import_config.ConfigError,
|
|
26
26
|
ConfigErrorCode: () => import_config.ConfigErrorCode,
|
|
27
27
|
CustomModelSchema: () => import_custom_models.CustomModelSchema,
|
|
28
|
+
DEFAULT_MARKETPLACES: () => import_plugins.DEFAULT_MARKETPLACES,
|
|
29
|
+
MarketplaceError: () => import_plugins.MarketplaceError,
|
|
30
|
+
MarketplaceErrorCode: () => import_plugins.MarketplaceErrorCode,
|
|
28
31
|
PROVIDER_API_KEY_MAP: () => import_api_key_resolver.PROVIDER_API_KEY_MAP,
|
|
32
|
+
PluginError: () => import_plugins.PluginError,
|
|
33
|
+
PluginErrorCode: () => import_plugins.PluginErrorCode,
|
|
34
|
+
PluginMCPConfigSchema: () => import_plugins.PluginMCPConfigSchema,
|
|
35
|
+
PluginManifestSchema: () => import_plugins.PluginManifestSchema,
|
|
29
36
|
PreferenceError: () => import_errors2.PreferenceError,
|
|
30
37
|
PreferenceErrorCode: () => import_errors2.PreferenceErrorCode,
|
|
31
38
|
RegistryError: () => import_errors.RegistryError,
|
|
32
39
|
RegistryErrorCode: () => import_error_codes.RegistryErrorCode,
|
|
33
40
|
SHARED_API_KEY_PROVIDERS: () => import_api_key_store.SHARED_API_KEY_PROVIDERS,
|
|
34
41
|
addInstalledModel: () => import_models.addInstalledModel,
|
|
42
|
+
addMarketplace: () => import_plugins.addMarketplace,
|
|
35
43
|
addPromptToAgentConfig: () => import_config.addPromptToAgentConfig,
|
|
36
44
|
addToDownloadQueue: () => import_models.addToDownloadQueue,
|
|
45
|
+
agentPreferencesExist: () => import_loader2.agentPreferencesExist,
|
|
46
|
+
canUseDextoProvider: () => import_dexto_auth.canUseDextoProvider,
|
|
37
47
|
copyDirectory: () => import_path.copyDirectory,
|
|
38
48
|
createInitialPreferences: () => import_loader.createInitialPreferences,
|
|
39
49
|
deleteCustomModel: () => import_custom_models.deleteCustomModel,
|
|
@@ -42,6 +52,7 @@ __export(index_exports, {
|
|
|
42
52
|
deriveAgentId: () => import_config.deriveAgentId,
|
|
43
53
|
deriveDisplayName: () => import_types.deriveDisplayName,
|
|
44
54
|
determineApiKeyStorage: () => import_api_key_store.determineApiKeyStorage,
|
|
55
|
+
discoverClaudeCodePlugins: () => import_plugins.discoverClaudeCodePlugins,
|
|
45
56
|
enrichAgentConfig: () => import_config.enrichAgentConfig,
|
|
46
57
|
ensureDextoGlobalDirectory: () => import_path.ensureDextoGlobalDirectory,
|
|
47
58
|
ensureModelDirectory: () => import_models.ensureModelDirectory,
|
|
@@ -52,12 +63,15 @@ __export(index_exports, {
|
|
|
52
63
|
formatSize: () => import_models.formatSize,
|
|
53
64
|
getActiveModel: () => import_models.getActiveModel,
|
|
54
65
|
getActiveModelId: () => import_models.getActiveModelId,
|
|
66
|
+
getAgentPreferencesPath: () => import_loader2.getAgentPreferencesPath,
|
|
55
67
|
getAgentRegistry: () => import_registry.getAgentRegistry,
|
|
56
68
|
getAllInstalledModels: () => import_models.getAllInstalledModels,
|
|
57
69
|
getCustomModel: () => import_custom_models.getCustomModel,
|
|
58
70
|
getCustomModelsPath: () => import_custom_models.getCustomModelsPath,
|
|
71
|
+
getDextoApiKeyFromAuth: () => import_dexto_auth.getDextoApiKeyFromAuth,
|
|
59
72
|
getDextoEnvPath: () => import_path.getDextoEnvPath,
|
|
60
73
|
getDextoGlobalPath: () => import_path.getDextoGlobalPath,
|
|
74
|
+
getDextoInstalledPluginsPath: () => import_plugins.getDextoInstalledPluginsPath,
|
|
61
75
|
getDextoPath: () => import_path.getDextoPath,
|
|
62
76
|
getDownloadQueue: () => import_models.getDownloadQueue,
|
|
63
77
|
getExecutionContext: () => import_execution_context.getExecutionContext,
|
|
@@ -71,20 +85,34 @@ __export(index_exports, {
|
|
|
71
85
|
getModelTempDirectory: () => import_models.getModelTempDirectory,
|
|
72
86
|
getModelsDirectory: () => import_models.getModelsDirectory,
|
|
73
87
|
getModelsDiskUsage: () => import_models.getModelsDiskUsage,
|
|
88
|
+
getPluginSearchPaths: () => import_plugins.getPluginSearchPaths,
|
|
74
89
|
getPrimaryApiKeyEnvVar: () => import_api_key_resolver.getPrimaryApiKeyEnvVar,
|
|
75
90
|
getProviderKeyStatus: () => import_api_key_store.getProviderKeyStatus,
|
|
76
91
|
getTotalInstalledSize: () => import_models.getTotalInstalledSize,
|
|
92
|
+
getUninstalledDefaults: () => import_plugins.getUninstalledDefaults,
|
|
77
93
|
globalPreferencesExist: () => import_loader.globalPreferencesExist,
|
|
78
94
|
installBundledAgent: () => import_installation.installBundledAgent,
|
|
79
95
|
installCustomAgent: () => import_installation.installCustomAgent,
|
|
96
|
+
installPluginFromMarketplace: () => import_plugins.installPluginFromMarketplace,
|
|
97
|
+
installPluginFromPath: () => import_plugins.installPluginFromPath,
|
|
98
|
+
isDefaultMarketplace: () => import_plugins.isDefaultMarketplace,
|
|
99
|
+
isDextoAuthEnabled: () => import_feature_flags.isDextoAuthEnabled,
|
|
100
|
+
isDextoAuthenticated: () => import_dexto_auth.isDextoAuthenticated,
|
|
80
101
|
isModelInstalled: () => import_models.isModelInstalled,
|
|
81
102
|
isPath: () => import_path.isPath,
|
|
103
|
+
isPluginInstalled: () => import_plugins.isPluginInstalled,
|
|
104
|
+
listAllMarketplacePlugins: () => import_plugins.listAllMarketplacePlugins,
|
|
82
105
|
listInstalledAgents: () => import_installation.listInstalledAgents,
|
|
106
|
+
listInstalledPlugins: () => import_plugins.listInstalledPlugins,
|
|
107
|
+
listMarketplaces: () => import_plugins.listMarketplaces,
|
|
83
108
|
listModelDirectories: () => import_models.listModelDirectories,
|
|
84
109
|
listProviderKeyStatus: () => import_api_key_store.listProviderKeyStatus,
|
|
85
110
|
loadAgentConfig: () => import_config.loadAgentConfig,
|
|
111
|
+
loadAgentPreferences: () => import_loader2.loadAgentPreferences,
|
|
86
112
|
loadBundledRegistryAgents: () => import_registry.loadBundledRegistryAgents,
|
|
113
|
+
loadClaudeCodePlugin: () => import_plugins.loadClaudeCodePlugin,
|
|
87
114
|
loadCustomModels: () => import_custom_models.loadCustomModels,
|
|
115
|
+
loadDextoInstalledPlugins: () => import_plugins.loadDextoInstalledPlugins,
|
|
88
116
|
loadGlobalPreferences: () => import_loader.loadGlobalPreferences,
|
|
89
117
|
loadModelState: () => import_models.loadModelState,
|
|
90
118
|
modelFileExists: () => import_models.modelFileExists,
|
|
@@ -92,24 +120,32 @@ __export(index_exports, {
|
|
|
92
120
|
reloadAgentConfigFromFile: () => import_config.reloadAgentConfigFromFile,
|
|
93
121
|
removeFromDownloadQueue: () => import_models.removeFromDownloadQueue,
|
|
94
122
|
removeInstalledModel: () => import_models.removeInstalledModel,
|
|
123
|
+
removeMarketplace: () => import_plugins.removeMarketplace,
|
|
95
124
|
removeMcpServerFromConfig: () => import_config.removeMcpServerFromConfig,
|
|
96
125
|
removePromptFromAgentConfig: () => import_config.removePromptFromAgentConfig,
|
|
97
126
|
resolveAgentPath: () => import_resolver.resolveAgentPath,
|
|
98
127
|
resolveApiKeyForProvider: () => import_api_key_resolver.resolveApiKeyForProvider,
|
|
99
128
|
resolveBundledScript: () => import_path.resolveBundledScript,
|
|
129
|
+
saveAgentPreferences: () => import_loader2.saveAgentPreferences,
|
|
100
130
|
saveCustomModel: () => import_custom_models.saveCustomModel,
|
|
131
|
+
saveDextoInstalledPlugins: () => import_plugins.saveDextoInstalledPlugins,
|
|
101
132
|
saveGlobalPreferences: () => import_loader.saveGlobalPreferences,
|
|
102
133
|
saveModelState: () => import_models.saveModelState,
|
|
103
134
|
saveProviderApiKey: () => import_api_key_store.saveProviderApiKey,
|
|
104
135
|
setActiveModel: () => import_models.setActiveModel,
|
|
105
136
|
syncStateWithFilesystem: () => import_models.syncStateWithFilesystem,
|
|
137
|
+
tryLoadManifest: () => import_plugins.tryLoadManifest,
|
|
106
138
|
uninstallAgent: () => import_installation.uninstallAgent,
|
|
139
|
+
uninstallPlugin: () => import_plugins.uninstallPlugin,
|
|
107
140
|
updateAgentConfigFile: () => import_config.updateAgentConfigFile,
|
|
141
|
+
updateAgentPreferences: () => import_loader2.updateAgentPreferences,
|
|
108
142
|
updateDefaultAgentPreference: () => import_resolver.updateDefaultAgentPreference,
|
|
109
143
|
updateEnvFile: () => import_env_file.updateEnvFile,
|
|
110
144
|
updateGlobalPreferences: () => import_loader.updateGlobalPreferences,
|
|
145
|
+
updateMarketplace: () => import_plugins.updateMarketplace,
|
|
111
146
|
updateMcpServerField: () => import_config.updateMcpServerField,
|
|
112
147
|
updateModelLastUsed: () => import_models.updateModelLastUsed,
|
|
148
|
+
validatePluginDirectory: () => import_plugins.validatePluginDirectory,
|
|
113
149
|
walkUpDirectories: () => import_fs_walk.walkUpDirectories,
|
|
114
150
|
writeConfigFile: () => import_writer.writeConfigFile,
|
|
115
151
|
writeLLMPreferences: () => import_writer.writeLLMPreferences,
|
|
@@ -121,6 +157,7 @@ var import_types = require("./registry/types.js");
|
|
|
121
157
|
var import_errors = require("./registry/errors.js");
|
|
122
158
|
var import_error_codes = require("./registry/error-codes.js");
|
|
123
159
|
var import_loader = require("./preferences/loader.js");
|
|
160
|
+
var import_loader2 = require("./preferences/loader.js");
|
|
124
161
|
var import_errors2 = require("./preferences/errors.js");
|
|
125
162
|
var import_resolver = require("./resolver.js");
|
|
126
163
|
var import_writer = require("./writer.js");
|
|
@@ -131,6 +168,8 @@ var import_path = require("./utils/path.js");
|
|
|
131
168
|
var import_execution_context = require("./utils/execution-context.js");
|
|
132
169
|
var import_fs_walk = require("./utils/fs-walk.js");
|
|
133
170
|
var import_env_file = require("./utils/env-file.js");
|
|
171
|
+
var import_feature_flags = require("./utils/feature-flags.js");
|
|
172
|
+
var import_dexto_auth = require("./utils/dexto-auth.js");
|
|
134
173
|
var import_config = require("./config/index.js");
|
|
135
174
|
var import_api_key_store = require("./utils/api-key-store.js");
|
|
136
175
|
var import_api_key_resolver = require("./utils/api-key-resolver.js");
|
|
@@ -138,6 +177,7 @@ var import_custom_models = require("./models/custom-models.js");
|
|
|
138
177
|
var import_models = require("./models/index.js");
|
|
139
178
|
__reExport(index_exports, require("./runtime/index.js"), module.exports);
|
|
140
179
|
__reExport(index_exports, require("./tool-provider/index.js"), module.exports);
|
|
180
|
+
var import_plugins = require("./plugins/index.js");
|
|
141
181
|
// Annotate the CommonJS export names for ESM import in node:
|
|
142
182
|
0 && (module.exports = {
|
|
143
183
|
AgentFactory,
|
|
@@ -146,15 +186,25 @@ __reExport(index_exports, require("./tool-provider/index.js"), module.exports);
|
|
|
146
186
|
ConfigError,
|
|
147
187
|
ConfigErrorCode,
|
|
148
188
|
CustomModelSchema,
|
|
189
|
+
DEFAULT_MARKETPLACES,
|
|
190
|
+
MarketplaceError,
|
|
191
|
+
MarketplaceErrorCode,
|
|
149
192
|
PROVIDER_API_KEY_MAP,
|
|
193
|
+
PluginError,
|
|
194
|
+
PluginErrorCode,
|
|
195
|
+
PluginMCPConfigSchema,
|
|
196
|
+
PluginManifestSchema,
|
|
150
197
|
PreferenceError,
|
|
151
198
|
PreferenceErrorCode,
|
|
152
199
|
RegistryError,
|
|
153
200
|
RegistryErrorCode,
|
|
154
201
|
SHARED_API_KEY_PROVIDERS,
|
|
155
202
|
addInstalledModel,
|
|
203
|
+
addMarketplace,
|
|
156
204
|
addPromptToAgentConfig,
|
|
157
205
|
addToDownloadQueue,
|
|
206
|
+
agentPreferencesExist,
|
|
207
|
+
canUseDextoProvider,
|
|
158
208
|
copyDirectory,
|
|
159
209
|
createInitialPreferences,
|
|
160
210
|
deleteCustomModel,
|
|
@@ -163,6 +213,7 @@ __reExport(index_exports, require("./tool-provider/index.js"), module.exports);
|
|
|
163
213
|
deriveAgentId,
|
|
164
214
|
deriveDisplayName,
|
|
165
215
|
determineApiKeyStorage,
|
|
216
|
+
discoverClaudeCodePlugins,
|
|
166
217
|
enrichAgentConfig,
|
|
167
218
|
ensureDextoGlobalDirectory,
|
|
168
219
|
ensureModelDirectory,
|
|
@@ -173,12 +224,15 @@ __reExport(index_exports, require("./tool-provider/index.js"), module.exports);
|
|
|
173
224
|
formatSize,
|
|
174
225
|
getActiveModel,
|
|
175
226
|
getActiveModelId,
|
|
227
|
+
getAgentPreferencesPath,
|
|
176
228
|
getAgentRegistry,
|
|
177
229
|
getAllInstalledModels,
|
|
178
230
|
getCustomModel,
|
|
179
231
|
getCustomModelsPath,
|
|
232
|
+
getDextoApiKeyFromAuth,
|
|
180
233
|
getDextoEnvPath,
|
|
181
234
|
getDextoGlobalPath,
|
|
235
|
+
getDextoInstalledPluginsPath,
|
|
182
236
|
getDextoPath,
|
|
183
237
|
getDownloadQueue,
|
|
184
238
|
getExecutionContext,
|
|
@@ -192,20 +246,34 @@ __reExport(index_exports, require("./tool-provider/index.js"), module.exports);
|
|
|
192
246
|
getModelTempDirectory,
|
|
193
247
|
getModelsDirectory,
|
|
194
248
|
getModelsDiskUsage,
|
|
249
|
+
getPluginSearchPaths,
|
|
195
250
|
getPrimaryApiKeyEnvVar,
|
|
196
251
|
getProviderKeyStatus,
|
|
197
252
|
getTotalInstalledSize,
|
|
253
|
+
getUninstalledDefaults,
|
|
198
254
|
globalPreferencesExist,
|
|
199
255
|
installBundledAgent,
|
|
200
256
|
installCustomAgent,
|
|
257
|
+
installPluginFromMarketplace,
|
|
258
|
+
installPluginFromPath,
|
|
259
|
+
isDefaultMarketplace,
|
|
260
|
+
isDextoAuthEnabled,
|
|
261
|
+
isDextoAuthenticated,
|
|
201
262
|
isModelInstalled,
|
|
202
263
|
isPath,
|
|
264
|
+
isPluginInstalled,
|
|
265
|
+
listAllMarketplacePlugins,
|
|
203
266
|
listInstalledAgents,
|
|
267
|
+
listInstalledPlugins,
|
|
268
|
+
listMarketplaces,
|
|
204
269
|
listModelDirectories,
|
|
205
270
|
listProviderKeyStatus,
|
|
206
271
|
loadAgentConfig,
|
|
272
|
+
loadAgentPreferences,
|
|
207
273
|
loadBundledRegistryAgents,
|
|
274
|
+
loadClaudeCodePlugin,
|
|
208
275
|
loadCustomModels,
|
|
276
|
+
loadDextoInstalledPlugins,
|
|
209
277
|
loadGlobalPreferences,
|
|
210
278
|
loadModelState,
|
|
211
279
|
modelFileExists,
|
|
@@ -213,24 +281,32 @@ __reExport(index_exports, require("./tool-provider/index.js"), module.exports);
|
|
|
213
281
|
reloadAgentConfigFromFile,
|
|
214
282
|
removeFromDownloadQueue,
|
|
215
283
|
removeInstalledModel,
|
|
284
|
+
removeMarketplace,
|
|
216
285
|
removeMcpServerFromConfig,
|
|
217
286
|
removePromptFromAgentConfig,
|
|
218
287
|
resolveAgentPath,
|
|
219
288
|
resolveApiKeyForProvider,
|
|
220
289
|
resolveBundledScript,
|
|
290
|
+
saveAgentPreferences,
|
|
221
291
|
saveCustomModel,
|
|
292
|
+
saveDextoInstalledPlugins,
|
|
222
293
|
saveGlobalPreferences,
|
|
223
294
|
saveModelState,
|
|
224
295
|
saveProviderApiKey,
|
|
225
296
|
setActiveModel,
|
|
226
297
|
syncStateWithFilesystem,
|
|
298
|
+
tryLoadManifest,
|
|
227
299
|
uninstallAgent,
|
|
300
|
+
uninstallPlugin,
|
|
228
301
|
updateAgentConfigFile,
|
|
302
|
+
updateAgentPreferences,
|
|
229
303
|
updateDefaultAgentPreference,
|
|
230
304
|
updateEnvFile,
|
|
231
305
|
updateGlobalPreferences,
|
|
306
|
+
updateMarketplace,
|
|
232
307
|
updateMcpServerField,
|
|
233
308
|
updateModelLastUsed,
|
|
309
|
+
validatePluginDirectory,
|
|
234
310
|
walkUpDirectories,
|
|
235
311
|
writeConfigFile,
|
|
236
312
|
writeLLMPreferences,
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ export { deriveDisplayName } from './registry/types.js';
|
|
|
4
4
|
export { RegistryError } from './registry/errors.js';
|
|
5
5
|
export { RegistryErrorCode } from './registry/error-codes.js';
|
|
6
6
|
export { loadGlobalPreferences, saveGlobalPreferences, globalPreferencesExist, getGlobalPreferencesPath, createInitialPreferences, updateGlobalPreferences, type GlobalPreferencesUpdates, type CreatePreferencesOptions, } from './preferences/loader.js';
|
|
7
|
-
export type { GlobalPreferences } from './preferences/schemas.js';
|
|
7
|
+
export type { GlobalPreferences, AgentPreferences } from './preferences/schemas.js';
|
|
8
|
+
export { loadAgentPreferences, saveAgentPreferences, updateAgentPreferences, agentPreferencesExist, getAgentPreferencesPath, } from './preferences/loader.js';
|
|
8
9
|
export { PreferenceError, PreferenceErrorCode } from './preferences/errors.js';
|
|
9
10
|
export { resolveAgentPath, updateDefaultAgentPreference } from './resolver.js';
|
|
10
11
|
export { writeConfigFile, writeLLMPreferences, writePreferencesToAgent, type LLMOverrides, } from './writer.js';
|
|
@@ -15,6 +16,8 @@ export { getDextoPath, getDextoGlobalPath, getDextoEnvPath, copyDirectory, isPat
|
|
|
15
16
|
export { getExecutionContext, findDextoSourceRoot, findDextoProjectRoot, type ExecutionContext, } from './utils/execution-context.js';
|
|
16
17
|
export { walkUpDirectories } from './utils/fs-walk.js';
|
|
17
18
|
export { updateEnvFile } from './utils/env-file.js';
|
|
19
|
+
export { isDextoAuthEnabled } from './utils/feature-flags.js';
|
|
20
|
+
export { isDextoAuthenticated, getDextoApiKeyFromAuth, canUseDextoProvider, } from './utils/dexto-auth.js';
|
|
18
21
|
export { updateAgentConfigFile, reloadAgentConfigFromFile, loadAgentConfig, enrichAgentConfig, deriveAgentId, addPromptToAgentConfig, removePromptFromAgentConfig, deletePromptByMetadata, updateMcpServerField, removeMcpServerFromConfig, ConfigError, ConfigErrorCode, type FilePromptInput, type InlinePromptInput, type PromptInput, type PromptMetadataForDeletion, type PromptDeletionResult, } from './config/index.js';
|
|
19
22
|
export { saveProviderApiKey, getProviderKeyStatus, listProviderKeyStatus, determineApiKeyStorage, SHARED_API_KEY_PROVIDERS, type ApiKeyStorageStrategy, } from './utils/api-key-store.js';
|
|
20
23
|
export { resolveApiKeyForProvider, getPrimaryApiKeyEnvVar, PROVIDER_API_KEY_MAP, } from './utils/api-key-resolver.js';
|
|
@@ -22,4 +25,5 @@ export { loadCustomModels, saveCustomModel, deleteCustomModel, getCustomModel, g
|
|
|
22
25
|
export { getModelsDirectory, getModelFilePath, getModelDirectory, getModelStatePath, getModelTempDirectory, ensureModelsDirectory, ensureModelDirectory, modelFileExists, getModelFileSize, deleteModelDirectory, listModelDirectories, getModelsDiskUsage, formatSize, type ModelSource, type InstalledModel, type ModelState, loadModelState, saveModelState, addInstalledModel, removeInstalledModel, getInstalledModel, getAllInstalledModels, isModelInstalled, updateModelLastUsed, setActiveModel, getActiveModelId, getActiveModel, addToDownloadQueue, removeFromDownloadQueue, getDownloadQueue, syncStateWithFilesystem, getTotalInstalledSize, getInstalledModelCount, registerManualModel, } from './models/index.js';
|
|
23
26
|
export * from './runtime/index.js';
|
|
24
27
|
export * from './tool-provider/index.js';
|
|
28
|
+
export { discoverClaudeCodePlugins, getPluginSearchPaths, loadClaudeCodePlugin, validatePluginDirectory, tryLoadManifest, listInstalledPlugins, getDextoInstalledPluginsPath, installPluginFromPath, loadDextoInstalledPlugins, saveDextoInstalledPlugins, isPluginInstalled, uninstallPlugin, PluginManifestSchema, PluginMCPConfigSchema, PluginErrorCode, PluginError, DEFAULT_MARKETPLACES, addMarketplace, removeMarketplace, updateMarketplace, listMarketplaces, listAllMarketplacePlugins, installPluginFromMarketplace, getUninstalledDefaults, isDefaultMarketplace, MarketplaceErrorCode, MarketplaceError, type PluginManifest, type DiscoveredPlugin, type PluginCommand, type PluginMCPConfig, type LoadedPlugin, type PluginInstallScope, type InstalledPluginEntry, type InstalledPluginsFile, type ListedPlugin, type PluginValidationResult, type PluginInstallResult, type PluginUninstallResult, type ValidatedPluginManifest, type ValidatedPluginMCPConfig, type InstallPluginOptions, type UninstallPluginOptions, type MarketplaceEntry, type MarketplacePlugin, type MarketplaceAddResult, type MarketplaceUpdateResult, type MarketplaceInstallResult, } from './plugins/index.js';
|
|
25
29
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACrF,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EACH,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAChC,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,iBAAiB,EAAE,MAAM,0B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BAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAChC,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,6 +10,13 @@ import {
|
|
|
10
10
|
createInitialPreferences,
|
|
11
11
|
updateGlobalPreferences
|
|
12
12
|
} from "./preferences/loader.js";
|
|
13
|
+
import {
|
|
14
|
+
loadAgentPreferences,
|
|
15
|
+
saveAgentPreferences,
|
|
16
|
+
updateAgentPreferences,
|
|
17
|
+
agentPreferencesExist,
|
|
18
|
+
getAgentPreferencesPath
|
|
19
|
+
} from "./preferences/loader.js";
|
|
13
20
|
import { PreferenceError, PreferenceErrorCode } from "./preferences/errors.js";
|
|
14
21
|
import { resolveAgentPath, updateDefaultAgentPreference } from "./resolver.js";
|
|
15
22
|
import {
|
|
@@ -42,6 +49,12 @@ import {
|
|
|
42
49
|
} from "./utils/execution-context.js";
|
|
43
50
|
import { walkUpDirectories } from "./utils/fs-walk.js";
|
|
44
51
|
import { updateEnvFile } from "./utils/env-file.js";
|
|
52
|
+
import { isDextoAuthEnabled } from "./utils/feature-flags.js";
|
|
53
|
+
import {
|
|
54
|
+
isDextoAuthenticated,
|
|
55
|
+
getDextoApiKeyFromAuth,
|
|
56
|
+
canUseDextoProvider
|
|
57
|
+
} from "./utils/dexto-auth.js";
|
|
45
58
|
import {
|
|
46
59
|
updateAgentConfigFile,
|
|
47
60
|
reloadAgentConfigFromFile,
|
|
@@ -112,6 +125,35 @@ import {
|
|
|
112
125
|
} from "./models/index.js";
|
|
113
126
|
export * from "./runtime/index.js";
|
|
114
127
|
export * from "./tool-provider/index.js";
|
|
128
|
+
import {
|
|
129
|
+
discoverClaudeCodePlugins,
|
|
130
|
+
getPluginSearchPaths,
|
|
131
|
+
loadClaudeCodePlugin,
|
|
132
|
+
validatePluginDirectory,
|
|
133
|
+
tryLoadManifest,
|
|
134
|
+
listInstalledPlugins,
|
|
135
|
+
getDextoInstalledPluginsPath,
|
|
136
|
+
installPluginFromPath,
|
|
137
|
+
loadDextoInstalledPlugins,
|
|
138
|
+
saveDextoInstalledPlugins,
|
|
139
|
+
isPluginInstalled,
|
|
140
|
+
uninstallPlugin,
|
|
141
|
+
PluginManifestSchema,
|
|
142
|
+
PluginMCPConfigSchema,
|
|
143
|
+
PluginErrorCode,
|
|
144
|
+
PluginError,
|
|
145
|
+
DEFAULT_MARKETPLACES,
|
|
146
|
+
addMarketplace,
|
|
147
|
+
removeMarketplace,
|
|
148
|
+
updateMarketplace,
|
|
149
|
+
listMarketplaces,
|
|
150
|
+
listAllMarketplacePlugins,
|
|
151
|
+
installPluginFromMarketplace,
|
|
152
|
+
getUninstalledDefaults,
|
|
153
|
+
isDefaultMarketplace,
|
|
154
|
+
MarketplaceErrorCode,
|
|
155
|
+
MarketplaceError
|
|
156
|
+
} from "./plugins/index.js";
|
|
115
157
|
export {
|
|
116
158
|
AgentFactory,
|
|
117
159
|
AgentManager,
|
|
@@ -119,15 +161,25 @@ export {
|
|
|
119
161
|
ConfigError,
|
|
120
162
|
ConfigErrorCode,
|
|
121
163
|
CustomModelSchema,
|
|
164
|
+
DEFAULT_MARKETPLACES,
|
|
165
|
+
MarketplaceError,
|
|
166
|
+
MarketplaceErrorCode,
|
|
122
167
|
PROVIDER_API_KEY_MAP,
|
|
168
|
+
PluginError,
|
|
169
|
+
PluginErrorCode,
|
|
170
|
+
PluginMCPConfigSchema,
|
|
171
|
+
PluginManifestSchema,
|
|
123
172
|
PreferenceError,
|
|
124
173
|
PreferenceErrorCode,
|
|
125
174
|
RegistryError,
|
|
126
175
|
RegistryErrorCode,
|
|
127
176
|
SHARED_API_KEY_PROVIDERS,
|
|
128
177
|
addInstalledModel,
|
|
178
|
+
addMarketplace,
|
|
129
179
|
addPromptToAgentConfig,
|
|
130
180
|
addToDownloadQueue,
|
|
181
|
+
agentPreferencesExist,
|
|
182
|
+
canUseDextoProvider,
|
|
131
183
|
copyDirectory,
|
|
132
184
|
createInitialPreferences,
|
|
133
185
|
deleteCustomModel,
|
|
@@ -136,6 +188,7 @@ export {
|
|
|
136
188
|
deriveAgentId,
|
|
137
189
|
deriveDisplayName,
|
|
138
190
|
determineApiKeyStorage,
|
|
191
|
+
discoverClaudeCodePlugins,
|
|
139
192
|
enrichAgentConfig,
|
|
140
193
|
ensureDextoGlobalDirectory,
|
|
141
194
|
ensureModelDirectory,
|
|
@@ -146,12 +199,15 @@ export {
|
|
|
146
199
|
formatSize,
|
|
147
200
|
getActiveModel,
|
|
148
201
|
getActiveModelId,
|
|
202
|
+
getAgentPreferencesPath,
|
|
149
203
|
getAgentRegistry,
|
|
150
204
|
getAllInstalledModels,
|
|
151
205
|
getCustomModel,
|
|
152
206
|
getCustomModelsPath,
|
|
207
|
+
getDextoApiKeyFromAuth,
|
|
153
208
|
getDextoEnvPath,
|
|
154
209
|
getDextoGlobalPath,
|
|
210
|
+
getDextoInstalledPluginsPath,
|
|
155
211
|
getDextoPath,
|
|
156
212
|
getDownloadQueue,
|
|
157
213
|
getExecutionContext,
|
|
@@ -165,20 +221,34 @@ export {
|
|
|
165
221
|
getModelTempDirectory,
|
|
166
222
|
getModelsDirectory,
|
|
167
223
|
getModelsDiskUsage,
|
|
224
|
+
getPluginSearchPaths,
|
|
168
225
|
getPrimaryApiKeyEnvVar,
|
|
169
226
|
getProviderKeyStatus,
|
|
170
227
|
getTotalInstalledSize,
|
|
228
|
+
getUninstalledDefaults,
|
|
171
229
|
globalPreferencesExist,
|
|
172
230
|
installBundledAgent,
|
|
173
231
|
installCustomAgent,
|
|
232
|
+
installPluginFromMarketplace,
|
|
233
|
+
installPluginFromPath,
|
|
234
|
+
isDefaultMarketplace,
|
|
235
|
+
isDextoAuthEnabled,
|
|
236
|
+
isDextoAuthenticated,
|
|
174
237
|
isModelInstalled,
|
|
175
238
|
isPath,
|
|
239
|
+
isPluginInstalled,
|
|
240
|
+
listAllMarketplacePlugins,
|
|
176
241
|
listInstalledAgents,
|
|
242
|
+
listInstalledPlugins,
|
|
243
|
+
listMarketplaces,
|
|
177
244
|
listModelDirectories,
|
|
178
245
|
listProviderKeyStatus,
|
|
179
246
|
loadAgentConfig,
|
|
247
|
+
loadAgentPreferences,
|
|
180
248
|
loadBundledRegistryAgents,
|
|
249
|
+
loadClaudeCodePlugin,
|
|
181
250
|
loadCustomModels,
|
|
251
|
+
loadDextoInstalledPlugins,
|
|
182
252
|
loadGlobalPreferences,
|
|
183
253
|
loadModelState,
|
|
184
254
|
modelFileExists,
|
|
@@ -186,24 +256,32 @@ export {
|
|
|
186
256
|
reloadAgentConfigFromFile,
|
|
187
257
|
removeFromDownloadQueue,
|
|
188
258
|
removeInstalledModel,
|
|
259
|
+
removeMarketplace,
|
|
189
260
|
removeMcpServerFromConfig,
|
|
190
261
|
removePromptFromAgentConfig,
|
|
191
262
|
resolveAgentPath,
|
|
192
263
|
resolveApiKeyForProvider,
|
|
193
264
|
resolveBundledScript,
|
|
265
|
+
saveAgentPreferences,
|
|
194
266
|
saveCustomModel,
|
|
267
|
+
saveDextoInstalledPlugins,
|
|
195
268
|
saveGlobalPreferences,
|
|
196
269
|
saveModelState,
|
|
197
270
|
saveProviderApiKey,
|
|
198
271
|
setActiveModel,
|
|
199
272
|
syncStateWithFilesystem,
|
|
273
|
+
tryLoadManifest,
|
|
200
274
|
uninstallAgent,
|
|
275
|
+
uninstallPlugin,
|
|
201
276
|
updateAgentConfigFile,
|
|
277
|
+
updateAgentPreferences,
|
|
202
278
|
updateDefaultAgentPreference,
|
|
203
279
|
updateEnvFile,
|
|
204
280
|
updateGlobalPreferences,
|
|
281
|
+
updateMarketplace,
|
|
205
282
|
updateMcpServerField,
|
|
206
283
|
updateModelLastUsed,
|
|
284
|
+
validatePluginDirectory,
|
|
207
285
|
walkUpDirectories,
|
|
208
286
|
writeConfigFile,
|
|
209
287
|
writeLLMPreferences,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
/** Providers that support custom models */
|
|
9
|
-
export declare const CUSTOM_MODEL_PROVIDERS: readonly ["openai-compatible", "openrouter", "litellm", "glama", "bedrock", "ollama", "local", "vertex"];
|
|
9
|
+
export declare const CUSTOM_MODEL_PROVIDERS: readonly ["openai-compatible", "openrouter", "litellm", "glama", "bedrock", "ollama", "local", "vertex", "dexto-nova"];
|
|
10
10
|
export type CustomModelProvider = (typeof CUSTOM_MODEL_PROVIDERS)[number];
|
|
11
11
|
/**
|
|
12
12
|
* Schema for a saved custom model configuration.
|
|
@@ -18,6 +18,7 @@ export type CustomModelProvider = (typeof CUSTOM_MODEL_PROVIDERS)[number];
|
|
|
18
18
|
* - ollama: optional baseURL (defaults to http://localhost:11434)
|
|
19
19
|
* - local: no baseURL, uses local GGUF files via node-llama-cpp
|
|
20
20
|
* - vertex: no baseURL, uses Google Cloud ADC
|
|
21
|
+
* - dexto-nova: OpenRouter gateway using Dexto credits, requires auth login, uses OpenRouter model IDs
|
|
21
22
|
*
|
|
22
23
|
* TODO: For hosted deployments, API keys should be stored in a secure
|
|
23
24
|
* key management service (e.g., AWS Secrets Manager, HashiCorp Vault)
|
|
@@ -26,7 +27,7 @@ export type CustomModelProvider = (typeof CUSTOM_MODEL_PROVIDERS)[number];
|
|
|
26
27
|
*/
|
|
27
28
|
export declare const CustomModelSchema: z.ZodEffects<z.ZodObject<{
|
|
28
29
|
name: z.ZodString;
|
|
29
|
-
provider: z.ZodDefault<z.ZodEnum<["openai-compatible", "openrouter", "litellm", "glama", "bedrock", "ollama", "local", "vertex"]>>;
|
|
30
|
+
provider: z.ZodDefault<z.ZodEnum<["openai-compatible", "openrouter", "litellm", "glama", "bedrock", "ollama", "local", "vertex", "dexto-nova"]>>;
|
|
30
31
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
31
32
|
displayName: z.ZodOptional<z.ZodString>;
|
|
32
33
|
maxInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -36,7 +37,7 @@ export declare const CustomModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
36
37
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
37
38
|
}, "strip", z.ZodTypeAny, {
|
|
38
39
|
name: string;
|
|
39
|
-
provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
|
|
40
|
+
provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
40
41
|
apiKey?: string | undefined;
|
|
41
42
|
baseURL?: string | undefined;
|
|
42
43
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -46,7 +47,7 @@ export declare const CustomModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
46
47
|
maxOutputTokens?: number | undefined;
|
|
47
48
|
}, {
|
|
48
49
|
name: string;
|
|
49
|
-
provider?: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
50
|
+
provider?: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
50
51
|
apiKey?: string | undefined;
|
|
51
52
|
baseURL?: string | undefined;
|
|
52
53
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -56,7 +57,7 @@ export declare const CustomModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
56
57
|
maxOutputTokens?: number | undefined;
|
|
57
58
|
}>, {
|
|
58
59
|
name: string;
|
|
59
|
-
provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
|
|
60
|
+
provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
60
61
|
apiKey?: string | undefined;
|
|
61
62
|
baseURL?: string | undefined;
|
|
62
63
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -66,7 +67,7 @@ export declare const CustomModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
66
67
|
maxOutputTokens?: number | undefined;
|
|
67
68
|
}, {
|
|
68
69
|
name: string;
|
|
69
|
-
provider?: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
70
|
+
provider?: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
70
71
|
apiKey?: string | undefined;
|
|
71
72
|
baseURL?: string | undefined;
|
|
72
73
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -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,
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CxB,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"}
|