promptimizer-cli 0.1.19 → 0.1.20
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/bin/promptimizer.mjs +7 -1
- package/package.json +1 -1
package/bin/promptimizer.mjs
CHANGED
|
@@ -151,7 +151,7 @@ function banner(session, version) {
|
|
|
151
151
|
out(` ${color(ANSI.green, "●")} ${label}${models ? ` · ${models} models` : ""}`);
|
|
152
152
|
out(` ${color(ANSI.dim, `baseline ${baseline}`)}`);
|
|
153
153
|
out();
|
|
154
|
-
out(` ${color(ANSI.dim, "Type a prompt, or /help /models /savings /clear /quit")}`);
|
|
154
|
+
out(` ${color(ANSI.dim, "Type a prompt, or /help /models /savings /clear /logout /quit")}`);
|
|
155
155
|
out(` ${color(ANSI.dim, "Cache keys on full history — /clear then repeat a prompt to see cache hit")}`);
|
|
156
156
|
out();
|
|
157
157
|
}
|
|
@@ -417,6 +417,7 @@ async function interactive(flags) {
|
|
|
417
417
|
out(` ${color(ANSI.bold, "/savings")} account ledger`);
|
|
418
418
|
out(` ${color(ANSI.bold, "/session")} provider status`);
|
|
419
419
|
out(` ${color(ANSI.bold, "/clear")} clear chat history`);
|
|
420
|
+
out(` ${color(ANSI.bold, "/logout")} remove saved API key`);
|
|
420
421
|
out(` ${color(ANSI.bold, "/quit")} exit`);
|
|
421
422
|
out();
|
|
422
423
|
};
|
|
@@ -446,6 +447,11 @@ async function interactive(flags) {
|
|
|
446
447
|
continue;
|
|
447
448
|
}
|
|
448
449
|
|
|
450
|
+
if (trimmed === "/logout") {
|
|
451
|
+
cmdLogout();
|
|
452
|
+
break;
|
|
453
|
+
}
|
|
454
|
+
|
|
449
455
|
if (trimmed === "/session") {
|
|
450
456
|
try {
|
|
451
457
|
session = await loadSession(flags, readConfig());
|