prompt-genie 0.3.6 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/install.cjs +3 -0
- package/dist/hooks/_lib.cjs +2 -0
- package/dist/hooks/post_bash.cjs +1 -1
- package/dist/hooks/post_read.cjs +1 -1
- package/dist/hooks/pre_bash.cjs +1 -1
- package/dist/hooks/pre_read.cjs +1 -1
- package/dist/hooks/session_start.cjs +2 -0
- package/dist/hooks/setup.cjs +1 -1
- package/dist/hooks/stats.cjs +1 -1
- package/dist/hooks/stop_flush.cjs +1 -1
- package/dist/hooks/user_prompt_submit.cjs +1 -1
- package/package.json +3 -2
package/bin/install.cjs
CHANGED
|
@@ -98,6 +98,9 @@ function wireHooks() {
|
|
|
98
98
|
settings.hooks.UserPromptSubmit = [
|
|
99
99
|
{ hooks: [{ type: "command", command: `node ${path.join(HOOKS_DEST, "user_prompt_submit.cjs")}` }] },
|
|
100
100
|
];
|
|
101
|
+
settings.hooks.SessionStart = [
|
|
102
|
+
{ hooks: [{ type: "command", command: `node ${path.join(HOOKS_DEST, "session_start.cjs")}` }] },
|
|
103
|
+
];
|
|
101
104
|
settings.hooks.Stop = [
|
|
102
105
|
{ hooks: [{ type: "command", command: `node ${path.join(HOOKS_DEST, "stop_flush.cjs")}` }] },
|
|
103
106
|
];
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
function b(c,d){c=c-0xcb;const e=a();let f=e[c];if(b['tdiEuO']===undefined){var g=function(l){const m='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let n='',o='';for(let p=0x0,q,r,s=0x0;r=l['charAt'](s++);~r&&(q=p%0x4?q*0x40+r:r,p++%0x4)?n+=String['fromCharCode'](0xff&q>>(-0x2*p&0x6)):0x0){r=m['indexOf'](r);}for(let t=0x0,u=n['length'];t<u;t++){o+='%'+('00'+n['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(o);};b['pRApPq']=g,b['pzdfgB']={},b['tdiEuO']=!![];}const h=e[0x0],i=c+h,j=b['pzdfgB'][i];return!j?(f=b['pRApPq'](f),b['pzdfgB'][i]=f):f=j,f;}const m=b;(function(c,d){const l=b,e=c();while(!![]){try{const f=-parseInt(l(0x10a))/0x1+-parseInt(l(0xd7))/0x2+parseInt(l(0x117))/0x3*(-parseInt(l(0x161))/0x4)+parseInt(l(0x15b))/0x5+-parseInt(l(0x160))/0x6*(parseInt(l(0x128))/0x7)+-parseInt(l(0x165))/0x8+-parseInt(l(0x132))/0x9*(-parseInt(l(0x14b))/0xa);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x38e40));const fs=require('fs'),os=require('os'),path=require('path'),crypto=require('crypto'),CLAUDE_DIR=path[m(0xf0)](process.env.HOME||os['homedi'+'r'](),'.claud'+'e'),SESSIONS_DIR=path[m(0xf0)](CLAUDE_DIR,m(0x126)+m(0x164)),STATS_FILE=path['join'](CLAUDE_DIR,m(0x142)+m(0x134)+'n'),CONFIG_FILE=path[m(0xf0)](CLAUDE_DIR,m(0xe7)+m(0x146)+'on'),PUBLIC_KEY=m(0xf5)+m(0x11a)+'UBLIC\x20'+m(0xd4)+m(0x14c)+m(0x11d)+m(0x12a)+'G9w0BA'+m(0xf2)+m(0xf6)+'IIBCgK'+m(0x137)+m(0x111)+m(0x11e)+m(0xfa)+m(0xd3)+m(0xe0)+m(0x149)+m(0xcd)+m(0x141)+m(0x143)+m(0x130)+m(0x12c)+m(0x124)+m(0xd2)+'DQw6Tj'+m(0xd0)+m(0x13f)+m(0xea)+'gOvmV+'+m(0xf7)+m(0x157)+m(0x11b)+m(0xcb)+m(0x15c)+m(0x10b)+m(0x140)+m(0xd5)+m(0x123)+'QhrQEL'+m(0xdc)+m(0x102)+m(0xeb)+m(0x110)+m(0x113)+m(0x156)+m(0xd8)+'6CSz\x0aB'+m(0xff)+m(0xe5)+'a5bdm2'+m(0x13c)+m(0x13d)+m(0x106)+m(0xf9)+m(0xdb)+m(0x12f)+'7tRbpL'+m(0x112)+m(0x13b)+m(0xcc)+m(0xed)+m(0x129)+m(0x15f)+m(0xf1)+m(0x125)+'xFfYIx'+m(0x136)+m(0x153)+m(0xe4)+m(0x120)+m(0x147)+m(0x12b)+m(0x145)+m(0x127);function loadJson(c){const n=m;try{return JSON[n(0xfe)](fs[n(0x118)+n(0xef)](c,n(0xfd)));}catch{return{};}}function saveJsonAtomic(c,d){const o=m;try{fs[o(0x152)+o(0x14a)](path['dirnam'+'e'](c),{'recursive':!![]});const e=c+'.'+process[o(0x131)]+o(0x11c);fs['writeF'+o(0x107)+'c'](e,JSON[o(0xe1)+o(0x122)](d)),fs[o(0x14f)+o(0x150)](e,c);}catch{}}function unlinkQuiet(c){const p=m;try{fs[p(0x11f)+p(0x150)](c);}catch{}}function sha1(c){const q=m;try{return crypto[q(0x14e)+q(0x10e)](q(0x12d))[q(0xd9)](c)[q(0x12e)](q(0x154));}catch{return null;}}function estimateTokens(c){const r=m,d={'SQAYf':function(e,f){return e/f;}};return Math[r(0x15d)](0x1,Math[r(0x114)](d[r(0xe3)](c[r(0xda)],0x4)));}function today(){const s=m;return new Date()[s(0x10c)+s(0x10f)]()['slice'](0x0,0xa);}function sessionFile(c){const t=m,d={'TsCDh':function(f,g){return f(g);},'toEfo':'defaul'+'t'},e=d[t(0x162)](String,c||d[t(0x138)])[t(0xe8)+'e'](/[^a-zA-Z0-9_-]/g,'_')[t(0x15a)](0x0,0x50);return path[t(0xf0)](SESSIONS_DIR,e+t(0xfb));}function loadSession(c){return loadJson(sessionFile(c));}function saveSession(c,d){saveJsonAtomic(sessionFile(c),d);}function a(){const C=['Agv4','C3rHDfn5','DKX1vMuZ','zKrdvIT6','zNjVBq','sun1vNi','C2XPy2u','ndeYmJGWC1HhEfne','wdjdtLbo','Bwf4','x1bstW','t1y0owHu','mJiYnJzVwxPuuKm','ognQy3LPEG','vhndrgG','ufjp','C2LVBNm','mtCZntG0oeHmtuztyq','BgjAEtCZ','CNqYmxbM','nLDoDeqX','uKLtrq','BwLZC2vZ','cMvXwJDS','CMvHzgrP','zNLcAwq3','uWPKodbU','s0vzls0T','ww85sePh','A2v5CW','mZG5mZq0B2XNs0PQ','m2HimfjR','DxbKyxrL','BgvUz3rO','DJDZy2ry','yLnJDdfX','C29YDa','BM93','C3bSAxq','tZjNDKyY','C3rYAw5N','zgf0yq','u1fbwwy','zu0kzhDj','D2Tiq3m4','zw5K','CgDFy29U','CMvWBgfJ','u1DTAM4','z2XowKns','AwuYwdvt','Dg9Rzw5Z','qvnjs1b3','veHsruvF','BgvtEw5J','AM9PBG','m0ndm3js','uuvgqufp','zxHW','yMfZzty0','ls0Tls1c','q0froefn','utLmt3bv','Aw5JBhvK','AtnYALLI','DLPsm2T1','lMPZB24','ru5urvjq','DxrMoa','CgfYC2u','udbnq2nX','BxrPBwvn','DwrXqMK','ngHotxDJ','v1nnrha','uwvKu0y','CLn5BMm','D2W4seTR','AwXLu3LU','swzgv1m','AgL0CW','odq3ntntB3vesNm','nKqYA2zl','Dg9ju09t','uLnblvni','sgfZAa','DhjPBMC','ow1sk2X3','AKjnsMzl','zfLQcJiR','y3HsrKvZ','zMXVB3i','x3nHDMvK','DxjS','mteZnZnnBhPiuwm','CMvHzezP','B3ryDxC','ruDjtIbq','BLvSruPm','lNrTCa','qKLQqu5c','nKS4sM5q','Dw5SAw5R','refrquik','sNDtyw8','Awz5','mMOYBJbc','AtHnuKWR','wtr6z3rf','CgDFC2vZ','ws0Tls0T','nte4vwHwzfzf','rMLAyu1O','z2TXAgTP','tKqGufvc','z3jqodqW','C2HHmq','zgLNzxn0','ugDfuNmY','AvyVnLD1','CgLK','otbXs1P6Bwe','qu5ovufm','DhmUANnV','DMvYAwz5','ohfiDdrm','q0frrufY','Dg9fzM8','ruDkwfm','Dg9tDhjP','twHxyuDi','vtvlDMvj','DJfWtvv3','CMvZDw1L','AJH3sfrl','ueW3Evqk','tJaRAZjh','CgDFC3rH','ufnOCeDc','C3rKAw4','teLdieTf','zMLNlMPZ','ls0Tls1f','sKTorfe','qvvmz2Hf','Ew5J','oti5mtCWtLneC09q','ls0ktuLj','Dg90ywXF','y3jLyxrL','CMvUyw1L','u3LUyW','zxHWB3j0','BwTKAxjt','re0ZCLnO'];a=function(){return C;};return a();}function deleteSession(c){unlinkQuiet(sessionFile(c));}function gcSessions(c=0x7){const u=m,d={'JwSao':function(e,f){return e*f;}};try{const e=Date[u(0xde)]()-d[u(0x121)](c*0x18*0x3c*0x3c,0x3e8);for(const f of fs[u(0xd1)+u(0x105)](SESSIONS_DIR)){const g=path['join'](SESSIONS_DIR,f);try{if(fs[u(0x155)+'nc'](g)[u(0x100)+'s']<e)fs[u(0x11f)+u(0x150)](g);}catch{}}}catch{}}function evictOldest(c,d){const v=m,e={'GoEeh':function(j,k){return j*k;},'CRxLB':function(j,k){return j<k;}},f=Object[v(0xd6)](c);if(f[v(0xda)]<=d)return;const g=f[v(0xdd)]((j,k)=>(c[j]['ts']||0x0)-(c[k]['ts']||0x0)),h=Math[v(0x15d)](0x1,Math[v(0x114)](e['GoEeh'](d,0.2)));for(let j=0x0;e['CRxLB'](j,h);j++)delete c[g[j]];}function bumpStats({hits:hits=0x0,misses:misses=0x0,tokensSaved:tokensSaved=0x0}){const w=m,c={'IfFWS':function(e,f){return e(f);},'JKNDQ':function(e,f){return e+f;}},d=c[w(0x108)](loadJson,STATS_FILE);if(hits)d['total_'+w(0x109)]=c[w(0x148)](d[w(0x14d)+w(0x109)]||0x0,hits);if(misses)d[w(0x14d)+w(0xcf)]=(d[w(0x14d)+'misses']||0x0)+misses;if(tokensSaved)d[w(0x14d)+'tokens'+w(0x115)]=(d[w(0x14d)+w(0xec)+w(0x115)]||0x0)+tokensSaved;saveJsonAtomic(STATS_FILE,d);}function verifyJWT(c){const x=m,d={'EGJXS':'base64'+'url','ICuVr':function(e,f){return e<f;}};try{const [e,f,g]=c['split']('.');if(!e||!f||!g)return null;const h=crypto[x(0x14e)+'Verify'](x(0x10d)+'A256');h[x(0xd9)](e+'.'+f);if(!h[x(0x135)](PUBLIC_KEY,g,d[x(0x139)]))return null;const i=JSON[x(0xfe)](Buffer[x(0x158)](f,x(0xf4)+x(0x116))[x(0x13a)+'ng']());if(i[x(0xf3)]&&d[x(0x159)](i[x(0xf3)],Math[x(0x114)](Date[x(0xde)]()/0x3e8)))return null;return i;}catch{return null;}}function decodeJWT(c){const y=m,d={'SWmjn':'base64'+y(0x116)};try{const [,e]=c[y(0xdf)]('.');return JSON[y(0xfe)](Buffer['from'](e,d[y(0xe9)])[y(0x13a)+'ng']());}catch{return null;}}function isPaidPlan(c){const z=m,d={'WSMDp':z(0xee)+'DAY_PA'+'SS','otXuw':'TEAMS','udqBi':z(0xfc)+z(0xce)};return[z(0x163),z(0x133)+z(0x15e),d[z(0x103)],d[z(0x119)],d[z(0x101)]][z(0xf8)+'es'](c);}function readStdinJson(c=0x7d0){const d={'QedSF':function(e,f,g){return e(f,g);}};return new Promise(e=>{const B=b;let f='',g=![];const h=()=>{const A=b;if(g)return;g=!![];try{e(JSON[A(0xfe)](f));}catch{e(null);}};process[B(0x144)][B(0x13e)](),process[B(0x144)]['on'](B(0xe2),i=>f+=i),process[B(0x144)]['on'](B(0xe6),h),d[B(0x104)](setTimeout,h,c);});}module[m(0x151)+'s']={'CLAUDE_DIR':CLAUDE_DIR,'SESSIONS_DIR':SESSIONS_DIR,'STATS_FILE':STATS_FILE,'CONFIG_FILE':CONFIG_FILE,'PUBLIC_KEY':PUBLIC_KEY,'loadJson':loadJson,'saveJsonAtomic':saveJsonAtomic,'unlinkQuiet':unlinkQuiet,'sha1':sha1,'estimateTokens':estimateTokens,'today':today,'sessionFile':sessionFile,'loadSession':loadSession,'saveSession':saveSession,'deleteSession':deleteSession,'gcSessions':gcSessions,'evictOldest':evictOldest,'bumpStats':bumpStats,'verifyJWT':verifyJWT,'decodeJWT':decodeJWT,'isPaidPlan':isPaidPlan,'readStdinJson':readStdinJson};
|
package/dist/hooks/post_bash.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
function b(c,d){c=c-0x1b8;const e=a();let f=e[c];if(b['XFDLsY']===undefined){var g=function(l){const m='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let n='',o='';for(let p=0x0,q,r,s=0x0;r=l['charAt'](s++);~r&&(q=p%0x4?q*0x40+r:r,p++%0x4)?n+=String['fromCharCode'](0xff&q>>(-0x2*p&0x6)):0x0){r=m['indexOf'](r);}for(let t=0x0,u=n['length'];t<u;t++){o+='%'+('00'+n['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(o);};b['mkCtpU']=g,b['zsFtiv']={},b['XFDLsY']=!![];}const h=e[0x0],i=c+h,j=b['zsFtiv'][i];return!j?(f=b['mkCtpU'](f),b['zsFtiv'][i]=f):f=j,f;}function a(){const v=['AgfZAa','AgLZihnL','C3nPB24U','C2f2zvnL','ChrPB24','uwP3qNa','AhrfEgnL','BL9Pza','AguGzwfY','CMvWBgfJ','BwfW','AM9PBG','CMvHzfn0','C29Tzq','B2XvC2u','ndK5mtKYEvzuDgH0','BwvZC2fN','w091Dhb1','CgCGCg9Z','DwLRvvm','Dcb1BMnO','C3rYAw5N','Dg9Rzw5Z','Aw5JBhvK','DKjfzvK','DgzvB0C','D3jPDgu','EKTbrKW','C3nPB24','Bwf4','zxHPDa','DgvZDa','ndLtrwXnuvu','mJuWotKWohHXufrjDG','tKDLrfm','y3DK','ug9ZDfrV','zgLUsNnV','AgL0CW','ndeZmtu2y3D2z0rV','yxrZ','mtq0nZq1ofDntKX0DG','DhjPBq','Bg9HzfnL','Dg9VBf9U','C2vZC2LV','Df9IyxnO','qMfZAa','C3bSAxq','lMnQCW','BgrLC3q','ntaWndrAqK1NDNO','y2zlC3i','C2HHmq','C2LUy2uG','BwLZC2vZ','C3nxr3a','y29TBwfU','qLHct1i','B2jQzwn0','BM93','u2f2zwq','yNvTCfn0','C2XPy2u','EwHIDvC','Dgv4Da','C3rKzxjY','Awz5','mtu5mdKWodrIsffWwvC','lI9FBgLI','D3fuyKK','DxrWDxqU','BgLLCIbV','AxnbCNjH','igXPBMvZ','ignVBw1H','yw1L','Dg9KyxK','yw5NzwqG','ote4nZa0EfDetKHS','runyq3a','lIbszwzL','yMfZAa','BIb0AgLZ','Dw5JyxvN','mteWD3Ptrfb3','Dg9VBf9Y','r0L1u00','BMqGzwfY','zgf0zq','y29UDgvU','C3rKB3v0','BgvUz3rO','vLrSvhC','BgLLCIb0'];a=function(){return v;};return a();}const q=b;(function(c,d){const p=b,e=c();while(!![]){try{const f=-parseInt(p(0x1cd))/0x1+-parseInt(p(0x1f5))/0x2+parseInt(p(0x1cf))/0x3+parseInt(p(0x1d9))/0x4*(-parseInt(p(0x1fb))/0x5)+-parseInt(p(0x1c7))/0x6+parseInt(p(0x1c6))/0x7*(-parseInt(p(0x214))/0x8)+parseInt(p(0x1ea))/0x9;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x3c605),process['on'](q(0x1fa)+q(0x20b)+q(0x209),c=>{const r=q,d={'zKAFL':function(e,f){return e+f;},'yhbuW':function(e,f){return e+f;},'wqTbI':r(0x1b8)+r(0x1d4)+':\x20'};process['stderr'][r(0x1c0)](d[r(0x1c1)](d[r(0x1e6)](d[r(0x1ec)],c[r(0x215)+'e']),'\x0a')),process['exit'](0x0);}));const lib=require(q(0x1eb)+q(0x1d7)),MAX_OUTPUT_BYTES=0x7d000,MIN_OUTPUT_CHARS=0xc8,MAX_BASH_ENTRIES=0x12c,NOTE_TOKENS=0xf,READONLY_PREFIXES=[/^cat\s+/,/^ls(\s|$)/,/^find\s+/,/^grep(\s+|\s+-[a-zA-Z]+\s+)/,/^rg\s+/,/^ag\s+/,/^head(\s+|\s+-[a-zA-Z0-9]+\s+)/,/^tail(\s+|\s+-[a-zA-Z0-9]+\s+)/,/^wc(\s+|\s+-[a-zA-Z]+\s+)/,/^stat\s+/,/^file\s+/,/^which\s+/,/^type\s+/,/^pwd(\s|$)/,/^sort(\s+|\s+-[a-zA-Z]+\s+)/,/^uniq(\s+|\s+-[a-zA-Z]+\s+)/,/^du(\s+|\s+-[a-zA-Z]+\s+)/,/^df(\s|$)/,/^jq\s+/,/^git\s+(log|show|diff|status|branch|config|tag|stash list|remote|describe|rev-parse|shortlog|blame|ls-files)\b/,/^npm\s+(list|ls|view|info|outdated|audit)\b/,/^yarn\s+(list|info|why)\b/,/^node\s+(-v|--version)(\s|$)/,/^node\s+--version(\s|$)/,/^echo\s+/,/^printf\s+/,/^env(\s|$)/,/^printenv(\s|$)/],UNSAFE_PATTERNS=[/\s>>?\s/,/>>?[./~]/,/\|\s*tee\s+\S/,/\bsed\s+-i\b/,/\bawk\s+-i\b/,/\bnpm\s+install\b/,/\bnpm\s+ci\b/,/\brm\b/,/\bmv\b/,/\bcp\b/,/\bmkdir\b/,/\btouch\b/,/\bchmod\b/,/\bchown\b/,/\bgit\s+(add|commit|push|pull|merge|rebase|reset|checkout|stash (push|pop|drop)|rm|mv|clean)\b/,/\bnpx\b/];function isReadOnly(c){const s=q;if(c[s(0x1bd)+'es']('\x0a'))return![];const d=c[s(0x1d0)]();if(!READONLY_PREFIXES['some'](e=>e[s(0x1c5)](d)))return![];return!UNSAFE_PATTERNS[s(0x212)](e=>e[s(0x1c5)](d));}function extractOutput(c){const t=q,d={'tfUoG':function(e,f){return e!==f;},'BXBOR':t(0x1e1),'jbeom':function(e,f){return e+f;}};if(typeof c===t(0x1bb))return c;if(!c||d[t(0x1bf)](typeof c,d[t(0x1e0)]))return'';if(typeof c[t(0x201)]===t(0x1bb))return c['stdout']+(c[t(0x1e8)]?d['jbeom']('\x0a',c['stderr']):'');if(Array[t(0x1ef)+'y'](c[t(0x200)+'t']))return c[t(0x200)+'t'][t(0x20f)](e=>e[t(0x1e7)]??'')[t(0x210)]('');return JSON[t(0x1bb)+t(0x1e9)](c);}async function main(){const u=q,c={'ECXCp':u(0x1d5),'uikUS':function(n,o){return n(o);},'GIuSM':function(n,o){return n<o;},'VTlTw':function(n,o){return n>o;},'NGeDS':function(n,o){return n&&o;},'QjwBp':function(n,o){return n===o;},'vBEeY':function(n,o){return n-o;},'saItz':function(n,o){return n+o;},'ssWGp':function(n,o){return n+o;},'cfKsr':function(n,o){return n+o;}},d=await lib[u(0x211)+u(0x1cb)+'n']();if(!d||d[u(0x1d2)+u(0x1f2)]!==c[u(0x1f6)])process[u(0x1c4)](0x0);const e=d['tool_i'+'nput']?.[u(0x1df)+'d'];if(!e||!c[u(0x1b9)](isReadOnly,e))process['exit'](0x0);const f=c['uikUS'](extractOutput,d[u(0x1fc)+'espons'+'e']);if(!f||c[u(0x1fd)](f[u(0x202)],MIN_OUTPUT_CHARS)||c[u(0x203)](f[u(0x202)],MAX_OUTPUT_BYTES))process[u(0x1c4)](0x0);const g=d['cwd']||process[u(0x1c9)](),h=e[u(0x1d0)]()[u(0x20e)+'e'](/\s+/g,'\x20'),i=lib[u(0x1db)](g+'\x00'+h),j=lib[u(0x1db)](f),k=lib[u(0x1d1)+'ssion'](d[u(0x1d3)+u(0x20c)]),l=k['bash']||{},m=l[i];if(c[u(0x1c8)](j,m)&&c[u(0x20a)](m[u(0x205)],j)){const n=f[u(0x1d6)]('\x0a')[u(0x202)],o=Math[u(0x1c3)](0x0,c[u(0x1be)](lib['estima'+'teToke'+'ns'](f),NOTE_TOKENS));k[u(0x1cc)]=c['saItz'](k[u(0x1cc)]||0x0,0x1),k[u(0x1bc)+u(0x1e3)]=c[u(0x1de)](k[u(0x1bc)+u(0x1e3)]||0x0,o),k[u(0x1ff)]=lib[u(0x1f3)](),lib[u(0x208)+u(0x1c2)](d['sessio'+u(0x20c)],k),lib['bumpSt'+u(0x1ce)]({'hits':0x1,'tokensSaved':o}),process[u(0x201)][u(0x1c0)](JSON[u(0x1bb)+'ify']({'hookSpecificOutput':{'hookEventName':u(0x1ca)+u(0x213),'updatedToolOutput':u(0x216)+u(0x1ba)+u(0x1f4)+u(0x1dc)+'you\x20ra'+u(0x1f9)+u(0x1f1)+u(0x1fe)+u(0x204)+u(0x206)+u(0x207)+'\x20'+n+(u(0x1f0)+u(0x1f7)+'r\x20to\x20t'+u(0x20d)+u(0x1ee)+u(0x1ed)+']')}})),process[u(0x1c4)](0x0);}l[i]={'cmd':h[u(0x1e5)](0x0,0x78),'hash':j,'ts':Date[u(0x1e2)]()},lib['evictO'+u(0x1d8)](l,MAX_BASH_ENTRIES),k[u(0x1f8)]=l,k[u(0x1dd)]=c[u(0x1da)](k['misses']||0x0,0x1),k[u(0x1ff)]=lib[u(0x1f3)](),lib[u(0x208)+u(0x1c2)](d[u(0x1d3)+u(0x20c)],k),lib[u(0x1e4)+u(0x1ce)]({'misses':0x1}),process[u(0x1c4)](0x0);}main();
|
package/dist/hooks/post_read.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const r=b;(function(c,d){const q=b,e=c();while(!![]){try{const f
|
|
2
|
+
const r=b;(function(c,d){const q=b,e=c();while(!![]){try{const f=parseInt(q(0x151))/0x1*(parseInt(q(0x180))/0x2)+parseInt(q(0x164))/0x3*(parseInt(q(0x163))/0x4)+parseInt(q(0x1a2))/0x5*(-parseInt(q(0x15a))/0x6)+-parseInt(q(0x1a7))/0x7*(parseInt(q(0x16d))/0x8)+parseInt(q(0x155))/0x9*(-parseInt(q(0x1aa))/0xa)+parseInt(q(0x195))/0xb+-parseInt(q(0x162))/0xc*(parseInt(q(0x185))/0xd);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x535c8));const fs=require('fs'),lib=require(r(0x18f)+r(0x189));process['on']('uncaug'+'htExce'+'ption',c=>{const s=r,d={'wygMw':function(e,f){return e+f;}};process['stderr'][s(0x174)](d[s(0x178)](s(0x19c)+s(0x177)+':\x20'+c['messag'+'e'],'\x0a')),process[s(0x19a)](0x0);});const MAX_FILE_ENTRIES=0x1f4,NOTE_TOKENS=0xf;function extractText(c){const t=r,d={'jmscw':function(e,f){return e===f;},'BzHMi':t(0x158)};if(d[t(0x17a)](typeof c,d['BzHMi']))return c;if(!c||typeof c!==t(0x156))return'';if(c[t(0x175)]&&d[t(0x17a)](typeof c[t(0x175)][t(0x169)+'t'],t(0x158)))return c[t(0x175)][t(0x169)+'t'];if(Array['isArra'+'y'](c[t(0x169)+'t']))return c[t(0x169)+'t'][t(0x191)](e=>e[t(0x152)]??'')[t(0x18b)]('');return JSON[t(0x158)+'ify'](c);}async function main(){const u=r,c={'dLYCv':function(o,p){return o!==p;},'Rphgi':function(o,p){return o(p);},'ZLLZc':u(0x179),'iugXG':function(o,p){return o===p;},'yoiQX':function(o,p){return o+p;},'VeRRi':u(0x176)+u(0x17b),'hbRTU':function(o,p){return o+p;}},d=await lib[u(0x1a6)+u(0x18a)+'n']();if(!d||c['dLYCv'](d[u(0x19f)+u(0x199)],u(0x192)))process[u(0x19a)](0x0);const e=d[u(0x160)+u(0x196)]?.[u(0x173)+'ath'];if(!e)process[u(0x19a)](0x0);const f=c[u(0x171)](extractText,d[u(0x153)+u(0x15f)+'e']);if(!f)process[u(0x19a)](0x0);const g=d[u(0x160)+u(0x196)]?.[u(0x18e)]??0x0,h=d[u(0x160)+u(0x196)]?.[u(0x18c)]??c[u(0x166)],i=e+'@'+g+'-'+h,j=lib[u(0x16b)](f),k=lib[u(0x170)+u(0x15c)](d[u(0x15d)+u(0x161)]),l=k[u(0x165)]||{},m=l[i];if(j&&m&&c['iugXG'](m[u(0x187)],j)){const o=f[u(0x157)]('\x0a')[u(0x184)],p=Math[u(0x18d)](0x0,lib[u(0x168)+u(0x1a4)+'ns'](f)-NOTE_TOKENS);k[u(0x16e)]=c[u(0x193)](k['hits']||0x0,0x1),k[u(0x1a5)+u(0x17d)]=c[u(0x193)](k[u(0x1a5)+u(0x17d)]||0x0,p),k['date']=lib[u(0x19d)](),lib[u(0x15e)+u(0x15c)](d[u(0x15d)+u(0x161)],k),lib[u(0x1a8)+u(0x198)]({'hits':0x1,'tokensSaved':p}),process[u(0x190)][u(0x174)](JSON['string'+u(0x167)]({'hookSpecificOutput':{'hookEventName':c[u(0x15b)],'updatedToolOutput':u(0x159)+'dy\x20in\x20'+u(0x172)+u(0x16f)+u(0x16a)+u(0x186)+u(0x194)+u(0x16c)+u(0x17e)+u(0x181)+o+(u(0x17f)+'.\x20Refe'+u(0x154)+u(0x182)+u(0x19b)+'read\x20f'+u(0x183)+u(0x188)+u(0x197))}})),process[u(0x19a)](0x0);}let n=null;try{n=fs['statSy'+'nc'](e)[u(0x1a3)+'s'];}catch{}l[i]={'path':e,'hash':j,'mtime':n,'ts':Date[u(0x1a1)]()},lib[u(0x17c)+u(0x1a9)](l,MAX_FILE_ENTRIES),k[u(0x165)]=l,k[u(0x19e)]=c[u(0x150)](k[u(0x19e)]||0x0,0x1),k[u(0x1a0)]=lib[u(0x19d)](),lib['saveSe'+u(0x15c)](d[u(0x15d)+u(0x161)],k),lib[u(0x1a8)+u(0x198)]({'misses':0x1}),process[u(0x19a)](0x0);}function b(c,d){c=c-0x150;const e=a();let f=e[c];if(b['vKrwaR']===undefined){var g=function(l){const m='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let n='',o='';for(let p=0x0,q,r,s=0x0;r=l['charAt'](s++);~r&&(q=p%0x4?q*0x40+r:r,p++%0x4)?n+=String['fromCharCode'](0xff&q>>(-0x2*p&0x6)):0x0){r=m['indexOf'](r);}for(let t=0x0,u=n['length'];t<u;t++){o+='%'+('00'+n['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(o);};b['SItmdz']=g,b['kNZtte']={},b['vKrwaR']=!![];}const h=e[0x0],i=c+h,j=b['kNZtte'][i];return!j?(f=b['SItmdz'](f),b['kNZtte'][i]=f):f=j,f;}main();function a(){const v=['BxrPBwvn','DgvuB2TL','Dg9Rzw5Z','CMvHzfn0','mtmWntK5re5gsxf3','yNvTCfn0','BgrLC3q','mte5odaWwwXqBKfI','Agjsvfu','nJu1mti2z1D0teHk','Dgv4Da','Dg9VBf9Y','CIb0BYb5','mZzqENPZvgO','B2jQzwn0','C3bSAxq','C3rYAw5N','w0fSCMvH','mtqXmtH5uMDpzLa','vMvsuMK','C3nPB24','C2vZC2LV','C2f2zvnL','zxnWB25Z','Dg9VBf9P','BL9Pza','mtj1vNHmwKS','ntiXmtzVsvHUsfu','mtmYCeHlBfrc','zMLSzxm','wKXmwMm','Awz5','zxn0Aw1H','y29UDgvU','BguGDw5J','C2HHmq','ihLVDxiG','ndHJyvPXAhG','AgL0CW','DcdIGjqGzMK','Bg9HzfnL','uNbOz2K','y29UDgv4','zMLSzv9W','D3jPDgu','zMLSzq','ug9ZDfrV','Df9YzwfK','D3LNtxC','ywXS','AM1Zy3C','B2XvC2u','zxzPy3rp','u2f2zwq','BgfZDcbY','igXPBMvZ','mKfhBwTJAa','zwfKlIa','B3vYigvH','B3iGDgHL','BgvUz3rO','otKWotm0muP2sgrVEa','AgfUz2vK','AgfZAa','ignVBNrL','lMnQCW','zgLUsNnV','AM9PBG','BgLTAxq','Bwf4','B2zMC2v0','lI9FBgLI','C3rKB3v0','BwfW','uMvHza','Ew9PuvG','ihnPBMnL','mZe1nJi5nMnHwgrQEq','BNb1Da','BNqUxq','yxrZ','yw1L','zxHPDa','CMXPzxiG','CgCGCg9Z','Dg9KyxK','BwLZC2vZ','Dg9VBf9U','zgf0zq','BM93','ntm1AKrHvMfo'];a=function(){return v;};return a();}
|
package/dist/hooks/pre_bash.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
function a(){var j=['mti5mdKXmMj2v3P6yG','zxHPDa','ChrPB24','mJe1mZjVvMLSveG','mtKYmJm1oe5eEw14vW','zw5K','C3rKAw4','CMvZDw1L','mZy0nti3mhzNBevXDa','mZaXnJC5mMvIAwrdzW','ogHXvKvera','mJeWmde0Eu1dEfvP','nta4mJeWruTAue1y','zgf0yq','mJb6DxHJtgK'];a=function(){return j;};return a();}function b(c,d){c=c-0x1e8;var e=a();var f=e[c];if(b['MnTYhN']===undefined){var g=function(l){var m='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var n='',o='';for(var p=0x0,q,r,s=0x0;r=l['charAt'](s++);~r&&(q=p%0x4?q*0x40+r:r,p++%0x4)?n+=String['fromCharCode'](0xff&q>>(-0x2*p&0x6)):0x0){r=m['indexOf'](r);}for(var t=0x0,u=n['length'];t<u;t++){o+='%'+('00'+n['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(o);};b['kPbcTh']=g,b['YwHhEM']={},b['MnTYhN']=!![];}var h=e[0x0],i=c+h,j=b['YwHhEM'][i];return!j?(f=b['kPbcTh'](f),b['YwHhEM'][i]=f):f=j,f;}var i=b;(function(c,d){var h=b,e=c();while(!![]){try{var f=parseInt(h(0x1ee))/0x1*(parseInt(h(0x1ea))/0x2)+-parseInt(h(0x1eb))/0x3+-parseInt(h(0x1f5))/0x4*(-parseInt(h(0x1e8))/0x5)+parseInt(h(0x1ef))/0x6+-parseInt(h(0x1f6))/0x7+parseInt(h(0x1f4))/0x8+-parseInt(h(0x1f3))/0x9;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x3d388),process['on']('uncaug'+'htExce'+i(0x1ed),()=>process[i(0x1ec)](0x0)),process[i(0x1f1)][i(0x1f2)](),process['stdin']['on'](i(0x1e9),()=>{}),process[i(0x1f1)]['on'](i(0x1f0),()=>process[i(0x1ec)](0x0)));
|
package/dist/hooks/pre_read.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
function b(c,d){c=c-0x14e;var e=a();var f=e[c];if(b['seFbiO']===undefined){var g=function(l){var m='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var n='',o='';for(var p=0x0,q,r,s=0x0;r=l['charAt'](s++);~r&&(q=p%0x4?q*0x40+r:r,p++%0x4)?n+=String['fromCharCode'](0xff&q>>(-0x2*p&0x6)):0x0){r=m['indexOf'](r);}for(var t=0x0,u=n['length'];t<u;t++){o+='%'+('00'+n['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(o);};b['jfSwIl']=g,b['hqizRQ']={},b['seFbiO']=!![];}var h=e[0x0],i=c+h,j=b['hqizRQ'][i];return!j?(f=b['jfSwIl'](f),b['hqizRQ'][i]=f):f=j,f;}var i=b;(function(c,d){var h=b,e=c();while(!![]){try{var f=-parseInt(h(0x152))/0x1+parseInt(h(0x159))/0x2+-parseInt(h(0x158))/0x3*(parseInt(h(0x155))/0x4)+-parseInt(h(0x153))/0x5*(parseInt(h(0x15c))/0x6)+-parseInt(h(0x15a))/0x7*(-parseInt(h(0x14e))/0x8)+-parseInt(h(0x15f))/0x9+-parseInt(h(0x15b))/0xa*(-parseInt(h(0x15d))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x56b0b),process['on'](i(0x151)+i(0x156)+'ption',()=>process['exit'](0x0)),process[i(0x15e)][i(0x157)](),process['stdin']['on'](i(0x154),()=>{}),process[i(0x15e)]['on'](i(0x150),()=>process[i(0x14f)](0x0)));function a(){var j=['mtK4ndq5mw5pC3DrEa','mJK4nZq4Dw9SsMHv','mJy5otiWn09iC1nTCa','nJKXotqWENfOCuz4','mti5nJzRB2PVsKG','mJC1D2z3EK9e','C3rKAw4','mZq3nZK4n0DiEKj4tG','oerHsKTNuG','zxHPDa','zw5K','Dw5JyxvN','mJyZmJa1CNjWtfvd','mtm4nwLKChzyBW','zgf0yq','nfHQuNfzBa','AhrfEgnL','CMvZDw1L'];a=function(){return j;};return a();}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const i=b;function b(c,d){c=c-0x13e;const e=a();let f=e[c];if(b['KHAPtl']===undefined){var g=function(l){const m='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let n='',o='';for(let p=0x0,q,r,s=0x0;r=l['charAt'](s++);~r&&(q=p%0x4?q*0x40+r:r,p++%0x4)?n+=String['fromCharCode'](0xff&q>>(-0x2*p&0x6)):0x0){r=m['indexOf'](r);}for(let t=0x0,u=n['length'];t<u;t++){o+='%'+('00'+n['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(o);};b['tDizgj']=g,b['XEDVkO']={},b['KHAPtl']=!![];}const h=e[0x0],i=c+h,j=b['XEDVkO'][i];return!j?(f=b['tDizgj'](f),b['XEDVkO'][i]=f):f=j,f;}(function(c,d){const h=b,e=c();while(!![]){try{const f=parseInt(h(0x159))/0x1+-parseInt(h(0x163))/0x2+-parseInt(h(0x14c))/0x3+-parseInt(h(0x152))/0x4*(parseInt(h(0x14f))/0x5)+-parseInt(h(0x13e))/0x6+-parseInt(h(0x150))/0x7+parseInt(h(0x158))/0x8;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x92207),process['on'](i(0x14a)+i(0x13f)+i(0x141),c=>{const j=i,d={'MvoQo':function(e,f){return e+f;}};process['stderr'][j(0x15d)](d[j(0x149)](j(0x14d)+j(0x143)+j(0x145)+c[j(0x160)+'e'],'\x0a')),process[j(0x151)](0x0);}));function a(){const l=['C2f2zvnL','txzVuw8','Dw5JyxvN','BL9Pza','mtK1mtq4ofnrBNL6wq','CgCGC2vZ','zgLUsNnV','nxbLrgPmAa','ntm0otqWDKzyrK5J','zxHPDa','mtuXndm3mLnZwgP2AW','lI9FBgLI','q291BNq','shbhAuK','u2vZC2LV','y29TCgfJ','mtK3nZq0ndHivNbfAMe','odCXnde5EuDdvg9m','qNbPBNa','y2XLyxi','lMnQCW','D3jPDgu','C2vZC2LV','Ag9VA19L','BwvZC2fN','yw1L','zMLSzxm','mJiXndy2meLXCwHrCW','mZe5mteWnKvztfDSrG','AhrfEgnL','DMvUDf9U','ChrPB24','C3nPB24','C2LVBL9Z','yMfZAa','DgfYDdOG','C291CMnL','AgLUDgvK'];a=function(){return l;};return a();}const lib=require(i(0x153)+i(0x15c));async function main(){const k=i,c={'Bpinp':function(f,g){return f!==g;},'HpGiI':k(0x157)+'t'},d=await lib['readSt'+k(0x14e)+'n']();if(!d||c[k(0x15a)](d[k(0x15f)+k(0x140)+k(0x161)],k(0x156)+'nStart'))process[k(0x151)](0x0);if(d[k(0x146)]!==c[k(0x155)]&&d[k(0x146)]!==k(0x15b))process[k(0x151)](0x0);const e=lib['loadSe'+'ssion'](d[k(0x15e)+k(0x14b)]);if(!e[k(0x162)]&&!e[k(0x144)]&&!e[k(0x147)+k(0x154)])process['exit'](0x0);e['files']={},e[k(0x144)]={},e[k(0x147)+k(0x154)]=0x0,lib[k(0x148)+k(0x142)](d['sessio'+k(0x14b)],e),process[k(0x151)](0x0);}main();
|
package/dist/hooks/setup.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
2
|
+
const i=b;function b(c,d){c=c-0x18e;const e=a();let f=e[c];if(b['uSRpOg']===undefined){var g=function(l){const m='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let n='',o='';for(let p=0x0,q,r,s=0x0;r=l['charAt'](s++);~r&&(q=p%0x4?q*0x40+r:r,p++%0x4)?n+=String['fromCharCode'](0xff&q>>(-0x2*p&0x6)):0x0){r=m['indexOf'](r);}for(let t=0x0,u=n['length'];t<u;t++){o+='%'+('00'+n['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(o);};b['LBZMIX']=g,b['vgHxJW']={},b['uSRpOg']=!![];}const h=e[0x0],i=c+h,j=b['vgHxJW'][i];return!j?(f=b['LBZMIX'](f),b['vgHxJW'][i]=f):f=j,f;}(function(c,d){const h=b,e=c();while(!![]){try{const f=-parseInt(h(0x1a7))/0x1+-parseInt(h(0x1b2))/0x2*(-parseInt(h(0x193))/0x3)+-parseInt(h(0x18e))/0x4+-parseInt(h(0x1ad))/0x5+parseInt(h(0x1a5))/0x6+-parseInt(h(0x18f))/0x7*(parseInt(h(0x19e))/0x8)+parseInt(h(0x1a9))/0x9;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xadc74));const fs=require('fs'),path=require('path'),CONFIG_FILE=path[i(0x191)](process.env.HOME,i(0x195)+i(0x1a3)+i(0x197)+i(0x1ab)),email=process[i(0x1a1)][0x2];(!email||!email[i(0x19f)+'es']('@'))&&(console['log']('Usage:'+i(0x196)+i(0x1aa)+'setup.'+'cjs\x20yo'+i(0x19b)+i(0x190)),process[i(0x198)](0x1));fs[i(0x194)+i(0x19a)+'c'](CONFIG_FILE,JSON[i(0x1ac)+i(0x1ae)]({'email':email},null,0x2)),console[i(0x1b0)](i(0x1a4)+i(0x1b1)+i(0x192)+i(0x19d)+'for\x20'+email),console[i(0x1b0)](i(0x1af)+i(0x199)+i(0x1a0)+i(0x1a6)+i(0x19c)+'\x20your\x20'+i(0x1a8)+'ard\x20af'+'ter\x20ea'+'ch\x20ses'+i(0x1a2));function a(){const j=['ig5VDYbZ','mZaWnJG5sNrTDLLT','zgfZAgjV','mJuYntK5mtnTC09RtwC','Ag9VA3mV','ANnVBG','C3rYAw5N','ntCXnZq0nwD2se1wAW','Awz5','vg9Rzw4G','Bg9N','ieDLBMLL','mtG2nJC0tertDMvj','mZiXmJu0nhzSA2jlrq','mZy0yM5NAhvP','AwWUy29T','AM9PBG','ignVBMzP','m2HPEufRDa','D3jPDgvg','lMnSyxvK','ig5VzguG','B25MAwCU','zxHPDa','C2f2Aw5N','AwXLu3LU','Dxjazw1H','Ew5JihrV','z3vYzwqG','mtmYntG0vKPnzhbY','Aw5JBhvK','CYb3AwXS','yxjNDG','C2LVBI4','zs9Wz19J','uhjVBxb0','ntuYntq3mNPVDLvYDW'];a=function(){return j;};return a();}
|
package/dist/hooks/stats.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const i=b;(function(c,d){const h=b,e=c();while(!![]){try{const f=parseInt(h(
|
|
2
|
+
const i=b;(function(c,d){const h=b,e=c();while(!![]){try{const f=parseInt(h(0x223))/0x1*(-parseInt(h(0x20e))/0x2)+-parseInt(h(0x20f))/0x3+parseInt(h(0x204))/0x4*(-parseInt(h(0x22b))/0x5)+-parseInt(h(0x228))/0x6+-parseInt(h(0x227))/0x7+parseInt(h(0x1f8))/0x8+parseInt(h(0x21a))/0x9*(parseInt(h(0x1ff))/0xa);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x1eed7));function a(){const k=['ysb5zxqG','icbqCM9T','zwqGywz0','C29YDa','mJb5rfnPvey','Dg90ywXF','jdmVtsbP','BNmGC2f2','icaGoIa','neD2ufzRsG','C29U','icbdB3n0','zMLSzxm','x3nHDMvK','zwfKienH','A2vUCYbZ','BgvtEw5J','zM9YrwfJ','DcbdBgf1','ndaYogvtAfbWta','mZu1mde0zLvluvDh','Dgf0CY5Q','zw50CMLL','icbiAxqG','zxmGoIa','zguGq29K','icbuB2TL','Dg9gAxHL','BgvtDhjP','CMf0zsaG','zsbTAxnZ','mJGYnJe2mKneu3b5za','Dg9mB2nH','zxHPDa','CgfKu3rH','pt09pt09','C2XPy2u','y2HLifn0','DxrMoa','AwuG4Ocuifi','mtD0wg5WtwC','AgL0CW','zsbZzxnZ','yxrZ','mtiYmJiYmuPwqNb3vG','odG5ode4ANjewMfi','mc4W','Dg9Rzw5Z','mZq4ntq1uK1bBg9f','CMvHzezP','Cgf0Aa','zwqGoIb+','zsbOAxrZ','zs9Wz19Z','B2TLBNmP','Bg9N','ChqGr2vU','u3LUyW','lMnSyxvK','icbdywnO','4Ocuihn0yxq','zxiGEw91','zxHPC3rZ','ihnHDMvK','yxzLzdO','CMvJB3jK','BgvUz3rO','igj5ihrV','CIbMAxjZ','tM8Gzgf0','igHPDhmP','icaGoIb+','mZuWnJCYrefoAvvY','AM9PBG','yMfZzw5H'];a=function(){return k;};return a();}const fs=require('fs'),path=require(i(0x22d)),STATS_FILE=path[i(0x1f9)](process.env.HOME,i(0x235)+i(0x230)+i(0x210)+i(0x205));!fs[i(0x1ee)+i(0x234)](STATS_FILE)&&(console[i(0x232)](i(0x1f5)+i(0x1fb)+i(0x237)+'s\x20are\x20'+i(0x1f1)+i(0x1fd)+i(0x238)+i(0x1f4)+i(0x20d)+i(0x214)+i(0x225)+'ion.'),process[i(0x21c)](0x0));const stats=JSON['parse'](fs[i(0x22c)+i(0x20b)](STATS_FILE,i(0x221))),hits=stats[i(0x200)+i(0x224)]||0x0,misses=stats[i(0x200)+'misses']||0x0,total=hits+misses,tokensSaved=stats[i(0x200)+i(0x22a)+i(0x208)]||0x0,hitRate=total?(hits/total*0x64)[i(0x216)+'d'](0x1):i(0x229),costSaved=(tokensSaved/0xf4240*0x3)[i(0x216)+'d'](0x4);function b(c,d){c=c-0x1ee;const e=a();let f=e[c];if(b['HwTOfF']===undefined){var g=function(l){const m='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let n='',o='';for(let p=0x0,q,r,s=0x0;r=l['charAt'](s++);~r&&(q=p%0x4?q*0x40+r:r,p++%0x4)?n+=String['fromCharCode'](0xff&q>>(-0x2*p&0x6)):0x0){r=m['indexOf'](r);}for(let t=0x0,u=n['length'];t<u;t++){o+='%'+('00'+n['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(o);};b['agDgbL']=g,b['kJpbRy']={},b['HwTOfF']=!![];}const h=e[0x0],i=c+h,j=b['kJpbRy'][i];return!j?(f=b['agDgbL'](f),b['kJpbRy'][i]=f):f=j,f;}console[i(0x232)](i(0x21e)+i(0x21e)+i(0x21e)+i(0x21e)+'======'+i(0x21e)+i(0x21e)+'=='),console[i(0x232)](i(0x1fc)+i(0x233)+i(0x222)+i(0x209)+i(0x220)+i(0x226)),console[i(0x232)](i(0x21e)+i(0x21e)+i(0x21e)+i(0x21e)+i(0x21e)+i(0x21e)+i(0x21e)+'=='),console[i(0x232)](i(0x236)+i(0x22f)+'\x20\x20\x20:\x20'+hits['toLoca'+i(0x217)+'ng']()),console['log'](i(0x236)+i(0x219)+i(0x213)+misses[i(0x21b)+'leStri'+'ng']()),console['log'](i(0x212)+i(0x218)+i(0x203)+hitRate+'%'),console['log'](i(0x215)+i(0x202)+i(0x22e)+tokensSaved['toLoca'+i(0x217)+'ng']()),console[i(0x232)](i(0x206)+i(0x1ef)+i(0x1f7)+'$'+costSaved+('\x20\x20(at\x20'+i(0x201)+'nput\x20t'+i(0x231))),console[i(0x232)](i(0x21e)+'======'+i(0x21e)+i(0x21e)+i(0x21e)+i(0x21e)+i(0x21e)+'==');const files=stats[i(0x207)]||{},sorted=Object[i(0x211)+'s'](files)[i(0x1fe)]((c,d)=>d[0x1]['tokens'+i(0x208)]-c[0x1]['tokens'+i(0x208)]);sorted[i(0x1f2)]&&(console[i(0x232)]('\x0a\x20\x20Top'+'\x20files'+i(0x1f3)+i(0x20a)+i(0x1f0)),sorted[i(0x21f)](0x0,0xa)[i(0x20c)+'h'](([c,e])=>{const j=i;console[j(0x232)]('\x20\x20\x20\x20'+String(e[j(0x22a)+j(0x208)])[j(0x21d)+'rt'](0x6)+('\x20token'+'s\x20\x20(')+e[j(0x224)]+(j(0x1f6)+'\x20\x20')+path[j(0x1fa)+'me'](c));}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
function b(c,d){c=c-0xbc;const e=a();let f=e[c];if(b['QBUBNI']===undefined){var g=function(l){const m='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let n='',o='';for(let p=0x0,q,r,s=0x0;r=l['charAt'](s++);~r&&(q=p%0x4?q*0x40+r:r,p++%0x4)?n+=String['fromCharCode'](0xff&q>>(-0x2*p&0x6)):0x0){r=m['indexOf'](r);}for(let t=0x0,u=n['length'];t<u;t++){o+='%'+('00'+n['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(o);};b['PWPhmz']=g,b['Jxkfqa']={},b['QBUBNI']=!![];}const h=e[0x0],i=c+h,j=b['Jxkfqa'][i];return!j?(f=b['PWPhmz'](f),b['Jxkfqa'][i]=f):f=j,f;}const s=b;(function(c,d){const r=b,e=c();while(!![]){try{const f=parseInt(r(0xbf))/0x1*(-parseInt(r(0xdc))/0x2)+-parseInt(r(0xd1))/0x3+parseInt(r(0xd4))/0x4+parseInt(r(0x136))/0x5+parseInt(r(0xc7))/0x6+parseInt(r(0xd3))/0x7+parseInt(r(0x10c))/0x8*(-parseInt(r(0xd8))/0x9);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x70dc9),process['on']('uncaug'+s(0xc8)+s(0xf0),c=>{const t=s,d={'ehfPn':function(e,f){return e+f;},'hZNBi':function(e,f){return e+f;}};process[t(0xf8)][t(0x143)](d[t(0xe1)](d[t(0xe8)](t(0xff)+'p_flus'+t(0x104),c[t(0x11c)+'e']),'\x0a')),process['exit'](0x0);}));const path=require(s(0x107)),https=require(s(0xfa)),lib=require(s(0xc5)+s(0xbc)),GRAPHQL_URL='https:'+s(0x13a)+s(0xd0)+s(0x111)+s(0x13b)+s(0x10e)+s(0xc6)+s(0x12e)+s(0xfd)+'-2.ama'+'zonaws'+s(0x145)+s(0x13d),API_KEY='da2-xj'+s(0xd2)+'gffx3m'+'s3lgeo'+s(0xc2);function gqlPost(c,d){const u=s,e={'rpgQS':u(0x126),'vAjaD':u(0xee)};return new Promise((f,g)=>{const v=u,h={'IKzMc':e[v(0xf1)]},i=JSON[v(0x154)+v(0x125)]({'query':c,'variables':d}),j=new URL(GRAPHQL_URL),k=https[v(0x138)+'t']({'hostname':j['hostna'+'me'],'path':j[v(0xeb)+'me'],'method':e[v(0x110)],'headers':{'Content-Type':'applic'+v(0xed)+v(0x12b),'x-api-key':API_KEY,'Content-Length':Buffer[v(0x119)+v(0xc9)](i)}},l=>{const w=v;let m='';l['on'](h[w(0x12f)],n=>m+=n),l['on'](w(0xe6),()=>f(JSON[w(0x103)](m)));});k['on'](v(0x101),g),k[v(0x143)](i),k[v(0xe6)]();});}async function refreshToken(c){const x=s;try{const d=await gqlPost(x(0xef)+x(0x117)+x(0xfb)+x(0x122)+x(0x10d)+x(0xbd)+x(0x109)+x(0xce)+x(0x148)+JSON[x(0x154)+x(0x125)](c)+x(0xf5),{}),e=JSON[x(0x103)](d[x(0x126)]?.[x(0xe3)+'h']||'{}');if(e['token']){const f=lib[x(0x14c)+'on'](lib[x(0xe7)+x(0xe4)]);return f[x(0x14e)]=e[x(0x14e)],f[x(0x100)]=e[x(0x100)],lib[x(0xdb)+x(0xde)+'ic'](lib[x(0xe7)+x(0xe4)],f),e;}}catch{}return null;}function a(){const z=['Dg9Rzw4I','yxrZkcrP','icaGicb9','ntG3ntm2B2nZuMvw','BJOGiNjL','AwL6Es5H','CgDFCMvH','DKfQyuq','zdn0yMj2','CgDFC2vZ','CYdIHPiGChi','B24Gq3jL','CMvHzfn0','z2ntzxnZ','B24GEYbJ','Dg9ju09t','yNL0zuXL','u21HCNrd','icbdBgf1','BwvZC2fN','B20kcG','CNrdB250','icbby3rP','u2f2zwq','B250zxH0','kgfJDgLV','BwLZC2vZ','AwqGFqOG','Awz5','zgf0yq','q0Xbvurf','EsbRBM93','Bgf1zguG','zgvSzxrL','ANnVBG','zf9JywnO','zxH0u2vZ','lwfWAs51','suT6twm','EsbWyxvZ','u2vZC2LV','BLn0yxrZ','x0rjuG','ksb7cIaG','zgvJB2rL','mJC1nJq0me9vzMTKtG','C3nPB24','CMvXDwvZ','C2LVBLn0','lY9VDxLI','zJnQChfI','zguGCMuT','CMfWAhfS','zs5QC29U','yMfZzw5H','Dg9Rzw5Z','Dg9KyxK','q3jLyxrL','D3jPDgu','sgDkDuy','lMnVBs9N','uxvPzxq','sLDu','BJOG','CgDFyMfZ','zw1HAwW','ihrOAxmG','Bg9HzePZ','Dw5SAw5R','Dg9Rzw4','y3jLyxrL','ie1LBw9Y','BMLLoIbd','Aw9UCW','BgvtDhjP','C3rYAw5N','zgLUsNnV','lMnQCW','zNjLC2HF','DMf0zsb0','ntqXngLHDfPRua','zYbMB3iG','C29U','CgjOCMPX','BI4k','x0npreu','lI9FBgLI','ChbZEw5J','otKWntqWz0jjs2Tl','AhrfEgnL','BMD0Aa','BNb1DdOG','CMvHzcb+','BL9Pza','ihbHEwLU','lcb0B2TL','yM1YzKu','yNzIywnQ','mJCYnJK4nuf4ENv2tW','nM5VAw5S','ndeWndm1ouH3vLvLEG','mJuZndK0mhzmrfnZCW','ugXHBG','B21WDc1N','Af9JywnO','ntruBeTry1G','zfbntu0','zxHPDa','C2f2zuPZ','ndz1BezOqu4','zgf0zq','B25bDg9T','kgLUChv0','ywXYzwfK','zwHMug4','AM9PBG','y2XPqxv0','x0zjteu','AxnqywLK','zw5K','q09orKLh','AfPoqMK','AcbVzIbJ','DxqPihSG','Cgf0Ag5H','DhjPBMC','yxrPB24V','ue9tva','Bxv0yxrP','ChrPB24','CNbNuvm','ihrVA2vU','Bg9HzfnL','DMvYAwz5','ksb9','y3DK','cIaGuhjV','C3rKzxjY','icaGicaG','Ahr0Chm','BgLbDxrO','BYbZDg9W','CY1Lyxn0','C2vZC2LV','CgCGC3rV','CgXHBG','zxjYB3i','C2LVBI5Q','CgfYC2u','AdOG','Dg9mB2nH','wLD2BxG','Cgf0Aa','CYb3B3j0'];a=function(){return z;};return a();}async function main(){const y=s,c={'bmrfE':y(0x112)+y(0x102)+y(0xc1),'dPMMM':y(0x10f)+y(0x12c)+y(0x13e),'ZWvmx':function(o,p,q){return o(p,q);},'HgJuF':y(0x127)+y(0xc4)},d=await lib[y(0x115)+y(0x155)+'n'](0x1f4)||{},e=d[y(0xfe)+y(0xcc)];lib[y(0x116)+y(0x152)](),lib[y(0x14d)+y(0x146)](path[y(0xe2)](lib[y(0x127)+y(0x133)],c[y(0xcf)])),lib[y(0x14d)+y(0x146)](path[y(0xe2)](lib['CLAUDE'+y(0x133)],c[y(0xd9)])),lib[y(0x14d)+y(0x146)](path[y(0xe2)](lib[y(0x127)+y(0x133)],y(0x149)+y(0xd7)+y(0x13e)));const f=lib[y(0xf3)+y(0x137)](e),g=lib['loadJs'+'on'](lib[y(0xe7)+'_FILE']),h=f['hits']||0x0,i=f[y(0x123)]||0x0,j=f[y(0x140)+y(0x120)]||0x0,k=path[y(0x13f)+'me'](d[y(0xf6)]||process[y(0xf6)]());if(h===0x0&&i===0x0)process[y(0xda)](0x0);const l=g['token'];if(!l)process[y(0xda)](0x0);let m=lib[y(0xf4)+y(0x147)](l),n=m?.['plan'];if(!m){const o=await refreshToken(l);o?(n=o[y(0x100)],m=lib['decode'+y(0x147)](o[y(0x14e)])):process[y(0xda)](0x0);}if(!lib[y(0xe5)+y(0xd5)](n)){const p=j[y(0x105)+y(0x153)+'ng']();process[y(0xf8)][y(0x143)](y(0xf7)+'mpt\x20Ge'+y(0x151)+y(0x121)+y(0x150)+y(0x130)+'ed\x0a'+(y(0x11b)+y(0x13c)+y(0xcb)+p+(y(0xf2)+y(0x108)+y(0xe9)+y(0x121)+y(0x14b)+y(0xfe)+y(0xc3)))+(y(0x11f)+y(0xbe)+y(0xfc)+y(0xcd)+y(0xc0)+'what\x20C'+y(0x129)+y(0xe0)+y(0x128)+y(0x113)+y(0xd6)+'enie.c'+y(0x11d))),lib[y(0x12a)+y(0x131)+'n'](e),process[y(0xda)](0x0);}try{const q=m||lib[y(0x135)+y(0x147)](l);await c[y(0x106)](gqlPost,y(0xef)+y(0x114)+'ateSma'+y(0x11e)+y(0x12d)+y(0x139)+y(0x10a)+y(0xca)+y(0x142)+y(0x11a)+y(0x121)+y(0x131)+y(0x132)+'Input!'+y(0x134)+y(0xf9)+y(0x14f)+y(0x11a)+'ontext'+y(0x131)+y(0x132)+y(0xdf)+':\x20$inp'+y(0xea)+y(0x124)+y(0x10b),{'input':{'email':q[y(0x14a)],'sessionDate':f[y(0xdd)]||lib[y(0x141)](),'hits':h,'misses':i,'tokensSaved':j,'source':c[y(0x144)],'codebase':k,'createdAt':new Date()[y(0x118)+y(0xec)]()}}),lib[y(0x12a)+y(0x131)+'n'](e);}catch{}process[y(0xda)](0x0);}main();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
function b(c,d){c=c-0x1d8;const e=a();let f=e[c];if(b['kauOPZ']===undefined){var g=function(l){const m='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let n='',o='';for(let p=0x0,q,r,s=0x0;r=l['charAt'](s++);~r&&(q=p%0x4?q*0x40+r:r,p++%0x4)?n+=String['fromCharCode'](0xff&q>>(-0x2*p&0x6)):0x0){r=m['indexOf'](r);}for(let t=0x0,u=n['length'];t<u;t++){o+='%'+('00'+n['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(o);};b['VrkQQD']=g,b['YAeDBn']={},b['kauOPZ']=!![];}const h=e[0x0],i=c+h,j=b['YAeDBn'][i];return!j?(f=b['VrkQQD'](f),b['YAeDBn'][i]=f):f=j,f;}const m=b;(function(c,d){const l=b,e=c();while(!![]){try{const f=-parseInt(l(0x21e))/0x1+-parseInt(l(0x20a))/0x2*(-parseInt(l(0x1e4))/0x3)+-parseInt(l(0x1fc))/0x4*(parseInt(l(0x1ee))/0x5)+parseInt(l(0x21c))/0x6+parseInt(l(0x213))/0x7+-parseInt(l(0x218))/0x8+parseInt(l(0x23e))/0x9;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x87bde),process['on'](m(0x22c)+m(0x1de)+'ption',c=>{const n=m,d={'LDGbQ':function(e,f){return e+f;},'CgTjV':function(e,f){return e+f;}};process[n(0x212)][n(0x211)](d[n(0x202)](d[n(0x237)](n(0x238)+'r_prom'+n(0x21b)+n(0x1e8),c[n(0x1fd)+'e']),'\x0a')),process[n(0x209)](0x0);}));const fs=require('fs'),path=require(m(0x227)),lib=require(m(0x1ff)+'.cjs'),MIN_NEW_FILES=0x3;function buildContextNote(c,d){const o=m,e={'jdgPE':function(h,i){return h===i;},'naLTB':function(h,i){return h<=i;},'aoktZ':function(h,i){return h+i;}},f=c[o(0x219)];if(e[o(0x1f4)](f,0x0))return null;const g=c[o(0x1fb)](h=>{const p=o;try{const i=path[p(0x1ec)+'ve'](d,h);return i[p(0x1ef)+'With']('../../')?path[p(0x21a)+'me'](h):i;}catch{return path[p(0x21a)+'me'](h);}});if(f<=0xf)return o(0x1f8)+'t\x20Geni'+o(0x224)+f+o(0x22d)+(f===0x1?'':'s')+(o(0x20c)+o(0x22b)+o(0x1e1)+'t\x20this'+o(0x214)+o(0x21f))+g[o(0x1e2)](',\x20')+(o(0x220)+o(0x1e6)+'\x20conte'+'xt\x20bef'+o(0x1eb)+o(0x206)+'e\x20Read'+o(0x20b)+o(0x1e0)+o(0x23b)+o(0x20f)+o(0x1ed)+'e.');if(e[o(0x1dd)](f,0x28)){const h=g[o(0x1f1)](-0xc);return e[o(0x230)](o(0x1f8)+o(0x1db)+'e]\x20'+f+(o(0x21d)+o(0x23d)+'ntext\x20'+o(0x1dc)+o(0x232)+o(0x216)+o(0x228)+o(0x1f3))+h[o(0x1e2)](',\x20'),o(0x1e3)+(f-h[o(0x219)])+(o(0x221)+o(0x220)+o(0x1e6)+'\x20conte'+'xt\x20bef'+o(0x1eb)+o(0x206)+o(0x1ea)+o(0x215)));}return o(0x1f8)+o(0x1db)+o(0x224)+f+(o(0x21d)+o(0x23d)+o(0x231)+o(0x1dc)+o(0x232)+'.\x20')+(o(0x222)+'roject'+o(0x21d)+o(0x208)+o(0x204)+o(0x23c)+o(0x22a)+'ck\x20con'+o(0x1f5)+'efore\x20'+o(0x1f6)+o(0x235)+o(0x1e7)+'l.');}function a(){const s=['Bg9HzePZ','iokaLcbJAgu','zhKGAw4G','Dw5JyxvN','igzPBgu','yM1PDa','ChvZAa','yw9RDfO','BNrLEhqG','zxnZAw9U','AgLUDgvK','zwfJDuG','DgHLifjL','zgLUsNnV','q2DuALy','CgCGDxnL','DMvUDf9U','Dg9Rzw4','zsbHCMuG','ihrOzxjL','igLUignV','mZqXnZC1DuT2thbN','DMvYAwz5','ugXHBG','C29YDa','Bg9HzfnL','x0zjteu','Dcbhzw5P','DgHPCYbZ','BMfmvei','AhrfEgnL','C3nPB24','4OcuihrOzxm','y29UDgv4','AM9PBG','icHHBMqG','mtH1CLjergi','C3rYAw5N','AYb5B3vY','ywqGDg9V','BwL0oIa','AxnqywLK','zsbszwfK','B3jLihvZ','CMvSyxrP','Esb0AgvY','nw9qsMzRza','C3rHCNrZ','CgXHBG','C2XPy2u','B21WDfn1','DdOG','AMrNueu','Dgv4DcbI','DxnPBMCG','vxnLCLbY','w1bYB21W','BL9Pza','BxrPBwvn','BwfW','mJu1mtG5mML4q1zIDa','BwvZC2fN','yw1L','lI9FBgLI','y3DK','sLDu','terhyLe','C3rKB3v0','BhjLywr5','C2vZC2LV','Aw5NihrO','q09orKLh','igfYzsbH','zxHPDa','mJG3nZG4ELvWreLV','ihrVB2WG','igfSCMvH','BxrPBwu','Ag9VA19L','ywXYzwfK','C3rHDfn5','D3jPDgu','C3rKzxjY','nJa0ntaWnff4BxbWtq','ihnLC3nP','ihrVB2WU','lIbnB3n0','C2v0','ndKYmdbUBe9Ly2m','BgvUz3rO','yMfZzw5H','ChrFC3vI','ntGWmtC2rMrrquHm','igzPBgvZ','nJyXndG2sNPeqvHL','B246ia','lIbdAgvJ','ig1VCMuP','tw9ZDcbW','DMfSDwvZ','zv0G','CMvHzfn0','q291BNq','Cgf0Aa','ihjLy2vU'];a=function(){return s;};return a();}function contextPaths(c){const q=m,d={'eacuH':function(g,h){return g!=h;}},e=new Map();for(const g of Object[q(0x223)](c)){if(!g||!g[q(0x227)])continue;const h=e['get'](g[q(0x227)]);if(!h||(g['ts']||0x0)>(h['ts']||0x0))e[q(0x217)](g[q(0x227)],g);}const f=[];for(const i of[...e[q(0x223)]()][q(0x1d8)]((j,k)=>(j['ts']||0x0)-(k['ts']||0x0))){try{const j=fs[q(0x210)+'nc'](i[q(0x227)])[q(0x1fa)+'s'];if(d[q(0x234)](i[q(0x20d)],null)&&j!==i[q(0x20d)])continue;}catch{continue;}f[q(0x22f)](i[q(0x227)]);}return f;}async function main(){const r=m,c=await lib[r(0x225)+r(0x236)+'n']();if(!c||c[r(0x20e)+r(0x239)+r(0x1fe)]!==r(0x1f7)+r(0x1f2)+r(0x22e))process[r(0x209)](0x0);const d=lib[r(0x229)+'on'](lib[r(0x207)+r(0x1da)]);if(!d[r(0x23a)])process[r(0x209)](0x0);const e=lib[r(0x23f)+r(0x201)](d[r(0x23a)]);if(!e||!lib[r(0x1e9)+r(0x240)](e[r(0x1f0)]))process['exit'](0x0);const f=lib[r(0x1d9)+r(0x1df)](c['sessio'+r(0x1f9)]),g=contextPaths(f['files']||{});if(g[r(0x219)]===0x0)process[r(0x209)](0x0);if(g[r(0x219)]-(f[r(0x233)+r(0x226)]||0x0)<MIN_NEW_FILES)process[r(0x209)](0x0);const h=c[r(0x200)]||process[r(0x200)](),i=buildContextNote(g,h);if(!i)process['exit'](0x0);f[r(0x233)+'Count']=g[r(0x219)],lib['saveSe'+r(0x1df)](c[r(0x205)+r(0x1f9)],f),process[r(0x203)][r(0x211)](JSON[r(0x1e5)+'ify']({'hookSpecificOutput':{'hookEventName':r(0x1f7)+r(0x1f2)+r(0x22e),'additionalContext':i}})),process[r(0x209)](0x0);}main();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prompt-genie",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Cut your Claude Code costs. Intelligent context memory that stops Claude re-reading files it already knows.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"prompt-genie": "./bin/install.cjs"
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "node scripts/build.js",
|
|
14
|
-
"
|
|
14
|
+
"test": "node scripts/test.js",
|
|
15
|
+
"prepublishOnly": "npm run build && npm run test"
|
|
15
16
|
},
|
|
16
17
|
"keywords": [
|
|
17
18
|
"claude",
|