@llmnesia/local-agent-host 0.3.2 → 0.3.3
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 +3 -3
- package/llmnesia-claude-host.mjs +9 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -81,10 +81,10 @@ delete the retained data too.
|
|
|
81
81
|
|
|
82
82
|
Native messaging over stdio (little-endian uint32 length prefix + UTF-8 JSON):
|
|
83
83
|
|
|
84
|
-
Helper 0.3.
|
|
85
|
-
Claude Code, Codex and ZCode. MCP 0.2.12 includes this same helper, so its normal
|
|
84
|
+
Helper 0.3.3 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.12 includes this same helper, so its normal
|
|
86
86
|
`install` command updates both components. For a standalone helper update, run
|
|
87
|
-
`npx -y @llmnesia/local-agent-host@0.3.
|
|
87
|
+
`npx -y @llmnesia/local-agent-host@0.3.3`, then fully quit and reopen the browser.
|
|
88
88
|
Existing protocol-v4 helpers can still sync conversations; they cannot supply
|
|
89
89
|
the new scan-health fields.
|
|
90
90
|
|
package/llmnesia-claude-host.mjs
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
// ordinary case, not a fault.
|
|
39
39
|
// { cmd: "ping" } → { type: "pong", version: 5 }
|
|
40
40
|
// { cmd: "list" } → { type: "list", sessions:
|
|
41
|
-
// [{source, sessionId, mtime, project?, title?}] }
|
|
41
|
+
// [{source, sessionId, mtime, size?, project?, title?}] }
|
|
42
42
|
// { cmd: "get", source, sessionId } → one or more { type: "chunk", sessionId, seq, total, data }
|
|
43
43
|
// then { type: "sessionDone", sessionId }
|
|
44
44
|
// (or { type: "session", sessionId, notFound: true })
|
|
@@ -133,8 +133,12 @@ function send(message) {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
// --- session discovery ----------------------------------------------------
|
|
136
|
-
// One entry per session: { source, sessionId, mtime, project?, title?, path }.
|
|
137
|
-
// `path` is stripped before anything goes on the wire.
|
|
136
|
+
// One entry per session: { source, sessionId, mtime, size?, project?, title?, path }.
|
|
137
|
+
// `path` is stripped before anything goes on the wire. `size` is the file's
|
|
138
|
+
// byte length for the JSONL sources and is omitted for ZCode (a database row,
|
|
139
|
+
// not a file). The extension uses it to tell a session another app merely
|
|
140
|
+
// touched from one that changed; an extension that does not know the field
|
|
141
|
+
// ignores it, and one that sees no size falls back to comparing mtime alone.
|
|
138
142
|
|
|
139
143
|
async function listClaudeCodeSessions(issues) {
|
|
140
144
|
const sessions = [];
|
|
@@ -168,6 +172,7 @@ async function listClaudeCodeSessions(issues) {
|
|
|
168
172
|
source: "claude_code",
|
|
169
173
|
sessionId: file.replace(/\.jsonl$/, ""),
|
|
170
174
|
mtime: Math.floor(info.mtimeMs),
|
|
175
|
+
size: info.size,
|
|
171
176
|
project: entry.name,
|
|
172
177
|
path
|
|
173
178
|
});
|
|
@@ -216,6 +221,7 @@ async function walkCodexDir(dir, depth, out, issues) {
|
|
|
216
221
|
source: "codex",
|
|
217
222
|
sessionId: codexSessionId(entry.name),
|
|
218
223
|
mtime: Math.floor(info.mtimeMs),
|
|
224
|
+
size: info.size,
|
|
219
225
|
path
|
|
220
226
|
});
|
|
221
227
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmnesia/local-agent-host",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
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",
|