opencode-memtomem 0.1.0 → 0.1.2

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
@@ -6,9 +6,10 @@ and three read-only skills. It does not add event hooks or automatic indexing.
6
6
 
7
7
  ## Current status
8
8
 
9
- `opencode-memtomem` is present in this source repository but is not currently
10
- published to npm. Do not use an `opencode plugin add` command; OpenCode loads
11
- npm plugins from the singular `plugin` array in `opencode.json`.
9
+ The published npm release is `opencode-memtomem@0.1.1`; this source tree is
10
+ version `0.1.2` (bundling core `0.3.12`), which is not on npm yet. Do not use
11
+ an `opencode plugin add` command; OpenCode loads npm plugins from the singular
12
+ `plugin` array in `opencode.json`.
12
13
 
13
14
  For a released memtomem installation, configure the local MCP server now:
14
15
 
@@ -18,7 +19,7 @@ For a released memtomem installation, configure the local MCP server now:
18
19
  "mcp": {
19
20
  "memtomem": {
20
21
  "type": "local",
21
- "command": ["uvx", "--isolated", "--from", "memtomem[all]==0.3.10", "memtomem-server"],
22
+ "command": ["uvx", "--isolated", "--from", "memtomem[all]==0.3.12", "memtomem-server"],
22
23
  "enabled": true,
23
24
  "timeout": 60000,
24
25
  "environment": {"MEMTOMEM_TOOL_MODE": "core"}
@@ -27,15 +28,15 @@ For a released memtomem installation, configure the local MCP server now:
27
28
  }
28
29
  ```
29
30
 
30
- After the npm package is published, the plugin form will be:
31
+ After `0.1.2` is published, the plugin form will be:
31
32
 
32
33
  ```json
33
- {"plugin": ["opencode-memtomem@0.1.0"]}
34
+ {"plugin": ["opencode-memtomem@0.1.2"]}
34
35
  ```
35
36
 
36
37
  Restart OpenCode, then run `/memtomem-status` or `/memtomem-search topic`.
37
38
  `uvx` must be available on `PATH`. The manual configuration above starts the
38
- exact-pinned `memtomem[all]==0.3.10` runtime on demand.
39
+ exact-pinned `memtomem[all]==0.3.12` runtime on demand.
39
40
 
40
41
  The plugin supports macOS, Linux, and Windows through WSL. Native Windows has
41
42
  not been verified.
@@ -1,4 +1,4 @@
1
- export declare const CORE_VERSION = "0.3.10";
1
+ export declare const CORE_VERSION = "0.3.12";
2
2
  export declare const TOOL_MODE = "core";
3
3
  export declare const MCP_TIMEOUT_MS = 60000;
4
4
  export declare const OPENCODE_COMMANDS: {
@@ -16,7 +16,7 @@ export declare const OPENCODE_COMMANDS: {
16
16
  };
17
17
  readonly "memtomem-remember": {
18
18
  readonly description: "Save an explicit user-requested memory with memtomem. Use only when the user clearly asks to remember, record, or persist information for later.";
19
- readonly template: "Use the memtomem remember workflow.\n\nUser input: $ARGUMENTS\n\nConfirm that the user explicitly requested persistence, then call `memtomem_mem_add` with the requested content. Add a natural title and a small set of useful tags only when they are clear from the content.\n\nUse `scope=\"user\"` by default and leave `force_unsafe=false`. Use `project_shared` only after explicit confirmation and set `confirm_project_shared=true`. Report the written file and indexed chunk count. If the tool reports a similar memory, surface the warning rather than silently creating another variant.";
19
+ readonly template: "Use the memtomem remember workflow.\n\nUser input: $ARGUMENTS\n\nConfirm that the user explicitly requested persistence. Add a natural title and a small set of useful tags only when they are clear from the content.\n\nChoose the destination from the user's context:\n\n- For a project-specific fact or decision, call `memtomem_mem_status` first. If the current project has a registered `.memtomem/memories.local` source, call `memtomem_mem_add` with `scope=\"project_local\"`.\n- If the request is project-specific but that tier is not registered, do not silently fall back to user memory. Ask the user to run `cd <project-root> && mm mem init --scope project_local`, then retry.\n- Use `scope=\"user\"` only for cross-project preferences or when the user explicitly requests personal/global memory.\n- Use `project_shared` only after explicit confirmation and set `confirm_project_shared=true`.\n\nAlways leave `force_unsafe=false`. Report the effective scope, written file, and indexed chunk count. If the tool reports a similar memory, surface the warning rather than silently creating another variant.";
20
20
  };
21
21
  readonly "memtomem-index": {
22
22
  readonly description: "Index or re-index an explicitly selected file or directory with memtomem. Use for initial ingestion or intentional refresh after file changes.";
@@ -24,7 +24,7 @@ export declare const OPENCODE_COMMANDS: {
24
24
  };
25
25
  readonly "memtomem-setup": {
26
26
  readonly description: "Set up and verify a first memtomem memory source. Use for onboarding, choosing an index path, or confirming that search works.";
27
- readonly template: "Use the memtomem setup workflow.\n\nUser input: $ARGUMENTS\n\n1. Call `memtomem_mem_status` and treat the default `provider=none` BM25-only configuration as healthy.\n2. Obtain an explicit notes or memory directory from the request; ask for one when absent.\n3. Call `memtomem_mem_index` on that path with `force=false` and `auto_tag=false`.\n4. Choose a representative phrase from the indexed material and call `memtomem_mem_search` to verify retrieval.\n5. Report the first-success path and mention embeddings only as an optional relevance enhancement.\n\nDo not install Ollama, enable automation hooks, or edit host instruction files unless the user separately requests those actions.";
27
+ readonly template: "Use the memtomem setup workflow.\n\nUser input: $ARGUMENTS\n\n1. Call `memtomem_mem_status` and treat the default `provider=none` BM25-only configuration as healthy.\n2. If status says memtomem is not configured, stop before indexing and give the exact terminal bootstrap command from the plugin README. Preserve project context by prefixing it with `cd <project-root> &&` when the setup is project-specific. Retry only after the user completes that explicit trust step.\n3. Obtain an explicit notes or memory directory from the request; ask for one when absent.\n4. Call `memtomem_mem_index` on that path with `force=false` and `auto_tag=false`. This is a one-shot index and must not silently register a watcher root.\n5. Choose a representative phrase from the indexed material and call `memtomem_mem_search` to verify retrieval.\n6. Report the effective DB path, indexed path, and first-success result. Mention embeddings only as an optional relevance enhancement.\n\nDo not install Ollama, enable automation hooks, or edit host instruction files unless the user separately requests those actions.";
28
28
  };
29
29
  };
30
30
  export declare const OPENCODE_READ_SKILLS: readonly ["memtomem-search", "memtomem-recall", "memtomem-status"];
package/dist/generated.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Generated by tools/render_plugin_assets.py. Do not edit.
2
- export const CORE_VERSION = "0.3.10";
2
+ export const CORE_VERSION = "0.3.12";
3
3
  export const TOOL_MODE = "core";
4
4
  export const MCP_TIMEOUT_MS = 60000;
5
5
  export const OPENCODE_COMMANDS = {
@@ -17,7 +17,7 @@ export const OPENCODE_COMMANDS = {
17
17
  },
18
18
  "memtomem-remember": {
19
19
  "description": "Save an explicit user-requested memory with memtomem. Use only when the user clearly asks to remember, record, or persist information for later.",
20
- "template": "Use the memtomem remember workflow.\n\nUser input: $ARGUMENTS\n\nConfirm that the user explicitly requested persistence, then call `memtomem_mem_add` with the requested content. Add a natural title and a small set of useful tags only when they are clear from the content.\n\nUse `scope=\"user\"` by default and leave `force_unsafe=false`. Use `project_shared` only after explicit confirmation and set `confirm_project_shared=true`. Report the written file and indexed chunk count. If the tool reports a similar memory, surface the warning rather than silently creating another variant."
20
+ "template": "Use the memtomem remember workflow.\n\nUser input: $ARGUMENTS\n\nConfirm that the user explicitly requested persistence. Add a natural title and a small set of useful tags only when they are clear from the content.\n\nChoose the destination from the user's context:\n\n- For a project-specific fact or decision, call `memtomem_mem_status` first. If the current project has a registered `.memtomem/memories.local` source, call `memtomem_mem_add` with `scope=\"project_local\"`.\n- If the request is project-specific but that tier is not registered, do not silently fall back to user memory. Ask the user to run `cd <project-root> && mm mem init --scope project_local`, then retry.\n- Use `scope=\"user\"` only for cross-project preferences or when the user explicitly requests personal/global memory.\n- Use `project_shared` only after explicit confirmation and set `confirm_project_shared=true`.\n\nAlways leave `force_unsafe=false`. Report the effective scope, written file, and indexed chunk count. If the tool reports a similar memory, surface the warning rather than silently creating another variant."
21
21
  },
22
22
  "memtomem-index": {
23
23
  "description": "Index or re-index an explicitly selected file or directory with memtomem. Use for initial ingestion or intentional refresh after file changes.",
@@ -25,7 +25,7 @@ export const OPENCODE_COMMANDS = {
25
25
  },
26
26
  "memtomem-setup": {
27
27
  "description": "Set up and verify a first memtomem memory source. Use for onboarding, choosing an index path, or confirming that search works.",
28
- "template": "Use the memtomem setup workflow.\n\nUser input: $ARGUMENTS\n\n1. Call `memtomem_mem_status` and treat the default `provider=none` BM25-only configuration as healthy.\n2. Obtain an explicit notes or memory directory from the request; ask for one when absent.\n3. Call `memtomem_mem_index` on that path with `force=false` and `auto_tag=false`.\n4. Choose a representative phrase from the indexed material and call `memtomem_mem_search` to verify retrieval.\n5. Report the first-success path and mention embeddings only as an optional relevance enhancement.\n\nDo not install Ollama, enable automation hooks, or edit host instruction files unless the user separately requests those actions."
28
+ "template": "Use the memtomem setup workflow.\n\nUser input: $ARGUMENTS\n\n1. Call `memtomem_mem_status` and treat the default `provider=none` BM25-only configuration as healthy.\n2. If status says memtomem is not configured, stop before indexing and give the exact terminal bootstrap command from the plugin README. Preserve project context by prefixing it with `cd <project-root> &&` when the setup is project-specific. Retry only after the user completes that explicit trust step.\n3. Obtain an explicit notes or memory directory from the request; ask for one when absent.\n4. Call `memtomem_mem_index` on that path with `force=false` and `auto_tag=false`. This is a one-shot index and must not silently register a watcher root.\n5. Choose a representative phrase from the indexed material and call `memtomem_mem_search` to verify retrieval.\n6. Report the effective DB path, indexed path, and first-success result. Mention embeddings only as an optional relevance enhancement.\n\nDo not install Ollama, enable automation hooks, or edit host instruction files unless the user separately requests those actions."
29
29
  }
30
30
  };
31
31
  export const OPENCODE_READ_SKILLS = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-memtomem",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Safe memtomem MCP, commands, and read skills for OpenCode",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -35,7 +35,7 @@
35
35
  "pack:check": "npm pack --dry-run"
36
36
  },
37
37
  "devDependencies": {
38
- "@opencode-ai/plugin": "1.17.18",
38
+ "@opencode-ai/plugin": "1.18.3",
39
39
  "@types/node": "26.1.1",
40
40
  "typescript": "5.9.3"
41
41
  },