Skip to content

fix(coding-agent): pin @earendil-works/pi-* deps to upstream versions#11

Open
davidbasilefilho wants to merge 2 commits into
code-yeongyu:mainfrom
davidbasilefilho:fix/pi-deps-correct-versions
Open

fix(coding-agent): pin @earendil-works/pi-* deps to upstream versions#11
davidbasilefilho wants to merge 2 commits into
code-yeongyu:mainfrom
davidbasilefilho:fix/pi-deps-correct-versions

Conversation

@davidbasilefilho
Copy link
Copy Markdown

@davidbasilefilho davidbasilefilho commented May 15, 2026

Summary

Pins @earendil-works/pi-agent-core, @earendil-works/pi-ai, and @earendil-works/pi-tui in packages/coding-agent from the fork's CalVer (^2026.5.15-3) to upstream npm versions (^0.74.0). Without this, bun i -g @code-yeongyu/senpi fails because the CalVer range doesn't exist on npm.

Changes

  1. packages/coding-agent/package.json: Changed dep ranges from ^2026.5.15-3 to ^0.74.0
  2. scripts/sync-versions.js: Added skip guard so future releases don't overwrite these pinned deps for @code-yeongyu/senpi (the published package only -- other workspace packages still get their internal deps synced)
  3. package-lock.json: Regenerated to match new ranges

Verification

  • npm install --ignore-scripts succeeds
  • All value-imports from @earendil-works/pi-* used by coding-agent exist in upstream 0.74.0

Summary by cubic

Fixes failed installs of @code-yeongyu/senpi by aligning dependency versions with upstream npm releases instead of the fork’s CalVer range.

  • Dependencies
    • Pinned @earendil-works/pi-agent-core, @earendil-works/pi-ai, and @earendil-works/pi-tui in packages/coding-agent to ^0.74.0.
    • Updated scripts/sync-versions.js to skip syncing @earendil-works/* only for the published @code-yeongyu/senpi and clarified comments/quoting style.
    • Regenerated package-lock.json.

Written for commit 3386a32. Summary will update on new commits. Review in cubic

The published @code-yeongyu/senpi package was declaring @earendil-works/pi-* dependencies at CalVer versions (e.g. ^2026.5.15-3) that don't exist on npm for those upstream packages -- they use semver (0.74.0).

Fix: pin deps to ^0.74.0 and update sync-versions.js to skip overwriting @earendil-works/ prefixed packages during release.
Copilot AI review requested due to automatic review settings May 15, 2026 15:20
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Re-trigger cubic

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Pins packages/coding-agent (published as @code-yeongyu/senpi) to upstream npm versions of @earendil-works/pi-* to prevent global installs from failing due to non-existent CalVer ranges, and updates the release sync script so future releases don’t overwrite those pins.

Changes:

  • Updated @earendil-works/pi-agent-core, @earendil-works/pi-ai, and @earendil-works/pi-tui dependency ranges in packages/coding-agent to ^0.74.0.
  • Added a guard in scripts/sync-versions.js to skip syncing @earendil-works/* deps for the published package @code-yeongyu/senpi.
  • Regenerated package-lock.json to reflect the new dependency graph.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
scripts/sync-versions.js Prevents the release sync script from rewriting upstream-pinned @earendil-works/* deps in the published package.
packages/coding-agent/package.json Pins @earendil-works/pi-* dependencies to upstream npm versions so installs don’t reference non-existent CalVer ranges.
package-lock.json Updates the lockfile to match the new upstream dependency ranges and resulting transitive deps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/sync-versions.js Outdated
Comment on lines +49 to +51
// Packages under this prefix are published by upstream and use their own versioning.
// Only the published @code-yeongyu/senpi should skip them -- other workspace packages
// (agent, web-ui) need internal deps to stay in sync during release.
Comment thread scripts/sync-versions.js Outdated
Comment on lines +52 to +53
const SKIP_SYNC_PREFIX = "@earendil-works/";
const PUBLISHED_PACKAGE = "@code-yeongyu/senpi";
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.

2 participants