{"_id":"@descartes_1/debox","_rev":"4-c4505959492d3af675c9ded437789545","name":"@descartes_1/debox","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.4":{"name":"@descartes_1/debox","version":"1.0.4","_id":"@descartes_1/debox@1.0.4","maintainers":[{"name":"descartes_1","email":"370400917@qq.com"}],"dist":{"shasum":"7134e3fa444d0bd5c5329bd2d44877c90f56dd74","tarball":"https://registry.npmjs.org/@descartes_1/debox/-/debox-1.0.4.tgz","fileCount":38,"integrity":"sha512-fSbsFurk5ja0+HPIA6ZVhg8+TNgAHv+3wkxpTSmow8OYob+GTe8J2ITic2uZ2hLf5Q72E25cthIsnXkhjBxeCw==","signatures":[{"sig":"MEQCICfrovUI52wCcGeSvm2PeK4hlHeshjcIPu/v58o39EJgAiA+Z1VzzOCe0f1Nm8S2nezyKWYXQ5iK3iG5IuwRYLwygA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":91541},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"e7adf885e33334ebc09b93b5e936f0c0dd8d50bc","scripts":{"build":"tsc -p tsconfig.json","clean":"rm -rf dist","prepack":"npm run build","pack:check":"npm pack --dry-run","publish:market":"./publishnpm.sh"},"_npmUser":{"name":"descartes_1","email":"370400917@qq.com"},"openclaw":{"extensions":["./dist/index.js"]},"_npmVersion":"11.10.1","description":"DeBox 的 OpenClaw channel plugin（channel id: `debox`）。","directories":{},"_nodeVersion":"25.7.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^20.0.0"},"peerDependencies":{"openclaw":"*"},"_npmOperationalInternal":{"tmp":"tmp/debox_1.0.4_1773202006628_0.6278844989444141","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@descartes_1/debox","version":"1.0.5","_id":"@descartes_1/debox@1.0.5","maintainers":[{"name":"descartes_1","email":"370400917@qq.com"}],"dist":{"shasum":"0fd4cc9f8a7869cbc900cdcba9e612700a991102","tarball":"https://registry.npmjs.org/@descartes_1/debox/-/debox-1.0.5.tgz","fileCount":38,"integrity":"sha512-vRcnfmNwi+AyKHBHY6mo3A+neBvuP+IyrnUE7s04Z0HqPEJ8kqbKSNIVIt7T82ZMoH7CkbmhkarV7ZMOEpb98g==","signatures":[{"sig":"MEQCIQCKMTdXRvDRUM2p7U7sYhTqTquBtddcSUyCMcVf95nJagIfN82EOMmY60Bkw/8rAH4hxID9Bq/ctcZ0Amaj/eRLZw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":93891},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"8c51590cd180476909129a62d6ceabb250270234","scripts":{"build":"tsc -p tsconfig.json","clean":"rm -rf dist","prepack":"npm run build","pack:check":"npm pack --dry-run","publish:market":"./publishnpm.sh"},"_npmUser":{"name":"descartes_1","email":"370400917@qq.com"},"openclaw":{"extensions":["./dist/index.js"]},"_npmVersion":"11.11.0","description":"DeBox 的 OpenClaw channel plugin（channel id: `debox`）。","directories":{},"_nodeVersion":"25.7.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^20.0.0"},"peerDependencies":{"openclaw":"*"},"_npmOperationalInternal":{"tmp":"tmp/debox_1.0.5_1773240319590_0.5537500638358033","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@descartes_1/debox","version":"1.0.6","_id":"@descartes_1/debox@1.0.6","maintainers":[{"name":"descartes_1","email":"370400917@qq.com"}],"dist":{"shasum":"df91c7d7314a5a4adcba2dca0704b89e3568512a","tarball":"https://registry.npmjs.org/@descartes_1/debox/-/debox-1.0.6.tgz","fileCount":38,"integrity":"sha512-VFm5nB8DYtFrLmWec9Di4s8GGEbTiHdst1z1+Wv0mNpVeGWS8kvSzsacmgRSFdiRJHs8mNhzhp/ypaX2c3j2nw==","signatures":[{"sig":"MEUCIBWsCFgLdGb3WeOTQ+asQcXeieMdSBvsTjjtxiS3AXzCAiEAqyf08p2hmdUGk9W4XKNSdYCNK8ccvf8py6qqicUjIIk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":93891},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"016f9cb6b93204f52d2b1242d23333496846a9a5","scripts":{"build":"tsc -p tsconfig.json","clean":"rm -rf dist","prepack":"npm run build","pack:check":"npm pack --dry-run","publish:market":"./publishnpm.sh"},"_npmUser":{"name":"descartes_1","email":"370400917@qq.com"},"openclaw":{"extensions":["./dist/index.js"]},"_npmVersion":"11.11.0","description":"DeBox 的 OpenClaw channel plugin（channel id: `debox`）。","directories":{},"_nodeVersion":"25.7.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^20.0.0"},"peerDependencies":{"openclaw":"*"},"_npmOperationalInternal":{"tmp":"tmp/debox_1.0.6_1773240483401_0.4269936531674192","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@descartes_1/debox","version":"1.0.8","type":"module","main":"dist/index.js","types":"dist/index.d.ts","openclaw":{"extensions":["./dist/index.js"],"channel":{"id":"debox","label":"DeBox","selectionLabel":"DeBox (Bot API)","docsPath":"/docs/channels/debox","docsLabel":"debox","blurb":"DeBox Bot API polling plugin for OpenClaw.","aliases":["debox-codex"],"order":56,"quickstartAllowFrom":true},"install":{"npmSpec":"@descartes_1/debox","localPath":"debox-openclaw-plugin","defaultChoice":"npm"}},"scripts":{"build":"tsc -p tsconfig.json","clean":"rm -rf dist","prepack":"npm run build","pack:check":"npm pack --dry-run","publish:market":"./publishnpm.sh"},"peerDependencies":{"openclaw":"*"},"devDependencies":{"@types/node":"^20.0.0","typescript":"^5.9.3"},"gitHead":"0a3a8205109d65ee2016008e8d25d1eab8eef757","_id":"@descartes_1/debox@1.0.8","description":"DeBox 的 OpenClaw channel plugin（channel id: `debox`）。","_nodeVersion":"25.7.0","_npmVersion":"11.11.0","dist":{"integrity":"sha512-tHsVB5/9bSd0x6ZyCvRCTt+30OocLQQsrTa/E2WGVGLzBUyaU8+ZP0MzJl5US7Hx26jJMNyPvBbBRQsIosvU3A==","shasum":"30b5de0ef43523e449121a683e78bce11798b971","tarball":"https://registry.npmjs.org/@descartes_1/debox/-/debox-1.0.8.tgz","fileCount":38,"unpackedSize":94419,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCWA0z030ofERj1cNnMB12dC/8nVMqvC6zXS/YHQ0b2WAIhALooSkHrvGoIiZxS5QIiBKxzRfp4QMYmKltBueB4Adyp"}]},"_npmUser":{"name":"descartes_1","email":"370400917@qq.com"},"directories":{},"maintainers":[{"name":"descartes_1","email":"370400917@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/debox_1.0.8_1773921126376_0.16345305207434557"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-11T04:06:46.457Z","modified":"2026-03-19T11:52:06.654Z","1.0.4":"2026-03-11T04:06:46.789Z","1.0.5":"2026-03-11T14:45:19.733Z","1.0.6":"2026-03-11T14:48:03.582Z","1.0.8":"2026-03-19T11:52:06.511Z"},"description":"DeBox 的 OpenClaw channel plugin（channel id: `debox`）。","maintainers":[{"name":"descartes_1","email":"370400917@qq.com"}],"readme":"# debox-openclaw-plugin\n\nDeBox 的 OpenClaw channel plugin（channel id: `debox`）。\n\n目标是提供更原生、更稳定的 gateway 接入版本：\n\n- 使用 `channels[\"debox\"]` 账户配置模型\n- 通过 `gateway.startAccount` 托管生命周期\n- 用 DeBox Bot API 长轮询收消息\n- 通过 OpenClaw gateway 原生消息管线处理消息\n- 支持 OpenClaw 主动发消息到 DeBox\n- 按会话串行处理，降低重复回复和乱序风险\n\n## 目录\n\n- `index.ts`: OpenClaw 插件入口\n- `src/channel.ts`: channel plugin 定义\n- `src/gateway.ts`: 轮询、去重、排队、接入 OpenClaw reply dispatcher\n- `src/outbound.ts`: 主动发消息\n- `src/debox-sdk/*`: 从现有 `debox_plugin` 整理出的 DeBox SDK\n- `skills/debox-cron/SKILL.md`: DeBox 定时提醒技能（cron 调度 + 正确投递参数）\n- `skills/debox-message/SKILL.md`: DeBox 文本消息投递技能（目标地址与能力边界）\n\n## 配置\n\n推荐放在 `~/.openclaw/openclaw.json`:\n\n```json\n{\n  \"channels\": {\n    \"debox\": {\n      \"enabled\": true,\n      \"token\": \"YOUR_DEBOX_BOT_TOKEN\",\n      \"apiHost\": \"https://open.debox.pro\",\n      \"timeout\": 30,\n      \"pollIntervalMs\": 500,\n      \"maxProcessingTimeMs\": 60000\n    }\n  }\n}\n```\n\n也支持命名账户：\n\n```json\n{\n  \"channels\": {\n    \"debox\": {\n      \"accounts\": {\n        \"work\": {\n          \"enabled\": true,\n          \"token\": \"YOUR_DEBOX_BOT_TOKEN\"\n        }\n      }\n    }\n  }\n}\n```\n\n## OpenClaw 处理链路\n\n插件通过 runtime 的 `channel.reply.dispatchReplyWithBufferedBlockDispatcher` 进入 OpenClaw 原生处理链路，插件内不再维护独立 `/v1/responses` 调用分支。\n\n## 安装\n\n在插件目录执行：\n\n```bash\nnpm install\nnpm run build\nopenclaw plugins install .\nopenclaw channels add --channel debox --token \"YOUR_DEBOX_BOT_TOKEN\"\n```\n\n## 发布到 npm 市场\n\n发布步骤见 [PUBLISH.md](./PUBLISH.md)。\n\n快速发布命令：\n\n```bash\n./publishnpm.sh\n```\n\n## 与旧版 `debox_plugin` 的差异\n\n- 配置模型统一为 `channels.debox` 账户结构，不再混用 `channels` 和 `plugins.entries`\n- 生命周期走 OpenClaw channel gateway，而不是在入口里自行拼路由和全局状态\n- 轮询加入 update 去重、错误退避、按 chat 串行队列\n- 主动发送走 channel outbound，而不是只支持入站轮询回复\n- 文档和目录结构可直接继续迭代\n","readmeFilename":"README.md"}