Add integrations.remove to core tools - #1600
Merged
Merged
Conversation
integrations.list reports canRemove per integration but the agent surface had no way to act on it; removal existed only on the HTTP API and the console. The tool takes the slug from integrations.list, is approval-gated, and reports removed: false when no catalog row matched so an absent slug or built-in namespace is distinguishable from a real removal.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-marketing | c70f605 | Commit Preview URL Branch Preview URL |
Aug 16 2026, 10:26 AM |
Contributor
Cloudflare previewTorn down — the PR is closed. |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-cloud | c70f605 | Aug 16 2026, 10:27 AM |
@executor-js/cli
@executor-js/config
@executor-js/execution
@executor-js/sdk
@executor-js/plugin-file-secrets
@executor-js/plugin-graphql
@executor-js/plugin-keychain
@executor-js/plugin-mcp
@executor-js/plugin-onepassword
@executor-js/plugin-openapi
@executor-js/codemode-core
@executor-js/runtime-quickjs
executor
commit: |
RhysSullivan
marked this pull request as ready for review
August 16, 2026 10:39
This was referenced Aug 16, 2026
Merged
This was referenced Aug 29, 2026
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.
integrations.listreportscanRemoveper integration, but nothing on the agent surface could act on it. Removal lived only on the HTTP API and the web console, so an agent that could add an integration could never take one back out — cleaning up a catalog meant clicking through the UI once per integration.The core-tools plugin now contributes
integrations.remove. It takes theslugthatintegrations.listalready returns and delegates to the existingexecutor.integrations.remove, which cascades to every connection under the integration and the tools those produced.Two details worth reviewing:
connections.remove(already gated): this drops the catalog row too, so re-adding means re-importing the definition, not just reconnecting an account.removedis honest, not always-true. The underlying remove silently no-ops on a slug it can't find, and built-in static namespaces likeexecutorhave no catalog row at all. The tool checkscore.integrations.getfirst and returnsremoved: falsein those cases, so "nothing matched" is distinguishable from a real removal. An integration pinned withcanRemove: falsestill fails withIntegrationRemovalNotAllowedErrorrather than quietly surviving.Verification
executor.executeaddress: cascade removal, absent slug, built-in namespace, pinned refusal (asserting theToolInvocationError→IntegrationRemovalNotAllowedErrorcause chain).format:check,lint, repo-widetypecheckclean;packages/core/sdksuite 595/595.