peachsim 0.1.2031 → 0.1.2033

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 (107) hide show
  1. package/cli/commands/package.ts +1 -1
  2. package/dist-lib/agent-daemon-client.cjs +1 -1
  3. package/dist-lib/agent-events.cjs +1 -1
  4. package/dist-lib/attached-projects.cjs +1 -1
  5. package/dist-lib/auth/shared-session.cjs +1 -1
  6. package/dist-lib/backend-origin.cjs +1 -1
  7. package/dist-lib/beta.cjs +1 -1
  8. package/dist-lib/beta.mjs +1 -1
  9. package/dist-lib/bridge-constants.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.mjs +1 -1
  12. package/dist-lib/bridge-contract.cjs +1 -1
  13. package/dist-lib/bridge-contract.mjs +1 -1
  14. package/dist-lib/bundle-channel.cjs +7864 -7787
  15. package/dist-lib/capture-contract.cjs +1 -1
  16. package/dist-lib/capture-contract.mjs +1 -1
  17. package/dist-lib/cloud-contract.cjs +1 -1
  18. package/dist-lib/cloud-contract.mjs +1 -1
  19. package/dist-lib/cloud-test-args.cjs +1 -1
  20. package/dist-lib/cloud-test-args.mjs +1 -1
  21. package/dist-lib/cloud.cjs +1 -1
  22. package/dist-lib/cloud.mjs +1 -1
  23. package/dist-lib/config.cjs +1 -1
  24. package/dist-lib/config.mjs +1 -1
  25. package/dist-lib/detox/index.cjs +2 -2
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/expo-swift-bundle.cjs +3 -3
  28. package/dist-lib/expo-swift-metadata.cjs +1 -1
  29. package/dist-lib/expo-swift-metadata.mjs +1 -1
  30. package/dist-lib/home-paths.cjs +1 -1
  31. package/dist-lib/host/bridge-host.cjs +5 -5
  32. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  33. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  34. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  35. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  36. package/dist-lib/host/websocket-proxy.cjs +1 -1
  37. package/dist-lib/index.cjs +2 -2
  38. package/dist-lib/jump-to-source-babel.cjs +1 -1
  39. package/dist-lib/jump-to-source-native.cjs +1 -1
  40. package/dist-lib/kotlin-host.cjs +1 -1
  41. package/dist-lib/menu.cjs +1 -1
  42. package/dist-lib/menu.mjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  44. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  45. package/dist-lib/metro-production-bundle.cjs +1 -1
  46. package/dist-lib/metro-production-bundle.mjs +1 -1
  47. package/dist-lib/metro.cjs +2 -2
  48. package/dist-lib/native-app-identity-project.cjs +1 -1
  49. package/dist-lib/native-app-identity-project.mjs +1 -1
  50. package/dist-lib/native-app-identity.cjs +1 -1
  51. package/dist-lib/native-app-identity.mjs +1 -1
  52. package/dist-lib/native-firebase-metadata.cjs +1 -1
  53. package/dist-lib/native-firebase-metadata.mjs +1 -1
  54. package/dist-lib/pdfium-raster.cjs +1 -1
  55. package/dist-lib/pdfium-raster.mjs +1 -1
  56. package/dist-lib/plist.cjs +1 -1
  57. package/dist-lib/plist.mjs +1 -1
  58. package/dist-lib/profiles.cjs +1 -1
  59. package/dist-lib/public-brand.cjs +1 -1
  60. package/dist-lib/public-origins-lib-esm.json +24 -24
  61. package/dist-lib/public-origins-lib.json +62 -60
  62. package/dist-lib/react-native-host-modules.cjs +1 -1
  63. package/dist-lib/react-native-host-modules.mjs +1 -1
  64. package/dist-lib/reap-browser.cjs +1 -1
  65. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  66. package/dist-lib/sdk.cjs +1 -1
  67. package/dist-lib/sdk.mjs +1 -1
  68. package/dist-lib/skills.cjs +5 -5
  69. package/dist-lib/swift-compile.cjs +1 -1
  70. package/dist-lib/swift-compile.mjs +1 -1
  71. package/dist-lib/swift-package.cjs +1 -1
  72. package/dist-lib/swift-package.mjs +1 -1
  73. package/dist-lib/swift-submit.cjs +1 -1
  74. package/dist-lib/swift-submit.mjs +1 -1
  75. package/dist-lib/swift-toolchain.cjs +1 -1
  76. package/dist-lib/swift.cjs +1 -1
  77. package/dist-lib/vite-swift.cjs +2 -2
  78. package/dist-lib/vite.cjs +2 -2
  79. package/dist-lib/worklet-executable.cjs +1 -1
  80. package/dist-lib/worklet-executable.mjs +1 -1
  81. package/dist-types/packages/peach-engine/src/billing/plans.d.ts +0 -3
  82. package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +0 -1
  83. package/dist-types/packages/peach-engine/src/engine/host-composite.d.ts +0 -2
  84. package/dist-types/packages/peach-engine/src/engine/inspect-info.d.ts +0 -3
  85. package/dist-types/packages/peach-engine/src/engine/inspect-visibility.d.ts +0 -2
  86. package/dist-types/packages/peach-engine/src/engine/layout-sab.d.ts +0 -6
  87. package/dist-types/packages/peach-engine/src/engine/native-animation-driver.d.ts +0 -6
  88. package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +0 -3
  89. package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +0 -1
  90. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +2 -0
  91. package/dist-types/packages/peach-engine/src/engine/types.d.ts +0 -1
  92. package/dist-types/packages/peach-engine/src/ios/constants.d.ts +0 -6
  93. package/dist-types/packages/peach-engine/src/ios/home-app-catalog.d.ts +0 -1
  94. package/dist-types/packages/peach-engine/src/ios/photo-store.d.ts +0 -7
  95. package/dist-types/packages/peach-engine/src/metro-fingerprint.d.ts +0 -5
  96. package/dist-types/packages/peach-engine/src/preview/trace.d.ts +0 -31
  97. package/dist-types/packages/peach-engine/src/render-worker/live-frame-mirror.d.ts +0 -1
  98. package/dist-types/packages/peach-engine/src/render-worker/map-command-channel.d.ts +0 -1
  99. package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror-tenant.d.ts +0 -1
  100. package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +0 -1
  101. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +0 -6
  102. package/dist-types/packages/peach-engine/src/render-worker/worklet-sab.d.ts +0 -1
  103. package/dist-types/packages/peach-engine/src/shell-intent.d.ts +0 -6
  104. package/dist-types/packages/peach-engine/src/top-overlay-state.d.ts +0 -1
  105. package/package.json +1 -1
  106. package/runtime-companion.json +1 -1
  107. package/src/bundle-channel.mjs +26 -8
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2031 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2033 | (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;
@@ -203,7 +203,7 @@ function isValidRuntimeVersion(value) {
203
203
  }
204
204
 
205
205
  // runtime-companion.json
206
- var runtime_companion_default = { abi: 1, sha256: "3eee64d8b75e772acc468ae5a74e4d522417d9c4e24be8a5f222329c90acc104", file: "node/cli-3eee64d8b75e772acc468ae5a74e4d522417d9c4e24be8a5f222329c90acc104.cjs" };
206
+ var runtime_companion_default = { abi: 1, sha256: "b47adb394ab539ff00e2ed18f1f0df810baa01bd705819ca976eb65d6798b348", file: "node/cli-b47adb394ab539ff00e2ed18f1f0df810baa01bd705819ca976eb65d6798b348.cjs" };
207
207
 
208
208
  // src/answeredNativePackages.ts
209
209
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2031 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2033 | (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.2031 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2033 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -58,6 +58,3 @@ export declare const ENTERPRISE_CLOUD_POLICY: {
58
58
  export type EnterpriseCloudPolicy = typeof ENTERPRISE_CLOUD_POLICY;
59
59
  export declare function cloudPolicyFor(plan: Plan): CarbonCloudPolicy | CarbonPlusCloudPolicy | EnterpriseCloudPolicy | null;
60
60
  export declare function planEntitlementsFor(plan: Plan): BillingEntitlements;
61
- export declare const DEFAULT_SPENDING_CAP_USD_CENTS = 10000;
62
- export declare const SPENDING_CAP_ALERT_THRESHOLDS: readonly [0.5, 0.8, 1];
63
- export declare const TEAM_DEFAULT_MODEL = "claude-sonnet-4-6";
@@ -75,7 +75,6 @@ export { SF_PRO_FONT_URL };
75
75
  export declare const BASE_FONT_URLS: string[];
76
76
  export declare const ANDROID_BASE_FONT_URLS: string[];
77
77
  export declare const BOOT_FONT_URLS: string[];
78
- export declare const DEFERRED_FONT_URLS: string[];
79
78
  export declare function activePlatform(): RuntimePlatform;
80
79
  export declare function usesCoreTextGlyphs(style: SootSimStyle): boolean;
81
80
  export declare function getDefaultFontFamilyForPlatform(platform?: RuntimePlatform): "Roboto" | "SF Pro";
@@ -44,7 +44,6 @@ export declare const HOST_EVENT_ACTIONS: readonly ['promotion', 'release', 'reje
44
44
  export declare const HOST_TEXTURE_REASONS: readonly [undefined, 'not-requested', 'rebuild', 'chunks', 'work', 'bounds', 'dimensions', 'pixels', 'budget', 'promotion', 'blit'];
45
45
  export declare const HOST_RASTER_REASONS: readonly [undefined, undefined, 'rasterRejectRebuild', undefined, undefined, undefined, 'dimensions', 'pixels', 'budget', 'promotion', 'blit', 'rasterRejectLinear', 'rasterRejectAnimated', 'rasterRejectTransform', 'rasterRejectOpacity', 'cacheable-or-bounds', 'warming-or-failure'];
46
46
  export declare const HOST_PHASE_PREWARM = 17;
47
- export declare const HOST_PHASE_PAINT = 18;
48
47
  export declare const HOST_PROFILE_COUNTERS: readonly ['rasterRejectRebuild', 'rasterRejectLinear', 'rasterRejectAnimated', 'rasterRejectTransform', 'rasterRejectOpacity', 'rasterRejectAlsoBlocked', 'rasterRejectCacheable', 'rasterRejectBounds', 'rasterRejectPixels', 'rasterRejectBudget', 'rasterWarming', 'rasterPromotions', 'rasterBlits', 'boundaryPictureDamageSkips', 'textureLayerRejectRebuild', 'textureLayerRejectChunks', 'textureLayerRejectWork', 'textureLayerRejectBounds', 'textureLayerRejectPixels', 'textureLayerRejectBudget', 'textureLayerWarming', 'textureLayerDeferred', 'textureLayerPromotions', 'textureLayerPromotionFailures', 'textureLayerBlits', 'textureLayerFlattenPromotions', 'textureLayerFlattenBlits', 'textureLayerFlattenReleaseParamChange', 'textureLayerFlattenReleaseContentChange', 'rasterPromotionMs', 'rasterBlitMs', 'textureLayerPromotionMs', 'textureLayerBlitMs'];
49
48
  export declare const HOST_REALIZE_CHUNK_REPLAYS: 33;
50
49
  export declare const HOST_REALIZE_PROMOTIONS: number;
@@ -70,7 +69,6 @@ export declare function hostLedger(module: object): {
70
69
  textBackingCreates: number;
71
70
  textBackingReleases: number;
72
71
  };
73
- export declare const HOST_COMPOSITE_MATCHES = 1;
74
72
  export declare const HOST_COMPOSITE_LINEAR_CHANGED = 2;
75
73
  export declare const HOST_COMPOSITE_SCROLL_MATCHES = 4;
76
74
  export declare const HOST_SETTLE_PREVIOUS = 8;
@@ -9,12 +9,9 @@ export type InspectInfo = SootSimInspectInfo;
9
9
  export type InspectQueryInfo = Omit<PeachSemanticInspectInfo, 'ancestors'> & Pick<InspectInfo, 'layout' | 'visibleFrame' | 'style' | 'ancestors' | 'srcloc'>;
10
10
  export declare function collectInspectText(node: SootSimNode): string | undefined;
11
11
  export declare function visibleInspectText(node: SootSimNode): string | undefined;
12
- export declare function pickInspectTooltipColors(info: InspectInfo): Array<[string, string]>;
13
12
  export declare function pickInspectFontSummary(info: InspectInfo): string | undefined;
14
13
  export declare function truncateInspectText(text: string, maxLength: number): string;
15
14
  export declare function infoToInspectText(info: InspectInfo): string;
16
- export declare function isInspectColorKey(key: string): boolean;
17
- export declare function isInspectableNode(node: SootSimNode, query?: VisibleFrameQuery): boolean;
18
15
  export { INSPECT_APP_ROOT_TEST_ID, INSPECT_OVERLAY_TEST_ID, pickInspectTarget, shouldOutlineInspectNode, };
19
16
  export declare function collectInspectTree(root: SootSimNode): SootSimInspectTreeNode[];
20
17
  export declare function getUIKitAccessibilityFrame(node: SootSimNode, painted?: InspectInfo['absolute'], query?: VisibleFrameQuery): InspectInfo['absolute'] | undefined;
@@ -16,7 +16,6 @@ export declare function intersectInspectRects(a: InspectOcclusionRect, b: Inspec
16
16
  export declare function overlapRect(a: InspectOcclusionRect, b: InspectOcclusionRect): InspectOcclusionRect | null;
17
17
  export declare function subtractRect(source: InspectOcclusionRect, cover: InspectOcclusionRect): InspectOcclusionRect[];
18
18
  export declare function isRectFullyCovered(rect: InspectOcclusionRect, covers: readonly InspectOcclusionRect[], coverCount?: number): boolean;
19
- export declare function inspectInfoArea(info: InspectInfo): number;
20
19
  export declare function inspectInfoContainsPoint(info: Pick<InspectInfo, 'absolute' | 'layout' | 'visibleFrame'>, x: number, y: number): boolean;
21
20
  export declare function getInspectInfoVisibleRect(info: InspectQueryInfo): InspectOcclusionRect;
22
21
  export declare function canStyleFullyOccludeInspect(style: Record<string, unknown>): boolean;
@@ -29,4 +28,3 @@ export declare function isStructuralInspectWrapper(info: InspectQueryInfo): bool
29
28
  export declare function shouldKeepVisibleInspectInfo(info: InspectQueryInfo, rootArea: number): boolean;
30
29
  export declare function filterOccludedInspectEntries<T>(entries: readonly InspectOcclusionEntry<T>[]): T[];
31
30
  export declare function pickVisibleInspectInfoAtPoint(infos: readonly InspectInfo[], x: number, y: number, _rootArea: number): InspectInfo | null;
32
- export declare function occlusionRectsContainPoint(rects: readonly InspectOcclusionRect[], x: number, y: number): boolean;
@@ -37,10 +37,4 @@ export declare function layoutSlotTag(node: {
37
37
  __viewTag?: number;
38
38
  }): number;
39
39
  export declare function adoptNodeLayoutChainFromSAB(node: SlottedNode): boolean;
40
- export declare const __LAYOUT_SAB_INTERNALS: {
41
- LAYOUT_SAB_MAGIC: number;
42
- HEADER_LANES: number;
43
- ENTRY_LANES: number;
44
- DEFAULT_LAYOUT_CAPACITY: number;
45
- };
46
40
  export {};
@@ -95,12 +95,6 @@ export declare function createSpringStep(value: AnimatedValue, config: {
95
95
  }): (now: number) => boolean;
96
96
  export declare function hasActiveNativeAnimations(): boolean;
97
97
  export declare function getActiveAnimationCount(): number;
98
- export declare function getNativeAnimationDriverStats(): {
99
- activeAnimationCount: number;
100
- tickCount: number;
101
- stalledTickCount: number;
102
- hasRafScheduled: boolean;
103
- };
104
98
  export declare function snapshotActiveAnimationFingerprint(): number;
105
99
  export interface NativeDriverAnimationInfo {
106
100
  id: number;
@@ -41,13 +41,11 @@ export declare const L_PADDING = 7;
41
41
  export declare const L_MARGIN = 16;
42
42
  export declare const L_POSITION = 25;
43
43
  export declare const L_GAP = 34;
44
- export declare const LENGTH_COUNT = 37;
45
44
  export declare const V_FLEX = 37;
46
45
  export declare const V_FLEX_GROW = 38;
47
46
  export declare const V_FLEX_SHRINK = 39;
48
47
  export declare const V_ASPECT_RATIO = 40;
49
48
  export declare const V_BORDER = 41;
50
- export declare const VALUE_COUNT = 50;
51
49
  export declare const E_DIRECTION = 0;
52
50
  export declare const E_FLEX_DIRECTION = 1;
53
51
  export declare const E_JUSTIFY_CONTENT = 2;
@@ -60,7 +58,6 @@ export declare const E_OVERFLOW = 8;
60
58
  export declare const E_DISPLAY = 9;
61
59
  export declare const E_KIND = 10;
62
60
  export declare const E_TEXT_ROUNDING = 11;
63
- export declare const ENUM_COUNT = 12;
64
61
  export declare const UNIT_UNDEFINED = 0;
65
62
  export declare const UNIT_POINT = 1;
66
63
  export declare const UNIT_PERCENT = 2;
@@ -59,7 +59,6 @@ export declare function pendingPhaseDamage(damage: FrameDamage): {
59
59
  }[];
60
60
  };
61
61
  export declare function addDamage(damage: FrameDamage | null | undefined, rect: DamageRect | null | undefined): void;
62
- export declare function addPortalDamage(damage: FrameDamage | null | undefined, rect: DamageRect | null | undefined): void;
63
62
  export declare function addGlassAnimationDamage(damage: FrameDamage | null | undefined, rect: DamageRect | null | undefined): void;
64
63
  export declare function addGlassContentDamage(damage: FrameDamage | null | undefined, glassId: number, rect: DamageRect, portal: boolean): void;
65
64
  export declare function addBackdropSample(damage: FrameDamage | null | undefined, rect: DamageRect | null | undefined): void;
@@ -140,6 +140,7 @@ export interface SceneNativeBinding {
140
140
  peachExtentParameters?: (slot: number) => void;
141
141
  _peach_scene_set_buffers(integers: number, doubles: number, floats: number, layoutMatrices: number): void;
142
142
  _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;
143
+ _peach_paint_excluded_input(count: number): number;
143
144
  _peach_paint_level(parent: number, childX: number, childY: number, hosted: number): number;
144
145
  _peach_scene_bounds_out(): number;
145
146
  _peach_shared_set(slot: number, boundary: number, shared: number, exiting: number): void;
@@ -335,6 +336,7 @@ export declare class SceneTable {
335
336
  scrollIndicatorAnimating(slot: number, now: number): boolean;
336
337
  scrollIndicatorEvent(slot: number, kind: number, now: number): void;
337
338
  dropScrollIndicator(slot: number, release: boolean): void;
339
+ dropScrollOverlays(slot: number, release: boolean): void;
338
340
  reclassify(slot: number): void;
339
341
  flushClassification(root: number, classify: (slot: number) => void, scoped: (slot: number) => boolean): void;
340
342
  flushFreshClassification(root: number, classify: (slot: number) => void, scoped: (slot: number) => boolean): void;
@@ -747,7 +747,6 @@ export interface ZoomCardBackdrop {
747
747
  backgroundColor: SootSimStyle['backgroundColor'];
748
748
  }
749
749
  export type MeasureContext = RenderContext | LayoutContext;
750
- export declare function isVirtualSurface(surface: Surface | VirtualSurface): surface is VirtualSurface;
751
750
  export interface TransformRect {
752
751
  x: number;
753
752
  y: number;
@@ -4,13 +4,7 @@ export { type A11yMode } from '../../../../../src/settingsContract.ts';
4
4
  export declare function getScreenWidth(): number;
5
5
  export declare function getScreenHeight(): number;
6
6
  export declare function getTopChromeHeight(): number;
7
- export declare function getHomeIndicatorHeight(): number;
8
7
  export declare function getScreenBorderRadius(): CornerRadii;
9
- export declare function getDynamicIsland(): {
10
- width: number;
11
- height: number;
12
- top: number;
13
- } | null;
14
8
  export declare let SCREEN_WIDTH: number;
15
9
  export declare let SCREEN_HEIGHT: number;
16
10
  export declare let TOP_CHROME_HEIGHT: number;
@@ -36,7 +36,6 @@ export declare function homeCatalogAppDef(app: Pick<HomeCatalogApp, 'id' | 'name
36
36
  export declare function serializeHomeCatalog(apps?: HomeCatalogApp[] | SootSimApp[] | null): SerializedHomeCatalogApp[];
37
37
  export declare function publishHomeCatalog(apps?: SootSimApp[] | null): void;
38
38
  export declare function publishShellAppCatalog(apps?: SootSimApp[] | null): void;
39
- export declare function readHomeCatalog(): HomeCatalogApp[];
40
39
  export declare function readShellAppCatalog(): SootSimApp[];
41
40
  export declare function readShellAppCatalogRevision(): number;
42
41
  export declare function subscribeHomeCatalog(listener: () => void): () => void;
@@ -63,13 +63,6 @@ export declare function setPhotoAlbumMembership(id: string, assetId: string, inc
63
63
  export declare function deletePhotoAlbum(id: string, active?: () => boolean): Promise<boolean>;
64
64
  export declare function setPhotoFavorite(id: string, favorite: boolean, active?: () => boolean): Promise<void>;
65
65
  export declare function seedPhotos(count: number): number;
66
- export interface PhotoPage {
67
- entries: PhotoEntry[];
68
- hasNextPage: boolean;
69
- endCursor: string | null;
70
- totalCount: number;
71
- }
72
- export declare function getPhotoPage(first: number, after?: string): PhotoPage;
73
66
  export declare function subscribe(listener: Listener): () => void;
74
67
  export declare function photoEntryToSpec(entry: PhotoEntry): PhotoLibraryAssetSpec;
75
68
  export {};
@@ -22,11 +22,6 @@ export declare function metroFingerprintDiscriminators(input: {
22
22
  key: string;
23
23
  cost: number;
24
24
  }>;
25
- export declare function metroFingerprintDiscriminator(input: {
26
- exports: readonly string[];
27
- literals: readonly string[];
28
- dependencyArity: number;
29
- }): string;
30
25
  export declare function isHermesBytecodeHeader(header: Uint8Array): boolean;
31
26
  export declare function isHermesBytecodeText(source: string): boolean;
32
27
  export declare function fingerprintBlindMetroBundle(source: string): Promise<BlindMetroModuleFingerprint[]>;
@@ -108,37 +108,6 @@ export type TraceReactStats = {
108
108
  maxCommitMs: number;
109
109
  components: TraceReactComponentStat[];
110
110
  };
111
- export type TraceBreakdownLaneId = 'rendering' | 'react' | 'network' | 'animations';
112
- export type TraceBreakdownSegment = {
113
- lane: TraceBreakdownLaneId;
114
- startMs: number;
115
- endMs: number;
116
- durationMs: number;
117
- label: string;
118
- tone?: 'warn' | 'error';
119
- };
120
- export type TraceBreakdownLane = {
121
- id: TraceBreakdownLaneId;
122
- label: string;
123
- totalMs: number;
124
- count: number;
125
- segments: TraceBreakdownSegment[];
126
- };
127
- export type TraceStepBreakdown = {
128
- durationMs: number;
129
- knownMs: number;
130
- idleMs: number;
131
- lanes: TraceBreakdownLane[];
132
- frameTotals: {
133
- frames: number;
134
- jankFrames: number;
135
- totalMs: number;
136
- layoutMs: number;
137
- renderMs: number;
138
- copyMs: number;
139
- };
140
- };
141
111
  export declare function traceReactStats(events: readonly SootSimTimelineEvent[]): TraceReactStats | null;
142
- export declare function traceStepBreakdown(step: Pick<TraceStep, 'startMs' | 'endMs'>, events: readonly SootSimTimelineEvent[], frameSamples: readonly TraceFrameSample[], recordingStartedAtMs?: number | null): TraceStepBreakdown;
143
112
  export declare function buildTraceStepIndex(input: BuildTraceInput): TraceStepIndexEntry[];
144
113
  export declare function buildTraceSteps(input: BuildTraceInput): TraceStep[];
@@ -41,5 +41,4 @@ export declare function installLiveFrameMirrorPublisher(opts: {
41
41
  }): void;
42
42
  export declare function uninstallLiveFrameMirrorPublisher(): void;
43
43
  export declare function applyLiveFrameMirror(envelope: LiveFrameMirrorEnvelope): void;
44
- export declare function __resetLiveFrameMirrorState(): void;
45
44
  export {};
@@ -219,7 +219,6 @@ export declare function postMapCommand(cmd: MapCommand): boolean;
219
219
  export type MapEventListener = (event: MapEvent) => void;
220
220
  export declare function subscribeMapEvents(mapId: string, listener: MapEventListener): () => void;
221
221
  export declare function dispatchMapEvent(event: MapHostEvent): void;
222
- export declare function __resetMapCommandChannelState(): void;
223
222
  export declare function requestMapNative(mapId: string, operation: MapNativeOperation): Promise<unknown>;
224
223
  export declare function subscribeMapNativeEvents(mapId: string, listener: (event: MapNativeEvent) => void): () => void;
225
224
  export declare function releaseMapNativeRequests(mapId: string): void;
@@ -35,5 +35,4 @@ export declare function syncAttachedScrollWriterBaseline(node: SootSimNode, opts
35
35
  export declare function endShellScrollOffsetPolling(owner: ScrollMirrorOwner, opts?: {
36
36
  forceScrollEvent?: boolean;
37
37
  }): boolean;
38
- export declare function __resetScrollMirrorTenantPublisherInstalled(): void;
39
38
  export {};
@@ -195,7 +195,6 @@ export declare function getShellAndroidEdgeEffect(owner: ScrollMirrorOwner): And
195
195
  export declare function getShellIosFastScroll(owner: ScrollMirrorOwner): IosFastScroll;
196
196
  export declare function applyScrollMirrorRegistry(registry: ScrollMirrorRegistry): boolean;
197
197
  export declare function retireScrollMirrorEntries(retirements: readonly ScrollSlotRetirement[]): void;
198
- export declare function subscribeScrollMirror(fn: (reg: ScrollMirrorRegistry) => void): () => void;
199
198
  export declare function getScrollMirrorEntry(owner: ScrollMirrorOwner): ScrollMirrorEntry | null;
200
199
  export declare function getAllScrollMirrorEntries(): ScrollMirrorEntry[];
201
200
  export declare function forEachShellScrollEntry(cb: (entry: ScrollMirrorEntry) => void): void;
@@ -1040,10 +1040,4 @@ export declare class NativeFrameQueue {
1040
1040
  export declare function installHeadlessNativeFrames(): void;
1041
1041
  export declare function retireHeadlessNativeFrames(): void;
1042
1042
  export declare function gestureSeamPeerEpoch(): WorkletPeerEpoch;
1043
- export declare function isWorkletRuntimeReady(): boolean;
1044
- export declare const __WORKLET_RUNTIME_INTERNALS: {
1045
- SAB_HEADER_FLOATS: number;
1046
- SAB_MAGIC: number;
1047
- DEFAULT_CAPACITY: number;
1048
- };
1049
1043
  export declare const evaluatedLazyShellBootRoots: string[];
@@ -25,5 +25,4 @@ export declare function getOrCreateSynchronizableArenas(): SynchronizableArenas
25
25
  export declare function getOrCreateUiRpcMailboxes(): UiRpcMailboxes | null;
26
26
  export declare function getUiFrameClockSAB(): SharedArrayBuffer | null;
27
27
  export declare function getOrCreateLayoutSAB(): SharedArrayBuffer | null;
28
- export declare function __resetWorkletSAB(): void;
29
28
  export {};
@@ -59,10 +59,4 @@ export type ShellIntent = {
59
59
  export type ShellIntentType = ShellIntent['type'];
60
60
  export declare const SHELL_INTENT_EVENT_NAMES: readonly ["sootsim:goHome", "sootsim:appSwitcher", "sootsim:toggleLock", "sootsim:shake", "sootsim:openNotificationCenter", "sootsim:closeNotificationCenter", "sootsim:openControlCenter", "sootsim:closeControlCenter", "sootsim:setTopOverlay", "sootsim:inspectModeChange", "sootsim:ringHint", "sootsim:ringModeChange", "sootsim:hoverPosition", "sootsim:hoverLeave", "sootsim:inspectSelectPosition", "sootsim:inspectHoverNode", "sootsim:inspectSelectNode", "sootsim:prewarmApp", "sootsim:cancelPrewarmApp", "sootsim:colorSchemeChange"];
61
61
  export type ShellIntentEventName = (typeof SHELL_INTENT_EVENT_NAMES)[number];
62
- export declare function isShellIntentEventName(name: string): boolean;
63
62
  export declare function dispatchShellIntent(intent: ShellIntent): void;
64
- type ShellIntentDetailFor<T extends ShellIntentType> = Extract<ShellIntent, {
65
- type: T;
66
- }>;
67
- export declare function listenShellIntent<T extends ShellIntentType>(type: T, handler: (intent: ShellIntentDetailFor<T>) => void): () => void;
68
- export {};
@@ -2,4 +2,3 @@ export type TopOverlayKind = 'none' | 'notification-center' | 'control-center';
2
2
  export declare function isTopOverlayKind(value: unknown): value is TopOverlayKind;
3
3
  export declare function isNotificationCenterVisible(overlay: TopOverlayKind): boolean;
4
4
  export declare function isControlCenterVisible(overlay: TopOverlayKind): boolean;
5
- export declare function isTopOverlayVisible(overlay: TopOverlayKind): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.2031",
3
+ "version": "0.1.2033",
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":"3eee64d8b75e772acc468ae5a74e4d522417d9c4e24be8a5f222329c90acc104","file":"node/cli-3eee64d8b75e772acc468ae5a74e4d522417d9c4e24be8a5f222329c90acc104.cjs"}
1
+ {"abi":1,"sha256":"b47adb394ab539ff00e2ed18f1f0df810baa01bd705819ca976eb65d6798b348","file":"node/cli-b47adb394ab539ff00e2ed18f1f0df810baa01bd705819ca976eb65d6798b348.cjs"}
@@ -7,10 +7,14 @@ import { brotliCompressSync, constants as zlibConstants } from 'node:zlib'
7
7
  import { isLoopbackHost } from './backend-origin'
8
8
  import { resolveConnectionInput } from './dev-bundle-resolution'
9
9
  import { cacheDir } from './home-paths'
10
+ import { getCliRuntime } from './cli-runtime'
10
11
  import { readInstalledNativePackageVersionsAsync } from './installed-package-versions'
11
12
  import { buildNativeBundles, insertNativeBundleFooters } from './native-bundles'
12
13
  import { nodeHttpFetch } from './node-http-fetch'
13
- import { insertPackageVersionsFooter } from './packageVersionsContract'
14
+ import {
15
+ detachPackageVersionsFooter,
16
+ insertPackageVersionsFooter,
17
+ } from './packageVersionsContract'
14
18
  import { terminateProcessGroup } from './process-group'
15
19
 
16
20
  const digest = (bytes) => createHash('sha256').update(bytes).digest('hex')
@@ -36,7 +40,7 @@ const nativeAssetPath = {
36
40
  android: /^__peach\/kotlin\/[a-f0-9]+\/[A-Za-z0-9._-]+\.(mjs|wasm)$/,
37
41
  }
38
42
 
39
- export function prepareBundleChannel({
43
+ export async function prepareBundleChannel({
40
44
  prefix,
41
45
  publicOrigin,
42
46
  sourceSha,
@@ -71,7 +75,7 @@ export function prepareBundleChannel({
71
75
  if (!platforms.length) throw new Error('bundle channel has no platforms')
72
76
  if (new Set(platforms.map((p) => p.platform)).size !== platforms.length)
73
77
  throw new Error('bundle channel repeats a platform')
74
- const channels = platforms.map((snapshot) =>
78
+ const channels = await Promise.all(platforms.map((snapshot) =>
75
79
  prepareChannel({
76
80
  prefix,
77
81
  origin,
@@ -81,11 +85,11 @@ export function prepareBundleChannel({
81
85
  icon,
82
86
  ...snapshot,
83
87
  }),
84
- )
88
+ ))
85
89
  return { prefix, origin: origin.origin, channels }
86
90
  }
87
91
 
88
- function prepareChannel({
92
+ async function prepareChannel({
89
93
  prefix,
90
94
  origin,
91
95
  sourceSha,
@@ -95,6 +99,7 @@ function prepareChannel({
95
99
  platform,
96
100
  bundle,
97
101
  assets,
102
+ oneSDK = null,
98
103
  expoSwift = null,
99
104
  expoKotlin = null,
100
105
  nitro = null,
@@ -106,7 +111,9 @@ function prepareChannel({
106
111
  throw new Error(`${platform} bundle carries an iOS Nitro module`)
107
112
  if (platform !== 'ios' && turbo !== null)
108
113
  throw new Error(`${platform} bundle carries an iOS TurboModule`)
109
- const nativeBundles = [native, nitro, turbo].filter(Boolean)
114
+ if (platform !== 'ios' && oneSDK !== null)
115
+ throw new Error(`${platform} bundle carries an iOS One SDK`)
116
+ const nativeBundles = [oneSDK, native, nitro, turbo].filter(Boolean)
110
117
  const nativeAssets = new Map()
111
118
  if ((platform === 'ios' ? expoKotlin : expoSwift) !== null)
112
119
  throw new Error(`${platform} bundle carries another platform's native modules`)
@@ -149,6 +156,7 @@ function prepareChannel({
149
156
  identity.update(JSON.stringify([path, digest(bytes)]))
150
157
  }
151
158
  if (native) identity.update(JSON.stringify(native.metadata))
159
+ if (oneSDK) identity.update(JSON.stringify(oneSDK.metadata))
152
160
  if (nitro) identity.update(JSON.stringify(nitro.metadata))
153
161
  if (turbo) identity.update(JSON.stringify(turbo.metadata))
154
162
  const releaseKey = `${prefix}/peach/releases/${identity.digest('hex')}`
@@ -157,7 +165,14 @@ function prepareChannel({
157
165
  [...files.keys()].map((path) => path.slice(0, path.lastIndexOf('/'))),
158
166
  )
159
167
  let locations = 0
160
- let source = new TextDecoder('utf-8', { fatal: true }).decode(bundle).replace(
168
+ const { stripRolldownBundleInventoryFooter, attachRolldownBundleInventory } =
169
+ getCliRuntime().rolldown_bundle_inventory
170
+ const detached = detachPackageVersionsFooter(
171
+ stripRolldownBundleInventoryFooter(
172
+ new TextDecoder('utf-8', { fatal: true }).decode(bundle),
173
+ ),
174
+ )
175
+ let source = detached.source.replace(
161
176
  // minifiers emit the location as a JSON string or a plain template literal.
162
177
  /("?httpServerLocation"?\s*:\s*)(?:"((?:[^"\\]|\\.)*)"|`([^`\\$]*)`)/g,
163
178
  (match, property, quoted, template) => {
@@ -174,10 +189,13 @@ function prepareChannel({
174
189
  throw new Error('bundle has packaged files but no asset metadata')
175
190
  const attached = insertNativeBundleFooters(
176
191
  source,
177
- { expoSwift, expoKotlin, nitro, turbo },
192
+ { oneSDK, expoSwift, expoKotlin, nitro, turbo },
178
193
  (path) => new URL(path, assetBaseUrl).href,
179
194
  )
180
195
  source = attached.source
196
+ if (detached.versions)
197
+ source = insertPackageVersionsFooter(source, detached.versions)
198
+ source = await attachRolldownBundleInventory(source)
181
199
  const nativeMetadata = attached.metadata
182
200
  new Script(source, { filename: 'peach-release-bundle.js' })
183
201
  const bundleBytes = Buffer.from(source)