@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.
- package/bin/chell-mcp.mjs +2 -2
- package/bin/chell.mjs +37 -37
- package/dist/codex/chellMcpStdioBridge.cjs +1 -1
- package/dist/codex/chellMcpStdioBridge.mjs +1 -1
- package/dist/index-C2y4OuM1.cjs +1 -0
- package/dist/index-DJESWtKQ.mjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/lib.cjs +1 -1
- package/dist/lib.mjs +1 -1
- package/dist/runCodex-BEElKZEo.mjs +1 -0
- package/dist/runCodex-xlHBeqw1.cjs +1 -0
- package/dist/runGemini-C-CBRnA-.cjs +1 -0
- package/dist/runGemini-sB16Usoy.mjs +1 -0
- package/dist/types-Bkma9UQ9.mjs +1 -0
- package/dist/types-tCY2DR9n.cjs +1 -0
- package/package.json +6 -6
- package/scripts/claude_remote_launcher.cjs +12 -12
- package/scripts/codex_preload.cjs +56 -56
- package/scripts/pack-chell.cjs +32 -32
- package/scripts/publish-scoped.ps1 +58 -58
- package/scripts/ripgrep_launcher.cjs +32 -32
- package/scripts/unpack-tools.cjs +162 -162
- package/tools/archives/difftastic-LICENSE +21 -21
- package/tools/archives/ripgrep-LICENSE +3 -3
- package/tools/licenses/difftastic-LICENSE +21 -21
- package/tools/licenses/ripgrep-LICENSE +3 -3
- package/tools/unpacked/ripgrep.node +0 -0
- package/dist/index-BK-xOixv.mjs +0 -1
- package/dist/index-o4fcx50D.cjs +0 -1
- package/dist/runCodex-Cftzrb2J.cjs +0 -1
- package/dist/runCodex-DAy9-IUr.mjs +0 -1
- package/dist/runGemini-D9hpwm_S.cjs +0 -1
- package/dist/runGemini-DKB4HBSt.mjs +0 -1
- package/dist/types-BVqVyV3a.cjs +0 -1
- package/dist/types-DPCVHNNN.mjs +0 -1
- package/tools/unpacked/difft +0 -0
- 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-
|
|
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
|
|
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);}});
|