peachsim 0.1.753 → 0.1.755

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 (81) hide show
  1. package/cli/bridge-flow-runner.ts +4 -8
  2. package/cli/commands/daemon.ts +117 -116
  3. package/cli/commands/install-desktop.ts +13 -8
  4. package/cli/commands/maestro.ts +1 -2
  5. package/cli/desktop-companion.ts +9 -2
  6. package/dist-lib/agent-daemon-client.cjs +1 -1
  7. package/dist-lib/agent-events.cjs +1 -1
  8. package/dist-lib/agent-identity.cjs +1 -1
  9. package/dist-lib/agent-sessions.cjs +1 -1
  10. package/dist-lib/attached-projects.cjs +1 -1
  11. package/dist-lib/auth/shared-session.cjs +8 -5
  12. package/dist-lib/backend-origin.cjs +1 -1
  13. package/dist-lib/beta.cjs +1 -1
  14. package/dist-lib/beta.mjs +1 -1
  15. package/dist-lib/bridge-constants.cjs +1 -1
  16. package/dist-lib/bridge-contract-input.cjs +1 -1
  17. package/dist-lib/bridge-contract-input.mjs +1 -1
  18. package/dist-lib/bridge-contract.cjs +1 -1
  19. package/dist-lib/bridge-contract.mjs +1 -1
  20. package/dist-lib/capture-contract.cjs +1 -1
  21. package/dist-lib/capture-contract.mjs +1 -1
  22. package/dist-lib/cli-constants.cjs +1 -1
  23. package/dist-lib/cloud-contract.cjs +1 -1
  24. package/dist-lib/cloud-contract.mjs +1 -1
  25. package/dist-lib/cloud-test-args.cjs +1 -1
  26. package/dist-lib/cloud-test-args.mjs +1 -1
  27. package/dist-lib/cloud.cjs +1 -1
  28. package/dist-lib/cloud.mjs +1 -1
  29. package/dist-lib/config.cjs +1 -1
  30. package/dist-lib/detox/index.cjs +1 -1
  31. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  32. package/dist-lib/home-paths.cjs +2 -23
  33. package/dist-lib/host/bridge-host.cjs +8 -3
  34. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  35. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  36. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  37. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  38. package/dist-lib/host/websocket-proxy.cjs +1 -1
  39. package/dist-lib/index.cjs +1 -1
  40. package/dist-lib/jump-to-source-babel.cjs +1 -1
  41. package/dist-lib/jump-to-source-native.cjs +1 -1
  42. package/dist-lib/kotlin-host.cjs +1 -1
  43. package/dist-lib/menu.cjs +1 -1
  44. package/dist-lib/menu.mjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  47. package/dist-lib/metro-production-bundle.cjs +1 -1
  48. package/dist-lib/metro-production-bundle.mjs +1 -1
  49. package/dist-lib/metro.cjs +1 -1
  50. package/dist-lib/native-app-identity.cjs +1 -1
  51. package/dist-lib/native-app-identity.mjs +1 -1
  52. package/dist-lib/native-firebase-metadata.cjs +1 -1
  53. package/dist-lib/native-firebase-metadata.mjs +1 -1
  54. package/dist-lib/plist.cjs +1 -1
  55. package/dist-lib/plist.mjs +1 -1
  56. package/dist-lib/profiles.cjs +1 -1
  57. package/dist-lib/public-brand.cjs +1 -1
  58. package/dist-lib/react-native-host-modules.cjs +1 -1
  59. package/dist-lib/react-native-host-modules.mjs +1 -1
  60. package/dist-lib/render-mode.cjs +1 -1
  61. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  62. package/dist-lib/sdk.cjs +1 -1
  63. package/dist-lib/sdk.mjs +1 -1
  64. package/dist-lib/skills.cjs +48 -47
  65. package/dist-lib/swift-compile.cjs +6 -2
  66. package/dist-lib/swift-compile.mjs +6 -2
  67. package/dist-lib/swift-package.cjs +1 -1
  68. package/dist-lib/swift-package.mjs +1 -1
  69. package/dist-lib/swift-submit.cjs +1 -1
  70. package/dist-lib/swift-submit.mjs +1 -1
  71. package/dist-lib/swift-toolchain.cjs +1 -1
  72. package/dist-lib/swift.cjs +1 -1
  73. package/dist-lib/vite-swift.cjs +6 -2
  74. package/dist-lib/vite.cjs +1 -1
  75. package/package.json +1 -1
  76. package/skills/peach-test/SKILL.md +1 -4
  77. package/src/auth/shared-session.ts +9 -4
  78. package/src/desktop-host-delivery.ts +82 -19
  79. package/src/home-paths.ts +5 -22
  80. package/src/host/agent-host.ts +4 -1
  81. package/src/swift-compile.ts +4 -0
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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;
@@ -66,7 +66,6 @@ __export(home_paths_exports, {
66
66
  isSootsimDevCheckout: () => isSootsimDevCheckout,
67
67
  playwrightCoreDir: () => playwrightCoreDir,
68
68
  profilesDir: () => profilesDir,
69
- readActiveDesktopHost: () => readActiveDesktopHost,
70
69
  readActiveRuntime: () => readActiveRuntime,
71
70
  readDaemonLockfile: () => readDaemonLockfile,
72
71
  readDefaultBox: () => readDefaultBox,
@@ -83,7 +82,6 @@ __export(home_paths_exports, {
83
82
  runtimeUpgradeNoticePath: () => runtimeUpgradeNoticePath,
84
83
  runtimesDir: () => runtimesDir,
85
84
  shouldSkipPersistentDaemon: () => shouldSkipPersistentDaemon,
86
- writeActiveDesktopHost: () => writeActiveDesktopHost,
87
85
  writeActiveRuntime: () => writeActiveRuntime,
88
86
  writeDaemonLockfile: () => writeDaemonLockfile,
89
87
  writeDefaultBox: () => writeDefaultBox,
@@ -141,28 +139,11 @@ function activeRuntimeFile() {
141
139
  return import_node_path.default.join(runtimesDir(), ACTIVE_RUNTIME_FILE);
142
140
  }
143
141
  function desktopHostsDir() {
144
- return import_node_path.default.join(rnxHomeDir(), "desktop");
142
+ return import_node_path.default.join(rnxHomeDir(), "desktop", "versions");
145
143
  }
146
144
  function desktopHostDir(version) {
147
145
  return import_node_path.default.join(desktopHostsDir(), version);
148
146
  }
149
- function readActiveDesktopHost() {
150
- try {
151
- const value = import_node_fs.default.readFileSync(import_node_path.default.join(desktopHostsDir(), ACTIVE_RUNTIME_FILE), "utf8").trim();
152
- return value.length > 0 ? value : null;
153
- } catch {
154
- return null;
155
- }
156
- }
157
- function writeActiveDesktopHost(version) {
158
- import_node_fs.default.mkdirSync(desktopHostsDir(), { recursive: true });
159
- import_node_fs.default.writeFileSync(
160
- import_node_path.default.join(desktopHostsDir(), ACTIVE_RUNTIME_FILE),
161
- `${version}
162
- `,
163
- "utf8"
164
- );
165
- }
166
147
  function electronDir() {
167
148
  return import_node_path.default.join(rnxHomeDir(), "electron");
168
149
  }
@@ -648,7 +629,6 @@ function removeDevBridgeLockfile(owner) {
648
629
  isSootsimDevCheckout,
649
630
  playwrightCoreDir,
650
631
  profilesDir,
651
- readActiveDesktopHost,
652
632
  readActiveRuntime,
653
633
  readDaemonLockfile,
654
634
  readDefaultBox,
@@ -665,7 +645,6 @@ function removeDevBridgeLockfile(owner) {
665
645
  runtimeUpgradeNoticePath,
666
646
  runtimesDir,
667
647
  shouldSkipPersistentDaemon,
668
- writeActiveDesktopHost,
669
648
  writeActiveRuntime,
670
649
  writeDaemonLockfile,
671
650
  writeDefaultBox,
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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;
@@ -6859,7 +6859,11 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
6859
6859
  DatadogCore: [],
6860
6860
  DatadogLogs: ["DatadogCore"],
6861
6861
  DatadogRUM: ["DatadogCore"],
6862
- DatadogTrace: ["DatadogCore"]
6862
+ DatadogTrace: ["DatadogCore"],
6863
+ AppLovinSDK: [],
6864
+ AppsFlyerLib: [],
6865
+ FBSDKCoreKit: [],
6866
+ FBAudienceNetwork: []
6863
6867
  };
6864
6868
  var OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
6865
6869
  var SWIFT_IMPORT = /^\s*(?:@\w+(?:\([^)]*\))?\s+)*import\s+(?:(?:typealias|struct|class|enum|protocol|let|var|func)\s+)?([A-Za-z_][A-Za-z0-9_]*)/;
@@ -12188,9 +12192,9 @@ var AgentHost = class {
12188
12192
  if (sockets.has(sessionId)) {
12189
12193
  return { ok: true, refCount: this.subscriptions.get(sessionId)?.refCount ?? 1 };
12190
12194
  }
12191
- sockets.add(sessionId);
12192
12195
  const existing = this.subscriptions.get(sessionId);
12193
12196
  if (existing) {
12197
+ sockets.add(sessionId);
12194
12198
  existing.refCount++;
12195
12199
  return { ok: true, refCount: existing.refCount };
12196
12200
  }
@@ -12217,6 +12221,7 @@ var AgentHost = class {
12217
12221
  }
12218
12222
  }
12219
12223
  });
12224
+ sockets.add(sessionId);
12220
12225
  this.subscriptions.set(sessionId, { unsubscribe, refCount: 1 });
12221
12226
  return { ok: true, refCount: 1 };
12222
12227
  }
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/host/fetch-proxy-overrides.ts
4
4
  var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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/menu.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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/menu.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/public-brand.ts
4
4
  var name = "Peach";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/metro-production-bundle.ts
4
4
  var RNXSIM_METRO_MODULE_PATHS_PREFIX = "globalThis.__sootsimModulePaths=";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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;
@@ -20837,7 +20837,6 @@ __export(home_paths_exports, {
20837
20837
  isSootsimDevCheckout: () => isSootsimDevCheckout,
20838
20838
  playwrightCoreDir: () => playwrightCoreDir,
20839
20839
  profilesDir: () => profilesDir,
20840
- readActiveDesktopHost: () => readActiveDesktopHost,
20841
20840
  readActiveRuntime: () => readActiveRuntime,
20842
20841
  readDaemonLockfile: () => readDaemonLockfile,
20843
20842
  readDefaultBox: () => readDefaultBox,
@@ -20854,7 +20853,6 @@ __export(home_paths_exports, {
20854
20853
  runtimeUpgradeNoticePath: () => runtimeUpgradeNoticePath,
20855
20854
  runtimesDir: () => runtimesDir,
20856
20855
  shouldSkipPersistentDaemon: () => shouldSkipPersistentDaemon,
20857
- writeActiveDesktopHost: () => writeActiveDesktopHost,
20858
20856
  writeActiveRuntime: () => writeActiveRuntime,
20859
20857
  writeDaemonLockfile: () => writeDaemonLockfile,
20860
20858
  writeDefaultBox: () => writeDefaultBox,
@@ -20900,28 +20898,11 @@ function activeRuntimeFile() {
20900
20898
  return import_node_path4.default.join(runtimesDir(), ACTIVE_RUNTIME_FILE);
20901
20899
  }
20902
20900
  function desktopHostsDir() {
20903
- return import_node_path4.default.join(rnxHomeDir(), "desktop");
20901
+ return import_node_path4.default.join(rnxHomeDir(), "desktop", "versions");
20904
20902
  }
20905
20903
  function desktopHostDir(version) {
20906
20904
  return import_node_path4.default.join(desktopHostsDir(), version);
20907
20905
  }
20908
- function readActiveDesktopHost() {
20909
- try {
20910
- const value = import_node_fs3.default.readFileSync(import_node_path4.default.join(desktopHostsDir(), ACTIVE_RUNTIME_FILE), "utf8").trim();
20911
- return value.length > 0 ? value : null;
20912
- } catch {
20913
- return null;
20914
- }
20915
- }
20916
- function writeActiveDesktopHost(version) {
20917
- import_node_fs3.default.mkdirSync(desktopHostsDir(), { recursive: true });
20918
- import_node_fs3.default.writeFileSync(
20919
- import_node_path4.default.join(desktopHostsDir(), ACTIVE_RUNTIME_FILE),
20920
- `${version}
20921
- `,
20922
- "utf8"
20923
- );
20924
- }
20925
20906
  function electronDir() {
20926
20907
  return import_node_path4.default.join(rnxHomeDir(), "electron");
20927
20908
  }
@@ -23142,7 +23123,11 @@ var init_swift_compile = __esm({
23142
23123
  DatadogCore: [],
23143
23124
  DatadogLogs: ["DatadogCore"],
23144
23125
  DatadogRUM: ["DatadogCore"],
23145
- DatadogTrace: ["DatadogCore"]
23126
+ DatadogTrace: ["DatadogCore"],
23127
+ AppLovinSDK: [],
23128
+ AppsFlyerLib: [],
23129
+ FBSDKCoreKit: [],
23130
+ FBAudienceNetwork: []
23146
23131
  };
23147
23132
  OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
23148
23133
  SWIFT_IMPORT = /^\s*(?:@\w+(?:\([^)]*\))?\s+)*import\s+(?:(?:typealias|struct|class|enum|protocol|let|var|func)\s+)?([A-Za-z_][A-Za-z0-9_]*)/;
@@ -27743,9 +27728,9 @@ var init_agent_host = __esm({
27743
27728
  if (sockets.has(sessionId)) {
27744
27729
  return { ok: true, refCount: this.subscriptions.get(sessionId)?.refCount ?? 1 };
27745
27730
  }
27746
- sockets.add(sessionId);
27747
27731
  const existing = this.subscriptions.get(sessionId);
27748
27732
  if (existing) {
27733
+ sockets.add(sessionId);
27749
27734
  existing.refCount++;
27750
27735
  return { ok: true, refCount: existing.refCount };
27751
27736
  }
@@ -27772,6 +27757,7 @@ var init_agent_host = __esm({
27772
27757
  }
27773
27758
  }
27774
27759
  });
27760
+ sockets.add(sessionId);
27775
27761
  this.subscriptions.set(sessionId, { unsubscribe, refCount: 1 });
27776
27762
  return { ok: true, refCount: 1 };
27777
27763
  }
@@ -39066,17 +39052,33 @@ var init_bridge_diagnostics = __esm({
39066
39052
  });
39067
39053
 
39068
39054
  // src/desktop-host-delivery.ts
39055
+ function bundleValue(app, key) {
39056
+ const read = (0, import_node_child_process11.spawnSync)(
39057
+ "plutil",
39058
+ ["-extract", key, "raw", "-o", "-", import_node_path34.default.join(app, "Contents/Info.plist")],
39059
+ { encoding: "utf8" }
39060
+ );
39061
+ return read.status === 0 ? read.stdout.trim() : null;
39062
+ }
39063
+ function isNativeHostBundle(app) {
39064
+ return process.platform === "darwin" && bundleValue(app, "CFBundleIdentifier") === HOST_BUNDLE_ID;
39065
+ }
39066
+ function placedHostVersion() {
39067
+ return isNativeHostBundle(MAC_HOST_APP) ? bundleValue(MAC_HOST_APP, "CFBundleVersion") : null;
39068
+ }
39069
39069
  function activeDesktopHostApp() {
39070
- const version = readActiveDesktopHost();
39071
- return version ? import_node_path34.default.join(desktopHostDir(version), "PeachDesktop.app") : null;
39070
+ return placedHostVersion() ? MAC_HOST_APP : null;
39072
39071
  }
39073
- var import_node_path34;
39072
+ var import_node_child_process11, import_node_path34, MAC_HOST_APP, HOST_BUNDLE_ID;
39074
39073
  var init_desktop_host_delivery = __esm({
39075
39074
  "src/desktop-host-delivery.ts"() {
39076
39075
  "use strict";
39076
+ import_node_child_process11 = require("node:child_process");
39077
39077
  import_node_path34 = __toESM(require("node:path"), 1);
39078
39078
  init_src();
39079
39079
  init_home_paths();
39080
+ MAC_HOST_APP = "/Applications/Peach.app";
39081
+ HOST_BUNDLE_ID = "dev.contrast.peach-desktop";
39080
39082
  }
39081
39083
  });
39082
39084
 
@@ -39127,7 +39129,9 @@ function findInstalledMacApp() {
39127
39129
  "/Applications/peach.app",
39128
39130
  (0, import_path5.resolve)(process.env.HOME || "", "Applications/peach.app")
39129
39131
  ];
39130
- const found = candidates.find((candidate) => (0, import_fs6.existsSync)(candidate));
39132
+ const found = candidates.find(
39133
+ (candidate) => (0, import_fs6.existsSync)(candidate) && !isNativeHostBundle(candidate)
39134
+ );
39131
39135
  if (found) {
39132
39136
  return {
39133
39137
  path: found,
@@ -39294,6 +39298,7 @@ async function launchDesktopCompanion(url, install = findDesktopCompanion(), opt
39294
39298
  if (opts.ownerPid && opts.ownerPid > 1) extraArgs.push(`--owner-pid=${opts.ownerPid}`);
39295
39299
  if (install.kind === "mac-app" || install.kind === "native-mac-app") {
39296
39300
  const nativeApp = install.kind === "native-mac-app";
39301
+ if (nativeApp) extraArgs.push("--no-personal-home");
39297
39302
  const openArgs = ["-g", "-a", install.path];
39298
39303
  if (url) openArgs.push(buildMacLaunchUrl(url, opts, nativeApp));
39299
39304
  else if (nativeApp && (opts.profileId || opts.ephemeralProfile || opts.ownerPid || opts.device))
@@ -40592,7 +40597,7 @@ function linuxBrowserLibsKey(id, arch) {
40592
40597
  return `linux-libs/${id}/${arch}.tar.gz`;
40593
40598
  }
40594
40599
  function missingLibraries(executablePath, libraryPath) {
40595
- const ldd = (0, import_node_child_process11.spawnSync)("ldd", [executablePath], {
40600
+ const ldd = (0, import_node_child_process12.spawnSync)("ldd", [executablePath], {
40596
40601
  encoding: "utf8",
40597
40602
  timeout: 3e4,
40598
40603
  env: libraryPath ? {
@@ -40655,11 +40660,11 @@ async function ensureLinuxBrowserLibraries(executablePath, browser) {
40655
40660
  }
40656
40661
  return { ok: true, libraryPath };
40657
40662
  }
40658
- var import_node_child_process11, import_node_fs33, import_node_path35, LINUX_BROWSER_LIBS_ARCHES, LINUX_BROWSER_LIBS_MARKER;
40663
+ var import_node_child_process12, import_node_fs33, import_node_path35, LINUX_BROWSER_LIBS_ARCHES, LINUX_BROWSER_LIBS_MARKER;
40659
40664
  var init_linux_browser_libs = __esm({
40660
40665
  "cli/drivers/linux-browser-libs.ts"() {
40661
40666
  "use strict";
40662
- import_node_child_process11 = require("node:child_process");
40667
+ import_node_child_process12 = require("node:child_process");
40663
40668
  import_node_fs33 = require("node:fs");
40664
40669
  import_node_path35 = require("node:path");
40665
40670
  init_src();
@@ -40735,7 +40740,7 @@ async function provisionPlaywright() {
40735
40740
  }
40736
40741
  function probeBrowser(resolved, env) {
40737
40742
  const self = rnxSelfInvocation();
40738
- const probe2 = (0, import_node_child_process12.spawnSync)(
40743
+ const probe2 = (0, import_node_child_process13.spawnSync)(
40739
40744
  self.executable,
40740
40745
  [...self.prefixArgs, RNX_INTERNAL_COMMAND, RNX_INTERNAL_CHILDREN.playwrightProbe],
40741
40746
  {
@@ -40788,7 +40793,7 @@ async function ensurePlaywrightBrowser(resolved, headless, env = process.env) {
40788
40793
  };
40789
40794
  }
40790
40795
  const installer = rnxSelfInvocation();
40791
- const install = (0, import_node_child_process12.spawnSync)(
40796
+ const install = (0, import_node_child_process13.spawnSync)(
40792
40797
  installer.executable,
40793
40798
  [
40794
40799
  ...installer.prefixArgs,
@@ -40830,11 +40835,11 @@ ${detail}` : ""}`
40830
40835
  libraryPath: libraries.libraryPath
40831
40836
  };
40832
40837
  }
40833
- var import_node_child_process12, import_node_fs34, import_node_module6, import_node_path36;
40838
+ var import_node_child_process13, import_node_fs34, import_node_module6, import_node_path36;
40834
40839
  var init_playwright_provisioning = __esm({
40835
40840
  "cli/drivers/playwright-provisioning.ts"() {
40836
40841
  "use strict";
40837
- import_node_child_process12 = require("node:child_process");
40842
+ import_node_child_process13 = require("node:child_process");
40838
40843
  import_node_fs34 = require("node:fs");
40839
40844
  import_node_module6 = require("node:module");
40840
40845
  import_node_path36 = require("node:path");
@@ -41929,7 +41934,7 @@ async function ensureRuntimeForOpen() {
41929
41934
  }
41930
41935
  function spawnSootsim(args) {
41931
41936
  const { executable, prefixArgs } = rnxSelfInvocation();
41932
- return (0, import_node_child_process13.spawn)(executable, [...prefixArgs, ...args], {
41937
+ return (0, import_node_child_process14.spawn)(executable, [...prefixArgs, ...args], {
41933
41938
  detached: true,
41934
41939
  stdio: "ignore",
41935
41940
  env: process.env
@@ -42522,11 +42527,11 @@ async function waitForProcessExit(pid, timeoutMs = 2500) {
42522
42527
  return !isProcessAlive2(pid);
42523
42528
  }
42524
42529
  function isPlaywrightHostProcess(pid) {
42525
- const plain = (0, import_node_child_process13.spawnSync)("ps", ["-o", "command=", "-p", String(pid)], {
42530
+ const plain = (0, import_node_child_process14.spawnSync)("ps", ["-o", "command=", "-p", String(pid)], {
42526
42531
  encoding: "utf8",
42527
42532
  stdio: ["ignore", "pipe", "pipe"]
42528
42533
  });
42529
- const withEnv = (0, import_node_child_process13.spawnSync)("ps", ["eww", "-o", "command=", "-p", String(pid)], {
42534
+ const withEnv = (0, import_node_child_process14.spawnSync)("ps", ["eww", "-o", "command=", "-p", String(pid)], {
42530
42535
  encoding: "utf8",
42531
42536
  stdio: ["ignore", "pipe", "pipe"]
42532
42537
  });
@@ -43500,11 +43505,11 @@ async function runCloseCommand(args, opts = {}) {
43500
43505
  bridge.close();
43501
43506
  }
43502
43507
  }
43503
- var import_node_child_process13, import_node_fs35, import_node_os8, import_node_path37, import_app_catalog_wire, import_devices2, import_ws4, DEFAULT_DRIVER_CONNECT_TIMEOUT_MS, DRIVER_CONNECT_INTERVAL_MS, DRIVER_CONNECT_HOST_GRACE_MS, OPEN_BRIDGE_SPAWN_TIMEOUT_MS, SHELL_APPS, DEV_BUNDLE_RESOLVE_ATTEMPTS, DEV_BUNDLE_RESOLVE_INTERVAL_MS;
43508
+ var import_node_child_process14, import_node_fs35, import_node_os8, import_node_path37, import_app_catalog_wire, import_devices2, import_ws4, DEFAULT_DRIVER_CONNECT_TIMEOUT_MS, DRIVER_CONNECT_INTERVAL_MS, DRIVER_CONNECT_HOST_GRACE_MS, OPEN_BRIDGE_SPAWN_TIMEOUT_MS, SHELL_APPS, DEV_BUNDLE_RESOLVE_ATTEMPTS, DEV_BUNDLE_RESOLVE_INTERVAL_MS;
43504
43509
  var init_control = __esm({
43505
43510
  "cli/commands/control.ts"() {
43506
43511
  "use strict";
43507
- import_node_child_process13 = require("node:child_process");
43512
+ import_node_child_process14 = require("node:child_process");
43508
43513
  import_node_fs35 = __toESM(require("node:fs"), 1);
43509
43514
  import_node_os8 = __toESM(require("node:os"), 1);
43510
43515
  import_node_path37 = __toESM(require("node:path"), 1);
@@ -46627,13 +46632,9 @@ var init_bridge_flow_runner = __esm({
46627
46632
  await this.resetGuestAppData();
46628
46633
  await this.rearmCaptureAfterRuntimeReload();
46629
46634
  }
46630
- // maestro clearKeychain: there is no real keychain in peach's browser
46631
- // sandbox. log loudly so the author notices, then continue — matching the
46632
- // "loud warning, not silent skip" policy in the plan.
46633
- clearKeychain() {
46634
- console.warn(
46635
- "[flow] clearKeychain: peach has no keychain surface \u2014 no-op (warning)"
46636
- );
46635
+ // the guest owns both persistent credentials and live native-module caches.
46636
+ async clearKeychain() {
46637
+ await this.callTest("clearKeychain");
46637
46638
  }
46638
46639
  // maestro copyTextFrom: find an element and capture its text for use in
46639
46640
  // later steps via ${maestro.copiedText} (upstream form) or the legacy
@@ -46978,7 +46979,7 @@ var init_bridge_flow_runner = __esm({
46978
46979
  } else if (step.clearState !== void 0) {
46979
46980
  await this.clearState();
46980
46981
  } else if (step.clearKeychain !== void 0) {
46981
- this.clearKeychain();
46982
+ await this.clearKeychain();
46982
46983
  } else if (step.copyTextFrom !== void 0) {
46983
46984
  await this.copyTextFrom(step.copyTextFrom);
46984
46985
  } else if (step.assertTrue !== void 0) {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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;
@@ -439,7 +439,11 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
439
439
  DatadogCore: [],
440
440
  DatadogLogs: ["DatadogCore"],
441
441
  DatadogRUM: ["DatadogCore"],
442
- DatadogTrace: ["DatadogCore"]
442
+ DatadogTrace: ["DatadogCore"],
443
+ AppLovinSDK: [],
444
+ AppsFlyerLib: [],
445
+ FBSDKCoreKit: [],
446
+ FBAudienceNetwork: []
443
447
  };
444
448
  var OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
445
449
  var SWIFT_IMPORT = /^\s*(?:@\w+(?:\([^)]*\))?\s+)*import\s+(?:(?:typealias|struct|class|enum|protocol|let|var|func)\s+)?([A-Za-z_][A-Za-z0-9_]*)/;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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";
@@ -391,7 +391,11 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
391
391
  DatadogCore: [],
392
392
  DatadogLogs: ["DatadogCore"],
393
393
  DatadogRUM: ["DatadogCore"],
394
- DatadogTrace: ["DatadogCore"]
394
+ DatadogTrace: ["DatadogCore"],
395
+ AppLovinSDK: [],
396
+ AppsFlyerLib: [],
397
+ FBSDKCoreKit: [],
398
+ FBAudienceNetwork: []
395
399
  };
396
400
  var OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
397
401
  var SWIFT_IMPORT = /^\s*(?:@\w+(?:\([^)]*\))?\s+)*import\s+(?:(?:typealias|struct|class|enum|protocol|let|var|func)\s+)?([A-Za-z_][A-Za-z0-9_]*)/;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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.753 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.755 | (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;