peachsim 0.1.2272 → 0.1.2274
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/cli/bridge-flow-runner.ts +4 -1
- package/detox/gestures.ts +3 -1
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +74 -17
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +3 -3
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +68 -11
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +74 -17
- package/dist-lib/host/fetch-proxy-handler.cjs +6 -6
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +6 -6
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +6 -6
- package/dist-lib/native-app-identity-project.cjs +3 -3
- package/dist-lib/native-app-identity-project.mjs +3 -3
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +79 -18
- package/dist-lib/swift-compile.cjs +31 -2
- package/dist-lib/swift-compile.mjs +31 -2
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +30 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +33 -4
- package/dist-lib/vite.cjs +6 -6
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/cli-companion.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +0 -5
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +3 -5
- package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +86 -37
- package/dist-types/packages/peach-engine/src/engine/scroll-range.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/text-metric-policy.d.ts +45 -0
- package/dist-types/packages/peach-engine/src/platform/personality.d.ts +81 -0
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/live-frame-mirror.d.ts +9 -2
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-wire-protocol.d.ts +68 -0
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-wire-server.d.ts +21 -0
- package/dist-types/packages/peach-engine/src/settings/schema.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/nitro-adapter.lock.json +237 -237
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-distribution.lock.json +8 -8
- package/src/swift-toolchain.ts +37 -0
- package/src/turbo-runtime.lock.json +17 -17
- package/src/turbo-source.ts +32 -4
|
@@ -11,5 +11,6 @@ export interface ScrollReleaseVelocity {
|
|
|
11
11
|
velocity: number;
|
|
12
12
|
panVelocity: number;
|
|
13
13
|
}
|
|
14
|
-
export declare function
|
|
14
|
+
export declare function estimateIosScrollReleaseVelocity(samples: readonly ScrollVelocitySample[], releaseTimestamp: number, overscrolled: boolean, sheetPanScale?: number): ScrollReleaseVelocity;
|
|
15
|
+
export declare function estimateAndroidScrollReleaseVelocity(samples: readonly ScrollVelocitySample[], releaseTimestamp: number): ScrollReleaseVelocity;
|
|
15
16
|
export declare function latestIosPanVelocity(samples: readonly ScrollVelocitySample[]): number;
|
|
@@ -231,7 +231,7 @@ export declare class ScrollHandler {
|
|
|
231
231
|
private get refreshHoldOffset();
|
|
232
232
|
private get refreshRubberBandDecoration();
|
|
233
233
|
get hasRefreshControl(): boolean;
|
|
234
|
-
private
|
|
234
|
+
private tracksHeldRefreshPull;
|
|
235
235
|
private shouldTrackRefreshPull;
|
|
236
236
|
private get offset();
|
|
237
237
|
private set offset(value);
|
|
@@ -26,7 +26,6 @@ export declare function firstLineRunAscender(runs: {
|
|
|
26
26
|
ascenderAboveRoot: number;
|
|
27
27
|
}[] | null, firstLineEnd: number): number | null;
|
|
28
28
|
export declare function iosParagraphBaselineOffset(input: ParagraphBaselineInputs): number | null;
|
|
29
|
-
export declare function iosFirstTextLineCenter(input: ParagraphBaselineInputs, capHeight: number): number | null;
|
|
30
29
|
export interface TextGuides {
|
|
31
30
|
firstTextLineCenter: number;
|
|
32
31
|
firstTextBaseline: number;
|
|
@@ -25,3 +25,48 @@ export declare function iosSystemLineHeightAdjustment(fontSize: number): number;
|
|
|
25
25
|
export declare function iosSystemMeasuredHeightTrim(fontSize: number, pixel: number): number;
|
|
26
26
|
export declare function iosSystemLineHeight(fontSize: number): number;
|
|
27
27
|
export declare function iosNaturalLineHeight(ascender: number, descender: number, unitsPerEm: number, fontSize: number): number;
|
|
28
|
+
export declare function iosEmojiFontMetrics(fontSize: number, systemFont: boolean): {
|
|
29
|
+
ascent: number;
|
|
30
|
+
descent: number;
|
|
31
|
+
};
|
|
32
|
+
export declare const IOS_BASELINE: {
|
|
33
|
+
readonly flags: 0;
|
|
34
|
+
readonly fontSize: 1;
|
|
35
|
+
readonly firstLineBaseline: 2;
|
|
36
|
+
readonly lineCount: 3;
|
|
37
|
+
readonly firstLineAscender: 4;
|
|
38
|
+
readonly paragraphLeading: 5;
|
|
39
|
+
readonly paragraphLineHeight: 6;
|
|
40
|
+
readonly firstFragmentY: 7;
|
|
41
|
+
readonly textFontScale: 8;
|
|
42
|
+
readonly contentHeight: 9;
|
|
43
|
+
readonly deviceScale: 10;
|
|
44
|
+
readonly fieldLineTop: 11;
|
|
45
|
+
readonly hostContentTop: 12;
|
|
46
|
+
readonly hostContentHeight: 13;
|
|
47
|
+
readonly styleLineAscent: 14;
|
|
48
|
+
readonly styleLineHeight: 15;
|
|
49
|
+
readonly ascender: 16;
|
|
50
|
+
readonly descender: 17;
|
|
51
|
+
readonly unitsPerEm: 18;
|
|
52
|
+
readonly styleAscender: 19;
|
|
53
|
+
readonly styleDescender: 20;
|
|
54
|
+
readonly styleUnitsPerEm: 21;
|
|
55
|
+
readonly naturalLineHeight: 22;
|
|
56
|
+
};
|
|
57
|
+
export declare const IOS_BASELINE_UIKIT_LABEL: number;
|
|
58
|
+
export declare const IOS_BASELINE_SWIFTUI_TEXT: number;
|
|
59
|
+
export declare const IOS_BASELINE_CORE_TEXT_LINE: number;
|
|
60
|
+
export declare const IOS_BASELINE_FIELD_LINE: number;
|
|
61
|
+
export declare const IOS_BASELINE_UIKIT_LABEL_CENTERED_SHRINK: number;
|
|
62
|
+
export declare const IOS_BASELINE_TEXTKIT_LEADING_ABOVE: number;
|
|
63
|
+
export declare const IOS_BASELINE_EXPLICIT_LINE_HEIGHT: number;
|
|
64
|
+
export declare const IOS_BASELINE_FIRST_LINE_HAS_EMOJI: number;
|
|
65
|
+
export declare const IOS_BASELINE_SYSTEM_FONT: number;
|
|
66
|
+
export declare const IOS_BASELINE_MINIMUM_SCALE_FACTOR: number;
|
|
67
|
+
export declare const IOS_BASELINE_STYLE_LINE_ASCENT: number;
|
|
68
|
+
export declare const IOS_BASELINE_STYLE_LINE_HEIGHT: number;
|
|
69
|
+
export declare function iosBaselineInputs(): Float64Array;
|
|
70
|
+
export declare function readIosParagraphBaselineOffset(): number | null;
|
|
71
|
+
export declare function readIosCompressedBaseline(): number | null;
|
|
72
|
+
export declare function readIosTextGuides(capHeight: number, lastLineBaseline: number): [firstTextLineCenter: number, firstTextBaseline: number, lastTextBaseline: number];
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { ScrollMomentumPhysics } from '../engine/scroll-momentum-math.d.ts';
|
|
2
|
+
import type { ScrollIndicatorMetrics } from '../engine/scroll-platform.d.ts';
|
|
3
|
+
import type { ScrollReleaseVelocity, ScrollVelocitySample } from '../engine/scroll-velocity.d.ts';
|
|
4
|
+
import type { DeviceSpec, RuntimePlatform, SizeClass } from '../settings/index.d.ts';
|
|
5
|
+
export interface PlatformPersonality {
|
|
6
|
+
readonly platform: RuntimePlatform;
|
|
7
|
+
readonly keyboard: KeyboardPersonality;
|
|
8
|
+
readonly navigationBar: NavigationBarPersonality;
|
|
9
|
+
formSheet(device: DeviceSpec): FormSheetTraits;
|
|
10
|
+
readonly scroll: ScrollPersonality;
|
|
11
|
+
}
|
|
12
|
+
export interface ScrollPersonality {
|
|
13
|
+
touchSlop(primaryDelta: number): number;
|
|
14
|
+
dragMatchesAxis(primaryDelta: number, crossDelta: number): boolean;
|
|
15
|
+
readonly rejectedMoveMovesSlopOrigin: boolean;
|
|
16
|
+
readonly directionalLock: boolean;
|
|
17
|
+
readonly beginMoveApplies: boolean;
|
|
18
|
+
releaseVelocity(samples: readonly ScrollVelocitySample[], releaseTimestamp: number, overscrolled: boolean, sheetPanScale?: number): ScrollReleaseVelocity;
|
|
19
|
+
momentumReleaseStep(previousUpdateMs: number | null, releaseMs: number): number;
|
|
20
|
+
momentumFrameDuration(elapsedMs: number): number;
|
|
21
|
+
decelerationRate(decelerationRate: unknown): number;
|
|
22
|
+
momentumPhysics(decelerationRate: unknown): ScrollMomentumPhysics;
|
|
23
|
+
readonly rubberBand: boolean;
|
|
24
|
+
appliedOffset(value: number, scale: number): number;
|
|
25
|
+
nativeEventOffset(value: number, scale: number): number;
|
|
26
|
+
startOffset(leadingInset: number): number;
|
|
27
|
+
edgeEffect(overScrollMode: unknown, contentSize: number, viewportSize: number): boolean;
|
|
28
|
+
fadingEdgeLength(fadingEdgeLength: unknown): number;
|
|
29
|
+
indicator(opts: {
|
|
30
|
+
persistentScrollbar?: unknown;
|
|
31
|
+
indicatorStyle?: unknown;
|
|
32
|
+
colorScheme?: string;
|
|
33
|
+
}): ScrollIndicatorMetrics;
|
|
34
|
+
readonly refreshPullHoldsContent: boolean;
|
|
35
|
+
refreshHoldOffset(hasTitle: boolean, titleFontSize?: number): number;
|
|
36
|
+
refreshTriggerThreshold(viewportHeight: number, hasTitle: boolean, titleFontSize?: number): number;
|
|
37
|
+
}
|
|
38
|
+
export interface FormSheetTraits {
|
|
39
|
+
readonly horizontalSizeClass: SizeClass;
|
|
40
|
+
readonly verticalSizeClass: SizeClass;
|
|
41
|
+
readonly maximumDetentAtStackFrame: boolean;
|
|
42
|
+
readonly insetCardAtCardSize: boolean;
|
|
43
|
+
readonly mixedLargeIsSystemCard: boolean;
|
|
44
|
+
readonly floatsSmallDetents: boolean;
|
|
45
|
+
readonly snapsDetentsToPixel: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface NavigationBarPersonality {
|
|
48
|
+
readonly toolbarHeight: number | null;
|
|
49
|
+
readonly compatibilityDesign: boolean;
|
|
50
|
+
readonly compactHeightBar: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface KeyboardSpring {
|
|
53
|
+
readonly stiffness: number;
|
|
54
|
+
readonly damping: number;
|
|
55
|
+
readonly mass: number;
|
|
56
|
+
readonly restDisplacementThreshold: number;
|
|
57
|
+
readonly restSpeedThreshold: number;
|
|
58
|
+
}
|
|
59
|
+
export type KeyboardAnimationEasing = {
|
|
60
|
+
readonly kind: 'bezier';
|
|
61
|
+
readonly controlPoints: readonly [number, number, number, number];
|
|
62
|
+
} | {
|
|
63
|
+
readonly kind: 'spring';
|
|
64
|
+
readonly spring: KeyboardSpring;
|
|
65
|
+
};
|
|
66
|
+
export interface KeyboardAnimationTiming {
|
|
67
|
+
readonly duration: number;
|
|
68
|
+
readonly easing: KeyboardAnimationEasing;
|
|
69
|
+
}
|
|
70
|
+
export interface KeyboardPersonality {
|
|
71
|
+
readonly animation: KeyboardAnimationTiming;
|
|
72
|
+
readonly eventDuration: number;
|
|
73
|
+
readonly willEvents: boolean;
|
|
74
|
+
readonly frameChangeEvents: boolean;
|
|
75
|
+
readonly inputAccessories: boolean;
|
|
76
|
+
readonly textTraitsLatchAtPresentation: boolean;
|
|
77
|
+
readonly candidateLane: boolean;
|
|
78
|
+
readonly caretMoveUpdatesCapitalization: boolean;
|
|
79
|
+
hiddenBottomInset(device: DeviceSpec): number;
|
|
80
|
+
}
|
|
81
|
+
export declare function platformPersonality(platform: RuntimePlatform): PlatformPersonality;
|
|
@@ -62,6 +62,7 @@ export interface WebGpuTextureDescriptorPort {
|
|
|
62
62
|
readonly sampleCount?: number;
|
|
63
63
|
readonly mipLevelCount?: number;
|
|
64
64
|
readonly dimension?: GPUTextureDimension;
|
|
65
|
+
readonly viewFormats?: GPUTextureFormat[];
|
|
65
66
|
}
|
|
66
67
|
export interface WebGpuBufferDescriptorPort {
|
|
67
68
|
readonly label?: string;
|
|
@@ -5,6 +5,7 @@ import type { GPUUploadTrace } from './compositor-protocol.d.ts';
|
|
|
5
5
|
import type { RenderTree } from './compositor-runtime/render-tree.d.ts';
|
|
6
6
|
import type { WebGpuGraphiteSubmissionBudget } from './webgpu-frame-transaction.d.ts';
|
|
7
7
|
import type { WebGpuReadbackKind } from './webgpu-readback-scheduler.d.ts';
|
|
8
|
+
import type { WebGpuWireServer, WebGpuWireServerOptions } from './webgpu-wire-server.d.ts';
|
|
8
9
|
import type { FontMgr, Image as SkImage, Surface } from 'canvaskit-wasm';
|
|
9
10
|
export type CompositorGpuBackendKind = 'graphite' | 'ganesh';
|
|
10
11
|
export type CompositorFrameKind = 'display' | 'capture' | 'auxiliary';
|
|
@@ -154,6 +155,7 @@ export interface CompositorGpuBackend {
|
|
|
154
155
|
readonly programDevice: GPUDevice | null;
|
|
155
156
|
createProgramTarget(display: CompositorGpuDisplay, generation: number, width: number, height: number): CompositorGpuTarget;
|
|
156
157
|
programTexture(target: CompositorGpuTarget): GPUTexture;
|
|
158
|
+
createWebGpuWire(options: Pick<WebGpuWireServerOptions, 'post' | 'presentLayer'>): WebGpuWireServer | null;
|
|
157
159
|
targetImage(target: CompositorGpuTarget): SkImage;
|
|
158
160
|
readonly admissionLimit: number;
|
|
159
161
|
tryAdmit(source: GpuFrameSource, graphiteSubmissionBudget?: WebGpuGraphiteSubmissionBudget, defer?: boolean, urgent?: boolean): CompositorGpuAdmissionDecision;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ImageFrameSource } from './image-pixel-contract.d.ts';
|
|
2
|
+
import type { WebGpuWireFromRenderer, WebGpuWireToRenderer } from './webgpu-wire-protocol.d.ts';
|
|
2
3
|
export interface RemoteLiveFrameIdentity {
|
|
3
4
|
sessionId: string;
|
|
4
5
|
seq: number;
|
|
@@ -11,7 +12,7 @@ export type LiveFrameMirrorEnvelope = {
|
|
|
11
12
|
captureRequestId?: number;
|
|
12
13
|
remoteFrame?: RemoteLiveFrameIdentity;
|
|
13
14
|
};
|
|
14
|
-
export type LiveFramePortMessage = {
|
|
15
|
+
export type LiveFramePortMessage = WebGpuWireToRenderer | {
|
|
15
16
|
type: 'liveFrameMirror';
|
|
16
17
|
payload: LiveFrameMirrorEnvelope;
|
|
17
18
|
} | {
|
|
@@ -20,8 +21,10 @@ export type LiveFramePortMessage = {
|
|
|
20
21
|
} | {
|
|
21
22
|
type: 'sceneLiveFrameSnapshot';
|
|
22
23
|
surfaceId: string;
|
|
24
|
+
} | {
|
|
25
|
+
type: 'sceneLiveFrameRecordStop';
|
|
23
26
|
};
|
|
24
|
-
export type LiveFramePortReply = {
|
|
27
|
+
export type LiveFramePortReply = WebGpuWireFromRenderer | {
|
|
25
28
|
type: 'liveFrameAcked';
|
|
26
29
|
channelId: string;
|
|
27
30
|
} | {
|
|
@@ -31,6 +34,10 @@ export type LiveFramePortReply = {
|
|
|
31
34
|
} | {
|
|
32
35
|
type: 'sceneLiveFrameSnapshotDone';
|
|
33
36
|
error?: string;
|
|
37
|
+
} | {
|
|
38
|
+
type: 'liveFrameRecorded';
|
|
39
|
+
channelId: string;
|
|
40
|
+
bitmap: ImageFrameSource;
|
|
34
41
|
};
|
|
35
42
|
type PostMessage = (msg: Extract<LiveFramePortMessage, {
|
|
36
43
|
type: 'liveFrameMirror';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export type WebGpuWireId = number;
|
|
2
|
+
export type WebGpuWireCommand = readonly unknown[];
|
|
3
|
+
export interface WebGpuWireObjectRef {
|
|
4
|
+
readonly $: WebGpuWireId;
|
|
5
|
+
}
|
|
6
|
+
export declare function isWebGpuWireObjectRef(value: unknown): value is WebGpuWireObjectRef;
|
|
7
|
+
export interface WebGpuWireAdapterSnapshot {
|
|
8
|
+
readonly features: readonly string[];
|
|
9
|
+
readonly limits: Readonly<Record<string, number>>;
|
|
10
|
+
readonly info: Readonly<Record<string, string | number | boolean | undefined>>;
|
|
11
|
+
}
|
|
12
|
+
export interface WebGpuWireErrorRecord {
|
|
13
|
+
readonly type: 'validation' | 'out-of-memory' | 'internal' | 'pipeline';
|
|
14
|
+
readonly message: string;
|
|
15
|
+
readonly reason?: 'validation' | 'internal';
|
|
16
|
+
}
|
|
17
|
+
export interface WebGpuWireCompilationMessage {
|
|
18
|
+
readonly message: string;
|
|
19
|
+
readonly type: GPUCompilationMessageType;
|
|
20
|
+
readonly lineNum: number;
|
|
21
|
+
readonly linePos: number;
|
|
22
|
+
readonly offset: number;
|
|
23
|
+
readonly length: number;
|
|
24
|
+
}
|
|
25
|
+
export type WebGpuWireReplyValue = {
|
|
26
|
+
readonly kind: 'adapter';
|
|
27
|
+
readonly adapter: WebGpuWireAdapterSnapshot | null;
|
|
28
|
+
} | {
|
|
29
|
+
readonly kind: 'device';
|
|
30
|
+
} | {
|
|
31
|
+
readonly kind: 'done';
|
|
32
|
+
} | {
|
|
33
|
+
readonly kind: 'mapped';
|
|
34
|
+
readonly bytes: ArrayBuffer;
|
|
35
|
+
} | {
|
|
36
|
+
readonly kind: 'scope';
|
|
37
|
+
readonly error: WebGpuWireErrorRecord | null;
|
|
38
|
+
} | {
|
|
39
|
+
readonly kind: 'compilation';
|
|
40
|
+
readonly messages: readonly WebGpuWireCompilationMessage[];
|
|
41
|
+
};
|
|
42
|
+
export type WebGpuWireToRenderer = {
|
|
43
|
+
readonly type: 'gpuWireOpen';
|
|
44
|
+
readonly presented: SharedArrayBuffer;
|
|
45
|
+
} | {
|
|
46
|
+
readonly type: 'gpuWireBatch';
|
|
47
|
+
readonly commands: readonly WebGpuWireCommand[];
|
|
48
|
+
};
|
|
49
|
+
export type WebGpuWireFromRenderer = {
|
|
50
|
+
readonly type: 'gpuWireReply';
|
|
51
|
+
readonly request: number;
|
|
52
|
+
readonly value?: WebGpuWireReplyValue;
|
|
53
|
+
readonly error?: WebGpuWireErrorRecord | {
|
|
54
|
+
readonly type: 'operation' | 'type' | 'abort';
|
|
55
|
+
readonly message: string;
|
|
56
|
+
};
|
|
57
|
+
} | {
|
|
58
|
+
readonly type: 'gpuWireUncapturedError';
|
|
59
|
+
readonly device: WebGpuWireId;
|
|
60
|
+
readonly error: WebGpuWireErrorRecord;
|
|
61
|
+
} | {
|
|
62
|
+
readonly type: 'gpuWireDeviceLost';
|
|
63
|
+
readonly device: WebGpuWireId;
|
|
64
|
+
readonly reason: GPUDeviceLostReason;
|
|
65
|
+
readonly message: string;
|
|
66
|
+
};
|
|
67
|
+
export declare function isWebGpuWireFromRenderer(value: unknown): value is WebGpuWireFromRenderer;
|
|
68
|
+
export declare const WEBGPU_WIRE_CANVAS_TEXTURES = 3;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type WebGpuWireFromRenderer, type WebGpuWireToRenderer } from './webgpu-wire-protocol.d.ts';
|
|
2
|
+
import type { GraphiteCanvasKitModule, GraphiteDeviceContext } from './canvaskit-webgpu.d.ts';
|
|
3
|
+
import type { LiveFramePixels } from './image-pixel-contract.d.ts';
|
|
4
|
+
import type { WebGpuFrameTransactionOwner } from './webgpu-frame-transaction.d.ts';
|
|
5
|
+
import type { Image as SkImage } from 'canvaskit-wasm';
|
|
6
|
+
export interface WebGpuWireServerOptions {
|
|
7
|
+
readonly canvasKit: GraphiteCanvasKitModule;
|
|
8
|
+
readonly deviceContext: GraphiteDeviceContext;
|
|
9
|
+
readonly transactionOwner: WebGpuFrameTransactionOwner;
|
|
10
|
+
readonly post: (message: WebGpuWireFromRenderer, transfer: Transferable[]) => void;
|
|
11
|
+
readonly presentLayer: (channelId: string, image: SkImage | null) => void;
|
|
12
|
+
}
|
|
13
|
+
export type WebGpuWireFrameRecorder = (channelId: string, frame: LiveFramePixels) => void;
|
|
14
|
+
export declare class WebGpuWireServer {
|
|
15
|
+
#private;
|
|
16
|
+
constructor(options: WebGpuWireServerOptions);
|
|
17
|
+
receive(message: WebGpuWireToRenderer): void;
|
|
18
|
+
dispose(): void;
|
|
19
|
+
setRecorder(recorder: WebGpuWireFrameRecorder | null): void;
|
|
20
|
+
readFront(channelId: string): Promise<LiveFramePixels> | null;
|
|
21
|
+
}
|
|
@@ -2,4 +2,5 @@ import { type LandscapeSide } from '../../../../../src/device-catalog.ts';
|
|
|
2
2
|
import { type SettingsValues } from '../../../../../src/settingsContract.ts';
|
|
3
3
|
export type { LandscapeSide };
|
|
4
4
|
export declare function readUrlSettingOverrides(search?: string): Partial<SettingsValues>;
|
|
5
|
+
export declare function isIsolatedSettingsSearch(search: string): boolean;
|
|
5
6
|
export declare function getDefaults(): SettingsValues;
|
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"495d946b48ebe21480616cc63d9967bc511db950ab59c25e834fcda28eb4a17c","file":"node/cli-495d946b48ebe21480616cc63d9967bc511db950ab59c25e834fcda28eb4a17c.cjs"}
|