reskill 0.12.1 → 0.13.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/install.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoBpC;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/install.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoBpC;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,SAkYvB,CAAC;AAEL,eAAe,cAAc,CAAC"}
|
package/dist/cli/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_node_fs__ from "node:fs";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_commander__ from "commander";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE_node_path__ from "node:path";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_node_url__ from "node:url";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_commander__ from "commander";
|
|
5
6
|
import * as __WEBPACK_EXTERNAL_MODULE_chalk__ from "chalk";
|
|
6
7
|
import * as __WEBPACK_EXTERNAL_MODULE_node_os__ from "node:os";
|
|
7
8
|
import * as __WEBPACK_EXTERNAL_MODULE_node_child_process__ from "node:child_process";
|
|
@@ -1657,7 +1658,10 @@ const installCommand = new __WEBPACK_EXTERNAL_MODULE_commander__.Command('instal
|
|
|
1657
1658
|
}
|
|
1658
1659
|
}
|
|
1659
1660
|
let installGlobally = options.global ?? false;
|
|
1660
|
-
|
|
1661
|
+
const hasSkillsJson = configLoader.exists();
|
|
1662
|
+
if (void 0 !== options.global || skipConfirm || hasSkillsJson) {
|
|
1663
|
+
if (hasSkillsJson && void 0 === options.global) __WEBPACK_EXTERNAL_MODULE__clack_prompts__.log.info(`Found ${__WEBPACK_EXTERNAL_MODULE_chalk__["default"].cyan('skills.json')}, installing to project`);
|
|
1664
|
+
} else {
|
|
1661
1665
|
const scope = await __WEBPACK_EXTERNAL_MODULE__clack_prompts__.select({
|
|
1662
1666
|
message: 'Installation scope',
|
|
1663
1667
|
options: [
|
|
@@ -1949,8 +1953,10 @@ const updateCommand = new __WEBPACK_EXTERNAL_MODULE_commander__.Command('update'
|
|
|
1949
1953
|
process.exit(1);
|
|
1950
1954
|
}
|
|
1951
1955
|
});
|
|
1956
|
+
const cli_rslib_entry_dirname = (0, __WEBPACK_EXTERNAL_MODULE_node_path__.dirname)((0, __WEBPACK_EXTERNAL_MODULE_node_url__.fileURLToPath)(import.meta.url));
|
|
1957
|
+
const packageJson = JSON.parse((0, external_node_fs_.readFileSync)((0, __WEBPACK_EXTERNAL_MODULE_node_path__.join)(cli_rslib_entry_dirname, '../../package.json'), 'utf-8'));
|
|
1952
1958
|
const program = new __WEBPACK_EXTERNAL_MODULE_commander__.Command();
|
|
1953
|
-
program.name('reskill').description('AI Skills Package Manager - Git-based skills management for AI agents').version(
|
|
1959
|
+
program.name('reskill').description('AI Skills Package Manager - Git-based skills management for AI agents').version(packageJson.version);
|
|
1954
1960
|
program.addCommand(initCommand);
|
|
1955
1961
|
program.addCommand(installCommand);
|
|
1956
1962
|
program.addCommand(listCommand);
|