peachsim 0.1.2422 → 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 (105) 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 +6 -7
  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 +4 -5
  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 +6 -7
  37. package/dist-lib/host/fetch-proxy-handler.cjs +4 -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 +67 -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 +4 -4
  53. package/dist-lib/native-app-identity-project.cjs +2 -2
  54. package/dist-lib/native-app-identity-project.mjs +2 -2
  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 +24 -24
  66. package/dist-lib/public-origins-lib.json +54 -53
  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 +148 -127
  74. package/dist-lib/swift-compile.cjs +2 -3
  75. package/dist-lib/swift-compile.mjs +2 -3
  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 +3 -4
  83. package/dist-lib/vite.cjs +4 -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/ios/apps/canvas-map-data.d.ts +83 -2
  87. package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
  88. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +9 -0
  89. package/dist-types/packages/peach-globals/src/canvasAgentContract.d.ts +8 -0
  90. package/dist-types/packages/peach-globals/src/index.d.ts +4 -2
  91. package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +12 -0
  92. package/dist-types/packages/peach-globals/src/sceneStreamBridgeContract.d.ts +5 -1
  93. package/kotlin/sdk.tar.gz +0 -0
  94. package/package.json +1 -1
  95. package/runtime-companion.json +1 -1
  96. package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes +2 -0
  97. package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStore.h +2 -0
  98. package/sdk/ios/wasm/include/errno.h +10 -0
  99. package/src/agent-daemon-client.ts +1 -1
  100. package/src/agent-prompt.ts +1 -8
  101. package/src/canvas-agent-note-delivery.ts +2 -5
  102. package/src/canvas-groups.ts +11 -3
  103. package/src/cloud-contract.ts +31 -1
  104. package/src/swift-compile.ts +0 -1
  105. package/src/vite-plugin.ts +4 -1
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2422 | (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;
@@ -13985,7 +13985,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
13985
13985
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
13986
13986
  var MULTI_MANIFEST_VERSION = 72;
13987
13987
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
13988
- var compilerSourceDigest = true ? "63f37c4a87253305166cb52435207eb3f74394734f1a77e562d79ab7d5d7dfc1" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
13988
+ var compilerSourceDigest = true ? "886349932526d72a5a1493acbcd1799ec941afd89998ad0eab64bbe9c48afb95" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
13989
13989
  function swiftArtifactHash(input, release, moduleRoot) {
13990
13990
  const hash = (0, import_node_crypto15.createHash)("sha256");
13991
13991
  hash.update(`swift-compile
@@ -14836,7 +14836,6 @@ var FOUNDATION_OVERLAY_TYPES = /* @__PURE__ */ new Set([
14836
14836
  "NSSwappedDouble",
14837
14837
  "NSSwappedFloat",
14838
14838
  "NSUbiquitousKeyValueStore",
14839
- "NSValueTransformerName",
14840
14839
  "NSXPCCoder",
14841
14840
  "NSXPCConnection",
14842
14841
  "NSXPCInterface",
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2422 | (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 __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);
@@ -13984,7 +13984,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
13984
13984
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
13985
13985
  var MULTI_MANIFEST_VERSION = 72;
13986
13986
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
13987
- var compilerSourceDigest = true ? "63f37c4a87253305166cb52435207eb3f74394734f1a77e562d79ab7d5d7dfc1" : swiftCompilerSourceDigest(import.meta.dirname);
13987
+ var compilerSourceDigest = true ? "886349932526d72a5a1493acbcd1799ec941afd89998ad0eab64bbe9c48afb95" : swiftCompilerSourceDigest(import.meta.dirname);
13988
13988
  function swiftArtifactHash(input, release, moduleRoot) {
13989
13989
  const hash = createHash15("sha256");
13990
13990
  hash.update(`swift-compile
@@ -14835,7 +14835,6 @@ var FOUNDATION_OVERLAY_TYPES = /* @__PURE__ */ new Set([
14835
14835
  "NSSwappedDouble",
14836
14836
  "NSSwappedFloat",
14837
14837
  "NSUbiquitousKeyValueStore",
14838
- "NSValueTransformerName",
14839
14838
  "NSXPCCoder",
14840
14839
  "NSXPCConnection",
14841
14840
  "NSXPCInterface",
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2422 | (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.2422 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2423 | (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.2422 | (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.2422 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2423 | (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.2422 | (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;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2422 | (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.2422 | (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;
@@ -18899,7 +18899,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
18899
18899
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
18900
18900
  var MULTI_MANIFEST_VERSION = 72;
18901
18901
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
18902
- var compilerSourceDigest = true ? "63f37c4a87253305166cb52435207eb3f74394734f1a77e562d79ab7d5d7dfc1" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
18902
+ var compilerSourceDigest = true ? "886349932526d72a5a1493acbcd1799ec941afd89998ad0eab64bbe9c48afb95" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
18903
18903
  function swiftArtifactHash(input, release, moduleRoot) {
18904
18904
  const hash = (0, import_node_crypto15.createHash)("sha256");
18905
18905
  hash.update(`swift-compile
@@ -19750,7 +19750,6 @@ var FOUNDATION_OVERLAY_TYPES = /* @__PURE__ */ new Set([
19750
19750
  "NSSwappedDouble",
19751
19751
  "NSSwappedFloat",
19752
19752
  "NSUbiquitousKeyValueStore",
19753
- "NSValueTransformerName",
19754
19753
  "NSXPCCoder",
19755
19754
  "NSXPCConnection",
19756
19755
  "NSXPCInterface",
@@ -34625,7 +34624,7 @@ function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
34625
34624
  return hash.digest("hex");
34626
34625
  }
34627
34626
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
34628
- var STANDIN_SOURCE_DIGEST = true ? "1122424b1e57ea84e0c3c2fbd17ce18dee149a87374de8912d176aec8451bc86" : standinSourceDigest();
34627
+ var STANDIN_SOURCE_DIGEST = true ? "2913d6a693b8a1c42193c1962c3468c2f8bc68c78a2f2f52961ca5efe03d1e67" : standinSourceDigest();
34629
34628
 
34630
34629
  // src/swift-standins.ts
34631
34630
  var import_node_child_process32 = require("node:child_process");
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2422 | (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 ? "1122424b1e57ea84e0c3c2fbd17ce18dee149a87374de8912d176aec8451bc86" : standinSourceDigest();
4385
+ STANDIN_SOURCE_DIGEST = true ? "2913d6a693b8a1c42193c1962c3468c2f8bc68c78a2f2f52961ca5efe03d1e67" : standinSourceDigest();
4386
4386
  }
4387
4387
  });
4388
4388
 
@@ -5759,7 +5759,7 @@ var init_swift_compile = __esm({
5759
5759
  FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
5760
5760
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
5761
5761
  ).join("");
5762
- compilerSourceDigest = true ? "63f37c4a87253305166cb52435207eb3f74394734f1a77e562d79ab7d5d7dfc1" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
5762
+ compilerSourceDigest = true ? "886349932526d72a5a1493acbcd1799ec941afd89998ad0eab64bbe9c48afb95" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
5763
5763
  C_WORDS = new Set(
5764
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(
5765
5765
  " "
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2422 | (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.2422 | (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);
@@ -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: {
@@ -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.2422",
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
@@ -3053,7 +3053,6 @@ const FOUNDATION_OVERLAY_TYPES = new Set([
3053
3053
  'NSSwappedDouble',
3054
3054
  'NSSwappedFloat',
3055
3055
  'NSUbiquitousKeyValueStore',
3056
- 'NSValueTransformerName',
3057
3056
  'NSXPCCoder',
3058
3057
  'NSXPCConnection',
3059
3058
  'NSXPCInterface',
@@ -1615,7 +1615,10 @@ export function wsBridgePlugin(options: { ownedBridgePort?: number } = {}): Plug
1615
1615
  // the native host graph stays outside the config's dependency set.
1616
1616
  // keep jiti's default import interop for commonjs native dependencies.
1617
1617
  const shellPort = { read: readShellPort }
1618
- const host = createJiti(import.meta.url)
1618
+ const jitiCache = fs.existsSync(workspaceNodeModules)
1619
+ ? path.join(workspaceNodeModules, '.cache/jiti')
1620
+ : true
1621
+ const host = createJiti(import.meta.url, { fsCache: jitiCache })
1619
1622
  .import<{ SootSimBridgeHost: typeof SootSimBridgeHost }>(
1620
1623
  fileURLToPath(new URL('./host/bridge-host.ts', import.meta.url)),
1621
1624
  )