linkbrief-mcp 0.5.1 → 0.5.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/README.ko.md CHANGED
@@ -108,7 +108,7 @@ PDF, `.docx`, `.pptx`, `.xlsx`, `.hwpx` 링크를 붙여 넣으세요. 다운로
108
108
  | ✅ 웹 페이지 | 모든 언어. JavaScript 페이지는 설치된 Chrome·Edge로. Shift_JIS, GBK, Big5, EUC-KR 등 |
109
109
  | ✅ 개발자 사이트 | GitHub 이슈·PR·코드 파일 · Stack Overflow·Stack Exchange · Hacker News · arXiv · `llms.txt` 문서 사이트 |
110
110
  | ✅ 문서 | PDF, Word, PowerPoint, Excel, 한글(.hwpx) |
111
- | ✅ 이미지 속 글 | 이미지로 올린 채용공고·포스터·공지: 에이전트가 이미지를 직접 봅니다 (잡코리아 등 채용 사이트) |
111
+ | ✅ 이미지 속 글 | 이미지로 올린 채용공고·포스터·공지: 에이전트가 이미지를 직접 봅니다 |
112
112
  | ✅ 국내 사이트 | 네이버 블로그, 네이버·다음 뉴스, 나무위키, 티스토리, 브런치, 벨로그 |
113
113
  | ❌ 미지원 | 로그인·봇 확인이 필요한 페이지(Medium, Reddit), Google 검색 결과, YouTube 자막, 스캔 PDF |
114
114
 
package/README.md CHANGED
@@ -108,7 +108,7 @@ Paste the link to a PDF, `.docx`, `.pptx`, `.xlsx` or `.hwpx` — right-click a
108
108
  | ✅ Web pages | Any language; JavaScript pages via your installed Chrome/Edge; Shift_JIS, GBK, Big5, EUC-KR and more |
109
109
  | ✅ Developer sites | GitHub issues, PRs and code files · Stack Overflow & Stack Exchange · Hacker News · arXiv · docs sites with `llms.txt` |
110
110
  | ✅ Documents | PDF, Word, PowerPoint, Excel, Hangul (.hwpx) |
111
- | ✅ Text in images | Job ads, posters and notices posted as an image: your agent gets the image itself (JobKorea and other job boards) |
111
+ | ✅ Text in images | Job ads, posters and notices posted as an image: your agent gets the image itself |
112
112
  | ✅ Korean sites | Naver Blog, Naver/Daum News, Namuwiki, Tistory, Brunch, Velog |
113
113
  | ❌ Not supported | Pages behind a login or a bot check (Medium, Reddit), Google Search result pages, YouTube transcripts, scanned PDFs |
114
114
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "linkbrief-mcp",
3
3
  "mcpName": "io.github.KDDYYY/linkbrief-mcp",
4
- "version": "0.5.1",
4
+ "version": "0.5.2",
5
5
  "description": "MCP server that lets Claude, Codex and other agents read any link — web pages, PDFs, JavaScript pages — as clean Markdown from your own computer, with ~95% fewer tokens than raw HTML. Handles any language and legacy encodings.",
6
6
  "type": "module",
7
7
  "bin": {
package/page.mjs CHANGED
@@ -32,7 +32,15 @@ turndown.addRule("emptyInline", {
32
32
  // Pipe table from any <table>; the first row becomes the header since Korean CMSs rarely use <th>.
33
33
  turndown.addRule("table", {
34
34
  filter: "table",
35
- replacement(_content, node) {
35
+ replacement(content, node) {
36
+ // A table holding another table is page layout (Saramin): keep the inner content, already converted.
37
+ if (node.getElementsByTagName("table").length) return `\n\n${content}\n\n`;
38
+ // Line breaks and blocks inside a cell get spaces around them, so "강화</p><p>자격요건" is not glued together.
39
+ for (const el of Array.from(node.getElementsByTagName("*"))) {
40
+ if (!/^(BR|P|DIV|LI|UL|OL|DT|DD|H[1-6])$/.test(el.nodeName)) continue;
41
+ el.parentNode.insertBefore(node.ownerDocument.createTextNode(" "), el);
42
+ el.parentNode.insertBefore(node.ownerDocument.createTextNode(" "), el.nextSibling);
43
+ }
36
44
  const rows = Array.from(node.getElementsByTagName("tr")).map((tr) =>
37
45
  Array.from(tr.childNodes).filter((c) => c.nodeName === "TD" || c.nodeName === "TH")
38
46
  .map((c) => c.textContent.replace(ZERO_WIDTH, "").replace(/\s+/g, " ").replace(/\|/g, "\\|").trim()))
package/sites.mjs CHANGED
@@ -182,6 +182,13 @@ export const sites = [
182
182
  return node;
183
183
  },
184
184
  },
185
+ {
186
+ // "Relay" views (lists, home page picks) load the posting by AJAX; the plain view page has it all inline:
187
+ // key facts (career, education, pay, location), the description and the positions table.
188
+ name: "saramin",
189
+ match: (u) => /(^|\.)saramin\.co\.kr$/.test(u.hostname) && /^\/zf_user\/jobs\/relay\/view$/.test(u.pathname) && u.searchParams.get("rec_idx"),
190
+ rewrite: (u) => `https://www.saramin.co.kr/zf_user/jobs/view?rec_idx=${encodeURIComponent(u.searchParams.get("rec_idx"))}`,
191
+ },
185
192
  {
186
193
  // The job description is an inline frame (iframe srcdoc), often only an image of the posting.
187
194
  // The page's meta description carries the summary (career, education, pay, deadline).