@optima-chat/optima-agent 0.9.19 → 0.9.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -78,15 +78,40 @@ It is just hoarding goods
78
78
  - **`**关键词**` 标记 1-2 个**:挑能传达这句"重点信息"的实词(名词/动词),不要标助词、口头禅;短语里没明显重点就 0 个标记
79
79
  - **英文翻译要地道、口语化**——给海外用户看的,不是直译。短句即可,可省略主语。
80
80
 
81
- 写完后:
81
+ **写完后必做的自查(保存前)**:把 final_script 当成一段**连续口播稿**通读一遍——不是一行行检查,是**整体读**。问自己:
82
+
83
+ 1. **同一件事说了两遍吗?**(NG 重拍最常见的坑:上一段和下一段措辞不同但说的是同一件事,比如"我做这个挺久了" + "做了三四年了"——属于同一意思,只留一段)
84
+ 2. **逻辑有跳跃/断点吗?**(如果有,缺哪句话补哪句,前提是原片说过)
85
+ 3. **任何一段是"上一段的翻版"吗?**(删一段)
86
+
87
+ **这一步不可省略**——`smart-cut` 现在会硬阻断字面 4+ 字重复,但语义级重复(同义不同字)只能靠你这一遍通读发现。
88
+
89
+ 写完自查通过后:
82
90
 
83
91
  ```bash
84
92
  video-edit smart-cut <video>
85
- video-edit subtitle <video>
86
93
  ```
87
94
 
88
- `smart-cut` 用 difflib 把脚本对齐回原始 word 时间戳,自动剪掉所有未匹中的部分。
89
- `subtitle` 对成片重新转写并烧字幕。
95
+ `smart-cut` 用 difflib 把脚本对齐回原始 word 时间戳。**如果输出 `[FAIL] 检测到字面重复`**:
96
+
97
+ 1. 看报错指出的"第 X 段 vs 第 Y 段"
98
+ 2. 打开 final_script.txt 删掉重复的那段(一般留措辞更流畅的那遍)
99
+ 3. 重跑 `smart-cut`
100
+ 4. 直到不再 FAIL 才能继续
101
+
102
+ **剪完之后必跑 review**(语义级 NG 兜底检测):
103
+
104
+ ```bash
105
+ video-edit review <video>
106
+ ```
107
+
108
+ 如果报告里有 `HARD: repeated-content`:删 `final_script.txt` 里对应的重复段,重跑 `smart-cut` + `review`,直到 HARD = 0。
109
+
110
+ review 通过后再烧字幕:
111
+
112
+ ```bash
113
+ video-edit subtitle <video>
114
+ ```
90
115
 
91
116
  ### 用户要求调整时
92
117
 
@@ -147,6 +172,8 @@ video-edit smart-cut <video>
147
172
  - ❌ 用 `both` 或 `cut`——已弃用,质量差
148
173
  - ❌ 把命令名/路径暴露给用户——内部细节
149
174
  - ❌ 用户说"剪掉前 X 秒"/"剪掉中间一段"——定点裁剪不是去卡顿,告诉用户"我擅长去卡顿停顿,定点裁剪请用别的方式"
175
+ - ❌ **跳过通读自查直接 smart-cut**——重复内容是用户最反感的问题,省这一步省不出去
176
+ - ❌ **跳过 review 直接 subtitle**——subtitle 烧完字幕的成片重复不可逆,必须先通过 review
150
177
 
151
178
  ## 命令参考(你内部用)
152
179
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optima-chat/optima-agent",
3
- "version": "0.9.19",
3
+ "version": "0.9.20",
4
4
  "description": "基于 Claude Agent SDK 的电商运营 AI 助手",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",