peachsim 0.1.815 → 0.1.817

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 (79) hide show
  1. package/cli/bridge-flow-runner.ts +57 -121
  2. package/cli/outbound-endpoints.ts +4 -3
  3. package/cli/telemetry.ts +21 -7
  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/bundle-channel.cjs +1 -1
  19. package/dist-lib/capture-contract.cjs +1 -1
  20. package/dist-lib/capture-contract.mjs +1 -1
  21. package/dist-lib/cli-constants.cjs +1 -1
  22. package/dist-lib/cloud-contract.cjs +1 -1
  23. package/dist-lib/cloud-contract.mjs +1 -1
  24. package/dist-lib/cloud-test-args.cjs +1 -1
  25. package/dist-lib/cloud-test-args.mjs +1 -1
  26. package/dist-lib/cloud.cjs +1 -1
  27. package/dist-lib/cloud.mjs +1 -1
  28. package/dist-lib/config.cjs +1 -1
  29. package/dist-lib/detox/index.cjs +114 -2
  30. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  31. package/dist-lib/expo-swift-bundle.cjs +1 -1
  32. package/dist-lib/expo-swift-metadata.cjs +1 -1
  33. package/dist-lib/expo-swift-metadata.mjs +1 -1
  34. package/dist-lib/home-paths.cjs +1 -1
  35. package/dist-lib/host/bridge-host.cjs +1 -1
  36. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  37. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  38. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  39. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  40. package/dist-lib/host/websocket-proxy.cjs +1 -1
  41. package/dist-lib/index.cjs +1 -1
  42. package/dist-lib/jump-to-source-babel.cjs +1 -1
  43. package/dist-lib/jump-to-source-native.cjs +1 -1
  44. package/dist-lib/kotlin-host.cjs +1 -1
  45. package/dist-lib/menu.cjs +1 -1
  46. package/dist-lib/menu.mjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  48. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  49. package/dist-lib/metro-production-bundle.cjs +1 -1
  50. package/dist-lib/metro-production-bundle.mjs +1 -1
  51. package/dist-lib/metro.cjs +1 -1
  52. package/dist-lib/native-app-identity.cjs +1 -1
  53. package/dist-lib/native-app-identity.mjs +1 -1
  54. package/dist-lib/native-firebase-metadata.cjs +1 -1
  55. package/dist-lib/native-firebase-metadata.mjs +1 -1
  56. package/dist-lib/plist.cjs +1 -1
  57. package/dist-lib/plist.mjs +1 -1
  58. package/dist-lib/profiles.cjs +1 -1
  59. package/dist-lib/public-brand.cjs +1 -1
  60. package/dist-lib/react-native-host-modules.cjs +1 -1
  61. package/dist-lib/react-native-host-modules.mjs +1 -1
  62. package/dist-lib/render-mode.cjs +1 -1
  63. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  64. package/dist-lib/sdk.cjs +1 -1
  65. package/dist-lib/sdk.mjs +1 -1
  66. package/dist-lib/skills.cjs +41 -95
  67. package/dist-lib/swift-compile.cjs +1 -1
  68. package/dist-lib/swift-compile.mjs +1 -1
  69. package/dist-lib/swift-package.cjs +1 -1
  70. package/dist-lib/swift-package.mjs +1 -1
  71. package/dist-lib/swift-submit.cjs +1 -1
  72. package/dist-lib/swift-submit.mjs +1 -1
  73. package/dist-lib/swift-toolchain.cjs +1 -1
  74. package/dist-lib/swift.cjs +1 -1
  75. package/dist-lib/vite-swift.cjs +1 -1
  76. package/dist-lib/vite.cjs +1 -1
  77. package/dist-lib/worklet-executable.cjs +1 -1
  78. package/dist-lib/worklet-executable.mjs +1 -1
  79. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -2923,6 +2923,113 @@ async function automateWebViewFrames(context, names, helpers) {
2923
2923
  });
2924
2924
  }
2925
2925
 
2926
+ // ../peach-engine/src/components/native-ui/webview-frame-color-scheme.ts
2927
+ var WEBVIEW_FRAME_COLOR_SCHEME_SOURCE = `
2928
+ var colorScheme = config.colorScheme;
2929
+ var schemeQueryPattern = /\\(\\s*prefers-color-scheme\\s*:\\s*(light|dark)\\s*\\)/gi;
2930
+ function schemeQuery(query) {
2931
+ return String(query).replace(schemeQueryPattern, function(_, value) {
2932
+ return value.toLowerCase() === colorScheme ? '(min-width: 0px)' : '(max-width: -1px)';
2933
+ });
2934
+ }
2935
+ var originalMedia = new WeakMap();
2936
+ function rewriteMedia(list) {
2937
+ var original = originalMedia.get(list);
2938
+ if (original === undefined) {
2939
+ if (!/prefers-color-scheme/i.test(list.mediaText)) return;
2940
+ original = list.mediaText;
2941
+ originalMedia.set(list, original);
2942
+ }
2943
+ var next = schemeQuery(original);
2944
+ if (list.mediaText !== next) list.mediaText = next;
2945
+ }
2946
+ function rewriteRules(rules) {
2947
+ for (var index = 0; index < rules.length; index++) {
2948
+ var rule = rules[index];
2949
+ if (rule.media) rewriteMedia(rule.media);
2950
+ if (rule.styleSheet) rewriteSheet(rule.styleSheet);
2951
+ if (rule.cssRules) rewriteRules(rule.cssRules);
2952
+ }
2953
+ }
2954
+ function rewriteSheet(sheet) {
2955
+ rewriteMedia(sheet.media);
2956
+ var rules;
2957
+ try {
2958
+ rules = sheet.cssRules;
2959
+ } catch (_) {
2960
+ return;
2961
+ }
2962
+ rewriteRules(rules);
2963
+ }
2964
+ function rewriteDocument() {
2965
+ for (var index = 0; index < document.styleSheets.length; index++) rewriteSheet(document.styleSheets[index]);
2966
+ for (var adopted = 0; adopted < document.adoptedStyleSheets.length; adopted++) rewriteSheet(document.adoptedStyleSheets[adopted]);
2967
+ }
2968
+ ['insertRule', 'replaceSync'].forEach(function(name) {
2969
+ var native = CSSStyleSheet.prototype[name];
2970
+ CSSStyleSheet.prototype[name] = function() {
2971
+ var result = native.apply(this, arguments);
2972
+ rewriteSheet(this);
2973
+ return result;
2974
+ };
2975
+ });
2976
+ var nativeReplace = CSSStyleSheet.prototype.replace;
2977
+ CSSStyleSheet.prototype.replace = function() {
2978
+ var sheet = this;
2979
+ return nativeReplace.apply(sheet, arguments).then(function(result) {
2980
+ rewriteSheet(sheet);
2981
+ return result;
2982
+ });
2983
+ };
2984
+ new MutationObserver(rewriteDocument).observe(document, { childList: true, subtree: true, characterData: true });
2985
+ document.addEventListener('load', rewriteDocument, true);
2986
+ rewriteDocument();
2987
+ var nativeMatchMedia = window.matchMedia;
2988
+ var schemeLists = new Set();
2989
+ window.matchMedia = function(query) {
2990
+ var list = nativeMatchMedia.call(window, schemeQuery(query));
2991
+ if (!/prefers-color-scheme/i.test(query)) return list;
2992
+ var source = String(query);
2993
+ var proxy = Object.create(list, {
2994
+ media: { value: source },
2995
+ onchange: { value: null, writable: true },
2996
+ matches: { get: function() { return nativeMatchMedia.call(window, schemeQuery(source)).matches; } }
2997
+ });
2998
+ var listeners = new Map();
2999
+ var state = { source: source, matches: list.matches, listeners: listeners, proxy: proxy };
3000
+ function addListener(callback) {
3001
+ if (typeof callback === 'function' || (callback && typeof callback.handleEvent === 'function')) listeners.set(callback, true);
3002
+ }
3003
+ proxy.addEventListener = function(type, callback) { if (type === 'change') addListener(callback); };
3004
+ proxy.removeEventListener = function(type, callback) { if (type === 'change') listeners.delete(callback); };
3005
+ proxy.addListener = addListener;
3006
+ proxy.removeListener = function(callback) { listeners.delete(callback); };
3007
+ schemeLists.add(new WeakRef(state));
3008
+ return proxy;
3009
+ };
3010
+ function setColorScheme(next) {
3011
+ if (next === colorScheme) return;
3012
+ colorScheme = next;
3013
+ rewriteDocument();
3014
+ schemeLists.forEach(function(ref) {
3015
+ var state = ref.deref();
3016
+ if (!state) {
3017
+ schemeLists.delete(ref);
3018
+ return;
3019
+ }
3020
+ var matches = nativeMatchMedia.call(window, schemeQuery(state.source)).matches;
3021
+ if (matches === state.matches) return;
3022
+ state.matches = matches;
3023
+ var event = { type: 'change', matches: matches, media: state.source, target: state.proxy, currentTarget: state.proxy };
3024
+ if (typeof state.proxy.onchange === 'function') state.proxy.onchange(event);
3025
+ state.listeners.forEach(function(_, callback) {
3026
+ if (typeof callback === 'function') callback.call(state.proxy, event);
3027
+ else callback.handleEvent(event);
3028
+ });
3029
+ });
3030
+ }
3031
+ `;
3032
+
2926
3033
  // ../peach-engine/src/components/native-ui/webview-frame-bridge.ts
2927
3034
  var WEBVIEW_FRAME_CONFIG_ATTRIBUTE = "data-peach-webview-config";
2928
3035
  var WEBVIEW_FRAME_HOOK = "peach.webview";
@@ -2934,7 +3041,7 @@ var WEBVIEW_FRAME_BRIDGE_SOURCE = `function (config) {
2934
3041
  // originWhitelist and Linking handling) has to speak that url, so map the
2935
3042
  // frame's own search and hash onto it.
2936
3043
  var documentUrl = config.documentUrl;
2937
- var webKit = config.webKit || null;
3044
+ ${WEBVIEW_FRAME_COLOR_SCHEME_SOURCE} var webKit = config.webKit || null;
2938
3045
  function nativeValue(value, seen) {
2939
3046
  if (value === null) return { type: 'null' };
2940
3047
  if (typeof value === 'string' || typeof value === 'boolean') return { type: typeof value, value: value };
@@ -3476,6 +3583,11 @@ var WEBVIEW_FRAME_BRIDGE_SOURCE = `function (config) {
3476
3583
  else throw new Error('WKWebView script reply is invalid');
3477
3584
  return;
3478
3585
  }
3586
+ if (payload.__sootsimWebViewKind === 'setColorScheme') {
3587
+ event.stopImmediatePropagation();
3588
+ setColorScheme(payload.scheme === 'dark' ? 'dark' : 'light');
3589
+ return;
3590
+ }
3479
3591
  if (payload.__sootsimWebViewKind === 'setMessageHandlers') {
3480
3592
  event.stopImmediatePropagation();
3481
3593
  if (!webKit || !Array.isArray(payload.names) || payload.names.some(function(name) { return typeof name !== 'string'; })) throw new Error('WKWebView handler update is invalid');
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/expoSwiftContract.ts
4
4
  function record(value) {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.817 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -52718,14 +52718,20 @@ function trackCliDiagnostic(diagnostic) {
52718
52718
  if (!diagnosticsAllowedForCurrentProcess()) return;
52719
52719
  if (queue.length >= 50) return;
52720
52720
  const entry = diagnostic.kind === "package_incompatibility" ? diagnostic : { ...diagnostic, message: sanitizeDiagnosticMessage(diagnostic.message) };
52721
- if (queue.some((queued) => JSON.stringify(queued) === JSON.stringify(entry))) return;
52722
- queue.push(entry);
52721
+ if (queue.some((queued) => JSON.stringify(queued.diagnostic) === JSON.stringify(entry)))
52722
+ return;
52723
+ queue.push({
52724
+ diagnostic: entry,
52725
+ uuid: (0, import_event_identity.eventUuid)(),
52726
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
52727
+ });
52723
52728
  }
52724
- var import_node_os10, import_crash_fingerprint, observedRuntimeVersion, queue, CRASH_REPORT_EVERY_MS;
52729
+ var import_node_os10, import_event_identity, import_crash_fingerprint, observedRuntimeVersion, queue, CRASH_REPORT_EVERY_MS;
52725
52730
  var init_telemetry = __esm({
52726
52731
  "cli/telemetry.ts"() {
52727
52732
  "use strict";
52728
52733
  import_node_os10 = require("node:os");
52734
+ import_event_identity = require("@peach/globals/event-identity");
52729
52735
  import_crash_fingerprint = require("peach-engine/crash-fingerprint");
52730
52736
  init_cli_version();
52731
52737
  init_home_paths();
@@ -56210,7 +56216,13 @@ function accessibilitySubtreeNodes(node) {
56210
56216
  return [node, ...node.children.flatMap(accessibilitySubtreeNodes)];
56211
56217
  }
56212
56218
  function accessibilityTextMatcher(value, kind) {
56213
- const pattern = new RegExp(`^(?:${value})$`);
56219
+ let pattern;
56220
+ try {
56221
+ pattern = new RegExp(`(?<![\\s\\S])(?:${value})(?![\\s\\S])`, "ism");
56222
+ } catch {
56223
+ const escaped = value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
56224
+ pattern = new RegExp(`(?<![\\s\\S])(?:${escaped})(?![\\s\\S])`, "ism");
56225
+ }
56214
56226
  return (candidate) => {
56215
56227
  const native = candidate ?? "";
56216
56228
  if (kind === "id")
@@ -56505,7 +56517,7 @@ function normalizeBareStringStep(verb) {
56505
56517
  function parseFlowSteps(content) {
56506
56518
  return parseFlowFile(content).steps;
56507
56519
  }
56508
- var fs33, path36, import_devices4, import_proof_frame, DEFAULT_TIMEOUT, ASSERTION_LOOKUP_MS, FLOW_TIMEOUT_SCALE, scaledTimeout, MAESTRO_SELECTOR_KEYS, SELECTOR_FILTER_KEYS, UNSUPPORTED_SELECTOR_KEYS, ACCESSIBILITY_SELECTOR_KEYS, ACCESSIBILITY_TRAIT_FILTERS, MAESTRO_PERMISSION_KINDS, MAESTRO_PERMISSION_STATUS, SootSimBridgeFlowRunner;
56520
+ var fs33, path36, import_devices4, import_proof_frame, DEFAULT_TIMEOUT, ASSERTION_LOOKUP_MS, FLOW_TIMEOUT_SCALE, scaledTimeout, MAESTRO_SELECTOR_KEYS, UNSUPPORTED_SELECTOR_KEYS, ACCESSIBILITY_SELECTOR_KEYS, ACCESSIBILITY_TRAIT_FILTERS, MAESTRO_PERMISSION_KINDS, MAESTRO_PERMISSION_STATUS, SootSimBridgeFlowRunner;
56509
56521
  var init_bridge_flow_runner = __esm({
56510
56522
  "cli/bridge-flow-runner.ts"() {
56511
56523
  "use strict";
@@ -56559,19 +56571,6 @@ var init_bridge_flow_runner = __esm({
56559
56571
  "label",
56560
56572
  "css"
56561
56573
  ]);
56562
- SELECTOR_FILTER_KEYS = [
56563
- "childOf",
56564
- "width",
56565
- "height",
56566
- "traits",
56567
- "enabled",
56568
- "selected",
56569
- "checked",
56570
- "below",
56571
- "above",
56572
- "leftOf",
56573
- "rightOf"
56574
- ];
56575
56574
  UNSUPPORTED_SELECTOR_KEYS = ["css"];
56576
56575
  ACCESSIBILITY_SELECTOR_KEYS = [
56577
56576
  "containsChild",
@@ -56871,37 +56870,7 @@ var init_bridge_flow_runner = __esm({
56871
56870
  if (needsAccessibilityProjection(opts)) {
56872
56871
  return this.findElementAccessibilityTree(opts);
56873
56872
  }
56874
- if (opts.id != null || opts.index != null || opts.text != null && /[.*+?^$()[\]{}|\\]/.test(opts.text) || SELECTOR_FILTER_KEYS.some((key2) => opts[key2] != null)) {
56875
- return this.findElementScoped(opts);
56876
- }
56877
- return this.evaluate(`(async () => {
56878
- const test = window.__sootsimTest
56879
- if (!test) return null
56880
- let node = null
56881
- if (${JSON.stringify(!!opts.text)}) {
56882
- // maestro text selectors match rendered text and exact accessibility
56883
- // labels. the engine resolves both in one visibility-aware tree pass.
56884
- node = await test.findByTextOrLabel(${JSON.stringify(opts.text || "")})
56885
- }
56886
- if (!node && ${JSON.stringify(!!opts.id)}) {
56887
- node = (await test.findByTestId(${JSON.stringify(opts.id || "")})) || (await test.findById(${JSON.stringify(opts.id || "")}))
56888
- }
56889
- if (!node || !node.absolutePosition || !node.layout) return null
56890
- return {
56891
- nodeId: typeof node.nodeId === 'number' ? node.nodeId : null,
56892
- id: node.id || null,
56893
- testID: node.testID || null,
56894
- text: node.text || null,
56895
- absolutePosition: node.absolutePosition,
56896
- layout: node.layout,
56897
- // the engine's authoritative answer to "is this painted": layout
56898
- // bounds minus clipping and minus every frontward sibling, overlay
56899
- // and portal that fully covers it. visibility assertions read this,
56900
- // never the raw layout box.
56901
- visibleFrame: node.visibleFrame || null,
56902
- isTextInput: !!node.isTextInput,
56903
- }
56904
- })()`);
56873
+ return this.findElementScoped(opts);
56905
56874
  }
56906
56875
  // structural filters (containsChild / containsDescendants / focused) read the
56907
56876
  // engine's XCTest accessibility projection — one bridge evaluate, then the
@@ -56950,22 +56919,12 @@ var init_bridge_flow_runner = __esm({
56950
56919
  // and a relative filter holds when ANY match of its anchor satisfies it.
56951
56920
  async findElementScoped(opts) {
56952
56921
  const screen = await this.screenBounds();
56953
- const needsEveryNode = !opts.id || opts.childOf != null || SELECTOR_FILTER_KEYS.some((key2) => opts[key2] != null);
56954
56922
  return this.evaluate(`(async () => {
56955
56923
  const test = window.__sootsimTest
56956
56924
  if (!test || !test.queryAll) return null
56957
56925
  const selector = ${JSON.stringify(opts)}
56958
- // maestro matches the whole id or text against the selector's regex
56959
- const compile = (value) => {
56960
- if (!value) return null
56961
- let pattern = null
56962
- try { pattern = new RegExp('^(?:' + value + ')$') } catch {}
56963
- return (candidate) => typeof candidate === 'string' &&
56964
- (candidate === value || !!pattern?.test(candidate))
56965
- }
56966
- const all = ((await test.queryAll(${JSON.stringify(
56967
- needsEveryNode ? {} : { idPattern: opts.id }
56968
- )})) || []).filter(
56926
+ const compile = ${accessibilityTextMatcher.toString()}
56927
+ const all = ((await test.queryAll({})) || []).filter(
56969
56928
  (n) => n && n.absolutePosition && n.layout,
56970
56929
  )
56971
56930
  // maestro reads ios frames as integer edges (AXElement.boundsString)
@@ -56999,16 +56958,12 @@ var init_bridge_flow_runner = __esm({
56999
56958
  }
57000
56959
  const matchAll = (raw) => {
57001
56960
  const sel = typeof raw === 'string' ? { text: raw } : raw
57002
- const matchesId = compile(sel.id)
57003
- const matchesText = compile(sel.text)
56961
+ const matchesId = sel.id == null ? null : compile(sel.id, 'id')
56962
+ const matchesText = sel.text == null ? null : compile(sel.text, 'text')
57004
56963
  let candidates = all.filter((n) =>
57005
56964
  (!matchesId || matchesId(n.testID) || matchesId(n.id)) &&
57006
- (!matchesText || matchesText(n.text) || matchesText(n.accessibilityLabel)),
56965
+ (!matchesText || matchesText(n.text) || matchesText(n.accessibilityLabel) || matchesText(n.placeholder)),
57007
56966
  )
57008
- const literalText = candidates.filter((n) =>
57009
- n.text === sel.text || n.accessibilityLabel === sel.text,
57010
- )
57011
- if (matchesText && literalText.length > 0) candidates = literalText
57012
56967
  if (sel.width != null || sel.height != null) {
57013
56968
  const tolerance = sel.tolerance ?? 0
57014
56969
  candidates = candidates.filter((n) => {
@@ -57112,33 +57067,18 @@ var init_bridge_flow_runner = __esm({
57112
57067
  return await test.resolveTapTarget(${nodeId})
57113
57068
  })()`);
57114
57069
  }
57115
- async activatePressTarget(opts) {
57070
+ async activatePressTarget(opts, nodeId, x, y) {
57116
57071
  const replayTarget = opts.id ? { id: opts.id, testID: opts.id, text: null } : { id: null, testID: null, text: opts.text ?? null };
57117
57072
  return this.evaluate(`(async () => {
57118
57073
  const test = window.__sootsimTest
57119
57074
  if (!test) return null
57120
- const node = ${opts.id ? `(await test.findByTestId?.(${JSON.stringify(opts.id)})) || (await test.findById?.(${JSON.stringify(opts.id)}))` : `await test.findByText?.(${JSON.stringify(opts.text || "")})`}
57121
- let point = null
57122
- if (node?.absolutePosition && node?.layout) {
57123
- point = {
57124
- x: node.absolutePosition.x + node.layout.width / 2,
57125
- y: node.absolutePosition.y + node.layout.height / 2,
57126
- }
57127
- if (typeof node.nodeId === 'number' && test.resolveTapTarget) {
57128
- const resolved = await test.resolveTapTarget(node.nodeId)
57129
- if (
57130
- resolved &&
57131
- Number.isFinite(resolved.cx) &&
57132
- Number.isFinite(resolved.cy)
57133
- ) {
57134
- point = { x: resolved.cx, y: resolved.cy }
57135
- }
57136
- }
57137
- }
57138
- ${opts.id ? `const direct = await test.activatePressById?.(${JSON.stringify(opts.id)})` : `const direct = await test.activatePressByText?.(${JSON.stringify(
57139
- opts.text || ""
57140
- )})`}
57141
- if (direct?.ok && point) {
57075
+ let point = { x: ${x}, y: ${y} }
57076
+ const resolved = await test.resolveTapTarget(${nodeId})
57077
+ if (resolved && Number.isFinite(resolved.cx) && Number.isFinite(resolved.cy)) {
57078
+ point = { x: resolved.cx, y: resolved.cy }
57079
+ }
57080
+ const direct = await test.activatePressAt(point.x, point.y, ${nodeId})
57081
+ if (direct?.ok) {
57142
57082
  window.dispatchEvent(
57143
57083
  new CustomEvent('sootsim:agentAction', {
57144
57084
  detail: { type: 'tap', x: point.x, y: point.y, target: ${JSON.stringify(
@@ -57305,8 +57245,12 @@ var init_bridge_flow_runner = __esm({
57305
57245
  break;
57306
57246
  }
57307
57247
  }
57308
- const narrowed = opts.index != null || SELECTOR_FILTER_KEYS.some((key2) => opts[key2] != null) || ACCESSIBILITY_SELECTOR_KEYS.some((key2) => opts[key2] != null);
57309
- const direct = element || !narrowed ? await this.activatePressTarget(opts) : null;
57248
+ const direct = typeof element?.nodeId === "number" ? await this.activatePressTarget(
57249
+ opts,
57250
+ element.nodeId,
57251
+ element.absolutePosition.x + element.layout.width / 2,
57252
+ element.absolutePosition.y + element.layout.height / 2
57253
+ ) : null;
57310
57254
  if (direct?.ok) {
57311
57255
  await this.settleAfterInput();
57312
57256
  return;
@@ -58005,7 +57949,9 @@ var init_bridge_flow_runner = __esm({
58005
57949
  const appId = readStringKey(state, "activeApp") || readRecentShellAppId(state);
58006
57950
  if (!appId) throw new Error("launchApp: no simulator app to set permissions for");
58007
57951
  for (const [kind, status] of statuses) {
58008
- await this.callTest("permissionSetAppPermission", appId, kind, { status });
57952
+ await this.callTest("permissionSetAppPermission", appId, kind, {
57953
+ status
57954
+ });
58009
57955
  }
58010
57956
  }
58011
57957
  async rebaseEventRecorderToVideoStart(videoStartedAtMs) {