peachsim 0.1.2421 → 0.1.2423

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 (117) hide show
  1. package/cli/command-agent.ts +14 -15
  2. package/cli/commands/box.ts +33 -28
  3. package/cli/commands/canvas.ts +54 -0
  4. package/cli/commands/platform.ts +28 -27
  5. package/cli/commands/preview.ts +2 -1
  6. package/cli/outbound-endpoints.ts +3 -0
  7. package/dist-lib/agent-daemon-client.cjs +1 -1
  8. package/dist-lib/agent-events.cjs +1 -1
  9. package/dist-lib/attached-projects.cjs +1 -1
  10. package/dist-lib/auth/shared-session.cjs +1 -1
  11. package/dist-lib/backend-origin.cjs +1 -1
  12. package/dist-lib/beta.cjs +1 -1
  13. package/dist-lib/beta.mjs +1 -1
  14. package/dist-lib/bridge-constants.cjs +1 -1
  15. package/dist-lib/bridge-contract-input.cjs +1 -1
  16. package/dist-lib/bridge-contract-input.mjs +1 -1
  17. package/dist-lib/bridge-contract.cjs +1 -1
  18. package/dist-lib/bridge-contract.mjs +1 -1
  19. package/dist-lib/bundle-channel.cjs +4318 -3937
  20. package/dist-lib/capture-contract.cjs +1 -1
  21. package/dist-lib/capture-contract.mjs +1 -1
  22. package/dist-lib/cloud-contract.cjs +22 -1
  23. package/dist-lib/cloud-contract.mjs +20 -1
  24. package/dist-lib/cloud-test-args.cjs +1 -1
  25. package/dist-lib/cloud-test-args.mjs +1 -1
  26. package/dist-lib/cloud.cjs +1 -1
  27. package/dist-lib/cloud.mjs +1 -1
  28. package/dist-lib/config.cjs +1 -1
  29. package/dist-lib/config.mjs +1 -1
  30. package/dist-lib/detox/index.cjs +27 -13
  31. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  32. package/dist-lib/expo-swift-bundle.cjs +3343 -2962
  33. package/dist-lib/expo-swift-metadata.cjs +1 -1
  34. package/dist-lib/expo-swift-metadata.mjs +1 -1
  35. package/dist-lib/home-paths.cjs +1 -1
  36. package/dist-lib/host/bridge-host.cjs +4200 -3819
  37. package/dist-lib/host/fetch-proxy-handler.cjs +25 -4
  38. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  39. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  40. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  41. package/dist-lib/host/websocket-proxy.cjs +1 -1
  42. package/dist-lib/index.cjs +88 -53
  43. package/dist-lib/jump-to-source-babel.cjs +1 -1
  44. package/dist-lib/jump-to-source-native.cjs +1 -1
  45. package/dist-lib/kotlin-host.cjs +1 -1
  46. package/dist-lib/menu.cjs +1 -1
  47. package/dist-lib/menu.mjs +1 -1
  48. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  49. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  50. package/dist-lib/metro-production-bundle.cjs +1 -1
  51. package/dist-lib/metro-production-bundle.mjs +1 -1
  52. package/dist-lib/metro.cjs +25 -4
  53. package/dist-lib/native-app-identity-project.cjs +2 -2
  54. package/dist-lib/native-app-identity-project.mjs +231 -212
  55. package/dist-lib/native-app-identity.cjs +1 -1
  56. package/dist-lib/native-app-identity.mjs +1 -1
  57. package/dist-lib/native-firebase-metadata.cjs +1 -1
  58. package/dist-lib/native-firebase-metadata.mjs +1 -1
  59. package/dist-lib/pdfium-raster.cjs +1 -1
  60. package/dist-lib/pdfium-raster.mjs +1 -1
  61. package/dist-lib/plist.cjs +1 -1
  62. package/dist-lib/plist.mjs +1 -1
  63. package/dist-lib/profiles.cjs +1 -1
  64. package/dist-lib/public-brand.cjs +1 -1
  65. package/dist-lib/public-origins-lib-esm.json +30 -25
  66. package/dist-lib/public-origins-lib.json +78 -56
  67. package/dist-lib/react-native-host-modules.cjs +1 -1
  68. package/dist-lib/react-native-host-modules.mjs +1 -1
  69. package/dist-lib/reap-browser.cjs +1 -1
  70. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  71. package/dist-lib/sdk.cjs +1 -1
  72. package/dist-lib/sdk.mjs +1 -1
  73. package/dist-lib/skills.cjs +4990 -4586
  74. package/dist-lib/swift-compile.cjs +1261 -889
  75. package/dist-lib/swift-compile.mjs +1231 -849
  76. package/dist-lib/swift-package.cjs +1 -1
  77. package/dist-lib/swift-package.mjs +1 -1
  78. package/dist-lib/swift-submit.cjs +1 -1
  79. package/dist-lib/swift-submit.mjs +1 -1
  80. package/dist-lib/swift-toolchain.cjs +1 -1
  81. package/dist-lib/swift.cjs +1 -1
  82. package/dist-lib/vite-swift.cjs +2712 -2348
  83. package/dist-lib/vite.cjs +25 -4
  84. package/dist-lib/worklet-executable.cjs +1 -1
  85. package/dist-lib/worklet-executable.mjs +1 -1
  86. package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +1 -1
  87. package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +83 -2
  88. package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
  89. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +0 -10
  90. package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/layer-claims.d.ts +2 -1
  91. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +9 -0
  92. package/dist-types/packages/peach-globals/src/canvasAgentContract.d.ts +8 -0
  93. package/dist-types/packages/peach-globals/src/index.d.ts +4 -2
  94. package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +12 -0
  95. package/dist-types/packages/peach-globals/src/sceneStreamBridgeContract.d.ts +5 -1
  96. package/kotlin/sdk.tar.gz +0 -0
  97. package/package.json +1 -1
  98. package/runtime-companion.json +1 -1
  99. package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes +2 -0
  100. package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStore.h +2 -0
  101. package/sdk/ios/wasm/include/errno.h +10 -0
  102. package/src/agent-daemon-client.ts +1 -1
  103. package/src/agent-prompt.ts +1 -8
  104. package/src/canvas-agent-note-delivery.ts +2 -5
  105. package/src/canvas-groups.ts +11 -3
  106. package/src/cloud-contract.ts +31 -1
  107. package/src/expo-kotlin-bundle.ts +1 -1
  108. package/src/native-static-libraries.ts +51 -4
  109. package/src/swift-compile.ts +184 -108
  110. package/src/swift-compiler-digest.ts +2 -0
  111. package/src/swift-guest-compile.ts +2 -0
  112. package/src/swift-guest-source-inputs.ts +2 -2
  113. package/src/swift-header-compiler.ts +185 -0
  114. package/src/swift-header-dependencies.ts +174 -0
  115. package/src/swift-objc-compile.ts +18 -24
  116. package/src/vite-plugin.ts +4 -1
  117. 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.2423 | (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;
@@ -3995,7 +3995,7 @@ var require_lib = __commonJS({
3995
3995
  var runtime_companion_default;
3996
3996
  var init_runtime_companion = __esm({
3997
3997
  "runtime-companion.json"() {
3998
- runtime_companion_default = { abi: 1, sha256: "9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a", file: "node/cli-9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a.cjs" };
3998
+ runtime_companion_default = { abi: 1, sha256: "50f7ba9b5269b150a6bd2189f202e3cde6ecd829f705d24a70a88f13e6a92474", file: "node/cli-50f7ba9b5269b150a6bd2189f202e3cde6ecd829f705d24a70a88f13e6a92474.cjs" };
3999
3999
  }
4000
4000
  });
4001
4001
 
@@ -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 ? "2913d6a693b8a1c42193c1962c3468c2f8bc68c78a2f2f52961ca5efe03d1e67" : 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 ? "886349932526d72a5a1493acbcd1799ec941afd89998ad0eab64bbe9c48afb95" : 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.2423 | (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.2423 | (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;
@@ -1,4 +1,5 @@
1
- import type { SootSimCapturedTextLine } from '../../../../peach-globals/src/index.d.ts';
1
+ import type { CanvasAgentNote } from '../../../../peach-globals/src/index.d.ts';
2
+ import type { CanvasMapAgent, SootSimCapturedTextLine } from '../../../../peach-globals/src/index.d.ts';
2
3
  export type CanvasMapNode = {
3
4
  nodeId: number;
4
5
  parentNodeId: number | null;
@@ -93,7 +94,12 @@ export type CanvasMapCardContent = {
93
94
  kind: 'card';
94
95
  lines: string[];
95
96
  };
96
- export type CanvasMapScreenContent = CanvasMapFrozenTreeContent | CanvasMapScreenshotContent | CanvasMapAppContent | CanvasMapCardContent;
97
+ export type CanvasMapLiveContent = {
98
+ kind: 'live';
99
+ poster?: string;
100
+ };
101
+ export declare function canvasMapLiveChannel(screenId: string): string;
102
+ export type CanvasMapScreenContent = CanvasMapFrozenTreeContent | CanvasMapScreenshotContent | CanvasMapAppContent | CanvasMapCardContent | CanvasMapLiveContent;
97
103
  export type CanvasMapScreen = {
98
104
  id: string;
99
105
  title: string;
@@ -148,6 +154,9 @@ export type CanvasMapGroupMove = {
148
154
  dragging?: true;
149
155
  };
150
156
  type SectionHitArea = Pick<CanvasMapSection, 'id' | 'title' | 'x' | 'y' | 'width' | 'height' | 'dragFromBody'>;
157
+ export declare const CANVAS_NOTE_HOLD_MS = 350;
158
+ export declare function canvasMapTakesNotes(screen: CanvasMapScreen, agents: readonly CanvasMapAgent[]): boolean;
159
+ export declare function canvasMapInkTargetAt(data: Pick<CanvasMapData, 'screens' | 'hostStrokes'>, agents: readonly CanvasMapAgent[], x: number, y: number): CanvasMapScreen | undefined;
151
160
  export declare function canvasMapSectionAt(sections: readonly SectionHitArea[], x: number, y: number, zoom: number, labelSize: number): SectionHitArea | undefined;
152
161
  export type CanvasMapEdge = {
153
162
  from: string;
@@ -168,6 +177,7 @@ export type CanvasMapFontSpec = {
168
177
  url: string;
169
178
  };
170
179
  export type CanvasMapData = {
180
+ agents?: CanvasMapAgent[];
171
181
  rev?: number;
172
182
  screens: CanvasMapScreen[];
173
183
  sections?: CanvasMapSection[];
@@ -180,6 +190,7 @@ export type CanvasMapData = {
180
190
  labelSize?: number;
181
191
  artboardControls: 'play' | 'none';
182
192
  panPointers: 1 | 2;
193
+ hostStrokes?: boolean;
183
194
  moveItems?: boolean;
184
195
  tapToSelect?: boolean;
185
196
  liveScreenId?: string;
@@ -228,6 +239,15 @@ export type CanvasMapTap = {
228
239
  };
229
240
  export type CanvasMapKey = 'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown' | 'Enter' | 'Home';
230
241
  export type CanvasMapCommand = 'fit' | 'actual-size' | {
242
+ kind: 'agent';
243
+ agent: CanvasMapAgent;
244
+ } | {
245
+ kind: 'remove-agent';
246
+ agentId: string;
247
+ } | {
248
+ kind: 'follow-agent';
249
+ agentId: string | null;
250
+ } | {
231
251
  kind: 'camera';
232
252
  x: number;
233
253
  y: number;
@@ -249,6 +269,58 @@ export type CanvasMapCommand = 'fit' | 'actual-size' | {
249
269
  } | CanvasMapInspectCommand | {
250
270
  kind: 'enter';
251
271
  screenId: string | null;
272
+ } | {
273
+ kind: 'note-sent';
274
+ localId: string;
275
+ id: string;
276
+ } | {
277
+ kind: 'note-taken';
278
+ id: string;
279
+ } | {
280
+ kind: 'note-failed';
281
+ localId: string;
282
+ message: string;
283
+ } | {
284
+ kind: 'note-element';
285
+ requestId: number;
286
+ element: CanvasNoteElement | null;
287
+ };
288
+ export type CanvasNoteMark = {
289
+ kind: 'element';
290
+ frame: CanvasNoteRect;
291
+ name: string;
292
+ } | {
293
+ kind: 'stroke';
294
+ points: {
295
+ x: number;
296
+ y: number;
297
+ }[];
298
+ closed: boolean;
299
+ };
300
+ export type CanvasNoteRect = {
301
+ x: number;
302
+ y: number;
303
+ width: number;
304
+ height: number;
305
+ };
306
+ export type CanvasNoteElement = {
307
+ frame: CanvasNoteRect;
308
+ name: string;
309
+ summary: string;
310
+ };
311
+ export type CanvasMapNotePick = {
312
+ requestId: number;
313
+ screenId: string;
314
+ instanceId: string;
315
+ point: {
316
+ x: number;
317
+ y: number;
318
+ };
319
+ };
320
+ export type CanvasMapNote = {
321
+ localId: string;
322
+ screenId: string;
323
+ note: CanvasAgentNote;
252
324
  };
253
325
  export declare function canvasMapEdgePath(from: Pick<CanvasMapScreen, 'x' | 'y' | 'width' | 'height'>, to: Pick<CanvasMapScreen, 'x' | 'y' | 'height'>): string;
254
326
  export declare function getCanvasMapData(): CanvasMapData;
@@ -280,4 +352,13 @@ export type CanvasMapMove = {
280
352
  export declare function reportCanvasMapMove(move: CanvasMapMove): void;
281
353
  export declare function reportCanvasMapGroupMove(move: CanvasMapGroupMove): void;
282
354
  export declare function reportCanvasMapEntered(screenId: string | null): void;
355
+ export declare function reportCanvasMapNotePick(pick: CanvasMapNotePick): void;
356
+ export declare function reportCanvasMapNote(note: CanvasMapNote): void;
357
+ export type CanvasMapStroke = {
358
+ points: {
359
+ x: number;
360
+ y: number;
361
+ }[];
362
+ };
363
+ export declare function reportCanvasMapStroke(stroke: CanvasMapStroke): void;
283
364
  export {};
@@ -1,7 +1,7 @@
1
1
  export declare const DISPLAY_SERVER_VERSION = 26;
2
2
  export declare const DISPLAY_SERVER_MAJOR = 2;
3
- export declare const DISPLAY_SERVER_MINOR = 34;
4
- export declare const DISPLAY_SERVER_SUBPROTOCOL = "rnx.display-server.v2.wire26.minor34";
3
+ export declare const DISPLAY_SERVER_MINOR = 35;
4
+ export declare const DISPLAY_SERVER_SUBPROTOCOL = "rnx.display-server.v2.wire26.minor35";
5
5
  export declare const DISPLAY_SERVER_TOKEN_SUBPROTOCOL_PREFIX = "rnx.sim-token.";
6
6
  export declare const RNX_CLOUD_DISPLAY_GRANT_TTL_MS: number;
7
7
  export declare const RNX_CLOUD_DISPLAY_CLOSE: {
@@ -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>;
@@ -658,6 +658,15 @@ export type WorkerToHost = {
658
658
  } | {
659
659
  type: 'canvasMapTap';
660
660
  tap: import('../ios/apps/canvas-map-data.d.ts').CanvasMapTap;
661
+ } | {
662
+ type: 'canvasMapNotePick';
663
+ pick: import('../ios/apps/canvas-map-data.d.ts').CanvasMapNotePick;
664
+ } | {
665
+ type: 'canvasMapNote';
666
+ note: import('../ios/apps/canvas-map-data.d.ts').CanvasMapNote;
667
+ } | {
668
+ type: 'canvasMapStroke';
669
+ stroke: import('../ios/apps/canvas-map-data.d.ts').CanvasMapStroke;
661
670
  } | {
662
671
  type: 'surfaceRegistered';
663
672
  surfaceId: string;
@@ -0,0 +1,8 @@
1
+ export declare function canvasAgentColor(agentId: string): string;
2
+ export interface CanvasAgentNote {
3
+ agentId: string;
4
+ text: string;
5
+ inspectSummary: string;
6
+ inspectTrace?: string;
7
+ crop: string;
8
+ }
@@ -45,8 +45,10 @@ export type { SootSimCaptureFilter, SootSimCaptureOptions } from './captureBridg
45
45
  export { SOOTSIM_TIMELINE_KINDS, isTimelineKind, isTimelineEvent, } from './timelineBridgeContract.d.ts';
46
46
  export type { SootSimTimelineKind, SootSimTimelineContext, SootSimTimelineEvent, SootSimTimelineQuery, SootSimTimelineQueryResult, SootSimTimelineCountsByKind, SootSimTimelineSummary, SootSimTimelineStatus, SootSimTimelineBridge, } from './timelineBridgeContract.d.ts';
47
47
  export type { SootSimSceneStreamCommand, SootSimSceneStreamContinuation, SootSimSceneReplayState, SootSimSceneStreamResult, SootSimSceneStreamBridge, } from './sceneStreamBridgeContract.d.ts';
48
- export { createSootSimReplayScreenIdentity, inferCursorMoveMs, createSootSimReplayCursorState, createSootSimReplayState, } from './replayBridgeContract.d.ts';
49
- export type { SootSimReplayCursorMode, SootSimReplayCursorPose, SootSimReplayCursorState, SootSimAgentActionDetail, SootSimAgentIdentity, SootSimHardwareKeyboardInputDetail, SootSimReplayTarget, SootSimReplayEvent, SootSimReplayPathPoint, SootSimReplayPreviewState, SootSimReplayState, } from './replayBridgeContract.d.ts';
48
+ export { createSootSimReplayScreenIdentity, isCanvasMapAgent, inferCursorMoveMs, createSootSimReplayCursorState, createSootSimReplayState, } from './replayBridgeContract.d.ts';
49
+ export type { SootSimReplayCursorMode, SootSimReplayCursorPose, SootSimReplayCursorState, CanvasMapAgent, SootSimAgentActionDetail, SootSimAgentIdentity, SootSimHardwareKeyboardInputDetail, SootSimReplayTarget, SootSimReplayEvent, SootSimReplayPathPoint, SootSimReplayPreviewState, SootSimReplayState, } from './replayBridgeContract.d.ts';
50
50
  export type { PointerSourceEvent } from './pointerSourceEventContract.d.ts';
51
51
  export type { SootSimCornerRadii, NativeSurfaceShadow, NativeSurfaceShadowCast, NativeSurfaceLayout, NativeSurfacePresentation, NativeSurfaceIdentity, NativeSurfacePresented, NativeSurfaceRegistration, } from './nativeSurfaceContract.d.ts';
52
52
  export type { GuestEvaluationReceipt, GuestExecutionDigest, GuestExecutionRecord, GuestExecutionSnapshot, } from './guestExecutionContract.d.ts';
53
+ export { canvasAgentColor } from './canvasAgentContract.d.ts';
54
+ export type { CanvasAgentNote } from './canvasAgentContract.d.ts';
@@ -131,3 +131,15 @@ export declare function createSootSimReplayCursorState(mode?: SootSimReplayCurso
131
131
  y: number;
132
132
  }): SootSimReplayCursorState;
133
133
  export declare function createSootSimReplayState(): SootSimReplayState;
134
+ export type CanvasMapAgent = {
135
+ id: string;
136
+ name: string;
137
+ machine: string;
138
+ step: string;
139
+ screenId: string;
140
+ action?: {
141
+ sequence: number;
142
+ detail: SootSimAgentActionDetail;
143
+ };
144
+ };
145
+ export declare function isCanvasMapAgent(value: unknown): value is CanvasMapAgent;
@@ -15,6 +15,9 @@ export type SootSimSceneStreamCommand = {
15
15
  action: 'play';
16
16
  } | {
17
17
  action: 'pause';
18
+ } | {
19
+ action: 'rate';
20
+ rate: number;
18
21
  } | {
19
22
  action: 'seek';
20
23
  timeMs: number;
@@ -29,6 +32,7 @@ export interface SootSimSceneReplayState {
29
32
  durationMs: number;
30
33
  playing: boolean;
31
34
  ended: boolean;
35
+ rate: number;
32
36
  recordedAtEpochMs: number | null;
33
37
  }
34
38
  export type SootSimSceneStreamResult = {
@@ -40,7 +44,7 @@ export type SootSimSceneStreamResult = {
40
44
  frameCount: number;
41
45
  continuation: SootSimSceneStreamContinuation | null;
42
46
  } | ({
43
- action: 'play' | 'pause' | 'seek' | 'step' | 'state';
47
+ action: 'play' | 'pause' | 'rate' | 'seek' | 'step' | 'state';
44
48
  } & SootSimSceneReplayState);
45
49
  export interface SootSimSceneStreamBridge {
46
50
  run(command: SootSimSceneStreamCommand): Promise<SootSimSceneStreamResult>;
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.2423",
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":"9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a","file":"node/cli-9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a.cjs"}
1
+ {"abi":1,"sha256":"50f7ba9b5269b150a6bd2189f202e3cde6ecd829f705d24a70a88f13e6a92474","file":"node/cli-50f7ba9b5269b150a6bd2189f202e3cde6ecd829f705d24a70a88f13e6a92474.cjs"}
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  Name: CoreData
3
3
  Enumerators:
4
+ - Name: NSManagedObjectResultType
5
+ SwiftName: managedObjectResultType
4
6
  - Name: NSBinaryDataAttributeType
5
7
  SwiftName: binaryDataAttributeType
6
8
  - Name: NSBooleanAttributeType
@@ -3,6 +3,8 @@
3
3
  NS_ASSUME_NONNULL_BEGIN
4
4
  __attribute__((availability(ios,introduced=3.0)))
5
5
  PEACH_SWIFT_CLASS(CoreData) @interface NSPersistentStore : NSObject
6
+ @property (nullable, strong) NSURL *URL;
7
+ @property (readonly, copy) NSString *type;
6
8
  @property (null_resettable, nonatomic, strong) NSDictionary<NSString *, id> *metadata;
7
9
  @end
8
10
  NS_ASSUME_NONNULL_END
@@ -4,3 +4,13 @@
4
4
  // sys/errno.h at darwin's value, so this overlay only routes darwin's
5
5
  // errno.h to it.
6
6
  #include_next <errno.h>
7
+
8
+ #ifdef __wasm_atomics__
9
+ // retain libc's tls storage for the final link through its accessor.
10
+ #undef errno
11
+ #ifdef __cplusplus
12
+ extern "C"
13
+ #endif
14
+ __attribute__((const)) int *__errno_location(void);
15
+ #define errno (*__errno_location())
16
+ #endif
@@ -21,10 +21,10 @@ import type {
21
21
  AgentInspectListenerStatus,
22
22
  AgentInspectMessage,
23
23
  AgentPromptEnvelope,
24
- CanvasAgentNote,
25
24
  CanvasAgentNoteStatus,
26
25
  } from './agent-prompt.ts'
27
26
  import type { AgentSession, AttachedProject } from './attached-projects.ts'
27
+ import type { CanvasAgentNote } from '@peach/globals'
28
28
 
29
29
  export interface AgentDaemonClientOptions {
30
30
  port?: number
@@ -1,3 +1,4 @@
1
+ import type { CanvasAgentNote } from '@peach/globals'
1
2
  export interface AgentPromptEnvelope {
2
3
  text: string
3
4
  displayText?: string
@@ -14,14 +15,6 @@ export interface AgentInspectMessage {
14
15
  crop?: string
15
16
  }
16
17
 
17
- export interface CanvasAgentNote {
18
- agentId: string
19
- text: string
20
- inspectSummary: string
21
- inspectTrace?: string
22
- crop: string
23
- }
24
-
25
18
  export interface CanvasAgentNoteDelivery {
26
19
  send(note: CanvasAgentNote): Promise<{ id: string }>
27
20
  waitUntilTaken(id: string, signal: AbortSignal): Promise<void>
@@ -1,8 +1,5 @@
1
- import type {
2
- CanvasAgentNote,
3
- CanvasAgentNoteDelivery,
4
- CanvasAgentNoteStatus,
5
- } from './agent-prompt'
1
+ import type { CanvasAgentNoteDelivery, CanvasAgentNoteStatus } from './agent-prompt'
2
+ import type { CanvasAgentNote } from '@peach/globals'
6
3
 
7
4
  export function createCanvasAgentNoteDelivery(
8
5
  send: CanvasAgentNoteDelivery['send'],
@@ -1,6 +1,9 @@
1
1
  export type CanvasGrouping = 'project' | 'person' | 'agent' | 'machine' | 'label'
2
2
 
3
- export type CanvasGroupFields = Partial<Record<CanvasGrouping, string | null>>
3
+ // a keyed value groups by a stable key and shows its name, as an agent by id
4
+ export type CanvasGroupValue = string | { key: string; name: string }
5
+
6
+ export type CanvasGroupFields = Partial<Record<CanvasGrouping, CanvasGroupValue | null>>
4
7
 
5
8
  export function groupCanvasItems<T extends CanvasGroupFields>(
6
9
  items: readonly T[],
@@ -8,11 +11,16 @@ export function groupCanvasItems<T extends CanvasGroupFields>(
8
11
  ): { key: string; name: string; items: T[] }[] {
9
12
  const groups = new Map<string, { name: string; items: T[] }>()
10
13
  for (const item of items) {
11
- const value = item[by]?.trim()
14
+ const field = item[by]
15
+ const value = typeof field === 'string' ? field.trim() : field?.key.trim()
12
16
  const key = value ? `value:${value}` : 'missing'
13
17
  const group = groups.get(key)
14
18
  if (group) group.items.push(item)
15
- else groups.set(key, { name: value || `No ${by}`, items: [item] })
19
+ else
20
+ groups.set(key, {
21
+ name: (typeof field === 'object' && field?.name.trim()) || value || `No ${by}`,
22
+ items: [item],
23
+ })
16
24
  }
17
25
  return [...groups]
18
26
  .sort(([, a], [, b]) => a.name.localeCompare(b.name, undefined, { numeric: true }))
@@ -1,5 +1,5 @@
1
1
  import type { BridgeCommandType } from './bridge-contract.ts'
2
- import type { SootSimAgentIdentity } from '@peach/globals'
2
+ import type { SootSimAgentIdentity, SootSimReplayTarget } from '@peach/globals'
3
3
 
4
4
  // each field of a command's driving agent, in characters.
5
5
  export const AGENT_IDENTITY_MAX_CHARS = 200
@@ -30,6 +30,36 @@ export function readAgentIdentity(
30
30
  return { id, name, machine, step }
31
31
  }
32
32
 
33
+ const TEXT_FIELD_TYPE = /text ?(input|field)/i
34
+
35
+ /**
36
+ * what someone watching a sim or its recording may learn about the element an
37
+ * agent acted on. a text field's text is whatever was typed into it, so a field
38
+ * leaves only its ids. every writer of an agent action to a wire projects its
39
+ * target through here.
40
+ */
41
+ export function agentActionTarget(
42
+ target: SootSimReplayTarget | null | undefined,
43
+ ): Pick<SootSimReplayTarget, 'id' | 'testID' | 'text'> | undefined {
44
+ if (!target) return undefined
45
+ const clean = (value: string | null | undefined) => {
46
+ const text = value?.trim().replace(/\s+/g, ' ')
47
+ return text ? text.slice(0, AGENT_IDENTITY_MAX_CHARS) : undefined
48
+ }
49
+ const id = clean(target.id)
50
+ const testID = clean(target.testID)
51
+ const text = TEXT_FIELD_TYPE.test(target.type ?? '') ? undefined : clean(target.text)
52
+ if (!id && !testID && !text) return undefined
53
+ return { ...(id && { id }), ...(testID && { testID }), ...(text && { text }) }
54
+ }
55
+
56
+ export function agentActionTargetName(
57
+ target: SootSimReplayTarget | null | undefined,
58
+ ): string | null {
59
+ const safe = agentActionTarget(target)
60
+ return safe?.text ?? safe?.testID ?? safe?.id ?? null
61
+ }
62
+
33
63
  // largest guest artifact a nano isolate measurably boots, settles, screenshots,
34
64
  // and survives repeated invocations within Cloudflare Dynamic Worker platform
35
65
  // limits (67,108,864 bytes total Dynamic Worker size minus 26,347,088 bytes engine
@@ -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,