@pipelab/plugin-tauri 1.0.0-beta.13 → 1.0.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +170 -107
- package/dist/index.mjs +148 -85
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -6
package/dist/index.cjs
CHANGED
|
@@ -8,11 +8,11 @@ let node_os = require("node:os");
|
|
|
8
8
|
let node_url = require("node:url");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
10
10
|
node_fs = require_chunk.__toESM(node_fs);
|
|
11
|
+
let node_fs_promises = require("node:fs/promises");
|
|
12
|
+
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
11
13
|
let node_http = require("node:http");
|
|
12
14
|
node_http = require_chunk.__toESM(node_http);
|
|
13
15
|
let node_crypto = require("node:crypto");
|
|
14
|
-
let node_fs_promises = require("node:fs/promises");
|
|
15
|
-
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
16
16
|
let node_child_process = require("node:child_process");
|
|
17
17
|
let node_string_decoder = require("node:string_decoder");
|
|
18
18
|
let node_util = require("node:util");
|
|
@@ -1604,6 +1604,56 @@ function literal(literal_, message) {
|
|
|
1604
1604
|
}
|
|
1605
1605
|
};
|
|
1606
1606
|
}
|
|
1607
|
+
function looseObject(entries, message) {
|
|
1608
|
+
return {
|
|
1609
|
+
kind: "schema",
|
|
1610
|
+
type: "loose_object",
|
|
1611
|
+
reference: looseObject,
|
|
1612
|
+
expects: "Object",
|
|
1613
|
+
async: false,
|
|
1614
|
+
entries,
|
|
1615
|
+
message,
|
|
1616
|
+
_run(dataset, config2) {
|
|
1617
|
+
const input = dataset.value;
|
|
1618
|
+
if (input && typeof input === "object") {
|
|
1619
|
+
dataset.typed = true;
|
|
1620
|
+
dataset.value = {};
|
|
1621
|
+
for (const key in this.entries) {
|
|
1622
|
+
const value2 = input[key];
|
|
1623
|
+
const valueDataset = this.entries[key]._run({
|
|
1624
|
+
typed: false,
|
|
1625
|
+
value: value2
|
|
1626
|
+
}, config2);
|
|
1627
|
+
if (valueDataset.issues) {
|
|
1628
|
+
const pathItem = {
|
|
1629
|
+
type: "object",
|
|
1630
|
+
origin: "value",
|
|
1631
|
+
input,
|
|
1632
|
+
key,
|
|
1633
|
+
value: value2
|
|
1634
|
+
};
|
|
1635
|
+
for (const issue of valueDataset.issues) {
|
|
1636
|
+
if (issue.path) issue.path.unshift(pathItem);
|
|
1637
|
+
else issue.path = [pathItem];
|
|
1638
|
+
dataset.issues?.push(issue);
|
|
1639
|
+
}
|
|
1640
|
+
if (!dataset.issues) dataset.issues = valueDataset.issues;
|
|
1641
|
+
if (config2.abortEarly) {
|
|
1642
|
+
dataset.typed = false;
|
|
1643
|
+
break;
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
if (!valueDataset.typed) dataset.typed = false;
|
|
1647
|
+
if (valueDataset.value !== void 0 || key in input) dataset.value[key] = valueDataset.value;
|
|
1648
|
+
}
|
|
1649
|
+
if (!dataset.issues || !config2.abortEarly) {
|
|
1650
|
+
for (const key in input) if (_isValidObjectKey(input, key) && !(key in this.entries)) dataset.value[key] = input[key];
|
|
1651
|
+
}
|
|
1652
|
+
} else _addIssue(this, "type", dataset, config2);
|
|
1653
|
+
return dataset;
|
|
1654
|
+
}
|
|
1655
|
+
};
|
|
1656
|
+
}
|
|
1607
1657
|
function number(message) {
|
|
1608
1658
|
return {
|
|
1609
1659
|
kind: "schema",
|
|
@@ -2141,6 +2191,18 @@ settingsMigratorInternal.createMigrations({
|
|
|
2141
2191
|
})
|
|
2142
2192
|
]
|
|
2143
2193
|
});
|
|
2194
|
+
const connectionsMigratorInternal = createMigrator();
|
|
2195
|
+
const defaultConnections = connectionsMigratorInternal.createDefault({
|
|
2196
|
+
version: "1.0.0",
|
|
2197
|
+
connections: []
|
|
2198
|
+
});
|
|
2199
|
+
connectionsMigratorInternal.createMigrations({
|
|
2200
|
+
defaultValue: defaultConnections,
|
|
2201
|
+
migrations: [createMigration({
|
|
2202
|
+
version: "1.0.0",
|
|
2203
|
+
up: finalVersion
|
|
2204
|
+
})]
|
|
2205
|
+
});
|
|
2144
2206
|
const fileRepoMigratorInternal = createMigrator();
|
|
2145
2207
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
2146
2208
|
version: "2.0.0",
|
|
@@ -2302,11 +2364,51 @@ const LEGACY_ID_MAP = {
|
|
|
2302
2364
|
};
|
|
2303
2365
|
const getStrictPluginId = (pluginId) => {
|
|
2304
2366
|
if (!pluginId) return pluginId;
|
|
2305
|
-
|
|
2306
|
-
if (pluginId.startsWith("@") || pluginId.includes("/") || pluginId.startsWith("pipelab-plugin-")) return pluginId;
|
|
2307
|
-
const prefixed = `@pipelab/plugin-${pluginId}`;
|
|
2308
|
-
return LEGACY_ID_MAP[prefixed] || prefixed;
|
|
2367
|
+
return LEGACY_ID_MAP[pluginId] || pluginId;
|
|
2309
2368
|
};
|
|
2369
|
+
//#endregion
|
|
2370
|
+
//#region ../../packages/shared/src/save-location.ts
|
|
2371
|
+
const SaveLocationInternalValidator = object({
|
|
2372
|
+
id: string(),
|
|
2373
|
+
project: string(),
|
|
2374
|
+
lastModified: string(),
|
|
2375
|
+
type: literal("internal"),
|
|
2376
|
+
configName: string()
|
|
2377
|
+
});
|
|
2378
|
+
const SaveLocationValidator = union([
|
|
2379
|
+
object({
|
|
2380
|
+
id: string(),
|
|
2381
|
+
project: string(),
|
|
2382
|
+
path: string(),
|
|
2383
|
+
lastModified: string(),
|
|
2384
|
+
type: literal("external"),
|
|
2385
|
+
summary: object({
|
|
2386
|
+
plugins: array(string()),
|
|
2387
|
+
name: string(),
|
|
2388
|
+
description: string()
|
|
2389
|
+
})
|
|
2390
|
+
}),
|
|
2391
|
+
SaveLocationInternalValidator,
|
|
2392
|
+
object({
|
|
2393
|
+
id: string(),
|
|
2394
|
+
project: string(),
|
|
2395
|
+
type: literal("pipelab-cloud")
|
|
2396
|
+
})
|
|
2397
|
+
]);
|
|
2398
|
+
object({
|
|
2399
|
+
version: literal("1.0.0"),
|
|
2400
|
+
data: optional(record(string(), SaveLocationValidator), {})
|
|
2401
|
+
});
|
|
2402
|
+
const FileRepoProjectValidatorV2$1 = object({
|
|
2403
|
+
id: string(),
|
|
2404
|
+
name: string(),
|
|
2405
|
+
description: string()
|
|
2406
|
+
});
|
|
2407
|
+
object({
|
|
2408
|
+
version: literal("2.0.0"),
|
|
2409
|
+
projects: array(FileRepoProjectValidatorV2$1),
|
|
2410
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
2411
|
+
});
|
|
2310
2412
|
object({
|
|
2311
2413
|
cacheFolder: string(),
|
|
2312
2414
|
theme: union([literal("light"), literal("dark")]),
|
|
@@ -2458,6 +2560,17 @@ object({
|
|
|
2458
2560
|
})),
|
|
2459
2561
|
isInternalMigrationBannerClosed: optional(boolean(), false)
|
|
2460
2562
|
});
|
|
2563
|
+
const ConnectionValidator = looseObject({
|
|
2564
|
+
id: string(),
|
|
2565
|
+
pluginName: string(),
|
|
2566
|
+
name: string(),
|
|
2567
|
+
createdAt: string(),
|
|
2568
|
+
isDefault: boolean()
|
|
2569
|
+
});
|
|
2570
|
+
object({
|
|
2571
|
+
version: literal("1.0.0"),
|
|
2572
|
+
connections: array(ConnectionValidator)
|
|
2573
|
+
});
|
|
2461
2574
|
//#endregion
|
|
2462
2575
|
//#region ../../node_modules/tslog/dist/esm/prettyLogStyles.js
|
|
2463
2576
|
const prettyLogStyles = {
|
|
@@ -2978,7 +3091,7 @@ const useLogger = () => {
|
|
|
2978
3091
|
const OriginValidator = object({
|
|
2979
3092
|
pluginId: string(),
|
|
2980
3093
|
nodeId: string(),
|
|
2981
|
-
version: pipe(
|
|
3094
|
+
version: optional(pipe(string(), description("Pinned version of the plugin for this block. Falls back to \"latest\" when absent.")))
|
|
2982
3095
|
});
|
|
2983
3096
|
const BlockActionValidatorV1 = object({
|
|
2984
3097
|
type: literal("action"),
|
|
@@ -2991,7 +3104,7 @@ const EditorParamValidatorV3 = union([literal("simple"), literal("editor")]);
|
|
|
2991
3104
|
const BlockActionValidatorV3 = object({
|
|
2992
3105
|
type: literal("action"),
|
|
2993
3106
|
uid: string(),
|
|
2994
|
-
name: pipe(
|
|
3107
|
+
name: optional(pipe(string(), description("A custom name provided by the user"))),
|
|
2995
3108
|
disabled: optional(boolean()),
|
|
2996
3109
|
params: record(string(), object({
|
|
2997
3110
|
editor: EditorParamValidatorV3,
|
|
@@ -45314,35 +45427,6 @@ const createBooleanParam = (value, definition) => {
|
|
|
45314
45427
|
};
|
|
45315
45428
|
};
|
|
45316
45429
|
//#endregion
|
|
45317
|
-
//#region ../../packages/shared/src/save-location.ts
|
|
45318
|
-
const SaveLocationInternalValidator = object({
|
|
45319
|
-
id: string(),
|
|
45320
|
-
project: string(),
|
|
45321
|
-
lastModified: string(),
|
|
45322
|
-
type: literal("internal"),
|
|
45323
|
-
configName: string()
|
|
45324
|
-
});
|
|
45325
|
-
const SaveLocationValidator = union([
|
|
45326
|
-
object({
|
|
45327
|
-
id: string(),
|
|
45328
|
-
project: string(),
|
|
45329
|
-
path: string(),
|
|
45330
|
-
lastModified: string(),
|
|
45331
|
-
type: literal("external"),
|
|
45332
|
-
summary: object({
|
|
45333
|
-
plugins: array(string()),
|
|
45334
|
-
name: string(),
|
|
45335
|
-
description: string()
|
|
45336
|
-
})
|
|
45337
|
-
}),
|
|
45338
|
-
SaveLocationInternalValidator,
|
|
45339
|
-
object({
|
|
45340
|
-
id: string(),
|
|
45341
|
-
project: string(),
|
|
45342
|
-
type: literal("pipelab-cloud")
|
|
45343
|
-
})
|
|
45344
|
-
]);
|
|
45345
|
-
//#endregion
|
|
45346
45430
|
//#region ../../packages/shared/src/websocket.types.ts
|
|
45347
45431
|
var WebSocketError = class extends Error {
|
|
45348
45432
|
constructor(message, code, requestId) {
|
|
@@ -45359,20 +45443,6 @@ object({
|
|
|
45359
45443
|
version: literal("1.0.0"),
|
|
45360
45444
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
45361
45445
|
});
|
|
45362
|
-
const FileRepoProjectValidatorV2$1 = object({
|
|
45363
|
-
id: string(),
|
|
45364
|
-
name: string(),
|
|
45365
|
-
description: string()
|
|
45366
|
-
});
|
|
45367
|
-
object({
|
|
45368
|
-
version: literal("2.0.0"),
|
|
45369
|
-
projects: array(FileRepoProjectValidatorV2$1),
|
|
45370
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
45371
|
-
});
|
|
45372
|
-
object({
|
|
45373
|
-
version: literal("1.0.0"),
|
|
45374
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
45375
|
-
});
|
|
45376
45446
|
const FileRepoProjectValidatorV2 = object({
|
|
45377
45447
|
id: string(),
|
|
45378
45448
|
name: string(),
|
|
@@ -45384,8 +45454,26 @@ object({
|
|
|
45384
45454
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
45385
45455
|
});
|
|
45386
45456
|
//#endregion
|
|
45457
|
+
//#region ../../packages/constants/src/index.ts
|
|
45458
|
+
/**
|
|
45459
|
+
* Get the binary name for a given platform
|
|
45460
|
+
* @param name
|
|
45461
|
+
* @param platform If not provided, it will try to use process.platform (Node.js only)
|
|
45462
|
+
* @returns
|
|
45463
|
+
*/
|
|
45464
|
+
const getBinName = (name, platform) => {
|
|
45465
|
+
const p = platform || (typeof process !== "undefined" ? process.platform : "unknown");
|
|
45466
|
+
if (p === "win32") return `${name}.exe`;
|
|
45467
|
+
if (p === "darwin") return `${name}.app/Contents/MacOS/${name}`;
|
|
45468
|
+
return name;
|
|
45469
|
+
};
|
|
45470
|
+
const websocketPort = 33753;
|
|
45471
|
+
const DEFAULT_NODE_VERSION = "24.14.1";
|
|
45472
|
+
const DEFAULT_PNPM_VERSION = "10.12.0";
|
|
45473
|
+
//#endregion
|
|
45387
45474
|
//#region ../../packages/core-node/src/context.ts
|
|
45388
|
-
const
|
|
45475
|
+
const metaUrl = require("url").pathToFileURL(__filename).href;
|
|
45476
|
+
const _dirname = typeof __dirname !== "undefined" ? __dirname : metaUrl ? (0, node_path.dirname)((0, node_url.fileURLToPath)(metaUrl)) : process.cwd();
|
|
45389
45477
|
const isDev = process.env.NODE_ENV === "development";
|
|
45390
45478
|
/**
|
|
45391
45479
|
* Finds the monorepo root by looking for pnpm-workspace.yaml.
|
|
@@ -48957,21 +49045,6 @@ const useAPI = () => {
|
|
|
48957
49045
|
};
|
|
48958
49046
|
};
|
|
48959
49047
|
//#endregion
|
|
48960
|
-
//#region ../../packages/constants/src/index.ts
|
|
48961
|
-
/**
|
|
48962
|
-
* Get the binary name for a given platform
|
|
48963
|
-
* @param name
|
|
48964
|
-
* @param platform If not provided, it will try to use process.platform (Node.js only)
|
|
48965
|
-
* @returns
|
|
48966
|
-
*/
|
|
48967
|
-
const getBinName = (name, platform) => {
|
|
48968
|
-
const p = platform || (typeof process !== "undefined" ? process.platform : "unknown");
|
|
48969
|
-
if (p === "win32") return `${name}.exe`;
|
|
48970
|
-
if (p === "darwin") return `${name}.app/Contents/MacOS/${name}`;
|
|
48971
|
-
return name;
|
|
48972
|
-
};
|
|
48973
|
-
const websocketPort = 33753;
|
|
48974
|
-
//#endregion
|
|
48975
49048
|
//#region ../../packages/core-node/src/websocket-server.ts
|
|
48976
49049
|
var WebSocketServer = class {
|
|
48977
49050
|
wss = null;
|
|
@@ -59980,14 +60053,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
59980
60053
|
const assert$1 = require("assert");
|
|
59981
60054
|
const normalize = require_normalize_unicode();
|
|
59982
60055
|
const stripSlashes = require_strip_trailing_slashes();
|
|
59983
|
-
const { join: join$
|
|
60056
|
+
const { join: join$19 } = require("path");
|
|
59984
60057
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
59985
60058
|
module.exports = () => {
|
|
59986
60059
|
const queues = /* @__PURE__ */ new Map();
|
|
59987
60060
|
const reservations = /* @__PURE__ */ new Map();
|
|
59988
60061
|
const getDirs = (path$65) => {
|
|
59989
60062
|
return path$65.split("/").slice(0, -1).reduce((set, path$66) => {
|
|
59990
|
-
if (set.length) path$66 = join$
|
|
60063
|
+
if (set.length) path$66 = join$19(set[set.length - 1], path$66);
|
|
59991
60064
|
set.push(path$66 || "/");
|
|
59992
60065
|
return set;
|
|
59993
60066
|
}, []);
|
|
@@ -60041,7 +60114,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60041
60114
|
};
|
|
60042
60115
|
const reserve = (paths, fn) => {
|
|
60043
60116
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60044
|
-
return stripSlashes(join$
|
|
60117
|
+
return stripSlashes(join$19(normalize(p))).toLowerCase();
|
|
60045
60118
|
});
|
|
60046
60119
|
const dirs = new Set(paths.map((path$70) => getDirs(path$70)).reduce((a, b) => a.concat(b)));
|
|
60047
60120
|
reservations.set(fn, {
|
|
@@ -89379,14 +89452,6 @@ var import_tar = /* @__PURE__ */ require_chunk.__toESM(require_tar$1(), 1);
|
|
|
89379
89452
|
var import_yauzl = /* @__PURE__ */ require_chunk.__toESM(require_yauzl(), 1);
|
|
89380
89453
|
require_archiver();
|
|
89381
89454
|
/**
|
|
89382
|
-
* Generates a unique temporary folder.
|
|
89383
|
-
*/
|
|
89384
|
-
const generateTempFolder = async (base) => {
|
|
89385
|
-
const targetBase = base || (0, node_os.tmpdir)();
|
|
89386
|
-
await (0, node_fs_promises.mkdir)(targetBase, { recursive: true });
|
|
89387
|
-
return await (0, node_fs_promises.mkdtemp)((0, node_path.join)(await (0, node_fs_promises.realpath)(targetBase), "pipelab-"));
|
|
89388
|
-
};
|
|
89389
|
-
/**
|
|
89390
89455
|
* Extracts a .tar.gz archive.
|
|
89391
89456
|
*/
|
|
89392
89457
|
async function extractTarGz(archivePath, destinationDir) {
|
|
@@ -95886,7 +95951,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95886
95951
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95887
95952
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95888
95953
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95889
|
-
const { join: join$
|
|
95954
|
+
const { join: join$16, delimiter: delimiter$4, sep: sep$4, posix: posix$1 } = require("path");
|
|
95890
95955
|
const isWindows = process.platform === "win32";
|
|
95891
95956
|
/* istanbul ignore next */
|
|
95892
95957
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95916,7 +95981,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95916
95981
|
};
|
|
95917
95982
|
const getPathPart = (raw, cmd) => {
|
|
95918
95983
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95919
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
95984
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$16(pathPart, cmd);
|
|
95920
95985
|
};
|
|
95921
95986
|
const which = async (cmd, opt = {}) => {
|
|
95922
95987
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96665,7 +96730,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96665
96730
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96666
96731
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96667
96732
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96668
|
-
const { join: join$
|
|
96733
|
+
const { join: join$15, delimiter: delimiter$3, sep: sep$3, posix } = require("path");
|
|
96669
96734
|
const isWindows = process.platform === "win32";
|
|
96670
96735
|
/* istanbul ignore next */
|
|
96671
96736
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96695,7 +96760,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96695
96760
|
};
|
|
96696
96761
|
const getPathPart = (raw, cmd) => {
|
|
96697
96762
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96698
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96763
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$15(pathPart, cmd);
|
|
96699
96764
|
};
|
|
96700
96765
|
const which = async (cmd, opt = {}) => {
|
|
96701
96766
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98593,7 +98658,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98593
98658
|
//#endregion
|
|
98594
98659
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98595
98660
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98596
|
-
const { join: join$
|
|
98661
|
+
const { join: join$14, basename: basename$5 } = require("path");
|
|
98597
98662
|
const normalize = (pkg) => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === "string" ? normalizeString(pkg) : Array.isArray(pkg.bin) ? normalizeArray(pkg) : typeof pkg.bin === "object" ? normalizeObject(pkg) : removeBin(pkg);
|
|
98598
98663
|
const normalizeString = (pkg) => {
|
|
98599
98664
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98616,9 +98681,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98616
98681
|
const clean = {};
|
|
98617
98682
|
let hasBins = false;
|
|
98618
98683
|
Object.keys(orig).forEach((binKey) => {
|
|
98619
|
-
const base = join$
|
|
98684
|
+
const base = join$14("/", basename$5(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98620
98685
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98621
|
-
const binTarget = join$
|
|
98686
|
+
const binTarget = join$14("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98622
98687
|
if (!binTarget) return;
|
|
98623
98688
|
clean[base] = binTarget;
|
|
98624
98689
|
hasBins = true;
|
|
@@ -100691,7 +100756,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100691
100756
|
const { ERR_FS_CP_DIR_TO_NON_DIR, ERR_FS_CP_EEXIST, ERR_FS_CP_EINVAL, ERR_FS_CP_FIFO_PIPE, ERR_FS_CP_NON_DIR_TO_DIR, ERR_FS_CP_SOCKET, ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY, ERR_FS_CP_UNKNOWN, ERR_FS_EISDIR, ERR_INVALID_ARG_TYPE } = require_errors$3();
|
|
100692
100757
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100693
100758
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$7, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
100694
|
-
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$
|
|
100759
|
+
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$13, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
100695
100760
|
const { fileURLToPath: fileURLToPath$1 } = require("url");
|
|
100696
100761
|
const defaultOptions = {
|
|
100697
100762
|
dereference: false,
|
|
@@ -100900,8 +100965,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100900
100965
|
const dir = await readdir$6(src);
|
|
100901
100966
|
for (let i = 0; i < dir.length; i++) {
|
|
100902
100967
|
const item = dir[i];
|
|
100903
|
-
const srcItem = join$
|
|
100904
|
-
const destItem = join$
|
|
100968
|
+
const srcItem = join$13(src, item);
|
|
100969
|
+
const destItem = join$13(dest, item);
|
|
100905
100970
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100906
100971
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100907
100972
|
}
|
|
@@ -100965,13 +101030,13 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
100965
101030
|
//#endregion
|
|
100966
101031
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
100967
101032
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100968
|
-
const { join: join$
|
|
101033
|
+
const { join: join$12, sep: sep$1 } = require("path");
|
|
100969
101034
|
const getOptions = require_get_options();
|
|
100970
101035
|
const { mkdir: mkdir$6, mkdtemp, rm: rm$7 } = require("fs/promises");
|
|
100971
101036
|
const withTempDir = async (root, fn, opts) => {
|
|
100972
101037
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
100973
101038
|
await mkdir$6(root, { recursive: true });
|
|
100974
|
-
const target = await mkdtemp(join$
|
|
101039
|
+
const target = await mkdtemp(join$12(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
100975
101040
|
let err;
|
|
100976
101041
|
let result;
|
|
100977
101042
|
try {
|
|
@@ -100994,10 +101059,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
100994
101059
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
100995
101060
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100996
101061
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
100997
|
-
const { join: join$
|
|
101062
|
+
const { join: join$11 } = require("path");
|
|
100998
101063
|
const readdirScoped = async (dir) => {
|
|
100999
101064
|
const results = [];
|
|
101000
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
101065
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$11(dir, item))) results.push(join$11(item, scopedItem));
|
|
101001
101066
|
else results.push(item);
|
|
101002
101067
|
return results;
|
|
101003
101068
|
};
|
|
@@ -101006,7 +101071,7 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
101006
101071
|
//#endregion
|
|
101007
101072
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
101008
101073
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101009
|
-
const { dirname: dirname$8, join: join$
|
|
101074
|
+
const { dirname: dirname$8, join: join$10, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
101010
101075
|
const fs$12 = require("fs/promises");
|
|
101011
101076
|
const pathExists = async (path$57) => {
|
|
101012
101077
|
try {
|
|
@@ -101031,7 +101096,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
101031
101096
|
const sourceStat = await fs$12.lstat(source);
|
|
101032
101097
|
if (sourceStat.isDirectory()) {
|
|
101033
101098
|
const files = await fs$12.readdir(source);
|
|
101034
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
101099
|
+
await Promise.all(files.map((file) => moveFile(join$10(source, file), join$10(destination, file), options, false, symlinks)));
|
|
101035
101100
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
101036
101101
|
source,
|
|
101037
101102
|
destination
|
|
@@ -110570,9 +110635,9 @@ var require_protected = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
110570
110635
|
//#region ../../node_modules/pacote/lib/util/cache-dir.js
|
|
110571
110636
|
var require_cache_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
110572
110637
|
const { resolve: resolve$7 } = require("node:path");
|
|
110573
|
-
const { tmpdir
|
|
110638
|
+
const { tmpdir, homedir: homedir$1 } = require("node:os");
|
|
110574
110639
|
module.exports = (fakePlatform = false) => {
|
|
110575
|
-
const temp = tmpdir
|
|
110640
|
+
const temp = tmpdir();
|
|
110576
110641
|
const uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
110577
110642
|
const home = homedir$1() || resolve$7(temp, "npm-" + uidOrPid);
|
|
110578
110643
|
const platform = fakePlatform || process.platform;
|
|
@@ -112394,7 +112459,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112394
112459
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112395
112460
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112396
112461
|
const { lstatSync: lstat$1, readFileSync: readFile$5 } = require("fs");
|
|
112397
|
-
const { basename: basename$3, dirname: dirname$6, extname: extname$1, join: join$
|
|
112462
|
+
const { basename: basename$3, dirname: dirname$6, extname: extname$1, join: join$9, relative, resolve: resolve$6, sep } = require("path");
|
|
112398
112463
|
const { log } = require_lib$29();
|
|
112399
112464
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112400
112465
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112427,7 +112492,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112427
112492
|
const normalizePath = (path$49) => path$49.split("\\").join("/");
|
|
112428
112493
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112429
112494
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112430
|
-
const ignoreContent = readFile$5(join$
|
|
112495
|
+
const ignoreContent = readFile$5(join$9(root, file), { encoding: "utf8" });
|
|
112431
112496
|
result.push(ignoreContent);
|
|
112432
112497
|
break;
|
|
112433
112498
|
} catch (err) {
|
|
@@ -112436,8 +112501,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112436
112501
|
}
|
|
112437
112502
|
if (!rel) return result;
|
|
112438
112503
|
const firstRel = rel.split(sep, 1)[0];
|
|
112439
|
-
const newRoot = join$
|
|
112440
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112504
|
+
const newRoot = join$9(root, firstRel);
|
|
112505
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$9(root, rel)), result);
|
|
112441
112506
|
};
|
|
112442
112507
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112443
112508
|
constructor(tree, opts) {
|
|
@@ -112504,7 +112569,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112504
112569
|
let ignoreFiles = null;
|
|
112505
112570
|
if (this.tree.workspaces) {
|
|
112506
112571
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112507
|
-
const entryPath = join$
|
|
112572
|
+
const entryPath = join$9(this.path, entry).replace(/\\/g, "/");
|
|
112508
112573
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112509
112574
|
defaultRules,
|
|
112510
112575
|
"package.json",
|
|
@@ -112564,7 +112629,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112564
112629
|
if (file.endsWith("/*")) file += "*";
|
|
112565
112630
|
const inverse = `!${file}`;
|
|
112566
112631
|
try {
|
|
112567
|
-
const stat = lstat$1(join$
|
|
112632
|
+
const stat = lstat$1(join$9(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112568
112633
|
if (stat.isFile()) {
|
|
112569
112634
|
strict.unshift(inverse);
|
|
112570
112635
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112621,7 +112686,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112621
112686
|
walker.start();
|
|
112622
112687
|
});
|
|
112623
112688
|
const relativeFrom = relative(this.root, walker.path);
|
|
112624
|
-
for (const file of bundled) this.result.add(join$
|
|
112689
|
+
for (const file of bundled) this.result.add(join$9(relativeFrom, file).replace(/\\/g, "/"));
|
|
112625
112690
|
}
|
|
112626
112691
|
}
|
|
112627
112692
|
};
|
|
@@ -151106,8 +151171,6 @@ const sendStartupProgress = (message) => {
|
|
|
151106
151171
|
};
|
|
151107
151172
|
//#endregion
|
|
151108
151173
|
//#region ../../packages/core-node/src/utils/remote.ts
|
|
151109
|
-
const DEFAULT_NODE_VERSION = "24.14.1";
|
|
151110
|
-
const DEFAULT_PNPM_VERSION = "10.12.0";
|
|
151111
151174
|
function isPackageComplete(packageDir) {
|
|
151112
151175
|
return (0, node_fs.existsSync)((0, node_path.join)(packageDir, "package.json"));
|
|
151113
151176
|
}
|
|
@@ -151299,7 +151362,7 @@ async function ensureNodeJS(context, version = DEFAULT_NODE_VERSION) {
|
|
|
151299
151362
|
const extension = isWindows ? "zip" : "tar.gz";
|
|
151300
151363
|
const fileName = `node-v${version}-${platform === "osx" ? "darwin" : platform}-${arch}.${extension}`;
|
|
151301
151364
|
const downloadUrl = `https://nodejs.org/dist/v${version}/${fileName}`;
|
|
151302
|
-
const tempDir = await
|
|
151365
|
+
const tempDir = await context.createTempFolder("node-download-");
|
|
151303
151366
|
const archivePath = (0, node_path.join)(tempDir, fileName);
|
|
151304
151367
|
sendStartupProgress(`Downloading Node.js v${version}...`);
|
|
151305
151368
|
console.log(`Downloading Node.js from ${downloadUrl}...`);
|
|
@@ -151509,7 +151572,7 @@ async function resolveEntryPoint(packageDir, packageName) {
|
|
|
151509
151572
|
}
|
|
151510
151573
|
//#endregion
|
|
151511
151574
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
151512
|
-
const { join: join$
|
|
151575
|
+
const { join: join$7 } = node_path.default;
|
|
151513
151576
|
//#endregion
|
|
151514
151577
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151515
151578
|
const localPluginsMap = /* @__PURE__ */ new Map();
|