omp-herdr-fork-space0.1.0
omp extension: bare /fork opens the forked session in a new Herdr space
Built for omp
The author tagged this package oh-my-pi.
Reports 0
No reports yet.
Readme
omp-herdr-fork-space
An omp extension for the Herdr desktop app: typing a bare /fork opens a new Herdr space running omp --fork <current session>, switches to it, and leaves the parent session running where it was.
Behavior
/forkis intercepted only in a herdr-core terminal, the kind the Herdr desktop app runs (HC_TERMINAL_IDis set). Everywhere else omp's built-in/forkruns unchanged.- The new space starts in the parent's folder, is named after the parent's space with
(fork)appended (for example水印 (fork)), and is shown at once. It is created withherdr-app do space.new, so the Herdr window must be running. If the parent's space can't be read, Herdr names the new space itself. - Streaming sessions ask for confirmation first; in-memory sessions and vibe mode are rejected.
--profileand thePI_CONFIG_*/XDG scope variables are passed to the child. A herdr-core terminal takes its environment from the core, so they are set withenv K=Vin front of the command./fork tab,/fork windowand/fork panekeep omp's built-in behavior.
Install
From git:
omp plugin install github:Rinai-R/omp-herdr-fork-space
Or clone and link a local checkout:
git clone https://github.com/Rinai-R/omp-herdr-fork-space
omp plugin link ./omp-herdr-fork-space
Restart omp (or run /restart) after installing.
Notes
- TypeScript extension module loaded directly by omp's Bun runtime; no build step.
- Needs
herdr-apponPATH(the Herdr installer puts it in~/.local/bin).
CI and release
.github/workflows/ci.yml runs on every push to main and every pull request: the Bun smoke test (bun scripts/smoke.ts) and a check that the npm package holds only README.md, index.ts and package.json.
Pushing a v* tag runs .github/workflows/release.yml: it checks the tag against package.json, runs the same smoke test, publishes to npm with provenance, and creates the GitHub release.
git tag v0.1.0
git push origin v0.1.0
The workflow needs NPM_TOKEN as an Actions secret (or variable). Bump package.json before tagging; a mismatched tag fails the run.