@pipelab/plugin-electron 1.0.0-beta.17 → 1.0.0-beta.19

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/dist/index.mjs CHANGED
@@ -2093,7 +2093,7 @@ const settingsMigratorInternal = createMigrator();
2093
2093
  const defaultAppSettings = settingsMigratorInternal.createDefault({
2094
2094
  locale: "en-US",
2095
2095
  theme: "light",
2096
- version: "8.0.0",
2096
+ version: "7.0.0",
2097
2097
  autosave: true,
2098
2098
  agents: [],
2099
2099
  tours: {
@@ -2106,11 +2106,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
2106
2106
  completed: false
2107
2107
  }
2108
2108
  },
2109
- buildHistory: { retentionPolicy: {
2110
- enabled: false,
2111
- maxEntries: 50,
2112
- maxAge: 30
2113
- } },
2114
2109
  plugins: DEFAULT_PLUGINS,
2115
2110
  isInternalMigrationBannerClosed: false
2116
2111
  });
@@ -2167,18 +2162,13 @@ settingsMigratorInternal.createMigrations({
2167
2162
  return {
2168
2163
  ...rest,
2169
2164
  agents: [],
2170
- buildHistory: { retentionPolicy: {
2171
- enabled: false,
2172
- maxEntries: 50,
2173
- maxAge: 30
2174
- } },
2175
2165
  plugins: DEFAULT_PLUGINS,
2176
2166
  isInternalMigrationBannerClosed: false
2177
2167
  };
2178
2168
  }
2179
2169
  }),
2180
2170
  createMigration({
2181
- version: "8.0.0",
2171
+ version: "7.0.0",
2182
2172
  up: finalVersion
2183
2173
  })
2184
2174
  ]
@@ -2197,7 +2187,7 @@ connectionsMigratorInternal.createMigrations({
2197
2187
  });
2198
2188
  const fileRepoMigratorInternal = createMigrator();
2199
2189
  const defaultFileRepo = fileRepoMigratorInternal.createDefault({
2200
- version: "2.0.0",
2190
+ version: "3.0.0",
2201
2191
  projects: [{
2202
2192
  id: "main",
2203
2193
  name: "Default project",
@@ -2207,30 +2197,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
2207
2197
  });
2208
2198
  fileRepoMigratorInternal.createMigrations({
2209
2199
  defaultValue: defaultFileRepo,
2210
- migrations: [createMigration({
2211
- version: "1.0.0",
2212
- up: (state) => {
2213
- const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
2200
+ migrations: [
2201
+ createMigration({
2202
+ version: "1.0.0",
2203
+ up: (state) => {
2204
+ const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
2205
+ return {
2206
+ ...file,
2207
+ id,
2208
+ project: "main"
2209
+ };
2210
+ });
2214
2211
  return {
2215
- ...file,
2216
- id,
2217
- project: "main"
2212
+ ...state,
2213
+ projects: [{
2214
+ id: "main",
2215
+ name: "Default project",
2216
+ description: "The initial default project"
2217
+ }],
2218
+ pipelines
2218
2219
  };
2219
- });
2220
- return {
2221
- ...state,
2222
- projects: [{
2223
- id: "main",
2224
- name: "Default project",
2225
- description: "The initial default project"
2226
- }],
2227
- pipelines
2228
- };
2229
- }
2230
- }), createMigration({
2231
- version: "2.0.0",
2232
- up: finalVersion
2233
- })]
2220
+ }
2221
+ }),
2222
+ createMigration({
2223
+ version: "2.0.0",
2224
+ up: (state) => {
2225
+ return { ...state };
2226
+ }
2227
+ }),
2228
+ createMigration({
2229
+ version: "3.0.0",
2230
+ up: finalVersion
2231
+ })
2232
+ ]
2234
2233
  });
2235
2234
  const savedFileMigratorInternal = createMigrator();
2236
2235
  const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
@@ -2391,14 +2390,19 @@ object({
2391
2390
  version: literal("1.0.0"),
2392
2391
  data: optional(record(string(), SaveLocationValidator), {})
2393
2392
  });
2394
- const FileRepoProjectValidatorV2$1 = object({
2393
+ const FileRepoProjectValidatorV2 = object({
2395
2394
  id: string(),
2396
2395
  name: string(),
2397
2396
  description: string()
2398
2397
  });
2399
2398
  object({
2400
2399
  version: literal("2.0.0"),
2401
- projects: array(FileRepoProjectValidatorV2$1),
2400
+ projects: array(FileRepoProjectValidatorV2),
2401
+ pipelines: optional(array(SaveLocationValidator), [])
2402
+ });
2403
+ object({
2404
+ version: literal("3.0.0"),
2405
+ projects: array(FileRepoProjectValidatorV2),
2402
2406
  pipelines: optional(array(SaveLocationValidator), [])
2403
2407
  });
2404
2408
  object({
@@ -2507,44 +2511,6 @@ object({
2507
2511
  name: string(),
2508
2512
  url: string()
2509
2513
  })),
2510
- buildHistory: object({ retentionPolicy: object({
2511
- enabled: boolean(),
2512
- maxEntries: number(),
2513
- maxAge: number()
2514
- }) })
2515
- });
2516
- object({
2517
- theme: union([literal("light"), literal("dark")]),
2518
- version: literal("8.0.0"),
2519
- locale: union([
2520
- literal("en-US"),
2521
- literal("fr-FR"),
2522
- literal("pt-BR"),
2523
- literal("zh-CN"),
2524
- literal("es-ES"),
2525
- literal("de-DE")
2526
- ]),
2527
- tours: object({
2528
- dashboard: object({
2529
- step: number(),
2530
- completed: boolean()
2531
- }),
2532
- editor: object({
2533
- step: number(),
2534
- completed: boolean()
2535
- })
2536
- }),
2537
- autosave: boolean(),
2538
- agents: array(object({
2539
- id: string(),
2540
- name: string(),
2541
- url: string()
2542
- })),
2543
- buildHistory: object({ retentionPolicy: object({
2544
- enabled: boolean(),
2545
- maxEntries: number(),
2546
- maxAge: number()
2547
- }) }),
2548
2514
  plugins: array(object({
2549
2515
  name: string(),
2550
2516
  enabled: boolean(),
@@ -45438,20 +45404,6 @@ var WebSocketError = class extends Error {
45438
45404
  const isWebSocketRequestMessage = (message) => {
45439
45405
  return message && typeof message.channel === "string" && message.requestId;
45440
45406
  };
45441
- object({
45442
- version: literal("1.0.0"),
45443
- data: optional(record(string(), SaveLocationValidator), {})
45444
- });
45445
- const FileRepoProjectValidatorV2 = object({
45446
- id: string(),
45447
- name: string(),
45448
- description: string()
45449
- });
45450
- object({
45451
- version: literal("2.0.0"),
45452
- projects: array(FileRepoProjectValidatorV2),
45453
- pipelines: optional(array(SaveLocationValidator), [])
45454
- });
45455
45407
  //#endregion
45456
45408
  //#region ../../node_modules/tsdown/esm-shims.js
45457
45409
  var getFilename, getDirname, __dirname;
@@ -45510,6 +45462,11 @@ function findProjectRoot(startDir) {
45510
45462
  return null;
45511
45463
  }
45512
45464
  const projectRoot = findProjectRoot(_dirname);
45465
+ const CacheFolder = {
45466
+ Actions: "actions",
45467
+ Pipelines: "pipelines",
45468
+ Pacote: "pacote"
45469
+ };
45513
45470
  //#endregion
45514
45471
  //#region ../../packages/core-node/node_modules/ws/lib/constants.js
45515
45472
  var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -151281,7 +151238,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
151281
151238
  console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
151282
151239
  } else throw new Error(`Offline and no local fallback version available for ${packageName}`);
151283
151240
  } else try {
151284
- const cachePath = join(ctx.userDataPath, "cache", "pacote");
151241
+ const cachePath = ctx.getCachePath(CacheFolder.Pacote);
151285
151242
  let packumentPromise = packumentRequests.get(packageName);
151286
151243
  if (!packumentPromise) {
151287
151244
  packumentPromise = import_lib.default.packument(packageName, { cache: cachePath });
@@ -151312,7 +151269,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
151312
151269
  console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
151313
151270
  } else throw error;
151314
151271
  }
151315
- const cachePath = join(ctx.userDataPath, "cache", "pacote");
151272
+ const cachePath = ctx.getCachePath(CacheFolder.Pacote);
151316
151273
  const packageDir = join(baseDir, resolvedVersion);
151317
151274
  const checkStart = Date.now();
151318
151275
  const isInstalled = options?.installDeps ? isPackageComplete(packageDir) && isDependenciesInstalledSync(packageDir) : isPackageComplete(packageDir);
@@ -151389,7 +151346,7 @@ async function runPnpm(cwd, options) {
151389
151346
  ...process.env,
151390
151347
  NODE_ENV: "production",
151391
151348
  PATH: nodePath ? `${dirname(nodePath)}${delimiter}${process.env.PATH}` : process.env.PATH,
151392
- PNPM_HOME: join(ctx.userDataPath, "pnpm"),
151349
+ PNPM_HOME: ctx.getPnpmPath(),
151393
151350
  PNPM_ONLY_ALLOW_TRUSTED_DEPENDENCIES: "false",
151394
151351
  ...extraEnv
151395
151352
  }