peachsim 0.1.2421 → 0.1.2422

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 (94) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +1 -1
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +1 -1
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +1 -1
  13. package/dist-lib/bundle-channel.cjs +4317 -3935
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +1 -1
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +1 -1
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +1 -1
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +1 -1
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +1 -1
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +3343 -2961
  27. package/dist-lib/expo-swift-metadata.cjs +1 -1
  28. package/dist-lib/expo-swift-metadata.mjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +4199 -3817
  31. package/dist-lib/host/fetch-proxy-handler.cjs +24 -3
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +24 -3
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +1 -1
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +24 -3
  47. package/dist-lib/native-app-identity-project.cjs +2 -2
  48. package/dist-lib/native-app-identity-project.mjs +231 -212
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/pdfium-raster.cjs +1 -1
  54. package/dist-lib/pdfium-raster.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/public-origins-lib-esm.json +30 -25
  60. package/dist-lib/public-origins-lib.json +77 -56
  61. package/dist-lib/react-native-host-modules.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.mjs +1 -1
  63. package/dist-lib/reap-browser.cjs +1 -1
  64. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  65. package/dist-lib/sdk.cjs +1 -1
  66. package/dist-lib/sdk.mjs +1 -1
  67. package/dist-lib/skills.cjs +4851 -4468
  68. package/dist-lib/swift-compile.cjs +1261 -888
  69. package/dist-lib/swift-compile.mjs +1231 -848
  70. package/dist-lib/swift-package.cjs +1 -1
  71. package/dist-lib/swift-package.mjs +1 -1
  72. package/dist-lib/swift-submit.cjs +1 -1
  73. package/dist-lib/swift-submit.mjs +1 -1
  74. package/dist-lib/swift-toolchain.cjs +1 -1
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +2712 -2347
  77. package/dist-lib/vite.cjs +24 -3
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +1 -1
  81. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +0 -10
  82. package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/layer-claims.d.ts +2 -1
  83. package/kotlin/sdk.tar.gz +0 -0
  84. package/package.json +1 -1
  85. package/src/expo-kotlin-bundle.ts +1 -1
  86. package/src/native-static-libraries.ts +51 -4
  87. package/src/swift-compile.ts +184 -107
  88. package/src/swift-compiler-digest.ts +2 -0
  89. package/src/swift-guest-compile.ts +2 -0
  90. package/src/swift-guest-source-inputs.ts +2 -2
  91. package/src/swift-header-compiler.ts +185 -0
  92. package/src/swift-header-dependencies.ts +174 -0
  93. package/src/swift-objc-compile.ts +18 -24
  94. package/dist-types/packages/peach-engine/src/render-worker/accessibilityHostContract.d.ts +0 -65
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2421 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2422 | (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;
@@ -4382,7 +4382,7 @@ var STANDIN_SOURCE_DIGEST;
4382
4382
  var init_swift_standin_digest = __esm({
4383
4383
  "src/swift-standin-digest.ts"() {
4384
4384
  "use strict";
4385
- STANDIN_SOURCE_DIGEST = true ? "04ba039a95b639d89097dcef7220bd64a4c48578e05e150dafb66cf9195294a2" : standinSourceDigest();
4385
+ STANDIN_SOURCE_DIGEST = true ? "1122424b1e57ea84e0c3c2fbd17ce18dee149a87374de8912d176aec8451bc86" : standinSourceDigest();
4386
4386
  }
4387
4387
  });
4388
4388
 
@@ -5537,6 +5537,25 @@ var init_swift_guest_compile = __esm({
5537
5537
  }
5538
5538
  });
5539
5539
 
5540
+ // src/swift-header-compiler.ts
5541
+ var init_swift_header_compiler = __esm({
5542
+ "src/swift-header-compiler.ts"() {
5543
+ "use strict";
5544
+ init_forked_script_contract();
5545
+ init_is_record();
5546
+ init_write_build_file();
5547
+ }
5548
+ });
5549
+
5550
+ // src/swift-header-dependencies.ts
5551
+ var init_swift_header_dependencies = __esm({
5552
+ "src/swift-header-dependencies.ts"() {
5553
+ "use strict";
5554
+ init_swift_package();
5555
+ init_swiftContract();
5556
+ }
5557
+ });
5558
+
5540
5559
  // ../peach-kit/src/wasm-memory.ts
5541
5560
  var init_wasm_memory = __esm({
5542
5561
  "../peach-kit/src/wasm-memory.ts"() {
@@ -5645,6 +5664,8 @@ var init_swift_compile = __esm({
5645
5664
  init_swift_foundation();
5646
5665
  init_swift_guest_compile();
5647
5666
  init_swift_guest_source_inputs();
5667
+ init_swift_header_compiler();
5668
+ init_swift_header_dependencies();
5648
5669
  init_swift_icu();
5649
5670
  init_swift_link_roots();
5650
5671
  init_swift_objc_import();
@@ -5738,7 +5759,7 @@ var init_swift_compile = __esm({
5738
5759
  FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
5739
5760
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
5740
5761
  ).join("");
5741
- compilerSourceDigest = true ? "558e865561d0b74b1a3016abec937fd19f725375fe7e014dc1f140a17a31bc68" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
5762
+ compilerSourceDigest = true ? "63f37c4a87253305166cb52435207eb3f74394734f1a77e562d79ab7d5d7dfc1" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
5742
5763
  C_WORDS = new Set(
5743
5764
  "auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
5744
5765
  " "
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2421 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2422 | (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.2421 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2422 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __typeError = (msg) => {
4
4
  throw TypeError(msg);
@@ -61,7 +61,7 @@ export interface NativeLayoutExports extends TextLinesDrainSource, LayoutErrorDr
61
61
  _peach_layout_text_revision(slot: number): number;
62
62
  _peach_layout_text_recipe(slot: number, revision: number, ...recipe: TextMeasureRecipe): void;
63
63
  _peach_layout_measure_requests_count(): number;
64
- _peach_layout_measure_requests_data(): number;
64
+ _peach_layout_measure_requests_data(placedText: 0 | 1): number;
65
65
  _peach_layout_supply_measure(slot: number, width: number, widthMode: number, height: number, heightMode: number, measuredWidth: number, measuredHeight: number, cacheable: number): void;
66
66
  _peach_layout_clear_supplied_measures(): void;
67
67
  _peach_layout_abort_unmeasured(): void;
@@ -25,7 +25,6 @@ import type { readTextPaintReceipt } from '../engine/text-paint-receipt.d.ts';
25
25
  import type { InterfaceRotation } from '../settings/interface-rotation.d.ts';
26
26
  import type { ReactNativeConfigurationSnapshot } from '../settings/react-native-configuration.d.ts';
27
27
  import type { WireframeModeConfig } from '../wireframe-mode.d.ts';
28
- import type { AccessibilityHostCommand, AccessibilityHostResponse } from './accessibilityHostContract.d.ts';
29
28
  import type { GraphitePipelineCacheLoadResult } from './canvaskit-shared.d.ts';
30
29
  import type { GraphiteDeviceContextStats, GraphitePipelinePrecompileResult, GraphiteResidencyReport } from './canvaskit-webgpu.d.ts';
31
30
  import type { CompositorGpuRegion } from './compositor-gpu.d.ts';
@@ -1301,11 +1300,6 @@ export interface PromotedLayerOffer {
1301
1300
  graph: LinearLoopAnimationGraph;
1302
1301
  }
1303
1302
  export type CompositorHostToWorker = {
1304
- type: 'accessibilityHost';
1305
- requestId: number;
1306
- handle: number;
1307
- command: AccessibilityHostCommand;
1308
- } | {
1309
1303
  type: 'metalShaderCompile';
1310
1304
  requestId: number;
1311
1305
  request: MetalShaderCompileRequest;
@@ -1938,10 +1932,6 @@ export type ShellCompositorInboxMessage = Extract<ShellToCompositorMessage, Wire
1938
1932
  }>;
1939
1933
  export declare function isShellCompositorInboxMessage(message: ShellToCompositorMessage): message is ShellCompositorInboxMessage;
1940
1934
  export type CompositorWorkerToHost = {
1941
- type: 'accessibilityHostResult';
1942
- requestId: number;
1943
- response: AccessibilityHostResponse;
1944
- } | {
1945
1935
  type: 'metalShaderCompileResult';
1946
1936
  requestId: number;
1947
1937
  response: MetalShaderCompileResponse;
@@ -94,12 +94,13 @@ export declare class LayerClaim {
94
94
  }
95
95
  export declare class LayerClaims {
96
96
  #private;
97
+ readonly canPromotePresentation: (surfaceId: CompositorSurfaceId) => boolean;
97
98
  version: number;
98
99
  claimed: number;
99
100
  ended: number;
100
101
  readonly refusals: Map<string, number>;
101
102
  authors: LayerAuthors | null;
102
- constructor(changed: (surfaceId: CompositorSurfaceId, repaint: boolean) => void);
103
+ constructor(changed: (surfaceId: CompositorSurfaceId, repaint: boolean) => void, canPromotePresentation?: (surfaceId: CompositorSurfaceId) => boolean);
103
104
  claim(surfaceId: CompositorSurfaceId, node: SootSimNode, options: LayerClaimOptions): LayerClaim;
104
105
  refuse(reason: string, over?: readonly [SootSimNode, SootSimNode]): void;
105
106
  paintedOver(): Record<string, string>;
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.2421",
3
+ "version": "0.1.2422",
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",
@@ -19,7 +19,7 @@ export async function buildExpoKotlinBundle(
19
19
  const { kotlinArtifactFiles } = await import('./kotlin-host')
20
20
  const dir = `__peach/kotlin/${module.hash}`
21
21
  return {
22
- metadata: { ...metadata, module: { ...module, url: `${dir}/app.mjs` } },
22
+ metadata: { ...metadata, module: { ...module, url: `/${dir}/app.mjs` } },
23
23
  assets: kotlinArtifactFiles(module.hash).map((file) => ({
24
24
  path: `${dir}/${file.name}`,
25
25
  bytes: file.bytes,
@@ -86,7 +86,7 @@ export const NATIVE_STATIC_LIBRARY_RECIPES = [
86
86
  runtime: 'rust',
87
87
  nativeSha256: '03b721dd9e98ec2767f7952aa65cde57d0c33d7ec80c9aaf7ab5ba77e055a25c',
88
88
  upstream: 'e41ad6375fd80b64c4183d1a3f901d1f640a7953',
89
- recipe: '58ff1780697f345f416a3295e76aa150155bd050fff2b0a439d32db2df3764ee',
89
+ recipe: '9e5bf4de4c1b7722d7ede95e0f8189d8afc1d756a7a242ecc209f60a592605b3',
90
90
  archive: 'libanydoc_mobile.a',
91
91
  },
92
92
  {
@@ -95,7 +95,7 @@ export const NATIVE_STATIC_LIBRARY_RECIPES = [
95
95
  nativeSha256: '8c41abcd8dd4e562e65cf5b88467a3493089c359d0863360dc65a5b88149e837',
96
96
  upstream: 'a4296fa21cd40a56543602511bcf417014f4fee7cf5e1eaab58e0ac9610e3f63',
97
97
  // the unchanged source build, pinned Rust release and committed Cargo.lock.
98
- recipe: 'bb11c20e8fff731891345aacd97e7f520561b4be2d0a6f0db36275e86712bc39',
98
+ recipe: '8c8451e157500ebdea2a27b5077106749956184aad31c3ac07fa69d7712a0b88',
99
99
  archive: 'libratex_ffi.a',
100
100
  },
101
101
  {
@@ -103,7 +103,7 @@ export const NATIVE_STATIC_LIBRARY_RECIPES = [
103
103
  runtime: 'rust',
104
104
  nativeSha256: 'bdd2bf679fcc981d98d36733b3bd083225a7397bb82bbd462c89088c6e0580a8',
105
105
  upstream: '2da907eb5dfcb464c7eef3b4c657fbdee144e3c6633e81efb1e56dcf1c76e01b',
106
- recipe: '8559a7f6c289af27a9a93e92b8a9b93026884d19efdb9ffc0e7137556370f164',
106
+ recipe: '2061c6d200dadade2742f96e1a717a71444eed8762687f017fbd5a3afdff26e0',
107
107
  archive: 'libratex_ffi.a',
108
108
  },
109
109
  // react-native-skia 2.14.0 (apple-ios 154.0.0), then 3.8.0 (157): installed apps pin either.
@@ -235,8 +235,14 @@ export const WEBRTC_NATIVE_FRAMEWORK = {
235
235
  nativeSha256: '4113055e8d7c6de13ad550bd35be0f5cbb0d88b7a0fab2cd055abface8ed1552',
236
236
  repository: 'https://webrtc.googlesource.com/src.git',
237
237
  upstream: '6f37672d358475cd17544121a12494da454d85fb',
238
- recipe: '07da5d3d28deb6ceef587ecb413234c04c98519467b81f375bebe5fbcb5e8c3c',
238
+ recipe: '0bfd786636d700b64e2acdf48e04b692835b30ed0219a13fd725835d5e1e226c',
239
239
  archive: 'WebRTC',
240
+ iosSdkVersion: '26.0',
241
+ xcodeVersion: 2600,
242
+ xcodeBuild: '17A324',
243
+ deploymentTarget: 120000,
244
+ sanitizerPatch: '0002-m152-wasm64-ubsan.patch',
245
+ headerOnlyClasses: ['RTCEAGLVideoView'],
240
246
  gnArgs: {
241
247
  is_debug: false,
242
248
  rtc_libvpx_build_vp9: true,
@@ -254,6 +260,47 @@ export const WEBRTC_NATIVE_FRAMEWORK = {
254
260
  },
255
261
  }
256
262
 
263
+ // Signal RingRTC 2.73.0 uses the M154 8037a framework and its C++ FFI.
264
+ export const SIGNAL_WEBRTC_NATIVE_FRAMEWORK = {
265
+ name: 'WebRTC_signal_m154',
266
+ nativeSha256: 'd0bc2bef5ca796e9c4c67c047e4370cbd333c625d928a5beabade3fda19751b2',
267
+ repository: 'https://github.com/signalapp/webrtc.git',
268
+ upstream: 'e47f2d878f86bc8ec25ded29899396b1f3bbb979',
269
+ recipe: 'fe05ca5bf884eded57d76fb538bd6c20298247753c5a9de86591e151aab6f3a4',
270
+ archive: 'WebRTC',
271
+ iosSdkVersion: '26.1',
272
+ xcodeVersion: 2611,
273
+ xcodeBuild: '17B100',
274
+ deploymentTarget: 140000,
275
+ sanitizerPatch: '0002-m154-wasm64-ubsan.patch',
276
+ headerOnlyClasses: ['RTCEAGLVideoView', 'RTCVideoDecoderAV1', 'RTCVideoEncoderAV1'],
277
+ ringrtc: {
278
+ upstream: '84c5b2aff246392b365d73d6628529a149d6aed2',
279
+ opusRevision: '212d66c20944d0a0db91132f826a27dd0d5edd5d',
280
+ opusModel: 'a5177ec6fb7d15058e99e57029746100121f68e4890b1467d4094aa336b6013e',
281
+ },
282
+ gnArgs: {
283
+ is_debug: false,
284
+ is_component_build: false,
285
+ rtc_build_examples: false,
286
+ rtc_build_tools: false,
287
+ rtc_disable_metrics: true,
288
+ rtc_disable_trace_events: true,
289
+ rtc_enable_objc_symbol_export: true,
290
+ rtc_enable_protobuf: false,
291
+ rtc_enable_sctp: false,
292
+ rtc_include_tests: false,
293
+ rtc_libvpx_build_vp9: true,
294
+ rtc_opus_support_dred: true,
295
+ rtc_video_psnr: false,
296
+ use_lld: true,
297
+ target_os: 'ios',
298
+ target_environment: 'simulator',
299
+ ios_deployment_target: '14.0',
300
+ ios_enable_code_signing: false,
301
+ },
302
+ }
303
+
257
304
  export function nativeStaticLibraryEntry(
258
305
  recipe: (typeof NATIVE_STATIC_LIBRARY_RECIPES)[number],
259
306
  compiler: string,