docdex 0.2.55 → 0.2.56

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,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.56
4
+ - Clarify packaged agent-facing local delegation docs for code-oriented tasks versus `general_question`.
5
+
3
6
  ## 0.2.55
4
7
  - Raise installer-managed Codex MCP `tool_timeout_sec` and `startup_timeout_sec` defaults to 300 seconds.
5
8
  - Update packaged Codex MCP examples to show the 300-second timeout settings.
package/assets/agents.md CHANGED
@@ -1,4 +1,4 @@
1
- ---- START OF DOCDEX INFO V0.2.55 ----
1
+ ---- START OF DOCDEX INFO V0.2.56 ----
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`).
@@ -29,7 +29,7 @@ Health check endpoint: `GET /healthz` (not `/v1/health`).
29
29
  Docdex (Documentation Indexer) serves as your persistent "brain" on the user's machine. It operates on a Waterfall Retrieval model:
30
30
 
31
31
  1. Local First (Tier 1): Instant search of repo code, symbols, and ingested library documentation.
32
- 2. Web Enrichment (Tier 2): Gated fallback to DuckDuckGo/Headless Chrome only when local confidence is low or explicitly requested.
32
+ 2. Web Enrichment (Tier 2): Gated fallback to the configured web provider (DuckDuckGo by default, `mswarm` when selected) plus Headless Chrome when local confidence is low or explicitly requested.
33
33
  3. Cognition (Tier 3): Local LLM inference (Ollama) with context assembly.
34
34
 
35
35
  Key Constraints:
@@ -67,7 +67,9 @@ Standard retrieval. The daemon automatically handles the waterfall (Local -> Web
67
67
  | MCP Tool | Purpose |
68
68
  | --- | --- |
69
69
  | docdex_search | Search code, docs, and ingested libraries. Returns ranked snippets. |
70
- | docdex_web_research | Explicitly trigger Tier 2 web discovery (DDG + Headless Chrome). Use when you need external docs not present locally. |
70
+ | docdex_web_research | Explicitly trigger Tier 2 web discovery (configured provider + Headless Chrome). Use when you need external docs not present locally. |
71
+
72
+ When `DOCDEX_WEB_DISCOVERY_PROVIDER=mswarm` or `[web].discovery_provider = "mswarm"`, Docdex's runtime web-discovery adapter sends `POST {base_url}/v1/swarm/web/search` using `[integrations.mswarm].base_url`, adds the `x-api-key` header from `[integrations.mswarm].api_key`, and sends JSON shaped like `{ "query": "<search query>", "tool_id": "docdex" }`. Treat this as a runtime integration detail: agents should normally configure and invoke Docdex search/web tools rather than calling the raw mswarm endpoint directly unless they are debugging the integration itself.
71
73
 
72
74
  ### B. Code Intelligence (AST & Graph)
73
75
 
@@ -99,7 +101,7 @@ Use local delegation for low-complexity code-writing tasks and lightweight gener
99
101
  | docdex_local_completion | Delegate small tasks to a local model with strict output formats. |
100
102
  | HTTP /v1/delegate | HTTP endpoint for delegated completions with structured responses. |
101
103
 
102
- Required fields: `task_type`, `instruction`, `context`. Optional: `max_tokens`, `timeout_ms`, `mode` (`draft_only` or `draft_then_refine`), `agent` (local agent id/slug or `model:<name>` to force an Ollama model; raw model names from `docdexd delegation agents` are also accepted). Use `general_question` for lightweight Q&A and the existing code-oriented task types for code writing/editing.
104
+ Required fields: `task_type`, `instruction`, `context`. Optional: `max_tokens`, `timeout_ms`, `mode` (`draft_only` or `draft_then_refine`), `agent` (local agent id/slug or `model:<name>` to force an Ollama model; raw model names from `docdexd delegation agents` are also accepted). Use `general_question` for lightweight Q&A and the existing code-oriented task types for code writing/editing. Lane-specific defaults come from `[llm.delegation.code]` for code-oriented task types and `[llm.delegation.general]` for `general_question`; flat `local_agent_id` / `primary_agent_id` remain compatibility fallbacks when lane-specific values are unset. This allows a coder-focused local agent for code work and a more general local agent for Q&A.
103
105
  Expensive model library: `docs/expensive_models.json` (match by `agent_id`, `agent_slug`, `model`, or adapter type; case-insensitive).
104
106
  To choose a local target, run `docdexd delegation agents` (or `--json`) and prefer:
105
107
  - `code_writer` for scaffolding/boilerplate/docstrings.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docdex",
3
- "version": "0.2.55",
3
+ "version": "0.2.56",
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": {