A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.
TypeScript
docs(odd): deliver Linux from source
Alan Buscagliad3c64c456c98
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.mdindex be75bca..be3538e 100644--- a/odd/tasks/gentle-dot.md+++ b/odd/tasks/gentle-dot.md@@ -50,6 +50,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo- Decided (L20): profiles are the assistant's own, with a one-time "Import my Gentle Shell profiles" action when an existing setup is found.- **S13 — Linux desktop app for Debian, Ubuntu, and Omarchy.** User: "Para lo de Linux... la que use debian, ubuntu o omarchy" (answering whether to port for X11 only or also Wayland, L21).+ - Delivery (L56): from source, with a per-distro setup script; self-contained packages are deferred.- Acceptance: the desktop app builds and runs on Debian and Ubuntu (GNOME, Wayland by default) and Omarchy (Arch with Hyprland, Wayland). The floating rose, panel, tray, and toggle shortcut work on each. Where Wayland forbids it (self-positioning, always-on-top, app-registered global shortcuts), a documented fallback is used: XWayland for the GNOME session, Hyprland window rules plus a bind for Omarchy, and a `toggle` entry point a desktop shortcut can call. Packages: `.deb` for Debian/Ubuntu and AppImage (also usable on Arch).- Checks: Rust unit tests per platform branch, plus a Linux build of the app (.deb and AppImage) in a Debian container. GUI behavior on real desktops is verified by a community tester (L27), using `docs/linux-testing.md`: a step-by-step checklist per distro with expected results and a copy-paste report template.@@ -167,4 +168,5 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r- **L53 (2026-10-08, T18b evidence):** Commit `994abce`. Guided connectors: Discord via `@pasympa/[email protected]` (pinned; MIT, 18 releases, last 2026-09-03, readOnlyHint on its tools; the alternatives have not published since 2025), Slack official `https://mcp.slack.com/mcp` (no DCR; localhost redirect only with PKCE, so the client secret is optional), and Gmail official remote (Developer Preview) with the user's own app; each has an in-app guide, secret prompts, and a fail-closed curated list. Security finding: the engine resolves env/headers/`oauth.clientSecret` with `resolveConfigValue` (`!` runs a shell command, `$NAME` expands), so every typed or imported literal is escaped (`$`→`$$`, `!`→`$!`). S19: a `propose_connector` tool in the guard sends drafts through `ctx.ui.setStatus` (a namespaced key read only by the daemon); approval adds the server read-only with all tools hidden; at most 5 pending drafts, kept in memory only. S20: a read-only scan of 7 client formats (sse rejected, dedupe, names only in payloads, source hashes unchanged). Also coalesced burst restarts ("Agent is not ready"). RED: 27 failures plus a missing module → GREEN 362 tests ×2, typecheck, lint, e2e 18/18; T18b probe passed (the engine offers propose_connector; drafts and imports are accepted by `mcp list`; imported tools are hidden from the model; secrets are absent from scan payloads; the private Engram is stopped). Parent re-ran 362 tests + typecheck and reviewed the screenshots (import list with key names only; Slack guide). Risks: Slack and Gmail not tested end-to-end (no credentials; Gmail needs the Developer Preview), masking is heuristic, env refs in imported args are copied literally, and the S25 residual now includes a custom command server injected while the daemon is down. Risk tier high → independent verifier (code review + repo probes) running.- **L54 (2026-10-08, T18b verification):** No path found where a value runs a command or expands a variable, or where a connector is added without approval. Escaping covers exactly what the engine resolves (env, headers, `oauth.clientSecret`; `command`/`args`/`cwd`/`url` are not resolved), verified in the real mcp.json (`dummy-token-$!x` → `dummy-token-$$$!x`). Drafts pass (state changes only through a window's `connector_draft_reply`; approved servers are hidden and read-only; max 5). Import passes (read-only, 7 formats, sse rejected; the isolated HOME means `~`-relative credentials are not found). Guided connectors pass (pinned Discord; Slack/Gmail oauth fields valid; the guide's redirect equals the engine's `redirect_uri`). T22 protections are intact. Runs: 362 tests ×2, typecheck, lint, e2e 18/18, both probes. BLOCKER B1: `summarize()` (`connectors.ts:1434-1450`) leaks credentials inside imported args to the `connector_imports` and `list()` payloads (`--header "Authorization: Bearer …"`, URL query keys, userinfo in connection strings, tokens in URL paths); local authenticated windows only, not the model or logs. Advisories: `${input:}` in draft args or URL puts secrets in argv or a model-chosen URL; Gentle Shell `!command` imports run commands without a visible note; the S25 residual includes a custom command server injected while the daemon is down (medium; not blocking before S25); Gmail's `gmail.compose` scope can send; unpinned transitive Discord deps; minor UI and dedupe issues; the self-approval risk via the daemon token (S25). The parent cleaned the scratch dirs. One correction batch is running (B1 + advisories A–E).- **L55 (2026-10-08, T18b correction + recheck):** Commit `63c8e9c`. B1: `summarize()` masks structurally (URL userinfo dropped, query values masked, long opaque path segments masked, `--header`/`-H` and auth-like header values masked, values after secret-like flags masked, prefix masks kept). Advisories: A, `draftSecretProblem` in the guard (the model gets "Secrets can only go into environment variables.") plus `parseDraft` as a second layer; B, notes for values that run a command or read an env var (never showing the command text); C, accurate Gmail/Slack/Discord copy; D, UI drafts capped at 5 and cleared on `ready`; E, an S25 bullet for custom/imported servers edited while the daemon is down. RED 9 → GREEN; 370 tests ×2, typecheck, lint, e2e 18/18. Parent limited recheck of B1: the five verifier cases (mcp-remote `--header Authorization: Bearer`, `?api_key=`, `postgresql://user:pass@`, a token in the URL path, `--api-key`) produced summaries without the secret while keeping command, host, path, and `--port 8080`; the full suite passed again. Known over-masking (flags containing key or pass). T18 complete.-- **Next step:** T14 (Linux, Debian/Ubuntu/Omarchy, with the tester checklist); then T21 (computer control); T23/S25 before any public release; a Docker build check when Docker runs.+- **L56 (2026-10-08, user decision on Linux delivery):** "Compilar desde el código (Recomendado)". The app is not self-contained today (build.rs records the node path and the daemon script path of the build machine's repo), so packages built here would not run on the tester's machine. S13 delivery changes: instead of .deb/AppImage artifacts, a per-distro setup script (Debian/Ubuntu via apt, Omarchy via pacman) that installs dependencies (Node 24, pnpm, Rust, WebKitGTK and the Tauri system deps), builds, and launches the app on the tester's machine, plus the testing checklist. A Linux compile check runs in a Debian container here. Self-contained packages (also needed to give the Mac app to others) are deferred.+- **Next step:** T14 (Linux, from source, with the tester checklist); then T21 (computer control); T23/S25 before any public release; a Docker build check of the server image.