mioki 0.10.0 → 0.10.2

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.d.cts CHANGED
@@ -30,13 +30,14 @@ interface StartOptions {
30
30
  }
31
31
  declare function start(options?: StartOptions): Promise<void>;
32
32
  declare namespace utils_d_exports {
33
- export { AnyFunc, Arrayable, ChromeUA, CreateCmdOptions, Gettable, HasMessage, Noop, PureObject, START_TIME, base64Decode, base64Encode, box, clamp, colorize, colors, createCmd, createDB, createStore, dayjs, dedent, ensureBuffer, filesize, filter, find, formatDuration, formatQQLevel, fs, getAuthCodeViaTicket, getBfaceUrl, getGTk, getGroupAvatarLink, getImage, getImageUrl, getMentionedImage, getMentionedImageUrl, getMentionedUserId, getMinicoTokenViaAuthCode, getQQAvatarLink, getQuoteImage, getQuoteImageUrl, getQuoteMsg, getQuoteText, getTerminalInput, isBoolean, isDefined, isFunction, isGroupMsg, isNumber, isObject, isPrivateMsg, isString, jiti, localNum, localeDate, localeTime, match, md5, mri, noNullish, path, prettyMs, qs, queryDevToolsLoginStatus, randomId, randomInt, randomItem, randomItems, requestLoginViaDevTools, runWithReaction, string2argv, stringifyError, stripAnsi, systemInfo, text, toArray, toMsgId, unique, uuid, wait };
33
+ export { AnyFunc, Arrayable, Awaitable, ChromeUA, CreateCmdOptions, Gettable, HasMessage, Noop, PureObject, START_TIME, base64Decode, base64Encode, box, clamp, colorize, colors, createCmd, createDB, createStore, dayjs, dedent, ensureBuffer, filesize, filter, find, formatDuration, formatQQLevel, fs, getAuthCodeViaTicket, getBfaceUrl, getGTk, getGroupAvatarLink, getImage, getImageUrl, getMentionedImage, getMentionedImageUrl, getMentionedUserId, getMinicoTokenViaAuthCode, getQQAvatarLink, getQuoteImage, getQuoteImageUrl, getQuoteMsg, getQuoteText, getTerminalInput, isBoolean, isDefined, isFunction, isGroupMsg, isNumber, isObject, isPrivateMsg, isString, jiti, localNum, localeDate, localeTime, match, md5, mri, noNullish, path, prettyMs, qs, queryDevToolsLoginStatus, randomId, randomInt, randomItem, randomItems, requestLoginViaDevTools, runWithReaction, string2argv, stringifyError, stripAnsi, systemInfo, text, toArray, toMsgId, unique, uuid, wait };
34
34
  }
35
35
  declare const ChromeUA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/131.0.0.0";
36
36
  type Noop = () => void;
37
37
  type AnyFunc = (...args: any[]) => any;
38
38
  type PureObject<T = any> = Record<PropertyKey, T>;
39
39
  type Arrayable<T> = T | T[];
40
+ type Awaitable<T> = T | Promise<T>;
40
41
  type Gettable<T> = T | (() => T);
41
42
  type HasMessage = {
42
43
  message: RecvElement[];
@@ -84,7 +85,7 @@ declare function ensureBuffer(buffer?: Buffer | null | undefined, text?: string)
84
85
  * @returns 可读字符串
85
86
  */
86
87
  declare function formatDuration(ms: number): string;
87
- type MatchPatternItem = null | undefined | void | false | Sendable | Sendable[];
88
+ type MatchPatternItem = null | undefined | void | false | Arrayable<Sendable>;
88
89
  type MatchValue<E extends MessageEvent> = MatchPatternItem | ((matches: RegExpMatchArray, event: E) => MatchPatternItem) | ((matches: RegExpMatchArray, event: E) => Promise<MatchPatternItem>);
89
90
  /**
90
91
  * 匹配输入文本与匹配模式,如果匹配成功,则回复匹配结果
@@ -531,6 +532,8 @@ declare function getViolationRecords(bot: NapCat, authCode: string, appid: numbe
531
532
  }[]>;
532
533
  //#endregion
533
534
  //#region src/builtins/core/status.d.ts
535
+ declare const SystemMap: Record<string, string>;
536
+ declare const ArchMap: Record<string, string>;
534
537
  interface MiokiStatus {
535
538
  bot: {
536
539
  uin: number;
@@ -579,15 +582,19 @@ interface MiokiStatus {
579
582
  percent: number;
580
583
  };
581
584
  }
585
+ declare function getMiokiStatus(bot: NapCat): Promise<MiokiStatus>;
586
+ declare function formatMiokiStatus(status: MiokiStatus): Promise<string>;
582
587
  //#endregion
583
588
  //#region src/builtins/core/index.d.ts
589
+ declare const CORE_PLUGINS: string[];
590
+ type StatusFormatter = (status: MiokiStatus) => Awaitable<Arrayable<Sendable>>;
584
591
  interface MiokiCoreServiceContrib {
585
592
  /** 获取框架和系统的实时状态 */
586
593
  getMiokiStatus(): Promise<MiokiStatus>;
587
594
  /** 格式化框架状态字符串 */
588
595
  formatMiokiStatus(status: MiokiStatus): Promise<string>;
589
596
  /** 自定义框架状态格式化函数 */
590
- customFormatMiokiStatus(formatter: (status: MiokiStatus) => string | Promise<string>): void;
597
+ customFormatMiokiStatus(formatter: StatusFormatter): void;
591
598
  }
592
599
  declare namespace services_d_exports {
593
600
  export { MiokiServices, addService, services };
@@ -677,5 +684,8 @@ declare function findLocalPlugins(): Promise<{
677
684
  absPath: string;
678
685
  }[]>;
679
686
  //#endregion
680
- export { AnyFunc, Arrayable, BOT_CWD, ChromeUA, CreateCmdOptions, Gettable, HasMessage, MiokiConfig, MiokiContext, MiokiPlugin, MiokiServices, Noop, OmitBotParamFromFunc, PureObject, START_TIME, StartOptions, addService, base64Decode, base64Encode, bindBot, botConfig, box, clamp, colorize, colors, createCmd, createDB, createForwardMsg, createStore, dayjs, dedent, definePlugin, enablePlugin, ensureBuffer, ensurePluginDir, filesize, filter, find, findLocalPlugins, formatDuration, formatQQLevel, fs, getAbsPluginDir, getAuthCodeViaTicket, getBfaceUrl, getGTk, getGroupAvatarLink, getImage, getImageUrl, getLogFilePath, getMentionedImage, getMentionedImageUrl, getMentionedUserId, getMinicoTokenViaAuthCode, getMiokiLogger, getQQAvatarLink, getQuoteImage, getQuoteImageUrl, getQuoteMsg, getQuoteText, getTerminalInput, getViolationRecords, hasRight, isAdmin, isBoolean, isDefined, isFunction, isGroupMsg, isInPm2, isNumber, isObject, isOwner, isOwnerOrAdmin, isPrivateMsg, isString, jiti, localNum, localeDate, localeTime, logger, match, md5, mri, noNullish, noticeAdmins, noticeFriends, noticeGroups, noticeMainOwner, noticeOwners, path, prettyMs, qs, queryDevToolsLoginStatus, randomId, randomInt, randomItem, randomItems, readMiokiConfig, readPackageJson, requestLoginViaDevTools, runWithErrorHandler, runWithReaction, runtimePlugins, services, signArk, start, string2argv, stringifyError, stripAnsi, systemInfo, text, toArray, toMsgId, unique, updateBotCWD, updateBotConfig, uploadImageToCollection, uploadImageToGroupHomework, uploadImageToGroupNotice, uuid, wait, writePackageJson };
687
+ //#region src/builtins/index.d.ts
688
+ declare const BUILTIN_PLUGINS: MiokiPlugin[];
689
+ //#endregion
690
+ export { AnyFunc, ArchMap, Arrayable, Awaitable, BOT_CWD, BUILTIN_PLUGINS, CORE_PLUGINS, ChromeUA, CreateCmdOptions, Gettable, HasMessage, MiokiConfig, MiokiContext, MiokiCoreServiceContrib, MiokiPlugin, MiokiServices, MiokiStatus, Noop, OmitBotParamFromFunc, PureObject, START_TIME, StartOptions, StatusFormatter, SystemMap, addService, base64Decode, base64Encode, bindBot, botConfig, box, clamp, colorize, colors, createCmd, createDB, createForwardMsg, createStore, dayjs, dedent, definePlugin, enablePlugin, ensureBuffer, ensurePluginDir, filesize, filter, find, findLocalPlugins, formatDuration, formatMiokiStatus, formatQQLevel, fs, getAbsPluginDir, getAuthCodeViaTicket, getBfaceUrl, getGTk, getGroupAvatarLink, getImage, getImageUrl, getLogFilePath, getMentionedImage, getMentionedImageUrl, getMentionedUserId, getMinicoTokenViaAuthCode, getMiokiLogger, getMiokiStatus, getQQAvatarLink, getQuoteImage, getQuoteImageUrl, getQuoteMsg, getQuoteText, getTerminalInput, getViolationRecords, hasRight, isAdmin, isBoolean, isDefined, isFunction, isGroupMsg, isInPm2, isNumber, isObject, isOwner, isOwnerOrAdmin, isPrivateMsg, isString, jiti, localNum, localeDate, localeTime, logger, match, md5, mri, noNullish, noticeAdmins, noticeFriends, noticeGroups, noticeMainOwner, noticeOwners, path, prettyMs, qs, queryDevToolsLoginStatus, randomId, randomInt, randomItem, randomItems, readMiokiConfig, readPackageJson, requestLoginViaDevTools, runWithErrorHandler, runWithReaction, runtimePlugins, services, signArk, start, string2argv, stringifyError, stripAnsi, systemInfo, text, toArray, toMsgId, unique, updateBotCWD, updateBotConfig, uploadImageToCollection, uploadImageToGroupHomework, uploadImageToGroupNotice, uuid, wait, writePackageJson };
681
691
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -3,9 +3,9 @@ import path from "node:path";
3
3
  import mri from "mri";
4
4
  import { BinaryLike, BinaryToTextEncoding } from "node:crypto";
5
5
  import { Low } from "lowdb";
6
+ import { EventMap, GroupMessageEvent, LogLevel, Logger, MessageEvent, NapCat, PrivateMessageEvent, RecvElement, RecvImageElement, Sendable } from "napcat-sdk";
6
7
  import { Jiti } from "jiti";
7
8
  import { string2argv } from "string2argv";
8
- import { EventMap, GroupMessageEvent, LogLevel, Logger, MessageEvent, NapCat, PrivateMessageEvent, RecvElement, RecvImageElement, Sendable } from "napcat-sdk";
9
9
  import prettyMs from "pretty-ms";
10
10
  import { filesize } from "filesize";
11
11
  import dayjs from "dayjs";
@@ -28,13 +28,14 @@ interface StartOptions {
28
28
  }
29
29
  declare function start(options?: StartOptions): Promise<void>;
30
30
  declare namespace utils_d_exports {
31
- export { AnyFunc, Arrayable, ChromeUA, CreateCmdOptions, Gettable, HasMessage, Noop, PureObject, START_TIME, base64Decode, base64Encode, box, clamp, colorize, colors, createCmd, createDB, createStore, dayjs, dedent, ensureBuffer, filesize, filter, find, formatDuration, formatQQLevel, fs, getAuthCodeViaTicket, getBfaceUrl, getGTk, getGroupAvatarLink, getImage, getImageUrl, getMentionedImage, getMentionedImageUrl, getMentionedUserId, getMinicoTokenViaAuthCode, getQQAvatarLink, getQuoteImage, getQuoteImageUrl, getQuoteMsg, getQuoteText, getTerminalInput, isBoolean, isDefined, isFunction, isGroupMsg, isNumber, isObject, isPrivateMsg, isString, jiti, localNum, localeDate, localeTime, match, md5, mri, noNullish, path, prettyMs, qs, queryDevToolsLoginStatus, randomId, randomInt, randomItem, randomItems, requestLoginViaDevTools, runWithReaction, string2argv, stringifyError, stripAnsi, systemInfo, text, toArray, toMsgId, unique, uuid, wait };
31
+ export { AnyFunc, Arrayable, Awaitable, ChromeUA, CreateCmdOptions, Gettable, HasMessage, Noop, PureObject, START_TIME, base64Decode, base64Encode, box, clamp, colorize, colors, createCmd, createDB, createStore, dayjs, dedent, ensureBuffer, filesize, filter, find, formatDuration, formatQQLevel, fs, getAuthCodeViaTicket, getBfaceUrl, getGTk, getGroupAvatarLink, getImage, getImageUrl, getMentionedImage, getMentionedImageUrl, getMentionedUserId, getMinicoTokenViaAuthCode, getQQAvatarLink, getQuoteImage, getQuoteImageUrl, getQuoteMsg, getQuoteText, getTerminalInput, isBoolean, isDefined, isFunction, isGroupMsg, isNumber, isObject, isPrivateMsg, isString, jiti, localNum, localeDate, localeTime, match, md5, mri, noNullish, path, prettyMs, qs, queryDevToolsLoginStatus, randomId, randomInt, randomItem, randomItems, requestLoginViaDevTools, runWithReaction, string2argv, stringifyError, stripAnsi, systemInfo, text, toArray, toMsgId, unique, uuid, wait };
32
32
  }
33
33
  declare const ChromeUA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/131.0.0.0";
34
34
  type Noop = () => void;
35
35
  type AnyFunc = (...args: any[]) => any;
36
36
  type PureObject<T = any> = Record<PropertyKey, T>;
37
37
  type Arrayable<T> = T | T[];
38
+ type Awaitable<T> = T | Promise<T>;
38
39
  type Gettable<T> = T | (() => T);
39
40
  type HasMessage = {
40
41
  message: RecvElement[];
@@ -82,7 +83,7 @@ declare function ensureBuffer(buffer?: Buffer | null | undefined, text?: string)
82
83
  * @returns 可读字符串
83
84
  */
84
85
  declare function formatDuration(ms: number): string;
85
- type MatchPatternItem = null | undefined | void | false | Sendable | Sendable[];
86
+ type MatchPatternItem = null | undefined | void | false | Arrayable<Sendable>;
86
87
  type MatchValue<E extends MessageEvent> = MatchPatternItem | ((matches: RegExpMatchArray, event: E) => MatchPatternItem) | ((matches: RegExpMatchArray, event: E) => Promise<MatchPatternItem>);
87
88
  /**
88
89
  * 匹配输入文本与匹配模式,如果匹配成功,则回复匹配结果
@@ -529,6 +530,8 @@ declare function getViolationRecords(bot: NapCat, authCode: string, appid: numbe
529
530
  }[]>;
530
531
  //#endregion
531
532
  //#region src/builtins/core/status.d.ts
533
+ declare const SystemMap: Record<string, string>;
534
+ declare const ArchMap: Record<string, string>;
532
535
  interface MiokiStatus {
533
536
  bot: {
534
537
  uin: number;
@@ -577,15 +580,19 @@ interface MiokiStatus {
577
580
  percent: number;
578
581
  };
579
582
  }
583
+ declare function getMiokiStatus(bot: NapCat): Promise<MiokiStatus>;
584
+ declare function formatMiokiStatus(status: MiokiStatus): Promise<string>;
580
585
  //#endregion
581
586
  //#region src/builtins/core/index.d.ts
587
+ declare const CORE_PLUGINS: string[];
588
+ type StatusFormatter = (status: MiokiStatus) => Awaitable<Arrayable<Sendable>>;
582
589
  interface MiokiCoreServiceContrib {
583
590
  /** 获取框架和系统的实时状态 */
584
591
  getMiokiStatus(): Promise<MiokiStatus>;
585
592
  /** 格式化框架状态字符串 */
586
593
  formatMiokiStatus(status: MiokiStatus): Promise<string>;
587
594
  /** 自定义框架状态格式化函数 */
588
- customFormatMiokiStatus(formatter: (status: MiokiStatus) => string | Promise<string>): void;
595
+ customFormatMiokiStatus(formatter: StatusFormatter): void;
589
596
  }
590
597
  declare namespace services_d_exports {
591
598
  export { MiokiServices, addService, services };
@@ -675,5 +682,8 @@ declare function findLocalPlugins(): Promise<{
675
682
  absPath: string;
676
683
  }[]>;
677
684
  //#endregion
678
- export { AnyFunc, Arrayable, BOT_CWD, ChromeUA, CreateCmdOptions, Gettable, HasMessage, MiokiConfig, MiokiContext, MiokiPlugin, MiokiServices, Noop, OmitBotParamFromFunc, PureObject, START_TIME, StartOptions, addService, base64Decode, base64Encode, bindBot, botConfig, box, clamp, colorize, colors, createCmd, createDB, createForwardMsg, createStore, dayjs, dedent, definePlugin, enablePlugin, ensureBuffer, ensurePluginDir, filesize, filter, find, findLocalPlugins, formatDuration, formatQQLevel, fs, getAbsPluginDir, getAuthCodeViaTicket, getBfaceUrl, getGTk, getGroupAvatarLink, getImage, getImageUrl, getLogFilePath, getMentionedImage, getMentionedImageUrl, getMentionedUserId, getMinicoTokenViaAuthCode, getMiokiLogger, getQQAvatarLink, getQuoteImage, getQuoteImageUrl, getQuoteMsg, getQuoteText, getTerminalInput, getViolationRecords, hasRight, isAdmin, isBoolean, isDefined, isFunction, isGroupMsg, isInPm2, isNumber, isObject, isOwner, isOwnerOrAdmin, isPrivateMsg, isString, jiti, localNum, localeDate, localeTime, logger, match, md5, mri, noNullish, noticeAdmins, noticeFriends, noticeGroups, noticeMainOwner, noticeOwners, path, prettyMs, qs, queryDevToolsLoginStatus, randomId, randomInt, randomItem, randomItems, readMiokiConfig, readPackageJson, requestLoginViaDevTools, runWithErrorHandler, runWithReaction, runtimePlugins, services, signArk, start, string2argv, stringifyError, stripAnsi, systemInfo, text, toArray, toMsgId, unique, updateBotCWD, updateBotConfig, uploadImageToCollection, uploadImageToGroupHomework, uploadImageToGroupNotice, uuid, wait, writePackageJson };
685
+ //#region src/builtins/index.d.ts
686
+ declare const BUILTIN_PLUGINS: MiokiPlugin[];
687
+ //#endregion
688
+ export { AnyFunc, ArchMap, Arrayable, Awaitable, BOT_CWD, BUILTIN_PLUGINS, CORE_PLUGINS, ChromeUA, CreateCmdOptions, Gettable, HasMessage, MiokiConfig, MiokiContext, MiokiCoreServiceContrib, MiokiPlugin, MiokiServices, MiokiStatus, Noop, OmitBotParamFromFunc, PureObject, START_TIME, StartOptions, StatusFormatter, SystemMap, addService, base64Decode, base64Encode, bindBot, botConfig, box, clamp, colorize, colors, createCmd, createDB, createForwardMsg, createStore, dayjs, dedent, definePlugin, enablePlugin, ensureBuffer, ensurePluginDir, filesize, filter, find, findLocalPlugins, formatDuration, formatMiokiStatus, formatQQLevel, fs, getAbsPluginDir, getAuthCodeViaTicket, getBfaceUrl, getGTk, getGroupAvatarLink, getImage, getImageUrl, getLogFilePath, getMentionedImage, getMentionedImageUrl, getMentionedUserId, getMinicoTokenViaAuthCode, getMiokiLogger, getMiokiStatus, getQQAvatarLink, getQuoteImage, getQuoteImageUrl, getQuoteMsg, getQuoteText, getTerminalInput, getViolationRecords, hasRight, isAdmin, isBoolean, isDefined, isFunction, isGroupMsg, isInPm2, isNumber, isObject, isOwner, isOwnerOrAdmin, isPrivateMsg, isString, jiti, localNum, localeDate, localeTime, logger, match, md5, mri, noNullish, noticeAdmins, noticeFriends, noticeGroups, noticeMainOwner, noticeOwners, path, prettyMs, qs, queryDevToolsLoginStatus, randomId, randomInt, randomItem, randomItems, readMiokiConfig, readPackageJson, requestLoginViaDevTools, runWithErrorHandler, runWithReaction, runtimePlugins, services, signArk, start, string2argv, stringifyError, stripAnsi, systemInfo, text, toArray, toMsgId, unique, updateBotCWD, updateBotConfig, uploadImageToCollection, uploadImageToGroupHomework, uploadImageToGroupNotice, uuid, wait, writePackageJson };
679
689
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
1
  import { t as __export } from "./chunk-DYZpOiH0.mjs";
2
- import { t as version } from "./package-HADFnNFP.mjs";
2
+ import { t as version } from "./package-pNCdmvkN.mjs";
3
3
  import fs, { default as fs$1 } from "node:fs";
4
4
  import util from "node:util";
5
5
  import path, { default as path$1 } from "node:path";
6
6
  import mri, { default as mri$1 } from "mri";
7
7
  import crypto from "node:crypto";
8
8
  import { Low } from "lowdb";
9
+ import { NapCat, segment } from "napcat-sdk";
9
10
  import { DataFile } from "lowdb/node";
10
11
  import { createJiti } from "jiti";
11
12
  import { string2argv, string2argv as string2argv$1 } from "string2argv";
12
13
  import { fileURLToPath } from "node:url";
13
- import { NapCat, segment } from "napcat-sdk";
14
14
  import prettyMs from "pretty-ms";
15
15
  import { filesize } from "filesize";
16
16
  import dayjs from "dayjs";
@@ -1397,6 +1397,7 @@ async function formatMiokiStatus(status) {
1397
1397
  const diskValid = disk.total > 0 && disk.free >= 0;
1398
1398
  const diskDesc = `${disk.percent}%-${filesize(disk.used, { round: 1 })}/${filesize(disk.total, { round: 1 })}`;
1399
1399
  return `
1400
+ 〓 🟢 mioki 状态 〓
1400
1401
  👤 ${bot.nickname}
1401
1402
  🆔 ${bot.uin}
1402
1403
  📋 ${localNum(bot.friends)} 好友 / ${localNum(bot.groups)} 群
@@ -1474,7 +1475,7 @@ function getCpuInfo() {
1474
1475
 
1475
1476
  //#endregion
1476
1477
  //#region src/builtins/core/index.ts
1477
- const corePlugins = ["mioki-core"];
1478
+ const CORE_PLUGINS = ["mioki-core"];
1478
1479
  const core = definePlugin({
1479
1480
  name: "mioki-core",
1480
1481
  version,
@@ -1486,17 +1487,15 @@ const core = definePlugin({
1486
1487
  const statusAdminOnly = ctx.botConfig.status_permission === "admin-only";
1487
1488
  let statusFormatter = (status) => formatMiokiStatus(status);
1488
1489
  ctx.addService("getMiokiStatus", () => getMiokiStatus(ctx.bot));
1489
- ctx.addService("formatMiokiStatus", formatMiokiStatus);
1490
- ctx.addService("customFormatMiokiStatus", (formatter) => {
1491
- statusFormatter = formatter;
1492
- });
1490
+ ctx.addService("formatMiokiStatus", (status) => formatMiokiStatus(status));
1491
+ ctx.addService("customFormatMiokiStatus", (formatter) => statusFormatter = formatter);
1493
1492
  ctx.handle("message", (e) => ctx.runWithErrorHandler(async () => {
1494
1493
  const text$1 = ctx.text(e);
1495
1494
  if (!cmdPrefix.test(text$1)) return;
1496
1495
  if (statusAdminOnly && !ctx.hasRight(e)) return;
1497
1496
  if (text$1.replace(cmdPrefix, "") === "状态") {
1498
1497
  const status = await statusFormatter(await getMiokiStatus(ctx.bot));
1499
- await e.reply(`〓 🟢 mioki 状态 〓\n${status}`.trim());
1498
+ await e.reply(status);
1500
1499
  return;
1501
1500
  }
1502
1501
  if (!ctx.isOwner(e)) return;
@@ -1515,7 +1514,7 @@ const core = definePlugin({
1515
1514
  `).trim());
1516
1515
  break;
1517
1516
  case "插件":
1518
- if (corePlugins.includes(target)) {
1517
+ if (CORE_PLUGINS.includes(target)) {
1519
1518
  await e.reply("内置插件无法操作", true);
1520
1519
  return;
1521
1520
  }
@@ -1873,5 +1872,5 @@ async function start(options = {}) {
1873
1872
  }
1874
1873
 
1875
1874
  //#endregion
1876
- export { BOT_CWD, ChromeUA, START_TIME, addService, base64Decode, base64Encode, bindBot, botConfig, box, clamp, colorize, colors, createCmd, createDB, createForwardMsg, createStore, dayjs, dedent, definePlugin, enablePlugin, ensureBuffer, ensurePluginDir, filesize, filter, find, findLocalPlugins, formatDuration, formatQQLevel, fs, getAbsPluginDir, getAuthCodeViaTicket, getBfaceUrl, getGTk, getGroupAvatarLink, getImage, getImageUrl, getLogFilePath, getMentionedImage, getMentionedImageUrl, getMentionedUserId, getMinicoTokenViaAuthCode, getMiokiLogger, getQQAvatarLink, getQuoteImage, getQuoteImageUrl, getQuoteMsg, getQuoteText, getTerminalInput, getViolationRecords, hasRight, isAdmin, isBoolean, isDefined, isFunction, isGroupMsg, isInPm2, isNumber, isObject, isOwner, isOwnerOrAdmin, isPrivateMsg, isString, jiti, localNum, localeDate, localeTime, logger, match, md5, mri, noNullish, noticeAdmins, noticeFriends, noticeGroups, noticeMainOwner, noticeOwners, path, prettyMs, qs, queryDevToolsLoginStatus, randomId, randomInt, randomItem, randomItems, readMiokiConfig, readPackageJson, requestLoginViaDevTools, runWithErrorHandler, runWithReaction, runtimePlugins, services, signArk, start, string2argv, stringifyError, stripAnsi, systemInfo, text, toArray, toMsgId, unique, updateBotCWD, updateBotConfig, uploadImageToCollection, uploadImageToGroupHomework, uploadImageToGroupNotice, uuid, wait, writePackageJson };
1875
+ export { ArchMap, BOT_CWD, BUILTIN_PLUGINS, CORE_PLUGINS, ChromeUA, START_TIME, SystemMap, addService, base64Decode, base64Encode, bindBot, botConfig, box, clamp, colorize, colors, createCmd, createDB, createForwardMsg, createStore, dayjs, dedent, definePlugin, enablePlugin, ensureBuffer, ensurePluginDir, filesize, filter, find, findLocalPlugins, formatDuration, formatMiokiStatus, formatQQLevel, fs, getAbsPluginDir, getAuthCodeViaTicket, getBfaceUrl, getGTk, getGroupAvatarLink, getImage, getImageUrl, getLogFilePath, getMentionedImage, getMentionedImageUrl, getMentionedUserId, getMinicoTokenViaAuthCode, getMiokiLogger, getMiokiStatus, getQQAvatarLink, getQuoteImage, getQuoteImageUrl, getQuoteMsg, getQuoteText, getTerminalInput, getViolationRecords, hasRight, isAdmin, isBoolean, isDefined, isFunction, isGroupMsg, isInPm2, isNumber, isObject, isOwner, isOwnerOrAdmin, isPrivateMsg, isString, jiti, localNum, localeDate, localeTime, logger, match, md5, mri, noNullish, noticeAdmins, noticeFriends, noticeGroups, noticeMainOwner, noticeOwners, path, prettyMs, qs, queryDevToolsLoginStatus, randomId, randomInt, randomItem, randomItems, readMiokiConfig, readPackageJson, requestLoginViaDevTools, runWithErrorHandler, runWithReaction, runtimePlugins, services, signArk, start, string2argv, stringifyError, stripAnsi, systemInfo, text, toArray, toMsgId, unique, updateBotCWD, updateBotConfig, uploadImageToCollection, uploadImageToGroupHomework, uploadImageToGroupNotice, uuid, wait, writePackageJson };
1877
1876
  //# sourceMappingURL=index.mjs.map