restty 0.1.29 → 0.1.31

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/dist/internal.js CHANGED
@@ -100,7 +100,7 @@ import {
100
100
  updateGridState,
101
101
  updateImePosition,
102
102
  updateSelection
103
- } from "./chunk-p9e8t0ks.js";
103
+ } from "./chunk-2dwtwwy6.js";
104
104
  export {
105
105
  updateSelection,
106
106
  updateImePosition,
package/dist/restty.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  isBuiltinThemeName,
9
9
  listBuiltinThemeNames,
10
10
  parseGhosttyTheme
11
- } from "./chunk-p9e8t0ks.js";
11
+ } from "./chunk-2dwtwwy6.js";
12
12
  export {
13
13
  parseGhosttyTheme,
14
14
  listBuiltinThemeNames,
@@ -68,6 +68,7 @@ type CreateRuntimeAppApiOptions = {
68
68
  runBeforeRenderOutputHook: (text: string, source: string) => string | null;
69
69
  getSelectionText: () => string;
70
70
  initialPreferredRenderer: PreferredRenderer;
71
+ maxScrollbackBytes?: number;
71
72
  maxScrollback?: number;
72
73
  CURSOR_BLINK_MS: number;
73
74
  RESIZE_ACTIVE_MS: number;
@@ -0,0 +1,9 @@
1
+ export declare const DEFAULT_MAX_SCROLLBACK_BYTES = 10000000;
2
+ export declare const MAX_MAX_SCROLLBACK_BYTES = 256000000;
3
+ type MaxScrollbackOptions = {
4
+ maxScrollbackBytes?: number;
5
+ maxScrollback?: number;
6
+ };
7
+ export declare function normalizeMaxScrollbackBytes(value: number | undefined): number;
8
+ export declare function resolveMaxScrollbackBytes(options: MaxScrollbackOptions): number;
9
+ export {};
@@ -256,7 +256,15 @@ export type ResttyAppOptions = {
256
256
  beforeRenderOutput?: (payload: ResttyAppInputPayload) => string | null | void;
257
257
  /** Optional render-stage shader chain. */
258
258
  shaderStages?: ResttyShaderStage[];
259
- /** Maximum scrollback buffer size in bytes passed to the WASM terminal (default 2000). */
259
+ /**
260
+ * Maximum scrollback buffer size in bytes passed to the WASM terminal.
261
+ * Default is 10_000_000 (10MB).
262
+ */
263
+ maxScrollbackBytes?: number;
264
+ /**
265
+ * Deprecated alias for maxScrollbackBytes.
266
+ * If both are set, maxScrollbackBytes takes precedence.
267
+ */
260
268
  maxScrollback?: number;
261
269
  };
262
270
  /**