@tryinget/pi-editor-registry
Editor ownership and mount primitives for pi-interaction runtime
Package details
Install @tryinget/pi-editor-registry from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@tryinget/pi-editor-registry- Package
@tryinget/pi-editor-registry- Version
0.2.0- Published
- Jul 13, 2026
- Downloads
- 160/mo · 140/wk
- Author
- tryinget
- License
- SEE LICENSE IN LICENSE
- Types
- extension
- Size
- 23.1 KB
- Dependencies
- 1 dependency · 3 peers
Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
summary: "@tryinget/pi-editor-registry package overview." read_when:
- "Orienting to this package or directory before changing its behavior."
@tryinget/pi-editor-registry
Editor ownership and mount primitives for the pi-interaction runtime family.
Exports
TriggerEditorcreateEditorRegistry
Behavioral contract
createEditorRegistryis a thin mount helper aroundctx.ui.setEditorComponent(...)plus diagnostics.- It does not implement app-level key handling itself.
TriggerEditorpreserves pi app-level editor behavior by extending pi'sCustomEditorand delegating input tosuper.handleInput(...)before trigger checks run.- In particular,
Esc/app.interruptbehavior remains owned by the pi host wiring (onEscape, action handlers), not by the registry helper.