{"_id":"@makerkit/repo-checks","_rev":"4-1fe443d7c5ff6c7212cb806f2bb72ff7","name":"@makerkit/repo-checks","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.0-stage":{"name":"@makerkit/repo-checks","version":"0.0.0-stage","_id":"@makerkit/repo-checks@0.0.0-stage","stub":true,"maintainers":[{"name":"makerkit","email":"info@makerkit.dev"}],"dist":{"shasum":"2ca4258c05cd7b4a2ffc2f74e6f3f0f37dfd9312","tarball":"https://registry.npmjs.org/@makerkit/repo-checks/-/repo-checks-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-sbLSNftBK0YIE4BXjUgDqfejmB3M39nmp8RNLRHs1RS8FIn60nJ70aL2cKVWv3U/net9fg4FnYMPq7jKqFXAcA==","signatures":[{"sig":"MEQCIFmXN88+p8Fog9KaPc1WGLWcfCPz4rEV7vgMk7lm6nICAiBSyXj2EfjWUD+Ej/f2756vNuvxC44ykTMPNu9NNh+Piw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":343},"_npmUser":{"name":"makerkit","email":"info@makerkit.dev"},"description":"Temporary package placeholder for staged publishing","directories":{}},"0.0.0":{"name":"@makerkit/repo-checks","version":"0.0.0","keywords":["ai-agents","claude-code","codex","diagnostics","lint","mcp","typecheck"],"license":"MIT","_id":"@makerkit/repo-checks@0.0.0","maintainers":[{"name":"makerkit","email":"info@makerkit.dev"}],"homepage":"https://github.com/makerkit/makerkit#readme","bugs":{"url":"https://github.com/makerkit/makerkit/issues"},"dist":{"shasum":"0b7e68eac419a77e05fdc2adaafad7f8d84e0ddf","tarball":"https://registry.npmjs.org/@makerkit/repo-checks/-/repo-checks-0.0.0.tgz","fileCount":46,"integrity":"sha512-zHSlPBhNByrJjvo/RAKtloxVzBTTeobzQsSDvFLncErBqclIKXDkZQKl3ObqkiktSgmrGI0tLBCY6D4ZUgJAOA==","signatures":[{"sig":"MEQCIDEBbo7dvZ3QtIJRlFSkvhSIwyLTO6TuFOPB2kBiLv+MAiBS6qyrJTIzyVTxv96r+qQZZix2kvHiQCrtUMqYNQQGUg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCM4Bt2qUQmE3xwlwDzUFB7ogM1F9pBijt0AYviwvyucAIhAK9o0P7dNs7CeS6GWrueP0GsnJkGPCgf75vISjG6TbRQ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":217929},"main":"./index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./mcp":{"types":"./mcp.d.ts","import":"./mcp.mjs","require":"./mcp.js"},"./node":{"types":"./node.d.ts","import":"./node.mjs","require":"./node.js"}},"gitHead":"4963f46e641f462521064f8246facfe4cbee0d93","scripts":{"test":"vitest run","build":"tsdown && node ../../scripts/prepare-dist.mjs","typecheck":"tsc --noEmit -p tsconfig.lib.json && tsc --noEmit -p tsconfig.spec.json"},"_npmUser":{"name":"makerkit","email":"info@makerkit.dev"},"repository":{"url":"git+https://github.com/makerkit/makerkit.git","type":"git","directory":"packages/repo-checks"},"_npmVersion":"10.9.0","description":"Structured typecheck, lint and format diagnostics, script guidance and dependency upgrade advice for coding agents, in any Node repo.","directories":{},"_nodeVersion":"25.6.1","dependencies":{"zod":"^3.25.0 || ^4.0.0"},"publishConfig":{"access":"public","directory":"dist","linkDirectory":true},"_hasShrinkwrap":false,"devDependencies":{"zod":"catalog:","vite":"catalog:","tsdown":"catalog:","vitest":"catalog:","typescript":"catalog:","@types/node":"catalog:","@modelcontextprotocol/sdk":"catalog:"},"peerDependencies":{"@modelcontextprotocol/sdk":"^1.32.0"},"peerDependenciesMeta":{"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/repo-checks_0.0.0_1792068850230_0.2139079777187205","host":"s3://npm-registry-packages-npm-production"}},"0.0.1":{"name":"@makerkit/repo-checks","version":"0.0.1","keywords":["ai-agents","claude-code","codex","diagnostics","lint","mcp","typecheck"],"license":"MIT","_id":"@makerkit/repo-checks@0.0.1","maintainers":[{"name":"makerkit","email":"info@makerkit.dev"}],"homepage":"https://github.com/makerkit/makerkit#readme","bugs":{"url":"https://github.com/makerkit/makerkit/issues"},"dist":{"shasum":"6ff5d516687539ef87582457acd27fc88312298f","tarball":"https://registry.npmjs.org/@makerkit/repo-checks/-/repo-checks-0.0.1.tgz","fileCount":17,"integrity":"sha512-6pFHcROnjgwgoNyQrBSAVeBb76sqpOTTde1p+6uMVIZxpEiMP0gON8IyxqkZcgne0ruoYAO3Bt8jYFm8M/JjuA==","signatures":[{"sig":"MEYCIQD0VALA0YabnboIxSfRURuk+jjvwIs+ubpMRq2dP2MGTgIhAOSkbeIbHt94IHO8TmmLpp9Al4CzoM+49gOTqA233NXi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIF5iKhw6ESB0DH3DaoiJ2iAGJ/hNj+2dBdio3Lk6L1/lAiEA/dk1bkBh7G+Yim/GZwe1xloE+snDK2UBtDf9PK7Zcrk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":126207},"main":"./index.js","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./mcp":{"types":"./mcp.d.ts","import":"./mcp.mjs","require":"./mcp.js"},"./node":{"types":"./node.d.ts","import":"./node.mjs","require":"./node.js"}},"gitHead":"4963f46e641f462521064f8246facfe4cbee0d93","_npmUser":{"name":"makerkit","email":"info@makerkit.dev"},"repository":{"url":"git+https://github.com/makerkit/makerkit.git","type":"git","directory":"packages/repo-checks"},"_npmVersion":"10.9.0","description":"Structured typecheck, lint and format diagnostics, script guidance and dependency upgrade advice for coding agents, in any Node repo.","directories":{},"_nodeVersion":"25.6.1","dependencies":{"zod":"^3.25.0 || ^4.0.0"},"_hasShrinkwrap":false,"peerDependencies":{"@modelcontextprotocol/sdk":"^1.32.0"},"peerDependenciesMeta":{"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/repo-checks_0.0.1_1792069447254_0.8944763899963153","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"_id":"@makerkit/repo-checks@0.0.2","bugs":{"url":"https://github.com/makerkit/makerkit/issues"},"dist":{"shasum":"89e5bb8cac18bcd8304ee182641230c5b1c643d0","tarball":"https://registry.npmjs.org/@makerkit/repo-checks/-/repo-checks-0.0.2.tgz","fileCount":17,"integrity":"sha512-nKI9+cWv36PHBzMixDrK6PQu171K4JtUb54rLs72bIGJpsArPUA8Pc/3h+bE5c9yAPA4I3DPA8o7WTraNXN+jg==","signatures":[{"sig":"MEQCIEbqgYbwawbtAdXKJBcGnqrltXBLyIH954Gb+MZhfWSaAiA6BGxExVukOjWryREx0PyCpJKMUgOtcNFRLyhR7yazjQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCa48tHCSy0F+vN1MTH0GKelxNFkvOHOQ+GrAD6zfkV0gIhAN3Wmr8h9qMN3s+fut9iYZFzGdQzORiVvLpQlld5WXbQ"}],"unpackedSize":131365},"main":"./index.js","name":"@makerkit/repo-checks","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./mcp":{"types":"./mcp.d.ts","import":"./mcp.mjs","require":"./mcp.js"},"./node":{"types":"./node.d.ts","import":"./node.mjs","require":"./node.js"}},"gitHead":"30f479f7fdd251e83964497ae4c262057f326eba","license":"MIT","version":"0.0.2","_npmUser":{"name":"makerkit","email":"info@makerkit.dev"},"homepage":"https://github.com/makerkit/makerkit#readme","keywords":["ai-agents","claude-code","codex","diagnostics","lint","mcp","typecheck"],"repository":{"url":"git+https://github.com/makerkit/makerkit.git","type":"git","directory":"packages/repo-checks"},"_npmVersion":"10.9.0","description":"Structured typecheck, lint and format diagnostics, script guidance and dependency upgrade advice for coding agents, in any Node repo.","directories":{},"maintainers":[{"name":"makerkit","email":"info@makerkit.dev"}],"_nodeVersion":"25.6.1","dependencies":{"zod":"^3.25.0 || ^4.0.0"},"_hasShrinkwrap":false,"peerDependencies":{"@modelcontextprotocol/sdk":"^1.32.0"},"peerDependenciesMeta":{"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/repo-checks_0.0.2_1792074812971_0.44847215820625586"}}},"time":{"created":"2026-10-15T12:53:13.637Z","modified":"2026-10-15T14:33:33.446Z","0.0.0-stage":"2026-10-15T12:53:13.637Z","0.0.0":"2026-10-15T12:54:10.330Z","0.0.1":"2026-10-15T13:04:07.337Z","0.0.2":"2026-10-15T14:33:33.045Z"},"bugs":{"url":"https://github.com/makerkit/makerkit/issues"},"license":"MIT","homepage":"https://github.com/makerkit/makerkit#readme","keywords":["ai-agents","claude-code","codex","diagnostics","lint","mcp","typecheck"],"repository":{"url":"git+https://github.com/makerkit/makerkit.git","type":"git","directory":"packages/repo-checks"},"description":"Structured typecheck, lint and format diagnostics, script guidance and dependency upgrade advice for coding agents, in any Node repo.","maintainers":[{"name":"makerkit","email":"info@makerkit.dev"}],"readme":"# @makerkit/repo-checks\n\nGives coding agents structured results from your project's own checks. Instead of reading pages of terminal output, an agent gets each error as file, line, rule and message.\n\n- **run_checks**: runs your `typecheck`, `lint` and `format` scripts (or the fix scripts, or tests) and parses the output of TypeScript, Oxlint, Oxfmt and Vitest into diagnostics.\n- **get_scripts / get_script_details / get_healthcheck_scripts**: lists your `package.json` scripts with what each one does, whether it changes files, and which ones to run after every change.\n- **deps_upgrade_advisor**: groups outdated dependencies by risk (patch, minor, major) with the command to upgrade them (pnpm projects).\n\nWorks with pnpm, npm, yarn and bun (detected from your lockfile).\n\n## Use from code\n\n```ts\nimport { createRepoChecksServices } from '@makerkit/repo-checks/node';\n\nconst { runChecks } = createRepoChecksServices(process.cwd());\nconst result = await runChecks.run({ scripts: ['typecheck', 'lint'] });\n\nfor (const diagnostic of result.diagnostics) {\n  console.log(`${diagnostic.file}:${diagnostic.line} ${diagnostic.message}`);\n}\n```\n\n### Settings\n\n```ts\ncreateRepoChecksServices(root, {\n  packageManager: 'pnpm', // default: detected from the lockfile\n  scripts: { check: ['typecheck', 'lint'], fix: ['lint:fix'], test: 'test:unit' },\n  catalog: {\n    'db:reset': { description: 'Reset the local database', importance: 'high' },\n  },\n});\n```\n\n## Add the tools to an MCP server\n\nRequires `@modelcontextprotocol/sdk`.\n\n```ts\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { registerRepoChecksTools } from '@makerkit/repo-checks/mcp';\nimport { createRepoChecksServices } from '@makerkit/repo-checks/node';\n\nconst server = new McpServer({ name: 'repo-checks', version: '1.0.0' });\n\nregisterRepoChecksTools(server, createRepoChecksServices(process.cwd()));\n```\n\nPass `{ prefix: 'my_' }` as a third argument to prefix the tool names.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}