@trouve-ai/search-plugin 4.0.0 → 4.1.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
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": "4.0.0",
4
+ "version": "4.1.0",
5
5
  "author": {
6
6
  "name": "Jim Simon"
7
7
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trouve-search",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
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",
package/README.md CHANGED
@@ -27,6 +27,11 @@ Options:
27
27
  { "plugin": [["@trouve-ai/search-plugin", { "content": "all", "warm": true }]] }
28
28
  ```
29
29
 
30
+ The configured `content` value is the default for indexing and background
31
+ warming. Both native tools also accept `content: "code" | "docs" |
32
+ "config" | "all"` per call; each project/content combination is cached
33
+ separately.
34
+
30
35
  ## Claude Code
31
36
 
32
37
  ```text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trouve-ai/search-plugin",
3
- "version": "4.0.0",
3
+ "version": "4.1.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,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@opencode-ai/plugin": "^1.17.13",
40
- "@trouve-ai/search-core": "4.0.0"
40
+ "@trouve-ai/search-core": "4.1.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/bun": "^1.2.0",
package/src/plugin.ts CHANGED
@@ -222,6 +222,14 @@ const MAX_SNIPPET_LINES = tool.schema
222
222
  "more, up to the full chunk.",
223
223
  )
224
224
 
225
+ const CONTENT = tool.schema
226
+ .enum(["code", "docs", "config", "all"])
227
+ .optional()
228
+ .describe(
229
+ "What to search: code, docs (documentation and prose), config (YAML/TOML/etc.), or all. " +
230
+ "Omit to use the plugin-configured content.",
231
+ )
232
+
225
233
  /** Minimum interval between background index warms. */
226
234
  const WARM_INTERVAL_MS = 60_000
227
235
 
@@ -300,6 +308,7 @@ export const TrouvePlugin: Plugin = async (input, options) => {
300
308
  repo: REPO,
301
309
  top_k: TOP_K,
302
310
  max_snippet_lines: MAX_SNIPPET_LINES,
311
+ content: CONTENT,
303
312
  },
304
313
  async execute(args, context) {
305
314
  try {
@@ -308,6 +317,7 @@ export const TrouvePlugin: Plugin = async (input, options) => {
308
317
  repo: args.repo ?? context.worktree,
309
318
  top_k: args.top_k ?? 5,
310
319
  max_snippet_lines: args.max_snippet_lines ?? 10,
320
+ content: args.content,
311
321
  })
312
322
  } catch (error) {
313
323
  return errorText(error)
@@ -327,6 +337,7 @@ export const TrouvePlugin: Plugin = async (input, options) => {
327
337
  repo: REPO,
328
338
  top_k: TOP_K,
329
339
  max_snippet_lines: MAX_SNIPPET_LINES,
340
+ content: CONTENT,
330
341
  },
331
342
  async execute(args, context) {
332
343
  try {
@@ -336,6 +347,7 @@ export const TrouvePlugin: Plugin = async (input, options) => {
336
347
  repo: args.repo ?? context.worktree,
337
348
  top_k: args.top_k ?? 5,
338
349
  max_snippet_lines: args.max_snippet_lines ?? 10,
350
+ content: args.content,
339
351
  })
340
352
  } catch (error) {
341
353
  return errorText(error)