Skip to content

chore(sdk): sync generated SDK (v1.0.17) - #235

Closed
abonneth wants to merge 1 commit into
mainfrom
sync/agp
Closed

abonneth wants to merge 1 commit into
mainfrom
sync/agp

Conversation

@abonneth

@abonneth abonneth commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Auto-generated from the upstream codegen home.

Version: 1.0.17 (patch; every sync bumps +0.0.1)
Upstream: agent_platform@9f10ef8


Note

Medium Risk
Changes how API keys are resolved for every client instantiation, including reading credentials from disk, which is authentication-sensitive behavior.

Overview
Bumps the SDK to 1.0.17 (package version, lockfile, and HTTP client metadata).

Client and AsyncClient now fill in a missing api_key before calling the generated base constructors: explicit argument, then HAI_API_KEY, then the key hai login wrote to $XDG_CONFIG_HOME/hai/.env (or ~/.config/hai/.env). If nothing is found, construction raises ApiError with guidance to pass a key, set the env var, or run hai login.

This is implemented via credentials_path, _stored_api_key (line-by-line parse of that .env, including optional export and quoted values), and a _default_api_key wrapper on both clients’ __init__.

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

@abonneth

abonneth commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator Author

Folded into #233.

@abonneth abonneth closed this Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants