You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: reject project list/use for CI-scoped keys with clear errors (#308)
* fix(cli): reject project list/use for CI-scoped keys with clear errors
Validate credentials before cross-project commands, omit X-Team-ID on
ListProjects, improve login and MCP flows for single-project CI keys,
and strip legacy workspace/team keys on profile save.
Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(cli): address review feedback on login prefix and --type validation
Only show CI-scoped login prefix when validate confirms no user_id; validate
--type before the credentials check so invalid flags fail offline (fixes CI).
Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
* chore(acceptance): move destination and gateway tags to slice 2
Rebalance CI matrix runtimes (~5.3 min slice 0 vs ~3 min slice 2). Move
ConnectionListResponse to helpers so gateway tests compile without
connection_list in the same build.
Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
* refactor(cli): align project-scoped credential errors with API
Rename ErrProjectScopedCredentials (ErrCIScopedCredentials alias), update
messages for single-project scope, and match CLI_PROJECT_SCOPED from API.
Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
// Return the URL immediately so the agent can show it to the user.
189
199
returnTextResult(fmt.Sprintf(
190
-
"Login initiated. The user must open the following URL in their browser to authenticate:\n\n%s\n\nOnce the user completes authentication in the browser, all Hookdeck tools will become available.\nCall hookdeck_login again to check if authentication has completed.",
200
+
"%sLogin initiated. The user must open the following URL in their browser to authenticate:\n\n%s\n\nOnce the user completes authentication in the browser, all Hookdeck tools will become available.\nCall hookdeck_login again to check if authentication has completed.",
Copy file name to clipboardExpand all lines: pkg/gateway/mcp/tool_projects_errors.go
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ import (
6
6
"strings"
7
7
8
8
"github.com/hookdeck/hookdeck-cli/pkg/hookdeck"
9
+
"github.com/hookdeck/hookdeck-cli/pkg/project"
9
10
)
10
11
11
12
constlistProjectsReauthHint=`This may happen if the stored key is a dashboard or single-project API key that cannot list all teams/projects. Try hookdeck_login with reauth: true so the user can sign in via the browser and replace the credential with a full CLI session, then retry hookdeck_projects.`
0 commit comments