@dai_ming/plugin-deliverables
v1.2.3
Published
OpenClaw deliverables native plugin — upload AI-generated files to OSS and return shareable preview/download links
Readme
@dai_ming/plugin-deliverables
OpenClaw Native 插件:注册 deliverables__upload_deliverable 原生 agent tool,把 AI 生成的文件上传到知识库交付物系统,并返回可分享的预览/下载链接。
包含内容
| 路径 | 说明 |
| --- | --- |
| index.js | OpenClaw native extension:注册上传工具、注入运行时规则、拦截直接附件旁路 |
| openclaw.plugin.json | OpenClaw 原生插件清单 |
| openclaw-plugin.json | gateway 兼容清单:声明 skill、AGENTS 规则和插件 entry |
| skills/deliverables/SKILL.md | Agent 使用交付物工具的技能说明 |
| agents-rules/deliverables.md | 注入到 workspace AGENTS.md 的硬规则 |
| deliverables.*.config.json | 各环境知识库连接配置 |
安装
openclaw plugins install @dai_ming/[email protected] --pin
openclaw plugins enable plugin-deliverables通过 gateway 部署时加入 installPlugins:
installPlugins:
- "@dai_ming/[email protected]"运行方式
这个版本不再通过 mcp.servers 注入 stdio MCP 进程。OpenClaw 会读取 package.json 里的 openclaw.extensions,加载 index.js 并注册 native tool:
deliverables__upload_deliverable上传工具根据 HELM_ENV 环境变量加载对应配置文件:
| HELM_ENV | 配置文件 | 说明 |
|----------|---------|------|
| (空) | deliverables.config.json | 本地开发(127.0.0.1) |
| dev | deliverables.dev.config.json | dev 环境 |
| staging | deliverables.staging.config.json | staging 环境 |
| prod | deliverables.prod.config.json | 生产环境 |
配置字段:
kbBaseUrl— 知识库 API 内部地址(Pod 内通信)
环境变量 KNOWLEDGE_DB_URL 可覆盖配置文件值。KNOWLEDGE_DB_API_KEY 仅通过环境变量配置(默认 kb-agent-key-2025)。
IM 交付物链接信任校验使用固定前缀规则:https://uniclaw-ai-kb、http://knowledge-db 或 http://localhost。
发布
cd packages/plugin-deliverables
npm publish --registry https://registry.npmjs.org --access public