allagents 1.11.7-next.1 → 1.11.8-next.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/index.js +57 -32
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35223,6 +35223,32 @@ var init_skill_search = __esm(() => {
|
|
|
35223
35223
|
};
|
|
35224
35224
|
});
|
|
35225
35225
|
|
|
35226
|
+
// src/cli/skill-removal.ts
|
|
35227
|
+
async function removeInstalledSkill(options2) {
|
|
35228
|
+
const { targetSkill, isUser, workspacePath } = options2;
|
|
35229
|
+
const allSkills = options2.allSkills ?? await getAllSkillsFromPlugins(workspacePath);
|
|
35230
|
+
const pluginSkills = allSkills.filter((skill) => skill.pluginSource === targetSkill.pluginSource);
|
|
35231
|
+
const remainingEnabledSkills = pluginSkills.filter((skill) => !skill.disabled && skill.name !== targetSkill.name);
|
|
35232
|
+
if (remainingEnabledSkills.length === 0) {
|
|
35233
|
+
const result2 = isUser ? await removeUserPlugin(targetSkill.pluginSource) : await removePlugin(targetSkill.pluginSource, workspacePath);
|
|
35234
|
+
return result2.success ? { success: true, action: "removed-plugin" } : { success: false, error: result2.error ?? "Unknown error" };
|
|
35235
|
+
}
|
|
35236
|
+
const skillKey = `${targetSkill.pluginName}:${targetSkill.name}`;
|
|
35237
|
+
const result = targetSkill.pluginSkillsMode === "allowlist" ? isUser ? await removeUserEnabledSkill(skillKey) : await removeEnabledSkill(skillKey, workspacePath) : isUser ? await addUserDisabledSkill(skillKey) : await addDisabledSkill(skillKey, workspacePath);
|
|
35238
|
+
if (!result.success) {
|
|
35239
|
+
return { success: false, error: result.error ?? "Unknown error" };
|
|
35240
|
+
}
|
|
35241
|
+
return {
|
|
35242
|
+
success: true,
|
|
35243
|
+
action: targetSkill.pluginSkillsMode === "allowlist" ? "removed-skill" : "disabled-skill"
|
|
35244
|
+
};
|
|
35245
|
+
}
|
|
35246
|
+
var init_skill_removal = __esm(() => {
|
|
35247
|
+
init_workspace_modify();
|
|
35248
|
+
init_skills();
|
|
35249
|
+
init_user_workspace();
|
|
35250
|
+
});
|
|
35251
|
+
|
|
35226
35252
|
// node_modules/ajv/dist/compile/codegen/code.js
|
|
35227
35253
|
var require_code = __commonJS((exports) => {
|
|
35228
35254
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -42193,7 +42219,7 @@ var package_default;
|
|
|
42193
42219
|
var init_package = __esm(() => {
|
|
42194
42220
|
package_default = {
|
|
42195
42221
|
name: "allagents",
|
|
42196
|
-
version: "1.11.
|
|
42222
|
+
version: "1.11.8-next.1",
|
|
42197
42223
|
packageManager: "bun@1.3.12",
|
|
42198
42224
|
description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
|
|
42199
42225
|
type: "module",
|
|
@@ -42973,20 +42999,11 @@ async function runBrowsePluginSkills(pluginSource, scope, context, cache2) {
|
|
|
42973
42999
|
const s = Ie();
|
|
42974
43000
|
s.start("Updating skills...");
|
|
42975
43001
|
for (const skill of toDisable) {
|
|
42976
|
-
|
|
42977
|
-
|
|
42978
|
-
|
|
42979
|
-
|
|
42980
|
-
|
|
42981
|
-
await removeEnabledSkill(skillKey, context.workspacePath);
|
|
42982
|
-
}
|
|
42983
|
-
} else {
|
|
42984
|
-
if (scope === "user") {
|
|
42985
|
-
await addUserDisabledSkill(skillKey);
|
|
42986
|
-
} else if (context.workspacePath) {
|
|
42987
|
-
await addDisabledSkill(skillKey, context.workspacePath);
|
|
42988
|
-
}
|
|
42989
|
-
}
|
|
43002
|
+
await removeInstalledSkill({
|
|
43003
|
+
targetSkill: skill,
|
|
43004
|
+
isUser: scope === "user",
|
|
43005
|
+
workspacePath
|
|
43006
|
+
});
|
|
42990
43007
|
}
|
|
42991
43008
|
for (const skill of toEnable) {
|
|
42992
43009
|
const skillKey = `${skill.pluginName}:${skill.name}`;
|
|
@@ -43235,6 +43252,7 @@ var init_plugins = __esm(() => {
|
|
|
43235
43252
|
init_status2();
|
|
43236
43253
|
init_skills();
|
|
43237
43254
|
init_constants();
|
|
43255
|
+
init_skill_removal();
|
|
43238
43256
|
({ select, text: text2, confirm, multiselect, autocomplete } = exports_dist);
|
|
43239
43257
|
});
|
|
43240
43258
|
|
|
@@ -43532,18 +43550,13 @@ async function runToggleSkills(skills, context, cache2) {
|
|
|
43532
43550
|
let changedProject = false;
|
|
43533
43551
|
let changedUser = false;
|
|
43534
43552
|
for (const skill of toDisable) {
|
|
43535
|
-
|
|
43536
|
-
|
|
43537
|
-
|
|
43538
|
-
|
|
43539
|
-
|
|
43540
|
-
|
|
43541
|
-
|
|
43542
|
-
if (skill.scope === "user") {
|
|
43543
|
-
await addUserDisabledSkill(skill.skillKey);
|
|
43544
|
-
} else if (context.workspacePath) {
|
|
43545
|
-
await addDisabledSkill(skill.skillKey, context.workspacePath);
|
|
43546
|
-
}
|
|
43553
|
+
const effectivePath = skill.scope === "user" ? getHomeDir() : context.workspacePath;
|
|
43554
|
+
if (effectivePath) {
|
|
43555
|
+
await removeInstalledSkill({
|
|
43556
|
+
targetSkill: skill,
|
|
43557
|
+
isUser: skill.scope === "user",
|
|
43558
|
+
workspacePath: effectivePath
|
|
43559
|
+
});
|
|
43547
43560
|
}
|
|
43548
43561
|
if (skill.scope === "user")
|
|
43549
43562
|
changedUser = true;
|
|
@@ -43716,6 +43729,7 @@ var init_skills2 = __esm(() => {
|
|
|
43716
43729
|
init_skill_search();
|
|
43717
43730
|
init_constants();
|
|
43718
43731
|
init_plugins();
|
|
43732
|
+
init_skill_removal();
|
|
43719
43733
|
({ multiselect: multiselect2, select: select4, autocomplete: autocomplete2, text: text3 } = exports_dist);
|
|
43720
43734
|
});
|
|
43721
43735
|
|
|
@@ -45130,6 +45144,7 @@ init_skill();
|
|
|
45130
45144
|
init_marketplace();
|
|
45131
45145
|
init_marketplace_manifest_parser();
|
|
45132
45146
|
init_format_sync();
|
|
45147
|
+
init_skill_removal();
|
|
45133
45148
|
function hasProjectConfig(dir) {
|
|
45134
45149
|
return existsSync25(join26(dir, CONFIG_DIR, WORKSPACE_CONFIG_FILE));
|
|
45135
45150
|
}
|
|
@@ -45330,9 +45345,9 @@ var removeCmd = import_cmd_ts3.command({
|
|
|
45330
45345
|
try {
|
|
45331
45346
|
const isUser = scope === "user" || !scope && resolveScope(process.cwd()) === "user";
|
|
45332
45347
|
const workspacePath = isUser ? getHomeDir() : process.cwd();
|
|
45333
|
-
const
|
|
45348
|
+
const allSkills = await getAllSkillsFromPlugins(workspacePath);
|
|
45349
|
+
const matches = allSkills.filter((candidate) => candidate.name === skill);
|
|
45334
45350
|
if (matches.length === 0) {
|
|
45335
|
-
const allSkills = await getAllSkillsFromPlugins(workspacePath);
|
|
45336
45351
|
const skillNames = [...new Set(allSkills.map((s) => s.name))].join(", ");
|
|
45337
45352
|
const error = `Skill '${skill}' not found in any installed plugin.
|
|
45338
45353
|
|
|
@@ -45384,8 +45399,12 @@ Use --plugin to specify: allagents skill remove ${skill} --plugin <name>`;
|
|
|
45384
45399
|
console.log(msg);
|
|
45385
45400
|
return;
|
|
45386
45401
|
}
|
|
45387
|
-
const
|
|
45388
|
-
|
|
45402
|
+
const result = await removeInstalledSkill({
|
|
45403
|
+
targetSkill,
|
|
45404
|
+
isUser,
|
|
45405
|
+
workspacePath,
|
|
45406
|
+
allSkills
|
|
45407
|
+
});
|
|
45389
45408
|
if (!result.success) {
|
|
45390
45409
|
if (isJsonMode()) {
|
|
45391
45410
|
jsonOutput({ success: false, command: "skill remove", error: result.error ?? "Unknown error" });
|
|
@@ -45395,7 +45414,13 @@ Use --plugin to specify: allagents skill remove ${skill} --plugin <name>`;
|
|
|
45395
45414
|
process.exit(1);
|
|
45396
45415
|
}
|
|
45397
45416
|
if (!isJsonMode()) {
|
|
45398
|
-
|
|
45417
|
+
if (result.action === "removed-plugin") {
|
|
45418
|
+
console.log(`✓ Removed plugin: ${targetSkill.pluginSource}`);
|
|
45419
|
+
} else if (result.action === "removed-skill") {
|
|
45420
|
+
console.log(`✓ Removed skill: ${skill} (${targetSkill.pluginName})`);
|
|
45421
|
+
} else {
|
|
45422
|
+
console.log(`✓ Disabled skill: ${skill} (${targetSkill.pluginName})`);
|
|
45423
|
+
}
|
|
45399
45424
|
}
|
|
45400
45425
|
const syncResult = isUser ? await syncUserWorkspace() : await syncWorkspace(workspacePath);
|
|
45401
45426
|
if (isJsonMode()) {
|
package/package.json
CHANGED