peachsim 0.1.1684 → 0.1.1692

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 (254) hide show
  1. package/cli/commands/coverage-swift.ts +72 -5
  2. package/cli/commands/inspect/actions.ts +1 -0
  3. package/cli/commands/screenshot.ts +12 -0
  4. package/dist-lib/agent-daemon-client.cjs +1 -1
  5. package/dist-lib/agent-events.cjs +1 -1
  6. package/dist-lib/attached-projects.cjs +1 -1
  7. package/dist-lib/auth/shared-session.cjs +1 -1
  8. package/dist-lib/backend-origin.cjs +1 -1
  9. package/dist-lib/beta.cjs +1 -1
  10. package/dist-lib/beta.mjs +1 -1
  11. package/dist-lib/bridge-constants.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.mjs +1 -1
  14. package/dist-lib/bridge-contract.cjs +1 -1
  15. package/dist-lib/bridge-contract.mjs +1 -1
  16. package/dist-lib/bundle-channel.cjs +2252 -1462
  17. package/dist-lib/capture-contract.cjs +1 -1
  18. package/dist-lib/capture-contract.mjs +1 -1
  19. package/dist-lib/cloud-contract.cjs +1 -1
  20. package/dist-lib/cloud-contract.mjs +1 -1
  21. package/dist-lib/cloud-test-args.cjs +1 -1
  22. package/dist-lib/cloud-test-args.mjs +1 -1
  23. package/dist-lib/cloud.cjs +1 -1
  24. package/dist-lib/cloud.mjs +1 -1
  25. package/dist-lib/config.cjs +1 -1
  26. package/dist-lib/config.mjs +1 -1
  27. package/dist-lib/detox/index.cjs +1 -1
  28. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  29. package/dist-lib/expo-swift-bundle.cjs +1762 -995
  30. package/dist-lib/expo-swift-metadata.cjs +1 -1
  31. package/dist-lib/expo-swift-metadata.mjs +1 -1
  32. package/dist-lib/home-paths.cjs +1 -1
  33. package/dist-lib/host/bridge-host.cjs +2184 -1417
  34. package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
  35. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  36. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  37. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  38. package/dist-lib/host/websocket-proxy.cjs +1 -1
  39. package/dist-lib/index.cjs +175 -69
  40. package/dist-lib/jump-to-source-babel.cjs +1 -1
  41. package/dist-lib/jump-to-source-native.cjs +1 -1
  42. package/dist-lib/kotlin-host.cjs +1 -1
  43. package/dist-lib/menu.cjs +1 -1
  44. package/dist-lib/menu.mjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  47. package/dist-lib/metro-production-bundle.cjs +1 -1
  48. package/dist-lib/metro-production-bundle.mjs +1 -1
  49. package/dist-lib/metro.cjs +174 -68
  50. package/dist-lib/native-app-identity-project.cjs +163 -51
  51. package/dist-lib/native-app-identity-project.mjs +206 -82
  52. package/dist-lib/native-app-identity.cjs +1 -1
  53. package/dist-lib/native-app-identity.mjs +1 -1
  54. package/dist-lib/native-firebase-metadata.cjs +1 -1
  55. package/dist-lib/native-firebase-metadata.mjs +1 -1
  56. package/dist-lib/plist.cjs +1 -1
  57. package/dist-lib/plist.mjs +1 -1
  58. package/dist-lib/profiles.cjs +1 -1
  59. package/dist-lib/public-brand.cjs +1 -1
  60. package/dist-lib/public-origins-lib-esm.json +26 -23
  61. package/dist-lib/public-origins-lib.json +74 -61
  62. package/dist-lib/react-native-host-modules.cjs +1 -1
  63. package/dist-lib/react-native-host-modules.mjs +1 -1
  64. package/dist-lib/reap-browser.cjs +1 -1
  65. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  66. package/dist-lib/sdk.cjs +2 -2
  67. package/dist-lib/sdk.mjs +2 -2
  68. package/dist-lib/skills.cjs +2633 -1840
  69. package/dist-lib/swift-compile.cjs +2478 -100
  70. package/dist-lib/swift-compile.mjs +2475 -100
  71. package/dist-lib/swift-package.cjs +108 -50
  72. package/dist-lib/swift-package.mjs +104 -50
  73. package/dist-lib/swift-submit.cjs +1 -1
  74. package/dist-lib/swift-submit.mjs +1 -1
  75. package/dist-lib/swift-toolchain.cjs +1 -1
  76. package/dist-lib/swift.cjs +1 -1
  77. package/dist-lib/vite-swift.cjs +3979 -985
  78. package/dist-lib/vite.cjs +12 -18
  79. package/dist-lib/worklet-executable.cjs +7 -4
  80. package/dist-lib/worklet-executable.mjs +7 -4
  81. package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +15 -1
  82. package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +6 -0
  83. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  84. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -2
  85. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  86. package/package.json +1 -1
  87. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +9 -0
  88. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLAvailability.h +22 -0
  89. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBackgroundActivitySession.h +145 -0
  90. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityCondition.h +113 -0
  91. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +34 -0
  92. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +225 -0
  93. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBody.h +26 -0
  94. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularGeographicCondition.h +59 -0
  95. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +64 -0
  96. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCondition.h +48 -0
  97. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLError.h +52 -0
  98. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLErrorDomain.h +24 -0
  99. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +55 -0
  100. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +117 -0
  101. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocation.h +9 -0
  102. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +45 -0
  103. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +877 -0
  104. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManagerDelegate.h +225 -0
  105. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceError.h +33 -0
  106. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceExtension.h +28 -0
  107. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationUpdater.h +250 -0
  108. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitor.h +140 -0
  109. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitorConfiguration.h +77 -0
  110. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringEvent.h +184 -0
  111. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringRecord.h +57 -0
  112. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +98 -0
  113. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +123 -0
  114. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLServiceSession.h +211 -0
  115. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +66 -0
  116. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.h +46 -0
  117. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Modules/module.modulemap +7 -0
  118. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +96 -2
  119. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h +52 -0
  120. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +240 -0
  121. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceRef.h +474 -0
  122. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h +66 -0
  123. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Modules/module.modulemap +10 -0
  124. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4AccelerationStructure.h +9 -0
  125. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Archive.h +16 -0
  126. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ArgumentTable.h +17 -0
  127. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunction.h +13 -0
  128. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunctionDescriptor.h +14 -0
  129. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BufferRange.h +79 -0
  130. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandAllocator.h +15 -0
  131. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandBuffer.h +17 -0
  132. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandEncoder.h +16 -0
  133. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandQueue.h +19 -0
  134. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommitFeedback.h +15 -0
  135. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Compiler.h +13 -0
  136. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CompilerTask.h +13 -0
  137. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputeCommandEncoder.h +19 -0
  138. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputePipeline.h +13 -0
  139. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Counters.h +19 -0
  140. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4FunctionDescriptor.h +13 -0
  141. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryDescriptor.h +13 -0
  142. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryFunctionDescriptor.h +13 -0
  143. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LinkingDescriptor.h +13 -0
  144. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningCommandEncoder.h +17 -0
  145. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningPipeline.h +13 -0
  146. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MeshRenderPipeline.h +13 -0
  147. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineDataSetSerializer.h +13 -0
  148. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineState.h +13 -0
  149. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderCommandEncoder.h +17 -0
  150. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPass.h +17 -0
  151. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPipeline.h +13 -0
  152. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4SpecializedFunctionDescriptor.h +13 -0
  153. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4StitchedFunctionDescriptor.h +13 -0
  154. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4TileRenderPipeline.h +13 -0
  155. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructure.h +1212 -0
  156. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureCommandEncoder.h +322 -0
  157. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureTypes.h +224 -0
  158. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAllocation.h +22 -0
  159. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgument.h +279 -0
  160. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgumentEncoder.h +199 -0
  161. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBinaryArchive.h +142 -0
  162. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitCommandEncoder.h +266 -0
  163. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitPass.h +82 -0
  164. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBuffer.h +94 -0
  165. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureManager.h +113 -0
  166. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureScope.h +43 -0
  167. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandBuffer.h +449 -0
  168. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandEncoder.h +148 -0
  169. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h +102 -0
  170. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputeCommandEncoder.h +350 -0
  171. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePass.h +90 -0
  172. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h +274 -0
  173. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCounters.h +225 -0
  174. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDataType.h +232 -0
  175. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h +39 -0
  176. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDepthStencil.h +93 -0
  177. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h +1122 -0
  178. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDeviceCertification.h +29 -0
  179. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDrawable.h +36 -0
  180. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDynamicLibrary.h +81 -0
  181. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLEvent.h +79 -0
  182. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFence.h +22 -0
  183. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionConstantValues.h +30 -0
  184. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionDescriptor.h +95 -0
  185. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionHandle.h +29 -0
  186. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionLog.h +37 -0
  187. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionStitching.h +131 -0
  188. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLGPUAddress.h +19 -0
  189. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLHeap.h +284 -0
  190. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandBuffer.h +10 -0
  191. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandQueue.h +11 -0
  192. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCompressor.h +10 -0
  193. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandBuffer.h +157 -0
  194. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandEncoder.h +110 -0
  195. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIntersectionFunctionTable.h +186 -0
  196. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h +549 -0
  197. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLinkedFunctions.h +57 -0
  198. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLogState.h +65 -0
  199. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLParallelRenderCommandEncoder.h +77 -0
  200. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPipeline.h +57 -0
  201. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPixelFormat.h +342 -0
  202. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRasterizationRate.h +323 -0
  203. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +1068 -0
  204. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h +411 -0
  205. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPipeline.h +788 -0
  206. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResidencySet.h +141 -0
  207. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h +307 -0
  208. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStateCommandEncoder.h +125 -0
  209. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStatePass.h +85 -0
  210. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceViewPool.h +22 -0
  211. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLSampler.h +252 -0
  212. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLStageInputOutputDescriptor.h +158 -0
  213. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h +17 -0
  214. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h +460 -0
  215. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTextureViewPool.h +18 -0
  216. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h +125 -0
  217. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVertexDescriptor.h +153 -0
  218. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVisibleFunctionTable.h +45 -0
  219. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/Metal.h +94 -0
  220. package/sdk/ios/System/Library/Frameworks/Metal.framework/Modules/module.modulemap +6 -0
  221. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTDefines.h +35 -0
  222. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTTagClass.h +33 -0
  223. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTType.h +504 -0
  224. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLEssentialsAvailability.h +14 -0
  225. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLLocationEssentials.h +444 -0
  226. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/LocationEssentials.h +14 -0
  227. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Modules/module.modulemap +14 -0
  228. package/sdk/ios/usr/include/complex.h +167 -0
  229. package/sdk/ios/usr/include/dispatch/dispatch.h +5 -0
  230. package/sdk/ios/usr/include/mach/mach_types.h +1 -0
  231. package/sdk/ios/usr/include/math.h +835 -2
  232. package/sdk/ios/usr/include/sys/cdefs.h +0 -1
  233. package/src/generated/swift-c-predefines.json +1988 -0
  234. package/src/nitro-bundle.ts +1 -0
  235. package/src/nitro-compile.ts +4 -0
  236. package/src/nitroContract.ts +18 -2
  237. package/src/swift-compile.ts +446 -49
  238. package/src/swift-coverage/package.ts +3 -1
  239. package/src/swift-coverage/xcode-assets.ts +62 -2
  240. package/src/swift-coverage/xcode-packages.ts +11 -6
  241. package/src/swift-host.ts +333 -57
  242. package/src/swift-objc-compile.ts +20 -5
  243. package/src/swift-objc-standin.ts +21 -11
  244. package/src/swift-package-manifest.ts +151 -28
  245. package/src/swift-package.ts +134 -58
  246. package/src/swift-packages.ts +141 -44
  247. package/src/swift-source-file.ts +10 -15
  248. package/src/swift-standins.ts +87 -13
  249. package/src/swift-submit.ts +5 -0
  250. package/src/swiftContract.ts +160 -75
  251. package/src/target-matcher.ts +15 -2
  252. package/src/worklet-executable.ts +7 -3
  253. package/src/xcode-json-project.ts +14 -2
  254. package/src/xcode-project.ts +154 -59
@@ -0,0 +1,79 @@
1
+ //
2
+ // MTL4BufferRange.h
3
+ // Metal
4
+ //
5
+ // Copyright (c) 2025 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #ifdef __METAL_VERSION__
9
+
10
+ #import <metal_stdlib>
11
+ #import <Metal/MTLGPUAddress.h>
12
+
13
+ #else
14
+
15
+ #include <stdint.h>
16
+
17
+ #ifndef _WIN32
18
+ #import <Metal/MTLDefines.h>
19
+ #import <Metal/MTLGPUAddress.h>
20
+ #else
21
+ #include <Metal/MTLDefines.h>
22
+ #include <Metal/MTLGPUAddress.h>
23
+ #endif // _WIN32
24
+
25
+ #endif
26
+
27
+ /**
28
+ * @brief A struct representing a range of a Metal buffer. The offset into the buffer is included in the address.
29
+ * The length is generally optional, which a value of (uint64_t)-1 representing the range from the given address to
30
+ * the end of the buffer. However, providing the length can enable more accurate API validation, especially when
31
+ * sub-allocating ranges of a buffer.
32
+ */
33
+ typedef struct MTL4BufferRange {
34
+ /**
35
+ * @brief Buffer address returned by the gpuAddress property of an MTLBuffer plus any offset into the buffer
36
+ */
37
+ MTLGPUAddress bufferAddress;
38
+
39
+ /**
40
+ * @brief Length of the region which begins at the given address. If the length is not known, a value of
41
+ * (uint64_t)-1 represents the range from the given address to the end of the buffer.
42
+ */
43
+ uint64_t length;
44
+
45
+ #ifdef __cplusplus
46
+ MTL4BufferRange()
47
+ : bufferAddress(0),
48
+ length(0)
49
+ {
50
+ }
51
+
52
+ MTL4BufferRange(MTLGPUAddress bufferAddress)
53
+ : bufferAddress(bufferAddress),
54
+ length((uint64_t)-1)
55
+ {
56
+ }
57
+
58
+ MTL4BufferRange(MTLGPUAddress bufferAddress, uint64_t length)
59
+ : bufferAddress(bufferAddress),
60
+ length(length)
61
+ {
62
+ }
63
+ #endif
64
+ } MTL4BufferRange;
65
+
66
+ #ifndef __METAL_VERSION__
67
+ /**
68
+ * @brief Create a buffer range from a buffer's GPU address (given by the gpuAddress property) and length. A length of
69
+ * (uint64_t)-1 represents the the range from the given address to the end of the buffer.
70
+ */
71
+ MTL_INLINE MTL4BufferRange MTL4BufferRangeMake(MTLGPUAddress bufferAddress, uint64_t length) {
72
+ MTL4BufferRange range;
73
+
74
+ range.bufferAddress = bufferAddress;
75
+ range.length = length;
76
+
77
+ return range;
78
+ }
79
+ #endif
@@ -0,0 +1,15 @@
1
+ //
2
+ // MTL4CommandAllocator.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4CommandAllocator_h
9
+ #define MTL4CommandAllocator_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+ #import <Metal/MTLDevice.h>
13
+
14
+
15
+ #endif //MTL4CommandAllocator_h
@@ -0,0 +1,17 @@
1
+ //
2
+ // MTL4CommandBuffer.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4CommandBuffer_h
9
+ #define MTL4CommandBuffer_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+ #import <Metal/MTLCommandBuffer.h>
13
+ #import <Metal/MTL4RenderCommandEncoder.h>
14
+ #import <Metal/MTL4BufferRange.h>
15
+
16
+
17
+ #endif //MTL4CommandBuffer_h
@@ -0,0 +1,16 @@
1
+ //
2
+ // MTL4CommandEncoder.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4CommandEncoder_h
9
+ #define MTL4CommandEncoder_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+ #import <Metal/MTLFence.h>
13
+ #import <Metal/MTLCommandEncoder.h>
14
+
15
+
16
+ #endif //MTL4CommandEncoder_h
@@ -0,0 +1,19 @@
1
+ //
2
+ // MTL4CommandQueue.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024-2025 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4CommandQueue_h
9
+ #define MTL4CommandQueue_h
10
+
11
+ #import <Metal/MTL4CommandBuffer.h>
12
+ #import <Metal/MTL4CommandEncoder.h>
13
+ #import <Metal/MTLTypes.h>
14
+ #import <Metal/MTLEvent.h>
15
+ #import <Metal/MTL4CommitFeedback.h>
16
+ #import <Metal/MTLResourceStateCommandEncoder.h>
17
+
18
+
19
+ #endif //MTL4CommandQueue_h
@@ -0,0 +1,15 @@
1
+ //
2
+ // MTL4CommitFeedback.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4CommitFeedback_h
9
+ #define MTL4CommitFeedback_h
10
+
11
+ #import <Foundation/Foundation.h>
12
+ #import <Metal/MTLDefines.h>
13
+
14
+
15
+ #endif // MTL4CommitFeedback_h
@@ -0,0 +1,13 @@
1
+ //
2
+ // MTL4Compiler.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4Compiler_h
9
+ #define MTL4Compiler_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+
13
+ #endif // MTL4Compiler_h
@@ -0,0 +1,13 @@
1
+ //
2
+ // MTL4CompilerTask.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4CompilerTask_h
9
+ #define MTL4CompilerTask_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+
13
+ #endif // MTL4CompilerTask_h
@@ -0,0 +1,19 @@
1
+ //
2
+ // MTL4ComputeCommandEncoder.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4ComputeCommandEncoder_h
9
+ #define MTL4ComputeCommandEncoder_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+ #import <Metal/MTLBlitCommandEncoder.h>
13
+
14
+ #import <Metal/MTL4CommandEncoder.h>
15
+ #import <Metal/MTL4AccelerationStructure.h>
16
+ #import <Metal/MTL4Counters.h>
17
+
18
+
19
+ #endif //MTL4ComputeCommandEncoder_h
@@ -0,0 +1,13 @@
1
+ //
2
+ // MTL4ComputePipeline.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4ComputePipeline_h
9
+ #define MTL4ComputePipeline_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+
13
+ #endif // MTL4ComputePipeline_h
@@ -0,0 +1,19 @@
1
+ //
2
+ // MTL4Counters.h
3
+ // Metal
4
+ //
5
+ // Copyright (c) 2024 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4Counters_h
9
+ #define MTL4Counters_h
10
+
11
+ #import <Foundation/Foundation.h>
12
+ #import <Metal/MTLDefines.h>
13
+
14
+ NS_ASSUME_NONNULL_BEGIN
15
+
16
+
17
+ NS_ASSUME_NONNULL_END
18
+
19
+ #endif /* MTL4Counters_h */
@@ -0,0 +1,13 @@
1
+ //
2
+ // MTL4FunctionDescriptor.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4FunctionDescriptor_h
9
+ #define MTL4FunctionDescriptor_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+
13
+ #endif // MTL4FunctionDescriptor_h
@@ -0,0 +1,13 @@
1
+ //
2
+ // MTL4LibraryDescriptor.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4LibraryDescriptor_h
9
+ #define MTL4LibraryDescriptor_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+
13
+ #endif // MTL4LibraryDescriptor_h
@@ -0,0 +1,13 @@
1
+ //
2
+ // MTL4LibraryFunctionDescriptor.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4LibraryFunctionDescriptor_h
9
+ #define MTL4LibraryFunctionDescriptor_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+
13
+ #endif // MTL4LibraryFunctionDescriptor_h
@@ -0,0 +1,13 @@
1
+ //
2
+ // MTL4LinkingDescriptor.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2025 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4LinkingDescriptor_h
9
+ #define MTL4LinkingDescriptor_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+
13
+ #endif // MTL4LinkingDescriptor_h
@@ -0,0 +1,17 @@
1
+ //
2
+ // MTL4MachineLearningCommandEncoder.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4MachineLearningCommandEncoder_h
9
+ #define MTL4MachineLearningCommandEncoder_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+ #import <Metal/MTLBlitCommandEncoder.h>
13
+
14
+ #import <Metal/MTL4CommandEncoder.h>
15
+
16
+
17
+ #endif //MTL4MachineLearningCommandEncoder_h
@@ -0,0 +1,13 @@
1
+ //
2
+ // MTL4MachineLearningPipeline.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4MachineLearningPipeline_h
9
+ #define MTL4MachineLearningPipeline_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+
13
+ #endif // MTL4MachineLearningPipeline_h
@@ -0,0 +1,13 @@
1
+ //
2
+ // MTL4MeshRenderPipeline.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4MeshRenderPipeline_h
9
+ #define MTL4MeshRenderPipeline_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+
13
+ #endif // MTL4MeshRenderPipeline_h
@@ -0,0 +1,13 @@
1
+ //
2
+ // MTL4PipelineDataSetSerializer.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4PipelineDataSetSerializer_h
9
+ #define MTL4PipelineDataSetSerializer_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+
13
+ #endif // MTL4PipelineDataSetSerializer_h
@@ -0,0 +1,13 @@
1
+ //
2
+ // MTL4PipelineState.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4PipelineState_h
9
+ #define MTL4PipelineState_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+
13
+ #endif // MTL4PipelineState_h
@@ -0,0 +1,17 @@
1
+ //
2
+ // MTL4RenderCommandEncoder.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4RenderCommandEncoder_h
9
+ #define MTL4RenderCommandEncoder_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+ #import <Metal/MTLRenderCommandEncoder.h>
13
+ #import <Metal/MTL4CommandEncoder.h>
14
+ #import <Metal/MTL4Counters.h>
15
+
16
+
17
+ #endif //MTL4RenderCommandEncoder_h
@@ -0,0 +1,17 @@
1
+ //
2
+ // MTL4RenderPass.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4RenderPass_h
9
+ #define MTL4RenderPass_h
10
+
11
+ #import <Foundation/Foundation.h>
12
+
13
+ #import <Metal/MTLDefines.h>
14
+ #import <Metal/MTLRenderPass.h>
15
+
16
+
17
+ #endif //MTL4RenderPass_h
@@ -0,0 +1,13 @@
1
+ //
2
+ // MTL4RenderPipeline.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4RenderPipeline_h
9
+ #define MTL4RenderPipeline_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+
13
+ #endif // MTL4RenderPipeline_h
@@ -0,0 +1,13 @@
1
+ //
2
+ // MTL4SpecializedFunction.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4SpecializedFunctionDescriptor_h
9
+ #define MTL4SpecializedFunctionDescriptor_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+
13
+ #endif // MTL4SpecializedFunction_h
@@ -0,0 +1,13 @@
1
+ //
2
+ // MTL4StitchedFunctionDescriptor.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4StitchedFunctionDescriptor_h
9
+ #define MTL4StitchedFunctionDescriptor_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+
13
+ #endif // MTL4StitchedFunctionDescriptor_h
@@ -0,0 +1,13 @@
1
+ //
2
+ // MTL4TileRenderPipeline.h
3
+ // Metal
4
+ //
5
+ // Copyright © 2024 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #ifndef MTL4TileRenderPipeline_h
9
+ #define MTL4TileRenderPipeline_h
10
+
11
+ #import <Metal/MTLDefines.h>
12
+
13
+ #endif // MTL4TileRenderPipeline_h