mneme-ai 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.
- package/dist/commands/shell.d.ts +9 -0
- package/dist/commands/shell.d.ts.map +1 -0
- package/dist/commands/shell.js +184 -0
- package/dist/commands/shell.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `mneme shell` (v2.106.0) — the Shell Autopilot: a phantom recovery
|
|
3
|
+
* suggestion after a failed command, learned from your own terminal history
|
|
4
|
+
* and shared (signed) across every agent via the Cognitive Cortex. Supports
|
|
5
|
+
* Windows (PowerShell), macOS + Linux (zsh / bash).
|
|
6
|
+
*/
|
|
7
|
+
import type { Command } from "commander";
|
|
8
|
+
export declare function registerShellCommands(program: Command): void;
|
|
9
|
+
//# sourceMappingURL=shell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../src/commands/shell.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0DzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAqE5D"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `mneme shell` (v2.106.0) — the Shell Autopilot: a phantom recovery
|
|
3
|
+
* suggestion after a failed command, learned from your own terminal history
|
|
4
|
+
* and shared (signed) across every agent via the Cognitive Cortex. Supports
|
|
5
|
+
* Windows (PowerShell), macOS + Linux (zsh / bash).
|
|
6
|
+
*/
|
|
7
|
+
import { existsSync, readFileSync, writeFileSync, mkdirSync, appendFileSync } from "node:fs";
|
|
8
|
+
import { join, dirname } from "node:path";
|
|
9
|
+
import { homedir, platform } from "node:os";
|
|
10
|
+
function writeJson(p) { process.stdout.write(JSON.stringify(p, null, 2) + "\n"); }
|
|
11
|
+
function writeText(l) { process.stdout.write(l + "\n"); }
|
|
12
|
+
async function core() {
|
|
13
|
+
try {
|
|
14
|
+
const c = (await import("@mneme-ai/core"));
|
|
15
|
+
if (c.shellAutopilot && c.cortex)
|
|
16
|
+
return c;
|
|
17
|
+
}
|
|
18
|
+
catch { /* */ }
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
function cortexStorePath(cwd) { return join(cwd, ".mneme", "cortex", "store.json"); }
|
|
22
|
+
/** Build the learned-recovery map {signature → recovery} from cortex facts. */
|
|
23
|
+
function learnedMap(cwd) {
|
|
24
|
+
try {
|
|
25
|
+
const p = cortexStorePath(cwd);
|
|
26
|
+
if (!existsSync(p))
|
|
27
|
+
return {};
|
|
28
|
+
const j = JSON.parse(readFileSync(p, "utf8"));
|
|
29
|
+
if (!j || !Array.isArray(j.entries))
|
|
30
|
+
return {};
|
|
31
|
+
const out = {};
|
|
32
|
+
const superseded = new Set();
|
|
33
|
+
for (const e of j.entries)
|
|
34
|
+
if (e?.supersedes)
|
|
35
|
+
superseded.add(e.supersedes);
|
|
36
|
+
for (const e of j.entries) {
|
|
37
|
+
if (!e || superseded.has(e.id) || typeof e.key !== "string" || !e.key.startsWith("shell.recovery:"))
|
|
38
|
+
continue;
|
|
39
|
+
out[e.key.slice("shell.recovery:".length)] = e.value;
|
|
40
|
+
}
|
|
41
|
+
return out;
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
44
|
+
return {};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function detectShell() {
|
|
48
|
+
if (platform() === "win32")
|
|
49
|
+
return "powershell";
|
|
50
|
+
const sh = process.env["SHELL"] ?? "";
|
|
51
|
+
if (sh.includes("zsh"))
|
|
52
|
+
return "zsh";
|
|
53
|
+
if (sh.includes("bash"))
|
|
54
|
+
return "bash";
|
|
55
|
+
return platform() === "darwin" ? "zsh" : "bash"; // macOS default zsh, else bash
|
|
56
|
+
}
|
|
57
|
+
function profilePath(shell) {
|
|
58
|
+
if (shell === "powershell") {
|
|
59
|
+
const docs = process.env["USERPROFILE"] ? join(process.env["USERPROFILE"], "Documents") : homedir();
|
|
60
|
+
return join(docs, "PowerShell", "Microsoft.PowerShell_profile.ps1");
|
|
61
|
+
}
|
|
62
|
+
return join(homedir(), shell === "zsh" ? ".zshrc" : ".bashrc");
|
|
63
|
+
}
|
|
64
|
+
const BEGIN = "# >>> mneme shell autopilot >>>";
|
|
65
|
+
const END = "# <<< mneme shell autopilot <<<";
|
|
66
|
+
export function registerShellCommands(program) {
|
|
67
|
+
const s = program
|
|
68
|
+
.command("shell")
|
|
69
|
+
.description("🛟 SHELL AUTOPILOT — a phantom recovery suggestion after a failed command, learned from your own terminal history + shared (signed) across every agent. Windows / macOS / Linux. `shell install` once, then just keep working.");
|
|
70
|
+
s.command("suggest")
|
|
71
|
+
.description("Suggest a recovery for a failed command (used by the hook). Learned recoveries from the cortex beat the built-in rules.")
|
|
72
|
+
.requiredOption("--cmd <c>", "the failed command line")
|
|
73
|
+
.option("--code <n>", "exit code", (v) => parseInt(v, 10), 1)
|
|
74
|
+
.option("--stderr <s>", "captured stderr (improves the match)")
|
|
75
|
+
.option("--json", "JSON output.")
|
|
76
|
+
.option("--field <f>", "print only one field (e.g. recovery)")
|
|
77
|
+
.action(async (opts) => {
|
|
78
|
+
const m = await core();
|
|
79
|
+
if (!m) {
|
|
80
|
+
if (!opts.field)
|
|
81
|
+
writeText("");
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const sug = m.shellAutopilot.suggestRecovery(opts.cmd, opts.code ?? 1, opts.stderr, learnedMap(process.cwd()));
|
|
85
|
+
if (opts.field) {
|
|
86
|
+
writeText(sug[opts.field] != null ? String(sug[opts.field]) : "");
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
if (opts.json) {
|
|
90
|
+
writeJson(sug);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
if (sug.recovery) {
|
|
94
|
+
writeText(`↻ ${sug.recovery} (${sug.source}: ${sug.reason})`);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
writeText("· no known recovery");
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
s.command("learn")
|
|
101
|
+
.description("Record that a recovery fixed a failure — signs it into the shared cortex so every agent (any vendor) recalls it next time. This is the dark-data flywheel.")
|
|
102
|
+
.requiredOption("--cmd <c>", "the command that FAILED")
|
|
103
|
+
.requiredOption("--recovery <r>", "the command that FIXED it")
|
|
104
|
+
.option("--code <n>", "exit code of the failure", (v) => parseInt(v, 10), 1)
|
|
105
|
+
.option("--stderr <s>", "stderr of the failure")
|
|
106
|
+
.option("--agent <a>", "your agent id", "shell")
|
|
107
|
+
.action(async (opts) => {
|
|
108
|
+
const m = await core();
|
|
109
|
+
if (!m) {
|
|
110
|
+
writeText("✗ core unavailable");
|
|
111
|
+
process.exitCode = 1;
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
const cwd = process.cwd();
|
|
115
|
+
const sig = m.shellAutopilot.failureSignature(opts.cmd, opts.code ?? 1, opts.stderr);
|
|
116
|
+
const key = m.shellAutopilot.recoveryKey(sig);
|
|
117
|
+
let store = { v: 1, entries: [] };
|
|
118
|
+
try {
|
|
119
|
+
if (existsSync(cortexStorePath(cwd)))
|
|
120
|
+
store = JSON.parse(readFileSync(cortexStorePath(cwd), "utf8"));
|
|
121
|
+
}
|
|
122
|
+
catch { /* */ }
|
|
123
|
+
const out = m.cortex.contribute(cwd, store, { agent: opts.agent ?? "shell", key, value: opts.recovery, kind: "fact" }, Date.now(), { update: true });
|
|
124
|
+
const dir = join(cwd, ".mneme", "cortex");
|
|
125
|
+
if (!existsSync(dir))
|
|
126
|
+
mkdirSync(dir, { recursive: true });
|
|
127
|
+
writeFileSync(cortexStorePath(cwd), JSON.stringify(out.store, null, 2));
|
|
128
|
+
writeText(`✓ learned (${out.result.verdict}) — "${opts.recovery}" now recalled for this failure on every agent`);
|
|
129
|
+
});
|
|
130
|
+
s.command("hook")
|
|
131
|
+
.description("Print the shell hook script (for inspection or manual install).")
|
|
132
|
+
.option("--shell <s>", "powershell | bash | zsh (default: auto-detect)")
|
|
133
|
+
.action(async (opts) => {
|
|
134
|
+
const m = await core();
|
|
135
|
+
if (!m) {
|
|
136
|
+
writeText("✗ core unavailable");
|
|
137
|
+
process.exitCode = 1;
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
const sh = opts.shell || detectShell();
|
|
141
|
+
writeText(m.shellAutopilot.generateHook(sh));
|
|
142
|
+
});
|
|
143
|
+
s.command("install")
|
|
144
|
+
.description("Install the autopilot into your shell profile (auto-detects Windows/macOS/Linux + shell). Sentinel-bracketed + non-destructive; re-installs cleanly. Use --uninstall to remove.")
|
|
145
|
+
.option("--shell <s>", "force powershell | bash | zsh")
|
|
146
|
+
.option("--uninstall", "remove the Mneme block from the profile")
|
|
147
|
+
.action(async (opts) => {
|
|
148
|
+
const m = await core();
|
|
149
|
+
if (!m) {
|
|
150
|
+
writeText("✗ core unavailable");
|
|
151
|
+
process.exitCode = 1;
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const sh = opts.shell || detectShell();
|
|
155
|
+
const path = profilePath(sh);
|
|
156
|
+
let existing = existsSync(path) ? readFileSync(path, "utf8") : "";
|
|
157
|
+
const bi = existing.indexOf(BEGIN), ei = existing.indexOf(END);
|
|
158
|
+
if (bi >= 0 && ei > bi)
|
|
159
|
+
existing = (existing.slice(0, bi) + existing.slice(ei + END.length)).replace(/\n{3,}/g, "\n\n").trimEnd() + "\n";
|
|
160
|
+
try {
|
|
161
|
+
if (!existsSync(dirname(path)))
|
|
162
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
163
|
+
}
|
|
164
|
+
catch { /* */ }
|
|
165
|
+
if (opts.uninstall) {
|
|
166
|
+
writeFileSync(path, existing);
|
|
167
|
+
writeText(`✓ removed the autopilot from ${path}`);
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
const block = m.shellAutopilot.generateHook(sh);
|
|
171
|
+
try {
|
|
172
|
+
appendFileSync(path, (existing.endsWith("\n") || existing === "" ? "" : "\n") + "\n" + block + "\n");
|
|
173
|
+
}
|
|
174
|
+
catch (e) {
|
|
175
|
+
writeText(`✗ could not write ${path}: ${e.message}`);
|
|
176
|
+
process.exitCode = 1;
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
writeText(`✓ installed the shell autopilot (${sh}) → ${path}`);
|
|
180
|
+
writeText(` open a NEW terminal (or: ${sh === "powershell" ? ". $PROFILE" : `source ${path}`}). After a failed command you'll see a faint mneme ↻ <recovery> — press ${sh === "powershell" ? "Alt+r" : "$MNEME_SUGGESTION"} to use it. Nothing auto-runs.`);
|
|
181
|
+
writeText(` remove with: mneme shell install --uninstall`);
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
//# sourceMappingURL=shell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell.js","sourceRoot":"","sources":["../../src/commands/shell.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC7F,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE5C,SAAS,SAAS,CAAC,CAAU,IAAU,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;AACjG,SAAS,SAAS,CAAC,CAAS,IAAU,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,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C,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,IAAI,EAAE,6EAA6E,EAAE,KAAK,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAmB,gCAAgC,CAAC,CAAC;QAC/P,SAAS,CAAC,gDAAgD,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA2IA,wBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAq+MvD"}
|
package/dist/index.js
CHANGED
|
@@ -71,6 +71,7 @@ import { registerManifestCommands } from "./commands/manifest.js";
|
|
|
71
71
|
import { registerHydraCommands } from "./commands/hydra.js";
|
|
72
72
|
import { registerWisdomGateCommands } from "./commands/wisdom_gates.js";
|
|
73
73
|
import { registerCortexCommands } from "./commands/cortex.js";
|
|
74
|
+
import { registerShellCommands } from "./commands/shell.js";
|
|
74
75
|
import { registerTrustCommands } from "./commands/trust.js";
|
|
75
76
|
import { registerNuclearCommands } from "./commands/nuclear-cli.js";
|
|
76
77
|
import { registerOvernightCommand } from "./commands/overnight.js";
|
|
@@ -4687,6 +4688,7 @@ export async function run(argv) {
|
|
|
4687
4688
|
registerHydraCommands(program);
|
|
4688
4689
|
registerWisdomGateCommands(program);
|
|
4689
4690
|
registerCortexCommands(program);
|
|
4691
|
+
registerShellCommands(program);
|
|
4690
4692
|
// ─── Trust calibrator (v1.31.0) -- per-subsystem precision/recall/band
|
|
4691
4693
|
registerTrustCommands(program);
|
|
4692
4694
|
// ─── Wisdom reactor (v1.33.0) -- five nuclear-physics formulas as Mneme metrics
|