peachsim 0.1.1814 → 0.1.1815
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/control.ts +5 -2
- package/cli/commands/inspect.ts +43 -385
- package/cli/commands/package.ts +6 -1
- package/cli/commands/runtime.ts +2 -2
- package/cli/outbound-endpoints.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 +453 -331
- 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 +89 -14
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +26 -18
- 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 +464 -336
- package/dist-lib/host/fetch-proxy-handler.cjs +14 -12
- 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 +15 -14
- 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 +15 -14
- package/dist-lib/native-app-identity-project.cjs +4 -3
- package/dist-lib/native-app-identity-project.mjs +4 -3
- 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 +66 -63
- 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 +503 -342
- package/dist-lib/swift-compile.cjs +4 -3
- package/dist-lib/swift-compile.mjs +4 -3
- 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 +26 -18
- package/dist-lib/vite.cjs +14 -12
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/nativeReplayContract.d.ts +2 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/cli-runtime.ts +32 -4
- package/src/expo-swift-ready.ts +16 -2
- package/src/installed-native-libraries.ts +79 -18
- package/src/nitro-adapter.lock.json +240 -240
- package/src/nitro-compile.ts +6 -3
- package/src/nitro-dependencies.ts +8 -2
- package/src/nitro-source.ts +34 -3
- package/src/nitro-superset.lock.json +14 -14
- package/src/nitroContract.ts +26 -3
- package/src/runtime-delivery.ts +2 -2
- package/src/swift-compile.ts +2 -1
- package/src/swift-distribution.lock.json +9 -8
- package/src/swift-installed-targets.ts +13 -0
- package/src/swift-standins.ts +8 -2
- package/src/turbo-bundle.ts +20 -1
- package/src/turbo-compile.ts +6 -12
- package/src/turbo-runtime.lock.json +19 -19
- package/src/turbo-source.ts +16 -0
package/src/nitro-compile.ts
CHANGED
|
@@ -295,7 +295,7 @@ export async function compileNitroModule(
|
|
|
295
295
|
)
|
|
296
296
|
let nativeSourceKeys: ReadonlySet<string>
|
|
297
297
|
if (workspace) {
|
|
298
|
-
await prepareXcodeSwiftPackages(workspace)
|
|
298
|
+
await prepareXcodeSwiftPackages(workspace, options.iosTarget)
|
|
299
299
|
const nativeApp = readXcodeAppTarget(workspace, options.iosTarget, 'Debug', {
|
|
300
300
|
installedPods: true,
|
|
301
301
|
requireSources: false,
|
|
@@ -330,7 +330,7 @@ export async function compileNitroModule(
|
|
|
330
330
|
fs.realpathSync(options.appRoot ?? options.projectRoot),
|
|
331
331
|
)
|
|
332
332
|
const providerNames = new Set(collection.providers.map(({ name }) => name))
|
|
333
|
-
const
|
|
333
|
+
const installedLibraries = workspace
|
|
334
334
|
? installedNativeLibraries(
|
|
335
335
|
providersNamed(providerNames),
|
|
336
336
|
options.projectRoot,
|
|
@@ -338,7 +338,10 @@ export async function compileNitroModule(
|
|
|
338
338
|
options.iosTarget,
|
|
339
339
|
'provider',
|
|
340
340
|
)
|
|
341
|
-
:
|
|
341
|
+
: null
|
|
342
|
+
const [unavailable] = installedLibraries?.unavailable.values() ?? []
|
|
343
|
+
if (unavailable !== undefined) throw new Error(unavailable)
|
|
344
|
+
const nativeLibraries = installedLibraries?.pods ?? new Map<string, TurboInstalledPod>()
|
|
342
345
|
const swiftModules = selectNitroProviders(
|
|
343
346
|
options.packageRoots,
|
|
344
347
|
options.answers,
|
|
@@ -247,8 +247,14 @@ export async function prepareNitroDependencies(
|
|
|
247
247
|
}
|
|
248
248
|
for (const sourceRoot of dependency.sourceDirectories ?? [dependency.headers.from])
|
|
249
249
|
walk(sourceRoot)
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
// the tree is the verified archive's whole prefix, renamed into place
|
|
251
|
+
// whole, so one another process installed first is identical to ours.
|
|
252
|
+
if (!fs.existsSync(path.join(root, 'tree')))
|
|
253
|
+
try {
|
|
254
|
+
fs.renameSync(tree, path.join(root, 'tree'))
|
|
255
|
+
} catch (error) {
|
|
256
|
+
if (!fs.existsSync(path.join(root, 'tree'))) throw error
|
|
257
|
+
}
|
|
252
258
|
fs.rmSync(staging, { recursive: true, force: true })
|
|
253
259
|
const partial = path.join(root, `manifest.json.${process.pid}.partial`)
|
|
254
260
|
fs.writeFileSync(
|
package/src/nitro-source.ts
CHANGED
|
@@ -708,6 +708,8 @@ export function collectNitroSources(
|
|
|
708
708
|
result.aliases[file] = original
|
|
709
709
|
}
|
|
710
710
|
const originals = new Map<string, string>()
|
|
711
|
+
// podspec header search roots whose headers resolve by their path under the root
|
|
712
|
+
const searchRootDirs = new Set<string>()
|
|
711
713
|
const collect = (
|
|
712
714
|
root: string,
|
|
713
715
|
directory: string,
|
|
@@ -715,7 +717,7 @@ export function collectNitroSources(
|
|
|
715
717
|
includeNamespace: string | null,
|
|
716
718
|
skip: ReadonlySet<string> = new Set(),
|
|
717
719
|
select: (file: string) => boolean = () => true,
|
|
718
|
-
extensions: RegExp = /\.(?:c|cc|cpp|cxx|h|hpp|hxx|inl)$/,
|
|
720
|
+
extensions: RegExp = /\.(?:c|cc|cpp|cxx|h|hpp|hxx|inl|inc)$/,
|
|
719
721
|
) => {
|
|
720
722
|
const headers = new Map<string, string>()
|
|
721
723
|
const walk = (relative: string) => {
|
|
@@ -765,18 +767,21 @@ export function collectNitroSources(
|
|
|
765
767
|
}
|
|
766
768
|
const requested = `${targetPath(name)}/upstream/${sourceRelative}`
|
|
767
769
|
if (requested !== original) {
|
|
768
|
-
if (!/\.(?:h|hpp|hxx|inl)$/.test(entry.name))
|
|
770
|
+
if (!/\.(?:h|hpp|hxx|inl|inc)$/.test(entry.name))
|
|
769
771
|
throw new Error(
|
|
770
772
|
`aliased Nitro translation unit is unsupported: ${sourceRelative}`,
|
|
771
773
|
)
|
|
772
774
|
alias(requested, original)
|
|
773
775
|
}
|
|
774
|
-
if (!/\.(?:h|hpp|hxx|inl)$/.test(entry.name)) continue
|
|
776
|
+
if (!/\.(?:h|hpp|hxx|inl|inc)$/.test(entry.name)) continue
|
|
775
777
|
const prior = headers.get(entry.name)
|
|
776
778
|
if (prior && prior !== original)
|
|
777
779
|
throw new Error(`ambiguous Nitro header ${entry.name} in ${root}`)
|
|
778
780
|
headers.set(entry.name, original)
|
|
779
781
|
alias(`${targetPath(name)}/include/${entry.name}`, original)
|
|
782
|
+
const fromRoot = path.posix.relative(directory, sourceRelative)
|
|
783
|
+
if (searchRootDirs.has(directory) && fromRoot !== entry.name)
|
|
784
|
+
alias(`${targetPath(name)}/include/${fromRoot}`, original)
|
|
780
785
|
if (includeNamespace)
|
|
781
786
|
alias(`${targetPath(name)}/include/${includeNamespace}/${entry.name}`, original)
|
|
782
787
|
}
|
|
@@ -931,6 +936,32 @@ export function collectNitroSources(
|
|
|
931
936
|
const implementationHeaders = fs.existsSync(path.join(module.root, 'cpp'))
|
|
932
937
|
? collect(module.root, 'cpp', targetName, null)
|
|
933
938
|
: new Map<string, string>()
|
|
939
|
+
// the podspec's other HEADER_SEARCH_PATHS roots under the pod directory
|
|
940
|
+
// (vendored C sources and headers) are part of the same translation set.
|
|
941
|
+
const podspecFile = fs.readdirSync(module.root).find((f) => f.endsWith('.podspec'))
|
|
942
|
+
const searchRoots = podspecFile
|
|
943
|
+
? [
|
|
944
|
+
...fs
|
|
945
|
+
.readFileSync(path.join(module.root, podspecFile), 'utf8')
|
|
946
|
+
.split('\n')
|
|
947
|
+
.filter((line) => /HEADER_SEARCH_PATHS/.test(line))
|
|
948
|
+
.join('\n')
|
|
949
|
+
.matchAll(/\$[({]PODS_TARGET_SRCROOT[)}]\/([^\s"'\\)}$]+)/g),
|
|
950
|
+
]
|
|
951
|
+
.map((match) => match[1]!.replace(/\/+$/, ''))
|
|
952
|
+
.filter(
|
|
953
|
+
(dir) =>
|
|
954
|
+
dir !== 'cpp' &&
|
|
955
|
+
dir !== 'ios' &&
|
|
956
|
+
fs.existsSync(path.join(module.root, dir)),
|
|
957
|
+
)
|
|
958
|
+
: []
|
|
959
|
+
for (const dir of searchRoots.filter(
|
|
960
|
+
(dir) => !searchRoots.some((other) => other !== dir && dir.startsWith(`${other}/`)),
|
|
961
|
+
)) {
|
|
962
|
+
searchRootDirs.add(dir)
|
|
963
|
+
collect(module.root, dir, targetName, null)
|
|
964
|
+
}
|
|
934
965
|
// views/ holds nitrogen's Fabric component descriptor and props parser,
|
|
935
966
|
// which only React Native's Fabric renderer reads.
|
|
936
967
|
collect(
|