@mneme-ai/core 2.104.0 → 2.106.0

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.
@@ -386,6 +386,24 @@ const probes = [
386
386
  }
387
387
  },
388
388
  },
389
+ {
390
+ id: "probe.shell.autopilot",
391
+ kind: "boolean",
392
+ description: "SHELL AUTOPILOT (v2.106.0 — the last piece of the Zero-Effort Flow): after a failed command, a faint phantom recovery suggestion appears; one keystroke runs it (it never auto-runs). The innovation: the recovery LEARNS from the user's own terminal history — a recovery proven on this machine is signed into the Cognitive Cortex and recalled for EVERY agent (any vendor). Built-in deterministic rules are the cold-start; a learned recovery beats them. Hooks generate for Windows (PowerShell) + macOS/Linux (zsh/bash), non-destructive + sentinel-bracketed, never auto-running anything. This probe asserts the autopilot gauntlet = 100 (rules fire ∧ learned-wins ∧ stable signature ∧ safe hooks ∧ total).",
393
+ run: async (ctx) => {
394
+ const t0 = Date.now();
395
+ void ctx;
396
+ try {
397
+ const S = await import("../shell_autopilot/index.js");
398
+ const g = S.autopilotGauntlet();
399
+ const ok = g.score === 100 && g.rulesFire && g.learnedWins && g.signatureStable && g.hookSafe && g.stable;
400
+ return { value: ok ? 1 : 0, evidence: `score=${g.score} rulesFire=${g.rulesFire} learnedWins=${g.learnedWins} signatureStable=${g.signatureStable} hookSafe=${g.hookSafe}`, dtMs: Date.now() - t0 };
401
+ }
402
+ catch (e) {
403
+ return { value: 0, evidence: `threw: ${e.message}`, dtMs: Date.now() - t0 };
404
+ }
405
+ },
406
+ },
389
407
  {
390
408
  id: "probe.cortex.sovereign_memory_bus",
391
409
  kind: "boolean",