Skip to content

fix pi package peer-dep scope to @earendil-works#152

Merged
danieljohnmorris merged 1 commit into
mainfrom
fix/pi-scope-earendil
May 11, 2026
Merged

fix pi package peer-dep scope to @earendil-works#152
danieljohnmorris merged 1 commit into
mainfrom
fix/pi-scope-earendil

Conversation

@danieljohnmorris
Copy link
Copy Markdown
Collaborator

Summary

Why

When I first wrote the package I read the type surface off my locally installed pi (0.66.1, published under @mariozechner/*). That scope is the pre-fork name. New pi installs from pi.dev pull from @earendil-works/* (currently 0.74.0), so the package as merged in #151 would fail to resolve peer deps on a fresh install.

The canonical doc explicitly lists which packages belong in peerDependencies, so this is now sourced from the upstream spec rather than my local environment.

Test plan

  • Strict TypeScript check passes against @earendil-works/pi-coding-agent@0.74.0 with the new imports
  • After merge, tag a v* release; publish-pi job publishes pi-ilo-lang and a fresh pi install npm:pi-ilo-lang from pi.dev resolves all peer deps cleanly
  • Package appears in https://pi.dev/packages once the npm registry crawl catches up

per https://github.com/earendil-works/pi/blob/main/packages/coding-agent/docs/packages.md
the supported peer deps for pi packages are:

  @earendil-works/pi-ai
  @earendil-works/pi-agent-core
  @earendil-works/pi-coding-agent
  @earendil-works/pi-tui
  typebox

my first cut at the package used @mariozechner/* because that is the
scope my locally installed pi 0.66.1 ships under. that scope is the
pre-fork name. pi installs from pi.dev resolve peer deps under
@earendil-works/* (currently 0.74.0), so the package as published
would fail to load on a stock install.

switch the type import in extensions/ilo.ts and the peerDependencies
block in package.json. strict type check passes against
@earendil-works/pi-coding-agent 0.74.0 unchanged - the API surface
between the two scopes is compatible for the bits we use
(ExtensionAPI, registerTool, the Static<typeof params> param type).
@danieljohnmorris danieljohnmorris merged commit 9d58fae into main May 11, 2026
4 checks passed
@danieljohnmorris danieljohnmorris deleted the fix/pi-scope-earendil branch May 11, 2026 15:09
@danieljohnmorris danieljohnmorris mentioned this pull request May 11, 2026
4 tasks
@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant