peachsim 0.1.2385 → 0.1.2387
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/flow.ts +5 -5
- package/cli/commands/maestro-generate.ts +1 -1
- package/cli/commands/maestro.ts +2 -2
- package/cli/commands/map.ts +1 -1
- package/cli/commands/preview.ts +2 -2
- package/cli/commands/record.ts +4 -4
- package/cli/commands/stream.ts +1 -1
- package/cli/commands/test.ts +3 -3
- package/cli/commands/upload.ts +3 -3
- package/detox/index.ts +7 -2
- 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 +44 -29
- 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 +4 -3
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +43 -28
- 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 +44 -29
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
- 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 +4 -4
- 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 +4 -4
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- 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 +64 -49
- package/dist-lib/swift-compile.cjs +34 -22
- package/dist-lib/swift-compile.mjs +34 -22
- 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 +36 -24
- package/dist-lib/vite.cjs +4 -4
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +16 -1
- package/dist-types/packages/peach-globals/src/eventBridgeContract.d.ts +1 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/node-runtime.json +1 -1
- package/package.json +1 -1
- package/skills/contrast/SKILL.md +3 -4
- package/src/expo-native-workspace.ts +18 -15
- package/src/react-native-core-build.ts +2 -3
- package/src/swift-compile.ts +56 -30
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2387 | (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;
|
|
@@ -18677,7 +18677,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
18677
18677
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
18678
18678
|
var MULTI_MANIFEST_VERSION = 69;
|
|
18679
18679
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
18680
|
-
var compilerSourceDigest = true ? "
|
|
18680
|
+
var compilerSourceDigest = true ? "a8ef2b0211672814d4cff10c3aa4c1e77c8c8a87b90e00fe66a2e674c2e5f014" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
18681
18681
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
18682
18682
|
const hash = (0, import_node_crypto14.createHash)("sha256");
|
|
18683
18683
|
hash.update(`swift-compile
|
|
@@ -22774,6 +22774,8 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
22774
22774
|
const moduleRoot = import_node_path28.default.resolve(options.moduleRoot);
|
|
22775
22775
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
22776
22776
|
const guestGraph = distribution ? input.sourceLinkGraph : void 0;
|
|
22777
|
+
if (options.linkOnly && guestGraph)
|
|
22778
|
+
throw new Error("swift-compile: link-only builds do not support guest image graphs");
|
|
22777
22779
|
const layout2 = {
|
|
22778
22780
|
root,
|
|
22779
22781
|
sources: import_node_path28.default.join(root, "Sources", "App"),
|
|
@@ -22786,24 +22788,26 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
22786
22788
|
console.error(`[swift-project ${hash.slice(0, 16)}] ${message}`);
|
|
22787
22789
|
options.onStage?.(message);
|
|
22788
22790
|
};
|
|
22789
|
-
report("checking verified artifacts");
|
|
22790
22791
|
return serialize(
|
|
22791
22792
|
root,
|
|
22792
22793
|
async () => {
|
|
22793
|
-
|
|
22794
|
-
|
|
22795
|
-
|
|
22796
|
-
|
|
22797
|
-
|
|
22798
|
-
|
|
22799
|
-
|
|
22800
|
-
|
|
22801
|
-
|
|
22802
|
-
|
|
22803
|
-
|
|
22804
|
-
|
|
22805
|
-
|
|
22806
|
-
|
|
22794
|
+
if (!options.intermediates) {
|
|
22795
|
+
report("checking verified artifacts");
|
|
22796
|
+
const retained = retainedArtifacts.get(root)?.find((old) => old.hash === hash);
|
|
22797
|
+
if (retained) {
|
|
22798
|
+
report("reusing memory artifact");
|
|
22799
|
+
return retain(root, retained);
|
|
22800
|
+
}
|
|
22801
|
+
const cached = readCompiledArtifact(import_node_path28.default.join(sharedRoot, "artifact"), hash);
|
|
22802
|
+
const previous = cached ?? (options.project ? null : readCompiledArtifact(import_node_path28.default.join(root, "artifact"), hash));
|
|
22803
|
+
if (previous) {
|
|
22804
|
+
if (cached) renewSharedArtifact(sharedRoot);
|
|
22805
|
+
else saveSharedArtifact(sharedRoot, previous);
|
|
22806
|
+
report("reusing verified disk artifact");
|
|
22807
|
+
return retain(root, previous);
|
|
22808
|
+
}
|
|
22809
|
+
}
|
|
22810
|
+
if (!options.intermediates && process.platform === "darwin" && process.env.TM_SESSION && !windowAdmission() && process.env.CI !== "true" && moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(moduleRoot)) {
|
|
22807
22811
|
const requestRoot = (0, import_node_fs28.mkdtempSync)(`${root}.builder-request-`);
|
|
22808
22812
|
const output2 = import_node_path28.default.join(requestRoot, "output");
|
|
22809
22813
|
const request = import_node_path28.default.join(requestRoot, "request.json");
|
|
@@ -22860,10 +22864,12 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
22860
22864
|
return withSwiftRootLock(
|
|
22861
22865
|
root,
|
|
22862
22866
|
async (lease) => {
|
|
22863
|
-
|
|
22864
|
-
|
|
22865
|
-
|
|
22866
|
-
|
|
22867
|
+
if (!options.intermediates) {
|
|
22868
|
+
const built2 = readCompiledArtifact(import_node_path28.default.join(sharedRoot, "artifact"), hash);
|
|
22869
|
+
if (built2) {
|
|
22870
|
+
report("reusing verified disk artifact");
|
|
22871
|
+
return retain(root, built2);
|
|
22872
|
+
}
|
|
22867
22873
|
}
|
|
22868
22874
|
const swift = import_node_path28.default.join(options.toolchainBin, "swift");
|
|
22869
22875
|
if (!(0, import_node_fs28.existsSync)(swift)) {
|
|
@@ -22893,7 +22899,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
22893
22899
|
);
|
|
22894
22900
|
const macroPlugins = distribution ? await withSwiftRootLock(frameworkScratch, pluginsFor, budget.signal) : await pluginsFor(frameworkLease);
|
|
22895
22901
|
const sdk2 = swiftModuleSdk(frameworkRoot).wasmSdkId;
|
|
22896
|
-
const icu = swiftIcuAsset(options.toolchainBin, sdk2);
|
|
22902
|
+
const icu = options.linkOnly ? null : swiftIcuAsset(options.toolchainBin, sdk2);
|
|
22897
22903
|
const buildOptions = {
|
|
22898
22904
|
env: {
|
|
22899
22905
|
...options.project?.env ?? process.env,
|
|
@@ -23035,7 +23041,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
23035
23041
|
];
|
|
23036
23042
|
const linked = builtArtifact(layout2);
|
|
23037
23043
|
(0, import_node_fs28.rmSync)(import_node_path28.default.join(root, ".peach-link.rsp"), { force: true });
|
|
23038
|
-
if ((0, import_node_fs28.existsSync)(linked) && (0, import_node_fs28.statSync)(linked).size <= 8)
|
|
23044
|
+
if (options.linkOnly || (0, import_node_fs28.existsSync)(linked) && (0, import_node_fs28.statSync)(linked).size <= 8)
|
|
23039
23045
|
(0, import_node_fs28.rmSync)(linked, { force: true });
|
|
23040
23046
|
report("compiling and linking Swift modules");
|
|
23041
23047
|
const frameworkInterfaces = /* @__PURE__ */ new Map();
|
|
@@ -23244,6 +23250,12 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
23244
23250
|
void 0,
|
|
23245
23251
|
resourceReferences
|
|
23246
23252
|
);
|
|
23253
|
+
if (options.linkOnly) {
|
|
23254
|
+
if ((0, import_node_fs28.statSync)(linked).size <= 8)
|
|
23255
|
+
throw new Error("swift-compile: deferred linker produced no executable");
|
|
23256
|
+
report("project link verified");
|
|
23257
|
+
return;
|
|
23258
|
+
}
|
|
23247
23259
|
const output2 = options.project ? projectOutputFile(root, linked, options.project) : linked;
|
|
23248
23260
|
const optimized = `${output2}.optimized`;
|
|
23249
23261
|
if (guestGraph)
|
|
@@ -34121,7 +34133,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
34121
34133
|
return hash.digest("hex");
|
|
34122
34134
|
}
|
|
34123
34135
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
34124
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
34136
|
+
var STANDIN_SOURCE_DIGEST = true ? "4a21735d60d5c3e629b478af2bb3e725e89a01e8291b31fcc4e4f3174d7c9b4f" : standinSourceDigest();
|
|
34125
34137
|
|
|
34126
34138
|
// src/swift-standins.ts
|
|
34127
34139
|
var import_node_child_process32 = require("node:child_process");
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2387 | (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;
|
|
@@ -3244,7 +3244,7 @@ var STANDIN_SOURCE_DIGEST;
|
|
|
3244
3244
|
var init_swift_standin_digest = __esm({
|
|
3245
3245
|
"src/swift-standin-digest.ts"() {
|
|
3246
3246
|
"use strict";
|
|
3247
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
3247
|
+
STANDIN_SOURCE_DIGEST = true ? "4a21735d60d5c3e629b478af2bb3e725e89a01e8291b31fcc4e4f3174d7c9b4f" : standinSourceDigest();
|
|
3248
3248
|
}
|
|
3249
3249
|
});
|
|
3250
3250
|
|
|
@@ -4959,7 +4959,7 @@ var init_swift_compile = __esm({
|
|
|
4959
4959
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
4960
4960
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
4961
4961
|
).join("");
|
|
4962
|
-
compilerSourceDigest = true ? "
|
|
4962
|
+
compilerSourceDigest = true ? "a8ef2b0211672814d4cff10c3aa4c1e77c8c8a87b90e00fe66a2e674c2e5f014" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
4963
4963
|
C_WORDS = new Set(
|
|
4964
4964
|
"auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
|
|
4965
4965
|
" "
|
|
@@ -5503,7 +5503,7 @@ var init_react_native_core = __esm({
|
|
|
5503
5503
|
init_swift_distribution();
|
|
5504
5504
|
init_swift_package();
|
|
5505
5505
|
init_swiftContract();
|
|
5506
|
-
recipe = true ? "
|
|
5506
|
+
recipe = true ? "87bfef7f0e28d8a323a1069ee1002e9d9344e3b78b1f991164d392cacd10bde5" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
5507
5507
|
}
|
|
5508
5508
|
});
|
|
5509
5509
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2387 | (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;
|
|
@@ -305,7 +305,7 @@ export declare function resolveNamedMetroAssetUri(assetName: string): {
|
|
|
305
305
|
height: number;
|
|
306
306
|
scale: number;
|
|
307
307
|
} | null;
|
|
308
|
-
export declare function initImageLoader(ck: CanvasKit, onImageLoaded: (uri: string | null, needsRender: boolean, node?: SootSimNode | null) => void, onLiveFrameConsumed?: (channelId: string) => void): void;
|
|
308
|
+
export declare function initImageLoader(ck: CanvasKit, onImageLoaded: (uri: string | null, needsRender: boolean, node?: SootSimNode | null) => void, onLiveFrameConsumed?: (channelId: string) => void, reachesWindow?: (node: SootSimNode, batch?: Map<SootSimNode, Set<SootSimNode>>) => boolean): void;
|
|
309
309
|
export declare function setImageLifecycleEventSink(sink: typeof _onImageLifecycleEvent): void;
|
|
310
310
|
export declare function getCachedImage(cacheKey: string): SkImage | null;
|
|
311
311
|
export declare function getCachedImageEntry(cacheKey: string): CachedImageEntry | null;
|
|
@@ -350,7 +350,7 @@ export declare const queuedImageLoads: Set<SootSimNode>;
|
|
|
350
350
|
export declare function queueImageLoad(node: SootSimNode): void;
|
|
351
351
|
export declare function kickQueuedImageLoads(): void;
|
|
352
352
|
export declare function hasImageLoadInFlight(root?: SootSimNode): boolean;
|
|
353
|
-
export declare function loadImageForNode(node: SootSimNode, ctx?: RenderContext): void;
|
|
353
|
+
export declare function loadImageForNode(node: SootSimNode, ctx?: RenderContext, windowNodes?: Map<SootSimNode, Set<SootSimNode>>): void;
|
|
354
354
|
export declare function drawsLiveImage(node: SootSimNode): boolean;
|
|
355
355
|
export declare function touchPaintedImage(node: SootSimNode, ctx: RenderContext): void;
|
|
356
356
|
export declare function releaseDetachedSubtreeImages(root: SootSimNode, releasePixels: boolean): void;
|
|
@@ -105,6 +105,7 @@ export type CanvasMapScreen = {
|
|
|
105
105
|
bg?: string;
|
|
106
106
|
deviceModel?: string;
|
|
107
107
|
statusBarHeight?: number;
|
|
108
|
+
subtleShadow?: boolean;
|
|
108
109
|
cornerRadius?: number;
|
|
109
110
|
dynamicIsland?: {
|
|
110
111
|
width: number;
|
|
@@ -125,13 +126,26 @@ export type CanvasMapSection = {
|
|
|
125
126
|
screenIds: string[];
|
|
126
127
|
sectionIds: string[];
|
|
127
128
|
};
|
|
129
|
+
outline?: 'bounds';
|
|
130
|
+
dragFromBody?: boolean;
|
|
131
|
+
fitInsets?: {
|
|
132
|
+
horizontal: number;
|
|
133
|
+
top: number;
|
|
134
|
+
bottom: number;
|
|
135
|
+
};
|
|
128
136
|
};
|
|
137
|
+
type CanvasMapRect = Pick<CanvasMapSection, 'x' | 'y' | 'width' | 'height'>;
|
|
138
|
+
export declare function expandCanvasMapBounds(bounds: CanvasMapRect, member: CanvasMapRect, insets: NonNullable<CanvasMapSection['fitInsets']>): CanvasMapRect;
|
|
139
|
+
export declare function canvasMapSectionBounds(section: CanvasMapSection, sections: readonly CanvasMapSection[], movingId?: string): CanvasMapRect;
|
|
129
140
|
export type CanvasMapGroupMove = {
|
|
130
141
|
sectionId: string;
|
|
131
142
|
x: number;
|
|
132
143
|
y: number;
|
|
133
144
|
rev?: number;
|
|
145
|
+
dragging?: true;
|
|
134
146
|
};
|
|
147
|
+
type SectionHitArea = Pick<CanvasMapSection, 'id' | 'title' | 'x' | 'y' | 'width' | 'height' | 'dragFromBody'>;
|
|
148
|
+
export declare function canvasMapSectionAt(sections: readonly SectionHitArea[], x: number, y: number, zoom: number, labelSize: number): SectionHitArea | undefined;
|
|
135
149
|
export type CanvasMapEdge = {
|
|
136
150
|
from: string;
|
|
137
151
|
to: string;
|
|
@@ -209,7 +223,7 @@ export type CanvasMapCommand = 'fit' | 'actual-size' | {
|
|
|
209
223
|
kind: 'enter';
|
|
210
224
|
screenId: string | null;
|
|
211
225
|
};
|
|
212
|
-
export declare function canvasMapEdgePath(from: CanvasMapScreen, to: CanvasMapScreen): string;
|
|
226
|
+
export declare function canvasMapEdgePath(from: Pick<CanvasMapScreen, 'x' | 'y' | 'width' | 'height'>, to: Pick<CanvasMapScreen, 'x' | 'y' | 'height'>): string;
|
|
213
227
|
export declare function getCanvasMapData(): CanvasMapData;
|
|
214
228
|
export declare function subscribeCanvasMapData(listener: () => void): () => void;
|
|
215
229
|
export declare function setCanvasMapData(next: CanvasMapData): void;
|
|
@@ -225,3 +239,4 @@ export declare function reportCanvasMapMove(move: {
|
|
|
225
239
|
}): void;
|
|
226
240
|
export declare function reportCanvasMapGroupMove(move: CanvasMapGroupMove): void;
|
|
227
241
|
export declare function reportCanvasMapEntered(screenId: string | null): void;
|
|
242
|
+
export {};
|
|
@@ -94,6 +94,7 @@ export type SootsimColorScheme = 'light' | 'dark' | 'auto';
|
|
|
94
94
|
export type SootsimTopOverlayKind = 'none' | 'notification-center' | 'control-center';
|
|
95
95
|
export interface SootsimEventMap {
|
|
96
96
|
'peach:device-frame-layout': void;
|
|
97
|
+
'peach:fit-device-screen': boolean;
|
|
97
98
|
'sootsim:goHome': null;
|
|
98
99
|
'sootsim:appSwitcher': null;
|
|
99
100
|
'sootsim:toggleLock': null;
|
package/kotlin/sdk.tar.gz
CHANGED
|
Binary file
|
package/node-runtime.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"archiveSha256":"
|
|
1
|
+
{"abi":1,"archiveSha256":"4ce2e13808ee3c6567d909ecca530caf6b39177050d4ab81d988d01c32e02e47","entrySha256":"037386b38aa3cf1e7a90286ef62617ae77ca38441b3d6b0267b283fc4946594b"}
|
package/package.json
CHANGED
package/skills/contrast/SKILL.md
CHANGED
|
@@ -21,7 +21,7 @@ automation, inspecting the render tree, and managing sims.
|
|
|
21
21
|
| --- | --- |
|
|
22
22
|
| `peach test` | run Maestro flows or Detox suites, author flows, and run them in the cloud |
|
|
23
23
|
| `peach cleanup` | inspect and reclaim local peach disk usage |
|
|
24
|
-
| `peach record` |
|
|
24
|
+
| `peach record` | create a Recording, render webm/mp4, capture a gif, or sample N png frames |
|
|
25
25
|
| `peach storage` | manage guest app storage and launch profiles |
|
|
26
26
|
| `peach permissions` | inspect and change simulated operating-system permissions |
|
|
27
27
|
| `peach location` | control the simulator's simulated device location |
|
|
@@ -46,13 +46,12 @@ automation, inspecting the render tree, and managing sims.
|
|
|
46
46
|
| `peach debug` | drive __sootsimDebug: channels, snapshots, and inspectors |
|
|
47
47
|
| `peach what-happened` | show recent semantic events: toasts, keyboards, screens, alerts, fetches, errors |
|
|
48
48
|
| `peach timeline` | control the semantic event timeline (enable opt-in kinds, clear, dump) |
|
|
49
|
-
| `peach box` | start a local Box or create a cloud Box |
|
|
50
49
|
| `peach ios` | start an iOS simulator |
|
|
51
50
|
| `peach android` | start an Android simulator |
|
|
52
51
|
| `peach stream` | stream an open simulator to your team |
|
|
53
52
|
| `peach remote` | run your app on a remote simulator |
|
|
54
53
|
| `peach open` | run a React Native, Swift or Android app in the simulator |
|
|
55
|
-
| `peach preview` | publish an Expo export or bundle as a
|
|
54
|
+
| `peach preview` | publish an Expo export or bundle as a Build |
|
|
56
55
|
| `peach package` | package one app as a standalone macOS app |
|
|
57
56
|
| `peach map` | capture screens tied to routes and publish the branch map |
|
|
58
57
|
| `peach canvas` | lay out live apps and maps of an app on one canvas |
|
|
@@ -74,7 +73,7 @@ automation, inspecting the render tree, and managing sims.
|
|
|
74
73
|
| `peach serve` | run the peach bridge in the foreground |
|
|
75
74
|
| `peach runtime` | manage engine runtimes under ~/.peach/runtimes/ |
|
|
76
75
|
| `peach auth` | inspect active CLI auth |
|
|
77
|
-
| `peach login` | sign in
|
|
76
|
+
| `peach login` | sign in to publish Builds and Recordings |
|
|
78
77
|
| `peach logout` | clear the local desktop auth session |
|
|
79
78
|
| `peach config` | manage local CLI preferences |
|
|
80
79
|
|
|
@@ -6,32 +6,32 @@ import { createRequire } from 'node:module'
|
|
|
6
6
|
import os from 'node:os'
|
|
7
7
|
import path from 'node:path'
|
|
8
8
|
import { promisify } from 'node:util'
|
|
9
|
-
import { detectPackageManager } from '../cli/commands/detect'
|
|
10
|
-
import { teamMachineInstalled } from './admitted-mac-build'
|
|
9
|
+
import { detectPackageManager } from '../cli/commands/detect.ts'
|
|
10
|
+
import { teamMachineInstalled } from './admitted-mac-build.ts'
|
|
11
11
|
import {
|
|
12
12
|
untrackedIgnored,
|
|
13
13
|
workspaceExclusion,
|
|
14
14
|
type WorkspaceExclusion,
|
|
15
|
-
} from './expo-workspace-exclusion'
|
|
16
|
-
import { withoutGitRepositoryEnv } from './git-repo-env'
|
|
17
|
-
import { cacheDir } from './home-paths'
|
|
18
|
-
import { failedOutputLine } from './native-failure-output'
|
|
19
|
-
import { requireNativeGit } from './native-git'
|
|
20
|
-
import { prepareOneSDKSources } from './one-sdk-preparation'
|
|
21
|
-
import { portableExpoWorkspace } from './portable-expo-workspace'
|
|
15
|
+
} from './expo-workspace-exclusion.ts'
|
|
16
|
+
import { withoutGitRepositoryEnv } from './git-repo-env.ts'
|
|
17
|
+
import { cacheDir } from './home-paths.ts'
|
|
18
|
+
import { failedOutputLine } from './native-failure-output.ts'
|
|
19
|
+
import { requireNativeGit } from './native-git.ts'
|
|
20
|
+
import { prepareOneSDKSources } from './one-sdk-preparation.ts'
|
|
21
|
+
import { portableExpoWorkspace } from './portable-expo-workspace.ts'
|
|
22
22
|
import {
|
|
23
23
|
reapRetiredCacheDirectory,
|
|
24
24
|
removeRetiredDirectory,
|
|
25
|
-
} from './retired-cache-directory'
|
|
26
|
-
import { compiledSwiftHelper } from './swift-helper'
|
|
25
|
+
} from './retired-cache-directory.ts'
|
|
26
|
+
import { compiledSwiftHelper } from './swift-helper.ts'
|
|
27
27
|
import {
|
|
28
28
|
withCocoaPodsCacheLock,
|
|
29
29
|
withSwiftRootLock,
|
|
30
30
|
type SwiftRootLease,
|
|
31
|
-
} from './swift-root-lock'
|
|
32
|
-
import { sharedCacheDir } from './swift-toolchain'
|
|
33
|
-
import { findWorkspaceRoot } from './workspace-root'
|
|
34
|
-
import { resolveXcodeSwiftPackages, selectXcodeWorkspace } from './xcode-project'
|
|
31
|
+
} from './swift-root-lock.ts'
|
|
32
|
+
import { sharedCacheDir } from './swift-toolchain.ts'
|
|
33
|
+
import { findWorkspaceRoot } from './workspace-root.ts'
|
|
34
|
+
import { resolveXcodeSwiftPackages, selectXcodeWorkspace } from './xcode-project.ts'
|
|
35
35
|
|
|
36
36
|
// install scripts that write git hooks must never reach the user's global hooks path
|
|
37
37
|
const isolatedGitEnv = {
|
|
@@ -338,6 +338,7 @@ async function walkWorkspaceInputs(
|
|
|
338
338
|
const file = path.join(directory, entry.name)
|
|
339
339
|
const relative = path.relative(root, file)
|
|
340
340
|
if (excluded(relative, entry.isDirectory())) continue
|
|
341
|
+
const firstStep = steps.length
|
|
341
342
|
steps.push(() => hash.update(`${relative}\0`))
|
|
342
343
|
if (entry.isSymbolicLink()) {
|
|
343
344
|
const link = `link\0${fs.readlinkSync(file)}\0`
|
|
@@ -348,6 +349,8 @@ async function walkWorkspaceInputs(
|
|
|
348
349
|
} else if (entry.isDirectory()) {
|
|
349
350
|
steps.push(() => hash.update('directory\0'))
|
|
350
351
|
walk(file)
|
|
352
|
+
// a podspec can need a working directory before the app has an ios project.
|
|
353
|
+
if (sourceOnly && steps.length === firstStep + 2) steps.length = firstStep
|
|
351
354
|
} else if (entry.isFile()) {
|
|
352
355
|
const posix = relative.split(path.sep).join('/')
|
|
353
356
|
if (NATIVE_CONFIG_FILE.test(posix)) {
|
|
@@ -67,9 +67,7 @@ export async function buildReactNativeCore(
|
|
|
67
67
|
producer.files['Sources/PeachCoreProducerHost/Dispatch.m'] =
|
|
68
68
|
'#import <dispatch/dispatch.h>\nvoid peachTurboDispatchAsync(dispatch_block_t block) { dispatch_async(dispatch_get_main_queue(), block); }\n'
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
// window, and its link only proves the archives resolve, so it skips -Oz.
|
|
72
|
-
const input = { ...collectTurboCompileInput(producer, null, floor), optimize: false }
|
|
70
|
+
const input = collectTurboCompileInput(producer, null, floor)
|
|
73
71
|
input.files[input.entry] = input.entry.endsWith('.swift')
|
|
74
72
|
? '@main struct PeachCoreProducer { static func main() {} }\n'
|
|
75
73
|
: 'int main() { return 0; }\n'
|
|
@@ -84,6 +82,7 @@ export async function buildReactNativeCore(
|
|
|
84
82
|
moduleRoot: module.root,
|
|
85
83
|
buildRoot,
|
|
86
84
|
intermediates: true,
|
|
85
|
+
linkOnly: true,
|
|
87
86
|
})
|
|
88
87
|
const products = path.join(buildRoot, '.build', WASM_TRIPLE, 'release')
|
|
89
88
|
const emitted = swiftManifestTargets(
|
package/src/swift-compile.ts
CHANGED
|
@@ -347,6 +347,9 @@ export interface SwiftCompileOptions {
|
|
|
347
347
|
intermediates?: boolean
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
+
type SwiftProjectCompileOptions = SwiftCompileOptions &
|
|
351
|
+
({ linkOnly?: never } | { linkOnly: true; intermediates: true })
|
|
352
|
+
|
|
350
353
|
export interface SwiftCompileArtifact {
|
|
351
354
|
hash: string
|
|
352
355
|
bytes: Buffer
|
|
@@ -7330,10 +7333,18 @@ function retireStaleSwiftLink(root: string, stamp: string): boolean {
|
|
|
7330
7333
|
}
|
|
7331
7334
|
|
|
7332
7335
|
/** the project compiler shared by route hosts, Vite and source probes. */
|
|
7336
|
+
export function compileSwiftProjectUnit(
|
|
7337
|
+
input: SwiftCompileInput,
|
|
7338
|
+
options: SwiftCompileOptions & { linkOnly: true; intermediates: true },
|
|
7339
|
+
): Promise<void>
|
|
7340
|
+
export function compileSwiftProjectUnit(
|
|
7341
|
+
input: SwiftCompileInput,
|
|
7342
|
+
options: SwiftCompileOptions & { linkOnly?: never },
|
|
7343
|
+
): Promise<SwiftCompileArtifact>
|
|
7333
7344
|
export async function compileSwiftProjectUnit(
|
|
7334
7345
|
input: SwiftCompileInput,
|
|
7335
|
-
options:
|
|
7336
|
-
): Promise<SwiftCompileArtifact> {
|
|
7346
|
+
options: SwiftProjectCompileOptions,
|
|
7347
|
+
): Promise<SwiftCompileArtifact | void> {
|
|
7337
7348
|
// the shared checkout keeps landing while a builder hop waits in the heavy
|
|
7338
7349
|
// window queue, so its sources can move past the hash this caller pinned.
|
|
7339
7350
|
// rehashing and requesting again builds the sources that now exist.
|
|
@@ -7349,14 +7360,16 @@ export async function compileSwiftProjectUnit(
|
|
|
7349
7360
|
|
|
7350
7361
|
function compileSwiftProjectOnce(
|
|
7351
7362
|
input: SwiftCompileInput,
|
|
7352
|
-
options:
|
|
7353
|
-
): Promise<SwiftCompileArtifact> {
|
|
7363
|
+
options: SwiftProjectCompileOptions,
|
|
7364
|
+
): Promise<SwiftCompileArtifact | void> {
|
|
7354
7365
|
options.signal?.throwIfAborted()
|
|
7355
7366
|
mkdirSync(options.buildRoot, { recursive: true })
|
|
7356
7367
|
const root = realpathSync(options.buildRoot)
|
|
7357
7368
|
const moduleRoot = path.resolve(options.moduleRoot)
|
|
7358
7369
|
const distribution = swiftDistributionAt(moduleRoot)
|
|
7359
7370
|
const guestGraph = distribution ? input.sourceLinkGraph : undefined
|
|
7371
|
+
if (options.linkOnly && guestGraph)
|
|
7372
|
+
throw new Error('swift-compile: link-only builds do not support guest image graphs')
|
|
7360
7373
|
const layout: SwiftProjectLayout = {
|
|
7361
7374
|
root,
|
|
7362
7375
|
sources: path.join(root, 'Sources', 'App'),
|
|
@@ -7369,34 +7382,35 @@ function compileSwiftProjectOnce(
|
|
|
7369
7382
|
console.error(`[swift-project ${hash.slice(0, 16)}] ${message}`)
|
|
7370
7383
|
options.onStage?.(message)
|
|
7371
7384
|
}
|
|
7372
|
-
report('checking verified artifacts')
|
|
7373
7385
|
return serialize(
|
|
7374
7386
|
root,
|
|
7375
7387
|
async () => {
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7388
|
+
if (!options.intermediates) {
|
|
7389
|
+
report('checking verified artifacts')
|
|
7390
|
+
const retained = retainedArtifacts.get(root)?.find((old) => old.hash === hash)
|
|
7391
|
+
if (retained) {
|
|
7392
|
+
report('reusing memory artifact')
|
|
7393
|
+
return retain(root, retained)
|
|
7394
|
+
}
|
|
7395
|
+
const cached = readCompiledArtifact(path.join(sharedRoot, 'artifact'), hash)
|
|
7396
|
+
// a build root the project user writes in cannot vouch for an artifact
|
|
7397
|
+
const previous =
|
|
7398
|
+
cached ??
|
|
7399
|
+
(options.project
|
|
7400
|
+
? null
|
|
7401
|
+
: readCompiledArtifact(path.join(root, 'artifact'), hash))
|
|
7402
|
+
if (previous) {
|
|
7403
|
+
if (cached) renewSharedArtifact(sharedRoot)
|
|
7404
|
+
else saveSharedArtifact(sharedRoot, previous)
|
|
7405
|
+
report('reusing verified disk artifact')
|
|
7406
|
+
return retain(root, previous)
|
|
7407
|
+
}
|
|
7393
7408
|
}
|
|
7394
7409
|
// a live local or destination grant authorizes compilation here. a builder
|
|
7395
7410
|
// returns only the artifact, so a caller that reads the local products builds here.
|
|
7396
7411
|
if (
|
|
7397
7412
|
!options.intermediates &&
|
|
7398
7413
|
process.platform === 'darwin' &&
|
|
7399
|
-
!options.intermediates &&
|
|
7400
7414
|
process.env.TM_SESSION &&
|
|
7401
7415
|
!windowAdmission() &&
|
|
7402
7416
|
process.env.CI !== 'true' &&
|
|
@@ -7466,10 +7480,12 @@ function compileSwiftProjectOnce(
|
|
|
7466
7480
|
async (lease) => {
|
|
7467
7481
|
// a process that held the root while this one waited may have built
|
|
7468
7482
|
// this exact address.
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7483
|
+
if (!options.intermediates) {
|
|
7484
|
+
const built = readCompiledArtifact(path.join(sharedRoot, 'artifact'), hash)
|
|
7485
|
+
if (built) {
|
|
7486
|
+
report('reusing verified disk artifact')
|
|
7487
|
+
return retain(root, built)
|
|
7488
|
+
}
|
|
7473
7489
|
}
|
|
7474
7490
|
const swift = path.join(options.toolchainBin, 'swift')
|
|
7475
7491
|
if (!existsSync(swift)) {
|
|
@@ -7511,7 +7527,9 @@ function compileSwiftProjectOnce(
|
|
|
7511
7527
|
// memoized per toolchain, so only a process's first build waits on it,
|
|
7512
7528
|
// and that one reads and gzips it while swift builds
|
|
7513
7529
|
const sdk = swiftModuleSdk(frameworkRoot).wasmSdkId
|
|
7514
|
-
const icu =
|
|
7530
|
+
const icu = options.linkOnly
|
|
7531
|
+
? null
|
|
7532
|
+
: swiftIcuAsset(options.toolchainBin, sdk)
|
|
7515
7533
|
const buildOptions = {
|
|
7516
7534
|
env: {
|
|
7517
7535
|
...(options.project?.env ?? process.env),
|
|
@@ -7684,7 +7702,9 @@ function compileSwiftProjectOnce(
|
|
|
7684
7702
|
// its 8-byte placeholder would otherwise leave swiftpm seeing a fresh,
|
|
7685
7703
|
// empty executable and skipping the link on the next build.
|
|
7686
7704
|
rmSync(path.join(root, '.peach-link.rsp'), { force: true })
|
|
7687
|
-
|
|
7705
|
+
// archive producers reuse objects across compiler recipe changes,
|
|
7706
|
+
// so qualify each new entry with the current linker.
|
|
7707
|
+
if (options.linkOnly || (existsSync(linked) && statSync(linked).size <= 8))
|
|
7688
7708
|
rmSync(linked, { force: true })
|
|
7689
7709
|
report('compiling and linking Swift modules')
|
|
7690
7710
|
const frameworkInterfaces = new Map<
|
|
@@ -7930,6 +7950,12 @@ function compileSwiftProjectOnce(
|
|
|
7930
7950
|
undefined,
|
|
7931
7951
|
resourceReferences,
|
|
7932
7952
|
)
|
|
7953
|
+
if (options.linkOnly) {
|
|
7954
|
+
if (statSync(linked).size <= 8)
|
|
7955
|
+
throw new Error('swift-compile: deferred linker produced no executable')
|
|
7956
|
+
report('project link verified')
|
|
7957
|
+
return
|
|
7958
|
+
}
|
|
7933
7959
|
const output = options.project
|
|
7934
7960
|
? projectOutputFile(root, linked, options.project)
|
|
7935
7961
|
: linked
|
|
@@ -7960,7 +7986,7 @@ function compileSwiftProjectOnce(
|
|
|
7960
7986
|
const artifact = {
|
|
7961
7987
|
hash,
|
|
7962
7988
|
bytes: readFileSync(optimized),
|
|
7963
|
-
icu: await icu
|
|
7989
|
+
icu: await icu!,
|
|
7964
7990
|
}
|
|
7965
7991
|
if (artifact.bytes.length <= 8)
|
|
7966
7992
|
throw new Error('swift-compile: deferred linker produced no executable')
|