opcode-pg-memory 2.2.5 → 2.2.7
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 +1 -0
- package/dist/cli.js +42 -2
- package/dist/index.js +185 -174
- package/dist/mcp-server.js +107 -61
- package/dist/src/db/init-db.d.ts +1 -0
- package/dist/src/db/init-db.d.ts.map +1 -1
- package/dist/src/hooks/message-part-updated.d.ts.map +1 -1
- package/dist/src/hooks/message-updated.d.ts.map +1 -1
- package/dist/src/hooks/session-compacting.d.ts.map +1 -1
- package/dist/src/hooks/session-completed.d.ts.map +1 -1
- package/dist/src/hooks/session-created.d.ts.map +1 -1
- package/dist/src/hooks/tool-execute.d.ts.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mcp/hindsight-reflect-omo.d.ts.map +1 -1
- package/dist/src/mcp/hindsight-reflect.d.ts.map +1 -1
- package/dist/src/mcp/recall-memory-omo.d.ts.map +1 -1
- package/dist/src/mcp/recall-memory.d.ts.map +1 -1
- package/package.json +70 -68
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recall-memory.d.ts","sourceRoot":"","sources":["../../../src/mcp/recall-memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"recall-memory.d.ts","sourceRoot":"","sources":["../../../src/mcp/recall-memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAU1B,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,4FAA4F;IAC5F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kGAAkG;IAClG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yEAAyE;IACzE,cAAc,CAAC,EAAE;QACf,IAAI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MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,kBAAkB;IAEjC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE;QACb,gBAAgB,EAAE,MAAM,CAAC;QACzB,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;IAGF,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE;QACP,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;CACxB;AA0BD;;;;;;;;;;GAUG;AACH,wBAAsB,YAAY,CAChC,KAAK,EAAE,iBAAiB,EACxB,IAAI,EAAE,IAAI,EACV,MAAM,GAAE,OAAO,CAAC,kBAAkB,CAAM,GACvC,OAAO,CAAC,kBAAkB,CAAC,CAsI7B"}
|
package/package.json
CHANGED
|
@@ -1,68 +1,70 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "opcode-pg-memory",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"description": "OpenCode plugin for persistent memory using PostgreSQL + pgvector
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"bin": {
|
|
9
|
-
"opcode-pg-memory": "dist/cli.js"
|
|
10
|
-
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "bun build ./src/index.ts --outdir ./dist --target node && bun build ./src/cli.ts --outfile ./dist/cli.js --target node && bun build ./mcp-server.ts --outfile ./dist/mcp-server.js --target node && tsc --emitDeclarationOnly",
|
|
13
|
-
"typecheck": "tsc --noEmit",
|
|
14
|
-
"clean": "rimraf dist"
|
|
15
|
-
},
|
|
16
|
-
"keywords": [
|
|
17
|
-
"opencode",
|
|
18
|
-
"plugin",
|
|
19
|
-
"memory",
|
|
20
|
-
"postgresql",
|
|
21
|
-
"pgvector",
|
|
22
|
-
"hindsight",
|
|
23
|
-
"mcp",
|
|
24
|
-
"agent"
|
|
25
|
-
],
|
|
26
|
-
"author": "Vbs313",
|
|
27
|
-
"license": "GPL-3.0",
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/Vbs313/opcode-pg-memory.git"
|
|
31
|
-
},
|
|
32
|
-
"opencode": {
|
|
33
|
-
"type": "plugin",
|
|
34
|
-
"hooks": [
|
|
35
|
-
"chat.message",
|
|
36
|
-
"event",
|
|
37
|
-
"tool.execute.before",
|
|
38
|
-
"tool.execute.after",
|
|
39
|
-
"experimental.session.compacting"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
".
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"openai": "^4.20.0",
|
|
55
|
-
"dotenv": "^16.3.1"
|
|
56
|
-
},
|
|
57
|
-
"devDependencies": {
|
|
58
|
-
"@types/node": "^20.10.0",
|
|
59
|
-
"@types/pg": "^8.10.9",
|
|
60
|
-
"@types/uuid": "^9.0.7",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "opcode-pg-memory",
|
|
3
|
+
"version": "2.2.7",
|
|
4
|
+
"description": "OpenCode plugin for persistent memory using PostgreSQL + pgvector �?four-layer memory architecture with topic segmentation",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"opcode-pg-memory": "dist/cli.js"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "bun build ./src/index.ts --outdir ./dist --target node && bun build ./src/cli.ts --outfile ./dist/cli.js --target node && bun build ./mcp-server.ts --outfile ./dist/mcp-server.js --target node && tsc --emitDeclarationOnly",
|
|
13
|
+
"typecheck": "tsc --noEmit",
|
|
14
|
+
"clean": "rimraf dist"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"opencode",
|
|
18
|
+
"plugin",
|
|
19
|
+
"memory",
|
|
20
|
+
"postgresql",
|
|
21
|
+
"pgvector",
|
|
22
|
+
"hindsight",
|
|
23
|
+
"mcp",
|
|
24
|
+
"agent"
|
|
25
|
+
],
|
|
26
|
+
"author": "Vbs313",
|
|
27
|
+
"license": "GPL-3.0",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/Vbs313/opcode-pg-memory.git"
|
|
31
|
+
},
|
|
32
|
+
"opencode": {
|
|
33
|
+
"type": "plugin",
|
|
34
|
+
"hooks": [
|
|
35
|
+
"chat.message",
|
|
36
|
+
"event",
|
|
37
|
+
"tool.execute.before",
|
|
38
|
+
"tool.execute.after",
|
|
39
|
+
"experimental.session.compacting",
|
|
40
|
+
"experimental.chat.system.transform"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"dist",
|
|
45
|
+
"scripts/migration-v2.sql",
|
|
46
|
+
".env.example",
|
|
47
|
+
"README.md"
|
|
48
|
+
],
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"pg": "^8.11.3",
|
|
51
|
+
"pgvector": "^0.1.8",
|
|
52
|
+
"@modelcontextprotocol/sdk": "^0.5.0",
|
|
53
|
+
"uuid": "^9.0.1",
|
|
54
|
+
"openai": "^4.20.0",
|
|
55
|
+
"dotenv": "^16.3.1"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@types/node": "^20.10.0",
|
|
59
|
+
"@types/pg": "^8.10.9",
|
|
60
|
+
"@types/uuid": "^9.0.7",
|
|
61
|
+
"typescript": "^5.3.2",
|
|
62
|
+
"rimraf": "^5.0.5",
|
|
63
|
+
"jest": "^29.7.0",
|
|
64
|
+
"ts-jest": "^29.1.1",
|
|
65
|
+
"@types/jest": "^29.5.10"
|
|
66
|
+
},
|
|
67
|
+
"engines": {
|
|
68
|
+
"node": ">=18.0.0"
|
|
69
|
+
}
|
|
70
|
+
}
|