peachsim 0.1.2408 → 0.1.2409

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 (92) hide show
  1. package/cli/cloud-client.ts +8 -3
  2. package/cli/command-agent.ts +122 -0
  3. package/cli/ws-bridge.ts +4 -1
  4. package/dist-lib/agent-daemon-client.cjs +1 -1
  5. package/dist-lib/agent-events.cjs +1 -1
  6. package/dist-lib/attached-projects.cjs +1 -1
  7. package/dist-lib/auth/shared-session.cjs +1 -1
  8. package/dist-lib/backend-origin.cjs +1 -1
  9. package/dist-lib/beta.cjs +1 -1
  10. package/dist-lib/beta.mjs +1 -1
  11. package/dist-lib/bridge-constants.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.mjs +1 -1
  14. package/dist-lib/bridge-contract.cjs +1 -1
  15. package/dist-lib/bridge-contract.mjs +1 -1
  16. package/dist-lib/bundle-channel.cjs +9 -7
  17. package/dist-lib/capture-contract.cjs +1 -1
  18. package/dist-lib/capture-contract.mjs +1 -1
  19. package/dist-lib/cloud-contract.cjs +20 -1
  20. package/dist-lib/cloud-contract.mjs +18 -1
  21. package/dist-lib/cloud-test-args.cjs +1 -1
  22. package/dist-lib/cloud-test-args.mjs +1 -1
  23. package/dist-lib/cloud.cjs +1 -1
  24. package/dist-lib/cloud.mjs +1 -1
  25. package/dist-lib/config.cjs +1 -1
  26. package/dist-lib/config.mjs +1 -1
  27. package/dist-lib/detox/index.cjs +1630 -1513
  28. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  29. package/dist-lib/expo-swift-bundle.cjs +7 -5
  30. package/dist-lib/expo-swift-metadata.cjs +1 -1
  31. package/dist-lib/expo-swift-metadata.mjs +1 -1
  32. package/dist-lib/home-paths.cjs +1 -1
  33. package/dist-lib/host/bridge-host.cjs +43 -7
  34. package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
  35. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  36. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  37. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  38. package/dist-lib/host/websocket-proxy.cjs +1 -1
  39. package/dist-lib/index.cjs +391 -271
  40. package/dist-lib/jump-to-source-babel.cjs +1 -1
  41. package/dist-lib/jump-to-source-native.cjs +1 -1
  42. package/dist-lib/kotlin-host.cjs +1 -1
  43. package/dist-lib/menu.cjs +1 -1
  44. package/dist-lib/menu.mjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  47. package/dist-lib/metro-production-bundle.cjs +1 -1
  48. package/dist-lib/metro-production-bundle.mjs +1 -1
  49. package/dist-lib/metro.cjs +4 -4
  50. package/dist-lib/native-app-identity-project.cjs +2 -2
  51. package/dist-lib/native-app-identity-project.mjs +2 -2
  52. package/dist-lib/native-app-identity.cjs +1 -1
  53. package/dist-lib/native-app-identity.mjs +1 -1
  54. package/dist-lib/native-firebase-metadata.cjs +1 -1
  55. package/dist-lib/native-firebase-metadata.mjs +1 -1
  56. package/dist-lib/pdfium-raster.cjs +1 -1
  57. package/dist-lib/pdfium-raster.mjs +1 -1
  58. package/dist-lib/plist.cjs +1 -1
  59. package/dist-lib/plist.mjs +1 -1
  60. package/dist-lib/profiles.cjs +1 -1
  61. package/dist-lib/public-brand.cjs +1 -1
  62. package/dist-lib/public-origins-lib-esm.json +24 -24
  63. package/dist-lib/public-origins-lib.json +67 -58
  64. package/dist-lib/react-native-host-modules.cjs +1 -1
  65. package/dist-lib/react-native-host-modules.mjs +1 -1
  66. package/dist-lib/reap-browser.cjs +1 -1
  67. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  68. package/dist-lib/sdk.cjs +1 -1
  69. package/dist-lib/sdk.mjs +1 -1
  70. package/dist-lib/skills.cjs +837 -720
  71. package/dist-lib/swift-compile.cjs +4 -3
  72. package/dist-lib/swift-compile.mjs +4 -3
  73. package/dist-lib/swift-package.cjs +1 -1
  74. package/dist-lib/swift-package.mjs +1 -1
  75. package/dist-lib/swift-submit.cjs +1 -1
  76. package/dist-lib/swift-submit.mjs +1 -1
  77. package/dist-lib/swift-toolchain.cjs +1 -1
  78. package/dist-lib/swift.cjs +1 -1
  79. package/dist-lib/vite-swift.cjs +18 -4
  80. package/dist-lib/vite.cjs +4 -4
  81. package/dist-lib/worklet-executable.cjs +1 -1
  82. package/dist-lib/worklet-executable.mjs +1 -1
  83. package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
  84. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  85. package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +7 -0
  86. package/kotlin/sdk.tar.gz +0 -0
  87. package/package.json +1 -1
  88. package/runtime-companion.json +1 -1
  89. package/src/bridge-contract.ts +4 -0
  90. package/src/cloud-contract.ts +30 -0
  91. package/src/swift-packages.ts +1 -0
  92. package/src/swift-shared-sdk.ts +2 -1
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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;
@@ -4366,7 +4366,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
4366
4366
  const overlayFiles = (0, import_node_fs8.readdirSync)(overlay, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path8.default.join(entry.parentPath, entry.name)).sort();
4367
4367
  const key = JSON.stringify([
4368
4368
  // bump the recipe when the transformation changes; bundling changes function text.
4369
- "v24",
4369
+ "v25",
4370
4370
  [...WEAKEN_FOUNDATION_SYMS],
4371
4371
  toolchainBin,
4372
4372
  sdk,
@@ -4426,6 +4426,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
4426
4426
  "objc/NSObject.h",
4427
4427
  "ObjectiveC.apinotes",
4428
4428
  "net/if.h",
4429
+ "netinet/tcp.h",
4429
4430
  "notify.h",
4430
4431
  "notify.modulemap",
4431
4432
  "module.modulemap",
@@ -13865,7 +13866,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
13865
13866
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
13866
13867
  var MULTI_MANIFEST_VERSION = 71;
13867
13868
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
13868
- var compilerSourceDigest = true ? "36b1496faf39a688e5ab3ee63bdab89a3afde2b9c6355443c3162f4b1e3b9144" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
13869
+ var compilerSourceDigest = true ? "d287f3ad479477c70004707c1336f37c9baeb81aef1880544a5ca236e088ca16" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
13869
13870
  function swiftArtifactHash(input, release, moduleRoot) {
13870
13871
  const hash = (0, import_node_crypto14.createHash)("sha256");
13871
13872
  hash.update(`swift-compile
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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);
@@ -4319,7 +4319,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
4319
4319
  const overlayFiles = readdirSync4(overlay, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => path10.join(entry.parentPath, entry.name)).sort();
4320
4320
  const key = JSON.stringify([
4321
4321
  // bump the recipe when the transformation changes; bundling changes function text.
4322
- "v24",
4322
+ "v25",
4323
4323
  [...WEAKEN_FOUNDATION_SYMS],
4324
4324
  toolchainBin,
4325
4325
  sdk,
@@ -4379,6 +4379,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
4379
4379
  "objc/NSObject.h",
4380
4380
  "ObjectiveC.apinotes",
4381
4381
  "net/if.h",
4382
+ "netinet/tcp.h",
4382
4383
  "notify.h",
4383
4384
  "notify.modulemap",
4384
4385
  "module.modulemap",
@@ -13853,7 +13854,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
13853
13854
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
13854
13855
  var MULTI_MANIFEST_VERSION = 71;
13855
13856
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
13856
- var compilerSourceDigest = true ? "36b1496faf39a688e5ab3ee63bdab89a3afde2b9c6355443c3162f4b1e3b9144" : swiftCompilerSourceDigest(import.meta.dirname);
13857
+ var compilerSourceDigest = true ? "d287f3ad479477c70004707c1336f37c9baeb81aef1880544a5ca236e088ca16" : swiftCompilerSourceDigest(import.meta.dirname);
13857
13858
  function swiftArtifactHash(input, release, moduleRoot) {
13858
13859
  const hash = createHash14("sha256");
13859
13860
  hash.update(`swift-compile
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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;
@@ -9346,7 +9346,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk2)
9346
9346
  const overlayFiles = (0, import_node_fs10.readdirSync)(overlay, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path10.default.join(entry.parentPath, entry.name)).sort();
9347
9347
  const key2 = JSON.stringify([
9348
9348
  // bump the recipe when the transformation changes; bundling changes function text.
9349
- "v24",
9349
+ "v25",
9350
9350
  [...WEAKEN_FOUNDATION_SYMS],
9351
9351
  toolchainBin,
9352
9352
  sdk2,
@@ -9406,6 +9406,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk2)
9406
9406
  "objc/NSObject.h",
9407
9407
  "ObjectiveC.apinotes",
9408
9408
  "net/if.h",
9409
+ "netinet/tcp.h",
9409
9410
  "notify.h",
9410
9411
  "notify.modulemap",
9411
9412
  "module.modulemap",
@@ -18780,7 +18781,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
18780
18781
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
18781
18782
  var MULTI_MANIFEST_VERSION = 71;
18782
18783
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
18783
- var compilerSourceDigest = true ? "36b1496faf39a688e5ab3ee63bdab89a3afde2b9c6355443c3162f4b1e3b9144" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
18784
+ var compilerSourceDigest = true ? "d287f3ad479477c70004707c1336f37c9baeb81aef1880544a5ca236e088ca16" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
18784
18785
  function swiftArtifactHash(input, release, moduleRoot) {
18785
18786
  const hash = (0, import_node_crypto14.createHash)("sha256");
18786
18787
  hash.update(`swift-compile
@@ -26946,6 +26947,18 @@ function preparedSwiftCheckouts(project) {
26946
26947
  }
26947
26948
  return void 0;
26948
26949
  }
26950
+ function preparedSwiftPin(checkouts, identity2, location, revision) {
26951
+ for (const workspace of workspaces.values()) {
26952
+ if (workspace.checkouts !== checkouts) continue;
26953
+ const pin2 = workspace.pins.find((item) => item.identity === identity2);
26954
+ if (!pin2 || pin2.location !== location || pin2.revision !== revision)
26955
+ throw new Error(`prepared Swift package pin mismatch: ${identity2}`);
26956
+ if (!import_node_fs32.default.existsSync(import_node_path32.default.join(checkouts, identity2, "Package.swift")))
26957
+ throw new Error(`prepared Swift package is missing: ${identity2}`);
26958
+ return true;
26959
+ }
26960
+ return false;
26961
+ }
26949
26962
  function preparedXcodePhase(project, target, phase, configuration, outputs, recorded) {
26950
26963
  const root = recording?.root ?? [...workspaces.keys()].find((root2) => {
26951
26964
  const relative2 = import_node_path32.default.relative(root2, project);
@@ -33718,6 +33731,7 @@ var execFileAsync2 = (0, import_node_util7.promisify)(import_node_child_process2
33718
33731
  var checkoutKey = (dir, pin2) => `${dir}\0${pin2.revision}`;
33719
33732
  function fetchedCheckout(checkouts, identity2, pin2) {
33720
33733
  const dir = import_node_path44.default.join(checkouts, identity2);
33734
+ if (preparedSwiftPin(checkouts, identity2, pin2.location, pin2.revision)) return dir;
33721
33735
  const head = import_node_path44.default.join(dir, ".git", "HEAD");
33722
33736
  if (!verified.has(checkoutKey(dir, pin2)) || !import_node_fs43.default.existsSync(head) || import_node_fs43.default.readFileSync(head, "utf8").trim() !== pin2.revision)
33723
33737
  throw new Error(
@@ -34280,7 +34294,7 @@ function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
34280
34294
  return hash.digest("hex");
34281
34295
  }
34282
34296
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
34283
- var STANDIN_SOURCE_DIGEST = true ? "80b89d414ee068d747a0859811608daad7d3c46ca66f7bf589cc5c82b820de93" : standinSourceDigest();
34297
+ var STANDIN_SOURCE_DIGEST = true ? "f2b2c9a5d56b4cc06d8934ce5600587dcf7893acdf17158203975d997dbd387e" : standinSourceDigest();
34284
34298
 
34285
34299
  // src/swift-standins.ts
34286
34300
  var import_node_child_process32 = require("node:child_process");
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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;
@@ -2850,7 +2850,7 @@ var require_lib = __commonJS({
2850
2850
  var runtime_companion_default;
2851
2851
  var init_runtime_companion = __esm({
2852
2852
  "runtime-companion.json"() {
2853
- runtime_companion_default = { abi: 1, sha256: "7e162f525497b8964ff8f7274ce8219416ec01ac8fc6986a80d2df90a54c71c4", file: "node/cli-7e162f525497b8964ff8f7274ce8219416ec01ac8fc6986a80d2df90a54c71c4.cjs" };
2853
+ runtime_companion_default = { abi: 1, sha256: "f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b", file: "node/cli-f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b.cjs" };
2854
2854
  }
2855
2855
  });
2856
2856
 
@@ -3244,7 +3244,7 @@ var STANDIN_SOURCE_DIGEST;
3244
3244
  var init_swift_standin_digest = __esm({
3245
3245
  "src/swift-standin-digest.ts"() {
3246
3246
  "use strict";
3247
- STANDIN_SOURCE_DIGEST = true ? "80b89d414ee068d747a0859811608daad7d3c46ca66f7bf589cc5c82b820de93" : standinSourceDigest();
3247
+ STANDIN_SOURCE_DIGEST = true ? "f2b2c9a5d56b4cc06d8934ce5600587dcf7893acdf17158203975d997dbd387e" : standinSourceDigest();
3248
3248
  }
3249
3249
  });
3250
3250
 
@@ -4962,7 +4962,7 @@ var init_swift_compile = __esm({
4962
4962
  FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
4963
4963
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
4964
4964
  ).join("");
4965
- compilerSourceDigest = true ? "36b1496faf39a688e5ab3ee63bdab89a3afde2b9c6355443c3162f4b1e3b9144" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
4965
+ compilerSourceDigest = true ? "d287f3ad479477c70004707c1336f37c9baeb81aef1880544a5ca236e088ca16" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
4966
4966
  C_WORDS = new Set(
4967
4967
  "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(
4968
4968
  " "
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2408 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __typeError = (msg) => {
4
4
  throw TypeError(msg);
@@ -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 = 33;
4
- export declare const DISPLAY_SERVER_SUBPROTOCOL = "rnx.display-server.v2.wire26.minor33";
3
+ export declare const DISPLAY_SERVER_MINOR = 34;
4
+ export declare const DISPLAY_SERVER_SUBPROTOCOL = "rnx.display-server.v2.wire26.minor34";
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: {
@@ -46,7 +46,7 @@ export { SOOTSIM_TIMELINE_KINDS, isTimelineKind, isTimelineEvent, } from './time
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
48
  export { createSootSimReplayScreenIdentity, inferCursorMoveMs, createSootSimReplayCursorState, createSootSimReplayState, } from './replayBridgeContract.d.ts';
49
- export type { SootSimReplayCursorMode, SootSimReplayCursorPose, SootSimReplayCursorState, SootSimAgentActionDetail, SootSimHardwareKeyboardInputDetail, SootSimReplayTarget, SootSimReplayEvent, SootSimReplayPathPoint, SootSimReplayPreviewState, SootSimReplayState, } from './replayBridgeContract.d.ts';
49
+ export type { SootSimReplayCursorMode, SootSimReplayCursorPose, SootSimReplayCursorState, 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';
@@ -37,6 +37,13 @@ export interface SootSimAgentActionDetail {
37
37
  keyboardAction?: 'type' | 'press' | 'dispatchKey' | 'dismiss' | 'edit';
38
38
  edit?: TextInputEditCommand;
39
39
  target?: SootSimReplayTarget;
40
+ agent?: SootSimAgentIdentity;
41
+ }
42
+ export interface SootSimAgentIdentity {
43
+ id: string;
44
+ name: string;
45
+ machine: string;
46
+ step: string;
40
47
  }
41
48
  export type SootSimHardwareKeyboardInputDetail = {
42
49
  keyboardAction: 'type' | 'dispatchKey';
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.2408",
3
+ "version": "0.1.2409",
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":"7e162f525497b8964ff8f7274ce8219416ec01ac8fc6986a80d2df90a54c71c4","file":"node/cli-7e162f525497b8964ff8f7274ce8219416ec01ac8fc6986a80d2df90a54c71c4.cjs"}
1
+ {"abi":1,"sha256":"f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b","file":"node/cli-f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b.cjs"}
@@ -11,6 +11,7 @@
11
11
  import type {
12
12
  PeachAccessibilityNode,
13
13
  SootSimAgentActionDetail,
14
+ SootSimAgentIdentity,
14
15
  SootSimCaptureFilter,
15
16
  SootSimExternalAppLifecycleOptions,
16
17
  SootSimRecorderBridge,
@@ -100,6 +101,9 @@ export interface WsCommand {
100
101
  acquireLock?: boolean
101
102
  // bridge:claim and close — take over a cli lease another cli holds.
102
103
  force?: boolean
104
+ // the identified cli driving this command; every agent action it causes
105
+ // carries it to the people watching the sim.
106
+ agent?: SootSimAgentIdentity
103
107
  // bridge:list-sims — also report the retained disconnected sims (readyState
104
108
  // closed with disconnectCause) after the live ones. read in bridge-host.
105
109
  includeRetained?: boolean
@@ -1,4 +1,34 @@
1
1
  import type { BridgeCommandType } from './bridge-contract.ts'
2
+ import type { SootSimAgentIdentity } from '@peach/globals'
3
+
4
+ // each field of a command's driving agent, in characters.
5
+ export const AGENT_IDENTITY_MAX_CHARS = 200
6
+
7
+ /**
8
+ * the driving agent a command or an agent action carries, read from wire data.
9
+ * undefined is a command nobody identified; anything else that is not a whole
10
+ * identity is null, so every host refuses it the same way.
11
+ */
12
+ export function readAgentIdentity(
13
+ value: unknown,
14
+ ): SootSimAgentIdentity | null | undefined {
15
+ if (value === undefined) return undefined
16
+ if (value === null || typeof value !== 'object' || Array.isArray(value)) return null
17
+ const text = (key: string): string | null => {
18
+ const field: unknown = Reflect.get(value, key)
19
+ return typeof field === 'string' &&
20
+ field.trim() !== '' &&
21
+ field.length <= AGENT_IDENTITY_MAX_CHARS
22
+ ? field
23
+ : null
24
+ }
25
+ const id = text('id')
26
+ const name = text('name')
27
+ const machine = text('machine')
28
+ const step = text('step')
29
+ if (id === null || name === null || machine === null || step === null) return null
30
+ return { id, name, machine, step }
31
+ }
2
32
 
3
33
  // largest guest artifact a nano isolate measurably boots, settles, screenshots,
4
34
  // and survives repeated invocations within Cloudflare Dynamic Worker platform
@@ -493,6 +493,7 @@ const checkoutKey = (dir: string, pin: Pin) => `${dir}\0${pin.revision}`
493
493
  // `checkout FETCH_HEAD`) must still be the pin.
494
494
  function fetchedCheckout(checkouts: string, identity: string, pin: Pin): string {
495
495
  const dir = path.join(checkouts, identity)
496
+ if (preparedSwiftPin(checkouts, identity, pin.location, pin.revision)) return dir
496
497
  const head = path.join(dir, '.git', 'HEAD')
497
498
  if (
498
499
  !verified.has(checkoutKey(dir, pin)) ||
@@ -263,7 +263,7 @@ export function swiftSharedSdkViewOptions(
263
263
  .sort()
264
264
  const key = JSON.stringify([
265
265
  // bump the recipe when the transformation changes; bundling changes function text.
266
- 'v24',
266
+ 'v25',
267
267
  [...WEAKEN_FOUNDATION_SYMS],
268
268
  toolchainBin,
269
269
  sdk,
@@ -339,6 +339,7 @@ export function swiftSharedSdkViewOptions(
339
339
  'objc/NSObject.h',
340
340
  'ObjectiveC.apinotes',
341
341
  'net/if.h',
342
+ 'netinet/tcp.h',
342
343
  'notify.h',
343
344
  'notify.modulemap',
344
345
  'module.modulemap',