peachsim 0.1.2478 → 0.1.2480

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 (139) hide show
  1. package/cli/commands/control.ts +3 -1
  2. package/cli/commands/perf-native.ts +886 -0
  3. package/cli/commands/perf.ts +6 -1
  4. package/cli/commands/stream.ts +12 -5
  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 +2 -2
  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 +5 -5
  15. package/dist-lib/bridge-contract.cjs +1 -1
  16. package/dist-lib/bridge-contract.mjs +3 -3
  17. package/dist-lib/bundle-channel.cjs +96 -69
  18. package/dist-lib/capture-contract.cjs +1 -1
  19. package/dist-lib/capture-contract.mjs +3 -3
  20. package/dist-lib/cloud-contract.cjs +1 -1
  21. package/dist-lib/cloud-contract.mjs +3 -3
  22. package/dist-lib/cloud-test-args.cjs +1 -1
  23. package/dist-lib/cloud-test-args.mjs +2 -2
  24. package/dist-lib/cloud.cjs +1 -1
  25. package/dist-lib/cloud.mjs +7 -7
  26. package/dist-lib/config.cjs +1 -1
  27. package/dist-lib/config.mjs +5 -5
  28. package/dist-lib/detox/index.cjs +2 -2
  29. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  30. package/dist-lib/esm-chunks/{acorn-FQLOTPEI.mjs → acorn-RHJLDFQ6.mjs} +3 -3
  31. package/dist-lib/esm-chunks/{chunk-GGYYAJR7.mjs → chunk-43UZGHLJ.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-XEZ4K3TZ.mjs → chunk-5VNECNVL.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-VORKZFQK.mjs → chunk-AN4RNKME.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-RSSHYN7S.mjs → chunk-HHXID6CS.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-25VCIHSN.mjs → chunk-IAQ6RFFI.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-Q47VNBNR.mjs → chunk-IGQJDRVL.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-TUJL2AP2.mjs → chunk-IMJ6FVRR.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-GY7RVEFV.mjs → chunk-JW6P2F6T.mjs} +4 -4
  39. package/dist-lib/esm-chunks/{chunk-MLVSAVNL.mjs → chunk-K633NA6X.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-CIMYKM6N.mjs → chunk-KPDAPPKX.mjs} +5 -5
  41. package/dist-lib/esm-chunks/{chunk-355SS4SH.mjs → chunk-LIULVSRG.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-MQM5KR5X.mjs → chunk-LNLVUOIL.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-FFCS7MFJ.mjs → chunk-NZYUWM5K.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-VAQFAFOC.mjs → chunk-OW2NZLWH.mjs} +5 -5
  45. package/dist-lib/esm-chunks/{chunk-LCAQS5UW.mjs → chunk-PB53B3G3.mjs} +2 -2
  46. package/dist-lib/esm-chunks/{chunk-OVBWXPD7.mjs → chunk-PPI4PXUE.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-UETOLHI7.mjs → chunk-QNFDJM4V.mjs} +12 -12
  48. package/dist-lib/esm-chunks/{chunk-3IZX74HE.mjs → chunk-QWPRWZCR.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-ICJOTWER.mjs → chunk-U5UJRFVB.mjs} +3 -3
  50. package/dist-lib/esm-chunks/{chunk-JUPWMWSX.mjs → chunk-VYP6I44Y.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{chunk-XSSZZ2HY.mjs → chunk-X7K3JLJ3.mjs} +1 -1
  52. package/dist-lib/esm-chunks/{metro-layout-parser-MRCK7YD5.mjs → metro-layout-parser-K64IERC5.mjs} +3 -3
  53. package/dist-lib/esm-chunks/{swift-package-prebuilt-LYR2P26A.mjs → swift-package-prebuilt-4B2KGEQL.mjs} +10 -10
  54. package/dist-lib/esm-chunks/{swift-sdk-app-module-CXY5TKBA.mjs → swift-sdk-app-module-SUCFPPKO.mjs} +13 -13
  55. package/dist-lib/esm-chunks/{swift-sdk-image-6L3AMATS.mjs → swift-sdk-image-YX5FMNXN.mjs} +13 -13
  56. package/dist-lib/esm-chunks/{swift-sdk-image-producer-C4TNZ4UM.mjs → swift-sdk-image-producer-WFJBSXZG.mjs} +4 -4
  57. package/dist-lib/expo-swift-bundle.cjs +93 -66
  58. package/dist-lib/expo-swift-metadata.cjs +1 -1
  59. package/dist-lib/expo-swift-metadata.mjs +7 -7
  60. package/dist-lib/home-paths.cjs +1 -1
  61. package/dist-lib/host/bridge-host.cjs +97 -70
  62. package/dist-lib/host/fetch-proxy-handler.cjs +13 -12
  63. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  64. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  65. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  66. package/dist-lib/host/websocket-proxy.cjs +1 -1
  67. package/dist-lib/index.cjs +1 -1
  68. package/dist-lib/kotlin-host.cjs +1 -1
  69. package/dist-lib/menu.cjs +1 -1
  70. package/dist-lib/menu.mjs +3 -3
  71. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  72. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  73. package/dist-lib/metro-production-bundle.cjs +1 -1
  74. package/dist-lib/metro-production-bundle.mjs +4 -4
  75. package/dist-lib/native-app-identity-project.cjs +1 -1
  76. package/dist-lib/native-app-identity-project.mjs +15 -15
  77. package/dist-lib/native-app-identity.cjs +1 -1
  78. package/dist-lib/native-app-identity.mjs +6 -6
  79. package/dist-lib/native-firebase-metadata.cjs +1 -1
  80. package/dist-lib/native-firebase-metadata.mjs +3 -3
  81. package/dist-lib/pdfium-raster.cjs +1 -1
  82. package/dist-lib/pdfium-raster.mjs +2 -2
  83. package/dist-lib/plist.cjs +1 -1
  84. package/dist-lib/plist.mjs +3 -3
  85. package/dist-lib/profiles.cjs +1 -1
  86. package/dist-lib/public-brand.cjs +1 -1
  87. package/dist-lib/public-origins-lib-esm.json +79 -79
  88. package/dist-lib/public-origins-lib.json +69 -69
  89. package/dist-lib/react-native-host-modules.cjs +1 -1
  90. package/dist-lib/react-native-host-modules.mjs +2 -2
  91. package/dist-lib/reap-browser.cjs +1 -1
  92. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  93. package/dist-lib/sdk.cjs +1 -1
  94. package/dist-lib/sdk.mjs +7 -7
  95. package/dist-lib/skills.cjs +115 -84
  96. package/dist-lib/swift-compile.cjs +1 -1
  97. package/dist-lib/swift-compile.mjs +10 -10
  98. package/dist-lib/swift-package.cjs +1 -1
  99. package/dist-lib/swift-package.mjs +3 -3
  100. package/dist-lib/swift-submit.cjs +1 -1
  101. package/dist-lib/swift-submit.mjs +5 -5
  102. package/dist-lib/swift-svg-raster.cjs +1 -1
  103. package/dist-lib/swift-svg-raster.mjs +2 -2
  104. package/dist-lib/swift-toolchain.cjs +1 -1
  105. package/dist-lib/swift.cjs +1 -1
  106. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  107. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  108. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  109. package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
  110. package/dist-lib/vendor/acorn.cjs +1 -1
  111. package/dist-lib/vendor/bplist-parser.cjs +1 -1
  112. package/dist-lib/vendor/ignore.cjs +1 -1
  113. package/dist-lib/vendor/magic-string.cjs +1 -1
  114. package/dist-lib/vendor/plist.cjs +1 -1
  115. package/dist-lib/vendor/smol-toml.cjs +1 -1
  116. package/dist-lib/vendor/stream-json.cjs +1 -1
  117. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  118. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  119. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  120. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  121. package/dist-lib/vendor/sucrase.cjs +1 -1
  122. package/dist-lib/vendor/terser.cjs +1 -1
  123. package/dist-lib/vendor/valibot.cjs +1 -1
  124. package/dist-lib/vendor/ws.cjs +1 -1
  125. package/dist-lib/vendor/zod.cjs +1 -1
  126. package/dist-lib/worklet-executable.cjs +1 -1
  127. package/dist-lib/worklet-executable.mjs +3 -3
  128. package/dist-types/packages/peach-engine/src/engine/image-host.d.ts +1 -1
  129. package/dist-types/packages/peach-engine/src/engine/remote-display-protocol.d.ts +12 -3
  130. package/dist-types/packages/peach-engine/src/observability/diagnostics-sample.d.ts +2 -1
  131. package/dist-types/packages/peach-engine/src/observability/types.d.ts +6 -0
  132. package/dist-types/packages/peach-engine/src/remote-stream/agent-action.d.ts +4 -0
  133. package/dist-types/packages/peach-engine/src/remote-stream/client-config.d.ts +1 -0
  134. package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
  135. package/dist-types/packages/peach-engine/src/render-worker/app-load.d.ts +0 -1
  136. package/package.json +1 -1
  137. package/runtime-companion.json +1 -1
  138. package/src/canvas-agent-note-delivery.ts +3 -3
  139. package/src/expo-discovery-cache.ts +100 -77
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2478 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2480 | (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;
@@ -26248,7 +26248,7 @@ var init_swift_standin_digest = __esm({
26248
26248
 
26249
26249
  // src/expo-native-compiler-digest.ts
26250
26250
  function expoNativeCompilerDigestValue() {
26251
- return true ? "a0a06dd88591f41fc653d27ff4650dedf02d366236043e265323323005bbb832" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
26251
+ return true ? "85d88685566b45d93d27c514cee145e968e1c9493a6eebf83c6cc35d92e97bb6" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
26252
26252
  }
26253
26253
  var import_node_crypto17;
26254
26254
  var init_expo_native_compiler_digest = __esm({
@@ -71958,7 +71958,7 @@ function isExpoSwiftSourceUnit(value) {
71958
71958
  return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && (value.nativeAppIdentity === void 0 || isNativeAppIdentity(value.nativeAppIdentity)) && strings2(value.classes) && strings2(value.bridgeModules) && strings2(value.appDelegateSubscribers) && strings2(value.reactDelegateHandlers) && stringRecord(value.files) && strings2(value.frameworks) && (value.workspaceSources === void 0 || strings2(value.workspaceSources)) && (value.nativeTargets === void 0 || Array.isArray(value.nativeTargets) && value.nativeTargets.every(isRecord)) && (value.nativeFiles === void 0 || stringRecord(value.nativeFiles)) && (value.resources === void 0 || stringRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
71959
71959
  }
71960
71960
  function isStoredUnit(value) {
71961
- return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && strings2(value.classes) && strings2(value.bridgeModules) && strings2(value.appDelegateSubscribers) && strings2(value.reactDelegateHandlers) && digestRecord(value.files) && strings2(value.frameworks) && (value.reactNativeProvider === void 0 || value.reactNativeProvider === true) && (value.workspaceSources === void 0 || strings2(value.workspaceSources)) && (value.nativeTargets === void 0 || strings2(value.nativeTargets) && value.nativeTargets.every(isDigest)) && (value.nativeFiles === void 0 || digestRecord(value.nativeFiles)) && (value.resources === void 0 || digestRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
71961
+ return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && strings2(value.classes) && strings2(value.bridgeModules) && strings2(value.appDelegateSubscribers) && strings2(value.reactDelegateHandlers) && isBodyOffsets(value.files) && strings2(value.frameworks) && (value.reactNativeProvider === void 0 || value.reactNativeProvider === true) && (value.workspaceSources === void 0 || strings2(value.workspaceSources)) && (value.nativeTargets === void 0 || Array.isArray(value.nativeTargets) && value.nativeTargets.every(isBodyOffset)) && (value.nativeFiles === void 0 || isBodyOffsets(value.nativeFiles)) && (value.resources === void 0 || isBodyOffsets(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
71962
71962
  }
71963
71963
  function readExpoDiscovery(key2) {
71964
71964
  let parsed2;
@@ -71983,43 +71983,54 @@ function readExpoDiscovery(key2) {
71983
71983
  } catch {
71984
71984
  return void 0;
71985
71985
  }
71986
- renew(record4);
71987
- if (parsed2.units === null) return null;
71988
- if (!strings2(parsed2.units) || !parsed2.units.every(isDigest)) return void 0;
71989
- const blobs = /* @__PURE__ */ new Map();
71990
- const read = (digest2) => {
71991
- const known = blobs.get(digest2);
71992
- if (known !== void 0) return known;
71993
- const blob = import_node_path90.default.join(expoDiscoveryCacheDir(), "blobs", digest2);
71994
- const body = import_node_fs89.default.readFileSync(blob, "utf8");
71995
- if ((0, import_node_crypto55.createHash)("sha256").update(body).digest("hex") !== digest2)
71996
- throw new Error("discovery blob differs from its digest");
71997
- blobs.set(digest2, body);
71998
- renew(blob);
71999
- return body;
72000
- };
72001
- const resolve3 = (refs) => {
72002
- const bodies = {};
72003
- for (const [name3, digest2] of Object.entries(refs)) {
72004
- bodies[name3] = read(digest2);
72005
- }
72006
- return bodies;
72007
- };
72008
- const units = [];
72009
71986
  try {
72010
- for (const digest2 of parsed2.units) {
72011
- const stored = JSON.parse(read(digest2));
71987
+ if (parsed2.units === null) {
71988
+ renew(record4);
71989
+ return null;
71990
+ }
71991
+ if (!Array.isArray(parsed2.units) || !parsed2.units.every(isBodyOffset))
71992
+ return void 0;
71993
+ if (typeof parsed2.archive !== "string" || !isDigest(parsed2.archive)) return void 0;
71994
+ const archive = import_node_path90.default.join(expoDiscoveryCacheDir(), "blobs", `${parsed2.archive}.zst`);
71995
+ const bytes = import_node_fs89.default.readFileSync(archive);
71996
+ if ((0, import_node_crypto55.createHash)("sha256").update(bytes).digest("hex") !== parsed2.archive)
71997
+ return void 0;
71998
+ const bodies = (0, import_node_zlib6.zstdDecompressSync)(bytes);
71999
+ const decoded = /* @__PURE__ */ new Map();
72000
+ const read = (offset) => {
72001
+ const known = decoded.get(offset);
72002
+ if (known !== void 0) return known;
72003
+ const start = offset + 4;
72004
+ const end = start + bodies.readUInt32LE(offset);
72005
+ if (end > bodies.length) throw new Error("discovery archive body is truncated");
72006
+ const body = bodies.toString("utf8", start, end);
72007
+ decoded.set(offset, body);
72008
+ return body;
72009
+ };
72010
+ const resolve3 = (refs) => Object.fromEntries(
72011
+ Object.entries(refs).map(([name3, offset]) => [name3, read(offset)])
72012
+ );
72013
+ const units = [];
72014
+ for (const offset of parsed2.units) {
72015
+ const stored = JSON.parse(read(offset));
72012
72016
  if (!isStoredUnit(stored)) return void 0;
72013
- const nativeTargets2 = stored.nativeTargets?.map(
72017
+ const {
72018
+ files: fileOffsets,
72019
+ nativeFiles: nativeFileOffsets,
72020
+ resources: resourceOffsets,
72021
+ nativeTargets: nativeTargetOffsets,
72022
+ ...metadata
72023
+ } = stored;
72024
+ const nativeTargets2 = nativeTargetOffsets?.map(
72014
72025
  (ref) => JSON.parse(read(ref))
72015
72026
  );
72016
72027
  if (nativeTargets2 !== void 0 && !isSwiftNativeTargets(nativeTargets2))
72017
72028
  return void 0;
72018
- const files2 = resolve3(stored.files);
72019
- const nativeFiles = stored.nativeFiles === void 0 ? void 0 : resolve3(stored.nativeFiles);
72020
- const resources = stored.resources === void 0 ? void 0 : resolve3(stored.resources);
72029
+ const files2 = resolve3(fileOffsets);
72030
+ const nativeFiles = nativeFileOffsets === void 0 ? void 0 : resolve3(nativeFileOffsets);
72031
+ const resources = resourceOffsets === void 0 ? void 0 : resolve3(resourceOffsets);
72021
72032
  const unit2 = {
72022
- ...stored,
72033
+ ...metadata,
72023
72034
  nativeTargets: nativeTargets2,
72024
72035
  files: files2,
72025
72036
  ...nativeFiles === void 0 ? {} : { nativeFiles },
@@ -72028,6 +72039,8 @@ function readExpoDiscovery(key2) {
72028
72039
  if (!isExpoSwiftSourceUnit(unit2)) return void 0;
72029
72040
  units.push(unit2);
72030
72041
  }
72042
+ renew(archive);
72043
+ renew(record4);
72031
72044
  return units;
72032
72045
  } catch {
72033
72046
  return void 0;
@@ -72272,46 +72285,57 @@ function writeExpoDiscovery(options2) {
72272
72285
  const blobDir = import_node_path90.default.join(dir, "blobs");
72273
72286
  import_node_fs89.default.mkdirSync(blobDir, { recursive: true });
72274
72287
  const seen = /* @__PURE__ */ new Map();
72275
- const digestFor = (body) => {
72288
+ const chunks = [];
72289
+ let size2 = 0;
72290
+ const offsetFor = (body) => {
72276
72291
  const known = seen.get(body);
72277
72292
  if (known !== void 0) return known;
72278
72293
  options2.signal?.throwIfAborted();
72279
72294
  if (body.includes(preparedRoot))
72280
72295
  throw new Error("a prepared path survives the rewrite");
72281
- const digest2 = (0, import_node_crypto55.createHash)("sha256").update(body).digest("hex");
72282
- const file = import_node_path90.default.join(blobDir, digest2);
72283
- const temporary = import_node_path90.default.join(blobDir, "." + (0, import_node_crypto55.randomUUID)() + ".tmp");
72284
- try {
72285
- import_node_fs89.default.writeFileSync(temporary, body);
72286
- import_node_fs89.default.renameSync(temporary, file);
72287
- } finally {
72288
- import_node_fs89.default.rmSync(temporary, { force: true });
72289
- }
72290
- seen.set(body, digest2);
72291
- return digest2;
72296
+ const offset = size2;
72297
+ const bytes = Buffer.from(body);
72298
+ const header = Buffer.alloc(4);
72299
+ header.writeUInt32LE(bytes.length);
72300
+ chunks.push(header, bytes);
72301
+ size2 += header.length + bytes.length;
72302
+ seen.set(body, offset);
72303
+ return offset;
72292
72304
  };
72293
72305
  const reference = (bodies) => Object.fromEntries(
72294
- Object.entries(bodies).map(([name3, body]) => [name3, digestFor(body)])
72306
+ Object.entries(bodies).map(([name3, body]) => [name3, offsetFor(body)])
72307
+ );
72308
+ const stored = rewritten.units.map(
72309
+ ({ files: files2, nativeFiles, resources, nativeTargets: nativeTargets2, ...metadata }) => {
72310
+ options2.signal?.throwIfAborted();
72311
+ const value = {
72312
+ ...metadata,
72313
+ nativeTargets: nativeTargets2?.map(
72314
+ (target) => offsetFor(JSON.stringify(target))
72315
+ ),
72316
+ files: reference(files2),
72317
+ ...nativeFiles === void 0 ? {} : { nativeFiles: reference(nativeFiles) },
72318
+ ...resources === void 0 ? {} : { resources: reference(resources) }
72319
+ };
72320
+ return offsetFor(JSON.stringify(value));
72321
+ }
72295
72322
  );
72296
- const stored = rewritten.units.map((unit2) => {
72297
- options2.signal?.throwIfAborted();
72298
- const value = {
72299
- ...unit2,
72300
- nativeTargets: unit2.nativeTargets?.map(
72301
- (target) => digestFor(JSON.stringify(target))
72302
- ),
72303
- files: reference(unit2.files),
72304
- ...unit2.nativeFiles === void 0 ? {} : { nativeFiles: reference(unit2.nativeFiles) },
72305
- ...unit2.resources === void 0 ? {} : { resources: reference(unit2.resources) }
72306
- };
72307
- return digestFor(JSON.stringify(value));
72308
- });
72323
+ const contents2 = (0, import_node_zlib6.zstdCompressSync)(Buffer.concat(chunks, size2));
72324
+ const archive = (0, import_node_crypto55.createHash)("sha256").update(contents2).digest("hex");
72325
+ const temporary = import_node_path90.default.join(blobDir, "." + (0, import_node_crypto55.randomUUID)() + ".tmp");
72326
+ try {
72327
+ import_node_fs89.default.writeFileSync(temporary, contents2);
72328
+ import_node_fs89.default.renameSync(temporary, import_node_path90.default.join(blobDir, `${archive}.zst`));
72329
+ } finally {
72330
+ import_node_fs89.default.rmSync(temporary, { force: true });
72331
+ }
72309
72332
  import_node_fs89.default.writeFileSync(
72310
72333
  tmp,
72311
72334
  JSON.stringify({
72312
72335
  format: FORMAT,
72313
72336
  key: options2.key,
72314
72337
  units: stored,
72338
+ archive,
72315
72339
  dependencies: rewritten.dependencies,
72316
72340
  frameworks: rewritten.frameworks
72317
72341
  })
@@ -72325,13 +72349,14 @@ function writeExpoDiscovery(options2) {
72325
72349
  return error instanceof Error ? error.message : String(error);
72326
72350
  }
72327
72351
  }
72328
- var import_node_crypto55, import_node_fs89, import_node_path90, FORMAT, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings2, stringRecord, isDigest, digestRecord, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
72352
+ var import_node_crypto55, import_node_fs89, import_node_path90, import_node_zlib6, FORMAT, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings2, stringRecord, isDigest, digestRecord, isBodyOffset, isBodyOffsets, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
72329
72353
  var init_expo_discovery_cache = __esm({
72330
72354
  "src/expo-discovery-cache.ts"() {
72331
72355
  "use strict";
72332
72356
  import_node_crypto55 = require("node:crypto");
72333
72357
  import_node_fs89 = __toESM(require("node:fs"), 1);
72334
72358
  import_node_path90 = __toESM(require("node:path"), 1);
72359
+ import_node_zlib6 = require("node:zlib");
72335
72360
  init_expo_eager_seam_contract();
72336
72361
  init_answeredNativePackages();
72337
72362
  init_expo_native_compiler_digest();
@@ -72342,13 +72367,15 @@ var init_expo_discovery_cache = __esm({
72342
72367
  init_swift_native_pin();
72343
72368
  init_swift_toolchain();
72344
72369
  init_swiftContract();
72345
- FORMAT = "expo-discovery-v5";
72370
+ FORMAT = "expo-discovery-v6";
72346
72371
  EXPIRY_MS = 7 * 24 * 36e5;
72347
72372
  ORPHAN_TEMPORARY_MS = 24 * 36e5;
72348
72373
  strings2 = (value) => Array.isArray(value) && value.every((item) => typeof item === "string");
72349
72374
  stringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
72350
72375
  isDigest = (value) => /^[0-9a-f]{64}$/.test(value);
72351
72376
  digestRecord = (value) => stringRecord(value) && Object.values(value).every(isDigest);
72377
+ isBodyOffset = (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
72378
+ isBodyOffsets = (value) => isRecord(value) && Object.values(value).every(isBodyOffset);
72352
72379
  sourceLocationLine = /^#sourceLocation\(file: "(.*)", line: 1\)$/;
72353
72380
  fileHashes = /* @__PURE__ */ new Map();
72354
72381
  fileHashesLoaded = false;
@@ -87043,7 +87070,7 @@ function dataChunk(bytes) {
87043
87070
  chunk.writeUInt32BE(bytes.length);
87044
87071
  chunk.write("IDAT", 4, "ascii");
87045
87072
  chunk.set(bytes, 8);
87046
- chunk.writeUInt32BE((0, import_node_zlib6.crc32)(chunk.subarray(4, -4)), chunk.length - 4);
87073
+ chunk.writeUInt32BE((0, import_node_zlib7.crc32)(chunk.subarray(4, -4)), chunk.length - 4);
87047
87074
  return chunk;
87048
87075
  }
87049
87076
  function normalizeSwiftCatalogPng(png) {
@@ -87075,12 +87102,12 @@ function normalizeSwiftCatalogPng(png) {
87075
87102
  } else if (name3 === "IEND") {
87076
87103
  if (!scanlineBytes || !compressed.length)
87077
87104
  throw new Error("Swift catalog CgBI has no pixel data");
87078
- const scanlines = (0, import_node_zlib6.inflateRawSync)(Buffer.concat(compressed), {
87105
+ const scanlines = (0, import_node_zlib7.inflateRawSync)(Buffer.concat(compressed), {
87079
87106
  maxOutputLength: scanlineBytes
87080
87107
  });
87081
87108
  if (scanlines.length !== scanlineBytes)
87082
87109
  throw new Error("Swift catalog CgBI has incomplete scanlines");
87083
- chunks.push(dataChunk((0, import_node_zlib6.deflateSync)(scanlines)), chunk);
87110
+ chunks.push(dataChunk((0, import_node_zlib7.deflateSync)(scanlines)), chunk);
87084
87111
  ended = true;
87085
87112
  break;
87086
87113
  } else if (name3 !== "CgBI" && name3 !== "iDOT") {
@@ -87101,11 +87128,11 @@ function normalizeSwiftCatalogPng(png) {
87101
87128
  }
87102
87129
  return import_pngjs.PNG.sync.write(decoded);
87103
87130
  }
87104
- var import_node_zlib6, import_pngjs, pngSignature;
87131
+ var import_node_zlib7, import_pngjs, pngSignature;
87105
87132
  var init_swift_catalog_png = __esm({
87106
87133
  "src/swift-catalog-png.ts"() {
87107
87134
  "use strict";
87108
- import_node_zlib6 = require("node:zlib");
87135
+ import_node_zlib7 = require("node:zlib");
87109
87136
  import_pngjs = __toESM(require_png(), 1);
87110
87137
  pngSignature = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
87111
87138
  }
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2478 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2480 | (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,19 +1,19 @@
1
- /*! peach v0.1.2478 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2480 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  isSwiftResourcePath
4
- } from "./esm-chunks/chunk-RSSHYN7S.mjs";
4
+ } from "./esm-chunks/chunk-HHXID6CS.mjs";
5
5
  import {
6
6
  isNativeAppIdentity
7
- } from "./esm-chunks/chunk-GY7RVEFV.mjs";
8
- import "./esm-chunks/chunk-OVBWXPD7.mjs";
7
+ } from "./esm-chunks/chunk-JW6P2F6T.mjs";
8
+ import "./esm-chunks/chunk-PPI4PXUE.mjs";
9
9
  import {
10
10
  insertBundleGlobalFooter,
11
11
  readBundleGlobalFooter
12
- } from "./esm-chunks/chunk-355SS4SH.mjs";
12
+ } from "./esm-chunks/chunk-LIULVSRG.mjs";
13
13
  import {
14
14
  isRecord
15
- } from "./esm-chunks/chunk-MQM5KR5X.mjs";
16
- import "./esm-chunks/chunk-3IZX74HE.mjs";
15
+ } from "./esm-chunks/chunk-LNLVUOIL.mjs";
16
+ import "./esm-chunks/chunk-QWPRWZCR.mjs";
17
17
 
18
18
  // src/expoSwiftContract.ts
19
19
  function strings(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2478 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2480 | (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.2478 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2480 | (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;
@@ -2058,7 +2058,7 @@ var init_runtime_assets = __esm({
2058
2058
  var runtime_companion_default;
2059
2059
  var init_runtime_companion = __esm({
2060
2060
  "runtime-companion.json"() {
2061
- runtime_companion_default = { abi: 1, sha256: "e7ca60080cbebbe3da4bdda4f01733a73cba0cd314fd7a91d53cf8dc54ea368d", file: "node/cli-e7ca60080cbebbe3da4bdda4f01733a73cba0cd314fd7a91d53cf8dc54ea368d.cjs" };
2061
+ runtime_companion_default = { abi: 1, sha256: "56c15583cc140c662769c92ceebfb293e7d63023fb8f35b1202d7a59b1b5739e", file: "node/cli-56c15583cc140c662769c92ceebfb293e7d63023fb8f35b1202d7a59b1b5739e.cjs" };
2062
2062
  }
2063
2063
  });
2064
2064
 
@@ -5662,7 +5662,7 @@ var init_swift_standin_digest = __esm({
5662
5662
 
5663
5663
  // src/expo-native-compiler-digest.ts
5664
5664
  function expoNativeCompilerDigestValue() {
5665
- return true ? "a0a06dd88591f41fc653d27ff4650dedf02d366236043e265323323005bbb832" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
5665
+ return true ? "85d88685566b45d93d27c514cee145e968e1c9493a6eebf83c6cc35d92e97bb6" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
5666
5666
  }
5667
5667
  var import_node_crypto11;
5668
5668
  var init_expo_native_compiler_digest = __esm({
@@ -77862,7 +77862,7 @@ function isExpoSwiftSourceUnit(value) {
77862
77862
  return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && (value.nativeAppIdentity === void 0 || isNativeAppIdentity(value.nativeAppIdentity)) && strings2(value.classes) && strings2(value.bridgeModules) && strings2(value.appDelegateSubscribers) && strings2(value.reactDelegateHandlers) && stringRecord(value.files) && strings2(value.frameworks) && (value.workspaceSources === void 0 || strings2(value.workspaceSources)) && (value.nativeTargets === void 0 || Array.isArray(value.nativeTargets) && value.nativeTargets.every(isRecord)) && (value.nativeFiles === void 0 || stringRecord(value.nativeFiles)) && (value.resources === void 0 || stringRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
77863
77863
  }
77864
77864
  function isStoredUnit(value) {
77865
- return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && strings2(value.classes) && strings2(value.bridgeModules) && strings2(value.appDelegateSubscribers) && strings2(value.reactDelegateHandlers) && digestRecord(value.files) && strings2(value.frameworks) && (value.reactNativeProvider === void 0 || value.reactNativeProvider === true) && (value.workspaceSources === void 0 || strings2(value.workspaceSources)) && (value.nativeTargets === void 0 || strings2(value.nativeTargets) && value.nativeTargets.every(isDigest)) && (value.nativeFiles === void 0 || digestRecord(value.nativeFiles)) && (value.resources === void 0 || digestRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
77865
+ return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && strings2(value.classes) && strings2(value.bridgeModules) && strings2(value.appDelegateSubscribers) && strings2(value.reactDelegateHandlers) && isBodyOffsets(value.files) && strings2(value.frameworks) && (value.reactNativeProvider === void 0 || value.reactNativeProvider === true) && (value.workspaceSources === void 0 || strings2(value.workspaceSources)) && (value.nativeTargets === void 0 || Array.isArray(value.nativeTargets) && value.nativeTargets.every(isBodyOffset)) && (value.nativeFiles === void 0 || isBodyOffsets(value.nativeFiles)) && (value.resources === void 0 || isBodyOffsets(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
77866
77866
  }
77867
77867
  function readExpoDiscovery(key2) {
77868
77868
  let parsed2;
@@ -77887,43 +77887,54 @@ function readExpoDiscovery(key2) {
77887
77887
  } catch {
77888
77888
  return void 0;
77889
77889
  }
77890
- renew(record6);
77891
- if (parsed2.units === null) return null;
77892
- if (!strings2(parsed2.units) || !parsed2.units.every(isDigest)) return void 0;
77893
- const blobs = /* @__PURE__ */ new Map();
77894
- const read = (digest3) => {
77895
- const known = blobs.get(digest3);
77896
- if (known !== void 0) return known;
77897
- const blob = import_node_path103.default.join(expoDiscoveryCacheDir(), "blobs", digest3);
77898
- const body = import_node_fs100.default.readFileSync(blob, "utf8");
77899
- if ((0, import_node_crypto60.createHash)("sha256").update(body).digest("hex") !== digest3)
77900
- throw new Error("discovery blob differs from its digest");
77901
- blobs.set(digest3, body);
77902
- renew(blob);
77903
- return body;
77904
- };
77905
- const resolve10 = (refs) => {
77906
- const bodies = {};
77907
- for (const [name3, digest3] of Object.entries(refs)) {
77908
- bodies[name3] = read(digest3);
77909
- }
77910
- return bodies;
77911
- };
77912
- const units = [];
77913
77890
  try {
77914
- for (const digest3 of parsed2.units) {
77915
- const stored = JSON.parse(read(digest3));
77891
+ if (parsed2.units === null) {
77892
+ renew(record6);
77893
+ return null;
77894
+ }
77895
+ if (!Array.isArray(parsed2.units) || !parsed2.units.every(isBodyOffset))
77896
+ return void 0;
77897
+ if (typeof parsed2.archive !== "string" || !isDigest(parsed2.archive)) return void 0;
77898
+ const archive = import_node_path103.default.join(expoDiscoveryCacheDir(), "blobs", `${parsed2.archive}.zst`);
77899
+ const bytes = import_node_fs100.default.readFileSync(archive);
77900
+ if ((0, import_node_crypto60.createHash)("sha256").update(bytes).digest("hex") !== parsed2.archive)
77901
+ return void 0;
77902
+ const bodies = (0, import_node_zlib7.zstdDecompressSync)(bytes);
77903
+ const decoded = /* @__PURE__ */ new Map();
77904
+ const read = (offset) => {
77905
+ const known = decoded.get(offset);
77906
+ if (known !== void 0) return known;
77907
+ const start = offset + 4;
77908
+ const end = start + bodies.readUInt32LE(offset);
77909
+ if (end > bodies.length) throw new Error("discovery archive body is truncated");
77910
+ const body = bodies.toString("utf8", start, end);
77911
+ decoded.set(offset, body);
77912
+ return body;
77913
+ };
77914
+ const resolve10 = (refs) => Object.fromEntries(
77915
+ Object.entries(refs).map(([name3, offset]) => [name3, read(offset)])
77916
+ );
77917
+ const units = [];
77918
+ for (const offset of parsed2.units) {
77919
+ const stored = JSON.parse(read(offset));
77916
77920
  if (!isStoredUnit(stored)) return void 0;
77917
- const nativeTargets2 = stored.nativeTargets?.map(
77921
+ const {
77922
+ files: fileOffsets,
77923
+ nativeFiles: nativeFileOffsets,
77924
+ resources: resourceOffsets,
77925
+ nativeTargets: nativeTargetOffsets,
77926
+ ...metadata
77927
+ } = stored;
77928
+ const nativeTargets2 = nativeTargetOffsets?.map(
77918
77929
  (ref) => JSON.parse(read(ref))
77919
77930
  );
77920
77931
  if (nativeTargets2 !== void 0 && !isSwiftNativeTargets(nativeTargets2))
77921
77932
  return void 0;
77922
- const files2 = resolve10(stored.files);
77923
- const nativeFiles = stored.nativeFiles === void 0 ? void 0 : resolve10(stored.nativeFiles);
77924
- const resources = stored.resources === void 0 ? void 0 : resolve10(stored.resources);
77933
+ const files2 = resolve10(fileOffsets);
77934
+ const nativeFiles = nativeFileOffsets === void 0 ? void 0 : resolve10(nativeFileOffsets);
77935
+ const resources = resourceOffsets === void 0 ? void 0 : resolve10(resourceOffsets);
77925
77936
  const unit2 = {
77926
- ...stored,
77937
+ ...metadata,
77927
77938
  nativeTargets: nativeTargets2,
77928
77939
  files: files2,
77929
77940
  ...nativeFiles === void 0 ? {} : { nativeFiles },
@@ -77932,6 +77943,8 @@ function readExpoDiscovery(key2) {
77932
77943
  if (!isExpoSwiftSourceUnit(unit2)) return void 0;
77933
77944
  units.push(unit2);
77934
77945
  }
77946
+ renew(archive);
77947
+ renew(record6);
77935
77948
  return units;
77936
77949
  } catch {
77937
77950
  return void 0;
@@ -78176,46 +78189,57 @@ function writeExpoDiscovery(options2) {
78176
78189
  const blobDir = import_node_path103.default.join(dir, "blobs");
78177
78190
  import_node_fs100.default.mkdirSync(blobDir, { recursive: true });
78178
78191
  const seen = /* @__PURE__ */ new Map();
78179
- const digestFor = (body) => {
78192
+ const chunks = [];
78193
+ let size2 = 0;
78194
+ const offsetFor = (body) => {
78180
78195
  const known = seen.get(body);
78181
78196
  if (known !== void 0) return known;
78182
78197
  options2.signal?.throwIfAborted();
78183
78198
  if (body.includes(preparedRoot))
78184
78199
  throw new Error("a prepared path survives the rewrite");
78185
- const digest3 = (0, import_node_crypto60.createHash)("sha256").update(body).digest("hex");
78186
- const file = import_node_path103.default.join(blobDir, digest3);
78187
- const temporary = import_node_path103.default.join(blobDir, "." + (0, import_node_crypto60.randomUUID)() + ".tmp");
78188
- try {
78189
- import_node_fs100.default.writeFileSync(temporary, body);
78190
- import_node_fs100.default.renameSync(temporary, file);
78191
- } finally {
78192
- import_node_fs100.default.rmSync(temporary, { force: true });
78193
- }
78194
- seen.set(body, digest3);
78195
- return digest3;
78200
+ const offset = size2;
78201
+ const bytes = Buffer.from(body);
78202
+ const header = Buffer.alloc(4);
78203
+ header.writeUInt32LE(bytes.length);
78204
+ chunks.push(header, bytes);
78205
+ size2 += header.length + bytes.length;
78206
+ seen.set(body, offset);
78207
+ return offset;
78196
78208
  };
78197
78209
  const reference = (bodies) => Object.fromEntries(
78198
- Object.entries(bodies).map(([name3, body]) => [name3, digestFor(body)])
78210
+ Object.entries(bodies).map(([name3, body]) => [name3, offsetFor(body)])
78211
+ );
78212
+ const stored = rewritten.units.map(
78213
+ ({ files: files2, nativeFiles, resources, nativeTargets: nativeTargets2, ...metadata }) => {
78214
+ options2.signal?.throwIfAborted();
78215
+ const value = {
78216
+ ...metadata,
78217
+ nativeTargets: nativeTargets2?.map(
78218
+ (target) => offsetFor(JSON.stringify(target))
78219
+ ),
78220
+ files: reference(files2),
78221
+ ...nativeFiles === void 0 ? {} : { nativeFiles: reference(nativeFiles) },
78222
+ ...resources === void 0 ? {} : { resources: reference(resources) }
78223
+ };
78224
+ return offsetFor(JSON.stringify(value));
78225
+ }
78199
78226
  );
78200
- const stored = rewritten.units.map((unit2) => {
78201
- options2.signal?.throwIfAborted();
78202
- const value = {
78203
- ...unit2,
78204
- nativeTargets: unit2.nativeTargets?.map(
78205
- (target) => digestFor(JSON.stringify(target))
78206
- ),
78207
- files: reference(unit2.files),
78208
- ...unit2.nativeFiles === void 0 ? {} : { nativeFiles: reference(unit2.nativeFiles) },
78209
- ...unit2.resources === void 0 ? {} : { resources: reference(unit2.resources) }
78210
- };
78211
- return digestFor(JSON.stringify(value));
78212
- });
78227
+ const contents2 = (0, import_node_zlib7.zstdCompressSync)(Buffer.concat(chunks, size2));
78228
+ const archive = (0, import_node_crypto60.createHash)("sha256").update(contents2).digest("hex");
78229
+ const temporary = import_node_path103.default.join(blobDir, "." + (0, import_node_crypto60.randomUUID)() + ".tmp");
78230
+ try {
78231
+ import_node_fs100.default.writeFileSync(temporary, contents2);
78232
+ import_node_fs100.default.renameSync(temporary, import_node_path103.default.join(blobDir, `${archive}.zst`));
78233
+ } finally {
78234
+ import_node_fs100.default.rmSync(temporary, { force: true });
78235
+ }
78213
78236
  import_node_fs100.default.writeFileSync(
78214
78237
  tmp,
78215
78238
  JSON.stringify({
78216
78239
  format: FORMAT,
78217
78240
  key: options2.key,
78218
78241
  units: stored,
78242
+ archive,
78219
78243
  dependencies: rewritten.dependencies,
78220
78244
  frameworks: rewritten.frameworks
78221
78245
  })
@@ -78229,13 +78253,14 @@ function writeExpoDiscovery(options2) {
78229
78253
  return error instanceof Error ? error.message : String(error);
78230
78254
  }
78231
78255
  }
78232
- var import_node_crypto60, import_node_fs100, import_node_path103, FORMAT, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings2, stringRecord, isDigest, digestRecord, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
78256
+ var import_node_crypto60, import_node_fs100, import_node_path103, import_node_zlib7, FORMAT, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings2, stringRecord, isDigest, digestRecord, isBodyOffset, isBodyOffsets, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
78233
78257
  var init_expo_discovery_cache = __esm({
78234
78258
  "src/expo-discovery-cache.ts"() {
78235
78259
  "use strict";
78236
78260
  import_node_crypto60 = require("node:crypto");
78237
78261
  import_node_fs100 = __toESM(require("node:fs"), 1);
78238
78262
  import_node_path103 = __toESM(require("node:path"), 1);
78263
+ import_node_zlib7 = require("node:zlib");
78239
78264
  init_expo_eager_seam_contract();
78240
78265
  init_answeredNativePackages();
78241
78266
  init_expo_native_compiler_digest();
@@ -78246,13 +78271,15 @@ var init_expo_discovery_cache = __esm({
78246
78271
  init_swift_native_pin();
78247
78272
  init_swift_toolchain();
78248
78273
  init_swiftContract();
78249
- FORMAT = "expo-discovery-v5";
78274
+ FORMAT = "expo-discovery-v6";
78250
78275
  EXPIRY_MS = 7 * 24 * 36e5;
78251
78276
  ORPHAN_TEMPORARY_MS = 24 * 36e5;
78252
78277
  strings2 = (value) => Array.isArray(value) && value.every((item) => typeof item === "string");
78253
78278
  stringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
78254
78279
  isDigest = (value) => /^[0-9a-f]{64}$/.test(value);
78255
78280
  digestRecord = (value) => stringRecord(value) && Object.values(value).every(isDigest);
78281
+ isBodyOffset = (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
78282
+ isBodyOffsets = (value) => isRecord(value) && Object.values(value).every(isBodyOffset);
78256
78283
  sourceLocationLine = /^#sourceLocation\(file: "(.*)", line: 1\)$/;
78257
78284
  fileHashes = /* @__PURE__ */ new Map();
78258
78285
  fileHashesLoaded = false;
@@ -93110,7 +93137,7 @@ function dataChunk(bytes) {
93110
93137
  chunk.writeUInt32BE(bytes.length);
93111
93138
  chunk.write("IDAT", 4, "ascii");
93112
93139
  chunk.set(bytes, 8);
93113
- chunk.writeUInt32BE((0, import_node_zlib7.crc32)(chunk.subarray(4, -4)), chunk.length - 4);
93140
+ chunk.writeUInt32BE((0, import_node_zlib8.crc32)(chunk.subarray(4, -4)), chunk.length - 4);
93114
93141
  return chunk;
93115
93142
  }
93116
93143
  function normalizeSwiftCatalogPng(png) {
@@ -93142,12 +93169,12 @@ function normalizeSwiftCatalogPng(png) {
93142
93169
  } else if (name3 === "IEND") {
93143
93170
  if (!scanlineBytes || !compressed.length)
93144
93171
  throw new Error("Swift catalog CgBI has no pixel data");
93145
- const scanlines = (0, import_node_zlib7.inflateRawSync)(Buffer.concat(compressed), {
93172
+ const scanlines = (0, import_node_zlib8.inflateRawSync)(Buffer.concat(compressed), {
93146
93173
  maxOutputLength: scanlineBytes
93147
93174
  });
93148
93175
  if (scanlines.length !== scanlineBytes)
93149
93176
  throw new Error("Swift catalog CgBI has incomplete scanlines");
93150
- chunks.push(dataChunk((0, import_node_zlib7.deflateSync)(scanlines)), chunk);
93177
+ chunks.push(dataChunk((0, import_node_zlib8.deflateSync)(scanlines)), chunk);
93151
93178
  ended = true;
93152
93179
  break;
93153
93180
  } else if (name3 !== "CgBI" && name3 !== "iDOT") {
@@ -93168,11 +93195,11 @@ function normalizeSwiftCatalogPng(png) {
93168
93195
  }
93169
93196
  return import_pngjs.PNG.sync.write(decoded);
93170
93197
  }
93171
- var import_node_zlib7, import_pngjs, pngSignature;
93198
+ var import_node_zlib8, import_pngjs, pngSignature;
93172
93199
  var init_swift_catalog_png = __esm({
93173
93200
  "src/swift-catalog-png.ts"() {
93174
93201
  "use strict";
93175
- import_node_zlib7 = require("node:zlib");
93202
+ import_node_zlib8 = require("node:zlib");
93176
93203
  import_pngjs = __toESM(require_png(), 1);
93177
93204
  pngSignature = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
93178
93205
  }
@@ -113397,7 +113424,7 @@ var init_kotlin_sdk = __esm({
113397
113424
 
113398
113425
  // src/kotlin-skiko-source.ts
113399
113426
  function kotlinSkikoSource(loader) {
113400
- const upstream = (0, import_acorn5.parse)((0, import_node_zlib8.gunzipSync)(loader).toString("utf8"), {
113427
+ const upstream = (0, import_acorn5.parse)((0, import_node_zlib9.gunzipSync)(loader).toString("utf8"), {
113401
113428
  ecmaVersion: "latest",
113402
113429
  sourceType: "module"
113403
113430
  });
@@ -113425,11 +113452,11 @@ function kotlinSkikoSource(loader) {
113425
113452
  ""
113426
113453
  ].join("\n");
113427
113454
  }
113428
- var import_node_zlib8, import_acorn5;
113455
+ var import_node_zlib9, import_acorn5;
113429
113456
  var init_kotlin_skiko_source = __esm({
113430
113457
  "src/kotlin-skiko-source.ts"() {
113431
113458
  "use strict";
113432
- import_node_zlib8 = require("node:zlib");
113459
+ import_node_zlib9 = require("node:zlib");
113433
113460
  import_acorn5 = require("peachsim/vendor/acorn");
113434
113461
  }
113435
113462
  });