peachsim 0.1.1834 → 0.1.1836
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/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 +48 -9
- 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 +41 -5
- 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 +48 -9
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 +2 -2
- 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 +2 -2
- 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 +48 -9
- 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 +2 -2
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/sdk/ios/wasm/include/semaphore.h +4 -0
- package/sdk/ios/wasm/include/sys/semaphore.h +18 -0
- package/src/bridge-contract.ts +2 -2
- package/src/expo-native-workspace.ts +51 -3
- package/src/storageSnapshotContract.ts +10 -5
- package/src/turbo-source.ts +8 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1836 | (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.1836 | (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.1836 | (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;
|
|
@@ -12152,7 +12152,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12152
12152
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12153
12153
|
var MULTI_MANIFEST_VERSION = 65;
|
|
12154
12154
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12155
|
-
var compilerSourceDigest = true ? "
|
|
12155
|
+
var compilerSourceDigest = true ? "68a650aed464d19c0ff2d04f5cbdd0f7d3f7c62112f5c7a1cdf3af16e5c5e750" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12156
12156
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12157
12157
|
const hash = (0, import_node_crypto8.createHash)("sha256");
|
|
12158
12158
|
hash.update(`swift-compile
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1836 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1836 | (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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#include <sys/cdefs.h>
|
|
3
|
+
|
|
4
|
+
typedef int sem_t;
|
|
5
|
+
#define SEM_VALUE_MAX 32767
|
|
6
|
+
#define SEM_FAILED ((sem_t *)-1)
|
|
7
|
+
|
|
8
|
+
__BEGIN_DECLS
|
|
9
|
+
sem_t *sem_open(const char *, int, ...) __asm__("__peach_darwin_sem_open");
|
|
10
|
+
int sem_close(sem_t *) __asm__("__peach_darwin_sem_close");
|
|
11
|
+
int sem_post(sem_t *) __asm__("__peach_darwin_sem_post");
|
|
12
|
+
int sem_trywait(sem_t *) __asm__("__peach_darwin_sem_trywait");
|
|
13
|
+
int sem_wait(sem_t *) __asm__("__peach_darwin_sem_wait");
|
|
14
|
+
int sem_unlink(const char *) __asm__("__peach_darwin_sem_unlink");
|
|
15
|
+
int sem_init(sem_t *, int, unsigned int) __attribute__((unavailable("unnamed semaphores are unsupported")));
|
|
16
|
+
int sem_destroy(sem_t *) __attribute__((unavailable("unnamed semaphores are unsupported")));
|
|
17
|
+
int sem_getvalue(sem_t *__restrict, int *__restrict) __attribute__((unavailable("Darwin semaphore value queries are unsupported")));
|
|
18
|
+
__END_DECLS
|
package/src/bridge-contract.ts
CHANGED
|
@@ -621,8 +621,8 @@ export interface SimSemanticResolveResult {
|
|
|
621
621
|
// ---------------------------------------------------------------------------
|
|
622
622
|
|
|
623
623
|
// 'data' clears what a user could clear from inside the app: async storage,
|
|
624
|
-
// MMKV, sqlite, cache dirs. 'full' also clears what only a fresh
|
|
625
|
-
// simulated keychain,
|
|
624
|
+
// MMKV, user defaults, sqlite, cache dirs. 'full' also clears what only a fresh
|
|
625
|
+
// install would: simulated keychain, granted permissions.
|
|
626
626
|
//
|
|
627
627
|
// reset replaces the tenant worker before clearing storage, so background app
|
|
628
628
|
// work cannot refill a store between its clear and verification.
|
|
@@ -132,6 +132,46 @@ export async function verifyExpoWorkspaceCopy(app: string, work: string) {
|
|
|
132
132
|
walk(root)
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
// the local packages the app links, found through the installed workspace
|
|
136
|
+
// links. the prepare copies the whole repository, but only these directories,
|
|
137
|
+
// the repository root and its patches decide the pods, so an edit to an
|
|
138
|
+
// unrelated package keeps the prepared workspace.
|
|
139
|
+
function localPackageDirectories(root: string, app: string) {
|
|
140
|
+
const directories = new Set<string>()
|
|
141
|
+
const visit = (directory: string) => {
|
|
142
|
+
const relative = path.relative(root, directory)
|
|
143
|
+
if (directories.has(relative)) return
|
|
144
|
+
directories.add(relative)
|
|
145
|
+
const manifest = JSON.parse(
|
|
146
|
+
fs.readFileSync(path.join(directory, 'package.json'), 'utf8'),
|
|
147
|
+
)
|
|
148
|
+
for (const name of Object.keys({
|
|
149
|
+
...manifest.dependencies,
|
|
150
|
+
...manifest.devDependencies,
|
|
151
|
+
...manifest.peerDependencies,
|
|
152
|
+
...manifest.optionalDependencies,
|
|
153
|
+
})) {
|
|
154
|
+
for (let at = directory; ; at = path.dirname(at)) {
|
|
155
|
+
const link = path.join(at, 'node_modules', name)
|
|
156
|
+
if (fs.existsSync(link)) {
|
|
157
|
+
const target = fs.realpathSync(link)
|
|
158
|
+
const within = path.relative(root, target)
|
|
159
|
+
if (
|
|
160
|
+
!within.startsWith('..') &&
|
|
161
|
+
!within.split(path.sep).includes('node_modules') &&
|
|
162
|
+
fs.existsSync(path.join(target, 'package.json'))
|
|
163
|
+
)
|
|
164
|
+
visit(target)
|
|
165
|
+
break
|
|
166
|
+
}
|
|
167
|
+
if (at === root) break
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
visit(app)
|
|
172
|
+
return [...directories]
|
|
173
|
+
}
|
|
174
|
+
|
|
135
175
|
// the prepare reads only the native subset, so it skips the bytes of every
|
|
136
176
|
// other file: a monorepo's sources run to hundreds of megabytes per launch.
|
|
137
177
|
async function hashWorkspaceInputs(
|
|
@@ -154,6 +194,13 @@ async function hashWorkspaceInputs(
|
|
|
154
194
|
const manifest = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'))
|
|
155
195
|
const hash = createHash('sha256')
|
|
156
196
|
const native = createHash('sha256')
|
|
197
|
+
const nativeDirectories = localPackageDirectories(root, app)
|
|
198
|
+
const steersNative = (relative: string) =>
|
|
199
|
+
!relative.includes(path.sep) ||
|
|
200
|
+
relative.startsWith(`patches${path.sep}`) ||
|
|
201
|
+
nativeDirectories.some(
|
|
202
|
+
(directory) => relative === directory || relative.startsWith(directory + path.sep),
|
|
203
|
+
)
|
|
157
204
|
const walk = async (directory: string) => {
|
|
158
205
|
const entries = await fs.promises.readdir(directory, { withFileTypes: true })
|
|
159
206
|
for (const entry of entries.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
@@ -165,7 +212,7 @@ async function hashWorkspaceInputs(
|
|
|
165
212
|
if (entry.isSymbolicLink()) {
|
|
166
213
|
const link = `link\0${await fs.promises.readlink(file)}\0`
|
|
167
214
|
hash.update(link)
|
|
168
|
-
native.update(`${relative}\0${link}`)
|
|
215
|
+
if (steersNative(relative)) native.update(`${relative}\0${link}`)
|
|
169
216
|
} else if (entry.isDirectory()) {
|
|
170
217
|
hash.update('directory\0')
|
|
171
218
|
await walk(file)
|
|
@@ -174,13 +221,14 @@ async function hashWorkspaceInputs(
|
|
|
174
221
|
if (NATIVE_CONFIG_FILE.test(posix)) {
|
|
175
222
|
const bytes = await fs.promises.readFile(file)
|
|
176
223
|
if (everyByte) hash.update(`file\0${bytes.length}\0`).update(bytes)
|
|
177
|
-
native.update(`${posix}\0`).update(bytes)
|
|
224
|
+
if (steersNative(relative)) native.update(`${posix}\0`).update(bytes)
|
|
178
225
|
} else {
|
|
179
226
|
if (everyByte) {
|
|
180
227
|
const bytes = await fs.promises.readFile(file)
|
|
181
228
|
hash.update(`file\0${bytes.length}\0`).update(bytes)
|
|
182
229
|
}
|
|
183
|
-
if (NATIVE_SOURCE_FILE.test(posix)
|
|
230
|
+
if (NATIVE_SOURCE_FILE.test(posix) && steersNative(relative))
|
|
231
|
+
native.update(`${posix}\0`)
|
|
184
232
|
}
|
|
185
233
|
}
|
|
186
234
|
}
|
|
@@ -128,14 +128,19 @@ export function resetStorageKindForKey(key: string): ResetStorageKind | null {
|
|
|
128
128
|
return null
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
// data wipes app data and
|
|
132
|
-
//
|
|
131
|
+
// data wipes app data and user defaults, as clearing an iOS app container does;
|
|
132
|
+
// full also wipes install-scoped credentials. unknown keys are kept by both, exactly like the page path: a reset
|
|
133
133
|
// removes named stores, never an arbitrary host key.
|
|
134
134
|
export function resetRemovesStorageKey(key: string, strategy: 'data' | 'full'): boolean {
|
|
135
135
|
const kind = resetStorageKindForKey(key)
|
|
136
|
-
if (
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
if (
|
|
137
|
+
kind === 'async-storage' ||
|
|
138
|
+
kind === 'mmkv' ||
|
|
139
|
+
kind === 'one-storage' ||
|
|
140
|
+
kind === 'user-defaults'
|
|
141
|
+
)
|
|
142
|
+
return true
|
|
143
|
+
return strategy === 'full' && kind === 'secure-store'
|
|
139
144
|
}
|
|
140
145
|
|
|
141
146
|
export type StorageSnapshotEntry = {
|
package/src/turbo-source.ts
CHANGED
|
@@ -1584,13 +1584,14 @@ export async function collectTurboSources(options: {
|
|
|
1584
1584
|
.readFileSync(pod.installed.library)
|
|
1585
1585
|
.toString('base64')
|
|
1586
1586
|
}
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1587
|
+
// a mixed pod's registering units construct the spec classes its shipped
|
|
1588
|
+
// codegen output defines, so those units compile with them
|
|
1589
|
+
const files = podFiles(pod).filter((file) => {
|
|
1590
|
+
if (!provider.reactModulesOnly || HEADER.test(file)) return true
|
|
1591
|
+
if (!OBJC.test(file)) return false
|
|
1592
|
+
const text = fs.readFileSync(path.join(root, file), 'utf8')
|
|
1593
|
+
return registersReactModule(text) || CODEGEN_OBJC.test(text)
|
|
1594
|
+
})
|
|
1594
1595
|
const managers = viewManagers(root, files)
|
|
1595
1596
|
const headers = new Map<string, { label: string; root: string; relative: string }>()
|
|
1596
1597
|
podHeaders.set(targetName, {
|