@inerrata-corporation/errata 2.0.2-dev.560 → 2.0.2-dev.568

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.
Files changed (2) hide show
  1. package/errata.mjs +7 -3
  2. package/package.json +1 -1
package/errata.mjs CHANGED
@@ -54367,7 +54367,8 @@ function createLivenessWatch(deps) {
54367
54367
  });
54368
54368
  }
54369
54369
  const rows = evaluateMechanisms(deps.store, invocations);
54370
- const bad = rows.filter((r) => hasStarvedMechanism([r]));
54370
+ const workspaceActive = invocations.has("capture") || invocations.has("render");
54371
+ const bad = workspaceActive ? rows.filter((r) => hasStarvedMechanism([r])) : [];
54371
54372
  appendPassLedger(deps.configDir, "liveness-watch", Date.now() - started2, {
54372
54373
  mechanisms: rows.length,
54373
54374
  alarms: bad.length
@@ -54419,7 +54420,7 @@ function startLoopLagMonitor(thresholdMs = 1e3) {
54419
54420
  }
54420
54421
 
54421
54422
  // src/engine.ts
54422
- var DAEMON_VERSION = true ? "2.0.2-dev.560" : "2.0.0-alpha.0";
54423
+ var DAEMON_VERSION = true ? "2.0.2-dev.568" : "2.0.0-alpha.0";
54423
54424
  var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
54424
54425
  var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
54425
54426
  var GIT_OP_MUTE_MS = 4e3;
@@ -56490,6 +56491,9 @@ import { join as join30 } from "node:path";
56490
56491
  var HEAD_BYTES = 8 * 1024;
56491
56492
  var INDEX_TTL_MS = 10 * 60 * 1e3;
56492
56493
  var MIN_SYMBOL_LEN = 4;
56494
+ function isNameShapedSymbol(name2) {
56495
+ return /[A-Z0-9_$]/.test(name2);
56496
+ }
56493
56497
  var NAMED_IMPORT_RE = /import\s+(?:type\s+)?(.+?)\s+from\s+['"]([^'"]+)['"]/g;
56494
56498
  var REQUIRE_RE = /(?:const|let|var)\s+(.+?)\s*=\s*require\(\s*['"]([^'"]+)['"]\s*\)/g;
56495
56499
  function isBareExternal(spec, internalNames) {
@@ -56569,7 +56573,7 @@ function publicSymbolIndex(store, workspaceRoot, deps = {}) {
56569
56573
  for (const m of head2.matchAll(re)) {
56570
56574
  if (!isBareExternal(m[2], internal)) continue;
56571
56575
  for (const name2 of bindingNames(m[1])) {
56572
- if (name2.length >= MIN_SYMBOL_LEN) symbols.add(name2);
56576
+ if (name2.length >= MIN_SYMBOL_LEN && isNameShapedSymbol(name2)) symbols.add(name2);
56573
56577
  }
56574
56578
  }
56575
56579
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.2-dev.560",
3
+ "version": "2.0.2-dev.568",
4
4
  "description": "errata - local-first observation engine for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {