Skip to content

feat(cli): add authconnection delete command - #1310

Merged
dqn merged 4 commits into
mainfrom
feat/auth-connection-delete
Jun 10, 2026
Merged

feat(cli): add authconnection delete command#1310
dqn merged 4 commits into
mainfrom
feat/auth-connection-delete

Conversation

@toiroakr

@toiroakr toiroakr commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add tailor authconnection delete, which fully removes an auth connection (configuration, secret, and tokens), complementing authconnection revoke (token-only).
  • deploy now uses DeleteAuthConnection when it replaces or removes the auth connections it manages (previously revoke).
  • Regenerated @tailor-proto bindings to include DeleteAuthConnection.

Notes

@changeset-bot

changeset-bot Bot commented Jun 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2d79827

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@tailor-platform/sdk Minor
@tailor-platform/create-sdk Minor

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

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

⚡ pkg.pr.new

@tailor-platform/sdk

pnpm add https://pkg.pr.new/@tailor-platform/sdk@abcaeb0
pnpm dlx https://pkg.pr.new/@tailor-platform/sdk@abcaeb0 --help

@tailor-platform/create-sdk

pnpm add https://pkg.pr.new/@tailor-platform/create-sdk@abcaeb0
pnpm dlx https://pkg.pr.new/@tailor-platform/create-sdk@abcaeb0 my-app

commit: abcaeb0

@toiroakr
toiroakr force-pushed the feat/auth-connection-delete branch from adcfca6 to 3f53df5 Compare June 5, 2026 13:58
@toiroakr

This comment has been minimized.

This comment was marked as outdated.

This comment was marked as outdated.

Add a `tailor authconnection delete` command that fully removes an auth
connection (configuration, secret, and tokens), complementing `revoke` which
only invalidates the active session. deploy now uses DeleteAuthConnection when
it replaces or removes the connections it manages. Regenerate tailor-proto to
include DeleteAuthConnection.
@toiroakr
toiroakr force-pushed the feat/auth-connection-delete branch from abcaeb0 to 228b244 Compare June 9, 2026 01:29
@toiroakr
toiroakr requested a review from Copilot June 9, 2026 01:29
@pkg-pr-new

pkg-pr-new Bot commented Jun 9, 2026

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/@tailor-platform/create-sdk@2d79827
pnpm add https://pkg.pr.new/@tailor-platform/sdk@2d79827

commit: 2d79827

This comment was marked as outdated.

Base automatically changed from feat/auth-connection-labels to main June 9, 2026 05:20
@github-actions

This comment has been minimized.

@toiroakr
toiroakr marked this pull request as ready for review June 9, 2026 06:44
@toiroakr
toiroakr requested review from dqn and remiposo as code owners June 9, 2026 06:44
claude[bot]

This comment was marked as low quality.

description:
"Revoke an auth connection's tokens (keeps the connection; use 'delete' to remove it).",
notes:
"Revoke invalidates the connection's active session and tokens but keeps the connection and its stored credentials, so it can be re-authorized later. Use `delete` to remove the connection entirely.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

POLITTY_DOCS_DOCTOR=true POLITTY_DOCS_UPDATE=true pnpm docs:check needs to be run to insert the missing notes markers.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed 2d79827

Insert the politty notes markers for `authconnection revoke` so the
command's notes are rendered in the generated CLI docs.
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

Code Metrics Report (packages/sdk)

main (0c9244b) #1310 (8e8a419) +/-
Coverage 66.0% 66.1% +0.0%
Code to Test Ratio 1:0.4 1:0.4 -0.1
Details
  |                    | main (0c9244b) | #1310 (8e8a419) |  +/-  |
  |--------------------|----------------|-----------------|-------|
+ | Coverage           |          66.0% |           66.1% | +0.0% |
  |   Files            |            398 |             399 |    +1 |
  |   Lines            |          13769 |           13785 |   +16 |
+ |   Covered          |           9095 |            9115 |   +20 |
- | Code to Test Ratio |          1:0.4 |           1:0.4 |  -0.1 |
  |   Code             |          91692 |           91787 |   +95 |
+ |   Test             |          39822 |           39861 |   +39 |

Code coverage of files in pull request scope (58.0% → 66.4%)

Files Coverage +/- Status
packages/sdk/src/cli/commands/authconnection/delete.ts 6.2% +6.2% added
packages/sdk/src/cli/commands/authconnection/index.ts 50.0% 0.0% modified
packages/sdk/src/cli/commands/authconnection/revoke.ts 6.2% 0.0% modified
packages/sdk/src/cli/commands/deploy/auth-connection.ts 87.2% +20.2% modified

SDK Configure Bundle Size

main (0c9244b) #1310 (8e8a419) +/-
configure-index-size 19.37KB 19.37KB 0KB
dependency-chunks-size 35.31KB 35.31KB 0KB
total-bundle-size 54.68KB 54.68KB 0KB

Runtime Performance

main (0c9244b) #1310 (8e8a419) +/-
Generate Median 2,753ms 2,863ms 110ms
Generate Max 2,767ms 3,019ms 252ms
Apply Build Median 2,821ms 2,900ms 79ms
Apply Build Max 2,944ms 2,943ms -1ms

Type Performance (instantiations)

main (0c9244b) #1310 (8e8a419) +/-
tailordb-basic 34,181 34,181 0
tailordb-optional 3,841 3,841 0
tailordb-relation 5,921 5,921 0
tailordb-validate 2,566 2,566 0
tailordb-hooks 5,767 5,767 0
tailordb-object 12,136 12,136 0
tailordb-enum 2,462 2,462 0
resolver-basic 9,424 9,424 0
resolver-nested 26,111 26,111 0
resolver-array 18,187 18,187 0
executor-schedule 4,234 4,234 0
executor-webhook 873 873 0
executor-record 6,659 6,659 0
executor-resolver 4,369 4,369 0
executor-operation-function 868 868 0
executor-operation-gql 869 869 0
executor-operation-webhook 888 888 0
executor-operation-workflow 1,714 1,714 0

Reported by octocov

@dqn dqn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dqn
dqn merged commit ab2a857 into main Jun 10, 2026
40 checks passed
@dqn
dqn deleted the feat/auth-connection-delete branch June 10, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants