Skip to content

feat(config): add per-agent auth field to agent list config (#421)#430

Merged
alexey-pelykh merged 1 commit intomainfrom
feat/config-agent-auth-field
Mar 8, 2026
Merged

feat(config): add per-agent auth field to agent list config (#421)#430
alexey-pelykh merged 1 commit intomainfrom
feat/config-agent-auth-field

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • Add auth field (false | string | string[]) to both AgentConfig (per-agent entry) and AgentDefaultsConfig (global default)
  • Add AuthFieldSchema Zod validator shared between agent entry and defaults schemas
  • Add resolveAgentAuth() resolution helper — agent entry auth overrides defaults; undefined inherits; explicit false opts out
  • 19 new tests: 12 schema validation + 7 resolution logic (all pass, 41 total in affected files)

Test plan

  • Schema accepts false, string, and string[] for both agent entry and defaults
  • Schema rejects true, numbers, and objects
  • Agent entry auth overrides agents.defaults.auth
  • Missing auth inherits from defaults
  • Explicit auth: false on entry overrides defaults even when defaults has a profile
  • No type errors in changed files (tsgo)
  • Formatter and linter pass on all changed files

Closes #421

🤖 Generated with Claude Code

Add `auth` field to both `AgentConfig` (per-agent) and
`AgentDefaultsConfig` (global default) supporting `false | string |
string[]` — enabling agents to opt in/out of auth profile credential
injection with optional round-robin key rotation.

Resolution semantics: agent entry `auth` overrides `agents.defaults.auth`;
`undefined` inherits from defaults; explicit `false` is an opt-out.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) March 8, 2026 08:18
@alexey-pelykh alexey-pelykh merged commit 0b6c873 into main Mar 8, 2026
5 checks passed
@alexey-pelykh alexey-pelykh deleted the feat/config-agent-auth-field branch March 8, 2026 08:26
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.

feat(config): add per-agent auth field to agent list config

1 participant