super-memory-pro 0.2.0 β†’ 0.2.1

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 CHANGED
@@ -16,6 +16,10 @@
16
16
  <img src="https://img.shields.io/github/license/luftwaffe66/Super-Memory" alt="License"/>
17
17
  <img src="https://img.shields.io/badge/OpenCode-Plugin-8B5CF6" alt="OpenCode Plugin"/>
18
18
  <img src="https://img.shields.io/badge/status-alpha-yellow" alt="Status"/>
19
+ <img src="https://img.shields.io/npm/v/super-memory-pro?style=for-the-badge&logo=npm&color=CB3837" alt="npm"/>
20
+ </p>
21
+ <p>
22
+ <strong>πŸ“¦ <a href="https://www.npmjs.com/package/super-memory-pro">super-memory-pro</a> on npm</strong>
19
23
  </p>
20
24
 
21
25
  <img src="super-memory-opencode.png" alt="Super Memory Banner" width="100%"/>
@@ -45,41 +49,32 @@
45
49
 
46
50
  ## πŸ—οΈ Architecture
47
51
 
48
- ```
49
- β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
50
- β”‚ OpenCode β”‚
51
- β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
52
- β”‚ β”‚ Super Memory Plugin (TS/Node) β”‚ β”‚
53
- β”‚ β”‚ β”‚ β”‚
54
- β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚
55
- β”‚ β”‚ β”‚ Hooks β”‚ β”‚ Tools β”‚ β”‚ Express API β”‚ β”‚ β”‚
56
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ Server β”‚ β”‚ β”‚
57
- β”‚ β”‚ β”‚ β€’ Messageβ”‚ β”‚ β€’ mem_saveβ”‚ β”‚ β”‚ β”‚ β”‚
58
- β”‚ β”‚ β”‚ β€’ System β”‚ β”‚ β€’ mem_sea-β”‚ β”‚ CRUD + Search β”‚ β”‚ β”‚
59
- β”‚ β”‚ β”‚ Prompt β”‚ β”‚ rch β”‚ β”‚ + Health β”‚ β”‚ β”‚
60
- β”‚ β”‚ β”‚ β€’ Compactβ”‚ β”‚ β€’ mem_for-β”‚ β”‚ β”‚ β”‚ β”‚
61
- β”‚ β”‚ β”‚ ion β”‚ β”‚ get β”‚ β”‚ β”‚ β”‚ β”‚
62
- β”‚ β”‚ β”‚ β€’ Tool β”‚ β”‚ β€’ mem_sta-β”‚ β”‚ β”‚ β”‚ β”‚
63
- β”‚ β”‚ β”‚ Executeβ”‚ β”‚ ts β”‚ β”‚ β”‚ β”‚ β”‚
64
- β”‚ β”‚ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚
65
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚
66
- β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚
67
- β”‚ β”‚ β”‚ β”‚ β”‚
68
- β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚
69
- β”‚ β”‚ β”‚ Memory β”‚ β”‚ β”‚
70
- β”‚ β”‚ β”‚ Processor β”‚ β”‚ β”‚
71
- β”‚ β”‚ β”‚ (Extract β†’ β”‚ β”‚ β”‚
72
- β”‚ β”‚ β”‚ Store β†’ β”‚ β”‚ β”‚
73
- β”‚ β”‚ β”‚ Recall) β”‚ β”‚ β”‚
74
- β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚
75
- β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
76
- β”‚ β”‚ β”‚
77
- β”‚ β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β” β”‚
78
- β”‚ β”‚ PostgreSQL β”‚ β”‚
79
- β”‚ β”‚ (ultra_memo-β”‚ β”‚
80
- β”‚ β”‚ ry DB) β”‚ β”‚
81
- β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
82
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
52
+ ```mermaid
53
+ graph TB
54
+ subgraph OpenCode["OpenCode"]
55
+ direction TB
56
+ subgraph Plugin["Super Memory Plugin"]
57
+ direction TB
58
+ Hooks["Hooks<br/><br/>chat.message<br/>event<br/>tool.execute.after<br/>system.transform<br/>session.compacting"]
59
+ Tools["Tools<br/><br/>mem_save<br/>mem_search<br/>mem_forget<br/>mem_stats"]
60
+ API["Express API<br/><br/>GET /health<br/>POST /api/memory<br/>GET /api/memory/:id<br/>PUT /api/memory/:id<br/>DELETE /api/memory/:id<br/>GET /api/memory/search<br/>GET /api/memory/stats"]
61
+ Processor["Memory Processor<br/><br/>Extract β†’ Store β†’ Recall<br/><br/>Dedup Β· FTS Β· Ranking"]
62
+ end
63
+ DB[("PostgreSQL<br/>ultra_memory")]
64
+ end
65
+
66
+ Hooks --> Processor
67
+ Tools --> Processor
68
+ API --> Processor
69
+ Processor --> DB
70
+
71
+ style OpenCode fill:#1a1a2e,color:#fff,stroke:#16213e
72
+ style Plugin fill:#0f3460,color:#fff,stroke:#16213e
73
+ style DB fill:#1b4332,color:#fff,stroke:#2d6a4f
74
+ style Hooks fill:#1a5276,color:#fff,stroke:#2980b9
75
+ style Tools fill:#1a5276,color:#fff,stroke:#2980b9
76
+ style API fill:#1a5276,color:#fff,stroke:#2980b9
77
+ style Processor fill:#2471a3,color:#fff,stroke:#3498db
83
78
  ```
84
79
 
85
80
  ---
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C;;GAEG;AACH,wBAAgB,UAAU,IAAI,YAAY,CAoBzC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C;;GAEG;AACH,wBAAgB,UAAU,IAAI,YAAY,CAoBzC"}
package/dist/config.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { userInfo } from 'node:os';
1
2
  /**
2
3
  * Load configuration from environment variables with sensible defaults.
3
4
  */
@@ -7,7 +8,7 @@ export function loadConfig() {
7
8
  host: process.env.UM_DB_HOST || 'localhost',
8
9
  port: parseInt(process.env.UM_DB_PORT || '5432', 10),
9
10
  database: process.env.UM_DB_NAME || 'ultra_memory',
10
- user: process.env.UM_DB_USER || process.env.USER || 'postgres',
11
+ user: process.env.UM_DB_USER || process.env.USER || userInfo().username,
11
12
  password: process.env.UM_DB_PASSWORD || '',
12
13
  maxConnections: parseInt(process.env.UM_DB_POOL_MAX || '10', 10),
13
14
  },
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,UAAU;IACxB,OAAO;QACL,EAAE,EAAE;YACF,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,WAAW;YAC3C,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,MAAM,EAAE,EAAE,CAAC;YACpD,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,cAAc;YAClD,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,UAAU;YAC9D,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,EAAE;YAC1C,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,IAAI,EAAE,EAAE,CAAC;SACjE;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,GAAG,EAAE,EAAE,CAAC,EAAE,kBAAkB;YACzE,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,WAAW;SAChD;QACD,MAAM,EAAE;YACN,aAAa,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,GAAG,EAAE,EAAE,CAAC;YACjE,aAAa,EAAE,QAAQ,CAAC,OAAO,CAAC,GAA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CAAC,eAAe,KAAK,OAAO;SACrD;KACF,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "super-memory-pro",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "description": "Ultra-persistent memory plugin for OpenCode β€” learn, remember, and recall across sessions",
6
6
  "keywords": [
7
7
  "opencode",