@dexto/agent-management 1.17.0 → 1.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/dexto-accounts.cjs +277 -0
- package/dist/auth/dexto-accounts.d.ts +144 -0
- package/dist/auth/dexto-accounts.d.ts.map +1 -0
- package/dist/auth/dexto-accounts.js +230 -0
- package/dist/auth/dexto-cloud.cjs +51 -0
- package/dist/auth/dexto-cloud.d.ts +9 -0
- package/dist/auth/dexto-cloud.d.ts.map +1 -0
- package/dist/auth/dexto-cloud.js +27 -0
- package/dist/auth/dexto-gateway.cjs +162 -0
- package/dist/auth/dexto-gateway.d.ts +55 -0
- package/dist/auth/dexto-gateway.d.ts.map +1 -0
- package/dist/auth/dexto-gateway.js +133 -0
- package/dist/auth/dexto-mcp.cjs +77 -0
- package/dist/auth/dexto-mcp.d.ts +23 -0
- package/dist/auth/dexto-mcp.d.ts.map +1 -0
- package/dist/auth/dexto-mcp.js +49 -0
- package/dist/auth/dexto-sign-in.cjs +345 -0
- package/dist/auth/dexto-sign-in.d.ts +86 -0
- package/dist/auth/dexto-sign-in.d.ts.map +1 -0
- package/dist/auth/dexto-sign-in.js +314 -0
- package/dist/auth/index.cjs +25 -0
- package/dist/auth/index.d.ts +6 -0
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +10 -0
- package/dist/auth/model-auth-handlers.cjs +3 -1
- package/dist/auth/model-auth-handlers.d.ts +6 -1
- package/dist/auth/model-auth-handlers.d.ts.map +1 -1
- package/dist/auth/model-auth-handlers.js +6 -1
- package/dist/config/errors.cjs +6 -6
- package/dist/config/errors.js +6 -6
- package/dist/images/image-store.cjs +2 -4
- package/dist/images/image-store.d.ts.map +1 -1
- package/dist/images/image-store.js +2 -4
- package/dist/index.cjs +40 -29
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -6
- package/dist/installation.cjs +2 -2
- package/dist/installation.js +2 -2
- package/dist/plugins/discover-skills.cjs +5 -2
- package/dist/plugins/discover-skills.d.ts +6 -2
- package/dist/plugins/discover-skills.d.ts.map +1 -1
- package/dist/plugins/discover-skills.js +5 -2
- package/dist/plugins/errors.cjs +2 -2
- package/dist/plugins/errors.js +2 -2
- package/dist/plugins/marketplace/errors.cjs +4 -4
- package/dist/plugins/marketplace/errors.js +4 -4
- package/dist/preferences/errors.cjs +1 -1
- package/dist/preferences/errors.js +1 -1
- package/dist/registry/registry.cjs +3 -3
- package/dist/registry/registry.js +3 -3
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.js +1 -1
- package/dist/tool-factories/agent-spawner/factory.cjs +1 -218
- package/dist/tool-factories/agent-spawner/factory.d.ts.map +1 -1
- package/dist/tool-factories/agent-spawner/factory.js +1 -228
- package/dist/utils/dexto-auth.cjs +3 -58
- package/dist/utils/dexto-auth.d.ts +4 -18
- package/dist/utils/dexto-auth.d.ts.map +1 -1
- package/dist/utils/dexto-auth.js +3 -57
- package/package.json +5 -6
package/dist/index.cjs
CHANGED
|
@@ -19,7 +19,7 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
var index_exports = {};
|
|
21
21
|
__export(index_exports, {
|
|
22
|
-
AUTH_METHOD_KINDS: () =>
|
|
22
|
+
AUTH_METHOD_KINDS: () => import_auth2.AUTH_METHOD_KINDS,
|
|
23
23
|
AgentFactory: () => import_AgentFactory.AgentFactory,
|
|
24
24
|
AgentManager: () => import_AgentManager.AgentManager,
|
|
25
25
|
CUSTOM_MODEL_PROVIDERS: () => import_custom_models.CUSTOM_MODEL_PROVIDERS,
|
|
@@ -33,10 +33,10 @@ __export(index_exports, {
|
|
|
33
33
|
MODEL_PICKER_STATE_VERSION: () => import_models.MODEL_PICKER_STATE_VERSION,
|
|
34
34
|
MarketplaceError: () => import_plugins.MarketplaceError,
|
|
35
35
|
MarketplaceErrorCode: () => import_plugins.MarketplaceErrorCode,
|
|
36
|
-
OPENAI_API_KEY_AUTH_METHOD: () =>
|
|
37
|
-
OPENAI_CHATGPT_LOGIN_AUTH_METHOD: () =>
|
|
36
|
+
OPENAI_API_KEY_AUTH_METHOD: () => import_auth2.OPENAI_API_KEY_AUTH_METHOD,
|
|
37
|
+
OPENAI_CHATGPT_LOGIN_AUTH_METHOD: () => import_auth2.OPENAI_CHATGPT_LOGIN_AUTH_METHOD,
|
|
38
38
|
PROVIDER_API_KEY_MAP: () => import_api_key_resolver.PROVIDER_API_KEY_MAP,
|
|
39
|
-
PROVIDER_AUTH_DEFINITIONS: () =>
|
|
39
|
+
PROVIDER_AUTH_DEFINITIONS: () => import_auth2.PROVIDER_AUTH_DEFINITIONS,
|
|
40
40
|
PluginError: () => import_plugins.PluginError,
|
|
41
41
|
PluginErrorCode: () => import_plugins.PluginErrorCode,
|
|
42
42
|
PluginMCPConfigSchema: () => import_plugins.PluginMCPConfigSchema,
|
|
@@ -56,18 +56,23 @@ __export(index_exports, {
|
|
|
56
56
|
agentPreferencesExist: () => import_loader2.agentPreferencesExist,
|
|
57
57
|
canUseDextoProvider: () => import_dexto_auth.canUseDextoProvider,
|
|
58
58
|
copyDirectory: () => import_path.copyDirectory,
|
|
59
|
-
createChatGPTRuntimeAuth: () =>
|
|
59
|
+
createChatGPTRuntimeAuth: () => import_auth2.createChatGPTRuntimeAuth,
|
|
60
60
|
createDextoAgentFromConfig: () => import_agent_creation.createDextoAgentFromConfig,
|
|
61
61
|
createInitialPreferences: () => import_loader.createInitialPreferences,
|
|
62
62
|
createLocalSkills: () => import_plugins.createLocalSkills,
|
|
63
|
-
createModelAuthResolver: () =>
|
|
63
|
+
createModelAuthResolver: () => import_auth2.createModelAuthResolver,
|
|
64
64
|
deleteCustomModel: () => import_custom_models.deleteCustomModel,
|
|
65
|
-
deleteModelAuthProfile: () =>
|
|
65
|
+
deleteModelAuthProfile: () => import_auth2.deleteModelAuthProfile,
|
|
66
66
|
deleteModelDirectory: () => import_models.deleteModelDirectory,
|
|
67
67
|
deletePromptByMetadata: () => import_config.deletePromptByMetadata,
|
|
68
68
|
deriveAgentId: () => import_config.deriveAgentId,
|
|
69
69
|
deriveDisplayName: () => import_types.deriveDisplayName,
|
|
70
70
|
determineApiKeyStorage: () => import_api_key_store.determineApiKeyStorage,
|
|
71
|
+
dextoAccounts: () => import_auth.dextoAccounts,
|
|
72
|
+
dextoCloud: () => import_auth.dextoCloud,
|
|
73
|
+
dextoGateway: () => import_auth.dextoGateway,
|
|
74
|
+
dextoMcp: () => import_auth.dextoMcp,
|
|
75
|
+
dextoSignIn: () => import_auth.dextoSignIn,
|
|
71
76
|
discoverClaudeCodePlugins: () => import_plugins.discoverClaudeCodePlugins,
|
|
72
77
|
discoverStandaloneSkills: () => import_plugins.discoverStandaloneSkills,
|
|
73
78
|
enrichAgentConfig: () => import_config.enrichAgentConfig,
|
|
@@ -85,14 +90,13 @@ __export(index_exports, {
|
|
|
85
90
|
getAgentPreferencesPath: () => import_loader2.getAgentPreferencesPath,
|
|
86
91
|
getAgentRegistry: () => import_registry.getAgentRegistry,
|
|
87
92
|
getAllInstalledModels: () => import_models.getAllInstalledModels,
|
|
88
|
-
getAuthMethodDefinition: () =>
|
|
93
|
+
getAuthMethodDefinition: () => import_auth2.getAuthMethodDefinition,
|
|
89
94
|
getCustomModel: () => import_custom_models.getCustomModel,
|
|
90
95
|
getCustomModelsPath: () => import_custom_models.getCustomModelsPath,
|
|
91
96
|
getDefaultImageStoreDir: () => import_image_store.getDefaultImageStoreDir,
|
|
92
|
-
getDefaultModelAuthProfile: () =>
|
|
93
|
-
getDefaultModelAuthProfileIdForProvider: () =>
|
|
97
|
+
getDefaultModelAuthProfile: () => import_auth2.getDefaultModelAuthProfile,
|
|
98
|
+
getDefaultModelAuthProfileIdForProvider: () => import_auth2.getDefaultModelAuthProfileIdForProvider,
|
|
94
99
|
getDefaultProjectRegistryEntry: () => import_project_registry.getDefaultProjectRegistryEntry,
|
|
95
|
-
getDextoApiKeyFromAuth: () => import_dexto_auth.getDextoApiKeyFromAuth,
|
|
96
100
|
getDextoEnvPath: () => import_path.getDextoEnvPath,
|
|
97
101
|
getDextoGlobalPath: () => import_path.getDextoGlobalPath,
|
|
98
102
|
getDextoInstalledPluginsPath: () => import_plugins.getDextoInstalledPluginsPath,
|
|
@@ -106,8 +110,8 @@ __export(index_exports, {
|
|
|
106
110
|
getImageRegistryPath: () => import_image_store.getImageRegistryPath,
|
|
107
111
|
getInstalledModel: () => import_models.getInstalledModel,
|
|
108
112
|
getInstalledModelCount: () => import_models.getInstalledModelCount,
|
|
109
|
-
getModelAuthProfileId: () =>
|
|
110
|
-
getModelAuthProfilesPath: () =>
|
|
113
|
+
getModelAuthProfileId: () => import_auth2.getModelAuthProfileId,
|
|
114
|
+
getModelAuthProfilesPath: () => import_auth2.getModelAuthProfilesPath,
|
|
111
115
|
getModelDirectory: () => import_models.getModelDirectory,
|
|
112
116
|
getModelFilePath: () => import_models.getModelFilePath,
|
|
113
117
|
getModelFileSize: () => import_models.getModelFileSize,
|
|
@@ -120,9 +124,10 @@ __export(index_exports, {
|
|
|
120
124
|
getPrimaryApiKeyEnvVar: () => import_api_key_resolver.getPrimaryApiKeyEnvVar,
|
|
121
125
|
getProjectRegistryCandidatePaths: () => import_project_registry.getProjectRegistryCandidatePaths,
|
|
122
126
|
getProjectRegistryPath: () => import_project_registry.getProjectRegistryPath,
|
|
123
|
-
getProviderAuthDefinition: () =>
|
|
124
|
-
getProviderAuthDefinitions: () =>
|
|
127
|
+
getProviderAuthDefinition: () => import_auth2.getProviderAuthDefinition,
|
|
128
|
+
getProviderAuthDefinitions: () => import_auth2.getProviderAuthDefinitions,
|
|
125
129
|
getProviderKeyStatus: () => import_api_key_store.getProviderKeyStatus,
|
|
130
|
+
getStandaloneSkillPaths: () => import_plugins.getStandaloneSkillPaths,
|
|
126
131
|
getTotalInstalledSize: () => import_models.getTotalInstalledSize,
|
|
127
132
|
getUninstalledDefaults: () => import_plugins.getUninstalledDefaults,
|
|
128
133
|
globalPreferencesExist: () => import_loader.globalPreferencesExist,
|
|
@@ -135,7 +140,7 @@ __export(index_exports, {
|
|
|
135
140
|
isDextoAuthenticated: () => import_dexto_auth.isDextoAuthenticated,
|
|
136
141
|
isFileLikeImageSpecifier: () => import_image_store.isFileLikeImageSpecifier,
|
|
137
142
|
isModelInstalled: () => import_models.isModelInstalled,
|
|
138
|
-
isOAuthAuthMethod: () =>
|
|
143
|
+
isOAuthAuthMethod: () => import_auth2.isOAuthAuthMethod,
|
|
139
144
|
isPath: () => import_path.isPath,
|
|
140
145
|
isPluginInstalled: () => import_plugins.isPluginInstalled,
|
|
141
146
|
isProjectRegistryError: () => import_project_registry.isProjectRegistryError,
|
|
@@ -143,10 +148,10 @@ __export(index_exports, {
|
|
|
143
148
|
listInstalledAgents: () => import_installation.listInstalledAgents,
|
|
144
149
|
listInstalledPlugins: () => import_plugins.listInstalledPlugins,
|
|
145
150
|
listMarketplaces: () => import_plugins.listMarketplaces,
|
|
146
|
-
listModelAuthProfiles: () =>
|
|
151
|
+
listModelAuthProfiles: () => import_auth2.listModelAuthProfiles,
|
|
147
152
|
listModelDirectories: () => import_models.listModelDirectories,
|
|
148
153
|
listProviderKeyStatus: () => import_api_key_store.listProviderKeyStatus,
|
|
149
|
-
listSavedModelAuthProfiles: () =>
|
|
154
|
+
listSavedModelAuthProfiles: () => import_auth2.listSavedModelAuthProfiles,
|
|
150
155
|
loadAgentConfig: () => import_config.loadAgentConfig,
|
|
151
156
|
loadAgentPreferences: () => import_loader2.loadAgentPreferences,
|
|
152
157
|
loadBundledRegistryAgents: () => import_registry.loadBundledRegistryAgents,
|
|
@@ -155,20 +160,20 @@ __export(index_exports, {
|
|
|
155
160
|
loadDextoInstalledPlugins: () => import_plugins.loadDextoInstalledPlugins,
|
|
156
161
|
loadGlobalPreferences: () => import_loader.loadGlobalPreferences,
|
|
157
162
|
loadImageRegistry: () => import_image_store.loadImageRegistry,
|
|
158
|
-
loadModelAuthProfiles: () =>
|
|
159
|
-
loadModelAuthProfilesSync: () =>
|
|
163
|
+
loadModelAuthProfiles: () => import_auth2.loadModelAuthProfiles,
|
|
164
|
+
loadModelAuthProfilesSync: () => import_auth2.loadModelAuthProfilesSync,
|
|
160
165
|
loadModelPickerState: () => import_models.loadModelPickerState,
|
|
161
166
|
loadModelState: () => import_models.loadModelState,
|
|
162
167
|
loadProjectRegistry: () => import_project_registry.loadProjectRegistry,
|
|
163
168
|
loadProjectRegistrySync: () => import_project_registry.loadProjectRegistrySync,
|
|
164
|
-
markModelAuthProviderConnected: () =>
|
|
169
|
+
markModelAuthProviderConnected: () => import_auth2.markModelAuthProviderConnected,
|
|
165
170
|
modelFileExists: () => import_models.modelFileExists,
|
|
166
171
|
parseImageSpecifier: () => import_image_store.parseImageSpecifier,
|
|
167
172
|
pruneModelPickerState: () => import_models.pruneModelPickerState,
|
|
168
173
|
readProjectRegistry: () => import_project_registry.readProjectRegistry,
|
|
169
174
|
readProjectRegistrySync: () => import_project_registry.readProjectRegistrySync,
|
|
170
175
|
recordRecentModel: () => import_models.recordRecentModel,
|
|
171
|
-
refreshChatGPTOAuthCredential: () =>
|
|
176
|
+
refreshChatGPTOAuthCredential: () => import_auth2.refreshChatGPTOAuthCredential,
|
|
172
177
|
registerConfiguredSkillPrompts: () => import_plugins.registerConfiguredSkillPrompts,
|
|
173
178
|
registerManualModel: () => import_models.registerManualModel,
|
|
174
179
|
reloadAgentConfigFromFile: () => import_config.reloadAgentConfigFromFile,
|
|
@@ -190,8 +195,8 @@ __export(index_exports, {
|
|
|
190
195
|
resolveProjectRegistryEntryConfigPath: () => import_project_registry.resolveProjectRegistryEntryConfigPath,
|
|
191
196
|
resolveProjectRegistryEntryConfigPathSync: () => import_project_registry.resolveProjectRegistryEntryConfigPathSync,
|
|
192
197
|
saveAgentPreferences: () => import_loader2.saveAgentPreferences,
|
|
193
|
-
saveApiKeyModelAuthProfile: () =>
|
|
194
|
-
saveChatGPTLoginModelAuthProfile: () =>
|
|
198
|
+
saveApiKeyModelAuthProfile: () => import_auth2.saveApiKeyModelAuthProfile,
|
|
199
|
+
saveChatGPTLoginModelAuthProfile: () => import_auth2.saveChatGPTLoginModelAuthProfile,
|
|
195
200
|
saveCustomModel: () => import_custom_models.saveCustomModel,
|
|
196
201
|
saveDextoInstalledPlugins: () => import_plugins.saveDextoInstalledPlugins,
|
|
197
202
|
saveGlobalPreferences: () => import_loader.saveGlobalPreferences,
|
|
@@ -201,10 +206,10 @@ __export(index_exports, {
|
|
|
201
206
|
saveProviderApiKey: () => import_api_key_store.saveProviderApiKey,
|
|
202
207
|
setActiveImageVersion: () => import_image_store.setActiveImageVersion,
|
|
203
208
|
setActiveModel: () => import_models.setActiveModel,
|
|
204
|
-
setDefaultModelAuthProfile: () =>
|
|
209
|
+
setDefaultModelAuthProfile: () => import_auth2.setDefaultModelAuthProfile,
|
|
205
210
|
setFavoriteModels: () => import_models.setFavoriteModels,
|
|
206
|
-
startChatGPTBrowserLogin: () =>
|
|
207
|
-
startModelAuthBrowserLogin: () =>
|
|
211
|
+
startChatGPTBrowserLogin: () => import_auth2.startChatGPTBrowserLogin,
|
|
212
|
+
startModelAuthBrowserLogin: () => import_auth2.startModelAuthBrowserLogin,
|
|
208
213
|
syncStateWithFilesystem: () => import_models.syncStateWithFilesystem,
|
|
209
214
|
toModelPickerKey: () => import_models.toModelPickerKey,
|
|
210
215
|
toggleFavoriteModel: () => import_models.toggleFavoriteModel,
|
|
@@ -219,7 +224,7 @@ __export(index_exports, {
|
|
|
219
224
|
updateMarketplace: () => import_plugins.updateMarketplace,
|
|
220
225
|
updateMcpServerField: () => import_config.updateMcpServerField,
|
|
221
226
|
updateModelLastUsed: () => import_models.updateModelLastUsed,
|
|
222
|
-
upsertModelAuthProfile: () =>
|
|
227
|
+
upsertModelAuthProfile: () => import_auth2.upsertModelAuthProfile,
|
|
223
228
|
validatePluginDirectory: () => import_plugins.validatePluginDirectory,
|
|
224
229
|
walkUpDirectories: () => import_fs_walk.walkUpDirectories,
|
|
225
230
|
writeConfigFile: () => import_writer.writeConfigFile,
|
|
@@ -252,6 +257,7 @@ var import_config = require("./config/index.js");
|
|
|
252
257
|
var import_api_key_store = require("./utils/api-key-store.js");
|
|
253
258
|
var import_api_key_resolver = require("./utils/api-key-resolver.js");
|
|
254
259
|
var import_auth = require("./auth/index.js");
|
|
260
|
+
var import_auth2 = require("./auth/index.js");
|
|
255
261
|
var import_custom_models = require("./models/custom-models.js");
|
|
256
262
|
var import_models = require("./models/index.js");
|
|
257
263
|
__reExport(index_exports, require("./runtime/index.js"), module.exports);
|
|
@@ -309,6 +315,11 @@ var import_plugins = require("./plugins/index.js");
|
|
|
309
315
|
deriveAgentId,
|
|
310
316
|
deriveDisplayName,
|
|
311
317
|
determineApiKeyStorage,
|
|
318
|
+
dextoAccounts,
|
|
319
|
+
dextoCloud,
|
|
320
|
+
dextoGateway,
|
|
321
|
+
dextoMcp,
|
|
322
|
+
dextoSignIn,
|
|
312
323
|
discoverClaudeCodePlugins,
|
|
313
324
|
discoverStandaloneSkills,
|
|
314
325
|
enrichAgentConfig,
|
|
@@ -333,7 +344,6 @@ var import_plugins = require("./plugins/index.js");
|
|
|
333
344
|
getDefaultModelAuthProfile,
|
|
334
345
|
getDefaultModelAuthProfileIdForProvider,
|
|
335
346
|
getDefaultProjectRegistryEntry,
|
|
336
|
-
getDextoApiKeyFromAuth,
|
|
337
347
|
getDextoEnvPath,
|
|
338
348
|
getDextoGlobalPath,
|
|
339
349
|
getDextoInstalledPluginsPath,
|
|
@@ -364,6 +374,7 @@ var import_plugins = require("./plugins/index.js");
|
|
|
364
374
|
getProviderAuthDefinition,
|
|
365
375
|
getProviderAuthDefinitions,
|
|
366
376
|
getProviderKeyStatus,
|
|
377
|
+
getStandaloneSkillPaths,
|
|
367
378
|
getTotalInstalledSize,
|
|
368
379
|
getUninstalledDefaults,
|
|
369
380
|
globalPreferencesExist,
|
package/dist/index.d.ts
CHANGED
|
@@ -20,15 +20,16 @@ export { getExecutionContext, findDextoSourceRoot, findDextoProjectRoot, type Ex
|
|
|
20
20
|
export { walkUpDirectories } from './utils/fs-walk.js';
|
|
21
21
|
export { updateEnvFile } from './utils/env-file.js';
|
|
22
22
|
export { isDextoAuthEnabled } from './utils/feature-flags.js';
|
|
23
|
-
export { isDextoAuthenticated,
|
|
23
|
+
export { isDextoAuthenticated, canUseDextoProvider } from './utils/dexto-auth.js';
|
|
24
24
|
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';
|
|
25
25
|
export { saveProviderApiKey, getProviderKeyStatus, listProviderKeyStatus, determineApiKeyStorage, SHARED_API_KEY_PROVIDERS, type ApiKeyStorageStrategy, } from './utils/api-key-store.js';
|
|
26
26
|
export { resolveApiKeyForProvider, getPrimaryApiKeyEnvVar, PROVIDER_API_KEY_MAP, } from './utils/api-key-resolver.js';
|
|
27
|
+
export { dextoAccounts, dextoSignIn, dextoCloud, dextoGateway, dextoMcp } from './auth/index.js';
|
|
27
28
|
export { AUTH_METHOD_KINDS, OPENAI_API_KEY_AUTH_METHOD, OPENAI_CHATGPT_LOGIN_AUTH_METHOD, PROVIDER_AUTH_DEFINITIONS, getAuthMethodDefinition, getProviderAuthDefinition, getProviderAuthDefinitions, isOAuthAuthMethod, createChatGPTRuntimeAuth, createModelAuthResolver, deleteModelAuthProfile, getDefaultModelAuthProfile, getDefaultModelAuthProfileIdForProvider, getModelAuthProfileId, getModelAuthProfilesPath, listModelAuthProfiles, listSavedModelAuthProfiles, loadModelAuthProfiles, loadModelAuthProfilesSync, markModelAuthProviderConnected, refreshChatGPTOAuthCredential, saveApiKeyModelAuthProfile, saveChatGPTLoginModelAuthProfile, setDefaultModelAuthProfile, startModelAuthBrowserLogin, startChatGPTBrowserLogin, upsertModelAuthProfile, type ApiKeyAuthMethodDefinition, type AuthMethodDefinition, type AuthMethodKind, type ChatGPTOAuthCredential, type ChatGPTRuntimeAuth, type ApiKeyEnvModelAuthCredential, type ModelAuthCredential, type OAuthAuthMethodDefinition, type OAuthModelAuthCredential, type ModelAuthProfile, type ModelAuthProfilesFile, type PendingChatGPTLogin, type PendingModelAuthBrowserLogin, type ProviderAuthDefinition, } from './auth/index.js';
|
|
28
29
|
export { loadCustomModels, saveCustomModel, deleteCustomModel, getCustomModel, getCustomModelsPath, CustomModelSchema, CUSTOM_MODEL_PROVIDERS, type CustomModel, type CustomModelProvider, } from './models/custom-models.js';
|
|
29
30
|
export { getModelsDirectory, getModelFilePath, getModelDirectory, getModelStatePath, getModelPickerStatePath, 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, MODEL_PICKER_STATE_VERSION, MODEL_PICKER_RECENTS_LIMIT, MODEL_PICKER_FAVORITES_LIMIT, toModelPickerKey, pruneModelPickerState, loadModelPickerState, saveModelPickerState, recordRecentModel, toggleFavoriteModel, setFavoriteModels, type ModelPickerModel, type ModelPickerEntry, type ModelPickerState, type SetFavoriteModelsInput, } from './models/index.js';
|
|
30
31
|
export * from './runtime/index.js';
|
|
31
32
|
export * from './tool-factories/agent-spawner/index.js';
|
|
32
33
|
export * from './tool-factories/creator-tools/index.js';
|
|
33
|
-
export { discoverClaudeCodePlugins, discoverStandaloneSkills, getPluginSearchPaths, loadClaudeCodePlugin, validatePluginDirectory, tryLoadManifest, listInstalledPlugins, getDextoInstalledPluginsPath, installPluginFromPath, loadDextoInstalledPlugins, saveDextoInstalledPlugins, isPluginInstalled, uninstallPlugin, PluginManifestSchema, PluginMCPConfigSchema, PluginErrorCode, PluginError, DEFAULT_MARKETPLACES, addMarketplace, removeMarketplace, updateMarketplace, listMarketplaces, listAllMarketplacePlugins, installPluginFromMarketplace, getUninstalledDefaults, createLocalSkills, registerConfiguredSkillPrompts, LocalSkills, 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 CreateLocalSkillsOptions, type LocalSkillRoot, type MarketplaceEntry, type MarketplacePlugin, type MarketplaceAddResult, type MarketplaceUpdateResult, type MarketplaceInstallResult, } from './plugins/index.js';
|
|
34
|
+
export { discoverClaudeCodePlugins, discoverStandaloneSkills, getStandaloneSkillPaths, getPluginSearchPaths, loadClaudeCodePlugin, validatePluginDirectory, tryLoadManifest, listInstalledPlugins, getDextoInstalledPluginsPath, installPluginFromPath, loadDextoInstalledPlugins, saveDextoInstalledPlugins, isPluginInstalled, uninstallPlugin, PluginManifestSchema, PluginMCPConfigSchema, PluginErrorCode, PluginError, DEFAULT_MARKETPLACES, addMarketplace, removeMarketplace, updateMarketplace, listMarketplaces, listAllMarketplacePlugins, installPluginFromMarketplace, getUninstalledDefaults, createLocalSkills, registerConfiguredSkillPrompts, LocalSkills, 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 CreateLocalSkillsOptions, type LocalSkillRoot, type MarketplaceEntry, type MarketplacePlugin, type MarketplaceAddResult, type MarketplaceUpdateResult, type MarketplaceInstallResult, } from './plugins/index.js';
|
|
34
35
|
//# 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,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACpF,OAAO,EACH,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,GAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG/E,OAAO,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAG/E,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,KAAK,YAAY,GACpB,MAAM,aAAa,C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,EAEpB,oBAAoB,EAEpB,uBAAuB,EACvB,eAAe,EAEf,oBAAoB,EACpB,4BAA4B,EAE5B,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EAEjB,eAAe,EAEf,oBAAoB,EACpB,qBAAqB,EAErB,eAAe,EACf,WAAW,EAEX,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,yBAAyB,EACzB,4BAA4B,EAC5B,sBAAsB,EACtB,iBAAiB,EACjB,8BAA8B,EAC9B,WAAW,EACX,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAEhB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,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,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EAEnB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAChC,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -87,11 +87,7 @@ import {
|
|
|
87
87
|
import { walkUpDirectories } from "./utils/fs-walk.js";
|
|
88
88
|
import { updateEnvFile } from "./utils/env-file.js";
|
|
89
89
|
import { isDextoAuthEnabled } from "./utils/feature-flags.js";
|
|
90
|
-
import {
|
|
91
|
-
isDextoAuthenticated,
|
|
92
|
-
getDextoApiKeyFromAuth,
|
|
93
|
-
canUseDextoProvider
|
|
94
|
-
} from "./utils/dexto-auth.js";
|
|
90
|
+
import { isDextoAuthenticated, canUseDextoProvider } from "./utils/dexto-auth.js";
|
|
95
91
|
import {
|
|
96
92
|
updateAgentConfigFile,
|
|
97
93
|
reloadAgentConfigFromFile,
|
|
@@ -118,6 +114,7 @@ import {
|
|
|
118
114
|
getPrimaryApiKeyEnvVar,
|
|
119
115
|
PROVIDER_API_KEY_MAP
|
|
120
116
|
} from "./utils/api-key-resolver.js";
|
|
117
|
+
import { dextoAccounts, dextoSignIn, dextoCloud, dextoGateway, dextoMcp } from "./auth/index.js";
|
|
121
118
|
import {
|
|
122
119
|
AUTH_METHOD_KINDS,
|
|
123
120
|
OPENAI_API_KEY_AUTH_METHOD,
|
|
@@ -206,6 +203,7 @@ export * from "./tool-factories/creator-tools/index.js";
|
|
|
206
203
|
import {
|
|
207
204
|
discoverClaudeCodePlugins,
|
|
208
205
|
discoverStandaloneSkills,
|
|
206
|
+
getStandaloneSkillPaths,
|
|
209
207
|
getPluginSearchPaths,
|
|
210
208
|
loadClaudeCodePlugin,
|
|
211
209
|
validatePluginDirectory,
|
|
@@ -286,6 +284,11 @@ export {
|
|
|
286
284
|
deriveAgentId,
|
|
287
285
|
deriveDisplayName,
|
|
288
286
|
determineApiKeyStorage,
|
|
287
|
+
dextoAccounts,
|
|
288
|
+
dextoCloud,
|
|
289
|
+
dextoGateway,
|
|
290
|
+
dextoMcp,
|
|
291
|
+
dextoSignIn,
|
|
289
292
|
discoverClaudeCodePlugins,
|
|
290
293
|
discoverStandaloneSkills,
|
|
291
294
|
enrichAgentConfig,
|
|
@@ -310,7 +313,6 @@ export {
|
|
|
310
313
|
getDefaultModelAuthProfile,
|
|
311
314
|
getDefaultModelAuthProfileIdForProvider,
|
|
312
315
|
getDefaultProjectRegistryEntry,
|
|
313
|
-
getDextoApiKeyFromAuth,
|
|
314
316
|
getDextoEnvPath,
|
|
315
317
|
getDextoGlobalPath,
|
|
316
318
|
getDextoInstalledPluginsPath,
|
|
@@ -341,6 +343,7 @@ export {
|
|
|
341
343
|
getProviderAuthDefinition,
|
|
342
344
|
getProviderAuthDefinitions,
|
|
343
345
|
getProviderKeyStatus,
|
|
346
|
+
getStandaloneSkillPaths,
|
|
344
347
|
getTotalInstalledSize,
|
|
345
348
|
getUninstalledDefaults,
|
|
346
349
|
globalPreferencesExist,
|
package/dist/installation.cjs
CHANGED
|
@@ -64,7 +64,7 @@ async function saveUserRegistry(registryPath, registry) {
|
|
|
64
64
|
async function installBundledAgent(agentId, options) {
|
|
65
65
|
const agentsDir = getAgentsDir(options);
|
|
66
66
|
const bundledRegistryPath = (0, import_path2.resolveBundledScript)("agents/agent-registry.json");
|
|
67
|
-
import_core.logger.
|
|
67
|
+
import_core.logger.debug(`Installing agent: ${agentId}`);
|
|
68
68
|
let bundledRegistry;
|
|
69
69
|
try {
|
|
70
70
|
const content = await import_fs.promises.readFile(bundledRegistryPath, "utf-8");
|
|
@@ -100,7 +100,7 @@ async function installBundledAgent(agentId, options) {
|
|
|
100
100
|
await import_fs.promises.copyFile(sourcePath, targetFile);
|
|
101
101
|
}
|
|
102
102
|
await import_fs.promises.rename(tempDir, targetDir);
|
|
103
|
-
import_core.logger.
|
|
103
|
+
import_core.logger.debug(`\u2713 Installed agent '${agentId}' to ${targetDir}`);
|
|
104
104
|
const userRegistryPath = getUserRegistryPath(agentsDir);
|
|
105
105
|
const userRegistry = await loadUserRegistry(userRegistryPath);
|
|
106
106
|
if (!userRegistry.agents.some((a) => a.id === agentId)) {
|
package/dist/installation.js
CHANGED
|
@@ -28,7 +28,7 @@ async function saveUserRegistry(registryPath, registry) {
|
|
|
28
28
|
async function installBundledAgent(agentId, options) {
|
|
29
29
|
const agentsDir = getAgentsDir(options);
|
|
30
30
|
const bundledRegistryPath = resolveBundledScript("agents/agent-registry.json");
|
|
31
|
-
logger.
|
|
31
|
+
logger.debug(`Installing agent: ${agentId}`);
|
|
32
32
|
let bundledRegistry;
|
|
33
33
|
try {
|
|
34
34
|
const content = await fs.readFile(bundledRegistryPath, "utf-8");
|
|
@@ -64,7 +64,7 @@ async function installBundledAgent(agentId, options) {
|
|
|
64
64
|
await fs.copyFile(sourcePath, targetFile);
|
|
65
65
|
}
|
|
66
66
|
await fs.rename(tempDir, targetDir);
|
|
67
|
-
logger.
|
|
67
|
+
logger.debug(`\u2713 Installed agent '${agentId}' to ${targetDir}`);
|
|
68
68
|
const userRegistryPath = getUserRegistryPath(agentsDir);
|
|
69
69
|
const userRegistry = await loadUserRegistry(userRegistryPath);
|
|
70
70
|
if (!userRegistry.agents.some((a) => a.id === agentId)) {
|
|
@@ -43,7 +43,8 @@ function getStandaloneSkillPaths(projectPath) {
|
|
|
43
43
|
project: path.join(cwd, ".agents", "skills"),
|
|
44
44
|
user: path.join(homeDir, ".agents", "skills"),
|
|
45
45
|
legacyProject: [path.join(cwd, "skills"), path.join(cwd, ".dexto", "skills")],
|
|
46
|
-
legacyUser: [path.join(homeDir, ".dexto", "skills")]
|
|
46
|
+
legacyUser: [path.join(homeDir, ".dexto", "skills")],
|
|
47
|
+
cloud: path.join(homeDir, ".dexto", "cloud-skills")
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
50
|
function discoverStandaloneSkills(projectPath) {
|
|
@@ -87,6 +88,7 @@ function discoverStandaloneSkills(projectPath) {
|
|
|
87
88
|
for (const legacyRoot of skillPaths.legacyUser) {
|
|
88
89
|
scanSkillsDir(legacyRoot, "user");
|
|
89
90
|
}
|
|
91
|
+
scanSkillsDir(skillPaths.cloud, "cloud");
|
|
90
92
|
return skills;
|
|
91
93
|
}
|
|
92
94
|
function getSkillSearchPaths(projectPath) {
|
|
@@ -95,7 +97,8 @@ function getSkillSearchPaths(projectPath) {
|
|
|
95
97
|
skillPaths.project,
|
|
96
98
|
...skillPaths.legacyProject,
|
|
97
99
|
skillPaths.user,
|
|
98
|
-
...skillPaths.legacyUser
|
|
100
|
+
...skillPaths.legacyUser,
|
|
101
|
+
skillPaths.cloud
|
|
99
102
|
];
|
|
100
103
|
}
|
|
101
104
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* skills/ (legacy project root, still discovered for compatibility)
|
|
10
10
|
* .dexto/skills/ (legacy project/user root, still discovered for compatibility)
|
|
11
11
|
* ~/.agents/skills/
|
|
12
|
+
* ~/.dexto/cloud-skills/ (the signed-in person's Cloud Skills, synced by the CLI)
|
|
12
13
|
* └── skill-name/
|
|
13
14
|
* ├── SKILL.md (required - skill instructions)
|
|
14
15
|
* ├── handlers/ (optional - workflow helper files)
|
|
@@ -28,8 +29,8 @@ export interface DiscoveredSkill {
|
|
|
28
29
|
path: string;
|
|
29
30
|
/** Absolute path to the SKILL.md file */
|
|
30
31
|
skillFile: string;
|
|
31
|
-
/** Source location */
|
|
32
|
-
source: 'user' | 'project';
|
|
32
|
+
/** Source location: the project, the person's own folders, or their synced Cloud library */
|
|
33
|
+
source: 'user' | 'project' | 'cloud';
|
|
33
34
|
/**
|
|
34
35
|
* Reserved for future discovery metadata.
|
|
35
36
|
*/
|
|
@@ -40,6 +41,8 @@ export interface StandaloneSkillPaths {
|
|
|
40
41
|
user: string;
|
|
41
42
|
legacyProject: readonly string[];
|
|
42
43
|
legacyUser: readonly string[];
|
|
44
|
+
/** The person's Cloud Skills, synced by `dexto skills sync`; any local Skill of the same name wins. */
|
|
45
|
+
cloud: string;
|
|
43
46
|
}
|
|
44
47
|
/**
|
|
45
48
|
* Resolves the canonical standalone Skill roots used by discovery and creator tools.
|
|
@@ -51,6 +54,7 @@ export declare function getStandaloneSkillPaths(projectPath?: string): Standalon
|
|
|
51
54
|
* Search Locations:
|
|
52
55
|
* 1. <projectRoot>/.agents/skills/* (project)
|
|
53
56
|
* 2. ~/.agents/skills/* (user)
|
|
57
|
+
* 3. ~/.dexto/cloud-skills/* (cloud)
|
|
54
58
|
*
|
|
55
59
|
* @param projectPath Optional project path (defaults to cwd)
|
|
56
60
|
* @returns Array of discovered skills
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover-skills.d.ts","sourceRoot":"","sources":["../../src/plugins/discover-skills.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"discover-skills.d.ts","sourceRoot":"","sources":["../../src/plugins/discover-skills.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAMH;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,4FAA4F;IAC5F,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CACnC;AAED,MAAM,WAAW,oBAAoB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,uGAAuG;IACvG,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAWlF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,eAAe,EAAE,CAiEhF;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CASlE"}
|
|
@@ -8,7 +8,8 @@ function getStandaloneSkillPaths(projectPath) {
|
|
|
8
8
|
project: path.join(cwd, ".agents", "skills"),
|
|
9
9
|
user: path.join(homeDir, ".agents", "skills"),
|
|
10
10
|
legacyProject: [path.join(cwd, "skills"), path.join(cwd, ".dexto", "skills")],
|
|
11
|
-
legacyUser: [path.join(homeDir, ".dexto", "skills")]
|
|
11
|
+
legacyUser: [path.join(homeDir, ".dexto", "skills")],
|
|
12
|
+
cloud: path.join(homeDir, ".dexto", "cloud-skills")
|
|
12
13
|
};
|
|
13
14
|
}
|
|
14
15
|
function discoverStandaloneSkills(projectPath) {
|
|
@@ -52,6 +53,7 @@ function discoverStandaloneSkills(projectPath) {
|
|
|
52
53
|
for (const legacyRoot of skillPaths.legacyUser) {
|
|
53
54
|
scanSkillsDir(legacyRoot, "user");
|
|
54
55
|
}
|
|
56
|
+
scanSkillsDir(skillPaths.cloud, "cloud");
|
|
55
57
|
return skills;
|
|
56
58
|
}
|
|
57
59
|
function getSkillSearchPaths(projectPath) {
|
|
@@ -60,7 +62,8 @@ function getSkillSearchPaths(projectPath) {
|
|
|
60
62
|
skillPaths.project,
|
|
61
63
|
...skillPaths.legacyProject,
|
|
62
64
|
skillPaths.user,
|
|
63
|
-
...skillPaths.legacyUser
|
|
65
|
+
...skillPaths.legacyUser,
|
|
66
|
+
skillPaths.cloud
|
|
64
67
|
];
|
|
65
68
|
}
|
|
66
69
|
export {
|
package/dist/plugins/errors.cjs
CHANGED
|
@@ -135,7 +135,7 @@ class PluginError {
|
|
|
135
135
|
import_core.ErrorType.USER,
|
|
136
136
|
`Plugin '${pluginName}' not found`,
|
|
137
137
|
{ pluginName },
|
|
138
|
-
"Use `
|
|
138
|
+
"Use `/plugin` in the interactive CLI to see available plugins"
|
|
139
139
|
);
|
|
140
140
|
}
|
|
141
141
|
// Uninstallation errors
|
|
@@ -146,7 +146,7 @@ class PluginError {
|
|
|
146
146
|
import_core.ErrorType.USER,
|
|
147
147
|
`Plugin '${pluginName}' is not installed`,
|
|
148
148
|
{ pluginName },
|
|
149
|
-
hint || "Use `
|
|
149
|
+
hint || "Use `/plugin` in the interactive CLI to see installed plugins"
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
static uninstallDeleteFailed(pluginPath, cause) {
|
package/dist/plugins/errors.js
CHANGED
|
@@ -112,7 +112,7 @@ class PluginError {
|
|
|
112
112
|
ErrorType.USER,
|
|
113
113
|
`Plugin '${pluginName}' not found`,
|
|
114
114
|
{ pluginName },
|
|
115
|
-
"Use `
|
|
115
|
+
"Use `/plugin` in the interactive CLI to see available plugins"
|
|
116
116
|
);
|
|
117
117
|
}
|
|
118
118
|
// Uninstallation errors
|
|
@@ -123,7 +123,7 @@ class PluginError {
|
|
|
123
123
|
ErrorType.USER,
|
|
124
124
|
`Plugin '${pluginName}' is not installed`,
|
|
125
125
|
{ pluginName },
|
|
126
|
-
hint || "Use `
|
|
126
|
+
hint || "Use `/plugin` in the interactive CLI to see installed plugins"
|
|
127
127
|
);
|
|
128
128
|
}
|
|
129
129
|
static uninstallDeleteFailed(pluginPath, cause) {
|
|
@@ -104,7 +104,7 @@ class MarketplaceError {
|
|
|
104
104
|
import_core.ErrorType.USER,
|
|
105
105
|
`Marketplace '${name}' not found`,
|
|
106
106
|
{ name },
|
|
107
|
-
"Use `
|
|
107
|
+
"Use `/plugin` in the interactive CLI to see registered marketplaces"
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
110
|
static removeDeleteFailed(name, path, cause) {
|
|
@@ -125,7 +125,7 @@ class MarketplaceError {
|
|
|
125
125
|
import_core.ErrorType.USER,
|
|
126
126
|
`Marketplace '${name}' not found`,
|
|
127
127
|
{ name },
|
|
128
|
-
"Use `
|
|
128
|
+
"Use `/plugin` in the interactive CLI to see registered marketplaces"
|
|
129
129
|
);
|
|
130
130
|
}
|
|
131
131
|
static updatePullFailed(name, cause) {
|
|
@@ -156,7 +156,7 @@ class MarketplaceError {
|
|
|
156
156
|
import_core.ErrorType.USER,
|
|
157
157
|
`Marketplace '${marketplace}' not found`,
|
|
158
158
|
{ marketplace },
|
|
159
|
-
"Use `
|
|
159
|
+
"Use `/plugin` in the interactive CLI to see registered marketplaces"
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
162
|
static installPluginNotFound(pluginName, marketplace) {
|
|
@@ -167,7 +167,7 @@ class MarketplaceError {
|
|
|
167
167
|
import_core.ErrorType.USER,
|
|
168
168
|
`Plugin '${pluginName}' not found${marketplaceInfo}`,
|
|
169
169
|
{ pluginName, marketplace },
|
|
170
|
-
"Use `
|
|
170
|
+
"Use `/plugin` in the interactive CLI to browse available plugins"
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
173
|
static installCopyFailed(pluginName, cause) {
|
|
@@ -81,7 +81,7 @@ class MarketplaceError {
|
|
|
81
81
|
ErrorType.USER,
|
|
82
82
|
`Marketplace '${name}' not found`,
|
|
83
83
|
{ name },
|
|
84
|
-
"Use `
|
|
84
|
+
"Use `/plugin` in the interactive CLI to see registered marketplaces"
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
87
|
static removeDeleteFailed(name, path, cause) {
|
|
@@ -102,7 +102,7 @@ class MarketplaceError {
|
|
|
102
102
|
ErrorType.USER,
|
|
103
103
|
`Marketplace '${name}' not found`,
|
|
104
104
|
{ name },
|
|
105
|
-
"Use `
|
|
105
|
+
"Use `/plugin` in the interactive CLI to see registered marketplaces"
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
108
|
static updatePullFailed(name, cause) {
|
|
@@ -133,7 +133,7 @@ class MarketplaceError {
|
|
|
133
133
|
ErrorType.USER,
|
|
134
134
|
`Marketplace '${marketplace}' not found`,
|
|
135
135
|
{ marketplace },
|
|
136
|
-
"Use `
|
|
136
|
+
"Use `/plugin` in the interactive CLI to see registered marketplaces"
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
139
|
static installPluginNotFound(pluginName, marketplace) {
|
|
@@ -144,7 +144,7 @@ class MarketplaceError {
|
|
|
144
144
|
ErrorType.USER,
|
|
145
145
|
`Plugin '${pluginName}' not found${marketplaceInfo}`,
|
|
146
146
|
{ pluginName, marketplace },
|
|
147
|
-
"Use `
|
|
147
|
+
"Use `/plugin` in the interactive CLI to browse available plugins"
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
150
|
static installCopyFailed(pluginName, cause) {
|
|
@@ -33,7 +33,7 @@ class PreferenceError {
|
|
|
33
33
|
import_core.ErrorType.USER,
|
|
34
34
|
`Preferences file not found: ${preferencesPath}`,
|
|
35
35
|
{ preferencesPath },
|
|
36
|
-
"Run `dexto
|
|
36
|
+
"Run `dexto login` or set a provider key"
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
39
|
static fileReadError(preferencesPath, cause) {
|
|
@@ -9,7 +9,7 @@ class PreferenceError {
|
|
|
9
9
|
ErrorType.USER,
|
|
10
10
|
`Preferences file not found: ${preferencesPath}`,
|
|
11
11
|
{ preferencesPath },
|
|
12
|
-
"Run `dexto
|
|
12
|
+
"Run `dexto login` or set a provider key"
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
15
|
static fileReadError(preferencesPath, cause) {
|
|
@@ -179,7 +179,7 @@ class LocalAgentRegistry {
|
|
|
179
179
|
* @param agentId ID of the agent to install
|
|
180
180
|
*/
|
|
181
181
|
async installAgent(agentId) {
|
|
182
|
-
import_core.logger.
|
|
182
|
+
import_core.logger.debug(`Installing agent: ${agentId}`);
|
|
183
183
|
const registry = this.getRegistry();
|
|
184
184
|
const agentData = registry.agents[agentId];
|
|
185
185
|
if (!agentData) {
|
|
@@ -215,7 +215,7 @@ class LocalAgentRegistry {
|
|
|
215
215
|
throw import_errors.RegistryError.installationValidationFailed(agentId, mainConfigPath);
|
|
216
216
|
}
|
|
217
217
|
await import_fs2.promises.rename(tempDir, targetDir);
|
|
218
|
-
import_core.logger.
|
|
218
|
+
import_core.logger.debug(`\u2713 Installed agent '${agentId}' to ${targetDir}`);
|
|
219
219
|
return this.resolveMainConfig(targetDir, agentId);
|
|
220
220
|
} catch (error) {
|
|
221
221
|
try {
|
|
@@ -354,7 +354,7 @@ class LocalAgentRegistry {
|
|
|
354
354
|
import_core.logger.debug(`Agent '${agentId}' not found in installed path: ${installedPath}`);
|
|
355
355
|
if (this.hasAgent(agentId)) {
|
|
356
356
|
if (autoInstall) {
|
|
357
|
-
import_core.logger.
|
|
357
|
+
import_core.logger.debug(`Installing agent '${agentId}' from registry...`);
|
|
358
358
|
return await this.installAgent(agentId);
|
|
359
359
|
} else {
|
|
360
360
|
const registry2 = this.getRegistry();
|
|
@@ -152,7 +152,7 @@ class LocalAgentRegistry {
|
|
|
152
152
|
* @param agentId ID of the agent to install
|
|
153
153
|
*/
|
|
154
154
|
async installAgent(agentId) {
|
|
155
|
-
logger.
|
|
155
|
+
logger.debug(`Installing agent: ${agentId}`);
|
|
156
156
|
const registry = this.getRegistry();
|
|
157
157
|
const agentData = registry.agents[agentId];
|
|
158
158
|
if (!agentData) {
|
|
@@ -188,7 +188,7 @@ class LocalAgentRegistry {
|
|
|
188
188
|
throw RegistryError.installationValidationFailed(agentId, mainConfigPath);
|
|
189
189
|
}
|
|
190
190
|
await fs.rename(tempDir, targetDir);
|
|
191
|
-
logger.
|
|
191
|
+
logger.debug(`\u2713 Installed agent '${agentId}' to ${targetDir}`);
|
|
192
192
|
return this.resolveMainConfig(targetDir, agentId);
|
|
193
193
|
} catch (error) {
|
|
194
194
|
try {
|
|
@@ -327,7 +327,7 @@ class LocalAgentRegistry {
|
|
|
327
327
|
logger.debug(`Agent '${agentId}' not found in installed path: ${installedPath}`);
|
|
328
328
|
if (this.hasAgent(agentId)) {
|
|
329
329
|
if (autoInstall) {
|
|
330
|
-
logger.
|
|
330
|
+
logger.debug(`Installing agent '${agentId}' from registry...`);
|
|
331
331
|
return await this.installAgent(agentId);
|
|
332
332
|
} else {
|
|
333
333
|
const registry2 = this.getRegistry();
|