@qwen-code/channel-qqbot 0.21.0-nightly.20260729.0c0ca5fed

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/types.js ADDED
@@ -0,0 +1,21 @@
1
+ /**
2
+ * QQ Bot API protocol types.
3
+ * Reference: https://bot.q.qq.com/wiki/develop/api-v2/
4
+ */
5
+ export const OpCode = {
6
+ DISPATCH: 0,
7
+ HEARTBEAT: 1,
8
+ IDENTIFY: 2,
9
+ RESUME: 6,
10
+ RECONNECT: 7,
11
+ INVALID_SESSION: 9,
12
+ HELLO: 10,
13
+ HEARTBEAT_ACK: 11,
14
+ };
15
+ /** QQ Bot WebSocket intents. */
16
+ export const Intent = {
17
+ C2C_MESSAGE: 1 << 12, // C2C 消息
18
+ GROUP_AT_MESSAGE: 1 << 25, // 群聊 @ 消息事件
19
+ GROUP_MESSAGE: 1 << 26, // 群聊全量消息事件 (GROUP_MESSAGE_CREATE)
20
+ };
21
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,QAAQ,EAAE,CAAC;IACX,SAAS,EAAE,CAAC;IACZ,QAAQ,EAAE,CAAC;IACX,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,CAAC;IACZ,eAAe,EAAE,CAAC;IAClB,KAAK,EAAE,EAAE;IACT,aAAa,EAAE,EAAE;CACT,CAAC;AAEX,gCAAgC;AAChC,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE,SAAS;IAC/B,gBAAgB,EAAE,CAAC,IAAI,EAAE,EAAE,YAAY;IACvC,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE,kCAAkC;CAClD,CAAC"}
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@qwen-code/channel-qqbot",
3
+ "version": "0.21.0-nightly.20260729.0c0ca5fed",
4
+ "description": "QQ Bot (QQ机器人) channel adapter for Qwen Code",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "scripts": {
18
+ "build": "tsc --build",
19
+ "test": "vitest run",
20
+ "test:ci": "vitest run"
21
+ },
22
+ "dependencies": {
23
+ "@qwen-code/channel-base": "0.21.0-nightly.20260729.0c0ca5fed",
24
+ "@tencent-connect/qqbot-connector": "^1.1.0",
25
+ "ws": "^8.18.0"
26
+ },
27
+ "devDependencies": {
28
+ "typescript": "^5.0.0"
29
+ }
30
+ }