@yishan-io/pi-workspace
Pi workspace extension package for Yishan.
Package details
Install @yishan-io/pi-workspace from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@yishan-io/pi-workspace- Package
@yishan-io/pi-workspace- Version
0.1.0- Published
- Jul 12, 2026
- Downloads
- 46/mo · 15/wk
- Author
- zhex
- License
- MIT
- Types
- extension
- Size
- 19.2 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./extensions"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@yishan-io/pi-workspace
Pi workspace extension package for Yishan.
What it provides
This package adds Pi-facing workspace lifecycle tools on top of the existing Yishan CLI.
Current MVP features:
- registers
workspace_listbacked byyishan workspace list --output json - registers
workspace_findbacked byyishan workspace find --output json - registers
workspace_createbacked byyishan workspace create - registers
workspace_closebacked byyishan workspace close --output json - defaults to
YISHAN_PROJECT_ID,YISHAN_WORKSPACE_ID, andYISHAN_ORG_IDwhen tool arguments are omitted workspace_createdefaultssourceBranchtomainwhen omitted
Installation
As a Pi package:
pi install /absolute/path/to/packages/pi-workspace
Or from a checked-out monorepo path:
pi install ./packages/pi-workspace
Backend requirement
Workspace commands depend on the Yishan CLI and local daemon being available.
Tools
| Tool | Purpose |
|---|---|
workspace_list |
List project workspaces |
workspace_find |
Look up one workspace by id |
workspace_create |
Create a worktree workspace |
workspace_close |
Close one workspace |
Development
Package-local checks:
bun run --cwd packages/pi-workspace typecheck
bun run --cwd packages/pi-workspace lint
bun run --cwd packages/pi-workspace test
License
MIT — see LICENSE.