@pipelab/plugin-discord 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 +457 -500
- package/dist/index.mjs +49 -92
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -2095,7 +2095,7 @@ const settingsMigratorInternal = createMigrator();
|
|
|
2095
2095
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
2096
2096
|
locale: "en-US",
|
|
2097
2097
|
theme: "light",
|
|
2098
|
-
version: "
|
|
2098
|
+
version: "7.0.0",
|
|
2099
2099
|
autosave: true,
|
|
2100
2100
|
agents: [],
|
|
2101
2101
|
tours: {
|
|
@@ -2108,11 +2108,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2108
2108
|
completed: false
|
|
2109
2109
|
}
|
|
2110
2110
|
},
|
|
2111
|
-
buildHistory: { retentionPolicy: {
|
|
2112
|
-
enabled: false,
|
|
2113
|
-
maxEntries: 50,
|
|
2114
|
-
maxAge: 30
|
|
2115
|
-
} },
|
|
2116
2111
|
plugins: DEFAULT_PLUGINS,
|
|
2117
2112
|
isInternalMigrationBannerClosed: false
|
|
2118
2113
|
});
|
|
@@ -2169,18 +2164,13 @@ settingsMigratorInternal.createMigrations({
|
|
|
2169
2164
|
return {
|
|
2170
2165
|
...rest,
|
|
2171
2166
|
agents: [],
|
|
2172
|
-
buildHistory: { retentionPolicy: {
|
|
2173
|
-
enabled: false,
|
|
2174
|
-
maxEntries: 50,
|
|
2175
|
-
maxAge: 30
|
|
2176
|
-
} },
|
|
2177
2167
|
plugins: DEFAULT_PLUGINS,
|
|
2178
2168
|
isInternalMigrationBannerClosed: false
|
|
2179
2169
|
};
|
|
2180
2170
|
}
|
|
2181
2171
|
}),
|
|
2182
2172
|
createMigration({
|
|
2183
|
-
version: "
|
|
2173
|
+
version: "7.0.0",
|
|
2184
2174
|
up: finalVersion
|
|
2185
2175
|
})
|
|
2186
2176
|
]
|
|
@@ -2199,7 +2189,7 @@ connectionsMigratorInternal.createMigrations({
|
|
|
2199
2189
|
});
|
|
2200
2190
|
const fileRepoMigratorInternal = createMigrator();
|
|
2201
2191
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
2202
|
-
version: "
|
|
2192
|
+
version: "3.0.0",
|
|
2203
2193
|
projects: [{
|
|
2204
2194
|
id: "main",
|
|
2205
2195
|
name: "Default project",
|
|
@@ -2209,30 +2199,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
|
2209
2199
|
});
|
|
2210
2200
|
fileRepoMigratorInternal.createMigrations({
|
|
2211
2201
|
defaultValue: defaultFileRepo,
|
|
2212
|
-
migrations: [
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2202
|
+
migrations: [
|
|
2203
|
+
createMigration({
|
|
2204
|
+
version: "1.0.0",
|
|
2205
|
+
up: (state) => {
|
|
2206
|
+
const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
|
|
2207
|
+
return {
|
|
2208
|
+
...file,
|
|
2209
|
+
id,
|
|
2210
|
+
project: "main"
|
|
2211
|
+
};
|
|
2212
|
+
});
|
|
2216
2213
|
return {
|
|
2217
|
-
...
|
|
2218
|
-
|
|
2219
|
-
|
|
2214
|
+
...state,
|
|
2215
|
+
projects: [{
|
|
2216
|
+
id: "main",
|
|
2217
|
+
name: "Default project",
|
|
2218
|
+
description: "The initial default project"
|
|
2219
|
+
}],
|
|
2220
|
+
pipelines
|
|
2220
2221
|
};
|
|
2221
|
-
}
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
up: finalVersion
|
|
2235
|
-
})]
|
|
2222
|
+
}
|
|
2223
|
+
}),
|
|
2224
|
+
createMigration({
|
|
2225
|
+
version: "2.0.0",
|
|
2226
|
+
up: (state) => {
|
|
2227
|
+
return { ...state };
|
|
2228
|
+
}
|
|
2229
|
+
}),
|
|
2230
|
+
createMigration({
|
|
2231
|
+
version: "3.0.0",
|
|
2232
|
+
up: finalVersion
|
|
2233
|
+
})
|
|
2234
|
+
]
|
|
2236
2235
|
});
|
|
2237
2236
|
const savedFileMigratorInternal = createMigrator();
|
|
2238
2237
|
const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
@@ -2393,14 +2392,19 @@ object({
|
|
|
2393
2392
|
version: literal("1.0.0"),
|
|
2394
2393
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
2395
2394
|
});
|
|
2396
|
-
const FileRepoProjectValidatorV2
|
|
2395
|
+
const FileRepoProjectValidatorV2 = object({
|
|
2397
2396
|
id: string(),
|
|
2398
2397
|
name: string(),
|
|
2399
2398
|
description: string()
|
|
2400
2399
|
});
|
|
2401
2400
|
object({
|
|
2402
2401
|
version: literal("2.0.0"),
|
|
2403
|
-
projects: array(FileRepoProjectValidatorV2
|
|
2402
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2403
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
2404
|
+
});
|
|
2405
|
+
object({
|
|
2406
|
+
version: literal("3.0.0"),
|
|
2407
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2404
2408
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
2405
2409
|
});
|
|
2406
2410
|
object({
|
|
@@ -2509,44 +2513,6 @@ object({
|
|
|
2509
2513
|
name: string(),
|
|
2510
2514
|
url: string()
|
|
2511
2515
|
})),
|
|
2512
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2513
|
-
enabled: boolean(),
|
|
2514
|
-
maxEntries: number(),
|
|
2515
|
-
maxAge: number()
|
|
2516
|
-
}) })
|
|
2517
|
-
});
|
|
2518
|
-
object({
|
|
2519
|
-
theme: union([literal("light"), literal("dark")]),
|
|
2520
|
-
version: literal("8.0.0"),
|
|
2521
|
-
locale: union([
|
|
2522
|
-
literal("en-US"),
|
|
2523
|
-
literal("fr-FR"),
|
|
2524
|
-
literal("pt-BR"),
|
|
2525
|
-
literal("zh-CN"),
|
|
2526
|
-
literal("es-ES"),
|
|
2527
|
-
literal("de-DE")
|
|
2528
|
-
]),
|
|
2529
|
-
tours: object({
|
|
2530
|
-
dashboard: object({
|
|
2531
|
-
step: number(),
|
|
2532
|
-
completed: boolean()
|
|
2533
|
-
}),
|
|
2534
|
-
editor: object({
|
|
2535
|
-
step: number(),
|
|
2536
|
-
completed: boolean()
|
|
2537
|
-
})
|
|
2538
|
-
}),
|
|
2539
|
-
autosave: boolean(),
|
|
2540
|
-
agents: array(object({
|
|
2541
|
-
id: string(),
|
|
2542
|
-
name: string(),
|
|
2543
|
-
url: string()
|
|
2544
|
-
})),
|
|
2545
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2546
|
-
enabled: boolean(),
|
|
2547
|
-
maxEntries: number(),
|
|
2548
|
-
maxAge: number()
|
|
2549
|
-
}) }),
|
|
2550
2516
|
plugins: array(object({
|
|
2551
2517
|
name: string(),
|
|
2552
2518
|
enabled: boolean(),
|
|
@@ -45410,20 +45376,6 @@ var WebSocketError = class extends Error {
|
|
|
45410
45376
|
const isWebSocketRequestMessage = (message) => {
|
|
45411
45377
|
return message && typeof message.channel === "string" && message.requestId;
|
|
45412
45378
|
};
|
|
45413
|
-
object({
|
|
45414
|
-
version: literal("1.0.0"),
|
|
45415
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
45416
|
-
});
|
|
45417
|
-
const FileRepoProjectValidatorV2 = object({
|
|
45418
|
-
id: string(),
|
|
45419
|
-
name: string(),
|
|
45420
|
-
description: string()
|
|
45421
|
-
});
|
|
45422
|
-
object({
|
|
45423
|
-
version: literal("2.0.0"),
|
|
45424
|
-
projects: array(FileRepoProjectValidatorV2),
|
|
45425
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
45426
|
-
});
|
|
45427
45379
|
//#endregion
|
|
45428
45380
|
//#region ../../node_modules/tsdown/esm-shims.js
|
|
45429
45381
|
var getFilename, getDirname, __dirname;
|
|
@@ -45455,6 +45407,11 @@ function findProjectRoot(startDir) {
|
|
|
45455
45407
|
return null;
|
|
45456
45408
|
}
|
|
45457
45409
|
const projectRoot = findProjectRoot(_dirname);
|
|
45410
|
+
const CacheFolder = {
|
|
45411
|
+
Actions: "actions",
|
|
45412
|
+
Pipelines: "pipelines",
|
|
45413
|
+
Pacote: "pacote"
|
|
45414
|
+
};
|
|
45458
45415
|
//#endregion
|
|
45459
45416
|
//#region ../../packages/core-node/node_modules/ws/lib/constants.js
|
|
45460
45417
|
var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -151196,7 +151153,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
151196
151153
|
console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
|
|
151197
151154
|
} else throw new Error(`Offline and no local fallback version available for ${packageName}`);
|
|
151198
151155
|
} else try {
|
|
151199
|
-
const cachePath =
|
|
151156
|
+
const cachePath = ctx.getCachePath(CacheFolder.Pacote);
|
|
151200
151157
|
let packumentPromise = packumentRequests.get(packageName);
|
|
151201
151158
|
if (!packumentPromise) {
|
|
151202
151159
|
packumentPromise = import_lib.default.packument(packageName, { cache: cachePath });
|
|
@@ -151227,7 +151184,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
151227
151184
|
console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
|
|
151228
151185
|
} else throw error;
|
|
151229
151186
|
}
|
|
151230
|
-
const cachePath =
|
|
151187
|
+
const cachePath = ctx.getCachePath(CacheFolder.Pacote);
|
|
151231
151188
|
const packageDir = join$1(baseDir, resolvedVersion);
|
|
151232
151189
|
const checkStart = Date.now();
|
|
151233
151190
|
const isInstalled = options?.installDeps ? isPackageComplete(packageDir) && isDependenciesInstalledSync(packageDir) : isPackageComplete(packageDir);
|
|
@@ -151304,7 +151261,7 @@ async function runPnpm(cwd, options) {
|
|
|
151304
151261
|
...process.env,
|
|
151305
151262
|
NODE_ENV: "production",
|
|
151306
151263
|
PATH: nodePath ? `${dirname(nodePath)}${delimiter}${process.env.PATH}` : process.env.PATH,
|
|
151307
|
-
PNPM_HOME:
|
|
151264
|
+
PNPM_HOME: ctx.getPnpmPath(),
|
|
151308
151265
|
PNPM_ONLY_ALLOW_TRUSTED_DEPENDENCIES: "false",
|
|
151309
151266
|
...extraEnv
|
|
151310
151267
|
}
|