@llmnesia/local-agent-host 0.3.4 → 0.3.5

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.
package/README.md CHANGED
@@ -4,6 +4,8 @@ A tiny local helper that lets the LLMnesia browser extension (1) index your loca
4
4
 
5
5
  It reads `.jsonl` session files under `~/.claude/projects` and `~/.codex/sessions`, and ZCode's session database at `~/.zcode/cli/db/db.sqlite` (opened read-only). It writes only inside the corpus root named in its own config (`~/.llmnesia/config.json`): there is no protocol field that lets a caller choose a different write location. It makes no network calls.
6
6
 
7
+ Claude Code project folders inside `~/.claude/projects` can be symbolic links to relocated folders. The helper reads session files directly inside each project folder without scanning nested folders. Broken or inaccessible project links are skipped and reported as a partial scan, so other projects can still sync.
8
+
7
9
  > Previously published as `@llmnesia/claude-code-host`. That name still works and installs this same helper; see [the compatibility package](https://www.npmjs.com/package/@llmnesia/claude-code-host).
8
10
 
9
11
  ## Install
@@ -81,10 +83,11 @@ delete the retained data too.
81
83
 
82
84
  Native messaging over stdio (little-endian uint32 length prefix + UTF-8 JSON):
83
85
 
84
- Helper 0.3.4 reports protocol version 5 and supplies per-source scan health for
85
- Claude Code, Codex and ZCode, plus each Claude Code and Codex session's size in bytes so the extension can skip sessions that were touched but not changed. MCP 0.2.15 includes this same helper, so its normal
86
- `install` command updates both components. For a standalone helper update, run
87
- `npx -y @llmnesia/local-agent-host@0.3.4`, then fully quit and reopen the browser.
86
+ Helper 0.3.5 reports protocol version 5 and supplies per-source scan health for
87
+ Claude Code, Codex and ZCode, plus each Claude Code and Codex session's size in bytes so the extension can skip sessions that were touched but not changed. It also discovers Claude Code projects relocated through symbolic links. To update the helper, run
88
+ `npx -y @llmnesia/local-agent-host@0.3.5`, then fully quit and reopen the browser.
89
+ MCP installers bundle their own helper copy. If an older MCP installer replaces
90
+ this helper, run the standalone helper update again afterward.
88
91
  Session files stream in bounded blocks with output backpressure, so a large session does not require a second full in-memory chunk collection.
89
92
  Existing protocol-v4 helpers can still sync conversations; they cannot supply
90
93
  the new scan-health fields.
@@ -185,10 +185,18 @@ async function listClaudeCodeSessions(issues) {
185
185
  return sessions; // no ~/.claude/projects yet
186
186
  }
187
187
  for (const entry of projectDirs) {
188
+ const dir = join(PROJECTS_DIR, entry.name);
188
189
  if (!entry.isDirectory()) {
189
- continue;
190
+ if (!entry.isSymbolicLink()) continue;
191
+ try {
192
+ // Dirent describes the link itself. Follow relocated project folders,
193
+ // keeping the same one-level scan and project name used for real dirs.
194
+ if (!(await stat(dir)).isDirectory()) continue;
195
+ } catch {
196
+ if (issues) issues.failed += 1;
197
+ continue; // A broken, cyclic or inaccessible link cannot stop the scan.
198
+ }
190
199
  }
191
- const dir = join(PROJECTS_DIR, entry.name);
192
200
  let files;
193
201
  try {
194
202
  files = await readdir(dir);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@llmnesia/local-agent-host",
3
- "version": "0.3.4",
4
- "description": "LLMnesia native messaging host — lets the browser extension read local coding-agent sessions (Claude Code, Codex, ZCode) automatically.",
3
+ "version": "0.3.5",
4
+ "description": "LLMnesia native messaging host: lets the browser extension read local coding-agent sessions (Claude Code, Codex, ZCode) automatically.",
5
5
  "keywords": [
6
6
  "llmnesia",
7
7
  "claude-code",