peachsim 0.1.2522 → 0.1.2524
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/detox/index.ts +26 -6
- 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 +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +3 -3
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +16 -5
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-OGZREIM4.mjs → acorn-KGGCJFIR.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-NILZGSTD.mjs → chunk-262EA5FT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MJEXU4Y7.mjs → chunk-2S5NWM2D.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-NBBOZWZ2.mjs → chunk-4NHN4XAI.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-AVBUUFTZ.mjs → chunk-4QJCL72M.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TLGRHIFC.mjs → chunk-BBY6YF2V.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2Q53CRLG.mjs → chunk-BSX2F6HM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VHMUVOWZ.mjs → chunk-DNZYEDGM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LTFAADDL.mjs → chunk-EZFXQPBY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FUDMLXHZ.mjs → chunk-FBPD5WHL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KXW4QWDW.mjs → chunk-HELZYOAQ.mjs} +12 -12
- package/dist-lib/esm-chunks/{chunk-NLSTKVXZ.mjs → chunk-JERPO36D.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-Y3M6LKXO.mjs → chunk-KJAPQJ5M.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-2XQHYCZJ.mjs → chunk-KYBUNC3L.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CG7RQV56.mjs → chunk-NOGDYYR2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DLF3CTZM.mjs → chunk-OWOGZY5L.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YKNY6EQ4.mjs → chunk-PNDHRQGK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ICKVBXFK.mjs → chunk-Q77UHYXP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-A4ZCFPTK.mjs → chunk-RDFTEYEW.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KENKG25P.mjs → chunk-RJYRT37A.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GMZLOA4S.mjs → chunk-RT5ZCVTJ.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-Z2ZREI4K.mjs → chunk-Z3AIA2Y5.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-C3NFBOIV.mjs → metro-layout-parser-M5DV4RRC.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-7XHCRW53.mjs → swift-package-prebuilt-NQOPJV3A.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-ZIM56PXX.mjs → swift-sdk-app-module-HC5BK4XH.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-YOA3HATE.mjs → swift-sdk-image-M22DMO6M.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-V6VSCQUU.mjs → swift-sdk-image-producer-UUTKNIC6.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +2 -2
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +11 -4
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +79 -79
- package/dist-lib/public-origins-lib.json +69 -69
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- 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 +7 -7
- package/dist-lib/skills.cjs +11 -4
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +10 -10
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +5 -5
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/smol-toml.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/src/engine/image-fetch.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/native-image-scope.d.ts +12 -0
- package/dist-types/packages/peach-engine/src/engine/native-shell-services.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/remote-display-protocol.d.ts +35 -5
- package/dist-types/packages/peach-engine/src/engine/scene-stream-decoder.d.ts +62 -0
- package/dist-types/packages/peach-engine/src/engine/scene-stream-encoder.d.ts +66 -0
- package/dist-types/packages/peach-engine/src/engine/scene-stream-shared.d.ts +28 -0
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +7 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-surface-host.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +4 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/host/bridge-host.ts +8 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { type StreamCodecHooks } from './scene-stream-shared.d.ts';
|
|
2
|
+
import type { RemoteLayoutRect, RemoteSceneNode } from './remote-display-protocol.d.ts';
|
|
3
|
+
export declare class StreamReader {
|
|
4
|
+
private readonly buf;
|
|
5
|
+
private readonly end;
|
|
6
|
+
private readonly dv;
|
|
7
|
+
private off;
|
|
8
|
+
constructor(buf: Uint8Array, start: number, end: number);
|
|
9
|
+
get position(): number;
|
|
10
|
+
remaining(): number;
|
|
11
|
+
private need;
|
|
12
|
+
u8(): number;
|
|
13
|
+
u32(): number;
|
|
14
|
+
i32(): number;
|
|
15
|
+
uvarint(): number;
|
|
16
|
+
svarint(): number;
|
|
17
|
+
f32(): number;
|
|
18
|
+
f64(): number;
|
|
19
|
+
subarray(length: number): Uint8Array;
|
|
20
|
+
bytesCopy(length: number): Uint8Array;
|
|
21
|
+
utf8Raw(maxBytes: number): string;
|
|
22
|
+
}
|
|
23
|
+
export declare class SceneStreamDecoder {
|
|
24
|
+
private readonly prevNodes;
|
|
25
|
+
private readonly prevLayouts;
|
|
26
|
+
private readonly stringTable;
|
|
27
|
+
private readonly propsTable;
|
|
28
|
+
private readonly styleTable;
|
|
29
|
+
private readonly styleFieldTable;
|
|
30
|
+
private lastStyleFormatId;
|
|
31
|
+
private inflater;
|
|
32
|
+
private inflateChunks;
|
|
33
|
+
private inflateTotal;
|
|
34
|
+
private inflateLimit;
|
|
35
|
+
private readonly tailOut;
|
|
36
|
+
reset(): void;
|
|
37
|
+
private ensureInflater;
|
|
38
|
+
decompressBody(compressed: Uint8Array, expectedLen: number, rolling: boolean): Uint8Array;
|
|
39
|
+
private readFullStyleRecord;
|
|
40
|
+
private readStyleDeltaPatch;
|
|
41
|
+
private readStyleRefOrValue;
|
|
42
|
+
private readPropsRefOrValue;
|
|
43
|
+
private readChildren;
|
|
44
|
+
private readProbe;
|
|
45
|
+
private readLayouts;
|
|
46
|
+
private readAnimArray;
|
|
47
|
+
decodeCommitCore(bodyBytes: Uint8Array, full: boolean, hooks: StreamCodecHooks): {
|
|
48
|
+
rootId: number | null;
|
|
49
|
+
upserts: RemoteSceneNode[];
|
|
50
|
+
removed: number[];
|
|
51
|
+
layouts: RemoteLayoutRect[];
|
|
52
|
+
requiredFontHashes: string[];
|
|
53
|
+
bodyOffset: number;
|
|
54
|
+
};
|
|
55
|
+
commitState(input: {
|
|
56
|
+
full: boolean;
|
|
57
|
+
upserts: readonly RemoteSceneNode[];
|
|
58
|
+
removed: readonly number[];
|
|
59
|
+
layouts: readonly RemoteLayoutRect[];
|
|
60
|
+
}): void;
|
|
61
|
+
}
|
|
62
|
+
export declare function createSceneStreamDecoder(): SceneStreamDecoder;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type StreamCodecHooks } from './scene-stream-shared.d.ts';
|
|
2
|
+
import type { RemoteLayoutRect, RemoteSceneNode } from './remote-display-protocol.d.ts';
|
|
3
|
+
export declare class StreamWriter {
|
|
4
|
+
private buf;
|
|
5
|
+
private dv;
|
|
6
|
+
private off;
|
|
7
|
+
constructor(initialBytes?: number);
|
|
8
|
+
reset(): void;
|
|
9
|
+
get length(): number;
|
|
10
|
+
truncate(length: number): void;
|
|
11
|
+
private need;
|
|
12
|
+
u8(value: number): void;
|
|
13
|
+
u16(value: number): void;
|
|
14
|
+
u32(value: number): void;
|
|
15
|
+
i32(value: number): void;
|
|
16
|
+
uvarint(value: number): void;
|
|
17
|
+
svarint(value: number): void;
|
|
18
|
+
f32(value: number): void;
|
|
19
|
+
f64(value: number): void;
|
|
20
|
+
bytes(value: Uint8Array): void;
|
|
21
|
+
utf8Raw(value: string, maxBytes: number): void;
|
|
22
|
+
writeAsciiOrUtf8WithRef(value: string, maxBytes: number, stringTable: Map<string, number>): void;
|
|
23
|
+
view(): Uint8Array;
|
|
24
|
+
finishCopy(): Uint8Array;
|
|
25
|
+
}
|
|
26
|
+
export declare class SceneStreamEncoder {
|
|
27
|
+
private readonly prevNodes;
|
|
28
|
+
private readonly prevLayouts;
|
|
29
|
+
private readonly stringTable;
|
|
30
|
+
private readonly propsTable;
|
|
31
|
+
private readonly styleTable;
|
|
32
|
+
private readonly styleFieldTable;
|
|
33
|
+
private lastStyleFormatId;
|
|
34
|
+
private deflater;
|
|
35
|
+
private deflateChunks;
|
|
36
|
+
private readonly bodyWriter;
|
|
37
|
+
reset(): void;
|
|
38
|
+
private ensureDeflater;
|
|
39
|
+
compressBody(body: Uint8Array, full: boolean): {
|
|
40
|
+
deflated: boolean;
|
|
41
|
+
rolling: boolean;
|
|
42
|
+
payload: Uint8Array;
|
|
43
|
+
};
|
|
44
|
+
private writeFullStyleRecord;
|
|
45
|
+
private writeStyleDeltaPatch;
|
|
46
|
+
private writeStyleRefOrValue;
|
|
47
|
+
private writePropsRefOrValue;
|
|
48
|
+
private writeChildren;
|
|
49
|
+
private writeProbe;
|
|
50
|
+
private writeLayouts;
|
|
51
|
+
encodeCommitCore(input: {
|
|
52
|
+
full: boolean;
|
|
53
|
+
rootId: number | null;
|
|
54
|
+
upserts: readonly RemoteSceneNode[];
|
|
55
|
+
removed: readonly number[];
|
|
56
|
+
layouts: readonly RemoteLayoutRect[];
|
|
57
|
+
requiredFontHashes: readonly string[];
|
|
58
|
+
}, hooks: StreamCodecHooks): StreamWriter | null;
|
|
59
|
+
commitState(input: {
|
|
60
|
+
full: boolean;
|
|
61
|
+
upserts: readonly RemoteSceneNode[];
|
|
62
|
+
removed: readonly number[];
|
|
63
|
+
layouts: readonly RemoteLayoutRect[];
|
|
64
|
+
}, hooks: StreamCodecHooks): void;
|
|
65
|
+
}
|
|
66
|
+
export declare function createSceneStreamEncoder(): SceneStreamEncoder;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { RemoteLayoutRect } from './remote-display-protocol.d.ts';
|
|
2
|
+
import type { SootSimNodeType } from './types.d.ts';
|
|
3
|
+
export declare const SPARSE_STYLE_LANES = 40;
|
|
4
|
+
export declare const SPARSE_STYLE_HEADER_BYTES: number;
|
|
5
|
+
export declare const STYLE_NAMED_FIELD = 4294967295;
|
|
6
|
+
export declare const STREAM_DEFLATE_MIN_BYTES = 48;
|
|
7
|
+
export declare const MAX_STRING_TABLE = 2048;
|
|
8
|
+
export declare const MAX_PROPS_TABLE = 1024;
|
|
9
|
+
export declare const MAX_STYLE_TABLE = 1024;
|
|
10
|
+
export declare const MAX_STYLE_FIELD_TABLE = 512;
|
|
11
|
+
export declare const MAX_INTERNED_STRING_BYTES = 256;
|
|
12
|
+
export declare const MAX_CACHED_PROPS_BYTES = 4096;
|
|
13
|
+
export declare const MAX_CACHED_STYLE_BYTES = 4096;
|
|
14
|
+
export declare const MAX_VALUE_DEPTH = 64;
|
|
15
|
+
export declare const textEncoder: TextEncoder;
|
|
16
|
+
export declare const textDecoder: TextDecoder;
|
|
17
|
+
export declare const latin1Decoder: TextDecoder;
|
|
18
|
+
export declare function splitProbeGate(probe: string): {
|
|
19
|
+
header: string;
|
|
20
|
+
gate: string;
|
|
21
|
+
} | null;
|
|
22
|
+
export interface StreamCodecHooks {
|
|
23
|
+
nodeTypeList: readonly SootSimNodeType[];
|
|
24
|
+
nodeTypeIndex: ReadonlyMap<string, number>;
|
|
25
|
+
canonicalProbeRecord: (id: number, type: SootSimNodeType, props: Record<string, unknown>, hidden: boolean) => string;
|
|
26
|
+
assertNoLocalHandles: (value: unknown, label: string) => void;
|
|
27
|
+
isLayoutRect: (value: unknown) => value is RemoteLayoutRect;
|
|
28
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const DISPLAY_SERVER_VERSION = 29;
|
|
2
2
|
export declare const DISPLAY_SERVER_MAJOR = 2;
|
|
3
|
-
export declare const DISPLAY_SERVER_MINOR =
|
|
3
|
+
export declare const DISPLAY_SERVER_MINOR = 49;
|
|
4
4
|
export declare const DISPLAY_SERVER_RUNTIME_VERSION_MINOR = 41;
|
|
5
|
-
export declare const DISPLAY_SERVER_SUBPROTOCOL = "rnx.display-server.v2.wire29.
|
|
5
|
+
export declare const DISPLAY_SERVER_SUBPROTOCOL = "rnx.display-server.v2.wire29.minor49";
|
|
6
6
|
export declare const DISPLAY_SERVER_TOKEN_SUBPROTOCOL_PREFIX = "rnx.sim-token.";
|
|
7
7
|
export declare const RNX_CLOUD_DISPLAY_GRANT_TTL_MS: number;
|
|
8
8
|
export declare const RNX_CLOUD_DISPLAY_CLOSE: {
|
|
@@ -89,7 +89,7 @@ export interface CompositorGpuFrame {
|
|
|
89
89
|
recordProgramInput(target: CompositorGpuTarget): void;
|
|
90
90
|
readonly programPassCapacity: number;
|
|
91
91
|
runProgramPass(targets: readonly CompositorGpuTarget[], encode: (encoder: GPUCommandEncoder) => readonly GPUBuffer[]): void;
|
|
92
|
-
presentDisplay(display: CompositorGpuDisplay): void;
|
|
92
|
+
presentDisplay(display: CompositorGpuDisplay, hasVisiblePixels?: boolean): void;
|
|
93
93
|
composeStaleTrees(): void;
|
|
94
94
|
readPixels: CompositorGpuRead;
|
|
95
95
|
exportSurfaceImage(display: CompositorGpuDisplay): Promise<ImageBitmap>;
|
|
@@ -167,7 +167,7 @@ export interface CompositorGpuBackend {
|
|
|
167
167
|
waitForAdmission(source: GpuFrameSource, stillWanted?: () => boolean, graphiteSubmissionBudget?: WebGpuGraphiteSubmissionBudget): Promise<CompositorGpuAdmission>;
|
|
168
168
|
failPendingAdmissions(error: Error): void;
|
|
169
169
|
runFrame<T>(admission: CompositorGpuAdmission, options: CompositorFrameOptions, record: (frame: CompositorGpuFrame) => T): CompositorFrameCompletion<T>;
|
|
170
|
-
nativeFramePresenter(displays: readonly CompositorGpuDisplay[], sample: (mask: number, read: CompositorGpuRead) => void, presentsToPage: () => boolean): NativeFramePresenter;
|
|
170
|
+
nativeFramePresenter(displays: readonly CompositorGpuDisplay[], sample: (mask: number, read: CompositorGpuRead) => void, presentsToPage: () => boolean, hasVisiblePixels: (index: number) => boolean): NativeFramePresenter;
|
|
171
171
|
readonly currentFrame: CompositorGpuFrame | null;
|
|
172
172
|
submittedWorkDone(): Promise<void>;
|
|
173
173
|
withFullSurfaceReadbacks<T>(surfaceIds: readonly CompositorSurfaceId[], run: () => Promise<T>): Promise<T>;
|
|
@@ -1721,7 +1721,10 @@ export type ShellToCompositorMessage = import('./presentationChannelsContract.d.
|
|
|
1721
1721
|
active: boolean;
|
|
1722
1722
|
} | ({
|
|
1723
1723
|
type: 'remoteFontRegister';
|
|
1724
|
-
} & RemoteFontRegistration) |
|
|
1724
|
+
} & RemoteFontRegistration) | {
|
|
1725
|
+
type: 'ensureBundledSystemFont';
|
|
1726
|
+
family: string;
|
|
1727
|
+
} | RemoteSceneImageMessage | {
|
|
1725
1728
|
type: 'capturePublicationBarrier';
|
|
1726
1729
|
requestId: number;
|
|
1727
1730
|
origin: CapturePublicationOrigin;
|
|
@@ -1962,6 +1965,9 @@ export type CompositorWorkerToHost = {
|
|
|
1962
1965
|
} | {
|
|
1963
1966
|
type: 'nativeWindowOwnership';
|
|
1964
1967
|
ownership: NativeWindowOwnership | null;
|
|
1968
|
+
} | {
|
|
1969
|
+
type: 'shellOverlayVisibility';
|
|
1970
|
+
visible: boolean;
|
|
1965
1971
|
} | {
|
|
1966
1972
|
type: 'displayClockDemand';
|
|
1967
1973
|
active: boolean;
|
|
@@ -98,6 +98,7 @@ export interface CompositorRenderActivity {
|
|
|
98
98
|
export type CompositorHostSurfaceId = AuxAppSurfaceId | 'home' | 'shell-overlay';
|
|
99
99
|
export interface CompositorSurfaceSource {
|
|
100
100
|
open(surfaceId: CompositorHostSurfaceId, size: CompositorSurfaceResize): OffscreenCanvas | null;
|
|
101
|
+
setOverlayVisible?(visible: boolean): void;
|
|
101
102
|
close(): void;
|
|
102
103
|
}
|
|
103
104
|
export interface CompositorHostPage {
|
|
@@ -105,7 +105,10 @@ export type TreeSyncPortMessage = {
|
|
|
105
105
|
envelope: NativeAnimMirrorEnvelope;
|
|
106
106
|
} | ({
|
|
107
107
|
type: 'remoteFontRegister';
|
|
108
|
-
} & RemoteFontRegistration) |
|
|
108
|
+
} & RemoteFontRegistration) | {
|
|
109
|
+
type: 'ensureBundledSystemFont';
|
|
110
|
+
family: string;
|
|
111
|
+
} | RemoteSceneImageMessage | {
|
|
109
112
|
type: 'surfaceTreeApplied';
|
|
110
113
|
surfaceId: string;
|
|
111
114
|
generation: number;
|
package/kotlin/sdk.tar.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"20804d67689cee628419f18ac4a7845afcff248ade4ff2fbf1830f109911b778","file":"node/cli-20804d67689cee628419f18ac4a7845afcff248ade4ff2fbf1830f109911b778.cjs"}
|
package/src/host/bridge-host.ts
CHANGED
|
@@ -615,7 +615,8 @@ export class SootSimBridgeHost {
|
|
|
615
615
|
this.wireWebSocketServer()
|
|
616
616
|
server.on('upgrade', (req, socket, head) => {
|
|
617
617
|
if (rejectUntrustedBridgeUpgrade(req, socket)) return
|
|
618
|
-
|
|
618
|
+
const pathname = new URL(req.url ?? '/', 'http://localhost').pathname
|
|
619
|
+
if (pathname === SWIFT_HMR_PATH) {
|
|
619
620
|
void import('../one-native-source')
|
|
620
621
|
.then(({ handleOneNativeSourceUpgrade }) => {
|
|
621
622
|
if (!handleOneNativeSourceUpgrade(req, socket, head)) socket.destroy()
|
|
@@ -627,6 +628,12 @@ export class SootSimBridgeHost {
|
|
|
627
628
|
}
|
|
628
629
|
if (handleWebSocketProxyUpgrade(req, socket, head)) return
|
|
629
630
|
this.wss?.handleUpgrade(req, socket, head, (ws) => {
|
|
631
|
+
// a staged bundle can carry a dev client, but this origin serves a fixed artifact.
|
|
632
|
+
if (pathname === '/hot') {
|
|
633
|
+
ws.on('error', () => {})
|
|
634
|
+
ws.close(1013, 'bundle has no development server')
|
|
635
|
+
return
|
|
636
|
+
}
|
|
630
637
|
this.wss?.emit('connection', ws, req)
|
|
631
638
|
})
|
|
632
639
|
})
|