peachsim 0.1.2406 → 0.1.2409
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/agent-note.ts +231 -0
- package/cli/cloud-client.ts +8 -3
- package/cli/cloud-dispatch.ts +1 -1
- package/cli/command-agent.ts +122 -0
- package/cli/commands/agent.ts +29 -26
- package/cli/commands/stream.ts +11 -7
- package/cli/main.ts +16 -2
- package/cli/outbound-endpoints.ts +15 -0
- package/cli/ws-bridge.ts +4 -1
- package/dist-lib/agent-daemon-client.cjs +23 -3
- 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 +205 -62
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +20 -1
- package/dist-lib/cloud-contract.mjs +18 -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 +1630 -1513
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +203 -60
- 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 +394 -102
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -5
- 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 +392 -272
- 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 +5 -5
- package/dist-lib/native-app-identity-project.cjs +3 -3
- package/dist-lib/native-app-identity-project.mjs +3 -3
- 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 +70 -60
- 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 +1199 -821
- package/dist-lib/swift-compile.cjs +197 -55
- package/dist-lib/swift-compile.mjs +197 -55
- 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 +213 -58
- package/dist-lib/vite.cjs +5 -5
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +7 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/skills/peach-setup/SKILL.md +8 -3
- package/src/agent-daemon-client.ts +35 -2
- package/src/agent-prompt.ts +68 -0
- package/src/bridge-contract.ts +4 -0
- package/src/canvas-agent-note-delivery.ts +83 -0
- package/src/cloud-contract.ts +30 -0
- package/src/host/agent-host.ts +128 -18
- package/src/swift-compile.ts +124 -66
- package/src/swift-host.ts +2 -1
- package/src/swift-objc-import.ts +99 -0
- package/src/swift-packages.ts +1 -0
- package/src/swift-shared-sdk.ts +2 -1
- package/src/xcode-header-search.ts +33 -0
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2409 | (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;
|
|
@@ -9346,7 +9346,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk2)
|
|
|
9346
9346
|
const overlayFiles = (0, import_node_fs10.readdirSync)(overlay, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path10.default.join(entry.parentPath, entry.name)).sort();
|
|
9347
9347
|
const key2 = JSON.stringify([
|
|
9348
9348
|
// bump the recipe when the transformation changes; bundling changes function text.
|
|
9349
|
-
"
|
|
9349
|
+
"v25",
|
|
9350
9350
|
[...WEAKEN_FOUNDATION_SYMS],
|
|
9351
9351
|
toolchainBin,
|
|
9352
9352
|
sdk2,
|
|
@@ -9406,6 +9406,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk2)
|
|
|
9406
9406
|
"objc/NSObject.h",
|
|
9407
9407
|
"ObjectiveC.apinotes",
|
|
9408
9408
|
"net/if.h",
|
|
9409
|
+
"netinet/tcp.h",
|
|
9409
9410
|
"notify.h",
|
|
9410
9411
|
"notify.modulemap",
|
|
9411
9412
|
"module.modulemap",
|
|
@@ -17158,6 +17159,78 @@ function swiftClangImporterFlags(flags) {
|
|
|
17158
17159
|
(flag) => flag !== "-fobjc-arc" && flag !== "-fno-objc-arc" && !/^-std=(?:c(?!\+\+)|gnu(?!\+\+)|iso9899:)/.test(flag)
|
|
17159
17160
|
);
|
|
17160
17161
|
}
|
|
17162
|
+
var CLANG_PATH_OPTIONS = /* @__PURE__ */ new Set([
|
|
17163
|
+
"-I",
|
|
17164
|
+
"-F",
|
|
17165
|
+
"-idirafter",
|
|
17166
|
+
"-iframework",
|
|
17167
|
+
"-iframeworkwithsysroot",
|
|
17168
|
+
"-imacros",
|
|
17169
|
+
"-include",
|
|
17170
|
+
"-iprefix",
|
|
17171
|
+
"-iquote",
|
|
17172
|
+
"-isystem",
|
|
17173
|
+
"-isysroot",
|
|
17174
|
+
"-ivfsoverlay",
|
|
17175
|
+
"-iwithprefix",
|
|
17176
|
+
"-iwithprefixbefore",
|
|
17177
|
+
"--sysroot"
|
|
17178
|
+
]);
|
|
17179
|
+
function compactSwiftClangDefines(flags) {
|
|
17180
|
+
const definitions = /* @__PURE__ */ new Map();
|
|
17181
|
+
const macros = [];
|
|
17182
|
+
for (let index = 0; index < flags.length; index++) {
|
|
17183
|
+
if (flags[index].startsWith("@")) return flags;
|
|
17184
|
+
if (flags[index] !== "-Xcc") continue;
|
|
17185
|
+
const flag = flags[++index];
|
|
17186
|
+
if (flag === void 0 || flags[index - 2] === "-Xfrontend" || flag === "-Xclang" || flag === "-Xpreprocessor" || flag.startsWith("-Wp,") || flag.startsWith("--config") || flag.startsWith("@"))
|
|
17187
|
+
return flags;
|
|
17188
|
+
if (CLANG_PATH_OPTIONS.has(flag) && flags[index + 1] === "-Xcc") {
|
|
17189
|
+
index += 2;
|
|
17190
|
+
continue;
|
|
17191
|
+
}
|
|
17192
|
+
if (!flag.startsWith("-D") && !flag.startsWith("-U")) continue;
|
|
17193
|
+
const name3 = /^-[DU]([A-Za-z_$][\w$]*)(?=[(=]|$)/.exec(flag)?.[1];
|
|
17194
|
+
if (!name3) return flags;
|
|
17195
|
+
const previous = definitions.get(name3);
|
|
17196
|
+
definitions.set(name3, previous === void 0 || previous === flag ? flag : null);
|
|
17197
|
+
macros.push({ index, name: name3, flag });
|
|
17198
|
+
}
|
|
17199
|
+
const seen = /* @__PURE__ */ new Set();
|
|
17200
|
+
const duplicates = /* @__PURE__ */ new Set();
|
|
17201
|
+
for (const { index, name: name3, flag } of macros) {
|
|
17202
|
+
if (definitions.get(name3) !== flag) continue;
|
|
17203
|
+
if (seen.has(name3)) {
|
|
17204
|
+
duplicates.add(index - 1);
|
|
17205
|
+
duplicates.add(index);
|
|
17206
|
+
}
|
|
17207
|
+
seen.add(name3);
|
|
17208
|
+
}
|
|
17209
|
+
return duplicates.size === 0 ? flags : flags.filter((_, index) => !duplicates.has(index));
|
|
17210
|
+
}
|
|
17211
|
+
function compactSwiftClangOverlays(flags, generated) {
|
|
17212
|
+
if (generated.size === 0) return flags;
|
|
17213
|
+
const overlays = /* @__PURE__ */ new Map();
|
|
17214
|
+
const duplicates = /* @__PURE__ */ new Set();
|
|
17215
|
+
for (let index = 0; index < flags.length; index++) {
|
|
17216
|
+
const flag = flags[index];
|
|
17217
|
+
if (flag.startsWith("@")) return flags;
|
|
17218
|
+
if (flag === "-Xcc" && flags[index - 1] === "-Xfrontend") return flags;
|
|
17219
|
+
if (flags[index - 1] === "-Xcc" && (flag.startsWith("--config") || flag === "-Xclang"))
|
|
17220
|
+
return flags;
|
|
17221
|
+
if (!flag.startsWith("-ivfsoverlay") && !flag.startsWith("-vfsoverlay")) continue;
|
|
17222
|
+
if (flag !== "-ivfsoverlay" || flags[index - 1] !== "-Xcc" || flags[index + 1] !== "-Xcc")
|
|
17223
|
+
return flags;
|
|
17224
|
+
const file = flags[index + 2];
|
|
17225
|
+
if (file === void 0 || !generated.has(file)) return flags;
|
|
17226
|
+
const previous = overlays.get(file);
|
|
17227
|
+
if (previous !== void 0)
|
|
17228
|
+
for (let offset = -1; offset < 3; offset++) duplicates.add(previous + offset);
|
|
17229
|
+
overlays.set(file, index);
|
|
17230
|
+
index += 2;
|
|
17231
|
+
}
|
|
17232
|
+
return duplicates.size === 0 ? flags : flags.filter((_, index) => !duplicates.has(index));
|
|
17233
|
+
}
|
|
17161
17234
|
var SWIFT_SUBMODULE_IMPORT = /^[ \t]*(?:@\w+(?:\([^)]*\))?[ \t]+)*import[ \t]+([A-Za-z_]\w*)\.([A-Za-z_]\w*)[ \t]*(?:\/\/.*)?$/gm;
|
|
17162
17235
|
function swiftSubmoduleImports(sources) {
|
|
17163
17236
|
const imports2 = /* @__PURE__ */ new Map();
|
|
@@ -17517,6 +17590,30 @@ function compileUniformTypeConstants(args) {
|
|
|
17517
17590
|
// src/xcode-header-search.ts
|
|
17518
17591
|
var import_node_fs27 = __toESM(require("node:fs"), 1);
|
|
17519
17592
|
var import_node_path27 = __toESM(require("node:path"), 1);
|
|
17593
|
+
function coalescibleHeaderOverlays(files2) {
|
|
17594
|
+
const aliases = /* @__PURE__ */ new Map();
|
|
17595
|
+
const key2 = (file) => file.replace(/[A-Z]/g, (letter) => letter.toLowerCase());
|
|
17596
|
+
const index = (directory, entry) => {
|
|
17597
|
+
const name3 = import_node_path27.default.resolve(directory, entry.name);
|
|
17598
|
+
if (entry.type === "directory")
|
|
17599
|
+
return entry.contents.every((child) => index(name3, child));
|
|
17600
|
+
const source = entry["external-contents"];
|
|
17601
|
+
const previous = aliases.get(key2(name3));
|
|
17602
|
+
if (previous !== void 0 && previous !== source) return false;
|
|
17603
|
+
aliases.set(key2(name3), source);
|
|
17604
|
+
return true;
|
|
17605
|
+
};
|
|
17606
|
+
for (const file of files2) {
|
|
17607
|
+
const overlay = JSON.parse(import_node_fs27.default.readFileSync(file, "utf8"));
|
|
17608
|
+
if (!overlay.roots.every((entry) => index(import_node_path27.default.dirname(file), entry)))
|
|
17609
|
+
return /* @__PURE__ */ new Set();
|
|
17610
|
+
}
|
|
17611
|
+
for (const file of [...files2, ...aliases.values()]) {
|
|
17612
|
+
const source = aliases.get(key2(import_node_path27.default.normalize(file)));
|
|
17613
|
+
if (source !== void 0 && source !== file) return /* @__PURE__ */ new Set();
|
|
17614
|
+
}
|
|
17615
|
+
return files2;
|
|
17616
|
+
}
|
|
17520
17617
|
function headerMap(entries) {
|
|
17521
17618
|
const unique = /* @__PURE__ */ new Map();
|
|
17522
17619
|
for (const entry of entries)
|
|
@@ -18585,6 +18682,15 @@ function swiftTargetDependencies(files2, targets, frameworks = OPTIONAL_FRAMEWOR
|
|
|
18585
18682
|
)
|
|
18586
18683
|
);
|
|
18587
18684
|
const names = /* @__PURE__ */ new Set([...frameworks, ...targets.map((target) => target.name)]);
|
|
18685
|
+
const entriesByPrefix = new Map(
|
|
18686
|
+
targets.map(({ path: path55 }) => [path55 === "." ? "" : `${path55}/`, []])
|
|
18687
|
+
);
|
|
18688
|
+
for (const entry of Object.entries(files2)) {
|
|
18689
|
+
const [file] = entry;
|
|
18690
|
+
entriesByPrefix.get("")?.push(entry);
|
|
18691
|
+
for (let end = file.indexOf("/"); end !== -1; end = file.indexOf("/", end + 1))
|
|
18692
|
+
entriesByPrefix.get(file.slice(0, end + 1))?.push(entry);
|
|
18693
|
+
}
|
|
18588
18694
|
const siblings = /* @__PURE__ */ new Map();
|
|
18589
18695
|
for (const target of targets) {
|
|
18590
18696
|
const prefix = target.path === "." ? "" : `${target.path}/`;
|
|
@@ -18598,8 +18704,11 @@ function swiftTargetDependencies(files2, targets, frameworks = OPTIONAL_FRAMEWOR
|
|
|
18598
18704
|
(dependency) => dependency.kind === "target" && dependency.name !== target.name && names.has(dependency.name) || dependency.kind === "product" && dependency.package === "sootsim-swift" && OPTIONAL_FRAMEWORKS.has(dependency.name) ? [dependency.name] : []
|
|
18599
18705
|
)
|
|
18600
18706
|
);
|
|
18601
|
-
|
|
18602
|
-
|
|
18707
|
+
const nested = target.sources === void 0 ? targets.flatMap(
|
|
18708
|
+
(candidate) => candidate.name !== target.name && candidate.path !== "." && candidate.path.startsWith(prefix) ? [`${candidate.path}/`] : []
|
|
18709
|
+
) : [];
|
|
18710
|
+
for (const [file, contents2] of entriesByPrefix.get(prefix) ?? []) {
|
|
18711
|
+
if (file === "Package.swift") continue;
|
|
18603
18712
|
const relative2 = file.slice(prefix.length);
|
|
18604
18713
|
if (target.sources !== void 0 && !target.sources.some(
|
|
18605
18714
|
(source) => source === "." || relative2 === source || relative2.startsWith(`${source}/`)
|
|
@@ -18609,10 +18718,7 @@ function swiftTargetDependencies(files2, targets, frameworks = OPTIONAL_FRAMEWOR
|
|
|
18609
18718
|
(excluded) => relative2 === excluded || relative2.startsWith(`${excluded}/`)
|
|
18610
18719
|
))
|
|
18611
18720
|
continue;
|
|
18612
|
-
if (
|
|
18613
|
-
(candidate) => candidate.name !== target.name && candidate.path !== "." && candidate.path.startsWith(prefix) && file.startsWith(`${candidate.path}/`)
|
|
18614
|
-
))
|
|
18615
|
-
continue;
|
|
18721
|
+
if (nested.some((path55) => file.startsWith(path55))) continue;
|
|
18616
18722
|
const imports2 = file.endsWith(".swift") ? swiftImportNames(contents2) : SWIFT_NATIVE_SOURCE_EXTENSIONS.some((extension) => file.endsWith(extension)) ? clangImportNames(contents2, ownsHeader) : [];
|
|
18617
18723
|
for (const name3 of imports2) {
|
|
18618
18724
|
if (names.has(name3) && name3 !== target.name && !(target.dependencies !== void 0 && localNames.has(name3)))
|
|
@@ -18673,9 +18779,9 @@ var executableLinkFlags = (root) => ` "-Xclang-linker", "-O0",
|
|
|
18673
18779
|
`;
|
|
18674
18780
|
var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...quoted2, "-Wl,--end-lib"] : [];
|
|
18675
18781
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
18676
|
-
var MULTI_MANIFEST_VERSION =
|
|
18782
|
+
var MULTI_MANIFEST_VERSION = 71;
|
|
18677
18783
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
18678
|
-
var compilerSourceDigest = true ? "
|
|
18784
|
+
var compilerSourceDigest = true ? "d287f3ad479477c70004707c1336f37c9baeb81aef1880544a5ca236e088ca16" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
18679
18785
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
18680
18786
|
const hash = (0, import_node_crypto14.createHash)("sha256");
|
|
18681
18787
|
hash.update(`swift-compile
|
|
@@ -18907,7 +19013,9 @@ function emitSwiftPackageManifest(args) {
|
|
|
18907
19013
|
const flags = JSON.parse(literal2.replace(/,\s*]$/, "]")).filter(
|
|
18908
19014
|
(flag, index, all) => !mapsPackageModule(flag) && !(flag === "-Xcc" && mapsPackageModule(all[index + 1] ?? ""))
|
|
18909
19015
|
);
|
|
18910
|
-
const
|
|
19016
|
+
const macros = compactSwiftClangDefines(flags);
|
|
19017
|
+
const compact = args.coalescibleOverlays ? compactSwiftClangOverlays(macros, args.coalescibleOverlays) : macros;
|
|
19018
|
+
const content = compact.map((flag) => JSON.stringify(flag)).join("\n") + "\n";
|
|
18911
19019
|
const digest = (0, import_node_crypto14.createHash)("sha256").update(content).digest("hex");
|
|
18912
19020
|
const file = import_node_path28.default.join(args.root, ".peach-swift-arguments", `${digest}.rsp`);
|
|
18913
19021
|
args.files.set(file, content);
|
|
@@ -18998,7 +19106,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
18998
19106
|
].map((flag) => `, ${JSON.stringify(flag)}`).join("");
|
|
18999
19107
|
const header = args.headerDirectory && (args.nativeHeaderDeclarations?.[target.name] || [...args.native?.values() ?? []].some(
|
|
19000
19108
|
(value) => value.late?.producers.includes(target.name)
|
|
19001
|
-
)) ? `, "-emit-objc-header-path", ${JSON.stringify(import_node_path28.default.join(args.headerDirectory, `${target.name}-Swift
|
|
19109
|
+
)) ? `, "-emit-objc-header-path", ${JSON.stringify(import_node_path28.default.join(args.headerDirectory, `${target.name}-Swift.original.h`))}` : "";
|
|
19002
19110
|
const clangMode = target.cxxInterop ? "" : ', "-Xcc", "-fno-cxx-modules"';
|
|
19003
19111
|
const deployment = `, "-Xfrontend", "-peach-ios-deployment-target", "-Xfrontend", ${JSON.stringify(target.iosDeploymentTarget ?? SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET)}`;
|
|
19004
19112
|
const swiftSettings = `swiftSettings: [.swiftLanguageMode(.v${target.languageMode}),${isolation}${interoperability}${defines}${features}${upcoming} .unsafeFlags(${swiftFlagArray(`["-Osize", "-Xfrontend", "-enable-cross-import-overlays"${overlayFlags}${FOUNDATION_IMPLICIT_FLAGS}${oneModule ? ONE_IMPLICIT_FLAGS : ""}${imports2}${nativeImportFlags}${objcFlags}${header}${clangMode}${deployment}${upstream}]`)})]`;
|
|
@@ -21544,6 +21652,9 @@ module ${moduleName}.Swift {
|
|
|
21544
21652
|
nativeHeaderDeclarations[module2] = [...declared];
|
|
21545
21653
|
}
|
|
21546
21654
|
const nativeFlags = native.size > 0 ? /* @__PURE__ */ new Map() : void 0;
|
|
21655
|
+
const generatedOverlays = new Set(
|
|
21656
|
+
headerSearch.files.filter((file) => file.endsWith(".yaml"))
|
|
21657
|
+
);
|
|
21547
21658
|
if (nativeFlags) {
|
|
21548
21659
|
const toolchainBin = nativeToolchain();
|
|
21549
21660
|
const headers = import_node_path28.default.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "darwin");
|
|
@@ -21564,8 +21675,11 @@ module ${moduleName}.Swift {
|
|
|
21564
21675
|
throw new Error(
|
|
21565
21676
|
target.name + ": missing or unsupported declared iOS deployment target " + JSON.stringify(version2)
|
|
21566
21677
|
);
|
|
21678
|
+
const sdkIntake = objcSdkIntakeFlags(headers, toolchainBin, minimum);
|
|
21679
|
+
const sdkOverlay = sdkIntake.indexOf("-ivfsoverlay");
|
|
21680
|
+
if (sdkOverlay >= 0) generatedOverlays.add(sdkIntake[sdkOverlay + 1]);
|
|
21567
21681
|
const intake = [
|
|
21568
|
-
...
|
|
21682
|
+
...sdkIntake,
|
|
21569
21683
|
"-ivfsoverlay",
|
|
21570
21684
|
headerSearch.files[0],
|
|
21571
21685
|
"-I",
|
|
@@ -21734,6 +21848,7 @@ module ${moduleName}.Swift {
|
|
|
21734
21848
|
sourceSwiftTargets: swiftTargets,
|
|
21735
21849
|
nativeFlags,
|
|
21736
21850
|
nativeImportFlags,
|
|
21851
|
+
coalescibleOverlays: nativeFlags ? coalescibleHeaderOverlays(generatedOverlays) : void 0,
|
|
21737
21852
|
nativeHeaderFlags,
|
|
21738
21853
|
nativeSwiftHeaderMaps,
|
|
21739
21854
|
nativeHeaderDeclarations,
|
|
@@ -23044,6 +23159,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
23044
23159
|
report("compiling and linking Swift modules");
|
|
23045
23160
|
const frameworkInterfaces = /* @__PURE__ */ new Map();
|
|
23046
23161
|
const nativeDeclarations = /* @__PURE__ */ new Map();
|
|
23162
|
+
const nativeHeaders = Object.entries(input.files).filter(([name3]) => name3.endsWith(".h") && !name3.endsWith("-Swift.h")).map(([, source]) => source);
|
|
23047
23163
|
for (const [file, contents2] of Object.entries(input.files)) {
|
|
23048
23164
|
if (!file.endsWith(".modulemap")) continue;
|
|
23049
23165
|
const name3 = moduleMapName(contents2);
|
|
@@ -23131,54 +23247,83 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
23131
23247
|
);
|
|
23132
23248
|
return value;
|
|
23133
23249
|
};
|
|
23134
|
-
|
|
23135
|
-
|
|
23136
|
-
|
|
23137
|
-
|
|
23138
|
-
|
|
23139
|
-
|
|
23140
|
-
|
|
23141
|
-
|
|
23250
|
+
const compileApp = async () => {
|
|
23251
|
+
const stages = [
|
|
23252
|
+
...preparation.headerBuilds,
|
|
23253
|
+
...preparation.nativeProductTarget ? [{ target: preparation.nativeProductTarget, producers: [] }] : []
|
|
23254
|
+
];
|
|
23255
|
+
const checkpoints = import_node_path28.default.join(root, ".build", "peach-product-checkpoints");
|
|
23256
|
+
const recipe = (0, import_node_crypto14.createHash)("sha256").update(hash).update((0, import_node_fs28.readFileSync)(import_node_path28.default.join(root, "Package.swift"))).update(JSON.stringify(buildArgs)).digest("hex");
|
|
23257
|
+
for (const { target, producers } of stages) {
|
|
23258
|
+
const receipt = import_node_path28.default.join(
|
|
23259
|
+
checkpoints,
|
|
23260
|
+
(0, import_node_crypto14.createHash)("sha256").update(target).digest("hex")
|
|
23142
23261
|
);
|
|
23143
|
-
|
|
23144
|
-
const
|
|
23262
|
+
const headers = producers.map((producer) => {
|
|
23263
|
+
const stem = import_node_path28.default.join(
|
|
23145
23264
|
root,
|
|
23146
23265
|
".build",
|
|
23147
23266
|
"peach-cxx-headers",
|
|
23148
|
-
`${producer}-Swift
|
|
23267
|
+
`${producer}-Swift`
|
|
23149
23268
|
);
|
|
23150
|
-
|
|
23151
|
-
|
|
23152
|
-
|
|
23153
|
-
|
|
23154
|
-
|
|
23155
|
-
|
|
23156
|
-
|
|
23157
|
-
|
|
23158
|
-
|
|
23159
|
-
|
|
23160
|
-
|
|
23161
|
-
|
|
23162
|
-
generated,
|
|
23163
|
-
Object.entries(input.files).filter(
|
|
23164
|
-
([name3]) => name3.endsWith(".h") && !name3.endsWith("-Swift.h")
|
|
23165
|
-
).map(([, source]) => source)
|
|
23166
|
-
)
|
|
23167
|
-
]),
|
|
23168
|
-
`#import <${producer}/${producer}.h>`
|
|
23169
|
-
)
|
|
23269
|
+
return {
|
|
23270
|
+
producer,
|
|
23271
|
+
original: `${stem}.original.h`,
|
|
23272
|
+
emitted: `${stem}.h`
|
|
23273
|
+
};
|
|
23274
|
+
});
|
|
23275
|
+
const fingerprint = () => {
|
|
23276
|
+
const digest = (0, import_node_crypto14.createHash)("sha256").update(recipe);
|
|
23277
|
+
for (const { emitted } of headers) {
|
|
23278
|
+
if (!(0, import_node_fs28.existsSync)(emitted)) return;
|
|
23279
|
+
digest.update(
|
|
23280
|
+
(0, import_node_crypto14.createHash)("sha256").update((0, import_node_fs28.readFileSync)(emitted)).digest()
|
|
23170
23281
|
);
|
|
23171
23282
|
}
|
|
23172
|
-
|
|
23173
|
-
|
|
23174
|
-
|
|
23283
|
+
return digest.digest("hex");
|
|
23284
|
+
};
|
|
23285
|
+
if (!options.project && (0, import_node_fs28.existsSync)(receipt) && (0, import_node_fs28.readFileSync)(receipt, "utf8") === fingerprint())
|
|
23286
|
+
continue;
|
|
23287
|
+
if (!options.project) (0, import_node_fs28.rmSync)(receipt, { force: true });
|
|
23288
|
+
for (const { producer, original } of headers)
|
|
23289
|
+
if (!(0, import_node_fs28.existsSync)(original))
|
|
23290
|
+
(0, import_node_fs28.rmSync)(
|
|
23291
|
+
import_node_path28.default.join(
|
|
23292
|
+
root,
|
|
23293
|
+
".build",
|
|
23294
|
+
WASM_TRIPLE,
|
|
23295
|
+
"release",
|
|
23296
|
+
"Modules",
|
|
23297
|
+
`${swiftTargetModuleName(producer)}.swiftmodule`
|
|
23298
|
+
),
|
|
23299
|
+
{ force: true }
|
|
23300
|
+
);
|
|
23175
23301
|
await runCompiler(
|
|
23176
23302
|
swift,
|
|
23177
|
-
[...buildArgs, "--target",
|
|
23303
|
+
[...buildArgs, "--target", target],
|
|
23178
23304
|
appOptions,
|
|
23179
23305
|
SWIFTPM_PROGRESS,
|
|
23180
23306
|
SWIFTPM_NOISE
|
|
23181
23307
|
);
|
|
23308
|
+
for (const { producer, original, emitted } of headers) {
|
|
23309
|
+
const generated = clangInterfaceHeader((0, import_node_fs28.readFileSync)(original, "utf8"));
|
|
23310
|
+
writeBuildFile(
|
|
23311
|
+
emitted,
|
|
23312
|
+
withoutSwiftDeclarations(
|
|
23313
|
+
swiftHeaderWithSuperclassImports(generated, frameworkInterface),
|
|
23314
|
+
/* @__PURE__ */ new Set([
|
|
23315
|
+
...preparation.nativeHeaderDeclarations[producer] ?? [],
|
|
23316
|
+
...nativelyDeclaredFunctions(generated, nativeHeaders)
|
|
23317
|
+
]),
|
|
23318
|
+
`#import <${producer}/${producer}.h>`
|
|
23319
|
+
)
|
|
23320
|
+
);
|
|
23321
|
+
}
|
|
23322
|
+
if (!options.project) {
|
|
23323
|
+
(0, import_node_fs28.mkdirSync)(checkpoints, { recursive: true });
|
|
23324
|
+
(0, import_node_fs28.writeFileSync)(`${receipt}.partial`, fingerprint());
|
|
23325
|
+
(0, import_node_fs28.renameSync)(`${receipt}.partial`, receipt);
|
|
23326
|
+
}
|
|
23182
23327
|
}
|
|
23183
23328
|
await runCompiler(
|
|
23184
23329
|
swift,
|
|
@@ -23187,6 +23332,9 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
23187
23332
|
SWIFTPM_PROGRESS,
|
|
23188
23333
|
SWIFTPM_NOISE
|
|
23189
23334
|
);
|
|
23335
|
+
};
|
|
23336
|
+
try {
|
|
23337
|
+
await compileApp();
|
|
23190
23338
|
} catch (error) {
|
|
23191
23339
|
const output3 = outputOf(error);
|
|
23192
23340
|
const moduleCache = import_node_path28.default.join(
|
|
@@ -23199,13 +23347,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
23199
23347
|
if (output3.includes("was compiled with module cache path") && (0, import_node_fs28.existsSync)(moduleCache)) {
|
|
23200
23348
|
(0, import_node_fs28.rmSync)(moduleCache, { recursive: true, force: true });
|
|
23201
23349
|
try {
|
|
23202
|
-
await
|
|
23203
|
-
swift,
|
|
23204
|
-
buildArgs,
|
|
23205
|
-
appOptions,
|
|
23206
|
-
SWIFTPM_PROGRESS,
|
|
23207
|
-
SWIFTPM_NOISE
|
|
23208
|
-
);
|
|
23350
|
+
await compileApp();
|
|
23209
23351
|
} catch (retryError) {
|
|
23210
23352
|
throw new Error(
|
|
23211
23353
|
[
|
|
@@ -26805,6 +26947,18 @@ function preparedSwiftCheckouts(project) {
|
|
|
26805
26947
|
}
|
|
26806
26948
|
return void 0;
|
|
26807
26949
|
}
|
|
26950
|
+
function preparedSwiftPin(checkouts, identity2, location, revision) {
|
|
26951
|
+
for (const workspace of workspaces.values()) {
|
|
26952
|
+
if (workspace.checkouts !== checkouts) continue;
|
|
26953
|
+
const pin2 = workspace.pins.find((item) => item.identity === identity2);
|
|
26954
|
+
if (!pin2 || pin2.location !== location || pin2.revision !== revision)
|
|
26955
|
+
throw new Error(`prepared Swift package pin mismatch: ${identity2}`);
|
|
26956
|
+
if (!import_node_fs32.default.existsSync(import_node_path32.default.join(checkouts, identity2, "Package.swift")))
|
|
26957
|
+
throw new Error(`prepared Swift package is missing: ${identity2}`);
|
|
26958
|
+
return true;
|
|
26959
|
+
}
|
|
26960
|
+
return false;
|
|
26961
|
+
}
|
|
26808
26962
|
function preparedXcodePhase(project, target, phase, configuration, outputs, recorded) {
|
|
26809
26963
|
const root = recording?.root ?? [...workspaces.keys()].find((root2) => {
|
|
26810
26964
|
const relative2 = import_node_path32.default.relative(root2, project);
|
|
@@ -26944,7 +27098,7 @@ var import_node_fs35 = require("node:fs");
|
|
|
26944
27098
|
var import_node_path35 = require("node:path");
|
|
26945
27099
|
|
|
26946
27100
|
// src/swift-coverage/provenance.ts
|
|
26947
|
-
var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"
|
|
27101
|
+
var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"092e07d3f9154f5aaf9f7c668f16c933c3ac5d8c57e5c32df0222ae6f785eaf7","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
26948
27102
|
|
|
26949
27103
|
// src/swift-coverage/xcode-asset-symbols.ts
|
|
26950
27104
|
var import_node_fs34 = require("node:fs");
|
|
@@ -33577,6 +33731,7 @@ var execFileAsync2 = (0, import_node_util7.promisify)(import_node_child_process2
|
|
|
33577
33731
|
var checkoutKey = (dir, pin2) => `${dir}\0${pin2.revision}`;
|
|
33578
33732
|
function fetchedCheckout(checkouts, identity2, pin2) {
|
|
33579
33733
|
const dir = import_node_path44.default.join(checkouts, identity2);
|
|
33734
|
+
if (preparedSwiftPin(checkouts, identity2, pin2.location, pin2.revision)) return dir;
|
|
33580
33735
|
const head = import_node_path44.default.join(dir, ".git", "HEAD");
|
|
33581
33736
|
if (!verified.has(checkoutKey(dir, pin2)) || !import_node_fs43.default.existsSync(head) || import_node_fs43.default.readFileSync(head, "utf8").trim() !== pin2.revision)
|
|
33582
33737
|
throw new Error(
|
|
@@ -34139,7 +34294,7 @@ function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
|
|
|
34139
34294
|
return hash.digest("hex");
|
|
34140
34295
|
}
|
|
34141
34296
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
34142
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
34297
|
+
var STANDIN_SOURCE_DIGEST = true ? "f2b2c9a5d56b4cc06d8934ce5600587dcf7893acdf17158203975d997dbd387e" : standinSourceDigest();
|
|
34143
34298
|
|
|
34144
34299
|
// src/swift-standins.ts
|
|
34145
34300
|
var import_node_child_process32 = require("node:child_process");
|
|
@@ -39933,7 +40088,7 @@ async function swiftPackages(entry, app) {
|
|
|
39933
40088
|
] : []
|
|
39934
40089
|
);
|
|
39935
40090
|
let reached = [...cached.binaries.filter((binary) => binary.reached), ...vendored];
|
|
39936
|
-
const standinArtifact = (binary) => binary.publicHeaders === void 0 || binary.unloweredSources !== void 0;
|
|
40091
|
+
const standinArtifact = (binary) => !binary.rustCrate && (binary.publicHeaders === void 0 || binary.unloweredSources !== void 0);
|
|
39937
40092
|
const artifacts = reached.filter(standinArtifact);
|
|
39938
40093
|
if (entry.moduleRoot && entry.provided && artifacts.length > 0) {
|
|
39939
40094
|
const { provided } = entry;
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2409 | (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;
|
|
@@ -2850,7 +2850,7 @@ var require_lib = __commonJS({
|
|
|
2850
2850
|
var runtime_companion_default;
|
|
2851
2851
|
var init_runtime_companion = __esm({
|
|
2852
2852
|
"runtime-companion.json"() {
|
|
2853
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
2853
|
+
runtime_companion_default = { abi: 1, sha256: "f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b", file: "node/cli-f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b.cjs" };
|
|
2854
2854
|
}
|
|
2855
2855
|
});
|
|
2856
2856
|
|
|
@@ -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 ? "f2b2c9a5d56b4cc06d8934ce5600587dcf7893acdf17158203975d997dbd387e" : standinSourceDigest();
|
|
3248
3248
|
}
|
|
3249
3249
|
});
|
|
3250
3250
|
|
|
@@ -3715,7 +3715,7 @@ var swiftCoverageProvenance;
|
|
|
3715
3715
|
var init_provenance = __esm({
|
|
3716
3716
|
"src/swift-coverage/provenance.ts"() {
|
|
3717
3717
|
"use strict";
|
|
3718
|
-
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"
|
|
3718
|
+
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"092e07d3f9154f5aaf9f7c668f16c933c3ac5d8c57e5c32df0222ae6f785eaf7","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
3719
3719
|
}
|
|
3720
3720
|
});
|
|
3721
3721
|
|
|
@@ -4962,7 +4962,7 @@ var init_swift_compile = __esm({
|
|
|
4962
4962
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
4963
4963
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
4964
4964
|
).join("");
|
|
4965
|
-
compilerSourceDigest = true ? "
|
|
4965
|
+
compilerSourceDigest = true ? "d287f3ad479477c70004707c1336f37c9baeb81aef1880544a5ca236e088ca16" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
4966
4966
|
C_WORDS = new Set(
|
|
4967
4967
|
"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(
|
|
4968
4968
|
" "
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2409 | (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,7 +1,7 @@
|
|
|
1
1
|
export declare const DISPLAY_SERVER_VERSION = 26;
|
|
2
2
|
export declare const DISPLAY_SERVER_MAJOR = 2;
|
|
3
|
-
export declare const DISPLAY_SERVER_MINOR =
|
|
4
|
-
export declare const DISPLAY_SERVER_SUBPROTOCOL = "rnx.display-server.v2.wire26.
|
|
3
|
+
export declare const DISPLAY_SERVER_MINOR = 34;
|
|
4
|
+
export declare const DISPLAY_SERVER_SUBPROTOCOL = "rnx.display-server.v2.wire26.minor34";
|
|
5
5
|
export declare const DISPLAY_SERVER_TOKEN_SUBPROTOCOL_PREFIX = "rnx.sim-token.";
|
|
6
6
|
export declare const RNX_CLOUD_DISPLAY_GRANT_TTL_MS: number;
|
|
7
7
|
export declare const RNX_CLOUD_DISPLAY_CLOSE: {
|
|
@@ -46,7 +46,7 @@ export { SOOTSIM_TIMELINE_KINDS, isTimelineKind, isTimelineEvent, } from './time
|
|
|
46
46
|
export type { SootSimTimelineKind, SootSimTimelineContext, SootSimTimelineEvent, SootSimTimelineQuery, SootSimTimelineQueryResult, SootSimTimelineCountsByKind, SootSimTimelineSummary, SootSimTimelineStatus, SootSimTimelineBridge, } from './timelineBridgeContract.d.ts';
|
|
47
47
|
export type { SootSimSceneStreamCommand, SootSimSceneStreamContinuation, SootSimSceneReplayState, SootSimSceneStreamResult, SootSimSceneStreamBridge, } from './sceneStreamBridgeContract.d.ts';
|
|
48
48
|
export { createSootSimReplayScreenIdentity, inferCursorMoveMs, createSootSimReplayCursorState, createSootSimReplayState, } from './replayBridgeContract.d.ts';
|
|
49
|
-
export type { SootSimReplayCursorMode, SootSimReplayCursorPose, SootSimReplayCursorState, SootSimAgentActionDetail, SootSimHardwareKeyboardInputDetail, SootSimReplayTarget, SootSimReplayEvent, SootSimReplayPathPoint, SootSimReplayPreviewState, SootSimReplayState, } from './replayBridgeContract.d.ts';
|
|
49
|
+
export type { SootSimReplayCursorMode, SootSimReplayCursorPose, SootSimReplayCursorState, SootSimAgentActionDetail, SootSimAgentIdentity, SootSimHardwareKeyboardInputDetail, SootSimReplayTarget, SootSimReplayEvent, SootSimReplayPathPoint, SootSimReplayPreviewState, SootSimReplayState, } from './replayBridgeContract.d.ts';
|
|
50
50
|
export type { PointerSourceEvent } from './pointerSourceEventContract.d.ts';
|
|
51
51
|
export type { SootSimCornerRadii, NativeSurfaceShadow, NativeSurfaceShadowCast, NativeSurfaceLayout, NativeSurfacePresentation, NativeSurfaceIdentity, NativeSurfacePresented, NativeSurfaceRegistration, } from './nativeSurfaceContract.d.ts';
|
|
52
52
|
export type { GuestEvaluationReceipt, GuestExecutionDigest, GuestExecutionRecord, GuestExecutionSnapshot, } from './guestExecutionContract.d.ts';
|
|
@@ -37,6 +37,13 @@ export interface SootSimAgentActionDetail {
|
|
|
37
37
|
keyboardAction?: 'type' | 'press' | 'dispatchKey' | 'dismiss' | 'edit';
|
|
38
38
|
edit?: TextInputEditCommand;
|
|
39
39
|
target?: SootSimReplayTarget;
|
|
40
|
+
agent?: SootSimAgentIdentity;
|
|
41
|
+
}
|
|
42
|
+
export interface SootSimAgentIdentity {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
machine: string;
|
|
46
|
+
step: string;
|
|
40
47
|
}
|
|
41
48
|
export type SootSimHardwareKeyboardInputDetail = {
|
|
42
49
|
keyboardAction: 'type' | 'dispatchKey';
|
package/kotlin/sdk.tar.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b","file":"node/cli-f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b.cjs"}
|
|
@@ -91,10 +91,15 @@ When the task includes receiving feedback from the simulator, run:
|
|
|
91
91
|
peach agent listen
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
It returns one pending inspect request or waits for the next, then exits.
|
|
94
|
+
It returns one pending inspect request or waits for the next, then exits. Run it
|
|
95
|
+
again after handling the request. Someone watching your local, streamed or
|
|
96
|
+
remote simulator can send you a canvas note. A pending note can also arrive on
|
|
97
|
+
the next command you run against that simulator. Keep the same CLI identity
|
|
98
|
+
when driving and listening so the note reaches you.
|
|
99
|
+
|
|
95
100
|
Use the printed context first. `peach agent info <message-id>` provides the
|
|
96
|
-
complete request and artifact paths. Open saved tree, inspect data,
|
|
97
|
-
|
|
101
|
+
complete request and artifact paths. Open a saved tree, inspect data, screenshot
|
|
102
|
+
or marked crop when you need the extra detail.
|
|
98
103
|
|
|
99
104
|
Compatibility and support reports require the user's explicit approval.
|
|
100
105
|
Read [reporting](references/reporting.md) before offering or sending one.
|