commit e9cef431e4a3b9f035e336a98ecb558171697c06
parent c325f82ebc892c5af86efe879d07ef08c42af168
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Thu, 5 Nov 2026 03:02:18 -0500
umtool: Reads and voices also queues the cut-wide post passes -- fill every post's context from its capture (posts context) and gather each conversation (timeline threads --write)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/umtool/app/api/report/pronunciation/route.ts b/umtool/app/api/report/pronunciation/route.ts
@@ -21,7 +21,7 @@ export const dynamic = "force-dynamic";
// { project, op: "redact-add", term, substring?, note? } posts redact <p> add "<term>" [--substring] [--note]
// { project, op: "redact-remove", n } posts redact <p> remove <n>
// { project, op: "slurs", verb: on|off|level|visual|voice|add|except|remove, value? } posts slurs <p> <verb> [value]
-// { project, op: "queue-narrate", what: "scripts" | "takes" } QUEUED (lib/queue/, /jobs): posts narrate <p> --all
+// { project, op: "queue-narrate", what: "scripts" | "takes" | "context" | "threads" } QUEUED (lib/queue/, /jobs): posts narrate <p> --all
// --draft-scripts | --all --take -- long, so a step of
// the queue, never a request held open; the argv is built
// here, never taken from the page
@@ -86,11 +86,16 @@ export async function POST(request: Request) {
if (!["on", "off", "level", "visual", "voice", "add", "except", "remove"].includes(verb)) return Response.json({ error: "slurs: on, off, level, visual, voice, add, except or remove" }, { status: 400 });
r = await posts(["slurs", project.id, verb, ...(verb === "on" || verb === "off" ? [] : [s("value")])]);
} else if (b.op === "queue-narrate") {
- const what = b.what === "takes" ? "takes" : "scripts";
+ // Also the cut-wide post passes that are terminal-only otherwise: fill each item's context from its capture
+ // (posts context), gather each conversation together (timeline threads --write).
+ const what = b.what === "takes" ? "takes" : b.what === "context" ? "context" : b.what === "threads" ? "threads" : "scripts";
+ const argv =
+ what === "context" ? ["posts", "context", project.id] : what === "threads" ? ["timeline", project.id, "threads", "--write"] : ["posts", "narrate", project.id, "--all", what === "takes" ? "--take" : "--draft-scripts"];
+ const words = { scripts: "draft every post script", takes: "read every missing post take", context: "fill every post's context from its capture", threads: "gather each conversation" }[what];
try {
const step = (await addStep(queueDir(), {
- argv: ["posts", "narrate", project.id, "--all", what === "takes" ? "--take" : "--draft-scripts"],
- label: what === "takes" ? `read every missing post take of ${project.id}` : `draft every post script of ${project.id}`,
+ argv,
+ label: `${words} of ${project.id}`,
target: { project: project.id, take: null },
by: "the umtool app (Reads and voices)",
})) as { qid: string };
diff --git a/umtool/components/projects/PronunciationPanel.tsx b/umtool/components/projects/PronunciationPanel.tsx
@@ -246,6 +246,12 @@ export default function PronunciationPanel({ project }: { project: string }) {
<button type="button" data-narrate-all-queue="takes" disabled={busy} onClick={() => void post({ op: "queue-narrate", what: "takes" }).then((j) => setQueued((j?.json as { queued?: string } | null)?.queued ?? null))} className={buttonVariants({ variant: "outline", size: "sm" })} title="umtool posts narrate <p> --all --take, as a queue step (resumable)">
Queue: read every missing take
</button>
+ <button type="button" data-narrate-all-queue="context" disabled={busy} onClick={() => void post({ op: "queue-narrate", what: "context" }).then((j) => setQueued((j?.json as { queued?: string } | null)?.queued ?? null))} className={buttonVariants({ variant: "quiet", size: "sm" })} title="umtool posts context <p>, as a queue step: each item's quoted and replied-to posts from its capture">
+ Queue: fill context from captures
+ </button>
+ <button type="button" data-narrate-all-queue="threads" disabled={busy} onClick={() => void post({ op: "queue-narrate", what: "threads" }).then((j) => setQueued((j?.json as { queued?: string } | null)?.queued ?? null))} className={buttonVariants({ variant: "quiet", size: "sm" })} title="umtool timeline <p> threads --write, as a queue step: each conversation's posts together">
+ Queue: gather conversations
+ </button>
{queued && (
<span className="text-text-2" data-narrate-all-queued={queued}>
queued {queued} —{" "}