@mrciphersmith/keryx 0.4.40 → 0.4.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrciphersmith/keryx",
3
- "version": "0.4.40",
3
+ "version": "0.4.41",
4
4
  "description": "Version-controlled project context for AI coding agents: code graph, architecture wiki, project memory, relevant tests, quality signals, and task flows.",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -10,6 +10,8 @@
10
10
  // It NEVER throws out (C0-11): every parse error is caught and the file is
11
11
  // skipped, so an opt-in ceiling can never break the deterministic seam.
12
12
 
13
+ import path from "node:path";
14
+ import { desktopResourceDirectory } from "../../lib/self-invocation";
13
15
  import { isCapabilityEnabled, resolveCapability, type CapabilityAdapter, type CapabilitySpec } from "../../capability/seam";
14
16
  import { warnCapabilityDegraded } from "../../capability/warn-once";
15
17
  import type { CallEdge, SymbolLayer, SymbolNode } from "../types";
@@ -386,12 +388,13 @@ function normalizeParserApi(dep: unknown): ParserApi | null {
386
388
  return null;
387
389
  }
388
390
 
391
+ type ParserInit = (options?: { locateFile: (name: string, prefix: string) => string }) => Promise<void>;
389
392
  const classInit = (ParserClass as unknown as { init?: unknown }).init;
390
393
  const init =
391
394
  typeof classInit === "function"
392
- ? (classInit as () => Promise<void>).bind(ParserClass)
395
+ ? (classInit as ParserInit).bind(ParserClass)
393
396
  : typeof ns.init === "function"
394
- ? (ns.init as () => Promise<void>).bind(ns)
397
+ ? (ns.init as ParserInit).bind(ns)
395
398
  : undefined;
396
399
 
397
400
  // Resolve the grammar loader LAZILY: in 0.22 `Parser.Language.load` only
@@ -410,7 +413,12 @@ function normalizeParserApi(dep: unknown): ParserApi | null {
410
413
  };
411
414
 
412
415
  return {
413
- ...(init ? { init } : {}),
416
+ ...(init ? { init: () => {
417
+ const resources = desktopResourceDirectory();
418
+ if (!resources) return init();
419
+ return init({ locateFile: (name, prefix) =>
420
+ name === "tree-sitter.wasm" ? path.join(resources, "tree-sitter.wasm") : path.resolve(prefix, name) });
421
+ } } : {}),
414
422
  loadLanguage,
415
423
  create: () => new ParserClass(),
416
424
  };
@@ -228,9 +228,10 @@
228
228
  "partially-fixed",
229
229
  "wont-fix",
230
230
  "disputed",
231
- "deferred"
231
+ "deferred",
232
+ "unreported"
232
233
  ],
233
- "description": "What the fix round claimed. A claim, not a verified state — verifying it is the reviewer's job."
234
+ "description": "What the fix round claimed, or unreported when no claim was recorded. A claim, not a verified state — verifying it is the reviewer's job."
234
235
  },
235
236
  "claimed_evidence": {
236
237
  "type": [