@pipelab/plugin-filesystem 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.cjs +449 -497
- package/dist/index.mjs +45 -93
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
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: "
|
|
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: "
|
|
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: "
|
|
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: [
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
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
|
-
...
|
|
2216
|
-
|
|
2217
|
-
|
|
2212
|
+
...state,
|
|
2213
|
+
projects: [{
|
|
2214
|
+
id: "main",
|
|
2215
|
+
name: "Default project",
|
|
2216
|
+
description: "The initial default project"
|
|
2217
|
+
}],
|
|
2218
|
+
pipelines
|
|
2218
2219
|
};
|
|
2219
|
-
}
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
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
|
|
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
|
|
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(),
|
|
@@ -45408,20 +45374,6 @@ var WebSocketError = class extends Error {
|
|
|
45408
45374
|
const isWebSocketRequestMessage = (message) => {
|
|
45409
45375
|
return message && typeof message.channel === "string" && message.requestId;
|
|
45410
45376
|
};
|
|
45411
|
-
object({
|
|
45412
|
-
version: literal("1.0.0"),
|
|
45413
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
45414
|
-
});
|
|
45415
|
-
const FileRepoProjectValidatorV2 = object({
|
|
45416
|
-
id: string(),
|
|
45417
|
-
name: string(),
|
|
45418
|
-
description: string()
|
|
45419
|
-
});
|
|
45420
|
-
object({
|
|
45421
|
-
version: literal("2.0.0"),
|
|
45422
|
-
projects: array(FileRepoProjectValidatorV2),
|
|
45423
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
45424
|
-
});
|
|
45425
45377
|
//#endregion
|
|
45426
45378
|
//#region ../../node_modules/tsdown/esm-shims.js
|
|
45427
45379
|
var getFilename, getDirname, __dirname;
|
|
@@ -152169,8 +152121,8 @@ const removeRunner = createActionRunner(async ({ log, inputs }) => {
|
|
|
152169
152121
|
});
|
|
152170
152122
|
const run = createAction({
|
|
152171
152123
|
id: "fs:run",
|
|
152172
|
-
name: "
|
|
152173
|
-
displayString: "`
|
|
152124
|
+
name: "Run Command",
|
|
152125
|
+
displayString: "`Run command ${fmt.param(params.command, 'primary')} ${(params.parameters ?? []).map(x => fmt.param(x)).join(' ')}`",
|
|
152174
152126
|
params: {
|
|
152175
152127
|
command: createStringParam("", {
|
|
152176
152128
|
required: true,
|
|
@@ -152189,7 +152141,7 @@ const run = createAction({
|
|
|
152189
152141
|
},
|
|
152190
152142
|
workingDirectory: createPathParam("", {
|
|
152191
152143
|
required: false,
|
|
152192
|
-
description: "The
|
|
152144
|
+
description: "The local folder where the command should execute.",
|
|
152193
152145
|
label: "Working directory",
|
|
152194
152146
|
control: {
|
|
152195
152147
|
type: "path",
|
|
@@ -152223,7 +152175,7 @@ const run = createAction({
|
|
|
152223
152175
|
value: 0
|
|
152224
152176
|
}
|
|
152225
152177
|
},
|
|
152226
|
-
description: "
|
|
152178
|
+
description: "Run a custom system command or executable.",
|
|
152227
152179
|
icon: "",
|
|
152228
152180
|
meta: {}
|
|
152229
152181
|
});
|