@buiducnhat/agent-skills 0.1.1 → 0.1.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.
- package/dist/index.js +10 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from "node:module";
|
|
2
3
|
import fs, { existsSync, mkdtempSync } from "node:fs";
|
|
3
4
|
import path from "node:path";
|
|
4
5
|
import { stripVTControlCharacters } from "node:util";
|
|
@@ -1605,7 +1606,6 @@ function printSummary(agents, projectDir) {
|
|
|
1605
1606
|
M.message(` .claude/ - Claude vibe coding settings`);
|
|
1606
1607
|
M.message(` .ruler/AGENTS.md - Agent instructions`);
|
|
1607
1608
|
M.message(` .ruler/ruler.toml - Ruler config (agents: ${agents.join(", ")})`);
|
|
1608
|
-
M.message(` .ruler/scripts/ - Helper scripts`);
|
|
1609
1609
|
M.message(` .ruler/skills/ - ${skillCount} workflow skills`);
|
|
1610
1610
|
M.message("");
|
|
1611
1611
|
M.message("Agent configurations generated for:");
|
|
@@ -1624,6 +1624,14 @@ function countSkills(projectDir) {
|
|
|
1624
1624
|
|
|
1625
1625
|
//#endregion
|
|
1626
1626
|
//#region src/index.ts
|
|
1627
|
+
const require = createRequire(import.meta.url);
|
|
1628
|
+
function getCliVersion() {
|
|
1629
|
+
try {
|
|
1630
|
+
return require("../package.json").version ?? "unknown";
|
|
1631
|
+
} catch {
|
|
1632
|
+
return "unknown";
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1627
1635
|
async function main() {
|
|
1628
1636
|
const args = parseArgs(process.argv.slice(2));
|
|
1629
1637
|
if (args.help) {
|
|
@@ -1631,7 +1639,7 @@ async function main() {
|
|
|
1631
1639
|
process.exit(0);
|
|
1632
1640
|
}
|
|
1633
1641
|
if (args.version) {
|
|
1634
|
-
console.log(
|
|
1642
|
+
console.log(getCliVersion());
|
|
1635
1643
|
process.exit(0);
|
|
1636
1644
|
}
|
|
1637
1645
|
Ie(import_picocolors.default.bold(import_picocolors.default.cyan(" Agent Skills Installer ")));
|