allagents 1.0.9 → 1.0.11
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/index.js +15 -27
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26618,7 +26618,7 @@ async function removeUserEnabledSkill(skillKey) {
|
|
|
26618
26618
|
};
|
|
26619
26619
|
}
|
|
26620
26620
|
const newSkills = entry.skills.filter((s) => s !== skillName);
|
|
26621
|
-
entry.skills = newSkills
|
|
26621
|
+
entry.skills = newSkills;
|
|
26622
26622
|
await writeFile2(configPath, dump(config, { lineWidth: -1 }), "utf-8");
|
|
26623
26623
|
return { success: true };
|
|
26624
26624
|
} catch (error) {
|
|
@@ -28043,7 +28043,7 @@ async function removeEnabledSkill(skillKey, workspacePath = process.cwd()) {
|
|
|
28043
28043
|
};
|
|
28044
28044
|
}
|
|
28045
28045
|
const newSkills = entry.skills.filter((s) => s !== skillName);
|
|
28046
|
-
entry.skills = newSkills
|
|
28046
|
+
entry.skills = newSkills;
|
|
28047
28047
|
await writeFile4(configPath, dump(config, { lineWidth: -1 }), "utf-8");
|
|
28048
28048
|
return { success: true };
|
|
28049
28049
|
} catch (error) {
|
|
@@ -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.
|
|
33433
|
+
version: "1.0.11",
|
|
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(`
|
|
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
|
|
36395
|
+
const sourceLocation = parsed ? `${parsed.owner}/${parsed.repo}` : undefined;
|
|
36399
36396
|
let marketplaceName;
|
|
36400
|
-
const
|
|
36401
|
-
if (
|
|
36402
|
-
marketplaceName =
|
|
36403
|
-
|
|
36404
|
-
|
|
36405
|
-
const
|
|
36406
|
-
|
|
36407
|
-
|
|
36408
|
-
|
|
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
|
|
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
|
}
|