Set policies from the tools tree#472
Merged
RhysSullivan merged 2 commits intomainfrom May 2, 2026
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-marketing | d1b0ddb | Commit Preview URL Branch Preview URL |
May 02 2026, 05:17 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-cloud | d1b0ddb | May 02 2026, 05:17 AM |
540be54 to
84ca91b
Compare
@executor-js/cli
@executor-js/config
@executor-js/execution
@executor-js/sdk
@executor-js/storage-core
@executor-js/codemode-core
@executor-js/runtime-quickjs
@executor-js/plugin-file-secrets
@executor-js/plugin-google-discovery
@executor-js/plugin-graphql
@executor-js/plugin-keychain
@executor-js/plugin-mcp
@executor-js/plugin-onepassword
@executor-js/plugin-openapi
executor
commit: |
84ca91b to
d1b0ddb
Compare
1 task
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
stripe_api.account.getAccount); group rows submit the category wildcard (stripe_api.account.*). The detail-pane policy badge is also clickable and opens the same menu.usePolicyActions(scopeId)hook centralizes the create/update/clear flow and auto-places new rules by specificity (longer/exact patterns sit above shorter wildcards) so a freshly-added group rule never silently shadows an existing leaf rule.tools.listAPI now returnsrequiresApprovaland includes blocked tools, mirroringsources.toolsso the cross-source view can render plugin-default indicators.lib/policy-display.ts(used by tool-tree, tool-detail, policies page) so the action labels rename in one place.Follow-up to #470 (now merged) — adds the actual UX so users can set policies from the tools view instead of having to type patterns into the policies page.
Test plan
/tools: hover a row → "..." trigger → pick Block → row's indicator dot turns red, tool fades./policies(first-match-wins keeps the leaf precedent).Blocked/Always run/Require approval).bun run --filter @executor-js/sdk testpasses (no behavior change in the matcher).