@luckylillia-dev/luckylillia 9.0.5 → 9.0.6

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/llbot-core.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as Hono, A as Registries, At as require_dist, B as installHostLifecycle, Bt as getPluginDirs, C as scanPluginRoots, Ct as normalizeScope, D as removeScannedPackage, Dt as deepMerge, E as cleanupRemovedPackages, Et as platform_exports, F as parseSpec, G as GATEWAY_SECRET_HEADER, Gt as LOG_DIR, Ht as isDockerEnvironment, I as pickVersion, J as isManaged, Jt as globalVars_exports, L as lockInstance, M as isExactVersion, Mt as configPaths_exports, N as isPackageName, Nt as currentInstance, O as scannedPackagePath, Ot as mergeNewProperties, P as matches, Pt as instance_exports, Q as version_exports, Qt as __toESM, S as resolveMain, St as acceptsScope, T as sdkRangeOf, Tt as normalizePlatformId, Ut as isPluginHmr, Vt as isDevMode, W as GATEWAY_SECRET_ENV, Wt as DATA_DIR, X as protocol_exports, Xt as __exportAll, Y as isManagerMessage, Yt as __commonJSMin, Z as version$10, Zt as __require, _ as manifest_exports, _t as templateSection, at as migrateRenamedPackages, b as parsePluginDependencies, bt as newEntryId, c as marketSettings, ct as renameNativeQQSettings, d as extractPackage, dt as renamed_exports, et as HtmlEscapedCallbackPhase, f as readTarStream, ft as withCurrentNames, g as isInside, gt as templateConfig, h as isImagePath, ht as DEPRECATED_KEYS, it as migrateNTQQMessaging, j as RegistryError, jt as configPaths, k as require_semver, kt as JsonFile, l as registriesOf, lt as RENAMED_PACKAGES, m as SDK_PACKAGE, mt as ADAPTER_KEYS, nt as liftBuiltinSettings, ot as migrateToInstances, p as PLUGIN_CATEGORIES, pt as ADAPTER_ENTRIES, qt as TEMP_DIR, r as coreUpdate_exports, rt as migrateExtractedPlugins, s as MarketSchema, st as migrateWebuiToken, tt as resolveCallback, u as Catalog, ut as currentPackageName, v as matchesPluginVersion, vt as upgradeConfig, w as sdkIncompatibility, wt as normalizePlatform, x as readPluginPackage, xt as normalizeUi, y as normalizeService, yt as PluginStore, zt as environment_exports } from "./chunks/coreUpdate-DyKGU2VM.js";
1
+ import { $ as Hono, A as Registries, At as require_dist, B as installHostLifecycle, Bt as getPluginDirs, C as scanPluginRoots, Ct as normalizeScope, D as removeScannedPackage, Dt as deepMerge, E as cleanupRemovedPackages, Et as platform_exports, F as parseSpec, G as GATEWAY_SECRET_HEADER, Gt as LOG_DIR, Ht as isDockerEnvironment, I as pickVersion, J as isManaged, Jt as globalVars_exports, L as lockInstance, M as isExactVersion, Mt as configPaths_exports, N as isPackageName, Nt as currentInstance, O as scannedPackagePath, Ot as mergeNewProperties, P as matches, Pt as instance_exports, Q as version_exports, Qt as __toESM, S as resolveMain, St as acceptsScope, T as sdkRangeOf, Tt as normalizePlatformId, Ut as isPluginHmr, Vt as isDevMode, W as GATEWAY_SECRET_ENV, Wt as DATA_DIR, X as protocol_exports, Xt as __exportAll, Y as isManagerMessage, Yt as __commonJSMin, Z as version$10, Zt as __require, _ as manifest_exports, _t as templateSection, at as migrateRenamedPackages, b as parsePluginDependencies, bt as newEntryId, c as marketSettings, ct as renameNativeQQSettings, d as extractPackage, dt as renamed_exports, et as HtmlEscapedCallbackPhase, f as readTarStream, ft as withCurrentNames, g as isInside, gt as templateConfig, h as isImagePath, ht as DEPRECATED_KEYS, it as migrateNTQQMessaging, j as RegistryError, jt as configPaths, k as require_semver, kt as JsonFile, l as registriesOf, lt as RENAMED_PACKAGES, m as SDK_PACKAGE, mt as ADAPTER_KEYS, nt as liftBuiltinSettings, ot as migrateToInstances, p as PLUGIN_CATEGORIES, pt as ADAPTER_ENTRIES, qt as TEMP_DIR, r as coreUpdate_exports, rt as migrateExtractedPlugins, s as MarketSchema, st as migrateWebuiToken, tt as resolveCallback, u as Catalog, ut as currentPackageName, v as matchesPluginVersion, vt as upgradeConfig, w as sdkIncompatibility, wt as normalizePlatform, x as readPluginPackage, xt as normalizeUi, y as normalizeService, yt as PluginStore, zt as environment_exports } from "./chunks/coreUpdate-CEtHqh6r.js";
2
2
  import { p as compareVersions } from "./chunks/restart-TVy8kurW.js";
3
3
  import { t as __vitePreload } from "./chunks/preload-helper-DxWiKyOd.js";
4
4
  import * as nodeModule from "node:module";
@@ -2971,7 +2971,7 @@ var Installer = class Installer {
2971
2971
  const packument = (name) => {
2972
2972
  let document = documents.get(name);
2973
2973
  if (!document) {
2974
- document = this.registry.packument(name);
2974
+ document = this.registry.packument(name, false, void 0, "install");
2975
2975
  document.catch(() => {});
2976
2976
  documents.set(name, document);
2977
2977
  }
@@ -3003,7 +3003,7 @@ var Installer = class Installer {
3003
3003
  }
3004
3004
  const existing = lookup(node, dep.alias);
3005
3005
  if (existing && existing.source.manifest.name === spec.name && matches(existing.source.manifest.version, spec.range)) continue;
3006
- const version = await packument(spec.name).then((document) => pickVersion(document, spec.range) ?? this.registry.packument(spec.name, false, (document) => !!pickVersion(document, spec.range)).then((document) => pickVersion(document, spec.range))).catch((e) => {
3006
+ const version = await packument(spec.name).then((document) => pickVersion(document, spec.range) ?? this.registry.packument(spec.name, false, (document) => !!pickVersion(document, spec.range), "install").then((document) => pickVersion(document, spec.range))).catch((e) => {
3007
3007
  if (dep.optional) return void 0;
3008
3008
  throw e;
3009
3009
  });
@@ -6832,7 +6832,7 @@ var Market = class {
6832
6832
  const documents = /* @__PURE__ */ new Map();
6833
6833
  const packument = (name) => {
6834
6834
  let document = documents.get(name);
6835
- if (!document) documents.set(name, document = this.registry.packument(name, true));
6835
+ if (!document) documents.set(name, document = this.registry.packument(name, true, void 0, "install"));
6836
6836
  return document;
6837
6837
  };
6838
6838
  await Promise.all(installed.map(async (pkg) => {
@@ -7030,7 +7030,7 @@ var Market = class {
7030
7030
  }
7031
7031
  async catalogVersion(entry, document) {
7032
7032
  const pinned = (document) => Object.hasOwn(document.versions ?? {}, entry.version);
7033
- if (!document || !pinned(document)) document = await this.registry.packument(entry.name, true, pinned);
7033
+ if (!document || !pinned(document)) document = await this.registry.packument(entry.name, true, pinned, "install");
7034
7034
  const version = pinned(document) ? document.versions[entry.version] : void 0;
7035
7035
  if (!version) throw new MarketError(`${entry.name}: catalog version ${entry.version} is unavailable from the npm registry`, 404);
7036
7036
  if (document.name !== entry.name || version.name !== entry.name || version.version !== entry.version) throw new MarketError(`the registry returned a different package or version for ${entry.name}@${entry.version}`);
@@ -7052,7 +7052,7 @@ var Market = class {
7052
7052
  }
7053
7053
  }
7054
7054
  /** Resolve the complete plugin graph before writing anything. npm library dependencies stay with Installer. */
7055
- async planPlugins(main, catalog, packument = (name) => this.registry.packument(name, true), requestedVersion) {
7055
+ async planPlugins(main, catalog, packument = (name) => this.registry.packument(name, true, void 0, "install"), requestedVersion) {
7056
7056
  const installed = new Map(this.installedPackages().map((pkg) => [pkg.name, pkg]));
7057
7057
  const installedRequirements = /* @__PURE__ */ new Map();
7058
7058
  for (const pkg of installed.values()) {