@pipelab/cli 2.0.0-beta.34 → 2.0.0-beta.35
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 +14 -37
- 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";
|
|
@@ -68454,7 +68454,7 @@ async function findInstalledPlugins(packagesDir) {
|
|
|
68454
68454
|
try {
|
|
68455
68455
|
const content = await readFile(join(dir, "package.json"), "utf8");
|
|
68456
68456
|
const pkg = JSON.parse(content);
|
|
68457
|
-
if (pkg.name && pkg.name !== "pnpm") installed.push({
|
|
68457
|
+
if (pkg.name && pkg.name !== "pnpm" && (pkg.pipelab || pkg.keywords && pkg.keywords.includes("pipelab-plugin"))) installed.push({
|
|
68458
68458
|
name: pkg.name,
|
|
68459
68459
|
version: pkg.version || "0.0.0",
|
|
68460
68460
|
packageDir: dir,
|
|
@@ -68475,29 +68475,18 @@ const builtInPlugins = async (options) => {
|
|
|
68475
68475
|
const envStart = Date.now();
|
|
68476
68476
|
await Promise.all([ensureNodeJS(options.context), ensurePNPM(options.context)]);
|
|
68477
68477
|
console.debug(`[Plugins] Environment preparation took ${Date.now() - envStart}ms`);
|
|
68478
|
-
const { usePlugins } = await import("./src-
|
|
68478
|
+
const { usePlugins } = await import("./src-DeMtUa5W.mjs");
|
|
68479
68479
|
const { registerPlugins } = usePlugins();
|
|
68480
|
-
const { webSocketServer } = await import("./src-
|
|
68480
|
+
const { webSocketServer } = await import("./src-DWDTyjEY.mjs");
|
|
68481
68481
|
webSocketServer.broadcast("startup:progress", { type: "ready" });
|
|
68482
68482
|
return (async () => {
|
|
68483
68483
|
const totalStart = Date.now();
|
|
68484
68484
|
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");
|
|
68485
|
+
const { DEFAULT_PLUGIN_IDS, DEV_ONLY_PLUGIN_IDS } = await import("./src-DeMtUa5W.mjs");
|
|
68486
|
+
const defaultPlugins = [...DEFAULT_PLUGIN_IDS].map((id) => `@pipelab/plugin-${id}`);
|
|
68487
|
+
for (const name of defaultPlugins) pluginsToLoad.set(name, "latest");
|
|
68499
68488
|
try {
|
|
68500
|
-
const { setupSettingsConfigFile } = await import("./config-
|
|
68489
|
+
const { setupSettingsConfigFile } = await import("./config-BiWs1Yas.mjs");
|
|
68501
68490
|
const settingsPlugins = (await (await setupSettingsConfigFile(options.context)).getConfig())?.plugins || [];
|
|
68502
68491
|
for (const plugin of settingsPlugins) if (plugin.name) if (plugin.enabled) {
|
|
68503
68492
|
if (!pluginsToLoad.has(plugin.name)) pluginsToLoad.set(plugin.name, "latest");
|
|
@@ -68658,26 +68647,14 @@ const registerPluginsHandlers = (context) => {
|
|
|
68658
68647
|
handle("plugin:list-installed", async (_, { send }) => {
|
|
68659
68648
|
try {
|
|
68660
68649
|
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
|
-
];
|
|
68650
|
+
const { DEFAULT_PLUGIN_IDS, DEV_ONLY_PLUGIN_IDS } = await import("./src-DeMtUa5W.mjs");
|
|
68651
|
+
const defaultPluginIds = [...DEFAULT_PLUGIN_IDS];
|
|
68675
68652
|
send({
|
|
68676
68653
|
type: "end",
|
|
68677
68654
|
data: {
|
|
68678
68655
|
type: "success",
|
|
68679
68656
|
result: { installed: rawInstalled.filter((item) => {
|
|
68680
|
-
return !
|
|
68657
|
+
return !defaultPluginIds.some((id) => item.name === `@pipelab/plugin-${id}`);
|
|
68681
68658
|
}).map((item) => ({
|
|
68682
68659
|
name: item.name,
|
|
68683
68660
|
version: item.version,
|
|
@@ -69325,7 +69302,7 @@ async function runPipelineCommand(file, options, version) {
|
|
|
69325
69302
|
}
|
|
69326
69303
|
//#endregion
|
|
69327
69304
|
//#region package.json
|
|
69328
|
-
var version$2 = "2.0.0-beta.
|
|
69305
|
+
var version$2 = "2.0.0-beta.35";
|
|
69329
69306
|
//#endregion
|
|
69330
69307
|
//#region src/paths.ts
|
|
69331
69308
|
const getDefaultUserDataPath = () => {
|
|
@@ -77277,7 +77254,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
77277
77254
|
const isProduction = process.env.TEST !== "true";
|
|
77278
77255
|
let posthog;
|
|
77279
77256
|
if (isProduction && "phc_oXBjgJkl3ORfM2b6FZlbwaWHkGxJp9jFrj0l5aLjJql") posthog = new PostHog("phc_oXBjgJkl3ORfM2b6FZlbwaWHkGxJp9jFrj0l5aLjJql", { host: "https://eu.i.posthog.com" });
|
|
77280
|
-
let version = "2.0.0-beta.
|
|
77257
|
+
let version = "2.0.0-beta.35";
|
|
77281
77258
|
if (version === "0.0.0") try {
|
|
77282
77259
|
const packageJsonPath = existsSync(join(__dirname, "package.json")) ? join(__dirname, "package.json") : join(__dirname, "..", "package.json");
|
|
77283
77260
|
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