@stagepick/core
v0.1.4
Published
Core library for stagepick: parse git diffs, select hunks and lines, build partial-staging patches
Maintainers
Readme
@stagepick/core
Core library for stagepick: parse git diffs,
select hunks and individual lines, and build partial-staging patches — the engine behind
the stagepick CLI, made for embedding into agent runtimes.
import { createStagepick } from '@stagepick/core'
const sp = createStagepick({ cwd: process.cwd() })
const diff = sp.list({ paths: ['src/app.ts'] })
const id = diff.files[0]!.hunks[0]!.id
sp.stage([id]) // or ['src/app.ts:42-45'], ['a1b2c3d4@L2'], ...Full documentation, selector grammar, and the agent skill live in the GitHub repository.
License
MIT
