@unitsvc/cc-helper 1.0.10 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -661
- package/README-zh.md +155 -155
- package/README.md +155 -155
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +47 -44
package/dist/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var
|
|
2
|
+
"use strict";var ir=Object.create;var S=Object.defineProperty;var or=Object.getOwnPropertyDescriptor;var sr=Object.getOwnPropertyNames;var ar=Object.getPrototypeOf,cr=Object.prototype.hasOwnProperty;var lr=(e,n)=>{for(var r in n)S(e,r,{get:n[r],enumerable:!0})},F=(e,n,r,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of sr(n))!cr.call(e,t)&&t!==r&&S(e,t,{get:()=>n[t],enumerable:!(i=or(n,t))||i.enumerable});return e};var p=(e,n,r)=>(r=e!=null?ir(ar(e)):{},F(n||!e||!e.__esModule?S(r,"default",{value:e,enumerable:!0}):r,e)),fr=e=>F(S({},"__esModule",{value:!0}),e);var wr={};lr(wr,{ensureBinary:()=>W,getBinaryPath:()=>x,main:()=>Q,uninstall:()=>B});module.exports=fr(wr);var Y=require("child_process");var l=p(require("fs")),T=p(require("os")),$=p(require("path"));var b=p(require("os")),O=p(require("path")),pr={darwin:"darwin",linux:"linux",win32:"windows"},mr={x64:"amd64",arm64:"arm64"};function L(){let e=b.default.platform(),n=b.default.arch(),r=pr[e],i=mr[n];if(!r)throw new Error(`Unsupported platform: ${e}`);if(!i)throw new Error(`Unsupported arch: ${n}`);return{platform:r,arch:i}}var U=e=>e==="windows"?"cc-helper.exe":"cc-helper";function E(e,n,r){let i=e.replace(/^v/,"");return n==="windows"?`cc-helper_${i}_${n}_${r}.zip`:`cc-helper_${i}_${n}_${r}.tar.gz`}var x=()=>{let{platform:e}=L();return O.default.join(__dirname,"bin",U(e))};var h=p(require("fs")),Z=p(require("path")),M=p(require("http")),H=p(require("https"));async function k(e,n,r=3){for(let i=0;i<r;i++)try{await new Promise((t,o)=>{let m=(e.startsWith("https")?H.default:M.default).get(e,{headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"}},c=>{if(c.statusCode===301||c.statusCode===302){let d=c.headers.location;if(d){k(d,n,r).then(t).catch(o);return}}if(c.statusCode!==200){o(new Error(`HTTP ${c.statusCode}`));return}let s=Z.default.dirname(n);h.default.existsSync(s)||h.default.mkdirSync(s,{recursive:!0});let g=h.default.createWriteStream(n);c.pipe(g),g.on("finish",()=>{g.close(d=>{d?o(d):t()})}),g.on("error",d=>{h.default.unlinkSync(n),o(d)}),c.on("error",d=>{h.default.unlinkSync(n),o(d)})});m.setTimeout(3e4,()=>{m.destroy(),o(new Error("Timeout"))}),m.on("error",c=>{h.default.existsSync(n)&&h.default.unlinkSync(n),o(c)})});return}catch(t){if(h.default.existsSync(n)&&h.default.unlinkSync(n),i===r-1)throw t;console.log(`warn cc-helper retry ${i+1}/${r}`),await new Promise(o=>setTimeout(o,1e3*(i+1)))}}var f=p(require("fs")),u=p(require("path")),R=p(require("zlib"));async function dr(e,n){let r=0;for(;r+512<=e.length;){let i=e.subarray(r,r+512);if(i.every(c=>c===0))break;let t=i.subarray(0,100).toString().replace(/\0.*$/,""),o=i.subarray(345,500).toString().replace(/\0.*$/,"");o&&(t=`${o}/${t}`),t.startsWith("package/")&&(t=t.slice(8)),t=t.replace(/\//g,u.default.sep);let a=parseInt(i.subarray(124,136).toString().trim(),8)||0,m=i[156];if(r+=512,a>0&&t&&(m===0||m===48)){let c=u.default.join(n,t);await f.default.promises.mkdir(u.default.dirname(c),{recursive:!0}),await f.default.promises.writeFile(c,e.subarray(r,r+a)),r+=Math.ceil(a/512)*512}}}async function ur(e,n){await f.default.promises.mkdir(n,{recursive:!0});let r=await f.default.promises.readFile(e),i;try{i=R.default.unzipSync(r)}catch(t){throw new Error(`Failed to decompress tar.gz: ${t.message}`)}await dr(i,n)}async function gr(e,n){await f.default.promises.mkdir(n,{recursive:!0});let r=await f.default.promises.readFile(e);if(r.length<22)throw new Error(`Invalid ZIP: file too small (${r.length} bytes)`);let i=Buffer.from([80,75,5,6]),t=r.length-22;for(;t>=0&&!r.subarray(t,t+4).equals(i);)t--;if(t<0)throw new Error(`Invalid ZIP: missing end of central directory (file may be corrupted or incomplete, size: ${r.length} bytes)`);if(t+22>r.length)throw new Error("Invalid ZIP: truncated EOCD record");let o=r.readUInt32LE(t+16),a=r.readUInt32LE(t+12),m=o+a;if(o>=r.length||m>r.length)throw new Error(`Invalid ZIP: central directory out of bounds (cdOffset: ${o}, cdEnd: ${m}, fileSize: ${r.length})`);let c=Buffer.from([80,75,1,2]),s=o;for(;s<m;){if(s+46>r.length)throw new Error(`Invalid ZIP: truncated central directory at position ${s}`);if(!r.subarray(s,s+4).equals(c))throw new Error(`Invalid ZIP: invalid central directory signature at position ${s}`);let g=r.readUInt16LE(s+28),d=r.readUInt16LE(s+30),N=r.readUInt16LE(s+32),y=r.readUInt32LE(s+42),rr=r.readUInt32LE(s+20),yr=r.readUInt32LE(s+24),xr=r.readUInt16LE(s+10);if(s+46+g+d+N>r.length)throw new Error(`Invalid ZIP: truncated central directory entry at position ${s}`);let w=r.subarray(s+46,s+46+g).toString();if(s+=46+g+d+N,w.endsWith("/")){await f.default.promises.mkdir(u.default.join(n,w.replace(/\//g,u.default.sep)),{recursive:!0});continue}if(w=w.replace(/\//g,u.default.sep),y+30>r.length)throw new Error(`Invalid ZIP: local header out of bounds for ${w}`);let v=r.readUInt16LE(y+8),er=r.readUInt16LE(y+26),tr=r.readUInt16LE(y+28),I=y+30+er+tr,C=rr;if(I+C>r.length)throw new Error(`Invalid ZIP: truncated file data for ${w}`);let D=r.subarray(I,I+C),P=u.default.join(n,w);await f.default.promises.mkdir(u.default.dirname(P),{recursive:!0});try{if(v===8)await f.default.promises.writeFile(P,R.default.inflateRawSync(D));else if(v===0)await f.default.promises.writeFile(P,D);else throw new Error(`Unsupported compression method ${v} for ${w}`)}catch(nr){throw new Error(`Failed to decompress ${w}: ${nr.message}`)}}}async function q(e,n,r){r==="windows"?await gr(e,n):await ur(e,n)}function G(e,n){let r=u.default.join(e,n);if(f.default.existsSync(r))return r;for(let i of f.default.readdirSync(e)){let t=u.default.join(e,i,n);if(f.default.statSync(u.default.join(e,i)).isDirectory()&&f.default.existsSync(t))return t}throw new Error(`Binary ${n} not found`)}var K=p(require("https"));var A="next-bin",_="cc-helper";function j(e){return new Promise((n,r)=>{let i=K.default.get({hostname:"api.github.com",path:e,headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"}},t=>{let o="";t.on("data",a=>o+=a),t.on("end",()=>{t.statusCode!==200?r(new Error(`GitHub API error: ${t.statusCode}`)):n(JSON.parse(o))})});i.setTimeout(15e3,()=>{i.destroy(),r(new Error("GitHub API timeout"))}),i.on("error",r)})}async function J(){return(await j(`/repos/${A}/${_}/releases/latest`)).tag_name.replace(/^v/,"")}async function V(e,n){var t;let r=await j(`/repos/${A}/${_}/releases?per_page=10`),i=e==="windows"?`_${e}_${n}.zip`:`_${e}_${n}.tar.gz`;for(let o of r)if((t=o.assets)!=null&&t.some(a=>a.name.includes(i)))return o.tag_name.replace(/^v/,"");throw new Error(`No binary found for ${e}-${n}`)}function X(e,n,r,i){let t=e.startsWith("v")?e:`v${e}`,o=`https://github.com/${A}/${_}/releases/download/${t}/${E(e,n,r)}`;return i?`${i}/${o}`:o}async function z(e,n,r,i,t){let o=E(e,n,r),a=$.default.join(T.default.tmpdir(),o),m=X(e,n,r,t);console.log(`info cc-helper@${e} Installing for ${n}-${r}`),t&&console.log("info cc-helper Using proxy:",t);try{await k(m,a)}catch(s){throw t||console.log("warn cc-helper Download failed, try: npx @unitsvc/cc-helper --proxy enable"),s}let c=$.default.join(T.default.tmpdir(),`cc-helper_${Date.now()}`);l.default.mkdirSync(c,{recursive:!0});try{await q(a,c,n);let s=G(c,U(n)),g=$.default.dirname(i);l.default.existsSync(g)||l.default.mkdirSync(g,{recursive:!0}),l.default.existsSync(i)&&l.default.unlinkSync(i),l.default.copyFileSync(s,i),process.platform!=="win32"&&l.default.chmodSync(i,493),console.log("info cc-helper Installed to",i)}finally{let s=l.default.rmSync||l.default.rmdirSync;try{s(c,{recursive:!0,force:!0})}catch{}l.default.existsSync(a)&&l.default.unlinkSync(a)}}async function W(e=null,n){let{platform:r,arch:i}=L(),t=x();if(l.default.existsSync(t))return t;if(e)try{return await z(e,r,i,t,n),t}catch(a){if(!a.message.includes("404"))throw a;console.log(`warn cc-helper@${e} not available, using latest`)}let o=await J();try{await z(o,r,i,t,n)}catch(a){if(!a.message.includes("404"))throw a;o=await V(r,i),await z(o,r,i,t,n)}return t}function B(){let e=x(),n=$.default.dirname(e);l.default.existsSync(e)?(l.default.unlinkSync(e),console.log("info cc-helper Removed binary:",e)):console.log("info cc-helper No binary found"),l.default.existsSync(n)&&l.default.readdirSync(n).length===0&&l.default.rmdirSync(n),console.log("info cc-helper To complete uninstallation, run:"),console.log(" npm uninstall -g @unitsvc/cc-helper")}function hr(e){let n=[],r,i="https://edgeone.gh-proxy.org";for(let t=0;t<e.length;t++)e[t]==="--proxy"?t+1<e.length&&(e[t+1].startsWith("http://")||e[t+1].startsWith("https://"))?(r=e[t+1],t++):r=i:e[t].startsWith("--proxy=")?r=e[t].slice(8)||i:n.push(e[t]);return{proxy:r,remainingArgs:n}}async function Q(){let e=process.argv.slice(2);if(e[0]==="uninstall"){B();return}let{proxy:n,remainingArgs:r}=hr(e);try{let i=await W(null,n),t=(0,Y.spawn)(i,r,{stdio:"inherit"});t.on("close",o=>process.exit(o??1)),t.on("error",o=>{console.error("ERR! cc-helper",o.message),process.exit(1)})}catch(i){console.error("ERR! cc-helper",i.message),process.exit(1)}}require.main===module&&Q();0&&(module.exports={ensureBinary,getBinaryPath,main,uninstall});
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var nr=Object.create;var I=Object.defineProperty;var ir=Object.getOwnPropertyDescriptor;var or=Object.getOwnPropertyNames;var sr=Object.getPrototypeOf,ar=Object.prototype.hasOwnProperty;var cr=(e,t)=>{for(var r in t)I(e,r,{get:t[r],enumerable:!0})},O=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of or(t))!ar.call(e,n)&&n!==r&&I(e,n,{get:()=>t[n],enumerable:!(i=ir(t,n))||i.enumerable});return e};var m=(e,t,r)=>(r=e!=null?nr(sr(e)):{},O(t||!e||!e.__esModule?I(r,"default",{value:e,enumerable:!0}):r,e)),lr=e=>O(I({},"__esModule",{value:!0}),e);var gr={};cr(gr,{ensureBinary:()=>C,findReleaseWithBinary:()=>P,getArchiveName:()=>y,getBinaryName:()=>S,getBinaryPath:()=>E,getDownloadUrl:()=>L,getLatestVersion:()=>b,getPlatform:()=>x,install:()=>Q,uninstall:()=>X});module.exports=lr(gr);var l=m(require("fs")),N=m(require("os")),v=m(require("path"));var z=m(require("os")),M=m(require("path")),fr={darwin:"darwin",linux:"linux",win32:"windows"},mr={x64:"amd64",arm64:"arm64"};function x(){let e=z.default.platform(),t=z.default.arch(),r=fr[e],i=mr[t];if(!r)throw new Error(`Unsupported platform: ${e}`);if(!i)throw new Error(`Unsupported arch: ${t}`);return{platform:r,arch:i}}var S=e=>e==="windows"?"cc-helper.exe":"cc-helper";function y(e,t,r){let i=e.replace(/^v/,"");return t==="windows"?`cc-helper_${i}_${t}_${r}.zip`:`cc-helper_${i}_${t}_${r}.tar.gz`}var E=()=>{let{platform:e}=x();return M.default.join(__dirname,"bin",S(e))};var h=m(require("fs")),H=m(require("path")),G=m(require("http")),q=m(require("https"));async function _(e,t,r=3){for(let i=0;i<r;i++)try{await new Promise((n,o)=>{let d=(e.startsWith("https")?q.default:G.default).get(e,{headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"}},c=>{if(c.statusCode===301||c.statusCode===302){let p=c.headers.location;if(p){_(p,t,r).then(n).catch(o);return}}if(c.statusCode!==200){o(new Error(`HTTP ${c.statusCode}`));return}let s=H.default.dirname(t);h.default.existsSync(s)||h.default.mkdirSync(s,{recursive:!0});let g=h.default.createWriteStream(t);c.pipe(g),g.on("finish",()=>{g.close(p=>{p?o(p):n()})}),g.on("error",p=>{h.default.unlinkSync(t),o(p)}),c.on("error",p=>{h.default.unlinkSync(t),o(p)})});d.setTimeout(3e4,()=>{d.destroy(),o(new Error("Timeout"))}),d.on("error",c=>{h.default.existsSync(t)&&h.default.unlinkSync(t),o(c)})});return}catch(n){if(h.default.existsSync(t)&&h.default.unlinkSync(t),i===r-1)throw n;console.log(`warn cc-helper retry ${i+1}/${r}`),await new Promise(o=>setTimeout(o,1e3*(i+1)))}}var f=m(require("fs")),u=m(require("path")),R=m(require("zlib"));async function dr(e,t){let r=0;for(;r+512<=e.length;){let i=e.subarray(r,r+512);if(i.every(c=>c===0))break;let n=i.subarray(0,100).toString().replace(/\0.*$/,""),o=i.subarray(345,500).toString().replace(/\0.*$/,"");o&&(n=`${o}/${n}`),n.startsWith("package/")&&(n=n.slice(8)),n=n.replace(/\//g,u.default.sep);let a=parseInt(i.subarray(124,136).toString().trim(),8)||0,d=i[156];if(r+=512,a>0&&n&&(d===0||d===48)){let c=u.default.join(t,n);await f.default.promises.mkdir(u.default.dirname(c),{recursive:!0}),await f.default.promises.writeFile(c,e.subarray(r,r+a)),r+=Math.ceil(a/512)*512}}}async function pr(e,t){await f.default.promises.mkdir(t,{recursive:!0});let r=await f.default.promises.readFile(e),i;try{i=R.default.unzipSync(r)}catch(n){throw new Error(`Failed to decompress tar.gz: ${n.message}`)}await dr(i,t)}async function ur(e,t){await f.default.promises.mkdir(t,{recursive:!0});let r=await f.default.promises.readFile(e);if(r.length<22)throw new Error(`Invalid ZIP: file too small (${r.length} bytes)`);let i=Buffer.from([80,75,5,6]),n=r.length-22;for(;n>=0&&!r.subarray(n,n+4).equals(i);)n--;if(n<0)throw new Error(`Invalid ZIP: missing end of central directory (file may be corrupted or incomplete, size: ${r.length} bytes)`);if(n+22>r.length)throw new Error("Invalid ZIP: truncated EOCD record");let o=r.readUInt32LE(n+16),a=r.readUInt32LE(n+12),d=o+a;if(o>=r.length||d>r.length)throw new Error(`Invalid ZIP: central directory out of bounds (cdOffset: ${o}, cdEnd: ${d}, fileSize: ${r.length})`);let c=Buffer.from([80,75,1,2]),s=o;for(;s<d;){if(s+46>r.length)throw new Error(`Invalid ZIP: truncated central directory at position ${s}`);if(!r.subarray(s,s+4).equals(c))throw new Error(`Invalid ZIP: invalid central directory signature at position ${s}`);let g=r.readUInt16LE(s+28),p=r.readUInt16LE(s+30),D=r.readUInt16LE(s+32),$=r.readUInt32LE(s+42),Y=r.readUInt32LE(s+20),hr=r.readUInt32LE(s+24),wr=r.readUInt16LE(s+10);if(s+46+g+p+D>r.length)throw new Error(`Invalid ZIP: truncated central directory entry at position ${s}`);let w=r.subarray(s+46,s+46+g).toString();if(s+=46+g+p+D,w.endsWith("/")){await f.default.promises.mkdir(u.default.join(t,w.replace(/\//g,u.default.sep)),{recursive:!0});continue}if(w=w.replace(/\//g,u.default.sep),$+30>r.length)throw new Error(`Invalid ZIP: local header out of bounds for ${w}`);let U=r.readUInt16LE($+8),rr=r.readUInt16LE($+26),er=r.readUInt16LE($+28),k=$+30+rr+er,F=Y;if(k+F>r.length)throw new Error(`Invalid ZIP: truncated file data for ${w}`);let Z=r.subarray(k,k+F),B=u.default.join(t,w);await f.default.promises.mkdir(u.default.dirname(B),{recursive:!0});try{if(U===8)await f.default.promises.writeFile(B,R.default.inflateRawSync(Z));else if(U===0)await f.default.promises.writeFile(B,Z);else throw new Error(`Unsupported compression method ${U} for ${w}`)}catch(tr){throw new Error(`Failed to decompress ${w}: ${tr.message}`)}}}async function K(e,t,r){r==="windows"?await ur(e,t):await pr(e,t)}function V(e,t){let r=u.default.join(e,t);if(f.default.existsSync(r))return r;for(let i of f.default.readdirSync(e)){let n=u.default.join(e,i,t);if(f.default.statSync(u.default.join(e,i)).isDirectory()&&f.default.existsSync(n))return n}throw new Error(`Binary ${t} not found`)}var j=m(require("https"));var T="next-bin",W="cc-helper";function J(e){return new Promise((t,r)=>{let i=j.default.get({hostname:"api.github.com",path:e,headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"}},n=>{let o="";n.on("data",a=>o+=a),n.on("end",()=>{n.statusCode!==200?r(new Error(`GitHub API error: ${n.statusCode}`)):t(JSON.parse(o))})});i.setTimeout(15e3,()=>{i.destroy(),r(new Error("GitHub API timeout"))}),i.on("error",r)})}async function b(){return(await J(`/repos/${T}/${W}/releases/latest`)).tag_name.replace(/^v/,"")}async function P(e,t){var n;let r=await J(`/repos/${T}/${W}/releases?per_page=10`),i=e==="windows"?`_${e}_${t}.zip`:`_${e}_${t}.tar.gz`;for(let o of r)if((n=o.assets)!=null&&n.some(a=>a.name.includes(i)))return o.tag_name.replace(/^v/,"");throw new Error(`No binary found for ${e}-${t}`)}function L(e,t,r,i){let n=e.startsWith("v")?e:`v${e}`,o=`https://github.com/${T}/${W}/releases/download/${n}/${y(e,t,r)}`;return i?`${i}/${o}`:o}async function A(e,t,r,i,n){let o=y(e,t,r),a=v.default.join(N.default.tmpdir(),o),d=L(e,t,r,n);console.log(`info cc-helper@${e} Installing for ${t}-${r}`),n&&console.log("info cc-helper Using proxy:",n);try{await _(d,a)}catch(s){throw n||console.log("warn cc-helper Download failed, try: npx @unitsvc/cc-helper --proxy enable"),s}let c=v.default.join(N.default.tmpdir(),`cc-helper_${Date.now()}`);l.default.mkdirSync(c,{recursive:!0});try{await K(a,c,t);let s=V(c,S(t)),g=v.default.dirname(i);l.default.existsSync(g)||l.default.mkdirSync(g,{recursive:!0}),l.default.existsSync(i)&&l.default.unlinkSync(i),l.default.copyFileSync(s,i),process.platform!=="win32"&&l.default.chmodSync(i,493),console.log("info cc-helper Installed to",i)}finally{let s=l.default.rmSync||l.default.rmdirSync;try{s(c,{recursive:!0,force:!0})}catch{}l.default.existsSync(a)&&l.default.unlinkSync(a)}}async function C(e=null,t){let{platform:r,arch:i}=x(),n=E();if(l.default.existsSync(n))return n;if(e)try{return await A(e,r,i,n,t),n}catch(a){if(!a.message.includes("404"))throw a;console.log(`warn cc-helper@${e} not available, using latest`)}let o=await b();try{await A(o,r,i,n,t)}catch(a){if(!a.message.includes("404"))throw a;o=await P(r,i),await A(o,r,i,n,t)}return n}async function Q(e=null,t){try{await C(e,t)}catch(r){console.error("ERR! cc-helper",r.message)}}function X(){let e=E(),t=v.default.dirname(e);l.default.existsSync(e)?(l.default.unlinkSync(e),console.log("info cc-helper Removed binary:",e)):console.log("info cc-helper No binary found"),l.default.existsSync(t)&&l.default.readdirSync(t).length===0&&l.default.rmdirSync(t),console.log("info cc-helper To complete uninstallation, run:"),console.log(" npm uninstall -g @unitsvc/cc-helper")}0&&(module.exports={ensureBinary,findReleaseWithBinary,getArchiveName,getBinaryName,getBinaryPath,getDownloadUrl,getLatestVersion,getPlatform,install,uninstall});
|
package/package.json
CHANGED
|
@@ -1,44 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@unitsvc/cc-helper",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Claude Code /loop feature bypass tool",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
"cc-helper": "dist/cli.js"
|
|
8
|
-
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "node scripts/build.js",
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@unitsvc/cc-helper",
|
|
3
|
+
"version": "1.0.13",
|
|
4
|
+
"description": "Claude Code /loop feature bypass tool",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"cc-helper": "dist/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "node scripts/build.js",
|
|
11
|
+
"test": "vitest run",
|
|
12
|
+
"test:watch": "vitest",
|
|
13
|
+
"prepublishOnly": "npm run build"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"claude code",
|
|
17
|
+
"claude",
|
|
18
|
+
"loop",
|
|
19
|
+
"cli",
|
|
20
|
+
"zai"
|
|
21
|
+
],
|
|
22
|
+
"author": "next-bin",
|
|
23
|
+
"license": "AGPL-3.0",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/next-bin/cc-helper.git"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://github.com/next-bin/cc-helper#readme",
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/next-bin/cc-helper/issues"
|
|
31
|
+
},
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=14.0.0"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist/",
|
|
37
|
+
"README.md",
|
|
38
|
+
"README-zh.md",
|
|
39
|
+
"LICENSE"
|
|
40
|
+
],
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@types/node": "^20.11.0",
|
|
43
|
+
"esbuild": "^0.27.3",
|
|
44
|
+
"typescript": "^5.3.3",
|
|
45
|
+
"vitest": "^4.0.18"
|
|
46
|
+
}
|
|
47
|
+
}
|