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 +30 -35
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -1
- package/dist/config.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
---
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"
|
|
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 ||
|
|
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
|
},
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnC;;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,QAAQ,EAAE,CAAC,QAAQ;YACvE,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,GAAG,CAAC,iBAAiB,IAAI,GAAG,EAAE,EAAE,CAAC;YACjE,WAAW,EAAE,OAAO,CAAC,GAAG,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.
|
|
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",
|