@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.
@@ -12,7 +12,7 @@ import {
12
12
  searchMemories,
13
13
  updateMemory,
14
14
  upsertMemory
15
- } from "./chunk-25Y2KI7M.js";
15
+ } from "./chunk-WUL7HLAA.js";
16
16
  import "./chunk-KSLFLWB4.js";
17
17
  export {
18
18
  closePool,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shahmilsaari/memory-core",
3
- "version": "0.2.14",
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/**/*.test.ts"
22
+ "test": "node --import tsx --test test/*.test.ts"
20
23
  },
21
24
  "dependencies": {
22
25
  "@inquirer/prompts": "^5.0.0",
@@ -1,11 +1,10 @@
1
1
  # AGENTS.md — {{projectName}}
2
- <!-- Generated by memory-core on {{generatedAt}} — run: memory-core sync -->
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
- - [{{type}}{{#if this.architecture}} · {{this.architecture}}{{/if}}] {{content}}
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
- {{@index}}. **[{{type}}]** {{content}}
32
- {{#if tags.length}}_tags: {{join tags ", "}}_{{/if}}
30
+ {{memoryBlock this}}
33
31
  {{/each}}
34
32
  {{/if}}
35
33
  {{#if caveman.enabled}}
@@ -46,6 +46,6 @@
46
46
  ---
47
47
  ## Architectural Decisions
48
48
  {{#each memories}}
49
- > **[{{type}}]** {{content}}
49
+ {{memoryBlock this}}
50
50
  {{/each}}
51
51
  {{/if}}
@@ -1,5 +1,5 @@
1
1
  # CLAUDE.md
2
- <!-- Generated by memory-core on {{generatedAt}} — run: memory-core sync to refresh -->
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
- - [{{type}}] {{content}}{{#if tags.length}} _({{join tags ", "}})_{{/if}}
44
+ {{memoryBlock this}}
45
45
  {{/each}}
46
46
  {{/if}}
47
47
  {{#if caveman.enabled}}
@@ -16,7 +16,7 @@
16
16
 
17
17
  ## Project Memory
18
18
  {{#each memories}}
19
- - [{{type}}] {{content}}
19
+ {{memoryBlock this}}
20
20
  {{/each}}
21
21
  {{/if}}
22
22
  {{#if caveman.enabled}}
@@ -1,5 +1,5 @@
1
1
  # Project Memory — {{projectName}}
2
- <!-- Generated by memory-core on {{generatedAt}} — run: memory-core sync to refresh -->
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
- ### {{@index}}. [{{type}}] {{#if title}}{{title}}{{/if}}
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
- _Refresh: `memory-core sync`_
28
+ _Auto-sync is enabled by default after memory changes. Manual refresh: `memory-core sync`._
@@ -16,7 +16,7 @@ Stack: {{language}}
16
16
 
17
17
  ## Memory
18
18
  {{#each memories}}
19
- - {{content}}
19
+ {{memoryBlock this}}
20
20
  {{/each}}
21
21
  {{/if}}
22
22
  {{#if caveman.enabled}}
@@ -16,7 +16,7 @@ Stack: {{language}}
16
16
 
17
17
  ## Memories
18
18
  {{#each memories}}
19
- - {{content}}
19
+ {{memoryBlock this}}
20
20
  {{/each}}
21
21
  {{/if}}
22
22
  {{#if caveman.enabled}}
@@ -1,5 +1,5 @@
1
1
  # Copilot Instructions
2
- <!-- Generated by memory-core on {{generatedAt}} — run: memory-core sync to refresh -->
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
- - [{{type}}] {{content}}
25
+ {{memoryBlock this}}
26
26
  {{/each}}
27
27
  {{/if}}
28
28
  {{#if caveman.enabled}}
@@ -22,7 +22,7 @@ Type: {{projectType}} | Language: {{language}}
22
22
 
23
23
  ## Memory
24
24
  {{#each memories}}
25
- - {{content}}
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}} — run: memory-core sync
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
- - {{content}}
21
+ {{memoryBlock this}}
22
22
  {{/each}}
23
23
  {{/if}}
24
24
  {{#if caveman.enabled}}
@@ -16,7 +16,7 @@ Stack: {{language}}
16
16
 
17
17
  ## Memories
18
18
  {{#each memories}}
19
- - [{{type}}] {{content}}
19
+ {{memoryBlock this}}
20
20
  {{/each}}
21
21
  {{/if}}
22
22
  {{#if caveman.enabled}}
@@ -16,7 +16,7 @@ Stack: {{language}}
16
16
 
17
17
  ## Memory
18
18
  {{#each memories}}
19
- - {{content}}
19
+ {{memoryBlock this}}
20
20
  {{/each}}
21
21
  {{/if}}
22
22
  {{#if caveman.enabled}}
@@ -19,7 +19,7 @@ Stack: {{language}}
19
19
 
20
20
  ## Memories
21
21
  {{#each memories}}
22
- - [{{type}}] {{content}}
22
+ {{memoryBlock this}}
23
23
  {{/each}}
24
24
  {{/if}}
25
25
  {{#if caveman.enabled}}
@@ -16,7 +16,7 @@ Stack: {{language}}
16
16
 
17
17
  ## Inherited Memory
18
18
  {{#each memories}}
19
- - [{{type}}] {{content}}
19
+ {{memoryBlock this}}
20
20
  {{/each}}
21
21
  {{/if}}
22
22
  {{#if caveman.enabled}}