@theronap/agnoclast-mcp 0.9.184 → 0.9.185
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/lib/working_files.mjs +6 -1
- package/package.json +1 -1
package/lib/working_files.mjs
CHANGED
|
@@ -36,7 +36,12 @@ const FIRST_READ_TAIL = 2 * 1024 * 1024 // on first poll, only the recent end
|
|
|
36
36
|
const AUTHORED_HISTORY = 64 * 1024 * 1024 // ...but authorship reads this far back (see scanAuthoredHistory)
|
|
37
37
|
// Raw-line prefilters for the history scan, applied before JSON.parse. Loose on purpose: the strict,
|
|
38
38
|
// command-position test runs on the parsed command.
|
|
39
|
-
|
|
39
|
+
//
|
|
40
|
+
// ⚠ NO `\b`. In the raw JSON line a newline is the two characters `\` `n`, so `cd x\ngh pr create` reads
|
|
41
|
+
// `…ngh pr create` — `n` then `g`, no word boundary. The first version had `\bgh`, and every PR from a
|
|
42
|
+
// session that writes one command per line (the one that made #1200) was invisible; this session writes
|
|
43
|
+
// `&& gh …` and never noticed. A prefilter can only ever cost a parse, so it must never be the strict one.
|
|
44
|
+
const AUTHORING_HINT = /gh pr |git |npm |pnpm |yarn /
|
|
40
45
|
const TOOL_USE_ID = /"tool_use_id":"([^"]+)"/g
|
|
41
46
|
const MAX_READ_PER_POLL = 4 * 1024 * 1024
|
|
42
47
|
const MAX_DIR_PROBES_PER_POLL = 25 // each probe is a git subprocess; bound the heartbeat's cost
|
package/package.json
CHANGED