@inerrata-corporation/errata 2.0.2-dev.260 → 2.0.2-dev.276

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 +9 -27
  2. package/package.json +1 -1
package/errata.mjs CHANGED
@@ -52664,7 +52664,7 @@ function startLoopLagMonitor(thresholdMs = 1e3) {
52664
52664
  }
52665
52665
 
52666
52666
  // src/engine.ts
52667
- var DAEMON_VERSION = true ? "2.0.2-dev.260" : "2.0.0-alpha.0";
52667
+ var DAEMON_VERSION = true ? "2.0.2-dev.276" : "2.0.0-alpha.0";
52668
52668
  var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
52669
52669
  var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
52670
52670
  var GIT_OP_MUTE_MS = 4e3;
@@ -54537,8 +54537,8 @@ function contributedWireId(n) {
54537
54537
  return isMembraneSaltedId(cloudId) ? cloudId : n.id;
54538
54538
  }
54539
54539
  var WIRE_CANONICAL_ID_MIN = 6;
54540
- function unshippableReason(n) {
54541
- const canonical = typeof n.attrs?.["canonicalId"] === "string" ? n.attrs["canonicalId"] : n.id;
54540
+ function unshippableReason(canonical, label) {
54541
+ void label;
54542
54542
  if (canonical.length < WIRE_CANONICAL_ID_MIN) {
54543
54543
  return `canonicalId "${canonical}" is ${canonical.length} chars; the door requires >= ${WIRE_CANONICAL_ID_MIN}`;
54544
54544
  }
@@ -54552,6 +54552,9 @@ function wireContextId(n) {
54552
54552
  if (n.label === "Domain" && n.attrs["source"] !== "cloud") {
54553
54553
  return String(n.attrs["canonicalId"] ?? n.id);
54554
54554
  }
54555
+ if (n.label === "Component" && n.attrs["source"] !== "cloud") {
54556
+ return String(n.attrs["canonicalId"] ?? n.id);
54557
+ }
54555
54558
  return n.id;
54556
54559
  }
54557
54560
  function langAnchor(t) {
@@ -54619,15 +54622,9 @@ function buildInstanceIngest(store, profile, daemonVersion, ignorePatterns = [],
54619
54622
  semanticEndpoints.set(n.id, contributedWireId(n));
54620
54623
  continue;
54621
54624
  }
54622
- if (label === "Solution" && n.description.startsWith(AUTO_MINT_PREFIX)) {
54623
- const problemShippable = store.inEdges(n.id, ["SOLVED_BY"]).some((e) => {
54624
- const p = store.getNode(e.from);
54625
- return p?.label === "Problem" && (seen.has(p.id) || typeof p.attrs["contributedAtSeq"] === "number");
54626
- });
54627
- if (!problemShippable) continue;
54628
- }
54625
+ if (label === "Solution" && n.description.startsWith(AUTO_MINT_PREFIX)) continue;
54629
54626
  if (!noveltyAgainst(n, ref, noveltyOpts).ready) continue;
54630
- const reject = unshippableReason(n);
54627
+ const reject = unshippableReason(n.id, n.label);
54631
54628
  if (reject) {
54632
54629
  console.warn(`[errata] skipping unshippable node ${n.id} (${n.label}): ${reject}`);
54633
54630
  continue;
@@ -54681,7 +54678,7 @@ function buildInstanceIngest(store, profile, daemonVersion, ignorePatterns = [],
54681
54678
  anchorDigests[sourceId] = dg;
54682
54679
  const wireFrom = seen.has(sourceId) || !sourceNode ? sourceId : contributedWireId(sourceNode);
54683
54680
  for (const { e, t, wireId } of targets) {
54684
- const reject = unshippableReason({ id: wireId, label: t.label, attrs: t.attrs });
54681
+ const reject = unshippableReason(wireId, t.label);
54685
54682
  if (reject) {
54686
54683
  console.warn(`[errata] skipping unshippable anchor ${wireId} (${t.label}): ${reject}`);
54687
54684
  continue;
@@ -54701,21 +54698,6 @@ function buildInstanceIngest(store, profile, daemonVersion, ignorePatterns = [],
54701
54698
  }
54702
54699
  }
54703
54700
  }
54704
- for (const [localId, shipped] of shippedById) {
54705
- const local = store.getNode(localId);
54706
- if (!local || local.label !== "Solution" || !local.description.startsWith(AUTO_MINT_PREFIX)) continue;
54707
- const problem = store.inEdges(localId, ["SOLVED_BY"]).map((e) => store.getNode(e.from)).find((p) => p?.label === "Problem");
54708
- if (!problem) continue;
54709
- const inBatch = shippedById.get(problem.id);
54710
- if (inBatch) {
54711
- if (inBatch.anchorVisibility) shipped.anchorVisibility = inBatch.anchorVisibility;
54712
- if (inBatch.anchor != null) shipped.anchor = inBatch.anchor;
54713
- else delete shipped.anchor;
54714
- } else if (isMembraneSaltedId(problem.attrs["cloudNodeId"])) {
54715
- shipped.anchorVisibility = "private";
54716
- delete shipped.anchor;
54717
- }
54718
- }
54719
54701
  const project = opts.project;
54720
54702
  if (project) {
54721
54703
  const now = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.2-dev.260",
3
+ "version": "2.0.2-dev.276",
4
4
  "description": "errata - local-first observation engine for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {