nia-opencode 0.1.4 → 0.1.5
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/cli.js +3 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -234,13 +234,14 @@ async function install(options) {
|
|
|
234
234
|
console.log("Step 1: Configure API Key");
|
|
235
235
|
let apiKey = options.apiKey || process.env.NIA_API_KEY || "";
|
|
236
236
|
if (!apiKey && options.tui && rl) {
|
|
237
|
-
console.log(
|
|
237
|
+
console.log("Get your API key from: https://app.trynia.ai");
|
|
238
|
+
console.log(`New user? Run: curl -fsSL https://app.trynia.ai/cli | sh
|
|
238
239
|
`);
|
|
239
240
|
apiKey = await prompt(rl, "Enter your Nia API key (nk_...): ");
|
|
240
241
|
}
|
|
241
242
|
if (!apiKey) {
|
|
242
243
|
console.log(" No API key provided. You can set NIA_API_KEY environment variable later.");
|
|
243
|
-
console.log(` Get your API key at: https://trynia.ai
|
|
244
|
+
console.log(` Get your API key at: https://app.trynia.ai
|
|
244
245
|
`);
|
|
245
246
|
} else if (!apiKey.startsWith("nk_")) {
|
|
246
247
|
console.log(" Warning: API key should start with 'nk_'");
|