@lalalic/markcut 2.1.0 → 2.2.1

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 (46) hide show
  1. package/package.json +3 -2
  2. package/{SKILL.md → skills/markcut/SKILL.md} +8 -2
  3. package/skills/markcut/docs/template.md +213 -0
  4. package/{templates → skills/markcut/docs/templates}/courseware/TEMPLATE.md +220 -10
  5. package/{templates → skills/markcut/docs/templates}/courseware/prompts/outline.md +5 -0
  6. package/{templates → skills/markcut/docs/templates}/courseware/prompts/scene.md +6 -0
  7. package/skills/markcut/docs/templates/deep-dive/TEMPLATE.md +355 -0
  8. package/skills/markcut/docs/templates/deep-dive/agents/researcher.md +69 -0
  9. package/skills/markcut/docs/templates/deep-dive/agents/reviewer.md +108 -0
  10. package/skills/markcut/docs/templates/deep-dive/prompts/fix.md +28 -0
  11. package/skills/markcut/docs/templates/deep-dive/prompts/outline.md +102 -0
  12. package/skills/markcut/docs/templates/deep-dive/prompts/script.md +64 -0
  13. package/skills/markcut/docs/templates/illustrated-book/TEMPLATE.md +360 -0
  14. package/skills/markcut/docs/templates/illustrated-book/agents/reviewer.md +115 -0
  15. package/skills/markcut/docs/templates/illustrated-book/prompts/fix.md +29 -0
  16. package/skills/markcut/docs/templates/illustrated-book/prompts/illustration.md +35 -0
  17. package/skills/markcut/docs/templates/illustrated-book/prompts/story.md +69 -0
  18. package/skills/markcut/docs/templates/short-film/TEMPLATE.md +387 -0
  19. package/skills/markcut/docs/templates/short-film/agents/reviewer.md +115 -0
  20. package/skills/markcut/docs/templates/short-film/prompts/fix.md +29 -0
  21. package/skills/markcut/docs/templates/short-film/prompts/screenplay.md +101 -0
  22. package/skills/markcut/docs/templates/short-film/prompts/storyboard.md +54 -0
  23. package/skills/markcut/docs/templates/short-video/TEMPLATE.md +302 -0
  24. package/skills/markcut/docs/templates/short-video/agents/reviewer.md +94 -0
  25. package/skills/markcut/docs/templates/short-video/prompts/fix.md +27 -0
  26. package/skills/markcut/docs/templates/short-video/prompts/script.md +65 -0
  27. package/skills/markcut/docs/templates/vlog/TEMPLATE.md +405 -0
  28. package/skills/markcut/docs/templates/vlog/agents/reviewer.md +89 -0
  29. package/skills/markcut/docs/templates/vlog/agents/story-writer.md +100 -0
  30. package/skills/markcut/docs/templates/vlog/prompts/bgm-select.md +38 -0
  31. package/skills/markcut/docs/templates/vlog/prompts/group-clips.md +93 -0
  32. package/skills/markcut/docs/templates/vlog/prompts/local-context.md +59 -0
  33. package/skills/markcut/docs/templates/vlog/prompts/outline.md +56 -0
  34. package/skills/markcut/docs/templates/vlog/prompts/review-fix.md +27 -0
  35. package/skills/markcut/docs/templates/vlog/prompts/storyboard.md +41 -0
  36. package/src/config.mjs +11 -3
  37. package/src/player/bundle/player.js +793 -545
  38. package/src/player/pipeline.mjs +1 -0
  39. package/src/player/server.mjs +3 -5
  40. /package/{docs → skills/markcut/docs}/edit-mode.md +0 -0
  41. /package/{docs → skills/markcut/docs}/json-descriptive.md +0 -0
  42. /package/{docs → skills/markcut/docs}/label-mode.md +0 -0
  43. /package/{docs → skills/markcut/docs}/markdown-descriptive.md +0 -0
  44. /package/{docs → skills/markcut/docs}/system-prompt-edit.md +0 -0
  45. /package/{templates → skills/markcut/docs/templates}/courseware/agents/reviewer.md +0 -0
  46. /package/{templates → skills/markcut/docs/templates}/courseware/prompts/fix.md +0 -0
@@ -982,6 +982,7 @@ var DEFAULT_VTT_CLI = process.env.MARKCUT_VTT_CLI || `uvx --from mlx-vlm mlx_vlm
982
982
  var DEFAULT_STT_CLI = process.env.MARKCUT_STT_CLI || 'uvx --from openai-whisper whisper "{input}" --output_format vtt --output_dir "{output}"';
983
983
  var DEFAULT_TTS_CLI = process.env.MARKCUT_TTS_CLI || 'uvx edge-tts --voice "en-US-GuyNeural" --text "{input}" --write-media "{output}"';
984
984
  var DEFAULT_AGENT_CLI = process.env.MARKCUT_AGENT_CLI || "npx pi -p {prompt}";
985
+ var DEFAULT_EDIT_CLI = process.env.MARKCUT_EDIT_CLI || "npx pi --session-id {sessionid} --system-prompt {systemprompt} -p {prompt}";
985
986
  var DEFAULT_TTI_CLI = process.env.MARKCUT_TTI_CLI || 'uvx --from mflux mflux-generate-flux2 --model flux2-klein-4b --steps 5 --prompt "{input}" --output "{output}"';
986
987
  var DEFAULT_TTV_CLI = process.env.MARKCUT_TTV_CLI || "";
987
988
 
@@ -17,7 +17,7 @@ import { fileURLToPath } from "node:url";
17
17
  import { isDescriptiveRoot, resolveAndCompile, resolveAndCompileMarkdown, parseImportsBlock, extractDependencySpecs } from "./pipeline.mjs";
18
18
  import { bundleFromEntries } from "./bundler.mjs";
19
19
  import { extractScenes, MIME, serveFile, handleShutdown } from "./server-shared.mjs";
20
- import { DEFAULT_AGENT_CLI } from "../config.mjs";
20
+ import { DEFAULT_EDIT_CLI } from "../config.mjs";
21
21
 
22
22
 
23
23
  const __dirname = dirname(fileURLToPath(import.meta.url));
@@ -149,7 +149,7 @@ function handleAgentLine(obj) {
149
149
  function startAgentProcess() {
150
150
  if (!MODE_EDIT) return;
151
151
 
152
- const agentCli = process.env.MARKCUT_AGENT_CLI || DEFAULT_AGENT_CLI;
152
+ const agentCli = process.env.MARKCUT_EDIT_CLI || DEFAULT_EDIT_CLI;
153
153
 
154
154
  const fileLabel = VIDEO_JSON.split("/").pop();
155
155
  const sessionId = VIDEO_JSON.replace(/[^a-zA-Z0-9\-_.]/g, "_").replace(/^[^a-zA-Z0-9]+/, "").replace(/[^a-zA-Z0-9]+$/, "");
@@ -929,9 +929,7 @@ const server = createServer(async (req, res) => {
929
929
  return;
930
930
  }
931
931
 
932
- // API: Edit — spawn agent CLI to edit the .md source file
933
- // Uses the configured agent CLI (DEFAULT_AGENT_CLI) in one-shot mode.
934
- // The agent receives the system prompt + edit request and outputs JSON.
932
+ // API: Edit — send prompt to the persistent rpc agent (startAgentProcess)
935
933
  if (path === "/api/edit" && req.method === "POST") {
936
934
  let body = "";
937
935
  req.on("data", c => body += c);
File without changes
File without changes