resuml 2.0.0 → 3.1.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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/mcp/server.ts"],"sourcesContent":["import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { z } from 'zod';\nimport { processResumeData } from '../core';\nimport { analyzeAts } from '../ats/index';\nimport { loadTheme } from '../utils/themeLoader';\nimport { generateResumeYaml } from '../utils/resumeTemplate';\nimport { KNOWN_THEMES, isThemeInstalled, getInstalledVersion } from '../utils/themeInfo';\n\n// Redirect console.log to stderr so it doesn't corrupt the MCP stdio channel\nconst originalLog = console.log;\nconst originalWarn = console.warn;\n\nfunction suppressStdout() {\n console.log = (...args: unknown[]) => { console.error('[resuml]', ...args); };\n console.warn = (...args: unknown[]) => { console.error('[resuml]', ...args); };\n}\n\nfunction restoreStdout() {\n console.log = originalLog;\n console.warn = originalWarn;\n}\n\n// ── Shared data ─────────────────────────────────────────────────────\n\nconst JSON_RESUME_SCHEMA_REFERENCE = `# JSON Resume Schema Reference\n\nThe JSON Resume schema defines the structure for resume data. resuml uses YAML as the input format.\n\n## Top-level sections\n\n| Section | Required | Description |\n|---------|----------|-------------|\n| basics | Yes | Name, label, email, phone, url, summary, location, profiles |\n| work | Recommended | Work experience entries |\n| education | Recommended | Education entries |\n| skills | Recommended | Skill categories with keywords |\n| projects | Optional | Project entries |\n| volunteer | Optional | Volunteer experience |\n| awards | Optional | Awards and honors |\n| certificates | Optional | Professional certifications |\n| publications | Optional | Published works |\n| languages | Optional | Language proficiencies |\n| interests | Optional | Personal interests |\n| references | Optional | Professional references |\n\n## Section schemas\n\n### basics\n\\`\\`\\`yaml\nbasics:\n name: \"Full Name\" # required\n label: \"Professional Title\"\n email: \"email@example.com\"\n phone: \"+1-555-123-4567\"\n url: \"https://website.com\"\n summary: \"2-4 sentence professional summary\"\n location:\n city: \"City\"\n countryCode: \"US\"\n region: \"State\"\n profiles:\n - network: \"LinkedIn\"\n username: \"username\"\n url: \"https://linkedin.com/in/username\"\n\\`\\`\\`\n\n### work\n\\`\\`\\`yaml\nwork:\n - name: \"Company Name\"\n position: \"Job Title\"\n url: \"https://company.com\"\n startDate: \"2020-01-01\" # ISO 8601\n endDate: \"2023-12-31\" # omit for current position\n summary: \"Role description\"\n highlights:\n - \"Achievement with measurable result\"\n\\`\\`\\`\n\n### education\n\\`\\`\\`yaml\neducation:\n - institution: \"University\"\n area: \"Field of Study\"\n studyType: \"Degree Type\" # e.g. Bachelor, Master, PhD\n startDate: \"2014-09-01\"\n endDate: \"2018-06-01\"\n\\`\\`\\`\n\n### skills\n\\`\\`\\`yaml\nskills:\n - name: \"Category\"\n level: \"Expert\" # Master, Expert, Advanced, Intermediate, Beginner\n keywords: [\"Skill1\", \"Skill2\"]\n\\`\\`\\`\n\n### projects\n\\`\\`\\`yaml\nprojects:\n - name: \"Project Name\"\n description: \"What it does\"\n highlights: [\"Key achievement\"]\n keywords: [\"Tech1\", \"Tech2\"]\n startDate: \"2023-01-01\"\n url: \"https://github.com/...\"\n\\`\\`\\`\n\n### certificates\n\\`\\`\\`yaml\ncertificates:\n - name: \"Certificate Name\"\n date: \"2023-01-01\"\n issuer: \"Issuing Organization\"\n url: \"https://credential-url.com\"\n\\`\\`\\`\n\n### languages\n\\`\\`\\`yaml\nlanguages:\n - language: \"English\"\n fluency: \"Native speaker\" # Native speaker, Fluent, Advanced, Intermediate, Elementary\n\\`\\`\\`\n\n## Formatting rules\n- Dates: ISO 8601 format (YYYY-MM-DD or YYYY-MM)\n- Start highlights with action verbs: Developed, Implemented, Led, Optimized, Reduced, Built, Designed\n- Include numbers in 50%+ of highlights (e.g., \"Reduced latency by 40%\")\n- Never use first person (I, my, me, we)\n- Summary: 2-4 sentences positioning the candidate for the specific role\n`;\n\nconst ATS_SCORING_RUBRIC = `# ATS Scoring Rubric\n\nresuml performs deterministic, offline ATS (Applicant Tracking System) analysis.\n\n## Scoring system\n\n### Rating scale\n| Score | Rating | Description |\n|-------|--------|-------------|\n| 90-100 | Excellent | Resume is well-optimized for ATS |\n| 75-89 | Good | Resume passes most ATS checks |\n| 60-74 | Needs Work | Several improvements recommended |\n| 0-59 | Poor | Significant issues found |\n\n### Weight system\nEach check has a weight that affects the final score:\n- **High weight (3x)**: Critical checks that significantly impact ATS parsing\n- **Medium weight (2x)**: Important but not critical checks\n- **Low weight (1x)**: Nice-to-have improvements\n\n### Combined scoring (with job description)\nWhen a job description is provided:\n- Generic checks: 60% of final score\n- Keyword match: 40% of final score\n\n## Checks performed\n\n### Contact Information (category: contact)\n| Check | Weight | What it verifies |\n|-------|--------|-----------------|\n| contact-complete | High | Name, email, phone, and city are all present |\n| has-linkedin | Medium | LinkedIn profile exists in profiles section |\n\n### Content Quality (category: content)\n| Check | Weight | What it verifies |\n|-------|--------|-----------------|\n| has-summary | High | Professional summary exists (15-100 words) |\n| work-highlights | High | Each work entry has at least 2 highlights |\n| action-verbs | Medium | Highlights start with action verbs |\n| quantified-impact | Medium | 50%+ of highlights include numbers/metrics |\n| no-first-person | Low | No first-person pronouns (I, my, me, we) |\n\n### Resume Structure (category: structure)\n| Check | Weight | What it verifies |\n|-------|--------|-----------------|\n| date-consistency | Medium | All dates are valid ISO 8601 format |\n| skills-populated | Medium | At least 3 skill categories defined |\n| education-complete | Medium | Education section has institution and area |\n| essential-sections | High | Work, education, and skills sections present |\n\n## Job description matching\nWhen a job description is provided, resuml extracts keywords using TF-based extraction\nand matches them against the resume using stem matching. Results include:\n- **matched**: Keywords found in the resume\n- **missing**: Keywords not found (add these to improve score)\n- **matchPercentage**: Percentage of JD keywords found in resume\n\n## Fit Assessment\nWhen a job description is provided, a \\`fitAssessment\\` field is included in the result:\n| Match % | Level | Meaning |\n|---------|-------|---------|\n| >= 70% | strong | Resume aligns well with the job description |\n| 50-69% | partial | Some alignment; emphasize transferable skills |\n| < 50% | weak | Significant skill gaps; role may not match profile |\n\nThe assessment includes the top 5 missing keywords as specific gaps to address.\nUse this to advise users whether to apply or focus effort elsewhere.\n\n## Tips for improving ATS score\n1. Include all contact information (name, email, phone, city)\n2. Add a LinkedIn profile URL\n3. Write a 2-4 sentence professional summary\n4. Use action verbs to start each highlight\n5. Quantify achievements with numbers (%, $, time saved, team size)\n6. Include at least 3 skill categories with relevant keywords\n7. When targeting a job, mirror exact terminology from the job description\n`;\n\nfunction createServer(): McpServer {\n const server = new McpServer({\n name: 'resuml',\n version: '1.0.0',\n });\n\n // ═══════════════════════════════════════════════════════════════════\n // RESOURCES\n // ═══════════════════════════════════════════════════════════════════\n\n // ── JSON Resume Schema Reference ──────────────────────────────────\n\n server.registerResource(\n 'json-resume-schema',\n 'resuml://schema/json-resume',\n {\n description: 'JSON Resume schema reference with all sections, field types, and formatting rules',\n mimeType: 'text/markdown',\n },\n () => ({\n contents: [{\n uri: 'resuml://schema/json-resume',\n mimeType: 'text/markdown',\n text: JSON_RESUME_SCHEMA_REFERENCE,\n }],\n }),\n );\n\n // ── ATS Scoring Rubric ────────────────────────────────────────────\n\n server.registerResource(\n 'ats-scoring-rubric',\n 'resuml://docs/ats-scoring',\n {\n description: 'ATS scoring rubric: checks performed, weight system, rating scale, and tips for improving score',\n mimeType: 'text/markdown',\n },\n () => ({\n contents: [{\n uri: 'resuml://docs/ats-scoring',\n mimeType: 'text/markdown',\n text: ATS_SCORING_RUBRIC,\n }],\n }),\n );\n\n // ── Theme Catalog ─────────────────────────────────────────────────\n\n server.registerResource(\n 'theme-catalog',\n 'resuml://themes/catalog',\n {\n description: 'Available resume themes with descriptions and installation status',\n mimeType: 'application/json',\n },\n () => {\n const themes = KNOWN_THEMES.map((t) => ({\n name: t.name,\n package: t.pkg,\n description: t.description,\n installed: isThemeInstalled(t.pkg),\n version: getInstalledVersion(t.pkg),\n }));\n return {\n contents: [{\n uri: 'resuml://themes/catalog',\n mimeType: 'application/json',\n text: JSON.stringify({ themes, totalCount: themes.length }, null, 2),\n }],\n };\n },\n );\n\n // ═══════════════════════════════════════════════════════════════════\n // PROMPTS\n // ═══════════════════════════════════════════════════════════════════\n\n // ── Tailor Resume to Job Description ──────────────────────────────\n\n server.registerPrompt(\n 'tailor-resume-to-jd',\n {\n title: 'Tailor Resume to Job Description',\n description: 'Generate a tailored resume YAML optimized for a specific job description',\n argsSchema: {\n jobDescription: z.string().describe('The full job description text'),\n candidateName: z.string().optional().describe('Candidate full name'),\n candidateEmail: z.string().optional().describe('Candidate email address'),\n candidateBackground: z.string().optional().describe('Brief summary of the candidate background, skills, and experience to incorporate'),\n },\n },\n ({ jobDescription, candidateName, candidateEmail, candidateBackground }) => ({\n messages: [{\n role: 'user',\n content: {\n type: 'text',\n text: `Create a tailored resume in YAML format optimized for the following job description.\n\n## Job Description\n${jobDescription}\n\n${candidateBackground ? `## Candidate Background\\n${candidateBackground}\\n` : ''}\n## Instructions\n\n1. Analyze the job description to identify required skills, technologies, experience level, and industry terms\n2. Generate a complete resume YAML following the JSON Resume schema (read the resuml://schema/json-resume resource for the full schema)\n3. Mirror exact terminology from the job description in skills and highlights\n4. Start every highlight with an action verb (Developed, Implemented, Led, Optimized, Reduced, Built, Designed)\n5. Include numbers in 50%+ of highlights (e.g., \"Reduced latency by 40%\", \"Managed team of 8\")\n6. Never use \"I\", \"my\", \"me\", \"we\"\n7. Write a 2-4 sentence summary positioning the candidate for this specific role\n8. Use ISO 8601 dates (YYYY-MM-DD or YYYY-MM)\n${candidateName ? `9. Use candidate name: ${candidateName}` : ''}\n${candidateEmail ? `10. Use candidate email: ${candidateEmail}` : ''}\n\n## Workflow\nAfter generating the YAML:\n1. Use \\`resuml_validate\\` to check schema compliance\n2. Use \\`resuml_ats_check\\` with the job description text. Target: score >= 75, keyword match >= 70%\n3. If ATS score is low, revise the YAML and re-check\n4. Use \\`resuml_render\\` with theme \"even\" for the final output\n\nOutput the resume YAML first, then run the validation and ATS check tools.`,\n },\n }],\n }),\n );\n\n // ── Optimize ATS Score ────────────────────────────────────────────\n\n server.registerPrompt(\n 'optimize-ats-score',\n {\n title: 'Optimize ATS Score',\n description: 'Analyze and improve an existing resume YAML to maximize its ATS score',\n argsSchema: {\n resumeYaml: z.string().describe('The current resume YAML content'),\n jobDescription: z.string().optional().describe('Optional job description to optimize against'),\n targetScore: z.string().optional().describe('Target ATS score (default: 85)'),\n },\n },\n ({ resumeYaml, jobDescription, targetScore }) => ({\n messages: [{\n role: 'user',\n content: {\n type: 'text',\n text: `Optimize this resume YAML to maximize its ATS score${targetScore ? ` (target: ${targetScore})` : ' (target: 85+)'}.\n\n## Current Resume YAML\n\\`\\`\\`yaml\n${resumeYaml}\n\\`\\`\\`\n\n${jobDescription ? `## Job Description\\n${jobDescription}\\n` : ''}\n## Instructions\n\n1. First, run \\`resuml_ats_check\\` on the current YAML${jobDescription ? ' with the job description' : ''} to get the baseline score\n2. Read the ATS scoring rubric (resuml://docs/ats-scoring) to understand what checks are performed\n3. Review each failed or low-scoring check and fix the issues:\n - Missing contact info → add it\n - No summary → write a 2-4 sentence professional summary\n - Weak highlights → rewrite with action verbs and quantified metrics\n - Missing keywords → incorporate them naturally into skills and highlights\n - Structural issues → ensure all essential sections are present\n4. Run \\`resuml_ats_check\\` again to verify improvement\n5. Repeat until the target score is reached\n\nOutput the improved YAML with a summary of changes made.`,\n },\n }],\n }),\n );\n\n // ── Review Resume ─────────────────────────────────────────────────\n\n server.registerPrompt(\n 'review-resume',\n {\n title: 'Review Resume',\n description: 'Comprehensive review of a resume YAML with ATS analysis and improvement suggestions',\n argsSchema: {\n resumeYaml: z.string().describe('The resume YAML content to review'),\n },\n },\n ({ resumeYaml }) => ({\n messages: [{\n role: 'user',\n content: {\n type: 'text',\n text: `Perform a comprehensive review of this resume.\n\n## Resume YAML\n\\`\\`\\`yaml\n${resumeYaml}\n\\`\\`\\`\n\n## Review steps\n\n1. Run \\`resuml_validate\\` to check schema compliance\n2. Run \\`resuml_ats_check\\` for ATS analysis\n3. Review content quality:\n - Is the summary compelling and role-specific?\n - Do highlights use strong action verbs?\n - Are achievements quantified with metrics?\n - Are skills well-organized and comprehensive?\n - Is the work history clear and impactful?\n4. Provide a structured review with:\n - **ATS Score**: Current score and rating\n - **Schema Issues**: Any validation errors\n - **Strengths**: What the resume does well\n - **Improvements**: Specific, actionable suggestions\n - **Revised YAML**: An improved version if significant changes are recommended`,\n },\n }],\n }),\n );\n\n // ═══════════════════════════════════════════════════════════════════\n // TOOLS\n // ═══════════════════════════════════════════════════════════════════\n\n // ── resuml_init_resume ──────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_init_resume',\n {\n title: 'Init Resume',\n description: 'Generate a starter resume YAML template following the JSON Resume schema',\n inputSchema: {\n name: z.string().optional().describe('Full name for the resume'),\n title: z.string().optional().describe('Professional title/label'),\n email: z.string().optional().describe('Email address'),\n },\n },\n ({ name, title, email }) => {\n const yaml = generateResumeYaml(\n name ?? 'Your Name',\n email ?? 'email@example.com',\n title ?? 'Professional Title',\n );\n return { content: [{ type: 'text' as const, text: yaml }] };\n },\n );\n\n // ── resuml_validate ─────────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_validate',\n {\n title: 'Validate Resume',\n description: 'Validate resume YAML against the JSON Resume schema',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n },\n },\n async ({ yaml }) => {\n suppressStdout();\n try {\n await processResumeData([yaml]);\n restoreStdout();\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ valid: true, errors: [] }, null, 2) }],\n };\n } catch (e: unknown) {\n restoreStdout();\n const message = e instanceof Error ? e.message : String(e);\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ valid: false, errors: [message] }, null, 2) }],\n };\n }\n },\n );\n\n // ── resuml_ats_check ────────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_ats_check',\n {\n title: 'ATS Check',\n description: 'Run ATS (Applicant Tracking System) analysis on a resume, optionally matching against a job description',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n jobDescription: z.string().optional().describe('Job description text to match keywords against'),\n language: z.enum(['en', 'de']).optional().describe('Language for analysis (default: en)'),\n },\n },\n async ({ yaml, jobDescription, language }) => {\n suppressStdout();\n try {\n const resume = await processResumeData([yaml]);\n const result = analyzeAts(resume, {\n language: language ?? 'en',\n jobDescription,\n });\n restoreStdout();\n return {\n content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }],\n };\n } catch (e: unknown) {\n restoreStdout();\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ error: e instanceof Error ? e.message : String(e) }) }],\n isError: true,\n };\n }\n },\n );\n\n // ── resuml_render ───────────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_render',\n {\n title: 'Render Resume',\n description: 'Render a resume to HTML using a specified theme',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n theme: z.string().default('even').describe('Theme name (e.g. even, stackoverflow, elegant, paper, kendall)'),\n locale: z.string().optional().describe('Locale for theme rendering (e.g. en, de)'),\n },\n },\n async (args) => {\n const { yaml, theme } = args;\n const locale = args['locale'];\n suppressStdout();\n try {\n const resume = await processResumeData([yaml]);\n const themeModule = loadTheme(theme, { autoInstall: false });\n const renderOptions: Record<string, unknown> = {};\n if (locale) renderOptions['locale'] = locale;\n const html = await themeModule.render(resume, renderOptions);\n restoreStdout();\n return { content: [{ type: 'text' as const, text: html }] };\n } catch (e: unknown) {\n restoreStdout();\n const message = e instanceof Error ? e.message : String(e);\n const hint = message.includes('Cannot find module')\n ? `. Install with: resuml themes --install ${theme}`\n : '';\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ error: message + hint }) }],\n isError: true,\n };\n }\n },\n );\n\n // ── resuml_list_themes ──────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_list_themes',\n {\n title: 'List Themes',\n description: 'List available resume themes with their installation status',\n },\n () => {\n const themes = KNOWN_THEMES.map((t) => ({\n name: t.name,\n package: t.pkg,\n description: t.description,\n installed: isThemeInstalled(t.pkg),\n version: getInstalledVersion(t.pkg),\n }));\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ themes }, null, 2) }],\n };\n },\n );\n\n // ── resuml_export_pdf ───────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_export_pdf',\n {\n title: 'Export PDF',\n description: 'Export a resume as PDF (requires Playwright to be installed)',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n theme: z.string().default('even').describe('Theme name'),\n format: z.enum(['A4', 'Letter']).default('A4').describe('Paper format'),\n locale: z.string().optional().describe('Locale for theme rendering (e.g. en, de)'),\n margin: z.string().optional().describe('Page margins. Single value (e.g. \"10mm\") for all sides, two values (e.g. \"10mm,15mm\") for vertical/horizontal, or four values (e.g. \"10mm,15mm,10mm,15mm\") for top/right/bottom/left'),\n },\n },\n async (args) => {\n const { yaml, theme, format } = args;\n const locale = args['locale'];\n const margin = args['margin'];\n suppressStdout();\n try {\n const resume = await processResumeData([yaml]);\n const themeModule = loadTheme(theme, { autoInstall: false });\n const renderOptions: Record<string, unknown> = {};\n if (locale) renderOptions['locale'] = locale;\n const html = await themeModule.render(resume, renderOptions);\n\n let chromium;\n try {\n const pw = await import('playwright');\n chromium = pw.chromium;\n } catch {\n restoreStdout();\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ error: 'Playwright is not installed. Run: npm install playwright' }) }],\n isError: true,\n };\n }\n\n const parsedMargin = parseMargin(margin);\n const browser = await chromium.launch({ headless: true });\n const page = await browser.newPage();\n await page.setContent(html, { waitUntil: 'networkidle' });\n const pdfBuffer = await page.pdf({\n format,\n printBackground: true,\n margin: parsedMargin,\n });\n await browser.close();\n restoreStdout();\n\n return {\n content: [{\n type: 'text' as const,\n text: JSON.stringify({\n pdf: Buffer.from(pdfBuffer).toString('base64'),\n encoding: 'base64',\n format,\n }),\n }],\n };\n } catch (e: unknown) {\n restoreStdout();\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ error: e instanceof Error ? e.message : String(e) }) }],\n isError: true,\n };\n }\n },\n );\n\n return server;\n}\n\nfunction parseMargin(margin?: string): Record<string, string> {\n const defaultMargin = { top: '10mm', right: '10mm', bottom: '10mm', left: '10mm' };\n if (!margin) return defaultMargin;\n\n const parts = margin.split(',').map((s) => s.trim());\n if (parts.length === 1 && parts[0]) {\n return { top: parts[0], right: parts[0], bottom: parts[0], left: parts[0] };\n }\n if (parts.length === 2 && parts[0] && parts[1]) {\n return { top: parts[0], right: parts[1], bottom: parts[0], left: parts[1] };\n }\n if (parts.length === 4 && parts[0] && parts[1] && parts[2] && parts[3]) {\n return { top: parts[0], right: parts[1], bottom: parts[2], left: parts[3] };\n }\n return defaultMargin;\n}\n\nexport async function startMcpServer(): Promise<void> {\n const server = createServer();\n const transport = new StdioServerTransport();\n await server.connect(transport);\n}\n"],"mappings":";;;;;;;;;;;AAAA,SAAS,iBAAiB;AAC1B,SAAS,4BAA4B;AACrC,SAAS,SAAS;AAQlB,IAAM,cAAc,QAAQ;AAC5B,IAAM,eAAe,QAAQ;AAE7B,SAAS,iBAAiB;AACxB,UAAQ,MAAM,IAAI,SAAoB;AAAE,YAAQ,MAAM,YAAY,GAAG,IAAI;AAAA,EAAG;AAC5E,UAAQ,OAAO,IAAI,SAAoB;AAAE,YAAQ,MAAM,YAAY,GAAG,IAAI;AAAA,EAAG;AAC/E;AAEA,SAAS,gBAAgB;AACvB,UAAQ,MAAM;AACd,UAAQ,OAAO;AACjB;AAIA,IAAM,+BAA+B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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E,KAAK,MAAM,CAAC,GAAG,OAAO,MAAM,CAAC,GAAG,QAAQ,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,EAAE;AAAA,EAC5E;AACA,MAAI,MAAM,WAAW,KAAK,MAAM,CAAC,KAAK,MAAM,CAAC,KAAK,MAAM,CAAC,KAAK,MAAM,CAAC,GAAG;AACtE,WAAO,EAAE,KAAK,MAAM,CAAC,GAAG,OAAO,MAAM,CAAC,GAAG,QAAQ,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,EAAE;AAAA,EAC5E;AACA,SAAO;AACT;AAEA,eAAsB,iBAAgC;AACpD,QAAM,SAAS,aAAa;AAC5B,QAAM,YAAY,IAAI,qBAAqB;AAC3C,QAAM,OAAO,QAAQ,SAAS;AAChC;","names":[]}
1
+ {"version":3,"sources":["../../src/mcp/server.ts"],"sourcesContent":["import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { z } from 'zod';\nimport { processResumeData } from '../core';\nimport { analyzeAts } from '../ats/index';\nimport { listRubricMarkdown, getRubricEntry } from '../ats/rubric';\nimport { loadConfig } from '../utils/config';\nimport { loadTheme } from '../utils/themeLoader';\nimport { generateResumeYaml } from '../utils/resumeTemplate';\nimport { KNOWN_THEMES, isThemeInstalled, getInstalledVersion } from '../utils/themeInfo';\n\n// Redirect console.log to stderr so it doesn't corrupt the MCP stdio channel\nconst originalLog = console.log;\nconst originalWarn = console.warn;\n\nfunction suppressStdout() {\n console.log = (...args: unknown[]) => {\n console.error('[resuml]', ...args);\n };\n console.warn = (...args: unknown[]) => {\n console.error('[resuml]', ...args);\n };\n}\n\nfunction restoreStdout() {\n console.log = originalLog;\n console.warn = originalWarn;\n}\n\n// ── Shared data ─────────────────────────────────────────────────────\n\nconst JSON_RESUME_SCHEMA_REFERENCE = `# JSON Resume Schema Reference\n\nThe JSON Resume schema defines the structure for resume data. resuml uses YAML as the input format.\n\n## Top-level sections\n\n| Section | Required | Description |\n|---------|----------|-------------|\n| basics | Yes | Name, label, email, phone, url, summary, location, profiles |\n| work | Recommended | Work experience entries |\n| education | Recommended | Education entries |\n| skills | Recommended | Skill categories with keywords |\n| projects | Optional | Project entries |\n| volunteer | Optional | Volunteer experience |\n| awards | Optional | Awards and honors |\n| certificates | Optional | Professional certifications |\n| publications | Optional | Published works |\n| languages | Optional | Language proficiencies |\n| interests | Optional | Personal interests |\n| references | Optional | Professional references |\n\n## Section schemas\n\n### basics\n\\`\\`\\`yaml\nbasics:\n name: \"Full Name\" # required\n label: \"Professional Title\"\n email: \"email@example.com\"\n phone: \"+1-555-123-4567\"\n url: \"https://website.com\"\n summary: \"2-4 sentence professional summary\"\n location:\n city: \"City\"\n countryCode: \"US\"\n region: \"State\"\n profiles:\n - network: \"LinkedIn\"\n username: \"username\"\n url: \"https://linkedin.com/in/username\"\n\\`\\`\\`\n\n### work\n\\`\\`\\`yaml\nwork:\n - name: \"Company Name\"\n position: \"Job Title\"\n url: \"https://company.com\"\n startDate: \"2020-01-01\" # ISO 8601\n endDate: \"2023-12-31\" # omit for current position\n summary: \"Role description\"\n highlights:\n - \"Achievement with measurable result\"\n\\`\\`\\`\n\n### education\n\\`\\`\\`yaml\neducation:\n - institution: \"University\"\n area: \"Field of Study\"\n studyType: \"Degree Type\" # e.g. Bachelor, Master, PhD\n startDate: \"2014-09-01\"\n endDate: \"2018-06-01\"\n\\`\\`\\`\n\n### skills\n\\`\\`\\`yaml\nskills:\n - name: \"Category\"\n level: \"Expert\" # Master, Expert, Advanced, Intermediate, Beginner\n keywords: [\"Skill1\", \"Skill2\"]\n\\`\\`\\`\n\n### projects\n\\`\\`\\`yaml\nprojects:\n - name: \"Project Name\"\n description: \"What it does\"\n highlights: [\"Key achievement\"]\n keywords: [\"Tech1\", \"Tech2\"]\n startDate: \"2023-01-01\"\n url: \"https://github.com/...\"\n\\`\\`\\`\n\n### certificates\n\\`\\`\\`yaml\ncertificates:\n - name: \"Certificate Name\"\n date: \"2023-01-01\"\n issuer: \"Issuing Organization\"\n url: \"https://credential-url.com\"\n\\`\\`\\`\n\n### languages\n\\`\\`\\`yaml\nlanguages:\n - language: \"English\"\n fluency: \"Native speaker\" # Native speaker, Fluent, Advanced, Intermediate, Elementary\n\\`\\`\\`\n\n## Formatting rules\n- Dates: ISO 8601 format (YYYY-MM-DD or YYYY-MM)\n- Start highlights with action verbs: Developed, Implemented, Led, Optimized, Reduced, Built, Designed\n- Include numbers in 50%+ of highlights (e.g., \"Reduced latency by 40%\")\n- Never use first person (I, my, me, we)\n- Summary: 2-4 sentences positioning the candidate for the specific role\n`;\n\nfunction createServer(): McpServer {\n const server = new McpServer({\n name: 'resuml',\n version: '2.0.0',\n });\n\n // ═══════════════════════════════════════════════════════════════════\n // RESOURCES\n // ═══════════════════════════════════════════════════════════════════\n\n // ── JSON Resume Schema Reference ──────────────────────────────────\n\n server.registerResource(\n 'json-resume-schema',\n 'resuml://schema/json-resume',\n {\n description:\n 'JSON Resume schema reference with all sections, field types, and formatting rules',\n mimeType: 'text/markdown',\n },\n () => ({\n contents: [\n {\n uri: 'resuml://schema/json-resume',\n mimeType: 'text/markdown',\n text: JSON_RESUME_SCHEMA_REFERENCE,\n },\n ],\n })\n );\n\n // ── ATS Rubric ───────────────────────────────────────────────────\n\n server.registerResource(\n 'ats-rubric',\n 'resuml://docs/ats-rubric',\n {\n description:\n 'Tiered ATS rubric: every check, its tier, weight, evidence level, description, and source URL.',\n mimeType: 'text/markdown',\n },\n () => ({\n contents: [\n {\n uri: 'resuml://docs/ats-rubric',\n mimeType: 'text/markdown',\n text: listRubricMarkdown(),\n },\n ],\n })\n );\n\n // ── Theme Catalog ─────────────────────────────────────────────────\n\n server.registerResource(\n 'theme-catalog',\n 'resuml://themes/catalog',\n {\n description: 'Available resume themes with descriptions and installation status',\n mimeType: 'application/json',\n },\n () => {\n const themes = KNOWN_THEMES.map((t) => ({\n name: t.name,\n package: t.pkg,\n description: t.description,\n installed: isThemeInstalled(t.pkg),\n version: getInstalledVersion(t.pkg),\n }));\n return {\n contents: [\n {\n uri: 'resuml://themes/catalog',\n mimeType: 'application/json',\n text: JSON.stringify({ themes, totalCount: themes.length }, null, 2),\n },\n ],\n };\n }\n );\n\n // ═══════════════════════════════════════════════════════════════════\n // PROMPTS\n // ═══════════════════════════════════════════════════════════════════\n\n // ── Tailor Resume to Job Description ──────────────────────────────\n\n server.registerPrompt(\n 'tailor-resume-to-jd',\n {\n title: 'Tailor Resume to Job Description',\n description: 'Generate a tailored resume YAML optimized for a specific job description',\n argsSchema: {\n jobDescription: z.string().describe('The full job description text'),\n candidateName: z.string().optional().describe('Candidate full name'),\n candidateEmail: z.string().optional().describe('Candidate email address'),\n candidateBackground: z\n .string()\n .optional()\n .describe(\n 'Brief summary of the candidate background, skills, and experience to incorporate'\n ),\n },\n },\n ({ jobDescription, candidateName, candidateEmail, candidateBackground }) => ({\n messages: [\n {\n role: 'user',\n content: {\n type: 'text',\n text: `Create a tailored resume in YAML format optimized for the following job description.\n\n## Job Description\n${jobDescription}\n\n${candidateBackground ? `## Candidate Background\\n${candidateBackground}\\n` : ''}\n## Instructions\n\n1. Analyze the job description to identify required skills, technologies, experience level, and industry terms\n2. Generate a complete resume YAML following the JSON Resume schema (read the resuml://schema/json-resume resource for the full schema)\n3. Mirror exact terminology from the job description in skills and highlights\n4. Start every highlight with an action verb (Developed, Implemented, Led, Optimized, Reduced, Built, Designed)\n5. Include numbers in 50%+ of highlights (e.g., \"Reduced latency by 40%\", \"Managed team of 8\")\n6. Never use \"I\", \"my\", \"me\", \"we\"\n7. Write a 2-4 sentence summary positioning the candidate for this specific role\n8. Use ISO 8601 dates (YYYY-MM-DD or YYYY-MM)\n${candidateName ? `9. Use candidate name: ${candidateName}` : ''}\n${candidateEmail ? `10. Use candidate email: ${candidateEmail}` : ''}\n\n## Workflow\nAfter generating the YAML:\n1. Use \\`resuml_validate\\` to check schema compliance\n2. Use \\`resuml_ats_check\\` with the job description text. Target: total >= 75, parsing tier grade A, hard-skill-overlap >= 70%\n3. If ATS score is low, revise the YAML and re-check\n4. Use \\`resuml_render\\` with theme \"even\" for the final output\n\nOutput the resume YAML first, then run the validation and ATS check tools.`,\n },\n },\n ],\n })\n );\n\n // ── Optimize ATS Score ────────────────────────────────────────────\n\n server.registerPrompt(\n 'optimize-ats-score',\n {\n title: 'Optimize ATS Score',\n description: 'Analyze and improve an existing resume YAML to maximize its ATS score',\n argsSchema: {\n resumeYaml: z.string().describe('The current resume YAML content'),\n jobDescription: z\n .string()\n .optional()\n .describe('Optional job description to optimize against'),\n targetScore: z.string().optional().describe('Target ATS score (default: 85)'),\n },\n },\n ({ resumeYaml, jobDescription, targetScore }) => ({\n messages: [\n {\n role: 'user',\n content: {\n type: 'text',\n text: `Optimize this resume YAML to maximize its ATS score${targetScore ? ` (target: ${targetScore})` : ' (target: 85+)'}.\n\n## Current Resume YAML\n\\`\\`\\`yaml\n${resumeYaml}\n\\`\\`\\`\n\n${jobDescription ? `## Job Description\\n${jobDescription}\\n` : ''}\n## Instructions\n\n1. First, run \\`resuml_ats_check\\` on the current YAML${jobDescription ? ' with the job description' : ''} to get the baseline score\n2. Read the ATS rubric (resuml://docs/ats-rubric) to understand what checks are performed, their tier, and weight\n3. Review each failed or low-scoring check and fix the issues:\n - Missing contact info → add it\n - No summary → write a 2-4 sentence professional summary\n - Weak highlights → rewrite with action verbs and quantified metrics\n - Missing keywords → incorporate them naturally into skills and highlights\n - Structural issues → ensure all essential sections are present\n4. Run \\`resuml_ats_check\\` again to verify improvement\n5. Repeat until the target score is reached\n\nOutput the improved YAML with a summary of changes made.`,\n },\n },\n ],\n })\n );\n\n // ── Review Resume ─────────────────────────────────────────────────\n\n server.registerPrompt(\n 'review-resume',\n {\n title: 'Review Resume',\n description:\n 'Comprehensive review of a resume YAML with ATS analysis and improvement suggestions',\n argsSchema: {\n resumeYaml: z.string().describe('The resume YAML content to review'),\n },\n },\n ({ resumeYaml }) => ({\n messages: [\n {\n role: 'user',\n content: {\n type: 'text',\n text: `Perform a comprehensive review of this resume.\n\n## Resume YAML\n\\`\\`\\`yaml\n${resumeYaml}\n\\`\\`\\`\n\n## Review steps\n\n1. Run \\`resuml_validate\\` to check schema compliance\n2. Run \\`resuml_ats_check\\` for ATS analysis\n3. Review content quality:\n - Is the summary compelling and role-specific?\n - Do highlights use strong action verbs?\n - Are achievements quantified with metrics?\n - Are skills well-organized and comprehensive?\n - Is the work history clear and impactful?\n4. Provide a structured review with:\n - **ATS Score**: Current score and rating\n - **Schema Issues**: Any validation errors\n - **Strengths**: What the resume does well\n - **Improvements**: Specific, actionable suggestions\n - **Revised YAML**: An improved version if significant changes are recommended`,\n },\n },\n ],\n })\n );\n\n // ═══════════════════════════════════════════════════════════════════\n // TOOLS\n // ═══════════════════════════════════════════════════════════════════\n\n // ── resuml_init_resume ──────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_init_resume',\n {\n title: 'Init Resume',\n description: 'Generate a starter resume YAML template following the JSON Resume schema',\n inputSchema: {\n name: z.string().optional().describe('Full name for the resume'),\n title: z.string().optional().describe('Professional title/label'),\n email: z.string().optional().describe('Email address'),\n },\n },\n ({ name, title, email }) => {\n const yaml = generateResumeYaml(\n name ?? 'Your Name',\n email ?? 'email@example.com',\n title ?? 'Professional Title'\n );\n return { content: [{ type: 'text' as const, text: yaml }] };\n }\n );\n\n // ── resuml_validate ─────────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_validate',\n {\n title: 'Validate Resume',\n description: 'Validate resume YAML against the JSON Resume schema',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n },\n },\n async ({ yaml }) => {\n suppressStdout();\n try {\n await processResumeData([yaml]);\n restoreStdout();\n return {\n content: [\n { type: 'text' as const, text: JSON.stringify({ valid: true, errors: [] }, null, 2) },\n ],\n };\n } catch (e: unknown) {\n restoreStdout();\n const message = e instanceof Error ? e.message : String(e);\n return {\n content: [\n {\n type: 'text' as const,\n text: JSON.stringify({ valid: false, errors: [message] }, null, 2),\n },\n ],\n };\n }\n }\n );\n\n // ── resuml_ats_check ────────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_ats_check',\n {\n title: 'ATS Check',\n description:\n 'Run ATS (Applicant Tracking System) analysis on a resume, optionally matching against a job description',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n jobDescription: z\n .string()\n .optional()\n .describe('Job description text to match keywords against'),\n language: z.enum(['en', 'de']).optional().describe('Language for analysis (default: en)'),\n },\n },\n async ({ yaml, jobDescription, language }) => {\n suppressStdout();\n try {\n const resume = await processResumeData([yaml]);\n const cfg = loadConfig();\n const result = analyzeAts(resume, {\n language: language ?? cfg.locale,\n jobDescription,\n config: cfg,\n });\n restoreStdout();\n return {\n content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }],\n };\n } catch (e: unknown) {\n restoreStdout();\n return {\n content: [\n {\n type: 'text' as const,\n text: JSON.stringify({ error: e instanceof Error ? e.message : String(e) }),\n },\n ],\n isError: true,\n };\n }\n }\n );\n\n // ── resuml_ats_explain ──────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_ats_explain',\n {\n title: 'ATS Rubric Explain',\n description:\n 'Return the rubric entry (tier, weight, evidence level, description, source) for a given check id.',\n inputSchema: {\n checkId: z.string().describe('Check id, e.g. quantification-density'),\n },\n },\n ({ checkId }) => {\n const entry = getRubricEntry(checkId);\n if (!entry) {\n return {\n content: [\n {\n type: 'text' as const,\n text: JSON.stringify({ error: `Unknown check id: ${checkId}` }),\n },\n ],\n isError: true,\n };\n }\n return { content: [{ type: 'text' as const, text: JSON.stringify(entry, null, 2) }] };\n }\n );\n\n // ── resuml_render ───────────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_render',\n {\n title: 'Render Resume',\n description: 'Render a resume to HTML using a specified theme',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n theme: z\n .string()\n .default('even')\n .describe('Theme name (e.g. even, stackoverflow, elegant, paper, kendall)'),\n locale: z.string().optional().describe('Locale for theme rendering (e.g. en, de)'),\n },\n },\n async (args) => {\n const { yaml, theme } = args;\n const locale = args['locale'];\n suppressStdout();\n try {\n const resume = await processResumeData([yaml]);\n const themeModule = loadTheme(theme, { autoInstall: false });\n const renderOptions: Record<string, unknown> = {};\n if (locale) renderOptions['locale'] = locale;\n const html = await themeModule.render(resume, renderOptions);\n restoreStdout();\n return { content: [{ type: 'text' as const, text: html }] };\n } catch (e: unknown) {\n restoreStdout();\n const message = e instanceof Error ? e.message : String(e);\n const hint = message.includes('Cannot find module')\n ? `. Install with: resuml themes --install ${theme}`\n : '';\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ error: message + hint }) }],\n isError: true,\n };\n }\n }\n );\n\n // ── resuml_list_themes ──────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_list_themes',\n {\n title: 'List Themes',\n description: 'List available resume themes with their installation status',\n },\n () => {\n const themes = KNOWN_THEMES.map((t) => ({\n name: t.name,\n package: t.pkg,\n description: t.description,\n installed: isThemeInstalled(t.pkg),\n version: getInstalledVersion(t.pkg),\n }));\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ themes }, null, 2) }],\n };\n }\n );\n\n // ── resuml_export_pdf ───────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_export_pdf',\n {\n title: 'Export PDF',\n description: 'Export a resume as PDF (requires Playwright to be installed)',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n theme: z.string().default('even').describe('Theme name'),\n format: z.enum(['A4', 'Letter']).default('A4').describe('Paper format'),\n locale: z.string().optional().describe('Locale for theme rendering (e.g. en, de)'),\n margin: z\n .string()\n .optional()\n .describe(\n 'Page margins. Single value (e.g. \"10mm\") for all sides, two values (e.g. \"10mm,15mm\") for vertical/horizontal, or four values (e.g. \"10mm,15mm,10mm,15mm\") for top/right/bottom/left'\n ),\n },\n },\n async (args) => {\n const { yaml, theme, format } = args;\n const locale = args['locale'];\n const margin = args['margin'];\n suppressStdout();\n try {\n const resume = await processResumeData([yaml]);\n const themeModule = loadTheme(theme, { autoInstall: false });\n const renderOptions: Record<string, unknown> = {};\n if (locale) renderOptions['locale'] = locale;\n const html = await themeModule.render(resume, renderOptions);\n\n let chromium;\n try {\n const pw = await import('playwright');\n chromium = pw.chromium;\n } catch {\n restoreStdout();\n return {\n content: [\n {\n type: 'text' as const,\n text: JSON.stringify({\n error: 'Playwright is not installed. Run: npm install playwright',\n }),\n },\n ],\n isError: true,\n };\n }\n\n const parsedMargin = parseMargin(margin);\n const browser = await chromium.launch({ headless: true });\n const page = await browser.newPage();\n await page.setContent(html, { waitUntil: 'networkidle' });\n const pdfBuffer = await page.pdf({\n format,\n printBackground: true,\n margin: parsedMargin,\n });\n await browser.close();\n restoreStdout();\n\n return {\n content: [\n {\n type: 'text' as const,\n text: JSON.stringify({\n pdf: Buffer.from(pdfBuffer).toString('base64'),\n encoding: 'base64',\n format,\n }),\n },\n ],\n };\n } catch (e: unknown) {\n restoreStdout();\n return {\n content: [\n {\n type: 'text' as const,\n text: JSON.stringify({ error: e instanceof Error ? e.message : String(e) }),\n },\n ],\n isError: true,\n };\n }\n }\n );\n\n return server;\n}\n\nfunction parseMargin(margin?: string): Record<string, string> {\n const defaultMargin = { top: '10mm', right: '10mm', bottom: '10mm', left: '10mm' };\n if (!margin) return defaultMargin;\n\n const parts = margin.split(',').map((s) => s.trim());\n if (parts.length === 1 && parts[0]) {\n return { top: parts[0], right: parts[0], bottom: parts[0], left: parts[0] };\n }\n if (parts.length === 2 && parts[0] && parts[1]) {\n return { top: parts[0], right: parts[1], bottom: parts[0], left: parts[1] };\n }\n if (parts.length === 4 && parts[0] && parts[1] && parts[2] && parts[3]) {\n return { top: parts[0], right: parts[1], bottom: parts[2], left: parts[3] };\n }\n return defaultMargin;\n}\n\nexport async function startMcpServer(): Promise<void> {\n const server = createServer();\n const transport = new StdioServerTransport();\n await server.connect(transport);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAAS,iBAAiB;AAC1B,SAAS,4BAA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,WAAO,EAAE,KAAK,MAAM,CAAC,GAAG,OAAO,MAAM,CAAC,GAAG,QAAQ,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,EAAE;AAAA,EAC5E;AACA,SAAO;AACT;AAEA,eAAsB,iBAAgC;AACpD,QAAM,SAAS,aAAa;AAC5B,QAAM,YAAY,IAAI,qBAAqB;AAC3C,QAAM,OAAO,QAAQ,SAAS;AAChC;","names":[]}
@@ -0,0 +1,67 @@
1
+ type SkillType = 'language' | 'framework' | 'library' | 'tool' | 'platform' | 'database' | 'practice';
2
+ interface Skill {
3
+ id: string;
4
+ canonical: string;
5
+ aliases: string[];
6
+ type: SkillType;
7
+ hot: boolean;
8
+ sources?: string[];
9
+ }
10
+ interface SkillMatch {
11
+ skill: Skill;
12
+ occurrences: number;
13
+ }
14
+
15
+ /**
16
+ * Tokenize text for skill matching.
17
+ *
18
+ * Splits on whitespace and sentence punctuation, but keeps internal punctuation
19
+ * that's part of a skill name (e.g. "Node.js", "CI/CD", "shadcn/ui", "c#", "c++").
20
+ * Returns normalized lowercase tokens alongside their original form.
21
+ */
22
+ interface Token {
23
+ raw: string;
24
+ norm: string;
25
+ isAllUpper: boolean;
26
+ }
27
+ /**
28
+ * Linear-time tokenizer. Iterates once over the string, accumulating runs of
29
+ * token chars. Avoids regex alternation and unbounded quantifiers to keep
30
+ * worst-case complexity O(n) even on adversarial inputs.
31
+ */
32
+ declare function tokenize(text: string): Token[];
33
+ /**
34
+ * Indexed skill database for fast longest-match lookup.
35
+ *
36
+ * Strategy: group all skill phrases (canonical + every alias) by their first
37
+ * token. For each first token we get a list of candidate phrases, sorted
38
+ * longest-first so we find the most specific match first (e.g. "React Query"
39
+ * beats "React" when the text contains both words adjacent).
40
+ */
41
+ declare class SkillIndex {
42
+ private readonly skills;
43
+ private readonly byFirstToken;
44
+ private readonly maxPhraseLen;
45
+ constructor(skills: readonly Skill[]);
46
+ /**
47
+ * Scan text for skills. Longest-match wins at each position, e.g. "Next.js"
48
+ * doesn't also fire "Next", and "Google Cloud Platform" doesn't also fire
49
+ * "Google".
50
+ *
51
+ * Returns a list of unique skills with occurrence counts.
52
+ */
53
+ scan(text: string): SkillMatch[];
54
+ get size(): number;
55
+ get maxPhraseTokens(): number;
56
+ }
57
+
58
+ /**
59
+ * Bundled ATS skill taxonomy: ~1.9k skills from O*NET (US DOL, public domain)
60
+ * plus a curated emerging-tech allowlist. Used for keyword extraction from
61
+ * job descriptions and resumes.
62
+ */
63
+ declare function getSkillIndex(): SkillIndex;
64
+ /** Reset for tests. */
65
+ declare function _resetSkillIndexCache(): void;
66
+
67
+ export { type Skill, SkillIndex, type SkillMatch, type SkillType, _resetSkillIndexCache, getSkillIndex, tokenize };
@@ -0,0 +1,13 @@
1
+ import {
2
+ SkillIndex,
3
+ _resetSkillIndexCache,
4
+ getSkillIndex,
5
+ tokenize
6
+ } from "../chunk-QR77BRMN.js";
7
+ export {
8
+ SkillIndex,
9
+ _resetSkillIndexCache,
10
+ getSkillIndex,
11
+ tokenize
12
+ };
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,343 @@
1
+ /**
2
+ * This file was automatically generated by json-schema-to-typescript.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run json-schema-to-typescript to regenerate this file.
5
+ */
6
+ /**
7
+ * Similar to the standard date type, but each section after the year is optional. e.g. 2014-06-29 or 2023-04
8
+ */
9
+ type Iso8601 = string;
10
+ interface ResumeSchema {
11
+ /**
12
+ * link to the version of the schema that can validate the resume
13
+ */
14
+ $schema?: string;
15
+ basics?: {
16
+ name?: string;
17
+ /**
18
+ * e.g. Web Developer
19
+ */
20
+ label?: string;
21
+ /**
22
+ * URL (as per RFC 3986) to a image in JPEG or PNG format
23
+ */
24
+ image?: string;
25
+ /**
26
+ * e.g. thomas@gmail.com
27
+ */
28
+ email?: string;
29
+ /**
30
+ * Phone numbers are stored as strings so use any format you like, e.g. 712-117-2923
31
+ */
32
+ phone?: string;
33
+ /**
34
+ * URL (as per RFC 3986) to your website, e.g. personal homepage
35
+ */
36
+ url?: string;
37
+ /**
38
+ * Write a short 2-3 sentence biography about yourself
39
+ */
40
+ summary?: string;
41
+ location?: {
42
+ /**
43
+ * To add multiple address lines, use
44
+ * . For example, 1234 Glücklichkeit Straße
45
+ * Hinterhaus 5. Etage li.
46
+ */
47
+ address?: string;
48
+ postalCode?: string;
49
+ city?: string;
50
+ /**
51
+ * code as per ISO-3166-1 ALPHA-2, e.g. US, AU, IN
52
+ */
53
+ countryCode?: string;
54
+ /**
55
+ * The general region where you live. Can be a US state, or a province, for instance.
56
+ */
57
+ region?: string;
58
+ [k: string]: unknown;
59
+ };
60
+ /**
61
+ * Specify any number of social networks that you participate in
62
+ */
63
+ profiles?: {
64
+ /**
65
+ * e.g. Facebook or Twitter
66
+ */
67
+ network?: string;
68
+ /**
69
+ * e.g. neutralthoughts
70
+ */
71
+ username?: string;
72
+ /**
73
+ * e.g. http://twitter.example.com/neutralthoughts
74
+ */
75
+ url?: string;
76
+ [k: string]: unknown;
77
+ }[];
78
+ [k: string]: unknown;
79
+ };
80
+ work?: {
81
+ /**
82
+ * e.g. Facebook
83
+ */
84
+ name?: string;
85
+ /**
86
+ * e.g. Menlo Park, CA
87
+ */
88
+ location?: string;
89
+ /**
90
+ * e.g. Social Media Company
91
+ */
92
+ description?: string;
93
+ /**
94
+ * e.g. Software Engineer
95
+ */
96
+ position?: string;
97
+ /**
98
+ * e.g. http://facebook.example.com
99
+ */
100
+ url?: string;
101
+ startDate?: Iso8601;
102
+ endDate?: Iso8601;
103
+ /**
104
+ * Give an overview of your responsibilities at the company
105
+ */
106
+ summary?: string;
107
+ /**
108
+ * Specify multiple accomplishments
109
+ */
110
+ highlights?: string[];
111
+ [k: string]: unknown;
112
+ }[];
113
+ volunteer?: {
114
+ /**
115
+ * e.g. Facebook
116
+ */
117
+ organization?: string;
118
+ /**
119
+ * e.g. Software Engineer
120
+ */
121
+ position?: string;
122
+ /**
123
+ * e.g. http://facebook.example.com
124
+ */
125
+ url?: string;
126
+ startDate?: Iso8601;
127
+ endDate?: Iso8601;
128
+ /**
129
+ * Give an overview of your responsibilities at the company
130
+ */
131
+ summary?: string;
132
+ /**
133
+ * Specify accomplishments and achievements
134
+ */
135
+ highlights?: string[];
136
+ [k: string]: unknown;
137
+ }[];
138
+ education?: {
139
+ /**
140
+ * e.g. Massachusetts Institute of Technology
141
+ */
142
+ institution?: string;
143
+ /**
144
+ * e.g. http://facebook.example.com
145
+ */
146
+ url?: string;
147
+ /**
148
+ * e.g. Arts
149
+ */
150
+ area?: string;
151
+ /**
152
+ * e.g. Bachelor
153
+ */
154
+ studyType?: string;
155
+ startDate?: Iso8601;
156
+ endDate?: Iso8601;
157
+ /**
158
+ * grade point average, e.g. 3.67/4.0
159
+ */
160
+ score?: string;
161
+ /**
162
+ * List notable courses/subjects
163
+ */
164
+ courses?: string[];
165
+ [k: string]: unknown;
166
+ }[];
167
+ /**
168
+ * Specify any awards you have received throughout your professional career
169
+ */
170
+ awards?: {
171
+ /**
172
+ * e.g. One of the 100 greatest minds of the century
173
+ */
174
+ title?: string;
175
+ date?: Iso8601;
176
+ /**
177
+ * e.g. Time Magazine
178
+ */
179
+ awarder?: string;
180
+ /**
181
+ * e.g. Received for my work with Quantum Physics
182
+ */
183
+ summary?: string;
184
+ [k: string]: unknown;
185
+ }[];
186
+ /**
187
+ * Specify any certificates you have received throughout your professional career
188
+ */
189
+ certificates?: {
190
+ /**
191
+ * e.g. Certified Kubernetes Administrator
192
+ */
193
+ name?: string;
194
+ date?: Iso8601;
195
+ /**
196
+ * e.g. http://example.com
197
+ */
198
+ url?: string;
199
+ /**
200
+ * e.g. CNCF
201
+ */
202
+ issuer?: string;
203
+ [k: string]: unknown;
204
+ }[];
205
+ /**
206
+ * Specify your publications through your career
207
+ */
208
+ publications?: {
209
+ /**
210
+ * e.g. The World Wide Web
211
+ */
212
+ name?: string;
213
+ /**
214
+ * e.g. IEEE, Computer Magazine
215
+ */
216
+ publisher?: string;
217
+ releaseDate?: Iso8601;
218
+ /**
219
+ * e.g. http://www.computer.org.example.com/csdl/mags/co/1996/10/rx069-abs.html
220
+ */
221
+ url?: string;
222
+ /**
223
+ * Short summary of publication. e.g. Discussion of the World Wide Web, HTTP, HTML.
224
+ */
225
+ summary?: string;
226
+ [k: string]: unknown;
227
+ }[];
228
+ /**
229
+ * List out your professional skill-set
230
+ */
231
+ skills?: {
232
+ /**
233
+ * e.g. Web Development
234
+ */
235
+ name?: string;
236
+ /**
237
+ * e.g. Master
238
+ */
239
+ level?: string;
240
+ /**
241
+ * List some keywords pertaining to this skill
242
+ */
243
+ keywords?: string[];
244
+ [k: string]: unknown;
245
+ }[];
246
+ /**
247
+ * List any other languages you speak
248
+ */
249
+ languages?: {
250
+ /**
251
+ * e.g. English, Spanish
252
+ */
253
+ language?: string;
254
+ /**
255
+ * e.g. Fluent, Beginner
256
+ */
257
+ fluency?: string;
258
+ [k: string]: unknown;
259
+ }[];
260
+ interests?: {
261
+ /**
262
+ * e.g. Philosophy
263
+ */
264
+ name?: string;
265
+ keywords?: string[];
266
+ [k: string]: unknown;
267
+ }[];
268
+ /**
269
+ * List references you have received
270
+ */
271
+ references?: {
272
+ /**
273
+ * e.g. Timothy Cook
274
+ */
275
+ name?: string;
276
+ /**
277
+ * e.g. Joe blogs was a great employee, who turned up to work at least once a week. He exceeded my expectations when it came to doing nothing.
278
+ */
279
+ reference?: string;
280
+ [k: string]: unknown;
281
+ }[];
282
+ /**
283
+ * Specify career projects
284
+ */
285
+ projects?: {
286
+ /**
287
+ * e.g. The World Wide Web
288
+ */
289
+ name?: string;
290
+ /**
291
+ * Short summary of project. e.g. Collated works of 2017.
292
+ */
293
+ description?: string;
294
+ /**
295
+ * Specify multiple features
296
+ */
297
+ highlights?: string[];
298
+ /**
299
+ * Specify special elements involved
300
+ */
301
+ keywords?: string[];
302
+ startDate?: Iso8601;
303
+ endDate?: Iso8601;
304
+ /**
305
+ * e.g. http://www.computer.org/csdl/mags/co/1996/10/rx069-abs.html
306
+ */
307
+ url?: string;
308
+ /**
309
+ * Specify your role on this project or in company
310
+ */
311
+ roles?: string[];
312
+ /**
313
+ * Specify the relevant company/entity affiliations e.g. 'greenpeace', 'corporationXYZ'
314
+ */
315
+ entity?: string;
316
+ /**
317
+ * e.g. 'volunteering', 'presentation', 'talk', 'application', 'conference'
318
+ */
319
+ type?: string;
320
+ [k: string]: unknown;
321
+ }[];
322
+ /**
323
+ * The schema version and any other tooling configuration lives here
324
+ */
325
+ meta?: {
326
+ /**
327
+ * URL (as per RFC 3986) to latest version of this document
328
+ */
329
+ canonical?: string;
330
+ /**
331
+ * A version field which follows semver - e.g. v1.0.0
332
+ */
333
+ version?: string;
334
+ /**
335
+ * Using ISO 8601 with YYYY-MM-DDThh:mm:ss
336
+ */
337
+ lastModified?: string;
338
+ [k: string]: unknown;
339
+ };
340
+ [k: string]: unknown;
341
+ }
342
+
343
+ export type { Iso8601, ResumeSchema as Resume, ResumeSchema };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "name": "resuml",
3
- "version": "2.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Generate JSON resumes from YAML with theme support. CLI + MCP server for AI agents.",
5
5
  "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "./types": {
15
+ "types": "./dist/types/index.d.ts",
16
+ "import": "./dist/types/index.js"
17
+ },
18
+ "./ats": {
19
+ "types": "./dist/ats/index.d.ts",
20
+ "import": "./dist/ats/index.js"
21
+ },
22
+ "./skills": {
23
+ "types": "./dist/skills/index.d.ts",
24
+ "import": "./dist/skills/index.js"
25
+ },
26
+ "./mcp": {
27
+ "types": "./dist/mcp/server.d.ts",
28
+ "import": "./dist/mcp/server.js"
29
+ },
30
+ "./package.json": "./package.json"
31
+ },
6
32
  "bin": {
7
33
  "resuml": "./bin/resuml"
8
34
  },
@@ -11,8 +37,7 @@
11
37
  "dist",
12
38
  "data/skills",
13
39
  "DOCS.md",
14
- "README.md",
15
- "src/types"
40
+ "README.md"
16
41
  ],
17
42
  "scripts": {
18
43
  "build": "tsup",