peachsim 0.1.2035 → 0.1.2036
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/inspect/get-node.ts +1 -1
- 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 +1293 -920
- 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 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +8684 -4079
- 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 +1354 -1249
- 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 +13 -6
- 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 +13 -6
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- 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 +69 -61
- 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 +1429 -1323
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- 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 +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/app-catalog-wire.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +2 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/bundle-channel.mjs +35 -1
- package/src/expo-discovery-cache.ts +1 -0
- package/src/expo-swift-host.ts +229 -113
- package/src/expoSwiftContract.ts +1 -0
- package/src/native-firebase-config.ts +28 -10
- package/src/nitro-adapter.lock.json +261 -261
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-distribution.lock.json +8 -8
- package/src/turbo-compile.ts +3 -3
- package/src/turbo-runtime.lock.json +17 -17
- package/src/turbo-source.ts +45 -32
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2036 | (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.2036 | (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.2036 | (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.2036 | (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.2036 | (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.2036 | (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;
|
|
@@ -30007,7 +30007,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
30007
30007
|
return hash.digest("hex");
|
|
30008
30008
|
}
|
|
30009
30009
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
30010
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
30010
|
+
var STANDIN_SOURCE_DIGEST = true ? "198c4315515d34e7b457ba0d9c1c590f9b4a173e62041e41f66bfe5d898f3765" : standinSourceDigest();
|
|
30011
30011
|
|
|
30012
30012
|
// src/swift-standins.ts
|
|
30013
30013
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2036 | (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;
|
|
@@ -203,7 +203,7 @@ function isValidRuntimeVersion(value) {
|
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
// runtime-companion.json
|
|
206
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
206
|
+
var runtime_companion_default = { abi: 1, sha256: "8b408c36eaa9ace30b6e5734281266eb26aba79232798e9b9965068d29ec9916", file: "node/cli-8b408c36eaa9ace30b6e5734281266eb26aba79232798e9b9965068d29ec9916.cjs" };
|
|
207
207
|
|
|
208
208
|
// src/answeredNativePackages.ts
|
|
209
209
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2036 | (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;
|
|
@@ -7,4 +7,6 @@ export type AppCatalog = {
|
|
|
7
7
|
accentName: string | null;
|
|
8
8
|
};
|
|
9
9
|
export declare function encodeAppCatalogWire(catalog: AppCatalog): string;
|
|
10
|
+
export declare function insertAppCatalogFooter(source: string, catalog: AppCatalog): string;
|
|
11
|
+
export declare function readAppCatalogFooter(source: string): AppCatalog | null;
|
|
10
12
|
export declare function decodeAppCatalogWire(raw: string | null): AppCatalog | null;
|
|
@@ -5,6 +5,7 @@ import { type ExpoSwiftCompilationResult } from '../../../../../src/expoSwiftCon
|
|
|
5
5
|
import { type NitroCompiledModule, type TurboCompiledModule } from '../../../../../src/nitroContract.ts';
|
|
6
6
|
import { type OneSDKCompilation } from '../../../../../src/oneSdkContract.ts';
|
|
7
7
|
import { type PackageVersions } from '../../../../../src/packageVersionsContract.ts';
|
|
8
|
+
import { type AppCatalog } from '../engine/app-catalog-wire.d.ts';
|
|
8
9
|
import { type RolldownModulePreparation } from '../rolldown-production-module.d.ts';
|
|
9
10
|
import type { MetroModuleIdentity } from '../metro-identity-contract.d.ts';
|
|
10
11
|
import type { NativeAppIdentity } from '../../../../../src/native-app-identity.ts';
|
|
@@ -16,6 +17,7 @@ export interface MetroBundleBootMetadata {
|
|
|
16
17
|
rolldownPreparation?: RolldownModulePreparation | null;
|
|
17
18
|
rolldownSourceHash: string | null;
|
|
18
19
|
nativeAppIdentity: NativeAppIdentity | null;
|
|
20
|
+
appCatalog: AppCatalog | null;
|
|
19
21
|
nativeFirebaseConfig: NativeFirebaseConfig | null;
|
|
20
22
|
configuredBundle: PeachBundleConfig | null;
|
|
21
23
|
expoSwift: ExpoSwiftCompilationResult | null;
|
|
@@ -2,6 +2,7 @@ import type { DeviceModel, DevicePosture, DeviceSpec, InterfaceOrientation, Inte
|
|
|
2
2
|
import type { DiscoveredServer } from '../../../../../src/serverDiscoveryContract.ts';
|
|
3
3
|
import type { LockstepFramePosition } from '../capture/lockstep-clockContract.d.ts';
|
|
4
4
|
import type { AnimationClockSnapshot } from '../engine/animation-clockContract.d.ts';
|
|
5
|
+
import type { AppCatalog } from '../engine/app-catalog-wire.d.ts';
|
|
5
6
|
import type { EngineMemoryCounts } from '../engine/memory-counts.d.ts';
|
|
6
7
|
import type { ShellControlEvent } from '../engine/shell-owned-values.d.ts';
|
|
7
8
|
import type { AuxShellActivity } from '../ios/aux-home-scene.d.ts';
|
|
@@ -584,6 +585,7 @@ export type WorkerToHost = {
|
|
|
584
585
|
type: 'nativeAppIdentity';
|
|
585
586
|
requestId: number;
|
|
586
587
|
identity: NativeAppIdentity | null;
|
|
588
|
+
appCatalog: AppCatalog | null;
|
|
587
589
|
} | {
|
|
588
590
|
type: 'debugHeld';
|
|
589
591
|
} | {
|
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"8b408c36eaa9ace30b6e5734281266eb26aba79232798e9b9965068d29ec9916","file":"node/cli-8b408c36eaa9ace30b6e5734281266eb26aba79232798e9b9965068d29ec9916.cjs"}
|
package/src/bundle-channel.mjs
CHANGED
|
@@ -16,6 +16,8 @@ import {
|
|
|
16
16
|
insertPackageVersionsFooter,
|
|
17
17
|
} from './packageVersionsContract'
|
|
18
18
|
import { terminateProcessGroup } from './process-group'
|
|
19
|
+
import { discoverAppCatalog } from '../cli/app-catalog'
|
|
20
|
+
import { captureStagedHostFiles } from './host/staged-host-files'
|
|
19
21
|
|
|
20
22
|
const digest = (bytes) => createHash('sha256').update(bytes).digest('hex')
|
|
21
23
|
const segment = /^[a-zA-Z0-9._-]+$/
|
|
@@ -104,6 +106,7 @@ async function prepareChannel({
|
|
|
104
106
|
expoKotlin = null,
|
|
105
107
|
nitro = null,
|
|
106
108
|
turbo = null,
|
|
109
|
+
appCatalog = null,
|
|
107
110
|
}) {
|
|
108
111
|
if (!(platform in nativeAssetPath)) throw new Error(`unknown platform: ${platform}`)
|
|
109
112
|
const native = platform === 'ios' ? expoSwift : expoKotlin
|
|
@@ -159,6 +162,7 @@ async function prepareChannel({
|
|
|
159
162
|
if (oneSDK) identity.update(JSON.stringify(oneSDK.metadata))
|
|
160
163
|
if (nitro) identity.update(JSON.stringify(nitro.metadata))
|
|
161
164
|
if (turbo) identity.update(JSON.stringify(turbo.metadata))
|
|
165
|
+
if (appCatalog) identity.update(JSON.stringify(appCatalog))
|
|
162
166
|
const releaseKey = `${prefix}/peach/releases/${identity.digest('hex')}`
|
|
163
167
|
const assetBaseUrl = `${origin.origin}/${releaseKey}/`
|
|
164
168
|
const directories = new Set(
|
|
@@ -185,7 +189,7 @@ async function prepareChannel({
|
|
|
185
189
|
return `${property}${JSON.stringify(new URL(path, assetBaseUrl).href)}`
|
|
186
190
|
},
|
|
187
191
|
)
|
|
188
|
-
if (assets.
|
|
192
|
+
if (assets.some(asset => !asset.path.startsWith('assets/native-catalog/')) && !locations)
|
|
189
193
|
throw new Error('bundle has packaged files but no asset metadata')
|
|
190
194
|
const attached = insertNativeBundleFooters(
|
|
191
195
|
source,
|
|
@@ -193,6 +197,15 @@ async function prepareChannel({
|
|
|
193
197
|
(path) => new URL(path, assetBaseUrl).href,
|
|
194
198
|
)
|
|
195
199
|
source = attached.source
|
|
200
|
+
if (appCatalog) {
|
|
201
|
+
source = getCliRuntime().engine_app_catalog_wire.insertAppCatalogFooter(source, {
|
|
202
|
+
...appCatalog,
|
|
203
|
+
images: Object.fromEntries(Object.entries(appCatalog.images).map(([name, variants]) => [
|
|
204
|
+
name,
|
|
205
|
+
variants.map(image => ({...image, uri: new URL(image.uri, assetBaseUrl).href})),
|
|
206
|
+
])),
|
|
207
|
+
})
|
|
208
|
+
}
|
|
196
209
|
if (detached.versions)
|
|
197
210
|
source = insertPackageVersionsFooter(source, detached.versions)
|
|
198
211
|
source = await attachRolldownBundleInventory(source)
|
|
@@ -338,8 +351,29 @@ async function packagePlatformBundle(
|
|
|
338
351
|
if (!assets.has(path)) assets.set(path, await readAssetFile(asset, file))
|
|
339
352
|
}
|
|
340
353
|
}
|
|
354
|
+
let appCatalog = null
|
|
355
|
+
if (platform === 'ios') {
|
|
356
|
+
const captured = await captureStagedHostFiles(() => discoverAppCatalog(projectRoot, 'https://packaged.invalid'))
|
|
357
|
+
if (captured.value) {
|
|
358
|
+
appCatalog = {
|
|
359
|
+
...captured.value,
|
|
360
|
+
images: Object.fromEntries(Object.entries(captured.value.images).map(([name, variants]) => [
|
|
361
|
+
name,
|
|
362
|
+
variants.map(image => {
|
|
363
|
+
const file = basename(new URL(image.uri).pathname)
|
|
364
|
+
const staged = captured.files.get(file)
|
|
365
|
+
if (!staged) throw new Error('app catalog image was not staged')
|
|
366
|
+
const resource = `assets/native-catalog/${file}`
|
|
367
|
+
assets.set(resource, readFileSync(staged))
|
|
368
|
+
return {...image, uri: resource}
|
|
369
|
+
}),
|
|
370
|
+
])),
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
341
374
|
return {
|
|
342
375
|
platform,
|
|
376
|
+
appCatalog,
|
|
343
377
|
// the versions footer stays last: the rolldown inventory reads it there.
|
|
344
378
|
bundle: Buffer.from(
|
|
345
379
|
insertPackageVersionsFooter(
|
|
@@ -162,6 +162,7 @@ function isStoredUnit(value: unknown): value is StoredExpoSwiftSourceUnit {
|
|
|
162
162
|
strings(value.reactDelegateHandlers) &&
|
|
163
163
|
digestRecord(value.files) &&
|
|
164
164
|
strings(value.frameworks) &&
|
|
165
|
+
(value.reactNativeProvider === undefined || value.reactNativeProvider === true) &&
|
|
165
166
|
(value.workspaceSources === undefined || strings(value.workspaceSources)) &&
|
|
166
167
|
(value.nativeTargets === undefined ||
|
|
167
168
|
(strings(value.nativeTargets) && value.nativeTargets.every(isDigest))) &&
|