@inerrata-corporation/errata 2.0.2-dev.1299 → 2.0.2-dev.1300

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 +28 -1
  2. package/package.json +1 -1
package/errata.mjs CHANGED
@@ -53741,6 +53741,7 @@ function parseDesignResolutions(text) {
53741
53741
  }
53742
53742
  return out2;
53743
53743
  }
53744
+ var OPENCODE_PARSER_PINNED_VERSION = "1.18.18";
53744
53745
  var OPENCODE_TRANSCRIPT_HEADER_TYPE = "errata-opencode-session";
53745
53746
  var FILE_TOOLS = /* @__PURE__ */ new Set(["Read", "Edit", "Write", "MultiEdit", "NotebookEdit"]);
53746
53747
  var WRITE_TOOLS = /* @__PURE__ */ new Set(["Edit", "Write", "MultiEdit", "NotebookEdit"]);
@@ -53775,6 +53776,7 @@ function readAssistantTurnsFrom(transcriptPath, fromByte, includeThinking = true
53775
53776
  losses: { parseFailures: parsed.parseFailures, ioFailed, bytesUnreachable: 0 }
53776
53777
  };
53777
53778
  }
53779
+ var CODEX_PARSER_PINNED_VERSION = "0.144.5";
53778
53780
  function detectHostHarness(raw2) {
53779
53781
  const lines = raw2.split(/\r?\n/);
53780
53782
  let checked = 0;
@@ -57740,7 +57742,7 @@ function createWatchBreaker(deps) {
57740
57742
  }
57741
57743
 
57742
57744
  // src/engine.ts
57743
- var DAEMON_VERSION = true ? "2.0.2-dev.1299" : "2.0.0-alpha.0";
57745
+ var DAEMON_VERSION = true ? "2.0.2-dev.1300" : "2.0.0-alpha.0";
57744
57746
  var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
57745
57747
  var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
57746
57748
  var GIT_OP_MUTE_MS = 4e3;
@@ -63389,6 +63391,17 @@ function shouldUseOAuthLogin(flags2, env2 = process.env) {
63389
63391
  }
63390
63392
 
63391
63393
  // src/doctor.ts
63394
+ import { spawnSync } from "node:child_process";
63395
+ function installedHarnessVersion(bin) {
63396
+ try {
63397
+ const r = spawnSync(bin, ["--version"], { encoding: "utf8", timeout: 3e3 });
63398
+ if (r.status !== 0 && !r.stdout) return null;
63399
+ const m = /(\d+\.\d+\.\d+)/.exec(`${r.stdout ?? ""}${r.stderr ?? ""}`);
63400
+ return m ? m[1] : null;
63401
+ } catch {
63402
+ return null;
63403
+ }
63404
+ }
63392
63405
  async function diagnoseInstallation(cfg, dependencies) {
63393
63406
  const checks = [];
63394
63407
  const profileName = cfg.activeInstallationProfile;
@@ -63461,6 +63474,20 @@ async function diagnoseInstallation(cfg, dependencies) {
63461
63474
  });
63462
63475
  }
63463
63476
  }
63477
+ const versionOf = dependencies.harnessVersion ?? installedHarnessVersion;
63478
+ for (const { bin, pinned } of [
63479
+ { bin: "codex", pinned: CODEX_PARSER_PINNED_VERSION },
63480
+ { bin: "opencode", pinned: OPENCODE_PARSER_PINNED_VERSION }
63481
+ ]) {
63482
+ const installed = versionOf(bin);
63483
+ checks.push(
63484
+ installed === null ? { id: `${bin}_parser_pin`, status: "pass", detail: `${bin} not installed \u2014 parser-pin check skipped` } : installed === pinned ? { id: `${bin}_parser_pin`, status: "pass", detail: `${bin} ${installed} matches the transcript-parser pin` } : {
63485
+ id: `${bin}_parser_pin`,
63486
+ status: "warn",
63487
+ detail: `${bin} ${installed} \u2260 parser pinned ${pinned} \u2014 transcripts verified against ${pinned}; re-pin fixtures if capture drifts`
63488
+ }
63489
+ );
63490
+ }
63464
63491
  return {
63465
63492
  ok: checks.every((check2) => check2.status !== "fail"),
63466
63493
  profile: profileName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.2-dev.1299",
3
+ "version": "2.0.2-dev.1300",
4
4
  "description": "errata - local-first observation engine for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {