peachsim 0.1.782 → 0.1.784

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 (74) hide show
  1. package/cli/commands/control.ts +3 -1
  2. package/cli/commands/detox.ts +6 -0
  3. package/cli/main.ts +1 -0
  4. package/dist-lib/agent-daemon-client.cjs +1 -1
  5. package/dist-lib/agent-events.cjs +1 -1
  6. package/dist-lib/agent-identity.cjs +1 -1
  7. package/dist-lib/agent-sessions.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/capture-contract.cjs +1 -1
  19. package/dist-lib/capture-contract.mjs +1 -1
  20. package/dist-lib/cli-constants.cjs +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/detox/index.cjs +2 -2
  29. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  30. package/dist-lib/home-paths.cjs +1 -1
  31. package/dist-lib/host/bridge-host.cjs +109 -32
  32. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  34. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  35. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  36. package/dist-lib/host/websocket-proxy.cjs +1 -1
  37. package/dist-lib/index.cjs +1 -1
  38. package/dist-lib/jump-to-source-babel.cjs +1 -1
  39. package/dist-lib/jump-to-source-native.cjs +1 -1
  40. package/dist-lib/kotlin-host.cjs +1 -1
  41. package/dist-lib/menu.cjs +1 -1
  42. package/dist-lib/menu.mjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  44. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  45. package/dist-lib/metro-production-bundle.cjs +1 -1
  46. package/dist-lib/metro-production-bundle.mjs +1 -1
  47. package/dist-lib/metro.cjs +1 -1
  48. package/dist-lib/native-app-identity.cjs +1 -1
  49. package/dist-lib/native-app-identity.mjs +1 -1
  50. package/dist-lib/native-firebase-metadata.cjs +1 -1
  51. package/dist-lib/native-firebase-metadata.mjs +1 -1
  52. package/dist-lib/plist.cjs +1 -1
  53. package/dist-lib/plist.mjs +1 -1
  54. package/dist-lib/profiles.cjs +1 -1
  55. package/dist-lib/public-brand.cjs +1 -1
  56. package/dist-lib/react-native-host-modules.cjs +1 -1
  57. package/dist-lib/react-native-host-modules.mjs +1 -1
  58. package/dist-lib/render-mode.cjs +1 -1
  59. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  60. package/dist-lib/sdk.cjs +1 -1
  61. package/dist-lib/sdk.mjs +1 -1
  62. package/dist-lib/skills.cjs +112 -35
  63. package/dist-lib/swift-compile.cjs +1 -1
  64. package/dist-lib/swift-compile.mjs +1 -1
  65. package/dist-lib/swift-package.cjs +1 -1
  66. package/dist-lib/swift-package.mjs +1 -1
  67. package/dist-lib/swift-submit.cjs +1 -1
  68. package/dist-lib/swift-submit.mjs +1 -1
  69. package/dist-lib/swift-toolchain.cjs +1 -1
  70. package/dist-lib/swift.cjs +1 -1
  71. package/dist-lib/vite-swift.cjs +109 -32
  72. package/dist-lib/vite.cjs +1 -1
  73. package/package.json +1 -1
  74. package/src/swift-standin-emit.ts +149 -39
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/native-app-identity.ts
4
4
  var NATIVE_APP_IDENTITY_PREFIX = "globalThis.__sootsimNativeAppIdentity=";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/native-firebase-metadata.ts
4
4
  var PREFIX = "globalThis.__peachNativeFirebaseConfig=";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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
- /*! rnx v0.1.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/react-native-host-modules.ts
4
4
  var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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/sdk.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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;
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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;
@@ -58,7 +58,7 @@ function processIdentity(pid) {
58
58
  }
59
59
  function softwareChromeAllowed(runtime = currentRuntime()) {
60
60
  if (runtime.platform !== "linux") return false;
61
- return runtime.env.GITHUB_ACTIONS === "true" && runtime.env.RUNNER_OS === "Linux" || runtime.env.CONTRAST_CF_FACTORY_CONTAINER === "1" || runtime.env.PEACH_NATIVE_COMPOSITOR === "1";
61
+ return runtime.env.CONTRAST_REMOTE_BUILD === "linux" || runtime.env.GITHUB_ACTIONS === "true" && runtime.env.RUNNER_OS === "Linux" || runtime.env.CONTRAST_CF_FACTORY_CONTAINER === "1" || runtime.env.PEACH_NATIVE_COMPOSITOR === "1";
62
62
  }
63
63
  function isSoftwareRendererArgument(value) {
64
64
  const arg = String(value);
@@ -32392,6 +32392,17 @@ var init_swift_packages = __esm({
32392
32392
  });
32393
32393
 
32394
32394
  // src/swift-standin-emit.ts
32395
+ function splitAccessors(core) {
32396
+ const match = /\{\s*([^}]*)\}\s*$/.exec(core);
32397
+ const words = match ? match[1].trim().split(/\s+/).filter(Boolean) : [];
32398
+ const accessors = words.length > 0 && words.every((word) => ACCESSOR_WORD.test(word));
32399
+ return {
32400
+ decl: accessors ? core.slice(0, match.index).trimEnd() : core,
32401
+ effects: `${words.includes("async") ? " async" : ""}${words.includes("throws") ? " throws" : words.includes("rethrows") ? " rethrows" : ""}`,
32402
+ settable: accessors ? words.includes("set") : /^(?:static |class )?var /.test(core),
32403
+ nonmutating: words.includes("nonmutating")
32404
+ };
32405
+ }
32395
32406
  function emitSwiftStandin(graphs, options) {
32396
32407
  const skipped = [];
32397
32408
  const behavior = options.behavior ?? /* @__PURE__ */ new Map();
@@ -32424,11 +32435,10 @@ function emitSwiftStandin(graphs, options) {
32424
32435
  if (local) return { name: pathOf(local), local: true };
32425
32436
  if (!fallback) return null;
32426
32437
  const parts = fallback.split(".");
32427
- return {
32428
- name: family.has(parts[0]) ? parts.join(".") : parts.slice(1).join(".") || parts[0],
32429
- module: parts[0],
32430
- local: false
32431
- };
32438
+ const module2 = parts[0] === "SwiftUICore" ? "SwiftUI" : parts[0];
32439
+ const unqualified = parts.slice(1).join(".") || parts[0];
32440
+ const name2 = family.has(parts[0]) && parts[0] !== "SwiftUICore" ? parts.join(".") : unqualified;
32441
+ return { name: name2, module: module2, local: false };
32432
32442
  };
32433
32443
  for (const graph of graphs)
32434
32444
  for (const edge of graph.relationships) {
@@ -32483,8 +32493,42 @@ function emitSwiftStandin(graphs, options) {
32483
32493
  case "overrides":
32484
32494
  overrides.add(edge.source);
32485
32495
  break;
32496
+ case "defaultImplementationOf":
32497
+ break;
32486
32498
  }
32487
32499
  }
32500
+ const requirementProtocol = /* @__PURE__ */ new Map();
32501
+ const hasDefault = /* @__PURE__ */ new Set();
32502
+ for (const graph of graphs)
32503
+ for (const edge of graph.relationships) {
32504
+ if ((edge.kind === "requirementOf" || edge.kind === "optionalRequirementOf") && byId.has(edge.target))
32505
+ requirementProtocol.set(edge.source, edge.target);
32506
+ if (edge.kind === "defaultImplementationOf") hasDefault.add(edge.target);
32507
+ }
32508
+ for (const graph of graphs)
32509
+ for (const edge of graph.relationships) {
32510
+ if (edge.kind !== "defaultImplementationOf" || !byId.has(edge.source) || owner.has(edge.source))
32511
+ continue;
32512
+ const protocolId = requirementProtocol.get(edge.target);
32513
+ if (!protocolId) continue;
32514
+ owner.set(edge.source, protocolId);
32515
+ children.set(protocolId, [...children.get(protocolId) ?? [], ...all(edge.source)]);
32516
+ }
32517
+ const typeByPath = /* @__PURE__ */ new Map();
32518
+ for (const symbol of byId.values())
32519
+ if (TYPE_KINDS.has(symbol.kind.identifier))
32520
+ typeByPath.set(pathOf(symbol), symbol.identifier.precise);
32521
+ for (const symbol of byId.values()) {
32522
+ if (owner.has(symbol.identifier.precise) || symbol.pathComponents.length < 2) continue;
32523
+ if (TYPE_KINDS.has(symbol.kind.identifier)) continue;
32524
+ const parent = typeByPath.get(symbol.pathComponents.slice(0, -1).join("."));
32525
+ if (!parent) continue;
32526
+ owner.set(symbol.identifier.precise, parent);
32527
+ children.set(parent, [
32528
+ ...children.get(parent) ?? [],
32529
+ ...all(symbol.identifier.precise)
32530
+ ]);
32531
+ }
32488
32532
  const lines = [];
32489
32533
  const owners = [];
32490
32534
  const omit = options.omit ?? /* @__PURE__ */ new Map();
@@ -32509,7 +32553,7 @@ function emitSwiftStandin(graphs, options) {
32509
32553
  const seen = /* @__PURE__ */ new Set();
32510
32554
  return (children.get(id) ?? []).filter((member) => {
32511
32555
  if (unavailable(member)) return false;
32512
- const key2 = `${member.kind.identifier}|${text(member)}`;
32556
+ const key2 = `${member.kind.identifier}|${requirement.has(member.identifier.precise) ? "req" : "ext"}|${text(member)}`;
32513
32557
  if (seen.has(key2)) return false;
32514
32558
  seen.add(key2);
32515
32559
  return true;
@@ -32538,8 +32582,8 @@ function emitSwiftStandin(graphs, options) {
32538
32582
  const required = context.inClass && flags.has("required");
32539
32583
  const final = context.inClass && flags.has("final") ? "final " : "";
32540
32584
  const mutating = flags.has("mutating") ? "mutating " : flags.has("nonmutating") ? "nonmutating " : "";
32541
- let core = `${context.inClass && flags.has("convenience") ? "convenience " : ""}${modifiers[2]}`;
32542
- const override = context.inClass && !options.plain?.has(path37) && (flags.has("override") || overrides.has(member.identifier.precise) || isObjC(member) && path37.endsWith(".init()")) ? "override " : "";
32585
+ let core = `${flags.has("convenience") ? "convenience " : ""}${modifiers[2]}`;
32586
+ const override = context.inClass && !options.plain?.has(path37) && (flags.has("override") || overrides.has(member.identifier.precise) || options.forcedOverride?.has(path37) || isObjC(member) && path37.endsWith(".init()")) ? "override " : "";
32543
32587
  const head = `${indent}${attrs}${access(member, context.openOwner)} ${required ? "required " : ""}${final}${override}${mutating}`;
32544
32588
  const measured = behavior.get(path37);
32545
32589
  if (measured) used.add(path37);
@@ -32550,10 +32594,10 @@ function emitSwiftStandin(graphs, options) {
32550
32594
  case "swift.type.property":
32551
32595
  case "swift.subscript":
32552
32596
  case "swift.type.subscript": {
32553
- const accessors = ACCESSORS.exec(core);
32554
- const decl = core.replace(ACCESSORS, "").trimEnd();
32555
- const effects = `${accessors?.[1] ?? ""}${accessors?.[2] ?? ""}`;
32556
- const settable = accessors ? Boolean(accessors[3]) : /^(?:static |class )?var /.test(core);
32597
+ const parsed = splitAccessors(core);
32598
+ const decl = parsed.decl;
32599
+ const effects = parsed.effects;
32600
+ const settable = parsed.settable;
32557
32601
  const computed = decl.replace(/^((?:static |class )*)let /, "$1var ");
32558
32602
  if (measured?.stored !== void 0) {
32559
32603
  const ownership = flags.has("weak") ? "weak " : flags.has("unowned") ? "unowned " : "";
@@ -32565,7 +32609,7 @@ function emitSwiftStandin(graphs, options) {
32565
32609
  return;
32566
32610
  }
32567
32611
  emit(
32568
- `${head}${computed} { get${effects} { ${body} }${settable && !effects ? ` set { ${measured?.set ?? trap(path37)} }` : ""} }`
32612
+ `${head}${computed} { get${effects} { ${body} }${settable && !effects ? ` ${parsed.nonmutating ? "nonmutating " : ""}set { ${measured?.set ?? trap(path37)} }` : ""} }`
32569
32613
  );
32570
32614
  return;
32571
32615
  }
@@ -32660,7 +32704,18 @@ function emitSwiftStandin(graphs, options) {
32660
32704
  );
32661
32705
  const have = /* @__PURE__ */ new Set();
32662
32706
  for (let at = id; at; at = superId.get(at))
32663
- for (const member of children.get(at) ?? []) have.add(witnessKey(member));
32707
+ for (const member of children.get(at) ?? []) {
32708
+ have.add(witnessKey(member));
32709
+ have.add(sideLeaf(member));
32710
+ }
32711
+ const covered = /* @__PURE__ */ new Set();
32712
+ const cover = (protocolId) => {
32713
+ if (covered.has(protocolId)) return;
32714
+ covered.add(protocolId);
32715
+ for (const edge of protocolParents.get(protocolId) ?? []) cover(edge);
32716
+ };
32717
+ for (let at = superId.get(id); at; at = superId.get(at))
32718
+ for (const protocolId of conformIds.get(at) ?? []) cover(protocolId);
32664
32719
  const protocols = [];
32665
32720
  const visit3 = (protocolId) => {
32666
32721
  if (protocols.includes(protocolId)) return;
@@ -32668,16 +32723,28 @@ function emitSwiftStandin(graphs, options) {
32668
32723
  for (const edge of protocolParents.get(protocolId) ?? []) visit3(edge);
32669
32724
  };
32670
32725
  for (const protocolId of conformIds.get(id) ?? []) visit3(protocolId);
32726
+ const overloaded = /* @__PURE__ */ new Set();
32727
+ const named = /* @__PURE__ */ new Set();
32671
32728
  for (const protocolId of protocols)
32729
+ for (const member of children.get(protocolId) ?? []) {
32730
+ if (!requirement.has(member.identifier.precise)) continue;
32731
+ if (named.has(sideLeaf(member))) overloaded.add(sideLeaf(member));
32732
+ named.add(sideLeaf(member));
32733
+ }
32734
+ const met = (member) => have.has(witnessKey(member)) || !overloaded.has(sideLeaf(member)) && have.has(sideLeaf(member));
32735
+ for (const protocolId of protocols) {
32736
+ if (covered.has(protocolId)) continue;
32672
32737
  for (const member of children.get(protocolId) ?? []) {
32673
32738
  if (!requirement.has(member.identifier.precise) || optional.has(member.identifier.precise))
32674
32739
  continue;
32740
+ if (hasDefault.has(member.identifier.precise)) continue;
32675
32741
  if (isObjC(member) && / async\b/.test(text(member))) continue;
32676
- if (have.has(witnessKey(member)) || member.kind.identifier === "swift.associatedtype")
32677
- continue;
32742
+ if (met(member) || member.kind.identifier === "swift.associatedtype") continue;
32678
32743
  have.add(witnessKey(member));
32744
+ have.add(sideLeaf(member));
32679
32745
  emitWitness(member, inner, path37);
32680
32746
  }
32747
+ }
32681
32748
  const coder = members.some((member) => leaf(member) === "init(coder:)");
32682
32749
  if (designated && !coder && externalRoot(id) !== "NSObject" && externalRoot(id) !== null)
32683
32750
  emit(
@@ -32790,7 +32857,8 @@ function emitSwiftStandin(graphs, options) {
32790
32857
  continue;
32791
32858
  }
32792
32859
  emitRequirement(member, inner);
32793
- if (optional.has(member.identifier.precise)) defaults.push(member);
32860
+ if (optional.has(member.identifier.precise) && !hasDefault.has(member.identifier.precise))
32861
+ defaults.push(member);
32794
32862
  }
32795
32863
  emit(`${indent}}`);
32796
32864
  if (defaults.length > 0) {
@@ -32819,11 +32887,9 @@ function emitSwiftStandin(graphs, options) {
32819
32887
  const witness = `${owner2}.${leaf(member)}`;
32820
32888
  const body = trap(witness);
32821
32889
  if (member.kind.identifier === "swift.property" || member.kind.identifier === "swift.type.property") {
32822
- const accessors = ACCESSORS.exec(decl);
32823
- const bare = decl.replace(ACCESSORS, "").trimEnd();
32824
- emit(
32825
- `${indent}public ${bare} { get { ${body} }${accessors?.[3] ? ` set { ${body} }` : ""} }`
32826
- );
32890
+ const parsed = splitAccessors(decl);
32891
+ const setter = parsed.settable ? ` ${parsed.nonmutating ? "nonmutating " : ""}set { ${body} }` : "";
32892
+ emit(`${indent}public ${parsed.decl} { get${parsed.effects} { ${body} }${setter} }`);
32827
32893
  } else
32828
32894
  emit(
32829
32895
  `${indent}public ${member.kind.identifier === "swift.init" ? "required " : ""}${stripDefaults(decl)} { ${body} }`
@@ -32844,15 +32910,23 @@ function emitSwiftStandin(graphs, options) {
32844
32910
  };
32845
32911
  const emitGlobal = scoped((symbol) => {
32846
32912
  const path37 = pathOf(symbol);
32847
- if (symbol.kind.identifier === "swift.func" || symbol.kind.identifier === "swift.func.op") {
32913
+ const kind = symbol.kind.identifier;
32914
+ if (kind === "swift.func" || kind === "swift.func.op" || kind === "swift.method" || kind === "swift.type.method") {
32848
32915
  const { 1: attrs, 2: rest } = LEADING_ATTRS.exec(text(symbol));
32849
- emit(`${attrs}public ${rest} { ${trap(path37)} }`);
32850
- } else if (symbol.kind.identifier === "swift.var") {
32851
- const decl = text(symbol).replace(/^let /, "var ").replace(ACCESSORS, "").trimEnd();
32916
+ let spelled = rest;
32917
+ if (kind === "swift.func.op") {
32918
+ const token = /func\s+(\S+)/.exec(spelled)?.[1];
32919
+ const fix = token ? options.operators?.get(token) : void 0;
32920
+ if (fix && !/^(?:prefix|infix|postfix)\b/.test(spelled))
32921
+ spelled = `${fix} ${spelled}`;
32922
+ }
32923
+ emit(`${attrs}public ${spelled} { ${trap(path37)} }`);
32924
+ } else if (kind === "swift.var") {
32925
+ const parsed = splitAccessors(text(symbol).replace(/^let /, "var "));
32852
32926
  const measured = behavior.get(path37);
32853
32927
  if (measured) used.add(path37);
32854
- emit(`public ${decl} { ${measured?.body ?? trap(path37)} }`);
32855
- } else skipped.push({ path: path37, reason: `unhandled top-level ${symbol.kind.identifier}` });
32928
+ emit(`public ${parsed.decl} { ${measured?.body ?? trap(path37)} }`);
32929
+ } else skipped.push({ path: path37, reason: `unhandled top-level ${kind}` });
32856
32930
  });
32857
32931
  const roots = [...byId.values()].filter((symbol) => !owner.has(symbol.identifier.precise) && !unavailable(symbol)).sort((a, b) => pathOf(a).localeCompare(pathOf(b)));
32858
32932
  for (const symbol of roots) {
@@ -32936,11 +33010,11 @@ function stripDefaults(decl) {
32936
33010
  }
32937
33011
  return out;
32938
33012
  }
32939
- var STANDIN_EMIT_VERSION, TYPE_KINDS, MEMBER_KINDS, ACCESSORS, KEEP_EXTERNAL, LEADING_ATTRS, OBJC_ONLY, text, leaf, pathOf, unavailable, witnessKey, isObjC, trap, KEYWORDS, tick;
33013
+ var STANDIN_EMIT_VERSION, TYPE_KINDS, MEMBER_KINDS, ACCESSOR_WORD, KEEP_EXTERNAL, LEADING_ATTRS, OBJC_ONLY, text, leaf, pathOf, unavailable, witnessKey, sideLeaf, isObjC, trap, KEYWORDS, tick;
32940
33014
  var init_swift_standin_emit = __esm({
32941
33015
  "src/swift-standin-emit.ts"() {
32942
33016
  "use strict";
32943
- STANDIN_EMIT_VERSION = "1";
33017
+ STANDIN_EMIT_VERSION = "2";
32944
33018
  TYPE_KINDS = /* @__PURE__ */ new Set([
32945
33019
  "swift.class",
32946
33020
  "swift.struct",
@@ -32958,7 +33032,7 @@ var init_swift_standin_emit = __esm({
32958
33032
  "swift.subscript",
32959
33033
  "swift.type.subscript"
32960
33034
  ]);
32961
- ACCESSORS = /\{\s*get(\s+async)?(\s+throws)?(\s+set)?\s*\}\s*$/;
33035
+ ACCESSOR_WORD = /^(?:get|set|nonmutating|mutating|async|throws|rethrows|_read|_modify)$/;
32962
33036
  KEEP_EXTERNAL = /* @__PURE__ */ new Map([
32963
33037
  ["s:SH", "Hashable"],
32964
33038
  ["s:SQ", "Equatable"],
@@ -32980,7 +33054,10 @@ var init_swift_standin_emit = __esm({
32980
33054
  unavailable = (symbol) => (symbol.availability ?? []).some(
32981
33055
  (entry) => entry.isUnconditionallyUnavailable || entry.obsoleted !== void 0
32982
33056
  );
32983
- witnessKey = (symbol) => `${symbol.kind.identifier.startsWith("swift.type.") ? "type" : "instance"}|${leaf(symbol)}`;
33057
+ witnessKey = (symbol) => `${symbol.kind.identifier.startsWith("swift.type.") ? "type" : "instance"}|${stripDefaults(
33058
+ splitAccessors(text(symbol)).decl
33059
+ ).replace(/\s+/g, " ").trim()}`;
33060
+ sideLeaf = (symbol) => `${symbol.kind.identifier.startsWith("swift.type.") ? "type" : "instance"}|leaf|${leaf(symbol)}`;
32984
33061
  isObjC = (symbol) => symbol.identifier.precise.startsWith("c:");
32985
33062
  trap = (path37) => `fatalError("${path37} is a binary framework peach cannot run")`;
32986
33063
  KEYWORDS = /* @__PURE__ */ new Set([
@@ -52563,6 +52640,7 @@ function normalizeKnownTarget(target) {
52563
52640
  async function ensureBridgeForOpen(preferredPort, explicitPort = false, resources) {
52564
52641
  const lock = readDaemonLockfile();
52565
52642
  assertExplicitBridgeLock(preferredPort, explicitPort, lock);
52643
+ await ensureRuntimeForOpen();
52566
52644
  const preferredWorld = worldForBridgePort(preferredPort);
52567
52645
  if ((explicitPort || preferredWorld !== null) && await canConnectToBridge(preferredPort, 2e3)) {
52568
52646
  return preferredPort;
@@ -52580,7 +52658,6 @@ async function ensureBridgeForOpen(preferredPort, explicitPort = false, resource
52580
52658
  `peach bridge lockfile is fresh (port ${lock.bridgePort}) but the bridge is not reachable. run \`peach daemon restart\` or \`peach daemon uninstall\`.`
52581
52659
  );
52582
52660
  }
52583
- await ensureRuntimeForOpen();
52584
52661
  const child = spawnSootsim(["serve", "--quiet", "--port", String(preferredPort)]);
52585
52662
  if (resources) {
52586
52663
  resources.bridge = child;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import { execFile as execFile2, execFileSync } from "node:child_process";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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.782 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.784 | (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;