@pipelab/plugin-itch 1.0.0-beta.18 → 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
@@ -2092,7 +2092,7 @@ const settingsMigratorInternal = createMigrator();
2092
2092
  const defaultAppSettings = settingsMigratorInternal.createDefault({
2093
2093
  locale: "en-US",
2094
2094
  theme: "light",
2095
- version: "8.0.0",
2095
+ version: "7.0.0",
2096
2096
  autosave: true,
2097
2097
  agents: [],
2098
2098
  tours: {
@@ -2105,11 +2105,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
2105
2105
  completed: false
2106
2106
  }
2107
2107
  },
2108
- buildHistory: { retentionPolicy: {
2109
- enabled: false,
2110
- maxEntries: 50,
2111
- maxAge: 30
2112
- } },
2113
2108
  plugins: DEFAULT_PLUGINS,
2114
2109
  isInternalMigrationBannerClosed: false
2115
2110
  });
@@ -2166,18 +2161,13 @@ settingsMigratorInternal.createMigrations({
2166
2161
  return {
2167
2162
  ...rest,
2168
2163
  agents: [],
2169
- buildHistory: { retentionPolicy: {
2170
- enabled: false,
2171
- maxEntries: 50,
2172
- maxAge: 30
2173
- } },
2174
2164
  plugins: DEFAULT_PLUGINS,
2175
2165
  isInternalMigrationBannerClosed: false
2176
2166
  };
2177
2167
  }
2178
2168
  }),
2179
2169
  createMigration({
2180
- version: "8.0.0",
2170
+ version: "7.0.0",
2181
2171
  up: finalVersion
2182
2172
  })
2183
2173
  ]
@@ -2196,7 +2186,7 @@ connectionsMigratorInternal.createMigrations({
2196
2186
  });
2197
2187
  const fileRepoMigratorInternal = createMigrator();
2198
2188
  const defaultFileRepo = fileRepoMigratorInternal.createDefault({
2199
- version: "2.0.0",
2189
+ version: "3.0.0",
2200
2190
  projects: [{
2201
2191
  id: "main",
2202
2192
  name: "Default project",
@@ -2206,30 +2196,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
2206
2196
  });
2207
2197
  fileRepoMigratorInternal.createMigrations({
2208
2198
  defaultValue: defaultFileRepo,
2209
- migrations: [createMigration({
2210
- version: "1.0.0",
2211
- up: (state) => {
2212
- const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
2199
+ migrations: [
2200
+ createMigration({
2201
+ version: "1.0.0",
2202
+ up: (state) => {
2203
+ const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
2204
+ return {
2205
+ ...file,
2206
+ id,
2207
+ project: "main"
2208
+ };
2209
+ });
2213
2210
  return {
2214
- ...file,
2215
- id,
2216
- project: "main"
2211
+ ...state,
2212
+ projects: [{
2213
+ id: "main",
2214
+ name: "Default project",
2215
+ description: "The initial default project"
2216
+ }],
2217
+ pipelines
2217
2218
  };
2218
- });
2219
- return {
2220
- ...state,
2221
- projects: [{
2222
- id: "main",
2223
- name: "Default project",
2224
- description: "The initial default project"
2225
- }],
2226
- pipelines
2227
- };
2228
- }
2229
- }), createMigration({
2230
- version: "2.0.0",
2231
- up: finalVersion
2232
- })]
2219
+ }
2220
+ }),
2221
+ createMigration({
2222
+ version: "2.0.0",
2223
+ up: (state) => {
2224
+ return { ...state };
2225
+ }
2226
+ }),
2227
+ createMigration({
2228
+ version: "3.0.0",
2229
+ up: finalVersion
2230
+ })
2231
+ ]
2233
2232
  });
2234
2233
  const savedFileMigratorInternal = createMigrator();
2235
2234
  const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
@@ -2390,14 +2389,19 @@ object({
2390
2389
  version: literal("1.0.0"),
2391
2390
  data: optional(record(string(), SaveLocationValidator), {})
2392
2391
  });
2393
- const FileRepoProjectValidatorV2$1 = object({
2392
+ const FileRepoProjectValidatorV2 = object({
2394
2393
  id: string(),
2395
2394
  name: string(),
2396
2395
  description: string()
2397
2396
  });
2398
2397
  object({
2399
2398
  version: literal("2.0.0"),
2400
- projects: array(FileRepoProjectValidatorV2$1),
2399
+ projects: array(FileRepoProjectValidatorV2),
2400
+ pipelines: optional(array(SaveLocationValidator), [])
2401
+ });
2402
+ object({
2403
+ version: literal("3.0.0"),
2404
+ projects: array(FileRepoProjectValidatorV2),
2401
2405
  pipelines: optional(array(SaveLocationValidator), [])
2402
2406
  });
2403
2407
  object({
@@ -2506,44 +2510,6 @@ object({
2506
2510
  name: string(),
2507
2511
  url: string()
2508
2512
  })),
2509
- buildHistory: object({ retentionPolicy: object({
2510
- enabled: boolean(),
2511
- maxEntries: number(),
2512
- maxAge: number()
2513
- }) })
2514
- });
2515
- object({
2516
- theme: union([literal("light"), literal("dark")]),
2517
- version: literal("8.0.0"),
2518
- locale: union([
2519
- literal("en-US"),
2520
- literal("fr-FR"),
2521
- literal("pt-BR"),
2522
- literal("zh-CN"),
2523
- literal("es-ES"),
2524
- literal("de-DE")
2525
- ]),
2526
- tours: object({
2527
- dashboard: object({
2528
- step: number(),
2529
- completed: boolean()
2530
- }),
2531
- editor: object({
2532
- step: number(),
2533
- completed: boolean()
2534
- })
2535
- }),
2536
- autosave: boolean(),
2537
- agents: array(object({
2538
- id: string(),
2539
- name: string(),
2540
- url: string()
2541
- })),
2542
- buildHistory: object({ retentionPolicy: object({
2543
- enabled: boolean(),
2544
- maxEntries: number(),
2545
- maxAge: number()
2546
- }) }),
2547
2513
  plugins: array(object({
2548
2514
  name: string(),
2549
2515
  enabled: boolean(),
@@ -45407,20 +45373,6 @@ var WebSocketError = class extends Error {
45407
45373
  const isWebSocketRequestMessage = (message) => {
45408
45374
  return message && typeof message.channel === "string" && message.requestId;
45409
45375
  };
45410
- object({
45411
- version: literal("1.0.0"),
45412
- data: optional(record(string(), SaveLocationValidator), {})
45413
- });
45414
- const FileRepoProjectValidatorV2 = object({
45415
- id: string(),
45416
- name: string(),
45417
- description: string()
45418
- });
45419
- object({
45420
- version: literal("2.0.0"),
45421
- projects: array(FileRepoProjectValidatorV2),
45422
- pipelines: optional(array(SaveLocationValidator), [])
45423
- });
45424
45376
  //#endregion
45425
45377
  //#region ../../node_modules/tsdown/esm-shims.js
45426
45378
  var getFilename, getDirname, __dirname;
@@ -151195,14 +151147,14 @@ var src_default = createNodeDefinition({
151195
151147
  node: createAction({
151196
151148
  id: "itch-upload",
151197
151149
  name: "Upload to Itch.io",
151198
- description: "",
151150
+ description: "Upload your build directory to Itch.io.",
151199
151151
  icon: "",
151200
151152
  displayString: "`Upload ${fmt.param(params['input-folder'], 'primary', 'No path selected')} to ${fmt.param(params['user'], 'primary', 'No project')}/${fmt.param(params['project'], 'primary', 'No project')}:${fmt.param(params['channel'], 'primary', 'No channel')}`",
151201
151153
  meta: {},
151202
151154
  params: {
151203
151155
  "input-folder": createPathParam("", {
151204
151156
  required: true,
151205
- label: "Folder to Upload",
151157
+ label: "Folder to upload",
151206
151158
  control: {
151207
151159
  type: "path",
151208
151160
  options: { properties: ["openDirectory"] }
@@ -151210,7 +151162,7 @@ var src_default = createNodeDefinition({
151210
151162
  }),
151211
151163
  user: createStringParam("", {
151212
151164
  required: true,
151213
- label: "User"
151165
+ label: "Username"
151214
151166
  }),
151215
151167
  project: createStringParam("", {
151216
151168
  required: true,
@@ -151218,11 +151170,11 @@ var src_default = createNodeDefinition({
151218
151170
  }),
151219
151171
  channel: createStringParam("", {
151220
151172
  required: true,
151221
- label: "Channel"
151173
+ label: "Channel (e.g., windows, mac, web)"
151222
151174
  }),
151223
151175
  "api-key": createStringParam("", {
151224
151176
  required: true,
151225
- label: "API key"
151177
+ label: "API Key"
151226
151178
  })
151227
151179
  },
151228
151180
  outputs: {}