@linxiraos/pi-tui 1.4.7 → 1.4.10
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 +154 -231
- package/README.md +7 -1
- package/dist/types/app-keybindings.d.ts +5 -0
- package/dist/types/charts/table-data.d.ts +4 -2
- package/dist/types/chat/bash-execution.d.ts +4 -1
- package/dist/types/chat/eval-execution.d.ts +2 -0
- package/dist/types/chat/execution-shared.d.ts +14 -8
- package/dist/types/chat/figure-markdown.d.ts +2 -0
- package/dist/types/chat/svg-figure.d.ts +5 -0
- package/dist/types/chat/table-chart.d.ts +2 -0
- package/dist/types/chat/transcript-render-helpers.d.ts +11 -3
- package/dist/types/chrome/dynamic-border.d.ts +6 -0
- package/dist/types/chrome/transcript-status.d.ts +2 -2
- package/dist/types/components/editor.d.ts +15 -6
- package/dist/types/components/image.d.ts +6 -0
- package/dist/types/components/loader.d.ts +2 -0
- package/dist/types/keybinding-matchers.d.ts +7 -0
- package/dist/types/native/describe.d.ts +4 -2
- package/dist/types/native/node.d.ts +2 -3
- package/dist/types/native/overlay.d.ts +42 -2
- package/dist/types/native/state.d.ts +4 -0
- package/dist/types/overlays/btw-history-panel.d.ts +15 -0
- package/dist/types/overlays/btw-history.d.ts +24 -0
- package/dist/types/overlays/btw-inject.d.ts +22 -0
- package/dist/types/overlays/btw-panel.d.ts +7 -0
- package/dist/types/overlays/hook-editor.d.ts +2 -0
- package/dist/types/overlays/jobs-panel.d.ts +4 -0
- package/dist/types/overlays/model-browser.d.ts +1 -1
- package/dist/types/overlays/session-selector.d.ts +11 -2
- package/dist/types/prompt/composer.d.ts +13 -5
- package/dist/types/render/render-utils.d.ts +23 -1
- package/dist/types/setup/scenes/language.d.ts +3 -0
- package/dist/types/setup/scenes/types.d.ts +5 -0
- package/dist/types/setup/setup-version.d.ts +1 -1
- package/dist/types/setup/wizard.d.ts +1 -1
- package/dist/types/status-line/startup.d.ts +0 -15
- package/dist/types/terminal-capabilities.d.ts +1 -1
- package/dist/types/theme/symbols.d.ts +3 -1
- package/dist/types/theme/theme-class.d.ts +1 -0
- package/dist/types/theme/theme.d.ts +1 -1
- package/dist/types/theme/tui-adapters.d.ts +2 -0
- package/dist/types/thinking.d.ts +8 -6
- package/dist/types/tools/ast-grep.d.ts +2 -0
- package/dist/types/tools/eval.d.ts +2 -0
- package/dist/types/tools/find.d.ts +1 -1
- package/dist/types/tools/grouped-file-output.d.ts +100 -19
- package/dist/types/tools/hashline-format.d.ts +5 -0
- package/dist/types/tools/native-view.d.ts +2 -0
- package/dist/types/tools/output-meta.d.ts +27 -0
- package/dist/types/tools/read.d.ts +14 -4
- package/dist/types/tools/task.d.ts +4 -3
- package/dist/types/tools/wait.d.ts +2 -0
- package/dist/types/tui.d.ts +12 -0
- package/dist/types/utils.d.ts +4 -0
- package/package.json +9 -9
- package/src/app-keybindings.d.ts +5 -0
- package/src/app-keybindings.ts +5 -0
- package/src/apps/git/git-tui.ts +10 -17
- package/src/apps/git/sidebar.ts +21 -35
- package/src/apps/ps-top.ts +4 -12
- package/src/charts/chart-plan.ts +0 -29
- package/src/charts/table-data.d.ts +4 -2
- package/src/charts/table-data.ts +55 -6
- package/src/chat/bash-execution.d.ts +4 -1
- package/src/chat/bash-execution.ts +20 -9
- package/src/chat/chat-transcript-builder.ts +5 -2
- package/src/chat/eval-execution.d.ts +2 -0
- package/src/chat/eval-execution.ts +14 -7
- package/src/chat/execution-shared.d.ts +14 -8
- package/src/chat/execution-shared.ts +39 -18
- package/src/chat/figure-markdown.d.ts +2 -0
- package/src/chat/figure-markdown.ts +6 -4
- package/src/chat/read-tool-group.ts +56 -36
- package/src/chat/svg-figure.d.ts +5 -0
- package/src/chat/svg-figure.ts +55 -16
- package/src/chat/table-chart.d.ts +2 -0
- package/src/chat/table-chart.ts +19 -2
- package/src/chat/transcript-render-helpers.d.ts +11 -3
- package/src/chat/transcript-render-helpers.ts +70 -22
- package/src/chrome/dynamic-border.d.ts +6 -0
- package/src/chrome/dynamic-border.ts +28 -2
- package/src/chrome/transcript-status.d.ts +2 -2
- package/src/chrome/transcript-status.ts +5 -3
- package/src/components/editor.d.ts +15 -6
- package/src/components/editor.ts +123 -24
- package/src/components/image.d.ts +6 -0
- package/src/components/image.ts +13 -0
- package/src/components/key-value-list.ts +9 -9
- package/src/components/loader.d.ts +2 -0
- package/src/components/loader.ts +7 -0
- package/src/components/section.ts +1 -9
- package/src/components/table.ts +1 -9
- package/src/keybinding-matchers.d.ts +7 -0
- package/src/keybinding-matchers.ts +13 -0
- package/src/native/backend.ts +7 -3
- package/src/native/describe.d.ts +4 -2
- package/src/native/describe.ts +9 -4
- package/src/native/node.d.ts +2 -3
- package/src/native/node.ts +2 -3
- package/src/native/overlay.d.ts +42 -2
- package/src/native/overlay.ts +124 -16
- package/src/native/state.d.ts +4 -0
- package/src/native/state.ts +25 -5
- package/src/overlays/btw-history-panel.ts +106 -14
- package/src/overlays/btw-history.ts +65 -0
- package/src/overlays/btw-inject.ts +91 -0
- package/src/overlays/btw-panel.ts +53 -12
- package/src/overlays/extensions/extension-dashboard.ts +7 -8
- package/src/overlays/hook-editor.ts +6 -0
- package/src/overlays/jobs-panel.ts +82 -22
- package/src/overlays/login-dialog.ts +8 -26
- package/src/overlays/model-browser.ts +69 -10
- package/src/overlays/session-selector.ts +25 -5
- package/src/overlays/settings-defs.ts +2 -2
- package/src/overlays/settings-selector.ts +113 -11
- package/src/overlays/tree-selector.ts +83 -27
- package/src/overlays/usage-dashboard.ts +4 -6
- package/src/prompt/composer.ts +17 -5
- package/src/render/code-cell.ts +1 -1
- package/src/render/file-list.ts +4 -7
- package/src/render/render-utils.d.ts +23 -1
- package/src/render/render-utils.ts +38 -6
- package/src/setup/scenes/glyph.ts +1 -1
- package/src/setup/scenes/language.ts +122 -0
- package/src/setup/scenes/types.ts +6 -0
- package/src/setup/setup-version.ts +1 -1
- package/src/setup/wizard.ts +2 -0
- package/src/status-line/startup.ts +36 -70
- package/src/terminal-capabilities.d.ts +1 -1
- package/src/terminal-capabilities.ts +5 -0
- package/src/theme/symbols.d.ts +3 -1
- package/src/theme/symbols.ts +16 -9
- package/src/theme/theme-class.d.ts +1 -0
- package/src/theme/theme-class.ts +15 -3
- package/src/theme/theme.d.ts +1 -1
- package/src/theme/theme.ts +1 -0
- package/src/theme/tui-adapters.d.ts +2 -0
- package/src/theme/tui-adapters.ts +8 -3
- package/src/thinking.d.ts +8 -6
- package/src/thinking.ts +17 -11
- package/src/tmux.ts +1 -0
- package/src/tools/agent-tree.ts +13 -11
- package/src/tools/ask.ts +24 -37
- package/src/tools/ast-edit.ts +48 -93
- package/src/tools/ast-grep.d.ts +2 -0
- package/src/tools/ast-grep.ts +31 -67
- package/src/tools/bash.ts +7 -0
- package/src/tools/default-renderer.ts +1 -1
- package/src/tools/edit.ts +50 -43
- package/src/tools/eval.d.ts +2 -0
- package/src/tools/eval.ts +2 -0
- package/src/tools/fetch.ts +2 -1
- package/src/tools/find.d.ts +1 -1
- package/src/tools/find.ts +13 -5
- package/src/tools/github.ts +14 -46
- package/src/tools/glob.ts +2 -1
- package/src/tools/grep.ts +47 -277
- package/src/tools/grouped-file-output.d.ts +100 -19
- package/src/tools/grouped-file-output.ts +414 -103
- package/src/tools/hashline-format.d.ts +5 -0
- package/src/tools/hashline-format.ts +5 -0
- package/src/tools/json-tree.ts +1 -5
- package/src/tools/lsp.ts +210 -32
- package/src/tools/native-view.d.ts +2 -0
- package/src/tools/native-view.ts +11 -5
- package/src/tools/output-meta.d.ts +27 -0
- package/src/tools/output-meta.ts +68 -4
- package/src/tools/proc-render.ts +3 -3
- package/src/tools/read.d.ts +14 -4
- package/src/tools/read.ts +20 -5
- package/src/tools/task.d.ts +4 -3
- package/src/tools/task.ts +41 -81
- package/src/tools/vibe.ts +4 -4
- package/src/tools/wait.d.ts +2 -0
- package/src/tools/wait.ts +8 -5
- package/src/tools/write.ts +17 -27
- package/src/tools/yield.ts +1 -1
- package/src/tui.d.ts +12 -0
- package/src/tui.ts +91 -9
- package/src/utils.d.ts +4 -0
- package/src/utils.ts +10 -0
|
@@ -8,6 +8,7 @@ import type { AgentMessage } from "@linxiraos/pi-agent-core";
|
|
|
8
8
|
import { type Component } from "../tui.js";
|
|
9
9
|
import { type FileMentionMessage } from "./messages.js";
|
|
10
10
|
import { ToolActivityContainer } from "../chrome/tool-activity.js";
|
|
11
|
+
import type { MessageRenderer } from "./extension-types.js";
|
|
11
12
|
import { type TranscriptBlock } from "../chrome/transcript-container.js";
|
|
12
13
|
type CustomOrHookMessage = Extract<AgentMessage, {
|
|
13
14
|
role: "custom" | "hookMessage";
|
|
@@ -21,6 +22,13 @@ type AssistantAgentMessage = Extract<AgentMessage, {
|
|
|
21
22
|
* row per job.
|
|
22
23
|
*/
|
|
23
24
|
export declare function buildAsyncResultBlock(message: CustomOrHookMessage): ToolActivityContainer;
|
|
25
|
+
/**
|
|
26
|
+
* The `async-result` card for both transcript surfaces: a registered renderer owns it (#14131);
|
|
27
|
+
* the built-in block covers no renderer, a declining renderer, and a throwing one.
|
|
28
|
+
*/
|
|
29
|
+
export declare function buildAsyncResultComponent(message: CustomOrHookMessage, renderer: MessageRenderer | undefined): Component & {
|
|
30
|
+
setExpanded(expanded: boolean): void;
|
|
31
|
+
};
|
|
24
32
|
/**
|
|
25
33
|
* Render a `launch-completion` custom message (terminal supervised-process
|
|
26
34
|
* exits from the launch broker) as a transcript block of one compact
|
|
@@ -28,9 +36,9 @@ export declare function buildAsyncResultBlock(message: CustomOrHookMessage): Too
|
|
|
28
36
|
*/
|
|
29
37
|
export declare function buildLaunchCompletionBlock(message: CustomOrHookMessage): ToolActivityContainer;
|
|
30
38
|
/**
|
|
31
|
-
* Render
|
|
32
|
-
* `irc:relay`) as a
|
|
33
|
-
* expanded-state getter for the cached card.
|
|
39
|
+
* Render an IRC coordination custom message (`irc:incoming` / `irc:autoreply` /
|
|
40
|
+
* `irc:relay` / `irc:workpool`) as a tool-activity card. `getExpanded` supplies
|
|
41
|
+
* the live expanded-state getter for the cached card.
|
|
34
42
|
*/
|
|
35
43
|
export declare function buildIrcMessageCard(message: CustomOrHookMessage, getExpanded: () => boolean): Component;
|
|
36
44
|
/**
|
|
@@ -13,6 +13,12 @@ export declare class DynamicBorder implements Component {
|
|
|
13
13
|
#private;
|
|
14
14
|
constructor(color?: (str: string) => string);
|
|
15
15
|
invalidate(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Pre-styled text set into the rule after a short lead (`─── label ────`);
|
|
18
|
+
* undefined draws a plain rule. A function label is re-read every render,
|
|
19
|
+
* for live text such as a spinner.
|
|
20
|
+
*/
|
|
21
|
+
setLabel(label: string | (() => string) | undefined): void;
|
|
16
22
|
/** Native terminals draw their own chrome; a border rule describes nothing. */
|
|
17
23
|
describe(): NativeNode;
|
|
18
24
|
render(width: number): readonly string[];
|
|
@@ -3,10 +3,10 @@ import type { NativeNode } from "../native/node.js";
|
|
|
3
3
|
import { type ThemeColor } from "../theme/index.js";
|
|
4
4
|
import { TranscriptBlock } from "./transcript-container.js";
|
|
5
5
|
import { type NoticeTone } from "./transcript-notice.js";
|
|
6
|
-
/** One
|
|
6
|
+
/** One run of a status row's terminal line, in `color` unless the text is already styled. */
|
|
7
7
|
export interface TranscriptStatusPart {
|
|
8
8
|
readonly text: string;
|
|
9
|
-
readonly color
|
|
9
|
+
readonly color?: ThemeColor;
|
|
10
10
|
}
|
|
11
11
|
/** A status row in a native terminal: its {@link noticeRow}'s tone, icon and message. */
|
|
12
12
|
export interface TranscriptStatusNative {
|
|
@@ -157,12 +157,21 @@ export declare class Editor implements Component, Focusable {
|
|
|
157
157
|
* cursor. The host styles it (ANSI allowed). Re-evaluated on every render, so hosts can derive
|
|
158
158
|
* it from live state. */
|
|
159
159
|
placeholder?: () => string | undefined;
|
|
160
|
-
/** Whole-message
|
|
161
|
-
*
|
|
162
|
-
* autocomplete is open. A shown prediction replaces the {@link placeholder}; Tab or
|
|
163
|
-
* the rest without submitting.
|
|
164
|
-
*
|
|
165
|
-
|
|
160
|
+
/** Whole-message predictions for the next prompt, most likely first. The first one the single-line
|
|
161
|
+
* buffer is a strict prefix of is painted as ghost text after the cursor while the cursor sits at
|
|
162
|
+
* its end and no autocomplete is open. A shown prediction replaces the {@link placeholder}; Tab or
|
|
163
|
+
* Right inserts the rest without submitting. A buffer the user typed keeps the ghost even when it
|
|
164
|
+
* equals a shorter prediction; once Tab, Right, or the list has inserted one of two or more
|
|
165
|
+
* predictions, no ghost extends it to a longer one, and Tab instead opens a list of all of them
|
|
166
|
+
* that swaps the whole line, also without submitting. Each must be a single line. Re-evaluated on
|
|
167
|
+
* every render, so hosts can derive them from live state. */
|
|
168
|
+
predictions?: () => readonly string[] | undefined;
|
|
169
|
+
/** Called with the prediction's index in {@link predictions} after Tab or Right inserts the rest of
|
|
170
|
+
* a shown prediction, or the alternatives list swaps a different one into the buffer. */
|
|
171
|
+
onPredictionAccepted?: (index: number) => void;
|
|
172
|
+
/** Called for each frame that paints a prediction as ghost text: a terminal frame that draws at
|
|
173
|
+
* least one cell of it, or a native frame that carries it as the editor's ghost. */
|
|
174
|
+
onPredictionShown?: () => void;
|
|
166
175
|
constructor(theme: EditorTheme);
|
|
167
176
|
/** Return bounded editor content, cursor, and transient child state for debug inspection. */
|
|
168
177
|
debugState(): Record<string, unknown>;
|
|
@@ -207,6 +207,12 @@ export declare class Image implements Component {
|
|
|
207
207
|
/** Return source metadata without exposing the encoded image buffer. */
|
|
208
208
|
debugState(): Record<string, unknown>;
|
|
209
209
|
invalidate(): void;
|
|
210
|
+
/**
|
|
211
|
+
* Refit to a new row ceiling; a SIXEL reserves its rows until the off-thread
|
|
212
|
+
* encode lands. A demoted fallback keeps the height already drawn only
|
|
213
|
+
* within the new ceiling: the owner chose to shrink the block.
|
|
214
|
+
*/
|
|
215
|
+
setMaxHeightCells(maxHeightCells: number): void;
|
|
210
216
|
releaseRenderCaches(): void;
|
|
211
217
|
/**
|
|
212
218
|
* A native `image` backed by a content-addressed blob; the terminal fits
|
|
@@ -71,6 +71,8 @@ export declare class Loader extends Text {
|
|
|
71
71
|
stop(): void;
|
|
72
72
|
/** Lifecycle teardown: stop the animation timer. Idempotent. */
|
|
73
73
|
dispose(): void;
|
|
74
|
+
/** The current spinner frame and message as one styled line, for hosts that set it into their own chrome. */
|
|
75
|
+
inlineText(): string;
|
|
74
76
|
/** Install a lazy right-docked suffix for the spinner row (e.g. a styled
|
|
75
77
|
* session title). Re-evaluated every paint; dropped when the row leaves
|
|
76
78
|
* less than a two-cell gap. */
|
|
@@ -42,3 +42,10 @@ export declare function matchesAppFollowUp(data: string): boolean;
|
|
|
42
42
|
export declare function appApproveKeys(): readonly KeyId[];
|
|
43
43
|
/** Match the tool-approval key, recognizing modifier-tagged LF as Ctrl+Enter like {@link matchesAppFollowUp}. */
|
|
44
44
|
export declare function matchesAppApprove(data: string): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Effective /btw inject key (Alt+I by default). No fallback: it sends text into the main
|
|
47
|
+
* session, so a user who unbinds it gets no key at all.
|
|
48
|
+
*/
|
|
49
|
+
export declare function appBtwInjectKey(): KeyId | undefined;
|
|
50
|
+
/** Match the key that sends a /btw answer's steering prompt to the main session. */
|
|
51
|
+
export declare function matchesAppBtwInject(data: string): boolean;
|
|
@@ -56,7 +56,9 @@ export declare function list(items: readonly NativeChild[], p?: TspProps<"list">
|
|
|
56
56
|
/** Terminal-clocked elapsed counter: `age` ms already elapsed; `stopped` freezes it there. */
|
|
57
57
|
export declare function elapsed(age: number, stopped?: boolean): NativeNode;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
59
|
+
* The key names of one key id (`"ctrl+o"` → `["ctrl", "o"]`), as `kbd` and
|
|
60
|
+
* `button` `keys` take them. A literal `+` key survives (`"+"`, `"ctrl++"`).
|
|
61
61
|
*/
|
|
62
|
+
export declare function keyNames(key: string): string[];
|
|
63
|
+
/** Keycap for one key id ({@link keyNames}); the terminal draws platform glyphs. */
|
|
62
64
|
export declare function kbd(key: string, nodeKey?: string): NativeNode;
|
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
* reference contract as `render()`). A component without `describe` becomes a
|
|
11
11
|
* `rows` fallback node rendered through `render(cx.cols)`.
|
|
12
12
|
*
|
|
13
|
-
* See `packages/wire/src/tsp.ts` for the wire vocabulary
|
|
14
|
-
* the Tern
|
|
15
|
-
* Stencil repository, https://docs.stencil.so/tern/protocol/) for the spec.
|
|
13
|
+
* See `packages/wire/src/tsp.ts` for the wire vocabulary; the normative spec is
|
|
14
|
+
* the Tern Surface Protocol.
|
|
16
15
|
*/
|
|
17
16
|
import type { TspEvent, TspKind, TspProps, TspScrollBy, TspSpan } from "@linxiraos/pi-wire";
|
|
18
17
|
import type { Component } from "../tui.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Overlay chrome for `describe()`: root cards, key-hint footers,
|
|
3
|
-
* lists and annotation callouts.
|
|
2
|
+
* Overlay chrome for `describe()`: root cards, key-hint footers, buttons and
|
|
3
|
+
* segmented controls, selectable lists and annotation callouts.
|
|
4
4
|
*
|
|
5
5
|
* The overlay frame itself (glass, ring, placement) is the terminal's: the
|
|
6
6
|
* engine wraps every overlay-stack component in an `overlay` node. An overlay
|
|
@@ -53,11 +53,23 @@ export interface ActionButtonOptions {
|
|
|
53
53
|
readonly title?: string;
|
|
54
54
|
/** Target of an `open` action (URL or `file://` path). */
|
|
55
55
|
readonly href?: string;
|
|
56
|
+
/** Why the action can't run now: the button dims and a click sends nothing. */
|
|
57
|
+
readonly disabled?: string;
|
|
58
|
+
/** The button's work is running: a spinner leads the label. */
|
|
59
|
+
readonly busy?: boolean;
|
|
60
|
+
/** Icon beside the label (before it on a `button` node, after it on a row). */
|
|
61
|
+
readonly icon?: string;
|
|
56
62
|
}
|
|
57
63
|
/**
|
|
58
64
|
* A native button (role `zeta.btn`): a label plus an optional keycap. A click
|
|
59
65
|
* sends `act` back as an `action` event (or runs a terminal-local `open`/`copy`),
|
|
60
66
|
* which the component routes to the same code path as the key.
|
|
67
|
+
*
|
|
68
|
+
* A terminal that draws the `button` kind ({@link nativeButtons}) gets one
|
|
69
|
+
* (tone `accent` → variant `primary`, `error` → `danger`, `disabled` with its
|
|
70
|
+
* reason as the tooltip); older ones get the row their stylesheets draw by
|
|
71
|
+
* role. Both keep the role and tone the omp sheets' context rules key on; a
|
|
72
|
+
* disabled button's tone is `muted`.
|
|
61
73
|
*/
|
|
62
74
|
export declare function actionButton(label: string, act: string, options?: ActionButtonOptions): NativeNode;
|
|
63
75
|
/**
|
|
@@ -65,6 +77,34 @@ export declare function actionButton(label: string, act: string, options?: Actio
|
|
|
65
77
|
* `act` (default `close`), which the component routes to its Esc path.
|
|
66
78
|
*/
|
|
67
79
|
export declare function escCloseButton(act?: string, key?: string): NativeNode;
|
|
80
|
+
/** Options of an {@link iconButton}. */
|
|
81
|
+
export interface IconButtonOptions {
|
|
82
|
+
/** Sibling identity key; unkeyed buttons take their position. */
|
|
83
|
+
readonly key?: string;
|
|
84
|
+
/** Accessible name; defaults to the title. */
|
|
85
|
+
readonly aria?: string;
|
|
86
|
+
/** A toggle that is on (role `zeta.app.ibtn.set`). */
|
|
87
|
+
readonly on?: boolean;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* A quiet icon-only button (role `zeta.app.ibtn`, the kit's icon button) for an
|
|
91
|
+
* app head or toolbar: a `button` node where the terminal draws one
|
|
92
|
+
* ({@link nativeButtons}), else an `icon` with a click action.
|
|
93
|
+
*/
|
|
94
|
+
export declare function iconButton(name: string, act: string, title: string, options?: IconButtonOptions): NativeNode;
|
|
95
|
+
/**
|
|
96
|
+
* A quiet text button (role `zeta.app.qbtn`, the kit's quiet button) for a
|
|
97
|
+
* section head or toolbar, keyed by its action: a small quiet `button` where
|
|
98
|
+
* the terminal draws one ({@link nativeButtons}), else a row.
|
|
99
|
+
*/
|
|
100
|
+
export declare function quietButton(label: string, act: string, title: string): NativeNode;
|
|
101
|
+
/**
|
|
102
|
+
* A segmented control: `tabs` drawn as a well with a raised thumb on the
|
|
103
|
+
* active tab. A terminal that draws the `button` kind ({@link nativeButtons})
|
|
104
|
+
* draws `variant: "segmented"` too; older ones restyle the tabs by role
|
|
105
|
+
* (`zeta.app.seg`) or parent.
|
|
106
|
+
*/
|
|
107
|
+
export declare function segmentedTabs(p: TspProps<"tabs">, key: string): NativeNode;
|
|
68
108
|
/** A row of {@link actionButton}s (role `zeta.actions`); `null` entries become the spacer that end-aligns what follows. */
|
|
69
109
|
export declare function actionBar(buttons: readonly (NativeNode | null)[], key?: string): NativeNode;
|
|
70
110
|
/** Spans of an annotation callout: a dim `label:` then the note. */
|
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
export declare function isNativeRendering(): boolean;
|
|
3
3
|
/** Called by the native backend on surface open and close. */
|
|
4
4
|
export declare function setNativeRendering(on: boolean): void;
|
|
5
|
+
/** Whether omp's buttons go out as `button` nodes (see {@link setNativeButtons}). */
|
|
6
|
+
export declare function nativeButtons(): boolean;
|
|
7
|
+
/** Called by the native backend when it adopts a `hello` reply and when it stops. */
|
|
8
|
+
export declare function setNativeButtons(on: boolean): void;
|
|
5
9
|
/** Call `listener` whenever native rendering starts or stops; returns the unsubscribe. */
|
|
6
10
|
export declare function onNativeRenderingChange(listener: (on: boolean) => void): () => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ImageContent } from "@linxiraos/pi-ai";
|
|
2
2
|
import { type Component, type Focusable, Input } from "../index.js";
|
|
3
3
|
import { type BtwHistoryRecord } from "./btw-history.js";
|
|
4
|
+
import { type BtwInjectState } from "./btw-inject.js";
|
|
4
5
|
import type { SpaceHoldHandler } from "../space-hold.js";
|
|
5
6
|
import { type KeyId } from "../app-keybindings.js";
|
|
6
7
|
import type { NativeNode, NativeUiEvent } from "../native/node.js";
|
|
@@ -26,6 +27,18 @@ interface BtwHistoryPanelOptions {
|
|
|
26
27
|
* first. For a host with no inline panel to fall back to (Tern).
|
|
27
28
|
*/
|
|
28
29
|
escapeHides?: boolean;
|
|
30
|
+
/** `btw.inject` hooks, given only while it is on for this view. */
|
|
31
|
+
inject?: BtwHistoryInject;
|
|
32
|
+
}
|
|
33
|
+
interface BtwHistoryInject {
|
|
34
|
+
/**
|
|
35
|
+
* How a finished turn's closed `<inject>` block shows: apart from its prose while pending or
|
|
36
|
+
* sent, plain text when `undefined`. A streaming turn always shows its block.
|
|
37
|
+
*/
|
|
38
|
+
state: (record: BtwHistoryRecord, turnIndex: number) => BtwInjectState | undefined;
|
|
39
|
+
/** Whether the inject key may send the record's latest block now. */
|
|
40
|
+
canSend: (record: BtwHistoryRecord) => boolean;
|
|
41
|
+
send: (record: BtwHistoryRecord) => void;
|
|
29
42
|
}
|
|
30
43
|
/** Session-local side questions. Selecting or copying never promotes them into chat. */
|
|
31
44
|
export declare class BtwHistoryPanel implements Component, Focusable {
|
|
@@ -33,6 +46,8 @@ export declare class BtwHistoryPanel implements Component, Focusable {
|
|
|
33
46
|
constructor(options: BtwHistoryPanelOptions);
|
|
34
47
|
get focused(): boolean;
|
|
35
48
|
set focused(value: boolean);
|
|
49
|
+
/** Keep the follow-up input's cursor mode aligned so the hardware cursor (and IME preedit) lands on its caret. */
|
|
50
|
+
setUseTerminalCursor(useTerminalCursor: boolean): void;
|
|
36
51
|
update(records: readonly BtwHistoryRecord[]): void;
|
|
37
52
|
/** Visual confirmation that `c` copied this record's answer to the clipboard. */
|
|
38
53
|
markCopied(recordId: string, text: string): void;
|
|
@@ -20,5 +20,29 @@ export interface BtwHistoryRecord extends BtwHistoryTurn {
|
|
|
20
20
|
export declare function getBtwTopicLabel(record: BtwHistoryRecord): string;
|
|
21
21
|
export declare function getBtwLatestTurn(record: BtwHistoryRecord): BtwHistoryTurn;
|
|
22
22
|
export declare function getBtwTurns(record: BtwHistoryRecord): readonly BtwHistoryTurn[];
|
|
23
|
+
/** Identifies one turn of a topic, its latest by default: a follow-up gets a new key, so per-answer marks reset. */
|
|
24
|
+
export declare function getBtwTurnKey(record: BtwHistoryRecord, turnIndex?: number): string;
|
|
23
25
|
/** Copy the most recent nonblank answer, preserving its original whitespace. */
|
|
24
26
|
export declare function getBtwCopyText(record: BtwHistoryRecord): string | undefined;
|
|
27
|
+
/** An answer around its `<inject>` block: the steering prompt a side answer drafted for the main session. */
|
|
28
|
+
export interface BtwInjectParts {
|
|
29
|
+
before: string;
|
|
30
|
+
inject: string;
|
|
31
|
+
after: string;
|
|
32
|
+
/** False while no opener has a close: the block may still be streaming, so it runs to the end. */
|
|
33
|
+
closed: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Split an answer at its last closed `<inject>` block: the last opener that has a close
|
|
37
|
+
* after it, paired with the first close after it. A tag merely mentioned in prose,
|
|
38
|
+
* before or after the block, cannot capture it. Without a closed block, the last opener
|
|
39
|
+
* runs to the end (`closed: false`); display it only while the answer still streams.
|
|
40
|
+
* Linear: the last opener before the last close is the last one with any close after it.
|
|
41
|
+
*/
|
|
42
|
+
export declare function splitBtwInject(answer: string): BtwInjectParts | undefined;
|
|
43
|
+
/** A block's text as shown and as sent: control sequences stripped, tabs expanded, trimmed. */
|
|
44
|
+
export declare function formatBtwInjectText(inject: string): string;
|
|
45
|
+
/** The steering prompt to send, exactly as the block shows it; undefined while unclosed or blank. */
|
|
46
|
+
export declare function getBtwInject(answer: string): string | undefined;
|
|
47
|
+
/** A topic's steering prompt: only its latest turn's, once that turn completed. */
|
|
48
|
+
export declare function getBtwRecordInject(record: BtwHistoryRecord): string | undefined;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Component } from "../index.js";
|
|
2
|
+
import type { NativeNode } from "../native/node.js";
|
|
3
|
+
import { type BtwInjectParts } from "./btw-history.js";
|
|
4
|
+
/** Labels a steering prompt that has not been sent yet. */
|
|
5
|
+
export declare const BTW_INJECT_LABEL = "Inject into main session";
|
|
6
|
+
/** Labels a sent steering prompt. */
|
|
7
|
+
export declare const BTW_INJECTED_LABEL = "Injected into main session";
|
|
8
|
+
/** A displayed `<inject>` block: still sendable, or sent. Blocks in neither state render as plain text. */
|
|
9
|
+
export type BtwInjectState = "pending" | "sent";
|
|
10
|
+
/** Text-mode answer split around its `<inject>` block: prose, the railed block, prose, a blank row apart. */
|
|
11
|
+
export declare class BtwInjectAnswer implements Component {
|
|
12
|
+
#private;
|
|
13
|
+
constructor(parts: BtwInjectParts, sent: boolean);
|
|
14
|
+
render(width: number): string[];
|
|
15
|
+
invalidate(): void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The same answer for native surfaces. They wrap text themselves, so a per-row gutter cannot
|
|
19
|
+
* follow wrapped lines: a card toned like the rail (`user` pending, `success` sent) marks the
|
|
20
|
+
* whole block instead, with the label as its last row.
|
|
21
|
+
*/
|
|
22
|
+
export declare function describeBtwInjectAnswer(parts: BtwInjectParts, sent: boolean, stream: boolean): NativeNode;
|
|
@@ -8,6 +8,11 @@ interface BtwPanelComponentOptions {
|
|
|
8
8
|
tui: TUI;
|
|
9
9
|
canBranch?: () => boolean;
|
|
10
10
|
canFollowUp?: () => boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Given only while `btw.inject` is on: the answer's `<inject>` block shows apart from its
|
|
13
|
+
* prose, and the inject key (`app.btw.inject`) is offered while this returns true.
|
|
14
|
+
*/
|
|
15
|
+
canInject?: () => boolean;
|
|
11
16
|
}
|
|
12
17
|
export declare class BtwPanelComponent extends OverlayPanel {
|
|
13
18
|
#private;
|
|
@@ -17,6 +22,8 @@ export declare class BtwPanelComponent extends OverlayPanel {
|
|
|
17
22
|
markComplete(): void;
|
|
18
23
|
/** Visual confirmation that `c` copied the answer to the clipboard. */
|
|
19
24
|
markCopied(): void;
|
|
25
|
+
/** Shows the answer's steering prompt as sent (send arrows, green), or back to pending when a send failed. */
|
|
26
|
+
setInjected(injected: boolean): void;
|
|
20
27
|
/** Shows that the completed answer is being promoted into the chat session. */
|
|
21
28
|
markBranching(): void;
|
|
22
29
|
markAborted(): void;
|
|
@@ -85,4 +85,6 @@ export declare class HookEditorComponent extends OverlayPanel implements Focusab
|
|
|
85
85
|
* enhanced-paste routing falls back to the main prompt editor hidden behind the
|
|
86
86
|
* dialog (#2127 routing contract). */
|
|
87
87
|
pasteText(text: string): void;
|
|
88
|
+
/** Replace the draft, as Ctrl+R history search does for the main composer. */
|
|
89
|
+
setText(text: string): void;
|
|
88
90
|
}
|
|
@@ -8,6 +8,10 @@ export interface JobsPanelJob {
|
|
|
8
8
|
readonly type: string;
|
|
9
9
|
readonly status: "running" | "completed" | "failed" | "cancelled";
|
|
10
10
|
readonly label: string;
|
|
11
|
+
/** What the job is for, in the model's words; rows and the detail lead with it over a command `label`. */
|
|
12
|
+
readonly intent?: string;
|
|
13
|
+
/** One line on what a command does and when it ends, from the cheap model; the detail shows it under the intent. */
|
|
14
|
+
readonly caption?: string;
|
|
11
15
|
readonly startTime: number;
|
|
12
16
|
readonly endTime?: number;
|
|
13
17
|
/** Registry id of the agent that owns the job. */
|
|
@@ -7,7 +7,7 @@ import { type ThemeColor } from "../theme/theme.js";
|
|
|
7
7
|
import type { TspPickerColumn, TspPickerGroup, TspPickerItem, TspPickerMark, TspPickerProps } from "@linxiraos/pi-wire";
|
|
8
8
|
import type { NativeChild, NativeNode, NativeUiEvent } from "../native/node.js";
|
|
9
9
|
/** Canonical display ordering of built-in model roles. */
|
|
10
|
-
export type ModelRole = "default" | "smol" | "slow" | "vision" | "plan" | "commit" | "tiny" | "memory" | "task" | "advisor" | "widget" | "image" | "web" | "speech" | "dictation" | "judge";
|
|
10
|
+
export type ModelRole = "default" | "smol" | "slow" | "vision" | "plan" | "commit" | "tiny" | "memory" | "task" | "advisor" | "widget" | "image" | "web" | "speech" | "dictation" | "judge" | "taste";
|
|
11
11
|
export declare const MODEL_ROLE_IDS: ModelRole[];
|
|
12
12
|
export declare const CHAT_MODEL_ROLE_IDS: ModelRole[];
|
|
13
13
|
export declare const KIND_ROLE_IDS: ModelRole[];
|
|
@@ -149,10 +149,19 @@ export interface SessionSelectorOptions<T extends SessionSelectorEntry = Session
|
|
|
149
149
|
/** Persist the selected session's pin state (pin keys / the picker's Pin action). */
|
|
150
150
|
onSetPinned?: (session: T, pinned: boolean) => Promise<void>;
|
|
151
151
|
historyMatcher?: SessionHistoryMatcher;
|
|
152
|
+
/**
|
|
153
|
+
* Complete folder listing when the constructor's `sessions` are a preliminary
|
|
154
|
+
* subset; replaces them once it settles.
|
|
155
|
+
*/
|
|
156
|
+
completeSessions?: Promise<T[]>;
|
|
152
157
|
/** Loads sessions across all projects for the all-projects scope toggle (Tab). */
|
|
153
|
-
loadAllSessions?: () => Promise<T[]
|
|
158
|
+
loadAllSessions?: () => Promise<T[] | {
|
|
159
|
+
sessions: T[];
|
|
160
|
+
}>;
|
|
154
161
|
/** Preloaded all-projects list; cached so the first Tab toggle is instant. */
|
|
155
|
-
allSessions?: T[]
|
|
162
|
+
allSessions?: T[] | {
|
|
163
|
+
sessions: T[];
|
|
164
|
+
};
|
|
156
165
|
/**
|
|
157
166
|
* The host's resume model (project → workspace → conversation) and its
|
|
158
167
|
* pure view builder. When set, the native `picker` describes the resume
|
|
@@ -2,7 +2,7 @@ import type { StatusLineComponent } from "../status-line/component.js";
|
|
|
2
2
|
import type { StatusLineSession } from "../status-line/host.js";
|
|
3
3
|
import { type StatusLineStartupData } from "../status-line/startup.js";
|
|
4
4
|
import { type Terminal } from "../terminal.js";
|
|
5
|
-
import { type Component, type ResizeScrollbackMode, type TerminalFramePlan, type TerminalFrameProvider, TUI, type TUIOptions, type ViewportSize } from "../tui.js";
|
|
5
|
+
import { type Component, Container, type ResizeScrollbackMode, type TerminalFramePlan, type TerminalFrameProvider, TUI, type TUIOptions, type ViewportSize } from "../tui.js";
|
|
6
6
|
import type { NativeSurface, NativeSurfaceProvider } from "../native/node.js";
|
|
7
7
|
import { CustomEditor } from "./custom-editor.js";
|
|
8
8
|
import type { WordCompletionMethod } from "./word-completion.js";
|
|
@@ -61,6 +61,13 @@ export interface RuntimeChildrenOptions {
|
|
|
61
61
|
* to the roots below the transcript in render order.
|
|
62
62
|
*/
|
|
63
63
|
readonly nativeDock?: readonly Component[];
|
|
64
|
+
/**
|
|
65
|
+
* Below-transcript containers whose children continue `main` on a TSP
|
|
66
|
+
* terminal, one block each after the transcript's, instead of riding in the
|
|
67
|
+
* dock: output on its way into the transcript (shell runs deferred until the
|
|
68
|
+
* next prompt) reads as its tail, and keeps its block when it moves in.
|
|
69
|
+
*/
|
|
70
|
+
readonly nativeTail?: readonly Container[];
|
|
64
71
|
/**
|
|
65
72
|
* Below-transcript roots the user opens and closes (the editor surface that
|
|
66
73
|
* drafts and dialogs swap into, docked reports). Their rows never become
|
|
@@ -147,10 +154,11 @@ export declare class Composer implements TerminalFrameProvider, NativeSurfacePro
|
|
|
147
154
|
/**
|
|
148
155
|
* Describe the whole surface for a TSP terminal. `main` is the flowing
|
|
149
156
|
* document: the header (welcome, extras) and every transcript block as its
|
|
150
|
-
* own component child
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
157
|
+
* own component child, then the children of the
|
|
158
|
+
* {@link RuntimeChildrenOptions.nativeTail} roots. `dock` is the live chrome
|
|
159
|
+
* below the transcript in render order: pending messages, HUDs, the working
|
|
160
|
+
* row, the editor and the status line. There is no history/viewport split:
|
|
161
|
+
* retirement, resize replay and hover bands are ANSI concerns.
|
|
154
162
|
*/
|
|
155
163
|
describeSurface(): NativeSurface;
|
|
156
164
|
/**
|
|
@@ -49,6 +49,8 @@ export declare const PREVIEW_LIMITS: {
|
|
|
49
49
|
readonly EXPANDED_LINES: 12;
|
|
50
50
|
/** Items (files, results) shown in collapsed view */
|
|
51
51
|
readonly COLLAPSED_ITEMS: 8;
|
|
52
|
+
/** Definition, type-definition and implementation locations shown in collapsed view */
|
|
53
|
+
readonly LOCATIONS_COLLAPSED: 2;
|
|
52
54
|
/** Output preview lines in collapsed view */
|
|
53
55
|
readonly OUTPUT_COLLAPSED: 3;
|
|
54
56
|
/** Output preview lines in expanded view */
|
|
@@ -188,11 +190,31 @@ export declare function formatErrorMessage(message: string | undefined, theme: T
|
|
|
188
190
|
export declare function formatErrorDetail(message: string | undefined, theme: Theme): string;
|
|
189
191
|
/** Render a muted empty-state message with a warning icon. */
|
|
190
192
|
export declare function formatEmptyMessage(message: string, theme: Theme): string;
|
|
193
|
+
/**
|
|
194
|
+
* Color of a file's name, or a whole URL, in tool bodies: it keeps paths apart
|
|
195
|
+
* from the tool titles above them (bronze in titanium).
|
|
196
|
+
*/
|
|
197
|
+
export declare const FILE_NAME_COLOR = "customMessageLabel";
|
|
198
|
+
/**
|
|
199
|
+
* Where a display path's final segment (file or folder name) starts, past its
|
|
200
|
+
* last `/` or `\` separator; a trailing-slash directory keeps its slash on the
|
|
201
|
+
* name. Shared by the terminal ({@link formatStyledPath}) and Tern file rows.
|
|
202
|
+
*/
|
|
203
|
+
export declare function pathNameStart(filePath: string): number;
|
|
204
|
+
/**
|
|
205
|
+
* A file path in a tool body: the directory (with its trailing separator) dim,
|
|
206
|
+
* the final segment in {@link FILE_NAME_COLOR}. Tool headers keep paths in
|
|
207
|
+
* their plain subject color instead.
|
|
208
|
+
*/
|
|
209
|
+
export declare function formatStyledPath(filePath: string, theme: Theme): string;
|
|
191
210
|
/** Marker displayed in the gutter of a code frame. */
|
|
192
211
|
export type CodeFrameMarker = "" | " " | "*" | "+" | "-" | ">";
|
|
193
212
|
/** Format a code-frame row with a padded line-number gutter. */
|
|
194
213
|
export declare function formatCodeFrameLine(marker: CodeFrameMarker, lineNumber: string | number, content: string, lineNumberWidth: number): string;
|
|
195
|
-
/**
|
|
214
|
+
/**
|
|
215
|
+
* Status states supported by shared tool renderer icons. `done` is a deprecated
|
|
216
|
+
* alias of `success`, kept for extension renderers.
|
|
217
|
+
*/
|
|
196
218
|
export type ToolUIStatus = "success" | "done" | "error" | "warning" | "info" | "pending" | "running" | "aborted";
|
|
197
219
|
/** Semantic foreground colors used by tool renderer labels. */
|
|
198
220
|
export type ToolUIColor = "success" | "error" | "warning" | "accent" | "muted";
|
|
@@ -11,6 +11,8 @@ export interface StyledLine {
|
|
|
11
11
|
readonly text: string;
|
|
12
12
|
readonly color: ThemeColor;
|
|
13
13
|
}
|
|
14
|
+
/** Catalogue tag selectable during onboarding. */
|
|
15
|
+
export type SetupLanguage = "en" | "zh";
|
|
14
16
|
/** Terminal capabilities used by setup overlays and the startup splash. */
|
|
15
17
|
export interface SetupUiHost {
|
|
16
18
|
readonly ui: Pick<TUI, "showOverlay" | "setFocus" | "requestRender" | "invalidate"> & {
|
|
@@ -26,6 +28,8 @@ export interface SetupHost extends SetupUiHost {
|
|
|
26
28
|
readonly symbolPreset: SymbolPreset;
|
|
27
29
|
readonly colorBlindMode: boolean;
|
|
28
30
|
readonly disabledProviders: readonly string[];
|
|
31
|
+
/** Effective UI/settings language; the onboarding language scene starts here. */
|
|
32
|
+
readonly language: SetupLanguage;
|
|
29
33
|
readonly authStorage: AuthStorage;
|
|
30
34
|
readonly modelSource: ModelBrowserSource;
|
|
31
35
|
/** Available and catalog models of every kind; role chips resolve over all of them, rows list chat models. */
|
|
@@ -39,6 +43,7 @@ export interface SetupHost extends SetupUiHost {
|
|
|
39
43
|
refreshProvider(provider: string): Promise<void>;
|
|
40
44
|
saveComposerShape(shape: ComposerShape): Promise<void>;
|
|
41
45
|
saveSymbolPreset(preset: SymbolPreset): void;
|
|
46
|
+
saveLanguage(language: SetupLanguage): Promise<void> | void;
|
|
42
47
|
saveColorBlindMode(enabled: boolean): void;
|
|
43
48
|
saveTheme(mode: "dark" | "light", name: string): void;
|
|
44
49
|
captureBrowserSession(request: OAuthBrowserSessionRequest, signal?: AbortSignal): Promise<string>;
|
|
@@ -5,7 +5,7 @@ export type { SetupScene, SetupSceneController, SetupSceneHost, SetupSceneResult
|
|
|
5
5
|
export { runStartupSplash } from "./startup-splash.js";
|
|
6
6
|
export { CURRENT_SETUP_VERSION };
|
|
7
7
|
/** Ordered onboarding scenes with independent version gates. */
|
|
8
|
-
export declare const ALL_SCENES: readonly [SetupScene, SetupScene, SetupScene, SetupScene, SetupScene];
|
|
8
|
+
export declare const ALL_SCENES: readonly [SetupScene, SetupScene, SetupScene, SetupScene, SetupScene, SetupScene];
|
|
9
9
|
/** Environment and invocation gates for onboarding scene selection. */
|
|
10
10
|
export interface SetupSceneSelectionOptions {
|
|
11
11
|
resuming?: boolean;
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Status line for the speculative first frame, before any session exists.
|
|
3
|
-
*
|
|
4
|
-
* InteractiveMode persists {@link StatusLineStartupData} (settings plus the
|
|
5
|
-
* resolved default role model and status inputs); the next launch renders it
|
|
6
|
-
* through the real {@link StatusLineComponent} as a fresh, unnamed session at
|
|
7
|
-
* the live terminal width. Path and git branch are read live; context usage is
|
|
8
|
-
* reported unknown so the gauge shows the window without a percent.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts ignore
|
|
12
|
-
* const statusLine = createStartupStatusLine(cached.statusLine);
|
|
13
|
-
* statusLine.attachToEditor(editor, getComposerStyle(shape));
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
1
|
import type { ThinkingLevel } from "@linxiraos/pi-agent-core";
|
|
17
2
|
import type { Model } from "@linxiraos/pi-catalog/types";
|
|
18
3
|
import { StatusLineComponent } from "./component.js";
|
|
@@ -18,7 +18,7 @@ export declare enum NotifyProtocol {
|
|
|
18
18
|
Osc99 = "\u001B]99;;",
|
|
19
19
|
Osc9 = "\u001B]9;"
|
|
20
20
|
}
|
|
21
|
-
export type TerminalId = "kitty" | "ghostty" | "wezterm" | "iterm2" | "vscode" | "alacritty" | "warp" | "orca" | "otty" | "rio" | "tern" | "monstar" | "zetawork" | "base" | "trueColor";
|
|
21
|
+
export type TerminalId = "kitty" | "ghostty" | "wezterm" | "iterm2" | "vscode" | "alacritty" | "warp" | "orca" | "otty" | "rio" | "tern" | "monstar" | "rex" | "zetawork" | "base" | "trueColor";
|
|
22
22
|
/** Terminal capability details used for rendering and protocol selection. */
|
|
23
23
|
export declare class TerminalInfo {
|
|
24
24
|
readonly id: TerminalId;
|
|
@@ -2,7 +2,9 @@ export type SymbolPreset = "unicode" | "nerd" | "ascii";
|
|
|
2
2
|
/**
|
|
3
3
|
* All available symbol keys organized by category.
|
|
4
4
|
*/
|
|
5
|
-
export type SymbolKey = "status.success" | "status.error" | "status.warning" | "status.info" | "status.pending" | "status.disabled" | "status.enabled" | "status.running" | "status.shadowed" | "status.aborted"
|
|
5
|
+
export type SymbolKey = "status.success" | "status.error" | "status.warning" | "status.info" | "status.pending" | "status.disabled" | "status.enabled" | "status.running" | "status.shadowed" | "status.aborted"
|
|
6
|
+
/** @deprecated Alias of `status.success`; kept so extensions and theme overrides that name it keep working. */
|
|
7
|
+
| "status.done" | "nav.cursor" | "nav.selected" | "nav.expand" | "nav.collapse" | "nav.back" | "tree.branch" | "tree.last" | "tree.vertical" | "tree.horizontal" | "tree.hook" | "progress.filled" | "progress.empty" | "context.speculation" | "context.compaction" | "context.content" | "context.messages" | "context.buffer" | "context.free" | "boxRound.topLeft" | "boxRound.topRight" | "boxRound.bottomLeft" | "boxRound.bottomRight" | "boxRound.horizontal" | "boxRound.vertical" | "boxDotted.horizontal" | "boxDotted.vertical" | "boxSharp.topLeft" | "boxSharp.topRight" | "boxSharp.bottomLeft" | "boxSharp.bottomRight" | "boxSharp.horizontal" | "boxSharp.vertical" | "boxSharp.cross" | "boxSharp.teeDown" | "boxSharp.teeUp" | "boxSharp.teeRight" | "boxSharp.teeLeft" | "sep.powerline" | "sep.powerlineThin" | "sep.powerlineLeft" | "sep.powerlineRight" | "sep.powerlineThinLeft" | "sep.powerlineThinRight" | "sep.powerlineCapLeft" | "sep.block" | "sep.space" | "sep.asciiLeft" | "sep.asciiRight" | "sep.dot" | "sep.slash" | "sep.pipe" | "icon.model" | "icon.plan" | "icon.prewalk" | "icon.goal" | "icon.pause" | "icon.loop" | "icon.folder" | "icon.worktree" | "icon.search" | "icon.scratchFolder" | "icon.file" | "icon.git" | "icon.branch" | "icon.pr" | "icon.pin" | "icon.tokens" | "icon.context" | "icon.cost" | "icon.subscription" | "icon.advisor" | "icon.advisorClosed" | "icon.time" | "icon.omp" | "icon.ghost" | "icon.agents" | "icon.job" | "icon.cache" | "icon.cacheMiss" | "icon.input" | "icon.output" | "icon.throughput" | "icon.intelligence" | "icon.host" | "icon.session" | "icon.package" | "icon.warning" | "icon.rewind" | "icon.auto" | "icon.fast" | "icon.extensionSkill" | "icon.extensionTool" | "icon.extensionSlashCommand" | "icon.extensionMcp" | "icon.extensionRule" | "icon.extensionHook" | "icon.extensionPrompt" | "icon.extensionContextFile" | "icon.extensionInstruction" | "icon.vimNormal" | "icon.vimInsert" | "icon.vimVisual" | "icon.vimVisualLine" | "icon.vimReplace" | "cmd.action" | "cmd.prompt" | "cmd.extension" | "cmd.settings" | "cmd.gear" | "cmd.shield" | "cmd.wave" | "cmd.compass" | "cmd.inbox" | "cmd.swap" | "cmd.expand" | "cmd.computer" | "cmd.eye" | "cmd.todo" | "cmd.stats" | "cmd.news" | "cmd.keyboard" | "cmd.export" | "cmd.clipboard" | "cmd.share" | "cmd.broadcast" | "cmd.globe" | "cmd.copy" | "cmd.plus" | "cmd.restart" | "cmd.eraser" | "cmd.trash" | "cmd.compress" | "cmd.vibrate" | "cmd.handoff" | "cmd.history" | "cmd.question" | "cmd.rocket" | "cmd.stethoscope" | "cmd.redo" | "cmd.bug" | "cmd.memory" | "cmd.pencil" | "cmd.folderMove" | "cmd.folderPlus" | "cmd.folderMinus" | "cmd.hammer" | "cmd.power" | "cmd.cart" | "icon.mic" | "icon.camera" | "thinking.minimal" | "thinking.low" | "thinking.medium" | "thinking.high" | "thinking.xhigh" | "thinking.max" | "thinking.autoPending" | "checkbox.checked" | "checkbox.unchecked" | "radio.selected" | "radio.unselected" | "format.bullet" | "format.dash" | "format.bracketLeft" | "format.bracketRight" | "md.quoteBorder" | "md.hrChar" | "md.bullet" | "md.colorSwatch" | "advisor.rail" | "skill.rail" | "btw.rail" | "lang.default" | "lang.typescript" | "lang.javascript" | "lang.python" | "lang.rust" | "lang.go" | "lang.java" | "lang.c" | "lang.cpp" | "lang.csharp" | "lang.ruby" | "lang.julia" | "lang.php" | "lang.swift" | "lang.kotlin" | "lang.shell" | "lang.html" | "lang.css" | "lang.json" | "lang.yaml" | "lang.markdown" | "lang.sql" | "lang.docker" | "lang.lua" | "lang.text" | "lang.env" | "lang.toml" | "lang.xml" | "lang.ini" | "lang.conf" | "lang.log" | "lang.csv" | "lang.tsv" | "lang.image" | "lang.pdf" | "lang.archive" | "lang.binary" | "chip.image" | "chip.video" | "chip.paste" | "tab.appearance" | "tab.model" | "tab.interaction" | "tab.context" | "tab.files" | "tab.shell" | "tab.tools" | "tab.memory" | "tab.tasks" | "tab.providers" | "tool.write" | "tool.edit" | "tool.bash" | "tool.ssh" | "tool.lsp" | "tool.gh" | "tool.webSearch" | "tool.exa" | "tool.browser" | "tool.eval" | "tool.debug" | "tool.mcp" | "tool.job" | "tool.launch" | "tool.task" | "tool.todo" | "tool.memory" | "tool.ask" | "tool.resolve" | "tool.review" | "tool.goal" | "tool.irc" | "tool.delete" | "tool.move" | "key.ctrl" | "key.ctrlMac" | "key.shift" | "key.alt" | "key.altMac" | "key.super" | "key.superMac" | "key.joiner" | "key.enter" | "key.esc" | "key.tab" | "key.backspace" | "key.delete" | "key.space" | "key.up" | "key.down" | "key.left" | "key.right";
|
|
6
8
|
export type SymbolMap = Record<SymbolKey, string>;
|
|
7
9
|
/**
|
|
8
10
|
* Icon vocabulary for slash-command autocomplete type indicators. Each name
|