removeBranch
uses tcmts.studio.branchingCodebase, which uses tcmts.share.servedCodebase, which uses process
Delete the branch name, as tcm branch <name> --delete does: not main, the studio's own, nor a session an agent is
working on; the history it made stays. What it said.
import { branchingCodebase, runTcm, tcmSaid } from "#codebase/tcmts/studio"; export async function removeBranch(name: string): Promise<string> { const cb = branchingCodebase(); return tcmSaid( await runTcm(cb.lay.root, ["branch", name, "--delete"], { branch: true }), `tcm branch ${name} --delete`, ); }