@pipelab/plugin-netlify 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(),
@@ -45422,20 +45388,6 @@ var WebSocketError = class extends Error {
45422
45388
  const isWebSocketRequestMessage = (message) => {
45423
45389
  return message && typeof message.channel === "string" && message.requestId;
45424
45390
  };
45425
- object({
45426
- version: literal("1.0.0"),
45427
- data: optional(record(string(), SaveLocationValidator), {})
45428
- });
45429
- const FileRepoProjectValidatorV2 = object({
45430
- id: string(),
45431
- name: string(),
45432
- description: string()
45433
- });
45434
- object({
45435
- version: literal("2.0.0"),
45436
- projects: array(FileRepoProjectValidatorV2),
45437
- pipelines: optional(array(SaveLocationValidator), [])
45438
- });
45439
45391
  //#endregion
45440
45392
  //#region ../../node_modules/tsdown/esm-shims.js
45441
45393
  var getFilename, getDirname, __dirname;
@@ -45467,6 +45419,11 @@ function findProjectRoot(startDir) {
45467
45419
  return null;
45468
45420
  }
45469
45421
  const projectRoot = findProjectRoot(_dirname);
45422
+ const CacheFolder = {
45423
+ Actions: "actions",
45424
+ Pipelines: "pipelines",
45425
+ Pacote: "pacote"
45426
+ };
45470
45427
  //#endregion
45471
45428
  //#region ../../packages/core-node/node_modules/ws/lib/constants.js
45472
45429
  var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -151208,7 +151165,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
151208
151165
  console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
151209
151166
  } else throw new Error(`Offline and no local fallback version available for ${packageName}`);
151210
151167
  } else try {
151211
- const cachePath = join(ctx.userDataPath, "cache", "pacote");
151168
+ const cachePath = ctx.getCachePath(CacheFolder.Pacote);
151212
151169
  let packumentPromise = packumentRequests.get(packageName);
151213
151170
  if (!packumentPromise) {
151214
151171
  packumentPromise = import_lib.default.packument(packageName, { cache: cachePath });
@@ -151239,7 +151196,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
151239
151196
  console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
151240
151197
  } else throw error;
151241
151198
  }
151242
- const cachePath = join(ctx.userDataPath, "cache", "pacote");
151199
+ const cachePath = ctx.getCachePath(CacheFolder.Pacote);
151243
151200
  const packageDir = join(baseDir, resolvedVersion);
151244
151201
  const checkStart = Date.now();
151245
151202
  const isInstalled = options?.installDeps ? isPackageComplete(packageDir) && isDependenciesInstalledSync(packageDir) : isPackageComplete(packageDir);
@@ -151316,7 +151273,7 @@ async function runPnpm(cwd, options) {
151316
151273
  ...process.env,
151317
151274
  NODE_ENV: "production",
151318
151275
  PATH: nodePath ? `${dirname(nodePath)}${delimiter}${process.env.PATH}` : process.env.PATH,
151319
- PNPM_HOME: join(ctx.userDataPath, "pnpm"),
151276
+ PNPM_HOME: ctx.getPnpmPath(),
151320
151277
  PNPM_ONLY_ALLOW_TRUSTED_DEPENDENCIES: "false",
151321
151278
  ...extraEnv
151322
151279
  }
@@ -151589,14 +151546,14 @@ const fileExists = async (path) => {
151589
151546
  const uploadToNetlify = createAction({
151590
151547
  id: "netlify-upload",
151591
151548
  name: "Upload to Netlify",
151592
- description: "",
151549
+ description: "Deploy your web application or static folder directly to Netlify.",
151593
151550
  icon: "",
151594
151551
  displayString: "`Upload ${fmt.param(params['input-folder'], 'primary', 'No path selected')} to ${fmt.param(params['site'], 'primary', 'No site')}`",
151595
151552
  meta: {},
151596
151553
  params: {
151597
151554
  "input-folder": createPathParam("", {
151598
151555
  required: true,
151599
- label: "Path to the folder to upload to netlify",
151556
+ label: "Folder to deploy",
151600
151557
  control: {
151601
151558
  type: "path",
151602
151559
  options: { properties: ["openDirectory"] }
@@ -151604,11 +151561,11 @@ const uploadToNetlify = createAction({
151604
151561
  }),
151605
151562
  token: createStringParam("", {
151606
151563
  required: true,
151607
- label: "Token"
151564
+ label: "Personal Access Token"
151608
151565
  }),
151609
151566
  site: createNetlifySiteParam("", "token", {
151610
151567
  required: true,
151611
- label: "Site"
151568
+ label: "Netlify Site"
151612
151569
  })
151613
151570
  },
151614
151571
  outputs: {}
@@ -151668,14 +151625,14 @@ var src_default = createNodeDefinition({
151668
151625
  node: createAction({
151669
151626
  id: "netlify-build",
151670
151627
  name: "Build Netlify site",
151671
- description: "",
151628
+ description: "Build your Netlify site.",
151672
151629
  icon: "",
151673
151630
  displayString: "`Build ${fmt.param(params['input-folder'], 'primary', 'No path selected')}`",
151674
151631
  meta: {},
151675
151632
  params: {
151676
151633
  "input-folder": createPathParam("", {
151677
151634
  required: true,
151678
- label: "Path to the folder to upload to netlify",
151635
+ label: "Folder to build",
151679
151636
  control: {
151680
151637
  type: "path",
151681
151638
  options: { properties: ["openDirectory"] }
@@ -151683,7 +151640,7 @@ var src_default = createNodeDefinition({
151683
151640
  }),
151684
151641
  token: createStringParam("", {
151685
151642
  required: true,
151686
- label: "Token"
151643
+ label: "Personal Access Token"
151687
151644
  })
151688
151645
  },
151689
151646
  outputs: {}