peachsim 0.1.1880 → 0.1.1886

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 (154) hide show
  1. package/cli/commands/control.ts +11 -10
  2. package/cli/commands/reset.ts +1 -1
  3. package/cli/outbound-endpoints.ts +1 -1
  4. package/detox/index.ts +62 -1
  5. package/dist-lib/agent-daemon-client.cjs +1 -1
  6. package/dist-lib/agent-events.cjs +1 -1
  7. package/dist-lib/attached-projects.cjs +1 -1
  8. package/dist-lib/auth/shared-session.cjs +1 -1
  9. package/dist-lib/backend-origin.cjs +1 -1
  10. package/dist-lib/beta.cjs +1 -1
  11. package/dist-lib/beta.mjs +1 -1
  12. package/dist-lib/bridge-constants.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.mjs +1 -1
  15. package/dist-lib/bridge-contract.cjs +1 -1
  16. package/dist-lib/bridge-contract.mjs +1 -1
  17. package/dist-lib/bundle-channel.cjs +8980 -4279
  18. package/dist-lib/capture-contract.cjs +1 -1
  19. package/dist-lib/capture-contract.mjs +1 -1
  20. package/dist-lib/cloud-contract.cjs +1 -1
  21. package/dist-lib/cloud-contract.mjs +1 -1
  22. package/dist-lib/cloud-test-args.cjs +1 -1
  23. package/dist-lib/cloud-test-args.mjs +1 -1
  24. package/dist-lib/cloud.cjs +1 -1
  25. package/dist-lib/cloud.mjs +1 -1
  26. package/dist-lib/config.cjs +1 -1
  27. package/dist-lib/config.mjs +1 -1
  28. package/dist-lib/detox/index.cjs +35 -2
  29. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  30. package/dist-lib/expo-swift-bundle.cjs +8500 -3912
  31. package/dist-lib/expo-swift-metadata.cjs +5 -1
  32. package/dist-lib/expo-swift-metadata.mjs +5 -1
  33. package/dist-lib/home-paths.cjs +1 -1
  34. package/dist-lib/host/bridge-host.cjs +9744 -5071
  35. package/dist-lib/host/fetch-proxy-handler.cjs +93 -13
  36. package/dist-lib/host/fetch-proxy-overrides.cjs +10 -2
  37. package/dist-lib/host/fetch-proxy-overrides.mjs +8 -2
  38. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  39. package/dist-lib/host/websocket-proxy.cjs +1 -1
  40. package/dist-lib/index.cjs +525 -120
  41. package/dist-lib/jump-to-source-babel.cjs +1 -1
  42. package/dist-lib/jump-to-source-native.cjs +1 -1
  43. package/dist-lib/kotlin-host.cjs +1 -1
  44. package/dist-lib/menu.cjs +1 -1
  45. package/dist-lib/menu.mjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  48. package/dist-lib/metro-production-bundle.cjs +1 -1
  49. package/dist-lib/metro-production-bundle.mjs +1 -1
  50. package/dist-lib/metro.cjs +523 -118
  51. package/dist-lib/native-app-identity-project.cjs +395 -72
  52. package/dist-lib/native-app-identity-project.mjs +723 -375
  53. package/dist-lib/native-app-identity.cjs +37 -1
  54. package/dist-lib/native-app-identity.mjs +36 -1
  55. package/dist-lib/native-firebase-metadata.cjs +1 -1
  56. package/dist-lib/native-firebase-metadata.mjs +1 -1
  57. package/dist-lib/pdfium-raster.cjs +1 -1
  58. package/dist-lib/pdfium-raster.mjs +1 -1
  59. package/dist-lib/plist.cjs +1 -1
  60. package/dist-lib/plist.mjs +1 -1
  61. package/dist-lib/profiles.cjs +1 -1
  62. package/dist-lib/public-brand.cjs +1 -1
  63. package/dist-lib/public-origins-lib-esm.json +58 -28
  64. package/dist-lib/public-origins-lib.json +233 -92
  65. package/dist-lib/react-native-host-modules.cjs +1 -1
  66. package/dist-lib/react-native-host-modules.mjs +1 -1
  67. package/dist-lib/reap-browser.cjs +1 -1
  68. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  69. package/dist-lib/sdk.cjs +1 -1
  70. package/dist-lib/sdk.mjs +1 -1
  71. package/dist-lib/skills.cjs +30639 -25833
  72. package/dist-lib/swift-compile.cjs +6823 -2525
  73. package/dist-lib/swift-compile.mjs +6809 -2509
  74. package/dist-lib/swift-package.cjs +20 -3
  75. package/dist-lib/swift-package.mjs +20 -3
  76. package/dist-lib/swift-submit.cjs +2 -2
  77. package/dist-lib/swift-submit.mjs +2 -2
  78. package/dist-lib/swift-toolchain.cjs +19 -1
  79. package/dist-lib/swift.cjs +1 -1
  80. package/dist-lib/vite-swift.cjs +8704 -4124
  81. package/dist-lib/vite.cjs +93 -13
  82. package/dist-lib/worklet-executable.cjs +1 -1
  83. package/dist-lib/worklet-executable.mjs +1 -1
  84. package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -1
  85. package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +2 -0
  86. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
  87. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -0
  88. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +11 -1
  89. package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +2 -1
  90. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
  91. package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +10 -1
  92. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  93. package/dist-types/packages/peach-kit/src/ui/popover-placement.d.ts +1 -1
  94. package/dist-types/packages/sootsim-swift/src/securityHostContract.d.ts +10 -0
  95. package/package.json +1 -1
  96. package/runtime-companion.json +1 -1
  97. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFHost.h +555 -0
  98. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
  99. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +6 -0
  100. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtocol.h +0 -1
  101. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +6 -0
  102. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemBadge.h +1 -1
  103. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarMinimization.h +1 -1
  104. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +1 -1
  105. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchTab.h +1 -1
  106. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITab.h +1 -1
  107. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabAccessory.h +2 -2
  108. package/sdk/ios/usr/include/os/activity.h +534 -0
  109. package/sdk/ios/usr/include/os.modulemap +15 -0
  110. package/sdk/ios/wasm/include/fcntl.h +16 -0
  111. package/sdk/ios/wasm/include/string.h +5 -0
  112. package/sdk/native-hashes.json +1 -1
  113. package/src/dns-over-https.ts +61 -9
  114. package/src/expo-swift-host.ts +11 -3
  115. package/src/host/fetch-proxy-handler.ts +51 -2
  116. package/src/host/fetch-proxy-overrides.ts +4 -0
  117. package/src/host/hostname-resolver.ts +9 -5
  118. package/src/native-app-identity-project.ts +13 -2
  119. package/src/native-app-identity.ts +47 -0
  120. package/src/nitro-adapter.lock.json +260 -260
  121. package/src/nitro-superset.lock.json +4 -4
  122. package/src/storageSnapshotContract.ts +20 -1
  123. package/src/swift-compile.ts +534 -136
  124. package/src/swift-compiler-digest.ts +15 -0
  125. package/src/swift-coverage/xcode-packages.ts +3 -2
  126. package/src/swift-distribution.lock.json +12 -12
  127. package/src/swift-guest-archive.ts +153 -0
  128. package/src/swift-guest-compile.ts +449 -0
  129. package/src/swift-guest-image-ledger.ts +656 -0
  130. package/src/swift-guest-link-plan.ts +52 -0
  131. package/src/swift-guest-link.ts +1414 -0
  132. package/src/swift-guest-linked-spans.ts +338 -0
  133. package/src/swift-guest-manifest.ts +141 -0
  134. package/src/swift-guest-projection-storage.ts +310 -0
  135. package/src/swift-guest-projection.ts +252 -0
  136. package/src/swift-guest-runtime-plan.ts +834 -0
  137. package/src/swift-guest-source-inputs.ts +427 -0
  138. package/src/swift-guest-source-plan.ts +279 -0
  139. package/src/swift-host.ts +125 -17
  140. package/src/swift-link-roots.ts +27 -50
  141. package/src/swift-package-manifest.ts +34 -18
  142. package/src/swift-package.ts +32 -2
  143. package/src/swift-packages.ts +138 -17
  144. package/src/swift-runtime-products.ts +73 -0
  145. package/src/swift-shared-sdk.ts +1 -1
  146. package/src/swift-submit.ts +13 -3
  147. package/src/swift-toolchain.ts +18 -0
  148. package/src/swift-wasm-prune.ts +313 -14
  149. package/src/swiftContract.ts +83 -0
  150. package/src/swiftRuntimeProductContract.ts +85 -45
  151. package/src/turbo-runtime.lock.json +23 -23
  152. package/src/turbo-source.ts +4 -1
  153. package/src/wasm-optimize.ts +16 -4
  154. package/src/xcode-project.ts +142 -14
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1880 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1886 | (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;
@@ -461,6 +461,20 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
461
461
  (match) => match[1]
462
462
  );
463
463
  const targetArguments = splitManifestArguments(call.slice(0, -1));
464
+ const sourceArgument = targetArguments.find(
465
+ (argument) => /^sources\s*:/.test(argument)
466
+ );
467
+ const sourceList = sourceArgument?.replace(/^sources\s*:\s*/, "").trim();
468
+ if (sourceList && sourceList !== "nil" && !(sourceList.startsWith("[") && sourceList.endsWith("]")))
469
+ throw new Error(`Unsupported sources expression in target ${name}: ${sourceList}`);
470
+ const sources = sourceList?.startsWith("[") && sourceList.endsWith("]") ? splitManifestArguments(sourceList.slice(1, -1)).map((source) => {
471
+ const literal = /^"((?:[^"\\]|\\.)*)"$/.exec(source);
472
+ if (!literal)
473
+ throw new Error(
474
+ `Unsupported source expression in target ${name}: ${source}`
475
+ );
476
+ return swiftStringValue(literal[1], `a source of target ${name}`).replace(/^\.\//, "").replace(/\/+$/, "");
477
+ }) : void 0;
464
478
  const dependencyArgument = targetArguments.find(
465
479
  (argument) => /^dependencies\s*:/.test(argument)
466
480
  );
@@ -499,7 +513,8 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
499
513
  ...clangSettings.length === 0 ? {} : { clangSettings },
500
514
  ...linkedLibraries.length === 0 ? {} : { linkedLibraries },
501
515
  resources,
502
- ...dependencies.length === 0 ? {} : { dependencies },
516
+ ...dependencyList?.startsWith("[") && dependencyList.endsWith("]") ? { dependencies } : {},
517
+ ...sources === void 0 ? {} : { sources },
503
518
  ...excluded.length === 0 ? {} : { exclude: excluded }
504
519
  });
505
520
  }
@@ -549,6 +564,7 @@ function swiftObjCResourceAccessor(bundleName) {
549
564
  const finder = `${accessorName}_SWIFTPM_MODULE_BUNDLER_FINDER`;
550
565
  return {
551
566
  header: [
567
+ "#ifdef __OBJC__",
552
568
  "#import <Foundation/Foundation.h>",
553
569
  "",
554
570
  "__BEGIN_DECLS",
@@ -557,7 +573,8 @@ function swiftObjCResourceAccessor(bundleName) {
557
573
  "",
558
574
  `#define SWIFTPM_MODULE_BUNDLE ${symbol}()`,
559
575
  "",
560
- "__END_DECLS"
576
+ "__END_DECLS",
577
+ "#endif"
561
578
  ].join("\n"),
562
579
  body: [
563
580
  "#import <Foundation/Foundation.h>",
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1880 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -409,6 +409,20 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
409
409
  (match) => match[1]
410
410
  );
411
411
  const targetArguments = splitManifestArguments(call.slice(0, -1));
412
+ const sourceArgument = targetArguments.find(
413
+ (argument) => /^sources\s*:/.test(argument)
414
+ );
415
+ const sourceList = sourceArgument?.replace(/^sources\s*:\s*/, "").trim();
416
+ if (sourceList && sourceList !== "nil" && !(sourceList.startsWith("[") && sourceList.endsWith("]")))
417
+ throw new Error(`Unsupported sources expression in target ${name}: ${sourceList}`);
418
+ const sources = sourceList?.startsWith("[") && sourceList.endsWith("]") ? splitManifestArguments(sourceList.slice(1, -1)).map((source) => {
419
+ const literal = /^"((?:[^"\\]|\\.)*)"$/.exec(source);
420
+ if (!literal)
421
+ throw new Error(
422
+ `Unsupported source expression in target ${name}: ${source}`
423
+ );
424
+ return swiftStringValue(literal[1], `a source of target ${name}`).replace(/^\.\//, "").replace(/\/+$/, "");
425
+ }) : void 0;
412
426
  const dependencyArgument = targetArguments.find(
413
427
  (argument) => /^dependencies\s*:/.test(argument)
414
428
  );
@@ -447,7 +461,8 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
447
461
  ...clangSettings.length === 0 ? {} : { clangSettings },
448
462
  ...linkedLibraries.length === 0 ? {} : { linkedLibraries },
449
463
  resources,
450
- ...dependencies.length === 0 ? {} : { dependencies },
464
+ ...dependencyList?.startsWith("[") && dependencyList.endsWith("]") ? { dependencies } : {},
465
+ ...sources === void 0 ? {} : { sources },
451
466
  ...excluded.length === 0 ? {} : { exclude: excluded }
452
467
  });
453
468
  }
@@ -497,6 +512,7 @@ function swiftObjCResourceAccessor(bundleName) {
497
512
  const finder = `${accessorName}_SWIFTPM_MODULE_BUNDLER_FINDER`;
498
513
  return {
499
514
  header: [
515
+ "#ifdef __OBJC__",
500
516
  "#import <Foundation/Foundation.h>",
501
517
  "",
502
518
  "__BEGIN_DECLS",
@@ -505,7 +521,8 @@ function swiftObjCResourceAccessor(bundleName) {
505
521
  "",
506
522
  `#define SWIFTPM_MODULE_BUNDLE ${symbol}()`,
507
523
  "",
508
- "__END_DECLS"
524
+ "__END_DECLS",
525
+ "#endif"
509
526
  ].join("\n"),
510
527
  body: [
511
528
  "#import <Foundation/Foundation.h>",
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1880 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1886 | (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;
@@ -86,7 +86,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
86
86
  var MAX_SWIFT_COMPILE_IMAGES = 256;
87
87
  var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
88
88
  var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
89
- var SWIFT_HOST_ABI = 62;
89
+ var SWIFT_HOST_ABI = 68;
90
90
  var POLL_INTERVAL_MS = 1500;
91
91
  function swiftNativeEntry(native, file) {
92
92
  return {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1880 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -40,7 +40,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
40
40
  var MAX_SWIFT_COMPILE_IMAGES = 256;
41
41
  var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
42
42
  var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
43
- var SWIFT_HOST_ABI = 62;
43
+ var SWIFT_HOST_ABI = 68;
44
44
  var POLL_INTERVAL_MS = 1500;
45
45
  function swiftNativeEntry(native, file) {
46
46
  return {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1880 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1886 | (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;
@@ -107,6 +107,24 @@ function swiftSdkOptions() {
107
107
  var SWIFT_HOST_COMPILER_RELEASE = "swift-6.4.0-RELEASE-custom-81b2c791c27276bf";
108
108
  var SWIFT_HOST_COMPILER_ID = "81b2c791c27276bf";
109
109
  var compilerArchives = {
110
+ "swift-6.4.0-RELEASE-custom-45bb46301c86fe73": {
111
+ identity: "45bb46301c86fe73",
112
+ archive: "tar.gz",
113
+ hosts: {
114
+ "darwin-arm64": {
115
+ checksum: "102dfbbb7b451be0685763b7a427284b75a8078874543f091b1c4b3db86e6565",
116
+ manifest: "fb6c4d75ef6f4b3c094ae5a4d5d1e6bdfd85431f3fe25d514f3e7a0b4add60ef"
117
+ },
118
+ "linux-x64": {
119
+ checksum: "d3c040e042e12ff787b64bfde1d85238254365036ce093f3b20ff86e8ff996f0",
120
+ manifest: "7c7144be591692e563396fe3c987c5aa56fbaea4faacaad62283c0c6e5c04ae2"
121
+ },
122
+ "linux-arm64": {
123
+ checksum: "604e6fc5fc0f5a93cee3ca6dfa9616244a2a49ef517caa3155a12ae4a0ecf72b",
124
+ manifest: "075fd53d03ecf099954f1d023bb4bb67a5c5ee946537466d6c105022bdf8ecde"
125
+ }
126
+ }
127
+ },
110
128
  "swift-6.4.0-RELEASE-custom-0b2d0a9011c88e66": {
111
129
  identity: "0b2d0a9011c88e66",
112
130
  archive: "tar.gz",
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1880 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1886 | (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;