@napuketto/adapter 0.18.14 → 0.18.16
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/core/index.mjs +1 -1
- package/dist/{framework-Br7Tfx20.mjs → framework-BbtmlUXJ.mjs} +28 -5
- package/dist/framework-BbtmlUXJ.mjs.map +1 -0
- package/dist/index-BZfGz6FA.d.mts.map +1 -1
- package/dist/{index-f9U_MMJB.d.mts → index-BcQRoLtj.d.mts} +3 -1
- package/dist/index-BcQRoLtj.d.mts.map +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +5 -5
- package/dist/kurobot/index.mjs +1 -1
- package/dist/{kurobot-Gb0VmKZf.mjs → kurobot-BUJkleqO.mjs} +3 -3
- package/dist/{kurobot-Gb0VmKZf.mjs.map → kurobot-BUJkleqO.mjs.map} +1 -1
- package/dist/milky/index.mjs +1 -1
- package/dist/{milky-B9YPk8QN.mjs → milky-DsktXHch.mjs} +3 -3
- package/dist/{milky-B9YPk8QN.mjs.map → milky-DsktXHch.mjs.map} +1 -1
- package/dist/onebot11/index.mjs +1 -1
- package/dist/{onebot11-ZYyghjp_.mjs → onebot11-CqHLrn9g.mjs} +3 -3
- package/dist/{onebot11-ZYyghjp_.mjs.map → onebot11-CqHLrn9g.mjs.map} +1 -1
- package/dist/satori/index.d.mts +1 -1
- package/dist/satori/index.mjs +1 -1
- package/dist/{satori-C1RaFrGq.mjs → satori-Bx8tkR9X.mjs} +27 -10
- package/dist/satori-Bx8tkR9X.mjs.map +1 -0
- package/package.json +3 -3
- package/dist/framework-Br7Tfx20.mjs.map +0 -1
- package/dist/index-f9U_MMJB.d.mts.map +0 -1
- package/dist/satori-C1RaFrGq.mjs.map +0 -1
package/dist/onebot11/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { y as MessageUnique, t as NapukettoOneBot11Adapter, r as OneBotApi, n as assembleOb11Transports, a as canonicalToCqMessage, o as canonicalToSegments, s as cqMessageToCanonical, c as cqMessageToSegments, i as createOb11ActionRegistry, f as encodeCqCode, p as escapeCqParam, m as escapeCqText, u as ob11ConfigSchema, v as ob11ErrorCodeMap, h as parseCqMessage, l as segmentsToCanonical, d as segmentsToCqMessage, g as serializeCqParts, _ as unescapeCqText } from "../onebot11-
|
|
1
|
+
export { y as MessageUnique, t as NapukettoOneBot11Adapter, r as OneBotApi, n as assembleOb11Transports, a as canonicalToCqMessage, o as canonicalToSegments, s as cqMessageToCanonical, c as cqMessageToSegments, i as createOb11ActionRegistry, f as encodeCqCode, p as escapeCqParam, m as escapeCqText, u as ob11ConfigSchema, v as ob11ErrorCodeMap, h as parseCqMessage, l as segmentsToCanonical, d as segmentsToCqMessage, g as serializeCqParts, _ as unescapeCqText } from "../onebot11-CqHLrn9g.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as resolveProtocolConfig,
|
|
1
|
+
import { a as resolveProtocolConfig, d as runAction, i as BaseProtocolAdapter, o as BEARER_PREFIX, r as createServerSchema, s as createTokenAuthorize, u as ActionRegistry } from "./framework-BbtmlUXJ.mjs";
|
|
2
2
|
import { a as firstNonEmptyString, c as MS_TO_SEC, d as numericUin, f as resolveUidToUinWithFallback, i as toUnixSeconds, l as NUMERIC_RE, m as toUin, n as senderNickname, o as stringOrUndefined, r as subscribeRawMessages, s as startupBaselineSec, u as collectGroupNotifyUids } from "./raw-message-DU8YOhLV.mjs";
|
|
3
3
|
import { a as logEventFailure, c as downloadBufferToFile, d as prepareVideoElements, i as hasGrayTip, l as ensureSilk, o as sliceRaw, r as firstUntranslatedGrayTip, s as truncRaw, t as collectGrayTipUids, u as fileUriToPath } from "./gray-tip-BwsIxacB.mjs";
|
|
4
4
|
import { a as processSysMsgBlob, d as processInboundBuddyReqs, n as OBSERVED_UNNAMED_SYSMSG_KEYS, o as recognizeSysMsg, r as narrowSysMsgBlobs, t as extractEssenceSetSysMsg, u as BuddyReqDedup } from "./essence-Cn1oRaLw.mjs";
|
|
5
5
|
import { ChatType, EssenceListSync, GrayTipSubType, GroupApi, GroupNotifyMsgStatus, GroupNotifyMsgType, NTGroupMemberRole, NTGroupRequestOperateTypes, TicketApi, TipGroupElementType, WebHonorType, errorMessage, hasStringProp, isRecord, kernelError, narrowEssenceGroupArg, toCanonicalElements } from "@napuketto/kernel";
|
|
6
|
+
import { randomUUID } from "node:crypto";
|
|
6
7
|
import { HttpClient, HttpServer, WsClient, WsServer } from "@napuketto/network";
|
|
7
8
|
import { z } from "zod";
|
|
8
|
-
import { randomUUID } from "node:crypto";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
import { mkdir } from "node:fs/promises";
|
|
11
11
|
import { basename, join } from "node:path";
|
|
@@ -4070,4 +4070,4 @@ function echoFieldOf(req) {
|
|
|
4070
4070
|
}
|
|
4071
4071
|
export { unescapeCqText as _, canonicalToCqMessage as a, cqMessageToSegments as c, segmentsToCqMessage as d, encodeCqCode as f, serializeCqParts as g, parseCqMessage as h, createOb11ActionRegistry as i, segmentsToCanonical as l, escapeCqText as m, assembleOb11Transports as n, canonicalToSegments as o, escapeCqParam as p, OneBotApi as r, cqMessageToCanonical as s, NapukettoOneBot11Adapter as t, ob11ConfigSchema as u, ob11ErrorCodeMap as v, MessageUnique as y };
|
|
4072
4072
|
|
|
4073
|
-
//# sourceMappingURL=onebot11-
|
|
4073
|
+
//# sourceMappingURL=onebot11-CqHLrn9g.mjs.map
|