peachsim 0.1.2246 → 0.1.2248
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/bin.ts +5 -0
- package/cli/cloud-dispatch.ts +2 -0
- package/cli/commands/control.ts +2 -2
- package/cli/commands/coverage-swift.ts +3 -3
- package/cli/commands/shell-url.ts +6 -0
- package/cli/commands/skills.ts +6 -3
- package/dist-lib/agent-daemon-client.cjs +1 -29
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -10
- 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 +4183 -4503
- 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 +2 -309
- package/dist-lib/dev-bundle-resolution.cjs +1 -12
- package/dist-lib/expo-swift-bundle.cjs +3462 -3836
- 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 +4259 -4654
- package/dist-lib/host/fetch-proxy-handler.cjs +97 -713
- 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 +639 -1110
- 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 +3 -24
- 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 -10
- package/dist-lib/metro-production-bundle.mjs +1 -12
- package/dist-lib/metro.cjs +546 -975
- package/dist-lib/native-app-identity-project.cjs +299 -592
- package/dist-lib/native-app-identity-project.mjs +11 -232
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +28 -96
- package/dist-lib/public-origins-lib.json +172 -1058
- 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 -34
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +4799 -5308
- package/dist-lib/swift-compile.cjs +1076 -1086
- package/dist-lib/swift-compile.mjs +24 -29
- 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 +1447 -1640
- package/dist-lib/vite.cjs +173 -763
- 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/engine/scene-table.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/text-nested.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +10 -2
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/kotlin-module.ts +3 -3
- package/src/swift-coverage/provenance.ts +4 -4
- package/src/swift-guest-linked-spans.ts +31 -1
- package/src/swift-objc-sdk.ts +34 -21
- package/src/swift-objc-standin.ts +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2248 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -2577,15 +2577,6 @@ import path3 from "node:path";
|
|
|
2577
2577
|
// src/swift-objc-sdk-tree.ts
|
|
2578
2578
|
import { readdirSync as readdirSync3, readFileSync as readFileSync4 } from "node:fs";
|
|
2579
2579
|
import path2 from "node:path";
|
|
2580
|
-
function readIosSdkTree(root) {
|
|
2581
|
-
return readdirSync3(root, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => {
|
|
2582
|
-
const file = path2.join(entry.parentPath, entry.name);
|
|
2583
|
-
return [
|
|
2584
|
-
path2.relative(root, file).split(path2.sep).join("/"),
|
|
2585
|
-
readFileSync4(file, "utf8")
|
|
2586
|
-
];
|
|
2587
|
-
}).sort(([a], [b]) => a < b ? -1 : 1);
|
|
2588
|
-
}
|
|
2589
2580
|
|
|
2590
2581
|
// src/swift-darwin-records.ts
|
|
2591
2582
|
import { execFileSync as execFileSync4 } from "node:child_process";
|
|
@@ -3317,23 +3308,6 @@ function isRecord(value) {
|
|
|
3317
3308
|
// src/swift-objc-sdk.ts
|
|
3318
3309
|
import path6 from "node:path";
|
|
3319
3310
|
var IOS_SDK_TARGET = "arm64-apple-ios16.0-simulator";
|
|
3320
|
-
var OVERLAY_PATH = /^usr\/lib\/swift\/([^/]+)\.swiftmodule\/arm64-apple-ios-simulator\.swiftinterface$/;
|
|
3321
|
-
var tree = typeof __PEACH_BUNDLED_IOS_SDK__ === "undefined" ? readIosSdkTree(path6.join(peachsimPackageRoot(), "sdk", "ios")) : Object.entries(__PEACH_BUNDLED_IOS_SDK__).sort(([a], [b]) => a < b ? -1 : 1);
|
|
3322
|
-
var IOS_SDK_HEADERS = {};
|
|
3323
|
-
var IOS_SDK_OVERLAYS = {};
|
|
3324
|
-
for (const [file, text2] of tree) {
|
|
3325
|
-
const module = OVERLAY_PATH.exec(file)?.[1];
|
|
3326
|
-
if (module === void 0) {
|
|
3327
|
-
IOS_SDK_HEADERS[file] = text2;
|
|
3328
|
-
continue;
|
|
3329
|
-
}
|
|
3330
|
-
const header = `// swift-interface-format-version: 1.0
|
|
3331
|
-
// swift-module-flags: -target ${IOS_SDK_TARGET} -enable-objc-interop -enable-library-evolution -module-name ${module}
|
|
3332
|
-
`;
|
|
3333
|
-
if (!text2.startsWith(header))
|
|
3334
|
-
throw new Error(`sdk overlay ${file} has the wrong interface header`);
|
|
3335
|
-
IOS_SDK_OVERLAYS[module] = text2.slice(header.length);
|
|
3336
|
-
}
|
|
3337
3311
|
|
|
3338
3312
|
// src/swift-package.ts
|
|
3339
3313
|
function swiftImplicitResourcePaths(paths) {
|
|
@@ -7554,10 +7528,17 @@ function layout(bytes) {
|
|
|
7554
7528
|
}
|
|
7555
7529
|
if (pos !== dataSection[1]) throw new Error("invalid wasm data section");
|
|
7556
7530
|
}
|
|
7531
|
+
const dataByAddress = data.map((segment, order) => ({ ...segment, order, maximumEnd: 0 })).sort((a, b) => a.address - b.address || a.order - b.order);
|
|
7532
|
+
let maximumEnd = 0;
|
|
7533
|
+
for (const segment of dataByAddress) {
|
|
7534
|
+
maximumEnd = Math.max(maximumEnd, segment.address + segment.bytes.length);
|
|
7535
|
+
segment.maximumEnd = maximumEnd;
|
|
7536
|
+
}
|
|
7557
7537
|
return {
|
|
7558
7538
|
functionsByCodeOffset,
|
|
7559
7539
|
functionsByTableSlot,
|
|
7560
7540
|
data,
|
|
7541
|
+
dataByAddress,
|
|
7561
7542
|
memoryBytes: memoryPages * 65536
|
|
7562
7543
|
};
|
|
7563
7544
|
}
|
|
@@ -7612,7 +7593,21 @@ function guestLinkedSpans(map, before, after, owners, sectionOwners = /* @__PURE
|
|
|
7612
7593
|
const optimizedOwners = /* @__PURE__ */ new Map();
|
|
7613
7594
|
const dataAt = (module, start, length) => {
|
|
7614
7595
|
const result = Buffer.alloc(length);
|
|
7615
|
-
|
|
7596
|
+
let low = 0;
|
|
7597
|
+
let high = module.dataByAddress.length;
|
|
7598
|
+
while (low < high) {
|
|
7599
|
+
const middle = Math.floor((low + high) / 2);
|
|
7600
|
+
if (module.dataByAddress[middle].maximumEnd <= start) low = middle + 1;
|
|
7601
|
+
else high = middle;
|
|
7602
|
+
}
|
|
7603
|
+
const matching = [];
|
|
7604
|
+
for (let index = low; index < module.dataByAddress.length; index++) {
|
|
7605
|
+
const segment = module.dataByAddress[index];
|
|
7606
|
+
if (segment.address >= start + length) break;
|
|
7607
|
+
if (segment.address + segment.bytes.length > start) matching.push(segment);
|
|
7608
|
+
}
|
|
7609
|
+
matching.sort((a, b) => a.order - b.order);
|
|
7610
|
+
for (const segment of matching) {
|
|
7616
7611
|
const first = Math.max(start, segment.address);
|
|
7617
7612
|
const last = Math.min(start + length, segment.address + segment.bytes.length);
|
|
7618
7613
|
if (first < last)
|
|
@@ -13022,7 +13017,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13022
13017
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13023
13018
|
var MULTI_MANIFEST_VERSION = 68;
|
|
13024
13019
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13025
|
-
var compilerSourceDigest = true ? "
|
|
13020
|
+
var compilerSourceDigest = true ? "6b31bc2b6f1a60a8ff02569b886f5f3a6cca1ec484cdb3c17ac060942b93cb3e" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
13026
13021
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13027
13022
|
const hash = createHash13("sha256");
|
|
13028
13023
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2248 | (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.2248 | (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.2248 | (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.2248 | (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;
|