@pipelab/shared 1.0.0-beta.15 → 1.0.0-beta.18

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": "1.0.0-beta.15",
3
+ "version": "1.0.0-beta.18",
4
4
  "private": false,
5
5
  "description": "Shared logic and types for the Pipelab ecosystem",
6
6
  "license": "FSL-1.1-MIT",
@@ -37,15 +37,15 @@
37
37
  "tslog": "4.9.3",
38
38
  "type-fest": "4.26.1",
39
39
  "valibot": "0.42.1",
40
- "@pipelab/constants": "1.0.0-beta.17",
41
- "@pipelab/migration": "1.0.0-beta.15"
40
+ "@pipelab/constants": "1.0.0-beta.20",
41
+ "@pipelab/migration": "1.0.0-beta.18"
42
42
  },
43
43
  "devDependencies": {
44
44
  "esbuild-plugin-wasm": "1.1.0",
45
45
  "tsdown": "0.21.2",
46
46
  "typescript": "5.9.3",
47
47
  "vitest": "3.1.4",
48
- "@pipelab/tsconfig": "1.0.0-beta.15"
48
+ "@pipelab/tsconfig": "1.0.0-beta.18"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "tsdown",
package/src/apis.ts CHANGED
@@ -27,8 +27,8 @@ type EndEvent<DATA> = {
27
27
  export type Presets = Record<string, PresetResult>;
28
28
 
29
29
  export type StableDataReport = {
30
- sourceChannel: "Stable" | "Beta";
31
- targetChannel: "Stable" | "Beta";
30
+ sourceChannel: "Stable" | "Beta" | "Dev";
31
+ targetChannel: "Stable" | "Beta" | "Dev";
32
32
 
33
33
  // Settings
34
34
  settingsExists: boolean;
@@ -71,11 +71,15 @@ export type StableDataReport = {
71
71
  }>;
72
72
  };
73
73
 
74
+ export type ReleaseChannel = "stable" | "beta" | "dev";
75
+ export type MigrationChannel = "stable" | "beta";
76
+
74
77
  export type MigrationOptions = {
75
78
  migrateSettings: boolean;
76
79
  migrateConnections: boolean;
77
80
  selectedProjects: string[];
78
81
  selectedPipelines: string[];
82
+ sourceChannel?: MigrationChannel;
79
83
  };
80
84
 
81
85
  export type IpcDefinition = {
@@ -217,7 +221,10 @@ export type IpcDefinition = {
217
221
  { name: string; options?: any },
218
222
  EndEvent<{ data: any | null; error: any | null }>,
219
223
  ];
220
- "agent:version:get": [void, EndEvent<{ version: string }>];
224
+ "agent:version:get": [
225
+ void,
226
+ EndEvent<{ version: string; channel: ReleaseChannel }>,
227
+ ];
221
228
  "startup:progress": [
222
229
  void,
223
230
  { type: "progress"; data: { message: string } } | { type: "ready" } | { type: "done" },
@@ -260,7 +267,10 @@ export type IpcDefinition = {
260
267
  { plugins: Record<string, string> },
261
268
  EndEvent<{ loaded: string[]; failed: string[] }>,
262
269
  ];
263
- "migration:scan-stable": [void, EndEvent<StableDataReport>];
270
+ "migration:scan-stable": [
271
+ { sourceChannel?: MigrationChannel },
272
+ EndEvent<StableDataReport>,
273
+ ];
264
274
  "migration:perform": [MigrationOptions, EndEvent<{ result: "ok" }>];
265
275
  };
266
276
 
@@ -138,6 +138,7 @@
138
138
  "only-internal-supported-notice": "Pipelab verwaltet jetzt alle Pipelines im Arbeitsbereich der Anwendung. Externe Dateien sind veraltet, können aber weiterhin importiert werden.",
139
139
  "import-pipeline": "Pipeline importieren",
140
140
  "import-from-stable": "Aus Stable importieren...",
141
+ "import-from-beta": "Aus Beta importieren...",
141
142
  "import-pipeline-file": "Pipeline-Datei importieren (.pipelab)...",
142
143
  "import-success": "Pipeline erfolgreich importiert",
143
144
  "failed-to-read-file": "Ausgewählte Datei konnte nicht gelesen werden",
@@ -138,6 +138,7 @@
138
138
  "only-internal-supported-notice": "Pipelab now manages all pipelines within the application workspace. External files are deprecated, but can be imported into your workspace.",
139
139
  "import-pipeline": "Import Pipeline",
140
140
  "import-from-stable": "Import from Stable...",
141
+ "import-from-beta": "Import from Beta...",
141
142
  "import-pipeline-file": "Import pipeline file (.pipelab)...",
142
143
  "import-success": "Pipeline imported successfully",
143
144
  "failed-to-read-file": "Failed to read the selected file",
@@ -138,6 +138,7 @@
138
138
  "only-internal-supported-notice": "Pipelab ahora gestiona todos los pipelines dentro del espacio de trabajo. Los archivos externos están obsoletos, pero pueden importarse.",
139
139
  "import-pipeline": "Importar Pipeline",
140
140
  "import-from-stable": "Importar desde Stable...",
141
+ "import-from-beta": "Importar desde Beta...",
141
142
  "import-pipeline-file": "Importar archivo de pipeline (.pipelab)...",
142
143
  "import-success": "Pipeline importado con éxito",
143
144
  "failed-to-read-file": "Error al leer el archivo seleccionado",
@@ -138,6 +138,7 @@
138
138
  "only-internal-supported-notice": "Pipelab gère désormais tous les pipelines au sein de l'espace de travail de l'application. Les fichiers externes sont obsolètes, mais peuvent toujours être importés.",
139
139
  "import-pipeline": "Importer le Pipeline",
140
140
  "import-from-stable": "Importer depuis Stable...",
141
+ "import-from-beta": "Importer depuis Beta...",
141
142
  "import-pipeline-file": "Importer un fichier de pipeline (.pipelab)...",
142
143
  "import-success": "Pipeline importé avec succès",
143
144
  "failed-to-read-file": "Échec de la lecture du fichier sélectionné",
@@ -138,6 +138,7 @@
138
138
  "only-internal-supported-notice": "O Pipelab agora gerencia todas as pipelines dentro do espaço de trabalho do aplicativo. Arquivos externos foram descontinuados, mas podem ser importados.",
139
139
  "import-pipeline": "Importar Pipeline",
140
140
  "import-from-stable": "Importar do Stable...",
141
+ "import-from-beta": "Importar do Beta...",
141
142
  "import-pipeline-file": "Importar arquivo de pipeline (.pipelab)...",
142
143
  "import-success": "Pipeline importada com sucesso",
143
144
  "failed-to-read-file": "Falha ao ler o arquivo selecionado",
@@ -138,6 +138,7 @@
138
138
  "only-internal-supported-notice": "Pipelab 现在管理应用工作区内的所有流水线。外部文件已被弃用,但仍可以导入。",
139
139
  "import-pipeline": "导入流水线",
140
140
  "import-from-stable": "从 Stable 导入...",
141
+ "import-from-beta": "从 Beta 导入...",
141
142
  "import-pipeline-file": "导入管道文件 (.pipelab)...",
142
143
  "import-success": "流水线已成功导入",
143
144
  "failed-to-read-file": "读取所选文件失败",