@luckylillia-dev/luckylillia 9.0.7 → 9.0.9
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/chunks/{coreUpdate-Bhae6JrK.js → coreUpdate-33NXrGUa.js} +17 -9
- package/chunks/{coreUpdate-Bhae6JrK.js.map → coreUpdate-33NXrGUa.js.map} +1 -1
- package/llbot-core.js +18 -18
- package/llbot-core.js.map +1 -1
- package/llbot-manager.js +1 -1
- package/package.json +1 -1
- package/webui/assets/{index-_ibiFVAk.css → index-Ca9QgFeL.css} +1 -1
- package/webui/assets/index-Dtwv47xB.js +30 -0
- package/webui/index.html +2 -2
- package//346/233/264/346/226/260/346/227/245/345/277/227.txt +15 -0
- package/webui/assets/index-BsUQEMVV.js +0 -30
|
@@ -4126,7 +4126,7 @@ var Hono = class extends Hono$1 {
|
|
|
4126
4126
|
//#endregion
|
|
4127
4127
|
//#region src/version.ts
|
|
4128
4128
|
var version_exports = /* @__PURE__ */ __exportAll({ version: () => version });
|
|
4129
|
-
var version = "9.0.
|
|
4129
|
+
var version = "9.0.9";
|
|
4130
4130
|
//#endregion
|
|
4131
4131
|
//#region src/main/manager/protocol.ts
|
|
4132
4132
|
var protocol_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -6920,18 +6920,25 @@ var Catalog = class {
|
|
|
6920
6920
|
};
|
|
6921
6921
|
//#endregion
|
|
6922
6922
|
//#region src/plugin/internal/tool/market/settings.ts
|
|
6923
|
+
var CNB_REGISTRY = "https://npm.cnb.cool/luckylillia/i/-/packages";
|
|
6924
|
+
var LEGACY_MIRRORS = [
|
|
6925
|
+
"https://registry.npmmirror.com",
|
|
6926
|
+
"https://mirrors.huaweicloud.com/repository/npm",
|
|
6927
|
+
"https://mirrors.cloud.tencent.com/npm"
|
|
6928
|
+
];
|
|
6929
|
+
var DEFAULT_MIRRORS = [...LEGACY_MIRRORS, CNB_REGISTRY];
|
|
6930
|
+
/** Some older configs saved the whole default list. Custom lists, including [], stay authoritative. */
|
|
6931
|
+
function currentMirrors(mirrors) {
|
|
6932
|
+
return mirrors.length === LEGACY_MIRRORS.length && mirrors.every((url, index) => sameUrl(url, LEGACY_MIRRORS[index])) ? [...DEFAULT_MIRRORS] : mirrors;
|
|
6933
|
+
}
|
|
6923
6934
|
var MarketSchema = Schema.object({
|
|
6924
6935
|
registry: Schema.string().role("link").default("https://registry.npmjs.org").description("主源:查插件目录、检查更新时先问它,一般用 npm 官方源 https://registry.npmjs.org。连不上时改问镜像源,用版本最新的那个"),
|
|
6925
|
-
mirrors: Schema.array(Schema.string().role("link")).default(
|
|
6926
|
-
"https://registry.npmmirror.com",
|
|
6927
|
-
"https://mirrors.huaweicloud.com/repository/npm",
|
|
6928
|
-
"https://mirrors.cloud.tencent.com/npm"
|
|
6929
|
-
]).description("镜像源:下载插件和依赖时按顺序先用它们,哪个有需要的版本就用哪个,都没有再用主源"),
|
|
6936
|
+
mirrors: Schema.array(Schema.string().role("link")).default(DEFAULT_MIRRORS).description("下载候选源:包含 npm 镜像及 LuckyLillia CNB 制品库。安装插件和依赖时按顺序查找所需版本,都没有再用主源;自定义列表需保留 CNB 才能安装仅在 CNB 发布的包"),
|
|
6930
6937
|
catalog: Schema.string().default(MARKET_PACKAGE).description("提供插件列表和已审核版本的 npm 目录包,不清楚时保持默认即可"),
|
|
6931
6938
|
githubMirrors: Schema.array(Schema.string().role("link")).default(DEFAULT_GITHUB_MIRRORS).description("GitHub 下载镜像前缀,按顺序尝试,最后直连 GitHub。支持 /github/ 等路径;留空仅直连")
|
|
6932
6939
|
});
|
|
6933
6940
|
/** Every registry to use: the main one first, then the mirrors (Registries orders them per lookup) */
|
|
6934
|
-
var registriesOf = (settings) => [settings.registry, ...settings.mirrors ?? []];
|
|
6941
|
+
var registriesOf = (settings) => [settings.registry, ...currentMirrors(settings.mirrors ?? [])];
|
|
6935
6942
|
var sameUrl = (a, b) => a.replace(/\/+$/, "") === b.replace(/\/+$/, "");
|
|
6936
6943
|
var isWebUrl = (value) => {
|
|
6937
6944
|
try {
|
|
@@ -6953,6 +6960,7 @@ var marketSettings = {
|
|
|
6953
6960
|
if (typeof mirror === "string" && (registry && sameUrl(mirror, registry) || mirrors.some((other) => sameUrl(other, mirror)))) continue;
|
|
6954
6961
|
mirrors.push(mirror);
|
|
6955
6962
|
}
|
|
6963
|
+
if (mirrors.every((mirror) => typeof mirror === "string")) mirrors = currentMirrors(mirrors);
|
|
6956
6964
|
}
|
|
6957
6965
|
const githubMirrors = Array.isArray(value.githubMirrors) ? [...new Set(value.githubMirrors.map((raw) => typeof raw === "string" ? raw.trim().replace(/\/+$/, "") + "/" : raw).filter((raw) => raw !== "/"))] : void 0;
|
|
6958
6966
|
return {
|
|
@@ -7061,7 +7069,7 @@ var CoreUpdater = class {
|
|
|
7061
7069
|
current;
|
|
7062
7070
|
constructor(options) {
|
|
7063
7071
|
this.options = options;
|
|
7064
|
-
this.current = options.current ?? "9.0.
|
|
7072
|
+
this.current = options.current ?? "9.0.9";
|
|
7065
7073
|
}
|
|
7066
7074
|
status() {
|
|
7067
7075
|
const latest = this.latest;
|
|
@@ -7475,4 +7483,4 @@ function createCoreUpdateRoutes(updater) {
|
|
|
7475
7483
|
//#endregion
|
|
7476
7484
|
export { isManaged as $, globalVars_exports as $t, removeScannedPackage as A, normalizePlatformId as At, parseSpec as B, resolveInstance as Bt, parsePluginDependencies as C, upgradeConfig as Ct, sdkIncompatibility as D, acceptsScope as Dt, scanPluginRoots as E, normalizeUi as Et, Registry as F, require_dist as Ft, installHostLifecycle as G, getPluginDirs as Gt, lockInstance as H, INVALID_INSTANCE_NAME as Ht, RegistryError as I, configPaths as It, GATEWAY_PREFIX_HEADER as J, isPluginHmr as Jt, GATEWAY_AUTH_HEADER as K, isDevMode as Kt, isExactVersion as L, configPaths_exports as Lt, require_semver as M, deepMerge as Mt, IntegrityError as N, mergeNewProperties as Nt, sdkRangeOf as O, normalizeScope as Ot, Registries as P, JsonFile as Pt, isInstanceMessage as Q, TEMP_DIR as Qt, isPackageName as R, currentInstance as Rt, normalizeService as S, templateSection as St, resolveMain as T, newEntryId as Tt, lockManager as U, isValidInstanceName as Ut, pickVersion as V, DEFAULT_INSTANCE as Vt, runningInstances as W, environment_exports as Wt, GATEWAY_SECRET_HEADER as X, LOG_DIR as Xt, GATEWAY_SECRET_ENV as Y, DATA_DIR as Yt, MANAGED_ENV as Z, STATE_DIR as Zt, SDK_PACKAGE as _, withCurrentNames as _t, scheduleAutoCheck as a, HtmlEscapedCallbackPhase as at, manifest_exports as b, DEPRECATED_KEYS as bt, marketSettings as c, migrateExtractedPlugins as ct, DEFAULT_GITHUB_MIRRORS as d, migrateToInstances as dt, __commonJSMin as en, isManagerMessage as et, githubAssetUrl as f, migrateWebuiToken as ft, PLUGIN_CATEGORIES as g, renamed_exports as gt, readTarStream as h, currentPackageName as ht, installDirOf as i, Hono as it, scannedPackagePath as j, platform_exports as jt, cleanupRemovedPackages as k, normalizePlatform as kt, registriesOf as l, migrateNTQQMessaging as lt, extractPackage as m, RENAMED_PACKAGES as mt, CoreUpdater as n, __require as nn, version as nt, updateBlocker as o, resolveCallback as ot, isGitHubMirror as p, renameNativeQQSettings as pt, GATEWAY_INSTANCE_HEADER as q, isDockerEnvironment as qt, coreUpdate_exports as r, __toESM as rn, version_exports as rt, MarketSchema as s, liftBuiltinSettings as st, CoreUpdateError as t, __exportAll as tn, protocol_exports as tt, Catalog as u, migrateRenamedPackages as ut, isImagePath as v, ADAPTER_ENTRIES as vt, readPluginPackage as w, PluginStore as wt, matchesPluginVersion as x, templateConfig as xt, isInside as y, ADAPTER_KEYS as yt, matches as z, instance_exports as zt };
|
|
7477
7485
|
|
|
7478
|
-
//# sourceMappingURL=coreUpdate-
|
|
7486
|
+
//# sourceMappingURL=coreUpdate-33NXrGUa.js.map
|