@shahmilsaari/memory-core 0.2.14 → 0.2.16
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 +95 -8
- package/dist/{chunk-25Y2KI7M.js → chunk-WUL7HLAA.js} +32 -13
- package/dist/cli.js +543 -99
- package/dist/{db-5X5LTUCB.js → db-MF3VKVKH.js} +1 -1
- package/package.json +5 -2
- package/templates/AGENTS.md.hbs +3 -4
- package/templates/AI_RULES.md.hbs +2 -4
- package/templates/ARCHITECTURE.md.hbs +1 -1
- package/templates/CLAUDE.md.hbs +2 -2
- package/templates/DEVIN.md.hbs +1 -1
- package/templates/PROJECT_MEMORY.md.hbs +3 -6
- package/templates/amazonq-guidelines.md.hbs +1 -1
- package/templates/clinerules.hbs +1 -1
- package/templates/copilot-instructions.md.hbs +2 -2
- package/templates/cursor-rule.mdc.hbs +1 -1
- package/templates/cursorrules.hbs +2 -2
- package/templates/gemini-styleguide.md.hbs +1 -1
- package/templates/jetbrains-ai.md.hbs +1 -1
- package/templates/roo-rule.md.hbs +1 -1
- package/templates/windsurfrules.hbs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shahmilsaari/memory-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"description": "Universal AI memory core — generate AI context files from architecture profiles with RAG support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -14,9 +14,12 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "tsup",
|
|
16
16
|
"typecheck": "tsc --noEmit",
|
|
17
|
+
"lint": "node scripts/lint.mjs",
|
|
18
|
+
"smoke:pack": "node scripts/pack-smoke.mjs",
|
|
19
|
+
"smoke:npx": "node scripts/npx-init-smoke.mjs",
|
|
17
20
|
"dev": "tsx src/cli.ts",
|
|
18
21
|
"start": "node dist/cli.js",
|
|
19
|
-
"test": "node --import tsx --test test
|
|
22
|
+
"test": "node --import tsx --test test/*.test.ts"
|
|
20
23
|
},
|
|
21
24
|
"dependencies": {
|
|
22
25
|
"@inquirer/prompts": "^5.0.0",
|
package/templates/AGENTS.md.hbs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
# AGENTS.md — {{projectName}}
|
|
2
|
-
<!-- Generated by memory-core on {{generatedAt}} —
|
|
2
|
+
<!-- Generated by memory-core on {{generatedAt}} — auto-sync keeps this fresh; manual refresh: memory-core sync -->
|
|
3
3
|
|
|
4
4
|
**Type:** {{projectType}} | **Language:** {{language}}
|
|
5
5
|
{{#if hasBackend}}**Backend:** {{backendArchitecture}}{{/if}}
|
|
6
6
|
{{#if hasFrontend}}**Frontend:** {{frontendFramework}}{{/if}}
|
|
7
7
|
|
|
8
|
-
---
|
|
9
8
|
{{#if hasBackend}}
|
|
10
9
|
## Backend Rules — {{backendArchitecture}}
|
|
11
10
|
{{bullet backendRules}}
|
|
@@ -30,9 +29,9 @@
|
|
|
30
29
|
{{#if hasMemories}}
|
|
31
30
|
|
|
32
31
|
---
|
|
33
|
-
## Memory from Previous Projects
|
|
32
|
+
## Relevant Memory from Previous Projects
|
|
34
33
|
{{#each memories}}
|
|
35
|
-
|
|
34
|
+
{{memoryBlock this}}
|
|
36
35
|
{{/each}}
|
|
37
36
|
{{/if}}
|
|
38
37
|
{{#if caveman.enabled}}
|
|
@@ -7,7 +7,6 @@ These rules apply to ALL AI agents in this project.
|
|
|
7
7
|
{{#if hasBackend}}**Backend:** {{backendArchitecture}}{{/if}}
|
|
8
8
|
{{#if hasFrontend}}**Frontend:** {{frontendFramework}}{{/if}}
|
|
9
9
|
|
|
10
|
-
---
|
|
11
10
|
{{#if hasBackend}}
|
|
12
11
|
## Backend — {{backendArchitecture}}
|
|
13
12
|
{{numbered backendRules}}
|
|
@@ -26,10 +25,9 @@ These rules apply to ALL AI agents in this project.
|
|
|
26
25
|
{{#if hasMemories}}
|
|
27
26
|
|
|
28
27
|
---
|
|
29
|
-
## Inherited Decisions
|
|
28
|
+
## Relevant Inherited Decisions
|
|
30
29
|
{{#each memories}}
|
|
31
|
-
{{
|
|
32
|
-
{{#if tags.length}}_tags: {{join tags ", "}}_{{/if}}
|
|
30
|
+
{{memoryBlock this}}
|
|
33
31
|
{{/each}}
|
|
34
32
|
{{/if}}
|
|
35
33
|
{{#if caveman.enabled}}
|
package/templates/CLAUDE.md.hbs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# CLAUDE.md
|
|
2
|
-
<!-- Generated by memory-core on {{generatedAt}} —
|
|
2
|
+
<!-- Generated by memory-core on {{generatedAt}} — auto-sync keeps this fresh; manual refresh: memory-core sync -->
|
|
3
3
|
|
|
4
4
|
## Project
|
|
5
5
|
**Name:** {{projectName}}
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
---
|
|
42
42
|
## Relevant Memories
|
|
43
43
|
{{#each memories}}
|
|
44
|
-
|
|
44
|
+
{{memoryBlock this}}
|
|
45
45
|
{{/each}}
|
|
46
46
|
{{/if}}
|
|
47
47
|
{{#if caveman.enabled}}
|
package/templates/DEVIN.md.hbs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Project Memory — {{projectName}}
|
|
2
|
-
<!-- Generated by memory-core on {{generatedAt}} —
|
|
2
|
+
<!-- Generated by memory-core on {{generatedAt}} — auto-sync keeps this fresh; manual refresh: memory-core sync -->
|
|
3
3
|
|
|
4
4
|
Architecture: {{architecture}}
|
|
5
5
|
Stack: {{language}}
|
|
@@ -9,10 +9,7 @@ Stack: {{language}}
|
|
|
9
9
|
_Pulled from central memory via semantic search on "{{architecture}} {{language}}"_
|
|
10
10
|
|
|
11
11
|
{{#each memories}}
|
|
12
|
-
|
|
13
|
-
{{content}}
|
|
14
|
-
{{#if tags.length}}_Tags: {{join tags ", "}}_{{/if}}
|
|
15
|
-
{{#if this.project_name}}_Source: {{this.project_name}}_{{/if}}
|
|
12
|
+
{{memoryBlock this}}
|
|
16
13
|
|
|
17
14
|
{{/each}}
|
|
18
15
|
{{else}}
|
|
@@ -28,4 +25,4 @@ memory-core remember "Your architectural decision here"
|
|
|
28
25
|
---
|
|
29
26
|
_Add memories: `memory-core remember "..."`_
|
|
30
27
|
_Search memories: `memory-core search "..."`_
|
|
31
|
-
|
|
28
|
+
_Auto-sync is enabled by default after memory changes. Manual refresh: `memory-core sync`._
|
package/templates/clinerules.hbs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Copilot Instructions
|
|
2
|
-
<!-- Generated by memory-core on {{generatedAt}} —
|
|
2
|
+
<!-- Generated by memory-core on {{generatedAt}} — auto-sync keeps this fresh; manual refresh: memory-core sync -->
|
|
3
3
|
|
|
4
4
|
Project: **{{projectName}}** · Type: **{{projectType}}** · Language: **{{language}}**
|
|
5
5
|
{{#if hasBackend}}Backend: {{backendArchitecture}}{{/if}}{{#if hasFrontend}} | Frontend: {{frontendFramework}}{{/if}}
|
|
@@ -22,7 +22,7 @@ Project: **{{projectName}}** · Type: **{{projectType}}** · Language: **{{langu
|
|
|
22
22
|
|
|
23
23
|
## Project Memory
|
|
24
24
|
{{#each memories}}
|
|
25
|
-
|
|
25
|
+
{{memoryBlock this}}
|
|
26
26
|
{{/each}}
|
|
27
27
|
{{/if}}
|
|
28
28
|
{{#if caveman.enabled}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Cursor Rules — {{projectName}}
|
|
2
|
-
# Generated by memory-core on {{generatedAt}} —
|
|
2
|
+
# Generated by memory-core on {{generatedAt}} — auto-sync keeps this fresh; manual refresh: memory-core sync
|
|
3
3
|
|
|
4
4
|
Type: {{projectType}} | Language: {{language}}
|
|
5
5
|
{{#if hasBackend}}Backend: {{backendArchitecture}}{{/if}}{{#if hasFrontend}} | Frontend: {{frontendFramework}}{{/if}}
|
|
@@ -18,7 +18,7 @@ Type: {{projectType}} | Language: {{language}}
|
|
|
18
18
|
|
|
19
19
|
## Memory
|
|
20
20
|
{{#each memories}}
|
|
21
|
-
|
|
21
|
+
{{memoryBlock this}}
|
|
22
22
|
{{/each}}
|
|
23
23
|
{{/if}}
|
|
24
24
|
{{#if caveman.enabled}}
|