peachsim 0.1.749 → 0.1.751

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 (75) hide show
  1. package/README.md +4 -0
  2. package/cli/bridge-flow-runner.ts +1 -5
  3. package/cli/commands/inspect/settling.ts +7 -2
  4. package/cli/flow-file.ts +17 -3
  5. package/dist-lib/agent-daemon-client.cjs +1 -1
  6. package/dist-lib/agent-events.cjs +1 -1
  7. package/dist-lib/agent-identity.cjs +1 -1
  8. package/dist-lib/agent-sessions.cjs +1 -1
  9. package/dist-lib/attached-projects.cjs +1 -1
  10. package/dist-lib/auth/shared-session.cjs +1 -1
  11. package/dist-lib/backend-origin.cjs +1 -1
  12. package/dist-lib/beta.cjs +1 -1
  13. package/dist-lib/beta.mjs +1 -1
  14. package/dist-lib/bridge-constants.cjs +1 -1
  15. package/dist-lib/bridge-contract-input.cjs +1 -1
  16. package/dist-lib/bridge-contract-input.mjs +1 -1
  17. package/dist-lib/bridge-contract.cjs +1 -1
  18. package/dist-lib/bridge-contract.mjs +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 +11 -3
  30. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  31. package/dist-lib/home-paths.cjs +1 -1
  32. package/dist-lib/host/bridge-host.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  34. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  35. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  36. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  37. package/dist-lib/host/websocket-proxy.cjs +1 -1
  38. package/dist-lib/index.cjs +5 -3
  39. package/dist-lib/jump-to-source-babel.cjs +1 -1
  40. package/dist-lib/jump-to-source-native.cjs +1 -1
  41. package/dist-lib/kotlin-host.cjs +1 -1
  42. package/dist-lib/menu.cjs +1 -1
  43. package/dist-lib/menu.mjs +1 -1
  44. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  46. package/dist-lib/metro-production-bundle.cjs +1 -1
  47. package/dist-lib/metro-production-bundle.mjs +1 -1
  48. package/dist-lib/metro.cjs +1 -1
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/plist.cjs +1 -1
  54. package/dist-lib/plist.mjs +1 -1
  55. package/dist-lib/profiles.cjs +1 -1
  56. package/dist-lib/public-brand.cjs +1 -1
  57. package/dist-lib/react-native-host-modules.cjs +1 -1
  58. package/dist-lib/react-native-host-modules.mjs +1 -1
  59. package/dist-lib/render-mode.cjs +1 -1
  60. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  61. package/dist-lib/sdk.cjs +5 -3
  62. package/dist-lib/sdk.mjs +5 -3
  63. package/dist-lib/skills.cjs +17 -14
  64. package/dist-lib/swift-compile.cjs +1 -1
  65. package/dist-lib/swift-compile.mjs +1 -1
  66. package/dist-lib/swift-package.cjs +1 -1
  67. package/dist-lib/swift-package.mjs +1 -1
  68. package/dist-lib/swift-submit.cjs +1 -1
  69. package/dist-lib/swift-submit.mjs +1 -1
  70. package/dist-lib/swift-toolchain.cjs +1 -1
  71. package/dist-lib/swift.cjs +1 -1
  72. package/dist-lib/vite-swift.cjs +1 -1
  73. package/dist-lib/vite.cjs +1 -1
  74. package/package.json +1 -1
  75. package/src/vite-plugin.ts +7 -2
package/README.md CHANGED
@@ -216,6 +216,10 @@ bridge always addresses the **shell worker**, never an undifferentiated sim.
216
216
  | inspect / SDK command surface | Runtime inspection + interaction verbs (describe, find, do tap, get errors, wait, layout, settle). Re-exported as `peachsim/sdk` so programmatic callers drive a sim the same way the CLI does. | `cli/commands/inspect/core.ts`, `cli/commands/inspect/actions.ts`, `cli/commands/inspect.ts`, `src/sdk.ts` |
217
217
  | bridge-contract input parsers | Turn untrusted JSON into typed bridge-contract arguments, so a transport in front of a sim validates request bodies once instead of writing a second reader. | `src/bridge-contract-input.ts`, `src/bridge-contract.ts` |
218
218
  | Maestro / Detox runners | Drop-in test compatibility. `bridge-flow-runner.ts` runs Maestro YAML and recorded flows over the bridge; `detox/` provides a `by`/`element`/`expect`/`device` driver + jest preset so existing Detox suites run unchanged. | `cli/bridge-flow-runner.ts`, `cli/commands/maestro.ts`, `cli/commands/detox.ts`, `detox/index.ts`, `detox/jest-preset.cjs` |
219
+
220
+ Maestro YAML header `onFlowStart` and `onFlowComplete` hooks reach the same
221
+ runner as body hooks, including nested `runFlow` files. A header reset flow
222
+ therefore runs before assertions in each flow.
219
223
  | sim drivers | Launch or attach the actual sim page. Playwright owns isolated browser profiles; Electron owns the native desktop surface. The current sim is reused unless `--new`, `--profile`, or `--ephemeral` requests a separate one. | `cli/drivers/index.ts`, `cli/drivers/registry.ts`, `cli/drivers/electron.ts`, `cli/drivers/playwright.ts` |
220
224
  | SootSimBridgeHost (serve/daemon) | The bridge process (`peach serve`, or autostarted as the daemon via launchd/systemd). HTTP+WS hub on `:7668`: relays commands between CLI clients and registered sims; also serves runtime HTTP, `/__server-scan`, and fetch/WS proxies. | `src/host/bridge-host.ts`, `cli/commands/serve.ts`, `cli/commands/daemon.ts`, `src/home-paths.ts` |
221
225
  | AgentHost + sessions | Agent-routing extension of the host: owns the single FIFO reader per agent session and fans `agent:event`/`session-status` pushes to every WS subscriber. Backed by agent-sessions + attached-projects stores. | `src/host/agent-host.ts`, `src/agent-sessions.ts`, `src/attached-projects.ts`, `src/agent-daemon-client.ts` |
@@ -1,7 +1,6 @@
1
1
  import * as fs from 'fs'
2
2
  import * as path from 'path'
3
3
  import { devices, type DeviceModel } from 'peach-engine/settings/devices'
4
- import yaml from 'yaml'
5
4
  import { REQUIRED_IDENTICAL_FLOW_FRAMES, framesIdentical } from '../detox/proof-frame.cjs'
6
5
  import { flowTimeoutScale } from '../src/flow-timeout-scale'
7
6
  import { composeFramedScreenshot } from '../src/screenshots/frame-compose'
@@ -902,10 +901,7 @@ function normalizeBareStringStep(verb: string): MaestroStep {
902
901
  // values produced mid-flow (runScript output.*, copyTextFrom) resolve
903
902
  // correctly in later steps.
904
903
  export function parseFlowSteps(content: string): MaestroStep[] {
905
- const parts = content.split(/^---$/m)
906
- const candidate = parts.length > 1 ? parts[parts.length - 1] : content
907
- const parsed = yaml.parse(candidate)
908
- return Array.isArray(parsed) ? parsed : []
904
+ return parseFlowFile(content).steps
909
905
  }
910
906
 
911
907
  export class SootSimBridgeFlowRunner {
@@ -11,6 +11,9 @@ export type WaitForSootsimIdleOptions = {
11
11
  simId?: string
12
12
  maxMs: number
13
13
  pollMs?: number
14
+ // stillness must hold for stablePolls * pollMs. it is measured in time, so
15
+ // a host where each poll costs more than pollMs proves the same stillness
16
+ // in fewer polls instead of paying the count at its slower rate.
14
17
  stablePolls?: number
15
18
  strict?: boolean
16
19
  // also require no newly painted frame across the window, the way maestro
@@ -45,7 +48,8 @@ export async function waitForSootsimIdle({
45
48
  const start = Date.now()
46
49
  const deadline = start + ${Math.max(0, Math.round(maxMs))}
47
50
  const pollMs = ${Math.max(1, Math.round(pollMs))}
48
- const requiredStablePolls = ${Math.max(1, Math.round(stablePolls))}
51
+ const requiredStillMs = ${Math.max(1, Math.round(stablePolls)) * Math.max(1, Math.round(pollMs))}
52
+ const minimumStablePolls = ${Math.min(2, Math.max(1, Math.round(stablePolls)))}
49
53
  const strict = ${strict ? 'true' : 'false'}
50
54
  const paintStill = ${paintStill ? 'true' : 'false'}
51
55
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
@@ -185,7 +189,8 @@ export async function waitForSootsimIdle({
185
189
  // network is genuinely quiet OR it has refused to quiet within the
186
190
  // grace (continuous background traffic must not block forever).
187
191
  if (
188
- stable >= requiredStablePolls &&
192
+ stable >= minimumStablePolls &&
193
+ Date.now() - visuallyStillSince >= requiredStillMs &&
189
194
  (networkQuiet || Date.now() - visuallyStillSince >= networkQuietGraceMs)
190
195
  ) {
191
196
  return { settled: true, elapsed: Date.now() - start, blockedBy: '' }
package/cli/flow-file.ts CHANGED
@@ -23,6 +23,8 @@ export interface FlowFrontmatter {
23
23
  // junitClassname are reserved: they set the testcase attributes and are
24
24
  // not emitted as properties.
25
25
  properties?: Record<string, string>
26
+ onFlowStart?: unknown[]
27
+ onFlowComplete?: unknown[]
26
28
  }
27
29
 
28
30
  // parse flow file. accepts three shapes:
@@ -42,8 +44,20 @@ export function parseFlowFile(content: string): {
42
44
  } {
43
45
  let frontmatter: FlowFrontmatter = {}
44
46
  let body = content
45
- const normalizeSteps = (steps: unknown): any[] => {
46
- return Array.isArray(steps) ? steps : []
47
+ const normalizeSteps = (
48
+ steps: unknown,
49
+ metadata: FlowFrontmatter = frontmatter,
50
+ ): any[] => {
51
+ if (!Array.isArray(steps)) return []
52
+ return [
53
+ ...(Array.isArray(metadata.onFlowStart)
54
+ ? [{ onFlowStart: metadata.onFlowStart }]
55
+ : []),
56
+ ...steps,
57
+ ...(Array.isArray(metadata.onFlowComplete)
58
+ ? [{ onFlowComplete: metadata.onFlowComplete }]
59
+ : []),
60
+ ]
47
61
  }
48
62
 
49
63
  // shape 2: leading ---\n<fm>\n---\n<body>
@@ -69,7 +83,7 @@ export function parseFlowFile(content: string): {
69
83
  const st = docs[docs.length - 1].toJS()
70
84
  return {
71
85
  frontmatter: fm && typeof fm === 'object' ? fm : {},
72
- steps: normalizeSteps(st),
86
+ steps: normalizeSteps(st, fm ?? {}),
73
87
  }
74
88
  }
75
89
  } catch (e) {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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/beta.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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/beta.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/beta.ts
4
4
  var IS_BETA = true;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var SIM_LONG_PRESS_MAX_MS = 5e3;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var REFUSED_PERFORM_STEP_TYPES = [
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/capture-contract.ts
4
4
  var RNX_SCREEN_CAPTURE_VERSION = 1;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
4
  var RNX_CLOUD_MAX_ARTIFACT_BYTES = 20 * 1024 * 1024;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/cloud-test-args.ts
4
4
  var CLOUD_TEST_ARGS_MAX_COUNT = 32;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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;
@@ -2444,13 +2444,21 @@ var WEBVIEW_FRAME_BRIDGE_SOURCE = `function (config) {
2444
2444
  if (payload.__sootsimWebViewKind === 'evaluateJavaScript') {
2445
2445
  event.stopImmediatePropagation();
2446
2446
  var result;
2447
+ window[Symbol.for('peach.webkitException')] = {};
2447
2448
  try {
2448
2449
  var value = (0, eval)(String(payload.js || ''));
2449
2450
  try { result = value === undefined ? { undefined: true } : { value: nativeValue(value, []) }; }
2450
2451
  catch (_) { result = { errorCode: 5, errorInfo: { NSLocalizedDescription: 'JavaScript execution returned a result of an unsupported type' } }; }
2451
2452
  } catch (error) {
2452
- // DEGRADED(PEACH-SWIFT-WEBKIT-EXCEPTION-METADATA): native exception line/column remain unbuilt.
2453
- result = { errorCode: 4, errorInfo: { NSLocalizedDescription: 'A JavaScript exception occurred', WKJavaScriptExceptionMessage: String(error), WKJavaScriptExceptionSourceURL: String(document.baseURI) } };
2453
+ var metadata = window[Symbol.for('peach.webkitException')] || {};
2454
+ var location = metadata.value === error && metadata.thrown ? metadata.thrown : error instanceof SyntaxError ? metadata.thrown : error instanceof ReferenceError ? metadata.read : metadata.call;
2455
+ var message = String(error);
2456
+ if (error instanceof ReferenceError && metadata.read) message = "ReferenceError: Can't find variable: " + metadata.read.name;
2457
+ if (error instanceof TypeError && metadata.call && metadata.call.property && metadata.receiver != null && !Reflect.has(Object(metadata.receiver), metadata.call.property)) {
2458
+ message = "TypeError: " + metadata.call.callee + " is not a function. (In '" + metadata.call.source + "', '" + metadata.call.callee + "' is undefined)";
2459
+ }
2460
+ result = { errorCode: 4, errorInfo: { NSLocalizedDescription: 'A JavaScript exception occurred', WKJavaScriptExceptionMessage: message, WKJavaScriptExceptionSourceURL: String(document.baseURI) } };
2461
+ if (location) { result.errorInfo.WKJavaScriptExceptionLineNumber = location.line; result.errorInfo.WKJavaScriptExceptionColumnNumber = location.column; }
2454
2462
  }
2455
2463
  result.title = String(document.title || '');
2456
2464
  window.parent.postMessage({ __sootsimWebViewKind: 'webKitEvaluation', requestId: payload.requestId, result: result }, '*');
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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;
@@ -2504,7 +2504,8 @@ async function waitForSootsimIdle({
2504
2504
  const start = Date.now()
2505
2505
  const deadline = start + ${Math.max(0, Math.round(maxMs))}
2506
2506
  const pollMs = ${Math.max(1, Math.round(pollMs))}
2507
- const requiredStablePolls = ${Math.max(1, Math.round(stablePolls))}
2507
+ const requiredStillMs = ${Math.max(1, Math.round(stablePolls)) * Math.max(1, Math.round(pollMs))}
2508
+ const minimumStablePolls = ${Math.min(2, Math.max(1, Math.round(stablePolls)))}
2508
2509
  const strict = ${strict ? "true" : "false"}
2509
2510
  const paintStill = ${paintStill ? "true" : "false"}
2510
2511
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
@@ -2644,7 +2645,8 @@ async function waitForSootsimIdle({
2644
2645
  // network is genuinely quiet OR it has refused to quiet within the
2645
2646
  // grace (continuous background traffic must not block forever).
2646
2647
  if (
2647
- stable >= requiredStablePolls &&
2648
+ stable >= minimumStablePolls &&
2649
+ Date.now() - visuallyStillSince >= requiredStillMs &&
2648
2650
  (networkQuiet || Date.now() - visuallyStillSince >= networkQuietGraceMs)
2649
2651
  ) {
2650
2652
  return { settled: true, elapsed: Date.now() - start, blockedBy: '' }
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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;
@@ -1530,7 +1530,8 @@ async function waitForSootsimIdle({
1530
1530
  const start = Date.now()
1531
1531
  const deadline = start + ${Math.max(0, Math.round(maxMs))}
1532
1532
  const pollMs = ${Math.max(1, Math.round(pollMs))}
1533
- const requiredStablePolls = ${Math.max(1, Math.round(stablePolls))}
1533
+ const requiredStillMs = ${Math.max(1, Math.round(stablePolls)) * Math.max(1, Math.round(pollMs))}
1534
+ const minimumStablePolls = ${Math.min(2, Math.max(1, Math.round(stablePolls)))}
1534
1535
  const strict = ${strict ? "true" : "false"}
1535
1536
  const paintStill = ${paintStill ? "true" : "false"}
1536
1537
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
@@ -1670,7 +1671,8 @@ async function waitForSootsimIdle({
1670
1671
  // network is genuinely quiet OR it has refused to quiet within the
1671
1672
  // grace (continuous background traffic must not block forever).
1672
1673
  if (
1673
- stable >= requiredStablePolls &&
1674
+ stable >= minimumStablePolls &&
1675
+ Date.now() - visuallyStillSince >= requiredStillMs &&
1674
1676
  (networkQuiet || Date.now() - visuallyStillSince >= networkQuietGraceMs)
1675
1677
  ) {
1676
1678
  return { settled: true, elapsed: Date.now() - start, blockedBy: '' }
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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);
@@ -1427,7 +1427,8 @@ async function waitForSootsimIdle({
1427
1427
  const start = Date.now()
1428
1428
  const deadline = start + ${Math.max(0, Math.round(maxMs))}
1429
1429
  const pollMs = ${Math.max(1, Math.round(pollMs))}
1430
- const requiredStablePolls = ${Math.max(1, Math.round(stablePolls))}
1430
+ const requiredStillMs = ${Math.max(1, Math.round(stablePolls)) * Math.max(1, Math.round(pollMs))}
1431
+ const minimumStablePolls = ${Math.min(2, Math.max(1, Math.round(stablePolls)))}
1431
1432
  const strict = ${strict ? "true" : "false"}
1432
1433
  const paintStill = ${paintStill ? "true" : "false"}
1433
1434
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
@@ -1567,7 +1568,8 @@ async function waitForSootsimIdle({
1567
1568
  // network is genuinely quiet OR it has refused to quiet within the
1568
1569
  // grace (continuous background traffic must not block forever).
1569
1570
  if (
1570
- stable >= requiredStablePolls &&
1571
+ stable >= minimumStablePolls &&
1572
+ Date.now() - visuallyStillSince >= requiredStillMs &&
1571
1573
  (networkQuiet || Date.now() - visuallyStillSince >= networkQuietGraceMs)
1572
1574
  ) {
1573
1575
  return { settled: true, elapsed: Date.now() - start, blockedBy: '' }
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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;
@@ -43824,7 +43824,8 @@ async function waitForSootsimIdle({
43824
43824
  const start = Date.now()
43825
43825
  const deadline = start + ${Math.max(0, Math.round(maxMs))}
43826
43826
  const pollMs = ${Math.max(1, Math.round(pollMs))}
43827
- const requiredStablePolls = ${Math.max(1, Math.round(stablePolls))}
43827
+ const requiredStillMs = ${Math.max(1, Math.round(stablePolls)) * Math.max(1, Math.round(pollMs))}
43828
+ const minimumStablePolls = ${Math.min(2, Math.max(1, Math.round(stablePolls)))}
43828
43829
  const strict = ${strict ? "true" : "false"}
43829
43830
  const paintStill = ${paintStill ? "true" : "false"}
43830
43831
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
@@ -43964,7 +43965,8 @@ async function waitForSootsimIdle({
43964
43965
  // network is genuinely quiet OR it has refused to quiet within the
43965
43966
  // grace (continuous background traffic must not block forever).
43966
43967
  if (
43967
- stable >= requiredStablePolls &&
43968
+ stable >= minimumStablePolls &&
43969
+ Date.now() - visuallyStillSince >= requiredStillMs &&
43968
43970
  (networkQuiet || Date.now() - visuallyStillSince >= networkQuietGraceMs)
43969
43971
  ) {
43970
43972
  return { settled: true, elapsed: Date.now() - start, blockedBy: '' }
@@ -44049,8 +44051,13 @@ var init_permissions = __esm({
44049
44051
  function parseFlowFile(content) {
44050
44052
  let frontmatter = {};
44051
44053
  let body = content;
44052
- const normalizeSteps = (steps2) => {
44053
- return Array.isArray(steps2) ? steps2 : [];
44054
+ const normalizeSteps = (steps2, metadata = frontmatter) => {
44055
+ if (!Array.isArray(steps2)) return [];
44056
+ return [
44057
+ ...Array.isArray(metadata.onFlowStart) ? [{ onFlowStart: metadata.onFlowStart }] : [],
44058
+ ...steps2,
44059
+ ...Array.isArray(metadata.onFlowComplete) ? [{ onFlowComplete: metadata.onFlowComplete }] : []
44060
+ ];
44054
44061
  };
44055
44062
  const fmMatch = content.match(/^---\n([\s\S]*?)\n---\n?/);
44056
44063
  if (fmMatch) {
@@ -44071,7 +44078,7 @@ function parseFlowFile(content) {
44071
44078
  const st = docs[docs.length - 1].toJS();
44072
44079
  return {
44073
44080
  frontmatter: fm && typeof fm === "object" ? fm : {},
44074
- steps: normalizeSteps(st)
44081
+ steps: normalizeSteps(st, fm ?? {})
44075
44082
  };
44076
44083
  }
44077
44084
  } catch (e) {
@@ -44791,19 +44798,15 @@ function normalizeBareStringStep(verb) {
44791
44798
  }
44792
44799
  }
44793
44800
  function parseFlowSteps(content) {
44794
- const parts = content.split(/^---$/m);
44795
- const candidate = parts.length > 1 ? parts[parts.length - 1] : content;
44796
- const parsed2 = import_yaml3.default.parse(candidate);
44797
- return Array.isArray(parsed2) ? parsed2 : [];
44801
+ return parseFlowFile(content).steps;
44798
44802
  }
44799
- var fs28, path31, import_devices4, import_yaml3, 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;
44803
+ var fs28, path31, 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;
44800
44804
  var init_bridge_flow_runner = __esm({
44801
44805
  "cli/bridge-flow-runner.ts"() {
44802
44806
  "use strict";
44803
44807
  fs28 = __toESM(require("fs"), 1);
44804
44808
  path31 = __toESM(require("path"), 1);
44805
44809
  import_devices4 = require("peach-engine/settings/devices");
44806
- import_yaml3 = __toESM(require("yaml"), 1);
44807
44810
  import_proof_frame = __toESM(require_proof_frame(), 1);
44808
44811
  init_flow_timeout_scale();
44809
44812
  init_frame_compose();
@@ -47189,7 +47192,7 @@ var skill3 = {
47189
47192
  async execute(params, context) {
47190
47193
  const fs30 = await import("fs");
47191
47194
  const path33 = await import("path");
47192
- const yaml3 = await import("yaml");
47195
+ const yaml2 = await import("yaml");
47193
47196
  const { DEFAULT_SOOTSIM_BRIDGE_PORT: DEFAULT_SOOTSIM_BRIDGE_PORT3 } = await Promise.resolve().then(() => (init_bridge_constants(), bridge_constants_exports));
47194
47197
  const { SootSimBridgeHost: SootSimBridgeHost2 } = await Promise.resolve().then(() => (init_bridge_host(), bridge_host_exports));
47195
47198
  const { createBridge: createBridge2 } = await Promise.resolve().then(() => (init_ws_bridge(), ws_bridge_exports));
@@ -47201,7 +47204,7 @@ var skill3 = {
47201
47204
  const flowContent = fs30.readFileSync(params.flowPath, "utf8");
47202
47205
  const fmMatch = flowContent.match(/^---\n([\s\S]*?)\n---\n?/);
47203
47206
  const stepsBody = fmMatch ? flowContent.slice(fmMatch[0].length) : flowContent;
47204
- const steps = yaml3.parse(stepsBody);
47207
+ const steps = yaml2.parse(stepsBody);
47205
47208
  const beforeIds = new Set(host2.listSims().map((sim) => sim.id));
47206
47209
  await runOpenCommand2([context.url, "--new", "--headless", "--no-describe"], {
47207
47210
  port: DEFAULT_SOOTSIM_BRIDGE_PORT3
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (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.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.749 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.751 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.749",
3
+ "version": "0.1.751",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -600,7 +600,9 @@ const ENGINE_WORKER_BOOT_CLOSURES: WorkerBootClosure[] = [
600
600
  // each carries only its own CanvasKit glue: 3,263,311 graphite and
601
601
  // 3,256,832 ganesh bytes when the split landed, down from 3,386,929 with both.
602
602
  { entry: 'src/render-worker/shell-worker-entry.ts', maxBytes: 3_310_000 },
603
- { entry: 'src/render-worker/shell-worker-ganesh-entry.ts', maxBytes: 3_300_000 },
603
+ // nate, 2026-10-06: "we can increase Ganesh. We can increase that to like 3.6",
604
+ // as work moves from the javascript into native code.
605
+ { entry: 'src/render-worker/shell-worker-ganesh-entry.ts', maxBytes: 3_600_000 },
604
606
  { entry: 'src/render-worker/compositor-worker-entry.ts', maxBytes: 1_200_000 },
605
607
  { entry: 'src/render-worker/compositor-worker-ganesh-entry.ts', maxBytes: 1_110_000 },
606
608
  ]
@@ -653,13 +655,16 @@ export function workerBootChunkPlugin(closures: WorkerBootClosure[]): Plugin {
653
655
  define: { 'import.meta.url': 'globalThis.location.href' },
654
656
  sourcemap: true,
655
657
  })
658
+ if (!transformed.map) this.error('worker transform produced no source map')
656
659
  const compact = await minify(transformed.code, {
657
660
  module: true,
658
661
  compress: { passes: 2 },
659
662
  mangle: true,
660
- sourceMap: { content: transformed.map, asObject: true },
663
+ sourceMap: { content: JSON.stringify(transformed.map) },
661
664
  })
662
665
  if (!compact.code) this.error('worker minification produced no code')
666
+ if (typeof compact.map !== 'string')
667
+ this.error('worker minification produced no encoded source map')
663
668
  return { code: compact.code, map: compact.map }
664
669
  },
665
670
  },