Jon Chery
|
5d1a5f83da
|
feat(P01): core/mode_resolver — client-mode resolution (REQ-327, D-226, cli-engineer)
Priority: --mode flag → NOVA_CLIENT_MODE env → credential type → TTY.
No silent fallbacks: every return carries a non-empty selection_reason.
- resolve_mode(flag, env_var, credential_type, stdin_isatty) -> (mode, reason)
- resolve_mode_from_env() reads --mode from sys.argv (best-effort scan,
no full argparse), NOVA_CLIENT_MODE, ~/.nova/credentials.json active
credential type, and sys.stdin.isatty() (D-226: stdin, NOT stdout).
- INV-13: invalid env values logged + ignored, fall through.
- INV-14: developer_pat/nova_oidc_token + TTY → interactive; + no-TTY → agent.
---ci---
project: acdl
phase: 1
milestone: v1.28
status: execute
persona: cli-engineer
---/ci---
|
2026-08-19 22:23:46 +00:00 |
|