peachsim 0.1.2129 → 0.1.2155
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 +1 -1
- package/cli/app-fonts.ts +1 -1
- package/cli/app-stubs.ts +1 -1
- package/cli/cli-release-origin.ts +1 -0
- package/cli/cli-update.ts +1 -1
- package/cli/cloud-box-artifact.ts +1 -1
- package/cli/cloud-test-tunnel.ts +1 -1
- package/cli/commands/compat.ts +1 -1
- package/cli/commands/control.ts +2 -0
- package/cli/commands/coverage.ts +1 -1
- package/cli/commands/flow.ts +8 -1
- package/cli/commands/inspect/core.ts +25 -4
- package/cli/commands/package.ts +21 -12
- package/cli/commands/shell-url.ts +8 -3
- package/cli/commands/upgrade.ts +1 -1
- package/cli/drivers/linux-browser-libs.ts +1 -1
- package/cli/outbound-endpoints.ts +4 -0
- package/cli/remote-project-bundle.ts +2 -2
- package/detox/index.ts +12 -5
- 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 +1795 -1801
- 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 +2 -2
- package/dist-lib/config.mjs +2 -2
- package/dist-lib/detox/index.cjs +31 -8
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +41 -33
- package/dist-lib/expo-swift-metadata.cjs +10 -2
- package/dist-lib/expo-swift-metadata.mjs +9 -2
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +276 -243
- package/dist-lib/host/fetch-proxy-handler.cjs +459 -484
- 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 +266 -266
- 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 +2 -2
- package/dist-lib/metro-production-bundle.mjs +2 -2
- package/dist-lib/metro.cjs +320 -336
- package/dist-lib/native-app-identity-project.cjs +134 -159
- package/dist-lib/native-app-identity-project.mjs +428 -459
- package/dist-lib/native-app-identity.cjs +18 -18
- package/dist-lib/native-app-identity.mjs +18 -18
- package/dist-lib/native-firebase-metadata.cjs +2 -2
- package/dist-lib/native-firebase-metadata.mjs +2 -2
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +32 -36
- package/dist-lib/public-origins-lib.json +135 -161
- 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 +2 -2
- package/dist-lib/sdk.cjs +20 -2
- package/dist-lib/sdk.mjs +20 -2
- package/dist-lib/skills.cjs +587 -531
- package/dist-lib/swift-compile.cjs +23 -8
- package/dist-lib/swift-compile.mjs +23 -8
- 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 +41 -39
- package/dist-lib/vite.cjs +745 -768
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/secureItemHostContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/expo-widgets-activityContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/map-command-channel.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/one-native-contentContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/worklet-serialize.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-wire.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/package-versions.d.ts +16 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/androidAutolinkingContract.ts +1 -1
- package/src/androidRootModuleContract.ts +1 -1
- package/src/bundle-channel.mjs +1 -1
- package/src/config.ts +1 -1
- package/src/configured-bundle-producer.ts +1 -1
- package/src/expo-swift-host.ts +34 -4
- package/src/expoKotlinContract.ts +4 -1
- package/src/expoSwiftContract.ts +18 -4
- package/src/guest-bundle.ts +1 -1
- package/src/host/dev-server-package-versions.ts +1 -1
- package/src/host/fetch-proxy-handler.ts +1 -1
- package/src/installed-native-build-options.ts +2 -2
- package/src/installed-package-versions.ts +7 -7
- package/src/metro-plugin.ts +1 -1
- package/src/metro-production-bundle.ts +1 -1
- package/src/native-app-identity.ts +1 -1
- package/src/native-firebase-metadata.ts +1 -1
- package/src/nitro-adapter.lock.json +244 -244
- package/src/nitro-superset.lock.json +4 -4
- package/src/nitroContract.ts +1 -1
- package/src/oneSdkContract.ts +1 -1
- package/src/react-native-coverage/capability-reference-resolution.ts +4 -4
- package/src/storageSnapshotContract.ts +2 -2
- package/src/swift-compile.ts +24 -7
- package/src/swift-coverage/source.ts +1 -1
- package/src/swift-distribution.lock.json +8 -8
- package/src/turbo-runtime.lock.json +18 -18
- package/src/vite-plugin-one.ts +4 -4
- package/src/vite-plugin.ts +6 -6
- package/src/bundleGlobalFooter.ts +0 -137
- package/src/packageVersionsContract.ts +0 -131
- /package/dist-types/packages/{peach-compat/src/stubs → peach-engine/src/guest}/native-evaluation-lease.d.ts +0 -0
- /package/dist-types/packages/{peach-compat → peach-globals}/src/secure-item-store.d.ts +0 -0
- /package/dist-types/packages/{peach-compat/src/stubs → peach-kit/src}/ring-mode-state.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2155 | (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;
|
|
@@ -12454,7 +12454,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12454
12454
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12455
12455
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12456
12456
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12457
|
-
var compilerSourceDigest = true ? "
|
|
12457
|
+
var compilerSourceDigest = true ? "91c8105b0a382e74c2395d36f69294e1ec6afa3aa0b66c61b6b11e63e0dbe5d7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12458
12458
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12459
12459
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
12460
12460
|
hash.update(`swift-compile
|
|
@@ -12898,10 +12898,10 @@ function emitSwiftPackageManifest(args) {
|
|
|
12898
12898
|
` dependencies: ${JSON.stringify(native.mixed ? [] : [name2])},`,
|
|
12899
12899
|
` path: ${JSON.stringify(group.path)},`,
|
|
12900
12900
|
` sources: ${JSON.stringify(group.sources)},`,
|
|
12901
|
-
|
|
12901
|
+
` publicHeadersPath: ${JSON.stringify(native.groups ? "include" : "PeachSwiftImplementation")},`,
|
|
12902
12902
|
` cSettings: [${macroSettings(owner?.cDefines)}${declaredClangSettings(owner, "c")} .unsafeFlags(${flagArray(cFlagArray([...nativeFlags, "-I", native.includeDirectory, ...args.headerDirectory ? ["-I", args.headerDirectory] : [], ...group.flags]))})],`,
|
|
12903
12903
|
...group.sources.some((source) => /\.(?:cc|cpp|cxx|mm)$/.test(source)) ? [
|
|
12904
|
-
` cxxSettings: [${macroSettings(owner?.cxxDefines)}${declaredClangSettings(owner, "cxx")} .unsafeFlags(${flagArray(cxxFlagArray([...cxxFlagsFor(nativeFlags), ...group.cxxFlags]))})]),`
|
|
12904
|
+
` cxxSettings: [${macroSettings(owner?.cxxDefines)}${declaredClangSettings(owner, "cxx")} .unsafeFlags(${flagArray(cxxFlagArray([...cxxFlagsFor(nativeFlags), "-I", native.includeDirectory, ...group.cxxFlags]))})]),`
|
|
12905
12905
|
] : [" ),"]
|
|
12906
12906
|
]) : [];
|
|
12907
12907
|
}),
|
|
@@ -15145,6 +15145,12 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
15145
15145
|
}
|
|
15146
15146
|
} : {}
|
|
15147
15147
|
});
|
|
15148
|
+
if (late.length > 0)
|
|
15149
|
+
files.set(
|
|
15150
|
+
import_node_path27.default.join(layout2.root, target.path, "PeachSwiftImplementation/module.modulemap"),
|
|
15151
|
+
`module ${swiftTargetModuleName(`${target.name}SwiftImplementation`)} { export * }
|
|
15152
|
+
`
|
|
15153
|
+
);
|
|
15148
15154
|
if (late.length === 0 || entries.some(
|
|
15149
15155
|
([file, contents]) => file.endsWith("/module.modulemap") && moduleMapName(contents) === swiftTargetModuleName(target.name)
|
|
15150
15156
|
))
|
|
@@ -16314,6 +16320,7 @@ async function withSwiftFrameworkSlot(frameworkKey, moduleRoot, signal, work) {
|
|
|
16314
16320
|
function mirrorTree2(source, target, skip) {
|
|
16315
16321
|
(0, import_node_fs25.mkdirSync)(target, { recursive: true });
|
|
16316
16322
|
const wanted = /* @__PURE__ */ new Set();
|
|
16323
|
+
let restructured = false;
|
|
16317
16324
|
for (const entry of (0, import_node_fs25.readdirSync)(source, { withFileTypes: true })) {
|
|
16318
16325
|
if (entry.name === skip) continue;
|
|
16319
16326
|
wanted.add(entry.name);
|
|
@@ -16325,9 +16332,10 @@ function mirrorTree2(source, target, skip) {
|
|
|
16325
16332
|
} catch (error) {
|
|
16326
16333
|
if (!vanished(error)) throw error;
|
|
16327
16334
|
}
|
|
16335
|
+
if (!existing) restructured = true;
|
|
16328
16336
|
if (entry.isDirectory()) {
|
|
16329
16337
|
if (existing && !existing.isDirectory()) (0, import_node_fs25.rmSync)(to, { force: true });
|
|
16330
|
-
mirrorTree2(from, to);
|
|
16338
|
+
if (mirrorTree2(from, to)) restructured = true;
|
|
16331
16339
|
} else if (entry.isSymbolicLink()) {
|
|
16332
16340
|
const link = (0, import_node_fs25.readlinkSync)(from);
|
|
16333
16341
|
if (existing?.isSymbolicLink() && (0, import_node_fs25.readlinkSync)(to) === link) continue;
|
|
@@ -16345,8 +16353,11 @@ function mirrorTree2(source, target, skip) {
|
|
|
16345
16353
|
}
|
|
16346
16354
|
}
|
|
16347
16355
|
for (const name2 of (0, import_node_fs25.readdirSync)(target))
|
|
16348
|
-
if (!wanted.has(name2) && name2 !== skip)
|
|
16356
|
+
if (!wanted.has(name2) && name2 !== skip) {
|
|
16349
16357
|
(0, import_node_fs25.rmSync)(import_node_path27.default.join(target, name2), { recursive: true, force: true });
|
|
16358
|
+
restructured = true;
|
|
16359
|
+
}
|
|
16360
|
+
return restructured;
|
|
16350
16361
|
}
|
|
16351
16362
|
function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
16352
16363
|
if (!slot) return moduleRoot;
|
|
@@ -16354,11 +16365,15 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
|
16354
16365
|
const stagedModule = import_node_path27.default.join(staged, "packages", import_node_path27.default.basename(moduleRoot));
|
|
16355
16366
|
if (swiftFrameworkSlotKey(slot) !== frameworkKey) {
|
|
16356
16367
|
(0, import_node_fs25.rmSync)(import_node_path27.default.join(slot, SWIFT_FRAMEWORK_SLOT_KEY), { force: true });
|
|
16357
|
-
mirrorTree2(moduleRoot, stagedModule, ".build");
|
|
16358
|
-
mirrorTree2(
|
|
16368
|
+
const moduleRestructured = mirrorTree2(moduleRoot, stagedModule, ".build");
|
|
16369
|
+
const sdkRestructured = mirrorTree2(
|
|
16359
16370
|
swiftSharedSdkRoot(moduleRoot, false),
|
|
16360
16371
|
import_node_path27.default.join(staged, "packages/peachsim/sdk/ios")
|
|
16361
16372
|
);
|
|
16373
|
+
if (moduleRestructured || sdkRestructured) {
|
|
16374
|
+
(0, import_node_fs25.rmSync)(import_node_path27.default.join(slot, "release.yaml"), { force: true });
|
|
16375
|
+
(0, import_node_fs25.rmSync)(import_node_path27.default.join(slot, "release", "description.json"), { force: true });
|
|
16376
|
+
}
|
|
16362
16377
|
for (const file of swiftModuleInputFiles(moduleRoot)) {
|
|
16363
16378
|
if (!file.startsWith("../")) continue;
|
|
16364
16379
|
const from = import_node_path27.default.resolve(moduleRoot, file);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -12434,7 +12434,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12434
12434
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12435
12435
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12436
12436
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12437
|
-
var compilerSourceDigest = true ? "
|
|
12437
|
+
var compilerSourceDigest = true ? "91c8105b0a382e74c2395d36f69294e1ec6afa3aa0b66c61b6b11e63e0dbe5d7" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12438
12438
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12439
12439
|
const hash = createHash13("sha256");
|
|
12440
12440
|
hash.update(`swift-compile
|
|
@@ -12878,10 +12878,10 @@ function emitSwiftPackageManifest(args) {
|
|
|
12878
12878
|
` dependencies: ${JSON.stringify(native.mixed ? [] : [name2])},`,
|
|
12879
12879
|
` path: ${JSON.stringify(group.path)},`,
|
|
12880
12880
|
` sources: ${JSON.stringify(group.sources)},`,
|
|
12881
|
-
|
|
12881
|
+
` publicHeadersPath: ${JSON.stringify(native.groups ? "include" : "PeachSwiftImplementation")},`,
|
|
12882
12882
|
` cSettings: [${macroSettings(owner?.cDefines)}${declaredClangSettings(owner, "c")} .unsafeFlags(${flagArray(cFlagArray([...nativeFlags, "-I", native.includeDirectory, ...args.headerDirectory ? ["-I", args.headerDirectory] : [], ...group.flags]))})],`,
|
|
12883
12883
|
...group.sources.some((source) => /\.(?:cc|cpp|cxx|mm)$/.test(source)) ? [
|
|
12884
|
-
` cxxSettings: [${macroSettings(owner?.cxxDefines)}${declaredClangSettings(owner, "cxx")} .unsafeFlags(${flagArray(cxxFlagArray([...cxxFlagsFor(nativeFlags), ...group.cxxFlags]))})]),`
|
|
12884
|
+
` cxxSettings: [${macroSettings(owner?.cxxDefines)}${declaredClangSettings(owner, "cxx")} .unsafeFlags(${flagArray(cxxFlagArray([...cxxFlagsFor(nativeFlags), "-I", native.includeDirectory, ...group.cxxFlags]))})]),`
|
|
12885
12885
|
] : [" ),"]
|
|
12886
12886
|
]) : [];
|
|
12887
12887
|
}),
|
|
@@ -15125,6 +15125,12 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
15125
15125
|
}
|
|
15126
15126
|
} : {}
|
|
15127
15127
|
});
|
|
15128
|
+
if (late.length > 0)
|
|
15129
|
+
files.set(
|
|
15130
|
+
path27.join(layout2.root, target.path, "PeachSwiftImplementation/module.modulemap"),
|
|
15131
|
+
`module ${swiftTargetModuleName(`${target.name}SwiftImplementation`)} { export * }
|
|
15132
|
+
`
|
|
15133
|
+
);
|
|
15128
15134
|
if (late.length === 0 || entries.some(
|
|
15129
15135
|
([file, contents]) => file.endsWith("/module.modulemap") && moduleMapName(contents) === swiftTargetModuleName(target.name)
|
|
15130
15136
|
))
|
|
@@ -16294,6 +16300,7 @@ async function withSwiftFrameworkSlot(frameworkKey, moduleRoot, signal, work) {
|
|
|
16294
16300
|
function mirrorTree2(source, target, skip) {
|
|
16295
16301
|
mkdirSync6(target, { recursive: true });
|
|
16296
16302
|
const wanted = /* @__PURE__ */ new Set();
|
|
16303
|
+
let restructured = false;
|
|
16297
16304
|
for (const entry of readdirSync8(source, { withFileTypes: true })) {
|
|
16298
16305
|
if (entry.name === skip) continue;
|
|
16299
16306
|
wanted.add(entry.name);
|
|
@@ -16305,9 +16312,10 @@ function mirrorTree2(source, target, skip) {
|
|
|
16305
16312
|
} catch (error) {
|
|
16306
16313
|
if (!vanished(error)) throw error;
|
|
16307
16314
|
}
|
|
16315
|
+
if (!existing) restructured = true;
|
|
16308
16316
|
if (entry.isDirectory()) {
|
|
16309
16317
|
if (existing && !existing.isDirectory()) rmSync6(to, { force: true });
|
|
16310
|
-
mirrorTree2(from, to);
|
|
16318
|
+
if (mirrorTree2(from, to)) restructured = true;
|
|
16311
16319
|
} else if (entry.isSymbolicLink()) {
|
|
16312
16320
|
const link = readlinkSync(from);
|
|
16313
16321
|
if (existing?.isSymbolicLink() && readlinkSync(to) === link) continue;
|
|
@@ -16325,8 +16333,11 @@ function mirrorTree2(source, target, skip) {
|
|
|
16325
16333
|
}
|
|
16326
16334
|
}
|
|
16327
16335
|
for (const name2 of readdirSync8(target))
|
|
16328
|
-
if (!wanted.has(name2) && name2 !== skip)
|
|
16336
|
+
if (!wanted.has(name2) && name2 !== skip) {
|
|
16329
16337
|
rmSync6(path27.join(target, name2), { recursive: true, force: true });
|
|
16338
|
+
restructured = true;
|
|
16339
|
+
}
|
|
16340
|
+
return restructured;
|
|
16330
16341
|
}
|
|
16331
16342
|
function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
16332
16343
|
if (!slot) return moduleRoot;
|
|
@@ -16334,11 +16345,15 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
|
16334
16345
|
const stagedModule = path27.join(staged, "packages", path27.basename(moduleRoot));
|
|
16335
16346
|
if (swiftFrameworkSlotKey(slot) !== frameworkKey) {
|
|
16336
16347
|
rmSync6(path27.join(slot, SWIFT_FRAMEWORK_SLOT_KEY), { force: true });
|
|
16337
|
-
mirrorTree2(moduleRoot, stagedModule, ".build");
|
|
16338
|
-
mirrorTree2(
|
|
16348
|
+
const moduleRestructured = mirrorTree2(moduleRoot, stagedModule, ".build");
|
|
16349
|
+
const sdkRestructured = mirrorTree2(
|
|
16339
16350
|
swiftSharedSdkRoot(moduleRoot, false),
|
|
16340
16351
|
path27.join(staged, "packages/peachsim/sdk/ios")
|
|
16341
16352
|
);
|
|
16353
|
+
if (moduleRestructured || sdkRestructured) {
|
|
16354
|
+
rmSync6(path27.join(slot, "release.yaml"), { force: true });
|
|
16355
|
+
rmSync6(path27.join(slot, "release", "description.json"), { force: true });
|
|
16356
|
+
}
|
|
16342
16357
|
for (const file of swiftModuleInputFiles(moduleRoot)) {
|
|
16343
16358
|
if (!file.startsWith("../")) continue;
|
|
16344
16359
|
const from = path27.resolve(moduleRoot, file);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2155 | (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.2155 | (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.2155 | (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;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2155 | (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/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2155 | (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": "
|
|
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": "783c20faf3235e3fc1846b056d788f29d9bfdfc946822b62acf722341b3a10fd", "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
|
|
|
@@ -15371,7 +15371,7 @@ var import_node_zlib2 = require("node:zlib");
|
|
|
15371
15371
|
// ../sootsim-swift/src/icuData.ts
|
|
15372
15372
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
15373
15373
|
|
|
15374
|
-
// ../peach-
|
|
15374
|
+
// ../peach-kit/src/wasm-memory.ts
|
|
15375
15375
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
15376
15376
|
|
|
15377
15377
|
// ../sootsim-swift/src/icuData.ts
|
|
@@ -17026,7 +17026,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
17026
17026
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
17027
17027
|
var MULTI_MANIFEST_VERSION = 68;
|
|
17028
17028
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
17029
|
-
var compilerSourceDigest = true ? "
|
|
17029
|
+
var compilerSourceDigest = true ? "91c8105b0a382e74c2395d36f69294e1ec6afa3aa0b66c61b6b11e63e0dbe5d7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
17030
17030
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
17031
17031
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
17032
17032
|
hash.update(`swift-compile
|
|
@@ -17470,10 +17470,10 @@ function emitSwiftPackageManifest(args) {
|
|
|
17470
17470
|
` dependencies: ${JSON.stringify(native.mixed ? [] : [name3])},`,
|
|
17471
17471
|
` path: ${JSON.stringify(group.path)},`,
|
|
17472
17472
|
` sources: ${JSON.stringify(group.sources)},`,
|
|
17473
|
-
|
|
17473
|
+
` publicHeadersPath: ${JSON.stringify(native.groups ? "include" : "PeachSwiftImplementation")},`,
|
|
17474
17474
|
` cSettings: [${macroSettings(owner?.cDefines)}${declaredClangSettings(owner, "c")} .unsafeFlags(${flagArray(cFlagArray([...nativeFlags, "-I", native.includeDirectory, ...args.headerDirectory ? ["-I", args.headerDirectory] : [], ...group.flags]))})],`,
|
|
17475
17475
|
...group.sources.some((source) => /\.(?:cc|cpp|cxx|mm)$/.test(source)) ? [
|
|
17476
|
-
` cxxSettings: [${macroSettings(owner?.cxxDefines)}${declaredClangSettings(owner, "cxx")} .unsafeFlags(${flagArray(cxxFlagArray([...cxxFlagsFor(nativeFlags), ...group.cxxFlags]))})]),`
|
|
17476
|
+
` cxxSettings: [${macroSettings(owner?.cxxDefines)}${declaredClangSettings(owner, "cxx")} .unsafeFlags(${flagArray(cxxFlagArray([...cxxFlagsFor(nativeFlags), "-I", native.includeDirectory, ...group.cxxFlags]))})]),`
|
|
17477
17477
|
] : [" ),"]
|
|
17478
17478
|
]) : [];
|
|
17479
17479
|
}),
|
|
@@ -19624,6 +19624,12 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
19624
19624
|
}
|
|
19625
19625
|
} : {}
|
|
19626
19626
|
});
|
|
19627
|
+
if (late.length > 0)
|
|
19628
|
+
files2.set(
|
|
19629
|
+
import_node_path27.default.join(layout2.root, target.path, "PeachSwiftImplementation/module.modulemap"),
|
|
19630
|
+
`module ${swiftTargetModuleName(`${target.name}SwiftImplementation`)} { export * }
|
|
19631
|
+
`
|
|
19632
|
+
);
|
|
19627
19633
|
if (late.length === 0 || entries.some(
|
|
19628
19634
|
([file, contents]) => file.endsWith("/module.modulemap") && moduleMapName(contents) === swiftTargetModuleName(target.name)
|
|
19629
19635
|
))
|
|
@@ -20793,6 +20799,7 @@ async function withSwiftFrameworkSlot(frameworkKey, moduleRoot, signal, work) {
|
|
|
20793
20799
|
function mirrorTree2(source, target, skip) {
|
|
20794
20800
|
(0, import_node_fs27.mkdirSync)(target, { recursive: true });
|
|
20795
20801
|
const wanted = /* @__PURE__ */ new Set();
|
|
20802
|
+
let restructured = false;
|
|
20796
20803
|
for (const entry of (0, import_node_fs27.readdirSync)(source, { withFileTypes: true })) {
|
|
20797
20804
|
if (entry.name === skip) continue;
|
|
20798
20805
|
wanted.add(entry.name);
|
|
@@ -20804,9 +20811,10 @@ function mirrorTree2(source, target, skip) {
|
|
|
20804
20811
|
} catch (error) {
|
|
20805
20812
|
if (!vanished(error)) throw error;
|
|
20806
20813
|
}
|
|
20814
|
+
if (!existing) restructured = true;
|
|
20807
20815
|
if (entry.isDirectory()) {
|
|
20808
20816
|
if (existing && !existing.isDirectory()) (0, import_node_fs27.rmSync)(to, { force: true });
|
|
20809
|
-
mirrorTree2(from, to);
|
|
20817
|
+
if (mirrorTree2(from, to)) restructured = true;
|
|
20810
20818
|
} else if (entry.isSymbolicLink()) {
|
|
20811
20819
|
const link = (0, import_node_fs27.readlinkSync)(from);
|
|
20812
20820
|
if (existing?.isSymbolicLink() && (0, import_node_fs27.readlinkSync)(to) === link) continue;
|
|
@@ -20824,8 +20832,11 @@ function mirrorTree2(source, target, skip) {
|
|
|
20824
20832
|
}
|
|
20825
20833
|
}
|
|
20826
20834
|
for (const name3 of (0, import_node_fs27.readdirSync)(target))
|
|
20827
|
-
if (!wanted.has(name3) && name3 !== skip)
|
|
20835
|
+
if (!wanted.has(name3) && name3 !== skip) {
|
|
20828
20836
|
(0, import_node_fs27.rmSync)(import_node_path27.default.join(target, name3), { recursive: true, force: true });
|
|
20837
|
+
restructured = true;
|
|
20838
|
+
}
|
|
20839
|
+
return restructured;
|
|
20829
20840
|
}
|
|
20830
20841
|
function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
20831
20842
|
if (!slot) return moduleRoot;
|
|
@@ -20833,11 +20844,15 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
|
20833
20844
|
const stagedModule = import_node_path27.default.join(staged, "packages", import_node_path27.default.basename(moduleRoot));
|
|
20834
20845
|
if (swiftFrameworkSlotKey(slot) !== frameworkKey) {
|
|
20835
20846
|
(0, import_node_fs27.rmSync)(import_node_path27.default.join(slot, SWIFT_FRAMEWORK_SLOT_KEY), { force: true });
|
|
20836
|
-
mirrorTree2(moduleRoot, stagedModule, ".build");
|
|
20837
|
-
mirrorTree2(
|
|
20847
|
+
const moduleRestructured = mirrorTree2(moduleRoot, stagedModule, ".build");
|
|
20848
|
+
const sdkRestructured = mirrorTree2(
|
|
20838
20849
|
swiftSharedSdkRoot(moduleRoot, false),
|
|
20839
20850
|
import_node_path27.default.join(staged, "packages/peachsim/sdk/ios")
|
|
20840
20851
|
);
|
|
20852
|
+
if (moduleRestructured || sdkRestructured) {
|
|
20853
|
+
(0, import_node_fs27.rmSync)(import_node_path27.default.join(slot, "release.yaml"), { force: true });
|
|
20854
|
+
(0, import_node_fs27.rmSync)(import_node_path27.default.join(slot, "release", "description.json"), { force: true });
|
|
20855
|
+
}
|
|
20841
20856
|
for (const file of swiftModuleInputFiles(moduleRoot)) {
|
|
20842
20857
|
if (!file.startsWith("../")) continue;
|
|
20843
20858
|
const from = import_node_path27.default.resolve(moduleRoot, file);
|
|
@@ -22725,7 +22740,7 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
22725
22740
|
// src/native-app-identity.ts
|
|
22726
22741
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22727
22742
|
|
|
22728
|
-
// src/
|
|
22743
|
+
// ../peach-globals/src/bundle-global-footer.ts
|
|
22729
22744
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22730
22745
|
|
|
22731
22746
|
// src/nativeAppIconContract.ts
|
|
@@ -24318,35 +24333,9 @@ var import_node_child_process20 = require("node:child_process");
|
|
|
24318
24333
|
var import_node_fs33 = require("node:fs");
|
|
24319
24334
|
var import_node_path33 = require("node:path");
|
|
24320
24335
|
|
|
24321
|
-
// cli/cli-
|
|
24322
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24323
|
-
|
|
24324
|
-
// src/automatic-update-policy.ts
|
|
24325
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24326
|
-
|
|
24327
|
-
// src/cli-version.ts
|
|
24328
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24329
|
-
|
|
24330
|
-
// src/public-brand.ts
|
|
24331
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24332
|
-
var name2 = "Peach";
|
|
24333
|
-
var peachPublicBrand = Object.freeze({
|
|
24334
|
-
name: name2,
|
|
24335
|
-
packageName: "peachsim",
|
|
24336
|
-
commandName: "peach",
|
|
24337
|
-
domain: "peachsim.com",
|
|
24338
|
-
origin: "https://peachsim.com",
|
|
24339
|
-
boxOrigin: "https://rnx-box.contrast.dev"
|
|
24340
|
-
});
|
|
24341
|
-
var rnxPublicBrand = peachPublicBrand;
|
|
24342
|
-
|
|
24343
|
-
// cli/commands/inspect/env.ts
|
|
24336
|
+
// cli/cli-release-origin.ts
|
|
24344
24337
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24345
|
-
|
|
24346
|
-
// cli/cli-update.ts
|
|
24347
24338
|
var DEFAULT_CLI_RELEASE_ORIGIN = "https://r2.rnxsim.com/rnx-cli";
|
|
24348
|
-
var CLI_UPDATE_CHECK_INTERVAL_MS = 20 * 60 * 60 * 1e3;
|
|
24349
|
-
var CLI_UPDATE_NOTIFICATION_COOLDOWN_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
24350
24339
|
|
|
24351
24340
|
// cli/drivers/linux-browser-libs.lock.json
|
|
24352
24341
|
var linux_browser_libs_lock_default = {
|
|
@@ -30119,7 +30108,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
30119
30108
|
return hash.digest("hex");
|
|
30120
30109
|
}
|
|
30121
30110
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
30122
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
30111
|
+
var STANDIN_SOURCE_DIGEST = true ? "b907e67a4a7c7d3e52e4ce9d48391c83bd5c6b4d3689f58b96f42435e285522e" : standinSourceDigest();
|
|
30123
30112
|
|
|
30124
30113
|
// src/swift-standins.ts
|
|
30125
30114
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -34727,6 +34716,19 @@ var import_node_fs50 = require("node:fs");
|
|
|
34727
34716
|
var import_node_path51 = require("node:path");
|
|
34728
34717
|
var import_node_url2 = require("node:url");
|
|
34729
34718
|
|
|
34719
|
+
// src/public-brand.ts
|
|
34720
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
34721
|
+
var name2 = "Peach";
|
|
34722
|
+
var peachPublicBrand = Object.freeze({
|
|
34723
|
+
name: name2,
|
|
34724
|
+
packageName: "peachsim",
|
|
34725
|
+
commandName: "peach",
|
|
34726
|
+
domain: "peachsim.com",
|
|
34727
|
+
origin: "https://peachsim.com",
|
|
34728
|
+
boxOrigin: "https://rnx-box.contrast.dev"
|
|
34729
|
+
});
|
|
34730
|
+
var rnxPublicBrand = peachPublicBrand;
|
|
34731
|
+
|
|
34730
34732
|
// cli/standalone.ts
|
|
34731
34733
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
34732
34734
|
var IS_STANDALONE = typeof __SOOTSIM_STANDALONE__ !== "undefined" && __SOOTSIM_STANDALONE__;
|