Skip to content

chore(deps): align Pi SDK packages at 1.4.0 - #159

Merged
trvon merged 2 commits into
masterfrom
chore/pi-1.4
Oct 29, 2026
Merged

trvon merged 2 commits into
masterfrom
chore/pi-1.4

Conversation

@trvon

@trvon trvon commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

API migration review (pi 1.2.0 → 1.4.0)

I read the pi-coding-agent CHANGELOG for 1.3.0 and 1.4.0. Neither release has extension-API breaking changes that affect pi-loop, so no source changes were needed. Typecheck and tests pass unchanged.

  • 1.4.0: before_provider_headers no longer sees attribution headers, and generateSummary() ignores reserveTokens. pi-loop uses neither.
  • 1.4.0: extension tools stay active on resume unless registered with defaultActive: false. pi-loop doesn't use defaultActive, so its tools behave as before (and better on resumed sessions).
  • 1.2.0, already on master: BeforeAgentStartEvent became a union on messageType. pi-loop's before_agent_start handler ignores the event payload, so this is still safe.

peerDependencies stay at "*". pi-loop uses no API added in 1.3 or 1.4, so a >=1.4.0 floor would only cause install warnings for users on older pi without protecting anything.

Verification

Command Result
npm ci ok
npm run lint ok, 2 warnings + 1 info that were already there (no linted files changed)
npm run typecheck ok
npm test 82 files / 1286 tests passed
npm run build ok
npm run test:package package smoke passed (73 files; public types compiled)
npm run audit:all found 0 vulnerabilities (before the override: 1 high, 1 moderate)
git diff --check clean

Note: I ran test:package and audit:all with npm 11, which matches CI's Node 22 toolchain. Locally, npm 12.0.2 fails test:package because npm pack --json now returns an object keyed by package name instead of an array, so scripts/package-smoke.mjs reads packReport[0] as undefined. npm 12 also refuses npm run audit:all with EALLOWSCRIPTS. Both come from the local npm version and have nothing to do with this change. They're worth a separate follow-up if npm 12 support matters.

trvon and others added 2 commits October 29, 2026 12:56
Bump @earendil-works/pi-coding-agent and @earendil-works/pi-tui from
1.2.0 to 1.4.0. The 1.3 and 1.4 releases contain no extension-API
breaking changes that affect pi-loop; typecheck and tests pass unchanged.

Supersedes the 1.3.0 Dependabot bumps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pi-coding-agent 1.2.0 through 1.4.0 pin undici 8.10.2, which is now
covered by several high-severity advisories (GHSA-4qv8-2p9j-2685 and
others) and fails `npm run audit:all` in CI. Following the existing
postcss override, pin the patched 8.x release for the dev install;
published consumers are unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@trvon
trvon merged commit bad4472 into master Oct 29, 2026
5 checks passed
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