blun-king-cli 5.1.6 → 5.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/blun-cli.js +6 -5
- package/package.json +1 -1
package/blun-cli.js
CHANGED
|
@@ -2676,11 +2676,9 @@ async function main() {
|
|
|
2676
2676
|
}
|
|
2677
2677
|
}
|
|
2678
2678
|
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
// API Key check — prompt if missing (uses raw stdin since readline may not work after setRawMode)
|
|
2683
|
-
if (!config.api.key && !config.auth.api_key && !process.argv.includes("--api-key")) {
|
|
2679
|
+
// API Key check — prompt if missing (BEFORE header, so user sees it immediately)
|
|
2680
|
+
var hasKey = (config.api.key && config.api.key.length > 3) || (config.auth.api_key && config.auth.api_key.length > 3);
|
|
2681
|
+
if (!hasKey && !process.argv.includes("--api-key")) {
|
|
2684
2682
|
console.log("");
|
|
2685
2683
|
console.log(C.yellow + " " + BOX.bot + " No API key configured." + C.reset);
|
|
2686
2684
|
console.log(C.gray + " Enter your BLUN King API key (or press Enter to skip):" + C.reset);
|
|
@@ -2723,6 +2721,9 @@ async function main() {
|
|
|
2723
2721
|
}
|
|
2724
2722
|
}
|
|
2725
2723
|
|
|
2724
|
+
printHeader();
|
|
2725
|
+
checkForUpdates();
|
|
2726
|
+
|
|
2726
2727
|
// Load session history for this workdir
|
|
2727
2728
|
var session = loadSessionHistory();
|
|
2728
2729
|
chatHistory = session.history.slice(-20);
|