peachsim 0.1.2432 → 0.1.2434

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 (104) hide show
  1. package/cli/app-project.ts +5 -0
  2. package/cli/commands/box.ts +3 -0
  3. package/cli/commands/control.ts +14 -6
  4. package/cli/commands/platform.ts +3 -3
  5. package/cli/commands/stream.ts +8 -1
  6. package/dist-lib/agent-daemon-client.cjs +1 -1
  7. package/dist-lib/agent-events.cjs +1 -1
  8. package/dist-lib/attached-projects.cjs +1 -1
  9. package/dist-lib/auth/shared-session.cjs +1 -1
  10. package/dist-lib/backend-origin.cjs +1 -1
  11. package/dist-lib/beta.cjs +1 -1
  12. package/dist-lib/beta.mjs +1 -1
  13. package/dist-lib/bridge-constants.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.cjs +1 -1
  15. package/dist-lib/bridge-contract-input.mjs +1 -1
  16. package/dist-lib/bridge-contract.cjs +1 -1
  17. package/dist-lib/bridge-contract.mjs +1 -1
  18. package/dist-lib/bundle-channel.cjs +105 -85
  19. package/dist-lib/capture-contract.cjs +1 -1
  20. package/dist-lib/capture-contract.mjs +1 -1
  21. package/dist-lib/cloud-contract.cjs +1 -1
  22. package/dist-lib/cloud-contract.mjs +1 -1
  23. package/dist-lib/cloud-test-args.cjs +1 -1
  24. package/dist-lib/cloud-test-args.mjs +1 -1
  25. package/dist-lib/cloud.cjs +1 -1
  26. package/dist-lib/cloud.mjs +1 -1
  27. package/dist-lib/config.cjs +1 -1
  28. package/dist-lib/config.mjs +1 -1
  29. package/dist-lib/detox/index.cjs +2 -2
  30. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  31. package/dist-lib/expo-swift-bundle.cjs +59 -18
  32. package/dist-lib/expo-swift-metadata.cjs +1 -1
  33. package/dist-lib/expo-swift-metadata.mjs +1 -1
  34. package/dist-lib/home-paths.cjs +1 -1
  35. package/dist-lib/host/bridge-host.cjs +96 -76
  36. package/dist-lib/host/fetch-proxy-handler.cjs +6 -4
  37. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  38. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  39. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  40. package/dist-lib/host/websocket-proxy.cjs +1 -1
  41. package/dist-lib/index.cjs +6 -4
  42. package/dist-lib/jump-to-source-babel.cjs +1 -1
  43. package/dist-lib/jump-to-source-native.cjs +1 -1
  44. package/dist-lib/kotlin-host.cjs +36 -57
  45. package/dist-lib/menu.cjs +1 -1
  46. package/dist-lib/menu.mjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  48. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  49. package/dist-lib/metro-production-bundle.cjs +1 -1
  50. package/dist-lib/metro-production-bundle.mjs +1 -1
  51. package/dist-lib/metro.cjs +6 -4
  52. package/dist-lib/native-app-identity-project.cjs +2 -2
  53. package/dist-lib/native-app-identity-project.mjs +2 -2
  54. package/dist-lib/native-app-identity.cjs +1 -1
  55. package/dist-lib/native-app-identity.mjs +1 -1
  56. package/dist-lib/native-firebase-metadata.cjs +1 -1
  57. package/dist-lib/native-firebase-metadata.mjs +1 -1
  58. package/dist-lib/pdfium-raster.cjs +1 -1
  59. package/dist-lib/pdfium-raster.mjs +1 -1
  60. package/dist-lib/plist.cjs +1 -1
  61. package/dist-lib/plist.mjs +1 -1
  62. package/dist-lib/profiles.cjs +1 -1
  63. package/dist-lib/public-brand.cjs +1 -1
  64. package/dist-lib/public-origins-lib-esm.json +25 -25
  65. package/dist-lib/public-origins-lib.json +56 -56
  66. package/dist-lib/react-native-host-modules.cjs +1 -1
  67. package/dist-lib/react-native-host-modules.mjs +1 -1
  68. package/dist-lib/reap-browser.cjs +1 -1
  69. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  70. package/dist-lib/sdk.cjs +1 -1
  71. package/dist-lib/sdk.mjs +1 -1
  72. package/dist-lib/skills.cjs +112 -79
  73. package/dist-lib/swift-compile.cjs +25 -16
  74. package/dist-lib/swift-compile.mjs +25 -16
  75. package/dist-lib/swift-package.cjs +1 -1
  76. package/dist-lib/swift-package.mjs +1 -1
  77. package/dist-lib/swift-submit.cjs +1 -1
  78. package/dist-lib/swift-submit.mjs +1 -1
  79. package/dist-lib/swift-toolchain.cjs +1 -1
  80. package/dist-lib/swift.cjs +1 -1
  81. package/dist-lib/vite-swift.cjs +61 -22
  82. package/dist-lib/vite.cjs +6 -4
  83. package/dist-lib/worklet-executable.cjs +1 -1
  84. package/dist-lib/worklet-executable.mjs +1 -1
  85. package/dist-types/packages/peach-engine/src/engine/image-loader-canvaskit.d.ts +3 -0
  86. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
  87. package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +2 -2
  88. package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +3 -2
  89. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +7 -1
  90. package/dist-types/packages/peach-globals/src/cameraInputBridgeContract.d.ts +26 -0
  91. package/dist-types/packages/peach-globals/src/globalsContract.d.ts +2 -0
  92. package/dist-types/packages/peach-globals/src/index.d.ts +1 -0
  93. package/kotlin/README.md +3 -1
  94. package/kotlin/sdk.tar.gz +0 -0
  95. package/package.json +1 -1
  96. package/runtime-companion.json +1 -1
  97. package/src/java-module-abi.ts +11 -28
  98. package/src/kotlin-host.ts +13 -32
  99. package/src/kotlin-toolchain.ts +25 -0
  100. package/src/react-native-coverage/native-typescript-parser.ts +29 -1
  101. package/src/swift-guest-source-inputs.ts +5 -1
  102. package/src/swift-guest-source-plan.ts +25 -9
  103. package/src/swift-host.ts +28 -5
  104. package/src/swift-xcframework.ts +24 -0
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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;
@@ -294,7 +294,7 @@ var STANDIN_SOURCE_DIGEST;
294
294
  var init_swift_standin_digest = __esm({
295
295
  "src/swift-standin-digest.ts"() {
296
296
  "use strict";
297
- STANDIN_SOURCE_DIGEST = true ? "3475ca483b1e5005a2c76ec887310c0d0f44c91ea427496b33acbb5bf6188684" : standinSourceDigest();
297
+ STANDIN_SOURCE_DIGEST = true ? "1f6eece6339ce20859e9666fa0ad8e9076485c71ec1cd098fe6a45fd6e28a28f" : standinSourceDigest();
298
298
  }
299
299
  });
300
300
 
@@ -3783,6 +3783,7 @@ var init_swift_guest_link = __esm({
3783
3783
  var init_swift_guest_source_inputs = __esm({
3784
3784
  "src/swift-guest-source-inputs.ts"() {
3785
3785
  "use strict";
3786
+ init_forked_script_contract();
3786
3787
  init_swift_guest_source_plan();
3787
3788
  init_swift_runtime_products();
3788
3789
  }
@@ -4094,7 +4095,7 @@ var init_swift_compile = __esm({
4094
4095
  FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
4095
4096
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
4096
4097
  ).join("");
4097
- compilerSourceDigest = true ? "da253e49615973dfc65a40000574546cbf7dc4c9d44a36295773bd33442d8c1d" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
4098
+ compilerSourceDigest = true ? "2ff4da3ff6b56e29c8968a39135d8974f54c927608bde4993a6a2476beb749e6" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
4098
4099
  C_WORDS = new Set(
4099
4100
  "auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
4100
4101
  " "
@@ -4946,6 +4947,7 @@ var init_swift_host = __esm({
4946
4947
  init_swift_standins();
4947
4948
  init_swift_submit();
4948
4949
  init_swift_toolchain();
4950
+ init_swift_xcframework();
4949
4951
  init_swiftContract();
4950
4952
  init_swiftContract();
4951
4953
  init_xcode_project();
@@ -16494,7 +16496,7 @@ var import_node_path10 = require("node:path");
16494
16496
  init_src();
16495
16497
 
16496
16498
  // runtime-companion.json
16497
- var runtime_companion_default = { abi: 1, sha256: "c3e71b5eaf9166fc3fdc4333c354332e1ff41e1a6c71b6814afebe7c7d14bf9b", file: "node/cli-c3e71b5eaf9166fc3fdc4333c354332e1ff41e1a6c71b6814afebe7c7d14bf9b.cjs" };
16499
+ var runtime_companion_default = { abi: 1, sha256: "2d42441f509451bf1c660a06ac087056d0cc7d96ca43aead02f6fd91f5e4e367", file: "node/cli-2d42441f509451bf1c660a06ac087056d0cc7d96ca43aead02f6fd91f5e4e367.cjs" };
16498
16500
 
16499
16501
  // src/cli-runtime.ts
16500
16502
  init_answeredNativePackages();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/host/fetch-proxy-overrides.ts
4
4
  var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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;
@@ -1173,7 +1173,7 @@ var init_src = __esm({
1173
1173
  var runtime_companion_default;
1174
1174
  var init_runtime_companion = __esm({
1175
1175
  "runtime-companion.json"() {
1176
- runtime_companion_default = { abi: 1, sha256: "c3e71b5eaf9166fc3fdc4333c354332e1ff41e1a6c71b6814afebe7c7d14bf9b", file: "node/cli-c3e71b5eaf9166fc3fdc4333c354332e1ff41e1a6c71b6814afebe7c7d14bf9b.cjs" };
1176
+ runtime_companion_default = { abi: 1, sha256: "2d42441f509451bf1c660a06ac087056d0cc7d96ca43aead02f6fd91f5e4e367", file: "node/cli-2d42441f509451bf1c660a06ac087056d0cc7d96ca43aead02f6fd91f5e4e367.cjs" };
1177
1177
  }
1178
1178
  });
1179
1179
 
@@ -10584,7 +10584,7 @@ var STANDIN_SOURCE_DIGEST;
10584
10584
  var init_swift_standin_digest = __esm({
10585
10585
  "src/swift-standin-digest.ts"() {
10586
10586
  "use strict";
10587
- STANDIN_SOURCE_DIGEST = true ? "3475ca483b1e5005a2c76ec887310c0d0f44c91ea427496b33acbb5bf6188684" : standinSourceDigest();
10587
+ STANDIN_SOURCE_DIGEST = true ? "1f6eece6339ce20859e9666fa0ad8e9076485c71ec1cd098fe6a45fd6e28a28f" : standinSourceDigest();
10588
10588
  }
10589
10589
  });
10590
10590
 
@@ -13737,6 +13737,7 @@ var init_swift_guest_link = __esm({
13737
13737
  var init_swift_guest_source_inputs = __esm({
13738
13738
  "src/swift-guest-source-inputs.ts"() {
13739
13739
  "use strict";
13740
+ init_forked_script_contract();
13740
13741
  init_swift_guest_source_plan();
13741
13742
  init_swift_runtime_products();
13742
13743
  }
@@ -14048,7 +14049,7 @@ var init_swift_compile = __esm({
14048
14049
  FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
14049
14050
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
14050
14051
  ).join("");
14051
- compilerSourceDigest = true ? "da253e49615973dfc65a40000574546cbf7dc4c9d44a36295773bd33442d8c1d" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
14052
+ compilerSourceDigest = true ? "2ff4da3ff6b56e29c8968a39135d8974f54c927608bde4993a6a2476beb749e6" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
14052
14053
  C_WORDS = new Set(
14053
14054
  "auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
14054
14055
  " "
@@ -17703,6 +17704,7 @@ var init_swift_host = __esm({
17703
17704
  init_swift_standins();
17704
17705
  init_swift_submit();
17705
17706
  init_swift_toolchain();
17707
+ init_swift_xcframework();
17706
17708
  init_swiftContract();
17707
17709
  init_swiftContract();
17708
17710
  init_xcode_project();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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;
@@ -786,6 +786,24 @@ var init_home_paths = __esm({
786
786
  });
787
787
 
788
788
  // src/kotlin-toolchain.ts
789
+ async function runKotlinTool(toolchain, sdkRoot, tool, args, maxBuffer = 16 * 1024 * 1024) {
790
+ const lib = import_node_path4.default.resolve(import_node_path4.default.dirname(toolchain.kotlinc), "../lib");
791
+ const { stdout } = await run(
792
+ import_node_path4.default.join(toolchain.javaHome, "bin", "java"),
793
+ [
794
+ "-cp",
795
+ [
796
+ import_node_path4.default.join(sdkRoot, "tools.jar"),
797
+ import_node_path4.default.join(lib, "kotlin-compiler.jar"),
798
+ import_node_path4.default.join(lib, "kotlin-stdlib.jar")
799
+ ].join(import_node_path4.default.delimiter),
800
+ tool,
801
+ ...args
802
+ ],
803
+ { maxBuffer }
804
+ );
805
+ return stdout;
806
+ }
789
807
  function readToolchain(moduleRoot) {
790
808
  const parsed = JSON.parse(
791
809
  import_node_fs4.default.readFileSync(import_node_path4.default.join(moduleRoot, "toolchain.json"), "utf8")
@@ -1253,19 +1271,11 @@ async function readJavaModuleSpecs(files, sdkRoot, toolchain) {
1253
1271
  import_node_fs5.default.writeFileSync(target, bytes);
1254
1272
  origins.set(target, file);
1255
1273
  }
1256
- const { stdout } = await run2(
1257
- import_node_path5.default.join(toolchain.javaHome, "bin", "java"),
1258
- [
1259
- "-cp",
1260
- [
1261
- import_node_path5.default.join(sdkRoot, "tools.jar"),
1262
- import_node_path5.default.resolve(import_node_path5.default.dirname(toolchain.kotlinc), "../lib/kotlin-compiler.jar"),
1263
- import_node_path5.default.resolve(import_node_path5.default.dirname(toolchain.kotlinc), "../lib/kotlin-stdlib.jar")
1264
- ].join(import_node_path5.default.delimiter),
1265
- "dev.peach.tools.javaabi.JavaModuleSpecsKt",
1266
- ...origins.keys()
1267
- ],
1268
- { maxBuffer: 16 * 1024 * 1024 }
1274
+ const stdout = await runKotlinTool(
1275
+ toolchain,
1276
+ sdkRoot,
1277
+ "dev.peach.tools.javaabi.JavaModuleSpecsKt",
1278
+ [...origins.keys()]
1269
1279
  ).catch((cause) => {
1270
1280
  if (!isRecord(cause) || typeof cause.stderr !== "string") throw cause;
1271
1281
  let diagnostic = cause.stderr;
@@ -1336,20 +1346,11 @@ async function compileJavaModuleAbi(input) {
1336
1346
  { maxBuffer: 16 * 1024 * 1024 }
1337
1347
  );
1338
1348
  const library = import_node_path5.default.join(directory, "java-abi.klib");
1339
- await run2(
1340
- import_node_path5.default.join(toolchain.javaHome, "bin", "java"),
1341
- [
1342
- "-cp",
1343
- [
1344
- import_node_path5.default.join(sdkRoot, "tools.jar"),
1345
- import_node_path5.default.resolve(import_node_path5.default.dirname(toolchain.kotlinc), "../lib/kotlin-compiler.jar"),
1346
- import_node_path5.default.resolve(import_node_path5.default.dirname(toolchain.kotlinc), "../lib/kotlin-stdlib.jar")
1347
- ].join(import_node_path5.default.delimiter),
1348
- "dev.peach.tools.platform.JavaPlatformTypesKt",
1349
- import_node_path5.default.join(directory, `${name}.klib`),
1350
- library
1351
- ],
1352
- { maxBuffer: 16 * 1024 * 1024 }
1349
+ await runKotlinTool(
1350
+ toolchain,
1351
+ sdkRoot,
1352
+ "dev.peach.tools.platform.JavaPlatformTypesKt",
1353
+ [import_node_path5.default.join(directory, `${name}.klib`), library]
1353
1354
  );
1354
1355
  return library;
1355
1356
  }
@@ -1941,23 +1942,7 @@ async function scanSources(tool, parse3, toolchain, moduleRoot, files) {
1941
1942
  const key = digest.digest("hex");
1942
1943
  let scan = toolScans.get(key);
1943
1944
  if (!scan) {
1944
- scan = (async () => {
1945
- const { kotlinc } = await ensureToolchain(toolchain);
1946
- const { stdout } = await run5(
1947
- import_node_path9.default.join(import_node_path9.default.dirname(kotlinc), "kotlin"),
1948
- [
1949
- "-cp",
1950
- [
1951
- import_node_path9.default.resolve(import_node_path9.default.dirname(kotlinc), "../lib/kotlin-compiler.jar"),
1952
- import_node_path9.default.join(sdk.root, "tools.jar")
1953
- ].join(import_node_path9.default.delimiter),
1954
- tool,
1955
- ...files
1956
- ],
1957
- { maxBuffer: 16 * 1024 * 1024 }
1958
- );
1959
- return stdout;
1960
- })().catch((error) => {
1945
+ scan = ensureToolchain(toolchain).then((ready) => runKotlinTool(ready, sdk.root, tool, files)).catch((error) => {
1961
1946
  toolScans.delete(key);
1962
1947
  throw error;
1963
1948
  });
@@ -2772,18 +2757,12 @@ async function compileKotlin(input, origin) {
2772
2757
  ({ file, bytes }) => sources.includes(file) && bytes.includes("ViewModel")
2773
2758
  )) {
2774
2759
  await compileKlib(import_node_path9.default.join(work, "abi"));
2775
- const { stdout } = await run5(
2776
- import_node_path9.default.join(import_node_path9.default.dirname(kotlinc), "kotlin"),
2777
- [
2778
- "-cp",
2779
- [
2780
- import_node_path9.default.resolve(import_node_path9.default.dirname(kotlinc), "../lib/kotlin-compiler.jar"),
2781
- import_node_path9.default.join(sdk.root, "tools.jar")
2782
- ].join(import_node_path9.default.delimiter),
2783
- viewModels.toolClass,
2784
- import_node_path9.default.join(work, "abi")
2785
- ],
2786
- { maxBuffer: 64 * 1024 * 1024 }
2760
+ const stdout = await runKotlinTool(
2761
+ ready,
2762
+ sdk.root,
2763
+ viewModels.toolClass,
2764
+ [import_node_path9.default.join(work, "abi")],
2765
+ 64 * 1024 * 1024
2787
2766
  );
2788
2767
  import_node_fs9.default.writeFileSync(
2789
2768
  import_node_path9.default.join(generatedDir, viewModels.file),
package/dist-lib/menu.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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;
package/dist-lib/menu.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/menuContract.ts
4
4
  var SOOTSIM_ENGINE_EVENT_NAME = "sootsim:engine-event";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __esm = (fn, res) => function __init() {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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;
@@ -1892,7 +1892,7 @@ var STANDIN_SOURCE_DIGEST;
1892
1892
  var init_swift_standin_digest = __esm({
1893
1893
  "src/swift-standin-digest.ts"() {
1894
1894
  "use strict";
1895
- STANDIN_SOURCE_DIGEST = true ? "3475ca483b1e5005a2c76ec887310c0d0f44c91ea427496b33acbb5bf6188684" : standinSourceDigest();
1895
+ STANDIN_SOURCE_DIGEST = true ? "1f6eece6339ce20859e9666fa0ad8e9076485c71ec1cd098fe6a45fd6e28a28f" : standinSourceDigest();
1896
1896
  }
1897
1897
  });
1898
1898
 
@@ -10413,6 +10413,7 @@ var init_swift_guest_link = __esm({
10413
10413
  var init_swift_guest_source_inputs = __esm({
10414
10414
  "src/swift-guest-source-inputs.ts"() {
10415
10415
  "use strict";
10416
+ init_forked_script_contract();
10416
10417
  init_swift_guest_source_plan();
10417
10418
  init_swift_runtime_products();
10418
10419
  }
@@ -10724,7 +10725,7 @@ var init_swift_compile = __esm({
10724
10725
  FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
10725
10726
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
10726
10727
  ).join("");
10727
- compilerSourceDigest = true ? "da253e49615973dfc65a40000574546cbf7dc4c9d44a36295773bd33442d8c1d" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
10728
+ compilerSourceDigest = true ? "2ff4da3ff6b56e29c8968a39135d8974f54c927608bde4993a6a2476beb749e6" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
10728
10729
  C_WORDS = new Set(
10729
10730
  "auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
10730
10731
  " "
@@ -17508,6 +17509,7 @@ var init_swift_host = __esm({
17508
17509
  init_swift_standins();
17509
17510
  init_swift_submit();
17510
17511
  init_swift_toolchain();
17512
+ init_swift_xcframework();
17511
17513
  init_swiftContract();
17512
17514
  init_swiftContract();
17513
17515
  init_xcode_project();
@@ -17673,7 +17675,7 @@ var init_node_http_fetch = __esm({
17673
17675
  var runtime_companion_default;
17674
17676
  var init_runtime_companion = __esm({
17675
17677
  "runtime-companion.json"() {
17676
- runtime_companion_default = { abi: 1, sha256: "c3e71b5eaf9166fc3fdc4333c354332e1ff41e1a6c71b6814afebe7c7d14bf9b", file: "node/cli-c3e71b5eaf9166fc3fdc4333c354332e1ff41e1a6c71b6814afebe7c7d14bf9b.cjs" };
17678
+ runtime_companion_default = { abi: 1, sha256: "2d42441f509451bf1c660a06ac087056d0cc7d96ca43aead02f6fd91f5e4e367", file: "node/cli-2d42441f509451bf1c660a06ac087056d0cc7d96ca43aead02f6fd91f5e4e367.cjs" };
17677
17679
  }
17678
17680
  });
17679
17681
 
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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;
@@ -4169,7 +4169,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
4169
4169
  var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
4170
4170
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
4171
4171
  ).join("");
4172
- var compilerSourceDigest = true ? "da253e49615973dfc65a40000574546cbf7dc4c9d44a36295773bd33442d8c1d" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
4172
+ var compilerSourceDigest = true ? "2ff4da3ff6b56e29c8968a39135d8974f54c927608bde4993a6a2476beb749e6" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
4173
4173
  var C_WORDS = new Set(
4174
4174
  "auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
4175
4175
  " "
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -4422,7 +4422,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
4422
4422
  var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
4423
4423
  (module) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module}"`
4424
4424
  ).join("");
4425
- var compilerSourceDigest = true ? "da253e49615973dfc65a40000574546cbf7dc4c9d44a36295773bd33442d8c1d" : swiftCompilerSourceDigest(import.meta.dirname);
4425
+ var compilerSourceDigest = true ? "2ff4da3ff6b56e29c8968a39135d8974f54c927608bde4993a6a2476beb749e6" : swiftCompilerSourceDigest(import.meta.dirname);
4426
4426
  var C_WORDS = new Set(
4427
4427
  "auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
4428
4428
  " "
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../peach-globals/src/bundle-global-footer.ts
4
4
  function findBundleFooter(source, prefix) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../peach-globals/src/bundle-global-footer.ts
4
4
  function findBundleFooter(source, prefix) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/pdfium-raster.ts
4
4
  import { PDFiumLibrary } from "@hyzyla/pdfium/inline";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/plist.ts
4
4
  import plist from "plist";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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.2432 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2434 | (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;