peachsim 0.1.2247 → 0.1.2249

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 (111) hide show
  1. package/cli/bin.ts +5 -0
  2. package/cli/bridge-flow-runner.ts +28 -2
  3. package/cli/cloud-dispatch.ts +2 -0
  4. package/cli/commands/control.ts +2 -2
  5. package/cli/commands/coverage-swift.ts +3 -3
  6. package/cli/commands/inspect/settling.ts +35 -4
  7. package/cli/commands/shell-url.ts +6 -0
  8. package/cli/commands/skills.ts +6 -3
  9. package/cli/drivers/playwright.ts +2 -0
  10. package/dist-lib/agent-daemon-client.cjs +1 -29
  11. package/dist-lib/agent-events.cjs +1 -1
  12. package/dist-lib/attached-projects.cjs +1 -10
  13. package/dist-lib/auth/shared-session.cjs +1 -1
  14. package/dist-lib/backend-origin.cjs +1 -1
  15. package/dist-lib/beta.cjs +1 -1
  16. package/dist-lib/beta.mjs +1 -1
  17. package/dist-lib/bridge-constants.cjs +1 -1
  18. package/dist-lib/bridge-contract-input.cjs +1 -1
  19. package/dist-lib/bridge-contract-input.mjs +1 -1
  20. package/dist-lib/bridge-contract.cjs +1 -1
  21. package/dist-lib/bridge-contract.mjs +1 -1
  22. package/dist-lib/bundle-channel.cjs +4300 -4531
  23. package/dist-lib/capture-contract.cjs +1 -1
  24. package/dist-lib/capture-contract.mjs +1 -1
  25. package/dist-lib/cloud-contract.cjs +1 -1
  26. package/dist-lib/cloud-contract.mjs +1 -1
  27. package/dist-lib/cloud-test-args.cjs +1 -1
  28. package/dist-lib/cloud-test-args.mjs +1 -1
  29. package/dist-lib/cloud.cjs +1 -1
  30. package/dist-lib/cloud.mjs +1 -1
  31. package/dist-lib/config.cjs +1 -1
  32. package/dist-lib/config.mjs +1 -1
  33. package/dist-lib/detox/index.cjs +32 -315
  34. package/dist-lib/dev-bundle-resolution.cjs +1 -12
  35. package/dist-lib/expo-swift-bundle.cjs +3579 -3864
  36. package/dist-lib/expo-swift-metadata.cjs +1 -1
  37. package/dist-lib/expo-swift-metadata.mjs +1 -1
  38. package/dist-lib/home-paths.cjs +1 -1
  39. package/dist-lib/host/bridge-host.cjs +4376 -4682
  40. package/dist-lib/host/fetch-proxy-handler.cjs +97 -713
  41. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  42. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  43. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  44. package/dist-lib/host/websocket-proxy.cjs +1 -1
  45. package/dist-lib/index.cjs +669 -1116
  46. package/dist-lib/jump-to-source-babel.cjs +1 -1
  47. package/dist-lib/jump-to-source-native.cjs +1 -1
  48. package/dist-lib/kotlin-host.cjs +3 -24
  49. package/dist-lib/menu.cjs +1 -1
  50. package/dist-lib/menu.mjs +1 -1
  51. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  52. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  53. package/dist-lib/metro-production-bundle.cjs +1 -10
  54. package/dist-lib/metro-production-bundle.mjs +1 -12
  55. package/dist-lib/metro.cjs +546 -975
  56. package/dist-lib/native-app-identity-project.cjs +299 -592
  57. package/dist-lib/native-app-identity-project.mjs +11 -232
  58. package/dist-lib/native-app-identity.cjs +1 -1
  59. package/dist-lib/native-app-identity.mjs +1 -1
  60. package/dist-lib/native-firebase-metadata.cjs +1 -1
  61. package/dist-lib/native-firebase-metadata.mjs +1 -1
  62. package/dist-lib/pdfium-raster.cjs +1 -1
  63. package/dist-lib/pdfium-raster.mjs +1 -1
  64. package/dist-lib/plist.cjs +1 -1
  65. package/dist-lib/plist.mjs +1 -1
  66. package/dist-lib/profiles.cjs +1 -1
  67. package/dist-lib/public-brand.cjs +1 -1
  68. package/dist-lib/public-origins-lib-esm.json +28 -96
  69. package/dist-lib/public-origins-lib.json +172 -1058
  70. package/dist-lib/react-native-host-modules.cjs +1 -1
  71. package/dist-lib/react-native-host-modules.mjs +1 -1
  72. package/dist-lib/reap-browser.cjs +1 -1
  73. package/dist-lib/scripts/dev-server-scanner.cjs +1 -34
  74. package/dist-lib/sdk.cjs +31 -7
  75. package/dist-lib/sdk.mjs +31 -7
  76. package/dist-lib/skills.cjs +4960 -5345
  77. package/dist-lib/swift-compile.cjs +1185 -1107
  78. package/dist-lib/swift-compile.mjs +137 -54
  79. package/dist-lib/swift-package.cjs +1 -1
  80. package/dist-lib/swift-package.mjs +1 -1
  81. package/dist-lib/swift-submit.cjs +1 -1
  82. package/dist-lib/swift-submit.mjs +1 -1
  83. package/dist-lib/swift-toolchain.cjs +1 -1
  84. package/dist-lib/swift.cjs +1 -1
  85. package/dist-lib/vite-swift.cjs +1568 -1672
  86. package/dist-lib/vite.cjs +173 -763
  87. package/dist-lib/worklet-executable.cjs +1 -1
  88. package/dist-lib/worklet-executable.mjs +1 -1
  89. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +3 -0
  90. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
  91. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -0
  92. package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +8 -0
  93. package/dist-types/packages/peach-engine/src/render-worker/webview-capture-protocol.d.ts +1 -0
  94. package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +10 -2
  95. package/dist-types/packages/peach-globals/src/globalsContract.d.ts +5 -0
  96. package/kotlin/sdk.tar.gz +0 -0
  97. package/package.json +1 -1
  98. package/runtime-companion.json +1 -1
  99. package/sdk/ios/wasm/include/math.h +1 -1
  100. package/sdk/ios/wasm/include/pthread.h +1 -1
  101. package/src/assetCatalogContract.ts +6 -0
  102. package/src/kotlin-module.ts +3 -3
  103. package/src/sfSymbolMetricsContract.ts +73 -37
  104. package/src/swift-compile.ts +99 -7
  105. package/src/swift-coverage/provenance.ts +4 -4
  106. package/src/swift-guest-image-ledger.ts +10 -5
  107. package/src/swift-guest-link.ts +20 -14
  108. package/src/swift-objc-sdk.ts +34 -21
  109. package/src/swift-objc-standin.ts +7 -7
  110. package/src/swift-standins.ts +11 -8
  111. package/src/swift-wasm-prune.ts +30 -0
package/cli/bin.ts CHANGED
@@ -11,6 +11,7 @@
11
11
  // none of them has claimed the run.
12
12
 
13
13
  import { existsSync, readFileSync } from 'node:fs'
14
+ import { enableCompileCache } from 'node:module'
14
15
  import { homedir } from 'node:os'
15
16
  import { basename, dirname, join } from 'node:path'
16
17
  import { PEACH_FORKED_SCRIPT_ENV } from '../src/forked-script-contract'
@@ -18,6 +19,10 @@ import { isRecord } from '../src/is-record'
18
19
  import { exitWithFlushedOutput } from '../src/process-output'
19
20
  import { RNX_INTERNAL_COMMAND } from './internal-child-contract'
20
21
 
22
+ // node keeps compiled module code in its temp directory, so a later command skips compiling the
23
+ // cli and runtime modules it imports from here on
24
+ enableCompileCache()
25
+
21
26
  // the CLI inside a packaged app (Contents/Resources/bin/peach) runs in that
22
27
  // app's home with its manifest, as the app's launcher runs its own serve, so
23
28
  // the runtime the app ships serves every command; an explicit PEACH_HOME wins
@@ -1116,6 +1116,8 @@ export class SootSimBridgeFlowRunner {
1116
1116
  private appStopped = false
1117
1117
  private animationClockLocked = false
1118
1118
  private flowDepth = 0
1119
+ // the geometry revision the last settle proved still, until the next settle starts
1120
+ private stillRevision: string | null = null
1119
1121
  private profilingEnabled = false
1120
1122
  private recordingEnabled = false
1121
1123
  private recordingAccessChecked = false
@@ -1933,6 +1935,8 @@ export class SootSimBridgeFlowRunner {
1933
1935
  element = await this.findElement(opts, preferHittable)
1934
1936
  }
1935
1937
  if (!element) return element
1938
+ // a frame the last settle proved still cannot be mid-transition
1939
+ if (revision !== null && revision === this.stillRevision) return element
1936
1940
  // a found element can still be mid-transition (modal slide-in, sheet
1937
1941
  // spring, list settle). resolving tap coordinates against a moving frame
1938
1942
  // taps whatever occupies that point after the animation lands — a 3pc
@@ -2026,7 +2030,7 @@ export class SootSimBridgeFlowRunner {
2026
2030
  const opts = typeof target === 'string' ? { text: target } : target
2027
2031
  // maestro settles before resolving a tap's final position as well as after
2028
2032
  // delivering it. a preceding assertion does not settle a pending update.
2029
- await this.waitForAppToSettle()
2033
+ await this.waitForAppToSettle({ beforeAction: true })
2030
2034
  const repeat = Math.max(1, Math.trunc(opts.repeat ?? 1))
2031
2035
  const repeatDelay = opts.delay !== undefined && opts.delay >= 0 ? opts.delay : 100
2032
2036
  // maestro Maestro.hierarchyBasedTap with a TapRepeat: every tap is padded
@@ -3201,7 +3205,9 @@ export class SootSimBridgeFlowRunner {
3201
3205
  // ios waits up to three seconds for a still screen, then compares native
3202
3206
  // hierarchies.
3203
3207
  // the observer overlaps those reads to keep this command's existing budget.
3204
- private async waitForAppToSettle() {
3208
+ private async waitForAppToSettle({ beforeAction = false } = {}) {
3209
+ const stillSince = beforeAction ? this.stillRevision : null
3210
+ this.stillRevision = null
3205
3211
  try {
3206
3212
  const result = await waitForSootsimIdle({
3207
3213
  bridge: this.bridge,
@@ -3210,7 +3216,9 @@ export class SootSimBridgeFlowRunner {
3210
3216
  pollMs: 32,
3211
3217
  maestro: true,
3212
3218
  screenStill: true,
3219
+ stillSince,
3213
3220
  })
3221
+ this.stillRevision = result.stillRevision ?? null
3214
3222
  if (!result.settled) {
3215
3223
  console.warn(
3216
3224
  ` [flow] still moving after ${result.elapsed}ms: ${result.blockedBy}`,
@@ -3797,6 +3805,24 @@ export class SootSimBridgeFlowRunner {
3797
3805
  }
3798
3806
 
3799
3807
  private async runStepInner(step: MaestroStep) {
3808
+ // input can start a change whose first frame has not moved the revision yet, so only a step
3809
+ // that reads keeps the frame the last settle proved still. a step that contains others
3810
+ // leaves it to each of them.
3811
+ if (
3812
+ !step.assertVisible &&
3813
+ !step.assertNotVisible &&
3814
+ step.assertTrue === undefined &&
3815
+ !step.assertTreeContains &&
3816
+ !step.takeScreenshot &&
3817
+ !step.dumpTree &&
3818
+ step.copyTextFrom === undefined &&
3819
+ !step.waitFor &&
3820
+ !step.extendedWaitUntil &&
3821
+ !step.runFlow &&
3822
+ !step.repeat &&
3823
+ !step.retry
3824
+ )
3825
+ this.stillRevision = null
3800
3826
  if (
3801
3827
  this.animationClockLocked &&
3802
3828
  !step.advanceAnimationClock &&
@@ -43,6 +43,8 @@ const CLOUD_DO_VERBS = new Set([
43
43
  'tap-best',
44
44
  'double-tap',
45
45
  'long-press',
46
+ 'drag',
47
+ 'swipe',
46
48
  'type',
47
49
  'key',
48
50
  'key-sequence',
@@ -2068,8 +2068,8 @@ async function openSim(
2068
2068
  predictiveTextArg === undefined ? undefined : predictiveTextArg === 'on',
2069
2069
  orientation:
2070
2070
  orientationArg ??
2071
- (restArg && foldBus.duoRestTurnsBody(restArg)
2072
- ? foldBus.duoRestOrientation(restArg, true)
2071
+ (restArg
2072
+ ? foldBus.duoRestOrientation(restArg, foldBus.duoRestTurnsBody(restArg))
2073
2073
  : undefined),
2074
2074
  windowSize,
2075
2075
  osVersion: osVersionArg,
@@ -435,13 +435,13 @@ async function swiftSdkReach(
435
435
  }
436
436
  }
437
437
 
438
- declare const __PEACH_VERIFIED_FEATURE_CELLS__: VerifiedFeatureCells | undefined
438
+ declare const __PEACH_VERIFIED_FEATURE_CELLS__: string | undefined
439
439
 
440
440
  // the CLI build embeds the cells and states of the commit it builds; a source
441
441
  // run computes the same data from the checkout, which the bundle never loads.
442
442
  async function verifiedFeatureCellData(): Promise<VerifiedFeatureCells> {
443
- if (typeof __PEACH_VERIFIED_FEATURE_CELLS__ === 'object')
444
- return __PEACH_VERIFIED_FEATURE_CELLS__
443
+ if (typeof __PEACH_VERIFIED_FEATURE_CELLS__ === 'string')
444
+ return JSON.parse(__PEACH_VERIFIED_FEATURE_CELLS__)
445
445
  const source = join(
446
446
  import.meta.dirname,
447
447
  '../../../../scripts/lib/verified-feature-cells.ts',
@@ -37,6 +37,10 @@ export type WaitForSootsimIdleOptions = {
37
37
  readyPlayback?: boolean
38
38
  transitionStartWindowMs?: number
39
39
  transitionTimeoutMs?: number
40
+ // the revision an earlier settle proved still, for a wait no action precedes.
41
+ // a first poll that answers it with nothing busy or moving sees that same
42
+ // screen, so no transition can be starting.
43
+ stillSince?: string | null
40
44
  }
41
45
 
42
46
  export type WaitForSootsimIdleResult = {
@@ -46,6 +50,9 @@ export type WaitForSootsimIdleResult = {
46
50
  // settle" cannot tell a slow screen from one that animates forever, and the
47
51
  // two need opposite fixes.
48
52
  blockedBy: string
53
+ // the geometry revision of the frame a settled wait proved still, when it
54
+ // held from the proving poll through the reply.
55
+ stillRevision?: string
49
56
  }
50
57
 
51
58
  export class RuntimeReadinessUnsupportedError extends Error {
@@ -214,6 +221,7 @@ export async function waitForSootsimIdle({
214
221
  readyPlayback = false,
215
222
  transitionStartWindowMs = 80,
216
223
  transitionTimeoutMs = 4000,
224
+ stillSince = null,
217
225
  }: WaitForSootsimIdleOptions): Promise<WaitForSootsimIdleResult> {
218
226
  let result: any
219
227
  // guest elapsed covers a completed read. this clock is read only when the
@@ -257,6 +265,7 @@ export async function waitForSootsimIdle({
257
265
  const accessibilityBounds = ${accessibilityBounds.toString()}
258
266
  const sameNativeAccessibilityShape = ${sameNativeAccessibilityShape.toString()}
259
267
  const readyPlayback = ${readyPlayback ? 'true' : 'false'}
268
+ const stillSince = ${JSON.stringify(stillSince)}
260
269
  // full mounted-geometry observation needs at least two hierarchy reads
261
270
  // plus the stillness window, which a sub-second budget cannot afford:
262
271
  // tight budgets (auto-wait) settle on worker stillness plus root
@@ -275,7 +284,7 @@ export async function waitForSootsimIdle({
275
284
  // those that began after it drained still can. a loaded host runs a
276
285
  // push past a tap's budget, so the transition gets its own timeout and
277
286
  // the budget restarts once it drains.
278
- let transitionWait = (async () => {
287
+ const watchTransition = async () => {
279
288
  try {
280
289
  const wfst = globalThis.__sootsimTest?.waitForScreenTransitions
281
290
  if (typeof wfst === 'function' && budgetMs > 120) {
@@ -295,7 +304,9 @@ export async function waitForSootsimIdle({
295
304
  }
296
305
  } catch {}
297
306
  return false
298
- })()
307
+ }
308
+ // a wait that may settle on its first poll watches only once that poll does not
309
+ let transitionWait = stillSince === null ? watchTransition() : null
299
310
 
300
311
  // a worker that cannot answer within the remaining budget is busy, not
301
312
  // idle: its poll reads as unsettled. bounding each read by the budget
@@ -647,6 +658,9 @@ export async function waitForSootsimIdle({
647
658
  if (clockNow() >= deadline) break
648
659
  }
649
660
  const pollStarted = clockNow()
661
+ const readRevision = () =>
662
+ answer(() => globalThis.__sootsimTest?.getGeometryRevision?.()).catch(() => null)
663
+ const pollRevision = readRevision()
650
664
  const snapshot = await readSnapshot()
651
665
  if (snapshot.runtimeUnsupported) return snapshot.runtimeUnsupported
652
666
  // a read the deadline cut short observed nothing: the last full poll
@@ -654,6 +668,18 @@ export async function waitForSootsimIdle({
654
668
  // the loop head drains a transition still in flight before it ends.
655
669
  if (snapshot.workerBusy && clockNow() >= deadline && report) continue
656
670
  polls++
671
+ if (
672
+ polls === 1 && stillSince !== null &&
673
+ !snapshot.workerBusy && snapshot.pendingFetches === 0 && snapshot.requestInFlight === 0 &&
674
+ !snapshot.webViewStarting && !snapshot.animating && !snapshot.shellAnimating &&
675
+ !snapshot.layoutDirty && !snapshot.visibleMotion
676
+ ) {
677
+ const [proving, replying] = await Promise.all([pollRevision, readRevision()])
678
+ if (proving === stillSince && replying === stillSince) {
679
+ return { settled: true, elapsed: clockNow() - start, blockedBy: '', stillRevision: stillSince }
680
+ }
681
+ }
682
+ if (polls === 1 && stillSince !== null) transitionWait = watchTransition()
657
683
  report = { snapshot, nativeHierarchy: lastNativeHierarchy, layout: lastLayout, requestTotal: lastRequestTotal, appCommits: lastAppCommits, nodeCount: lastNodeCount }
658
684
  if (snapshot.layoutDirty) dirtyPolls++
659
685
  if (snapshot.animating || snapshot.shellAnimating) animatingPolls++
@@ -738,7 +764,11 @@ export async function waitForSootsimIdle({
738
764
  await transitionWait
739
765
  transitionWait = null
740
766
  }
741
- if (stillProven()) return { settled: true, elapsed: clockNow() - start, blockedBy: '' }
767
+ if (stillProven()) {
768
+ const [proving, replying] = await Promise.all([pollRevision, readRevision()])
769
+ const stillRevision = typeof proving === 'string' && proving === replying ? proving : undefined
770
+ return { settled: true, elapsed: clockNow() - start, blockedBy: '', stillRevision }
771
+ }
742
772
  }
743
773
  } else {
744
774
  stillPolls = []
@@ -810,12 +840,13 @@ export async function waitForSootsimIdle({
810
840
  )
811
841
  }
812
842
 
813
- const { elapsed, settled, blockedBy } = (result ??
843
+ const { elapsed, settled, blockedBy, stillRevision } = (result ??
814
844
  {}) as Partial<WaitForSootsimIdleResult>
815
845
  return {
816
846
  elapsed: typeof elapsed === 'number' ? elapsed : maxMs,
817
847
  settled: settled === true,
818
848
  blockedBy: typeof blockedBy === 'string' ? blockedBy : 'unknown',
849
+ ...(settled === true && typeof stillRevision === 'string' ? { stillRevision } : {}),
819
850
  }
820
851
  }
821
852
 
@@ -941,6 +941,12 @@ function applyShellLaunchOptions(url: URL, opts: BuildShellUrlOptions): URL {
941
941
  url.searchParams.set('bundleOriginOverride', opts.bundleOriginOverride)
942
942
  if (opts.hostDriver) url.searchParams.set('peachHostDriver', opts.hostDriver)
943
943
  if (opts.dotEnv) url.searchParams.set('dotEnv', JSON.stringify(opts.dotEnv))
944
+ // a reused sim's url carries the pose it is leaving; a new device boots in
945
+ // its own default stance, as the settings store does on a switch
946
+ if (opts.device && opts.device !== url.searchParams.get('device')) {
947
+ url.searchParams.delete('orientation')
948
+ url.searchParams.delete('landscapeSide')
949
+ }
944
950
  if (opts.device) url.searchParams.set('device', opts.device)
945
951
  if (opts.posture) url.searchParams.set('posture', opts.posture)
946
952
  if (opts.rest) url.searchParams.set('rest', opts.rest)
@@ -17,14 +17,17 @@ import { isRecord } from '../../src/is-record'
17
17
  import { rnxPublicBrand } from '../../src/public-brand'
18
18
  import { peachExit } from '../run-rnx'
19
19
 
20
- declare const __PEACH_BUNDLED_SKILLS__: Record<string, string>
20
+ declare const __PEACH_BUNDLED_SKILLS__: string
21
+ let bundledSkills: Record<string, string> | undefined
22
+ const readBundledSkills = (): Record<string, string> =>
23
+ (bundledSkills ??= JSON.parse(__PEACH_BUNDLED_SKILLS__))
21
24
 
22
25
  function getSkillsDir(): string {
23
26
  // the standalone binary carries its skills instead of a package directory;
24
27
  // write them once per cli version so installs can link to real files.
25
28
  if (typeof __PEACH_BUNDLED_SKILLS__ !== 'undefined') {
26
29
  const dir = path.join(rnxHomeDir(), 'skills', getCliVersion())
27
- for (const [file, body] of Object.entries(__PEACH_BUNDLED_SKILLS__)) {
30
+ for (const [file, body] of Object.entries(readBundledSkills())) {
28
31
  const target = path.join(dir, file)
29
32
  if (fs.existsSync(target)) continue
30
33
  fs.mkdirSync(path.dirname(target), { recursive: true })
@@ -231,7 +234,7 @@ function defaultAgentTargets(): InstallTarget[] {
231
234
  export function hasInstalledPeachSkills(): boolean {
232
235
  const names =
233
236
  typeof __PEACH_BUNDLED_SKILLS__ !== 'undefined'
234
- ? Object.keys(__PEACH_BUNDLED_SKILLS__).flatMap(
237
+ ? Object.keys(readBundledSkills()).flatMap(
235
238
  (file) => /^([^/]+)\/SKILL\.md$/.exec(file)?.[1] ?? [],
236
239
  )
237
240
  : listSkills().map((skill) => skill.name)
@@ -24,6 +24,7 @@ import {
24
24
  desktopHostPlatform,
25
25
  headlessHostCommand,
26
26
  } from '../../src/desktop-host-delivery'
27
+ import { cacheDir } from '../../src/home-paths'
27
28
  import { playwrightHostLogName } from '../../src/playwright-host-log'
28
29
  import {
29
30
  ensureProfile,
@@ -276,6 +277,7 @@ async function launch(opts: DriverLaunchOptions): Promise<DriverLaunchResult> {
276
277
  SOOTSIM_PW_USERDATADIR: resolveUserDataDir(opts),
277
278
  SOOTSIM_PW_CDP_PORT: cdpPort ? String(cdpPort) : '',
278
279
  PEACH_PW_HOST_COMMAND: hostCommand ? JSON.stringify(hostCommand) : '',
280
+ PEACH_PW_CODE_CACHE: join(cacheDir(), 'code-cache'),
279
281
  // when the caller passed no viewport, leave the inherited
280
282
  // SOOTSIM_PW_VIEWPORT (from playwrightEnv) alone instead of
281
283
  // clobbering it with '' — the driver reads it as its own default.
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2247 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2249 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -7,9 +7,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
8
  var __getProtoOf = Object.getPrototypeOf;
9
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __esm = (fn, res) => function __init() {
11
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
12
- };
13
10
  var __export = (target, all) => {
14
11
  for (var name2 in all)
15
12
  __defProp(target, name2, { get: all[name2], enumerable: true });
@@ -32,12 +29,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
32
29
  ));
33
30
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
31
 
35
- // <define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>
36
- var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
37
- "<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
38
- }
39
- });
40
-
41
32
  // src/agent-daemon-client.ts
42
33
  var agent_daemon_client_exports = {};
43
34
  __export(agent_daemon_client_exports, {
@@ -48,24 +39,20 @@ __export(agent_daemon_client_exports, {
48
39
  isBridgeUp: () => isBridgeUp
49
40
  });
50
41
  module.exports = __toCommonJS(agent_daemon_client_exports);
51
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
52
42
  var import_node_child_process = require("node:child_process");
53
43
  var import_node_net = __toESM(require("node:net"), 1);
54
44
  var import_ws = require("ws");
55
45
 
56
46
  // src/agent-sessions.ts
57
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
58
47
  var import_node_fs3 = __toESM(require("node:fs"), 1);
59
48
  var import_node_path3 = __toESM(require("node:path"), 1);
60
49
 
61
50
  // cli/self-invocation.ts
62
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
63
51
  var import_node_fs = require("node:fs");
64
52
  var import_node_path = require("node:path");
65
53
  var import_node_url = require("node:url");
66
54
 
67
55
  // src/public-brand.ts
68
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
69
56
  var name = "Peach";
70
57
  var peachPublicBrand = Object.freeze({
71
58
  name,
@@ -78,7 +65,6 @@ var peachPublicBrand = Object.freeze({
78
65
  var rnxPublicBrand = peachPublicBrand;
79
66
 
80
67
  // cli/standalone.ts
81
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
82
68
  var IS_STANDALONE = typeof __SOOTSIM_STANDALONE__ !== "undefined" && __SOOTSIM_STANDALONE__;
83
69
 
84
70
  // cli/self-invocation.ts
@@ -110,17 +96,7 @@ function rnxSelfInvocation() {
110
96
  return { executable: process.execPath, prefixArgs: [entry] };
111
97
  }
112
98
 
113
- // src/agent-events.ts
114
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
115
-
116
- // src/agent-prompt.ts
117
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
118
-
119
- // src/attached-projects.ts
120
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
121
-
122
99
  // src/home-paths.ts
123
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
124
100
  var import_node_fs2 = __toESM(require("node:fs"), 1);
125
101
  var import_node_path2 = __toESM(require("node:path"), 1);
126
102
  function isSootsimDevCheckout() {
@@ -240,11 +216,7 @@ function fileFromImportMeta() {
240
216
  }
241
217
  }
242
218
 
243
- // src/bridge-constants.ts
244
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
245
-
246
219
  // src/simulator-route.ts
247
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
248
220
  var PEACH_SIMULATOR_PATH = "/simulator";
249
221
  var SIMULATOR_DOCUMENT_PATH = new RegExp(
250
222
  `^${PEACH_SIMULATOR_PATH}(?:/(?:rn(?:/[^/]+)?|app/[^/]+|dock/[^/]+))?/?$`
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2247 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2249 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2247 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2249 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -32,12 +32,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
32
32
  ));
33
33
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
34
 
35
- // <define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>
36
- var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
37
- "<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
38
- }
39
- });
40
-
41
35
  // scripts/optional-demo-registry.ts
42
36
  var optional_demo_registry_exports = {};
43
37
  __export(optional_demo_registry_exports, {
@@ -82,7 +76,6 @@ var import_node_fs, import_node_path2, import_node_url, REGISTRY_REPO_PATH, MAX_
82
76
  var init_optional_demo_registry = __esm({
83
77
  "scripts/optional-demo-registry.ts"() {
84
78
  "use strict";
85
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
86
79
  import_node_fs = require("node:fs");
87
80
  import_node_path2 = require("node:path");
88
81
  import_node_url = require("node:url");
@@ -117,13 +110,11 @@ __export(attached_projects_exports, {
117
110
  upsertSession: () => upsertSession
118
111
  });
119
112
  module.exports = __toCommonJS(attached_projects_exports);
120
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
121
113
  var import_node_crypto = require("node:crypto");
122
114
  var import_node_fs2 = __toESM(require("node:fs"), 1);
123
115
  var import_node_path3 = __toESM(require("node:path"), 1);
124
116
 
125
117
  // src/home-paths.ts
126
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
127
118
  var import_node_os = require("node:os");
128
119
  var import_node_path = __toESM(require("node:path"), 1);
129
120
  var PEACH_HOME_ENV = "PEACH_HOME";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2247 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2249 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2247 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2249 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2247 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2249 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2247 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2249 | (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
- /*! peach v0.1.2247 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2249 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2247 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2249 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2247 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2249 | (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
- /*! peach v0.1.2247 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2249 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2247 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2249 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var REFUSED_PERFORM_STEP_TYPES = [