@inerrata-corporation/errata 2.0.2-dev.1116 → 2.0.2-dev.1130

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 +27 -6
  2. package/package.json +1 -1
package/errata.mjs CHANGED
@@ -23071,6 +23071,12 @@ function renderSnapshot(s) {
23071
23071
  const v = m.attrs?.["stratum"];
23072
23072
  return v === "project" || v === "team" || v === "org" ? v : void 0;
23073
23073
  };
23074
+ const contributorOf = (m) => {
23075
+ if (stratumOf(m) === void 0) return void 0;
23076
+ const c = m.attrs?.["contributor"];
23077
+ if (!c || typeof c.label !== "string" || c.label.length === 0) return void 0;
23078
+ return { label: c.label, ...typeof c.team === "string" && c.team ? { team: c.team } : {} };
23079
+ };
23074
23080
  const hasOwnOrg = s.remote.some((m) => stratumOf(m) !== void 0);
23075
23081
  lines.push("### From the Errata Network \u2014 collective priors");
23076
23082
  lines.push(
@@ -23078,14 +23084,14 @@ function renderSnapshot(s) {
23078
23084
  );
23079
23085
  if (hasOwnOrg) {
23080
23086
  lines.push(
23081
- "_Entries marked `[org]`/`[team]`/`[project]` are from YOUR org's membrane \u2014 specifics are real and checkable; someone here already hit this, so consider coordinating before re-deriving._"
23087
+ "_Entries marked `[org]`/`[team]`/`[project]` are from YOUR org's membrane \u2014 specifics are real and checkable; someone here already hit this, so consider coordinating before re-deriving. A `\xB7 name` after the stratum is the authoring installation \u2014 who to coordinate with._"
23082
23088
  );
23083
23089
  }
23084
23090
  for (const m of s.remote) {
23085
23091
  const stratum = stratumOf(m);
23086
- lines.push(
23087
- `- ${stratum ? `\`[${stratum}]\` ` : ""}**${m.label}:** ${m.description}${tagOf(m)}`
23088
- );
23092
+ const contributor = contributorOf(m);
23093
+ const chip = stratum ? `\`[${stratum}${contributor ? ` \xB7 ${contributor.label}${contributor.team ? `/${contributor.team}` : ""}` : ""}]\` ` : "";
23094
+ lines.push(`- ${chip}**${m.label}:** ${m.description}${tagOf(m)}`);
23089
23095
  }
23090
23096
  lines.push("");
23091
23097
  }
@@ -28694,7 +28700,13 @@ function generalizeSymbols(text, lexicon, level = 1, fileLexicon) {
28694
28700
  }
28695
28701
  return generalize(out2, { level }).text;
28696
28702
  }
28697
- var SYMBOL_LABELS2, KIND_PHRASE, BUILTIN_TYPE_NAMES, DOC_COMMENT_KINDS, MAX_DOC_CHARS, RE_RESERVED2, escapeRe4, RE_LEADING_ARTICLE2, CONVENTION_FILENAMES, CONVENTION_BASENAME_MIN_FILES, CONVENTION_STEMS, FILE_TOKEN_RE, STEM_TOKEN_RE, SOURCE_EXTENSIONS, TOKEN_RE3;
28703
+ function registerRenderedContributorLabels(labels) {
28704
+ for (const label of labels) {
28705
+ const trimmed = label.trim();
28706
+ if (trimmed.length >= 3) renderedContributorLabels.add(trimmed);
28707
+ }
28708
+ }
28709
+ var SYMBOL_LABELS2, KIND_PHRASE, BUILTIN_TYPE_NAMES, DOC_COMMENT_KINDS, MAX_DOC_CHARS, RE_RESERVED2, escapeRe4, RE_LEADING_ARTICLE2, CONVENTION_FILENAMES, CONVENTION_BASENAME_MIN_FILES, CONVENTION_STEMS, FILE_TOKEN_RE, STEM_TOKEN_RE, SOURCE_EXTENSIONS, TOKEN_RE3, renderedContributorLabels;
28698
28710
  var init_generalize_graph = __esm({
28699
28711
  "src/generalize-graph.ts"() {
28700
28712
  "use strict";
@@ -28835,6 +28847,7 @@ var init_generalize_graph = __esm({
28835
28847
  "cypher"
28836
28848
  ]);
28837
28849
  TOKEN_RE3 = /[A-Za-z_$][A-Za-z0-9_$]*(?:\.[A-Za-z_$][A-Za-z0-9_$]*)*/g;
28850
+ renderedContributorLabels = /* @__PURE__ */ new Set();
28838
28851
  }
28839
28852
  });
28840
28853
 
@@ -52793,6 +52806,7 @@ function watch(paths, options = {}) {
52793
52806
  var esm_default = { watch, FSWatcher };
52794
52807
 
52795
52808
  // src/engine.ts
52809
+ init_generalize_graph();
52796
52810
  init_src();
52797
52811
  init_src2();
52798
52812
  init_src5();
@@ -56599,7 +56613,7 @@ function createLivenessWatch(deps) {
56599
56613
  }
56600
56614
 
56601
56615
  // src/engine.ts
56602
- var DAEMON_VERSION = true ? "2.0.2-dev.1116" : "2.0.0-alpha.0";
56616
+ var DAEMON_VERSION = true ? "2.0.2-dev.1130" : "2.0.0-alpha.0";
56603
56617
  var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
56604
56618
  var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
56605
56619
  var GIT_OP_MUTE_MS = 4e3;
@@ -57135,6 +57149,13 @@ function createWorkspaceEngine(opts) {
57135
57149
  };
57136
57150
  cloud.search(q).then((res) => {
57137
57151
  remotePriors = res.nodes ?? [];
57152
+ const contributorLabels = [];
57153
+ for (const n of remotePriors) {
57154
+ const c = n.attrs?.["contributor"];
57155
+ if (typeof c?.label === "string") contributorLabels.push(c.label);
57156
+ if (typeof c?.team === "string") contributorLabels.push(c.team);
57157
+ }
57158
+ if (contributorLabels.length > 0) registerRenderedContributorLabels(contributorLabels);
57138
57159
  contextDirty = true;
57139
57160
  }).catch(() => {
57140
57161
  }).finally(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.2-dev.1116",
3
+ "version": "2.0.2-dev.1130",
4
4
  "description": "errata - local-first observation engine for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {