Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit bddd20472b20f0238c1481ec151fa159b834081f
parent 4275ce24fc1d9b77e14f9082e642a2f11e389921
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon, 19 Oct 2026 13:43:31 -0400

clips: --keep-cut -- the editor's re-analysis of a project already cut lists the new proposals and leaves the cut as it is

A `mode: "new"` call that finds an existing project for the recording runs
`clips analyze --keep-cut`: every clip of the recording protected, every
proposal not on an existing clip unused, the timeline returned as it was
(not even re-sorted) -- so a re-cut keeps every clip, the assistant's
untouched ones included, and the chat's proposals show in the clip editor's
unused list. `umtool clips analyze|propose --keep-cut` and the job's
`keepCut` do the same by hand. The seed's note says YouTube.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Meditor/CHANGELOG.md | 2+-
Mplans/FACTS.md | 4+++-
Mumtool/docs/cli.md | 2+-
Mumtool/docs/report-video.md | 4+++-
Mumtool/lib/projects/scaffold.mjs | 3++-
Mumtool/lib/report/clipsNew.mjs | 13+++++++------
Mumtool/lib/report/reactions-r36.test.mjs | 31++++++++++++++++++++++++++++++-
Mumtool/lib/report/reactions.mjs | 27+++++++++++++++++----------
8 files changed, 64 insertions(+), 22 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -2,7 +2,7 @@ ## [Unreleased] - **The clip finder finds each narrated video in a reaction stream, and listens to the chat.** A stream that reacts to one video and then another no longer needs its scope read off the speakers by hand: `umtool new <slug> --seed reactions --from <channel>/<id> --scope auto` reads the narrated video the speaker turns show (`--segment s2` names one, else the longest), with the host's reaction after the video kept and the roles found for that video alone; `umtool clips segments <project>` lists them. When the stream's chat replay is on disk, the moments the chat laughs together (lol, KEKW, πŸ˜‚, a wall of W) become proposals too, moved back by how late the chat types β€” found by lining the chat up against the laughs heard in the sound, else 6 seconds β€” and always ranked below the host's own laugh; the analysis says the delay it found. Without a chat replay nothing changes. Needs a restart of umtool. -- **Highlights of a channel that is on no site link the source and start with a clean look.** Each proposed clip links its platform page at its second (YouTube, Twitch, Rumble…), the channel's name is filled in from the video, and the cut starts with no header, no QR code, half-second fades through black and a βˆ’16 LUFS loudness target β€” no edits to the manifest needed. umtool's clips job also answers the editor directly (its `WORKER_TOKEN`), so the editor's Find clips makes or re-analyzes the project in one call; asking again for a video already cut analyzes that project again and keeps every clip you touched. +- **Highlights of a channel that is on no site link the source and start with a clean look.** Each proposed clip links its platform page at its second (YouTube, Twitch, Rumble…), the channel's name is filled in from the video, and the cut starts with no header, no QR code, half-second fades through black and a βˆ’16 LUFS loudness target β€” no edits to the manifest needed. umtool's clips job also answers the editor directly (its `WORKER_TOKEN`), so the editor's Find clips makes or re-analyzes the project in one call; asking again for a video already cut analyzes that project again and leaves its cut exactly as it is, listing the new proposals (the chat's among them) for you to bring in. - **A report video's cut can dip through black between clips.** `render.transitionStyle: "fadeblack"` (or `fadewhite`, `dissolve`; default `fade`) changes how the crossfade looks, not its length β€” for highlights where every clip shares one layout and a plain dissolve hides the jump. - **Hop in on an assistant's clips in umtool: trim, split, merge, keep or cut them, and comment.** A report video whose cut is not a montage has a **Clip editor** on its Cut tab (`/projects/<id>/clips`). It loops the selected clip from what is on disk, and under it shows the clip's neighbourhood (Β± 60 s, or closer): the speaker turns coloured host and subject, the laughs, the words, the other clips, and the cut with a handle at each edge. Move the edges by dragging, typing, nudging (Β±0.1, Β±0.5, Β±2 s) or **Snap to words**; **Keep** / **Cut**; **Split here** at the playhead; **Merge with next**; **Add a clip** from a span dragged on the strip; **Restore the assistant's version**; **Bring in** a proposal the assistant left out. Each clip says whether it is "by the assistant" (with its score and why) or "edited by you", with its edit history. A comment on a clip is a note anchored to it, so an agent reading `umtool notes` can act on it and its reply shows in the clip's thread. **This is the host** on a speaker's turn corrects which voice is the host. Keys: space, J/L, I/O, S, M, K, X, ←/β†’. A keep or cut follows its clip when an edit moves the clip's start. It works on any report video; a cut without the clip finder's speakers simply has no colours. - **Fetch a montage's windows from umtool, and swap in another upload when Rumble refuses one.** A report video's Cut tab and its clip deck have **Fetch windows**: one button asks the editor for every clip's window (a dry run first β€” how many per platform, how many already on disk β€” then Start, with each job followed to its end and each refused window named); `umtool fetch <project>` does the same from a terminal. When a window is refused for good (a Rumble video whose lookup answers 403 every time, a deleted recording), the clip deck offers a **stand-in** β€” the same moment in the stream's YouTube upload (or Odysee) β€” and **Use stand-in** switches the clip, noting where it came from; **Restore** puts it back. `umtool fallback <project>` is the terminal form. Every run is kept in the project's `fetch-runs.json`. diff --git a/plans/FACTS.md b/plans/FACTS.md @@ -10833,7 +10833,9 @@ parsed to 0 cues, indexing the video textless) is CLOSED by `200a3105` (transcri wordsPath? (absolute)}` β†’ `planClipsNew` (`umtool/lib/report/clipsNew.mjs`): 409 while any umtool job runs; the recording loaded (404 no video dir, 400 no diarization); the span chosen; the reactions projects under REPORTS_ROOT with the same `source.channel/video` whose `params.scope` covers the span (`scopeOverlapsSegment`), best overlap then - latest `proposedAt` β†’ that project, untouched but for `words.json` copied in when it has none (`created: false`); + latest `proposedAt` β†’ that project, untouched but for `words.json` copied in when it has none, analyzed with + `--keep-cut` (`created: false`; keepCut = every clip of the recording protected, every proposal not on an existing + clip `used: false`, the timeline returned as it was β€” not even re-sorted); else `scaffoldReportVideo({slug, seed: "reactions", scope, segment, target})` (409 when the slug exists) + the words copied (`created: true`); then ONE job `clips analyze <id>` β†’ `{ok, jobId, job, project, created, segments, segment (the chosen one's id), scope (the project's params.scope), href "/projects/<id>/clips", notes}`. GET diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md @@ -47,7 +47,7 @@ Inbox cannot disagree about what is wrong with one. | `fallback <project> --dry-run [--json]` Β· `fallback <project> [--clip <id> …] [--json]` Β· `fallback <project> --restore <clipId>` | **stand-ins** (the clip deck's **Use stand-in** / **Restore**): a montage clip whose window a fetch run says the editor refused, and is not on disk, switched to its phrase-scan instance's first public alternate (YouTube, then Odysee / cornbreadman, then the rest) β€” recorded on the clip as `fallbackFrom`, its ruling and voice-match row moved with it; `--restore` puts it back. An older `phrase-scan.json` with no `alternates` is scanned again. **Exit 1** when a named clip has no stand-in | | `phrases "<phrase>" ["<phrase>" …] --channels a,b [--prefer c] [--exclude RE] [--words \| --regex] [--samples N] [--no-cache] [--json \| --full]` | the phrase finder's search ([tools.md](tools.md#the-phrase-finder-toolsphrases)): every phrase in one pass, each with its count once folded, by year, the preferred channel's share or Rumble's, speaker changes, sample contexts. Plain words become a tolerant pattern unless the phrase holds a regular expression's characters. `--json` the numbers, `--full` every instance; `--spec FILE --out FILE --progress` is the page's job form. **Exit 1** on a bad phrase | | `voice-match <project> [--reference auto\|rulings\|recordings] [--reference-video <channel>/<id> …] [--reference-channel <slug> …] [--instances FILE] [--span phrase\|cut] [--pad S] [--likely X --unlikely Y] [--out FILE] [--dry] [--json] [--progress ndjson]` | who is speaking, per montage clip: a local speaker-similarity score (TitaNet-small) against the host's voice β†’ `<project>/voice-match.json` (the Cut tab's **Score the voices**); `--instances` also scores a phrase scan's instances not in the manifest; `--dry` prints the plan ([report-video.md](report-video.md#who-is-speaking-the-voice-match)) | -| `clips analyze <project> [--from <channel>/<id>] [--rescan] [--no-laughs] [--no-voices] [params] [--words FILE] [--progress ndjson] [--json]` Β· `clips propose <project> [--from <channel>/<id>] [--host N] [params] [--words FILE] [--dry] [--json]` Β· `clips show <project> [--json]` Β· `clips segments <project> [--json]` | the **clip finder** on a long recording ([report-video.md](report-video.md#highlights-the-clip-finder)): `analyze` runs the laugh scan (CED-mini) and a voice centroid per speaker on the recording's sound (cached in `<project>/scans/`), then proposes; `propose` proposes again from what is there (after a role flip, a param change, new words); `show` prints the speakers, laughs and the cut. Params `--target S` (600) `--laugh-min X` (0.25) `--merge-gap S` (6) `--setup-max S` (20) `--clip-max S` (75) and the scope `--scope FROM:TO` (either side may be empty; `all` clears it) or `--from S --to S` with numbers (a `--from` that is a `<channel>/<id>` names the recording), kept in `reactions.json`; `--host N` is your word on the host, kept. **`--scope auto`** reads the narrated video auto-scope finds in the speaker turns (`--segment sN` names one, else the longest); `segments` lists them. A chat replay beside the recording (`live_chat.cues.json`) adds chat-burst moments and the log names the chat's lag. A channel on no site gets each clip linked to its platform page (`citeUrl`). A clip you edited, ruled, locked or added is never moved. **Exit 2** with no `diarization.json` (the message names the `archilyzer diarize backfill` to run) | +| `clips analyze <project> [--from <channel>/<id>] [--rescan] [--no-laughs] [--no-voices] [params] [--words FILE] [--progress ndjson] [--json]` Β· `clips propose <project> [--from <channel>/<id>] [--host N] [params] [--words FILE] [--dry] [--json]` Β· `clips show <project> [--json]` Β· `clips segments <project> [--json]` | the **clip finder** on a long recording ([report-video.md](report-video.md#highlights-the-clip-finder)): `analyze` runs the laugh scan (CED-mini) and a voice centroid per speaker on the recording's sound (cached in `<project>/scans/`), then proposes; `propose` proposes again from what is there (after a role flip, a param change, new words); `show` prints the speakers, laughs and the cut. Params `--target S` (600) `--laugh-min X` (0.25) `--merge-gap S` (6) `--setup-max S` (20) `--clip-max S` (75) and the scope `--scope FROM:TO` (either side may be empty; `all` clears it) or `--from S --to S` with numbers (a `--from` that is a `<channel>/<id>` names the recording), kept in `reactions.json`; `--host N` is your word on the host, kept. `--keep-cut` proposes without touching the cut (nothing moved, removed or added; the proposals are listed). **`--scope auto`** reads the narrated video auto-scope finds in the speaker turns (`--segment sN` names one, else the longest); `segments` lists them. A chat replay beside the recording (`live_chat.cues.json`) adds chat-burst moments and the log names the chat's lag. A channel on no site gets each clip linked to its platform page (`citeUrl`). A clip you edited, ruled, locked or added is never moved. **Exit 2** with no `diarization.json` (the message names the `archilyzer diarize backfill` to run) | A project argument is an exact id, a directory, or a **unique** basename. Two projects answering to one name is reported, never resolved by picking one. diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md @@ -1097,7 +1097,9 @@ to]), segment?, wordsPath?}` with `Authorization: Bearer <WORKER_TOKEN>` (no header is the app's own page; any other is a 401) β€” the editor's **Find clips**. A reactions project for the same recording whose scope covers the chosen segment is analyzed again as it is (`created: false`: its scope, its params and -every clip you touched stay); else `slug` is made with the reactions seed and +its cut stay β€” the pass runs with `--keep-cut`, so no clip is moved, removed or +added and the new proposals, the chat's among them, are listed unused for the +clip editor's Bring in); else `slug` is made with the reactions seed and `wordsPath` copied in as `words.json` (`created: true`). Either way `clips analyze` runs as one job: `{jobId, job, project, created, segments, segment, scope, href, notes}`; `GET ?job=<id>` follows it. diff --git a/umtool/lib/projects/scaffold.mjs b/umtool/lib/projects/scaffold.mjs @@ -409,7 +409,8 @@ export async function scaffoldReportVideo({ root, slug, title, from = null, site // even loudness (render.loudness is lane C's; until its validator lands it // is a key the build ignores). Object.assign(doc.render, SITELESS_LOOK, { loudness: { ...SITELESS_LOOK.loudness } }); - notes.push(`no site carries ${src.channel}: each clip links ${pass.rec.meta?.extractor ?? "its platform"}'s page at its second (citeUrl); the look: no header, no QR, ${SITELESS_LOOK.transition} s fades through black, ${SITELESS_LOOK.loudness.target} LUFS`); + const platform = /^youtube/i.test(pass.rec.meta?.extractor ?? "") ? "YouTube" : pass.rec.meta?.extractor ?? "its platform"; + notes.push(`no site carries ${src.channel}: each clip links ${platform}'s page at its second (citeUrl); the look: no header, no QR, ${SITELESS_LOOK.transition} s fades through black, ${SITELESS_LOOK.loudness.target} LUFS`); } else { // Hard cuts: a highlights reel. doc.render.transition = 0; diff --git a/umtool/lib/report/clipsNew.mjs b/umtool/lib/report/clipsNew.mjs @@ -9,10 +9,11 @@ // longest; `[from, to]` is a scope by hand; "all" the whole // a project already made for the same recording whose scope covers the // chosen one (scopeOverlapsSegment) is analyzed AGAIN, as it -// is β€” its scope, its params, every clip the operator touched, -// ruled or locked kept (the proposal pass's rules) β†’ -// `created: false`; else a new project `slug` is scaffolded -// with the reactions seed β†’ `created: true` +// is β€” its scope, its params, and its cut: `--keep-cut`, so +// no clip is moved, removed or added and the new proposals +// (the chat's among them) are listed unused for the clip +// editor β†’ `created: false`; else a new project `slug` is +// scaffolded with the reactions seed β†’ `created: true` // the words `wordsPath` (an absolute path to a words file, `{words: // [{w, start, end}]}` as `pnpm ops transcribe {words: true, // out}` writes) is copied in as <project>/words.json β€” into @@ -145,7 +146,7 @@ export async function planClipsNew(body, { reportsRoot = REPORTS_ROOT, channelsD if (existing) { project = { id: existing.id, dir: existing.dir, kind: existing.kind }; created = false; - notes.push(`${existing.id} already reads this part of ${req.channel}/${req.video}: analyzed again, its scope and the clips you touched kept`); + notes.push(`${existing.id} already reads this part of ${req.channel}/${req.video}: analyzed again with its scope and its cut kept as they are (the new proposals are listed, unused)`); if (req.wordsPath) { if (await stat(path.join(project.dir, WORDS_FILE)).then(() => true, () => false)) notes.push(`${WORDS_FILE} kept (the project has one)`); else { @@ -181,7 +182,7 @@ export async function planClipsNew(body, { reportsRoot = REPORTS_ROOT, channelsD } } const doc = await readReactions(project.dir); - const plan = clipsSteps(project, { mode: "analyze" }); + const plan = clipsSteps(project, { mode: "analyze", ...(created ? {} : { keepCut: true }) }); return { project, created, diff --git a/umtool/lib/report/reactions-r36.test.mjs b/umtool/lib/report/reactions-r36.test.mjs @@ -220,7 +220,7 @@ test("a channel on no site: each clip links its platform page, provenance.channe { headerHeight: m.render.headerHeight, footerHeight: m.render.footerHeight, qr: m.render.qr, transition: m.render.transition, transitionStyle: m.render.transitionStyle, loudness: m.render.loudness }, { ...SITELESS_LOOK, loudness: { target: -16 } }, ); - assert.ok(r.notes.some((n) => /no site carries synth-reacts: each clip links Youtube's page/.test(n)), r.notes.join("\n")); + assert.ok(r.notes.some((n) => /no site carries synth-reacts: each clip links YouTube's page/.test(n)), r.notes.join("\n")); // The build's validators and lint take it (render.loudness is a key they do not refuse). const lint = lintManifest(m, { validators: true }); assert.deepEqual(lint.errors.filter((e) => /loudness|transition|qr|render/i.test(e)), []); @@ -267,3 +267,32 @@ test("a channel on a public site, or a recording with no watch page: no links wr await rm(g.root, { recursive: true, force: true }); } }); + +test("--keep-cut: a pass that lists without touching the cut β€” no clip moved, removed or added; the editor's re-analysis uses it", async () => { + const f = await fixture({ chat: true }); + try { + const r = await scaffoldReportVideo({ root: f.reportsRoot, slug: "kept", from: "synth-reacts/react001", seed: "reactions", channelsDir: f.channelsDir, segment: "s1", target: 60, sitesDir: f.sitesDir }); + await pointAt(r.dir, f.channelsDir); + const mf = path.join(r.dir, "video.manifest.json"); + const before = await readFile(mf, "utf8"); + const q = quiet(); + assert.equal(await clipsCommand(["propose", "kept", "--keep-cut", "--target", "900"], { reportsRoot: f.reportsRoot, ...q }), 0, q.lines.join("\n")); + assert.deepEqual(JSON.parse(await readFile(mf, "utf8")).timeline, JSON.parse(before).timeline); + const doc = await readReactions(r.dir); + const clipIds = JSON.parse(before).timeline.map((c) => c.id).sort(); + assert.deepEqual(doc.proposals.filter((p) => p.used).map((p) => p.clipId).sort(), clipIds); + assert.ok(doc.proposals.some((p) => !p.used), "the rest listed, unused"); + assert.match(q.lines.join("\n"), /clips \+0 ~0 -0/); + // Without it, the larger target adds clips. + assert.equal(await clipsCommand(["propose", "kept", "--target", "900"], { reportsRoot: f.reportsRoot, ...quiet() }), 0); + assert.ok(JSON.parse(await readFile(mf, "utf8")).timeline.length > clipIds.length); + // The job step carries it; the editor's re-analysis of an existing project asks for it. + assert.ok(clipsSteps({ id: "kept" }, { mode: "analyze", keepCut: true }).steps[0].argv.includes("--keep-cut")); + const { planClipsNew } = await import("./clipsNew.mjs"); + const again = await planClipsNew({ mode: "new", slug: "kept-2", from: "synth-reacts/react001", segment: "s1" }, { reportsRoot: f.reportsRoot, channelsDir: f.channelsDir, sitesDir: f.sitesDir }); + assert.equal(again.created, false); + assert.ok(again.plan.steps[0].argv.includes("--keep-cut")); + } finally { + await rm(f.root, { recursive: true, force: true }); + } +}); diff --git a/umtool/lib/report/reactions.mjs b/umtool/lib/report/reactions.mjs @@ -263,10 +263,13 @@ function scanInputs(scans) { * @param {{ rec: any, scans?: any, params?: Record<string, unknown>, operator?: Record<string, string>, previous?: any, * timeline?: any[], isProtected?: (e: any) => boolean, audio?: { path: string, kind: string } | null, now?: Date }} o */ -export function proposalPass({ rec, scans = null, params = {}, operator = {}, previous = null, timeline = [], isProtected = () => false, audio = null, now = new Date(), citeUrlAt = null }) { +export function proposalPass({ rec, scans = null, params = {}, operator = {}, previous = null, timeline = [], isProtected = () => false, audio = null, now = new Date(), citeUrlAt = null, keepCut = false }) { const { laughScan, centroids, laughVoices } = scanInputs(scans); const segments = recordingSegments(rec, operator); - const fixed = fixedClips(timeline, { channel: rec.channel, video: rec.video, isProtected }); + // `keepCut` (release 36: the editor's Find clips on a project already cut): + // every clip stays as it is and nothing is added β€” the pass only lists. + const guard = keepCut ? () => true : isProtected; + const fixed = fixedClips(timeline, { channel: rec.channel, video: rec.video, isProtected: guard }); const a = analyze({ turns: rec.turns, duration: rec.duration, @@ -280,7 +283,8 @@ export function proposalPass({ rec, scans = null, params = {}, operator = {}, pr fixed, chat: rec.chat ?? null, }); - const applied = applyProposals(timeline, { proposals: a.proposals, channel: rec.channel, video: rec.video, duration: a.duration, words: cleanWords(rec.words), isProtected, citeUrlAt }); + const proposals = keepCut ? a.proposals.map((p) => (p.fixedClip ? p : { ...p, used: false })) : a.proposals; + const applied = applyProposals(timeline, { proposals, channel: rec.channel, video: rec.video, duration: a.duration, words: cleanWords(rec.words), isProtected: guard, citeUrlAt }); const madeAt = now.toISOString(); const doc = { version: 1, @@ -310,7 +314,8 @@ export function proposalPass({ rec, scans = null, params = {}, operator = {}, pr madeAt: previous?.madeAt ?? madeAt, proposedAt: madeAt, }; - return { doc, timeline: applied.timeline, changes: applied.changes, analysis: a }; + // Kept means kept: not even re-sorted. + return { doc, timeline: keepCut ? timeline : applied.timeline, changes: applied.changes, analysis: a }; } // ---- site-less links (release 36 B3) --------------------------------------------------- @@ -462,7 +467,7 @@ export async function seedReactions({ channelsDir, channel, video, target, laugh * @param {{ project: { id: string, dir: string }, from?: { channel: string, video: string } | null, params?: Record<string, unknown>, * host?: number | null, wordsFile?: string | null, scans?: any, audio?: any, dry?: boolean, now?: Date }} o */ -export async function proposeProject({ project, from = null, params = {}, host = null, wordsFile = null, scans = undefined, audio = null, engine = null, dry = false, now = new Date(), say = () => {}, sitesDir = SITES_DIR }) { +export async function proposeProject({ project, from = null, params = {}, host = null, wordsFile = null, scans = undefined, audio = null, engine = null, dry = false, now = new Date(), say = () => {}, sitesDir = SITES_DIR, keepCut = false }) { for (let attempt = 0; ; attempt += 1) { const token = await manifestToken(project.dir); const manifest = await readManifest(project.dir); @@ -484,7 +489,7 @@ export async function proposeProject({ project, from = null, params = {}, host = const s = scans === undefined ? await readScans(project.dir, rec.channel, rec.video) : scans; const isProtected = await rulingsGuard(project.dir, manifest); const citeUrlAt = await siteLessLinks(rec, manifest, { sitesDir }); - const passOf = (sc) => proposalPass({ rec, scans: sc, params: merged, operator, previous: sameSource ? previous : null, timeline: manifest.timeline ?? [], isProtected, audio, now, citeUrlAt }); + const passOf = (sc) => proposalPass({ rec, scans: sc, params: merged, operator, previous: sameSource ? previous : null, timeline: manifest.timeline ?? [], isProtected, audio, now, citeUrlAt, keepCut }); let pass = passOf(s); // Each laugh's voice (release 35, the live case): embedded once and kept in // the voices scan, so a pass with a new laughMin or scope embeds only the new ones. @@ -547,8 +552,8 @@ export function mergeParams(prev, given = {}) { // ---- the CLI ---------------------------------------------------------------------- export const CLIPS_USAGE = [ - "usage: umtool clips analyze <project> [--from <channel>/<id>] [--rescan] [--no-laughs] [--no-voices] [params] [--progress ndjson] [--json]", - " umtool clips propose <project> [--from <channel>/<id>] [--host N] [params] [--words FILE] [--dry] [--json]", + "usage: umtool clips analyze <project> [--from <channel>/<id>] [--rescan] [--no-laughs] [--no-voices] [params] [--keep-cut] [--progress ndjson] [--json]", + " umtool clips propose <project> [--from <channel>/<id>] [--host N] [params] [--words FILE] [--keep-cut] [--dry] [--json]", " umtool clips show <project> [--json]", " umtool clips segments <project> [--json]", "", @@ -565,6 +570,7 @@ export const CLIPS_USAGE = [ " --scope auto: the narrated video found in the speakers' turns (--segment s2 names one, else the longest)", " segments the narrated-video spans auto-scope finds in the recording (where one long-turn speaker holds the floor)", "--host N speaker N is the host (your word: kept until you change it)", + "--keep-cut propose without touching the cut: every clip stays, nothing is added (the proposals are listed)", "A clip you have edited (assist.by \"operator\"), ruled, locked or added is never moved or removed.", "Needs diarization.json beside the recording (archilyzer diarize backfill --scope video:<channel>/<id>).", `Words: <project>/${WORDS_FILE} (pnpm ops transcribe {path, words:true, out}), else the corpus transcript.`, @@ -760,7 +766,7 @@ export async function clipsCommand(args, { reportsRoot = REPORTS_ROOT, log = con } } emit({ phase: "propose" }); - const r = await proposeProject({ project, from, params, host, wordsFile: p.one("--words") ?? null, scans, audio, engine, dry: p.has("--dry"), now, say }); + const r = await proposeProject({ project, from, params, host, wordsFile: p.one("--words") ?? null, scans, audio, engine, dry: p.has("--dry"), now, say, keepCut: p.has("--keep-cut") }); emit({ phase: "done", proposals: r.doc.proposals.length, used: r.doc.proposals.filter((x) => x.used).length, changes: r.changes }); if (p.has("--json")) log(JSON.stringify({ written: r.written, changes: r.changes, reactions: r.doc }, null, 1)); else { @@ -783,7 +789,7 @@ const umtoolCli = () => path.join(/* turbopackIgnore: true */ UMTOOL_DIR, "bin", * running this command, nice'd (the laugh scan is CPU for a few minutes on a * long stream, one thread; the proposal pass is arithmetic). * @param {{ id: string }} project - * @param {{ mode?: "analyze" | "propose", from?: string, target?: number, host?: number, laughMin?: number, scope?: [number, number | null] | "auto" | "all", segment?: string }} [req] + * @param {{ mode?: "analyze" | "propose", from?: string, target?: number, host?: number, laughMin?: number, scope?: [number, number | null] | "auto" | "all", segment?: string, keepCut?: boolean }} [req] */ export function clipsSteps(project, req = {}) { const mode = req.mode === "propose" ? "propose" : "analyze"; @@ -795,6 +801,7 @@ export function clipsSteps(project, req = {}) { if (Array.isArray(req.scope) && num(req.scope[0]) && (req.scope[1] === null || num(req.scope[1]))) argv.push("--scope", `${req.scope[0]}:${req.scope[1] ?? ""}`); else if (req.scope === "auto" || req.scope === "all") argv.push("--scope", req.scope); if (typeof req.segment === "string" && /^s\d+$/.test(req.segment) && req.scope !== "all" && !Array.isArray(req.scope)) argv.push("--segment", req.segment); + if (req.keepCut === true) argv.push("--keep-cut"); argv.push("--progress", "ndjson"); return { kind: `clips-${mode} ${project.id}`,