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.
Files changed (3) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
  3. 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
- Runs read `NOX_API_KEY`, `OPENAI_COMPAT_API_KEY`, or `OPENAI_API_KEY` when one
26
- is configured. If no key is configured and a terminal is available, the CLI asks
27
- for a masked API key. The key remains in memory for that process only and is
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nox-qwen-agent-cli",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "Cross-platform OpenAI-compatible Qwen coding agent CLI",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
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 = configuredApiKey() || (ui ? await ui.readApiKey() : "");
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
  }