Commit Graph

196 Commits

Author SHA1 Message Date
William Valentin 49a5a44c8a feat(auth): add Anthropic OAuth support and deferred credential loading
- Read Claude Code's OAuth token from ~/.claude/.credentials.json as
  a fallback source for auth_mode: oauth (with expiry checking)
- Fix OAuth callback server to bind to localhost (not 127.0.0.1) and
  use JSON content type for token exchange
- Null out apiKey when authToken is set to prevent SDK from falling
  back to ANTHROPIC_API_KEY env var (routes to wrong billing)
- Add DeferredErrorClient so daemon starts even when credentials are
  missing, surfacing the error on first chat() call instead of crash
- Prompt to complete OAuth flow immediately when setting auth_mode to
  oauth with no token stored

Note: Anthropic currently rejects OAuth for API access (Feb 2026
policy change), but the plumbing is in place for if/when re-enabled.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 13:03:01 -08:00
William Valentin 163b1a0139 feat: harden voice reliability with tts fallback and talk controls 2026-02-26 17:29:23 -08:00
William Valentin 7c904ef0fd Add browser workflow reliability primitives and guardrails 2026-02-26 14:06:46 -08:00
William Valentin 3cc9e16ef5 feat(subagents): complete queue, budgets, audit, and inspection controls 2026-02-26 13:28:10 -08:00
William Valentin b679261683 feat(subagents): add idle ttl cleanup and summary tool 2026-02-26 13:12:53 -08:00
William Valentin 2171346116 feat(subagents): add multi-turn subagent session runtime 2026-02-26 13:07:34 -08:00
William Valentin a76bc94b4d feat(memory): wire user_namespace and working memory config to orchestrator 2026-02-25 12:59:06 -08:00
William Valentin eec54ace9d test(voice): cover tts fallback 2026-02-25 11:21:49 -08:00
William Valentin e3e98058b0 feat(canvas): persist artifacts and surface UI 2026-02-25 11:18:53 -08:00
William Valentin 7b170cff4d Phase 2 reactions v2 priority and cooldown 2026-02-25 10:36:56 -08:00
William Valentin e4ee6acce8 Phase 1 run-control semantics and run_state events 2026-02-25 10:22:44 -08:00
William Valentin 2311826092 feat(metrics): add phase-0 baseline counters
Diagrams reviewed: docs/architecture/AGENT_DIAGRAM.md, docs/architecture/GATEWAY_SESSIONS_AND_QUEUE.md, docs/api/PROTOCOL.md (no changes required).
2026-02-25 09:05:31 -08:00
William Valentin 6bcdb13bf4 feat(observability): emit run and reaction baseline audit events
Diagrams reviewed: docs/architecture/AGENT_DIAGRAM.md, docs/architecture/GATEWAY_SESSIONS_AND_QUEUE.md, docs/api/PROTOCOL.md (no changes required).
2026-02-25 08:54:19 -08:00
William Valentin 37be391a40 Unify TUI runtime commands with gateway and harden gateway restart 2026-02-24 13:14:53 -08:00
William Valentin 2e192ef407 feat(runtime): forward Flynn prompt to pi and harden backend mode commands 2026-02-24 10:41:27 -08:00
William Valentin 4188c68130 feat: add persisted manual pi backend mode controls 2026-02-23 23:06:40 -08:00
William Valentin 1dfa6ce2b4 fix(pi): inherit default model and api key for embedded agent 2026-02-23 22:06:42 -08:00
William Valentin 559fe61168 fix(daemon): wire external backends into router deps 2026-02-23 21:54:57 -08:00
William Valentin a389cd659c feat(routing): add pi canary guardrails and backend audit telemetry 2026-02-23 21:13:01 -08:00
William Valentin ac61c9c3fb feat(backends): add optional pi_embedded backend and config wiring 2026-02-23 21:12:52 -08:00
William Valentin f27aabae3b Improve local service checks and web search tooling 2026-02-22 22:12:44 -08:00
William Valentin a761813375 Bind audio.transcribe hydration to current message turn 2026-02-22 21:27:09 -08:00
William Valentin db4e52dd7e Harden audio transcription arg hydration and add rewrite audit event 2026-02-22 18:56:22 -08:00
William Valentin 9c8e9cd546 fix(tui): narrow tool inventory query detection 2026-02-22 17:12:30 -08:00
William Valentin 44c7409a20 feat(councils): add preflight, schema-driven outputs, and artifact reporting 2026-02-22 15:56:30 -08:00
William Valentin b09bfc8373 Unify TUI slash commands and harden tool inventory responses 2026-02-21 12:39:27 -08:00
William Valentin e9cb1d7c1a feat(cli): add gemini-auth command and alias support 2026-02-21 11:39:23 -08:00
William Valentin 7c121b82c6 feat(councils-ui): add on-demand council conversations panel and model config controls 2026-02-21 11:26:04 -08:00
William Valentin 54cbf17133 feat(runtime): wire council command and routing integration 2026-02-21 10:49:20 -08:00
William Valentin 290303c14e feat(memory): add daily log continuity controls 2026-02-19 11:58:42 -08:00
William Valentin 6b56d9e223 feat(models): add auth profile cooldown for api key pools 2026-02-19 11:45:55 -08:00
William Valentin baa53f91d9 refactor(security): unify elevated mode handling across surfaces 2026-02-19 11:41:53 -08:00
William Valentin 027f7ad283 feat(models): add background task model override config and runtime wiring 2026-02-19 09:52:45 -08:00
William Valentin 7e480f11fc fix(config): persist runtime patches to active overlay config path 2026-02-18 19:43:55 -08:00
William Valentin cdba111831 fix(confirmations): guarded-action handling across webchat and tui 2026-02-18 17:43:57 -08:00
William Valentin 21232748b9 fix: graceful ctrl+c shutdown and await session-end memory writes 2026-02-18 11:30:47 -08:00
William Valentin 8234cc93f3 feat: add webchat pwa push subscription support 2026-02-18 10:46:55 -08:00
William Valentin 02fa604c7c feat: add in-chat skill discovery and local registry install command 2026-02-18 10:41:12 -08:00
William Valentin f34a974210 feat: add session-scoped workflow approval gate commands 2026-02-18 10:35:42 -08:00
William Valentin 8e3cd2e0ba feat: add multi-key auth profile rotation for model providers 2026-02-18 10:29:54 -08:00
William Valentin f341149ac7 feat: add automation reactions event-trigger layer 2026-02-18 10:26:40 -08:00
William Valentin a71aa5992d feat: implement tier-a4 tts voice output replies 2026-02-18 10:22:28 -08:00
William Valentin f38fc063d2 feat: add proactive memory extraction and daily logs 2026-02-18 10:10:47 -08:00
William Valentin 16af5e75fd feat: make /transfer bidirectional across telegram and tui 2026-02-18 07:55:08 -08:00
William Valentin 540f6780e6 feat(safety): gate sensitive tools behind elevation and immutable denylist 2026-02-17 23:51:04 -08:00
William Valentin b0d06d0650 chore(rebase): realign duplicate backend/channel/schema files with main 2026-02-17 15:44:47 -08:00
William Valentin b75f7fc4ef test(routing): cover status backend output fast-path 2026-02-17 15:43:45 -08:00
William Valentin 88f6ae5b7a feat(backends): add external-to-external failover before native fallback 2026-02-17 15:43:31 -08:00
William Valentin 898828bb70 feat(audit): log backend routing decisions and fallback events 2026-02-17 15:43:23 -08:00
William Valentin 4400bdfcc9 feat(backends): add retry/backoff controls for external CLI execution 2026-02-17 15:42:49 -08:00