{"_id":"@aweray/hsk-cli","_rev":"15-c7dbbf2a53371ab13f13980fe81ca291","name":"@aweray/hsk-cli","dist-tags":{"latest":"0.7.24"},"versions":{"0.2.2":{"name":"@aweray/hsk-cli","version":"0.2.2","keywords":["hsk","tunnel","nat-traversal","file-hosting","cli","内网穿透","文件托管","ai-agent","remote-access"],"author":{"name":"HSK Team"},"license":"MIT","_id":"@aweray/hsk-cli@0.2.2","maintainers":[{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},{"name":"liuchanghuang","email":"liuchanghuang1@oray.com"},{"name":"ordev-npm","email":"dev@oray.com"}],"homepage":"https://hsk.oray.com","bin":{"hsk-cli":"bin/hsk-cli.js"},"dist":{"shasum":"702167e737d24c0d5be8a37bb321d00047357e68","tarball":"https://registry.npmjs.org/@aweray/hsk-cli/-/hsk-cli-0.2.2.tgz","fileCount":17,"integrity":"sha512-w2apB51ABxYScbbf3l8DSXZXbpi3MNT8g36Xi5mwxeAmtYYzaS+OF+sJi/eD3FSywjsn1U5KSa4H2C8wxcXY2A==","signatures":[{"sig":"MEUCIQDeB9/50vmB2OS2BV3WF/Mlg+ZtaOWL0tnceUN7xR7CeAIgBDt34laquAceVTHfqRM1m9eaiSE0skzcWDPw8It9yG8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59811},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"7e1c0a826b4c81b7f44fb267115922abe6d45f0f","scripts":{"test":"echo \"Tests not implemented yet\" && exit 0"},"_npmUser":{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},"_npmVersion":"11.11.0","description":"HSK CLI - 内网穿透 & 文件托管，支持 Windows/macOS/Linux 多平台","directories":{},"_nodeVersion":"22.16.0","dependencies":{"chalk":"^4.1.2","commander":"^11.0.0","form-data":"^4.0.0","node-fetch":"^2.7.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hsk-cli_0.2.2_1782725522010_0.7304872830249323","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@aweray/hsk-cli","version":"0.3.0","keywords":["hsk","tunnel","nat-traversal","file-hosting","cli","内网穿透","文件托管","ai-agent","remote-access"],"author":{"name":"HSK Team"},"license":"MIT","_id":"@aweray/hsk-cli@0.3.0","maintainers":[{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},{"name":"liuchanghuang","email":"liuchanghuang1@oray.com"},{"name":"ordev-npm","email":"dev@oray.com"}],"homepage":"https://hsk.oray.com","bin":{"hsk-cli":"bin/hsk-cli.js"},"dist":{"shasum":"2a7626fd811e175af0d230b272db680acc4c3231","tarball":"https://registry.npmjs.org/@aweray/hsk-cli/-/hsk-cli-0.3.0.tgz","fileCount":17,"integrity":"sha512-bXZZ2+yoC5ZtEISofzJ0wX+F6w6GT/WSnlWcb9Jvu7HyvsQvMRDQWs3zg4zd9LAzShIIwTjb7e9Pm0b7CBnwIQ==","signatures":[{"sig":"MEQCIAaaxQLQnJ7aaXzSWkq0fAQlNBSeEK3Uf34R75Q+LXTeAiAaOqTdK8keb8ajSAksBsECl/E9E8Sw0g2wzurc3/1CBA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56794},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"dc08c1f2f2e70507e58dacb37a4df39dc3d9d993","scripts":{"test":"echo \"Tests not implemented yet\" && exit 0"},"_npmUser":{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},"_npmVersion":"11.11.0","description":"HSK CLI - 内网穿透 & 文件托管，支持 Windows/macOS/Linux 多平台","directories":{},"_nodeVersion":"22.16.0","dependencies":{"chalk":"^4.1.2","commander":"^11.0.0","node-fetch":"^2.7.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hsk-cli_0.3.0_1782735469423_0.3896451388607469","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"name":"@aweray/hsk-cli","version":"0.4.2","keywords":["hsk","tunnel","nat-traversal","file-hosting","cli","内网穿透","文件托管","ai-agent","remote-access"],"author":{"name":"HSK Team"},"license":"MIT","_id":"@aweray/hsk-cli@0.4.2","maintainers":[{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},{"name":"liuchanghuang","email":"liuchanghuang1@oray.com"},{"name":"ordev-npm","email":"dev@oray.com"}],"homepage":"https://hsk.oray.com","bin":{"hsk-cli":"bin/hsk-cli.js"},"dist":{"shasum":"4f2e2badbbbd514b49618b9faa7b13ac9a825b5a","tarball":"https://registry.npmjs.org/@aweray/hsk-cli/-/hsk-cli-0.4.2.tgz","fileCount":17,"integrity":"sha512-qzOh1rRyU7K1nzGm2HKk+GS7oTeDfYLY4uvgq2738+As6vXio0+5IrtYuNrAJWJtl6ceg2/SUL45gkzvtfOoSw==","signatures":[{"sig":"MEQCIGWmuZO/5xrM2dR35AsGhUoqx+/vCTaJhA3I+a4dILalAiA0f/ZP85CgayPFUzqXOdGzjZYyEb/atLLt87InWSpmOQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57881},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"9bc28766f3cd9a6b5b2dffce2df92c9413b2d185","scripts":{"test":"echo \"Tests not implemented yet\" && exit 0"},"_npmUser":{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},"_npmVersion":"11.11.0","description":"HSK CLI - 内网穿透 & 文件托管，支持 Windows/macOS/Linux 多平台","directories":{},"_nodeVersion":"22.16.0","dependencies":{"chalk":"^4.1.2","commander":"^11.0.0","node-fetch":"^2.7.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hsk-cli_0.4.2_1782817863249_0.5529528645420017","host":"s3://npm-registry-packages-npm-production"}},"0.4.3":{"name":"@aweray/hsk-cli","version":"0.4.3","keywords":["hsk","tunnel","nat-traversal","file-hosting","cli","内网穿透","文件托管","ai-agent","remote-access"],"author":{"name":"HSK Team"},"license":"MIT","_id":"@aweray/hsk-cli@0.4.3","maintainers":[{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},{"name":"liuchanghuang","email":"liuchanghuang1@oray.com"},{"name":"ordev-npm","email":"dev@oray.com"}],"homepage":"https://hsk.oray.com","bin":{"hsk-cli":"bin/hsk-cli.js"},"dist":{"shasum":"bcefff3a50d4a985197865a85c9605692414720d","tarball":"https://registry.npmjs.org/@aweray/hsk-cli/-/hsk-cli-0.4.3.tgz","fileCount":20,"integrity":"sha512-vgFF68P3rCkYVLb2rR9Q1B22ffTDqyvBO1LH79KhOtAtZmARtqiu0s7Gfjfi9N+sl4vu+vOcdFxmB/tVgNyjTA==","signatures":[{"sig":"MEYCIQCOjX96Rn2HqUjx3fUM6+onAKtFOAfuo+cP6ZhmPZjzMQIhAJuj0SAeMeaJvWxQHILsa5FuGvwoLz39VytsNuZtVpBL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":75460},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"e43edc894626dea642124adaa2bbf47b9bce3b15","scripts":{"test":"npm run check","check":"node scripts/check-local.js"},"_npmUser":{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},"_npmVersion":"11.11.0","description":"HSK CLI - 内网穿透 & 文件托管，支持 Windows/macOS/Linux 多平台","directories":{},"_nodeVersion":"22.16.0","dependencies":{"chalk":"^4.1.2","commander":"^11.0.0","node-fetch":"^2.7.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hsk-cli_0.4.3_1782972906202_0.6872962608781565","host":"s3://npm-registry-packages-npm-production"}},"0.4.4":{"name":"@aweray/hsk-cli","version":"0.4.4","keywords":["hsk","tunnel","nat-traversal","file-hosting","cli","内网穿透","文件托管","ai-agent","remote-access"],"author":{"name":"HSK Team"},"license":"MIT","_id":"@aweray/hsk-cli@0.4.4","maintainers":[{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},{"name":"wenzewoo","email":"wenzewoo@gmail.com"},{"name":"liuchanghuang","email":"liuchanghuang1@oray.com"},{"name":"ordev-npm","email":"dev@oray.com"}],"homepage":"https://hsk.oray.com","bin":{"hsk-cli":"bin/hsk-cli.js"},"dist":{"shasum":"706bf458c82d1f0d1c61222db6b4f0c21cf7312c","tarball":"https://registry.npmjs.org/@aweray/hsk-cli/-/hsk-cli-0.4.4.tgz","fileCount":20,"integrity":"sha512-rCR7fAxSyASPAZvqnk3Yu2/aFWYSMAecOccaQyCLTxAfhOMOzm1MLAm73rpwLdLZmuaQNg2eSo/QW/t6JfZh8Q==","signatures":[{"sig":"MEUCIAnXob1Tz6UYy8Vv+KdybYMx6PTrGxsC8fA8DxGyhiupAiEAsSZYa5SjlmhOXSRAbcbK6XEauTJUrbNECvHDsTfcCnk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":76835},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"4895e2a0f5834f062210c9273d4344de19051f8f","scripts":{"test":"npm run check","check":"node scripts/check-local.js"},"_npmUser":{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},"_npmVersion":"11.11.0","description":"HSK CLI - 内网穿透 & 文件托管，支持 Windows/macOS/Linux 多平台","directories":{},"_nodeVersion":"22.16.0","dependencies":{"chalk":"^4.1.2","commander":"^11.0.0","node-fetch":"^2.7.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hsk-cli_0.4.4_1783515324078_0.9701978964470972","host":"s3://npm-registry-packages-npm-production"}},"0.4.5":{"name":"@aweray/hsk-cli","version":"0.4.5","keywords":["hsk","tunnel","nat-traversal","file-hosting","cli","内网穿透","文件托管","ai-agent","remote-access"],"author":{"name":"HSK Team"},"license":"MIT","_id":"@aweray/hsk-cli@0.4.5","maintainers":[{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},{"name":"wenzewoo","email":"wenzewoo@gmail.com"},{"name":"liuchanghuang","email":"liuchanghuang1@oray.com"},{"name":"ordev-npm","email":"dev@oray.com"}],"homepage":"https://hsk.oray.com","bin":{"hsk-cli":"bin/hsk-cli.js"},"dist":{"shasum":"74b6d63d275aac0fb9ac40fc3600e3ce665737c3","tarball":"https://registry.npmjs.org/@aweray/hsk-cli/-/hsk-cli-0.4.5.tgz","fileCount":20,"integrity":"sha512-ggzCznQwCNQ0LyblVAst7G/2HFMETR/ea+DYzxP+8BJJvCSF/GdQHfLxuPEADhfsYnJB/zsUQc8N2LEfijgICA==","signatures":[{"sig":"MEYCIQCodGmqdbbSGxBvUVYPdfHkSFdUXsl58mI2ZnoNFRxjmAIhAOTMQ929G14Nvcr9FfV3oTukJPrN8kC6SRjJirxaUoN2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77268},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"7a96c7b2e0264158cc3c9d0372847f9a1eb44025","scripts":{"test":"npm run check","check":"node scripts/check-local.js"},"_npmUser":{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},"_npmVersion":"11.11.0","description":"HSK CLI - 内网穿透 & 文件托管，支持 Windows/macOS/Linux 多平台","directories":{},"_nodeVersion":"22.16.0","dependencies":{"chalk":"^4.1.2","commander":"^11.0.0","node-fetch":"^2.7.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hsk-cli_0.4.5_1786590495746_0.6181772007617494","host":"s3://npm-registry-packages-npm-production"}},"0.4.9":{"name":"@aweray/hsk-cli","version":"0.4.9","keywords":["hsk","tunnel","nat-traversal","file-hosting","cli","内网穿透","文件托管","ai-agent","remote-access"],"author":{"name":"HSK Team"},"license":"MIT","_id":"@aweray/hsk-cli@0.4.9","maintainers":[{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},{"name":"wenzewoo","email":"wenzewoo@gmail.com"},{"name":"liuchanghuang","email":"liuchanghuang1@oray.com"},{"name":"ordev-npm","email":"dev@oray.com"}],"homepage":"https://hsk.oray.com","bin":{"hsk-cli":"bin/hsk-cli.js"},"dist":{"shasum":"feabc78bc6ba9e8458b332557d9cd98c554a7b1c","tarball":"https://registry.npmjs.org/@aweray/hsk-cli/-/hsk-cli-0.4.9.tgz","fileCount":22,"integrity":"sha512-HWcc/6cfwAgtO9tick1UV4J7pQ/S5rq1BwpovHrx6CDNLCrJxrGd5WmA79irZeOArJB/bCOne6LOel2wTG7m3Q==","signatures":[{"sig":"MEUCIQCXxHqhenOTYfl3fpbDzCQCwbEeuzLyJ8M+uq6FtIrcjQIgarSxMQcx+HBwju+vVgMjv2yhCzPD59X9cbO64ZzJ7AE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":95704},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"ce21702d196989929bba72cef171473f6f614756","scripts":{"test":"npm run check","check":"node scripts/check-local.js"},"_npmUser":{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},"_npmVersion":"11.11.0","description":"HSK CLI - 内网穿透 & 文件托管，支持 Windows/macOS/Linux 多平台","directories":{},"_nodeVersion":"22.16.0","dependencies":{"chalk":"^4.1.2","commander":"^11.0.0","node-fetch":"^2.7.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hsk-cli_0.4.9_1786616393804_0.580647821593357","host":"s3://npm-registry-packages-npm-production"}},"0.4.12":{"name":"@aweray/hsk-cli","version":"0.4.12","keywords":["hsk","tunnel","nat-traversal","file-hosting","cli","内网穿透","文件托管","ai-agent","remote-access"],"author":{"name":"HSK Team"},"license":"MIT","_id":"@aweray/hsk-cli@0.4.12","maintainers":[{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},{"name":"wenzewoo","email":"wenzewoo@gmail.com"},{"name":"liuchanghuang","email":"liuchanghuang1@oray.com"},{"name":"ordev-npm","email":"dev@oray.com"}],"homepage":"https://hsk.oray.com","bin":{"hsk-cli":"bin/hsk-cli.js"},"dist":{"shasum":"bc08c1656e91b9711e8f5b2e096bff86a4361153","tarball":"https://registry.npmjs.org/@aweray/hsk-cli/-/hsk-cli-0.4.12.tgz","fileCount":22,"integrity":"sha512-FZsBoo8bHtgzMlsOfqHty/hXBSSsFTCiEPwDP2qR9IFfVAY47d+OGwChmZkk+mquhX4SK65E9jBhuCdWA70LrQ==","signatures":[{"sig":"MEUCIAOWvCZgLR9+fwecNV41YuF2Y/BDT3jEjn6+ve85+BLCAiEAkwufE3gOjxXaeMBHc0WEWvSJCYH+ctK3ZVWwX4q+HUU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":96712},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"fee16afe73aacb09b719346f17b61f532fd87522","scripts":{"test":"npm run check","check":"node scripts/check-local.js"},"_npmUser":{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},"_npmVersion":"11.11.0","description":"HSK CLI - 内网穿透 & 文件托管，支持 Windows/macOS/Linux 多平台","directories":{},"_nodeVersion":"24.19.0","dependencies":{"chalk":"^4.1.2","commander":"^11.0.0","node-fetch":"^2.7.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hsk-cli_0.4.12_1786694493377_0.9212641717910062","host":"s3://npm-registry-packages-npm-production"}},"0.4.13":{"name":"@aweray/hsk-cli","version":"0.4.13","keywords":["hsk","tunnel","nat-traversal","file-hosting","cli","内网穿透","文件托管","ai-agent","remote-access"],"author":{"name":"HSK Team"},"license":"MIT","_id":"@aweray/hsk-cli@0.4.13","maintainers":[{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},{"name":"wenzewoo","email":"wenzewoo@gmail.com"},{"name":"liuchanghuang","email":"liuchanghuang1@oray.com"},{"name":"ordev-npm","email":"dev@oray.com"}],"homepage":"https://hsk.oray.com","bin":{"hsk-cli":"bin/hsk-cli.js"},"dist":{"shasum":"eecbdb2853591c7efed0782251ba29e7d9e9f18a","tarball":"https://registry.npmjs.org/@aweray/hsk-cli/-/hsk-cli-0.4.13.tgz","fileCount":24,"integrity":"sha512-1VKrgk4zavviuLCe/+Y6cxKvgUEc7asMOvnODK3QP8tT3knVYjS5L9cgG6JrUh1aet+bVlC8gd8CQtX2G7gkxA==","signatures":[{"sig":"MEYCIQD3EMX4f7hXpGLfzjhOBBAz3s+ZdmyW3fCJT7J7jrW1/AIhAPzUgV4xCQfb9DYXodFpgwgkJTSBMa9CSgkGLUcz1C5T","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":115647},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"f82d1c015f05135ef8eb0ce28476471b9daf1007","scripts":{"test":"npm run check","check":"node scripts/check-local.js"},"_npmUser":{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},"_npmVersion":"11.11.0","description":"HSK CLI - 内网穿透 & 文件托管，支持 Windows/macOS/Linux 多平台","directories":{},"_nodeVersion":"24.19.0","dependencies":{"chalk":"^4.1.2","commander":"^11.0.0","node-fetch":"^2.7.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hsk-cli_0.4.13_1787560119884_0.8721581223744588","host":"s3://npm-registry-packages-npm-production"}},"0.7.11":{"name":"@aweray/hsk-cli","version":"0.7.11","keywords":["hsk","tunnel","nat-traversal","file-hosting","cli","内网穿透","文件托管","ai-agent","remote-access"],"author":{"name":"HSK Team"},"license":"MIT","_id":"@aweray/hsk-cli@0.7.11","maintainers":[{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},{"name":"wenzewoo","email":"wenzewoo@gmail.com"},{"name":"liuchanghuang","email":"liuchanghuang1@oray.com"},{"name":"ordev-npm","email":"dev@oray.com"}],"homepage":"https://hsk.oray.com","bin":{"hsk-cli":"bin/hsk-cli.js"},"dist":{"shasum":"bd6fef3ba6dc3d4a9bd3ccaae2591f9872d2903d","tarball":"https://registry.npmjs.org/@aweray/hsk-cli/-/hsk-cli-0.7.11.tgz","fileCount":41,"integrity":"sha512-UfOQcqC+MsB+wjFhvxzu7PD0D8cCM7yPr7ZuzY0ZG2mSFZH3zNTXhi7XBMuYzo6IrTEIrg3Zr5Oh1J91rEhwoQ==","signatures":[{"sig":"MEUCIGevRspXVO/JsetfrLSAFjSWEhtZ/j936/HiMS8GSsoaAiEAs9WivaH137XJ+tzo4Sz7eLuTbgQ08WntiOC87KaZZO8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIBj5Rc1LhbnHA6W88vTj6BgXnlmwW5iFNB/c5vO5/6XBAiBc5MW+wB8M0IIdiQI0p1Nrkaqovi1YSZQn9wl1B6PW9g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":223701},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"56b7ec8a3b4aa33f4a7c8b6883248258b1d2f229","scripts":{"test":"npm run check","check":"node scripts/check-local.js && node scripts/check-copy.js && node scripts/check-copy-docs.js","test:unit":"node --test \"test/**/*.test.js\"","check-copy":"node scripts/check-copy.js","postinstall":"node scripts/postinstall.js","sync-templates":"node scripts/sync-templates.js","check-copy-docs":"node scripts/check-copy-docs.js","gen-capabilities":"node scripts/gen-capabilities.js","render-copy-docs":"node scripts/render-copy-docs.js","release:inject-version":"node scripts/release-inject-version.js"},"_npmUser":{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},"_npmVersion":"11.11.0","description":"花生壳CLI - 内网穿透 & 文件托管，支持 Windows/macOS/Linux 多平台","directories":{},"_nodeVersion":"24.19.0","dependencies":{"chalk":"^4.1.2","commander":"^11.0.0","node-fetch":"^2.7.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hsk-cli_0.7.11_1788835607489_0.5412897984290348","host":"s3://npm-registry-packages-npm-production"}},"0.7.12":{"name":"@aweray/hsk-cli","version":"0.7.12","keywords":["hsk","tunnel","nat-traversal","file-hosting","cli","内网穿透","文件托管","ai-agent","remote-access"],"author":{"name":"HSK Team"},"license":"MIT","_id":"@aweray/hsk-cli@0.7.12","maintainers":[{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},{"name":"wenzewoo","email":"wenzewoo@gmail.com"},{"name":"liuchanghuang","email":"liuchanghuang1@oray.com"},{"name":"ordev-npm","email":"dev@oray.com"}],"homepage":"https://hsk.oray.com","bin":{"hsk-cli":"bin/hsk-cli.js"},"dist":{"shasum":"ec7547448bff9117ebb565c4f131e1696db668d6","tarball":"https://registry.npmjs.org/@aweray/hsk-cli/-/hsk-cli-0.7.12.tgz","fileCount":41,"integrity":"sha512-lUMxpjXVKPNXe5uEbLjG9TI2utMu8iD2nYirl1jCnK8Q10Zvvkbr3uiMvq+ToIPMY5eRBtml3UF8qhC64nc1TA==","signatures":[{"sig":"MEYCIQD3P+z4FRR+I6nuwRFztpAk6fomQS6xlj02LWIDxniDDQIhAKDW6OEFo3GCNb0u5R1pXN620pAEQJQ++VPFtoMXbDN1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDLn/u7u6H75zAccXbjVGZLpCTPdAXYWU4YU2dHhD8MdwIhAMfH9iMcoDPsnpmUvUFZT0Fghn+IhBEi1g/l+CSJi0bK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":223701},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"fdd343bffc4a02e6517ab252b9fc8232e1a5a721","scripts":{"test":"npm run check","check":"node scripts/check-local.js && node scripts/check-copy.js && node scripts/check-copy-docs.js","test:unit":"node --test \"test/**/*.test.js\"","check-copy":"node scripts/check-copy.js","postinstall":"node scripts/postinstall.js","sync-templates":"node scripts/sync-templates.js","check-copy-docs":"node scripts/check-copy-docs.js","gen-capabilities":"node scripts/gen-capabilities.js","render-copy-docs":"node scripts/render-copy-docs.js","release:inject-version":"node scripts/release-inject-version.js"},"_npmUser":{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},"_npmVersion":"11.11.0","description":"花生壳CLI - 内网穿透 & 文件托管，支持 Windows/macOS/Linux 多平台","directories":{},"_nodeVersion":"24.19.0","dependencies":{"chalk":"^4.1.2","commander":"^11.0.0","node-fetch":"^2.7.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hsk-cli_0.7.12_1788860889671_0.9323026783703763","host":"s3://npm-registry-packages-npm-production"}},"0.7.13":{"name":"@aweray/hsk-cli","version":"0.7.13","keywords":["hsk","tunnel","nat-traversal","file-hosting","cli","内网穿透","文件托管","ai-agent","remote-access"],"author":{"name":"HSK Team"},"license":"MIT","_id":"@aweray/hsk-cli@0.7.13","maintainers":[{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},{"name":"wenzewoo","email":"wenzewoo@gmail.com"},{"name":"liuchanghuang","email":"liuchanghuang1@oray.com"},{"name":"ordev-npm","email":"dev@oray.com"}],"homepage":"https://hsk.oray.com","bin":{"hsk-cli":"bin/hsk-cli.js"},"dist":{"shasum":"0d7a4e7ba148f59a0d1e36e25841ef95a7f06457","tarball":"https://registry.npmjs.org/@aweray/hsk-cli/-/hsk-cli-0.7.13.tgz","fileCount":41,"integrity":"sha512-iMWxA0TqZChFYhGUsT9yNffPxPX2mmr6Im3A6WX+F3u7LfXjs009Pnq03wMnz91t3sdbk9/B2edOUh5PAXodnA==","signatures":[{"sig":"MEUCIQCcwj4qvbkV3UA7MdfLvjkPgFe9RwWkcPPqBmeKu941vQIgVb3dNOn9aOFmJE2YTSjYQbAXR/PPO4U9vYMACHKQ59w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCICMSdo3ZEfqOEHnnBLzXu+vE4UD14W0dJfdPUE6Qva0sAiEAzj5InEdygFRKQUGgxUrWX5+y7NVcepdtusfM4WFVH70=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":223701},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"6c35a17d81ebd0edd2aef909f7d936e43023d173","scripts":{"test":"npm run check","check":"node scripts/check-local.js && node scripts/check-copy.js && node scripts/check-copy-docs.js","test:unit":"node --test \"test/**/*.test.js\"","check-copy":"node scripts/check-copy.js","postinstall":"node scripts/postinstall.js","sync-templates":"node scripts/sync-templates.js","check-copy-docs":"node scripts/check-copy-docs.js","gen-capabilities":"node scripts/gen-capabilities.js","render-copy-docs":"node scripts/render-copy-docs.js","release:inject-version":"node scripts/release-inject-version.js"},"_npmUser":{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},"_npmVersion":"11.11.0","description":"花生壳CLI - 内网穿透 & 文件托管，支持 Windows/macOS/Linux 多平台","directories":{},"_nodeVersion":"24.19.0","dependencies":{"chalk":"^4.1.2","commander":"^11.0.0","node-fetch":"^2.7.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hsk-cli_0.7.13_1788866784285_0.45505354604189674","host":"s3://npm-registry-packages-npm-production"}},"0.7.23":{"name":"@aweray/hsk-cli","version":"0.7.23","keywords":["hsk","tunnel","nat-traversal","file-hosting","cli","内网穿透","文件托管","ai-agent","remote-access"],"author":{"name":"HSK Team"},"license":"MIT","_id":"@aweray/hsk-cli@0.7.23","maintainers":[{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},{"name":"wenzewoo","email":"wenzewoo@gmail.com"},{"name":"liuchanghuang","email":"liuchanghuang1@oray.com"},{"name":"ordev-npm","email":"dev@oray.com"}],"homepage":"https://hsk.oray.com","bin":{"hsk-cli":"bin/hsk-cli.js"},"dist":{"shasum":"16db3b59beb435eb85714dac228ab0c0165e6c7f","tarball":"https://registry.npmjs.org/@aweray/hsk-cli/-/hsk-cli-0.7.23.tgz","fileCount":48,"integrity":"sha512-/4d3gVxca4pu5+ip6qiUfLCYIrAEi9TrBARwCVT/n+vUo35f4KDVcz7I0MyzgvC+wsbGO5jhwnrEfpFFcz5Hwg==","signatures":[{"sig":"MEUCIFOmOXpPHRkEhs1K/tb1gM9DeGyTrUqrL0R0hYbKNaUIAiEAhZsjxHoCcCI2BCZTpsz09Pu7MerjiRL6WFe008ZDvw4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIAlr40dVWqbjwITSTBfjgmScrpssR9+GbfQB+mXPjPPAAiEAqazA27ctCt43aeh753h5FViI35hWGv9qcBCna3BhSVU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":287201},"main":"index.js","engines":{"node":">=16.0.0"},"gitHead":"5b524a682eba149d6f1fac5c064bb975e9e85d2d","scripts":{"test":"npm run check","check":"node scripts/check-local.js && node scripts/check-copy.js && node scripts/check-copy-docs.js","test:unit":"node --test \"test/**/*.test.js\"","check-copy":"node scripts/check-copy.js","postinstall":"node scripts/postinstall.js","sync-templates":"node scripts/sync-templates.js","check-copy-docs":"node scripts/check-copy-docs.js","gen-capabilities":"node scripts/gen-capabilities.js","render-copy-docs":"node scripts/render-copy-docs.js","release:inject-version":"node scripts/release-inject-version.js"},"_npmUser":{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},"_npmVersion":"11.11.0","description":"花生壳CLI - 内网穿透 & 文件托管，支持 Windows/macOS/Linux 多平台","directories":{},"_nodeVersion":"24.19.0","dependencies":{"chalk":"^4.1.2","commander":"^11.0.0","node-fetch":"^2.7.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hsk-cli_0.7.23_1789541055487_0.0395865362137946","host":"s3://npm-registry-packages-npm-production"}},"0.7.24":{"_id":"@aweray/hsk-cli@0.7.24","bin":{"hsk-cli":"bin/hsk-cli.js"},"dist":{"shasum":"0e521c18d30155f8263e6719b86b616fbb259cbd","tarball":"https://registry.npmjs.org/@aweray/hsk-cli/-/hsk-cli-0.7.24.tgz","fileCount":48,"integrity":"sha512-JhfRi1T72yJSrJRbPObOhPEIH9CL53MdOYcIjrlK/8CRMrYwQ3nl/7cWfyTGNRl5vlSwwKvNRMXRUbQvvTNT7Q==","signatures":[{"sig":"MEQCICibaK9r9HyGwlgpY0jgcEerfrCkEi76xJ0OKasR7hVoAiBbKvfKwngqFRL0qDttiVtuyB4cZdUpoobt0x3tr1mfpA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGx45BVblEz2rAAEBFepODSuvqXo7ZnS7EgURW+VGTwOAiEAmt/ILv6h7Xl17LWCg+S5zlBZTYyQhDZ6eKGpOijty1w="}],"unpackedSize":287142},"main":"index.js","name":"@aweray/hsk-cli","author":{"name":"HSK Team"},"engines":{"node":">=16.0.0"},"gitHead":"4c7537de79dc564f3d1a4b731f2d5472013a5457","license":"MIT","scripts":{"test":"npm run check","check":"node scripts/check-local.js && node scripts/check-copy.js && node scripts/check-copy-docs.js","test:unit":"node --test \"test/**/*.test.js\"","check-copy":"node scripts/check-copy.js","postinstall":"node scripts/postinstall.js","sync-templates":"node scripts/sync-templates.js","check-copy-docs":"node scripts/check-copy-docs.js","gen-capabilities":"node scripts/gen-capabilities.js","render-copy-docs":"node scripts/render-copy-docs.js","release:inject-version":"node scripts/release-inject-version.js"},"version":"0.7.24","_npmUser":{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},"homepage":"https://hsk.oray.com","keywords":["hsk","tunnel","nat-traversal","file-hosting","cli","内网穿透","文件托管","ai-agent","remote-access"],"_npmVersion":"11.11.0","description":"花生壳CLI - 内网穿透 & 文件托管，支持 Windows/macOS/Linux 多平台","directories":{},"maintainers":[{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},{"name":"wenzewoo","email":"wenzewoo@gmail.com"},{"name":"liuchanghuang","email":"liuchanghuang1@oray.com"},{"name":"ordev-npm","email":"dev@oray.com"}],"_nodeVersion":"24.19.0","dependencies":{"chalk":"^4.1.2","commander":"^11.0.0","node-fetch":"^2.7.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hsk-cli_0.7.24_1789543534788_0.6870313097652543"}}},"time":{"created":"2026-06-29T09:32:01.872Z","modified":"2026-09-16T07:25:35.037Z","0.2.2":"2026-06-29T09:32:02.206Z","0.3.0":"2026-06-29T12:17:49.571Z","0.4.2":"2026-06-30T11:11:03.401Z","0.4.3":"2026-07-02T06:15:06.347Z","0.4.4":"2026-07-08T12:55:24.214Z","0.4.5":"2026-08-13T03:08:15.928Z","0.4.9":"2026-08-13T10:19:53.957Z","0.4.12":"2026-08-14T08:01:33.532Z","0.4.13":"2026-08-24T08:28:40.025Z","0.7.11":"2026-09-08T02:46:47.629Z","0.7.12":"2026-09-08T09:48:09.751Z","0.7.13":"2026-09-08T11:26:24.374Z","0.7.23":"2026-09-16T06:44:15.631Z","0.7.24":"2026-09-16T07:25:34.869Z"},"author":{"name":"HSK Team"},"license":"MIT","homepage":"https://hsk.oray.com","keywords":["hsk","tunnel","nat-traversal","file-hosting","cli","内网穿透","文件托管","ai-agent","remote-access"],"description":"花生壳CLI - 内网穿透 & 文件托管，支持 Windows/macOS/Linux 多平台","maintainers":[{"name":"zhuozhibin","email":"zhuozhibin_8315@oray.com"},{"name":"wenzewoo","email":"wenzewoo@gmail.com"},{"name":"liuchanghuang","email":"liuchanghuang1@oray.com"},{"name":"ordev-npm","email":"dev@oray.com"}],"readme":"# 花生壳CLI\n\n> 花生壳CLI — 零配置公网预览工具。一键内网穿透、文件托管，支持 Windows / macOS / Linux 多平台。\n\n[![npm version](https://img.shields.io/npm/v/@aweray/hsk-cli)](https://www.npmjs.com/package/@aweray/hsk-cli)\n[![Node.js](https://img.shields.io/node/v/@aweray/hsk-cli)](https://nodejs.org/)\n[![License](https://img.shields.io/npm/l/@aweray/hsk-cli)](LICENSE)\n\n## Features\n\n- **多平台自动适配** — 自动检测操作系统和架构，下载对应原生客户端二进制\n- **内网穿透** — 一键将本地服务暴露到公网，支持前台/后台两种保活模式\n- **文件托管** — 上传本地文件或目录（自动打包），获取公网下载链接\n- **构建部署** — `deploy` 命令一键完成 build → upload，原生二进制自动打包目录\n- **任务级 API Key** — `api-key` 保存/查看/清除 API Key，`file-hosting-bind` 凭 Key 自动认领资源\n- **资源复用** — 隧道支持 `--reuse` 检测，有效则复用，失效则重建\n- **AI 友好** — 支持 `--json` 结构化输出，便于 AI Agent 解析和自动化\n- **版本同步** — npm 包版本与原生二进制版本一致，自动匹配升级\n\n## Supported Platforms\n\n| Platform | Architectures |\n|----------|---------------|\n| macOS    | Intel (amd64), Apple Silicon (arm64) |\n| Linux    | amd64 |\n| Windows  | amd64 |\n\n## Installation\n\n**Requirements:** Node.js >= 16（硬下限，与 commander@11 对齐；推荐当前 LTS 18/20/22+）\n\n```bash\n# 全局安装\nnpm install -g @aweray/hsk-cli\n\n# 或 npx 免安装运行\nnpx @aweray/hsk-cli <command>\n```\n\n首次运行时，CLI 会自动检测当前平台并下载对应的原生客户端二进制到 `~/.hsk/bin/`。\n\n## Quick Start\n\n### 1. 预下载客户端\n\n```bash\nhsk-cli download\n```\n\n### 2. 文件托管（上传文件或目录）\n\n```bash\n# 上传单文件\nhsk-cli host ./document.pdf\n\n# 上传目录（原生二进制自动打包为 zip）\nhsk-cli host ./dist/\n\n# 指定入口文件（目录无 index.html 时）\nhsk-cli host ./dist/ --entry-file version.html\n```\n\n### 3. 构建并部署项目\n\n```bash\nhsk-cli deploy\n```\n\n自动执行 `npm run build` → 上传构建产物到文件托管。原生二进制自动打包目录。\n\n### 4. 启动内网穿透（前台保活）\n\n```bash\nhsk-cli tunnel --ip 127.0.0.1 --port 9000\n```\n\n按 `Ctrl+C` 停止隧道。\n\n### 5. 启动内网穿透（后台保活）\n\n```bash\nhsk-cli tunnel --ip 127.0.0.1 --port 9000 --detach\n```\n\n后台模式启动后 CLI 立即退出，隧道持续运行。使用 `tunnel list` / `tunnel stop` 管理。\n\n> 注意：`--detach` 仅适用于已自动认领（登录 / api-key，claimed:true）的场景；匿名/需用户浏览器认领的隧道须前台运行等待认领回调（认领监听窗口默认 1800s，可用 `--timeout` 调整）。\n\n---\n\n## Global Options\n\n| Option | Description |\n|--------|-------------|\n| `--format <format>` | 输出格式: `json`, `pretty`, `table`, `ndjson`, `csv` (默认: `pretty`) |\n| `--dry-run` | 预览模式，不执行实际操作 |\n| `--json` | `--format json` 的快捷方式 |\n\n---\n\n## Command Reference\n\n### Tunnel Management\n\n#### `tunnel` — 启动内网穿透\n\n```bash\nhsk-cli tunnel --ip <IP> --port <PORT> [options]\n```\n\n| Option | Required | Description |\n|--------|----------|-------------|\n| `--ip <ip>` | 是 | 本地服务 IP 地址 |\n| `--port <port>` | 是 | 本地服务端口（1-65535） |\n| `--arch <arch>` | 否 | 强制指定客户端架构: `win32`, `win64`, `macos-x64`, `macos-arm64`, `linux-x64`, `linux-arm64` |\n| `--force-download` | 否 | 强制重新下载客户端二进制 |\n| `--detach` | 否 | 后台模式，CLI 立即退出，隧道持续运行（仅自动认领场景；匿名认领须前台） |\n| `--reuse` | 否 | 复用已有隧道，不存在则创建 |\n| `--timeout <seconds>` | 否 | 匿名认领前台等待秒数（默认 120，上限 120，只影响认领等待，不影响隧道保活） |\n| `--json` | 否 | 以 JSON 格式输出 |\n\n#### `tunnel list` — 查看后台隧道\n\n```bash\nhsk-cli tunnel list\n```\n\n显示所有后台运行的隧道，包括 PID、本地目标、启动时间和日志路径。自动清理已停止隧道的残留记录。\n\n#### `tunnel stop` — 停止隧道\n\n```bash\n# 停止指定 PID\nhsk-cli tunnel stop --pid <PID>\n\n# 停止全部\nhsk-cli tunnel stop --all\n```\n\n### File Hosting\n\n#### `host` — 文件托管\n\n```bash\nhsk-cli host <fileOrDirPath> [options]\n```\n\n支持上传单文件或目录。传入目录时，原生二进制自动打包为 zip 后上传。\n\n**上传后自动认领**：上传成功后自动检测 API Key（`--api-key` 参数 > 本地配置 `~/.hsk/api_key.json`），有 Key 则自动执行 `file-hosting-bind` 认领：\n- 认领成功 → 返回**真实资源链接**（资源页面，可直接访问，无需手动认领）\n- 认领失败 / 无 Key → 返回**认领页面链接** + 手动认领提示\n\n| Option | Required | Description |\n|--------|----------|-------------|\n| `<fileOrDirPath>` | 是 | 本地文件或目录路径 |\n| `--open` | 否 | 上传完成后自动打开浏览器进行认领（仅未自动认领时生效） |\n| `--api-key <key>` | 否 | API Key（上传后自动认领，缺省从 `~/.hsk/api_key.json` 读取） |\n| `--no-bind` | 否 | 跳过上传后自动认领，仅上传 |\n| `--json` | 否 | 以 JSON 格式输出 |\n\n> 注意：**不支持更新已有资源**（`--resource-id` 更新流程已下线）。每次执行 `host`/`file-hosting` 都会发布新资源（新 public_url），内容更新请重新发布。\n\n### Deploy\n\n#### `deploy` — 构建并部署项目\n\n```bash\nhsk-cli deploy [options]\n```\n\n一键执行：**构建** → **上传** 到文件托管。原生二进制自动处理目录打包。\n\n| Option | Description |\n|--------|-------------|\n| `--build-cmd <cmd>` | 构建命令（默认: `npm run build`） |\n| `--build-dir <dir>` | 构建输出目录（默认: `dist`） |\n| `--no-build` | 跳过构建，直接上传现有目录 |\n| `--open` | 上传完成后自动打开浏览器 |\n| `--json` | 以 JSON 格式输出 |\n\n> 注意：每次 `deploy` 都会发布新资源（不支持 `--resource-id` 更新已有资源）。\n\n**配置优先级**: 命令行参数 > 项目 `package.json` 的 `hsk.deploy` > 全局 `~/.hsk/config.json` 的 `deploy` > 默认配置\n\n**项目配置示例（`package.json`）**:\n\n```json\n{\n  \"scripts\": {\n    \"build\": \"vite build\"\n  },\n  \"hsk\": {\n    \"deploy\": {\n      \"buildCmd\": \"npm run build\",\n      \"buildDir\": \"dist\"\n    }\n  }\n}\n```\n\n### Task-Level API Key\n\n#### `api-key` — 管理任务级 API Key 配置\n\n```bash\nhsk-cli api-key <set|get|clear> [options]\n```\n\n管理 `~/.hsk/api_key.json`（格式：`{\"file_hosting\": \"<key>\"}`，与原生二进制一致）。\n\n| Option | Required | Description |\n|--------|----------|-------------|\n| `<action>` | 是 | `set`（保存）/ `get`（查看）/ `clear`（清除） |\n| `--scene <scene>` | 否 | 场景（默认: `file_hosting`） |\n| `--key <key>` | set 时必填 | API Key（如 `ph_key_xxx`） |\n| `--json` | 否 | 以 JSON 格式输出 |\n\n```bash\n# 保存 key\nhsk-cli api-key set --scene file_hosting --key ph_key_xxx\n\n# 查看 key\nhsk-cli api-key get --scene file_hosting\n\n# 清除 key\nhsk-cli api-key clear --scene file_hosting\n```\n\n#### `file-hosting-bind` — 凭 API Key 认领资源\n\n```bash\nhsk-cli file-hosting-bind --resource-id <id> --verify_code <code> [options]\n```\n\n凭 API Key 调 `PUT /agent/ai-resource/file-hosting/:id/bind-owner` 认领已上传的 file-hosting 资源（透传原生二进制）。\n\n| Option | Required | Description |\n|--------|----------|-------------|\n| `--resource-id <id>` | 是 | 资源 ID（上传结果中的 `resource_id`） |\n| `--verify_code <code>` | 是 | 验证码（上传结果中的 `verify_code`） |\n| `--api-key <key>` | 否 | API Key，缺省从 `~/.hsk/api_key.json` 读取；传入时优先于配置文件 |\n| `--json` | 否 | 以 JSON 格式输出 |\n\n### Authentication\n\n#### `auth` — 账号认证\n\n```bash\nhsk-cli auth <login|status|logout> [options]\n```\n\n账号认证（login/status/logout）委托给原生二进制，凭据落盘 `~/.hsk/auth.json`。\n\n| Option | Required | Description |\n|--------|----------|-------------|\n| `<action>` | 否 | `login` / `status` / `logout`（默认 `status`） |\n| `--method <method>` | 否 | 登录通道：`loopback` / `token` |\n| `--token <token>` | 否 | 手动登录 token（`--method token` 通道） |\n| `--no-wait` | 否 | loopback 下立即返回授权 URL，后台继续监听回调 |\n| `--timeout <sec>` | 否 | 授权等待超时秒数 |\n| `--json` | 否 | 以 JSON 格式输出 |\n\n`auth status` 输出 `authenticated` 布尔值及 `status`（`authenticated` / `pending_callback` / `pending_device` / `pending_claim` / `none`）。\n\n### Engine\n\n#### `engine` — 本机引擎管理（系统级安装）\n\n```bash\nhsk-cli engine [install] [options]\n```\n\n系统级安装 hsk-ng 本机引擎（长期隧道的保活载体）。命令委托给原生二进制（Go 侧状态机 S0~S10）：逐步 JSON 输出到 stderr，最终 Result 到 stdout。**需已登录**；非交互环境必须加 `--yes` 跳过系统级安装确认门。\n\n| Option | Required | Description |\n|--------|----------|-------------|\n| `<action>` | 否 | 子命令（默认 `install`） |\n| `--version <ver>` | 否 | 显式指定客户端版本（默认 client-versions 最新） |\n| `--yes` | 否 | 跳过系统级安装确认门（非交互环境必需） |\n| `--method <method>` | 否 | 登录通道：`loopback` / `token`（未登录时生效） |\n| `--timeout <sec>` | 否 | 登录等待超时秒数（透传） |\n| `--installer <path>` | 否 | 离线安装包路径（跳过下载，仍做 sha256 校验） |\n| `--api <url>` | 否 | 覆盖控制台 API 基址（仅本次安装流程生效） |\n| `--elevation <level>` | 否 | `available` 表示已以特权运行（S7 跳过提权探测） |\n| `--json` | 否 | 以 JSON 格式输出 |\n\n退出码：`0` 成功；`1` 通用错误（含非交互无 `--yes` 的 `CONFIRMATION_REQUIRED`）；`4` 认证类错误（如未登录的 `AUTH_CANCELLED`）。\n\n### System\n\n#### `status` — 检查资源状态\n\n```bash\nhsk-cli status [--json]\n```\n\n检查已发布的隧道资源状态（进程存活 + URL 可访问）。\n\n#### `download` — 预下载客户端\n\n```bash\nhsk-cli download [--arch <arch>]\n```\n\n#### `update` — 升级 npm 包并同步客户端二进制\n\n```bash\nhsk-cli update [--arch <arch>] [--force]\n```\n\n全局安装时若 registry 有新版，会执行 `npm i -g @aweray/hsk-cli@latest --no-audit --no-fund`（POSIX 附带清空 HTTP_PROXY 前缀，Windows 直接给可执行命令），然后从**磁盘上的新包**重读 `versions.json` 再下载二进制，并自动重生成 `~/.hsk/AGENTS.md`、只刷新**已注册**的 skill 副本（不扩未装智能体）。若 PATH 上还有其它全局前缀的 `hsk-cli`，会打印对应 PATH 前置的 `npm i -g` 指引。npx 运行不会执行 `npm i -g`，会打印 `npx -y @aweray/hsk-cli@latest` 指引。\n\n#### `doctor` — 环境自检\n\n```bash\nhsk-cli doctor [--fix] [--format json]\n```\n\n检查 Node 版本、PATH、`~/.hsk` 可写、二进制、AGENTS.md、skill 注册、连通性、npm 包是否最新。`--fix` 只做本地修复（`download` / 重生成 AGENTS.md / 刷新已注册的 skill 副本，并补注册缺失副本），**不会**执行 `npm i -g`，也不会为未安装的智能体新建配置根。skill 单独刷新可用 `hsk-cli skill --refresh`（只更新已注册副本），补注册用 `hsk-cli skill --register-all`。\n\n#### `platform` — 显示平台信息\n\n```bash\nhsk-cli platform\n```\n\n---\n\n## Examples\n\n### 启动内网穿透并管理\n\n```bash\n# 前台模式（按 Ctrl+C 停止）\nhsk-cli tunnel --ip 127.0.0.1 --port 9000\n\n# 后台模式\nhsk-cli tunnel --ip 127.0.0.1 --port 9000 --detach\n\n# 查看后台隧道\nhsk-cli tunnel list\n\n# 停止全部后台隧道\nhsk-cli tunnel stop --all\n\n# 复用已有隧道（有效则复用，失效则重建）\nhsk-cli tunnel --ip 127.0.0.1 --port 9000 --reuse\n```\n\n### 上传文件或目录并自动认领\n\n```bash\n# 上传单文件\nhsk-cli host ./report.pdf --open\n\n# 上传目录（原生二进制自动打包为 zip）\nhsk-cli host ./dist/ --open\n```\n\n### 任务级 API Key 认领（AI Agent）\n\n```bash\n# 1. 上传资源，记录输出中的 resource_id 与 verify_code\nhsk-cli host ./dist/ --format json\n\n# 2. 保存 API Key\nhsk-cli api-key set --scene file_hosting --key ph_key_xxx\n\n# 3. 认领资源（也可直接传 --api-key <key>，参数优先于配置文件）\nhsk-cli file-hosting-bind --resource-id <id> --verify_code <code>\n```\n\n### 跨平台预下载\n\n```bash\n# 在 macOS 上预下载 Linux 版本\nhsk-cli download --arch linux-x64\n```\n\n### JSON 输出（AI 友好）\n\n```bash\nhsk-cli tunnel --ip 127.0.0.1 --port 9000 --json\nhsk-cli host ./document.pdf --json\nhsk-cli status --json\nhsk-cli api-key get --scene file_hosting --json\nhsk-cli file-hosting-bind --resource-id <id> --verify_code <code> --json\n```\n\n### 构建并部署\n\n```bash\n# 使用项目配置\nhsk-cli deploy\n\n# 命令行覆盖配置\nhsk-cli deploy --build-cmd \"yarn build\" --build-dir \"build\"\n\n# 跳过构建，直接上传现有目录\nhsk-cli deploy --no-build\n\n# 重新发布（不支持更新已有资源，每次发布生成新资源/新链接）\nhsk-cli deploy --open\n```\n\n---\n\n## Configuration\n\n### 项目配置（`package.json`）\n\n```json\n{\n  \"hsk\": {\n    \"deploy\": {\n      \"buildCmd\": \"npm run build\",\n      \"buildDir\": \"dist\"\n    }\n  }\n}\n```\n\n### 全局配置（`~/.hsk/config.json`）\n\n```json\n{\n  \"deploy\": {\n    \"buildCmd\": \"npm run build\",\n    \"buildDir\": \"dist\"\n  }\n}\n```\n\n### 环境变量\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `HSK_DOWNLOAD_URL` | 客户端二进制下载基地址 | 从 `versions.json` 读取 |\n| `HSK_FILE_HOSTING_API` | Ticket API 完整 URL，覆盖原生二进制默认 host | 原生二进制内置默认值 |\n| `HSK_NO_UPDATE_CHECK` | 设为 `1` 时禁用启动时的 npm 包更新检测 | 未设置 |\n| `HSK_UPDATE_CHECK_INTERVAL_HOURS` | 更新检测缓存新鲜度（小时） | `24` |\n| `HSK_NPM_REGISTRY` | 覆盖 npm registry（否则读 `npm_config_registry`，后台 worker 再回退 `npm config get registry`） | `https://registry.npmjs.org` |\n\n---\n\n## Logs\n\n- **macOS / Linux**: `~/.hsk/logs/`\n- **Windows**: `%USERPROFILE%\\.hsk\\logs\\`\n\n---\n\n## How It Works\n\n```\n┌─────────────────┐     ┌──────────────┐     ┌─────────────────┐\n│   hsk-cli npm   │ ──▶ │  versions.json │ ──▶ │  download binary  │\n│   package (node)│     │  (version map) │     │  ~/.hsk/bin/    │\n└─────────────────┘     └──────────────┘     └─────────────────┘\n         │\n         ▼\n┌─────────────────┐\n│  native binary  │  ← 实际执行内网穿透/文件托管\n│  (cross-platform)│\n└─────────────────┘\n```\n\n- **npm 包**（启动器）：提供命令行接口、平台检测、自动下载、版本管理、资源状态持久化\n- **versions.json**：定义 npm 包版本与原生二进制版本的映射关系\n- **原生二进制**：按平台编译（Go/Rust/C++），实际执行网络穿透和文件传输\n- **资源状态**：保存在 `{projectRoot}/.hsk/resources.json` 或 `~/.hsk/resources.json`\n\n---\n\n## Notes\n\n- During installation, the package automatically downloads the appropriate native binary for your operating system and architecture.\n- The CLI caches downloaded binaries in `~/.hsk/bin/`. No manual setup is required after installation.\n- The npm package version and native binary version are kept in sync. When you update the npm package, the corresponding binary will be downloaded automatically.\n- **前台模式（默认）**: CLI 启动客户端二进制作为子进程，实时输出日志，捕获到公网地址后持续运行。按 `Ctrl+C` 发送 `SIGTERM` 优雅停止。\n- **后台模式（`--detach`）**: CLI 启动子进程后使用 `detached: true` 解除父子绑定，立即退出。子进程在后台独立运行，日志写入 `~/.hsk/logs/`，PID 记录保存到 `~/.hsk/pids/`.\n- **Deploy**: `hsk-cli deploy` 执行 `build` → `upload` 两步。原生二进制自动打包目录，无需额外依赖.\n- **File Hosting**: `hsk-cli host` 支持单文件和目录上传。传入目录时，原生二进制自动打包为 zip.\n- **资源复用**: `hsk-cli tunnel --reuse` 先检测已有隧道（进程存活 + URL 可访问），有效则复用，失效则重新创建.\n- Enable `--dry-run` to preview operations without executing them.\n\n---\n\n## Changelog\n\nSee [CHANGELOG.md](CHANGELOG.md) for release history.\n\n## Contributing\n\nWe welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## License\n\nCopyright (c) 2026 Oray Inc. All rights reserved.\n","readmeFilename":"README.md"}