@takibeiy/moltbot_cn 2026.2.2 → 2026.2.4
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/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/extensions/qq/index.ts +2 -2
- package/extensions/qq/src/accounts.test.ts +1 -1
- package/extensions/qq/src/accounts.ts +2 -2
- package/extensions/qq/src/channel.ts +2 -2
- package/extensions/qq/src/config-schema.ts +1 -1
- package/extensions/qq/src/onboarding.ts +1 -1
- package/extensions/qq/src/runtime.ts +1 -1
- package/extensions/qq/src/send.test.ts +1 -1
- package/extensions/qq/src/send.ts +1 -1
- package/package.json +1 -1
- /package/extensions/qq/{clawdbot.plugin.json → openclaw.plugin.json} +0 -0
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
065107f9c9dfd152f5f4bb061cd2f418f39ce9d1e469f7c7ebf4f310c1651395
|
package/extensions/qq/index.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* This plugin provides QQ messaging support via NapCatQQ/OneBot v11 protocol.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import type { MoltbotPluginApi } from "
|
|
8
|
-
import { emptyPluginConfigSchema } from "
|
|
7
|
+
import type { MoltbotPluginApi } from "openclaw/plugin-sdk";
|
|
8
|
+
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk";
|
|
9
9
|
|
|
10
10
|
import { qqPlugin } from "./src/channel.js";
|
|
11
11
|
import { setQQRuntime } from "./src/runtime.js";
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* and multi-account configurations.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type { MoltbotConfig } from "
|
|
9
|
-
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "
|
|
8
|
+
import type { MoltbotConfig } from "openclaw/plugin-sdk";
|
|
9
|
+
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk";
|
|
10
10
|
|
|
11
11
|
import {
|
|
12
12
|
QQ_DEFAULT_WS_URL,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Complete ChannelPlugin implementation for QQ via NapCatQQ/OneBot v11.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import type { ChannelPlugin, MoltbotConfig } from "
|
|
7
|
+
import type { ChannelPlugin, MoltbotConfig } from "openclaw/plugin-sdk";
|
|
8
8
|
import {
|
|
9
9
|
applyAccountNameToChannelSection,
|
|
10
10
|
buildChannelConfigSchema,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
DEFAULT_ACCOUNT_ID,
|
|
13
13
|
migrateBaseNameToDefaultAccount,
|
|
14
14
|
normalizeAccountId,
|
|
15
|
-
} from "
|
|
15
|
+
} from "openclaw/plugin-sdk";
|
|
16
16
|
|
|
17
17
|
import {
|
|
18
18
|
listQQAccountIds,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
MarkdownConfigSchema,
|
|
12
12
|
ToolPolicySchema,
|
|
13
13
|
normalizeAllowFrom,
|
|
14
|
-
} from "
|
|
14
|
+
} from "openclaw/plugin-sdk";
|
|
15
15
|
|
|
16
16
|
// ============================================================================
|
|
17
17
|
// Local Schema Definitions (not exported from plugin-sdk)
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./send.js";
|
|
17
17
|
|
|
18
18
|
// Mock loadWebMedia from plugin-sdk
|
|
19
|
-
vi.mock("
|
|
19
|
+
vi.mock("openclaw/plugin-sdk", () => ({
|
|
20
20
|
loadWebMedia: vi.fn().mockResolvedValue({
|
|
21
21
|
buffer: Buffer.from("fake-image-data"),
|
|
22
22
|
contentType: "image/jpeg",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Handles sending text and media messages via OneBot API.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { loadWebMedia } from "
|
|
7
|
+
import { loadWebMedia } from "openclaw/plugin-sdk";
|
|
8
8
|
import type { OneBotApi } from "./onebot/api.js";
|
|
9
9
|
import type { OneBotMessageSegment, OneBotSendMsgResponse } from "./onebot/types.js";
|
|
10
10
|
import { formatQQTarget, parseQQTarget, type ParsedQQTarget } from "./normalize.js";
|
package/package.json
CHANGED
|
File without changes
|