@dexto/agent-management 1.15.0-beta.1 → 1.15.0-beta.3

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.
@@ -20,8 +20,10 @@ var dexto_sign_in_exports = {};
20
20
  __export(dexto_sign_in_exports, {
21
21
  DEXTO_CLI_CLIENT_ID: () => DEXTO_CLI_CLIENT_ID,
22
22
  OAuthHttpError: () => OAuthHttpError,
23
+ SignInEnded: () => SignInEnded,
23
24
  endSignIn: () => endSignIn,
24
25
  refreshSignIn: () => refreshSignIn,
26
+ signInPromptText: () => signInPromptText,
25
27
  signInWithBrowser: () => signInWithBrowser,
26
28
  signInWithDevice: () => signInWithDevice
27
29
  });
@@ -34,6 +36,24 @@ const BASE_CLOUD_SCOPES = ["cloud:read"];
34
36
  const DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
35
37
  const LOGIN_TIMEOUT_MS = 5 * 6e4;
36
38
  const END_SIGN_IN_TIMEOUT_MS = 1e4;
39
+ function signInPromptText(prompt) {
40
+ if (prompt.kind === "browser")
41
+ return `Sign in to Dexto in your browser. If it doesn't open, visit:
42
+ ${prompt.authorizeUrl}`;
43
+ return [
44
+ prompt.verificationUriComplete === null ? `To sign in, open this link on any device and enter ${prompt.userCode}:
45
+ ${prompt.verificationUri}` : `To sign in, open this link on any device and check it shows ${prompt.userCode}:
46
+ ${prompt.verificationUriComplete}`,
47
+ "Only approve this if you just ran dexto login."
48
+ ].join("\n");
49
+ }
50
+ class SignInEnded extends Error {
51
+ constructor(reason, message) {
52
+ super(message);
53
+ this.reason = reason;
54
+ this.name = "SignInEnded";
55
+ }
56
+ }
37
57
  const ProtectedResourceSchema = import_zod.z.object({
38
58
  authorization_servers: import_zod.z.array(import_zod.z.string().url()).min(1),
39
59
  resource: import_zod.z.string().url(),
@@ -81,7 +101,7 @@ async function discover(runtime, input) {
81
101
  }
82
102
  async function signInWithBrowser(runtime, input) {
83
103
  const { appUrl, resource, scopes, server } = await discover(runtime, input);
84
- const redirect = await runtime.listenForRedirect();
104
+ const redirect = await runtime.listenForRedirect(appUrl);
85
105
  try {
86
106
  const verifier = (0, import_node_crypto.randomBytes)(32).toString("base64url");
87
107
  const state = (0, import_node_crypto.randomBytes)(16).toString("base64url");
@@ -98,19 +118,14 @@ async function signInWithBrowser(runtime, input) {
98
118
  ...input.organization === null ? {} : { organization: input.organization }
99
119
  }))
100
120
  authorizeUrl.searchParams.set(name, value);
101
- runtime.note(
102
- `Sign in to Dexto in your browser. If it doesn't open, visit:
103
- ${authorizeUrl}`
104
- );
121
+ runtime.prompt({ kind: "browser", authorizeUrl: authorizeUrl.toString() });
105
122
  if (input.openBrowser) await runtime.openBrowser(authorizeUrl.toString());
106
123
  const params = await withTimeout(redirect.result, LOGIN_TIMEOUT_MS, runtime.signal);
107
124
  if (params.get("state") !== state)
108
125
  throw new Error("The sign-in reply didn't match this login.");
109
126
  const error = params.get("error");
110
127
  if (error !== null)
111
- throw new Error(
112
- error === "access_denied" ? "Sign-in was declined." : `Sign-in failed: ${params.get("error_description") ?? error}.`
113
- );
128
+ throw error === "access_denied" ? new SignInEnded("declined", "Sign-in was declined.") : new Error(`Sign-in failed: ${params.get("error_description") ?? error}.`);
114
129
  const code = params.get("code");
115
130
  if (code === null) throw new Error("The sign-in reply had no code.");
116
131
  const tokens = TokenResponseSchema.parse(
@@ -143,14 +158,13 @@ async function signInWithDevice(runtime, input) {
143
158
  ...input.organization === null ? {} : { organization: input.organization }
144
159
  })
145
160
  );
146
- runtime.note(
147
- [
148
- device.verification_uri_complete === void 0 ? `To sign in, open this link on any device and enter ${device.user_code}:
149
- ${device.verification_uri}` : `To sign in, open this link on any device and check it shows ${device.user_code}:
150
- ${device.verification_uri_complete}`,
151
- "Only approve this if you just ran dexto login."
152
- ].join("\n")
153
- );
161
+ runtime.prompt({
162
+ kind: "device",
163
+ userCode: device.user_code,
164
+ verificationUri: device.verification_uri,
165
+ verificationUriComplete: device.verification_uri_complete ?? null,
166
+ expiresInSeconds: device.expires_in
167
+ });
154
168
  const deadline = Date.now() + device.expires_in * 1e3;
155
169
  let intervalSeconds = device.interval ?? 5;
156
170
  while (Date.now() < deadline) {
@@ -178,12 +192,13 @@ ${device.verification_uri_complete}`,
178
192
  intervalSeconds += 5;
179
193
  continue;
180
194
  }
181
- if (error.code === "access_denied") throw new Error("Sign-in was declined.");
195
+ if (error.code === "access_denied")
196
+ throw new SignInEnded("declined", "Sign-in was declined.");
182
197
  if (error.code !== "expired_token") throw error;
183
198
  break;
184
199
  }
185
200
  }
186
- throw new Error("The sign-in code expired. Run dexto login --device again.");
201
+ throw new SignInEnded("expired", "The sign-in code expired. Run dexto login --device again.");
187
202
  }
188
203
  function toLogin(tokens, client) {
189
204
  return {
@@ -296,10 +311,14 @@ function parseOrNull(text) {
296
311
  async function withTimeout(promise, ms, signal) {
297
312
  let timer;
298
313
  const stop = new Promise((_, reject) => {
299
- timer = setTimeout(() => reject(new Error("Sign-in timed out.")), ms);
300
- signal.addEventListener("abort", () => reject(new Error("Sign-in was cancelled.")), {
301
- once: true
302
- });
314
+ timer = setTimeout(() => reject(new SignInEnded("timed_out", "Sign-in timed out.")), ms);
315
+ signal.addEventListener(
316
+ "abort",
317
+ () => reject(new SignInEnded("cancelled", "Sign-in was cancelled.")),
318
+ {
319
+ once: true
320
+ }
321
+ );
303
322
  });
304
323
  try {
305
324
  return await Promise.race([promise, stop]);
@@ -317,8 +336,10 @@ function expiresAt(expiresInSeconds) {
317
336
  0 && (module.exports = {
318
337
  DEXTO_CLI_CLIENT_ID,
319
338
  OAuthHttpError,
339
+ SignInEnded,
320
340
  endSignIn,
321
341
  refreshSignIn,
342
+ signInPromptText,
322
343
  signInWithBrowser,
323
344
  signInWithDevice
324
345
  });
@@ -14,11 +14,34 @@ export interface OAuthServerRuntime {
14
14
  readonly fetch: typeof globalThis.fetch;
15
15
  readonly signal: AbortSignal;
16
16
  }
17
+ /**
18
+ * What the person does to finish signing in. The CLI words and styles it; `signInPromptText` is
19
+ * the plain wording.
20
+ */
21
+ export type SignInPrompt = {
22
+ readonly kind: 'browser';
23
+ readonly authorizeUrl: string;
24
+ } | {
25
+ readonly kind: 'device';
26
+ readonly userCode: string;
27
+ readonly verificationUri: string;
28
+ /** The link with the code already in it, when the server gives one. */
29
+ readonly verificationUriComplete: string | null;
30
+ readonly expiresInSeconds: number;
31
+ };
32
+ export declare function signInPromptText(prompt: SignInPrompt): string;
33
+ /** Why a sign-in ended without signing in, so the CLI can say what to do next. */
34
+ export type SignInEndReason = 'declined' | 'timed_out' | 'cancelled' | 'expired';
35
+ export declare class SignInEnded extends Error {
36
+ readonly reason: SignInEndReason;
37
+ constructor(reason: SignInEndReason, message: string);
38
+ }
17
39
  /** What signing in does outside this module, injected so it can be tested. */
18
40
  export interface SignInRuntime extends OAuthServerRuntime {
19
- readonly note: (text: string) => void;
41
+ readonly prompt: (prompt: SignInPrompt) => void;
20
42
  readonly openBrowser: (url: string) => Promise<void>;
21
- readonly listenForRedirect: () => Promise<RedirectListener>;
43
+ /** Listens for the redirect; the browser then goes on to `appUrl`'s sign-in result page. */
44
+ readonly listenForRedirect: (appUrl: string) => Promise<RedirectListener>;
22
45
  readonly sleep: (ms: number) => Promise<void>;
23
46
  }
24
47
  export interface SignInInput {
@@ -1 +1 @@
1
- {"version":3,"file":"dexto-sign-in.d.ts","sourceRoot":"","sources":["../../src/auth/dexto-sign-in.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,qBAAqB,CAAC;AAExE,qFAAqF;AACrF,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAU/C,sEAAsE;AACtE,MAAM,WAAW,gBAAgB;IAC7B,0CAA0C;IAC1C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,uCAAuC;IACvC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC1C,QAAQ,CAAC,KAAK,EAAE,MAAM,IAA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ES = ["cloud:read"];
6
6
  const DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
7
7
  const LOGIN_TIMEOUT_MS = 5 * 6e4;
8
8
  const END_SIGN_IN_TIMEOUT_MS = 1e4;
9
+ function signInPromptText(prompt) {
10
+ if (prompt.kind === "browser")
11
+ return `Sign in to Dexto in your browser. If it doesn't open, visit:
12
+ ${prompt.authorizeUrl}`;
13
+ return [
14
+ prompt.verificationUriComplete === null ? `To sign in, open this link on any device and enter ${prompt.userCode}:
15
+ ${prompt.verificationUri}` : `To sign in, open this link on any device and check it shows ${prompt.userCode}:
16
+ ${prompt.verificationUriComplete}`,
17
+ "Only approve this if you just ran dexto login."
18
+ ].join("\n");
19
+ }
20
+ class SignInEnded extends Error {
21
+ constructor(reason, message) {
22
+ super(message);
23
+ this.reason = reason;
24
+ this.name = "SignInEnded";
25
+ }
26
+ }
9
27
  const ProtectedResourceSchema = z.object({
10
28
  authorization_servers: z.array(z.string().url()).min(1),
11
29
  resource: z.string().url(),
@@ -53,7 +71,7 @@ async function discover(runtime, input) {
53
71
  }
54
72
  async function signInWithBrowser(runtime, input) {
55
73
  const { appUrl, resource, scopes, server } = await discover(runtime, input);
56
- const redirect = await runtime.listenForRedirect();
74
+ const redirect = await runtime.listenForRedirect(appUrl);
57
75
  try {
58
76
  const verifier = randomBytes(32).toString("base64url");
59
77
  const state = randomBytes(16).toString("base64url");
@@ -70,19 +88,14 @@ async function signInWithBrowser(runtime, input) {
70
88
  ...input.organization === null ? {} : { organization: input.organization }
71
89
  }))
72
90
  authorizeUrl.searchParams.set(name, value);
73
- runtime.note(
74
- `Sign in to Dexto in your browser. If it doesn't open, visit:
75
- ${authorizeUrl}`
76
- );
91
+ runtime.prompt({ kind: "browser", authorizeUrl: authorizeUrl.toString() });
77
92
  if (input.openBrowser) await runtime.openBrowser(authorizeUrl.toString());
78
93
  const params = await withTimeout(redirect.result, LOGIN_TIMEOUT_MS, runtime.signal);
79
94
  if (params.get("state") !== state)
80
95
  throw new Error("The sign-in reply didn't match this login.");
81
96
  const error = params.get("error");
82
97
  if (error !== null)
83
- throw new Error(
84
- error === "access_denied" ? "Sign-in was declined." : `Sign-in failed: ${params.get("error_description") ?? error}.`
85
- );
98
+ throw error === "access_denied" ? new SignInEnded("declined", "Sign-in was declined.") : new Error(`Sign-in failed: ${params.get("error_description") ?? error}.`);
86
99
  const code = params.get("code");
87
100
  if (code === null) throw new Error("The sign-in reply had no code.");
88
101
  const tokens = TokenResponseSchema.parse(
@@ -115,14 +128,13 @@ async function signInWithDevice(runtime, input) {
115
128
  ...input.organization === null ? {} : { organization: input.organization }
116
129
  })
117
130
  );
118
- runtime.note(
119
- [
120
- device.verification_uri_complete === void 0 ? `To sign in, open this link on any device and enter ${device.user_code}:
121
- ${device.verification_uri}` : `To sign in, open this link on any device and check it shows ${device.user_code}:
122
- ${device.verification_uri_complete}`,
123
- "Only approve this if you just ran dexto login."
124
- ].join("\n")
125
- );
131
+ runtime.prompt({
132
+ kind: "device",
133
+ userCode: device.user_code,
134
+ verificationUri: device.verification_uri,
135
+ verificationUriComplete: device.verification_uri_complete ?? null,
136
+ expiresInSeconds: device.expires_in
137
+ });
126
138
  const deadline = Date.now() + device.expires_in * 1e3;
127
139
  let intervalSeconds = device.interval ?? 5;
128
140
  while (Date.now() < deadline) {
@@ -150,12 +162,13 @@ ${device.verification_uri_complete}`,
150
162
  intervalSeconds += 5;
151
163
  continue;
152
164
  }
153
- if (error.code === "access_denied") throw new Error("Sign-in was declined.");
165
+ if (error.code === "access_denied")
166
+ throw new SignInEnded("declined", "Sign-in was declined.");
154
167
  if (error.code !== "expired_token") throw error;
155
168
  break;
156
169
  }
157
170
  }
158
- throw new Error("The sign-in code expired. Run dexto login --device again.");
171
+ throw new SignInEnded("expired", "The sign-in code expired. Run dexto login --device again.");
159
172
  }
160
173
  function toLogin(tokens, client) {
161
174
  return {
@@ -268,10 +281,14 @@ function parseOrNull(text) {
268
281
  async function withTimeout(promise, ms, signal) {
269
282
  let timer;
270
283
  const stop = new Promise((_, reject) => {
271
- timer = setTimeout(() => reject(new Error("Sign-in timed out.")), ms);
272
- signal.addEventListener("abort", () => reject(new Error("Sign-in was cancelled.")), {
273
- once: true
274
- });
284
+ timer = setTimeout(() => reject(new SignInEnded("timed_out", "Sign-in timed out.")), ms);
285
+ signal.addEventListener(
286
+ "abort",
287
+ () => reject(new SignInEnded("cancelled", "Sign-in was cancelled.")),
288
+ {
289
+ once: true
290
+ }
291
+ );
275
292
  });
276
293
  try {
277
294
  return await Promise.race([promise, stop]);
@@ -288,8 +305,10 @@ function expiresAt(expiresInSeconds) {
288
305
  export {
289
306
  DEXTO_CLI_CLIENT_ID,
290
307
  OAuthHttpError,
308
+ SignInEnded,
291
309
  endSignIn,
292
310
  refreshSignIn,
311
+ signInPromptText,
293
312
  signInWithBrowser,
294
313
  signInWithDevice
295
314
  };
@@ -73,9 +73,9 @@ class ConfigError {
73
73
  import_core.ErrorScope.CONFIG,
74
74
  import_core.ErrorType.USER,
75
75
  `No project agent found and no global preferences configured.
76
- Set a primaryAgent in a workspace registry under agents/, create a single workspace agent under agents/, or run \`dexto setup\` to configure preferences.`,
76
+ Set a primaryAgent in a workspace registry under agents/, create a single workspace agent under agents/, or pass one with \`dexto -a <path>\`.`,
77
77
  { projectPath },
78
- "Run `dexto setup` or create a project-specific agent config"
78
+ "Pass an agent with `dexto -a <path>` or create a project-specific agent config"
79
79
  );
80
80
  }
81
81
  static invalidProjectPrimary(registryPath, primaryAgent, reason) {
@@ -93,9 +93,9 @@ Set a primaryAgent in a workspace registry under agents/, create a single worksp
93
93
  import_error_codes.ConfigErrorCode.NO_GLOBAL_PREFERENCES,
94
94
  import_core.ErrorScope.CONFIG,
95
95
  import_core.ErrorType.USER,
96
- `No global preferences found. Run \`dexto setup\` to get started.`,
96
+ `No global preferences found. Run \`dexto login\` or set a provider key to get started.`,
97
97
  {},
98
- "Run `dexto setup` to configure your AI preferences"
98
+ "Run `dexto login` or set a provider key"
99
99
  );
100
100
  }
101
101
  static setupIncomplete() {
@@ -103,9 +103,9 @@ Set a primaryAgent in a workspace registry under agents/, create a single worksp
103
103
  import_error_codes.ConfigErrorCode.SETUP_INCOMPLETE,
104
104
  import_core.ErrorScope.CONFIG,
105
105
  import_core.ErrorType.USER,
106
- `Global preferences setup is incomplete. Run \`dexto setup\` to complete.`,
106
+ `Global preferences setup is incomplete. Run \`dexto login\` or set a provider key.`,
107
107
  {},
108
- "Run `dexto setup` to complete your configuration"
108
+ "Run `dexto login` or set a provider key"
109
109
  );
110
110
  }
111
111
  static bundledNotFound(bundledPath) {
@@ -50,9 +50,9 @@ class ConfigError {
50
50
  ErrorScope.CONFIG,
51
51
  ErrorType.USER,
52
52
  `No project agent found and no global preferences configured.
53
- Set a primaryAgent in a workspace registry under agents/, create a single workspace agent under agents/, or run \`dexto setup\` to configure preferences.`,
53
+ Set a primaryAgent in a workspace registry under agents/, create a single workspace agent under agents/, or pass one with \`dexto -a <path>\`.`,
54
54
  { projectPath },
55
- "Run `dexto setup` or create a project-specific agent config"
55
+ "Pass an agent with `dexto -a <path>` or create a project-specific agent config"
56
56
  );
57
57
  }
58
58
  static invalidProjectPrimary(registryPath, primaryAgent, reason) {
@@ -70,9 +70,9 @@ Set a primaryAgent in a workspace registry under agents/, create a single worksp
70
70
  ConfigErrorCode.NO_GLOBAL_PREFERENCES,
71
71
  ErrorScope.CONFIG,
72
72
  ErrorType.USER,
73
- `No global preferences found. Run \`dexto setup\` to get started.`,
73
+ `No global preferences found. Run \`dexto login\` or set a provider key to get started.`,
74
74
  {},
75
- "Run `dexto setup` to configure your AI preferences"
75
+ "Run `dexto login` or set a provider key"
76
76
  );
77
77
  }
78
78
  static setupIncomplete() {
@@ -80,9 +80,9 @@ Set a primaryAgent in a workspace registry under agents/, create a single worksp
80
80
  ConfigErrorCode.SETUP_INCOMPLETE,
81
81
  ErrorScope.CONFIG,
82
82
  ErrorType.USER,
83
- `Global preferences setup is incomplete. Run \`dexto setup\` to complete.`,
83
+ `Global preferences setup is incomplete. Run \`dexto login\` or set a provider key.`,
84
84
  {},
85
- "Run `dexto setup` to complete your configuration"
85
+ "Run `dexto login` or set a provider key"
86
86
  );
87
87
  }
88
88
  static bundledNotFound(bundledPath) {
@@ -190,14 +190,12 @@ async function resolveImageEntryFileFromStore(specifier, storeDir = getDefaultIm
190
190
  return entry.installed[installedVersions[0] ?? ""]?.entryFile ?? null;
191
191
  }
192
192
  throw new Error(
193
- `Image '${specifier.id}' has multiple installed versions but no active version set. Run: dexto image use ${specifier.id}@<version>`
193
+ `Image '${specifier.id}' has multiple installed versions but no active version set.`
194
194
  );
195
195
  }
196
196
  const resolved = entry.installed[resolvedVersion];
197
197
  if (!resolved) {
198
- throw new Error(
199
- `Image '${specifier.id}@${resolvedVersion}' is not installed. Run: dexto image install ${specifier.id}@${resolvedVersion}`
200
- );
198
+ throw new Error(`Image '${specifier.id}@${resolvedVersion}' is not installed.`);
201
199
  }
202
200
  return resolved.entryFile;
203
201
  }
@@ -1 +1 @@
1
- {"version":3,"file":"image-store.d.ts","sourceRoot":"","sources":["../../src/images/image-store.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,QAAA,MAAM,uBAAuB;;;;;;;;;kBAqBhB,CAAC;AAEd,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,uBAAuB,IAAI,MAAM,CAMhD;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,GAAE,MAAkC,GAAG,MAAM,CAEzF;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,GAAE,MAAkC,GAAG,MAAM,CAExF;AAED,wBAAgB,yBAAyB,CACrC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,M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,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,GACtD,OAAO,CAAC,IAAI,CAAC,CA+Bf"}
@@ -145,14 +145,12 @@ async function resolveImageEntryFileFromStore(specifier, storeDir = getDefaultIm
145
145
  return entry.installed[installedVersions[0] ?? ""]?.entryFile ?? null;
146
146
  }
147
147
  throw new Error(
148
- `Image '${specifier.id}' has multiple installed versions but no active version set. Run: dexto image use ${specifier.id}@<version>`
148
+ `Image '${specifier.id}' has multiple installed versions but no active version set.`
149
149
  );
150
150
  }
151
151
  const resolved = entry.installed[resolvedVersion];
152
152
  if (!resolved) {
153
- throw new Error(
154
- `Image '${specifier.id}@${resolvedVersion}' is not installed. Run: dexto image install ${specifier.id}@${resolvedVersion}`
155
- );
153
+ throw new Error(`Image '${specifier.id}@${resolvedVersion}' is not installed.`);
156
154
  }
157
155
  return resolved.entryFile;
158
156
  }
package/dist/index.cjs CHANGED
@@ -127,6 +127,7 @@ __export(index_exports, {
127
127
  getProviderAuthDefinition: () => import_auth2.getProviderAuthDefinition,
128
128
  getProviderAuthDefinitions: () => import_auth2.getProviderAuthDefinitions,
129
129
  getProviderKeyStatus: () => import_api_key_store.getProviderKeyStatus,
130
+ getStandaloneSkillPaths: () => import_plugins.getStandaloneSkillPaths,
130
131
  getTotalInstalledSize: () => import_models.getTotalInstalledSize,
131
132
  getUninstalledDefaults: () => import_plugins.getUninstalledDefaults,
132
133
  globalPreferencesExist: () => import_loader.globalPreferencesExist,
@@ -373,6 +374,7 @@ var import_plugins = require("./plugins/index.js");
373
374
  getProviderAuthDefinition,
374
375
  getProviderAuthDefinitions,
375
376
  getProviderKeyStatus,
377
+ getStandaloneSkillPaths,
376
378
  getTotalInstalledSize,
377
379
  getUninstalledDefaults,
378
380
  globalPreferencesExist,
package/dist/index.d.ts CHANGED
@@ -31,5 +31,5 @@ export { getModelsDirectory, getModelFilePath, getModelDirectory, getModelStateP
31
31
  export * from './runtime/index.js';
32
32
  export * from './tool-factories/agent-spawner/index.js';
33
33
  export * from './tool-factories/creator-tools/index.js';
34
- 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';
35
35
  //# sourceMappingURL=index.d.ts.map
@@ -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,u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C5B,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
@@ -203,6 +203,7 @@ export * from "./tool-factories/creator-tools/index.js";
203
203
  import {
204
204
  discoverClaudeCodePlugins,
205
205
  discoverStandaloneSkills,
206
+ getStandaloneSkillPaths,
206
207
  getPluginSearchPaths,
207
208
  loadClaudeCodePlugin,
208
209
  validatePluginDirectory,
@@ -342,6 +343,7 @@ export {
342
343
  getProviderAuthDefinition,
343
344
  getProviderAuthDefinitions,
344
345
  getProviderKeyStatus,
346
+ getStandaloneSkillPaths,
345
347
  getTotalInstalledSize,
346
348
  getUninstalledDefaults,
347
349
  globalPreferencesExist,
@@ -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.info(`Installing agent: ${agentId}`);
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.info(`\u2713 Installed agent '${agentId}' to ${targetDir}`);
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)) {
@@ -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.info(`Installing agent: ${agentId}`);
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.info(`\u2713 Installed agent '${agentId}' to ${targetDir}`);
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;;;;;;;;;;;;;;;;;;;GAmBG;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,sBAAsB;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;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;CACjC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAUlF;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,eAAe,EAAE,CA+DhF;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAQlE"}
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 {
@@ -135,7 +135,7 @@ class PluginError {
135
135
  import_core.ErrorType.USER,
136
136
  `Plugin '${pluginName}' not found`,
137
137
  { pluginName },
138
- "Use `dexto plugin list` to see available plugins"
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 `dexto plugin list` to see installed plugins"
149
+ hint || "Use `/plugin` in the interactive CLI to see installed plugins"
150
150
  );
151
151
  }
152
152
  static uninstallDeleteFailed(pluginPath, cause) {
@@ -112,7 +112,7 @@ class PluginError {
112
112
  ErrorType.USER,
113
113
  `Plugin '${pluginName}' not found`,
114
114
  { pluginName },
115
- "Use `dexto plugin list` to see available plugins"
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 `dexto plugin list` to see installed plugins"
126
+ hint || "Use `/plugin` in the interactive CLI to see installed plugins"
127
127
  );
128
128
  }
129
129
  static uninstallDeleteFailed(pluginPath, cause) {
@@ -94,7 +94,7 @@ class MarketplaceError {
94
94
  import_core.ErrorType.USER,
95
95
  `Marketplace '${name}' not found`,
96
96
  { name },
97
- "Use `dexto plugin marketplace list` to see registered marketplaces"
97
+ "Use `/plugin` in the interactive CLI to see registered marketplaces"
98
98
  );
99
99
  }
100
100
  static removeDeleteFailed(name, path, cause) {
@@ -115,7 +115,7 @@ class MarketplaceError {
115
115
  import_core.ErrorType.USER,
116
116
  `Marketplace '${name}' not found`,
117
117
  { name },
118
- "Use `dexto plugin marketplace list` to see registered marketplaces"
118
+ "Use `/plugin` in the interactive CLI to see registered marketplaces"
119
119
  );
120
120
  }
121
121
  static updatePullFailed(name, cause) {
@@ -146,7 +146,7 @@ class MarketplaceError {
146
146
  import_core.ErrorType.USER,
147
147
  `Marketplace '${marketplace}' not found`,
148
148
  { marketplace },
149
- "Use `dexto plugin marketplace list` to see registered marketplaces, or `dexto plugin marketplace add` to register one"
149
+ "Use `/plugin` in the interactive CLI to see registered marketplaces"
150
150
  );
151
151
  }
152
152
  static installPluginNotFound(pluginName, marketplace) {
@@ -157,7 +157,7 @@ class MarketplaceError {
157
157
  import_core.ErrorType.USER,
158
158
  `Plugin '${pluginName}' not found${marketplaceInfo}`,
159
159
  { pluginName, marketplace },
160
- "Use `dexto plugin marketplace` to browse available plugins"
160
+ "Use `/plugin` in the interactive CLI to browse available plugins"
161
161
  );
162
162
  }
163
163
  static installCopyFailed(pluginName, cause) {
@@ -71,7 +71,7 @@ class MarketplaceError {
71
71
  ErrorType.USER,
72
72
  `Marketplace '${name}' not found`,
73
73
  { name },
74
- "Use `dexto plugin marketplace list` to see registered marketplaces"
74
+ "Use `/plugin` in the interactive CLI to see registered marketplaces"
75
75
  );
76
76
  }
77
77
  static removeDeleteFailed(name, path, cause) {
@@ -92,7 +92,7 @@ class MarketplaceError {
92
92
  ErrorType.USER,
93
93
  `Marketplace '${name}' not found`,
94
94
  { name },
95
- "Use `dexto plugin marketplace list` to see registered marketplaces"
95
+ "Use `/plugin` in the interactive CLI to see registered marketplaces"
96
96
  );
97
97
  }
98
98
  static updatePullFailed(name, cause) {
@@ -123,7 +123,7 @@ class MarketplaceError {
123
123
  ErrorType.USER,
124
124
  `Marketplace '${marketplace}' not found`,
125
125
  { marketplace },
126
- "Use `dexto plugin marketplace list` to see registered marketplaces, or `dexto plugin marketplace add` to register one"
126
+ "Use `/plugin` in the interactive CLI to see registered marketplaces"
127
127
  );
128
128
  }
129
129
  static installPluginNotFound(pluginName, marketplace) {
@@ -134,7 +134,7 @@ class MarketplaceError {
134
134
  ErrorType.USER,
135
135
  `Plugin '${pluginName}' not found${marketplaceInfo}`,
136
136
  { pluginName, marketplace },
137
- "Use `dexto plugin marketplace` to browse available plugins"
137
+ "Use `/plugin` in the interactive CLI to browse available plugins"
138
138
  );
139
139
  }
140
140
  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 setup` to create preferences"
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 setup` to create preferences"
12
+ "Run `dexto login` or set a provider key"
13
13
  );
14
14
  }
15
15
  static fileReadError(preferencesPath, cause) {
@@ -176,7 +176,7 @@ class LocalAgentRegistry {
176
176
  * @param agentId ID of the agent to install
177
177
  */
178
178
  async installAgent(agentId) {
179
- import_core.logger.info(`Installing agent: ${agentId}`);
179
+ import_core.logger.debug(`Installing agent: ${agentId}`);
180
180
  const registry = this.getRegistry();
181
181
  const agentData = registry.agents[agentId];
182
182
  if (!agentData) {
@@ -212,7 +212,7 @@ class LocalAgentRegistry {
212
212
  throw import_errors.RegistryError.installationValidationFailed(agentId, mainConfigPath);
213
213
  }
214
214
  await import_fs2.promises.rename(tempDir, targetDir);
215
- import_core.logger.info(`\u2713 Installed agent '${agentId}' to ${targetDir}`);
215
+ import_core.logger.debug(`\u2713 Installed agent '${agentId}' to ${targetDir}`);
216
216
  return this.resolveMainConfig(targetDir, agentId);
217
217
  } catch (error) {
218
218
  try {
@@ -351,7 +351,7 @@ class LocalAgentRegistry {
351
351
  import_core.logger.debug(`Agent '${agentId}' not found in installed path: ${installedPath}`);
352
352
  if (this.hasAgent(agentId)) {
353
353
  if (autoInstall) {
354
- import_core.logger.info(`Installing agent '${agentId}' from registry...`);
354
+ import_core.logger.debug(`Installing agent '${agentId}' from registry...`);
355
355
  return await this.installAgent(agentId);
356
356
  } else {
357
357
  const registry2 = this.getRegistry();
@@ -149,7 +149,7 @@ class LocalAgentRegistry {
149
149
  * @param agentId ID of the agent to install
150
150
  */
151
151
  async installAgent(agentId) {
152
- logger.info(`Installing agent: ${agentId}`);
152
+ logger.debug(`Installing agent: ${agentId}`);
153
153
  const registry = this.getRegistry();
154
154
  const agentData = registry.agents[agentId];
155
155
  if (!agentData) {
@@ -185,7 +185,7 @@ class LocalAgentRegistry {
185
185
  throw RegistryError.installationValidationFailed(agentId, mainConfigPath);
186
186
  }
187
187
  await fs.rename(tempDir, targetDir);
188
- logger.info(`\u2713 Installed agent '${agentId}' to ${targetDir}`);
188
+ logger.debug(`\u2713 Installed agent '${agentId}' to ${targetDir}`);
189
189
  return this.resolveMainConfig(targetDir, agentId);
190
190
  } catch (error) {
191
191
  try {
@@ -324,7 +324,7 @@ class LocalAgentRegistry {
324
324
  logger.debug(`Agent '${agentId}' not found in installed path: ${installedPath}`);
325
325
  if (this.hasAgent(agentId)) {
326
326
  if (autoInstall) {
327
- logger.info(`Installing agent '${agentId}' from registry...`);
327
+ logger.debug(`Installing agent '${agentId}' from registry...`);
328
328
  return await this.installAgent(agentId);
329
329
  } else {
330
330
  const registry2 = this.getRegistry();
package/dist/resolver.cjs CHANGED
@@ -76,7 +76,7 @@ async function resolveAgentByName(agentId, autoInstall) {
76
76
  }
77
77
  if (autoInstall) {
78
78
  try {
79
- import_core.logger.info(`Auto-installing agent '${agentId}' from bundled registry`);
79
+ import_core.logger.debug(`Auto-installing agent '${agentId}' from bundled registry`);
80
80
  const configPath = await (0, import_installation.installBundledAgent)(agentId);
81
81
  return configPath;
82
82
  } catch (error) {
package/dist/resolver.js CHANGED
@@ -49,7 +49,7 @@ async function resolveAgentByName(agentId, autoInstall) {
49
49
  }
50
50
  if (autoInstall) {
51
51
  try {
52
- logger.info(`Auto-installing agent '${agentId}' from bundled registry`);
52
+ logger.debug(`Auto-installing agent '${agentId}' from bundled registry`);
53
53
  const configPath = await installBundledAgent(agentId);
54
54
  return configPath;
55
55
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexto/agent-management",
3
- "version": "1.15.0-beta.1",
3
+ "version": "1.15.0-beta.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,10 +22,10 @@
22
22
  "dependencies": {
23
23
  "yaml": "^2.8.3",
24
24
  "zod": "^4.3.6",
25
- "@dexto/agent-config": "1.14.4",
26
- "@dexto/core": "1.14.4",
25
+ "@dexto/agent-config": "1.15.0-beta.3",
26
+ "@dexto/core": "1.15.0-beta.3",
27
27
  "@dexto/llm": "1.14.4",
28
- "@dexto/tools-builtins": "1.14.4"
28
+ "@dexto/tools-builtins": "1.15.0-beta.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.13.5"