peachsim 0.1.2408 → 0.1.2409

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 (92) hide show
  1. package/cli/cloud-client.ts +8 -3
  2. package/cli/command-agent.ts +122 -0
  3. package/cli/ws-bridge.ts +4 -1
  4. package/dist-lib/agent-daemon-client.cjs +1 -1
  5. package/dist-lib/agent-events.cjs +1 -1
  6. package/dist-lib/attached-projects.cjs +1 -1
  7. package/dist-lib/auth/shared-session.cjs +1 -1
  8. package/dist-lib/backend-origin.cjs +1 -1
  9. package/dist-lib/beta.cjs +1 -1
  10. package/dist-lib/beta.mjs +1 -1
  11. package/dist-lib/bridge-constants.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.mjs +1 -1
  14. package/dist-lib/bridge-contract.cjs +1 -1
  15. package/dist-lib/bridge-contract.mjs +1 -1
  16. package/dist-lib/bundle-channel.cjs +9 -7
  17. package/dist-lib/capture-contract.cjs +1 -1
  18. package/dist-lib/capture-contract.mjs +1 -1
  19. package/dist-lib/cloud-contract.cjs +20 -1
  20. package/dist-lib/cloud-contract.mjs +18 -1
  21. package/dist-lib/cloud-test-args.cjs +1 -1
  22. package/dist-lib/cloud-test-args.mjs +1 -1
  23. package/dist-lib/cloud.cjs +1 -1
  24. package/dist-lib/cloud.mjs +1 -1
  25. package/dist-lib/config.cjs +1 -1
  26. package/dist-lib/config.mjs +1 -1
  27. package/dist-lib/detox/index.cjs +1630 -1513
  28. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  29. package/dist-lib/expo-swift-bundle.cjs +7 -5
  30. package/dist-lib/expo-swift-metadata.cjs +1 -1
  31. package/dist-lib/expo-swift-metadata.mjs +1 -1
  32. package/dist-lib/home-paths.cjs +1 -1
  33. package/dist-lib/host/bridge-host.cjs +43 -7
  34. package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
  35. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  36. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  37. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  38. package/dist-lib/host/websocket-proxy.cjs +1 -1
  39. package/dist-lib/index.cjs +391 -271
  40. package/dist-lib/jump-to-source-babel.cjs +1 -1
  41. package/dist-lib/jump-to-source-native.cjs +1 -1
  42. package/dist-lib/kotlin-host.cjs +1 -1
  43. package/dist-lib/menu.cjs +1 -1
  44. package/dist-lib/menu.mjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  47. package/dist-lib/metro-production-bundle.cjs +1 -1
  48. package/dist-lib/metro-production-bundle.mjs +1 -1
  49. package/dist-lib/metro.cjs +4 -4
  50. package/dist-lib/native-app-identity-project.cjs +2 -2
  51. package/dist-lib/native-app-identity-project.mjs +2 -2
  52. package/dist-lib/native-app-identity.cjs +1 -1
  53. package/dist-lib/native-app-identity.mjs +1 -1
  54. package/dist-lib/native-firebase-metadata.cjs +1 -1
  55. package/dist-lib/native-firebase-metadata.mjs +1 -1
  56. package/dist-lib/pdfium-raster.cjs +1 -1
  57. package/dist-lib/pdfium-raster.mjs +1 -1
  58. package/dist-lib/plist.cjs +1 -1
  59. package/dist-lib/plist.mjs +1 -1
  60. package/dist-lib/profiles.cjs +1 -1
  61. package/dist-lib/public-brand.cjs +1 -1
  62. package/dist-lib/public-origins-lib-esm.json +24 -24
  63. package/dist-lib/public-origins-lib.json +67 -58
  64. package/dist-lib/react-native-host-modules.cjs +1 -1
  65. package/dist-lib/react-native-host-modules.mjs +1 -1
  66. package/dist-lib/reap-browser.cjs +1 -1
  67. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  68. package/dist-lib/sdk.cjs +1 -1
  69. package/dist-lib/sdk.mjs +1 -1
  70. package/dist-lib/skills.cjs +837 -720
  71. package/dist-lib/swift-compile.cjs +4 -3
  72. package/dist-lib/swift-compile.mjs +4 -3
  73. package/dist-lib/swift-package.cjs +1 -1
  74. package/dist-lib/swift-package.mjs +1 -1
  75. package/dist-lib/swift-submit.cjs +1 -1
  76. package/dist-lib/swift-submit.mjs +1 -1
  77. package/dist-lib/swift-toolchain.cjs +1 -1
  78. package/dist-lib/swift.cjs +1 -1
  79. package/dist-lib/vite-swift.cjs +18 -4
  80. package/dist-lib/vite.cjs +4 -4
  81. package/dist-lib/worklet-executable.cjs +1 -1
  82. package/dist-lib/worklet-executable.mjs +1 -1
  83. package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
  84. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  85. package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +7 -0
  86. package/kotlin/sdk.tar.gz +0 -0
  87. package/package.json +1 -1
  88. package/runtime-companion.json +1 -1
  89. package/src/bridge-contract.ts +4 -0
  90. package/src/cloud-contract.ts +30 -0
  91. package/src/swift-packages.ts +1 -0
  92. package/src/swift-shared-sdk.ts +2 -1
@@ -57,8 +57,10 @@ import {
57
57
  type CloudSimSession,
58
58
  type RemotePlatform,
59
59
  } from './cloud-session.ts'
60
+ import { commandAgent } from './command-agent.ts'
60
61
  import { detectProject } from './commands/detect.ts'
61
62
  import { resolveCheckoutRepo } from './run-registry.ts'
63
+ import type { WsBridgeCommand } from '../src/bridge-contract.ts'
62
64
  import type {
63
65
  BridgeClaimResult,
64
66
  BridgeSimInfo,
@@ -1526,15 +1528,16 @@ class CloudBridge implements WsBridge {
1526
1528
  ) {}
1527
1529
 
1528
1530
  async send(
1529
- command: { type: string; [key: string]: unknown },
1531
+ command: WsBridgeCommand,
1530
1532
  options?: { timeoutMs?: number; defaultTimeoutMs?: number },
1531
1533
  ): Promise<unknown> {
1532
1534
  const timeoutMs =
1533
1535
  options?.timeoutMs ?? this.explicitTimeoutMs ?? options?.defaultTimeoutMs
1536
+ const agent = commandAgent(command)
1534
1537
  const body: CloudCommandEnvelope = {
1535
1538
  id: randomUUID(),
1536
1539
  claimId: this.session.claimId,
1537
- command: cloudCommand(command),
1540
+ command: cloudCommand(agent ? { ...command, agent } : command),
1538
1541
  }
1539
1542
  let response: Response
1540
1543
  try {
@@ -1612,7 +1615,7 @@ export class CloudBoxBridge implements WsBridge {
1612
1615
  ) {}
1613
1616
 
1614
1617
  async send(
1615
- command: { type: string; [key: string]: unknown },
1618
+ command: WsBridgeCommand,
1616
1619
  options?: { timeoutMs?: number; defaultTimeoutMs?: number },
1617
1620
  ): Promise<unknown> {
1618
1621
  const timeoutMs =
@@ -1624,6 +1627,8 @@ export class CloudBoxBridge implements WsBridge {
1624
1627
  for (const [key, value] of Object.entries(command)) {
1625
1628
  if (key !== 'id' && key !== 'simId') payload[key] = value
1626
1629
  }
1630
+ const agent = commandAgent(command)
1631
+ if (agent) payload.agent = agent
1627
1632
  let response: Response
1628
1633
  try {
1629
1634
  response = await fetch(
@@ -0,0 +1,122 @@
1
+ // who is driving a command and what it is doing, so the people watching a sim
2
+ // see the agent and its step beside each action. a cli whose identity is not
3
+ // stable is anonymous and names nobody, and a command that drives nothing
4
+ // carries no agent.
5
+
6
+ import { hostname } from 'os'
7
+ import { formatLockOwner } from '../../peach-kit/src/agent-identity'
8
+ import { AGENT_IDENTITY_MAX_CHARS } from '../src/cloud-contract'
9
+ import { getCliIdentity, readAgentId } from './current-sim'
10
+ import type { PerformStep, WsBridgeCommand } from '../src/bridge-contract'
11
+ import type { SootSimAgentIdentity, SootSimReplayTarget } from '@peach/globals'
12
+
13
+ function clip(text: string): string {
14
+ return text.length > AGENT_IDENTITY_MAX_CHARS
15
+ ? `${text.slice(0, AGENT_IDENTITY_MAX_CHARS - 1)}…`
16
+ : text
17
+ }
18
+
19
+ function targetName(target: SootSimReplayTarget | undefined): string | null {
20
+ const name = target?.text?.trim() || target?.testID?.trim() || target?.id?.trim()
21
+ return name ? name.replace(/\s+/g, ' ') : null
22
+ }
23
+
24
+ function verb(action: string, target: string | null): string {
25
+ return target ? `${action} ${target}` : action
26
+ }
27
+
28
+ // typed text never appears here: a step reaches every person watching, and
29
+ // the text could be a password.
30
+ function describeStep(step: PerformStep): string | null {
31
+ switch (step.type) {
32
+ case 'tap':
33
+ return verb('Tapping', targetName(step.target))
34
+ case 'tapId':
35
+ return verb('Tapping', step.id)
36
+ case 'doubleTap':
37
+ return 'Double tapping'
38
+ case 'longPress':
39
+ return verb('Long pressing', targetName(step.target))
40
+ case 'drag':
41
+ return 'Dragging'
42
+ case 'pinch':
43
+ return 'Pinching'
44
+ case 'scroll':
45
+ return verb('Scrolling', step.id)
46
+ case 'touchDown':
47
+ case 'touchMove':
48
+ case 'touchUp':
49
+ case 'touchCancel':
50
+ return 'Touching the screen'
51
+ case 'type':
52
+ case 'typeInto':
53
+ case 'setElementValue':
54
+ return 'Typing'
55
+ case 'key':
56
+ case 'keyDown':
57
+ case 'keyUp':
58
+ return 'Pressing a key'
59
+ case 'dismissKeyboard':
60
+ case 'toggleKeyboard':
61
+ return 'Using the keyboard'
62
+ case 'openUrl':
63
+ return 'Opening a link'
64
+ case 'setOrientation':
65
+ return `Rotating to ${step.orientation}`
66
+ case 'incrementElement':
67
+ case 'decrementElement':
68
+ return verb('Adjusting', step.id)
69
+ case 'buttonDown':
70
+ case 'buttonUp':
71
+ case 'wait':
72
+ case 'waitFor':
73
+ case 'deviceInfo':
74
+ case 'discoverStoreKitConfig':
75
+ case 'clearStoreKitConfig':
76
+ return null
77
+ }
78
+ }
79
+
80
+ function describeCommand(command: WsBridgeCommand): string | null {
81
+ switch (command.type) {
82
+ case 'tap':
83
+ return verb('Tapping', targetName(command.target))
84
+ case 'longPress':
85
+ return verb('Long pressing', targetName(command.target))
86
+ case 'keyboard':
87
+ return command.action === 'dismiss'
88
+ ? 'Dismissing the keyboard'
89
+ : command.action === 'press' || command.action === 'dispatchKey'
90
+ ? 'Pressing a key'
91
+ : 'Typing'
92
+ case 'screenshot':
93
+ return 'Taking a screenshot'
94
+ case 'perform': {
95
+ const labels = (command.steps ?? []).flatMap((step) => describeStep(step) ?? [])
96
+ const [first] = labels
97
+ if (!first) return null
98
+ return labels.length === 1 ? first : `${first}, then ${labels.length - 1} more`
99
+ }
100
+ default:
101
+ return null
102
+ }
103
+ }
104
+
105
+ /** the identity a command carries to the sim, or undefined when it names nobody. */
106
+ export function commandAgent(command: WsBridgeCommand): SootSimAgentIdentity | undefined {
107
+ const step = describeCommand(command)
108
+ if (!step) return undefined
109
+ const identity = getCliIdentity()
110
+ if (!identity.stable) return undefined
111
+ const machine = hostname().split('.')[0]
112
+ if (!machine) return undefined
113
+ return {
114
+ id: clip(identity.key),
115
+ name: clip(
116
+ readAgentId() ??
117
+ (process.env.PEACH_AGENT_ID?.trim() || formatLockOwner(identity.key)),
118
+ ),
119
+ machine: clip(machine),
120
+ step: clip(step),
121
+ }
122
+ }
package/cli/ws-bridge.ts CHANGED
@@ -29,6 +29,7 @@ import {
29
29
  type DevBridgeLockfile,
30
30
  } from '../src/home-paths'
31
31
  import { createCloudBridgeForParsed } from './cloud-client'
32
+ import { commandAgent } from './command-agent'
32
33
  import {
33
34
  getCliIdentity,
34
35
  getOwnerProcessGroupId,
@@ -831,6 +832,8 @@ export function createBridge(wsPort: number, opts: WsBridgeOptions = {}): WsBrid
831
832
  callOpts?.timeoutMs ??
832
833
  (opts.explicitTimeout ? commandTimeoutMs : callOpts?.defaultTimeoutMs) ??
833
834
  commandTimeoutMs
835
+ const agent = commandAgent(cmd)
836
+ const sent = agent ? { ...cmd, agent } : cmd
834
837
  const sendOnce = async (
835
838
  defaultSimId?: string,
836
839
  cmdOverride?: Record<string, any>,
@@ -839,7 +842,7 @@ export function createBridge(wsPort: number, opts: WsBridgeOptions = {}): WsBrid
839
842
  if (terminalError) throw terminalError
840
843
  const id = nextId++
841
844
  return new Promise((resolve, reject) => {
842
- const payload = { ...(cmdOverride ?? cmd), id } as Record<string, any>
845
+ const payload = { ...(cmdOverride ?? sent), id } as Record<string, any>
843
846
  if (payload.simId === undefined && defaultSimId) {
844
847
  payload.simId = defaultSimId
845
848
  }
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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
- /*! peach v0.1.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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;
@@ -22529,7 +22529,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk2)
22529
22529
  const overlayFiles = (0, import_node_fs27.readdirSync)(overlay, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path26.default.join(entry.parentPath, entry.name)).sort();
22530
22530
  const key2 = JSON.stringify([
22531
22531
  // bump the recipe when the transformation changes; bundling changes function text.
22532
- "v24",
22532
+ "v25",
22533
22533
  [...WEAKEN_FOUNDATION_SYMS],
22534
22534
  toolchainBin,
22535
22535
  sdk2,
@@ -22589,6 +22589,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk2)
22589
22589
  "objc/NSObject.h",
22590
22590
  "ObjectiveC.apinotes",
22591
22591
  "net/if.h",
22592
+ "netinet/tcp.h",
22592
22593
  "notify.h",
22593
22594
  "notify.modulemap",
22594
22595
  "module.modulemap",
@@ -36117,7 +36118,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
36117
36118
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
36118
36119
  MULTI_MANIFEST_VERSION = 71;
36119
36120
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
36120
- compilerSourceDigest = true ? "36b1496faf39a688e5ab3ee63bdab89a3afde2b9c6355443c3162f4b1e3b9144" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
36121
+ compilerSourceDigest = true ? "d287f3ad479477c70004707c1336f37c9baeb81aef1880544a5ca236e088ca16" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
36121
36122
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
36122
36123
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
36123
36124
  cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
@@ -50068,6 +50069,7 @@ async function fetchCheckout(checkouts, identity2, pin2, signal) {
50068
50069
  }
50069
50070
  function fetchedCheckout(checkouts, identity2, pin2) {
50070
50071
  const dir = import_node_path76.default.join(checkouts, identity2);
50072
+ if (preparedSwiftPin(checkouts, identity2, pin2.location, pin2.revision)) return dir;
50071
50073
  const head = import_node_path76.default.join(dir, ".git", "HEAD");
50072
50074
  if (!verified.has(checkoutKey(dir, pin2)) || !import_node_fs75.default.existsSync(head) || import_node_fs75.default.readFileSync(head, "utf8").trim() !== pin2.revision)
50073
50075
  throw new Error(
@@ -50672,7 +50674,7 @@ var init_swift_standin_digest = __esm({
50672
50674
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
50673
50675
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
50674
50676
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
50675
- STANDIN_SOURCE_DIGEST = true ? "80b89d414ee068d747a0859811608daad7d3c46ca66f7bf589cc5c82b820de93" : standinSourceDigest();
50677
+ STANDIN_SOURCE_DIGEST = true ? "f2b2c9a5d56b4cc06d8934ce5600587dcf7893acdf17158203975d997dbd387e" : standinSourceDigest();
50676
50678
  }
50677
50679
  });
50678
50680
 
@@ -65156,7 +65158,7 @@ var init_nitro_superset = __esm({
65156
65158
  init_nitroContract();
65157
65159
  init_swift_standin_digest();
65158
65160
  NITRO_SUPERSET_ENTRY_NAME = "superset";
65159
- NITRO_COMPILER_DIGEST = true ? "46fa7b8faaa964fe0011aec30ae6215d5249f6c1668cc19a35082c35738917cb" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
65161
+ NITRO_COMPILER_DIGEST = true ? "69eced6dbfe31f0e81808ff7cd7eb781e3ed61b284e528afaa6cf96ac2d2b871" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
65160
65162
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
65161
65163
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
65162
65164
  published = /* @__PURE__ */ new Map();
@@ -66395,7 +66397,7 @@ var init_expo_native_compiler_digest = __esm({
66395
66397
 
66396
66398
  // src/expo-native-prebuilt.ts
66397
66399
  function expoNativeCompilerDigestValue() {
66398
- return true ? "3860d02e968c4e679b7669066efdc2302ff559ff6014934ad88d4fad7996909d" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
66400
+ return true ? "07e205f69ed280a405ff8ed7b8e6259e8752f107f8768d265a02d97d85bafdee" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
66399
66401
  }
66400
66402
  function readSources(value) {
66401
66403
  const sources = isRecord(value) ? value.sources : null;
@@ -73290,7 +73292,7 @@ var import_node_path5 = require("node:path");
73290
73292
  init_src();
73291
73293
 
73292
73294
  // runtime-companion.json
73293
- var runtime_companion_default = { abi: 1, sha256: "7e162f525497b8964ff8f7274ce8219416ec01ac8fc6986a80d2df90a54c71c4", file: "node/cli-7e162f525497b8964ff8f7274ce8219416ec01ac8fc6986a80d2df90a54c71c4.cjs" };
73295
+ var runtime_companion_default = { abi: 1, sha256: "f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b", file: "node/cli-f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b.cjs" };
73294
73296
 
73295
73297
  // src/cli-runtime.ts
73296
73298
  init_answeredNativePackages();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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
- /*! peach v0.1.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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;
@@ -22,6 +22,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
22
  // src/cloud-contract.ts
23
23
  var cloud_contract_exports = {};
24
24
  __export(cloud_contract_exports, {
25
+ AGENT_IDENTITY_MAX_CHARS: () => AGENT_IDENTITY_MAX_CHARS,
25
26
  RNX_CLOUD_ALL_COMMAND_SCOPES: () => RNX_CLOUD_ALL_COMMAND_SCOPES,
26
27
  RNX_CLOUD_COMMAND_SCOPES: () => RNX_CLOUD_COMMAND_SCOPES,
27
28
  RNX_CLOUD_COMMAND_TYPES: () => RNX_CLOUD_COMMAND_TYPES,
@@ -45,11 +46,27 @@ __export(cloud_contract_exports, {
45
46
  isValidRnxCloudLabel: () => isValidRnxCloudLabel,
46
47
  matchesRnxCloudLabels: () => matchesRnxCloudLabels,
47
48
  parseRnxCloudLabels: () => parseRnxCloudLabels,
49
+ readAgentIdentity: () => readAgentIdentity,
48
50
  readRnxCloudLabels: () => readRnxCloudLabels,
49
51
  rnxCloudCommandScope: () => rnxCloudCommandScope,
50
52
  rnxCloudScopesAllowCommand: () => rnxCloudScopesAllowCommand
51
53
  });
52
54
  module.exports = __toCommonJS(cloud_contract_exports);
55
+ var AGENT_IDENTITY_MAX_CHARS = 200;
56
+ function readAgentIdentity(value) {
57
+ if (value === void 0) return void 0;
58
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return null;
59
+ const text = (key) => {
60
+ const field = Reflect.get(value, key);
61
+ return typeof field === "string" && field.trim() !== "" && field.length <= AGENT_IDENTITY_MAX_CHARS ? field : null;
62
+ };
63
+ const id = text("id");
64
+ const name = text("name");
65
+ const machine = text("machine");
66
+ const step = text("step");
67
+ if (id === null || name === null || machine === null || step === null) return null;
68
+ return { id, name, machine, step };
69
+ }
53
70
  var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
54
71
  var RNX_CLOUD_DESIGN_MAX_STORAGE_ENTRIES = 256;
55
72
  var RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES = 1024 * 1024;
@@ -172,6 +189,7 @@ function isRnxCloudSimStatus(value) {
172
189
  }
173
190
  // Annotate the CommonJS export names for ESM import in node:
174
191
  0 && (module.exports = {
192
+ AGENT_IDENTITY_MAX_CHARS,
175
193
  RNX_CLOUD_ALL_COMMAND_SCOPES,
176
194
  RNX_CLOUD_COMMAND_SCOPES,
177
195
  RNX_CLOUD_COMMAND_TYPES,
@@ -195,6 +213,7 @@ function isRnxCloudSimStatus(value) {
195
213
  isValidRnxCloudLabel,
196
214
  matchesRnxCloudLabels,
197
215
  parseRnxCloudLabels,
216
+ readAgentIdentity,
198
217
  readRnxCloudLabels,
199
218
  rnxCloudCommandScope,
200
219
  rnxCloudScopesAllowCommand
@@ -1,6 +1,21 @@
1
- /*! peach v0.1.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
+ var AGENT_IDENTITY_MAX_CHARS = 200;
5
+ function readAgentIdentity(value) {
6
+ if (value === void 0) return void 0;
7
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return null;
8
+ const text = (key) => {
9
+ const field = Reflect.get(value, key);
10
+ return typeof field === "string" && field.trim() !== "" && field.length <= AGENT_IDENTITY_MAX_CHARS ? field : null;
11
+ };
12
+ const id = text("id");
13
+ const name = text("name");
14
+ const machine = text("machine");
15
+ const step = text("step");
16
+ if (id === null || name === null || machine === null || step === null) return null;
17
+ return { id, name, machine, step };
18
+ }
4
19
  var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
5
20
  var RNX_CLOUD_DESIGN_MAX_STORAGE_ENTRIES = 256;
6
21
  var RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES = 1024 * 1024;
@@ -122,6 +137,7 @@ function isRnxCloudSimStatus(value) {
122
137
  return value === "creating" || value === "open" || value === "hibernated" || value === "deleting" || value === "deleted";
123
138
  }
124
139
  export {
140
+ AGENT_IDENTITY_MAX_CHARS,
125
141
  RNX_CLOUD_ALL_COMMAND_SCOPES,
126
142
  RNX_CLOUD_COMMAND_SCOPES,
127
143
  RNX_CLOUD_COMMAND_TYPES,
@@ -145,6 +161,7 @@ export {
145
161
  isValidRnxCloudLabel,
146
162
  matchesRnxCloudLabels,
147
163
  parseRnxCloudLabels,
164
+ readAgentIdentity,
148
165
  readRnxCloudLabels,
149
166
  rnxCloudCommandScope,
150
167
  rnxCloudScopesAllowCommand
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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
- /*! peach v0.1.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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
- /*! peach v0.1.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../contrast-runtime-delivery/src/version.ts
4
4
  function isValidRuntimeVersion(value) {