peachsim 0.1.722 → 0.1.723

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 (71) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/agent-identity.cjs +1 -1
  4. package/dist-lib/agent-sessions.cjs +1 -1
  5. package/dist-lib/attached-projects.cjs +1 -1
  6. package/dist-lib/auth/shared-session.cjs +1 -1
  7. package/dist-lib/backend-origin.cjs +1 -1
  8. package/dist-lib/beta.cjs +1 -1
  9. package/dist-lib/beta.mjs +1 -1
  10. package/dist-lib/bridge-constants.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.mjs +1 -1
  13. package/dist-lib/bridge-contract.cjs +1 -1
  14. package/dist-lib/bridge-contract.mjs +1 -1
  15. package/dist-lib/capture-contract.cjs +1 -1
  16. package/dist-lib/capture-contract.mjs +1 -1
  17. package/dist-lib/cli-constants.cjs +1 -1
  18. package/dist-lib/cloud-contract.cjs +1 -1
  19. package/dist-lib/cloud-contract.mjs +1 -1
  20. package/dist-lib/cloud-test-args.cjs +1 -1
  21. package/dist-lib/cloud-test-args.mjs +1 -1
  22. package/dist-lib/cloud.cjs +1 -1
  23. package/dist-lib/cloud.mjs +1 -1
  24. package/dist-lib/config.cjs +1 -1
  25. package/dist-lib/detox/index.cjs +1 -1
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/home-paths.cjs +1 -1
  28. package/dist-lib/host/bridge-host.cjs +30 -43
  29. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  30. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  31. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  32. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  33. package/dist-lib/host/websocket-proxy.cjs +1 -1
  34. package/dist-lib/index.cjs +16 -28
  35. package/dist-lib/jump-to-source-babel.cjs +1 -1
  36. package/dist-lib/jump-to-source-native.cjs +1 -1
  37. package/dist-lib/kotlin-host.cjs +1 -1
  38. package/dist-lib/menu.cjs +1 -1
  39. package/dist-lib/menu.mjs +1 -1
  40. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  41. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  42. package/dist-lib/metro-production-bundle.cjs +1 -1
  43. package/dist-lib/metro-production-bundle.mjs +1 -1
  44. package/dist-lib/metro.cjs +16 -28
  45. package/dist-lib/native-app-identity.cjs +1 -1
  46. package/dist-lib/native-app-identity.mjs +1 -1
  47. package/dist-lib/native-firebase-metadata.cjs +1 -1
  48. package/dist-lib/native-firebase-metadata.mjs +1 -1
  49. package/dist-lib/plist.cjs +3 -22
  50. package/dist-lib/plist.mjs +3 -22
  51. package/dist-lib/profiles.cjs +1 -1
  52. package/dist-lib/public-brand.cjs +1 -1
  53. package/dist-lib/react-native-host-modules.cjs +1 -1
  54. package/dist-lib/react-native-host-modules.mjs +1 -1
  55. package/dist-lib/render-mode.cjs +1 -1
  56. package/dist-lib/scripts/dev-server-scanner.cjs +6 -25
  57. package/dist-lib/sdk.cjs +1 -1
  58. package/dist-lib/sdk.mjs +1 -1
  59. package/dist-lib/skills.cjs +77 -90
  60. package/dist-lib/swift-compile.cjs +1 -1
  61. package/dist-lib/swift-compile.mjs +1 -1
  62. package/dist-lib/swift-package.cjs +1 -1
  63. package/dist-lib/swift-package.mjs +1 -1
  64. package/dist-lib/swift-submit.cjs +1 -1
  65. package/dist-lib/swift-submit.mjs +1 -1
  66. package/dist-lib/swift-toolchain.cjs +1 -1
  67. package/dist-lib/swift.cjs +1 -1
  68. package/dist-lib/vite-swift.cjs +1 -1
  69. package/dist-lib/vite.cjs +1 -1
  70. package/package.json +3 -2
  71. package/src/plist.ts +2 -21
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.722 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.723 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -19394,43 +19394,20 @@ var init_native_dev_bundle_url = __esm({
19394
19394
  }
19395
19395
  });
19396
19396
 
19397
- // src/is-record.ts
19398
- function isRecord(value) {
19399
- return typeof value === "object" && value !== null && !Array.isArray(value);
19400
- }
19401
- var init_is_record = __esm({
19402
- "src/is-record.ts"() {
19403
- "use strict";
19404
- }
19405
- });
19406
-
19407
19397
  // src/plist.ts
19408
- function resolvePlistParser(value) {
19409
- if (!isRecord(value)) return null;
19410
- const direct = value.parse;
19411
- if (typeof direct === "function") {
19412
- return (source) => Reflect.apply(direct, value, [source]);
19413
- }
19414
- const nested = value.default;
19415
- if (!isRecord(nested)) return null;
19416
- const nestedParse = nested.parse;
19417
- return typeof nestedParse === "function" ? (source) => Reflect.apply(nestedParse, nested, [source]) : null;
19418
- }
19419
19398
  function parsePlistSource(source) {
19420
- return parsePlist?.(source) ?? null;
19399
+ return import_plist.default.parse(source);
19421
19400
  }
19422
- var import_plist, parsePlist;
19401
+ var import_plist;
19423
19402
  var init_plist = __esm({
19424
19403
  "src/plist.ts"() {
19425
19404
  "use strict";
19426
- import_plist = __toESM(require("@expo/plist"), 1);
19427
- init_is_record();
19428
- parsePlist = resolvePlistParser(import_plist.default);
19405
+ import_plist = __toESM(require("plist"), 1);
19429
19406
  }
19430
19407
  });
19431
19408
 
19432
19409
  // src/settings-bundle.ts
19433
- function isRecord2(value) {
19410
+ function isRecord(value) {
19434
19411
  return typeof value === "object" && value !== null && !Array.isArray(value);
19435
19412
  }
19436
19413
  function optionalString(value) {
@@ -19559,7 +19536,7 @@ async function parsePlistRecord(path30) {
19559
19536
  if (!metadata.isFile() || metadata.size > MAX_PLIST_BYTES) return null;
19560
19537
  const source = await (0, import_promises.readFile)(path30, "utf8");
19561
19538
  const parsed = parsePlistSource(source);
19562
- return isRecord2(parsed) ? parsed : null;
19539
+ return isRecord(parsed) ? parsed : null;
19563
19540
  } catch {
19564
19541
  return null;
19565
19542
  }
@@ -19595,7 +19572,7 @@ function normalizeMultiValue(raw2, key, title) {
19595
19572
  };
19596
19573
  }
19597
19574
  async function normalizeSpecifier(raw2, context) {
19598
- if (!isRecord2(raw2)) return null;
19575
+ if (!isRecord(raw2)) return null;
19599
19576
  if (context.budget.specifiers >= MAX_SPECIFIERS) return null;
19600
19577
  const type = requiredString(raw2.Type);
19601
19578
  if (!type) return null;
@@ -21185,13 +21162,23 @@ var init_internal_child = __esm({
21185
21162
  }
21186
21163
  });
21187
21164
 
21165
+ // src/is-record.ts
21166
+ function isRecord2(value) {
21167
+ return typeof value === "object" && value !== null && !Array.isArray(value);
21168
+ }
21169
+ var init_is_record = __esm({
21170
+ "src/is-record.ts"() {
21171
+ "use strict";
21172
+ }
21173
+ });
21174
+
21188
21175
  // src/swift-distribution-contract.ts
21189
21176
  function swiftDistributionHost(platform, arch) {
21190
21177
  const host2 = `${platform}-${arch}`;
21191
21178
  return SWIFT_DISTRIBUTION_HOSTS.find((candidate) => candidate === host2) ?? null;
21192
21179
  }
21193
21180
  function parseSwiftDistributionManifest(value) {
21194
- if (!isRecord(value) || typeof value.id !== "string" || typeof value.release !== "string" || typeof value.wasmSdkId !== "string" || typeof value.wasmSdkUrl !== "string" || typeof value.wasmSdkChecksum !== "string" || !isStrings(value.modules) || !isStrings(value.objects) || !isStrings(value.link) || !isRecord(value.files) || !Object.values(value.files).every((sha) => typeof sha === "string") || typeof value.host !== "string" || !isStrings(value.plugins)) {
21181
+ if (!isRecord2(value) || typeof value.id !== "string" || typeof value.release !== "string" || typeof value.wasmSdkId !== "string" || typeof value.wasmSdkUrl !== "string" || typeof value.wasmSdkChecksum !== "string" || !isStrings(value.modules) || !isStrings(value.objects) || !isStrings(value.link) || !isRecord2(value.files) || !Object.values(value.files).every((sha) => typeof sha === "string") || typeof value.host !== "string" || !isStrings(value.plugins)) {
21195
21182
  throw new Error(`invalid Swift distribution ${SWIFT_DISTRIBUTION_MANIFEST}`);
21196
21183
  }
21197
21184
  const host2 = SWIFT_DISTRIBUTION_HOSTS.find((candidate) => candidate === value.host);
@@ -21213,13 +21200,13 @@ function parseSwiftDistributionManifest(value) {
21213
21200
  };
21214
21201
  }
21215
21202
  function parseSwiftDistributionLock(value) {
21216
- if (!isRecord(value) || typeof value.id !== "string" || !/^[a-f0-9]{16}$/.test(value.id) || typeof value.release !== "string" || typeof value.wasmSdkId !== "string" || typeof value.wasmSdkUrl !== "string" || typeof value.wasmSdkChecksum !== "string" || typeof value.source !== "string" || !isRecord(value.hosts)) {
21203
+ if (!isRecord2(value) || typeof value.id !== "string" || !/^[a-f0-9]{16}$/.test(value.id) || typeof value.release !== "string" || typeof value.wasmSdkId !== "string" || typeof value.wasmSdkUrl !== "string" || typeof value.wasmSdkChecksum !== "string" || typeof value.source !== "string" || !isRecord2(value.hosts)) {
21217
21204
  throw new Error("invalid Swift distribution lock");
21218
21205
  }
21219
21206
  const hosts = value.hosts;
21220
21207
  const entry = (host2) => {
21221
21208
  const item = hosts[host2];
21222
- if (!isRecord(item) || typeof item.sha256 !== "string" || !/^[a-f0-9]{64}$/.test(item.sha256) || typeof item.size !== "number") {
21209
+ if (!isRecord2(item) || typeof item.sha256 !== "string" || !/^[a-f0-9]{64}$/.test(item.sha256) || typeof item.size !== "number") {
21223
21210
  throw new Error(`invalid Swift distribution lock entry for ${host2}`);
21224
21211
  }
21225
21212
  return { sha256: item.sha256, size: item.size };
@@ -31062,7 +31049,7 @@ function parseCloudSession(encoded) {
31062
31049
  } catch {
31063
31050
  throw new Error(`${PEACH_CLOUD_SESSION_ENV} is invalid`);
31064
31051
  }
31065
- if (!isRecord(parsed) || parsed.version !== CLOUD_SESSION_VERSION) {
31052
+ if (!isRecord2(parsed) || parsed.version !== CLOUD_SESSION_VERSION) {
31066
31053
  throw new Error(`${PEACH_CLOUD_SESSION_ENV} is invalid`);
31067
31054
  }
31068
31055
  const apiOrigin = parsed.apiOrigin;
@@ -31071,7 +31058,7 @@ function parseCloudSession(encoded) {
31071
31058
  }
31072
31059
  const platform = parsed.platform === "ios" || parsed.platform === "android" ? parsed.platform : void 0;
31073
31060
  const device = typeof parsed.device === "string" ? parsed.device : void 0;
31074
- const artifact = isRecord(parsed.artifact) && typeof parsed.artifact.sha256 === "string" ? {
31061
+ const artifact = isRecord2(parsed.artifact) && typeof parsed.artifact.sha256 === "string" ? {
31075
31062
  sha256: parsed.artifact.sha256,
31076
31063
  bytes: typeof parsed.artifact.bytes === "number" ? parsed.artifact.bytes : void 0
31077
31064
  } : void 0;
@@ -31227,8 +31214,8 @@ function failureSentence(text) {
31227
31214
  } catch {
31228
31215
  return null;
31229
31216
  }
31230
- if (!isRecord(parsed)) return null;
31231
- if (isRecord(parsed.error) && typeof parsed.error.message === "string") {
31217
+ if (!isRecord2(parsed)) return null;
31218
+ if (isRecord2(parsed.error) && typeof parsed.error.message === "string") {
31232
31219
  const code = typeof parsed.error.code === "string" && parsed.error.code ? ` [${parsed.error.code}]` : "";
31233
31220
  return `${parsed.error.message}${code}`;
31234
31221
  }
@@ -31660,16 +31647,16 @@ async function produceArtifact(bundlePath, maxBytes, command, assetPolicy) {
31660
31647
  };
31661
31648
  }
31662
31649
  function readCreateResponse(value, expectedBytes, expectedSha256) {
31663
- if (!isRecord(value)) throw new Error("remote simulator create returned invalid JSON");
31650
+ if (!isRecord2(value)) throw new Error("remote simulator create returned invalid JSON");
31664
31651
  const artifactId = `sha256:${expectedSha256}`;
31665
- const isExpectedArtifact = (artifact) => isRecord(artifact) && artifact.id === artifactId && typeof artifact.bytes === "number" && Number.isInteger(artifact.bytes) && artifact.bytes === expectedBytes;
31652
+ const isExpectedArtifact = (artifact) => isRecord2(artifact) && artifact.id === artifactId && typeof artifact.bytes === "number" && Number.isInteger(artifact.bytes) && artifact.bytes === expectedBytes;
31666
31653
  const boxId = value.boxId;
31667
31654
  const boxToken = value.token;
31668
31655
  const simulator = value.simulator;
31669
- const simId = isRecord(simulator) ? simulator.simId : null;
31670
- const claim = isRecord(simulator) ? simulator.claim : null;
31671
- const simulatorToken = isRecord(simulator) ? simulator.token : null;
31672
- if (typeof boxId !== "string" || !boxId || value.size !== "nano" || typeof boxToken !== "string" || !boxToken || !isExpectedArtifact(value.artifact) || !isRecord(simulator) || typeof simId !== "string" || !simId || !isExpectedArtifact(simulator.artifact) || !isRecord(claim) || typeof claim.id !== "string" || !claim.id || typeof claim.expiresAt !== "number" || typeof simulatorToken !== "string" || !simulatorToken) {
31656
+ const simId = isRecord2(simulator) ? simulator.simId : null;
31657
+ const claim = isRecord2(simulator) ? simulator.claim : null;
31658
+ const simulatorToken = isRecord2(simulator) ? simulator.token : null;
31659
+ if (typeof boxId !== "string" || !boxId || value.size !== "nano" || typeof boxToken !== "string" || !boxToken || !isExpectedArtifact(value.artifact) || !isRecord2(simulator) || typeof simId !== "string" || !simId || !isExpectedArtifact(simulator.artifact) || !isRecord2(claim) || typeof claim.id !== "string" || !claim.id || typeof claim.expiresAt !== "number" || typeof simulatorToken !== "string" || !simulatorToken) {
31673
31660
  throw new Error("remote simulator create returned an invalid receipt");
31674
31661
  }
31675
31662
  return {
@@ -31875,7 +31862,7 @@ var init_cloud_client = __esm({
31875
31862
  } catch {
31876
31863
  throw new Error("remote simulator command returned unreadable JSON");
31877
31864
  }
31878
- if (!isRecord(parsed) || parsed.id !== body.id) {
31865
+ if (!isRecord2(parsed) || parsed.id !== body.id) {
31879
31866
  throw new Error("remote simulator command returned an invalid command receipt");
31880
31867
  }
31881
31868
  if (typeof parsed.error === "string" && parsed.error) throw new Error(parsed.error);
@@ -31946,7 +31933,7 @@ var init_cloud_client = __esm({
31946
31933
  } catch {
31947
31934
  throw new Error("box command returned unreadable JSON");
31948
31935
  }
31949
- if (!isRecord(parsed) || parsed.id !== id) {
31936
+ if (!isRecord2(parsed) || parsed.id !== id) {
31950
31937
  throw new Error("box command returned an invalid command receipt");
31951
31938
  }
31952
31939
  if (typeof parsed.error === "string" && parsed.error) throw new Error(parsed.error);
@@ -31993,8 +31980,8 @@ async function sendToBox(options) {
31993
31980
  simId: options.simId,
31994
31981
  code: '(typeof window.__sootsimCaptureBundle === "function") ? window.__sootsimCaptureBundle() : null'
31995
31982
  });
31996
- const bundleUrl = isRecord(captured) ? captured.bundleUrl : null;
31997
- if (!isRecord(captured) || typeof bundleUrl !== "string" || !bundleUrl) {
31983
+ const bundleUrl = isRecord2(captured) ? captured.bundleUrl : null;
31984
+ if (!isRecord2(captured) || typeof bundleUrl !== "string" || !bundleUrl) {
31998
31985
  throw new Error(
31999
31986
  "send to box needs a simulator running an app: this one has no bundle loaded"
32000
31987
  );
@@ -32010,7 +31997,7 @@ async function sendToBox(options) {
32010
31997
  const storage = dumped;
32011
31998
  const created = await createCloudBox({
32012
31999
  bundlePath: toRNXProductionBundleUrl(bundleUrl),
32013
- device: options.device ?? cloudDevice(isRecord(captured.deviceSpec) ? captured.deviceSpec.model : null),
32000
+ device: options.device ?? cloudDevice(isRecord2(captured.deviceSpec) ? captured.deviceSpec.model : null),
32014
32001
  authorization: options.authorization,
32015
32002
  accountId: options.accountId,
32016
32003
  apiOrigin: options.apiOrigin,
@@ -35473,8 +35460,8 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
35473
35460
  let config = {};
35474
35461
  const appJsonPath = import_node_path27.default.join(projectRoot, "app.json");
35475
35462
  const appJson = import_node_fs27.default.existsSync(appJsonPath) ? JSON.parse(import_node_fs27.default.readFileSync(appJsonPath, "utf8")) : null;
35476
- const staticExpo = isRecord(appJson) && (isRecord(appJson.expo) || [appJson.ios, appJson.android].some(
35477
- (value) => isRecord(value) && typeof value.googleServicesFile === "string"
35463
+ const staticExpo = isRecord2(appJson) && (isRecord2(appJson.expo) || [appJson.ios, appJson.android].some(
35464
+ (value) => isRecord2(value) && typeof value.googleServicesFile === "string"
35478
35465
  ));
35479
35466
  const dynamicExpo = [
35480
35467
  "app.config.js",
@@ -35485,16 +35472,16 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
35485
35472
  if (staticExpo || dynamicExpo) {
35486
35473
  const require5 = (0, import_node_module2.createRequire)(import_node_path27.default.join(projectRoot, "package.json"));
35487
35474
  const configModule = require5("@expo/config");
35488
- if (!isRecord(configModule) || typeof configModule.getConfig !== "function")
35475
+ if (!isRecord2(configModule) || typeof configModule.getConfig !== "function")
35489
35476
  throw new Error("Expo native configuration is unavailable.");
35490
35477
  const resolved = Reflect.apply(configModule.getConfig, configModule, [
35491
35478
  projectRoot,
35492
35479
  { skipSDKVersionRequirement: true }
35493
35480
  ]);
35494
- config = isRecord(resolved) && isRecord(resolved.exp) ? resolved.exp : {};
35481
+ config = isRecord2(resolved) && isRecord2(resolved.exp) ? resolved.exp : {};
35495
35482
  }
35496
35483
  const ios = config.ios;
35497
- if (platforms.includes("ios") && (!isRecord(ios) || typeof ios.googleServicesFile !== "string")) {
35484
+ if (platforms.includes("ios") && (!isRecord2(ios) || typeof ios.googleServicesFile !== "string")) {
35498
35485
  const iosRoot = import_node_path27.default.join(projectRoot, "ios");
35499
35486
  if (import_node_fs27.default.existsSync(iosRoot)) {
35500
35487
  const projects2 = import_node_fs27.default.readdirSync(iosRoot, { withFileTypes: true }).filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj"));
@@ -35503,32 +35490,32 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
35503
35490
  if (projects2.length === 1) {
35504
35491
  const require5 = (0, import_node_module2.createRequire)(import_node_path27.default.join(projectRoot, "package.json"));
35505
35492
  const xcode = require5("xcode");
35506
- if (!isRecord(xcode) || typeof xcode.project !== "function")
35493
+ if (!isRecord2(xcode) || typeof xcode.project !== "function")
35507
35494
  throw new Error("native Xcode project parser is unavailable");
35508
35495
  const project = Reflect.apply(xcode.project, xcode, [
35509
35496
  import_node_path27.default.join(iosRoot, projects2[0].name, "project.pbxproj")
35510
35497
  ]);
35511
- if (!isRecord(project) || typeof project.parseSync !== "function")
35498
+ if (!isRecord2(project) || typeof project.parseSync !== "function")
35512
35499
  throw new Error("native Xcode project is malformed");
35513
35500
  Reflect.apply(project.parseSync, project, []);
35514
35501
  const hash = project.hash;
35515
- const native = isRecord(hash) ? hash.project : null;
35516
- const objects = isRecord(native) ? native.objects : null;
35517
- if (!isRecord(objects)) throw new Error("native Xcode objects are malformed");
35502
+ const native = isRecord2(hash) ? hash.project : null;
35503
+ const objects = isRecord2(native) ? native.objects : null;
35504
+ if (!isRecord2(objects)) throw new Error("native Xcode objects are malformed");
35518
35505
  const unquote = (value) => typeof value === "string" ? value.replace(/^"|"$/g, "") : "";
35519
- const targets = isRecord(objects.PBXNativeTarget) ? Object.values(objects.PBXNativeTarget).filter(
35520
- (target2) => isRecord(target2) && unquote(target2.productType) === "com.apple.product-type.application"
35506
+ const targets = isRecord2(objects.PBXNativeTarget) ? Object.values(objects.PBXNativeTarget).filter(
35507
+ (target2) => isRecord2(target2) && unquote(target2.productType) === "com.apple.product-type.application"
35521
35508
  ) : [];
35522
35509
  if (targets.length > 1)
35523
35510
  throw new Error("native Firebase configuration requires a selected app target");
35524
35511
  const target = targets[0];
35525
- if (isRecord(target) && Array.isArray(target.buildPhases)) {
35512
+ if (isRecord2(target) && Array.isArray(target.buildPhases)) {
35526
35513
  const buildPhases = target.buildPhases;
35527
35514
  const filePaths = /* @__PURE__ */ new Map();
35528
- const groups = isRecord(objects.PBXGroup) ? objects.PBXGroup : {};
35529
- const references = isRecord(objects.PBXFileReference) ? objects.PBXFileReference : {};
35530
- const nativeProjects = isRecord(objects.PBXProject) ? Object.values(objects.PBXProject) : [];
35531
- const roots = nativeProjects.filter(isRecord).map((value) => value.mainGroup);
35515
+ const groups = isRecord2(objects.PBXGroup) ? objects.PBXGroup : {};
35516
+ const references = isRecord2(objects.PBXFileReference) ? objects.PBXFileReference : {};
35517
+ const nativeProjects = isRecord2(objects.PBXProject) ? Object.values(objects.PBXProject) : [];
35518
+ const roots = nativeProjects.filter(isRecord2).map((value) => value.mainGroup);
35532
35519
  const pending = roots.filter((id) => typeof id === "string").map((id) => ({ id, base: iosRoot }));
35533
35520
  const visited = /* @__PURE__ */ new Map();
35534
35521
  while (pending.length) {
@@ -35542,7 +35529,7 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
35542
35529
  }
35543
35530
  visited.set(item.id, item.base);
35544
35531
  const group = groups[item.id];
35545
- if (!isRecord(group) || !Array.isArray(group.children)) continue;
35532
+ if (!isRecord2(group) || !Array.isArray(group.children)) continue;
35546
35533
  const sourceTree = unquote(group.sourceTree);
35547
35534
  if (sourceTree && sourceTree !== "<group>" && sourceTree !== "SOURCE_ROOT")
35548
35535
  continue;
@@ -35551,13 +35538,13 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
35551
35538
  unquote(group.path)
35552
35539
  );
35553
35540
  for (const child of group.children) {
35554
- if (!isRecord(child) || typeof child.value !== "string") continue;
35555
- if (isRecord(groups[child.value])) {
35541
+ if (!isRecord2(child) || typeof child.value !== "string") continue;
35542
+ if (isRecord2(groups[child.value])) {
35556
35543
  pending.push({ id: child.value, base: directory });
35557
35544
  continue;
35558
35545
  }
35559
35546
  const file = references[child.value];
35560
- if (!isRecord(file)) continue;
35547
+ if (!isRecord2(file)) continue;
35561
35548
  const tree = unquote(file.sourceTree);
35562
35549
  if (tree !== "<group>" && tree !== "SOURCE_ROOT") continue;
35563
35550
  const filePath = import_node_path27.default.resolve(
@@ -35569,20 +35556,20 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
35569
35556
  filePaths.set(child.value, values);
35570
35557
  }
35571
35558
  }
35572
- const buildFiles = isRecord(objects.PBXBuildFile) ? objects.PBXBuildFile : {};
35559
+ const buildFiles = isRecord2(objects.PBXBuildFile) ? objects.PBXBuildFile : {};
35573
35560
  const filesInPhase = (section, name2) => {
35574
- if (!isRecord(section)) return [];
35561
+ if (!isRecord2(section)) return [];
35575
35562
  const paths = [];
35576
35563
  for (const phase of buildPhases) {
35577
- if (!isRecord(phase) || typeof phase.value !== "string") continue;
35564
+ if (!isRecord2(phase) || typeof phase.value !== "string") continue;
35578
35565
  const value = section[phase.value];
35579
- if (!isRecord(value) || !Array.isArray(value.files)) continue;
35566
+ if (!isRecord2(value) || !Array.isArray(value.files)) continue;
35580
35567
  for (const entry of value.files) {
35581
- if (!isRecord(entry) || typeof entry.value !== "string") continue;
35568
+ if (!isRecord2(entry) || typeof entry.value !== "string") continue;
35582
35569
  const file = buildFiles[entry.value];
35583
- if (!isRecord(file) || typeof file.fileRef !== "string") continue;
35570
+ if (!isRecord2(file) || typeof file.fileRef !== "string") continue;
35584
35571
  const reference = references[file.fileRef];
35585
- if (!isRecord(reference) || !name2.test(import_node_path27.default.basename(unquote(reference.path))))
35572
+ if (!isRecord2(reference) || !name2.test(import_node_path27.default.basename(unquote(reference.path))))
35586
35573
  continue;
35587
35574
  const candidates = filePaths.get(file.fileRef);
35588
35575
  if (!candidates || candidates.size !== 1)
@@ -35640,14 +35627,14 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
35640
35627
  }
35641
35628
  for (const platform of platforms) {
35642
35629
  const native = config[platform];
35643
- if (!isRecord(native) || typeof native.googleServicesFile !== "string") continue;
35630
+ if (!isRecord2(native) || typeof native.googleServicesFile !== "string") continue;
35644
35631
  try {
35645
35632
  const source = import_node_fs27.default.readFileSync(
35646
35633
  import_node_path27.default.resolve(projectRoot, native.googleServicesFile),
35647
35634
  "utf8"
35648
35635
  );
35649
35636
  const parsed = platform === "ios" ? parsePlistSource(source) : JSON.parse(source);
35650
- if (!isRecord(parsed)) throw new Error("Invalid Google services file.");
35637
+ if (!isRecord2(parsed)) throw new Error("Invalid Google services file.");
35651
35638
  if (platform === "ios") {
35652
35639
  result[platform] = {
35653
35640
  apiKey: parsed.API_KEY,
@@ -35662,31 +35649,31 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
35662
35649
  deepLinkUrlScheme: parsed.REVERSED_CLIENT_ID
35663
35650
  };
35664
35651
  } else {
35665
- const project = isRecord(parsed.project_info) ? parsed.project_info : {};
35652
+ const project = isRecord2(parsed.project_info) ? parsed.project_info : {};
35666
35653
  const clients = Array.isArray(parsed.client) ? parsed.client : [];
35667
35654
  const client = clients.find((value) => {
35668
- if (!isRecord(value) || !isRecord(value.client_info)) return false;
35655
+ if (!isRecord2(value) || !isRecord2(value.client_info)) return false;
35669
35656
  const android = value.client_info.android_client_info;
35670
- return isRecord(android) && android.package_name === native.package;
35657
+ return isRecord2(android) && android.package_name === native.package;
35671
35658
  });
35672
- if (!isRecord(client) || !isRecord(client.client_info))
35659
+ if (!isRecord2(client) || !isRecord2(client.client_info))
35673
35660
  throw new Error("No Google services client matches the Android package.");
35674
35661
  const apiKeys = Array.isArray(client.api_key) ? client.api_key : [];
35675
35662
  const apiKey = apiKeys.find(
35676
- (value) => isRecord(value) && typeof value.current_key === "string"
35663
+ (value) => isRecord2(value) && typeof value.current_key === "string"
35677
35664
  );
35678
35665
  const oauthClients = Array.isArray(client.oauth_client) ? client.oauth_client : [];
35679
35666
  const oauth = oauthClients.find(
35680
- (value) => isRecord(value) && value.client_type === 3
35667
+ (value) => isRecord2(value) && value.client_type === 3
35681
35668
  );
35682
35669
  result[platform] = {
35683
- apiKey: isRecord(apiKey) ? apiKey.current_key : void 0,
35670
+ apiKey: isRecord2(apiKey) ? apiKey.current_key : void 0,
35684
35671
  appId: client.client_info.mobilesdk_app_id,
35685
35672
  projectId: project.project_id,
35686
35673
  databaseURL: project.firebase_url,
35687
35674
  storageBucket: project.storage_bucket,
35688
35675
  messagingSenderId: project.project_number,
35689
- clientId: isRecord(oauth) ? oauth.client_id : void 0
35676
+ clientId: isRecord2(oauth) ? oauth.client_id : void 0
35690
35677
  };
35691
35678
  }
35692
35679
  } catch (error) {
@@ -38620,10 +38607,10 @@ var init_linux_browser_libs_lock = __esm({
38620
38607
 
38621
38608
  // cli/drivers/linux-browser-libs.ts
38622
38609
  function isLockPackage(value) {
38623
- return isRecord(value) && typeof value.name === "string" && typeof value.version === "string" && typeof value.url === "string" && typeof value.sha256 === "string" && /^[a-f0-9]{64}$/.test(value.sha256) && typeof value.size === "number";
38610
+ return isRecord2(value) && typeof value.name === "string" && typeof value.version === "string" && typeof value.url === "string" && typeof value.sha256 === "string" && /^[a-f0-9]{64}$/.test(value.sha256) && typeof value.size === "number";
38624
38611
  }
38625
38612
  function parseLinuxBrowserLibsLock(value) {
38626
- if (!isRecord(value) || typeof value.id !== "string" || !/^[a-f0-9]{16}$/.test(value.id) || typeof value.suite !== "string" || !isRecord(value.arches)) {
38613
+ if (!isRecord2(value) || typeof value.id !== "string" || !/^[a-f0-9]{16}$/.test(value.id) || typeof value.suite !== "string" || !isRecord2(value.arches)) {
38627
38614
  throw new Error("invalid linux browser library lock");
38628
38615
  }
38629
38616
  const { x64, arm64 } = value.arches;
@@ -38730,7 +38717,7 @@ function resolvePlaywright() {
38730
38717
  const modulePath = requireFromRoot.resolve(spec);
38731
38718
  const packageJsonPath = requireFromRoot.resolve(`${spec}/package.json`);
38732
38719
  const parsed = JSON.parse((0, import_node_fs32.readFileSync)(packageJsonPath, "utf8"));
38733
- if (!isRecord(parsed) || typeof parsed.version !== "string") continue;
38720
+ if (!isRecord2(parsed) || typeof parsed.version !== "string") continue;
38734
38721
  const corePackagePath = (0, import_node_module6.createRequire)(modulePath).resolve(
38735
38722
  "playwright-core/package.json"
38736
38723
  );
@@ -38800,7 +38787,7 @@ function probeBrowser(resolved, env) {
38800
38787
  }
38801
38788
  try {
38802
38789
  const parsed = JSON.parse(probe3.stdout);
38803
- if (!isRecord(parsed) || typeof parsed.executablePath !== "string" || typeof parsed.exists !== "boolean") {
38790
+ if (!isRecord2(parsed) || typeof parsed.executablePath !== "string" || typeof parsed.exists !== "boolean") {
38804
38791
  throw new Error("probe returned an invalid result");
38805
38792
  }
38806
38793
  return {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.722 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.723 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.722 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.723 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import { execFile as execFile2 } from "node:child_process";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.722 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.723 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.722 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.723 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function isSwiftManifestFile(file) {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.722 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.723 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.722 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.723 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-submit.ts
4
4
  var SWIFT_COMPILE_PATH = "/api/swift-compile";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.722 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.723 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.722 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.723 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.722 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.723 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.722 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.723 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.722",
3
+ "version": "0.1.723",
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",
@@ -320,13 +320,13 @@
320
320
  "pack:smoke": "bun scripts/pack-smoke.ts"
321
321
  },
322
322
  "dependencies": {
323
- "@expo/plist": "^0.5.4",
324
323
  "@peculiar/x509": "1.14.3",
325
324
  "@sucrase/jest-plugin": "3.0.0",
326
325
  "jiti": "2.7.0",
327
326
  "magic-string": "^0.30.21",
328
327
  "oxc-parser": "^0.112.0",
329
328
  "playwright-core": "1.61.0",
329
+ "plist": "3.1.1",
330
330
  "sucrase": "3.35.1",
331
331
  "svgpath": "2.6.0",
332
332
  "terser": "^5.49.0",
@@ -341,6 +341,7 @@
341
341
  }
342
342
  },
343
343
  "devDependencies": {
344
+ "@types/plist": "3.0.5",
344
345
  "@contrast/runtime-delivery": "workspace:*",
345
346
  "@peach/box": "workspace:*",
346
347
  "@peach/globals": "workspace:*",
package/src/plist.ts CHANGED
@@ -1,24 +1,5 @@
1
- import plistModule from '@expo/plist'
2
- import { isRecord } from './is-record'
3
-
4
- function resolvePlistParser(value: unknown): ((source: string) => unknown) | null {
5
- if (!isRecord(value)) return null
6
- const direct = value.parse
7
- if (typeof direct === 'function') {
8
- return (source) => Reflect.apply(direct, value, [source])
9
- }
10
- const nested = value.default
11
- if (!isRecord(nested)) return null
12
- const nestedParse = nested.parse
13
- return typeof nestedParse === 'function'
14
- ? (source) => Reflect.apply(nestedParse, nested, [source])
15
- : null
16
- }
17
-
18
- // bun consumes @expo/plist's default export directly, while the compiled commonjs
19
- // scanner receives the package namespace with that export nested under default.
20
- const parsePlist = resolvePlistParser(plistModule)
1
+ import plist from 'plist'
21
2
 
22
3
  export function parsePlistSource(source: string): unknown {
23
- return parsePlist?.(source) ?? null
4
+ return plist.parse(source)
24
5
  }