agentcut 0.2.26 → 0.2.27

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 (94) hide show
  1. package/README.md +177 -177
  2. package/dist/studio/agents/claude.js +3 -2
  3. package/dist/studio/agents/claude.js.map +1 -1
  4. package/dist/studio/chat.js +1 -1
  5. package/dist/studio/chat.js.map +1 -1
  6. package/dist/studio/cli.js +24 -24
  7. package/dist/studio/download.d.ts +24 -0
  8. package/dist/studio/download.js +234 -0
  9. package/dist/studio/download.js.map +1 -0
  10. package/dist/studio/host.js +8 -0
  11. package/dist/studio/host.js.map +1 -1
  12. package/dist/studio/housekeeping.d.ts +2 -2
  13. package/dist/studio/housekeeping.js +18 -17
  14. package/dist/studio/housekeeping.js.map +1 -1
  15. package/dist/studio/release-cursor.js +21 -21
  16. package/dist/studio/release-video.js +10 -10
  17. package/dist/studio/tools.js +7 -0
  18. package/dist/studio/tools.js.map +1 -1
  19. package/package.json +56 -56
  20. package/template/AGENTS.md +14 -14
  21. package/template/components/README.md +70 -70
  22. package/template/components/before-after/BeforeAfter.tsx +89 -89
  23. package/template/components/catalog.ts +107 -107
  24. package/template/components/cinematic/Device3D.tsx +324 -324
  25. package/template/components/cinematic/devices3d/display-model.ts +184 -184
  26. package/template/components/cinematic/devices3d/iphone-model.ts +643 -643
  27. package/template/components/cinematic/devices3d/macbook-model.ts +608 -608
  28. package/template/components/cinematic/devices3d/models.ts +657 -657
  29. package/template/components/cinematic/devices3d/runtime.ts +267 -267
  30. package/template/components/cinematic/math.ts +100 -100
  31. package/template/components/color/grade-effect.ts +650 -650
  32. package/template/components/color/grade.ts +512 -512
  33. package/template/components/color/looks.ts +154 -154
  34. package/template/components/countdown/Countdown.tsx +166 -166
  35. package/template/components/dot-trace-title/DotTraceTitle.tsx +181 -181
  36. package/template/components/dot-trace-title/meta.json +51 -51
  37. package/template/components/generate/GenerateReveal.tsx +381 -381
  38. package/template/components/hook-card/HookCard.tsx +554 -554
  39. package/template/components/index.ts +199 -199
  40. package/template/components/lib.ts +191 -191
  41. package/template/components/line-diagram/LineDiagram.tsx +205 -205
  42. package/template/components/line-diagram/meta.json +215 -215
  43. package/template/components/list-card/ListCard.tsx +104 -104
  44. package/template/components/live-clip.ts +75 -75
  45. package/template/components/looks.tsx +1447 -1447
  46. package/template/components/loops/LoopCanvas.tsx +132 -132
  47. package/template/components/loops/engine.ts +184 -184
  48. package/template/components/loops/library.ts +667 -667
  49. package/template/components/loops/library2.ts +777 -777
  50. package/template/components/motion-loop/MotionLoop.tsx +37 -37
  51. package/template/components/motion-loop/meta.json +311 -311
  52. package/template/components/props.ts +73 -73
  53. package/template/components/quote-card/QuoteCard.tsx +71 -71
  54. package/template/components/style-layer.tsx +233 -233
  55. package/template/components/styles.ts +113 -113
  56. package/template/components/types.ts +66 -66
  57. package/template/components/word-pop/WordPop.tsx +59 -59
  58. package/template/components/word-stack/WordStack.tsx +122 -122
  59. package/template/presets/charcoal-sketch/PROMPT.md +48 -48
  60. package/template/presets/charcoal-sketch/scripts/duck_music.py +34 -34
  61. package/template/presets/punk-cut-paper/scenes/Motif.tsx +376 -376
  62. package/template/presets/punk-cut-paper/scenes/Photo.tsx +73 -73
  63. package/template/presets/punk-cut-paper/scenes/Ransom.tsx +119 -119
  64. package/template/runtime/composition.tsx +1189 -1189
  65. package/template/runtime/helpers.tsx +230 -230
  66. package/template/runtime/index.tsx +22 -22
  67. package/template/runtime/types.ts +315 -315
  68. package/template/skill/SKILL.md +186 -187
  69. package/template/skill/references/broll.md +44 -44
  70. package/template/skill/references/browser-export.md +61 -61
  71. package/template/skill/references/cinematic.md +206 -206
  72. package/template/skill/references/color.md +79 -79
  73. package/template/skill/references/craft.md +97 -97
  74. package/template/skill/references/editing-styles.md +57 -57
  75. package/template/skill/references/feature-launch.md +34 -34
  76. package/template/skill/references/footage.md +72 -72
  77. package/template/skill/references/format.md +142 -142
  78. package/template/skill/references/how-to.md +146 -146
  79. package/template/skill/references/launch-direction.md +89 -89
  80. package/template/skill/references/loops.md +151 -151
  81. package/template/skill/references/mcp-external.md +19 -19
  82. package/template/skill/references/performance.md +93 -93
  83. package/template/skill/references/person-cutout.md +19 -19
  84. package/template/skill/references/presets.md +60 -60
  85. package/template/skill/references/product-launch.md +134 -134
  86. package/template/skill/references/release-capture.md +53 -53
  87. package/template/skill/references/sound.md +167 -166
  88. package/template/skill/references/style-spy.md +160 -160
  89. package/template/skill/references/website-howto.md +45 -45
  90. package/template/starter/.studio/chat.json +1 -1
  91. package/template/starter/layers.json +46 -46
  92. package/template/starter/notes.md +4 -4
  93. package/template/starter/project.json +13 -13
  94. package/template/starter/scenes/Title.tsx +38 -38
package/README.md CHANGED
@@ -1,177 +1,177 @@
1
- # agentcut
2
-
3
- The local helper for [Agentcut](https://github.com/deifos/Agentcut): it runs your coding agent
4
- (Claude Code or Codex), your video workspace and live preview bundles for the Agentcut studio page.
5
-
6
- ```bash
7
- npx -y agentcut
8
- ```
9
-
10
- Then open https://agentcut.synteq.app/studio in Chrome. Run `npx -y agentcut --help` for options.
11
- Needs Node.js 20.10 or newer.
12
-
13
- For Style Spy, the helper downloads reference videos itself: it fetches
14
- [yt-dlp](https://github.com/yt-dlp/yt-dlp) and [ffmpeg](https://ffmpeg.org) on first use into
15
- `~/.agentcut/tools` (checksums verified, nothing installed system-wide; set `AGENTCUT_TOOLS` to use
16
- another folder).
17
-
18
- See the [changelog](https://github.com/deifos/Agentcut/blob/main/CHANGELOG.md) for what's new. If the
19
- studio says **Update helper**, stop it and run `npx -y agentcut@latest`.
20
-
21
- ## Preview and colour tools in 0.2.17
22
-
23
- The helper makes fast-seeking preview copies of local footage with sparse keyframes or a long edge
24
- above 1920 pixels. This work runs in the background, one file at a time. The studio applies ready
25
- copies while paused and also uses them for timeline thumbnails. HDR footage, transparent video and
26
- clips shorter than two seconds keep their originals. Copies use the workspace's `.agentcut/proxies`
27
- cache, limited to 20 GB with oldest entries removed first. Captures and exports use original footage.
28
-
29
- The studio also caches recent paused frames and can render small pictures for scenes measured as
30
- slow. During a drag, intermediate seek requests can be skipped. Releasing the pointer waits for
31
- the exact final frame before playback resumes. `agentcut_preview_check` and `agentcut_status`
32
- report seek times per clip as well as playback performance.
33
-
34
- Colour grading supports clip and project grades, adjustment tracks, keyframes, colour wheels,
35
- curves, an eight-band mixer, 18 built-in looks, 3D `.cube` LUTs, skin protection and finishing effects.
36
- The studio includes scopes, shot matching, reference-look matching and separate person/background
37
- grading. The helper validates the format and supplies the matching runtime and guides.
38
-
39
- Use `agentcut_color_check`, `agentcut_match_shots`, `agentcut_match_look`, `agentcut_grade_subject`
40
- and `agentcut_color_looks` with the connected studio. Read `references/color.md` through
41
- `agentcut_guide` for the workflow. Person cutouts run locally and download a model on first use.
42
-
43
- This version also includes saved editing styles, labelled AI-generated b-roll, external MCP file
44
- access and the announcement workflow described below. See the
45
- [main README](https://github.com/deifos/Agentcut#preview-and-timeline) for the editor controls.
46
-
47
- MIT
48
-
49
- ## External MCP agents
50
-
51
- Connect a local MCP client to `node <agentcut-package>/dist/index.js`. Start the helper first,
52
- and set `AGENTCUT_PORT` in the MCP server environment if the helper uses a different port.
53
- The helper owns the workspace; the client's current folder does not select it.
54
-
55
- Call `agentcut_capabilities`, read `agentcut_guide` with `path: "SKILL.md"`, then call
56
- `agentcut_status`. The MCP exposes the same music, SFX, b-roll, animated components, voice,
57
- transcription, audio review, preview and export tools used by the built-in chat. Skill guides
58
- are also available as `agentcut://guide/...` MCP resources. Guides and the index work without
59
- the helper; provider options report live configuration without exposing keys.
60
-
61
- Clients without shared disk access can list/read project and library files, read packaged
62
- toolkit code and styles, write scenes/timelines/notes, and copy preset scenes and binary assets
63
- through `agentcut_list_files`, `agentcut_read_file`, `agentcut_write_file` and `agentcut_copy_file`.
64
- Writes require the current file hash; null creates a new file. Hidden files are excluded,
65
- toolkit and library are read-only, and copying never overwrites a destination.
66
- Captures and contact sheets return native MCP image blocks as well as saved local paths.
67
- For local app code, `agentcut_sources` lists read-only folders already configured with
68
- `--add-dir`. Use their IDs with file scope `source`; MCP cannot add folders or write app code.
69
-
70
- The studio page must remain connected for catalogs, asset imports, visual capture, playback,
71
- audio review and export. Voice/music generation and transcription use the user's configured
72
- providers and can incur charges. This access supports the full creative workflow; it does
73
- not guarantee identical creative results across models. The release announcement prototype
74
- below remains a separate limited workflow, not the entry point for every video request.
75
-
76
- ## Local release announcement prototype
77
-
78
- The input is a website URL and user brief. The browser agent inspects the visible website,
79
- plans a story and shots, performs permitted actions, records short page captures, and assembles
80
- editable clips and overlays. Source-code access is not required. No app-specific reconstruction
81
- or local mock UI is part of this generic flow.
82
-
83
- Before capture, `plan.story` must name the audience, message, before/after outcome and capture
84
- basis. Each shot must state its purpose, browser-observed evidence and expected visible change.
85
- The plan is saved in the project's `.studio/storyboard.json`. A plan made only of static crops
86
- is refused. These fields record intent; they do not prove a good story. Review actual frames,
87
- readability, visible cause/effect and full playback before calling an announcement complete.
88
- Optional demo footage needs explicit user approval, `approved_demo` capture basis and a persistent
89
- disclosure. The helper does not generate a fake UI when real footage is missing.
90
-
91
- Story edits use scene `beats` (`actionIndex`, `headline`, `explanation`) and actual capture cue
92
- times. The project contains editable footage trims, headlines, explanations, opening/closing
93
- cards, brand, disclosure and progress tracks. There are no automatic default zooms. `wait`
94
- actions set reading time. Paced `type` actions and demo reply buttons are restricted to explicitly
95
- approved loopback pages marked as synthetic; live send and credential controls stay blocked.
96
- The isolated Instagram illustration under `tests/fixtures/instagram-story.html` is an approved
97
- example, not a replacement for generic live capture. It makes no network requests or real DMs.
98
-
99
- Start the helper with `npx agentcut`. The calling Codex or Claude session must have the Agentcut
100
- MCP server configured (`node <agentcut-package>/dist/index.js`). No separate model service is used.
101
-
102
- Call `agentcut_create_release_video` with `name`, `appUrl`, `description`, and
103
- `videoType: "announcement"`. The default `orchestration: "helper"` runs the installed coding agent
104
- through the existing Agentcut agent adapter. To use the current agent instead, pass
105
- `orchestration: "caller"`, inspect the pages with `agentcut_release_browser`, and finish with
106
- `agentcut_release_capture`. Both paths must reach `ready` before the agent claims a draft exists.
107
-
108
- The helper supplies pinned Agent Browser 0.41.0 and downloads Chrome and the shared verified
109
- FFmpeg build on first use. Agent Browser declares Node 24 or later for its supported runtime.
110
- There is no Agent Browser global-install step. See its [installation guide](https://agent-browser.dev/installation)
111
- and [recording guide](https://agent-browser.dev/recording). Recording captures browser page pixels,
112
- not the desktop. The helper opens a separate browser profile for each job. Sign in directly there.
113
- Credentials and login screens are not part of the requested capture. Jobs pause when they detect
114
- a password form or a login URL. Other sign-in flows and safe sample data can require the agent to
115
- pause explicitly. The user resumes through MCP or the studio status bar.
116
-
117
- Jobs are stored under `.agentcut/release-jobs/`; projects and source videos remain under
118
- `projects/<slug>/`. Status includes a reopenable `editorUrl`, progress and errors. Saved partial
119
- jobs become failed after a helper restart. Resume a failed job to reuse its saved project and
120
- browser profile. The visible demo browser stays open after a failure or completed capture.
121
- Cancellation stops the active job's agent and browser and keeps files. Browser-operation errors
122
- stop the job; check status before resuming. Preparation waits for visible controls and selected tabs.
123
- When the draft is ready, the helper reuses a connected editor tab before it opens a new tab.
124
-
125
- `ready` is an editable, validated announcement draft, not a final exported video. Review footage,
126
- text and privacy before sharing, then use the existing editor/export flow. The prototype is wide
127
- 1440×900 for page capture and 1920×1080 for the presentation, with editable titles, explanations,
128
- recorded clips, source trims and optional explicit framing. It has no generated audio. How-to and promotional remain named choices but return
129
- an unsupported response. There is no webhook, automatic deployment trigger or publishing step.
130
- Capture uses real Chrome page frames and a helper-owned FFmpeg recorder at 30 fps. It keeps only
131
- the latest frame in memory and handles encoder backpressure without a fixed half-second cutoff.
132
- `showCursor` defaults to true. Cursor motion and click feedback are drawn inside the captured
133
- page, with smooth movement before click and hover actions. This uses the same page recorder,
134
- not Agent Browser's separate cursor encoder. The overlay is removed when recording stops.
135
- Recorder failures remain real job failures; frame rate is not silently reduced.
136
-
137
- For local editor work, set `AGENTCUT_EDITOR_ORIGIN=http://localhost:3000` before starting the helper.
138
- Custom origins must also be allowed with `--origin`. A non-default helper port is included in the
139
- editor link as `helperPort`; the bridge host always remains `127.0.0.1`. Reopen links on the same
140
- computer with the same workspace helper running. `AGENTCUT_DEMO_HEADLESS=1` is for unattended
141
- fixture tests; leave it unset for direct sign-in.
142
-
143
- Run `npm run test:release` from the repository root for lifecycle checks. For the real browser/MCP
144
- test, build the helper, start the local editor, set `AGENTCUT_RELEASE_E2E=1` and optionally
145
- `AGENTCUT_RELEASE_TEST_PORT=32119`, then run `npm run test:release`. It records only the local
146
- prepared Chat with Website sample. It does not validate a live Chat with Website account. The
147
- test saves its draft and result under `packages/agentcut/.tmp/release-test-<port>/`. Use a separate
148
- port and workspace from a live run. `AGENTCUT_RELEASE_TEST_DIR` can select another test workspace.
149
-
150
- ## Optional Ming 0.5B voices
151
-
152
- Project Assets → Voices includes ready-made Kokoro and Ming samples hosted with the other sounds at `https://files.screenslick.com/studio/voice-samples/`. Anyone can listen without a model, GPU, API key, or connected helper. Copies in `public/voice-samples/` provide a fallback if shared storage is unavailable. They do not use a developer's disk path.
153
-
154
- For Ming, Set up Ming lets the user choose CPU or NVIDIA GPU and shows the memory and hardware requirements, an estimated 3 GB model download plus runtime files, and a recommendation for 20 GB free during setup. The user chooses an installation folder and selects Download and install before any download starts. Model and runtime files use up to about 8 GB after installation, depending on the selected mode, with additional space for caches.
155
-
156
- Creating speech still requires the local helper and the selected model. Ming description modes generate a custom preview locally and cache it under the selected Ming folder's `previews/` directory. Use voice opens a script form; Create voice-over saves the result in the project's `assets/voice/` folder. Paid providers are not available in this tab.
157
-
158
- Install Python 3.10-3.12, then run (use `cuda` instead of `cpu` for a compatible NVIDIA GPU):
159
-
160
- ```sh
161
- agentcut --setup-ming --ming-dir E:/Agentcut-models/ming --ming-device cpu
162
- ```
163
-
164
- From this repository: `npm run studio --workspace agentcut -- --setup-ming --ming-dir E:/Agentcut-models/ming`.
165
-
166
- The selected folder holds the Python environment, downloaded packages, model (about 3 GB), source, all runtime caches, and temporary audio. Allow several additional GB for PyTorch and its installation files. Only a small `~/.agentcut/ming-location.json` pointer is stored in the user folder. Set `AGENTCUT_MING_DIR` to override that location or `AGENTCUT_PYTHON` to select the setup Python executable. Setup is explicit and never runs from a generic voice request. Generation uses local files and does not call a paid fallback.
167
-
168
- Reopen Voice-over after setup. Select Ming and Emma, George or Charlotte. For natural-language voice and delivery control, select "Describe voice and delivery" and enter style instructions. "Design a voice" accepts a voice description. Named voices cannot combine with style instructions. This integration supports English, with no reference cloning or inline expression tags. Write numbers as spoken words; automatic text normalization is disabled. Kokoro stays the default.
169
-
170
- Ming code and model weights are published under MIT. Setup preserves the upstream LICENSE and LEGAL files. The model/runtime revisions are pinned in `src/studio/voice/ming.ts`. CPU mode uses float32 and a CPU-only PyTorch runtime. NVIDIA mode uses CUDA with BF16 support. Setup supports Windows/Linux x64; Windows CPU and NVIDIA modes are tested. Apple GPU and ARM support are not claimed. CPU mode needs about 9 GB free RAM; 16 GB system RAM or more is recommended.
171
-
172
-
173
- ### Ming runtime release checks
174
-
175
- Run the fast checks with `node --import tsx --test tests/ming-voice.test.mjs tests/voice-previews.test.mjs tests/kokoro-voice.test.mjs tests/studio-rail-voice-browser.test.mjs`.
176
-
177
- For real generation, set `AGENTCUT_MING_RUNTIME_TEST=1` and `AGENTCUT_MING_DIR` to an installed model folder, then run `node --import tsx --test tests/ming-runtime.test.mjs`. Repeat with separate CPU and CUDA installations. CPU verification must report a `+cpu` PyTorch build and `torch.version.cuda` as `None`, not just hide the GPU. The test saves WAV files and timings under the selected folder's `release-test-results/`. Listen to the clips to check words, pacing, and voice consistency before publishing. CPU tests can take several minutes.
1
+ # agentcut
2
+
3
+ The local helper for [Agentcut](https://github.com/deifos/Agentcut): it runs your coding agent
4
+ (Claude Code or Codex), your video workspace and live preview bundles for the Agentcut studio page.
5
+
6
+ ```bash
7
+ npx -y agentcut
8
+ ```
9
+
10
+ Then open https://agentcut.synteq.app/studio in Chrome. Run `npx -y agentcut --help` for options.
11
+ Needs Node.js 20.10 or newer.
12
+
13
+ For Style Spy, the helper downloads reference videos itself: it fetches
14
+ [yt-dlp](https://github.com/yt-dlp/yt-dlp) and [ffmpeg](https://ffmpeg.org) on first use into
15
+ `~/.agentcut/tools` (checksums verified, nothing installed system-wide; set `AGENTCUT_TOOLS` to use
16
+ another folder).
17
+
18
+ See the [changelog](https://github.com/deifos/Agentcut/blob/main/CHANGELOG.md) for what's new. If the
19
+ studio says **Update helper**, stop it and run `npx -y agentcut@latest`.
20
+
21
+ ## Preview and colour tools in 0.2.17
22
+
23
+ The helper makes fast-seeking preview copies of local footage with sparse keyframes or a long edge
24
+ above 1920 pixels. This work runs in the background, one file at a time. The studio applies ready
25
+ copies while paused and also uses them for timeline thumbnails. HDR footage, transparent video and
26
+ clips shorter than two seconds keep their originals. Copies use the workspace's `.agentcut/proxies`
27
+ cache, limited to 20 GB with oldest entries removed first. Captures and exports use original footage.
28
+
29
+ The studio also caches recent paused frames and can render small pictures for scenes measured as
30
+ slow. During a drag, intermediate seek requests can be skipped. Releasing the pointer waits for
31
+ the exact final frame before playback resumes. `agentcut_preview_check` and `agentcut_status`
32
+ report seek times per clip as well as playback performance.
33
+
34
+ Colour grading supports clip and project grades, adjustment tracks, keyframes, colour wheels,
35
+ curves, an eight-band mixer, 18 built-in looks, 3D `.cube` LUTs, skin protection and finishing effects.
36
+ The studio includes scopes, shot matching, reference-look matching and separate person/background
37
+ grading. The helper validates the format and supplies the matching runtime and guides.
38
+
39
+ Use `agentcut_color_check`, `agentcut_match_shots`, `agentcut_match_look`, `agentcut_grade_subject`
40
+ and `agentcut_color_looks` with the connected studio. Read `references/color.md` through
41
+ `agentcut_guide` for the workflow. Person cutouts run locally and download a model on first use.
42
+
43
+ This version also includes saved editing styles, labelled AI-generated b-roll, external MCP file
44
+ access and the announcement workflow described below. See the
45
+ [main README](https://github.com/deifos/Agentcut#preview-and-timeline) for the editor controls.
46
+
47
+ MIT
48
+
49
+ ## External MCP agents
50
+
51
+ Connect a local MCP client to `node <agentcut-package>/dist/index.js`. Start the helper first,
52
+ and set `AGENTCUT_PORT` in the MCP server environment if the helper uses a different port.
53
+ The helper owns the workspace; the client's current folder does not select it.
54
+
55
+ Call `agentcut_capabilities`, read `agentcut_guide` with `path: "SKILL.md"`, then call
56
+ `agentcut_status`. The MCP exposes the same music, SFX, b-roll, animated components, voice,
57
+ transcription, audio review, preview and export tools used by the built-in chat. Skill guides
58
+ are also available as `agentcut://guide/...` MCP resources. Guides and the index work without
59
+ the helper; provider options report live configuration without exposing keys.
60
+
61
+ Clients without shared disk access can list/read project and library files, read packaged
62
+ toolkit code and styles, write scenes/timelines/notes, and copy preset scenes and binary assets
63
+ through `agentcut_list_files`, `agentcut_read_file`, `agentcut_write_file` and `agentcut_copy_file`.
64
+ Writes require the current file hash; null creates a new file. Hidden files are excluded,
65
+ toolkit and library are read-only, and copying never overwrites a destination.
66
+ Captures and contact sheets return native MCP image blocks as well as saved local paths.
67
+ For local app code, `agentcut_sources` lists read-only folders already configured with
68
+ `--add-dir`. Use their IDs with file scope `source`; MCP cannot add folders or write app code.
69
+
70
+ The studio page must remain connected for catalogs, asset imports, visual capture, playback,
71
+ audio review and export. Voice/music generation and transcription use the user's configured
72
+ providers and can incur charges. This access supports the full creative workflow; it does
73
+ not guarantee identical creative results across models. The release announcement prototype
74
+ below remains a separate limited workflow, not the entry point for every video request.
75
+
76
+ ## Local release announcement prototype
77
+
78
+ The input is a website URL and user brief. The browser agent inspects the visible website,
79
+ plans a story and shots, performs permitted actions, records short page captures, and assembles
80
+ editable clips and overlays. Source-code access is not required. No app-specific reconstruction
81
+ or local mock UI is part of this generic flow.
82
+
83
+ Before capture, `plan.story` must name the audience, message, before/after outcome and capture
84
+ basis. Each shot must state its purpose, browser-observed evidence and expected visible change.
85
+ The plan is saved in the project's `.studio/storyboard.json`. A plan made only of static crops
86
+ is refused. These fields record intent; they do not prove a good story. Review actual frames,
87
+ readability, visible cause/effect and full playback before calling an announcement complete.
88
+ Optional demo footage needs explicit user approval, `approved_demo` capture basis and a persistent
89
+ disclosure. The helper does not generate a fake UI when real footage is missing.
90
+
91
+ Story edits use scene `beats` (`actionIndex`, `headline`, `explanation`) and actual capture cue
92
+ times. The project contains editable footage trims, headlines, explanations, opening/closing
93
+ cards, brand, disclosure and progress tracks. There are no automatic default zooms. `wait`
94
+ actions set reading time. Paced `type` actions and demo reply buttons are restricted to explicitly
95
+ approved loopback pages marked as synthetic; live send and credential controls stay blocked.
96
+ The isolated Instagram illustration under `tests/fixtures/instagram-story.html` is an approved
97
+ example, not a replacement for generic live capture. It makes no network requests or real DMs.
98
+
99
+ Start the helper with `npx agentcut`. The calling Codex or Claude session must have the Agentcut
100
+ MCP server configured (`node <agentcut-package>/dist/index.js`). No separate model service is used.
101
+
102
+ Call `agentcut_create_release_video` with `name`, `appUrl`, `description`, and
103
+ `videoType: "announcement"`. The default `orchestration: "helper"` runs the installed coding agent
104
+ through the existing Agentcut agent adapter. To use the current agent instead, pass
105
+ `orchestration: "caller"`, inspect the pages with `agentcut_release_browser`, and finish with
106
+ `agentcut_release_capture`. Both paths must reach `ready` before the agent claims a draft exists.
107
+
108
+ The helper supplies pinned Agent Browser 0.41.0 and downloads Chrome and the shared verified
109
+ FFmpeg build on first use. Agent Browser declares Node 24 or later for its supported runtime.
110
+ There is no Agent Browser global-install step. See its [installation guide](https://agent-browser.dev/installation)
111
+ and [recording guide](https://agent-browser.dev/recording). Recording captures browser page pixels,
112
+ not the desktop. The helper opens a separate browser profile for each job. Sign in directly there.
113
+ Credentials and login screens are not part of the requested capture. Jobs pause when they detect
114
+ a password form or a login URL. Other sign-in flows and safe sample data can require the agent to
115
+ pause explicitly. The user resumes through MCP or the studio status bar.
116
+
117
+ Jobs are stored under `.agentcut/release-jobs/`; projects and source videos remain under
118
+ `projects/<slug>/`. Status includes a reopenable `editorUrl`, progress and errors. Saved partial
119
+ jobs become failed after a helper restart. Resume a failed job to reuse its saved project and
120
+ browser profile. The visible demo browser stays open after a failure or completed capture.
121
+ Cancellation stops the active job's agent and browser and keeps files. Browser-operation errors
122
+ stop the job; check status before resuming. Preparation waits for visible controls and selected tabs.
123
+ When the draft is ready, the helper reuses a connected editor tab before it opens a new tab.
124
+
125
+ `ready` is an editable, validated announcement draft, not a final exported video. Review footage,
126
+ text and privacy before sharing, then use the existing editor/export flow. The prototype is wide
127
+ 1440×900 for page capture and 1920×1080 for the presentation, with editable titles, explanations,
128
+ recorded clips, source trims and optional explicit framing. It has no generated audio. How-to and promotional remain named choices but return
129
+ an unsupported response. There is no webhook, automatic deployment trigger or publishing step.
130
+ Capture uses real Chrome page frames and a helper-owned FFmpeg recorder at 30 fps. It keeps only
131
+ the latest frame in memory and handles encoder backpressure without a fixed half-second cutoff.
132
+ `showCursor` defaults to true. Cursor motion and click feedback are drawn inside the captured
133
+ page, with smooth movement before click and hover actions. This uses the same page recorder,
134
+ not Agent Browser's separate cursor encoder. The overlay is removed when recording stops.
135
+ Recorder failures remain real job failures; frame rate is not silently reduced.
136
+
137
+ For local editor work, set `AGENTCUT_EDITOR_ORIGIN=http://localhost:3000` before starting the helper.
138
+ Custom origins must also be allowed with `--origin`. A non-default helper port is included in the
139
+ editor link as `helperPort`; the bridge host always remains `127.0.0.1`. Reopen links on the same
140
+ computer with the same workspace helper running. `AGENTCUT_DEMO_HEADLESS=1` is for unattended
141
+ fixture tests; leave it unset for direct sign-in.
142
+
143
+ Run `npm run test:release` from the repository root for lifecycle checks. For the real browser/MCP
144
+ test, build the helper, start the local editor, set `AGENTCUT_RELEASE_E2E=1` and optionally
145
+ `AGENTCUT_RELEASE_TEST_PORT=32119`, then run `npm run test:release`. It records only the local
146
+ prepared Chat with Website sample. It does not validate a live Chat with Website account. The
147
+ test saves its draft and result under `packages/agentcut/.tmp/release-test-<port>/`. Use a separate
148
+ port and workspace from a live run. `AGENTCUT_RELEASE_TEST_DIR` can select another test workspace.
149
+
150
+ ## Optional Ming 0.5B voices
151
+
152
+ Project Assets → Voices includes ready-made Kokoro and Ming samples hosted with the other sounds at `https://files.screenslick.com/studio/voice-samples/`. Anyone can listen without a model, GPU, API key, or connected helper. Copies in `public/voice-samples/` provide a fallback if shared storage is unavailable. They do not use a developer's disk path.
153
+
154
+ For Ming, Set up Ming lets the user choose CPU or NVIDIA GPU and shows the memory and hardware requirements, an estimated 3 GB model download plus runtime files, and a recommendation for 20 GB free during setup. The user chooses an installation folder and selects Download and install before any download starts. Model and runtime files use up to about 8 GB after installation, depending on the selected mode, with additional space for caches.
155
+
156
+ Creating speech still requires the local helper and the selected model. Ming description modes generate a custom preview locally and cache it under the selected Ming folder's `previews/` directory. Use voice opens a script form; Create voice-over saves the result in the project's `assets/voice/` folder. Paid providers are not available in this tab.
157
+
158
+ Install Python 3.10-3.12, then run (use `cuda` instead of `cpu` for a compatible NVIDIA GPU):
159
+
160
+ ```sh
161
+ agentcut --setup-ming --ming-dir E:/Agentcut-models/ming --ming-device cpu
162
+ ```
163
+
164
+ From this repository: `npm run studio --workspace agentcut -- --setup-ming --ming-dir E:/Agentcut-models/ming`.
165
+
166
+ The selected folder holds the Python environment, downloaded packages, model (about 3 GB), source, all runtime caches, and temporary audio. Allow several additional GB for PyTorch and its installation files. Only a small `~/.agentcut/ming-location.json` pointer is stored in the user folder. Set `AGENTCUT_MING_DIR` to override that location or `AGENTCUT_PYTHON` to select the setup Python executable. Setup is explicit and never runs from a generic voice request. Generation uses local files and does not call a paid fallback.
167
+
168
+ Reopen Voice-over after setup. Select Ming and Emma, George or Charlotte. For natural-language voice and delivery control, select "Describe voice and delivery" and enter style instructions. "Design a voice" accepts a voice description. Named voices cannot combine with style instructions. This integration supports English, with no reference cloning or inline expression tags. Write numbers as spoken words; automatic text normalization is disabled. Kokoro stays the default.
169
+
170
+ Ming code and model weights are published under MIT. Setup preserves the upstream LICENSE and LEGAL files. The model/runtime revisions are pinned in `src/studio/voice/ming.ts`. CPU mode uses float32 and a CPU-only PyTorch runtime. NVIDIA mode uses CUDA with BF16 support. Setup supports Windows/Linux x64; Windows CPU and NVIDIA modes are tested. Apple GPU and ARM support are not claimed. CPU mode needs about 9 GB free RAM; 16 GB system RAM or more is recommended.
171
+
172
+
173
+ ### Ming runtime release checks
174
+
175
+ Run the fast checks with `node --import tsx --test tests/ming-voice.test.mjs tests/voice-previews.test.mjs tests/kokoro-voice.test.mjs tests/studio-rail-voice-browser.test.mjs`.
176
+
177
+ For real generation, set `AGENTCUT_MING_RUNTIME_TEST=1` and `AGENTCUT_MING_DIR` to an installed model folder, then run `node --import tsx --test tests/ming-runtime.test.mjs`. Repeat with separate CPU and CUDA installations. CPU verification must report a `+cpu` PyTorch build and `torch.version.cuda` as `None`, not just hide the GPU. The test saves WAV files and timings under the selected folder's `release-test-results/`. Listen to the clips to check words, pacing, and voice consistency before publishing. CPU tests can take several minutes.
@@ -28,8 +28,9 @@ const BASE_TOOLS = [
28
28
  ];
29
29
  // A file name, web page or transcript can carry instructions, and the agent runs without anyone
30
30
  // approving its commands. So its shell only writes to the workspace, only reaches these sites, and
31
- // neither the shell nor Read can open logins and keys.
32
- const SHELL_DOMAINS = ["registry.npmjs.org", "api.openverse.org", "freesound.org", "cdn.freesound.org", "upload.wikimedia.org"];
31
+ // neither the shell nor Read can open logins and keys. Media from any other site comes through
32
+ // agentcut_download, which the helper runs outside the sandbox.
33
+ const SHELL_DOMAINS = ["registry.npmjs.org", "api.openverse.org"];
33
34
  const SECRET_FOLDERS = [
34
35
  ".ssh",
35
36
  ".aws",
@@ -1 +1 @@
1
- {"version":3,"file":"claude.js","sourceRoot":"","sources":["../../../src/studio/agents/claude.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAG5C;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,GAAW;IACtC,IAAI,I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M,EAAE;YACN,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;YAC/B,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;YAC7B,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;YACjC,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;SAChC;QACD,YAAY,EAAE,IAAI;QAClB,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC;QAClD,aAAa,EAAE,IAAI;KACpB,CAAC;IAEF,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI,YAAY,EAAE;IAEtC,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,2CAA2C,CAAC,IAAI,CAAC,MAAM,CAAC;CACpF,CAAC"}
@@ -626,7 +626,7 @@ export class ChatEngine {
626
626
  }
627
627
  }
628
628
  pruneFrames(dir) {
629
- pruneChatFrames(dir);
629
+ pruneChatFrames(dir, this.deps.paths.root);
630
630
  }
631
631
  toolSummary(slug, name, input) {
632
632
  const file = this.relativeFile(slug, input.file_path ?? input.path ?? input.notebook_path);