docdex 0.2.43 → 0.2.44

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/CHANGELOG.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Changelog
2
2
 
3
- ## 0.2.43
3
+ ## 0.2.44
4
4
  - Fix MCP tool schema compatibility with Claude Code by removing top-level anyOf from `docdex_dag_export`.
5
- - Bump release metadata to 0.2.43.
5
+ - Bump release metadata to 0.2.44.
6
6
 
7
7
  ## 0.2.42
8
8
  - Bump release metadata to 0.2.42.
package/README.md CHANGED
@@ -231,8 +231,9 @@ DOCDEX_OLLAMA_BASE_URL=http://127.0.0.1:11434 docdexd daemon --host 127.0.0.1 --
231
231
  Docdex runs as a local daemon serving:
232
232
 
233
233
  * **CLI Commands:** `docdexd chat`
234
- * **HTTP API:** `/search`, `/v1/ast`, `/v1/graph/impact`
234
+ * **HTTP API:** `/search`, `/v1/capabilities`, `/v1/search/rerank`, `/v1/search/batch`, `/v1/ast`, `/v1/graph/impact`
235
235
  * **MCP Endpoints:** `/v1/mcp` and `/v1/mcp/sse`
236
+ * **Capability Negotiation Tools:** `docdex_capabilities`, `docdex_rerank`, `docdex_batch_search`
236
237
 
237
238
  ### Multi-Repo Setup
238
239
 
package/assets/agents.md CHANGED
@@ -1,4 +1,4 @@
1
- ---- START OF DOCDEX INFO V0.2.43 ----
1
+ ---- START OF DOCDEX INFO V0.2.44 ----
2
2
  Docdex URL: http://127.0.0.1:28491
3
3
  Use this base URL for Docdex HTTP endpoints.
4
4
  Health check endpoint: `GET /healthz` (not `/v1/health`).
@@ -146,6 +146,10 @@ Use these to verify index coverage, repo binding, and to read precise file slice
146
146
  - docdex_impact_graph: Mandatory before code changes to review inbound/outbound deps (use MCP/IPC if shell networking is blocked).
147
147
  - docdex_dag_export: Export dependency graph to plan change order.
148
148
  - HTTP /v1/initialize: Mount/bind a repo for HTTP daemon mode. Request JSON uses rootUri/root_uri (NOT repo_root).
149
+ - HTTP /v1/capabilities: Read optional retrieval feature flags and bounded limits before using optional flows.
150
+ - HTTP /v1/search/rerank: Rerank a candidate hit set; use when capability negotiation says rerank is available.
151
+ - HTTP /v1/search/batch: Execute bounded multi-query retrieval in one request.
152
+ - MCP tools `docdex_capabilities`, `docdex_rerank`, `docdex_batch_search`: optional capability/flow surfaces for Codali integration.
149
153
  - HTTP /v1/snippet: Fetch exact line-safe snippets for a doc_id returned by search.
150
154
  - HTTP /v1/impact/diagnostics: Inspect unresolved/dynamic imports when impact graphs look incomplete.
151
155
 
@@ -222,6 +226,41 @@ Notes:
222
226
  - `skip_local_search=true` effectively forces web discovery (Tier 2).
223
227
  - If DOCDEX_WEB_ENABLED=1, web discovery can be slow; plan timeouts accordingly.
224
228
 
229
+ ### 3a) Capabilities (HTTP)
230
+
231
+ `GET /v1/capabilities`
232
+
233
+ Returns the optional-feature capability contract and current limit values for retrieval extensions.
234
+
235
+ ### 3b) Rerank (HTTP)
236
+
237
+ `POST /v1/search/rerank`
238
+
239
+ Required JSON fields:
240
+ - `query` (string)
241
+ - `candidates` (array of search hits)
242
+
243
+ Common optional fields:
244
+ - `limit`, `repo_id`
245
+
246
+ Notes:
247
+ - Candidate sets are deterministically truncated to the rerank limit exposed by `/v1/capabilities`.
248
+ - Response includes `returned_count`, `input_count`, `limit`, and `truncated`.
249
+
250
+ ### 3c) Batch search (HTTP)
251
+
252
+ `POST /v1/search/batch`
253
+
254
+ Required JSON fields:
255
+ - `queries` (array of query strings)
256
+
257
+ Common optional fields:
258
+ - `limit`, `include_libs`, `repo_id`
259
+
260
+ Notes:
261
+ - Query lists are deterministically truncated to the batch limit exposed by `/v1/capabilities`.
262
+ - Response includes `query_count`, `effective_query_count`, `results`, and `truncated`.
263
+
225
264
  ### 4) Snippet (HTTP)
226
265
 
227
266
  `GET /snippet/:doc_id`
@@ -263,6 +302,9 @@ Notes:
263
302
  Do not guess fields; use these canonical shapes.
264
303
 
265
304
  - `docdex_search`: `{ project_root, query, limit?, diff?, repo_only?, force_web? }`
305
+ - `docdex_capabilities`: `{ project_root? }`
306
+ - `docdex_rerank`: `{ project_root?, query, candidates, limit? }`
307
+ - `docdex_batch_search`: `{ project_root?, queries, limit?, include_libs? }`
266
308
  - `docdex_open`: `{ project_root, path, start_line?, end_line?, head?, clamp? }` (range must be valid unless clamp/head used)
267
309
  - `docdex_files`: `{ project_root, limit?, offset? }`
268
310
  - `docdex_stats`: `{ project_root }`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docdex",
3
- "version": "0.2.43",
3
+ "version": "0.2.44",
4
4
  "mcpName": "io.github.bekirdag/docdex",
5
5
  "description": "Local-first documentation and code indexer with HTTP/MCP search, AST, and agent memory.",
6
6
  "bin": {