peachsim 0.1.2397 → 0.1.2398
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/serve.ts +6 -9
- 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 +12 -11
- 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 +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +11 -10
- 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 +12 -11
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +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 +3 -3
- 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/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 +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- 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 +12 -11
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- 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 +10 -9
- package/dist-lib/vite.cjs +3 -3
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -2
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRegularExpression.h +2 -1
- package/src/expo-native-compiler-digest.ts +6 -2
- package/src/expo-native-prebuilt.ts +1 -3
- package/src/swift-standin-digest.ts +7 -4
- package/node-runtime.d.json.ts +0 -4
- package/node-runtime.json +0 -1
- package/src/node-runtime.ts +0 -27
- package/src/nodeRuntimeContract.ts +0 -5
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2398 | (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;
|
|
@@ -18677,7 +18677,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
18677
18677
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
18678
18678
|
var MULTI_MANIFEST_VERSION = 69;
|
|
18679
18679
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
18680
|
-
var compilerSourceDigest = true ? "
|
|
18680
|
+
var compilerSourceDigest = true ? "a7c6b86fa906ddaed892a77b892771eb00a88c3e16a8cbbc5da264ba641b523a" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
18681
18681
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
18682
18682
|
const hash = (0, import_node_crypto14.createHash)("sha256");
|
|
18683
18683
|
hash.update(`swift-compile
|
|
@@ -34109,13 +34109,14 @@ function resolveImport(fromDir, specifier) {
|
|
|
34109
34109
|
if ((0, import_node_fs44.existsSync)(candidate)) return candidate;
|
|
34110
34110
|
return null;
|
|
34111
34111
|
}
|
|
34112
|
-
function sourceClosureFiles(srcDir, entrypoints) {
|
|
34112
|
+
function sourceClosureFiles(srcDir, entrypoints, excludedFiles = []) {
|
|
34113
|
+
const root = import_node_path45.default.resolve(srcDir);
|
|
34113
34114
|
for (const entry of entrypoints)
|
|
34114
|
-
if (!(0, import_node_fs44.existsSync)(import_node_path45.default.join(
|
|
34115
|
+
if (!(0, import_node_fs44.existsSync)(import_node_path45.default.join(root, entry)))
|
|
34115
34116
|
throw new Error(`digest entrypoint is missing: ${entry}`);
|
|
34116
34117
|
const files2 = [];
|
|
34117
|
-
const seen =
|
|
34118
|
-
const queue = entrypoints.map((file) => import_node_path45.default.join(
|
|
34118
|
+
const seen = new Set(excludedFiles.map((file) => import_node_path45.default.join(root, file)));
|
|
34119
|
+
const queue = entrypoints.map((file) => import_node_path45.default.join(root, file));
|
|
34119
34120
|
while (queue.length > 0) {
|
|
34120
34121
|
const file = queue.pop();
|
|
34121
34122
|
if (seen.has(file)) continue;
|
|
@@ -34130,9 +34131,9 @@ function sourceClosureFiles(srcDir, entrypoints) {
|
|
|
34130
34131
|
}
|
|
34131
34132
|
return files2.sort();
|
|
34132
34133
|
}
|
|
34133
|
-
function sourceClosureDigest(srcDir, entrypoints) {
|
|
34134
|
+
function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
|
|
34134
34135
|
const hash = (0, import_node_crypto24.createHash)("sha256");
|
|
34135
|
-
for (const file of sourceClosureFiles(srcDir, entrypoints)) {
|
|
34136
|
+
for (const file of sourceClosureFiles(srcDir, entrypoints, excludedFiles)) {
|
|
34136
34137
|
const key2 = import_node_path45.default.relative(srcDir, file);
|
|
34137
34138
|
const bytes = (0, import_node_fs44.readFileSync)(file);
|
|
34138
34139
|
hash.update(`${Buffer.byteLength(key2)}:${key2}${bytes.length}:`).update(bytes);
|
|
@@ -34140,7 +34141,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
34140
34141
|
return hash.digest("hex");
|
|
34141
34142
|
}
|
|
34142
34143
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
34143
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
34144
|
+
var STANDIN_SOURCE_DIGEST = true ? "fec4f05a294fbb68be2ff982a65c3f9a221683428d10495c67265397e1901461" : standinSourceDigest();
|
|
34144
34145
|
|
|
34145
34146
|
// src/swift-standins.ts
|
|
34146
34147
|
var import_node_child_process32 = require("node:child_process");
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2398 | (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;
|
|
@@ -3244,7 +3244,7 @@ var STANDIN_SOURCE_DIGEST;
|
|
|
3244
3244
|
var init_swift_standin_digest = __esm({
|
|
3245
3245
|
"src/swift-standin-digest.ts"() {
|
|
3246
3246
|
"use strict";
|
|
3247
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
3247
|
+
STANDIN_SOURCE_DIGEST = true ? "fec4f05a294fbb68be2ff982a65c3f9a221683428d10495c67265397e1901461" : standinSourceDigest();
|
|
3248
3248
|
}
|
|
3249
3249
|
});
|
|
3250
3250
|
|
|
@@ -4959,7 +4959,7 @@ var init_swift_compile = __esm({
|
|
|
4959
4959
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
4960
4960
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
4961
4961
|
).join("");
|
|
4962
|
-
compilerSourceDigest = true ? "
|
|
4962
|
+
compilerSourceDigest = true ? "a7c6b86fa906ddaed892a77b892771eb00a88c3e16a8cbbc5da264ba641b523a" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
4963
4963
|
C_WORDS = new Set(
|
|
4964
4964
|
"auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
|
|
4965
4965
|
" "
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2398 | (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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "peachsim",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2398",
|
|
4
4
|
"description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
|
|
5
5
|
"author": "Tamagui LLC",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -322,7 +322,6 @@
|
|
|
322
322
|
"dist-lib/",
|
|
323
323
|
"dist-types/",
|
|
324
324
|
"runtime-companion.json",
|
|
325
|
-
"node-runtime.json",
|
|
326
325
|
"node-runtime.d.json.ts",
|
|
327
326
|
"src/",
|
|
328
327
|
"sdk/",
|
package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRegularExpression.h
CHANGED
|
@@ -613,7 +613,8 @@ API_AVAILABLE(macos(10.7), ios(4.0), watchos(2.0), tvos(9.0))
|
|
|
613
613
|
/// > If you expect text to be in a particular format, use an ``Formatter`` or ``ValueTransformer`` subclass instead. For instance, if you're expecting a date field to be an ISO 8601 timestamp, use ``DateFormatter`` to parse that into an ``NSDate`` object.
|
|
614
614
|
/// >
|
|
615
615
|
/// > If the text is in a machine-readable format, such as XML or JSON, extract the natural language text, such as by using ``XMLParser`` or ``JSONSerialization``, and match on that rather than attempt to match on the entire document.
|
|
616
|
-
|
|
616
|
+
__attribute__((external_source_symbol(language="Swift", defined_in="Foundation", generated_declaration)))
|
|
617
|
+
@interface NSDataDetector : NSRegularExpression {
|
|
617
618
|
@protected // all instance variables are private
|
|
618
619
|
NSTextCheckingTypes _types;
|
|
619
620
|
}
|
|
@@ -8,12 +8,16 @@ import { sourceClosureDigest, sourceClosureFiles } from './swift-standin-digest'
|
|
|
8
8
|
// sources name the entry, so any edit to them moves its key.
|
|
9
9
|
const ENTRYPOINTS = ['expo-swift-host.ts', 'turbo-bundle.ts']
|
|
10
10
|
|
|
11
|
+
// the turbo bundle shares asset serving with nitro, but the expo entry
|
|
12
|
+
// never links the shared nitro executable selected by this generated lock.
|
|
13
|
+
const EXCLUDED_FILES = ['nitro-superset.lock.json']
|
|
14
|
+
|
|
11
15
|
export const expoNativeCompilerFiles = (srcDir: string) =>
|
|
12
|
-
sourceClosureFiles(srcDir, ENTRYPOINTS)
|
|
16
|
+
sourceClosureFiles(srcDir, ENTRYPOINTS, EXCLUDED_FILES)
|
|
13
17
|
|
|
14
18
|
export const expoNativeCompilerDigest = (srcDir: string) =>
|
|
15
19
|
createHash('sha256')
|
|
16
|
-
.update(sourceClosureDigest(srcDir, ENTRYPOINTS))
|
|
20
|
+
.update(sourceClosureDigest(srcDir, ENTRYPOINTS, EXCLUDED_FILES))
|
|
17
21
|
.update('\0')
|
|
18
22
|
.update(swiftCompilerSourceDigest(srcDir))
|
|
19
23
|
.update(reactNativeCoreDigest(srcDir))
|
|
@@ -52,9 +52,7 @@ import {
|
|
|
52
52
|
export const EXPO_NATIVE_ENTRY_NAME = 'ios'
|
|
53
53
|
|
|
54
54
|
// build-cli replaces this in every bundle with the digest of the sources it
|
|
55
|
-
// bundles.
|
|
56
|
-
// superset lock is in the closure, and hashing at import would run before a
|
|
57
|
-
// publisher generates it.
|
|
55
|
+
// bundles.
|
|
58
56
|
declare const __EXPO_NATIVE_COMPILER_DIGEST__: string | undefined
|
|
59
57
|
export function expoNativeCompilerDigestValue(): string {
|
|
60
58
|
return typeof __EXPO_NATIVE_COMPILER_DIGEST__ === 'string'
|
|
@@ -27,13 +27,15 @@ function resolveImport(fromDir: string, specifier: string): string | null {
|
|
|
27
27
|
export function sourceClosureFiles(
|
|
28
28
|
srcDir: string,
|
|
29
29
|
entrypoints: readonly string[],
|
|
30
|
+
excludedFiles: readonly string[] = [],
|
|
30
31
|
): string[] {
|
|
32
|
+
const root = path.resolve(srcDir)
|
|
31
33
|
for (const entry of entrypoints)
|
|
32
|
-
if (!existsSync(path.join(
|
|
34
|
+
if (!existsSync(path.join(root, entry)))
|
|
33
35
|
throw new Error(`digest entrypoint is missing: ${entry}`)
|
|
34
36
|
const files: string[] = []
|
|
35
|
-
const seen = new Set
|
|
36
|
-
const queue = entrypoints.map((file) => path.join(
|
|
37
|
+
const seen = new Set(excludedFiles.map((file) => path.join(root, file)))
|
|
38
|
+
const queue = entrypoints.map((file) => path.join(root, file))
|
|
37
39
|
while (queue.length > 0) {
|
|
38
40
|
const file = queue.pop()!
|
|
39
41
|
if (seen.has(file)) continue
|
|
@@ -52,9 +54,10 @@ export function sourceClosureFiles(
|
|
|
52
54
|
export function sourceClosureDigest(
|
|
53
55
|
srcDir: string,
|
|
54
56
|
entrypoints: readonly string[],
|
|
57
|
+
excludedFiles?: readonly string[],
|
|
55
58
|
): string {
|
|
56
59
|
const hash = createHash('sha256')
|
|
57
|
-
for (const file of sourceClosureFiles(srcDir, entrypoints)) {
|
|
60
|
+
for (const file of sourceClosureFiles(srcDir, entrypoints, excludedFiles)) {
|
|
58
61
|
const key = path.relative(srcDir, file)
|
|
59
62
|
const bytes = readFileSync(file)
|
|
60
63
|
hash.update(`${Buffer.byteLength(key)}:${key}${bytes.length}:`).update(bytes)
|
package/node-runtime.d.json.ts
DELETED
package/node-runtime.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"abi":1,"archiveSha256":"adf573e01519b89b8e8e802744b722efa08c362ef518c0b2d9b83b5c30330dc1","entrySha256":"373427f8006d7c6d30178aa939c2537a8f8a89454c9fb8939c7b2ecdd9010978"}
|
package/src/node-runtime.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createHash } from 'node:crypto'
|
|
2
|
-
import { existsSync, readFileSync } from 'node:fs'
|
|
3
|
-
import { join } from 'node:path'
|
|
4
|
-
import { installVerifiedTarball } from '@contrast/runtime-delivery'
|
|
5
|
-
import identity from '../node-runtime.json' with { type: 'json' }
|
|
6
|
-
|
|
7
|
-
export async function ensureNodeRuntime(root: string): Promise<string> {
|
|
8
|
-
if (identity.abi !== 1) throw new Error('incompatible Node simulator runtime')
|
|
9
|
-
const directory = join(root, 'node', `metro-${identity.archiveSha256}`)
|
|
10
|
-
const entry = 'node-tenant.mjs'
|
|
11
|
-
const verify = (directory: string) => {
|
|
12
|
-
const bytes = readFileSync(join(directory, entry))
|
|
13
|
-
if (createHash('sha256').update(bytes).digest('hex') !== identity.entrySha256)
|
|
14
|
-
throw new Error('Node simulator runtime does not match this CLI')
|
|
15
|
-
}
|
|
16
|
-
if (existsSync(join(directory, entry))) verify(directory)
|
|
17
|
-
else
|
|
18
|
-
await installVerifiedTarball({
|
|
19
|
-
url: `https://r2.rnxsim.com/rnx-cli/companions/node-tenant-${identity.archiveSha256}.tar.gz`,
|
|
20
|
-
digest: { algorithm: 'sha256', encoding: 'hex', value: identity.archiveSha256 },
|
|
21
|
-
destDir: directory,
|
|
22
|
-
installedMarker: entry,
|
|
23
|
-
verify,
|
|
24
|
-
label: 'Node simulator runtime',
|
|
25
|
-
})
|
|
26
|
-
return join(directory, entry)
|
|
27
|
-
}
|