@clipen/clipen-cli 1.0.9 → 1.0.10
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.
- package/README.md +52 -43
- package/README.zh-TW.md +98 -0
- package/apps/web/dist/assets/index-BHFCflzf.js +15 -0
- package/apps/web/dist/assets/index-BtenOBwP.css +1 -0
- package/apps/web/dist/favicon.svg +1 -1
- package/apps/web/dist/index.html +2 -2
- package/bin/clipen.js +4 -2
- package/package.json +2 -2
- package/pyproject.toml +1 -1
- package/src/clipen/__init__.py +1 -1
- package/src/clipen/annotations/suggestions.py +1 -1
- package/src/clipen/bootstrap.py +70 -15
- package/src/clipen/controller/app.py +102 -1
- package/src/clipen/controller/server.py +14 -6
- package/src/clipen/editing/agent_repository.py +29 -3
- package/src/clipen/editing/agent_tools.py +1 -0
- package/src/clipen/editing/aspect.py +27 -0
- package/src/clipen/editing/production_catalog.py +10 -3
- package/src/clipen/editing/production_media.py +1 -1
- package/src/clipen/editing/production_preview.py +7 -0
- package/src/clipen/editing/production_tools.py +7 -2
- package/src/clipen/editing/skill_tools.py +8 -0
- package/src/clipen/editing/slip.py +109 -0
- package/src/clipen/editing/tool_receipts.py +1 -0
- package/src/clipen/editing/versions.py +2 -0
- package/src/clipen/editing/visual_preview.py +11 -3
- package/src/clipen/editing/workbench.py +33 -1
- package/src/clipen/locale_en.py +18 -0
- package/src/clipen/mcp_editing/server.py +3 -1
- package/src/clipen/media/discovery.py +2 -2
- package/src/clipen/media/preview.py +5 -0
- package/src/clipen/media/storage.py +5 -2
- package/src/clipen/projects/models.py +2 -0
- package/src/clipen/projects/storage.py +84 -4
- package/src/clipen/providers/account.py +37 -6
- package/src/clipen/providers/claude.py +5 -3
- package/src/clipen/providers/claude_editing.py +5 -6
- package/src/clipen/providers/codex.py +19 -7
- package/src/clipen/providers/codex_editing.py +2 -1
- package/src/clipen/providers/editing_agent.py +24 -2
- package/src/clipen/providers/model_selection.py +67 -0
- package/src/clipen/rendering/cover.py +1 -1
- package/src/clipen/rendering/program_subtitles.py +3 -1
- package/src/clipen/rendering/renderer.py +13 -3
- package/src/clipen/skills/builtin/references/graphics.md +1 -1
- package/src/clipen/skills/builtin/templates.json +9 -0
- package/apps/web/dist/assets/index-DPgSvXZ1.js +0 -15
- package/apps/web/dist/assets/index-DmPWV61v.css +0 -1
- package/src/clipen/editing/EDITORIAL_REGRESSIONS.md +0 -38
- package/src/clipen/editing/REFACTOR_DESIGN.md +0 -241
- package/src/clipen/editing/REFACTOR_HANDOFF.md +0 -73
package/README.md
CHANGED
|
@@ -4,86 +4,95 @@
|
|
|
4
4
|
|
|
5
5
|
# Clipen
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**Let AI do the cutting. You decide how it's cut.**
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
Pick an editing template, hand over your footage, and Clipen edits the film with the Claude Code or Codex you already use.<br />
|
|
10
|
+
Leave notes on the timeline as you watch, and the AI follows them. Nothing is uploaded; it all happens on your Mac.
|
|
11
|
+
|
|
12
|
+
**English** · [繁體中文](README.zh-TW.md)
|
|
11
13
|
|
|
12
14
|
[](https://www.npmjs.com/package/@clipen/clipen-cli) [](LICENSE)  
|
|
13
15
|
|
|
14
16
|
<br />
|
|
15
17
|
|
|
16
|
-
<img src=".github/assets/workbench.jpg" alt="Clipen
|
|
18
|
+
<img src=".github/assets/workbench.jpg" alt="The Clipen workbench: the film, review notes and a multi-track timeline" />
|
|
17
19
|
|
|
18
20
|
</div>
|
|
19
21
|
|
|
20
|
-
##
|
|
22
|
+
## Get started
|
|
21
23
|
|
|
22
24
|
```bash
|
|
23
|
-
npx @clipen/clipen-cli #
|
|
24
|
-
cd
|
|
25
|
-
clipen claude #
|
|
25
|
+
npx @clipen/clipen-cli # install
|
|
26
|
+
cd the-folder-for-your-projects
|
|
27
|
+
clipen claude # or clipen codex
|
|
26
28
|
```
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
The workbench opens in your browser: create a project, point it at your footage folder, pick a template and press Start.
|
|
31
|
+
|
|
32
|
+
## Features
|
|
33
|
+
|
|
34
|
+
### 🎬 Editing templates
|
|
29
35
|
|
|
30
|
-
|
|
36
|
+
A template sets how the story is told, the pace, and the look of captions and graphics; what you write always comes first. Nine are built in: travel vlog, food review, daily vlog, product review, event recap, short-form highlights, unboxing, travel highlights and product demo.
|
|
31
37
|
|
|
32
|
-
|
|
38
|
+
<img src=".github/assets/templates.jpg" alt="The nine editing templates built into Clipen" />
|
|
33
39
|
|
|
34
|
-
|
|
40
|
+
You can add templates others share or make your own. A template is just text and reference images, in the same format as Agent Skills; start from [`examples/skills`](examples/skills).
|
|
35
41
|
|
|
36
|
-
|
|
42
|
+
### 📝 Review notes
|
|
37
43
|
|
|
38
|
-
|
|
44
|
+
Leave a note at any moment as you watch: Change, Remove, Keep, Play up, Place or Sound. A note can point at a whole shot or at one caption or graphic; send them and the AI works through each one and reports back.
|
|
39
45
|
|
|
40
|
-
|
|
46
|
+
Only what needs your decision, or what Clipen truly cannot do, is left open, and it carries over to the next round.
|
|
41
47
|
|
|
42
|
-
|
|
48
|
+
### ✏️ Fix it yourself
|
|
43
49
|
|
|
44
|
-
|
|
50
|
+
For small things you don't want to wait for the AI on, change them directly and watch the film update as you go:
|
|
45
51
|
|
|
46
|
-
|
|
52
|
+
- **Captions**: change the words, mark the word to stress, change the delivery
|
|
53
|
+
- **Graphics**: drag, stretch or move title cards and place labels to another track, or retype their text
|
|
54
|
+
- **Made a mistake**: <kbd>⌘Z</kbd> undoes and <kbd>⇧⌘Z</kbd> redoes; every round of edits is kept as a version you can go back to
|
|
47
55
|
|
|
48
|
-
|
|
56
|
+
Thirteen Chinese and Japanese typefaces are included, and every graphic the AI makes shares one look; what you change by hand is kept the next time the AI edits.
|
|
49
57
|
|
|
50
|
-
### 🔒
|
|
58
|
+
### 🔒 Stays on your computer
|
|
51
59
|
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
60
|
+
- Speech recognition runs locally; transcripts and captions never leave your Mac
|
|
61
|
+
- The AI is called only after you confirm on screen, using Claude Code's or Codex's own sign-in and plan
|
|
62
|
+
- Music comes from licensed sources and is credited automatically
|
|
63
|
+
- Download the MP4 and post it
|
|
56
64
|
|
|
57
|
-
##
|
|
65
|
+
## Requirements
|
|
58
66
|
|
|
59
|
-
- Apple
|
|
60
|
-
- [Node.js](https://nodejs.org) 20.12
|
|
61
|
-
-
|
|
67
|
+
- A Mac with Apple silicon (M series)
|
|
68
|
+
- [Node.js](https://nodejs.org) 20.12 or later
|
|
69
|
+
- [Claude Code](https://claude.com/claude-code) or the [Codex CLI](https://github.com/openai/codex), signed in
|
|
62
70
|
|
|
63
|
-
|
|
71
|
+
It installs in one line, with nothing else to set up:
|
|
64
72
|
|
|
65
73
|
```sh
|
|
66
74
|
npx @clipen/clipen-cli
|
|
67
75
|
```
|
|
68
76
|
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
-
|
|
77
|
+
- **Everything in one folder**: `~/Library/Application Support/Clipen` holds the runtime, the speech model (about 3 GB), the browser that draws the graphics, and ffmpeg, downloaded only when your Mac has none
|
|
78
|
+
- **Leaves your other software alone**: it installs, upgrades or changes none of the tools you already have, and never needs sudo
|
|
79
|
+
- **One line of setup**: it adds a PATH line to `~/.zshrc` so you can type `clipen`
|
|
80
|
+
- **One line to remove**: `clipen uninstall` deletes all of the above, that line included; your projects, footage and exports are kept
|
|
73
81
|
|
|
74
|
-
|
|
|
82
|
+
| Command | What it does |
|
|
75
83
|
| --- | --- |
|
|
76
|
-
| `clipen
|
|
77
|
-
| `clipen
|
|
78
|
-
| `clipen
|
|
79
|
-
| `clipen
|
|
84
|
+
| `clipen` | Lists every command |
|
|
85
|
+
| `clipen claude` / `clipen codex` | Opens the workbench for the current folder |
|
|
86
|
+
| `clipen update` | Updates to the latest version; your projects are kept |
|
|
87
|
+
| `clipen uninstall` | Removes Clipen's program, models and command; keeps projects, footage and exports |
|
|
88
|
+
| `clipen language en` / `zh-TW` / `auto` | Sets Clipen's language (Terminal, web and what the AI writes); `auto` follows the system. The web page can switch it too, top right |
|
|
80
89
|
|
|
81
|
-
|
|
90
|
+
Projects live in a `.clipen` folder inside the folder you open; your footage stays where it is.
|
|
82
91
|
|
|
83
|
-
##
|
|
92
|
+
## Feedback
|
|
84
93
|
|
|
85
|
-
|
|
94
|
+
[Issues and ideas](https://github.com/IMGMANISME/clipen/issues) are welcome. Please don't attach private footage, credentials or full local paths.
|
|
86
95
|
|
|
87
|
-
##
|
|
96
|
+
## License
|
|
88
97
|
|
|
89
|
-
[MIT](LICENSE) © [GMAN](https://github.com/IMGMANISME)
|
|
98
|
+
[MIT](LICENSE) © [GMAN](https://github.com/IMGMANISME). The bundled fonts are under the SIL Open Font License; see [`src/clipen/rendering/fonts`](src/clipen/rendering/fonts).
|
package/README.zh-TW.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<img src=".github/assets/logo.svg" width="72" alt="Clipen" />
|
|
4
|
+
|
|
5
|
+
# Clipen
|
|
6
|
+
|
|
7
|
+
**讓 AI 幫你剪,讓你決定怎麼剪。**
|
|
8
|
+
|
|
9
|
+
選一個剪輯樣板、交出自己的素材,Clipen 用你已經在用的 Claude Code 或 Codex 剪出影片;<br />
|
|
10
|
+
看片時在時間線上留下注記,AI 就照著改。素材不上傳,全部在你的 Mac 上完成。
|
|
11
|
+
|
|
12
|
+
[English](README.md) · **繁體中文**
|
|
13
|
+
|
|
14
|
+
[](https://www.npmjs.com/package/@clipen/clipen-cli) [](LICENSE)  
|
|
15
|
+
|
|
16
|
+
<br />
|
|
17
|
+
|
|
18
|
+
<img src=".github/assets/workbench.zh-TW.jpg" alt="Clipen 工作台:預覽畫面、審片注記與多軌時間線" />
|
|
19
|
+
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
## 開始使用
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx @clipen/clipen-cli # 安裝
|
|
26
|
+
cd 要存放作品的資料夾
|
|
27
|
+
clipen claude # 或 clipen codex
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
瀏覽器會打開工作台:建立作品、指定毛片資料夾、選一個樣板,按「開始製作」。
|
|
31
|
+
|
|
32
|
+
## 功能
|
|
33
|
+
|
|
34
|
+
### 🎬 剪輯樣板
|
|
35
|
+
|
|
36
|
+
樣板決定故事怎麼說、節奏、字幕與畫面設計;你寫下的需求永遠優先。內建九種:旅遊 vlog、美食探店、日常 vlog、產品評測、活動紀錄、短影音精華、產品開箱、旅遊精華與產品 demo。
|
|
37
|
+
|
|
38
|
+
<img src=".github/assets/templates.jpg" alt="Clipen 內建的九種剪輯樣板" />
|
|
39
|
+
|
|
40
|
+
也可以加入別人分享或自己做的樣板。樣板只有文字和參考圖,格式和 Agent Skills 相同,可以從 [`examples/skills`](examples/skills) 開始改。
|
|
41
|
+
|
|
42
|
+
### 📝 審片注記
|
|
43
|
+
|
|
44
|
+
邊看邊在時間點留注記:要修改、拿掉、這樣可以、加強爆點、地點補充、聲音。注記可以指向整個鏡頭,也可以指向某個字幕或元件,送出後 AI 會逐筆處理並回覆。
|
|
45
|
+
|
|
46
|
+
只有需要你決定、或 Clipen 確實做不到的事才會留下「未處理」,而且會帶到下一次修改。
|
|
47
|
+
|
|
48
|
+
### ✏️ 自己動手改
|
|
49
|
+
|
|
50
|
+
不想等 AI 的小地方,可以直接改,畫面即時跟著變:
|
|
51
|
+
|
|
52
|
+
- **字幕**:改字、標出要強調的字、換語氣
|
|
53
|
+
- **元件**:字卡、地點標示等直接拖曳、拉長、疊到另一軌,或改上面的字
|
|
54
|
+
- **改錯了**:<kbd>⌘Z</kbd> 回上一步、<kbd>⇧⌘Z</kbd> 重做;每次製作與修改都留下版本,可以回到任何一版
|
|
55
|
+
|
|
56
|
+
內附 13 套中日文字型,AI 做的每個元件都套用同一組外觀;你手動改過的地方,AI 下次修改會保留。
|
|
57
|
+
|
|
58
|
+
### 🔒 留在你的電腦上
|
|
59
|
+
|
|
60
|
+
- 語音辨識在本機執行,逐字稿與字幕不離開你的 Mac
|
|
61
|
+
- 只有你在畫面上確認後才呼叫 AI,用的是 Claude Code 或 Codex 自己的登入與額度
|
|
62
|
+
- 配樂從有授權的來源挑選,出處會自動標註
|
|
63
|
+
- 下載 MP4,直接發佈
|
|
64
|
+
|
|
65
|
+
## 安裝需求
|
|
66
|
+
|
|
67
|
+
- Apple 晶片(M 系列)的 Mac
|
|
68
|
+
- [Node.js](https://nodejs.org) 20.12 以上
|
|
69
|
+
- 已登入的 [Claude Code](https://claude.com/claude-code) 或 [Codex CLI](https://github.com/openai/codex)
|
|
70
|
+
|
|
71
|
+
安裝只要一行,過程中不需要另外安裝任何東西:
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
npx @clipen/clipen-cli
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
- **全部放在一個資料夾**:`~/Library/Application Support/Clipen`,包括執行環境、語音辨識模型(約 3 GB)、繪製畫面用的瀏覽器,以及 Mac 上沒有時才下載的 ffmpeg
|
|
78
|
+
- **不動你電腦上的其他程式**:不安裝、不升級、不修改你已經有的任何工具,也不需要 sudo
|
|
79
|
+
- **只改一行設定**:在 `~/.zshrc` 加一行 PATH,讓你能直接輸入 `clipen`
|
|
80
|
+
- **一行移除**:`clipen uninstall` 會刪掉上面這些,連同那一行設定;作品、毛片與匯出檔會保留
|
|
81
|
+
|
|
82
|
+
| 指令 | 做什麼 |
|
|
83
|
+
| --- | --- |
|
|
84
|
+
| `clipen` | 列出所有指令 |
|
|
85
|
+
| `clipen claude`/`clipen codex` | 在目前資料夾啟動工作台 |
|
|
86
|
+
| `clipen update` | 更新到最新版,作品資料保留 |
|
|
87
|
+
| `clipen uninstall` | 移除 Clipen 的程式、模型與指令,保留作品、毛片與匯出檔 |
|
|
88
|
+
| `clipen language en`/`zh-TW`/`auto` | 指定 Clipen 的語言(Terminal、網頁與 AI 寫的字),`auto` 跟著系統;網頁右上角也能切換 |
|
|
89
|
+
|
|
90
|
+
作品存在資料夾裡的 `.clipen` 子目錄,毛片留在原本的位置。
|
|
91
|
+
|
|
92
|
+
## 回饋
|
|
93
|
+
|
|
94
|
+
歡迎留下[問題或建議](https://github.com/IMGMANISME/clipen/issues),請勿附上私人素材、帳號憑證或本機完整路徑。
|
|
95
|
+
|
|
96
|
+
## 授權
|
|
97
|
+
|
|
98
|
+
[MIT](LICENSE) © [GMAN](https://github.com/IMGMANISME)。內附字型採用 SIL Open Font License,見 [`src/clipen/rendering/fonts`](src/clipen/rendering/fonts)。
|