@cerulin/chell 0.2.9 → 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.
Files changed (38) hide show
  1. package/bin/chell-mcp.mjs +2 -2
  2. package/bin/chell.mjs +37 -37
  3. package/dist/codex/chellMcpStdioBridge.cjs +1 -1
  4. package/dist/codex/chellMcpStdioBridge.mjs +1 -1
  5. package/dist/index-C2y4OuM1.cjs +1 -0
  6. package/dist/index-DJESWtKQ.mjs +1 -0
  7. package/dist/index.cjs +1 -1
  8. package/dist/index.mjs +1 -1
  9. package/dist/lib.cjs +1 -1
  10. package/dist/lib.mjs +1 -1
  11. package/dist/runCodex-BEElKZEo.mjs +1 -0
  12. package/dist/runCodex-xlHBeqw1.cjs +1 -0
  13. package/dist/runGemini-C-CBRnA-.cjs +1 -0
  14. package/dist/runGemini-sB16Usoy.mjs +1 -0
  15. package/dist/types-Bkma9UQ9.mjs +1 -0
  16. package/dist/types-tCY2DR9n.cjs +1 -0
  17. package/package.json +6 -6
  18. package/scripts/claude_remote_launcher.cjs +12 -12
  19. package/scripts/codex_preload.cjs +56 -56
  20. package/scripts/pack-chell.cjs +32 -32
  21. package/scripts/publish-scoped.ps1 +58 -58
  22. package/scripts/ripgrep_launcher.cjs +32 -32
  23. package/scripts/unpack-tools.cjs +162 -162
  24. package/tools/archives/difftastic-LICENSE +21 -21
  25. package/tools/archives/ripgrep-LICENSE +3 -3
  26. package/tools/licenses/difftastic-LICENSE +21 -21
  27. package/tools/licenses/ripgrep-LICENSE +3 -3
  28. package/tools/unpacked/ripgrep.node +0 -0
  29. package/dist/index-BK-xOixv.mjs +0 -1
  30. package/dist/index-o4fcx50D.cjs +0 -1
  31. package/dist/runCodex-Cftzrb2J.cjs +0 -1
  32. package/dist/runCodex-DAy9-IUr.mjs +0 -1
  33. package/dist/runGemini-D9hpwm_S.cjs +0 -1
  34. package/dist/runGemini-DKB4HBSt.mjs +0 -1
  35. package/dist/types-BVqVyV3a.cjs +0 -1
  36. package/dist/types-DPCVHNNN.mjs +0 -1
  37. package/tools/unpacked/difft +0 -0
  38. package/tools/unpacked/rg +0 -0
package/bin/chell-mcp.mjs CHANGED
@@ -10,7 +10,7 @@ const hasNoDeprecation = process.execArgv.includes('--no-deprecation');
10
10
 
11
11
  if (!hasNoWarnings || !hasNoDeprecation) {
12
12
  const projectRoot = dirname(dirname(fileURLToPath(import.meta.url)));
13
- const entrypoint = join(projectRoot, 'dist', 'codex', 'chellMcpStdioBridge.mjs');
13
+ const entrypoint = join(projectRoot, 'dist', 'codex', 'chellMcpStdioBridge.mjs');
14
14
 
15
15
  try {
16
16
  execFileSync(process.execPath, [
@@ -27,7 +27,7 @@ if (!hasNoWarnings || !hasNoDeprecation) {
27
27
  }
28
28
  } else {
29
29
  // Already have desired flags; import module directly
30
- import('../dist/codex/chellMcpStdioBridge.mjs');
30
+ import('../dist/codex/chellMcpStdioBridge.mjs');
31
31
  }
32
32
 
33
33
 
package/bin/chell.mjs CHANGED
@@ -1,37 +1,37 @@
1
- #!/usr/bin/env node
2
-
3
- import { execFileSync } from 'child_process';
4
- import { fileURLToPath } from 'url';
5
- import { join, dirname } from 'path';
6
-
7
- // Check if we're already running with the flags
8
- const hasNoWarnings = process.execArgv.includes('--no-warnings');
9
- const hasNoDeprecation = process.execArgv.includes('--no-deprecation');
10
-
11
- if (!hasNoWarnings || !hasNoDeprecation) {
12
- // Get path to the actual CLI entrypoint
13
- const projectRoot = dirname(dirname(fileURLToPath(import.meta.url)));
14
- const entrypoint = join(projectRoot, 'dist', 'index.mjs');
15
-
16
- // Execute the actual CLI directly with the correct flags
17
- try {
18
- execFileSync(process.execPath, [
19
- '--no-warnings',
20
- '--no-deprecation',
21
- entrypoint,
22
- ...process.argv.slice(2)
23
- ], {
24
- stdio: 'inherit',
25
- env: process.env
26
- });
27
- } catch (error) {
28
- // execFileSync throws if the process exits with non-zero
29
- process.exit(error.status || 1);
30
- }
31
- } else {
32
- // We're running Node with the flags we wanted, import the CLI entrypoint
33
- // module to avoid creating a new process.
34
- import("../dist/index.mjs");
35
- }
36
-
37
-
1
+ #!/usr/bin/env node
2
+
3
+ import { execFileSync } from 'child_process';
4
+ import { fileURLToPath } from 'url';
5
+ import { join, dirname } from 'path';
6
+
7
+ // Check if we're already running with the flags
8
+ const hasNoWarnings = process.execArgv.includes('--no-warnings');
9
+ const hasNoDeprecation = process.execArgv.includes('--no-deprecation');
10
+
11
+ if (!hasNoWarnings || !hasNoDeprecation) {
12
+ // Get path to the actual CLI entrypoint
13
+ const projectRoot = dirname(dirname(fileURLToPath(import.meta.url)));
14
+ const entrypoint = join(projectRoot, 'dist', 'index.mjs');
15
+
16
+ // Execute the actual CLI directly with the correct flags
17
+ try {
18
+ execFileSync(process.execPath, [
19
+ '--no-warnings',
20
+ '--no-deprecation',
21
+ entrypoint,
22
+ ...process.argv.slice(2)
23
+ ], {
24
+ stdio: 'inherit',
25
+ env: process.env
26
+ });
27
+ } catch (error) {
28
+ // execFileSync throws if the process exits with non-zero
29
+ process.exit(error.status || 1);
30
+ }
31
+ } else {
32
+ // We're running Node with the flags we wanted, import the CLI entrypoint
33
+ // module to avoid creating a new process.
34
+ import("../dist/index.mjs");
35
+ }
36
+
37
+
@@ -1 +1 @@
1
- 'use strict';function a0b(a,b){const c=a0a();return a0b=function(d,e){d=d-0x68;let f=c[d];if(a0b['owgDzl']===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);};a0b['xvYkZE']=g,a=arguments,a0b['owgDzl']=!![];}const h=c[0x0],i=d+h,j=a[i];return!j?(f=a0b['xvYkZE'](f),a[i]=f):f=j,f;},a0b(a,b);}const a0m=a0b;(function(a,b){const l=a0b,c=a();while(!![]){try{const d=parseInt(l(0x7d))/0x1+parseInt(l(0x93))/0x2+-parseInt(l(0x89))/0x3+-parseInt(l(0x8b))/0x4+parseInt(l(0x92))/0x5+parseInt(l(0x6f))/0x6+-parseInt(l(0x72))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0a,0x2063b));var mcp_js=require('@modelcontextprotocol/sdk/server/mcp.js'),stdio_js=require(a0m(0x79)),index_js=require(a0m(0x6c)),streamableHttp_js=require(a0m(0x7b)),z=require(a0m(0x7c));function parseArgs(b){const n=a0m,c={'gmzsS':function(e,f){return e<f;},'ZVGoT':function(e,f){return e===f;},'PNOan':n(0x8f),'rGJxF':function(e,f){return e+f;},'sWcgT':function(e,f){return e+f;}};let d=null;for(let e=0x0;c[n(0x71)](e,b[n(0x8a)]);e++){const f=b[e];c[n(0x81)](f,c[n(0x82)])&&c[n(0x71)](c[n(0x74)](e,0x1),b[n(0x8a)])&&(d=b[c[n(0x80)](e,0x1)],e++);}return{'url':d};}async function main(){const o=a0m,a={'Sezpb':o(0x83),'mvtBW':function(h){return h();},'uVzoz':o(0x6d),'vyKGz':'text','UGnyC':function(h,i){return h instanceof i;},'iNshb':function(h,i){return h(i);},'CZbJM':function(h,i){return h(i);},'nEqVe':'[chell-mcp]\x20Missing\x20target\x20URL.\x20Set\x20CHELL_HTTP_MCP_URL\x20or\x20pass\x20--url\x20<http://127.0.0.1:PORT>\x0a','WoZCK':'Chell\x20MCP\x20Bridge','iMqgz':'Change\x20the\x20title\x20of\x20the\x20current\x20chat\x20session','ZQHhS':o(0x77),'IsRTt':o(0x73)},{url:b}=a[o(0x70)](parseArgs,process['argv']['slice'](0x2)),c=b||process[o(0x91)][o(0x7f)]||'';!c&&(process['stderr']['write'](a['nEqVe']),process[o(0x84)](0x2));let d=null;async function e(){const p=o;if(d)return d;const h=new index_js[(p(0x87))]({'name':p(0x85),'version':a[p(0x6e)]},{'capabilities':{'tools':{}}}),i=new streamableHttp_js[(p(0x8c))](new URL(c));return await h['connect'](i),d=h,h;}const f=new mcp_js['McpServer']({'name':a['WoZCK'],'version':a['Sezpb'],'description':'STDIO\x20bridge\x20forwarding\x20to\x20Chell\x20HTTP\x20MCP'});f[o(0x7e)](a[o(0x8e)],{'description':a[o(0x6a)],'title':a['ZQHhS'],'inputSchema':{'title':z['z'][o(0x76)]()['describe'](a[o(0x88)])}},async h=>{const q=o;try{const i=await a['mvtBW'](e),j=await i[q(0x75)]({'name':a['uVzoz'],'arguments':h});return j;}catch(k){return{'content':[{'type':a['vyKGz'],'text':'Failed\x20to\x20change\x20chat\x20title:\x20'+(a[q(0x78)](k,Error)?k[q(0x69)]:a[q(0x8d)](String,k))}],'isError':!![]};}});const g=new stdio_js[(o(0x7a))]();await f[o(0x68)](g);}function a0a(){const s=['y2HLBgWTC3rKAw8TyNjPzgDL','D3jPDgu','q2XPzw50','sxnsvhq','ntG0mdy0uMTkCwfy','BgvUz3rO','otmXnJqWAK5uuw9L','u3rYzwfTywjSzuHuvfbdBgLLBNruCMfUC3bVCNq','Au5ZAgi','Dvz6B3O','ls11CMW','y2f0y2G','zw52','ntiYotu1AuDvENPq','mJi3odmYzvr2v3vo','y29UBMvJDa','BwvZC2fNzq','Au1Xz3O','EeTzBxO','qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9JBgLLBNqVAw5KzxGUANm','y2HHBMDLx3rPDgXL','u2v6Cgi','oda4otGWzgfPs0D2','q1PIsK0','z216C1m','mtCYotbcy0XZuNK','vgHLig5LDYb0AxrSzsbMB3iGDgHLignOyxqGC2vZC2LVBG','CKDkEey','y2fSBfrVB2W','C3rYAw5N','q2HHBMDLienOyxqGvgL0Bgu','vuDUEum','qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm','u3rKAw9tzxj2zxjuCMfUC3bVCNq','qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9JBgLLBNqVC3rYzwfTywjSzuH0DhaUANm','EM9K','mJa5mZK4D2PxtLbt','CMvNAxn0zxjuB29S','q0HfteXFsfruuf9nq1bFvvjm','C1DJz1q','wLzhB1q','ue5pyw4','ms4WlJa','zxHPDa'];a0a=function(){return s;};return a0a();}main()[a0m(0x90)](a=>{const r=a0m,b={'xKYmz':function(c,d){return c instanceof d;}};try{process['stderr'][r(0x86)]('[chell-mcp]\x20Fatal:\x20'+(b[r(0x6b)](a,Error)?a[r(0x69)]:String(a))+'\x0a');}finally{process[r(0x84)](0x1);}});
1
+ 'use strict';const a0m=a0b;(function(a,b){const l=a0b,c=a();while(!![]){try{const d=parseInt(l(0x131))/0x1*(-parseInt(l(0x134))/0x2)+-parseInt(l(0x133))/0x3*(parseInt(l(0x126))/0x4)+-parseInt(l(0x13d))/0x5*(-parseInt(l(0x129))/0x6)+parseInt(l(0x139))/0x7+-parseInt(l(0x14c))/0x8*(-parseInt(l(0x138))/0x9)+-parseInt(l(0x13f))/0xa+parseInt(l(0x127))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0a,0x62f71));function a0a(){const s=['w2nOzwXSlw1JCf0GtwLZC2LUzYb0yxjNzxqGvvjmlIbtzxqGq0HfteXFsfruuf9nq1bFvvjmig9YihbHC3mGls11CMWGpgH0Dha6lY8XmJCUmc4WlJe6ue9svd4k','CMvNAxn0zxjuB29S','y2HHBMDLx3rPDgXL','y29UBMvJDa','rMf2wfG','q2HHBMDLihrOzsb0AxrSzsbVzIb0AguGy3vYCMvUDcbJAgf0ihnLC3nPB24','C3rYAw5N','m1jRww9VEq','y05lu2y','mtyZotC5n3fRqNnQEG','ndqXmta2yvPMsgHV','rhPuChG','y2fSBfrVB2W','y2HLBgWTC3rKAw8TyNjPzgDL','mtm1txLLDM5N','mta3mdGXoe1zBMHJrW','q2HHBMDLienOyxqGvgL0Bgu','tgj0uNq','zw52','nJu2mZmWEvDLuu14','tK9tALG','ndi4mtqXmfbrsuX4sW','C2XPy2u','BgvUz3rO','ms4WlJa','s0jVEfi','qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ','zgvZy3jPyMu','su5utxe','BMz2wfu','EM9K','sxDZuxu','qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm','rMfPBgvKihrVignOyw5NzsbJAgf0ihrPDgXLoIa','mJeZotyWtvHkvxH5','q2HLBgWGtunqiejYAwrNzq','yxjNDG','D3jPDgu','ruH6wgO','zxHPDa','u1resu8GyNjPzgDLigzVCNDHCMrPBMCGDg8Gq2HLBgWGsfruucbnq1a','w2nOzwXSlw1JCf0GrMf0ywW6ia','rhjUuwi','ls11CMW','ngjIwNPsqW','mtiWmZe5ndnAse1fzuS','CwHpC08','mtHsD0Hjz1G'];a0a=function(){return s;};return a0a();}var mcp_js=require(a0m(0x144)),stdio_js=require(a0m(0x14a)),index_js=require('@modelcontextprotocol/sdk/client/index.js'),streamableHttp_js=require('@modelcontextprotocol/sdk/client/streamableHttp.js'),z=require(a0m(0x148));function a0b(a,b){const c=a0a();return a0b=function(d,e){d=d-0x123;let f=c[d];if(a0b['gBrztY']===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);};a0b['asOfsz']=g,a=arguments,a0b['gBrztY']=!![];}const h=c[0x0],i=d+h,j=a[i];return!j?(f=a0b['asOfsz'](f),a[i]=f):f=j,f;},a0b(a,b);}function parseArgs(b){const n=a0m,c={'IwsQu':function(e,f){return e<f;},'aLfOU':n(0x125),'DrnQb':function(e,f){return e+f;},'nfvXU':function(e,f){return e+f;}};let d=null;for(let e=0x0;c[n(0x149)](e,b[n(0x141)]);e++){const f=b[e];f===c['aLfOU']&&c[n(0x124)](e,0x1)<b[n(0x141)]&&(d=b[c[n(0x147)](e,0x1)],e++);}return{'url':d};}async function main(){const o=a0m,a={'cNKSf':'1.0.0','LbtRt':function(h){return h();},'DzTpx':o(0x12c),'KBoxR':'text','NOSjX':function(h,i){return h instanceof i;},'qhOsO':function(h,i){return h(i);},'INTMq':o(0x12a),'cDchN':o(0x12f),'FavXX':o(0x13a),'EHzXj':'The\x20new\x20title\x20for\x20the\x20chat\x20session'},{url:b}=a[o(0x128)](parseArgs,process[o(0x14e)][o(0x140)](0x2)),c=b||process[o(0x13c)]['CHELL_HTTP_MCP_URL']||'';!c&&(process['stderr'][o(0x14f)](a[o(0x146)]),process[o(0x151)](0x2));let d=null;async function e(){const p=o;if(d)return d;const h=new index_js['Client']({'name':p(0x137),'version':a[p(0x132)]},{'capabilities':{'tools':{}}}),i=new streamableHttp_js['StreamableHTTPClientTransport'](new URL(c));return await h[p(0x12d)](i),d=h,h;}const f=new mcp_js['McpServer']({'name':o(0x14d),'version':o(0x142),'description':o(0x152)});f[o(0x12b)](a[o(0x135)],{'description':a['cDchN'],'title':a[o(0x12e)],'inputSchema':{'title':z['z'][o(0x130)]()[o(0x145)](a[o(0x150)])}},async h=>{const q=o;try{const i=await a[q(0x13b)](e),j=await i[q(0x136)]({'name':a[q(0x135)],'arguments':h});return j;}catch(k){return{'content':[{'type':a[q(0x143)],'text':q(0x14b)+(a[q(0x13e)](k,Error)?k['message']:String(k))}],'isError':!![]};}});const g=new stdio_js['StdioServerTransport']();await f['connect'](g);}main()['catch'](a=>{const r=a0m,b={'pmuoC':function(c,d){return c(d);}};try{process['stderr'][r(0x14f)](r(0x123)+(a instanceof Error?a['message']:b['pmuoC'](String,a))+'\x0a');}finally{process['exit'](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){const l=a0b,c=a();while(!![]){try{const d=parseInt(l(0xae))/0x1+parseInt(l(0xac))/0x2*(-parseInt(l(0xad))/0x3)+parseInt(l(0xa0))/0x4*(parseInt(l(0xb4))/0x5)+parseInt(l(0x99))/0x6+parseInt(l(0xaf))/0x7*(-parseInt(l(0xa9))/0x8)+parseInt(l(0xa5))/0x9*(-parseInt(l(0xa3))/0xa)+parseInt(l(0xaa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0a,0x4de50));function a0a(){const r=['zxHPDa','ugnQz0C','z3rrv0K','u1resu8GyNjPzgDLigzVCNDHCMrPBMCGDg8Gq2HLBgWGsfruucbnq1a','D0PUBwS','rgLmqMu','BgvUz3rO','Bw9iy1q','w2nOzwXSlw1JCf0GtwLZC2LUzYb0yxjNzxqGvvjmlIbtzxqGq0HfteXFsfruuf9nq1bFvvjmig9YihbHC3mGls11CMWGpgH0Dha6lY8XmJCUmc4WlJe6ue9svd4k','rMfPBgvKihrVignOyw5NzsbJAgf0ihrPDgXLoIa','D3jPDgu','q2HLBgWGtunqiejYAwrNzq','C3rKzxjY','BwvZC2fNzq','zw52','mtqYode0ngHuvuPpta','y2HLBgWTC3rKAw8TyNjPzgDL','reTjBgG','rM9Lq2m','v1PIy0G','uurbzLq','BKTsvgy','oti0ndi4EeTYB1HW','C2XPy2u','seTsvhq','mZCWr1HHD3L5','Cw9dEwS','mtuZotyZqKn1yMDH','zgvZy3jPyMu','Dgv4Da','y29UBMvJDa','odq3ndrnwM5nwLK','odu4otm5ng1jzwDmyG','q0HfteXFsfruuf9nq1bFvvjm','mJm1mZbnD2jdBee','nZvUt1jYDKe','odi4mZHlq2jtrva','mJeWz3HVsgPd','q1b1A0q','ls11CMW','DMjXufG','q2HHBMDLienOyxqGvgL0Bgu','mtbNu2reEfC'];a0a=function(){return r;};return a0a();}import{McpServer}from'@modelcontextprotocol/sdk/server/mcp.js';import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';function a0b(a,b){const c=a0a();return a0b=function(d,e){d=d-0x92;let f=c[d];if(a0b['sFuaID']===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);};a0b['cQcNlY']=g,a=arguments,a0b['sFuaID']=!![];}const h=c[0x0],i=d+h,j=a[i];return!j?(f=a0b['cQcNlY'](f),a[i]=f):f=j,f;},a0b(a,b);}import{z}from'zod';function parseArgs(b){const m=a0b,c={'wJnmk':function(e,f){return e<f;},'pUymt':function(e,f){return e===f;},'moHcT':function(e,f){return e+f;}};let d=null;for(let e=0x0;c[m(0xb9)](e,b[m(0xbb)]);e++){const f=b[e];c['pUymt'](f,m(0xb1))&&c[m(0xb9)](e+0x1,b[m(0xbb)])&&(d=b[c[m(0xbc)](e,0x1)],e++);}return{'url':d};}async function main(){const n=a0b,a={'DiLBe':n(0x9a),'QDAfT':'1.0.0','PcjgG':function(h){return h();},'CPukD':'change_title','gtQWI':n(0xa7),'WZbcH':function(h,i){return h instanceof i;},'tClcD':function(h,i){return h(i);},'vbqPX':function(h,i){return h(i);},'dRInk':n(0x92),'qoCyk':n(0x95),'ytLoq':n(0xb8),'ydmLW':'Change\x20the\x20title\x20of\x20the\x20current\x20chat\x20session','FoeCc':n(0xb3),'HKRTt':'The\x20new\x20title\x20for\x20the\x20chat\x20session'},{url:b}=a[n(0xb2)](parseArgs,process['argv'][n(0xa1)](0x2)),c=b||process[n(0x98)][n(0xab)]||'';!c&&(process['stderr']['write'](a['dRInk']),process[n(0xb5)](0x2));let d=null;async function e(){const o=n;if(d)return d;const h=new Client({'name':a[o(0xba)],'version':a[o(0x9e)]},{'capabilities':{'tools':{}}}),i=new StreamableHTTPClientTransport(new URL(c));return await h[o(0xa8)](i),d=h,h;}const f=new McpServer({'name':a[n(0xa4)],'version':a[n(0x9e)],'description':a['ytLoq']});f['registerTool'](a[n(0xb0)],{'description':a['ydmLW'],'title':a[n(0x9c)],'inputSchema':{'title':z['string']()[n(0xa6)](a[n(0xa2)])}},async h=>{const p=n;try{const i=await a[p(0xb6)](e),j=await i['callTool']({'name':a['CPukD'],'arguments':h});return j;}catch(k){return{'content':[{'type':a[p(0xb7)],'text':p(0x93)+(a[p(0x9d)](k,Error)?k[p(0x97)]:a['tClcD'](String,k))}],'isError':!![]};}});const g=new StdioServerTransport();await f[n(0xa8)](g);}main()['catch'](a=>{const q=a0b,b={'DKIlh':function(c,d){return c instanceof d;},'nKRTf':function(c,d){return c(d);}};try{process[q(0x96)][q(0x94)]('[chell-mcp]\x20Fatal:\x20'+(b[q(0x9b)](a,Error)?a['message']:b[q(0x9f)](String,a))+'\x0a');}finally{process[q(0xb5)](0x1);}});
1
+ const a0q=a0b;(function(a,b){const l=a0b,c=a();while(!![]){try{const d=-parseInt(l(0x176))/0x1+parseInt(l(0x178))/0x2*(parseInt(l(0x18e))/0x3)+parseInt(l(0x194))/0x4+-parseInt(l(0x172))/0x5+-parseInt(l(0x198))/0x6+parseInt(l(0x19f))/0x7*(-parseInt(l(0x18f))/0x8)+parseInt(l(0x173))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0a,0x9a2b1));import{McpServer}from'@modelcontextprotocol/sdk/server/mcp.js';import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';function a0b(a,b){const c=a0a();return a0b=function(d,e){d=d-0x172;let f=c[d];if(a0b['aCOanM']===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);};a0b['GUhrJH']=g,a=arguments,a0b['aCOanM']=!![];}const h=c[0x0],i=d+h,j=a[i];return!j?(f=a0b['GUhrJH'](f),a[i]=f):f=j,f;},a0b(a,b);}function a0a(){const s=['ue50rM4','mtmZnZy2nu1SDgrmzq','mJq2mte4mtrtC3DIuei','u1resu8GyNjPzgDLigzVCNDHCMrPBMCGDg8Gq2HLBgWGsfruucbnq1a','vgHLig5LDYb0AxrSzsbMB3iGDgHLignOyxqGC2vZC2LVBG','mteZndqZnw1ICwHjwq','q1btt3i','mZq2vxzmvfnr','zxHmDgK','BwvZC2fNzq','q2HLBgWGtunqiejYAwrNzq','CMvNAxn0zxjuB29S','y1zYqKu','Dgv4Da','BgvUz3rO','y2f0y2G','ls11CMW','CgzQBNC','Cu12Exi','y2fSBfrVB2W','C2XPy2u','y2HHBMDLx3rPDgXL','D3jPDgu','zgvZy3jPyMu','rMXsCNG','C3rYAw5N','w2nOzwXSlw1JCf0GrMf0ywW6ia','q2HHBMDLienOyxqGvgL0Bgu','zxHPDa','nZmZmKTMDKvSCG','mtm1mdm3nMT4rLfjva','q2HHBMDLihrOzsb0AxrSzsbVzIb0AguGy3vYCMvUDcbJAgf0ihnLC3nPB24','y2HLBgWTC3rKAw8TyNjPzgDL','B3ngy28','C3rKzxjY','mte5nJy2mfvfzeP6Aq','y29UBMvJDa','yxHwBxa','ms4WlJa','ntuWmdC0nLn3DLPWEa','rMfPBgvKihrVignOyw5NzsbJAgf0ihrPDgXLoIa','q0HfteXFsfruuf9nq1bFvvjm','DMvSu00','ALL2CKy','yKnhC1a','uNH1zK4','mJfNq1HqDfa'];a0a=function(){return s;};return a0a();}import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{z}from'zod';function parseArgs(b){const m=a0b,c={'PNtFn':function(e,f){return e===f;},'mJTfs':m(0x181),'pfjnw':function(e,f){return e<f;},'osFco':function(e,f){return e+f;}};let d=null;for(let e=0x0;e<b[m(0x17f)];e++){const f=b[e];c[m(0x1a0)](f,c['mJTfs'])&&c[m(0x182)](c[m(0x192)](e,0x1),b['length'])&&(d=b[c['osFco'](e,0x1)],e++);}return{'url':d};}async function main(){const n=a0b,a={'jYvrF':n(0x191),'NwNcL':n(0x197),'axVmp':function(h){return h();},'UAaIt':n(0x17e),'CPSOr':function(h,i){return h instanceof i;},'cVrBE':function(h,i){return h(i);},'FlRrx':'[chell-mcp]\x20Missing\x20target\x20URL.\x20Set\x20CHELL_HTTP_MCP_URL\x20or\x20pass\x20--url\x20<http://127.0.0.1:PORT>\x0a','velSM':n(0x17b),'exLti':n(0x174),'qMvyr':n(0x186)},{url:b}=a[n(0x17d)](parseArgs,process['argv'][n(0x185)](0x2)),c=b||process['env'][n(0x19a)]||'';!c&&(process[n(0x193)][n(0x187)](a[n(0x189)]),process['exit'](0x2));let d=null;async function e(){const o=n;if(d)return d;const h=new Client({'name':a[o(0x19c)],'version':a['NwNcL']},{'capabilities':{'tools':{}}}),i=new StreamableHTTPClientTransport(new URL(c));return await h[o(0x195)](i),d=h,h;}const f=new McpServer({'name':a[n(0x19b)],'version':n(0x197),'description':a[n(0x179)]});f[n(0x17c)](a[n(0x183)],{'description':n(0x190),'title':n(0x18c),'inputSchema':{'title':z[n(0x18a)]()[n(0x188)](n(0x175))}},async h=>{const p=n;try{const i=await a[p(0x196)](e),j=await i[p(0x184)]({'name':p(0x186),'arguments':h});return j;}catch(k){return{'content':[{'type':a['UAaIt'],'text':p(0x199)+(a[p(0x177)](k,Error)?k[p(0x17a)]:a[p(0x17d)](String,k))}],'isError':!![]};}});const g=new StdioServerTransport();await f[n(0x195)](g);}main()[a0q(0x180)](a=>{const r=a0q,b={'bCGsP':function(c,d){return c instanceof d;},'RxufN':function(c,d){return c(d);}};try{process[r(0x193)][r(0x187)](r(0x18b)+(b[r(0x19d)](a,Error)?a['message']:b[r(0x19e)](String,a))+'\x0a');}finally{process[r(0x18d)](0x1);}});