pi-onedev-toolkit
v0.1.0
Published
Lightweight OneDev integration for Pi via the TOD CLI: repo-aware issue, pull request, and build tools
Maintainers
Readme
pi-onedev-toolkit
Lightweight OneDev integration for Pi, built on the official TOD CLI: repo-aware issue, pull request, and build tools plus issue-to-PR and PR-review skills.
The agent never shells out to tod itself and never sees tokens. The extension resolves the OneDev project from the repository's git remotes once per session, and the tools speak OneDev terms (123, PROJ-123, project#123 all resolve server-side).
Requirements
- OneDev 15.1+
- The
todCLI installed and configured:
curl -fsSL https://code.onedev.io/onedev/tod/~raw/main/install.sh | bash
tod config set # server-url + access-token (or set ONEDEV_SERVER_URL / ONEDEV_ACCESS_TOKEN)Install
pi install npm:pi-onedev-toolkit
# or from source
pi install git:github.com/alpertarhan/pi-onedev-toolkitThen run /od-health once. When the current directory is a OneDev repository, the status line shows the active project.
Tools
| Tool | Domains | Covers |
| --- | --- | --- |
| onedev_tools (always active) | — | Activate domains; session context; login name; download issue/PR attachments |
| onedev_issue | issue | Query/get/comment issues, change fields/labels/state, log work, issue branches |
| onedev_pull | pull | PR metadata/comments/code comments/labels/builds/patch, create/edit, approve, request changes, guarded merge/discard |
| onedev_build | build | Build queries, logs, code-problem reports, changes since last success, run jobs (incl. uncommitted local changes), build-spec validation |
Lazy by design: domain tools activate only through onedev_tools, keeping the default tool list light. merge and discard additionally require confirm: true.
Commands
/od-context— active server, inferred project, login/od-health— re-check tod configuration and server reachability
Skills
onedev-issue-to-pr— gather issue context, branch, implement, present for review, then push and open the PRonedev-pr-review— full-context PR review with line-anchored findings; submits only on explicit request
Development
bun install
bun run check # typecheck + vitestLicense
MIT
