fix(cli): handle tool: wrapper key in agents tool add YAML config #1471 #1498

Merged
freemo merged 1 commits from fix/tool-add-yaml-wrapper-key into master 2026-04-02 19:33:37 +00:00

1 Commits

Author SHA1 Message Date
freemo da293dd8f0 fix(cli): handle tool: wrapper key in agents tool add YAML config
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Failing after 21s
CI / build (pull_request) Successful in 15s
CI / quality (pull_request) Successful in 36s
CI / helm (pull_request) Successful in 24s
CI / typecheck (pull_request) Failing after 44s
CI / coverage (pull_request) Has been skipped
CI / benchmark-regression (pull_request) Has been skipped
CI / security (pull_request) Failing after 56s
CI / unit_tests (pull_request) Failing after 1m56s
CI / docker (pull_request) Has been skipped
CI / e2e_tests (pull_request) Failing after 15m7s
CI / integration_tests (pull_request) Failing after 22m4s
CI / status-check (pull_request) Failing after 1s
Fixes #1471

The spec-required tool YAML format includes a top-level 'tool:' wrapper key,
but the CLI was expecting flat format without the wrapper.

This change:
- Detects and extracts the 'tool:' wrapper key if present
- Silently ignores 'cleveragents:' version header
- Maintains backward compatibility with flat format YAML files

Spec reference: Tool Configuration section in docs/specification.md
2026-04-02 19:33:24 +00:00