peachsim 0.1.779 → 0.1.781
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/detox.ts +13 -9
- package/cli/commands/test.ts +1 -1
- package/detox/jest-preset.cjs +1 -1
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.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/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +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/detox/index.cjs +1 -1
- package/dist-lib/detox/jest-preset.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +591 -257
- 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 +1 -1
- 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 +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/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/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.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 +594 -260
- 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 +583 -257
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/skills/peach-test/SKILL.md +1 -1
- package/src/swift-host.ts +55 -28
- package/src/swift-standin-emit.ts +471 -242
- package/src/swift-standins.ts +285 -40
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.781 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/package.json
CHANGED
package/src/swift-host.ts
CHANGED
|
@@ -33,7 +33,11 @@ import {
|
|
|
33
33
|
type SwiftPackageGap,
|
|
34
34
|
type SwiftPackages,
|
|
35
35
|
} from './swift-packages'
|
|
36
|
-
import {
|
|
36
|
+
import {
|
|
37
|
+
standinGenerationInputs,
|
|
38
|
+
swiftStandins,
|
|
39
|
+
type SwiftStandin,
|
|
40
|
+
} from './swift-standins'
|
|
37
41
|
import {
|
|
38
42
|
MAX_SWIFT_COMPILE_FILES,
|
|
39
43
|
MAX_SWIFT_COMPILE_SOURCE_BYTES,
|
|
@@ -187,7 +191,12 @@ interface XcodeProjectEntry {
|
|
|
187
191
|
provided: ReadonlySet<string> | null
|
|
188
192
|
/** the module root a local compile links, which builds binary stand-ins. */
|
|
189
193
|
moduleRoot: string | null
|
|
190
|
-
packages?: {
|
|
194
|
+
packages?: {
|
|
195
|
+
key: string
|
|
196
|
+
standinKey: string
|
|
197
|
+
packages: SwiftPackages
|
|
198
|
+
standins: SwiftStandin[]
|
|
199
|
+
}
|
|
191
200
|
}
|
|
192
201
|
|
|
193
202
|
const xcodeProjects = new Map<string, XcodeProjectEntry>()
|
|
@@ -230,39 +239,57 @@ function swiftPackages(
|
|
|
230
239
|
source.kind === 'local' ? stamp(path.join(source.dir, 'Package.swift')) : 0,
|
|
231
240
|
),
|
|
232
241
|
])
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
242
|
+
// the package key is cheap stamps; the stand-in key covers the generation
|
|
243
|
+
// inputs the stamps cannot see (artifact contents, peach's modules, the
|
|
244
|
+
// emitter), so a changed input rebuilds instead of reusing stale output.
|
|
245
|
+
let cached = entry.packages
|
|
246
|
+
if (cached?.key !== key) {
|
|
247
|
+
cached = {
|
|
248
|
+
key,
|
|
249
|
+
standinKey: '',
|
|
250
|
+
packages: resolveSwiftPackages({
|
|
239
251
|
rootDir: app.rootDir,
|
|
240
252
|
resolved: app.packageResolved,
|
|
241
253
|
products: app.linkedProducts,
|
|
242
254
|
localDirs: app.localPackageDirs,
|
|
243
|
-
provided,
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
255
|
+
provided: entry.provided,
|
|
256
|
+
}),
|
|
257
|
+
standins: [],
|
|
258
|
+
}
|
|
259
|
+
entry.packages = cached
|
|
260
|
+
}
|
|
261
|
+
// a reached binary target with stand-ins for every module it ships
|
|
262
|
+
// resolves as provided, so what depends on it compiles; the rest keep
|
|
263
|
+
// their reason with why no stand-in was built. surfaces peach already
|
|
264
|
+
// ships are skipped up front, so no generated target overrides a shipped
|
|
265
|
+
// module.
|
|
266
|
+
const reached = cached.packages.binaries.filter((binary) => binary.reached)
|
|
267
|
+
if (entry.moduleRoot && entry.provided && reached.length > 0) {
|
|
268
|
+
const resolved = swiftModuleToolchain(entry.moduleRoot)
|
|
269
|
+
const toolchain = {
|
|
270
|
+
moduleRoot: entry.moduleRoot,
|
|
271
|
+
toolchainBin: resolved.toolchainBin,
|
|
272
|
+
release: resolved.release,
|
|
273
|
+
}
|
|
274
|
+
const generation = standinGenerationInputs(reached, toolchain)
|
|
275
|
+
if (cached.standinKey !== generation) {
|
|
276
|
+
const built = swiftStandins(reached, toolchain, entry.provided)
|
|
277
|
+
cached.packages = resolveSwiftPackages({
|
|
278
|
+
rootDir: app.rootDir,
|
|
279
|
+
resolved: app.packageResolved,
|
|
280
|
+
products: app.linkedProducts,
|
|
281
|
+
localDirs: app.localPackageDirs,
|
|
282
|
+
provided: new Set([
|
|
283
|
+
...entry.provided,
|
|
284
|
+
...built.standins.map((standin) => standin.target),
|
|
285
|
+
]),
|
|
286
|
+
binaryGaps: built.gaps,
|
|
256
287
|
})
|
|
257
|
-
standins = built.standins
|
|
258
|
-
|
|
259
|
-
new Set([...entry.provided, ...standins.map((standin) => standin.target)]),
|
|
260
|
-
built.gaps,
|
|
261
|
-
)
|
|
288
|
+
cached.standins = built.standins
|
|
289
|
+
cached.standinKey = generation
|
|
262
290
|
}
|
|
263
|
-
entry.packages = { key, packages, standins }
|
|
264
291
|
}
|
|
265
|
-
return
|
|
292
|
+
return cached
|
|
266
293
|
}
|
|
267
294
|
|
|
268
295
|
// the app target's sources compile as one executable target under this
|