docdex 0.2.47 → 0.2.49
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 +8 -0
- package/README.md +3 -3
- package/assets/agents.md +3 -2
- package/lib/postinstall_setup.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.49
|
|
4
|
+
- Generate installer-managed MCP URLs with `127.0.0.1` so client configs match the daemon bind default.
|
|
5
|
+
- Update packaged MCP examples and add regression coverage for the postinstall URL helpers.
|
|
6
|
+
|
|
7
|
+
## 0.2.48
|
|
8
|
+
- Exclude paid or expensive mcoda agents from automatic local delegation target selection.
|
|
9
|
+
- Document the zero-cost local delegation rule in the packaged agent guidance.
|
|
10
|
+
|
|
3
11
|
## 0.2.47
|
|
4
12
|
- Bump release metadata to 0.2.47.
|
|
5
13
|
|
package/README.md
CHANGED
|
@@ -141,7 +141,7 @@ If you need to configure your client manually:
|
|
|
141
141
|
{
|
|
142
142
|
"mcpServers": {
|
|
143
143
|
"docdex": {
|
|
144
|
-
"url": "http://
|
|
144
|
+
"url": "http://127.0.0.1:28491/v1/mcp/sse"
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -155,7 +155,7 @@ If you need to configure your client manually:
|
|
|
155
155
|
"mcpServers": {
|
|
156
156
|
"docdex": {
|
|
157
157
|
"type": "http",
|
|
158
|
-
"url": "http://
|
|
158
|
+
"url": "http://127.0.0.1:28491/v1/mcp"
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
@@ -166,7 +166,7 @@ If you need to configure your client manually:
|
|
|
166
166
|
|
|
167
167
|
```toml
|
|
168
168
|
[mcp_servers]
|
|
169
|
-
docdex = { url = "http://
|
|
169
|
+
docdex = { url = "http://127.0.0.1:28491/v1/mcp" }
|
|
170
170
|
|
|
171
171
|
```
|
|
172
172
|
|
package/assets/agents.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---- START OF DOCDEX INFO V0.2.
|
|
1
|
+
---- START OF DOCDEX INFO V0.2.49 ----
|
|
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`).
|
|
@@ -109,6 +109,7 @@ For mcoda agents, also consider:
|
|
|
109
109
|
- `max_complexity`: do not assign tasks above this ceiling.
|
|
110
110
|
- `rating`: prefer higher-rated agents for reliability.
|
|
111
111
|
- `cost_per_million`: USD per 1M tokens; prefer lower cost when ratings/complexity match.
|
|
112
|
+
- Automatic local target selection must exclude mcoda agents that are paid (`cost_per_million > 0`) or otherwise matched by `docs/expensive_models.json`, unless the user explicitly overrides the target.
|
|
112
113
|
- `usage`: best-fit role (for example `code_writer` or `code_reviewer`); use this for quick matching.
|
|
113
114
|
- `reasoning_rating`: reasoning score out of 10; prefer higher for complex reasoning tasks.
|
|
114
115
|
- `health_status`: only use agents marked `healthy` (treat `-` as unknown).
|
|
@@ -388,7 +389,7 @@ Delegation is mandatory for eligible tasks. If you are expensive and delegation
|
|
|
388
389
|
- Enforces the product's cost-control policy; skipping delegation is a regression.
|
|
389
390
|
|
|
390
391
|
1. Determine if you are expensive: load `docs/expensive_models.json` and match your `agent_id`, `agent_slug`, `model`, or adapter type. If you match, continue; if not and you are clearly local/cheap, skip delegation. If unsure, default to expensive.
|
|
391
|
-
2. Check config: Only delegate when `[llm.delegation].enabled` is true or `auto_enable` is true with an eligible local model/agent (and `task_type` is allowed). If uncertain, attempt delegation and handle the error.
|
|
392
|
+
2. Check config: Only delegate when `[llm.delegation].enabled` is true or `auto_enable` is true with an eligible local model/agent (and `task_type` is allowed). For automatic mcoda selection, eligible means healthy and not paid/expensive unless the user explicitly overrides the target. If uncertain, attempt delegation and handle the error.
|
|
392
393
|
3. Choose task type: Use one of `GENERATE_TESTS`, `WRITE_DOCSTRING`, `SCAFFOLD_BOILERPLATE`, `REFACTOR_SIMPLE`, `FORMAT_CODE`.
|
|
393
394
|
4. Call the tool: `docdex_local_completion` with `task_type`, `instruction`, and minimal `context` (smallest necessary snippet).
|
|
394
395
|
5. Validate output: If the local output is invalid or empty, fall back to the primary agent or handle with the paid model.
|
package/lib/postinstall_setup.js
CHANGED
|
@@ -75,11 +75,11 @@ function daemonLockPaths() {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
function configUrlForPort(port) {
|
|
78
|
-
return `http
|
|
78
|
+
return `http://${DEFAULT_HOST}:${port}/sse`;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
function configStreamableUrlForPort(port) {
|
|
82
|
-
return `http
|
|
82
|
+
return `http://${DEFAULT_HOST}:${port}/v1/mcp`;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
function isPortAvailable(port, host) {
|