Ray's Knowledge Base
Unlock

pi has no types package; each managed install carries its own .d.ts files

FactVerified 2 Oct 2026Holds anywhere
Fact. A statement and the evidence for it.

Statement#

pi publishes no types package, but each managed install carries its own .d.ts files in ~/.pi/agent/install/releases/<version>/node_modules/@earendil-works/pi-coding-agent, with the version in ~/.pi/agent/install/current-version. A tsc check mapped onto them through paths can silently fall back to the pinned dev-dependency copy: run tsc --listFiles and fail unless it reads the install path.

Evidence#

Checked while type-checking a pi extension.

Also found by searching

  • pi publishes no types package
  • where are pi's .d.ts files in a managed install
  • tsc --listFiles falls back to the pinned dev-dependency copy
  • map tsc paths to the installed pi types