feat(agents): providers create/update CLI flags (stacked on lab_week_3)#4
Open
cmarguta-alg wants to merge 7 commits intolab_week_3from
Open
feat(agents): providers create/update CLI flags (stacked on lab_week_3)#4cmarguta-alg wants to merge 7 commits intolab_week_3from
cmarguta-alg wants to merge 7 commits intolab_week_3from
Conversation
Allow common provider flows without -F: --name/--provider plus --api-key, --api-key-stdin, or --api-key-env for create (openai, anthropic, google_genai, deepseek); patches via --name, API key flags, and optional --base-url for update. Azure and openai_compatible still require JSON files. Keeps file and shortcut paths mutually exclusive. Updates agents e2e providers.txtar for the relaxed -F requirement. Co-authored-by: Cursor <cursoragent@cursor.com>
Adds docs/agents.md section on providers -F vs flags; links to docs/qa/arg_friendly_providers_SIGNOFF.md (Lab Week planning-team alignment + ordered test commands). Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
tmp is cleaned by Taskfile and may contain local QA Go packages outside review; use issues.exclude-dirs instead of deprecated run.skip-dirs. Co-authored-by: Cursor <cursoragent@cursor.com>
Reuse build ldflags (including Agent Studio URL from .env); output binary algolia-beta and default VERSION main+beta. Document in AGENTS and README. Co-authored-by: Cursor <cursoragent@cursor.com>
Inject version.Distribution via task build-beta ldflags (empty for releases). PersistentPreRunE + help wrapper on agents group warns on stderr; defaults stay on stdout pipelines. Docs + DIST template in Taskfile. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Stacked on
lab_week_3(same line as PR #212 on upstream). This PR contains only the provider flag shortcuts + related docs/lint—not the full Agent Studio tree.Commits (vs
lab_week_3)feat(agents): add flag shortcuts for providers create/updatedocs/agents.md+docs/qa/arg_friendly_providers_SIGNOFF.md(Anya command sheet; vet reports stay local undertmp/only).golangci.ymlexcludetmp/for lint noiseUpstream review: merge PR algolia#212 first (or reconcile), then this stack can merge into
lab_week_3, or cherry-pick these commits elsewhere.Supersedes upstream PR #214 (was
feat/...→main; scope was wrong for review).Test plan
go test ./pkg/cmd/agents/providers/...go test ./e2e -tags=e2e -run TestAgentswith app credentials (includesproviders.txtar)