opencode-memtomem 0.3.3 → 0.3.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/README.md +9 -3
- package/dist/generated.d.ts +1 -0
- package/dist/generated.js +1 -0
- package/dist/server.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,23 +6,29 @@ and three read-only skills. It does not add event hooks or automatic indexing.
|
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
|
-
The npm release for this core version is `opencode-memtomem@0.3.
|
|
9
|
+
The npm release for this core version is `opencode-memtomem@0.3.4`, bundling
|
|
10
10
|
core `0.6.2`.
|
|
11
11
|
|
|
12
12
|
Do not use an `opencode plugin add` command; OpenCode loads npm plugins from
|
|
13
13
|
the singular `plugin` array in `opencode.json`:
|
|
14
14
|
|
|
15
15
|
```json
|
|
16
|
-
{"plugin": ["opencode-memtomem@0.3.
|
|
16
|
+
{"plugin": ["opencode-memtomem@0.3.4"]}
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Upgrade if your pin is still `0.1.3` or older: those bundle pre-`0.3.14`
|
|
20
20
|
cores, whose `mcp` dependency has no `<2` upper bound, so a fresh resolve
|
|
21
21
|
picks up `mcp` 2.x and fails at import (#1978).
|
|
22
22
|
|
|
23
|
+
Upgrade if your pin is `0.3.3` or older and your memtomem configuration selects
|
|
24
|
+
an ONNX embedding provider, such as the E5 CPU profile: those releases start the
|
|
25
|
+
server without the ONNX dependencies (#2453). The plugin never replaces an
|
|
26
|
+
`mcp.memtomem` entry you already define, so a hand-written entry keeps its own
|
|
27
|
+
launch command — update or remove it to use the plugin's.
|
|
28
|
+
|
|
23
29
|
Restart OpenCode, then run `/memtomem-status` or `/memtomem-search topic`.
|
|
24
30
|
`uvx` must be available on `PATH`; the plugin starts the exact-pinned
|
|
25
|
-
`memtomem==0.6.2` runtime on demand. For development from this repository,
|
|
31
|
+
`memtomem[onnx]==0.6.2` runtime on demand. For development from this repository,
|
|
26
32
|
point the same `plugin` array at `packages/opencode-memtomem/dist/server.js`.
|
|
27
33
|
|
|
28
34
|
If you only need the MCP tools — without the bundled commands and skills —
|
package/dist/generated.d.ts
CHANGED
package/dist/generated.js
CHANGED
package/dist/server.js
CHANGED
|
@@ -2,7 +2,7 @@ import { access } from "node:fs/promises";
|
|
|
2
2
|
import { homedir } from "node:os";
|
|
3
3
|
import { basename, dirname, join, resolve, sep } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
import {
|
|
5
|
+
import { MCP_REQUIREMENT, MCP_TIMEOUT_MS, OPENCODE_COMMANDS, OPENCODE_READ_SKILLS, TOOL_MODE, } from "./generated.js";
|
|
6
6
|
const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
7
7
|
export const SAFE_PERMISSIONS = {
|
|
8
8
|
"memtomem_*": "ask",
|
|
@@ -93,7 +93,7 @@ async function configure(config, input) {
|
|
|
93
93
|
if (!("memtomem" in config.mcp)) {
|
|
94
94
|
config.mcp.memtomem = {
|
|
95
95
|
type: "local",
|
|
96
|
-
command: ["uvx", "--from",
|
|
96
|
+
command: ["uvx", "--from", MCP_REQUIREMENT, "memtomem-server"],
|
|
97
97
|
enabled: true,
|
|
98
98
|
timeout: MCP_TIMEOUT_MS,
|
|
99
99
|
environment: { MEMTOMEM_TOOL_MODE: TOOL_MODE },
|