halopsa-v0.2.12
·
154 commits
to main
since this release
Fixed
doctor, the CLI's HTTP 400/401/403 error hints and the MCP server's tool-error
hints no longer tell operators to runhalopsa-cli auth setup. This CLI'sauth
parent defineslogin,status,set-tokenandlogout; it has never defined
setup. Cobra does not reject an unknown subcommand of a non-root parent, and the
generated parent returnscmd.Help()with a nil error, sohalopsa-cli auth setup
printed the auth help and exited 0 - no "unknown command" error and no non-zero
exit anywhere in the journey. An operator followed doctor's advice, saw a success
code and was no closer to configured credentials; because these are agent-first
CLIs with typed exit codes and an--agentmode, an agent performing setup read
exit 0 as success and moved on unauthenticated. The hints fire exactly when they
matter - fresh install, rotated secret, new machine, expired token - and this skill
emits noauth_instructionsfield, so they were the only setup guidance it gave.
doctornow names the variablesauth loginactually reads (HALOPSA_TENANT,HALOPSA_CLIENT_IDandHALOPSA_CLIENT_SECRET, plus
HALOPSA_DOMAINwhen self-hosted), and the
CLI and MCP error paths point athalopsa-cli auth loginto re-authenticate. Seven
occurrences across three files; the same defect affected appdirect, crowdstrike,
halopsa and ninjaone, the four connectors that scaffoldauth loginrather than
auth setup. Reported by @geekbrownbear (#277).