peachsim 0.1.2208 → 0.1.2210

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 (139) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +1 -1
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +1 -1
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +1 -1
  13. package/dist-lib/bundle-channel.cjs +712 -66
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +1 -1
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +1 -1
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +1 -1
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +1 -1
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +1 -1
  24. package/dist-lib/detox/index.cjs +2 -2
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +700 -60
  27. package/dist-lib/expo-swift-metadata.cjs +1 -1
  28. package/dist-lib/expo-swift-metadata.mjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +712 -66
  31. package/dist-lib/host/fetch-proxy-handler.cjs +17 -4
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +17 -4
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +7 -1
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +17 -4
  47. package/dist-lib/native-app-identity-project.cjs +15 -2
  48. package/dist-lib/native-app-identity-project.mjs +15 -2
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/pdfium-raster.cjs +1 -1
  54. package/dist-lib/pdfium-raster.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/public-origins-lib-esm.json +24 -24
  60. package/dist-lib/public-origins-lib.json +69 -53
  61. package/dist-lib/react-native-host-modules.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.mjs +1 -1
  63. package/dist-lib/reap-browser.cjs +1 -1
  64. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  65. package/dist-lib/sdk.cjs +1 -1
  66. package/dist-lib/sdk.mjs +1 -1
  67. package/dist-lib/skills.cjs +5679 -358
  68. package/dist-lib/swift-compile.cjs +154 -16
  69. package/dist-lib/swift-compile.mjs +153 -16
  70. package/dist-lib/swift-package.cjs +1 -1
  71. package/dist-lib/swift-package.mjs +1 -1
  72. package/dist-lib/swift-submit.cjs +1 -1
  73. package/dist-lib/swift-submit.mjs +1 -1
  74. package/dist-lib/swift-toolchain.cjs +1 -1
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +600 -55
  77. package/dist-lib/vite.cjs +17 -4
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/dist-types/packages/peach-engine/src/engine/animated.d.ts +2 -1
  81. package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +1 -0
  82. package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +6 -0
  83. package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
  84. package/dist-types/packages/peach-engine/src/engine/types.d.ts +1 -0
  85. package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +8 -0
  86. package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +3 -0
  87. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +14 -0
  88. package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/render-tree.d.ts +18 -0
  89. package/kotlin/sdk.tar.gz +0 -0
  90. package/package.json +1 -1
  91. package/runtime-companion.json +1 -1
  92. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCompoundPredicate.h +1 -1
  93. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExpression.h +1 -1
  94. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h +1 -1
  95. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurementFormatter.h +1 -1
  96. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectCollection.h +27 -0
  97. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectSection.h +24 -0
  98. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/Intents.h +9 -0
  99. package/sdk/ios/System/Library/Frameworks/Intents.framework/Modules/module.modulemap +5 -0
  100. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h +2 -0
  101. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFeedbackGenerator.h +1 -1
  102. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImpactFeedbackGenerator.h +1 -1
  103. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +21 -0
  104. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINibLoading.h +1 -1
  105. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h +1 -1
  106. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISelectionFeedbackGenerator.h +1 -1
  107. package/sdk/ios/usr/include/ObjectiveC.apinotes +7 -0
  108. package/sdk/ios/usr/lib/swift/Combine.swiftmodule/arm64-apple-ios-simulator.swiftinterface +18 -0
  109. package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -0
  110. package/sdk/ios/usr/lib/swift/SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +19 -0
  111. package/sdk/ios/usr/lib/swift/SwiftUICore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
  112. package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
  113. package/sdk/ios/wasm/include/pthread.h +1 -0
  114. package/sdk/ios/wasm/include/signal.h +2 -2
  115. package/sdk/native-hashes.json +3 -3
  116. package/src/android-theme.ts +136 -2
  117. package/src/expo-swift-host.ts +90 -1
  118. package/src/generated/android-framework-text.json +4566 -0
  119. package/src/generated/android-framework-themes.json +11 -0
  120. package/src/kotlin-app.ts +24 -4
  121. package/src/kotlin-host.ts +9 -0
  122. package/src/native-static-libraries.ts +7 -0
  123. package/src/nitro-adapter.lock.json +246 -246
  124. package/src/nitro-superset.lock.json +4 -4
  125. package/src/swift-compile.ts +168 -12
  126. package/src/swift-distribution.lock.json +8 -8
  127. package/src/swift-host.ts +22 -3
  128. package/src/swift-objc-compile.ts +1 -1
  129. package/src/swift-objc-import.ts +32 -2
  130. package/src/swift-objc-standin.ts +10 -3
  131. package/src/swift-packages.ts +53 -28
  132. package/src/swift-pdf-raster.ts +60 -4
  133. package/src/swift-shared-sdk.ts +2 -1
  134. package/src/swift-shipped-archives.json +44 -0
  135. package/src/swift-shipped-binaries.ts +12 -0
  136. package/src/swift-standin-builtin-behavior.ts +248 -0
  137. package/src/swift-standin-emit.ts +11 -3
  138. package/src/swift-standins.ts +92 -13
  139. package/src/turbo-runtime.lock.json +17 -17
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2208 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2210 | (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;
@@ -1416,7 +1416,7 @@ function isValidRuntimeVersion(value) {
1416
1416
  }
1417
1417
 
1418
1418
  // runtime-companion.json
1419
- var runtime_companion_default = { abi: 1, sha256: "ea69e68003595a371f10dcf33647a3b874bfca09c7b0b41223c752c4d49a8f73", file: "node/cli-ea69e68003595a371f10dcf33647a3b874bfca09c7b0b41223c752c4d49a8f73.cjs" };
1419
+ var runtime_companion_default = { abi: 1, sha256: "8d817e4a68a084ba50456a80439f20c8aa11c055d42c9cf1c7de017062bfd4a2", file: "node/cli-8d817e4a68a084ba50456a80439f20c8aa11c055d42c9cf1c7de017062bfd4a2.cjs" };
1420
1420
 
1421
1421
  // src/answeredNativePackages.ts
1422
1422
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -1909,7 +1909,7 @@ function readIosSdkTree(root) {
1909
1909
 
1910
1910
  // src/swift-standin-digest.ts
1911
1911
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1912
- var STANDIN_SOURCE_DIGEST = true ? "de5c69cdf5f13f704ced14ea451df60f83586f1006377836b423f3bb3d2ffce8" : standinSourceDigest();
1912
+ var STANDIN_SOURCE_DIGEST = true ? "9adf53d6f1cfece1b7a3e23bad712630278818d71b5b718384cf640144349600" : standinSourceDigest();
1913
1913
 
1914
1914
  // src/expo-native-workspace.ts
1915
1915
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -5403,7 +5403,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
5403
5403
  var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
5404
5404
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
5405
5405
  ).join("");
5406
- var compilerSourceDigest = true ? "be03c2edac4dfeffbfd874f5ea7a11c25067194164940d7e7c5fa34ead584e7a" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
5406
+ var compilerSourceDigest = true ? "4fa3e84f8c3b585bc8e864c92f0682e6f02757d455de1ce784f0d40ba9df875a" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
5407
5407
  var CORE_FOUNDATION_HANDLE_IMPORTS = [
5408
5408
  "CFAllocator",
5409
5409
  "CFArray",
@@ -5423,6 +5423,19 @@ var CORE_FOUNDATION_HANDLE_IMPORTS = [
5423
5423
  "import typealias CoreFoundation.CFTypeRef",
5424
5424
  "import CoreGraphics"
5425
5425
  ]).join("; ");
5426
+ var emptyMacroEnvironment = {
5427
+ defines: /* @__PURE__ */ new Map(),
5428
+ predefines: /* @__PURE__ */ new Map(),
5429
+ targetDefined: /* @__PURE__ */ new Set()
5430
+ };
5431
+ var wasmMacroEnvironment = {
5432
+ ...emptyMacroEnvironment,
5433
+ defines: /* @__PURE__ */ new Map([
5434
+ ["__wasm__", "1"],
5435
+ ["__wasm32__", "1"],
5436
+ ["__wasi__", "1"]
5437
+ ])
5438
+ };
5426
5439
  var ROOT_LOCKS = Symbol.for("peachsim.swiftCompile.rootLocks");
5427
5440
  var host = globalThis;
5428
5441
  var rootLocks = host[ROOT_LOCKS] ??= /* @__PURE__ */ new Map();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2208 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2210 | (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.2208 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2210 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -1,5 +1,5 @@
1
1
  import { type AnimatedArithmetic } from './animation-graph.d.ts';
2
- import { type TaggedBezierEasing } from './animation-graph.d.ts';
2
+ import { type NativeAnimationGraph, type TaggedBezierEasing } from './animation-graph.d.ts';
3
3
  import { type SpringSampler } from './rn-spring.d.ts';
4
4
  declare function cubicBezier(x1: number, y1: number, x2: number, y2: number): TaggedBezierEasing;
5
5
  export declare const Easing: {
@@ -142,6 +142,7 @@ export interface TimingConfig {
142
142
  inputRange: number[];
143
143
  outputRange: number[];
144
144
  };
145
+ curve?: NativeAnimationGraph;
145
146
  }
146
147
  export declare function setLockstepCaptureActive(active: boolean): void;
147
148
  export declare function timing(value: AnimatedValue, config: TimingConfig): Animation;
@@ -131,6 +131,7 @@ export declare const CUBIC_BEZIER_IDENTITY_X2: number;
131
131
  export declare function sampleCubicBezierEasing(x: number, x1: number, y1: number, x2: number, y2: number): number;
132
132
  export declare function sampleNativeAnimationGraph(graph: NativeAnimationGraph, epochMs: number): number;
133
133
  export declare function isNativeAnimationGraphSettled(graph: NativeAnimationGraph, epochMs: number): boolean;
134
+ export declare function curveLeafParams(leaf: CurveAnimationGraph): number[];
134
135
  export declare function getNativeAnimationGraphEndEpochMs(graph: NativeAnimationGraph): number | null;
135
136
  export declare function createSpringAnimationGraph(fromValue: number, resolved: ResolvedSpring, toValue: number, anchorEpochMs: number, fixedDurationMs?: number, anchorOffsetMs?: number): SpringAnimationGraph | null;
136
137
  export interface TaggedBezierEasing {
@@ -275,6 +275,12 @@ export declare function prewarmLiquidGlassPrograms(ck: CanvasKit, sourceSurface:
275
275
  export declare function drawLiquidGlassEdge(ck: CanvasKit, canvas: Canvas, dpr: number, x: number, y: number, w: number, h: number, config: LiquidGlassEdgeConfig): void;
276
276
  export declare const LIQUID_GLASS_MOVING = 1;
277
277
  export declare const LIQUID_GLASS_REPLAYABLE = 2;
278
+ export interface PublishedGlassProgram {
279
+ readonly kinds: number[];
280
+ uikit: Float64Array | null;
281
+ }
282
+ export declare function recordGlassPrograms(): void;
283
+ export declare function publishedGlassProgram(slot: number): PublishedGlassProgram | undefined;
278
284
  export declare function beginLiquidGlassProgram(ck: CanvasKit, slot: number, id: number, width: number, height: number, x?: number, y?: number, fixed?: boolean, rect?: NonNullable<ReturnType<typeof resolveAnimatedLiquidGlassRect>>, capturePadding?: number): void;
279
285
  export declare function endLiquidGlassProgram(ck: CanvasKit): void;
280
286
  export declare function liquidGlassProgramCommand(ck: CanvasKit, kind: number, x: number, y: number, width: number, height: number, values?: readonly number[]): void;
@@ -208,6 +208,7 @@ export declare class SootSimNode {
208
208
  _wireContentRevision: number;
209
209
  _wireShapeRevision: number;
210
210
  _styleEpoch: number;
211
+ _subtreeStyleEpoch: number;
211
212
  _nativeAnimationScanRevision: number;
212
213
  _nativeAnimationScanKeysRevision: number;
213
214
  _nativeAnimationScanMayMark: boolean;
@@ -725,6 +725,7 @@ export interface RenderContext extends RenderContextBase {
725
725
  flatBake?: boolean;
726
726
  flattenedGroup?: SootSimNode;
727
727
  sourceRoot?: SootSimNode;
728
+ layerRoot?: SootSimNode;
728
729
  sourceMaterial?: 'shared';
729
730
  flatAncestor?: boolean;
730
731
  flatDeps?: [boolean];
@@ -396,6 +396,14 @@ export declare class GraphiteDeviceContext {
396
396
  readonly format: GPUTextureFormat;
397
397
  readonly byteSize: number;
398
398
  }): GraphiteTextureSurface;
399
+ adoptTextureSurface(options: {
400
+ readonly texture: WebGpuTexturePort;
401
+ readonly identity: GraphiteTextureIdentity;
402
+ readonly width: number;
403
+ readonly height: number;
404
+ readonly format: GPUTextureFormat;
405
+ readonly usage: number;
406
+ }): GraphiteTextureSurface;
399
407
  createPresentationSurface(texture: GraphiteOwnedTexture): GraphiteNativeSurfacePort;
400
408
  assertOwnsTexture(texture: GraphiteOwnedTexture): void;
401
409
  assertOwnsBuffer(buffer: GraphiteOwnedBuffer): void;
@@ -2,6 +2,7 @@ import type { CanvasKitRenderingApi } from '../engine/canvaskit-api.d.ts';
2
2
  import type { SharedDeviceImageBridge } from '../engine/image-loader.d.ts';
3
3
  import type { CompositorCadenceStats, CompositorHostToWorker, CompositorStats, CompositorSurfaceId, GraphiteAdapterIdentity, GraphiteDeviceCacheSnapshot, ShellToCompositorMessage } from './compositor-protocol.d.ts';
4
4
  import type { GPUUploadTrace } from './compositor-protocol.d.ts';
5
+ import type { RenderTree } from './compositor-runtime/render-tree.d.ts';
5
6
  import type { WebGpuGraphiteSubmissionBudget } from './webgpu-frame-transaction.d.ts';
6
7
  import type { WebGpuReadbackKind } from './webgpu-readback-scheduler.d.ts';
7
8
  import type { FontMgr, Image as SkImage, Surface } from 'canvaskit-wasm';
@@ -146,6 +147,8 @@ export interface CompositorGpuBackend {
146
147
  releaseDisplay(display: CompositorGpuDisplay): void;
147
148
  createScratch(display: CompositorGpuDisplay, generation: number, width: number, height: number): CompositorGpuTarget;
148
149
  retireScratch(target: CompositorGpuTarget): void;
150
+ renderTree(display: CompositorGpuDisplay): RenderTree | null;
151
+ createLayerTarget(display: CompositorGpuDisplay, generation: number, texture: GPUTexture, width: number, height: number): CompositorGpuTarget;
149
152
  readonly programDevice: GPUDevice | null;
150
153
  createProgramTarget(display: CompositorGpuDisplay, generation: number, width: number, height: number): CompositorGpuTarget;
151
154
  programTexture(target: CompositorGpuTarget): GPUTexture;
@@ -1164,6 +1164,20 @@ export interface CompositorStats {
1164
1164
  demotions: number;
1165
1165
  captureFailures: number;
1166
1166
  };
1167
+ layerTree: {
1168
+ loaded: boolean;
1169
+ promoted: number;
1170
+ transactions: number;
1171
+ commits: number;
1172
+ ops: number;
1173
+ };
1174
+ layerClaims: {
1175
+ live: Readonly<Record<string, number>>;
1176
+ claimed: number;
1177
+ ended: number;
1178
+ refusals: Readonly<Record<string, number>>;
1179
+ paintedOver: Readonly<Record<string, string>>;
1180
+ };
1167
1181
  snapshots: {
1168
1182
  intervalMs: number;
1169
1183
  requests: number;
@@ -0,0 +1,18 @@
1
+ export interface RenderTree {
2
+ layerTexture(width: number, height: number): [number, GPUTexture];
3
+ released(): Uint32Array;
4
+ acquire(id: number): void;
5
+ release(id: number): void;
6
+ transaction(ops: Float64Array, published: Uint32Array): void;
7
+ commit(ops: Float64Array, published: Uint32Array): void;
8
+ composite(): Promise<{
9
+ texture: GPUTexture | null;
10
+ done: () => void;
11
+ }>;
12
+ }
13
+ export declare function renderTreeOf(context: object): RenderTree | null;
14
+ export declare class RenderThreadClock {
15
+ #private;
16
+ offsetMs(): number | null;
17
+ sample(): void;
18
+ }
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.2208",
3
+ "version": "0.1.2210",
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":"ea69e68003595a371f10dcf33647a3b874bfca09c7b0b41223c752c4d49a8f73","file":"node/cli-ea69e68003595a371f10dcf33647a3b874bfca09c7b0b41223c752c4d49a8f73.cjs"}
1
+ {"abi":1,"sha256":"8d817e4a68a084ba50456a80439f20c8aa11c055d42c9cf1c7de017062bfd4a2","file":"node/cli-8d817e4a68a084ba50456a80439f20c8aa11c055d42c9cf1c7de017062bfd4a2.cjs"}
@@ -28,7 +28,7 @@ typedef NS_ENUM(NSUInteger, NSCompoundPredicateType) {
28
28
  /// - An `OR` predicate with no subpredicates evaluates to <doc://com.apple.documentation/documentation/swift/false>.
29
29
  /// - A compound predicate with one or more subpredicates evaluates to the truth of its subpredicates.
30
30
  API_AVAILABLE(macos(10.4), ios(3.0), watchos(2.0), tvos(9.0))
31
- PEACH_SWIFT_CLASS(Foundation) @interface NSCompoundPredicate : NSPredicate
31
+ @interface NSCompoundPredicate : NSPredicate
32
32
 
33
33
  /// Returns the receiver that a specified type initializes using predicates from a specified array.
34
34
  ///
@@ -90,7 +90,7 @@ typedef NS_ENUM(NSUInteger, NSExpressionType) {
90
90
  ///
91
91
  /// Although Core Data supports evaluation of the predefined functions, it doesn't support the evaluation of custom predicate functions in the persistent stores (during a fetch).
92
92
  API_AVAILABLE(macos(10.4), ios(3.0), watchos(2.0), tvos(9.0))
93
- PEACH_SWIFT_CLASS(Foundation) @interface NSExpression : NSObject <NSSecureCoding, NSCopying> {
93
+ @interface NSExpression : NSObject <NSSecureCoding, NSCopying> {
94
94
  @package
95
95
  struct _expressionFlags {
96
96
  unsigned int _evaluationBlocked:1;
@@ -77,7 +77,7 @@ typedef NS_OPTIONS(NSUInteger, NSISO8601DateFormatOptions) {
77
77
  /// > Tip:
78
78
  /// > In Swift, you can use ``Date/ISO8601FormatStyle`` rather than ``ISO8601DateFormatter``. The ``FormatStyle`` API offers a declarative idiom for customizing the formatting of various types. Also, Foundation caches identical ``FormatStyle`` instances, so you don't need to pass them around your app, or risk wasting memory with duplicate formatters.
79
79
  API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
80
- PEACH_SWIFT_CLASS(Foundation) @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
80
+ @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
81
81
  @private
82
82
  CFDateFormatterRef _formatter;
83
83
  NSTimeZone *_timeZone;
@@ -29,7 +29,7 @@ typedef NS_OPTIONS(NSUInteger, NSMeasurementFormatterUnitOptions) {
29
29
  /// > Tip:
30
30
  /// > In Swift, you can use ``Measurement/FormatStyle`` rather than ``MeasurementFormatter``. The ``FormatStyle`` API offers a declarative idiom for customizing the formatting of various types. Also, Foundation caches identical ``FormatStyle`` instances, so you don't need to pass them around your app, or risk wasting memory with duplicate formatters.
31
31
  API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
32
- PEACH_SWIFT_CLASS(Foundation) @interface NSMeasurementFormatter : NSFormatter <NSSecureCoding> {
32
+ @interface NSMeasurementFormatter : NSFormatter <NSSecureCoding> {
33
33
  @private
34
34
  void *_formatter;
35
35
  }
@@ -0,0 +1,27 @@
1
+ //
2
+ // INObjectCollection.h
3
+ // Intents
4
+ //
5
+ // Copyright © 2018-2024 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <Intents/INObjectSection.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ API_AVAILABLE(ios(11.0), watchos(4.0), macos(10.12))
14
+ @interface INObjectCollection<ObjectType> : NSObject <NSCopying, NSSecureCoding>
15
+
16
+ @property (readonly, copy, nonatomic) NSArray<INObjectSection<ObjectType> *> *sections;
17
+ @property (readonly, copy, nonatomic) NSArray<ObjectType> *allItems;
18
+ @property (assign, nonatomic) BOOL usesIndexedCollation;
19
+
20
+ - (instancetype)initWithSections:(NSArray<INObjectSection<ObjectType> *> *)sections NS_DESIGNATED_INITIALIZER;
21
+ - (instancetype)initWithItems:(NSArray<ObjectType> *)items;
22
+
23
+ - (instancetype)init NS_UNAVAILABLE;
24
+
25
+ @end
26
+
27
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,24 @@
1
+ //
2
+ // INObjectSection.h
3
+ // Intents
4
+ //
5
+ // Copyright © 2018-2024 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ API_AVAILABLE(ios(11.0), watchos(4.0), macos(10.12))
13
+ @interface INObjectSection<ObjectType> : NSObject <NSCopying, NSSecureCoding>
14
+
15
+ @property (readonly, nullable, copy, nonatomic) NSString *title;
16
+ @property (readonly, copy, nonatomic) NSArray<ObjectType> *items;
17
+
18
+ - (instancetype)initWithTitle:(nullable NSString *)title items:(NSArray<ObjectType> *)items NS_DESIGNATED_INITIALIZER;
19
+
20
+ - (instancetype)init NS_UNAVAILABLE;
21
+
22
+ @end
23
+
24
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,9 @@
1
+ //
2
+ // Intents.h
3
+ // Intents
4
+ //
5
+ // Copyright © 2016-2024 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Intents/INObjectCollection.h>
9
+ #import <Intents/INObjectSection.h>
@@ -0,0 +1,5 @@
1
+ framework module Intents [system] {
2
+ umbrella header "Intents.h"
3
+ export *
4
+ module * { export * }
5
+ }
@@ -21,3 +21,5 @@
21
21
  #import <QuartzCore/CATextLayer.h>
22
22
  #import <QuartzCore/CATiledLayer.h>
23
23
  #import <QuartzCore/CATransformLayer.h>
24
+ #import <QuartzCore/CAEDRMetadata.h>
25
+ #import <QuartzCore/CAMetalLayer.h>
@@ -13,7 +13,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
13
13
 
14
14
  // UIFeedbackGenerator is an abstract class that should not be used directly
15
15
  UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
16
- @interface UIFeedbackGenerator : NSObject
16
+ PEACH_SWIFT_CLASS(UIKitCore) @interface UIFeedbackGenerator : NSObject
17
17
 
18
18
  /// initalize the generator with a view to attach it to the provided view as an interaction.
19
19
  + (instancetype)feedbackGeneratorForView:(UIView *)view NS_SWIFT_NAME(init(view:)) API_AVAILABLE(ios(17.5)) API_UNAVAILABLE(visionos);
@@ -22,7 +22,7 @@ typedef NS_ENUM(NSInteger, UIImpactFeedbackStyle) {
22
22
 
23
23
  // UIImpactFeedbackGenerator is used to give user feedback when an impact between UI elements occurs
24
24
  UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
25
- @interface UIImpactFeedbackGenerator : UIFeedbackGenerator
25
+ PEACH_SWIFT_CLASS(UIKitCore) @interface UIImpactFeedbackGenerator : UIFeedbackGenerator
26
26
 
27
27
  /// set a style on the feedback generator and attach it to the provided view as an interaction.
28
28
  + (instancetype)feedbackGeneratorWithStyle:(UIImpactFeedbackStyle)style forView:(UIView *)view API_AVAILABLE(ios(17.5)) API_UNAVAILABLE(visionos) NS_SWIFT_NAME(init(style:view:));
@@ -1080,6 +1080,27 @@ Classes:
1080
1080
  - Selector: 'imageByRemovingVariant'
1081
1081
  MethodKind: Instance
1082
1082
  SwiftName: 'removingVariant()'
1083
+ - Selector: 'initWithCGImage:scale:orientation:'
1084
+ MethodKind: Instance
1085
+ Availability: nonswift
1086
+ AvailabilityMsg: 'UIKitCore declares the Swift initializer with UIImage.Orientation'
1087
+ - Selector: 'initWithCIImage:scale:orientation:'
1088
+ MethodKind: Instance
1089
+ Availability: nonswift
1090
+ AvailabilityMsg: 'UIKitCore declares the Swift initializer with UIImage.Orientation'
1091
+ - Selector: 'imageWithCGImage:scale:orientation:'
1092
+ MethodKind: Class
1093
+ Availability: nonswift
1094
+ AvailabilityMsg: 'UIKitCore declares the Swift initializer with UIImage.Orientation'
1095
+ - Selector: 'imageWithCIImage:scale:orientation:'
1096
+ MethodKind: Class
1097
+ Availability: nonswift
1098
+ AvailabilityMsg: 'UIKitCore declares the Swift initializer with UIImage.Orientation'
1099
+ Properties:
1100
+ - Name: imageOrientation
1101
+ PropertyKind: Instance
1102
+ Availability: nonswift
1103
+ AvailabilityMsg: 'UIKitCore declares imageOrientation with UIImage.Orientation'
1083
1104
  - Name: UIImageConfiguration
1084
1105
  - Name: UIImageSymbolConfiguration
1085
1106
  Methods:
@@ -16,7 +16,7 @@ typedef NSString * UINibOptionsKey NS_TYPED_ENUM API_UNAVAILABLE(watchos);
16
16
  UIKIT_EXTERN UINibOptionsKey const UINibExternalObjects API_AVAILABLE(ios(3.0)) API_UNAVAILABLE(watchos);
17
17
 
18
18
  @interface NSBundle(UINibLoadingAdditions)
19
- - (nullable NSArray *)loadNibNamed:(NSString *)name owner:(nullable id)owner options:(nullable NSDictionary<UINibOptionsKey, id> *)options API_DEPRECATED("Loading Interface Builder products will not be supported in a future version of visionOS.", visionos(1.0, 1.0)) API_UNAVAILABLE(watchos);
19
+ - (nullable NSArray *)loadNibNamed:(NSString *)name owner:(nullable id)owner options:(nullable NSDictionary<UINibOptionsKey, id> *)options API_DEPRECATED("Loading Interface Builder products will not be supported in a future version of visionOS.", visionos(1.0, 1.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UNAVAILABLE("UIKitCore declares Bundle.loadNibNamed(_:owner:options:)");
20
20
  @end
21
21
 
22
22
  @interface NSObject(UINibLoadingAdditions)
@@ -18,7 +18,7 @@ typedef NS_ENUM(NSInteger, UINotificationFeedbackType) {
18
18
 
19
19
  // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20
20
  UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21
- @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
21
+ PEACH_SWIFT_CLASS(UIKitCore) @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
22
22
 
23
23
  /// call when a notification is displayed, passing the corresponding type
24
24
  - (void)notificationOccurred:(UINotificationFeedbackType)notificationType;
@@ -12,7 +12,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
12
12
 
13
13
  // UISelectionFeedbackGenerator is used to give user feedback when a selection changes
14
14
  UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
15
- @interface UISelectionFeedbackGenerator : UIFeedbackGenerator
15
+ PEACH_SWIFT_CLASS(UIKitCore) @interface UISelectionFeedbackGenerator : UIFeedbackGenerator
16
16
 
17
17
  /// call when the selection changes (not on initial selection)
18
18
  - (void)selectionChanged;
@@ -135,6 +135,13 @@ Protocols:
135
135
  Tags:
136
136
  - Name: _NSZone
137
137
  SwiftName: _NSZone
138
+ Functions:
139
+ - Name: sel_registerName
140
+ NullabilityOfRet: N
141
+ Nullability: [N]
142
+ - Name: sel_getUid
143
+ NullabilityOfRet: N
144
+ Nullability: [N]
138
145
 
139
146
 
140
147
  # Runtime functions did not yet have nullability in Swift 3.
@@ -0,0 +1,18 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-module-flags: -target arm64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -module-name Combine
3
+ import Swift
4
+ import _Concurrency
5
+ public protocol Publisher {
6
+ associatedtype Output
7
+ associatedtype Failure : Swift.Error
8
+ }
9
+ final public class ObservableObjectPublisher : Combine.Publisher {
10
+ public typealias Output = Swift.Void
11
+ public typealias Failure = Swift.Never
12
+ public init()
13
+ public func send()
14
+ }
15
+ public protocol ObservableObject : AnyObject {
16
+ associatedtype ObjectWillChangePublisher : Combine.Publisher = Combine.ObservableObjectPublisher where Self.ObjectWillChangePublisher.Failure == Swift.Never
17
+ var objectWillChange: Self.ObjectWillChangePublisher { get }
18
+ }
@@ -3,6 +3,7 @@
3
3
  @_exported import Foundation
4
4
  @_exported import ObjectiveC
5
5
  @_exported import CoreGraphics
6
+ @_exported import Combine
6
7
  import Swift
7
8
  import _Concurrency
8
9
  public struct URL : Swift.Hashable, Swift.Codable, Swift.Sendable, Swift.CustomStringConvertible {
@@ -23,3 +23,22 @@ extension SwiftUI.UIViewControllerRepresentable {
23
23
  extension SwiftUI.UIViewControllerRepresentable where Self.Coordinator == Swift.Void {
24
24
  @_Concurrency.MainActor @preconcurrency public func makeCoordinator() -> Swift.Void
25
25
  }
26
+ @_Concurrency.MainActor @preconcurrency public protocol UIViewRepresentable : SwiftUICore.View where Self.Body == Swift.Never {
27
+ associatedtype UIViewType : UIKit.UIView
28
+ @_Concurrency.MainActor @preconcurrency func makeUIView(context: Self.Context) -> Self.UIViewType
29
+ @_Concurrency.MainActor @preconcurrency func updateUIView(_ uiView: Self.UIViewType, context: Self.Context)
30
+ @_Concurrency.MainActor @preconcurrency static func dismantleUIView(_ uiView: Self.UIViewType, coordinator: Self.Coordinator)
31
+ associatedtype Coordinator = Swift.Void
32
+ @_Concurrency.MainActor @preconcurrency func makeCoordinator() -> Self.Coordinator
33
+ typealias Context = SwiftUI.UIViewRepresentableContext<Self>
34
+ }
35
+ @_Concurrency.MainActor @preconcurrency public struct UIViewRepresentableContext<Representable> where Representable : SwiftUI.UIViewRepresentable {
36
+ @_Concurrency.MainActor @preconcurrency public let coordinator: Representable.Coordinator
37
+ }
38
+ extension SwiftUI.UIViewRepresentable {
39
+ @_Concurrency.MainActor @preconcurrency public var body: Swift.Never { get }
40
+ @_Concurrency.MainActor @preconcurrency public static func dismantleUIView(_ uiView: Self.UIViewType, coordinator: Self.Coordinator)
41
+ }
42
+ extension SwiftUI.UIViewRepresentable where Self.Coordinator == Swift.Void {
43
+ @_Concurrency.MainActor @preconcurrency public func makeCoordinator() -> Swift.Void
44
+ }
@@ -14,3 +14,7 @@ public struct Binding<Value> {}
14
14
  @resultBuilder public struct ViewBuilder {
15
15
  public static func buildBlock<Content>(_ content: Content) -> Content where Content : SwiftUICore.View
16
16
  }
17
+ public struct AnyView : SwiftUICore.View {
18
+ public typealias Body = Swift.Never
19
+ public var body: Swift.Never { get }
20
+ }
@@ -2,6 +2,7 @@
2
2
  // swift-module-flags: -target arm64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -module-name UIKit
3
3
  @_exported import UIKit
4
4
  import Swift
5
+ import _Concurrency
5
6
  extension UIKit.UIApplication {
6
7
  public typealias State = UIKit.UIApplicationState
7
8
  }
@@ -11,6 +12,9 @@ extension UIKit.UIWindow {
11
12
  extension UIKit.UIDevice {
12
13
  public typealias BatteryState = UIKit.UIDeviceBatteryState
13
14
  }
15
+ extension ObjectiveC.NSObject {
16
+ @objc @_Concurrency.MainActor @preconcurrency dynamic open var accessibilityElements: [Any]? { @objc get @objc set }
17
+ }
14
18
  extension UIKit.NSLayoutConstraint {
15
19
  public typealias Relation = UIKit.NSLayoutRelation
16
20
  public typealias Attribute = UIKit.NSLayoutAttribute
@@ -47,6 +47,7 @@ void *pthread_get_stackaddr_np(pthread_t);
47
47
  int pthread_threadid_np(pthread_t, __uint64_t * _Nullable);
48
48
  struct __darwin_pthread_handler_rec **__peach_darwin_cleanup_stack(void);
49
49
  int pthread_cancel(pthread_t) __asm__("__peach_darwin_pthread_cancel");
50
+ void pthread_exit(void * _Nullable) __attribute__((noreturn)) __asm__("__peach_darwin_pthread_exit");
50
51
  int pthread_setcancelstate(int , int * _Nullable) __asm__("__peach_darwin_pthread_setcancelstate");
51
52
  int pthread_setcanceltype(int , int * _Nullable) __asm__("__peach_darwin_pthread_setcanceltype");
52
53
  void pthread_testcancel(void) __asm__("__peach_darwin_pthread_testcancel");
@@ -1,6 +1,6 @@
1
1
  // darwin's signal.h in place of the installed libc's. functions the installed
2
2
  // libc also defines with its own numbering (raise, bsd_signal, psignal) have
3
- // their own symbols. waiting for a signal needs asynchronous delivery, which
3
+ // their own symbols. waiting for a signal that is not already pending needs asynchronous delivery, which
4
4
  // a wasm instance has no source of.
5
5
  #ifndef _USER_SIGNAL_H
6
6
  #define _USER_SIGNAL_H
@@ -43,7 +43,7 @@ int sigprocmask(int, const sigset_t * __restrict, sigset_t * __restrict);
43
43
  int sigrelse(int);
44
44
  void (* _Nullable sigset(int, void (* _Nullable)(int)))(int);
45
45
  int sigsuspend(const sigset_t *) __PEACH_DARWIN_UNAVAILABLE("Darwin asynchronous signals are not implemented for WebAssembly");
46
- int sigwait(const sigset_t * __restrict, int * __restrict) __PEACH_DARWIN_UNAVAILABLE("Darwin asynchronous signals are not implemented for WebAssembly");
46
+ int sigwait(const sigset_t * __restrict, int * __restrict);
47
47
  #if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE >= 200809L || defined(_DARWIN_C_SOURCE)
48
48
  void psignal(int, const char *) __asm__("__peach_darwin_psignal");
49
49
  #endif
@@ -42,7 +42,7 @@
42
42
  {
43
43
  "path": "wasm/include/machine/limits.h",
44
44
  "nativeSha256": "50345f1ab843fca787a38c552a84177e678d79dab86e714434f94f2546839357",
45
- "sha256": "7c944f43a0de8e3b1b19951650fc8ebb98d373094a5d9258cb0e99a9b723f000",
45
+ "sha256": "f970318bcb9a7e991924f78c075ba48cf99292372088e0adc0daf9018164f839",
46
46
  "change": "one __wasm32__ branch before the native #else: arm/limits.h's selection inline, with arm/_limits.h's __DARWIN_CLK_TCK in place of its include and USE_CLANG_LIMITS fixed at 0",
47
47
  "reason": "the native selection errors on any architecture but i386, x86_64, arm and arm64. wasm32 takes arm's values, as machine/_types.h does. A modules build on iOS takes the integer limits from clang's limits.h, which includes Darwin's; the wasm view finds Darwin's ahead of clang's, whose builtin module would bring the installed libc's limits with it, so the branch always defines them."
48
48
  },
@@ -77,8 +77,8 @@
77
77
  {
78
78
  "path": "System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes",
79
79
  "nativeSha256": "025956c54d34391f2c422b736710641a860694436f5b8a34d719ade2d9ed3220",
80
- "sha256": "8dc2bc8008ae1d31401458ec776a9c2f356ff6ffdb890bb409bc79b07318b651",
81
- "change": "hide NSArray arrayWithObjects:count: from Swift, nest FileManager sync control and URLSession delayed request and multipath enums, import networking singleton and selector names, and hide native members whose Swift implementation supplies the existing typed declaration",
80
+ "sha256": "f05f7e0edce96ebd5d6c1c5d816b6d5a1c922a2c969ce971748bb10edd3d3ed5",
81
+ "change": "hide NSArray arrayWithObjects:count: from Swift, nest FileManager sync control and URLSession delayed request and multipath enums, import networking singleton and selector names, hide native members whose Swift implementation supplies the existing typed declaration, and leave unnested the enums of classes Foundation declares in Swift, which declare those nested types themselves",
82
82
  "reason": "the Objective-C header owns the networking classes and categories; their Swift implementation must use the native imported names without the obsolete moved-type aliases or duplicate Swift-owned session classes"
83
83
  },
84
84
  {