@inerrata-corporation/errata 2.0.22-dev.4635 → 2.0.22-dev.4638

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/errata.mjs CHANGED
@@ -35651,7 +35651,8 @@ function readContextCard(root, hash2) {
35651
35651
  }
35652
35652
  function openProblemCount(store, now = Date.now()) {
35653
35653
  const hit = openProblemsCache.get(store);
35654
- if (hit && now - hit.at < OPEN_PROBLEMS_TTL_MS) return hit.count;
35654
+ const seq = store.changeSeq?.(OPEN_PROBLEM_SCOPES);
35655
+ if (hit && (seq !== void 0 ? hit.seq === seq : now - hit.at < OPEN_PROBLEMS_TTL_MS)) return hit.count;
35655
35656
  let count = 0;
35656
35657
  const labels = ["Problem", "Vulnerability"];
35657
35658
  const plain = store.selectNodes({
@@ -35676,10 +35677,10 @@ function openProblemCount(store, now = Date.now()) {
35676
35677
  for (const p of [...plain, ...qualified]) {
35677
35678
  if (live(p) && !p.attrs["resolvedAt"] && !isConstraintProblem(p)) count++;
35678
35679
  }
35679
- openProblemsCache.set(store, { at: now, count });
35680
+ openProblemsCache.set(store, { at: now, count, ...seq !== void 0 ? { seq } : {} });
35680
35681
  return count;
35681
35682
  }
35682
- var CONTEXT_CARD_FILE, OPEN_PROBLEMS_TTL_MS, openProblemsCache, OPEN_PROBLEM_ATTRS, HISTORY_QUALITY_READ_KEYS;
35683
+ var CONTEXT_CARD_FILE, OPEN_PROBLEMS_TTL_MS, openProblemsCache, OPEN_PROBLEM_SCOPES, OPEN_PROBLEM_ATTRS, HISTORY_QUALITY_READ_KEYS;
35683
35684
  var init_recall_signal = __esm({
35684
35685
  "src/recall-signal.ts"() {
35685
35686
  "use strict";
@@ -35689,6 +35690,7 @@ var init_recall_signal = __esm({
35689
35690
  CONTEXT_CARD_FILE = "context-card.json";
35690
35691
  OPEN_PROBLEMS_TTL_MS = 6e4;
35691
35692
  openProblemsCache = /* @__PURE__ */ new WeakMap();
35693
+ OPEN_PROBLEM_SCOPES = [nodeScope("Problem"), nodeScope("Vulnerability")];
35692
35694
  OPEN_PROBLEM_ATTRS = [
35693
35695
  "resolvedAt",
35694
35696
  "kind",
@@ -86859,7 +86861,7 @@ function createWatchBreaker(deps) {
86859
86861
  }
86860
86862
 
86861
86863
  // src/engine.ts
86862
- var DAEMON_VERSION = true ? "2.0.22-dev.4635" : "2.0.0-alpha.0";
86864
+ var DAEMON_VERSION = true ? "2.0.22-dev.4638" : "2.0.0-alpha.0";
86863
86865
  var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
86864
86866
  var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
86865
86867
  var GIT_OP_MUTE_MS = 4e3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.22-dev.4635",
3
+ "version": "2.0.22-dev.4638",
4
4
  "description": "errata - local-first observation engine for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "errata-context",
3
- "version": "2.0.22-dev.4635",
3
+ "version": "2.0.22-dev.4638",
4
4
  "description": "A minimal 3D view of loaded Errata priors and recent graph bursts.",
5
5
  "author": {
6
6
  "name": "inErrata"
@@ -1,4 +1,4 @@
1
- 97441718c0941fc62b087e0948ee625bb750c45d4938148ef8414d8ee4767bf4 .codex-plugin/plugin.json
1
+ 16485de5505d71b8dbb138984d557208bdfde9d8bf52baff33f96a477df65145 .codex-plugin/plugin.json
2
2
  a7bebae9fb01c838d6c75fc784129e28be571233fa66ff5ee8039b574f35ccf7 assets/icon.png
3
3
  fc38b64e4df1e0b72c35764bef6c4c05430d97c9009ad0ecc8a9e75b4deab232 configure-local.mjs
4
4
  73dc6028b3b070257c7c31f252d11e55a9e096f4aed0f187f10cb21716e1e6d7 dist/client.js