framx 0.3.1__tar.gz

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.
Files changed (95) hide show
  1. framx-0.3.1/.gitignore +8 -0
  2. framx-0.3.1/AGENT_SETUP.md +51 -0
  3. framx-0.3.1/CHANGELOG.md +118 -0
  4. framx-0.3.1/LICENSE +176 -0
  5. framx-0.3.1/PKG-INFO +392 -0
  6. framx-0.3.1/README.md +365 -0
  7. framx-0.3.1/plugins/antigravity/mcp_config.json +8 -0
  8. framx-0.3.1/plugins/antigravity/plugin.json +13 -0
  9. framx-0.3.1/plugins/antigravity/scripts/framx-mcp +15 -0
  10. framx-0.3.1/plugins/antigravity/skills/framx/SKILL.md +19 -0
  11. framx-0.3.1/plugins/antigravity/skills/framx/references/captions.md +21 -0
  12. framx-0.3.1/plugins/antigravity/skills/framx/references/material.md +22 -0
  13. framx-0.3.1/plugins/antigravity/skills/framx/references/review-memory.md +19 -0
  14. framx-0.3.1/plugins/antigravity/skills/framx/references/timelines.md +26 -0
  15. framx-0.3.1/plugins/claude-code/.claude-plugin/plugin.json +8 -0
  16. framx-0.3.1/plugins/claude-code/.mcp.json +7 -0
  17. framx-0.3.1/plugins/claude-code/scripts/framx-mcp +15 -0
  18. framx-0.3.1/plugins/claude-code/skills/framx/SKILL.md +22 -0
  19. framx-0.3.1/plugins/claude-code/skills/framx/references/captions.md +21 -0
  20. framx-0.3.1/plugins/claude-code/skills/framx/references/material.md +22 -0
  21. framx-0.3.1/plugins/claude-code/skills/framx/references/review-memory.md +19 -0
  22. framx-0.3.1/plugins/claude-code/skills/framx/references/timelines.md +26 -0
  23. framx-0.3.1/plugins/codex/.codex-plugin/plugin.json +15 -0
  24. framx-0.3.1/plugins/codex/.mcp.json +14 -0
  25. framx-0.3.1/plugins/codex/scripts/framx-mcp +15 -0
  26. framx-0.3.1/plugins/codex/skills/framx/SKILL.md +19 -0
  27. framx-0.3.1/plugins/codex/skills/framx/references/captions.md +21 -0
  28. framx-0.3.1/plugins/codex/skills/framx/references/material.md +22 -0
  29. framx-0.3.1/plugins/codex/skills/framx/references/review-memory.md +19 -0
  30. framx-0.3.1/plugins/codex/skills/framx/references/timelines.md +26 -0
  31. framx-0.3.1/pyproject.toml +56 -0
  32. framx-0.3.1/src/framx/__init__.py +3 -0
  33. framx-0.3.1/src/framx/__main__.py +3 -0
  34. framx-0.3.1/src/framx/app.py +845 -0
  35. framx-0.3.1/src/framx/capcheck.py +1075 -0
  36. framx-0.3.1/src/framx/checks.py +63 -0
  37. framx-0.3.1/src/framx/cli.py +323 -0
  38. framx-0.3.1/src/framx/cloud.py +66 -0
  39. framx-0.3.1/src/framx/doctor.py +213 -0
  40. framx-0.3.1/src/framx/edit.py +689 -0
  41. framx-0.3.1/src/framx/export.py +489 -0
  42. framx-0.3.1/src/framx/feedback.py +1542 -0
  43. framx-0.3.1/src/framx/follow.py +214 -0
  44. framx-0.3.1/src/framx/generate.py +397 -0
  45. framx-0.3.1/src/framx/index.py +1044 -0
  46. framx-0.3.1/src/framx/init.py +774 -0
  47. framx-0.3.1/src/framx/interact.py +105 -0
  48. framx-0.3.1/src/framx/jobs.py +238 -0
  49. framx-0.3.1/src/framx/lessons.py +114 -0
  50. framx-0.3.1/src/framx/listen.swift +65 -0
  51. framx-0.3.1/src/framx/look.swift +36 -0
  52. framx-0.3.1/src/framx/mcp_app.py +307 -0
  53. framx-0.3.1/src/framx/mcp_skills.py +98 -0
  54. framx-0.3.1/src/framx/mcp_tasks.py +185 -0
  55. framx-0.3.1/src/framx/media.py +263 -0
  56. framx-0.3.1/src/framx/ocr.swift +36 -0
  57. framx-0.3.1/src/framx/proposals.py +240 -0
  58. framx-0.3.1/src/framx/render.py +1305 -0
  59. framx-0.3.1/src/framx/review.py +385 -0
  60. framx-0.3.1/src/framx/runs.py +997 -0
  61. framx-0.3.1/src/framx/server.py +1020 -0
  62. framx-0.3.1/src/framx/skill.py +113 -0
  63. framx-0.3.1/src/framx/skills/framx/SKILL.md +19 -0
  64. framx-0.3.1/src/framx/skills/framx/references/captions.md +21 -0
  65. framx-0.3.1/src/framx/skills/framx/references/material.md +22 -0
  66. framx-0.3.1/src/framx/skills/framx/references/review-memory.md +19 -0
  67. framx-0.3.1/src/framx/skills/framx/references/timelines.md +26 -0
  68. framx-0.3.1/src/framx/sound.py +573 -0
  69. framx-0.3.1/src/framx/tags.swift +34 -0
  70. framx-0.3.1/src/framx/timeline.py +810 -0
  71. framx-0.3.1/src/framx/ui/OFL-Inter.txt +93 -0
  72. framx-0.3.1/src/framx/ui/api.js +195 -0
  73. framx-0.3.1/src/framx/ui/app.css +452 -0
  74. framx-0.3.1/src/framx/ui/app.js +623 -0
  75. framx-0.3.1/src/framx/ui/draft-preview.js +106 -0
  76. framx-0.3.1/src/framx/ui/draft.js +379 -0
  77. framx-0.3.1/src/framx/ui/editor.js +1951 -0
  78. framx-0.3.1/src/framx/ui/index.html +18 -0
  79. framx-0.3.1/src/framx/ui/inter.woff2 +0 -0
  80. framx-0.3.1/src/framx/ui/proposal.js +114 -0
  81. framx-0.3.1/src/framx/ui/timeline.js +185 -0
  82. framx-0.3.1/src/framx/voice.py +99 -0
  83. framx-0.3.1/src/framx/words.swift +21 -0
  84. framx-0.3.1/tests/__init__.py +0 -0
  85. framx-0.3.1/tests/fixtures/mandarin-reading.json +80 -0
  86. framx-0.3.1/tests/helpers.py +183 -0
  87. framx-0.3.1/tests/test_app_http.py +693 -0
  88. framx-0.3.1/tests/test_capcheck.py +509 -0
  89. framx-0.3.1/tests/test_core.py +1273 -0
  90. framx-0.3.1/tests/test_export.py +150 -0
  91. framx-0.3.1/tests/test_generate.py +308 -0
  92. framx-0.3.1/tests/test_init_doctor.py +616 -0
  93. framx-0.3.1/tests/test_mcp_protocol.py +705 -0
  94. framx-0.3.1/tests/test_review_feedback.py +1106 -0
  95. framx-0.3.1/tests/ui_draft.test.mjs +325 -0
framx-0.3.1/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ __pycache__/
2
+ .venv/
3
+ dist/
4
+ .env
5
+ *.mp4
6
+ *.mov
7
+ *.srt
8
+ eval/runs/
@@ -0,0 +1,51 @@
1
+ # Set up framx (for an AI agent)
2
+
3
+ You are setting up framx, an editing bench for agents on a Mac: you edit video with its tools, and it shows you the material, renders exactly what you ask and checks the result. Run each step yourself, in order. Each one is safe to run again.
4
+
5
+ ## 1. Check the machine
6
+
7
+ ```bash
8
+ uname -sm
9
+ command -v uv
10
+ ```
11
+
12
+ `uname -sm` must print `Darwin arm64`: framx needs a Mac with Apple silicon. If it prints anything else, stop and tell the user. If `command -v uv` prints nothing, install uv with `curl -LsSf https://astral.sh/uv/install.sh | sh` and use `~/.local/bin/uv` until a new shell has it on PATH.
13
+
14
+ ## 2. Install
15
+
16
+ ```bash
17
+ uv tool install framx
18
+ framx --version
19
+ ```
20
+
21
+ If framx is already installed, run `uv tool upgrade framx` instead. If `framx` is not found afterwards, use `~/.local/bin/framx` for the rest of these steps.
22
+
23
+ ## 3. Register it with your harness
24
+
25
+ ```bash
26
+ framx init --json
27
+ ```
28
+
29
+ This registers framx's MCP server and its skill with every agent harness installed for this user: Claude Code, Codex, OpenCode, Antigravity and DeepSeek Harness (`dsh`), each in its own config format and with a tool timeout long enough for indexing. To set up only yours, add `--harness claude`, `codex`, `opencode`, `antigravity` or `dsh`. For any other harness, run `framx init --harness generic --json`: it puts the skill in `~/.agents/skills/framx` and prints the server entry (a command and its arguments) to add to your harness's MCP configuration, with a tool-call timeout of 1800 s or more.
30
+
31
+ `framx init` leaves a framx registration you made yourself as it is: a bare `framx mcp`, a wrapper script, or any other command. An entry that runs `mcp` with an absolute path to a framx or with `~/.config/framx/launch`, or `-m framx mcp` with an absolute Python, counts as one init wrote: init points it at the current framx when framx moves or when you add the launch script, and keeps the rest of the entry. In Claude Code such an entry with its own env gets a note instead, since `claude mcp add` would drop the env. It copies any file before changing it (`<file>.before-framx-<time>`) and never writes API keys into a config file. `--dry-run` shows what it would change.
32
+
33
+ ## 4. Verify
34
+
35
+ ```bash
36
+ framx doctor --json
37
+ ```
38
+
39
+ `"ok": true` means framx works here. For each check with `"ok": false`, do what its `fix` says, then run `framx doctor --json` again. A check with `"ok": null` is a warning: an optional part, or a harness that is installed but not set up yet.
40
+
41
+ ## 5. Start editing
42
+
43
+ - OpenCode and Antigravity load framx at once. Claude Code, Codex and DeepSeek Harness load it in the next session: tell the user.
44
+ - If framx's tools are not in your tool list yet, do not wait for a new session. Read `framx skill` (and `framx skill --list` / `framx skill --ref <name>` for detailed references), which says how to edit with framx, and use the same tools as shell commands (`framx --help`): `framx media`, `framx index`, `framx transcript`, `framx search`, `framx plan`, `framx render` or `framx timeline`, and `framx check`. Hand a video over only when `framx check` says READY, or after telling the user which problem you leave and why.
45
+ - Once connected over MCP, the same skill and references are also exposed as MCP resources under `skill://framx/` (and via `skills/list` / `skills/get`), and learned user preferences are readable at `framx://profile`.
46
+ - `framx review VIDEO` opens a rendered video in the framx app, where the user can change words, clips and music, and click **Done reviewing** when finished.
47
+
48
+ ## Optional
49
+
50
+ - **Cloud listener and generator:** A cloud listener (a second opinion on words the local transcriptions disagree on) and a generator (pictures and short shots for material the edit needs) are turned on with environment variables; see the README. Keep their keys in the environment your harness starts from, or in an executable `~/.config/framx/launch` that sets them and runs framx, which `framx init` then registers in place of framx. DeepSeek Harness drops variables whose names contain KEY, so under it use `~/.config/framx/launch`.
51
+ - **Streamable HTTP transport:** `framx mcp` uses stdio by default. For harnesses that connect over localhost HTTP, run `framx mcp --http` (binds `127.0.0.1:8765/mcp` with a Bearer token stored mode `0600` in `~/.config/framx/http-token`).
@@ -0,0 +1,118 @@
1
+ # Changelog
2
+
3
+ ## 0.3.1 (2026-12-03)
4
+
5
+ - Renamed from vidx to framx: the package, the `framx` command, the MCP server and its `skill://framx/`, `ui://framx/` and `framx://profile` resources, the plugins and the skill. Settings are now `FRAMX_*`, and data, cache and config live in `~/Library/Application Support/framx`, `~/.cache/framx` and `~/.config/framx`. Move those folders and rename the variables to keep an earlier setup.
6
+ - First release on PyPI (`uv tool install framx`) and in the MCP Registry (`io.github.Daveyuwang/framx`).
7
+
8
+ ## 0.3.0 (2026-12-03)
9
+
10
+ **Setup with any agent**
11
+ - `AGENT_SETUP.md`: the steps an agent follows to install framx, register it and check it, and to start editing through framx's commands while its tools load.
12
+ - `framx init` registers framx's MCP server and skill with Claude Code, Codex, OpenCode (both `mcp.servers.framx` and `mcp.framx`, plus `opencode.jsonc` detection), Antigravity and DeepSeek Harness (parsed with PyYAML so comments and multi-line lists stay intact) in each one's own config (and prints the entry for any other harness), with tool calls allowed 30 minutes where a harness limits them. It starts the server by its absolute path or through `~/.config/framx/launch`, leaves registrations you made yourself as they are, points entries init wrote at the current framx (except a Claude Code entry with its own `env`, which gets a note), isolates malformed configs per harness, copies a file before changing it, never writes an API key, and `--dry-run` shows the changes.
13
+ - `framx doctor` (`--json` for agents) checks the Mac, ffmpeg, Swift, the data and cache folders, the speech model, the cloud and generator settings, starts the server as a harness would and probes both `2025-11-25` and `2026-07-28` MCP handshakes, and audits each installed harness for registration, timeouts, and DeepSeek Harness secret stripping, each failure with its fix.
14
+ - The canonical framx skill is split into a concise `SKILL.md` and four focused `references/*.md` guides (`timelines`, `captions`, `material`, `review-memory`), exposed via `framx skill --list` / `--ref`, synced into `plugins/claude-code`, `plugins/codex`, and a new in-repo `plugins/antigravity` plugin, and served over MCP via the SEP-2640 `io.modelcontextprotocol/skills` extension (`skills/list`, `skills/get`, `skill://framx/*` resources with SHA-256 digests) alongside a dynamic `framx://profile` resource.
15
+ - MCP protocol upgrades for long-running work and human-in-the-loop review:
16
+ - Capability-negotiated, task-optional MCP Tasks (`io.modelcontextprotocol/tasks` on `2026-07-28` and metadata fallback on `2025-11-25`) backed by an async `JobManager` with cooperative cancellation (`tasks/get`, `tasks/update`, `tasks/cancel`, `tasks/result`, `tasks/list`) and live ffmpeg/generator progress reporting; non-Task clients continue running synchronously.
17
+ - Capability-gated Form and URL MCP Elicitation (disabled automatically when `FRAMX_NONINTERACTIVE=1`): `remember` confirms before replacing user-confirmed rules, `feedback` asks pending platform taste/length questions directly, and `review` supports URL-mode handoff with a **Done reviewing** button (`POST /api/clips/<id>/done`) and standalone `framx app` reuse.
18
+ - Lightweight SEP-1865 MCP App review card (`ui://framx/review-card.html`, `io.modelcontextprotocol/ui`) with an app-only `framx_app_action` callback and an Antigravity `aux_pane` entrypoint.
19
+ - Optional loopback-only Streamable HTTP transport (`framx mcp --http`, guarded by a `0600` Bearer token in `~/.config/framx/http-token`).
20
+ - `framx app` now supports DeepSeek Harness (`dsh --profile headless --json`) and OpenCode (`opencode run --format json`) alongside Claude Code and Codex, and opens in Bench and Review mode with clear guidance when no headless CLI agent is ready.
21
+ - `check_video` surfaces concrete stderr on ffmpeg and Apple Vision helper failures instead of bare exit codes, checks zoomed crops of any shape (tall ones included) for top/bottom face cuts in the source, and follows and checks the picture a clip's own `filters` make (no false widening note, and the edges of custom filter crops are checked).
22
+ - `render` and `check_video` report flash frames when a clip's `in` or `out` sits a few frames from a hard shot cut in its source file.
23
+ - Chinese and Japanese captions break at speaker pauses and between whole words (keeping particles, directional/result complements, closing/opening punctuation and two-character compounds together).
24
+ - `generate` saves a fetched video task atomically once under a lock and reports a missing download link with its task id.
25
+ - The plugins' launcher also finds framx in `~/.local/bin` when an app starts it with a short PATH, and the Codex plugin passes the generator's settings on.
26
+ - One Whisper run at a time on the whole Mac, whatever cache folder each process uses.
27
+ - The app keeps the model of the session that opened it only when Claude Code or Codex can run it (a Claude or OpenAI model), instead of handing any other model id to Codex.
28
+
29
+ **Workflow**
30
+ - Optional generator: with `FRAMX_GEN_API_KEY` set, the `generate` tool (and `framx generate`) makes a picture or a short video shot with a generation API, tested on Volcengine Ark (Seedream 5.5 pictures, transparent ones included; Seedance 2.5 shots without sound, from a prompt or a first-frame picture, with 480p drafts). Results go into the clip's material folder with a `.made.json` record beside each; `FRAMX_GEN_LIMIT` caps pictures and seconds of video per folder and per day, a failed request gives its share back, and a shot still being made is fetched later by its task id without making it again. The app's proposals never get the tool, and Settings shows the generator without its key.
31
+ - Where material came from: a `<file>.made.json` beside a file (written by `generate`, or by the agent for material it made with code or downloaded) shows in `media`, under the clip in the editor and in an export's notes, and `check_video` measures the AI-generated files in a render and names material in a `material` folder with no record.
32
+ - `export` (also `framx export` and **Export project** in the editor) writes a clip's edit as an .fcpxml for Final Cut Pro and DaVinci Resolve and an .otio for Premiere Pro and Resolve, with the captions as an .srt. Clips point at the original files; what an editing app cannot take as framx drew it comes as stills and markers, and the export lists it.
33
+ - The app makes up to five candidate clips from one brief, each from a different part of the video, and the editor switches between them.
34
+ - The editor puts a picture over the video at the playhead, holds the frame at the playhead, and adds a clip or picture from another file. A picture the agent put over the video can be retimed, moved to a preset place or removed.
35
+ - Render records keep each sound track's level against its own file.
36
+ - A timeline overlay can draw the sound as it plays: `{"waveform": "voices" | "mix", "box": [x, y, width, height]}`, with `start`, `end`, `color`, `opacity` and `fade`. "voices" draws the clips' own sound and voice tracks without the music under them. `render` reports a waveform that sits across the captions, the editor lists it with its times, and an export leaves it out and names it in its notes.
37
+ - A frame held at the last frame of its file, and so a blurred end card after a clip that plays to the end of its file, no longer drops out of the render: a held frame is the frame on screen at its time.
38
+
39
+ **Captions**
40
+ - A new default look, from the agent benchmark's visual reviews: Arial Black in white with an outline and a soft shadow, at most two even rows per caption, and the word being spoken in yellow. Chinese and Japanese captions use PingFang and colour no word. Square and wide frames get larger captions placed higher, clear of a player's controls.
41
+ - Rows break at a comma or a breath rather than after a word such as "the", "and" or "every", or a number that counts the next word ("11 | hours"), never inside a key phrase, and reluctantly between two capitalised words. A row holds as many characters as the font, size and frame width allow, and framx breaks the rows itself, so a larger size no longer leaves libass to wrap them at random; a single word too wide for the row is drawn smaller instead of running off the frame. Korean counts as wide as Chinese.
42
+ - `caption_style` takes `keywords` (phrases coloured in place of the spoken word), `highlight` (their colour, or `false`), `color`, `font` (any font installed on the Mac: framx measures how wide it draws in one ffmpeg run of about 0.05 s and refuses one libass cannot find, which it would replace with another face such as Helvetica or Monaco), and `area` (the span of the width to centre the captions in). `size` is now a scale against the default for the frame, 1 being the default; a size from before, a fraction of the frame's height, keeps its ratio to the earlier default (within 0.5 to 2), so it draws larger along with the new default. A key set to null goes back to framx's default, also over the user's profile.
43
+ - The simple `render` (video and cuts) takes `caption_style` too, and a kept caption look fills in only the keys the agent leaves out.
44
+ - A box behind the captions is one box around both rows.
45
+ - The `render` tool no longer tells the agent to leave the caption look alone. `render` and `check_video` report captions placed under a phone app's buttons in a 9:16 frame and text overlays that cover the captions; a text overlay at "bottom" moves up above the captions instead. Two rows placed near the top, or a subtitle that wraps to more, move down far enough to keep the first row in the frame.
46
+ - The app's caption sizes are relative to the default, and it can turn the word colour off.
47
+ - `check_video` reads captions from where the render drew them, so captions moved up or made larger are still checked, and says NOT READY when it can read none of a render's captions, where before it passed with "checked 0 caption lines". It does not ask this of captions in a script Apple Vision cannot read (such as Hindi or Greek), captions under a title card, or a file rendered before this version, and it judges caption placement only in files rendered with it.
48
+ - The word colour leaves Hindi and Thai vowel signs with their letters, and the letter spacing that keeps heavy Latin type apart is left out for Arabic, Hebrew, Hindi, Thai and other scripts whose letters join, so they draw as before. A key word matches whole words only ("well" no longer colours "we'll"; in Chinese captions, a whole word).
49
+ - A kept caption look leaves out key words and the caption area, which belong to one video, and an app proposal that changes one caption key keeps the others.
50
+ - `caption_file`: the agent's own `.ass` script, burned in over the picture, for captions `caption_style` cannot draw, such as word-by-word karaoke or a second language. Its lines in the style `Caption` caption the speech: they go into the `.srt`, `check_video` compares them with what is said, and a wrong word is to be corrected in the file, which the finding names, not with `fix_words`. Caption lines of the same text that touch or overlap are one caption (87 karaoke events became 15). Lines in other styles are drawn and not compared, and the check leaves them out of what it reads, as it did a French line on a TED excerpt. A Caption line most of whose words are not spoken within 0.6 s of it is reported from the word times alone, where the speech has a transcript. A `caption_file` turns framx's captions off unless `captions` is true, and the app shows its lines and leaves them, and the video's shape, to the agent.
51
+ - `render` and `dry_run` write a `.words.json` next to the video (`clip.words.json` for `clip.mp4`): every word as it plays, in output seconds, with its file and its time there, and how framx groups the words into captions, also with captions off. A proposal accepted in the app brings its own.
52
+ - `check_video` compares captions with the speech on every video, also when framx's captions are off, so captions the agent burns in itself are checked; their fix says to correct them where they were drawn, not with `fix_words`. When it reads no captions and the render drew none, it says so as a measurement; a `caption_file` whose Caption lines it can read none of is NOT READY, as framx's own captions are. A wrong word in the agent's own captions was caught on three real talks, while five real clips without captions stayed READY. Without framx's own lines to compare, an OCR misread is harder to dismiss: on one of three talks with the agent's own styled captions, a 0.3 s misread was flagged. A check of a 30 to 45 s clip without framx's captions took about 10 to 25 s, where it was skipped before; the app's Save and check runs the same check.
53
+
54
+ **Check**
55
+ - `check_video` reports a picture that stands still: when nothing in the frame but the captions changes for 10 s or more and over half the video, as in a voice read over one card, it says NOT READY and names the fixes (a waveform of the voice, a new card or picture for each part, pictures or footage under the voice, or telling the user why it stays still); still stretches of 3 s or more are measured. A swapped label or a title fading in on the card does not count as movement; a cut, a new slide, footage, a speaker's inset and a waveform do.
56
+ - A caption word given to `index_video` as a name is no longer accepted without listening: it gets the second listen like any flagged word, and is set apart as a name only when it looks like one (CamelCase, or not a dictionary word) and that listen hears something close. In the agent benchmark, an agent had passed the wrong caption words as names to turn NOT READY into READY without a new render; on a clip of a real talk with "streams" captioned for "dreams" and "streams" passed as a name, the check now reports the wrong word, where before it reported nothing.
57
+ - When flagged caption lines get no second listen, because the Mac runs macOS before 26 (Apple's speech model needs 26), the language's model is not installed or the helper fails, and no cloud listener is set up, `check_video`, `framx check` and the app say so and why, where before those lines were left flagged with no reason given.
58
+
59
+ **HDR footage**
60
+ - HDR video (HLG, as iPhones film by default, and PQ) is converted to SDR BT.709 in renders, frames and contact sheets, and in the pictures Apple Vision reads for shot tags and following the subject. Before, it came out grey and washed out, and a render kept the HLG tags on an 8-bit file. The conversion follows Apple's own. `media` says when a file is HDR.
61
+
62
+ **Framing**
63
+ - The framing check tells a clip with a fixed focus to move it toward the cut side first, then to follow the subject, and a clip that already follows to be split where the subject moves with each part framed on its own; the whole picture on the clip's background (`"fit": "pad"`) is last. The render note on a follow crop that had to widen no longer suggests a fixed focus for the whole clip. A part of a clip cut where the subject moves that still cuts its subject can still be told to follow, which widens again.
64
+ - A crop wider than its source, such as 4:3 footage filled to 16:9, is checked for a face cut off at the top or bottom, and told to move its focus up or down. The faces are found in the source, where they are whole, and the crop's rows say how much of each the frame keeps; on the rendered frame Vision boxes a face whose eyes are cut off as if it were whole. On a 4:3 TED talk filled to 16:9, a fifth of the face separated the framings with the eyes cut off (0.27 of the face or more) from close-ups that only trim the forehead (0.12 or less).
65
+ - A clip that follows its subject and had to widen to the whole picture is not checked at its sides, where only the recording's own edge can cut the subject. On a TED talk at 1080x1920 that edge cut the speaker's shoulder for 6 s, and the check said NOT READY though no crop could fix it; it now says READY.
66
+ - In a clip shorter than two seconds the framing check looks four times over the clip and reports a cut seen in two looks in a row, which is half the clip. Before, a cut had to last a full second inside one clip, so a face cut in a clip under a second never counted, and one in a clip of one to two seconds counted only when it lasted most of the clip.
67
+ - `background` on a picture clip, or for the whole timeline: a colour, `"blur"`, or a still picture such as a card the agent made, filling the frame around a picture that does not fill it (`"fit": "pad"`, or a follow crop that widened). It is black by default, so a follow crop that widens now shows the picture on black, where before it sat over a blurred copy of itself; `"background": "blur"` brings that back. App saves and reverts of earlier renders render with the new fill.
68
+ - Such a picture, and one with `"fit": "blur"`, is placed so its bottom edge does not run through framx's captions: up above them when room is left, otherwise down so the captions sit on it. On a TED talk at 1080x1920 the 4:3 picture now sits from 17% to 59% of the height, the captions below it.
69
+ - Two focus points, `"focus": [[x1, y1], [x2, y2]]`, show two crops of one clip's picture, stacked in a tall or square frame and side by side in a wide one, each tightened by `zoom`. In a tall or square frame, the captions sit on the seam between the crops when every picture clip is split, and render says which `position` puts them there otherwise. The framing check looks at each crop on its own, at its sides where it trims the picture's width and at the top and bottom where it trims its height, and names the focus point to move. On a four-person panel at 1080x1920, points [[0.11, 0.42], [0.88, 0.34]] with zoom [2.5, 2.5] showed one speaker in each crop with no framing finding.
70
+
71
+ **Changes made after the render**
72
+ - `adopt` (and `framx adopt VIDEO CHANGE`) keeps a change the agent made in place to a file framx rendered, such as a colour grade or a sound pass, as that render, when the file keeps its size and its length within 0.15 s (ffmpeg's loudnorm rounds the length up to the next 0.1 s). `check_video` then checks it with its timeline again, reading its captions and picture from the file and taking a line as framx's own when half its words or more are among framx's captions there, and the app opens, checks and saves it. It is not a new version: the next render, the agent's or an app save, starts from the timeline without the change, and the render report or `feedback` says so.
73
+ - Until it is adopted, a render changed in place is NOT READY in `check_video`, `render` will not write over it and names `adopt` instead, and the app's Save, Preview, Revert, and Ask with unsaved edits refuse it with a message for the user; Ask without edits goes to the agent, which can adopt the change. A file of another size or length is treated as one framx did not render, and the app tells the user to ask for a new render.
74
+
75
+ ## 0.2.0 (2026-11-30)
76
+
77
+ The first version meant for other people to use. 0.1.0 cut clips by speech; 0.2.0 is an editing bench with an app, a timeline engine, a release check and a memory of the user's edits.
78
+
79
+ **Editing**
80
+ - One JSON timeline for the whole edit: clips from several files, stills, title cards, speed, transitions, overlays, text, music and other sound with ducking under voices, subtitles, loudness.
81
+ - Cut edges kept clear of each word's sound, an end card, and crop focus.
82
+ - Music analysis: tempo, beats, 3/4 or 4/4 bars, song parts and which come back, and how to play a track in a given length with its phrases whole. Cuts snap to the beat or the bar.
83
+ - Crops that follow the subject with Apple Vision, widening over a blurred fill when the action is too wide.
84
+ - Narration with a voice on the Mac; `fix_words` for transcript errors; caption looks.
85
+ - Speech in Chinese, Japanese and other languages, and other-language lines found inside an English talk.
86
+ - Shots tagged by Apple Vision (scene labels, text on screen, people and faces), searchable.
87
+
88
+ **Checking**
89
+ - `check_video` opens with READY or NOT READY: caption words against the speech with a second listen from Apple's speech model, captions past a cut or out of time, speech cut mid-word, distortion, dead air, people cut by the edge of a clip cropped from a wider picture, music joined off the bar, untranslated lines.
90
+ - `framx lessons`: kinds of problems agents keep leaving across videos.
91
+
92
+ **App and agents**
93
+ - `framx app`: a local web app that runs the user's own Claude Code or Codex, with its own sign-in, shows the agent's steps live, and opens the result in a word-level, multi-track editor with draft preview, agent proposals, undo and redo, and a review of the check's findings.
94
+ - Plugins for Claude Code and Codex.
95
+
96
+ **Memory**
97
+ - Typed defaults per platform (size, fit, captions and their look, end card, music level, length), rules that need a second video before they apply, one question per platform about what clips should keep, pinned reference cuts and revision examples with the user's reason. Everything kept can be seen and forgotten.
98
+
99
+ **Fixed after an agent benchmark**
100
+ - `check_video` no longer calls a close-up NOT READY because the shoulders touch the frame's edge: a face cut by the edge still counts, and so does a body cut with the face beside the edge. One agent re-rendered a well-framed close-up four times and still handed it over NOT READY.
101
+ - Clips that pick up the same file where the one before stopped, as when a passage is split to frame each part, are mixed as one stretch of sound. The seam is no longer reported as a cut inside a word, and a word across it keeps its caption.
102
+ - Chinese and Japanese captions break between the words that Apple's NaturalLanguage tokenizer finds, instead of by width alone, and a Japanese particle stays with the word before it.
103
+ - In a 9:16 frame, default captions sit above the bottom quarter and in from the right edge, where TikTok, Reels and Shorts draw the account, description and buttons, and the render tool no longer suggests a box behind them.
104
+ - The caption check reads captions under a text overlay. Before, every frame under an overlay in the caption band was left out, so a name tag kept up for a whole clip turned the check off.
105
+ - A clip's own `filters` apply to its picture before it is fitted to the frame. A crop there, in the source's pixels, made the whole render fail.
106
+
107
+ **Also fixed**
108
+ - Saving an edit in the app no longer fails when the words the user leaves out cannot fill the length the clip came with: the clip follows the edit, and a length the user sets in the same save still holds.
109
+
110
+ **Speed**
111
+ - Whisper large-v3-turbo at 8 bit with each window encoded once: on a 14-minute talk, indexing took 34% less time and 30% less memory than the same model at 16 bit through stock mlx-whisper, with nearly the same word error rate (5.28% against 5.22% on the longer test talk).
112
+
113
+ **Evaluation**
114
+ - Benchmarks for speech recognition, the release check and Claude Code with and without framx, in [`eval/runs`](eval/runs), and a simulated user for the memory loop, in [`eval/simusers.py`](eval/simusers.py).
115
+
116
+ ## 0.1.0 (2026-11-19)
117
+
118
+ Cut a clip from a long recording by what is said: a local word-timed index, cuts placed in the quiet points between words, captions, and a check of the burned-in captions against the speech, as an MCP server and a CLI.
framx-0.3.1/LICENSE ADDED
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS