nia-wizard 0.1.30 → 0.1.31
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.31",
|
|
13
13
|
description: "CLI wizard to install Nia to your coding agents",
|
|
14
14
|
packageManager: "pnpm@10.30.3",
|
|
15
15
|
type: "module",
|
|
@@ -4019,59 +4019,97 @@ function getAgentGuideMarkdown() {
|
|
|
4019
4019
|
"",
|
|
4020
4020
|
"## Goal",
|
|
4021
4021
|
"",
|
|
4022
|
-
"Install the Nia CLI,
|
|
4022
|
+
"Install the Nia CLI, create an account via the passwordless API, verify the user's email, then finish CLI authentication and skill setup. No browser or manual key creation needed.",
|
|
4023
4023
|
"",
|
|
4024
4024
|
"## Steps",
|
|
4025
4025
|
"",
|
|
4026
|
-
"1.
|
|
4026
|
+
"### 1. Ask the user for their details",
|
|
4027
|
+
"",
|
|
4028
|
+
"Before doing anything, ask the user for:",
|
|
4029
|
+
"- **Email address**",
|
|
4030
|
+
"- **Organization name** (e.g. their company or team name)",
|
|
4031
|
+
"",
|
|
4032
|
+
"### 2. Install the Nia CLI",
|
|
4033
|
+
"",
|
|
4034
|
+
"Check whether Bun is installed:",
|
|
4027
4035
|
"",
|
|
4028
4036
|
"```bash",
|
|
4029
4037
|
"bun --version",
|
|
4030
4038
|
"```",
|
|
4031
4039
|
"",
|
|
4032
|
-
"
|
|
4033
|
-
"",
|
|
4034
|
-
"- If `bun --version` succeeds, run:",
|
|
4040
|
+
"If `bun --version` succeeds:",
|
|
4035
4041
|
"",
|
|
4036
4042
|
"```bash",
|
|
4037
4043
|
"bun add -g @nozomioai/nia@latest",
|
|
4038
4044
|
"```",
|
|
4039
4045
|
"",
|
|
4040
|
-
"
|
|
4046
|
+
"If `bun --version` fails:",
|
|
4041
4047
|
"",
|
|
4042
4048
|
"```bash",
|
|
4043
4049
|
"npm install -g @nozomioai/nia@latest",
|
|
4044
4050
|
"```",
|
|
4045
4051
|
"",
|
|
4046
|
-
"3.
|
|
4052
|
+
"### 3. Create an account via the API",
|
|
4053
|
+
"",
|
|
4054
|
+
"Call the signup endpoint with the user's email and organization name. No password required.",
|
|
4055
|
+
"",
|
|
4056
|
+
"```bash",
|
|
4057
|
+
"curl -s -X POST https://apigcp.trynia.ai/v2/auth/signup \\",
|
|
4058
|
+
' -H "Content-Type: application/json" \\',
|
|
4059
|
+
` -d '{"email": "<USER_EMAIL>", "organization_name": "<ORG_NAME>"}'`,
|
|
4060
|
+
"```",
|
|
4061
|
+
"",
|
|
4062
|
+
"The response contains:",
|
|
4063
|
+
"- `api_key`: a read-only `nk_...` key (upgraded to full access after verification)",
|
|
4064
|
+
"- `api_key_id`, `user_id`, `organization_id`",
|
|
4065
|
+
"- `verified`: false (until email is verified)",
|
|
4047
4066
|
"",
|
|
4048
|
-
"
|
|
4067
|
+
"A 6-digit verification code is sent to the user's email.",
|
|
4049
4068
|
"",
|
|
4050
|
-
"4.
|
|
4069
|
+
"### 4. Ask the user for the verification code",
|
|
4051
4070
|
"",
|
|
4052
|
-
"
|
|
4071
|
+
"Tell the user to check their email for a 6-digit code from Nia and paste it back.",
|
|
4053
4072
|
"",
|
|
4054
|
-
"
|
|
4073
|
+
"### 5. Verify the account",
|
|
4074
|
+
"",
|
|
4075
|
+
"Call the verify endpoint with the code and the API key from step 3:",
|
|
4076
|
+
"",
|
|
4077
|
+
"```bash",
|
|
4078
|
+
"curl -s -X POST https://apigcp.trynia.ai/v2/auth/verify \\",
|
|
4079
|
+
' -H "Content-Type: application/json" \\',
|
|
4080
|
+
' -H "Authorization: Bearer <nk_api_key>" \\',
|
|
4081
|
+
` -d '{"code": "<6_DIGIT_CODE>"}'`,
|
|
4082
|
+
"```",
|
|
4083
|
+
"",
|
|
4084
|
+
"On success, the API key is upgraded from read-only to full access.",
|
|
4085
|
+
"",
|
|
4086
|
+
"### 6. Configure the CLI",
|
|
4055
4087
|
"",
|
|
4056
4088
|
"```bash",
|
|
4057
4089
|
"nia auth login --api-key <nk_api_key>",
|
|
4058
4090
|
"```",
|
|
4059
4091
|
"",
|
|
4060
|
-
"7.
|
|
4092
|
+
"### 7. Install Nia skills",
|
|
4061
4093
|
"",
|
|
4062
4094
|
"```bash",
|
|
4063
4095
|
"nia skill --all",
|
|
4064
4096
|
"```",
|
|
4065
4097
|
"",
|
|
4066
|
-
"## Agent Message
|
|
4098
|
+
"## Agent Message Templates",
|
|
4099
|
+
"",
|
|
4100
|
+
"**Asking for details:**",
|
|
4101
|
+
"",
|
|
4102
|
+
"> To set up Nia, I need two things from you:",
|
|
4103
|
+
"> 1. Your **email address**",
|
|
4104
|
+
"> 2. An **organization name** (your company or team name)",
|
|
4067
4105
|
"",
|
|
4068
|
-
"
|
|
4106
|
+
"**Asking for verification code:**",
|
|
4069
4107
|
"",
|
|
4070
|
-
"> I
|
|
4108
|
+
"> I've created your Nia account! Check your email for a 6-digit verification code from Nia and paste it here. This upgrades your API key to full access.",
|
|
4071
4109
|
"",
|
|
4072
4110
|
"## Expected Result",
|
|
4073
4111
|
"",
|
|
4074
|
-
"`nia` is installed, authenticated with
|
|
4112
|
+
"`nia` is installed, the user's account is created and verified via API, the CLI is authenticated with a full-access API key, and `nia skill --all` has completed."
|
|
4075
4113
|
].join("\n");
|
|
4076
4114
|
}
|
|
4077
4115
|
function printAgentGuide() {
|
|
@@ -4098,4 +4136,4 @@ export {
|
|
|
4098
4136
|
getAgentGuideMarkdown,
|
|
4099
4137
|
printAgentGuide
|
|
4100
4138
|
};
|
|
4101
|
-
//# sourceMappingURL=chunk-
|
|
4139
|
+
//# sourceMappingURL=chunk-VGEI6AOZ.js.map
|