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 +7 -6
- package/README.md +6 -0
- package/assets/agents.md +1 -1
- package/bin/docdex.js +13 -1
- package/lib/cli_entry.js +13 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
4
|
-
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
-
|
|
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
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,
|