pi-thegreataxios-staples
v0.1.1
Published
Personal staple extension for pi coding-agent — protected paths
Maintainers
Readme
pi-thegreataxios-staples
Personal staple extension for pi. Blocks writes/edits to sensitive files.
Install
pi install npm:pi-thegreataxios-staplesQuick Start
pi -e ./index.tsFeatures
Protected Paths
Blocks write and edit operations to sensitive files via tool_call hook.
| Path | Reason |
|------|--------|
| .env (exact file) | Secrets and environment variables |
| .env.* (e.g. .env.local, .env.production) | Environment-specific secrets |
| ~~.env.example~~ allowed | Template file, not secrets |
| .dev.vars | Cloudflare Workers secrets |
| .git/ | Version control integrity |
| node_modules/ | Dependency tree stability |
Architecture
index.ts # Entry — activates protected paths
features/
└── protected-paths.ts # tool_call hook with filename-aware blockingSingle dependency: @mariozechner/pi-coding-agent.
