@auscera/cleoedits 0.0.0-stage → 0.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.
Files changed (230) hide show
  1. package/README.md +62 -2
  2. package/cli.mjs +149 -0
  3. package/lib/dependencies.mjs +384 -0
  4. package/lib/run.mjs +114 -0
  5. package/lib/workspace.mjs +167 -0
  6. package/package.json +240 -3
  7. package/workspace/.agents/skills/cleoedits/SKILL.md +29 -0
  8. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/audiogram.json +41 -0
  9. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/facebook.json +48 -0
  10. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/linkedin.json +48 -0
  11. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/podcast.json +23 -0
  12. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/reels.json +48 -0
  13. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/shorts.json +48 -0
  14. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/tiktok.json +48 -0
  15. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/x.json +48 -0
  16. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/youtube-shorts.json +48 -0
  17. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/youtube.json +48 -0
  18. package/workspace/.agents/skills/cleoedits/assets/reel_effects/assets/LICENSE-SimpleIcons +30 -0
  19. package/workspace/.agents/skills/cleoedits/assets/reel_effects/assets/logos.json +1 -0
  20. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Anton-Regular.ttf +0 -0
  21. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/ArchivoBlack-Regular.ttf +0 -0
  22. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/InstrumentSerif-Italic.ttf +0 -0
  23. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Inter.ttf +0 -0
  24. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/LICENSE-PermanentMarker.txt +202 -0
  25. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Montserrat.ttf +0 -0
  26. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Anton.txt +93 -0
  27. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-ArchivoBlack.txt +93 -0
  28. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-InstrumentSerif.txt +93 -0
  29. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Inter.txt +93 -0
  30. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Montserrat.txt +93 -0
  31. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-PlayfairDisplay.txt +93 -0
  32. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Poppins.txt +93 -0
  33. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-SpaceMono.txt +93 -0
  34. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/PermanentMarker-Regular.ttf +0 -0
  35. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/PlayfairDisplay-Italic.ttf +0 -0
  36. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/PlayfairDisplay.ttf +0 -0
  37. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Poppins-Black.ttf +0 -0
  38. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Poppins-Bold.ttf +0 -0
  39. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Poppins-ExtraBold.ttf +0 -0
  40. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/SpaceMono-Bold.ttf +0 -0
  41. package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/LICENSE-MediaPipe +218 -0
  42. package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/LICENSE-YuNet +21 -0
  43. package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/NOTICE.md +4 -0
  44. package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/selfie_segmenter.tflite +0 -0
  45. package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/yunet.onnx +0 -0
  46. package/workspace/.agents/skills/cleoedits/assets/video_styles/LICENSE +21 -0
  47. package/workspace/.agents/skills/cleoedits/assets/video_styles/audio-app-ui/STYLE.md +65 -0
  48. package/workspace/.agents/skills/cleoedits/assets/video_styles/blueprint/STYLE.md +53 -0
  49. package/workspace/.agents/skills/cleoedits/assets/video_styles/blueprint/index.html +328 -0
  50. package/workspace/.agents/skills/cleoedits/assets/video_styles/blueprint/studio.js +57 -0
  51. package/workspace/.agents/skills/cleoedits/assets/video_styles/data-story/STYLE.md +65 -0
  52. package/workspace/.agents/skills/cleoedits/assets/video_styles/data-story/index.html +575 -0
  53. package/workspace/.agents/skills/cleoedits/assets/video_styles/design-app-ui/STYLE.md +68 -0
  54. package/workspace/.agents/skills/cleoedits/assets/video_styles/editor-ui/STYLE.md +73 -0
  55. package/workspace/.agents/skills/cleoedits/assets/video_styles/editorial-paper/STYLE.md +54 -0
  56. package/workspace/.agents/skills/cleoedits/assets/video_styles/editorial-paper/index.html +189 -0
  57. package/workspace/.agents/skills/cleoedits/assets/video_styles/editorial-paper/studio.js +57 -0
  58. package/workspace/.agents/skills/cleoedits/assets/video_styles/explainer-diagram/STYLE.md +64 -0
  59. package/workspace/.agents/skills/cleoedits/assets/video_styles/explainer-diagram/index.html +620 -0
  60. package/workspace/.agents/skills/cleoedits/assets/video_styles/graphite-ui/STYLE.md +55 -0
  61. package/workspace/.agents/skills/cleoedits/assets/video_styles/graphite-ui/index.html +238 -0
  62. package/workspace/.agents/skills/cleoedits/assets/video_styles/graphite-ui/studio.js +57 -0
  63. package/workspace/.agents/skills/cleoedits/assets/video_styles/growing-city/STYLE.md +66 -0
  64. package/workspace/.agents/skills/cleoedits/assets/video_styles/growing-city/index.html +602 -0
  65. package/workspace/.agents/skills/cleoedits/assets/video_styles/ink-line/STYLE.md +66 -0
  66. package/workspace/.agents/skills/cleoedits/assets/video_styles/ink-line/index.html +777 -0
  67. package/workspace/.agents/skills/cleoedits/assets/video_styles/midnight-grid/STYLE.md +56 -0
  68. package/workspace/.agents/skills/cleoedits/assets/video_styles/midnight-grid/index.html +186 -0
  69. package/workspace/.agents/skills/cleoedits/assets/video_styles/midnight-grid/studio.js +57 -0
  70. package/workspace/.agents/skills/cleoedits/assets/video_styles/motion-app-ui/STYLE.md +68 -0
  71. package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-cut/STYLE.md +56 -0
  72. package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-cut/index.html +244 -0
  73. package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-cut/studio.js +57 -0
  74. package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-world/STYLE.md +67 -0
  75. package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-world/index.html +663 -0
  76. package/workspace/.agents/skills/cleoedits/assets/video_styles/particle-field/STYLE.md +59 -0
  77. package/workspace/.agents/skills/cleoedits/assets/video_styles/particle-field/index.html +395 -0
  78. package/workspace/.agents/skills/cleoedits/assets/video_styles/poster-pop/STYLE.md +52 -0
  79. package/workspace/.agents/skills/cleoedits/assets/video_styles/poster-pop/index.html +194 -0
  80. package/workspace/.agents/skills/cleoedits/assets/video_styles/poster-pop/studio.js +57 -0
  81. package/workspace/.agents/skills/cleoedits/assets/video_styles/risograph/STYLE.md +58 -0
  82. package/workspace/.agents/skills/cleoedits/assets/video_styles/risograph/index.html +242 -0
  83. package/workspace/.agents/skills/cleoedits/assets/video_styles/risograph/studio.js +57 -0
  84. package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-grid/STYLE.md +53 -0
  85. package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-grid/index.html +138 -0
  86. package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-grid/studio.js +57 -0
  87. package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-kinetic/STYLE.md +63 -0
  88. package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-kinetic/index.html +599 -0
  89. package/workspace/.agents/skills/cleoedits/assets/video_styles/time-travel/STYLE.md +65 -0
  90. package/workspace/.agents/skills/cleoedits/assets/video_styles/time-travel/index.html +1297 -0
  91. package/workspace/.agents/skills/cleoedits/assets/video_styles/weather-widget/STYLE.md +69 -0
  92. package/workspace/.agents/skills/cleoedits/assets/video_styles/weather-widget/index.html +674 -0
  93. package/workspace/.agents/skills/cleoedits/references/audio-clearervoice-elevenlabs.md +11 -0
  94. package/workspace/.agents/skills/cleoedits/references/ffmpeg-and-reels.md +15 -0
  95. package/workspace/.agents/skills/cleoedits/references/hyperframes-workflows.md +13 -0
  96. package/workspace/.agents/skills/cleoedits/references/kdenlive-cli-and-mcp.md +12 -0
  97. package/workspace/.agents/skills/cleoedits/references/motion-design-pipeline.md +7 -0
  98. package/workspace/.agents/skills/cleoedits/references/motion-taste-emil.md +5 -0
  99. package/workspace/.agents/skills/cleoedits/references/playwright-demo-capture.md +9 -0
  100. package/workspace/.agents/skills/cleoedits/references/remotion-workflows.md +13 -0
  101. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/LICENSE +21 -0
  102. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_ass_overlay.py +399 -0
  103. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/__init__.py +235 -0
  104. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/alpha.py +560 -0
  105. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/asr.py +1237 -0
  106. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/color.py +540 -0
  107. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/decision.py +2452 -0
  108. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/drawtext.py +290 -0
  109. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/emit.py +1309 -0
  110. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/emoji.py +518 -0
  111. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/fonts.py +875 -0
  112. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/pacing.py +263 -0
  113. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/pacing_edit.py +432 -0
  114. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/probe.py +1613 -0
  115. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/runner.py +3994 -0
  116. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/text.py +73 -0
  117. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/timeline.py +721 -0
  118. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/wrap.py +981 -0
  119. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_contract.py +2454 -0
  120. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_platforms.py +258 -0
  121. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_review.html +754 -0
  122. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_review.py +258 -0
  123. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_smartcut.py +450 -0
  124. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/audio.py +867 -0
  125. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/background.py +136 -0
  126. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/batch.py +1409 -0
  127. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/broll.py +282 -0
  128. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/caption.py +2207 -0
  129. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/check.py +815 -0
  130. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/color.py +695 -0
  131. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/crop.py +91 -0
  132. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/cropdetect.py +214 -0
  133. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/cut.py +2076 -0
  134. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/deinterlace.py +90 -0
  135. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/denoise.py +94 -0
  136. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/export.py +1033 -0
  137. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/fit.py +729 -0
  138. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/freeze.py +197 -0
  139. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/graphics.py +920 -0
  140. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/grid.py +235 -0
  141. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/insert.py +142 -0
  142. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/join.py +1083 -0
  143. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/look.py +475 -0
  144. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/loop.py +395 -0
  145. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/loudness.py +397 -0
  146. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/metadata.py +416 -0
  147. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/multicam.py +414 -0
  148. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/overlay.py +766 -0
  149. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/pad.py +121 -0
  150. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/probe.py +145 -0
  151. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/proxy.py +93 -0
  152. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/redact.py +162 -0
  153. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/render.py +2424 -0
  154. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/report.py +354 -0
  155. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/reverse.py +114 -0
  156. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/scenes.py +439 -0
  157. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/sequence.py +285 -0
  158. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/silence.py +945 -0
  159. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/speedramp.py +193 -0
  160. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/sphere.py +137 -0
  161. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/stabilize.py +141 -0
  162. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/straighten.py +120 -0
  163. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/sync.py +500 -0
  164. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/verify.py +411 -0
  165. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/waveform.py +502 -0
  166. package/workspace/.agents/skills/cleoedits/scripts/kdenlive_builder.py +284 -0
  167. package/workspace/.agents/skills/cleoedits/scripts/motion/LICENSE-claude-motion +21 -0
  168. package/workspace/.agents/skills/cleoedits/scripts/motion/LICENSE-motion-design +21 -0
  169. package/workspace/.agents/skills/cleoedits/scripts/motion/_media.py +43 -0
  170. package/workspace/.agents/skills/cleoedits/scripts/motion/pacing_check.py +90 -0
  171. package/workspace/.agents/skills/cleoedits/scripts/motion/storyboard.py +77 -0
  172. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/LICENSE +26 -0
  173. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/fx.py +2717 -0
  174. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/logos.py +194 -0
  175. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/sfx.py +105 -0
  176. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/trim.py +99 -0
  177. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/words.py +60 -0
  178. package/workspace/.claude/commands/blender-3d.md +12 -0
  179. package/workspace/.claude/commands/business-short-form-reels.md +12 -0
  180. package/workspace/.claude/commands/color-grade.md +12 -0
  181. package/workspace/.claude/commands/cutout-grid-reel.md +12 -0
  182. package/workspace/.claude/commands/depth-ui-reel.md +12 -0
  183. package/workspace/.claude/commands/explainer-panel-reel.md +12 -0
  184. package/workspace/.claude/commands/freeze-frame.md +12 -0
  185. package/workspace/.claude/commands/glass-graph.md +12 -0
  186. package/workspace/.claude/commands/over-the-shoulder.md +12 -0
  187. package/workspace/.claude/commands/personal-short-form-reels.md +12 -0
  188. package/workspace/.claude/commands/ranking-format.md +12 -0
  189. package/workspace/.claude/commands/relight.md +12 -0
  190. package/workspace/.claude/commands/reverse-engineer.md +12 -0
  191. package/workspace/.claude/commands/text-behind.md +12 -0
  192. package/workspace/.claude/commands/tier-list.md +12 -0
  193. package/workspace/.claude-plugin/plugin.json +8 -0
  194. package/workspace/.npmignore +15 -0
  195. package/workspace/AGENTS.md +30 -0
  196. package/workspace/README.md +63 -0
  197. package/workspace/assets/fonts/TikTokSans-OFL.txt +93 -0
  198. package/workspace/assets/fonts/TikTokSans-Variable.ttf +0 -0
  199. package/workspace/assets/luts/clean_warm.cube +4917 -0
  200. package/workspace/assets/luts/golden_hour.cube +4917 -0
  201. package/workspace/assets/luts/moody_dark.cube +4917 -0
  202. package/workspace/assets/luts/teal_orange.cube +4917 -0
  203. package/workspace/assets/sfx/NOTICE.txt +1 -0
  204. package/workspace/assets/sfx/click.wav +0 -0
  205. package/workspace/assets/sfx/pop.wav +0 -0
  206. package/workspace/assets/sfx/riser.wav +0 -0
  207. package/workspace/assets/sfx/whoosh.wav +0 -0
  208. package/workspace/generators/hyperframes/index.html +39 -0
  209. package/workspace/generators/hyperframes/package.json +15 -0
  210. package/workspace/generators/hyperframes/pnpm-lock.yaml +1181 -0
  211. package/workspace/generators/hyperframes/pnpm-workspace.yaml +10 -0
  212. package/workspace/generators/remotion/eslint.config.mjs +3 -0
  213. package/workspace/generators/remotion/package.json +36 -0
  214. package/workspace/generators/remotion/pnpm-lock.yaml +4179 -0
  215. package/workspace/generators/remotion/pnpm-workspace.yaml +10 -0
  216. package/workspace/generators/remotion/remotion.config.ts +13 -0
  217. package/workspace/generators/remotion/src/Root.tsx +52 -0
  218. package/workspace/generators/remotion/src/index.css +1 -0
  219. package/workspace/generators/remotion/src/index.ts +4 -0
  220. package/workspace/generators/remotion/tsconfig.json +15 -0
  221. package/workspace/pipeline/scripts/_codec.py +28 -0
  222. package/workspace/pipeline/scripts/ai_media_api.py +109 -0
  223. package/workspace/pipeline/scripts/blender_render.py +166 -0
  224. package/workspace/pipeline/scripts/composite.py +49 -0
  225. package/workspace/pipeline/scripts/melt.sh +68 -0
  226. package/workspace/pipeline/scripts/normalize_audio.py +39 -0
  227. package/workspace/pipeline/scripts/person_matte.py +216 -0
  228. package/workspace/pipeline/scripts/record_demo.py +69 -0
  229. package/workspace/pipeline/scripts/whisper_cut.py +98 -0
  230. package/workspace-manifest.json +908 -0
package/lib/run.mjs ADDED
@@ -0,0 +1,114 @@
1
+ import { spawn } from "node:child_process";
2
+ import fs from "node:fs";
3
+ import path from "node:path";
4
+ import { profiles, systemPython, workspacePython } from "./dependencies.mjs";
5
+ import { skillPath } from "./workspace.mjs";
6
+
7
+ const pythonScripts = {
8
+ composite: ["composite.py", "ffmpeg"],
9
+ "normalize-audio": ["normalize_audio.py", "ffmpeg"],
10
+ "whisper-cut": ["whisper_cut.py", "ffmpeg"],
11
+ "record-demo": ["record_demo.py", "capture"],
12
+ "person-matte": ["person_matte.py", "cutouts"],
13
+ "blender-render": ["blender_render.py", "blender"],
14
+ "cloud-media": ["ai_media_api.py", "cloud-media"],
15
+ };
16
+
17
+ const pythonCommands = {
18
+ "auto-editor": ["auto_editor", "quick-cuts"],
19
+ whisperx: ["whisperx", "word-captions"],
20
+ "yt-dlp": ["yt_dlp", "references"],
21
+ "edge-tts": ["edge_tts", "edge-tts"],
22
+ };
23
+
24
+ const systemCommands = ["ffmpeg", "ffprobe", "kdenlive", "blender"];
25
+ const engineCommands = ["remotion", "hyperframes"];
26
+ export const runnerNames = [
27
+ ...systemCommands, ...engineCommands, ...Object.keys(pythonScripts),
28
+ ...Object.keys(pythonCommands), "melt", "python", "skill-script",
29
+ ];
30
+
31
+ export function execute(binary, args, cwd, env = process.env) {
32
+ return new Promise((resolve, reject) => {
33
+ const child = spawn(binary, args, { cwd, env, stdio: "inherit", windowsHide: false });
34
+ child.once("error", (error) => reject(new Error(
35
+ error.code === "ENOENT" ? `Could not find ${binary}. Check your PATH and run cleoedits doctor.` : error.message,
36
+ { cause: error },
37
+ )));
38
+ child.once("close", (code, signal) => resolve(code ?? (signal === "SIGINT" ? 130 : 1)));
39
+ });
40
+ }
41
+
42
+ function pythonCommand(workspace, profile, args, { required = false } = {}) {
43
+ const python = workspacePython(workspace, profile) ?? (required ? null : systemPython());
44
+ if (!python) throw new Error(`Python is unavailable. Run cleoedits install ${profile} or see cleoedits doctor ${profile}.`);
45
+ return execute(python, args, workspace);
46
+ }
47
+
48
+ function runSkillScript(workspace, file, args) {
49
+ if (!file || path.isAbsolute(file)) throw new Error("Give a relative path inside the skill's scripts directory.");
50
+ const root = fs.realpathSync(path.join(workspace, skillPath, "scripts"));
51
+ const relativeInput = path.relative(root, path.resolve(root, file));
52
+ if (relativeInput === ".." || relativeInput.startsWith(`..${path.sep}`) || path.isAbsolute(relativeInput)) {
53
+ throw new Error("Choose a file inside the skill's scripts directory.");
54
+ }
55
+ const target = fs.realpathSync(path.join(root, relativeInput));
56
+ const relative = path.relative(root, target);
57
+ if (relative === ".." || relative.startsWith(`..${path.sep}`) || path.isAbsolute(relative) || !fs.statSync(target).isFile()) {
58
+ throw new Error("Choose a file inside the skill's scripts directory.");
59
+ }
60
+ if (path.extname(target) === ".sh") return execute("bash", [target, ...args], workspace);
61
+ if (path.extname(target) !== ".py") throw new Error("The skill-script runner supports Python and Bash files.");
62
+ const parts = relative.split(path.sep);
63
+ const profile = relative === "kdenlive_builder.py" ? "kdenlive"
64
+ : parts[0] === "reel_effects" && parts[1] === "words.py" ? "transcription" : "reel-effects";
65
+ return pythonCommand(workspace, profile, [target, ...args]);
66
+ }
67
+
68
+ function runEngine(workspace, engine, args) {
69
+ const folder = path.join(workspace, "generators", engine);
70
+ const binary = path.join(folder, "node_modules", ".bin", engine);
71
+ if (process.platform !== "win32") return execute(binary, args, folder);
72
+ const module = path.join(folder, "node_modules", engine === "remotion" ? "@remotion/cli" : engine);
73
+ const { bin } = JSON.parse(fs.readFileSync(path.join(module, "package.json"), "utf8"));
74
+ return execute(process.execPath, [path.join(module, typeof bin === "string" ? bin : bin[engine]), ...args], folder);
75
+ }
76
+
77
+ export function runTool(workspace, tool, args) {
78
+ if (systemCommands.includes(tool)) return execute(tool, args, workspace);
79
+ if (engineCommands.includes(tool)) return runEngine(workspace, tool, args);
80
+ if (Object.hasOwn(pythonScripts, tool)) {
81
+ const [script, profile] = pythonScripts[tool];
82
+ return pythonCommand(workspace, profile, [path.join(workspace, "pipeline", "scripts", script), ...args]);
83
+ }
84
+ if (Object.hasOwn(pythonCommands, tool)) {
85
+ const [module, profile] = pythonCommands[tool];
86
+ return pythonCommand(workspace, profile, ["-m", module, ...args]);
87
+ }
88
+ if (tool === "melt") {
89
+ if (process.platform !== "linux") throw new Error("The AppImage render helper requires Linux. Use Kdenlive to render here.");
90
+ const env = { ...process.env, MELT_CACHE_DIR: process.env.MELT_CACHE_DIR ?? path.join(workspace, ".cleoedits", "melt") };
91
+ return execute("bash", [path.join(workspace, "pipeline", "scripts", "melt.sh"), ...args], workspace, env);
92
+ }
93
+ if (tool === "skill-script") return runSkillScript(workspace, args[0], args.slice(1));
94
+ if (tool === "python") {
95
+ if (args[0] !== "--profile") return pythonCommand(workspace, "python", args);
96
+ const [, profile, ...rest] = args;
97
+ if (!Object.hasOwn(profiles, profile)) throw new Error(`Unknown dependency profile: ${profile}`);
98
+ return pythonCommand(workspace, profile, rest[0] === "--" ? rest.slice(1) : rest, {
99
+ required: Boolean(profiles[profile].isolated),
100
+ });
101
+ }
102
+ throw new Error(`Unknown runner: ${tool ?? "(missing)"}. See cleoedits tools.`);
103
+ }
104
+
105
+ export function openWorkspace(workspace) {
106
+ const binary = { darwin: "open", win32: "explorer.exe" }[process.platform] ?? "xdg-open";
107
+ return execute(binary, [workspace], workspace);
108
+ }
109
+
110
+ export function launchAgent(workspace, host, args) {
111
+ if (host === "claude") return execute(host, ["--plugin-dir", workspace, ...args], workspace);
112
+ if (host === "codex") return execute(host, args, workspace);
113
+ throw new Error("Choose codex or claude. Start other agents from the installed workspace and point them to AGENTS.md.");
114
+ }
@@ -0,0 +1,167 @@
1
+ import { createHash } from "node:crypto";
2
+ import fs from "node:fs";
3
+ import os from "node:os";
4
+ import path from "node:path";
5
+ import { fileURLToPath } from "node:url";
6
+
7
+ export const packageRoot = fileURLToPath(new URL("../", import.meta.url));
8
+ export const skillPath = ".agents/skills/cleoedits";
9
+
10
+ const payload = path.join(packageRoot, "workspace");
11
+ const stateFile = ".cleoedits/installed.json";
12
+
13
+ export function workspacePath() {
14
+ const target = path.resolve(process.env.CLEOEDITS_HOME || path.join(os.homedir(), ".cleoedits"));
15
+ const resolved = resolveExistingParents(target);
16
+ if (resolved === path.parse(resolved).root || resolved === resolveExistingParents(os.homedir())) {
17
+ throw new Error("Choose a dedicated directory for CLEOEDITS_HOME.");
18
+ }
19
+ if (isWithin(packageRoot, resolved) || isWithin(resolved, packageRoot) ||
20
+ (fs.existsSync(path.join(packageRoot, "../../.git")) &&
21
+ isWithin(path.resolve(packageRoot, "../.."), resolved))) {
22
+ throw new Error("Choose a workspace outside the CleoEdits package and source checkout.");
23
+ }
24
+ return target;
25
+ }
26
+
27
+ function resolveExistingParents(target) {
28
+ if (info(target)) return fs.realpathSync(target);
29
+ return path.join(resolveExistingParents(path.dirname(target)), path.basename(target));
30
+ }
31
+
32
+ function isWithin(directory, candidate) {
33
+ const relative = path.relative(directory, candidate);
34
+ return relative === "" || (!relative.startsWith(`..${path.sep}`) && relative !== ".." && !path.isAbsolute(relative));
35
+ }
36
+
37
+ function info(filename) {
38
+ try {
39
+ return fs.lstatSync(filename);
40
+ } catch (error) {
41
+ if (error.code === "ENOENT") return undefined;
42
+ throw error;
43
+ }
44
+ }
45
+
46
+ function installedPath(workspace, relative) {
47
+ const segments = relative.split("/");
48
+ if (segments.some((part) => part === "." || part === ".." || !/^[\w.@ +-]+$/.test(part))) {
49
+ throw new Error(`Invalid workspace path: ${relative}`);
50
+ }
51
+ let current = workspace;
52
+ const root = info(current);
53
+ if (!root?.isDirectory()) throw new Error(`Expected a workspace directory: ${current}`);
54
+ for (const [index, segment] of segments.entries()) {
55
+ current = path.join(current, segment);
56
+ const stat = info(current);
57
+ if (stat?.isSymbolicLink() || (stat && index < segments.length - 1 && !stat.isDirectory())) {
58
+ throw new Error(`Cannot use the workspace path: ${current}`);
59
+ }
60
+ }
61
+ return current;
62
+ }
63
+
64
+ export function fingerprint(bytes) {
65
+ return createHash("sha256").update(bytes).digest("hex");
66
+ }
67
+
68
+ function readJson(filename) {
69
+ if (!info(filename)) return undefined;
70
+ return JSON.parse(fs.readFileSync(filename, "utf8"));
71
+ }
72
+
73
+ function atomicFile(filename, data, mode = 0o644) {
74
+ fs.mkdirSync(path.dirname(filename), { recursive: true });
75
+ const temporary = fs.mkdtempSync(path.join(path.dirname(filename), ".cleoedits-write-"));
76
+ try {
77
+ const file = path.join(temporary, "file");
78
+ fs.writeFileSync(file, data, { mode });
79
+ fs.renameSync(file, filename);
80
+ } finally {
81
+ fs.rmSync(temporary, { recursive: true, force: true });
82
+ }
83
+ }
84
+
85
+ function releaseManifest() {
86
+ const manifest = readJson(path.join(packageRoot, "workspace-manifest.json"));
87
+ if (!manifest) {
88
+ throw new Error("Install the packaged CleoEdits tarball first. In a source checkout, build it with pnpm cleoedits:pack.");
89
+ }
90
+ return manifest;
91
+ }
92
+
93
+ export async function withWorkspaceLock(workspace, operation) {
94
+ fs.mkdirSync(workspace, { recursive: true });
95
+ const lock = installedPath(workspace, ".cleoedits/operation.lock");
96
+ fs.mkdirSync(path.dirname(lock), { recursive: true });
97
+ let handle;
98
+ try {
99
+ handle = fs.openSync(lock, "wx");
100
+ } catch (error) {
101
+ if (error.code === "EEXIST") {
102
+ throw new Error(`Another CleoEdits operation holds ${lock}. Retry when it finishes. If it was interrupted, remove the lock only after confirming the process has stopped.`);
103
+ }
104
+ throw error;
105
+ }
106
+ try {
107
+ fs.writeFileSync(handle, `${process.pid}\n`);
108
+ return await operation();
109
+ } finally {
110
+ fs.closeSync(handle);
111
+ fs.unlinkSync(lock);
112
+ }
113
+ }
114
+
115
+ export async function prepareWorkspace(workspace, { repair = false } = {}) {
116
+ const release = releaseManifest();
117
+ if (!repair && info(workspace)?.isDirectory()) {
118
+ const previous = readJson(installedPath(workspace, stateFile));
119
+ if (previous?.version === release.version && !previous.pending) return [];
120
+ }
121
+
122
+ return await withWorkspaceLock(workspace, () => {
123
+ const state = installedPath(workspace, stateFile);
124
+ const previous = readJson(state);
125
+ const oldFiles = Object.assign(Object.create(null), previous?.files);
126
+ const files = Object.create(null);
127
+ const conflicts = [];
128
+ const updates = [];
129
+
130
+ for (const [relative, digest] of Object.entries(previous?.pending ?? {})) {
131
+ const target = installedPath(workspace, relative);
132
+ if (info(target)?.isFile() && fingerprint(fs.readFileSync(target)) === digest) {
133
+ oldFiles[relative] = digest;
134
+ }
135
+ }
136
+
137
+ for (const relative of release.directories) {
138
+ fs.mkdirSync(installedPath(workspace, relative), { recursive: true });
139
+ }
140
+
141
+ for (const [relative, { sha256, executable }] of Object.entries(release.files)) {
142
+ const target = installedPath(workspace, relative);
143
+ const stat = info(target);
144
+ const existing = stat?.isFile() ? fingerprint(fs.readFileSync(target)) : undefined;
145
+ const managed = Object.hasOwn(oldFiles, relative) ? oldFiles[relative] : undefined;
146
+ if (stat && existing !== sha256 && (!managed || existing !== managed)) {
147
+ conflicts.push(relative);
148
+ if (managed) files[relative] = managed;
149
+ continue;
150
+ }
151
+ if (existing !== sha256) {
152
+ const bytes = fs.readFileSync(path.join(payload, relative));
153
+ if (fingerprint(bytes) !== sha256) throw new Error(`Package file failed verification: ${relative}`);
154
+ updates.push({ target, bytes, mode: executable ? 0o755 : 0o644 });
155
+ }
156
+ files[relative] = sha256;
157
+ }
158
+
159
+ // Write the intended fingerprints before copying so an interrupted setup can be retried.
160
+ // Each file is atomically replaced, and the journal distinguishes old and new hashes.
161
+ const journal = { version: previous?.version, files: oldFiles, pending: files };
162
+ atomicFile(state, `${JSON.stringify(journal, null, 2)}\n`);
163
+ for (const { target, bytes, mode } of updates) atomicFile(target, bytes, mode);
164
+ atomicFile(state, `${JSON.stringify({ version: release.version, files }, null, 2)}\n`);
165
+ return conflicts;
166
+ });
167
+ }
package/package.json CHANGED
@@ -1,6 +1,243 @@
1
1
  {
2
2
  "name": "@auscera/cleoedits",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "CleoEdits, an agent-native AI video studio for editing and motion graphics",
5
+ "type": "module",
6
+ "engines": {
7
+ "node": ">=22"
8
+ },
9
+ "bin": {
10
+ "cleoedits": "./cli.mjs"
11
+ },
12
+ "files": [
13
+ "cli.mjs",
14
+ "lib",
15
+ "workspace-manifest.json",
16
+ "workspace/.agents/skills/cleoedits/SKILL.md",
17
+ "workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/audiogram.json",
18
+ "workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/facebook.json",
19
+ "workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/linkedin.json",
20
+ "workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/podcast.json",
21
+ "workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/reels.json",
22
+ "workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/shorts.json",
23
+ "workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/tiktok.json",
24
+ "workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/x.json",
25
+ "workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/youtube-shorts.json",
26
+ "workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/youtube.json",
27
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/assets/LICENSE-SimpleIcons",
28
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/assets/logos.json",
29
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Anton-Regular.ttf",
30
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/ArchivoBlack-Regular.ttf",
31
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/InstrumentSerif-Italic.ttf",
32
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Inter.ttf",
33
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/LICENSE-PermanentMarker.txt",
34
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Montserrat.ttf",
35
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Anton.txt",
36
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-ArchivoBlack.txt",
37
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-InstrumentSerif.txt",
38
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Inter.txt",
39
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Montserrat.txt",
40
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-PlayfairDisplay.txt",
41
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Poppins.txt",
42
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-SpaceMono.txt",
43
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/PermanentMarker-Regular.ttf",
44
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/PlayfairDisplay-Italic.ttf",
45
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/PlayfairDisplay.ttf",
46
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Poppins-Black.ttf",
47
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Poppins-Bold.ttf",
48
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Poppins-ExtraBold.ttf",
49
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/SpaceMono-Bold.ttf",
50
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/models/LICENSE-MediaPipe",
51
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/models/LICENSE-YuNet",
52
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/models/NOTICE.md",
53
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/models/selfie_segmenter.tflite",
54
+ "workspace/.agents/skills/cleoedits/assets/reel_effects/models/yunet.onnx",
55
+ "workspace/.agents/skills/cleoedits/assets/video_styles/LICENSE",
56
+ "workspace/.agents/skills/cleoedits/assets/video_styles/audio-app-ui/STYLE.md",
57
+ "workspace/.agents/skills/cleoedits/assets/video_styles/blueprint/STYLE.md",
58
+ "workspace/.agents/skills/cleoedits/assets/video_styles/blueprint/index.html",
59
+ "workspace/.agents/skills/cleoedits/assets/video_styles/blueprint/studio.js",
60
+ "workspace/.agents/skills/cleoedits/assets/video_styles/data-story/STYLE.md",
61
+ "workspace/.agents/skills/cleoedits/assets/video_styles/data-story/index.html",
62
+ "workspace/.agents/skills/cleoedits/assets/video_styles/design-app-ui/STYLE.md",
63
+ "workspace/.agents/skills/cleoedits/assets/video_styles/editor-ui/STYLE.md",
64
+ "workspace/.agents/skills/cleoedits/assets/video_styles/editorial-paper/STYLE.md",
65
+ "workspace/.agents/skills/cleoedits/assets/video_styles/editorial-paper/index.html",
66
+ "workspace/.agents/skills/cleoedits/assets/video_styles/editorial-paper/studio.js",
67
+ "workspace/.agents/skills/cleoedits/assets/video_styles/explainer-diagram/STYLE.md",
68
+ "workspace/.agents/skills/cleoedits/assets/video_styles/explainer-diagram/index.html",
69
+ "workspace/.agents/skills/cleoedits/assets/video_styles/graphite-ui/STYLE.md",
70
+ "workspace/.agents/skills/cleoedits/assets/video_styles/graphite-ui/index.html",
71
+ "workspace/.agents/skills/cleoedits/assets/video_styles/graphite-ui/studio.js",
72
+ "workspace/.agents/skills/cleoedits/assets/video_styles/growing-city/STYLE.md",
73
+ "workspace/.agents/skills/cleoedits/assets/video_styles/growing-city/index.html",
74
+ "workspace/.agents/skills/cleoedits/assets/video_styles/ink-line/STYLE.md",
75
+ "workspace/.agents/skills/cleoedits/assets/video_styles/ink-line/index.html",
76
+ "workspace/.agents/skills/cleoedits/assets/video_styles/midnight-grid/STYLE.md",
77
+ "workspace/.agents/skills/cleoedits/assets/video_styles/midnight-grid/index.html",
78
+ "workspace/.agents/skills/cleoedits/assets/video_styles/midnight-grid/studio.js",
79
+ "workspace/.agents/skills/cleoedits/assets/video_styles/motion-app-ui/STYLE.md",
80
+ "workspace/.agents/skills/cleoedits/assets/video_styles/paper-cut/STYLE.md",
81
+ "workspace/.agents/skills/cleoedits/assets/video_styles/paper-cut/index.html",
82
+ "workspace/.agents/skills/cleoedits/assets/video_styles/paper-cut/studio.js",
83
+ "workspace/.agents/skills/cleoedits/assets/video_styles/paper-world/STYLE.md",
84
+ "workspace/.agents/skills/cleoedits/assets/video_styles/paper-world/index.html",
85
+ "workspace/.agents/skills/cleoedits/assets/video_styles/particle-field/STYLE.md",
86
+ "workspace/.agents/skills/cleoedits/assets/video_styles/particle-field/index.html",
87
+ "workspace/.agents/skills/cleoedits/assets/video_styles/poster-pop/STYLE.md",
88
+ "workspace/.agents/skills/cleoedits/assets/video_styles/poster-pop/index.html",
89
+ "workspace/.agents/skills/cleoedits/assets/video_styles/poster-pop/studio.js",
90
+ "workspace/.agents/skills/cleoedits/assets/video_styles/risograph/STYLE.md",
91
+ "workspace/.agents/skills/cleoedits/assets/video_styles/risograph/index.html",
92
+ "workspace/.agents/skills/cleoedits/assets/video_styles/risograph/studio.js",
93
+ "workspace/.agents/skills/cleoedits/assets/video_styles/swiss-grid/STYLE.md",
94
+ "workspace/.agents/skills/cleoedits/assets/video_styles/swiss-grid/index.html",
95
+ "workspace/.agents/skills/cleoedits/assets/video_styles/swiss-grid/studio.js",
96
+ "workspace/.agents/skills/cleoedits/assets/video_styles/swiss-kinetic/STYLE.md",
97
+ "workspace/.agents/skills/cleoedits/assets/video_styles/swiss-kinetic/index.html",
98
+ "workspace/.agents/skills/cleoedits/assets/video_styles/time-travel/STYLE.md",
99
+ "workspace/.agents/skills/cleoedits/assets/video_styles/time-travel/index.html",
100
+ "workspace/.agents/skills/cleoedits/assets/video_styles/weather-widget/STYLE.md",
101
+ "workspace/.agents/skills/cleoedits/assets/video_styles/weather-widget/index.html",
102
+ "workspace/.agents/skills/cleoedits/references/audio-clearervoice-elevenlabs.md",
103
+ "workspace/.agents/skills/cleoedits/references/ffmpeg-and-reels.md",
104
+ "workspace/.agents/skills/cleoedits/references/hyperframes-workflows.md",
105
+ "workspace/.agents/skills/cleoedits/references/kdenlive-cli-and-mcp.md",
106
+ "workspace/.agents/skills/cleoedits/references/motion-design-pipeline.md",
107
+ "workspace/.agents/skills/cleoedits/references/motion-taste-emil.md",
108
+ "workspace/.agents/skills/cleoedits/references/playwright-demo-capture.md",
109
+ "workspace/.agents/skills/cleoedits/references/remotion-workflows.md",
110
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/LICENSE",
111
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_ass_overlay.py",
112
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/__init__.py",
113
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/alpha.py",
114
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/asr.py",
115
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/color.py",
116
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/decision.py",
117
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/drawtext.py",
118
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/emit.py",
119
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/emoji.py",
120
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/fonts.py",
121
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/pacing.py",
122
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/pacing_edit.py",
123
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/probe.py",
124
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/runner.py",
125
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/text.py",
126
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/timeline.py",
127
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/wrap.py",
128
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_contract.py",
129
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_platforms.py",
130
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_review.html",
131
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_review.py",
132
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/_smartcut.py",
133
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/audio.py",
134
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/background.py",
135
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/batch.py",
136
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/broll.py",
137
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/caption.py",
138
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/check.py",
139
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/color.py",
140
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/crop.py",
141
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/cropdetect.py",
142
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/cut.py",
143
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/deinterlace.py",
144
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/denoise.py",
145
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/export.py",
146
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/fit.py",
147
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/freeze.py",
148
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/graphics.py",
149
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/grid.py",
150
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/insert.py",
151
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/join.py",
152
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/look.py",
153
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/loop.py",
154
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/loudness.py",
155
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/metadata.py",
156
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/multicam.py",
157
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/overlay.py",
158
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/pad.py",
159
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/probe.py",
160
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/proxy.py",
161
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/redact.py",
162
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/render.py",
163
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/report.py",
164
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/reverse.py",
165
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/scenes.py",
166
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/sequence.py",
167
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/silence.py",
168
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/speedramp.py",
169
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/sphere.py",
170
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/stabilize.py",
171
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/straighten.py",
172
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/sync.py",
173
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/verify.py",
174
+ "workspace/.agents/skills/cleoedits/scripts/ffmpeg/waveform.py",
175
+ "workspace/.agents/skills/cleoedits/scripts/kdenlive_builder.py",
176
+ "workspace/.agents/skills/cleoedits/scripts/motion/LICENSE-claude-motion",
177
+ "workspace/.agents/skills/cleoedits/scripts/motion/LICENSE-motion-design",
178
+ "workspace/.agents/skills/cleoedits/scripts/motion/_media.py",
179
+ "workspace/.agents/skills/cleoedits/scripts/motion/pacing_check.py",
180
+ "workspace/.agents/skills/cleoedits/scripts/motion/storyboard.py",
181
+ "workspace/.agents/skills/cleoedits/scripts/reel_effects/LICENSE",
182
+ "workspace/.agents/skills/cleoedits/scripts/reel_effects/fx.py",
183
+ "workspace/.agents/skills/cleoedits/scripts/reel_effects/logos.py",
184
+ "workspace/.agents/skills/cleoedits/scripts/reel_effects/sfx.py",
185
+ "workspace/.agents/skills/cleoedits/scripts/reel_effects/trim.py",
186
+ "workspace/.agents/skills/cleoedits/scripts/reel_effects/words.py",
187
+ "workspace/.claude/commands/blender-3d.md",
188
+ "workspace/.claude/commands/business-short-form-reels.md",
189
+ "workspace/.claude/commands/color-grade.md",
190
+ "workspace/.claude/commands/cutout-grid-reel.md",
191
+ "workspace/.claude/commands/depth-ui-reel.md",
192
+ "workspace/.claude/commands/explainer-panel-reel.md",
193
+ "workspace/.claude/commands/freeze-frame.md",
194
+ "workspace/.claude/commands/glass-graph.md",
195
+ "workspace/.claude/commands/over-the-shoulder.md",
196
+ "workspace/.claude/commands/personal-short-form-reels.md",
197
+ "workspace/.claude/commands/ranking-format.md",
198
+ "workspace/.claude/commands/relight.md",
199
+ "workspace/.claude/commands/reverse-engineer.md",
200
+ "workspace/.claude/commands/text-behind.md",
201
+ "workspace/.claude/commands/tier-list.md",
202
+ "workspace/.claude-plugin/plugin.json",
203
+ "workspace/.gitignore",
204
+ "workspace/AGENTS.md",
205
+ "workspace/README.md",
206
+ "workspace/assets/fonts/TikTokSans-OFL.txt",
207
+ "workspace/assets/fonts/TikTokSans-Variable.ttf",
208
+ "workspace/assets/luts/clean_warm.cube",
209
+ "workspace/assets/luts/golden_hour.cube",
210
+ "workspace/assets/luts/moody_dark.cube",
211
+ "workspace/assets/luts/teal_orange.cube",
212
+ "workspace/assets/sfx/NOTICE.txt",
213
+ "workspace/assets/sfx/click.wav",
214
+ "workspace/assets/sfx/pop.wav",
215
+ "workspace/assets/sfx/riser.wav",
216
+ "workspace/assets/sfx/whoosh.wav",
217
+ "workspace/generators/hyperframes/index.html",
218
+ "workspace/generators/hyperframes/package.json",
219
+ "workspace/generators/hyperframes/pnpm-lock.yaml",
220
+ "workspace/generators/hyperframes/pnpm-workspace.yaml",
221
+ "workspace/generators/remotion/eslint.config.mjs",
222
+ "workspace/generators/remotion/package.json",
223
+ "workspace/generators/remotion/pnpm-lock.yaml",
224
+ "workspace/generators/remotion/pnpm-workspace.yaml",
225
+ "workspace/generators/remotion/remotion.config.ts",
226
+ "workspace/generators/remotion/src/Root.tsx",
227
+ "workspace/generators/remotion/src/index.css",
228
+ "workspace/generators/remotion/src/index.ts",
229
+ "workspace/generators/remotion/tsconfig.json",
230
+ "workspace/pipeline/scripts/_codec.py",
231
+ "workspace/pipeline/scripts/ai_media_api.py",
232
+ "workspace/pipeline/scripts/blender_render.py",
233
+ "workspace/pipeline/scripts/composite.py",
234
+ "workspace/pipeline/scripts/melt.sh",
235
+ "workspace/pipeline/scripts/normalize_audio.py",
236
+ "workspace/pipeline/scripts/person_matte.py",
237
+ "workspace/pipeline/scripts/record_demo.py",
238
+ "workspace/pipeline/scripts/whisper_cut.py"
239
+ ],
240
+ "publishConfig": {
241
+ "access": "public"
242
+ }
6
243
  }
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: cleoedits
3
+ description: Edit, caption, render, or assemble video with the CleoEdits CLI and its local workspace, including talking-head cuts, product demos, motion graphics, audio cleanup, and Kdenlive timelines.
4
+ ---
5
+
6
+ # CleoEdits
7
+
8
+ Use `cleoedits workspace` to locate the active workspace and run editing commands there. Read its `AGENTS.md` for inputs and output locations. Use `cleoedits tools` to pick a profile, `cleoedits doctor <profile>` to check readiness, and `cleoedits install <profile>` when the user selects that workflow. Run `cleoedits run <tool> -- --help` before invoking an unfamiliar tool.
9
+
10
+ ## Choose the editing workflow
11
+
12
+ | Task | Reference |
13
+ | --- | --- |
14
+ | Rough cuts, color grades, transitions, and compositing | [FFmpeg and reel effects](references/ffmpeg-and-reels.md) |
15
+ | Noise reduction, offline narration, and cloud voice | [Audio workflows](references/audio-clearervoice-elevenlabs.md) |
16
+ | Code-generated product demos and React motion graphics | [Remotion workflows](references/remotion-workflows.md) |
17
+ | Kinetic typography, HTML animation, and alpha overlays | [HyperFrames workflows](references/hyperframes-workflows.md) |
18
+ | Capture a product walkthrough and time zooms | [Playwright capture](references/playwright-demo-capture.md) |
19
+ | Choose easing, staging, and overlay animation | [Motion design](references/motion-design-pipeline.md), [motion timing](references/motion-taste-emil.md) |
20
+ | Editable multitrack timelines and headless preview renders | [Kdenlive workflows](references/kdenlive-cli-and-mcp.md) |
21
+
22
+ ## Prepare, render, and verify
23
+
24
+ 1. Identify the requested output, input media, target aspect ratio, and any caption or timing needs. Probe the source with `cleoedits run ffprobe -- <arguments>`. Keep original paths intact.
25
+ 2. Create a job folder under `pipeline/work/` for intermediates. Use FFmpeg for routine trimming and mixing, Auto-Editor for silence cuts, or WhisperX for word-aligned timing. Choose a generator only when the edit needs code-built visuals.
26
+ 3. Use `cleoedits run skill-script -- <relative-script-path> <arguments>` for bundled skill helpers. Pass paths within the skill's `scripts/` directory. Render overlays with alpha when the next stage needs transparency.
27
+ 4. Use `pipeline/exports/` for final renders. Check duration, resolution, audio, title-safe positioning, and frames at cuts or transitions. When delivering a Kdenlive project, preserve its linked media and any existing timeline edits.
28
+
29
+ Keep media local by default. Identify the provider and check whether the user has authorized the upload and any paid generation before calling a cloud service.
@@ -0,0 +1,41 @@
1
+ {
2
+ "template": "audiogram",
3
+ "output": "$OUTPUT",
4
+ "clips": [
5
+ {
6
+ "src": "$INPUT"
7
+ }
8
+ ],
9
+ "brand": "$BRAND",
10
+ "audiogram": {
11
+ "image": "$IMAGE",
12
+ "style": "waveform",
13
+ "position": "strip"
14
+ },
15
+ "captions": {
16
+ "text": "$CUES",
17
+ "size": 20,
18
+ "position": "bottom",
19
+ "margin": 14
20
+ },
21
+ "graphics": [
22
+ {
23
+ "template": "lower-third",
24
+ "name": "$TITLE",
25
+ "start": 1,
26
+ "end": 6
27
+ }
28
+ ],
29
+ "loudness": {
30
+ "lufs": -14,
31
+ "tp": -1
32
+ },
33
+ "export": {
34
+ "preset": "youtube",
35
+ "normalize": true
36
+ },
37
+ "check": {
38
+ "platform": "youtube",
39
+ "content": true
40
+ }
41
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "template": "facebook",
3
+ "output": "$OUTPUT",
4
+ "clips": [
5
+ {
6
+ "src": "$INPUT"
7
+ }
8
+ ],
9
+ "frame": {
10
+ "aspect": "16:9",
11
+ "fit": "pad"
12
+ },
13
+ "brand": "$BRAND",
14
+ "captions": {
15
+ "text": "$CUES",
16
+ "animate": "none",
17
+ "karaoke": false,
18
+ "size": 20,
19
+ "position": "bottom",
20
+ "margin": 14
21
+ },
22
+ "graphics": [
23
+ {
24
+ "template": "lower-third",
25
+ "name": "$TITLE",
26
+ "start": 1,
27
+ "end": 6
28
+ }
29
+ ],
30
+ "overlays": [
31
+ {
32
+ "image": "$LOGO",
33
+ "position": "top-left"
34
+ }
35
+ ],
36
+ "loudness": {
37
+ "lufs": -14,
38
+ "tp": -1.0
39
+ },
40
+ "export": {
41
+ "preset": "facebook",
42
+ "normalize": true
43
+ },
44
+ "check": {
45
+ "platform": "facebook",
46
+ "content": true
47
+ }
48
+ }