@knikolov/opencode-plugin-simple-memory 1.0.3 → 1.0.4
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/index.ts +1 -0
- package/package.json +2 -4
- package/src/index.ts +2 -1
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knikolov/opencode-plugin-simple-memory",
|
|
3
3
|
"module": "index.ts",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"author": "knikolov",
|
|
6
6
|
"repository": "https://github.com/cnicolov/opencode-plugin-simple-memory",
|
|
7
7
|
"files": [
|
|
@@ -10,10 +10,8 @@
|
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"type": "module",
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"@opencode-ai/plugin": "^1.0.157"
|
|
15
|
-
},
|
|
16
13
|
"devDependencies": {
|
|
14
|
+
"@opencode-ai/plugin": "^1.0.153",
|
|
17
15
|
"@types/bun": "latest"
|
|
18
16
|
},
|
|
19
17
|
"peerDependencies": {
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Plugin, tool } from "@opencode-ai/plugin"
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
let MEMORY_DIR = ".opencode/memory"
|
|
4
4
|
|
|
5
5
|
const getMemoryFile = () => {
|
|
6
6
|
const date = new Date().toISOString().split("T")[0]
|
|
@@ -345,6 +345,7 @@ const forget = tool({
|
|
|
345
345
|
})
|
|
346
346
|
|
|
347
347
|
export const MemoryPlugin: Plugin = async (_ctx) => {
|
|
348
|
+
MEMORY_DIR = `${_ctx.directory}/.opencode/memory`
|
|
348
349
|
return {
|
|
349
350
|
tool: {
|
|
350
351
|
memory_remember: remember,
|