@echomem/mcp 1.4.44 → 1.4.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +28 -25
  2. package/dist/city/README.md +9 -0
  3. package/dist/city/echo-ai-city-only.html +2232 -0
  4. package/dist/city/echo-extraction-plate.html +330 -0
  5. package/dist/city/echo-face-cutout.png +0 -0
  6. package/dist/city/personality_stickers/bossy.png +0 -0
  7. package/dist/city/personality_stickers/ghosty.png +0 -0
  8. package/dist/city/personality_stickers/loopy.png +0 -0
  9. package/dist/city/personality_stickers/lusty.png +0 -0
  10. package/dist/city/personality_stickers/maxxy.png +0 -0
  11. package/dist/city/personality_stickers/tabby.png +0 -0
  12. package/dist/city/vendor/OrbitControls.js +1417 -0
  13. package/dist/city/vendor/RoundedBoxGeometry.js +155 -0
  14. package/dist/city/vendor/echo_general-file-21.riv +0 -0
  15. package/dist/city/vendor/rive.js +8139 -0
  16. package/dist/city/vendor/rive.wasm +0 -0
  17. package/dist/city/vendor/three.module.min.js +6 -0
  18. package/dist/context-analysis/claude-native-canonical.js +2 -2
  19. package/dist/context-analysis/vendored-canonical.js +2 -2
  20. package/dist/context-analysis/workspace-report.js +3 -3
  21. package/dist/forensics.js +1531 -0
  22. package/dist/hud/hooks.js +31 -43
  23. package/dist/index.js +79 -15
  24. package/dist/local-data-paths.js +38 -0
  25. package/dist/migrate.js +140 -70
  26. package/dist/report.js +721 -0
  27. package/dist/save-checkpoint-hook.js +1 -1
  28. package/dist/setup-page/client-core.js +372 -18
  29. package/dist/setup-page/client-extraction.js +204 -37
  30. package/dist/setup-page/client-lifecycle.js +101 -31
  31. package/dist/setup-page/client-report-audit.js +819 -0
  32. package/dist/setup-page/client-report-city.js +356 -0
  33. package/dist/setup-page/client-report.js +6 -0
  34. package/dist/setup-page/client.js +2 -0
  35. package/dist/setup-page/styles-city-report.js +880 -0
  36. package/dist/setup-page/styles-context-audit.js +470 -0
  37. package/dist/setup-page/styles-extraction.js +31 -1
  38. package/dist/setup-page/styles-foundation.js +89 -0
  39. package/dist/setup-page/styles-mvp.js +155 -10
  40. package/dist/setup-page/styles-website-alignment.js +204 -0
  41. package/dist/setup-page/styles.js +4 -0
  42. package/dist/setup-page.js +4 -4
  43. package/dist/setup-preview.js +212 -4
  44. package/dist/setup.js +793 -300
  45. package/dist/source-session.js +3 -9
  46. package/dist/v1-contract.js +8 -0
  47. package/package.json +7 -9
  48. package/dist/config-files.js +0 -63
  49. package/dist/local-jsonl.js +0 -87
  50. package/dist/onboarding-stats.js +0 -16
package/README.md CHANGED
@@ -35,36 +35,22 @@ Unencrypted accounts are unaffected. `search_memories` returns retrieved memorie
35
35
  your MCP client does the final answer generation; pass `includeAnswer: true` only if you need the
36
36
  legacy EchoMem-synthesized recall answer.
37
37
 
38
- ## Quick start
38
+ ## Quick start (recommended)
39
39
 
40
- The standalone package installs and manages its own durable per-user MCP runtime. It configures
41
- detected Codex and Claude hosts, connects this device, imports selected local coding history, and
42
- keeps compatible runtime updates ready for the next agent session.
40
+ Install Echo Desktop, sign in once, then open **Connect MCP** and choose **Connect Echo**. The app
41
+ ships and installs the MCP runtime, configures the detected Codex and Claude hosts, mirrors the same
42
+ device credential used by the desktop app, and verifies the MCP handshake. No terminal login is
43
+ required.
43
44
 
44
- Prerequisite: **Node.js 18 or newer**. Run the command in the same environment as the agent you
45
- want to configure. Native Windows and WSL have separate home directories and client configs, so a
46
- WSL install does not configure native Windows apps.
45
+ The standalone HUD has been retired; Echo Desktop is the persistent setup and status surface. The
46
+ bridge still reads local agent logs for on-demand context-health tools, but it no longer publishes or
47
+ auto-launches an Electron overlay.
47
48
 
48
- macOS, Linux, or WSL:
49
-
50
- ```bash
51
- npx -y @echomem/mcp@latest init
52
- ```
53
-
54
- Windows PowerShell:
55
-
56
- ```powershell
57
- npx.cmd -y @echomem/mcp@latest init
58
- ```
59
-
60
- The one-off `npx` command is the recommended install path; it stages a durable per-user runtime
61
- and does not require a global npm install. On Windows, use a new PowerShell window after installing
62
- Node if `npx.cmd` is not found.
49
+ For headless systems and development, the granular CLI commands remain available:
63
50
 
64
51
  | Command | What it does |
65
52
  |---|---|
66
- | `npx -y @echomem/mcp@latest init` | One-command setup for installed agents + login (use `npx.cmd` in Windows PowerShell) |
67
- | `npm i -g @echomem/mcp@latest`, then `echomem-mcp init` | Optional global install for a persistent CLI command |
53
+ | `npm i -g @echomem/mcp@latest && echomem-mcp init` | Legacy/headless setup for installed agents + login |
68
54
  | `npm i -g @echomem/mcp@latest && echomem-mcp setup` | Install the CLI globally and configure just the detected editor |
69
55
  | `npx -y @echomem/mcp@latest setup` | One-off setup without keeping a global CLI command |
70
56
  | `echomem-mcp setup [--client cursor\|windsurf\|claude-desktop\|claude-code\|codex]` | Write client config + log in |
@@ -109,6 +95,23 @@ Both hook entries are merged idempotently into `~/.codex/hooks.json` and
109
95
  `~/.claude/settings.json`; unrelated user hooks and settings are preserved. Hooks fail open when
110
96
  their local input is missing so they cannot prevent a conversation from starting or finishing.
111
97
 
98
+ ## Agent Doctor — local workspace forensics (new in 1.4.9)
99
+
100
+ `echomem-mcp init` / `setup` now ends with an **Agent Doctor report**: a local scan of your
101
+ Codex and Claude Code session logs that shows what your AI coding actually cost and where the
102
+ context went dirty — rendered as an interactive 3D "repo city" plus a full forensic breakdown.
103
+
104
+ - **Unified cost ledger.** Every provider request is priced individually from official API list
105
+ rates (model, cache write/read, long-context premiums, intro-pricing windows), so the headline
106
+ TOTAL SPENT, per-repo costs, per-model costs, and cost components all come from one path and
107
+ reconcile exactly. It is an **API-equivalent estimate of volume, not a bill you paid**.
108
+ - **Fail-closed validation.** The report refuses to render unless every ledger reconciles
109
+ (tokens, costs, canonical waste analysis). Stale or preview data can never appear as your data.
110
+ - **Wasteful-context analysis.** Canonical context windows label input tokens useful vs wasteful
111
+ (re-reads of unchanged files, re-finding, dead work) and project the waste over your billed input.
112
+ - **Fully local, zero upload.** The scan reads local JSONL logs only: no transcripts are uploaded
113
+ and no LLM calls are made to build the report.
114
+
112
115
  ### Manual / headless (SSH, containers, CI)
113
116
 
114
117
  No browser? Provide secrets directly — this is the documented headless path:
@@ -137,7 +140,7 @@ npm test # crypto compat + encrypted-local integration tests
137
140
 
138
141
  ### Add to your IDE (Cursor or Windsurf)
139
142
 
140
- > Prefer `npx -y @echomem/mcp@latest init` above (`npx.cmd` in Windows PowerShell) — it writes these files for you and keeps secrets out of
143
+ > Prefer `npm i -g @echomem/mcp@latest && echomem-mcp init` above — it writes these files for you and keeps secrets out of
141
144
  > the client config. The manual steps below are the fallback.
142
145
 
143
146
  #### For Cursor
@@ -0,0 +1,9 @@
1
+ # Runtime City Assets
2
+
3
+ Only these files are part of setup runtime:
4
+
5
+ - `echo-ai-city-only.html` - pre-auth Agent Doctor City.
6
+ - `echo-extraction-plate.html` - post-auth extraction progress plate.
7
+ - `vendor/`, `personality_stickers/`, and `echo-face-cutout.png` - assets loaded by those pages.
8
+
9
+ Everything under `archive/` is historical reference. It is excluded from the published package and rejected by the localhost City asset server.