@inerrata-corporation/errata 2.0.0-dev.88 → 2.0.0-dev.90
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/consolidate-worker.mjs +3 -0
- package/errata.mjs +527 -273
- package/package.json +1 -1
- package/pass-worker.mjs +27 -1
package/package.json
CHANGED
package/pass-worker.mjs
CHANGED
|
@@ -25748,6 +25748,18 @@ function foldDuplicateProblem(store2, dup, survivor, ts) {
|
|
|
25748
25748
|
store2.closeNode(dup.id, ts);
|
|
25749
25749
|
}
|
|
25750
25750
|
|
|
25751
|
+
// ../../packages/local-graph/src/tools.ts
|
|
25752
|
+
init_src();
|
|
25753
|
+
function rankToolsForHandles(store2, limit = 5) {
|
|
25754
|
+
const scored = store2.findNodesByLabel("Tool").map((node) => ({
|
|
25755
|
+
node,
|
|
25756
|
+
concerns: store2.inEdges(node.id, ["CONCERNS"]).length,
|
|
25757
|
+
hits: node.cumulativeHits ?? 0
|
|
25758
|
+
}));
|
|
25759
|
+
scored.sort((a, b) => b.concerns - a.concerns || b.hits - a.hits);
|
|
25760
|
+
return scored.slice(0, Math.max(0, limit)).map((s) => s.node);
|
|
25761
|
+
}
|
|
25762
|
+
|
|
25751
25763
|
// ../../packages/local-graph/src/principle-sync.ts
|
|
25752
25764
|
init_src2();
|
|
25753
25765
|
|
|
@@ -25999,6 +26011,20 @@ function codeAnchorProjection(store2, semanticIds, opts = {}) {
|
|
|
25999
26011
|
// ../../packages/context-writer/src/agents-md.ts
|
|
26000
26012
|
init_src();
|
|
26001
26013
|
|
|
26014
|
+
// ../../packages/context-writer/src/context-file.ts
|
|
26015
|
+
init_src();
|
|
26016
|
+
var AGENTS_POINTER_BODY = [
|
|
26017
|
+
"## Errata context",
|
|
26018
|
+
"",
|
|
26019
|
+
"Live agent context for this checkout \u2014 priors, open problems, the capture",
|
|
26020
|
+
"protocol \u2014 is maintained by the errata daemon at `.errata/context.md`.",
|
|
26021
|
+
"",
|
|
26022
|
+
"It is gitignored ON PURPOSE: it is this machine's runtime state, not repo",
|
|
26023
|
+
"content. Committing it would prime your teammates with your graph.",
|
|
26024
|
+
"",
|
|
26025
|
+
"@.errata/context.md"
|
|
26026
|
+
].join("\n");
|
|
26027
|
+
|
|
26002
26028
|
// ../../packages/context-writer/src/render.ts
|
|
26003
26029
|
init_src2();
|
|
26004
26030
|
function buildSnapshot(opts) {
|
|
@@ -26055,7 +26081,7 @@ function buildSnapshot(opts) {
|
|
|
26055
26081
|
};
|
|
26056
26082
|
const langNodes = opts.store.findNodesByLabel("Language");
|
|
26057
26083
|
const pkgNodes = opts.store.findNodesByLabel("Package");
|
|
26058
|
-
const toolNodes = opts.store
|
|
26084
|
+
const toolNodes = rankToolsForHandles(opts.store, 5);
|
|
26059
26085
|
const profileContext = {
|
|
26060
26086
|
languages: opts.profile.languages.map((name2) => ({ name: name2, node: matchNode(langNodes, name2) })),
|
|
26061
26087
|
packages: opts.profile.stack.map((name2) => ({ name: name2, node: matchNode(pkgNodes, pkgBase(name2)) })),
|