@dexto/agent-management 1.5.7 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AgentFactory.cjs +5 -9
- package/dist/AgentFactory.d.ts +6 -5
- package/dist/AgentFactory.d.ts.map +1 -1
- package/dist/AgentFactory.js +5 -9
- package/dist/AgentManager.cjs +2 -2
- package/dist/AgentManager.d.ts +1 -1
- package/dist/AgentManager.d.ts.map +1 -1
- package/dist/AgentManager.js +4 -4
- package/dist/agent-creation.cjs +95 -0
- package/dist/agent-creation.d.ts +15 -0
- package/dist/agent-creation.d.ts.map +1 -0
- package/dist/agent-creation.js +78 -0
- package/dist/config/config-enrichment.cjs +2 -12
- package/dist/config/config-enrichment.d.ts +1 -1
- package/dist/config/config-enrichment.d.ts.map +1 -1
- package/dist/config/config-enrichment.js +2 -12
- package/dist/config/config-manager.cjs +4 -4
- package/dist/config/config-manager.d.ts +1 -1
- package/dist/config/config-manager.d.ts.map +1 -1
- package/dist/config/config-manager.js +3 -1
- package/dist/config/loader.d.ts +3 -3
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/images/image-store.cjs +256 -0
- package/dist/images/image-store.d.ts +70 -0
- package/dist/images/image-store.d.ts.map +1 -0
- package/dist/images/image-store.js +210 -0
- package/dist/index.cjs +43 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +43 -1
- package/dist/models/custom-models.cjs +1 -1
- package/dist/models/custom-models.d.ts +7 -7
- package/dist/models/custom-models.d.ts.map +1 -1
- package/dist/models/custom-models.js +1 -1
- package/dist/plugins/discover-plugins.cjs +15 -31
- package/dist/plugins/discover-plugins.d.ts.map +1 -1
- package/dist/plugins/discover-plugins.js +15 -31
- package/dist/plugins/discover-skills.cjs +4 -0
- package/dist/plugins/discover-skills.d.ts +6 -3
- package/dist/plugins/discover-skills.d.ts.map +1 -1
- package/dist/plugins/discover-skills.js +4 -0
- package/dist/plugins/index.cjs +0 -2
- package/dist/plugins/index.d.ts +5 -6
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +0 -2
- package/dist/plugins/list-plugins.cjs +3 -1
- package/dist/plugins/list-plugins.d.ts.map +1 -1
- package/dist/plugins/list-plugins.js +3 -1
- package/dist/plugins/load-plugin.cjs +0 -13
- package/dist/plugins/load-plugin.d.ts +3 -5
- package/dist/plugins/load-plugin.d.ts.map +1 -1
- package/dist/plugins/load-plugin.js +0 -13
- package/dist/plugins/schemas.cjs +1 -11
- package/dist/plugins/schemas.d.ts +14 -69
- package/dist/plugins/schemas.d.ts.map +1 -1
- package/dist/plugins/schemas.js +1 -10
- package/dist/plugins/types.d.ts +2 -20
- package/dist/plugins/types.d.ts.map +1 -1
- package/dist/plugins/validate-plugin.cjs +7 -37
- package/dist/plugins/validate-plugin.d.ts +6 -24
- package/dist/plugins/validate-plugin.d.ts.map +1 -1
- package/dist/plugins/validate-plugin.js +8 -38
- 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/registry/registry.d.ts +4 -44
- package/dist/registry/registry.d.ts.map +1 -1
- package/dist/runtime/AgentPool.d.ts +2 -2
- package/dist/runtime/AgentPool.d.ts.map +1 -1
- package/dist/runtime/AgentRuntime.cjs +20 -15
- package/dist/runtime/AgentRuntime.d.ts +2 -2
- package/dist/runtime/AgentRuntime.d.ts.map +1 -1
- package/dist/runtime/AgentRuntime.js +20 -15
- package/dist/runtime/approval-delegation.d.ts +2 -2
- package/dist/runtime/approval-delegation.d.ts.map +1 -1
- package/dist/runtime/schemas.d.ts +1 -1
- package/dist/runtime/types.d.ts +2 -1
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/{tool-provider → tool-factories/agent-spawner}/error-codes.d.ts +1 -1
- package/dist/tool-factories/agent-spawner/error-codes.d.ts.map +1 -0
- package/dist/{tool-provider → tool-factories/agent-spawner}/errors.d.ts +1 -1
- package/dist/tool-factories/agent-spawner/errors.d.ts.map +1 -0
- package/dist/tool-factories/agent-spawner/factory.cjs +290 -0
- package/dist/tool-factories/agent-spawner/factory.d.ts +4 -0
- package/dist/tool-factories/agent-spawner/factory.d.ts.map +1 -0
- package/dist/tool-factories/agent-spawner/factory.js +279 -0
- package/dist/{tool-provider → tool-factories/agent-spawner}/index.cjs +9 -9
- package/dist/{tool-provider → tool-factories/agent-spawner}/index.d.ts +3 -3
- package/dist/tool-factories/agent-spawner/index.d.ts.map +1 -0
- package/dist/{tool-provider → tool-factories/agent-spawner}/index.js +4 -4
- package/dist/{tool-provider → tool-factories/agent-spawner}/llm-resolution.cjs +1 -1
- package/dist/{tool-provider → tool-factories/agent-spawner}/llm-resolution.d.ts +4 -4
- package/dist/tool-factories/agent-spawner/llm-resolution.d.ts.map +1 -0
- package/dist/{tool-provider → tool-factories/agent-spawner}/llm-resolution.js +1 -1
- package/dist/{tool-provider/runtime-service.cjs → tool-factories/agent-spawner/runtime.cjs} +112 -73
- package/dist/{tool-provider/runtime-service.d.ts → tool-factories/agent-spawner/runtime.d.ts} +8 -6
- package/dist/tool-factories/agent-spawner/runtime.d.ts.map +1 -0
- package/dist/{tool-provider/runtime-service.js → tool-factories/agent-spawner/runtime.js} +98 -69
- package/dist/{tool-provider → tool-factories/agent-spawner}/schemas.cjs +2 -2
- package/dist/{tool-provider → tool-factories/agent-spawner}/schemas.d.ts +4 -4
- package/dist/tool-factories/agent-spawner/schemas.d.ts.map +1 -0
- package/dist/{tool-provider → tool-factories/agent-spawner}/schemas.js +2 -2
- package/dist/{tool-provider → tool-factories/agent-spawner}/spawn-agent-tool.cjs +8 -7
- package/dist/tool-factories/agent-spawner/spawn-agent-tool.d.ts +11 -0
- package/dist/tool-factories/agent-spawner/spawn-agent-tool.d.ts.map +1 -0
- package/dist/{tool-provider → tool-factories/agent-spawner}/spawn-agent-tool.js +8 -7
- package/dist/tool-factories/agent-spawner/types.d.ts.map +1 -0
- package/dist/utils/api-key-resolver.cjs +1 -1
- package/dist/utils/api-key-resolver.js +1 -1
- package/dist/utils/feature-flags.cjs +3 -1
- package/dist/utils/feature-flags.d.ts +2 -2
- package/dist/utils/feature-flags.d.ts.map +1 -1
- package/dist/utils/feature-flags.js +3 -1
- package/dist/writer.d.ts +2 -1
- package/dist/writer.d.ts.map +1 -1
- package/package.json +6 -3
- package/dist/tool-provider/error-codes.d.ts.map +0 -1
- package/dist/tool-provider/errors.d.ts.map +0 -1
- package/dist/tool-provider/index.d.ts.map +0 -1
- package/dist/tool-provider/llm-resolution.d.ts.map +0 -1
- package/dist/tool-provider/runtime-service.d.ts.map +0 -1
- package/dist/tool-provider/schemas.d.ts.map +0 -1
- package/dist/tool-provider/spawn-agent-tool.d.ts +0 -10
- package/dist/tool-provider/spawn-agent-tool.d.ts.map +0 -1
- package/dist/tool-provider/tool-provider.cjs +0 -46
- package/dist/tool-provider/tool-provider.d.ts +0 -24
- package/dist/tool-provider/tool-provider.d.ts.map +0 -1
- package/dist/tool-provider/tool-provider.js +0 -22
- package/dist/tool-provider/types.d.ts.map +0 -1
- /package/dist/{tool-provider → tool-factories/agent-spawner}/error-codes.cjs +0 -0
- /package/dist/{tool-provider → tool-factories/agent-spawner}/error-codes.js +0 -0
- /package/dist/{tool-provider → tool-factories/agent-spawner}/errors.cjs +0 -0
- /package/dist/{tool-provider → tool-factories/agent-spawner}/errors.js +0 -0
- /package/dist/{tool-provider → tool-factories/agent-spawner}/types.cjs +0 -0
- /package/dist/{tool-provider → tool-factories/agent-spawner}/types.d.ts +0 -0
- /package/dist/{tool-provider → tool-factories/agent-spawner}/types.js +0 -0
package/dist/index.cjs
CHANGED
|
@@ -42,8 +42,10 @@ __export(index_exports, {
|
|
|
42
42
|
addMarketplace: () => import_plugins.addMarketplace,
|
|
43
43
|
addPromptToAgentConfig: () => import_config.addPromptToAgentConfig,
|
|
44
44
|
addToDownloadQueue: () => import_models.addToDownloadQueue,
|
|
45
|
+
agentPreferencesExist: () => import_loader2.agentPreferencesExist,
|
|
45
46
|
canUseDextoProvider: () => import_dexto_auth.canUseDextoProvider,
|
|
46
47
|
copyDirectory: () => import_path.copyDirectory,
|
|
48
|
+
createDextoAgentFromConfig: () => import_agent_creation.createDextoAgentFromConfig,
|
|
47
49
|
createInitialPreferences: () => import_loader.createInitialPreferences,
|
|
48
50
|
deleteCustomModel: () => import_custom_models.deleteCustomModel,
|
|
49
51
|
deleteModelDirectory: () => import_models.deleteModelDirectory,
|
|
@@ -62,10 +64,12 @@ __export(index_exports, {
|
|
|
62
64
|
formatSize: () => import_models.formatSize,
|
|
63
65
|
getActiveModel: () => import_models.getActiveModel,
|
|
64
66
|
getActiveModelId: () => import_models.getActiveModelId,
|
|
67
|
+
getAgentPreferencesPath: () => import_loader2.getAgentPreferencesPath,
|
|
65
68
|
getAgentRegistry: () => import_registry.getAgentRegistry,
|
|
66
69
|
getAllInstalledModels: () => import_models.getAllInstalledModels,
|
|
67
70
|
getCustomModel: () => import_custom_models.getCustomModel,
|
|
68
71
|
getCustomModelsPath: () => import_custom_models.getCustomModelsPath,
|
|
72
|
+
getDefaultImageStoreDir: () => import_image_store.getDefaultImageStoreDir,
|
|
69
73
|
getDextoApiKeyFromAuth: () => import_dexto_auth.getDextoApiKeyFromAuth,
|
|
70
74
|
getDextoEnvPath: () => import_path.getDextoEnvPath,
|
|
71
75
|
getDextoGlobalPath: () => import_path.getDextoGlobalPath,
|
|
@@ -74,6 +78,9 @@ __export(index_exports, {
|
|
|
74
78
|
getDownloadQueue: () => import_models.getDownloadQueue,
|
|
75
79
|
getExecutionContext: () => import_execution_context.getExecutionContext,
|
|
76
80
|
getGlobalPreferencesPath: () => import_loader.getGlobalPreferencesPath,
|
|
81
|
+
getImagePackageInstallDir: () => import_image_store.getImagePackageInstallDir,
|
|
82
|
+
getImagePackagesDir: () => import_image_store.getImagePackagesDir,
|
|
83
|
+
getImageRegistryPath: () => import_image_store.getImageRegistryPath,
|
|
77
84
|
getInstalledModel: () => import_models.getInstalledModel,
|
|
78
85
|
getInstalledModelCount: () => import_models.getInstalledModelCount,
|
|
79
86
|
getModelDirectory: () => import_models.getModelDirectory,
|
|
@@ -96,6 +103,7 @@ __export(index_exports, {
|
|
|
96
103
|
isDefaultMarketplace: () => import_plugins.isDefaultMarketplace,
|
|
97
104
|
isDextoAuthEnabled: () => import_feature_flags.isDextoAuthEnabled,
|
|
98
105
|
isDextoAuthenticated: () => import_dexto_auth.isDextoAuthenticated,
|
|
106
|
+
isFileLikeImageSpecifier: () => import_image_store.isFileLikeImageSpecifier,
|
|
99
107
|
isModelInstalled: () => import_models.isModelInstalled,
|
|
100
108
|
isPath: () => import_path.isPath,
|
|
101
109
|
isPluginInstalled: () => import_plugins.isPluginInstalled,
|
|
@@ -106,16 +114,20 @@ __export(index_exports, {
|
|
|
106
114
|
listModelDirectories: () => import_models.listModelDirectories,
|
|
107
115
|
listProviderKeyStatus: () => import_api_key_store.listProviderKeyStatus,
|
|
108
116
|
loadAgentConfig: () => import_config.loadAgentConfig,
|
|
117
|
+
loadAgentPreferences: () => import_loader2.loadAgentPreferences,
|
|
109
118
|
loadBundledRegistryAgents: () => import_registry.loadBundledRegistryAgents,
|
|
110
119
|
loadClaudeCodePlugin: () => import_plugins.loadClaudeCodePlugin,
|
|
111
120
|
loadCustomModels: () => import_custom_models.loadCustomModels,
|
|
112
121
|
loadDextoInstalledPlugins: () => import_plugins.loadDextoInstalledPlugins,
|
|
113
122
|
loadGlobalPreferences: () => import_loader.loadGlobalPreferences,
|
|
123
|
+
loadImageRegistry: () => import_image_store.loadImageRegistry,
|
|
114
124
|
loadModelState: () => import_models.loadModelState,
|
|
115
125
|
modelFileExists: () => import_models.modelFileExists,
|
|
126
|
+
parseImageSpecifier: () => import_image_store.parseImageSpecifier,
|
|
116
127
|
registerManualModel: () => import_models.registerManualModel,
|
|
117
128
|
reloadAgentConfigFromFile: () => import_config.reloadAgentConfigFromFile,
|
|
118
129
|
removeFromDownloadQueue: () => import_models.removeFromDownloadQueue,
|
|
130
|
+
removeImageFromStore: () => import_image_store.removeImageFromStore,
|
|
119
131
|
removeInstalledModel: () => import_models.removeInstalledModel,
|
|
120
132
|
removeMarketplace: () => import_plugins.removeMarketplace,
|
|
121
133
|
removeMcpServerFromConfig: () => import_config.removeMcpServerFromConfig,
|
|
@@ -123,17 +135,24 @@ __export(index_exports, {
|
|
|
123
135
|
resolveAgentPath: () => import_resolver.resolveAgentPath,
|
|
124
136
|
resolveApiKeyForProvider: () => import_api_key_resolver.resolveApiKeyForProvider,
|
|
125
137
|
resolveBundledScript: () => import_path.resolveBundledScript,
|
|
138
|
+
resolveFileLikeImageSpecifierToFileUrl: () => import_image_store.resolveFileLikeImageSpecifierToFileUrl,
|
|
139
|
+
resolveFileLikeImageSpecifierToPath: () => import_image_store.resolveFileLikeImageSpecifierToPath,
|
|
140
|
+
resolveImageEntryFileFromStore: () => import_image_store.resolveImageEntryFileFromStore,
|
|
141
|
+
saveAgentPreferences: () => import_loader2.saveAgentPreferences,
|
|
126
142
|
saveCustomModel: () => import_custom_models.saveCustomModel,
|
|
127
143
|
saveDextoInstalledPlugins: () => import_plugins.saveDextoInstalledPlugins,
|
|
128
144
|
saveGlobalPreferences: () => import_loader.saveGlobalPreferences,
|
|
145
|
+
saveImageRegistry: () => import_image_store.saveImageRegistry,
|
|
129
146
|
saveModelState: () => import_models.saveModelState,
|
|
130
147
|
saveProviderApiKey: () => import_api_key_store.saveProviderApiKey,
|
|
148
|
+
setActiveImageVersion: () => import_image_store.setActiveImageVersion,
|
|
131
149
|
setActiveModel: () => import_models.setActiveModel,
|
|
132
150
|
syncStateWithFilesystem: () => import_models.syncStateWithFilesystem,
|
|
133
151
|
tryLoadManifest: () => import_plugins.tryLoadManifest,
|
|
134
152
|
uninstallAgent: () => import_installation.uninstallAgent,
|
|
135
153
|
uninstallPlugin: () => import_plugins.uninstallPlugin,
|
|
136
154
|
updateAgentConfigFile: () => import_config.updateAgentConfigFile,
|
|
155
|
+
updateAgentPreferences: () => import_loader2.updateAgentPreferences,
|
|
137
156
|
updateDefaultAgentPreference: () => import_resolver.updateDefaultAgentPreference,
|
|
138
157
|
updateEnvFile: () => import_env_file.updateEnvFile,
|
|
139
158
|
updateGlobalPreferences: () => import_loader.updateGlobalPreferences,
|
|
@@ -152,12 +171,15 @@ var import_types = require("./registry/types.js");
|
|
|
152
171
|
var import_errors = require("./registry/errors.js");
|
|
153
172
|
var import_error_codes = require("./registry/error-codes.js");
|
|
154
173
|
var import_loader = require("./preferences/loader.js");
|
|
174
|
+
var import_loader2 = require("./preferences/loader.js");
|
|
155
175
|
var import_errors2 = require("./preferences/errors.js");
|
|
156
176
|
var import_resolver = require("./resolver.js");
|
|
157
177
|
var import_writer = require("./writer.js");
|
|
158
178
|
var import_AgentManager = require("./AgentManager.js");
|
|
159
179
|
var import_installation = require("./installation.js");
|
|
160
180
|
var import_AgentFactory = require("./AgentFactory.js");
|
|
181
|
+
var import_agent_creation = require("./agent-creation.js");
|
|
182
|
+
var import_image_store = require("./images/image-store.js");
|
|
161
183
|
var import_path = require("./utils/path.js");
|
|
162
184
|
var import_execution_context = require("./utils/execution-context.js");
|
|
163
185
|
var import_fs_walk = require("./utils/fs-walk.js");
|
|
@@ -170,7 +192,7 @@ var import_api_key_resolver = require("./utils/api-key-resolver.js");
|
|
|
170
192
|
var import_custom_models = require("./models/custom-models.js");
|
|
171
193
|
var import_models = require("./models/index.js");
|
|
172
194
|
__reExport(index_exports, require("./runtime/index.js"), module.exports);
|
|
173
|
-
__reExport(index_exports, require("./tool-
|
|
195
|
+
__reExport(index_exports, require("./tool-factories/agent-spawner/index.js"), module.exports);
|
|
174
196
|
var import_plugins = require("./plugins/index.js");
|
|
175
197
|
// Annotate the CommonJS export names for ESM import in node:
|
|
176
198
|
0 && (module.exports = {
|
|
@@ -197,8 +219,10 @@ var import_plugins = require("./plugins/index.js");
|
|
|
197
219
|
addMarketplace,
|
|
198
220
|
addPromptToAgentConfig,
|
|
199
221
|
addToDownloadQueue,
|
|
222
|
+
agentPreferencesExist,
|
|
200
223
|
canUseDextoProvider,
|
|
201
224
|
copyDirectory,
|
|
225
|
+
createDextoAgentFromConfig,
|
|
202
226
|
createInitialPreferences,
|
|
203
227
|
deleteCustomModel,
|
|
204
228
|
deleteModelDirectory,
|
|
@@ -217,10 +241,12 @@ var import_plugins = require("./plugins/index.js");
|
|
|
217
241
|
formatSize,
|
|
218
242
|
getActiveModel,
|
|
219
243
|
getActiveModelId,
|
|
244
|
+
getAgentPreferencesPath,
|
|
220
245
|
getAgentRegistry,
|
|
221
246
|
getAllInstalledModels,
|
|
222
247
|
getCustomModel,
|
|
223
248
|
getCustomModelsPath,
|
|
249
|
+
getDefaultImageStoreDir,
|
|
224
250
|
getDextoApiKeyFromAuth,
|
|
225
251
|
getDextoEnvPath,
|
|
226
252
|
getDextoGlobalPath,
|
|
@@ -229,6 +255,9 @@ var import_plugins = require("./plugins/index.js");
|
|
|
229
255
|
getDownloadQueue,
|
|
230
256
|
getExecutionContext,
|
|
231
257
|
getGlobalPreferencesPath,
|
|
258
|
+
getImagePackageInstallDir,
|
|
259
|
+
getImagePackagesDir,
|
|
260
|
+
getImageRegistryPath,
|
|
232
261
|
getInstalledModel,
|
|
233
262
|
getInstalledModelCount,
|
|
234
263
|
getModelDirectory,
|
|
@@ -251,6 +280,7 @@ var import_plugins = require("./plugins/index.js");
|
|
|
251
280
|
isDefaultMarketplace,
|
|
252
281
|
isDextoAuthEnabled,
|
|
253
282
|
isDextoAuthenticated,
|
|
283
|
+
isFileLikeImageSpecifier,
|
|
254
284
|
isModelInstalled,
|
|
255
285
|
isPath,
|
|
256
286
|
isPluginInstalled,
|
|
@@ -261,16 +291,20 @@ var import_plugins = require("./plugins/index.js");
|
|
|
261
291
|
listModelDirectories,
|
|
262
292
|
listProviderKeyStatus,
|
|
263
293
|
loadAgentConfig,
|
|
294
|
+
loadAgentPreferences,
|
|
264
295
|
loadBundledRegistryAgents,
|
|
265
296
|
loadClaudeCodePlugin,
|
|
266
297
|
loadCustomModels,
|
|
267
298
|
loadDextoInstalledPlugins,
|
|
268
299
|
loadGlobalPreferences,
|
|
300
|
+
loadImageRegistry,
|
|
269
301
|
loadModelState,
|
|
270
302
|
modelFileExists,
|
|
303
|
+
parseImageSpecifier,
|
|
271
304
|
registerManualModel,
|
|
272
305
|
reloadAgentConfigFromFile,
|
|
273
306
|
removeFromDownloadQueue,
|
|
307
|
+
removeImageFromStore,
|
|
274
308
|
removeInstalledModel,
|
|
275
309
|
removeMarketplace,
|
|
276
310
|
removeMcpServerFromConfig,
|
|
@@ -278,17 +312,24 @@ var import_plugins = require("./plugins/index.js");
|
|
|
278
312
|
resolveAgentPath,
|
|
279
313
|
resolveApiKeyForProvider,
|
|
280
314
|
resolveBundledScript,
|
|
315
|
+
resolveFileLikeImageSpecifierToFileUrl,
|
|
316
|
+
resolveFileLikeImageSpecifierToPath,
|
|
317
|
+
resolveImageEntryFileFromStore,
|
|
318
|
+
saveAgentPreferences,
|
|
281
319
|
saveCustomModel,
|
|
282
320
|
saveDextoInstalledPlugins,
|
|
283
321
|
saveGlobalPreferences,
|
|
322
|
+
saveImageRegistry,
|
|
284
323
|
saveModelState,
|
|
285
324
|
saveProviderApiKey,
|
|
325
|
+
setActiveImageVersion,
|
|
286
326
|
setActiveModel,
|
|
287
327
|
syncStateWithFilesystem,
|
|
288
328
|
tryLoadManifest,
|
|
289
329
|
uninstallAgent,
|
|
290
330
|
uninstallPlugin,
|
|
291
331
|
updateAgentConfigFile,
|
|
332
|
+
updateAgentPreferences,
|
|
292
333
|
updateDefaultAgentPreference,
|
|
293
334
|
updateEnvFile,
|
|
294
335
|
updateGlobalPreferences,
|
|
@@ -301,5 +342,5 @@ var import_plugins = require("./plugins/index.js");
|
|
|
301
342
|
writeLLMPreferences,
|
|
302
343
|
writePreferencesToAgent,
|
|
303
344
|
...require("./runtime/index.js"),
|
|
304
|
-
...require("./tool-
|
|
345
|
+
...require("./tool-factories/agent-spawner/index.js")
|
|
305
346
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -4,13 +4,16 @@ 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';
|
|
11
12
|
export { AgentManager, type AgentMetadata } from './AgentManager.js';
|
|
12
13
|
export { installBundledAgent, installCustomAgent, uninstallAgent, listInstalledAgents, type InstallOptions, } from './installation.js';
|
|
13
14
|
export { AgentFactory, type CreateAgentOptions } from './AgentFactory.js';
|
|
15
|
+
export { createDextoAgentFromConfig } from './agent-creation.js';
|
|
16
|
+
export { getDefaultImageStoreDir, getImageRegistryPath, getImagePackagesDir, getImagePackageInstallDir, loadImageRegistry, saveImageRegistry, parseImageSpecifier, isFileLikeImageSpecifier, resolveFileLikeImageSpecifierToPath, resolveFileLikeImageSpecifierToFileUrl, resolveImageEntryFileFromStore, setActiveImageVersion, removeImageFromStore, type ImageRegistryFile, type ImageSpecifierParts, } from './images/image-store.js';
|
|
14
17
|
export { getDextoPath, getDextoGlobalPath, getDextoEnvPath, copyDirectory, isPath, findPackageRoot, resolveBundledScript, ensureDextoGlobalDirectory, } from './utils/path.js';
|
|
15
18
|
export { getExecutionContext, findDextoSourceRoot, findDextoProjectRoot, type ExecutionContext, } from './utils/execution-context.js';
|
|
16
19
|
export { walkUpDirectories } from './utils/fs-walk.js';
|
|
@@ -23,6 +26,6 @@ export { resolveApiKeyForProvider, getPrimaryApiKeyEnvVar, PROVIDER_API_KEY_MAP,
|
|
|
23
26
|
export { loadCustomModels, saveCustomModel, deleteCustomModel, getCustomModel, getCustomModelsPath, CustomModelSchema, CUSTOM_MODEL_PROVIDERS, type CustomModel, type CustomModelProvider, } from './models/custom-models.js';
|
|
24
27
|
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';
|
|
25
28
|
export * from './runtime/index.js';
|
|
26
|
-
export * from './tool-
|
|
29
|
+
export * from './tool-factories/agent-spawner/index.js';
|
|
27
30
|
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';
|
|
28
31
|
//# 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,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,O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K,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,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
|
@@ -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 {
|
|
@@ -25,6 +32,22 @@ import {
|
|
|
25
32
|
listInstalledAgents
|
|
26
33
|
} from "./installation.js";
|
|
27
34
|
import { AgentFactory } from "./AgentFactory.js";
|
|
35
|
+
import { createDextoAgentFromConfig } from "./agent-creation.js";
|
|
36
|
+
import {
|
|
37
|
+
getDefaultImageStoreDir,
|
|
38
|
+
getImageRegistryPath,
|
|
39
|
+
getImagePackagesDir,
|
|
40
|
+
getImagePackageInstallDir,
|
|
41
|
+
loadImageRegistry,
|
|
42
|
+
saveImageRegistry,
|
|
43
|
+
parseImageSpecifier,
|
|
44
|
+
isFileLikeImageSpecifier,
|
|
45
|
+
resolveFileLikeImageSpecifierToPath,
|
|
46
|
+
resolveFileLikeImageSpecifierToFileUrl,
|
|
47
|
+
resolveImageEntryFileFromStore,
|
|
48
|
+
setActiveImageVersion,
|
|
49
|
+
removeImageFromStore
|
|
50
|
+
} from "./images/image-store.js";
|
|
28
51
|
import {
|
|
29
52
|
getDextoPath,
|
|
30
53
|
getDextoGlobalPath,
|
|
@@ -117,7 +140,7 @@ import {
|
|
|
117
140
|
registerManualModel
|
|
118
141
|
} from "./models/index.js";
|
|
119
142
|
export * from "./runtime/index.js";
|
|
120
|
-
export * from "./tool-
|
|
143
|
+
export * from "./tool-factories/agent-spawner/index.js";
|
|
121
144
|
import {
|
|
122
145
|
discoverClaudeCodePlugins,
|
|
123
146
|
getPluginSearchPaths,
|
|
@@ -171,8 +194,10 @@ export {
|
|
|
171
194
|
addMarketplace,
|
|
172
195
|
addPromptToAgentConfig,
|
|
173
196
|
addToDownloadQueue,
|
|
197
|
+
agentPreferencesExist,
|
|
174
198
|
canUseDextoProvider,
|
|
175
199
|
copyDirectory,
|
|
200
|
+
createDextoAgentFromConfig,
|
|
176
201
|
createInitialPreferences,
|
|
177
202
|
deleteCustomModel,
|
|
178
203
|
deleteModelDirectory,
|
|
@@ -191,10 +216,12 @@ export {
|
|
|
191
216
|
formatSize,
|
|
192
217
|
getActiveModel,
|
|
193
218
|
getActiveModelId,
|
|
219
|
+
getAgentPreferencesPath,
|
|
194
220
|
getAgentRegistry,
|
|
195
221
|
getAllInstalledModels,
|
|
196
222
|
getCustomModel,
|
|
197
223
|
getCustomModelsPath,
|
|
224
|
+
getDefaultImageStoreDir,
|
|
198
225
|
getDextoApiKeyFromAuth,
|
|
199
226
|
getDextoEnvPath,
|
|
200
227
|
getDextoGlobalPath,
|
|
@@ -203,6 +230,9 @@ export {
|
|
|
203
230
|
getDownloadQueue,
|
|
204
231
|
getExecutionContext,
|
|
205
232
|
getGlobalPreferencesPath,
|
|
233
|
+
getImagePackageInstallDir,
|
|
234
|
+
getImagePackagesDir,
|
|
235
|
+
getImageRegistryPath,
|
|
206
236
|
getInstalledModel,
|
|
207
237
|
getInstalledModelCount,
|
|
208
238
|
getModelDirectory,
|
|
@@ -225,6 +255,7 @@ export {
|
|
|
225
255
|
isDefaultMarketplace,
|
|
226
256
|
isDextoAuthEnabled,
|
|
227
257
|
isDextoAuthenticated,
|
|
258
|
+
isFileLikeImageSpecifier,
|
|
228
259
|
isModelInstalled,
|
|
229
260
|
isPath,
|
|
230
261
|
isPluginInstalled,
|
|
@@ -235,16 +266,20 @@ export {
|
|
|
235
266
|
listModelDirectories,
|
|
236
267
|
listProviderKeyStatus,
|
|
237
268
|
loadAgentConfig,
|
|
269
|
+
loadAgentPreferences,
|
|
238
270
|
loadBundledRegistryAgents,
|
|
239
271
|
loadClaudeCodePlugin,
|
|
240
272
|
loadCustomModels,
|
|
241
273
|
loadDextoInstalledPlugins,
|
|
242
274
|
loadGlobalPreferences,
|
|
275
|
+
loadImageRegistry,
|
|
243
276
|
loadModelState,
|
|
244
277
|
modelFileExists,
|
|
278
|
+
parseImageSpecifier,
|
|
245
279
|
registerManualModel,
|
|
246
280
|
reloadAgentConfigFromFile,
|
|
247
281
|
removeFromDownloadQueue,
|
|
282
|
+
removeImageFromStore,
|
|
248
283
|
removeInstalledModel,
|
|
249
284
|
removeMarketplace,
|
|
250
285
|
removeMcpServerFromConfig,
|
|
@@ -252,17 +287,24 @@ export {
|
|
|
252
287
|
resolveAgentPath,
|
|
253
288
|
resolveApiKeyForProvider,
|
|
254
289
|
resolveBundledScript,
|
|
290
|
+
resolveFileLikeImageSpecifierToFileUrl,
|
|
291
|
+
resolveFileLikeImageSpecifierToPath,
|
|
292
|
+
resolveImageEntryFileFromStore,
|
|
293
|
+
saveAgentPreferences,
|
|
255
294
|
saveCustomModel,
|
|
256
295
|
saveDextoInstalledPlugins,
|
|
257
296
|
saveGlobalPreferences,
|
|
297
|
+
saveImageRegistry,
|
|
258
298
|
saveModelState,
|
|
259
299
|
saveProviderApiKey,
|
|
300
|
+
setActiveImageVersion,
|
|
260
301
|
setActiveModel,
|
|
261
302
|
syncStateWithFilesystem,
|
|
262
303
|
tryLoadManifest,
|
|
263
304
|
uninstallAgent,
|
|
264
305
|
uninstallPlugin,
|
|
265
306
|
updateAgentConfigFile,
|
|
307
|
+
updateAgentPreferences,
|
|
266
308
|
updateDefaultAgentPreference,
|
|
267
309
|
updateEnvFile,
|
|
268
310
|
updateGlobalPreferences,
|
|
@@ -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", "dexto"];
|
|
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,7 +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
|
+
* - dexto-nova: OpenRouter gateway using Dexto credits, requires auth login, uses OpenRouter model IDs
|
|
22
22
|
*
|
|
23
23
|
* TODO: For hosted deployments, API keys should be stored in a secure
|
|
24
24
|
* key management service (e.g., AWS Secrets Manager, HashiCorp Vault)
|
|
@@ -27,7 +27,7 @@ export type CustomModelProvider = (typeof CUSTOM_MODEL_PROVIDERS)[number];
|
|
|
27
27
|
*/
|
|
28
28
|
export declare const CustomModelSchema: z.ZodEffects<z.ZodObject<{
|
|
29
29
|
name: z.ZodString;
|
|
30
|
-
provider: z.ZodDefault<z.ZodEnum<["openai-compatible", "openrouter", "litellm", "glama", "bedrock", "ollama", "local", "vertex", "dexto"]>>;
|
|
30
|
+
provider: z.ZodDefault<z.ZodEnum<["openai-compatible", "openrouter", "litellm", "glama", "bedrock", "ollama", "local", "vertex", "dexto-nova"]>>;
|
|
31
31
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
32
32
|
displayName: z.ZodOptional<z.ZodString>;
|
|
33
33
|
maxInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -37,7 +37,7 @@ export declare const CustomModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
37
37
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
name: string;
|
|
40
|
-
provider: "
|
|
40
|
+
provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
41
41
|
apiKey?: string | undefined;
|
|
42
42
|
baseURL?: string | undefined;
|
|
43
43
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -47,7 +47,7 @@ export declare const CustomModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
47
47
|
maxOutputTokens?: number | undefined;
|
|
48
48
|
}, {
|
|
49
49
|
name: string;
|
|
50
|
-
provider?: "
|
|
50
|
+
provider?: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
51
51
|
apiKey?: string | undefined;
|
|
52
52
|
baseURL?: string | undefined;
|
|
53
53
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -57,7 +57,7 @@ export declare const CustomModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
57
57
|
maxOutputTokens?: number | undefined;
|
|
58
58
|
}>, {
|
|
59
59
|
name: string;
|
|
60
|
-
provider: "
|
|
60
|
+
provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
|
|
61
61
|
apiKey?: string | undefined;
|
|
62
62
|
baseURL?: string | undefined;
|
|
63
63
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -67,7 +67,7 @@ export declare const CustomModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
67
67
|
maxOutputTokens?: number | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
name: string;
|
|
70
|
-
provider?: "
|
|
70
|
+
provider?: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
71
71
|
apiKey?: string | undefined;
|
|
72
72
|
baseURL?: string | undefined;
|
|
73
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"}
|
|
@@ -64,18 +64,12 @@ function discoverClaudeCodePlugins(projectPath, bundledPluginPaths) {
|
|
|
64
64
|
if (!entry.isDirectory()) continue;
|
|
65
65
|
if (entry.name === "cache" || entry.name === "marketplaces") continue;
|
|
66
66
|
const pluginPath = path.join(dir, entry.name);
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
loadResult = (0, import_validate_plugin.tryLoadManifest)(pluginPath, true);
|
|
70
|
-
} catch {
|
|
71
|
-
continue;
|
|
72
|
-
}
|
|
73
|
-
if (loadResult) {
|
|
67
|
+
const manifest = (0, import_validate_plugin.tryLoadManifest)(pluginPath);
|
|
68
|
+
if (manifest) {
|
|
74
69
|
addPlugin({
|
|
75
70
|
path: pluginPath,
|
|
76
|
-
manifest
|
|
77
|
-
source
|
|
78
|
-
format: loadResult.format
|
|
71
|
+
manifest,
|
|
72
|
+
source
|
|
79
73
|
});
|
|
80
74
|
}
|
|
81
75
|
}
|
|
@@ -89,19 +83,13 @@ function discoverClaudeCodePlugins(projectPath, bundledPluginPaths) {
|
|
|
89
83
|
if (!(0, import_fs.existsSync)(pluginPath)) {
|
|
90
84
|
continue;
|
|
91
85
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
loadResult = (0, import_validate_plugin.tryLoadManifest)(pluginPath, true);
|
|
95
|
-
} catch {
|
|
96
|
-
continue;
|
|
97
|
-
}
|
|
98
|
-
if (loadResult) {
|
|
86
|
+
const manifest = (0, import_validate_plugin.tryLoadManifest)(pluginPath);
|
|
87
|
+
if (manifest) {
|
|
99
88
|
addPlugin({
|
|
100
89
|
path: pluginPath,
|
|
101
|
-
manifest
|
|
102
|
-
source: "user"
|
|
90
|
+
manifest,
|
|
91
|
+
source: "user"
|
|
103
92
|
// Treat as user-level since they come from image
|
|
104
|
-
format: loadResult.format
|
|
105
93
|
});
|
|
106
94
|
}
|
|
107
95
|
}
|
|
@@ -121,7 +109,9 @@ function readInstalledPluginsFile(filePath, currentProjectPath) {
|
|
|
121
109
|
return plugins;
|
|
122
110
|
}
|
|
123
111
|
const installedPlugins = result.data;
|
|
124
|
-
|
|
112
|
+
const pluginsById = installedPlugins.plugins;
|
|
113
|
+
for (const pluginId of Object.keys(pluginsById)) {
|
|
114
|
+
const installations = pluginsById[pluginId] ?? [];
|
|
125
115
|
for (const installation of installations) {
|
|
126
116
|
const { scope, installPath, projectPath } = installation;
|
|
127
117
|
if (!(0, import_fs.existsSync)(installPath)) {
|
|
@@ -134,19 +124,13 @@ function readInstalledPluginsFile(filePath, currentProjectPath) {
|
|
|
134
124
|
continue;
|
|
135
125
|
}
|
|
136
126
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
loadResult = (0, import_validate_plugin.tryLoadManifest)(installPath, true);
|
|
140
|
-
} catch {
|
|
141
|
-
continue;
|
|
142
|
-
}
|
|
143
|
-
if (loadResult) {
|
|
127
|
+
const manifest = (0, import_validate_plugin.tryLoadManifest)(installPath);
|
|
128
|
+
if (manifest) {
|
|
144
129
|
const source = scope === "project" || scope === "local" ? "project" : "user";
|
|
145
130
|
plugins.push({
|
|
146
131
|
path: installPath,
|
|
147
|
-
manifest
|
|
148
|
-
source
|
|
149
|
-
format: loadResult.format
|
|
132
|
+
manifest,
|
|
133
|
+
source
|
|
150
134
|
});
|
|
151
135
|
}
|
|
152
136
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover-plugins.d.ts","sourceRoot":"","sources":["../../src/plugins/discover-plugins.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAOH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"discover-plugins.d.ts","sourceRoot":"","sources":["../../src/plugins/discover-plugins.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAOH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACrC,WAAW,CAAC,EAAE,MAAM,EACpB,kBAAkB,CAAC,EAAE,MAAM,EAAE,GAC9B,gBAAgB,EAAE,CAmFpB;AAmFD;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,EAAE,CAU/C;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD"}
|
|
@@ -29,18 +29,12 @@ function discoverClaudeCodePlugins(projectPath, bundledPluginPaths) {
|
|
|
29
29
|
if (!entry.isDirectory()) continue;
|
|
30
30
|
if (entry.name === "cache" || entry.name === "marketplaces") continue;
|
|
31
31
|
const pluginPath = path.join(dir, entry.name);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
loadResult = tryLoadManifest(pluginPath, true);
|
|
35
|
-
} catch {
|
|
36
|
-
continue;
|
|
37
|
-
}
|
|
38
|
-
if (loadResult) {
|
|
32
|
+
const manifest = tryLoadManifest(pluginPath);
|
|
33
|
+
if (manifest) {
|
|
39
34
|
addPlugin({
|
|
40
35
|
path: pluginPath,
|
|
41
|
-
manifest
|
|
42
|
-
source
|
|
43
|
-
format: loadResult.format
|
|
36
|
+
manifest,
|
|
37
|
+
source
|
|
44
38
|
});
|
|
45
39
|
}
|
|
46
40
|
}
|
|
@@ -54,19 +48,13 @@ function discoverClaudeCodePlugins(projectPath, bundledPluginPaths) {
|
|
|
54
48
|
if (!existsSync(pluginPath)) {
|
|
55
49
|
continue;
|
|
56
50
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
loadResult = tryLoadManifest(pluginPath, true);
|
|
60
|
-
} catch {
|
|
61
|
-
continue;
|
|
62
|
-
}
|
|
63
|
-
if (loadResult) {
|
|
51
|
+
const manifest = tryLoadManifest(pluginPath);
|
|
52
|
+
if (manifest) {
|
|
64
53
|
addPlugin({
|
|
65
54
|
path: pluginPath,
|
|
66
|
-
manifest
|
|
67
|
-
source: "user"
|
|
55
|
+
manifest,
|
|
56
|
+
source: "user"
|
|
68
57
|
// Treat as user-level since they come from image
|
|
69
|
-
format: loadResult.format
|
|
70
58
|
});
|
|
71
59
|
}
|
|
72
60
|
}
|
|
@@ -86,7 +74,9 @@ function readInstalledPluginsFile(filePath, currentProjectPath) {
|
|
|
86
74
|
return plugins;
|
|
87
75
|
}
|
|
88
76
|
const installedPlugins = result.data;
|
|
89
|
-
|
|
77
|
+
const pluginsById = installedPlugins.plugins;
|
|
78
|
+
for (const pluginId of Object.keys(pluginsById)) {
|
|
79
|
+
const installations = pluginsById[pluginId] ?? [];
|
|
90
80
|
for (const installation of installations) {
|
|
91
81
|
const { scope, installPath, projectPath } = installation;
|
|
92
82
|
if (!existsSync(installPath)) {
|
|
@@ -99,19 +89,13 @@ function readInstalledPluginsFile(filePath, currentProjectPath) {
|
|
|
99
89
|
continue;
|
|
100
90
|
}
|
|
101
91
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
loadResult = tryLoadManifest(installPath, true);
|
|
105
|
-
} catch {
|
|
106
|
-
continue;
|
|
107
|
-
}
|
|
108
|
-
if (loadResult) {
|
|
92
|
+
const manifest = tryLoadManifest(installPath);
|
|
93
|
+
if (manifest) {
|
|
109
94
|
const source = scope === "project" || scope === "local" ? "project" : "user";
|
|
110
95
|
plugins.push({
|
|
111
96
|
path: installPath,
|
|
112
|
-
manifest
|
|
113
|
-
source
|
|
114
|
-
format: loadResult.format
|
|
97
|
+
manifest,
|
|
98
|
+
source
|
|
115
99
|
});
|
|
116
100
|
}
|
|
117
101
|
}
|