Install
Install with PiG
pig install npm:pi-extensions-tool-displayInstall with Pi
pi install npm:pi-extensions-tool-displayPackages 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.
{
"skills": [
"./SKILL.md"
],
"extensions": [
"./index.ts",
"../pi-extensions-i18n/index.ts"
]
}README
Written by the package's publisher, shown as published in version 1.3.3 (README.md). PiG does not review it.
pi-extensions-tool-display
pi-extensions-tool-display provides the Pi tool-display host plus the shared tool-result rendering protocol and component helpers used by Pi extensions.
It provides:
- registration, disposal, and activity checks for result-render middleware;
- a pending registration queue for when the Pi display host loads later;
- safe component detection and a helper for appending an audit panel to the original tool result.
A result-render middleware registered for "*" really does run for every extension-registered tool: the host wires the middleware chain into any tool it does not already own, keeping the tool's own renderResult (or Pi's plain text preview when it has none) as the base. isResultRenderPipelineActive therefore reports true for those tools as well, so a consumer never needs to fall back to a separate transcript entry. Pi's own built-in tools stay behind the registerToolOverrides switches.
It is also a standalone Pi extension. Install or include this package in Pi's package list to load the actual tool-display host. Feature package manifests include this dependency's extension entry, so installing either feature package loads one shared host without requiring a second host package.
Boundary
This package owns the display protocol and generic component composition only. Each feature extension continues to own its domain-specific audit extraction, copy, status, and layout.
Built-in overrides only replace tools that Pi has already activated; registerToolOverrides does not enable inactive built-in tools.
Upstream attribution
The display integration is designed to work with the MIT-licensed MasuRii/pi-tool-display, the original full-featured Pi tool-display project. We thank MasuRii for that work.
The host implementation is based on the MIT-licensed upstream project and is now maintained in this package so consumers do not need a second separately installed host package.
Install
Install this package directly when you want only the tool-display host:
pi install npm:pi-extensions-tool-display
pi-distill and pi-tool-supervisor declare this host entry in their package manifests when they are installed.
Development
npm test
npm run typecheck