Repository navigation
feat(eve): build with eve 0.81 and add input-aware approval prompts - #180
Merged
Merged
Conversation
Contributor
|
Thank you for following the naming conventions! 🙏 |
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Merged
This branch was successfully deployed
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.
🔗 Linked issue
None.
📚 Description
Builds
@github-tools/eve-extensionwith eve 0.81.1 and uses eve 0.79'sapproval.promptto give write-tool approval requests a readable summary.Minimum eve version.
eve extension buildwrites the newest tool contract of the building eve into_manifest.json, regardless of which features the extension uses:{ "kind": "eve-extension", "formatVersion": 2, - "builtWithEve": "0.72.1", + "builtWithEve": "0.81.1", "requires": { "extension": 1, - "tool": 76, - "dynamicTool": 72, + "tool": 93, + "dynamicTool": 87, "config": 1 } }Checking
extension-compatibility.jsin each published eve release shows 0.81.0 is the first that supports tool contract 93 and dynamic-tool contract 87. Agents on eve 0.72 to 0.80 cannot mount this build, so the changeset isminorand tells them to stay on 0.8.x. Theevepeer range stays*.Approval prompts. Write tools now set
approvalin object form, with inlinerequestandpromptcallbacks. The prompt names the action and its target;owner,repoand the PR, issue or discussion number fall back tocontext. Prompts recorded by eve during the agent run below:Before this change eve showed its default
Approve <tool label>?. In the builtexamples/eveserver, eve stamps the new callback as a durable descriptor,__eve_dynamic_approval_prompt_3({ name }, { input }), next to__eve_dynamic_approval_request_2. The AST guard intest/durable-define-tool.test.tsnow also acceptsapprovalas an object whoserequest,promptandresponsecallbacks are inline.Dependencies.
evedevDependency pinned to0.81.1.examples/eve,examples/eve-bench:eve^0.81.1. eve 0.77 requiresai7.0.137 or later, soaimoves to^7.0.148across the workspace, with the@ai-sdk/workflow>aioverride and@ai-sdk/*packages to match.Docs. The docs site, published skill, extension README and
AGENTS.mdsaid "built against eve 0.64". They now state the eve 0.81 minimum and describe the approval prompts.Testing
Real eve agent:
examples/eve-bench(eve 0.81.1 dev server, Claude Opus 5.5 through AI Gateway with avercel-internal-playgroundOIDC token, GitHub reads againstvercel-labs/github-tools, GitHub writes answered by the bench's local stub, every approval answeredapprove):All 8 stubbed writes ran after approval (
addLabels, twoaddIssueComment,addPullRequestComment,rerunWorkflowRun,createBranch,createOrUpdateFile,createPullRequest).BENCH_CONFIG=auto(preset: 'auto',requireApproval: 'auto') ended at 5 passed, 7 failed. Every Jev call returned403 RestrictedProvidersError: the playground team's AI Gateway allowlist blocks thetypesafe-aiprovider. The extension fell back to therepo-explorerpreset as designed, which has no write tools, so the write tasks failed. This needs a team that allowstypesafe-aito verify.examples/eveuses thegithub/test-github-toolsConnect connector invercel-labs, which a playground token cannot reach, so it was built but not run.Local checks:
pnpm lint,pnpm typecheckandpnpm testpass (176 SDK tests and the extension guard test).pnpm buildpasses exceptexamples/eve, which needsmicrosandboxfor the sandbox prewarm on Apple Silicon.eve build --skip-sandbox-prewarmsucceeds, andscripts/verify-eve-schema-transform.mjspasses on its output.📝 Checklist
ELI5
The GitHub tools plug into an agent framework called eve, and eve has new versions. This updates the plug to the newest version, so it needs that newest version to work. When the agent wants to change something on GitHub and asks a person first, the question now says exactly what it will do and where, like "Merge pull request on #176?".