{"_id":"@canyonjs/git-provider","_rev":"9-92cb4ed8a9066dbb22d26ca417b34d4a","name":"@canyonjs/git-provider","dist-tags":{"latest":"0.0.10"},"versions":{"0.0.1":{"name":"@canyonjs/git-provider","version":"0.0.1","keywords":["git","github","gitlab","gitea","api"],"author":{"name":"canyonjs"},"license":"MIT","_id":"@canyonjs/git-provider@0.0.1","maintainers":[{"name":"zhangtao25","email":"wr.zhang25@gmail.com"}],"homepage":"https://git.dev.sh.ctripcorp.com/canyon-project/git-provider#readme","bugs":{"url":"https://git.dev.sh.ctripcorp.com/canyon-project/git-provider/issues"},"dist":{"shasum":"bdb7959d113abee604b1a393dc4904da633e07f4","tarball":"https://registry.npmjs.org/@canyonjs/git-provider/-/git-provider-0.0.1.tgz","fileCount":4,"integrity":"sha512-ZCu6z45Je7xR1HSWf5/BcEfrX9bxwHoK98MQ4luRSiltdGHFH5wf1LB8iCC4fI/7Y1RFAuRaKerZIITLJeCgDw==","signatures":[{"sig":"MEYCIQDcvrskCgp/DEguTrviofa7Q5htphSwxF0RSWzh+YruEwIhAIU6R6Yq3T7abCNvel3u4rX4IkHssVxr3UeuQFeRDu4/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15671},"type":"module","_from":"file:canyonjs-git-provider-0.0.1.tgz","types":"./dist/index.d.ts","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"scripts":{"dev":"tsdown --watch","test":"vitest run","build":"tsdown","release":"bumpp","typecheck":"tsc --noEmit"},"_npmUser":{"name":"zhangtao25","email":"wr.zhang25@gmail.com"},"_resolved":"/tmp/dd4e66a0b9170ee093b1d7173fa9d23c/canyonjs-git-provider-0.0.1.tgz","_integrity":"sha512-ZCu6z45Je7xR1HSWf5/BcEfrX9bxwHoK98MQ4luRSiltdGHFH5wf1LB8iCC4fI/7Y1RFAuRaKerZIITLJeCgDw==","repository":{"url":"git+https://git.dev.sh.ctripcorp.com/canyon-project/git-provider.git","type":"git"},"_npmVersion":"10.8.2","description":"Unified Git provider client for GitHub, GitLab, and Gitea.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^11.0.1","tsdown":"^0.21.7","vitest":"^4.1.2","typescript":"^6.0.2","@types/node":"^25.5.0","@typescript/native-preview":"7.0.0-dev.20260328.1"},"_npmOperationalInternal":{"tmp":"tmp/git-provider_0.0.1_1776759190095_0.012561459130414843","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@canyonjs/git-provider","version":"0.0.2","keywords":["git","gitlab","api"],"author":{"name":"canyonjs"},"license":"MIT","_id":"@canyonjs/git-provider@0.0.2","maintainers":[{"name":"zhangtao25","email":"wr.zhang25@gmail.com"}],"homepage":"https://github.com/canyon-project/git-provider#readme","bugs":{"url":"https://github.com/canyon-project/git-provider/issues"},"dist":{"shasum":"a41265847619636d6bd32310342639f29ccaf0f9","tarball":"https://registry.npmjs.org/@canyonjs/git-provider/-/git-provider-0.0.2.tgz","fileCount":4,"integrity":"sha512-zXiatd0Zr3vYu2Css/kKPbgSPgKjc9pR0bhS86QxviVRx+YgiBmsTpyDVQXCKPsHyanD8AF+7uWg7HHEt/t5Cg==","signatures":[{"sig":"MEUCIQDq9GVI5pXvKsBfXAw/rm9plWcfsNi/LYjlhUtqWQLozQIgJoYvAh+AJk8Z9xvKPDSdTc/b1KUwJUmSUXJggs+vDbM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14146},"type":"module","_from":"file:canyonjs-git-provider-0.0.2.tgz","types":"./dist/index.d.ts","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"scripts":{"dev":"tsdown --watch","test":"vitest run","build":"tsdown","debug":"tsx src/debug.ts","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"zhangtao25","email":"wr.zhang25@gmail.com"},"_resolved":"/tmp/db3fd47234200862b1e0fe140cc895ec/canyonjs-git-provider-0.0.2.tgz","_integrity":"sha512-zXiatd0Zr3vYu2Css/kKPbgSPgKjc9pR0bhS86QxviVRx+YgiBmsTpyDVQXCKPsHyanD8AF+7uWg7HHEt/t5Cg==","repository":{"url":"git+https://github.com/canyon-project/git-provider.git","type":"git"},"_npmVersion":"10.8.2","description":"GitLab provider client with adapter architecture.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"diff":"^9.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsdown":"^0.21.7","vitest":"^4.1.2","@types/node":"^25.5.0","@typescript/native-preview":"7.0.0-dev.20260505.1"},"_npmOperationalInternal":{"tmp":"tmp/git-provider_0.0.2_1778067492954_0.9719175450575623","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@canyonjs/git-provider","version":"0.0.3","keywords":["api","git","gitlab"],"author":{"name":"canyonjs"},"license":"MIT","_id":"@canyonjs/git-provider@0.0.3","maintainers":[{"name":"zhangtao25","email":"wr.zhang25@gmail.com"}],"homepage":"https://github.com/canyon-project/git-provider#readme","bugs":{"url":"https://github.com/canyon-project/git-provider/issues"},"dist":{"shasum":"c65375c58c09e4252caa79aeb623aa6a5228e3e8","tarball":"https://registry.npmjs.org/@canyonjs/git-provider/-/git-provider-0.0.3.tgz","fileCount":4,"integrity":"sha512-2Og4yg+jXXqKqlOBooB2eTCS4hoEqnpJo6vCTECXXmIuz/5+/ls9WOVyH3ljOD/WufsJE8p4eEfj25VYckDDoA==","signatures":[{"sig":"MEYCIQCstClpvAv5iB5tJigSCQ+88rfhx3RiiWSsqaXY5j5DDgIhAJkp+0o3eyHD+s/Ryfx/quCRjzjElEOsKDdNfvrylzsE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14836},"type":"module","_from":"file:canyonjs-git-provider-0.0.3.tgz","types":"./dist/index.d.ts","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint","test":"vitest run","build":"tsdown","debug":"tsx src/debug.ts","lint:fix":"oxlint --fix","fmt:check":"oxfmt --check","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"zhangtao25","email":"wr.zhang25@gmail.com"},"_resolved":"/tmp/b63e8ebeda616ce6b0afcae9a27a35f1/canyonjs-git-provider-0.0.3.tgz","_integrity":"sha512-2Og4yg+jXXqKqlOBooB2eTCS4hoEqnpJo6vCTECXXmIuz/5+/ls9WOVyH3ljOD/WufsJE8p4eEfj25VYckDDoA==","repository":{"url":"git+https://github.com/canyon-project/git-provider.git","type":"git"},"_npmVersion":"10.8.2","description":"GitLab provider client with adapter architecture.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"diff":"^9.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","oxfmt":"^0.48.0","oxlint":"^1.63.0","tsdown":"^0.21.7","vitest":"^4.1.2","@types/node":"^25.5.0","@typescript/native-preview":"7.0.0-dev.20260505.1"},"_npmOperationalInternal":{"tmp":"tmp/git-provider_0.0.3_1778121715815_0.9558612224437115","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@canyonjs/git-provider","version":"0.0.5","keywords":["api","git","gitlab"],"author":{"name":"canyonjs"},"license":"MIT","_id":"@canyonjs/git-provider@0.0.5","maintainers":[{"name":"zhangtao25","email":"wr.zhang25@gmail.com"}],"homepage":"https://github.com/canyon-project/git-provider#readme","bugs":{"url":"https://github.com/canyon-project/git-provider/issues"},"dist":{"shasum":"4757fe087ba305de5db8a182091d049b2e67ca91","tarball":"https://registry.npmjs.org/@canyonjs/git-provider/-/git-provider-0.0.5.tgz","fileCount":4,"integrity":"sha512-P2V5Ham3dsNN7/833bUVWAd4ZQAGH22YUwMgx2SMhhxrkVUx7E/aFvxjurfwEy+EXI3i6agi8FzKqbsf8zSiiQ==","signatures":[{"sig":"MEUCICV8rKOXqSRWA5oYOqH6aYnnCu8DbMVXTacD9JgnCRVwAiEA14wN6b7xtSULD12+JaTxmC33sMhwoLT9GFpABFfgByc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14815},"type":"module","_from":"file:canyonjs-git-provider-0.0.5.tgz","types":"./dist/index.d.ts","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint","test":"vitest run","build":"tsdown","debug":"tsx src/debug.ts","lint:fix":"oxlint --fix","fmt:check":"oxfmt --check","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"zhangtao25","email":"wr.zhang25@gmail.com"},"_resolved":"/tmp/ba028996ddd0dfb4cf26d8aeb44012ab/canyonjs-git-provider-0.0.5.tgz","_integrity":"sha512-P2V5Ham3dsNN7/833bUVWAd4ZQAGH22YUwMgx2SMhhxrkVUx7E/aFvxjurfwEy+EXI3i6agi8FzKqbsf8zSiiQ==","repository":{"url":"git+https://github.com/canyon-project/git-provider.git","type":"git"},"_npmVersion":"10.8.2","description":"GitLab provider client with adapter architecture.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"diff":"^9.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","oxfmt":"^0.48.0","oxlint":"^1.63.0","tsdown":"^0.21.7","vitest":"^4.1.2","@types/node":"^25.5.0","@typescript/native-preview":"7.0.0-dev.20260505.1"},"_npmOperationalInternal":{"tmp":"tmp/git-provider_0.0.5_1778145378662_0.463365780019809","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@canyonjs/git-provider","version":"0.0.6","keywords":["api","git","gitlab"],"author":{"name":"canyonjs"},"license":"MIT","_id":"@canyonjs/git-provider@0.0.6","maintainers":[{"name":"zhangtao25","email":"wr.zhang25@gmail.com"}],"homepage":"https://github.com/canyon-project/git-provider#readme","bugs":{"url":"https://github.com/canyon-project/git-provider/issues"},"dist":{"shasum":"14503830b79f2f0455f5f42faf727f85c9d2e69b","tarball":"https://registry.npmjs.org/@canyonjs/git-provider/-/git-provider-0.0.6.tgz","fileCount":4,"integrity":"sha512-dI4iN7/JiSQMZ3fsJXcB850gh8Smrsy6RIkM932QNOmNZB+mZ56SqzDTcMGCb3JP3DsxT0kE+fskyHiANX1edw==","signatures":[{"sig":"MEUCIQD5VIizbGAKkY5vvq4SEEzR+JYWElXVGS025Ewpm/d9uwIgIZfjI84H+eNvUVouEG6IS1l4DtACs2ddtsGIdWs7MW4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18362},"type":"module","_from":"file:canyonjs-git-provider-0.0.6.tgz","types":"./dist/index.d.ts","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint","test":"vitest run","build":"tsdown","debug":"tsx scripts/debug/index.ts","test:ui":"vitest --ui","lint:fix":"oxlint --fix","fmt:check":"oxfmt --check","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"zhangtao25","email":"wr.zhang25@gmail.com"},"_resolved":"/tmp/75a34cb047251a78c811cb4a973be62c/canyonjs-git-provider-0.0.6.tgz","_integrity":"sha512-dI4iN7/JiSQMZ3fsJXcB850gh8Smrsy6RIkM932QNOmNZB+mZ56SqzDTcMGCb3JP3DsxT0kE+fskyHiANX1edw==","repository":{"url":"git+https://github.com/canyon-project/git-provider.git","type":"git"},"_npmVersion":"11.12.1","description":"GitLab provider client with adapter architecture.","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"tmp":"^0.2.5","diff":"^9.0.0","axios":"^1.16.0","adm-zip":"^0.5.17"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","oxfmt":"^0.48.0","dotenv":"^17.4.2","oxlint":"^1.63.0","tsdown":"^0.21.7","vitest":"^4.1.2","@types/tmp":"^0.2.6","@vitest/ui":"4.1.5","@types/node":"^25.5.0","@types/adm-zip":"^0.5.8","@canyonjs/report":"^1.0.28","@vitest/coverage-istanbul":"4.1.5","@typescript/native-preview":"7.0.0-dev.20260505.1"},"_npmOperationalInternal":{"tmp":"tmp/git-provider_0.0.6_1778315317365_0.6564246379000949","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@canyonjs/git-provider","version":"0.0.7","keywords":["api","git","gitlab"],"author":{"name":"canyonjs"},"license":"MIT","_id":"@canyonjs/git-provider@0.0.7","maintainers":[{"name":"zhangtao25","email":"wr.zhang25@gmail.com"}],"homepage":"https://github.com/canyon-project/git-provider#readme","bugs":{"url":"https://github.com/canyon-project/git-provider/issues"},"dist":{"shasum":"ab4615bb7cbc04e4fe225cd26384f71d22e2c881","tarball":"https://registry.npmjs.org/@canyonjs/git-provider/-/git-provider-0.0.7.tgz","fileCount":4,"integrity":"sha512-u54LIPrf9E2a9LOt/3kaRhdwIOKVF05k7ruPIt8NMSKLl1NI9wBsjN44ya8o9AZbOaFxWQkJ8oyn9FDF6kB2yQ==","signatures":[{"sig":"MEQCIFZpyTELWgBYgdUoliGJ2jSXwxfXgGRTrKkoZJe10TNTAiBrSm9dDWRjW506oucUJcDAwyyqTixcdelCmkwdLulsFg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19774},"type":"module","_from":"file:canyonjs-git-provider-0.0.7.tgz","types":"./dist/index.d.ts","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint","test":"vitest run","build":"tsdown","debug":"tsx scripts/debug/index.ts","test:ui":"vitest --ui","lint:fix":"oxlint --fix","fmt:check":"oxfmt --check","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"zhangtao25","email":"wr.zhang25@gmail.com"},"_resolved":"/tmp/f550307b8272123bb4e2e6f547169cf3/canyonjs-git-provider-0.0.7.tgz","_integrity":"sha512-u54LIPrf9E2a9LOt/3kaRhdwIOKVF05k7ruPIt8NMSKLl1NI9wBsjN44ya8o9AZbOaFxWQkJ8oyn9FDF6kB2yQ==","repository":{"url":"git+https://github.com/canyon-project/git-provider.git","type":"git"},"_npmVersion":"11.12.1","description":"GitLab provider client with adapter architecture.","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"tmp":"^0.2.5","diff":"^9.0.0","axios":"^1.16.0","adm-zip":"^0.5.17"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","oxfmt":"^0.48.0","dotenv":"^17.4.2","oxlint":"^1.63.0","tsdown":"^0.21.7","vitest":"^4.1.2","@types/tmp":"^0.2.6","@vitest/ui":"4.1.5","@types/node":"^25.5.0","@types/adm-zip":"^0.5.8","@canyonjs/report":"^1.0.28","@vitest/coverage-istanbul":"4.1.5","@typescript/native-preview":"7.0.0-dev.20260505.1"},"_npmOperationalInternal":{"tmp":"tmp/git-provider_0.0.7_1778481883842_0.8637307759969088","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@canyonjs/git-provider","version":"0.0.8","keywords":["api","git","gitlab"],"author":{"name":"canyonjs"},"license":"MIT","_id":"@canyonjs/git-provider@0.0.8","maintainers":[{"name":"zhangtao25","email":"wr.zhang25@gmail.com"}],"homepage":"https://github.com/canyon-project/git-provider#readme","bugs":{"url":"https://github.com/canyon-project/git-provider/issues"},"dist":{"shasum":"e60638e5cb63555c3b5f7c531b5020dc1d4bf237","tarball":"https://registry.npmjs.org/@canyonjs/git-provider/-/git-provider-0.0.8.tgz","fileCount":4,"integrity":"sha512-+AT3n7lSXplAZm+WIrOyffpxIeQyte4oFk0gwXLfpTyKvM5TsvW4UPbH5bVZgrb7xQ9DkChXlzRreEj9TYA5Mw==","signatures":[{"sig":"MEUCIDRjvBYnhnqynv73lX7/YiVZUOpsMXEUfICKWT3dfFMGAiEA56PQBm3uv1psQCTdv7WXeQK6XegaeCkBCBTQXdXa4EU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20299},"type":"module","_from":"file:canyonjs-git-provider-0.0.8.tgz","types":"./dist/index.d.ts","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint","test":"vitest run","build":"tsdown","debug":"tsx scripts/debug/index.ts","test:ui":"vitest --ui","lint:fix":"oxlint --fix","fmt:check":"oxfmt --check","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"zhangtao25","email":"wr.zhang25@gmail.com"},"_resolved":"/tmp/d5f0eef083dfe00f301ac853abc4a028/canyonjs-git-provider-0.0.8.tgz","_integrity":"sha512-+AT3n7lSXplAZm+WIrOyffpxIeQyte4oFk0gwXLfpTyKvM5TsvW4UPbH5bVZgrb7xQ9DkChXlzRreEj9TYA5Mw==","repository":{"url":"git+https://github.com/canyon-project/git-provider.git","type":"git"},"_npmVersion":"11.12.1","description":"GitLab provider client with adapter architecture.","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"tmp":"^0.2.5","diff":"^9.0.0","axios":"^1.16.0","adm-zip":"^0.5.17"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","oxfmt":"^0.48.0","dotenv":"^17.4.2","oxlint":"^1.63.0","tsdown":"^0.21.7","vitest":"^4.1.2","@types/tmp":"^0.2.6","@vitest/ui":"4.1.5","@types/node":"^25.5.0","@types/adm-zip":"^0.5.8","@canyonjs/report":"^1.0.28","@vitest/coverage-istanbul":"4.1.5","@typescript/native-preview":"7.0.0-dev.20260505.1"},"_npmOperationalInternal":{"tmp":"tmp/git-provider_0.0.8_1778491249644_0.26246187047614766","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"name":"@canyonjs/git-provider","version":"0.0.9","keywords":["api","git","gitlab"],"author":{"name":"canyonjs"},"license":"MIT","_id":"@canyonjs/git-provider@0.0.9","maintainers":[{"name":"zhangtao25","email":"wr.zhang25@gmail.com"}],"homepage":"https://github.com/canyon-project/git-provider#readme","bugs":{"url":"https://github.com/canyon-project/git-provider/issues"},"dist":{"shasum":"708fed1d7e81b0a7e5d6a4ca437ede31afa4f126","tarball":"https://registry.npmjs.org/@canyonjs/git-provider/-/git-provider-0.0.9.tgz","fileCount":4,"integrity":"sha512-jq5FVeQBOiMpS8eOApJiUIEF3P6xK/P+9Yuy0jO1I9vhipxWtSjsYGEQT++PEAHwbjtH6dzUKa/FXUxBlsgmeg==","signatures":[{"sig":"MEUCIGHvtbEqjM/KlxDx7FkPaxm5nEBJHNJIUTKxkMdJUb9TAiEAzapfsZKsMblQmiJsDxz1PqXIjDPJcpAoQFzcySLoAz4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19896},"type":"module","_from":"file:canyonjs-git-provider-0.0.9.tgz","types":"./dist/index.d.ts","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint","test":"vitest run","build":"tsdown","debug":"tsx scripts/debug/index.ts","test:ui":"vitest --ui","lint:fix":"oxlint --fix","fmt:check":"oxfmt --check","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"zhangtao25","email":"wr.zhang25@gmail.com"},"_resolved":"/tmp/38caf65dca81511aab0421e7adfcc0a2/canyonjs-git-provider-0.0.9.tgz","_integrity":"sha512-jq5FVeQBOiMpS8eOApJiUIEF3P6xK/P+9Yuy0jO1I9vhipxWtSjsYGEQT++PEAHwbjtH6dzUKa/FXUxBlsgmeg==","repository":{"url":"git+https://github.com/canyon-project/git-provider.git","type":"git"},"_npmVersion":"11.12.1","description":"GitLab provider client with adapter architecture.","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"tmp":"^0.2.5","diff":"^9.0.0","axios":"^1.16.0","adm-zip":"^0.5.17"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","oxfmt":"^0.48.0","dotenv":"^17.4.2","oxlint":"^1.63.0","tsdown":"^0.21.7","vitest":"^4.1.2","@types/tmp":"^0.2.6","@vitest/ui":"4.1.5","@types/node":"^25.5.0","@types/adm-zip":"^0.5.8","@canyonjs/report":"^1.0.28","@vitest/coverage-istanbul":"4.1.5","@typescript/native-preview":"7.0.0-dev.20260505.1"},"_npmOperationalInternal":{"tmp":"tmp/git-provider_0.0.9_1781527383600_0.502342927963624","host":"s3://npm-registry-packages-npm-production"}},"0.0.10":{"name":"@canyonjs/git-provider","version":"0.0.10","description":"GitLab provider client with adapter architecture.","keywords":["api","git","gitlab"],"homepage":"https://github.com/canyon-project/git-provider#readme","bugs":{"url":"https://github.com/canyon-project/git-provider/issues"},"license":"MIT","author":{"name":"canyonjs"},"repository":{"type":"git","url":"git+https://github.com/canyon-project/git-provider.git"},"type":"module","sideEffects":false,"types":"./dist/index.d.ts","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"dependencies":{"adm-zip":"^0.5.17","axios":"^1.16.0","diff":"^9.0.0","tmp":"^0.2.5"},"devDependencies":{"@canyonjs/report":"^1.0.28","@types/adm-zip":"^0.5.8","@types/node":"^25.5.0","@types/tmp":"^0.2.6","@typescript/native-preview":"7.0.0-dev.20260505.1","@vitest/coverage-istanbul":"4.1.5","@vitest/ui":"4.1.5","dotenv":"^17.4.2","oxfmt":"^0.48.0","oxlint":"^1.63.0","tsdown":"^0.21.7","tsx":"^4.21.0","vitest":"^4.1.2"},"scripts":{"build":"tsdown","dev":"tsdown --watch","test":"vitest run","test:ui":"vitest --ui","typecheck":"tsgo --noEmit","debug":"tsx scripts/debug/index.ts","lint":"oxlint","lint:fix":"oxlint --fix","fmt":"oxfmt","fmt:check":"oxfmt --check"},"_id":"@canyonjs/git-provider@0.0.10","_integrity":"sha512-2TPE2wbJokr9GVXHgtMNsMt5R7hxMV2Or1zC32MC3fbZ08F5cFkKMiauM8YBD9YQwN+IKEcJZjFokb52GELsNg==","_resolved":"/tmp/87406975a4c20fdbf9dee4581f51e2a2/canyonjs-git-provider-0.0.10.tgz","_from":"file:canyonjs-git-provider-0.0.10.tgz","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-2TPE2wbJokr9GVXHgtMNsMt5R7hxMV2Or1zC32MC3fbZ08F5cFkKMiauM8YBD9YQwN+IKEcJZjFokb52GELsNg==","shasum":"1114e5648ab8ccbe76ff63fcbec30b95df880175","tarball":"https://registry.npmjs.org/@canyonjs/git-provider/-/git-provider-0.0.10.tgz","fileCount":4,"unpackedSize":20095,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCTUBQW6X7q7ws3ou3ypPFTYKE83ZXkVANs+dWo3SG1+AIhAPpuGkwmNh4Av63Mq5vZkr/5esxL/QwrmxfLZ6cgj1+i"}]},"_npmUser":{"name":"zhangtao25","email":"wr.zhang25@gmail.com"},"directories":{},"maintainers":[{"name":"zhangtao25","email":"wr.zhang25@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/git-provider_0.0.10_1787628575128_0.5188491526591894"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-21T08:13:09.947Z","modified":"2026-08-25T03:29:35.456Z","0.0.1":"2026-04-21T08:13:10.254Z","0.0.2":"2026-05-06T11:38:13.130Z","0.0.3":"2026-05-07T02:41:56.028Z","0.0.5":"2026-05-07T09:16:18.800Z","0.0.6":"2026-05-09T08:28:37.505Z","0.0.7":"2026-05-11T06:44:44.016Z","0.0.8":"2026-05-11T09:20:49.811Z","0.0.9":"2026-06-15T12:43:03.727Z","0.0.10":"2026-08-25T03:29:35.275Z"},"bugs":{"url":"https://github.com/canyon-project/git-provider/issues"},"author":{"name":"canyonjs"},"license":"MIT","homepage":"https://github.com/canyon-project/git-provider#readme","keywords":["api","git","gitlab"],"repository":{"type":"git","url":"git+https://github.com/canyon-project/git-provider.git"},"description":"GitLab provider client with adapter architecture.","maintainers":[{"name":"zhangtao25","email":"wr.zhang25@gmail.com"}],"readme":"# @canyonjs/git-provider\n\n面向 **Git 托管平台（GitLab / GitHub）** 的轻量 TypeScript 客户端库。通过对外的 **`ScmAdapter`** 接口屏蔽平台差异：业务代码只依赖「仓库信息与两个引用之间的 Compare 结果」，由工厂方法按配置选择具体适配器。\n\n## 能力与现状\n\n| 能力          | GitLab                                           | GitHub                             |\n| ------------- | ------------------------------------------------ | ---------------------------------- |\n| `getRepoInfo` | 支持（Project API）                              | 支持（`owner/repo` 或数字仓库 id） |\n| `getCompare`  | **已实现**：比较 API + 逐文件 Raw 内容与行级差异 | **未实现**（调用会抛错）           |\n\n`getCompare` 返回结构化结果 **`Compare`**：\n\n- **`commitList`**：`base` … `head` 范围内涉及的提交 id（来源 GitLab `repository/compare`）。\n- **`changedFiles`**：**仅保留源码与常见模板后缀**（`ts` / `tsx` / `js` / `jsx` / `mjs` / `cjs` / `vue` / `svelte` / `astro` / `html` / `htm` / `njk` / `ejs` / `hbs` / `pug`）；每项含 **`path`** 以及 **`additions` / `deletions` 行号列表**（由 `diff` 对两侧全文做逐行比对得到）。不支持 Windows 路径风格，假定仓库路径均为 POSIX `/`。\n\nGitLab 侧会处理 **重命名**：在 `base` 与 `head` 上分别按 **旧路径 / 新路径** 拉取 Raw，再在统一展示路径上与行号结果对齐。\n\n## 依赖与请求\n\n- 运行时依赖：**[`diff`](https://www.npmjs.com/package/diff)**（行级比对）。\n- HTTP 使用全局 **`fetch`**（见 `src/request.ts`），按需配置超时等。\n\n## 安装\n\n```bash\npnpm add @canyonjs/git-provider\n```\n\n若从源码开发与联调：\n\n```bash\npnpm install\npnpm run build\n```\n\n## 用法示例\n\n```ts\nimport { createScmAdapter, type Compare, type ScmConfig } from \"@canyonjs/git-provider\";\n\nconst config: ScmConfig = {\n  type: \"gitlab\",\n  base: \"https://gitlab.example.com\",\n  token: process.env.GITLAB_TOKEN!,\n};\n\nconst adapter = createScmAdapter(config);\n\nconst repo = await adapter.getRepoInfo(\"group/project\"); // GitLab numeric id / path_with_namespace 等由平台解释\n\nconst result: Compare = await adapter.getCompare(\n  repo.id,\n  \"main~10\", // base ref\n  \"main\", // head ref\n);\n\nconsole.log(result.commitList.length, result.changedFiles.length);\n```\n\nGitHub 仅 token、`base` 固定为 `https://api.github.com`。\n\n## 开发与脚本\n\n| 脚本                 | 说明                                                       |\n| -------------------- | ---------------------------------------------------------- |\n| `pnpm run build`     | 使用 tsdown 产出 `dist`                                    |\n| `pnpm run dev`       | 监听构建                                                   |\n| `pnpm run typecheck` | TypeScript 检查                                            |\n| `pnpm run test`      | Vitest                                                     |\n| `pnpm run debug`     | 本地脚本 `scripts/debug/`（`.env` 配置 token、仓库与 ref） |\n\n目录概览：**`src/adapter.ts`** 定义 **`ScmAdapter`**；**`src/gitlab.ts`** / **`src/github.ts`** 为实现；**`src/diff-line.ts`** 为行号计算与扩展名判定；**`src/types.ts`** 为配置与各数据结构类型。**`tests/`** 为 Vitest 测试；**`tests/test-utils/`** 为本机 HTTP mock、fixture JSON 等（不进入 `dist`）。\n\n## 许可证\n\nMIT\n","readmeFilename":"README.md"}