nia-wizard 0.1.24 → 0.1.25
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/bin.js
CHANGED
|
@@ -9,7 +9,7 @@ var require_package = __commonJS({
|
|
|
9
9
|
"package.json"(exports, module) {
|
|
10
10
|
module.exports = {
|
|
11
11
|
name: "nia-wizard",
|
|
12
|
-
version: "0.1.
|
|
12
|
+
version: "0.1.25",
|
|
13
13
|
description: "CLI wizard to install Nia to your coding agents",
|
|
14
14
|
type: "module",
|
|
15
15
|
main: "dist/index.js",
|
|
@@ -3096,6 +3096,17 @@ async function removeMCPServerFromClientsStep() {
|
|
|
3096
3096
|
import chalk3 from "chalk";
|
|
3097
3097
|
import { spawnSync as spawnSync6 } from "child_process";
|
|
3098
3098
|
|
|
3099
|
+
// src/utils/api-key.ts
|
|
3100
|
+
import * as fs33 from "fs";
|
|
3101
|
+
import * as os33 from "os";
|
|
3102
|
+
import * as path33 from "path";
|
|
3103
|
+
var NIA_CONFIG_DIR = path33.join(os33.homedir(), ".config", "nia");
|
|
3104
|
+
var NIA_KEY_PATH = path33.join(NIA_CONFIG_DIR, "api_key");
|
|
3105
|
+
function storeApiKey(apiKey) {
|
|
3106
|
+
fs33.mkdirSync(NIA_CONFIG_DIR, { recursive: true });
|
|
3107
|
+
fs33.writeFileSync(NIA_KEY_PATH, apiKey, { mode: 384 });
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3099
3110
|
// src/utils/dependencies.ts
|
|
3100
3111
|
import { execSync as execSync5, spawnSync as spawnSync4 } from "child_process";
|
|
3101
3112
|
import chalk2 from "chalk";
|
|
@@ -3299,17 +3310,6 @@ function dependenciesReady() {
|
|
|
3299
3310
|
return true;
|
|
3300
3311
|
}
|
|
3301
3312
|
|
|
3302
|
-
// src/utils/api-key.ts
|
|
3303
|
-
import * as fs33 from "fs";
|
|
3304
|
-
import * as os33 from "os";
|
|
3305
|
-
import * as path33 from "path";
|
|
3306
|
-
var NIA_CONFIG_DIR = path33.join(os33.homedir(), ".config", "nia");
|
|
3307
|
-
var NIA_KEY_PATH = path33.join(NIA_CONFIG_DIR, "api_key");
|
|
3308
|
-
function storeApiKey(apiKey) {
|
|
3309
|
-
fs33.mkdirSync(NIA_CONFIG_DIR, { recursive: true });
|
|
3310
|
-
fs33.writeFileSync(NIA_KEY_PATH, apiKey, { mode: 384 });
|
|
3311
|
-
}
|
|
3312
|
-
|
|
3313
3313
|
// src/utils/nia-cli.ts
|
|
3314
3314
|
import { spawnSync as spawnSync5 } from "child_process";
|
|
3315
3315
|
var NIA_CLI_PACKAGE = "@nozomioai/nia";
|
|
@@ -3363,16 +3363,16 @@ function ensureNiaCliInstalled() {
|
|
|
3363
3363
|
return true;
|
|
3364
3364
|
}
|
|
3365
3365
|
function runNiaSkill() {
|
|
3366
|
-
const runResult = spawnSync5(niaCommand(), ["skill"], {
|
|
3366
|
+
const runResult = spawnSync5(niaCommand(), ["skill", "--all"], {
|
|
3367
3367
|
stdio: "inherit",
|
|
3368
3368
|
shell: false
|
|
3369
3369
|
});
|
|
3370
3370
|
if (runResult.status === 0) {
|
|
3371
3371
|
return true;
|
|
3372
3372
|
}
|
|
3373
|
-
debug("nia skill failed, falling back to npx @nozomioai/nia skill", runResult.status);
|
|
3374
|
-
clack_default.log.warn("`nia skill` failed. Trying `npx -y @nozomioai/nia skill`...");
|
|
3375
|
-
const fallbackResult = spawnSync5(npxCommand(), ["-y", NIA_CLI_PACKAGE, "skill"], {
|
|
3373
|
+
debug("nia skill --all failed, falling back to npx @nozomioai/nia skill --all", runResult.status);
|
|
3374
|
+
clack_default.log.warn("`nia skill --all` failed. Trying `npx -y @nozomioai/nia skill --all`...");
|
|
3375
|
+
const fallbackResult = spawnSync5(npxCommand(), ["-y", NIA_CLI_PACKAGE, "skill", "--all"], {
|
|
3376
3376
|
stdio: "inherit",
|
|
3377
3377
|
shell: false
|
|
3378
3378
|
});
|
|
@@ -4072,4 +4072,4 @@ export {
|
|
|
4072
4072
|
runSkillAdd,
|
|
4073
4073
|
printAgentGuide
|
|
4074
4074
|
};
|
|
4075
|
-
//# sourceMappingURL=chunk-
|
|
4075
|
+
//# sourceMappingURL=chunk-SEOYYWQT.js.map
|