@pipelab/shared 2.0.1-beta.22 → 2.0.1-beta.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipelab/shared",
3
- "version": "2.0.1-beta.22",
3
+ "version": "2.0.1-beta.24",
4
4
  "private": false,
5
5
  "description": "Shared logic and types for the Pipelab ecosystem",
6
6
  "license": "FSL-1.1-MIT",
@@ -37,13 +37,13 @@
37
37
  "tslog": "4.9.3",
38
38
  "type-fest": "4.26.1",
39
39
  "valibot": "0.42.1",
40
- "@pipelab/migration": "1.0.1-beta.21"
40
+ "@pipelab/migration": "1.0.1-beta.23"
41
41
  },
42
42
  "devDependencies": {
43
43
  "esbuild-plugin-wasm": "1.1.0",
44
44
  "tsdown": "0.21.2",
45
45
  "typescript": "5.9.3",
46
- "@pipelab/tsconfig": "1.0.1-beta.21"
46
+ "@pipelab/tsconfig": "1.0.1-beta.23"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "tsdown",
package/src/apis.ts CHANGED
@@ -131,6 +131,7 @@ export type IpcDefinition = {
131
131
  ];
132
132
  "build-history:delete": [{ id: string; pipelineId?: string }, EndEvent<{ result: "ok" | "ko" }>];
133
133
  "build-history:clear": [void, EndEvent<{ result: "ok" | "ko" }>];
134
+ "build-history:clear-by-pipeline": [{ pipelineId: string }, EndEvent<{ result: "ok" | "ko" }>];
134
135
  "build-history:get-storage-info": [
135
136
  void,
136
137
  EndEvent<{
@@ -76,13 +76,17 @@ export interface IBuildHistoryStorage {
76
76
  oldestEntry?: number;
77
77
  newestEntry?: number;
78
78
  numberOfPipelines: number;
79
- cachePath: string;
80
79
  userDataPath: string;
81
80
  retentionPolicy: {
82
81
  enabled: boolean;
83
82
  maxEntries: number;
84
83
  maxAge: number;
85
84
  };
85
+ disk: {
86
+ total: number;
87
+ free: number;
88
+ pipelab: number;
89
+ };
86
90
  }>;
87
91
  }
88
92
 
@@ -100,8 +100,6 @@ export const AppSettingsValidatorV6 = object({
100
100
  export const AppSettingsValidatorV7 = object({
101
101
  theme: union([literal("light"), literal("dark")]),
102
102
  version: literal("7.0.0"),
103
- cacheFolder: string(),
104
- clearTemporaryFoldersOnPipelineEnd: boolean(),
105
103
  locale: union([
106
104
  literal("en-US"),
107
105
  literal("fr-FR"),
@@ -19,8 +19,6 @@
19
19
  "advanced": "Advanced",
20
20
  "billing": "Billing"
21
21
  },
22
- "clearTempFolders": "Automatically clean up temporary files",
23
- "clearTempFoldersDescription": "When enabled, all temporary files created during pipeline execution will be automatically deleted after the pipeline completes. This helps save disk space but you may need to copy artifacts yourself to preserve them.",
24
22
  "pipeline-cache-folder": "Pipeline Cache Folder:",
25
23
  "enter-or-browse-for-a-folder": "Enter or browse for a folder",
26
24
  "browse": "Browse",
@@ -36,7 +34,20 @@
36
34
  "select-cache-folder": "Select Cache Folder",
37
35
  "restart-dashboard-tour": "Restart Dashboard Tour",
38
36
  "restart-editor-tour": "Restart Editor Tour",
39
- "tour-reset-success": "Tour has been reset. It will start the next time you visit the page."
37
+ "tour-reset-success": "Tour has been reset. It will start the next time you visit the page.",
38
+ "retentionPolicy": "Retention Policy",
39
+ "retentionPolicyDescription": "Manage how long your build logs and history are kept.",
40
+ "retentionEnabled": "Enable Retention Policy",
41
+ "retentionMaxEntries": "Maximum Entries",
42
+ "retentionMaxEntriesDescription": "Keep up to this number of entries per pipeline.",
43
+ "retentionMaxAge": "Maximum Age (days)",
44
+ "retentionMaxAgeDescription": "Keep entries for up to this many days.",
45
+ "storage-pipelab": "Pipelab",
46
+ "storage-other": "Other Apps",
47
+ "storage-free": "Free Space",
48
+ "disk-usage": "Disk Usage",
49
+ "free": "Free",
50
+ "other": "Other"
40
51
  },
41
52
  "headers": {
42
53
  "dashboard": "Dashboard",