peachsim 0.1.2234 → 0.1.2235

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 (95) hide show
  1. package/cli/command-registry.ts +1 -0
  2. package/cli/commands/control.ts +12 -0
  3. package/cli/commands/stream.ts +150 -0
  4. package/cli/main.ts +6 -0
  5. package/cli/outbound-endpoints.ts +10 -0
  6. package/dist-lib/agent-daemon-client.cjs +1 -1
  7. package/dist-lib/agent-events.cjs +1 -1
  8. package/dist-lib/attached-projects.cjs +1 -1
  9. package/dist-lib/auth/shared-session.cjs +1 -1
  10. package/dist-lib/backend-origin.cjs +1 -1
  11. package/dist-lib/beta.cjs +1 -1
  12. package/dist-lib/beta.mjs +1 -1
  13. package/dist-lib/bridge-constants.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.cjs +1 -1
  15. package/dist-lib/bridge-contract-input.mjs +1 -1
  16. package/dist-lib/bridge-contract.cjs +1 -1
  17. package/dist-lib/bridge-contract.mjs +1 -1
  18. package/dist-lib/bundle-channel.cjs +15 -21
  19. package/dist-lib/capture-contract.cjs +1 -1
  20. package/dist-lib/capture-contract.mjs +1 -1
  21. package/dist-lib/cloud-contract.cjs +1 -1
  22. package/dist-lib/cloud-contract.mjs +1 -1
  23. package/dist-lib/cloud-test-args.cjs +1 -1
  24. package/dist-lib/cloud-test-args.mjs +1 -1
  25. package/dist-lib/cloud.cjs +1 -1
  26. package/dist-lib/cloud.mjs +1 -1
  27. package/dist-lib/config.cjs +1 -1
  28. package/dist-lib/config.mjs +1 -1
  29. package/dist-lib/detox/index.cjs +2 -2
  30. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  31. package/dist-lib/expo-swift-bundle.cjs +13 -19
  32. package/dist-lib/expo-swift-metadata.cjs +1 -1
  33. package/dist-lib/expo-swift-metadata.mjs +1 -1
  34. package/dist-lib/home-paths.cjs +1 -1
  35. package/dist-lib/host/bridge-host.cjs +15 -21
  36. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  37. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  38. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  39. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  40. package/dist-lib/host/websocket-proxy.cjs +1 -1
  41. package/dist-lib/index.cjs +2 -2
  42. package/dist-lib/jump-to-source-babel.cjs +1 -1
  43. package/dist-lib/jump-to-source-native.cjs +1 -1
  44. package/dist-lib/kotlin-host.cjs +1 -1
  45. package/dist-lib/menu.cjs +1 -1
  46. package/dist-lib/menu.mjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  48. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  49. package/dist-lib/metro-production-bundle.cjs +1 -1
  50. package/dist-lib/metro-production-bundle.mjs +1 -1
  51. package/dist-lib/metro.cjs +2 -2
  52. package/dist-lib/native-app-identity-project.cjs +1 -1
  53. package/dist-lib/native-app-identity-project.mjs +1 -1
  54. package/dist-lib/native-app-identity.cjs +1 -1
  55. package/dist-lib/native-app-identity.mjs +1 -1
  56. package/dist-lib/native-firebase-metadata.cjs +1 -1
  57. package/dist-lib/native-firebase-metadata.mjs +1 -1
  58. package/dist-lib/pdfium-raster.cjs +1 -1
  59. package/dist-lib/pdfium-raster.mjs +1 -1
  60. package/dist-lib/plist.cjs +1 -1
  61. package/dist-lib/plist.mjs +1 -1
  62. package/dist-lib/profiles.cjs +1 -1
  63. package/dist-lib/public-brand.cjs +1 -1
  64. package/dist-lib/public-origins-lib-esm.json +24 -24
  65. package/dist-lib/public-origins-lib.json +54 -53
  66. package/dist-lib/react-native-host-modules.cjs +1 -1
  67. package/dist-lib/react-native-host-modules.mjs +1 -1
  68. package/dist-lib/reap-browser.cjs +1 -1
  69. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  70. package/dist-lib/sdk.cjs +1 -1
  71. package/dist-lib/sdk.mjs +1 -1
  72. package/dist-lib/skills.cjs +367 -186
  73. package/dist-lib/swift-compile.cjs +1 -1
  74. package/dist-lib/swift-compile.mjs +1 -1
  75. package/dist-lib/swift-package.cjs +1 -1
  76. package/dist-lib/swift-package.mjs +1 -1
  77. package/dist-lib/swift-submit.cjs +1 -1
  78. package/dist-lib/swift-submit.mjs +1 -1
  79. package/dist-lib/swift-toolchain.cjs +1 -1
  80. package/dist-lib/swift.cjs +1 -1
  81. package/dist-lib/vite-swift.cjs +1 -1
  82. package/dist-lib/vite.cjs +2 -2
  83. package/dist-lib/worklet-executable.cjs +1 -1
  84. package/dist-lib/worklet-executable.mjs +1 -1
  85. package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +3 -1
  86. package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +4 -0
  87. package/dist-types/packages/peach-engine/src/settings/devices.d.ts +1 -0
  88. package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +8 -0
  89. package/dist-types/packages/peach-globals/src/globalsContract.d.ts +2 -1
  90. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  91. package/kotlin/sdk.tar.gz +0 -0
  92. package/package.json +1 -1
  93. package/runtime-companion.json +1 -1
  94. package/skills/contrast/SKILL.md +1 -0
  95. package/src/expo-native-workspace.ts +16 -21
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2234 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2235 | (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.2234 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2235 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2234 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2235 | (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.2234 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2235 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2234 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2235 | (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.2234 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2235 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2234 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2235 | (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.2234 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2235 | (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.2234 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2235 | (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;
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2234 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2235 | (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;
@@ -1072,7 +1072,7 @@ var init_src = __esm({
1072
1072
  var runtime_companion_default;
1073
1073
  var init_runtime_companion = __esm({
1074
1074
  "runtime-companion.json"() {
1075
- runtime_companion_default = { abi: 1, sha256: "00799b02f54a61aa35db60817d564847a255eef875cbc7225013f1f27991ccde", file: "node/cli-00799b02f54a61aa35db60817d564847a255eef875cbc7225013f1f27991ccde.cjs" };
1075
+ runtime_companion_default = { abi: 1, sha256: "de957e6cfaf58e8388e37c64326c72cd8376936fbe14bbba0fd2c0129ada4335", file: "node/cli-de957e6cfaf58e8388e37c64326c72cd8376936fbe14bbba0fd2c0129ada4335.cjs" };
1076
1076
  }
1077
1077
  });
1078
1078
 
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2234 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2235 | (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.2234 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2235 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -7,7 +7,9 @@ export type TextMeasureRecipe = [
7
7
  leading: number,
8
8
  adjustment: number,
9
9
  trim: number,
10
- widthPolicy: number
10
+ widthPolicy: number,
11
+ heightPolicy: number,
12
+ padding: number
11
13
  ];
12
14
  export interface NativeLayoutExports {
13
15
  _peach_layout_dirty_mark(slot: number, mask: number): void;
@@ -8,6 +8,10 @@ export declare const LEGACY_HOME_BUTTON_RING = 1.5;
8
8
  export declare const FRAME_COLOR = "#000000";
9
9
  export declare const FRAME_SHADOW = "0 4px 20px rgba(0,0,0,0.3), 0 16px 50px rgba(0,0,0,0.15)";
10
10
  export declare const FRAME_SHADOW_BOTTOM_REACH = 66;
11
+ export declare const STAGE_FRAME_SHADOW: {
12
+ dark: string;
13
+ light: string;
14
+ };
11
15
  export declare const PREVIEW_PHONE_GUTTER = 20;
12
16
  export declare const ELECTRON_FRAME_SHADOW = "0 6px 13px rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.24)";
13
17
  export declare const FRAMELESS_SCREEN_SHADOW = "0 8px 16px rgba(0,0,0,0.1), 0 24px 56px rgba(0,0,0,0.22)";
@@ -72,6 +72,7 @@ export declare function resolveDevicePostureBox(model: DeviceModel, posture: Dev
72
72
  };
73
73
  export declare function resolveTopChromeHeight(device: Pick<DeviceSpec, 'statusBarHeight' | 'safeAreaInsets'>): number;
74
74
  export declare function isDeviceResolvableById(model: string): boolean;
75
+ export declare function deviceDisplayName(model: string): string;
75
76
  export declare function getRuntimePlatform(model: DeviceModel): RuntimePlatform;
76
77
  export declare function listDeviceModelsByPlatform(platform: RuntimePlatform): DeviceModel[];
77
78
  export declare function nearestPhoneModel(screen: {
@@ -24,6 +24,14 @@ export interface SootSimLiveCompositePublicationStatus {
24
24
  paintsStarted: number;
25
25
  paintsDrawn: number;
26
26
  }
27
+ export interface SootSimVideoStreamBridge {
28
+ start(target: {
29
+ url: string;
30
+ token: string;
31
+ }): void;
32
+ stop(): void;
33
+ state(): 'off' | 'connecting' | 'live';
34
+ }
27
35
  export interface SootSimLiveCompositeBridge {
28
36
  getCanvas(): HTMLCanvasElement | null;
29
37
  getFrameToken(): number;
@@ -5,7 +5,7 @@ import type { SootSimAudioRecorderBridge, SootSimMediaSessionBridge } from './au
5
5
  import type { SootSimCameraBridge } from './cameraBridgeContract.d.ts';
6
6
  import type { SootSimCaptureOptions } from './captureBridgeContract.d.ts';
7
7
  import type { SootSimClipboardBridge } from './clipboardBridgeContract.d.ts';
8
- import type { SootSimLiveCompositeBridge, SootSimAuxCompositorStats } from './compositorBridgeContract.d.ts';
8
+ import type { SootSimLiveCompositeBridge, SootSimVideoStreamBridge, SootSimAuxCompositorStats } from './compositorBridgeContract.d.ts';
9
9
  import type { SootSimDebugBridge } from './debugBridgeContract.d.ts';
10
10
  import type { SootSimElectronBridge } from './electronBridgeContract.d.ts';
11
11
  import type { SootSimHostStorageBridge } from './hostStorageBridgeContract.d.ts';
@@ -92,6 +92,7 @@ export interface SootSimBridges {
92
92
  mainShell: SootSimMainShellBridge | null;
93
93
  hotRemount: SootSimHotRemountBridge | null;
94
94
  liveComposite: SootSimLiveCompositeBridge | null;
95
+ videoStream: SootSimVideoStreamBridge | null;
95
96
  sceneStream: SootSimSceneStreamBridge | null;
96
97
  lockstepCapture: SootSimLockstepCaptureBridge | null;
97
98
  exitApp: (() => void) | null;
@@ -34,7 +34,7 @@ export type { SootSimWindowScaleBridge } from './windowBridgeContract.d.ts';
34
34
  export type { SootSimElectronBridge } from './electronBridgeContract.d.ts';
35
35
  export { isBoxViewingMessage } from './shellBridgeContract.d.ts';
36
36
  export type { PeachHomeApp, PeachHomeStorageValue, PeachHomeStorageBinding, PeachHomeScreenConfig, SootSimConsoleBuffer, SootSimShellCommands, SootSimMainShellBridge, SootSimDemoShareLeaseOptions, SootSimDemoShareBridge, BoxViewingMode, BoxViewingMessage, } from './shellBridgeContract.d.ts';
37
- export type { SootSimRenderActivityState, SootSimShellSceneFanoutStats, SootSimAuxCompositorStats, SootSimLiveCompositeBridge, SootSimLiveCompositeFreshStage, SootSimLiveCompositePublicationStatus, } from './compositorBridgeContract.d.ts';
37
+ export type { SootSimRenderActivityState, SootSimShellSceneFanoutStats, SootSimAuxCompositorStats, SootSimLiveCompositeBridge, SootSimVideoStreamBridge, SootSimLiveCompositeFreshStage, SootSimLiveCompositePublicationStatus, } from './compositorBridgeContract.d.ts';
38
38
  export type { PeachAnimatedExecution, PeachLockstepTenantFrame, SootSimLockstepFrameReceipt, LockstepInputReceipt, LockstepScheduledInput, SootSimLockstepCaptureController, SootSimLockstepCaptureBridge, } from './lockstepCaptureBridgeContract.d.ts';
39
39
  export type { LockstepFramePosition, PointerDeliveryTarget, PointerDeliveryPendingDrop, PointerDeliveryStats, SootSimShellHostBridge, } from './shellHostBridgeContract.d.ts';
40
40
  export type { SootSimLaunchArguments, SootSimExternalAppLifecycleOptions, SootSimStorageResetStrategy, SootSimExternalAppResetOptions, SootSimExternalAppResetResult, SootSimExternalAppStorageClearOptions, SootSimWebStorageName, SootSimHotRemountBridge, } from './appLifecycleBridgeContract.d.ts';
package/kotlin/sdk.tar.gz CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.2234",
3
+ "version": "0.1.2235",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -1 +1 @@
1
- {"abi":1,"sha256":"00799b02f54a61aa35db60817d564847a255eef875cbc7225013f1f27991ccde","file":"node/cli-00799b02f54a61aa35db60817d564847a255eef875cbc7225013f1f27991ccde.cjs"}
1
+ {"abi":1,"sha256":"de957e6cfaf58e8388e37c64326c72cd8376936fbe14bbba0fd2c0129ada4335","file":"node/cli-de957e6cfaf58e8388e37c64326c72cd8376936fbe14bbba0fd2c0129ada4335.cjs"}
@@ -48,6 +48,7 @@ automation, inspecting the render tree, and managing sims.
48
48
  | `peach box` | start a local Box or create a cloud Box |
49
49
  | `peach ios` | start an iOS simulator |
50
50
  | `peach android` | start an Android simulator |
51
+ | `peach stream` | stream an open simulator to your team |
51
52
  | `peach remote` | run your app on a remote simulator |
52
53
  | `peach open` | run a React Native, Swift or Android app in the simulator |
53
54
  | `peach preview` | publish an Expo export or bundle as a standalone preview |
@@ -325,28 +325,21 @@ async function hashWorkspaceInputs(
325
325
  }
326
326
  }
327
327
  // cocoapods and xcode exist only on a Mac; elsewhere only the prebuild stage runs
328
+ const execFileAsync = promisify(execFile)
328
329
  const mac =
329
330
  process.platform === 'darwin'
330
- ? {
331
- podVersion: (() => {
332
- try {
333
- // runner-toolchain-platform: darwin
334
- return execFileSync('pod', ['--version'], {
335
- encoding: 'utf8',
336
- env: utf8Env,
337
- })
338
- } catch (cause) {
331
+ ? await Promise.all([
332
+ // runner-toolchain-platform: darwin
333
+ execFileAsync('pod', ['--version'], { env: utf8Env, signal }).catch(
334
+ (cause: unknown) => {
339
335
  throw new Error('CocoaPods is required to install source dependencies', {
340
336
  cause,
341
337
  })
342
- }
343
- })(),
338
+ },
339
+ ),
344
340
  // runner-toolchain-platform: darwin
345
- xcode: execFileSync('xcodebuild', ['-version'], {
346
- encoding: 'utf8',
347
- env: utf8Env,
348
- }),
349
- }
341
+ execFileAsync('xcodebuild', ['-version'], { env: utf8Env, signal }),
342
+ ]).then(([pod, xcode]) => ({ podVersion: pod.stdout, xcode: xcode.stdout }))
350
343
  : {}
351
344
  const pinnedNode =
352
345
  typeof manifest.engines?.node === 'string' &&
@@ -357,11 +350,13 @@ async function hashWorkspaceInputs(
357
350
  preparation: 7,
358
351
  appRelative,
359
352
  ...mac,
360
- node: execFileSync(
361
- pinnedNode ? 'mise' : 'node',
362
- pinnedNode ? ['exec', pinnedNode, '--', 'node', '--version'] : ['--version'],
363
- { cwd: root, encoding: 'utf8' },
364
- ).trim(),
353
+ node: (
354
+ await execFileAsync(
355
+ pinnedNode ? 'mise' : 'node',
356
+ pinnedNode ? ['exec', pinnedNode, '--', 'node', '--version'] : ['--version'],
357
+ { cwd: root, signal },
358
+ )
359
+ ).stdout.trim(),
365
360
  packageManager: workspacePackageManager(root, manifest.packageManager, excluded),
366
361
  podsEnvironment,
367
362
  })