@tryinget/pi-editor-registry

Editor ownership and mount primitives for pi-interaction runtime

Packages

Package details

extension

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

  • TriggerEditor
  • createEditorRegistry

Behavioral contract

  • createEditorRegistry is a thin mount helper around ctx.ui.setEditorComponent(...) plus diagnostics.
  • It does not implement app-level key handling itself.
  • TriggerEditor preserves pi app-level editor behavior by extending pi's CustomEditor and delegating input to super.handleInput(...) before trigger checks run.
  • In particular, Esc/app.interrupt behavior remains owned by the pi host wiring (onEscape, action handlers), not by the registry helper.