refactor(pi-coding-agent): migrate from CLI subprocess to SDK#729
Merged
refactor(pi-coding-agent): migrate from CLI subprocess to SDK#729
Conversation
Deploying agentv with
|
| Latest commit: |
c56f87c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7e23c2f0.agentv.pages.dev |
| Branch Preview URL: | https://refactor-704-pi-coding-agent.agentv.pages.dev |
51e7570 to
f09ca7e
Compare
Replace the Pi CLI subprocess spawning with direct calls to @mariozechner/pi-coding-agent SDK's createAgentSession API. Remove the deprecated pi-agent-sdk provider entirely. Key changes: - pi-coding-agent provider: uses SDK directly (createAgentSession + session.subscribe) - pi-cli provider: new subprocess provider for users who prefer the CLI binary - @mariozechner/pi-coding-agent is now an optional peer dependency with auto-install prompt on first use (interactive TTY only) - Remove pi-agent-sdk provider, config types, and registry entries - Drop executable field from pi-coding-agent (not needed with SDK) - Map config apiKey to provider-specific env vars for SDK consumption Closes #704 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
f09ca7e to
c56f87c
Compare
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.
Summary
Breaking: pi-coding-agent targets using
executablemust remove the field or switch toprovider: pi-cli.Closes #704
Test plan