peachsim 0.1.1813 → 0.1.1814

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 (121) hide show
  1. package/README.md +2 -1
  2. package/cli/cloud-client.ts +5 -4
  3. package/cli/cloud-session.ts +14 -1
  4. package/cli/commands/compat.ts +12 -2
  5. package/cli/commands/control.ts +5 -0
  6. package/cli/commands/flow.ts +10 -5
  7. package/cli/commands/inspect/env.ts +3 -2
  8. package/cli/commands/inspect/wait-selector.ts +30 -9
  9. package/dist-lib/agent-daemon-client.cjs +1 -1
  10. package/dist-lib/agent-events.cjs +1 -1
  11. package/dist-lib/attached-projects.cjs +1 -1
  12. package/dist-lib/auth/shared-session.cjs +1 -1
  13. package/dist-lib/backend-origin.cjs +1 -1
  14. package/dist-lib/beta.cjs +1 -1
  15. package/dist-lib/beta.mjs +1 -1
  16. package/dist-lib/bridge-constants.cjs +1 -1
  17. package/dist-lib/bridge-contract-input.cjs +1 -1
  18. package/dist-lib/bridge-contract-input.mjs +1 -1
  19. package/dist-lib/bridge-contract.cjs +1 -1
  20. package/dist-lib/bridge-contract.mjs +1 -1
  21. package/dist-lib/bundle-channel.cjs +584 -449
  22. package/dist-lib/capture-contract.cjs +1 -1
  23. package/dist-lib/capture-contract.mjs +1 -1
  24. package/dist-lib/cloud-contract.cjs +1 -1
  25. package/dist-lib/cloud-contract.mjs +1 -1
  26. package/dist-lib/cloud-test-args.cjs +1 -1
  27. package/dist-lib/cloud-test-args.mjs +1 -1
  28. package/dist-lib/cloud.cjs +1 -1
  29. package/dist-lib/cloud.mjs +1 -1
  30. package/dist-lib/config.cjs +1 -1
  31. package/dist-lib/config.mjs +1 -1
  32. package/dist-lib/detox/index.cjs +2 -2
  33. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  34. package/dist-lib/expo-swift-bundle.cjs +112 -52
  35. package/dist-lib/expo-swift-metadata.cjs +1 -17
  36. package/dist-lib/expo-swift-metadata.mjs +1 -16
  37. package/dist-lib/home-paths.cjs +1 -1
  38. package/dist-lib/host/bridge-host.cjs +1963 -1891
  39. package/dist-lib/host/fetch-proxy-handler.cjs +2 -4
  40. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  41. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  42. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  43. package/dist-lib/host/websocket-proxy.cjs +1 -1
  44. package/dist-lib/index.cjs +7 -10
  45. package/dist-lib/jump-to-source-babel.cjs +1 -1
  46. package/dist-lib/jump-to-source-native.cjs +1 -1
  47. package/dist-lib/kotlin-host.cjs +1 -1
  48. package/dist-lib/menu.cjs +1 -1
  49. package/dist-lib/menu.mjs +1 -1
  50. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  51. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  52. package/dist-lib/metro-production-bundle.cjs +1 -1
  53. package/dist-lib/metro-production-bundle.mjs +1 -1
  54. package/dist-lib/metro.cjs +4 -6
  55. package/dist-lib/native-app-identity-project.cjs +3 -3
  56. package/dist-lib/native-app-identity-project.mjs +6 -6
  57. package/dist-lib/native-app-identity.cjs +1 -1
  58. package/dist-lib/native-app-identity.mjs +1 -1
  59. package/dist-lib/native-firebase-metadata.cjs +1 -1
  60. package/dist-lib/native-firebase-metadata.mjs +1 -1
  61. package/dist-lib/pdfium-raster.cjs +1 -1
  62. package/dist-lib/pdfium-raster.mjs +1 -1
  63. package/dist-lib/plist.cjs +1 -1
  64. package/dist-lib/plist.mjs +1 -1
  65. package/dist-lib/profiles.cjs +1 -1
  66. package/dist-lib/public-brand.cjs +1 -1
  67. package/dist-lib/public-origins-lib-esm.json +24 -24
  68. package/dist-lib/public-origins-lib.json +64 -67
  69. package/dist-lib/react-native-host-modules.cjs +1 -1
  70. package/dist-lib/react-native-host-modules.mjs +1 -1
  71. package/dist-lib/reap-browser.cjs +1 -1
  72. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  73. package/dist-lib/sdk.cjs +1 -1
  74. package/dist-lib/sdk.mjs +1 -1
  75. package/dist-lib/skills.cjs +616 -467
  76. package/dist-lib/swift-compile.cjs +27 -26
  77. package/dist-lib/swift-compile.mjs +34 -33
  78. package/dist-lib/swift-package.cjs +1 -1
  79. package/dist-lib/swift-package.mjs +1 -1
  80. package/dist-lib/swift-submit.cjs +2 -2
  81. package/dist-lib/swift-submit.mjs +2 -2
  82. package/dist-lib/swift-toolchain.cjs +5 -3
  83. package/dist-lib/swift.cjs +1 -1
  84. package/dist-lib/vite-swift.cjs +87 -41
  85. package/dist-lib/vite.cjs +2 -4
  86. package/dist-lib/worklet-executable.cjs +1 -1
  87. package/dist-lib/worklet-executable.mjs +1 -1
  88. package/dist-types/packages/peach-engine/src/react-native/host-services.d.ts +7 -0
  89. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +14 -2
  90. package/install.mjs +21 -8
  91. package/package.json +1 -1
  92. package/runtime-companion.json +1 -1
  93. package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +17 -0
  94. package/sdk/ios/usr/lib/swift/Dispatch.swiftmodule/arm64-apple-ios-simulator.swiftinterface +5 -0
  95. package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +6 -0
  96. package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +10 -1
  97. package/sdk/ios/usr/lib/swift/SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
  98. package/sdk/ios/usr/lib/swift/SwiftUICore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +11 -0
  99. package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +13 -0
  100. package/sdk/ios/wasm/include/string.h +1 -0
  101. package/src/expo-kotlin-host.ts +69 -35
  102. package/src/expo-swift-host.ts +45 -9
  103. package/src/expoSwiftContract.ts +2 -20
  104. package/src/nitro-adapter.lock.json +235 -235
  105. package/src/nitro-bundle.ts +2 -8
  106. package/src/nitro-superset.lock.json +14 -14
  107. package/src/nitro-superset.ts +2 -3
  108. package/src/nitroContract.ts +0 -29
  109. package/src/react-native-bridge-modules.ts +2 -9
  110. package/src/swift-compile.ts +2 -0
  111. package/src/swift-distribution.lock.json +8 -8
  112. package/src/swift-distribution.ts +1 -0
  113. package/src/swift-icu.ts +21 -27
  114. package/src/swift-project-user.ts +5 -0
  115. package/src/swift-shared-sdk.ts +4 -0
  116. package/src/swift-standins.ts +6 -1
  117. package/src/swift-submit.ts +2 -1
  118. package/src/swift-toolchain.ts +5 -2
  119. package/src/swift-wasm-prune.ts +10 -2
  120. package/src/turbo-runtime.lock.json +15 -15
  121. package/src/turbo-source.ts +160 -37
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1814 | (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;
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
39
39
  var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
40
40
  var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
41
41
  "<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
42
- define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "5bdd15dce967553923b0437502e56f70165424d2f22cdde0e2d7aacd618e27cc", "swift-package.ts": "80932fd45cd31e57871475180148f79f273719ac94d94deabce16dc138fdf387", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "ca9c37935257702de6c0377eaf2ddae141f2ef647326e8039ff8e7a0475ef2a0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "76e78ea9974671ff3b7e7a5d65e508306d8eadeb6b6bf859bd2ccc03f4ef6e72", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
42
+ define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "5bdd15dce967553923b0437502e56f70165424d2f22cdde0e2d7aacd618e27cc", "swift-package.ts": "80932fd45cd31e57871475180148f79f273719ac94d94deabce16dc138fdf387", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "8d495f0b828a24c7eb497db324094e09b1969612283ad0d83e1f329ef42a1c47", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "76e78ea9974671ff3b7e7a5d65e508306d8eadeb6b6bf859bd2ccc03f4ef6e72", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
43
43
  }
44
44
  });
45
45
 
@@ -4599,8 +4599,10 @@ function ensureSwiftLinuxRuntime(release) {
4599
4599
  import_node_fs6.default.rmSync(download2, { force: true });
4600
4600
  }
4601
4601
  }
4602
- import_node_fs6.default.rmSync(plan.link, { force: true });
4603
- import_node_fs6.default.symlinkSync("../../libxml2.so.2", plan.link);
4602
+ const staged = `${plan.link}.${process.pid}.tmp`;
4603
+ import_node_fs6.default.rmSync(staged, { force: true });
4604
+ import_node_fs6.default.symlinkSync("../../libxml2.so.2", staged);
4605
+ import_node_fs6.default.renameSync(staged, plan.link);
4604
4606
  for (const name3 of ["lib", "lib64"]) {
4605
4607
  try {
4606
4608
  import_node_fs6.default.symlinkSync(`usr/${name3}`, import_node_path4.default.join(root, name3));
@@ -8184,6 +8186,7 @@ function swiftSharedSdkRoot(moduleRoot, distribution) {
8184
8186
  if (!import_node_fs8.default.existsSync(headers)) {
8185
8187
  import_node_fs8.default.mkdirSync(import_node_path8.default.dirname(headers), { recursive: true });
8186
8188
  const staging = import_node_fs8.default.mkdtempSync(`${headers}-`);
8189
+ import_node_fs8.default.chmodSync(staging, 493);
8187
8190
  import_node_fs8.default.cpSync(root, staging, { recursive: true, preserveTimestamps: true });
8188
8191
  try {
8189
8192
  import_node_fs8.default.renameSync(staging, headers);
@@ -8412,6 +8415,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
8412
8415
  if (!import_node_fs8.default.existsSync(manifest)) {
8413
8416
  import_node_fs8.default.mkdirSync(import_node_path8.default.dirname(view), { recursive: true });
8414
8417
  const staging = import_node_fs8.default.mkdtempSync(`${view}-`);
8418
+ import_node_fs8.default.chmodSync(staging, 493);
8415
8419
  const realRoot = import_node_path8.default.dirname(bundle);
8416
8420
  const overrides = new Map([
8417
8421
  [import_node_path8.default.join(sysroot, "darwin/System/Library/Frameworks"), frameworks],
@@ -9055,19 +9059,18 @@ var MEMBER = "icu_packaged_data.cpp.obj";
9055
9059
  var raw = /* @__PURE__ */ new Map();
9056
9060
  var assets = /* @__PURE__ */ new Map();
9057
9061
  var brotliMemoryCache = /* @__PURE__ */ new Map();
9058
- function cachedBrotli(bytes, quality, cacheKey) {
9062
+ async function cachedBrotli(bytes, quality, cacheKey) {
9059
9063
  const key2 = cacheKey && /^[a-f0-9]{64}$/.test(cacheKey) ? cacheKey : (0, import_node_crypto5.createHash)("sha256").update(bytes).digest("hex");
9060
9064
  const cacheId = `${quality}:${key2}`;
9061
9065
  const cached = brotliMemoryCache.get(cacheId);
9062
9066
  if (cached) return cached;
9063
9067
  const dir = import_node_path10.default.join(import_node_os5.default.homedir(), ".peach", "cache", "swift-brotli");
9064
9068
  const file = import_node_path10.default.join(dir, `${key2}${quality === 11 ? "" : "-q4"}.br`);
9065
- const pending = (async () => {
9066
- try {
9067
- return await (0, import_promises3.readFile)(file);
9068
- } catch {
9069
- }
9070
- const compressed = await compressBrotli(bytes, {
9069
+ let compressed;
9070
+ try {
9071
+ compressed = await (0, import_promises3.readFile)(file);
9072
+ } catch {
9073
+ compressed = await compressBrotli(bytes, {
9071
9074
  params: {
9072
9075
  [import_node_zlib.constants.BROTLI_PARAM_QUALITY]: quality,
9073
9076
  [import_node_zlib.constants.BROTLI_PARAM_LGWIN]: 24
@@ -9075,16 +9078,14 @@ function cachedBrotli(bytes, quality, cacheKey) {
9075
9078
  });
9076
9079
  try {
9077
9080
  await (0, import_promises3.mkdir)(dir, { recursive: true });
9078
- const tmp = `${file}.${process.pid}.${Date.now()}.tmp`;
9081
+ const tmp = `${file}.${(0, import_node_crypto5.randomUUID)()}.tmp`;
9079
9082
  await (0, import_promises3.writeFile)(tmp, compressed);
9080
9083
  await (0, import_promises3.rename)(tmp, file);
9081
9084
  } catch {
9082
9085
  }
9083
- return compressed;
9084
- })();
9085
- brotliMemoryCache.set(cacheId, pending);
9086
- void pending.catch(() => brotliMemoryCache.delete(cacheId));
9087
- return pending;
9086
+ }
9087
+ brotliMemoryCache.set(cacheId, compressed);
9088
+ return compressed;
9088
9089
  }
9089
9090
  function brotliCompressQ4(bytes, cacheKey) {
9090
9091
  return cachedBrotli(bytes, 4, cacheKey);
@@ -9092,14 +9093,12 @@ function brotliCompressQ4(bytes, cacheKey) {
9092
9093
  async function swiftIcuBrotliQ4(icu) {
9093
9094
  return brotliMemoryCache.get(`4:${icu.sha256}`) ?? brotliCompressQ4(await inflateGzip(icu.gzip), icu.sha256);
9094
9095
  }
9095
- function memo(cache, key2, load2) {
9096
- let pending = cache.get(key2);
9097
- if (!pending) {
9098
- pending = load2();
9099
- pending.catch(() => cache.delete(key2));
9100
- cache.set(key2, pending);
9101
- }
9102
- return pending;
9096
+ async function memo(cache, key2, load2) {
9097
+ const cached = cache.get(key2);
9098
+ if (cached !== void 0) return cached;
9099
+ const value = await load2();
9100
+ cache.set(key2, value);
9101
+ return value;
9103
9102
  }
9104
9103
  function swiftIcuData(toolchainBin, sdk) {
9105
9104
  return memo(
@@ -10541,6 +10540,10 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
10541
10540
  activateSymbolInObj(w.obj, w.symIdx);
10542
10541
  }
10543
10542
  }
10543
+ for (let n = pref.length - 1; n > 2; n--) {
10544
+ const outer = pref.slice(0, n);
10545
+ if (obj.typePrefixesInObj.has(outer)) markTypeLive(obj, outer);
10546
+ }
10544
10547
  const mnName = `${pref}Mn`;
10545
10548
  for (let i = 0; i < obj.symNames.length; i++) {
10546
10549
  if (obj.symNames[i] === mnName && (obj.symFlags[i] & 16) === 0) {
@@ -11109,8 +11112,8 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
11109
11112
  writePrunedObject(o, outPath);
11110
11113
  prunedMap.set(o.file, outPath);
11111
11114
  }
11112
- const extraCoreConcurrencyObjs = allSdkObjFiles.filter(
11113
- (f) => f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
11115
+ const extraSdkObjs = allSdkObjFiles.filter(
11116
+ (f) => f.startsWith("libDarwin__") || f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
11114
11117
  ).map((f) => import_node_path16.default.join(sdkObjsDir, f));
11115
11118
  const outTokens = [];
11116
11119
  const emittedPruned = /* @__PURE__ */ new Set();
@@ -11143,7 +11146,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
11143
11146
  }
11144
11147
  }
11145
11148
  }
11146
- outTokens.push(...extraCoreConcurrencyObjs);
11149
+ outTokens.push(...extraSdkObjs);
11147
11150
  continue;
11148
11151
  }
11149
11152
  if (t === "--end-lib") {
@@ -12100,7 +12103,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
12100
12103
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
12101
12104
  var MULTI_MANIFEST_VERSION = 65;
12102
12105
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
12103
- var compilerSourceDigest = true ? "c1407efb75c18328e37b50abfe396dce388c41563443b4c3a1485a800114a92c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
12106
+ var compilerSourceDigest = true ? "d62fae69578799a35cdf0157f54acf3e1a0c1688de92c4c991c69287b9e562bb" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
12104
12107
  function swiftArtifactHash(input, release, moduleRoot) {
12105
12108
  const hash = (0, import_node_crypto8.createHash)("sha256");
12106
12109
  hash.update(`swift-compile
@@ -19065,11 +19068,44 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
19065
19068
 
19066
19069
  // ../contrast-runtime-delivery/src/index.ts
19067
19070
  async function installVerifiedTarball(tarball) {
19071
+ const { destDir, installedMarker, signal } = tarball;
19072
+ import_node_fs24.default.mkdirSync(import_node_path25.default.dirname(destDir), { recursive: true });
19073
+ const presentAtStart = import_node_fs24.default.existsSync(import_node_path25.default.join(destDir, installedMarker));
19074
+ const lock = `${destDir}.lock`;
19075
+ for (; ; ) {
19076
+ signal?.throwIfAborted();
19077
+ try {
19078
+ import_node_fs24.default.writeFileSync(lock, String(process.pid), { flag: "wx" });
19079
+ break;
19080
+ } catch (err) {
19081
+ if (!isErrnoCode(err, "EEXIST")) throw err;
19082
+ if (lockOwnerGone(lock)) import_node_fs24.default.rmSync(lock, { force: true });
19083
+ else await new Promise((resolve2) => setTimeout(resolve2, 250));
19084
+ }
19085
+ }
19086
+ try {
19087
+ if (!presentAtStart && import_node_fs24.default.existsSync(import_node_path25.default.join(destDir, installedMarker))) {
19088
+ tarball.verify?.(destDir);
19089
+ return;
19090
+ }
19091
+ await installVerifiedTarballLocked(tarball, presentAtStart);
19092
+ } finally {
19093
+ import_node_fs24.default.rmSync(lock, { force: true });
19094
+ }
19095
+ }
19096
+ function lockOwnerGone(lock) {
19097
+ try {
19098
+ process.kill(Number(import_node_fs24.default.readFileSync(lock, "utf8")), 0);
19099
+ return false;
19100
+ } catch (err) {
19101
+ return !isErrnoCode(err, "EPERM", "ENOENT");
19102
+ }
19103
+ }
19104
+ async function installVerifiedTarballLocked(tarball, presentAtStart) {
19068
19105
  const { url, digest, destDir, installedMarker, label, signal } = tarball;
19069
19106
  signal?.throwIfAborted();
19070
19107
  const downloadDir = import_node_fs24.default.mkdtempSync(import_node_path25.default.join(import_node_os10.default.tmpdir(), "runtime-delivery-download-"));
19071
19108
  const archivePath = import_node_path25.default.join(downloadDir, "archive");
19072
- import_node_fs24.default.mkdirSync(import_node_path25.default.dirname(destDir), { recursive: true });
19073
19109
  const tmpDir = import_node_fs24.default.mkdtempSync(
19074
19110
  import_node_path25.default.join(import_node_path25.default.dirname(destDir), `.installing-${import_node_path25.default.basename(destDir)}-`)
19075
19111
  );
@@ -19099,6 +19135,10 @@ async function installVerifiedTarball(tarball) {
19099
19135
  import_node_fs24.default.renameSync(tmpDir, destDir);
19100
19136
  } catch (err) {
19101
19137
  if (!isErrnoCode(err, "ENOTEMPTY", "EEXIST")) throw err;
19138
+ if (!presentAtStart && import_node_fs24.default.existsSync(import_node_path25.default.join(destDir, installedMarker))) {
19139
+ tarball.verify?.(destDir);
19140
+ return;
19141
+ }
19102
19142
  const aside = `${tmpDir}-replaced`;
19103
19143
  try {
19104
19144
  import_node_fs24.default.renameSync(destDir, aside);
@@ -20737,12 +20777,12 @@ async function ensureLinuxBrowserLibraries(executablePath, browser) {
20737
20777
 
20738
20778
  // src/swift-distribution.lock.json
20739
20779
  var swift_distribution_lock_default = {
20740
- id: "af69e0877dcfc948",
20780
+ id: "6742aac7746a6ce9",
20741
20781
  release: "swift-6.4.0-RELEASE-custom-a560ff35bf882b5c",
20742
20782
  wasmSdkId: "swift-6.4.0-RELEASE_wasm-peach-5d385b68",
20743
20783
  wasmSdkUrl: "https://r2.sootsim.com/swift-wasm-sdk/swift-6.4.0-RELEASE_wasm-peach-5d385b68.artifactbundle.tar.gz",
20744
20784
  wasmSdkChecksum: "d91882af99821a296c3db4459896b46ceaef37e9a30caad14e5f24cf6b964ae9",
20745
- source: "85e7a5155755f4400d2bd7010abdd09f62dd6f34",
20785
+ source: "af1852646c60b5cde579f3465df69967e16810b3",
20746
20786
  targets: [
20747
20787
  "ImagePlayground",
20748
20788
  "QuickLookThumbnailing",
@@ -20968,16 +21008,16 @@ var swift_distribution_lock_default = {
20968
21008
  },
20969
21009
  hosts: {
20970
21010
  "darwin-arm64": {
20971
- sha256: "dd96208b7ea40e1d8e93d61a716e30191a5e57800074e65837222c042617b96e",
20972
- size: 99097618
21011
+ sha256: "80c63bad6b21a02244c09832dd1344a1aa52894bf5ed391b94771b036f385d08",
21012
+ size: 99101780
20973
21013
  },
20974
21014
  "linux-x64": {
20975
- sha256: "bd0ef2a7d0fab414a415a9c2619c0c8c890b792856b1cbdb158a6f74b8d75502",
20976
- size: 101817050
21015
+ sha256: "9f58c786fa96313a3aefe564c7af5eadda21a22ac996df49d16bfdd2c73456be",
21016
+ size: 101818987
20977
21017
  },
20978
21018
  "linux-arm64": {
20979
- sha256: "37006a7363e6af15a31c65afaa3d6e0480bdd59c5d835f923e44e69dcae81e53",
20980
- size: 101308927
21019
+ sha256: "2174623c31e5909128486b5516976060004d80697bdfcf46198b6150f7de1cc8",
21020
+ size: 101312935
20981
21021
  }
20982
21022
  }
20983
21023
  };
@@ -23986,7 +24026,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
23986
24026
  var MAX_SWIFT_COMPILE_IMAGES = 256;
23987
24027
  var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
23988
24028
  var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
23989
- var SWIFT_HOST_ABI = 61;
24029
+ var SWIFT_HOST_ABI = 62;
23990
24030
  var POLL_INTERVAL_MS = 1500;
23991
24031
  function swiftNativeEntry(native, file) {
23992
24032
  return {
@@ -24723,7 +24763,7 @@ function standinSourceDigest(srcDir = __sootsim_import_meta_dirname) {
24723
24763
  }
24724
24764
  return hash.digest("hex");
24725
24765
  }
24726
- var STANDIN_SOURCE_DIGEST = true ? "2c2a910236bf90e3914c1e97b4cd0a8147ec8a27ab2483f1918095661ebcd85a" : standinSourceDigest();
24766
+ var STANDIN_SOURCE_DIGEST = true ? "f61e678df21a92da7fd50325f04848c1ad55068f560f9431a8d1c4e40e27de89" : standinSourceDigest();
24727
24767
 
24728
24768
  // src/swift-standins.ts
24729
24769
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -25769,12 +25809,18 @@ function peachModuleDirs(toolchain, imports2, sdkIncludes) {
25769
25809
  (name3) => peach.has(name3)
25770
25810
  );
25771
25811
  const plugins = swiftMacroPlugins(moduleRoot);
25772
- if (plugins.stale)
25812
+ if (plugins.stale) {
25773
25813
  exec("sh", [
25774
25814
  import_node_path39.default.join(moduleRoot, "scripts/build-preview-plugin.sh"),
25775
25815
  toolchainBin,
25776
25816
  plugins.libraries[0]
25777
25817
  ]);
25818
+ import_node_fs37.default.writeFileSync(
25819
+ import_node_path39.default.join(import_node_path39.default.dirname(plugins.libraries[0]), "compiler-release"),
25820
+ `${toolchain.release}
25821
+ `
25822
+ );
25823
+ }
25778
25824
  for (const target of targets)
25779
25825
  exec(
25780
25826
  import_node_path39.default.join(toolchainBin, "swift"),
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1814 | (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;
@@ -185,7 +185,7 @@ var import_node_module = require("node:module");
185
185
  var import_node_path2 = require("node:path");
186
186
 
187
187
  // runtime-companion.json
188
- var runtime_companion_default = { abi: 1, sha256: "77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7", file: "node/cli-77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7.cjs" };
188
+ var runtime_companion_default = { abi: 1, sha256: "58cc17038ff9baf52198a5edfd081d9a60236469948361b70f2471760d394d3e", file: "node/cli-58cc17038ff9baf52198a5edfd081d9a60236469948361b70f2471760d394d3e.cjs" };
189
189
 
190
190
  // src/runtime-assets.ts
191
191
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -1030,7 +1030,6 @@ var LAZY_STUB_PATTERNS = [
1030
1030
  "react-native-bluetooth-state-manager",
1031
1031
  "react-native-bottom-tabs",
1032
1032
  "react-native-camera-kit",
1033
- "react-native-change-icon",
1034
1033
  "react-native-charts-wrapper",
1035
1034
  "react-native-dialogs",
1036
1035
  "react-native-drop-shadow",
@@ -1082,7 +1081,6 @@ var LAZY_STUB_PATTERNS = [
1082
1081
  "react-native-reanimated/platformFunctions/setNativeProps",
1083
1082
  "react-native-reanimated/specs/NativeReanimatedModule",
1084
1083
  "react-native-reanimated/specs/NativeWorkletsModule",
1085
- "react-native-restart-newarch",
1086
1084
  "react-native-screenguard",
1087
1085
  "react-native-screens",
1088
1086
  "react-native-screens/components/Screen",
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1814 | (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.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1814 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -31,6 +31,13 @@ export interface ReactNativeHostServices {
31
31
  queryImageCache(uris: string[]): Promise<Record<string, 'memory'>>;
32
32
  openUrl(url: string): Promise<void>;
33
33
  openBrowserSession(url: string, options: BrowserSessionOptions): Promise<BrowserSessionResult>;
34
+ openBrowserFile(file: {
35
+ bytes: ArrayBuffer;
36
+ mimeType: string;
37
+ }, options: {
38
+ sessionOwner: string;
39
+ onPresented: () => void;
40
+ }): Promise<BrowserSessionResult>;
34
41
  dismissBrowserSession(sessionOwner: string): Promise<{
35
42
  type: 'dismiss';
36
43
  }>;
@@ -377,6 +377,12 @@ export type HostServiceRequest = {
377
377
  type: 'rnWebAuthentication';
378
378
  requestId: number;
379
379
  request: WebAuthenticationHostRequest;
380
+ } | {
381
+ type: 'rnBrowserOpenFile';
382
+ requestId: number;
383
+ sessionOwner: string;
384
+ bytes: ArrayBuffer;
385
+ mimeType: string;
380
386
  } | {
381
387
  type: 'rnBrowserDismiss';
382
388
  requestId: number;
@@ -646,6 +652,9 @@ export type HostServiceResponse = {
646
652
  ok: boolean;
647
653
  result?: BrowserSessionResult;
648
654
  error?: string;
655
+ } | {
656
+ type: 'rnBrowserPresented';
657
+ sessionOwner: string;
649
658
  } | {
650
659
  type: 'rnBrowserDismissResult';
651
660
  requestId: number;
@@ -674,10 +683,10 @@ export type HostServiceResponse = {
674
683
  references: string[];
675
684
  };
676
685
  type ReactNativeHostServiceRequest = Extract<HostServiceRequest, {
677
- type: 'rnImageGetSize' | 'rnVideoThumbnail' | 'rnImagePrefetch' | 'rnImageStoreBytes' | 'rnImageAwaitBytes' | 'rnImageAbort' | 'rnImageQueryCache' | 'rnLinkingOpenUrl' | 'rnWebAuthentication' | 'rnBrowserOpen' | 'rnBrowserDismiss' | 'rnScreenWakeLockIsAvailable' | 'rnScreenWakeLockActivate' | 'rnScreenWakeLockDeactivate' | 'geolocationGetCurrentPosition' | 'geolocationWatchPosition' | 'geolocationClearWatch';
686
+ type: 'rnImageGetSize' | 'rnVideoThumbnail' | 'rnImagePrefetch' | 'rnImageStoreBytes' | 'rnImageAwaitBytes' | 'rnImageAbort' | 'rnImageQueryCache' | 'rnLinkingOpenUrl' | 'rnWebAuthentication' | 'rnBrowserOpen' | 'rnBrowserOpenFile' | 'rnBrowserDismiss' | 'rnScreenWakeLockIsAvailable' | 'rnScreenWakeLockActivate' | 'rnScreenWakeLockDeactivate' | 'geolocationGetCurrentPosition' | 'geolocationWatchPosition' | 'geolocationClearWatch';
678
687
  }>;
679
688
  type ReactNativeHostServiceResponse = Extract<HostServiceResponse, {
680
- type: 'rnImageGetSizeResult' | 'rnVideoThumbnailResult' | 'rnImageStoreBytesResult' | 'rnImageAwaitBytesResult' | 'rnImagePrefetchResult' | 'rnImageAbortResult' | 'rnImageQueryCacheResult' | 'rnLinkingOpenUrlResult' | 'rnWebAuthenticationResult' | 'rnBrowserOpenResult' | 'rnBrowserDismissResult' | 'rnScreenWakeLockIsAvailableResult' | 'rnScreenWakeLockActivateResult' | 'rnScreenWakeLockDeactivateResult' | 'rnScreenWakeLockReleased' | 'geolocationGetCurrentPositionResult' | 'geolocationWatchPositionResult' | 'geolocationPosition' | 'geolocationError';
689
+ type: 'rnImageGetSizeResult' | 'rnVideoThumbnailResult' | 'rnImageStoreBytesResult' | 'rnImageAwaitBytesResult' | 'rnImagePrefetchResult' | 'rnImageAbortResult' | 'rnImageQueryCacheResult' | 'rnLinkingOpenUrlResult' | 'rnWebAuthenticationResult' | 'rnBrowserOpenResult' | 'rnBrowserPresented' | 'rnBrowserDismissResult' | 'rnScreenWakeLockIsAvailableResult' | 'rnScreenWakeLockActivateResult' | 'rnScreenWakeLockDeactivateResult' | 'rnScreenWakeLockReleased' | 'geolocationGetCurrentPositionResult' | 'geolocationWatchPositionResult' | 'geolocationPosition' | 'geolocationError';
681
690
  }>;
682
691
  export type ShellHostServiceRequest = Exclude<HostServiceRequest, ReactNativeHostServiceRequest>;
683
692
  export type ShellHostServiceResponse = Exclude<HostServiceResponse, ReactNativeHostServiceResponse>;
@@ -777,6 +786,9 @@ export type HostServiceRNLinkingOpenUrlResult = Extract<HostServiceResponse, {
777
786
  export type HostServiceRNBrowserOpenResult = Extract<HostServiceResponse, {
778
787
  type: 'rnBrowserOpenResult';
779
788
  }>;
789
+ export type HostServiceRNBrowserPresented = Extract<HostServiceResponse, {
790
+ type: 'rnBrowserPresented';
791
+ }>;
780
792
  export type HostServiceRNBrowserDismissResult = Extract<HostServiceResponse, {
781
793
  type: 'rnBrowserDismissResult';
782
794
  }>;
package/install.mjs CHANGED
@@ -2,15 +2,28 @@
2
2
  // `npx peachsim` runs the same guided install as
3
3
  // `curl -fsSL https://peachsim.com/install.sh | sh`: this package ships that
4
4
  // script, and it installs the standalone peach executable, then hands off to
5
- // `peach setup`.
5
+ // `peach setup`. `npx peachsim <command>` installs peach only when it is
6
+ // missing, then runs `peach <command>`.
6
7
  import { spawnSync } from 'node:child_process'
8
+ import { existsSync } from 'node:fs'
9
+ import { homedir } from 'node:os'
10
+ import { join } from 'node:path'
7
11
  import { fileURLToPath } from 'node:url'
8
12
 
9
- const result = spawnSync('sh', [fileURLToPath(new URL('./install.sh', import.meta.url))], {
10
- stdio: 'inherit',
11
- })
12
- if (result.error) {
13
- process.stderr.write(`error: could not run the peach installer: ${result.error.message}\n`)
14
- process.exit(1)
13
+ const args = process.argv.slice(2)
14
+ const cli = join(process.env.PEACH_CLI_PREFIX || join(homedir(), '.local'), 'bin', 'peach')
15
+
16
+ const run = (command, commandArgs, label) => {
17
+ const result = spawnSync(command, commandArgs, { stdio: 'inherit' })
18
+ if (result.error) {
19
+ process.stderr.write(`error: could not run ${label}: ${result.error.message}\n`)
20
+ process.exit(1)
21
+ }
22
+ return result.status ?? 1
23
+ }
24
+
25
+ if (args.length === 0 || !existsSync(cli)) {
26
+ const status = run('sh', [fileURLToPath(new URL('./install.sh', import.meta.url))], 'the peach installer')
27
+ if (status !== 0 || args.length === 0) process.exit(status)
15
28
  }
16
- process.exit(result.status ?? 1)
29
+ process.exit(run(cli, args, 'peach'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.1813",
3
+ "version": "0.1.1814",
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",
@@ -1 +1 @@
1
- {"abi":1,"sha256":"77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7","file":"node/cli-77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7.cjs"}
1
+ {"abi":1,"sha256":"58cc17038ff9baf52198a5edfd081d9a60236469948361b70f2471760d394d3e","file":"node/cli-58cc17038ff9baf52198a5edfd081d9a60236469948361b70f2471760d394d3e.cjs"}
@@ -1,6 +1,7 @@
1
1
  #import <UIKit/UIKit.h>
2
2
  NS_ASSUME_NONNULL_BEGIN
3
3
  @class SFSafariViewControllerConfiguration;
4
+ @protocol SFSafariViewControllerDelegate;
4
5
  __attribute__((availability(ios, introduced=9.0)))
5
6
  __attribute__((availability(watchos, unavailable)))
6
7
  PEACH_SWIFT_CLASS(SafariServices) @interface SFSafariViewController : UIViewController
@@ -10,5 +11,21 @@ PEACH_SWIFT_CLASS(SafariServices) @interface SFSafariViewController : UIViewCont
10
11
  - (instancetype)initWithURL:(NSURL *)URL configuration:(SFSafariViewControllerConfiguration *)configuration NS_DESIGNATED_INITIALIZER __attribute__((availability(ios, introduced=11.0)));
11
12
  - (instancetype)initWithURL:(NSURL *)URL entersReaderIfAvailable:(BOOL)entersReaderIfAvailable NS_DESIGNATED_INITIALIZER __attribute__((availability(ios, introduced=9.0, deprecated=11.0, replacement="-initWithURL:configuration:"))) __attribute__((availability(visionos, unavailable)));
12
13
  - (instancetype)initWithURL:(NSURL *)URL;
14
+ @property (nonatomic, weak, nullable) id <SFSafariViewControllerDelegate> delegate __attribute__((availability(visionos, unavailable)));
15
+ @property (nonatomic, readonly, copy) SFSafariViewControllerConfiguration *configuration __attribute__((availability(ios, introduced=11.0)));
16
+ @property (nonatomic, nullable) UIColor *preferredBarTintColor __attribute__((availability(ios, introduced=10.0, deprecated=26.0, message="Tinting the bars interferes with background effects that the system provides."))) __attribute__((availability(visionos, unavailable)));
17
+ @property (nonatomic, nullable) UIColor *preferredControlTintColor __attribute__((availability(ios, introduced=10.0, deprecated=26.0, message="Tinting the controls interferes with background effects that the system provides."))) __attribute__((availability(visionos, unavailable)));
18
+ @end
19
+ __attribute__((availability(ios, introduced=9.0)))
20
+ __attribute__((availability(watchos, unavailable)))
21
+ __attribute__((availability(visionos, unavailable)))
22
+ @protocol SFSafariViewControllerDelegate <NSObject>
23
+ @optional
24
+ - (NSArray<UIActivity *> *)safariViewController:(SFSafariViewController *)controller activityItemsForURL:(NSURL *)URL title:(nullable NSString *)title;
25
+ - (NSArray<UIActivityType> *)safariViewController:(SFSafariViewController *)controller excludedActivityTypesForURL:(NSURL *)URL title:(nullable NSString *)title __attribute__((availability(ios, introduced=11.0)));
26
+ - (void)safariViewControllerDidFinish:(SFSafariViewController *)controller;
27
+ - (void)safariViewController:(SFSafariViewController *)controller didCompleteInitialLoad:(BOOL)didLoadSuccessfully;
28
+ - (void)safariViewController:(SFSafariViewController *)controller initialLoadDidRedirectToURL:(NSURL *)URL __attribute__((availability(ios, introduced=11.0)));
29
+ - (void)safariViewControllerWillOpenInBrowser:(SFSafariViewController *)controller NS_SWIFT_NAME(safariViewControllerWillOpenInBrowser(_:)) __attribute__((availability(ios, introduced=14.0)));
13
30
  @end
14
31
  NS_ASSUME_NONNULL_END
@@ -0,0 +1,5 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-module-flags: -target arm64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -module-name Dispatch
3
+ @_exported import Dispatch
4
+ import Swift
5
+ public class DispatchWorkItem {}
@@ -314,3 +314,9 @@ extension Foundation.Data : Swift.Hashable, Swift.Codable, Foundation.Contiguous
314
314
  public func encode(to encoder: any Swift.Encoder) throws
315
315
  public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R
316
316
  }
317
+ public typealias NSErrorPointer = Swift.AutoreleasingUnsafeMutablePointer<Foundation.NSError?>?
318
+ public typealias ErrorPointer = Foundation.NSErrorPointer
319
+ extension Foundation.Data {
320
+ public typealias ReadingOptions = Foundation.NSData.ReadingOptions
321
+ public typealias WritingOptions = Foundation.NSData.WritingOptions
322
+ }
@@ -2,9 +2,13 @@
2
2
  // swift-module-flags: -target arm64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -module-name ObjectiveC
3
3
  @_exported import ObjectiveC
4
4
  import Swift
5
- @frozen public struct ObjCBool {
5
+ @frozen public struct ObjCBool : Swift.ExpressibleByBooleanLiteral, Swift.Sendable {
6
+ @usableFromInline
7
+ internal var _value: Swift.Bool
6
8
  public init(_ value: Swift.Bool)
7
9
  public var boolValue: Swift.Bool { get }
10
+ public init(booleanLiteral value: Swift.Bool)
11
+ public typealias BooleanLiteralType = Swift.Bool
8
12
  }
9
13
  @frozen public struct Selector {
10
14
  public init(_ str: Swift.String)
@@ -20,3 +24,8 @@ extension ObjectiveC.NSObject : Swift.CustomStringConvertible {}
20
24
  extension ObjectiveC.NSObject : Swift.CustomDebugStringConvertible {}
21
25
  public func _convertBoolToObjCBool(_ x: Swift.Bool) -> ObjectiveC.ObjCBool
22
26
  public func _convertObjCBoolToBool(_ x: ObjectiveC.ObjCBool) -> Swift.Bool
27
+ @frozen public struct NSZone {
28
+ internal var pointer: Swift.OpaquePointer
29
+ }
30
+ @available(*, unavailable)
31
+ extension ObjectiveC.NSZone : Swift.Sendable {}
@@ -0,0 +1,4 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-module-flags: -target arm64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -module-name SwiftUI
3
+ @_exported import SwiftUICore
4
+ import Swift
@@ -0,0 +1,11 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-module-flags: -target arm64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -module-name SwiftUICore
3
+ import Swift
4
+ import _Concurrency
5
+ @preconcurrency @_Concurrency.MainActor public protocol View {
6
+ associatedtype Body : SwiftUICore.View
7
+ @_Concurrency.MainActor @preconcurrency var body: Self.Body { get }
8
+ }
9
+ @resultBuilder public struct ViewBuilder {
10
+ public static func buildBlock<Content>(_ content: Content) -> Content where Content : SwiftUICore.View
11
+ }
@@ -0,0 +1,13 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-module-flags: -target arm64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -module-name UIKit
3
+ @_exported import UIKit
4
+ import Swift
5
+ extension UIKit.UIApplication {
6
+ public typealias State = UIKit.UIApplicationState
7
+ }
8
+ extension UIKit.UIWindow {
9
+ public typealias Level = UIKit.UIWindowLevel
10
+ }
11
+ extension UIKit.UIDevice {
12
+ public typealias BatteryState = UIKit.UIDeviceBatteryState
13
+ }
@@ -10,6 +10,7 @@ void memset_pattern4(void * __b, const void * __pattern4, size_t __len);
10
10
  char *strsignal(int __sig) __asm__("__peach_darwin_strsignal");
11
11
  #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
12
12
  char *strnstr(const char *__big, const char *__little, size_t __len);
13
+ char *strcasestr(const char *__big, const char *__little);
13
14
  #endif
14
15
  #if defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1
15
16
  #include <sys/_types/_errno_t.h>