Cut middle sections: pipeline 'cut' op with ranges, and Cut selection in the review player

オープン
#375 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

Read src/utils/pipelineStep.ts and src/utils/pipelineRun.ts to see how pipeline operations are defined and executed, then trace the keep-list path in src/utils/transcriptCut.ts and inspect the selection and export flow in assets/ui/player.js. Run the existing pipeline tests and add coverage for merging overlapping or unsorted ranges and for the new operation. Done means cuts retime sidecars and keep audio in sync, and the player can add, list, undo, and export multiple cut ranges.

索引モデルが issue の本文から書いたものです。

説明

effort: medium enhancement help wanted priority: high

Summary

Neither the review player nor pipeline can remove a stretch from the middle of a recording. The player has a single IN/OUT pair, and the pipeline trim op keeps one segment. Removing "the 20 s where I typed my password" or "the wrong turn at 1:10" needs a multi-range cut.

Where

  • assets/ui/player.js:168-173, 368-369 (one inI/outI pair, exported as one trim)
  • src/utils/pipelineStep.ts:21-26 (trim: start, end/duration only)
  • src/tools/cutByTranscript.ts:17 (remove cuts ranges, but only by quoting transcript text)
  • src/tools/cutIdle.ts (cuts ranges, but only ones it detects itself)

Details

The cut machinery already exists inside cut_idle and cut_by_transcript (keep-list, concat, audio kept in sync, sidecars retimed), but there is no way to say "remove 12.0-31.5 and 70-74" directly.

Suggested fix

  1. Add a pipeline op { op: "cut", ranges: [{ start, end }, ...] } (and remove on trim if that fits better) that reuses the cut_idle / transcript-cut keep-list path. Markers, event logs, and .edit.json retime the same way.
  2. In the player, add Cut selection: select a range on the timeline and press it (or X) to mark it removed. Removed ranges are shaded, listed, and can be undone. Export sends one cut step after redact and before trim.

Acceptance criteria

  • pipeline accepts cut with overlapping and unsorted ranges, and merges them
  • Output duration = input − removed; audio stays in sync
  • Player can mark, list, and remove several cut ranges, by keyboard as well as by pointer
  • Tests for range merging and the pipeline op

Getting started

  • Relevant files: src/utils/pipelineStep.ts, src/utils/pipelineRun.ts, src/utils/transcriptCut.ts, assets/ui/player.js
  • Run npm run docs after changing the pipeline schema

Filed by repo-audit/feature-ideas at 1ac339f. Severity: high. Effort: M. audit-key: enhancement|src/utils/pipelineStep.ts|cut

主要言語
TypeScript
スター
1
フォーク
4
平均マージ
8時間 17分
マージ済み PR(30日)
46

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TMHSDigital/screencast-mcp のほかの issue

TMHSDigital/screencast-mcp の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。