peachsim 0.1.1852 → 0.1.1854
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.
- package/cli/commands/serve.ts +5 -2
- package/detox/index.ts +34 -5
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +7 -7
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +23 -5
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +2 -2
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +8 -8
- package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +2 -2
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +2 -2
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +8 -8
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +2 -2
- package/dist-lib/vite.cjs +2 -2
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/metalShaderContract.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/rn-spring.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +14 -0
- package/package.json +1 -1
- package/src/cli-runtime.ts +1 -1
- package/src/nitro-adapter.lock.json +281 -281
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-distribution.lock.json +8 -8
- package/src/turbo-runtime.lock.json +21 -21
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1854 | (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;
|
|
@@ -508,7 +508,7 @@ function verifyCompanionFile(file) {
|
|
|
508
508
|
bytes = (0, import_node_fs2.readFileSync)(file);
|
|
509
509
|
} catch (error) {
|
|
510
510
|
if (error instanceof Error) {
|
|
511
|
-
const missing2 = "code" in error && error.code === "ENOENT" ?
|
|
511
|
+
const missing2 = "code" in error && error.code === "ENOENT" ? `; run \`peach runtime install\`, which fetches the companion this CLI published${process.platform === "win32" ? ", and check Windows Security protection history if it repeats" : ""}` : "";
|
|
512
512
|
error.message = `Could not read Peach runtime companion ${file}: ${error.message}${missing2}`;
|
|
513
513
|
}
|
|
514
514
|
throw error;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1854 | (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;
|
|
@@ -156,8 +156,10 @@ export interface SpringConfig {
|
|
|
156
156
|
restSpeedThreshold?: number;
|
|
157
157
|
restDisplacementThreshold?: number;
|
|
158
158
|
uikitRestEpsilon?: number;
|
|
159
|
+
animationKitScalar?: boolean;
|
|
159
160
|
fixedDurationMs?: number;
|
|
160
161
|
useNativeDriver?: boolean;
|
|
162
|
+
clock?: 'display';
|
|
161
163
|
graph?: boolean;
|
|
162
164
|
[key: string]: unknown;
|
|
163
165
|
}
|
|
@@ -3,6 +3,7 @@ import { resolveAnimatedLiquidGlassRect } from './liquid-glass-rect.d.ts';
|
|
|
3
3
|
import { type LiquidGlassType } from './liquid-glass-shaders.d.ts';
|
|
4
4
|
import { type FrameDamage } from './render-damage.d.ts';
|
|
5
5
|
import type { CanvasKitRenderingApi as CanvasKit } from './canvaskit-api.d.ts';
|
|
6
|
+
import type { PeachGlassMaterialTransition } from './types.d.ts';
|
|
6
7
|
import type { SootSimLensFold } from './types.d.ts';
|
|
7
8
|
import type { Canvas, Surface, RuntimeEffect, Image as SkImage, Shader } from 'canvaskit-wasm';
|
|
8
9
|
type LiquidGlassColorScheme = 'auto' | 'light' | 'dark';
|
|
@@ -166,6 +167,9 @@ export interface LiquidGlassConfig {
|
|
|
166
167
|
contour?: readonly LiquidGlassShadow[];
|
|
167
168
|
}
|
|
168
169
|
export interface LiquidGlassMerge {
|
|
170
|
+
sampledField?: PeachGlassMaterialTransition<number> & {
|
|
171
|
+
gaussianRadius: number;
|
|
172
|
+
};
|
|
169
173
|
key: string;
|
|
170
174
|
spacing: number;
|
|
171
175
|
members: ReadonlyArray<{
|
|
@@ -211,7 +211,9 @@ export declare function metalColorEffectArguments(effect: MetalShaderEffectFilte
|
|
|
211
211
|
}, resolveColor: (color: unknown) => ArrayLike<number>, resolveImage: (source: MetalShaderImageSource) => GPUTexture): MetalNumericArgument[];
|
|
212
212
|
export declare function halfBits(value: number): number;
|
|
213
213
|
export declare function halfValue(bits: number): number;
|
|
214
|
+
export declare function record(value: unknown): value is Record<string, unknown>;
|
|
214
215
|
export declare const metalCompilerFunctionExports: string[];
|
|
215
216
|
export declare const metalAirCompilerExports: readonly ['air_alloc', 'air_free', 'air_describe', 'air_compile_compute', 'air_compile_library', 'air_compile_render', 'air_result_ok', 'air_result_code', 'air_result_wgsl', 'air_result_wgsl_len', 'air_result_metadata', 'air_result_metadata_len', 'air_result_error', 'air_result_error_len', 'air_result_free'];
|
|
216
|
-
export declare function
|
|
217
|
+
export declare function text(value: unknown): value is string;
|
|
218
|
+
export declare function index(value: unknown): value is number;
|
|
217
219
|
export {};
|
|
@@ -29,6 +29,7 @@ export declare function adaptiveForegroundGlassAncestor<T extends {
|
|
|
29
29
|
export declare function subtreeSamplesLiveBackdrop(node: PaintBoundaryNode): boolean;
|
|
30
30
|
export declare function subtreeSamplesShadowBackdrop(node: PaintBoundaryNode): boolean;
|
|
31
31
|
export declare function subtreeReadsLayerBackdrop(node: PaintBoundaryNode): boolean;
|
|
32
|
+
export declare function readsBackdropStyle(style: Readonly<SootSimStyle>): boolean;
|
|
32
33
|
export declare function subtreeContainsTextInputHost(node: PaintBoundaryNode): boolean;
|
|
33
34
|
export declare function subtreeContainsMetalEffect(node: PaintBoundaryNode): boolean;
|
|
34
35
|
export declare function subtreeContainsLivePresentation(node: PaintBoundaryNode): boolean;
|
|
@@ -21,6 +21,7 @@ export interface SpringInput {
|
|
|
21
21
|
restSpeedThreshold?: number;
|
|
22
22
|
restVelocityThreshold?: number;
|
|
23
23
|
uikitRestEpsilon?: number;
|
|
24
|
+
animationKitScalar?: boolean;
|
|
24
25
|
}
|
|
25
26
|
export interface ResolvedSpring {
|
|
26
27
|
stiffness: number;
|
|
@@ -31,6 +32,7 @@ export interface ResolvedSpring {
|
|
|
31
32
|
restDisplacementThreshold: number;
|
|
32
33
|
restSpeedThreshold: number;
|
|
33
34
|
uikitRestEpsilon?: number;
|
|
35
|
+
animationKitScalar?: boolean;
|
|
34
36
|
}
|
|
35
37
|
export declare function resolveSpringConfig(config: SpringInput): ResolvedSpring;
|
|
36
38
|
export declare function springAtRest(resolved: ResolvedSpring, toValue: number, position: number, velocity: number): boolean;
|
|
@@ -528,6 +528,9 @@ export interface SootSimStyle {
|
|
|
528
528
|
_sourceLayerProjection?: boolean;
|
|
529
529
|
_lensFold?: SootSimLensFold | null;
|
|
530
530
|
_sdfDisplacement?: PeachSdfDisplacement;
|
|
531
|
+
_liquidGlassSdf?: Pick<PeachSdfDisplacement, 'first' | 'second' | 'gaussianRadius'> & {
|
|
532
|
+
materialTransition: PeachGlassMaterialTransition;
|
|
533
|
+
};
|
|
531
534
|
_liquidGlassRect?: {
|
|
532
535
|
x: SootSimAnimatedNumber;
|
|
533
536
|
y: SootSimAnimatedNumber;
|
|
@@ -580,6 +583,10 @@ export interface SootSimStyle {
|
|
|
580
583
|
};
|
|
581
584
|
_glassInteractionLayer?: boolean;
|
|
582
585
|
_mirrorChildrenOf?: number;
|
|
586
|
+
_portalSourceTag?: number;
|
|
587
|
+
_portalSourceMaterial?: 'shared';
|
|
588
|
+
_portalSourceLayers?: boolean;
|
|
589
|
+
_portalSourceHidden?: boolean;
|
|
583
590
|
transformOrigin?: string | [number | string, number | string, number?];
|
|
584
591
|
elevation?: number;
|
|
585
592
|
aspectRatio?: number | string;
|
|
@@ -622,6 +629,11 @@ interface RenderContextBase {
|
|
|
622
629
|
dpr: number;
|
|
623
630
|
accessibilityTextConfigurationSource?: AccessibilityTextConfigurationSource;
|
|
624
631
|
}
|
|
632
|
+
export type PeachGlassMaterialTransition<Progress = SootSimAnimatedNumber> = {
|
|
633
|
+
fromSize: number;
|
|
634
|
+
toSize: number;
|
|
635
|
+
progress: Progress;
|
|
636
|
+
};
|
|
625
637
|
export interface LayoutContext extends RenderContextBase {
|
|
626
638
|
kind: 'layout';
|
|
627
639
|
surface: Surface | VirtualSurface;
|
|
@@ -701,6 +713,8 @@ export interface RenderContext extends RenderContextBase {
|
|
|
701
713
|
};
|
|
702
714
|
flatBake?: boolean;
|
|
703
715
|
flattenedGroup?: SootSimNode;
|
|
716
|
+
sourceRoot?: SootSimNode;
|
|
717
|
+
sourceMaterial?: 'shared';
|
|
704
718
|
flatAncestor?: boolean;
|
|
705
719
|
flatDeps?: [boolean];
|
|
706
720
|
damage?: FrameDamage | null;
|
package/package.json
CHANGED
package/src/cli-runtime.ts
CHANGED
|
@@ -25,7 +25,7 @@ function verifyCompanionFile(file: string): void {
|
|
|
25
25
|
if (error instanceof Error) {
|
|
26
26
|
const missing =
|
|
27
27
|
'code' in error && error.code === 'ENOENT'
|
|
28
|
-
?
|
|
28
|
+
? `; run \`peach runtime install\`, which fetches the companion this CLI published${process.platform === 'win32' ? ', and check Windows Security protection history if it repeats' : ''}`
|
|
29
29
|
: ''
|
|
30
30
|
error.message = `Could not read Peach runtime companion ${file}: ${error.message}${missing}`
|
|
31
31
|
}
|