opencode-session-search 0.1.0 → 1.0.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
@@ -2,6 +2,8 @@
2
2
 
3
3
  A plugin for OpenCode that provides tools to search and retrieve your local chat history.
4
4
 
5
+ ![OpenCode Session History](assets/cover.png)
6
+
5
7
  ## Tools
6
8
 
7
9
  ### `session-search`
@@ -17,6 +19,18 @@ Search your local OpenCode chat history for sessions containing specific text.
17
19
  - Snippets from each session (2 per session, 220 chars each)
18
20
  - Suggested `session-transcript` calls and a `question`-tool prompt to let users pick which session to open
19
21
 
22
+ ### `session-title-search`
23
+
24
+ Search for sessions by their title.
25
+
26
+ **Args**
27
+ - `query` (string, required): Title text to search for (1-200 chars, non-whitespace)
28
+ - `limitSessions` (number, optional): Max sessions to return (1-12, default: 6)
29
+
30
+ **Returns**
31
+ - Matching sessions with metadata (title, slug, directory, project name, timestamps)
32
+ - Suggested `session-transcript` calls and a `question`-tool prompt to let users pick which session to open
33
+
20
34
  ### `session-transcript`
21
35
 
22
36
  Reconstruct the full transcript of a specific chat session.
@@ -38,7 +52,7 @@ Add the package to your OpenCode config:
38
52
 
39
53
  ```json
40
54
  {
41
- "plugin": ["opencode-session-history"]
55
+ "plugin": ["opencode-session-search"]
42
56
  }
43
57
  ```
44
58
 
@@ -54,6 +68,9 @@ Restart OpenCode so the plugin is loaded.
54
68
  Find my recent work on authentication:
55
69
  ⚙ session-search [query=auth login, limitSessions=5]
56
70
 
71
+ Find a session by title:
72
+ ⚙ session-title-search [query=bug fix]
73
+
57
74
  Get the full conversation:
58
75
  ⚙ session-transcript [sessionId=ses_abc123, limit=100]
59
76
  ```
package/dist/index.js CHANGED
@@ -12660,9 +12660,9 @@ var SessionHistoryPlugin = async () => {
12660
12660
  }
12661
12661
  };
12662
12662
  };
12663
- var opencode_session_history_default = SessionHistoryPlugin;
12663
+ var opencode_session_search_default = SessionHistoryPlugin;
12664
12664
  export {
12665
12665
  runSessionSearch,
12666
- opencode_session_history_default as default,
12666
+ opencode_session_search_default as default,
12667
12667
  SessionHistoryPlugin
12668
12668
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opencode-session-search",
3
- "version": "0.1.0",
4
- "description": "OpenCode plugin for searching and retrieving chat history",
3
+ "version": "1.0.1",
4
+ "description": "OponBackgroundEventenCode plugin for searching and retrieving chat history",
5
5
  "main": "./dist/index.js",
6
6
  "exports": "./dist/index.js",
7
7
  "type": "module",