@inerrata-corporation/errata 2.0.2-dev.1109 → 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.
- package/errata.mjs +38 -4
- package/package.json +1 -1
package/errata.mjs
CHANGED
|
@@ -23067,12 +23067,31 @@ function renderSnapshot(s) {
|
|
|
23067
23067
|
}
|
|
23068
23068
|
lines.push("");
|
|
23069
23069
|
if (s.remote && s.remote.length > 0) {
|
|
23070
|
+
const stratumOf = (m) => {
|
|
23071
|
+
const v = m.attrs?.["stratum"];
|
|
23072
|
+
return v === "project" || v === "team" || v === "org" ? v : void 0;
|
|
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
|
+
};
|
|
23080
|
+
const hasOwnOrg = s.remote.some((m) => stratumOf(m) !== void 0);
|
|
23070
23081
|
lines.push("### From the Errata Network \u2014 collective priors");
|
|
23071
23082
|
lines.push(
|
|
23072
|
-
"_A small sample of knowledge
|
|
23083
|
+
"_A small sample of knowledge facing your stack/domain (not yet local \u2014 the Network holds far more; these ids seed deeper bursts). Unmarked entries are network-generalized: corroborated across teams, but not from this repo \u2014 treat as pattern and re-derive locally._"
|
|
23073
23084
|
);
|
|
23085
|
+
if (hasOwnOrg) {
|
|
23086
|
+
lines.push(
|
|
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._"
|
|
23088
|
+
);
|
|
23089
|
+
}
|
|
23074
23090
|
for (const m of s.remote) {
|
|
23075
|
-
|
|
23091
|
+
const stratum = stratumOf(m);
|
|
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)}`);
|
|
23076
23095
|
}
|
|
23077
23096
|
lines.push("");
|
|
23078
23097
|
}
|
|
@@ -28681,7 +28700,13 @@ function generalizeSymbols(text, lexicon, level = 1, fileLexicon) {
|
|
|
28681
28700
|
}
|
|
28682
28701
|
return generalize(out2, { level }).text;
|
|
28683
28702
|
}
|
|
28684
|
-
|
|
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;
|
|
28685
28710
|
var init_generalize_graph = __esm({
|
|
28686
28711
|
"src/generalize-graph.ts"() {
|
|
28687
28712
|
"use strict";
|
|
@@ -28822,6 +28847,7 @@ var init_generalize_graph = __esm({
|
|
|
28822
28847
|
"cypher"
|
|
28823
28848
|
]);
|
|
28824
28849
|
TOKEN_RE3 = /[A-Za-z_$][A-Za-z0-9_$]*(?:\.[A-Za-z_$][A-Za-z0-9_$]*)*/g;
|
|
28850
|
+
renderedContributorLabels = /* @__PURE__ */ new Set();
|
|
28825
28851
|
}
|
|
28826
28852
|
});
|
|
28827
28853
|
|
|
@@ -52780,6 +52806,7 @@ function watch(paths, options = {}) {
|
|
|
52780
52806
|
var esm_default = { watch, FSWatcher };
|
|
52781
52807
|
|
|
52782
52808
|
// src/engine.ts
|
|
52809
|
+
init_generalize_graph();
|
|
52783
52810
|
init_src();
|
|
52784
52811
|
init_src2();
|
|
52785
52812
|
init_src5();
|
|
@@ -56586,7 +56613,7 @@ function createLivenessWatch(deps) {
|
|
|
56586
56613
|
}
|
|
56587
56614
|
|
|
56588
56615
|
// src/engine.ts
|
|
56589
|
-
var DAEMON_VERSION = true ? "2.0.2-dev.
|
|
56616
|
+
var DAEMON_VERSION = true ? "2.0.2-dev.1130" : "2.0.0-alpha.0";
|
|
56590
56617
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
56591
56618
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
56592
56619
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -57122,6 +57149,13 @@ function createWorkspaceEngine(opts) {
|
|
|
57122
57149
|
};
|
|
57123
57150
|
cloud.search(q).then((res) => {
|
|
57124
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);
|
|
57125
57159
|
contextDirty = true;
|
|
57126
57160
|
}).catch(() => {
|
|
57127
57161
|
}).finally(() => {
|