agent-skills-standard 2.2.4 ā 2.2.5
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 +26 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4370,7 +4370,7 @@ var SyncCommand = class {
|
|
|
4370
4370
|
};
|
|
4371
4371
|
var package_default = {
|
|
4372
4372
|
name: "agent-skills-standard",
|
|
4373
|
-
version: "2.2.
|
|
4373
|
+
version: "2.2.5",
|
|
4374
4374
|
description: "A CLI to manage and sync AI agent skills standard for Cursor, Claude, Copilot, Windsurf, and more.",
|
|
4375
4375
|
main: "dist/index.js",
|
|
4376
4376
|
bin: {
|
|
@@ -4465,40 +4465,44 @@ var UpgradeCommand = class {
|
|
|
4465
4465
|
console.log(picocolors.default.yellow(`š¦ Upgrading to v${latestVersion} using ${pm}...`));
|
|
4466
4466
|
try {
|
|
4467
4467
|
console.log(picocolors.default.gray(` Running: ${upgradeCmd}`));
|
|
4468
|
-
(0, child_process.execSync)(upgradeCmd, { stdio: "inherit" });
|
|
4469
4468
|
try {
|
|
4470
|
-
|
|
4469
|
+
(0, child_process.execSync)(upgradeCmd, { stdio: "inherit" });
|
|
4470
|
+
} catch {
|
|
4471
|
+
console.log(picocolors.default.yellow(`ā ļø Failed to install v${latestVersion}. Retrying with @latest...`));
|
|
4472
|
+
(0, child_process.execSync)(this.getUpgradeCommand(pm, "latest"), { stdio: "inherit" });
|
|
4473
|
+
}
|
|
4474
|
+
try {
|
|
4475
|
+
const lines = (0, child_process.execSync)("ags -V", {
|
|
4476
|
+
encoding: "utf8",
|
|
4477
|
+
stdio: "pipe"
|
|
4478
|
+
}).trim().split("\n");
|
|
4471
4479
|
const installedVersion = lines[lines.length - 1].trim();
|
|
4472
|
-
if (installedVersion
|
|
4480
|
+
if (installedVersion.includes(latestVersion)) console.log(picocolors.default.green(`ā
Successfully upgraded to v${latestVersion}!`));
|
|
4473
4481
|
else {
|
|
4474
|
-
console.log("\n" + picocolors.default.yellow(`ā ļø
|
|
4475
|
-
console.log(picocolors.default.gray(" This is
|
|
4476
|
-
console.log(picocolors.default.cyan(`š Recommendation:
|
|
4482
|
+
console.log("\n" + picocolors.default.yellow(`ā ļø Installation complete, but 'ags -V' still reports v${installedVersion}.`));
|
|
4483
|
+
console.log(picocolors.default.gray(" This is common if multiple versions are installed or your shell needs a restart."));
|
|
4484
|
+
console.log(picocolors.default.cyan(`š Recommendation: Restart your terminal or run: ${picocolors.default.bold(this.getUpgradeCommand(pm, latestVersion) + " --force")}`));
|
|
4477
4485
|
}
|
|
4478
4486
|
} catch {
|
|
4479
|
-
console.log(picocolors.default.green(
|
|
4487
|
+
console.log(picocolors.default.green("\nā
Upgrade command finished."));
|
|
4488
|
+
console.log(picocolors.default.gray(" (Unable to verify version automatically, please check with 'ags -V')"));
|
|
4480
4489
|
}
|
|
4481
|
-
console.log(picocolors.default.cyan("
|
|
4490
|
+
console.log(picocolors.default.cyan("\nNote: You may need to restart your terminal session for changes to take effect."));
|
|
4482
4491
|
} catch {
|
|
4483
4492
|
console.log("\n" + picocolors.default.red("ā Automatic upgrade failed."));
|
|
4484
4493
|
this.printManualInstructions(pm, latestVersion);
|
|
4485
4494
|
}
|
|
4486
4495
|
}
|
|
4487
4496
|
detectPackageManager() {
|
|
4488
|
-
const
|
|
4489
|
-
if (
|
|
4490
|
-
if (
|
|
4497
|
+
const execPath = process.argv[1] || "";
|
|
4498
|
+
if (execPath.includes("pnpm") || (process.env.npm_config_user_agent || "").includes("pnpm")) return "pnpm";
|
|
4499
|
+
if (execPath.includes("yarn") || (process.env.npm_config_user_agent || "").includes("yarn")) return "yarn";
|
|
4500
|
+
if (execPath.includes("nvm") || execPath.includes("npm")) return "npm";
|
|
4491
4501
|
try {
|
|
4492
4502
|
(0, child_process.execSync)("pnpm --version", { stdio: "ignore" });
|
|
4493
|
-
return "pnpm";
|
|
4494
|
-
} catch {
|
|
4495
|
-
|
|
4496
|
-
(0, child_process.execSync)("yarn --version", { stdio: "ignore" });
|
|
4497
|
-
return "yarn";
|
|
4498
|
-
} catch {
|
|
4499
|
-
return "npm";
|
|
4500
|
-
}
|
|
4501
|
-
}
|
|
4503
|
+
if (execPath.includes("pnpm")) return "pnpm";
|
|
4504
|
+
} catch {}
|
|
4505
|
+
return "npm";
|
|
4502
4506
|
}
|
|
4503
4507
|
getUpgradeCommand(pm, version) {
|
|
4504
4508
|
switch (pm) {
|
|
@@ -4852,7 +4856,7 @@ var ValidateCommand = class {
|
|
|
4852
4856
|
//#region src/index.ts
|
|
4853
4857
|
dotenv.default.config();
|
|
4854
4858
|
var program = new commander.Command();
|
|
4855
|
-
program.name("agent-skills-standard").description("A CLI to manage and sync AI agent skills for Cursor, Claude, Copilot, Windsurf, and more.").version("2.2.
|
|
4859
|
+
program.name("agent-skills-standard").description("A CLI to manage and sync AI agent skills for Cursor, Claude, Copilot, Windsurf, and more.").version("2.2.5");
|
|
4856
4860
|
program.command("init").description("Initialize a .skillsrc configuration file interactively").action(async () => {
|
|
4857
4861
|
await new InitCommand().run();
|
|
4858
4862
|
});
|