peachsim 0.1.2400 → 0.1.2402

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 (126) hide show
  1. package/README.md +2 -2
  2. package/cli/bin.ts +1 -1
  3. package/cli/bridge-flow-runner.ts +1 -1
  4. package/cli/catalog/content.ts +520 -0
  5. package/cli/catalog/index.ts +4 -0
  6. package/cli/catalog/meta.ts +3881 -0
  7. package/cli/catalog/renderers.ts +659 -0
  8. package/cli/catalog/routes.ts +237 -0
  9. package/cli/catalog/types.ts +96 -0
  10. package/cli/cloud-client.ts +4 -1
  11. package/cli/commands/box.ts +6 -0
  12. package/cli/commands/inspect.ts +3 -3
  13. package/cli/commands/map.ts +1 -0
  14. package/cli/commands/platform.ts +2 -0
  15. package/cli/commands/record.ts +1 -1
  16. package/cli/commands/stream.ts +2 -0
  17. package/cli/dev-build-freshness.ts +1 -0
  18. package/cli/help-core.ts +6 -6
  19. package/cli/hidden-runtime-alias.ts +1 -1
  20. package/cli/outbound-endpoints.ts +3 -3
  21. package/cli/parse-args.ts +1 -1
  22. package/cli/run-registry.ts +25 -27
  23. package/dist-lib/agent-daemon-client.cjs +1 -1
  24. package/dist-lib/agent-events.cjs +1 -1
  25. package/dist-lib/attached-projects.cjs +1 -1
  26. package/dist-lib/auth/shared-session.cjs +1 -1
  27. package/dist-lib/backend-origin.cjs +1 -1
  28. package/dist-lib/beta.cjs +1 -1
  29. package/dist-lib/beta.mjs +1 -1
  30. package/dist-lib/bridge-constants.cjs +1 -1
  31. package/dist-lib/bridge-contract-input.cjs +1 -1
  32. package/dist-lib/bridge-contract-input.mjs +1 -1
  33. package/dist-lib/bridge-contract.cjs +1 -1
  34. package/dist-lib/bridge-contract.mjs +1 -1
  35. package/dist-lib/bundle-channel.cjs +50 -44
  36. package/dist-lib/capture-contract.cjs +1 -1
  37. package/dist-lib/capture-contract.mjs +1 -1
  38. package/dist-lib/cloud-contract.cjs +1 -1
  39. package/dist-lib/cloud-contract.mjs +1 -1
  40. package/dist-lib/cloud-test-args.cjs +1 -1
  41. package/dist-lib/cloud-test-args.mjs +1 -1
  42. package/dist-lib/cloud.cjs +1 -1
  43. package/dist-lib/cloud.mjs +1 -1
  44. package/dist-lib/config.cjs +1 -1
  45. package/dist-lib/config.mjs +1 -1
  46. package/dist-lib/detox/index.cjs +1 -1
  47. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  48. package/dist-lib/expo-swift-bundle.cjs +31 -31
  49. package/dist-lib/expo-swift-metadata.cjs +1 -1
  50. package/dist-lib/expo-swift-metadata.mjs +1 -1
  51. package/dist-lib/home-paths.cjs +1 -1
  52. package/dist-lib/host/bridge-host.cjs +75 -44
  53. package/dist-lib/host/fetch-proxy-handler.cjs +43 -40
  54. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  55. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  56. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  57. package/dist-lib/host/websocket-proxy.cjs +1 -1
  58. package/dist-lib/index.cjs +47 -44
  59. package/dist-lib/jump-to-source-babel.cjs +1 -1
  60. package/dist-lib/jump-to-source-native.cjs +1 -1
  61. package/dist-lib/kotlin-host.cjs +15 -9
  62. package/dist-lib/menu.cjs +1 -1
  63. package/dist-lib/menu.mjs +1 -1
  64. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  65. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  66. package/dist-lib/metro-production-bundle.cjs +1 -1
  67. package/dist-lib/metro-production-bundle.mjs +1 -1
  68. package/dist-lib/metro.cjs +52 -49
  69. package/dist-lib/native-app-identity-project.cjs +22 -19
  70. package/dist-lib/native-app-identity-project.mjs +4 -3
  71. package/dist-lib/native-app-identity.cjs +1 -1
  72. package/dist-lib/native-app-identity.mjs +1 -1
  73. package/dist-lib/native-firebase-metadata.cjs +1 -1
  74. package/dist-lib/native-firebase-metadata.mjs +1 -1
  75. package/dist-lib/pdfium-raster.cjs +1 -1
  76. package/dist-lib/pdfium-raster.mjs +1 -1
  77. package/dist-lib/plist.cjs +1 -1
  78. package/dist-lib/plist.mjs +1 -1
  79. package/dist-lib/profiles.cjs +1 -1
  80. package/dist-lib/public-brand.cjs +1 -1
  81. package/dist-lib/public-origins-lib-esm.json +24 -24
  82. package/dist-lib/public-origins-lib.json +65 -62
  83. package/dist-lib/react-native-host-modules.cjs +1 -1
  84. package/dist-lib/react-native-host-modules.mjs +1 -1
  85. package/dist-lib/reap-browser.cjs +1 -1
  86. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  87. package/dist-lib/sdk.cjs +1 -1
  88. package/dist-lib/sdk.mjs +1 -1
  89. package/dist-lib/skills.cjs +156 -120
  90. package/dist-lib/swift-compile.cjs +28 -30
  91. package/dist-lib/swift-compile.mjs +24 -26
  92. package/dist-lib/swift-package.cjs +1 -1
  93. package/dist-lib/swift-package.mjs +1 -1
  94. package/dist-lib/swift-submit.cjs +1 -1
  95. package/dist-lib/swift-submit.mjs +1 -1
  96. package/dist-lib/swift-toolchain.cjs +1 -1
  97. package/dist-lib/swift.cjs +1 -1
  98. package/dist-lib/vite-swift.cjs +29 -31
  99. package/dist-lib/vite.cjs +38 -35
  100. package/dist-lib/worklet-executable.cjs +1 -1
  101. package/dist-lib/worklet-executable.mjs +1 -1
  102. package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +4 -0
  103. package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +13 -0
  104. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +6 -1
  105. package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +6 -0
  106. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +6 -0
  107. package/kotlin/sdk.tar.gz +0 -0
  108. package/kotlin/toolchain.json +2 -2
  109. package/package.json +1 -3
  110. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSValueTransformer.h +2 -2
  111. package/sdk/ios/System/Library/Frameworks/GameplayKit.framework/Headers/GKState.h +78 -0
  112. package/sdk/ios/System/Library/Frameworks/GameplayKit.framework/Headers/GKStateMachine.h +69 -0
  113. package/sdk/ios/System/Library/Frameworks/GameplayKit.framework/Headers/GameplayKit.apinotes +269 -0
  114. package/sdk/ios/System/Library/Frameworks/GameplayKit.framework/Headers/GameplayKit.h +15 -0
  115. package/sdk/ios/System/Library/Frameworks/GameplayKit.framework/Headers/GameplayKitBase.h +38 -0
  116. package/sdk/ios/System/Library/Frameworks/GameplayKit.framework/Modules/module.modulemap +6 -0
  117. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +8 -4
  118. package/src/android-gradle-sources.ts +14 -8
  119. package/src/androidGradleContract.ts +2 -0
  120. package/src/nitro-adapter.lock.json +232 -232
  121. package/src/nitro-superset.lock.json +4 -4
  122. package/src/swift-distribution.lock.json +8 -8
  123. package/src/turbo-runtime.lock.json +19 -19
  124. package/src/wasm-optimize.ts +23 -24
  125. package/src/worklets-babel.ts +2 -6
  126. package/cli/registry.ts +0 -2
@@ -0,0 +1,237 @@
1
+ // generated by scripts/generate/peach-cli-docs.ts; edit cli/meta.ts instead.
2
+ import type { CliDocsRoute } from './types'
3
+
4
+ export const sootsimCliDocsRoutes: CliDocsRoute[] = [
5
+ {
6
+ title: 'Overview',
7
+ route: '/docs/peach/cli',
8
+ },
9
+ {
10
+ title: 'test',
11
+ route: '/docs/peach/cli/test',
12
+ },
13
+ {
14
+ title: 'cleanup',
15
+ route: '/docs/peach/cli/cleanup',
16
+ },
17
+ {
18
+ title: 'record',
19
+ route: '/docs/peach/cli/record',
20
+ },
21
+ {
22
+ title: 'storage',
23
+ route: '/docs/peach/cli/storage',
24
+ },
25
+ {
26
+ title: 'permissions',
27
+ route: '/docs/peach/cli/permissions',
28
+ },
29
+ {
30
+ title: 'location',
31
+ route: '/docs/peach/cli/location',
32
+ },
33
+ {
34
+ title: 'push',
35
+ route: '/docs/peach/cli/push',
36
+ },
37
+ {
38
+ title: 'state',
39
+ route: '/docs/peach/cli/state',
40
+ },
41
+ {
42
+ title: 'defaults',
43
+ route: '/docs/peach/cli/defaults',
44
+ },
45
+ {
46
+ title: 'reset',
47
+ route: '/docs/peach/cli/reset',
48
+ },
49
+ {
50
+ title: 'camera',
51
+ route: '/docs/peach/cli/camera',
52
+ },
53
+ {
54
+ title: 'perf',
55
+ route: '/docs/peach/cli/perf',
56
+ },
57
+ {
58
+ title: 'describe',
59
+ route: '/docs/peach/cli/describe',
60
+ },
61
+ {
62
+ title: 'find',
63
+ route: '/docs/peach/cli/find',
64
+ },
65
+ {
66
+ title: 'assert',
67
+ route: '/docs/peach/cli/assert',
68
+ },
69
+ {
70
+ title: 'screenshot',
71
+ route: '/docs/peach/cli/screenshot',
72
+ },
73
+ {
74
+ title: 'get',
75
+ route: '/docs/peach/cli/get',
76
+ },
77
+ {
78
+ title: 'do',
79
+ route: '/docs/peach/cli/do',
80
+ },
81
+ {
82
+ title: 'wait',
83
+ route: '/docs/peach/cli/wait',
84
+ },
85
+ {
86
+ title: 'shell',
87
+ route: '/docs/peach/cli/shell',
88
+ },
89
+ {
90
+ title: 'mode',
91
+ route: '/docs/peach/cli/mode',
92
+ },
93
+ {
94
+ title: 'device',
95
+ route: '/docs/peach/cli/device',
96
+ },
97
+ {
98
+ title: 'network',
99
+ route: '/docs/peach/cli/network',
100
+ },
101
+ {
102
+ title: 'logs',
103
+ route: '/docs/peach/cli/logs',
104
+ },
105
+ {
106
+ title: 'debug',
107
+ route: '/docs/peach/cli/debug',
108
+ },
109
+ {
110
+ title: 'what-happened',
111
+ route: '/docs/peach/cli/what-happened',
112
+ },
113
+ {
114
+ title: 'timeline',
115
+ route: '/docs/peach/cli/timeline',
116
+ },
117
+ {
118
+ title: 'ios',
119
+ route: '/docs/peach/cli/ios',
120
+ },
121
+ {
122
+ title: 'android',
123
+ route: '/docs/peach/cli/android',
124
+ },
125
+ {
126
+ title: 'stream',
127
+ route: '/docs/peach/cli/stream',
128
+ },
129
+ {
130
+ title: 'remote',
131
+ route: '/docs/peach/cli/remote',
132
+ },
133
+ {
134
+ title: 'open',
135
+ route: '/docs/peach/cli/open',
136
+ },
137
+ {
138
+ title: 'preview',
139
+ route: '/docs/peach/cli/preview',
140
+ },
141
+ {
142
+ title: 'package',
143
+ route: '/docs/peach/cli/package',
144
+ },
145
+ {
146
+ title: 'map',
147
+ route: '/docs/peach/cli/map',
148
+ },
149
+ {
150
+ title: 'canvas',
151
+ route: '/docs/peach/cli/canvas',
152
+ },
153
+ {
154
+ title: 'list',
155
+ route: '/docs/peach/cli/list',
156
+ },
157
+ {
158
+ title: 'use',
159
+ route: '/docs/peach/cli/use',
160
+ },
161
+ {
162
+ title: 'skill',
163
+ route: '/docs/peach/cli/skill',
164
+ },
165
+ {
166
+ title: 'claim',
167
+ route: '/docs/peach/cli/claim',
168
+ },
169
+ {
170
+ title: 'agent',
171
+ route: '/docs/peach/cli/agent',
172
+ },
173
+ {
174
+ title: 'close',
175
+ route: '/docs/peach/cli/close',
176
+ },
177
+ {
178
+ title: 'setup',
179
+ route: '/docs/peach/cli/setup',
180
+ },
181
+ {
182
+ title: 'doctor',
183
+ route: '/docs/peach/cli/doctor',
184
+ },
185
+ {
186
+ title: 'compat',
187
+ route: '/docs/peach/cli/compat',
188
+ },
189
+ {
190
+ title: 'project-report',
191
+ route: '/docs/peach/cli/project-report',
192
+ },
193
+ {
194
+ title: 'support',
195
+ route: '/docs/peach/cli/support',
196
+ },
197
+ {
198
+ title: 'desktop',
199
+ route: '/docs/peach/cli/desktop',
200
+ },
201
+ {
202
+ title: 'daemon',
203
+ route: '/docs/peach/cli/daemon',
204
+ },
205
+ {
206
+ title: 'version',
207
+ route: '/docs/peach/cli/version',
208
+ },
209
+ {
210
+ title: 'upgrade',
211
+ route: '/docs/peach/cli/upgrade',
212
+ },
213
+ {
214
+ title: 'serve',
215
+ route: '/docs/peach/cli/serve',
216
+ },
217
+ {
218
+ title: 'runtime',
219
+ route: '/docs/peach/cli/runtime',
220
+ },
221
+ {
222
+ title: 'auth',
223
+ route: '/docs/peach/cli/auth',
224
+ },
225
+ {
226
+ title: 'login',
227
+ route: '/docs/peach/cli/login',
228
+ },
229
+ {
230
+ title: 'logout',
231
+ route: '/docs/peach/cli/logout',
232
+ },
233
+ {
234
+ title: 'config',
235
+ route: '/docs/peach/cli/config',
236
+ },
237
+ ]
@@ -0,0 +1,96 @@
1
+ export interface CliDocRenderContext {
2
+ bridgePort: number
3
+ defaultShellUrl: string
4
+ }
5
+
6
+ export interface CliGlobalFlagMeta {
7
+ flag: string
8
+ description: string
9
+ }
10
+
11
+ export interface CliOptionMeta {
12
+ flag: string
13
+ description: string
14
+ hidden?: boolean
15
+ }
16
+
17
+ export interface CliExampleMeta {
18
+ command: string
19
+ description?: string
20
+ hidden?: boolean
21
+ }
22
+
23
+ export interface CliCommandMeta {
24
+ id: string
25
+ slug: string
26
+ navTitle: string
27
+ title: string
28
+ description: string
29
+ summary: string
30
+ order: number
31
+ usage: string[]
32
+ aliases?: string[]
33
+ options?: CliOptionMeta[]
34
+ examples?: CliExampleMeta[]
35
+ related?: string[]
36
+ hidden?: boolean
37
+ // excludes a command from the generated website navigation until its
38
+ // dedicated reference page lands; terminal help stays available.
39
+ docsPending?: boolean
40
+ // when set, the command currently fails fast at runtime. `--help` renders
41
+ // this as a prominent banner above usage so the options/examples (kept for
42
+ // when the rework lands) don't read as working invocations.
43
+ unsupported?: string
44
+ }
45
+
46
+ // lightweight help entry for individual runtime verbs (tap, describe, type, etc.)
47
+ // surfaced when a grouping-verb --help falls through to a specific inner
48
+ // verb — e.g. `peach do tap --help` renders the tap entry here.
49
+ //
50
+ // grouping-verb help (peach do --help, peach get --help) is *also* built
51
+ // from these entries: each entry declares its parent group via `group` and
52
+ // optionally a `subgroup` so related verbs cluster visually instead of
53
+ // collapsing into one flat list.
54
+ export interface CliInspectVerbMeta {
55
+ verb: string
56
+ description: string
57
+ usage: string[]
58
+ examples?: CliExampleMeta[]
59
+ notes?: string
60
+ // parent grouping verb. drives which grouping-verb --help screen lists it.
61
+ // one of: 'do', 'get', 'debug', 'wait', 'shell', 'describe', 'find'.
62
+ group?: string
63
+ // optional cluster inside a group (e.g. 'targeting', 'text input',
64
+ // 'gestures', 'lifecycle') so the group help renders visual subheaders.
65
+ subgroup?: string
66
+ // one-line summary used specifically in the grouping-verb list.
67
+ // usually terser than `description`.
68
+ shortDescription?: string
69
+ // cross-references to related verbs, rendered as "see also" on the per-
70
+ // verb help screen. values are verb names that exist in the registry.
71
+ seeAlso?: string[]
72
+ // flag-level options. when present, per-verb --help renders them as an
73
+ // options table (same shape as CliCommandMeta.options) and the grouping
74
+ // list renders a compact "flags:" hint under the verb.
75
+ options?: CliOptionMeta[]
76
+ // sort key inside a subgroup. ties fall back to registry order.
77
+ order?: number
78
+ }
79
+
80
+ export interface CliDocSection {
81
+ title: string
82
+ body: string
83
+ }
84
+
85
+ export interface CliOverviewSection extends CliDocSection {}
86
+
87
+ export interface CliDocPage {
88
+ slug: string
89
+ content: string
90
+ }
91
+
92
+ export interface CliDocsRoute {
93
+ title: string
94
+ route: string
95
+ pending?: boolean
96
+ }
@@ -58,6 +58,7 @@ import {
58
58
  type RemotePlatform,
59
59
  } from './cloud-session.ts'
60
60
  import { detectProject } from './commands/detect.ts'
61
+ import { resolveCheckoutRepo } from './run-registry.ts'
61
62
  import type {
62
63
  BridgeClaimResult,
63
64
  BridgeSimInfo,
@@ -1233,6 +1234,7 @@ export async function createRemoteSim(options: CreateRemoteSimOptions): Promise<
1233
1234
  wait: 'true',
1234
1235
  })
1235
1236
  if (options.reuse) query.set('reuseIfExists', 'true')
1237
+ const repo = resolveCheckoutRepo()
1236
1238
  const headers: Record<string, string> = {
1237
1239
  authorization: options.authorization,
1238
1240
  'content-type': 'application/javascript',
@@ -1240,6 +1242,7 @@ export async function createRemoteSim(options: CreateRemoteSimOptions): Promise<
1240
1242
  'x-rnx-platform': options.platform,
1241
1243
  'x-rnx-device': options.device,
1242
1244
  ...(options.accountId ? { 'x-rnx-account-id': options.accountId } : null),
1245
+ ...(repo ? { 'x-rnx-repo': repo } : null),
1243
1246
  }
1244
1247
  let response: Response
1245
1248
  try {
@@ -1600,7 +1603,7 @@ class CloudBridge implements WsBridge {
1600
1603
  close(): void {}
1601
1604
  }
1602
1605
 
1603
- class CloudBoxBridge implements WsBridge {
1606
+ export class CloudBoxBridge implements WsBridge {
1604
1607
  readonly plane = 'cloud' as const
1605
1608
 
1606
1609
  constructor(
@@ -41,6 +41,7 @@ import {
41
41
  type CloudBoxNativeAsset,
42
42
  } from '../cloud-box-artifact.ts'
43
43
  import { openUrl } from '../open-url'
44
+ import { resolveCheckoutRepo } from '../run-registry'
44
45
  import { findRepositoryPackageRoot } from '../setup-repository'
45
46
  import { resolvePlacement } from '../ws-bridge'
46
47
  import { BundleFilePlane } from './box/bundle-plane'
@@ -497,6 +498,7 @@ function cloudBoxClient(options: {
497
498
  apiOrigin: string
498
499
  apiKey: string
499
500
  accountId: string | null
501
+ repo?: string | null
500
502
  }) {
501
503
  return createBoxClient(
502
504
  createCloudBoxProvider({
@@ -507,6 +509,7 @@ function cloudBoxClient(options: {
507
509
  apiOrigin: options.apiOrigin,
508
510
  apiKey: options.apiKey,
509
511
  accountId: options.accountId,
512
+ repo: options.repo,
510
513
  },
511
514
  }),
512
515
  )
@@ -536,6 +539,8 @@ export async function createPrebuiltBundleBox(options: {
536
539
  apiOrigin: string
537
540
  apiKey: string
538
541
  accountId: string | null
542
+ // the checkout's github owner/repo, which files the box's sessions under it
543
+ repo: string | null
539
544
  secrets?: Readonly<Record<string, string>>
540
545
  }) {
541
546
  const platform =
@@ -725,6 +730,7 @@ async function runCloudBoxCreate(
725
730
  apiOrigin: apiOrigin(args, auth),
726
731
  apiKey,
727
732
  accountId,
733
+ repo: resolveCheckoutRepo(),
728
734
  }
729
735
  let session: BoxShellSession | null = null
730
736
  try {
@@ -1,6 +1,4 @@
1
1
  import { Script } from 'node:vm'
2
- import { getCliInspectVerbMeta } from '@peach/skills/cli'
3
- import { renderCliCommandHelp, renderCliGroupHelp } from '@peach/skills/cli/renderers'
4
2
  import { DEFAULT_SOOTSIM_BRIDGE_PORT } from '../../src/bridge-constants'
5
3
  import { DEFAULT_SOOTSIM_SHELL_URL } from '../../src/cli-constants'
6
4
  import { sleep } from '../../src/sleep'
@@ -11,6 +9,8 @@ import {
11
9
  buildSampleColorEval,
12
10
  type SampleRect,
13
11
  } from '../browser-evals'
12
+ import { getCliInspectVerbMeta } from '../catalog'
13
+ import { renderCliCommandHelp, renderCliGroupHelp } from '../catalog/renderers'
14
14
  import { getCliIdentityKey } from '../current-sim'
15
15
  import { rememberFlowCandidate } from '../flow-session'
16
16
  import { maybeHint } from '../hints'
@@ -1053,7 +1053,7 @@ export async function runInspect(args: string[], opts: InspectOptions) {
1053
1053
  }
1054
1054
 
1055
1055
  if (!subcommand || args.includes('--help') || args.includes('-h')) {
1056
- // help output comes from the registry in packages/peach-skills, so every help surface reads one source.
1056
+ // help output comes from the registry in packages/peachsim/cli/catalog, so every help surface reads one source.
1057
1057
  const docContext = {
1058
1058
  bridgePort: DEFAULT_SOOTSIM_BRIDGE_PORT,
1059
1059
  defaultShellUrl: DEFAULT_SOOTSIM_SHELL_URL,
@@ -568,6 +568,7 @@ async function publish(file: string, args: string[]): Promise<number> {
568
568
  branch:
569
569
  flag(args, '--branch') ?? gitValue('git rev-parse --abbrev-ref HEAD') ?? 'main',
570
570
  commitSha: flag(args, '--commit') ?? gitValue('git rev-parse HEAD') ?? null,
571
+ scheme: map.scheme ?? undefined,
571
572
  device: flag(args, '--device') ?? 'default',
572
573
  appearance: flag(args, '--appearance') === 'dark' ? 'dark' : 'light',
573
574
  mode: map.screens.some((screen) => screen.source === 'crawl') ? 'crawl' : 'manual',
@@ -19,6 +19,7 @@ import { isRecord } from '../../src/is-record'
19
19
  import { toPeachDevelopmentBundleUrl } from '../../src/metro-production-bundle'
20
20
  import { rnxPublicBrand } from '../../src/public-brand'
21
21
  import { UnsupportedRemoteHostError } from '../cloud-client'
22
+ import { resolveCheckoutRepo } from '../run-registry'
22
23
  import { rethrowIfExit } from '../run-rnx'
23
24
  import type { CloudBoxSession, CloudSession } from '../cloud-session'
24
25
 
@@ -644,6 +645,7 @@ async function runRemoteBox(
644
645
  apiOrigin,
645
646
  apiKey: header.replace(/^Bearer /, ''),
646
647
  accountId,
648
+ repo: resolveCheckoutRepo(projectDir ?? undefined),
647
649
  })
648
650
  const session = createCloudBoxSession({
649
651
  boxId: created.id,
@@ -219,7 +219,7 @@ function readRepoScope(args: string[]): RepoScope {
219
219
 
220
220
  export async function runRecord(args: string[], opts: RecordOptions) {
221
221
  // note: `--help` / `-h` never reach here — bin.ts intercepts them and
222
- // renders the registry-driven help page (packages/peach-skills meta.ts).
222
+ // renders the registry-driven help page (packages/peachsim/cli/catalog meta.ts).
223
223
 
224
224
  const sub = findRecordSubcommand(args)
225
225
  if (sub) {
@@ -4,6 +4,7 @@ import { z } from 'zod'
4
4
  import { rnxHomeDir } from '../../src/home-paths'
5
5
  import { rnxPublicBrand } from '../../src/public-brand'
6
6
  import { authHeaderOrExit, cloudAccountIdOrExit } from '../auth'
7
+ import { resolveCheckoutRepo } from '../run-registry'
7
8
  import { writeSecureJsonAtomic } from '../secure-file'
8
9
  import { callInBridge, createBridgeFromParsed, parseBridgeCliArgs } from '../ws-bridge'
9
10
 
@@ -94,6 +95,7 @@ export async function runStreamCommand(
94
95
  accountId: cloudAccountIdOrExit(auth),
95
96
  device:
96
97
  typeof settings.deviceModel === 'string' ? settings.deviceModel : undefined,
98
+ repo: resolveCheckoutRepo() ?? undefined,
97
99
  }),
98
100
  signal: AbortSignal.timeout(15_000),
99
101
  })
@@ -65,6 +65,7 @@ const PEACHSIM_ENGINE_INPUTS = [
65
65
  ]
66
66
 
67
67
  const ENGINE_SOURCES = [
68
+ 'conformance-corpus/peach-engine/fixtures',
68
69
  'packages/peach-engine/src',
69
70
  'packages/peach-engine/public',
70
71
  'packages/peach-engine/vendor',
package/cli/help-core.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { cliCommandMetas } from '@peach/skills/cli'
2
- import {
3
- renderCliCommandHelp,
4
- renderCliGroupHelp,
5
- renderCliIndexHelp,
6
- } from '@peach/skills/cli/renderers'
7
1
  import {
8
2
  DEFAULT_SOOTSIM_BRIDGE_PORT,
9
3
  DEFAULT_SOOTSIM_BRIDGE_URL,
10
4
  } from '../src/bridge-constants'
5
+ import { cliCommandMetas } from './catalog'
6
+ import {
7
+ renderCliCommandHelp,
8
+ renderCliGroupHelp,
9
+ renderCliIndexHelp,
10
+ } from './catalog/renderers'
11
11
  import {
12
12
  getRnxCommandAvailability,
13
13
  getRnxFirstPositional,
@@ -1,4 +1,4 @@
1
- import { getCliInspectVerbMetaByPath } from '@peach/skills/cli'
1
+ import { getCliInspectVerbMetaByPath } from './catalog'
2
2
  import type { ParsedArgs } from './parse-args'
3
3
 
4
4
  const HIDDEN_RUNTIME_ALIAS_GROUPS = ['do', 'get'] as const
@@ -97,7 +97,7 @@ export const OUTBOUND_ENDPOINTS: Record<string, OutboundEndpointDeclaration> = {
97
97
  destination: 'configured product API origin',
98
98
  preConsent: false,
99
99
  payload:
100
- 'explicit auth, billing, preview, issue report, test, or generated-flow request; a stored login may refresh auth/subscription state',
100
+ "explicit auth, billing, preview, issue report, test, generated-flow or stream request; a stream registration names the checkout's GitHub owner/repo; a stored login may refresh auth/subscription state",
101
101
  },
102
102
  cli_delivery: {
103
103
  category: 'explicit-user-action',
@@ -180,7 +180,7 @@ export const OUTBOUND_ENDPOINTS: Record<string, OutboundEndpointDeclaration> = {
180
180
  'the deployed Peach Cloud box service by default, overridden by --endpoint or PEACH_BOX_ENDPOINT',
181
181
  preConsent: false,
182
182
  payload:
183
- 'every file git reports for the current checkout, then shell commands and file reads and writes for as long as the box shell is open',
183
+ "the checkout's GitHub owner/repo and every file git reports for it, then shell commands and file reads and writes for as long as the box shell is open",
184
184
  },
185
185
  swift_distribution_delivery: {
186
186
  category: 'runtime-delivery',
@@ -219,7 +219,7 @@ export const OUTBOUND_ENDPOINTS: Record<string, OutboundEndpointDeclaration> = {
219
219
  'https://peachsim.com by default, or the test or disposable origin named by PEACH_CLOUD_ORIGIN',
220
220
  preConsent: false,
221
221
  payload:
222
- 'the Metro JavaScript bundle selected by peach ios --remote, then structured simulator commands and lifecycle requests',
222
+ "the Metro JavaScript bundle selected by peach ios --remote and the checkout's GitHub owner/repo, then structured simulator commands and lifecycle requests",
223
223
  },
224
224
  tunnel_tool_download: {
225
225
  category: 'explicit-user-action',
package/cli/parse-args.ts CHANGED
@@ -78,7 +78,7 @@ export const HYPHENATED_GROUPING_VERBS = new Set(['do', 'get', 'wait', 'shell',
78
78
 
79
79
  // known commands — if first positional arg matches, it's a command.
80
80
  // every entry here must have a `cliCommandMetas` entry in
81
- // `packages/peach-skills/src/cli/meta.ts`, so help, website docs,
81
+ // `packages/peachsim/cli/catalog/meta.ts`, so help, website docs,
82
82
  // and agent skills can never drift from what the parser accepts.
83
83
  export const COMMANDS = new Set(RNX_NODE_COMMAND_NAMES)
84
84
 
@@ -28,9 +28,10 @@ export type RunProvenance = {
28
28
  source: 'cli' | 'ci'
29
29
  }
30
30
 
31
- function gitOutput(command: string): string | null {
31
+ function gitOutput(command: string, cwd?: string): string | null {
32
32
  try {
33
33
  const out = execSync(command, {
34
+ cwd,
34
35
  stdio: ['ignore', 'pipe', 'ignore'],
35
36
  timeout: 3000,
36
37
  encoding: 'utf8',
@@ -47,17 +48,24 @@ function parsePositiveInt(value: string | undefined): number | null {
47
48
  return Number(trimmed)
48
49
  }
49
50
 
50
- // owner/repo from the checkout's github remote, for local runs with no
51
- // CONTRAST_REPO/GITHUB_REPOSITORY env. runs are repo-scoped on the dashboard
52
- // (/org/<owner>/<repo>/runs); standalone runs use their selected account.
53
- // handles ssh (git@github.com:o/r.git) and https
54
- // (https://github.com/o/r(.git)) remote shapes.
55
- function ownerRepoFromGitRemote(): { owner: string; repo: string } | null {
56
- const url = gitOutput('git remote get-url origin')
57
- if (!url) return null
58
- const match = url.match(/github\.com[/:]([^/\s]+)\/([^/\s]+?)(?:\.git)?\/?$/i)
59
- if (!match) return null
60
- return { owner: match[1], repo: match[2] }
51
+ // the checkout's github owner/repo: the CONTRAST_REPO or GITHUB_REPOSITORY env
52
+ // when set, else the origin remote of the git checkout at `cwd`, in its ssh
53
+ // (git@github.com:o/r.git) or https (https://github.com/o/r(.git)) shape. runs
54
+ // and cloud simulators are filed under it on the dashboard; without one they
55
+ // belong only to their selected account.
56
+ export function resolveCheckoutRepo(cwd?: string): string | null {
57
+ const [envOwner, envRepo] = (
58
+ process.env.CONTRAST_REPO ||
59
+ process.env.GITHUB_REPOSITORY ||
60
+ ''
61
+ )
62
+ .trim()
63
+ .split('/', 2)
64
+ if (envOwner && envRepo) return `${envOwner}/${envRepo}`
65
+ const match = gitOutput('git remote get-url origin', cwd)?.match(
66
+ /github\.com[/:]([^/\s]+)\/([^/\s]+?)(?:\.git)?\/?$/i,
67
+ )
68
+ return match ? `${match[1]}/${match[2]}` : null
61
69
  }
62
70
 
63
71
  // git provenance for the current run. in GitHub Actions the CONTRAST_*/GITHUB_*
@@ -68,22 +76,15 @@ export function resolveRunProvenance(): RunProvenance {
68
76
  const contrastBranch = process.env.CONTRAST_BRANCH?.trim() || null
69
77
  const contrastSha = process.env.CONTRAST_SHA?.trim() || null
70
78
  const pullRequestTitle = process.env.CONTRAST_PR_TITLE?.trim() || null
71
- const repoSlug = (
72
- process.env.CONTRAST_REPO ||
73
- process.env.GITHUB_REPOSITORY ||
74
- ''
75
- ).trim()
76
- const [envOwner, envRepo] = repoSlug.includes('/')
77
- ? repoSlug.split('/', 2)
78
- : [null, null]
79
+ const [owner = null, repo = null] = resolveCheckoutRepo()?.split('/') ?? []
79
80
 
80
81
  if (isActions) {
81
82
  // pull_request events: GITHUB_HEAD_REF is the PR head branch and
82
83
  // GITHUB_REF looks like refs/pull/<n>/merge. push events: GITHUB_REF_NAME.
83
84
  const prFromRef = process.env.GITHUB_REF?.match(/^refs\/pull\/(\d+)\//)?.[1]
84
85
  return {
85
- owner: envOwner,
86
- repo: envRepo,
86
+ owner,
87
+ repo,
87
88
  branch:
88
89
  contrastBranch ||
89
90
  process.env.GITHUB_HEAD_REF?.trim() ||
@@ -100,12 +101,9 @@ export function resolveRunProvenance(): RunProvenance {
100
101
  }
101
102
 
102
103
  const branch = contrastBranch ?? gitOutput('git rev-parse --abbrev-ref HEAD')
103
- // env slug wins when present; otherwise infer from the github remote so a
104
- // a plain local `peach test --preview` still lands on its repo's dashboard.
105
- const remote = envOwner ? null : ownerRepoFromGitRemote()
106
104
  return {
107
- owner: envOwner ?? remote?.owner ?? null,
108
- repo: envRepo ?? remote?.repo ?? null,
105
+ owner,
106
+ repo,
109
107
  branch: branch === 'HEAD' ? null : branch,
110
108
  commitSha: contrastSha ?? gitOutput('git rev-parse HEAD'),
111
109
  githubUsername: null,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2400 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2402 | (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.2400 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2402 | (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.2400 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2402 | (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.2400 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2402 | (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;