@shahmilsaari/memory-core 1.0.32 → 1.0.35
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/README.md +8 -6
- package/dist/{approval-queue-YBYRGBHP.js → approval-queue-4RK46FNE.js} +2 -1
- package/dist/{ast-analyzer-JM4CIOFY.js → ast-analyzer-WGTJKGAP.js} +1 -0
- package/dist/{check-cache-6NWRTZJD.js → check-cache-ZVFHTA2C.js} +1 -0
- package/dist/{check-logger-5HYSWA3S.js → check-logger-F4DW4LBY.js} +1 -0
- package/dist/chunk-2LNDQGDD.js +37 -0
- package/dist/{chunk-23GUWJ6F.js → chunk-4QWIYO2G.js} +3071 -3271
- package/dist/{chunk-GIPKVQSA.js → chunk-5T2QBBYT.js} +3 -29
- package/dist/chunk-FPRSYCOZ.js +77 -0
- package/dist/chunk-HJCPBM7B.js +238 -0
- package/dist/chunk-K3NQKI34.js +10 -0
- package/dist/chunk-SKR44CRD.js +35 -0
- package/dist/{chunk-W6WEAV3S.js → chunk-UMYJQWIE.js} +13 -11
- package/dist/{chunk-PQBWHAZN.js → chunk-XAE3RY5D.js} +5 -2
- package/dist/{classifier-MZ65R7FK.js → classifier-D5K3X7FQ.js} +1 -0
- package/dist/cli.js +244 -80
- package/dist/{confidence-gate-ZQDAOS6P.js → confidence-gate-AT2MW4NK.js} +8 -6
- package/dist/dashboard/assets/index-BcDOsQwz.css +1 -0
- package/dist/dashboard/assets/index-DGx4sRHq.js +2 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/{dashboard-server-MD6NVL2F.js → dashboard-server-UBZHOPRC.js} +274 -21
- package/dist/{db-FLFZZXG3.js → db-RE23O4DV.js} +3 -1
- package/dist/{deterministic-validator-PP56B46I.js → deterministic-validator-3LB234OG.js} +1 -0
- package/dist/draft-rule-NUXOSRRS.js +11 -0
- package/dist/embedding-VIMV6O2P.js +9 -0
- package/dist/{evidence-HVMSONTT.js → evidence-WFMGWSOP.js} +1 -0
- package/dist/{graph-TFNTB5OK.js → graph-UJJAKNHD.js} +1 -0
- package/dist/{incident-capture-RVPZULS7.js → incident-capture-5YUVJJM3.js} +11 -0
- package/dist/mcp-server-3N7R46BS.js +14958 -0
- package/dist/memory-selection-A5CQ6ZT5.js +29 -0
- package/dist/{deepseek-critique-MALVIYGF.js → model-critique-E2GNZ42U.js} +18 -32
- package/dist/{ollama-judge-D2LFK5PB.js → ollama-judge-6ZEZN4JV.js} +29 -41
- package/dist/{rate-limiter-SLIPCXRF.js → rate-limiter-KIMXTAAU.js} +1 -0
- package/dist/{rules-V3QMN3AR.js → rules-UUVIKEDM.js} +1 -0
- package/dist/{watch-errors-B3FA26N4.js → watch-errors-DZMW3CFN.js} +28 -33
- package/package.json +2 -1
- package/templates/AGENTS.md.hbs +11 -27
- package/templates/AI_RULES.md.hbs +9 -23
- package/templates/ARCHITECTURE.md.hbs +9 -30
- package/templates/CLAUDE.md.hbs +10 -35
- package/templates/DEVIN.md.hbs +7 -16
- package/templates/PROJECT_MEMORY.md.hbs +5 -21
- package/templates/amazonq-guidelines.md.hbs +7 -16
- package/templates/clinerules.hbs +8 -17
- package/templates/copilot-instructions.md.hbs +7 -16
- package/templates/cursor-rule.mdc.hbs +4 -9
- package/templates/cursorrules.hbs +8 -14
- package/templates/gemini-styleguide.md.hbs +7 -16
- package/templates/jetbrains-ai.md.hbs +6 -15
- package/templates/roo-rule.md.hbs +6 -15
- package/templates/windsurfrules.hbs +9 -18
- package/dist/dashboard/assets/index-BFwqVRYO.js +0 -2
- package/dist/dashboard/assets/index-y7eHWJtq.css +0 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ AI tools like Copilot, Cursor, and Claude Code start fresh every session. They d
|
|
|
21
21
|
|
|
22
22
|
1. **Remember** — store architecture decisions and rules in PostgreSQL with plain-English reasons
|
|
23
23
|
2. **Distribute** — generate instruction files for 14 AI agents automatically from your stored rules
|
|
24
|
-
3. **Enforce** —
|
|
24
|
+
3. **Enforce** — multi-tier pipeline: deterministic layer graph (instant, confidence 1.0) → AI semantic review → optional model critique second opinion → confidence gate arbitrates. Auto-fixes violations on save by default.
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
npx @shahmilsaari/memory-core init
|
|
@@ -33,10 +33,11 @@ npx @shahmilsaari/memory-core init
|
|
|
33
33
|
|
|
34
34
|
- **281 pre-built rules** — seed best-practice rules for your stack in one command, with plain-English reasons
|
|
35
35
|
- **14 AI agents supported** — generates instruction files for Copilot, Cursor, Claude Code, Windsurf, and more automatically
|
|
36
|
-
- **Evidence-based enforcement** — catches layer violations
|
|
36
|
+
- **Evidence-based enforcement** — deterministic AST + dependency graph catches layer violations instantly; AI semantic review with confidence gating catches the rest; optional AI auto-fix on save
|
|
37
37
|
- **Runs fully local** — embeddings stay on your machine via Ollama; use any cloud provider (DeepSeek, OpenAI, Anthropic) only for code analysis
|
|
38
|
-
- **Live dashboard** — real-time violations feed, interactive architecture graph, and model switcher at `localhost:5178`
|
|
38
|
+
- **Live dashboard** — real-time violations feed, interactive architecture graph, memory model-check with batch resolve, and model switcher at `localhost:5178`
|
|
39
39
|
- **Team-ready** — export rules to `memories.json`, commit it, and teammates import with one command — no shared database needed
|
|
40
|
+
- **Token-optimized** — compressed prompts, prompt caching, and confidence-gated model critique save ~58% tokens per check without sacrificing accuracy
|
|
40
41
|
- **CI/CD built-in** — generates a GitHub Actions workflow; CI reads `memories.json` directly, no Ollama required
|
|
41
42
|
- **Commit message linting** — enforce conventional commits or any regex pattern via the `commit-msg` hook
|
|
42
43
|
- **Violation analytics** — track which rules fire most and auto-tune noisy ones with `memory-core tune`
|
|
@@ -86,7 +87,8 @@ Claude Code · GitHub Copilot · Cursor · Windsurf · Cline · Roo Code · Aide
|
|
|
86
87
|
memory-core remember "..." # store a rule or decision
|
|
87
88
|
memory-core sync # push rules to all AI agent files
|
|
88
89
|
memory-core check --diff HEAD~1 # enforce architecture on a diff
|
|
89
|
-
memory-core watch # real-time violation detection
|
|
90
|
+
memory-core watch # real-time violation detection on save
|
|
91
|
+
memory-core watch --auto-fix # also auto-rewrite violating files via AI
|
|
90
92
|
memory-core dashboard # live command center at localhost:5178
|
|
91
93
|
memory-core export # share rules with your team via memories.json
|
|
92
94
|
memory-core stats # see which rules fire most
|
|
@@ -100,8 +102,8 @@ memory-core stats # see which rules fire most
|
|
|
100
102
|
|
|
101
103
|
```env
|
|
102
104
|
DATABASE_URL=postgresql://localhost:5432/memory_core
|
|
103
|
-
|
|
104
|
-
|
|
105
|
+
EMBEDDING_URL=http://localhost:11434
|
|
106
|
+
EMBEDDING_MODEL=nomic-embed-text
|
|
105
107
|
|
|
106
108
|
# Pick your AI provider for code analysis
|
|
107
109
|
CHAT_PROVIDER=openai-compatible
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/config.ts
|
|
4
|
+
import { config } from "dotenv";
|
|
5
|
+
import { join } from "path";
|
|
6
|
+
var localEnv = join(process.cwd(), ".memory-core.env");
|
|
7
|
+
config({ path: localEnv });
|
|
8
|
+
var Config = {
|
|
9
|
+
get databaseUrl() {
|
|
10
|
+
return process.env.DATABASE_URL ?? "";
|
|
11
|
+
},
|
|
12
|
+
get embeddingUrl() {
|
|
13
|
+
return process.env.EMBEDDING_URL ?? process.env.OLLAMA_URL ?? "http://localhost:11434";
|
|
14
|
+
},
|
|
15
|
+
get embeddingModel() {
|
|
16
|
+
return process.env.EMBEDDING_MODEL ?? process.env.OLLAMA_MODEL ?? "nomic-embed-text";
|
|
17
|
+
},
|
|
18
|
+
get ollamaUrl() {
|
|
19
|
+
return this.embeddingUrl;
|
|
20
|
+
},
|
|
21
|
+
get ollamaModel() {
|
|
22
|
+
return this.embeddingModel;
|
|
23
|
+
},
|
|
24
|
+
get chatModel() {
|
|
25
|
+
return process.env.CHAT_MODEL ?? process.env.OLLAMA_CHAT_MODEL ?? "llama3.2";
|
|
26
|
+
},
|
|
27
|
+
get chatProvider() {
|
|
28
|
+
return process.env.CHAT_PROVIDER ?? "ollama";
|
|
29
|
+
},
|
|
30
|
+
get chatApiKey() {
|
|
31
|
+
return process.env.CHAT_API_KEY ?? "";
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
Config
|
|
37
|
+
};
|