@shahmilsaari/memory-core 0.1.8 → 0.2.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/README.md +2 -2
- package/dist/cli.js +14 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -156,7 +156,7 @@ cd my-api
|
|
|
156
156
|
# 2. Initialize — answers a few questions, generates all config files
|
|
157
157
|
npx @shahmilsaari/memory-core init
|
|
158
158
|
|
|
159
|
-
# 3. Load
|
|
159
|
+
# 3. Load 281 predefined best-practice rules
|
|
160
160
|
npx @shahmilsaari/memory-core seed
|
|
161
161
|
|
|
162
162
|
# 4. Install the pre-commit hook (optional but recommended)
|
|
@@ -237,7 +237,7 @@ Uses AI search — finds related rules even if you don't use the exact words.
|
|
|
237
237
|
|
|
238
238
|
### `seed` — Load predefined rules
|
|
239
239
|
|
|
240
|
-
|
|
240
|
+
281 best-practice rules across all supported architectures, each with a plain-English reason explaining why the rule exists.
|
|
241
241
|
|
|
242
242
|
```bash
|
|
243
243
|
npx @shahmilsaari/memory-core seed # all architectures
|
package/dist/cli.js
CHANGED
|
@@ -1174,6 +1174,7 @@ function printBanner(projectName, agentCount) {
|
|
|
1174
1174
|
chalk3.green(` \u2713 Memory `) + chalk3.bold("PostgreSQL + pgvector ready"),
|
|
1175
1175
|
"",
|
|
1176
1176
|
chalk3.dim(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"),
|
|
1177
|
+
chalk3.dim(" Built by ") + chalk3.bold.white("Shahmil Saari"),
|
|
1177
1178
|
"",
|
|
1178
1179
|
chalk3.bold(" Every AI agent in this project now follows your rules."),
|
|
1179
1180
|
"",
|
|
@@ -1217,17 +1218,28 @@ program.command("init").description("Initialize memory-core in the current proje
|
|
|
1217
1218
|
message: "Ollama URL?",
|
|
1218
1219
|
default: "http://localhost:11434"
|
|
1219
1220
|
});
|
|
1221
|
+
const chatModelChoice = await select({
|
|
1222
|
+
message: "Which Ollama model for code checking?",
|
|
1223
|
+
choices: [
|
|
1224
|
+
{ name: "llama3.2 (fast, 2GB, recommended for most machines)", value: "llama3.2" },
|
|
1225
|
+
{ name: "qwen2.5-coder (better code understanding, 4.7GB)", value: "qwen2.5-coder" },
|
|
1226
|
+
{ name: "mistral (balanced, 4.1GB)", value: "mistral" },
|
|
1227
|
+
{ name: "codellama (code-focused, 3.8GB)", value: "codellama" },
|
|
1228
|
+
{ name: "Other (enter manually)", value: "__custom__" }
|
|
1229
|
+
]
|
|
1230
|
+
});
|
|
1231
|
+
const chatModel = chatModelChoice === "__custom__" ? await input({ message: "Model name (must be available in your Ollama)?", default: "llama3.2" }) : chatModelChoice;
|
|
1220
1232
|
const envContent = [
|
|
1221
1233
|
`DATABASE_URL=${dbUrl}`,
|
|
1222
1234
|
`OLLAMA_URL=${ollamaUrl}`,
|
|
1223
1235
|
`OLLAMA_MODEL=nomic-embed-text`,
|
|
1224
|
-
`OLLAMA_CHAT_MODEL
|
|
1236
|
+
`OLLAMA_CHAT_MODEL=${chatModel}`
|
|
1225
1237
|
].join("\n") + "\n";
|
|
1226
1238
|
writeFileSync3(envPath, envContent);
|
|
1227
1239
|
process.env.DATABASE_URL = dbUrl;
|
|
1228
1240
|
process.env.OLLAMA_URL = ollamaUrl;
|
|
1229
1241
|
process.env.OLLAMA_MODEL = "nomic-embed-text";
|
|
1230
|
-
process.env.OLLAMA_CHAT_MODEL =
|
|
1242
|
+
process.env.OLLAMA_CHAT_MODEL = chatModel;
|
|
1231
1243
|
const gitignorePath = join6(process.cwd(), ".gitignore");
|
|
1232
1244
|
if (existsSync6(gitignorePath)) {
|
|
1233
1245
|
const gi = readFileSync5(gitignorePath, "utf-8");
|