docdex 0.2.32 → 0.2.34

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,11 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
4
- - Remove legacy stdio MCP (`docdexd mcp` / `docdex-mcp-server`); MCP is served only over HTTP/SSE.
5
- - Ensure npm tarballs include CLI wrapper entrypoints and restore missing wrappers during postinstall.
6
- - Retry Windows file operations during install to reduce EPERM/EACCES failures.
7
- - Nightly HTTP soak waits for index readiness before load testing.
8
- - Windows CLI shims now target stable `lib/` entrypoints to avoid missing `bin/docdex.js`.
3
+ ## 0.2.34
4
+ - Normalize delegation output by stripping top-level markdown fences so local delegation doesn't fail on wrapped output.
5
+
6
+ ## 0.2.33
7
+ - Warn Windows users to install the VC++ 2015-2022 runtime in the npm README.
8
+ - Ensure `docdex setup` detects the default Ollama install path on Windows.
9
+ - Document the Windows default Chromium auto-install location.
9
10
 
10
11
  ## 0.2.23
11
12
  - 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
@@ -1,4 +1,4 @@
1
- ---- START OF DOCDEX INFO V0.2.32 ----
1
+ ---- START OF DOCDEX INFO V0.2.34 ----
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`).
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
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docdex",
3
- "version": "0.2.32",
3
+ "version": "0.2.34",
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": {