peachsim 0.1.1815 → 0.1.1818

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 (147) hide show
  1. package/cli/commands/agent-indicator-mode.ts +2 -1
  2. package/cli/commands/coverage-swift.ts +4 -3
  3. package/cli/commands/flow.ts +7 -0
  4. package/cli/commands/inspect/core.ts +1 -1
  5. package/cli/commands/maestro-compare.ts +7 -0
  6. package/cli/commands/package.ts +87 -31
  7. package/cli/commands/screenshot-mode.ts +2 -1
  8. package/cli/commands/shell-boolean-mode.ts +7 -3
  9. package/cli/commands/shell-url.ts +4 -0
  10. package/cli/commands/show-touches-mode.ts +2 -1
  11. package/cli/commands/test.ts +3 -2
  12. package/cli/commands/three-mode.ts +2 -1
  13. package/cli/outbound-endpoints.ts +1 -1
  14. package/cli/packaged-app-launcher.ts +6 -1
  15. package/dist-lib/agent-daemon-client.cjs +1 -1
  16. package/dist-lib/agent-events.cjs +1 -1
  17. package/dist-lib/attached-projects.cjs +1 -1
  18. package/dist-lib/auth/shared-session.cjs +1 -1
  19. package/dist-lib/backend-origin.cjs +1 -1
  20. package/dist-lib/beta.cjs +1 -1
  21. package/dist-lib/beta.mjs +1 -1
  22. package/dist-lib/bridge-constants.cjs +1 -1
  23. package/dist-lib/bridge-contract-input.cjs +1 -1
  24. package/dist-lib/bridge-contract-input.mjs +1 -1
  25. package/dist-lib/bridge-contract.cjs +1 -1
  26. package/dist-lib/bridge-contract.mjs +1 -1
  27. package/dist-lib/bundle-channel.cjs +5728 -7551
  28. package/dist-lib/capture-contract.cjs +1 -1
  29. package/dist-lib/capture-contract.mjs +1 -1
  30. package/dist-lib/cloud-contract.cjs +1 -1
  31. package/dist-lib/cloud-contract.mjs +1 -1
  32. package/dist-lib/cloud-test-args.cjs +1 -1
  33. package/dist-lib/cloud-test-args.mjs +1 -1
  34. package/dist-lib/cloud.cjs +1 -1
  35. package/dist-lib/cloud.mjs +1 -1
  36. package/dist-lib/config.cjs +1 -1
  37. package/dist-lib/config.mjs +1 -1
  38. package/dist-lib/detox/index.cjs +13 -4
  39. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  40. package/dist-lib/expo-swift-bundle.cjs +5234 -5704
  41. package/dist-lib/expo-swift-metadata.cjs +1 -1
  42. package/dist-lib/expo-swift-metadata.mjs +1 -1
  43. package/dist-lib/home-paths.cjs +1 -1
  44. package/dist-lib/host/bridge-host.cjs +4913 -6811
  45. package/dist-lib/host/fetch-proxy-handler.cjs +13 -4
  46. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  47. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  48. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  49. package/dist-lib/host/websocket-proxy.cjs +1 -1
  50. package/dist-lib/index.cjs +40 -30
  51. package/dist-lib/jump-to-source-babel.cjs +1 -1
  52. package/dist-lib/jump-to-source-native.cjs +1 -1
  53. package/dist-lib/kotlin-host.cjs +1 -1
  54. package/dist-lib/menu.cjs +1 -1
  55. package/dist-lib/menu.mjs +1 -1
  56. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  57. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  58. package/dist-lib/metro-production-bundle.cjs +1 -1
  59. package/dist-lib/metro-production-bundle.mjs +1 -1
  60. package/dist-lib/metro.cjs +39 -29
  61. package/dist-lib/native-app-identity-project.cjs +31 -26
  62. package/dist-lib/native-app-identity-project.mjs +295 -279
  63. package/dist-lib/native-app-identity.cjs +1 -1
  64. package/dist-lib/native-app-identity.mjs +1 -1
  65. package/dist-lib/native-firebase-metadata.cjs +1 -1
  66. package/dist-lib/native-firebase-metadata.mjs +1 -1
  67. package/dist-lib/pdfium-raster.cjs +1 -1
  68. package/dist-lib/pdfium-raster.mjs +1 -1
  69. package/dist-lib/plist.cjs +1 -1
  70. package/dist-lib/plist.mjs +1 -1
  71. package/dist-lib/profiles.cjs +1 -1
  72. package/dist-lib/public-brand.cjs +1 -1
  73. package/dist-lib/public-origins-lib-esm.json +29 -24
  74. package/dist-lib/public-origins-lib.json +121 -93
  75. package/dist-lib/react-native-host-modules.cjs +1 -1
  76. package/dist-lib/react-native-host-modules.mjs +1 -1
  77. package/dist-lib/reap-browser.cjs +1 -1
  78. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  79. package/dist-lib/sdk.cjs +2 -2
  80. package/dist-lib/sdk.mjs +2 -2
  81. package/dist-lib/skills.cjs +64622 -66476
  82. package/dist-lib/swift-compile.cjs +328 -265
  83. package/dist-lib/swift-compile.mjs +335 -270
  84. package/dist-lib/swift-package.cjs +1 -1
  85. package/dist-lib/swift-package.mjs +1 -1
  86. package/dist-lib/swift-submit.cjs +1 -1
  87. package/dist-lib/swift-submit.mjs +1 -1
  88. package/dist-lib/swift-toolchain.cjs +52 -6
  89. package/dist-lib/swift.cjs +1 -1
  90. package/dist-lib/vite-swift.cjs +2405 -2262
  91. package/dist-lib/vite.cjs +13 -4
  92. package/dist-lib/worklet-executable.cjs +1 -1
  93. package/dist-lib/worklet-executable.mjs +1 -1
  94. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +5 -0
  95. package/dist-types/packages/peach-engine/src/render-worker/map-command-channel.d.ts +41 -0
  96. package/dist-types/packages/peach-engine/src/render-worker/mapServicesContract.d.ts +45 -0
  97. package/package.json +2 -1
  98. package/runtime-companion.json +1 -1
  99. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +1 -1
  100. package/sdk/ios/usr/include/module.modulemap +3 -0
  101. package/sdk/ios/usr/include/notify.modulemap +9 -0
  102. package/sdk/ios/usr/lib/swift/Darwin.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
  103. package/sdk/ios/usr/lib/swift/Dispatch.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -1
  104. package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +7 -1
  105. package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -0
  106. package/sdk/ios/usr/lib/swift/SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +21 -0
  107. package/sdk/ios/usr/lib/swift/SwiftUICore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +6 -1
  108. package/sdk/ios/wasm/include/__header_time.h +4 -0
  109. package/sdk/ios/wasm/include/pthread.h +2 -0
  110. package/sdk/ios/wasm/include/sys/mman.h +1 -1
  111. package/sdk/ios/wasm/include/sys/resource.h +31 -0
  112. package/sdk/ios/wasm/include/unistd.h +4 -0
  113. package/src/answeredNativePackages.ts +43 -0
  114. package/src/cli-runtime.ts +2 -9
  115. package/src/expo-discovery-cache.ts +71 -52
  116. package/src/expo-kotlin-host.ts +11 -9
  117. package/src/expo-swift-host.ts +55 -13
  118. package/src/installed-native-libraries.ts +103 -20
  119. package/src/native-static-libraries.ts +69 -33
  120. package/src/nitro-adapter.ts +0 -9
  121. package/src/nitro-bundle.ts +8 -6
  122. package/src/nitro-compile.ts +45 -16
  123. package/src/nitro-compiler-digest.ts +2 -4
  124. package/src/nitro-superset.lock.json +19 -251
  125. package/src/nitro-superset.ts +63 -68
  126. package/src/plist-bytes.ts +9 -0
  127. package/src/portable-expo-workspace.ts +4 -3
  128. package/src/react-native-bridge-modules.ts +13 -19
  129. package/src/swift-compile.ts +379 -269
  130. package/src/swift-cxx-reachable.ts +13 -0
  131. package/src/swift-distribution.ts +3 -4
  132. package/src/swift-host.ts +5 -3
  133. package/src/swift-installed-targets.ts +32 -14
  134. package/src/swift-native-pin.ts +45 -0
  135. package/src/swift-objc-compile.ts +23 -1
  136. package/src/swift-objc-standin.ts +14 -7
  137. package/src/swift-package-manifest.ts +2 -2
  138. package/src/swift-root-lock.ts +4 -3
  139. package/src/swift-standins.ts +41 -38
  140. package/src/swift-toolchain.ts +69 -12
  141. package/src/swift-wasm-prune.ts +1 -0
  142. package/src/swift-xcframework.ts +23 -12
  143. package/src/swiftContract.ts +2 -0
  144. package/src/swiftNativePinContract.ts +68 -0
  145. package/src/turbo-bundle.ts +14 -6
  146. package/src/turbo-compile.ts +76 -11
  147. package/src/turbo-source.ts +93 -18
@@ -20,7 +20,8 @@ arguments:
20
20
  on show the indicator while a CLI or agent drives the sim (default)
21
21
  off hide it and the agent cursor that rests under it, for clean recordings
22
22
  of scripted sims
23
- toggle flip the current state (default action)
23
+ toggle flip the current state
24
+ (none) report the current state
24
25
 
25
26
  the setting persists. a shell url can also seed it with agentIndicator=0.
26
27
 
@@ -21,7 +21,7 @@ import {
21
21
  import { indexSwiftXcodeApp, xcodeMetadataFiles } from '../../src/swift-coverage/xcode'
22
22
  import { swiftTargetDependencyModules } from '../../src/swift-coverage/xcode-packages'
23
23
  import { localPackageModules } from '../../src/swift-coverage/xcode-packages'
24
- import lock from '../../src/swift-distribution.lock.json' with { type: 'json' }
24
+ import { swiftNativePin } from '../../src/swift-native-pin'
25
25
  import {
26
26
  swiftPackageDescription,
27
27
  swiftPackageManifest,
@@ -282,10 +282,11 @@ function swiftCoverageTools(work: string) {
282
282
  .update(JSON.stringify(sdkIdentity))
283
283
  .digest('hex')
284
284
  const indexdump = join(work, 'indexdump')
285
+ const { release } = swiftNativePin().distribution
285
286
  const reader = buildSwiftIndexReader(
286
- join(swiftToolchainBin(lock.release), 'swiftc'),
287
+ join(swiftToolchainBin(release), 'swiftc'),
287
288
  indexdump,
288
- () => swiftCompilerInstallSteps(lock.release),
289
+ () => swiftCompilerInstallSteps(release),
289
290
  )
290
291
  return {
291
292
  swiftc,
@@ -39,6 +39,7 @@ import {
39
39
  type OpenCommandResources,
40
40
  } from './control'
41
41
  import { printShellPerfReport } from './inspect'
42
+ import { getShellState } from './inspect/shared'
42
43
  import { resolveDefaultUploadOrigin } from './upload'
43
44
  import type { PeachConfig } from '../../src/config'
44
45
  import type { UploadResult } from './upload'
@@ -794,6 +795,12 @@ flow extension:
794
795
  }
795
796
  try {
796
797
  if (!startsWithLaunchApp) {
798
+ const shell = await getShellState(bridge).catch(() => null)
799
+ if (shell?.state === 'home' && shell.activeApp == null) {
800
+ throw new Error(
801
+ 'the sim is on the home screen and no app is open; flows run against an app. start the flow with launchApp (or open an app first, e.g. peach shell launch <app>)',
802
+ )
803
+ }
797
804
  await driver.waitForTree(120000)
798
805
  }
799
806
  const deviceChanged = await applySimSettings()
@@ -216,7 +216,7 @@ function isSemanticQueryResult(value: unknown): value is SimSemanticQueryResult
216
216
 
217
217
  function globRegex(glob: string): RegExp {
218
218
  const escaped = glob.replace(/[.+^$(){}|[\]\\]/g, '\\$&')
219
- return new RegExp(`^${escaped.replace(/\*/g, '.*').replace(/\?/g, '.')}$`, 'i')
219
+ return new RegExp(`^${escaped.replace(/\*/g, '.*').replace(/\?/g, '.')}$`, 'is')
220
220
  }
221
221
 
222
222
  export function formatSemanticTree(
@@ -7,6 +7,8 @@ import { spawn, spawnSync } from 'child_process'
7
7
  import * as fs from 'fs'
8
8
  import * as os from 'os'
9
9
  import * as path from 'path'
10
+ import { acquireConformanceSimLock } from '../../../../scripts/lib/conformance-sim-lock'
11
+ import { retainIosSimulatorClaimUntilExit } from '../../../../scripts/lib/ios-sim-lifecycle'
10
12
  import { rnxHomeDir } from '../../src/home-paths'
11
13
  import { parseFlowFile } from '../flow-file'
12
14
  import {
@@ -255,6 +257,11 @@ export async function runMaestroCompare(
255
257
  udid = booted[0]!.udid
256
258
  }
257
259
 
260
+ retainIosSimulatorClaimUntilExit(
261
+ udid,
262
+ acquireConformanceSimLock(udid, { name: 'peach-test-compare', pid: process.pid }),
263
+ )
264
+
258
265
  // the same selection maestro's planner makes, then an instrumented copy of
259
266
  // each selected flow at the same relative path.
260
267
  const targetIsDir = fs.statSync(target).isDirectory()
@@ -1,4 +1,4 @@
1
- import { execFileSync } from 'node:child_process'
1
+ import { execFileSync, spawn, spawnSync } from 'node:child_process'
2
2
  import { createHash, randomUUID } from 'node:crypto'
3
3
  import fs from 'node:fs'
4
4
  import os from 'node:os'
@@ -44,6 +44,7 @@ import {
44
44
  readPackageVersionsFooter,
45
45
  type PackageVersions,
46
46
  } from '../../src/packageVersionsContract'
47
+ import { terminateProcessGroup } from '../../src/process-group'
47
48
  import { resolveActiveRuntimeRoot } from '../../src/runtime-assets'
48
49
  import { discoverAppCatalog } from '../app-catalog'
49
50
  import { loadRNXAppConfig } from '../app-config'
@@ -65,6 +66,76 @@ import {
65
66
 
66
67
  const origin = APP_PACKAGE_ORIGIN
67
68
 
69
+ // a launch compiles every script the app runs as it starts. the bytecode v8 keeps from one launch
70
+ // here ships in the bundle, where the realms read it (peach-desktop node/realm.mjs), so the first
71
+ // launch on any mac skips that compile. realms write their cache as they close.
72
+ async function primeCodeCache(app: string, home: string): Promise<void> {
73
+ const peach = path.join(app, 'Contents', 'Resources', 'bin', 'peach')
74
+ const env = {
75
+ ...process.env,
76
+ PEACH_HOME: home,
77
+ PEACH_CLI_CURRENT_SIM_PATH: path.join(home, 'current-sim.json'),
78
+ }
79
+ fs.mkdirSync(home)
80
+ const host = spawn(
81
+ path.join(app, 'Contents', 'MacOS', 'PeachApp'),
82
+ ['--peach-app-home', home],
83
+ { stdio: 'ignore', detached: true },
84
+ )
85
+ const exited = new Promise<NodeJS.Signals | null>((resolve) =>
86
+ host.once('exit', (_code, signal) => resolve(signal)),
87
+ )
88
+ // the cli finds no sim until the host's page reaches the app's service
89
+ const deadline = Date.now() + 120_000
90
+ for (;;) {
91
+ const ready = spawnSync(
92
+ peach,
93
+ ['wait', 'ready', '--max-ms', String(Math.max(1000, deadline - Date.now()))],
94
+ { env, encoding: 'utf8' },
95
+ )
96
+ if (ready.status === 0) break
97
+ if (Date.now() > deadline) {
98
+ await terminateProcessGroup(host, 'SIGKILL')
99
+ throw new Error(
100
+ `the packaged app did not start: ${(ready.stderr + ready.stdout).slice(-400)}`,
101
+ )
102
+ }
103
+ await new Promise((resolve) => setTimeout(resolve, 500))
104
+ }
105
+ // what the first screen runs once its data arrives belongs in the cache too
106
+ spawnSync(peach, ['wait', 'idle', '--max-ms', '10000'], { env })
107
+ host.kill('SIGTERM')
108
+ const quit = setTimeout(() => void terminateProcessGroup(host, 'SIGKILL'), 30_000)
109
+ if ((await exited) === 'SIGKILL') throw new Error('the packaged app did not quit')
110
+ clearTimeout(quit)
111
+ const service: unknown = JSON.parse(
112
+ fs.readFileSync(path.join(home, 'app-runtime.json'), 'utf8'),
113
+ )
114
+ if (isRecord(service) && typeof service.pid === 'number')
115
+ spawnSync('/bin/kill', [String(service.pid)])
116
+ const seeded = path.join(app, 'Contents', 'Resources', 'code-cache')
117
+ fs.mkdirSync(seeded)
118
+ for (const entry of fs.readdirSync(path.join(home, 'desktop', 'node-host'), {
119
+ recursive: true,
120
+ withFileTypes: true,
121
+ }))
122
+ // a partial write carries its thread's suffix
123
+ if (
124
+ entry.isFile() &&
125
+ path.basename(entry.parentPath) === 'code-cache' &&
126
+ !entry.name.includes('.')
127
+ )
128
+ fs.copyFileSync(
129
+ path.join(entry.parentPath, entry.name),
130
+ path.join(seeded, entry.name),
131
+ )
132
+ // the realms its first page started, for the host to start before webkit loads the page (node/host.mjs)
133
+ fs.copyFileSync(
134
+ path.join(home, 'desktop', 'node-host', 'realm-prestart.json'),
135
+ path.join(app, 'Contents', 'Resources', 'realm-prestart.json'),
136
+ )
137
+ }
138
+
68
139
  async function projectIcon(
69
140
  project: string,
70
141
  scratch: string,
@@ -703,20 +774,18 @@ export async function runPackage(args: string[]): Promise<void> {
703
774
  return file
704
775
  }
705
776
  const appEntitlements = entitlementsOf(`MacOS/${hostExecutable}`)
777
+ const sign = (target: string, entitlements?: string) =>
778
+ execFileSync('/usr/bin/codesign', [
779
+ '--force',
780
+ '--sign',
781
+ identity ?? '-',
782
+ ...(identity ? ['--options', 'runtime', '--timestamp'] : []),
783
+ ...(entitlements ? ['--entitlements', entitlements] : []),
784
+ target,
785
+ ])
706
786
  if (identity) {
707
787
  // the release order of the host's own signing: every nested binary, then
708
788
  // nested bundles deepest first, then the entitled binaries and the app
709
- const sign = (target: string, entitlements?: string) =>
710
- execFileSync('/usr/bin/codesign', [
711
- '--force',
712
- '--sign',
713
- identity,
714
- '--options',
715
- 'runtime',
716
- '--timestamp',
717
- ...(entitlements ? ['--entitlements', entitlements] : []),
718
- target,
719
- ])
720
789
  const files = fs
721
790
  .readdirSync(contents, { recursive: true, withFileTypes: true })
722
791
  .filter((entry) => entry.isFile())
@@ -740,25 +809,12 @@ export async function runPackage(args: string[]): Promise<void> {
740
809
  sign(bundle)
741
810
  sign(path.join(resources, 'bin', 'peach'), entitlementsOf('Resources/bin/peach'))
742
811
  sign(path.join(contents, 'Frameworks', 'node'), entitlementsOf('Frameworks/node'))
743
- // the launcher script is the bundle executable, so the host binary
744
- // needs its jit entitlements signed on directly
745
- sign(path.join(contents, 'MacOS', hostExecutable), appEntitlements)
746
- sign(temporary, appEntitlements)
747
- } else {
748
- for (const executable of [
749
- path.join(contents, 'MacOS', hostExecutable),
750
- path.join(resources, 'bin', 'peach'),
751
- ])
752
- execFileSync('/usr/bin/codesign', [
753
- '--force',
754
- '--sign',
755
- '-',
756
- '--entitlements',
757
- appEntitlements,
758
- executable,
759
- ])
760
- execFileSync('/usr/bin/codesign', ['--force', '--sign', '-', temporary])
761
- }
812
+ } else sign(path.join(resources, 'bin', 'peach'), appEntitlements)
813
+ // the launcher script is the bundle executable, so the host binary
814
+ // needs its jit entitlements signed on directly
815
+ sign(path.join(contents, 'MacOS', hostExecutable), appEntitlements)
816
+ await primeCodeCache(temporary, path.join(scratch, 'prime-home'))
817
+ sign(temporary, identity ? appEntitlements : undefined)
762
818
  execFileSync('/usr/bin/codesign', ['--verify', '--deep', '--strict', temporary])
763
819
  const notarize = (file: string) => {
764
820
  const result: unknown = JSON.parse(
@@ -20,7 +20,8 @@ usage:
20
20
  arguments:
21
21
  on enable screenshot mode (enables showFrame if needed)
22
22
  off disable screenshot mode
23
- toggle flip the current state (default)
23
+ toggle flip the current state
24
+ (none) report the current state
24
25
 
25
26
  examples:
26
27
  peach mode screenshot
@@ -1,7 +1,7 @@
1
1
  import { peachExit } from '../run-rnx'
2
2
  import { callInBridge, createBridgeFromParsed, parseBridgeCliArgs } from '../ws-bridge'
3
3
 
4
- export type ShellBooleanModeAction = 'on' | 'off' | 'toggle'
4
+ export type ShellBooleanModeAction = 'on' | 'off' | 'toggle' | 'status'
5
5
 
6
6
  export interface ShellBooleanModeOptions {
7
7
  port?: number
@@ -21,8 +21,8 @@ export interface ShellBooleanModeResult {
21
21
  }
22
22
 
23
23
  export function parseShellBooleanModeAction(args: string[]): ShellBooleanModeAction {
24
- const action = args[0]?.toLowerCase() ?? 'toggle'
25
- if (action !== 'on' && action !== 'off' && action !== 'toggle') {
24
+ const action = args[0]?.toLowerCase() ?? 'status'
25
+ if (action !== 'on' && action !== 'off' && action !== 'toggle' && action !== 'status') {
26
26
  console.error(` unknown argument: "${action}" (expected on | off | toggle)`)
27
27
  peachExit(1)
28
28
  }
@@ -43,6 +43,10 @@ export async function runShellBooleanMode(
43
43
  'SootSim.bridges.settings.get',
44
44
  )
45
45
  const current = Boolean(settings?.[config.modeKey])
46
+ if (action === 'status') {
47
+ console.log(` ${config.displayName}: ${current ? 'on' : 'off'}`)
48
+ return { current, target: current, changed: false }
49
+ }
46
50
  const target = action === 'on' ? true : action === 'off' ? false : !current
47
51
  if (current === target) {
48
52
  console.log(` ${config.displayName}: already ${target ? 'on' : 'off'}`)
@@ -61,6 +61,7 @@ import {
61
61
  encodeAppSplashWire,
62
62
  splashImageUrls,
63
63
  } from '../app-splash'
64
+ import { CliUsageError } from '../usage-error'
64
65
  import {
65
66
  resolveBridgePortForPin,
66
67
  resolveBridgeWorld,
@@ -179,6 +180,9 @@ export async function resolveConnectionInputForCli(
179
180
  ? Number(normalized)
180
181
  : localBasePort(normalized)
181
182
 
183
+ if (/^\d+$/.test(normalized) && Number(normalized) > 65535) {
184
+ throw new CliUsageError(`invalid port ${normalized}: ports run from 1 to 65535`)
185
+ }
182
186
  console.log(` resolving native bundle for ${normalized} (waiting for the dev server)…`)
183
187
  let lastError: Error | null = null
184
188
  const releaseListenerScan = pinSharedListenerScan()
@@ -15,7 +15,8 @@ usage:
15
15
  arguments:
16
16
  on enable touch indicators
17
17
  off disable touch indicators
18
- toggle flip the current state (default)
18
+ toggle flip the current state
19
+ (none) report the current state
19
20
 
20
21
  examples:
21
22
  peach mode show-touches
@@ -1210,8 +1210,9 @@ const MAESTRO_VERBS = new Set([
1210
1210
  'good',
1211
1211
  'end',
1212
1212
  ])
1213
- // building a flow live drives the simulator, which needs no account.
1214
- const AUTHORING_VERBS = new Set(['start', 'keep', 'good', 'end'])
1213
+ // building a flow live drives the simulator, and validating one only parses
1214
+ // its YAML, so neither needs an account.
1215
+ const AUTHORING_VERBS = new Set(['start', 'keep', 'good', 'end', 'validate'])
1215
1216
 
1216
1217
  export async function runTest(
1217
1218
  args: string[],
@@ -51,7 +51,8 @@ usage:
51
51
  arguments:
52
52
  on enable 3d mode
53
53
  off disable 3d mode
54
- toggle flip the current state (default)
54
+ toggle flip the current state
55
+ (none) report the current state
55
56
 
56
57
  configure options:
57
58
  --device <id> set the phone body: iphone-17-air | iphone-17-pro |
@@ -507,7 +507,7 @@ export const DECLARED_OUTBOUND_CALLS: Record<string, OutboundCallDeclaration> =
507
507
  category: 'local_development',
508
508
  count: 1,
509
509
  },
510
- // the shared Nitro executable: one HEAD of its registry address, once per
510
+ // the shared Nitro executable: one GET of its key's metadata, once per
511
511
  // process, before an app points its metadata at it; no project or app data.
512
512
  'packages/peachsim/src/nitroAdapterContract.ts :: fetch :: url': {
513
513
  category: 'nitro_published_headers',
@@ -88,7 +88,12 @@ async function main() {
88
88
  const source = path.join(resources, 'payload', name);
89
89
  const destination = path.join(staged, name);
90
90
  if (manifest.relocatableFiles.includes(name)) fs.writeFileSync(destination, relocate(fs.readFileSync(source, 'utf8')));
91
- else fs.copyFileSync(source, destination);
91
+ // a payload file is named by its content, so a staged one from an earlier launch already holds it
92
+ else if (!fs.existsSync(destination)) {
93
+ const partial = destination + '.' + process.pid;
94
+ fs.copyFileSync(source, partial, fs.constants.COPYFILE_FICLONE);
95
+ fs.renameSync(partial, destination);
96
+ }
92
97
  }
93
98
  const url = new URL(relocate(manifest.launchUrl));
94
99
  url.searchParams.set('peachPackage', JSON.stringify({ id: manifest.identifier, name: manifest.name, icon: manifest.iconUrl ? relocate(manifest.iconUrl) : '' }));
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1818 | (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.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1818 | (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.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1818 | (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.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1818 | (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.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1818 | (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.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1818 | (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.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1818 | (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.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1818 | (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.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1818 | (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.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1818 | (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.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1818 | (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.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1818 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var REFUSED_PERFORM_STEP_TYPES = [