peachsim 0.1.764 → 0.1.766
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/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.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/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +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/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +49 -10
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 +1 -1
- 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 +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/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/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.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 +68 -29
- 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 +42 -3
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/src/swift-host.ts +44 -0
- package/src/swift-packages.ts +14 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -6344,7 +6344,7 @@ function getCliVersion() {
|
|
|
6344
6344
|
}
|
|
6345
6345
|
|
|
6346
6346
|
// src/expo-swift-host.ts
|
|
6347
|
-
var
|
|
6347
|
+
var import_node_child_process9 = require("node:child_process");
|
|
6348
6348
|
var import_node_crypto7 = require("node:crypto");
|
|
6349
6349
|
var import_node_fs17 = __toESM(require("node:fs"), 1);
|
|
6350
6350
|
var import_node_module = require("node:module");
|
|
@@ -8604,6 +8604,7 @@ function swiftModuleToolchain(root) {
|
|
|
8604
8604
|
}
|
|
8605
8605
|
|
|
8606
8606
|
// src/swift-host.ts
|
|
8607
|
+
var import_node_child_process8 = require("node:child_process");
|
|
8607
8608
|
var import_node_crypto6 = require("node:crypto");
|
|
8608
8609
|
var import_node_fs16 = __toESM(require("node:fs"), 1);
|
|
8609
8610
|
var import_node_os6 = __toESM(require("node:os"), 1);
|
|
@@ -9223,11 +9224,13 @@ function resolveSwiftPackages(options) {
|
|
|
9223
9224
|
targetOutcomes.set(key, outcome);
|
|
9224
9225
|
return outcome;
|
|
9225
9226
|
};
|
|
9227
|
+
const productOutcomes = /* @__PURE__ */ new Map();
|
|
9226
9228
|
const resolveProduct = (pkg, product) => {
|
|
9227
9229
|
if (provided.has(product)) return null;
|
|
9228
9230
|
const roots = pkg.manifest.products.get(product);
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
+
const reason = !roots ? `${import_node_path14.default.basename(pkg.manifest.dir)} has no library ${product}` : roots.map((name2) => resolveTarget(pkg, name2)).find((value) => value !== null) ?? null;
|
|
9232
|
+
productOutcomes.set(`${pkg.manifest.dir}\0${product}`, { pkg, reason });
|
|
9233
|
+
return reason;
|
|
9231
9234
|
};
|
|
9232
9235
|
const resolveDependencyProduct = (pkg, packageName, product) => {
|
|
9233
9236
|
if (provided.has(product)) return null;
|
|
@@ -9265,6 +9268,11 @@ function resolveSwiftPackages(options) {
|
|
|
9265
9268
|
result.modules.set(name2, { source: pkg.source, reason });
|
|
9266
9269
|
}
|
|
9267
9270
|
}
|
|
9271
|
+
for (const [key, { pkg, reason }] of productOutcomes) {
|
|
9272
|
+
const product = key.slice(key.indexOf("\0") + 1);
|
|
9273
|
+
if (reason && !result.modules.has(product))
|
|
9274
|
+
result.modules.set(product, { source: pkg.source, reason });
|
|
9275
|
+
}
|
|
9268
9276
|
const reached = /* @__PURE__ */ new Set();
|
|
9269
9277
|
const reach = (pkg, name2) => {
|
|
9270
9278
|
const key = `${pkg.manifest.dir}\0${name2}`;
|
|
@@ -11003,12 +11011,43 @@ function swiftApiGapReport(output) {
|
|
|
11003
11011
|
...other.size > 0 ? ["other errors, often caused by the ones above:", ...rows(other)] : []
|
|
11004
11012
|
].join("\n");
|
|
11005
11013
|
}
|
|
11014
|
+
var UNPROVIDED_PLATFORM_MODULES = {
|
|
11015
|
+
Darwin: "Peach compiles for WebAssembly, which has no Darwin; C library names come through Foundation",
|
|
11016
|
+
MachO: "Peach compiles for WebAssembly, which has no Mach-O images"
|
|
11017
|
+
};
|
|
11018
|
+
var iosSdkFrameworks = null;
|
|
11019
|
+
function iosFrameworks() {
|
|
11020
|
+
if (iosSdkFrameworks) return iosSdkFrameworks;
|
|
11021
|
+
iosSdkFrameworks = /* @__PURE__ */ new Set();
|
|
11022
|
+
if (process.platform !== "darwin") return iosSdkFrameworks;
|
|
11023
|
+
const sdk = (0, import_node_child_process8.execFileSync)("xcrun", ["--sdk", "iphonesimulator", "--show-sdk-path"], {
|
|
11024
|
+
encoding: "utf8",
|
|
11025
|
+
stdio: ["ignore", "pipe", "ignore"]
|
|
11026
|
+
}).trim();
|
|
11027
|
+
for (const entry of import_node_fs16.default.readdirSync(import_node_path17.default.join(sdk, "System/Library/Frameworks")))
|
|
11028
|
+
if (entry.endsWith(".framework"))
|
|
11029
|
+
iosSdkFrameworks.add(entry.slice(0, -".framework".length));
|
|
11030
|
+
return iosSdkFrameworks;
|
|
11031
|
+
}
|
|
11006
11032
|
function missingModulesMessage(packagePath, missing) {
|
|
11007
11033
|
const layout = xcodeLayout(packagePath);
|
|
11008
11034
|
const gaps = new Map([
|
|
11009
11035
|
...(layout?.app.binaryFrameworks ?? []).map(
|
|
11010
11036
|
(name2) => [name2, { source: "the project", reason: "a vendored binary framework" }]
|
|
11011
11037
|
),
|
|
11038
|
+
...[...missing.keys()].flatMap(
|
|
11039
|
+
(name2) => UNPROVIDED_PLATFORM_MODULES[name2] ? [
|
|
11040
|
+
[
|
|
11041
|
+
name2,
|
|
11042
|
+
{ source: "the iOS SDK", reason: UNPROVIDED_PLATFORM_MODULES[name2] }
|
|
11043
|
+
]
|
|
11044
|
+
] : iosFrameworks().has(name2) ? [
|
|
11045
|
+
[
|
|
11046
|
+
name2,
|
|
11047
|
+
{ source: "the iOS SDK", reason: "a framework Peach does not provide" }
|
|
11048
|
+
]
|
|
11049
|
+
] : []
|
|
11050
|
+
),
|
|
11012
11051
|
...layout?.packages.modules ?? [],
|
|
11013
11052
|
...layout?.packages.unavailable ?? []
|
|
11014
11053
|
]);
|
|
@@ -11182,7 +11221,7 @@ function serveSwiftPackageAsset(pathname, res) {
|
|
|
11182
11221
|
}
|
|
11183
11222
|
|
|
11184
11223
|
// src/expo-swift-host.ts
|
|
11185
|
-
var run3 = (0, import_node_util3.promisify)(
|
|
11224
|
+
var run3 = (0, import_node_util3.promisify)(import_node_child_process9.execFile);
|
|
11186
11225
|
var scriptEnv = { ...process.env, [RNX_FORKED_SCRIPT_ENV]: "1" };
|
|
11187
11226
|
var EXPO_SWIFT_ROUTE = "/__peach/expo-swift";
|
|
11188
11227
|
var EXPO_SWIFT_ENTRY = "Sources/PeachExpoApp/PeachExpoEntry.swift";
|
|
@@ -11644,7 +11683,7 @@ var import_node_fs21 = __toESM(require("node:fs"), 1);
|
|
|
11644
11683
|
var import_node_path22 = __toESM(require("node:path"), 1);
|
|
11645
11684
|
|
|
11646
11685
|
// src/agent-sessions.ts
|
|
11647
|
-
var
|
|
11686
|
+
var import_node_child_process10 = require("node:child_process");
|
|
11648
11687
|
var import_node_crypto9 = require("node:crypto");
|
|
11649
11688
|
var import_node_fs20 = __toESM(require("node:fs"), 1);
|
|
11650
11689
|
var import_node_path21 = __toESM(require("node:path"), 1);
|
|
@@ -12198,7 +12237,7 @@ function mkfifoSync(p) {
|
|
|
12198
12237
|
import_node_fs20.default.unlinkSync(p);
|
|
12199
12238
|
}
|
|
12200
12239
|
}
|
|
12201
|
-
const result = (0,
|
|
12240
|
+
const result = (0, import_node_child_process10.spawnSync)("mkfifo", ["-m", "600", p]);
|
|
12202
12241
|
if (result.status !== 0) {
|
|
12203
12242
|
throw new Error(
|
|
12204
12243
|
`mkfifo(${p}) failed: ${result.stderr?.toString().trim() || "unknown error"}`
|
|
@@ -12273,7 +12312,7 @@ async function startSession(opts) {
|
|
|
12273
12312
|
if (claudeSessionUuid) {
|
|
12274
12313
|
wrapperArgs.push("--claude-session-uuid", claudeSessionUuid);
|
|
12275
12314
|
}
|
|
12276
|
-
const child = (0,
|
|
12315
|
+
const child = (0, import_node_child_process10.spawn)(executable, wrapperArgs, {
|
|
12277
12316
|
detached: true,
|
|
12278
12317
|
stdio: "ignore",
|
|
12279
12318
|
env: {
|
|
@@ -13622,7 +13661,7 @@ async function dispatchPlaneCommand(plane, type, msg, mutationOptions) {
|
|
|
13622
13661
|
}
|
|
13623
13662
|
|
|
13624
13663
|
// cli/commands/box/checkout-plane.ts
|
|
13625
|
-
var
|
|
13664
|
+
var import_node_child_process11 = require("node:child_process");
|
|
13626
13665
|
var import_node_fs22 = __toESM(require("node:fs"), 1);
|
|
13627
13666
|
var import_node_path23 = __toESM(require("node:path"), 1);
|
|
13628
13667
|
var CheckoutRequiresGitError = class extends Error {
|
|
@@ -13664,7 +13703,7 @@ var CheckoutFilePlane = class {
|
|
|
13664
13703
|
}
|
|
13665
13704
|
listFiles() {
|
|
13666
13705
|
const args = this.trackedOnly ? ["ls-files", "-z"] : ["ls-files", "-co", "--exclude-standard", "-z"];
|
|
13667
|
-
const stdout = (0,
|
|
13706
|
+
const stdout = (0, import_node_child_process11.execFileSync)("git", args, {
|
|
13668
13707
|
cwd: this.root,
|
|
13669
13708
|
encoding: "utf8",
|
|
13670
13709
|
maxBuffer: 64 * 1024 * 1024,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/menu.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/plist.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/plist.mjs
CHANGED
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/render-mode.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -24642,11 +24642,13 @@ function resolveSwiftPackages(options) {
|
|
|
24642
24642
|
targetOutcomes.set(key, outcome);
|
|
24643
24643
|
return outcome;
|
|
24644
24644
|
};
|
|
24645
|
+
const productOutcomes = /* @__PURE__ */ new Map();
|
|
24645
24646
|
const resolveProduct = (pkg, product) => {
|
|
24646
24647
|
if (provided.has(product)) return null;
|
|
24647
24648
|
const roots = pkg.manifest.products.get(product);
|
|
24648
|
-
|
|
24649
|
-
|
|
24649
|
+
const reason = !roots ? `${import_node_path14.default.basename(pkg.manifest.dir)} has no library ${product}` : roots.map((name2) => resolveTarget(pkg, name2)).find((value) => value !== null) ?? null;
|
|
24650
|
+
productOutcomes.set(`${pkg.manifest.dir}\0${product}`, { pkg, reason });
|
|
24651
|
+
return reason;
|
|
24650
24652
|
};
|
|
24651
24653
|
const resolveDependencyProduct = (pkg, packageName, product) => {
|
|
24652
24654
|
if (provided.has(product)) return null;
|
|
@@ -24684,6 +24686,11 @@ function resolveSwiftPackages(options) {
|
|
|
24684
24686
|
result.modules.set(name2, { source: pkg.source, reason });
|
|
24685
24687
|
}
|
|
24686
24688
|
}
|
|
24689
|
+
for (const [key, { pkg, reason }] of productOutcomes) {
|
|
24690
|
+
const product = key.slice(key.indexOf("\0") + 1);
|
|
24691
|
+
if (reason && !result.modules.has(product))
|
|
24692
|
+
result.modules.set(product, { source: pkg.source, reason });
|
|
24693
|
+
}
|
|
24687
24694
|
const reached = /* @__PURE__ */ new Set();
|
|
24688
24695
|
const reach = (pkg, name2) => {
|
|
24689
24696
|
const key = `${pkg.manifest.dir}\0${name2}`;
|
|
@@ -26396,12 +26403,38 @@ function swiftApiGapReport(output) {
|
|
|
26396
26403
|
...other.size > 0 ? ["other errors, often caused by the ones above:", ...rows(other)] : []
|
|
26397
26404
|
].join("\n");
|
|
26398
26405
|
}
|
|
26406
|
+
function iosFrameworks() {
|
|
26407
|
+
if (iosSdkFrameworks) return iosSdkFrameworks;
|
|
26408
|
+
iosSdkFrameworks = /* @__PURE__ */ new Set();
|
|
26409
|
+
if (process.platform !== "darwin") return iosSdkFrameworks;
|
|
26410
|
+
const sdk = (0, import_node_child_process9.execFileSync)("xcrun", ["--sdk", "iphonesimulator", "--show-sdk-path"], {
|
|
26411
|
+
encoding: "utf8",
|
|
26412
|
+
stdio: ["ignore", "pipe", "ignore"]
|
|
26413
|
+
}).trim();
|
|
26414
|
+
for (const entry of import_node_fs16.default.readdirSync(import_node_path17.default.join(sdk, "System/Library/Frameworks")))
|
|
26415
|
+
if (entry.endsWith(".framework"))
|
|
26416
|
+
iosSdkFrameworks.add(entry.slice(0, -".framework".length));
|
|
26417
|
+
return iosSdkFrameworks;
|
|
26418
|
+
}
|
|
26399
26419
|
function missingModulesMessage(packagePath, missing) {
|
|
26400
26420
|
const layout = xcodeLayout(packagePath);
|
|
26401
26421
|
const gaps = new Map([
|
|
26402
26422
|
...(layout?.app.binaryFrameworks ?? []).map(
|
|
26403
26423
|
(name2) => [name2, { source: "the project", reason: "a vendored binary framework" }]
|
|
26404
26424
|
),
|
|
26425
|
+
...[...missing.keys()].flatMap(
|
|
26426
|
+
(name2) => UNPROVIDED_PLATFORM_MODULES[name2] ? [
|
|
26427
|
+
[
|
|
26428
|
+
name2,
|
|
26429
|
+
{ source: "the iOS SDK", reason: UNPROVIDED_PLATFORM_MODULES[name2] }
|
|
26430
|
+
]
|
|
26431
|
+
] : iosFrameworks().has(name2) ? [
|
|
26432
|
+
[
|
|
26433
|
+
name2,
|
|
26434
|
+
{ source: "the iOS SDK", reason: "a framework Peach does not provide" }
|
|
26435
|
+
]
|
|
26436
|
+
] : []
|
|
26437
|
+
),
|
|
26405
26438
|
...layout?.packages.modules ?? [],
|
|
26406
26439
|
...layout?.packages.unavailable ?? []
|
|
26407
26440
|
]);
|
|
@@ -26573,10 +26606,11 @@ function serveSwiftPackageAsset(pathname, res) {
|
|
|
26573
26606
|
res.end("swift artifact is stale");
|
|
26574
26607
|
return true;
|
|
26575
26608
|
}
|
|
26576
|
-
var import_node_crypto6, import_node_fs16, import_node_os6, import_node_path17, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SKIP_SOURCE_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, projects, xcodeProjects, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, CHECKOUTS_PREFIX, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS;
|
|
26609
|
+
var import_node_child_process9, import_node_crypto6, import_node_fs16, import_node_os6, import_node_path17, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SKIP_SOURCE_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, projects, xcodeProjects, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, CHECKOUTS_PREFIX, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, UNPROVIDED_PLATFORM_MODULES, iosSdkFrameworks;
|
|
26577
26610
|
var init_swift_host = __esm({
|
|
26578
26611
|
"src/swift-host.ts"() {
|
|
26579
26612
|
"use strict";
|
|
26613
|
+
import_node_child_process9 = require("node:child_process");
|
|
26580
26614
|
import_node_crypto6 = require("node:crypto");
|
|
26581
26615
|
import_node_fs16 = __toESM(require("node:fs"), 1);
|
|
26582
26616
|
import_node_os6 = __toESM(require("node:os"), 1);
|
|
@@ -26650,6 +26684,11 @@ var init_swift_host = __esm({
|
|
|
26650
26684
|
[/^'([^']+)' is unavailable/, (match) => match[1]],
|
|
26651
26685
|
[/^no such module '([^']+)'/, (match) => `module ${match[1]}`]
|
|
26652
26686
|
];
|
|
26687
|
+
UNPROVIDED_PLATFORM_MODULES = {
|
|
26688
|
+
Darwin: "Peach compiles for WebAssembly, which has no Darwin; C library names come through Foundation",
|
|
26689
|
+
MachO: "Peach compiles for WebAssembly, which has no Mach-O images"
|
|
26690
|
+
};
|
|
26691
|
+
iosSdkFrameworks = null;
|
|
26653
26692
|
}
|
|
26654
26693
|
});
|
|
26655
26694
|
|
|
@@ -26968,11 +27007,11 @@ let package = Package(name: "PeachExpo", targets: [${targets.map((name2) => `.ta
|
|
|
26968
27007
|
}
|
|
26969
27008
|
return true;
|
|
26970
27009
|
}
|
|
26971
|
-
var
|
|
27010
|
+
var import_node_child_process10, import_node_crypto7, import_node_fs17, import_node_module, import_node_os7, import_node_path18, import_node_util3, run3, scriptEnv, EXPO_SWIFT_ROUTE, EXPO_SWIFT_ENTRY, compiling, failedCompilations;
|
|
26972
27011
|
var init_expo_swift_host = __esm({
|
|
26973
27012
|
"src/expo-swift-host.ts"() {
|
|
26974
27013
|
"use strict";
|
|
26975
|
-
|
|
27014
|
+
import_node_child_process10 = require("node:child_process");
|
|
26976
27015
|
import_node_crypto7 = require("node:crypto");
|
|
26977
27016
|
import_node_fs17 = __toESM(require("node:fs"), 1);
|
|
26978
27017
|
import_node_module = require("node:module");
|
|
@@ -26985,7 +27024,7 @@ var init_expo_swift_host = __esm({
|
|
|
26985
27024
|
init_swift_distribution();
|
|
26986
27025
|
init_swift_host();
|
|
26987
27026
|
init_swift_submit();
|
|
26988
|
-
run3 = (0, import_node_util3.promisify)(
|
|
27027
|
+
run3 = (0, import_node_util3.promisify)(import_node_child_process10.execFile);
|
|
26989
27028
|
scriptEnv = { ...process.env, [RNX_FORKED_SCRIPT_ENV]: "1" };
|
|
26990
27029
|
EXPO_SWIFT_ROUTE = "/__peach/expo-swift";
|
|
26991
27030
|
EXPO_SWIFT_ENTRY = "Sources/PeachExpoApp/PeachExpoEntry.swift";
|
|
@@ -27724,7 +27763,7 @@ function mkfifoSync(p) {
|
|
|
27724
27763
|
import_node_fs20.default.unlinkSync(p);
|
|
27725
27764
|
}
|
|
27726
27765
|
}
|
|
27727
|
-
const result = (0,
|
|
27766
|
+
const result = (0, import_node_child_process11.spawnSync)("mkfifo", ["-m", "600", p]);
|
|
27728
27767
|
if (result.status !== 0) {
|
|
27729
27768
|
throw new Error(
|
|
27730
27769
|
`mkfifo(${p}) failed: ${result.stderr?.toString().trim() || "unknown error"}`
|
|
@@ -27792,7 +27831,7 @@ async function startSession(opts) {
|
|
|
27792
27831
|
if (claudeSessionUuid) {
|
|
27793
27832
|
wrapperArgs.push("--claude-session-uuid", claudeSessionUuid);
|
|
27794
27833
|
}
|
|
27795
|
-
const child = (0,
|
|
27834
|
+
const child = (0, import_node_child_process11.spawn)(executable, wrapperArgs, {
|
|
27796
27835
|
detached: true,
|
|
27797
27836
|
stdio: "ignore",
|
|
27798
27837
|
env: {
|
|
@@ -27944,11 +27983,11 @@ async function waitForFirstEvent(fifo, predicate, timeoutMs) {
|
|
|
27944
27983
|
import_node_fs20.default.closeSync(fd);
|
|
27945
27984
|
}
|
|
27946
27985
|
}
|
|
27947
|
-
var
|
|
27986
|
+
var import_node_child_process11, import_node_crypto9, import_node_fs20, import_node_path21, import_node_readline, AgentSessionError;
|
|
27948
27987
|
var init_agent_sessions = __esm({
|
|
27949
27988
|
"src/agent-sessions.ts"() {
|
|
27950
27989
|
"use strict";
|
|
27951
|
-
|
|
27990
|
+
import_node_child_process11 = require("node:child_process");
|
|
27952
27991
|
import_node_crypto9 = require("node:crypto");
|
|
27953
27992
|
import_node_fs20 = __toESM(require("node:fs"), 1);
|
|
27954
27993
|
import_node_path21 = __toESM(require("node:path"), 1);
|
|
@@ -29260,11 +29299,11 @@ function looksBinary(filePath, size) {
|
|
|
29260
29299
|
if (fd !== void 0) import_node_fs22.default.closeSync(fd);
|
|
29261
29300
|
}
|
|
29262
29301
|
}
|
|
29263
|
-
var
|
|
29302
|
+
var import_node_child_process12, import_node_fs22, import_node_path23, CheckoutRequiresGitError, BINARY_SNIFF_BYTES, LIST_FILES_TIMEOUT_MS, LIST_FILES_ATTEMPTS, LIST_FILES_RETRY_MS, CheckoutFilePlane;
|
|
29264
29303
|
var init_checkout_plane = __esm({
|
|
29265
29304
|
"cli/commands/box/checkout-plane.ts"() {
|
|
29266
29305
|
"use strict";
|
|
29267
|
-
|
|
29306
|
+
import_node_child_process12 = require("node:child_process");
|
|
29268
29307
|
import_node_fs22 = __toESM(require("node:fs"), 1);
|
|
29269
29308
|
import_node_path23 = __toESM(require("node:path"), 1);
|
|
29270
29309
|
CheckoutRequiresGitError = class extends Error {
|
|
@@ -29292,7 +29331,7 @@ var init_checkout_plane = __esm({
|
|
|
29292
29331
|
}
|
|
29293
29332
|
listFiles() {
|
|
29294
29333
|
const args = this.trackedOnly ? ["ls-files", "-z"] : ["ls-files", "-co", "--exclude-standard", "-z"];
|
|
29295
|
-
const stdout = (0,
|
|
29334
|
+
const stdout = (0, import_node_child_process12.execFileSync)("git", args, {
|
|
29296
29335
|
cwd: this.root,
|
|
29297
29336
|
encoding: "utf8",
|
|
29298
29337
|
maxBuffer: 64 * 1024 * 1024,
|
|
@@ -39601,7 +39640,7 @@ var init_bridge_diagnostics = __esm({
|
|
|
39601
39640
|
|
|
39602
39641
|
// src/desktop-host-delivery.ts
|
|
39603
39642
|
function bundleValue(app, key) {
|
|
39604
|
-
const read = (0,
|
|
39643
|
+
const read = (0, import_node_child_process13.spawnSync)(
|
|
39605
39644
|
"plutil",
|
|
39606
39645
|
["-extract", key, "raw", "-o", "-", import_node_path36.default.join(app, "Contents/Info.plist")],
|
|
39607
39646
|
{ encoding: "utf8" }
|
|
@@ -39617,11 +39656,11 @@ function placedHostVersion() {
|
|
|
39617
39656
|
function activeDesktopHostApp() {
|
|
39618
39657
|
return placedHostVersion() ? MAC_HOST_APP : null;
|
|
39619
39658
|
}
|
|
39620
|
-
var
|
|
39659
|
+
var import_node_child_process13, import_node_path36, MAC_HOST_APP, HOST_BUNDLE_ID;
|
|
39621
39660
|
var init_desktop_host_delivery = __esm({
|
|
39622
39661
|
"src/desktop-host-delivery.ts"() {
|
|
39623
39662
|
"use strict";
|
|
39624
|
-
|
|
39663
|
+
import_node_child_process13 = require("node:child_process");
|
|
39625
39664
|
import_node_path36 = __toESM(require("node:path"), 1);
|
|
39626
39665
|
init_src();
|
|
39627
39666
|
init_home_paths();
|
|
@@ -41145,7 +41184,7 @@ function linuxBrowserLibsKey(id, arch) {
|
|
|
41145
41184
|
return `linux-libs/${id}/${arch}.tar.gz`;
|
|
41146
41185
|
}
|
|
41147
41186
|
function missingLibraries(executablePath, libraryPath) {
|
|
41148
|
-
const ldd = (0,
|
|
41187
|
+
const ldd = (0, import_node_child_process14.spawnSync)("ldd", [executablePath], {
|
|
41149
41188
|
encoding: "utf8",
|
|
41150
41189
|
timeout: 3e4,
|
|
41151
41190
|
env: libraryPath ? {
|
|
@@ -41208,11 +41247,11 @@ async function ensureLinuxBrowserLibraries(executablePath, browser) {
|
|
|
41208
41247
|
}
|
|
41209
41248
|
return { ok: true, libraryPath };
|
|
41210
41249
|
}
|
|
41211
|
-
var
|
|
41250
|
+
var import_node_child_process14, import_node_fs34, import_node_path37, LINUX_BROWSER_LIBS_ARCHES, LINUX_BROWSER_LIBS_MARKER;
|
|
41212
41251
|
var init_linux_browser_libs = __esm({
|
|
41213
41252
|
"cli/drivers/linux-browser-libs.ts"() {
|
|
41214
41253
|
"use strict";
|
|
41215
|
-
|
|
41254
|
+
import_node_child_process14 = require("node:child_process");
|
|
41216
41255
|
import_node_fs34 = require("node:fs");
|
|
41217
41256
|
import_node_path37 = require("node:path");
|
|
41218
41257
|
init_src();
|
|
@@ -41288,7 +41327,7 @@ async function provisionPlaywright() {
|
|
|
41288
41327
|
}
|
|
41289
41328
|
function probeBrowser(resolved, env) {
|
|
41290
41329
|
const self = rnxSelfInvocation();
|
|
41291
|
-
const probe2 = (0,
|
|
41330
|
+
const probe2 = (0, import_node_child_process15.spawnSync)(
|
|
41292
41331
|
self.executable,
|
|
41293
41332
|
[...self.prefixArgs, RNX_INTERNAL_COMMAND, RNX_INTERNAL_CHILDREN.playwrightProbe],
|
|
41294
41333
|
{
|
|
@@ -41341,7 +41380,7 @@ async function ensurePlaywrightBrowser(resolved, headless, env = process.env) {
|
|
|
41341
41380
|
};
|
|
41342
41381
|
}
|
|
41343
41382
|
const installer = rnxSelfInvocation();
|
|
41344
|
-
const install = (0,
|
|
41383
|
+
const install = (0, import_node_child_process15.spawnSync)(
|
|
41345
41384
|
installer.executable,
|
|
41346
41385
|
[
|
|
41347
41386
|
...installer.prefixArgs,
|
|
@@ -41383,11 +41422,11 @@ ${detail}` : ""}`
|
|
|
41383
41422
|
libraryPath: libraries.libraryPath
|
|
41384
41423
|
};
|
|
41385
41424
|
}
|
|
41386
|
-
var
|
|
41425
|
+
var import_node_child_process15, import_node_fs35, import_node_module6, import_node_path38;
|
|
41387
41426
|
var init_playwright_provisioning = __esm({
|
|
41388
41427
|
"cli/drivers/playwright-provisioning.ts"() {
|
|
41389
41428
|
"use strict";
|
|
41390
|
-
|
|
41429
|
+
import_node_child_process15 = require("node:child_process");
|
|
41391
41430
|
import_node_fs35 = require("node:fs");
|
|
41392
41431
|
import_node_module6 = require("node:module");
|
|
41393
41432
|
import_node_path38 = require("node:path");
|
|
@@ -42492,7 +42531,7 @@ async function ensureRuntimeForOpen() {
|
|
|
42492
42531
|
}
|
|
42493
42532
|
function spawnSootsim(args) {
|
|
42494
42533
|
const { executable, prefixArgs } = rnxSelfInvocation();
|
|
42495
|
-
return (0,
|
|
42534
|
+
return (0, import_node_child_process16.spawn)(executable, [...prefixArgs, ...args], {
|
|
42496
42535
|
detached: true,
|
|
42497
42536
|
stdio: "ignore",
|
|
42498
42537
|
env: process.env
|
|
@@ -43085,11 +43124,11 @@ async function waitForProcessExit(pid, timeoutMs = 2500) {
|
|
|
43085
43124
|
return !isProcessAlive2(pid);
|
|
43086
43125
|
}
|
|
43087
43126
|
function isPlaywrightHostProcess(pid) {
|
|
43088
|
-
const plain = (0,
|
|
43127
|
+
const plain = (0, import_node_child_process16.spawnSync)("ps", ["-o", "command=", "-p", String(pid)], {
|
|
43089
43128
|
encoding: "utf8",
|
|
43090
43129
|
stdio: ["ignore", "pipe", "pipe"]
|
|
43091
43130
|
});
|
|
43092
|
-
const withEnv = (0,
|
|
43131
|
+
const withEnv = (0, import_node_child_process16.spawnSync)("ps", ["eww", "-o", "command=", "-p", String(pid)], {
|
|
43093
43132
|
encoding: "utf8",
|
|
43094
43133
|
stdio: ["ignore", "pipe", "pipe"]
|
|
43095
43134
|
});
|
|
@@ -44063,11 +44102,11 @@ async function runCloseCommand(args, opts = {}) {
|
|
|
44063
44102
|
bridge.close();
|
|
44064
44103
|
}
|
|
44065
44104
|
}
|
|
44066
|
-
var
|
|
44105
|
+
var import_node_child_process16, import_node_fs36, import_node_os9, import_node_path39, import_app_catalog_wire, import_devices2, import_ws4, DEFAULT_DRIVER_CONNECT_TIMEOUT_MS, DRIVER_CONNECT_INTERVAL_MS, DRIVER_CONNECT_HOST_GRACE_MS, OPEN_BRIDGE_SPAWN_TIMEOUT_MS, SHELL_APPS, DEV_BUNDLE_RESOLVE_ATTEMPTS, DEV_BUNDLE_RESOLVE_INTERVAL_MS;
|
|
44067
44106
|
var init_control = __esm({
|
|
44068
44107
|
"cli/commands/control.ts"() {
|
|
44069
44108
|
"use strict";
|
|
44070
|
-
|
|
44109
|
+
import_node_child_process16 = require("node:child_process");
|
|
44071
44110
|
import_node_fs36 = __toESM(require("node:fs"), 1);
|
|
44072
44111
|
import_node_os9 = __toESM(require("node:os"), 1);
|
|
44073
44112
|
import_node_path39 = __toESM(require("node:path"), 1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1958,6 +1958,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
1958
1958
|
}
|
|
1959
1959
|
|
|
1960
1960
|
// src/swift-host.ts
|
|
1961
|
+
var import_node_child_process7 = require("node:child_process");
|
|
1961
1962
|
var import_node_crypto5 = require("node:crypto");
|
|
1962
1963
|
var import_node_fs10 = __toESM(require("node:fs"), 1);
|
|
1963
1964
|
var import_node_os6 = __toESM(require("node:os"), 1);
|
|
@@ -3036,11 +3037,13 @@ function resolveSwiftPackages(options) {
|
|
|
3036
3037
|
targetOutcomes.set(key, outcome);
|
|
3037
3038
|
return outcome;
|
|
3038
3039
|
};
|
|
3040
|
+
const productOutcomes = /* @__PURE__ */ new Map();
|
|
3039
3041
|
const resolveProduct = (pkg, product) => {
|
|
3040
3042
|
if (provided.has(product)) return null;
|
|
3041
3043
|
const roots = pkg.manifest.products.get(product);
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
+
const reason = !roots ? `${import_node_path9.default.basename(pkg.manifest.dir)} has no library ${product}` : roots.map((name) => resolveTarget(pkg, name)).find((value) => value !== null) ?? null;
|
|
3045
|
+
productOutcomes.set(`${pkg.manifest.dir}\0${product}`, { pkg, reason });
|
|
3046
|
+
return reason;
|
|
3044
3047
|
};
|
|
3045
3048
|
const resolveDependencyProduct = (pkg, packageName, product) => {
|
|
3046
3049
|
if (provided.has(product)) return null;
|
|
@@ -3078,6 +3081,11 @@ function resolveSwiftPackages(options) {
|
|
|
3078
3081
|
result.modules.set(name, { source: pkg.source, reason });
|
|
3079
3082
|
}
|
|
3080
3083
|
}
|
|
3084
|
+
for (const [key, { pkg, reason }] of productOutcomes) {
|
|
3085
|
+
const product = key.slice(key.indexOf("\0") + 1);
|
|
3086
|
+
if (reason && !result.modules.has(product))
|
|
3087
|
+
result.modules.set(product, { source: pkg.source, reason });
|
|
3088
|
+
}
|
|
3081
3089
|
const reached = /* @__PURE__ */ new Set();
|
|
3082
3090
|
const reach = (pkg, name) => {
|
|
3083
3091
|
const key = `${pkg.manifest.dir}\0${name}`;
|
|
@@ -4837,12 +4845,43 @@ function swiftApiGapReport(output) {
|
|
|
4837
4845
|
...other.size > 0 ? ["other errors, often caused by the ones above:", ...rows(other)] : []
|
|
4838
4846
|
].join("\n");
|
|
4839
4847
|
}
|
|
4848
|
+
var UNPROVIDED_PLATFORM_MODULES = {
|
|
4849
|
+
Darwin: "Peach compiles for WebAssembly, which has no Darwin; C library names come through Foundation",
|
|
4850
|
+
MachO: "Peach compiles for WebAssembly, which has no Mach-O images"
|
|
4851
|
+
};
|
|
4852
|
+
var iosSdkFrameworks = null;
|
|
4853
|
+
function iosFrameworks() {
|
|
4854
|
+
if (iosSdkFrameworks) return iosSdkFrameworks;
|
|
4855
|
+
iosSdkFrameworks = /* @__PURE__ */ new Set();
|
|
4856
|
+
if (process.platform !== "darwin") return iosSdkFrameworks;
|
|
4857
|
+
const sdk = (0, import_node_child_process7.execFileSync)("xcrun", ["--sdk", "iphonesimulator", "--show-sdk-path"], {
|
|
4858
|
+
encoding: "utf8",
|
|
4859
|
+
stdio: ["ignore", "pipe", "ignore"]
|
|
4860
|
+
}).trim();
|
|
4861
|
+
for (const entry of import_node_fs10.default.readdirSync(import_node_path12.default.join(sdk, "System/Library/Frameworks")))
|
|
4862
|
+
if (entry.endsWith(".framework"))
|
|
4863
|
+
iosSdkFrameworks.add(entry.slice(0, -".framework".length));
|
|
4864
|
+
return iosSdkFrameworks;
|
|
4865
|
+
}
|
|
4840
4866
|
function missingModulesMessage(packagePath, missing) {
|
|
4841
4867
|
const layout = xcodeLayout(packagePath);
|
|
4842
4868
|
const gaps = new Map([
|
|
4843
4869
|
...(layout?.app.binaryFrameworks ?? []).map(
|
|
4844
4870
|
(name) => [name, { source: "the project", reason: "a vendored binary framework" }]
|
|
4845
4871
|
),
|
|
4872
|
+
...[...missing.keys()].flatMap(
|
|
4873
|
+
(name) => UNPROVIDED_PLATFORM_MODULES[name] ? [
|
|
4874
|
+
[
|
|
4875
|
+
name,
|
|
4876
|
+
{ source: "the iOS SDK", reason: UNPROVIDED_PLATFORM_MODULES[name] }
|
|
4877
|
+
]
|
|
4878
|
+
] : iosFrameworks().has(name) ? [
|
|
4879
|
+
[
|
|
4880
|
+
name,
|
|
4881
|
+
{ source: "the iOS SDK", reason: "a framework Peach does not provide" }
|
|
4882
|
+
]
|
|
4883
|
+
] : []
|
|
4884
|
+
),
|
|
4846
4885
|
...layout?.packages.modules ?? [],
|
|
4847
4886
|
...layout?.packages.unavailable ?? []
|
|
4848
4887
|
]);
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.766 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/package.json
CHANGED
package/src/swift-host.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// the node host for every Swift preview: package inputs, one compile and
|
|
2
2
|
// immutable artifact addresses. vite and the foreground CLI adapt this host.
|
|
3
3
|
|
|
4
|
+
import { execFileSync } from 'node:child_process'
|
|
4
5
|
import { createHash } from 'node:crypto'
|
|
5
6
|
import fs from 'node:fs'
|
|
6
7
|
import os from 'node:os'
|
|
@@ -933,6 +934,32 @@ export function swiftApiGapReport(output: string): string | null {
|
|
|
933
934
|
].join('\n')
|
|
934
935
|
}
|
|
935
936
|
|
|
937
|
+
// the platform modules peach decided not to provide (plans/partners/triumph/
|
|
938
|
+
// arcade-gaps.md, report 2): a shipped Darwin module would flip every
|
|
939
|
+
// `canImport(Darwin)` branch in every dependency.
|
|
940
|
+
const UNPROVIDED_PLATFORM_MODULES: Record<string, string> = {
|
|
941
|
+
Darwin:
|
|
942
|
+
'Peach compiles for WebAssembly, which has no Darwin; C library names come through Foundation',
|
|
943
|
+
MachO: 'Peach compiles for WebAssembly, which has no Mach-O images',
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
// the frameworks the installed iOS simulator SDK ships, so a report can say
|
|
947
|
+
// which missing modules are Apple's. only macOS has an iOS SDK.
|
|
948
|
+
let iosSdkFrameworks: Set<string> | null = null
|
|
949
|
+
function iosFrameworks(): Set<string> {
|
|
950
|
+
if (iosSdkFrameworks) return iosSdkFrameworks
|
|
951
|
+
iosSdkFrameworks = new Set()
|
|
952
|
+
if (process.platform !== 'darwin') return iosSdkFrameworks
|
|
953
|
+
const sdk = execFileSync('xcrun', ['--sdk', 'iphonesimulator', '--show-sdk-path'], {
|
|
954
|
+
encoding: 'utf8',
|
|
955
|
+
stdio: ['ignore', 'pipe', 'ignore'],
|
|
956
|
+
}).trim()
|
|
957
|
+
for (const entry of fs.readdirSync(path.join(sdk, 'System/Library/Frameworks')))
|
|
958
|
+
if (entry.endsWith('.framework'))
|
|
959
|
+
iosSdkFrameworks.add(entry.slice(0, -'.framework'.length))
|
|
960
|
+
return iosSdkFrameworks
|
|
961
|
+
}
|
|
962
|
+
|
|
936
963
|
// one report of every module the app imports that Peach lacks, so a project
|
|
937
964
|
// learns its whole gap from one run instead of one compile error at a time.
|
|
938
965
|
function missingModulesMessage(
|
|
@@ -945,6 +972,23 @@ function missingModulesMessage(
|
|
|
945
972
|
(name) =>
|
|
946
973
|
[name, { source: 'the project', reason: 'a vendored binary framework' }] as const,
|
|
947
974
|
),
|
|
975
|
+
...[...missing.keys()].flatMap((name) =>
|
|
976
|
+
UNPROVIDED_PLATFORM_MODULES[name]
|
|
977
|
+
? [
|
|
978
|
+
[
|
|
979
|
+
name,
|
|
980
|
+
{ source: 'the iOS SDK', reason: UNPROVIDED_PLATFORM_MODULES[name]! },
|
|
981
|
+
] as const,
|
|
982
|
+
]
|
|
983
|
+
: iosFrameworks().has(name)
|
|
984
|
+
? [
|
|
985
|
+
[
|
|
986
|
+
name,
|
|
987
|
+
{ source: 'the iOS SDK', reason: 'a framework Peach does not provide' },
|
|
988
|
+
] as const,
|
|
989
|
+
]
|
|
990
|
+
: [],
|
|
991
|
+
),
|
|
948
992
|
...(layout?.packages.modules ?? []),
|
|
949
993
|
...(layout?.packages.unavailable ?? []),
|
|
950
994
|
])
|
package/src/swift-packages.ts
CHANGED
|
@@ -231,14 +231,18 @@ export function resolveSwiftPackages(options: {
|
|
|
231
231
|
targetOutcomes.set(key, outcome)
|
|
232
232
|
return outcome
|
|
233
233
|
}
|
|
234
|
+
// products resolved anywhere in the closure, by package, with why one
|
|
235
|
+
// cannot compile: a wrapper package's product is often the module name
|
|
236
|
+
const productOutcomes = new Map<string, { pkg: LoadedPackage; reason: string | null }>()
|
|
234
237
|
const resolveProduct = (pkg: LoadedPackage, product: string): string | null => {
|
|
235
238
|
if (provided.has(product)) return null
|
|
236
239
|
const roots = pkg.manifest.products.get(product)
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
roots.map((name) => resolveTarget(pkg, name)).find((
|
|
240
|
-
|
|
241
|
-
)
|
|
240
|
+
const reason = !roots
|
|
241
|
+
? `${path.basename(pkg.manifest.dir)} has no library ${product}`
|
|
242
|
+
: (roots.map((name) => resolveTarget(pkg, name)).find((value) => value !== null) ??
|
|
243
|
+
null)
|
|
244
|
+
productOutcomes.set(`${pkg.manifest.dir}\0${product}`, { pkg, reason })
|
|
245
|
+
return reason
|
|
242
246
|
}
|
|
243
247
|
// a `.product(package:)` names a dependency by identity or by its `name:`
|
|
244
248
|
const resolveDependencyProduct = (
|
|
@@ -303,6 +307,11 @@ export function resolveSwiftPackages(options: {
|
|
|
303
307
|
result.modules.set(name, { source: pkg.source, reason })
|
|
304
308
|
}
|
|
305
309
|
}
|
|
310
|
+
for (const [key, { pkg, reason }] of productOutcomes) {
|
|
311
|
+
const product = key.slice(key.indexOf('\0') + 1)
|
|
312
|
+
if (reason && !result.modules.has(product))
|
|
313
|
+
result.modules.set(product, { source: pkg.source, reason })
|
|
314
|
+
}
|
|
306
315
|
// what compiles is every buildable target in a linked product's closure,
|
|
307
316
|
// decided per target: a product with one target behind a binary still
|
|
308
317
|
// builds its other targets and their dependencies, which the app may
|