peachsim 0.1.1653 → 0.1.1654

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 (110) hide show
  1. package/cli/app-stubs.ts +97 -14
  2. package/cli/bridge-diagnostics.ts +10 -7
  3. package/cli/cloud-client.ts +11 -2
  4. package/cli/commands/doctor.ts +20 -10
  5. package/cli/commands/inspect/core.ts +2 -1
  6. package/cli/commands/inspect/shared.ts +2 -0
  7. package/cli/commands/inspect.ts +11 -2
  8. package/cli/output-redaction.ts +22 -6
  9. package/cli/pause-aware-timeout.ts +24 -10
  10. package/cli/ws-bridge.ts +17 -1
  11. package/dist-lib/agent-daemon-client.cjs +1 -1
  12. package/dist-lib/agent-events.cjs +1 -1
  13. package/dist-lib/attached-projects.cjs +1 -1
  14. package/dist-lib/auth/shared-session.cjs +1 -1
  15. package/dist-lib/backend-origin.cjs +1 -1
  16. package/dist-lib/beta.cjs +1 -1
  17. package/dist-lib/beta.mjs +1 -1
  18. package/dist-lib/bridge-constants.cjs +1 -1
  19. package/dist-lib/bridge-contract-input.cjs +1 -1
  20. package/dist-lib/bridge-contract-input.mjs +1 -1
  21. package/dist-lib/bridge-contract.cjs +1 -1
  22. package/dist-lib/bridge-contract.mjs +1 -1
  23. package/dist-lib/bundle-channel.cjs +42 -50
  24. package/dist-lib/capture-contract.cjs +1 -1
  25. package/dist-lib/capture-contract.mjs +1 -1
  26. package/dist-lib/cloud-contract.cjs +1 -1
  27. package/dist-lib/cloud-contract.mjs +1 -1
  28. package/dist-lib/cloud-test-args.cjs +1 -1
  29. package/dist-lib/cloud-test-args.mjs +1 -1
  30. package/dist-lib/cloud.cjs +1 -1
  31. package/dist-lib/cloud.mjs +1 -1
  32. package/dist-lib/config.cjs +1 -1
  33. package/dist-lib/config.mjs +1 -1
  34. package/dist-lib/detox/index.cjs +47 -12
  35. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  36. package/dist-lib/expo-swift-bundle.cjs +41 -49
  37. package/dist-lib/expo-swift-metadata.cjs +1 -1
  38. package/dist-lib/expo-swift-metadata.mjs +1 -1
  39. package/dist-lib/home-paths.cjs +1 -1
  40. package/dist-lib/host/bridge-host.cjs +70 -52
  41. package/dist-lib/host/fetch-proxy-handler.cjs +176 -31
  42. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  43. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  44. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  45. package/dist-lib/host/websocket-proxy.cjs +1 -1
  46. package/dist-lib/index.cjs +633 -373
  47. package/dist-lib/jump-to-source-babel.cjs +1 -1
  48. package/dist-lib/jump-to-source-native.cjs +1 -1
  49. package/dist-lib/kotlin-host.cjs +1 -1
  50. package/dist-lib/menu.cjs +1 -1
  51. package/dist-lib/menu.mjs +1 -1
  52. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  53. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  54. package/dist-lib/metro-production-bundle.cjs +1 -1
  55. package/dist-lib/metro-production-bundle.mjs +1 -1
  56. package/dist-lib/metro.cjs +62 -14
  57. package/dist-lib/native-app-identity-project.cjs +1 -1
  58. package/dist-lib/native-app-identity-project.mjs +1 -1
  59. package/dist-lib/native-app-identity.cjs +1 -1
  60. package/dist-lib/native-app-identity.mjs +1 -1
  61. package/dist-lib/native-firebase-metadata.cjs +1 -1
  62. package/dist-lib/native-firebase-metadata.mjs +1 -1
  63. package/dist-lib/plist.cjs +1 -1
  64. package/dist-lib/plist.mjs +1 -1
  65. package/dist-lib/profiles.cjs +1 -1
  66. package/dist-lib/public-brand.cjs +1 -1
  67. package/dist-lib/public-origins-lib-esm.json +23 -23
  68. package/dist-lib/public-origins-lib.json +62 -54
  69. package/dist-lib/react-native-host-modules.cjs +1 -1
  70. package/dist-lib/react-native-host-modules.mjs +1 -1
  71. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  72. package/dist-lib/sdk.cjs +2 -2
  73. package/dist-lib/sdk.mjs +2 -2
  74. package/dist-lib/skills.cjs +284 -185
  75. package/dist-lib/swift-compile.cjs +23 -3
  76. package/dist-lib/swift-compile.mjs +22 -3
  77. package/dist-lib/swift-package.cjs +1 -1
  78. package/dist-lib/swift-package.mjs +1 -1
  79. package/dist-lib/swift-submit.cjs +1 -1
  80. package/dist-lib/swift-submit.mjs +1 -1
  81. package/dist-lib/swift-toolchain.cjs +1 -1
  82. package/dist-lib/swift.cjs +1 -1
  83. package/dist-lib/vite-swift.cjs +41 -49
  84. package/dist-lib/vite.cjs +385 -200
  85. package/dist-lib/worklet-executable.cjs +1 -1
  86. package/dist-lib/worklet-executable.mjs +1 -1
  87. package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +1 -0
  88. package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +10 -7
  89. package/dist-types/packages/peach-engine/src/capture/browser-composite.d.ts +10 -0
  90. package/dist-types/packages/peach-engine/src/cli-companion.d.ts +1 -0
  91. package/dist-types/packages/peach-engine/src/engine/node.d.ts +3 -1
  92. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +1 -1
  93. package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +23 -0
  94. package/dist-types/packages/peach-engine/src/engine/types.d.ts +1 -1
  95. package/dist-types/packages/peach-engine/src/engine/visible-frame.d.ts +1 -0
  96. package/dist-types/packages/peach-engine/src/observability/types.d.ts +1 -0
  97. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +38 -0
  98. package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +5 -0
  99. package/package.json +5 -1
  100. package/runtime-companion.json +1 -1
  101. package/src/bridge-contract.ts +2 -0
  102. package/src/bundleGlobalFooter.ts +9 -0
  103. package/src/host/fetch-proxy-handler.ts +37 -0
  104. package/src/sfSymbolMetricsContract.ts +268 -0
  105. package/src/swift-compile.ts +16 -1
  106. package/src/swift-distribution.lock.json +20 -46
  107. package/src/swift-objc-metadata.ts +21 -7
  108. package/src/swift-objc-sdk.ts +13 -0
  109. package/src/vite-plugin-one.ts +161 -16
  110. package/src/host/lease-owner.test.ts +0 -49
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var SIM_LONG_PRESS_MAX_MS = 5e3;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var REFUSED_PERFORM_STEP_TYPES = [
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -23728,6 +23728,19 @@ __attribute__((swift_bridge("Swift.String")))
23728
23728
  - (void)appendFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2);
23729
23729
  + (NSMutableString *)stringWithCapacity:(NSUInteger)capacity;
23730
23730
  @end
23731
+ NS_SWIFT_UNAVAILABLE("Use String or NSString instead.")
23732
+ @interface NSSimpleCString : NSString {
23733
+ @package
23734
+ char *bytes;
23735
+ int numBytes;
23736
+ #if __LP64__
23737
+ int _unused;
23738
+ #endif
23739
+ }
23740
+ @end
23741
+ NS_SWIFT_UNAVAILABLE("Use String or NSString instead.")
23742
+ @interface NSConstantString : NSSimpleCString
23743
+ @end
23731
23744
  @interface NSAttributedString : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
23732
23745
  @property (readonly, copy) NSString *string;
23733
23746
  @end
@@ -26738,6 +26751,9 @@ async function runCompiler(command, args, options, stream = false, quiet) {
26738
26751
  await stopping;
26739
26752
  }
26740
26753
  }
26754
+ function swiftBuilderHopTimeoutMs(compileTimeoutMs) {
26755
+ return (compileTimeoutMs ?? SWIFT_BUILDER_DEFAULT_COMPILE_MS) + SWIFT_BUILDER_TRANSPORT_MARGIN_MS;
26756
+ }
26741
26757
  function swiftDistributionAt(root) {
26742
26758
  const file = import_node_path7.default.join(root, SWIFT_DISTRIBUTION_MANIFEST);
26743
26759
  if (!(0, import_node_fs6.existsSync)(file)) return null;
@@ -29899,7 +29915,7 @@ function compileSwiftProjectUnit(input, options) {
29899
29915
  ],
29900
29916
  {
29901
29917
  cwd: repo,
29902
- timeout: options.timeoutMs,
29918
+ timeout: options.timeoutMs === void 0 ? void 0 : swiftBuilderHopTimeoutMs(options.timeoutMs),
29903
29919
  maxBuffer: 64 * 1024 * 1024,
29904
29920
  signal: options.signal
29905
29921
  },
@@ -30108,7 +30124,7 @@ function compileSwiftProjectUnit(input, options) {
30108
30124
  options.signal
30109
30125
  );
30110
30126
  }
30111
- var import_node_child_process7, import_node_crypto7, import_node_fs6, import_node_os4, import_node_path7, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, BUILD_JOBS, linkedModuleDigests, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, sdkPaths, availableModules, ONE_PRODUCT, SPRITEKIT_PRODUCT, importsSpriteKit, FOUNDATION_IMPLICIT_MODULES, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, EXECUTABLE_LINK_FLAGS, REACTOR_FLAG, MULTI_MANIFEST_VERSION, compilerSourceDigest, DIRECTIVE, OS_IOS, OBJC_ATTRIBUTE, SELECTOR, PROTOCOL_NAME, KEY_PATH, TYPE_AFTER_ATTRIBUTE, DELEGATE_CLASS, REUSABLE_INIT, REUSABLE_VIEW_BASES, CLASS_BASE, FRAME_INIT, APPLE_CLASS, EXTENSION_DECL, CLASS_DECL, MODIFIERS, OVERRIDE_FUNC, OVERRIDE_VAR, APPLE_PROTOCOL, OBJC_PROTOCOL, OBJC_PREPOSITIONS, DECLARATION_MODIFIERS, optionalResult, SDK_OBJC_OPTIONAL, IMP_CONVENTION, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, ROOT_LOCKS, host, rootLocks, retainedArtifacts;
30127
+ var import_node_child_process7, import_node_crypto7, import_node_fs6, import_node_os4, import_node_path7, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, BUILD_JOBS, SWIFT_BUILDER_TRANSPORT_MARGIN_MS, SWIFT_BUILDER_DEFAULT_COMPILE_MS, linkedModuleDigests, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, sdkPaths, availableModules, ONE_PRODUCT, SPRITEKIT_PRODUCT, importsSpriteKit, FOUNDATION_IMPLICIT_MODULES, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, EXECUTABLE_LINK_FLAGS, REACTOR_FLAG, MULTI_MANIFEST_VERSION, compilerSourceDigest, DIRECTIVE, OS_IOS, OBJC_ATTRIBUTE, SELECTOR, PROTOCOL_NAME, KEY_PATH, TYPE_AFTER_ATTRIBUTE, DELEGATE_CLASS, REUSABLE_INIT, REUSABLE_VIEW_BASES, CLASS_BASE, FRAME_INIT, APPLE_CLASS, EXTENSION_DECL, CLASS_DECL, MODIFIERS, OVERRIDE_FUNC, OVERRIDE_VAR, APPLE_PROTOCOL, OBJC_PROTOCOL, OBJC_PREPOSITIONS, DECLARATION_MODIFIERS, optionalResult, SDK_OBJC_OPTIONAL, IMP_CONVENTION, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, ROOT_LOCKS, host, rootLocks, retainedArtifacts;
30112
30128
  var init_swift_compile = __esm({
30113
30129
  "src/swift-compile.ts"() {
30114
30130
  "use strict";
@@ -30140,6 +30156,8 @@ var init_swift_compile = __esm({
30140
30156
  BUILD_JOBS = String(
30141
30157
  Math.min(4, Math.max(1, Math.floor(import_node_os4.default.availableParallelism() / 2)))
30142
30158
  );
30159
+ SWIFT_BUILDER_TRANSPORT_MARGIN_MS = 3e5;
30160
+ SWIFT_BUILDER_DEFAULT_COMPILE_MS = 18e5;
30143
30161
  linkedModuleDigests = /* @__PURE__ */ new Map();
30144
30162
  OPTIONAL_FRAMEWORK_DEPENDENCIES = {
30145
30163
  GameplayKit: [],
@@ -30212,7 +30230,7 @@ var init_swift_compile = __esm({
30212
30230
  `;
30213
30231
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
30214
30232
  MULTI_MANIFEST_VERSION = 39;
30215
- compilerSourceDigest = true ? "f4eb526a3d0d01972f3bb179b60c2b10df37c90e90ad1717a3b4946374cdb248" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
30233
+ compilerSourceDigest = true ? "bcd59db8ba588a1eb76c6f08e64f5b5b6acda2e913adef5edd85345fef2c0cc7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
30216
30234
  DIRECTIVE = /^[ \t]*#(?:if|elseif)\b/;
30217
30235
  OS_IOS = /\b(?:os\(\s*iOS\s*\)|targetEnvironment\(\s*simulator\s*\))/g;
30218
30236
  OBJC_ATTRIBUTE = /^@(?:objcMembers\b|objc\b(?:(\s*)\(([^()]*)\))?|IBAction\b)/;
@@ -35638,12 +35656,12 @@ var swift_distribution_lock_default;
35638
35656
  var init_swift_distribution_lock = __esm({
35639
35657
  "src/swift-distribution.lock.json"() {
35640
35658
  swift_distribution_lock_default = {
35641
- id: "e3bdd3d8fa4f9993",
35659
+ id: "ca4dfda0ca14bc49",
35642
35660
  release: "swift-6.4.0-RELEASE-custom-0d775d32d7c74eae",
35643
35661
  wasmSdkId: "swift-6.4.0-RELEASE_wasm-peach-f02bd198",
35644
35662
  wasmSdkUrl: "https://r2.sootsim.com/swift-wasm-sdk/swift-6.4.0-RELEASE_wasm-peach-f02bd198.artifactbundle.tar.gz",
35645
35663
  wasmSdkChecksum: "1e19ea768fd4e821aae34b8966c4ddcee45615c4b3cf018979b061aee2fb5504",
35646
- source: "5791eeff9ca9c054514aeb4a6599e1de8e1e4711",
35664
+ source: "33e8641403dd73a7ce0ca902007e3a36407e1f0b",
35647
35665
  targets: [
35648
35666
  "ImagePlayground",
35649
35667
  "QuickLookThumbnailing",
@@ -35688,6 +35706,7 @@ var init_swift_distribution_lock = __esm({
35688
35706
  "PeachObjCRuntime",
35689
35707
  "PeachObjC",
35690
35708
  "UIUtilities",
35709
+ "UIKitEnums",
35691
35710
  "UIKitCore",
35692
35711
  "PeachICU",
35693
35712
  "PeachCMark",
@@ -35803,33 +35822,14 @@ var init_swift_distribution_lock = __esm({
35803
35822
  "PeachBox2D"
35804
35823
  ],
35805
35824
  systemEnvironment: {
35806
- scenePhase: [
35807
- "string:active",
35808
- "string:inactive",
35809
- "string:background"
35810
- ],
35811
- deviceModel: [
35812
- "string"
35813
- ],
35814
- systemName: [
35815
- "string"
35816
- ],
35817
- systemVersion: [
35818
- "string"
35819
- ],
35820
- colorScheme: [
35821
- "string:light",
35822
- "string:dark"
35823
- ],
35824
- semanticColors: [
35825
- "object"
35826
- ],
35827
- imageAssets: [
35828
- "object"
35829
- ],
35830
- locale: [
35831
- "string"
35832
- ],
35825
+ scenePhase: ["string:active", "string:inactive", "string:background"],
35826
+ deviceModel: ["string"],
35827
+ systemName: ["string"],
35828
+ systemVersion: ["string"],
35829
+ colorScheme: ["string:light", "string:dark"],
35830
+ semanticColors: ["object"],
35831
+ imageAssets: ["object"],
35832
+ locale: ["string"],
35833
35833
  dynamicTypeSize: [
35834
35834
  "string:xSmall",
35835
35835
  "string:small",
@@ -35844,30 +35844,22 @@ var init_swift_distribution_lock = __esm({
35844
35844
  "string:accessibility4",
35845
35845
  "string:accessibility5"
35846
35846
  ],
35847
- horizontalSizeClass: [
35848
- "string:compact",
35849
- "string:regular"
35850
- ],
35851
- verticalSizeClass: [
35852
- "string:compact",
35853
- "string:regular"
35854
- ],
35855
- accessibilityReduceMotion: [
35856
- "bool"
35857
- ]
35847
+ horizontalSizeClass: ["string:compact", "string:regular"],
35848
+ verticalSizeClass: ["string:compact", "string:regular"],
35849
+ accessibilityReduceMotion: ["bool"]
35858
35850
  },
35859
35851
  hosts: {
35860
35852
  "darwin-arm64": {
35861
- sha256: "278cf5301795dd1e9f0f044bdb4e079b45ab4eb72a6e72331b06916115e34902",
35862
- size: 71532233
35853
+ sha256: "8679052c4c2b21ad748a8db40cdbc0c91ab14a29fc06bbed777efb57030c01fa",
35854
+ size: 70963039
35863
35855
  },
35864
35856
  "linux-x64": {
35865
- sha256: "920c6fe08ba45930880fee133a3cb85b310d713a4d60404f29d03555d3df879c",
35866
- size: 71538725
35857
+ sha256: "a1719d844e2f45e8c9a2ccb9dbe7857978918639a3933c225a328d84cae235cf",
35858
+ size: 70968746
35867
35859
  },
35868
35860
  "linux-arm64": {
35869
- sha256: "d3a3421e0c80cc698869bc39dd538d42b0e053db02526d3f5f22acf8e7c6dca9",
35870
- size: 71536749
35861
+ sha256: "3da8f2c920e65c633b5310c778b4a5c54b0f5f8278d58fd109f3db4310794c04",
35862
+ size: 70967077
35871
35863
  }
35872
35864
  }
35873
35865
  };
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/capture-contract.ts
4
4
  var RNX_SCREEN_CAPTURE_VERSION = 1;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
4
  var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-test-args.ts
4
4
  var CLOUD_TEST_ARGS_MAX_COUNT = 32;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (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);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../contrast-runtime-delivery/src/version.ts
4
4
  function isValidRuntimeVersion(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -4614,7 +4614,7 @@ var import_node_module = require("node:module");
4614
4614
  var import_node_path2 = require("node:path");
4615
4615
 
4616
4616
  // runtime-companion.json
4617
- var runtime_companion_default = { abi: 1, sha256: "d58f0fedc3c0065faaafcf578781567b6cdac88e5c062a8354111d37fdf3c465", file: "node/cli-d58f0fedc3c0065faaafcf578781567b6cdac88e5c062a8354111d37fdf3c465.cjs" };
4617
+ var runtime_companion_default = { abi: 1, sha256: "a1b49c57129dd06888a9cdfbb05051be3626e8233980236705a3efd52b651623", file: "node/cli-a1b49c57129dd06888a9cdfbb05051be3626e8233980236705a3efd52b651623.cjs" };
4618
4618
 
4619
4619
  // src/runtime-assets.ts
4620
4620
  var import_fs = __toESM(require("fs"), 1);
@@ -5855,7 +5855,20 @@ var DEFAULT_ORIGIN = peachPublicBrand.origin;
5855
5855
 
5856
5856
  // cli/run-rnx.ts
5857
5857
  var import_node_async_hooks = require("node:async_hooks");
5858
+ var PeachExit = class extends Error {
5859
+ code;
5860
+ reason;
5861
+ constructor(code, reason = null) {
5862
+ super(`peach exited with code ${code}`);
5863
+ this.name = "PeachExit";
5864
+ this.code = code;
5865
+ this.reason = reason;
5866
+ }
5867
+ };
5858
5868
  var sinks = new import_node_async_hooks.AsyncLocalStorage();
5869
+ function peachExit(code, reason) {
5870
+ throw new PeachExit(code, reason);
5871
+ }
5859
5872
 
5860
5873
  // cli/cloud-session.ts
5861
5874
  var MAX_ENCODED_SESSION_BYTES = 32 * 1024;
@@ -8537,6 +8550,7 @@ var LEDGER_PATH2 = import_node_path4.default.join(
8537
8550
  var TICK_MS2 = 500;
8538
8551
  var timers = /* @__PURE__ */ new Set();
8539
8552
  var poll;
8553
+ var pollDueAt = 0;
8540
8554
  function pausedPids() {
8541
8555
  try {
8542
8556
  const ledger = JSON.parse(
@@ -8568,6 +8582,7 @@ function heldRoots(paused, roots) {
8568
8582
  return held;
8569
8583
  }
8570
8584
  function tick() {
8585
+ poll = void 0;
8571
8586
  const now = Date.now();
8572
8587
  const paused = pausedPids();
8573
8588
  const held = paused.length ? heldRoots(paused, new Set([...timers].map((timer) => timer.hostPid))) : /* @__PURE__ */ new Set();
@@ -8579,10 +8594,23 @@ function tick() {
8579
8594
  timer.fire();
8580
8595
  }
8581
8596
  }
8582
- if (timers.size === 0 && poll) {
8583
- clearInterval(poll);
8597
+ schedule();
8598
+ }
8599
+ function schedule() {
8600
+ if (timers.size === 0) {
8601
+ if (poll) clearTimeout(poll);
8584
8602
  poll = void 0;
8603
+ return;
8585
8604
  }
8605
+ const now = Date.now();
8606
+ const soonest = Math.min(
8607
+ ...[...timers].map((timer) => timer.remaining - (now - timer.accountedAt))
8608
+ );
8609
+ const due = now + Math.max(0, Math.min(TICK_MS2, soonest));
8610
+ if (poll && pollDueAt <= due) return;
8611
+ if (poll) clearTimeout(poll);
8612
+ pollDueAt = due;
8613
+ poll = setTimeout(tick, due - now);
8586
8614
  }
8587
8615
  function setPauseAwareTimeout(fn, budgetMs, hostPid) {
8588
8616
  if (hostPid === void 0) {
@@ -8591,15 +8619,10 @@ function setPauseAwareTimeout(fn, budgetMs, hostPid) {
8591
8619
  }
8592
8620
  const timer = { hostPid, remaining: budgetMs, accountedAt: Date.now(), fire: fn };
8593
8621
  timers.add(timer);
8594
- if (!poll) {
8595
- poll = setInterval(tick, TICK_MS2);
8596
- }
8622
+ schedule();
8597
8623
  return () => {
8598
8624
  timers.delete(timer);
8599
- if (timers.size === 0 && poll) {
8600
- clearInterval(poll);
8601
- poll = void 0;
8602
- }
8625
+ schedule();
8603
8626
  };
8604
8627
  }
8605
8628
 
@@ -8625,6 +8648,18 @@ var DisconnectedSimError = class extends Error {
8625
8648
  function disconnectedSavedSimMessage(simId, detail = "") {
8626
8649
  return `saved sim ${simId} is not connected${detail}; commands resume when it reconnects, or run \`peach list\` and \`peach use <sim>\`, or open a fresh sim`;
8627
8650
  }
8651
+ var TIMEOUT_UNIT_MS = { ms: 1, s: 1e3, m: 6e4 };
8652
+ function parseTimeoutMs(value) {
8653
+ const match = /^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(value.trim());
8654
+ const ms = match ? Number(match[1]) * TIMEOUT_UNIT_MS[match[2] ?? "ms"] : NaN;
8655
+ if (!(ms > 0)) {
8656
+ console.error(
8657
+ `--timeout takes a positive duration in milliseconds (or with an ms, s or m suffix), got "${value}"`
8658
+ );
8659
+ peachExit(2);
8660
+ }
8661
+ return ms;
8662
+ }
8628
8663
  var BRIDGE_VALUE_FLAGS_TABLE = [
8629
8664
  {
8630
8665
  names: ["--port", "-p"],
@@ -8639,7 +8674,7 @@ var BRIDGE_VALUE_FLAGS_TABLE = [
8639
8674
  names: ["--timeout"],
8640
8675
  apply: (state, value) => {
8641
8676
  if (value !== void 0) {
8642
- state.commandTimeoutMs = Number(value);
8677
+ state.commandTimeoutMs = parseTimeoutMs(value);
8643
8678
  state.explicitTimeout = true;
8644
8679
  }
8645
8680
  }
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -24314,6 +24314,19 @@ __attribute__((swift_bridge("Swift.String")))
24314
24314
  - (void)appendFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2);
24315
24315
  + (NSMutableString *)stringWithCapacity:(NSUInteger)capacity;
24316
24316
  @end
24317
+ NS_SWIFT_UNAVAILABLE("Use String or NSString instead.")
24318
+ @interface NSSimpleCString : NSString {
24319
+ @package
24320
+ char *bytes;
24321
+ int numBytes;
24322
+ #if __LP64__
24323
+ int _unused;
24324
+ #endif
24325
+ }
24326
+ @end
24327
+ NS_SWIFT_UNAVAILABLE("Use String or NSString instead.")
24328
+ @interface NSConstantString : NSSimpleCString
24329
+ @end
24317
24330
  @interface NSAttributedString : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
24318
24331
  @property (readonly, copy) NSString *string;
24319
24332
  @end
@@ -27285,6 +27298,11 @@ var SWIFTPM_NOISE = /^(?:\[\d+\/\d+\] |Building for production\.\.\.$|warning: '
27285
27298
  var BUILD_JOBS = String(
27286
27299
  Math.min(4, Math.max(1, Math.floor(import_node_os4.default.availableParallelism() / 2)))
27287
27300
  );
27301
+ var SWIFT_BUILDER_TRANSPORT_MARGIN_MS = 3e5;
27302
+ var SWIFT_BUILDER_DEFAULT_COMPILE_MS = 18e5;
27303
+ function swiftBuilderHopTimeoutMs(compileTimeoutMs) {
27304
+ return (compileTimeoutMs ?? SWIFT_BUILDER_DEFAULT_COMPILE_MS) + SWIFT_BUILDER_TRANSPORT_MARGIN_MS;
27305
+ }
27288
27306
  function swiftDistributionAt(root) {
27289
27307
  const file = import_node_path7.default.join(root, SWIFT_DISTRIBUTION_MANIFEST);
27290
27308
  if (!(0, import_node_fs6.existsSync)(file)) return null;
@@ -27673,7 +27691,7 @@ var EXECUTABLE_LINK_FLAGS = ` "-Xclang-linker", "-O0",
27673
27691
  `;
27674
27692
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
27675
27693
  var MULTI_MANIFEST_VERSION = 39;
27676
- var compilerSourceDigest = true ? "f4eb526a3d0d01972f3bb179b60c2b10df37c90e90ad1717a3b4946374cdb248" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
27694
+ var compilerSourceDigest = true ? "bcd59db8ba588a1eb76c6f08e64f5b5b6acda2e913adef5edd85345fef2c0cc7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
27677
27695
  function swiftArtifactHash(input, release, moduleRoot) {
27678
27696
  const hash2 = (0, import_node_crypto7.createHash)("sha256");
27679
27697
  hash2.update(`swift-compile
@@ -32739,7 +32757,7 @@ function compileSwiftProjectUnit(input, options) {
32739
32757
  ],
32740
32758
  {
32741
32759
  cwd: repo,
32742
- timeout: options.timeoutMs,
32760
+ timeout: options.timeoutMs === void 0 ? void 0 : swiftBuilderHopTimeoutMs(options.timeoutMs),
32743
32761
  maxBuffer: 64 * 1024 * 1024,
32744
32762
  signal: options.signal
32745
32763
  },
@@ -34835,12 +34853,12 @@ init_home_paths();
34835
34853
 
34836
34854
  // src/swift-distribution.lock.json
34837
34855
  var swift_distribution_lock_default = {
34838
- id: "e3bdd3d8fa4f9993",
34856
+ id: "ca4dfda0ca14bc49",
34839
34857
  release: "swift-6.4.0-RELEASE-custom-0d775d32d7c74eae",
34840
34858
  wasmSdkId: "swift-6.4.0-RELEASE_wasm-peach-f02bd198",
34841
34859
  wasmSdkUrl: "https://r2.sootsim.com/swift-wasm-sdk/swift-6.4.0-RELEASE_wasm-peach-f02bd198.artifactbundle.tar.gz",
34842
34860
  wasmSdkChecksum: "1e19ea768fd4e821aae34b8966c4ddcee45615c4b3cf018979b061aee2fb5504",
34843
- source: "5791eeff9ca9c054514aeb4a6599e1de8e1e4711",
34861
+ source: "33e8641403dd73a7ce0ca902007e3a36407e1f0b",
34844
34862
  targets: [
34845
34863
  "ImagePlayground",
34846
34864
  "QuickLookThumbnailing",
@@ -34885,6 +34903,7 @@ var swift_distribution_lock_default = {
34885
34903
  "PeachObjCRuntime",
34886
34904
  "PeachObjC",
34887
34905
  "UIUtilities",
34906
+ "UIKitEnums",
34888
34907
  "UIKitCore",
34889
34908
  "PeachICU",
34890
34909
  "PeachCMark",
@@ -35000,33 +35019,14 @@ var swift_distribution_lock_default = {
35000
35019
  "PeachBox2D"
35001
35020
  ],
35002
35021
  systemEnvironment: {
35003
- scenePhase: [
35004
- "string:active",
35005
- "string:inactive",
35006
- "string:background"
35007
- ],
35008
- deviceModel: [
35009
- "string"
35010
- ],
35011
- systemName: [
35012
- "string"
35013
- ],
35014
- systemVersion: [
35015
- "string"
35016
- ],
35017
- colorScheme: [
35018
- "string:light",
35019
- "string:dark"
35020
- ],
35021
- semanticColors: [
35022
- "object"
35023
- ],
35024
- imageAssets: [
35025
- "object"
35026
- ],
35027
- locale: [
35028
- "string"
35029
- ],
35022
+ scenePhase: ["string:active", "string:inactive", "string:background"],
35023
+ deviceModel: ["string"],
35024
+ systemName: ["string"],
35025
+ systemVersion: ["string"],
35026
+ colorScheme: ["string:light", "string:dark"],
35027
+ semanticColors: ["object"],
35028
+ imageAssets: ["object"],
35029
+ locale: ["string"],
35030
35030
  dynamicTypeSize: [
35031
35031
  "string:xSmall",
35032
35032
  "string:small",
@@ -35041,30 +35041,22 @@ var swift_distribution_lock_default = {
35041
35041
  "string:accessibility4",
35042
35042
  "string:accessibility5"
35043
35043
  ],
35044
- horizontalSizeClass: [
35045
- "string:compact",
35046
- "string:regular"
35047
- ],
35048
- verticalSizeClass: [
35049
- "string:compact",
35050
- "string:regular"
35051
- ],
35052
- accessibilityReduceMotion: [
35053
- "bool"
35054
- ]
35044
+ horizontalSizeClass: ["string:compact", "string:regular"],
35045
+ verticalSizeClass: ["string:compact", "string:regular"],
35046
+ accessibilityReduceMotion: ["bool"]
35055
35047
  },
35056
35048
  hosts: {
35057
35049
  "darwin-arm64": {
35058
- sha256: "278cf5301795dd1e9f0f044bdb4e079b45ab4eb72a6e72331b06916115e34902",
35059
- size: 71532233
35050
+ sha256: "8679052c4c2b21ad748a8db40cdbc0c91ab14a29fc06bbed777efb57030c01fa",
35051
+ size: 70963039
35060
35052
  },
35061
35053
  "linux-x64": {
35062
- sha256: "920c6fe08ba45930880fee133a3cb85b310d713a4d60404f29d03555d3df879c",
35063
- size: 71538725
35054
+ sha256: "a1719d844e2f45e8c9a2ccb9dbe7857978918639a3933c225a328d84cae235cf",
35055
+ size: 70968746
35064
35056
  },
35065
35057
  "linux-arm64": {
35066
- sha256: "d3a3421e0c80cc698869bc39dd538d42b0e053db02526d3f5f22acf8e7c6dca9",
35067
- size: 71536749
35058
+ sha256: "3da8f2c920e65c633b5310c778b4a5c54b0f5f8278d58fd109f3db4310794c04",
35059
+ size: 70967077
35068
35060
  }
35069
35061
  }
35070
35062
  };
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bundleGlobalFooter.ts
4
4
  function findBundleFooter(source, prefix) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1653 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;