@lenylvt/pi-coding-agent 0.64.0 → 0.64.2
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.
|
@@ -36,7 +36,7 @@ import { ExtensionEditorComponent } from "./components/extension-editor.js";
|
|
|
36
36
|
import { ExtensionInputComponent } from "./components/extension-input.js";
|
|
37
37
|
import { ExtensionSelectorComponent } from "./components/extension-selector.js";
|
|
38
38
|
import { FooterComponent } from "./components/footer.js";
|
|
39
|
-
import {
|
|
39
|
+
import { keyText } from "./components/keybinding-hints.js";
|
|
40
40
|
import { LoginDialogComponent } from "./components/login-dialog.js";
|
|
41
41
|
import { ModelSelectorComponent } from "./components/model-selector.js";
|
|
42
42
|
import { OAuthSelectorComponent } from "./components/oauth-selector.js";
|
|
@@ -291,31 +291,8 @@ export class InteractiveMode {
|
|
|
291
291
|
// Add header with keybindings from config (unless silenced)
|
|
292
292
|
if (this.options.verbose || !this.settingsManager.getQuietStartup()) {
|
|
293
293
|
const logo = theme.bold(theme.fg("accent", APP_NAME)) + theme.fg("dim", ` v${this.version}`);
|
|
294
|
-
// Build startup instructions using keybinding hint helpers
|
|
295
|
-
const hint = (keybinding, description) => keyHint(keybinding, description);
|
|
296
|
-
const instructions = [
|
|
297
|
-
hint("app.interrupt", "to interrupt"),
|
|
298
|
-
hint("app.clear", "to clear"),
|
|
299
|
-
rawKeyHint(`${keyText("app.clear")} twice`, "to exit"),
|
|
300
|
-
hint("app.exit", "to exit (empty)"),
|
|
301
|
-
hint("app.suspend", "to suspend"),
|
|
302
|
-
keyHint("tui.editor.deleteToLineEnd", "to delete to end"),
|
|
303
|
-
hint("app.thinking.cycle", "to cycle thinking level"),
|
|
304
|
-
rawKeyHint(`${keyText("app.model.cycleForward")}/${keyText("app.model.cycleBackward")}`, "to cycle models"),
|
|
305
|
-
hint("app.model.select", "to select model"),
|
|
306
|
-
hint("app.tools.expand", "to expand tools"),
|
|
307
|
-
hint("app.thinking.toggle", "to expand thinking"),
|
|
308
|
-
hint("app.editor.external", "for external editor"),
|
|
309
|
-
rawKeyHint("/", "for commands"),
|
|
310
|
-
rawKeyHint("!", "to run bash"),
|
|
311
|
-
rawKeyHint("!!", "to run bash (no context)"),
|
|
312
|
-
hint("app.message.followUp", "to queue follow-up"),
|
|
313
|
-
hint("app.message.dequeue", "to edit all queued messages"),
|
|
314
|
-
hint("app.clipboard.pasteImage", "to paste image"),
|
|
315
|
-
rawKeyHint("drop files", "to attach"),
|
|
316
|
-
].join("\n");
|
|
317
294
|
const onboarding = theme.fg("dim", `Pi can explain its own features and look up its docs. Ask it how to use or extend Pi.`);
|
|
318
|
-
this.builtInHeader = new Text(`${logo}\n${
|
|
295
|
+
this.builtInHeader = new Text(`${logo}\n${onboarding}`, 1, 0);
|
|
319
296
|
// Setup UI layout
|
|
320
297
|
this.headerContainer.addChild(new Spacer(1));
|
|
321
298
|
this.headerContainer.addChild(this.builtInHeader);
|