@cortexkit/magic-context 0.49.3 → 0.49.4

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/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -47751,14 +47751,15 @@ async function collectHistorianRuns(storageDirPath) {
47751
47751
  const asNum = (v) => typeof v === "number" ? v : 0;
47752
47752
  return aggRows.map((row) => {
47753
47753
  const sessionId = typeof row.session_id === "string" ? row.session_id : "<unknown>";
47754
+ const failed = asNum(row.failed);
47754
47755
  const rawReason = latestReasonBySession.get(sessionId) ?? "";
47755
47756
  return {
47756
47757
  sessionId,
47757
47758
  total: asNum(row.total),
47758
47759
  success: asNum(row.success),
47759
- failed: asNum(row.failed),
47760
+ failed,
47760
47761
  noop: asNum(row.noop),
47761
- lastFailureReason: sanitizeDiagnosticText(rawReason.replace(/\s+/g, " ").trim().slice(0, 400)),
47762
+ lastFailureReason: rawReason.trim() ? sanitizeDiagnosticText(rawReason.replace(/\s+/g, " ").trim().slice(0, 400)) : failed > 0 ? "no reason recorded (older version)" : "",
47762
47763
  lastRunAt: typeof row.last_run_at === "number" ? new Date(row.last_run_at).toISOString() : ""
47763
47764
  };
47764
47765
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/magic-context",
3
- "version": "0.49.3",
3
+ "version": "0.49.4",
4
4
  "description": "Unified CLI for Magic Context — setup, doctor, and migration across OpenCode, Pi, and OMP",
5
5
  "keywords": [
6
6
  "opencode",