@pipelab/plugin-construct 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 +459 -502
- package/dist/index.mjs +51 -94
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -2094,7 +2094,7 @@ const settingsMigratorInternal = createMigrator();
|
|
|
2094
2094
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
2095
2095
|
locale: "en-US",
|
|
2096
2096
|
theme: "light",
|
|
2097
|
-
version: "
|
|
2097
|
+
version: "7.0.0",
|
|
2098
2098
|
autosave: true,
|
|
2099
2099
|
agents: [],
|
|
2100
2100
|
tours: {
|
|
@@ -2107,11 +2107,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2107
2107
|
completed: false
|
|
2108
2108
|
}
|
|
2109
2109
|
},
|
|
2110
|
-
buildHistory: { retentionPolicy: {
|
|
2111
|
-
enabled: false,
|
|
2112
|
-
maxEntries: 50,
|
|
2113
|
-
maxAge: 30
|
|
2114
|
-
} },
|
|
2115
2110
|
plugins: DEFAULT_PLUGINS,
|
|
2116
2111
|
isInternalMigrationBannerClosed: false
|
|
2117
2112
|
});
|
|
@@ -2168,18 +2163,13 @@ settingsMigratorInternal.createMigrations({
|
|
|
2168
2163
|
return {
|
|
2169
2164
|
...rest,
|
|
2170
2165
|
agents: [],
|
|
2171
|
-
buildHistory: { retentionPolicy: {
|
|
2172
|
-
enabled: false,
|
|
2173
|
-
maxEntries: 50,
|
|
2174
|
-
maxAge: 30
|
|
2175
|
-
} },
|
|
2176
2166
|
plugins: DEFAULT_PLUGINS,
|
|
2177
2167
|
isInternalMigrationBannerClosed: false
|
|
2178
2168
|
};
|
|
2179
2169
|
}
|
|
2180
2170
|
}),
|
|
2181
2171
|
createMigration({
|
|
2182
|
-
version: "
|
|
2172
|
+
version: "7.0.0",
|
|
2183
2173
|
up: finalVersion
|
|
2184
2174
|
})
|
|
2185
2175
|
]
|
|
@@ -2198,7 +2188,7 @@ connectionsMigratorInternal.createMigrations({
|
|
|
2198
2188
|
});
|
|
2199
2189
|
const fileRepoMigratorInternal = createMigrator();
|
|
2200
2190
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
2201
|
-
version: "
|
|
2191
|
+
version: "3.0.0",
|
|
2202
2192
|
projects: [{
|
|
2203
2193
|
id: "main",
|
|
2204
2194
|
name: "Default project",
|
|
@@ -2208,30 +2198,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
|
2208
2198
|
});
|
|
2209
2199
|
fileRepoMigratorInternal.createMigrations({
|
|
2210
2200
|
defaultValue: defaultFileRepo,
|
|
2211
|
-
migrations: [
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2201
|
+
migrations: [
|
|
2202
|
+
createMigration({
|
|
2203
|
+
version: "1.0.0",
|
|
2204
|
+
up: (state) => {
|
|
2205
|
+
const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
|
|
2206
|
+
return {
|
|
2207
|
+
...file,
|
|
2208
|
+
id,
|
|
2209
|
+
project: "main"
|
|
2210
|
+
};
|
|
2211
|
+
});
|
|
2215
2212
|
return {
|
|
2216
|
-
...
|
|
2217
|
-
|
|
2218
|
-
|
|
2213
|
+
...state,
|
|
2214
|
+
projects: [{
|
|
2215
|
+
id: "main",
|
|
2216
|
+
name: "Default project",
|
|
2217
|
+
description: "The initial default project"
|
|
2218
|
+
}],
|
|
2219
|
+
pipelines
|
|
2219
2220
|
};
|
|
2220
|
-
}
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
up: finalVersion
|
|
2234
|
-
})]
|
|
2221
|
+
}
|
|
2222
|
+
}),
|
|
2223
|
+
createMigration({
|
|
2224
|
+
version: "2.0.0",
|
|
2225
|
+
up: (state) => {
|
|
2226
|
+
return { ...state };
|
|
2227
|
+
}
|
|
2228
|
+
}),
|
|
2229
|
+
createMigration({
|
|
2230
|
+
version: "3.0.0",
|
|
2231
|
+
up: finalVersion
|
|
2232
|
+
})
|
|
2233
|
+
]
|
|
2235
2234
|
});
|
|
2236
2235
|
const savedFileMigratorInternal = createMigrator();
|
|
2237
2236
|
const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
@@ -2392,14 +2391,19 @@ object({
|
|
|
2392
2391
|
version: literal("1.0.0"),
|
|
2393
2392
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
2394
2393
|
});
|
|
2395
|
-
const FileRepoProjectValidatorV2
|
|
2394
|
+
const FileRepoProjectValidatorV2 = object({
|
|
2396
2395
|
id: string(),
|
|
2397
2396
|
name: string(),
|
|
2398
2397
|
description: string()
|
|
2399
2398
|
});
|
|
2400
2399
|
object({
|
|
2401
2400
|
version: literal("2.0.0"),
|
|
2402
|
-
projects: array(FileRepoProjectValidatorV2
|
|
2401
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2402
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
2403
|
+
});
|
|
2404
|
+
object({
|
|
2405
|
+
version: literal("3.0.0"),
|
|
2406
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2403
2407
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
2404
2408
|
});
|
|
2405
2409
|
object({
|
|
@@ -2508,44 +2512,6 @@ object({
|
|
|
2508
2512
|
name: string(),
|
|
2509
2513
|
url: string()
|
|
2510
2514
|
})),
|
|
2511
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2512
|
-
enabled: boolean(),
|
|
2513
|
-
maxEntries: number(),
|
|
2514
|
-
maxAge: number()
|
|
2515
|
-
}) })
|
|
2516
|
-
});
|
|
2517
|
-
object({
|
|
2518
|
-
theme: union([literal("light"), literal("dark")]),
|
|
2519
|
-
version: literal("8.0.0"),
|
|
2520
|
-
locale: union([
|
|
2521
|
-
literal("en-US"),
|
|
2522
|
-
literal("fr-FR"),
|
|
2523
|
-
literal("pt-BR"),
|
|
2524
|
-
literal("zh-CN"),
|
|
2525
|
-
literal("es-ES"),
|
|
2526
|
-
literal("de-DE")
|
|
2527
|
-
]),
|
|
2528
|
-
tours: object({
|
|
2529
|
-
dashboard: object({
|
|
2530
|
-
step: number(),
|
|
2531
|
-
completed: boolean()
|
|
2532
|
-
}),
|
|
2533
|
-
editor: object({
|
|
2534
|
-
step: number(),
|
|
2535
|
-
completed: boolean()
|
|
2536
|
-
})
|
|
2537
|
-
}),
|
|
2538
|
-
autosave: boolean(),
|
|
2539
|
-
agents: array(object({
|
|
2540
|
-
id: string(),
|
|
2541
|
-
name: string(),
|
|
2542
|
-
url: string()
|
|
2543
|
-
})),
|
|
2544
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2545
|
-
enabled: boolean(),
|
|
2546
|
-
maxEntries: number(),
|
|
2547
|
-
maxAge: number()
|
|
2548
|
-
}) }),
|
|
2549
2515
|
plugins: array(object({
|
|
2550
2516
|
name: string(),
|
|
2551
2517
|
enabled: boolean(),
|
|
@@ -45432,20 +45398,6 @@ var WebSocketError = class extends Error {
|
|
|
45432
45398
|
const isWebSocketRequestMessage = (message) => {
|
|
45433
45399
|
return message && typeof message.channel === "string" && message.requestId;
|
|
45434
45400
|
};
|
|
45435
|
-
object({
|
|
45436
|
-
version: literal("1.0.0"),
|
|
45437
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
45438
|
-
});
|
|
45439
|
-
const FileRepoProjectValidatorV2 = object({
|
|
45440
|
-
id: string(),
|
|
45441
|
-
name: string(),
|
|
45442
|
-
description: string()
|
|
45443
|
-
});
|
|
45444
|
-
object({
|
|
45445
|
-
version: literal("2.0.0"),
|
|
45446
|
-
projects: array(FileRepoProjectValidatorV2),
|
|
45447
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
45448
|
-
});
|
|
45449
45401
|
//#endregion
|
|
45450
45402
|
//#region ../../node_modules/tsdown/esm-shims.js
|
|
45451
45403
|
var getFilename, getDirname, __dirname;
|
|
@@ -45477,6 +45429,11 @@ function findProjectRoot(startDir) {
|
|
|
45477
45429
|
return null;
|
|
45478
45430
|
}
|
|
45479
45431
|
const projectRoot = findProjectRoot(_dirname);
|
|
45432
|
+
const CacheFolder = {
|
|
45433
|
+
Actions: "actions",
|
|
45434
|
+
Pipelines: "pipelines",
|
|
45435
|
+
Pacote: "pacote"
|
|
45436
|
+
};
|
|
45480
45437
|
//#endregion
|
|
45481
45438
|
//#region ../../packages/core-node/node_modules/ws/lib/constants.js
|
|
45482
45439
|
var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -151248,7 +151205,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
151248
151205
|
console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
|
|
151249
151206
|
} else throw new Error(`Offline and no local fallback version available for ${packageName}`);
|
|
151250
151207
|
} else try {
|
|
151251
|
-
const cachePath =
|
|
151208
|
+
const cachePath = ctx.getCachePath(CacheFolder.Pacote);
|
|
151252
151209
|
let packumentPromise = packumentRequests.get(packageName);
|
|
151253
151210
|
if (!packumentPromise) {
|
|
151254
151211
|
packumentPromise = import_lib.default.packument(packageName, { cache: cachePath });
|
|
@@ -151279,7 +151236,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
151279
151236
|
console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
|
|
151280
151237
|
} else throw error;
|
|
151281
151238
|
}
|
|
151282
|
-
const cachePath =
|
|
151239
|
+
const cachePath = ctx.getCachePath(CacheFolder.Pacote);
|
|
151283
151240
|
const packageDir = join(baseDir, resolvedVersion);
|
|
151284
151241
|
const checkStart = Date.now();
|
|
151285
151242
|
const isInstalled = options?.installDeps ? isPackageComplete(packageDir) && isDependenciesInstalledSync(packageDir) : isPackageComplete(packageDir);
|
|
@@ -151356,7 +151313,7 @@ async function runPnpm(cwd, options) {
|
|
|
151356
151313
|
...process.env,
|
|
151357
151314
|
NODE_ENV: "production",
|
|
151358
151315
|
PATH: nodePath ? `${dirname(nodePath)}${delimiter}${process.env.PATH}` : process.env.PATH,
|
|
151359
|
-
PNPM_HOME:
|
|
151316
|
+
PNPM_HOME: ctx.getPnpmPath(),
|
|
151360
151317
|
PNPM_ONLY_ALLOW_TRUSTED_DEPENDENCIES: "false",
|
|
151361
151318
|
...extraEnv
|
|
151362
151319
|
}
|
|
@@ -151841,7 +151798,7 @@ const sharedParams = {
|
|
|
151841
151798
|
}),
|
|
151842
151799
|
customProfile: createPathParam(void 0, {
|
|
151843
151800
|
required: false,
|
|
151844
|
-
description: "Use your own profile (X:\\Users\\XXX\\AppData\\Local\\Google\\Chrome\\User Data).
|
|
151801
|
+
description: "Use your own profile (X:\\Users\\XXX\\AppData\\Local\\Google\\Chrome\\User Data). Useful if you want to reuse plugins installed in your current browser",
|
|
151845
151802
|
control: {
|
|
151846
151803
|
type: "path",
|
|
151847
151804
|
options: {
|
|
@@ -152051,7 +152008,7 @@ var src_default = createNodeDefinition({
|
|
|
152051
152008
|
}],
|
|
152052
152009
|
validators: [],
|
|
152053
152010
|
integrations: [{
|
|
152054
|
-
name: "Browser Executable
|
|
152011
|
+
name: "Browser Executable",
|
|
152055
152012
|
fields: [{
|
|
152056
152013
|
key: "path",
|
|
152057
152014
|
label: "Browser Executable Path",
|