peachsim 0.1.2243 → 0.1.2244

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 (100) hide show
  1. package/cli/binary-sidecar.ts +89 -0
  2. package/cli/bridge-flow-runner.ts +2 -2
  3. package/cli/cloud-client.ts +2 -0
  4. package/cli/commands/control.ts +16 -0
  5. package/cli/commands/device.ts +1 -1
  6. package/cli/commands/flow.ts +2 -2
  7. package/cli/commands/inspect/core.ts +0 -20
  8. package/cli/commands/inspect/settling.ts +8 -0
  9. package/cli/commands/inspect.ts +5 -5
  10. package/cli/commands/preview.ts +12 -5
  11. package/cli/commands/shell-boolean-mode.ts +1 -1
  12. package/cli/commands/slides.ts +1 -1
  13. package/dist-lib/agent-daemon-client.cjs +1 -1
  14. package/dist-lib/agent-events.cjs +1 -1
  15. package/dist-lib/attached-projects.cjs +1 -1
  16. package/dist-lib/auth/shared-session.cjs +1 -1
  17. package/dist-lib/backend-origin.cjs +1 -1
  18. package/dist-lib/beta.cjs +1 -1
  19. package/dist-lib/beta.mjs +1 -1
  20. package/dist-lib/bridge-constants.cjs +1 -1
  21. package/dist-lib/bridge-contract-input.cjs +1 -1
  22. package/dist-lib/bridge-contract-input.mjs +1 -1
  23. package/dist-lib/bridge-contract.cjs +1 -1
  24. package/dist-lib/bridge-contract.mjs +1 -1
  25. package/dist-lib/bundle-channel.cjs +7 -7
  26. package/dist-lib/capture-contract.cjs +1 -1
  27. package/dist-lib/capture-contract.mjs +1 -1
  28. package/dist-lib/cloud-contract.cjs +1 -1
  29. package/dist-lib/cloud-contract.mjs +1 -1
  30. package/dist-lib/cloud-test-args.cjs +1 -1
  31. package/dist-lib/cloud-test-args.mjs +1 -1
  32. package/dist-lib/cloud.cjs +1 -1
  33. package/dist-lib/cloud.mjs +1 -1
  34. package/dist-lib/config.cjs +1 -1
  35. package/dist-lib/config.mjs +1 -1
  36. package/dist-lib/detox/index.cjs +9 -3
  37. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  38. package/dist-lib/expo-swift-bundle.cjs +6 -6
  39. package/dist-lib/expo-swift-metadata.cjs +1 -1
  40. package/dist-lib/expo-swift-metadata.mjs +1 -1
  41. package/dist-lib/home-paths.cjs +1 -1
  42. package/dist-lib/host/bridge-host.cjs +27 -8
  43. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  44. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  45. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  46. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  47. package/dist-lib/host/websocket-proxy.cjs +1 -1
  48. package/dist-lib/index.cjs +9 -3
  49. package/dist-lib/jump-to-source-babel.cjs +1 -1
  50. package/dist-lib/jump-to-source-native.cjs +1 -1
  51. package/dist-lib/kotlin-host.cjs +1 -1
  52. package/dist-lib/menu.cjs +11 -2
  53. package/dist-lib/menu.mjs +11 -2
  54. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  55. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  56. package/dist-lib/metro-production-bundle.cjs +1 -1
  57. package/dist-lib/metro-production-bundle.mjs +1 -1
  58. package/dist-lib/metro.cjs +1 -1
  59. package/dist-lib/native-app-identity-project.cjs +1 -1
  60. package/dist-lib/native-app-identity-project.mjs +1 -1
  61. package/dist-lib/native-app-identity.cjs +1 -1
  62. package/dist-lib/native-app-identity.mjs +1 -1
  63. package/dist-lib/native-firebase-metadata.cjs +1 -1
  64. package/dist-lib/native-firebase-metadata.mjs +1 -1
  65. package/dist-lib/pdfium-raster.cjs +1 -1
  66. package/dist-lib/pdfium-raster.mjs +1 -1
  67. package/dist-lib/plist.cjs +1 -1
  68. package/dist-lib/plist.mjs +1 -1
  69. package/dist-lib/profiles.cjs +1 -1
  70. package/dist-lib/public-brand.cjs +1 -1
  71. package/dist-lib/public-origins-lib-esm.json +24 -24
  72. package/dist-lib/public-origins-lib.json +55 -53
  73. package/dist-lib/react-native-host-modules.cjs +1 -1
  74. package/dist-lib/react-native-host-modules.mjs +1 -1
  75. package/dist-lib/reap-browser.cjs +1 -1
  76. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  77. package/dist-lib/sdk.cjs +9 -22
  78. package/dist-lib/sdk.mjs +9 -20
  79. package/dist-lib/skills.cjs +872 -733
  80. package/dist-lib/swift-compile.cjs +1 -1
  81. package/dist-lib/swift-compile.mjs +1 -1
  82. package/dist-lib/swift-package.cjs +1 -1
  83. package/dist-lib/swift-package.mjs +1 -1
  84. package/dist-lib/swift-submit.cjs +1 -1
  85. package/dist-lib/swift-submit.mjs +1 -1
  86. package/dist-lib/swift-toolchain.cjs +1 -1
  87. package/dist-lib/swift.cjs +1 -1
  88. package/dist-lib/vite-swift.cjs +5 -5
  89. package/dist-lib/vite.cjs +1 -1
  90. package/dist-lib/worklet-executable.cjs +1 -1
  91. package/dist-lib/worklet-executable.mjs +1 -1
  92. package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
  93. package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +1 -1
  94. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +1 -0
  95. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -1
  96. package/kotlin/sdk.tar.gz +0 -0
  97. package/package.json +1 -1
  98. package/src/binarySidecarContract.ts +45 -0
  99. package/src/menu.ts +14 -0
  100. package/src/swift-host.ts +6 -7
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2244 | (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.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2244 | (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.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2244 | (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.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2244 | (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.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2244 | (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.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2244 | (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.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2244 | (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.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2244 | (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.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2244 | (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;
@@ -38310,6 +38310,9 @@ function packageSources(packagePath, hosted = false, linked = /* @__PURE__ */ ne
38310
38310
  return files2;
38311
38311
  }
38312
38312
  function packageSnapshot(project, entry, moduleRoot) {
38313
+ moduleRoot ??= xcodeProjects().get(project.packagePath)?.moduleRoot ?? linkedModuleRoots(project.packagePath).find(
38314
+ (root) => import_node_fs55.default.existsSync(import_node_path55.default.join(root, "toolchain.json"))
38315
+ );
38313
38316
  const layout2 = xcodeLayout(project.packagePath);
38314
38317
  const pin2 = moduleRoot ? swiftDistributionAt(moduleRoot) ?? JSON.parse(import_node_fs55.default.readFileSync(import_node_path55.default.join(moduleRoot, "toolchain.json"), "utf8")) : null;
38315
38318
  const linked = layout2 ? standinLibraries(
@@ -38787,10 +38790,7 @@ function scopedArtifact(project, entry, moduleRoot, signal) {
38787
38790
  queued.then(resolve2, reject).finally(() => signal.removeEventListener("abort", stop));
38788
38791
  });
38789
38792
  }
38790
- const snapshotRoot = moduleRoot ?? xcodeProjects().get(project.packagePath)?.moduleRoot ?? linkedModuleRoots(project.packagePath).find(
38791
- (root) => import_node_fs55.default.existsSync(import_node_path55.default.join(root, "toolchain.json"))
38792
- );
38793
- const snapshot = packageSnapshot(project, entry, snapshotRoot);
38793
+ const snapshot = packageSnapshot(project, entry, moduleRoot);
38794
38794
  const compiled = project.artifact?.compiled;
38795
38795
  if (project.artifact && compiled && compiled.module === moduleStamp(project.packagePath, moduleRoot, false)) {
38796
38796
  const input = snapshotCompileInput(snapshot);
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2244 | (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.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2244 | (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.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2244 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -76,6 +76,7 @@ export interface LiquidGlassConfig {
76
76
  interactive?: boolean;
77
77
  capturePadding?: number;
78
78
  interactionIntensity?: number;
79
+ coveredFlattening?: number;
79
80
  interactionGlow?: GlassInteractionGlow;
80
81
  chromaticAberration?: number;
81
82
  refractionInset?: number;
@@ -54,7 +54,7 @@ export interface NativeLayoutExports {
54
54
  _peach_layout_dirty(slot: number): number;
55
55
  _peach_layout_calculate(root: number, width: number, height: number, direction: number): void;
56
56
  _peach_layout_computed(slot: number): number;
57
- _peach_layout_readback(root: number): number;
57
+ _peach_layout_readback(root: number, keepOrigin: number): number;
58
58
  _peach_layout_readback_take(root: number): number;
59
59
  _peach_layout_readback_records(): number;
60
60
  _peach_layout_commit(paintGen: number, boundsGen: number, retainedArea: number): number;
@@ -257,6 +257,7 @@ export interface SceneNativeBinding {
257
257
  _peach_frame_config(): number;
258
258
  _peach_frame_surfaces(): number;
259
259
  _peach_frame_portals(surface: number, count: number, top: number): number;
260
+ _peach_frame_local_roots(surface: number, count: number): number;
260
261
  _peach_portal_end(slot: number): void;
261
262
  _peach_portal_hosted(host: number, count: number): number;
262
263
  _peach_portal_over_app(root: number, count: number, top: number): number;
@@ -149,7 +149,7 @@ export interface BottomTabBarProps {
149
149
  barBacked?: boolean;
150
150
  bottomAccessory?: BottomTabAccessoryRenderer;
151
151
  accessoryOnly?: boolean;
152
- bottomAccessorySizing?: 'fill';
152
+ bottomAccessorySizing?: 'fill' | 'swiftuiSlot';
153
153
  onBottomInsetChange?: (inset: number) => void;
154
154
  isMinimized?: boolean;
155
155
  minimizeState?: TabBarMinimizeState;
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.2243",
3
+ "version": "0.1.2244",
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",
@@ -0,0 +1,45 @@
1
+ import {
2
+ type PackageVersions,
3
+ readPackageVersions,
4
+ } from '@peach/globals/package-versions'
5
+
6
+ // a binary we build carries the plain javascript its hermes bytecode was
7
+ // compiled from, so `peach open` runs the same graph the device does. it sits
8
+ // in the app bundle on ios and under the apk's assets on android, beside the
9
+ // manifest naming the native package versions peach's stubs read.
10
+ export const PEACH_SIDECAR_DIR = 'peach'
11
+ export const PEACH_SIDECAR_BUNDLE = 'main.js.br'
12
+ export const PEACH_SIDECAR_MANIFEST = 'app.json'
13
+ // android resources are recompiled into the apk, so the sidecar keeps the
14
+ // assets-dest copy; an ios app bundle holds metro's assets as they were.
15
+ export const PEACH_SIDECAR_ASSETS = 'assets'
16
+
17
+ export type PeachSidecarManifest = {
18
+ format: 1
19
+ platform: 'ios' | 'android'
20
+ // sha256 of the decompressed bundle
21
+ bundleSha256: string
22
+ nativePackages: PackageVersions
23
+ }
24
+
25
+ export function readPeachSidecarManifest(value: unknown): PeachSidecarManifest {
26
+ if (
27
+ typeof value !== 'object' ||
28
+ value === null ||
29
+ !('format' in value) ||
30
+ value.format !== 1 ||
31
+ !('platform' in value) ||
32
+ (value.platform !== 'ios' && value.platform !== 'android') ||
33
+ !('bundleSha256' in value) ||
34
+ typeof value.bundleSha256 !== 'string' ||
35
+ !/^[a-f0-9]{64}$/.test(value.bundleSha256) ||
36
+ !('nativePackages' in value)
37
+ )
38
+ throw new Error('invalid peach sidecar manifest')
39
+ return {
40
+ format: 1,
41
+ platform: value.platform,
42
+ bundleSha256: value.bundleSha256,
43
+ nativePackages: readPackageVersions(value.nativePackages),
44
+ }
45
+ }
package/src/menu.ts CHANGED
@@ -88,6 +88,9 @@ export interface SootSimMenuState {
88
88
  canRotate: boolean
89
89
  // the way each rotate press turns the body, where the surface knows its stance
90
90
  rotateTurns?: Record<SootSimTurn, SootSimTurn>
91
+ // the hosted simulator this window watches, when the link that opened it
92
+ // named one. it has a page on the site, which File offers to open.
93
+ remoteSimulator: string | null
91
94
  }
92
95
 
93
96
  export interface SootSimMenuDeviceChoice {
@@ -214,6 +217,16 @@ function fileMenu(
214
217
  state: SootSimMenuState,
215
218
  deviceChoices: readonly SootSimMenuDeviceChoice[],
216
219
  ): SootSimMenuDef {
220
+ const remoteSimulator: SootSimMenuItemDef[] = state.remoteSimulator
221
+ ? [
222
+ { type: 'separator' },
223
+ {
224
+ label: 'Open in Browser',
225
+ action: 'open-remote-simulator',
226
+ hiddenIn: 'browser',
227
+ },
228
+ ]
229
+ : []
217
230
  return {
218
231
  label: 'File',
219
232
  notMinimal: true,
@@ -256,6 +269,7 @@ function fileMenu(
256
269
  label: 'Send to Box',
257
270
  action: 'send-to-box',
258
271
  },
272
+ ...remoteSimulator,
259
273
  ],
260
274
  }
261
275
  }
package/src/swift-host.ts CHANGED
@@ -2636,6 +2636,11 @@ function packageSnapshot(
2636
2636
  entry: string,
2637
2637
  moduleRoot?: string,
2638
2638
  ): SwiftPackageSnapshot {
2639
+ moduleRoot ??=
2640
+ xcodeProjects().get(project.packagePath)?.moduleRoot ??
2641
+ linkedModuleRoots(project.packagePath).find((root) =>
2642
+ fs.existsSync(path.join(root, 'toolchain.json')),
2643
+ )
2639
2644
  const layout = xcodeLayout(project.packagePath)
2640
2645
  const pin = moduleRoot
2641
2646
  ? (swiftDistributionAt(moduleRoot) ??
@@ -3304,13 +3309,7 @@ function scopedArtifact(
3304
3309
  .finally(() => signal.removeEventListener('abort', stop))
3305
3310
  })
3306
3311
  }
3307
- const snapshotRoot =
3308
- moduleRoot ??
3309
- xcodeProjects().get(project.packagePath)?.moduleRoot ??
3310
- linkedModuleRoots(project.packagePath).find((root) =>
3311
- fs.existsSync(path.join(root, 'toolchain.json')),
3312
- )
3313
- const snapshot = packageSnapshot(project, entry, snapshotRoot)
3312
+ const snapshot = packageSnapshot(project, entry, moduleRoot)
3314
3313
  // a save that changed only view builder literals keeps the running bytes
3315
3314
  const compiled = project.artifact?.compiled
3316
3315
  if (