Implement the phase-three client: device-code login (auth login/logout/bridge) with a 0600 token file, cloud credential resolution with an in-memory cache, pre-minted Hose token injection via tokenType/tokenName, cloud Seal sessions without local renewal, elevation guards, and a local-only doctor check. Cloud enterprises still avoid tokens.json.
Enterprise configs gain a root-level storage field (default local). Cloud configs must not persist any secret and fail closed on load. Route credential reads through resolveCorpCredentials, which returns local fields unchanged and fails with exit code 11 for cloud enterprises until the bridge client lands. Cloud enterprises skip the local token store and delegation renewal.
Move parser, tokenize, and area-aliases under cli/parse; runner and read-only under cli/run; printer under cli/output; help plus the docs/naming contract tests under cli/help. types.ts and helpers.ts stay at the cli root. Update imports, the app-root depth calculation, test fixtures, and the CLI doc generator path. No behavior change.
Drop the Hose key/password compatibility path from the config schema, credential reads, CLI messages, tests, and docs; appKey/appSecurity are now the only accepted fields. Isolate seal-renew tests from the real enterprises directory so renewals never write local config. Remove the tracked pkg/ report spec and local artifacts, and rewrite .gitignore with complete sections.
Drop source.provider/providerName, cached enterprise.provider, onboarding writes, CLI outputs, and the search index entry; legacy configs and token caches still parse. Add a compatibility test for stripping the old keys.
Turn on noUnusedLocals/noUnusedParameters so the compiler keeps flagging
dead symbols, then clear the 737 findings it reports: unused imports across
src/, unused parameters, unreachable locals, and the copy-pasted 135-line
import prologues in the seal tool modules (each tool file now imports only
what it uses). Also applies the equivalent-safe lint rewrites (Array.from
instead of new Array(n).fill, non-null assertions in tests after toBeDefined,
simplified spreads, unused catch params) that oxlint will gate in a later
commit.