allagents 1.0.9 → 1.0.10

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -25
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -33430,7 +33430,7 @@ var package_default;
33430
33430
  var init_package = __esm(() => {
33431
33431
  package_default = {
33432
33432
  name: "allagents",
33433
- version: "1.0.9",
33433
+ version: "1.0.10",
33434
33434
  description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
33435
33435
  type: "module",
33436
33436
  bin: {
@@ -36374,7 +36374,7 @@ Syncing workspace...
36374
36374
  async function installSkillFromSource(opts) {
36375
36375
  const { skill, from, isUser, workspacePath } = opts;
36376
36376
  if (!isJsonMode()) {
36377
- console.log(`Skill '${skill}' not found. Installing from: ${from}...`);
36377
+ console.log(`Installing skill '${skill}' from ${from}...`);
36378
36378
  }
36379
36379
  const parsed = isGitHubUrl(from) ? parseGitHubUrl(from) : null;
36380
36380
  const fetchResult = await fetchPlugin(from, {
@@ -36391,28 +36391,22 @@ async function installSkillFromSource(opts) {
36391
36391
  }
36392
36392
  async function installSkillViaMarketplace(opts) {
36393
36393
  const { skill, from, isUser, workspacePath } = opts;
36394
- if (!isJsonMode()) {
36395
- console.log("Detected marketplace. Registering...");
36396
- }
36397
36394
  const parsed = isGitHubUrl(from) ? parseGitHubUrl(from) : null;
36398
- const scopeOptions = isUser ? undefined : { scope: "project", workspacePath };
36395
+ const sourceLocation = parsed ? `${parsed.owner}/${parsed.repo}` : undefined;
36399
36396
  let marketplaceName;
36400
- const mktResult = await addMarketplace(from, parsed?.branch ? `${parsed.repo}-${parsed.branch}` : undefined, parsed?.branch ?? undefined, undefined, scopeOptions);
36401
- if (mktResult.success) {
36402
- marketplaceName = mktResult.marketplace?.name;
36403
- } else if (mktResult.error?.includes("already exists") || mktResult.alreadyRegistered) {
36404
- const sourceLocation = parsed ? `${parsed.owner}/${parsed.repo}` : undefined;
36405
- const existing = await findMarketplace(parsed?.repo ?? from, sourceLocation, isUser ? undefined : workspacePath);
36406
- if (existing) {
36407
- marketplaceName = existing.name;
36408
- if (!isJsonMode()) {
36409
- console.log(`Marketplace '${marketplaceName}' already registered. Updating...`);
36410
- }
36411
- await updateMarketplace(marketplaceName, isUser ? undefined : workspacePath);
36397
+ const existingAnyScope = await findMarketplace(parsed?.repo ?? from, sourceLocation, isUser ? undefined : workspacePath);
36398
+ if (existingAnyScope) {
36399
+ marketplaceName = existingAnyScope.name;
36400
+ await updateMarketplace(marketplaceName, isUser ? undefined : workspacePath);
36401
+ } else {
36402
+ const scopeOptions = isUser ? undefined : { scope: "project", workspacePath };
36403
+ const mktResult = await addMarketplace(from, parsed?.branch ? `${parsed.repo}-${parsed.branch}` : undefined, parsed?.branch ?? undefined, undefined, scopeOptions);
36404
+ if (mktResult.success) {
36405
+ marketplaceName = mktResult.marketplace?.name;
36412
36406
  }
36413
36407
  }
36414
36408
  if (!marketplaceName) {
36415
- return { success: false, error: `Failed to register marketplace: ${mktResult.error ?? "Unknown error"}` };
36409
+ return { success: false, error: `Failed to register marketplace from '${from}'` };
36416
36410
  }
36417
36411
  const mktPlugins = await listMarketplacePlugins(marketplaceName, isUser ? undefined : workspacePath);
36418
36412
  if (mktPlugins.plugins.length === 0) {
@@ -36436,17 +36430,11 @@ Available skills: ${allAvailableSkills.join(", ") || "none"}`
36436
36430
  };
36437
36431
  }
36438
36432
  const pluginSpec = `${targetPluginName}@${marketplaceName}`;
36439
- if (!isJsonMode()) {
36440
- console.log(`Found skill '${skill}' in plugin '${targetPluginName}'. Installing ${pluginSpec}...`);
36441
- }
36442
36433
  const installResult = isUser ? await addUserPlugin(pluginSpec) : await addPlugin(pluginSpec, workspacePath);
36443
36434
  if (!installResult.success) {
36444
36435
  if (!installResult.error?.includes("already exists") && !installResult.error?.includes("duplicates existing")) {
36445
36436
  return { success: false, error: `Failed to install plugin '${pluginSpec}': ${installResult.error ?? "Unknown error"}` };
36446
36437
  }
36447
- if (!isJsonMode()) {
36448
- console.log(`Plugin '${pluginSpec}' already installed.`);
36449
- }
36450
36438
  }
36451
36439
  return applySkillAllowlist({ skill, pluginName: targetPluginName, isUser, workspacePath });
36452
36440
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allagents",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
5
5
  "type": "module",
6
6
  "bin": {