-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathopenclaw.plugin.yaml
More file actions
218 lines (200 loc) · 5.64 KB
/
openclaw.plugin.yaml
File metadata and controls
218 lines (200 loc) · 5.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# ContentPipe — OpenClaw Plugin Manifest
# 图文内容全自动生产线
id: content-pipeline
name: ContentPipe
version: 0.8.1
description: "AI 图文内容生产线:选题→调研→写作→配图→排版→发布,每步可交互审核。"
emoji: 📝
# 插件内置 skills(与插件版本一起发布)
skills:
- skills
# 插件类型:managed-service(后台常驻 Python 进程 + Web UI)
type: managed-service
# 服务配置
service:
runtime: python
command: "python3 -m uvicorn web.app:app --host 0.0.0.0 --port {port}"
cwd: scripts
port: 8765
health_check: "http://localhost:{port}/api/health"
auto_start: true
restart_on_failure: true
env:
PYTHONPATH: "."
# Discord 集成
discord:
# 通知频道(pipeline 事件推送到这里)
# 公开仓库默认留空;部署时通过环境变量 CONTENTPIPE_NOTIFY_CHANNEL 或本地配置注入
notify_channel: ""
# 交互式按钮
components:
# 节点审核完成时发送按钮
review_buttons:
- label: "✅ 继续"
action: approve
style: success
- label: "🔄 重跑"
action: rerun
style: secondary
- label: "🛑 停止"
action: stop
style: danger
# AI 工具注册(AI 可直接调用)
tools:
- name: contentpipe_create
description: "创建新的内容生产任务"
parameters:
topic:
type: string
description: "选题或话题关键词"
required: true
platform:
type: string
description: "目标平台 (wechat/xhs)"
default: wechat
auto_approve:
type: boolean
description: "是否全自动(跳过审核)"
default: false
- name: contentpipe_status
description: "查看当前/指定 Run 的状态"
parameters:
run_id:
type: string
description: "Run ID(留空查最新)"
required: false
- name: contentpipe_list
description: "列出所有 Run"
parameters:
limit:
type: number
description: "最多返回几条"
default: 10
- name: contentpipe_approve
description: "审批通过当前节点,继续执行"
parameters:
run_id:
type: string
required: true
feedback:
type: string
description: "审核意见(可选)"
required: false
- name: contentpipe_chat
description: "与当前节点的 AI 角色对话"
parameters:
run_id:
type: string
required: true
message:
type: string
required: true
node:
type: string
description: "指定节点(留空用当前节点)"
required: false
- name: contentpipe_reject
description: "驳回当前节点,带反馈重新执行"
parameters:
run_id:
type: string
required: true
reason:
type: string
required: true
description: "驳回原因/修改要求"
- name: contentpipe_rollback
description: "回退到指定节点重新执行(丢弃当前节点及下游产物)"
parameters:
run_id:
type: string
required: true
target_node:
type: string
required: true
description: "回退目标节点 (scout/researcher/writer/director/formatter)"
reason:
type: string
description: "回退原因"
required: false
- name: contentpipe_config
description: "读取或修改项目配置(模型、通知频道、图片引擎等)"
parameters:
action:
type: string
required: true
description: "get(读取)或 set(修改)"
key:
type: string
description: "配置项: models/notify/image_engine/prompts/all"
default: all
value:
type: object
description: "set 时的新值(JSON 对象)"
required: false
- name: contentpipe_artifacts
description: "读取或修改 run 产物文件(文章、选题、配图方案等)"
parameters:
run_id:
type: string
required: true
action:
type: string
required: true
description: "list/get/put/upload_cover/upload_image"
filename:
type: string
description: "产物文件名(get/put 时必填)"
required: false
content:
type: string
description: "put 时的文件内容"
required: false
image:
type: string
description: "upload 时的 base64 图片数据"
required: false
placement_id:
type: string
description: "upload_image 时的配图 ID (img_001 等)"
required: false
- name: contentpipe_system
description: "系统状态、诊断和测试"
parameters:
action:
type: string
required: true
description: "status/engines/test_llm/test_notify/logs"
model:
type: string
description: "test_llm 时指定模型"
required: false
limit:
type: number
description: "logs 返回行数"
default: 20
# 依赖
dependencies:
python:
- fastapi>=0.115
- uvicorn>=0.34
- sse-starlette>=2.0
- python-multipart>=0.0.18
- jinja2>=3.1
- pyyaml>=6.0
- httpx>=0.27
system:
- python3
# 配置 schema
config:
default_platform: wechat
llm_mode: gateway
gateway_url: "http://localhost:18789"
models:
scout: "anthropic/claude-sonnet-4-6"
researcher: "anthropic/claude-sonnet-4-6"
writer: "openai-codex/gpt-5.4"
de_ai_editor: "anthropic/claude-sonnet-4-6"
director: "anthropic/claude-opus-4-6"
director_refine: "dashscope/qwen3.5-plus"
image_prompt_helper: "anthropic/claude-sonnet-4-6"