@cannbot-ai/install-helper 0.0.2-beta.62 → 0.0.2-beta.64
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 +12 -11
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -3724,7 +3724,7 @@ async function skillInstallFlow() {
|
|
|
3724
3724
|
logger.blank();
|
|
3725
3725
|
logger.success(`${t("skill_install_done")}: ${chalk7.green(t("result_success_format").replace("{count}", String(successCount)))}, ${failCount > 0 ? chalk7.red(t("result_failed_format").replace("{count}", String(failCount))) : chalk7.dim(t("result_failed_format").replace("{count}", String(failCount)))}`);
|
|
3726
3726
|
logger.blank();
|
|
3727
|
-
logger.info(`${t("install_to")}: ${chalk7.cyan(configRoot
|
|
3727
|
+
logger.info(`${t("install_to")}: ${chalk7.cyan(join14(configRoot, "skills"))}`);
|
|
3728
3728
|
logger.info(`${t("start_to_use").replace("{tool}", chalk7.green(tool))}`);
|
|
3729
3729
|
logger.blank();
|
|
3730
3730
|
return "done";
|
|
@@ -3928,6 +3928,7 @@ async function statusCommand() {
|
|
|
3928
3928
|
}
|
|
3929
3929
|
|
|
3930
3930
|
// src/commands/install.ts
|
|
3931
|
+
import { join as join16 } from "path";
|
|
3931
3932
|
import { confirm } from "@inquirer/prompts";
|
|
3932
3933
|
import chalk10 from "chalk";
|
|
3933
3934
|
async function installCommand(names, options) {
|
|
@@ -3993,7 +3994,7 @@ async function installCommand(names, options) {
|
|
|
3993
3994
|
logger.blank();
|
|
3994
3995
|
logger.success(`${t("skill_install_done")}: ${chalk10.green(t("result_success_format").replace("{count}", String(successCount)))}, ${failCount > 0 ? chalk10.red(t("result_failed_format").replace("{count}", String(failCount))) : chalk10.dim(t("result_failed_format").replace("{count}", String(failCount)))}`);
|
|
3995
3996
|
logger.blank();
|
|
3996
|
-
logger.info(`${t("install_to")}: ${chalk10.cyan(configRoot
|
|
3997
|
+
logger.info(`${t("install_to")}: ${chalk10.cyan(join16(configRoot, "skills"))}`);
|
|
3997
3998
|
logger.info(`${t("start_to_use").replace("{tool}", chalk10.green(tool2))}`);
|
|
3998
3999
|
logger.blank();
|
|
3999
4000
|
return;
|
|
@@ -4068,7 +4069,7 @@ async function installCommand(names, options) {
|
|
|
4068
4069
|
logger.blank();
|
|
4069
4070
|
logger.success(`${t("skill_install_done")}: ${chalk10.green(t("result_success_format").replace("{count}", String(successCount)))}, ${failCount > 0 ? chalk10.red(t("result_failed_format").replace("{count}", String(failCount))) : chalk10.dim(t("result_failed_format").replace("{count}", String(failCount)))}`);
|
|
4070
4071
|
logger.blank();
|
|
4071
|
-
logger.info(`${t("install_to")}: ${chalk10.cyan(configRoot
|
|
4072
|
+
logger.info(`${t("install_to")}: ${chalk10.cyan(join16(configRoot, "skills"))}`);
|
|
4072
4073
|
logger.info(`${t("start_to_use").replace("{tool}", chalk10.green(tool2))}`);
|
|
4073
4074
|
logger.blank();
|
|
4074
4075
|
return;
|
|
@@ -4198,7 +4199,7 @@ async function installCommand(names, options) {
|
|
|
4198
4199
|
logger.blank();
|
|
4199
4200
|
logger.success(`${t("skill_install_done")}: ${chalk10.green(t("result_success_format").replace("{count}", String(successCount)))}, ${failCount > 0 ? chalk10.red(t("result_failed_format").replace("{count}", String(failCount))) : chalk10.dim(t("result_failed_format").replace("{count}", String(failCount)))}`);
|
|
4200
4201
|
logger.blank();
|
|
4201
|
-
logger.info(`${t("install_to")}: ${chalk10.cyan(getConfigRoot(tool, level)
|
|
4202
|
+
logger.info(`${t("install_to")}: ${chalk10.cyan(join16(getConfigRoot(tool, level), "skills"))}`);
|
|
4202
4203
|
logger.info(`${t("start_to_use").replace("{tool}", chalk10.green(tool))}`);
|
|
4203
4204
|
logger.blank();
|
|
4204
4205
|
}
|
|
@@ -4430,7 +4431,7 @@ async function updateCommand(pluginNames, options) {
|
|
|
4430
4431
|
// src/commands/info.ts
|
|
4431
4432
|
import chalk13 from "chalk";
|
|
4432
4433
|
import { existsSync as existsSync18, readdirSync as readdirSync7 } from "fs";
|
|
4433
|
-
import { join as
|
|
4434
|
+
import { join as join17 } from "path";
|
|
4434
4435
|
async function infoCommand(pluginName) {
|
|
4435
4436
|
const plugin = findPlugin(pluginName);
|
|
4436
4437
|
if (!plugin) {
|
|
@@ -4455,11 +4456,11 @@ async function infoCommand(pluginName) {
|
|
|
4455
4456
|
try {
|
|
4456
4457
|
const repoManager = createRepositoryManager();
|
|
4457
4458
|
const repoPath = await repoManager.ensureRepo();
|
|
4458
|
-
const quickstartPath =
|
|
4459
|
+
const quickstartPath = join17(repoPath, plugin.dir, "quickstart.md");
|
|
4459
4460
|
if (existsSync18(quickstartPath)) {
|
|
4460
4461
|
console.log(` ${chalk13.dim(t("info_quickstart") + ":")} ${quickstartPath}`);
|
|
4461
4462
|
}
|
|
4462
|
-
const agentsDir =
|
|
4463
|
+
const agentsDir = join17(repoPath, plugin.dir, "agents");
|
|
4463
4464
|
if (existsSync18(agentsDir)) {
|
|
4464
4465
|
const agentFiles = readdirSync7(agentsDir).filter((f) => f.endsWith(".md"));
|
|
4465
4466
|
if (agentFiles.length > 0) {
|
|
@@ -4514,7 +4515,7 @@ async function langCommand(action, value) {
|
|
|
4514
4515
|
// src/cli.ts
|
|
4515
4516
|
import { readFileSync as readFileSync9, existsSync as existsSync19 } from "fs";
|
|
4516
4517
|
import { fileURLToPath as fileURLToPath5 } from "url";
|
|
4517
|
-
import { dirname as dirname7, join as
|
|
4518
|
+
import { dirname as dirname7, join as join18 } from "path";
|
|
4518
4519
|
function readVersion() {
|
|
4519
4520
|
try {
|
|
4520
4521
|
if (typeof INSTALL_HELPER_VERSION !== "undefined" && INSTALL_HELPER_VERSION) {
|
|
@@ -4526,9 +4527,9 @@ function readVersion() {
|
|
|
4526
4527
|
const __filename5 = fileURLToPath5(import.meta.url);
|
|
4527
4528
|
const __dirname5 = dirname7(__filename5);
|
|
4528
4529
|
const candidates = [
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4530
|
+
join18(__dirname5, "..", "package.json"),
|
|
4531
|
+
join18(__dirname5, "package.json"),
|
|
4532
|
+
join18(process.cwd(), "package.json")
|
|
4532
4533
|
];
|
|
4533
4534
|
for (const pkgPath of candidates) {
|
|
4534
4535
|
if (existsSync19(pkgPath)) {
|