Files
qqbot/package.json
Mingkuan e74be7a3f8 Release/1.7.1 (#247)
* feat: 添加审批功能(Inline Keyboard 按钮交互)

- 新增 approval-handler.ts:监听 Gateway 审批事件,发送带 Inline Keyboard 的审批消息
- api.ts:添加 sendC2CMessageWithInlineKeyboard / sendGroupMessageWithInlineKeyboard
- gateway.ts:处理 Inline Keyboard 按钮回调,注册/注销 approval-handler
- channel.ts:配置 execApprovals(3.28)和 approvals(3.31+)抑制框架 Forwarder 重复通知
- types.ts:添加 InlineKeyboard / KeyboardButton 等 Keyboard 类型定义
- openclaw-plugin-sdk.d.ts:补充 approval-runtime 模块声明

* feat: 增加outbound过滤

* feat: 新增审批相关配置

1. 斜杠指令当遇到报错的时候,支持将文本代理给模型来回复用户

* feat: 新增gateway审批路由注册

* feat: 新增gateway审批路由注册

* feat: 修复低版本发现的问题

1. 3.11版本兼容性处理,动态加载gateway依赖
2. 兼容3.28版本,声明审批功能可用
3. 恢复默认配置的文案修改

* feat: 修复gateway依赖加载失败问题

* feat: update 1.7.1 release
2026-04-03 03:12:30 +08:00

71 lines
1.8 KiB
JSON

{
"name": "@tencent-connect/openclaw-qqbot",
"version": "1.7.1",
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"openclaw-qqbot": "./bin/qqbot-cli.js",
"qqbot": "./bin/qqbot-cli.js"
},
"files": [
"dist",
"bin",
"src",
"skills",
"scripts",
"index.ts",
"preload.cjs",
"tsconfig.json",
"openclaw.plugin.json"
],
"openclaw": {
"id": "openclaw-qqbot",
"extensions": [
"./preload.cjs"
],
"channel": {
"id": "qqbot",
"label": "QQ Bot"
}
},
"scripts": {
"build": "tsc || true",
"postbuild": "node -e \"const fs=require('fs'),p=require('path'),ext=p.join(require('os').homedir(),'.openclaw/extensions/openclaw-qqbot');if(fs.existsSync(ext)&&!fs.lstatSync(ext).isSymbolicLink()){const d=p.join(ext,'dist'),pr=p.join(ext,'preload.cjs');fs.cpSync('dist',d,{recursive:true});fs.copyFileSync('preload.cjs',pr);console.log('[postbuild] synced to',ext)}\"",
"dev": "tsc --watch",
"prepack": "npm install --omit=dev",
"postinstall": "node scripts/postinstall-link-sdk.js 2>/dev/null || true"
},
"dependencies": {
"mpg123-decoder": "^1.0.3",
"silk-wasm": "^3.7.1",
"ws": "^8.18.0"
},
"bundledDependencies": [
"mpg123-decoder",
"silk-wasm",
"ws"
],
"devDependencies": {
"@types/node": "^20.0.0",
"@types/ws": "^8.5.0",
"typescript": "^5.9.3"
},
"peerDependencies": {
"openclaw": "*"
},
"homepage": "https://github.com/tencent-connect/openclaw-qqbot",
"repository": {
"type": "git",
"url": "git+https://github.com/tencent-connect/openclaw-qqbot.git"
},
"bundleDependencies": [
"mpg123-decoder",
"silk-wasm",
"ws"
]
}