Fix pi-extension after renaming the project - #31
Open
gurix wants to merge 1 commit into
Open
Conversation
…fix TypeBox duplicate-instance break @mariozechner/pi-coding-agent is deprecated and frozen at 0.73.1 in favor of @earendil-works/pi-coding-agent (now 0.83.0+). Two things broke as a result: - pi-coding-agent 0.83.0 bumped its bundled TypeBox to 1.3.7 and removed deprecated APIs. pi-extension pinned its own typebox@^1.1.37 to build tool parameter schemas, so the host's upgraded TypeBox runtime no longer recognized schemas built from our separately-bundled older copy, breaking web_search/web_fetch tool registration. Pinned to the exact 1.3.7 the host uses so package managers dedupe to one instance. - ModelRegistry.authStorage, which parallel-auth.ts used directly to get/set/remove the stored Parallel API key, was removed from the public ExtensionContext surface entirely in 0.83.0 (auth storage moved fully behind ModelRuntime). Replaced it with a small self-owned credential file (~/.parallel/pi-credentials.json) so persistence no longer depends on pi-coding-agent's internal auth internals, which have now changed shape twice across recent versions. Updated the peerDependency and all imports to @earendil-works/pi-coding-agent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
follow pi-coding-agent rename to @earendil-works, fix TypeBox duplicate-instance break
@mariozechner/pi-coding-agent is deprecated and frozen at 0.73.1 in favor of @earendil-works/pi-coding-agent (now 0.83.0+). Two things broke as a result:
pi-coding-agent 0.83.0 bumped its bundled TypeBox to 1.3.7 and removed deprecated APIs. pi-extension pinned its own typebox@^1.1.37 to build tool parameter schemas, so the host's upgraded TypeBox runtime no longer recognized schemas built from our separately-bundled older copy, breaking web_search/web_fetch tool registration. Pinned to the exact 1.3.7 the host uses so package managers dedupe to one instance.
ModelRegistry.authStorage, which parallel-auth.ts used directly to get/set/remove the stored Parallel API key, was removed from the public ExtensionContext surface entirely in 0.83.0 (auth storage moved fully behind ModelRuntime). Replaced it with a small self-owned credential file (~/.parallel/pi-credentials.json) so persistence no longer depends on pi-coding-agent's internal auth internals, which have now changed shape twice across recent versions.