@h-rig/cli 0.0.6-alpha.85 → 0.0.6-alpha.86
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/bin/rig.js +9 -1018
- package/dist/src/app-opentui/bootstrap.js +9 -1018
- package/dist/src/app-opentui/index.js +7 -1024
- package/dist/src/app-opentui/react/App.js +2 -969
- package/dist/src/app-opentui/react/Backdrop.js +2 -9
- package/dist/src/app-opentui/react/ChromeHost.js +0 -1039
- package/dist/src/app-opentui/react/launch.js +2 -969
- package/dist/src/app-opentui/render/constants.d.ts +0 -1
- package/dist/src/app-opentui/render/constants.js +0 -2
- package/dist/src/app-opentui/render/graphics.js +2 -9
- package/dist/src/app-opentui/runtime.js +8 -1025
- package/package.json +8 -8
- package/dist/src/app-opentui/render/image-visual-layer-worker.d.ts +0 -1
- package/dist/src/app-opentui/render/image-visual-layer-worker.js +0 -1084
- package/dist/src/app-opentui/render/image-visual-layer.d.ts +0 -109
- package/dist/src/app-opentui/render/image-visual-layer.js +0 -1068
- package/dist/src/app-opentui/terminal-capabilities.d.ts +0 -7
- package/dist/src/app-opentui/terminal-capabilities.js +0 -15
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import type { StageLayout } from "../layout";
|
|
2
|
-
import type { AppSceneId, AppScenePanel } from "../types";
|
|
3
|
-
export type PixelSize = {
|
|
4
|
-
readonly width: number;
|
|
5
|
-
readonly height: number;
|
|
6
|
-
};
|
|
7
|
-
export type ImageTransport = "rgba-zlib" | "png";
|
|
8
|
-
export type ImageVisualLayerKind = "full" | "background" | "panels" | "split" | "panel-patches" | "panel-chrome";
|
|
9
|
-
export type ImageVisualRenderRequest = {
|
|
10
|
-
readonly layout: StageLayout;
|
|
11
|
-
readonly pixelSize: PixelSize;
|
|
12
|
-
readonly panels: readonly AppScenePanel[];
|
|
13
|
-
readonly scene: AppSceneId;
|
|
14
|
-
readonly tick: number;
|
|
15
|
-
readonly load?: number;
|
|
16
|
-
readonly activeRuns?: number;
|
|
17
|
-
readonly imageId: number;
|
|
18
|
-
readonly imageIds?: readonly number[];
|
|
19
|
-
readonly zIndex: number;
|
|
20
|
-
readonly transport: ImageTransport;
|
|
21
|
-
readonly layer?: ImageVisualLayerKind;
|
|
22
|
-
};
|
|
23
|
-
export declare function loadBucket(load: number | undefined): number;
|
|
24
|
-
export type ImageVisualRenderResult = {
|
|
25
|
-
readonly key: string;
|
|
26
|
-
readonly sequence: string;
|
|
27
|
-
};
|
|
28
|
-
export type ImageVisualWorkerRequest = ImageVisualRenderRequest & {
|
|
29
|
-
readonly requestId: number;
|
|
30
|
-
readonly key: string;
|
|
31
|
-
};
|
|
32
|
-
export type ImageVisualWorkerResponse = {
|
|
33
|
-
readonly requestId: number;
|
|
34
|
-
readonly key: string;
|
|
35
|
-
readonly sequence?: string;
|
|
36
|
-
readonly error?: string;
|
|
37
|
-
};
|
|
38
|
-
export declare function imageVisualFrameKey(input: Omit<ImageVisualRenderRequest, "imageId" | "zIndex" | "transport">): string;
|
|
39
|
-
export declare function renderImageVisualFrame(input: ImageVisualRenderRequest): ImageVisualRenderResult | null;
|
|
40
|
-
export declare class ImageVisualLayer {
|
|
41
|
-
private readonly imageId;
|
|
42
|
-
private readonly panelImageIds;
|
|
43
|
-
private readonly panelChromeImageIds;
|
|
44
|
-
private readonly stdout;
|
|
45
|
-
private readonly onFrameReady;
|
|
46
|
-
private readonly protocol;
|
|
47
|
-
private readonly transport;
|
|
48
|
-
private readonly maxOutputBacklogBytes;
|
|
49
|
-
private readonly outputBytesPerSecond;
|
|
50
|
-
private outputBudgetBytes;
|
|
51
|
-
private lastBudgetAtMs;
|
|
52
|
-
private readonly motionSlot;
|
|
53
|
-
private workersStarted;
|
|
54
|
-
private readonly pendingFrames;
|
|
55
|
-
private readonly recentWrittenKeys;
|
|
56
|
-
private imagesVisible;
|
|
57
|
-
private flushPaused;
|
|
58
|
-
private requestId;
|
|
59
|
-
private lastBackgroundKey;
|
|
60
|
-
private fatalWorkerError;
|
|
61
|
-
private destroyed;
|
|
62
|
-
constructor(stdout?: NodeJS.WriteStream, onFrameReady?: () => void);
|
|
63
|
-
get enabled(): boolean;
|
|
64
|
-
clear(): void;
|
|
65
|
-
destroy(): void;
|
|
66
|
-
setFlushPaused(paused: boolean): void;
|
|
67
|
-
isReady(input: {
|
|
68
|
-
layout: StageLayout;
|
|
69
|
-
pixelSize: PixelSize;
|
|
70
|
-
panels: readonly AppScenePanel[];
|
|
71
|
-
scene: AppSceneId;
|
|
72
|
-
tick: number;
|
|
73
|
-
load?: number;
|
|
74
|
-
activeRuns?: number;
|
|
75
|
-
}): boolean;
|
|
76
|
-
render(input: {
|
|
77
|
-
layout: StageLayout;
|
|
78
|
-
pixelSize: PixelSize;
|
|
79
|
-
panels: readonly AppScenePanel[];
|
|
80
|
-
scene: AppSceneId;
|
|
81
|
-
tick: number;
|
|
82
|
-
load?: number;
|
|
83
|
-
activeRuns?: number;
|
|
84
|
-
force?: boolean;
|
|
85
|
-
}): void;
|
|
86
|
-
flush(): boolean;
|
|
87
|
-
private createSlot;
|
|
88
|
-
private resetSlot;
|
|
89
|
-
private markWritten;
|
|
90
|
-
private refillOutputBudget;
|
|
91
|
-
private isOutputBackedUp;
|
|
92
|
-
private stageFrame;
|
|
93
|
-
private isKnownKey;
|
|
94
|
-
private ensureWorkersStarted;
|
|
95
|
-
private failWorker;
|
|
96
|
-
private throwIfFatal;
|
|
97
|
-
private scheduleRender;
|
|
98
|
-
private startWorker;
|
|
99
|
-
private renderInline;
|
|
100
|
-
private enqueueWorkerRender;
|
|
101
|
-
private dispatchWorkerRender;
|
|
102
|
-
private handleWorkerMessage;
|
|
103
|
-
}
|
|
104
|
-
export declare function pixelSizeForRenderer(renderer: {
|
|
105
|
-
width: number;
|
|
106
|
-
height: number;
|
|
107
|
-
resolution?: PixelSize | null;
|
|
108
|
-
}): PixelSize;
|
|
109
|
-
export declare function forceModernImageVisuals(): boolean;
|