@pipelab/cli 2.0.0-beta.17 → 2.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/config-B-M_kmKR.mjs +4 -0
- package/{config-C2_-dWDC.mjs → config-C4SmHbuE.mjs} +53 -22
- package/index.mjs +896 -231
- package/package.json +1 -1
- package/src-5EzZR-UT.mjs +5 -0
- package/{src-IhkP0N4B.mjs → src-CoHipk5y.mjs} +54 -132
- package/src-DU3j_v2A.mjs +3 -0
- package/config-kWOWhsn6.mjs +0 -4
- package/src-CHr-wGNr.mjs +0 -5
- package/src-XVe3IQMi.mjs +0 -3
package/package.json
CHANGED
package/src-5EzZR-UT.mjs
ADDED
|
@@ -2080,7 +2080,7 @@ const settingsMigratorInternal = createMigrator();
|
|
|
2080
2080
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
2081
2081
|
locale: "en-US",
|
|
2082
2082
|
theme: "light",
|
|
2083
|
-
version: "
|
|
2083
|
+
version: "7.0.0",
|
|
2084
2084
|
autosave: true,
|
|
2085
2085
|
agents: [],
|
|
2086
2086
|
tours: {
|
|
@@ -2093,15 +2093,9 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2093
2093
|
completed: false
|
|
2094
2094
|
}
|
|
2095
2095
|
},
|
|
2096
|
-
|
|
2097
|
-
enabled: false,
|
|
2098
|
-
maxEntries: 50,
|
|
2099
|
-
maxAge: 30
|
|
2100
|
-
} },
|
|
2101
|
-
plugins: DEFAULT_PLUGINS,
|
|
2102
|
-
isInternalMigrationBannerClosed: false
|
|
2096
|
+
plugins: DEFAULT_PLUGINS
|
|
2103
2097
|
});
|
|
2104
|
-
const appSettingsMigrator = settingsMigratorInternal.createMigrations({
|
|
2098
|
+
const appSettingsMigrator$1 = settingsMigratorInternal.createMigrations({
|
|
2105
2099
|
defaultValue: defaultAppSettings,
|
|
2106
2100
|
migrations: [
|
|
2107
2101
|
createMigration({
|
|
@@ -2150,22 +2144,17 @@ const appSettingsMigrator = settingsMigratorInternal.createMigrations({
|
|
|
2150
2144
|
createMigration({
|
|
2151
2145
|
version: "6.0.0",
|
|
2152
2146
|
up: (state) => {
|
|
2153
|
-
const { cacheFolder
|
|
2147
|
+
const { cacheFolder, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
2154
2148
|
return {
|
|
2155
2149
|
...rest,
|
|
2150
|
+
cacheFolder,
|
|
2156
2151
|
agents: [],
|
|
2157
|
-
|
|
2158
|
-
enabled: false,
|
|
2159
|
-
maxEntries: 50,
|
|
2160
|
-
maxAge: 30
|
|
2161
|
-
} },
|
|
2162
|
-
plugins: DEFAULT_PLUGINS,
|
|
2163
|
-
isInternalMigrationBannerClosed: false
|
|
2152
|
+
plugins: DEFAULT_PLUGINS
|
|
2164
2153
|
};
|
|
2165
2154
|
}
|
|
2166
2155
|
}),
|
|
2167
2156
|
createMigration({
|
|
2168
|
-
version: "
|
|
2157
|
+
version: "7.0.0",
|
|
2169
2158
|
up: finalVersion
|
|
2170
2159
|
})
|
|
2171
2160
|
]
|
|
@@ -2175,7 +2164,7 @@ const defaultConnections = connectionsMigratorInternal.createDefault({
|
|
|
2175
2164
|
version: "1.0.0",
|
|
2176
2165
|
connections: []
|
|
2177
2166
|
});
|
|
2178
|
-
const connectionsMigrator = connectionsMigratorInternal.createMigrations({
|
|
2167
|
+
const connectionsMigrator$1 = connectionsMigratorInternal.createMigrations({
|
|
2179
2168
|
defaultValue: defaultConnections,
|
|
2180
2169
|
migrations: [createMigration({
|
|
2181
2170
|
version: "1.0.0",
|
|
@@ -2184,7 +2173,7 @@ const connectionsMigrator = connectionsMigratorInternal.createMigrations({
|
|
|
2184
2173
|
});
|
|
2185
2174
|
const fileRepoMigratorInternal = createMigrator();
|
|
2186
2175
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
2187
|
-
version: "
|
|
2176
|
+
version: "3.0.0",
|
|
2188
2177
|
projects: [{
|
|
2189
2178
|
id: "main",
|
|
2190
2179
|
name: "Default project",
|
|
@@ -2192,32 +2181,41 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
|
2192
2181
|
}],
|
|
2193
2182
|
pipelines: []
|
|
2194
2183
|
});
|
|
2195
|
-
const fileRepoMigrations = fileRepoMigratorInternal.createMigrations({
|
|
2184
|
+
const fileRepoMigrations$1 = fileRepoMigratorInternal.createMigrations({
|
|
2196
2185
|
defaultValue: defaultFileRepo,
|
|
2197
|
-
migrations: [
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
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
|
+
});
|
|
2201
2197
|
return {
|
|
2202
|
-
...
|
|
2203
|
-
|
|
2204
|
-
|
|
2198
|
+
...state,
|
|
2199
|
+
projects: [{
|
|
2200
|
+
id: "main",
|
|
2201
|
+
name: "Default project",
|
|
2202
|
+
description: "The initial default project"
|
|
2203
|
+
}],
|
|
2204
|
+
pipelines
|
|
2205
2205
|
};
|
|
2206
|
-
}
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
up: finalVersion
|
|
2220
|
-
})]
|
|
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
|
+
]
|
|
2221
2219
|
});
|
|
2222
2220
|
const savedFileMigratorInternal = createMigrator();
|
|
2223
2221
|
const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
@@ -2345,37 +2343,6 @@ const getStrictPluginId = (pluginId) => {
|
|
|
2345
2343
|
if (!pluginId) return pluginId;
|
|
2346
2344
|
return LEGACY_ID_MAP[pluginId] || pluginId;
|
|
2347
2345
|
};
|
|
2348
|
-
const normalizeBlockPluginId = (block) => {
|
|
2349
|
-
if (!block) return false;
|
|
2350
|
-
let changed = false;
|
|
2351
|
-
if (block.origin?.pluginId) {
|
|
2352
|
-
const strictId = getStrictPluginId(block.origin.pluginId);
|
|
2353
|
-
if (block.origin.pluginId !== strictId) {
|
|
2354
|
-
block.origin.pluginId = strictId;
|
|
2355
|
-
changed = true;
|
|
2356
|
-
}
|
|
2357
|
-
}
|
|
2358
|
-
return changed;
|
|
2359
|
-
};
|
|
2360
|
-
const normalizePipelineConfig$1 = (state) => {
|
|
2361
|
-
if (!state) return false;
|
|
2362
|
-
let changed = false;
|
|
2363
|
-
if (state.type === "default" && state.canvas) {
|
|
2364
|
-
if (Array.isArray(state.canvas.blocks)) {
|
|
2365
|
-
for (const block of state.canvas.blocks) if (normalizeBlockPluginId(block)) changed = true;
|
|
2366
|
-
}
|
|
2367
|
-
if (Array.isArray(state.canvas.triggers)) {
|
|
2368
|
-
for (const trigger of state.canvas.triggers) if (normalizeBlockPluginId(trigger)) changed = true;
|
|
2369
|
-
}
|
|
2370
|
-
}
|
|
2371
|
-
return changed;
|
|
2372
|
-
};
|
|
2373
|
-
const configRegistry$1 = {
|
|
2374
|
-
settings: appSettingsMigrator,
|
|
2375
|
-
projects: fileRepoMigrations,
|
|
2376
|
-
pipeline: savedFileMigrator$1,
|
|
2377
|
-
connections: connectionsMigrator
|
|
2378
|
-
};
|
|
2379
2346
|
//#endregion
|
|
2380
2347
|
//#region ../../packages/shared/src/save-location.ts
|
|
2381
2348
|
const SaveLocationInternalValidator = object({
|
|
@@ -2412,14 +2379,19 @@ object({
|
|
|
2412
2379
|
version: literal("1.0.0"),
|
|
2413
2380
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
2414
2381
|
});
|
|
2415
|
-
const FileRepoProjectValidatorV2
|
|
2382
|
+
const FileRepoProjectValidatorV2 = object({
|
|
2416
2383
|
id: string(),
|
|
2417
2384
|
name: string(),
|
|
2418
2385
|
description: string()
|
|
2419
2386
|
});
|
|
2420
2387
|
object({
|
|
2421
2388
|
version: literal("2.0.0"),
|
|
2422
|
-
projects: array(FileRepoProjectValidatorV2
|
|
2389
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2390
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
2391
|
+
});
|
|
2392
|
+
object({
|
|
2393
|
+
version: literal("3.0.0"),
|
|
2394
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2423
2395
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
2424
2396
|
});
|
|
2425
2397
|
object({
|
|
@@ -2528,50 +2500,13 @@ object({
|
|
|
2528
2500
|
name: string(),
|
|
2529
2501
|
url: string()
|
|
2530
2502
|
})),
|
|
2531
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2532
|
-
enabled: boolean(),
|
|
2533
|
-
maxEntries: number(),
|
|
2534
|
-
maxAge: number()
|
|
2535
|
-
}) })
|
|
2536
|
-
});
|
|
2537
|
-
object({
|
|
2538
|
-
theme: union([literal("light"), literal("dark")]),
|
|
2539
|
-
version: literal("8.0.0"),
|
|
2540
|
-
locale: union([
|
|
2541
|
-
literal("en-US"),
|
|
2542
|
-
literal("fr-FR"),
|
|
2543
|
-
literal("pt-BR"),
|
|
2544
|
-
literal("zh-CN"),
|
|
2545
|
-
literal("es-ES"),
|
|
2546
|
-
literal("de-DE")
|
|
2547
|
-
]),
|
|
2548
|
-
tours: object({
|
|
2549
|
-
dashboard: object({
|
|
2550
|
-
step: number(),
|
|
2551
|
-
completed: boolean()
|
|
2552
|
-
}),
|
|
2553
|
-
editor: object({
|
|
2554
|
-
step: number(),
|
|
2555
|
-
completed: boolean()
|
|
2556
|
-
})
|
|
2557
|
-
}),
|
|
2558
|
-
autosave: boolean(),
|
|
2559
|
-
agents: array(object({
|
|
2560
|
-
id: string(),
|
|
2561
|
-
name: string(),
|
|
2562
|
-
url: string()
|
|
2563
|
-
})),
|
|
2564
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2565
|
-
enabled: boolean(),
|
|
2566
|
-
maxEntries: number(),
|
|
2567
|
-
maxAge: number()
|
|
2568
|
-
}) }),
|
|
2569
2503
|
plugins: array(object({
|
|
2570
2504
|
name: string(),
|
|
2571
2505
|
enabled: boolean(),
|
|
2572
2506
|
description: string()
|
|
2573
2507
|
})),
|
|
2574
|
-
|
|
2508
|
+
cacheFolder: optional(string()),
|
|
2509
|
+
tempFolder: optional(string())
|
|
2575
2510
|
});
|
|
2576
2511
|
const ConnectionValidator = looseObject({
|
|
2577
2512
|
id: string(),
|
|
@@ -32428,24 +32363,11 @@ var WebSocketError = class extends Error {
|
|
|
32428
32363
|
const isWebSocketRequestMessage = (message) => {
|
|
32429
32364
|
return message && typeof message.channel === "string" && message.requestId;
|
|
32430
32365
|
};
|
|
32431
|
-
object({
|
|
32432
|
-
version: literal("1.0.0"),
|
|
32433
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
32434
|
-
});
|
|
32435
|
-
const FileRepoProjectValidatorV2 = object({
|
|
32436
|
-
id: string(),
|
|
32437
|
-
name: string(),
|
|
32438
|
-
description: string()
|
|
32439
|
-
});
|
|
32440
|
-
object({
|
|
32441
|
-
version: literal("2.0.0"),
|
|
32442
|
-
projects: array(FileRepoProjectValidatorV2),
|
|
32443
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
32444
|
-
});
|
|
32445
32366
|
//#endregion
|
|
32446
32367
|
//#region ../../packages/shared/src/index.ts
|
|
32368
|
+
const appSettingsMigrator = appSettingsMigrator$1;
|
|
32369
|
+
const fileRepoMigrations = fileRepoMigrations$1;
|
|
32447
32370
|
const savedFileMigrator = savedFileMigrator$1;
|
|
32448
|
-
const
|
|
32449
|
-
const normalizePipelineConfig = normalizePipelineConfig$1;
|
|
32371
|
+
const connectionsMigrator = connectionsMigrator$1;
|
|
32450
32372
|
//#endregion
|
|
32451
|
-
export {
|
|
32373
|
+
export { SaveLocationValidator as A, fmt as C, SaveLocationExternalValidator as D, FileRepoProjectValidatorV2 as E, SaveLocationInternalValidator as O, createQuickJsFromVariant as S, ConnectionValidator as T, VariableValidatorV1 as _, WebSocketError as a, makeResolvedParams as b, transformUrl as c, SubscriptionRequiredError as d, usePlugins as f, SavedFileSimpleValidatorV4 as g, SavedFileDefaultValidatorV4 as h, savedFileMigrator as i, SaveLocationPipelabCloudValidator as k, isSupabaseAvailable as l, OriginValidator as m, connectionsMigrator as n, isWebSocketRequestMessage as o, EditorParamValidatorV3 as p, fileRepoMigrations as r, isRequired as s, appSettingsMigrator as t, supabase as u, processGraph as v, useLogger as w, createQuickJs as x, variableToFormattedVariable as y };
|
package/src-DU3j_v2A.mjs
ADDED
package/config-kWOWhsn6.mjs
DELETED
package/src-CHr-wGNr.mjs
DELETED
package/src-XVe3IQMi.mjs
DELETED