peachsim 0.1.2480 → 0.1.2482
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 +50 -21
- package/cli/commands/inspect.ts +2 -1
- package/cli/commands/stream.ts +33 -12
- package/detox/index.ts +5 -4
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +3057 -2952
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-RHJLDFQ6.mjs → acorn-3RG2YV22.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-KPDAPPKX.mjs → chunk-5VLHG64M.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-QWPRWZCR.mjs → chunk-7I4VWI2V.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HHXID6CS.mjs → chunk-CEQOCRNV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-5VNECNVL.mjs → chunk-D5LOEF4I.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LIULVSRG.mjs → chunk-DJKPHL72.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IAQ6RFFI.mjs → chunk-DYN7524Z.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OW2NZLWH.mjs → chunk-FKS6QFGF.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-QNFDJM4V.mjs → chunk-GVLSR652.mjs} +12 -12
- package/dist-lib/esm-chunks/{chunk-AN4RNKME.mjs → chunk-JNQJMRSO.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VYP6I44Y.mjs → chunk-MDEXPYPS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PPI4PXUE.mjs → chunk-NFRYA23T.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JW6P2F6T.mjs → chunk-RUKQSGNO.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-IMJ6FVRR.mjs → chunk-V7WDCR3N.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-X7K3JLJ3.mjs → chunk-WC3CBCQF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-43UZGHLJ.mjs → chunk-WJCPHHTA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PB53B3G3.mjs → chunk-WPW4V4XH.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-IGQJDRVL.mjs → chunk-YC2PEM6U.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NZYUWM5K.mjs → chunk-YOKV3RRM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-U5UJRFVB.mjs → chunk-YSTOPLNH.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-LNLVUOIL.mjs → chunk-Z2NSDMD7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-K633NA6X.mjs → chunk-ZXAHJ6YC.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-K64IERC5.mjs → metro-layout-parser-OPFP36W3.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-4B2KGEQL.mjs → swift-package-prebuilt-S7ECXF7I.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-SUCFPPKO.mjs → swift-sdk-app-module-7WOLAFJ6.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-YX5FMNXN.mjs → swift-sdk-image-WDWMRJ76.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-WFJBSXZG.mjs → swift-sdk-image-producer-ZXAKVKXN.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +2004 -1889
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +2840 -2769
- package/dist-lib/host/fetch-proxy-handler.cjs +427 -297
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- 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/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +79 -79
- package/dist-lib/public-origins-lib.json +76 -76
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- 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 +7 -7
- package/dist-lib/skills.cjs +3412 -3316
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +10 -10
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +5 -5
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/smol-toml.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/core-abi/style/style-schema.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +2 -2
- package/package.json +1 -1
- package/src/canvas-agent-note-delivery.ts +36 -6
- package/src/expo-swift-host.ts +36 -47
- package/src/expo-widgets-bundle.ts +7 -0
- package/src/host/bridge-host.ts +4 -25
- package/src/host/staged-host-files.ts +7 -0
- package/src/native-preparation.ts +134 -6
- package/src/nitro-bundle.ts +29 -41
- package/src/one-sdk-bundle.ts +1 -0
- package/src/swift-host.ts +13 -0
- package/src/turbo-bundle.ts +6 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2482 | (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;
|
|
@@ -995,7 +995,7 @@ var init_swift_standin_digest = __esm({
|
|
|
995
995
|
|
|
996
996
|
// src/expo-native-compiler-digest.ts
|
|
997
997
|
function expoNativeCompilerDigestValue() {
|
|
998
|
-
return true ? "
|
|
998
|
+
return true ? "12aee4ee3bd89c1730fb89a657de22e7caf0a3e86af4e562a1a0238a7e3b38e6" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
999
999
|
}
|
|
1000
1000
|
var import_node_crypto6;
|
|
1001
1001
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -2856,12 +2856,36 @@ end
|
|
|
2856
2856
|
});
|
|
2857
2857
|
|
|
2858
2858
|
// src/workspace-root.ts
|
|
2859
|
-
|
|
2859
|
+
function declaresMember(root, app) {
|
|
2860
|
+
const manifest = import_node_path26.default.join(root, "package.json");
|
|
2861
|
+
if (!import_node_fs25.default.existsSync(manifest)) return false;
|
|
2862
|
+
const { workspaces } = JSON.parse(import_node_fs25.default.readFileSync(manifest, "utf8"));
|
|
2863
|
+
const patterns = Array.isArray(workspaces) ? workspaces : workspaces?.packages ?? [];
|
|
2864
|
+
const relative3 = import_node_path26.default.relative(root, app).split(import_node_path26.default.sep).join("/");
|
|
2865
|
+
return patterns.some(
|
|
2866
|
+
(pattern) => new RegExp(
|
|
2867
|
+
`^${import_node_path26.default.posix.normalize(pattern).replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*\*/g, "\0").replace(/\*/g, "[^/]*").replace(/\0/g, ".*")}$`
|
|
2868
|
+
).test(relative3)
|
|
2869
|
+
);
|
|
2870
|
+
}
|
|
2871
|
+
function findWorkspaceRoot(app) {
|
|
2872
|
+
let nearest = null;
|
|
2873
|
+
let declared = null;
|
|
2874
|
+
for (let dir = app; ; dir = import_node_path26.default.dirname(dir)) {
|
|
2875
|
+
if (LOCKFILES.some((name2) => import_node_fs25.default.existsSync(import_node_path26.default.join(dir, name2)))) {
|
|
2876
|
+
nearest ??= dir;
|
|
2877
|
+
if (dir !== app && declaresMember(dir, app)) declared = dir;
|
|
2878
|
+
}
|
|
2879
|
+
if (import_node_path26.default.dirname(dir) === dir) return declared ?? nearest ?? app;
|
|
2880
|
+
}
|
|
2881
|
+
}
|
|
2882
|
+
var import_node_fs25, import_node_path26, LOCKFILES;
|
|
2860
2883
|
var init_workspace_root = __esm({
|
|
2861
2884
|
"src/workspace-root.ts"() {
|
|
2862
2885
|
"use strict";
|
|
2863
2886
|
import_node_fs25 = __toESM(require("node:fs"), 1);
|
|
2864
2887
|
import_node_path26 = __toESM(require("node:path"), 1);
|
|
2888
|
+
LOCKFILES = ["pnpm-workspace.yaml", "package-lock.json", "yarn.lock", "bun.lock"];
|
|
2865
2889
|
}
|
|
2866
2890
|
});
|
|
2867
2891
|
|
|
@@ -4120,17 +4144,17 @@ function visit(node, visitor) {
|
|
|
4120
4144
|
} else
|
|
4121
4145
|
visit_(null, node, visitor_, Object.freeze([]));
|
|
4122
4146
|
}
|
|
4123
|
-
function visit_(key, node, visitor,
|
|
4124
|
-
const ctrl = callVisitor(key, node, visitor,
|
|
4147
|
+
function visit_(key, node, visitor, path112) {
|
|
4148
|
+
const ctrl = callVisitor(key, node, visitor, path112);
|
|
4125
4149
|
if (isNode(ctrl) || isPair(ctrl)) {
|
|
4126
|
-
replaceNode(key,
|
|
4127
|
-
return visit_(key, ctrl, visitor,
|
|
4150
|
+
replaceNode(key, path112, ctrl);
|
|
4151
|
+
return visit_(key, ctrl, visitor, path112);
|
|
4128
4152
|
}
|
|
4129
4153
|
if (typeof ctrl !== "symbol") {
|
|
4130
4154
|
if (isCollection(node)) {
|
|
4131
|
-
|
|
4155
|
+
path112 = Object.freeze(path112.concat(node));
|
|
4132
4156
|
for (let i = 0; i < node.items.length; ++i) {
|
|
4133
|
-
const ci = visit_(i, node.items[i], visitor,
|
|
4157
|
+
const ci = visit_(i, node.items[i], visitor, path112);
|
|
4134
4158
|
if (typeof ci === "number")
|
|
4135
4159
|
i = ci - 1;
|
|
4136
4160
|
else if (ci === BREAK)
|
|
@@ -4141,13 +4165,13 @@ function visit_(key, node, visitor, path111) {
|
|
|
4141
4165
|
}
|
|
4142
4166
|
}
|
|
4143
4167
|
} else if (isPair(node)) {
|
|
4144
|
-
|
|
4145
|
-
const ck = visit_("key", node.key, visitor,
|
|
4168
|
+
path112 = Object.freeze(path112.concat(node));
|
|
4169
|
+
const ck = visit_("key", node.key, visitor, path112);
|
|
4146
4170
|
if (ck === BREAK)
|
|
4147
4171
|
return BREAK;
|
|
4148
4172
|
else if (ck === REMOVE)
|
|
4149
4173
|
node.key = null;
|
|
4150
|
-
const cv = visit_("value", node.value, visitor,
|
|
4174
|
+
const cv = visit_("value", node.value, visitor, path112);
|
|
4151
4175
|
if (cv === BREAK)
|
|
4152
4176
|
return BREAK;
|
|
4153
4177
|
else if (cv === REMOVE)
|
|
@@ -4165,17 +4189,17 @@ async function visitAsync(node, visitor) {
|
|
|
4165
4189
|
} else
|
|
4166
4190
|
await visitAsync_(null, node, visitor_, Object.freeze([]));
|
|
4167
4191
|
}
|
|
4168
|
-
async function visitAsync_(key, node, visitor,
|
|
4169
|
-
const ctrl = await callVisitor(key, node, visitor,
|
|
4192
|
+
async function visitAsync_(key, node, visitor, path112) {
|
|
4193
|
+
const ctrl = await callVisitor(key, node, visitor, path112);
|
|
4170
4194
|
if (isNode(ctrl) || isPair(ctrl)) {
|
|
4171
|
-
replaceNode(key,
|
|
4172
|
-
return visitAsync_(key, ctrl, visitor,
|
|
4195
|
+
replaceNode(key, path112, ctrl);
|
|
4196
|
+
return visitAsync_(key, ctrl, visitor, path112);
|
|
4173
4197
|
}
|
|
4174
4198
|
if (typeof ctrl !== "symbol") {
|
|
4175
4199
|
if (isCollection(node)) {
|
|
4176
|
-
|
|
4200
|
+
path112 = Object.freeze(path112.concat(node));
|
|
4177
4201
|
for (let i = 0; i < node.items.length; ++i) {
|
|
4178
|
-
const ci = await visitAsync_(i, node.items[i], visitor,
|
|
4202
|
+
const ci = await visitAsync_(i, node.items[i], visitor, path112);
|
|
4179
4203
|
if (typeof ci === "number")
|
|
4180
4204
|
i = ci - 1;
|
|
4181
4205
|
else if (ci === BREAK)
|
|
@@ -4186,13 +4210,13 @@ async function visitAsync_(key, node, visitor, path111) {
|
|
|
4186
4210
|
}
|
|
4187
4211
|
}
|
|
4188
4212
|
} else if (isPair(node)) {
|
|
4189
|
-
|
|
4190
|
-
const ck = await visitAsync_("key", node.key, visitor,
|
|
4213
|
+
path112 = Object.freeze(path112.concat(node));
|
|
4214
|
+
const ck = await visitAsync_("key", node.key, visitor, path112);
|
|
4191
4215
|
if (ck === BREAK)
|
|
4192
4216
|
return BREAK;
|
|
4193
4217
|
else if (ck === REMOVE)
|
|
4194
4218
|
node.key = null;
|
|
4195
|
-
const cv = await visitAsync_("value", node.value, visitor,
|
|
4219
|
+
const cv = await visitAsync_("value", node.value, visitor, path112);
|
|
4196
4220
|
if (cv === BREAK)
|
|
4197
4221
|
return BREAK;
|
|
4198
4222
|
else if (cv === REMOVE)
|
|
@@ -4219,23 +4243,23 @@ function initVisitor(visitor) {
|
|
|
4219
4243
|
}
|
|
4220
4244
|
return visitor;
|
|
4221
4245
|
}
|
|
4222
|
-
function callVisitor(key, node, visitor,
|
|
4246
|
+
function callVisitor(key, node, visitor, path112) {
|
|
4223
4247
|
if (typeof visitor === "function")
|
|
4224
|
-
return visitor(key, node,
|
|
4248
|
+
return visitor(key, node, path112);
|
|
4225
4249
|
if (isMap(node))
|
|
4226
|
-
return visitor.Map?.(key, node,
|
|
4250
|
+
return visitor.Map?.(key, node, path112);
|
|
4227
4251
|
if (isSeq(node))
|
|
4228
|
-
return visitor.Seq?.(key, node,
|
|
4252
|
+
return visitor.Seq?.(key, node, path112);
|
|
4229
4253
|
if (isPair(node))
|
|
4230
|
-
return visitor.Pair?.(key, node,
|
|
4254
|
+
return visitor.Pair?.(key, node, path112);
|
|
4231
4255
|
if (isScalar(node))
|
|
4232
|
-
return visitor.Scalar?.(key, node,
|
|
4256
|
+
return visitor.Scalar?.(key, node, path112);
|
|
4233
4257
|
if (isAlias(node))
|
|
4234
|
-
return visitor.Alias?.(key, node,
|
|
4258
|
+
return visitor.Alias?.(key, node, path112);
|
|
4235
4259
|
return void 0;
|
|
4236
4260
|
}
|
|
4237
|
-
function replaceNode(key,
|
|
4238
|
-
const parent =
|
|
4261
|
+
function replaceNode(key, path112, node) {
|
|
4262
|
+
const parent = path112[path112.length - 1];
|
|
4239
4263
|
if (isCollection(parent)) {
|
|
4240
4264
|
parent.items[key] = node;
|
|
4241
4265
|
} else if (isPair(parent)) {
|
|
@@ -4786,10 +4810,10 @@ var init_createNode = __esm({
|
|
|
4786
4810
|
});
|
|
4787
4811
|
|
|
4788
4812
|
// ../../node_modules/yaml/browser/dist/nodes/Collection.js
|
|
4789
|
-
function collectionFromPath(schema4,
|
|
4813
|
+
function collectionFromPath(schema4, path112, value) {
|
|
4790
4814
|
let v10 = value;
|
|
4791
|
-
for (let i =
|
|
4792
|
-
const k =
|
|
4815
|
+
for (let i = path112.length - 1; i >= 0; --i) {
|
|
4816
|
+
const k = path112[i];
|
|
4793
4817
|
if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
|
|
4794
4818
|
const a = [];
|
|
4795
4819
|
a[k] = v10;
|
|
@@ -4814,7 +4838,7 @@ var init_Collection = __esm({
|
|
|
4814
4838
|
init_createNode();
|
|
4815
4839
|
init_identity();
|
|
4816
4840
|
init_Node();
|
|
4817
|
-
isEmptyPath = (
|
|
4841
|
+
isEmptyPath = (path112) => path112 == null || typeof path112 === "object" && !!path112[Symbol.iterator]().next().done;
|
|
4818
4842
|
Collection = class extends NodeBase {
|
|
4819
4843
|
constructor(type, schema4) {
|
|
4820
4844
|
super(type);
|
|
@@ -4844,11 +4868,11 @@ var init_Collection = __esm({
|
|
|
4844
4868
|
* be a Pair instance or a `{ key, value }` object, which may not have a key
|
|
4845
4869
|
* that already exists in the map.
|
|
4846
4870
|
*/
|
|
4847
|
-
addIn(
|
|
4848
|
-
if (isEmptyPath(
|
|
4871
|
+
addIn(path112, value) {
|
|
4872
|
+
if (isEmptyPath(path112))
|
|
4849
4873
|
this.add(value);
|
|
4850
4874
|
else {
|
|
4851
|
-
const [key, ...rest] =
|
|
4875
|
+
const [key, ...rest] = path112;
|
|
4852
4876
|
const node = this.get(key, true);
|
|
4853
4877
|
if (isCollection(node))
|
|
4854
4878
|
node.addIn(rest, value);
|
|
@@ -4862,8 +4886,8 @@ var init_Collection = __esm({
|
|
|
4862
4886
|
* Removes a value from the collection.
|
|
4863
4887
|
* @returns `true` if the item was found and removed.
|
|
4864
4888
|
*/
|
|
4865
|
-
deleteIn(
|
|
4866
|
-
const [key, ...rest] =
|
|
4889
|
+
deleteIn(path112) {
|
|
4890
|
+
const [key, ...rest] = path112;
|
|
4867
4891
|
if (rest.length === 0)
|
|
4868
4892
|
return this.delete(key);
|
|
4869
4893
|
const node = this.get(key, true);
|
|
@@ -4877,8 +4901,8 @@ var init_Collection = __esm({
|
|
|
4877
4901
|
* scalar values from their surrounding node; to disable set `keepScalar` to
|
|
4878
4902
|
* `true` (collections are always returned intact).
|
|
4879
4903
|
*/
|
|
4880
|
-
getIn(
|
|
4881
|
-
const [key, ...rest] =
|
|
4904
|
+
getIn(path112, keepScalar) {
|
|
4905
|
+
const [key, ...rest] = path112;
|
|
4882
4906
|
const node = this.get(key, true);
|
|
4883
4907
|
if (rest.length === 0)
|
|
4884
4908
|
return !keepScalar && isScalar(node) ? node.value : node;
|
|
@@ -4896,8 +4920,8 @@ var init_Collection = __esm({
|
|
|
4896
4920
|
/**
|
|
4897
4921
|
* Checks if the collection includes a value with the key `key`.
|
|
4898
4922
|
*/
|
|
4899
|
-
hasIn(
|
|
4900
|
-
const [key, ...rest] =
|
|
4923
|
+
hasIn(path112) {
|
|
4924
|
+
const [key, ...rest] = path112;
|
|
4901
4925
|
if (rest.length === 0)
|
|
4902
4926
|
return this.has(key);
|
|
4903
4927
|
const node = this.get(key, true);
|
|
@@ -4907,8 +4931,8 @@ var init_Collection = __esm({
|
|
|
4907
4931
|
* Sets a value in this collection. For `!!set`, `value` needs to be a
|
|
4908
4932
|
* boolean to add/remove the item from the set.
|
|
4909
4933
|
*/
|
|
4910
|
-
setIn(
|
|
4911
|
-
const [key, ...rest] =
|
|
4934
|
+
setIn(path112, value) {
|
|
4935
|
+
const [key, ...rest] = path112;
|
|
4912
4936
|
if (rest.length === 0) {
|
|
4913
4937
|
this.set(key, value);
|
|
4914
4938
|
} else {
|
|
@@ -6827,15 +6851,15 @@ function visit2(cst, visitor) {
|
|
|
6827
6851
|
cst = { start: cst.start, value: cst.value };
|
|
6828
6852
|
_visit(Object.freeze([]), cst, visitor);
|
|
6829
6853
|
}
|
|
6830
|
-
function _visit(
|
|
6831
|
-
let ctrl = visitor(item,
|
|
6854
|
+
function _visit(path112, item, visitor) {
|
|
6855
|
+
let ctrl = visitor(item, path112);
|
|
6832
6856
|
if (typeof ctrl === "symbol")
|
|
6833
6857
|
return ctrl;
|
|
6834
6858
|
for (const field of ["key", "value"]) {
|
|
6835
6859
|
const token = item[field];
|
|
6836
6860
|
if (token && "items" in token) {
|
|
6837
6861
|
for (let i = 0; i < token.items.length; ++i) {
|
|
6838
|
-
const ci = _visit(Object.freeze(
|
|
6862
|
+
const ci = _visit(Object.freeze(path112.concat([[field, i]])), token.items[i], visitor);
|
|
6839
6863
|
if (typeof ci === "number")
|
|
6840
6864
|
i = ci - 1;
|
|
6841
6865
|
else if (ci === BREAK2)
|
|
@@ -6846,10 +6870,10 @@ function _visit(path111, item, visitor) {
|
|
|
6846
6870
|
}
|
|
6847
6871
|
}
|
|
6848
6872
|
if (typeof ctrl === "function" && field === "key")
|
|
6849
|
-
ctrl = ctrl(item,
|
|
6873
|
+
ctrl = ctrl(item, path112);
|
|
6850
6874
|
}
|
|
6851
6875
|
}
|
|
6852
|
-
return typeof ctrl === "function" ? ctrl(item,
|
|
6876
|
+
return typeof ctrl === "function" ? ctrl(item, path112) : ctrl;
|
|
6853
6877
|
}
|
|
6854
6878
|
var BREAK2, SKIP2, REMOVE2;
|
|
6855
6879
|
var init_cst_visit = __esm({
|
|
@@ -6860,9 +6884,9 @@ var init_cst_visit = __esm({
|
|
|
6860
6884
|
visit2.BREAK = BREAK2;
|
|
6861
6885
|
visit2.SKIP = SKIP2;
|
|
6862
6886
|
visit2.REMOVE = REMOVE2;
|
|
6863
|
-
visit2.itemAtPath = (cst,
|
|
6887
|
+
visit2.itemAtPath = (cst, path112) => {
|
|
6864
6888
|
let item = cst;
|
|
6865
|
-
for (const [field, index] of
|
|
6889
|
+
for (const [field, index] of path112) {
|
|
6866
6890
|
const tok = item?.[field];
|
|
6867
6891
|
if (tok && "items" in tok) {
|
|
6868
6892
|
item = tok.items[index];
|
|
@@ -6871,9 +6895,9 @@ var init_cst_visit = __esm({
|
|
|
6871
6895
|
}
|
|
6872
6896
|
return item;
|
|
6873
6897
|
};
|
|
6874
|
-
visit2.parentCollection = (cst,
|
|
6875
|
-
const parent = visit2.itemAtPath(cst,
|
|
6876
|
-
const field =
|
|
6898
|
+
visit2.parentCollection = (cst, path112) => {
|
|
6899
|
+
const parent = visit2.itemAtPath(cst, path112.slice(0, -1));
|
|
6900
|
+
const field = path112[path112.length - 1][0];
|
|
6877
6901
|
const coll = parent?.[field];
|
|
6878
6902
|
if (coll && "items" in coll)
|
|
6879
6903
|
return coll;
|
|
@@ -14807,9 +14831,9 @@ function hashPackageTree(root, options) {
|
|
|
14807
14831
|
(a, b) => options.compareNames(a.name, b.name)
|
|
14808
14832
|
)) {
|
|
14809
14833
|
if (entry.name === "node_modules") continue;
|
|
14810
|
-
const
|
|
14811
|
-
if (entry.isDirectory()) walk2((0, import_node_path91.join)(directory, entry.name), `${
|
|
14812
|
-
else if (entry.isFile() && !options.skipFile?.(entry.name)) files.push(
|
|
14834
|
+
const path112 = `${relative3}${entry.name}`;
|
|
14835
|
+
if (entry.isDirectory()) walk2((0, import_node_path91.join)(directory, entry.name), `${path112}/`);
|
|
14836
|
+
else if (entry.isFile() && !options.skipFile?.(entry.name)) files.push(path112);
|
|
14813
14837
|
}
|
|
14814
14838
|
};
|
|
14815
14839
|
walk2(root, "");
|
|
@@ -14869,20 +14893,134 @@ var init_expo_native_prebuilt = __esm({
|
|
|
14869
14893
|
}
|
|
14870
14894
|
});
|
|
14871
14895
|
|
|
14896
|
+
// src/nativePreparationContract.ts
|
|
14897
|
+
var NATIVE_PREPARE_QUERY_PARAM, NATIVE_PREPARED_QUERY_PARAM;
|
|
14898
|
+
var init_nativePreparationContract = __esm({
|
|
14899
|
+
"src/nativePreparationContract.ts"() {
|
|
14900
|
+
"use strict";
|
|
14901
|
+
NATIVE_PREPARE_QUERY_PARAM = "prepare";
|
|
14902
|
+
NATIVE_PREPARED_QUERY_PARAM = "prepared";
|
|
14903
|
+
}
|
|
14904
|
+
});
|
|
14905
|
+
|
|
14872
14906
|
// src/native-preparation.ts
|
|
14873
|
-
|
|
14907
|
+
function ignoredChange(relative3) {
|
|
14908
|
+
const parts = relative3.split(import_node_path93.default.sep);
|
|
14909
|
+
return relative3 === import_node_path93.default.join(".git", "index") || parts.includes(".cache") || parts.includes(".expo") || /(?:^|[\\/])node_modules[\\/]expo-widgets[\\/]bundle[\\/]build(?:[\\/]|$)/.test(
|
|
14910
|
+
relative3
|
|
14911
|
+
);
|
|
14912
|
+
}
|
|
14913
|
+
function watchNativeInputs(root) {
|
|
14914
|
+
const workspace = findWorkspaceRoot(root);
|
|
14915
|
+
const existing = watchedInputs.get(workspace);
|
|
14916
|
+
if (existing) {
|
|
14917
|
+
existing.expiry.refresh();
|
|
14918
|
+
return existing;
|
|
14919
|
+
}
|
|
14920
|
+
const watchers = [];
|
|
14921
|
+
const visited = /* @__PURE__ */ new Set();
|
|
14922
|
+
const expiry = setTimeoutNode(close, RETENTION_MS);
|
|
14923
|
+
expiry.unref();
|
|
14924
|
+
function close() {
|
|
14925
|
+
if (watchedInputs.get(workspace) === inputs2) watchedInputs.delete(workspace);
|
|
14926
|
+
(0, import_node_timers.clearTimeout)(expiry);
|
|
14927
|
+
for (const watcher of watchers) watcher.close();
|
|
14928
|
+
}
|
|
14929
|
+
const inputs2 = { expiry };
|
|
14930
|
+
const watch = (directory, recursive, name2) => {
|
|
14931
|
+
const watcher = import_node_fs90.default.watch(
|
|
14932
|
+
directory,
|
|
14933
|
+
{ recursive, persistent: false },
|
|
14934
|
+
(_event, file) => {
|
|
14935
|
+
if (!file || (name2 ? file === name2 : !ignoredChange(file))) close();
|
|
14936
|
+
}
|
|
14937
|
+
);
|
|
14938
|
+
watchers.push(watcher);
|
|
14939
|
+
watcher.on("error", close);
|
|
14940
|
+
};
|
|
14941
|
+
const scan = (directory, watchRoot) => {
|
|
14942
|
+
if (visited.has(directory)) return;
|
|
14943
|
+
visited.add(directory);
|
|
14944
|
+
for (const entry of import_node_fs90.default.readdirSync(directory, { withFileTypes: true })) {
|
|
14945
|
+
const file = import_node_path93.default.join(directory, entry.name);
|
|
14946
|
+
if (ignoredChange(import_node_path93.default.relative(watchRoot, file)) || entry.name === ".git") continue;
|
|
14947
|
+
if (entry.isDirectory()) scan(file, watchRoot);
|
|
14948
|
+
if (!entry.isSymbolicLink()) continue;
|
|
14949
|
+
const target = import_node_path93.default.resolve(directory, import_node_fs90.default.readlinkSync(file));
|
|
14950
|
+
if (target === workspace || target.startsWith(workspace + import_node_path93.default.sep)) continue;
|
|
14951
|
+
const real = import_node_fs90.default.realpathSync(file);
|
|
14952
|
+
if (visited.has(real)) continue;
|
|
14953
|
+
watch(import_node_path93.default.dirname(real), false, import_node_path93.default.basename(real));
|
|
14954
|
+
if (import_node_fs90.default.statSync(real).isDirectory()) {
|
|
14955
|
+
watch(real, true);
|
|
14956
|
+
scan(real, real);
|
|
14957
|
+
} else visited.add(real);
|
|
14958
|
+
}
|
|
14959
|
+
};
|
|
14960
|
+
try {
|
|
14961
|
+
watch(workspace, true);
|
|
14962
|
+
scan(workspace, workspace);
|
|
14963
|
+
} catch {
|
|
14964
|
+
close();
|
|
14965
|
+
return void 0;
|
|
14966
|
+
}
|
|
14967
|
+
watchedInputs.set(workspace, inputs2);
|
|
14968
|
+
return inputs2;
|
|
14969
|
+
}
|
|
14970
|
+
var import_node_fs90, import_node_path93, import_node_timers, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
|
|
14874
14971
|
var init_native_preparation = __esm({
|
|
14875
14972
|
"src/native-preparation.ts"() {
|
|
14876
14973
|
"use strict";
|
|
14974
|
+
import_node_fs90 = __toESM(require("node:fs"), 1);
|
|
14975
|
+
import_node_path93 = __toESM(require("node:path"), 1);
|
|
14877
14976
|
import_node_timers = require("node:timers");
|
|
14977
|
+
init_nativePreparationContract();
|
|
14978
|
+
init_runtime_assets();
|
|
14979
|
+
init_workspace_root();
|
|
14878
14980
|
setTimeoutNode = import_node_timers.setTimeout;
|
|
14879
|
-
|
|
14981
|
+
RETENTION_MS = 30 * 60 * 1e3;
|
|
14982
|
+
watchedInputs = /* @__PURE__ */ new Map();
|
|
14983
|
+
NativePreparation = class {
|
|
14984
|
+
compiling = /* @__PURE__ */ new Map();
|
|
14985
|
+
prepared = /* @__PURE__ */ new WeakMap();
|
|
14880
14986
|
receipts = /* @__PURE__ */ new Map();
|
|
14987
|
+
async resolve(root, owner, params, compile, reusable = () => true) {
|
|
14988
|
+
const receipt = this.take(owner, params.get(NATIVE_PREPARED_QUERY_PARAM));
|
|
14989
|
+
if (receipt) return receipt.value;
|
|
14990
|
+
const token = params.get(NATIVE_PREPARE_QUERY_PARAM);
|
|
14991
|
+
const inputs2 = token ? watchNativeInputs(root) : void 0;
|
|
14992
|
+
const key = inputs2 ? `${owner}\0${resolveActiveRuntimeRoot() ?? ""}` : owner;
|
|
14993
|
+
let pending = this.compiling;
|
|
14994
|
+
if (inputs2) {
|
|
14995
|
+
const prepared = this.prepared.get(inputs2);
|
|
14996
|
+
if (prepared) pending = prepared;
|
|
14997
|
+
else {
|
|
14998
|
+
pending = /* @__PURE__ */ new Map();
|
|
14999
|
+
this.prepared.set(inputs2, pending);
|
|
15000
|
+
}
|
|
15001
|
+
}
|
|
15002
|
+
let preparation = pending.get(key);
|
|
15003
|
+
if (!preparation || preparation.ready && !reusable(preparation.ready.value)) {
|
|
15004
|
+
const next = { result: Promise.resolve().then(compile) };
|
|
15005
|
+
preparation = next;
|
|
15006
|
+
pending.set(key, next);
|
|
15007
|
+
void next.result.then(
|
|
15008
|
+
(value2) => {
|
|
15009
|
+
if (!inputs2 || !reusable(value2)) pending.delete(key);
|
|
15010
|
+
else next.ready = { value: value2 };
|
|
15011
|
+
},
|
|
15012
|
+
() => pending.delete(key)
|
|
15013
|
+
);
|
|
15014
|
+
}
|
|
15015
|
+
const value = await preparation.result;
|
|
15016
|
+
this.store(owner, token, value);
|
|
15017
|
+
return value;
|
|
15018
|
+
}
|
|
14881
15019
|
store(owner, token, value) {
|
|
14882
15020
|
if (!token) return;
|
|
14883
15021
|
const previous = this.receipts.get(token);
|
|
14884
15022
|
if (previous) (0, import_node_timers.clearTimeout)(previous.expiry);
|
|
14885
|
-
const expiry = setTimeoutNode(() => this.receipts.delete(token),
|
|
15023
|
+
const expiry = setTimeoutNode(() => this.receipts.delete(token), RETENTION_MS);
|
|
14886
15024
|
expiry.unref();
|
|
14887
15025
|
this.receipts.set(token, { owner, value, expiry });
|
|
14888
15026
|
}
|
|
@@ -14899,12 +15037,12 @@ var init_native_preparation = __esm({
|
|
|
14899
15037
|
});
|
|
14900
15038
|
|
|
14901
15039
|
// src/swift-xcframework.ts
|
|
14902
|
-
var
|
|
15040
|
+
var import_node_fs91, import_node_path94;
|
|
14903
15041
|
var init_swift_xcframework = __esm({
|
|
14904
15042
|
"src/swift-xcframework.ts"() {
|
|
14905
15043
|
"use strict";
|
|
14906
|
-
|
|
14907
|
-
|
|
15044
|
+
import_node_fs91 = __toESM(require("node:fs"), 1);
|
|
15045
|
+
import_node_path94 = __toESM(require("node:path"), 1);
|
|
14908
15046
|
init_is_record();
|
|
14909
15047
|
init_plist_bytes();
|
|
14910
15048
|
init_swift_source_file();
|
|
@@ -14912,14 +15050,14 @@ var init_swift_xcframework = __esm({
|
|
|
14912
15050
|
});
|
|
14913
15051
|
|
|
14914
15052
|
// src/native-static-libraries.ts
|
|
14915
|
-
var import_node_child_process43, import_node_crypto54,
|
|
15053
|
+
var import_node_child_process43, import_node_crypto54, import_node_fs92, import_node_path95, WEBRTC_NATIVE_FRAMEWORK, SIGNAL_WEBRTC_NATIVE_FRAMEWORK, WEBRTC_NATIVE_FRAMEWORK_RECIPES, NATIVE_STATIC_LIBRARY_RECIPES;
|
|
14916
15054
|
var init_native_static_libraries = __esm({
|
|
14917
15055
|
"src/native-static-libraries.ts"() {
|
|
14918
15056
|
"use strict";
|
|
14919
15057
|
import_node_child_process43 = require("node:child_process");
|
|
14920
15058
|
import_node_crypto54 = require("node:crypto");
|
|
14921
|
-
|
|
14922
|
-
|
|
15059
|
+
import_node_fs92 = __toESM(require("node:fs"), 1);
|
|
15060
|
+
import_node_path95 = __toESM(require("node:path"), 1);
|
|
14923
15061
|
init_home_paths();
|
|
14924
15062
|
init_native_prebuilt();
|
|
14925
15063
|
init_swift_compile();
|
|
@@ -15215,13 +15353,6 @@ var init_native_static_libraries = __esm({
|
|
|
15215
15353
|
}
|
|
15216
15354
|
});
|
|
15217
15355
|
|
|
15218
|
-
// src/nativePreparationContract.ts
|
|
15219
|
-
var init_nativePreparationContract = __esm({
|
|
15220
|
-
"src/nativePreparationContract.ts"() {
|
|
15221
|
-
"use strict";
|
|
15222
|
-
}
|
|
15223
|
-
});
|
|
15224
|
-
|
|
15225
15356
|
// ../../src/helpers/mapLimit.ts
|
|
15226
15357
|
var init_mapLimit = __esm({
|
|
15227
15358
|
"../../src/helpers/mapLimit.ts"() {
|
|
@@ -15230,26 +15361,26 @@ var init_mapLimit = __esm({
|
|
|
15230
15361
|
});
|
|
15231
15362
|
|
|
15232
15363
|
// src/numbered-lock.ts
|
|
15233
|
-
var import_node_crypto55,
|
|
15364
|
+
var import_node_crypto55, import_node_fs93, import_node_path96;
|
|
15234
15365
|
var init_numbered_lock = __esm({
|
|
15235
15366
|
"src/numbered-lock.ts"() {
|
|
15236
15367
|
"use strict";
|
|
15237
15368
|
import_node_crypto55 = require("node:crypto");
|
|
15238
|
-
|
|
15239
|
-
|
|
15369
|
+
import_node_fs93 = require("node:fs");
|
|
15370
|
+
import_node_path96 = require("node:path");
|
|
15240
15371
|
}
|
|
15241
15372
|
});
|
|
15242
15373
|
|
|
15243
15374
|
// src/rive-runtime-dependencies.ts
|
|
15244
|
-
var import_node_child_process44, import_node_crypto56,
|
|
15375
|
+
var import_node_child_process44, import_node_crypto56, import_node_fs94, import_node_os20, import_node_path97, import_promises10;
|
|
15245
15376
|
var init_rive_runtime_dependencies = __esm({
|
|
15246
15377
|
"src/rive-runtime-dependencies.ts"() {
|
|
15247
15378
|
"use strict";
|
|
15248
15379
|
import_node_child_process44 = require("node:child_process");
|
|
15249
15380
|
import_node_crypto56 = require("node:crypto");
|
|
15250
|
-
|
|
15381
|
+
import_node_fs94 = __toESM(require("node:fs"), 1);
|
|
15251
15382
|
import_node_os20 = __toESM(require("node:os"), 1);
|
|
15252
|
-
|
|
15383
|
+
import_node_path97 = __toESM(require("node:path"), 1);
|
|
15253
15384
|
import_promises10 = require("node:timers/promises");
|
|
15254
15385
|
init_home_paths();
|
|
15255
15386
|
init_numbered_lock();
|
|
@@ -15326,14 +15457,14 @@ var init_swift_shipped_binaries = __esm({
|
|
|
15326
15457
|
});
|
|
15327
15458
|
|
|
15328
15459
|
// src/swift-packages.ts
|
|
15329
|
-
var import_node_child_process45, import_node_crypto57,
|
|
15460
|
+
var import_node_child_process45, import_node_crypto57, import_node_fs95, import_node_path98, import_promises11, import_node_util10, execFileAsync2;
|
|
15330
15461
|
var init_swift_packages = __esm({
|
|
15331
15462
|
"src/swift-packages.ts"() {
|
|
15332
15463
|
"use strict";
|
|
15333
15464
|
import_node_child_process45 = require("node:child_process");
|
|
15334
15465
|
import_node_crypto57 = require("node:crypto");
|
|
15335
|
-
|
|
15336
|
-
|
|
15466
|
+
import_node_fs95 = __toESM(require("node:fs"), 1);
|
|
15467
|
+
import_node_path98 = __toESM(require("node:path"), 1);
|
|
15337
15468
|
import_promises11 = require("node:timers/promises");
|
|
15338
15469
|
import_node_util10 = require("node:util");
|
|
15339
15470
|
init_git_repo_env();
|
|
@@ -15352,20 +15483,20 @@ var init_swift_packages = __esm({
|
|
|
15352
15483
|
// src/ffmpeg-source-build.ts
|
|
15353
15484
|
function inputs(declaration) {
|
|
15354
15485
|
const source = declaration.sources.find(
|
|
15355
|
-
({ file }) =>
|
|
15486
|
+
({ file }) => import_node_path99.default.basename(file) === "configure" && import_node_fs96.default.existsSync(import_node_path99.default.join(import_node_path99.default.dirname(file), "ffbuild/common.mak"))
|
|
15356
15487
|
)?.file;
|
|
15357
15488
|
const script = declaration.sources.find(
|
|
15358
|
-
({ file }) => file.endsWith(".sh") &&
|
|
15489
|
+
({ file }) => file.endsWith(".sh") && import_node_fs96.default.readFileSync(file, "utf8").includes("CONFIGURE_FLAGS=") && import_node_fs96.default.readFileSync(file, "utf8").includes("$SOURCE/configure")
|
|
15359
15490
|
)?.file;
|
|
15360
|
-
return source && script ? { source:
|
|
15491
|
+
return source && script ? { source: import_node_path99.default.dirname(source), script } : null;
|
|
15361
15492
|
}
|
|
15362
|
-
var import_node_child_process46,
|
|
15493
|
+
var import_node_child_process46, import_node_fs96, import_node_path99, ffmpegBuilder;
|
|
15363
15494
|
var init_ffmpeg_source_build = __esm({
|
|
15364
15495
|
"src/ffmpeg-source-build.ts"() {
|
|
15365
15496
|
"use strict";
|
|
15366
15497
|
import_node_child_process46 = require("node:child_process");
|
|
15367
|
-
|
|
15368
|
-
|
|
15498
|
+
import_node_fs96 = __toESM(require("node:fs"), 1);
|
|
15499
|
+
import_node_path99 = __toESM(require("node:path"), 1);
|
|
15369
15500
|
ffmpegBuilder = {
|
|
15370
15501
|
name: "ffmpeg-configure-v2",
|
|
15371
15502
|
probesFrameworks: true,
|
|
@@ -15373,7 +15504,7 @@ var init_ffmpeg_source_build = __esm({
|
|
|
15373
15504
|
build(declaration, toolchain, dependencyOutputs, outDir) {
|
|
15374
15505
|
const input = inputs(declaration);
|
|
15375
15506
|
if (!input) throw new Error(`${declaration.label} has no FFmpeg configure source`);
|
|
15376
|
-
const script =
|
|
15507
|
+
const script = import_node_fs96.default.readFileSync(input.script, "utf8");
|
|
15377
15508
|
const common = /\bCONFIGURE_FLAGS="([^"$]*)"/.exec(script)?.[1];
|
|
15378
15509
|
const portable = /--target-os=linux\s+([\s\S]*?)\|\| exit 1/.exec(script)?.[1];
|
|
15379
15510
|
const extra = /\bEXTRA_CFLAGS="([^"$]*)"/.exec(script)?.[1];
|
|
@@ -15387,9 +15518,9 @@ var init_ffmpeg_source_build = __esm({
|
|
|
15387
15518
|
"--enable-decoder=aac_at,alac_at,gsm_ms_at",
|
|
15388
15519
|
"--enable-hwaccel=h264_videotoolbox,hevc_videotoolbox"
|
|
15389
15520
|
);
|
|
15390
|
-
const work =
|
|
15391
|
-
const prefix =
|
|
15392
|
-
|
|
15521
|
+
const work = import_node_path99.default.join(outDir, ".work");
|
|
15522
|
+
const prefix = import_node_path99.default.join(work, "install");
|
|
15523
|
+
import_node_fs96.default.mkdirSync(work, { recursive: true });
|
|
15393
15524
|
const libraries = [
|
|
15394
15525
|
{
|
|
15395
15526
|
option: "libopus",
|
|
@@ -15413,7 +15544,7 @@ var init_ffmpeg_source_build = __esm({
|
|
|
15413
15544
|
for (const library of libraries) {
|
|
15414
15545
|
if (!flags.includes(`--enable-${library.option}`)) continue;
|
|
15415
15546
|
const dependency = declaration.dependencies.find(
|
|
15416
|
-
(candidate) => candidate.outputs.some((output) =>
|
|
15547
|
+
(candidate) => candidate.outputs.some((output) => import_node_path99.default.basename(output.path) === library.header)
|
|
15417
15548
|
);
|
|
15418
15549
|
const built = dependency && dependencyOutputs.get(dependency.label);
|
|
15419
15550
|
if (!dependency || !built)
|
|
@@ -15424,31 +15555,31 @@ var init_ffmpeg_source_build = __esm({
|
|
|
15424
15555
|
(output) => /\.(?:h|inc)$/.test(output.path)
|
|
15425
15556
|
);
|
|
15426
15557
|
const main = headers.find(
|
|
15427
|
-
(output) =>
|
|
15558
|
+
(output) => import_node_path99.default.basename(output.path) === library.header
|
|
15428
15559
|
);
|
|
15429
|
-
const includeRoot = library.option === "libdav1d" ?
|
|
15430
|
-
const destination =
|
|
15560
|
+
const includeRoot = library.option === "libdav1d" ? import_node_path99.default.dirname(import_node_path99.default.dirname(main.path)) : import_node_path99.default.dirname(main.path);
|
|
15561
|
+
const destination = import_node_path99.default.join(work, library.option);
|
|
15431
15562
|
for (const header of headers) {
|
|
15432
|
-
const relative3 =
|
|
15563
|
+
const relative3 = import_node_path99.default.relative(includeRoot, header.path);
|
|
15433
15564
|
if (relative3.startsWith("..")) continue;
|
|
15434
|
-
const target =
|
|
15565
|
+
const target = import_node_path99.default.join(
|
|
15435
15566
|
destination,
|
|
15436
15567
|
library.option === "libdav1d" ? "include" : library.include,
|
|
15437
15568
|
relative3
|
|
15438
15569
|
);
|
|
15439
|
-
|
|
15440
|
-
|
|
15570
|
+
import_node_fs96.default.mkdirSync(import_node_path99.default.dirname(target), { recursive: true });
|
|
15571
|
+
import_node_fs96.default.copyFileSync(import_node_path99.default.join(built, header.path), target);
|
|
15441
15572
|
}
|
|
15442
15573
|
const archive = dependency.outputs.find((output) => output.path.endsWith(".a"));
|
|
15443
15574
|
if (!archive) throw new Error(`${dependency.label} declares no library`);
|
|
15444
|
-
|
|
15445
|
-
|
|
15446
|
-
|
|
15447
|
-
|
|
15575
|
+
import_node_fs96.default.mkdirSync(import_node_path99.default.join(destination, "lib"), { recursive: true });
|
|
15576
|
+
import_node_fs96.default.copyFileSync(
|
|
15577
|
+
import_node_path99.default.join(built, archive.path),
|
|
15578
|
+
import_node_path99.default.join(destination, "lib", library.archive)
|
|
15448
15579
|
);
|
|
15449
15580
|
}
|
|
15450
15581
|
const compiler = [toolchain.cc, ...toolchain.cFlags].join(" ");
|
|
15451
|
-
const pkgConfig =
|
|
15582
|
+
const pkgConfig = import_node_path99.default.join(import_node_path99.default.dirname(input.script), "pkg-config");
|
|
15452
15583
|
const options = {
|
|
15453
15584
|
cwd: work,
|
|
15454
15585
|
env: { ...process.env, CPPFLAGS: "", CFLAGS: "", CXXFLAGS: "", LDFLAGS: "" },
|
|
@@ -15469,34 +15600,34 @@ var init_ffmpeg_source_build = __esm({
|
|
|
15469
15600
|
`--cc=${compiler}`,
|
|
15470
15601
|
`--ar=${toolchain.ar}`,
|
|
15471
15602
|
`--ranlib=${toolchain.ranlib}`,
|
|
15472
|
-
`--nm=${
|
|
15603
|
+
`--nm=${import_node_path99.default.join(toolchain.toolchainBin, "llvm-nm")}`,
|
|
15473
15604
|
`--extra-cflags=${extra} -Oz -fPIC -fwasm-exceptions -ffunction-sections -fdata-sections`,
|
|
15474
15605
|
"--extra-ldflags=-fwasm-exceptions",
|
|
15475
15606
|
`--prefix=${prefix}`,
|
|
15476
15607
|
`--pkg-config=${pkgConfig}`,
|
|
15477
|
-
`--pkg-config-flags=${libraries.map(({ option }) => `--${option}_path ${
|
|
15608
|
+
`--pkg-config-flags=${libraries.map(({ option }) => `--${option}_path ${import_node_path99.default.join(work, option)}`).join(" ")}`
|
|
15478
15609
|
];
|
|
15479
|
-
(0, import_node_child_process46.execFileSync)(
|
|
15480
|
-
const config =
|
|
15610
|
+
(0, import_node_child_process46.execFileSync)(import_node_path99.default.join(input.source, "configure"), configure, options);
|
|
15611
|
+
const config = import_node_path99.default.join(work, "config.h");
|
|
15481
15612
|
const portableConfig = configure.filter((arg) => !/^--(?:cc|ar|nm|ranlib|prefix|pkg-config(?:-flags)?)=/.test(arg)).join(" ");
|
|
15482
|
-
|
|
15613
|
+
import_node_fs96.default.writeFileSync(
|
|
15483
15614
|
config,
|
|
15484
|
-
|
|
15615
|
+
import_node_fs96.default.readFileSync(config, "utf8").replace(
|
|
15485
15616
|
/^#define FFMPEG_CONFIGURATION .*$/m,
|
|
15486
15617
|
() => `#define FFMPEG_CONFIGURATION ${JSON.stringify(portableConfig)}`
|
|
15487
15618
|
)
|
|
15488
15619
|
);
|
|
15489
15620
|
(0, import_node_child_process46.execFileSync)("make", [`-j${toolchain.jobs}`, "install"], options);
|
|
15490
15621
|
for (const output of declaration.outputs) {
|
|
15491
|
-
const target =
|
|
15622
|
+
const target = import_node_path99.default.join(outDir, output.path);
|
|
15492
15623
|
const component = /(?:^|\/)((?:libavutil|libavcodec|libavformat|libswresample)\/.*)$/.exec(
|
|
15493
15624
|
output.path
|
|
15494
15625
|
)?.[1];
|
|
15495
|
-
const source = output.path.endsWith(".a") ?
|
|
15496
|
-
if (!source || !
|
|
15626
|
+
const source = output.path.endsWith(".a") ? import_node_path99.default.join(prefix, "lib", import_node_path99.default.basename(output.path)) : component ? import_node_path99.default.join(prefix, "include", component) : null;
|
|
15627
|
+
if (!source || !import_node_fs96.default.existsSync(source))
|
|
15497
15628
|
throw new Error(`${declaration.label}: FFmpeg did not produce ${output.path}`);
|
|
15498
|
-
|
|
15499
|
-
|
|
15629
|
+
import_node_fs96.default.mkdirSync(import_node_path99.default.dirname(target), { recursive: true });
|
|
15630
|
+
import_node_fs96.default.copyFileSync(source, target);
|
|
15500
15631
|
}
|
|
15501
15632
|
}
|
|
15502
15633
|
};
|
|
@@ -15509,7 +15640,7 @@ function sourceNamed(declaration, pattern) {
|
|
|
15509
15640
|
}
|
|
15510
15641
|
function sourceTree(declaration, marker) {
|
|
15511
15642
|
const file = declaration.sources.find(
|
|
15512
|
-
(source) => source.file.endsWith(`${
|
|
15643
|
+
(source) => source.file.endsWith(`${import_node_path100.default.sep}${marker}`)
|
|
15513
15644
|
)?.file;
|
|
15514
15645
|
if (!file) throw new Error(`${declaration.label} names no ${marker}`);
|
|
15515
15646
|
return file.slice(0, -marker.length - 1);
|
|
@@ -15523,20 +15654,20 @@ function run4(command, args, cwd, env) {
|
|
|
15523
15654
|
});
|
|
15524
15655
|
}
|
|
15525
15656
|
function walk(dir) {
|
|
15526
|
-
if (!
|
|
15527
|
-
return
|
|
15528
|
-
const full =
|
|
15657
|
+
if (!import_node_fs97.default.existsSync(dir)) return [];
|
|
15658
|
+
return import_node_fs97.default.readdirSync(dir, { withFileTypes: true }).flatMap((entry) => {
|
|
15659
|
+
const full = import_node_path100.default.join(dir, entry.name);
|
|
15529
15660
|
return entry.isDirectory() ? walk(full) : [full];
|
|
15530
15661
|
});
|
|
15531
15662
|
}
|
|
15532
15663
|
function placeOutputs(declaration, roots, outDir) {
|
|
15533
15664
|
const built = roots.flatMap(walk);
|
|
15534
15665
|
for (const output of declaration.outputs) {
|
|
15535
|
-
const parts = output.path.split(
|
|
15666
|
+
const parts = output.path.split(import_node_path100.default.sep);
|
|
15536
15667
|
const name2 = parts.at(-1).toLowerCase();
|
|
15537
|
-
const candidates = built.filter((file) =>
|
|
15668
|
+
const candidates = built.filter((file) => import_node_path100.default.basename(file).toLowerCase() === name2);
|
|
15538
15669
|
const score = (file) => {
|
|
15539
|
-
const theirs = file.split(
|
|
15670
|
+
const theirs = file.split(import_node_path100.default.sep);
|
|
15540
15671
|
let shared = 1;
|
|
15541
15672
|
while (shared < parts.length && theirs.at(-1 - shared) === parts.at(-1 - shared))
|
|
15542
15673
|
shared++;
|
|
@@ -15544,16 +15675,16 @@ function placeOutputs(declaration, roots, outDir) {
|
|
|
15544
15675
|
};
|
|
15545
15676
|
const best = candidates.sort((a, b) => score(b) - score(a))[0];
|
|
15546
15677
|
if (!best) continue;
|
|
15547
|
-
const target =
|
|
15548
|
-
|
|
15549
|
-
|
|
15678
|
+
const target = import_node_path100.default.join(outDir, output.path);
|
|
15679
|
+
import_node_fs97.default.mkdirSync(import_node_path100.default.dirname(target), { recursive: true });
|
|
15680
|
+
import_node_fs97.default.copyFileSync(best, target);
|
|
15550
15681
|
}
|
|
15551
15682
|
}
|
|
15552
15683
|
function copyTree(source, target) {
|
|
15553
|
-
|
|
15684
|
+
import_node_fs97.default.cpSync(source, target, {
|
|
15554
15685
|
recursive: true,
|
|
15555
15686
|
dereference: true,
|
|
15556
|
-
filter: (file) =>
|
|
15687
|
+
filter: (file) => import_node_path100.default.basename(file) !== ".git"
|
|
15557
15688
|
});
|
|
15558
15689
|
}
|
|
15559
15690
|
function toolEnv(toolchain, extra = []) {
|
|
@@ -15569,8 +15700,8 @@ function toolEnv(toolchain, extra = []) {
|
|
|
15569
15700
|
CXX: toolchain.cxx,
|
|
15570
15701
|
AR: toolchain.ar,
|
|
15571
15702
|
RANLIB: toolchain.ranlib,
|
|
15572
|
-
NM:
|
|
15573
|
-
STRIP:
|
|
15703
|
+
NM: import_node_path100.default.join(toolchain.toolchainBin, "llvm-nm"),
|
|
15704
|
+
STRIP: import_node_path100.default.join(toolchain.toolchainBin, "llvm-strip"),
|
|
15574
15705
|
CFLAGS: flags.join(" "),
|
|
15575
15706
|
CXXFLAGS: flags.join(" "),
|
|
15576
15707
|
CPPFLAGS: "",
|
|
@@ -15586,8 +15717,8 @@ function toolEnv(toolchain, extra = []) {
|
|
|
15586
15717
|
};
|
|
15587
15718
|
}
|
|
15588
15719
|
function cmakeToolchainFile(toolchain, dir) {
|
|
15589
|
-
const file =
|
|
15590
|
-
|
|
15720
|
+
const file = import_node_path100.default.join(dir, "wasm64.cmake");
|
|
15721
|
+
import_node_fs97.default.writeFileSync(
|
|
15591
15722
|
file,
|
|
15592
15723
|
[
|
|
15593
15724
|
"set(CMAKE_SYSTEM_NAME WASI)",
|
|
@@ -15611,8 +15742,8 @@ function cmakeToolchainFile(toolchain, dir) {
|
|
|
15611
15742
|
return file;
|
|
15612
15743
|
}
|
|
15613
15744
|
function cmakeBuild(toolchain, source, work, options, targets = []) {
|
|
15614
|
-
const build =
|
|
15615
|
-
|
|
15745
|
+
const build = import_node_path100.default.join(work, "build");
|
|
15746
|
+
import_node_fs97.default.mkdirSync(build, { recursive: true });
|
|
15616
15747
|
const env = toolEnv(toolchain);
|
|
15617
15748
|
run4(
|
|
15618
15749
|
"cmake",
|
|
@@ -15643,24 +15774,24 @@ function cmakeBuild(toolchain, source, work, options, targets = []) {
|
|
|
15643
15774
|
);
|
|
15644
15775
|
return build;
|
|
15645
15776
|
}
|
|
15646
|
-
var import_node_child_process47,
|
|
15777
|
+
var import_node_child_process47, import_node_fs97, import_node_path100, opusBuilder, libvpxBuilder, libwebpBuilder, mozjpegBuilder, dav1dBuilder, tdBuilder, GENRULE_LIBRARY_BUILDERS;
|
|
15647
15778
|
var init_genrule_library_builds = __esm({
|
|
15648
15779
|
"src/genrule-library-builds.ts"() {
|
|
15649
15780
|
"use strict";
|
|
15650
15781
|
import_node_child_process47 = require("node:child_process");
|
|
15651
|
-
|
|
15652
|
-
|
|
15782
|
+
import_node_fs97 = __toESM(require("node:fs"), 1);
|
|
15783
|
+
import_node_path100 = __toESM(require("node:path"), 1);
|
|
15653
15784
|
init_swiftTargetContract();
|
|
15654
15785
|
opusBuilder = {
|
|
15655
15786
|
name: "opus",
|
|
15656
15787
|
recognizes: (declaration) => !!sourceNamed(declaration, /\/opus-[\d.]+\.tar\.gz$/),
|
|
15657
15788
|
build(declaration, toolchain, _dependencies, outDir) {
|
|
15658
15789
|
const tarball = sourceNamed(declaration, /\/opus-[\d.]+\.tar\.gz$/);
|
|
15659
|
-
const work =
|
|
15660
|
-
|
|
15790
|
+
const work = import_node_path100.default.join(outDir, ".work");
|
|
15791
|
+
import_node_fs97.default.mkdirSync(work, { recursive: true });
|
|
15661
15792
|
run4("tar", ["-xzf", tarball, "--no-same-owner", "-C", work], work, {});
|
|
15662
|
-
const source =
|
|
15663
|
-
const prefix =
|
|
15793
|
+
const source = import_node_path100.default.join(work, import_node_path100.default.basename(tarball, ".tar.gz"));
|
|
15794
|
+
const prefix = import_node_path100.default.join(work, "install");
|
|
15664
15795
|
run4(
|
|
15665
15796
|
"./configure",
|
|
15666
15797
|
[
|
|
@@ -15684,15 +15815,15 @@ var init_genrule_library_builds = __esm({
|
|
|
15684
15815
|
libvpxBuilder = {
|
|
15685
15816
|
name: "libvpx",
|
|
15686
15817
|
recognizes: (declaration) => declaration.sources.some(
|
|
15687
|
-
(source) => source.file.endsWith(`${
|
|
15688
|
-
) && declaration.sources.some((source) => source.file.endsWith(`${
|
|
15818
|
+
(source) => source.file.endsWith(`${import_node_path100.default.sep}vpx${import_node_path100.default.sep}vpx_codec.h`)
|
|
15819
|
+
) && declaration.sources.some((source) => source.file.endsWith(`${import_node_path100.default.sep}vpxenc.c`)),
|
|
15689
15820
|
build(declaration, toolchain, _dependencies, outDir) {
|
|
15690
15821
|
const original = sourceTree(declaration, "vpxenc.c");
|
|
15691
|
-
const work =
|
|
15692
|
-
const source =
|
|
15822
|
+
const work = import_node_path100.default.join(outDir, ".work");
|
|
15823
|
+
const source = import_node_path100.default.join(work, "source");
|
|
15693
15824
|
copyTree(original, source);
|
|
15694
|
-
const build =
|
|
15695
|
-
|
|
15825
|
+
const build = import_node_path100.default.join(work, "build");
|
|
15826
|
+
import_node_fs97.default.mkdirSync(build, { recursive: true });
|
|
15696
15827
|
const env = toolEnv(toolchain);
|
|
15697
15828
|
const configure = [
|
|
15698
15829
|
"--target=generic-gnu",
|
|
@@ -15711,15 +15842,15 @@ var init_genrule_library_builds = __esm({
|
|
|
15711
15842
|
"--size-limit=8192x8192"
|
|
15712
15843
|
];
|
|
15713
15844
|
run4(
|
|
15714
|
-
|
|
15845
|
+
import_node_path100.default.join(source, "configure"),
|
|
15715
15846
|
[...configure, `--extra-cflags=${env.CFLAGS}`, `--extra-cxxflags=${env.CXXFLAGS}`],
|
|
15716
15847
|
build,
|
|
15717
15848
|
{ ...env, CROSS: "", LD: env.CC, AS: "" }
|
|
15718
15849
|
);
|
|
15719
|
-
const config =
|
|
15720
|
-
|
|
15850
|
+
const config = import_node_path100.default.join(build, "vpx_config.c");
|
|
15851
|
+
import_node_fs97.default.writeFileSync(
|
|
15721
15852
|
config,
|
|
15722
|
-
|
|
15853
|
+
import_node_fs97.default.readFileSync(config, "utf8").replace(
|
|
15723
15854
|
/^static const char\* const cfg = .*;$/m,
|
|
15724
15855
|
() => `static const char* const cfg = ${JSON.stringify(configure.join(" "))};`
|
|
15725
15856
|
)
|
|
@@ -15727,17 +15858,17 @@ var init_genrule_library_builds = __esm({
|
|
|
15727
15858
|
run4("make", [`-j${toolchain.jobs}`, "dist", "DIST_DIR=dist"], build, {
|
|
15728
15859
|
CROSS: ""
|
|
15729
15860
|
});
|
|
15730
|
-
placeOutputs(declaration, [
|
|
15861
|
+
placeOutputs(declaration, [import_node_path100.default.join(build, "dist"), build], outDir);
|
|
15731
15862
|
}
|
|
15732
15863
|
};
|
|
15733
15864
|
libwebpBuilder = {
|
|
15734
15865
|
name: "libwebp",
|
|
15735
15866
|
recognizes: (declaration) => declaration.sources.some(
|
|
15736
|
-
(source) => source.file.endsWith(`${
|
|
15867
|
+
(source) => source.file.endsWith(`${import_node_path100.default.sep}src${import_node_path100.default.sep}webp${import_node_path100.default.sep}decode.h`)
|
|
15737
15868
|
),
|
|
15738
15869
|
build(declaration, toolchain, _dependencies, outDir) {
|
|
15739
|
-
const source = sourceTree(declaration,
|
|
15740
|
-
const work =
|
|
15870
|
+
const source = sourceTree(declaration, import_node_path100.default.join("src", "webp", "decode.h"));
|
|
15871
|
+
const work = import_node_path100.default.join(outDir, ".work");
|
|
15741
15872
|
const build = cmakeBuild(toolchain, source, work, [
|
|
15742
15873
|
"-DWEBP_LINK_STATIC=1",
|
|
15743
15874
|
"-DWEBP_BUILD_CWEBP=0",
|
|
@@ -15753,15 +15884,15 @@ var init_genrule_library_builds = __esm({
|
|
|
15753
15884
|
"-DWEBP_ENABLE_SIMD=0",
|
|
15754
15885
|
"-DWEBP_USE_THREAD=0"
|
|
15755
15886
|
]);
|
|
15756
|
-
placeOutputs(declaration, [build,
|
|
15887
|
+
placeOutputs(declaration, [build, import_node_path100.default.join(source, "src")], outDir);
|
|
15757
15888
|
}
|
|
15758
15889
|
};
|
|
15759
15890
|
mozjpegBuilder = {
|
|
15760
15891
|
name: "mozjpeg",
|
|
15761
|
-
recognizes: (declaration) => declaration.sources.some((source) => source.file.endsWith(`${
|
|
15892
|
+
recognizes: (declaration) => declaration.sources.some((source) => source.file.endsWith(`${import_node_path100.default.sep}jcmaster.c`)) && declaration.sources.some((source) => source.file.endsWith(`${import_node_path100.default.sep}turbojpeg.c`)),
|
|
15762
15893
|
build(declaration, toolchain, _dependencies, outDir) {
|
|
15763
15894
|
const source = sourceTree(declaration, "turbojpeg.c");
|
|
15764
|
-
const work =
|
|
15895
|
+
const work = import_node_path100.default.join(outDir, ".work");
|
|
15765
15896
|
const build = cmakeBuild(
|
|
15766
15897
|
toolchain,
|
|
15767
15898
|
source,
|
|
@@ -15783,22 +15914,22 @@ var init_genrule_library_builds = __esm({
|
|
|
15783
15914
|
dav1dBuilder = {
|
|
15784
15915
|
name: "dav1d",
|
|
15785
15916
|
recognizes: (declaration) => declaration.sources.some(
|
|
15786
|
-
(source) => source.file.endsWith(`${
|
|
15917
|
+
(source) => source.file.endsWith(`${import_node_path100.default.sep}include${import_node_path100.default.sep}dav1d${import_node_path100.default.sep}dav1d.h`)
|
|
15787
15918
|
),
|
|
15788
15919
|
build(declaration, toolchain, _dependencies, outDir) {
|
|
15789
|
-
const source = sourceTree(declaration,
|
|
15790
|
-
const work =
|
|
15791
|
-
|
|
15920
|
+
const source = sourceTree(declaration, import_node_path100.default.join("include", "dav1d", "dav1d.h"));
|
|
15921
|
+
const work = import_node_path100.default.join(outDir, ".work");
|
|
15922
|
+
import_node_fs97.default.mkdirSync(work, { recursive: true });
|
|
15792
15923
|
const quote = (item) => `'${item.replaceAll("\\", "\\\\").replaceAll("'", "\\'")}'`;
|
|
15793
15924
|
const list2 = (items) => `[${items.map(quote).join(", ")}]`;
|
|
15794
|
-
const cross =
|
|
15795
|
-
|
|
15925
|
+
const cross = import_node_path100.default.join(work, "wasm64.meson");
|
|
15926
|
+
import_node_fs97.default.writeFileSync(
|
|
15796
15927
|
cross,
|
|
15797
15928
|
[
|
|
15798
15929
|
"[binaries]",
|
|
15799
15930
|
`c = ${list2([toolchain.cc, ...toolchain.cFlags])}`,
|
|
15800
15931
|
`ar = ${quote(toolchain.ar)}`,
|
|
15801
|
-
`strip = ${quote(
|
|
15932
|
+
`strip = ${quote(import_node_path100.default.join(toolchain.toolchainBin, "llvm-strip"))}`,
|
|
15802
15933
|
"[built-in options]",
|
|
15803
15934
|
`c_link_args = ${list2(toolEnv(toolchain).LDFLAGS.split(" "))}`,
|
|
15804
15935
|
"[properties]",
|
|
@@ -15815,7 +15946,7 @@ var init_genrule_library_builds = __esm({
|
|
|
15815
15946
|
""
|
|
15816
15947
|
].join("\n")
|
|
15817
15948
|
);
|
|
15818
|
-
const build =
|
|
15949
|
+
const build = import_node_path100.default.join(work, "build");
|
|
15819
15950
|
run4(
|
|
15820
15951
|
"meson",
|
|
15821
15952
|
[
|
|
@@ -15833,22 +15964,22 @@ var init_genrule_library_builds = __esm({
|
|
|
15833
15964
|
{}
|
|
15834
15965
|
);
|
|
15835
15966
|
run4("ninja", ["-C", build, `-j${toolchain.jobs}`], work, {});
|
|
15836
|
-
placeOutputs(declaration, [build,
|
|
15967
|
+
placeOutputs(declaration, [build, import_node_path100.default.join(source, "include")], outDir);
|
|
15837
15968
|
}
|
|
15838
15969
|
};
|
|
15839
15970
|
tdBuilder = {
|
|
15840
15971
|
name: "td",
|
|
15841
15972
|
recognizes: (declaration) => declaration.sources.some(
|
|
15842
|
-
(source) => source.file.endsWith(`${
|
|
15973
|
+
(source) => source.file.endsWith(`${import_node_path100.default.sep}tde2e${import_node_path100.default.sep}CMakeLists.txt`)
|
|
15843
15974
|
),
|
|
15844
15975
|
build(declaration, toolchain, _dependencies, outDir) {
|
|
15845
|
-
const original = sourceTree(declaration,
|
|
15846
|
-
const openssl = sourceTree(declaration,
|
|
15847
|
-
const work =
|
|
15848
|
-
const source =
|
|
15976
|
+
const original = sourceTree(declaration, import_node_path100.default.join("tde2e", "CMakeLists.txt"));
|
|
15977
|
+
const openssl = sourceTree(declaration, import_node_path100.default.join("openssl", "crypto.h"));
|
|
15978
|
+
const work = import_node_path100.default.join(outDir, ".work");
|
|
15979
|
+
const source = import_node_path100.default.join(work, "source");
|
|
15849
15980
|
copyTree(original, source);
|
|
15850
|
-
const native =
|
|
15851
|
-
|
|
15981
|
+
const native = import_node_path100.default.join(work, "native");
|
|
15982
|
+
import_node_fs97.default.mkdirSync(native, { recursive: true });
|
|
15852
15983
|
run4(
|
|
15853
15984
|
"cmake",
|
|
15854
15985
|
["-G", "Unix Makefiles", "-DTD_GENERATE_SOURCE_FILES=ON", source],
|
|
@@ -15882,13 +16013,13 @@ var init_genrule_library_builds = __esm({
|
|
|
15882
16013
|
});
|
|
15883
16014
|
|
|
15884
16015
|
// src/native-framework-compiler.ts
|
|
15885
|
-
var import_node_crypto58,
|
|
16016
|
+
var import_node_crypto58, import_node_fs98, import_node_path101, v7;
|
|
15886
16017
|
var init_native_framework_compiler = __esm({
|
|
15887
16018
|
"src/native-framework-compiler.ts"() {
|
|
15888
16019
|
"use strict";
|
|
15889
16020
|
import_node_crypto58 = require("node:crypto");
|
|
15890
|
-
|
|
15891
|
-
|
|
16021
|
+
import_node_fs98 = __toESM(require("node:fs"), 1);
|
|
16022
|
+
import_node_path101 = __toESM(require("node:path"), 1);
|
|
15892
16023
|
v7 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
15893
16024
|
init_swift_compile();
|
|
15894
16025
|
init_swiftRuntimeProductContract();
|
|
@@ -15897,15 +16028,15 @@ var init_native_framework_compiler = __esm({
|
|
|
15897
16028
|
});
|
|
15898
16029
|
|
|
15899
16030
|
// src/genrule-archives.ts
|
|
15900
|
-
var import_node_child_process48, import_node_crypto59,
|
|
16031
|
+
var import_node_child_process48, import_node_crypto59, import_node_fs99, import_node_os21, import_node_path102, v8, BUILDERS, cacheDir4;
|
|
15901
16032
|
var init_genrule_archives = __esm({
|
|
15902
16033
|
"src/genrule-archives.ts"() {
|
|
15903
16034
|
"use strict";
|
|
15904
16035
|
import_node_child_process48 = require("node:child_process");
|
|
15905
16036
|
import_node_crypto59 = require("node:crypto");
|
|
15906
|
-
|
|
16037
|
+
import_node_fs99 = __toESM(require("node:fs"), 1);
|
|
15907
16038
|
import_node_os21 = __toESM(require("node:os"), 1);
|
|
15908
|
-
|
|
16039
|
+
import_node_path102 = __toESM(require("node:path"), 1);
|
|
15909
16040
|
v8 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
15910
16041
|
init_ffmpeg_source_build();
|
|
15911
16042
|
init_genrule_library_builds();
|
|
@@ -15920,7 +16051,7 @@ var init_genrule_archives = __esm({
|
|
|
15920
16051
|
init_swiftRuntimeProductContract();
|
|
15921
16052
|
init_swiftTargetContract();
|
|
15922
16053
|
BUILDERS = [ffmpegBuilder, ...GENRULE_LIBRARY_BUILDERS];
|
|
15923
|
-
cacheDir4 =
|
|
16054
|
+
cacheDir4 = import_node_path102.default.join(cacheDir(), "genrule-archives");
|
|
15924
16055
|
}
|
|
15925
16056
|
});
|
|
15926
16057
|
|
|
@@ -15933,15 +16064,15 @@ var init_native_slices = __esm({
|
|
|
15933
16064
|
});
|
|
15934
16065
|
|
|
15935
16066
|
// src/native-swift-slices.ts
|
|
15936
|
-
var import_node_child_process49, import_node_crypto60,
|
|
16067
|
+
var import_node_child_process49, import_node_crypto60, import_node_fs100, import_node_os22, import_node_path103;
|
|
15937
16068
|
var init_native_swift_slices = __esm({
|
|
15938
16069
|
"src/native-swift-slices.ts"() {
|
|
15939
16070
|
"use strict";
|
|
15940
16071
|
import_node_child_process49 = require("node:child_process");
|
|
15941
16072
|
import_node_crypto60 = require("node:crypto");
|
|
15942
|
-
|
|
16073
|
+
import_node_fs100 = __toESM(require("node:fs"), 1);
|
|
15943
16074
|
import_node_os22 = __toESM(require("node:os"), 1);
|
|
15944
|
-
|
|
16075
|
+
import_node_path103 = __toESM(require("node:path"), 1);
|
|
15945
16076
|
init_native_prebuilt();
|
|
15946
16077
|
init_swift_compile();
|
|
15947
16078
|
init_swift_toolchain();
|
|
@@ -15950,21 +16081,21 @@ var init_native_swift_slices = __esm({
|
|
|
15950
16081
|
});
|
|
15951
16082
|
|
|
15952
16083
|
// src/output-lock-stdio.ts
|
|
15953
|
-
var
|
|
16084
|
+
var import_node_fs101;
|
|
15954
16085
|
var init_output_lock_stdio = __esm({
|
|
15955
16086
|
"src/output-lock-stdio.ts"() {
|
|
15956
16087
|
"use strict";
|
|
15957
|
-
|
|
16088
|
+
import_node_fs101 = require("node:fs");
|
|
15958
16089
|
}
|
|
15959
16090
|
});
|
|
15960
16091
|
|
|
15961
16092
|
// src/swift-cxx-declarations.ts
|
|
15962
|
-
var
|
|
16093
|
+
var import_node_fs102, import_node_path104, import_promises12, import_stream_json;
|
|
15963
16094
|
var init_swift_cxx_declarations = __esm({
|
|
15964
16095
|
"src/swift-cxx-declarations.ts"() {
|
|
15965
16096
|
"use strict";
|
|
15966
|
-
|
|
15967
|
-
|
|
16097
|
+
import_node_fs102 = __toESM(require("node:fs"), 1);
|
|
16098
|
+
import_node_path104 = __toESM(require("node:path"), 1);
|
|
15968
16099
|
import_promises12 = require("node:stream/promises");
|
|
15969
16100
|
import_stream_json = __toESM(require("peachsim/vendor/stream-json"), 1);
|
|
15970
16101
|
}
|
|
@@ -15978,13 +16109,13 @@ var init_swift_cxx_deps = __esm({
|
|
|
15978
16109
|
});
|
|
15979
16110
|
|
|
15980
16111
|
// src/swift-cxx-standin.ts
|
|
15981
|
-
var import_node_child_process50,
|
|
16112
|
+
var import_node_child_process50, import_node_fs103, import_node_path105;
|
|
15982
16113
|
var init_swift_cxx_standin = __esm({
|
|
15983
16114
|
"src/swift-cxx-standin.ts"() {
|
|
15984
16115
|
"use strict";
|
|
15985
16116
|
import_node_child_process50 = require("node:child_process");
|
|
15986
|
-
|
|
15987
|
-
|
|
16117
|
+
import_node_fs103 = __toESM(require("node:fs"), 1);
|
|
16118
|
+
import_node_path105 = __toESM(require("node:path"), 1);
|
|
15988
16119
|
init_swift_cxx_declarations();
|
|
15989
16120
|
init_swift_cxx_deps();
|
|
15990
16121
|
init_swift_objc_standin();
|
|
@@ -16002,14 +16133,14 @@ var init_swift_standin_builtin_behavior = __esm({
|
|
|
16002
16133
|
});
|
|
16003
16134
|
|
|
16004
16135
|
// src/swift-standins.ts
|
|
16005
|
-
var import_node_child_process51, import_node_crypto61,
|
|
16136
|
+
var import_node_child_process51, import_node_crypto61, import_node_fs104, import_node_path106, cacheDir5;
|
|
16006
16137
|
var init_swift_standins = __esm({
|
|
16007
16138
|
"src/swift-standins.ts"() {
|
|
16008
16139
|
"use strict";
|
|
16009
16140
|
import_node_child_process51 = require("node:child_process");
|
|
16010
16141
|
import_node_crypto61 = require("node:crypto");
|
|
16011
|
-
|
|
16012
|
-
|
|
16142
|
+
import_node_fs104 = __toESM(require("node:fs"), 1);
|
|
16143
|
+
import_node_path106 = __toESM(require("node:path"), 1);
|
|
16013
16144
|
init_forked_script_contract();
|
|
16014
16145
|
init_genrule_archives();
|
|
16015
16146
|
init_home_paths();
|
|
@@ -16037,19 +16168,19 @@ var init_swift_standins = __esm({
|
|
|
16037
16168
|
init_swift_xcframework();
|
|
16038
16169
|
init_swiftContract();
|
|
16039
16170
|
init_swiftTargetContract();
|
|
16040
|
-
cacheDir5 =
|
|
16171
|
+
cacheDir5 = import_node_path106.default.join(cacheDir(), "swift-standins");
|
|
16041
16172
|
}
|
|
16042
16173
|
});
|
|
16043
16174
|
|
|
16044
16175
|
// src/swift-objc-compile.ts
|
|
16045
|
-
var import_node_child_process52, import_node_crypto62,
|
|
16176
|
+
var import_node_child_process52, import_node_crypto62, import_node_fs105, import_node_path107;
|
|
16046
16177
|
var init_swift_objc_compile = __esm({
|
|
16047
16178
|
"src/swift-objc-compile.ts"() {
|
|
16048
16179
|
"use strict";
|
|
16049
16180
|
import_node_child_process52 = require("node:child_process");
|
|
16050
16181
|
import_node_crypto62 = require("node:crypto");
|
|
16051
|
-
|
|
16052
|
-
|
|
16182
|
+
import_node_fs105 = __toESM(require("node:fs"), 1);
|
|
16183
|
+
import_node_path107 = __toESM(require("node:path"), 1);
|
|
16053
16184
|
init_mapLimit();
|
|
16054
16185
|
init_home_paths();
|
|
16055
16186
|
init_is_record();
|
|
@@ -16072,13 +16203,13 @@ var init_swift_objc_compile = __esm({
|
|
|
16072
16203
|
});
|
|
16073
16204
|
|
|
16074
16205
|
// src/react-native-bridge-modules.ts
|
|
16075
|
-
var
|
|
16206
|
+
var import_node_fs106, import_node_module13, import_node_path108;
|
|
16076
16207
|
var init_react_native_bridge_modules = __esm({
|
|
16077
16208
|
"src/react-native-bridge-modules.ts"() {
|
|
16078
16209
|
"use strict";
|
|
16079
|
-
|
|
16210
|
+
import_node_fs106 = __toESM(require("node:fs"), 1);
|
|
16080
16211
|
import_node_module13 = require("node:module");
|
|
16081
|
-
|
|
16212
|
+
import_node_path108 = __toESM(require("node:path"), 1);
|
|
16082
16213
|
init_answeredNativePackages();
|
|
16083
16214
|
init_swift_compile();
|
|
16084
16215
|
init_swift_objc_compile();
|
|
@@ -16088,14 +16219,14 @@ var init_react_native_bridge_modules = __esm({
|
|
|
16088
16219
|
});
|
|
16089
16220
|
|
|
16090
16221
|
// src/react-native-core.ts
|
|
16091
|
-
var import_node_crypto63,
|
|
16222
|
+
var import_node_crypto63, import_node_fs107, import_node_module14, import_node_path109, import_node_util11, recipe;
|
|
16092
16223
|
var init_react_native_core = __esm({
|
|
16093
16224
|
"src/react-native-core.ts"() {
|
|
16094
16225
|
"use strict";
|
|
16095
16226
|
import_node_crypto63 = require("node:crypto");
|
|
16096
|
-
|
|
16227
|
+
import_node_fs107 = __toESM(require("node:fs"), 1);
|
|
16097
16228
|
import_node_module14 = require("node:module");
|
|
16098
|
-
|
|
16229
|
+
import_node_path109 = __toESM(require("node:path"), 1);
|
|
16099
16230
|
import_node_util11 = require("node:util");
|
|
16100
16231
|
init_home_paths();
|
|
16101
16232
|
init_is_record();
|
|
@@ -16111,14 +16242,14 @@ var init_react_native_core = __esm({
|
|
|
16111
16242
|
});
|
|
16112
16243
|
|
|
16113
16244
|
// src/swift-clang-type-ownership.ts
|
|
16114
|
-
var import_node_child_process53, import_node_crypto64,
|
|
16245
|
+
var import_node_child_process53, import_node_crypto64, import_node_fs108, import_node_path110;
|
|
16115
16246
|
var init_swift_clang_type_ownership = __esm({
|
|
16116
16247
|
"src/swift-clang-type-ownership.ts"() {
|
|
16117
16248
|
"use strict";
|
|
16118
16249
|
import_node_child_process53 = require("node:child_process");
|
|
16119
16250
|
import_node_crypto64 = require("node:crypto");
|
|
16120
|
-
|
|
16121
|
-
|
|
16251
|
+
import_node_fs108 = __toESM(require("node:fs"), 1);
|
|
16252
|
+
import_node_path110 = __toESM(require("node:path"), 1);
|
|
16122
16253
|
init_is_record();
|
|
16123
16254
|
init_swift_compile();
|
|
16124
16255
|
init_swift_distribution();
|
|
@@ -16191,10 +16322,10 @@ var require_path_parse = __commonJS({
|
|
|
16191
16322
|
code === 45 || /* - */
|
|
16192
16323
|
code === 46;
|
|
16193
16324
|
}
|
|
16194
|
-
function State(
|
|
16325
|
+
function State(path112) {
|
|
16195
16326
|
this.index = 0;
|
|
16196
|
-
this.path =
|
|
16197
|
-
this.max =
|
|
16327
|
+
this.path = path112;
|
|
16328
|
+
this.max = path112.length;
|
|
16198
16329
|
this.result = [];
|
|
16199
16330
|
this.param = 0;
|
|
16200
16331
|
this.err = "";
|
|
@@ -16568,7 +16699,7 @@ var require_a2c = __commonJS({
|
|
|
16568
16699
|
}
|
|
16569
16700
|
return sign * Math.acos(dot);
|
|
16570
16701
|
}
|
|
16571
|
-
function get_arc_center(x1, y1, x2, y2, fa,
|
|
16702
|
+
function get_arc_center(x1, y1, x2, y2, fa, fs83, rx, ry, sin_phi, cos_phi) {
|
|
16572
16703
|
var x1p = cos_phi * (x1 - x2) / 2 + sin_phi * (y1 - y2) / 2;
|
|
16573
16704
|
var y1p = -sin_phi * (x1 - x2) / 2 + cos_phi * (y1 - y2) / 2;
|
|
16574
16705
|
var rx_sq = rx * rx;
|
|
@@ -16580,7 +16711,7 @@ var require_a2c = __commonJS({
|
|
|
16580
16711
|
radicant = 0;
|
|
16581
16712
|
}
|
|
16582
16713
|
radicant /= rx_sq * y1p_sq + ry_sq * x1p_sq;
|
|
16583
|
-
radicant = Math.sqrt(radicant) * (fa ===
|
|
16714
|
+
radicant = Math.sqrt(radicant) * (fa === fs83 ? -1 : 1);
|
|
16584
16715
|
var cxp = radicant * rx / ry * y1p;
|
|
16585
16716
|
var cyp = radicant * -ry / rx * x1p;
|
|
16586
16717
|
var cx = cos_phi * cxp - sin_phi * cyp + (x1 + x2) / 2;
|
|
@@ -16591,10 +16722,10 @@ var require_a2c = __commonJS({
|
|
|
16591
16722
|
var v2y = (-y1p - cyp) / ry;
|
|
16592
16723
|
var theta1 = unit_vector_angle(1, 0, v1x, v1y);
|
|
16593
16724
|
var delta_theta = unit_vector_angle(v1x, v1y, v2x, v2y);
|
|
16594
|
-
if (
|
|
16725
|
+
if (fs83 === 0 && delta_theta > 0) {
|
|
16595
16726
|
delta_theta -= TAU;
|
|
16596
16727
|
}
|
|
16597
|
-
if (
|
|
16728
|
+
if (fs83 === 1 && delta_theta < 0) {
|
|
16598
16729
|
delta_theta += TAU;
|
|
16599
16730
|
}
|
|
16600
16731
|
return [cx, cy, theta1, delta_theta];
|
|
@@ -16607,7 +16738,7 @@ var require_a2c = __commonJS({
|
|
|
16607
16738
|
var y2 = Math.sin(theta1 + delta_theta);
|
|
16608
16739
|
return [x1, y1, x1 - y1 * alpha, y1 + x1 * alpha, x2 + y2 * alpha, y2 - x2 * alpha, x2, y2];
|
|
16609
16740
|
}
|
|
16610
|
-
module2.exports = function a2c(x1, y1, x2, y2, fa,
|
|
16741
|
+
module2.exports = function a2c(x1, y1, x2, y2, fa, fs83, rx, ry, phi) {
|
|
16611
16742
|
var sin_phi = Math.sin(phi * TAU / 360);
|
|
16612
16743
|
var cos_phi = Math.cos(phi * TAU / 360);
|
|
16613
16744
|
var x1p = cos_phi * (x1 - x2) / 2 + sin_phi * (y1 - y2) / 2;
|
|
@@ -16625,7 +16756,7 @@ var require_a2c = __commonJS({
|
|
|
16625
16756
|
rx *= Math.sqrt(lambda);
|
|
16626
16757
|
ry *= Math.sqrt(lambda);
|
|
16627
16758
|
}
|
|
16628
|
-
var cc = get_arc_center(x1, y1, x2, y2, fa,
|
|
16759
|
+
var cc = get_arc_center(x1, y1, x2, y2, fa, fs83, rx, ry, sin_phi, cos_phi);
|
|
16629
16760
|
var result = [];
|
|
16630
16761
|
var theta1 = cc[2];
|
|
16631
16762
|
var delta_theta = cc[3];
|
|
@@ -16714,11 +16845,11 @@ var require_svgpath = __commonJS({
|
|
|
16714
16845
|
var matrix = require_matrix();
|
|
16715
16846
|
var a2c = require_a2c();
|
|
16716
16847
|
var ellipse = require_ellipse();
|
|
16717
|
-
function SvgPath(
|
|
16848
|
+
function SvgPath(path112) {
|
|
16718
16849
|
if (!(this instanceof SvgPath)) {
|
|
16719
|
-
return new SvgPath(
|
|
16850
|
+
return new SvgPath(path112);
|
|
16720
16851
|
}
|
|
16721
|
-
var pstate = pathParse(
|
|
16852
|
+
var pstate = pathParse(path112);
|
|
16722
16853
|
this.segments = pstate.segments;
|
|
16723
16854
|
this.err = pstate.err;
|
|
16724
16855
|
this.__stack = [];
|
|
@@ -17174,24 +17305,24 @@ var init_stringCatalog = __esm({
|
|
|
17174
17305
|
});
|
|
17175
17306
|
|
|
17176
17307
|
// src/core-data-entity-classes.ts
|
|
17177
|
-
var
|
|
17308
|
+
var import_node_fs109, import_node_path111;
|
|
17178
17309
|
var init_core_data_entity_classes = __esm({
|
|
17179
17310
|
"src/core-data-entity-classes.ts"() {
|
|
17180
17311
|
"use strict";
|
|
17181
|
-
|
|
17182
|
-
|
|
17312
|
+
import_node_fs109 = require("node:fs");
|
|
17313
|
+
import_node_path111 = __toESM(require("node:path"), 1);
|
|
17183
17314
|
init_plist();
|
|
17184
17315
|
}
|
|
17185
17316
|
});
|
|
17186
17317
|
|
|
17187
17318
|
// src/core-data-model.ts
|
|
17188
|
-
var import_node_crypto65,
|
|
17319
|
+
var import_node_crypto65, import_node_fs110, import_node_path112, uid, NULL;
|
|
17189
17320
|
var init_core_data_model = __esm({
|
|
17190
17321
|
"src/core-data-model.ts"() {
|
|
17191
17322
|
"use strict";
|
|
17192
17323
|
import_node_crypto65 = require("node:crypto");
|
|
17193
|
-
|
|
17194
|
-
|
|
17324
|
+
import_node_fs110 = require("node:fs");
|
|
17325
|
+
import_node_path112 = __toESM(require("node:path"), 1);
|
|
17195
17326
|
init_core_data_entity_classes();
|
|
17196
17327
|
init_plist_bytes();
|
|
17197
17328
|
uid = (index) => ({ CF$UID: index });
|
|
@@ -19299,14 +19430,14 @@ var init_swift_catalog_png = __esm({
|
|
|
19299
19430
|
});
|
|
19300
19431
|
|
|
19301
19432
|
// src/swift-cxx-reachable.ts
|
|
19302
|
-
var import_node_child_process54, import_node_crypto66,
|
|
19433
|
+
var import_node_child_process54, import_node_crypto66, import_node_fs111, import_node_path113;
|
|
19303
19434
|
var init_swift_cxx_reachable = __esm({
|
|
19304
19435
|
"src/swift-cxx-reachable.ts"() {
|
|
19305
19436
|
"use strict";
|
|
19306
19437
|
import_node_child_process54 = require("node:child_process");
|
|
19307
19438
|
import_node_crypto66 = require("node:crypto");
|
|
19308
|
-
|
|
19309
|
-
|
|
19439
|
+
import_node_fs111 = __toESM(require("node:fs"), 1);
|
|
19440
|
+
import_node_path113 = __toESM(require("node:path"), 1);
|
|
19310
19441
|
init_is_record();
|
|
19311
19442
|
init_swift_cxx_deps();
|
|
19312
19443
|
init_swift_objc_compile();
|
|
@@ -19319,14 +19450,14 @@ var init_swift_cxx_reachable = __esm({
|
|
|
19319
19450
|
});
|
|
19320
19451
|
|
|
19321
19452
|
// src/swift-pdf-raster.ts
|
|
19322
|
-
var import_node_child_process55,
|
|
19453
|
+
var import_node_child_process55, import_node_fs112, import_node_os23, import_node_path114;
|
|
19323
19454
|
var init_swift_pdf_raster = __esm({
|
|
19324
19455
|
"src/swift-pdf-raster.ts"() {
|
|
19325
19456
|
"use strict";
|
|
19326
19457
|
import_node_child_process55 = require("node:child_process");
|
|
19327
|
-
|
|
19458
|
+
import_node_fs112 = __toESM(require("node:fs"), 1);
|
|
19328
19459
|
import_node_os23 = __toESM(require("node:os"), 1);
|
|
19329
|
-
|
|
19460
|
+
import_node_path114 = __toESM(require("node:path"), 1);
|
|
19330
19461
|
init_internal_child_contract();
|
|
19331
19462
|
init_self_invocation();
|
|
19332
19463
|
init_home_paths();
|
|
@@ -19345,16 +19476,16 @@ var init_swift_standin_config = __esm({
|
|
|
19345
19476
|
});
|
|
19346
19477
|
|
|
19347
19478
|
// src/swift-host.ts
|
|
19348
|
-
var import_node_async_hooks2, import_node_child_process56, import_node_crypto67,
|
|
19479
|
+
var import_node_async_hooks2, import_node_child_process56, import_node_crypto67, import_node_fs113, import_node_os24, import_node_path115, projectScope, layoutScope, IOS_SDK_FRAMEWORKS;
|
|
19349
19480
|
var init_swift_host = __esm({
|
|
19350
19481
|
"src/swift-host.ts"() {
|
|
19351
19482
|
"use strict";
|
|
19352
19483
|
import_node_async_hooks2 = require("node:async_hooks");
|
|
19353
19484
|
import_node_child_process56 = require("node:child_process");
|
|
19354
19485
|
import_node_crypto67 = require("node:crypto");
|
|
19355
|
-
|
|
19486
|
+
import_node_fs113 = __toESM(require("node:fs"), 1);
|
|
19356
19487
|
import_node_os24 = __toESM(require("node:os"), 1);
|
|
19357
|
-
|
|
19488
|
+
import_node_path115 = __toESM(require("node:path"), 1);
|
|
19358
19489
|
init_nativeDyldTableContract();
|
|
19359
19490
|
init_nativeSdkBindingContract();
|
|
19360
19491
|
init_bundleAssets();
|
|
@@ -19401,13 +19532,13 @@ var init_swift_host = __esm({
|
|
|
19401
19532
|
});
|
|
19402
19533
|
|
|
19403
19534
|
// src/installed-native-libraries.ts
|
|
19404
|
-
var
|
|
19535
|
+
var import_node_fs114, import_node_module15, import_node_path116;
|
|
19405
19536
|
var init_installed_native_libraries = __esm({
|
|
19406
19537
|
"src/installed-native-libraries.ts"() {
|
|
19407
19538
|
"use strict";
|
|
19408
|
-
|
|
19539
|
+
import_node_fs114 = __toESM(require("node:fs"), 1);
|
|
19409
19540
|
import_node_module15 = require("node:module");
|
|
19410
|
-
|
|
19541
|
+
import_node_path116 = __toESM(require("node:path"), 1);
|
|
19411
19542
|
init_is_record();
|
|
19412
19543
|
init_native_static_libraries();
|
|
19413
19544
|
init_swift_source_file();
|
|
@@ -19417,15 +19548,15 @@ var init_installed_native_libraries = __esm({
|
|
|
19417
19548
|
});
|
|
19418
19549
|
|
|
19419
19550
|
// src/turbo-codegen-intake.ts
|
|
19420
|
-
var import_node_child_process57, import_node_crypto68,
|
|
19551
|
+
var import_node_child_process57, import_node_crypto68, import_node_fs115, import_node_module16, import_node_path117, import_node_util12, run5;
|
|
19421
19552
|
var init_turbo_codegen_intake = __esm({
|
|
19422
19553
|
"src/turbo-codegen-intake.ts"() {
|
|
19423
19554
|
"use strict";
|
|
19424
19555
|
import_node_child_process57 = require("node:child_process");
|
|
19425
19556
|
import_node_crypto68 = require("node:crypto");
|
|
19426
|
-
|
|
19557
|
+
import_node_fs115 = __toESM(require("node:fs"), 1);
|
|
19427
19558
|
import_node_module16 = require("node:module");
|
|
19428
|
-
|
|
19559
|
+
import_node_path117 = __toESM(require("node:path"), 1);
|
|
19429
19560
|
import_node_util12 = require("node:util");
|
|
19430
19561
|
init_forked_script_contract();
|
|
19431
19562
|
init_is_record();
|
|
@@ -19436,13 +19567,13 @@ var init_turbo_codegen_intake = __esm({
|
|
|
19436
19567
|
});
|
|
19437
19568
|
|
|
19438
19569
|
// src/turbo-source.ts
|
|
19439
|
-
var import_node_crypto69,
|
|
19570
|
+
var import_node_crypto69, import_node_fs116, import_node_path118;
|
|
19440
19571
|
var init_turbo_source = __esm({
|
|
19441
19572
|
"src/turbo-source.ts"() {
|
|
19442
19573
|
"use strict";
|
|
19443
19574
|
import_node_crypto69 = require("node:crypto");
|
|
19444
|
-
|
|
19445
|
-
|
|
19575
|
+
import_node_fs116 = __toESM(require("node:fs"), 1);
|
|
19576
|
+
import_node_path118 = __toESM(require("node:path"), 1);
|
|
19446
19577
|
init_cocoapods_trunk();
|
|
19447
19578
|
init_installed_native_libraries();
|
|
19448
19579
|
init_pod_sources();
|
|
@@ -19460,17 +19591,17 @@ var init_turbo_source = __esm({
|
|
|
19460
19591
|
});
|
|
19461
19592
|
|
|
19462
19593
|
// src/expo-swift-host.ts
|
|
19463
|
-
var import_node_async_hooks3, import_node_child_process58, import_node_crypto70,
|
|
19594
|
+
var import_node_async_hooks3, import_node_child_process58, import_node_crypto70, import_node_fs117, import_node_module17, import_node_os25, import_node_path119, import_node_url5, import_node_util13, run6, scriptEnv, traceStore, openPreparations;
|
|
19464
19595
|
var init_expo_swift_host = __esm({
|
|
19465
19596
|
"src/expo-swift-host.ts"() {
|
|
19466
19597
|
"use strict";
|
|
19467
19598
|
import_node_async_hooks3 = require("node:async_hooks");
|
|
19468
19599
|
import_node_child_process58 = require("node:child_process");
|
|
19469
19600
|
import_node_crypto70 = require("node:crypto");
|
|
19470
|
-
|
|
19601
|
+
import_node_fs117 = __toESM(require("node:fs"), 1);
|
|
19471
19602
|
import_node_module17 = require("node:module");
|
|
19472
19603
|
import_node_os25 = __toESM(require("node:os"), 1);
|
|
19473
|
-
|
|
19604
|
+
import_node_path119 = __toESM(require("node:path"), 1);
|
|
19474
19605
|
import_node_url5 = require("node:url");
|
|
19475
19606
|
import_node_util13 = require("node:util");
|
|
19476
19607
|
init_expo_eager_seam_contract();
|
|
@@ -19488,7 +19619,6 @@ var init_expo_swift_host = __esm({
|
|
|
19488
19619
|
init_native_firebase_config();
|
|
19489
19620
|
init_native_preparation();
|
|
19490
19621
|
init_native_static_libraries();
|
|
19491
|
-
init_nativePreparationContract();
|
|
19492
19622
|
init_react_native_bridge_modules();
|
|
19493
19623
|
init_react_native_core();
|
|
19494
19624
|
init_swift_binary_modules();
|
|
@@ -19506,7 +19636,7 @@ var init_expo_swift_host = __esm({
|
|
|
19506
19636
|
run6 = (0, import_node_util13.promisify)(import_node_child_process58.execFile);
|
|
19507
19637
|
scriptEnv = { ...process.env, [PEACH_FORKED_SCRIPT_ENV]: "1" };
|
|
19508
19638
|
traceStore = new import_node_async_hooks3.AsyncLocalStorage();
|
|
19509
|
-
openPreparations = new
|
|
19639
|
+
openPreparations = new NativePreparation();
|
|
19510
19640
|
}
|
|
19511
19641
|
});
|
|
19512
19642
|
|
|
@@ -19535,14 +19665,14 @@ function expoPodsBundleInputs(podKeys, oneSDK = false) {
|
|
|
19535
19665
|
)
|
|
19536
19666
|
};
|
|
19537
19667
|
}
|
|
19538
|
-
var import_node_child_process59,
|
|
19668
|
+
var import_node_child_process59, import_node_fs118, import_node_os26, import_node_path120, v9, sliceTargetSchema, resourceBundleSchema, sliceManifestSchema, expoAppBundleEntryUrl;
|
|
19539
19669
|
var init_native_package_slice = __esm({
|
|
19540
19670
|
"src/native-package-slice.ts"() {
|
|
19541
19671
|
"use strict";
|
|
19542
19672
|
import_node_child_process59 = require("node:child_process");
|
|
19543
|
-
|
|
19673
|
+
import_node_fs118 = __toESM(require("node:fs"), 1);
|
|
19544
19674
|
import_node_os26 = __toESM(require("node:os"), 1);
|
|
19545
|
-
|
|
19675
|
+
import_node_path120 = __toESM(require("node:path"), 1);
|
|
19546
19676
|
v9 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
19547
19677
|
init_expo_swift_host();
|
|
19548
19678
|
init_expoSwiftContract();
|
|
@@ -19619,10 +19749,10 @@ async function expoPodPackages(appRoot) {
|
|
|
19619
19749
|
const answered = peachAnsweredNativePackages();
|
|
19620
19750
|
return (await expoAutolinkedPackages(appRoot)).flatMap((pod) => {
|
|
19621
19751
|
const [swiftModule] = pod.swiftModuleNames;
|
|
19622
|
-
if (swiftModule === void 0 || pod.swiftModuleNames.length !== 1 || !pod.hasRegistrations || answered.has(pod.name) || !pod.root.split(
|
|
19752
|
+
if (swiftModule === void 0 || pod.swiftModuleNames.length !== 1 || !pod.hasRegistrations || answered.has(pod.name) || !pod.root.split(import_node_path121.default.sep).includes("node_modules"))
|
|
19623
19753
|
return [];
|
|
19624
19754
|
const manifest = JSON.parse(
|
|
19625
|
-
|
|
19755
|
+
import_node_fs119.default.readFileSync(import_node_path121.default.join(pod.root, "package.json"), "utf8")
|
|
19626
19756
|
);
|
|
19627
19757
|
const version = isRecord(manifest) ? manifest.version : null;
|
|
19628
19758
|
if (typeof version !== "string")
|
|
@@ -19665,7 +19795,7 @@ function lookup2(url) {
|
|
|
19665
19795
|
return pending;
|
|
19666
19796
|
}
|
|
19667
19797
|
async function prebuiltExpoPods(appRoot) {
|
|
19668
|
-
const pods = await expoPodPackages(
|
|
19798
|
+
const pods = await expoPodPackages(import_node_fs119.default.realpathSync(appRoot));
|
|
19669
19799
|
if (pods.length === 0) {
|
|
19670
19800
|
console.error(`expo pod miss: no packages at ${appRoot}`);
|
|
19671
19801
|
return null;
|
|
@@ -19729,12 +19859,12 @@ async function prebuiltExpoPods(appRoot) {
|
|
|
19729
19859
|
failures: []
|
|
19730
19860
|
};
|
|
19731
19861
|
}
|
|
19732
|
-
var
|
|
19862
|
+
var import_node_fs119, import_node_path121, expoPodEntryName, expoPodEntryUrl, published;
|
|
19733
19863
|
var init_expo_pod_prebuilt = __esm({
|
|
19734
19864
|
"src/expo-pod-prebuilt.ts"() {
|
|
19735
19865
|
"use strict";
|
|
19736
|
-
|
|
19737
|
-
|
|
19866
|
+
import_node_fs119 = __toESM(require("node:fs"), 1);
|
|
19867
|
+
import_node_path121 = __toESM(require("node:path"), 1);
|
|
19738
19868
|
init_answeredNativePackages();
|
|
19739
19869
|
init_expo_autolinking();
|
|
19740
19870
|
init_expo_native_compiler_digest();
|
|
@@ -22332,11 +22462,11 @@ function missing(error) {
|
|
|
22332
22462
|
}
|
|
22333
22463
|
async function answerAsync(step) {
|
|
22334
22464
|
try {
|
|
22335
|
-
if (step.type === "realpath") return await
|
|
22336
|
-
if (step.type === "read") return await
|
|
22465
|
+
if (step.type === "realpath") return await import_node_fs120.default.promises.realpath(step.path);
|
|
22466
|
+
if (step.type === "read") return await import_node_fs120.default.promises.readFile(step.path, "utf8");
|
|
22337
22467
|
if (step.type === "isDirectory")
|
|
22338
|
-
return (await
|
|
22339
|
-
return (await
|
|
22468
|
+
return (await import_node_fs120.default.promises.stat(step.path)).isDirectory();
|
|
22469
|
+
return (await import_node_fs120.default.promises.readdir(step.path, { withFileTypes: true })).map(
|
|
22340
22470
|
(entry) => ({
|
|
22341
22471
|
name: entry.name,
|
|
22342
22472
|
directory: entry.isDirectory(),
|
|
@@ -22369,7 +22499,7 @@ function* rubyFiles(directory, seen, iosRoot = false) {
|
|
|
22369
22499
|
const files = [];
|
|
22370
22500
|
for (const entry of entries.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
22371
22501
|
if (iosRoot && (entry.name === "Pods" || entry.name === "build")) continue;
|
|
22372
|
-
const target =
|
|
22502
|
+
const target = import_node_path122.default.join(directory, entry.name);
|
|
22373
22503
|
let isDirectory = entry.directory;
|
|
22374
22504
|
if (entry.symbolicLink)
|
|
22375
22505
|
isDirectory = (yield { type: "isDirectory", path: target }) === true;
|
|
@@ -22382,7 +22512,7 @@ function* nativeBuildOptionsWalk(projectRoot, versions, environment) {
|
|
|
22382
22512
|
let sensorOptions = {};
|
|
22383
22513
|
const sensors = versions["expo-sensors"];
|
|
22384
22514
|
if (sensors && resolveCompatVersionRange([">=58.0.4 <59.0.0"], sensors).status === "matched") {
|
|
22385
|
-
const file =
|
|
22515
|
+
const file = import_node_path122.default.join(projectRoot, "ios", "Podfile.properties.json");
|
|
22386
22516
|
const source = yield { type: "read", path: file };
|
|
22387
22517
|
if (source !== null && typeof source !== "string")
|
|
22388
22518
|
throw new Error(`cannot inspect ${file}`);
|
|
@@ -22398,8 +22528,8 @@ function* nativeBuildOptionsWalk(projectRoot, versions, environment) {
|
|
|
22398
22528
|
if (!needsRiveOptions(versions)) return sensorOptions;
|
|
22399
22529
|
if (environment.USE_RIVE_LEGACY === "1" || environment.USE_RIVE_LEGACY === "true")
|
|
22400
22530
|
return { ...sensorOptions, [RIVE_PACKAGE]: { USE_RIVE_LEGACY: true } };
|
|
22401
|
-
const ios =
|
|
22402
|
-
const podfile =
|
|
22531
|
+
const ios = import_node_path122.default.join(projectRoot, "ios");
|
|
22532
|
+
const podfile = import_node_path122.default.join(ios, "Podfile");
|
|
22403
22533
|
const files = [podfile, ...yield* rubyFiles(ios, /* @__PURE__ */ new Set(), true)];
|
|
22404
22534
|
let value = false;
|
|
22405
22535
|
let assigned = false;
|
|
@@ -22427,12 +22557,12 @@ async function readInstalledNativeBuildOptionsAsync(projectRoot, versions, envir
|
|
|
22427
22557
|
step = walk2.next(await answerAsync(step.value));
|
|
22428
22558
|
}
|
|
22429
22559
|
}
|
|
22430
|
-
var
|
|
22560
|
+
var import_node_fs120, import_node_path122, RIVE_PACKAGE, RIVE_05;
|
|
22431
22561
|
var init_installed_native_build_options = __esm({
|
|
22432
22562
|
"src/installed-native-build-options.ts"() {
|
|
22433
22563
|
"use strict";
|
|
22434
|
-
|
|
22435
|
-
|
|
22564
|
+
import_node_fs120 = __toESM(require("node:fs"), 1);
|
|
22565
|
+
import_node_path122 = __toESM(require("node:path"), 1);
|
|
22436
22566
|
init_version_range();
|
|
22437
22567
|
RIVE_PACKAGE = "@rive-app/react-native";
|
|
22438
22568
|
RIVE_05 = [">=0.5.0 <0.6.0"];
|
|
@@ -22898,24 +23028,24 @@ var init_dev_bundle_resolution = __esm({
|
|
|
22898
23028
|
});
|
|
22899
23029
|
|
|
22900
23030
|
// src/settings-bundle.ts
|
|
22901
|
-
var import_promises13,
|
|
23031
|
+
var import_promises13, import_node_path123;
|
|
22902
23032
|
var init_settings_bundle = __esm({
|
|
22903
23033
|
"src/settings-bundle.ts"() {
|
|
22904
23034
|
"use strict";
|
|
22905
23035
|
import_promises13 = require("node:fs/promises");
|
|
22906
|
-
|
|
23036
|
+
import_node_path123 = require("node:path");
|
|
22907
23037
|
init_is_record();
|
|
22908
23038
|
init_plist();
|
|
22909
23039
|
}
|
|
22910
23040
|
});
|
|
22911
23041
|
|
|
22912
23042
|
// scripts/optional-demo-registry.ts
|
|
22913
|
-
var
|
|
23043
|
+
var import_node_fs121, import_node_path124, import_node_url6;
|
|
22914
23044
|
var init_optional_demo_registry = __esm({
|
|
22915
23045
|
"scripts/optional-demo-registry.ts"() {
|
|
22916
23046
|
"use strict";
|
|
22917
|
-
|
|
22918
|
-
|
|
23047
|
+
import_node_fs121 = require("node:fs");
|
|
23048
|
+
import_node_path124 = require("node:path");
|
|
22919
23049
|
import_node_url6 = require("node:url");
|
|
22920
23050
|
}
|
|
22921
23051
|
});
|
|
@@ -22936,8 +23066,8 @@ function pidIsAlive(pid) {
|
|
|
22936
23066
|
}
|
|
22937
23067
|
function readLockOwner() {
|
|
22938
23068
|
try {
|
|
22939
|
-
const raw = (0,
|
|
22940
|
-
const mtimeMs = (0,
|
|
23069
|
+
const raw = (0, import_node_fs122.readFileSync)(LISTENER_LOCK_PATH, "utf8");
|
|
23070
|
+
const mtimeMs = (0, import_node_fs122.statSync)(LISTENER_LOCK_PATH).mtimeMs;
|
|
22941
23071
|
const pid = Number(raw.split("-")[0]);
|
|
22942
23072
|
return { raw, pid: Number.isInteger(pid) ? pid : -1, mtimeMs };
|
|
22943
23073
|
} catch {
|
|
@@ -22950,15 +23080,15 @@ function lockIsAbandoned(owner) {
|
|
|
22950
23080
|
}
|
|
22951
23081
|
function clearLock(raw) {
|
|
22952
23082
|
try {
|
|
22953
|
-
if ((0,
|
|
22954
|
-
(0,
|
|
23083
|
+
if ((0, import_node_fs122.readFileSync)(LISTENER_LOCK_PATH, "utf8") !== raw) return;
|
|
23084
|
+
(0, import_node_fs122.unlinkSync)(LISTENER_LOCK_PATH);
|
|
22955
23085
|
} catch {
|
|
22956
23086
|
}
|
|
22957
23087
|
}
|
|
22958
23088
|
function readResult() {
|
|
22959
23089
|
try {
|
|
22960
23090
|
const parsed = JSON.parse(
|
|
22961
|
-
(0,
|
|
23091
|
+
(0, import_node_fs122.readFileSync)(LISTENER_RESULT_PATH, "utf8")
|
|
22962
23092
|
);
|
|
22963
23093
|
if (!parsed || typeof parsed.token !== "string" || typeof parsed.key !== "string")
|
|
22964
23094
|
return null;
|
|
@@ -22969,8 +23099,8 @@ function readResult() {
|
|
|
22969
23099
|
}
|
|
22970
23100
|
function publishResult(payload) {
|
|
22971
23101
|
const tmp = `${LISTENER_RESULT_PATH}.${process.pid}.tmp`;
|
|
22972
|
-
(0,
|
|
22973
|
-
(0,
|
|
23102
|
+
(0, import_node_fs122.writeFileSync)(tmp, JSON.stringify(payload));
|
|
23103
|
+
(0, import_node_fs122.renameSync)(tmp, LISTENER_RESULT_PATH);
|
|
22974
23104
|
}
|
|
22975
23105
|
function throwPublished(payload) {
|
|
22976
23106
|
throw Object.assign(new Error(payload.message || "listener scan failed"), {
|
|
@@ -23013,7 +23143,7 @@ async function withListenerLock(key, body) {
|
|
|
23013
23143
|
for (; ; ) {
|
|
23014
23144
|
let fd = null;
|
|
23015
23145
|
try {
|
|
23016
|
-
fd = (0,
|
|
23146
|
+
fd = (0, import_node_fs122.openSync)(LISTENER_LOCK_PATH, "wx");
|
|
23017
23147
|
} catch (error) {
|
|
23018
23148
|
const code = error instanceof Error && "code" in error ? error.code : "";
|
|
23019
23149
|
if (code !== "EEXIST") throw error;
|
|
@@ -23022,7 +23152,7 @@ async function withListenerLock(key, body) {
|
|
|
23022
23152
|
if (owner) clearLock(owner.raw);
|
|
23023
23153
|
else {
|
|
23024
23154
|
try {
|
|
23025
|
-
(0,
|
|
23155
|
+
(0, import_node_fs122.unlinkSync)(LISTENER_LOCK_PATH);
|
|
23026
23156
|
} catch {
|
|
23027
23157
|
}
|
|
23028
23158
|
}
|
|
@@ -23038,7 +23168,7 @@ async function withListenerLock(key, body) {
|
|
|
23038
23168
|
}
|
|
23039
23169
|
if (fd === null) continue;
|
|
23040
23170
|
try {
|
|
23041
|
-
(0,
|
|
23171
|
+
(0, import_node_fs122.writeSync)(fd, token);
|
|
23042
23172
|
try {
|
|
23043
23173
|
const value = await body();
|
|
23044
23174
|
publishResult({ token, key, ok: true, value });
|
|
@@ -23055,7 +23185,7 @@ async function withListenerLock(key, body) {
|
|
|
23055
23185
|
}
|
|
23056
23186
|
} finally {
|
|
23057
23187
|
try {
|
|
23058
|
-
(0,
|
|
23188
|
+
(0, import_node_fs122.closeSync)(fd);
|
|
23059
23189
|
} catch {
|
|
23060
23190
|
}
|
|
23061
23191
|
clearLock(token);
|
|
@@ -23337,7 +23467,7 @@ function resolveProcessCwd(pid) {
|
|
|
23337
23467
|
kickCwdFlush();
|
|
23338
23468
|
});
|
|
23339
23469
|
}
|
|
23340
|
-
var import_child_process, import_promises14, import_http, import_net,
|
|
23470
|
+
var import_child_process, import_promises14, import_http, import_net, import_node_fs122, import_node_os27, import_node_path125, LISTENER_LOCK_PATH, LISTENER_RESULT_PATH, LISTENER_LOCK_STALE_MS, LISTENER_LOCK_WAIT_MS, FALLBACK_PORTS, LISTING_TIMEOUT_MS, LISTENER_CACHE_MS, listenerCache, inflightListing, listenerHolds, cwdByPid, cwdQueue, cwdFlushing;
|
|
23341
23471
|
var init_dev_server_scanner = __esm({
|
|
23342
23472
|
"scripts/dev-server-scanner.ts"() {
|
|
23343
23473
|
"use strict";
|
|
@@ -23345,9 +23475,9 @@ var init_dev_server_scanner = __esm({
|
|
|
23345
23475
|
import_promises14 = require("fs/promises");
|
|
23346
23476
|
import_http = __toESM(require("http"), 1);
|
|
23347
23477
|
import_net = __toESM(require("net"), 1);
|
|
23348
|
-
|
|
23478
|
+
import_node_fs122 = require("node:fs");
|
|
23349
23479
|
import_node_os27 = require("node:os");
|
|
23350
|
-
|
|
23480
|
+
import_node_path125 = require("node:path");
|
|
23351
23481
|
init_kotlinDiscoveryContract();
|
|
23352
23482
|
init_swiftDiscoveryContract();
|
|
23353
23483
|
init_backend_origin();
|
|
@@ -23357,8 +23487,8 @@ var init_dev_server_scanner = __esm({
|
|
|
23357
23487
|
init_native_dev_bundle_url();
|
|
23358
23488
|
init_settings_bundle();
|
|
23359
23489
|
init_optional_demo_registry();
|
|
23360
|
-
LISTENER_LOCK_PATH = (0,
|
|
23361
|
-
LISTENER_RESULT_PATH = (0,
|
|
23490
|
+
LISTENER_LOCK_PATH = (0, import_node_path125.join)((0, import_node_os27.tmpdir)(), "peach-listener-scan.lock");
|
|
23491
|
+
LISTENER_RESULT_PATH = (0, import_node_path125.join)((0, import_node_os27.tmpdir)(), "peach-listener-scan.result");
|
|
23362
23492
|
LISTENER_LOCK_STALE_MS = 25e3;
|
|
23363
23493
|
LISTENER_LOCK_WAIT_MS = 8e3;
|
|
23364
23494
|
FALLBACK_PORTS = [
|
|
@@ -23487,12 +23617,12 @@ function cliCompanionPath() {
|
|
|
23487
23617
|
return `node/cli-${runtime_companion_default.sha256}.cjs`;
|
|
23488
23618
|
}
|
|
23489
23619
|
function verifyCliCompanion(root) {
|
|
23490
|
-
verifyCompanionFile((0,
|
|
23620
|
+
verifyCompanionFile((0, import_node_path126.join)(root, cliCompanionPath()));
|
|
23491
23621
|
}
|
|
23492
23622
|
function verifyCompanionFile(file) {
|
|
23493
23623
|
let bytes;
|
|
23494
23624
|
try {
|
|
23495
|
-
bytes = (0,
|
|
23625
|
+
bytes = (0, import_node_fs123.readFileSync)(file);
|
|
23496
23626
|
} catch (error) {
|
|
23497
23627
|
if (error instanceof Error) {
|
|
23498
23628
|
const missing2 = "code" in error && error.code === "ENOENT" ? `; run \`peach runtime install\`, which fetches the companion this CLI published${process.platform === "win32" ? ", and check Windows Security protection history if it repeats" : ""}` : "";
|
|
@@ -23512,7 +23642,7 @@ function getCliRuntime() {
|
|
|
23512
23642
|
const root = peachRuntimeRoot();
|
|
23513
23643
|
verifyCliCompanion(root);
|
|
23514
23644
|
const require2 = (0, import_node_module18.createRequire)(__sootsim_import_meta_url);
|
|
23515
|
-
const runtime = require2((0,
|
|
23645
|
+
const runtime = require2((0, import_node_path126.join)(root, cliCompanionPath()));
|
|
23516
23646
|
if (runtime.cliCompanionAbi !== CLI_COMPANION_ABI) {
|
|
23517
23647
|
throw new Error(
|
|
23518
23648
|
"Incompatible Peach runtime companion ABI; run `peach runtime install`"
|
|
@@ -23522,14 +23652,14 @@ function getCliRuntime() {
|
|
|
23522
23652
|
loaded = { root, runtime };
|
|
23523
23653
|
return runtime;
|
|
23524
23654
|
}
|
|
23525
|
-
var import_node_crypto71,
|
|
23655
|
+
var import_node_crypto71, import_node_fs123, import_node_module18, import_node_path126, CLI_COMPANION_ABI, loaded;
|
|
23526
23656
|
var init_cli_runtime = __esm({
|
|
23527
23657
|
"src/cli-runtime.ts"() {
|
|
23528
23658
|
"use strict";
|
|
23529
23659
|
import_node_crypto71 = require("node:crypto");
|
|
23530
|
-
|
|
23660
|
+
import_node_fs123 = require("node:fs");
|
|
23531
23661
|
import_node_module18 = require("node:module");
|
|
23532
|
-
|
|
23662
|
+
import_node_path126 = require("node:path");
|
|
23533
23663
|
init_src();
|
|
23534
23664
|
init_runtime_companion();
|
|
23535
23665
|
init_answeredNativePackages();
|