fix(harness-driver): export ./predictive-echo subpath#1048
Conversation
The PredictiveEchoEngine (added in #1045) is meant to be consumed by external hosts — its docstring explicitly names an Electron host (Pear) backing it with a live @xterm/xterm instance. But it was only reachable via the package root barrel, which re-exports the broker transport and its `ws` import, so it can't be loaded in a browser/renderer bundle. `predictive-echo.ts` has zero imports, so exposing it as a dedicated subpath (mirroring ./client, ./protocol, etc.) lets renderer hosts import just the engine with no node-only code pulled in. No source changes; the built dist/predictive-echo.{js,d.ts} already ship in the published package. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
CodeAnt AI is reviewing your PR. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe harness-driver package.json is updated to expose a new public subpath export ChangesPackage Export Configuration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
CodeAnt AI finished reviewing your PR. |
User description
What
Adds a
./predictive-echoexport subpath to@agent-relay/harness-driver:Why
The
PredictiveEchoEngineadded in #1045 is explicitly designed to be consumed by external hosts — its docstring names "an Electron host (e.g. Pear)" backing it with a live@xterm/xterminstance. But it was only reachable through the package root barrel (index.js), which re-exports the broker transport (transport.js→import WebSocket from 'ws'). Pulling that into a browser/renderer bundle drags in node-onlywsand breaks the build.src/predictive-echo.tshas zero imports, so exposing it as a dedicated subpath (mirroring the existing./client,./protocol,./broker-path,./harnessesentries) lets renderer hosts import just the engine with no node-only code pulled in:Scope
dist/predictive-echo.{js,d.ts}already ship in the published package (files: ["dist", ...]), so no build changes are needed; the export simply points at files that are already there.distVite alias.🤖 Generated with Claude Code
CodeAnt-AI Description
Expose Predictive Echo as a direct import path
What Changed
@agent-relay/harness-driver/predictive-echoentry so hosts can import the PredictiveEcho engine directlyImpact
✅ Browser-safe Predictive Echo imports✅ Fewer build failures in renderer apps✅ Easier host integration for predictive echo💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.