refactor: replace yukifoo references with official Exafunction repository #3
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.
Refactor: Integrate TypeScript SDK via Node.js Bridge
Summary
This PR replaces the CLI-based architecture with direct TypeScript SDK integration through a Node.js bridge. Instead of spawning Claude CLI processes, the Go SDK now communicates with a custom Node.js bridge script that wraps the official
@anthropic-ai/claude-code
TypeScript SDK.Key Changes:
bridge/claude-bridge.js
that wraps the TypeScript SDKyukifoo/claude-code-sdk-go
toExafunction/claude-code-sdk-go
The bridge script handles both streaming and non-streaming modes, maps all configuration options, and provides comprehensive error handling with stack traces.
Review & Testing Checklist for Human
Query()
andQueryStream()
work correctly with the new bridgecd bridge && npm install
) works in clean environmentsTest Plan Recommendation
cd bridge && npm install
QueryStream()
Notes
node_modules/
directory committed - consider using.gitignore
for productionSession: https://app.devin.ai/sessions/d0cf3915c88d47a8819123a102cc48ca
Requested by: @MariaChrysafis