@inerrata-corporation/errata 2.0.2-dev.906 → 2.0.2-dev.930
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 +19 -1
- package/package.json +1 -1
package/errata.mjs
CHANGED
|
@@ -56192,7 +56192,7 @@ function createLivenessWatch(deps) {
|
|
|
56192
56192
|
}
|
|
56193
56193
|
|
|
56194
56194
|
// src/engine.ts
|
|
56195
|
-
var DAEMON_VERSION = true ? "2.0.2-dev.
|
|
56195
|
+
var DAEMON_VERSION = true ? "2.0.2-dev.930" : "2.0.0-alpha.0";
|
|
56196
56196
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
56197
56197
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
56198
56198
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -56966,6 +56966,9 @@ function createWorkspaceEngine(opts) {
|
|
|
56966
56966
|
};
|
|
56967
56967
|
const harvestTextsInner = async (sessionId, items) => {
|
|
56968
56968
|
let minted = 0;
|
|
56969
|
+
let tagsSeen = 0;
|
|
56970
|
+
let tagsRejected = 0;
|
|
56971
|
+
let tagsRestated = 0;
|
|
56969
56972
|
let resolved = 0;
|
|
56970
56973
|
let abstracted = 0;
|
|
56971
56974
|
let triaged = 0;
|
|
@@ -57027,6 +57030,7 @@ function createWorkspaceEngine(opts) {
|
|
|
57027
57030
|
}
|
|
57028
57031
|
}
|
|
57029
57032
|
for (const flag of parseDesignFlags(turn.text)) {
|
|
57033
|
+
tagsSeen++;
|
|
57030
57034
|
try {
|
|
57031
57035
|
const r = ingestDesignProblem(store, flag, {
|
|
57032
57036
|
workspaceId: profile.id,
|
|
@@ -57034,6 +57038,8 @@ function createWorkspaceEngine(opts) {
|
|
|
57034
57038
|
ts: t
|
|
57035
57039
|
});
|
|
57036
57040
|
if (r.created || r.corroborated) minted++;
|
|
57041
|
+
else if (r.rejected) tagsRejected++;
|
|
57042
|
+
else tagsRestated++;
|
|
57037
57043
|
if (flag.kind !== "constraint") sessionLastProblem.set(sessionId, designProblemId(flag.problem));
|
|
57038
57044
|
if (r.created || r.corroborated) {
|
|
57039
57045
|
try {
|
|
@@ -57125,6 +57131,7 @@ function createWorkspaceEngine(opts) {
|
|
|
57125
57131
|
const threads = sessionThreads.get(sessionId) ?? /* @__PURE__ */ new Map();
|
|
57126
57132
|
sessionThreads.set(sessionId, threads);
|
|
57127
57133
|
for (const p of plan.problems) {
|
|
57134
|
+
tagsSeen++;
|
|
57128
57135
|
const anchorPath = p.location?.path ?? editedTurnFile;
|
|
57129
57136
|
const anchorProvenance = p.location?.path ? "witnessed" : "edited";
|
|
57130
57137
|
const hintPath = anchorPath ? void 0 : turnFile ?? wf;
|
|
@@ -57167,6 +57174,10 @@ function createWorkspaceEngine(opts) {
|
|
|
57167
57174
|
deriveContextFromStatement(store, r.problemId, p.statement, t);
|
|
57168
57175
|
} catch {
|
|
57169
57176
|
}
|
|
57177
|
+
} else if (r.rejected) {
|
|
57178
|
+
tagsRejected++;
|
|
57179
|
+
} else {
|
|
57180
|
+
tagsRestated++;
|
|
57170
57181
|
}
|
|
57171
57182
|
}
|
|
57172
57183
|
for (const uf of plan.unresolvedFixes) {
|
|
@@ -57542,6 +57553,13 @@ function createWorkspaceEngine(opts) {
|
|
|
57542
57553
|
appendPassLedger(paths.configDir, "capture", Date.now() - t, {
|
|
57543
57554
|
turns: processedTurns,
|
|
57544
57555
|
minted,
|
|
57556
|
+
// The denominator `minted` never had. `tagsSeen 0` means the agent said
|
|
57557
|
+
// nothing — not a bug, and now provably not a bug. `tagsSeen > 0` with
|
|
57558
|
+
// `minted 0` is the pipeline eating input, and the two counters beside
|
|
57559
|
+
// it say which way.
|
|
57560
|
+
tagsSeen,
|
|
57561
|
+
tagsRejected,
|
|
57562
|
+
tagsRestated,
|
|
57545
57563
|
resolved,
|
|
57546
57564
|
triaged,
|
|
57547
57565
|
priorEdges,
|