peachsim 0.1.2159 → 0.1.2173
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/README.md +7 -1
- package/cli/app-catalog.ts +22 -15
- package/cli/bridge-flow-runner.ts +8 -7
- package/cli/commands/cleanup.ts +4 -2
- package/cli/commands/control.ts +2 -1
- package/cli/commands/kotlin.ts +2 -2
- package/cli/commands/package.ts +22 -7
- package/cli/commands/shell-url.ts +4 -2
- package/cli/native-input.ts +1 -1
- package/cli/outbound-endpoints.ts +13 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +2 -3
- package/dist-lib/auth/shared-session.cjs +2 -3
- 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 +3653 -3310
- 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 +6 -5
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +4226 -8528
- package/dist-lib/expo-swift-metadata.cjs +5 -1
- package/dist-lib/expo-swift-metadata.mjs +5 -1
- package/dist-lib/home-paths.cjs +2 -3
- package/dist-lib/host/bridge-host.cjs +4568 -4255
- package/dist-lib/host/fetch-proxy-handler.cjs +35 -15
- 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 +195 -155
- 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 +12 -7
- 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 +42 -16
- package/dist-lib/native-app-identity-project.cjs +10 -5
- package/dist-lib/native-app-identity-project.mjs +10 -5
- package/dist-lib/native-app-identity.cjs +9 -1
- package/dist-lib/native-app-identity.mjs +9 -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 +2 -3
- 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 +99 -78
- 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 +4 -2
- 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 +5762 -5118
- package/dist-lib/swift-compile.cjs +22 -11
- package/dist-lib/swift-compile.mjs +22 -11
- 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 +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +27 -13
- package/dist-lib/vite.cjs +119 -85
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/inspect-info.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +9 -1
- package/dist-types/packages/peach-engine/src/render-worker/ui-frame-clock.d.ts +26 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/worklet-sab.d.ts +1 -6
- package/kotlin/README.md +5 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/src/answeredNativePackages.ts +1 -5
- package/src/disk-cleanup.ts +44 -1
- package/src/expo-native-compiler-digest.ts +2 -0
- package/src/expo-native-workspace.ts +61 -16
- package/src/expo-swift-host.ts +64 -53
- package/src/expoSwiftContract.ts +6 -0
- package/src/home-activity.ts +124 -0
- package/src/home-paths.ts +1 -2
- package/src/installed-native-build-options.ts +27 -3
- package/src/kotlin-app.ts +156 -31
- package/src/kotlin-compose-bom.ts +64 -0
- package/src/kotlin-host.ts +12 -3
- package/src/kotlin-version-catalog.ts +77 -0
- package/src/native-app-identity-project.ts +3 -0
- package/src/native-app-identity.ts +15 -0
- package/src/native-git.ts +12 -0
- package/src/native-prebuilt.ts +11 -2
- package/src/nitro-compile.ts +12 -4
- package/src/one-native-app-catalog.ts +59 -0
- package/src/one-sdk-bundle.ts +3 -3
- package/src/one-sdk-preparation.ts +53 -8
- package/src/react-native-core-digest.ts +24 -0
- package/src/react-native-core.ts +239 -0
- package/src/reap-browser.ts +3 -1
- package/src/swift-compile.ts +6 -5
- package/src/swift-packages.ts +2 -0
- package/src/swift-wasm-prune.ts +20 -2
- package/src/turbo-bundle.ts +15 -2
- package/src/turbo-compile.ts +32 -6
- package/src/turbo-source.ts +29 -9
- package/src/vite-plugin-one.ts +8 -5
- package/src/one-native-app-accent.ts +0 -32
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2173 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "65a0698bf022ace2f4254f3f891828dedf403d61c102238e242084a2279e04eb", "home-paths.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "65a0698bf022ace2f4254f3f891828dedf403d61c102238e242084a2279e04eb", "home-paths.ts": "f5583b61f8bdd81823b3b29ff519a48daf9993719f194ddb7de22218472e90f9", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "5f41cd0bd86cb0cffbfb0047348b963f81d5e51cb0e8dd574c739b1a27aa56de", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -1416,7 +1416,7 @@ function isValidRuntimeVersion(value) {
|
|
|
1416
1416
|
}
|
|
1417
1417
|
|
|
1418
1418
|
// runtime-companion.json
|
|
1419
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
1419
|
+
var runtime_companion_default = { abi: 1, sha256: "c5311b24d34f15e1e93e1e7fc426600404705562e03ce05c7c359e341afc75cd", file: "node/cli-c5311b24d34f15e1e93e1e7fc426600404705562e03ce05c7c359e341afc75cd.cjs" };
|
|
1420
1420
|
|
|
1421
1421
|
// src/answeredNativePackages.ts
|
|
1422
1422
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -1441,8 +1441,7 @@ function ambientHomeDir() {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
function rnxHomeDir() {
|
|
1443
1443
|
const override = process.env[PEACH_HOME_ENV];
|
|
1444
|
-
|
|
1445
|
-
return ambientHomeDir();
|
|
1444
|
+
return override && override.length > 0 ? import_node_path.default.resolve(override) : ambientHomeDir();
|
|
1446
1445
|
}
|
|
1447
1446
|
function runtimesDir() {
|
|
1448
1447
|
return import_node_path.default.join(rnxHomeDir(), "runtimes");
|
|
@@ -1888,6 +1887,9 @@ var import_plist5 = __toESM(require("plist"), 1);
|
|
|
1888
1887
|
// src/expo-native-compiler-digest.ts
|
|
1889
1888
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1890
1889
|
|
|
1890
|
+
// src/react-native-core-digest.ts
|
|
1891
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1892
|
+
|
|
1891
1893
|
// src/swift-compiler-digest.ts
|
|
1892
1894
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1893
1895
|
|
|
@@ -1907,7 +1909,7 @@ function readIosSdkTree(root) {
|
|
|
1907
1909
|
|
|
1908
1910
|
// src/swift-standin-digest.ts
|
|
1909
1911
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1910
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
1912
|
+
var STANDIN_SOURCE_DIGEST = true ? "2cafa88ed6dca7afc4a60a09683b0395b95553c3677c2907ae7ce47fe4f45a73" : standinSourceDigest();
|
|
1911
1913
|
|
|
1912
1914
|
// src/expo-native-workspace.ts
|
|
1913
1915
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -1982,17 +1984,17 @@ function visit(node, visitor) {
|
|
|
1982
1984
|
visit.BREAK = BREAK;
|
|
1983
1985
|
visit.SKIP = SKIP;
|
|
1984
1986
|
visit.REMOVE = REMOVE;
|
|
1985
|
-
function visit_(key, node, visitor,
|
|
1986
|
-
const ctrl = callVisitor(key, node, visitor,
|
|
1987
|
+
function visit_(key, node, visitor, path17) {
|
|
1988
|
+
const ctrl = callVisitor(key, node, visitor, path17);
|
|
1987
1989
|
if (isNode(ctrl) || isPair(ctrl)) {
|
|
1988
|
-
replaceNode(key,
|
|
1989
|
-
return visit_(key, ctrl, visitor,
|
|
1990
|
+
replaceNode(key, path17, ctrl);
|
|
1991
|
+
return visit_(key, ctrl, visitor, path17);
|
|
1990
1992
|
}
|
|
1991
1993
|
if (typeof ctrl !== "symbol") {
|
|
1992
1994
|
if (isCollection(node)) {
|
|
1993
|
-
|
|
1995
|
+
path17 = Object.freeze(path17.concat(node));
|
|
1994
1996
|
for (let i = 0; i < node.items.length; ++i) {
|
|
1995
|
-
const ci = visit_(i, node.items[i], visitor,
|
|
1997
|
+
const ci = visit_(i, node.items[i], visitor, path17);
|
|
1996
1998
|
if (typeof ci === "number")
|
|
1997
1999
|
i = ci - 1;
|
|
1998
2000
|
else if (ci === BREAK)
|
|
@@ -2003,13 +2005,13 @@ function visit_(key, node, visitor, path16) {
|
|
|
2003
2005
|
}
|
|
2004
2006
|
}
|
|
2005
2007
|
} else if (isPair(node)) {
|
|
2006
|
-
|
|
2007
|
-
const ck = visit_("key", node.key, visitor,
|
|
2008
|
+
path17 = Object.freeze(path17.concat(node));
|
|
2009
|
+
const ck = visit_("key", node.key, visitor, path17);
|
|
2008
2010
|
if (ck === BREAK)
|
|
2009
2011
|
return BREAK;
|
|
2010
2012
|
else if (ck === REMOVE)
|
|
2011
2013
|
node.key = null;
|
|
2012
|
-
const cv = visit_("value", node.value, visitor,
|
|
2014
|
+
const cv = visit_("value", node.value, visitor, path17);
|
|
2013
2015
|
if (cv === BREAK)
|
|
2014
2016
|
return BREAK;
|
|
2015
2017
|
else if (cv === REMOVE)
|
|
@@ -2030,17 +2032,17 @@ async function visitAsync(node, visitor) {
|
|
|
2030
2032
|
visitAsync.BREAK = BREAK;
|
|
2031
2033
|
visitAsync.SKIP = SKIP;
|
|
2032
2034
|
visitAsync.REMOVE = REMOVE;
|
|
2033
|
-
async function visitAsync_(key, node, visitor,
|
|
2034
|
-
const ctrl = await callVisitor(key, node, visitor,
|
|
2035
|
+
async function visitAsync_(key, node, visitor, path17) {
|
|
2036
|
+
const ctrl = await callVisitor(key, node, visitor, path17);
|
|
2035
2037
|
if (isNode(ctrl) || isPair(ctrl)) {
|
|
2036
|
-
replaceNode(key,
|
|
2037
|
-
return visitAsync_(key, ctrl, visitor,
|
|
2038
|
+
replaceNode(key, path17, ctrl);
|
|
2039
|
+
return visitAsync_(key, ctrl, visitor, path17);
|
|
2038
2040
|
}
|
|
2039
2041
|
if (typeof ctrl !== "symbol") {
|
|
2040
2042
|
if (isCollection(node)) {
|
|
2041
|
-
|
|
2043
|
+
path17 = Object.freeze(path17.concat(node));
|
|
2042
2044
|
for (let i = 0; i < node.items.length; ++i) {
|
|
2043
|
-
const ci = await visitAsync_(i, node.items[i], visitor,
|
|
2045
|
+
const ci = await visitAsync_(i, node.items[i], visitor, path17);
|
|
2044
2046
|
if (typeof ci === "number")
|
|
2045
2047
|
i = ci - 1;
|
|
2046
2048
|
else if (ci === BREAK)
|
|
@@ -2051,13 +2053,13 @@ async function visitAsync_(key, node, visitor, path16) {
|
|
|
2051
2053
|
}
|
|
2052
2054
|
}
|
|
2053
2055
|
} else if (isPair(node)) {
|
|
2054
|
-
|
|
2055
|
-
const ck = await visitAsync_("key", node.key, visitor,
|
|
2056
|
+
path17 = Object.freeze(path17.concat(node));
|
|
2057
|
+
const ck = await visitAsync_("key", node.key, visitor, path17);
|
|
2056
2058
|
if (ck === BREAK)
|
|
2057
2059
|
return BREAK;
|
|
2058
2060
|
else if (ck === REMOVE)
|
|
2059
2061
|
node.key = null;
|
|
2060
|
-
const cv = await visitAsync_("value", node.value, visitor,
|
|
2062
|
+
const cv = await visitAsync_("value", node.value, visitor, path17);
|
|
2061
2063
|
if (cv === BREAK)
|
|
2062
2064
|
return BREAK;
|
|
2063
2065
|
else if (cv === REMOVE)
|
|
@@ -2084,23 +2086,23 @@ function initVisitor(visitor) {
|
|
|
2084
2086
|
}
|
|
2085
2087
|
return visitor;
|
|
2086
2088
|
}
|
|
2087
|
-
function callVisitor(key, node, visitor,
|
|
2089
|
+
function callVisitor(key, node, visitor, path17) {
|
|
2088
2090
|
if (typeof visitor === "function")
|
|
2089
|
-
return visitor(key, node,
|
|
2091
|
+
return visitor(key, node, path17);
|
|
2090
2092
|
if (isMap(node))
|
|
2091
|
-
return visitor.Map?.(key, node,
|
|
2093
|
+
return visitor.Map?.(key, node, path17);
|
|
2092
2094
|
if (isSeq(node))
|
|
2093
|
-
return visitor.Seq?.(key, node,
|
|
2095
|
+
return visitor.Seq?.(key, node, path17);
|
|
2094
2096
|
if (isPair(node))
|
|
2095
|
-
return visitor.Pair?.(key, node,
|
|
2097
|
+
return visitor.Pair?.(key, node, path17);
|
|
2096
2098
|
if (isScalar(node))
|
|
2097
|
-
return visitor.Scalar?.(key, node,
|
|
2099
|
+
return visitor.Scalar?.(key, node, path17);
|
|
2098
2100
|
if (isAlias(node))
|
|
2099
|
-
return visitor.Alias?.(key, node,
|
|
2101
|
+
return visitor.Alias?.(key, node, path17);
|
|
2100
2102
|
return void 0;
|
|
2101
2103
|
}
|
|
2102
|
-
function replaceNode(key,
|
|
2103
|
-
const parent =
|
|
2104
|
+
function replaceNode(key, path17, node) {
|
|
2105
|
+
const parent = path17[path17.length - 1];
|
|
2104
2106
|
if (isCollection(parent)) {
|
|
2105
2107
|
parent.items[key] = node;
|
|
2106
2108
|
} else if (isPair(parent)) {
|
|
@@ -2599,10 +2601,10 @@ function createNode(value, tagName, ctx) {
|
|
|
2599
2601
|
}
|
|
2600
2602
|
|
|
2601
2603
|
// ../../node_modules/yaml/browser/dist/nodes/Collection.js
|
|
2602
|
-
function collectionFromPath(schema4,
|
|
2604
|
+
function collectionFromPath(schema4, path17, value) {
|
|
2603
2605
|
let v6 = value;
|
|
2604
|
-
for (let i =
|
|
2605
|
-
const k =
|
|
2606
|
+
for (let i = path17.length - 1; i >= 0; --i) {
|
|
2607
|
+
const k = path17[i];
|
|
2606
2608
|
if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
|
|
2607
2609
|
const a = [];
|
|
2608
2610
|
a[k] = v6;
|
|
@@ -2621,7 +2623,7 @@ function collectionFromPath(schema4, path16, value) {
|
|
|
2621
2623
|
sourceObjects: /* @__PURE__ */ new Map()
|
|
2622
2624
|
});
|
|
2623
2625
|
}
|
|
2624
|
-
var isEmptyPath = (
|
|
2626
|
+
var isEmptyPath = (path17) => path17 == null || typeof path17 === "object" && !!path17[Symbol.iterator]().next().done;
|
|
2625
2627
|
var Collection = class extends NodeBase {
|
|
2626
2628
|
constructor(type, schema4) {
|
|
2627
2629
|
super(type);
|
|
@@ -2651,11 +2653,11 @@ var Collection = class extends NodeBase {
|
|
|
2651
2653
|
* be a Pair instance or a `{ key, value }` object, which may not have a key
|
|
2652
2654
|
* that already exists in the map.
|
|
2653
2655
|
*/
|
|
2654
|
-
addIn(
|
|
2655
|
-
if (isEmptyPath(
|
|
2656
|
+
addIn(path17, value) {
|
|
2657
|
+
if (isEmptyPath(path17))
|
|
2656
2658
|
this.add(value);
|
|
2657
2659
|
else {
|
|
2658
|
-
const [key, ...rest] =
|
|
2660
|
+
const [key, ...rest] = path17;
|
|
2659
2661
|
const node = this.get(key, true);
|
|
2660
2662
|
if (isCollection(node))
|
|
2661
2663
|
node.addIn(rest, value);
|
|
@@ -2669,8 +2671,8 @@ var Collection = class extends NodeBase {
|
|
|
2669
2671
|
* Removes a value from the collection.
|
|
2670
2672
|
* @returns `true` if the item was found and removed.
|
|
2671
2673
|
*/
|
|
2672
|
-
deleteIn(
|
|
2673
|
-
const [key, ...rest] =
|
|
2674
|
+
deleteIn(path17) {
|
|
2675
|
+
const [key, ...rest] = path17;
|
|
2674
2676
|
if (rest.length === 0)
|
|
2675
2677
|
return this.delete(key);
|
|
2676
2678
|
const node = this.get(key, true);
|
|
@@ -2684,8 +2686,8 @@ var Collection = class extends NodeBase {
|
|
|
2684
2686
|
* scalar values from their surrounding node; to disable set `keepScalar` to
|
|
2685
2687
|
* `true` (collections are always returned intact).
|
|
2686
2688
|
*/
|
|
2687
|
-
getIn(
|
|
2688
|
-
const [key, ...rest] =
|
|
2689
|
+
getIn(path17, keepScalar) {
|
|
2690
|
+
const [key, ...rest] = path17;
|
|
2689
2691
|
const node = this.get(key, true);
|
|
2690
2692
|
if (rest.length === 0)
|
|
2691
2693
|
return !keepScalar && isScalar(node) ? node.value : node;
|
|
@@ -2703,8 +2705,8 @@ var Collection = class extends NodeBase {
|
|
|
2703
2705
|
/**
|
|
2704
2706
|
* Checks if the collection includes a value with the key `key`.
|
|
2705
2707
|
*/
|
|
2706
|
-
hasIn(
|
|
2707
|
-
const [key, ...rest] =
|
|
2708
|
+
hasIn(path17) {
|
|
2709
|
+
const [key, ...rest] = path17;
|
|
2708
2710
|
if (rest.length === 0)
|
|
2709
2711
|
return this.has(key);
|
|
2710
2712
|
const node = this.get(key, true);
|
|
@@ -2714,8 +2716,8 @@ var Collection = class extends NodeBase {
|
|
|
2714
2716
|
* Sets a value in this collection. For `!!set`, `value` needs to be a
|
|
2715
2717
|
* boolean to add/remove the item from the set.
|
|
2716
2718
|
*/
|
|
2717
|
-
setIn(
|
|
2718
|
-
const [key, ...rest] =
|
|
2719
|
+
setIn(path17, value) {
|
|
2720
|
+
const [key, ...rest] = path17;
|
|
2719
2721
|
if (rest.length === 0) {
|
|
2720
2722
|
this.set(key, value);
|
|
2721
2723
|
} else {
|
|
@@ -4304,9 +4306,9 @@ function visit2(cst, visitor) {
|
|
|
4304
4306
|
visit2.BREAK = BREAK2;
|
|
4305
4307
|
visit2.SKIP = SKIP2;
|
|
4306
4308
|
visit2.REMOVE = REMOVE2;
|
|
4307
|
-
visit2.itemAtPath = (cst,
|
|
4309
|
+
visit2.itemAtPath = (cst, path17) => {
|
|
4308
4310
|
let item = cst;
|
|
4309
|
-
for (const [field, index] of
|
|
4311
|
+
for (const [field, index] of path17) {
|
|
4310
4312
|
const tok = item?.[field];
|
|
4311
4313
|
if (tok && "items" in tok) {
|
|
4312
4314
|
item = tok.items[index];
|
|
@@ -4315,23 +4317,23 @@ visit2.itemAtPath = (cst, path16) => {
|
|
|
4315
4317
|
}
|
|
4316
4318
|
return item;
|
|
4317
4319
|
};
|
|
4318
|
-
visit2.parentCollection = (cst,
|
|
4319
|
-
const parent = visit2.itemAtPath(cst,
|
|
4320
|
-
const field =
|
|
4320
|
+
visit2.parentCollection = (cst, path17) => {
|
|
4321
|
+
const parent = visit2.itemAtPath(cst, path17.slice(0, -1));
|
|
4322
|
+
const field = path17[path17.length - 1][0];
|
|
4321
4323
|
const coll = parent?.[field];
|
|
4322
4324
|
if (coll && "items" in coll)
|
|
4323
4325
|
return coll;
|
|
4324
4326
|
throw new Error("Parent collection not found");
|
|
4325
4327
|
};
|
|
4326
|
-
function _visit(
|
|
4327
|
-
let ctrl = visitor(item,
|
|
4328
|
+
function _visit(path17, item, visitor) {
|
|
4329
|
+
let ctrl = visitor(item, path17);
|
|
4328
4330
|
if (typeof ctrl === "symbol")
|
|
4329
4331
|
return ctrl;
|
|
4330
4332
|
for (const field of ["key", "value"]) {
|
|
4331
4333
|
const token = item[field];
|
|
4332
4334
|
if (token && "items" in token) {
|
|
4333
4335
|
for (let i = 0; i < token.items.length; ++i) {
|
|
4334
|
-
const ci = _visit(Object.freeze(
|
|
4336
|
+
const ci = _visit(Object.freeze(path17.concat([[field, i]])), token.items[i], visitor);
|
|
4335
4337
|
if (typeof ci === "number")
|
|
4336
4338
|
i = ci - 1;
|
|
4337
4339
|
else if (ci === BREAK2)
|
|
@@ -4342,10 +4344,10 @@ function _visit(path16, item, visitor) {
|
|
|
4342
4344
|
}
|
|
4343
4345
|
}
|
|
4344
4346
|
if (typeof ctrl === "function" && field === "key")
|
|
4345
|
-
ctrl = ctrl(item,
|
|
4347
|
+
ctrl = ctrl(item, path17);
|
|
4346
4348
|
}
|
|
4347
4349
|
}
|
|
4348
|
-
return typeof ctrl === "function" ? ctrl(item,
|
|
4350
|
+
return typeof ctrl === "function" ? ctrl(item, path17) : ctrl;
|
|
4349
4351
|
}
|
|
4350
4352
|
|
|
4351
4353
|
// ../../node_modules/yaml/browser/dist/parse/lexer.js
|
|
@@ -4403,10 +4405,13 @@ var import_ignore = __toESM(require("ignore"), 1);
|
|
|
4403
4405
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4404
4406
|
var FAILED_OUTPUT_KEPT_MS = 7 * 24 * 36e5;
|
|
4405
4407
|
|
|
4408
|
+
// src/native-git.ts
|
|
4409
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4410
|
+
|
|
4406
4411
|
// src/one-sdk-preparation.ts
|
|
4407
4412
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4408
4413
|
|
|
4409
|
-
// src/
|
|
4414
|
+
// src/native-prebuilt.ts
|
|
4410
4415
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4411
4416
|
|
|
4412
4417
|
// src/is-record.ts
|
|
@@ -4415,6 +4420,9 @@ function isRecord(value) {
|
|
|
4415
4420
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
4416
4421
|
}
|
|
4417
4422
|
|
|
4423
|
+
// src/oneSdkContract.ts
|
|
4424
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4425
|
+
|
|
4418
4426
|
// src/swiftContract.ts
|
|
4419
4427
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4420
4428
|
|
|
@@ -5380,7 +5388,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
5380
5388
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
5381
5389
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
5382
5390
|
).join("");
|
|
5383
|
-
var compilerSourceDigest = true ? "
|
|
5391
|
+
var compilerSourceDigest = true ? "4fe13bc9a7fef541d09abfb87d6aa775bd9d830d442d6efa43a0e2d6bc34faf5" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
5384
5392
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
5385
5393
|
"CFAllocator",
|
|
5386
5394
|
"CFArray",
|
|
@@ -5597,9 +5605,6 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
5597
5605
|
// src/native-app-identity-project.ts
|
|
5598
5606
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5599
5607
|
|
|
5600
|
-
// src/native-prebuilt.ts
|
|
5601
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5602
|
-
|
|
5603
5608
|
// src/nitroContract.ts
|
|
5604
5609
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5605
5610
|
|
|
@@ -7728,7 +7733,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
7728
7733
|
"react-native-keyboard-manager",
|
|
7729
7734
|
"react-native-keys",
|
|
7730
7735
|
"react-native-loader-kit",
|
|
7731
|
-
"react-native-localization",
|
|
7732
7736
|
"react-native-mixpanel",
|
|
7733
7737
|
"react-native-moengage",
|
|
7734
7738
|
"react-native-navigation-mode",
|
|
@@ -8725,9 +8729,25 @@ function* rubyFiles(directory, seen, iosRoot = false) {
|
|
|
8725
8729
|
return files;
|
|
8726
8730
|
}
|
|
8727
8731
|
function* nativeBuildOptionsWalk(projectRoot, versions, environment) {
|
|
8728
|
-
|
|
8732
|
+
let sensorOptions = {};
|
|
8733
|
+
const sensors = versions["expo-sensors"];
|
|
8734
|
+
if (sensors && resolveCompatVersionRange([">=58.0.4 <59.0.0"], sensors).status === "matched") {
|
|
8735
|
+
const file = import_node_path11.default.join(projectRoot, "ios", "Podfile.properties.json");
|
|
8736
|
+
const source = yield { type: "read", path: file };
|
|
8737
|
+
if (source !== null && typeof source !== "string")
|
|
8738
|
+
throw new Error(`cannot inspect ${file}`);
|
|
8739
|
+
const properties = source === null ? {} : JSON.parse(source);
|
|
8740
|
+
if (typeof properties !== "object" || properties === null || Array.isArray(properties))
|
|
8741
|
+
throw new Error(`${file} must contain an object`);
|
|
8742
|
+
sensorOptions = {
|
|
8743
|
+
"expo-sensors": {
|
|
8744
|
+
EXPO_DISABLE_MOTION_PERMISSION: Reflect.get(properties, "MOTION_PERMISSION") === "false"
|
|
8745
|
+
}
|
|
8746
|
+
};
|
|
8747
|
+
}
|
|
8748
|
+
if (!needsRiveOptions(versions)) return sensorOptions;
|
|
8729
8749
|
if (environment.USE_RIVE_LEGACY === "1" || environment.USE_RIVE_LEGACY === "true")
|
|
8730
|
-
return { [RIVE_PACKAGE]: { USE_RIVE_LEGACY: true } };
|
|
8750
|
+
return { ...sensorOptions, [RIVE_PACKAGE]: { USE_RIVE_LEGACY: true } };
|
|
8731
8751
|
const ios = import_node_path11.default.join(projectRoot, "ios");
|
|
8732
8752
|
const podfile = import_node_path11.default.join(ios, "Podfile");
|
|
8733
8753
|
const files = [podfile, ...yield* rubyFiles(ios, /* @__PURE__ */ new Set(), true)];
|
|
@@ -8748,7 +8768,7 @@ function* nativeBuildOptionsWalk(projectRoot, versions, environment) {
|
|
|
8748
8768
|
value = literal2[1] === "true";
|
|
8749
8769
|
}
|
|
8750
8770
|
}
|
|
8751
|
-
return { [RIVE_PACKAGE]: { USE_RIVE_LEGACY: value } };
|
|
8771
|
+
return { ...sensorOptions, [RIVE_PACKAGE]: { USE_RIVE_LEGACY: value } };
|
|
8752
8772
|
}
|
|
8753
8773
|
function readInstalledNativeBuildOptions(projectRoot, versions, environment = process.env) {
|
|
8754
8774
|
const walk = nativeBuildOptionsWalk(projectRoot, versions, environment);
|
|
@@ -10868,20 +10888,31 @@ async function handleReplacementModuleRequest(req, res, options = {}) {
|
|
|
10868
10888
|
return true;
|
|
10869
10889
|
}
|
|
10870
10890
|
|
|
10871
|
-
// src/one-native-app-
|
|
10891
|
+
// src/one-native-app-catalog.ts
|
|
10872
10892
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10873
|
-
var
|
|
10893
|
+
var import_node_path15 = __toESM(require("node:path"), 1);
|
|
10894
|
+
var ONE_NATIVE_APP_CATALOG_ROUTE = "/__peach/native-app-catalog";
|
|
10874
10895
|
var HEX_COLOR = /^#[\da-f]{6}$/i;
|
|
10875
|
-
function
|
|
10896
|
+
function parseAccent(value) {
|
|
10876
10897
|
if (!isRecord(value) || typeof value.light !== "string") return null;
|
|
10877
10898
|
if (!HEX_COLOR.test(value.light)) return null;
|
|
10878
10899
|
const dark = typeof value.dark === "string" && HEX_COLOR.test(value.dark) ? value.dark : value.light;
|
|
10879
10900
|
return { light: value.light, dark };
|
|
10880
10901
|
}
|
|
10881
|
-
function
|
|
10902
|
+
function parseOneNativeAppCatalog(value) {
|
|
10903
|
+
if (!isRecord(value)) return null;
|
|
10904
|
+
const accentColor = parseAccent(value.accentColor);
|
|
10905
|
+
const assetCatalog = typeof value.assetCatalog === "string" && import_node_path15.default.isAbsolute(value.assetCatalog) ? value.assetCatalog : null;
|
|
10906
|
+
return accentColor || assetCatalog ? { accentColor, assetCatalog } : null;
|
|
10907
|
+
}
|
|
10908
|
+
function readOneNativeAppCatalog(entryConfig, root) {
|
|
10882
10909
|
const app = isRecord(entryConfig) ? entryConfig.app : void 0;
|
|
10883
10910
|
const ios = isRecord(app) ? app.ios : void 0;
|
|
10884
|
-
|
|
10911
|
+
if (!isRecord(ios)) return null;
|
|
10912
|
+
return parseOneNativeAppCatalog({
|
|
10913
|
+
accentColor: ios.accentColor,
|
|
10914
|
+
assetCatalog: typeof ios.assetCatalog === "string" ? import_node_path15.default.resolve(root, ios.assetCatalog) : null
|
|
10915
|
+
});
|
|
10885
10916
|
}
|
|
10886
10917
|
|
|
10887
10918
|
// src/one-widget-metadata.ts
|
|
@@ -10890,7 +10921,7 @@ var import_node_child_process8 = require("node:child_process");
|
|
|
10890
10921
|
var import_node_crypto5 = require("node:crypto");
|
|
10891
10922
|
var import_node_fs11 = __toESM(require("node:fs"), 1);
|
|
10892
10923
|
var import_node_module2 = require("node:module");
|
|
10893
|
-
var
|
|
10924
|
+
var import_node_path16 = __toESM(require("node:path"), 1);
|
|
10894
10925
|
var import_node_util7 = require("node:util");
|
|
10895
10926
|
var run6 = (0, import_node_util7.promisify)(import_node_child_process8.execFile);
|
|
10896
10927
|
var configs = /* @__PURE__ */ new Map();
|
|
@@ -10924,12 +10955,12 @@ async function readConfig(root) {
|
|
|
10924
10955
|
const reading = reads.get(root);
|
|
10925
10956
|
if (reading) return reading;
|
|
10926
10957
|
const promise = (async () => {
|
|
10927
|
-
(0, import_node_module2.createRequire)(
|
|
10928
|
-
const cache =
|
|
10958
|
+
(0, import_node_module2.createRequire)(import_node_path16.default.join(root, "package.json")).resolve("one/vite");
|
|
10959
|
+
const cache = import_node_path16.default.join(root, "node_modules/.cache/peach-widget-config");
|
|
10929
10960
|
import_node_fs11.default.mkdirSync(cache, { recursive: true });
|
|
10930
|
-
const directory = import_node_fs11.default.mkdtempSync(
|
|
10931
|
-
const script =
|
|
10932
|
-
const result =
|
|
10961
|
+
const directory = import_node_fs11.default.mkdtempSync(import_node_path16.default.join(cache, "read-"));
|
|
10962
|
+
const script = import_node_path16.default.join(directory, "read.mjs");
|
|
10963
|
+
const result = import_node_path16.default.join(directory, "result.json");
|
|
10933
10964
|
import_node_fs11.default.writeFileSync(script, CONFIG_CHILD);
|
|
10934
10965
|
try {
|
|
10935
10966
|
await run6(process.execPath, [script, result], {
|
|
@@ -10961,8 +10992,8 @@ async function readConfig(root) {
|
|
|
10961
10992
|
}
|
|
10962
10993
|
const watched = [
|
|
10963
10994
|
.../* @__PURE__ */ new Set([
|
|
10964
|
-
|
|
10965
|
-
...value.watched.map((file) =>
|
|
10995
|
+
import_node_path16.default.join(root, "package.json"),
|
|
10996
|
+
...value.watched.map((file) => import_node_path16.default.resolve(root, file))
|
|
10966
10997
|
])
|
|
10967
10998
|
];
|
|
10968
10999
|
const loaded2 = {
|
|
@@ -11000,8 +11031,8 @@ async function readOneWidgetSources(appRoot) {
|
|
|
11000
11031
|
if (!config.widget) return null;
|
|
11001
11032
|
const widget = config.widget;
|
|
11002
11033
|
const sourceFiles = {
|
|
11003
|
-
"OneWidget.swift":
|
|
11004
|
-
"OneWidgetContract.swift":
|
|
11034
|
+
"OneWidget.swift": import_node_path16.default.join(root, "ios/OneWidgets/OneWidget.swift"),
|
|
11035
|
+
"OneWidgetContract.swift": import_node_path16.default.join(
|
|
11005
11036
|
root,
|
|
11006
11037
|
"ios",
|
|
11007
11038
|
widget.appName,
|
|
@@ -11018,7 +11049,7 @@ async function readOneWidgetSources(appRoot) {
|
|
|
11018
11049
|
if (!Buffer.from(text).equals(bytes))
|
|
11019
11050
|
throw new Error(`One widget prebuild source is not UTF-8: ${file}`);
|
|
11020
11051
|
files.set(name, text);
|
|
11021
|
-
sources[
|
|
11052
|
+
sources[import_node_path16.default.relative(root, file).split(import_node_path16.default.sep).join("/")] = (0, import_node_crypto5.createHash)("sha256").update(bytes).digest("hex");
|
|
11022
11053
|
}
|
|
11023
11054
|
const contract = files.get("OneWidgetContract.swift") ?? "";
|
|
11024
11055
|
const source = files.get("OneWidget.swift") ?? "";
|
|
@@ -11431,11 +11462,14 @@ function peachPlugin(options = {}) {
|
|
|
11431
11462
|
return html.replace("</head>", inject + "</head>");
|
|
11432
11463
|
};
|
|
11433
11464
|
server.middlewares.use((req, res, next) => {
|
|
11434
|
-
if ((req.url ?? "").split("?")[0] !==
|
|
11465
|
+
if ((req.url ?? "").split("?")[0] !== ONE_NATIVE_APP_CATALOG_ROUTE) return next();
|
|
11435
11466
|
res.setHeader("content-type", "application/json");
|
|
11436
11467
|
res.end(
|
|
11437
11468
|
JSON.stringify(
|
|
11438
|
-
|
|
11469
|
+
readOneNativeAppCatalog(
|
|
11470
|
+
Reflect.get(globalThis, "__vxrnNativeEntryConfig"),
|
|
11471
|
+
server.config.root
|
|
11472
|
+
)
|
|
11439
11473
|
)
|
|
11440
11474
|
);
|
|
11441
11475
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2173 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -16,7 +16,6 @@ export { INSPECT_APP_ROOT_TEST_ID, INSPECT_OVERLAY_TEST_ID, pickInspectTarget, s
|
|
|
16
16
|
export declare function collectInspectTree(root: SootSimNode): SootSimInspectTreeNode[];
|
|
17
17
|
export declare function getUIKitAccessibilityFrame(node: SootSimNode, painted?: InspectInfo['absolute'], query?: VisibleFrameQuery): InspectInfo['absolute'] | undefined;
|
|
18
18
|
export declare function collectBackgroundPlaybackNodeIds(root: SootSimNode, drivenIds: ReadonlySet<number>, nodeId: (node: SootSimNode) => number | undefined): Set<number>;
|
|
19
|
-
export declare function markBackgroundPlaybackInspectInfos<T>(infos: T[], nodeIds: ReadonlySet<number>): T[];
|
|
20
19
|
export declare function collectInspectInfo(node: SootSimNode, query?: VisibleFrameQuery): InspectInfo;
|
|
21
20
|
export declare function collectInspectQueryInfo(node: SootSimNode, query?: VisibleFrameQuery): InspectQueryInfo;
|
|
22
21
|
export declare function collectHoverInspectInfo(node: SootSimNode, query?: VisibleFrameQuery): InspectInfo;
|
|
@@ -1236,7 +1236,6 @@ export type CompositorHostToWorker = {
|
|
|
1236
1236
|
surfaces: CompositorSurfaceInit[];
|
|
1237
1237
|
treePort: MessagePort;
|
|
1238
1238
|
workletSAB?: SharedArrayBuffer;
|
|
1239
|
-
uiFrameSAB?: SharedArrayBuffer;
|
|
1240
1239
|
layoutSAB?: SharedArrayBuffer;
|
|
1241
1240
|
hostTimeOrigin: number;
|
|
1242
1241
|
pageDisplayClock?: SharedArrayBuffer;
|
|
@@ -1518,6 +1517,9 @@ export type ShellToCompositorMessage = {
|
|
|
1518
1517
|
} | EngineResourceResponse | WireSurfaceUpdate | {
|
|
1519
1518
|
type: 'shellInbox';
|
|
1520
1519
|
buffer: SharedArrayBuffer;
|
|
1520
|
+
} | {
|
|
1521
|
+
type: 'uiFrameClock';
|
|
1522
|
+
buffer: SharedArrayBuffer;
|
|
1521
1523
|
} | {
|
|
1522
1524
|
type: 'nativeSurfaceRegistrations';
|
|
1523
1525
|
surfaces: import('../../../peach-globals/src/index.d.ts').NativeSurfaceRegistration[];
|
|
@@ -26,6 +26,7 @@ import type { SHELL_SCENE_FAST_KEYS, SHELL_SCENE_SLOW_KEYS, ShellScenePayload, S
|
|
|
26
26
|
import type { WireSurfaceUpdate } from './shell-tree-wire.d.ts';
|
|
27
27
|
import type { ShellInspectBridgeRequest, ShellTestBridgeRequest } from './test-bridge-protocol.d.ts';
|
|
28
28
|
import type { TreeSyncPublishKind } from './tree-sync-port.d.ts';
|
|
29
|
+
import type { UiFrameStats } from './ui-frame-clock.d.ts';
|
|
29
30
|
import type { WebViewCaptureRegistration, WebViewCaptureTarget } from './webview-capture-protocol.d.ts';
|
|
30
31
|
import type { WorkerStorageSyncMessage } from './worker-storage.d.ts';
|
|
31
32
|
import type { UiRpcMailboxes } from './worklet-sab.d.ts';
|
|
@@ -254,7 +255,6 @@ export type ShellHostToWorker = {
|
|
|
254
255
|
workletSAB?: SharedArrayBuffer;
|
|
255
256
|
synchronizableArenas?: SynchronizableArenas;
|
|
256
257
|
uiRpcMailboxes?: UiRpcMailboxes;
|
|
257
|
-
uiFrameSAB?: SharedArrayBuffer;
|
|
258
258
|
hostTimeOrigin: number;
|
|
259
259
|
animationClock: AnimationClockSnapshot;
|
|
260
260
|
layoutSAB?: SharedArrayBuffer;
|
|
@@ -387,6 +387,10 @@ export type ShellHostToWorker = {
|
|
|
387
387
|
} | {
|
|
388
388
|
type: 'shellMemorySample';
|
|
389
389
|
requestId: number;
|
|
390
|
+
} | {
|
|
391
|
+
type: 'uiFrameStats';
|
|
392
|
+
requestId: number;
|
|
393
|
+
reset: boolean;
|
|
390
394
|
} | {
|
|
391
395
|
type: 'fetchRecorderSetEnabled';
|
|
392
396
|
enabled: boolean;
|
|
@@ -569,6 +573,10 @@ export type ShellWorkerToHost = {
|
|
|
569
573
|
type: 'shellMemorySampleResult';
|
|
570
574
|
requestId: number;
|
|
571
575
|
sample: unknown;
|
|
576
|
+
} | {
|
|
577
|
+
type: 'uiFrameStatsResult';
|
|
578
|
+
requestId: number;
|
|
579
|
+
stats: UiFrameStats;
|
|
572
580
|
} | {
|
|
573
581
|
type: 'photoAdded';
|
|
574
582
|
requestId: number;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare function createUiFrameClockBuffer(): SharedArrayBuffer;
|
|
2
|
+
export type UiFrameOffer = 'none' | 'served' | 'expired' | 'posted';
|
|
3
|
+
export declare class CompositorUiFrameClock {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(post: (epochMs: number) => void);
|
|
6
|
+
share(buffer: SharedArrayBuffer | null): void;
|
|
7
|
+
get demanded(): boolean;
|
|
8
|
+
noteDemand(wanted: boolean): void;
|
|
9
|
+
get offered(): number;
|
|
10
|
+
noteProduction(ms: number): void;
|
|
11
|
+
offer(epochMs: number): UiFrameOffer;
|
|
12
|
+
onDemand(wake: () => void): void;
|
|
13
|
+
}
|
|
14
|
+
export declare class ShellUiFrameClock {
|
|
15
|
+
#private;
|
|
16
|
+
constructor(run: (epochMs: number, offer: number | null) => void, postDemand: (wanted: boolean) => void);
|
|
17
|
+
share(buffer: SharedArrayBuffer | null): void;
|
|
18
|
+
setDemand(wanted: boolean): void;
|
|
19
|
+
receive(epochMs: number): void;
|
|
20
|
+
stats(reset: boolean): UiFrameStats;
|
|
21
|
+
}
|
|
22
|
+
export interface UiFrameStats {
|
|
23
|
+
readonly demanded: boolean;
|
|
24
|
+
readonly offered: number;
|
|
25
|
+
readonly served: number;
|
|
26
|
+
}
|
|
@@ -6,10 +6,10 @@ import type { WorkletThreadIdentity } from './workletThreadIdentityContract.d.ts
|
|
|
6
6
|
import type { SootSimAnimationInfo } from '../../../peach-globals/src/index.d.ts';
|
|
7
7
|
export { CSS_EVENT_MASK, type CSSEventType, type NativeCSSEvent, } from './reanimated-css-contract.d.ts';
|
|
8
8
|
import { WorkletMicrotaskQueue } from './worklet-runtime-kind.d.ts';
|
|
9
|
-
import { SAB_COMPOSITOR_TASK_PENDING_INT32_INDEX, SAB_DEMAND_EPOCH_INT32_INDEX, SAB_TENANT_LIVE_FRAMES_INT32_INDEX,
|
|
9
|
+
import { SAB_COMPOSITOR_TASK_PENDING_INT32_INDEX, SAB_DEMAND_EPOCH_INT32_INDEX, SAB_TENANT_LIVE_FRAMES_INT32_INDEX, createSharedValueSAB, createWorkletPeerEpoch, type WorkletPeerEpoch } from './worklet-sab.d.ts';
|
|
10
10
|
import { type SynchronizableHostObject, type WorkletClosure, type WorkletFn } from './worklet-serialize.d.ts';
|
|
11
11
|
import { type ClosureSpec, type ValueSpec, type WorkletChannel, type WorkletHostValueUpdate, type WorkletMessage, type WorkletMessagePayload, type WorkletViewRef } from './worklet-wire.d.ts';
|
|
12
|
-
export { SAB_COMPOSITOR_TASK_PENDING_INT32_INDEX, SAB_DEMAND_EPOCH_INT32_INDEX, SAB_TENANT_LIVE_FRAMES_INT32_INDEX,
|
|
12
|
+
export { SAB_COMPOSITOR_TASK_PENDING_INT32_INDEX, SAB_DEMAND_EPOCH_INT32_INDEX, SAB_TENANT_LIVE_FRAMES_INT32_INDEX, createSharedValueSAB, createWorkletPeerEpoch, type WorkletPeerEpoch, };
|
|
13
13
|
export declare function isSynchronizableLike(value: unknown): value is SynchronizableHostObject;
|
|
14
14
|
export declare function isRunningPeerWorklet(): boolean;
|
|
15
15
|
export interface WorkletDispatchOptions {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { type SynchronizableArenas } from './native-dynamic-synchronizable.d.ts';
|
|
2
2
|
export declare const SAB_MAGIC = 1347328513;
|
|
3
|
-
export declare const SAB_HEADER_FLOATS =
|
|
3
|
+
export declare const SAB_HEADER_FLOATS = 4;
|
|
4
4
|
export declare const SAB_DEMAND_EPOCH_INT32_INDEX = 4;
|
|
5
5
|
export declare const SAB_COMPOSITOR_TASK_PENDING_INT32_INDEX = 5;
|
|
6
6
|
export declare const SAB_TENANT_LIVE_FRAMES_INT32_INDEX = 6;
|
|
7
|
-
export declare const SAB_UI_FRAME_DEMAND_INT32_INDEX = 7;
|
|
8
|
-
export declare const SAB_UI_FRAME_TIME_FLOAT64_INDEX = 4;
|
|
9
|
-
export declare const SAB_UI_FRAME_OFFERED_INT32_INDEX = 10;
|
|
10
|
-
export declare const SAB_UI_FRAME_DONE_INT32_INDEX = 11;
|
|
11
7
|
export declare const DEFAULT_CAPACITY = 262144;
|
|
12
8
|
declare const WORKLET_PEER_EPOCH_BRAND: unique symbol;
|
|
13
9
|
export type WorkletPeerEpoch = number & {
|
|
@@ -23,6 +19,5 @@ export declare function allocateWorkletPeerEpoch(): WorkletPeerEpoch;
|
|
|
23
19
|
export declare function getOrCreateWorkletSAB(): SharedArrayBuffer | null;
|
|
24
20
|
export declare function getOrCreateSynchronizableArenas(): SynchronizableArenas | null;
|
|
25
21
|
export declare function getOrCreateUiRpcMailboxes(): UiRpcMailboxes | null;
|
|
26
|
-
export declare function getUiFrameClockSAB(): SharedArrayBuffer | null;
|
|
27
22
|
export declare function getOrCreateLayoutSAB(): SharedArrayBuffer | null;
|
|
28
23
|
export {};
|