Skip to content

tunnel labels#586

Open
kcoopermiller wants to merge 10 commits into
mainfrom
feature/tunnel-labels
Open

tunnel labels#586
kcoopermiller wants to merge 10 commits into
mainfrom
feature/tunnel-labels

Conversation

@kcoopermiller
Copy link
Copy Markdown
Member

@kcoopermiller kcoopermiller commented Apr 30, 2026

Note

Medium Risk
Expands tunnel API/CLI request shapes (labels, pagination/sorting, bulk-delete scoping) which could break compatibility with the backend or existing scripts if contracts differ. Bulk deletion behavior is broadened and now supports label/team/user scoping, increasing the impact of parameter mistakes.

Overview
Adds label support and richer metadata across tunnel creation and reporting: TunnelInfo now includes name, local_port, labels, team_id, and lifecycle timestamps, and Tunnel/TunnelClient.create_tunnel can send labels during registration.

Extends TunnelClient.list_tunnels to support label/status filters plus pagination and sorting params, and updates get_tunnel/list_tunnels to populate the new fields. bulk_delete_tunnels is generalized to delete by IDs or by labels with optional teamId/userId scoping and an all_users flag (with validation that team scope is required).

Updates the prime tunnel CLI: start accepts --label, list adds filtering/sorting/pagination plus optional --output json, and stop now supports --label deletes and tighter mutual-exclusion/confirmation logic; --all currently pre-lists/paginates IDs as a migration fallback before bulk delete. Adds targeted unit/CLI tests for these behaviors.

Reviewed by Cursor Bugbot for commit 87111ff. 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
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".

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 85db6df. Configure here.

Comment thread packages/prime/tests/test_tunnel_cli.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: 87111ffeb0

ℹ️ 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-tunnel/src/prime_tunnel/core/client.py
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