opencode-session-recall 0.5.0 → 0.5.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 CHANGED
@@ -29,8 +29,8 @@ No embeddings. No vector store. No data duplication. No setup. Just install the
29
29
  "plugin": [
30
30
  "opencode-session-recall",
31
31
 
32
- // Enable cross-project search
33
- ["opencode-session-recall", { "global": true }],
32
+ // Disable cross-project search if needed
33
+ ["opencode-session-recall", { "global": false }],
34
34
  ],
35
35
  }
36
36
  ```
@@ -129,7 +129,7 @@ Five tool calls, complete narrative reconstructed across projects.
129
129
  | Option | Type | Default | Description |
130
130
  | --------- | --------- | ------- | --------------------------------------------------- |
131
131
  | `primary` | `boolean` | `true` | Register tools as primary (available to all agents) |
132
- | `global` | `boolean` | `false` | Enable cross-project search via `scope: "global"` |
132
+ | `global` | `boolean` | `true` | Allow cross-project search via `scope: "global"` |
133
133
 
134
134
  ## How it works
135
135
 
@@ -40,7 +40,7 @@ function errmsg(e) {
40
40
  // src/sessions.ts
41
41
  function sessions(client, unscoped, global, limits) {
42
42
  return tool({
43
- description: `List sessions from the opencode database. Use this FIRST to discover which sessions exist, then search their content with recall. Returns session titles, directories, and timestamps. For cross-project discovery, use scope "global" (requires plugin option global: true).
43
+ description: `List sessions from the opencode database. Use this FIRST to discover which sessions exist, then search their content with recall. Returns session titles, directories, and timestamps. For cross-project discovery, use scope "global" (enabled by default, disable with plugin option global: false).
44
44
 
45
45
  Search filters by session title only (case-insensitive substring match \u2014 use recall for content search). Sessions are returned newest-updated first. This is a cheap metadata-only call.
46
46
 
@@ -57,7 +57,7 @@ Returns { ok, sessions: [{ id, title, directory, time, archived }], returned, sc
57
57
  if (args.scope === "global" && !global) {
58
58
  const err = {
59
59
  ok: false,
60
- error: "Global scope disabled. Enable via plugin option: global: true"
60
+ error: "Global scope disabled via plugin option: global: false"
61
61
  };
62
62
  return JSON.stringify(err);
63
63
  }
@@ -351,7 +351,7 @@ This tool's own outputs are excluded from search results to prevent recursive no
351
351
  if (args.scope === "global" && !args.sessionID && !global) {
352
352
  const err = {
353
353
  ok: false,
354
- error: "Global scope disabled. Enable via plugin option: global: true"
354
+ error: "Global scope disabled via plugin option: global: false"
355
355
  };
356
356
  return JSON.stringify(err);
357
357
  }
@@ -721,7 +721,7 @@ Returns { messages: [{ message: { id, role, time }, parts: [...] }], pagination:
721
721
  var server = async (ctx, options) => {
722
722
  const opts = options ?? {};
723
723
  const primary = opts.primary !== false;
724
- const global = opts.global === true;
724
+ const global = opts.global !== false;
725
725
  const clamp = (val, fallback, min = 1) => Math.max(min, Math.floor(val ?? fallback));
726
726
  const limits = {
727
727
  concurrency: clamp(opts.concurrency, DEFAULTS.concurrency),
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,cAAc,EAIf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAKL,KAAK,MAAM,EACZ,MAAM,YAAY,CAAC;AAqEpB,wBAAgB,MAAM,CACpB,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,cAAc,EACxB,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GACb,cAAc,CAyNhB"}
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,cAAc,EAIf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAKL,KAAK,MAAM,EACZ,MAAM,YAAY,CAAC;AAqEpB,wBAAgB,MAAM,CACpB,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,cAAc,EACxB,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GACb,cAAc,CAwNhB"}
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../src/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAKL,KAAK,MAAM,EACZ,MAAM,YAAY,CAAC;AAEpB,wBAAgB,QAAQ,CACtB,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,cAAc,EACxB,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GACb,cAAc,CA8GhB"}
1
+ {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../src/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAKL,KAAK,MAAM,EACZ,MAAM,YAAY,CAAC;AAEpB,wBAAgB,QAAQ,CACtB,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,cAAc,EACxB,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GACb,cAAc,CA6GhB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "opencode-session-recall",
4
- "version": "0.5.0",
4
+ "version": "0.5.1",
5
5
  "type": "module",
6
6
  "description": "Agent memory without a memory system — search and retrieve opencode conversation history that was lost to compaction, across sessions and projects",
7
7
  "main": "./dist/opencode-session-recall.js",