初始化提交:contentm_agent 工作区全量快照

内容分四块:
1、产品规划产出 —— MCN 短视频整合营销工作台的①段五份(1a 需求/1b 竞品/1c 画像/1d 策略/1e 场景)、②段两份(2a 功能/2b 布局)、③段界面(DESIGN.md 契约与令牌表 + mcn-workbench.html 原型 + 实测/会诊/审查三份 + 23 张闸门截图)。
2、开源竞品调研 —— 5 个内容工作台项目的取证原始件与 1b 系列分析文档。
3、参考资料 —— 竞品视频抽帧 1145 张 + 2 个源视频 + 功能点截图。
4、机制侧 —— 协作脚本与状态台账、工作区记忆日志、抽帧/OCR 脚本。

.gitignore 只排运行时日志、脚本备份副本与一次性探针输出,其余按原样入库。
This commit is contained in:
WorkBuddy committed 2026-10-08 08:13:02 +08:00
commit df56c2c137
1773 files changed
+205840

No files matched your search

@@ -0,0 +1,50 @@
# scripts 目录说明
辅助脚本清单与用法。
## check_env.py
投放环境检查:POSTIZ_API_KEY、sau 命令、Python 版本、requests 库。
```bash
python check_env.py
```
返回码:0=双通道就绪,1=有缺失项。投放流程步骤 3 开始时运行。
## postiz_client.py
Postiz REST API 封装(标准库 + requests),用于海外投放:
```bash
# 列出已连接渠道(取 integration id)
python postiz_client.py integrations
# 上传视频文件(返回 URL)
python postiz_client.py upload D:/videos/demo.mp4
# 创建/排期/发布(请求体为 JSON 文件)
python postiz_client.py posts post_body.json
# 查询时间段内帖子
python postiz_client.py query 2026-08-30T00:00:00.000Z 2026-08-31T00:00:00.000Z
```
**凭证**:环境变量 `POSTIZ_API_KEY`(必填),`POSTIZ_API_BASE` 可覆盖(自托管实例)。
post_body.json 示例:
```json
{
"type": "now",
"posts": [
{
"integration": {"id": "yt-integration-id"},
"value": [{"content": "视频简介", "image": []}],
"settings": {"__type": "youtube", "title": "视频标题", "type": "public"}
}
]
}
```
> 依赖安装:`pip install requests`(upload 子命令需要)。