@sparrowai/sparrow-mcp 1.1.3 → 1.1.5
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/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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x2379(){const _0x385735=['er\x20process','stdout','jsonrpc','GwaKP','[Server\x20Lo','14oeBqQb','lient','ZklEm','xqIQy','350791oTlXMB','165486kvYewb','tion','clear','log','params','line','sed\x20connec','SwVBl','JSON-RPC\x20E','handleMess','isInitiali','write','kill','t]\x20Startin','notify','\x20with\x20stdi','t]\x20Sending','\x20(notify)','win32','Failed\x20to\x20','2.0','Server\x20not','e\x20request.','stdio','exitCode','and','delete','serverArgs','error','2172924cJNrqs','\x20initializ','messageId','version','result','[MCP\x20Clien','onNotifica','stringify','roots','protocolVe','stop','OWVCg','MCP_STDIO','pipe','start','mcp-test-c','data','name','9ABOjED','set','(((.+)+)+)','pendingReq','g\x20server:\x20','age','onHandlers','toString','t]\x20stdin\x20b','platform','uests','serverComm','capabiliti','warn','\x20(request)','pid','stdin','request','get','iled:','join','t]\x20Process','40946ZCpCgp','initialize','process','stderr','search','151500TSEUBn','entries','XIVJZ','UqfHB','spawn\x20serv','uffer\x20full','taskkill','[Server\x20Er','parse','notificati','constructo','zed','EYulM','5409496YluqwW','env','close','stopped','25rvUvni','rsion','method','1.0.0','2494540ZmGRuB','\x20error:'];a0_0x2379=function(){return _0x385735;};return a0_0x2379();}const a0_0x15d227=a0_0x37db;(function(_0x2ebdcf,_0x1f4172){const _0x3d45cc=a0_0x37db,_0x593b8b=_0x2ebdcf();while(!![]){try{const _0x233d3c=-parseInt(_0x3d45cc(0xf5))/0x1+-parseInt(_0x3d45cc(0xab))/0x2*(-parseInt(_0x3d45cc(0xfa))/0x3)+-parseInt(_0x3d45cc(0xcd))/0x4+parseInt(_0x3d45cc(0xa0))/0x5*(parseInt(_0x3d45cc(0xb0))/0x6)+parseInt(_0x3d45cc(0xaf))/0x7+-parseInt(_0x3d45cc(0x9c))/0x8*(-parseInt(_0x3d45cc(0xdf))/0x9)+-parseInt(_0x3d45cc(0xa4))/0xa;if(_0x233d3c===_0x1f4172)break;else _0x593b8b['push'](_0x593b8b['shift']());}catch(_0x218f39){_0x593b8b['push'](_0x593b8b['shift']());}}}(a0_0x2379,0x5dc4a));const a0_0x2de688=(function(){let _0x44fa6a=!![];return function(_0x93d851,_0x2d9780){const _0x13c64e=_0x44fa6a?function(){if(_0x2d9780){const _0x55de88=_0x2d9780['apply'](_0x93d851,arguments);return _0x2d9780=null,_0x55de88;}}:function(){};return _0x44fa6a=![],_0x13c64e;};}()),a0_0x4867cd=a0_0x2de688(this,function(){const _0x4f333d=a0_0x37db;return a0_0x4867cd['toString']()[_0x4f333d(0xf9)]('(((.+)+)+)'+'+$')[_0x4f333d(0xe6)]()[_0x4f333d(0x99)+'r'](a0_0x4867cd)[_0x4f333d(0xf9)](_0x4f333d(0xe1)+'+$');});a0_0x4867cd();import{spawn}from'child_process';import{createInterface}from'readline';function a0_0x37db(_0x48f897,_0x34f408){_0x48f897=_0x48f897-0x90;const _0x5b3d6c=a0_0x2379();let _0x4867cd=_0x5b3d6c[_0x48f897];return _0x4867cd;}export class McpClient{['serverComm'+'and'];[a0_0x15d227(0xcb)];[a0_0x15d227(0xf7)]=null;[a0_0x15d227(0xcf)]=0x0;[a0_0x15d227(0xe2)+a0_0x15d227(0xe9)]=new Map();['notificati'+'onHandlers']=new Map();[a0_0x15d227(0xba)+a0_0x15d227(0x9a)]=![];['rl']=null;constructor(_0x37c7cd,_0x28cf34){const _0xb14537=a0_0x15d227;this[_0xb14537(0xea)+_0xb14537(0xc9)]=_0x37c7cd,this[_0xb14537(0xcb)]=_0x28cf34;}async[a0_0x15d227(0xdb)](){const _0x1efbe7=a0_0x15d227,_0x1b5014={'OWVCg':function(_0x5cb57d,_0x204961,_0x4eafbf,_0x215871){return _0x5cb57d(_0x204961,_0x4eafbf,_0x215871);},'GwaKP':_0x1efbe7(0xdd),'xqIQy':_0x1efbe7(0xb5)};console['log'](_0x1efbe7(0xd2)+_0x1efbe7(0xbd)+_0x1efbe7(0xe3)+this[_0x1efbe7(0xea)+_0x1efbe7(0xc9)]+'\x20'+this['serverArgs'][_0x1efbe7(0xf3)]('\x20'));const _0x53a7c2={...process.env};_0x53a7c2[_0x1efbe7(0xd9)]='true';const _0x5720b3={};_0x5720b3[_0x1efbe7(0xc7)]=['pipe',_0x1efbe7(0xda),_0x1efbe7(0xda)],_0x5720b3['shell']=!![],_0x5720b3[_0x1efbe7(0x9d)]=_0x53a7c2,this['process']=_0x1b5014[_0x1efbe7(0xd8)](spawn,this[_0x1efbe7(0xea)+_0x1efbe7(0xc9)],this[_0x1efbe7(0xcb)],_0x5720b3);if(!this[_0x1efbe7(0xf7)][_0x1efbe7(0xa7)]||!this[_0x1efbe7(0xf7)][_0x1efbe7(0xef)]||!this[_0x1efbe7(0xf7)][_0x1efbe7(0xf8)])throw new Error(_0x1efbe7(0xc3)+_0x1efbe7(0x93)+_0x1efbe7(0xa6)+_0x1efbe7(0xbf)+'o');this[_0x1efbe7(0xf7)][_0x1efbe7(0xf8)]['on'](_0x1b5014[_0x1efbe7(0xa9)],_0x201da8=>{const _0x2c4131=_0x1efbe7;console[_0x2c4131(0xcc)](_0x2c4131(0x96)+'ror]\x20'+_0x201da8['toString']());}),this['rl']=createInterface({'input':this[_0x1efbe7(0xf7)]['stdout']}),this['rl']['on'](_0x1b5014[_0x1efbe7(0xae)],_0x47f3ac=>{const _0x5667ed=_0x1efbe7;if(!_0x47f3ac['trim']())return;try{const _0x3821a5=JSON[_0x5667ed(0x97)](_0x47f3ac);this[_0x5667ed(0xb9)+_0x5667ed(0xe4)](_0x3821a5);}catch(_0x5d2e4c){console['log'](_0x5667ed(0xaa)+'g]',_0x47f3ac);}}),this[_0x1efbe7(0xf7)]['on'](_0x1efbe7(0xcc),_0xab4d3a=>console['error']('[MCP\x20Clien'+_0x1efbe7(0xf4)+_0x1efbe7(0xa5),_0xab4d3a)),this[_0x1efbe7(0xf7)]['on']('close',_0x405337=>{const _0x165bd9=_0x1efbe7;console['log']('[MCP\x20Clien'+'t]\x20Server\x20'+'closed\x20wit'+'h\x20code\x20'+_0x405337);if(this['rl'])this['rl'][_0x165bd9(0x9e)]();for(const [_0xa74a0f,_0xfa2392]of this['pendingReq'+'uests'][_0x165bd9(0x90)]()){_0xfa2392(null,new Error('Server\x20clo'+_0x165bd9(0xb6)+_0x165bd9(0xb1)));}this['pendingReq'+_0x165bd9(0xe9)][_0x165bd9(0xb2)]();});try{await this[_0x1efbe7(0xf6)]();}catch(_0x1ac5bd){console[_0x1efbe7(0xcc)](_0x1efbe7(0xd2)+'t]\x20Initial'+'ization\x20fa'+_0x1efbe7(0xf2),_0x1ac5bd);throw _0x1ac5bd;}}async[a0_0x15d227(0xd7)](){const _0x21e668=a0_0x15d227,_0x68338e={};_0x68338e['XIVJZ']=_0x21e668(0x95);const _0x47b854=_0x68338e;if(this['process']){if(this['rl'])this['rl'][_0x21e668(0x9e)]();try{process[_0x21e668(0xe8)]===_0x21e668(0xc2)&&this['process'][_0x21e668(0xee)]&&spawn(_0x47b854[_0x21e668(0x91)],['/pid',this[_0x21e668(0xf7)][_0x21e668(0xee)][_0x21e668(0xe6)](),'/f','/t']),this[_0x21e668(0xf7)][_0x21e668(0xbc)]();}catch(_0x25117b){}this[_0x21e668(0xf7)]=null,console[_0x21e668(0xb3)](_0x21e668(0xd2)+'t]\x20Server\x20'+_0x21e668(0x9f));}}async['initialize'](){const _0x51ee38=a0_0x15d227,_0x549d63={};_0x549d63[_0x51ee38(0xad)]=_0x51ee38(0xf6);const _0x2f8f89=_0x549d63;console[_0x51ee38(0xb3)]('[MCP\x20Clien'+_0x51ee38(0xc0)+_0x51ee38(0xce)+_0x51ee38(0xc6)+'..');const _0x34c42a={};_0x34c42a['listChange'+'d']=!![];const _0x5c5f34={};_0x5c5f34[_0x51ee38(0xd5)]=_0x34c42a;const _0x1fca2c={};_0x1fca2c[_0x51ee38(0xde)]=_0x51ee38(0xdc)+_0x51ee38(0xac),_0x1fca2c[_0x51ee38(0xd0)]=_0x51ee38(0xa3);const _0xc5fdb5={};_0xc5fdb5[_0x51ee38(0xd6)+_0x51ee38(0xa1)]='2024-11-05',_0xc5fdb5[_0x51ee38(0xeb)+'es']=_0x5c5f34,_0xc5fdb5['clientInfo']=_0x1fca2c;const _0x2036e9=await this['request'](_0x2f8f89[_0x51ee38(0xad)],_0xc5fdb5);console[_0x51ee38(0xb3)]('[MCP\x20Clien'+'t]\x20Initial'+'ized:',_0x2036e9),await this[_0x51ee38(0xbe)](_0x51ee38(0x98)+'ons/initia'+'lized',{}),this[_0x51ee38(0xba)+_0x51ee38(0x9a)]=!![];}async[a0_0x15d227(0xbe)](_0x46a91a,_0x26a875){const _0xc671c=a0_0x15d227;if(!this[_0xc671c(0xf7)]||this['process']['exitCode']!==null)return;const _0x16e681={};_0x16e681['jsonrpc']=_0xc671c(0xc4),_0x16e681[_0xc671c(0xa2)]=_0x46a91a,_0x16e681[_0xc671c(0xb4)]=_0x26a875;const _0x38e242=_0x16e681,_0x3bbea7=JSON[_0xc671c(0xd4)](_0x38e242);return new Promise((_0x58d5ae,_0x429c96)=>{const _0xc14a31=_0xc671c;try{const _0xcd3545=this[_0xc14a31(0xf7)][_0xc14a31(0xef)][_0xc14a31(0xbb)](_0x3bbea7+'\x0a');if(!_0xcd3545)console[_0xc14a31(0xec)](_0xc14a31(0xd2)+_0xc14a31(0xe7)+_0xc14a31(0x94)+_0xc14a31(0xc1));_0x58d5ae();}catch(_0xd4b6a3){_0xc14a31(0x92)==='UqfHB'?_0x429c96(_0xd4b6a3):_0x5bb941[_0xc14a31(0xec)]('[MCP\x20Clien'+'t]\x20stdin\x20b'+'uffer\x20full'+_0xc14a31(0xed));}});}async[a0_0x15d227(0xf0)](_0x2cc61b,_0x211b76){const _0x3fed0e=a0_0x15d227;if(!this['process']||this[_0x3fed0e(0xf7)][_0x3fed0e(0xc8)]!==null)throw new Error(_0x3fed0e(0xc5)+'\x20running');const _0x4e318a=this[_0x3fed0e(0xcf)]++,_0x1202d2={};_0x1202d2[_0x3fed0e(0xa8)]=_0x3fed0e(0xc4),_0x1202d2['id']=_0x4e318a,_0x1202d2[_0x3fed0e(0xa2)]=_0x2cc61b,_0x1202d2['params']=_0x211b76;const _0xdc3f46=_0x1202d2;return new Promise((_0x1f6500,_0x52a5ad)=>{const _0x6a42b=_0x3fed0e;this[_0x6a42b(0xe2)+_0x6a42b(0xe9)][_0x6a42b(0xe0)](_0x4e318a,(_0x63e8b3,_0x1adf3e)=>{if(_0x63e8b3)_0x1f6500(_0x63e8b3);else _0x52a5ad(_0x1adf3e);});const _0x2aa658=JSON[_0x6a42b(0xd4)](_0xdc3f46);try{if(_0x6a42b(0x9b)===_0x6a42b(0x9b)){const _0x5cc1f3=this[_0x6a42b(0xf7)]['stdin']['write'](_0x2aa658+'\x0a');!_0x5cc1f3&&console['warn']('[MCP\x20Clien'+'t]\x20stdin\x20b'+'uffer\x20full'+'\x20(request)');}else this[_0x6a42b(0x98)+_0x6a42b(0xe5)][_0x6a42b(0xe0)](_0x340ff5,_0x6e1d19);}catch(_0x2c28eb){this['pendingReq'+_0x6a42b(0xe9)]['delete'](_0x4e318a),_0x52a5ad(_0x2c28eb);}});}[a0_0x15d227(0xd3)+a0_0x15d227(0xb1)](_0x102edd,_0x59d78f){const _0x4a1162=a0_0x15d227;this[_0x4a1162(0x98)+'onHandlers'][_0x4a1162(0xe0)](_0x102edd,_0x59d78f);}[a0_0x15d227(0xb9)+a0_0x15d227(0xe4)](_0x5d046b){const _0x3f8747=a0_0x15d227,_0x1de48d={};_0x1de48d[_0x3f8747(0xb7)]=function(_0x34055a,_0x42efbb){return _0x34055a!==_0x42efbb;};const _0x2c6895=_0x1de48d;if(_0x2c6895[_0x3f8747(0xb7)](_0x5d046b['id'],undefined)&&(_0x5d046b[_0x3f8747(0xd1)]!==undefined||_0x5d046b[_0x3f8747(0xcc)]!==undefined)){const _0xa8245e=this['pendingReq'+_0x3f8747(0xe9)][_0x3f8747(0xf1)](_0x5d046b['id']);_0xa8245e&&(this[_0x3f8747(0xe2)+_0x3f8747(0xe9)][_0x3f8747(0xca)](_0x5d046b['id']),_0x5d046b[_0x3f8747(0xcc)]?_0xa8245e(null,new Error(_0x3f8747(0xb8)+'rror:\x20'+JSON[_0x3f8747(0xd4)](_0x5d046b[_0x3f8747(0xcc)]))):_0xa8245e(_0x5d046b['result'],null));}else{if(_0x5d046b['method']&&!_0x5d046b['id']){const _0x686986=this['notificati'+_0x3f8747(0xe5)][_0x3f8747(0xf1)](_0x5d046b[_0x3f8747(0xa2)]);_0x686986&&_0x686986(_0x5d046b['params']);}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5b8d82,_0x417b5b){const _0x3acd12=a1_0x23a7,_0x5c6ed3=_0x5b8d82();while(!![]){try{const _0x4c975f=-parseInt(_0x3acd12(0x136))/0x1+parseInt(_0x3acd12(0x12e))/0x2+parseInt(_0x3acd12(0x106))/0x3+parseInt(_0x3acd12(0x10b))/0x4*(parseInt(_0x3acd12(0x105))/0x5)+parseInt(_0x3acd12(0x116))/0x6*(parseInt(_0x3acd12(0xee))/0x7)+-parseInt(_0x3acd12(0xfd))/0x8+-parseInt(_0x3acd12(0xfe))/0x9;if(_0x4c975f===_0x417b5b)break;else _0x5c6ed3['push'](_0x5c6ed3['shift']());}catch(_0x593907){_0x5c6ed3['push'](_0x5c6ed3['shift']());}}}(a1_0x53c4,0x429ca));import{McpClient}from'../mcp-test/mcp-client.js';function a1_0x53c4(){const _0x2c0ad2=['stringify','TC029','ts-respons','결\x20성공\x0a','1002gNSatd','JnuBJ','args','sOVRf','es.json','writeFileS','hasStructu','arguments','analyze_zi','stop',',\x20isErrorR','track_anal','erver.js','zipFilePat','nt/folder','message','ess','les_sast','✅\x20MCP\x20서버\x20연','content','node','TC032','is_status','log','1031084kViaEe','analyze_fi','TC042','lder_sast','toLowerCas','folderPath',':\x20isError=','...','394321NmFMLT','/nonexiste','validation','Testing\x20','entries','start','les_sca','request','search','17570mnLFqY','\x0a✅\x20결과\x20저장:\x20','name','failed-tes','analyze_fo','nt.zip','999999999','TC008','(((.+)+)+)','ysis_progr','includes','TC036','toString','p_sca','TC014','1199528uBUPJI','2415582cLjubw','TC033','structured','Error:','filePaths','error','text','56685VzHjLf','248304RFCeLQ','tools/call','turedConte','isErrorRes','analysisId','24yyrarF','TC039',',\x20hasStruc','isError','dist/src/s','TC045','constructo'];a1_0x53c4=function(){return _0x2c0ad2;};return a1_0x53c4();}import a1_0x2a0f2a from'fs';function a1_0x23a7(_0x4eae44,_0x20f3e3){_0x4eae44=_0x4eae44-0xe6;const _0x498631=a1_0x53c4();let _0x290e23=_0x498631[_0x4eae44];return _0x290e23;}async function main(){const _0xb5dc4b=a1_0x23a7,_0x87167a={};_0x87167a[_0xb5dc4b(0x117)]=_0xb5dc4b(0xf6)+'+$',_0x87167a[_0xb5dc4b(0x119)]=_0xb5dc4b(0xe6)+'nt.zip';const _0x4876be=_0x87167a,_0xba85ce=(function(){let _0x3bb2c8=!![];return function(_0x1e7073,_0x457749){const _0x2e51d3=_0x3bb2c8?function(){if(_0x457749){const _0x5a23aa=_0x457749['apply'](_0x1e7073,arguments);return _0x457749=null,_0x5a23aa;}}:function(){};return _0x3bb2c8=![],_0x2e51d3;};}()),_0x22f6f7=_0xba85ce(this,function(){const _0x2c311b=_0xb5dc4b;return _0x22f6f7[_0x2c311b(0xfa)]()[_0x2c311b(0xed)](_0x2c311b(0xf6)+'+$')[_0x2c311b(0xfa)]()[_0x2c311b(0x111)+'r'](_0x22f6f7)[_0x2c311b(0xed)](_0x4876be['JnuBJ']);});_0x22f6f7();const _0xa99af7=new McpClient(_0xb5dc4b(0x12a),[_0xb5dc4b(0x10f)+_0xb5dc4b(0x122)]);try{await _0xa99af7[_0xb5dc4b(0xea)](),console[_0xb5dc4b(0x12d)](_0xb5dc4b(0x128)+_0xb5dc4b(0x115));const _0x1980be={};_0x1980be[_0xb5dc4b(0x102)]=[];const _0x2b714b={};_0x2b714b['id']='TC007',_0x2b714b['name']='analyze_fi'+_0xb5dc4b(0x127),_0x2b714b[_0xb5dc4b(0x118)]=_0x1980be;const _0x21366f={};_0x21366f[_0xb5dc4b(0x102)]=['/nonexiste'+'nt/file.ja'+'va'];const _0x33411a={};_0x33411a['id']=_0xb5dc4b(0xf5),_0x33411a[_0xb5dc4b(0xf0)]=_0xb5dc4b(0x12f)+_0xb5dc4b(0x127),_0x33411a[_0xb5dc4b(0x118)]=_0x21366f;const _0x51394e={};_0x51394e[_0xb5dc4b(0x10a)]=_0xb5dc4b(0xf4);const _0x1448a1={};_0x1448a1['id']=_0xb5dc4b(0xfc),_0x1448a1['name']='get_analys'+_0xb5dc4b(0x12c),_0x1448a1[_0xb5dc4b(0x118)]=_0x51394e;const _0x4298b0={};_0x4298b0[_0xb5dc4b(0x10a)]=_0xb5dc4b(0xf4);const _0x51e105={};_0x51e105['id']=_0xb5dc4b(0x113),_0x51e105[_0xb5dc4b(0xf0)]=_0xb5dc4b(0x121)+_0xb5dc4b(0xf7)+_0xb5dc4b(0x126),_0x51e105['args']=_0x4298b0;const _0x44b80f={};_0x44b80f[_0xb5dc4b(0x133)]='';const _0xa6747b={};_0xa6747b['id']=_0xb5dc4b(0x12b),_0xa6747b[_0xb5dc4b(0xf0)]=_0xb5dc4b(0xf2)+_0xb5dc4b(0x131),_0xa6747b[_0xb5dc4b(0x118)]=_0x44b80f;const _0x2491db={};_0x2491db[_0xb5dc4b(0x133)]=_0xb5dc4b(0xe6)+_0xb5dc4b(0x124);const _0x56eba1={};_0x56eba1['id']=_0xb5dc4b(0xff),_0x56eba1[_0xb5dc4b(0xf0)]='analyze_fo'+_0xb5dc4b(0x131),_0x56eba1[_0xb5dc4b(0x118)]=_0x2491db;const _0x379c3f={};_0x379c3f[_0xb5dc4b(0x123)+'h']=_0xb5dc4b(0xe6)+_0xb5dc4b(0xf3);const _0x37579e={};_0x37579e['id']=_0xb5dc4b(0xf9),_0x37579e[_0xb5dc4b(0xf0)]=_0xb5dc4b(0x11e)+'p_sast',_0x37579e[_0xb5dc4b(0x118)]=_0x379c3f;const _0x334bf1={};_0x334bf1[_0xb5dc4b(0x102)]=[];const _0x19db23={};_0x19db23['id']=_0xb5dc4b(0x10c),_0x19db23[_0xb5dc4b(0xf0)]='analyze_fi'+_0xb5dc4b(0xeb),_0x19db23[_0xb5dc4b(0x118)]=_0x334bf1;const _0x15d6e7={};_0x15d6e7[_0xb5dc4b(0x133)]='';const _0x42a058={};_0x42a058['id']=_0xb5dc4b(0x130),_0x42a058[_0xb5dc4b(0xf0)]=_0xb5dc4b(0xf2)+'lder_sca',_0x42a058[_0xb5dc4b(0x118)]=_0x15d6e7;const _0x35eb63={};_0x35eb63['zipFilePat'+'h']=_0x4876be[_0xb5dc4b(0x119)];const _0x2f3901={};_0x2f3901['id']=_0xb5dc4b(0x110),_0x2f3901[_0xb5dc4b(0xf0)]='analyze_zi'+_0xb5dc4b(0xfb),_0x2f3901[_0xb5dc4b(0x118)]=_0x35eb63;const _0x440306=[_0x2b714b,_0x33411a,_0x1448a1,_0x51e105,_0xa6747b,_0x56eba1,_0x37579e,_0x19db23,_0x42a058,_0x2f3901],_0x4f4c46={};for(const _0x22218f of _0x440306){console[_0xb5dc4b(0x12d)](_0xb5dc4b(0xe8)+_0x22218f['id']+':\x20'+_0x22218f[_0xb5dc4b(0xf0)]+_0xb5dc4b(0x135));try{const _0x3c93b1={};_0x3c93b1[_0xb5dc4b(0xf0)]=_0x22218f[_0xb5dc4b(0xf0)],_0x3c93b1[_0xb5dc4b(0x11d)]=_0x22218f['args'];const _0x49c363=await _0xa99af7[_0xb5dc4b(0xec)](_0xb5dc4b(0x107),_0x3c93b1);_0x4f4c46[_0x22218f['id']]={'test':_0x22218f[_0xb5dc4b(0xf0)],'args':_0x22218f[_0xb5dc4b(0x118)],'response':_0x49c363,'hasIsError':!!_0x49c363[_0xb5dc4b(0x10e)],'hasStructuredContent':!!_0x49c363[_0xb5dc4b(0x100)+'Content'],'contentText':_0x49c363['content']?.[0x0]?.[_0xb5dc4b(0x104)],'isErrorResponseCheck':_0x49c363['isError']===!![]||_0x49c363[_0xb5dc4b(0x129)]?.[0x0]?.['text']?.[_0xb5dc4b(0x132)+'e']()['includes'](_0xb5dc4b(0x103))||_0x49c363['content']?.[0x0]?.[_0xb5dc4b(0x104)]?.[_0xb5dc4b(0x132)+'e']()[_0xb5dc4b(0xf8)](_0xb5dc4b(0xe7))};}catch(_0x14f66e){_0x4f4c46[_0x22218f['id']]={'test':_0x22218f[_0xb5dc4b(0xf0)],'args':_0x22218f['args'],'error':_0x14f66e[_0xb5dc4b(0x125)]};}}a1_0x2a0f2a[_0xb5dc4b(0x11b)+'ync'](_0xb5dc4b(0xf1)+_0xb5dc4b(0x114)+'es.json',JSON[_0xb5dc4b(0x112)](_0x4f4c46,null,0x2)),console[_0xb5dc4b(0x12d)](_0xb5dc4b(0xef)+'failed-tes'+'ts-respons'+_0xb5dc4b(0x11a)),console['log']('\x0a===\x20분석\x20결과'+'\x20===');for(const [_0x4f02be,_0x33809c]of Object[_0xb5dc4b(0xe9)](_0x4f4c46)){const _0x296189=_0x33809c;console[_0xb5dc4b(0x12d)](_0x4f02be+_0xb5dc4b(0x134)+_0x296189['hasIsError']+(_0xb5dc4b(0x10d)+_0xb5dc4b(0x108)+'nt=')+_0x296189[_0xb5dc4b(0x11c)+'redContent']+(_0xb5dc4b(0x120)+'esponse=')+_0x296189[_0xb5dc4b(0x109)+'ponseCheck']);}await _0xa99af7['stop']();}catch(_0xdcca93){console[_0xb5dc4b(0x103)](_0xb5dc4b(0x101),_0xdcca93),await _0xa99af7[_0xb5dc4b(0x11f)](),process['exit'](0x1);}}main();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a2_0x5b87a3=a2_0x1a98;function a2_0x369a(){const _0x23d252=['24Udvqyo','UT\x20extensi','stringify','\x20\x20}\x0a}','EXTENSION\x20','g\x20id)\x20{\x0a\x20\x20','analysisId','UserContro','TC001','analyze_fi','dist/src/s','tc005_anal','6YemrUd','581965bquMZE','\x20=\x20\x27\x22\x20+\x20id','9pjWrDr','node','toString','tc001_anal','(((.+)+)+)','search','constructo','71NNsrRn','\x20\x22SELECT\x20*','Content','1157672mGHEAS','1478792KEcQNx','sast\x20WITHO','Error:','4756510AmydLj','arguments','\x0a✅\x20결과\x20저장:\x20','ller','comparison','name','ysisId','ntroller\x20{','error','request','TC001\x20has\x20','sast\x20with\x20','4660929sdaqTv','writeFileS','\x0a===\x20핵심\x20발견','Content:','tc005_has_','TC001:\x20ana','8651030rdzOfq','log','24686dnfmVB','fileConten','fileName','le_sast','✅\x20MCP\x20서버\x20연','TC005\x20has\x20','tools/call','ng\x20query\x20=','tc005_erro','tc001_has_','\x0a\x20\x20\x20\x20publi','structured','exit','stop','TC005','nse.json','User(Strin','lyze_file_','결\x20성공\x0a','\x20FROM\x20user','tc001-vs-t','ller.java','c005-respo','\x0apublic\x20cl','c\x20void\x20get'];a2_0x369a=function(){return _0x23d252;};return a2_0x369a();}function a2_0x1a98(_0x10c894,_0x46d2f4){_0x10c894=_0x10c894-0x196;const _0x2048a7=a2_0x369a();let _0x303a04=_0x2048a7[_0x10c894];return _0x303a04;}(function(_0x3ce174,_0x166619){const _0x1c702b=a2_0x1a98,_0x52fbc5=_0x3ce174();while(!![]){try{const _0x6e80b4=-parseInt(_0x1c702b(0x1c5))/0x1*(parseInt(_0x1c702b(0x196))/0x2)+-parseInt(_0x1c702b(0x1bb))/0x3*(-parseInt(_0x1c702b(0x1c8))/0x4)+-parseInt(_0x1c702b(0x1bc))/0x5*(parseInt(_0x1c702b(0x1af))/0x6)+parseInt(_0x1c702b(0x1d8))/0x7+parseInt(_0x1c702b(0x1c9))/0x8+parseInt(_0x1c702b(0x1be))/0x9*(parseInt(_0x1c702b(0x1de))/0xa)+-parseInt(_0x1c702b(0x1cc))/0xb;if(_0x6e80b4===_0x166619)break;else _0x52fbc5['push'](_0x52fbc5['shift']());}catch(_0x47226a){_0x52fbc5['push'](_0x52fbc5['shift']());}}}(a2_0x369a,0x7f06c));import{McpClient}from'../mcp-test/mcp-client.js';import a2_0x4478ed from'fs';const BUILTIN_JAVA_CODE=a2_0x5b87a3(0x1ad)+'ass\x20UserCo'+a2_0x5b87a3(0x1d3)+a2_0x5b87a3(0x1a0)+a2_0x5b87a3(0x1ae)+a2_0x5b87a3(0x1a6)+a2_0x5b87a3(0x1b4)+'\x20\x20\x20\x20\x20\x20Stri'+a2_0x5b87a3(0x19d)+a2_0x5b87a3(0x1c6)+a2_0x5b87a3(0x1a9)+'s\x20WHERE\x20id'+a2_0x5b87a3(0x1bd)+'\x20+\x20\x22\x27\x22;\x0a\x20\x20'+a2_0x5b87a3(0x1b2);async function main(){const _0x277590=a2_0x5b87a3,_0x58456e=(function(){let _0x359454=!![];return function(_0xdffb67,_0x35b7d5){const _0x4786e5=_0x359454?function(){if(_0x35b7d5){const _0x4aa339=_0x35b7d5['apply'](_0xdffb67,arguments);return _0x35b7d5=null,_0x4aa339;}}:function(){};return _0x359454=![],_0x4786e5;};}()),_0x53950a=_0x58456e(this,function(){const _0x118d6e=a2_0x1a98;return _0x53950a[_0x118d6e(0x1c0)]()[_0x118d6e(0x1c3)](_0x118d6e(0x1c2)+'+$')[_0x118d6e(0x1c0)]()[_0x118d6e(0x1c4)+'r'](_0x53950a)[_0x118d6e(0x1c3)](_0x118d6e(0x1c2)+'+$');});_0x53950a();const _0x37e080=new McpClient(_0x277590(0x1bf),[_0x277590(0x1b9)+'erver.js']);try{await _0x37e080['start'](),console['log'](_0x277590(0x19a)+_0x277590(0x1a8)),console[_0x277590(0x1df)](_0x277590(0x1dd)+_0x277590(0x1a7)+_0x277590(0x1d7)+_0x277590(0x1b3)+'(.java)');const _0x22f774={};_0x22f774[_0x277590(0x197)+'t']=BUILTIN_JAVA_CODE,_0x22f774[_0x277590(0x198)]=_0x277590(0x1b6)+_0x277590(0x1ab);const _0xf486b4={};_0xf486b4[_0x277590(0x1d1)]=_0x277590(0x1b8)+_0x277590(0x199),_0xf486b4[_0x277590(0x1cd)]=_0x22f774;const _0x22d1b8=await _0x37e080[_0x277590(0x1d5)](_0x277590(0x19c),_0xf486b4);console['log']('TC005:\x20ana'+_0x277590(0x1a7)+_0x277590(0x1ca)+_0x277590(0x1b0)+'on');const _0x2906f7={};_0x2906f7[_0x277590(0x197)+'t']=BUILTIN_JAVA_CODE,_0x2906f7[_0x277590(0x198)]='UserContro'+_0x277590(0x1cf);const _0x3eff11={};_0x3eff11[_0x277590(0x1d1)]='analyze_fi'+'le_sast',_0x3eff11['arguments']=_0x2906f7;const _0x77622=await _0x37e080[_0x277590(0x1d5)](_0x277590(0x19c),_0x3eff11),_0x2b5d5d={};_0x2b5d5d[_0x277590(0x1b7)]=_0x22d1b8,_0x2b5d5d[_0x277590(0x1a4)]=_0x77622,_0x2b5d5d[_0x277590(0x1d0)]={},_0x2b5d5d[_0x277590(0x1d0)][_0x277590(0x19f)+_0x277590(0x1a1)+_0x277590(0x1c7)]=!!_0x22d1b8[_0x277590(0x1a1)+_0x277590(0x1c7)],_0x2b5d5d[_0x277590(0x1d0)][_0x277590(0x1dc)+_0x277590(0x1a1)+_0x277590(0x1c7)]=!!_0x77622['structured'+_0x277590(0x1c7)],_0x2b5d5d[_0x277590(0x1d0)]['tc001_erro'+'r']=_0x22d1b8[_0x277590(0x1a1)+_0x277590(0x1c7)]?.[_0x277590(0x1d4)],_0x2b5d5d[_0x277590(0x1d0)][_0x277590(0x19e)+'r']=_0x77622[_0x277590(0x1a1)+_0x277590(0x1c7)]?.[_0x277590(0x1d4)],_0x2b5d5d[_0x277590(0x1d0)][_0x277590(0x1c1)+_0x277590(0x1d2)]=_0x22d1b8['structured'+_0x277590(0x1c7)]?.['analysisId'],_0x2b5d5d[_0x277590(0x1d0)][_0x277590(0x1ba)+_0x277590(0x1d2)]=_0x77622[_0x277590(0x1a1)+_0x277590(0x1c7)]?.[_0x277590(0x1b5)];const _0x43e459=_0x2b5d5d;a2_0x4478ed[_0x277590(0x1d9)+'ync'](_0x277590(0x1aa)+_0x277590(0x1ac)+'nse.json',JSON[_0x277590(0x1b1)](_0x43e459,null,0x2)),console[_0x277590(0x1df)](_0x277590(0x1ce)+_0x277590(0x1aa)+_0x277590(0x1ac)+_0x277590(0x1a5)),console['log'](_0x277590(0x1da)+'\x20==='),console[_0x277590(0x1df)](_0x277590(0x1d6)+_0x277590(0x1a1)+_0x277590(0x1db),!!_0x22d1b8[_0x277590(0x1a1)+_0x277590(0x1c7)]),console[_0x277590(0x1df)](_0x277590(0x19b)+'structured'+_0x277590(0x1db),!!_0x77622[_0x277590(0x1a1)+_0x277590(0x1c7)]),await _0x37e080[_0x277590(0x1a3)]();}catch(_0x3d23f6){console[_0x277590(0x1d4)](_0x277590(0x1cb),_0x3d23f6),await _0x37e080[_0x277590(0x1a3)](),process[_0x277590(0x1a2)](0x1);}}main();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x4f9f9a=a3_0x36fe;(function(_0x400b78,_0x4f4f3d){const _0x375e90=a3_0x36fe,_0x596092=_0x400b78();while(!![]){try{const _0x38db28=parseInt(_0x375e90(0x1e8))/0x1*(parseInt(_0x375e90(0x1e1))/0x2)+-parseInt(_0x375e90(0x1d4))/0x3*(parseInt(_0x375e90(0x1db))/0x4)+parseInt(_0x375e90(0x1d6))/0x5+parseInt(_0x375e90(0x1d3))/0x6*(parseInt(_0x375e90(0x1dd))/0x7)+-parseInt(_0x375e90(0x1d0))/0x8+-parseInt(_0x375e90(0x1de))/0x9*(-parseInt(_0x375e90(0x1e7))/0xa)+parseInt(_0x375e90(0x1df))/0xb;if(_0x38db28===_0x4f4f3d)break;else _0x596092['push'](_0x596092['shift']());}catch(_0x28a3f4){_0x596092['push'](_0x596092['shift']());}}}(a3_0x10ea,0xd967c));const a3_0xc92b24=(function(){let _0x51f487=!![];return function(_0x1bf459,_0x460c8){const _0x57f602=_0x51f487?function(){const _0xc2714e=a3_0x36fe;if(_0x460c8){const _0x18f084=_0x460c8[_0xc2714e(0x1d8)](_0x1bf459,arguments);return _0x460c8=null,_0x18f084;}}:function(){};return _0x51f487=![],_0x57f602;};}()),a3_0x2a9ce2=a3_0xc92b24(this,function(){const _0x380697=a3_0x36fe;return a3_0x2a9ce2[_0x380697(0x1e2)]()['search'](_0x380697(0x1e6)+'+$')['toString']()[_0x380697(0x1d5)+'r'](a3_0x2a9ce2)[_0x380697(0x1cf)]('(((.+)+)+)'+'+$');});a3_0x2a9ce2();import a3_0xdc5cba from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=a3_0xdc5cba[a3_0x4f9f9a(0x1eb)](__filename),SPARROW_BASE_URL=process.env.SPARROW_API_URL||a3_0x4f9f9a(0x1f3)+a3_0x4f9f9a(0x1d2)+a3_0x4f9f9a(0x1d9)+'ai',MAX_POLL_ATTEMPTS=0x12c,POLL_INTERVAL_MS=0xbb8;function a3_0x10ea(){const _0x452fbb=['5038850zcJdjN','3TutNuQ','get_analys','toLowerCas','dirname','content','isError','toUpperCas','result','meout\x20afte','ysis/','Polling\x20ti','https://on','COMPLETE','/ko/reques','name','validation','search','5359848gIkekw','SUCCESS','demand.spa','49014nXyetQ','24mkzGFA','constructo','4788535uojTOf','includes','apply','rrowcloud.','analysisId','509980dRnUcx','text','546PdlBwi','9kMNfpH','4339104EeLuoN','tools/call','58130TXhWHU','toString','\x20attempts','error','arguments','(((.+)+)+)'];a3_0x10ea=function(){return _0x452fbb;};return a3_0x10ea();}function getAnalysisLink(_0x442a88){const _0x5479c1=a3_0x4f9f9a;return SPARROW_BASE_URL+(_0x5479c1(0x1cc)+'tList/anal'+_0x5479c1(0x1f1))+_0x442a88;}async function pollUntilComplete(_0x1cfc30,_0x58e071){const _0x39147a=a3_0x4f9f9a;let _0x1dbead=0x0;while(_0x1dbead<MAX_POLL_ATTEMPTS){const _0x478d7e={};_0x478d7e[_0x39147a(0x1da)]=_0x58e071;const _0x268def={};_0x268def[_0x39147a(0x1cd)]=_0x39147a(0x1e9)+'is_status',_0x268def[_0x39147a(0x1e5)]=_0x478d7e;const _0x308b9b=await _0x1cfc30['request'](_0x39147a(0x1e0),_0x268def),_0x2db4cd=String(_0x308b9b[_0x39147a(0x1ec)][0x0][_0x39147a(0x1dc)])[_0x39147a(0x1ee)+'e']();if(_0x2db4cd[_0x39147a(0x1d7)]('COMPLETE')||_0x2db4cd['includes'](_0x39147a(0x1d1))||_0x2db4cd[_0x39147a(0x1d7)]('FAIL')||_0x2db4cd['includes']('STOP')){const _0x172a10={};return _0x172a10['status']=_0x39147a(0x1cb),_0x172a10[_0x39147a(0x1ef)]=_0x308b9b[_0x39147a(0x1ec)][0x0]['text'],_0x172a10;}await new Promise(_0x2d3bb8=>setTimeout(_0x2d3bb8,POLL_INTERVAL_MS)),_0x1dbead++;}throw new Error(_0x39147a(0x1f2)+_0x39147a(0x1f0)+'r\x20'+_0x1dbead+_0x39147a(0x1e3));}function a3_0x36fe(_0x3b8736,_0xb21295){_0x3b8736=_0x3b8736-0x1cb;const _0x2cc2fa=a3_0x10ea();let _0x2a9ce2=_0x2cc2fa[_0x3b8736];return _0x2a9ce2;}function isErrorResponse(_0x3efdcb){const _0x37fda5=a3_0x4f9f9a;return _0x3efdcb[_0x37fda5(0x1ed)]===!![]||_0x3efdcb[_0x37fda5(0x1ec)]?.[0x0]?.['text']?.[_0x37fda5(0x1ea)+'e']()[_0x37fda5(0x1d7)](_0x37fda5(0x1e4))||_0x3efdcb['content']?.[0x0]?.[_0x37fda5(0x1dc)]?.['toLowerCas'+'e']()[_0x37fda5(0x1d7)](_0x37fda5(0x1ce));}
|