peachsim 0.1.1808 → 0.1.1811

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 (229) hide show
  1. package/README.md +4 -2
  2. package/cli/app-bundle-resources.ts +15 -2
  3. package/cli/cloud-box-artifact.ts +115 -0
  4. package/cli/cloud-client.ts +95 -53
  5. package/cli/cloud-dispatch.ts +4 -4
  6. package/cli/cloud-session.ts +60 -22
  7. package/cli/commands/box.ts +8 -2
  8. package/cli/commands/compat.ts +7 -4
  9. package/cli/commands/control.ts +60 -3
  10. package/cli/commands/coverage.ts +14 -4
  11. package/cli/commands/daemon.ts +41 -0
  12. package/cli/commands/no-bridge-hint.ts +9 -0
  13. package/cli/commands/package.ts +31 -56
  14. package/cli/commands/platform.ts +70 -52
  15. package/cli/commands/preview.ts +73 -24
  16. package/cli/commands/record.ts +10 -2
  17. package/cli/commands/screenshot.ts +17 -60
  18. package/cli/commands/setup.ts +3 -1
  19. package/cli/commands/three-mode.ts +22 -12
  20. package/cli/commands/upload.ts +2 -1
  21. package/cli/desktop-companion.ts +6 -1
  22. package/cli/drivers/desktop.ts +4 -1
  23. package/cli/main.ts +12 -2
  24. package/cli/metro-bundle-assets.ts +14 -4
  25. package/cli/outbound-endpoints.ts +7 -3
  26. package/cli/output-redaction.ts +38 -0
  27. package/cli/privacy.ts +2 -2
  28. package/cli/recording-access.ts +5 -0
  29. package/cli/remote-project-bundle.ts +83 -0
  30. package/cli/shell-init.ts +7 -11
  31. package/cli/telemetry.ts +41 -4
  32. package/cli/usage-error.ts +3 -0
  33. package/cli/ws-bridge.ts +42 -6
  34. package/dist-lib/agent-daemon-client.cjs +1 -1
  35. package/dist-lib/agent-events.cjs +1 -1
  36. package/dist-lib/attached-projects.cjs +1 -1
  37. package/dist-lib/auth/shared-session.cjs +1 -1
  38. package/dist-lib/backend-origin.cjs +1 -1
  39. package/dist-lib/beta.cjs +1 -1
  40. package/dist-lib/beta.mjs +1 -1
  41. package/dist-lib/bridge-constants.cjs +1 -1
  42. package/dist-lib/bridge-contract-input.cjs +1 -1
  43. package/dist-lib/bridge-contract-input.mjs +1 -1
  44. package/dist-lib/bridge-contract.cjs +1 -1
  45. package/dist-lib/bridge-contract.mjs +1 -1
  46. package/dist-lib/bundle-channel.cjs +42783 -40717
  47. package/dist-lib/capture-contract.cjs +7 -8
  48. package/dist-lib/capture-contract.mjs +7 -8
  49. package/dist-lib/cloud-contract.cjs +1 -1
  50. package/dist-lib/cloud-contract.mjs +1 -1
  51. package/dist-lib/cloud-test-args.cjs +1 -1
  52. package/dist-lib/cloud-test-args.mjs +1 -1
  53. package/dist-lib/cloud.cjs +1 -1
  54. package/dist-lib/cloud.mjs +1 -1
  55. package/dist-lib/config.cjs +1 -1
  56. package/dist-lib/config.mjs +1 -1
  57. package/dist-lib/detox/index.cjs +13 -7
  58. package/dist-lib/dev-bundle-resolution.cjs +10 -4
  59. package/dist-lib/expo-swift-bundle.cjs +15819 -15559
  60. package/dist-lib/expo-swift-metadata.cjs +2 -1
  61. package/dist-lib/expo-swift-metadata.mjs +2 -1
  62. package/dist-lib/home-paths.cjs +2 -33
  63. package/dist-lib/host/bridge-host.cjs +20857 -18756
  64. package/dist-lib/host/fetch-proxy-handler.cjs +10 -10
  65. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  66. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  67. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  68. package/dist-lib/host/websocket-proxy.cjs +1 -1
  69. package/dist-lib/index.cjs +588 -544
  70. package/dist-lib/jump-to-source-babel.cjs +1 -1
  71. package/dist-lib/jump-to-source-native.cjs +1 -1
  72. package/dist-lib/kotlin-host.cjs +1 -1
  73. package/dist-lib/menu.cjs +1 -1
  74. package/dist-lib/menu.mjs +1 -1
  75. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  76. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  77. package/dist-lib/metro-production-bundle.cjs +1 -1
  78. package/dist-lib/metro-production-bundle.mjs +1 -1
  79. package/dist-lib/metro.cjs +25 -19
  80. package/dist-lib/native-app-identity-project.cjs +15 -6
  81. package/dist-lib/native-app-identity-project.mjs +23 -12
  82. package/dist-lib/native-app-identity.cjs +1 -1
  83. package/dist-lib/native-app-identity.mjs +1 -1
  84. package/dist-lib/native-firebase-metadata.cjs +1 -1
  85. package/dist-lib/native-firebase-metadata.mjs +1 -1
  86. package/dist-lib/pdfium-raster.cjs +1 -1
  87. package/dist-lib/pdfium-raster.mjs +1 -1
  88. package/dist-lib/plist.cjs +1 -1
  89. package/dist-lib/plist.mjs +1 -1
  90. package/dist-lib/profiles.cjs +1 -1
  91. package/dist-lib/public-brand.cjs +1 -1
  92. package/dist-lib/public-origins-lib-esm.json +27 -26
  93. package/dist-lib/public-origins-lib.json +104 -81
  94. package/dist-lib/react-native-host-modules.cjs +1 -1
  95. package/dist-lib/react-native-host-modules.mjs +1 -1
  96. package/dist-lib/reap-browser.cjs +1 -1
  97. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  98. package/dist-lib/sdk.cjs +1 -1
  99. package/dist-lib/sdk.mjs +1 -1
  100. package/dist-lib/skills.cjs +30496 -24309
  101. package/dist-lib/swift-compile.cjs +292 -213
  102. package/dist-lib/swift-compile.mjs +334 -254
  103. package/dist-lib/swift-package.cjs +8 -4
  104. package/dist-lib/swift-package.mjs +8 -4
  105. package/dist-lib/swift-submit.cjs +1 -1
  106. package/dist-lib/swift-submit.mjs +1 -1
  107. package/dist-lib/swift-toolchain.cjs +32 -1
  108. package/dist-lib/swift.cjs +1 -1
  109. package/dist-lib/vite-swift.cjs +19172 -18941
  110. package/dist-lib/vite.cjs +11 -11
  111. package/dist-lib/worklet-executable.cjs +1 -1
  112. package/dist-lib/worklet-executable.mjs +1 -1
  113. package/dist-types/packages/peach-engine/src/engine/animated.d.ts +4 -0
  114. package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +1 -0
  115. package/dist-types/packages/peach-engine/src/engine/expo-manifest.d.ts +1 -0
  116. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -1
  117. package/dist-types/packages/peach-engine/src/preview/upload-protocol.d.ts +1 -0
  118. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +8 -1
  119. package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +2 -1
  120. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  121. package/kotlin/sdk.tar.gz +0 -0
  122. package/package.json +1 -1
  123. package/runtime-companion.json +1 -1
  124. package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCall.h +1 -1
  125. package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCallCenter.h +1 -1
  126. package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCarrier.h +1 -1
  127. package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h +1 -1
  128. package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriberInfo.h +1 -1
  129. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h +1 -1
  130. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h +1 -1
  131. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionItem.h +1 -1
  132. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/AVFoundation+MPNowPlayingInfoLanguageOptionAdditions.h +39 -0
  133. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/AVPlayerItem+MediaPlayerAdditions.h +26 -0
  134. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPContentItem.h +67 -0
  135. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPError.h +33 -0
  136. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaEntity.h +53 -0
  137. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h +346 -0
  138. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h +42 -0
  139. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h +76 -0
  140. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPickerController.h +64 -0
  141. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlayback.h +47 -0
  142. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h +82 -0
  143. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h +120 -0
  144. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuerySection.h +26 -0
  145. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerController.h +444 -0
  146. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerViewController.h +43 -0
  147. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerApplicationController.h +47 -0
  148. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerController.h +147 -0
  149. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerQueueDescriptor.h +75 -0
  150. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoCenter.h +197 -0
  151. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoLanguageOption.h +107 -0
  152. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingSession.h +89 -0
  153. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentDataSource.h +59 -0
  154. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentDelegate.h +64 -0
  155. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentManager.h +46 -0
  156. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentManagerContext.h +32 -0
  157. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommand.h +143 -0
  158. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommandCenter.h +66 -0
  159. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommandEvent.h +128 -0
  160. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteControlTypes.h +27 -0
  161. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeSettings.h +20 -0
  162. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeView.h +82 -0
  163. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.apinotes +74 -0
  164. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.h +40 -0
  165. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h +84 -0
  166. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/NSUserActivity+MediaPlayerAdditions.h +20 -0
  167. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Modules/module.modulemap +5 -0
  168. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityCustomRotor.h +2 -2
  169. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +1 -1
  170. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBackgroundConfiguration.h +1 -1
  171. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIButtonConfiguration.h +1 -1
  172. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h +1 -1
  173. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h +1 -1
  174. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h +1 -1
  175. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +1 -1
  176. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerStyle.h +5 -5
  177. package/sdk/ios/usr/include/dispatch.modulemap +22 -0
  178. package/sdk/ios/usr/include/net/if.h +24 -0
  179. package/sdk/ios/usr/include/sys/time.h +1 -1
  180. package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +265 -0
  181. package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -0
  182. package/sdk/ios/wasm/include/fcntl.h +2 -0
  183. package/sdk/ios/wasm/include/pthread.h +3 -0
  184. package/sdk/ios/wasm/include/stdlib.h +2 -0
  185. package/sdk/ios/wasm/include/unistd.h +2 -2
  186. package/skills/contrast/SKILL.md +2 -2
  187. package/src/bundle-channel.mjs +9 -72
  188. package/src/capture-contract.ts +12 -9
  189. package/src/desktop-host-delivery.ts +16 -2
  190. package/src/dev-bundle-resolution.ts +12 -3
  191. package/src/expo-native-workspace.ts +57 -19
  192. package/src/expo-swift-host.ts +17 -12
  193. package/src/expo-swift-ready.ts +4 -1
  194. package/src/expoSwiftContract.ts +1 -0
  195. package/src/home-paths.ts +4 -48
  196. package/src/host/bridge-host.ts +1 -0
  197. package/src/installed-native-libraries.ts +2 -8
  198. package/src/metro-project-root.ts +2 -1
  199. package/src/native-bundles.ts +122 -0
  200. package/src/native-static-libraries.ts +65 -8
  201. package/src/nitro-adapter.lock.json +278 -278
  202. package/src/nitro-bundle.ts +2 -2
  203. package/src/nitro-compile.ts +68 -28
  204. package/src/nitro-source.ts +24 -6
  205. package/src/nitro-superset.lock.json +94 -34
  206. package/src/nitroContract.ts +2 -0
  207. package/src/podspec-sources.ts +1966 -0
  208. package/src/storageSnapshotContract.ts +40 -0
  209. package/src/swift-compile.ts +57 -20
  210. package/src/swift-design-time.ts +18 -1
  211. package/src/swift-distribution.lock.json +11 -11
  212. package/src/swift-distribution.ts +9 -6
  213. package/src/swift-host.ts +1 -2
  214. package/src/swift-objc-standin.ts +316 -112
  215. package/src/swift-package-manifest.ts +4 -3
  216. package/src/swift-package.ts +10 -3
  217. package/src/swift-root-lock.ts +11 -0
  218. package/src/swift-shared-sdk.ts +10 -9
  219. package/src/swift-source-pods.ts +2 -2
  220. package/src/swift-standins.ts +40 -143
  221. package/src/swift-toolchain.ts +42 -0
  222. package/src/swift-wasm-prune.ts +53 -21
  223. package/src/turbo-bundle.ts +2 -2
  224. package/src/turbo-codegen-intake.ts +111 -108
  225. package/src/turbo-compile.ts +63 -33
  226. package/src/turbo-runtime.lock.json +21 -21
  227. package/src/turbo-source.ts +171 -76
  228. package/src/wasm-optimize.ts +31 -2
  229. package/src/xcode-project.ts +36 -3
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1808 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1811 | (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;
@@ -185,7 +185,7 @@ var import_node_module = require("node:module");
185
185
  var import_node_path2 = require("node:path");
186
186
 
187
187
  // runtime-companion.json
188
- var runtime_companion_default = { abi: 1, sha256: "b75c5cdfbd95172e0c2434d6acfda5bc5940f1960123f07cdee4ad9a17b274f3", file: "node/cli-b75c5cdfbd95172e0c2434d6acfda5bc5940f1960123f07cdee4ad9a17b274f3.cjs" };
188
+ var runtime_companion_default = { abi: 1, sha256: "77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7", file: "node/cli-77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7.cjs" };
189
189
 
190
190
  // src/runtime-assets.ts
191
191
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -257,7 +257,7 @@ function readDaemonLockfile() {
257
257
  const bytesRead = import_node_fs.default.readSync(fd, buf, 0, DAEMON_LOCKFILE_MAX_BYTES, 0);
258
258
  const raw = buf.subarray(0, bytesRead).toString("utf8");
259
259
  const parsed = JSON.parse(raw);
260
- if (parsed && parsed.schema === 1 && typeof parsed.pid === "number" && typeof parsed.bridgePort === "number" && typeof parsed.runtimePort === "number" && typeof parsed.startedAt === "number" && typeof parsed.heartbeatAt === "number" && (parsed.servedRuntimes === void 0 || Array.isArray(parsed.servedRuntimes) && parsed.servedRuntimes.every((version) => typeof version === "string"))) {
260
+ if (parsed && parsed.schema === 1 && typeof parsed.pid === "number" && typeof parsed.bridgePort === "number" && typeof parsed.runtimePort === "number" && typeof parsed.startedAt === "number" && typeof parsed.heartbeatAt === "number" && (parsed.cliVersion === void 0 || typeof parsed.cliVersion === "string") && (parsed.servedRuntimes === void 0 || Array.isArray(parsed.servedRuntimes) && parsed.servedRuntimes.every((version) => typeof version === "string"))) {
261
261
  return parsed;
262
262
  }
263
263
  return null;
@@ -1007,7 +1007,6 @@ var LAZY_STUB_PATTERNS = [
1007
1007
  "clevertap-react-native",
1008
1008
  "expo-dynamic-app-icon",
1009
1009
  "expo-health-connect",
1010
- "expo-in-app-updates",
1011
1010
  "expo-mesh-gradient",
1012
1011
  "expo-modules-core",
1013
1012
  "expo-superwall",
@@ -1712,6 +1711,7 @@ var LIGHT_NATIVE_PACKAGE_NAMES = [
1712
1711
  "react-native-installed-app-checker",
1713
1712
  "react-native-is-detox",
1714
1713
  "react-native-is-keyboard-connected",
1714
+ "react-native-is-maestro",
1715
1715
  "react-native-keyboard-input",
1716
1716
  "react-native-khipu",
1717
1717
  "react-native-klarna-inapp-sdk",
@@ -3756,12 +3756,6 @@ var COMPAT_STUBS = {
3756
3756
  runtimeTier: "none",
3757
3757
  buildResolvers: ["vite"]
3758
3758
  },
3759
- expoInAppUpdates: {
3760
- specifier: "expo-in-app-updates",
3761
- stubFile: "noop-sdks-extra/expo-in-app-updates.ts",
3762
- runtimeTier: "none",
3763
- buildResolvers: ["vite"]
3764
- },
3765
3759
  expoSuperwall: {
3766
3760
  specifier: "expo-superwall",
3767
3761
  stubFile: "noop-sdks-extra/expo-superwall.ts",
@@ -4245,6 +4239,12 @@ async function fetchDevManifest(baseUrl, pageOrigin, options = {}) {
4245
4239
  }
4246
4240
  }
4247
4241
  }
4242
+ async function metroRequestFailure(request, url, response) {
4243
+ const detail = (await response.text()).trim().slice(0, 2e3);
4244
+ return new Error(
4245
+ `Metro ${request} request failed: HTTP ${response.status} at ${url}/${detail ? `: ${detail}` : ""}`
4246
+ );
4247
+ }
4248
4248
 
4249
4249
  // src/kotlinDiscoveryContract.ts
4250
4250
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -4746,7 +4746,7 @@ async function resolveMetroProjectRoot(bundleUrl, manifestProjectRoot, options =
4746
4746
  }
4747
4747
  if (typeof root === "string" && root.length > 0) return root;
4748
4748
  } else if (res.status !== 404 && res.status !== 405) {
4749
- throw new Error(`Metro project root request failed: HTTP ${res.status} at ${origin}/`);
4749
+ throw await metroRequestFailure("project root", origin, res);
4750
4750
  }
4751
4751
  if (servedManifest || !metroRunning) return null;
4752
4752
  const port = Number(new URL(origin).port);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1808 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1811 | (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.1808 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1811 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -135,6 +135,10 @@ export interface TimingConfig {
135
135
  delay?: number;
136
136
  useNativeDriver?: boolean;
137
137
  graph?: boolean;
138
+ keyframes?: {
139
+ inputRange: number[];
140
+ outputRange: number[];
141
+ };
138
142
  }
139
143
  export declare function setLockstepCaptureActive(active: boolean): void;
140
144
  export declare function timing(value: AnimatedValue, config: TimingConfig): Animation;
@@ -124,6 +124,7 @@ export declare function isNativeAnimationGraphNode(value: unknown, limits: {
124
124
  maxDepth: number;
125
125
  maxCollection: number;
126
126
  }, depth?: number): value is NativeAnimationGraphNode;
127
+ export declare function samplePiecewiseLinear(input: number, inputRange: number[], outputRange: number[], clamp: boolean): number;
127
128
  export declare function cubicBezierAxisAt(t: number, p1: number, p2: number): number;
128
129
  export declare const CUBIC_BEZIER_IDENTITY_X1: number;
129
130
  export declare const CUBIC_BEZIER_IDENTITY_X2: number;
@@ -3,3 +3,4 @@ export declare function expoConfigFromManifest(manifest: unknown): Record<string
3
3
  export declare function resolvedExpoAppIconUrl(config: Record<string, unknown> | null, platform: string, bundleUrl: string): string | undefined;
4
4
  export declare function setExpoAppIconArtwork(artwork: NativeAppIconArtwork | undefined): void;
5
5
  export declare function getExpoAppIconArtwork(): NativeAppIconArtwork | undefined;
6
+ export declare function presentLoopbackHostMetadata(manifest: unknown): unknown;
@@ -362,7 +362,7 @@ export declare function looksLikeSvgBytes(bytes: Uint8Array): boolean;
362
362
  export declare const queuedImageLoads: Set<SootSimNode>;
363
363
  export declare function queueImageLoad(node: SootSimNode): void;
364
364
  export declare function kickQueuedImageLoads(): void;
365
- export declare function hasImageLoadInFlight(): boolean;
365
+ export declare function hasImageLoadInFlight(root?: SootSimNode): boolean;
366
366
  export declare function loadImageForNode(node: SootSimNode, ctx?: RenderContext): void;
367
367
  export declare function drawsLiveImage(node: SootSimNode): boolean;
368
368
  export declare function touchPaintedImage(node: SootSimNode, ctx: RenderContext): void;
@@ -151,6 +151,7 @@ export type PreviewUploadFinalizeRequest = {
151
151
  export type PreviewUploadFinalizeResponse = {
152
152
  id: string;
153
153
  url: string;
154
+ shortUrl: string;
154
155
  contentHash?: string;
155
156
  filesStored?: number;
156
157
  thumbnailKey?: string;
@@ -252,6 +252,13 @@ export interface WorkletHostValueUpdate {
252
252
  }
253
253
  export declare function registerWorkletHostValueCodec<T extends object, D>(name: string, codec: WorkletHostValueCodec<T, D>): void;
254
254
  export declare function markWorkletHostValue<T extends object>(target: T, codec: string): T;
255
+ export interface PackedWorkletHostValue {
256
+ codec: string;
257
+ data: unknown;
258
+ }
259
+ export declare function isWorkletHostValue(value: unknown): value is object;
260
+ export declare function packWorkletHostValue(value: object, carrier?: WorkletRuntime): PackedWorkletHostValue;
261
+ export declare function unpackWorkletHostValue(packed: PackedWorkletHostValue): object;
255
262
  export interface CustomSerializableRegistration {
256
263
  name: string;
257
264
  determine: (value: object) => boolean;
@@ -743,7 +750,7 @@ export declare class WorkletRuntime {
743
750
  readDecodedSlot(id: number): number | null | undefined;
744
751
  private storeSlot;
745
752
  writeSlot(id: number, value: unknown, skipNotify?: boolean): boolean;
746
- writeSlotsSeqlocked(versionSlot: number, writes: readonly number[], notifyLocal?: boolean, notifyPeer?: boolean): void;
753
+ writeSlotsSeqlocked(versionSlot: number, writes: readonly number[], notifyLocal?: boolean, notifyPeer?: boolean, wake?: boolean): void;
747
754
  readDemandEpoch(): number;
748
755
  waitForSlotDemand(expected: number): PromiseLike<unknown> | null;
749
756
  private bumpDemandEpoch;
@@ -6,7 +6,8 @@ export interface SootSimElectronBridge {
6
6
  homeAppStorage?(bundleUrl: string): Promise<PeachHomeStorageValue[]>;
7
7
  captureScreen(full?: boolean): Promise<string | null>;
8
8
  captureVideo(): Promise<unknown>;
9
- presentationMode?: 'window' | 'grid';
9
+ presentationMode?: 'window' | 'grid' | 'workspace';
10
+ onPresentationModeChange?(callback: () => void): () => void;
10
11
  getPlatform?(): string;
11
12
  shouldOfferCliInstall?(): Promise<boolean>;
12
13
  installCli?(): Promise<{
@@ -117,6 +117,7 @@ export interface TabBarMinimizeState {
117
117
  export interface BottomTabBarProps {
118
118
  tabs: readonly BottomTabBarItem[];
119
119
  activeIndex: number;
120
+ nativeFamily?: 'uikit' | 'swiftui';
120
121
  hidden?: boolean;
121
122
  visibilityAnimationEnabled?: boolean;
122
123
  onTabPress: (index: number) => boolean | void;
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.1808",
3
+ "version": "0.1.1811",
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":"b75c5cdfbd95172e0c2434d6acfda5bc5940f1960123f07cdee4ad9a17b274f3","file":"node/cli-b75c5cdfbd95172e0c2434d6acfda5bc5940f1960123f07cdee4ad9a17b274f3.cjs"}
1
+ {"abi":1,"sha256":"77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7","file":"node/cli-77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7.cjs"}
@@ -19,7 +19,7 @@ CORETELEPHONY_EXTERN NSString * const CTCallStateConnected __OSX_AVAILABLE_BUT_
19
19
  CORETELEPHONY_EXTERN NSString * const CTCallStateDisconnected __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_NA, __MAC_NA, __IPHONE_4_0, __IPHONE_10_0, "Obsolete and will be a useless stub before final removal. Replaced by <CallKit/CXCall.h> properties");
20
20
 
21
21
  CORETELEPHONY_CLASS_DEPRECATED(4_0, 10_0, "Obsolete and will be a useless stub before final removal. Replaced by <CallKit/CXCall.h> properties")
22
- @interface CTCall : NSObject
22
+ PEACH_SWIFT_CLASS(CoreTelephony) @interface CTCall : NSObject
23
23
  {
24
24
  @private
25
25
  NSString *_callState;
@@ -16,7 +16,7 @@
16
16
  NS_ASSUME_NONNULL_BEGIN
17
17
 
18
18
  CORETELEPHONY_CLASS_DEPRECATED(4_0, 10_0, "Obsolete and will be a useless stub before final removal. Replaced by <CallKit/CXCallObserver.h>")
19
- @interface CTCallCenter : NSObject
19
+ PEACH_SWIFT_CLASS(CoreTelephony) @interface CTCallCenter : NSObject
20
20
 
21
21
  /*
22
22
  * currentCalls
@@ -14,7 +14,7 @@
14
14
  NS_ASSUME_NONNULL_BEGIN
15
15
 
16
16
  CORETELEPHONY_CLASS_DEPRECATED(4_0, 16_0, "Deprecated with no replacement")
17
- @interface CTCarrier : NSObject
17
+ PEACH_SWIFT_CLASS(CoreTelephony) @interface CTCarrier : NSObject
18
18
 
19
19
  /*
20
20
  * carrierName
@@ -33,7 +33,7 @@ API_AVAILABLE(ios(12.1)) API_UNAVAILABLE(macCatalyst, watchos) API_UNAVAILABLE(m
33
33
  @end
34
34
 
35
35
  CORETELEPHONY_CLASS_AVAILABLE(7_0) API_UNAVAILABLE(macCatalyst, watchos) API_UNAVAILABLE(macos, tvos)
36
- @interface CTSubscriber : NSObject
36
+ PEACH_SWIFT_CLASS(CoreTelephony) @interface CTSubscriber : NSObject
37
37
 
38
38
  /*
39
39
  * carrierToken
@@ -16,7 +16,7 @@
16
16
  NS_ASSUME_NONNULL_BEGIN
17
17
 
18
18
  CORETELEPHONY_CLASS_AVAILABLE(6_0) API_UNAVAILABLE(macCatalyst, watchos) API_UNAVAILABLE(macos, tvos)
19
- @interface CTSubscriberInfo : NSObject
19
+ PEACH_SWIFT_CLASS(CoreTelephony) @interface CTSubscriberInfo : NSObject
20
20
 
21
21
  + (NSArray<CTSubscriber *> *)subscribers
22
22
  API_AVAILABLE(ios(12.1))
@@ -804,7 +804,7 @@ typedef NS_OPTIONS(NSUInteger, NSBinarySearchingOptions) {
804
804
  - (instancetype)initWithArray:(NSArray<ObjectType> *)array copyItems:(BOOL)flag;
805
805
 
806
806
  /* Reads array stored in NSPropertyList format from the specified url. */
807
- - (nullable NSArray<ObjectType> *)initWithContentsOfURL:(NSURL *)url error:(NSError **)error API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0));
807
+ - (nullable NSArray<ObjectType> *)initWithContentsOfURL:(NSURL *)url error:(NSError **)error API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0)) NS_REFINED_FOR_SWIFT;
808
808
  /* Reads array stored in NSPropertyList format from the specified url. */
809
809
  + (nullable NSArray<ObjectType> *)arrayWithContentsOfURL:(NSURL *)url error:(NSError **)error API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0)) NS_SWIFT_UNAVAILABLE("Use initializer instead");
810
810
 
@@ -559,7 +559,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
559
559
  /// The dictionary representation in the file identified by `url` must contain only property list objects (``NSString``, ``NSData``, ``NSDate``, ``NSNumber``, ``NSArray``, or ``NSDictionary`` objects). For more details, see [Property List Programming Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/PropertyLists/Introduction/Introduction.html#//apple_ref/doc/uid/10000048i). The objects contained by this dictionary are immutable, even if the dictionary is mutable.
560
560
  ///
561
561
  /// In Swift, this initializer throws if there is an error loading the URL, or if the contents of the resource are an invalid representation of a dictionary.
562
- - (nullable NSDictionary<NSString *, ObjectType> *)initWithContentsOfURL:(NSURL *)url error:(NSError **)error API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0));
562
+ - (nullable NSDictionary<NSString *, ObjectType> *)initWithContentsOfURL:(NSURL *)url error:(NSError **)error API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0)) NS_REFINED_FOR_SWIFT;
563
563
 
564
564
  /// Creates a dictionary using the keys and values found in a resource specified by a given URL.
565
565
  ///
@@ -11,7 +11,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
11
11
 
12
12
  /// An immutable collection of values representing different aspects of an item for an extension to act upon.
13
13
  API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0))
14
- @interface NSExtensionItem : NSObject<NSCopying, NSSecureCoding>
14
+ PEACH_SWIFT_CLASS(PeachFoundation) @interface NSExtensionItem : NSObject<NSCopying, NSSecureCoding>
15
15
 
16
16
  /// An optional title for the item.
17
17
  @property(nullable, copy, NS_NONATOMIC_IOSONLY) NSAttributedString *attributedTitle;
@@ -0,0 +1,39 @@
1
+ //
2
+ // AVFoundation+MPNowPlayingInfoLanguageOptionAdditions.h
3
+ // MobileMusicPlayer
4
+ //
5
+ // Copyright © 2015 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <MediaPlayer/MediaPlayerDefines.h>
9
+
10
+ #import <AVFoundation/AVFoundation.h>
11
+ #import <AVFoundation/AVMediaSelectionGroup.h>
12
+ #import <AVFoundation/AVMediaSelection.h>
13
+ #import <AVFoundation/AVMediaFormat.h>
14
+
15
+ NS_ASSUME_NONNULL_BEGIN
16
+
17
+ @class MPNowPlayingInfoLanguageOption, MPNowPlayingInfoLanguageOptionGroup;
18
+
19
+ /// Category for creating language options from AV types
20
+ @interface AVMediaSelectionOption (MPNowPlayingInfoLanguageOptionAdditions)
21
+
22
+ /// Will create a language option from the AVMediaSelectionOption
23
+ /// Returns nil if the AVMediaSelectionOption does not represent an Audible or Legible selection option.
24
+ - (nullable MPNowPlayingInfoLanguageOption *)makeNowPlayingInfoLanguageOption;
25
+
26
+ @end
27
+
28
+ // -----------------------------------------------------------------------------
29
+
30
+ @interface AVMediaSelectionGroup (MPNowPlayingInfoLanguageOptionAdditions)
31
+
32
+ /// Will create a language option group from the AVMediaSelectionGroup
33
+ /// Any AVMediaSelectionOptions in the AVMediaSelectionGroup not representing
34
+ /// Audible or Legible selection options will be ignored.
35
+ - (MPNowPlayingInfoLanguageOptionGroup *)makeNowPlayingInfoLanguageOptionGroup;
36
+
37
+ @end
38
+
39
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,26 @@
1
+ //
2
+ // AVPlayerItem+MPAdditions.h
3
+ // MediaPlayer
4
+ //
5
+ // Copyright © 2022 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <MediaPlayer/MediaPlayerDefines.h>
9
+ #import <AVFoundation/AVPlayerItem.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ MP_UNAVAILABLE_BEGIN(watchos, macos)
14
+
15
+ @interface AVPlayerItem (MPAdditions)
16
+
17
+ /// The current now playing info for the player item.
18
+ /// Setting the info to nil will clear it.
19
+ @property (nonatomic, copy, nullable) NSDictionary<NSString *, id> *nowPlayingInfo MP_API(ios(16.0), tvos(16.0));
20
+
21
+ @end
22
+
23
+ MP_UNAVAILABLE_END
24
+
25
+ NS_ASSUME_NONNULL_END
26
+
@@ -0,0 +1,67 @@
1
+ //
2
+ // MPContentItem.h
3
+ // MobileMusicPlayer
4
+ //
5
+ // Copyright (c) 2013 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <MediaPlayer/MediaPlayerDefines.h>
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @class MPMediaItemArtwork;
14
+
15
+ /// MPContentItem represents high-level metadata for a particular media item for
16
+ /// representation outside the client application. Examples of media items that a
17
+ /// developer might want to represent include song files, streaming audio URLs,
18
+ /// or radio stations.
19
+ MP_API(ios(7.1), tvos(7.1), macos(10.12.2))
20
+ API_UNAVAILABLE(watchos)
21
+ @interface MPContentItem : NSObject
22
+
23
+ /// Designated initializer. A unique identifier is required to identify the item
24
+ /// for later use.
25
+ - (instancetype)initWithIdentifier:(NSString *)identifier NS_DESIGNATED_INITIALIZER;
26
+
27
+ /// A unique identifier for this content item. (Required)
28
+ @property (nonatomic, copy, readonly) NSString *identifier;
29
+
30
+ /// A title for this item. Usually this would be the track name, if representing
31
+ /// a song, the episode name of a podcast, etc.
32
+ @property (nonatomic, copy, nullable) NSString *title;
33
+
34
+ /// A subtitle for this item. If this were representing a song, this would
35
+ /// usually be the artist or composer.
36
+ @property (nonatomic, copy, nullable) NSString *subtitle;
37
+
38
+ /// Artwork for this item. Examples of artwork for a content item are the album
39
+ /// cover for a song, or a movie poster for a movie.
40
+ @property (nonatomic, strong, nullable) MPMediaItemArtwork *artwork;
41
+
42
+ /// Represents the current playback progress of the item.
43
+ /// 0.0 = not watched/listened/viewed, 1.0 = fully watched/listened/viewed
44
+ /// Default is -1.0 (no progress indicator shown)
45
+ @property (nonatomic, assign) float playbackProgress;
46
+
47
+ /// Represents whether this content item is streaming content, i.e. from the cloud
48
+ /// where the content is not stored locally.
49
+ @property (nonatomic, assign, getter = isStreamingContent) BOOL streamingContent MP_API(ios(10.0), tvos(10.0), macos(10.12.2));
50
+
51
+ /// Represents whether this content item is explicit content
52
+ @property (nonatomic, assign, getter = isExplicitContent) BOOL explicitContent MP_API(ios(10.0), tvos(10.0), macos(10.12.2));
53
+
54
+ /// Represents whether the content item is a container that may contain other
55
+ /// content items, e.g. an album or a playlist.
56
+ @property (nonatomic, assign, getter = isContainer) BOOL container;
57
+
58
+ /// Represents whether the content item is actionable from a playback
59
+ /// perspective. Albums are playable, for example, because selecting an album
60
+ /// for playback means the app should play each song in the album in order. An
61
+ /// example of a content item that may not be playable is a genre, since an app
62
+ /// experience typically doesn't involve selecting an entire genre for playback.
63
+ @property (nonatomic, assign, getter = isPlayable) BOOL playable;
64
+
65
+ @end
66
+
67
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,33 @@
1
+ //
2
+ // MPError.h
3
+ // MediaPlayer
4
+ //
5
+ // Copyright © 2015 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <MediaPlayer/MediaPlayerDefines.h>
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ MP_EXTERN NSString * const MPErrorDomain MP_API(ios(9.3), tvos(9.0), watchos(5.0), macos(10.12.2));
14
+
15
+ // error codes for the MPErrorDomain
16
+ typedef NS_ENUM(NSInteger, MPErrorCode) {
17
+ MPErrorUnknown = 0,
18
+ // the user has not granted permission for this request.
19
+ MPErrorPermissionDenied = 1,
20
+ // the user has not enabled this capability
21
+ MPErrorCloudServiceCapabilityMissing = 2,
22
+ // the device could not connect to the network
23
+ MPErrorNetworkConnectionFailed = 3,
24
+ // the id could not be found in the current storefront
25
+ MPErrorNotFound = 4,
26
+ // the request is not supported (ex: trying to add items to a smart playlist)
27
+ MPErrorNotSupported = 5,
28
+ // the request was cancelled before it could complete
29
+ MPErrorCancelled MP_API(ios(10.1), tvos(10.1), watchos(5.0), macos(10.14.2)) = 6,
30
+ MPErrorRequestTimedOut MP_API(ios(10.3), tvos(10.3), watchos(5.0), macos(10.14.2)) = 7,
31
+ } MP_API(ios(9.3), tvos(9.0), watchos(5.0), macos(10.14.2));
32
+
33
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,53 @@
1
+ //
2
+ // MPMediaEntity.h
3
+ // MediaPlayer
4
+ //
5
+ // Copyright 2010 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #import <MediaPlayer/MediaPlayerDefines.h>
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @class MPMediaLibrary;
14
+
15
+ typedef uint64_t MPMediaEntityPersistentID;
16
+
17
+ // An MPMediaEntity represents an abstract member of an MPMediaLibrary.
18
+ // Concrete subclasses are MPMediaItem and MPMediaItemCollection.
19
+
20
+ MP_API(ios(4.2), tvos(14.0))
21
+ API_UNAVAILABLE(watchos, macos)
22
+ @interface MPMediaEntity : NSObject <NSSecureCoding>
23
+
24
+ // Returns YES for properties which can be used to construct MPMediaPropertyPredicates.
25
+ + (BOOL)canFilterByProperty:(NSString *)property;
26
+
27
+ // Executes a provided block with the fetched values for the given item properties, or nil if no value is available for a property.
28
+ // In some cases, enumerating the values for multiple properties can be more efficient than fetching each individual property with -valueForProperty:.
29
+ - (void)enumerateValuesForProperties:(NSSet<NSString *> *)properties usingBlock:(void (^)(NSString *property, id value, BOOL *stop))block
30
+ MP_API(ios(4.0))
31
+ API_UNAVAILABLE(tvos, watchos, macos);
32
+
33
+ // Read-only support for Objective-C subscripting syntax with MPMediaEntity property constants.
34
+ - (nullable id)objectForKeyedSubscript:(id)key
35
+ MP_API(ios(8.0), tvos(14.0))
36
+ API_UNAVAILABLE(watchos, macos);
37
+
38
+ // Returns the value for the given entity property.
39
+ // MPMediaItem and MPMediaPlaylist have their own properties
40
+ - (nullable id)valueForProperty:(NSString *)property;
41
+
42
+ #pragma mark - Properties
43
+
44
+ MP_EXTERN NSString * const MPMediaEntityPropertyPersistentID // filterable
45
+ MP_API(ios(4.2), tvos(9.0), macos(10.12.2))
46
+ API_UNAVAILABLE(watchos);
47
+ @property (nonatomic, readonly) MPMediaEntityPersistentID persistentID
48
+ MP_API(ios(7.0), tvos(14.0))
49
+ API_UNAVAILABLE(watchos, macos);
50
+
51
+ @end
52
+
53
+ NS_ASSUME_NONNULL_END