nia-wizard 0.1.23 → 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",
|
|
@@ -419,10 +419,6 @@ function printWelcome() {
|
|
|
419
419
|
}
|
|
420
420
|
async function askWizardStartMode() {
|
|
421
421
|
console.log("");
|
|
422
|
-
clack_default.note(
|
|
423
|
-
"Default setup:\n \u2022 Browser sign-in\n \u2022 Install nia-cli automatically\n \u2022 Launch the recommended Nia CLI setup flow",
|
|
424
|
-
"Quick Setup"
|
|
425
|
-
);
|
|
426
422
|
return await abortIfCancelled(
|
|
427
423
|
clack_default.select({
|
|
428
424
|
message: "Continue with:",
|
|
@@ -3100,6 +3096,17 @@ async function removeMCPServerFromClientsStep() {
|
|
|
3100
3096
|
import chalk3 from "chalk";
|
|
3101
3097
|
import { spawnSync as spawnSync6 } from "child_process";
|
|
3102
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
|
+
|
|
3103
3110
|
// src/utils/dependencies.ts
|
|
3104
3111
|
import { execSync as execSync5, spawnSync as spawnSync4 } from "child_process";
|
|
3105
3112
|
import chalk2 from "chalk";
|
|
@@ -3303,17 +3310,6 @@ function dependenciesReady() {
|
|
|
3303
3310
|
return true;
|
|
3304
3311
|
}
|
|
3305
3312
|
|
|
3306
|
-
// src/utils/api-key.ts
|
|
3307
|
-
import * as fs33 from "fs";
|
|
3308
|
-
import * as os33 from "os";
|
|
3309
|
-
import * as path33 from "path";
|
|
3310
|
-
var NIA_CONFIG_DIR = path33.join(os33.homedir(), ".config", "nia");
|
|
3311
|
-
var NIA_KEY_PATH = path33.join(NIA_CONFIG_DIR, "api_key");
|
|
3312
|
-
function storeApiKey(apiKey) {
|
|
3313
|
-
fs33.mkdirSync(NIA_CONFIG_DIR, { recursive: true });
|
|
3314
|
-
fs33.writeFileSync(NIA_KEY_PATH, apiKey, { mode: 384 });
|
|
3315
|
-
}
|
|
3316
|
-
|
|
3317
3313
|
// src/utils/nia-cli.ts
|
|
3318
3314
|
import { spawnSync as spawnSync5 } from "child_process";
|
|
3319
3315
|
var NIA_CLI_PACKAGE = "@nozomioai/nia";
|
|
@@ -3367,16 +3363,16 @@ function ensureNiaCliInstalled() {
|
|
|
3367
3363
|
return true;
|
|
3368
3364
|
}
|
|
3369
3365
|
function runNiaSkill() {
|
|
3370
|
-
const runResult = spawnSync5(niaCommand(), ["skill"], {
|
|
3366
|
+
const runResult = spawnSync5(niaCommand(), ["skill", "--all"], {
|
|
3371
3367
|
stdio: "inherit",
|
|
3372
3368
|
shell: false
|
|
3373
3369
|
});
|
|
3374
3370
|
if (runResult.status === 0) {
|
|
3375
3371
|
return true;
|
|
3376
3372
|
}
|
|
3377
|
-
debug("nia skill failed, falling back to npx @nozomioai/nia skill", runResult.status);
|
|
3378
|
-
clack_default.log.warn("`nia skill` failed. Trying `npx -y @nozomioai/nia skill`...");
|
|
3379
|
-
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"], {
|
|
3380
3376
|
stdio: "inherit",
|
|
3381
3377
|
shell: false
|
|
3382
3378
|
});
|
|
@@ -4076,4 +4072,4 @@ export {
|
|
|
4076
4072
|
runSkillAdd,
|
|
4077
4073
|
printAgentGuide
|
|
4078
4074
|
};
|
|
4079
|
-
//# sourceMappingURL=chunk-
|
|
4075
|
+
//# sourceMappingURL=chunk-SEOYYWQT.js.map
|