@pipelab/cli 2.0.0-beta.34 → 2.0.0-beta.37
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/config-BiWs1Yas.mjs +4 -0
- package/{config-DJaqZVxZ.mjs → config-NkNuuChQ.mjs} +1 -1
- package/index.mjs +181 -67
- package/package.json +1 -1
- package/{src-BiR5FNvm.mjs → src-DWDTyjEY.mjs} +2 -2
- package/src-DeMtUa5W.mjs +3 -0
- package/{src-PqA91tjF.mjs → src-WvjC0MqI.mjs} +16 -1
- package/config-CzJC4vJj.mjs +0 -4
- package/src-BiFlFfFL.mjs +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __require, s as __toESM, t as __commonJSMin } from "./chunk-M2dkpuaD.mjs";
|
|
2
|
-
import { i as savedFileMigrator, n as connectionsMigrator, r as fileRepoMigrations, t as appSettingsMigrator
|
|
2
|
+
import { E as useLogger, i as savedFileMigrator, n as connectionsMigrator, r as fileRepoMigrations, t as appSettingsMigrator } from "./src-WvjC0MqI.mjs";
|
|
3
3
|
import path, { dirname, join } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { constants } from "node:os";
|
package/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { a as __require, n as __esmMin, s as __toESM, t as __commonJSMin } from "./chunk-M2dkpuaD.mjs";
|
|
3
|
-
import { a as WebSocketError,
|
|
3
|
+
import { E as useLogger, a as WebSocketError, b as processGraph, c as transformUrl, d as SubscriptionRequiredError, i as savedFileMigrator, l as isSupabaseAvailable, m as usePlugins, n as connectionsMigrator, o as isWebSocketRequestMessage, r as fileRepoMigrations, s as isRequired, t as appSettingsMigrator, u as supabase } from "./src-WvjC0MqI.mjs";
|
|
4
4
|
import "./dist-BC_B45iu.mjs";
|
|
5
|
-
import { a as setupPipelineConfigFileByName, c as setupSettingsConfigFile, d as extractTarGz, f as extractZip, g as execa, h as require_balanced_match, i as setupConnectionsConfigFile, l as downloadFile, m as require_commonjs$8, n as deletePipelineConfigFileByPath, o as setupPipelineConfigFileByPath, p as getFolderSize, s as setupProjectsConfigFile, t as deletePipelineConfigFileByName } from "./config-
|
|
5
|
+
import { a as setupPipelineConfigFileByName, c as setupSettingsConfigFile, d as extractTarGz, f as extractZip, g as execa, h as require_balanced_match, i as setupConnectionsConfigFile, l as downloadFile, m as require_commonjs$8, n as deletePipelineConfigFileByPath, o as setupPipelineConfigFileByPath, p as getFolderSize, s as setupProjectsConfigFile, t as deletePipelineConfigFileByName } from "./config-NkNuuChQ.mjs";
|
|
6
6
|
import path, { delimiter, dirname, isAbsolute, join, normalize, resolve, sep } from "node:path";
|
|
7
7
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
8
8
|
import { homedir, platform, release } from "node:os";
|
|
@@ -38,7 +38,8 @@ const SandboxFolder = {
|
|
|
38
38
|
Config: "config",
|
|
39
39
|
Temp: "temp",
|
|
40
40
|
Cache: "cache",
|
|
41
|
-
Pnpm: "pnpm"
|
|
41
|
+
Pnpm: "pnpm",
|
|
42
|
+
Artifacts: "artifacts"
|
|
42
43
|
};
|
|
43
44
|
const DEFAULT_NODE_VERSION = "24.14.1";
|
|
44
45
|
const DEFAULT_PNPM_VERSION = "10.12.0";
|
|
@@ -134,6 +135,9 @@ var PipelabContext = class {
|
|
|
134
135
|
getBuildHistoryPath(...subpaths) {
|
|
135
136
|
return join(this.userDataPath, "build-history", ...subpaths);
|
|
136
137
|
}
|
|
138
|
+
getArtifactsPath(...subpaths) {
|
|
139
|
+
return join(this.userDataPath, "artifacts", ...subpaths);
|
|
140
|
+
}
|
|
137
141
|
getNodePath(version = DEFAULT_NODE_VERSION) {
|
|
138
142
|
const isWindows = process.platform === "win32";
|
|
139
143
|
return this.getThirdPartyPath("node", version, isWindows ? "node.exe" : "bin/node");
|
|
@@ -166,6 +170,10 @@ var PipelabContext = class {
|
|
|
166
170
|
[SandboxFolder.Pnpm]: {
|
|
167
171
|
label: "PNPM Home",
|
|
168
172
|
path: this.getPnpmPath()
|
|
173
|
+
},
|
|
174
|
+
[SandboxFolder.Artifacts]: {
|
|
175
|
+
label: "Artifacts",
|
|
176
|
+
path: this.getArtifactsPath()
|
|
169
177
|
}
|
|
170
178
|
};
|
|
171
179
|
return Object.keys(foldersRecord).map((key) => ({
|
|
@@ -4863,6 +4871,10 @@ var BuildHistoryStorage = class {
|
|
|
4863
4871
|
if (pipelineId) {
|
|
4864
4872
|
const entries = await this.loadPipelineHistory(pipelineId);
|
|
4865
4873
|
for (const entry of entries) if (entry.cachePath) cachePathsToDelete.add(entry.cachePath);
|
|
4874
|
+
await rm(this.context.getArtifactsPath(pipelineId), {
|
|
4875
|
+
recursive: true,
|
|
4876
|
+
force: true
|
|
4877
|
+
}).catch(() => {});
|
|
4866
4878
|
}
|
|
4867
4879
|
await unlink(join(this.getStoragePath(), file));
|
|
4868
4880
|
}
|
|
@@ -4888,6 +4900,10 @@ var BuildHistoryStorage = class {
|
|
|
4888
4900
|
recursive: true,
|
|
4889
4901
|
force: true
|
|
4890
4902
|
}).catch(() => {});
|
|
4903
|
+
await rm(this.context.getArtifactsPath(pipelineId), {
|
|
4904
|
+
recursive: true,
|
|
4905
|
+
force: true
|
|
4906
|
+
}).catch(() => {});
|
|
4891
4907
|
} catch (error) {
|
|
4892
4908
|
if (error.code === "ENOENT") {
|
|
4893
4909
|
this.logger.logger().warn(`No history file found for pipeline "${pipelineId}". Nothing to clear.`);
|
|
@@ -67357,7 +67373,7 @@ const checkParams = (definitionParams, elementParams) => {
|
|
|
67357
67373
|
} else console.warn("Unexpected param \"" + param + "\"");
|
|
67358
67374
|
for (const param of expected) if (isRequired(definitionParams[param])) throw new Error("Missing param \"" + param + "\"");
|
|
67359
67375
|
};
|
|
67360
|
-
const handleActionExecute = async (nodeId, pluginId, params, mainWindow, send, abortSignal, cwd, cachePath, context) => {
|
|
67376
|
+
const handleActionExecute = async (nodeId, pluginId, params, mainWindow, send, abortSignal, cwd, cachePath, context, onArtifact) => {
|
|
67361
67377
|
const ctx = context;
|
|
67362
67378
|
const { plugins } = usePlugins();
|
|
67363
67379
|
const { logger } = useLogger();
|
|
@@ -67425,7 +67441,10 @@ const handleActionExecute = async (nodeId, pluginId, params, mainWindow, send, a
|
|
|
67425
67441
|
},
|
|
67426
67442
|
browserWindow: mainWindow,
|
|
67427
67443
|
abortSignal,
|
|
67428
|
-
context: ctx
|
|
67444
|
+
context: ctx,
|
|
67445
|
+
setArtifact: (name, path) => {
|
|
67446
|
+
onArtifact?.(name, path);
|
|
67447
|
+
}
|
|
67429
67448
|
});
|
|
67430
67449
|
mainWindow?.setProgressBar(1, { mode: "normal" });
|
|
67431
67450
|
return {
|
|
@@ -67478,7 +67497,7 @@ const getFinalPlugins = () => {
|
|
|
67478
67497
|
}
|
|
67479
67498
|
return finalPlugins;
|
|
67480
67499
|
};
|
|
67481
|
-
const executeGraphWithHistory = async ({ graph, variables, projectName, projectPath, pipelineId, onNodeEnter, onNodeExit, onLog, abortSignal, mainWindow, cachePath, context }) => {
|
|
67500
|
+
const executeGraphWithHistory = async ({ graph, variables, projectName, projectPath, pipelineId, onNodeEnter, onNodeExit, onLog, onArtifact, onArtifactsFinalized, abortSignal, mainWindow, cachePath, context }) => {
|
|
67482
67501
|
const ctx = context;
|
|
67483
67502
|
const buildHistoryStorage = new BuildHistoryStorage(ctx);
|
|
67484
67503
|
const buildId = nanoid();
|
|
@@ -67494,6 +67513,11 @@ const executeGraphWithHistory = async ({ graph, variables, projectName, projectP
|
|
|
67494
67513
|
status: "running",
|
|
67495
67514
|
logs: [],
|
|
67496
67515
|
steps: [],
|
|
67516
|
+
metadata: {
|
|
67517
|
+
os: process.platform,
|
|
67518
|
+
arch: process.arch,
|
|
67519
|
+
nodeVersion: process.version
|
|
67520
|
+
},
|
|
67497
67521
|
totalSteps: graph.length,
|
|
67498
67522
|
completedSteps: 0,
|
|
67499
67523
|
failedSteps: 0,
|
|
@@ -67501,12 +67525,14 @@ const executeGraphWithHistory = async ({ graph, variables, projectName, projectP
|
|
|
67501
67525
|
createdAt: now,
|
|
67502
67526
|
updatedAt: now
|
|
67503
67527
|
};
|
|
67528
|
+
const executionSteps = initialEntry.steps;
|
|
67504
67529
|
const shouldDisableHistory = process.env.PIPELAB_DISABLE_HISTORY === "true";
|
|
67505
67530
|
if (!shouldDisableHistory) await buildHistoryStorage.save(initialEntry);
|
|
67506
67531
|
const logs = [];
|
|
67507
67532
|
const sandboxPath = await ctx.createTempFolder("pipeline-sandbox-");
|
|
67508
67533
|
const { logger } = useLogger();
|
|
67509
67534
|
let completedSteps = 0;
|
|
67535
|
+
const collectedArtifacts = [];
|
|
67510
67536
|
const { registerPlugins, plugins: registeredPlugins } = usePlugins();
|
|
67511
67537
|
const pluginIds = new Set(graph.map((node) => node.origin?.pluginId).filter(Boolean));
|
|
67512
67538
|
const missingPlugins = [];
|
|
@@ -67532,21 +67558,47 @@ const executeGraphWithHistory = async ({ graph, variables, projectName, projectP
|
|
|
67532
67558
|
id: nanoid(),
|
|
67533
67559
|
level: "info",
|
|
67534
67560
|
message: data.data.message,
|
|
67535
|
-
timestamp: data.data.time
|
|
67536
|
-
nodeUid: node?.uid
|
|
67561
|
+
timestamp: data.data.time
|
|
67537
67562
|
};
|
|
67538
67563
|
logs.push(logEntry);
|
|
67564
|
+
const step = executionSteps.find((s) => s.id === node.uid);
|
|
67565
|
+
if (step) step.logs.push(logEntry);
|
|
67539
67566
|
onLog?.(data, node);
|
|
67540
67567
|
}
|
|
67541
|
-
}, abortSignal, sandboxPath, cachePath, ctx)
|
|
67568
|
+
}, abortSignal, sandboxPath, cachePath, ctx, (name, path) => {
|
|
67569
|
+
collectedArtifacts.push({
|
|
67570
|
+
id: nanoid(),
|
|
67571
|
+
name,
|
|
67572
|
+
path,
|
|
67573
|
+
size: 0,
|
|
67574
|
+
type: "folder"
|
|
67575
|
+
});
|
|
67576
|
+
onArtifact?.(name, path, node);
|
|
67577
|
+
});
|
|
67542
67578
|
throw new Error(`Execution of node type ${node.type} not implemented in utils.ts`);
|
|
67543
67579
|
},
|
|
67544
67580
|
onNodeEnter: (node) => {
|
|
67581
|
+
executionSteps.push({
|
|
67582
|
+
id: node.uid,
|
|
67583
|
+
name: node.origin?.nodeId || node.uid,
|
|
67584
|
+
status: "running",
|
|
67585
|
+
startTime: Date.now(),
|
|
67586
|
+
logs: []
|
|
67587
|
+
});
|
|
67545
67588
|
onNodeEnter?.(node);
|
|
67546
67589
|
},
|
|
67547
67590
|
onNodeExit: async (node) => {
|
|
67548
67591
|
completedSteps++;
|
|
67549
|
-
|
|
67592
|
+
const step = executionSteps.find((s) => s.id === node.uid);
|
|
67593
|
+
if (step) {
|
|
67594
|
+
step.status = "completed";
|
|
67595
|
+
step.endTime = Date.now();
|
|
67596
|
+
step.duration = step.endTime - step.startTime;
|
|
67597
|
+
}
|
|
67598
|
+
if (!shouldDisableHistory) buildHistoryStorage.update(buildId, {
|
|
67599
|
+
completedSteps,
|
|
67600
|
+
steps: executionSteps
|
|
67601
|
+
}, pipelineId).catch((err) => {
|
|
67550
67602
|
logger().error(`Failed to update progress for build ${buildId}:`, err);
|
|
67551
67603
|
});
|
|
67552
67604
|
onNodeExit?.(node);
|
|
@@ -67554,14 +67606,43 @@ const executeGraphWithHistory = async ({ graph, variables, projectName, projectP
|
|
|
67554
67606
|
abortSignal
|
|
67555
67607
|
});
|
|
67556
67608
|
const endTime = Date.now();
|
|
67557
|
-
if (!shouldDisableHistory)
|
|
67558
|
-
|
|
67559
|
-
|
|
67560
|
-
|
|
67561
|
-
|
|
67562
|
-
|
|
67563
|
-
|
|
67564
|
-
|
|
67609
|
+
if (!shouldDisableHistory) {
|
|
67610
|
+
if (collectedArtifacts.length > 0) {
|
|
67611
|
+
const artifactsDir = ctx.getArtifactsPath(pipelineId, buildId);
|
|
67612
|
+
await mkdir(artifactsDir, { recursive: true });
|
|
67613
|
+
for (const artifact of collectedArtifacts) try {
|
|
67614
|
+
const destPath = join(artifactsDir, artifact.name);
|
|
67615
|
+
const originalNoAsar = process.noAsar;
|
|
67616
|
+
process.noAsar = true;
|
|
67617
|
+
try {
|
|
67618
|
+
await cp(artifact.path, destPath, { recursive: true });
|
|
67619
|
+
} finally {
|
|
67620
|
+
process.noAsar = originalNoAsar;
|
|
67621
|
+
}
|
|
67622
|
+
try {
|
|
67623
|
+
const s = await stat(destPath);
|
|
67624
|
+
artifact.type = s.isDirectory() ? "folder" : "file";
|
|
67625
|
+
artifact.size = s.isDirectory() ? await getFolderSize(destPath) : s.size;
|
|
67626
|
+
artifact.path = destPath;
|
|
67627
|
+
} catch (e) {
|
|
67628
|
+
logger().warn(`Failed to get size for artifact ${artifact.name}:`, e);
|
|
67629
|
+
}
|
|
67630
|
+
} catch (e) {
|
|
67631
|
+
logger().error(`Failed to copy artifact ${artifact.name}:`, e);
|
|
67632
|
+
}
|
|
67633
|
+
}
|
|
67634
|
+
onArtifactsFinalized?.(collectedArtifacts);
|
|
67635
|
+
await buildHistoryStorage.update(buildId, {
|
|
67636
|
+
status: "completed",
|
|
67637
|
+
endTime,
|
|
67638
|
+
duration: endTime - startTime,
|
|
67639
|
+
output: result.steps,
|
|
67640
|
+
logs,
|
|
67641
|
+
steps: executionSteps,
|
|
67642
|
+
completedSteps,
|
|
67643
|
+
artifacts: collectedArtifacts
|
|
67644
|
+
}, pipelineId);
|
|
67645
|
+
}
|
|
67565
67646
|
return {
|
|
67566
67647
|
result,
|
|
67567
67648
|
buildId
|
|
@@ -67569,20 +67650,58 @@ const executeGraphWithHistory = async ({ graph, variables, projectName, projectP
|
|
|
67569
67650
|
} catch (error) {
|
|
67570
67651
|
const endTime = Date.now();
|
|
67571
67652
|
const isCanceled = error instanceof Error && error.name === "AbortError";
|
|
67572
|
-
if (!shouldDisableHistory)
|
|
67573
|
-
|
|
67574
|
-
|
|
67575
|
-
|
|
67576
|
-
|
|
67577
|
-
|
|
67578
|
-
|
|
67579
|
-
|
|
67580
|
-
|
|
67581
|
-
|
|
67582
|
-
|
|
67583
|
-
|
|
67584
|
-
|
|
67585
|
-
|
|
67653
|
+
if (!shouldDisableHistory) {
|
|
67654
|
+
if (collectedArtifacts.length > 0) {
|
|
67655
|
+
const artifactsDir = ctx.getArtifactsPath(pipelineId, buildId);
|
|
67656
|
+
await mkdir(artifactsDir, { recursive: true });
|
|
67657
|
+
for (const artifact of collectedArtifacts) try {
|
|
67658
|
+
const destPath = join(artifactsDir, artifact.name);
|
|
67659
|
+
const originalNoAsar = process.noAsar;
|
|
67660
|
+
process.noAsar = true;
|
|
67661
|
+
try {
|
|
67662
|
+
await cp(artifact.path, destPath, { recursive: true });
|
|
67663
|
+
} finally {
|
|
67664
|
+
process.noAsar = originalNoAsar;
|
|
67665
|
+
}
|
|
67666
|
+
try {
|
|
67667
|
+
const s = await stat(destPath);
|
|
67668
|
+
artifact.type = s.isDirectory() ? "folder" : "file";
|
|
67669
|
+
artifact.size = s.isDirectory() ? await getFolderSize(destPath) : s.size;
|
|
67670
|
+
artifact.path = destPath;
|
|
67671
|
+
} catch (e) {
|
|
67672
|
+
logger().warn(`Failed to get size for artifact ${artifact.name}:`, e);
|
|
67673
|
+
}
|
|
67674
|
+
} catch (e) {
|
|
67675
|
+
logger().error(`Failed to copy artifact ${artifact.name}:`, e);
|
|
67676
|
+
}
|
|
67677
|
+
}
|
|
67678
|
+
onArtifactsFinalized?.(collectedArtifacts);
|
|
67679
|
+
for (const step of executionSteps) if (step.status === "running") {
|
|
67680
|
+
step.status = isCanceled ? "cancelled" : "failed";
|
|
67681
|
+
step.endTime = endTime;
|
|
67682
|
+
step.duration = endTime - step.startTime;
|
|
67683
|
+
step.error = {
|
|
67684
|
+
message: error instanceof Error ? error.message : String(error),
|
|
67685
|
+
timestamp: endTime
|
|
67686
|
+
};
|
|
67687
|
+
}
|
|
67688
|
+
await buildHistoryStorage.update(buildId, {
|
|
67689
|
+
status: isCanceled ? "cancelled" : "failed",
|
|
67690
|
+
endTime,
|
|
67691
|
+
duration: endTime - startTime,
|
|
67692
|
+
error: {
|
|
67693
|
+
message: error instanceof Error ? error.message : String(error),
|
|
67694
|
+
stack: error instanceof Error ? error.stack : void 0,
|
|
67695
|
+
timestamp: endTime
|
|
67696
|
+
},
|
|
67697
|
+
logs,
|
|
67698
|
+
steps: executionSteps,
|
|
67699
|
+
completedSteps,
|
|
67700
|
+
failedSteps: isCanceled ? 0 : 1,
|
|
67701
|
+
cancelledSteps: isCanceled ? 1 : 0,
|
|
67702
|
+
artifacts: collectedArtifacts
|
|
67703
|
+
}, pipelineId);
|
|
67704
|
+
}
|
|
67586
67705
|
throw error;
|
|
67587
67706
|
} finally {
|
|
67588
67707
|
try {
|
|
@@ -68073,6 +68192,24 @@ const registerEngineHandlers = (context) => {
|
|
|
68073
68192
|
});
|
|
68074
68193
|
}
|
|
68075
68194
|
},
|
|
68195
|
+
onArtifact: (name, path, node) => {
|
|
68196
|
+
send({
|
|
68197
|
+
type: "node-artifact",
|
|
68198
|
+
data: {
|
|
68199
|
+
nodeUid: node?.uid || "unknown",
|
|
68200
|
+
artifact: {
|
|
68201
|
+
name,
|
|
68202
|
+
path
|
|
68203
|
+
}
|
|
68204
|
+
}
|
|
68205
|
+
});
|
|
68206
|
+
},
|
|
68207
|
+
onArtifactsFinalized: (artifacts) => {
|
|
68208
|
+
send({
|
|
68209
|
+
type: "node-artifacts-finalized",
|
|
68210
|
+
data: { artifacts }
|
|
68211
|
+
});
|
|
68212
|
+
},
|
|
68076
68213
|
abortSignal: abortControllerGraph.signal,
|
|
68077
68214
|
cachePath: effectiveCachePath,
|
|
68078
68215
|
context
|
|
@@ -68454,7 +68591,7 @@ async function findInstalledPlugins(packagesDir) {
|
|
|
68454
68591
|
try {
|
|
68455
68592
|
const content = await readFile(join(dir, "package.json"), "utf8");
|
|
68456
68593
|
const pkg = JSON.parse(content);
|
|
68457
|
-
if (pkg.name && pkg.name !== "pnpm") installed.push({
|
|
68594
|
+
if (pkg.name && pkg.name !== "pnpm" && (pkg.pipelab || pkg.keywords && pkg.keywords.includes("pipelab-plugin"))) installed.push({
|
|
68458
68595
|
name: pkg.name,
|
|
68459
68596
|
version: pkg.version || "0.0.0",
|
|
68460
68597
|
packageDir: dir,
|
|
@@ -68475,29 +68612,18 @@ const builtInPlugins = async (options) => {
|
|
|
68475
68612
|
const envStart = Date.now();
|
|
68476
68613
|
await Promise.all([ensureNodeJS(options.context), ensurePNPM(options.context)]);
|
|
68477
68614
|
console.debug(`[Plugins] Environment preparation took ${Date.now() - envStart}ms`);
|
|
68478
|
-
const { usePlugins } = await import("./src-
|
|
68615
|
+
const { usePlugins } = await import("./src-DeMtUa5W.mjs");
|
|
68479
68616
|
const { registerPlugins } = usePlugins();
|
|
68480
|
-
const { webSocketServer } = await import("./src-
|
|
68617
|
+
const { webSocketServer } = await import("./src-DWDTyjEY.mjs");
|
|
68481
68618
|
webSocketServer.broadcast("startup:progress", { type: "ready" });
|
|
68482
68619
|
return (async () => {
|
|
68483
68620
|
const totalStart = Date.now();
|
|
68484
68621
|
const pluginsToLoad = /* @__PURE__ */ new Map();
|
|
68485
|
-
|
|
68486
|
-
|
|
68487
|
-
|
|
68488
|
-
"@pipelab/plugin-system",
|
|
68489
|
-
"@pipelab/plugin-steam",
|
|
68490
|
-
"@pipelab/plugin-itch",
|
|
68491
|
-
"@pipelab/plugin-electron",
|
|
68492
|
-
"@pipelab/plugin-discord",
|
|
68493
|
-
"@pipelab/plugin-poki",
|
|
68494
|
-
"@pipelab/plugin-nvpatch",
|
|
68495
|
-
"@pipelab/plugin-tauri",
|
|
68496
|
-
"@pipelab/plugin-minify",
|
|
68497
|
-
"@pipelab/plugin-netlify"
|
|
68498
|
-
]) pluginsToLoad.set(name, "latest");
|
|
68622
|
+
const { DEFAULT_PLUGIN_IDS, DEV_ONLY_PLUGIN_IDS } = await import("./src-DeMtUa5W.mjs");
|
|
68623
|
+
const defaultPlugins = [...DEFAULT_PLUGIN_IDS].map((id) => `@pipelab/plugin-${id}`);
|
|
68624
|
+
for (const name of defaultPlugins) pluginsToLoad.set(name, "latest");
|
|
68499
68625
|
try {
|
|
68500
|
-
const { setupSettingsConfigFile } = await import("./config-
|
|
68626
|
+
const { setupSettingsConfigFile } = await import("./config-BiWs1Yas.mjs");
|
|
68501
68627
|
const settingsPlugins = (await (await setupSettingsConfigFile(options.context)).getConfig())?.plugins || [];
|
|
68502
68628
|
for (const plugin of settingsPlugins) if (plugin.name) if (plugin.enabled) {
|
|
68503
68629
|
if (!pluginsToLoad.has(plugin.name)) pluginsToLoad.set(plugin.name, "latest");
|
|
@@ -68658,26 +68784,14 @@ const registerPluginsHandlers = (context) => {
|
|
|
68658
68784
|
handle("plugin:list-installed", async (_, { send }) => {
|
|
68659
68785
|
try {
|
|
68660
68786
|
const rawInstalled = await findInstalledPlugins(context.getPackagesPath());
|
|
68661
|
-
const DEFAULT_PLUGIN_IDS =
|
|
68662
|
-
|
|
68663
|
-
"filesystem",
|
|
68664
|
-
"system",
|
|
68665
|
-
"steam",
|
|
68666
|
-
"itch",
|
|
68667
|
-
"electron",
|
|
68668
|
-
"discord",
|
|
68669
|
-
"poki",
|
|
68670
|
-
"nvpatch",
|
|
68671
|
-
"tauri",
|
|
68672
|
-
"minify",
|
|
68673
|
-
"netlify"
|
|
68674
|
-
];
|
|
68787
|
+
const { DEFAULT_PLUGIN_IDS, DEV_ONLY_PLUGIN_IDS } = await import("./src-DeMtUa5W.mjs");
|
|
68788
|
+
const defaultPluginIds = [...DEFAULT_PLUGIN_IDS];
|
|
68675
68789
|
send({
|
|
68676
68790
|
type: "end",
|
|
68677
68791
|
data: {
|
|
68678
68792
|
type: "success",
|
|
68679
68793
|
result: { installed: rawInstalled.filter((item) => {
|
|
68680
|
-
return !
|
|
68794
|
+
return !defaultPluginIds.some((id) => item.name === `@pipelab/plugin-${id}`);
|
|
68681
68795
|
}).map((item) => ({
|
|
68682
68796
|
name: item.name,
|
|
68683
68797
|
version: item.version,
|
|
@@ -69325,7 +69439,7 @@ async function runPipelineCommand(file, options, version) {
|
|
|
69325
69439
|
}
|
|
69326
69440
|
//#endregion
|
|
69327
69441
|
//#region package.json
|
|
69328
|
-
var version$2 = "2.0.0-beta.
|
|
69442
|
+
var version$2 = "2.0.0-beta.37";
|
|
69329
69443
|
//#endregion
|
|
69330
69444
|
//#region src/paths.ts
|
|
69331
69445
|
const getDefaultUserDataPath = () => {
|
|
@@ -77277,7 +77391,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
77277
77391
|
const isProduction = process.env.TEST !== "true";
|
|
77278
77392
|
let posthog;
|
|
77279
77393
|
if (isProduction && "phc_oXBjgJkl3ORfM2b6FZlbwaWHkGxJp9jFrj0l5aLjJql") posthog = new PostHog("phc_oXBjgJkl3ORfM2b6FZlbwaWHkGxJp9jFrj0l5aLjJql", { host: "https://eu.i.posthog.com" });
|
|
77280
|
-
let version = "2.0.0-beta.
|
|
77394
|
+
let version = "2.0.0-beta.37";
|
|
77281
77395
|
if (version === "0.0.0") try {
|
|
77282
77396
|
const packageJsonPath = existsSync(join(__dirname, "package.json")) ? join(__dirname, "package.json") : join(__dirname, "..", "package.json");
|
|
77283
77397
|
if (existsSync(packageJsonPath)) version = JSON.parse(readFileSync(packageJsonPath, "utf-8")).version;
|
package/package.json
CHANGED
package/src-DeMtUa5W.mjs
ADDED
|
@@ -32293,6 +32293,21 @@ const usePlugins = () => {
|
|
|
32293
32293
|
};
|
|
32294
32294
|
};
|
|
32295
32295
|
//#endregion
|
|
32296
|
+
//#region ../../packages/shared/src/plugins-list.ts
|
|
32297
|
+
const DEFAULT_PLUGIN_IDS = [
|
|
32298
|
+
"construct",
|
|
32299
|
+
"filesystem",
|
|
32300
|
+
"system",
|
|
32301
|
+
"steam",
|
|
32302
|
+
"itch",
|
|
32303
|
+
"electron",
|
|
32304
|
+
"discord",
|
|
32305
|
+
"poki",
|
|
32306
|
+
"nvpatch",
|
|
32307
|
+
"netlify"
|
|
32308
|
+
];
|
|
32309
|
+
const DEV_ONLY_PLUGIN_IDS = ["tauri", "minify"];
|
|
32310
|
+
//#endregion
|
|
32296
32311
|
//#region ../../packages/shared/src/subscription-errors.ts
|
|
32297
32312
|
var SubscriptionRequiredError = class extends Error {
|
|
32298
32313
|
code = "SUBSCRIPTION_REQUIRED";
|
|
@@ -32369,4 +32384,4 @@ const fileRepoMigrations = fileRepoMigrations$1;
|
|
|
32369
32384
|
const savedFileMigrator = savedFileMigrator$1;
|
|
32370
32385
|
const connectionsMigrator = connectionsMigrator$1;
|
|
32371
32386
|
//#endregion
|
|
32372
|
-
export {
|
|
32387
|
+
export { SaveLocationInternalValidator as A, createQuickJs as C, ConnectionValidator as D, useLogger as E, SaveLocationValidator as M, FileRepoProjectValidatorV2 as O, makeResolvedParams as S, fmt as T, SavedFileDefaultValidatorV4 as _, WebSocketError as a, processGraph as b, transformUrl as c, SubscriptionRequiredError as d, DEFAULT_PLUGIN_IDS as f, OriginValidator as g, EditorParamValidatorV3 as h, savedFileMigrator as i, SaveLocationPipelabCloudValidator as j, SaveLocationExternalValidator as k, isSupabaseAvailable as l, usePlugins as m, connectionsMigrator as n, isWebSocketRequestMessage as o, DEV_ONLY_PLUGIN_IDS as p, fileRepoMigrations as r, isRequired as s, appSettingsMigrator as t, supabase as u, SavedFileSimpleValidatorV4 as v, createQuickJsFromVariant as w, variableToFormattedVariable as x, VariableValidatorV1 as y };
|
package/config-CzJC4vJj.mjs
DELETED
package/src-BiFlFfFL.mjs
DELETED