peachsim 0.1.1667 → 0.1.1673

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 (178) hide show
  1. package/README.md +1 -1
  2. package/cli/bridge-flow-runner.ts +4 -1
  3. package/cli/commands/coverage-swift.ts +291 -0
  4. package/cli/commands/coverage.ts +168 -24
  5. package/cli/commands/diagnose.ts +1 -19
  6. package/cli/commands/react.ts +3 -18
  7. package/cli/commands/screenshot.ts +1 -1
  8. package/cli/commands/screenshots-capture.ts +1 -1
  9. package/cli/drivers/playwright-provisioning.ts +1 -4
  10. package/cli/drivers/playwright.ts +15 -1
  11. package/cli/scene-video.ts +1 -1
  12. package/cli/ui.ts +20 -0
  13. package/cli/ws-bridge.ts +7 -36
  14. package/detox/frame-identity.cjs +21 -0
  15. package/detox/frame-identity.d.cts +6 -0
  16. package/detox/index.ts +39 -33
  17. package/detox/jest-environment.cjs +4 -1
  18. package/detox/jest-setup-after-env.cjs +0 -4
  19. package/detox/navigation-lifecycle.ts +2 -2
  20. package/detox/proof-observer.ts +126 -0
  21. package/dist-lib/agent-daemon-client.cjs +29 -1
  22. package/dist-lib/agent-events.cjs +1 -1
  23. package/dist-lib/attached-projects.cjs +10 -1
  24. package/dist-lib/auth/shared-session.cjs +1 -1
  25. package/dist-lib/backend-origin.cjs +1 -1
  26. package/dist-lib/beta.cjs +1 -1
  27. package/dist-lib/beta.mjs +1 -1
  28. package/dist-lib/bridge-constants.cjs +1 -1
  29. package/dist-lib/bridge-contract-input.cjs +1 -1
  30. package/dist-lib/bridge-contract-input.mjs +1 -1
  31. package/dist-lib/bridge-contract.cjs +1 -1
  32. package/dist-lib/bridge-contract.mjs +1 -1
  33. package/dist-lib/bundle-channel.cjs +530 -154
  34. package/dist-lib/capture-contract.cjs +1 -1
  35. package/dist-lib/capture-contract.mjs +1 -1
  36. package/dist-lib/cloud-contract.cjs +1 -1
  37. package/dist-lib/cloud-contract.mjs +1 -1
  38. package/dist-lib/cloud-test-args.cjs +1 -1
  39. package/dist-lib/cloud-test-args.mjs +1 -1
  40. package/dist-lib/cloud.cjs +1 -1
  41. package/dist-lib/cloud.mjs +1 -1
  42. package/dist-lib/config.cjs +1 -1
  43. package/dist-lib/config.mjs +1 -1
  44. package/dist-lib/detox/index.cjs +5074 -7353
  45. package/dist-lib/detox/jest-environment.cjs +4 -1
  46. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  47. package/dist-lib/expo-swift-bundle.cjs +578 -151
  48. package/dist-lib/expo-swift-metadata.cjs +1 -1
  49. package/dist-lib/expo-swift-metadata.mjs +1 -1
  50. package/dist-lib/home-paths.cjs +1 -1
  51. package/dist-lib/host/bridge-host.cjs +660 -192
  52. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  53. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  54. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  55. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  56. package/dist-lib/host/websocket-proxy.cjs +1 -1
  57. package/dist-lib/index.cjs +206 -6
  58. package/dist-lib/jump-to-source-babel.cjs +1 -1
  59. package/dist-lib/jump-to-source-native.cjs +1 -1
  60. package/dist-lib/kotlin-host.cjs +1 -1
  61. package/dist-lib/menu.cjs +1 -1
  62. package/dist-lib/menu.mjs +1 -1
  63. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  64. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  65. package/dist-lib/metro-production-bundle.cjs +10 -1
  66. package/dist-lib/metro-production-bundle.mjs +12 -1
  67. package/dist-lib/metro.cjs +155 -5
  68. package/dist-lib/native-app-identity-project.cjs +43 -5
  69. package/dist-lib/native-app-identity-project.mjs +43 -5
  70. package/dist-lib/native-app-identity.cjs +1 -1
  71. package/dist-lib/native-app-identity.mjs +1 -1
  72. package/dist-lib/native-firebase-metadata.cjs +1 -1
  73. package/dist-lib/native-firebase-metadata.mjs +1 -1
  74. package/dist-lib/plist.cjs +1 -1
  75. package/dist-lib/plist.mjs +1 -1
  76. package/dist-lib/profiles.cjs +21 -1
  77. package/dist-lib/public-brand.cjs +1 -1
  78. package/dist-lib/public-origins-lib-esm.json +73 -27
  79. package/dist-lib/public-origins-lib-static.json +1 -1
  80. package/dist-lib/public-origins-lib.json +563 -183
  81. package/dist-lib/react-native-host-modules.cjs +1 -1
  82. package/dist-lib/react-native-host-modules.mjs +1 -1
  83. package/dist-lib/reap-browser.cjs +964 -0
  84. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  85. package/dist-lib/sdk.cjs +1 -1
  86. package/dist-lib/sdk.mjs +1 -1
  87. package/dist-lib/skills.cjs +963 -521
  88. package/dist-lib/swift-compile.cjs +276 -86
  89. package/dist-lib/swift-compile.mjs +276 -86
  90. package/dist-lib/swift-package.cjs +34 -4
  91. package/dist-lib/swift-package.mjs +33 -4
  92. package/dist-lib/swift-submit.cjs +2 -2
  93. package/dist-lib/swift-submit.mjs +2 -2
  94. package/dist-lib/swift-toolchain.cjs +25 -44
  95. package/dist-lib/swift.cjs +1 -1
  96. package/dist-lib/vite-swift.cjs +579 -113
  97. package/dist-lib/vite.cjs +61 -2
  98. package/dist-lib/worklet-executable.cjs +1 -1
  99. package/dist-lib/worklet-executable.mjs +1 -1
  100. package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +7 -0
  101. package/dist-types/packages/peach-engine/src/engine/glass-material.d.ts +1 -1
  102. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
  103. package/dist-types/packages/peach-engine/src/engine/inspect-outline.d.ts +2 -1
  104. package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
  105. package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +3 -1
  106. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +7 -0
  107. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime-kind.d.ts +24 -0
  108. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +4 -2
  109. package/dist-types/packages/peach-engine/src/settings/devices.d.ts +1 -0
  110. package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +18 -0
  111. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  112. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
  113. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  114. package/package.json +1 -1
  115. package/runtime-companion.json +1 -1
  116. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +2 -0
  117. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +36 -0
  118. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStore.h +439 -0
  119. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreCopySpecific.h +216 -0
  120. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreKey.h +267 -0
  121. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetwork.h +204 -0
  122. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConfiguration.h +1393 -0
  123. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConnection.h +568 -0
  124. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkReachability.h +369 -0
  125. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferences.h +473 -0
  126. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesPath.h +179 -0
  127. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesSetSpecific.h +95 -0
  128. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h +2395 -0
  129. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h +184 -0
  130. package/sdk/ios/usr/include/libkern/OSByteOrder.h +315 -0
  131. package/sdk/ios/usr/include/libkern/machine/OSByteOrder.h +147 -0
  132. package/src/bridge-contract.ts +42 -0
  133. package/src/chromium-admission.ts +196 -0
  134. package/src/host/bridge-host.ts +6 -43
  135. package/src/launch-deadline.ts +74 -0
  136. package/src/nitro-adapter.lock.json +3 -3
  137. package/src/profiles.ts +21 -0
  138. package/src/react-native-coverage/capability-reference-resolution.ts +402 -0
  139. package/src/react-native-coverage/capability-source-references.ts +1296 -0
  140. package/src/react-native-coverage/native-typescript-parser.ts +74 -0
  141. package/src/react-native-coverage/project-aliases.ts +207 -0
  142. package/src/react-native-coverage/verified-reach.ts +47 -0
  143. package/src/reap-browser.ts +1019 -0
  144. package/src/skills/builtin/a11y-review.ts +1 -1
  145. package/src/skills/builtin/perf-profile.ts +1 -1
  146. package/src/skills/builtin/screenshot-all.ts +1 -1
  147. package/src/skills/builtin/visual-diff.ts +1 -1
  148. package/src/swift-compile.ts +107 -56
  149. package/src/swift-coverage/indexdump.ts +80 -0
  150. package/src/swift-coverage/indexing.ts +147 -0
  151. package/src/swift-coverage/package.ts +230 -0
  152. package/src/swift-coverage/provenance.ts +47 -0
  153. package/src/swift-coverage/reader.ts +81 -0
  154. package/src/swift-coverage/source.ts +252 -0
  155. package/src/swift-coverage/types.ts +58 -0
  156. package/src/swift-coverage/xcode-assets.ts +175 -0
  157. package/src/swift-coverage/xcode-bridging.ts +160 -0
  158. package/src/swift-coverage/xcode-packages.ts +251 -0
  159. package/src/swift-coverage/xcode-strings.ts +78 -0
  160. package/src/swift-coverage/xcode.ts +656 -0
  161. package/src/swift-distribution.lock.json +8 -8
  162. package/src/swift-host.ts +21 -1
  163. package/src/swift-objc-import.ts +191 -27
  164. package/src/swift-objc-standin.ts +4 -2
  165. package/src/swift-package-manifest.ts +134 -13
  166. package/src/swift-package.ts +46 -4
  167. package/src/swift-submit.ts +2 -1
  168. package/src/swift-toolchain.ts +36 -61
  169. package/src/worker-system-chunks.ts +3 -10
  170. package/src/xcode-project.ts +5 -5
  171. package/detox/attempt-events.cjs +0 -914
  172. package/detox/attempt-events.d.cts +0 -113
  173. package/detox/motion-change.cjs +0 -524
  174. package/detox/motion-change.d.cts +0 -140
  175. package/detox/motion-leg-starts.cjs +0 -20
  176. package/detox/motion-leg-starts.d.cts +0 -8
  177. package/detox/proof-frame.cjs +0 -190
  178. package/detox/record-block-execution.cjs +0 -78
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1667 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1673 | (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;
@@ -32,11 +32,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
32
32
  ));
33
33
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
34
 
35
+ // <define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>
36
+ var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
37
+ "<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
38
+ }
39
+ });
40
+
35
41
  // runtime-companion.json
36
42
  var runtime_companion_default;
37
43
  var init_runtime_companion = __esm({
38
44
  "runtime-companion.json"() {
39
- runtime_companion_default = { abi: 1, sha256: "f8112e72d9130f18700ad5452a0c7c15668e92fea21944e00893a85694924cb5", file: "node/cli-f8112e72d9130f18700ad5452a0c7c15668e92fea21944e00893a85694924cb5.cjs" };
45
+ runtime_companion_default = { abi: 1, sha256: "64b30b73101e38ea8d4aaa3e07f22bdedd2736a7d1f0f21f9229f2f4daf45756", file: "node/cli-64b30b73101e38ea8d4aaa3e07f22bdedd2736a7d1f0f21f9229f2f4daf45756.cjs" };
40
46
  }
41
47
  });
42
48
 
@@ -44,6 +50,7 @@ var init_runtime_companion = __esm({
44
50
  var init_process_group = __esm({
45
51
  "src/process-group.ts"() {
46
52
  "use strict";
53
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
47
54
  }
48
55
  });
49
56
 
@@ -54,6 +61,7 @@ function isValidRuntimeVersion(value) {
54
61
  var init_version = __esm({
55
62
  "../contrast-runtime-delivery/src/version.ts"() {
56
63
  "use strict";
64
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
57
65
  }
58
66
  });
59
67
 
@@ -61,6 +69,7 @@ var init_version = __esm({
61
69
  var init_product = __esm({
62
70
  "../contrast-runtime-delivery/src/product.ts"() {
63
71
  "use strict";
72
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
64
73
  init_version();
65
74
  }
66
75
  });
@@ -69,6 +78,7 @@ var init_product = __esm({
69
78
  var init_src = __esm({
70
79
  "../contrast-runtime-delivery/src/index.ts"() {
71
80
  "use strict";
81
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
72
82
  init_process_group();
73
83
  init_product();
74
84
  init_product();
@@ -134,6 +144,7 @@ var import_node_fs, import_node_os, import_node_path, PEACH_HOME_ENV, ACTIVE_RUN
134
144
  var init_home_paths = __esm({
135
145
  "src/home-paths.ts"() {
136
146
  "use strict";
147
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
137
148
  import_node_fs = __toESM(require("node:fs"), 1);
138
149
  import_node_os = require("node:os");
139
150
  import_node_path = __toESM(require("node:path"), 1);
@@ -292,6 +303,7 @@ var import_fs, import_path, import_url, SOOTSIM_RUNTIME_MISSING_MESSAGE, _monore
292
303
  var init_runtime_assets = __esm({
293
304
  "src/runtime-assets.ts"() {
294
305
  "use strict";
306
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
295
307
  import_fs = __toESM(require("fs"), 1);
296
308
  import_path = __toESM(require("path"), 1);
297
309
  import_url = require("url");
@@ -384,6 +396,7 @@ var import_node_crypto, import_node_fs2, import_node_module, import_node_path2,
384
396
  var init_cli_runtime = __esm({
385
397
  "src/cli-runtime.ts"() {
386
398
  "use strict";
399
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
387
400
  import_node_crypto = require("node:crypto");
388
401
  import_node_fs2 = require("node:fs");
389
402
  import_node_module = require("node:module");
@@ -401,6 +414,7 @@ __export(vite_plugin_one_exports, {
401
414
  peachPlugin: () => peachPlugin
402
415
  });
403
416
  module.exports = __toCommonJS(vite_plugin_one_exports);
417
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
404
418
  var import_fs3 = __toESM(require("fs"), 1);
405
419
  var import_node_crypto4 = require("node:crypto");
406
420
  var import_node_http = __toESM(require("node:http"), 1);
@@ -410,7 +424,11 @@ var import_path3 = __toESM(require("path"), 1);
410
424
  var import_promises3 = require("stream/promises");
411
425
  var import_ws = require("ws");
412
426
 
427
+ // src/bridge-constants.ts
428
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
429
+
413
430
  // src/simulator-route.ts
431
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
414
432
  var PEACH_SIMULATOR_PATH = "/simulator";
415
433
  var SIMULATOR_DOCUMENT_PATH = new RegExp(
416
434
  `^${PEACH_SIMULATOR_PATH}(?:/(?:rn(?:/[^/]+)?|app/[^/]+|dock/[^/]+))?/?$`
@@ -426,6 +444,7 @@ var AUTOMATION_SIM_IDLE_REAP_TTL_MS = 5 * 6e4;
426
444
  init_cli_runtime();
427
445
 
428
446
  // src/dev-server-open.ts
447
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
429
448
  var import_node_child_process = require("node:child_process");
430
449
  var import_node_crypto2 = require("node:crypto");
431
450
  var import_node_fs3 = __toESM(require("node:fs"), 1);
@@ -499,16 +518,19 @@ function launchRnxDesktop(bundleUrl, appName) {
499
518
  init_home_paths();
500
519
 
501
520
  // src/host/replacement-module-handler.ts
521
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
502
522
  var import_node_fs4 = require("node:fs");
503
523
  var import_promises = __toESM(require("node:fs/promises"), 1);
504
524
  var import_node_path4 = __toESM(require("node:path"), 1);
505
525
 
506
526
  // ../contrast-bundler/src/replacementModule.ts
527
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
507
528
  var import_dist = require("sucrase/dist/index.js");
508
529
  var import_parser = require("sucrase/dist/parser/index.js");
509
530
  var import_types = require("sucrase/dist/parser/tokenizer/types.js");
510
531
 
511
532
  // ../contrast-bundler/src/posixPath.ts
533
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
512
534
  var sep = "/";
513
535
  var delimiter = ":";
514
536
  function isAbsolute(p) {
@@ -810,6 +832,7 @@ function compileReplacementModule(input) {
810
832
  }
811
833
 
812
834
  // src/backend-origin.ts
835
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
813
836
  function normalizeHostname(hostname) {
814
837
  return hostname.replace(/^\[|\]$/g, "").toLowerCase();
815
838
  }
@@ -964,6 +987,7 @@ async function handleReplacementModuleRequest(req, res, options = {}) {
964
987
  }
965
988
 
966
989
  // src/host/rolldown-bundle-forward.ts
990
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
967
991
  var import_stream = require("stream");
968
992
  var import_promises2 = require("stream/promises");
969
993
  init_cli_runtime();
@@ -1014,10 +1038,12 @@ async function forwardRolldownBundleResponse(upstream, res) {
1014
1038
  }
1015
1039
 
1016
1040
  // src/installed-package-versions.ts
1041
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1017
1042
  var import_fs2 = __toESM(require("fs"), 1);
1018
1043
  var import_path2 = __toESM(require("path"), 1);
1019
1044
 
1020
1045
  // ../peach-compat/src/lazy-stub-patterns.ts
1046
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1021
1047
  var LAZY_STUB_PATTERNS = [
1022
1048
  "@10play/tentap-editor",
1023
1049
  "@adobe/react-native-aepcore",
@@ -1221,7 +1247,11 @@ var LAZY_STUB_PATTERNS = [
1221
1247
  "voltra"
1222
1248
  ];
1223
1249
 
1250
+ // ../peach-compat/src/generated/native-package-names.ts
1251
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1252
+
1224
1253
  // ../peach-compat/src/generated/light-native-package-names.ts
1254
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1225
1255
  var LIGHT_NATIVE_PACKAGE_NAMES = [
1226
1256
  "@100mslive/react-native-hms",
1227
1257
  "@account-kit/react-native-signer",
@@ -3001,7 +3031,11 @@ var NATIVE_RUNTIME_PACKAGE_NAMES = [
3001
3031
  "react-native-sectioned-slider"
3002
3032
  ];
3003
3033
 
3034
+ // ../peach-compat/src/stub-manifest.ts
3035
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3036
+
3004
3037
  // ../peach-compat/src/wrapper-real-packages.ts
3038
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3005
3039
  var SOOTSIM_COMPAT_WRAPPER_REAL_PACKAGES = {
3006
3040
  expoUiConfirmationDialog: {
3007
3041
  specifier: "@peach-internal/expo-ui-confirmation-dialog",
@@ -3861,6 +3895,7 @@ var COMPAT_STUBS = {
3861
3895
  };
3862
3896
 
3863
3897
  // src/stub-pattern-matcher.ts
3898
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3864
3899
  function extractPackageFromPath(modulePath) {
3865
3900
  let nodeModulesIndex = modulePath.lastIndexOf("/node_modules/");
3866
3901
  let prefixLength = "/node_modules/".length;
@@ -4004,6 +4039,7 @@ function readInstalledNativePackageVersions(projectRoot) {
4004
4039
  }
4005
4040
 
4006
4041
  // src/one-widget-metadata.ts
4042
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
4007
4043
  var import_node_child_process2 = require("node:child_process");
4008
4044
  var import_node_crypto3 = require("node:crypto");
4009
4045
  var import_node_fs6 = __toESM(require("node:fs"), 1);
@@ -4012,13 +4048,21 @@ var import_node_path6 = __toESM(require("node:path"), 1);
4012
4048
  var import_node_util = require("node:util");
4013
4049
 
4014
4050
  // cli/internal-child.ts
4051
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
4015
4052
  var RNX_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
4016
4053
 
4017
4054
  // src/is-record.ts
4055
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
4018
4056
  function isRecord(value) {
4019
4057
  return typeof value === "object" && value !== null && !Array.isArray(value);
4020
4058
  }
4021
4059
 
4060
+ // src/oneWidgetContract.ts
4061
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
4062
+
4063
+ // src/native-dev-bundle-url.ts
4064
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
4065
+
4022
4066
  // src/oneWidgetContract.ts
4023
4067
  var HOME_WIDGET_FAMILIES = [
4024
4068
  "systemSmall",
@@ -4031,6 +4075,7 @@ function isHomeWidgetFamily(value) {
4031
4075
  }
4032
4076
 
4033
4077
  // src/swift-source-file.ts
4078
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
4034
4079
  var import_node_fs5 = __toESM(require("node:fs"), 1);
4035
4080
  var import_node_path5 = __toESM(require("node:path"), 1);
4036
4081
  function readPackageFile(root, file, maxBytes) {
@@ -4075,6 +4120,15 @@ function readPackageFile(root, file, maxBytes) {
4075
4120
  }
4076
4121
  }
4077
4122
 
4123
+ // src/swift-submit.ts
4124
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
4125
+
4126
+ // src/swiftContract.ts
4127
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
4128
+
4129
+ // src/assetCatalogContract.ts
4130
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
4131
+
4078
4132
  // src/swift-submit.ts
4079
4133
  var SWIFT_PACKAGE_PATH = "/__peach/swift-package/";
4080
4134
  var SWIFT_HMR_PATH = "/__peach/swift-hmr";
@@ -4246,7 +4300,11 @@ async function configuredOneWidget(appRoot, bundleUrl) {
4246
4300
  };
4247
4301
  }
4248
4302
 
4303
+ // src/packageVersionsContract.ts
4304
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
4305
+
4249
4306
  // src/bundleGlobalFooter.ts
4307
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
4250
4308
  function findBundleFooter(source, prefix) {
4251
4309
  let end = source.length;
4252
4310
  while (end > 0) {
@@ -4317,6 +4375,7 @@ function insertPackageVersionsFooter(source, versions) {
4317
4375
  init_runtime_assets();
4318
4376
 
4319
4377
  // src/swift-vite-lifetime.ts
4378
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
4320
4379
  var LIFETIME = Symbol.for("peach.swift-vite-lifetime");
4321
4380
  function swiftViteLifetime(server) {
4322
4381
  const existing = server[LIFETIME];
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1667 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1673 | (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.1667 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1673 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -1,6 +1,9 @@
1
1
  import { type SyncReplyBuffer } from '../render-worker/nativeSyncReplyContract.d.ts';
2
+ import type { SootSimClipboardPresence } from '../../../peach-globals/src/index.d.ts';
2
3
  export type ClipboardSyncOperation = {
3
4
  type: 'read';
5
+ } | {
6
+ type: 'presence';
4
7
  } | {
5
8
  type: 'write';
6
9
  text: string | null;
@@ -8,6 +11,9 @@ export type ClipboardSyncOperation = {
8
11
  export type ClipboardSyncResponse = {
9
12
  ok: true;
10
13
  text: string | null;
14
+ } | {
15
+ ok: true;
16
+ presence: SootSimClipboardPresence;
11
17
  } | {
12
18
  ok: false;
13
19
  error: string;
@@ -15,3 +21,4 @@ export type ClipboardSyncResponse = {
15
21
  export declare function createClipboardSyncReply(): SharedArrayBuffer;
16
22
  export declare function completeClipboardSyncReply(reply: SyncReplyBuffer, response: ClipboardSyncResponse): void;
17
23
  export declare function decodeClipboardSyncResponse(response: unknown): string | null;
24
+ export declare function decodeClipboardPresenceResponse(response: unknown): SootSimClipboardPresence;
@@ -1,4 +1,4 @@
1
- declare const GLASS_STYLES: readonly ['regular', 'clear', 'home-dock', 'home-search', 'switch-thumb', 'slider-thumb', 'sidebar'];
1
+ declare const GLASS_STYLES: readonly ['regular', 'clear', 'home-dock', 'home-search', 'switch-thumb', 'slider-thumb', 'sidebar', 'keyboard'];
2
2
  export type GlassStyle = (typeof GLASS_STYLES)[number];
3
3
  export declare function glassMaterialCode(style: GlassStyle): number;
4
4
  export type GlassScheme = 'light' | 'dark';
@@ -230,6 +230,7 @@ export declare function getImageLoaderStats(): {
230
230
  };
231
231
  export type ImageLoaderStats = ReturnType<typeof getImageLoaderStats>;
232
232
  export declare function getLoadedImageCacheKey(node: SootSimNode): string | null;
233
+ export declare function collectImageCacheKeys(node: SootSimNode, keys: Set<string>): void;
233
234
  export declare function getLoadedStaticImageRequest(node: SootSimNode): LoadedStaticImageRequest | null;
234
235
  export declare function isLoadedStaticImageRequestCurrent(node: SootSimNode, request: LoadedStaticImageRequest): boolean;
235
236
  export declare function countCachedImageEntriesForKeys(keys: ReadonlySet<string>): number;
@@ -331,6 +332,7 @@ export declare function getImageSize(uri: string, headers?: Record<string, strin
331
332
  height: number;
332
333
  } | null>;
333
334
  export declare function stampImageDraw(node: SootSimNode): void;
335
+ export declare function stampImageBoundaryDraw(node: SootSimNode): void;
334
336
  export declare function hasDeferredOrPendingImageLoad(node: SootSimNode): boolean;
335
337
  export declare function getImageDecodeBucket(size: number, deviceScale?: number): number | null;
336
338
  interface RasterDecodeTarget {
@@ -2,6 +2,7 @@ import { type VisibleFrameQuery } from './visible-frame.d.ts';
2
2
  import type { SootSimNode } from './node.d.ts';
3
3
  export declare const INSPECT_OVERLAY_TEST_ID = "__sootsimCanvasInspectOverlay";
4
4
  export declare const INSPECT_APP_ROOT_TEST_ID = "__sootsimInspectAppRoot";
5
+ export type InspectPurpose = 'point' | 'semantic';
5
6
  export declare const HANDLER_PROPS: readonly ['onPress', 'onClick', 'onPressIn', 'onPressOut', 'onLongPress', 'onPanStart', 'onPanMove', 'onPanEnd', 'onStartShouldSetResponder', 'onMoveShouldSetResponder', 'onResponderGrant', 'onResponderMove', 'onResponderRelease', 'onResponderTerminate'];
6
7
  export declare const PRESS_HANDLER_PROPS: readonly ['onPress', 'onClick', 'onPressIn', 'onPressOut', 'onLongPress'];
7
8
  export declare function hasInspectHandlers(node: SootSimNode): boolean;
@@ -10,5 +11,5 @@ export declare function hasSemanticIdentity(node: SootSimNode): boolean;
10
11
  export declare function hasPaintedInspectBox(node: SootSimNode): boolean;
11
12
  export declare function isLeafInspectContent(node: SootSimNode): boolean;
12
13
  export declare function getInspectRoot(node: SootSimNode): SootSimNode;
13
- export declare function shouldOutlineInspectNode(node: SootSimNode, query?: VisibleFrameQuery): boolean;
14
+ export declare function shouldOutlineInspectNode(node: SootSimNode, query?: VisibleFrameQuery, purpose?: InspectPurpose): boolean;
14
15
  export declare function pickInspectTarget(node: SootSimNode, root: SootSimNode): SootSimNode;
@@ -43,6 +43,7 @@ export interface TenantGlassBackdrop {
43
43
  export interface LiquidGlassConfig {
44
44
  material?: GlassStyle;
45
45
  materialization?: number;
46
+ keyboardIdiom?: 'phone' | 'pad';
46
47
  materialTint?: {
47
48
  gain: number;
48
49
  bias: number;
@@ -37,7 +37,9 @@ export declare function readImageSourceScale(source: unknown): number;
37
37
  export declare function dropNativeReplay(state: PaintBoundaryState): void;
38
38
  export declare function beginPictureImages(): void;
39
39
  export declare function notePictureImage(cacheKey: string): void;
40
- export declare function endPictureImages(): string[];
40
+ export declare function endPictureImages(node: PaintBoundaryNode): string[];
41
+ export declare function stampPaintBoundaryImages(node: PaintBoundaryNode, owner: object, serial: number): void;
42
+ export declare function releaseUnpaintedBoundaryImages(owner: object, serial: number): void;
41
43
  export declare function abandonPictureImages(): void;
42
44
  export declare function pictureDrawsImage(cacheKey: string): boolean;
43
45
  export declare function releaseChunks(state: PaintBoundaryState, flattenReleaseReason?: 'param' | 'content'): void;
@@ -147,10 +147,15 @@ export type HostServiceRequest = {
147
147
  } | {
148
148
  type: 'clipboardRead';
149
149
  requestId: number;
150
+ mode?: 'items' | 'presence';
150
151
  } | {
151
152
  type: 'clipboardWrite';
152
153
  requestId: number;
153
154
  text: string;
155
+ } | {
156
+ type: 'clipboardWrite';
157
+ requestId: number;
158
+ items: import('../../../peach-globals/src/index.d.ts').SootSimClipboardItems;
154
159
  } | {
155
160
  type: 'clipboardSyncRequest';
156
161
  operation: import('../engine/clipboardContract.d.ts').ClipboardSyncOperation;
@@ -406,6 +411,8 @@ export type HostServiceResponse = {
406
411
  requestId: number;
407
412
  ok: boolean;
408
413
  text?: string;
414
+ items?: import('../../../peach-globals/src/index.d.ts').SootSimClipboardSnapshot;
415
+ presence?: import('../../../peach-globals/src/index.d.ts').SootSimClipboardPresence;
409
416
  error?: string;
410
417
  } | {
411
418
  type: 'clipboardWriteResult';
@@ -0,0 +1,24 @@
1
+ export declare enum WorkletRuntimeKind {
2
+ ReactNative = 1,
3
+ UI = 2,
4
+ Worker = 3
5
+ }
6
+ export declare function getWorkletThreadId(): string;
7
+ export declare function runWithWorkletThreadId<T>(threadId: string | undefined, run: () => T): T;
8
+ export declare class WorkletMicrotaskQueue {
9
+ private readonly drainsOnPlatformMicrotask;
10
+ private jobs;
11
+ private scheduled;
12
+ private draining;
13
+ private disposed;
14
+ constructor(drainsOnPlatformMicrotask?: boolean);
15
+ readonly enqueue: (callback: () => void) => void;
16
+ readonly drain: () => void;
17
+ readonly hermesInternal: {
18
+ enqueueJob: (callback: () => void) => void;
19
+ };
20
+ dispose(): void;
21
+ }
22
+ export declare function getWorkletRuntimeKind(): WorkletRuntimeKind;
23
+ export declare const HOST_OWNED_GLOBALS: readonly ['queueMicrotask', 'requestAnimationFrame', 'cancelAnimationFrame', 'setTimeout', 'clearTimeout', 'setInterval', 'clearInterval', 'console'];
24
+ export declare function runWithWorkletRuntimeKind<T>(kind: WorkletRuntimeKind, run: () => T, runtimeJobs?: WorkletMicrotaskQueue): T;
@@ -9,6 +9,7 @@ import type { SyncReplyBuffer } from './nativeSyncReplyContract.d.ts';
9
9
  import type { SootSimAnimationInfo } from '../../../peach-globals/src/index.d.ts';
10
10
  import type { ReanimatedAnimationProfile } from '../../../peach-globals/src/profilerContract.d.ts';
11
11
  export { CSS_EVENT_MASK, type CSSEventType, type NativeCSSEvent, } from './reanimated-css-contract.d.ts';
12
+ import { WorkletMicrotaskQueue } from './worklet-runtime-kind.d.ts';
12
13
  import type { AnimatedDrivenStyleLease, AnimatedDrivenStyleRetirement } from '../engine/animated-driven-style.d.ts';
13
14
  import { SAB_COMPOSITOR_TASK_PENDING_INT32_INDEX, SAB_DEMAND_EPOCH_INT32_INDEX, SAB_TENANT_LIVE_FRAMES_INT32_INDEX, SAB_UI_FRAME_DEMAND_INT32_INDEX, SAB_UI_FRAME_DONE_INT32_INDEX, SAB_UI_FRAME_OFFERED_INT32_INDEX, SAB_UI_FRAME_TIME_FLOAT64_INDEX, createSharedValueSAB, createWorkletPeerEpoch, type WorkletPeerEpoch } from './worklet-sab.d.ts';
14
15
  export { SAB_COMPOSITOR_TASK_PENDING_INT32_INDEX, SAB_DEMAND_EPOCH_INT32_INDEX, SAB_TENANT_LIVE_FRAMES_INT32_INDEX, SAB_UI_FRAME_DEMAND_INT32_INDEX, SAB_UI_FRAME_DONE_INT32_INDEX, SAB_UI_FRAME_OFFERED_INT32_INDEX, SAB_UI_FRAME_TIME_FLOAT64_INDEX, createSharedValueSAB, createWorkletPeerEpoch, type WorkletPeerEpoch, };
@@ -247,6 +248,7 @@ export interface NamedWorkletRuntimeHandle {
247
248
  readonly name: string;
248
249
  readonly runtimeId: number;
249
250
  }
251
+ export declare function createNamedWorkletRuntimeHandle(name: string, runtimeId: number): NamedWorkletRuntimeHandle;
250
252
  export interface NamedWorkletRuntimeOptions {
251
253
  name: string;
252
254
  initializer: WorkletFn;
@@ -676,6 +678,8 @@ export declare class WorkletRuntime {
676
678
  private pendingObjectUpdates;
677
679
  private pendingHostValueUpdates;
678
680
  private readonly nativeMicrotasks;
681
+ readonly enqueueNativeJob: WorkletMicrotaskQueue['enqueue'];
682
+ readonly drainNativeJobs: WorkletMicrotaskQueue['drain'];
679
683
  constructor(opts: {
680
684
  channel: WorkletChannel;
681
685
  sab: SharedArrayBuffer;
@@ -854,8 +858,6 @@ export declare class WorkletRuntime {
854
858
  private invokeEventHandler;
855
859
  private registerLocalFrameCallback;
856
860
  readonly requestNativeAnimationFrame: (callback: FrameRequestCallback) => void;
857
- readonly enqueueNativeJob: (callback: () => void) => void;
858
- readonly drainNativeJobs: () => void;
859
861
  private cancelNativeFrames;
860
862
  private unregisterLocalFrameCallback;
861
863
  private setLocalFrameCallbackActive;
@@ -37,6 +37,7 @@ export declare function orderedPoses(poses: Iterable<InterfacePose>): readonly I
37
37
  export declare function samePoses(a: readonly InterfacePose[], b: readonly InterfacePose[]): boolean;
38
38
  export declare function interfacePose(spec: DeviceSpec): InterfacePose;
39
39
  export declare function sceneHoldsInterface(model: DeviceModel, posture?: DevicePosture): boolean;
40
+ export declare function homeDisplaySpec(spec: DeviceSpec): DeviceSpec;
40
41
  export declare function displayHold(display: DeviceSpec, body: DeviceSpec): DisplayHold;
41
42
  export declare function poseHold(display: InterfacePose, body: InterfacePose): DisplayHold;
42
43
  export declare function supportsOrientationChange(model: DeviceModel, posture?: DevicePosture): boolean;
@@ -10,7 +10,25 @@ export interface SootSimClipboardChange {
10
10
  types: string[];
11
11
  contentTypes: string[];
12
12
  }
13
+ export interface SootSimClipboardPresence {
14
+ strings: boolean;
15
+ images: boolean;
16
+ urls: boolean;
17
+ }
18
+ export interface SootSimClipboardItems {
19
+ strings: string[];
20
+ url?: string | null;
21
+ }
22
+ export interface SootSimClipboardSnapshot {
23
+ strings: string[];
24
+ url: string | null;
25
+ presence: SootSimClipboardPresence;
26
+ }
13
27
  export interface SootSimClipboardBridge {
28
+ readPresenceSync(): SootSimClipboardPresence;
29
+ readPresence(): Promise<SootSimClipboardPresence>;
30
+ readItems(): Promise<SootSimClipboardSnapshot>;
31
+ writeItems(items: SootSimClipboardItems): Promise<void>;
14
32
  readStringSync(): string | null;
15
33
  writeStringSync(text: string | null): void;
16
34
  readText(): Promise<string>;
@@ -15,7 +15,7 @@ export type { SootSimDetectedBarcode, PeachCameraPhotoOptions, PeachCameraPhotoR
15
15
  export type { SootSimVideoSource, SootSimVideoStatus, SootSimVideoEvent, SootSimVideoBridge, } from './videoBridgeContract.d.ts';
16
16
  export type { SootSimSpeechSynthesisUtterance, SootSimSpeechSynthesisEvent, SootSimSpeechSynthesisBridge, } from './speechSynthesisBridgeContract.d.ts';
17
17
  export type { SootSimAudioRecorderOptions, SootSimAudioRecorderCommand, SootSimAudioRecorderSnapshot, SootSimAudioRecorderBridge, SootSimMediaSessionBridge, } from './audioBridgeContract.d.ts';
18
- export type { SootSimClipboardImage, SootSimClipboardChange, SootSimClipboardBridge, } from './clipboardBridgeContract.d.ts';
18
+ export type { SootSimClipboardImage, SootSimClipboardChange, SootSimClipboardBridge, SootSimClipboardPresence, SootSimClipboardItems, SootSimClipboardSnapshot, } from './clipboardBridgeContract.d.ts';
19
19
  export type { SootSimHostStorageBridge } from './hostStorageBridgeContract.d.ts';
20
20
  export type { SootSimImagePickerAsset, SootSimImagePickerResult, SootSimImagePickerOptions, ShellNativeEvaluationOwner, SootSimImagePickerBridge, SootSimImageCropperSpec, SootSimImageCropperBridge, } from './imagePickerBridgeContract.d.ts';
21
21
  export type { SootSimAndroidPickerDay, SootSimAndroidPickerButton, SootSimAndroidDateTimePickerSpec, SootSimAndroidDateTimePickerResult, SootSimAndroidDateTimePickerBridge, } from './androidDateTimePickerBridgeContract.d.ts';
@@ -155,6 +155,7 @@ export interface SootSimAnimationInfo {
155
155
  remoteDriven?: boolean;
156
156
  priority?: string;
157
157
  visible?: boolean;
158
+ ownerNodeIds?: number[];
158
159
  }
159
160
  export interface SootSimAnimationTraceSample {
160
161
  t: number;
@@ -50,6 +50,7 @@ export interface TabBarIconImage {
50
50
  }
51
51
  export interface BottomTabBarItem {
52
52
  label: string;
53
+ disabled?: boolean;
53
54
  testID?: string;
54
55
  accessibilityLabel?: string;
55
56
  icon?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.1667",
3
+ "version": "0.1.1673",
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":"f8112e72d9130f18700ad5452a0c7c15668e92fea21944e00893a85694924cb5","file":"node/cli-f8112e72d9130f18700ad5452a0c7c15668e92fea21944e00893a85694924cb5.cjs"}
1
+ {"abi":1,"sha256":"64b30b73101e38ea8d4aaa3e07f22bdedd2736a7d1f0f21f9229f2f4daf45756","file":"node/cli-64b30b73101e38ea8d4aaa3e07f22bdedd2736a7d1f0f21f9229f2f4daf45756.cjs"}
@@ -0,0 +1,2 @@
1
+ #pragma once
2
+ #include <CoreFoundation/CoreFoundation.h>
@@ -8,10 +8,12 @@
8
8
  #if !defined(CF_EXCLUDE_CSTD_HEADERS)
9
9
  #include <errno.h>
10
10
  #include <math.h>
11
+ #include <signal.h>
11
12
  #include <stdlib.h>
12
13
  #include <string.h>
13
14
  #endif
14
15
  #include <MacTypes.h>
16
+ #include <TargetConditionals.h>
15
17
  #include <stdint.h>
16
18
  #include <stddef.h>
17
19
  #include <stdbool.h>
@@ -29,6 +31,7 @@
29
31
  #endif
30
32
  #endif
31
33
  typedef unsigned char Boolean;
34
+ typedef unsigned int UInt32;
32
35
  typedef int32_t SInt32;
33
36
  typedef SInt32 OSStatus;
34
37
  typedef unsigned long CFOptionFlags;
@@ -74,6 +77,7 @@ typedef signed long CFIndex;
74
77
  #endif
75
78
  typedef const struct CF_BRIDGED_TYPE(NSString) __CFString *CFStringRef;
76
79
  typedef const CF_BRIDGED_TYPE(id) void *CFTypeRef;
80
+ typedef CF_BRIDGED_TYPE(id) CFTypeRef CFPropertyListRef;
77
81
  typedef const struct CF_BRIDGED_TYPE(NSURL) __CFURL *CFURLRef;
78
82
  typedef const struct CF_BRIDGED_TYPE(id) __CFAllocator * CFAllocatorRef;
79
83
  typedef const struct CF_BRIDGED_TYPE(id) __CFUUID * CFUUIDRef;
@@ -136,6 +140,38 @@ typedef const struct CF_BRIDGED_TYPE(NSArray) __CFArray *CFArrayRef;
136
140
  #define CF_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end")
137
141
  #define CF_IMPLICIT_BRIDGING_ENABLED _Pragma("clang arc_cf_code_audited begin")
138
142
  #define CF_IMPLICIT_BRIDGING_DISABLED _Pragma("clang arc_cf_code_audited end")
143
+ #if defined(__GNUC__) && (__GNUC__*10+__GNUC_MINOR__ >= 42) && defined(__APPLE_CC__) && (__APPLE_CC__ > 1) && !defined(__INTEL_COMPILER) && TARGET_OS_MAC
144
+ #define CF_FORMAT_FUNCTION(F,A) __attribute__((format(CFString, F, A)))
145
+ #define CF_FORMAT_ARGUMENT(A) __attribute__((format_arg(A)))
146
+ #else
147
+ #define CF_FORMAT_FUNCTION(F,A)
148
+ #define CF_FORMAT_ARGUMENT(A)
149
+ #endif
150
+ typedef UInt32 CFStringEncoding;
151
+ typedef struct CF_BRIDGED_MUTABLE_TYPE(id) __CFRunLoop * CFRunLoopRef;
152
+ typedef struct CF_BRIDGED_MUTABLE_TYPE(id) __CFRunLoopSource * CFRunLoopSourceRef;
153
+ #if __has_attribute(swift_wrapper)
154
+ #define _CF_TYPED_EXTENSIBLE_ENUM __attribute__((swift_wrapper(struct)))
155
+ #else
156
+ #define _CF_TYPED_EXTENSIBLE_ENUM
157
+ #endif
158
+ #define CF_EXTENSIBLE_STRING_ENUM _CF_TYPED_EXTENSIBLE_ENUM
159
+ typedef CFStringRef CFRunLoopMode CF_EXTENSIBLE_STRING_ENUM;
160
+ #if __has_attribute(__swift_attr__)
161
+ # define CF_SWIFT_UNAVAILABLE_FROM_ASYNC(msg) __attribute__((__swift_attr__("@_unavailableFromAsync(message: \"" msg "\")")))
162
+ #else
163
+ # define CF_SWIFT_UNAVAILABLE_FROM_ASYNC(msg)
164
+ #endif
165
+ #define CF_EXPORT extern
166
+ #ifdef __cplusplus
167
+ extern "C" {
168
+ #endif
169
+ CF_EXPORT const CFRunLoopMode kCFRunLoopDefaultMode;
170
+ CF_SWIFT_UNAVAILABLE_FROM_ASYNC("CFRunLoopGetCurrent cannot be used from async contexts.")
171
+ CF_EXPORT CFRunLoopRef CFRunLoopGetCurrent(void);
172
+ #ifdef __cplusplus
173
+ }
174
+ #endif
139
175
  extern Boolean CFStringTransform(CFMutableStringRef string, CFRange *range, CFStringRef transform, Boolean reverse);
140
176
  extern const CFStringRef kCFBundleExecutableKey;
141
177
  extern const CFStringRef kCFBundleIdentifierKey;