Skip to content

tunnel labels#586

Open
kcoopermiller wants to merge 8 commits intomainfrom
feature/tunnel-labels
Open

tunnel labels#586
kcoopermiller wants to merge 8 commits intomainfrom
feature/tunnel-labels

Conversation

@kcoopermiller
Copy link
Copy Markdown
Member

@kcoopermiller kcoopermiller commented Apr 30, 2026

Note

Medium Risk
Expands tunnel API surface (new query/body params for list and bulk delete) and changes CLI deletion behavior to call bulk-delete directly, which could unintentionally delete the wrong tunnels if server-side filtering/scoping differs from expectations.

Overview
Adds tunnel labels end-to-end: Tunnel/TunnelClient.create_tunnel accept labels, and TunnelInfo now includes name, local_port, labels, team_id, and lifecycle timestamps.

Extends TunnelClient.list_tunnels with filtering/pagination/sorting params and updates bulk_delete_tunnels to support deleting by labels and scoped team_id/user_id (with an all_users guard requiring team_id).

Updates prime tunnel CLI: start supports repeated --label; list adds filters + pagination/sort options and optional --output json; stop adds --label and switches --all/label deletes to call the bulk-delete API with resolved scoping (no pre-listing), including stricter argument validation. Tests added/updated to cover the new request shapes and CLI behaviors.

Reviewed by Cursor Bugbot for commit 3fd6130. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aaf8ad842d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/prime/src/prime_cli/commands/tunnel.py Outdated
Comment thread packages/prime/src/prime_cli/commands/tunnel.py Outdated
Comment thread packages/prime/src/prime_cli/commands/tunnel.py Outdated
Comment thread packages/prime-tunnel/src/prime_tunnel/core/client.py Outdated
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f4c76f2. Configure here.

Comment thread packages/prime-tunnel/src/prime_tunnel/core/client.py Outdated
@kcoopermiller
Copy link
Copy Markdown
Member Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 38a43935df

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/prime-tunnel/src/prime_tunnel/core/client.py
Comment thread packages/prime/src/prime_cli/commands/tunnel.py Outdated
@kcoopermiller
Copy link
Copy Markdown
Member Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ee9d151543

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/prime-tunnel/src/prime_tunnel/core/client.py Outdated
@kcoopermiller
Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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.

1 participant