prompt-genie 0.3.0 → 0.3.1

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 CHANGED
@@ -4,6 +4,7 @@ const path = require("path");
4
4
  const os = require("os");
5
5
  const https = require("https");
6
6
  const readline = require("readline");
7
+ const crypto = require("crypto");
7
8
 
8
9
  const HOOKS_DEST = path.join(os.homedir(), ".prompt-genie", "hooks");
9
10
  const SETTINGS_FILE = path.join(os.homedir(), ".claude", "settings.json");
@@ -13,6 +14,16 @@ const HOOKS_SRC = path.join(__dirname, "..", "dist", "hooks");
13
14
  const GRAPHQL_URL = "https://ouybbvbacjd3tbbvf3jpqbiizy.appsync-api.us-east-2.amazonaws.com/graphql";
14
15
  const API_KEY = "da2-xj6noinlgffx3ms3lgeopbhrjq";
15
16
 
17
+ const PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
18
+ MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArjBMJfK6K8JnPvZR3kuS
19
+ d80nO2gvF2AULghE6WNtD1N0+k2GPShpGBiV/6WugrP840i8MRL+fyBid7DQw6Tj
20
+ eqZ7lj8wHTKglNZCRgOvmV+Q9LOpUfDCV+znUlEJLlbZy73X2CNPN6D2kfKPL7yT
21
+ Yo9HJG2j2n0BQhrQELbSct1q4hNMwcie2X5S9mR+lwcxRFEsvLuVe33hH0Rk6CSz
22
+ BP0MCcqwkHCs8a5bdm2U5KveIv1pMUwwl8HKki3rjYbv7scdXPgERs27tRbpLdYj
23
+ 2+MhWaGHrt21pfASIKPwFiZaMhOV49hT3CC3rRY4zgtExFfYIx8qHt4LDM3rSheM
24
+ dwIDAQAB
25
+ -----END PUBLIC KEY-----`;
26
+
16
27
  function loadJson(file) {
17
28
  try { return JSON.parse(fs.readFileSync(file, "utf8")); } catch { return {}; }
18
29
  }
@@ -27,6 +38,19 @@ function ask(question) {
27
38
  return new Promise((resolve) => rl.question(question, (ans) => { rl.close(); resolve(ans.trim()); }));
28
39
  }
29
40
 
41
+ function verifyJWT(token) {
42
+ try {
43
+ const [header, payload, signature] = token.split(".");
44
+ if (!header || !payload || !signature) return null;
45
+ const verify = crypto.createVerify("RSA-SHA256");
46
+ verify.update(`${header}.${payload}`);
47
+ if (!verify.verify(PUBLIC_KEY, signature, "base64url")) return null;
48
+ const decoded = JSON.parse(Buffer.from(payload, "base64url").toString());
49
+ if (decoded.exp < Math.floor(Date.now() / 1000)) return null;
50
+ return decoded;
51
+ } catch { return null; }
52
+ }
53
+
30
54
  function gqlPost(query) {
31
55
  return new Promise((resolve, reject) => {
32
56
  const body = JSON.stringify({ query });
@@ -63,40 +87,84 @@ function copyHooks() {
63
87
  function wireHooks() {
64
88
  const settings = loadJson(SETTINGS_FILE);
65
89
  settings.hooks = settings.hooks || {};
66
-
67
90
  settings.hooks.PreToolUse = [
68
- {
69
- matcher: "Read",
70
- hooks: [{ type: "command", command: `node ${path.join(HOOKS_DEST, "pre_read.cjs")}` }],
71
- },
91
+ { matcher: "Read", hooks: [{ type: "command", command: `node ${path.join(HOOKS_DEST, "pre_read.cjs")}` }] },
72
92
  ];
73
93
  settings.hooks.PostToolUse = [
74
- {
75
- matcher: "Read",
76
- hooks: [{ type: "command", command: `node ${path.join(HOOKS_DEST, "post_read.cjs")}` }],
77
- },
94
+ { matcher: "Read", hooks: [{ type: "command", command: `node ${path.join(HOOKS_DEST, "post_read.cjs")}` }] },
78
95
  ];
79
96
  settings.hooks.Stop = [
80
- {
81
- hooks: [{ type: "command", command: `node ${path.join(HOOKS_DEST, "stop_flush.cjs")}` }],
82
- },
97
+ { hooks: [{ type: "command", command: `node ${path.join(HOOKS_DEST, "stop_flush.cjs")}` }] },
83
98
  ];
84
-
85
99
  saveJson(SETTINGS_FILE, settings);
86
100
  }
87
101
 
102
+ function finishInstall(email, plan, token) {
103
+ copyHooks();
104
+ wireHooks();
105
+ saveJson(CONFIG_FILE, { email, plan, token });
106
+
107
+ const isPaid = ["PRO", "ANNUAL_PRO", "THREE_DAY_PASS", "TEAMS", "ENTERPRISE"].includes(plan);
108
+ if (isPaid) {
109
+ console.log(`
110
+ You're all set.
111
+
112
+ Prompt Genie is now active in Claude Code. Every file Claude reads
113
+ gets remembered for the session. No more paying to re-read
114
+ the same code on every turn.
115
+
116
+ Restart VS Code to activate, then start a session as normal.
117
+ Your context savings will appear at prompt-genie.com/dashboard.
118
+ `);
119
+ } else {
120
+ console.log(`
121
+ Installed.
122
+
123
+ You're on the Free plan. Prompt Genie is running but context
124
+ memory is paused. At the end of each session you'll see how much
125
+ you would have saved.
126
+
127
+ Activate context memory -> prompt-genie.com/pricing
128
+ `);
129
+ }
130
+ }
131
+
88
132
  async function main() {
89
133
  console.log("\n Prompt Genie for Claude Code\n");
134
+
135
+ // Check for existing valid token — skip auth if still good
136
+ const existing = loadJson(CONFIG_FILE);
137
+ if (existing.token && existing.email) {
138
+ const jwt = verifyJWT(existing.token);
139
+ if (jwt) {
140
+ console.log(` Updating hooks for ${existing.email}...`);
141
+ finishInstall(existing.email, existing.plan, existing.token);
142
+ return;
143
+ }
144
+
145
+ // Token expired — try a silent refresh before asking for email
146
+ console.log(" Refreshing session...");
147
+ try {
148
+ const res = await gqlPost(
149
+ `mutation { cliAuth(action: "refresh_token", token: ${JSON.stringify(existing.token)}) }`
150
+ );
151
+ const result = JSON.parse(res.data?.cliAuth || "{}");
152
+ if (result.success && result.token) {
153
+ finishInstall(existing.email, result.plan, result.token);
154
+ return;
155
+ }
156
+ } catch { /* fall through to full auth */ }
157
+ }
158
+
159
+ // Full auth flow (first install or refresh failed)
90
160
  console.log(" Reduce what Claude re-reads every session.\n");
91
161
 
92
- // Step 1: get email
93
162
  const email = await ask(" Enter your Prompt Genie email: ");
94
163
  if (!email || !email.includes("@")) {
95
164
  console.error(" Invalid email. Run again with a valid address.");
96
165
  process.exit(1);
97
166
  }
98
167
 
99
- // Step 2: send magic link
100
168
  console.log("\n Sending verification code to " + email + "...");
101
169
  try {
102
170
  const res = await gqlPost(
@@ -112,7 +180,6 @@ async function main() {
112
180
  process.exit(1);
113
181
  }
114
182
 
115
- // Step 3: ask for code
116
183
  console.log(" Check your email for a 6-digit code.\n");
117
184
  const code = await ask(" Enter code: ");
118
185
  if (!code || code.length !== 6) {
@@ -120,9 +187,7 @@ async function main() {
120
187
  process.exit(1);
121
188
  }
122
189
 
123
- // Step 4: verify code → get JWT
124
190
  console.log("\n Verifying...");
125
- let token, plan;
126
191
  try {
127
192
  const res = await gqlPost(
128
193
  `mutation { cliAuth(action: "verify_magic_link", email: ${JSON.stringify(email)}, code: ${JSON.stringify(code)}) }`
@@ -132,44 +197,11 @@ async function main() {
132
197
  console.error(" " + (result.error || "Verification failed. Try again."));
133
198
  process.exit(1);
134
199
  }
135
- token = result.token;
136
- plan = result.plan;
200
+ finishInstall(email, result.plan, result.token);
137
201
  } catch (err) {
138
202
  console.error(" Network error:", err.message);
139
203
  process.exit(1);
140
204
  }
141
-
142
- // Step 5: install
143
- console.log(" Installing...");
144
- copyHooks();
145
- wireHooks();
146
- saveJson(CONFIG_FILE, { email, plan, token });
147
-
148
- // Step 6: result message based on plan
149
- const isPaid = ["PRO", "ANNUAL_PRO", "THREE_DAY_PASS", "TEAMS", "ENTERPRISE"].includes(plan);
150
-
151
- if (isPaid) {
152
- console.log(`
153
- ✅ You're all set.
154
-
155
- Prompt Genie is now active in Claude Code. Every file Claude reads
156
- gets remembered for the session. No more paying to re-read
157
- the same code on every turn.
158
-
159
- Restart VS Code to activate, then start a session as normal.
160
- Your context savings will appear at prompt-genie.com/dashboard.
161
- `);
162
- } else {
163
- console.log(`
164
- ✅ Installed.
165
-
166
- You're on the Free plan. Prompt Genie is running but context
167
- memory is paused. At the end of each session you'll see how much
168
- you would have saved.
169
-
170
- Activate context memory → prompt-genie.com/pricing
171
- `);
172
- }
173
205
  }
174
206
 
175
207
  main().catch((err) => {
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const n=b;(function(c,d){const m=b,e=c();while(!![]){try{const f=parseInt(m(0x1fd))/0x1*(parseInt(m(0x1ee))/0x2)+-parseInt(m(0x201))/0x3*(-parseInt(m(0x203))/0x4)+parseInt(m(0x1e1))/0x5+-parseInt(m(0x1e2))/0x6+-parseInt(m(0x1ed))/0x7+-parseInt(m(0x1e5))/0x8*(parseInt(m(0x1f0))/0x9)+-parseInt(m(0x1fa))/0xa*(-parseInt(m(0x1d5))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x2f2ce));const fs=require('fs'),path=require(n(0x1f5)),CACHE_FILE=path[n(0x1e8)](process.env.HOME,n(0x1fb)+n(0x1f8)+n(0x1d3)+n(0x1f1)+'on'),STATS_FILE=path[n(0x1e8)](process.env.HOME,n(0x1fb)+n(0x1df)+n(0x1ff)+n(0x1ce)),SESSION_FILE=path['join'](process.env.HOME,'.claud'+'e/pg_s'+n(0x1cf)+n(0x1ec));function loadJson(c){const o=n;try{return JSON[o(0x1d1)](fs[o(0x200)+'leSync'](c,'utf8'));}catch{return{};}}function saveJson(c,d){const p=n;fs[p(0x1da)+p(0x1f6)+'c'](c,JSON[p(0x1db)+p(0x1ca)](d,null,0x2));}function b(c,d){c=c-0x1ca;const e=a();let f=e[c];if(b['AodqZB']===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['mTPDCE']=g,b['tMcYsl']={},b['AodqZB']=!![];}const h=e[0x0],i=c+h,j=b['tMcYsl'][i];return!j?(f=b['mTPDCE'](f),b['tMcYsl'][i]=f):f=j,f;}function recordMiss(){const q=n,c={'FRvgX':function(f,g){return f(g);},'GoQwq':function(f,g,h){return f(g,h);},'EOQJv':function(f,g){return f(g);}},d=c[q(0x1dd)](loadJson,STATS_FILE);d[q(0x1e3)+q(0x1e7)]=(d[q(0x1e3)+q(0x1e7)]||0x0)+0x1,c[q(0x1e9)](saveJson,STATS_FILE,d);const e=c[q(0x1f7)](loadJson,SESSION_FILE);e[q(0x1e7)]=(e[q(0x1e7)]||0x0)+0x1,e[q(0x1d0)]=new Date()[q(0x1dc)+q(0x1cb)]()[q(0x1ef)](0x0,0xa),saveJson(SESSION_FILE,e);}function a(){const s=['zgf0yq','BxrPBwvn','D3jPDgvg','C3rYAw5N','Dg9ju09t','rLj2z1G','BNb1Da','zs9Wz19Z','uMvHza','mtCWmJu4nwjptxHmDa','mtK5mdCYmLHSBLf4vG','Dg90ywXF','Dgv4Da','mJrdsgPZzM0','y29UDgvU','BwLZC2vZ','AM9PBG','r29rD3e','BwfW','zMLSzv9W','lMPZB24','mJuZnZeWmxrhBfHJsq','ogXjyvv4AG','C2XPy2u','mZK1oteWD0fxDufA','y2HLlMPZ','zxnWB25Z','Dg9VBf9U','zw5K','Cgf0Aa','AwXLu3LU','ru9rsNy','zs9Wz19Y','yw1L','mte2mduWzgHrq1Dy','lMnSyxvK','Dg9VBf9P','ndy0nJHYANHYywG','zxHPC3rZ','Dgf0CY5Q','CMvHzezP','nJa4nZq4sLjVquHr','C3rKAw4','nefiCfvyBq','Awz5','DhjPBMC','B2jQzwn0','zxHPDa','C29U','zxnZAw9U','zgf0zq','CgfYC2u','C3rHDfn5','zwfKx2nH','BgvLr2q','mJC1uenkt1jy','AxnbCNjH','Dg9VBf9Y'];a=function(){return s;};return a();}let raw='';process[n(0x202)]['on'](n(0x1d8),c=>raw+=c),process[n(0x202)]['on'](n(0x1f4),()=>{const r=n,d={'leeGd':function(k){return k();}};let e;try{e=JSON[r(0x1d1)](raw);}catch{process[r(0x1cd)](0x0);}if(e[r(0x1f3)+r(0x1f9)]!==r(0x1e0))process[r(0x1cd)](0x0);const f=e[r(0x1fc)+r(0x1de)]?.[r(0x1eb)+'ath'];let g=e[r(0x1d7)+r(0x1f2)+'e']??'';if(typeof g===r(0x1cc)){const k=g[r(0x1e6)+'t'];g=Array[r(0x1d6)+'y'](k)?k[r(0x1ea)](l=>l[r(0x1e4)]??'')[r(0x1e8)](''):JSON[r(0x1db)+'ify'](g);}if(!f||!g||!fs[r(0x1fe)+'Sync'](f))process[r(0x1cd)](0x0);let h;try{h=fs[r(0x1d2)+'nc'](f)[r(0x1d9)+'s'];}catch{process[r(0x1cd)](0x0);}const i=loadJson(CACHE_FILE),j={};j['mtime']=h,j[r(0x1e6)+'t']=g,i[f]=j,saveJson(CACHE_FILE,i),d[r(0x1d4)](recordMiss),process['exit'](0x0);});
2
+ function a(){const u=['ovrmwLfkuW','zxnWB25Z','lMnSyxvK','BgvtEw5J','BxrPBwvn','mZjMzg5ys3u','ntKWndCWAufNsu1x','uhLir08','Dg9VBf9P','C2XPy2u','BwLZC2vZ','y29UDgvU','Dg9VBf9U','BxrPBwu','zs9Wz19Z','zMLSzv9W','C3rYAw5N','yxrO','C3rHDfn5','mZmXntC1m0XkDKTfBa','AM9PBG','zwfKx2nH','DhjPBMC','Cgf0Aa','B2jQzwn0','Awz5','CgfYC2u','Dg90ywXF','Dg9ju09t','mZeYodGYt2rnvgf2','odi2nda1zgXireXf','ndi0odLQvM5jDK4','uMvHza','AMTfAwC','mJq4ndjdB2fYAwu','CwXlufO','BNb1Da','CMvHzezP','D3jPDgvg','zxHPC3rZ','AxnbCNjH','C3rKAw4','ndm3mdi1D09Ir1bR','CxLqsKW','lMPZB24','Dgv4Da','zgf0yq','DxrMoa','ofjQyNLYqG','BwfW','Dg9VBf9Y','yw1L','zxHPDa','zxnZAw9U','zw5K','yLPJELa','C29U'];a=function(){return u;};return a();}const p=b;function b(c,d){c=c-0x1c8;const e=a();let f=e[c];if(b['yWdQKT']===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['bAIRVo']=g,b['bJvNDB']={},b['yWdQKT']=!![];}const h=e[0x0],i=c+h,j=b['bJvNDB'][i];return!j?(f=b['bAIRVo'](f),b['bJvNDB'][i]=f):f=j,f;}(function(c,d){const o=b,e=c();while(!![]){try{const f=parseInt(o(0x1cb))/0x1+parseInt(o(0x1fc))/0x2*(-parseInt(o(0x1da))/0x3)+-parseInt(o(0x1d1))/0x4*(-parseInt(o(0x1f8))/0x5)+-parseInt(o(0x1f7))/0x6+-parseInt(o(0x1ed))/0x7+-parseInt(o(0x1df))/0x8*(-parseInt(o(0x1f9))/0x9)+parseInt(o(0x1e0))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x44f3d));const fs=require('fs'),path=require(p(0x1f1)),CACHE_FILE=path[p(0x1ee)](process.env.HOME,'.claud'+'e/pg_r'+p(0x1ef)+'che.js'+'on'),STATS_FILE=path[p(0x1ee)](process.env.HOME,p(0x1dc)+p(0x1e8)+'tats.j'+p(0x1d9)),SESSION_FILE=path[p(0x1ee)](process.env.HOME,'.claud'+p(0x1e8)+p(0x1d6)+p(0x1cd));function loadJson(d){const q=p,e={};e[q(0x1fb)]=q(0x1d0);const f=e;try{return JSON[q(0x1f4)](fs[q(0x1ff)+q(0x1dd)](d,f['jkEig']));}catch{return{};}}function saveJson(c,d){const r=p;fs[r(0x200)+'ileSyn'+'c'](c,JSON[r(0x1ea)+r(0x1f3)](d,null,0x2));}function recordMiss(){const s=p,c={'PyHGO':function(f,g){return f(g);},'qlKPZ':function(f,g){return f+g;},'bZczP':function(f,g){return f+g;}},d=c[s(0x1e1)](loadJson,STATS_FILE);d[s(0x1f5)+s(0x1e4)]=c[s(0x1fd)](d[s(0x1f5)+s(0x1e4)]||0x0,0x1),saveJson(STATS_FILE,d);const e=loadJson(SESSION_FILE);e['misses']=c[s(0x1d8)](e[s(0x1e4)]||0x0,0x1),e['date']=new Date()[s(0x1f6)+s(0x1f0)]()[s(0x1e3)](0x0,0xa),saveJson(SESSION_FILE,e);}let raw='';process[p(0x1ca)]['on'](p(0x1cf),c=>raw+=c),process[p(0x1ca)]['on'](p(0x1d7),()=>{const t=p,e={};e[t(0x1cc)]=t(0x1fa);const f=e;let g;try{g=JSON[t(0x1f4)](raw);}catch{process[t(0x1d5)](0x0);}if(g[t(0x1e6)+t(0x1d4)]!==f[t(0x1cc)])process['exit'](0x0);const h=g[t(0x1e2)+t(0x1fe)]?.[t(0x1e9)+t(0x1eb)];let i=g[t(0x1d3)+t(0x1db)+'e']??'';if(typeof i===t(0x1f2)){const m=i[t(0x1e5)+'t'];i=Array[t(0x1c9)+'y'](m)?m[t(0x1d2)](n=>n[t(0x1ce)]??'')[t(0x1ee)](''):JSON[t(0x1ea)+t(0x1f3)](i);}if(!h||!i||!fs[t(0x1c8)+'Sync'](h))process[t(0x1d5)](0x0);let j;try{j=fs[t(0x1ec)+'nc'](h)[t(0x1de)+'s'];}catch{process[t(0x1d5)](0x0);}const k=loadJson(CACHE_FILE),l={};l[t(0x1e7)]=j,l[t(0x1e5)+'t']=i,k[h]=l,saveJson(CACHE_FILE,k),recordMiss(),process[t(0x1d5)](0x0);});
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const o=b;function b(c,d){c=c-0x1c5;const e=a();let f=e[c];if(b['qiIpCU']===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['wVEsAW']=g,b['iqnhVH']={},b['qiIpCU']=!![];}const h=e[0x0],i=c+h,j=b['iqnhVH'][i];return!j?(f=b['wVEsAW'](f),b['iqnhVH'][i]=f):f=j,f;}(function(c,d){const n=b,e=c();while(!![]){try{const f=parseInt(n(0x22b))/0x1+parseInt(n(0x22d))/0x2*(parseInt(n(0x256))/0x3)+-parseInt(n(0x229))/0x4*(-parseInt(n(0x25c))/0x5)+-parseInt(n(0x1cd))/0x6+-parseInt(n(0x224))/0x7+parseInt(n(0x1c7))/0x8*(-parseInt(n(0x210))/0x9)+parseInt(n(0x1f4))/0xa*(-parseInt(n(0x203))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x91f53));const fs=require('fs'),path=require(o(0x221)),crypto=require('crypto'),CACHE_FILE=path[o(0x1e1)](process.env.HOME,'.claud'+'e/pg_r'+o(0x253)+o(0x25b)+'on'),STATS_FILE=path[o(0x1e1)](process.env.HOME,o(0x235)+o(0x20a)+o(0x239)+o(0x1e5)),SESSION_FILE=path[o(0x1e1)](process.env.HOME,o(0x235)+o(0x20a)+o(0x1f8)+o(0x238)),CONFIG_FILE=path[o(0x1e1)](process.env.HOME,'.claud'+o(0x1f9)+o(0x1e8)+o(0x1fa)),PUBLIC_KEY=o(0x1da)+o(0x1df)+o(0x22e)+o(0x23c)+o(0x21c)+o(0x1fc)+o(0x233)+'G9w0BA'+o(0x1d8)+o(0x24e)+o(0x241)+o(0x1d4)+o(0x1ee)+o(0x22c)+o(0x230)+o(0x24b)+o(0x1ff)+o(0x258)+o(0x1e6)+o(0x1fb)+o(0x1f1)+'iV/6Wu'+o(0x227)+o(0x259)+o(0x21d)+o(0x206)+o(0x20b)+o(0x208)+'glNZCR'+'gOvmV+'+o(0x245)+o(0x1d2)+o(0x1ec)+o(0x223)+o(0x204)+o(0x201)+o(0x1dd)+o(0x21b)+'2j2n0B'+o(0x22f)+o(0x207)+o(0x1fd)+'ie2X5S'+o(0x217)+o(0x247)+o(0x21e)+o(0x215)+o(0x240)+o(0x1c9)+o(0x237)+o(0x25e)+o(0x262)+o(0x24a)+o(0x202)+o(0x252)+o(0x249)+o(0x1d9)+o(0x1c6)+o(0x250)+o(0x218)+o(0x24c)+o(0x231)+o(0x1dc)+'OV49hT'+o(0x1d1)+o(0x225)+'xFfYIx'+o(0x1e7)+o(0x1e0)+o(0x1f7)+o(0x1db)+o(0x1eb)+o(0x214)+o(0x1ce)+o(0x1f0);function loadJson(c){const p=o;try{return JSON[p(0x209)](fs[p(0x211)+p(0x20c)](c,p(0x261)));}catch{return{};}}function saveJson(c,d){const q=o;fs[q(0x1f2)+q(0x1ca)+'c'](c,JSON[q(0x254)+q(0x1ed)](d,null,0x2));}function estimateTokens(c){const r=o;return Math[r(0x1ea)](0x1,Math[r(0x23e)](c[r(0x25f)]/0x4));}function verifyJWT(d){const s=o,e={};e[s(0x232)]=s(0x255)+s(0x243),e[s(0x1f3)]=function(g,h){return g/h;};const f=e;try{const [g,h,i]=d['split']('.');if(!g||!h||!i)return null;const j=crypto[s(0x24f)+s(0x25a)](f[s(0x232)]);j[s(0x1ef)](g+'.'+h);const k=j[s(0x23a)](PUBLIC_KEY,i,s(0x205)+'url');if(!k)return null;const l=JSON['parse'](Buffer[s(0x1f5)](h,s(0x205)+'url')[s(0x1c5)+'ng']());if(l[s(0x1cc)]<Math['floor'](f[s(0x1f3)](Date[s(0x242)](),0x3e8)))return null;return l;}catch{return null;}}function isPaidPlan(d){const t=o,e={};e[t(0x213)]=t(0x1e3)+t(0x246)+'SS',e[t(0x1c8)]=t(0x216),e[t(0x257)]=t(0x1cf)+t(0x236);const f=e;return['PRO',t(0x260)+t(0x1f6),f[t(0x213)],f[t(0x1c8)],f[t(0x257)]][t(0x25d)+'es'](d);}function a(){const w=['AM9PBG','zgf0zq','veHsruvF','C3rKB3v0','C29U','nLDoDeqX','ohfiDdrm','B25MAwCU','Eu1YDvu','Bwf4','ls0Tls1f','BLvSruPm','Awz5','AKjnsMzl','DxbKyxrL','ws0Tls0T','ufnOCeDc','D3jPDgvg','DwfHCue','mtbRt3HdD0K','zNjVBq','x1bstW','zu0kzhDj','zxnZAw9U','zs9Wz19J','ANnVBG','tJaRAZjh','qKLQqu5c','ngHotxDJ','Dg9Rzw5Z','tZjNDKyY','BNb1Da','nKqYA2zl','D2W4seTR','nti3ndC5n0TisePUsq','wdjdtLbo','yMfZzty0','rff3nLrQ','yLnJDdfX','AJH3sfrl','CgfYC2u','zs9Wz19Z','cMvXwJDS','BgvtEw5J','BgjfBxK','x3nHDMvK','BxrPBwvn','mtu3otG3ohLQC1nvyG','CMvHzezP','Dg9ju09t','zgTzCgO','tKqGufvc','m2HimfjR','vevbtvm','ow1sk2X3','twHxyuDi','BxrPBwu','vujRy0e','ww85sePh','ls0ktuLj','zNLcAwq3','DKX1vMuZ','DhjPBMC','zMLSzxm','Cgf0Aa','zgf0yq','BgjAEtCZ','nJm3nJq0s3zKDhb3','wtr6z3rf','zxHPDa','z3jqodqW','Dg90ywXF','nJe4mhL0ufzurG','C3rKAw4','odC1odG5wwLiEvLu','nKS4sM5q','nJKXnJzsDevmDNu','vujmsumG','uwHYuuvm','DLPsm2T1','qvnjs1b3','EeTkC0i','z2TXAgTP','AgL0CW','lMnSyxvK','uKLtrq','D2Tiq3m4','lMPZB24','Dgf0CY5Q','DMvYAwz5','u3LUyW','s0vzls0T','yxrO','zMXVB3i','u2f2zwq','nKntEGPc','suLcq2Dl','BM93','qti1nG','y29UDgvU','utLmt3bv','refzx1bb','y3HsrKvZ','Dg9VBf9U','DJDZy2ry','DJfWtvv3','uWPKodbU','CNqYmxbM','C3rHDfn5','q0froefn','y3jLyxrL','zfLQcJiR','uhLfvgS','AtnYALLI','zwfKx2nH','C3rYAw5N','uLnblvni','ntrVzLrXtxy','zxfhuM0','qvvmz2Hf','AtHnuKWR','vMvYAwz5','y2HLlMPZ','mtG3nwnlrMXPBa','Aw5JBhvK','ytvIzg0Y','BgvUz3rO','qu5ovufm','DxrMoa','vtvlDMvj','Dg9tDhjP','n3rsyNbm','ndbMve5pBha','t256DgG','udbnq2nX','AwXLu3LU','yw1L','zxHW','mtG5nte2D2PlzKzs','teLdieTf','ru5urvjq','D3jPDgu','m0ndm3js','zKrdvIT6','zMLSzv9W','q0frrufY','CgXHBG','uMvHza','zxHPC3rZ','uuvgqufp','ugDfuNmY','ls0Tls1c','refrquik','rMLAyu1O','ueW3Evqk','C2XPy2u','ruDjtIbq','re0ZCLnO'];a=function(){return w;};return a();}function recordHit(d,e){const u=o,f={'UBkcA':function(j,k,l){return j(k,l);},'PyETk':function(j,k){return j(k);}},g=loadJson(STATS_FILE);g[u(0x228)+'hits']=(g[u(0x228)+u(0x234)]||0x0)+0x1,g[u(0x228)+u(0x1fe)+u(0x20e)]=(g['total_'+'tokens'+u(0x20e)]||0x0)+e,g['files']=g[u(0x220)]||{};const h={};h[u(0x234)]=0x0,h[u(0x1fe)+u(0x20e)]=0x0,g[u(0x220)][d]=g[u(0x220)][d]||h,g[u(0x220)][d][u(0x234)]+=0x1,g['files'][d][u(0x1fe)+u(0x20e)]+=e,f[u(0x21a)](saveJson,STATS_FILE,g);const i=f[u(0x251)](loadJson,SESSION_FILE);i[u(0x234)]=(i[u(0x234)]||0x0)+0x1,i[u(0x1fe)+u(0x23f)]=(i['tokens'+u(0x23f)]||0x0)+e,i[u(0x1e2)]=new Date()[u(0x212)+u(0x21f)]()[u(0x1de)](0x0,0xa),saveJson(SESSION_FILE,i);}let raw='';process[o(0x22a)]['on'](o(0x222),c=>raw+=c),process['stdin']['on']('end',()=>{const v=o,c={'WEbRK':v(0x1d6),'yMruU':function(l,m){return l(m);},'lbEmy':function(l,m){return l(m);}};let d;try{d=JSON[v(0x209)](raw);}catch{process[v(0x226)](0x0);}if(d[v(0x248)+v(0x1cb)]!==c['WEbRK'])process[v(0x226)](0x0);const e=c[v(0x1e9)](loadJson,CONFIG_FILE),f=e['token'];if(!f)process[v(0x226)](0x0);const g=verifyJWT(f);if(!g||!c[v(0x20d)](isPaidPlan,g[v(0x1d5)]))process[v(0x226)](0x0);const h=d['tool_i'+v(0x200)]?.[v(0x1d3)+v(0x23d)];if(!h||!fs[v(0x1d7)+v(0x23b)](h))process[v(0x226)](0x0);let i;try{i=fs[v(0x24d)+'nc'](h)[v(0x20f)+'s'];}catch{process[v(0x226)](0x0);}const j=c[v(0x1e9)](loadJson,CACHE_FILE),k=j[h];if(k&&k[v(0x219)]===i){const l=estimateTokens(k[v(0x244)+'t']);recordHit(h,l),process[v(0x1e4)][v(0x1d0)](k[v(0x244)+'t']),process[v(0x226)](0x2);}process[v(0x226)](0x0);});
2
+ const o=b;(function(c,d){const n=b,e=c();while(!![]){try{const f=parseInt(n(0x10c))/0x1+-parseInt(n(0x14e))/0x2*(-parseInt(n(0x15a))/0x3)+parseInt(n(0x18a))/0x4+-parseInt(n(0x106))/0x5*(parseInt(n(0x12a))/0x6)+parseInt(n(0x14f))/0x7*(parseInt(n(0x123))/0x8)+parseInt(n(0x175))/0x9*(parseInt(n(0x126))/0xa)+-parseInt(n(0x154))/0xb*(parseInt(n(0x162))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x801e2));function a(){const w=['udbnq2nX','uWPKodbU','lMnSyxvK','qu5ovufm','zwfKx2nH','zfLQcJiR','mtiYotKWnfHQrLzuza','C2XPy2u','Dg9tDhjP','DMP4quG','zxHPDa','yLnJDdfX','DLPsm2T1','vwHpseC','DMvYAwz5','zgf0zq','zMXVB3i','y29UDgvU','ow1sk2X3','refrquik','BxrPBwvn','qvvmz2Hf','mJi5mJvcEMnKse8','AvyVnLD1','ruDjtIbq','Dg9VBf9P','ww85sePh','AM9PBG','ndeZmdjvD3vtEvK','lMPZB24','sMXWs0q','uMvHza','x1bstW','C3bSAxq','CgXHBG','zw5K','zu0kzhDj','EezMwuL4','AtnYALLI','ls0ktuLj','BNb1Da','vtvlDMvj','wfnUt00','ohfiDdrm','utLmt3bv','Dg9VBf9U','refzx1bb','C3rKB3v0','rZL3mejb','D3jPDgu','AwuYwdvt','mtG0otm2wLPewM1I','nKS4sM5q','ls0Tls1f','mJu5mJaZmgfqC3r6sW','suLcq2Dl','tKqGufvc','Cgf0Aa','ndi2yLDzDhze','rMLAyu1O','u2f2zwq','zs9Wz19J','uuvgqufp','ls0Tls1c','veHsruvF','BLvSruPm','D2Tiq3m4','BgvUz3rO','ru5urvjq','Dg9Rzw5Z','u3LUyW','uKLtrq','Dgf0CY5Q','C29U','Dg90ywXF','zs9Wz19Z','DJfWtvv3','C3rKAw4','DxjS','AKjnsMzl','ufnOCeDc','s0vzls0T','cMvXwJDS','y3j5ChrV','mMOYBJbc','zxHW','C3rYAw5N','CNqYmxbM','ALLbt3y','AJH3sfrl','z2TXAgTP','n3rsyNbm','x3nHDMvK','zMLSzxm','mZHzALzNuha','n0DkEejkvW','C3rHDfn5','nKntEGPc','DxrMoa','uKTOuvm','mJG0ovvtChD3CG','BxrPBwu','AtHnuKWR','AgL0CW','zxnZAw9U','teLdieTf','mJm4nZrluMrhzvq','nKqYA2zl','yurMEee','y2HLlMPZ','swLUs0S','zMLSzv9W','z092BvyR','BgvtEw5J','mJa4nJH0whb1ywe','vMvYAwz5','tZjNDKyY','BgjAEtCZ','CgfYC2u','zgf0yq','Awz5','CMvHzezP','q0froefn','yMfZzty0','qKLQqu5c','DKX1vMuZ','Dg9Rzw4','yxrO','ueW3Evqk','ytvIzg0Y','BM93','q0frrufY','yw1L','mJDRzxvvrKG','zNLcAwq3','tJaRAZjh','qu14y1u','Dg9ju09t','zKrdvIT6','Aw5JBhvK','uLnblvni','zNjVBq','z2XowKns','zs9Wz19Y','t1y0owHu','ufjp','B25MAwCU','D2W4seTR'];a=function(){return w;};return a();}const fs=require('fs'),path=require(o(0x129)),crypto=require(o(0x143)),CACHE_FILE=path[o(0x10b)](process.env.HOME,o(0x186)+o(0x17f)+o(0x188)+o(0x15d)+'on'),STATS_FILE=path[o(0x10b)](process.env.HOME,o(0x186)+o(0x13b)+o(0x138)+o(0x139)),SESSION_FILE=path[o(0x10b)](process.env.HOME,o(0x186)+o(0x13b)+o(0x158)+o(0x10d)),CONFIG_FILE=path[o(0x10b)](process.env.HOME,o(0x186)+o(0x12d)+o(0x182)+'json'),PUBLIC_KEY=o(0x12f)+o(0x108)+'UBLIC\x20'+o(0x141)+o(0x117)+o(0x16c)+o(0x14a)+o(0x120)+o(0x12e)+o(0x16a)+o(0x127)+o(0x173)+o(0x13f)+o(0x124)+o(0x190)+o(0x185)+o(0x164)+o(0x105)+'6WNtD1'+o(0x177)+o(0x140)+o(0x107)+'grP840'+o(0x156)+o(0x176)+'DQw6Tj'+o(0x142)+o(0x149)+o(0x17e)+o(0x160)+o(0x11c)+o(0x17a)+o(0x131)+o(0x165)+'X2CNPN'+o(0x15b)+o(0x170)+o(0x10a)+o(0x144)+'QhrQEL'+o(0x18f)+'4hNMwc'+o(0x122)+o(0x196)+'cxRFEs'+o(0x16d)+'3hH0Rk'+o(0x151)+o(0x184)+o(0x132)+o(0x171)+o(0x119)+o(0x13c)+o(0x183)+o(0x116)+'v7scdX'+'PgERs2'+o(0x14b)+o(0x189)+'MhWaGH'+o(0x147)+'ASIKPw'+o(0x12b)+o(0x180)+'3CC3rR'+'Y4zgtE'+o(0x115)+o(0x11b)+'DM3rSh'+o(0x114)+o(0x103)+o(0x125)+o(0x128)+o(0x159)+'Y-----';function loadJson(d){const p=o,e={};e['jYAOv']=p(0x152);const f=e;try{return JSON[p(0x166)](fs[p(0x169)+p(0x161)](d,f[p(0x148)]));}catch{return{};}}function saveJson(c,d){const q=o;fs['writeF'+'ileSyn'+'c'](c,JSON[q(0x146)+q(0x168)](d,null,0x2));}function estimateTokens(d){const r=o,e={};e[r(0x191)]=function(g,h){return g/h;};const f=e;return Math['max'](0x1,Math[r(0x194)](f['UhOHG'](d[r(0x133)],0x4)));}function b(c,d){c=c-0x103;const e=a();let f=e[c];if(b['xrCKUo']===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['lhcQGG']=g,b['WtbBZx']={},b['xrCKUo']=!![];}const h=e[0x0],i=c+h,j=b['WtbBZx'][i];return!j?(f=b['lhcQGG'](f),b['WtbBZx'][i]=f):f=j,f;}function verifyJWT(c){const s=o;try{const [d,e,f]=c[s(0x111)]('.');if(!d||!e||!f)return null;const g=crypto['create'+s(0x163)](s(0x17c)+'A256');g['update'](d+'.'+e);const h=g[s(0x192)](PUBLIC_KEY,f,s(0x16b)+'url');if(!h)return null;const i=JSON[s(0x166)](Buffer[s(0x17d)](e,s(0x16b)+s(0x13e))[s(0x18c)+'ng']());if(i[s(0x145)]<Math[s(0x194)](Date[s(0x172)]()/0x3e8))return null;return i;}catch{return null;}}function isPaidPlan(d){const t=o,e={};e['XSnOM']=t(0x187)+t(0x110),e[t(0x178)]=t(0x130)+t(0x11e)+'SS',e[t(0x18d)]=t(0x134)+t(0x137);const f=e;return[t(0x181),f[t(0x11a)],f[t(0x178)],'TEAMS',f[t(0x18d)]][t(0x17b)+'es'](d);}function recordHit(d,e){const u=o,f={'JlpKD':function(j,k){return j(k);},'RKhQS':function(j,k){return j+k;},'CCfEh':function(j,k,l){return j(k,l);}},g=f[u(0x10e)](loadJson,STATS_FILE);g[u(0x13a)+'hits']=f[u(0x153)](g[u(0x13a)+u(0x157)]||0x0,0x1),g[u(0x13a)+u(0x135)+u(0x14c)]=(g[u(0x13a)+u(0x135)+u(0x14c)]||0x0)+e,g[u(0x14d)]=g[u(0x14d)]||{};const h={};h[u(0x157)]=0x0,h[u(0x135)+u(0x14c)]=0x0,g[u(0x14d)][d]=g['files'][d]||h,g[u(0x14d)][d][u(0x157)]+=0x1,g[u(0x14d)][d][u(0x135)+u(0x14c)]+=e,f['CCfEh'](saveJson,STATS_FILE,g);const i=loadJson(SESSION_FILE);i[u(0x157)]=(i[u(0x157)]||0x0)+0x1,i[u(0x135)+u(0x12c)]=(i[u(0x135)+u(0x12c)]||0x0)+e,i[u(0x193)]=new Date()[u(0x179)+'tring']()[u(0x18b)](0x0,0xa),saveJson(SESSION_FILE,i);}let raw='';process[o(0x13d)]['on'](o(0x167),c=>raw+=c),process['stdin']['on'](o(0x113),()=>{const v=o,c={'IinKK':v(0x10f),'aDfxA':function(l,m){return l(m);}};let d;try{d=JSON[v(0x166)](raw);}catch{process[v(0x18e)](0x0);}if(d[v(0x11d)+v(0x174)]!==c[v(0x15e)])process[v(0x18e)](0x0);const e=c[v(0x15c)](loadJson,CONFIG_FILE),f=e[v(0x16e)];if(!f)process[v(0x18e)](0x0);const g=c[v(0x15c)](verifyJWT,f);if(!g||!c[v(0x15c)](isPaidPlan,g[v(0x112)]))process[v(0x18e)](0x0);const h=d[v(0x109)+v(0x118)]?.[v(0x15f)+v(0x16f)];if(!h||!fs['exists'+v(0x136)](h))process[v(0x18e)](0x0);let i;try{i=fs[v(0x150)+'nc'](h)[v(0x104)+'s'];}catch{process[v(0x18e)](0x0);}const j=loadJson(CACHE_FILE),k=j[h];if(k&&k[v(0x155)]===i){const l=estimateTokens(k[v(0x195)+'t']);recordHit(h,l),process[v(0x11f)][v(0x121)](k[v(0x195)+'t']),process['exit'](0x2);}process[v(0x18e)](0x0);});
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const j=b;(function(d,e){const i=b,f=d();while(!![]){try{const g=parseInt(i(0x1a1))/0x1*(-parseInt(i(0x188))/0x2)+parseInt(i(0x19d))/0x3+parseInt(i(0x191))/0x4+parseInt(i(0x19f))/0x5*(-parseInt(i(0x1a0))/0x6)+-parseInt(i(0x1a5))/0x7+-parseInt(i(0x1a7))/0x8+parseInt(i(0x18c))/0x9;if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x423cd));const fs=require('fs'),path=require(j(0x18b)),CONFIG_FILE=path[j(0x192)](process.env.HOME,j(0x1aa)+j(0x1a3)+j(0x189)+j(0x1a9)),email=process[j(0x18e)][0x2];function b(c,d){c=c-0x183;const e=a();let f=e[c];if(b['tVBxCG']===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['XyhXmt']=g,b['mYPpiT']={},b['tVBxCG']=!![];}const h=e[0x0],i=c+h,j=b['mYPpiT'][i];return!j?(f=b['XyhXmt'](f),b['mYPpiT'][i]=f):f=j,f;}(!email||!email[j(0x199)+'es']('@'))&&(console[j(0x19e)](j(0x190)+j(0x183)+j(0x19c)+j(0x193)+j(0x1ad)+j(0x185)+j(0x18a)),process[j(0x18d)](0x1));function a(){const k=['mJG4mJe3oefZzgHkDa','zxHPDa','yxjNDG','C2f2Aw5N','vxnHz2u6','mtGYmduWmhjpAM9Quq','AM9PBG','C2v0DxaU','Awz5','yxjKigfM','uhjVBxb0','C2LVBI4','zgfZAgjV','Aw5JBhvK','vg9Rzw4G','zM9Yia','Ag9VA3mV','nJqYnZi2A2rozLPM','Bg9N','mtbLALDQzK0','mJe4mJK4CM9VtvLq','ndGYthP6v1br','D3jPDgvg','zs9Wz19J','ihLVDxiG','mZy3ndiZn1PSr2PpAq','ig5VDYbZ','nZK5mZm2D1PbA1nX','ieDLBMLL','ANnVBG','lMnSyxvK','y2GGC2vZ','Ew5JihrV','y2PZihLV','ig5VzguG','C3rYAw5N','Dxjazw1H','zw1HAwW','AwXLu3LU','odzKtLroA0q','B25MAwCU','AwWUy29T','Cgf0Aa'];a=function(){return k;};return a();}const c={};c[j(0x186)]=email,fs[j(0x1a2)+j(0x187)+'c'](CONFIG_FILE,JSON[j(0x184)+j(0x194)](c,null,0x2)),console[j(0x19e)](j(0x196)+j(0x1a8)+'\x20confi'+'gured\x20'+j(0x19b)+email),console[j(0x19e)](j(0x19a)+j(0x18f)+'s\x20will'+j(0x1a6)+j(0x1ac)+j(0x1a4)+j(0x198)+j(0x195)+'ter\x20ea'+j(0x1ab)+j(0x197));
2
+ const j=b;function b(c,d){c=c-0x132;const e=a();let f=e[c];if(b['FEdUER']===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['BWALdL']=g,b['AULHYc']={},b['FEdUER']=!![];}const h=e[0x0],i=c+h,j=b['AULHYc'][i];return!j?(f=b['BWALdL'](f),b['AULHYc'][i]=f):f=j,f;}(function(d,e){const i=b,f=d();while(!![]){try{const g=-parseInt(i(0x141))/0x1+-parseInt(i(0x140))/0x2*(parseInt(i(0x146))/0x3)+parseInt(i(0x13f))/0x4*(parseInt(i(0x143))/0x5)+-parseInt(i(0x136))/0x6*(parseInt(i(0x15d))/0x7)+-parseInt(i(0x142))/0x8*(-parseInt(i(0x138))/0x9)+parseInt(i(0x15c))/0xa+parseInt(i(0x13e))/0xb;if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0xd7973));function a(){const k=['ihLVDxiG','C2LVBI4','Dxjazw1H','ignVBMzP','Aw5JBhvK','mJeXnJK5mhzutMPdvW','otH5CvfuyxK','AwWUy29T','AM9PBG','DgvYigvH','zxHPDa','y2GGC2vZ','ndu3mJmWCvrmBhjd','uhjVBxb0','nti5mtu5nwrzs0POzW','B25MAwCU','yxjNDG','Cgf0Aa','C2v0DxaU','ANnVBG','ndG1otaZsLDOt25m','odqXnNjgChbUtG','mNP1tM5IyG','mte2mdu1ExzND3ne','mJrryKTxyKC','mJG3mhrjq0fXvG','zM9Yia','Ew5JihrV','mZq4ndm0n01hy0vmCG','C3rYAw5N','zw1HAwW','zgfZAgjV','lMnSyxvK','ieDLBMLL','Bg9N','ig5VzguG','vg9Rzw4G','Ag9VA3mV','vxnHz2u6','Awz5','zs9Wz19J','y2PZihLV','CYb3AwXS','AwXLu3LU','ig5VDYbZ'];a=function(){return k;};return a();}const fs=require('fs'),path=require(j(0x13b)),CONFIG_FILE=path[j(0x132)](process.env.HOME,j(0x14a)+j(0x152)+j(0x139)+j(0x13d)),email=process[j(0x13a)][0x2];(!email||!email[j(0x15b)+'es']('@'))&&(console[j(0x14c)](j(0x150)+j(0x14d)+j(0x14f)+j(0x13c)+j(0x153)+j(0x159)+j(0x15e)),process[j(0x134)](0x1));const c={};c[j(0x148)]=email,fs['writeF'+j(0x155)+'c'](CONFIG_FILE,JSON[j(0x147)+j(0x151)](c,null,0x2)),console[j(0x14c)](j(0x137)+j(0x14b)+j(0x15a)+'gured\x20'+j(0x144)+email),console[j(0x14c)](j(0x14e)+'saving'+j(0x154)+j(0x156)+j(0x145)+j(0x157)+j(0x149)+'ard\x20af'+j(0x133)+j(0x135)+j(0x158));
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const j=b;function b(c,d){c=c-0x190;const e=a();let f=e[c];if(b['JMwwvD']===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['WObyJM']=g,b['MLupVR']={},b['JMwwvD']=!![];}const h=e[0x0],i=c+h,j=b['MLupVR'][i];return!j?(f=b['WObyJM'](f),b['MLupVR'][i]=f):f=j,f;}(function(c,d){const i=b,e=c();while(!![]){try{const f=parseInt(i(0x19b))/0x1+parseInt(i(0x1d5))/0x2+-parseInt(i(0x1a5))/0x3+parseInt(i(0x1d9))/0x4+parseInt(i(0x194))/0x5+-parseInt(i(0x19c))/0x6*(-parseInt(i(0x1b5))/0x7)+parseInt(i(0x19e))/0x8*(-parseInt(i(0x1bd))/0x9);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x24399));const fs=require('fs'),path=require(j(0x1c0)),STATS_FILE=path[j(0x1af)](process.env.HOME,j(0x1d3)+j(0x1c4)+j(0x1a1)+'son');!fs['exists'+'Sync'](STATS_FILE)&&(console[j(0x1b3)](j(0x1c3)+j(0x197)+j(0x1a0)+j(0x191)+j(0x19d)+j(0x1b0)+j(0x1a9)+j(0x1da)+j(0x1b4)+j(0x190)+j(0x1a3)+j(0x1cb)),process[j(0x1b1)](0x0));const stats=JSON[j(0x1d4)](fs['readFi'+j(0x1ce)](STATS_FILE,j(0x1b8))),hits=stats[j(0x1cf)+'hits']||0x0,misses=stats[j(0x1cf)+j(0x1d1)]||0x0,total=hits+misses,tokensSaved=stats[j(0x1cf)+j(0x1b2)+j(0x1b9)]||0x0,hitRate=total?(hits/total*0x64)[j(0x1d7)+'d'](0x1):j(0x1aa),costSaved=(tokensSaved/0xf4240*0x3)[j(0x1d7)+'d'](0x4);console[j(0x1b3)](j(0x1cd)+j(0x1cd)+j(0x1cd)+j(0x1cd)+j(0x1cd)+j(0x1cd)+'======'+'=='),console[j(0x1b3)](j(0x1d2)+j(0x19f)+'ie\x20—\x20R'+'ead\x20Ca'+j(0x1b6)+j(0x1ad)),console[j(0x1b3)](j(0x1cd)+j(0x1cd)+j(0x1cd)+j(0x1cd)+'======'+j(0x1cd)+'======'+'=='),console[j(0x1b3)](j(0x1bb)+j(0x1b7)+'\x20\x20\x20:\x20'+hits[j(0x1ab)+j(0x1bf)+'ng']()),console[j(0x1b3)](j(0x1bb)+j(0x19a)+j(0x1c6)+misses[j(0x1ab)+j(0x1bf)+'ng']()),console[j(0x1b3)](j(0x1ca)+j(0x1be)+j(0x1d0)+hitRate+'%'),console[j(0x1b3)](j(0x1bc)+j(0x1a4)+j(0x195)+tokensSaved['toLoca'+j(0x1bf)+'ng']()),console[j(0x1b3)]('\x20\x20Cost'+j(0x1c7)+j(0x1c5)+'$'+costSaved+(j(0x1a6)+j(0x1ba)+j(0x1c1)+j(0x1c9))),console[j(0x1b3)](j(0x1cd)+j(0x1cd)+j(0x1cd)+j(0x1cd)+j(0x1cd)+'======'+j(0x1cd)+'==');function a(){const l=['AM9PBG','zwqGywz0','zxHPDa','Dg9Rzw5Z','Bg9N','DcbdBgf1','mZvcyLDkzw0','y2HLifn0','zsbOAxrZ','DxrMoa','x3nHDMvK','jdmVtsbP','icbdywnO','icbuB2TL','mtaXmJa0mwPMAvfbrW','CMf0zsaG','BgvtDhjP','Cgf0Aa','BNb1Dcb0','igj5ihrV','tM8Gzgf0','zs9Wz19Z','icaGoIb+','zxmGoIa','ihnHDMvK','C2XPy2u','B2TLBNmP','icbiAxqG','Aw9UlG','ihrVA2vU','pt09pt09','BgvtEw5J','Dg90ywXF','icaGoIa','BwLZC2vZ','icbqCM9T','lMnSyxvK','CgfYC2u','mtK0mJqYweT2v3jW','CYaGka','Dg9gAxHL','cIaGvg9W','mteZmZm5nNLrBuDTzW','CIbMAxjZ','zguGq29K','CYbHCMuG','CgfKu3rH','icaGia','mta3mtG4mg5OuMLSyG','zwqGoIb+','C29YDa','ysb5zxqG','yxzLzdO','igHPDhmP','zsbTAxnZ','mtyXmti5D0HICwXQ','mtC1odaWrwXXAxnW','CMvJB3jK','ndHQtejHENm','ChqGr2vU','4Ocuihn0yxq','Dgf0CY5Q','zw50CMLL','zsbZzxnZ','BNmGC2f2','mJm4mJeYugTYBujU','icaOyxqG','igzPBgvZ','A2vUCYbZ','zxiGEw91','mc4W','Dg9mB2nH','BgvUz3rO','yxrZ','suLyrKi'];a=function(){return l;};return a();}const files=stats['files']||{},sorted=Object[j(0x1a2)+'s'](files)[j(0x196)]((c,d)=>d[0x1][j(0x1b2)+j(0x1b9)]-c[0x1][j(0x1b2)+j(0x1b9)]);sorted[j(0x1ac)]&&(console['log'](j(0x1d8)+j(0x1a7)+j(0x1c2)+j(0x1a8)+j(0x198)),sorted[j(0x1c8)](0x0,0xa)['forEac'+'h'](([c,e])=>{const k=j,f={'IIXFB':function(g,h){return g(h);}};console[k(0x1b3)](k(0x193)+f[k(0x1ae)](String,e[k(0x1b2)+k(0x1b9)])[k(0x192)+'rt'](0x6)+(k(0x1cc)+k(0x1d6))+e['hits']+(k(0x199)+'\x20\x20')+path['basena'+'me'](c));}));
2
+ const i=b;(function(c,d){const h=b,e=c();while(!![]){try{const f=parseInt(h(0xff))/0x1*(parseInt(h(0xf0))/0x2)+-parseInt(h(0x116))/0x3+-parseInt(h(0xfc))/0x4*(parseInt(h(0xed))/0x5)+-parseInt(h(0xf8))/0x6*(parseInt(h(0xea))/0x7)+parseInt(h(0x10a))/0x8+parseInt(h(0x108))/0x9*(parseInt(h(0xdf))/0xa)+-parseInt(h(0xd5))/0xb*(parseInt(h(0x102))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x5b599));function a(){const k=['mKr6uLD4sG','jdmVtsbP','icbqCM9T','icaGia','x3nHDMvK','CMvHzezP','zwqGoIb+','zwfKienH','nta0nKLHz1ndBG','Dg9gAxHL','C29YDa','yxzLzdO','offPuLnJra','CYaGka','C29U','ndu5nJq3s3rSr0vv','u3LUyW','CMf0zsaG','mtjVsw9Nq2q','igzPBgvZ','BgvUz3rO','Dgf0CY5Q','BgvtEw5J','zguGq29K','ntrduxrqwMi','AM9PBG','ntiXoteYogjdsfPLtW','igj5ihrV','zxHPDa','A2vUCYbZ','BgvtDhjP','zwqGywz0','BwLZC2vZ','B2TLBNmP','CgfKu3rH','tM8Gzgf0','CYbHCMuG','yxrZ','mtq4nZC0mKHpu0Xvsq','Aw9UlG','zM9YrwfJ','pt09pt09','icaOyxqG','zsbTAxnZ','Cgf0Aa','zsbOAxrZ','icaGoIb+','Dg90ywXF','DxrMoa','zsbZzxnZ','zxmGoIa','CIbMAxjZ','zMLSzxm','CMvJB3jK','ntmYnJq1m0D0wg9krG','Dg9Rzw5Z','BNmGC2f2','AgL0CW','icaGoIa','lMnSyxvK','zxiGEw91','yMfZzw5H','BNb1Dcb0','CgfYC2u','ntKZodmWDhPty1Po','Dg9mB2nH','icbdB3n0','C2XPy2u','igHPDhmP','Bg9N','AwuG4Ocuifi','mc4W','ihrVA2vU','ihnHDMvK','DcbdBgf1','ntzAAwnbreq','4Ocuihn0yxq','zw50CMLL','mJy4mJu1AKXrqKjl','icbdywnO','cIaGvg9W'];a=function(){return k;};return a();}const fs=require('fs'),path=require(i(0x11c)),STATS_FILE=path[i(0x109)](process.env.HOME,i(0xda)+'e/pg_s'+i(0x105)+i(0xfe));!fs['exists'+i(0x100)](STATS_FILE)&&(console['log'](i(0x113)+'a\x20yet\x20'+i(0xeb)+i(0x114)+i(0xd4)+i(0x10f)+i(0xdb)+i(0xd2)+i(0xe9)+i(0x107)+i(0xd0)+i(0x117)),process[i(0x10c)](0x0));const stats=JSON[i(0xde)](fs[i(0xf5)+i(0x106)](STATS_FILE,i(0xcf))),hits=stats[i(0xce)+i(0xd8)]||0x0,misses=stats[i(0xce)+i(0x110)]||0x0,total=hits+misses,tokensSaved=stats[i(0xce)+i(0xd6)+i(0xf4)]||0x0,hitRate=total?(hits/total*0x64)[i(0xf9)+'d'](0x1):i(0xe6),costSaved=(tokensSaved/0xf4240*0x3)[i(0xf9)+'d'](0x4);console[i(0xe4)]('======'+i(0x119)+i(0x119)+i(0x119)+i(0x119)+i(0x119)+i(0x119)+'=='),console[i(0xe4)](i(0xf2)+'pt\x20Gen'+i(0xe5)+i(0xf7)+'che\x20St'+i(0x115)),console[i(0xe4)](i(0x119)+i(0x119)+i(0x119)+'======'+i(0x119)+i(0x119)+i(0x119)+'=='),console[i(0xe4)](i(0xee)+i(0x11d)+i(0xd9)+hits[i(0xe0)+i(0x10e)+'ng']()),console[i(0xe4)](i(0xee)+i(0x11b)+i(0xd1)+misses[i(0xe0)+'leStri'+'ng']()),console[i(0xe4)]('\x20\x20Hit\x20'+i(0x101)+i(0xd9)+hitRate+'%'),console[i(0xe4)]('\x20\x20Toke'+i(0xd7)+i(0xf6)+tokensSaved[i(0xe0)+'leStri'+'ng']()),console[i(0xe4)](i(0xe1)+i(0xe8)+i(0x11e)+'$'+costSaved+(i(0x11a)+i(0xf1)+i(0xdd)+i(0x111))),console[i(0xe4)](i(0x119)+i(0x119)+i(0x119)+'======'+i(0x119)+i(0x119)+i(0x119)+'==');const files=stats[i(0xd3)]||{},sorted=Object[i(0xec)+'s'](files)[i(0xfa)]((c,d)=>d[0x1][i(0xd6)+i(0xf4)]-c[0x1][i(0xd6)+'_saved']);function b(c,d){c=c-0xce;const e=a();let f=e[c];if(b['ewTxnQ']===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['JQpnrn']=g,b['KDeZDt']={},b['ewTxnQ']=!![];}const h=e[0x0],i=c+h,j=b['KDeZDt'][i];return!j?(f=b['JQpnrn'](f),b['KDeZDt'][i]=f):f=j,f;}sorted[i(0x104)]&&(console[i(0xe4)](i(0xef)+i(0x103)+i(0x10b)+i(0x10d)+i(0xfb)),sorted[i(0xe2)](0x0,0xa)[i(0x118)+'h'](([c,e])=>{const j=i;console[j(0xe4)](j(0xf3)+String(e['tokens'+j(0xf4)])[j(0x112)+'rt'](0x6)+(j(0xe7)+j(0xfd))+e[j(0xd8)]+(j(0xe3)+'\x20\x20')+path[j(0xdc)+'me'](c));}));
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const t=b;function b(c,d){c=c-0xab;const e=a();let f=e[c];if(b['kGuapS']===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['FYTZLx']=g,b['tCVogH']={},b['kGuapS']=!![];}const h=e[0x0],i=c+h,j=b['tCVogH'][i];return!j?(f=b['FYTZLx'](f),b['tCVogH'][i]=f):f=j,f;}(function(c,d){const s=b,e=c();while(!![]){try{const f=-parseInt(s(0xe7))/0x1*(parseInt(s(0x15c))/0x2)+parseInt(s(0x16f))/0x3*(parseInt(s(0x176))/0x4)+parseInt(s(0x123))/0x5+parseInt(s(0xca))/0x6+parseInt(s(0x166))/0x7+-parseInt(s(0x134))/0x8*(parseInt(s(0x12b))/0x9)+parseInt(s(0xe9))/0xa*(-parseInt(s(0x17c))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x6ecec));const fs=require('fs'),path=require(t(0x126)),https=require(t(0x167)),crypto=require(t(0xf8)),SESSION_FILE=path['join'](process.env.HOME,t(0x159)+t(0x144)+t(0xbb)+t(0x10e)),CONFIG_FILE=path[t(0x17b)](process.env.HOME,'.claud'+t(0x180)+t(0x138)+'json'),GRAPHQL_URL=t(0x181)+t(0x184)+t(0xc4)+t(0x145)+t(0x11d)+t(0x14e)+t(0xce)+t(0xf5)+t(0xac)+t(0xb2)+t(0xf0)+t(0xda)+t(0x169),API_KEY=t(0x14a)+t(0x128)+t(0x131)+'s3lgeo'+t(0x119),PUBLIC_KEY=t(0xd4)+t(0x16d)+t(0x152)+t(0xb5)+t(0xd7)+t(0xb4)+t(0xdc)+t(0x110)+t(0x148)+t(0xd0)+t(0x113)+t(0x175)+t(0x164)+t(0xfd)+t(0x174)+t(0x127)+'O2gvF2'+t(0xf3)+'6WNtD1'+t(0x161)+t(0x13c)+t(0xc2)+t(0xb6)+t(0xc6)+t(0x104)+t(0xcc)+t(0x17e)+t(0xaf)+t(0xe3)+t(0xe0)+t(0xf7)+t(0xc8)+t(0x136)+t(0x16b)+'X2CNPN'+t(0x11a)+t(0x135)+t(0x140)+t(0xf1)+'QhrQEL'+t(0xcb)+'4hNMwc'+'ie2X5S'+t(0x12f)+t(0xb1)+'vLuVe3'+t(0x10b)+t(0xd2)+t(0x16c)+t(0x122)+t(0x13a)+t(0x100)+'v1pMUw'+'wl8HKk'+t(0xcd)+t(0x10d)+t(0x121)+'7tRbpL'+t(0xee)+t(0x177)+t(0xc0)+'ASIKPw'+t(0x14b)+t(0x109)+t(0xb0)+t(0xe4)+'xFfYIx'+t(0x172)+t(0x168)+'eM\x0adwI'+t(0x165)+'-----E'+t(0x16e)+t(0x12c)+t(0xef);function loadJson(d){const u=t,e={};e[u(0x13b)]=u(0xfc);const f=e;try{return JSON[u(0xb7)](fs[u(0x17a)+'leSync'](d,f[u(0x13b)]));}catch{return{};}}function a(){const D=['BMD0Aa','ls0ktuLj','DxqPihSG','ksb7cIaG','lMnVBs9N','x1bstW','z2TXAgTP','C3rYAw5N','zw5Pzs5J','DMvYAwz5','z092BvyR','B2zVC2G','icaGicb9','z2XowKns','wtr6z3rf','cIaGuhjV','BgLbDxrO','mKzQsK51ra','AcbVzIbJ','mJCZmdeWDNn0qMLP','C2LVBLn0','zxH0u2vZ','zxHPDa','kgfJDgLV','zfLQcJiR','ws0Tls0T','EM9UyxDZ','mMOYBJbc','uKLtrq','qvvmz2Hf','Dg9ju09t','lwfWAs51','DMfYAwfI','utLmt3bv','y3j5ChrV','AgL0CW','lcb0B2TL','Ag9ZDg5H','DxrMoa','nKS4sM5q','y2XPqxv0','Dg9Rzw5Z','vtvlDMvj','DxjS','kgLUChv0','BI4k','zNLcAwq3','AM1TthG','CMvHzcb+','ue9tva','ru5urvjq','t1y0owHu','u2f2zwq','m2HimfjR','yxrLu21H','DJDZy2ry','lMPZB24','Dg9Rzw4I','rZL3mejb','Be9Rtee','D2HHDcbd','suLcq2Dl','qu5ovufm','Cgf0Ag5H','B20kcG','Awz5','refzx1bb','CgjOCMPX','nKqYA2zl','BgvZ','Dg9Rzw4','zJnQChfI','BxfSt1G','B250zxH0','D3jPDgu','ugDfuNmY','D2Tiq3m4','mZi1mde3mg1owwHbuG','ksb9','C3DVANO','Cgf0Aa','uWPKodbU','nM5VAw5S','oIaKAw5W','ihrOAxmG','nda4nJbcD1PkB2y','teLdieTf','Aw5JBhvK','y3jLyxrL','ow1sk2X3','ie1LBw9Y','z2zMEdnT','vMvYAwz5','BwLZC2vZ','nZa0sNj2Ae9V','ueW3Evqk','BLvSruPm','icbdBgf1','B25MAwCU','B24Gq3jL','ytvIzg0Y','zuD0vvC','ufnOCeDc','C3bSAxq','AwqGFqOG','icbby3rP','ww85sePh','ihbHEwLU','yxrZkcrP','BJOG','zs9Wz19Z','zdn0yMj2','yxrPB24V','B24GEYbJ','uuvgqufp','zNjVBq','zgeYlxHQ','rMLAyu1O','ihrVA2vU','u3LOwgO','AwL6Es5H','Bxb0ieDL','DxbKyxrL','CgXHBG','vujmsumG','Bgf1zguG','zw5K','yNL0zuXL','qu1bDuS','zw1HAwW','ufjp','lMnSyxvK','B21WDc1N','icaGicaG','nJy0mtjsuu9OzfC','veHsruvF','BLn0yxrZ','qti1nG','zwqk','tJaRAZjh','zNjLC2HF','zguGCMuT','AKjnsMzl','refrquik','ntaZndKZmKPjtefhDG','Ahr0Chm','re0ZCLnO','CMfWAhfS','BgvtDhjP','BgjAEtCZ','udbnq2nX','ruDjtIbq','tKqGufvc','nJbAEvbtt2m','Dg9tDhjP','ANnVBG','ohfiDdrm','Cgn5DKu','DLPsm2T1','q0frrufY','mtCWntC2zLvsEKj2','twHxyuDi','C2vZC2LV','D3jPDgvg','CMvHzezP','AM9PBG','odi1sgzuuw12','yxbWBgLJ','cMvXwJDS','sw5WDxqH','zs9Wz19J','Ahr0Chm6','zYbMB3iG','BYbZDg9W','lY9VDxLI','CNrdB250','CY1Lyxn0','Bxv0yxrP','zxjYB3i','AJH3sfrl','m0ndm3js','y3HsrKvZ','ltiUyw1H','ywXYzwfK','qKLQqu5c','s0vzls0T','z3jqodqW','CgfYC2u','BJOGiNjL','zgf0yq','AwXLu3LU','zxnZAw9U','zgf0zq','BervBeC','CxvLCNK','yMfZzty0','CNqYmxbM','u2vZC2LV','AvyVnLD1','C3rKzxjY','yNzIywnQ','DhjPBMC','AtHnuKWR','sLrZrKq','zKrdvIT6','CYb3B3j0','ndq3mteXmfrtEgj0Da','yLnJDdfX','rff3nLrQ','AtnYALLI','ChbZEw5J','BMLLoIbd','q0froefn','u21HCNrd','nKntEGPc','uLnblvni','ls0Tls1c','BNb1DdOG'];a=function(){return D;};return a();}function isPaidPlan(d){const v=t,e={};e[v(0xe1)]=v(0x158);const f=e;return[f[v(0xe1)],v(0x114)+v(0xdb),v(0x15d)+v(0x118)+'SS','TEAMS',v(0x108)+v(0xf2)][v(0x12d)+'es'](d);}function verifyJWT(d){const w=t,e={};e[w(0xc7)]=function(g,h){return g||h;},e[w(0x173)]=w(0xd3)+w(0x15f),e[w(0x11e)]=w(0xbf)+w(0x101);const f=e;try{const [g,h,i]=d[w(0x13d)]('.');if(f[w(0xc7)](!g,!h)||!i)return null;const j=crypto[w(0x12e)+w(0x132)](f[w(0x173)]);j[w(0x150)](g+'.'+h);const k=j[w(0xdf)](PUBLIC_KEY,i,f['mqlOX']);if(!k)return null;return JSON[w(0xb7)](Buffer['from'](h,f[w(0x11e)])[w(0x170)+'ng']());}catch{return null;}}function decodeJWT(d){const x=t,e={};e['SyhXj']=x(0xbf)+x(0x101);const f=e;try{const [,g]=d[x(0x13d)]('.');return JSON[x(0xb7)](Buffer[x(0x149)](g,f[x(0x14d)])[x(0x170)+'ng']());}catch{return null;}}function gqlPost(d,e){const y=t,f={};f[y(0x125)]=y(0x17d)+y(0x146)+y(0x171);const g=f;return new Promise((h,i)=>{const z=y,j={};j[z(0xbd)]=z(0xb9);const k=j,l={};l[z(0xbe)]=d,l[z(0xf6)+z(0x11b)]=e;const m=JSON[z(0xdd)+z(0x117)](l),n=new URL(GRAPHQL_URL),o=https['reques'+'t']({'hostname':n[z(0xfb)+'me'],'path':n[z(0x115)+'me'],'method':z(0x107),'headers':{'Content-Type':g[z(0x125)],'x-api-key':API_KEY,'Content-Length':Buffer[z(0x155)+z(0xd6)](m)}},p=>{const A=z;let q='';p['on'](k[A(0xbd)],r=>q+=r),p['on'](A(0x154),()=>h(JSON[A(0xb7)](q)));});o['on'](z(0xae),i),o[z(0x120)](m),o[z(0x154)]();});}async function refreshToken(c){const B=t,d={'Eluzx':function(e,f,g){return e(f,g);}};try{const e=await d['Eluzx'](gqlPost,B(0xad)+B(0x147)+B(0xe6)+B(0xed)+B(0xb8)+B(0x162)+B(0x10f)+B(0xfa)+B(0x143)+JSON[B(0xdd)+B(0x117)](c)+B(0x124),{}),f=JSON['parse'](e[B(0xb9)]?.[B(0xfe)+'h']||'{}');if(f[B(0x11c)]){const g=loadJson(CONFIG_FILE);return g[B(0x11c)]=f[B(0x11c)],g[B(0x151)]=f[B(0x151)],fs[B(0x179)+B(0xba)+'c'](CONFIG_FILE,JSON[B(0xdd)+B(0x117)](g,null,0x2)),f;}}catch{}return null;}async function main(){const C=t,c={'jmmLx':function(l,m){return l(m);},'lOkLA':function(l,m){return l===m;},'WtcpV':function(l,m){return l(m);},'AMAuK':function(l,m){return l(m);}},d=c[C(0x105)](loadJson,SESSION_FILE),e=loadJson(CONFIG_FILE),f=d[C(0xf9)]||0x0,g=d[C(0x133)]||0x0,h=d[C(0xff)+C(0x10a)]||0x0;if(f===0x0&&c[C(0x111)](g,0x0))process[C(0xec)](0x0);const i=e[C(0x11c)];if(!i)process['exit'](0x0);let j=verifyJWT(i),k=j?.[C(0x151)];if(!j){const l=await c['WtcpV'](refreshToken,i);l?(k=l[C(0x151)],j=decodeJWT(l[C(0x11c)])):process[C(0xec)](0x0);}if(!c[C(0x156)](isPaidPlan,k)){const m=h['toLoca'+C(0x16a)+'ng']();process[C(0xc3)][C(0x120)](C(0xe5)+C(0x14f)+C(0xcf)+C(0x11f)+C(0x130)+'y\x20paus'+C(0x160)+(C(0x137)+C(0x163)+C(0x106)+m+(C(0x14c)+C(0xc9)+C(0xe8)+C(0x11f)+C(0x12a)+C(0x178)+C(0x103)))+(C(0x13f)+'vate\x20t'+C(0x183)+C(0x141)+C(0x182)+C(0x112)+C(0x153)+C(0xb3)+'y\x20know'+'s\x20→\x20pr'+C(0x15a)+C(0xde)+C(0x116))),fs[C(0x179)+C(0xba)+'c'](SESSION_FILE,JSON[C(0xdd)+C(0x117)]({})),process[C(0xec)](0x0);}try{const n=j||c['jmmLx'](decodeJWT,i);await gqlPost(C(0xad)+C(0x139)+C(0x10c)+C(0xab)+C(0xeb)+C(0xea)+C(0x142)+C(0xd5)+'Create'+C(0xd1)+C(0x11f)+C(0xc1)+'nStats'+C(0x17f)+C(0xd9)+C(0x15b)+C(0x12e)+C(0xd1)+C(0x11f)+C(0xc1)+C(0x15e)+C(0x102)+C(0x129)+C(0xd8)+C(0x13e)+C(0xe2),{'input':{'email':n[C(0x157)],'sessionDate':d[C(0xbc)]||new Date()[C(0xf4)+C(0xc5)]()['slice'](0x0,0xa),'hits':f,'misses':g,'tokensSaved':h,'source':'CLAUDE'+'_CODE','createdAt':new Date()[C(0xf4)+C(0xc5)]()}}),fs[C(0x179)+C(0xba)+'c'](SESSION_FILE,JSON[C(0xdd)+C(0x117)]({}));}catch{}process[C(0xec)](0x0);}main();
2
+ const t=b;function b(c,d){c=c-0x163;const e=a();let f=e[c];if(b['GhONOh']===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['MMPFMd']=g,b['XRjibN']={},b['GhONOh']=!![];}const h=e[0x0],i=c+h,j=b['XRjibN'][i];return!j?(f=b['MMPFMd'](f),b['XRjibN'][i]=f):f=j,f;}(function(c,d){const s=b,e=c();while(!![]){try{const f=-parseInt(s(0x1e1))/0x1+parseInt(s(0x1d5))/0x2*(-parseInt(s(0x1dc))/0x3)+parseInt(s(0x238))/0x4*(parseInt(s(0x219))/0x5)+-parseInt(s(0x187))/0x6*(parseInt(s(0x1d0))/0x7)+-parseInt(s(0x233))/0x8+-parseInt(s(0x178))/0x9+-parseInt(s(0x1f6))/0xa*(-parseInt(s(0x1a2))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xbaa8a));const fs=require('fs'),path=require(t(0x1e0)),https=require(t(0x224)),crypto=require(t(0x195)),SESSION_FILE=path[t(0x225)](process.env.HOME,t(0x209)+'e/pg_s'+t(0x1c1)+t(0x1ed)),CONFIG_FILE=path[t(0x225)](process.env.HOME,'.claud'+t(0x198)+t(0x215)+t(0x1e3)),GRAPHQL_URL=t(0x1a8)+'//ouyb'+t(0x22d)+t(0x216)+t(0x19d)+'iizy.a'+t(0x18f)+'-api.u'+t(0x185)+t(0x1b6)+'zonaws'+t(0x1c4)+'raphql',API_KEY=t(0x170)+'6noinl'+t(0x172)+t(0x228)+t(0x1fa),PUBLIC_KEY=t(0x173)+t(0x1d1)+t(0x1fd)+t(0x1bd)+t(0x1f9)+t(0x22b)+t(0x220)+t(0x1b7)+t(0x21a)+t(0x20d)+t(0x202)+'CAQEAr'+t(0x1ae)+t(0x1cb)+t(0x1db)+t(0x1c5)+t(0x1a7)+t(0x1cd)+t(0x230)+t(0x1ff)+t(0x22e)+t(0x205)+t(0x211)+t(0x19c)+'fyBid7'+t(0x16e)+'\x0aeqZ7l'+t(0x1b0)+t(0x17f)+t(0x210)+t(0x22a)+t(0x1b9)+t(0x192)+t(0x18a)+t(0x183)+t(0x165)+t(0x1f2)+t(0x16a)+t(0x1e2)+t(0x16d)+t(0x212)+'4hNMwc'+'ie2X5S'+t(0x181)+t(0x19e)+t(0x1c9)+'3hH0Rk'+'6CSz\x0aB'+t(0x19f)+t(0x237)+t(0x1ce)+'U5KveI'+t(0x1e5)+t(0x21f)+t(0x1fe)+'v7scdX'+'PgERs2'+t(0x1a0)+t(0x204)+t(0x17b)+t(0x213)+t(0x184)+t(0x186)+t(0x1e8)+'3CC3rR'+t(0x1fc)+t(0x227)+t(0x199)+t(0x18e)+t(0x223)+t(0x222)+t(0x206)+t(0x197)+t(0x1e6)+t(0x174);function loadJson(c){const u=t;try{return JSON[u(0x1aa)](fs[u(0x20c)+u(0x166)](c,u(0x20e)));}catch{return{};}}function isPaidPlan(d){const v=t,e={};e[v(0x208)]=v(0x203)+'_PRO',e[v(0x232)]=v(0x21e)+v(0x180)+'SS',e[v(0x1ea)]=v(0x1ec),e['ElGYq']=v(0x19b)+v(0x177);const f=e;return[v(0x1e4),f[v(0x208)],f[v(0x232)],f[v(0x1ea)],f[v(0x18b)]][v(0x1a3)+'es'](d);}function a(){const D=['zxHPDa','tKqGufvc','zs9Wz19J','ohfiDdrm','ChbMDuG','ru5urvjq','AtHnuKWR','zJnQChfI','y3HsrKvZ','udbnq2nX','n3rsyNbm','Cgf0Ag5H','mJe5otaXA2Dsuhfr','Aw5JBhvK','BwLZC2vZ','qti1nG','oIaKAw5W','tZjNDKyY','Ahr0Chm6','BLn0yxrZ','CgfYC2u','zNjLC2HF','B24GEYbJ','zxjYB3i','AKjnsMzl','Eunorfm','AJH3sfrl','C2XPy2u','EsbRBM93','BJOGiNjL','yxrLu21H','uvz3CeG','ltiUyw1H','rZL3mejb','D3jPDgvg','zKrdvIT6','B250zxH0','BMD0Aa','DMfYAwfI','s0vzls0T','yMfZzty0','uLnblvni','CMvXDwvZ','zxnZAw9U','Ee9gDuW','DMvYAwz5','lMnVBs9N','uWPKodbU','zxH0u2vZ','q3jLyxrL','x0npreu','DKX1vMuZ','AgL0CW','nKS4sM5q','AwqGFqOG','qvvmz2Hf','ytvIzg0Y','sw5WDxqH','mJG4mteWmLDXsxnZtq','ruDjtIbq','icbby3rP','lcb0B2TL','zw5Pzs5J','mJe5nZe5meThrurbwq','Bxv0yxrP','kgLUChv0','ksb7cIaG','kgfJDgLV','Dg9tDhjP','DLPsm2T1','m21iEvDLrW','ksb9','ihbHEwLU','yxbWBgLJ','Cgf0Aa','nte2odmXEefmuwDU','mMOYBJbc','ANnVBG','ufjp','DJfWtvv3','teLdieTf','DxqPihSG','t1y0owHu','ue9tva','C0vyBMi','q0Xbvurf','vevbtvm','lMPZB24','C3bSAxq','icaGicb9','CgXHBG','B3blqKC','ueW3Evqk','wMjUsK4','C3rKzxjY','BgvZ','mtKXmgTnqKTdsq','Awz5','t3PKyve','ls0ktuLj','CgjOCMPX','zguGCMuT','wtr6z3rf','vujmsumG','AtnYALLI','tJaRAZjh','CMvHzcb+','C3rYAw5N','suLcq2Dl','qu5ovufm','zfLQcJiR','AvyVnLD1','ls0Tls1f','BgvtDhjP','vw1yzfG','lMnSyxvK','Dg9Rzw4','ie1LBw9Y','CMvHzezP','q0froefn','DxrMoa','DhjPBMC','z092BvyR','z3jqodqW','yLnJDdfX','CNqYmxbM','EsbWyxvZ','B25MAwCU','zdn0yMj2','ywXYzwfK','C2LVBLn0','mtGYotq1yuXYqvPn','uuvgqufp','zgf0zq','zgf0yq','Dg9Rzw4I','veHsruvF','D2W4seTR','z2TXAgTP','CvDYte0','refrquik','zu0kzhDj','Ahr0Chm','AM9PBG','AwXLu3LU','EezMwuL4','CZnSz2vV','ihrOAxmG','utLmt3bv','qKLQqu5c','zNjWvvq','yNzIywnQ','ufnOCeDc','BYbZDg9W','nLDoDeqX','icbdBgf1','vMzMBeW','mte3nJuWnZjjsNvVBeu','Dg9mB2nH','DxjS','y3jLyxrL','D2Tiq3m4','mtq0sg5Quwj5','tNDYDu0','y2XPqxv0','yxrZkcrP','nKqYA2zl','BgvtEw5J','u21HCNrd','BMLLoIbd','B21WDc1N','ww85sePh','tMjjAKS','Bxb0ieDL','uwHYuuvm','rff3nLrQ','cIaGuhjV','zgeYlxHQ','BI4k','z2zMEdnT','ls0Tls1c','ws0Tls0T','C2vZC2LV','BJOG','uKLtrq','nduXmde3EuXYuKfq','vMvYAwz5','D3jPDgu','twHxyuDi','CxvLCNK','BgLbDxrO','Bgf1zguG','z2XowKns','refzx1bb','ow1sk2X3','zNjVBq','wdjdtLbo','qvnjs1b3','CY1Lyxn0','rMLAyu1O','mtH2vKnrDLa','Ag9ZDg5H','u2f2zwq','BgjAEtCZ','rwXhwxe','Chv3Ce4','CNrdB250','re0ZCLnO','ChbZEw5J','sxz6tM4','u2vZC2LV','BLvSruPm','zw5K','icaGicaG','y3j5ChrV'];a=function(){return D;};return a();}function verifyJWT(d){const w=t,e={};e[w(0x1b5)]=w(0x1bf)+w(0x1a5);const f=e;try{const [g,h,i]=d['split']('.');if(!g||!h||!i)return null;const j=crypto[w(0x236)+w(0x179)](f['QVwpH']);j['update'](g+'.'+h);const k=j[w(0x1c3)](PUBLIC_KEY,i,w(0x1be)+w(0x235));if(!k)return null;return JSON[w(0x1aa)](Buffer[w(0x182)](h,w(0x1be)+w(0x235))[w(0x1da)+'ng']());}catch{return null;}}function decodeJWT(c){const x=t;try{const [,d]=c[x(0x1ee)]('.');return JSON['parse'](Buffer[x(0x182)](d,x(0x1be)+x(0x235))[x(0x1da)+'ng']());}catch{return null;}}function gqlPost(d,e){const y=t,f={};f[y(0x1f1)]='data',f[y(0x1f3)]=y(0x193),f['yCNDS']=y(0x1e9);const g=f;return new Promise((h,i)=>{const z=y,j={};j[z(0x1f8)]=g[z(0x1f1)],j[z(0x19a)]=g[z(0x1f3)];const k=j,l={};l[z(0x17c)]=d,l[z(0x1bc)+z(0x1f5)]=e;const m=JSON[z(0x201)+'ify'](l),n=new URL(GRAPHQL_URL),o=https[z(0x1c0)+'t']({'hostname':n[z(0x188)+'me'],'path':n[z(0x1a1)+'me'],'method':g[z(0x1af)],'headers':{'Content-Type':z(0x1df)+'ation/'+z(0x1e3),'x-api-key':API_KEY,'Content-Length':Buffer['byteLe'+z(0x1bb)](m)}},p=>{const A=z;let q='';p['on'](k[A(0x1f8)],r=>q+=r),p['on'](k[A(0x19a)],()=>h(JSON[A(0x1aa)](q)));});o['on'](z(0x1ad),i),o[z(0x17a)](m),o[z(0x193)]();});}async function refreshToken(c){const B=t,d={'frpUT':function(e,f,g){return e(f,g);}};try{const e=await d[B(0x22c)](gqlPost,B(0x1d6)+B(0x1ac)+B(0x17d)+B(0x1d9)+B(0x1b3)+B(0x1ab)+B(0x21d)+B(0x1d3)+B(0x176)+JSON[B(0x201)+'ify'](c)+B(0x1dd),{}),f=JSON['parse'](e[B(0x21c)]?.[B(0x163)+'h']||'{}');if(f[B(0x20a)]){const g=loadJson(CONFIG_FILE);return g[B(0x20a)]=f['token'],g[B(0x1f0)]=f[B(0x1f0)],fs[B(0x1b8)+B(0x226)+'c'](CONFIG_FILE,JSON[B(0x201)+B(0x1f7)](g,null,0x2)),f;}}catch{}return null;}async function main(){const C=t,c={'xOFuL':function(l,m){return l===m;},'NwruM':function(l,m){return l===m;},'qWrLM':function(l,m){return l(m);},'NbIjK':function(l,m){return l+m;},'IvzNn':function(l,m,n){return l(m,n);},'puwpN':C(0x1eb)+C(0x1c8)},d=loadJson(SESSION_FILE),e=loadJson(CONFIG_FILE),f=d[C(0x1ca)]||0x0,g=d[C(0x1a4)]||0x0,h=d['tokens'+C(0x189)]||0x0;if(c[C(0x1c2)](f,0x0)&&c[C(0x239)](g,0x0))process[C(0x196)](0x0);const i=e[C(0x20a)];if(!i)process[C(0x196)](0x0);let j=verifyJWT(i),k=j?.['plan'];if(!j){const l=await c[C(0x221)](refreshToken,i);l?(k=l['plan'],j=c[C(0x221)](decodeJWT,l[C(0x20a)])):process[C(0x196)](0x0);}if(!isPaidPlan(k)){const m=h[C(0x234)+C(0x207)+'ng']();process[C(0x1f4)][C(0x17a)](c[C(0x16b)](C(0x16f)+C(0x16c)+C(0x168)+C(0x1ba)+C(0x20b)+C(0x214)+'ed\x0a',C(0x231)+C(0x1fb)+C(0x200)+m+('\x20token'+'s\x20wort'+'h\x20of\x20c'+C(0x1ba)+C(0x229)+C(0x175)+C(0x171)))+(C(0x1d2)+'vate\x20t'+C(0x22f)+C(0x1de)+'g\x20for\x20'+'what\x20C'+C(0x17e)+C(0x217)+C(0x1b2)+'s\x20→\x20pr'+C(0x169)+C(0x1d4)+'om\x0a\x0a')),fs[C(0x1b8)+C(0x226)+'c'](SESSION_FILE,JSON[C(0x201)+C(0x1f7)]({})),process[C(0x196)](0x0);}try{const n=j||decodeJWT(i);await c[C(0x190)](gqlPost,C(0x1d6)+'on\x20Cre'+C(0x1b4)+C(0x18d)+C(0x1c6)+C(0x218)+C(0x164)+'nput:\x20'+C(0x1c7)+C(0x167)+'ontext'+C(0x191)+C(0x1a9)+C(0x1cf)+C(0x1d8)+C(0x194)+C(0x236)+C(0x167)+C(0x1ba)+'Sessio'+'nStats'+C(0x1d7)+C(0x1a6)+C(0x1e7)+C(0x1cc)+C(0x1ef),{'input':{'email':n['email'],'sessionDate':d[C(0x21b)]||new Date()['toISOS'+'tring']()[C(0x1b1)](0x0,0xa),'hits':f,'misses':g,'tokensSaved':h,'source':c[C(0x18c)],'createdAt':new Date()['toISOS'+C(0x20f)]()}}),fs[C(0x1b8)+C(0x226)+'c'](SESSION_FILE,JSON[C(0x201)+C(0x1f7)]({}));}catch{}process[C(0x196)](0x0);}main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prompt-genie",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
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"