@arabold/docs-mcp-server 1.26.1 → 1.26.2

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/dist/index.js CHANGED
@@ -784,7 +784,7 @@ function extractProtocol(urlOrPath) {
784
784
  }
785
785
  }
786
786
  const name = "@arabold/docs-mcp-server";
787
- const version = "1.26.0";
787
+ const version = "1.26.1";
788
788
  const description = "MCP server for fetching and searching documentation";
789
789
  const type = "module";
790
790
  const bin = { "docs-mcp-server": "dist/index.js" };
@@ -9898,6 +9898,14 @@ class DocumentStore {
9898
9898
  WHERE p.url = ? AND l.name = ? AND COALESCE(v.name, '') = COALESCE(?, '')
9899
9899
  )`
9900
9900
  ),
9901
+ deletePages: this.db.prepare(
9902
+ `DELETE FROM pages
9903
+ WHERE version_id IN (
9904
+ SELECT v.id FROM versions v
9905
+ JOIN libraries l ON v.library_id = l.id
9906
+ WHERE l.name = ? AND COALESCE(v.name, '') = COALESCE(?, '')
9907
+ )`
9908
+ ),
9901
9909
  getDocumentBySort: this.db.prepare(
9902
9910
  `SELECT d.id
9903
9911
  FROM documents d
@@ -10540,6 +10548,7 @@ class DocumentStore {
10540
10548
  }
10541
10549
  const { id: versionId, library_id: libraryId } = versionResult;
10542
10550
  const documentsDeleted = await this.deleteDocuments(library, version2);
10551
+ this.statements.deletePages.run(normalizedLibrary, normalizedVersion);
10543
10552
  const versionDeleteResult = this.statements.deleteVersionById.run(versionId);
10544
10553
  const versionDeleted = versionDeleteResult.changes > 0;
10545
10554
  let libraryDeleted = false;