Repository navigation
feat: expose workspace context - #1052
Conversation
🦋 Changeset detectedLatest commit: 86be141 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis change exposes a Workspace in the tool execution context by adding an optional Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
✨ 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 |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
1 issue found across 5 files (changes from recent commits).
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="packages/core/src/workspace/skills/index.ts">
<violation number="1" location="packages/core/src/workspace/skills/index.ts:1641">
P2: `readFileContent` call is outside the `try/catch` block, so filesystem errors when reading the script will propagate as unhandled exceptions instead of returning a user-friendly error message. The `try/catch` below only covers `sandbox.execute`. Wrap the `readFileContent` call in the same `try/catch` or add a separate one, consistent with how `readSkillFile` handles this.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
|
8f0a3ff This commit is fine; the other commit seems unrelated to this issue. |
e4da734 to
86be141
Compare
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
PR Checklist
Please check if your PR fulfills the following requirements:
Bugs / Features
What is the current behavior?
What is the new behavior?
fixes (issue)
Notes for reviewers
Summary by cubic
Expose the agent’s workspace to tool execution and add tool-aware live-eval payloads with a deterministic tool-call accuracy scorer. Also introduce an onToolError hook to customize serialized tool errors. Addresses #1046.
Written for commit 86be141. Summary will update on new commits.
Summary by CodeRabbit
Release Notes
New Features
Tests
Documentation