@dexto/agent-management 1.5.5 → 1.5.7
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 +70 -20
- 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 +74 -20
- 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 +65 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +66 -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 +89 -0
- package/dist/plugins/discover-skills.d.ts +46 -0
- package/dist/plugins/discover-skills.d.ts.map +1 -0
- package/dist/plugins/discover-skills.js +54 -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/schemas.d.ts +12 -12
- 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 +158 -23
- package/dist/tool-provider/runtime-service.d.ts +32 -2
- package/dist/tool-provider/runtime-service.d.ts.map +1 -1
- package/dist/tool-provider/runtime-service.js +158 -23
- package/dist/tool-provider/tool-provider.cjs +2 -0
- package/dist/tool-provider/tool-provider.d.ts.map +1 -1
- package/dist/tool-provider/tool-provider.js +2 -0
- 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 +30 -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 +6 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -25,15 +25,24 @@ __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
|
+
canUseDextoProvider: () => import_dexto_auth.canUseDextoProvider,
|
|
37
46
|
copyDirectory: () => import_path.copyDirectory,
|
|
38
47
|
createInitialPreferences: () => import_loader.createInitialPreferences,
|
|
39
48
|
deleteCustomModel: () => import_custom_models.deleteCustomModel,
|
|
@@ -42,6 +51,7 @@ __export(index_exports, {
|
|
|
42
51
|
deriveAgentId: () => import_config.deriveAgentId,
|
|
43
52
|
deriveDisplayName: () => import_types.deriveDisplayName,
|
|
44
53
|
determineApiKeyStorage: () => import_api_key_store.determineApiKeyStorage,
|
|
54
|
+
discoverClaudeCodePlugins: () => import_plugins.discoverClaudeCodePlugins,
|
|
45
55
|
enrichAgentConfig: () => import_config.enrichAgentConfig,
|
|
46
56
|
ensureDextoGlobalDirectory: () => import_path.ensureDextoGlobalDirectory,
|
|
47
57
|
ensureModelDirectory: () => import_models.ensureModelDirectory,
|
|
@@ -56,8 +66,10 @@ __export(index_exports, {
|
|
|
56
66
|
getAllInstalledModels: () => import_models.getAllInstalledModels,
|
|
57
67
|
getCustomModel: () => import_custom_models.getCustomModel,
|
|
58
68
|
getCustomModelsPath: () => import_custom_models.getCustomModelsPath,
|
|
69
|
+
getDextoApiKeyFromAuth: () => import_dexto_auth.getDextoApiKeyFromAuth,
|
|
59
70
|
getDextoEnvPath: () => import_path.getDextoEnvPath,
|
|
60
71
|
getDextoGlobalPath: () => import_path.getDextoGlobalPath,
|
|
72
|
+
getDextoInstalledPluginsPath: () => import_plugins.getDextoInstalledPluginsPath,
|
|
61
73
|
getDextoPath: () => import_path.getDextoPath,
|
|
62
74
|
getDownloadQueue: () => import_models.getDownloadQueue,
|
|
63
75
|
getExecutionContext: () => import_execution_context.getExecutionContext,
|
|
@@ -71,20 +83,33 @@ __export(index_exports, {
|
|
|
71
83
|
getModelTempDirectory: () => import_models.getModelTempDirectory,
|
|
72
84
|
getModelsDirectory: () => import_models.getModelsDirectory,
|
|
73
85
|
getModelsDiskUsage: () => import_models.getModelsDiskUsage,
|
|
86
|
+
getPluginSearchPaths: () => import_plugins.getPluginSearchPaths,
|
|
74
87
|
getPrimaryApiKeyEnvVar: () => import_api_key_resolver.getPrimaryApiKeyEnvVar,
|
|
75
88
|
getProviderKeyStatus: () => import_api_key_store.getProviderKeyStatus,
|
|
76
89
|
getTotalInstalledSize: () => import_models.getTotalInstalledSize,
|
|
90
|
+
getUninstalledDefaults: () => import_plugins.getUninstalledDefaults,
|
|
77
91
|
globalPreferencesExist: () => import_loader.globalPreferencesExist,
|
|
78
92
|
installBundledAgent: () => import_installation.installBundledAgent,
|
|
79
93
|
installCustomAgent: () => import_installation.installCustomAgent,
|
|
94
|
+
installPluginFromMarketplace: () => import_plugins.installPluginFromMarketplace,
|
|
95
|
+
installPluginFromPath: () => import_plugins.installPluginFromPath,
|
|
96
|
+
isDefaultMarketplace: () => import_plugins.isDefaultMarketplace,
|
|
97
|
+
isDextoAuthEnabled: () => import_feature_flags.isDextoAuthEnabled,
|
|
98
|
+
isDextoAuthenticated: () => import_dexto_auth.isDextoAuthenticated,
|
|
80
99
|
isModelInstalled: () => import_models.isModelInstalled,
|
|
81
100
|
isPath: () => import_path.isPath,
|
|
101
|
+
isPluginInstalled: () => import_plugins.isPluginInstalled,
|
|
102
|
+
listAllMarketplacePlugins: () => import_plugins.listAllMarketplacePlugins,
|
|
82
103
|
listInstalledAgents: () => import_installation.listInstalledAgents,
|
|
104
|
+
listInstalledPlugins: () => import_plugins.listInstalledPlugins,
|
|
105
|
+
listMarketplaces: () => import_plugins.listMarketplaces,
|
|
83
106
|
listModelDirectories: () => import_models.listModelDirectories,
|
|
84
107
|
listProviderKeyStatus: () => import_api_key_store.listProviderKeyStatus,
|
|
85
108
|
loadAgentConfig: () => import_config.loadAgentConfig,
|
|
86
109
|
loadBundledRegistryAgents: () => import_registry.loadBundledRegistryAgents,
|
|
110
|
+
loadClaudeCodePlugin: () => import_plugins.loadClaudeCodePlugin,
|
|
87
111
|
loadCustomModels: () => import_custom_models.loadCustomModels,
|
|
112
|
+
loadDextoInstalledPlugins: () => import_plugins.loadDextoInstalledPlugins,
|
|
88
113
|
loadGlobalPreferences: () => import_loader.loadGlobalPreferences,
|
|
89
114
|
loadModelState: () => import_models.loadModelState,
|
|
90
115
|
modelFileExists: () => import_models.modelFileExists,
|
|
@@ -92,24 +117,30 @@ __export(index_exports, {
|
|
|
92
117
|
reloadAgentConfigFromFile: () => import_config.reloadAgentConfigFromFile,
|
|
93
118
|
removeFromDownloadQueue: () => import_models.removeFromDownloadQueue,
|
|
94
119
|
removeInstalledModel: () => import_models.removeInstalledModel,
|
|
120
|
+
removeMarketplace: () => import_plugins.removeMarketplace,
|
|
95
121
|
removeMcpServerFromConfig: () => import_config.removeMcpServerFromConfig,
|
|
96
122
|
removePromptFromAgentConfig: () => import_config.removePromptFromAgentConfig,
|
|
97
123
|
resolveAgentPath: () => import_resolver.resolveAgentPath,
|
|
98
124
|
resolveApiKeyForProvider: () => import_api_key_resolver.resolveApiKeyForProvider,
|
|
99
125
|
resolveBundledScript: () => import_path.resolveBundledScript,
|
|
100
126
|
saveCustomModel: () => import_custom_models.saveCustomModel,
|
|
127
|
+
saveDextoInstalledPlugins: () => import_plugins.saveDextoInstalledPlugins,
|
|
101
128
|
saveGlobalPreferences: () => import_loader.saveGlobalPreferences,
|
|
102
129
|
saveModelState: () => import_models.saveModelState,
|
|
103
130
|
saveProviderApiKey: () => import_api_key_store.saveProviderApiKey,
|
|
104
131
|
setActiveModel: () => import_models.setActiveModel,
|
|
105
132
|
syncStateWithFilesystem: () => import_models.syncStateWithFilesystem,
|
|
133
|
+
tryLoadManifest: () => import_plugins.tryLoadManifest,
|
|
106
134
|
uninstallAgent: () => import_installation.uninstallAgent,
|
|
135
|
+
uninstallPlugin: () => import_plugins.uninstallPlugin,
|
|
107
136
|
updateAgentConfigFile: () => import_config.updateAgentConfigFile,
|
|
108
137
|
updateDefaultAgentPreference: () => import_resolver.updateDefaultAgentPreference,
|
|
109
138
|
updateEnvFile: () => import_env_file.updateEnvFile,
|
|
110
139
|
updateGlobalPreferences: () => import_loader.updateGlobalPreferences,
|
|
140
|
+
updateMarketplace: () => import_plugins.updateMarketplace,
|
|
111
141
|
updateMcpServerField: () => import_config.updateMcpServerField,
|
|
112
142
|
updateModelLastUsed: () => import_models.updateModelLastUsed,
|
|
143
|
+
validatePluginDirectory: () => import_plugins.validatePluginDirectory,
|
|
113
144
|
walkUpDirectories: () => import_fs_walk.walkUpDirectories,
|
|
114
145
|
writeConfigFile: () => import_writer.writeConfigFile,
|
|
115
146
|
writeLLMPreferences: () => import_writer.writeLLMPreferences,
|
|
@@ -131,6 +162,8 @@ var import_path = require("./utils/path.js");
|
|
|
131
162
|
var import_execution_context = require("./utils/execution-context.js");
|
|
132
163
|
var import_fs_walk = require("./utils/fs-walk.js");
|
|
133
164
|
var import_env_file = require("./utils/env-file.js");
|
|
165
|
+
var import_feature_flags = require("./utils/feature-flags.js");
|
|
166
|
+
var import_dexto_auth = require("./utils/dexto-auth.js");
|
|
134
167
|
var import_config = require("./config/index.js");
|
|
135
168
|
var import_api_key_store = require("./utils/api-key-store.js");
|
|
136
169
|
var import_api_key_resolver = require("./utils/api-key-resolver.js");
|
|
@@ -138,6 +171,7 @@ var import_custom_models = require("./models/custom-models.js");
|
|
|
138
171
|
var import_models = require("./models/index.js");
|
|
139
172
|
__reExport(index_exports, require("./runtime/index.js"), module.exports);
|
|
140
173
|
__reExport(index_exports, require("./tool-provider/index.js"), module.exports);
|
|
174
|
+
var import_plugins = require("./plugins/index.js");
|
|
141
175
|
// Annotate the CommonJS export names for ESM import in node:
|
|
142
176
|
0 && (module.exports = {
|
|
143
177
|
AgentFactory,
|
|
@@ -146,15 +180,24 @@ __reExport(index_exports, require("./tool-provider/index.js"), module.exports);
|
|
|
146
180
|
ConfigError,
|
|
147
181
|
ConfigErrorCode,
|
|
148
182
|
CustomModelSchema,
|
|
183
|
+
DEFAULT_MARKETPLACES,
|
|
184
|
+
MarketplaceError,
|
|
185
|
+
MarketplaceErrorCode,
|
|
149
186
|
PROVIDER_API_KEY_MAP,
|
|
187
|
+
PluginError,
|
|
188
|
+
PluginErrorCode,
|
|
189
|
+
PluginMCPConfigSchema,
|
|
190
|
+
PluginManifestSchema,
|
|
150
191
|
PreferenceError,
|
|
151
192
|
PreferenceErrorCode,
|
|
152
193
|
RegistryError,
|
|
153
194
|
RegistryErrorCode,
|
|
154
195
|
SHARED_API_KEY_PROVIDERS,
|
|
155
196
|
addInstalledModel,
|
|
197
|
+
addMarketplace,
|
|
156
198
|
addPromptToAgentConfig,
|
|
157
199
|
addToDownloadQueue,
|
|
200
|
+
canUseDextoProvider,
|
|
158
201
|
copyDirectory,
|
|
159
202
|
createInitialPreferences,
|
|
160
203
|
deleteCustomModel,
|
|
@@ -163,6 +206,7 @@ __reExport(index_exports, require("./tool-provider/index.js"), module.exports);
|
|
|
163
206
|
deriveAgentId,
|
|
164
207
|
deriveDisplayName,
|
|
165
208
|
determineApiKeyStorage,
|
|
209
|
+
discoverClaudeCodePlugins,
|
|
166
210
|
enrichAgentConfig,
|
|
167
211
|
ensureDextoGlobalDirectory,
|
|
168
212
|
ensureModelDirectory,
|
|
@@ -177,8 +221,10 @@ __reExport(index_exports, require("./tool-provider/index.js"), module.exports);
|
|
|
177
221
|
getAllInstalledModels,
|
|
178
222
|
getCustomModel,
|
|
179
223
|
getCustomModelsPath,
|
|
224
|
+
getDextoApiKeyFromAuth,
|
|
180
225
|
getDextoEnvPath,
|
|
181
226
|
getDextoGlobalPath,
|
|
227
|
+
getDextoInstalledPluginsPath,
|
|
182
228
|
getDextoPath,
|
|
183
229
|
getDownloadQueue,
|
|
184
230
|
getExecutionContext,
|
|
@@ -192,20 +238,33 @@ __reExport(index_exports, require("./tool-provider/index.js"), module.exports);
|
|
|
192
238
|
getModelTempDirectory,
|
|
193
239
|
getModelsDirectory,
|
|
194
240
|
getModelsDiskUsage,
|
|
241
|
+
getPluginSearchPaths,
|
|
195
242
|
getPrimaryApiKeyEnvVar,
|
|
196
243
|
getProviderKeyStatus,
|
|
197
244
|
getTotalInstalledSize,
|
|
245
|
+
getUninstalledDefaults,
|
|
198
246
|
globalPreferencesExist,
|
|
199
247
|
installBundledAgent,
|
|
200
248
|
installCustomAgent,
|
|
249
|
+
installPluginFromMarketplace,
|
|
250
|
+
installPluginFromPath,
|
|
251
|
+
isDefaultMarketplace,
|
|
252
|
+
isDextoAuthEnabled,
|
|
253
|
+
isDextoAuthenticated,
|
|
201
254
|
isModelInstalled,
|
|
202
255
|
isPath,
|
|
256
|
+
isPluginInstalled,
|
|
257
|
+
listAllMarketplacePlugins,
|
|
203
258
|
listInstalledAgents,
|
|
259
|
+
listInstalledPlugins,
|
|
260
|
+
listMarketplaces,
|
|
204
261
|
listModelDirectories,
|
|
205
262
|
listProviderKeyStatus,
|
|
206
263
|
loadAgentConfig,
|
|
207
264
|
loadBundledRegistryAgents,
|
|
265
|
+
loadClaudeCodePlugin,
|
|
208
266
|
loadCustomModels,
|
|
267
|
+
loadDextoInstalledPlugins,
|
|
209
268
|
loadGlobalPreferences,
|
|
210
269
|
loadModelState,
|
|
211
270
|
modelFileExists,
|
|
@@ -213,24 +272,30 @@ __reExport(index_exports, require("./tool-provider/index.js"), module.exports);
|
|
|
213
272
|
reloadAgentConfigFromFile,
|
|
214
273
|
removeFromDownloadQueue,
|
|
215
274
|
removeInstalledModel,
|
|
275
|
+
removeMarketplace,
|
|
216
276
|
removeMcpServerFromConfig,
|
|
217
277
|
removePromptFromAgentConfig,
|
|
218
278
|
resolveAgentPath,
|
|
219
279
|
resolveApiKeyForProvider,
|
|
220
280
|
resolveBundledScript,
|
|
221
281
|
saveCustomModel,
|
|
282
|
+
saveDextoInstalledPlugins,
|
|
222
283
|
saveGlobalPreferences,
|
|
223
284
|
saveModelState,
|
|
224
285
|
saveProviderApiKey,
|
|
225
286
|
setActiveModel,
|
|
226
287
|
syncStateWithFilesystem,
|
|
288
|
+
tryLoadManifest,
|
|
227
289
|
uninstallAgent,
|
|
290
|
+
uninstallPlugin,
|
|
228
291
|
updateAgentConfigFile,
|
|
229
292
|
updateDefaultAgentPreference,
|
|
230
293
|
updateEnvFile,
|
|
231
294
|
updateGlobalPreferences,
|
|
295
|
+
updateMarketplace,
|
|
232
296
|
updateMcpServerField,
|
|
233
297
|
updateModelLastUsed,
|
|
298
|
+
validatePluginDirectory,
|
|
234
299
|
walkUpDirectories,
|
|
235
300
|
writeConfigFile,
|
|
236
301
|
writeLLMPreferences,
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export { getDextoPath, getDextoGlobalPath, getDextoEnvPath, copyDirectory, isPat
|
|
|
15
15
|
export { getExecutionContext, findDextoSourceRoot, findDextoProjectRoot, type ExecutionContext, } from './utils/execution-context.js';
|
|
16
16
|
export { walkUpDirectories } from './utils/fs-walk.js';
|
|
17
17
|
export { updateEnvFile } from './utils/env-file.js';
|
|
18
|
+
export { isDextoAuthEnabled } from './utils/feature-flags.js';
|
|
19
|
+
export { isDextoAuthenticated, getDextoApiKeyFromAuth, canUseDextoProvider, } from './utils/dexto-auth.js';
|
|
18
20
|
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
21
|
export { saveProviderApiKey, getProviderKeyStatus, listProviderKeyStatus, determineApiKeyStorage, SHARED_API_KEY_PROVIDERS, type ApiKeyStorageStrategy, } from './utils/api-key-store.js';
|
|
20
22
|
export { resolveApiKeyForProvider, getPrimaryApiKeyEnvVar, PROVIDER_API_KEY_MAP, } from './utils/api-key-resolver.js';
|
|
@@ -22,4 +24,5 @@ export { loadCustomModels, saveCustomModel, deleteCustomModel, getCustomModel, g
|
|
|
22
24
|
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
25
|
export * from './runtime/index.js';
|
|
24
26
|
export * from './tool-provider/index.js';
|
|
27
|
+
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
28
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
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oBAAoB,EACzB,KAAK,sBAAsB,EAE3B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAChC,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -42,6 +42,12 @@ import {
|
|
|
42
42
|
} from "./utils/execution-context.js";
|
|
43
43
|
import { walkUpDirectories } from "./utils/fs-walk.js";
|
|
44
44
|
import { updateEnvFile } from "./utils/env-file.js";
|
|
45
|
+
import { isDextoAuthEnabled } from "./utils/feature-flags.js";
|
|
46
|
+
import {
|
|
47
|
+
isDextoAuthenticated,
|
|
48
|
+
getDextoApiKeyFromAuth,
|
|
49
|
+
canUseDextoProvider
|
|
50
|
+
} from "./utils/dexto-auth.js";
|
|
45
51
|
import {
|
|
46
52
|
updateAgentConfigFile,
|
|
47
53
|
reloadAgentConfigFromFile,
|
|
@@ -112,6 +118,35 @@ import {
|
|
|
112
118
|
} from "./models/index.js";
|
|
113
119
|
export * from "./runtime/index.js";
|
|
114
120
|
export * from "./tool-provider/index.js";
|
|
121
|
+
import {
|
|
122
|
+
discoverClaudeCodePlugins,
|
|
123
|
+
getPluginSearchPaths,
|
|
124
|
+
loadClaudeCodePlugin,
|
|
125
|
+
validatePluginDirectory,
|
|
126
|
+
tryLoadManifest,
|
|
127
|
+
listInstalledPlugins,
|
|
128
|
+
getDextoInstalledPluginsPath,
|
|
129
|
+
installPluginFromPath,
|
|
130
|
+
loadDextoInstalledPlugins,
|
|
131
|
+
saveDextoInstalledPlugins,
|
|
132
|
+
isPluginInstalled,
|
|
133
|
+
uninstallPlugin,
|
|
134
|
+
PluginManifestSchema,
|
|
135
|
+
PluginMCPConfigSchema,
|
|
136
|
+
PluginErrorCode,
|
|
137
|
+
PluginError,
|
|
138
|
+
DEFAULT_MARKETPLACES,
|
|
139
|
+
addMarketplace,
|
|
140
|
+
removeMarketplace,
|
|
141
|
+
updateMarketplace,
|
|
142
|
+
listMarketplaces,
|
|
143
|
+
listAllMarketplacePlugins,
|
|
144
|
+
installPluginFromMarketplace,
|
|
145
|
+
getUninstalledDefaults,
|
|
146
|
+
isDefaultMarketplace,
|
|
147
|
+
MarketplaceErrorCode,
|
|
148
|
+
MarketplaceError
|
|
149
|
+
} from "./plugins/index.js";
|
|
115
150
|
export {
|
|
116
151
|
AgentFactory,
|
|
117
152
|
AgentManager,
|
|
@@ -119,15 +154,24 @@ export {
|
|
|
119
154
|
ConfigError,
|
|
120
155
|
ConfigErrorCode,
|
|
121
156
|
CustomModelSchema,
|
|
157
|
+
DEFAULT_MARKETPLACES,
|
|
158
|
+
MarketplaceError,
|
|
159
|
+
MarketplaceErrorCode,
|
|
122
160
|
PROVIDER_API_KEY_MAP,
|
|
161
|
+
PluginError,
|
|
162
|
+
PluginErrorCode,
|
|
163
|
+
PluginMCPConfigSchema,
|
|
164
|
+
PluginManifestSchema,
|
|
123
165
|
PreferenceError,
|
|
124
166
|
PreferenceErrorCode,
|
|
125
167
|
RegistryError,
|
|
126
168
|
RegistryErrorCode,
|
|
127
169
|
SHARED_API_KEY_PROVIDERS,
|
|
128
170
|
addInstalledModel,
|
|
171
|
+
addMarketplace,
|
|
129
172
|
addPromptToAgentConfig,
|
|
130
173
|
addToDownloadQueue,
|
|
174
|
+
canUseDextoProvider,
|
|
131
175
|
copyDirectory,
|
|
132
176
|
createInitialPreferences,
|
|
133
177
|
deleteCustomModel,
|
|
@@ -136,6 +180,7 @@ export {
|
|
|
136
180
|
deriveAgentId,
|
|
137
181
|
deriveDisplayName,
|
|
138
182
|
determineApiKeyStorage,
|
|
183
|
+
discoverClaudeCodePlugins,
|
|
139
184
|
enrichAgentConfig,
|
|
140
185
|
ensureDextoGlobalDirectory,
|
|
141
186
|
ensureModelDirectory,
|
|
@@ -150,8 +195,10 @@ export {
|
|
|
150
195
|
getAllInstalledModels,
|
|
151
196
|
getCustomModel,
|
|
152
197
|
getCustomModelsPath,
|
|
198
|
+
getDextoApiKeyFromAuth,
|
|
153
199
|
getDextoEnvPath,
|
|
154
200
|
getDextoGlobalPath,
|
|
201
|
+
getDextoInstalledPluginsPath,
|
|
155
202
|
getDextoPath,
|
|
156
203
|
getDownloadQueue,
|
|
157
204
|
getExecutionContext,
|
|
@@ -165,20 +212,33 @@ export {
|
|
|
165
212
|
getModelTempDirectory,
|
|
166
213
|
getModelsDirectory,
|
|
167
214
|
getModelsDiskUsage,
|
|
215
|
+
getPluginSearchPaths,
|
|
168
216
|
getPrimaryApiKeyEnvVar,
|
|
169
217
|
getProviderKeyStatus,
|
|
170
218
|
getTotalInstalledSize,
|
|
219
|
+
getUninstalledDefaults,
|
|
171
220
|
globalPreferencesExist,
|
|
172
221
|
installBundledAgent,
|
|
173
222
|
installCustomAgent,
|
|
223
|
+
installPluginFromMarketplace,
|
|
224
|
+
installPluginFromPath,
|
|
225
|
+
isDefaultMarketplace,
|
|
226
|
+
isDextoAuthEnabled,
|
|
227
|
+
isDextoAuthenticated,
|
|
174
228
|
isModelInstalled,
|
|
175
229
|
isPath,
|
|
230
|
+
isPluginInstalled,
|
|
231
|
+
listAllMarketplacePlugins,
|
|
176
232
|
listInstalledAgents,
|
|
233
|
+
listInstalledPlugins,
|
|
234
|
+
listMarketplaces,
|
|
177
235
|
listModelDirectories,
|
|
178
236
|
listProviderKeyStatus,
|
|
179
237
|
loadAgentConfig,
|
|
180
238
|
loadBundledRegistryAgents,
|
|
239
|
+
loadClaudeCodePlugin,
|
|
181
240
|
loadCustomModels,
|
|
241
|
+
loadDextoInstalledPlugins,
|
|
182
242
|
loadGlobalPreferences,
|
|
183
243
|
loadModelState,
|
|
184
244
|
modelFileExists,
|
|
@@ -186,24 +246,30 @@ export {
|
|
|
186
246
|
reloadAgentConfigFromFile,
|
|
187
247
|
removeFromDownloadQueue,
|
|
188
248
|
removeInstalledModel,
|
|
249
|
+
removeMarketplace,
|
|
189
250
|
removeMcpServerFromConfig,
|
|
190
251
|
removePromptFromAgentConfig,
|
|
191
252
|
resolveAgentPath,
|
|
192
253
|
resolveApiKeyForProvider,
|
|
193
254
|
resolveBundledScript,
|
|
194
255
|
saveCustomModel,
|
|
256
|
+
saveDextoInstalledPlugins,
|
|
195
257
|
saveGlobalPreferences,
|
|
196
258
|
saveModelState,
|
|
197
259
|
saveProviderApiKey,
|
|
198
260
|
setActiveModel,
|
|
199
261
|
syncStateWithFilesystem,
|
|
262
|
+
tryLoadManifest,
|
|
200
263
|
uninstallAgent,
|
|
264
|
+
uninstallPlugin,
|
|
201
265
|
updateAgentConfigFile,
|
|
202
266
|
updateDefaultAgentPreference,
|
|
203
267
|
updateEnvFile,
|
|
204
268
|
updateGlobalPreferences,
|
|
269
|
+
updateMarketplace,
|
|
205
270
|
updateMcpServerField,
|
|
206
271
|
updateModelLastUsed,
|
|
272
|
+
validatePluginDirectory,
|
|
207
273
|
walkUpDirectories,
|
|
208
274
|
writeConfigFile,
|
|
209
275
|
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"];
|
|
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: 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"]>>;
|
|
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: "dexto" | "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
|
|
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?: "dexto" | "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | 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: "dexto" | "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
|
|
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?: "dexto" | "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | 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,mHAUzB,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"}
|