@v1nvn/readability 0.40.0 → 0.41.0

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
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { $ as resolveLazyImages, A as selectorsSchema, B as absolutize, C as extractTablesInputSchema, D as localPathField, E as htmlToMarkdownInputShape, F as detectGating, G as sanitizeHtml, H as renderTable, I as TraceCollector, J as computeTextMetrics, K as isReaderable, L as assembleDiagnostics, M as truncateMarkdown, N as detectPagination, O as outlineInputSchema, P as resolveMetadata, Q as normalizeDocument, R as chunkMarkdown, S as extractSectionInputShape, T as htmlToMarkdownInputSchema, U as resolveHeaderKeys, V as parseTableMatrix, W as resolveCellText, X as nonEmpty, Y as countWords, Z as applySelectors, _ as extractListInputSchema, a as extractLinksOutputShape, at as normalizeSiteKey, b as extractMetadataInputShape, c as extractTablesOutputShape, ct as selectorMisses, d as chunkTextInputSchema, dt as ExtractionError, et as resolveReadabilityOptions, f as chunkTextInputShape, ft as describeError, g as extractLinksInputShape, h as extractLinksInputSchema, ht as shutdownOnSignals, i as extractGridOutputShape, it as addPreset, j as readHtmlFile, k as outlineInputShape, l as outlineOutputShape, lt as logger, m as extractGridInputShape, n as registerExtractTool, nt as isElement, o as extractListOutputShape, ot as presetForSite, p as extractGridInputSchema, pt as toErrorResult, q as formatPayload, r as chunkTextOutputShape, rt as registerResources, s as extractMetadataOutputShape, st as removePreset, t as extractArticleFromHtml, tt as buildDocument, u as outputSchemaShape, ut as loadConfig, v as extractListInputShape, w as extractTablesInputShape, x as extractSectionInputSchema, y as extractMetadataInputSchema, z as toMarkdown } from "./assets/extract-rOpp4Qbn.js";
2
+ import { $ as resolveLazyImages, A as selectorsSchema, B as absolutize, C as extractTablesInputSchema, D as localPathField, E as htmlToMarkdownInputShape, F as detectGating, G as sanitizeHtml, H as renderTable, I as TraceCollector, J as computeTextMetrics, K as isReaderable, L as assembleDiagnostics, M as truncateMarkdown, N as detectPagination, O as outlineInputSchema, P as resolveMetadata, Q as normalizeDocument, R as chunkMarkdown, S as extractSectionInputShape, T as htmlToMarkdownInputSchema, U as resolveHeaderKeys, V as parseTableMatrix, W as resolveCellText, X as nonEmpty, Y as countWords, Z as applySelectors, _ as extractListInputSchema, a as extractLinksOutputShape, at as normalizeSiteKey, b as extractMetadataInputShape, c as extractTablesOutputShape, ct as selectorMisses, d as chunkTextInputSchema, dt as ExtractionError, et as resolveReadabilityOptions, f as chunkTextInputShape, ft as describeError, g as extractLinksInputShape, h as extractLinksInputSchema, ht as shutdownOnSignals, i as extractGridOutputShape, it as addPreset, j as readHtmlFile, k as outlineInputShape, l as outlineOutputShape, lt as logger, m as extractGridInputShape, n as registerExtractTool, nt as isElement, o as extractListOutputShape, ot as presetForSite, p as extractGridInputSchema, pt as toErrorResult, q as formatPayload, r as chunkTextOutputShape, rt as registerResources, s as extractMetadataOutputShape, st as removePreset, t as extractArticleFromHtml, tt as buildDocument, u as outputSchemaShape, ut as loadConfig, v as extractListInputShape, w as extractTablesInputShape, x as extractSectionInputSchema, y as extractMetadataInputSchema, z as toMarkdown } from "./assets/extract-BYYF-esU.js";
3
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
4
  import { mkdirSync, readFileSync, readdirSync, statSync, unlinkSync, writeFileSync } from "node:fs";
5
5
  import { homedir } from "node:os";
@@ -2249,7 +2249,7 @@ function createServer() {
2249
2249
  }
2250
2250
  //#endregion
2251
2251
  //#region src/index.ts
2252
- if (process.argv[2] === "extract") import("./assets/cli-Dy9Kejxi.js").then((m) => m.runCli(process.argv.slice(2))).then((code) => {
2252
+ if (process.argv[2] === "extract") import("./assets/cli-DuT111Qs.js").then((m) => m.runCli(process.argv.slice(2))).then((code) => {
2253
2253
  process.exit(code);
2254
2254
  }).catch((err) => {
2255
2255
  process.stderr.write(`${describeError(err)}\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v1nvn/readability",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
4
4
  "description": "MCP server that turns rendered (post-JS) HTML into clean Markdown + metadata via Readability, Turndown, and DOMPurify.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -44,7 +44,7 @@
44
44
  "dependencies": {
45
45
  "@modelcontextprotocol/sdk": "^1.29.0",
46
46
  "@mozilla/readability": "^0.6.0",
47
- "@v1nvn/agentic-core": "^0.40.0",
47
+ "@v1nvn/agentic-core": "^0.41.0",
48
48
  "commander": "^15.0.0",
49
49
  "dompurify": "^3.4.12",
50
50
  "jsdom": "^30.0.1",