nox-qwen-agent-cli 1.1.6 → 1.1.7
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/README.md +4 -4
- package/package.json +1 -1
- package/qwen.js +1 -1
package/README.md
CHANGED
|
@@ -22,10 +22,10 @@ PowerShell can also run `.\install.ps1` directly.
|
|
|
22
22
|
|
|
23
23
|
## Configure
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
is
|
|
27
|
-
|
|
28
|
-
never stored in source code, settings, or chat history.
|
|
25
|
+
Interactive runs always ask for a masked API key, including `qwen -p` when a
|
|
26
|
+
terminal is attached. Non-interactive runs read `NOX_API_KEY`,
|
|
27
|
+
`OPENAI_COMPAT_API_KEY`, or `OPENAI_API_KEY`. The key remains in memory for that
|
|
28
|
+
process only and is never stored in source code, settings, or chat history.
|
|
29
29
|
|
|
30
30
|
Linux, macOS, and Termux:
|
|
31
31
|
|
package/package.json
CHANGED
package/qwen.js
CHANGED
|
@@ -1318,7 +1318,7 @@ async function main() {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
const interactive = Boolean(process.stdin.isTTY && process.stdout.isTTY);
|
|
1320
1320
|
const ui = interactive ? new TerminalUI(process.stdin, process.stdout) : null;
|
|
1321
|
-
const apiKey =
|
|
1321
|
+
const apiKey = ui ? await ui.readApiKey() : configuredApiKey();
|
|
1322
1322
|
if (!apiKey) {
|
|
1323
1323
|
throw new Error("Set OPENAI_COMPAT_API_KEY, OPENAI_API_KEY, or NOX_API_KEY before running qwen.");
|
|
1324
1324
|
}
|