@pipelab/plugin-system 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 +434 -482
- package/dist/index.mjs +48 -96
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -2079,7 +2079,7 @@ const settingsMigratorInternal = createMigrator();
|
|
|
2079
2079
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
2080
2080
|
locale: "en-US",
|
|
2081
2081
|
theme: "light",
|
|
2082
|
-
version: "
|
|
2082
|
+
version: "7.0.0",
|
|
2083
2083
|
autosave: true,
|
|
2084
2084
|
agents: [],
|
|
2085
2085
|
tours: {
|
|
@@ -2092,11 +2092,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2092
2092
|
completed: false
|
|
2093
2093
|
}
|
|
2094
2094
|
},
|
|
2095
|
-
buildHistory: { retentionPolicy: {
|
|
2096
|
-
enabled: false,
|
|
2097
|
-
maxEntries: 50,
|
|
2098
|
-
maxAge: 30
|
|
2099
|
-
} },
|
|
2100
2095
|
plugins: DEFAULT_PLUGINS,
|
|
2101
2096
|
isInternalMigrationBannerClosed: false
|
|
2102
2097
|
});
|
|
@@ -2153,18 +2148,13 @@ settingsMigratorInternal.createMigrations({
|
|
|
2153
2148
|
return {
|
|
2154
2149
|
...rest,
|
|
2155
2150
|
agents: [],
|
|
2156
|
-
buildHistory: { retentionPolicy: {
|
|
2157
|
-
enabled: false,
|
|
2158
|
-
maxEntries: 50,
|
|
2159
|
-
maxAge: 30
|
|
2160
|
-
} },
|
|
2161
2151
|
plugins: DEFAULT_PLUGINS,
|
|
2162
2152
|
isInternalMigrationBannerClosed: false
|
|
2163
2153
|
};
|
|
2164
2154
|
}
|
|
2165
2155
|
}),
|
|
2166
2156
|
createMigration({
|
|
2167
|
-
version: "
|
|
2157
|
+
version: "7.0.0",
|
|
2168
2158
|
up: finalVersion
|
|
2169
2159
|
})
|
|
2170
2160
|
]
|
|
@@ -2183,7 +2173,7 @@ connectionsMigratorInternal.createMigrations({
|
|
|
2183
2173
|
});
|
|
2184
2174
|
const fileRepoMigratorInternal = createMigrator();
|
|
2185
2175
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
2186
|
-
version: "
|
|
2176
|
+
version: "3.0.0",
|
|
2187
2177
|
projects: [{
|
|
2188
2178
|
id: "main",
|
|
2189
2179
|
name: "Default project",
|
|
@@ -2193,30 +2183,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
|
2193
2183
|
});
|
|
2194
2184
|
fileRepoMigratorInternal.createMigrations({
|
|
2195
2185
|
defaultValue: defaultFileRepo,
|
|
2196
|
-
migrations: [
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2186
|
+
migrations: [
|
|
2187
|
+
createMigration({
|
|
2188
|
+
version: "1.0.0",
|
|
2189
|
+
up: (state) => {
|
|
2190
|
+
const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
|
|
2191
|
+
return {
|
|
2192
|
+
...file,
|
|
2193
|
+
id,
|
|
2194
|
+
project: "main"
|
|
2195
|
+
};
|
|
2196
|
+
});
|
|
2200
2197
|
return {
|
|
2201
|
-
...
|
|
2202
|
-
|
|
2203
|
-
|
|
2198
|
+
...state,
|
|
2199
|
+
projects: [{
|
|
2200
|
+
id: "main",
|
|
2201
|
+
name: "Default project",
|
|
2202
|
+
description: "The initial default project"
|
|
2203
|
+
}],
|
|
2204
|
+
pipelines
|
|
2204
2205
|
};
|
|
2205
|
-
}
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
up: finalVersion
|
|
2219
|
-
})]
|
|
2206
|
+
}
|
|
2207
|
+
}),
|
|
2208
|
+
createMigration({
|
|
2209
|
+
version: "2.0.0",
|
|
2210
|
+
up: (state) => {
|
|
2211
|
+
return { ...state };
|
|
2212
|
+
}
|
|
2213
|
+
}),
|
|
2214
|
+
createMigration({
|
|
2215
|
+
version: "3.0.0",
|
|
2216
|
+
up: finalVersion
|
|
2217
|
+
})
|
|
2218
|
+
]
|
|
2220
2219
|
});
|
|
2221
2220
|
const savedFileMigratorInternal = createMigrator();
|
|
2222
2221
|
const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
@@ -2377,14 +2376,19 @@ object({
|
|
|
2377
2376
|
version: literal("1.0.0"),
|
|
2378
2377
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
2379
2378
|
});
|
|
2380
|
-
const FileRepoProjectValidatorV2
|
|
2379
|
+
const FileRepoProjectValidatorV2 = object({
|
|
2381
2380
|
id: string(),
|
|
2382
2381
|
name: string(),
|
|
2383
2382
|
description: string()
|
|
2384
2383
|
});
|
|
2385
2384
|
object({
|
|
2386
2385
|
version: literal("2.0.0"),
|
|
2387
|
-
projects: array(FileRepoProjectValidatorV2
|
|
2386
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2387
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
2388
|
+
});
|
|
2389
|
+
object({
|
|
2390
|
+
version: literal("3.0.0"),
|
|
2391
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2388
2392
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
2389
2393
|
});
|
|
2390
2394
|
object({
|
|
@@ -2493,44 +2497,6 @@ object({
|
|
|
2493
2497
|
name: string(),
|
|
2494
2498
|
url: string()
|
|
2495
2499
|
})),
|
|
2496
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2497
|
-
enabled: boolean(),
|
|
2498
|
-
maxEntries: number(),
|
|
2499
|
-
maxAge: number()
|
|
2500
|
-
}) })
|
|
2501
|
-
});
|
|
2502
|
-
object({
|
|
2503
|
-
theme: union([literal("light"), literal("dark")]),
|
|
2504
|
-
version: literal("8.0.0"),
|
|
2505
|
-
locale: union([
|
|
2506
|
-
literal("en-US"),
|
|
2507
|
-
literal("fr-FR"),
|
|
2508
|
-
literal("pt-BR"),
|
|
2509
|
-
literal("zh-CN"),
|
|
2510
|
-
literal("es-ES"),
|
|
2511
|
-
literal("de-DE")
|
|
2512
|
-
]),
|
|
2513
|
-
tours: object({
|
|
2514
|
-
dashboard: object({
|
|
2515
|
-
step: number(),
|
|
2516
|
-
completed: boolean()
|
|
2517
|
-
}),
|
|
2518
|
-
editor: object({
|
|
2519
|
-
step: number(),
|
|
2520
|
-
completed: boolean()
|
|
2521
|
-
})
|
|
2522
|
-
}),
|
|
2523
|
-
autosave: boolean(),
|
|
2524
|
-
agents: array(object({
|
|
2525
|
-
id: string(),
|
|
2526
|
-
name: string(),
|
|
2527
|
-
url: string()
|
|
2528
|
-
})),
|
|
2529
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2530
|
-
enabled: boolean(),
|
|
2531
|
-
maxEntries: number(),
|
|
2532
|
-
maxAge: number()
|
|
2533
|
-
}) }),
|
|
2534
2500
|
plugins: array(object({
|
|
2535
2501
|
name: string(),
|
|
2536
2502
|
enabled: boolean(),
|
|
@@ -45404,20 +45370,6 @@ var WebSocketError = class extends Error {
|
|
|
45404
45370
|
const isWebSocketRequestMessage = (message) => {
|
|
45405
45371
|
return message && typeof message.channel === "string" && message.requestId;
|
|
45406
45372
|
};
|
|
45407
|
-
object({
|
|
45408
|
-
version: literal("1.0.0"),
|
|
45409
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
45410
|
-
});
|
|
45411
|
-
const FileRepoProjectValidatorV2 = object({
|
|
45412
|
-
id: string(),
|
|
45413
|
-
name: string(),
|
|
45414
|
-
description: string()
|
|
45415
|
-
});
|
|
45416
|
-
object({
|
|
45417
|
-
version: literal("2.0.0"),
|
|
45418
|
-
projects: array(FileRepoProjectValidatorV2),
|
|
45419
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
45420
|
-
});
|
|
45421
45373
|
//#endregion
|
|
45422
45374
|
//#region ../../node_modules/tsdown/esm-shims.js
|
|
45423
45375
|
var getFilename, getDirname, __dirname;
|
|
@@ -144803,9 +144755,9 @@ const createEventRunner = (runner) => runner;
|
|
|
144803
144755
|
const logAction = createAction({
|
|
144804
144756
|
id: "log",
|
|
144805
144757
|
name: "Log",
|
|
144806
|
-
description: "
|
|
144758
|
+
description: "Write a custom message to the execution log.",
|
|
144807
144759
|
icon: "",
|
|
144808
|
-
displayString: "`Log \"${fmt.param(params.message)}\"`",
|
|
144760
|
+
displayString: "`Log message: \"${fmt.param(params.message)}\"`",
|
|
144809
144761
|
meta: {},
|
|
144810
144762
|
params: { message: createStringParam("", {
|
|
144811
144763
|
required: true,
|
|
@@ -144830,9 +144782,9 @@ const manualEvaluator = createEventRunner(async () => {});
|
|
|
144830
144782
|
const alertAction = createAction({
|
|
144831
144783
|
id: "system:alert",
|
|
144832
144784
|
name: "Alert",
|
|
144833
|
-
description: "
|
|
144785
|
+
description: "Display a popup alert dialog with a message.",
|
|
144834
144786
|
icon: "",
|
|
144835
|
-
displayString: "`
|
|
144787
|
+
displayString: "`Show alert: ${fmt.param(params.message ?? 'No message')}`",
|
|
144836
144788
|
meta: {},
|
|
144837
144789
|
params: { message: createStringParam("", {
|
|
144838
144790
|
required: true,
|
|
@@ -144852,9 +144804,9 @@ const alertActionRunner = createActionRunner(async ({ log, inputs, api, setOutpu
|
|
|
144852
144804
|
const promptAction = createAction({
|
|
144853
144805
|
id: "system:prompt",
|
|
144854
144806
|
name: "Prompt",
|
|
144855
|
-
description: "
|
|
144807
|
+
description: "Display a dialog box asking the user to input text.",
|
|
144856
144808
|
icon: "",
|
|
144857
|
-
displayString: "`
|
|
144809
|
+
displayString: "`Ask for input: ${fmt.param(params.message ?? 'No message')}`",
|
|
144858
144810
|
meta: {},
|
|
144859
144811
|
params: { message: createStringParam("", {
|
|
144860
144812
|
required: true,
|
|
@@ -144875,7 +144827,7 @@ const promptActionRunner = createActionRunner(async ({ log, inputs, api, setOutp
|
|
|
144875
144827
|
const sleepAction = createAction({
|
|
144876
144828
|
id: "system:sleep",
|
|
144877
144829
|
name: "Wait",
|
|
144878
|
-
description: "
|
|
144830
|
+
description: "Pause the pipeline execution for a specified duration.",
|
|
144879
144831
|
icon: "",
|
|
144880
144832
|
displayString: "`Wait for ${fmt.param(params.duration)}ms`",
|
|
144881
144833
|
meta: {},
|