@linxiraos/pi-tui 1.2.1 → 1.3.0
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/CHANGELOG.md +188 -125
- package/README.md +36 -0
- package/THIRD-PARTY-NOTICES.txt +55 -5
- package/dist/types/app-keybindings.d.ts +18 -8
- package/dist/types/apps/git/diff-pane.d.ts +5 -0
- package/dist/types/apps/git/git-tui.d.ts +16 -2
- package/dist/types/apps/git/state.d.ts +11 -0
- package/dist/types/autocomplete.d.ts +2 -0
- package/dist/types/charts/chart-svg.d.ts +7 -13
- package/dist/types/chat/advisor-message.d.ts +4 -1
- package/dist/types/chat/assistant-message.d.ts +9 -4
- package/dist/types/chat/figure-markdown.d.ts +7 -2
- package/dist/types/chat/messages.d.ts +3 -1
- package/dist/types/chat/read-tool-group.d.ts +2 -2
- package/dist/types/chat/table-chart.d.ts +11 -15
- package/dist/types/chat/tool-execution.d.ts +32 -20
- package/dist/types/chat/user-message.d.ts +3 -2
- package/dist/types/chrome/countdown-timer.d.ts +3 -2
- package/dist/types/chrome/diff.d.ts +2 -3
- package/dist/types/chrome/transcript-container.d.ts +2 -0
- package/dist/types/components/image.d.ts +2 -0
- package/dist/types/components/markdown.d.ts +49 -3
- package/dist/types/components/text.d.ts +2 -0
- package/dist/types/debug-server.d.ts +2 -0
- package/dist/types/keybinding-matchers.d.ts +6 -0
- package/dist/types/multiplexers/tmux.d.ts +1 -0
- package/dist/types/multiplexers/types.d.ts +6 -0
- package/dist/types/native/backend.d.ts +5 -4
- package/dist/types/native/blobs.d.ts +24 -12
- package/dist/types/overlays/agent-hub-projection.d.ts +10 -5
- package/dist/types/overlays/annotation-overlay.d.ts +19 -0
- package/dist/types/overlays/approval-dialog.d.ts +79 -0
- package/dist/types/overlays/ask-dialog.d.ts +11 -6
- package/dist/types/overlays/btw-history-panel.d.ts +2 -6
- package/dist/types/overlays/hook-editor.d.ts +7 -2
- package/dist/types/overlays/hook-input.d.ts +12 -4
- package/dist/types/overlays/job-tree.d.ts +50 -0
- package/dist/types/overlays/jobs-panel.d.ts +25 -11
- package/dist/types/overlays/login-dialog.d.ts +8 -3
- package/dist/types/overlays/mcp-add-wizard.d.ts +9 -1
- package/dist/types/overlays/model-browser.d.ts +6 -1
- package/dist/types/overlays/model-picker.d.ts +2 -0
- package/dist/types/overlays/pause-screen.d.ts +5 -0
- package/dist/types/overlays/plan-review-overlay.d.ts +4 -0
- package/dist/types/overlays/report-panel.d.ts +5 -1
- package/dist/types/overlays/reset-usage-selector.d.ts +7 -5
- package/dist/types/overlays/session-account-selector.d.ts +4 -0
- package/dist/types/overlays/session-info-overlay.d.ts +7 -3
- package/dist/types/overlays/session-selector.d.ts +3 -1
- package/dist/types/overlays/usage-dashboard.d.ts +6 -6
- package/dist/types/prompt/composer.d.ts +21 -20
- package/dist/types/prompt/custom-editor.d.ts +20 -10
- package/dist/types/prompt/image-references.d.ts +22 -0
- package/dist/types/prompt/internal-url-autocomplete.d.ts +1 -0
- package/dist/types/prompt/macos-spelling.d.ts +2 -1
- package/dist/types/prompt/prose-gate.d.ts +3 -0
- package/dist/types/prompt/queued-messages.d.ts +1 -1
- package/dist/types/prompt/typing-word.d.ts +25 -0
- package/dist/types/prompt/welcome.d.ts +26 -6
- package/dist/types/render/hanging-wrap.d.ts +7 -0
- package/dist/types/render/hyperlink.d.ts +2 -0
- package/dist/types/render/render-utils.d.ts +9 -1
- package/dist/types/render/utils.d.ts +1 -1
- package/dist/types/setup/scenes/splash.d.ts +6 -5
- package/dist/types/status-line/context-usage.d.ts +4 -1
- package/dist/types/status-line/host.d.ts +6 -4
- package/dist/types/status-line/startup.d.ts +6 -6
- package/dist/types/status-line/types.d.ts +3 -0
- package/dist/types/stdin-buffer.d.ts +7 -0
- package/dist/types/terminal-capabilities.d.ts +16 -1
- package/dist/types/terminal-multiplexer.d.ts +7 -0
- package/dist/types/terminal.d.ts +8 -4
- package/dist/types/theme/symbols.d.ts +1 -1
- package/dist/types/theme/theme.d.ts +11 -0
- package/dist/types/thinking.d.ts +5 -0
- package/dist/types/tmux.d.ts +39 -4
- package/dist/types/tools/ast-edit.d.ts +2 -2
- package/dist/types/tools/ast-grep.d.ts +2 -2
- package/dist/types/tools/bash.d.ts +6 -1
- package/dist/types/tools/edit.d.ts +2 -0
- package/dist/types/tools/eval.d.ts +53 -4
- package/dist/types/tools/find.d.ts +14 -4
- package/dist/types/tools/glob.d.ts +3 -3
- package/dist/types/tools/grep.d.ts +2 -2
- package/dist/types/tools/grouped-file-output.d.ts +9 -4
- package/dist/types/tools/native-view.d.ts +1 -1
- package/dist/types/tools/read.d.ts +32 -10
- package/dist/types/tools/renderer.d.ts +2 -0
- package/dist/types/tools/task.d.ts +31 -0
- package/dist/types/tools/write.d.ts +2 -0
- package/dist/types/tui.d.ts +20 -3
- package/package.json +10 -10
- package/src/app-keybindings.d.ts +18 -8
- package/src/app-keybindings.ts +20 -8
- package/src/apps/autoresearch-dashboard.ts +444 -27
- package/src/apps/debug/raw-sse.ts +2 -2
- package/src/apps/git/diff-pane.ts +39 -41
- package/src/apps/git/git-tui.ts +80 -14
- package/src/apps/git/sidebar.ts +10 -1
- package/src/apps/git/state.ts +12 -0
- package/src/autocomplete.d.ts +2 -0
- package/src/autocomplete.ts +21 -19
- package/src/bracketed-paste.ts +9 -2
- package/src/charts/chart-svg.d.ts +7 -13
- package/src/charts/chart-svg.ts +19 -22
- package/src/chat/advisor-message.d.ts +4 -1
- package/src/chat/advisor-message.ts +77 -24
- package/src/chat/assistant-message.d.ts +9 -4
- package/src/chat/assistant-message.ts +127 -31
- package/src/chat/bash-execution.ts +7 -2
- package/src/chat/figure-markdown.d.ts +7 -2
- package/src/chat/figure-markdown.ts +10 -3
- package/src/chat/image-loading.ts +9 -6
- package/src/chat/messages.d.ts +3 -1
- package/src/chat/messages.ts +4 -1
- package/src/chat/read-tool-group.d.ts +2 -2
- package/src/chat/read-tool-group.ts +97 -42
- package/src/chat/svg-figure.ts +3 -1
- package/src/chat/svg-source.ts +6 -3
- package/src/chat/table-chart.d.ts +11 -15
- package/src/chat/table-chart.ts +24 -57
- package/src/chat/tool-execution.d.ts +32 -20
- package/src/chat/tool-execution.ts +103 -36
- package/src/chat/user-message.d.ts +3 -2
- package/src/chat/user-message.ts +54 -34
- package/src/chrome/countdown-timer.ts +3 -3
- package/src/chrome/diff.d.ts +2 -3
- package/src/chrome/diff.ts +4 -9
- package/src/chrome/transcript-container.d.ts +2 -0
- package/src/chrome/transcript-container.ts +212 -28
- package/src/components/editor.ts +12 -12
- package/src/components/image.d.ts +2 -0
- package/src/components/image.ts +54 -20
- package/src/components/markdown.d.ts +49 -3
- package/src/components/markdown.ts +461 -11
- package/src/components/settings-list.ts +2 -4
- package/src/components/text.d.ts +2 -0
- package/src/components/text.ts +11 -1
- package/src/debug-server.d.ts +2 -0
- package/src/debug-server.ts +51 -69
- package/src/hotkeys-markdown.ts +2 -0
- package/src/keybinding-matchers.d.ts +6 -0
- package/src/keybinding-matchers.ts +19 -0
- package/src/multiplexers/tmux.d.ts +1 -0
- package/src/multiplexers/tmux.ts +3 -0
- package/src/multiplexers/types.d.ts +6 -0
- package/src/multiplexers/types.ts +6 -0
- package/src/native/backend.d.ts +5 -4
- package/src/native/backend.ts +13 -5
- package/src/native/blobs.d.ts +24 -12
- package/src/native/blobs.ts +56 -7
- package/src/native/reconcile.ts +43 -21
- package/src/overlays/advisor-config.ts +259 -8
- package/src/overlays/agent-hub-projection.d.ts +10 -5
- package/src/overlays/agent-hub-projection.ts +63 -12
- package/src/overlays/annotation-overlay.ts +422 -168
- package/src/overlays/approval-dialog.ts +389 -0
- package/src/overlays/ask-dialog.ts +244 -105
- package/src/overlays/btw-history-panel.ts +208 -147
- package/src/overlays/extensions/extension-list.ts +4 -6
- package/src/overlays/hook-editor.ts +90 -32
- package/src/overlays/hook-input.ts +105 -19
- package/src/overlays/job-tree.ts +177 -0
- package/src/overlays/jobs-panel.ts +222 -142
- package/src/overlays/login-dialog.ts +201 -91
- package/src/overlays/mcp-add-wizard.ts +562 -279
- package/src/overlays/model-browser.ts +32 -7
- package/src/overlays/model-hub.ts +4 -10
- package/src/overlays/model-picker.ts +58 -21
- package/src/overlays/pause-screen.ts +81 -23
- package/src/overlays/plan-review-overlay.ts +16 -0
- package/src/overlays/plugin-selector.ts +17 -1
- package/src/overlays/queue-mode-selector.ts +10 -0
- package/src/overlays/report-panel.ts +6 -2
- package/src/overlays/reset-usage-selector.ts +130 -21
- package/src/overlays/session-account-selector.ts +36 -0
- package/src/overlays/session-info-overlay.ts +199 -76
- package/src/overlays/session-selector.ts +15 -10
- package/src/overlays/settings-selector.ts +3 -0
- package/src/overlays/show-images-selector.ts +1 -0
- package/src/overlays/snapcompact-shape-preview.ts +13 -6
- package/src/overlays/theme-selector.ts +6 -1
- package/src/overlays/thinking-selector.ts +8 -4
- package/src/overlays/tree-selector.ts +117 -2
- package/src/overlays/usage-dashboard.ts +498 -144
- package/src/prompt/composer-cache.ts +1 -1
- package/src/prompt/composer.ts +194 -74
- package/src/prompt/custom-editor.ts +168 -65
- package/src/prompt/image-references.d.ts +22 -0
- package/src/prompt/image-references.ts +79 -2
- package/src/prompt/internal-url-autocomplete.ts +1 -0
- package/src/prompt/macos-spelling.ts +28 -5
- package/src/prompt/prose-gate.ts +3 -0
- package/src/prompt/queued-messages.ts +9 -2
- package/src/prompt/tips.txt +1 -2
- package/src/prompt/typing-word.ts +59 -0
- package/src/prompt/welcome.ts +97 -45
- package/src/render/code-cell.ts +18 -5
- package/src/render/hanging-wrap.d.ts +7 -0
- package/src/render/hanging-wrap.ts +58 -0
- package/src/render/hyperlink.d.ts +2 -0
- package/src/render/hyperlink.ts +5 -0
- package/src/render/render-utils.d.ts +9 -1
- package/src/render/render-utils.ts +16 -2
- package/src/render/utils.d.ts +1 -1
- package/src/render/utils.ts +1 -1
- package/src/render/width-aware-text.ts +6 -5
- package/src/setup/scenes/splash.ts +22 -8
- package/src/status-line/component.ts +23 -10
- package/src/status-line/context-usage.ts +176 -73
- package/src/status-line/footer.ts +18 -35
- package/src/status-line/host.ts +6 -1
- package/src/status-line/segments.ts +16 -5
- package/src/status-line/startup.ts +6 -6
- package/src/status-line/types.ts +1 -0
- package/src/stdin-buffer.d.ts +7 -0
- package/src/stdin-buffer.ts +11 -1
- package/src/terminal-capabilities.d.ts +16 -1
- package/src/terminal-capabilities.ts +66 -28
- package/src/terminal-multiplexer.d.ts +7 -0
- package/src/terminal-multiplexer.ts +14 -0
- package/src/terminal.d.ts +8 -4
- package/src/terminal.ts +160 -46
- package/src/theme/symbols.d.ts +1 -1
- package/src/theme/symbols.ts +1 -0
- package/src/theme/theme-class.ts +1 -0
- package/src/theme/theme.d.ts +11 -0
- package/src/theme/theme.ts +46 -14
- package/src/thinking.d.ts +5 -0
- package/src/thinking.ts +9 -1
- package/src/tmux.d.ts +39 -4
- package/src/tmux.ts +110 -16
- package/src/tools/ask.ts +20 -9
- package/src/tools/ast-edit.d.ts +2 -2
- package/src/tools/ast-edit.ts +30 -7
- package/src/tools/ast-grep.d.ts +2 -2
- package/src/tools/ast-grep.ts +39 -35
- package/src/tools/bash.d.ts +6 -1
- package/src/tools/bash.ts +15 -9
- package/src/tools/debug.ts +2 -1
- package/src/tools/default-renderer.ts +3 -2
- package/src/tools/edit.d.ts +2 -0
- package/src/tools/edit.ts +100 -21
- package/src/tools/eval.d.ts +53 -4
- package/src/tools/eval.ts +173 -137
- package/src/tools/find.d.ts +14 -4
- package/src/tools/find.ts +71 -18
- package/src/tools/glob.d.ts +3 -3
- package/src/tools/glob.ts +51 -17
- package/src/tools/grep.d.ts +2 -2
- package/src/tools/grep.ts +99 -22
- package/src/tools/grouped-file-output.d.ts +9 -4
- package/src/tools/grouped-file-output.ts +21 -6
- package/src/tools/lsp.ts +30 -18
- package/src/tools/mcp.ts +2 -2
- package/src/tools/native-view.d.ts +1 -1
- package/src/tools/native-view.ts +2 -2
- package/src/tools/read.d.ts +32 -10
- package/src/tools/read.ts +89 -43
- package/src/tools/renderer.d.ts +2 -0
- package/src/tools/renderer.ts +2 -0
- package/src/tools/task.d.ts +31 -0
- package/src/tools/task.ts +40 -7
- package/src/tools/todo.ts +3 -2
- package/src/tools/wait.ts +16 -30
- package/src/tools/web-search.ts +2 -1
- package/src/tools/write.d.ts +2 -0
- package/src/tools/write.ts +36 -12
- package/src/tools/yield.ts +2 -2
- package/src/tui.d.ts +20 -3
- package/src/tui.ts +140 -36
- package/src/utils.ts +5 -3
- package/dist/types/tools/eval-format/code-mode-declarations.d.ts +0 -5
- package/src/tools/eval-format/code-mode-declarations.ts +0 -61
package/dist/types/tui.d.ts
CHANGED
|
@@ -115,9 +115,6 @@ export interface Component {
|
|
|
115
115
|
* last time.
|
|
116
116
|
*/
|
|
117
117
|
render(width: number): readonly string[];
|
|
118
|
-
/** Inline decision panels must keep displaced settled transcript rows in
|
|
119
|
-
* native scrollback even when mounted inside a transient editor container. */
|
|
120
|
-
readonly retireDisplacedTranscript?: boolean;
|
|
121
118
|
/**
|
|
122
119
|
* Describe the component semantically for a Tern Surface Protocol
|
|
123
120
|
* terminal (see `native/node.ts`). Called instead of `render()` when the
|
|
@@ -351,6 +348,7 @@ export declare class TUI extends Container {
|
|
|
351
348
|
overlayStack: {
|
|
352
349
|
component: Component;
|
|
353
350
|
options?: OverlayOptions;
|
|
351
|
+
/** Focus restored after closing; tracks live focus changes beneath an input-less key holder. */
|
|
354
352
|
preFocus: Component | null;
|
|
355
353
|
hidden: boolean;
|
|
356
354
|
/**
|
|
@@ -458,6 +456,16 @@ export declare class TUI extends Container {
|
|
|
458
456
|
top: number;
|
|
459
457
|
length: number;
|
|
460
458
|
};
|
|
459
|
+
/**
|
|
460
|
+
* Rows of native history the last paint left on screen above a mutable
|
|
461
|
+
* viewport that reached the bottom row, or `undefined` when that paint left
|
|
462
|
+
* rows free below it (or none happened, or a destructive reset will repaint
|
|
463
|
+
* from row zero). Rows above a bottom-reaching viewport may already sit in
|
|
464
|
+
* native scrollback, which a later shrink cannot pull back down.
|
|
465
|
+
*/
|
|
466
|
+
getFilledHistoryRows(): number | undefined;
|
|
467
|
+
/** Whether native history holds rows the frame provider committed since the last destructive reset. */
|
|
468
|
+
hasProviderHistory(): boolean;
|
|
461
469
|
/**
|
|
462
470
|
* Probe for opt-in normal-buffer click capture. The provider is read every
|
|
463
471
|
* frame; while it returns true (and no fullscreen overlay owns the
|
|
@@ -507,6 +515,13 @@ export declare class TUI extends Container {
|
|
|
507
515
|
* overtaking them. No-op unless `previous` owns the held keys.
|
|
508
516
|
*/
|
|
509
517
|
replaceHeldFocus(previous: Component, next: Component): void;
|
|
518
|
+
/**
|
|
519
|
+
* Register a hook that re-enables terminal modes on every start(). A hook
|
|
520
|
+
* added while the TUI is already running (a prepaint composer starts it
|
|
521
|
+
* before the interactive mode wires its controllers) missed that start, so
|
|
522
|
+
* it runs immediately instead of waiting for a stop/start cycle that may
|
|
523
|
+
* never come.
|
|
524
|
+
*/
|
|
510
525
|
addStartListener(listener: StartListener): () => void;
|
|
511
526
|
addInputListener(listener: InputListener): () => void;
|
|
512
527
|
removeInputListener(listener: InputListener): void;
|
|
@@ -519,6 +534,8 @@ export declare class TUI extends Container {
|
|
|
519
534
|
*/
|
|
520
535
|
resetDisplay(): void;
|
|
521
536
|
requestRender(force?: boolean, options?: RenderRequestOptions): void;
|
|
537
|
+
/** Run `callback` after `delayMs` on the render scheduler's clock, unless the TUI has stopped. */
|
|
538
|
+
scheduleAfter(delayMs: number, callback: () => void): RenderTimer;
|
|
522
539
|
/**
|
|
523
540
|
* Paint a forced frame synchronously when startup must hand off an already
|
|
524
541
|
* visible component tree before further async initialization. Same as
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@linxiraos/pi-tui",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"description": "Terminal User Interface library with differential rendering for efficient text-based applications",
|
|
6
6
|
"homepage": "https://linxira-os.github.io/zeta/",
|
|
7
7
|
"author": "Linxira-OS",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"types": "./dist/types/index.d.ts",
|
|
31
31
|
"scripts": {
|
|
32
32
|
"check": "oxlint . && oxfmt --check --no-error-on-unmatched-pattern 'src/**/*.{ts,tsx}' '{test,bench,examples,scripts}/**/*.ts' '*.ts' && bun run check:types",
|
|
33
|
-
"check:types": "
|
|
33
|
+
"check:types": "tsc -p tsconfig.json --noEmit",
|
|
34
34
|
"lint": "oxlint .",
|
|
35
35
|
"test": "bun test --parallel test/*.test.ts",
|
|
36
36
|
"fix": "oxlint --fix --fix-suggestions . && bun run fmt",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"gen:glyphs": "bun scripts/gen-glyphs.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@linxiraos/pi-omptype": "1.
|
|
42
|
-
"@linxiraos/pi-agent-core": "1.
|
|
43
|
-
"@linxiraos/pi-ai": "1.
|
|
44
|
-
"@linxiraos/pi-catalog": "1.
|
|
45
|
-
"@linxiraos/pi-natives": "1.
|
|
46
|
-
"@linxiraos/pi-utils": "1.
|
|
47
|
-
"@linxiraos/pi-wire": "1.
|
|
48
|
-
"@linxiraos/pi-snapcompact": "1.
|
|
41
|
+
"@linxiraos/pi-omptype": "1.3.0",
|
|
42
|
+
"@linxiraos/pi-agent-core": "1.3.0",
|
|
43
|
+
"@linxiraos/pi-ai": "1.3.0",
|
|
44
|
+
"@linxiraos/pi-catalog": "1.3.0",
|
|
45
|
+
"@linxiraos/pi-natives": "1.3.0",
|
|
46
|
+
"@linxiraos/pi-utils": "1.3.0",
|
|
47
|
+
"@linxiraos/pi-wire": "1.3.0",
|
|
48
|
+
"@linxiraos/pi-snapcompact": "1.3.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"kitty-vt-wasm": "^0.2.0"
|
package/src/app-keybindings.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ interface AppKeybindings {
|
|
|
17
17
|
"app.model.selectTemporary": true;
|
|
18
18
|
"app.tools.expand": true;
|
|
19
19
|
"app.tools.toggleVisibility": true;
|
|
20
|
+
"app.ask.hide": true;
|
|
21
|
+
"app.approval.approve": true;
|
|
20
22
|
"app.editor.external": true;
|
|
21
23
|
"app.message.followUp": true;
|
|
22
24
|
"app.retry": true;
|
|
@@ -36,8 +38,8 @@ interface AppKeybindings {
|
|
|
36
38
|
"app.session.rename": true;
|
|
37
39
|
"app.session.delete": true;
|
|
38
40
|
"app.session.deleteNoninvasive": true;
|
|
39
|
-
"app.tree.
|
|
40
|
-
"app.tree.
|
|
41
|
+
"app.tree.previousBranch": true;
|
|
42
|
+
"app.tree.nextBranch": true;
|
|
41
43
|
"app.plan.toggle": true;
|
|
42
44
|
"app.history.search": true;
|
|
43
45
|
"app.stt.pushToTalk": true;
|
|
@@ -238,6 +240,14 @@ export declare const KEYBINDINGS: {
|
|
|
238
240
|
readonly defaultKeys: "ctrl+shift+o";
|
|
239
241
|
readonly description: "Show or hide tool activity";
|
|
240
242
|
};
|
|
243
|
+
readonly "app.ask.hide": {
|
|
244
|
+
readonly defaultKeys: "alt+h";
|
|
245
|
+
readonly description: "Hide or show a pending ask dialog";
|
|
246
|
+
};
|
|
247
|
+
readonly "app.approval.approve": {
|
|
248
|
+
readonly defaultKeys: ["ctrl+enter", "ctrl+q"];
|
|
249
|
+
readonly description: "Approve a pending tool call";
|
|
250
|
+
};
|
|
241
251
|
readonly "app.editor.external": {
|
|
242
252
|
readonly defaultKeys: "ctrl+g";
|
|
243
253
|
readonly description: "Open external editor";
|
|
@@ -314,13 +324,13 @@ export declare const KEYBINDINGS: {
|
|
|
314
324
|
readonly defaultKeys: "ctrl+backspace";
|
|
315
325
|
readonly description: "Delete session (non-invasive)";
|
|
316
326
|
};
|
|
317
|
-
readonly "app.tree.
|
|
318
|
-
readonly defaultKeys: [
|
|
319
|
-
readonly description: "
|
|
327
|
+
readonly "app.tree.previousBranch": {
|
|
328
|
+
readonly defaultKeys: [];
|
|
329
|
+
readonly description: "Jump to the previous branch in /tree";
|
|
320
330
|
};
|
|
321
|
-
readonly "app.tree.
|
|
322
|
-
readonly defaultKeys: [
|
|
323
|
-
readonly description: "
|
|
331
|
+
readonly "app.tree.nextBranch": {
|
|
332
|
+
readonly defaultKeys: [];
|
|
333
|
+
readonly description: "Jump to the next branch in /tree";
|
|
324
334
|
};
|
|
325
335
|
readonly "app.plan.toggle": {
|
|
326
336
|
readonly defaultKeys: "alt+shift+p";
|
package/src/app-keybindings.ts
CHANGED
|
@@ -37,6 +37,8 @@ interface AppKeybindings {
|
|
|
37
37
|
"app.model.selectTemporary": true;
|
|
38
38
|
"app.tools.expand": true;
|
|
39
39
|
"app.tools.toggleVisibility": true;
|
|
40
|
+
"app.ask.hide": true;
|
|
41
|
+
"app.approval.approve": true;
|
|
40
42
|
"app.editor.external": true;
|
|
41
43
|
"app.message.followUp": true;
|
|
42
44
|
"app.retry": true;
|
|
@@ -56,8 +58,8 @@ interface AppKeybindings {
|
|
|
56
58
|
"app.session.rename": true;
|
|
57
59
|
"app.session.delete": true;
|
|
58
60
|
"app.session.deleteNoninvasive": true;
|
|
59
|
-
"app.tree.
|
|
60
|
-
"app.tree.
|
|
61
|
+
"app.tree.previousBranch": true;
|
|
62
|
+
"app.tree.nextBranch": true;
|
|
61
63
|
"app.plan.toggle": true;
|
|
62
64
|
"app.history.search": true;
|
|
63
65
|
"app.stt.pushToTalk": true;
|
|
@@ -138,6 +140,16 @@ export const KEYBINDINGS = {
|
|
|
138
140
|
defaultKeys: "ctrl+shift+o",
|
|
139
141
|
description: "Show or hide tool activity",
|
|
140
142
|
},
|
|
143
|
+
"app.ask.hide": {
|
|
144
|
+
defaultKeys: "alt+h",
|
|
145
|
+
description: "Hide or show a pending ask dialog",
|
|
146
|
+
},
|
|
147
|
+
"app.approval.approve": {
|
|
148
|
+
// A chord, not Enter: an Enter typed for the composer as the prompt appears must not approve.
|
|
149
|
+
// Ctrl+Q backs up Ctrl+Enter, which Windows Terminal cannot deliver (#1903).
|
|
150
|
+
defaultKeys: ["ctrl+enter", "ctrl+q"],
|
|
151
|
+
description: "Approve a pending tool call",
|
|
152
|
+
},
|
|
141
153
|
"app.editor.external": {
|
|
142
154
|
defaultKeys: "ctrl+g",
|
|
143
155
|
description: "Open external editor",
|
|
@@ -222,13 +234,13 @@ export const KEYBINDINGS = {
|
|
|
222
234
|
defaultKeys: "ctrl+backspace",
|
|
223
235
|
description: "Delete session (non-invasive)",
|
|
224
236
|
},
|
|
225
|
-
"app.tree.
|
|
226
|
-
defaultKeys: [
|
|
227
|
-
description: "
|
|
237
|
+
"app.tree.previousBranch": {
|
|
238
|
+
defaultKeys: [],
|
|
239
|
+
description: "Jump to the previous branch in /tree",
|
|
228
240
|
},
|
|
229
|
-
"app.tree.
|
|
230
|
-
defaultKeys: [
|
|
231
|
-
description: "
|
|
241
|
+
"app.tree.nextBranch": {
|
|
242
|
+
defaultKeys: [],
|
|
243
|
+
description: "Jump to the next branch in /tree",
|
|
232
244
|
},
|
|
233
245
|
"app.plan.toggle": {
|
|
234
246
|
defaultKeys: "alt+shift+p",
|