@opentui/core 0.6.2 → 0.6.4

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/types.d.ts CHANGED
@@ -81,10 +81,41 @@ export interface TerminalCapabilities {
81
81
  notifications: boolean;
82
82
  explicit_cursor_positioning: boolean;
83
83
  remote: boolean;
84
+ /** The terminal answered the OSC 7501 program status query. */
85
+ program_status: boolean;
84
86
  multiplexer: TerminalMultiplexer;
85
87
  image_protocol?: ImageRenderProtocol;
86
88
  terminal: TerminalInfo;
87
89
  }
90
+ export type ProgramStatusKind = "permission" | "question" | "auth";
91
+ interface ProgramStatusRecord {
92
+ /** Record path such as `build/test`. Omit it to address the root record. */
93
+ id?: string;
94
+ /** Stable program identifier such as `cargo` or `terraform`. */
95
+ app?: string;
96
+ /** Short label for the record. */
97
+ title?: string;
98
+ /** One line that says what the record is doing, waiting for, or finished. */
99
+ message?: string;
100
+ }
101
+ /**
102
+ * One OSC 7501 Program Status Protocol report. Each report replaces its record:
103
+ * a field missing from the report is missing from the record afterwards.
104
+ * `clear` removes the addressed record and every record beneath it.
105
+ */
106
+ export type ProgramStatus = (ProgramStatusRecord & {
107
+ state: "idle" | "done" | "error";
108
+ }) | (ProgramStatusRecord & {
109
+ state: "working";
110
+ progress?: number;
111
+ }) | (ProgramStatusRecord & {
112
+ state: "blocked";
113
+ kind?: ProgramStatusKind;
114
+ progress?: number;
115
+ }) | {
116
+ state: "clear";
117
+ id?: string;
118
+ };
88
119
  export interface RendererEvents {
89
120
  resize: (width: number, height: number) => void;
90
121
  key: (data: Buffer) => void;
@@ -191,3 +222,4 @@ export interface CapturedFrame {
191
222
  cursor: [number, number];
192
223
  lines: CapturedLine[];
193
224
  }
225
+ export {};
package/yoga.bun.js CHANGED
@@ -95,7 +95,7 @@ import {
95
95
  Config2,
96
96
  Node2,
97
97
  yoga_default
98
- } from "./chunk-bun-b3p27aka.js";
98
+ } from "./chunk-bun-e2gttx65.js";
99
99
  export {
100
100
  ALIGN_AUTO2 as ALIGN_AUTO,
101
101
  ALIGN_BASELINE2 as ALIGN_BASELINE,
package/yoga.js CHANGED
@@ -94,7 +94,7 @@ import {
94
94
  Config2,
95
95
  Node2,
96
96
  yoga_default
97
- } from "./chunk-node-jt82vcf9.js";
97
+ } from "./chunk-node-6rc18den.js";
98
98
  export {
99
99
  ALIGN_AUTO2 as ALIGN_AUTO,
100
100
  ALIGN_BASELINE2 as ALIGN_BASELINE,
package/zig.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type FFICallbackInstance, type Pointer, type PointerInput } from "./platform/ffi.js";
2
- import { type CursorStyle, type CursorStyleOptions, type SelectionOccupancy, type SelectionBehavior, type DebugOverlayCorner, type WidthMethod, type TerminalCapabilities, type Highlight, type LineInfo, type MousePointerStyle, type ImageRenderProtocol } from "./types.js";
2
+ import { type CursorStyle, type CursorStyleOptions, type SelectionOccupancy, type SelectionBehavior, type DebugOverlayCorner, type WidthMethod, type TerminalCapabilities, type Highlight, type LineInfo, type MousePointerStyle, type ImageRenderProtocol, type ProgramStatus } from "./types.js";
3
3
  export type { LineInfo, AllocatorStats, AudioStreamCreateOptions, BuildOptions, NativeAudioCaptureStats, NativeAudioStreamStats, NativeRenderStats, };
4
4
  import { RGBA } from "./lib/RGBA.js";
5
5
  import { type StyledText } from "./lib/styled-text.js";
@@ -619,6 +619,9 @@ export type NativeSessionControl = {
619
619
  } | {
620
620
  kind: "kitty-keyboard-flags";
621
621
  flags: number;
622
+ } | {
623
+ kind: "program-status";
624
+ status: ProgramStatus;
622
625
  } | {
623
626
  kind: "restore-modes" | "query-pixel-resolution" | "query-theme-colors" | "reset-background";
624
627
  };