@pipelab/plugin-tauri 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(),
@@ -45431,20 +45397,6 @@ var WebSocketError = class extends Error {
45431
45397
  const isWebSocketRequestMessage = (message) => {
45432
45398
  return message && typeof message.channel === "string" && message.requestId;
45433
45399
  };
45434
- object({
45435
- version: literal("1.0.0"),
45436
- data: optional(record(string(), SaveLocationValidator), {})
45437
- });
45438
- const FileRepoProjectValidatorV2 = object({
45439
- id: string(),
45440
- name: string(),
45441
- description: string()
45442
- });
45443
- object({
45444
- version: literal("2.0.0"),
45445
- projects: array(FileRepoProjectValidatorV2),
45446
- pipelines: optional(array(SaveLocationValidator), [])
45447
- });
45448
45400
  //#endregion
45449
45401
  //#region ../../node_modules/tsdown/esm-shims.js
45450
45402
  var getFilename, getDirname, __dirname;
@@ -45488,6 +45440,11 @@ function findProjectRoot(startDir) {
45488
45440
  return null;
45489
45441
  }
45490
45442
  const projectRoot = findProjectRoot(_dirname);
45443
+ const CacheFolder = {
45444
+ Actions: "actions",
45445
+ Pipelines: "pipelines",
45446
+ Pacote: "pacote"
45447
+ };
45491
45448
  //#endregion
45492
45449
  //#region ../../packages/core-node/node_modules/ws/lib/constants.js
45493
45450
  var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -151259,7 +151216,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
151259
151216
  console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
151260
151217
  } else throw new Error(`Offline and no local fallback version available for ${packageName}`);
151261
151218
  } else try {
151262
- const cachePath = join(ctx.userDataPath, "cache", "pacote");
151219
+ const cachePath = ctx.getCachePath(CacheFolder.Pacote);
151263
151220
  let packumentPromise = packumentRequests.get(packageName);
151264
151221
  if (!packumentPromise) {
151265
151222
  packumentPromise = import_lib.default.packument(packageName, { cache: cachePath });
@@ -151290,7 +151247,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
151290
151247
  console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
151291
151248
  } else throw error;
151292
151249
  }
151293
- const cachePath = join(ctx.userDataPath, "cache", "pacote");
151250
+ const cachePath = ctx.getCachePath(CacheFolder.Pacote);
151294
151251
  const packageDir = join(baseDir, resolvedVersion);
151295
151252
  const checkStart = Date.now();
151296
151253
  const isInstalled = options?.installDeps ? isPackageComplete(packageDir) && isDependenciesInstalledSync(packageDir) : isPackageComplete(packageDir);
@@ -151367,7 +151324,7 @@ async function runPnpm(cwd, options) {
151367
151324
  ...process.env,
151368
151325
  NODE_ENV: "production",
151369
151326
  PATH: nodePath ? `${dirname(nodePath)}${delimiter}${process.env.PATH}` : process.env.PATH,
151370
- PNPM_HOME: join(ctx.userDataPath, "pnpm"),
151327
+ PNPM_HOME: ctx.getPnpmPath(),
151371
151328
  PNPM_ONLY_ALLOW_TRUSTED_DEPENDENCIES: "false",
151372
151329
  ...extraEnv
151373
151330
  }