@sparrowai/sparrow-mcp 1.1.5 → 1.1.6
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/dist/.tsbuildinfo +1 -1
- package/dist/scripts/mcp-test/mcp-client.js +1 -1
- package/dist/scripts/test-runner/check-failed-tests.js +1 -1
- package/dist/scripts/test-runner/compare-responses.js +1 -1
- package/dist/scripts/test-runner/standalone-test-fixed-header.js +1 -1
- package/dist/scripts/test-runner/standalone-test.js +1 -1
- package/dist/src/config/appConfig.js +1 -1
- package/dist/src/config/constants.js +1 -1
- package/dist/src/controllers/__tests__/analysis.controller.test.js +1 -1
- package/dist/src/controllers/__tests__/sast.controller.test.js +1 -1
- package/dist/src/controllers/__tests__/sca.controller.test.js +1 -1
- package/dist/src/controllers/__tests__/security.controller.test.js +1 -1
- package/dist/src/controllers/__tests__/system.controller.test.js +1 -1
- package/dist/src/controllers/analysis.controller.js +1 -1
- package/dist/src/controllers/sast.controller.js +1 -1
- package/dist/src/controllers/sca.controller.js +1 -1
- package/dist/src/controllers/security.controller.js +1 -1
- package/dist/src/controllers/system.controller.js +1 -1
- package/dist/src/schemas/tool.schemas.js +1 -1
- package/dist/src/server.js +1 -1
- package/dist/src/services/__tests__/checker.service.test.js +1 -1
- package/dist/src/services/__tests__/llm.service.test.js +1 -1
- package/dist/src/services/__tests__/s3.service.test.js +1 -1
- package/dist/src/services/__tests__/sparrow.service.test.js +1 -1
- package/dist/src/services/analysis.service.js +1 -1
- package/dist/src/services/checker.service.js +1 -1
- package/dist/src/services/llm/AnthropicProvider.js +1 -1
- package/dist/src/services/llm/BedrockProvider.js +1 -1
- package/dist/src/services/llm/GeminiProvider.js +1 -1
- package/dist/src/services/llm/LLMFactory.js +1 -1
- package/dist/src/services/llm/LLMProvider.js +1 -1
- package/dist/src/services/llm/OllamaProvider.js +1 -1
- package/dist/src/services/llm/OpenAIProvider.js +1 -1
- package/dist/src/services/llm.service.js +1 -1
- package/dist/src/services/s3.service.js +1 -1
- package/dist/src/services/sparrow.service.js +1 -1
- package/dist/src/types/types.js +1 -1
- package/dist/src/utils/__tests__/crypto.util.test.js +1 -1
- package/dist/src/utils/__tests__/diff.util.test.js +1 -1
- package/dist/src/utils/__tests__/fileManager.test.js +1 -1
- package/dist/src/utils/__tests__/fileManagerSecure.test.js +1 -1
- package/dist/src/utils/__tests__/logger.test.js +1 -1
- package/dist/src/utils/crypto.util.js +1 -1
- package/dist/src/utils/diff.util.js +1 -1
- package/dist/src/utils/fileManager.js +1 -1
- package/dist/src/utils/fileManagerSecure.js +1 -1
- package/dist/src/utils/logger.js +1 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a37_0x9feddd=a37_0x2323;(function(_0xc93753,_0x5836e9){const _0xc20070=a37_0x2323,_0x44ca4e=_0xc93753();while(!![]){try{const _0x4b84a8=-parseInt(_0xc20070(0xeb))/0x1*(-parseInt(_0xc20070(0x104))/0x2)+parseInt(_0xc20070(0x10d))/0x3+-parseInt(_0xc20070(0xe3))/0x4*(parseInt(_0xc20070(0xf2))/0x5)+-parseInt(_0xc20070(0xe7))/0x6*(-parseInt(_0xc20070(0xe8))/0x7)+parseInt(_0xc20070(0xf5))/0x8*(-parseInt(_0xc20070(0xe9))/0x9)+-parseInt(_0xc20070(0xe0))/0xa+parseInt(_0xc20070(0xff))/0xb*(-parseInt(_0xc20070(0x105))/0xc);if(_0x4b84a8===_0x5836e9)break;else _0x44ca4e['push'](_0x44ca4e['shift']());}catch(_0x4ceea5){_0x44ca4e['push'](_0x44ca4e['shift']());}}}(a37_0x57de,0xc73f3));function a37_0x2323(_0x550a84,_0x308746){_0x550a84=_0x550a84-0xdf;const _0x5bf9d6=a37_0x57de();let _0x3b1656=_0x5bf9d6[_0x550a84];return _0x3b1656;}const a37_0x53edeb=(function(){let _0x38dfc4=!![];return function(_0x131af4,_0x51f90c){const _0x279dda=_0x38dfc4?function(){if(_0x51f90c){const _0x2a7d83=_0x51f90c['apply'](_0x131af4,arguments);return _0x51f90c=null,_0x2a7d83;}}:function(){};return _0x38dfc4=![],_0x279dda;};}()),a37_0x3b1656=a37_0x53edeb(this,function(){const _0x30d300=a37_0x2323;return a37_0x3b1656[_0x30d300(0x102)]()[_0x30d300(0xf3)](_0x30d300(0x109)+'+$')['toString']()[_0x30d300(0xef)+'r'](a37_0x3b1656)[_0x30d300(0xf3)](_0x30d300(0x109)+'+$');});function a37_0x57de(){const _0x58ec45=['+++\x20안전한\x20코드','패했습니다.','oldCount','(((.+)+)+)','ff\x20생성에\x20실패했','\x20완료','---\x20a/','3020979zoPhqw','JZFgE','IamMh','+++\x20b/','---\x20원본\x20코드','siTFS','6153570ImIUZR','\x20+1,','lines','3076qOmVKZ','WSeMp','@@\x20-','@@\x20-1,','4860354KrfqKH','14fiecYa','9kaFriK','code.java','59KFLLPo','Ttdrc','generateUn','length','constructo','GvtYz','oldStart','6845PegCaW','search','generateDi','3397848IuTGnz','split','info','kQMHd','YLwxe','push','ff\x20생성\x20실패:','computeHun','\x20@@','newStart','338426xmgOCY','EjmXR','newCount','toString','코드\x20diff\x20생성','13726utgSuA','48vadfpW'];a37_0x57de=function(){return _0x58ec45;};return a37_0x57de();}a37_0x3b1656();import{logger}from'./logger.js';export class DiffUtil{static[a37_0x9feddd(0xf4)+'ff'](_0x1dc09b,_0x173d79){const _0x1fcdfb=a37_0x9feddd,_0x44932={};_0x44932['kQMHd']=function(_0x40281b,_0x24214d){return _0x40281b===_0x24214d;},_0x44932[_0x1fcdfb(0xf9)]=_0x1fcdfb(0x103)+_0x1fcdfb(0x10b);const _0x2dd1db=_0x44932;try{const _0xe8d730=_0x1dc09b['split']('\x0a'),_0x4a6106=_0x173d79[_0x1fcdfb(0xf6)]('\x0a'),_0x2a1782=[];_0x2a1782[_0x1fcdfb(0xfa)](_0x1fcdfb(0x111)),_0x2a1782['push'](_0x1fcdfb(0x106)),_0x2a1782['push'](_0x1fcdfb(0xe6)+_0xe8d730[_0x1fcdfb(0xee)]+_0x1fcdfb(0xe1)+_0x4a6106[_0x1fcdfb(0xee)]+_0x1fcdfb(0xfd));const _0x422239=Math['max'](_0xe8d730['length'],_0x4a6106[_0x1fcdfb(0xee)]);for(let _0x78b907=0x0;_0x78b907<_0x422239;_0x78b907++){const _0xb8810f=_0xe8d730[_0x78b907]||'',_0x1ee0d0=_0x4a6106[_0x78b907]||'';_0x2dd1db[_0x1fcdfb(0xf8)](_0xb8810f,_0x1ee0d0)?_0x2a1782[_0x1fcdfb(0xfa)]('\x20'+_0xb8810f):(_0xb8810f&&_0x2a1782['push']('-'+_0xb8810f),_0x1ee0d0&&_0x2a1782[_0x1fcdfb(0xfa)]('+'+_0x1ee0d0));}return logger[_0x1fcdfb(0xf7)](_0x2dd1db[_0x1fcdfb(0xf9)]),_0x2a1782['join']('\x0a');}catch(_0x9537fb){return logger['error']('Diff\x20생성\x20실패'+':',_0x9537fb),'Diff\x20생성에\x20실'+_0x1fcdfb(0x107);}}static[a37_0x9feddd(0xed)+'ifiedDiff'](_0x3ccf93,_0x49cab1,_0x2956cb=a37_0x9feddd(0xea)){const _0x34f2eb=a37_0x9feddd,_0x4a97ca={};_0x4a97ca[_0x34f2eb(0xe4)]=function(_0x1754c1,_0x4d21e0){return _0x1754c1!==_0x4d21e0;};const _0x259b7e=_0x4a97ca;try{if(_0x259b7e['WSeMp'](_0x34f2eb(0xec),_0x34f2eb(0xdf))){const _0x47e341=_0x3ccf93[_0x34f2eb(0xf6)]('\x0a'),_0x44bd0c=_0x49cab1[_0x34f2eb(0xf6)]('\x0a'),_0x3d5174=[];_0x3d5174[_0x34f2eb(0xfa)](_0x34f2eb(0x10c)+_0x2956cb),_0x3d5174['push'](_0x34f2eb(0x110)+_0x2956cb);const _0x31de61=this[_0x34f2eb(0xfc)+'ks'](_0x47e341,_0x44bd0c);for(const _0x1cf315 of _0x31de61){_0x3d5174['push'](_0x34f2eb(0xe5)+_0x1cf315[_0x34f2eb(0xf1)]+','+_0x1cf315['oldCount']+'\x20+'+_0x1cf315[_0x34f2eb(0xfe)]+','+_0x1cf315['newCount']+_0x34f2eb(0xfd));for(const _0x43acf8 of _0x1cf315[_0x34f2eb(0xe2)]){_0x3d5174[_0x34f2eb(0xfa)](_0x43acf8);}}return logger[_0x34f2eb(0xf7)]('Unified\x20di'+'ff\x20생성\x20완료'),_0x3d5174['join']('\x0a');}else{const _0x56307e={};_0x56307e[_0x34f2eb(0xf1)]=_0x9cb978,_0x56307e[_0x34f2eb(0x108)]=_0x10f70f,_0x56307e[_0x34f2eb(0xfe)]=_0x445e60,_0x56307e[_0x34f2eb(0x101)]=_0x1bb7a8,_0x56307e[_0x34f2eb(0xe2)]=[..._0x148f4f],_0x4b8a31[_0x34f2eb(0xfa)](_0x56307e),_0x43266f['length']=0x0,_0x486290=0x0,_0x3dd75a=0x0;}}catch(_0x4e8b6b){return logger['error']('Unified\x20di'+_0x34f2eb(0xfb),_0x4e8b6b),'Unified\x20di'+_0x34f2eb(0x10a)+'습니다.';}}static[a37_0x9feddd(0xfc)+'ks'](_0x4d2e3b,_0x5d0f16){const _0x275d0e=a37_0x9feddd,_0x4fe9ec={};_0x4fe9ec[_0x275d0e(0x10e)]=function(_0x44fef2,_0x10565c){return _0x44fef2===_0x10565c;},_0x4fe9ec[_0x275d0e(0xf0)]=function(_0x2f29cf,_0x1c55cf){return _0x2f29cf+_0x1c55cf;},_0x4fe9ec['IamMh']=function(_0xd9dd9,_0x2a1458){return _0xd9dd9===_0x2a1458;},_0x4fe9ec[_0x275d0e(0x100)]=function(_0x2dcf69,_0x146010){return _0x2dcf69+_0x146010;};const _0x467702=_0x4fe9ec,_0x259f86=[],_0x1c293a=Math['max'](_0x4d2e3b['length'],_0x5d0f16[_0x275d0e(0xee)]),_0x165723=[];let _0x5cdea6=0x1,_0x912bd3=0x1,_0x56e0ff=0x0,_0xced59b=0x0;for(let _0x1ecebe=0x0;_0x1ecebe<_0x1c293a;_0x1ecebe++){const _0xc8aa6e=_0x4d2e3b[_0x1ecebe]||'',_0x5e9fe8=_0x5d0f16[_0x1ecebe]||'';if(_0x467702[_0x275d0e(0x10e)](_0xc8aa6e,_0x5e9fe8)){if(_0x56e0ff>0x0||_0xced59b>0x0){const _0x3eefc1={};_0x3eefc1['oldStart']=_0x5cdea6,_0x3eefc1[_0x275d0e(0x108)]=_0x56e0ff,_0x3eefc1[_0x275d0e(0xfe)]=_0x912bd3,_0x3eefc1[_0x275d0e(0x101)]=_0xced59b,_0x3eefc1[_0x275d0e(0xe2)]=[..._0x165723],_0x259f86[_0x275d0e(0xfa)](_0x3eefc1),_0x165723[_0x275d0e(0xee)]=0x0,_0x56e0ff=0x0,_0xced59b=0x0;}_0x5cdea6=_0x1ecebe+0x2,_0x912bd3=_0x467702[_0x275d0e(0xf0)](_0x1ecebe,0x2);}else _0x467702[_0x275d0e(0x10f)](_0x56e0ff,0x0)&&_0xced59b===0x0&&(_0x5cdea6=_0x467702[_0x275d0e(0x100)](_0x1ecebe,0x1),_0x912bd3=_0x1ecebe+0x1),_0xc8aa6e&&(_0x165723[_0x275d0e(0xfa)]('-'+_0xc8aa6e),_0x56e0ff++),_0x5e9fe8&&(_0x165723[_0x275d0e(0xfa)]('+'+_0x5e9fe8),_0xced59b++);}if(_0x56e0ff>0x0||_0xced59b>0x0){const _0x438ed7={};_0x438ed7['oldStart']=_0x5cdea6,_0x438ed7['oldCount']=_0x56e0ff,_0x438ed7[_0x275d0e(0xfe)]=_0x912bd3,_0x438ed7['newCount']=_0xced59b,_0x438ed7[_0x275d0e(0xe2)]=[..._0x165723],_0x259f86['push'](_0x438ed7);}return _0x259f86;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38_0x4f3463=a38_0x1c9d;function a38_0x1c9d(_0x50afe7,_0x322499){_0x50afe7=_0x50afe7-0x8c;const _0x5d59ca=a38_0x5af2();let _0x3424be=_0x5d59ca[_0x50afe7];return _0x3424be;}function a38_0x5af2(){const _0x45566d=['existsSync','5vezHTq','40XKZJtn','baseDir','writeFileS','(((.+)+)+)','join','31483olUXJa','507393CCyGuU','2406808fejPrR','441084RZUtal','2bJQNvb','unlinkSync','1065540KSxzBm','utf-8','575145FfGzPy','toString','writeFile','ync','search','readFile','readFileSy','1343106qsplhE'];a38_0x5af2=function(){return _0x45566d;};return a38_0x5af2();}(function(_0x54b6a5,_0x5182a7){const _0x45e50c=a38_0x1c9d,_0x470a00=_0x54b6a5();while(!![]){try{const _0x4dd850=parseInt(_0x45e50c(0x8f))/0x1*(parseInt(_0x45e50c(0x93))/0x2)+-parseInt(_0x45e50c(0x97))/0x3+-parseInt(_0x45e50c(0x91))/0x4*(-parseInt(_0x45e50c(0xa0))/0x5)+-parseInt(_0x45e50c(0x9e))/0x6+-parseInt(_0x45e50c(0x92))/0x7+parseInt(_0x45e50c(0xa1))/0x8*(parseInt(_0x45e50c(0x90))/0x9)+-parseInt(_0x45e50c(0x95))/0xa;if(_0x4dd850===_0x5182a7)break;else _0x470a00['push'](_0x470a00['shift']());}catch(_0x2ee38a){_0x470a00['push'](_0x470a00['shift']());}}}(a38_0x5af2,0x508d2));const a38_0x3a8ca7=(function(){let _0x4beffe=!![];return function(_0x2ed2dd,_0x481f00){const _0xfe305f=_0x4beffe?function(){if(_0x481f00){const _0x54f560=_0x481f00['apply'](_0x2ed2dd,arguments);return _0x481f00=null,_0x54f560;}}:function(){};return _0x4beffe=![],_0xfe305f;};}()),a38_0x3424be=a38_0x3a8ca7(this,function(){const _0x55aed1=a38_0x1c9d;return a38_0x3424be[_0x55aed1(0x98)]()[_0x55aed1(0x9b)]('(((.+)+)+)'+'+$')['toString']()['constructo'+'r'](a38_0x3424be)['search'](_0x55aed1(0x8d)+'+$');});a38_0x3424be();import*as a38_0x38d8c4 from'fs';import*as a38_0x2cd792 from'path';export class FileManager{['baseDir'];constructor(_0x2b4c13){const _0x18ac99=a38_0x1c9d;this[_0x18ac99(0xa2)]=_0x2b4c13;}[a38_0x4f3463(0x9c)](_0x2c6a4c){const _0x5948af=a38_0x4f3463,_0x1d9013=a38_0x2cd792[_0x5948af(0x8e)](this[_0x5948af(0xa2)],_0x2c6a4c);return a38_0x38d8c4[_0x5948af(0x9d)+'nc'](_0x1d9013,'utf-8');}[a38_0x4f3463(0x99)](_0x1a3f7b,_0x10ee6a){const _0x2f7846=a38_0x4f3463,_0x54ee38=a38_0x2cd792[_0x2f7846(0x8e)](this[_0x2f7846(0xa2)],_0x1a3f7b);a38_0x38d8c4[_0x2f7846(0x8c)+_0x2f7846(0x9a)](_0x54ee38,_0x10ee6a,_0x2f7846(0x96));}['deleteFile'](_0x207d8c){const _0x57d83f=a38_0x4f3463,_0x2be11d=a38_0x2cd792[_0x57d83f(0x8e)](this[_0x57d83f(0xa2)],_0x207d8c);a38_0x38d8c4[_0x57d83f(0x9f)](_0x2be11d)&&a38_0x38d8c4[_0x57d83f(0x94)](_0x2be11d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a39_0x14d4(_0x5263dc,_0x3e1739){_0x5263dc=_0x5263dc-0x82;const _0x1e2304=a39_0x36cf();let _0x59b2cb=_0x1e2304[_0x5263dc];return _0x59b2cb;}const a39_0x2b0324=a39_0x14d4;(function(_0x2cfee6,_0x1ca727){const _0xcff0f0=a39_0x14d4,_0x5e9d65=_0x2cfee6();while(!![]){try{const _0x5f0638=parseInt(_0xcff0f0(0xa1))/0x1*(-parseInt(_0xcff0f0(0x87))/0x2)+-parseInt(_0xcff0f0(0x9d))/0x3*(-parseInt(_0xcff0f0(0x8d))/0x4)+parseInt(_0xcff0f0(0x9f))/0x5+-parseInt(_0xcff0f0(0x98))/0x6+-parseInt(_0xcff0f0(0x9c))/0x7*(-parseInt(_0xcff0f0(0x97))/0x8)+parseInt(_0xcff0f0(0xa0))/0x9+parseInt(_0xcff0f0(0x8a))/0xa*(parseInt(_0xcff0f0(0x91))/0xb);if(_0x5f0638===_0x1ca727)break;else _0x5e9d65['push'](_0x5e9d65['shift']());}catch(_0x464249){_0x5e9d65['push'](_0x5e9d65['shift']());}}}(a39_0x36cf,0x3dc94));const a39_0x3a6e90=(function(){let _0x57dcca=!![];return function(_0x2007dd,_0x362733){const _0x25c4e8=_0x57dcca?function(){const _0x321ded=a39_0x14d4;if(_0x362733){const _0x563393=_0x362733[_0x321ded(0x95)](_0x2007dd,arguments);return _0x362733=null,_0x563393;}}:function(){};return _0x57dcca=![],_0x25c4e8;};}()),a39_0x59b2cb=a39_0x3a6e90(this,function(){const _0x254897=a39_0x14d4;return a39_0x59b2cb[_0x254897(0x82)]()['search'](_0x254897(0x9e)+'+$')[_0x254897(0x82)]()[_0x254897(0x90)+'r'](a39_0x59b2cb)[_0x254897(0x93)](_0x254897(0x9e)+'+$');});a39_0x59b2cb();import*as a39_0x23da8d from'fs';import*as a39_0x4856dc from'path';export class FileManager{['baseDir'];constructor(_0x3ee1c7){const _0x53addc=a39_0x14d4;this[_0x53addc(0x86)]=_0x3ee1c7;}[a39_0x2b0324(0x8c)+'h'](_0x391a1c){const _0x147dbf=a39_0x2b0324,_0x3f3411=a39_0x4856dc[_0x147dbf(0x8b)](this[_0x147dbf(0x86)],_0x391a1c);if(!_0x3f3411['startsWith'](a39_0x4856dc['resolve'](this[_0x147dbf(0x86)])))throw new Error('Access\x20den'+_0x147dbf(0x88)+_0x147dbf(0x89)+_0x147dbf(0x8f));return _0x3f3411;}[a39_0x2b0324(0x9b)](_0x20c497){const _0x1c7a03=a39_0x2b0324,_0x50485c={};_0x50485c[_0x1c7a03(0x84)]=_0x1c7a03(0x83);const _0x47e272=_0x50485c,_0x5f19a9=this['resolvePat'+'h'](_0x20c497);return a39_0x23da8d[_0x1c7a03(0x99)+'nc'](_0x5f19a9,_0x47e272[_0x1c7a03(0x84)]);}[a39_0x2b0324(0x85)](_0x142732,_0x392a29){const _0x499be5=a39_0x2b0324,_0x199e94=this[_0x499be5(0x8c)+'h'](_0x142732);a39_0x23da8d[_0x499be5(0x8e)+_0x499be5(0x9a)](_0x199e94,_0x392a29,_0x499be5(0x83));}[a39_0x2b0324(0x94)](_0x54d212){const _0x2154e5=a39_0x2b0324,_0x4505ea=this['resolvePat'+'h'](_0x54d212);a39_0x23da8d[_0x2154e5(0x92)](_0x4505ea)&&a39_0x23da8d[_0x2154e5(0x96)](_0x4505ea);}}function a39_0x36cf(){const _0x51d81c=['76703BuhZyQ','existsSync','search','deleteFile','apply','unlinkSync','112XQPRfs','1467450zkzHOB','readFileSy','ync','readFile','29687FKHFAj','3PMUuvl','(((.+)+)+)','345920ZnVBgZ','1656819TKlhet','321605FdsmSR','toString','utf-8','IKOcK','writeFile','baseDir','2DqbUnV','ied:\x20Inval','id\x20file\x20pa','460KegyAK','join','resolvePat','743396gtsUPw','writeFileS','th.','constructo'];a39_0x36cf=function(){return _0x51d81c;};return a39_0x36cf();}
|
package/dist/src/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a40_0x51b20d=a40_0xe5ae;(function(_0x286db6,_0x574647){const _0x364eff=a40_0xe5ae,_0x2c43e2=_0x286db6();while(!![]){try{const _0x4c5e92=-parseInt(_0x364eff(0x122))/0x1+parseInt(_0x364eff(0xfa))/0x2*(parseInt(_0x364eff(0x119))/0x3)+parseInt(_0x364eff(0xf6))/0x4*(-parseInt(_0x364eff(0x11b))/0x5)+parseInt(_0x364eff(0x11d))/0x6+-parseInt(_0x364eff(0xf4))/0x7+-parseInt(_0x364eff(0xf9))/0x8+parseInt(_0x364eff(0xfe))/0x9*(parseInt(_0x364eff(0x125))/0xa);if(_0x4c5e92===_0x574647)break;else _0x2c43e2['push'](_0x2c43e2['shift']());}catch(_0x58665f){_0x2c43e2['push'](_0x2c43e2['shift']());}}}(a40_0x1f9c,0xc2b62));function a40_0xe5ae(_0x167a70,_0x53a241){_0x167a70=_0x167a70-0xf3;const _0x50a8e1=a40_0x1f9c();let _0x4800f0=_0x50a8e1[_0x167a70];return _0x4800f0;}const a40_0x538f29=(function(){let _0x5c735c=!![];return function(_0x349f89,_0x586dc2){const _0x22c7ee=_0x5c735c?function(){if(_0x586dc2){const _0x165ae5=_0x586dc2['apply'](_0x349f89,arguments);return _0x586dc2=null,_0x165ae5;}}:function(){};return _0x5c735c=![],_0x22c7ee;};}()),a40_0x4800f0=a40_0x538f29(this,function(){const _0x8df0f2=a40_0xe5ae;return a40_0x4800f0[_0x8df0f2(0x118)]()[_0x8df0f2(0x103)](_0x8df0f2(0x123)+'+$')[_0x8df0f2(0x118)]()['constructo'+'r'](a40_0x4800f0)[_0x8df0f2(0x103)](_0x8df0f2(0x123)+'+$');});a40_0x4800f0();import a40_0xe29294 from'winston';import a40_0x2df6f7 from'path';import a40_0x194e71 from'fs';import{fileURLToPath}from'url';const loggerModuleDir=a40_0x2df6f7[a40_0x51b20d(0x107)](fileURLToPath(import.meta.url)),projectRootForLogs=a40_0x2df6f7[a40_0x51b20d(0x105)](loggerModuleDir,a40_0x51b20d(0x109)),logsDirAbs=a40_0x2df6f7[a40_0x51b20d(0x105)](projectRootForLogs,'logs');try{if(!a40_0x194e71[a40_0x51b20d(0xfc)](logsDirAbs)){const a40_0x552a3a={};a40_0x552a3a[a40_0x51b20d(0x11c)]=!![],a40_0x194e71[a40_0x51b20d(0x113)](logsDirAbs,a40_0x552a3a);}}catch(a40_0x3ab35c){console[a40_0x51b20d(0xf7)]('Failed\x20to\x20'+a40_0x51b20d(0xfb)+a40_0x51b20d(0x104)+'y:',a40_0x3ab35c);}const isStdioMcpHost=Boolean(process.env.MCP||process.env.MCP_SERVER||process.env.MCP_STDIO||process.env.CURSOR||process.env.CURSOR_MCP),enableConsole=![],a40_0x286367={};a40_0x286367[a40_0x51b20d(0x115)]=!![];const a40_0x505a29={};a40_0x505a29[a40_0x51b20d(0x110)]=a40_0x51b20d(0x10d)+a40_0x51b20d(0x10b)+a40_0x51b20d(0x10f);function a40_0x1f9c(){const _0x25af09=['format','toString','77310JvtKYV','THH:mm:ss.','4025035JubbPJ','recursive','3266970jQSpKu','json','Console','combined.l','SSSZ','312208JkHFMc','(((.+)+)+)','add','1070WcyoQf','join','9003428xYEupc','transports','4IcogwW','error','info','4380232WFbpXA','2RQegdW','create\x20log','existsSync','keys','267327obbseP','length','File','combine','errors','search','s\x20director','resolve','printf','dirname','createLogg','../..','timestamp','-code-gene','colorize','mcp-secure','YYYY-MM-DD','rator','service','stringify','Failed\x20to\x20','mkdirSync','warn','stack','error.log'];a40_0x1f9c=function(){return _0x25af09;};return a40_0x1f9c();}export const logger=a40_0xe29294[a40_0x51b20d(0x108)+'er']({'level':process.env.LOG_LEVEL||a40_0x51b20d(0xf8),'format':a40_0xe29294[a40_0x51b20d(0x117)]['combine'](a40_0xe29294[a40_0x51b20d(0x117)]['timestamp'](),a40_0xe29294[a40_0x51b20d(0x117)][a40_0x51b20d(0x102)](a40_0x286367),a40_0xe29294[a40_0x51b20d(0x117)][a40_0x51b20d(0x11e)]()),'defaultMeta':a40_0x505a29,'transports':[]});try{const a40_0x4ac445={};a40_0x4ac445['format']=a40_0x51b20d(0x10e)+a40_0x51b20d(0x11a)+a40_0x51b20d(0x121);const a40_0x1edd8a={};a40_0x1edd8a[a40_0x51b20d(0x115)]=!![],logger[a40_0x51b20d(0x124)](new a40_0xe29294[(a40_0x51b20d(0xf5))][(a40_0x51b20d(0x100))]({'filename':a40_0x2df6f7[a40_0x51b20d(0xf3)](logsDirAbs,a40_0x51b20d(0x116)),'level':a40_0x51b20d(0xf7),'format':a40_0xe29294['format'][a40_0x51b20d(0x101)](a40_0xe29294[a40_0x51b20d(0x117)][a40_0x51b20d(0x10a)](a40_0x4ac445),a40_0xe29294[a40_0x51b20d(0x117)][a40_0x51b20d(0x102)](a40_0x1edd8a),a40_0xe29294[a40_0x51b20d(0x117)]['json']())}));const a40_0x5d292b={};a40_0x5d292b[a40_0x51b20d(0x117)]='YYYY-MM-DD'+'THH:mm:ss.'+'SSSZ';const a40_0x18a026={};a40_0x18a026[a40_0x51b20d(0x115)]=!![],logger[a40_0x51b20d(0x124)](new a40_0xe29294[(a40_0x51b20d(0xf5))][(a40_0x51b20d(0x100))]({'filename':a40_0x2df6f7[a40_0x51b20d(0xf3)](logsDirAbs,a40_0x51b20d(0x120)+'og'),'format':a40_0xe29294[a40_0x51b20d(0x117)][a40_0x51b20d(0x101)](a40_0xe29294[a40_0x51b20d(0x117)][a40_0x51b20d(0x10a)](a40_0x5d292b),a40_0xe29294[a40_0x51b20d(0x117)][a40_0x51b20d(0x102)](a40_0x18a026),a40_0xe29294[a40_0x51b20d(0x117)]['json']())}));}catch(a40_0x4c15a1){console[a40_0x51b20d(0xf7)](a40_0x51b20d(0x112)+'add\x20file\x20t'+'ransports:',a40_0x4c15a1);}if(enableConsole){const a40_0x5a428f={};a40_0x5a428f[a40_0x51b20d(0x117)]=a40_0x51b20d(0x10e)+a40_0x51b20d(0x11a)+a40_0x51b20d(0x121),logger['add'](new a40_0xe29294[(a40_0x51b20d(0xf5))][(a40_0x51b20d(0x11f))]({'format':a40_0xe29294['format']['combine'](a40_0xe29294[a40_0x51b20d(0x117)][a40_0x51b20d(0x10c)](),a40_0xe29294['format'][a40_0x51b20d(0x10a)](a40_0x5a428f),a40_0xe29294[a40_0x51b20d(0x117)][a40_0x51b20d(0x106)](_0x1b8982=>{const _0x137cf9=a40_0x51b20d,{level:_0x37f0a1,message:_0x3ad1bb,timestamp:_0x50ceb9,..._0x534630}=_0x1b8982,_0x3e7e7f=Object[_0x137cf9(0xfd)](_0x534630)[_0x137cf9(0xff)]?'\x20'+JSON[_0x137cf9(0x111)](_0x534630):'';return'['+_0x50ceb9+']\x20'+_0x37f0a1+':\x20'+_0x3ad1bb+_0x3e7e7f;})),'stderrLevels':[a40_0x51b20d(0xf7),a40_0x51b20d(0x114)]}));}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sparrowai/sparrow-mcp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sparrow-mcp-test": "./bin/sparrow-mcp-test.cjs"
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"dev": "tsx watch src/server.ts",
|
|
16
16
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
17
17
|
"test:coverage": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage",
|
|
18
|
+
"test:mcp": "tsx scripts/test-runner/standalone-test.ts",
|
|
18
19
|
"inspector": "tsx scripts/mcp-inspector.ts",
|
|
19
20
|
"inspector:local": "tsx scripts/mcp-inspector.ts --target local --output all",
|
|
20
21
|
"inspector:npm": "tsx scripts/mcp-inspector.ts --target npm --output all",
|