peachsim 0.1.1800 → 0.1.1802
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/commands/package.ts +17 -2
- 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 +177 -166
- package/dist-lib/capture-contract.cjs +2 -2
- package/dist-lib/capture-contract.mjs +2 -2
- 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 +2 -2
- package/dist-lib/cloud.mjs +2 -2
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +143 -150
- 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 +201 -190
- package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
- 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 +4 -4
- 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 +3 -3
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- 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/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 +23 -23
- package/dist-lib/public-origins-lib.json +52 -52
- 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 +208 -197
- package/dist-lib/swift-compile.cjs +8 -3
- package/dist-lib/swift-compile.mjs +8 -3
- 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 +142 -150
- package/dist-lib/vite.cjs +2 -2
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
- package/package.json +3 -4
- package/runtime-companion.json +1 -1
- package/src/appPackageContract.ts +5 -0
- package/src/capture-contract.ts +9 -0
- package/src/expo-native-workspace.ts +2 -0
- package/src/nitro-superset.lock.json +33 -14
- package/src/swift-cxx-declarations.ts +114 -130
- package/src/swift-cxx-standin.ts +3 -3
- package/src/swift-shared-sdk.ts +11 -1
- package/src/swift-standins.ts +33 -30
- package/src/turbo-source.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1802 | (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;
|
|
@@ -19722,7 +19722,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
19722
19722
|
);
|
|
19723
19723
|
const key2 = JSON.stringify(["v9", toolchainBin, sdk, frameworks, swiftSdkOptions()]);
|
|
19724
19724
|
const cached2 = sdkViews.get(key2);
|
|
19725
|
-
if (cached2) return cached2;
|
|
19725
|
+
if (cached2) return touchSdkView(cached2);
|
|
19726
19726
|
const configuration = (0, import_node_child_process13.execFileSync)(
|
|
19727
19727
|
import_node_path27.default.join(toolchainBin, "swift"),
|
|
19728
19728
|
[
|
|
@@ -19806,6 +19806,11 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
19806
19806
|
}
|
|
19807
19807
|
const options = ["--swift-sdks-path", view];
|
|
19808
19808
|
sdkViews.set(key2, options);
|
|
19809
|
+
return touchSdkView(options);
|
|
19810
|
+
}
|
|
19811
|
+
function touchSdkView(options) {
|
|
19812
|
+
const now = /* @__PURE__ */ new Date();
|
|
19813
|
+
import_node_fs29.default.utimesSync(options[1], now, now);
|
|
19809
19814
|
return options;
|
|
19810
19815
|
}
|
|
19811
19816
|
function swiftSharedSdkInputFiles(moduleRoot) {
|
|
@@ -26577,7 +26582,7 @@ var init_swift_compile = __esm({
|
|
|
26577
26582
|
darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quoted, "-Wl,--end-lib"] : [];
|
|
26578
26583
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
26579
26584
|
MULTI_MANIFEST_VERSION = 55;
|
|
26580
|
-
compilerSourceDigest = true ? "
|
|
26585
|
+
compilerSourceDigest = true ? "7c4d029be9f859618f690e055ecfedb7b7adbe138aaae050c8453b88aefedfd9" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
26581
26586
|
DIRECTIVE = /^[ \t]*#(?:if|elseif)\b/;
|
|
26582
26587
|
OS_IOS = /\b(?:os\(\s*iOS\s*\)|targetEnvironment\(\s*simulator\s*\))/g;
|
|
26583
26588
|
DELEGATE_CLASS = /^class\s+[A-Za-z_]\w*\s*(?:<[^>{]*>)?\s*:[^{]*\b(?:UIApplicationDelegate|UISceneDelegate|UIWindowSceneDelegate)\b[^{]*\{/;
|
|
@@ -31201,6 +31206,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
|
|
|
31201
31206
|
import_node_fs47.default.mkdirSync(import_node_path45.default.dirname(work), { recursive: true });
|
|
31202
31207
|
await import_node_fs47.default.promises.cp(root, partial, {
|
|
31203
31208
|
recursive: true,
|
|
31209
|
+
mode: import_node_fs47.default.constants.COPYFILE_FICLONE,
|
|
31204
31210
|
preserveTimestamps: true,
|
|
31205
31211
|
verbatimSymlinks: true,
|
|
31206
31212
|
filter: (source) => !excluded(import_node_path45.default.relative(root, source))
|
|
@@ -32526,7 +32532,7 @@ var init_swift_standin_digest = __esm({
|
|
|
32526
32532
|
import_node_path49 = __toESM(require("node:path"), 1);
|
|
32527
32533
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
32528
32534
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
32529
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
32535
|
+
STANDIN_SOURCE_DIGEST = true ? "5393643632ab792f513224a720a7fe55184a7d3aa3e5aaa68fea09f0550989f7" : standinSourceDigest();
|
|
32530
32536
|
}
|
|
32531
32537
|
});
|
|
32532
32538
|
|
|
@@ -32677,129 +32683,113 @@ var init_output_lock_stdio = __esm({
|
|
|
32677
32683
|
});
|
|
32678
32684
|
|
|
32679
32685
|
// src/swift-cxx-declarations.ts
|
|
32680
|
-
function cxxDeclarations(astFile, headers) {
|
|
32681
|
-
const stream = import_stream_json.default.parser();
|
|
32686
|
+
async function cxxDeclarations(astFile, headers) {
|
|
32682
32687
|
const stack = [];
|
|
32683
32688
|
const result = [];
|
|
32684
32689
|
let lastFile = "";
|
|
32685
|
-
let failed;
|
|
32686
32690
|
let rootComplete = false;
|
|
32687
|
-
|
|
32688
|
-
|
|
32689
|
-
|
|
32690
|
-
|
|
32691
|
-
|
|
32692
|
-
|
|
32693
|
-
|
|
32694
|
-
|
|
32695
|
-
|
|
32696
|
-
|
|
32697
|
-
|
|
32698
|
-
object: token === "startObject",
|
|
32699
|
-
relation: parent?.object ? parent.key : void 0
|
|
32700
|
-
});
|
|
32701
|
-
} else if (token === "endObject" || token === "endArray") {
|
|
32702
|
-
const frame = stack.pop();
|
|
32703
|
-
if (!frame) throw new Error("unbalanced clang AST");
|
|
32704
|
-
if (stack.length === 0 && frame.object) rootComplete = true;
|
|
32705
|
-
const owner = stack.at(-1);
|
|
32706
|
-
if (frame.relation === "loc" && owner) {
|
|
32707
|
-
owner.file = lastFile;
|
|
32708
|
-
owner.offset = frame.offset;
|
|
32709
|
-
}
|
|
32710
|
-
if (frame.relation === "type" && owner) owner.type = frame.type;
|
|
32711
|
-
if (frame.kind === "ParmVarDecl") {
|
|
32712
|
-
const declaration = stack.findLast(
|
|
32713
|
-
(item) => item.kind && DECLARATIONS.has(item.kind)
|
|
32714
|
-
);
|
|
32715
|
-
if (declaration && frame.type) (declaration.params ??= []).push(frame.type);
|
|
32716
|
-
}
|
|
32717
|
-
if (frame.kind === "CompoundStmt") {
|
|
32718
|
-
const declaration = stack.findLast(
|
|
32719
|
-
(item) => item.kind && DECLARATIONS.has(item.kind)
|
|
32720
|
-
);
|
|
32721
|
-
if (declaration) declaration.hasBody = true;
|
|
32722
|
-
}
|
|
32723
|
-
if (frame.kind && DECLARATIONS.has(frame.kind) && !(frame.kind === "VarDecl" && stack.some((item) => item.kind && DECLARATIONS.has(item.kind))) && frame.name && frame.file && headers.has(import_node_path51.default.resolve(frame.file))) {
|
|
32724
|
-
const scope2 = stack.flatMap(
|
|
32725
|
-
(item) => item.name && (item.kind === "NamespaceDecl" || item.kind === "CXXRecordDecl") ? [
|
|
32726
|
-
{
|
|
32727
|
-
kind: item.kind === "NamespaceDecl" ? "namespace" : "record",
|
|
32728
|
-
name: item.name
|
|
32729
|
-
}
|
|
32730
|
-
] : []
|
|
32731
|
-
);
|
|
32732
|
-
result.push({
|
|
32733
|
-
kind: frame.kind,
|
|
32734
|
-
name: frame.name,
|
|
32735
|
-
mangled: frame.mangled ?? "",
|
|
32736
|
-
type: frame.type ?? "",
|
|
32737
|
-
params: frame.params ?? [],
|
|
32738
|
-
scope: scope2,
|
|
32739
|
-
file: import_node_path51.default.resolve(frame.file),
|
|
32740
|
-
offset: frame.offset ?? 0,
|
|
32741
|
-
implicit: frame.implicit ?? false,
|
|
32742
|
-
deleted: frame.deleted ?? false,
|
|
32743
|
-
defaulted: frame.defaulted ?? false,
|
|
32744
|
-
inline: frame.inline ?? false,
|
|
32745
|
-
constexpr: frame.constexpr ?? false,
|
|
32746
|
-
pure: frame.pure ?? false,
|
|
32747
|
-
storage: frame.storage ?? "",
|
|
32748
|
-
variadic: frame.variadic ?? false,
|
|
32749
|
-
hasBody: frame.hasBody ?? false
|
|
32691
|
+
await (0, import_promises6.pipeline)(import_node_fs54.default.createReadStream(astFile), (0, import_stream_json.default)(), async (tokens2) => {
|
|
32692
|
+
for await (const value of tokens2) {
|
|
32693
|
+
if (!value || typeof value !== "object" || !("name" in value) || typeof value.name !== "string")
|
|
32694
|
+
throw new Error("invalid clang AST token");
|
|
32695
|
+
const token = value.name;
|
|
32696
|
+
const content = "value" in value ? value.value : void 0;
|
|
32697
|
+
const parent = stack.at(-1);
|
|
32698
|
+
if (token === "startObject" || token === "startArray") {
|
|
32699
|
+
stack.push({
|
|
32700
|
+
object: token === "startObject",
|
|
32701
|
+
relation: parent?.object ? parent.key : void 0
|
|
32750
32702
|
});
|
|
32703
|
+
} else if (token === "endObject" || token === "endArray") {
|
|
32704
|
+
const frame = stack.pop();
|
|
32705
|
+
if (!frame) throw new Error("unbalanced clang AST");
|
|
32706
|
+
if (stack.length === 0 && frame.object) rootComplete = true;
|
|
32707
|
+
const owner = stack.at(-1);
|
|
32708
|
+
if (frame.relation === "loc" && owner) {
|
|
32709
|
+
owner.file = lastFile;
|
|
32710
|
+
owner.offset = frame.offset;
|
|
32711
|
+
}
|
|
32712
|
+
if (frame.relation === "type" && owner) owner.type = frame.type;
|
|
32713
|
+
if (frame.kind === "ParmVarDecl") {
|
|
32714
|
+
const declaration = stack.findLast(
|
|
32715
|
+
(item) => item.kind && DECLARATIONS.has(item.kind)
|
|
32716
|
+
);
|
|
32717
|
+
if (declaration && frame.type) (declaration.params ??= []).push(frame.type);
|
|
32718
|
+
}
|
|
32719
|
+
if (frame.kind === "CompoundStmt") {
|
|
32720
|
+
const declaration = stack.findLast(
|
|
32721
|
+
(item) => item.kind && DECLARATIONS.has(item.kind)
|
|
32722
|
+
);
|
|
32723
|
+
if (declaration) declaration.hasBody = true;
|
|
32724
|
+
}
|
|
32725
|
+
if (frame.kind && DECLARATIONS.has(frame.kind) && !(frame.kind === "VarDecl" && stack.some((item) => item.kind && DECLARATIONS.has(item.kind))) && frame.name && frame.file && headers.has(import_node_path51.default.resolve(frame.file))) {
|
|
32726
|
+
const scope2 = stack.flatMap(
|
|
32727
|
+
(item) => item.name && (item.kind === "NamespaceDecl" || item.kind === "CXXRecordDecl") ? [
|
|
32728
|
+
{
|
|
32729
|
+
kind: item.kind === "NamespaceDecl" ? "namespace" : "record",
|
|
32730
|
+
name: item.name
|
|
32731
|
+
}
|
|
32732
|
+
] : []
|
|
32733
|
+
);
|
|
32734
|
+
result.push({
|
|
32735
|
+
kind: frame.kind,
|
|
32736
|
+
name: frame.name,
|
|
32737
|
+
mangled: frame.mangled ?? "",
|
|
32738
|
+
type: frame.type ?? "",
|
|
32739
|
+
params: frame.params ?? [],
|
|
32740
|
+
scope: scope2,
|
|
32741
|
+
file: import_node_path51.default.resolve(frame.file),
|
|
32742
|
+
offset: frame.offset ?? 0,
|
|
32743
|
+
implicit: frame.implicit ?? false,
|
|
32744
|
+
deleted: frame.deleted ?? false,
|
|
32745
|
+
defaulted: frame.defaulted ?? false,
|
|
32746
|
+
inline: frame.inline ?? false,
|
|
32747
|
+
constexpr: frame.constexpr ?? false,
|
|
32748
|
+
pure: frame.pure ?? false,
|
|
32749
|
+
storage: frame.storage ?? "",
|
|
32750
|
+
variadic: frame.variadic ?? false,
|
|
32751
|
+
hasBody: frame.hasBody ?? false
|
|
32752
|
+
});
|
|
32753
|
+
}
|
|
32754
|
+
} else if (token === "keyValue" && parent?.object && typeof content === "string")
|
|
32755
|
+
parent.key = content;
|
|
32756
|
+
else if (token === "stringValue" && parent?.object && typeof content === "string") {
|
|
32757
|
+
if (parent.key === "file" && ["loc", "begin", "end", "expansionLoc", "spellingLoc"].includes(
|
|
32758
|
+
parent.relation ?? ""
|
|
32759
|
+
))
|
|
32760
|
+
lastFile = content;
|
|
32761
|
+
if (parent.key === "kind") {
|
|
32762
|
+
parent.kind = content;
|
|
32763
|
+
parent.file = lastFile;
|
|
32764
|
+
}
|
|
32765
|
+
if (parent.key === "name") parent.name = content;
|
|
32766
|
+
if (parent.key === "mangledName") parent.mangled = content;
|
|
32767
|
+
if (parent.key === "qualType") parent.type = content;
|
|
32768
|
+
if (parent.key === "storageClass") parent.storage = content;
|
|
32769
|
+
if (parent.key === "explicitlyDefaulted") parent.defaulted = true;
|
|
32770
|
+
} else if (token === "numberValue" && parent?.object && parent.key === "offset" && typeof content === "string") {
|
|
32771
|
+
parent.offset = Number(content);
|
|
32772
|
+
} else if (token === "trueValue" && parent?.object) {
|
|
32773
|
+
if (parent.key === "isImplicit") parent.implicit = true;
|
|
32774
|
+
if (parent.key === "explicitlyDeleted") parent.deleted = true;
|
|
32775
|
+
if (parent.key === "inline") parent.inline = true;
|
|
32776
|
+
if (parent.key === "constexpr") parent.constexpr = true;
|
|
32777
|
+
if (parent.key === "pure") parent.pure = true;
|
|
32778
|
+
if (parent.key === "variadic") parent.variadic = true;
|
|
32751
32779
|
}
|
|
32752
|
-
} else if (token === "keyValue" && parent?.object && typeof content === "string")
|
|
32753
|
-
parent.key = content;
|
|
32754
|
-
else if (token === "stringValue" && parent?.object && typeof content === "string") {
|
|
32755
|
-
if (parent.key === "file" && ["loc", "begin", "end", "expansionLoc", "spellingLoc"].includes(
|
|
32756
|
-
parent.relation ?? ""
|
|
32757
|
-
))
|
|
32758
|
-
lastFile = content;
|
|
32759
|
-
if (parent.key === "kind") {
|
|
32760
|
-
parent.kind = content;
|
|
32761
|
-
parent.file = lastFile;
|
|
32762
|
-
}
|
|
32763
|
-
if (parent.key === "name") parent.name = content;
|
|
32764
|
-
if (parent.key === "mangledName") parent.mangled = content;
|
|
32765
|
-
if (parent.key === "qualType") parent.type = content;
|
|
32766
|
-
if (parent.key === "storageClass") parent.storage = content;
|
|
32767
|
-
if (parent.key === "explicitlyDefaulted") parent.defaulted = true;
|
|
32768
|
-
} else if (token === "numberValue" && parent?.object && parent.key === "offset" && typeof content === "string") {
|
|
32769
|
-
parent.offset = Number(content);
|
|
32770
|
-
} else if (token === "trueValue" && parent?.object) {
|
|
32771
|
-
if (parent.key === "isImplicit") parent.implicit = true;
|
|
32772
|
-
if (parent.key === "explicitlyDeleted") parent.deleted = true;
|
|
32773
|
-
if (parent.key === "inline") parent.inline = true;
|
|
32774
|
-
if (parent.key === "constexpr") parent.constexpr = true;
|
|
32775
|
-
if (parent.key === "pure") parent.pure = true;
|
|
32776
|
-
if (parent.key === "variadic") parent.variadic = true;
|
|
32777
32780
|
}
|
|
32778
32781
|
});
|
|
32779
|
-
|
|
32780
|
-
const buffer = Buffer.allocUnsafe(64 * 1024);
|
|
32781
|
-
try {
|
|
32782
|
-
let count;
|
|
32783
|
-
while ((count = import_node_fs54.default.readSync(fd, buffer, 0, buffer.length, null)) > 0) {
|
|
32784
|
-
if (!stream.write(buffer.subarray(0, count)))
|
|
32785
|
-
throw new Error("clang AST parser could not keep up");
|
|
32786
|
-
if (failed) throw failed;
|
|
32787
|
-
}
|
|
32788
|
-
stream.end();
|
|
32789
|
-
if (failed) throw failed;
|
|
32790
|
-
if (stack.length !== 0 || !rootComplete) throw new Error("truncated clang AST");
|
|
32791
|
-
} finally {
|
|
32792
|
-
import_node_fs54.default.closeSync(fd);
|
|
32793
|
-
}
|
|
32782
|
+
if (stack.length !== 0 || !rootComplete) throw new Error("truncated clang AST");
|
|
32794
32783
|
return result;
|
|
32795
32784
|
}
|
|
32796
|
-
var import_node_fs54, import_node_path51, import_stream_json, DECLARATIONS;
|
|
32785
|
+
var import_node_fs54, import_node_path51, import_promises6, import_stream_json, DECLARATIONS;
|
|
32797
32786
|
var init_swift_cxx_declarations = __esm({
|
|
32798
32787
|
"src/swift-cxx-declarations.ts"() {
|
|
32799
32788
|
"use strict";
|
|
32800
32789
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32801
32790
|
import_node_fs54 = __toESM(require("node:fs"), 1);
|
|
32802
32791
|
import_node_path51 = __toESM(require("node:path"), 1);
|
|
32792
|
+
import_promises6 = require("node:stream/promises");
|
|
32803
32793
|
import_stream_json = __toESM(require("stream-json"), 1);
|
|
32804
32794
|
DECLARATIONS = /* @__PURE__ */ new Set([
|
|
32805
32795
|
"FunctionDecl",
|
|
@@ -32912,7 +32902,7 @@ function definition(decl, index) {
|
|
|
32912
32902
|
text: namespaces.reduceRight((inner, name3) => `namespace ${name3} { ${inner} }`, body)
|
|
32913
32903
|
};
|
|
32914
32904
|
}
|
|
32915
|
-
function emitCxxStandin(input) {
|
|
32905
|
+
async function emitCxxStandin(input) {
|
|
32916
32906
|
const ast = import_node_path52.default.join(input.work, "cxx-ast.json");
|
|
32917
32907
|
const probe = import_node_path52.default.join(input.work, "cxx-probe.cpp");
|
|
32918
32908
|
const sourceFile = import_node_path52.default.join(input.work, "cxx-traps.cpp");
|
|
@@ -32966,7 +32956,7 @@ function emitCxxStandin(input) {
|
|
|
32966
32956
|
);
|
|
32967
32957
|
let declarations;
|
|
32968
32958
|
try {
|
|
32969
|
-
declarations = cxxDeclarations(ast, reached);
|
|
32959
|
+
declarations = await cxxDeclarations(ast, reached);
|
|
32970
32960
|
} finally {
|
|
32971
32961
|
import_node_fs55.default.rmSync(ast, { force: true });
|
|
32972
32962
|
}
|
|
@@ -35572,7 +35562,7 @@ ${roots.map((file) => ` header "${file}"
|
|
|
35572
35562
|
}
|
|
35573
35563
|
};
|
|
35574
35564
|
}
|
|
35575
|
-
function cxxStandin(surface, binary2, toolchain, work) {
|
|
35565
|
+
async function cxxStandin(surface, binary2, toolchain, work) {
|
|
35576
35566
|
if (!binary2.cxxHeaders) throw new Error("C++ header inputs are missing");
|
|
35577
35567
|
const headers = surface.headers;
|
|
35578
35568
|
const names = import_node_fs56.default.readdirSync(headers, { recursive: true, encoding: "utf8" }).filter((file) => import_node_fs56.default.statSync(import_node_path53.default.join(headers, file)).isFile()).sort();
|
|
@@ -35625,7 +35615,7 @@ function cxxStandin(surface, binary2, toolchain, work) {
|
|
|
35625
35615
|
if (/\b__OBJC__\b/.test(text5))
|
|
35626
35616
|
throw new Error(`C++ public header ${file} changes under Objective-C++`);
|
|
35627
35617
|
}
|
|
35628
|
-
const emitted = emitCxxStandin({
|
|
35618
|
+
const emitted = await emitCxxStandin({
|
|
35629
35619
|
clang: import_node_path53.default.join(toolchain.toolchainBin, "clang++"),
|
|
35630
35620
|
sysroot,
|
|
35631
35621
|
headers,
|
|
@@ -36103,7 +36093,7 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
|
|
|
36103
36093
|
}
|
|
36104
36094
|
return (0, import_node_crypto27.createHash)("sha256").update(parts.join("\0")).digest("hex");
|
|
36105
36095
|
}
|
|
36106
|
-
function binaryStandins(binary2, toolchain, provided, behavior, frameworks, siblings) {
|
|
36096
|
+
async function binaryStandins(binary2, toolchain, provided, behavior, frameworks, siblings) {
|
|
36107
36097
|
if (provided.has(binary2.target)) return [];
|
|
36108
36098
|
if (!binary2.url && !import_node_fs56.default.existsSync(binary2.dir))
|
|
36109
36099
|
return `${import_node_path53.default.relative(process.cwd(), binary2.dir) || binary2.dir} is not on disk, and Xcode fails without it too; run the script that downloads or builds it, then run again`;
|
|
@@ -36204,48 +36194,51 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
36204
36194
|
}
|
|
36205
36195
|
let result;
|
|
36206
36196
|
try {
|
|
36207
|
-
result =
|
|
36197
|
+
result = [];
|
|
36198
|
+
for (const surface of found) {
|
|
36208
36199
|
const dir = import_node_path53.default.join(work, surface.module);
|
|
36209
36200
|
try {
|
|
36210
36201
|
if (surface.kind === "c" && configured.has(surface.module))
|
|
36211
36202
|
throw new Error(
|
|
36212
36203
|
"Configured behavior requires the framework's Swift declarations"
|
|
36213
36204
|
);
|
|
36214
|
-
|
|
36215
|
-
surface
|
|
36216
|
-
|
|
36217
|
-
|
|
36218
|
-
|
|
36219
|
-
|
|
36220
|
-
|
|
36221
|
-
|
|
36222
|
-
surface
|
|
36223
|
-
|
|
36224
|
-
|
|
36225
|
-
|
|
36226
|
-
|
|
36227
|
-
|
|
36228
|
-
|
|
36229
|
-
|
|
36230
|
-
surface
|
|
36231
|
-
|
|
36232
|
-
|
|
36233
|
-
|
|
36234
|
-
|
|
36235
|
-
|
|
36236
|
-
|
|
36237
|
-
surface
|
|
36238
|
-
|
|
36239
|
-
|
|
36240
|
-
|
|
36241
|
-
|
|
36242
|
-
|
|
36205
|
+
result.push(
|
|
36206
|
+
surface.kind === "source" ? placeholderStandin(
|
|
36207
|
+
surface,
|
|
36208
|
+
binary2,
|
|
36209
|
+
toolchain,
|
|
36210
|
+
dir,
|
|
36211
|
+
new Map(Object.entries(configured.get(surface.module) ?? {})),
|
|
36212
|
+
siblings
|
|
36213
|
+
) : surface.kind === "mixed" ? mixedStandin(
|
|
36214
|
+
surface,
|
|
36215
|
+
binary2,
|
|
36216
|
+
toolchain,
|
|
36217
|
+
dir,
|
|
36218
|
+
new Map(Object.entries(configured.get(surface.module) ?? {})),
|
|
36219
|
+
frameworks.dirs,
|
|
36220
|
+
siblings
|
|
36221
|
+
) : surface.kind === "swift" ? swiftStandin(
|
|
36222
|
+
surface,
|
|
36223
|
+
binary2,
|
|
36224
|
+
toolchain,
|
|
36225
|
+
dir,
|
|
36226
|
+
new Map(Object.entries(configured.get(surface.module) ?? {})),
|
|
36227
|
+
siblings
|
|
36228
|
+
) : surface.kind === "objc" ? objcStandin(
|
|
36229
|
+
surface,
|
|
36230
|
+
binary2,
|
|
36231
|
+
toolchain,
|
|
36232
|
+
dir,
|
|
36233
|
+
new Map(Object.entries(configured.get(surface.module) ?? {}))
|
|
36234
|
+
) : binary2.cxxHeaders ? await cxxStandin(surface, binary2, toolchain, dir) : cStandin(surface, binary2, toolchain, dir)
|
|
36235
|
+
);
|
|
36243
36236
|
} catch (error) {
|
|
36244
36237
|
throw new Error(
|
|
36245
36238
|
`no stand-in for ${surface.module}: ${error instanceof Error && !("stderr" in error) ? error.message : failure(error)}`
|
|
36246
36239
|
);
|
|
36247
36240
|
}
|
|
36248
|
-
}
|
|
36241
|
+
}
|
|
36249
36242
|
if (typeof result === "string") throw new Error(result);
|
|
36250
36243
|
import_node_fs56.default.mkdirSync(import_node_path53.default.dirname(cached2), { recursive: true });
|
|
36251
36244
|
const pending = `${cached2}.${process.pid}.tmp`;
|
|
@@ -36343,7 +36336,7 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
|
|
|
36343
36336
|
])
|
|
36344
36337
|
);
|
|
36345
36338
|
const visited = /* @__PURE__ */ new Set();
|
|
36346
|
-
const visit3 = (binary2) => {
|
|
36339
|
+
const visit3 = async (binary2) => {
|
|
36347
36340
|
if (visited.has(binary2.target)) return;
|
|
36348
36341
|
visited.add(binary2.target);
|
|
36349
36342
|
for (const module2 of [
|
|
@@ -36353,10 +36346,10 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
|
|
|
36353
36346
|
...siblings.get(binary2)
|
|
36354
36347
|
]) {
|
|
36355
36348
|
const target = byModule.get(module2);
|
|
36356
|
-
if (target) visit3(target);
|
|
36349
|
+
if (target) await visit3(target);
|
|
36357
36350
|
}
|
|
36358
36351
|
const started = Date.now();
|
|
36359
|
-
const result = binaryStandins(
|
|
36352
|
+
const result = await binaryStandins(
|
|
36360
36353
|
binary2,
|
|
36361
36354
|
generatedToolchain,
|
|
36362
36355
|
provided,
|
|
@@ -36401,7 +36394,7 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
|
|
|
36401
36394
|
}
|
|
36402
36395
|
};
|
|
36403
36396
|
try {
|
|
36404
|
-
for (const binary2 of binaries) visit3(binary2);
|
|
36397
|
+
for (const binary2 of binaries) await visit3(binary2);
|
|
36405
36398
|
return { standins, gaps };
|
|
36406
36399
|
} finally {
|
|
36407
36400
|
import_node_fs56.default.rmSync(modules, { recursive: true, force: true });
|
|
@@ -46490,7 +46483,7 @@ var nitro_superset_lock_default;
|
|
|
46490
46483
|
var init_nitro_superset_lock = __esm({
|
|
46491
46484
|
"src/nitro-superset.lock.json"() {
|
|
46492
46485
|
nitro_superset_lock_default = {
|
|
46493
|
-
key: "
|
|
46486
|
+
key: "c2a99e07bc00f67e97c5309fa98ae765",
|
|
46494
46487
|
inputs: {
|
|
46495
46488
|
"ios-deployment-target": "16.4",
|
|
46496
46489
|
"react-native": "0.88.0",
|
|
@@ -46507,7 +46500,7 @@ var init_nitro_superset_lock = __esm({
|
|
|
46507
46500
|
"provider:react-native-nitro-sound": "0.2.20\x004a7507d1bfd9bbeb3cbc2e52385c3a9b0313c216353d96048a58720566639334",
|
|
46508
46501
|
"provider:react-native-nitro-sqlite": "10.1.0\x005caf7edb2f36e20a9ad571987528928d5ef9dd78e473daa4d81dbecc64571d1e",
|
|
46509
46502
|
"provider:react-native-nitro-modules": "0.37.1\0bdb0a25e97222439e578796350b942a9931f72d9ad4d73b44871eee2aa3301bd",
|
|
46510
|
-
compiler: "
|
|
46503
|
+
compiler: "a5bdc2a24fa8bd39d392e37a04252fb47ec1cf47e6baacb7724233f3af4f4379"
|
|
46511
46504
|
},
|
|
46512
46505
|
metadata: {
|
|
46513
46506
|
platform: "ios",
|
|
@@ -46515,25 +46508,33 @@ var init_nitro_superset_lock = __esm({
|
|
|
46515
46508
|
{
|
|
46516
46509
|
name: "react-native-nitro-base64",
|
|
46517
46510
|
version: "1.1.2",
|
|
46518
|
-
hybridObjects: [
|
|
46511
|
+
hybridObjects: [
|
|
46512
|
+
"NitroBase64"
|
|
46513
|
+
],
|
|
46519
46514
|
views: []
|
|
46520
46515
|
},
|
|
46521
46516
|
{
|
|
46522
46517
|
name: "react-native-nitro-buffer",
|
|
46523
46518
|
version: "0.3.0",
|
|
46524
|
-
hybridObjects: [
|
|
46519
|
+
hybridObjects: [
|
|
46520
|
+
"NitroBuffer"
|
|
46521
|
+
],
|
|
46525
46522
|
views: []
|
|
46526
46523
|
},
|
|
46527
46524
|
{
|
|
46528
46525
|
name: "react-native-nitro-cookies",
|
|
46529
46526
|
version: "1.3.1",
|
|
46530
|
-
hybridObjects: [
|
|
46527
|
+
hybridObjects: [
|
|
46528
|
+
"NitroCookies"
|
|
46529
|
+
],
|
|
46531
46530
|
views: []
|
|
46532
46531
|
},
|
|
46533
46532
|
{
|
|
46534
46533
|
name: "react-native-nitro-geocoder",
|
|
46535
46534
|
version: "0.1.2",
|
|
46536
|
-
hybridObjects: [
|
|
46535
|
+
hybridObjects: [
|
|
46536
|
+
"NitroGeocoder"
|
|
46537
|
+
],
|
|
46537
46538
|
views: []
|
|
46538
46539
|
},
|
|
46539
46540
|
{
|
|
@@ -46549,37 +46550,48 @@ var init_nitro_superset_lock = __esm({
|
|
|
46549
46550
|
{
|
|
46550
46551
|
name: "react-native-nitro-haptics",
|
|
46551
46552
|
version: "0.2.3",
|
|
46552
|
-
hybridObjects: [
|
|
46553
|
+
hybridObjects: [
|
|
46554
|
+
"Haptics"
|
|
46555
|
+
],
|
|
46553
46556
|
views: []
|
|
46554
46557
|
},
|
|
46555
46558
|
{
|
|
46556
46559
|
name: "react-native-nitro-markdown",
|
|
46557
46560
|
version: "0.16.1",
|
|
46558
|
-
hybridObjects: [
|
|
46561
|
+
hybridObjects: [
|
|
46562
|
+
"MarkdownParser",
|
|
46563
|
+
"MarkdownSession"
|
|
46564
|
+
],
|
|
46559
46565
|
views: []
|
|
46560
46566
|
},
|
|
46561
46567
|
{
|
|
46562
46568
|
name: "react-native-nitro-network-info",
|
|
46563
46569
|
version: "1.0.8",
|
|
46564
|
-
hybridObjects: [
|
|
46570
|
+
hybridObjects: [
|
|
46571
|
+
"NitroNetworkInfo"
|
|
46572
|
+
],
|
|
46565
46573
|
views: []
|
|
46566
46574
|
},
|
|
46567
46575
|
{
|
|
46568
46576
|
name: "react-native-nitro-sound",
|
|
46569
46577
|
version: "0.2.20",
|
|
46570
|
-
hybridObjects: [
|
|
46578
|
+
hybridObjects: [
|
|
46579
|
+
"Sound"
|
|
46580
|
+
],
|
|
46571
46581
|
views: []
|
|
46572
46582
|
},
|
|
46573
46583
|
{
|
|
46574
46584
|
name: "react-native-nitro-sqlite",
|
|
46575
46585
|
version: "10.1.0",
|
|
46576
|
-
hybridObjects: [
|
|
46586
|
+
hybridObjects: [
|
|
46587
|
+
"NitroSQLite"
|
|
46588
|
+
],
|
|
46577
46589
|
views: []
|
|
46578
46590
|
}
|
|
46579
46591
|
],
|
|
46580
|
-
url: "https://r2.rnxsim.com/native/nitro/superset/
|
|
46581
|
-
hash: "
|
|
46582
|
-
icuUrl: "https://r2.rnxsim.com/native/nitro/superset/
|
|
46592
|
+
url: "https://r2.rnxsim.com/native/nitro/superset/c2a99e07bc00f67e97c5309fa98ae765/5dd0cc37c9a573cc1de902db6ce0412f46c57b5301e968cf2b62c8ca4e87f008.wasm",
|
|
46593
|
+
hash: "5dd0cc37c9a573cc1de902db6ce0412f46c57b5301e968cf2b62c8ca4e87f008",
|
|
46594
|
+
icuUrl: "https://r2.rnxsim.com/native/nitro/superset/c2a99e07bc00f67e97c5309fa98ae765/b6f7d63d7041aaf2485e76b68c284ce69e6157c9cefe0af780252a04e8c2f276",
|
|
46583
46595
|
bundleFiles: {}
|
|
46584
46596
|
}
|
|
46585
46597
|
};
|
|
@@ -48332,7 +48344,6 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
48332
48344
|
"@interface NSNotification (PeachTurboRuntime)",
|
|
48333
48345
|
"@property (nullable, readonly, copy) NSDictionary *userInfo;",
|
|
48334
48346
|
"@end",
|
|
48335
|
-
"#endif",
|
|
48336
48347
|
"typedef struct __CFBundle *CFBundleRef;",
|
|
48337
48348
|
"#ifndef NSLocalizedStringWithDefaultValue",
|
|
48338
48349
|
"#define NSLocalizedStringWithDefaultValue(key, tbl, bundle, val, comment) ((void)(tbl), (void)(bundle), (void)(comment), (val) ?: (key))",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1802 | (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;
|
|
@@ -360,7 +360,7 @@ function captureNode(value) {
|
|
|
360
360
|
return captureRecord(style.resolved) && captureRecord(style.authored) && captureRecord(style.computed) && captureRecord(style.tokenBindings) && (value.textLines === void 0 || Array.isArray(value.textLines));
|
|
361
361
|
}
|
|
362
362
|
function isRnxScreenCapture(value) {
|
|
363
|
-
if (!captureRecord(value) || value.contractVersion !== RNX_SCREEN_CAPTURE_VERSION || !captureInteger(value.capturedAt) || !captureRecord(value.tree) || !(value.fonts === void 0 || Array.isArray(value.fonts) && value.fonts.length <= 200 && value.fonts.every(captureFontRegistration)) || !(value.visual === void 0 || captureRecord(value.visual))) {
|
|
363
|
+
if (!captureRecord(value) || value.contractVersion !== RNX_SCREEN_CAPTURE_VERSION || !captureInteger(value.capturedAt) || !(value.committedRoute === void 0 || value.committedRoute === null || captureRecord(value.committedRoute) && typeof value.committedRoute.href === "string" && value.committedRoute.href.startsWith("/")) || !captureRecord(value.tree) || !(value.fonts === void 0 || Array.isArray(value.fonts) && value.fonts.length <= 200 && value.fonts.every(captureFontRegistration)) || !(value.visual === void 0 || captureRecord(value.visual))) {
|
|
364
364
|
return false;
|
|
365
365
|
}
|
|
366
366
|
const tree = value.tree;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1802 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/capture-contract.ts
|
|
4
4
|
var RNX_SCREEN_CAPTURE_VERSION = 1;
|
|
@@ -328,7 +328,7 @@ function captureNode(value) {
|
|
|
328
328
|
return captureRecord(style.resolved) && captureRecord(style.authored) && captureRecord(style.computed) && captureRecord(style.tokenBindings) && (value.textLines === void 0 || Array.isArray(value.textLines));
|
|
329
329
|
}
|
|
330
330
|
function isRnxScreenCapture(value) {
|
|
331
|
-
if (!captureRecord(value) || value.contractVersion !== RNX_SCREEN_CAPTURE_VERSION || !captureInteger(value.capturedAt) || !captureRecord(value.tree) || !(value.fonts === void 0 || Array.isArray(value.fonts) && value.fonts.length <= 200 && value.fonts.every(captureFontRegistration)) || !(value.visual === void 0 || captureRecord(value.visual))) {
|
|
331
|
+
if (!captureRecord(value) || value.contractVersion !== RNX_SCREEN_CAPTURE_VERSION || !captureInteger(value.capturedAt) || !(value.committedRoute === void 0 || value.committedRoute === null || captureRecord(value.committedRoute) && typeof value.committedRoute.href === "string" && value.committedRoute.href.startsWith("/")) || !captureRecord(value.tree) || !(value.fonts === void 0 || Array.isArray(value.fonts) && value.fonts.length <= 200 && value.fonts.every(captureFontRegistration)) || !(value.visual === void 0 || captureRecord(value.visual))) {
|
|
332
332
|
return false;
|
|
333
333
|
}
|
|
334
334
|
const tree = value.tree;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1802 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1802 | (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;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1802 | (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;
|
|
@@ -92,7 +92,7 @@ function captureNode(value) {
|
|
|
92
92
|
return captureRecord(style.resolved) && captureRecord(style.authored) && captureRecord(style.computed) && captureRecord(style.tokenBindings) && (value.textLines === void 0 || Array.isArray(value.textLines));
|
|
93
93
|
}
|
|
94
94
|
function isRnxScreenCapture(value) {
|
|
95
|
-
if (!captureRecord(value) || value.contractVersion !== RNX_SCREEN_CAPTURE_VERSION || !captureInteger(value.capturedAt) || !captureRecord(value.tree) || !(value.fonts === void 0 || Array.isArray(value.fonts) && value.fonts.length <= 200 && value.fonts.every(captureFontRegistration)) || !(value.visual === void 0 || captureRecord(value.visual))) {
|
|
95
|
+
if (!captureRecord(value) || value.contractVersion !== RNX_SCREEN_CAPTURE_VERSION || !captureInteger(value.capturedAt) || !(value.committedRoute === void 0 || value.committedRoute === null || captureRecord(value.committedRoute) && typeof value.committedRoute.href === "string" && value.committedRoute.href.startsWith("/")) || !captureRecord(value.tree) || !(value.fonts === void 0 || Array.isArray(value.fonts) && value.fonts.length <= 200 && value.fonts.every(captureFontRegistration)) || !(value.visual === void 0 || captureRecord(value.visual))) {
|
|
96
96
|
return false;
|
|
97
97
|
}
|
|
98
98
|
const tree = value.tree;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1802 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -62,7 +62,7 @@ function captureNode(value) {
|
|
|
62
62
|
return captureRecord(style.resolved) && captureRecord(style.authored) && captureRecord(style.computed) && captureRecord(style.tokenBindings) && (value.textLines === void 0 || Array.isArray(value.textLines));
|
|
63
63
|
}
|
|
64
64
|
function isRnxScreenCapture(value) {
|
|
65
|
-
if (!captureRecord(value) || value.contractVersion !== RNX_SCREEN_CAPTURE_VERSION || !captureInteger(value.capturedAt) || !captureRecord(value.tree) || !(value.fonts === void 0 || Array.isArray(value.fonts) && value.fonts.length <= 200 && value.fonts.every(captureFontRegistration)) || !(value.visual === void 0 || captureRecord(value.visual))) {
|
|
65
|
+
if (!captureRecord(value) || value.contractVersion !== RNX_SCREEN_CAPTURE_VERSION || !captureInteger(value.capturedAt) || !(value.committedRoute === void 0 || value.committedRoute === null || captureRecord(value.committedRoute) && typeof value.committedRoute.href === "string" && value.committedRoute.href.startsWith("/")) || !captureRecord(value.tree) || !(value.fonts === void 0 || Array.isArray(value.fonts) && value.fonts.length <= 200 && value.fonts.every(captureFontRegistration)) || !(value.visual === void 0 || captureRecord(value.visual))) {
|
|
66
66
|
return false;
|
|
67
67
|
}
|
|
68
68
|
const tree = value.tree;
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1802 | (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;
|