mneme-ai 1.26.0 → 1.26.1
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/hooks.d.ts +19 -9
- package/dist/commands/hooks.d.ts.map +1 -1
- package/dist/commands/hooks.js +175 -112
- package/dist/commands/hooks.js.map +1 -1
- package/package.json +5 -5
package/dist/commands/hooks.d.ts
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `mneme hooks
|
|
3
|
-
*
|
|
4
|
-
* pulse injection. The closest thing the protocol allows to a
|
|
5
|
-
* continuous AI <-> Mneme heartbeat.
|
|
2
|
+
* `mneme hooks` / `mneme integrate` -- wire Mneme into every supported
|
|
3
|
+
* AI agent's *own* configuration shape.
|
|
6
4
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
5
|
+
* mneme hooks status per-adapter state across all agents
|
|
6
|
+
* mneme hooks install install everywhere applicable (auto-detect)
|
|
7
|
+
* mneme hooks uninstall remove from everywhere
|
|
8
|
+
* mneme hooks repair auto-fix the v1.25.2 broken Claude Code schema
|
|
10
9
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* mneme hooks install --only claude-code,cursor restrict to ids
|
|
11
|
+
* mneme hooks install --force overwrite foreign config
|
|
12
|
+
* mneme hooks list list known adapters
|
|
13
|
+
*
|
|
14
|
+
* The previous v1.25.2 implementation wrote a STRING shorthand
|
|
15
|
+
* "UserPromptSubmit": "mneme nucleus pulse --quiet" into Claude
|
|
16
|
+
* Code's settings.json. Per official Claude Code hook docs that
|
|
17
|
+
* format is silently rejected. v1.26.1 ships:
|
|
18
|
+
* - the correct array-of-objects schema for Claude Code
|
|
19
|
+
* - per-agent adapters (Cursor, Codex, Gemini, Windsurf, ...) for
|
|
20
|
+
* agents that lack a real exec-hook surface
|
|
21
|
+
* - auto-detect + auto-repair for the broken v1.25.2 string format
|
|
22
|
+
* - multi-layer error handling at every adapter
|
|
13
23
|
*/
|
|
14
24
|
import type { Command } from "commander";
|
|
15
25
|
export declare function registerHooksCommands(program: Command): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/commands/hooks.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/commands/hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkCzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAsJ5D"}
|
package/dist/commands/hooks.js
CHANGED
|
@@ -1,153 +1,216 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `mneme hooks
|
|
3
|
-
*
|
|
4
|
-
* pulse injection. The closest thing the protocol allows to a
|
|
5
|
-
* continuous AI <-> Mneme heartbeat.
|
|
2
|
+
* `mneme hooks` / `mneme integrate` -- wire Mneme into every supported
|
|
3
|
+
* AI agent's *own* configuration shape.
|
|
6
4
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
5
|
+
* mneme hooks status per-adapter state across all agents
|
|
6
|
+
* mneme hooks install install everywhere applicable (auto-detect)
|
|
7
|
+
* mneme hooks uninstall remove from everywhere
|
|
8
|
+
* mneme hooks repair auto-fix the v1.25.2 broken Claude Code schema
|
|
10
9
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* mneme hooks install --only claude-code,cursor restrict to ids
|
|
11
|
+
* mneme hooks install --force overwrite foreign config
|
|
12
|
+
* mneme hooks list list known adapters
|
|
13
|
+
*
|
|
14
|
+
* The previous v1.25.2 implementation wrote a STRING shorthand
|
|
15
|
+
* "UserPromptSubmit": "mneme nucleus pulse --quiet" into Claude
|
|
16
|
+
* Code's settings.json. Per official Claude Code hook docs that
|
|
17
|
+
* format is silently rejected. v1.26.1 ships:
|
|
18
|
+
* - the correct array-of-objects schema for Claude Code
|
|
19
|
+
* - per-agent adapters (Cursor, Codex, Gemini, Windsurf, ...) for
|
|
20
|
+
* agents that lack a real exec-hook surface
|
|
21
|
+
* - auto-detect + auto-repair for the broken v1.25.2 string format
|
|
22
|
+
* - multi-layer error handling at every adapter
|
|
13
23
|
*/
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const HOOK_KEY = "UserPromptSubmit";
|
|
18
|
-
const HOOK_COMMAND = "mneme nucleus pulse --quiet";
|
|
19
|
-
function settingsPath() {
|
|
20
|
-
return join(homedir(), ".claude", "settings.json");
|
|
24
|
+
import { integrations } from "@mneme-ai/core";
|
|
25
|
+
function writeJson(payload) {
|
|
26
|
+
process.stdout.write(JSON.stringify(payload, null, 2) + "\n");
|
|
21
27
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
function writeText(s) {
|
|
29
|
+
process.stdout.write(s + "\n");
|
|
30
|
+
}
|
|
31
|
+
function fmtStatus(state) {
|
|
32
|
+
switch (state) {
|
|
33
|
+
case "ok": return "OK";
|
|
34
|
+
case "drift": return "DRIFT";
|
|
35
|
+
case "absent": return "absent";
|
|
36
|
+
case "no-config": return "n/a";
|
|
37
|
+
default: return state;
|
|
32
38
|
}
|
|
33
39
|
}
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
function fmtInstallStatus(s) {
|
|
41
|
+
switch (s) {
|
|
42
|
+
case "installed": return "INSTALLED";
|
|
43
|
+
case "already-installed": return "ok";
|
|
44
|
+
case "repaired": return "REPAIRED";
|
|
45
|
+
case "refused": return "REFUSED";
|
|
46
|
+
case "error": return "ERROR";
|
|
47
|
+
default: return s;
|
|
48
|
+
}
|
|
39
49
|
}
|
|
40
50
|
export function registerHooksCommands(program) {
|
|
41
51
|
const hooks = program
|
|
42
52
|
.command("hooks")
|
|
43
|
-
.
|
|
53
|
+
.alias("integrate")
|
|
54
|
+
.description("Wire Mneme into your AI tool(s). Supports Claude Code (real hook), Cursor, Codex, Gemini, Windsurf, and project AGENTS.md.");
|
|
55
|
+
// -----------------------------------------------------------------
|
|
56
|
+
// mneme hooks list
|
|
57
|
+
// -----------------------------------------------------------------
|
|
44
58
|
hooks
|
|
45
|
-
.command("
|
|
46
|
-
.description("
|
|
59
|
+
.command("list")
|
|
60
|
+
.description("List known adapter ids and where each writes.")
|
|
47
61
|
.option("--json", "JSON output.")
|
|
48
62
|
.action((opts) => {
|
|
49
|
-
const
|
|
50
|
-
|
|
63
|
+
const rows = integrations.ALL_ADAPTERS.map((a) => ({
|
|
64
|
+
id: a.id, label: a.label, scope: a.scope,
|
|
65
|
+
}));
|
|
51
66
|
if (opts.json) {
|
|
52
|
-
|
|
67
|
+
writeJson(rows);
|
|
53
68
|
return;
|
|
54
69
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
70
|
+
writeText(`Known adapters:`);
|
|
71
|
+
writeText(``);
|
|
72
|
+
for (const r of rows) {
|
|
73
|
+
writeText(` ${r.id.padEnd(22)} (${r.scope.padEnd(7)}) -- ${r.label}`);
|
|
59
74
|
}
|
|
60
75
|
});
|
|
76
|
+
// -----------------------------------------------------------------
|
|
77
|
+
// mneme hooks status
|
|
78
|
+
// -----------------------------------------------------------------
|
|
61
79
|
hooks
|
|
62
|
-
.command("
|
|
63
|
-
.description("
|
|
64
|
-
.option("--force", "Overwrite if a different command is already wired to the hook.")
|
|
80
|
+
.command("status")
|
|
81
|
+
.description("Show per-adapter integration state.")
|
|
65
82
|
.option("--json", "JSON output.")
|
|
66
|
-
.action((opts) => {
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
const existingCmd = typeof existing === "string" ? existing : existing?.command;
|
|
72
|
-
if (existingCmd && existingCmd !== HOOK_COMMAND && !opts.force) {
|
|
73
|
-
const payload = {
|
|
74
|
-
installed: false,
|
|
75
|
-
reason: `${HOOK_KEY} is already wired to: ${existingCmd}`,
|
|
76
|
-
fix: "Re-run with --force to overwrite, or merge manually.",
|
|
77
|
-
settingsPath: settingsPath(),
|
|
78
|
-
};
|
|
79
|
-
if (opts.json) {
|
|
80
|
-
process.stdout.write(JSON.stringify(payload, null, 2) + "\n");
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
process.stdout.write(`✗ ${payload.reason}\n ${payload.fix}\n`);
|
|
84
|
-
}
|
|
85
|
-
process.exit(1);
|
|
83
|
+
.action(async (opts) => {
|
|
84
|
+
const repoRoot = process.cwd();
|
|
85
|
+
const results = await integrations.statusAll(repoRoot);
|
|
86
|
+
if (opts.json) {
|
|
87
|
+
writeJson(results);
|
|
86
88
|
return;
|
|
87
89
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
90
|
+
writeText(`Mneme integrations -- per-agent state`);
|
|
91
|
+
writeText(``);
|
|
92
|
+
for (const r of results) {
|
|
93
|
+
const tag = fmtStatus(r.result.state);
|
|
94
|
+
const repair = r.result.canRepair ? " [repair available]" : "";
|
|
95
|
+
writeText(` [${tag.padEnd(6)}] ${r.id.padEnd(22)} ${r.result.details}${repair}`);
|
|
96
|
+
if (r.result.path)
|
|
97
|
+
writeText(` ${r.result.path}`);
|
|
98
|
+
}
|
|
99
|
+
const drifts = results.filter((r) => r.result.canRepair);
|
|
100
|
+
if (drifts.length > 0) {
|
|
101
|
+
writeText(``);
|
|
102
|
+
writeText(`Run \`mneme hooks repair\` to fix ${drifts.length} drift(s).`);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
// -----------------------------------------------------------------
|
|
106
|
+
// mneme hooks install
|
|
107
|
+
// -----------------------------------------------------------------
|
|
108
|
+
hooks
|
|
109
|
+
.command("install")
|
|
110
|
+
.description("Install Mneme into every detected agent (or restrict via --only).")
|
|
111
|
+
.option("--only <ids>", "comma-separated adapter ids (e.g. claude-code,cursor)", (v) => v.split(",").map((s) => s.trim()).filter(Boolean))
|
|
112
|
+
.option("--all", "install into every known adapter, even undetected ones")
|
|
113
|
+
.option("--force", "overwrite foreign config / merge alongside existing hooks")
|
|
114
|
+
.option("--json", "JSON output.")
|
|
115
|
+
.action(async (opts) => {
|
|
116
|
+
const repoRoot = process.cwd();
|
|
117
|
+
const results = await integrations.installAll(repoRoot, {
|
|
118
|
+
ids: opts.only,
|
|
119
|
+
force: opts.force,
|
|
120
|
+
onlyDetected: !opts.all && !opts.only,
|
|
121
|
+
});
|
|
100
122
|
if (opts.json) {
|
|
101
|
-
|
|
123
|
+
writeJson(results);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
writeText(`Mneme integrations -- install`);
|
|
127
|
+
writeText(``);
|
|
128
|
+
for (const r of results) {
|
|
129
|
+
const tag = fmtInstallStatus(r.result.status);
|
|
130
|
+
writeText(` [${tag.padEnd(10)}] ${r.id.padEnd(22)} ${r.result.message}`);
|
|
131
|
+
if (r.result.path)
|
|
132
|
+
writeText(` ${r.result.path}`);
|
|
133
|
+
if (r.result.fix)
|
|
134
|
+
writeText(` fix: ${r.result.fix}`);
|
|
102
135
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
process.stdout.write(`\nRestart Claude Code to pick up the new hook.\n`);
|
|
108
|
-
process.stdout.write(`From now on, every user message you type triggers a Mneme pulse:\n`);
|
|
109
|
-
process.stdout.write(`AI sees current Mneme version + inbox + auto-actions on every turn.\n`);
|
|
136
|
+
const refused = results.filter((r) => r.result.status === "refused");
|
|
137
|
+
if (refused.length > 0) {
|
|
138
|
+
writeText(``);
|
|
139
|
+
writeText(`${refused.length} adapter(s) refused. Re-run with --force to override.`);
|
|
110
140
|
}
|
|
141
|
+
writeText(``);
|
|
142
|
+
writeText(`Restart your AI tool(s) to pick up the new wiring.`);
|
|
111
143
|
});
|
|
144
|
+
// -----------------------------------------------------------------
|
|
145
|
+
// mneme hooks uninstall
|
|
146
|
+
// -----------------------------------------------------------------
|
|
112
147
|
hooks
|
|
113
148
|
.command("uninstall")
|
|
114
|
-
.description("Remove
|
|
149
|
+
.description("Remove Mneme blocks/hooks from all agents (or --only ids).")
|
|
150
|
+
.option("--only <ids>", "comma-separated adapter ids", (v) => v.split(",").map((s) => s.trim()).filter(Boolean))
|
|
115
151
|
.option("--json", "JSON output.")
|
|
116
|
-
.action((opts) => {
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
process.stdout.write(JSON.stringify(payload) + "\n");
|
|
122
|
-
}
|
|
123
|
-
else
|
|
124
|
-
process.stdout.write(`(no settings file or hooks block; nothing to uninstall)\n`);
|
|
152
|
+
.action(async (opts) => {
|
|
153
|
+
const repoRoot = process.cwd();
|
|
154
|
+
const results = await integrations.uninstallAll(repoRoot, { ids: opts.only });
|
|
155
|
+
if (opts.json) {
|
|
156
|
+
writeJson(results);
|
|
125
157
|
return;
|
|
126
158
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
159
|
+
writeText(`Mneme integrations -- uninstall`);
|
|
160
|
+
writeText(``);
|
|
161
|
+
for (const r of results) {
|
|
162
|
+
writeText(` [${r.result.status.padEnd(15)}] ${r.id.padEnd(22)} ${r.result.message}`);
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
// -----------------------------------------------------------------
|
|
166
|
+
// mneme hooks repair -- auto-fix v1.25.2 drift
|
|
167
|
+
// -----------------------------------------------------------------
|
|
168
|
+
hooks
|
|
169
|
+
.command("repair")
|
|
170
|
+
.description("Auto-repair the v1.25.2 broken Claude Code string-shorthand drift (and any other repairable drifts).")
|
|
171
|
+
.option("--json", "JSON output.")
|
|
172
|
+
.action(async (opts) => {
|
|
173
|
+
const repoRoot = process.cwd();
|
|
174
|
+
const sts = await integrations.statusAll(repoRoot);
|
|
175
|
+
const drifts = sts.filter((s) => s.result.canRepair);
|
|
176
|
+
if (drifts.length === 0) {
|
|
131
177
|
if (opts.json) {
|
|
132
|
-
|
|
178
|
+
writeJson({ repaired: 0, results: [] });
|
|
179
|
+
return;
|
|
133
180
|
}
|
|
134
|
-
|
|
135
|
-
process.stdout.write(`(${HOOK_KEY} hook not installed by Mneme)\n`);
|
|
181
|
+
writeText(`No drifts detected. Everything looks correct.`);
|
|
136
182
|
return;
|
|
137
183
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
184
|
+
const repaired = await Promise.all(drifts.map(async (d) => {
|
|
185
|
+
const adapter = integrations.adapterById(d.id);
|
|
186
|
+
if (!adapter) {
|
|
187
|
+
return { id: d.id, label: d.label, result: { ok: false, status: "error", mode: "unsupported", message: "adapter missing" } };
|
|
188
|
+
}
|
|
189
|
+
return { id: d.id, label: d.label, result: await adapter.install(repoRoot, { force: false }) };
|
|
190
|
+
}));
|
|
141
191
|
if (opts.json) {
|
|
142
|
-
|
|
192
|
+
writeJson({ repaired: repaired.length, results: repaired });
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
writeText(`Mneme integrations -- repair`);
|
|
196
|
+
writeText(``);
|
|
197
|
+
for (const r of repaired) {
|
|
198
|
+
const tag = fmtInstallStatus(r.result.status);
|
|
199
|
+
writeText(` [${tag.padEnd(10)}] ${r.id.padEnd(22)} ${r.result.message}`);
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
// -----------------------------------------------------------------
|
|
203
|
+
// Backwards-compat top-level: `mneme hooks` with no subcommand prints status.
|
|
204
|
+
// -----------------------------------------------------------------
|
|
205
|
+
hooks.action(async () => {
|
|
206
|
+
const repoRoot = process.cwd();
|
|
207
|
+
const results = await integrations.statusAll(repoRoot);
|
|
208
|
+
writeText(`Mneme integrations -- per-agent state (run \`mneme hooks --help\` for actions)`);
|
|
209
|
+
writeText(``);
|
|
210
|
+
for (const r of results) {
|
|
211
|
+
const tag = fmtStatus(r.result.state);
|
|
212
|
+
writeText(` [${tag.padEnd(6)}] ${r.id.padEnd(22)} ${r.result.details}`);
|
|
143
213
|
}
|
|
144
|
-
else
|
|
145
|
-
process.stdout.write(`OK Removed Mneme pulse hook from ${settingsPath()}\n`);
|
|
146
214
|
});
|
|
147
|
-
}
|
|
148
|
-
function isInstalled(settings) {
|
|
149
|
-
const h = settings.hooks?.[HOOK_KEY];
|
|
150
|
-
const cmd = typeof h === "string" ? h : h?.command;
|
|
151
|
-
return cmd === HOOK_COMMAND;
|
|
152
215
|
}
|
|
153
216
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/commands/hooks.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/commands/hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI9C,SAAS,SAAS,CAAC,OAAgB;IACjC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AAChE,CAAC;AAED,SAAS,SAAS,CAAC,CAAS;IAC1B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,SAAS,CAAC,KAAa;IAC9B,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,IAAI,CAAC,CAAC,OAAO,IAAI,CAAC;QACvB,KAAK,OAAO,CAAC,CAAC,OAAO,OAAO,C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
|
|
2
2
|
"name": "mneme-ai",
|
|
3
|
-
"version": "1.26.
|
|
3
|
+
"version": "1.26.1",
|
|
4
4
|
"mcpName": "io.github.patsa2561-art/mneme-ai",
|
|
5
5
|
"description": "Mneme โ€” the memory layer for your codebase. Knows the WHY, the WHAT, the WHERE-IT-BREAKS.",
|
|
6
6
|
"type": "module",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"clean": "tsc -b --clean"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@mneme-ai/core": "1.26.
|
|
34
|
-
"@mneme-ai/correlator": "1.26.
|
|
35
|
-
"@mneme-ai/embeddings": "1.26.
|
|
36
|
-
"@mneme-ai/mcp": "1.26.
|
|
33
|
+
"@mneme-ai/core": "1.26.1",
|
|
34
|
+
"@mneme-ai/correlator": "1.26.1",
|
|
35
|
+
"@mneme-ai/embeddings": "1.26.1",
|
|
36
|
+
"@mneme-ai/mcp": "1.26.1",
|
|
37
37
|
"commander": "^12.1.0",
|
|
38
38
|
"kleur": "^4.1.5"
|
|
39
39
|
},
|