Install
Install with PiG
pig install npm:@zhexin/pi-usageInstall with Pi
pi install npm:@zhexin/pi-usageReview before installing
Packages 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": [
"./index.ts"
]
}README
Written by the package's publisher, shown as published in version 0.2.0 (README.md). PiG does not review it.
Pi Usage
A unified /usage <provider> command for the Pi coding agent.
pi install npm:@zhexin/pi-usage
Run /usage to pick from all discovered providers, or /usage <provider> to
skip the picker. Either way, the selected provider must have configured credentials.
Adapter protocol
- Listen for
pi-usage:discover. The payload is{ add }. Calladd({ id, label, authHint? })synchronously, withidmatching your Pi provider ID. The optionalauthHinttells users how to configure credentials. - Listen for
pi-usage:request. The payload is{ provider, ctx }, whereprovideris the selected ID andctxis theExtensionCommandContext. Ignore requests for other providers. Resolve credentials and display results or errors in the adapter; the command does not wait for the query.
Adapters do not need to depend on this package.
License
MIT