@pipelab/cli 2.0.0-beta.43 → 2.0.0-beta.45
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/index.mjs +30 -4
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/ui/assets/{AuthDialog-D_9qiGgW.js → AuthDialog-DlU_WW6e.js} +1 -1
- package/ui/assets/{ReleaseFieldControl-B02TgWML.js → ReleaseFieldControl-BgZuHF66.js} +1 -1
- package/ui/assets/{ReleaseFlowWizard-DQSke9Dj.js → ReleaseFlowWizard-C1ayWNOQ.js} +1 -1
- package/ui/assets/{ReleaseStatus-qSSaX5dj.js → ReleaseStatus-BiRuUd5Q.js} +1 -1
- package/ui/assets/{Settings-gCsB8Iq2.js → Settings-b8oVSXyC.js} +1 -1
- package/ui/assets/{WebFilePicker-UkzoIq2q.js → WebFilePicker-GnTzUDGt.js} +1 -1
- package/ui/assets/{WorkflowLayout-xmn-6ITL.js → WorkflowLayout-u-aSjl-f.js} +2 -2
- package/ui/assets/{cloud-files-CtxEoyxf.js → cloud-files-BpzwlEgg.js} +1 -1
- package/ui/assets/{connections-qDq73hPk.js → connections-Djk3Fk9U.js} +1 -1
- package/ui/assets/{connections-BSbhZYSJ.js → connections-akr-Tw11.js} +1 -1
- package/ui/assets/{index-DcsxQaNM.js → index-3swN8pT8.js} +3 -3
- package/ui/assets/{pages-CrhBf8iB.js → pages-aXNvwHy2.js} +1 -1
- package/ui/assets/{release-flow-BRoW_fhf.js → release-flow-BlvDg68b.js} +1 -1
- package/ui/assets/{run-detail-VqgczG6o.js → run-detail-19oPx25U.js} +1 -1
- package/ui/assets/{useWorkflowDocument-DGEGNHsl.js → useWorkflowDocument-6-o5gm97.js} +1 -1
- package/ui/assets/{workflow-artifacts-BbAzJ3mn.js → workflow-artifacts-CIgleYIp.js} +1 -1
- package/ui/assets/{workflow-builds-DKT10TlD.js → workflow-builds-Czp-_TFW.js} +1 -1
- package/ui/assets/{workflow-plan-BEcF1-fs.js → workflow-plan-B-Iuxh0i.js} +1 -1
- package/ui/assets/{workflow-runs-Dfi7RN4c.js → workflow-runs--207MNXD.js} +1 -1
- package/ui/assets/{workflow-settings-CHEBBeME.js → workflow-settings-Bb-njArD.js} +1 -1
- package/ui/assets/{workflows-X2eJHqcC.js → workflows-BWXkP514.js} +3 -3
- package/ui/index.html +1 -1
package/index.mjs
CHANGED
|
@@ -133838,7 +133838,7 @@ const sweepRetention = async (context) => {
|
|
|
133838
133838
|
logger().warn(`Retention sweep skipped workflow ${workflow.id}:`, error);
|
|
133839
133839
|
}
|
|
133840
133840
|
} catch (error) {
|
|
133841
|
-
logger().warn("
|
|
133841
|
+
logger().warn("Run history cleanup was skipped because the saved project list could not be read (it may come from a different Pipelab version). Update Pipelab or check the projects file in your config folder.", error);
|
|
133842
133842
|
}
|
|
133843
133843
|
};
|
|
133844
133844
|
// ../../packages/core-node/src/handlers/config.ts
|
|
@@ -134539,6 +134539,10 @@ var DesktopAuthStorage = class {
|
|
|
134539
134539
|
}, data ? data.key : await this.getKey(true));
|
|
134540
134540
|
});
|
|
134541
134541
|
}
|
|
134542
|
+
/** Delete the saved session, e.g. when it can no longer be read. */
|
|
134543
|
+
async discard() {
|
|
134544
|
+
await serializeFileMutation(this.filePath, () => rm(this.filePath, { force: true }));
|
|
134545
|
+
}
|
|
134542
134546
|
async removeItem(key) {
|
|
134543
134547
|
if (this.passwordSession.getStore()) return;
|
|
134544
134548
|
await serializeFileMutation(this.filePath, async () => {
|
|
@@ -134605,6 +134609,28 @@ var SecureCloudAuthStorage = class {
|
|
|
134605
134609
|
}
|
|
134606
134610
|
};
|
|
134607
134611
|
// ../../packages/core-node/src/pipelab-cloud-auth.ts
|
|
134612
|
+
/**
|
|
134613
|
+
* Supabase reads the session from its background initialisation with nothing awaiting the
|
|
134614
|
+
* result, so a rejection there would crash the whole server. An unreadable saved session
|
|
134615
|
+
* (old format, lost key) is discarded and the user is signed out.
|
|
134616
|
+
*/
|
|
134617
|
+
const discardUnreadableSession = (storage) => ({
|
|
134618
|
+
getItem: async (key) => {
|
|
134619
|
+
try {
|
|
134620
|
+
return await storage.getItem(key);
|
|
134621
|
+
} catch (error) {
|
|
134622
|
+
console.warn("[Auth] The saved Pipelab Cloud session could not be read, so it was discarded and you are signed out. Sign in again to continue.", error instanceof Error ? error.message : error);
|
|
134623
|
+
try {
|
|
134624
|
+
await storage.discard();
|
|
134625
|
+
} catch (discardError) {
|
|
134626
|
+
console.warn("[Auth] Could not delete the unreadable session:", discardError);
|
|
134627
|
+
}
|
|
134628
|
+
return null;
|
|
134629
|
+
}
|
|
134630
|
+
},
|
|
134631
|
+
setItem: (key, value) => storage.setItem(key, value),
|
|
134632
|
+
removeItem: (key) => storage.removeItem(key)
|
|
134633
|
+
});
|
|
134608
134634
|
const serverClients = /* @__PURE__ */ new Map();
|
|
134609
134635
|
const getServerCloudAuth = (context) => {
|
|
134610
134636
|
const sessionPath = resolve(context.getConfigPath("auth-session.json"));
|
|
@@ -134612,7 +134638,7 @@ const getServerCloudAuth = (context) => {
|
|
|
134612
134638
|
if (existing) return existing;
|
|
134613
134639
|
const storage = new DesktopAuthStorage(sessionPath);
|
|
134614
134640
|
const client = supabase({ auth: {
|
|
134615
|
-
storage,
|
|
134641
|
+
storage: discardUnreadableSession(storage),
|
|
134616
134642
|
persistSession: true,
|
|
134617
134643
|
autoRefreshToken: true,
|
|
134618
134644
|
detectSessionInUrl: false
|
|
@@ -144200,7 +144226,7 @@ const registerAllHandlers = async (options) => {
|
|
|
144200
144226
|
* package.json next to (or one level above) the given directory.
|
|
144201
144227
|
*/
|
|
144202
144228
|
function resolveCliVersion(cliDirname) {
|
|
144203
|
-
return "2.0.0-beta.
|
|
144229
|
+
return "2.0.0-beta.45";
|
|
144204
144230
|
}
|
|
144205
144231
|
/** Start the Pipelab server (HTTP UI + WebSocket API) in the current process. */
|
|
144206
144232
|
async function startServer({ cliDirname, version, ...options }) {
|
|
@@ -144208,7 +144234,7 @@ async function startServer({ cliDirname, version, ...options }) {
|
|
|
144208
144234
|
return serveCommand(options, version ?? resolveCliVersion(cliDirname), cliDirname);
|
|
144209
144235
|
}
|
|
144210
144236
|
// package.json
|
|
144211
|
-
var version$2 = "2.0.0-beta.
|
|
144237
|
+
var version$2 = "2.0.0-beta.45";
|
|
144212
144238
|
// src/paths.ts
|
|
144213
144239
|
const getDefaultUserDataPath = () => {
|
|
144214
144240
|
const mode = version$2.includes("beta") ? "beta" : "prod";
|