peachsim 0.1.2072 → 0.1.2073

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.
Files changed (84) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +1 -1
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +1 -1
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +1 -1
  13. package/dist-lib/bundle-channel.cjs +47 -11
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +1 -1
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +1 -1
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +1 -1
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +1 -1
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +1 -1
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +5 -8
  27. package/dist-lib/expo-swift-metadata.cjs +1 -1
  28. package/dist-lib/expo-swift-metadata.mjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +47 -11
  31. package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +3 -3
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +1 -1
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +3 -3
  47. package/dist-lib/native-app-identity-project.cjs +2 -2
  48. package/dist-lib/native-app-identity-project.mjs +2 -2
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/pdfium-raster.cjs +1 -1
  54. package/dist-lib/pdfium-raster.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/public-origins-lib-esm.json +24 -24
  60. package/dist-lib/public-origins-lib.json +53 -53
  61. package/dist-lib/react-native-host-modules.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.mjs +1 -1
  63. package/dist-lib/reap-browser.cjs +1 -1
  64. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  65. package/dist-lib/sdk.cjs +1 -1
  66. package/dist-lib/sdk.mjs +1 -1
  67. package/dist-lib/skills.cjs +47 -11
  68. package/dist-lib/swift-compile.cjs +3 -6
  69. package/dist-lib/swift-compile.mjs +3 -6
  70. package/dist-lib/swift-package.cjs +1 -1
  71. package/dist-lib/swift-package.mjs +1 -1
  72. package/dist-lib/swift-submit.cjs +1 -1
  73. package/dist-lib/swift-submit.mjs +1 -1
  74. package/dist-lib/swift-toolchain.cjs +1 -1
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +4 -7
  77. package/dist-lib/vite.cjs +3 -3
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/package.json +1 -1
  81. package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFView.h +1 -1
  82. package/src/nitro-source.ts +12 -2
  83. package/src/swift-compile.ts +1 -4
  84. package/src/swift-installed-targets.ts +40 -0
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2072 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2073 | (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.2072 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2073 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2072 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2073 | (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.2072 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2073 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2072 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2073 | (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.2072 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2073 | (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.2072 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2073 | (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;
@@ -17007,7 +17007,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
17007
17007
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
17008
17008
  var MULTI_MANIFEST_VERSION = 68;
17009
17009
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
17010
- var compilerSourceDigest = true ? "d0eccf3a76ab3589906890803c18322805bb5980db7bd3f68c12931d0dd84566" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
17010
+ var compilerSourceDigest = true ? "3599ed8932d83d569ef498942b86937eefee9b6c832553a552bb212f0776a910" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
17011
17011
  function swiftArtifactHash(input, release, moduleRoot) {
17012
17012
  const hash = (0, import_node_crypto13.createHash)("sha256");
17013
17013
  hash.update(`swift-compile
@@ -17683,10 +17683,7 @@ var FOUNDATION_OVERLAY_TYPES = /* @__PURE__ */ new Set([
17683
17683
  "NSKeyValueOperator",
17684
17684
  "NSKeyValueSetMutationKind",
17685
17685
  "NSKeyValueSharedObservers",
17686
- "NSLinguisticTag",
17687
- "NSLinguisticTagScheme",
17688
- "NSLinguisticTagger",
17689
- "NSLinguisticTaggerUnit",
17686
+ // clang Foundation owns the linguistic tagger types. A Swift twin is ambiguous with the header.
17690
17687
  "NSMachPort",
17691
17688
  "NSMapEnumerator",
17692
17689
  "NSMapTable",
@@ -30031,7 +30028,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
30031
30028
  return hash.digest("hex");
30032
30029
  }
30033
30030
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
30034
- var STANDIN_SOURCE_DIGEST = true ? "b977bb0822f8fe3bb2b0e4c08d5f13adcc6418f05d5d144496da907d129c7964" : standinSourceDigest();
30031
+ var STANDIN_SOURCE_DIGEST = true ? "24956ff7d09f277050a80f8e85cfcc7969cf6f066e62ab2107e7770cde6fc98c" : standinSourceDigest();
30035
30032
 
30036
30033
  // src/swift-standins.ts
30037
30034
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2072 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2073 | (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;
@@ -1905,7 +1905,7 @@ function readIosSdkTree(root) {
1905
1905
 
1906
1906
  // src/swift-standin-digest.ts
1907
1907
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1908
- var STANDIN_SOURCE_DIGEST = true ? "b977bb0822f8fe3bb2b0e4c08d5f13adcc6418f05d5d144496da907d129c7964" : standinSourceDigest();
1908
+ var STANDIN_SOURCE_DIGEST = true ? "24956ff7d09f277050a80f8e85cfcc7969cf6f066e62ab2107e7770cde6fc98c" : standinSourceDigest();
1909
1909
 
1910
1910
  // src/expo-native-workspace.ts
1911
1911
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -5403,7 +5403,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
5403
5403
  var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
5404
5404
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
5405
5405
  ).join("");
5406
- var compilerSourceDigest = true ? "d0eccf3a76ab3589906890803c18322805bb5980db7bd3f68c12931d0dd84566" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
5406
+ var compilerSourceDigest = true ? "3599ed8932d83d569ef498942b86937eefee9b6c832553a552bb212f0776a910" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
5407
5407
  var CORE_FOUNDATION_HANDLE_IMPORTS = [
5408
5408
  "CFAllocator",
5409
5409
  "CFArray",
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2072 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2073 | (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.2072 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2073 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.2072",
3
+ "version": "0.1.2073",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -62,7 +62,7 @@ PDFKIT_EXTERN NSNotificationName const PDFViewDisplayBoxChangedNotification PDFK
62
62
  PDFKIT_EXTERN NSNotificationName const PDFViewVisiblePagesChangedNotification PDFKIT_AVAILABLE(10_4, 11_0); // Notification when the scroll view has scrolled into the bounds of a new page.
63
63
 
64
64
  PDFKIT_CLASS_AVAILABLE(10_4, 11_0)
65
- @interface PDFView : PDFKitPlatformView
65
+ PEACH_SWIFT_CLASS(PDFKit) @interface PDFView : PDFKitPlatformView
66
66
  #if TARGET_OS_OSX
67
67
  < NSAnimationDelegate, NSMenuDelegate >
68
68
  #elif (TARGET_OS_IOS || TARGET_OS_VISION)
@@ -249,7 +249,11 @@ function swiftViewComponent(
249
249
  root: string,
250
250
  swiftModule: string,
251
251
  name: string,
252
- ): Omit<NitroView, 'name'> & { spec: string; componentSource: string } {
252
+ ): Omit<NitroView, 'name'> & {
253
+ spec: string
254
+ componentSource: string
255
+ drop: string | null
256
+ } {
253
257
  const directory = 'nitrogen/generated/ios/c++/views'
254
258
  const read = (file: string) =>
255
259
  readPackageFile(root, path.join(root, file), MAX_SWIFT_COMPILE_SOURCE_BYTES).toString(
@@ -290,11 +294,15 @@ function swiftViewComponent(
290
294
  }))
291
295
  if (!parsed.some((prop) => prop.name === 'hybridRef'))
292
296
  throw new Error(`${root}: Nitro view ${name} parses no hybridRef prop`)
297
+ // nitrogen names the teardown call onDropView or maybePrepareForRecycle.
298
+ const drop =
299
+ /\bswiftPart\.(maybePrepareForRecycle|onDropView)\(\)/.exec(source)?.[1] ?? null
293
300
  return {
294
301
  spec: spec[1]!,
295
302
  componentSource: fs.realpathSync(path.join(root, directory, file)),
296
303
  props: parsed.filter((prop) => prop.name !== 'hybridRef'),
297
304
  transaction: source.includes('hasTransactionPropChanges'),
305
+ drop,
298
306
  }
299
307
  }
300
308
  throw new Error(`${root}: Nitro view ${name} has no generated iOS view component`)
@@ -1239,7 +1247,9 @@ export function collectNitroSources(
1239
1247
  ' [view] { return view->getSwiftPart().getView(); },',
1240
1248
  ' [view] { view->getSwiftPart().beforeUpdate(); },',
1241
1249
  ' [view] { view->getSwiftPart().afterUpdate(); },',
1242
- ' [view] { view->getSwiftPart().onDropView(); },',
1250
+ view.drop
1251
+ ? ` [view] { view->getSwiftPart().${view.drop}(); },`
1252
+ : ' [] {},',
1243
1253
  ' });',
1244
1254
  ' return hybrid;',
1245
1255
  ]
@@ -2594,10 +2594,7 @@ const FOUNDATION_OVERLAY_TYPES = new Set([
2594
2594
  'NSKeyValueOperator',
2595
2595
  'NSKeyValueSetMutationKind',
2596
2596
  'NSKeyValueSharedObservers',
2597
- 'NSLinguisticTag',
2598
- 'NSLinguisticTagScheme',
2599
- 'NSLinguisticTagger',
2600
- 'NSLinguisticTaggerUnit',
2597
+ // clang Foundation owns the linguistic tagger types. A Swift twin is ambiguous with the header.
2601
2598
  'NSMachPort',
2602
2599
  'NSMapEnumerator',
2603
2600
  'NSMapTable',
@@ -239,6 +239,46 @@ export function applyInstalledSwiftTargets(
239
239
  fileFlags,
240
240
  })
241
241
  }
242
+ // a generated target that owns an installed pod's module keeps its own
243
+ // sources. the pod's target edges still have to be swiftpm dependencies,
244
+ // or a same-named clang module satisfies the import.
245
+ const present = new Set(collection.targets.map((item) => item.name))
246
+ const edges = new Map(
247
+ collection.targets.map((item) => [
248
+ item.name,
249
+ (item.dependencies ?? []).flatMap((dependency) =>
250
+ dependency.kind === 'target' ? [dependency.name] : [],
251
+ ),
252
+ ]),
253
+ )
254
+ const reaches = (from: string, goal: string) => {
255
+ const seen = new Set<string>()
256
+ const stack = [...(edges.get(from) ?? [])]
257
+ while (stack.length > 0) {
258
+ const name = stack.pop()!
259
+ if (name === goal) return true
260
+ if (seen.has(name)) continue
261
+ seen.add(name)
262
+ for (const next of edges.get(name) ?? []) stack.push(next)
263
+ }
264
+ return false
265
+ }
266
+ for (const native of nativeTargets) {
267
+ const installed = installedTargets.find((item) => item.name === native.name)
268
+ const target = collection.targets.find((item) => item.name === native.name)
269
+ if (!installed?.dependencies || !target) continue
270
+ const owned = new Set(
271
+ (target.dependencies ?? []).map((dependency) => dependency.name),
272
+ )
273
+ for (const dependency of installed.dependencies) {
274
+ if (dependency.kind !== 'target' || dependency.name === target.name) continue
275
+ if (!present.has(dependency.name) || owned.has(dependency.name)) continue
276
+ if (reaches(dependency.name, target.name)) continue
277
+ target.dependencies = [...(target.dependencies ?? []), dependency]
278
+ owned.add(dependency.name)
279
+ edges.set(target.name, [...(edges.get(target.name) ?? []), dependency.name])
280
+ }
281
+ }
242
282
  // headers keep the workspace's canonical paths and CocoaPods' original
243
283
  // umbrella/module map. provider include aliases reach these same bytes.
244
284
  Object.assign(