Repository navigation
Conversation
Collaborator
Author
|
Folded into #233. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).
ClientandAsyncClientnow fill in a missingapi_keybefore calling the generated base constructors: explicit argument, thenHAI_API_KEY, then the keyhai loginwrote to$XDG_CONFIG_HOME/hai/.env(or~/.config/hai/.env). If nothing is found, construction raisesApiErrorwith guidance to pass a key, set the env var, or runhai login.This is implemented via
credentials_path,_stored_api_key(line-by-line parse of that.env, including optionalexportand quoted values), and a_default_api_keywrapper on both clients’__init__.Reviewed by Cursor Bugbot for commit 464c22b. Bugbot is set up for automated code reviews on this repo. Configure here.