@wterm/core 0.5.1 → 0.5.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.
package/README.md CHANGED
@@ -120,10 +120,31 @@ OSC 8 hyperlink metadata is optional so third-party `TerminalCore` implementatio
120
120
 
121
121
  Wide CJK, fullwidth, and emoji codepoints occupy a leading cell with `width: 2` and a continuation with `width: 0`. Character insertion (`ICH`) and deletion (`DCH`) shift the requested number of columns from the cursor, replacing split wide characters with background-colored spaces. With automatic wrapping disabled, a wide character that cannot fit at the right edge leaves the row unchanged. A one-column terminal consumes wide characters as spaces.
122
122
 
123
+ `CellData.underlineStyle` optionally selects `"none"`, `"single"`, `"double"`,
124
+ `"curly"`, `"dotted"`, or `"dashed"`. It takes precedence over the underline flag
125
+ (`0x08`); when omitted, that flag selects a single underline. `underlineRgb`
126
+ is an optional resolved `0xRRGGBB` color, including `0` for black. Without it,
127
+ the underline follows the displayed foreground, including reverse video.
128
+ Ghostty supplies both fields for viewport and scrollback cells. The built-in
129
+ core and older Ghostty binaries keep flag-based single underlines. Custom cores
130
+ can adopt either optional field; `UnderlineStyle` is exported by `@wterm/core`.
131
+
123
132
  `CellData.spacerHead` optionally identifies an empty right-edge cell left when a wide glyph wraps to the next row. Ghostty supplies it in live rows and history. Text extraction should omit these cells and width-zero continuations while preserving real spaces; an absent flag does not identify a spacer.
124
133
 
125
134
  The built-in core supports ASCII (`B`), British (`A`), and DEC Special Graphics (`0`) designations for G0–G3. For example, `\x1b(0lqqk\x1b(B` produces `┌──┐`. SI/SO select G0/G1; `ESC n/o` select G2/G3, and `ESC N/O` select them for one character. Cursor save/restore preserves character-set state. Mapping affects ASCII characters only, so UTF-8 text remains intact.
126
135
 
136
+ `TerminalCore.getColorOverrides?()` returns a caller-owned
137
+ `TerminalColorOverrides` snapshot with optional `foreground`, `background`,
138
+ and `cursor` fields, each a 24-bit `0xRRGGBB` value. Zero is black. Omit a field
139
+ to use the host's current CSS theme. These are application overrides, not
140
+ configured theme colors, and reading them does not consume them. A missing
141
+ method is equivalent to an empty snapshot.
142
+
143
+ Ghostty supplies OSC 10/11/12 overrides and clears each with OSC 110/111/112.
144
+ Its native color state survives resize, screen switches, SGR 0, and RIS;
145
+ reinitialization clears it. Older WASM binaries and uninitialized/disposed
146
+ Ghostty cores return an empty snapshot. The built-in core omits this method.
147
+
127
148
  `CursorState.shape` (`"block"`, `"bar"`, or `"underline"`) and `blinking` are
128
149
  optional for custom cores. The built-in and Ghostty cores expose both fields
129
150
  from DECSCUSR (`CSI Ps SP q`) and cursor blink mode (`CSI ? 12 h/l`). Missing
@@ -196,6 +217,45 @@ called. Connecting to a different URL also discards unsent messages. Repeated
196
217
  replaced sockets are ignored. These are client-side send bounds, not server
197
218
  acknowledgments, PTY flow control, or session recovery.
198
219
 
220
+ ## Host theme colors
221
+
222
+ `TerminalThemeColors` describes opaque 24-bit integer `foreground`, `background`,
223
+ and `cursor` colors plus exactly 16 `palette` entries. The optional
224
+ `TerminalCore.setThemeColors(colors)` updates host defaults without parsing bytes,
225
+ resetting state, or replacing application overrides. Ghostty implements this hook;
226
+ other cores remain compatible without it. Use `WTerm.setThemeColors()` for an
227
+ attached browser terminal so CSS and live/retained rendering update together.
228
+
229
+ ## Clipboard write requests
230
+
231
+ `TerminalCore.getClipboardWrite?()` consumes the latest application request. `null` means none and `""` requests a clear. Ghostty implements this optional effect; older/custom and built-in cores may omit it. Hosts own acceptance and browser permissions; there is no clipboard-read API or automatic clipboard access.
232
+
233
+ ## Working directories
234
+
235
+ The optional `TerminalCore.getWorkingDirectory()` consumes the latest OSC 7
236
+ URI, returning `null` when unchanged or unsupported and `""` when reset.
237
+ Ghostty retains up to 2047 UTF-8 bytes, coalesces pending reports, and clears the
238
+ value on RIS. Treat the URI as untrusted metadata; it does not establish a local
239
+ directory or authenticated host. WTerm forwards it through `onWorkingDirectory`.
240
+
241
+ ## Shell integration state
242
+
243
+ `ShellIntegrationState` contains `phase` (`unknown`, `prompt`, `input`, `running`,
244
+ or `complete`) and `exitCode` (`number | null`). The optional
245
+ `TerminalCore.getShellIntegrationState()` consumes the latest state change;
246
+ `null` means unchanged or unsupported. Ghostty implements this hook for OSC 133.
247
+ The last valid or absent completion code is retained across prompt redraws until
248
+ command start or terminal reset. This is bounded current state, not a command
249
+ history. Returned snapshots belong to the caller. Cores that omit the hook
250
+ remain compatible; WTerm forwards new snapshots through `onShellIntegration`.
251
+
252
+ The optional `findPrompt(row, direction)` returns the preceding (`-1`) or
253
+ following (`1`) prompt's retained row, or `null` when none is available. Row zero
254
+ is the oldest retained row. The origin must be in the retained buffer; forward
255
+ navigation skips the current prompt's continuation rows. Ghostty uses its
256
+ retained OSC 133 metadata, follows reflow and pruning, and returns no prompt on
257
+ the alternate screen. The hook neither moves the cursor nor consumes shell state.
258
+
199
259
  ## License
200
260
 
201
261
  Apache-2.0
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type { CellData, CursorShape, CursorState, GraphicsResourceState, HyperlinkResourceState, MouseEncoding, TerminalGraphicsState, TerminalImageData, TerminalImageDescriptor, TerminalImagePlacement, TerminalResourceState, TerminalRowMetadata, TerminalPosition, TrackedTerminalPosition, UnhandledSequence, TerminalCore, } from "./terminal-core.js";
1
+ export type { CellData, UnderlineStyle, CursorShape, CursorState, TerminalColorOverrides, TerminalThemeColors, ShellIntegrationState, GraphicsResourceState, HyperlinkResourceState, MouseEncoding, TerminalGraphicsState, TerminalImageData, TerminalImageDescriptor, TerminalImagePlacement, TerminalResourceState, TerminalRowMetadata, TerminalPosition, TrackedTerminalPosition, UnhandledSequence, TerminalCore, } from "./terminal-core.js";
2
2
  export { WasmBridge } from "./wasm-bridge.js";
3
3
  export { WebSocketTransport } from "./transport.js";
4
4
  export type { WebSocketTransportOptions } from "./transport.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,QAAQ,EACR,WAAW,EACX,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,iBAAiB,EACjB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,YAAY,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,QAAQ,EACR,cAAc,EACd,WAAW,EACX,WAAW,EACX,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,iBAAiB,EACjB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,YAAY,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,3 +1,4 @@
1
+ export type UnderlineStyle = "none" | "single" | "double" | "curly" | "dotted" | "dashed";
1
2
  export interface CellData {
2
3
  char: number;
3
4
  /** Full grapheme cluster. Present when the cell contains more than one code point. */
@@ -13,6 +14,10 @@ export interface CellData {
13
14
  fgRgb?: number;
14
15
  /** Resolved 24-bit background color (0xRRGGBB). Present when the core provides true color. */
15
16
  bgRgb?: number;
17
+ /** Underline variant. When omitted, flags bit 0x08 selects a single underline. */
18
+ underlineStyle?: UnderlineStyle;
19
+ /** Resolved underline color (0xRRGGBB). Omitted to follow the displayed foreground. */
20
+ underlineRgb?: number;
16
21
  /** Resolved OSC 8 URI for this cell. */
17
22
  linkUri?: string;
18
23
  /** Explicit OSC 8 `id=` parameter, when provided. */
@@ -21,6 +26,19 @@ export interface CellData {
21
26
  linkKey?: string;
22
27
  }
23
28
  export type CursorShape = "block" | "underline" | "bar";
29
+ /** Application overrides of host theme defaults, as 24-bit RGB (0xRRGGBB). */
30
+ export interface TerminalColorOverrides {
31
+ /** Omitted after reset or when unset, allowing the host theme to supply it. */
32
+ foreground?: number;
33
+ background?: number;
34
+ cursor?: number;
35
+ }
36
+ /** Latest shell-reported OSC 133 state, not a log of command executions. */
37
+ export interface ShellIntegrationState {
38
+ phase: "unknown" | "prompt" | "input" | "running" | "complete";
39
+ /** Last OSC 133 D status, cleared by the next C marker or terminal reset. */
40
+ exitCode: number | null;
41
+ }
24
42
  /** Soft-wrap relationships for one physical row of the active screen. */
25
43
  export interface TerminalRowMetadata {
26
44
  /** The following row continues this row without an explicit newline. */
@@ -113,6 +131,13 @@ export interface TerminalResourceState {
113
131
  hyperlinks?: HyperlinkResourceState;
114
132
  graphics?: GraphicsResourceState;
115
133
  }
134
+ /** Host theme defaults: opaque 24-bit RGB values and exactly 16 ANSI colors. */
135
+ export interface TerminalThemeColors {
136
+ foreground: number;
137
+ background: number;
138
+ cursor: number;
139
+ palette: readonly number[];
140
+ }
116
141
  /**
117
142
  * Abstract terminal emulation core. Both the built-in Zig WASM core
118
143
  * (`WasmBridge`) and alternative backends (e.g. `@wterm/ghostty`) implement
@@ -121,6 +146,8 @@ export interface TerminalResourceState {
121
146
  export interface TerminalCore {
122
147
  init(cols: number, rows: number): void;
123
148
  resize(cols: number, rows: number): void;
149
+ /** Update host defaults without parsing input or replacing application overrides. */
150
+ setThemeColors?(colors: TerminalThemeColors): void;
124
151
  writeString(str: string, afterChunk?: () => void): void;
125
152
  writeRaw(data: Uint8Array, afterChunk?: () => void): void;
126
153
  getCell(row: number, col: number): CellData;
@@ -134,6 +161,8 @@ export interface TerminalCore {
134
161
  /** Optional tracked cell location. Null for invalid positions or exhausted capacity. */
135
162
  trackPosition?(position: TerminalPosition): TrackedTerminalPosition | null;
136
163
  getCursor(): CursorState;
164
+ /** Caller-owned snapshot. Missing fields follow the host's current CSS theme. */
165
+ getColorOverrides?(): TerminalColorOverrides;
137
166
  cursorKeysApp(): boolean;
138
167
  bracketedPaste(): boolean;
139
168
  usingAltScreen(): boolean;
@@ -147,8 +176,14 @@ export interface TerminalCore {
147
176
  synchronizedOutputGeneration?(): number;
148
177
  kittyKeyboardFlags?(): number;
149
178
  getTitle(): string | null;
179
+ /** Consume the latest OSC 7 URI. Empty means reset; null means unchanged or unsupported. Treat as untrusted metadata. */
180
+ getWorkingDirectory?(): string | null;
150
181
  /** Read and clear the number of pending BEL controls. Optional for custom cores. */
151
182
  getBellCount?(): number;
183
+ /** Consume the latest application clipboard-write request. Empty text means clear; null means none. Hosts choose whether to accept it. */
184
+ getClipboardWrite?(): string | null;
185
+ /** Consume the latest shell-state change. Null means no change or unsupported. */
186
+ getShellIntegrationState?(): ShellIntegrationState | null;
152
187
  getResponse(): string | null;
153
188
  getResourceState?(): TerminalResourceState;
154
189
  /** Returns a caller-owned snapshot for the active screen, or no state. */
@@ -161,6 +196,8 @@ export interface TerminalCore {
161
196
  getScrollbackLineLen(offset: number): number;
162
197
  /** Offset zero is the newest history row. Null means unavailable or out of range. */
163
198
  getScrollbackRowMetadata?(offset: number): TerminalRowMetadata | null;
199
+ /** Find the preceding/following prompt start from a retained row. Null if unavailable. */
200
+ findPrompt?(row: number, direction: -1 | 1): number | null;
164
201
  getUnhandledSequences(): UnhandledSequence[];
165
202
  }
166
203
  //# sourceMappingURL=terminal-core.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"terminal-core.d.ts","sourceRoot":"","sources":["../src/terminal-core.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,sFAAsF;IACtF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iFAAiF;IACjF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8FAA8F;IAC9F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8FAA8F;IAC9F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,KAAK,CAAC;AAExD,yEAAyE;AACzE,MAAM,WAAW,mBAAmB;IAClC,wEAAwE;IACxE,WAAW,EAAE,OAAO,CAAC;IACrB,2EAA2E;IAC3E,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,kEAAkE;AAClE,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wFAAwF;AACxF,MAAM,WAAW,uBAAuB;IACtC,6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C,IAAI,MAAM,CAAC;IACvC,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzD,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7C,qFAAqF;IACrF,wBAAwB,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,mBAAmB,GAAG,IAAI,CAAC;IACtE,0FAA0F;IAC1F,UAAU,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC;IAG3D,qBAAqB,IAAI,iBAAiB,EAAE,CAAC;CAC9C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wterm/core",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Headless terminal emulator core for the web — WASM bridge and WebSocket transport",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",