@linjz/opencode-qqbot 0.3.16 → 0.3.18
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/README.md +316 -266
- package/README.zh-CN.md +326 -0
- package/dist/notify-cli.js +64 -12
- package/dist/opencode-qqbot-plugin.js +591 -92
- package/dist/openqq-bot.js +1172 -303
- package/dist/openqq-cli.js +253 -64
- package/dist/openqq-watchdog.js +373 -110
- package/package.json +4 -3
- package/src/bridge.ts +448 -32
- package/src/cli/notify.ts +4 -1
- package/src/cli/watchdog-main.ts +22 -7
- package/src/commands.ts +74 -58
- package/src/config.ts +39 -5
- package/src/core/bot-config.ts +66 -0
- package/src/core/bot-control.ts +21 -3
- package/src/core/bot-launcher.ts +4 -2
- package/src/core/cron-reminders.ts +84 -0
- package/src/core/delivery.ts +24 -1
- package/src/core/discovery.ts +207 -169
- package/src/core/error-rescue.ts +1 -1
- package/src/core/file-log.ts +16 -7
- package/src/core/inflight-journal.ts +1 -0
- package/src/core/instance-lock.ts +32 -1
- package/src/core/log-rotate.ts +91 -0
- package/src/core/mirror.ts +13 -4
- package/src/core/notices.ts +62 -0
- package/src/core/outbound-sanitize.ts +29 -0
- package/src/core/permission.ts +16 -0
- package/src/core/qq-instructions.ts +122 -0
- package/src/core/queue-view.ts +1 -0
- package/src/core/send-media.ts +29 -2
- package/src/core/send-requests.ts +227 -0
- package/src/core/start-error.ts +26 -0
- package/src/core/stt.ts +55 -0
- package/src/core/supervisor-election.ts +53 -0
- package/src/core/turn-correction.ts +68 -0
- package/src/core/watchdog.ts +171 -14
- package/src/index.ts +262 -250
- package/src/opencode/client.ts +32 -1
- package/src/opencode/mirror.ts +17 -4
- package/src/opencode/sessions.ts +20 -1
- package/src/plugin-entry.ts +67 -2
- package/src/qq/gateway.ts +35 -0
- package/src/qq/media.ts +21 -0
- package/src/qq/sender.ts +50 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linjz/opencode-qqbot",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "QQ Bot for OpenCode AI - chat with AI coding assistant via QQ",
|
|
6
6
|
"exports": {
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
"dev": "bun run --watch src/index.ts",
|
|
15
15
|
"start": "bun run src/index.ts",
|
|
16
16
|
"typecheck": "tsc --noEmit",
|
|
17
|
-
"test": "bun
|
|
18
|
-
"
|
|
17
|
+
"test": "bun scripts/run-tests.mjs",
|
|
18
|
+
"hooks:install": "bun scripts/install-hooks.mjs",
|
|
19
|
+
"test:e2e": "bun --preload ./test/guard.ts test/watch-history-e2e.ts && bun --preload ./test/guard.ts test/d1-subagent-ask-e2e.ts && bun --preload ./test/guard.ts test/d2-conflict-e2e.ts && bun --preload ./test/guard.ts test/perm-e2e.ts && bun --preload ./test/guard.ts test/perm-real-e2e.ts",
|
|
19
20
|
"verify": "bun run typecheck && bun run test",
|
|
20
21
|
"verify:full": "bun run verify && bun run test:e2e",
|
|
21
22
|
"build:bundle": "bun build src/index.ts --outfile=dist/openqq-bot.js --target=node",
|