@sparrowai/sparrow-mcp 1.1.7 → 1.1.9
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.d.ts +1 -7
- 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 +11 -2
- 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
|
-
|
|
1
|
+
const a0_0x376e24=a0_0xd10f;(function(_0x2a848e,_0x460b31){const _0x1b4d4f=a0_0xd10f,_0x541b27=_0x2a848e();while(!![]){try{const _0x232c96=parseInt(_0x1b4d4f(0x1c3))/0x1+parseInt(_0x1b4d4f(0x1bc))/0x2*(-parseInt(_0x1b4d4f(0x1c9))/0x3)+-parseInt(_0x1b4d4f(0x1d0))/0x4+parseInt(_0x1b4d4f(0x1f3))/0x5*(-parseInt(_0x1b4d4f(0x21f))/0x6)+parseInt(_0x1b4d4f(0x1e1))/0x7*(-parseInt(_0x1b4d4f(0x1fc))/0x8)+parseInt(_0x1b4d4f(0x1be))/0x9*(-parseInt(_0x1b4d4f(0x221))/0xa)+parseInt(_0x1b4d4f(0x1cf))/0xb;if(_0x232c96===_0x460b31)break;else _0x541b27['push'](_0x541b27['shift']());}catch(_0x242b19){_0x541b27['push'](_0x541b27['shift']());}}}(a0_0x163a,0x2e710));function a0_0x163a(){const _0x1c60e6=['rror:\x20','parse','jsonrpc','2.0','wegsA','listChange','tion','and','h\x20code\x20','t]\x20Startin','request','messageId','notificati','version','GtkTE','serverComm','Failed\x20to\x20','Server\x20clo','method','lient','spQLE','[MCP\x20Clien','line','true','stdio','capabiliti','1.0.0','6LeYXBW','iled:','393010yCWmps','isInitiali','serverArgs','ization\x20fa','rsion','taskkill','shell','\x20running','closed\x20wit','pendingReq','constructo','stderr','159146TVouIt','close','54mfvMnR','set','t]\x20stdin\x20b','join','apply','334325Eoryds','pid','write','trim','MCP_STDIO','error','9Nafomj','e\x20request.','vXcgT','\x20(notify)','exitCode','t]\x20Initial','10904652cpRbYJ','624788hsYrNf','er\x20process','clientInfo','stop','(((.+)+)+)','get','delete','onNotifica','xmVOH','stopped','stringify','entries','kill','sed\x20connec','warn','clear','uffer\x20full','14zzaZox','t]\x20Process','Server\x20not','t]\x20Server\x20','t]\x20Sending','pipe','toString','log','[Server\x20Lo','lized','ror]\x20','zed','spawn\x20serv','g\x20server:\x20','roots','stdout','notify','search','1884545EeLClu','params','data','age','zOLHB','handleMess','ized:','win32','uests','511208palNcO','initialize','onHandlers','process','result','zwzUG','protocolVe','stdin'];a0_0x163a=function(){return _0x1c60e6;};return a0_0x163a();}const a0_0x5664e6=(function(){let _0x2fe2e7=!![];return function(_0x3735c8,_0x1aec9c){const _0x245988=_0x2fe2e7?function(){const _0x572270=a0_0xd10f;if(_0x1aec9c){const _0x3c1457=_0x1aec9c[_0x572270(0x1c2)](_0x3735c8,arguments);return _0x1aec9c=null,_0x3c1457;}}:function(){};return _0x2fe2e7=![],_0x245988;};}()),a0_0x1ea471=a0_0x5664e6(this,function(){const _0x2311fb=a0_0xd10f;return a0_0x1ea471[_0x2311fb(0x1e7)]()[_0x2311fb(0x1f2)](_0x2311fb(0x1d4)+'+$')[_0x2311fb(0x1e7)]()[_0x2311fb(0x1ba)+'r'](a0_0x1ea471)[_0x2311fb(0x1f2)](_0x2311fb(0x1d4)+'+$');});a0_0x1ea471();import{spawn}from'child_process';import{createInterface}from'readline';function a0_0xd10f(_0x387133,_0xd90575){_0x387133=_0x387133-0x1b5;const _0x242ee0=a0_0x163a();let _0x1ea471=_0x242ee0[_0x387133];return _0x1ea471;}export class McpClient{['serverComm'+a0_0x376e24(0x20b)];['serverArgs'];[a0_0x376e24(0x1ff)]=null;[a0_0x376e24(0x20f)]=0x0;['pendingReq'+a0_0x376e24(0x1fb)]=new Map();[a0_0x376e24(0x210)+a0_0x376e24(0x1fe)]=new Map();[a0_0x376e24(0x222)+'zed']=![];['rl']=null;constructor(_0xaf63e0,_0x6c3859){const _0x5d2e8e=a0_0x376e24;this[_0x5d2e8e(0x213)+'and']=_0xaf63e0,this[_0x5d2e8e(0x223)]=_0x6c3859;}async['start'](){const _0x3bdc82=a0_0x376e24,_0x155054={'xmVOH':function(_0x3d63f4,_0x2fb560,_0xd20847,_0x4b76e1){return _0x3d63f4(_0x2fb560,_0xd20847,_0x4b76e1);}};console[_0x3bdc82(0x1e8)](_0x3bdc82(0x219)+_0x3bdc82(0x20d)+_0x3bdc82(0x1ee)+this[_0x3bdc82(0x213)+_0x3bdc82(0x20b)]+'\x20'+this[_0x3bdc82(0x223)][_0x3bdc82(0x1c1)]('\x20'));const _0x2d8c57={...process.env};_0x2d8c57[_0x3bdc82(0x1c7)]=_0x3bdc82(0x21b);const _0x52da1b={};_0x52da1b[_0x3bdc82(0x21c)]=[_0x3bdc82(0x1e6),_0x3bdc82(0x1e6),_0x3bdc82(0x1e6)],_0x52da1b[_0x3bdc82(0x1b6)]=!![],_0x52da1b['env']=_0x2d8c57,this[_0x3bdc82(0x1ff)]=_0x155054[_0x3bdc82(0x1d8)](spawn,this[_0x3bdc82(0x213)+_0x3bdc82(0x20b)],this[_0x3bdc82(0x223)],_0x52da1b);if(!this[_0x3bdc82(0x1ff)][_0x3bdc82(0x1f0)]||!this[_0x3bdc82(0x1ff)]['stdin']||!this[_0x3bdc82(0x1ff)][_0x3bdc82(0x1bb)])throw new Error(_0x3bdc82(0x214)+_0x3bdc82(0x1ed)+_0x3bdc82(0x1d1)+'\x20with\x20stdi'+'o');this[_0x3bdc82(0x1ff)][_0x3bdc82(0x1bb)]['on'](_0x3bdc82(0x1f5),_0x30135d=>{const _0x5192cf=_0x3bdc82;console[_0x5192cf(0x1c8)]('[Server\x20Er'+_0x5192cf(0x1eb)+_0x30135d[_0x5192cf(0x1e7)]());}),this['rl']=createInterface({'input':this[_0x3bdc82(0x1ff)][_0x3bdc82(0x1f0)]}),this['rl']['on'](_0x3bdc82(0x21a),_0x3d5a9e=>{const _0x2ecfad=_0x3bdc82;if(!_0x3d5a9e[_0x2ecfad(0x1c6)]())return;try{const _0x1b21e2=JSON[_0x2ecfad(0x205)](_0x3d5a9e);this[_0x2ecfad(0x1f8)+'age'](_0x1b21e2);}catch(_0x357d0e){console['log'](_0x2ecfad(0x1e9)+'g]',_0x3d5a9e);}}),this[_0x3bdc82(0x1ff)]['on'](_0x3bdc82(0x1c8),_0x2188fe=>console[_0x3bdc82(0x1c8)]('[MCP\x20Clien'+_0x3bdc82(0x1e2)+'\x20error:',_0x2188fe)),this[_0x3bdc82(0x1ff)]['on'](_0x3bdc82(0x1bd),_0x313c40=>{const _0x262967=_0x3bdc82;console[_0x262967(0x1e8)](_0x262967(0x219)+'t]\x20Server\x20'+_0x262967(0x1b8)+_0x262967(0x20c)+_0x313c40);if(this['rl'])this['rl'][_0x262967(0x1bd)]();for(const [_0x2d3fe8,_0x20b292]of this[_0x262967(0x1b9)+_0x262967(0x1fb)][_0x262967(0x1db)]()){_0x20b292(null,new Error(_0x262967(0x215)+_0x262967(0x1dd)+_0x262967(0x20a)));}this[_0x262967(0x1b9)+_0x262967(0x1fb)][_0x262967(0x1df)]();});try{await this[_0x3bdc82(0x1fd)]();}catch(_0x548f3c){console[_0x3bdc82(0x1c8)](_0x3bdc82(0x219)+_0x3bdc82(0x1ce)+_0x3bdc82(0x224)+_0x3bdc82(0x220),_0x548f3c);throw _0x548f3c;}}async[a0_0x376e24(0x1d3)](){const _0x22bfdd=a0_0x376e24,_0x3c6995={};_0x3c6995[_0x22bfdd(0x208)]=_0x22bfdd(0x1fa);const _0x1e90f8=_0x3c6995;if(this[_0x22bfdd(0x1ff)]){if(this['rl'])this['rl'][_0x22bfdd(0x1bd)]();try{process['platform']===_0x1e90f8[_0x22bfdd(0x208)]&&this['process'][_0x22bfdd(0x1c4)]&&spawn(_0x22bfdd(0x1b5),['/pid',this[_0x22bfdd(0x1ff)]['pid'][_0x22bfdd(0x1e7)](),'/f','/t']),this[_0x22bfdd(0x1ff)][_0x22bfdd(0x1dc)]();}catch(_0x5baae9){}this[_0x22bfdd(0x1ff)]=null,console[_0x22bfdd(0x1e8)]('[MCP\x20Clien'+_0x22bfdd(0x1e4)+_0x22bfdd(0x1d9));}}async[a0_0x376e24(0x1fd)](){const _0x3630a8=a0_0x376e24,_0x30e777={};_0x30e777[_0x3630a8(0x1cb)]='2024-11-05';const _0x3bd402=_0x30e777;console['log'](_0x3630a8(0x219)+_0x3630a8(0x1e5)+'\x20initializ'+_0x3630a8(0x1ca)+'..');const _0x3aa274={};_0x3aa274[_0x3630a8(0x209)+'d']=!![];const _0x4507ac={};_0x4507ac[_0x3630a8(0x1ef)]=_0x3aa274;const _0x228d08={};_0x228d08['name']='mcp-test-c'+_0x3630a8(0x217),_0x228d08[_0x3630a8(0x211)]=_0x3630a8(0x21e);const _0x227156={};_0x227156[_0x3630a8(0x202)+_0x3630a8(0x225)]=_0x3bd402[_0x3630a8(0x1cb)],_0x227156[_0x3630a8(0x21d)+'es']=_0x4507ac,_0x227156[_0x3630a8(0x1d2)]=_0x228d08;const _0x4ce28e=await this[_0x3630a8(0x20e)](_0x3630a8(0x1fd),_0x227156);console['log']('[MCP\x20Clien'+_0x3630a8(0x1ce)+_0x3630a8(0x1f9),_0x4ce28e),await this['notify'](_0x3630a8(0x210)+'ons/initia'+_0x3630a8(0x1ea),{}),this[_0x3630a8(0x222)+_0x3630a8(0x1ec)]=!![];}async[a0_0x376e24(0x1f1)](_0xdb5719,_0x1055b5){const _0x58fef8=a0_0x376e24,_0x35440c={'zOLHB':function(_0x41fd16,_0x3ae2e1){return _0x41fd16!==_0x3ae2e1;},'GtkTE':'SDPpT','spQLE':function(_0x29a20c,_0x55156b){return _0x29a20c(_0x55156b);}};if(!this[_0x58fef8(0x1ff)]||this[_0x58fef8(0x1ff)][_0x58fef8(0x1cd)]!==null)return;const _0x1f513b={};_0x1f513b[_0x58fef8(0x206)]=_0x58fef8(0x207),_0x1f513b['method']=_0xdb5719,_0x1f513b[_0x58fef8(0x1f4)]=_0x1055b5;const _0x3078f8=_0x1f513b,_0x16ec4c=JSON[_0x58fef8(0x1da)](_0x3078f8);return new Promise((_0x2931b8,_0x108aba)=>{const _0x3a099b=_0x58fef8;try{if(_0x35440c[_0x3a099b(0x1f7)]('SDPpT',_0x35440c[_0x3a099b(0x212)]))this[_0x3a099b(0x1b9)+_0x3a099b(0x1fb)][_0x3a099b(0x1d6)](_0x701c28),_0x107996(_0x2d8b22);else{const _0x1f3578=this['process']['stdin'][_0x3a099b(0x1c5)](_0x16ec4c+'\x0a');if(!_0x1f3578)console['warn']('[MCP\x20Clien'+'t]\x20stdin\x20b'+_0x3a099b(0x1e0)+_0x3a099b(0x1cc));_0x2931b8();}}catch(_0x40e780){_0x35440c[_0x3a099b(0x218)](_0x108aba,_0x40e780);}});}async[a0_0x376e24(0x20e)](_0x199768,_0x558fd9){const _0x4ed1a0=a0_0x376e24;if(!this[_0x4ed1a0(0x1ff)]||this[_0x4ed1a0(0x1ff)][_0x4ed1a0(0x1cd)]!==null)throw new Error(_0x4ed1a0(0x1e3)+_0x4ed1a0(0x1b7));const _0xf650e3=this['messageId']++,_0x982f2c={};_0x982f2c[_0x4ed1a0(0x206)]='2.0',_0x982f2c['id']=_0xf650e3,_0x982f2c[_0x4ed1a0(0x216)]=_0x199768,_0x982f2c[_0x4ed1a0(0x1f4)]=_0x558fd9;const _0x3f5076=_0x982f2c;return new Promise((_0xaf33b9,_0x3fc43d)=>{const _0x3dccfd=_0x4ed1a0,_0x25d04e={'zwzUG':function(_0x9742e6,_0x11b8ee){return _0x9742e6(_0x11b8ee);}};this['pendingReq'+_0x3dccfd(0x1fb)][_0x3dccfd(0x1bf)](_0xf650e3,(_0x2192a3,_0x36b3a0)=>{const _0x48e5b2=_0x3dccfd;if(_0x2192a3)_0x25d04e[_0x48e5b2(0x201)](_0xaf33b9,_0x2192a3);else _0x3fc43d(_0x36b3a0);});const _0x586468=JSON[_0x3dccfd(0x1da)](_0x3f5076);try{const _0x20c7b0=this[_0x3dccfd(0x1ff)][_0x3dccfd(0x203)][_0x3dccfd(0x1c5)](_0x586468+'\x0a');!_0x20c7b0&&console[_0x3dccfd(0x1de)](_0x3dccfd(0x219)+_0x3dccfd(0x1c0)+_0x3dccfd(0x1e0)+'\x20(request)');}catch(_0x2cad74){this[_0x3dccfd(0x1b9)+_0x3dccfd(0x1fb)][_0x3dccfd(0x1d6)](_0xf650e3),_0x3fc43d(_0x2cad74);}});}[a0_0x376e24(0x1d7)+a0_0x376e24(0x20a)](_0x9aa56f,_0x15e8c6){const _0x19ecbb=a0_0x376e24;this[_0x19ecbb(0x210)+'onHandlers'][_0x19ecbb(0x1bf)](_0x9aa56f,_0x15e8c6);}[a0_0x376e24(0x1f8)+a0_0x376e24(0x1f6)](_0x141c11){const _0x12e4fa=a0_0x376e24;if(_0x141c11['id']!==undefined&&(_0x141c11[_0x12e4fa(0x200)]!==undefined||_0x141c11[_0x12e4fa(0x1c8)]!==undefined)){const _0x1ccfe0=this[_0x12e4fa(0x1b9)+_0x12e4fa(0x1fb)]['get'](_0x141c11['id']);_0x1ccfe0&&(this[_0x12e4fa(0x1b9)+_0x12e4fa(0x1fb)][_0x12e4fa(0x1d6)](_0x141c11['id']),_0x141c11[_0x12e4fa(0x1c8)]?_0x1ccfe0(null,new Error('JSON-RPC\x20E'+_0x12e4fa(0x204)+JSON[_0x12e4fa(0x1da)](_0x141c11['error']))):_0x1ccfe0(_0x141c11[_0x12e4fa(0x200)],null));}else{if(_0x141c11[_0x12e4fa(0x216)]&&!_0x141c11['id']){const _0x4a1d8a=this[_0x12e4fa(0x210)+_0x12e4fa(0x1fe)][_0x12e4fa(0x1d5)](_0x141c11['method']);_0x4a1d8a&&_0x4a1d8a(_0x141c11['params']);}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x3d2c7c,_0x549bc9){const _0x34c6d4=a1_0x241c,_0x38819b=_0x3d2c7c();while(!![]){try{const _0x155556=parseInt(_0x34c6d4(0x18c))/0x1+-parseInt(_0x34c6d4(0x175))/0x2*(-parseInt(_0x34c6d4(0x171))/0x3)+-parseInt(_0x34c6d4(0x13d))/0x4*(-parseInt(_0x34c6d4(0x172))/0x5)+parseInt(_0x34c6d4(0x16d))/0x6*(parseInt(_0x34c6d4(0x13c))/0x7)+parseInt(_0x34c6d4(0x139))/0x8*(parseInt(_0x34c6d4(0x14f))/0x9)+-parseInt(_0x34c6d4(0x136))/0xa+-parseInt(_0x34c6d4(0x17e))/0xb;if(_0x155556===_0x549bc9)break;else _0x38819b['push'](_0x38819b['shift']());}catch(_0x296c1f){_0x38819b['push'](_0x38819b['shift']());}}}(a1_0xd626,0x822ae));function a1_0x241c(_0x56f63a,_0x333507){_0x56f63a=_0x56f63a-0x135;const _0x6eb8e5=a1_0xd626();let _0x13aaac=_0x6eb8e5[_0x56f63a];return _0x13aaac;}function a1_0xd626(){const _0x57c091=['(((.+)+)+)','turedConte','ponseCheck','failed-tes','hasIsError','nt/file.ja','\x0a✅\x20결과\x20저장:\x20','apply','...','is_status','nt.zip','\x20===','writeFileS','includes','결\x20성공\x0a','message','p_sast','filePaths','ync','Testing\x20','hasStructu','error','6OOALgA','tools/call','TC033','toString','22683XxWpNn','5ZUooUg','nt=','folderPath','130raPolF','stringify','TC045','ess','sklcV','nt/folder','TC036','esponse=','validation','6804226GoBhSX','✅\x20MCP\x20서버\x20연','constructo','TC014','lder_sast','exit','text','p_sca',':\x20isError=','log','analysisId','ysis_progr','hvFpK','les_sast','32248vZShzs','args','380960AmeutZ','ts-respons','toLowerCas','50936aZXcLO','Error:','zipFilePat','1129933dozhvJ','1585828ZrbiTp','dist/src/s','redContent','les_sca','analyze_fo','search','structured','omgGe','name','\x0a===\x20분석\x20결과','TC042','request','TC007','stop','/nonexiste','999999999','arguments','Ubgae','153Shvtgt','es.json','content',',\x20isErrorR','analyze_fi','TC032','get_analys','analyze_zi'];a1_0xd626=function(){return _0x57c091;};return a1_0xd626();}import{McpClient}from'../mcp-test/mcp-client.js';import a1_0x270145 from'fs';async function main(){const _0x1c5f9d=a1_0x241c,_0x57c491={};_0x57c491[_0x1c5f9d(0x144)]=_0x1c5f9d(0x157)+'+$',_0x57c491[_0x1c5f9d(0x18a)]=_0x1c5f9d(0x149),_0x57c491[_0x1c5f9d(0x179)]=_0x1c5f9d(0x14c),_0x57c491[_0x1c5f9d(0x14e)]=_0x1c5f9d(0x14b)+_0x1c5f9d(0x161);const _0xcda4fa=_0x57c491,_0x51f7e=(function(){let _0x29d503=!![];return function(_0x14702d,_0x2365e3){const _0x501bd1=_0x29d503?function(){const _0x495742=a1_0x241c;if(_0x2365e3){const _0x3a3747=_0x2365e3[_0x495742(0x15e)](_0x14702d,arguments);return _0x2365e3=null,_0x3a3747;}}:function(){};return _0x29d503=![],_0x501bd1;};}()),_0x1db34e=_0x51f7e(this,function(){const _0x2a03f3=_0x1c5f9d;return _0x1db34e[_0x2a03f3(0x170)]()[_0x2a03f3(0x142)](_0xcda4fa[_0x2a03f3(0x144)])['toString']()[_0x2a03f3(0x180)+'r'](_0x1db34e)[_0x2a03f3(0x142)](_0x2a03f3(0x157)+'+$');});_0x1db34e();const _0x275b25=new McpClient('node',[_0x1c5f9d(0x13e)+'erver.js']);try{await _0x275b25['start'](),console[_0x1c5f9d(0x187)](_0x1c5f9d(0x17f)+_0x1c5f9d(0x165));const _0x54dedc={};_0x54dedc[_0x1c5f9d(0x168)]=[];const _0x4fe4ce={};_0x4fe4ce['id']=_0xcda4fa[_0x1c5f9d(0x18a)],_0x4fe4ce[_0x1c5f9d(0x145)]='analyze_fi'+'les_sast',_0x4fe4ce['args']=_0x54dedc;const _0xb99a49={};_0xb99a49[_0x1c5f9d(0x168)]=[_0x1c5f9d(0x14b)+_0x1c5f9d(0x15c)+'va'];const _0x107e9f={};_0x107e9f['id']='TC008',_0x107e9f[_0x1c5f9d(0x145)]=_0x1c5f9d(0x153)+_0x1c5f9d(0x18b),_0x107e9f[_0x1c5f9d(0x135)]=_0xb99a49;const _0x5e6d46={};_0x5e6d46['analysisId']=_0x1c5f9d(0x14c);const _0x4aa91c={};_0x4aa91c['id']=_0x1c5f9d(0x181),_0x4aa91c[_0x1c5f9d(0x145)]=_0x1c5f9d(0x155)+_0x1c5f9d(0x160),_0x4aa91c[_0x1c5f9d(0x135)]=_0x5e6d46;const _0x9f5d1a={};_0x9f5d1a[_0x1c5f9d(0x188)]=_0xcda4fa[_0x1c5f9d(0x179)];const _0x1622dc={};_0x1622dc['id']='TC029',_0x1622dc[_0x1c5f9d(0x145)]='track_anal'+_0x1c5f9d(0x189)+_0x1c5f9d(0x178),_0x1622dc['args']=_0x9f5d1a;const _0x3a3f96={};_0x3a3f96[_0x1c5f9d(0x174)]='';const _0xbb84f6={};_0xbb84f6['id']=_0x1c5f9d(0x154),_0xbb84f6['name']=_0x1c5f9d(0x141)+_0x1c5f9d(0x182),_0xbb84f6[_0x1c5f9d(0x135)]=_0x3a3f96;const _0x905b2b={};_0x905b2b[_0x1c5f9d(0x174)]=_0x1c5f9d(0x14b)+_0x1c5f9d(0x17a);const _0x50ff2f={};_0x50ff2f['id']=_0x1c5f9d(0x16f),_0x50ff2f[_0x1c5f9d(0x145)]=_0x1c5f9d(0x141)+_0x1c5f9d(0x182),_0x50ff2f[_0x1c5f9d(0x135)]=_0x905b2b;const _0x369c71={};_0x369c71[_0x1c5f9d(0x13b)+'h']=_0xcda4fa[_0x1c5f9d(0x14e)];const _0x530bd0={};_0x530bd0['id']=_0x1c5f9d(0x17b),_0x530bd0[_0x1c5f9d(0x145)]='analyze_zi'+_0x1c5f9d(0x167),_0x530bd0[_0x1c5f9d(0x135)]=_0x369c71;const _0x327027={};_0x327027[_0x1c5f9d(0x168)]=[];const _0x1c1531={};_0x1c1531['id']='TC039',_0x1c1531[_0x1c5f9d(0x145)]=_0x1c5f9d(0x153)+_0x1c5f9d(0x140),_0x1c1531[_0x1c5f9d(0x135)]=_0x327027;const _0x29719c={};_0x29719c[_0x1c5f9d(0x174)]='';const _0x365566={};_0x365566['id']=_0x1c5f9d(0x147),_0x365566[_0x1c5f9d(0x145)]=_0x1c5f9d(0x141)+'lder_sca',_0x365566[_0x1c5f9d(0x135)]=_0x29719c;const _0x4578c4={};_0x4578c4[_0x1c5f9d(0x13b)+'h']=_0x1c5f9d(0x14b)+_0x1c5f9d(0x161);const _0x2b11c4={};_0x2b11c4['id']=_0x1c5f9d(0x177),_0x2b11c4[_0x1c5f9d(0x145)]=_0x1c5f9d(0x156)+_0x1c5f9d(0x185),_0x2b11c4[_0x1c5f9d(0x135)]=_0x4578c4;const _0x56aed0=[_0x4fe4ce,_0x107e9f,_0x4aa91c,_0x1622dc,_0xbb84f6,_0x50ff2f,_0x530bd0,_0x1c1531,_0x365566,_0x2b11c4],_0x465e23={};for(const _0x126ea1 of _0x56aed0){console['log'](_0x1c5f9d(0x16a)+_0x126ea1['id']+':\x20'+_0x126ea1[_0x1c5f9d(0x145)]+_0x1c5f9d(0x15f));try{const _0x459038={};_0x459038[_0x1c5f9d(0x145)]=_0x126ea1[_0x1c5f9d(0x145)],_0x459038[_0x1c5f9d(0x14d)]=_0x126ea1['args'];const _0x14c950=await _0x275b25[_0x1c5f9d(0x148)](_0x1c5f9d(0x16e),_0x459038);_0x465e23[_0x126ea1['id']]={'test':_0x126ea1[_0x1c5f9d(0x145)],'args':_0x126ea1[_0x1c5f9d(0x135)],'response':_0x14c950,'hasIsError':!!_0x14c950['isError'],'hasStructuredContent':!!_0x14c950[_0x1c5f9d(0x143)+'Content'],'contentText':_0x14c950[_0x1c5f9d(0x151)]?.[0x0]?.[_0x1c5f9d(0x184)],'isErrorResponseCheck':_0x14c950['isError']===!![]||_0x14c950['content']?.[0x0]?.[_0x1c5f9d(0x184)]?.[_0x1c5f9d(0x138)+'e']()[_0x1c5f9d(0x164)](_0x1c5f9d(0x16c))||_0x14c950[_0x1c5f9d(0x151)]?.[0x0]?.[_0x1c5f9d(0x184)]?.[_0x1c5f9d(0x138)+'e']()[_0x1c5f9d(0x164)](_0x1c5f9d(0x17d))};}catch(_0xc10ec6){_0x465e23[_0x126ea1['id']]={'test':_0x126ea1[_0x1c5f9d(0x145)],'args':_0x126ea1[_0x1c5f9d(0x135)],'error':_0xc10ec6[_0x1c5f9d(0x166)]};}}a1_0x270145[_0x1c5f9d(0x163)+_0x1c5f9d(0x169)](_0x1c5f9d(0x15a)+_0x1c5f9d(0x137)+_0x1c5f9d(0x150),JSON[_0x1c5f9d(0x176)](_0x465e23,null,0x2)),console[_0x1c5f9d(0x187)](_0x1c5f9d(0x15d)+_0x1c5f9d(0x15a)+'ts-respons'+_0x1c5f9d(0x150)),console[_0x1c5f9d(0x187)](_0x1c5f9d(0x146)+_0x1c5f9d(0x162));for(const [_0x3fada2,_0x50d4ec]of Object['entries'](_0x465e23)){const _0x2552a3=_0x50d4ec;console[_0x1c5f9d(0x187)](_0x3fada2+_0x1c5f9d(0x186)+_0x2552a3[_0x1c5f9d(0x15b)]+(',\x20hasStruc'+_0x1c5f9d(0x158)+_0x1c5f9d(0x173))+_0x2552a3[_0x1c5f9d(0x16b)+_0x1c5f9d(0x13f)]+(_0x1c5f9d(0x152)+_0x1c5f9d(0x17c))+_0x2552a3['isErrorRes'+_0x1c5f9d(0x159)]);}await _0x275b25['stop']();}catch(_0x1034db){console[_0x1c5f9d(0x16c)](_0x1c5f9d(0x13a),_0x1034db),await _0x275b25[_0x1c5f9d(0x14a)](),process[_0x1c5f9d(0x183)](0x1);}}main();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x377fb2=a2_0xf517;(function(_0x2c795e,_0x1a50b5){const _0x50cec7=a2_0xf517,_0x24f67b=_0x2c795e();while(!![]){try{const _0x490947=-parseInt(_0x50cec7(0x142))/0x1+-parseInt(_0x50cec7(0x130))/0x2*(parseInt(_0x50cec7(0x159))/0x3)+-parseInt(_0x50cec7(0x15e))/0x4*(-parseInt(_0x50cec7(0x14b))/0x5)+parseInt(_0x50cec7(0x157))/0x6*(parseInt(_0x50cec7(0x14a))/0x7)+-parseInt(_0x50cec7(0x11c))/0x8*(parseInt(_0x50cec7(0x14c))/0x9)+-parseInt(_0x50cec7(0x12d))/0xa+parseInt(_0x50cec7(0x13d))/0xb;if(_0x490947===_0x1a50b5)break;else _0x24f67b['push'](_0x24f67b['shift']());}catch(_0x35c5ec){_0x24f67b['push'](_0x24f67b['shift']());}}}(a2_0x42c0,0xb8aea));function a2_0xf517(_0xdcadc6,_0x83086b){_0xdcadc6=_0xdcadc6-0x11a;const _0x2ea767=a2_0x42c0();let _0x3af625=_0x2ea767[_0xdcadc6];return _0x3af625;}function a2_0x42c0(){const _0x1fcf7d=['fileName','ync','structured','32iziKHk','UpsCM','\x0a===\x20핵심\x20발견','c005-respo','\x0apublic\x20cl','fileConten','stringify','name','tc005_erro','search','lyze_file_','UserContro','tc001_erro','stop','\x20===','nse.json','\x20\x22SELECT\x20*','6789050AnvhRo','erver.js','tools/call','18aZCQVZ','analyze_fi','apply','le_sast','exit','\x20+\x20\x22\x27\x22;\x0a\x20\x20','TC001','\x20=\x20\x27\x22\x20+\x20id','(((.+)+)+)','tc001_has_','\x20FROM\x20user','tc001_anal','TC005\x20has\x20','28044412RdFYKu','tc001-vs-t','comparison','ller.java','Content:','967540lhZjfE','\x0a✅\x20결과\x20저장:\x20','TC005','sast\x20WITHO','request','error','ntroller\x20{','TC005:\x20ana','95949ZHQrDe','10GmZzSp','2880882MkJQeN','Content','bAUtU','✅\x20MCP\x20서버\x20연','c\x20void\x20get','start','EXTENSION\x20','(.java)','TC001:\x20ana','tc005_anal','ller','342qkiSka','sast\x20with\x20','79674hRAxvI','analysisId','dist/src/s','log','g\x20id)\x20{\x0a\x20\x20','1183052FPjECV','toString'];a2_0x42c0=function(){return _0x1fcf7d;};return a2_0x42c0();}import{McpClient}from'../mcp-test/mcp-client.js';import a2_0x55f6d6 from'fs';const BUILTIN_JAVA_CODE=a2_0x377fb2(0x120)+'ass\x20UserCo'+a2_0x377fb2(0x148)+'\x0a\x20\x20\x20\x20publi'+a2_0x377fb2(0x150)+'User(Strin'+a2_0x377fb2(0x15d)+'\x20\x20\x20\x20\x20\x20Stri'+'ng\x20query\x20='+a2_0x377fb2(0x12c)+a2_0x377fb2(0x13a)+'s\x20WHERE\x20id'+a2_0x377fb2(0x137)+a2_0x377fb2(0x135)+'\x20\x20}\x0a}';async function main(){const _0x38ed28=a2_0x377fb2,_0x40fe02={};_0x40fe02['UpsCM']='tools/call',_0x40fe02[_0x38ed28(0x14e)]=_0x38ed28(0x131)+'le_sast';const _0x451e42=_0x40fe02,_0x32abcf=(function(){let _0x3eb806=!![];return function(_0x2b6a12,_0x52e73){const _0x22552f=_0x3eb806?function(){const _0x41088c=a2_0xf517;if(_0x52e73){const _0x13fee8=_0x52e73[_0x41088c(0x132)](_0x2b6a12,arguments);return _0x52e73=null,_0x13fee8;}}:function(){};return _0x3eb806=![],_0x22552f;};}()),_0x3c4578=_0x32abcf(this,function(){const _0xe27b2e=_0x38ed28;return _0x3c4578[_0xe27b2e(0x15f)]()[_0xe27b2e(0x125)](_0xe27b2e(0x138)+'+$')['toString']()['constructo'+'r'](_0x3c4578)[_0xe27b2e(0x125)](_0xe27b2e(0x138)+'+$');});_0x3c4578();const _0x1c81d1=new McpClient('node',[_0x38ed28(0x15b)+_0x38ed28(0x12e)]);try{await _0x1c81d1[_0x38ed28(0x151)](),console['log'](_0x38ed28(0x14f)+'결\x20성공\x0a'),console[_0x38ed28(0x15c)](_0x38ed28(0x154)+_0x38ed28(0x126)+_0x38ed28(0x158)+_0x38ed28(0x152)+_0x38ed28(0x153));const _0x496ae3={};_0x496ae3[_0x38ed28(0x121)+'t']=BUILTIN_JAVA_CODE,_0x496ae3[_0x38ed28(0x160)]=_0x38ed28(0x127)+_0x38ed28(0x140);const _0x21363c={};_0x21363c[_0x38ed28(0x123)]='analyze_fi'+_0x38ed28(0x133),_0x21363c['arguments']=_0x496ae3;const _0x362305=await _0x1c81d1[_0x38ed28(0x146)](_0x38ed28(0x12f),_0x21363c);console[_0x38ed28(0x15c)](_0x38ed28(0x149)+_0x38ed28(0x126)+_0x38ed28(0x145)+'UT\x20extensi'+'on');const _0x1fb5b4={};_0x1fb5b4['fileConten'+'t']=BUILTIN_JAVA_CODE,_0x1fb5b4[_0x38ed28(0x160)]=_0x38ed28(0x127)+_0x38ed28(0x156);const _0x2d6a61=await _0x1c81d1[_0x38ed28(0x146)](_0x451e42[_0x38ed28(0x11d)],{'name':_0x451e42[_0x38ed28(0x14e)],'arguments':_0x1fb5b4}),_0x59b0f7={};_0x59b0f7[_0x38ed28(0x136)]=_0x362305,_0x59b0f7[_0x38ed28(0x144)]=_0x2d6a61,_0x59b0f7[_0x38ed28(0x13f)]={},_0x59b0f7[_0x38ed28(0x13f)][_0x38ed28(0x139)+_0x38ed28(0x11b)+'Content']=!!_0x362305['structured'+_0x38ed28(0x14d)],_0x59b0f7[_0x38ed28(0x13f)]['tc005_has_'+_0x38ed28(0x11b)+_0x38ed28(0x14d)]=!!_0x2d6a61['structured'+'Content'],_0x59b0f7[_0x38ed28(0x13f)][_0x38ed28(0x128)+'r']=_0x362305[_0x38ed28(0x11b)+_0x38ed28(0x14d)]?.[_0x38ed28(0x147)],_0x59b0f7[_0x38ed28(0x13f)][_0x38ed28(0x124)+'r']=_0x2d6a61[_0x38ed28(0x11b)+'Content']?.['error'],_0x59b0f7[_0x38ed28(0x13f)][_0x38ed28(0x13b)+'ysisId']=_0x362305[_0x38ed28(0x11b)+_0x38ed28(0x14d)]?.[_0x38ed28(0x15a)],_0x59b0f7[_0x38ed28(0x13f)][_0x38ed28(0x155)+'ysisId']=_0x2d6a61[_0x38ed28(0x11b)+_0x38ed28(0x14d)]?.['analysisId'];const _0x3dbdb9=_0x59b0f7;a2_0x55f6d6['writeFileS'+_0x38ed28(0x11a)](_0x38ed28(0x13e)+_0x38ed28(0x11f)+_0x38ed28(0x12b),JSON[_0x38ed28(0x122)](_0x3dbdb9,null,0x2)),console[_0x38ed28(0x15c)](_0x38ed28(0x143)+_0x38ed28(0x13e)+_0x38ed28(0x11f)+_0x38ed28(0x12b)),console[_0x38ed28(0x15c)](_0x38ed28(0x11e)+_0x38ed28(0x12a)),console[_0x38ed28(0x15c)]('TC001\x20has\x20'+'structured'+_0x38ed28(0x141),!!_0x362305['structured'+_0x38ed28(0x14d)]),console[_0x38ed28(0x15c)](_0x38ed28(0x13c)+_0x38ed28(0x11b)+'Content:',!!_0x2d6a61[_0x38ed28(0x11b)+_0x38ed28(0x14d)]),await _0x1c81d1[_0x38ed28(0x129)]();}catch(_0x8783c3){console[_0x38ed28(0x147)]('Error:',_0x8783c3),await _0x1c81d1[_0x38ed28(0x129)](),process[_0x38ed28(0x134)](0x1);}}main();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x33fbf0=a3_0x62ca;function a3_0x38e7(){const _0x53e0e6=['validation','(((.+)+)+)','4QursZh','arguments','name','2SYMeMO','68220hyQKUO','meout\x20afte','tools/call','toUpperCas','STOP','content','5475816MkLIEO','687057HmEvnD','\x20attempts','656127ndLCFF','Polling\x20ti','text','result','toString','418414NbpfTA','/ko/reques','is_status','isError','tList/anal','201625MwsFYX','rrowcloud.','2882118outFOb','COMPLETE','260ExhMFY','constructo','error','apply','FAIL','https://on','toLowerCas','get_analys','search','includes','fKHqF','QrOSY','SUCCESS'];a3_0x38e7=function(){return _0x53e0e6;};return a3_0x38e7();}function a3_0x62ca(_0x19c28e,_0x2c4a00){_0x19c28e=_0x19c28e-0x127;const _0x1c7784=a3_0x38e7();let _0x275e95=_0x1c7784[_0x19c28e];return _0x275e95;}(function(_0x4dcccb,_0x94d8be){const _0x15d78d=a3_0x62ca,_0x2be615=_0x4dcccb();while(!![]){try{const _0x4f344f=parseInt(_0x15d78d(0x14b))/0x1*(-parseInt(_0x15d78d(0x130))/0x2)+-parseInt(_0x15d78d(0x14c))/0x3+-parseInt(_0x15d78d(0x148))/0x4*(parseInt(_0x15d78d(0x135))/0x5)+-parseInt(_0x15d78d(0x137))/0x6+parseInt(_0x15d78d(0x129))/0x7+-parseInt(_0x15d78d(0x128))/0x8+-parseInt(_0x15d78d(0x12b))/0x9*(-parseInt(_0x15d78d(0x139))/0xa);if(_0x4f344f===_0x94d8be)break;else _0x2be615['push'](_0x2be615['shift']());}catch(_0x4a7eb5){_0x2be615['push'](_0x2be615['shift']());}}}(a3_0x38e7,0x54cb8));const a3_0x1e3143=(function(){let _0x2ab433=!![];return function(_0x420650,_0x45d3d5){const _0xd088b2=_0x2ab433?function(){const _0x229476=a3_0x62ca;if(_0x45d3d5){const _0x53fc97=_0x45d3d5[_0x229476(0x13c)](_0x420650,arguments);return _0x45d3d5=null,_0x53fc97;}}:function(){};return _0x2ab433=![],_0xd088b2;};}()),a3_0x275e95=a3_0x1e3143(this,function(){const _0x473e0d=a3_0x62ca,_0x51e6de={};_0x51e6de[_0x473e0d(0x143)]=_0x473e0d(0x147)+'+$';const _0x3cdae0=_0x51e6de;return a3_0x275e95[_0x473e0d(0x12f)]()[_0x473e0d(0x141)](_0x473e0d(0x147)+'+$')[_0x473e0d(0x12f)]()[_0x473e0d(0x13a)+'r'](a3_0x275e95)[_0x473e0d(0x141)](_0x3cdae0[_0x473e0d(0x143)]);});a3_0x275e95();import a3_0x222540 from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=a3_0x222540['dirname'](__filename),SPARROW_BASE_URL=process.env.SPARROW_API_URL||a3_0x33fbf0(0x13e)+'demand.spa'+a3_0x33fbf0(0x136)+'ai',MAX_POLL_ATTEMPTS=0x12c,POLL_INTERVAL_MS=0xbb8;function getAnalysisLink(_0x2f1ef4){const _0x4afbec=a3_0x33fbf0;return SPARROW_BASE_URL+(_0x4afbec(0x131)+_0x4afbec(0x134)+'ysis/')+_0x2f1ef4;}async function pollUntilComplete(_0x325e09,_0x1189a7){const _0x1ce4f1=a3_0x33fbf0;let _0x16e358=0x0;while(_0x16e358<MAX_POLL_ATTEMPTS){const _0x397d02={};_0x397d02['analysisId']=_0x1189a7;const _0x44cd3b={};_0x44cd3b[_0x1ce4f1(0x14a)]=_0x1ce4f1(0x140)+_0x1ce4f1(0x132),_0x44cd3b[_0x1ce4f1(0x149)]=_0x397d02;const _0x5ab656=await _0x325e09['request'](_0x1ce4f1(0x14e),_0x44cd3b),_0x380781=String(_0x5ab656[_0x1ce4f1(0x127)][0x0][_0x1ce4f1(0x12d)])[_0x1ce4f1(0x14f)+'e']();if(_0x380781[_0x1ce4f1(0x142)]('COMPLETE')||_0x380781[_0x1ce4f1(0x142)](_0x1ce4f1(0x145))||_0x380781[_0x1ce4f1(0x142)](_0x1ce4f1(0x13d))||_0x380781[_0x1ce4f1(0x142)](_0x1ce4f1(0x150))){const _0x1f7ad6={};return _0x1f7ad6['status']=_0x1ce4f1(0x138),_0x1f7ad6[_0x1ce4f1(0x12e)]=_0x5ab656[_0x1ce4f1(0x127)][0x0][_0x1ce4f1(0x12d)],_0x1f7ad6;}await new Promise(_0x4d6039=>setTimeout(_0x4d6039,POLL_INTERVAL_MS)),_0x16e358++;}throw new Error(_0x1ce4f1(0x12c)+_0x1ce4f1(0x14d)+'r\x20'+_0x16e358+_0x1ce4f1(0x12a));}function isErrorResponse(_0x3213a5){const _0x1386c5=a3_0x33fbf0,_0xed2fe7={};_0xed2fe7[_0x1386c5(0x144)]=function(_0x27b8fb,_0x147516){return _0x27b8fb===_0x147516;};const _0xa10671=_0xed2fe7;return _0xa10671[_0x1386c5(0x144)](_0x3213a5[_0x1386c5(0x133)],!![])||_0x3213a5[_0x1386c5(0x127)]?.[0x0]?.[_0x1386c5(0x12d)]?.[_0x1386c5(0x13f)+'e']()[_0x1386c5(0x142)](_0x1386c5(0x13b))||_0x3213a5['content']?.[0x0]?.['text']?.[_0x1386c5(0x13f)+'e']()[_0x1386c5(0x142)](_0x1386c5(0x146));}
|