peachsim 0.1.2389 → 0.1.2391
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 +43 -28
- 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 +42 -27
- 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 +43 -28
- package/dist-lib/host/fetch-proxy-handler.cjs +6 -4
- 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 +6 -4
- 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 +6 -4
- 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 +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 +43 -28
- 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 +40 -25
- package/dist-lib/vite.cjs +6 -4
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/metalDirectContract.d.ts +5 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/node-runtime.json +1 -1
- package/package.json +1 -1
- package/src/swift-host.ts +5 -5
- package/src/swift-shipped-binaries.ts +17 -6
- package/src/swift-standins.ts +39 -23
package/src/swift-standins.ts
CHANGED
|
@@ -60,9 +60,13 @@ import {
|
|
|
60
60
|
swiftManifestDeclarations,
|
|
61
61
|
swiftTargetModuleName,
|
|
62
62
|
} from './swift-package'
|
|
63
|
-
import {
|
|
63
|
+
import {
|
|
64
|
+
swiftBinaryOnDisk,
|
|
65
|
+
type SwiftPackageBinary,
|
|
66
|
+
type SwiftPackages,
|
|
67
|
+
} from './swift-packages'
|
|
64
68
|
import { swiftSharedSdkRoot } from './swift-shared-sdk'
|
|
65
|
-
import { shippedBinaryDiffers } from './swift-shipped-binaries'
|
|
69
|
+
import { shippedBinaryDiffers, shippedBinaryModule } from './swift-shipped-binaries'
|
|
66
70
|
import { withBuiltinStandinBehavior } from './swift-standin-builtin-behavior'
|
|
67
71
|
import { STANDIN_SOURCE_DIGEST, standinSourceDigest } from './swift-standin-digest'
|
|
68
72
|
import {
|
|
@@ -3276,21 +3280,33 @@ async function binaryStandins(
|
|
|
3276
3280
|
return settle(result)
|
|
3277
3281
|
}
|
|
3278
3282
|
|
|
3279
|
-
/** the source targets
|
|
3280
|
-
|
|
3281
|
-
export function standinModuleSources(
|
|
3283
|
+
/** the source targets and provided archives that binary declarations import. */
|
|
3284
|
+
export function standinDependencies(
|
|
3282
3285
|
binaries: readonly SwiftPackageBinary[],
|
|
3283
|
-
|
|
3286
|
+
packages: Pick<SwiftPackages, 'binaries' | 'moduleSources'>,
|
|
3287
|
+
provided: ReadonlySet<string>,
|
|
3284
3288
|
): SwiftPackageBinary[] {
|
|
3285
|
-
const byModule = new Map(
|
|
3286
|
-
|
|
3287
|
-
|
|
3289
|
+
const byModule = new Map<string, SwiftPackageBinary>()
|
|
3290
|
+
for (const candidate of packages.binaries) {
|
|
3291
|
+
if (candidate.reached) continue
|
|
3292
|
+
const module = shippedBinaryModule(candidate.target, candidate.checksum)
|
|
3293
|
+
if (module !== undefined && provided.has(module)) byModule.set(module, candidate)
|
|
3294
|
+
}
|
|
3295
|
+
for (const candidate of packages.moduleSources)
|
|
3296
|
+
byModule.set(swiftTargetModuleName(candidate.target), candidate)
|
|
3288
3297
|
const shipped = new Set<string>()
|
|
3289
3298
|
const pending: string[] = []
|
|
3290
3299
|
const read = (dir: string, sources: readonly string[]) =>
|
|
3291
3300
|
sources.flatMap((source) =>
|
|
3292
3301
|
swiftImportNames(fs.readFileSync(path.join(dir, source), 'utf8')),
|
|
3293
3302
|
)
|
|
3303
|
+
const binarySurfaces = (binary: SwiftPackageBinary) => {
|
|
3304
|
+
try {
|
|
3305
|
+
return surfaces(swiftBinaryFramework(binary).dir, binary.target)
|
|
3306
|
+
} catch {
|
|
3307
|
+
return []
|
|
3308
|
+
}
|
|
3309
|
+
}
|
|
3294
3310
|
for (const binary of binaries) {
|
|
3295
3311
|
if (binary.placeholder !== undefined) {
|
|
3296
3312
|
shipped.add(swiftTargetModuleName(binary.target))
|
|
@@ -3298,13 +3314,7 @@ export function standinModuleSources(
|
|
|
3298
3314
|
continue
|
|
3299
3315
|
}
|
|
3300
3316
|
if (binary.publicHeaders !== undefined) continue
|
|
3301
|
-
|
|
3302
|
-
try {
|
|
3303
|
-
found = surfaces(swiftBinaryFramework(binary).dir, binary.target)
|
|
3304
|
-
} catch {
|
|
3305
|
-
continue
|
|
3306
|
-
}
|
|
3307
|
-
for (const surface of found) {
|
|
3317
|
+
for (const surface of binarySurfaces(binary)) {
|
|
3308
3318
|
shipped.add(surface.module)
|
|
3309
3319
|
pending.push(...surfaceImports(surface))
|
|
3310
3320
|
}
|
|
@@ -3314,7 +3324,11 @@ export function standinModuleSources(
|
|
|
3314
3324
|
const candidate = byModule.get(module)
|
|
3315
3325
|
if (!candidate || shipped.has(module) || selected.has(module)) continue
|
|
3316
3326
|
selected.set(module, candidate)
|
|
3317
|
-
pending.push(
|
|
3327
|
+
pending.push(
|
|
3328
|
+
...(candidate.moduleSources
|
|
3329
|
+
? read(candidate.dir, candidate.moduleSources.sources)
|
|
3330
|
+
: binarySurfaces(candidate).flatMap(surfaceImports)),
|
|
3331
|
+
)
|
|
3318
3332
|
}
|
|
3319
3333
|
return [...selected.values()]
|
|
3320
3334
|
}
|
|
@@ -3390,12 +3404,14 @@ async function buildStandins(
|
|
|
3390
3404
|
provided: ReadonlySet<string>,
|
|
3391
3405
|
behavior: SwiftStandinBehaviors,
|
|
3392
3406
|
): Promise<SwiftStandins> {
|
|
3393
|
-
|
|
3394
|
-
(
|
|
3395
|
-
|
|
3396
|
-
|
|
3407
|
+
if (
|
|
3408
|
+
binaries.every(
|
|
3409
|
+
(binary) =>
|
|
3410
|
+
provided.has(binary.target) &&
|
|
3411
|
+
!shippedBinaryDiffers(binary.target, binary.checksum),
|
|
3412
|
+
)
|
|
3397
3413
|
)
|
|
3398
|
-
|
|
3414
|
+
return { standins: [], gaps: new Map() }
|
|
3399
3415
|
if (
|
|
3400
3416
|
process.platform === 'darwin' &&
|
|
3401
3417
|
process.env.TM_EXEC_BUILD_PLATFORM !== 'mac' &&
|
|
@@ -3404,7 +3420,7 @@ async function buildStandins(
|
|
|
3404
3420
|
toolchain.moduleRoot === sourceSwiftCheckout() &&
|
|
3405
3421
|
!swiftDistributionAt(toolchain.moduleRoot)
|
|
3406
3422
|
)
|
|
3407
|
-
return sourceStandins(
|
|
3423
|
+
return sourceStandins(binaries, toolchain, provided, behavior)
|
|
3408
3424
|
const standins: SwiftStandin[] = []
|
|
3409
3425
|
const gaps = new Map<string, string>()
|
|
3410
3426
|
fs.mkdirSync(cacheDir, { recursive: true })
|