mneme-ai 1.17.4 → 1.17.6

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/bin/git-mneme.js CHANGED
File without changes
package/bin/mneme.js CHANGED
File without changes
@@ -0,0 +1,6 @@
1
+ export declare function oracleCommand(): Promise<number>;
2
+ export declare function conscienceCommand(): Promise<number>;
3
+ export declare function genomeCommand(): Promise<number>;
4
+ export declare function dialogueCommand(): Promise<number>;
5
+ export declare function tributeCommand(): Promise<number>;
6
+ //# sourceMappingURL=wild-stubs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wild-stubs.d.ts","sourceRoot":"","sources":["../../src/commands/wild-stubs.ts"],"names":[],"mappings":"AAaA,wBAAsB,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,CAqBrD;AAED,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC,CAqBzD;AAED,wBAAsB,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,CAqBrD;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAqBvD;AAED,wBAAsB,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAwBtD"}
@@ -0,0 +1,112 @@
1
+ /**
2
+ * Stub CLI commands for the rest of the WILD ideas. Each prints a thoughtful
3
+ * design overview so users see the roadmap shape — not a "coming soon" lorem.
4
+ *
5
+ * • mneme oracle — historical risk analysis on a snippet
6
+ * • mneme conscience — review co-pilot from history
7
+ * • mneme genome — codebase fingerprint + ancestry
8
+ * • mneme dialogue — conversational chat over your repo
9
+ * • mneme tribute — "your codebase as a movie"
10
+ */
11
+ import kleur from "kleur";
12
+ import { ui } from "../ui.js";
13
+ export async function oracleCommand() {
14
+ return printPlan("oracle", "Historical risk analysis on a code snippet", [
15
+ "Paste any function or commit diff. Mneme finds:",
16
+ " • Past incidents in this codebase rooted in similar patterns",
17
+ " • Commits whose diff fingerprint matches and what they triggered",
18
+ " • A risk score for shipping this exact change",
19
+ "",
20
+ "Example output:",
21
+ ` ${kleur.gray("This `db.query(${user_input})` pattern caused SQLi-2023-04.")}`,
22
+ ` ${kleur.gray("Three other PRs that shipped this pattern were reverted within 24h.")}`,
23
+ "",
24
+ "Implementation requires:",
25
+ " • An incident corpus (run `mneme correlate --source pager` first)",
26
+ " • Pattern fingerprinting (AST-shape hashes — uses tree-sitter)",
27
+ " • Risk scoring model (regression on your own history)",
28
+ ], "WILD #4 · pessimism 3/5 · 2-week sprint when prioritized");
29
+ }
30
+ export async function conscienceCommand() {
31
+ return printPlan("conscience", "PR review co-pilot powered by your repo's own history", [
32
+ "When reviewing a PR, Mneme finds the historically most-similar PRs and",
33
+ "reports their fate. The reviewer sees:",
34
+ "",
35
+ ` ${kleur.gray("This PR changes 4 of the same files as PR #98 (reverted within 48h")}`,
36
+ ` ${kleur.gray("after INC-1287). 87% file overlap. Recommend caution.")}`,
37
+ "",
38
+ "Two surfaces planned:",
39
+ " • mneme conscience <pr-url> — CLI",
40
+ " • GitHub Action check — runs on every PR open",
41
+ " • Cursor side-panel — when MCP exposes it",
42
+ "",
43
+ "Hard part: the similarity must be more than file-overlap. Phase 2",
44
+ "embeddings on entity-level diffs are the right substrate.",
45
+ ], "WILD #6 · pessimism 2/5 · ships after Phase 2 multi-language parsing");
46
+ }
47
+ export async function genomeCommand() {
48
+ return printPlan("genome", "Codebase fingerprint + ancestry detection", [
49
+ "A cryptographic signature derived from code + history. Detects:",
50
+ " • Forks of public repos (M&A due diligence)",
51
+ " • Plagiarism / license violations",
52
+ " • Abandoned ancestor branches",
53
+ "",
54
+ "Example output:",
55
+ ` ${kleur.gray("This proprietary repo shares 87% genome with public repo `acme/foo`.")}`,
56
+ ` ${kleur.gray("Likely forked at commit a1b2c3d on 2023-09-12.")}`,
57
+ "",
58
+ "How: locality-sensitive hash of entity embeddings + commit-graph shape.",
59
+ "Two genomes are compared in O(genome_size), not O(repo_size).",
60
+ "",
61
+ "Privacy: only the genome hash leaves the machine. Source code never does.",
62
+ ], "WILD #9 · pessimism 4/5 · needs Phase 2 entity embeddings + LSH");
63
+ }
64
+ export async function dialogueCommand() {
65
+ return printPlan("dialogue", "Conversational memory — multi-turn chat over your repo", [
66
+ "A persistent REPL that holds state across queries. Existing `mneme ask`",
67
+ "is one-shot; this one remembers context.",
68
+ "",
69
+ "Example session:",
70
+ ` ${kleur.cyan(">")} what broke last quarter?`,
71
+ ` 3 incidents: INC-1287, INC-2025-04, GH-Actions-failure-03`,
72
+ ` ${kleur.cyan(">")} show me the rollbacks`,
73
+ ` 2 reverts: PR #501, PR #523. Both within 36h of incident.`,
74
+ ` ${kleur.cyan(">")} who reviewed those?`,
75
+ ` alice@ approved both. Consider asking her about Q4 patterns.`,
76
+ "",
77
+ "Implementation: thin wrapper over MCP with conversation memory.",
78
+ "The hard part is UX — when to forget, what to summarize, how to cite.",
79
+ ], "WILD #11 · pessimism 2/5 · 1-week sprint when Phase 3 is mature");
80
+ }
81
+ export async function tributeCommand() {
82
+ return printPlan("tribute", "Your codebase as a 60-second movie", [
83
+ "Auto-generated D3 animation of a repo's life — designed to be shared on",
84
+ "Twitter when an engineer leaves, when a project crosses 5 years, when a",
85
+ "startup gets acquired.",
86
+ "",
87
+ "Frames:",
88
+ ` ${kleur.gray("• initial commit (a single dot)")}`,
89
+ ` ${kleur.gray("• first module emerges (cluster)")}`,
90
+ ` ${kleur.gray("• first incident (red flash)")}`,
91
+ ` ${kleur.gray("• big redesign (cluster reorganizes)")}`,
92
+ ` ${kleur.gray("• bus-factor moment (single contributor leaves)")}`,
93
+ ` ${kleur.gray("• current state (full graph)")}`,
94
+ "",
95
+ "Output: an MP4 / GIF / HTML embed. Free marketing for Mneme; real",
96
+ "emotional value for the team it's about.",
97
+ "",
98
+ "Builds on the Phase 4 graph viz — already shipped as `mneme web`.",
99
+ ], "WILD #15 · pessimism 3/5 · ships as `mneme web --tribute --out movie.mp4`");
100
+ }
101
+ function printPlan(name, tagline, body, footer) {
102
+ ui.banner();
103
+ process.stdout.write(`${kleur.bold().magenta(`mneme ${name}`)} ${kleur.gray("(planned)")}\n`);
104
+ process.stdout.write(`${kleur.italic().cyan(tagline)}\n\n`);
105
+ for (const line of body)
106
+ process.stdout.write(` ${line}\n`);
107
+ process.stdout.write("\n");
108
+ process.stdout.write(` ${kleur.gray(footer)}\n`);
109
+ process.stdout.write(` ${kleur.gray("See WILD_IDEAS.md for the full catalog.")}\n`);
110
+ return Promise.resolve(0);
111
+ }
112
+ //# sourceMappingURL=wild-stubs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wild-stubs.js","sourceRoot":"","sources":["../../src/commands/wild-stubs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,KAAK,UAAU,aAAa;IACjC,OAAO,SAAS,CACd,QAAQ,EACR,4CAA4C,EAC5C;QACE,iDAAiD;QACjD,gEAAgE;QAChE,oEAAoE;QACpE,iDAAiD;QACjD,EAAE;QACF,iBAAiB;QACjB,KAAK,KAAK,CAAC,IAAI,CAAC,6DAA6D,CAAC,EAAE;QAChF,KAAK,KAAK,CAAC,IAAI,CAAC,qEAAqE,CAAC,EAAE;QACxF,EAAE;QACF,0BAA0B;QAC1B,qEAAqE;QACrE,kEAAkE;QAClE,yDAAyD;KAC1D,EACD,0DAA0D,CAC3D,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB;IACrC,OAAO,SAAS,CACd,YAAY,EACZ,uDAAuD,EACvD;QACE,wEAAwE;QACxE,wCAAwC;QACxC,EAAE;QACF,KAAK,KAAK,CAAC,IAAI,CAAC,oEAAoE,CAAC,EAAE;QACvF,KAAK,KAAK,CAAC,IAAI,CAAC,uDAAuD,CAAC,EAAE;QAC1E,EAAE;QACF,uBAAuB;QACvB,0CAA0C;QAC1C,4DAA4D;QAC5D,0D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6",
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.17.4",
34
- "@mneme-ai/correlator": "1.17.4",
35
- "@mneme-ai/embeddings": "1.17.4",
36
- "@mneme-ai/mcp": "1.17.4",
33
+ "@mneme-ai/core": "1.17.6",
34
+ "@mneme-ai/correlator": "1.17.6",
35
+ "@mneme-ai/embeddings": "1.17.6",
36
+ "@mneme-ai/mcp": "1.17.6",
37
37
  "commander": "^12.1.0",
38
38
  "kleur": "^4.1.5"
39
39
  },