@clipen/clipen-cli 1.0.9 → 1.1.0
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 +53 -43
- package/README.zh-TW.md +99 -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/cli.py +4 -1
- 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/src/clipen/workspace.py +21 -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,96 @@
|
|
|
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. Speech recognition and video processing run on your Mac; AI editing uses your selected Claude Code or Codex service.
|
|
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
|
-
|
|
25
|
-
|
|
25
|
+
npx @clipen/clipen-cli # install
|
|
26
|
+
# Open a new Terminal after installation
|
|
27
|
+
cd the-folder-for-your-projects
|
|
28
|
+
clipen claude # or clipen codex
|
|
26
29
|
```
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
After installation, open a new Terminal before running `clipen`. Keep the workbench’s Terminal running. In the browser, confirm your AI provider is connected, then create a project, point it at your footage folder, pick a template and press Start.
|
|
32
|
+
|
|
33
|
+
## Features
|
|
29
34
|
|
|
30
|
-
|
|
35
|
+
### 🎬 Editing templates
|
|
31
36
|
|
|
32
|
-
|
|
37
|
+
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.
|
|
33
38
|
|
|
34
|
-
|
|
39
|
+
<img src=".github/assets/templates.jpg" alt="The nine editing templates built into Clipen" />
|
|
35
40
|
|
|
36
|
-
|
|
41
|
+
### 📝 Review notes
|
|
37
42
|
|
|
38
|
-
|
|
43
|
+
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
44
|
|
|
40
|
-
|
|
45
|
+
Unresolved notes remain visible for the next round. Review the AI’s replies and results before accepting a revision.
|
|
41
46
|
|
|
42
|
-
|
|
47
|
+
### ✏️ Fix it yourself
|
|
43
48
|
|
|
44
|
-
|
|
49
|
+
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
50
|
|
|
46
|
-
|
|
51
|
+
- **Captions**: change the words, mark the word to stress, change the delivery
|
|
52
|
+
- **Graphics**: drag, stretch or move title cards and place labels to another track, or retype their text
|
|
53
|
+
- **Made a mistake**: <kbd>⌘Z</kbd> undoes and <kbd>⇧⌘Z</kbd> redoes; version history lets you review and restore earlier saved results
|
|
47
54
|
|
|
48
|
-
|
|
55
|
+
Thirteen Chinese and Japanese typefaces are included, and every graphic the AI makes shares one look; review the details you changed by hand after each AI revision.
|
|
49
56
|
|
|
50
|
-
### 🔒
|
|
57
|
+
### 🔒 Local processing and AI services
|
|
51
58
|
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
59
|
+
- Speech recognition and video processing run locally. AI editing can provide your brief, review notes, footage-related text (including transcript excerpts), and image snapshots to the selected AI tool. This content may be sent to its service under that provider’s data policies
|
|
60
|
+
- The AI is called only after you confirm on screen, using Claude Code's or Codex's own sign-in and plan
|
|
61
|
+
- Clipen records source and license information for selected music. Check the track’s terms for your intended use before publishing
|
|
62
|
+
- Export an MP4, review the result, and confirm you have permission to publish the footage and music
|
|
56
63
|
|
|
57
|
-
##
|
|
64
|
+
## Requirements
|
|
58
65
|
|
|
59
|
-
- Apple
|
|
60
|
-
- [Node.js](https://nodejs.org) 20.12
|
|
61
|
-
-
|
|
66
|
+
- A Mac with Apple silicon (M series)
|
|
67
|
+
- [Node.js](https://nodejs.org) 20.12 or later, running natively as `arm64`
|
|
68
|
+
- [Claude Code](https://claude.com/claude-code) or the [Codex CLI](https://github.com/openai/codex), signed in
|
|
62
69
|
|
|
63
|
-
|
|
70
|
+
Once the prerequisites above are ready, run this in an interactive Terminal and follow the confirmation prompts:
|
|
64
71
|
|
|
65
72
|
```sh
|
|
66
73
|
npx @clipen/clipen-cli
|
|
67
74
|
```
|
|
68
75
|
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
-
|
|
76
|
+
- **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
|
|
77
|
+
- **Leaves your other software alone**: it installs, upgrades or changes none of the tools you already have, and never needs sudo
|
|
78
|
+
- **Shell command setup**: it adds a managed PATH block to `~/.zshrc` (or `~/.bash_profile` for bash on macOS) so you can type `clipen`
|
|
79
|
+
- **One line to remove**: `clipen uninstall` deletes all of the above, the managed PATH block included; your projects, footage and exports are kept
|
|
73
80
|
|
|
74
|
-
|
|
|
81
|
+
| Command | What it does |
|
|
75
82
|
| --- | --- |
|
|
76
|
-
| `clipen
|
|
77
|
-
| `clipen
|
|
78
|
-
| `clipen
|
|
79
|
-
| `clipen
|
|
83
|
+
| `clipen` | Lists every command |
|
|
84
|
+
| `clipen claude` / `clipen codex` | Opens the workbench for the current folder |
|
|
85
|
+
| `clipen update` | Updates to the latest version; your projects are kept |
|
|
86
|
+
| `clipen uninstall` | Removes Clipen's program, models and command; keeps projects, footage and exports |
|
|
87
|
+
| `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 |
|
|
88
|
+
|
|
89
|
+
Projects live in a `.clipen` folder inside the folder you open; your footage stays where it is.
|
|
80
90
|
|
|
81
|
-
|
|
91
|
+
## Feedback
|
|
82
92
|
|
|
83
|
-
|
|
93
|
+
[Issues and ideas](https://github.com/IMGMANISME/clipen/issues) are welcome. Please don't attach private footage, credentials or full local paths.
|
|
84
94
|
|
|
85
|
-
|
|
95
|
+
## License
|
|
86
96
|
|
|
87
|
-
|
|
97
|
+
MIT © [GMAN](https://github.com/IMGMANISME)
|
|
88
98
|
|
|
89
|
-
|
|
99
|
+
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,99 @@
|
|
|
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 上執行;AI 剪輯使用你選擇的 Claude Code 或 Codex 服務。
|
|
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
|
+
# 安裝完成後重新開啟 Terminal
|
|
27
|
+
cd 要存放作品的資料夾
|
|
28
|
+
clipen claude # 或 clipen codex
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
安裝完成後先重新開啟 Terminal,再啟動工作台,並保持 Terminal 執行。瀏覽器開啟後確認 AI 已連接,再建立作品、指定毛片資料夾、選一個樣板,按「開始製作」。
|
|
32
|
+
|
|
33
|
+
## 功能
|
|
34
|
+
|
|
35
|
+
### 🎬 剪輯樣板
|
|
36
|
+
|
|
37
|
+
樣板決定故事怎麼說、節奏、字幕與畫面設計;你寫下的需求永遠優先。內建九種:旅遊 vlog、美食探店、日常 vlog、產品評測、活動紀錄、短影音精華、產品開箱、旅遊精華與產品 demo。
|
|
38
|
+
|
|
39
|
+
<img src=".github/assets/templates.jpg" alt="Clipen 內建的九種剪輯樣板" />
|
|
40
|
+
|
|
41
|
+
### 📝 審片注記
|
|
42
|
+
|
|
43
|
+
邊看邊在時間點留注記:要修改、拿掉、這樣可以、加強爆點、地點補充、聲音。注記可以指向整個鏡頭,也可以指向某個字幕或元件,送出後 AI 會逐筆處理並回覆。
|
|
44
|
+
|
|
45
|
+
尚未解決的注記會保留到下一輪。接受修改前,請確認 AI 的回覆與實際成果。
|
|
46
|
+
|
|
47
|
+
### ✏️ 自己動手改
|
|
48
|
+
|
|
49
|
+
不想等 AI 的小地方,可以直接改,畫面即時跟著變:
|
|
50
|
+
|
|
51
|
+
- **字幕**:改字、標出要強調的字、換語氣
|
|
52
|
+
- **元件**:字卡、地點標示等直接拖曳、拉長、疊到另一軌,或改上面的字
|
|
53
|
+
- **改錯了**:<kbd>⌘Z</kbd> 回上一步、<kbd>⇧⌘Z</kbd> 重做;透過版本紀錄檢視與還原先前已儲存的成果
|
|
54
|
+
|
|
55
|
+
內附 13 套中日文字型,AI 做的每個元件都套用同一組外觀;每次 AI 修改後,請確認先前手動調整的細節。
|
|
56
|
+
|
|
57
|
+
### 🔒 本機處理與 AI 服務
|
|
58
|
+
|
|
59
|
+
- 語音辨識與影片處理在本機執行。AI 剪輯可能將需求、審片注記、素材相關文字(包含逐字稿片段)與畫面快照交給所選 AI 工具;這些內容可能傳送至該服務,適用其資料政策
|
|
60
|
+
- 只有你在畫面上確認後才呼叫 AI,用的是 Claude Code 或 Codex 自己的登入與額度
|
|
61
|
+
- Clipen 記錄所選配樂的來源與授權資訊;發佈前仍應確認該曲目的條款適用於你的用途
|
|
62
|
+
- 匯出 MP4,檢查成果,並確認有權發佈所使用的素材與音樂
|
|
63
|
+
|
|
64
|
+
## 安裝需求
|
|
65
|
+
|
|
66
|
+
- Apple 晶片(M 系列)的 Mac
|
|
67
|
+
- [Node.js](https://nodejs.org) 20.12 以上,以原生 `arm64` 執行
|
|
68
|
+
- 已登入的 [Claude Code](https://claude.com/claude-code) 或 [Codex CLI](https://github.com/openai/codex)
|
|
69
|
+
|
|
70
|
+
備妥上述必要環境後,在互動式 Terminal 執行下列指令,並依提示確認安裝:
|
|
71
|
+
|
|
72
|
+
```sh
|
|
73
|
+
npx @clipen/clipen-cli
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
- **全部放在一個資料夾**:`~/Library/Application Support/Clipen`,包括執行環境、語音辨識模型(約 3 GB)、繪製畫面用的瀏覽器,以及 Mac 上沒有時才下載的 ffmpeg
|
|
77
|
+
- **不動你電腦上的其他程式**:不安裝、不升級、不修改你已經有的任何工具,也不需要 sudo
|
|
78
|
+
- **指令路徑設定**:在 `~/.zshrc`(macOS bash 則為 `~/.bash_profile`)加入管理的 PATH 區塊,讓你能直接輸入 `clipen`
|
|
79
|
+
- **一行移除**:`clipen uninstall` 會刪掉上面這些,連同管理的 PATH 設定區塊;作品、毛片與匯出檔會保留
|
|
80
|
+
|
|
81
|
+
| 指令 | 做什麼 |
|
|
82
|
+
| --- | --- |
|
|
83
|
+
| `clipen` | 列出所有指令 |
|
|
84
|
+
| `clipen claude`/`clipen codex` | 在目前資料夾啟動工作台 |
|
|
85
|
+
| `clipen update` | 更新到最新版,作品資料保留 |
|
|
86
|
+
| `clipen uninstall` | 移除 Clipen 的程式、模型與指令,保留作品、毛片與匯出檔 |
|
|
87
|
+
| `clipen language en`/`zh-TW`/`auto` | 指定 Clipen 的語言(Terminal、網頁與 AI 寫的字),`auto` 跟著系統;網頁右上角也能切換 |
|
|
88
|
+
|
|
89
|
+
作品存在資料夾裡的 `.clipen` 子目錄,毛片留在原本的位置。
|
|
90
|
+
|
|
91
|
+
## 回饋
|
|
92
|
+
|
|
93
|
+
歡迎留下[問題或建議](https://github.com/IMGMANISME/clipen/issues),請勿附上私人素材、帳號憑證或本機完整路徑。
|
|
94
|
+
|
|
95
|
+
## 授權
|
|
96
|
+
|
|
97
|
+
MIT © [GMAN](https://github.com/IMGMANISME)
|
|
98
|
+
|
|
99
|
+
內附字型採用 SIL Open Font License,見 [`src/clipen/rendering/fonts`](src/clipen/rendering/fonts)。
|