@pipelab/cli 2.0.0-beta.15 → 2.0.0-beta.17

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.
Files changed (2) hide show
  1. package/index.mjs +6 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -67222,6 +67222,7 @@ const builtInPlugins = async (options) => {
67222
67222
  const { usePlugins } = await import("./src-XVe3IQMi.mjs");
67223
67223
  const { registerPlugins } = usePlugins();
67224
67224
  const { webSocketServer } = await import("./src-CHr-wGNr.mjs");
67225
+ webSocketServer.broadcast("startup:progress", { type: "ready" });
67225
67226
  (async () => {
67226
67227
  const totalStart = Date.now();
67227
67228
  const pluginsToLoad = /* @__PURE__ */ new Map();
@@ -67249,7 +67250,7 @@ const builtInPlugins = async (options) => {
67249
67250
  console.error(`[Plugins] Failed to load settings config on startup:`, e);
67250
67251
  }
67251
67252
  console.log(`[Plugins] Total plugins to load on startup:`, Array.from(pluginsToLoad.entries()));
67252
- for (const [packageName, version] of pluginsToLoad.entries()) {
67253
+ const loadPromises = Array.from(pluginsToLoad.entries()).map(async ([packageName, version]) => {
67253
67254
  sendStartupProgress(`Loading plugin: ${packageName}`);
67254
67255
  const pluginStart = Date.now();
67255
67256
  try {
@@ -67262,11 +67263,12 @@ const builtInPlugins = async (options) => {
67262
67263
  } catch (err) {
67263
67264
  console.error(`[Plugins] Failed to load plugin ${packageName} at startup:`, err);
67264
67265
  }
67265
- }
67266
+ });
67267
+ await Promise.all(loadPromises);
67266
67268
  console.log(`[Plugins] All startup plugins loaded in ${Date.now() - totalStart}ms.`);
67267
67269
  sendStartupProgress("All plugins loaded.");
67268
67270
  setTimeout(() => {
67269
- webSocketServer.broadcast("startup:progress", { type: "ready" });
67271
+ webSocketServer.broadcast("startup:progress", { type: "done" });
67270
67272
  }, 2e3);
67271
67273
  })();
67272
67274
  };
@@ -68475,7 +68477,7 @@ async function runPipelineCommand(file, options, version) {
68475
68477
  }
68476
68478
  //#endregion
68477
68479
  //#region package.json
68478
- var version$2 = "2.0.0-beta.15";
68480
+ var version$2 = "2.0.0-beta.17";
68479
68481
  //#endregion
68480
68482
  //#region src/paths.ts
68481
68483
  const getDefaultUserDataPath = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipelab/cli",
3
- "version": "2.0.0-beta.15",
3
+ "version": "2.0.0-beta.17",
4
4
  "description": "The command line interface for Pipelab",
5
5
  "license": "FSL-1.1-MIT",
6
6
  "author": "CynToolkit",