@inerrata-corporation/errata 2.0.22-dev.4603 → 2.0.22-dev.4617
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
CHANGED
|
@@ -86711,7 +86711,7 @@ function createWatchBreaker(deps) {
|
|
|
86711
86711
|
}
|
|
86712
86712
|
|
|
86713
86713
|
// src/engine.ts
|
|
86714
|
-
var DAEMON_VERSION = true ? "2.0.22-dev.
|
|
86714
|
+
var DAEMON_VERSION = true ? "2.0.22-dev.4617" : "2.0.0-alpha.0";
|
|
86715
86715
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
86716
86716
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
86717
86717
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -93254,7 +93254,7 @@ function isDoorDeferral(outcome) {
|
|
|
93254
93254
|
return outcome.status === "error" && !!outcome.parked && !!outcome.runId && ["deferred-context", "deferred-budget"].includes(outcome.errorCode ?? "");
|
|
93255
93255
|
}
|
|
93256
93256
|
var DEFAULT_LOOKAHEAD = 2;
|
|
93257
|
-
var CONTENT_TRANSPORT_VERSION =
|
|
93257
|
+
var CONTENT_TRANSPORT_VERSION = 2;
|
|
93258
93258
|
async function defaultGit(root, args2) {
|
|
93259
93259
|
const { stdout } = await execFileAsync2("git", ["-C", root, ...args2], { maxBuffer: 64 * 1024 * 1024, windowsHide: true });
|
|
93260
93260
|
return stdout;
|
|
@@ -93816,6 +93816,9 @@ function applyStopRequest(profile, now = () => /* @__PURE__ */ new Date()) {
|
|
|
93816
93816
|
}
|
|
93817
93817
|
};
|
|
93818
93818
|
}
|
|
93819
|
+
function historyIngestEnabled() {
|
|
93820
|
+
return process.env.ERRATA_HISTORY === "1";
|
|
93821
|
+
}
|
|
93819
93822
|
async function startHistoryStage(root, input, client, walk11 = {}) {
|
|
93820
93823
|
let profile = input;
|
|
93821
93824
|
if (!profile.projectId) return { started: false, reason: "no-project", profile };
|
|
@@ -93829,6 +93832,7 @@ async function startHistoryStage(root, input, client, walk11 = {}) {
|
|
|
93829
93832
|
await reportHistoryStage(client, stopped);
|
|
93830
93833
|
return { started: false, reason: "stopped", profile: stopped };
|
|
93831
93834
|
}
|
|
93835
|
+
if (!historyIngestEnabled()) return { started: false, reason: "disabled", profile };
|
|
93832
93836
|
if (!consents.mineHistory) return { started: false, reason: "consent-pending", profile };
|
|
93833
93837
|
const outcome = await runHistoryWalk(root, profile, client, walk11);
|
|
93834
93838
|
return { started: true, profile: outcome.profile };
|
|
@@ -95544,7 +95548,8 @@ async function startMultiDaemon(opts = {}) {
|
|
|
95544
95548
|
for (const record2 of records) record2.engine.markContextDirty();
|
|
95545
95549
|
}
|
|
95546
95550
|
try {
|
|
95547
|
-
if (!
|
|
95551
|
+
if (!historyIngestEnabled()) revisionBacklog.delete(r.root);
|
|
95552
|
+
else if (!r.engine.storeReconciled()) revisionBacklog.add(r.root);
|
|
95548
95553
|
else {
|
|
95549
95554
|
const revision = await syncHistoryRevision({ root: r.root, profile: r.engine.profile, store: r.engine.store, cloud: client, salt });
|
|
95550
95555
|
if (revision.remaining) revisionBacklog.add(r.root);
|
|
@@ -95728,6 +95733,10 @@ async function startMultiDaemon(opts = {}) {
|
|
|
95728
95733
|
Object.assign(engine.profile, stage2.profile);
|
|
95729
95734
|
saveProfile(root, engine.profile);
|
|
95730
95735
|
}
|
|
95736
|
+
if (!stage2.started && stage2.reason === "disabled") {
|
|
95737
|
+
console.log(`[errata] history ingestion is off in this build (v1.1); no walk for ${engine.profile.name}`);
|
|
95738
|
+
return;
|
|
95739
|
+
}
|
|
95731
95740
|
const state = engine.profile.historyStage?.state ?? "consent-pending";
|
|
95732
95741
|
const c2 = engine.profile.historyStage?.counts;
|
|
95733
95742
|
console.log(
|
|
@@ -95746,7 +95755,7 @@ async function startMultiDaemon(opts = {}) {
|
|
|
95746
95755
|
void ambientLinkAll();
|
|
95747
95756
|
let historyRetryRunning = false;
|
|
95748
95757
|
const historyRetry = setInterval(() => {
|
|
95749
|
-
if (stopping || historyRetryRunning) return;
|
|
95758
|
+
if (stopping || historyRetryRunning || !historyIngestEnabled()) return;
|
|
95750
95759
|
historyRetryRunning = true;
|
|
95751
95760
|
void ambientLinkAll(true).catch((err2) => {
|
|
95752
95761
|
console.warn(`[errata] history retry pass failed: ${err2 instanceof Error ? err2.message : err2}`);
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
81a5a7875eb137fa180465a687ecfd2fd76f67967cec97962a20f6e695c81d2f .codex-plugin/plugin.json
|
|
2
2
|
a7bebae9fb01c838d6c75fc784129e28be571233fa66ff5ee8039b574f35ccf7 assets/icon.png
|
|
3
3
|
fc38b64e4df1e0b72c35764bef6c4c05430d97c9009ad0ecc8a9e75b4deab232 configure-local.mjs
|
|
4
4
|
73dc6028b3b070257c7c31f252d11e55a9e096f4aed0f187f10cb21716e1e6d7 dist/client.js
|