@trouve-ai/search-plugin 2.0.0 → 3.0.0

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "trouve-search",
3
- "description": "Fast, accurate code search for agents: hybrid semantic + BM25 search over any local or remote git repository, with incremental branch-aware indexing. Adds trouve search tools (MCP), a trouve-search sub-agent, and a workflow skill.",
4
- "version": "2.0.0",
3
+ "description": "Fast, accurate code search for agents: hybrid semantic + BM25 search over any local git repository, with incremental branch-aware indexing. Adds trouve search tools (MCP), a trouve-search sub-agent, and a workflow skill.",
4
+ "version": "3.0.0",
5
5
  "author": {
6
6
  "name": "Jim Simon"
7
7
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "trouve-search",
3
- "version": "2.0.0",
4
- "description": "Fast, accurate code search for agents: hybrid semantic + BM25 search over any local or remote git repository, with incremental branch-aware indexing.",
3
+ "version": "3.0.0",
4
+ "description": "Fast, accurate code search for agents: hybrid semantic + BM25 search over any local git repository, with incremental branch-aware indexing.",
5
5
  "author": {
6
6
  "name": "Jim Simon",
7
7
  "url": "https://github.com/jimsimon"
@@ -28,7 +28,7 @@ Use `trouve-search find-related` to discover code similar to a known location (p
28
28
  trouve-search find-related src/auth.py 42 ./my-project
29
29
  ```
30
30
 
31
- `path` defaults to the current directory when omitted; git URLs are accepted.
31
+ `path` defaults to the current directory when omitted.
32
32
 
33
33
  If `trouve-search` is not on `$PATH`, install it with `npm i -g @trouve-ai/search-core`, `cargo install trouve-search` or download a release binary from GitHub.
34
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trouve-ai/search-plugin",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "trouve code search plugin for OpenCode, Kilo Code, Claude Code, and Codex: native tools (OpenCode/Kilo), MCP server + skill + sub-agent (Claude/Codex).",
5
5
  "type": "module",
6
6
  "main": "./src/plugin.ts",
@@ -37,10 +37,11 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@opencode-ai/plugin": "^1.17.13",
40
- "@trouve-ai/search-core": "2.0.0"
40
+ "@trouve-ai/search-core": "3.0.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/bun": "^1.2.0",
44
- "typescript": "^6.0.0"
44
+ "@types/node": "^26.0.0",
45
+ "typescript": "^7.0.0"
45
46
  }
46
47
  }
@@ -18,9 +18,8 @@ directly and read that file. Do not grep for the same content again.
18
18
 
19
19
  1. Call `search` with a query describing what the code does or its name
20
20
  (function/class names or behaviour descriptions, not error messages).
21
- Pass the project root as `repo`; https:// git URLs also work. Results
22
- include 10 lines of context each — signature plus first body lines,
23
- enough to confirm the location.
21
+ Pass the project root as `repo`. Results include 10 lines of context
22
+ each — signature plus first body lines, enough to confirm the location.
24
23
  2. Navigate directly to the top result's file and line. Read only the
25
24
  function or class at that location.
26
25
  3. Make the edit. Do not re-search or grep for the same content.
package/src/plugin.ts CHANGED
@@ -5,8 +5,7 @@
5
5
  // process per call), this plugin keeps a single `trouve-search` server process
6
6
  // alive for the whole session and speaks its newline-delimited JSON-RPC
7
7
  // protocol directly. That preserves the server's in-process index cache:
8
- // repeat queries — including against remote git URLs — skip index reload
9
- // entirely.
8
+ // repeat queries skip index reload entirely.
10
9
  //
11
10
  // Binary resolution is delegated to @trouve-ai/search-core.
12
11
  import { resolveBinaryPath } from "@trouve-ai/search-core"
@@ -25,8 +24,8 @@ interface Pending {
25
24
 
26
25
  /// The initialize handshake involves no indexing and must be quick.
27
26
  const INIT_TIMEOUT_MS = 30_000
28
- /// A tool call may include a cold index build of a very large (or remote)
29
- /// repo; anything beyond this is treated as a hung server.
27
+ /// A tool call may include a cold index build of a very large repo;
28
+ /// anything beyond this is treated as a hung server.
30
29
  const CALL_TIMEOUT_MS = 10 * 60 * 1000
31
30
 
32
31
  /** Minimal client for trouve's newline-delimited JSON-RPC stdio server. */
@@ -201,7 +200,7 @@ const REPO = tool.schema
201
200
  .string()
202
201
  .optional()
203
202
  .describe(
204
- "Local directory path or https:// git URL to search. Defaults to the project root. " +
203
+ "Local directory path to search. Defaults to the project root. " +
205
204
  "The index is built on first use and cached; updates are incremental.",
206
205
  )
207
206