A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.
TypeScript
docs(odd): add the connectors spec
Alan Buscaglia96b027f3246f
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.mdindex 965af40..25624ea 100644--- a/odd/tasks/gentle-dot.md+++ b/odd/tasks/gentle-dot.md@@ -58,6 +58,9 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo- **S16 — Typing closes open options.** Same quote. When the user starts typing in the composer, open menus and panels (conversations list, accounts, profiles) close; a sign-in that is waiting for the user's answer is kept, so its prompt is not lost.- **S17 — Clear header icons.** Same quote ("para las partes de profiles no entiendo porque el icono de contraste"). The header uses one consistent set of clear inline SVG icons with tooltips and accessible names (conversations, accounts, profiles with a sliders-style icon, new conversation, hide), replacing the text glyphs (☰ ⚿ ◐ + –).+- **S18 — Connectors (Gmail, Slack, Discord, Notion).** User: "como podemos hacer para un apartado de conectores, por ejemplo gmail, slack, discord, etc" and, on the proposal, "dale me gsuta )". Accepted proposal (L32): a Connectors screen like Accounts, backed by MCP servers in the assistant's own engine home (`<agentHome>/mcp.json`, logins in `mcp-auth.json`). The daemon manages the catalog, enabling, disabling, and removal, plus each connector's sign-in (remote OAuth, a guided token, or the provider's own OAuth app), with the same secret rules as model sign-in, and restarts the agent when idle. Any outward action (send mail, post to Slack or Discord, write to Notion) needs an approval card with a preview; read-only actions do not. Each connector can be set to read-only or read-and-send. First set: Gmail, Slack, Discord, plus Notion as the reference remote-OAuth connector.+ - Open questions (being mapped, read-only): (1) whether the engine's MCP integration completes MCP OAuth in RPC mode or the daemon must run it (pi-mcp/oauth) and write `mcp-auth.json`; (2) which of these services offer an official remote MCP with OAuth today, versus community servers needing tokens or the user's own OAuth app; (3) how to classify tools as write actions, so only those require approval.+## Tasks| ID | Specs | Route | Status | Commit / evidence | Scope |@@ -79,6 +82,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo| T15 | S6, S7, S11, S12, S9 | delegated writers (parallel: daemon/isolation vs. Dot circle) | done | `8626a7d`, `05000c8`, `ac86f64`; limited recheck PASS (L31) | One correction batch for verifier blockers B1–B4 and the S9 circle change, then a recheck limited to them || T16 | S10 | inline | done | `7337b52` RED 4 failing → GREEN 14/14 | Accounts in two steps: method first, then provider || T17 | S14–S17 | delegated writer (context backstop) | in progress | — | Queue display, gentlemanprogramming.com style, typing closes options, header icons |+| T18 | S18 | explore (delegated, read-only) → spec details → implement | in progress | — | Connectors: map the engine's MCP integration and the providers first || T9 | S1–S6, S9–S12 | delegated verifier (high risk: process supervision, auth) | done | L24 + L31 | Full verification: unit, integration, Playwright, `@real-agent`, `tauri build` + launch, manual macOS checklist with observed results |Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `rustc` is not, so T7 must first install or repair the Rust toolchain (rustup) and asks before installing. Xcode is present.@@ -116,4 +120,5 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r- **L29 (2026-10-08, T15 daemon part evidence):** Commit `05000c8`. B1: data dir 0700, token 0600, the token printed only on a TTY, Tauri log 0600. B2: the child gets its own `HOME=<data>/home` plus XDG dirs, `GIT_CONFIG_GLOBAL` pointing at the real gitconfig, and its own Engram on port 7438 (gentle-engram rejects the user's server as foreign under another HOME); probe: seeded HOME hash identical before and after a first start. B3: workspace defaults to `<data>/workspace`, and frontmatter sync is guarded by realpath with rollback of bytes and modes. B4: the deploy doc signs in from Accounts. A1–A6 fixed, the L25 Anthropic OAuth refusal added (`auth_unsupported`). 196 tests, e2e 9/9, cargo 39/39, supervisor ×10 = 11/11 each. Incident: the writer's `pkill -n -f "engram serve"` may have restarted the user's Engram (same instance id, healthy, verified by the parent). Parent follow-ups `ac86f64`: "Back to accounts" returns to step 1 (RED → GREEN), access-key texts no longer mention a printed link, the unused container memory server removed, design §3/§9/§10 updated, and stray `packages/daemon/src/*.d.ts` untracked and ignored. On the user's Mac the Dot window now measures 72×72 at x = 1836 (1836 + 72 + 12 = 1920), confirming the window fix; the restarted app uses its own `home`, `workspace`, and Engram on 7438. The limited recheck is running.- **L30 (2026-10-08, user):** "una cosa, en la app no muestra los queue messages, y me gustaria que la app tenga la misma visual que la pagina web de gentlemanprogramming.com el mismo estilo, tambien si uno empieza a escribir deberia de cerrar las opciones abiertas, para las partes de profiles no entiendo porque el icono de contraste". Style evidence was measured with Playwright from the live https://gentlemanprogramming.com (computed styles and :root variables; the values are in S15). The site is dark-only.- **L31 (2026-10-08, limited recheck):** An independent verifier (scratch copy, temp HOMEs, ports away from the user's 4317/7437/7438) passed B1, B2, B3, B4, L25, and L26 at `ac86f64`, and each failure reproduced at baseline `deeb33a`. B2 probe: the seeded HOME hash is identical before and after a first start (`b5f7056…`). L25: 42 providers, 8 OAuth, none Anthropic, and Anthropic OAuth is refused with no runtime call. Regression: 197 tests, typecheck, lint, e2e 9/9, cargo 39/39. No blockers remain. Advisories for later: (1) the assistant's Engram server outlives the daemon (orphaned after stop); (2) deploy-vps telemetry opt-out line likely does not work in the container (pre-existing); (3) old daemon.log files from earlier builds still hold the token (now 0600; the token was not rotated); (4) e2e does not re-check the method buttons after "Back to accounts" (UI test covers it); (5) a small TOCTOU window between realpath and write in the frontmatter sync. With L24 (S1/S9 confirmed on the user's Mac: tray, menu, panel, 72×72 window), T9 is complete for S1–S12 except the items not verifiable here (live animation in WKWebView, real OAuth subscription sign-in).-- **Next step:** T17 (UI writer running), then T14 (Linux) with the tester checklist; connectors proposal awaiting the user's choice.+- **L32 (2026-10-08, user):** "como podemos hacer para un apartado de conectores, por ejemplo gmail, slack, discord, etc". The parent verified that the engine reads `<agentHome>/mcp.json` (`mcpServers`) and keeps `mcp-auth.json` and `mcp-cache.json` there, and that `@earendil-works/pi-mcp` provides stdio and Streamable HTTP transports plus an MCP OAuth client (`pi-mcp/oauth`; it does not open a browser or choose storage). The proposal was accepted: "dale me gsuta )".+- **Next step:** T18 read-only map; T17 (UI writer running); then T14 (Linux).