peachsim 0.1.2260 → 0.1.2262

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 (91) hide show
  1. package/cli/app-catalog.ts +72 -15
  2. package/cli/commands/shell-url.ts +11 -3
  3. package/cli/commands/upload.ts +2 -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 +387 -296
  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 +1 -1
  20. package/dist-lib/cloud-contract.mjs +1 -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 +2 -2
  28. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  29. package/dist-lib/expo-swift-bundle.cjs +2 -2
  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 +6 -4
  34. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  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 +2 -2
  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 +2 -2
  50. package/dist-lib/native-app-identity-project.cjs +1 -1
  51. package/dist-lib/native-app-identity-project.mjs +1 -1
  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 +53 -53
  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 +159 -109
  71. package/dist-lib/swift-compile.cjs +1 -1
  72. package/dist-lib/swift-compile.mjs +1 -1
  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 +1 -1
  80. package/dist-lib/vite.cjs +2 -2
  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/engine/scene-table.d.ts +2 -1
  84. package/dist-types/packages/peach-engine/src/engine/types.d.ts +1 -0
  85. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +1 -0
  86. package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +1 -0
  87. package/kotlin/sdk.tar.gz +0 -0
  88. package/package.json +1 -1
  89. package/runtime-companion.json +1 -1
  90. package/src/bundle-channel.mjs +21 -3
  91. package/src/nitro-source.ts +8 -0
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2260 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2262 | (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.2260 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2262 | (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.2260 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2262 | (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.2260 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2262 | (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.2260 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2262 | (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.2260 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2262 | (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.2260 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2262 | (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.2260 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2262 | (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.2260 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2262 | (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.2260 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2262 | (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;
@@ -2742,7 +2742,7 @@ var init_src = __esm({
2742
2742
  var runtime_companion_default;
2743
2743
  var init_runtime_companion = __esm({
2744
2744
  "runtime-companion.json"() {
2745
- runtime_companion_default = { abi: 1, sha256: "57b07bccdba28c1c59c27ea3e84683c1b3ffed983ede473771ab16d1c5068e8c", file: "node/cli-57b07bccdba28c1c59c27ea3e84683c1b3ffed983ede473771ab16d1c5068e8c.cjs" };
2745
+ runtime_companion_default = { abi: 1, sha256: "9ea841897a63090ddbce1dbf9be3b55664d3630f612f68e9f3035948dc019b3b", file: "node/cli-9ea841897a63090ddbce1dbf9be3b55664d3630f612f68e9f3035948dc019b3b.cjs" };
2746
2746
  }
2747
2747
  });
2748
2748
 
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2260 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2262 | (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.2260 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2262 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -32,6 +32,7 @@ export declare const SCENE_FLAG_HOISTED = 2097152;
32
32
  export declare const SCENE_FLAG_HOIST_HOST = 4194304;
33
33
  export declare const SCENE_FLAG_STICKY_INVERTED = 8388608;
34
34
  export declare const SCENE_FLAG_PORTAL_HOST = 536870912;
35
+ export declare const SCENE_FLAG_SWIFTUI_OPACITY = -2147483648;
35
36
  export declare const STYLE_RECORD_STYLE_FLAGS = 0;
36
37
  export declare const STYLE_RECORD_PRESERVE = 1;
37
38
  export declare const STYLE_RECORD_OP_COUNT = 7;
@@ -150,7 +151,7 @@ export interface SceneNativeBinding {
150
151
  _peach_classic_layout_sample(slot: number, timestamp: number): number;
151
152
  peachExtentParameters?: (slot: number) => void;
152
153
  _peach_scene_set_buffers(integers: number, doubles: number, floats: number, layoutMatrices: number): void;
153
- _peach_paint_walk(canvas: number, slot: number, self: number, childX: number, childY: number, flags: number, txOffX: number, txOffY: number, hasClip: number, clipLeft: number, clipTop: number, clipRight: number, clipBottom: number, dpr: number, surfaceWidth: number, surfaceHeight: number, layoutVersion: number, paintFloor: number, paintEpoch: number, fontGeneration: number, android: number, hasDamage: number, damageLeft: number, damageTop: number, damageRight: number, damageBottom: number, damageId: number, frameMs: number): number;
154
+ _peach_paint_walk(canvas: number, slot: number, self: number, childX: number, childY: number, flags: number, txOffX: number, txOffY: number, hasClip: number, clipLeft: number, clipTop: number, clipRight: number, clipBottom: number, dpr: number, surfaceWidth: number, surfaceHeight: number, layoutVersion: number, paintFloor: number, paintEpoch: number, fontGeneration: number, android: number, hasDamage: number, damageLeft: number, damageTop: number, damageRight: number, damageBottom: number, damageId: number, frameMs: number, swiftUIOpacity: number): number;
154
155
  _peach_glass_capture_clips_input(count: number): number;
155
156
  _peach_paint_excluded_input(count: number): number;
156
157
  _peach_walk_cull_counts(): number;
@@ -700,6 +700,7 @@ export type MetalShaderEffectOutput = {
700
700
  };
701
701
  export interface RenderContext extends RenderContextBase {
702
702
  kind: 'paint';
703
+ swiftUIOpacity?: number;
703
704
  windowPresentation?: {
704
705
  width: number;
705
706
  height: number;
@@ -1971,6 +1971,7 @@ export type CompositorWorkerToHost = {
1971
1971
  } | {
1972
1972
  type: 'stepFrameDone';
1973
1973
  requestId: number;
1974
+ doneAtEpochMs: number;
1974
1975
  frameToken: number;
1975
1976
  phases: CompositorStepPhases;
1976
1977
  } | {
@@ -31,6 +31,7 @@ export interface CompositorStepPhases {
31
31
  admissionWaitMs: number;
32
32
  imageWaitMs: number;
33
33
  settleWaitMs: number;
34
+ replyMs: number;
34
35
  pageShownMs: number;
35
36
  producedFrames: number;
36
37
  transitionPaint: boolean;
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.2260",
3
+ "version": "0.1.2262",
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":"57b07bccdba28c1c59c27ea3e84683c1b3ffed983ede473771ab16d1c5068e8c","file":"node/cli-57b07bccdba28c1c59c27ea3e84683c1b3ffed983ede473771ab16d1c5068e8c.cjs"}
1
+ {"abi":1,"sha256":"9ea841897a63090ddbce1dbf9be3b55664d3630f612f68e9f3035948dc019b3b","file":"node/cli-9ea841897a63090ddbce1dbf9be3b55664d3630f612f68e9f3035948dc019b3b.cjs"}
@@ -16,7 +16,12 @@ import {
16
16
  insertPackageVersionsFooter,
17
17
  } from '@peach/globals/package-versions'
18
18
  import { terminateProcessGroup } from './process-group'
19
- import { discoverAppCatalog } from '../cli/app-catalog'
19
+ import {
20
+ discoverAppCatalog,
21
+ discoverOneNativeAppCatalog,
22
+ oneDeclaredAppCatalog,
23
+ readProjectOneNativeAppCatalog,
24
+ } from '../cli/app-catalog'
20
25
  import { captureStagedHostFiles } from './host/staged-host-files'
21
26
 
22
27
  const digest = (bytes) => createHash('sha256').update(bytes).digest('hex')
@@ -327,7 +332,7 @@ async function packagePlatformBundle(
327
332
  projectRoot,
328
333
  platform,
329
334
  bundle,
330
- { config, versions, readAssetFile, configuration },
335
+ { config, versions, readAssetFile, configuration, devOrigin = null, oneDeclared = null },
331
336
  ) {
332
337
  const { produceConfiguredBundle } = await import('./configured-bundle-producer')
333
338
  const assets = new Map()
@@ -353,7 +358,11 @@ async function packagePlatformBundle(
353
358
  }
354
359
  let appCatalog = null
355
360
  if (platform === 'ios') {
356
- const captured = await captureStagedHostFiles(() => discoverAppCatalog(projectRoot, 'https://packaged.invalid'))
361
+ const captured = await captureStagedHostFiles(async () =>
362
+ (await discoverAppCatalog(projectRoot, 'https://packaged.invalid')) ??
363
+ (devOrigin ? await discoverOneNativeAppCatalog(devOrigin, 'https://packaged.invalid') : null) ??
364
+ (oneDeclared ? oneDeclaredAppCatalog(oneDeclared, 'https://packaged.invalid') : null),
365
+ )
357
366
  if (captured.value) {
358
367
  appCatalog = {
359
368
  ...captured.value,
@@ -451,6 +460,7 @@ export async function snapshotDevServerBundles(
451
460
  await packagePlatformBundle(projectRoot, platform, bundle, {
452
461
  ...inputs,
453
462
  configuration: 'Debug',
463
+ devOrigin: origin,
454
464
  readAssetFile: async (asset, file) => {
455
465
  const response = await fetch(
456
466
  `${origin}${asset.httpServerLocation}/${file}?platform=${platform}&hash=${asset.hash}`,
@@ -479,6 +489,13 @@ export async function snapshotOneProductionBundle(
479
489
  const { tmpdir } = await import('node:os')
480
490
  const { promisify } = await import('node:util')
481
491
  const inputs = await readPackagingInputs(projectRoot)
492
+ const oneDeclared = platforms.includes('ios')
493
+ ? await readProjectOneNativeAppCatalog(
494
+ projectRoot,
495
+ { ...process.env, ...env, NODE_ENV: 'production' },
496
+ runtimeExecutable,
497
+ )
498
+ : null
482
499
  const snapshots = []
483
500
  for (const platform of platforms) {
484
501
  const out = await mkdtemp(join(tmpdir(), 'peach-production-bundle-'))
@@ -501,6 +518,7 @@ export async function snapshotOneProductionBundle(
501
518
  snapshots.push(
502
519
  await packagePlatformBundle(projectRoot, platform, await readFile(join(out, 'bundle.js')), {
503
520
  ...inputs,
521
+ oneDeclared,
504
522
  configuration: 'Release',
505
523
  readAssetFile: (asset, file) =>
506
524
  readFile(join(out, asset.httpServerLocation, file)),
@@ -594,6 +594,14 @@ export function collectNitroSources(
594
594
  !nativeSourceKeys.has(projectSourceKey([sourceRoot], source))
595
595
  )
596
596
  continue
597
+ // a legacy bridge module's Objective-C file only declares a Swift class
598
+ // to React's registry (RCT_EXTERN_MODULE); the React-Core headers it
599
+ // imports are not part of a Nitro provider's compile
600
+ if (
601
+ /\.mm?$/.test(entry.name) &&
602
+ /\bRCT_EXTERN_(?:REMAP_)?MODULE\s*\(/.test(fs.readFileSync(source, 'utf8'))
603
+ )
604
+ continue
597
605
  // the shared reader rejects escapes and symlinks in canonical ancestors.
598
606
  const key = `${targetPath(name)}/upstream/${path.relative(root, source).split(path.sep).join('/')}`
599
607
  let original = originals.get(source)