@pipelab/plugin-minify 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
@@ -4424,7 +4424,7 @@ const settingsMigratorInternal = createMigrator();
4424
4424
  const defaultAppSettings = settingsMigratorInternal.createDefault({
4425
4425
  locale: "en-US",
4426
4426
  theme: "light",
4427
- version: "8.0.0",
4427
+ version: "7.0.0",
4428
4428
  autosave: true,
4429
4429
  agents: [],
4430
4430
  tours: {
@@ -4437,11 +4437,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
4437
4437
  completed: false
4438
4438
  }
4439
4439
  },
4440
- buildHistory: { retentionPolicy: {
4441
- enabled: false,
4442
- maxEntries: 50,
4443
- maxAge: 30
4444
- } },
4445
4440
  plugins: DEFAULT_PLUGINS,
4446
4441
  isInternalMigrationBannerClosed: false
4447
4442
  });
@@ -4498,18 +4493,13 @@ settingsMigratorInternal.createMigrations({
4498
4493
  return {
4499
4494
  ...rest,
4500
4495
  agents: [],
4501
- buildHistory: { retentionPolicy: {
4502
- enabled: false,
4503
- maxEntries: 50,
4504
- maxAge: 30
4505
- } },
4506
4496
  plugins: DEFAULT_PLUGINS,
4507
4497
  isInternalMigrationBannerClosed: false
4508
4498
  };
4509
4499
  }
4510
4500
  }),
4511
4501
  createMigration({
4512
- version: "8.0.0",
4502
+ version: "7.0.0",
4513
4503
  up: finalVersion
4514
4504
  })
4515
4505
  ]
@@ -4528,7 +4518,7 @@ connectionsMigratorInternal.createMigrations({
4528
4518
  });
4529
4519
  const fileRepoMigratorInternal = createMigrator();
4530
4520
  const defaultFileRepo = fileRepoMigratorInternal.createDefault({
4531
- version: "2.0.0",
4521
+ version: "3.0.0",
4532
4522
  projects: [{
4533
4523
  id: "main",
4534
4524
  name: "Default project",
@@ -4538,30 +4528,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
4538
4528
  });
4539
4529
  fileRepoMigratorInternal.createMigrations({
4540
4530
  defaultValue: defaultFileRepo,
4541
- migrations: [createMigration({
4542
- version: "1.0.0",
4543
- up: (state) => {
4544
- const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
4531
+ migrations: [
4532
+ createMigration({
4533
+ version: "1.0.0",
4534
+ up: (state) => {
4535
+ const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
4536
+ return {
4537
+ ...file,
4538
+ id,
4539
+ project: "main"
4540
+ };
4541
+ });
4545
4542
  return {
4546
- ...file,
4547
- id,
4548
- project: "main"
4543
+ ...state,
4544
+ projects: [{
4545
+ id: "main",
4546
+ name: "Default project",
4547
+ description: "The initial default project"
4548
+ }],
4549
+ pipelines
4549
4550
  };
4550
- });
4551
- return {
4552
- ...state,
4553
- projects: [{
4554
- id: "main",
4555
- name: "Default project",
4556
- description: "The initial default project"
4557
- }],
4558
- pipelines
4559
- };
4560
- }
4561
- }), createMigration({
4562
- version: "2.0.0",
4563
- up: finalVersion
4564
- })]
4551
+ }
4552
+ }),
4553
+ createMigration({
4554
+ version: "2.0.0",
4555
+ up: (state) => {
4556
+ return { ...state };
4557
+ }
4558
+ }),
4559
+ createMigration({
4560
+ version: "3.0.0",
4561
+ up: finalVersion
4562
+ })
4563
+ ]
4565
4564
  });
4566
4565
  const savedFileMigratorInternal = createMigrator();
4567
4566
  const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
@@ -4722,14 +4721,19 @@ object({
4722
4721
  version: literal("1.0.0"),
4723
4722
  data: optional(record(string(), SaveLocationValidator), {})
4724
4723
  });
4725
- const FileRepoProjectValidatorV2$1 = object({
4724
+ const FileRepoProjectValidatorV2 = object({
4726
4725
  id: string(),
4727
4726
  name: string(),
4728
4727
  description: string()
4729
4728
  });
4730
4729
  object({
4731
4730
  version: literal("2.0.0"),
4732
- projects: array(FileRepoProjectValidatorV2$1),
4731
+ projects: array(FileRepoProjectValidatorV2),
4732
+ pipelines: optional(array(SaveLocationValidator), [])
4733
+ });
4734
+ object({
4735
+ version: literal("3.0.0"),
4736
+ projects: array(FileRepoProjectValidatorV2),
4733
4737
  pipelines: optional(array(SaveLocationValidator), [])
4734
4738
  });
4735
4739
  object({
@@ -4838,44 +4842,6 @@ object({
4838
4842
  name: string(),
4839
4843
  url: string()
4840
4844
  })),
4841
- buildHistory: object({ retentionPolicy: object({
4842
- enabled: boolean(),
4843
- maxEntries: number(),
4844
- maxAge: number()
4845
- }) })
4846
- });
4847
- object({
4848
- theme: union([literal("light"), literal("dark")]),
4849
- version: literal("8.0.0"),
4850
- locale: union([
4851
- literal("en-US"),
4852
- literal("fr-FR"),
4853
- literal("pt-BR"),
4854
- literal("zh-CN"),
4855
- literal("es-ES"),
4856
- literal("de-DE")
4857
- ]),
4858
- tours: object({
4859
- dashboard: object({
4860
- step: number(),
4861
- completed: boolean()
4862
- }),
4863
- editor: object({
4864
- step: number(),
4865
- completed: boolean()
4866
- })
4867
- }),
4868
- autosave: boolean(),
4869
- agents: array(object({
4870
- id: string(),
4871
- name: string(),
4872
- url: string()
4873
- })),
4874
- buildHistory: object({ retentionPolicy: object({
4875
- enabled: boolean(),
4876
- maxEntries: number(),
4877
- maxAge: number()
4878
- }) }),
4879
4845
  plugins: array(object({
4880
4846
  name: string(),
4881
4847
  enabled: boolean(),
@@ -47729,20 +47695,6 @@ var WebSocketError = class extends Error {
47729
47695
  const isWebSocketRequestMessage = (message) => {
47730
47696
  return message && typeof message.channel === "string" && message.requestId;
47731
47697
  };
47732
- object({
47733
- version: literal("1.0.0"),
47734
- data: optional(record(string(), SaveLocationValidator), {})
47735
- });
47736
- const FileRepoProjectValidatorV2 = object({
47737
- id: string(),
47738
- name: string(),
47739
- description: string()
47740
- });
47741
- object({
47742
- version: literal("2.0.0"),
47743
- projects: array(FileRepoProjectValidatorV2),
47744
- pipelines: optional(array(SaveLocationValidator), [])
47745
- });
47746
47698
  //#endregion
47747
47699
  //#region ../../packages/constants/src/index.ts
47748
47700
  const websocketPort = 33753;
@@ -147119,13 +147071,13 @@ const createActionRunner = (runner) => runner;
147119
147071
  const minifyCode = createAction({
147120
147072
  id: "minify:code",
147121
147073
  name: "Minify code",
147122
- description: "",
147074
+ description: "Compress and optimize JavaScript code files inside a folder.",
147123
147075
  icon: "",
147124
- displayString: "`Minify code`",
147076
+ displayString: "`Optimize code in ${fmt.param(params['input-folder'], 'primary', 'No folder selected')}`",
147125
147077
  meta: {},
147126
147078
  params: { "input-folder": createPathParam("", {
147127
147079
  required: true,
147128
- label: "Folder to compress",
147080
+ label: "Folder to optimize",
147129
147081
  control: {
147130
147082
  type: "path",
147131
147083
  options: { properties: ["openDirectory"] }
@@ -147160,13 +147112,13 @@ const minifyCodeRunner = createActionRunner(async ({ log, inputs, cwd, abortSign
147160
147112
  const minifyImages = createAction({
147161
147113
  id: "minify:images",
147162
147114
  name: "Minify images",
147163
- description: "",
147115
+ description: "Optimize and reduce the file size of images in a folder.",
147164
147116
  icon: "",
147165
- displayString: "`Minify`",
147117
+ displayString: "`Optimize images in ${fmt.param(params['input-folder'], 'primary', 'No folder selected')}`",
147166
147118
  meta: {},
147167
147119
  params: { "input-folder": createPathParam("", {
147168
147120
  required: true,
147169
- label: "Folder to Upload",
147121
+ label: "Folder to optimize",
147170
147122
  control: {
147171
147123
  type: "path",
147172
147124
  options: { properties: ["openDirectory"] }