@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 a9_0x9b1794=a9_0x1cda;(function(_0x3dad31,_0xb7c2a4){const _0x26db9d=a9_0x1cda,_0x497b39=_0x3dad31();while(!![]){try{const _0x4564ae=-parseInt(_0x26db9d(0xb7))/0x1*(parseInt(_0x26db9d(0xbf))/0x2)+parseInt(_0x26db9d(0xb6))/0x3*(-parseInt(_0x26db9d(0xca))/0x4)+-parseInt(_0x26db9d(0xee))/0x5*(-parseInt(_0x26db9d(0xe0))/0x6)+-parseInt(_0x26db9d(0xc9))/0x7+-parseInt(_0x26db9d(0xc4))/0x8*(-parseInt(_0x26db9d(0xed))/0x9)+-parseInt(_0x26db9d(0xc2))/0xa+parseInt(_0x26db9d(0xf7))/0xb;if(_0x4564ae===_0xb7c2a4)break;else _0x497b39['push'](_0x497b39['shift']());}catch(_0x36eaf8){_0x497b39['push'](_0x497b39['shift']());}}}(a9_0xc64a,0x44661));function a9_0xc64a(){const _0x5d83c3=['s\x20requeste','Type:\x20','trim','analysisId','\x20failed:\x20','8167500RgfdMY','length','UtYBf','derSca','ided.','structured','rvice','ZIP\x20file\x20S','Unknown\x20er','er\x20of\x20file','analyzeFil','\x20analysis\x20','toString','search','is\x20request','File:\x20','folders\x20(','\x0aAnalysis\x20','zipFilePat','at\x20least\x20o','error','info','not\x20provid','\x20The\x20fileP','ed.','requested:','File\x20path\x20','Content','sis\x20reques','ovided','kFdbQ','):\x20','ne\x20file\x20pa','message','ror','ath\x20not\x20pr','CA\x20analysi','21znkBCc','2756xZdXif','\x20SCA\x20analy','kAEKZ','h\x20not\x20prov','content','o\x20analyze.','eSca','analyzeZip','90pyUdjw','type','SCA\x20analys','805360iqriWv','\x0aStatus:\x20','547704zjTMlo','rQrrC','text','status','ysis\x20reque','581252cJUQLM','236484vshMCg','(((.+)+)+)','ysis\x20faile','ovided.','Folder\x20pat','No\x20files\x20t','Sca','BhNEd','skippedFol','UyJFt','aths\x20array','is\x20has\x20sta','folderPath','failed:','join','filePath','ID:\x20','\x20file\x20path','Mxnhs','ders','rted.\x0aZIP\x20','File\x20paths','6JTZQHC','constructo','th.','esSca','analyzeFol','sted:\x20','sis\x20failed','Single\x20fil','e\x20SCA\x20anal','ZIP\x20file\x20p','analysisTy','Folder\x20SCA','er:\x20','18OkTFXr','510870qcqUxu','analysisSe','Multi-file','\x0a\x0aSkipped\x20'];a9_0xc64a=function(){return _0x5d83c3;};return a9_0xc64a();}function a9_0x1cda(_0x5bf5a4,_0x49d3ac){_0x5bf5a4=_0x5bf5a4-0xa0;const _0x3a4226=a9_0xc64a();let _0x24d29a=_0x3a4226[_0x5bf5a4];return _0x24d29a;}const a9_0xc87caf=(function(){let _0x3be001=!![];return function(_0x34e59e,_0x21c77b){const _0x5212fc=_0x3be001?function(){if(_0x21c77b){const _0x3b4bb6=_0x21c77b['apply'](_0x34e59e,arguments);return _0x21c77b=null,_0x3b4bb6;}}:function(){};return _0x3be001=![],_0x5212fc;};}()),a9_0x24d29a=a9_0xc87caf(this,function(){const _0x2fde17=a9_0x1cda;return a9_0x24d29a[_0x2fde17(0x103)]()[_0x2fde17(0x104)]('(((.+)+)+)'+'+$')[_0x2fde17(0x103)]()[_0x2fde17(0xe1)+'r'](a9_0x24d29a)[_0x2fde17(0x104)](_0x2fde17(0xcb)+'+$');});a9_0x24d29a();import{logger}from'../utils/logger.js';export class ScaController{[a9_0x9b1794(0xef)+'rvice'];constructor(_0x3dbac3){const _0x59e56a=a9_0x9b1794;this[_0x59e56a(0xef)+_0x59e56a(0xfd)]=_0x3dbac3;}async['analyzeFil'+a9_0x9b1794(0xbd)]({filePath:_0x5d2b57,zipFileName:_0x4f3cda}){const _0xac5a8e=a9_0x9b1794,_0xf2f378={};_0xf2f378[_0xac5a8e(0xdc)]=function(_0xadd306,_0x569f42){return _0xadd306 instanceof _0x569f42;};const _0x458d1d=_0xf2f378;try{if(!_0x5d2b57||_0x5d2b57['trim']()[_0xac5a8e(0xf8)]===0x0){if(_0xac5a8e(0xc5)==='RLSTJ'){_0x3be3cf[_0xac5a8e(0xa5)](_0xac5a8e(0xe7)+_0xac5a8e(0xe8)+'ysis\x20faile'+'d:',_0xb5279a);const _0x4e1a43={};return _0x4e1a43[_0xac5a8e(0xc0)]=_0xac5a8e(0xc6),_0x4e1a43[_0xac5a8e(0xc6)]=_0xac5a8e(0xc1)+_0xac5a8e(0x105)+'\x20failed:\x20'+(_0x44d161 instanceof _0x33444a?_0x21d41c[_0xac5a8e(0xb2)]:_0xac5a8e(0xff)+'ror'),{'content':[_0x4e1a43],'structuredContent':{'error':_0x458d1d[_0xac5a8e(0xdc)](_0x4a83d1,_0x20cf73)?_0x47fcda['message']:_0xac5a8e(0xff)+'ror'}};}else{const _0x262ff2={};_0x262ff2[_0xac5a8e(0xc0)]=_0xac5a8e(0xc6),_0x262ff2[_0xac5a8e(0xc6)]=_0xac5a8e(0xab)+_0xac5a8e(0xa7)+_0xac5a8e(0xa9);const _0x26c4db={};_0x26c4db[_0xac5a8e(0xa5)]=_0xac5a8e(0xab)+_0xac5a8e(0xa7)+'ed';const _0x386e3e={};return _0x386e3e[_0xac5a8e(0xbb)]=[_0x262ff2],_0x386e3e['structured'+_0xac5a8e(0xac)]=_0x26c4db,_0x386e3e;}}logger[_0xac5a8e(0xa6)](_0xac5a8e(0xe7)+'e\x20SCA\x20anal'+_0xac5a8e(0xc8)+_0xac5a8e(0xe5)+_0x5d2b57);const _0x441e27=await this[_0xac5a8e(0xef)+_0xac5a8e(0xfd)][_0xac5a8e(0x101)+_0xac5a8e(0xbd)](_0x5d2b57,_0x4f3cda),_0x3b6f3e='SCA\x20analys'+_0xac5a8e(0xd5)+'rted.\x0aFile'+':\x20'+_0x5d2b57+(_0xac5a8e(0xa2)+_0xac5a8e(0xda))+_0x441e27[_0xac5a8e(0xf5)]+_0xac5a8e(0xc3)+_0x441e27[_0xac5a8e(0xc7)]+(_0xac5a8e(0xa2)+_0xac5a8e(0xf3))+_0x441e27[_0xac5a8e(0xea)+'pe'],_0x14bf5f={};_0x14bf5f[_0xac5a8e(0xc0)]=_0xac5a8e(0xc6),_0x14bf5f[_0xac5a8e(0xc6)]=_0x3b6f3e;const _0x476ec5={};_0x476ec5[_0xac5a8e(0xf5)]=_0x441e27[_0xac5a8e(0xf5)],_0x476ec5[_0xac5a8e(0xc7)]=_0x441e27['status'],_0x476ec5[_0xac5a8e(0xd9)]=_0x5d2b57,_0x476ec5[_0xac5a8e(0xea)+'pe']=_0x441e27[_0xac5a8e(0xea)+'pe'];const _0x29f68e={};return _0x29f68e[_0xac5a8e(0xbb)]=[_0x14bf5f],_0x29f68e[_0xac5a8e(0xfc)+_0xac5a8e(0xac)]=_0x476ec5,_0x29f68e;}catch(_0x23c918){logger['error'](_0xac5a8e(0xe7)+_0xac5a8e(0xe8)+_0xac5a8e(0xcc)+'d:',_0x23c918);const _0x1fd674={};_0x1fd674[_0xac5a8e(0xc0)]=_0xac5a8e(0xc6),_0x1fd674[_0xac5a8e(0xc6)]=_0xac5a8e(0xc1)+'is\x20request'+_0xac5a8e(0xf6)+(_0x23c918 instanceof Error?_0x23c918[_0xac5a8e(0xb2)]:_0xac5a8e(0xff)+_0xac5a8e(0xb3));const _0x36898d={};_0x36898d[_0xac5a8e(0xa5)]=_0x23c918 instanceof Error?_0x23c918[_0xac5a8e(0xb2)]:_0xac5a8e(0xff)+_0xac5a8e(0xb3);const _0x1a332a={};return _0x1a332a['content']=[_0x1fd674],_0x1a332a[_0xac5a8e(0xfc)+'Content']=_0x36898d,_0x1a332a;}}async[a9_0x9b1794(0x101)+'esSca']({filePaths:_0x45bb05,zipFileName:_0x54cf40}){const _0x444f6c=a9_0x9b1794,_0xb1189d={};_0xb1189d[_0x444f6c(0xaf)]='Multi-file'+_0x444f6c(0xb8)+_0x444f6c(0xe6)+':';const _0x37afd9=_0xb1189d;try{if(!_0x45bb05||_0x45bb05[_0x444f6c(0xf8)]===0x0){const _0x31d08b={};_0x31d08b[_0x444f6c(0xc0)]=_0x444f6c(0xc6),_0x31d08b[_0x444f6c(0xc6)]=_0x444f6c(0xcf)+_0x444f6c(0xbc)+_0x444f6c(0xa8)+_0x444f6c(0xd4)+'\x20requires\x20'+_0x444f6c(0xa4)+_0x444f6c(0xb1)+_0x444f6c(0xe2);const _0x3443d1={};_0x3443d1[_0x444f6c(0xa5)]=_0x444f6c(0xdf)+'\x20not\x20provi'+'ded';const _0x119501={};return _0x119501['content']=[_0x31d08b],_0x119501['structured'+'Content']=_0x3443d1,_0x119501;}logger[_0x444f6c(0xa6)](_0x444f6c(0xf0)+_0x444f6c(0xb8)+_0x444f6c(0xad)+'ted:\x20'+_0x45bb05[_0x444f6c(0xf8)]+(_0x444f6c(0xdb)+'s'));const _0x26da4c=await this[_0x444f6c(0xef)+_0x444f6c(0xfd)][_0x444f6c(0x101)+_0x444f6c(0xe3)](_0x45bb05,_0x54cf40),_0xd28cf3=_0x444f6c(0xc1)+_0x444f6c(0xd5)+'rted.\x0aNumb'+_0x444f6c(0x100)+'\x20paths:\x20'+_0x45bb05[_0x444f6c(0xf8)]+(_0x444f6c(0xa2)+_0x444f6c(0xda))+_0x26da4c[_0x444f6c(0xf5)]+_0x444f6c(0xc3)+_0x26da4c['status']+(_0x444f6c(0xa2)+_0x444f6c(0xf3))+_0x26da4c[_0x444f6c(0xea)+'pe'],_0x573e58={};_0x573e58[_0x444f6c(0xc0)]=_0x444f6c(0xc6),_0x573e58[_0x444f6c(0xc6)]=_0xd28cf3;const _0x4f8116={};_0x4f8116[_0x444f6c(0xf5)]=_0x26da4c[_0x444f6c(0xf5)],_0x4f8116[_0x444f6c(0xc7)]=_0x26da4c[_0x444f6c(0xc7)],_0x4f8116['filePathCo'+'unt']=_0x45bb05[_0x444f6c(0xf8)],_0x4f8116[_0x444f6c(0xea)+'pe']=_0x26da4c[_0x444f6c(0xea)+'pe'];const _0x5377ec={};return _0x5377ec[_0x444f6c(0xbb)]=[_0x573e58],_0x5377ec[_0x444f6c(0xfc)+_0x444f6c(0xac)]=_0x4f8116,_0x5377ec;}catch(_0x482d22){logger[_0x444f6c(0xa5)](_0x37afd9[_0x444f6c(0xaf)],_0x482d22);const _0x4f0246={};_0x4f0246['type']=_0x444f6c(0xc6),_0x4f0246[_0x444f6c(0xc6)]=_0x444f6c(0xc1)+_0x444f6c(0x105)+'\x20failed:\x20'+(_0x482d22 instanceof Error?_0x482d22[_0x444f6c(0xb2)]:_0x444f6c(0xff)+_0x444f6c(0xb3));const _0xeae572={};_0xeae572[_0x444f6c(0xa5)]=_0x482d22 instanceof Error?_0x482d22[_0x444f6c(0xb2)]:'Unknown\x20er'+'ror';const _0x403aa5={};return _0x403aa5['content']=[_0x4f0246],_0x403aa5[_0x444f6c(0xfc)+'Content']=_0xeae572,_0x403aa5;}}async[a9_0x9b1794(0xe4)+a9_0x9b1794(0xfa)]({folderPath:_0x4ae775,zipFileName:_0x469e6c}){const _0x5ecc0a=a9_0x9b1794,_0x4fa477={};_0x4fa477['BhNEd']=_0x5ecc0a(0xc6),_0x4fa477[_0x5ecc0a(0xf9)]=function(_0x1462d0,_0x5dc4de){return _0x1462d0>_0x5dc4de;},_0x4fa477[_0x5ecc0a(0xd3)]=function(_0x537149,_0x349d14){return _0x537149 instanceof _0x349d14;},_0x4fa477[_0x5ecc0a(0xb9)]='Unknown\x20er'+_0x5ecc0a(0xb3);const _0x46f9db=_0x4fa477;try{if(!_0x4ae775||_0x4ae775[_0x5ecc0a(0xf4)]()[_0x5ecc0a(0xf8)]===0x0){const _0x174e64={};_0x174e64[_0x5ecc0a(0xc0)]=_0x46f9db[_0x5ecc0a(0xd1)],_0x174e64['text']=_0x5ecc0a(0xce)+_0x5ecc0a(0xba)+_0x5ecc0a(0xfb);const _0x405d2b={};_0x405d2b['error']=_0x5ecc0a(0xce)+'h\x20not\x20prov'+'ided';const _0x3c7f26={};return _0x3c7f26[_0x5ecc0a(0xbb)]=[_0x174e64],_0x3c7f26[_0x5ecc0a(0xfc)+_0x5ecc0a(0xac)]=_0x405d2b,_0x3c7f26;}logger['info'](_0x5ecc0a(0xeb)+'\x20analysis\x20'+_0x5ecc0a(0xaa)+'\x20'+_0x4ae775);const _0x2e1631=await this[_0x5ecc0a(0xef)+_0x5ecc0a(0xfd)][_0x5ecc0a(0xe4)+_0x5ecc0a(0xfa)](_0x4ae775,_0x469e6c);let _0x44f67a=_0x5ecc0a(0xc1)+'is\x20has\x20sta'+'rted.\x0aFold'+_0x5ecc0a(0xec)+_0x4ae775+('\x0aAnalysis\x20'+_0x5ecc0a(0xda))+_0x2e1631[_0x5ecc0a(0xf5)]+_0x5ecc0a(0xc3)+_0x2e1631[_0x5ecc0a(0xc7)]+(_0x5ecc0a(0xa2)+_0x5ecc0a(0xf3))+_0x2e1631[_0x5ecc0a(0xea)+'pe'];_0x2e1631['skippedFol'+_0x5ecc0a(0xdd)]&&_0x46f9db[_0x5ecc0a(0xf9)](_0x2e1631['skippedFol'+_0x5ecc0a(0xdd)][_0x5ecc0a(0xf8)],0x0)&&(_0x44f67a+=_0x5ecc0a(0xf1)+_0x5ecc0a(0xa1)+_0x2e1631['skippedFol'+_0x5ecc0a(0xdd)][_0x5ecc0a(0xf8)]+_0x5ecc0a(0xb0)+_0x2e1631[_0x5ecc0a(0xd2)+'ders'][_0x5ecc0a(0xd8)](',\x20'));const _0x22986b={};_0x22986b[_0x5ecc0a(0xc0)]='text',_0x22986b[_0x5ecc0a(0xc6)]=_0x44f67a;const _0x894a03={};_0x894a03[_0x5ecc0a(0xf5)]=_0x2e1631[_0x5ecc0a(0xf5)],_0x894a03[_0x5ecc0a(0xc7)]=_0x2e1631['status'],_0x894a03[_0x5ecc0a(0xd6)]=_0x4ae775,_0x894a03[_0x5ecc0a(0xea)+'pe']=_0x2e1631[_0x5ecc0a(0xea)+'pe'],_0x894a03[_0x5ecc0a(0xd2)+_0x5ecc0a(0xdd)]=_0x2e1631[_0x5ecc0a(0xd2)+_0x5ecc0a(0xdd)];const _0x288eb2={};return _0x288eb2[_0x5ecc0a(0xbb)]=[_0x22986b],_0x288eb2[_0x5ecc0a(0xfc)+_0x5ecc0a(0xac)]=_0x894a03,_0x288eb2;}catch(_0x14e240){logger[_0x5ecc0a(0xa5)](_0x5ecc0a(0xeb)+_0x5ecc0a(0x102)+_0x5ecc0a(0xd7),_0x14e240);const _0x534c8a={};return _0x534c8a[_0x5ecc0a(0xc0)]=_0x46f9db[_0x5ecc0a(0xd1)],_0x534c8a['text']=_0x5ecc0a(0xc1)+_0x5ecc0a(0x105)+_0x5ecc0a(0xf6)+(_0x14e240 instanceof Error?_0x14e240[_0x5ecc0a(0xb2)]:'Unknown\x20er'+'ror'),{'content':[_0x534c8a],'structuredContent':{'error':_0x46f9db['UyJFt'](_0x14e240,Error)?_0x14e240[_0x5ecc0a(0xb2)]:_0x46f9db[_0x5ecc0a(0xb9)]}};}}async[a9_0x9b1794(0xbe)+a9_0x9b1794(0xd0)]({zipFilePath:_0x391404,zipFileName:_0x6a2701}){const _0x3ad180=a9_0x9b1794;try{if(!_0x391404||_0x391404[_0x3ad180(0xf4)]()['length']===0x0){const _0x5a8d4c={};_0x5a8d4c[_0x3ad180(0xc0)]=_0x3ad180(0xc6),_0x5a8d4c[_0x3ad180(0xc6)]=_0x3ad180(0xe9)+_0x3ad180(0xb4)+_0x3ad180(0xcd);const _0x13496a={};_0x13496a['error']='ZIP\x20file\x20p'+_0x3ad180(0xb4)+_0x3ad180(0xae);const _0x23f027={};return _0x23f027[_0x3ad180(0xbb)]=[_0x5a8d4c],_0x23f027[_0x3ad180(0xfc)+_0x3ad180(0xac)]=_0x13496a,_0x23f027;}logger['info'](_0x3ad180(0xfe)+_0x3ad180(0xb5)+_0x3ad180(0xf2)+'d:\x20'+_0x391404);const _0x40f0be=await this[_0x3ad180(0xef)+_0x3ad180(0xfd)]['analyzeZip'+_0x3ad180(0xd0)](_0x391404,_0x6a2701),_0x52eb67=_0x3ad180(0xc1)+_0x3ad180(0xd5)+_0x3ad180(0xde)+_0x3ad180(0xa0)+_0x391404+(_0x3ad180(0xa2)+'ID:\x20')+_0x40f0be[_0x3ad180(0xf5)]+'\x0aStatus:\x20'+_0x40f0be[_0x3ad180(0xc7)]+(_0x3ad180(0xa2)+_0x3ad180(0xf3))+_0x40f0be[_0x3ad180(0xea)+'pe'],_0x528cd2={};_0x528cd2[_0x3ad180(0xc0)]=_0x3ad180(0xc6),_0x528cd2[_0x3ad180(0xc6)]=_0x52eb67;const _0x4abf84={};_0x4abf84['analysisId']=_0x40f0be['analysisId'],_0x4abf84['status']=_0x40f0be['status'],_0x4abf84[_0x3ad180(0xa3)+'h']=_0x391404,_0x4abf84[_0x3ad180(0xea)+'pe']=_0x40f0be[_0x3ad180(0xea)+'pe'];const _0x319f4a={};return _0x319f4a[_0x3ad180(0xbb)]=[_0x528cd2],_0x319f4a['structured'+_0x3ad180(0xac)]=_0x4abf84,_0x319f4a;}catch(_0x5149d2){logger[_0x3ad180(0xa5)]('ZIP\x20file\x20S'+_0x3ad180(0xb5)+'s\x20failed:',_0x5149d2);const _0x39d1ab={};_0x39d1ab['type']=_0x3ad180(0xc6),_0x39d1ab[_0x3ad180(0xc6)]=_0x3ad180(0xc1)+'is\x20request'+_0x3ad180(0xf6)+(_0x5149d2 instanceof Error?_0x5149d2[_0x3ad180(0xb2)]:_0x3ad180(0xff)+_0x3ad180(0xb3));const _0x3c63be={};_0x3c63be[_0x3ad180(0xa5)]=_0x5149d2 instanceof Error?_0x5149d2['message']:'Unknown\x20er'+_0x3ad180(0xb3);const _0x10d89d={};return _0x10d89d[_0x3ad180(0xbb)]=[_0x39d1ab],_0x10d89d[_0x3ad180(0xfc)+_0x3ad180(0xac)]=_0x3c63be,_0x10d89d;}}}
|
|
1
|
+
const a9_0x127117=a9_0x140b;(function(_0x58e4ad,_0x40b31f){const _0x29e923=a9_0x140b,_0x1d410f=_0x58e4ad();while(!![]){try{const _0x15e605=parseInt(_0x29e923(0x1ff))/0x1+parseInt(_0x29e923(0x1f1))/0x2+parseInt(_0x29e923(0x20f))/0x3+-parseInt(_0x29e923(0x216))/0x4*(parseInt(_0x29e923(0x22f))/0x5)+-parseInt(_0x29e923(0x1f5))/0x6*(parseInt(_0x29e923(0x1f2))/0x7)+-parseInt(_0x29e923(0x21f))/0x8+parseInt(_0x29e923(0x23b))/0x9;if(_0x15e605===_0x40b31f)break;else _0x1d410f['push'](_0x1d410f['shift']());}catch(_0x19f64a){_0x1d410f['push'](_0x1d410f['shift']());}}}(a9_0x46e8,0xb8cf8));const a9_0x4f8c76=(function(){let _0x5d912e=!![];return function(_0x5389e6,_0x1ef21b){const _0x34c71e=_0x5d912e?function(){const _0x44e380=a9_0x140b;if(_0x1ef21b){const _0xfa2de2=_0x1ef21b[_0x44e380(0x20e)](_0x5389e6,arguments);return _0x1ef21b=null,_0xfa2de2;}}:function(){};return _0x5d912e=![],_0x34c71e;};}()),a9_0x27d719=a9_0x4f8c76(this,function(){const _0x478c9f=a9_0x140b;return a9_0x27d719[_0x478c9f(0x20b)]()['search'](_0x478c9f(0x249)+'+$')[_0x478c9f(0x20b)]()[_0x478c9f(0x209)+'r'](a9_0x27d719)[_0x478c9f(0x246)](_0x478c9f(0x249)+'+$');});a9_0x27d719();import{logger}from'../utils/logger.js';function a9_0x46e8(){const _0x4ad005=['):\x20','apply','3561288VOGpgE','\x20SCA\x20analy','CA\x20analysi','File\x20path\x20','rted.\x0aFold','aths\x20array','zipFilePat','276ojqEFe','error','\x20paths:\x20','th.','Type:\x20','\x0aStatus:\x20','text','esSca','Multi-file','11600344SdCtnE','YqRRQ','s\x20failed:','sted:\x20','sis\x20reques','e\x20SCA\x20anal','structured','at\x20least\x20o','File:\x20','s\x20requeste','ysis\x20reque','analyzeZip','ysis\x20faile','content','trim','\x20analysis\x20','30995YFHJDh','info','analysisId','ded','length','ror','analyzeFol','status','ZIP\x20file\x20S','skippedFol','ovided.','h\x20not\x20prov','4588920fFuNYI','ovided','rted.\x0aNumb','\x20requires\x20','derSca','o\x20analyze.','SCA\x20analys','filePathCo','Content','ID:\x20','File\x20paths','search','join','eSca','(((.+)+)+)','Single\x20fil','\x20not\x20provi','folders\x20(','ders','rvice','Unknown\x20er','ath\x20not\x20pr','ided','er:\x20','type','1792218CNXSBG','3353HlRZNt','er\x20of\x20file','Folder\x20pat','10134nVCsWL','not\x20provid','filePath','\x0a\x0aSkipped\x20','failed:','analysisSe','analyzeFil','is\x20request','JHKge','Folder\x20SCA','850704nTZYLQ','NyzHk','message','analysisTy','sis\x20failed','\x0aAnalysis\x20','d:\x20','is\x20has\x20sta','ne\x20file\x20pa','\x20failed:\x20','constructo','Sca','toString','ZIP\x20file\x20p'];a9_0x46e8=function(){return _0x4ad005;};return a9_0x46e8();}function a9_0x140b(_0x518766,_0x3caf60){_0x518766=_0x518766-0x1ed;const _0xc5e89e=a9_0x46e8();let _0x27d719=_0xc5e89e[_0x518766];return _0x27d719;}export class ScaController{[a9_0x127117(0x1fa)+a9_0x127117(0x24e)];constructor(_0xee5587){this['analysisSe'+'rvice']=_0xee5587;}async['analyzeFil'+a9_0x127117(0x248)]({filePath:_0x56437c,zipFileName:_0x20c284}){const _0x10d5e0=a9_0x127117,_0x589e2f={};_0x589e2f[_0x10d5e0(0x220)]=function(_0x486d07,_0x2735b3){return _0x486d07 instanceof _0x2735b3;};const _0x272c53=_0x589e2f;try{if(!_0x56437c||_0x56437c[_0x10d5e0(0x22d)]()[_0x10d5e0(0x233)]===0x0){const _0x1e94d0={};_0x1e94d0['type']=_0x10d5e0(0x21c),_0x1e94d0[_0x10d5e0(0x21c)]='File\x20path\x20'+_0x10d5e0(0x1f6)+'ed.';const _0x79f494={};_0x79f494[_0x10d5e0(0x217)]=_0x10d5e0(0x212)+_0x10d5e0(0x1f6)+'ed';const _0x557776={};return _0x557776[_0x10d5e0(0x22c)]=[_0x1e94d0],_0x557776[_0x10d5e0(0x225)+'Content']=_0x79f494,_0x557776;}logger[_0x10d5e0(0x230)](_0x10d5e0(0x24a)+_0x10d5e0(0x224)+_0x10d5e0(0x229)+_0x10d5e0(0x222)+_0x56437c);const _0xcc6c7=await this['analysisSe'+_0x10d5e0(0x24e)][_0x10d5e0(0x1fb)+_0x10d5e0(0x248)](_0x56437c,_0x20c284),_0x4d6613=_0x10d5e0(0x241)+_0x10d5e0(0x206)+'rted.\x0aFile'+':\x20'+_0x56437c+(_0x10d5e0(0x204)+_0x10d5e0(0x244))+_0xcc6c7[_0x10d5e0(0x231)]+'\x0aStatus:\x20'+_0xcc6c7['status']+(_0x10d5e0(0x204)+'Type:\x20')+_0xcc6c7[_0x10d5e0(0x202)+'pe'],_0x3cfe80={};_0x3cfe80[_0x10d5e0(0x1f0)]=_0x10d5e0(0x21c),_0x3cfe80[_0x10d5e0(0x21c)]=_0x4d6613;const _0xf7eba0={};_0xf7eba0['analysisId']=_0xcc6c7[_0x10d5e0(0x231)],_0xf7eba0[_0x10d5e0(0x236)]=_0xcc6c7[_0x10d5e0(0x236)],_0xf7eba0[_0x10d5e0(0x1f7)]=_0x56437c,_0xf7eba0[_0x10d5e0(0x202)+'pe']=_0xcc6c7[_0x10d5e0(0x202)+'pe'];const _0x533528={};return _0x533528['content']=[_0x3cfe80],_0x533528[_0x10d5e0(0x225)+_0x10d5e0(0x243)]=_0xf7eba0,_0x533528;}catch(_0x46aebb){logger[_0x10d5e0(0x217)](_0x10d5e0(0x24a)+_0x10d5e0(0x224)+_0x10d5e0(0x22b)+'d:',_0x46aebb);const _0xb11911={};return _0xb11911[_0x10d5e0(0x1f0)]='text',_0xb11911[_0x10d5e0(0x21c)]=_0x10d5e0(0x241)+'is\x20request'+_0x10d5e0(0x208)+(_0x46aebb instanceof Error?_0x46aebb[_0x10d5e0(0x201)]:'Unknown\x20er'+'ror'),{'content':[_0xb11911],'structuredContent':{'error':_0x272c53[_0x10d5e0(0x220)](_0x46aebb,Error)?_0x46aebb[_0x10d5e0(0x201)]:_0x10d5e0(0x24f)+_0x10d5e0(0x234)}};}}async[a9_0x127117(0x1fb)+a9_0x127117(0x21d)]({filePaths:_0x13fdc0,zipFileName:_0x46c365}){const _0x21033d=a9_0x127117,_0x4ec22a={};_0x4ec22a[_0x21033d(0x200)]='text';const _0x208200=_0x4ec22a;try{if(!_0x13fdc0||_0x13fdc0[_0x21033d(0x233)]===0x0){const _0x2b0528={};_0x2b0528[_0x21033d(0x1f0)]=_0x21033d(0x21c),_0x2b0528[_0x21033d(0x21c)]='No\x20files\x20t'+_0x21033d(0x240)+'\x20The\x20fileP'+_0x21033d(0x214)+_0x21033d(0x23e)+_0x21033d(0x226)+_0x21033d(0x207)+_0x21033d(0x219);const _0x270092={};_0x270092['error']=_0x21033d(0x245)+_0x21033d(0x24b)+_0x21033d(0x232);const _0x76df66={};return _0x76df66[_0x21033d(0x22c)]=[_0x2b0528],_0x76df66[_0x21033d(0x225)+_0x21033d(0x243)]=_0x270092,_0x76df66;}logger[_0x21033d(0x230)]('Multi-file'+_0x21033d(0x210)+_0x21033d(0x223)+'ted:\x20'+_0x13fdc0['length']+('\x20file\x20path'+'s'));const _0x201fdb=await this[_0x21033d(0x1fa)+'rvice'][_0x21033d(0x1fb)+_0x21033d(0x21d)](_0x13fdc0,_0x46c365),_0x1890d6=_0x21033d(0x241)+_0x21033d(0x206)+_0x21033d(0x23d)+_0x21033d(0x1f3)+_0x21033d(0x218)+_0x13fdc0['length']+(_0x21033d(0x204)+_0x21033d(0x244))+_0x201fdb[_0x21033d(0x231)]+_0x21033d(0x21b)+_0x201fdb[_0x21033d(0x236)]+(_0x21033d(0x204)+_0x21033d(0x21a))+_0x201fdb[_0x21033d(0x202)+'pe'],_0x1ba4cb={};_0x1ba4cb[_0x21033d(0x1f0)]=_0x208200[_0x21033d(0x200)],_0x1ba4cb[_0x21033d(0x21c)]=_0x1890d6;const _0x34173c={};_0x34173c['analysisId']=_0x201fdb[_0x21033d(0x231)],_0x34173c['status']=_0x201fdb[_0x21033d(0x236)],_0x34173c[_0x21033d(0x242)+'unt']=_0x13fdc0[_0x21033d(0x233)],_0x34173c[_0x21033d(0x202)+'pe']=_0x201fdb[_0x21033d(0x202)+'pe'];const _0x45d208={};return _0x45d208[_0x21033d(0x22c)]=[_0x1ba4cb],_0x45d208[_0x21033d(0x225)+'Content']=_0x34173c,_0x45d208;}catch(_0x52868b){logger[_0x21033d(0x217)](_0x21033d(0x21e)+_0x21033d(0x210)+_0x21033d(0x203)+':',_0x52868b);const _0x4d5187={};_0x4d5187[_0x21033d(0x1f0)]=_0x21033d(0x21c),_0x4d5187[_0x21033d(0x21c)]=_0x21033d(0x241)+_0x21033d(0x1fc)+'\x20failed:\x20'+(_0x52868b instanceof Error?_0x52868b[_0x21033d(0x201)]:_0x21033d(0x24f)+'ror');const _0x1fcab8={};_0x1fcab8['error']=_0x52868b instanceof Error?_0x52868b[_0x21033d(0x201)]:'Unknown\x20er'+_0x21033d(0x234);const _0x24bbc0={};return _0x24bbc0[_0x21033d(0x22c)]=[_0x4d5187],_0x24bbc0['structured'+_0x21033d(0x243)]=_0x1fcab8,_0x24bbc0;}}async[a9_0x127117(0x235)+a9_0x127117(0x23f)]({folderPath:_0x40cd20,zipFileName:_0x476a43}){const _0x5857ba=a9_0x127117;try{if(!_0x40cd20||_0x40cd20['trim']()[_0x5857ba(0x233)]===0x0){const _0x96be6d={};_0x96be6d[_0x5857ba(0x1f0)]=_0x5857ba(0x21c),_0x96be6d[_0x5857ba(0x21c)]=_0x5857ba(0x1f4)+_0x5857ba(0x23a)+'ided.';const _0x387fdd={};_0x387fdd[_0x5857ba(0x217)]=_0x5857ba(0x1f4)+_0x5857ba(0x23a)+_0x5857ba(0x1ee);const _0x19ee42={};return _0x19ee42[_0x5857ba(0x22c)]=[_0x96be6d],_0x19ee42[_0x5857ba(0x225)+_0x5857ba(0x243)]=_0x387fdd,_0x19ee42;}logger[_0x5857ba(0x230)]('Folder\x20SCA'+_0x5857ba(0x22e)+'requested:'+'\x20'+_0x40cd20);const _0xc441b9=await this[_0x5857ba(0x1fa)+'rvice']['analyzeFol'+'derSca'](_0x40cd20,_0x476a43);let _0x3147b7=_0x5857ba(0x241)+_0x5857ba(0x206)+_0x5857ba(0x213)+_0x5857ba(0x1ef)+_0x40cd20+('\x0aAnalysis\x20'+_0x5857ba(0x244))+_0xc441b9[_0x5857ba(0x231)]+'\x0aStatus:\x20'+_0xc441b9['status']+(_0x5857ba(0x204)+'Type:\x20')+_0xc441b9[_0x5857ba(0x202)+'pe'];_0xc441b9[_0x5857ba(0x238)+_0x5857ba(0x24d)]&&_0xc441b9[_0x5857ba(0x238)+_0x5857ba(0x24d)][_0x5857ba(0x233)]>0x0&&(_0x3147b7+=_0x5857ba(0x1f8)+_0x5857ba(0x24c)+_0xc441b9['skippedFol'+_0x5857ba(0x24d)][_0x5857ba(0x233)]+_0x5857ba(0x20d)+_0xc441b9['skippedFol'+'ders'][_0x5857ba(0x247)](',\x20'));const _0x3b4e22={};_0x3b4e22[_0x5857ba(0x1f0)]=_0x5857ba(0x21c),_0x3b4e22[_0x5857ba(0x21c)]=_0x3147b7;const _0x4b7ac8={};_0x4b7ac8[_0x5857ba(0x231)]=_0xc441b9[_0x5857ba(0x231)],_0x4b7ac8[_0x5857ba(0x236)]=_0xc441b9['status'],_0x4b7ac8['folderPath']=_0x40cd20,_0x4b7ac8[_0x5857ba(0x202)+'pe']=_0xc441b9[_0x5857ba(0x202)+'pe'],_0x4b7ac8['skippedFol'+_0x5857ba(0x24d)]=_0xc441b9[_0x5857ba(0x238)+'ders'];const _0x5e5fb9={};return _0x5e5fb9['content']=[_0x3b4e22],_0x5e5fb9['structured'+_0x5857ba(0x243)]=_0x4b7ac8,_0x5e5fb9;}catch(_0x35ecce){logger[_0x5857ba(0x217)](_0x5857ba(0x1fe)+_0x5857ba(0x22e)+_0x5857ba(0x1f9),_0x35ecce);const _0x2804b5={};_0x2804b5['type']=_0x5857ba(0x21c),_0x2804b5[_0x5857ba(0x21c)]='SCA\x20analys'+_0x5857ba(0x1fc)+_0x5857ba(0x208)+(_0x35ecce instanceof Error?_0x35ecce['message']:_0x5857ba(0x24f)+_0x5857ba(0x234));const _0x4fffaf={};_0x4fffaf[_0x5857ba(0x217)]=_0x35ecce instanceof Error?_0x35ecce[_0x5857ba(0x201)]:_0x5857ba(0x24f)+'ror';const _0x2144ca={};return _0x2144ca[_0x5857ba(0x22c)]=[_0x2804b5],_0x2144ca[_0x5857ba(0x225)+'Content']=_0x4fffaf,_0x2144ca;}}async[a9_0x127117(0x22a)+a9_0x127117(0x20a)]({zipFilePath:_0x59aad2,zipFileName:_0x4c5864}){const _0x25a9cf=a9_0x127117,_0x1f8e40={};_0x1f8e40[_0x25a9cf(0x1fd)]='text';const _0x262048=_0x1f8e40;try{if(!_0x59aad2||_0x59aad2[_0x25a9cf(0x22d)]()[_0x25a9cf(0x233)]===0x0){const _0x208417={};_0x208417[_0x25a9cf(0x1f0)]='text',_0x208417[_0x25a9cf(0x21c)]='ZIP\x20file\x20p'+'ath\x20not\x20pr'+_0x25a9cf(0x239);const _0x1ce8a3={};_0x1ce8a3[_0x25a9cf(0x217)]=_0x25a9cf(0x20c)+_0x25a9cf(0x1ed)+_0x25a9cf(0x23c);const _0x155617={};return _0x155617['content']=[_0x208417],_0x155617[_0x25a9cf(0x225)+_0x25a9cf(0x243)]=_0x1ce8a3,_0x155617;}logger['info'](_0x25a9cf(0x237)+_0x25a9cf(0x211)+_0x25a9cf(0x228)+_0x25a9cf(0x205)+_0x59aad2);const _0x2584a9=await this[_0x25a9cf(0x1fa)+_0x25a9cf(0x24e)][_0x25a9cf(0x22a)+_0x25a9cf(0x20a)](_0x59aad2,_0x4c5864),_0xf2dce3=_0x25a9cf(0x241)+_0x25a9cf(0x206)+'rted.\x0aZIP\x20'+_0x25a9cf(0x227)+_0x59aad2+(_0x25a9cf(0x204)+_0x25a9cf(0x244))+_0x2584a9[_0x25a9cf(0x231)]+_0x25a9cf(0x21b)+_0x2584a9['status']+(_0x25a9cf(0x204)+'Type:\x20')+_0x2584a9['analysisTy'+'pe'],_0x527d34={};_0x527d34[_0x25a9cf(0x1f0)]=_0x25a9cf(0x21c),_0x527d34[_0x25a9cf(0x21c)]=_0xf2dce3;const _0x5d4e3d={};_0x5d4e3d[_0x25a9cf(0x231)]=_0x2584a9['analysisId'],_0x5d4e3d[_0x25a9cf(0x236)]=_0x2584a9[_0x25a9cf(0x236)],_0x5d4e3d[_0x25a9cf(0x215)+'h']=_0x59aad2,_0x5d4e3d[_0x25a9cf(0x202)+'pe']=_0x2584a9[_0x25a9cf(0x202)+'pe'];const _0x5268c9={};return _0x5268c9['content']=[_0x527d34],_0x5268c9[_0x25a9cf(0x225)+_0x25a9cf(0x243)]=_0x5d4e3d,_0x5268c9;}catch(_0x510218){logger[_0x25a9cf(0x217)](_0x25a9cf(0x237)+_0x25a9cf(0x211)+_0x25a9cf(0x221),_0x510218);const _0x2e2e27={};_0x2e2e27[_0x25a9cf(0x1f0)]=_0x262048['JHKge'],_0x2e2e27['text']=_0x25a9cf(0x241)+_0x25a9cf(0x1fc)+_0x25a9cf(0x208)+(_0x510218 instanceof Error?_0x510218[_0x25a9cf(0x201)]:_0x25a9cf(0x24f)+_0x25a9cf(0x234));const _0x29ce0a={};_0x29ce0a[_0x25a9cf(0x217)]=_0x510218 instanceof Error?_0x510218[_0x25a9cf(0x201)]:'Unknown\x20er'+_0x25a9cf(0x234);const _0x453101={};return _0x453101['content']=[_0x2e2e27],_0x453101[_0x25a9cf(0x225)+'Content']=_0x29ce0a,_0x453101;}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10_0x2d6b3d=a10_0x1cb8;(function(_0x26c151,_0x4cb85d){const _0x5a2c1b=a10_0x1cb8,_0x5f9d1d=_0x26c151();while(!![]){try{const _0x4d77f8=-parseInt(_0x5a2c1b(0xa1))/0x1+-parseInt(_0x5a2c1b(0x7d))/0x2*(-parseInt(_0x5a2c1b(0x8b))/0x3)+parseInt(_0x5a2c1b(0x77))/0x4+-parseInt(_0x5a2c1b(0x9b))/0x5+parseInt(_0x5a2c1b(0x85))/0x6*(parseInt(_0x5a2c1b(0x9a))/0x7)+-parseInt(_0x5a2c1b(0x7e))/0x8+parseInt(_0x5a2c1b(0x7c))/0x9;if(_0x4d77f8===_0x4cb85d)break;else _0x5f9d1d['push'](_0x5f9d1d['shift']());}catch(_0xfcc472){_0x5f9d1d['push'](_0x5f9d1d['shift']());}}}(a10_0x1526,0x462c6));function a10_0x1cb8(_0x83d6bd,_0x4458a0){_0x83d6bd=_0x83d6bd-0x6c;const _0x4dfd31=a10_0x1526();let _0xe86eca=_0x4dfd31[_0x83d6bd];return _0xe86eca;}const a10_0x26251f=(function(){let _0x5382e6=!![];return function(_0x377dfa,_0x2851a1){const _0x2e42cc=_0x5382e6?function(){const _0x5f38fe=a10_0x1cb8;if(_0x2851a1){const _0x517618=_0x2851a1[_0x5f38fe(0x80)](_0x377dfa,arguments);return _0x2851a1=null,_0x517618;}}:function(){};return _0x5382e6=![],_0x2e42cc;};}()),a10_0xe86eca=a10_0x26251f(this,function(){const _0x27edc9=a10_0x1cb8;return a10_0xe86eca['toString']()[_0x27edc9(0x91)](_0x27edc9(0x8a)+'+$')[_0x27edc9(0x6d)]()[_0x27edc9(0x8c)+'r'](a10_0xe86eca)[_0x27edc9(0x91)](_0x27edc9(0x8a)+'+$');});a10_0xe86eca();function a10_0x1526(){const _0x1f163d=['search','Secure\x20cod','\x20of\x20','error','iff)\x0a```di','info','secureCode','Code\x20Gener','generate\x20s','7RRcMiw','2732310XinvdL','\x0a```\x0a\x0a##\x20S','diff','ation\x20Resu','analysisSe','structured','370684PXHNCt','ror','ff\x0a','isError','toString','length','wing\x20','```java\x0a','text','Brief','omAnalysis','rjByC','cure\x20Code\x0a','Failed\x20to\x20','459476tFRFSz','\x0a#\x20Secure\x20','rvice','message','content','3870891ayXUNV','408822hvKtjF','2152296ECTHRY','ecure\x20Code','apply','Content','generateSe','ecure\x20code','XqWWj','3118938nckBVo','cureCodeFr','on\x20request','type','Unknown\x20er','(((.+)+)+)','6XiLDqt','constructo','\x0a\x0a##\x20Code\x20','\x20character','ed:\x20','\x0a```\x0a\x20\x20\x20\x20\x20'];a10_0x1526=function(){return _0x1f163d;};return a10_0x1526();}import{logger}from'../utils/logger.js';export class SecurityController{[a10_0x2d6b3d(0x9f)+a10_0x2d6b3d(0x79)];constructor(_0x17b31d){const _0x25575d=a10_0x2d6b3d;this[_0x25575d(0x9f)+'rvice']=_0x17b31d;}async[a10_0x2d6b3d(0x82)+'cureCode']({analysisId:_0x359a17,fileContent:_0x17462a}){const _0x3b4ba3=a10_0x2d6b3d,_0x4f7838={'XqWWj':function(_0x22b716,_0x24d2ce,_0x458dc3){return _0x22b716(_0x24d2ce,_0x458dc3);},'rjByC':_0x3b4ba3(0x71)};try{logger[_0x3b4ba3(0x96)](_0x3b4ba3(0x92)+'e\x20generati'+_0x3b4ba3(0x87)+_0x3b4ba3(0x8f)+_0x359a17);const _0xc914f4=await this[_0x3b4ba3(0x9f)+_0x3b4ba3(0x79)]['generateSe'+_0x3b4ba3(0x86)+_0x3b4ba3(0x73)](_0x359a17,_0x17462a),_0x311328=0x7a120,_0x25fc32=(_0xad72df,_0x1f0c63)=>{const _0x568a0b=_0x3b4ba3;if(_0xad72df[_0x568a0b(0x6e)]<=_0x1f0c63)return _0xad72df;return _0xad72df['substring'](0x0,_0x1f0c63)+('\x0a\x0a...\x20(Sho'+_0x568a0b(0x6f)+_0x1f0c63+_0x568a0b(0x93)+_0xad72df[_0x568a0b(0x6e)]+(_0x568a0b(0x8e)+'s)'));},_0x5cf354=(_0x3b4ba3(0x78)+_0x3b4ba3(0x98)+_0x3b4ba3(0x9e)+'lts\x0a\x0a##\x20Se'+_0x3b4ba3(0x75)+_0x3b4ba3(0x70)+_0x25fc32(_0xc914f4[_0x3b4ba3(0x97)],_0x311328)+(_0x3b4ba3(0x9c)+_0x3b4ba3(0x7f)+'\x20Briefing\x0a')+_0x25fc32(_0xc914f4[_0x3b4ba3(0x97)+'Brief'],_0x311328)+(_0x3b4ba3(0x8d)+'Changes\x20(D'+_0x3b4ba3(0x95)+_0x3b4ba3(0xa3))+_0x25fc32(_0xc914f4[_0x3b4ba3(0x9d)],_0x311328)+(_0x3b4ba3(0x90)+'\x20'))['trim'](),_0x1b524b={'analysisId':_0x359a17,'secureCode':_0x4f7838[_0x3b4ba3(0x84)](_0x25fc32,_0xc914f4[_0x3b4ba3(0x97)],_0x311328),'secureCodeBrief':_0x25fc32(_0xc914f4['secureCode'+_0x3b4ba3(0x72)],_0x311328),'diff':_0x25fc32(_0xc914f4[_0x3b4ba3(0x9d)],_0x311328)},_0x584290={};_0x584290[_0x3b4ba3(0x88)]=_0x3b4ba3(0x71),_0x584290['text']=_0x5cf354;const _0x53b498={};return _0x53b498[_0x3b4ba3(0x7b)]=[_0x584290],_0x53b498[_0x3b4ba3(0xa0)+_0x3b4ba3(0x81)]=_0x1b524b,_0x53b498;}catch(_0x3873b5){logger[_0x3b4ba3(0x94)](_0x3b4ba3(0x76)+_0x3b4ba3(0x99)+_0x3b4ba3(0x83)+':',_0x3873b5);const _0x5596ba=_0x3873b5 instanceof Error?_0x3873b5[_0x3b4ba3(0x7a)]:_0x3b4ba3(0x89)+_0x3b4ba3(0xa2),_0x4fbea2={};_0x4fbea2[_0x3b4ba3(0x88)]=_0x4f7838[_0x3b4ba3(0x74)],_0x4fbea2[_0x3b4ba3(0x71)]=_0x3b4ba3(0x76)+'generate\x20s'+_0x3b4ba3(0x83)+':\x20'+_0x5596ba;const _0x585a27={};_0x585a27[_0x3b4ba3(0x94)]=_0x5596ba;const _0x42c48a={};return _0x42c48a['content']=[_0x4fbea2],_0x42c48a[_0x3b4ba3(0xa0)+_0x3b4ba3(0x81)]=_0x585a27,_0x42c48a[_0x3b4ba3(0x6c)]=!![],_0x42c48a;}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a11_0x490c(_0x2f4f1c,_0x42e2b8){_0x2f4f1c=_0x2f4f1c-0x1cc;var _0x3b093f=a11_0x5707();var _0x37362e=_0x3b093f[_0x2f4f1c];return _0x37362e;}(function(_0xa0e972,_0x269519){var _0x4963cf=a11_0x490c,_0x436983=_0xa0e972();while(!![]){try{var _0x3d8c86=parseInt(_0x4963cf(0x1d4))/0x1*(parseInt(_0x4963cf(0x1d2))/0x2)+parseInt(_0x4963cf(0x1db))/0x3+-parseInt(_0x4963cf(0x1da))/0x4*(parseInt(_0x4963cf(0x1d1))/0x5)+-parseInt(_0x4963cf(0x1d6))/0x6*(-parseInt(_0x4963cf(0x1d7))/0x7)+parseInt(_0x4963cf(0x1cc))/0x8+parseInt(_0x4963cf(0x1d8))/0x9+parseInt(_0x4963cf(0x1d3))/0xa*(-parseInt(_0x4963cf(0x1ce))/0xb);if(_0x3d8c86===_0x269519)break;else _0x436983['push'](_0x436983['shift']());}catch(_0x3b6b8b){_0x436983['push'](_0x436983['shift']());}}}(a11_0x5707,0xa8eaf));var a11_0x3105bd=(function(){var _0x470b7c=!![];return function(_0x466bcb,_0x48c035){var _0x5a3808=_0x470b7c?function(){var _0x30a160=a11_0x490c;if(_0x48c035){var _0x4246c8=_0x48c035[_0x30a160(0x1cd)](_0x466bcb,arguments);return _0x48c035=null,_0x4246c8;}}:function(){};return _0x470b7c=![],_0x5a3808;};}()),a11_0x37362e=a11_0x3105bd(this,function(){var _0x57c113=a11_0x490c,_0x7381b3={};_0x7381b3[_0x57c113(0x1d9)]=_0x57c113(0x1cf)+'+$';var _0x3a89f9=_0x7381b3;return a11_0x37362e['toString']()[_0x57c113(0x1d0)](_0x57c113(0x1cf)+'+$')[_0x57c113(0x1d5)]()['constructo'+'r'](a11_0x37362e)[_0x57c113(0x1d0)](_0x3a89f9[_0x57c113(0x1d9)]);});function a11_0x5707(){var _0x9212e1=['apply','2629gOUkTa','(((.+)+)+)','search','2102090ZYzxeK','2XuatMd','128220oWrSep','986311KrUUHW','toString','6zYeTXm','8099819bgXKyZ','1864683UYzOTN','jDFdc','4jlroUO','2411052xliyme','8179712TrLXHh'];a11_0x5707=function(){return _0x9212e1;};return a11_0x5707();}a11_0x37362e();export class SystemController{}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x3140c3=a17_0x59b9;(function(_0x1046df,_0x640ca8){const _0x290cee=a17_0x59b9,_0x595e1f=_0x1046df();while(!![]){try{const _0x211912=-parseInt(_0x290cee(0xc9))/0x1+-parseInt(_0x290cee(0xcd))/0x2+-parseInt(_0x290cee(0xe3))/0x3+parseInt(_0x290cee(0x96))/0x4*(-parseInt(_0x290cee(0x8d))/0x5)+parseInt(_0x290cee(0x98))/0x6+parseInt(_0x290cee(0xd2))/0x7+parseInt(_0x290cee(0x89))/0x8;if(_0x211912===_0x640ca8)break;else _0x595e1f['push'](_0x595e1f['shift']());}catch(_0x59f3dc){_0x595e1f['push'](_0x595e1f['shift']());}}}(a17_0x4493,0x2d6a6));const a17_0x434eec=(function(){let _0x4cb94b=!![];return function(_0x19021c,_0x56b7da){const _0x5196a4=_0x4cb94b?function(){const _0x3bffcc=a17_0x59b9;if(_0x56b7da){const _0x3efd37=_0x56b7da[_0x3bffcc(0xd1)](_0x19021c,arguments);return _0x56b7da=null,_0x3efd37;}}:function(){};return _0x4cb94b=![],_0x5196a4;};}()),a17_0x199158=a17_0x434eec(this,function(){const _0x12c05f=a17_0x59b9;return a17_0x199158[_0x12c05f(0xaa)]()['search'](_0x12c05f(0xcc)+'+$')[_0x12c05f(0xaa)]()['constructo'+'r'](a17_0x199158)[_0x12c05f(0xb6)]('(((.+)+)+)'+'+$');});a17_0x199158();import{z}from'zod';const a17_0x18e9f0={};a17_0x18e9f0[a17_0x3140c3(0xc0)]='파일명에\x20확장자가\x20'+a17_0x3140c3(0xe5);export const AnalyzeFileSastSchema={'fileContent':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe2)](0x1,a17_0x3140c3(0x90)+a17_0x3140c3(0x8b))['describe'](a17_0x3140c3(0xdc)+a17_0x3140c3(0x8c)+'e\x20code\x20fil'+'e\x20to\x20analy'+'ze'),'fileName':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe2)](0x1)[a17_0x3140c3(0xac)](_0x191de3=>_0x191de3[a17_0x3140c3(0xb0)]('.'),a17_0x18e9f0)[a17_0x3140c3(0xe1)](a17_0x3140c3(0xcf)+a17_0x3140c3(0xc2)+a17_0x3140c3(0x87)+a17_0x3140c3(0x8f)+a17_0x3140c3(0xdf)+')')};export const AnalyzeFilesSastSchema={'filePaths':z[a17_0x3140c3(0x9c)](z['string']())[a17_0x3140c3(0xe1)]('List\x20of\x20so'+a17_0x3140c3(0xad)+a17_0x3140c3(0x9b)+a17_0x3140c3(0x8e)+a17_0x3140c3(0xd7)+'\x27/src/User'+'Service.ja'+a17_0x3140c3(0xb3)+a17_0x3140c3(0x8a)+'va\x27])'),'zipFileName':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xa2)]()[a17_0x3140c3(0xe1)]('Name\x20of\x20th'+a17_0x3140c3(0xa1)+'\x20to\x20be\x20cre'+'ated\x20(opti'+'onal)')};export const AnalyzeFolderSastSchema={'folderPath':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xa0)+a17_0x3140c3(0xba)+'ontaining\x20'+a17_0x3140c3(0xaf)+a17_0x3140c3(0x9f)+'ze'),'zipFileName':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xa2)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xc4)+a17_0x3140c3(0xa1)+a17_0x3140c3(0x91)+a17_0x3140c3(0xd3)+'onal,\x20uses'+a17_0x3140c3(0xcb)+a17_0x3140c3(0xb2)+'specified)')};export const AnalyzeZipSastSchema={'zipFilePath':z[a17_0x3140c3(0xc5)]()['describe'](a17_0x3140c3(0xa0)+a17_0x3140c3(0xa1)+a17_0x3140c3(0x9d)+a17_0x3140c3(0xde)+a17_0x3140c3(0xc6)+a17_0x3140c3(0xdb)),'zipFileName':z['string']()['optional']()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xbb)+a17_0x3140c3(0xbe)+a17_0x3140c3(0xce)+a17_0x3140c3(0xc7)+a17_0x3140c3(0xa6)+a17_0x3140c3(0xca)+'\x20if\x20not\x20sp'+a17_0x3140c3(0xc1))};function a17_0x4493(){const _0xa2978e=['es\x20origina','specified)','\x20analysis','t\x20to\x20gener','toString','pendency\x20f','refine','urce\x20code\x20','ile\x20conten','source\x20cod','includes','iles\x20to\x20an','me\x20if\x20not\x20','va\x27,\x20\x27/src','lt:\x2030000)','ate\x20secure','search','00)','ing\x20(defau','onal)','e\x20folder\x20c','ZIP\x20file\x20n','Analysis\x20I','List\x20of\x20de','ame\x20to\x20be\x20','e.g.,\x20\x27pac','message','ecified)','with\x20exten','ck\x20interva','Name\x20of\x20th','string','ode\x20to\x20ana','tional,\x20us','number','31221kzILvq','l\x20filename','\x20folder\x20na','(((.+)+)+)','116662vJQaNU','stored\x20(op','File\x20name\x20','dependenci','apply','2263100avPWRk','ated\x20(opti','Maximum\x20ti','me\x20to\x20wait','\x20\x27requirem','e\x20(e.g.,\x20[','onal,\x20uses','D\x20from\x20the','cy\x20file\x20to','lyze','Content\x20of','taining\x20de','g\x20source\x20c','vice.java\x27','Status\x20che','describe','min','813810KYHopn','es\x20to\x20anal','필요합니다','econds\x20bef','sion\x20(e.g.','\x20security\x20','1092848GqmDZd','/DbUtil.ja','습니다','\x20the\x20sourc','35QSDBoo','\x20to\x20analyz',',\x20\x27UserSer','파일\x20내용이\x20비어있','\x20to\x20be\x20cre','yze','\x20in\x20millis','\x20version','folder\x20con','119172PqbbAx','g\x20project\x20','1772934AtAghx','alyze\x20(e.g','ents.txt\x27]','file\x20paths','array','\x20containin','ore\x20return','e\x20to\x20analy','Path\x20to\x20th','e\x20ZIP\x20file','optional','l\x20in\x20milli','Original\x20f','analysis'];a17_0x4493=function(){return _0xa2978e;};return a17_0x4493();}export const AnalyzeFileScaSchema={'filePath':z['string']()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xa0)+'e\x20dependen'+a17_0x3140c3(0xda)+'\x20analyze\x20('+a17_0x3140c3(0xbf)+'kage.json\x27'+')'),'zipFileName':z['string']()['optional']()[a17_0x3140c3(0xe1)]('Name\x20of\x20th'+'e\x20ZIP\x20file'+a17_0x3140c3(0x91)+'ated\x20(opti'+a17_0x3140c3(0xb9))};export const AnalyzeFilesScaSchema={'filePaths':z[a17_0x3140c3(0x9c)](z[a17_0x3140c3(0xc5)]())[a17_0x3140c3(0xe1)](a17_0x3140c3(0xbd)+a17_0x3140c3(0xab)+a17_0x3140c3(0xb1)+a17_0x3140c3(0x99)+'.,\x20[\x27packa'+'ge.json\x27,\x20'+'\x27pom.xml\x27,'+a17_0x3140c3(0xd6)+a17_0x3140c3(0x9a)+')'),'zipFileName':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xa2)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xc4)+'e\x20ZIP\x20file'+'\x20to\x20be\x20cre'+'ated\x20(opti'+a17_0x3140c3(0xb9))};export const AnalyzeFolderScaSchema={'folderPath':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe1)]('Path\x20to\x20th'+'e\x20project\x20'+a17_0x3140c3(0x95)+a17_0x3140c3(0xdd)+a17_0x3140c3(0xab)+a17_0x3140c3(0xb1)+'alyze'),'zipFileName':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xa2)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xc4)+'e\x20ZIP\x20file'+a17_0x3140c3(0x91)+'ated\x20(opti'+a17_0x3140c3(0xd8)+a17_0x3140c3(0xcb)+a17_0x3140c3(0xb2)+a17_0x3140c3(0xa7))};export const AnalyzeZipScaSchema={'zipFilePath':z['string']()['describe'](a17_0x3140c3(0xa0)+a17_0x3140c3(0xa1)+a17_0x3140c3(0x9d)+a17_0x3140c3(0x97)+a17_0x3140c3(0xd0)+a17_0x3140c3(0xe4)+a17_0x3140c3(0x92)),'zipFileName':z['string']()[a17_0x3140c3(0xa2)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xbb)+a17_0x3140c3(0xbe)+a17_0x3140c3(0xce)+a17_0x3140c3(0xc7)+a17_0x3140c3(0xa6)+a17_0x3140c3(0xca)+'\x20if\x20not\x20sp'+a17_0x3140c3(0xc1))};export const TrackAnalysisProgressSchema={'analysisId':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xbc)+'D'),'intervalMs':z[a17_0x3140c3(0xc8)]()[a17_0x3140c3(0xa2)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xe0)+a17_0x3140c3(0xc3)+a17_0x3140c3(0xa3)+'seconds\x20(d'+'efault:\x2030'+a17_0x3140c3(0xb7)),'maxWaitMs':z['number']()['optional']()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xd4)+a17_0x3140c3(0xd5)+a17_0x3140c3(0x93)+a17_0x3140c3(0xe6)+a17_0x3140c3(0x9e)+a17_0x3140c3(0xb8)+a17_0x3140c3(0xb4))};export const GetAnalysisStatusSchema={'analysisId':z[a17_0x3140c3(0xc5)]()['describe'](a17_0x3140c3(0xbc)+'D')};function a17_0x59b9(_0xdd0e47,_0x5eee82){_0xdd0e47=_0xdd0e47-0x87;const _0x4272dd=a17_0x4493();let _0x199158=_0x4272dd[_0xdd0e47];return _0x199158;}export const GetAnalysisResultsSchema={'analysisId':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xbc)+'D')};export const GetScaAnalysisResultsSchema={'analysisId':z['string']()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xbc)+'D\x20from\x20SCA'+a17_0x3140c3(0xa8))};export const GenerateSecureCodeSchema={'analysisId':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xbc)+a17_0x3140c3(0xd9)+a17_0x3140c3(0x88)+a17_0x3140c3(0xa5)),'fileContent':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xa4)+a17_0x3140c3(0xae)+a17_0x3140c3(0xa9)+a17_0x3140c3(0xb5)+a17_0x3140c3(0x94))};
|
package/dist/src/server.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env tsx
|
|
2
|
-
const a18_0x50d469=a18_0x18b2;(function(_0x16807c,_0x50d061){const _0x226130=a18_0x18b2,_0x19eed5=_0x16807c();while(!![]){try{const _0x37850d=-parseInt(_0x226130(0x194))/0x1*(-parseInt(_0x226130(0x1a5))/0x2)+-parseInt(_0x226130(0x1db))/0x3+-parseInt(_0x226130(0x1ff))/0x4+parseInt(_0x226130(0x198))/0x5*(parseInt(_0x226130(0x2a4))/0x6)+parseInt(_0x226130(0x29e))/0x7+parseInt(_0x226130(0x1d4))/0x8*(-parseInt(_0x226130(0x1c7))/0x9)+-parseInt(_0x226130(0x2be))/0xa;if(_0x37850d===_0x50d061)break;else _0x19eed5['push'](_0x19eed5['shift']());}catch(_0x5927f9){_0x19eed5['push'](_0x19eed5['shift']());}}}(a18_0x8971,0x3f238));const a18_0x3dbb4b=(function(){let _0x1f6b6c=!![];return function(_0x4ef2a5,_0x302348){const _0x138b27=_0x1f6b6c?function(){const _0x6dcc21=a18_0x18b2;if(_0x302348){const _0x5279bb=_0x302348[_0x6dcc21(0x19d)](_0x4ef2a5,arguments);return _0x302348=null,_0x5279bb;}}:function(){};return _0x1f6b6c=![],_0x138b27;};}()),a18_0x387981=a18_0x3dbb4b(this,function(){const _0x2eac97=a18_0x18b2;return a18_0x387981[_0x2eac97(0x19f)]()[_0x2eac97(0x291)](_0x2eac97(0x21b)+'+$')[_0x2eac97(0x19f)]()[_0x2eac97(0x2ac)+'r'](a18_0x387981)[_0x2eac97(0x291)](_0x2eac97(0x21b)+'+$');});a18_0x387981();import{McpServer}from'@modelcontextprotocol/sdk/server/mcp.js';import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';import{AnalysisService}from'./services/analysis.service.js';import{logger}from'./utils/logger.js';import a18_0x3921e2 from'path';import a18_0x481f53 from'fs';import{fileURLToPath}from'url';import{SPARROW_RULES}from'./config/constants.js';import{AnalyzeFileSastSchema,AnalyzeFilesSastSchema,AnalyzeFolderSastSchema,AnalyzeZipSastSchema,AnalyzeFileScaSchema,AnalyzeFilesScaSchema,AnalyzeFolderScaSchema,AnalyzeZipScaSchema,TrackAnalysisProgressSchema,GetAnalysisStatusSchema,GetAnalysisResultsSchema,GetScaAnalysisResultsSchema,GenerateSecureCodeSchema}from'./schemas/tool.schemas.js';import{SastController}from'./controllers/sast.controller.js';import{ScaController}from'./controllers/sca.controller.js';import{AnalysisController}from'./controllers/analysis.controller.js';import{SecurityController}from'./controllers/security.controller.js';import{SystemController}from'./controllers/system.controller.js';const a18_0x30af8c={};a18_0x30af8c[a18_0x50d469(0x21e)]=a18_0x50d469(0x2aa)+'e-generato'+'r',a18_0x30af8c[a18_0x50d469(0x24b)]=a18_0x50d469(0x1c9);const server=new McpServer(a18_0x30af8c),analysisService=new AnalysisService(),sastController=new SastController(analysisService),scaController=new ScaController(analysisService),analysisController=new AnalysisController(analysisService),securityController=new SecurityController(analysisService),systemController=new SystemController(),a18_0x1f5c88={};a18_0x1f5c88[a18_0x50d469(0x234)]=a18_0x50d469(0x1b4)+'e\x20SAST\x20Ana'+a18_0x50d469(0x269),a18_0x1f5c88[a18_0x50d469(0x1d0)+'n']=a18_0x50d469(0x172)+a18_0x50d469(0x20d)+a18_0x50d469(0x25e)+a18_0x50d469(0x207)+a18_0x50d469(0x24f)+a18_0x50d469(0x18c)+a18_0x50d469(0x1f2)+a18_0x50d469(0x1aa)+'f\x20a\x20single'+a18_0x50d469(0x2c1)+a18_0x50d469(0x1f5)+a18_0x50d469(0x199)+a18_0x50d469(0x251)+'g\x20the\x20logi'+a18_0x50d469(0x24a)+'rity\x20of\x20a\x20'+a18_0x50d469(0x277)+a18_0x50d469(0x22b)+a18_0x50d469(0x1d1)+a18_0x50d469(0x25d)+a18_0x50d469(0x2b6)+a18_0x50d469(0x29a)+a18_0x50d469(0x2a5)+a18_0x50d469(0x2a2)+'fies\x20vulne'+'rabilities'+a18_0x50d469(0x242)+a18_0x50d469(0x1b7)+a18_0x50d469(0x267)+'path\x20trave'+a18_0x50d469(0x283)+a18_0x50d469(0x1ae)+a18_0x50d469(0x255)+a18_0x50d469(0x245)+a18_0x50d469(0x26f)+a18_0x50d469(0x2b4),a18_0x1f5c88[a18_0x50d469(0x2ba)+'a']=AnalyzeFileSastSchema,server[a18_0x50d469(0x18a)+'ol'](a18_0x50d469(0x2b1)+'le_sast',a18_0x1f5c88,async _0x2c2dcc=>sastController[a18_0x50d469(0x1c8)+a18_0x50d469(0x21d)](_0x2c2dcc));const a18_0x387976={};a18_0x387976[a18_0x50d469(0x234)]=a18_0x50d469(0x236)+a18_0x50d469(0x221)+a18_0x50d469(0x1c2),a18_0x387976[a18_0x50d469(0x1d0)+'n']='Initiates\x20'+'a\x20SAST\x20ana'+a18_0x50d469(0x19c)+a18_0x50d469(0x268)+a18_0x50d469(0x1bd)+a18_0x50d469(0x272)+a18_0x50d469(0x29b)+a18_0x50d469(0x1a8)+a18_0x50d469(0x22a)+'\x20Useful\x20fo'+a18_0x50d469(0x251)+a18_0x50d469(0x17c)+'d\x20set\x20of\x20f'+a18_0x50d469(0x276)+a18_0x50d469(0x28d)+a18_0x50d469(0x1d9)+'ule)\x20to\x20fi'+'nd\x20cross-f'+a18_0x50d469(0x1cd)+a18_0x50d469(0x25c)+a18_0x50d469(0x226)+'n\x20\x27analysi'+a18_0x50d469(0x16d),a18_0x387976[a18_0x50d469(0x2ba)+'a']=AnalyzeFilesSastSchema,server['registerTo'+'ol'](a18_0x50d469(0x2b1)+'les_sast',a18_0x387976,async _0x3c2b6b=>sastController[a18_0x50d469(0x1c8)+'esSast'](_0x3c2b6b));const a18_0x9b035a={};a18_0x9b035a[a18_0x50d469(0x234)]='Folder\x20SAS'+a18_0x50d469(0x285),a18_0x9b035a[a18_0x50d469(0x1d0)+'n']=a18_0x50d469(0x172)+a18_0x50d469(0x26d)+a18_0x50d469(0x1c3)+'\x20analysis\x20'+a18_0x50d469(0x290)+a18_0x50d469(0x1bc)+'ry.\x20It\x20aut'+'omatically'+'\x20packages\x20'+a18_0x50d469(0x1ea)+'\x20files\x20(ex'+'cluding\x20co'+a18_0x50d469(0x1f4)+a18_0x50d469(0x2bf)+a18_0x50d469(0x286)+a18_0x50d469(0x27e)+a18_0x50d469(0x188)+'s\x20them\x20for'+a18_0x50d469(0x257)+a18_0x50d469(0x171)+a18_0x50d469(0x294)+'\x20Returns\x20a'+a18_0x50d469(0x22e)+a18_0x50d469(0x16d),a18_0x9b035a[a18_0x50d469(0x2ba)+'a']=AnalyzeFolderSastSchema,server[a18_0x50d469(0x18a)+'ol'](a18_0x50d469(0x27d)+'lder_sast',a18_0x9b035a,async _0xa99623=>sastController[a18_0x50d469(0x203)+a18_0x50d469(0x275)](_0xa99623));const a18_0x374fa6={};a18_0x374fa6[a18_0x50d469(0x234)]=a18_0x50d469(0x287)+a18_0x50d469(0x1a4)+'is',a18_0x374fa6['descriptio'+'n']=a18_0x50d469(0x172)+'a\x20SAST\x20ana'+a18_0x50d469(0x225)+a18_0x50d469(0x2bc)+a18_0x50d469(0x210)+'ing\x20source'+a18_0x50d469(0x1f9)+'\x20this\x20when'+a18_0x50d469(0x1fb)+a18_0x50d469(0x1e1)+'ady\x20packag'+'ed\x20as\x20a\x20ZI'+a18_0x50d469(0x2bd)+a18_0x50d469(0x28a)+a18_0x50d469(0x224)+a18_0x50d469(0x195)+a18_0x50d469(0x1ef)+a18_0x50d469(0x281)+a18_0x50d469(0x182)+a18_0x50d469(0x1d8)+a18_0x50d469(0x228),a18_0x374fa6['inputSchem'+'a']=AnalyzeZipSastSchema,server[a18_0x50d469(0x18a)+'ol'](a18_0x50d469(0x23b)+a18_0x50d469(0x18b),a18_0x374fa6,async _0x38b3cf=>sastController[a18_0x50d469(0x25a)+a18_0x50d469(0x2a7)](_0x38b3cf));const a18_0x17ef7c={};a18_0x17ef7c[a18_0x50d469(0x234)]=a18_0x50d469(0x1b4)+a18_0x50d469(0x1ba)+a18_0x50d469(0x1c2),a18_0x17ef7c['descriptio'+'n']=a18_0x50d469(0x172)+'an\x20SCA\x20(So'+a18_0x50d469(0x26c)+'position\x20A'+a18_0x50d469(0x1d6)+a18_0x50d469(0x1e9)+a18_0x50d469(0x271)+'y\x20file\x20(e.'+a18_0x50d469(0x248)+'e.json,\x20po'+a18_0x50d469(0x28f)+'uirements.'+a18_0x50d469(0x1e0)+a18_0x50d469(0x23a)+a18_0x50d469(0x216)+a18_0x50d469(0x22d)+a18_0x50d469(0x16e)+a18_0x50d469(0x288)+a18_0x50d469(0x1d7)+a18_0x50d469(0x16f)+a18_0x50d469(0x204)+a18_0x50d469(0x174),a18_0x17ef7c['inputSchem'+'a']=AnalyzeFileScaSchema,server[a18_0x50d469(0x18a)+'ol'](a18_0x50d469(0x2b1)+a18_0x50d469(0x19e),a18_0x17ef7c,async _0x4f0cef=>scaController['analyzeFil'+a18_0x50d469(0x21c)](_0x4f0cef));const a18_0x42f3e2={};a18_0x42f3e2[a18_0x50d469(0x234)]=a18_0x50d469(0x236)+a18_0x50d469(0x223)+a18_0x50d469(0x1b5),a18_0x42f3e2['descriptio'+'n']=a18_0x50d469(0x172)+a18_0x50d469(0x20e)+a18_0x50d469(0x19c)+'ultiple\x20de'+'pendency\x20f'+'iles\x20at\x20on'+a18_0x50d469(0x278)+a18_0x50d469(0x21a)+'cts\x20with\x20m'+'ultiple\x20mo'+a18_0x50d469(0x1b3)+'ackage\x20man'+a18_0x50d469(0x215)+a18_0x50d469(0x1af)+a18_0x50d469(0x262)+'.',a18_0x42f3e2[a18_0x50d469(0x2ba)+'a']=AnalyzeFilesScaSchema,server[a18_0x50d469(0x18a)+'ol'](a18_0x50d469(0x2b1)+a18_0x50d469(0x235),a18_0x42f3e2,async _0x5b7c1d=>scaController['analyzeFil'+a18_0x50d469(0x1d3)](_0x5b7c1d));const a18_0x15d6a4={};a18_0x15d6a4[a18_0x50d469(0x234)]=a18_0x50d469(0x1f1)+a18_0x50d469(0x1ca),a18_0x15d6a4[a18_0x50d469(0x1d0)+'n']=a18_0x50d469(0x172)+a18_0x50d469(0x1fe)+'\x20scan\x20on\x20a'+a18_0x50d469(0x1e2)+'older.\x20It\x20'+a18_0x50d469(0x246)+a18_0x50d469(0x187)+a18_0x50d469(0x180)+a18_0x50d469(0x1b1)+a18_0x50d469(0x2a9)+a18_0x50d469(0x23f)+a18_0x50d469(0x1c1)+'lnerabilit'+a18_0x50d469(0x299)+a18_0x50d469(0x24e)+a18_0x50d469(0x220)+a18_0x50d469(0x1ce)+a18_0x50d469(0x1f6)+a18_0x50d469(0x1e5)+'Returns\x20an'+a18_0x50d469(0x1d8)+a18_0x50d469(0x228),a18_0x15d6a4['inputSchem'+'a']=AnalyzeFolderScaSchema,server['registerTo'+'ol'](a18_0x50d469(0x27d)+a18_0x50d469(0x26e),a18_0x15d6a4,async _0x180db2=>scaController[a18_0x50d469(0x203)+a18_0x50d469(0x2ad)](_0x180db2));const a18_0x35547a={};a18_0x35547a[a18_0x50d469(0x234)]='ZIP\x20File\x20S'+a18_0x50d469(0x296)+'s',a18_0x35547a[a18_0x50d469(0x1d0)+'n']=a18_0x50d469(0x172)+'an\x20SCA\x20sca'+a18_0x50d469(0x250)+a18_0x50d469(0x233)+a18_0x50d469(0x212)+a18_0x50d469(0x1a9)+a18_0x50d469(0x192)+a18_0x50d469(0x1a7)+a18_0x50d469(0x263)+a18_0x50d469(0x1fc)+a18_0x50d469(0x27c)+a18_0x50d469(0x201)+'\x20open-sour'+a18_0x50d469(0x17a)+a18_0x50d469(0x182)+a18_0x50d469(0x1d8)+a18_0x50d469(0x228),a18_0x35547a['inputSchem'+'a']=AnalyzeZipScaSchema,server['registerTo'+'ol'](a18_0x50d469(0x23b)+a18_0x50d469(0x238),a18_0x35547a,async _0x48e666=>scaController[a18_0x50d469(0x25a)+'Sca'](_0x48e666));const a18_0x45b2f2={};a18_0x45b2f2[a18_0x50d469(0x234)]=a18_0x50d469(0x175)+a18_0x50d469(0x274)+a18_0x50d469(0x230),a18_0x45b2f2['descriptio'+'n']=a18_0x50d469(0x1f7)+a18_0x50d469(0x289)+a18_0x50d469(0x1b6)+a18_0x50d469(0x259)+'analysis\x20I'+a18_0x50d469(0x211)+'te\x20via\x20Pro'+a18_0x50d469(0x1a3)+a18_0x50d469(0x1e4)+a18_0x50d469(0x25f)+a18_0x50d469(0x2b9)+a18_0x50d469(0x260)+a18_0x50d469(0x26b)+a18_0x50d469(0x1f8)+'YSIS,\x20POST'+a18_0x50d469(0x292)+a18_0x50d469(0x27f)+a18_0x50d469(0x218)+'s\x20only\x20pro'+a18_0x50d469(0x178)+'ng\x20the\x20ANA'+a18_0x50d469(0x27b)+'e.',a18_0x45b2f2[a18_0x50d469(0x2ba)+'a']=TrackAnalysisProgressSchema,server[a18_0x50d469(0x18a)+'ol']('track_anal'+a18_0x50d469(0x1eb)+'ess',a18_0x45b2f2,async(_0x559695,_0x51490f)=>analysisController[a18_0x50d469(0x1b9)+a18_0x50d469(0x270)+'s'](_0x559695,_0x51490f));const a18_0x1d4194={};a18_0x1d4194[a18_0x50d469(0x234)]=a18_0x50d469(0x247)+'is\x20Status',a18_0x1d4194[a18_0x50d469(0x1d0)+'n']='Checks\x20the'+a18_0x50d469(0x2af)+a18_0x50d469(0x20c)+a18_0x50d469(0x193)+'\x20an\x20ongoin'+a18_0x50d469(0x1ad)+a18_0x50d469(0x1a1)+a18_0x50d469(0x258)+a18_0x50d469(0x1d5)+'to\x20see\x20if\x20'+a18_0x50d469(0x176)+'s\x20is\x20\x27COMP'+a18_0x50d469(0x29d)+a18_0x50d469(0x1bb)+a18_0x50d469(0x256)+'s\x20percenta'+a18_0x50d469(0x266)+a18_0x50d469(0x197)+a18_0x50d469(0x1cf)+a18_0x50d469(0x179)+a18_0x50d469(0x23c)+a18_0x50d469(0x2a8)+a18_0x50d469(0x2b8),a18_0x1d4194[a18_0x50d469(0x2ba)+'a']=GetAnalysisStatusSchema,server[a18_0x50d469(0x18a)+'ol']('get_analys'+'is_status',a18_0x1d4194,async _0x24ea2a=>analysisController[a18_0x50d469(0x280)+'sStatus'](_0x24ea2a));const a18_0x1633cd={};a18_0x1633cd[a18_0x50d469(0x234)]=a18_0x50d469(0x247)+a18_0x50d469(0x24c),a18_0x1633cd[a18_0x50d469(0x1d0)+'n']='Fetches\x20de'+a18_0x50d469(0x1fd)+a18_0x50d469(0x19a)+a18_0x50d469(0x18d)+a18_0x50d469(0x1f3)+'atus\x20is\x20\x27C'+'OMPLETE\x27.\x20'+a18_0x50d469(0x1b0)+'\x20categoriz'+a18_0x50d469(0x191)+a18_0x50d469(0x196)+a18_0x50d469(0x2c3)+a18_0x50d469(0x184)+a18_0x50d469(0x25b)+'\x20file\x20path'+a18_0x50d469(0x206)+a18_0x50d469(0x264)+'iance\x20info'+')\x20and\x20an\x20A'+a18_0x50d469(0x22c)+a18_0x50d469(0x1e6)+a18_0x50d469(0x2b0)+a18_0x50d469(0x227),a18_0x1633cd['inputSchem'+'a']=GetAnalysisResultsSchema,server[a18_0x50d469(0x18a)+'ol']('get_analys'+a18_0x50d469(0x1be),a18_0x1633cd,async _0x26baf9=>analysisController['getAnalysi'+a18_0x50d469(0x20f)](_0x26baf9));const a18_0x5d283f={};function a18_0x18b2(_0x34a53e,_0x41a127){_0x34a53e=_0x34a53e-0x16d;const _0x58d72c=a18_0x8971();let _0x387981=_0x58d72c[_0x34a53e];return _0x387981;}a18_0x5d283f[a18_0x50d469(0x234)]=a18_0x50d469(0x28c)+a18_0x50d469(0x23e)+a18_0x50d469(0x23d),a18_0x5d283f[a18_0x50d469(0x1d0)+'n']=a18_0x50d469(0x20b)+a18_0x50d469(0x239)+a18_0x50d469(0x222)+a18_0x50d469(0x249)+a18_0x50d469(0x1f0)+'s)\x20results'+'\x20once\x20the\x20'+a18_0x50d469(0x29f)+a18_0x50d469(0x24d)+a18_0x50d469(0x18f)+a18_0x50d469(0x1ab)+'ensive\x20rep'+'ort\x20with\x20c'+a18_0x50d469(0x2a6)+'ables\x20(ver'+a18_0x50d469(0x282)+a18_0x50d469(0x20a)+a18_0x50d469(0x173)+a18_0x50d469(0x1dc)+',\x20CVSS),\x20a'+a18_0x50d469(0x2c2)+a18_0x50d469(0x1de)+'nce\x20for\x20li'+a18_0x50d469(0x2b3)+a18_0x50d469(0x1da),a18_0x5d283f[a18_0x50d469(0x2ba)+'a']=GetScaAnalysisResultsSchema,server['registerTo'+'ol'](a18_0x50d469(0x19b)+'alysis_res'+a18_0x50d469(0x23d),a18_0x5d283f,async _0x312f99=>analysisController[a18_0x50d469(0x22f)+a18_0x50d469(0x185)+'s'](_0x312f99));const a18_0x1c9300={};a18_0x1c9300['title']='Generate\x20S'+a18_0x50d469(0x2a3),a18_0x1c9300[a18_0x50d469(0x1d0)+'n']='Automatica'+'lly\x20genera'+a18_0x50d469(0x1bf)+a18_0x50d469(0x1e8)+a18_0x50d469(0x177)+a18_0x50d469(0x293)+a18_0x50d469(0x254)+a18_0x50d469(0x29c)+a18_0x50d469(0x241)+'vious\x20SAST'+'\x20analysis\x20'+a18_0x50d469(0x190)+'t\x20provides'+a18_0x50d469(0x17b)+'cted\x20code,'+a18_0x50d469(0x244)+a18_0x50d469(0x2c0)+'\x20of\x20the\x20fi'+a18_0x50d469(0x298)+a18_0x50d469(0x1c5)+'g\x20the\x20chan'+a18_0x50d469(0x1ed)+'his\x20after\x20'+'finding\x20vu'+a18_0x50d469(0x1dd)+a18_0x50d469(0x243)+'T.',a18_0x1c9300[a18_0x50d469(0x2ba)+'a']=GenerateSecureCodeSchema,server[a18_0x50d469(0x18a)+'ol'](a18_0x50d469(0x200)+a18_0x50d469(0x2ab),a18_0x1c9300,async _0x4e8ced=>securityController[a18_0x50d469(0x1ee)+a18_0x50d469(0x17e)](_0x4e8ced));const a18_0x3fa2c9={};a18_0x3fa2c9[a18_0x50d469(0x1d0)+'n']=a18_0x50d469(0x1cb)+a18_0x50d469(0x1df)+a18_0x50d469(0x202)+a18_0x50d469(0x284)+'delines\x20fo'+a18_0x50d469(0x1c4)+'s.',a18_0x3fa2c9[a18_0x50d469(0x2a1)]='text/markd'+a18_0x50d469(0x229),server[a18_0x50d469(0x1c6)+'source'](a18_0x50d469(0x297)+a18_0x50d469(0x232),a18_0x50d469(0x17d)+a18_0x50d469(0x2a0),a18_0x3fa2c9,async _0xf39b67=>{const _0x12830c=a18_0x50d469,_0x55316c={};_0x55316c['uri']=_0xf39b67[_0x12830c(0x214)],_0x55316c[_0x12830c(0x18e)]=SPARROW_RULES,_0x55316c[_0x12830c(0x2a1)]=_0x12830c(0x209)+'own';const _0x4b4993={};return _0x4b4993[_0x12830c(0x253)]=[_0x55316c],_0x4b4993;});const a18_0x28d83e={};function a18_0x8971(){const _0xe4d8d1=['ZIP\x20File\x20S','es\x20and\x20lic','ly\x20check\x20a','s\x20the\x20code','vice','Get\x20SCA\x20An',',\x20a\x20packag','type','m.xml,\x20req','on\x20an\x20enti','search','_PROCESS,\x20','of\x20the\x20ori','rity\x20scan.','Checker\x20se','CA\x20Analysi','sparrow-ru','x,\x20and\x20a\x20d','ies\x20and\x20li','troller\x20or','ified\x20by\x20t','ce\x20code\x20ba','LETE\x27\x20and\x20','3325238kzcGEg','status\x20is\x20','rules','mimeType','\x20It\x20identi','ecure\x20Code','24MIrAqC','\x20Service).','omponent\x20t','Sast','\x20is\x20prefer','claration\x20','secure-cod','ecure_code','constructo','derSca','ocations\x20-','\x20current\x20p','\x20of\x20the\x20fi','analyze_fi','logs','brary\x20upda','tracking.','existsSync','like\x20a\x20Con','ompt','red.','tages\x20are\x20','inputSchem','e\x20context.','\x20ZIP\x20archi','P.\x20It\x20scan','3295740ZYLlot','\x20artifacts','xplanation','\x20source\x20co','nd\x20remedia','lities\x20(se','Log\x20file\x20l','sId\x27.','ce\x20librari','s.\x20Returns','\x20combined:','oject\x20secu','Initiates\x20','erability\x20','sisId\x27.','Track\x20Anal','an\x20analysi','d\x20version\x20','vided\x20duri','k_analysis','ce\x20risks.\x20','\x20the\x20corre','g\x20a\x20relate','sparrow://','cureCode','error.log','ported\x20dep','messages','Returns\x20an','Load\x20the\x20S','verity,\x20de','ysisResult','ill\x20contin','or\x20all\x20sup','and\x20upload','dirname','registerTo','p_sast','ing)\x20analy','\x20results\x20o','text','.\x20Provides','results.\x20I','ed\x20list\x20of','es.\x20Useful','d\x20stage\x20of','1960qmcDzT','e\x20archive\x20','\x20vulnerabi','ctive\x20wait','228220rVpEMd','se\x20this\x20fo','T\x20analysis','get_sca_an','lysis\x20on\x20m','apply','le_sca','toString','recursive','.\x20Use\x20this','ng/creatin','gress\x20Noti','AST\x20Analys','502svPxwH','role','\x20for\x20analy','heir\x20absol','dependenci','\x20content\x20o','\x20a\x20compreh','connect','g\x20analysis','n\x20the\x20code','urns\x20an\x20\x27a','Provides\x20a','endency\x20de','\x20code\x20gene','dules\x20or\x20p','Single\x20Fil','sis','nalysis\x20pr','injection,','ctory:','trackAnaly','e\x20SCA\x20Anal','to\x20get\x20bas','re\x20directo','urce\x20code\x20','is_results','tes\x20a\x20secu','Sparrow\x20MC','dentify\x20vu','ysis','nsive\x20SAST','r\x20AI\x20agent','iff\x20showin','registerRe','36PbgsuT','analyzeFil','1.0.0','\x20Analysis','Official\x20S','resolve','ile\x20vulner','ks\x20across\x20','ing,\x20\x27trac','descriptio','t\x20or\x20a\x20sin','join','esSca','275664WpZyhX','l\x20polling\x20','nalysis)\x20o','ense\x20issue','\x20\x27analysis','e\x20or\x20a\x20mod','tes.','1006626ZPEjiz','lists\x20(CVE','lnerabilit','tion\x20guida','parrow\x20MCP','txt).\x20It\x20i','ct\x20is\x20alre','\x20project\x20f','ccessfully','fication.\x20','\x20project.\x20','d\x20briefing','es\x20into\x20th','re,\x20patche','n\x20a\x20single','the\x20source','ysis_progr','\x20checker\x20i','ges.\x20Use\x20t','generateSe','for\x20securi','on\x20Analysi','Folder\x20SCA','sis\x20on\x20the','nce\x20the\x20st','mmon\x20build','de\x20file.\x20U','the\x20entire','Periodical','CESS,\x20ANAL','\x20code.\x20Use','ialized\x20su','\x20the\x20proje','ackaged\x20or','tailed\x20SAS','a\x20full\x20SCA','352024FqtVwr','generate_s','ojects\x20for','\x20usage\x20rul','analyzeFol','\x20an\x20\x27analy','content',',\x20line\x20num','cation\x20Sec','ration\x20ser','text/markd','nse),\x20vuln','Fetches\x20de','rogress\x20an','a\x20SAST\x20(St','an\x20SCA\x20ana','sResults','ve\x20contain','D\x20and\x20upda','ontaining\x20','ialization','href','agers.\x20Ret','vulnerable','then','Progress\x20i','info','\x20for\x20proje','(((.+)+)+)','eSca','eSast','name','warn','liance\x20ris','\x20SAST\x20Anal','\x20(Software','\x20SCA\x20Analy','\x20within\x20th','lysis\x20on\x20a','\x20Returns\x20a','ndings.','Id\x27.','own','ute\x20paths.','ode\x20snippe','I-generate','\x20open-sour','n\x20\x27analysi','getScaAnal','ess','CheckerSer','les','\x20archive\x20c','title','les_sca','Multi-File','nfo):','p_sca','tailed\x20SCA','dentifies\x20','analyze_zi','_progress\x27','ults','alysis\x20Res','files\x20to\x20i','ver\x20starte','sed\x20on\x20pre','\x20like\x20SQL\x20','ies\x20in\x20SAS','\x20a\x20brief\x20e','an\x20\x27analys','searches\x20f','Get\x20Analys','g.,\x20packag','\x20Compositi','c\x20and\x20secu','version','is\x20Results','\x27COMPLETE\x27','cense\x20comp','urity\x20Test','n\x20on\x20a\x20ZIP','r\x20analyzin','ile\x20checki','contents','ginal\x20sour','.\x20Returns\x20','ic\x20progres','\x20a\x20full-pr','\x20for\x20manua','ogress\x20by\x20','analyzeZip','scription,','abilities.','gle\x20file\x20(','atic\x20Appli','Analysis\x20s','INIT,\x20READ','initialize','nalysisId\x27','zing\x20pre-p','ber,\x20compl','P\x20Rules','ges.\x20For\x20a','\x20XSS,\x20and\x20','ultiple\x20so','lysis','ue\x20without','Y,\x20PRE_PRO','ftware\x20Com','a\x20comprehe','lder_sca','isId\x27\x20for\x20','sisProgres','\x20dependenc','files\x20spec','Warning\x20wh','ysis\x20Progr','derSast','iles\x20(e.g.','specific\x20c','ce.\x20Useful','g\x20log\x20dire','rvice\x20init','LYSIS\x20stag','\x20legacy\x20pr','analyze_fo','_modules)\x20','COMPLETE.\x20','getAnalysi','ty\x20flaws.\x20','sion,\x20lice','rsal\x20withi','es\x20and\x20gui','T\x20Analysis','\x20like\x20node'];a18_0x8971=function(){return _0xe4d8d1;};return a18_0x8971();}a18_0x28d83e[a18_0x50d469(0x234)]=a18_0x50d469(0x1c0)+a18_0x50d469(0x265),a18_0x28d83e['descriptio'+'n']=a18_0x50d469(0x183)+a18_0x50d469(0x1df)+a18_0x50d469(0x202)+a18_0x50d469(0x1e7)+a18_0x50d469(0x2bb),server['registerPr'+a18_0x50d469(0x2b7)](a18_0x50d469(0x297)+a18_0x50d469(0x232),a18_0x28d83e,async()=>{const _0xaa4279=a18_0x50d469,_0x436baf={};_0x436baf[_0xaa4279(0x28e)]=_0xaa4279(0x18e),_0x436baf[_0xaa4279(0x18e)]=SPARROW_RULES;const _0x282ec4={};_0x282ec4[_0xaa4279(0x1a6)]='user',_0x282ec4[_0xaa4279(0x205)]=_0x436baf;const _0x5957b4={};return _0x5957b4[_0xaa4279(0x181)]=[_0x282ec4],_0x5957b4;});const transport=new StdioServerTransport();logger[a18_0x50d469(0x219)]('MCP\x20secure'+a18_0x50d469(0x1b2)+a18_0x50d469(0x208)+a18_0x50d469(0x240)+'d');try{const serverFileDir=a18_0x3921e2[a18_0x50d469(0x189)](fileURLToPath(import.meta.url)),projectRoot=a18_0x3921e2[a18_0x50d469(0x1cc)](serverFileDir,'..'),logsDir=a18_0x3921e2[a18_0x50d469(0x1cc)](projectRoot,a18_0x50d469(0x2b2));if(!a18_0x481f53[a18_0x50d469(0x2b5)](logsDir)){const a18_0x4cf74b={};a18_0x4cf74b[a18_0x50d469(0x1a0)]=!![],a18_0x481f53['mkdirSync'](logsDir,a18_0x4cf74b);}const combinedPath=a18_0x3921e2[a18_0x50d469(0x1d2)](logsDir,'combined.l'+'og'),errorPath=a18_0x3921e2[a18_0x50d469(0x1d2)](logsDir,a18_0x50d469(0x17f));logger[a18_0x50d469(0x219)](a18_0x50d469(0x2c4)+a18_0x50d469(0x2ae)+a18_0x50d469(0x170)+'\x20'+combinedPath+',\x20error:\x20'+errorPath);}catch(a18_0x5c75d2){logger[a18_0x50d469(0x21f)](a18_0x50d469(0x273)+a18_0x50d469(0x252)+a18_0x50d469(0x1a2)+a18_0x50d469(0x279)+a18_0x50d469(0x1b8),a18_0x5c75d2);}analysisService[a18_0x50d469(0x261)+a18_0x50d469(0x231)+a18_0x50d469(0x28b)]()[a18_0x50d469(0x217)](()=>{const _0x11c9c5=a18_0x50d469;logger[_0x11c9c5(0x219)]('Checker\x20se'+_0x11c9c5(0x27a)+_0x11c9c5(0x1fa)+_0x11c9c5(0x1e3));})['catch'](_0x5b59b2=>{const _0x23b528=a18_0x50d469;logger['warn'](_0x23b528(0x295)+_0x23b528(0x27a)+_0x23b528(0x213)+'\x20failed\x20(w'+_0x23b528(0x186)+_0x23b528(0x26a)+_0x23b528(0x1ec)+_0x23b528(0x237),_0x5b59b2);}),await server[a18_0x50d469(0x1ac)](transport);
|
|
2
|
+
const a18_0x3b145f=a18_0x76c0;(function(_0x408ce8,_0x5682ca){const _0x1c8b00=a18_0x76c0,_0x250e36=_0x408ce8();while(!![]){try{const _0x5de87c=parseInt(_0x1c8b00(0xdd))/0x1*(-parseInt(_0x1c8b00(0x1d5))/0x2)+parseInt(_0x1c8b00(0xea))/0x3*(-parseInt(_0x1c8b00(0x114))/0x4)+-parseInt(_0x1c8b00(0x15c))/0x5*(parseInt(_0x1c8b00(0xce))/0x6)+-parseInt(_0x1c8b00(0xfa))/0x7+parseInt(_0x1c8b00(0xfd))/0x8*(-parseInt(_0x1c8b00(0x19f))/0x9)+-parseInt(_0x1c8b00(0x191))/0xa+parseInt(_0x1c8b00(0x13c))/0xb*(parseInt(_0x1c8b00(0x176))/0xc);if(_0x5de87c===_0x5682ca)break;else _0x250e36['push'](_0x250e36['shift']());}catch(_0x5e1578){_0x250e36['push'](_0x250e36['shift']());}}}(a18_0x6ed2,0x79a9c));const a18_0x2a33db=(function(){let _0x525351=!![];return function(_0x337399,_0x315983){const _0x16c3d9=_0x525351?function(){if(_0x315983){const _0x42903e=_0x315983['apply'](_0x337399,arguments);return _0x315983=null,_0x42903e;}}:function(){};return _0x525351=![],_0x16c3d9;};}()),a18_0x1ec73b=a18_0x2a33db(this,function(){const _0x205b95=a18_0x76c0;return a18_0x1ec73b[_0x205b95(0xda)]()[_0x205b95(0x182)](_0x205b95(0xcf)+'+$')[_0x205b95(0xda)]()[_0x205b95(0x1cd)+'r'](a18_0x1ec73b)[_0x205b95(0x182)](_0x205b95(0xcf)+'+$');});a18_0x1ec73b();import{McpServer}from'@modelcontextprotocol/sdk/server/mcp.js';import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';function a18_0x76c0(_0x10d52b,_0x3db06d){_0x10d52b=_0x10d52b-0xb9;const _0x34baad=a18_0x6ed2();let _0x1ec73b=_0x34baad[_0x10d52b];return _0x1ec73b;}import{AnalysisService}from'./services/analysis.service.js';import{logger}from'./utils/logger.js';import a18_0x515ad7 from'path';import a18_0xbbee1e from'fs';import{fileURLToPath}from'url';import{SPARROW_RULES}from'./config/constants.js';import{AnalyzeFileSastSchema,AnalyzeFilesSastSchema,AnalyzeFolderSastSchema,AnalyzeZipSastSchema,AnalyzeFileScaSchema,AnalyzeFilesScaSchema,AnalyzeFolderScaSchema,AnalyzeZipScaSchema,TrackAnalysisProgressSchema,GetAnalysisStatusSchema,GetAnalysisResultsSchema,GetScaAnalysisResultsSchema,GenerateSecureCodeSchema}from'./schemas/tool.schemas.js';import{SastController}from'./controllers/sast.controller.js';import{ScaController}from'./controllers/sca.controller.js';import{AnalysisController}from'./controllers/analysis.controller.js';import{SecurityController}from'./controllers/security.controller.js';import{SystemController}from'./controllers/system.controller.js';const a18_0x113084={};a18_0x113084['name']=a18_0x3b145f(0xf7)+a18_0x3b145f(0x171)+'r',a18_0x113084[a18_0x3b145f(0x129)]='1.0.0';const server=new McpServer(a18_0x113084),analysisService=new AnalysisService(),sastController=new SastController(analysisService),scaController=new ScaController(analysisService),analysisController=new AnalysisController(analysisService),securityController=new SecurityController(analysisService),systemController=new SystemController(),a18_0x1183cb={};a18_0x1183cb['title']=a18_0x3b145f(0x116)+a18_0x3b145f(0x15e)+a18_0x3b145f(0x181),a18_0x1183cb[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x10d)+a18_0x3b145f(0xc7)+a18_0x3b145f(0x1fb)+a18_0x3b145f(0x1de)+a18_0x3b145f(0x1f2)+a18_0x3b145f(0x103)+a18_0x3b145f(0x126)+a18_0x3b145f(0x204)+a18_0x3b145f(0xee)+a18_0x3b145f(0x1d2)+a18_0x3b145f(0xcd)+a18_0x3b145f(0x111)+'r\x20analyzin'+'g\x20the\x20logi'+'c\x20and\x20secu'+a18_0x3b145f(0x168)+a18_0x3b145f(0x161)+a18_0x3b145f(0x20c)+a18_0x3b145f(0x208)+a18_0x3b145f(0x198)+a18_0x3b145f(0xd4)+a18_0x3b145f(0x158)+a18_0x3b145f(0x14e)+a18_0x3b145f(0xe8)+a18_0x3b145f(0x190)+a18_0x3b145f(0xdb)+'\x20like\x20SQL\x20'+'injection,'+a18_0x3b145f(0x1aa)+a18_0x3b145f(0x1cb)+a18_0x3b145f(0x19a)+a18_0x3b145f(0x1f3)+a18_0x3b145f(0x17e)+a18_0x3b145f(0x10a)+a18_0x3b145f(0x209)+a18_0x3b145f(0xec),a18_0x1183cb[a18_0x3b145f(0x1a5)+'a']=AnalyzeFileSastSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0x162)+'le_sast',a18_0x1183cb,async _0x10b0c4=>sastController[a18_0x3b145f(0x152)+a18_0x3b145f(0x1ad)](_0x10b0c4));const a18_0x49a999={};a18_0x49a999[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0x1ab)+a18_0x3b145f(0x14c)+a18_0x3b145f(0x153),a18_0x49a999[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x10d)+a18_0x3b145f(0xde)+a18_0x3b145f(0x1fc)+a18_0x3b145f(0x106)+'urce\x20code\x20'+'files\x20spec'+a18_0x3b145f(0x144)+a18_0x3b145f(0x1c2)+'ute\x20paths.'+a18_0x3b145f(0x13d)+a18_0x3b145f(0x1d6)+a18_0x3b145f(0x133)+a18_0x3b145f(0x187)+'iles\x20(e.g.'+a18_0x3b145f(0xef)+a18_0x3b145f(0x21a)+a18_0x3b145f(0x120)+a18_0x3b145f(0x1df)+'ile\x20vulner'+'abilities.'+a18_0x3b145f(0x124)+a18_0x3b145f(0x17d)+'sId\x27.',a18_0x49a999[a18_0x3b145f(0x1a5)+'a']=AnalyzeFilesSastSchema,server[a18_0x3b145f(0x14f)+'ol']('analyze_fi'+a18_0x3b145f(0x179),a18_0x49a999,async _0x371018=>sastController[a18_0x3b145f(0x152)+a18_0x3b145f(0xbd)](_0x371018));const a18_0x463076={};a18_0x463076['title']=a18_0x3b145f(0x1e0)+a18_0x3b145f(0x13a),a18_0x463076[a18_0x3b145f(0x1f0)+'n']='Initiates\x20'+a18_0x3b145f(0x165)+a18_0x3b145f(0x119)+'\x20analysis\x20'+'on\x20an\x20enti'+a18_0x3b145f(0xd8)+a18_0x3b145f(0x1d1)+'omatically'+'\x20packages\x20'+a18_0x3b145f(0x192)+a18_0x3b145f(0x1a4)+a18_0x3b145f(0x1c9)+a18_0x3b145f(0x16b)+a18_0x3b145f(0x110)+'\x20like\x20node'+'_modules)\x20'+'and\x20upload'+'s\x20them\x20for'+a18_0x3b145f(0xd9)+a18_0x3b145f(0x1ba)+'rity\x20scan.'+a18_0x3b145f(0x124)+'n\x20\x27analysi'+a18_0x3b145f(0x132),a18_0x463076[a18_0x3b145f(0x1a5)+'a']=AnalyzeFolderSastSchema,server[a18_0x3b145f(0x14f)+'ol']('analyze_fo'+a18_0x3b145f(0x1f7),a18_0x463076,async _0xcac116=>sastController[a18_0x3b145f(0xc0)+a18_0x3b145f(0xbf)](_0xcac116));const a18_0x5aaf62={};a18_0x5aaf62[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0xe6)+a18_0x3b145f(0x1d9)+'is',a18_0x5aaf62[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x10d)+a18_0x3b145f(0xde)+'lysis\x20on\x20a'+a18_0x3b145f(0x1d7)+a18_0x3b145f(0x16a)+a18_0x3b145f(0x169)+a18_0x3b145f(0xc5)+'\x20this\x20when'+a18_0x3b145f(0x20f)+a18_0x3b145f(0xf3)+a18_0x3b145f(0x172)+'ed\x20as\x20a\x20ZI'+a18_0x3b145f(0x1f5)+a18_0x3b145f(0x159)+'\x20within\x20th'+'e\x20archive\x20'+a18_0x3b145f(0x1c3)+a18_0x3b145f(0x1c7)+a18_0x3b145f(0xd2)+'\x20\x27analysis'+a18_0x3b145f(0x219),a18_0x5aaf62[a18_0x3b145f(0x1a5)+'a']=AnalyzeZipSastSchema,server['registerTo'+'ol'](a18_0x3b145f(0xf9)+'p_sast',a18_0x5aaf62,async _0x17e75e=>sastController['analyzeZip'+a18_0x3b145f(0x1b0)](_0x17e75e));const a18_0x389e78={};a18_0x389e78[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0x116)+a18_0x3b145f(0x139)+a18_0x3b145f(0x153),a18_0x389e78[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x10d)+a18_0x3b145f(0x17b)+a18_0x3b145f(0x189)+a18_0x3b145f(0x19d)+a18_0x3b145f(0x20e)+a18_0x3b145f(0x100)+a18_0x3b145f(0xe2)+a18_0x3b145f(0x1fd)+a18_0x3b145f(0x1fa)+a18_0x3b145f(0x10f)+a18_0x3b145f(0x154)+a18_0x3b145f(0xdf)+'txt).\x20It\x20i'+'dentifies\x20'+'vulnerable'+'\x20open-sour'+a18_0x3b145f(0x201)+a18_0x3b145f(0x16e)+a18_0x3b145f(0x118)+'s.\x20Returns'+a18_0x3b145f(0x194)+a18_0x3b145f(0xe9),a18_0x389e78[a18_0x3b145f(0x1a5)+'a']=AnalyzeFileScaSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0x162)+a18_0x3b145f(0x117),a18_0x389e78,async _0x4af134=>scaController['analyzeFil'+'eSca'](_0x4af134));const a18_0x1b123c={};a18_0x1b123c[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0x1ab)+a18_0x3b145f(0x13b)+a18_0x3b145f(0x1d8),a18_0x1b123c[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x10d)+a18_0x3b145f(0xbc)+a18_0x3b145f(0x1fc)+a18_0x3b145f(0x12a)+'pendency\x20f'+a18_0x3b145f(0x1c1)+a18_0x3b145f(0x18e)+a18_0x3b145f(0x15f)+a18_0x3b145f(0x16d)+a18_0x3b145f(0x14d)+a18_0x3b145f(0x17c)+a18_0x3b145f(0x18b)+a18_0x3b145f(0x1a9)+a18_0x3b145f(0x196)+a18_0x3b145f(0x1e5)+'.',a18_0x1b123c[a18_0x3b145f(0x1a5)+'a']=AnalyzeFilesScaSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0x162)+a18_0x3b145f(0xf1),a18_0x1b123c,async _0x50a111=>scaController[a18_0x3b145f(0x152)+a18_0x3b145f(0xc9)](_0x50a111));const a18_0x9dc23e={};a18_0x9dc23e[a18_0x3b145f(0x1f4)]='Folder\x20SCA'+a18_0x3b145f(0x1a8),a18_0x9dc23e[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x10d)+a18_0x3b145f(0xf2)+a18_0x3b145f(0x1f6)+a18_0x3b145f(0x1b1)+'older.\x20It\x20'+a18_0x3b145f(0x101)+a18_0x3b145f(0x1b3)+a18_0x3b145f(0x180)+a18_0x3b145f(0x141)+a18_0x3b145f(0x155)+a18_0x3b145f(0x1b9)+a18_0x3b145f(0x214)+a18_0x3b145f(0x1a1)+a18_0x3b145f(0x149)+a18_0x3b145f(0x193)+a18_0x3b145f(0xcc)+a18_0x3b145f(0x145)+a18_0x3b145f(0xc8)+a18_0x3b145f(0x218)+a18_0x3b145f(0xd2)+a18_0x3b145f(0x15d)+a18_0x3b145f(0x219),a18_0x9dc23e[a18_0x3b145f(0x1a5)+'a']=AnalyzeFolderScaSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0x1be)+'lder_sca',a18_0x9dc23e,async _0x55cfd7=>scaController[a18_0x3b145f(0xc0)+'derSca'](_0x55cfd7));const a18_0x491b81={};a18_0x491b81[a18_0x3b145f(0x1f4)]='ZIP\x20File\x20S'+a18_0x3b145f(0x1ec)+'s',a18_0x491b81[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x10d)+a18_0x3b145f(0x1f9)+'n\x20on\x20a\x20ZIP'+a18_0x3b145f(0x11c)+'ontaining\x20'+a18_0x3b145f(0x147)+a18_0x3b145f(0x1e4)+a18_0x3b145f(0xed)+a18_0x3b145f(0xe1)+a18_0x3b145f(0x156)+a18_0x3b145f(0x1c5)+a18_0x3b145f(0x1ce)+a18_0x3b145f(0x216)+'ce\x20risks.\x20'+a18_0x3b145f(0xd2)+a18_0x3b145f(0x15d)+a18_0x3b145f(0x219),a18_0x491b81[a18_0x3b145f(0x1a5)+'a']=AnalyzeZipScaSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0xf9)+'p_sca',a18_0x491b81,async _0x3643d2=>scaController[a18_0x3b145f(0xc6)+a18_0x3b145f(0x148)](_0x3643d2));const a18_0x3bf4ab={};a18_0x3bf4ab[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0x200)+a18_0x3b145f(0x18f)+'ess',a18_0x3bf4ab[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x21f)+'ly\x20check\x20a'+a18_0x3b145f(0x13f)+a18_0x3b145f(0x1bf)+a18_0x3b145f(0x1e6)+a18_0x3b145f(0x1bd)+'te\x20via\x20Pro'+a18_0x3b145f(0x20a)+'fication.\x20'+a18_0x3b145f(0xba)+a18_0x3b145f(0xe0)+a18_0x3b145f(0x1f8)+a18_0x3b145f(0x1ff)+a18_0x3b145f(0xe5)+'YSIS,\x20POST'+a18_0x3b145f(0x174)+a18_0x3b145f(0x1e8)+a18_0x3b145f(0x213)+a18_0x3b145f(0x1d0)+'vided\x20duri'+a18_0x3b145f(0x1ea)+a18_0x3b145f(0xe7)+'e.',a18_0x3bf4ab[a18_0x3b145f(0x1a5)+'a']=TrackAnalysisProgressSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0x104)+a18_0x3b145f(0x135)+'ess',a18_0x3bf4ab,async(_0x562a92,_0x347e25)=>analysisController['trackAnaly'+a18_0x3b145f(0x123)+'s'](_0x562a92,_0x347e25));const a18_0x4ceee9={};function a18_0x6ed2(){const _0x5c96e7=['cts\x20with\x20m','es\x20and\x20lic','ensive\x20rep','ccessfully','e-generato','ady\x20packag','\x20results\x20o','_PROCESS,\x20','Generate\x20S','50460kMMWBQ','dirname','sResults','les_sast','Log\x20file\x20l','an\x20SCA\x20(So','dules\x20or\x20p','n\x20\x27analysi','.\x20Returns\x20',',\x20CVSS),\x20a','ported\x20dep','lysis','search','tailed\x20SCA','type','results.\x20I',')\x20and\x20an\x20A','d\x20set\x20of\x20f','MCP\x20secure','ftware\x20Com','omponent\x20t','ackage\x20man','ng/creatin','sion,\x20lice','ce.\x20Useful','ysis\x20Progr','fies\x20vulne','7429450unultC','the\x20source','cense\x20comp','\x20an\x20\x27analy','ompt','urns\x20an\x20\x27a','r\x20AI\x20agent','gle\x20file\x20(','\x20usage\x20rul','rsal\x20withi','ing,\x20\x27trac','ges.\x20For\x20a','position\x20A','ecure_code','72RYmfAe','l\x20polling\x20','lnerabilit','\x20a\x20brief\x20e','\x20code\x20gene','\x20files\x20(ex','inputSchem','registerRe','\x20is\x20prefer','\x20Analysis','agers.\x20Ret','\x20XSS,\x20and\x20','Multi-File','user','eSast','nce\x20the\x20st','alysis_res','Sast','\x20project\x20f','_progress\x27','or\x20all\x20sup','g\x20analysis','ue\x20without','mimeType','sparrow://','Provides\x20a','files\x20to\x20i','oject\x20secu','sparrow-ru','content','D\x20and\x20upda','analyze_fo','ogress\x20by\x20','combined.l','iles\x20at\x20on','heir\x20absol','for\x20securi','recursive','\x20legacy\x20pr','verity,\x20de','ty\x20flaws.\x20','\x27COMPLETE\x27','cluding\x20co','\x20file\x20path','path\x20trave','re,\x20patche','constructo','ojects\x20for','Official\x20S','s\x20only\x20pro','ry.\x20It\x20aut','\x20source\x20co','iance\x20info','d\x20stage\x20of','260422AtHcCC','r\x20analyzin','\x20ZIP\x20archi','sis','AST\x20Analys','getScaAnal','ysisResult','ults','on\x20Analysi','cation\x20Sec','nd\x20cross-f','Folder\x20SAS','get_analys','getAnalysi','warn','es.\x20Useful','nalysisId\x27','analysis\x20I','\x20for\x20manua','COMPLETE.\x20','is\x20Status','ng\x20the\x20ANA','href','CA\x20Analysi','\x20(Software','\x20a\x20compreh','\x20the\x20corre','descriptio','contents','urity\x20Test','n\x20the\x20code','title','P.\x20It\x20scan','\x20scan\x20on\x20a','lder_sast','INIT,\x20READ','an\x20SCA\x20sca','g.,\x20packag','atic\x20Appli','lysis\x20on\x20m','y\x20file\x20(e.','parrow\x20MCP','Y,\x20PRE_PRO','Track\x20Anal','ce\x20librari','ort\x20with\x20c','d\x20briefing','\x20content\x20o','red.','ill\x20contin','\x20an\x20ongoin','t\x20or\x20a\x20sin','isId\x27\x20for\x20','gress\x20Noti','ctive\x20wait','ode\x20snippe','sStatus','nalysis)\x20o','\x20the\x20proje','\x20once\x20the\x20','ies\x20in\x20SAS','tes.','Progress\x20i','dentify\x20vu','xplanation','\x20open-sour','\x20failed\x20(w','\x20project.\x20','Id\x27.','e\x20or\x20a\x20mod','Checks\x20the','\x20Compositi','lities\x20(se','ic\x20progres','Periodical','delines\x20fo','status\x20is\x20','get_sca_an','Analysis\x20s','own','an\x20SCA\x20ana','esSast','.\x20Provides','derSast','analyzeFol','ce\x20code\x20ba','uri','ctory:','is_status','\x20code.\x20Use','analyzeZip','a\x20SAST\x20(St','the\x20entire','esSca','mkdirSync','tailed\x20SAS','liance\x20ris','de\x20file.\x20U','6FRpBGQ','(((.+)+)+)','messages','t\x20provides','Returns\x20an','connect','like\x20a\x20Con','ocations\x20-','d\x20version\x20','x,\x20and\x20a\x20d','re\x20directo','\x20a\x20full-pr','toString','rabilities','source','3sVaKBU','a\x20SAST\x20ana','uirements.','tages\x20are\x20','zing\x20pre-p','\x20dependenc','ges.\x20Use\x20t','g\x20the\x20chan','CESS,\x20ANAL','ZIP\x20File\x20S','LYSIS\x20stag','\x20It\x20identi','sisId\x27.','631137QqSVGA','\x20vulnerabi','tracking.','\x20for\x20analy','f\x20a\x20single',',\x20a\x20packag','\x20checker\x20i','les_sca','a\x20full\x20SCA','ct\x20is\x20alre','ginal\x20sour','lists\x20(CVE','Checker\x20se','secure-cod','vice','analyze_zi','2372335FYJAmG','an\x20analysi','ndings.','131736FkrqdL','ver\x20starte','es\x20and\x20gui','n\x20a\x20single','searches\x20f','info','ing)\x20analy','track_anal','Get\x20Analys','ultiple\x20so','nce\x20for\x20li','Sparrow\x20MC','\x20current\x20p','an\x20\x27analys','ecure\x20Code','rvice\x20init','Initiates\x20','vious\x20SAST','e.json,\x20po','\x20artifacts','se\x20this\x20fo','\x20analysis\x20','es\x20into\x20th','8fMkOow','initialize','Single\x20Fil','le_sca','ense\x20issue','nsive\x20SAST','erability\x20','role','\x20archive\x20c','CheckerSer','finding\x20vu','s\x20percenta','ule)\x20to\x20fi',',\x20line\x20num','ration\x20ser','sisProgres','\x20Returns\x20a','T\x20analysis','sis\x20on\x20the','Fetches\x20de','nfo):','version','ultiple\x20de','les','text/markd','to\x20get\x20bas','then','existsSync','his\x20after\x20','\x20of\x20the\x20fi','sId\x27.','g\x20a\x20relate','ber,\x20compl','ysis_progr','text','atus\x20is\x20\x27C','k_analysis','e\x20SCA\x20Anal','T\x20Analysis','\x20SCA\x20Analy','7579AKxQJh','\x20Useful\x20fo','P\x20Rules','nalysis\x20pr','alysis\x20Res','endency\x20de','is\x20Results','resolve','ified\x20by\x20t','ks\x20across\x20','ables\x20(ver','dependenci','Sca','ies\x20and\x20li','Automatica','join','\x20SAST\x20Anal','ultiple\x20mo','\x20Service).','registerTo','ialization','brary\x20upda','analyzeFil','ysis','m.xml,\x20req','claration\x20','ackaged\x20or','ed\x20list\x20of','troller\x20or','s\x20the\x20code','\x20categoriz','LETE\x27\x20and\x20','1869680MlUTQr','\x20\x27analysis','e\x20SAST\x20Ana','\x20for\x20proje','I-generate','specific\x20c','analyze_fi','logs','registerPr','a\x20comprehe','rules','generateSe','rity\x20of\x20a\x20','ing\x20source','ve\x20contain','mmon\x20build','error.log'];a18_0x6ed2=function(){return _0x5c96e7;};return a18_0x6ed2();}a18_0x4ceee9[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0x105)+a18_0x3b145f(0x1e9),a18_0x4ceee9[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x21b)+a18_0x3b145f(0x109)+'rogress\x20an'+a18_0x3b145f(0x1d4)+a18_0x3b145f(0x207)+a18_0x3b145f(0x1b4)+'.\x20Use\x20this'+a18_0x3b145f(0x1e7)+a18_0x3b145f(0x1a0)+'to\x20see\x20if\x20'+a18_0x3b145f(0xfb)+'s\x20is\x20\x27COMP'+a18_0x3b145f(0x15b)+a18_0x3b145f(0x12d)+a18_0x3b145f(0x21e)+a18_0x3b145f(0x11f)+a18_0x3b145f(0x19c)+a18_0x3b145f(0x20b)+a18_0x3b145f(0x19b)+a18_0x3b145f(0x138)+a18_0x3b145f(0x1b2)+a18_0x3b145f(0x1a7)+a18_0x3b145f(0x205),a18_0x4ceee9[a18_0x3b145f(0x1a5)+'a']=GetAnalysisStatusSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0x1e1)+a18_0x3b145f(0xc4),a18_0x4ceee9,async _0x1d7dbe=>analysisController[a18_0x3b145f(0x1e2)+a18_0x3b145f(0x20d)](_0x1d7dbe));const a18_0x488260={};a18_0x488260[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0x105)+a18_0x3b145f(0x142),a18_0x488260[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x127)+a18_0x3b145f(0xcb)+a18_0x3b145f(0x125)+a18_0x3b145f(0x173)+a18_0x3b145f(0x1ae)+a18_0x3b145f(0x137)+'OMPLETE\x27.\x20'+a18_0x3b145f(0x1b8)+a18_0x3b145f(0x15a)+a18_0x3b145f(0x157)+a18_0x3b145f(0xeb)+a18_0x3b145f(0x21d)+a18_0x3b145f(0x1c6)+'scription,'+a18_0x3b145f(0x1ca)+a18_0x3b145f(0x121)+a18_0x3b145f(0x134)+a18_0x3b145f(0x1d3)+a18_0x3b145f(0x186)+a18_0x3b145f(0x160)+a18_0x3b145f(0x203)+a18_0x3b145f(0x131)+a18_0x3b145f(0xfc),a18_0x488260[a18_0x3b145f(0x1a5)+'a']=GetAnalysisResultsSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0x1e1)+'is_results',a18_0x488260,async _0x3cd16f=>analysisController[a18_0x3b145f(0x1e2)+a18_0x3b145f(0x178)](_0x3cd16f));const a18_0x1dab13={};a18_0x1dab13[a18_0x3b145f(0x1f4)]='Get\x20SCA\x20An'+a18_0x3b145f(0x140)+a18_0x3b145f(0x1dc),a18_0x1dab13[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x127)+a18_0x3b145f(0x183)+a18_0x3b145f(0x1ed)+a18_0x3b145f(0x21c)+a18_0x3b145f(0x1dd)+'s)\x20results'+a18_0x3b145f(0x210)+a18_0x3b145f(0x221)+a18_0x3b145f(0x1c8)+a18_0x3b145f(0xbe)+a18_0x3b145f(0x1ee)+a18_0x3b145f(0x16f)+a18_0x3b145f(0x202)+a18_0x3b145f(0x18a)+a18_0x3b145f(0x146)+a18_0x3b145f(0x18d)+'nse),\x20vuln'+a18_0x3b145f(0x11a)+a18_0x3b145f(0xf5)+a18_0x3b145f(0x17f)+'nd\x20remedia'+'tion\x20guida'+a18_0x3b145f(0x107)+a18_0x3b145f(0x151)+a18_0x3b145f(0x212),a18_0x1dab13[a18_0x3b145f(0x1a5)+'a']=GetScaAnalysisResultsSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0xb9)+a18_0x3b145f(0x1af)+a18_0x3b145f(0x1dc),a18_0x1dab13,async _0x245504=>analysisController[a18_0x3b145f(0x1da)+a18_0x3b145f(0x1db)+'s'](_0x245504));const a18_0x2cc98a={};a18_0x2cc98a['title']=a18_0x3b145f(0x175)+a18_0x3b145f(0x10b),a18_0x2cc98a[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x14a)+'lly\x20genera'+'tes\x20a\x20secu'+a18_0x3b145f(0x1cc)+a18_0x3b145f(0xd6)+'of\x20the\x20ori'+a18_0x3b145f(0xf4)+a18_0x3b145f(0xc1)+'sed\x20on\x20pre'+a18_0x3b145f(0x10e)+a18_0x3b145f(0x112)+a18_0x3b145f(0x185)+a18_0x3b145f(0xd1)+a18_0x3b145f(0x1ef)+'cted\x20code,'+a18_0x3b145f(0x1a2)+a18_0x3b145f(0x215)+a18_0x3b145f(0x131)+a18_0x3b145f(0xd7)+'iff\x20showin'+a18_0x3b145f(0xe4)+a18_0x3b145f(0xe3)+a18_0x3b145f(0x130)+a18_0x3b145f(0x11e)+a18_0x3b145f(0x1a1)+a18_0x3b145f(0x211)+'T.',a18_0x2cc98a[a18_0x3b145f(0x1a5)+'a']=GenerateSecureCodeSchema,server[a18_0x3b145f(0x14f)+'ol']('generate_s'+a18_0x3b145f(0x19e),a18_0x2cc98a,async _0x2d511e=>securityController[a18_0x3b145f(0x167)+'cureCode'](_0x2d511e));const a18_0x26d0d8={};a18_0x26d0d8[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x1cf)+'parrow\x20MCP'+a18_0x3b145f(0x199)+a18_0x3b145f(0xff)+a18_0x3b145f(0x220)+a18_0x3b145f(0x197)+'s.',a18_0x26d0d8[a18_0x3b145f(0x1b6)]=a18_0x3b145f(0x12c)+a18_0x3b145f(0xbb),server[a18_0x3b145f(0x1a6)+a18_0x3b145f(0xdc)]('sparrow-ru'+a18_0x3b145f(0x12b),a18_0x3b145f(0x1b7)+a18_0x3b145f(0x166),a18_0x26d0d8,async _0x246d8b=>{const _0x4cfde5=a18_0x3b145f,_0xeb9369={};_0xeb9369[_0x4cfde5(0xc2)]=_0x246d8b[_0x4cfde5(0x1eb)],_0xeb9369[_0x4cfde5(0x136)]=SPARROW_RULES,_0xeb9369[_0x4cfde5(0x1b6)]=_0x4cfde5(0x12c)+_0x4cfde5(0xbb);const _0x283baa={};return _0x283baa[_0x4cfde5(0x1f1)]=[_0xeb9369],_0x283baa;});const a18_0x29b2d9={};a18_0x29b2d9[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0x108)+a18_0x3b145f(0x13e),a18_0x29b2d9[a18_0x3b145f(0x1f0)+'n']='Load\x20the\x20S'+a18_0x3b145f(0x1fe)+'\x20usage\x20rul'+a18_0x3b145f(0x113)+'e\x20context.',server[a18_0x3b145f(0x164)+a18_0x3b145f(0x195)](a18_0x3b145f(0x1bb)+a18_0x3b145f(0x12b),a18_0x29b2d9,async()=>{const _0x37840a=a18_0x3b145f,_0x3eb66b={};_0x3eb66b[_0x37840a(0x184)]='text',_0x3eb66b['text']=SPARROW_RULES;const _0x23bd1e={};_0x23bd1e[_0x37840a(0x11b)]=_0x37840a(0x1ac),_0x23bd1e[_0x37840a(0x1bc)]=_0x3eb66b;const _0x17a623={};return _0x17a623[_0x37840a(0xd0)]=[_0x23bd1e],_0x17a623;});const transport=new StdioServerTransport();logger[a18_0x3b145f(0x102)](a18_0x3b145f(0x188)+a18_0x3b145f(0x1a3)+a18_0x3b145f(0x122)+a18_0x3b145f(0xfe)+'d');try{const serverFileDir=a18_0x515ad7[a18_0x3b145f(0x177)](fileURLToPath(import.meta.url)),projectRoot=a18_0x515ad7[a18_0x3b145f(0x143)](serverFileDir,'..'),logsDir=a18_0x515ad7[a18_0x3b145f(0x143)](projectRoot,a18_0x3b145f(0x163));if(!a18_0xbbee1e[a18_0x3b145f(0x12f)](logsDir)){const a18_0x1f4358={};a18_0x1f4358[a18_0x3b145f(0x1c4)]=!![],a18_0xbbee1e[a18_0x3b145f(0xca)](logsDir,a18_0x1f4358);}const combinedPath=a18_0x515ad7['join'](logsDir,a18_0x3b145f(0x1c0)+'og'),errorPath=a18_0x515ad7[a18_0x3b145f(0x14b)](logsDir,a18_0x3b145f(0x16c));logger[a18_0x3b145f(0x102)](a18_0x3b145f(0x17a)+a18_0x3b145f(0xd5)+'\x20combined:'+'\x20'+combinedPath+',\x20error:\x20'+errorPath);}catch(a18_0x23f055){logger[a18_0x3b145f(0x1e3)]('Warning\x20wh'+'ile\x20checki'+a18_0x3b145f(0x18c)+'g\x20log\x20dire'+a18_0x3b145f(0xc3),a18_0x23f055);}analysisService[a18_0x3b145f(0x115)+a18_0x3b145f(0x11d)+a18_0x3b145f(0xf8)]()[a18_0x3b145f(0x12e)](()=>{const _0x3db86d=a18_0x3b145f;logger['info'](_0x3db86d(0xf6)+_0x3db86d(0x10c)+'ialized\x20su'+_0x3db86d(0x170));})['catch'](_0x4759be=>{const _0x28cd93=a18_0x3b145f;logger[_0x28cd93(0x1e3)]('Checker\x20se'+_0x28cd93(0x10c)+_0x28cd93(0x150)+_0x28cd93(0x217)+_0x28cd93(0x206)+_0x28cd93(0x1b5)+_0x28cd93(0xf0)+_0x28cd93(0x128),_0x4759be);}),await server[a18_0x3b145f(0xd3)](transport);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0xe6d8ea=a31_0x5447;(function(_0x208236,_0x43b6cb){const _0x3a7fdc=a31_0x5447,_0x38feb5=_0x208236();while(!![]){try{const _0x5004e8=parseInt(_0x3a7fdc(0xea))/0x1+-parseInt(_0x3a7fdc(0xdf))/0x2*(parseInt(_0x3a7fdc(0xce))/0x3)+-parseInt(_0x3a7fdc(0xde))/0x4+parseInt(_0x3a7fdc(0xaf))/0x5*(parseInt(_0x3a7fdc(0xec))/0x6)+-parseInt(_0x3a7fdc(0xe1))/0x7*(-parseInt(_0x3a7fdc(0xe9))/0x8)+parseInt(_0x3a7fdc(0xc5))/0x9+-parseInt(_0x3a7fdc(0xdd))/0xa;if(_0x5004e8===_0x43b6cb)break;else _0x38feb5['push'](_0x38feb5['shift']());}catch(_0x1b2c5e){_0x38feb5['push'](_0x38feb5['shift']());}}}(a31_0x3342,0x49019));const a31_0x50fecd=(function(){let _0x4a2ea6=!![];return function(_0x1ff0c1,_0x1842e9){const _0x4205a7=_0x4a2ea6?function(){const _0x487134=a31_0x5447;if(_0x1842e9){const _0x8f7943=_0x1842e9[_0x487134(0xcf)](_0x1ff0c1,arguments);return _0x1842e9=null,_0x8f7943;}}:function(){};return _0x4a2ea6=![],_0x4205a7;};}()),a31_0x423081=a31_0x50fecd(this,function(){const _0x47d2a9=a31_0x5447,_0x57bdba={};_0x57bdba['FaHiC']='(((.+)+)+)'+'+$';const _0x22e3dc=_0x57bdba;return a31_0x423081[_0x47d2a9(0xb6)]()[_0x47d2a9(0xd0)](_0x47d2a9(0xc0)+'+$')[_0x47d2a9(0xb6)]()[_0x47d2a9(0xc4)+'r'](a31_0x423081)['search'](_0x22e3dc[_0x47d2a9(0xdb)]);});function a31_0x3342(){const _0xec9cc7=['zip','test-token','Error\x20impo','../../util','unstable_m','ot\x20exists','../../conf','mkdirSync','1041aFuhoO','apply','search','Value','default','ckerServic','exports:','http://che','clearAllMo','initialize','checkersDi','cks','../checker','FaHiC','http://tes','11374110hmEThH','897000OdiFMI','2578AEZzWE','existsSync','171395dBJdck','sparrow','t-api','ckers-dl','ig/appConf','vice','e:\x20module\x20','s/logger.j','184helblW','533638ubSzxq','toBe','4038LqdlCu','edValue','get','ckers\x20if\x20n','ockModule','3235IEmpoU','should\x20att','baseUrl','checkersUr','import\x20Che','CheckerSer','kerService','toString','tialize\x20wi','Failed\x20to\x20','th\x20provide','.service.j','error','adm-zip','mockResolv','d\x20director','rting\x20Chec','(((.+)+)+)','ig.js','Called','ZSyDm','constructo','5181777ntjdXY'];a31_0x3342=function(){return _0xec9cc7;};return a31_0x3342();}a31_0x423081();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAxios={'get':jest['fn'](),'post':jest['fn']()};jest[a31_0xe6d8ea(0xca)+a31_0xe6d8ea(0xae)]('axios',()=>({'default':mockAxios})),jest[a31_0xe6d8ea(0xca)+a31_0xe6d8ea(0xae)]('fs',()=>({'default':{'existsSync':jest['fn'](),'readdirSync':jest['fn'](),'mkdirSync':jest['fn'](),'writeFileSync':jest['fn'](),'readFileSync':jest['fn'](),'unlinkSync':jest['fn'](),'statSync':jest['fn'](),'rmSync':jest['fn']()}})),jest['unstable_m'+'ockModule'](a31_0xe6d8ea(0xbc),()=>{const _0x544945=a31_0xe6d8ea;return{'default':jest['fn'](()=>({'extractAllTo':jest['fn'](),'getEntries':jest['fn']()['mockReturn'+_0x544945(0xd1)]([])}))};});const a31_0x4b224c={};function a31_0x5447(_0x4f28fa,_0x9ccb0){_0x4f28fa=_0x4f28fa-0xac;const _0x53b966=a31_0x3342();let _0x423081=_0x53b966[_0x4f28fa];return _0x423081;}a31_0x4b224c[a31_0xe6d8ea(0xb1)]=a31_0xe6d8ea(0xdc)+a31_0xe6d8ea(0xe3),a31_0x4b224c['apiKey']=a31_0xe6d8ea(0xc7);const a31_0x286a28={};a31_0x286a28[a31_0xe6d8ea(0xe2)]=a31_0x4b224c,a31_0x286a28[a31_0xe6d8ea(0xb2)+'l']=a31_0xe6d8ea(0xd5)+a31_0xe6d8ea(0xe4),jest[a31_0xe6d8ea(0xca)+a31_0xe6d8ea(0xae)](a31_0xe6d8ea(0xcc)+a31_0xe6d8ea(0xe5)+a31_0xe6d8ea(0xc1),()=>({'appConfig':a31_0x286a28})),jest['unstable_m'+a31_0xe6d8ea(0xae)](a31_0xe6d8ea(0xc9)+a31_0xe6d8ea(0xe8)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn'](),'debug':jest['fn']()}})),describe(a31_0xe6d8ea(0xb4)+'vice',()=>{const _0x524f6d=a31_0xe6d8ea,_0x4dcc04={'ZSyDm':function(_0x2bb78f,_0x122825){return _0x2bb78f(_0x122825);}};let _0xa9374e,_0x492a68;const _0x16c757='/tmp/test-'+'checkers';beforeAll(async()=>{const _0x562d0f=a31_0x5447;try{const _0x445660=await import(_0x562d0f(0xda)+_0x562d0f(0xba)+'s');_0xa9374e=_0x445660[_0x562d0f(0xb4)+_0x562d0f(0xe6)];if(!_0xa9374e){console[_0x562d0f(0xbb)](_0x562d0f(0xb8)+_0x562d0f(0xb3)+_0x562d0f(0xd3)+_0x562d0f(0xe7)+_0x562d0f(0xd4),Object['keys'](_0x445660));throw new Error(_0x562d0f(0xb4)+'vice\x20is\x20un'+'defined\x20af'+'ter\x20import');}}catch(_0x8cc21a){console[_0x562d0f(0xbb)](_0x562d0f(0xc8)+_0x562d0f(0xbf)+_0x562d0f(0xb5)+':',_0x8cc21a);throw _0x8cc21a;}}),beforeEach(()=>{const _0x7bb714=a31_0x5447;jest[_0x7bb714(0xd6)+_0x7bb714(0xd9)](),_0xa9374e&&(_0x492a68=new _0xa9374e(_0x16c757));}),it('should\x20ini'+_0x524f6d(0xb7)+_0x524f6d(0xb9)+_0x524f6d(0xbe)+'y',()=>{const _0x25a074=_0x524f6d;expect(_0x492a68[_0x25a074(0xd8)+'r'])[_0x25a074(0xeb)](_0x16c757);}),it(_0x524f6d(0xb0)+'empt\x20to\x20do'+'wnload\x20che'+_0x524f6d(0xad)+_0x524f6d(0xcb),async()=>{const _0x2ad571=_0x524f6d,_0x1b1bf3=(await import('fs'))[_0x2ad571(0xd2)];_0x1b1bf3[_0x2ad571(0xe0)]['mockReturn'+_0x2ad571(0xd1)](![]),mockAxios[_0x2ad571(0xac)][_0x2ad571(0xbd)+_0x2ad571(0xed)]({'data':Buffer['from'](_0x2ad571(0xc6))}),await _0x492a68[_0x2ad571(0xd7)](),expect(mockAxios[_0x2ad571(0xac)])['toHaveBeen'+_0x2ad571(0xc2)](),_0x4dcc04[_0x2ad571(0xc3)](expect,_0x1b1bf3[_0x2ad571(0xcd)])['toHaveBeen'+_0x2ad571(0xc2)]();});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a32_0x14eccd=a32_0x374e;(function(_0x3d373,_0x468aac){const _0x56ba27=a32_0x374e,_0x4d4ffe=_0x3d373();while(!![]){try{const _0x5016d0=parseInt(_0x56ba27(0xef))/0x1*(-parseInt(_0x56ba27(0xe8))/0x2)+parseInt(_0x56ba27(0xed))/0x3*(parseInt(_0x56ba27(0xc8))/0x4)+parseInt(_0x56ba27(0xdb))/0x5*(-parseInt(_0x56ba27(0xd7))/0x6)+-parseInt(_0x56ba27(0xda))/0x7+parseInt(_0x56ba27(0xcd))/0x8+-parseInt(_0x56ba27(0xe9))/0x9*(-parseInt(_0x56ba27(0xc1))/0xa)+parseInt(_0x56ba27(0xf8))/0xb;if(_0x5016d0===_0x468aac)break;else _0x4d4ffe['push'](_0x4d4ffe['shift']());}catch(_0x3d627d){_0x4d4ffe['push'](_0x4d4ffe['shift']());}}}(a32_0x1948,0x40a3c));function a32_0x374e(_0x4675f9,_0x2de0cc){_0x4675f9=_0x4675f9-0xbc;const _0x35af8b=a32_0x1948();let _0x903d1=_0x35af8b[_0x4675f9];return _0x903d1;}const a32_0xeeb300=(function(){let _0x1664dd=!![];return function(_0x318a0b,_0x51f801){const _0x26a9ca=_0x1664dd?function(){const _0x256032=a32_0x374e;if(_0x51f801){const _0x301253=_0x51f801[_0x256032(0xeb)](_0x318a0b,arguments);return _0x51f801=null,_0x301253;}}:function(){};return _0x1664dd=![],_0x26a9ca;};}()),a32_0x903d1=a32_0xeeb300(this,function(){const _0x47ea36=a32_0x374e;return a32_0x903d1[_0x47ea36(0xe1)]()[_0x47ea36(0xde)](_0x47ea36(0xfa)+'+$')[_0x47ea36(0xe1)]()['constructo'+'r'](a32_0x903d1)[_0x47ea36(0xde)]('(((.+)+)+)'+'+$');});a32_0x903d1();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockGenerate=jest['fn'](),a32_0x27f4ff={};function a32_0x1948(){const _0x4f5cd0=['cureCodeBr','success','g\x20provider','toContain','RpwaF','Analysis\x20B','624UNAOBW','t\x20found','content\x20on','toBe','urn\x20origin','2688920itlGHR','uccess','toHaveBeen','uration\x20no','unsafe\x20cod','\x20success','dle\x20missin','getProvide','error','../llm/LLM','336NpGdCy','er\x20errors','issues','1147503KHSgvG','36180BdZMjJ','cureCode','ockModule','search','cks','Code\x20Brief','toString','\x20code\x20on\x20s','../llm.ser','alysisBrie','Provider\x20E','Value','generateAn','3902rZTHph','27WtQIGZ','Fail','apply','vice.js','414NBPTPI','should\x20ret','217HPWQzO','ief','urn\x20brief\x20','secure\x20cod','\x20failure','rror','mockReject','content','generate','9456865aaVvhn','LLM\x20config','(((.+)+)+)','mockReturn','ing...','mockResolv','should\x20han','GSztP','urn\x20secure','edValue','SbliX','dle\x20provid','Factory.js','Called','generateSe','133060LvESfC'];a32_0x1948=function(){return _0x4f5cd0;};return a32_0x1948();}a32_0x27f4ff[a32_0x14eccd(0xf7)]=mockGenerate;const mockProvider=a32_0x27f4ff,mockGetProvider=jest['fn'](),a32_0x118e76={};a32_0x118e76[a32_0x14eccd(0xd4)+'r']=mockGetProvider,jest['unstable_m'+a32_0x14eccd(0xdd)](a32_0x14eccd(0xd6)+a32_0x14eccd(0xbe),()=>({'LLMFactory':a32_0x118e76}));const {LLMService}=await import(a32_0x14eccd(0xe3)+a32_0x14eccd(0xec));describe('LLMService',()=>{const _0x22c5b3=a32_0x14eccd,_0x14db56={'IJwIG':function(_0x31ce9a,_0x267f10){return _0x31ce9a(_0x267f10);},'RpwaF':_0x22c5b3(0xc7)+'riefing...','uxoGY':_0x22c5b3(0xe0)+_0x22c5b3(0xfc)};let _0x5a2e52;beforeEach(()=>{const _0x38fed3=_0x22c5b3;jest['clearAllMo'+_0x38fed3(0xdf)](),mockGetProvider[_0x38fed3(0xfb)+_0x38fed3(0xe6)](mockProvider),_0x5a2e52=new LLMService();}),describe('generateAn'+'alysisBrie'+'f',()=>{const _0x14ecdc=_0x22c5b3;it('should\x20ret'+_0x14ecdc(0xf1)+_0x14ecdc(0xca)+_0x14ecdc(0xd2),async()=>{const _0x41b8a3=_0x14ecdc;mockGenerate[_0x41b8a3(0xfd)+'edValue'](_0x41b8a3(0xc7)+'riefing...');const _0x7db198={};_0x7db198[_0x41b8a3(0xd9)]=[];const _0x4b026f=await _0x5a2e52[_0x41b8a3(0xe7)+_0x41b8a3(0xe4)+'f'](_0x7db198);_0x14db56['IJwIG'](expect,_0x4b026f[_0x41b8a3(0xc3)])[_0x41b8a3(0xcb)](!![]),expect(_0x4b026f[_0x41b8a3(0xf6)])[_0x41b8a3(0xcb)](_0x14db56[_0x41b8a3(0xc6)]),expect(mockGenerate)[_0x41b8a3(0xcf)+_0x41b8a3(0xbf)]();}),it(_0x14ecdc(0xfe)+_0x14ecdc(0xd3)+_0x14ecdc(0xc4),async()=>{const _0x5db9b3=_0x14ecdc;mockGetProvider[_0x5db9b3(0xfb)+_0x5db9b3(0xe6)](null),_0x5a2e52=new LLMService();const _0x356fec=await _0x5a2e52[_0x5db9b3(0xe7)+_0x5db9b3(0xe4)+'f']({});expect(_0x356fec['success'])[_0x5db9b3(0xcb)](!![]),expect(_0x356fec['content'])[_0x5db9b3(0xc5)](_0x5db9b3(0xf9)+_0x5db9b3(0xd0)+'t\x20found');}),it(_0x14ecdc(0xfe)+_0x14ecdc(0xbd)+_0x14ecdc(0xd8),async()=>{const _0x4507d3=_0x14ecdc;mockGenerate[_0x4507d3(0xf5)+_0x4507d3(0x101)](new Error(_0x4507d3(0xe5)+_0x4507d3(0xf4)));const _0x449d4d=await _0x5a2e52[_0x4507d3(0xe7)+_0x4507d3(0xe4)+'f']({});expect(_0x449d4d['success'])['toBe'](![]),expect(_0x449d4d[_0x4507d3(0xd5)])[_0x4507d3(0xcb)]('Provider\x20E'+_0x4507d3(0xf4));});}),describe(_0x22c5b3(0xc0)+_0x22c5b3(0xdc),()=>{const _0x34d2b0=_0x22c5b3,_0x158745={'SbliX':function(_0x4f9782,_0x1c510d){return _0x4f9782(_0x1c510d);}},_0xe372c9='unsafe\x20cod'+'e';it(_0x34d2b0(0xee)+_0x34d2b0(0x100)+_0x34d2b0(0xe2)+_0x34d2b0(0xce),async()=>{const _0x28fe31=_0x34d2b0;mockGenerate['mockResolv'+_0x28fe31(0x101)](_0x28fe31(0xf2)+'e');const _0x3dac07=await _0x5a2e52[_0x28fe31(0xc0)+_0x28fe31(0xdc)](_0xe372c9,[]);expect(_0x3dac07[_0x28fe31(0xc3)])[_0x28fe31(0xcb)](!![]),expect(_0x3dac07[_0x28fe31(0xf6)])[_0x28fe31(0xcb)](_0x28fe31(0xf2)+'e');}),it(_0x34d2b0(0xee)+_0x34d2b0(0xcc)+'al\x20code\x20on'+_0x34d2b0(0xf3),async()=>{const _0x378d64=_0x34d2b0;mockGenerate[_0x378d64(0xf5)+_0x378d64(0x101)](new Error(_0x378d64(0xea)));const _0x3913ad=await _0x5a2e52[_0x378d64(0xc0)+'cureCode'](_0xe372c9,[]);expect(_0x3913ad[_0x378d64(0xc3)])['toBe'](![]),expect(_0x3913ad['content'])[_0x378d64(0xcb)](_0xe372c9);}),it(_0x34d2b0(0xfe)+_0x34d2b0(0xd3)+_0x34d2b0(0xc4),async()=>{const _0x2af227=_0x34d2b0;mockGetProvider[_0x2af227(0xfb)+_0x2af227(0xe6)](null),_0x5a2e52=new LLMService();const _0x54b610=await _0x5a2e52[_0x2af227(0xc0)+_0x2af227(0xdc)](_0xe372c9,[]);expect(_0x54b610[_0x2af227(0xc3)])['toBe'](![]),expect(_0x54b610[_0x2af227(0xf6)])['toBe'](_0xe372c9),_0x158745[_0x2af227(0xbc)](expect,_0x54b610[_0x2af227(0xd5)])[_0x2af227(0xc5)](_0x2af227(0xf9)+_0x2af227(0xd0)+_0x2af227(0xc9));});}),describe(_0x22c5b3(0xc0)+'cureCodeBr'+_0x22c5b3(0xf0),()=>{const _0x318fac=_0x22c5b3,_0x4e221f={};_0x4e221f[_0x318fac(0xff)]=_0x318fac(0xf9)+'uration\x20no'+_0x318fac(0xc9);const _0x163406=_0x4e221f,_0x49b32a=_0x318fac(0xd1)+'e',_0x2f60c4=_0x318fac(0xf2)+'e';it(_0x318fac(0xee)+_0x318fac(0xf1)+'on\x20success',async()=>{const _0x27c7ed=_0x318fac;mockGenerate[_0x27c7ed(0xfd)+_0x27c7ed(0x101)](_0x14db56['uxoGY']);const _0x5db2f9=await _0x5a2e52[_0x27c7ed(0xc0)+'cureCodeBr'+'ief'](_0x49b32a,_0x2f60c4);expect(_0x5db2f9[_0x27c7ed(0xc3)])[_0x27c7ed(0xcb)](!![]),expect(_0x5db2f9['content'])[_0x27c7ed(0xcb)](_0x27c7ed(0xe0)+'ing...');}),it(_0x318fac(0xfe)+_0x318fac(0xd3)+_0x318fac(0xc4),async()=>{const _0x9591a5=_0x318fac;mockGetProvider[_0x9591a5(0xfb)+_0x9591a5(0xe6)](null),_0x5a2e52=new LLMService();const _0x12fdf4=await _0x5a2e52['generateSe'+_0x9591a5(0xc2)+_0x9591a5(0xf0)](_0x49b32a,_0x2f60c4);expect(_0x12fdf4['success'])[_0x9591a5(0xcb)](![]),expect(_0x12fdf4['error'])['toContain'](_0x163406[_0x9591a5(0xff)]);});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a33_0xd0aed8=a33_0x51be;(function(_0x5e59f7,_0x403f91){const _0x1a9058=a33_0x51be,_0x18dbe0=_0x5e59f7();while(!![]){try{const _0x3e485e=parseInt(_0x1a9058(0xb2))/0x1*(-parseInt(_0x1a9058(0xa4))/0x2)+parseInt(_0x1a9058(0xac))/0x3*(-parseInt(_0x1a9058(0xb0))/0x4)+parseInt(_0x1a9058(0xb4))/0x5+parseInt(_0x1a9058(0xda))/0x6*(parseInt(_0x1a9058(0xe0))/0x7)+parseInt(_0x1a9058(0xe1))/0x8+parseInt(_0x1a9058(0xa7))/0x9*(-parseInt(_0x1a9058(0xe2))/0xa)+-parseInt(_0x1a9058(0xdb))/0xb*(-parseInt(_0x1a9058(0xca))/0xc);if(_0x3e485e===_0x403f91)break;else _0x18dbe0['push'](_0x18dbe0['shift']());}catch(_0x28e4c5){_0x18dbe0['push'](_0x18dbe0['shift']());}}}(a33_0x5a6a,0xceefe));function a33_0x51be(_0x342246,_0x2badb9){_0x342246=_0x342246-0x9e;const _0x297d4b=a33_0x5a6a();let _0x28fb6f=_0x297d4b[_0x342246];return _0x28fb6f;}const a33_0x2df391=(function(){let _0x894a2a=!![];return function(_0x3b5c49,_0x414934){const _0x1b28b9=_0x894a2a?function(){if(_0x414934){const _0x15d45b=_0x414934['apply'](_0x3b5c49,arguments);return _0x414934=null,_0x15d45b;}}:function(){};return _0x894a2a=![],_0x1b28b9;};}()),a33_0x28fb6f=a33_0x2df391(this,function(){const _0x502a0d=a33_0x51be;return a33_0x28fb6f['toString']()[_0x502a0d(0xae)]('(((.+)+)+)'+'+$')['toString']()[_0x502a0d(0xcc)+'r'](a33_0x28fb6f)[_0x502a0d(0xae)](_0x502a0d(0xaf)+'+$');});a33_0x28fb6f();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockSend=jest['fn'](),mockS3Client=jest['fn'](()=>({'send':mockSend})),mockArchiver={'on':jest['fn'](),'append':jest['fn'](),'finalize':jest['fn'](),'pipe':jest['fn']()},mockArchiverFn=jest['fn'](()=>mockArchiver);jest['unstable_m'+a33_0xd0aed8(0xc6)](a33_0xd0aed8(0xb8)+'lient-s3',()=>({'S3Client':mockS3Client,'PutObjectCommand':jest['fn'](),'GetObjectCommand':jest['fn']()})),jest[a33_0xd0aed8(0xbf)+a33_0xd0aed8(0xc6)](a33_0xd0aed8(0xcd),()=>({'default':mockArchiverFn}));const {S3Service}=await import(a33_0xd0aed8(0xbb)+a33_0xd0aed8(0xc5));describe(a33_0xd0aed8(0xc0),()=>{const _0x10a5d3=a33_0xd0aed8,_0x22cdbe={'zFTwV':function(_0x9cad53,_0x20c698,_0x25dc45){return _0x9cad53(_0x20c698,_0x25dc45);},'obcJk':_0x10a5d3(0xc9)+_0x10a5d3(0xb7)+_0x10a5d3(0xd2)+_0x10a5d3(0xe3),'OAUKd':_0x10a5d3(0xa5)+'p\x20safe\x20cha'+_0x10a5d3(0xa2),'VgegO':_0x10a5d3(0xd8),'SONWk':function(_0x33916d,_0x3117c7){return _0x33916d(_0x3117c7);}};let _0x477192;beforeEach(()=>{const _0x397324=_0x10a5d3,_0x11f3a8={};_0x11f3a8['ouaUB']=function(_0x37d95b,_0x3bddd8){return _0x37d95b===_0x3bddd8;};const _0x35cfa2=_0x11f3a8;jest[_0x397324(0xab)+_0x397324(0xd0)](),mockArchiver['on'][_0x397324(0xb6)+'entation']((_0x2bd5a5,_0x32a1b8)=>{const _0x468f82=_0x397324;if(_0x35cfa2[_0x468f82(0xd4)](_0x2bd5a5,_0x468f82(0xb3))){if(typeof _0x32a1b8==='function')_0x32a1b8();}return mockArchiver;}),_0x477192=new S3Service();}),describe(_0x10a5d3(0x9f)+_0x10a5d3(0xad),()=>{const _0x42523b=_0x10a5d3;_0x22cdbe[_0x42523b(0xd5)](it,_0x22cdbe['obcJk'],()=>{const _0x58f460=_0x42523b,_0x405779='../../etc/'+_0x58f460(0xcf),_0x3db733=_0x477192[_0x58f460(0x9f)+_0x58f460(0xad)](_0x405779);expect(_0x3db733)['not'][_0x58f460(0xc4)]('..'),expect(_0x3db733)[_0x58f460(0xde)]['toContain']('/');}),it(_0x22cdbe[_0x42523b(0xa6)],()=>{const _0x4aad4e=_0x42523b,_0x5d133f='my-file_12'+_0x4aad4e(0xd9);expect(_0x477192[_0x4aad4e(0x9f)+'leName'](_0x5d133f))[_0x4aad4e(0xbe)](_0x5d133f);});}),describe(_0x10a5d3(0xa0),()=>{const _0x4798b9=_0x10a5d3,_0xbd60e9={'pUHPt':function(_0x5a6462,_0x2b0e19){return _0x5a6462(_0x2b0e19);}};it('should\x20upl'+_0x4798b9(0xe5)+_0x4798b9(0xaa)+_0x4798b9(0xd1),async()=>{const _0x52f809=_0x4798b9;mockSend[_0x52f809(0xd3)+'edValue']({});const _0x39ab5e=await _0x477192[_0x52f809(0xa0)](_0x52f809(0xdd),_0x52f809(0xb9));expect(_0x39ab5e[_0x52f809(0xce)])[_0x52f809(0xbe)](!![]),expect(mockSend)[_0x52f809(0xdc)+_0x52f809(0xba)](expect[_0x52f809(0xa3)](Object));}),it(_0x4798b9(0xc1)+'urn\x20error\x20'+_0x4798b9(0xd6),async()=>{const _0x108a97=_0x4798b9;mockSend[_0x108a97(0xb5)+_0x108a97(0xc7)](new Error(_0x108a97(0xb1)));const _0x3a73ef=await _0x477192[_0x108a97(0xa0)](_0x108a97(0xdd),'test.txt');_0xbd60e9[_0x108a97(0xa9)](expect,_0x3a73ef[_0x108a97(0xce)])['toBe'](![]),expect(_0x3a73ef['error'])[_0x108a97(0xdf)+'d']();});}),describe(_0x10a5d3(0xe4)+'ipleFiles',()=>{const _0x4bf3ab=_0x10a5d3;it('should\x20cre'+_0x4bf3ab(0xa8)+'d\x20upload',async()=>{const _0x1fcd71=_0x4bf3ab;mockSend[_0x1fcd71(0xd3)+_0x1fcd71(0xc7)]({});const _0x382352={};_0x382352[_0x1fcd71(0xbd)]=_0x1fcd71(0xcb),_0x382352[_0x1fcd71(0xd7)+'t']=_0x1fcd71(0xbc);const _0x36e083={};_0x36e083['fileName']=_0x1fcd71(0x9e),_0x36e083[_0x1fcd71(0xd7)+'t']=_0x22cdbe[_0x1fcd71(0xc3)];const _0x1646da=[_0x382352,_0x36e083],_0x20bb43=await _0x477192[_0x1fcd71(0xe4)+_0x1fcd71(0xc2)](_0x1646da,_0x1fcd71(0xa1));expect(_0x20bb43[_0x1fcd71(0xce)])[_0x1fcd71(0xbe)](!![]),_0x22cdbe[_0x1fcd71(0xc8)](expect,mockSend)[_0x1fcd71(0xdc)+'CalledTime'+'s'](0x1);});});});function a33_0x5a6a(){const _0x4db9dc=['archiver','success','passwd','cks','lly','raversal\x20c','mockResolv','ouaUB','zFTwV','on\x20failure','fileConten','class\x20B\x20{}','3.java','3324JRypnB','11AHuokg','toHaveBeen','content','not','toBeDefine','6741bgIwnY','10775104zwQGBv','1150ohEpcr','haracters','uploadMult','oad\x20a\x20file','B.java','sanitizeFi','uploadFile','test.zip','racters','any','762488EJdfGd','should\x20kee','OAUKd','129771argcZK','ate\x20zip\x20an','pUHPt','\x20successfu','clearAllMo','6810nFVDJl','leName','search','(((.+)+)+)','208cFydEK','S3\x20Error','1qXSWSJ','end','432675yYDMiv','mockReject','mockImplem','ove\x20path\x20t','@aws-sdk/c','test.txt','CalledWith','../s3.serv','class\x20A\x20{}','fileName','toBe','unstable_m','S3Service','should\x20ret','ipleFiles','VgegO','toContain','ice.js','ockModule','edValue','SONWk','should\x20rem','12457896nQIpis','A.java','constructo'];a33_0x5a6a=function(){return _0x4db9dc;};return a33_0x5a6a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34_0x3b9275=a34_0xa3d4;(function(_0x4dfcaf,_0x111ad4){const _0x43523f=a34_0xa3d4,_0x2b8a58=_0x4dfcaf();while(!![]){try{const _0x332b86=parseInt(_0x43523f(0x168))/0x1+parseInt(_0x43523f(0x130))/0x2*(parseInt(_0x43523f(0x152))/0x3)+parseInt(_0x43523f(0x128))/0x4*(-parseInt(_0x43523f(0x145))/0x5)+parseInt(_0x43523f(0x169))/0x6*(-parseInt(_0x43523f(0x13f))/0x7)+-parseInt(_0x43523f(0x12a))/0x8+-parseInt(_0x43523f(0x154))/0x9+-parseInt(_0x43523f(0x14f))/0xa*(-parseInt(_0x43523f(0x12b))/0xb);if(_0x332b86===_0x111ad4)break;else _0x2b8a58['push'](_0x2b8a58['shift']());}catch(_0x1ec490){_0x2b8a58['push'](_0x2b8a58['shift']());}}}(a34_0x5c93,0x70f84));const a34_0x416b55=(function(){let _0x2040bc=!![];return function(_0x37e7ce,_0x12ba6e){const _0x34ca2c=_0x2040bc?function(){if(_0x12ba6e){const _0x4d912e=_0x12ba6e['apply'](_0x37e7ce,arguments);return _0x12ba6e=null,_0x4d912e;}}:function(){};return _0x2040bc=![],_0x34ca2c;};}()),a34_0x3929b6=a34_0x416b55(this,function(){const _0x2a3923=a34_0xa3d4;return a34_0x3929b6[_0x2a3923(0x172)]()[_0x2a3923(0x144)](_0x2a3923(0x164)+'+$')['toString']()[_0x2a3923(0x147)+'r'](a34_0x3929b6)['search']('(((.+)+)+)'+'+$');});a34_0x3929b6();import{jest,describe,it,expect,beforeEach}from'@jest/globals';function a34_0xa3d4(_0x4d5621,_0x5eb8cd){_0x4d5621=_0x4d5621-0x128;const _0x53b984=a34_0x5c93();let _0x3929b6=_0x53b984[_0x4d5621];return _0x3929b6;}const mockPost=jest['fn'](),mockGet=jest['fn'](),mockIsAxiosError=jest['fn'](),a34_0x2c3de5={};a34_0x2c3de5['post']=mockPost,a34_0x2c3de5[a34_0x3b9275(0x13b)]=mockGet,a34_0x2c3de5[a34_0x3b9275(0x13e)+'or']=mockIsAxiosError,jest[a34_0x3b9275(0x16a)+a34_0x3b9275(0x140)](a34_0x3b9275(0x160),()=>({'default':a34_0x2c3de5}));const {SparrowService}=await import(a34_0x3b9275(0x134)+'.service.j'+'s');function a34_0x5c93(){const _0x6efab1=['message','toString','116972gLafHH','aining','5508168qDOnxI','4345POBigN','status','isCompleti','toContain','requestAna','634LNQIrd','analysisId','alysis/too','vice','../sparrow','mockResolv','requestId','edValue','p\x20polling\x20','/api/v1/an','all\x20to\x20req','get','fileName','result','isAxiosErr','3261566Trlrux','ockModule','uest\x20analy','an-123','mpletion','search','65tyJAhG','CalledTime','constructo','\x20{}','l/sast','class\x20Test','RECEIVED','SparrowSer','getAnalysi','sis','28810LFkYQR','Kzvhb','nyLON','7026mRQrOl','stringCont','3470328HOXsTl','PROCESSING','urn\x20status','data','l\x20until\x20co','ANALYSIS','should\x20pol','on\x20timeout','fileConten','should\x20sto','req-123','objectCont','axios','key/test.j','s3Key','anything','(((.+)+)+)','lysis','test.java','pollAnalys','502525rydXFM','6mwTdvD','unstable_m','sStatus','aMKmD','toBe','COMPLETE','edValueOnc','SUCCESS'];a34_0x5c93=function(){return _0x6efab1;};return a34_0x5c93();}describe(a34_0x3b9275(0x14c)+a34_0x3b9275(0x133),()=>{const _0x3bbe40=a34_0x3b9275,_0x50c696={};_0x50c696[_0x3bbe40(0x151)]='should\x20ret'+_0x3bbe40(0x156),_0x50c696[_0x3bbe40(0x150)]=_0x3bbe40(0x155),_0x50c696[_0x3bbe40(0x16c)]=_0x3bbe40(0x170);const _0x904db5=_0x50c696;let _0x24afee;beforeEach(()=>{jest['clearAllMo'+'cks'](),_0x24afee=new SparrowService();}),describe(_0x3bbe40(0x12f)+_0x3bbe40(0x165),()=>{const _0x46c393=_0x3bbe40;it('should\x20mak'+'e\x20an\x20API\x20c'+_0x46c393(0x13a)+_0x46c393(0x141)+_0x46c393(0x14e),async()=>{const _0x39a68a=_0x46c393,_0x112c78={};_0x112c78[_0x39a68a(0x136)]='req-123',_0x112c78['status']=_0x39a68a(0x14b);const _0x275117={};_0x275117[_0x39a68a(0x157)]=_0x112c78;const _0xd5db90=_0x275117;mockPost['mockResolv'+_0x39a68a(0x137)](_0xd5db90);const _0x52af5a={};_0x52af5a[_0x39a68a(0x13c)]=_0x39a68a(0x166),_0x52af5a[_0x39a68a(0x15c)+'t']=_0x39a68a(0x14a)+_0x39a68a(0x148),_0x52af5a[_0x39a68a(0x162)]=_0x39a68a(0x161)+'ava';const _0x2de6ef=await _0x24afee[_0x39a68a(0x12f)+_0x39a68a(0x165)](_0x52af5a);expect(_0x2de6ef[_0x39a68a(0x136)])[_0x39a68a(0x16d)]('req-123'),expect(mockPost)['toHaveBeen'+'CalledWith'](expect['stringCont'+_0x39a68a(0x129)](_0x39a68a(0x139)+_0x39a68a(0x132)+_0x39a68a(0x149)),expect[_0x39a68a(0x15f)+'aining']({'memo':expect[_0x39a68a(0x153)+'aining'](_0x39a68a(0x166))}),expect[_0x39a68a(0x163)]());});}),describe(_0x3bbe40(0x14d)+_0x3bbe40(0x16b),()=>{const _0x2b54c9=_0x3bbe40;it(_0x904db5[_0x2b54c9(0x151)],async()=>{const _0x51a43d=_0x2b54c9,_0x5e2cd0={};_0x5e2cd0[_0x51a43d(0x131)]=_0x51a43d(0x142),_0x5e2cd0[_0x51a43d(0x12c)]='ANALYSIS',_0x5e2cd0[_0x51a43d(0x13d)]=_0x51a43d(0x155);const _0x6de7ab={};_0x6de7ab[_0x51a43d(0x157)]=_0x5e2cd0;const _0x49e83a=_0x6de7ab;mockGet[_0x51a43d(0x135)+_0x51a43d(0x137)](_0x49e83a);const _0x1561bf=await _0x24afee['getAnalysi'+'sStatus'](_0x51a43d(0x15e));expect(_0x1561bf[_0x51a43d(0x12c)])[_0x51a43d(0x16d)](_0x51a43d(0x159));});}),describe(_0x3bbe40(0x167)+_0x3bbe40(0x12d)+'on',()=>{const _0x1582ba=_0x3bbe40;it(_0x1582ba(0x15a)+_0x1582ba(0x158)+_0x1582ba(0x143),async()=>{const _0x3177a0=_0x1582ba,_0x300419={};_0x300419[_0x3177a0(0x12c)]=_0x3177a0(0x159),_0x300419[_0x3177a0(0x13d)]=_0x904db5[_0x3177a0(0x150)];const _0x2a2fbd={};_0x2a2fbd['data']=_0x300419;const _0x322789={};_0x322789['status']=_0x3177a0(0x159),_0x322789[_0x3177a0(0x13d)]='PROCESSING';const _0xfc947e={};_0xfc947e['data']=_0x322789;const _0x47642c={};_0x47642c[_0x3177a0(0x12c)]=_0x3177a0(0x16e),_0x47642c[_0x3177a0(0x13d)]=_0x904db5[_0x3177a0(0x16c)];const _0x44a0bc={};_0x44a0bc['data']=_0x47642c,mockGet['mockResolv'+'edValueOnc'+'e'](_0x2a2fbd)[_0x3177a0(0x135)+_0x3177a0(0x16f)+'e'](_0xfc947e)[_0x3177a0(0x135)+_0x3177a0(0x137)](_0x44a0bc);const _0x457227=await _0x24afee[_0x3177a0(0x167)+_0x3177a0(0x12d)+'on'](_0x3177a0(0x15e),0x5,0xa);expect(_0x457227[_0x3177a0(0x12c)])[_0x3177a0(0x16d)](_0x3177a0(0x16e)),expect(mockGet)['toHaveBeen'+_0x3177a0(0x146)+'s'](0x3);}),it(_0x1582ba(0x15d)+_0x1582ba(0x138)+_0x1582ba(0x15b),async()=>{const _0x1abbe3=_0x1582ba,_0x4bb75c={};_0x4bb75c[_0x1abbe3(0x12c)]=_0x1abbe3(0x159),_0x4bb75c[_0x1abbe3(0x13d)]=_0x1abbe3(0x155);const _0x2fd607={};_0x2fd607[_0x1abbe3(0x157)]=_0x4bb75c,mockGet[_0x1abbe3(0x135)+_0x1abbe3(0x137)](_0x2fd607);try{await _0x24afee['pollAnalys'+_0x1abbe3(0x12d)+'on'](_0x1abbe3(0x15e),0x3,0xa);}catch(_0x70e3ef){expect(_0x70e3ef[_0x1abbe3(0x171)])[_0x1abbe3(0x12e)]('초과');}});});});
|