@sparrowai/sparrow-mcp 1.1.7 → 1.1.8
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.d.ts +8 -4
- package/dist/src/controllers/sast.controller.js +1 -1
- package/dist/src/controllers/sca.controller.d.ts +8 -4
- 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.d.ts +8 -0
- 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.d.ts +20 -23
- 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.d.ts +5 -0
- 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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x3301ed=a0_0x54c2;function a0_0x54c2(_0x1104d8,_0x38b2e0){_0x1104d8=_0x1104d8-0x1da;const _0x52a8e6=a0_0x2fc8();let _0x38aa70=_0x52a8e6[_0x1104d8];return _0x38aa70;}(function(_0x38aca8,_0x48962e){const _0xaf049b=a0_0x54c2,_0x314118=_0x38aca8();while(!![]){try{const _0x402c99=parseInt(_0xaf049b(0x23c))/0x1*(parseInt(_0xaf049b(0x1ee))/0x2)+parseInt(_0xaf049b(0x215))/0x3*(parseInt(_0xaf049b(0x221))/0x4)+parseInt(_0xaf049b(0x238))/0x5+-parseInt(_0xaf049b(0x1db))/0x6*(-parseInt(_0xaf049b(0x243))/0x7)+parseInt(_0xaf049b(0x227))/0x8+parseInt(_0xaf049b(0x233))/0x9+parseInt(_0xaf049b(0x1fc))/0xa*(-parseInt(_0xaf049b(0x20f))/0xb);if(_0x402c99===_0x48962e)break;else _0x314118['push'](_0x314118['shift']());}catch(_0x54a298){_0x314118['push'](_0x314118['shift']());}}}(a0_0x2fc8,0x61c77));function a0_0x2fc8(){const _0x55e792=['pid','BAFrP','t]\x20Startin','win32','constructo','373203IeLIbJ','JSON-RPC\x20E','rsion','t]\x20Initial','MCP_STDIO','678580biBzAT','capabiliti','\x20running','stdin','2239KJHjek','protocolVe','log','stop','entries','stdio','zed','4235YvGtGU','taskkill','\x20error:','mcp-test-c','write','2838DMuBVq','er\x20process','isInitiali','age','t]\x20stdin\x20b','\x20(request)','messageId','sfZhb','stderr','env','delete','tUUPS','notificati','version','error','notify','join','method','1.0.0','512IwSyKb','HYoNq','roots','serverArgs','exitCode','start','owdRG','close','params','uffer\x20full','get','\x20(notify)','set','iled:','4270nvtYlO','onHandlers','/pid','rror:\x20','Server\x20clo','initialize','ization\x20fa','process','request','toString','result','(((.+)+)+)','stringify','trim','and','jsonrpc','handleMess','\x20initializ','2024-11-05','30767ulKMnb','uests','lized','t]\x20Process','Failed\x20to\x20','pipe','40296duKmuf','ized:','search','parse','Server\x20not','NadMt','[Server\x20Lo','t]\x20Sending','name','closed\x20wit','warn','serverComm','112ndSEzn','true','\x20with\x20stdi','pendingReq','2.0','tion','1457552OeCqLn','KBaYh','clear','stdout','[Server\x20Er','[MCP\x20Clien','spawn\x20serv'];a0_0x2fc8=function(){return _0x55e792;};return a0_0x2fc8();}const a0_0x2159fa=(function(){let _0x490eb4=!![];return function(_0x135705,_0x10fb27){const _0x1117cc=_0x490eb4?function(){if(_0x10fb27){const _0x46e8ae=_0x10fb27['apply'](_0x135705,arguments);return _0x10fb27=null,_0x46e8ae;}}:function(){};return _0x490eb4=![],_0x1117cc;};}()),a0_0x38aa70=a0_0x2159fa(this,function(){const _0x5af5df=a0_0x54c2;return a0_0x38aa70[_0x5af5df(0x205)]()[_0x5af5df(0x217)](_0x5af5df(0x207)+'+$')[_0x5af5df(0x205)]()[_0x5af5df(0x232)+'r'](a0_0x38aa70)[_0x5af5df(0x217)](_0x5af5df(0x207)+'+$');});a0_0x38aa70();import{spawn}from'child_process';import{createInterface}from'readline';export class McpClient{[a0_0x3301ed(0x220)+'and'];['serverArgs'];[a0_0x3301ed(0x203)]=null;[a0_0x3301ed(0x1e1)]=0x0;[a0_0x3301ed(0x224)+a0_0x3301ed(0x210)]=new Map();['notificati'+a0_0x3301ed(0x1fd)]=new Map();[a0_0x3301ed(0x1dd)+a0_0x3301ed(0x242)]=![];['rl']=null;constructor(_0x397fc3,_0x248671){const _0xf932ab=a0_0x3301ed;this[_0xf932ab(0x220)+_0xf932ab(0x20a)]=_0x397fc3,this[_0xf932ab(0x1f1)]=_0x248671;}async[a0_0x3301ed(0x1f3)](){const _0x2c102a=a0_0x3301ed,_0x43a744={};_0x43a744[_0x2c102a(0x1e6)]=_0x2c102a(0x21b)+'g]',_0x43a744[_0x2c102a(0x228)]='line',_0x43a744[_0x2c102a(0x21a)]=_0x2c102a(0x1e9),_0x43a744[_0x2c102a(0x1ef)]=function(_0x5b7ffc,_0xb36400){return _0x5b7ffc===_0xb36400;};const _0x42aa02=_0x43a744;console['log']('[MCP\x20Clien'+_0x2c102a(0x230)+'g\x20server:\x20'+this['serverComm'+_0x2c102a(0x20a)]+'\x20'+this[_0x2c102a(0x1f1)][_0x2c102a(0x1eb)]('\x20'));const _0xb953a0={...process.env};_0xb953a0[_0x2c102a(0x237)]=_0x2c102a(0x222);const _0x437022={};_0x437022[_0x2c102a(0x241)]=['pipe',_0x2c102a(0x214),_0x2c102a(0x214)],_0x437022['shell']=!![],_0x437022[_0x2c102a(0x1e4)]=_0xb953a0,this[_0x2c102a(0x203)]=spawn(this[_0x2c102a(0x220)+_0x2c102a(0x20a)],this[_0x2c102a(0x1f1)],_0x437022);if(!this[_0x2c102a(0x203)][_0x2c102a(0x22a)]||!this['process']['stdin']||!this['process'][_0x2c102a(0x1e3)])throw new Error(_0x2c102a(0x213)+_0x2c102a(0x22d)+_0x2c102a(0x1dc)+_0x2c102a(0x223)+'o');this[_0x2c102a(0x203)][_0x2c102a(0x1e3)]['on']('data',_0x22c32e=>{const _0x2988c6=_0x2c102a;console['error'](_0x2988c6(0x22b)+'ror]\x20'+_0x22c32e[_0x2988c6(0x205)]());}),this['rl']=createInterface({'input':this[_0x2c102a(0x203)][_0x2c102a(0x22a)]}),this['rl']['on'](_0x42aa02[_0x2c102a(0x228)],_0x45bb14=>{const _0x32745a=_0x2c102a;if(!_0x45bb14[_0x32745a(0x209)]())return;try{const _0x5df8d6=JSON[_0x32745a(0x218)](_0x45bb14);this[_0x32745a(0x20c)+_0x32745a(0x1de)](_0x5df8d6);}catch(_0x545cf6){console[_0x32745a(0x23e)](_0x42aa02['tUUPS'],_0x45bb14);}}),this[_0x2c102a(0x203)]['on'](_0x42aa02[_0x2c102a(0x21a)],_0x1dc460=>console[_0x2c102a(0x1e9)](_0x2c102a(0x22c)+_0x2c102a(0x212)+_0x2c102a(0x245),_0x1dc460)),this[_0x2c102a(0x203)]['on'](_0x2c102a(0x1f5),_0x2c655b=>{const _0x47e893=_0x2c102a;console[_0x47e893(0x23e)](_0x47e893(0x22c)+'t]\x20Server\x20'+_0x47e893(0x21e)+'h\x20code\x20'+_0x2c655b);if(this['rl'])this['rl'][_0x47e893(0x1f5)]();for(const [_0x5ae8ae,_0x18cc5c]of this[_0x47e893(0x224)+_0x47e893(0x210)][_0x47e893(0x240)]()){_0x18cc5c(null,new Error(_0x47e893(0x200)+'sed\x20connec'+'tion'));}this[_0x47e893(0x224)+_0x47e893(0x210)][_0x47e893(0x229)]();});try{await this[_0x2c102a(0x201)]();}catch(_0xa99983){if(_0x42aa02['HYoNq'](_0x2c102a(0x22f),_0x2c102a(0x1f4)))this[_0x2c102a(0x224)+_0x2c102a(0x210)]['delete'](_0x5231ec['id']),_0x55bbb4[_0x2c102a(0x1e9)]?_0x3ec2de(null,new _0x28625f(_0x2c102a(0x234)+_0x2c102a(0x1ff)+_0x5b9d88['stringify'](_0x43afcf[_0x2c102a(0x1e9)]))):_0x1496a7(_0x8b579f['result'],null);else{console[_0x2c102a(0x1e9)]('[MCP\x20Clien'+_0x2c102a(0x236)+_0x2c102a(0x202)+_0x2c102a(0x1fb),_0xa99983);throw _0xa99983;}}}async[a0_0x3301ed(0x23f)](){const _0x47deb0=a0_0x3301ed;if(this['process']){if(this['rl'])this['rl'][_0x47deb0(0x1f5)]();try{process['platform']===_0x47deb0(0x231)&&this['process'][_0x47deb0(0x22e)]&&spawn(_0x47deb0(0x244),[_0x47deb0(0x1fe),this[_0x47deb0(0x203)][_0x47deb0(0x22e)][_0x47deb0(0x205)](),'/f','/t']),this[_0x47deb0(0x203)]['kill']();}catch(_0x2c6aea){}this['process']=null,console['log'](_0x47deb0(0x22c)+'t]\x20Server\x20'+'stopped');}}async['initialize'](){const _0x5dc69c=a0_0x3301ed;console[_0x5dc69c(0x23e)](_0x5dc69c(0x22c)+_0x5dc69c(0x21c)+_0x5dc69c(0x20d)+'e\x20request.'+'..');const _0x3f5a25={};_0x3f5a25['listChange'+'d']=!![];const _0x56e9ca={};_0x56e9ca[_0x5dc69c(0x1f0)]=_0x3f5a25;const _0x1b721e={};_0x1b721e[_0x5dc69c(0x21d)]=_0x5dc69c(0x246)+'lient',_0x1b721e[_0x5dc69c(0x1e8)]=_0x5dc69c(0x1ed);const _0x3659e6={};_0x3659e6[_0x5dc69c(0x23d)+_0x5dc69c(0x235)]=_0x5dc69c(0x20e),_0x3659e6[_0x5dc69c(0x239)+'es']=_0x56e9ca,_0x3659e6['clientInfo']=_0x1b721e;const _0x993c06=await this[_0x5dc69c(0x204)](_0x5dc69c(0x201),_0x3659e6);console['log'](_0x5dc69c(0x22c)+_0x5dc69c(0x236)+_0x5dc69c(0x216),_0x993c06),await this[_0x5dc69c(0x1ea)](_0x5dc69c(0x1e7)+'ons/initia'+_0x5dc69c(0x211),{}),this['isInitiali'+_0x5dc69c(0x242)]=!![];}async[a0_0x3301ed(0x1ea)](_0x3beb0f,_0x28f298){const _0x8bb4dc=a0_0x3301ed,_0x493e0d={'sfZhb':function(_0x222cdc,_0x2cb174){return _0x222cdc(_0x2cb174);}};if(!this['process']||this['process'][_0x8bb4dc(0x1f2)]!==null)return;const _0x222f47={};_0x222f47['jsonrpc']=_0x8bb4dc(0x225),_0x222f47[_0x8bb4dc(0x1ec)]=_0x3beb0f,_0x222f47[_0x8bb4dc(0x1f6)]=_0x28f298;const _0x2857c1=_0x222f47,_0x533eb5=JSON[_0x8bb4dc(0x208)](_0x2857c1);return new Promise((_0x2ac207,_0x43e610)=>{const _0x19992b=_0x8bb4dc;try{const _0x3ab6cb=this[_0x19992b(0x203)][_0x19992b(0x23b)][_0x19992b(0x1da)](_0x533eb5+'\x0a');if(!_0x3ab6cb)console['warn'](_0x19992b(0x22c)+_0x19992b(0x1df)+_0x19992b(0x1f7)+_0x19992b(0x1f9));_0x2ac207();}catch(_0x5c7160){_0x493e0d[_0x19992b(0x1e2)](_0x43e610,_0x5c7160);}});}async[a0_0x3301ed(0x204)](_0x580c7e,_0x1488aa){const _0x3b6b9d=a0_0x3301ed;if(!this[_0x3b6b9d(0x203)]||this[_0x3b6b9d(0x203)][_0x3b6b9d(0x1f2)]!==null)throw new Error(_0x3b6b9d(0x219)+_0x3b6b9d(0x23a));const _0x4285aa=this['messageId']++,_0x551132={};_0x551132[_0x3b6b9d(0x20b)]=_0x3b6b9d(0x225),_0x551132['id']=_0x4285aa,_0x551132['method']=_0x580c7e,_0x551132[_0x3b6b9d(0x1f6)]=_0x1488aa;const _0x5c31bb=_0x551132;return new Promise((_0x4ae4e1,_0x29cd4f)=>{const _0x431158=_0x3b6b9d;this[_0x431158(0x224)+_0x431158(0x210)][_0x431158(0x1fa)](_0x4285aa,(_0x193a66,_0x4890e6)=>{if(_0x193a66)_0x4ae4e1(_0x193a66);else _0x29cd4f(_0x4890e6);});const _0x231475=JSON['stringify'](_0x5c31bb);try{const _0x283ba4=this[_0x431158(0x203)][_0x431158(0x23b)]['write'](_0x231475+'\x0a');!_0x283ba4&&console[_0x431158(0x21f)](_0x431158(0x22c)+_0x431158(0x1df)+'uffer\x20full'+_0x431158(0x1e0));}catch(_0x3701c7){this[_0x431158(0x224)+'uests'][_0x431158(0x1e5)](_0x4285aa),_0x29cd4f(_0x3701c7);}});}['onNotifica'+a0_0x3301ed(0x226)](_0x118e3f,_0x521754){const _0x1d34f2=a0_0x3301ed;this[_0x1d34f2(0x1e7)+_0x1d34f2(0x1fd)][_0x1d34f2(0x1fa)](_0x118e3f,_0x521754);}['handleMess'+'age'](_0x56eaa7){const _0x3d118d=a0_0x3301ed;if(_0x56eaa7['id']!==undefined&&(_0x56eaa7['result']!==undefined||_0x56eaa7[_0x3d118d(0x1e9)]!==undefined)){const _0x4b53a8=this[_0x3d118d(0x224)+_0x3d118d(0x210)][_0x3d118d(0x1f8)](_0x56eaa7['id']);_0x4b53a8&&(this[_0x3d118d(0x224)+'uests'][_0x3d118d(0x1e5)](_0x56eaa7['id']),_0x56eaa7[_0x3d118d(0x1e9)]?_0x4b53a8(null,new Error(_0x3d118d(0x234)+_0x3d118d(0x1ff)+JSON[_0x3d118d(0x208)](_0x56eaa7[_0x3d118d(0x1e9)]))):_0x4b53a8(_0x56eaa7[_0x3d118d(0x206)],null));}else{if(_0x56eaa7['method']&&!_0x56eaa7['id']){const _0x5ed861=this[_0x3d118d(0x1e7)+'onHandlers'][_0x3d118d(0x1f8)](_0x56eaa7['method']);_0x5ed861&&_0x5ed861(_0x56eaa7[_0x3d118d(0x1f6)]);}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x160210,_0x14b258){const _0x6f150b=a1_0x743b,_0x355b6f=_0x160210();while(!![]){try{const _0x431c11=parseInt(_0x6f150b(0xbe))/0x1*(parseInt(_0x6f150b(0xc3))/0x2)+-parseInt(_0x6f150b(0xba))/0x3+parseInt(_0x6f150b(0xf6))/0x4*(-parseInt(_0x6f150b(0xa3))/0x5)+parseInt(_0x6f150b(0xcf))/0x6*(parseInt(_0x6f150b(0xd0))/0x7)+-parseInt(_0x6f150b(0xeb))/0x8*(parseInt(_0x6f150b(0xc1))/0x9)+parseInt(_0x6f150b(0xf5))/0xa*(parseInt(_0x6f150b(0xc7))/0xb)+parseInt(_0x6f150b(0xf7))/0xc;if(_0x431c11===_0x14b258)break;else _0x355b6f['push'](_0x355b6f['shift']());}catch(_0x5c9caa){_0x355b6f['push'](_0x355b6f['shift']());}}}(a1_0x5d5f,0xd5ecd));function a1_0x5d5f(){const _0x39881e=['entries','lder_sast','5jWkoCx','✅\x20MCP\x20서버\x20연','ysis_progr','folderPath','toString','includes','arguments','esponse=','결\x20성공\x0a',':\x20isError=','turedConte','toLowerCas','TC033','filePaths','track_anal','ponseCheck','analyze_zi','isErrorRes','es.json','analysisId','hasStructu','ync','request','2980842cIZClA','is_status','lder_sca','error','1tWsiAc','HxOhP','TC032','93987bpjglF','args','2703958Utlvam','node','999999999','/nonexiste','11eMBtTl','isError','content','log','ess','analyze_fi','les_sast','TC029','198iqvJJg','98966uapJnk','start','constructo','validation','\x0a===\x20분석\x20결과','nt/file.ja','TC039','stop','p_sca','analyze_fo','UOpyq','(((.+)+)+)','ECVyh','name','message','...','Testing\x20','les_sca','TC042','erver.js','TC045','Content','structured',',\x20isErrorR','dist/src/s','nt/folder','failed-tes','984IHnlHY','TC007','TC014','p_sast','hasIsError','tools/call','zipFilePat','nt.zip','\x0a✅\x20결과\x20저장:\x20','text','8797180RVHtIl','825672sWxSJo','7950084NCUGCf'];a1_0x5d5f=function(){return _0x39881e;};return a1_0x5d5f();}import{McpClient}from'../mcp-test/mcp-client.js';import a1_0x2b54f1 from'fs';async function main(){const _0xb27e81=a1_0x743b,_0x4b5cb1={};_0x4b5cb1[_0xb27e81(0xda)]=_0xb27e81(0xec),_0x4b5cb1[_0xb27e81(0xbf)]=_0xb27e81(0xce),_0x4b5cb1['ECVyh']=_0xb27e81(0xd3);const _0x58d653=_0x4b5cb1,_0x3f9ef1=(function(){let _0x2f19ba=!![];return function(_0x20e326,_0x2a19f5){const _0x1b63f0=_0x2f19ba?function(){if(_0x2a19f5){const _0x4e33cf=_0x2a19f5['apply'](_0x20e326,arguments);return _0x2a19f5=null,_0x4e33cf;}}:function(){};return _0x2f19ba=![],_0x1b63f0;};}()),_0x1638e3=_0x3f9ef1(this,function(){const _0x262fd7=_0xb27e81;return _0x1638e3[_0x262fd7(0xa7)]()['search'](_0x262fd7(0xdb)+'+$')[_0x262fd7(0xa7)]()[_0x262fd7(0xd2)+'r'](_0x1638e3)['search'](_0x262fd7(0xdb)+'+$');});_0x1638e3();const _0x17c100=new McpClient(_0xb27e81(0xc4),[_0xb27e81(0xe8)+_0xb27e81(0xe3)]);try{await _0x17c100[_0xb27e81(0xd1)](),console[_0xb27e81(0xca)](_0xb27e81(0xa4)+_0xb27e81(0xab));const _0x327ec9={};_0x327ec9[_0xb27e81(0xb0)]=[];const _0x5c9639={};_0x5c9639['id']=_0x58d653[_0xb27e81(0xda)],_0x5c9639[_0xb27e81(0xdd)]=_0xb27e81(0xcc)+_0xb27e81(0xcd),_0x5c9639[_0xb27e81(0xc2)]=_0x327ec9;const _0x2b0cf2={};_0x2b0cf2[_0xb27e81(0xb0)]=[_0xb27e81(0xc6)+_0xb27e81(0xd5)+'va'];const _0x4cdc41={};_0x4cdc41['id']='TC008',_0x4cdc41[_0xb27e81(0xdd)]=_0xb27e81(0xcc)+_0xb27e81(0xcd),_0x4cdc41['args']=_0x2b0cf2;const _0x321527={};_0x321527[_0xb27e81(0xb6)]=_0xb27e81(0xc5);const _0xfd7004={};_0xfd7004['id']=_0xb27e81(0xed),_0xfd7004[_0xb27e81(0xdd)]='get_analys'+_0xb27e81(0xbb),_0xfd7004['args']=_0x321527;const _0x14ade4={};_0x14ade4[_0xb27e81(0xb6)]=_0xb27e81(0xc5);const _0x4014d3={};_0x4014d3['id']=_0x58d653[_0xb27e81(0xbf)],_0x4014d3[_0xb27e81(0xdd)]=_0xb27e81(0xb1)+_0xb27e81(0xa5)+_0xb27e81(0xcb),_0x4014d3[_0xb27e81(0xc2)]=_0x14ade4;const _0xeac8d9={};_0xeac8d9[_0xb27e81(0xa6)]='';const _0x243458={};_0x243458['id']=_0xb27e81(0xc0),_0x243458[_0xb27e81(0xdd)]='analyze_fo'+_0xb27e81(0xa2),_0x243458[_0xb27e81(0xc2)]=_0xeac8d9;const _0x4f320f={};_0x4f320f[_0xb27e81(0xa6)]=_0xb27e81(0xc6)+_0xb27e81(0xe9);const _0x26fecd={};_0x26fecd['id']=_0xb27e81(0xaf),_0x26fecd['name']=_0xb27e81(0xd9)+_0xb27e81(0xa2),_0x26fecd[_0xb27e81(0xc2)]=_0x4f320f;const _0x42fcc8={};_0x42fcc8[_0xb27e81(0xf1)+'h']='/nonexiste'+_0xb27e81(0xf2);const _0x38fbea={};_0x38fbea['id']='TC036',_0x38fbea[_0xb27e81(0xdd)]=_0xb27e81(0xb3)+_0xb27e81(0xee),_0x38fbea[_0xb27e81(0xc2)]=_0x42fcc8;const _0x463fe5={};_0x463fe5[_0xb27e81(0xb0)]=[];const _0x553591={};_0x553591['id']=_0xb27e81(0xd6),_0x553591[_0xb27e81(0xdd)]='analyze_fi'+_0xb27e81(0xe1),_0x553591['args']=_0x463fe5;const _0x4ab5af={};_0x4ab5af['folderPath']='';const _0xeaaa05={};_0xeaaa05['id']=_0xb27e81(0xe2),_0xeaaa05['name']=_0xb27e81(0xd9)+_0xb27e81(0xbc),_0xeaaa05['args']=_0x4ab5af;const _0x5369f6={};_0x5369f6['zipFilePat'+'h']='/nonexiste'+'nt.zip';const _0xb9cf82={};_0xb9cf82['id']=_0xb27e81(0xe4),_0xb9cf82[_0xb27e81(0xdd)]=_0xb27e81(0xb3)+_0xb27e81(0xd8),_0xb9cf82[_0xb27e81(0xc2)]=_0x5369f6;const _0x3a0d29=[_0x5c9639,_0x4cdc41,_0xfd7004,_0x4014d3,_0x243458,_0x26fecd,_0x38fbea,_0x553591,_0xeaaa05,_0xb9cf82],_0x25256d={};for(const _0x3db42b of _0x3a0d29){console['log'](_0xb27e81(0xe0)+_0x3db42b['id']+':\x20'+_0x3db42b[_0xb27e81(0xdd)]+_0xb27e81(0xdf));try{const _0x49f515={};_0x49f515['name']=_0x3db42b[_0xb27e81(0xdd)],_0x49f515[_0xb27e81(0xa9)]=_0x3db42b[_0xb27e81(0xc2)];const _0x245687=await _0x17c100[_0xb27e81(0xb9)](_0xb27e81(0xf0),_0x49f515);_0x25256d[_0x3db42b['id']]={'test':_0x3db42b[_0xb27e81(0xdd)],'args':_0x3db42b[_0xb27e81(0xc2)],'response':_0x245687,'hasIsError':!!_0x245687[_0xb27e81(0xc8)],'hasStructuredContent':!!_0x245687[_0xb27e81(0xe6)+_0xb27e81(0xe5)],'contentText':_0x245687['content']?.[0x0]?.[_0xb27e81(0xf4)],'isErrorResponseCheck':_0x245687['isError']===!![]||_0x245687[_0xb27e81(0xc9)]?.[0x0]?.['text']?.['toLowerCas'+'e']()['includes']('error')||_0x245687[_0xb27e81(0xc9)]?.[0x0]?.[_0xb27e81(0xf4)]?.[_0xb27e81(0xae)+'e']()[_0xb27e81(0xa8)](_0x58d653[_0xb27e81(0xdc)])};}catch(_0x20fc34){_0x25256d[_0x3db42b['id']]={'test':_0x3db42b['name'],'args':_0x3db42b[_0xb27e81(0xc2)],'error':_0x20fc34[_0xb27e81(0xde)]};}}a1_0x2b54f1['writeFileS'+_0xb27e81(0xb8)]('failed-tes'+'ts-respons'+_0xb27e81(0xb5),JSON['stringify'](_0x25256d,null,0x2)),console['log'](_0xb27e81(0xf3)+_0xb27e81(0xea)+'ts-respons'+_0xb27e81(0xb5)),console[_0xb27e81(0xca)](_0xb27e81(0xd4)+'\x20===');for(const [_0xa7ba93,_0x5e6a67]of Object[_0xb27e81(0xf8)](_0x25256d)){const _0x5d0d42=_0x5e6a67;console['log'](_0xa7ba93+_0xb27e81(0xac)+_0x5d0d42[_0xb27e81(0xef)]+(',\x20hasStruc'+_0xb27e81(0xad)+'nt=')+_0x5d0d42[_0xb27e81(0xb7)+'redContent']+(_0xb27e81(0xe7)+_0xb27e81(0xaa))+_0x5d0d42[_0xb27e81(0xb4)+_0xb27e81(0xb2)]);}await _0x17c100[_0xb27e81(0xd7)]();}catch(_0x3b8c18){console[_0xb27e81(0xbd)]('Error:',_0x3b8c18),await _0x17c100[_0xb27e81(0xd7)](),process['exit'](0x1);}}function a1_0x743b(_0x10272a,_0x5e733e){_0x10272a=_0x10272a-0xa2;const _0x32d6ff=a1_0x5d5f();let _0x5a2a02=_0x32d6ff[_0x10272a];return _0x5a2a02;}main();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x2060f6=a2_0xc875;function a2_0xc875(_0x16aee9,_0x34b17f){_0x16aee9=_0x16aee9-0x1a0;const _0x7fb5ea=a2_0x3264();let _0x3541a8=_0x7fb5ea[_0x16aee9];return _0x3541a8;}(function(_0x323fb1,_0x9dc7a2){const _0x25cc21=a2_0xc875,_0x13fef0=_0x323fb1();while(!![]){try{const _0x33e51a=parseInt(_0x25cc21(0x1db))/0x1*(parseInt(_0x25cc21(0x1b3))/0x2)+parseInt(_0x25cc21(0x1a1))/0x3+-parseInt(_0x25cc21(0x1c5))/0x4+parseInt(_0x25cc21(0x1a0))/0x5+parseInt(_0x25cc21(0x1c4))/0x6+parseInt(_0x25cc21(0x1c9))/0x7+-parseInt(_0x25cc21(0x1d6))/0x8;if(_0x33e51a===_0x9dc7a2)break;else _0x13fef0['push'](_0x13fef0['shift']());}catch(_0x2d44e3){_0x13fef0['push'](_0x13fef0['shift']());}}}(a2_0x3264,0x76e9d));import{McpClient}from'../mcp-test/mcp-client.js';import a2_0x3246b3 from'fs';const BUILTIN_JAVA_CODE=a2_0x2060f6(0x1b4)+a2_0x2060f6(0x1b1)+'ntroller\x20{'+a2_0x2060f6(0x1be)+a2_0x2060f6(0x1a7)+'User(Strin'+a2_0x2060f6(0x1d3)+a2_0x2060f6(0x1ca)+a2_0x2060f6(0x1b0)+a2_0x2060f6(0x1ba)+'\x20FROM\x20user'+a2_0x2060f6(0x1a6)+'\x20=\x20\x27\x22\x20+\x20id'+'\x20+\x20\x22\x27\x22;\x0a\x20\x20'+a2_0x2060f6(0x1e5);async function main(){const _0x3af9ce=a2_0x2060f6,_0xe12850=(function(){let _0x11f045=!![];return function(_0x2eaf59,_0x32db69){const _0x2b8688=_0x11f045?function(){if(_0x32db69){const _0x1b7d4c=_0x32db69['apply'](_0x2eaf59,arguments);return _0x32db69=null,_0x1b7d4c;}}:function(){};return _0x11f045=![],_0x2b8688;};}()),_0x327c3d=_0xe12850(this,function(){const _0x49b63f=a2_0xc875;return _0x327c3d['toString']()[_0x49b63f(0x1e0)]('(((.+)+)+)'+'+$')[_0x49b63f(0x1d0)]()[_0x49b63f(0x1c3)+'r'](_0x327c3d)['search']('(((.+)+)+)'+'+$');});_0x327c3d();const _0x198bc4=new McpClient(_0x3af9ce(0x1d7),[_0x3af9ce(0x1b7)+_0x3af9ce(0x1cc)]);try{await _0x198bc4[_0x3af9ce(0x1bb)](),console[_0x3af9ce(0x1c0)](_0x3af9ce(0x1d4)+_0x3af9ce(0x1bc)),console[_0x3af9ce(0x1c0)](_0x3af9ce(0x1aa)+_0x3af9ce(0x1c7)+_0x3af9ce(0x1c6)+_0x3af9ce(0x1a5)+_0x3af9ce(0x1d8));const _0x590741={};_0x590741[_0x3af9ce(0x1b5)+'t']=BUILTIN_JAVA_CODE,_0x590741[_0x3af9ce(0x1a8)]=_0x3af9ce(0x1d9)+_0x3af9ce(0x1e6);const _0x1959c3={};_0x1959c3[_0x3af9ce(0x1bd)]=_0x3af9ce(0x1e4)+_0x3af9ce(0x1c2),_0x1959c3[_0x3af9ce(0x1a2)]=_0x590741;const _0x503bf3=await _0x198bc4[_0x3af9ce(0x1b2)]('tools/call',_0x1959c3);console[_0x3af9ce(0x1c0)](_0x3af9ce(0x1b9)+_0x3af9ce(0x1c7)+_0x3af9ce(0x1dd)+'UT\x20extensi'+'on');const _0x2153bd={};_0x2153bd[_0x3af9ce(0x1b5)+'t']=BUILTIN_JAVA_CODE,_0x2153bd[_0x3af9ce(0x1a8)]=_0x3af9ce(0x1d9)+'ller';const _0x55f034={};_0x55f034[_0x3af9ce(0x1bd)]='analyze_fi'+_0x3af9ce(0x1c2),_0x55f034[_0x3af9ce(0x1a2)]=_0x2153bd;const _0x1500ca=await _0x198bc4['request'](_0x3af9ce(0x1a9),_0x55f034),_0x1f217e={};_0x1f217e[_0x3af9ce(0x1e3)]=_0x503bf3,_0x1f217e[_0x3af9ce(0x1cd)]=_0x1500ca,_0x1f217e[_0x3af9ce(0x1ae)]={},_0x1f217e[_0x3af9ce(0x1ae)]['tc001_has_'+'structured'+_0x3af9ce(0x1cf)]=!!_0x503bf3[_0x3af9ce(0x1d1)+_0x3af9ce(0x1cf)],_0x1f217e[_0x3af9ce(0x1ae)][_0x3af9ce(0x1ac)+_0x3af9ce(0x1d1)+'Content']=!!_0x1500ca['structured'+_0x3af9ce(0x1cf)],_0x1f217e[_0x3af9ce(0x1ae)][_0x3af9ce(0x1b6)+'r']=_0x503bf3[_0x3af9ce(0x1d1)+_0x3af9ce(0x1cf)]?.['error'],_0x1f217e[_0x3af9ce(0x1ae)][_0x3af9ce(0x1ab)+'r']=_0x1500ca['structured'+_0x3af9ce(0x1cf)]?.[_0x3af9ce(0x1af)],_0x1f217e[_0x3af9ce(0x1ae)][_0x3af9ce(0x1de)+_0x3af9ce(0x1bf)]=_0x503bf3[_0x3af9ce(0x1d1)+'Content']?.[_0x3af9ce(0x1e2)],_0x1f217e[_0x3af9ce(0x1ae)][_0x3af9ce(0x1ce)+_0x3af9ce(0x1bf)]=_0x1500ca['structured'+_0x3af9ce(0x1cf)]?.[_0x3af9ce(0x1e2)];const _0x110233=_0x1f217e;a2_0x3246b3[_0x3af9ce(0x1ad)+_0x3af9ce(0x1c1)](_0x3af9ce(0x1a4)+_0x3af9ce(0x1b8)+_0x3af9ce(0x1cb),JSON[_0x3af9ce(0x1c8)](_0x110233,null,0x2)),console[_0x3af9ce(0x1c0)](_0x3af9ce(0x1d5)+_0x3af9ce(0x1a4)+_0x3af9ce(0x1b8)+'nse.json'),console[_0x3af9ce(0x1c0)]('\x0a===\x20핵심\x20발견'+_0x3af9ce(0x1df)),console[_0x3af9ce(0x1c0)](_0x3af9ce(0x1da)+'structured'+_0x3af9ce(0x1a3),!!_0x503bf3[_0x3af9ce(0x1d1)+'Content']),console['log'](_0x3af9ce(0x1dc)+_0x3af9ce(0x1d1)+'Content:',!!_0x1500ca[_0x3af9ce(0x1d1)+_0x3af9ce(0x1cf)]),await _0x198bc4[_0x3af9ce(0x1e1)]();}catch(_0x509f66){console[_0x3af9ce(0x1af)]('Error:',_0x509f66),await _0x198bc4[_0x3af9ce(0x1e1)](),process[_0x3af9ce(0x1d2)](0x1);}}function a2_0x3264(){const _0x2a015d=['TC005\x20has\x20','sast\x20WITHO','tc001_anal','\x20===','search','stop','analysisId','TC001','analyze_fi','\x20\x20}\x0a}','ller.java','976490lKLfKI','1541607LRHucU','arguments','Content:','tc001-vs-t','EXTENSION\x20','s\x20WHERE\x20id','c\x20void\x20get','fileName','tools/call','TC001:\x20ana','tc005_erro','tc005_has_','writeFileS','comparison','error','ng\x20query\x20=','ass\x20UserCo','request','600542gvqsNE','\x0apublic\x20cl','fileConten','tc001_erro','dist/src/s','c005-respo','TC005:\x20ana','\x20\x22SELECT\x20*','start','결\x20성공\x0a','name','\x0a\x20\x20\x20\x20publi','ysisId','log','ync','le_sast','constructo','3643680DWrRsu','1137176arXJoZ','sast\x20with\x20','lyze_file_','stringify','42231TmOaFK','\x20\x20\x20\x20\x20\x20Stri','nse.json','erver.js','TC005','tc005_anal','Content','toString','structured','exit','g\x20id)\x20{\x0a\x20\x20','✅\x20MCP\x20서버\x20연','\x0a✅\x20결과\x20저장:\x20','6811104tUqulD','node','(.java)','UserContro','TC001\x20has\x20','1abDrwT'];a2_0x3264=function(){return _0x2a015d;};return a2_0x3264();}main();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x5efa93=a3_0x2820;(function(_0x52c104,_0x2f5baa){const _0xfe9bbe=a3_0x2820,_0x25de2d=_0x52c104();while(!![]){try{const _0x5cad69=parseInt(_0xfe9bbe(0x152))/0x1+-parseInt(_0xfe9bbe(0x150))/0x2*(-parseInt(_0xfe9bbe(0x15a))/0x3)+parseInt(_0xfe9bbe(0x133))/0x4*(parseInt(_0xfe9bbe(0x154))/0x5)+parseInt(_0xfe9bbe(0x151))/0x6*(parseInt(_0xfe9bbe(0x13b))/0x7)+-parseInt(_0xfe9bbe(0x144))/0x8+-parseInt(_0xfe9bbe(0x14b))/0x9*(parseInt(_0xfe9bbe(0x157))/0xa)+-parseInt(_0xfe9bbe(0x14d))/0xb*(parseInt(_0xfe9bbe(0x145))/0xc);if(_0x5cad69===_0x2f5baa)break;else _0x25de2d['push'](_0x25de2d['shift']());}catch(_0xa32927){_0x25de2d['push'](_0x25de2d['shift']());}}}(a3_0xc3bf,0x306ae));const a3_0x153dc0=(function(){let _0x48e4ee=!![];return function(_0xd7ab41,_0x59df04){const _0x54f818=_0x48e4ee?function(){const _0x7c786b=a3_0x2820;if(_0x59df04){const _0x3576ff=_0x59df04[_0x7c786b(0x143)](_0xd7ab41,arguments);return _0x59df04=null,_0x3576ff;}}:function(){};return _0x48e4ee=![],_0x54f818;};}()),a3_0xeaf557=a3_0x153dc0(this,function(){const _0x47ec4d=a3_0x2820;return a3_0xeaf557['toString']()[_0x47ec4d(0x158)]('(((.+)+)+)'+'+$')[_0x47ec4d(0x134)]()['constructo'+'r'](a3_0xeaf557)[_0x47ec4d(0x158)](_0x47ec4d(0x148)+'+$');});function a3_0x2820(_0x4b49f8,_0x221a8d){_0x4b49f8=_0x4b49f8-0x132;const _0x5f4d50=a3_0xc3bf();let _0xeaf557=_0x5f4d50[_0x4b49f8];return _0xeaf557;}a3_0xeaf557();import a3_0x3204ea from'path';function a3_0xc3bf(){const _0x2d39a7=['8961ZwoUtV','analysisId','109724mEXvaV','toString','\x20attempts','content','tools/call','STOP','arguments','dirname','945YlrxGR','rrowcloud.','includes','Polling\x20ti','ysis/','request','text','name','apply','1961640OgSOCW','492FmcQld','result','error','(((.+)+)+)','SUCCESS','status','18nFXgrK','tList/anal','119801KPABBI','/ko/reques','toLowerCas','198XiGUki','402fEQXQq','323121KmIzxB','meout\x20afte','55YkJvZz','COMPLETE','https://on','197830rfIzrR','search','isError'];a3_0xc3bf=function(){return _0x2d39a7;};return a3_0xc3bf();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=a3_0x3204ea[a3_0x5efa93(0x13a)](__filename),SPARROW_BASE_URL=process.env.SPARROW_API_URL||a3_0x5efa93(0x156)+'demand.spa'+a3_0x5efa93(0x13c)+'ai',MAX_POLL_ATTEMPTS=0x12c,POLL_INTERVAL_MS=0xbb8;function getAnalysisLink(_0x20e809){const _0x552f9e=a3_0x5efa93;return SPARROW_BASE_URL+(_0x552f9e(0x14e)+_0x552f9e(0x14c)+_0x552f9e(0x13f))+_0x20e809;}async function pollUntilComplete(_0x3a7f7b,_0x16a802){const _0x5833c0=a3_0x5efa93;let _0x392f9a=0x0;while(_0x392f9a<MAX_POLL_ATTEMPTS){const _0x58c879={};_0x58c879[_0x5833c0(0x132)]=_0x16a802;const _0x4fe0c8={};_0x4fe0c8[_0x5833c0(0x142)]='get_analys'+'is_status',_0x4fe0c8[_0x5833c0(0x139)]=_0x58c879;const _0xb600cb=await _0x3a7f7b[_0x5833c0(0x140)](_0x5833c0(0x137),_0x4fe0c8),_0x190bfe=String(_0xb600cb[_0x5833c0(0x136)][0x0][_0x5833c0(0x141)])['toUpperCas'+'e']();if(_0x190bfe[_0x5833c0(0x13d)](_0x5833c0(0x155))||_0x190bfe[_0x5833c0(0x13d)](_0x5833c0(0x149))||_0x190bfe[_0x5833c0(0x13d)]('FAIL')||_0x190bfe[_0x5833c0(0x13d)](_0x5833c0(0x138))){const _0x29c99d={};return _0x29c99d[_0x5833c0(0x14a)]=_0x5833c0(0x155),_0x29c99d[_0x5833c0(0x146)]=_0xb600cb[_0x5833c0(0x136)][0x0]['text'],_0x29c99d;}await new Promise(_0x200396=>setTimeout(_0x200396,POLL_INTERVAL_MS)),_0x392f9a++;}throw new Error(_0x5833c0(0x13e)+_0x5833c0(0x153)+'r\x20'+_0x392f9a+_0x5833c0(0x135));}function isErrorResponse(_0xe72313){const _0x300765=a3_0x5efa93;return _0xe72313[_0x300765(0x159)]===!![]||_0xe72313['content']?.[0x0]?.[_0x300765(0x141)]?.[_0x300765(0x14f)+'e']()[_0x300765(0x13d)](_0x300765(0x147))||_0xe72313[_0x300765(0x136)]?.[0x0]?.[_0x300765(0x141)]?.[_0x300765(0x14f)+'e']()[_0x300765(0x13d)]('validation');}
|