@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.
@@ -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
- const AUTHORING_HINT = /\bgh pr |\bgit |\bnpm |\bpnpm |\byarn /
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theronap/agnoclast-mcp",
3
- "version": "0.9.184",
3
+ "version": "0.9.185",
4
4
  "description": "Connect your AI assistant to Cortex — your org's projects, activity, gaps, and directives, scoped to you.",
5
5
  "type": "module",
6
6
  "bin": {