docdex 0.2.31 → 0.2.33
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 +4 -5
- package/README.md +6 -0
- package/assets/agents.md +1 -1
- package/bin/docdex.js +13 -1
- package/lib/cli_entry.js +14 -1
- package/lib/install.js +1 -1
- package/lib/mcp_stdio_cli.js +15 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
4
|
-
-
|
|
5
|
-
- Ensure
|
|
6
|
-
-
|
|
7
|
-
- Nightly HTTP soak waits for index readiness before load testing.
|
|
3
|
+
## 0.2.33
|
|
4
|
+
- Warn Windows users to install the VC++ 2015-2022 runtime in the npm README.
|
|
5
|
+
- Ensure `docdex setup` detects the default Ollama install path on Windows.
|
|
6
|
+
- Document the Windows default Chromium auto-install location.
|
|
8
7
|
|
|
9
8
|
## 0.2.23
|
|
10
9
|
- Add Smithery session config schema metadata (titles/descriptions, defaults, example config) for local MCP sessions.
|
package/README.md
CHANGED
|
@@ -51,6 +51,12 @@ npm i -g docdex
|
|
|
51
51
|
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
+
> [!WARNING]
|
|
55
|
+
> **Windows requirement:** Docdex uses the MSVC runtime. Install the **Microsoft Visual C++ Redistributable 2015-2022 (x64)** before running `docdex`/`docdexd`.
|
|
56
|
+
> - Winget: `winget install --id Microsoft.VCRedist.2015+.x64`
|
|
57
|
+
> - Manual: download `vc_redist.x64.exe` from Microsoft: https://aka.ms/vs/17/release/vc_redist.x64.exe
|
|
58
|
+
> - If `docdexd` exits with `0xC0000135`, the runtime is missing.
|
|
59
|
+
|
|
54
60
|
### 2. Auto-Configuration
|
|
55
61
|
|
|
56
62
|
If you have any of the following clients installed, Docdex automatically configures them to use the local MCP endpoint (daemon HTTP/SSE):
|
package/assets/agents.md
CHANGED
package/bin/docdex.js
CHANGED
|
@@ -22,6 +22,10 @@ function isDoctorCommand(argv) {
|
|
|
22
22
|
return sub === "doctor" || sub === "diagnostics";
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
function isVersionCommand(argv) {
|
|
26
|
+
return argv.includes("--version") || argv.includes("-V");
|
|
27
|
+
}
|
|
28
|
+
|
|
25
29
|
function printLines(lines, { stderr } = {}) {
|
|
26
30
|
for (const line of lines) {
|
|
27
31
|
if (!line) continue;
|
|
@@ -207,7 +211,7 @@ async function run() {
|
|
|
207
211
|
return;
|
|
208
212
|
}
|
|
209
213
|
|
|
210
|
-
const { binaryPath } = resolveInstallPaths(platformKey);
|
|
214
|
+
const { binaryPath, basePath } = resolveInstallPaths(platformKey);
|
|
211
215
|
|
|
212
216
|
if (!fs.existsSync(binaryPath)) {
|
|
213
217
|
console.error(`[docdex] Missing binary for ${platformKey}. Try reinstalling or set DOCDEX_DOWNLOAD_REPO to a repo with release assets.`);
|
|
@@ -219,6 +223,14 @@ async function run() {
|
|
|
219
223
|
return;
|
|
220
224
|
}
|
|
221
225
|
|
|
226
|
+
if (isVersionCommand(argv)) {
|
|
227
|
+
const installMeta = readInstallMetadata({ fsModule: fs, pathModule: path, basePath });
|
|
228
|
+
const version = installMeta?.version || pkg.version;
|
|
229
|
+
console.log(`docdexd ${version}`);
|
|
230
|
+
process.exit(0);
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
|
|
222
234
|
await checkForUpdateOnce({
|
|
223
235
|
currentVersion: pkg.version,
|
|
224
236
|
env: process.env,
|
package/lib/cli_entry.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
const fs = require("node:fs");
|
|
@@ -21,6 +22,10 @@ function isDoctorCommand(argv) {
|
|
|
21
22
|
return sub === "doctor" || sub === "diagnostics";
|
|
22
23
|
}
|
|
23
24
|
|
|
25
|
+
function isVersionCommand(argv) {
|
|
26
|
+
return argv.includes("--version") || argv.includes("-V");
|
|
27
|
+
}
|
|
28
|
+
|
|
24
29
|
function printLines(lines, { stderr } = {}) {
|
|
25
30
|
for (const line of lines) {
|
|
26
31
|
if (!line) continue;
|
|
@@ -206,7 +211,7 @@ async function run() {
|
|
|
206
211
|
return;
|
|
207
212
|
}
|
|
208
213
|
|
|
209
|
-
const { binaryPath } = resolveInstallPaths(platformKey);
|
|
214
|
+
const { binaryPath, basePath } = resolveInstallPaths(platformKey);
|
|
210
215
|
|
|
211
216
|
if (!fs.existsSync(binaryPath)) {
|
|
212
217
|
console.error(`[docdex] Missing binary for ${platformKey}. Try reinstalling or set DOCDEX_DOWNLOAD_REPO to a repo with release assets.`);
|
|
@@ -218,6 +223,14 @@ async function run() {
|
|
|
218
223
|
return;
|
|
219
224
|
}
|
|
220
225
|
|
|
226
|
+
if (isVersionCommand(argv)) {
|
|
227
|
+
const installMeta = readInstallMetadata({ fsModule: fs, pathModule: path, basePath });
|
|
228
|
+
const version = installMeta?.version || pkg.version;
|
|
229
|
+
console.log(`docdexd ${version}`);
|
|
230
|
+
process.exit(0);
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
|
|
221
234
|
await checkForUpdateOnce({
|
|
222
235
|
currentVersion: pkg.version,
|
|
223
236
|
env: process.env,
|
package/lib/install.js
CHANGED
|
@@ -57,7 +57,7 @@ const MCP_STDIO_WRAPPER_SCRIPT = [
|
|
|
57
57
|
"",
|
|
58
58
|
"async function main() {",
|
|
59
59
|
" try {",
|
|
60
|
-
|
|
60
|
+
" await runBridge({ stdin: process.stdin, stdout: process.stdout, stderr: process.stderr });",
|
|
61
61
|
" } catch (err) {",
|
|
62
62
|
" process.stderr.write(`[docdex-mcp-stdio] fatal: ${err}\\n`);",
|
|
63
63
|
" process.exit(1);",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
const { runBridge } = require("./mcp_stdio_bridge");
|
|
5
|
+
|
|
6
|
+
async function main() {
|
|
7
|
+
try {
|
|
8
|
+
await runBridge({ stdin: process.stdin, stdout: process.stdout, stderr: process.stderr });
|
|
9
|
+
} catch (err) {
|
|
10
|
+
process.stderr.write(`[docdex-mcp-stdio] fatal: ${err}\n`);
|
|
11
|
+
process.exit(1);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
main();
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docdex",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.33",
|
|
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": {
|
|
7
|
-
"docdex": "
|
|
8
|
-
"docdexd": "
|
|
9
|
-
"docdex-mcp-stdio": "
|
|
7
|
+
"docdex": "lib/cli_entry.js",
|
|
8
|
+
"docdexd": "lib/cli_entry.js",
|
|
9
|
+
"docdex-mcp-stdio": "lib/mcp_stdio_cli.js"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"bin",
|