initial: 七牛云上传 OpenClaw Skill
功能特性: - 支持 /upload, /u 命令上传文件到七牛云 - 支持 /qiniu-config 配置管理 - 支持飞书卡片交互 - 支持指定上传路径和存储桶 - 自动刷新 CDN 缓存 - 支持文件覆盖上传 包含组件: - OpenClaw 处理器 (openclaw-processor.js) - 独立监听器 (scripts/feishu-listener.js) - 核心上传脚本 (scripts/upload-to-qiniu.js) - 部署脚本 (deploy.sh) - 完整文档 部署方式: 1. 复制 skill 到 ~/.openclaw/workspace/skills/ 2. 配置 ~/.openclaw/credentials/qiniu-config.json 3. 重启 OpenClaw Gateway
This commit is contained in:
43
package.json
Normal file
43
package.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"name": "qiniu-uploader",
|
||||
"version": "2.0.0",
|
||||
"description": "七牛云文件上传和管理 Skill",
|
||||
"author": "饭团 🍙",
|
||||
"license": "MIT",
|
||||
"main": "openclaw-processor.js",
|
||||
"scripts": {
|
||||
"upload": "node scripts/upload-to-qiniu.js",
|
||||
"test": "node openclaw-processor.js --message '{\"content\":{\"text\":\"/qiniu-config list\"}}'"
|
||||
},
|
||||
"dependencies": {
|
||||
"ws": "^8.14.0"
|
||||
},
|
||||
"openclaw": {
|
||||
"type": "skill",
|
||||
"triggers": [
|
||||
"/upload",
|
||||
"/qiniu-config",
|
||||
"/qiniu-help"
|
||||
],
|
||||
"handler": "openclaw-processor.js",
|
||||
"config": {
|
||||
"credentials": "~/.openclaw/credentials/qiniu-config.json",
|
||||
"feishu": {
|
||||
"appId": "cli_a92ce47b02381bcc",
|
||||
"appSecret": "WpCWhqOPKv3F5Lhn11DqubrssJnAodot"
|
||||
}
|
||||
}
|
||||
},
|
||||
"keywords": [
|
||||
"qiniu",
|
||||
"upload",
|
||||
"cdn",
|
||||
"feishu",
|
||||
"openclaw",
|
||||
"skill"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/openclaw/openclaw"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user