Install
Install with PiG
pig install npm:@aoshizuku/pi-effortInstall with Pi
pi install npm:@aoshizuku/pi-effortPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./src/index.ts"
]
}README
Written by the package's publisher, shown as published in version 0.1.1 (README.md). PiG does not review it.
pi-effort
给 pi 用的 /effort:一条 Faster ←→ Smarter 的滑杆,左右方向键换档位。
档位就是 pi 的 thinking level(off / minimal / low / medium / high / xhigh / max),
默认只显示当前模型真正支持的那几档。
─ Effort ───────────────────────────────────────────────────────────────
Faster Smarter provider/model
──────────────────────────▲─────────────────── session only
off minimal low medium high xhigh max
The default thinking level for this model
←→ adjust · enter confirm · esc cancel
用法
/effort— 打开滑杆。←/→移动标记,Enter生效,Esc放弃。/effort high— 直接设成某档,不开滑杆。
生效的是当前会话的思考档位,全局默认值不动;下一轮请求就用新档位。
和 pi 自带的 /thinking 是同一根旋钮,只是换了个拧法。
安装
安装:
pi install npm:@aoshizuku/pi-effort # 从 npm 安装
pi install git:github.com/AoShizuku/pi-effort # 或从 GitHub 安装
pi install ./pi-effort
只试一次:
pi -e ./pi-effort/src/index.ts
目录
| 文件 | 作用 |
|---|---|
src/index.ts | 注册 /effort,串起档位解析、滑杆、落档 |
src/levels.ts | 档位表、模型能力过滤、默认档位 |
src/view.ts | 纯渲染函数:轨道、档位名、说明行 |
src/slider.ts | TUI 组件:方向键移动、Enter/Esc |
设计取舍见 DESIGN.md。
开发
npm install
npm run typecheck # tsc --noEmit
npm test # vitest run
本插件属于 Shizuku 系列 pi 插件(pi-shizuku):共用的左栏、设计语言与跨插件约定见总仓库。贡献方式见 CONTRIBUTING.md。