@sparrowai/sparrow-mcp 1.1.12 → 1.1.13

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.
Files changed (53) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/scripts/mcp-test/mcp-client.js +1 -1
  3. package/dist/scripts/test-runner/check-failed-tests.js +1 -1
  4. package/dist/scripts/test-runner/compare-responses.js +1 -1
  5. package/dist/scripts/test-runner/standalone-test-fixed-header.js +1 -1
  6. package/dist/scripts/test-runner/standalone-test.js +1 -1
  7. package/dist/src/config/appConfig.js +1 -1
  8. package/dist/src/config/constants.js +1 -1
  9. package/dist/src/controllers/__tests__/analysis.controller.test.js +1 -1
  10. package/dist/src/controllers/__tests__/sast.controller.test.js +1 -1
  11. package/dist/src/controllers/__tests__/sca.controller.test.js +1 -1
  12. package/dist/src/controllers/__tests__/security.controller.test.js +1 -1
  13. package/dist/src/controllers/__tests__/system.controller.test.js +1 -1
  14. package/dist/src/controllers/analysis.controller.js +1 -1
  15. package/dist/src/controllers/sast.controller.js +1 -1
  16. package/dist/src/controllers/sca.controller.js +1 -1
  17. package/dist/src/controllers/security.controller.js +1 -1
  18. package/dist/src/controllers/system.controller.js +1 -1
  19. package/dist/src/schemas/tool.schemas.js +1 -1
  20. package/dist/src/server.js +1 -1
  21. package/dist/src/services/__tests__/analysis.remediation.spec.d.ts +1 -0
  22. package/dist/src/services/__tests__/analysis.remediation.spec.js +1 -0
  23. package/dist/src/services/__tests__/analysis.remediation.test.js +1 -1
  24. package/dist/src/services/__tests__/analysis.service.sca.test.js +1 -1
  25. package/dist/src/services/__tests__/analysis.service.test.js +1 -1
  26. package/dist/src/services/__tests__/checker.service.test.js +1 -1
  27. package/dist/src/services/__tests__/llm.service.test.js +1 -1
  28. package/dist/src/services/__tests__/s3.service.test.js +1 -1
  29. package/dist/src/services/__tests__/sparrow.service.test.js +1 -1
  30. package/dist/src/services/analysis.service.js +1 -1
  31. package/dist/src/services/checker.service.js +1 -1
  32. package/dist/src/services/llm/AnthropicProvider.js +1 -1
  33. package/dist/src/services/llm/BedrockProvider.js +1 -1
  34. package/dist/src/services/llm/GeminiProvider.js +1 -1
  35. package/dist/src/services/llm/LLMFactory.js +1 -1
  36. package/dist/src/services/llm/LLMProvider.js +1 -1
  37. package/dist/src/services/llm/OllamaProvider.js +1 -1
  38. package/dist/src/services/llm/OpenAIProvider.js +1 -1
  39. package/dist/src/services/llm.service.js +1 -1
  40. package/dist/src/services/s3.service.js +1 -1
  41. package/dist/src/services/sparrow.service.js +1 -1
  42. package/dist/src/types/types.js +1 -1
  43. package/dist/src/utils/__tests__/crypto.util.test.js +1 -1
  44. package/dist/src/utils/__tests__/diff.util.test.js +1 -1
  45. package/dist/src/utils/__tests__/fileManager.test.js +1 -1
  46. package/dist/src/utils/__tests__/fileManagerSecure.test.js +1 -1
  47. package/dist/src/utils/__tests__/logger.test.js +1 -1
  48. package/dist/src/utils/crypto.util.js +1 -1
  49. package/dist/src/utils/diff.util.js +1 -1
  50. package/dist/src/utils/fileManager.js +1 -1
  51. package/dist/src/utils/fileManagerSecure.js +1 -1
  52. package/dist/src/utils/logger.js +1 -1
  53. package/package.json +1 -1
@@ -1 +1 @@
1
- const a9_0x3c3a21=a9_0x3d82;function a9_0x3d82(_0x162d61,_0x48f703){_0x162d61=_0x162d61-0xb1;const _0x36dba8=a9_0x296f();let _0x32111c=_0x36dba8[_0x162d61];return _0x32111c;}(function(_0x3aa603,_0x2455fb){const _0x52f6cb=a9_0x3d82,_0x2a106a=_0x3aa603();while(!![]){try{const _0x8a578d=parseInt(_0x52f6cb(0xc1))/0x1+-parseInt(_0x52f6cb(0xbe))/0x2*(parseInt(_0x52f6cb(0x109))/0x3)+-parseInt(_0x52f6cb(0xee))/0x4+parseInt(_0x52f6cb(0xbb))/0x5+-parseInt(_0x52f6cb(0x119))/0x6+parseInt(_0x52f6cb(0x113))/0x7*(parseInt(_0x52f6cb(0x11a))/0x8)+parseInt(_0x52f6cb(0xda))/0x9*(-parseInt(_0x52f6cb(0xbf))/0xa);if(_0x8a578d===_0x2455fb)break;else _0x2a106a['push'](_0x2a106a['shift']());}catch(_0x14a2c5){_0x2a106a['push'](_0x2a106a['shift']());}}}(a9_0x296f,0x350f7));const a9_0x595072=(function(){let _0x3d7660=!![];return function(_0x2d08a9,_0x58725e){const _0x316663=_0x3d7660?function(){const _0x107a5e=a9_0x3d82;if(_0x58725e){const _0x8fb65b=_0x58725e[_0x107a5e(0xe0)](_0x2d08a9,arguments);return _0x58725e=null,_0x8fb65b;}}:function(){};return _0x3d7660=![],_0x316663;};}()),a9_0x32111c=a9_0x595072(this,function(){const _0x91ecdb=a9_0x3d82;return a9_0x32111c[_0x91ecdb(0xf8)]()['search'](_0x91ecdb(0xc7)+'+$')[_0x91ecdb(0xf8)]()[_0x91ecdb(0xd0)+'r'](a9_0x32111c)[_0x91ecdb(0x125)]('(((.+)+)+)'+'+$');});a9_0x32111c();import{logger}from'../utils/logger.js';function a9_0x296f(){const _0x59fa88=['rted.\x0aFile','\x0a\x0aSkipped\x20','text','content','length','\x20download\x20','filePathCo','constructo','sted:\x20','Folder\x20pat','type','is\x20has\x20sta','ysis\x20faile','ne\x20file\x20pa','join','aths\x20array','Unknown\x20er','2070EkaNpk','Failed\x20to\x20','rted.\x0aNumb','Single\x20fil','Sca','analysisTy','apply','ath\x20not\x20pr','\x20requires\x20','ted:\x20','er\x20of\x20file','files','ID:\x20','isError','s\x20requeste','is\x20request','CA\x20analysi','SCA\x20analys','th.','sis\x20failed','692276UpqEQz','eSca','SBOM\x20files','analysisSe','folderPath','No\x20files\x20t','message','info','zipFilePat','IQbPW','toString','Content','requested:','Folder\x20SCA','File\x20paths','folders\x20(','RoCca','s\x20failed:','\x20not\x20provi','filePath','structured','File\x20path\x20','KhaKq','d:\x20','esSca','status','er:\x20','3fKyphO','\x20failed:\x20','trim','analyzeZip','bTQHy','error','sAEhB','\x0aAnalysis\x20','ded','ror','88424otvWag','rvice','for\x20analys','rted.\x0aZIP\x20','ed.','\x20paths:\x20','185184JYeyCr','160pwpIei','derSca','ZIP\x20file\x20p','ovided.','ovided','BOM\x20files:','ided','e\x20SCA\x20anal','ajHFJ','at\x20least\x20o','\x0aStatus:\x20','search','failed:','\x20downloade','h\x20not\x20prov','ZIP\x20file\x20S','\x20analysis\x20','analyzeFol','Multi-file','omFiles','OtUcx','not\x20provid','Type:\x20','306720hLcNhU','les\x20found\x20','unt','137914bDElWt','710zLOkSl','ders','192571omYbig','ysis\x20reque','skippedFol','analyzeFil','sis\x20reques','No\x20SBOM\x20fi','(((.+)+)+)','analysisId'];a9_0x296f=function(){return _0x59fa88;};return a9_0x296f();}export class ScaController{[a9_0x3c3a21(0xf1)+a9_0x3c3a21(0x114)];constructor(_0x4de0fc){this['analysisSe'+'rvice']=_0x4de0fc;}async[a9_0x3c3a21(0xc4)+a9_0x3c3a21(0xef)]({filePath:_0x55cec5,zipFileName:_0xc55f93,memo:_0x2206ae,isSbom:_0x156d6f}){const _0x137e6e=a9_0x3c3a21,_0x34cc70={};_0x34cc70['IQbPW']=_0x137e6e(0xd9)+_0x137e6e(0x112);const _0x483a04=_0x34cc70;try{if(!_0x55cec5||_0x55cec5[_0x137e6e(0x10b)]()[_0x137e6e(0xcd)]===0x0){const _0x9700f3={};_0x9700f3[_0x137e6e(0xd3)]=_0x137e6e(0xcb),_0x9700f3[_0x137e6e(0xcb)]='File\x20path\x20'+_0x137e6e(0xb9)+_0x137e6e(0x117);const _0x21cc27={};_0x21cc27[_0x137e6e(0x10e)]=_0x137e6e(0x103)+'not\x20provid'+'ed';const _0x173e77={};return _0x173e77[_0x137e6e(0xcc)]=[_0x9700f3],_0x173e77[_0x137e6e(0x102)+_0x137e6e(0xf9)]=_0x21cc27,_0x173e77;}logger[_0x137e6e(0xf5)]('Single\x20fil'+_0x137e6e(0x121)+_0x137e6e(0xc2)+_0x137e6e(0xd1)+_0x55cec5);const _0x5c3371=await this[_0x137e6e(0xf1)+_0x137e6e(0x114)][_0x137e6e(0xc4)+_0x137e6e(0xef)](_0x55cec5,_0xc55f93,_0x2206ae,_0x156d6f),_0x3b53a1=_0x137e6e(0xeb)+_0x137e6e(0xd4)+_0x137e6e(0xc9)+':\x20'+_0x55cec5+(_0x137e6e(0x110)+_0x137e6e(0xe6))+_0x5c3371['analysisId']+_0x137e6e(0x124)+_0x5c3371[_0x137e6e(0x107)]+(_0x137e6e(0x110)+_0x137e6e(0xba))+_0x5c3371[_0x137e6e(0xdf)+'pe'],_0x3de347={};_0x3de347[_0x137e6e(0xd3)]='text',_0x3de347[_0x137e6e(0xcb)]=_0x3b53a1;const _0xe8698c={};_0xe8698c['analysisId']=_0x5c3371[_0x137e6e(0xc8)],_0xe8698c[_0x137e6e(0x107)]=_0x5c3371[_0x137e6e(0x107)],_0xe8698c[_0x137e6e(0x101)]=_0x55cec5,_0xe8698c[_0x137e6e(0xdf)+'pe']=_0x5c3371[_0x137e6e(0xdf)+'pe'];const _0x231e05={};return _0x231e05['content']=[_0x3de347],_0x231e05[_0x137e6e(0x102)+_0x137e6e(0xf9)]=_0xe8698c,_0x231e05;}catch(_0x22d60b){logger[_0x137e6e(0x10e)](_0x137e6e(0xdd)+_0x137e6e(0x121)+_0x137e6e(0xd5)+'d:',_0x22d60b);const _0x4ce26c={};_0x4ce26c[_0x137e6e(0xd3)]=_0x137e6e(0xcb),_0x4ce26c[_0x137e6e(0xcb)]=_0x137e6e(0xeb)+_0x137e6e(0xe9)+_0x137e6e(0x10a)+(_0x22d60b instanceof Error?_0x22d60b['message']:'Unknown\x20er'+_0x137e6e(0x112));const _0x13ea40={};_0x13ea40['error']=_0x22d60b instanceof Error?_0x22d60b[_0x137e6e(0xf4)]:_0x483a04[_0x137e6e(0xf7)];const _0x20ea31={};return _0x20ea31[_0x137e6e(0xcc)]=[_0x4ce26c],_0x20ea31['structured'+_0x137e6e(0xf9)]=_0x13ea40,_0x20ea31;}}async['analyzeFil'+a9_0x3c3a21(0x106)]({filePaths:_0x15a58d,zipFileName:_0x53866f,memo:_0x26569f,isSbom:_0x3561f3}){const _0x4d85dc=a9_0x3c3a21,_0x342f1e={};_0x342f1e[_0x4d85dc(0x104)]=_0x4d85dc(0xfc)+_0x4d85dc(0x100)+_0x4d85dc(0x111);const _0x58fcf6=_0x342f1e;try{if(!_0x15a58d||_0x15a58d[_0x4d85dc(0xcd)]===0x0){const _0x1c5b6a={};_0x1c5b6a[_0x4d85dc(0xd3)]=_0x4d85dc(0xcb),_0x1c5b6a[_0x4d85dc(0xcb)]=_0x4d85dc(0xf3)+'o\x20analyze.'+'\x20The\x20fileP'+_0x4d85dc(0xd8)+_0x4d85dc(0xe2)+_0x4d85dc(0x123)+_0x4d85dc(0xd6)+_0x4d85dc(0xec);const _0x5238c6={};_0x5238c6[_0x4d85dc(0x10e)]=_0x58fcf6['KhaKq'];const _0x527d18={};return _0x527d18[_0x4d85dc(0xcc)]=[_0x1c5b6a],_0x527d18['structured'+_0x4d85dc(0xf9)]=_0x5238c6,_0x527d18;}logger['info'](_0x4d85dc(0xb6)+'\x20SCA\x20analy'+_0x4d85dc(0xc5)+_0x4d85dc(0xe3)+_0x15a58d[_0x4d85dc(0xcd)]+('\x20file\x20path'+'s'));const _0xbda15e=await this[_0x4d85dc(0xf1)+_0x4d85dc(0x114)][_0x4d85dc(0xc4)+_0x4d85dc(0x106)](_0x15a58d,_0x53866f,_0x26569f,_0x3561f3),_0xef0828=_0x4d85dc(0xeb)+_0x4d85dc(0xd4)+_0x4d85dc(0xdc)+_0x4d85dc(0xe4)+_0x4d85dc(0x118)+_0x15a58d['length']+(_0x4d85dc(0x110)+_0x4d85dc(0xe6))+_0xbda15e['analysisId']+_0x4d85dc(0x124)+_0xbda15e[_0x4d85dc(0x107)]+(_0x4d85dc(0x110)+_0x4d85dc(0xba))+_0xbda15e['analysisTy'+'pe'],_0x516ee0={};_0x516ee0[_0x4d85dc(0xd3)]='text',_0x516ee0[_0x4d85dc(0xcb)]=_0xef0828;const _0x41eeec={};_0x41eeec[_0x4d85dc(0xc8)]=_0xbda15e['analysisId'],_0x41eeec[_0x4d85dc(0x107)]=_0xbda15e[_0x4d85dc(0x107)],_0x41eeec[_0x4d85dc(0xcf)+_0x4d85dc(0xbd)]=_0x15a58d['length'],_0x41eeec[_0x4d85dc(0xdf)+'pe']=_0xbda15e['analysisTy'+'pe'];const _0x30d408={};return _0x30d408[_0x4d85dc(0xcc)]=[_0x516ee0],_0x30d408[_0x4d85dc(0x102)+_0x4d85dc(0xf9)]=_0x41eeec,_0x30d408;}catch(_0x170f2b){logger[_0x4d85dc(0x10e)]('Multi-file'+'\x20SCA\x20analy'+_0x4d85dc(0xed)+':',_0x170f2b);const _0x32e803={};_0x32e803[_0x4d85dc(0xd3)]=_0x4d85dc(0xcb),_0x32e803[_0x4d85dc(0xcb)]=_0x4d85dc(0xeb)+_0x4d85dc(0xe9)+_0x4d85dc(0x10a)+(_0x170f2b instanceof Error?_0x170f2b['message']:_0x4d85dc(0xd9)+_0x4d85dc(0x112));const _0x13ec19={};_0x13ec19[_0x4d85dc(0x10e)]=_0x170f2b instanceof Error?_0x170f2b[_0x4d85dc(0xf4)]:_0x4d85dc(0xd9)+_0x4d85dc(0x112);const _0x2dc36f={};return _0x2dc36f[_0x4d85dc(0xcc)]=[_0x32e803],_0x2dc36f['structured'+_0x4d85dc(0xf9)]=_0x13ec19,_0x2dc36f;}}async['analyzeFol'+a9_0x3c3a21(0x11b)]({folderPath:_0xde4177,zipFileName:_0x46c171,memo:_0x598a56,isSbom:_0x4fdcfc}){const _0xf3cae0=a9_0x3c3a21,_0x48580b={};_0x48580b[_0xf3cae0(0x122)]=_0xf3cae0(0xd2)+_0xf3cae0(0xb2)+'ided.',_0x48580b[_0xf3cae0(0x10f)]=function(_0x5e8d10,_0x242d78){return _0x5e8d10 instanceof _0x242d78;};const _0x2c6dea=_0x48580b;try{if(!_0xde4177||_0xde4177[_0xf3cae0(0x10b)]()[_0xf3cae0(0xcd)]===0x0){const _0x10b344={};_0x10b344[_0xf3cae0(0xd3)]='text',_0x10b344[_0xf3cae0(0xcb)]=_0x2c6dea[_0xf3cae0(0x122)];const _0x5268bf={};_0x5268bf[_0xf3cae0(0x10e)]=_0xf3cae0(0xd2)+_0xf3cae0(0xb2)+_0xf3cae0(0x120);const _0x395a5c={};return _0x395a5c[_0xf3cae0(0xcc)]=[_0x10b344],_0x395a5c[_0xf3cae0(0x102)+'Content']=_0x5268bf,_0x395a5c;}logger['info'](_0xf3cae0(0xfb)+_0xf3cae0(0xb4)+_0xf3cae0(0xfa)+'\x20'+_0xde4177);const _0x26283c=await this[_0xf3cae0(0xf1)+_0xf3cae0(0x114)][_0xf3cae0(0xb5)+_0xf3cae0(0x11b)](_0xde4177,_0x46c171,_0x598a56,_0x4fdcfc);let _0x57bb27='SCA\x20analys'+_0xf3cae0(0xd4)+'rted.\x0aFold'+_0xf3cae0(0x108)+_0xde4177+('\x0aAnalysis\x20'+_0xf3cae0(0xe6))+_0x26283c[_0xf3cae0(0xc8)]+_0xf3cae0(0x124)+_0x26283c['status']+(_0xf3cae0(0x110)+_0xf3cae0(0xba))+_0x26283c[_0xf3cae0(0xdf)+'pe'];_0x26283c[_0xf3cae0(0xc3)+_0xf3cae0(0xc0)]&&_0x26283c['skippedFol'+_0xf3cae0(0xc0)]['length']>0x0&&(_0x57bb27+=_0xf3cae0(0xca)+_0xf3cae0(0xfd)+_0x26283c[_0xf3cae0(0xc3)+_0xf3cae0(0xc0)]['length']+'):\x20'+_0x26283c[_0xf3cae0(0xc3)+'ders'][_0xf3cae0(0xd7)](',\x20'));const _0xad9a72={};_0xad9a72['type']=_0xf3cae0(0xcb),_0xad9a72['text']=_0x57bb27;const _0x26eeb6={};_0x26eeb6[_0xf3cae0(0xc8)]=_0x26283c[_0xf3cae0(0xc8)],_0x26eeb6['status']=_0x26283c[_0xf3cae0(0x107)],_0x26eeb6[_0xf3cae0(0xf2)]=_0xde4177,_0x26eeb6[_0xf3cae0(0xdf)+'pe']=_0x26283c['analysisTy'+'pe'],_0x26eeb6[_0xf3cae0(0xc3)+_0xf3cae0(0xc0)]=_0x26283c[_0xf3cae0(0xc3)+_0xf3cae0(0xc0)];const _0x387c52={};return _0x387c52[_0xf3cae0(0xcc)]=[_0xad9a72],_0x387c52[_0xf3cae0(0x102)+'Content']=_0x26eeb6,_0x387c52;}catch(_0x5a09f7){return logger[_0xf3cae0(0x10e)](_0xf3cae0(0xfb)+_0xf3cae0(0xb4)+_0xf3cae0(0x126),_0x5a09f7),{'content':[{'type':_0xf3cae0(0xcb),'text':'SCA\x20analys'+'is\x20request'+_0xf3cae0(0x10a)+(_0x2c6dea['sAEhB'](_0x5a09f7,Error)?_0x5a09f7[_0xf3cae0(0xf4)]:_0xf3cae0(0xd9)+_0xf3cae0(0x112))}],'structuredContent':{'error':_0x5a09f7 instanceof Error?_0x5a09f7[_0xf3cae0(0xf4)]:'Unknown\x20er'+_0xf3cae0(0x112)}};}}async[a9_0x3c3a21(0x10c)+a9_0x3c3a21(0xde)]({zipFilePath:_0x1f1190,zipFileName:_0x2ab52c,memo:_0x18b2d8,isSbom:_0x10e39e}){const _0xdfff63=a9_0x3c3a21,_0x3f372a={};_0x3f372a['OtUcx']=function(_0x4f9f1d,_0x1146cc){return _0x4f9f1d===_0x1146cc;},_0x3f372a[_0xdfff63(0x10d)]=_0xdfff63(0xd9)+_0xdfff63(0x112),_0x3f372a[_0xdfff63(0xfe)]=function(_0x5068f2,_0x254c29){return _0x5068f2 instanceof _0x254c29;};const _0x465833=_0x3f372a;try{if(!_0x1f1190||_0x465833[_0xdfff63(0xb8)](_0x1f1190[_0xdfff63(0x10b)]()['length'],0x0)){const _0x3e2154={};_0x3e2154['type']=_0xdfff63(0xcb),_0x3e2154['text']=_0xdfff63(0x11c)+_0xdfff63(0xe1)+_0xdfff63(0x11d);const _0x31ddde={};_0x31ddde[_0xdfff63(0x10e)]=_0xdfff63(0x11c)+'ath\x20not\x20pr'+_0xdfff63(0x11e);const _0x23bab4={};return _0x23bab4[_0xdfff63(0xcc)]=[_0x3e2154],_0x23bab4[_0xdfff63(0x102)+_0xdfff63(0xf9)]=_0x31ddde,_0x23bab4;}logger[_0xdfff63(0xf5)]('ZIP\x20file\x20S'+_0xdfff63(0xea)+_0xdfff63(0xe8)+_0xdfff63(0x105)+_0x1f1190);const _0x251125=await this['analysisSe'+'rvice'][_0xdfff63(0x10c)+_0xdfff63(0xde)](_0x1f1190,_0x2ab52c,_0x18b2d8,_0x10e39e),_0x1b5603=_0xdfff63(0xeb)+_0xdfff63(0xd4)+_0xdfff63(0x116)+'File:\x20'+_0x1f1190+('\x0aAnalysis\x20'+_0xdfff63(0xe6))+_0x251125[_0xdfff63(0xc8)]+_0xdfff63(0x124)+_0x251125[_0xdfff63(0x107)]+(_0xdfff63(0x110)+_0xdfff63(0xba))+_0x251125[_0xdfff63(0xdf)+'pe'],_0x129d9e={};_0x129d9e['type']=_0xdfff63(0xcb),_0x129d9e['text']=_0x1b5603;const _0x29e6cd={};_0x29e6cd[_0xdfff63(0xc8)]=_0x251125['analysisId'],_0x29e6cd[_0xdfff63(0x107)]=_0x251125[_0xdfff63(0x107)],_0x29e6cd[_0xdfff63(0xf6)+'h']=_0x1f1190,_0x29e6cd['analysisTy'+'pe']=_0x251125['analysisTy'+'pe'];const _0x5e7d64={};return _0x5e7d64[_0xdfff63(0xcc)]=[_0x129d9e],_0x5e7d64['structured'+_0xdfff63(0xf9)]=_0x29e6cd,_0x5e7d64;}catch(_0x44688a){logger['error'](_0xdfff63(0xb3)+_0xdfff63(0xea)+_0xdfff63(0xff),_0x44688a);const _0x233049={};return _0x233049[_0xdfff63(0xd3)]=_0xdfff63(0xcb),_0x233049[_0xdfff63(0xcb)]=_0xdfff63(0xeb)+_0xdfff63(0xe9)+_0xdfff63(0x10a)+(_0x44688a instanceof Error?_0x44688a[_0xdfff63(0xf4)]:_0x465833[_0xdfff63(0x10d)]),{'content':[_0x233049],'structuredContent':{'error':_0x465833['RoCca'](_0x44688a,Error)?_0x44688a['message']:'Unknown\x20er'+_0xdfff63(0x112)}};}}async['downloadSb'+a9_0x3c3a21(0xb7)]({analysisId:_0x11a391}){const _0x4bb754=a9_0x3c3a21;try{logger[_0x4bb754(0xf5)](_0x4bb754(0xf0)+_0x4bb754(0xce)+_0x4bb754(0xfa)+'\x20'+_0x11a391);const _0xb416aa=await this['analysisSe'+_0x4bb754(0x114)]['downloadSb'+_0x4bb754(0xb7)](_0x11a391);if(_0xb416aa[_0x4bb754(0xcd)]===0x0){const _0x3a79a3={};_0x3a79a3[_0x4bb754(0xd3)]=_0x4bb754(0xcb),_0x3a79a3[_0x4bb754(0xcb)]=_0x4bb754(0xc6)+_0x4bb754(0xbc)+_0x4bb754(0x115)+'is\x20ID:\x20'+_0x11a391;const _0x1dd027={};_0x1dd027['analysisId']=_0x11a391,_0x1dd027[_0x4bb754(0xe5)]=[];const _0x1e3505={};return _0x1e3505[_0x4bb754(0xcc)]=[_0x3a79a3],_0x1e3505['structured'+'Content']=_0x1dd027,_0x1e3505;}const _0x993055=_0xb416aa['map'](_0x242582=>'-\x20'+_0x242582)[_0x4bb754(0xd7)]('\x0a'),_0x562f62={};_0x562f62[_0x4bb754(0xd3)]=_0x4bb754(0xcb),_0x562f62['text']=_0x4bb754(0xf0)+_0x4bb754(0xb1)+'d\x20successf'+'ully:\x0a'+_0x993055;const _0xb714f={};_0xb714f[_0x4bb754(0xc8)]=_0x11a391,_0xb714f[_0x4bb754(0xe5)]=_0xb416aa;const _0x2b2adf={};return _0x2b2adf[_0x4bb754(0xcc)]=[_0x562f62],_0x2b2adf[_0x4bb754(0x102)+'Content']=_0xb714f,_0x2b2adf;}catch(_0x3cd9ff){logger[_0x4bb754(0x10e)]('Failed\x20to\x20'+'download\x20S'+_0x4bb754(0x11f),_0x3cd9ff);const _0x3187bb={};_0x3187bb['type']=_0x4bb754(0xcb),_0x3187bb['text']=_0x4bb754(0xdb)+'download\x20S'+_0x4bb754(0x11f)+'\x20'+(_0x3cd9ff instanceof Error?_0x3cd9ff['message']:'Unknown\x20er'+_0x4bb754(0x112));const _0x276b7b={};_0x276b7b['error']=_0x3cd9ff instanceof Error?_0x3cd9ff['message']:_0x4bb754(0xd9)+_0x4bb754(0x112);const _0x2d7e57={};return _0x2d7e57[_0x4bb754(0xcc)]=[_0x3187bb],_0x2d7e57[_0x4bb754(0x102)+_0x4bb754(0xf9)]=_0x276b7b,_0x2d7e57[_0x4bb754(0xe7)]=!![],_0x2d7e57;}}}
1
+ function a9_0x296d(_0x126de9,_0x4111f4){_0x126de9=_0x126de9-0x12d;const _0x3d2aeb=a9_0x1d4c();let _0x139d65=_0x3d2aeb[_0x126de9];return _0x139d65;}const a9_0x1436cc=a9_0x296d;(function(_0x22594f,_0x508d81){const _0x15da68=a9_0x296d,_0x14c1ae=_0x22594f();while(!![]){try{const _0x3b1fa3=-parseInt(_0x15da68(0x191))/0x1*(parseInt(_0x15da68(0x171))/0x2)+parseInt(_0x15da68(0x149))/0x3+-parseInt(_0x15da68(0x163))/0x4*(parseInt(_0x15da68(0x15a))/0x5)+parseInt(_0x15da68(0x193))/0x6+-parseInt(_0x15da68(0x16e))/0x7+-parseInt(_0x15da68(0x197))/0x8*(parseInt(_0x15da68(0x180))/0x9)+-parseInt(_0x15da68(0x182))/0xa*(-parseInt(_0x15da68(0x15d))/0xb);if(_0x3b1fa3===_0x508d81)break;else _0x14c1ae['push'](_0x14c1ae['shift']());}catch(_0x3b5409){_0x14c1ae['push'](_0x14c1ae['shift']());}}}(a9_0x1d4c,0x8e5b8));const a9_0x30f6fe=(function(){let _0xaec179=!![];return function(_0x414dbb,_0x238f69){const _0x51bcb5=_0xaec179?function(){const _0x502e6f=a9_0x296d;if(_0x238f69){const _0x53eae8=_0x238f69[_0x502e6f(0x18b)](_0x414dbb,arguments);return _0x238f69=null,_0x53eae8;}}:function(){};return _0xaec179=![],_0x51bcb5;};}()),a9_0x139d65=a9_0x30f6fe(this,function(){const _0x2f0e96=a9_0x296d;return a9_0x139d65['toString']()[_0x2f0e96(0x135)](_0x2f0e96(0x18d)+'+$')[_0x2f0e96(0x18f)]()[_0x2f0e96(0x17b)+'r'](a9_0x139d65)['search']('(((.+)+)+)'+'+$');});a9_0x139d65();function a9_0x1d4c(){const _0x252725=['download\x20S','Multi-file','sis\x20reques','folders\x20(','analyzeFol','ed.','SBOM\x20files','analyzeFil','apply','Type:\x20','(((.+)+)+)','trim','toString','o\x20analyze.','17GtwEte','analysisId','3166632QyYIxC','\x20downloade','Content','):\x20','24pjziIw','files','esSca','er\x20of\x20file','ID:\x20','ovided','rvice','at\x20least\x20o','Folder\x20SCA','CA\x20analysi','omFiles','cXRJp','\x20file\x20path','search','BHiew','\x20failed:\x20','ovided.','skippedFol','rted.\x0aZIP\x20','for\x20analys','\x0aStatus:\x20','ided.','\x0aAnalysis\x20','e\x20SCA\x20anal','No\x20files\x20t','content','\x20paths:\x20','th.','BOM\x20files:','join','analysisSe','Sca','is\x20request','2576409nOulTp','folderPath','requested:','Folder\x20pat','ders','\x20requires\x20','analyzeZip','structured','\x20analysis\x20','status','File:\x20','s\x20requeste','unt','aths\x20array','text','length','ne\x20file\x20pa','5duvvRJ','File\x20paths','\x20not\x20provi','74239oPZnGa','SCA\x20analys','downloadSb','KTEJn','eSca','cDVjC','344028bBWomW','ysis\x20faile','rted.\x0aFold','Unknown\x20er','File\x20path\x20','s\x20failed:','rted.\x0aNumb','type','analysisTy','info','error','7830963nRhtne','Failed\x20to\x20','message','70002SNiTna','derSca','ath\x20not\x20pr','is\x20has\x20sta','ded','VXUtd','zipFilePat','ror','sted:\x20','ully:\x0a','constructo','Single\x20fil','not\x20provid','ZIP\x20file\x20S','\x20SCA\x20analy','1587060dcrxUz','d\x20successf','2260PnwOBz'];a9_0x1d4c=function(){return _0x252725;};return a9_0x1d4c();}import{logger}from'../utils/logger.js';export class ScaController{[a9_0x1436cc(0x146)+'rvice'];constructor(_0x407b63){const _0x2c1f16=a9_0x1436cc;this[_0x2c1f16(0x146)+_0x2c1f16(0x12e)]=_0x407b63;}async[a9_0x1436cc(0x18a)+a9_0x1436cc(0x161)]({filePath:_0x32e961,zipFileName:_0x47dde2,memo:_0xe51942,isSbom:_0x192b9b}){const _0x18e5f5=a9_0x1436cc;try{if(!_0x32e961||_0x32e961[_0x18e5f5(0x18e)]()[_0x18e5f5(0x158)]===0x0){const _0x58edd0={};_0x58edd0['type']=_0x18e5f5(0x157),_0x58edd0[_0x18e5f5(0x157)]=_0x18e5f5(0x167)+_0x18e5f5(0x17d)+_0x18e5f5(0x188);const _0xd2baa5={};_0xd2baa5[_0x18e5f5(0x16d)]=_0x18e5f5(0x167)+_0x18e5f5(0x17d)+'ed';const _0x2cf9a1={};return _0x2cf9a1[_0x18e5f5(0x141)]=[_0x58edd0],_0x2cf9a1[_0x18e5f5(0x150)+_0x18e5f5(0x195)]=_0xd2baa5,_0x2cf9a1;}logger[_0x18e5f5(0x16c)](_0x18e5f5(0x17c)+_0x18e5f5(0x13f)+'ysis\x20reque'+_0x18e5f5(0x179)+_0x32e961);const _0x346cc2=await this['analysisSe'+_0x18e5f5(0x12e)]['analyzeFil'+_0x18e5f5(0x161)](_0x32e961,_0x47dde2,_0xe51942,_0x192b9b),_0xb433e9=_0x18e5f5(0x15e)+'is\x20has\x20sta'+'rted.\x0aFile'+':\x20'+_0x32e961+(_0x18e5f5(0x13e)+_0x18e5f5(0x19b))+_0x346cc2['analysisId']+_0x18e5f5(0x13c)+_0x346cc2[_0x18e5f5(0x152)]+(_0x18e5f5(0x13e)+_0x18e5f5(0x18c))+_0x346cc2[_0x18e5f5(0x16b)+'pe'],_0x503769={};_0x503769[_0x18e5f5(0x16a)]=_0x18e5f5(0x157),_0x503769[_0x18e5f5(0x157)]=_0xb433e9;const _0x52f97b={};_0x52f97b[_0x18e5f5(0x192)]=_0x346cc2[_0x18e5f5(0x192)],_0x52f97b['status']=_0x346cc2[_0x18e5f5(0x152)],_0x52f97b['filePath']=_0x32e961,_0x52f97b[_0x18e5f5(0x16b)+'pe']=_0x346cc2[_0x18e5f5(0x16b)+'pe'];const _0x31f9eb={};return _0x31f9eb[_0x18e5f5(0x141)]=[_0x503769],_0x31f9eb[_0x18e5f5(0x150)+_0x18e5f5(0x195)]=_0x52f97b,_0x31f9eb;}catch(_0x3c410c){logger[_0x18e5f5(0x16d)](_0x18e5f5(0x17c)+_0x18e5f5(0x13f)+_0x18e5f5(0x164)+'d:',_0x3c410c);const _0x20be4b={};_0x20be4b[_0x18e5f5(0x16a)]=_0x18e5f5(0x157),_0x20be4b[_0x18e5f5(0x157)]=_0x18e5f5(0x15e)+_0x18e5f5(0x148)+_0x18e5f5(0x137)+(_0x3c410c instanceof Error?_0x3c410c[_0x18e5f5(0x170)]:_0x18e5f5(0x166)+_0x18e5f5(0x178));const _0xc105eb={};_0xc105eb['error']=_0x3c410c instanceof Error?_0x3c410c[_0x18e5f5(0x170)]:_0x18e5f5(0x166)+_0x18e5f5(0x178);const _0x5756f9={};return _0x5756f9[_0x18e5f5(0x141)]=[_0x20be4b],_0x5756f9['structured'+'Content']=_0xc105eb,_0x5756f9;}}async[a9_0x1436cc(0x18a)+'esSca']({filePaths:_0x1af3b,zipFileName:_0x4c848c,memo:_0x2fd68f,isSbom:_0x6f80e4}){const _0xd3944e=a9_0x1436cc;try{if(!_0x1af3b||_0x1af3b[_0xd3944e(0x158)]===0x0){const _0x321cf8={};_0x321cf8[_0xd3944e(0x16a)]='text',_0x321cf8['text']=_0xd3944e(0x140)+_0xd3944e(0x190)+'\x20The\x20fileP'+_0xd3944e(0x156)+_0xd3944e(0x14e)+_0xd3944e(0x12f)+_0xd3944e(0x159)+_0xd3944e(0x143);const _0x24665e={};_0x24665e['error']=_0xd3944e(0x15b)+_0xd3944e(0x15c)+_0xd3944e(0x175);const _0x39e7d0={};return _0x39e7d0['content']=[_0x321cf8],_0x39e7d0['structured'+_0xd3944e(0x195)]=_0x24665e,_0x39e7d0;}logger[_0xd3944e(0x16c)](_0xd3944e(0x184)+_0xd3944e(0x17f)+_0xd3944e(0x185)+'ted:\x20'+_0x1af3b['length']+(_0xd3944e(0x134)+'s'));const _0x53fee4=await this[_0xd3944e(0x146)+_0xd3944e(0x12e)]['analyzeFil'+_0xd3944e(0x199)](_0x1af3b,_0x4c848c,_0x2fd68f,_0x6f80e4),_0x12d1fe='SCA\x20analys'+_0xd3944e(0x174)+_0xd3944e(0x169)+_0xd3944e(0x19a)+_0xd3944e(0x142)+_0x1af3b['length']+(_0xd3944e(0x13e)+_0xd3944e(0x19b))+_0x53fee4['analysisId']+'\x0aStatus:\x20'+_0x53fee4[_0xd3944e(0x152)]+(_0xd3944e(0x13e)+'Type:\x20')+_0x53fee4['analysisTy'+'pe'],_0x59fffa={};_0x59fffa[_0xd3944e(0x16a)]=_0xd3944e(0x157),_0x59fffa['text']=_0x12d1fe;const _0x3f6663={};_0x3f6663[_0xd3944e(0x192)]=_0x53fee4[_0xd3944e(0x192)],_0x3f6663[_0xd3944e(0x152)]=_0x53fee4[_0xd3944e(0x152)],_0x3f6663['filePathCo'+_0xd3944e(0x155)]=_0x1af3b[_0xd3944e(0x158)],_0x3f6663[_0xd3944e(0x16b)+'pe']=_0x53fee4[_0xd3944e(0x16b)+'pe'];const _0x3af673={};return _0x3af673['content']=[_0x59fffa],_0x3af673[_0xd3944e(0x150)+_0xd3944e(0x195)]=_0x3f6663,_0x3af673;}catch(_0x377198){logger[_0xd3944e(0x16d)](_0xd3944e(0x184)+'\x20SCA\x20analy'+'sis\x20failed'+':',_0x377198);const _0x2a81af={};_0x2a81af[_0xd3944e(0x16a)]=_0xd3944e(0x157),_0x2a81af[_0xd3944e(0x157)]=_0xd3944e(0x15e)+'is\x20request'+'\x20failed:\x20'+(_0x377198 instanceof Error?_0x377198[_0xd3944e(0x170)]:_0xd3944e(0x166)+_0xd3944e(0x178));const _0x509768={};_0x509768[_0xd3944e(0x16d)]=_0x377198 instanceof Error?_0x377198['message']:_0xd3944e(0x166)+_0xd3944e(0x178);const _0x213455={};return _0x213455[_0xd3944e(0x141)]=[_0x2a81af],_0x213455[_0xd3944e(0x150)+_0xd3944e(0x195)]=_0x509768,_0x213455;}}async[a9_0x1436cc(0x187)+a9_0x1436cc(0x172)]({folderPath:_0x146f1a,zipFileName:_0x4e790b,memo:_0x33f62a,isSbom:_0x28da61}){const _0x50da63=a9_0x1436cc,_0x805006={};_0x805006[_0x50da63(0x162)]=_0x50da63(0x157),_0x805006['VXUtd']=function(_0x55c48e,_0x1fa3a7){return _0x55c48e>_0x1fa3a7;},_0x805006[_0x50da63(0x133)]=function(_0x2d4f0a,_0x2a569b){return _0x2d4f0a instanceof _0x2a569b;};const _0x193571=_0x805006;try{if(!_0x146f1a||_0x146f1a[_0x50da63(0x18e)]()[_0x50da63(0x158)]===0x0){const _0x2e5a3f={};_0x2e5a3f[_0x50da63(0x16a)]=_0x193571['cDVjC'],_0x2e5a3f[_0x50da63(0x157)]=_0x50da63(0x14c)+'h\x20not\x20prov'+_0x50da63(0x13d);const _0x193589={};_0x193589['error']=_0x50da63(0x14c)+'h\x20not\x20prov'+'ided';const _0x2eb989={};return _0x2eb989[_0x50da63(0x141)]=[_0x2e5a3f],_0x2eb989[_0x50da63(0x150)+'Content']=_0x193589,_0x2eb989;}logger[_0x50da63(0x16c)](_0x50da63(0x130)+_0x50da63(0x151)+_0x50da63(0x14b)+'\x20'+_0x146f1a);const _0x405b26=await this[_0x50da63(0x146)+_0x50da63(0x12e)][_0x50da63(0x187)+'derSca'](_0x146f1a,_0x4e790b,_0x33f62a,_0x28da61);let _0x31a36f=_0x50da63(0x15e)+_0x50da63(0x174)+_0x50da63(0x165)+'er:\x20'+_0x146f1a+('\x0aAnalysis\x20'+'ID:\x20')+_0x405b26[_0x50da63(0x192)]+_0x50da63(0x13c)+_0x405b26[_0x50da63(0x152)]+('\x0aAnalysis\x20'+_0x50da63(0x18c))+_0x405b26[_0x50da63(0x16b)+'pe'];_0x405b26['skippedFol'+_0x50da63(0x14d)]&&_0x193571[_0x50da63(0x176)](_0x405b26[_0x50da63(0x139)+_0x50da63(0x14d)][_0x50da63(0x158)],0x0)&&(_0x31a36f+='\x0a\x0aSkipped\x20'+_0x50da63(0x186)+_0x405b26[_0x50da63(0x139)+_0x50da63(0x14d)][_0x50da63(0x158)]+_0x50da63(0x196)+_0x405b26[_0x50da63(0x139)+_0x50da63(0x14d)][_0x50da63(0x145)](',\x20'));const _0x4904f6={};_0x4904f6[_0x50da63(0x16a)]=_0x50da63(0x157),_0x4904f6[_0x50da63(0x157)]=_0x31a36f;const _0x10e4a1={};_0x10e4a1[_0x50da63(0x192)]=_0x405b26[_0x50da63(0x192)],_0x10e4a1[_0x50da63(0x152)]=_0x405b26[_0x50da63(0x152)],_0x10e4a1[_0x50da63(0x14a)]=_0x146f1a,_0x10e4a1[_0x50da63(0x16b)+'pe']=_0x405b26[_0x50da63(0x16b)+'pe'],_0x10e4a1[_0x50da63(0x139)+'ders']=_0x405b26[_0x50da63(0x139)+_0x50da63(0x14d)];const _0x11bb7a={};return _0x11bb7a[_0x50da63(0x141)]=[_0x4904f6],_0x11bb7a[_0x50da63(0x150)+_0x50da63(0x195)]=_0x10e4a1,_0x11bb7a;}catch(_0xce7fab){logger[_0x50da63(0x16d)]('Folder\x20SCA'+_0x50da63(0x151)+'failed:',_0xce7fab);const _0x547f6c={};return _0x547f6c[_0x50da63(0x16a)]=_0x193571[_0x50da63(0x162)],_0x547f6c[_0x50da63(0x157)]=_0x50da63(0x15e)+'is\x20request'+_0x50da63(0x137)+(_0xce7fab instanceof Error?_0xce7fab[_0x50da63(0x170)]:_0x50da63(0x166)+_0x50da63(0x178)),{'content':[_0x547f6c],'structuredContent':{'error':_0x193571[_0x50da63(0x133)](_0xce7fab,Error)?_0xce7fab[_0x50da63(0x170)]:_0x50da63(0x166)+_0x50da63(0x178)}};}}async[a9_0x1436cc(0x14f)+'Sca']({zipFilePath:_0x117294,zipFileName:_0x7b3efa,memo:_0x4ec88f,isSbom:_0x3de71a}){const _0x29d7b7=a9_0x1436cc,_0x360473={};_0x360473[_0x29d7b7(0x160)]=function(_0x526436,_0xd551e2){return _0x526436===_0xd551e2;};const _0xa43c57=_0x360473;try{if(!_0x117294||_0xa43c57[_0x29d7b7(0x160)](_0x117294[_0x29d7b7(0x18e)]()[_0x29d7b7(0x158)],0x0)){const _0x55dbfb={};_0x55dbfb[_0x29d7b7(0x16a)]=_0x29d7b7(0x157),_0x55dbfb[_0x29d7b7(0x157)]='ZIP\x20file\x20p'+'ath\x20not\x20pr'+_0x29d7b7(0x138);const _0x3ea393={};_0x3ea393[_0x29d7b7(0x16d)]='ZIP\x20file\x20p'+_0x29d7b7(0x173)+_0x29d7b7(0x12d);const _0x5c60b1={};return _0x5c60b1[_0x29d7b7(0x141)]=[_0x55dbfb],_0x5c60b1[_0x29d7b7(0x150)+_0x29d7b7(0x195)]=_0x3ea393,_0x5c60b1;}logger[_0x29d7b7(0x16c)](_0x29d7b7(0x17e)+'CA\x20analysi'+_0x29d7b7(0x154)+'d:\x20'+_0x117294);const _0x53ccec=await this[_0x29d7b7(0x146)+_0x29d7b7(0x12e)][_0x29d7b7(0x14f)+_0x29d7b7(0x147)](_0x117294,_0x7b3efa,_0x4ec88f,_0x3de71a),_0x1a65ba='SCA\x20analys'+_0x29d7b7(0x174)+_0x29d7b7(0x13a)+_0x29d7b7(0x153)+_0x117294+(_0x29d7b7(0x13e)+_0x29d7b7(0x19b))+_0x53ccec['analysisId']+_0x29d7b7(0x13c)+_0x53ccec[_0x29d7b7(0x152)]+(_0x29d7b7(0x13e)+_0x29d7b7(0x18c))+_0x53ccec[_0x29d7b7(0x16b)+'pe'],_0x26dd44={};_0x26dd44['type']=_0x29d7b7(0x157),_0x26dd44[_0x29d7b7(0x157)]=_0x1a65ba;const _0x58c6be={};_0x58c6be[_0x29d7b7(0x192)]=_0x53ccec[_0x29d7b7(0x192)],_0x58c6be[_0x29d7b7(0x152)]=_0x53ccec[_0x29d7b7(0x152)],_0x58c6be[_0x29d7b7(0x177)+'h']=_0x117294,_0x58c6be[_0x29d7b7(0x16b)+'pe']=_0x53ccec[_0x29d7b7(0x16b)+'pe'];const _0x5b1a79={};return _0x5b1a79[_0x29d7b7(0x141)]=[_0x26dd44],_0x5b1a79['structured'+_0x29d7b7(0x195)]=_0x58c6be,_0x5b1a79;}catch(_0x5d3ecc){logger[_0x29d7b7(0x16d)]('ZIP\x20file\x20S'+_0x29d7b7(0x131)+_0x29d7b7(0x168),_0x5d3ecc);const _0x1dedd8={};_0x1dedd8[_0x29d7b7(0x16a)]=_0x29d7b7(0x157),_0x1dedd8['text']=_0x29d7b7(0x15e)+_0x29d7b7(0x148)+_0x29d7b7(0x137)+(_0x5d3ecc instanceof Error?_0x5d3ecc[_0x29d7b7(0x170)]:_0x29d7b7(0x166)+'ror');const _0x41a8c8={};_0x41a8c8['error']=_0x5d3ecc instanceof Error?_0x5d3ecc[_0x29d7b7(0x170)]:_0x29d7b7(0x166)+_0x29d7b7(0x178);const _0x115667={};return _0x115667[_0x29d7b7(0x141)]=[_0x1dedd8],_0x115667[_0x29d7b7(0x150)+_0x29d7b7(0x195)]=_0x41a8c8,_0x115667;}}async[a9_0x1436cc(0x15f)+a9_0x1436cc(0x132)]({analysisId:_0x24f2c0}){const _0xe363ea=a9_0x1436cc,_0x734607={};_0x734607['BHiew']=_0xe363ea(0x157);const _0x3d60c2=_0x734607;try{logger[_0xe363ea(0x16c)](_0xe363ea(0x189)+'\x20download\x20'+_0xe363ea(0x14b)+'\x20'+_0x24f2c0);const _0x4dbea2=await this[_0xe363ea(0x146)+_0xe363ea(0x12e)][_0xe363ea(0x15f)+'omFiles'](_0x24f2c0);if(_0x4dbea2[_0xe363ea(0x158)]===0x0){const _0x25a9c8={};_0x25a9c8['type']=_0x3d60c2[_0xe363ea(0x136)],_0x25a9c8[_0xe363ea(0x157)]='No\x20SBOM\x20fi'+'les\x20found\x20'+_0xe363ea(0x13b)+'is\x20ID:\x20'+_0x24f2c0;const _0x2a0a33={};_0x2a0a33['analysisId']=_0x24f2c0,_0x2a0a33[_0xe363ea(0x198)]=[];const _0x302f94={};return _0x302f94[_0xe363ea(0x141)]=[_0x25a9c8],_0x302f94[_0xe363ea(0x150)+_0xe363ea(0x195)]=_0x2a0a33,_0x302f94;}const _0x5ed77e=_0x4dbea2['map'](_0x33f65c=>'-\x20'+_0x33f65c)[_0xe363ea(0x145)]('\x0a'),_0x506049={};_0x506049[_0xe363ea(0x16a)]=_0xe363ea(0x157),_0x506049[_0xe363ea(0x157)]=_0xe363ea(0x189)+_0xe363ea(0x194)+_0xe363ea(0x181)+_0xe363ea(0x17a)+_0x5ed77e;const _0x55a0f9={};_0x55a0f9[_0xe363ea(0x192)]=_0x24f2c0,_0x55a0f9[_0xe363ea(0x198)]=_0x4dbea2;const _0x30420f={};return _0x30420f[_0xe363ea(0x141)]=[_0x506049],_0x30420f[_0xe363ea(0x150)+_0xe363ea(0x195)]=_0x55a0f9,_0x30420f;}catch(_0x171bbe){logger[_0xe363ea(0x16d)](_0xe363ea(0x16f)+_0xe363ea(0x183)+'BOM\x20files:',_0x171bbe);const _0xa08d30={};_0xa08d30[_0xe363ea(0x16a)]=_0xe363ea(0x157),_0xa08d30[_0xe363ea(0x157)]='Failed\x20to\x20'+'download\x20S'+_0xe363ea(0x144)+'\x20'+(_0x171bbe instanceof Error?_0x171bbe[_0xe363ea(0x170)]:_0xe363ea(0x166)+_0xe363ea(0x178));const _0x16dbe4={};_0x16dbe4['error']=_0x171bbe instanceof Error?_0x171bbe[_0xe363ea(0x170)]:'Unknown\x20er'+_0xe363ea(0x178);const _0x5ae690={};return _0x5ae690[_0xe363ea(0x141)]=[_0xa08d30],_0x5ae690[_0xe363ea(0x150)+_0xe363ea(0x195)]=_0x16dbe4,_0x5ae690['isError']=!![],_0x5ae690;}}}
@@ -1 +1 @@
1
- const a10_0x4c1f78=a10_0x16f4;(function(_0x3d7039,_0x518e14){const _0x3d5b58=a10_0x16f4,_0xc6fe90=_0x3d7039();while(!![]){try{const _0x4c9f6f=parseInt(_0x3d5b58(0x169))/0x1*(parseInt(_0x3d5b58(0x164))/0x2)+-parseInt(_0x3d5b58(0x179))/0x3*(parseInt(_0x3d5b58(0x17b))/0x4)+parseInt(_0x3d5b58(0x16d))/0x5+parseInt(_0x3d5b58(0x15d))/0x6*(parseInt(_0x3d5b58(0x14a))/0x7)+-parseInt(_0x3d5b58(0x176))/0x8+-parseInt(_0x3d5b58(0x14b))/0x9*(parseInt(_0x3d5b58(0x173))/0xa)+-parseInt(_0x3d5b58(0x155))/0xb;if(_0x4c9f6f===_0x518e14)break;else _0xc6fe90['push'](_0xc6fe90['shift']());}catch(_0x1490cb){_0xc6fe90['push'](_0xc6fe90['shift']());}}}(a10_0x4da6,0x56bb7));const a10_0x49fc90=(function(){let _0x11ca2b=!![];return function(_0x5ccc15,_0x4d1e08){const _0x89104f=_0x11ca2b?function(){const _0x36ed1e=a10_0x16f4;if(_0x4d1e08){const _0x2cafd0=_0x4d1e08[_0x36ed1e(0x16f)](_0x5ccc15,arguments);return _0x4d1e08=null,_0x2cafd0;}}:function(){};return _0x11ca2b=![],_0x89104f;};}()),a10_0x3295fb=a10_0x49fc90(this,function(){const _0xa94ebc=a10_0x16f4;return a10_0x3295fb[_0xa94ebc(0x160)]()['search'](_0xa94ebc(0x16a)+'+$')[_0xa94ebc(0x160)]()[_0xa94ebc(0x152)+'r'](a10_0x3295fb)[_0xa94ebc(0x153)](_0xa94ebc(0x16a)+'+$');});a10_0x3295fb();function a10_0x16f4(_0x206e7b,_0x1b051b){_0x206e7b=_0x206e7b-0x145;const _0x1ab5ac=a10_0x4da6();let _0x3295fb=_0x1ab5ac[_0x206e7b];return _0x3295fb;}function a10_0x4da6(){const _0x15f836=['382868acsIbj','text','ecure\x20code','content','ff\x0a','JSSnm','analysisSe','8211weyXBX','9PZwUDq','generateSe','cure\x20Code\x0a','error','\x0a\x0a...\x20(Sho','\x0a#\x20Secure\x20','length','constructo','search','info','2023186dezlZw','Unknown\x20er','iff)\x0a```di','Content','omAnalysis','ation\x20Resu','ror','diff','2652TozhKl','type','wing\x20','toString','\x20character','Failed\x20to\x20','Brief','5480mFWJMJ','trim','on\x20request','e\x20generati','lts\x0a\x0a##\x20Se','215cQukYc','(((.+)+)+)','secureCode','isError','3084275ztzGyk','structured','apply','message','ed:\x20','\x0a\x0a##\x20Code\x20','6705260HqwJhL','Code\x20Gener','\x0a```\x0a\x0a##\x20S','3351976MoWrNA','generate\x20s','rvice','3rdYvII','Secure\x20cod'];a10_0x4da6=function(){return _0x15f836;};return a10_0x4da6();}import{logger}from'../utils/logger.js';export class SecurityController{[a10_0x4c1f78(0x149)+a10_0x4c1f78(0x178)];constructor(_0x4e45be){const _0x37cad6=a10_0x4c1f78;this[_0x37cad6(0x149)+'rvice']=_0x4e45be;}async[a10_0x4c1f78(0x14c)+'cureCode']({analysisId:_0x51ab17,fileContent:_0x18ac9a}){const _0x27c857=a10_0x4c1f78,_0x396a5d={'JSSnm':function(_0x45f05f,_0x11154d,_0x40c803){return _0x45f05f(_0x11154d,_0x40c803);}};try{logger[_0x27c857(0x154)](_0x27c857(0x17a)+_0x27c857(0x167)+_0x27c857(0x166)+_0x27c857(0x171)+_0x51ab17);const _0x7e400c=await this[_0x27c857(0x149)+_0x27c857(0x178)][_0x27c857(0x14c)+'cureCodeFr'+_0x27c857(0x159)](_0x51ab17,_0x18ac9a),_0x2e3655=0x7a120,_0x5038dd=(_0x5d98dd,_0x442bf8)=>{const _0x59326b=_0x27c857;if(_0x5d98dd[_0x59326b(0x151)]<=_0x442bf8)return _0x5d98dd;return _0x5d98dd['substring'](0x0,_0x442bf8)+(_0x59326b(0x14f)+_0x59326b(0x15f)+_0x442bf8+'\x20of\x20'+_0x5d98dd['length']+(_0x59326b(0x161)+'s)'));},_0x2c7b23=(_0x27c857(0x150)+_0x27c857(0x174)+_0x27c857(0x15a)+_0x27c857(0x168)+_0x27c857(0x14d)+'```java\x0a'+_0x5038dd(_0x7e400c[_0x27c857(0x16b)],_0x2e3655)+(_0x27c857(0x175)+'ecure\x20Code'+'\x20Briefing\x0a')+_0x5038dd(_0x7e400c['secureCode'+_0x27c857(0x163)],_0x2e3655)+(_0x27c857(0x172)+'Changes\x20(D'+_0x27c857(0x157)+_0x27c857(0x147))+_0x5038dd(_0x7e400c[_0x27c857(0x15c)],_0x2e3655)+('\x0a```\x0a\x20\x20\x20\x20\x20'+'\x20'))[_0x27c857(0x165)](),_0x1d803e={'analysisId':_0x51ab17,'secureCode':_0x5038dd(_0x7e400c[_0x27c857(0x16b)],_0x2e3655),'secureCodeBrief':_0x396a5d[_0x27c857(0x148)](_0x5038dd,_0x7e400c[_0x27c857(0x16b)+_0x27c857(0x163)],_0x2e3655),'diff':_0x5038dd(_0x7e400c[_0x27c857(0x15c)],_0x2e3655)},_0x40dc85={};_0x40dc85[_0x27c857(0x15e)]=_0x27c857(0x17c),_0x40dc85[_0x27c857(0x17c)]=_0x2c7b23;const _0x1dc84f={};return _0x1dc84f[_0x27c857(0x146)]=[_0x40dc85],_0x1dc84f[_0x27c857(0x16e)+_0x27c857(0x158)]=_0x1d803e,_0x1dc84f;}catch(_0x2dc5d5){logger[_0x27c857(0x14e)](_0x27c857(0x162)+_0x27c857(0x177)+_0x27c857(0x145)+':',_0x2dc5d5);const _0x62a9be=_0x2dc5d5 instanceof Error?_0x2dc5d5[_0x27c857(0x170)]:_0x27c857(0x156)+_0x27c857(0x15b),_0x195bc5={};_0x195bc5['type']=_0x27c857(0x17c),_0x195bc5[_0x27c857(0x17c)]='Failed\x20to\x20'+_0x27c857(0x177)+_0x27c857(0x145)+':\x20'+_0x62a9be;const _0x5c81bd={};_0x5c81bd[_0x27c857(0x14e)]=_0x62a9be;const _0x191fd7={};return _0x191fd7['content']=[_0x195bc5],_0x191fd7[_0x27c857(0x16e)+_0x27c857(0x158)]=_0x5c81bd,_0x191fd7[_0x27c857(0x16c)]=!![],_0x191fd7;}}}
1
+ const a10_0xff5ee5=a10_0x467f;function a10_0x467f(_0x5e488b,_0x293bc0){_0x5e488b=_0x5e488b-0x11d;const _0x594503=a10_0x41f1();let _0x1bd784=_0x594503[_0x5e488b];return _0x1bd784;}function a10_0x41f1(){const _0xbebfaf=['ecure\x20Code','790iTJEWc','content','ecure\x20code','Failed\x20to\x20','Content','8387433TLTXrw','analysisSe','info','697917cirOff','omAnalysis','cureCodeFr','\x0a\x0a##\x20Code\x20','length','e\x20generati','6062268RwlwZl','\x0a\x0a...\x20(Sho','649qIHjVo','Secure\x20cod','error','message','ed:\x20','\x0a#\x20Secure\x20','lts\x0a\x0a##\x20Se','rvice','\x20character','Changes\x20(D','7ZJibVW','diff','\x0a```\x0a\x0a##\x20S','6WjHORd','cureCode','search','3020cGzQUJ','substring','Brief','toString','generateSe','\x20of\x20','cure\x20Code\x0a','ff\x0a','trim','\x0a```\x0a\x20\x20\x20\x20\x20','secureCode','generate\x20s','```java\x0a','structured','apply','isError','iff)\x0a```di','1445400yyaQyp','Code\x20Gener','242518WTocBW','Unknown\x20er','551290PzzOzl','(((.+)+)+)','text','type','on\x20request'];a10_0x41f1=function(){return _0xbebfaf;};return a10_0x41f1();}(function(_0x4d50a6,_0x5b16e9){const _0x454ed1=a10_0x467f,_0x383eef=_0x4d50a6();while(!![]){try{const _0x54fdf7=parseInt(_0x454ed1(0x12f))/0x1*(-parseInt(_0x454ed1(0x145))/0x2)+parseInt(_0x454ed1(0x155))/0x3+parseInt(_0x454ed1(0x132))/0x4*(-parseInt(_0x454ed1(0x14d))/0x5)+parseInt(_0x454ed1(0x120))/0x6*(-parseInt(_0x454ed1(0x12c))/0x7)+-parseInt(_0x454ed1(0x143))/0x8+-parseInt(_0x454ed1(0x152))/0x9+parseInt(_0x454ed1(0x147))/0xa*(parseInt(_0x454ed1(0x122))/0xb);if(_0x54fdf7===_0x5b16e9)break;else _0x383eef['push'](_0x383eef['shift']());}catch(_0x4f1f15){_0x383eef['push'](_0x383eef['shift']());}}}(a10_0x41f1,0x7dd58));const a10_0x530364=(function(){let _0x4d1992=!![];return function(_0x4d8ee8,_0x30a55c){const _0x2cbc40=_0x4d1992?function(){const _0x230fa5=a10_0x467f;if(_0x30a55c){const _0x27894a=_0x30a55c[_0x230fa5(0x140)](_0x4d8ee8,arguments);return _0x30a55c=null,_0x27894a;}}:function(){};return _0x4d1992=![],_0x2cbc40;};}()),a10_0x1bd784=a10_0x530364(this,function(){const _0xdc2b44=a10_0x467f;return a10_0x1bd784[_0xdc2b44(0x135)]()['search'](_0xdc2b44(0x148)+'+$')[_0xdc2b44(0x135)]()['constructo'+'r'](a10_0x1bd784)[_0xdc2b44(0x131)]('(((.+)+)+)'+'+$');});a10_0x1bd784();import{logger}from'../utils/logger.js';export class SecurityController{[a10_0xff5ee5(0x153)+'rvice'];constructor(_0xee0db8){const _0x277f64=a10_0xff5ee5;this[_0x277f64(0x153)+_0x277f64(0x129)]=_0xee0db8;}async[a10_0xff5ee5(0x136)+a10_0xff5ee5(0x130)]({analysisId:_0x1bc991,fileContent:_0x3aa0b2}){const _0x1c2bc4=a10_0xff5ee5,_0xebbd={'YHhdl':function(_0x4a3c73,_0x4e4b3b){return _0x4a3c73+_0x4e4b3b;},'JfnWJ':function(_0x1765d4,_0x26b29e,_0x3b371c){return _0x1765d4(_0x26b29e,_0x3b371c);}};try{logger[_0x1c2bc4(0x154)](_0x1c2bc4(0x123)+_0x1c2bc4(0x11f)+_0x1c2bc4(0x14b)+_0x1c2bc4(0x126)+_0x1bc991);const _0x2ab993=await this[_0x1c2bc4(0x153)+'rvice'][_0x1c2bc4(0x136)+_0x1c2bc4(0x157)+_0x1c2bc4(0x156)](_0x1bc991,_0x3aa0b2),_0x804eb9=0x7a120,_0x575d21=(_0x3a9ec8,_0x58fe43)=>{const _0x596400=_0x1c2bc4;if(_0x3a9ec8[_0x596400(0x11e)]<=_0x58fe43)return _0x3a9ec8;return _0xebbd['YHhdl'](_0x3a9ec8[_0x596400(0x133)](0x0,_0x58fe43),_0x596400(0x121)+'wing\x20'+_0x58fe43+_0x596400(0x137)+_0x3a9ec8[_0x596400(0x11e)]+(_0x596400(0x12a)+'s)'));},_0x4bad59=(_0x1c2bc4(0x127)+_0x1c2bc4(0x144)+'ation\x20Resu'+_0x1c2bc4(0x128)+_0x1c2bc4(0x138)+_0x1c2bc4(0x13e)+_0x575d21(_0x2ab993[_0x1c2bc4(0x13c)],_0x804eb9)+(_0x1c2bc4(0x12e)+_0x1c2bc4(0x14c)+'\x20Briefing\x0a')+_0x575d21(_0x2ab993[_0x1c2bc4(0x13c)+'Brief'],_0x804eb9)+(_0x1c2bc4(0x11d)+_0x1c2bc4(0x12b)+_0x1c2bc4(0x142)+_0x1c2bc4(0x139))+_0xebbd['JfnWJ'](_0x575d21,_0x2ab993[_0x1c2bc4(0x12d)],_0x804eb9)+(_0x1c2bc4(0x13b)+'\x20'))[_0x1c2bc4(0x13a)](),_0xfb05dd={'analysisId':_0x1bc991,'secureCode':_0x575d21(_0x2ab993['secureCode'],_0x804eb9),'secureCodeBrief':_0x575d21(_0x2ab993['secureCode'+_0x1c2bc4(0x134)],_0x804eb9),'diff':_0x575d21(_0x2ab993['diff'],_0x804eb9)},_0x1983ce={};_0x1983ce[_0x1c2bc4(0x14a)]='text',_0x1983ce[_0x1c2bc4(0x149)]=_0x4bad59;const _0x3594d5={};return _0x3594d5[_0x1c2bc4(0x14e)]=[_0x1983ce],_0x3594d5[_0x1c2bc4(0x13f)+_0x1c2bc4(0x151)]=_0xfb05dd,_0x3594d5;}catch(_0x85017){logger['error'](_0x1c2bc4(0x150)+_0x1c2bc4(0x13d)+_0x1c2bc4(0x14f)+':',_0x85017);const _0x4d31d8=_0x85017 instanceof Error?_0x85017[_0x1c2bc4(0x125)]:_0x1c2bc4(0x146)+'ror',_0x3ef135={};_0x3ef135[_0x1c2bc4(0x14a)]=_0x1c2bc4(0x149),_0x3ef135[_0x1c2bc4(0x149)]='Failed\x20to\x20'+_0x1c2bc4(0x13d)+_0x1c2bc4(0x14f)+':\x20'+_0x4d31d8;const _0x31fcb4={};_0x31fcb4[_0x1c2bc4(0x124)]=_0x4d31d8;const _0x299960={};return _0x299960[_0x1c2bc4(0x14e)]=[_0x3ef135],_0x299960[_0x1c2bc4(0x13f)+_0x1c2bc4(0x151)]=_0x31fcb4,_0x299960[_0x1c2bc4(0x141)]=!![],_0x299960;}}}
@@ -1 +1 @@
1
- (function(_0x518760,_0x111bc0){var _0x158c82=a11_0x5adf,_0x42fb04=_0x518760();while(!![]){try{var _0x5d3b90=parseInt(_0x158c82(0x9b))/0x1+parseInt(_0x158c82(0x9d))/0x2+parseInt(_0x158c82(0x92))/0x3*(-parseInt(_0x158c82(0x90))/0x4)+parseInt(_0x158c82(0x99))/0x5+parseInt(_0x158c82(0x93))/0x6+-parseInt(_0x158c82(0x96))/0x7+-parseInt(_0x158c82(0x91))/0x8*(parseInt(_0x158c82(0x9a))/0x9);if(_0x5d3b90===_0x111bc0)break;else _0x42fb04['push'](_0x42fb04['shift']());}catch(_0x5b2883){_0x42fb04['push'](_0x42fb04['shift']());}}}(a11_0x2aa0,0x22f5e));var a11_0x869512=(function(){var _0x31a98c=!![];return function(_0x45889d,_0x53e048){var _0x562159=_0x31a98c?function(){var _0x4f7b8=a11_0x5adf;if(_0x53e048){var _0x30da30=_0x53e048[_0x4f7b8(0x97)](_0x45889d,arguments);return _0x53e048=null,_0x30da30;}}:function(){};return _0x31a98c=![],_0x562159;};}()),a11_0x31e970=a11_0x869512(this,function(){var _0x399091=a11_0x5adf,_0x1f3175={};_0x1f3175['UNXMf']=_0x399091(0x8f)+'+$';var _0x20d0d4=_0x1f3175;return a11_0x31e970[_0x399091(0x95)]()[_0x399091(0x94)](_0x20d0d4[_0x399091(0x98)])[_0x399091(0x95)]()[_0x399091(0x9c)+'r'](a11_0x31e970)[_0x399091(0x94)]('(((.+)+)+)'+'+$');});function a11_0x5adf(_0x457116,_0x2efc48){_0x457116=_0x457116-0x8f;var _0xf20354=a11_0x2aa0();var _0x31e970=_0xf20354[_0x457116];return _0x31e970;}function a11_0x2aa0(){var _0x151a94=['constructo','228210ydXGsS','(((.+)+)+)','62636QQmadG','211200QpvWkk','3gVUkjV','846996Qpvsev','search','toString','1776103LwtXvv','apply','UNXMf','614945nIICaz','18VySYZl','87126uEarUy'];a11_0x2aa0=function(){return _0x151a94;};return a11_0x2aa0();}a11_0x31e970();export class SystemController{}
1
+ function a11_0x475f(){var _0x193ddd=['79210EOFqwP','664746nVdwAH','305MbcrwU','constructo','8oIzCmT','4836502IQtCbq','search','3313940kBtyqd','51522VJjsaM','apply','1367724QWaCrD','397539XNWnUo','(((.+)+)+)','40yIowOn','5HSVYrf'];a11_0x475f=function(){return _0x193ddd;};return a11_0x475f();}function a11_0x25af(_0x5d6275,_0x509583){_0x5d6275=_0x5d6275-0x1e9;var _0x364884=a11_0x475f();var _0x88d64a=_0x364884[_0x5d6275];return _0x88d64a;}(function(_0x7961a1,_0x213e91){var _0x35743d=a11_0x25af,_0x3ebeb5=_0x7961a1();while(!![]){try{var _0x45d844=-parseInt(_0x35743d(0x1f3))/0x1*(parseInt(_0x35743d(0x1f4))/0x2)+-parseInt(_0x35743d(0x1f5))/0x3+parseInt(_0x35743d(0x1ef))/0x4+parseInt(_0x35743d(0x1f6))/0x5*(parseInt(_0x35743d(0x1ed))/0x6)+-parseInt(_0x35743d(0x1ec))/0x7*(-parseInt(_0x35743d(0x1e9))/0x8)+parseInt(_0x35743d(0x1f0))/0x9*(-parseInt(_0x35743d(0x1f2))/0xa)+-parseInt(_0x35743d(0x1ea))/0xb;if(_0x45d844===_0x213e91)break;else _0x3ebeb5['push'](_0x3ebeb5['shift']());}catch(_0x466dfe){_0x3ebeb5['push'](_0x3ebeb5['shift']());}}}(a11_0x475f,0x4a051));var a11_0x272dcc=(function(){var _0x4af84c=!![];return function(_0x169c55,_0xf21302){var _0x1801f0=_0x4af84c?function(){var _0x1349fc=a11_0x25af;if(_0xf21302){var _0x58eed3=_0xf21302[_0x1349fc(0x1ee)](_0x169c55,arguments);return _0xf21302=null,_0x58eed3;}}:function(){};return _0x4af84c=![],_0x1801f0;};}()),a11_0x88d64a=a11_0x272dcc(this,function(){var _0x86d0a=a11_0x25af;return a11_0x88d64a['toString']()[_0x86d0a(0x1eb)](_0x86d0a(0x1f1)+'+$')['toString']()[_0x86d0a(0x1f7)+'r'](a11_0x88d64a)[_0x86d0a(0x1eb)](_0x86d0a(0x1f1)+'+$');});a11_0x88d64a();export class SystemController{}
@@ -1 +1 @@
1
- const a17_0x4359b8=a17_0x59a9;(function(_0x581992,_0x47581a){const _0x3a04b0=a17_0x59a9,_0x5a3155=_0x581992();while(!![]){try{const _0x1073fc=parseInt(_0x3a04b0(0x178))/0x1*(parseInt(_0x3a04b0(0x16f))/0x2)+parseInt(_0x3a04b0(0x12b))/0x3+parseInt(_0x3a04b0(0x14e))/0x4+parseInt(_0x3a04b0(0x186))/0x5+-parseInt(_0x3a04b0(0x189))/0x6*(parseInt(_0x3a04b0(0x127))/0x7)+parseInt(_0x3a04b0(0x174))/0x8+-parseInt(_0x3a04b0(0x12c))/0x9*(parseInt(_0x3a04b0(0x13d))/0xa);if(_0x1073fc===_0x47581a)break;else _0x5a3155['push'](_0x5a3155['shift']());}catch(_0x967415){_0x5a3155['push'](_0x5a3155['shift']());}}}(a17_0x3c2b,0x78624));const a17_0x4635db=(function(){let _0x1cfcab=!![];return function(_0x55b621,_0x4811bd){const _0x24a7cb=_0x1cfcab?function(){if(_0x4811bd){const _0x190967=_0x4811bd['apply'](_0x55b621,arguments);return _0x4811bd=null,_0x190967;}}:function(){};return _0x1cfcab=![],_0x24a7cb;};}()),a17_0x2c7077=a17_0x4635db(this,function(){const _0x3d7c4b=a17_0x59a9;return a17_0x2c7077[_0x3d7c4b(0x137)]()[_0x3d7c4b(0x15d)](_0x3d7c4b(0x150)+'+$')[_0x3d7c4b(0x137)]()[_0x3d7c4b(0x14a)+'r'](a17_0x2c7077)[_0x3d7c4b(0x15d)](_0x3d7c4b(0x150)+'+$');});a17_0x2c7077();import{z}from'zod';const a17_0xf1c5e7={};a17_0xf1c5e7['message']=a17_0x4359b8(0x160)+'필요합니다';export const AnalyzeFileSastSchema={'fileContent':z['string']()['min'](0x1,a17_0x4359b8(0x166)+a17_0x4359b8(0x128))[a17_0x4359b8(0x164)](a17_0x4359b8(0x182)+a17_0x4359b8(0x125)+a17_0x4359b8(0x142)+a17_0x4359b8(0x177)+'ze'),'fileName':z[a17_0x4359b8(0x17f)]()[a17_0x4359b8(0x133)](0x1)['refine'](_0x30a981=>_0x30a981[a17_0x4359b8(0x12e)]('.'),a17_0xf1c5e7)[a17_0x4359b8(0x164)](a17_0x4359b8(0x175)+a17_0x4359b8(0x13f)+a17_0x4359b8(0x179)+a17_0x4359b8(0x16c)+a17_0x4359b8(0x148)+')'),'memo':z[a17_0x4359b8(0x17f)]()['optional']()[a17_0x4359b8(0x164)](a17_0x4359b8(0x181)+a17_0x4359b8(0x140))};export const AnalyzeFilesSastSchema={'filePaths':z[a17_0x4359b8(0x14f)](z[a17_0x4359b8(0x17f)]())[a17_0x4359b8(0x164)](a17_0x4359b8(0x149)+'urce\x20code\x20'+'file\x20paths'+'\x20to\x20analyz'+a17_0x4359b8(0x12f)+a17_0x4359b8(0x14b)+a17_0x4359b8(0x13a)+a17_0x4359b8(0x14d)+a17_0x4359b8(0x156)+a17_0x4359b8(0x152)),'zipFileName':z[a17_0x4359b8(0x17f)]()[a17_0x4359b8(0x185)]()[a17_0x4359b8(0x164)](a17_0x4359b8(0x131)+a17_0x4359b8(0x129)+a17_0x4359b8(0x135)+a17_0x4359b8(0x12d)+a17_0x4359b8(0x167)),'memo':z[a17_0x4359b8(0x17f)]()['optional']()[a17_0x4359b8(0x164)](a17_0x4359b8(0x181)+'emo')};export const AnalyzeFolderSastSchema={'folderPath':z[a17_0x4359b8(0x17f)]()['describe'](a17_0x4359b8(0x16d)+'e\x20folder\x20c'+'ontaining\x20'+a17_0x4359b8(0x12a)+a17_0x4359b8(0x177)+'ze'),'zipFileName':z['string']()[a17_0x4359b8(0x185)]()[a17_0x4359b8(0x164)](a17_0x4359b8(0x131)+a17_0x4359b8(0x129)+a17_0x4359b8(0x135)+'ated\x20(opti'+a17_0x4359b8(0x157)+a17_0x4359b8(0x16e)+a17_0x4359b8(0x13e)+'specified)'),'memo':z[a17_0x4359b8(0x17f)]()[a17_0x4359b8(0x185)]()['describe'](a17_0x4359b8(0x181)+a17_0x4359b8(0x140))};export const AnalyzeZipSastSchema={'zipFilePath':z[a17_0x4359b8(0x17f)]()['describe'](a17_0x4359b8(0x16d)+a17_0x4359b8(0x129)+a17_0x4359b8(0x170)+a17_0x4359b8(0x147)+'ode\x20to\x20ana'+a17_0x4359b8(0x13b)),'zipFileName':z[a17_0x4359b8(0x17f)]()[a17_0x4359b8(0x185)]()[a17_0x4359b8(0x164)](a17_0x4359b8(0x187)+a17_0x4359b8(0x139)+'stored\x20(op'+a17_0x4359b8(0x173)+a17_0x4359b8(0x155)+a17_0x4359b8(0x14c)+a17_0x4359b8(0x17d)+a17_0x4359b8(0x158)),'memo':z['string']()[a17_0x4359b8(0x185)]()[a17_0x4359b8(0x164)]('Analysis\x20m'+a17_0x4359b8(0x140))};export const AnalyzeFileScaSchema={'filePath':z[a17_0x4359b8(0x17f)]()[a17_0x4359b8(0x164)]('Path\x20to\x20th'+a17_0x4359b8(0x168)+a17_0x4359b8(0x171)+'\x20analyze\x20('+'e.g.,\x20\x27pac'+'kage.json\x27'+')'),'zipFileName':z['string']()[a17_0x4359b8(0x185)]()[a17_0x4359b8(0x164)](a17_0x4359b8(0x131)+a17_0x4359b8(0x129)+'\x20to\x20be\x20cre'+a17_0x4359b8(0x12d)+a17_0x4359b8(0x167)),'memo':z[a17_0x4359b8(0x17f)]()[a17_0x4359b8(0x185)]()['describe'](a17_0x4359b8(0x181)+a17_0x4359b8(0x140)),'isSbom':z[a17_0x4359b8(0x15f)]()[a17_0x4359b8(0x185)]()[a17_0x4359b8(0x164)]('Whether\x20th'+a17_0x4359b8(0x123)+a17_0x4359b8(0x163)+a17_0x4359b8(0x15c)+a17_0x4359b8(0x146))};export const AnalyzeFilesScaSchema={'filePaths':z[a17_0x4359b8(0x14f)](z[a17_0x4359b8(0x17f)]())[a17_0x4359b8(0x164)]('List\x20of\x20de'+a17_0x4359b8(0x153)+a17_0x4359b8(0x144)+a17_0x4359b8(0x16a)+a17_0x4359b8(0x17e)+a17_0x4359b8(0x184)+a17_0x4359b8(0x17b)+'\x20\x27requirem'+a17_0x4359b8(0x136)+')'),'zipFileName':z[a17_0x4359b8(0x17f)]()[a17_0x4359b8(0x185)]()['describe'](a17_0x4359b8(0x131)+a17_0x4359b8(0x129)+a17_0x4359b8(0x135)+a17_0x4359b8(0x12d)+'onal)'),'memo':z[a17_0x4359b8(0x17f)]()['optional']()[a17_0x4359b8(0x164)](a17_0x4359b8(0x181)+'emo'),'isSbom':z[a17_0x4359b8(0x15f)]()[a17_0x4359b8(0x185)]()[a17_0x4359b8(0x164)](a17_0x4359b8(0x159)+a17_0x4359b8(0x161)+a17_0x4359b8(0x122)+a17_0x4359b8(0x169)+a17_0x4359b8(0x146))};function a17_0x59a9(_0x39a4b2,_0x3001a4){_0x39a4b2=_0x39a4b2-0x120;const _0x51416d=a17_0x3c2b();let _0x2c7077=_0x51416d[_0x39a4b2];return _0x2c7077;}export const AnalyzeFolderScaSchema={'folderPath':z[a17_0x4359b8(0x17f)]()['describe']('Path\x20to\x20th'+a17_0x4359b8(0x180)+a17_0x4359b8(0x165)+a17_0x4359b8(0x130)+a17_0x4359b8(0x153)+a17_0x4359b8(0x144)+a17_0x4359b8(0x162)),'zipFileName':z['string']()[a17_0x4359b8(0x185)]()['describe'](a17_0x4359b8(0x131)+a17_0x4359b8(0x129)+'\x20to\x20be\x20cre'+'ated\x20(opti'+a17_0x4359b8(0x157)+a17_0x4359b8(0x16e)+a17_0x4359b8(0x13e)+'specified)'),'memo':z[a17_0x4359b8(0x17f)]()[a17_0x4359b8(0x185)]()['describe'](a17_0x4359b8(0x181)+a17_0x4359b8(0x140)),'isSbom':z[a17_0x4359b8(0x15f)]()[a17_0x4359b8(0x185)]()[a17_0x4359b8(0x164)](a17_0x4359b8(0x159)+'e\x20folder\x20c'+a17_0x4359b8(0x143)+a17_0x4359b8(0x126))};export const AnalyzeZipScaSchema={'zipFilePath':z[a17_0x4359b8(0x17f)]()['describe'](a17_0x4359b8(0x16d)+a17_0x4359b8(0x129)+a17_0x4359b8(0x170)+'g\x20project\x20'+a17_0x4359b8(0x121)+'es\x20to\x20anal'+'yze'),'zipFileName':z['string']()['optional']()[a17_0x4359b8(0x164)](a17_0x4359b8(0x187)+a17_0x4359b8(0x139)+a17_0x4359b8(0x141)+a17_0x4359b8(0x173)+'es\x20origina'+a17_0x4359b8(0x14c)+a17_0x4359b8(0x17d)+a17_0x4359b8(0x158)),'memo':z[a17_0x4359b8(0x17f)]()[a17_0x4359b8(0x185)]()['describe'](a17_0x4359b8(0x181)+a17_0x4359b8(0x140)),'isSbom':z[a17_0x4359b8(0x15f)]()['optional']()[a17_0x4359b8(0x164)](a17_0x4359b8(0x159)+a17_0x4359b8(0x176)+a17_0x4359b8(0x183)+'files')};export const TrackAnalysisProgressSchema={'analysisId':z['string']()['describe'](a17_0x4359b8(0x13c)+'D'),'intervalMs':z[a17_0x4359b8(0x15a)]()[a17_0x4359b8(0x185)]()['describe']('Status\x20che'+a17_0x4359b8(0x124)+a17_0x4359b8(0x132)+a17_0x4359b8(0x16b)+a17_0x4359b8(0x188)+a17_0x4359b8(0x172)),'maxWaitMs':z[a17_0x4359b8(0x15a)]()['optional']()[a17_0x4359b8(0x164)]('Maximum\x20ti'+'me\x20to\x20wait'+a17_0x4359b8(0x15b)+'econds\x20bef'+a17_0x4359b8(0x120)+a17_0x4359b8(0x138)+'lt:\x2030000)')};export const GetAnalysisStatusSchema={'analysisId':z[a17_0x4359b8(0x17f)]()['describe'](a17_0x4359b8(0x13c)+'D')};function a17_0x3c2b(){const _0x570ca1=['e\x20file\x20is\x20','ck\x20interva','\x20the\x20sourc','OM\x20files','39907wcLFcC','습니다','e\x20ZIP\x20file','source\x20cod','2680320XMEOzo','1742679bMmdpg','ated\x20(opti','includes','e\x20(e.g.,\x20[','taining\x20de','Name\x20of\x20th','l\x20in\x20milli','min','Original\x20f','\x20to\x20be\x20cre','ents.txt\x27]','toString','ing\x20(defau','ame\x20to\x20be\x20','Service.ja','lyze','Analysis\x20I','110eHCQgq','me\x20if\x20not\x20','with\x20exten','emo','stored\x20(op','e\x20code\x20fil','ontains\x20SB','iles\x20to\x20an','analysis','ycloneDX)','g\x20source\x20c','vice.java\x27','List\x20of\x20so','constructo','\x27/src/User','l\x20filename','va\x27,\x20\x27/src','683424PEyhva','array','(((.+)+)+)','ile\x20conten','va\x27])','pendency\x20f','D\x20from\x20the','es\x20origina','/DbUtil.ja','onal,\x20uses','ecified)','Whether\x20th','number','\x20in\x20millis','le\x20(SPDX/C','search','\x20security\x20','boolean','파일명에\x20확장자가\x20','e\x20files\x20ar','alyze','an\x20SBOM\x20fi','describe','folder\x20con','파일\x20내용이\x20비어있','onal)','e\x20dependen','es\x20(SPDX/C','alyze\x20(e.g','seconds\x20(d',',\x20\x27UserSer','Path\x20to\x20th','\x20folder\x20na','14lZCCAR','\x20containin','cy\x20file\x20to','00)','tional,\x20us','2427280kShanI','File\x20name\x20','e\x20ZIP\x20cont','e\x20to\x20analy','124823kzyTDN','sion\x20(e.g.','oad\x20SBOM\x20f','\x27pom.xml\x27,','D\x20to\x20downl','\x20if\x20not\x20sp','.,\x20[\x27packa','string','e\x20project\x20','Analysis\x20m','Content\x20of','ains\x20SBOM\x20','ge.json\x27,\x20','optional','4017200XLrEEc','ZIP\x20file\x20n','efault:\x2030','444DnQHsL','D\x20from\x20SCA','ore\x20return','dependenci','e\x20SBOM\x20fil'];a17_0x3c2b=function(){return _0x570ca1;};return a17_0x3c2b();}export const GetAnalysisResultsSchema={'analysisId':z[a17_0x4359b8(0x17f)]()[a17_0x4359b8(0x164)]('Analysis\x20I'+'D')};export const GetScaAnalysisResultsSchema={'analysisId':z['string']()[a17_0x4359b8(0x164)](a17_0x4359b8(0x13c)+a17_0x4359b8(0x18a)+'\x20analysis')};export const GenerateSecureCodeSchema={'analysisId':z[a17_0x4359b8(0x17f)]()['describe']('Analysis\x20I'+a17_0x4359b8(0x154)+a17_0x4359b8(0x15e)+a17_0x4359b8(0x145)),'fileContent':z[a17_0x4359b8(0x17f)]()[a17_0x4359b8(0x164)](a17_0x4359b8(0x134)+a17_0x4359b8(0x151)+'t\x20to\x20gener'+'ate\x20secure'+'\x20version')};export const DownloadSbomFilesSchema={'analysisId':z['string']()['describe']('Analysis\x20I'+a17_0x4359b8(0x17c)+a17_0x4359b8(0x17a)+'iles\x20for')};
1
+ const a17_0x4f3eb0=a17_0x5371;(function(_0x5f083f,_0x2faa90){const _0x288c18=a17_0x5371,_0x30f3d2=_0x5f083f();while(!![]){try{const _0x567197=-parseInt(_0x288c18(0x210))/0x1*(parseInt(_0x288c18(0x203))/0x2)+parseInt(_0x288c18(0x213))/0x3+parseInt(_0x288c18(0x1e1))/0x4+-parseInt(_0x288c18(0x1d1))/0x5+parseInt(_0x288c18(0x209))/0x6*(-parseInt(_0x288c18(0x223))/0x7)+parseInt(_0x288c18(0x1e4))/0x8*(parseInt(_0x288c18(0x1f9))/0x9)+-parseInt(_0x288c18(0x20c))/0xa*(parseInt(_0x288c18(0x200))/0xb);if(_0x567197===_0x2faa90)break;else _0x30f3d2['push'](_0x30f3d2['shift']());}catch(_0x14131f){_0x30f3d2['push'](_0x30f3d2['shift']());}}}(a17_0x3f69,0x58444));const a17_0x183fbe=(function(){let _0x3dad9f=!![];return function(_0x7e1e71,_0x3062dd){const _0x498532=_0x3dad9f?function(){const _0x113afc=a17_0x5371;if(_0x3062dd){const _0x591953=_0x3062dd[_0x113afc(0x1cb)](_0x7e1e71,arguments);return _0x3062dd=null,_0x591953;}}:function(){};return _0x3dad9f=![],_0x498532;};}()),a17_0x1ba0df=a17_0x183fbe(this,function(){const _0x216aa1=a17_0x5371;return a17_0x1ba0df[_0x216aa1(0x229)]()[_0x216aa1(0x1e8)](_0x216aa1(0x20d)+'+$')['toString']()[_0x216aa1(0x215)+'r'](a17_0x1ba0df)[_0x216aa1(0x1e8)](_0x216aa1(0x20d)+'+$');});a17_0x1ba0df();import{z}from'zod';const a17_0x42e431={};a17_0x42e431[a17_0x4f3eb0(0x1c3)]='파일명에\x20확장자가\x20'+a17_0x4f3eb0(0x21a);export const AnalyzeFileSastSchema={'fileContent':z[a17_0x4f3eb0(0x1c5)]()[a17_0x4f3eb0(0x206)](0x1,a17_0x4f3eb0(0x20a)+a17_0x4f3eb0(0x1c2))['describe'](a17_0x4f3eb0(0x236)+a17_0x4f3eb0(0x1fd)+'e\x20code\x20fil'+'e\x20to\x20analy'+'ze'),'fileName':z['string']()[a17_0x4f3eb0(0x206)](0x1)[a17_0x4f3eb0(0x1e6)](_0x8cf83e=>_0x8cf83e[a17_0x4f3eb0(0x1f7)]('.'),a17_0x42e431)[a17_0x4f3eb0(0x204)]('File\x20name\x20'+a17_0x4f3eb0(0x222)+a17_0x4f3eb0(0x22a)+a17_0x4f3eb0(0x1f2)+a17_0x4f3eb0(0x1d4)+')'),'memo':z['string']()[a17_0x4f3eb0(0x1eb)]()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x237)+'emo')};export const AnalyzeFilesSastSchema={'filePaths':z[a17_0x4f3eb0(0x1fb)](z[a17_0x4f3eb0(0x1c5)]())[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x1da)+a17_0x4f3eb0(0x1e0)+'file\x20paths'+a17_0x4f3eb0(0x1ca)+a17_0x4f3eb0(0x207)+a17_0x4f3eb0(0x1d2)+'Service.ja'+a17_0x4f3eb0(0x220)+a17_0x4f3eb0(0x22c)+a17_0x4f3eb0(0x226)),'zipFileName':z[a17_0x4f3eb0(0x1c5)]()['optional']()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x208)+a17_0x4f3eb0(0x1ef)+a17_0x4f3eb0(0x202)+a17_0x4f3eb0(0x1ea)+'onal)'),'memo':z[a17_0x4f3eb0(0x1c5)]()[a17_0x4f3eb0(0x1eb)]()['describe'](a17_0x4f3eb0(0x237)+a17_0x4f3eb0(0x1e5))};export const AnalyzeFolderSastSchema={'folderPath':z['string']()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x1ee)+a17_0x4f3eb0(0x22e)+a17_0x4f3eb0(0x218)+a17_0x4f3eb0(0x1d3)+a17_0x4f3eb0(0x216)+'ze'),'zipFileName':z[a17_0x4f3eb0(0x1c5)]()['optional']()[a17_0x4f3eb0(0x204)]('Name\x20of\x20th'+'e\x20ZIP\x20file'+a17_0x4f3eb0(0x202)+a17_0x4f3eb0(0x1ea)+'onal,\x20uses'+a17_0x4f3eb0(0x1c6)+a17_0x4f3eb0(0x21b)+a17_0x4f3eb0(0x233)),'memo':z['string']()[a17_0x4f3eb0(0x1eb)]()[a17_0x4f3eb0(0x204)]('Analysis\x20m'+'emo')};export const AnalyzeZipSastSchema={'zipFilePath':z[a17_0x4f3eb0(0x1c5)]()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x1ee)+a17_0x4f3eb0(0x1ef)+'\x20containin'+a17_0x4f3eb0(0x1ec)+'ode\x20to\x20ana'+'lyze'),'zipFileName':z[a17_0x4f3eb0(0x1c5)]()[a17_0x4f3eb0(0x1eb)]()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x225)+a17_0x4f3eb0(0x235)+a17_0x4f3eb0(0x1c7)+a17_0x4f3eb0(0x1e2)+a17_0x4f3eb0(0x1f8)+a17_0x4f3eb0(0x1d0)+a17_0x4f3eb0(0x1cd)+a17_0x4f3eb0(0x1d5)),'memo':z['string']()[a17_0x4f3eb0(0x1eb)]()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x237)+a17_0x4f3eb0(0x1e5))};export const AnalyzeFileScaSchema={'filePath':z[a17_0x4f3eb0(0x1c5)]()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x1ee)+a17_0x4f3eb0(0x212)+a17_0x4f3eb0(0x21d)+a17_0x4f3eb0(0x21f)+a17_0x4f3eb0(0x1d8)+'kage.json\x27'+')'),'zipFileName':z['string']()[a17_0x4f3eb0(0x1eb)]()[a17_0x4f3eb0(0x204)]('Name\x20of\x20th'+a17_0x4f3eb0(0x1ef)+'\x20to\x20be\x20cre'+'ated\x20(opti'+a17_0x4f3eb0(0x1c9)),'memo':z[a17_0x4f3eb0(0x1c5)]()[a17_0x4f3eb0(0x1eb)]()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x237)+a17_0x4f3eb0(0x1e5)),'isSbom':z['boolean']()[a17_0x4f3eb0(0x1eb)]()[a17_0x4f3eb0(0x204)]('Whether\x20th'+a17_0x4f3eb0(0x232)+a17_0x4f3eb0(0x1f5)+a17_0x4f3eb0(0x1db)+'ycloneDX)')};export const AnalyzeFilesScaSchema={'filePaths':z[a17_0x4f3eb0(0x1fb)](z['string']())[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x1f0)+a17_0x4f3eb0(0x1ce)+a17_0x4f3eb0(0x1d7)+a17_0x4f3eb0(0x1c4)+a17_0x4f3eb0(0x217)+a17_0x4f3eb0(0x1e7)+a17_0x4f3eb0(0x1cc)+'\x20\x27requirem'+a17_0x4f3eb0(0x1f6)+')'),'zipFileName':z['string']()['optional']()['describe']('Name\x20of\x20th'+'e\x20ZIP\x20file'+a17_0x4f3eb0(0x202)+a17_0x4f3eb0(0x1ea)+a17_0x4f3eb0(0x1c9)),'memo':z[a17_0x4f3eb0(0x1c5)]()[a17_0x4f3eb0(0x1eb)]()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x237)+a17_0x4f3eb0(0x1e5)),'isSbom':z[a17_0x4f3eb0(0x221)]()[a17_0x4f3eb0(0x1eb)]()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x20e)+a17_0x4f3eb0(0x1de)+a17_0x4f3eb0(0x205)+'es\x20(SPDX/C'+'ycloneDX)')};export const AnalyzeFolderScaSchema={'folderPath':z[a17_0x4f3eb0(0x1c5)]()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x1ee)+a17_0x4f3eb0(0x1dd)+a17_0x4f3eb0(0x201)+a17_0x4f3eb0(0x22b)+a17_0x4f3eb0(0x1ce)+a17_0x4f3eb0(0x1d7)+a17_0x4f3eb0(0x1fe)),'zipFileName':z[a17_0x4f3eb0(0x1c5)]()['optional']()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x208)+a17_0x4f3eb0(0x1ef)+a17_0x4f3eb0(0x202)+a17_0x4f3eb0(0x1ea)+'onal,\x20uses'+'\x20folder\x20na'+a17_0x4f3eb0(0x21b)+a17_0x4f3eb0(0x233)),'memo':z[a17_0x4f3eb0(0x1c5)]()[a17_0x4f3eb0(0x1eb)]()[a17_0x4f3eb0(0x204)]('Analysis\x20m'+a17_0x4f3eb0(0x1e5)),'isSbom':z[a17_0x4f3eb0(0x221)]()['optional']()['describe']('Whether\x20th'+a17_0x4f3eb0(0x22e)+'ontains\x20SB'+a17_0x4f3eb0(0x1e3))};function a17_0x5371(_0x2ca794,_0x15e974){_0x2ca794=_0x2ca794-0x1c2;const _0x18572a=a17_0x3f69();let _0x1ba0df=_0x18572a[_0x2ca794];return _0x1ba0df;}export const AnalyzeZipScaSchema={'zipFilePath':z[a17_0x4f3eb0(0x1c5)]()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x1ee)+'e\x20ZIP\x20file'+a17_0x4f3eb0(0x214)+a17_0x4f3eb0(0x1ed)+'dependenci'+a17_0x4f3eb0(0x224)+a17_0x4f3eb0(0x22f)),'zipFileName':z[a17_0x4f3eb0(0x1c5)]()[a17_0x4f3eb0(0x1eb)]()['describe'](a17_0x4f3eb0(0x225)+a17_0x4f3eb0(0x235)+'stored\x20(op'+a17_0x4f3eb0(0x1e2)+a17_0x4f3eb0(0x1f8)+a17_0x4f3eb0(0x1d0)+a17_0x4f3eb0(0x1cd)+a17_0x4f3eb0(0x1d5)),'memo':z[a17_0x4f3eb0(0x1c5)]()[a17_0x4f3eb0(0x1eb)]()[a17_0x4f3eb0(0x204)]('Analysis\x20m'+'emo'),'isSbom':z[a17_0x4f3eb0(0x221)]()[a17_0x4f3eb0(0x1eb)]()['describe']('Whether\x20th'+a17_0x4f3eb0(0x219)+'ains\x20SBOM\x20'+a17_0x4f3eb0(0x21e))};export const TrackAnalysisProgressSchema={'analysisId':z[a17_0x4f3eb0(0x1c5)]()['describe'](a17_0x4f3eb0(0x1fa)+'D'),'intervalMs':z[a17_0x4f3eb0(0x230)]()[a17_0x4f3eb0(0x1eb)]()['describe'](a17_0x4f3eb0(0x1f3)+'ck\x20interva'+a17_0x4f3eb0(0x234)+a17_0x4f3eb0(0x231)+'efault:\x2030'+'00)'),'maxWaitMs':z[a17_0x4f3eb0(0x230)]()['optional']()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x1d6)+a17_0x4f3eb0(0x20b)+a17_0x4f3eb0(0x1f1)+a17_0x4f3eb0(0x1c8)+a17_0x4f3eb0(0x1df)+'ing\x20(defau'+a17_0x4f3eb0(0x238))};export const GetAnalysisStatusSchema={'analysisId':z['string']()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x1fa)+'D')};export const GetAnalysisResultsSchema={'analysisId':z['string']()['describe'](a17_0x4f3eb0(0x1fa)+'D')};export const GetScaAnalysisResultsSchema={'analysisId':z[a17_0x4f3eb0(0x1c5)]()['describe'](a17_0x4f3eb0(0x1fa)+a17_0x4f3eb0(0x21c)+a17_0x4f3eb0(0x22d))};function a17_0x3f69(){const _0x36f7dd=['stored\x20(op','econds\x20bef','onal)','\x20to\x20analyz','apply','\x27pom.xml\x27,','\x20if\x20not\x20sp','pendency\x20f','D\x20from\x20the','l\x20filename','1775575okQwWf','\x27/src/User','source\x20cod','vice.java\x27','ecified)','Maximum\x20ti','iles\x20to\x20an','e.g.,\x20\x27pac','t\x20to\x20gener','List\x20of\x20so','le\x20(SPDX/C','ile\x20conten','e\x20project\x20','e\x20files\x20ar','ore\x20return','urce\x20code\x20','2206120AOlOjK','tional,\x20us','OM\x20files','38744FLJEgk','emo','refine','ge.json\x27,\x20','search','\x20security\x20','ated\x20(opti','optional','g\x20source\x20c','g\x20project\x20','Path\x20to\x20th','e\x20ZIP\x20file','List\x20of\x20de','\x20in\x20millis',',\x20\x27UserSer','Status\x20che','analysis','an\x20SBOM\x20fi','ents.txt\x27]','includes','es\x20origina','1323igcIkZ','Analysis\x20I','array','Original\x20f','\x20the\x20sourc','alyze','iles\x20for','768812YKOmuS','folder\x20con','\x20to\x20be\x20cre','36TNPRJV','describe','e\x20SBOM\x20fil','min','e\x20(e.g.,\x20[','Name\x20of\x20th','18JuhnDP','파일\x20내용이\x20비어있','me\x20to\x20wait','10dVNMCu','(((.+)+)+)','Whether\x20th','\x20version','8530ayAuVb','ate\x20secure','e\x20dependen','891279EnDqDs','\x20containin','constructo','e\x20to\x20analy','.,\x20[\x27packa','ontaining\x20','e\x20ZIP\x20cont','필요합니다','me\x20if\x20not\x20','D\x20from\x20SCA','cy\x20file\x20to','files','\x20analyze\x20(','va\x27,\x20\x27/src','boolean','with\x20exten','1447733rpTKNi','es\x20to\x20anal','ZIP\x20file\x20n','va\x27])','oad\x20SBOM\x20f','D\x20to\x20downl','toString','sion\x20(e.g.','taining\x20de','/DbUtil.ja','\x20analysis','e\x20folder\x20c','yze','number','seconds\x20(d','e\x20file\x20is\x20','specified)','l\x20in\x20milli','ame\x20to\x20be\x20','Content\x20of','Analysis\x20m','lt:\x2030000)','습니다','message','alyze\x20(e.g','string','\x20folder\x20na'];a17_0x3f69=function(){return _0x36f7dd;};return a17_0x3f69();}export const GenerateSecureCodeSchema={'analysisId':z['string']()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x1fa)+a17_0x4f3eb0(0x1cf)+a17_0x4f3eb0(0x1e9)+a17_0x4f3eb0(0x1f4)),'fileContent':z[a17_0x4f3eb0(0x1c5)]()['describe'](a17_0x4f3eb0(0x1fc)+a17_0x4f3eb0(0x1dc)+a17_0x4f3eb0(0x1d9)+a17_0x4f3eb0(0x211)+a17_0x4f3eb0(0x20f))};export const DownloadSbomFilesSchema={'analysisId':z[a17_0x4f3eb0(0x1c5)]()[a17_0x4f3eb0(0x204)](a17_0x4f3eb0(0x1fa)+a17_0x4f3eb0(0x228)+a17_0x4f3eb0(0x227)+a17_0x4f3eb0(0x1ff))};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env tsx
2
- const a18_0x271f29=a18_0x24b5;(function(_0x8f0ae,_0x3bd900){const _0x143bdd=a18_0x24b5,_0x3db77d=_0x8f0ae();while(!![]){try{const _0x122d6e=parseInt(_0x143bdd(0x25d))/0x1*(parseInt(_0x143bdd(0x2c3))/0x2)+parseInt(_0x143bdd(0x25e))/0x3*(-parseInt(_0x143bdd(0x1d6))/0x4)+-parseInt(_0x143bdd(0x26d))/0x5+parseInt(_0x143bdd(0x286))/0x6+-parseInt(_0x143bdd(0x288))/0x7*(parseInt(_0x143bdd(0x195))/0x8)+parseInt(_0x143bdd(0x265))/0x9+parseInt(_0x143bdd(0x1f9))/0xa;if(_0x122d6e===_0x3bd900)break;else _0x3db77d['push'](_0x3db77d['shift']());}catch(_0x289b20){_0x3db77d['push'](_0x3db77d['shift']());}}}(a18_0x3122,0x37e3c));const a18_0xaa7fab=(function(){let _0x224268=!![];return function(_0x33864,_0x185c03){const _0x1e9433=_0x224268?function(){const _0x2bbe0d=a18_0x24b5;if(_0x185c03){const _0x30c6e8=_0x185c03[_0x2bbe0d(0x302)](_0x33864,arguments);return _0x185c03=null,_0x30c6e8;}}:function(){};return _0x224268=![],_0x1e9433;};}()),a18_0x49b056=a18_0xaa7fab(this,function(){const _0x220cd7=a18_0x24b5;return a18_0x49b056['toString']()[_0x220cd7(0x2c8)](_0x220cd7(0x1bd)+'+$')[_0x220cd7(0x279)]()['constructo'+'r'](a18_0x49b056)[_0x220cd7(0x2c8)](_0x220cd7(0x1bd)+'+$');});a18_0x49b056();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_0x50760b from'path';import a18_0x482cad 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,DownloadSbomFilesSchema}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_0x11bbcd={};a18_0x11bbcd[a18_0x271f29(0x2f6)]=a18_0x271f29(0x1be)+a18_0x271f29(0x21c)+'r',a18_0x11bbcd[a18_0x271f29(0x224)]=a18_0x271f29(0x23c);const server=new McpServer(a18_0x11bbcd),analysisService=new AnalysisService(),sastController=new SastController(analysisService),scaController=new ScaController(analysisService),analysisController=new AnalysisController(analysisService),securityController=new SecurityController(analysisService),systemController=new SystemController(),a18_0x3f91f0={};a18_0x3f91f0[a18_0x271f29(0x1d0)]=a18_0x271f29(0x214)+a18_0x271f29(0x2f8)+'lysis',a18_0x3f91f0[a18_0x271f29(0x1a1)+'n']=a18_0x271f29(0x2b2)+a18_0x271f29(0x2ac)+'atic\x20Appli'+a18_0x271f29(0x1ed)+a18_0x271f29(0x2f2)+a18_0x271f29(0x29d)+a18_0x271f29(0x241)+a18_0x271f29(0x1e1)+a18_0x271f29(0x2d6)+a18_0x271f29(0x2a9)+'de\x20file.\x20U'+a18_0x271f29(0x1f0)+a18_0x271f29(0x207)+a18_0x271f29(0x2e9)+a18_0x271f29(0x244)+a18_0x271f29(0x307)+a18_0x271f29(0x2b3)+a18_0x271f29(0x27c)+a18_0x271f29(0x21b)+'gle\x20file\x20('+a18_0x271f29(0x1aa)+a18_0x271f29(0x2f4)+a18_0x271f29(0x219)+a18_0x271f29(0x2bf)+a18_0x271f29(0x289)+a18_0x271f29(0x235)+a18_0x271f29(0x1ca)+'injection,'+a18_0x271f29(0x2ef)+'path\x20trave'+'rsal\x20withi'+'n\x20the\x20code'+'.\x20Returns\x20'+a18_0x271f29(0x273)+a18_0x271f29(0x233)+a18_0x271f29(0x1af),a18_0x3f91f0[a18_0x271f29(0x1b7)+'a']=AnalyzeFileSastSchema,server[a18_0x271f29(0x1fc)+'ol'](a18_0x271f29(0x2c9)+a18_0x271f29(0x1a8),a18_0x3f91f0,async _0x1bbcfd=>sastController[a18_0x271f29(0x215)+a18_0x271f29(0x290)](_0x1bbcfd));const a18_0x49964a={};a18_0x49964a[a18_0x271f29(0x1d0)]=a18_0x271f29(0x1de)+a18_0x271f29(0x24f)+a18_0x271f29(0x2e6),a18_0x49964a['descriptio'+'n']=a18_0x271f29(0x2b2)+a18_0x271f29(0x2ff)+a18_0x271f29(0x263)+'ultiple\x20so'+a18_0x271f29(0x264)+a18_0x271f29(0x1f1)+a18_0x271f29(0x2de)+a18_0x271f29(0x240)+'ute\x20paths.'+'\x20Useful\x20fo'+'r\x20analyzin'+a18_0x271f29(0x2e3)+a18_0x271f29(0x227)+a18_0x271f29(0x208)+a18_0x271f29(0x303)+a18_0x271f29(0x22c)+a18_0x271f29(0x2f0)+a18_0x271f29(0x1ae)+'ile\x20vulner'+a18_0x271f29(0x2aa)+a18_0x271f29(0x2ee)+a18_0x271f29(0x29b)+a18_0x271f29(0x2da),a18_0x49964a[a18_0x271f29(0x1b7)+'a']=AnalyzeFilesSastSchema,server['registerTo'+'ol'](a18_0x271f29(0x2c9)+a18_0x271f29(0x210),a18_0x49964a,async _0x3e68c2=>sastController[a18_0x271f29(0x215)+a18_0x271f29(0x238)](_0x3e68c2));const a18_0x2aaa4d={};a18_0x2aaa4d['title']='Folder\x20SAS'+a18_0x271f29(0x28e),a18_0x2aaa4d[a18_0x271f29(0x1a1)+'n']='Initiates\x20'+'a\x20comprehe'+'nsive\x20SAST'+a18_0x271f29(0x2e0)+a18_0x271f29(0x301)+a18_0x271f29(0x205)+'ry.\x20It\x20aut'+'omatically'+a18_0x271f29(0x2ba)+'the\x20source'+a18_0x271f29(0x282)+'cluding\x20co'+'mmon\x20build'+a18_0x271f29(0x236)+a18_0x271f29(0x2ab)+a18_0x271f29(0x1ba)+a18_0x271f29(0x1e8)+'s\x20them\x20for'+a18_0x271f29(0x1c0)+a18_0x271f29(0x1d9)+a18_0x271f29(0x1a4)+a18_0x271f29(0x2ee)+'n\x20\x27analysi'+'sId\x27.',a18_0x2aaa4d[a18_0x271f29(0x1b7)+'a']=AnalyzeFolderSastSchema,server['registerTo'+'ol'](a18_0x271f29(0x2b0)+'lder_sast',a18_0x2aaa4d,async _0x1b6341=>sastController['analyzeFol'+a18_0x271f29(0x239)](_0x1b6341));const a18_0x546e78={};a18_0x546e78[a18_0x271f29(0x1d0)]='ZIP\x20File\x20S'+a18_0x271f29(0x1a0)+'is',a18_0x546e78[a18_0x271f29(0x1a1)+'n']=a18_0x271f29(0x2b2)+'a\x20SAST\x20ana'+a18_0x271f29(0x1b2)+a18_0x271f29(0x2eb)+'ve\x20contain'+a18_0x271f29(0x28c)+a18_0x271f29(0x2c0)+a18_0x271f29(0x206)+a18_0x271f29(0x1c4)+a18_0x271f29(0x1cf)+a18_0x271f29(0x1b6)+a18_0x271f29(0x211)+'P.\x20It\x20scan'+'s\x20the\x20code'+a18_0x271f29(0x21d)+'e\x20archive\x20'+a18_0x271f29(0x2fe)+a18_0x271f29(0x2c6)+a18_0x271f29(0x260)+a18_0x271f29(0x2f5)+'Id\x27.',a18_0x546e78[a18_0x271f29(0x1b7)+'a']=AnalyzeZipSastSchema,server['registerTo'+'ol'](a18_0x271f29(0x2db)+a18_0x271f29(0x2fa),a18_0x546e78,async _0x29fece=>sastController[a18_0x271f29(0x299)+'Sast'](_0x29fece));const a18_0x46a72b={};a18_0x46a72b[a18_0x271f29(0x1d0)]='Single\x20Fil'+a18_0x271f29(0x253)+a18_0x271f29(0x2e6),a18_0x46a72b[a18_0x271f29(0x1a1)+'n']=a18_0x271f29(0x2b2)+a18_0x271f29(0x26c)+a18_0x271f29(0x249)+a18_0x271f29(0x2b1)+a18_0x271f29(0x1e7)+a18_0x271f29(0x271)+'\x20dependenc'+'y\x20file\x20(e.'+a18_0x271f29(0x295)+a18_0x271f29(0x2f1)+a18_0x271f29(0x291)+a18_0x271f29(0x2ea)+a18_0x271f29(0x270)+'dentifies\x20'+a18_0x271f29(0x1f5)+a18_0x271f29(0x204)+a18_0x271f29(0x199)+a18_0x271f29(0x254)+a18_0x271f29(0x261)+a18_0x271f29(0x1f6)+'\x20an\x20\x27analy'+a18_0x271f29(0x2cc),a18_0x46a72b['inputSchem'+'a']=AnalyzeFileScaSchema,server[a18_0x271f29(0x1fc)+'ol']('analyze_fi'+a18_0x271f29(0x296),a18_0x46a72b,async _0xfd1907=>scaController[a18_0x271f29(0x215)+a18_0x271f29(0x2a2)](_0xfd1907));const a18_0x420204={};a18_0x420204[a18_0x271f29(0x1d0)]=a18_0x271f29(0x1de)+a18_0x271f29(0x1d8)+'sis',a18_0x420204['descriptio'+'n']='Initiates\x20'+a18_0x271f29(0x198)+a18_0x271f29(0x263)+a18_0x271f29(0x1a5)+a18_0x271f29(0x2c5)+'iles\x20at\x20on'+a18_0x271f29(0x218)+a18_0x271f29(0x20a)+a18_0x271f29(0x27f)+a18_0x271f29(0x27a)+a18_0x271f29(0x27b)+a18_0x271f29(0x19c)+a18_0x271f29(0x251)+a18_0x271f29(0x20c)+a18_0x271f29(0x1fd)+'.',a18_0x420204[a18_0x271f29(0x1b7)+'a']=AnalyzeFilesScaSchema,server['registerTo'+'ol'](a18_0x271f29(0x2c9)+'les_sca',a18_0x420204,async _0x1bc9df=>scaController[a18_0x271f29(0x215)+a18_0x271f29(0x1d7)](_0x1bc9df));const a18_0x5db728={};a18_0x5db728[a18_0x271f29(0x1d0)]=a18_0x271f29(0x1bc)+a18_0x271f29(0x221),a18_0x5db728[a18_0x271f29(0x1a1)+'n']=a18_0x271f29(0x2b2)+a18_0x271f29(0x2df)+a18_0x271f29(0x246)+'\x20project\x20f'+a18_0x271f29(0x1fe)+'searches\x20f'+a18_0x271f29(0x209)+'ported\x20dep'+a18_0x271f29(0x297)+'claration\x20'+a18_0x271f29(0x2cf)+a18_0x271f29(0x266)+'lnerabilit'+a18_0x271f29(0x2bd)+a18_0x271f29(0x220)+a18_0x271f29(0x229)+a18_0x271f29(0x1b4)+'the\x20entire'+a18_0x271f29(0x1fa)+a18_0x271f29(0x260)+a18_0x271f29(0x2f5)+a18_0x271f29(0x23a),a18_0x5db728['inputSchem'+'a']=AnalyzeFolderScaSchema,server['registerTo'+'ol'](a18_0x271f29(0x2b0)+a18_0x271f29(0x242),a18_0x5db728,async _0x4d4a13=>scaController[a18_0x271f29(0x1d5)+a18_0x271f29(0x2b4)](_0x4d4a13));const a18_0x8681af={};a18_0x8681af[a18_0x271f29(0x1d0)]=a18_0x271f29(0x2f9)+'CA\x20Analysi'+'s',a18_0x8681af[a18_0x271f29(0x1a1)+'n']=a18_0x271f29(0x2b2)+'an\x20SCA\x20sca'+'n\x20on\x20a\x20ZIP'+a18_0x271f29(0x27e)+a18_0x271f29(0x256)+a18_0x271f29(0x26b)+a18_0x271f29(0x21f)+a18_0x271f29(0x1e6)+a18_0x271f29(0x230)+'ackaged\x20or'+a18_0x271f29(0x1f2)+a18_0x271f29(0x22b)+a18_0x271f29(0x204)+'ce\x20risks.\x20'+'Returns\x20an'+a18_0x271f29(0x2f5)+a18_0x271f29(0x23a),a18_0x8681af[a18_0x271f29(0x1b7)+'a']=AnalyzeZipScaSchema,server[a18_0x271f29(0x1fc)+'ol'](a18_0x271f29(0x2db)+a18_0x271f29(0x255),a18_0x8681af,async _0x34fe60=>scaController[a18_0x271f29(0x299)+a18_0x271f29(0x1da)](_0x34fe60));const a18_0x544153={};a18_0x544153[a18_0x271f29(0x1d0)]='Track\x20Anal'+'ysis\x20Progr'+a18_0x271f29(0x1c9),a18_0x544153['descriptio'+'n']=a18_0x271f29(0x1a6)+a18_0x271f29(0x1a2)+a18_0x271f29(0x2d2)+a18_0x271f29(0x20e)+a18_0x271f29(0x1dc)+'D\x20and\x20upda'+a18_0x271f29(0x1e2)+a18_0x271f29(0x2ce)+'fication.\x20'+a18_0x271f29(0x1fb)+a18_0x271f29(0x28f)+a18_0x271f29(0x248)+a18_0x271f29(0x305)+'CESS,\x20ANAL'+a18_0x271f29(0x1c8)+a18_0x271f29(0x1ec)+a18_0x271f29(0x1b5)+a18_0x271f29(0x2b5)+'s\x20only\x20pro'+a18_0x271f29(0x259)+a18_0x271f29(0x1bb)+a18_0x271f29(0x1d2)+'e.',a18_0x544153['inputSchem'+'a']=TrackAnalysisProgressSchema,server['registerTo'+'ol'](a18_0x271f29(0x275)+'ysis_progr'+a18_0x271f29(0x1c9),a18_0x544153,async(_0x16c26d,_0x5496af)=>analysisController['trackAnaly'+'sisProgres'+'s'](_0x16c26d,_0x5496af));const a18_0x21ce1a={};function a18_0x3122(){const _0x18f15f=['endency\x20de','leted\x20SCA\x20','analyzeZip','generate_s','n\x20\x27analysi','tes.','ing)\x20analy','\x20an\x20ongoin','sResults','g\x20log\x20dire','ecure_code','eSca','\x20of\x20the\x20fi','s\x20percenta','rogress\x20an','CheckerSer','is\x20Results','\x20for\x20manua','\x20source\x20co','abilities.','\x20like\x20node','a\x20SAST\x20(St','catch','mimeType','on\x20Analysi','analyze_fo','position\x20A','Initiates\x20','specific\x20c','derSca','Progress\x20i','omponent\x20t','is\x20Status','nce\x20for\x20li','MCP\x20secure','\x20packages\x20',')\x20and\x20an\x20A','ges.\x20Use\x20t','ies\x20and\x20li','ecure\x20Code','\x20It\x20identi','\x20code.\x20Use','BOM\x20Files','sed\x20on\x20pre','74dtSojO','es\x20into\x20th','pendency\x20f','ty\x20flaws.\x20','ccessfully','search','analyze_fi','P\x20Rules','connect','sisId\x27.','content','gress\x20Noti','files\x20to\x20i','xplanation','x,\x20and\x20a\x20d','nalysis\x20pr','g\x20the\x20chan','ensive\x20rep','Automatica','f\x20a\x20single','rom\x20a\x20comp','le\x20paths.','existsSync','sId\x27.','analyze_zi','tailed\x20SCA','\x20is\x20prefer','ified\x20by\x20t','a\x20full\x20SCA','\x20analysis\x20','ndings.','sparrow://','g\x20a\x20relate','\x20the\x20corre','cted\x20code,','ysis','\x20vulnerabi','l\x20polling\x20','g\x20the\x20logi','uirements.','\x20ZIP\x20archi','.\x20Provides','ist\x20of\x20dow','\x20Returns\x20a','\x20XSS,\x20and\x20','ule)\x20to\x20fi','e.json,\x20po','urity\x20Test','cureCode','troller\x20or','\x20\x27analysis','name','\x20once\x20the\x20','e\x20SAST\x20Ana','ZIP\x20File\x20S','p_sast','dirname','re,\x20patche','Log\x20file\x20l','for\x20securi','a\x20SAST\x20ana','getAnalysi','on\x20an\x20enti','apply',',\x20a\x20packag','resolve','Y,\x20PRE_PRO','ration\x20ser','rity\x20of\x20a\x20','ing,\x20\x27trac','Downloads\x20','40TjXAGj','get_analys','e\x20context.','an\x20SCA\x20ana','ce\x20librari','warn','red.','ackage\x20man','lnerabilit','he\x20local\x20\x27','logs','AST\x20Analys','descriptio','ly\x20check\x20a','scription,','rity\x20scan.','ultiple\x20de','Periodical','status\x20is\x20','le_sast','Generate\x20S','like\x20a\x20Con','d\x20version\x20','combined.l','bom_files','nd\x20cross-f','tracking.','ort\x20with\x20c','of\x20the\x20ori','lysis\x20on\x20a','ults','ks\x20across\x20','COMPLETE.\x20','ady\x20packag','inputSchem','is_results','ocations\x20-','_modules)\x20','ng\x20the\x20ANA','Folder\x20SCA','(((.+)+)+)','secure-cod','the\x20genera','\x20a\x20full-pr','ges.\x20For\x20a','rules','vious\x20SAST','\x20the\x20proje','brary\x20upda','results.\x20I','\x20(Software','YSIS,\x20POST','ess','\x20like\x20SQL\x20','sparrow-ru','saved\x20to\x20t','output/sbo','pqRCu','ct\x20is\x20alre','title','is_status','LYSIS\x20stag','ver\x20starte','finding\x20vu','analyzeFol','421796kUXDyq','esSca','\x20SCA\x20Analy','oject\x20secu','Sca','T\x20analysis','analysis\x20I','type','Multi-File','Sparrow\x20MC','ue\x20without','\x20content\x20o','te\x20via\x20Pro','iance\x20info','nd\x20remedia','messages','\x20for\x20analy','nalysis)\x20o','and\x20upload','ysisResult','\x20results\x20o','\x20a\x20compreh','_PROCESS,\x20','cation\x20Sec','his\x20after\x20','\x20code\x20gene','se\x20this\x20fo','files\x20spec','\x20legacy\x20pr','Fetches\x20de','Checker\x20se','vulnerable','s.\x20Returns','Provides\x20a','parrow\x20MCP','5015010xCrqzS','\x20project.\x20','Analysis\x20s','registerTo','nalysisId\x27','older.\x20It\x20','k_analysis','\x20combined:','d\x20stage\x20of','LETE\x27\x20and\x20','\x27COMPLETE\x27','\x20open-sour','re\x20directo','\x20this\x20when','r\x20analyzin','iles\x20(e.g.','or\x20all\x20sup','\x20for\x20proje','les','urns\x20an\x20\x27a','ng/creatin','ogress\x20by\x20','\x20Compositi','les_sast','ed\x20as\x20a\x20ZI','ber,\x20compl','s\x20is\x20\x27COMP','Single\x20Fil','analyzeFil','sion,\x20lice','\x20usage\x20rul','ce.\x20Useful','\x20Service).',',\x20CVSS),\x20a','t\x20or\x20a\x20sin','e-generato','\x20within\x20th','ompt','es.\x20Useful','cense\x20comp','\x20Analysis','alysis\x20Res','t\x20provides','version','urns\x20the\x20l','registerRe','d\x20set\x20of\x20f','omFiles','liance\x20ris','to\x20see\x20if\x20','ojects\x20for','e\x20or\x20a\x20mod','ables\x20(ver','getScaAnal','atus\x20is\x20\x27C','zing\x20pre-p','verity,\x20de','registerPr','isId\x27\x20for\x20','ialized\x20su','rabilities','\x20artifacts','rvice\x20init','esSast','derSast','Id\x27.','text','1.0.0','user','initialize','g\x20analysis','heir\x20absol','sis\x20on\x20the','lder_sca','Official\x20S','c\x20and\x20secu','iles\x20(SPDX','\x20scan\x20on\x20a','text/markd','INIT,\x20READ','ftware\x20Com','role','X,\x20SWID)\x20f','sId>\x27\x20dire','\x20a\x20brief\x20e','get_sca_an','\x20SAST\x20Anal','to\x20get\x20bas','agers.\x20Ret','join','e\x20SCA\x20Anal','es\x20and\x20lic','p_sca','ontaining\x20','lists\x20(CVE','s)\x20results','vided\x20duri','\x20checker\x20i',',\x20error:\x20','alysis_res','4951AgJFQI','3HgEECY','.\x20Use\x20this','Returns\x20an','ense\x20issue','nloaded\x20fi','lysis\x20on\x20m','urce\x20code\x20','776637wpOXHC','dentify\x20vu',',\x20CycloneD','Warning\x20wh','\x20file\x20path','lities\x20(se','dependenci','an\x20SCA\x20(So','1825880uUIPzj','ile\x20checki','info','txt).\x20It\x20i','n\x20a\x20single','download_s','an\x20\x27analys','Files\x20are\x20','track_anal','\x20failed\x20(w','Download\x20S','m/<analysi','toString','ultiple\x20mo','dules\x20or\x20p','ode\x20snippe','source','\x20archive\x20c','cts\x20with\x20m','Get\x20Analys','own','\x20files\x20(ex','lly\x20genera','ed\x20list\x20of','nce\x20the\x20st','1006308tuJszg','ialization','334810JHrsTw','fies\x20vulne','error.log','generateSe','ing\x20source','Get\x20SCA\x20An','T\x20Analysis','tages\x20are\x20','eSast','m.xml,\x20req','tailed\x20SAS','mkdirSync','tes\x20a\x20secu','g.,\x20packag','le_sca'];a18_0x3122=function(){return _0x18f15f;};return a18_0x3122();}a18_0x21ce1a[a18_0x271f29(0x1d0)]=a18_0x271f29(0x280)+a18_0x271f29(0x2b7),a18_0x21ce1a[a18_0x271f29(0x1a1)+'n']='Checks\x20the'+'\x20current\x20p'+a18_0x271f29(0x2a5)+a18_0x271f29(0x201)+a18_0x271f29(0x29e)+a18_0x271f29(0x23f)+a18_0x271f29(0x25f)+a18_0x271f29(0x2a8)+a18_0x271f29(0x2e8)+a18_0x271f29(0x22a)+'an\x20analysi'+a18_0x271f29(0x213)+a18_0x271f29(0x202)+a18_0x271f29(0x250)+'ic\x20progres'+a18_0x271f29(0x2a4)+a18_0x271f29(0x1c1)+'ctive\x20wait'+a18_0x271f29(0x308)+a18_0x271f29(0x1ff)+'_progress\x27'+a18_0x271f29(0x2dd)+a18_0x271f29(0x19b),a18_0x21ce1a[a18_0x271f29(0x1b7)+'a']=GetAnalysisStatusSchema,server['registerTo'+'ol']('get_analys'+a18_0x271f29(0x1d1),a18_0x21ce1a,async _0x191ae6=>analysisController[a18_0x271f29(0x300)+'sStatus'](_0x191ae6));function a18_0x24b5(_0x257192,_0x539fcc){_0x257192=_0x257192-0x195;const _0x5956b6=a18_0x3122();let _0x49b056=_0x5956b6[_0x257192];return _0x49b056;}const a18_0x21e617={};a18_0x21e617['title']=a18_0x271f29(0x280)+a18_0x271f29(0x2a7),a18_0x21e617[a18_0x271f29(0x1a1)+'n']='Fetches\x20de'+a18_0x271f29(0x292)+a18_0x271f29(0x1db)+a18_0x271f29(0x1ea)+a18_0x271f29(0x285)+a18_0x271f29(0x22f)+'OMPLETE\x27.\x20'+a18_0x271f29(0x1f7)+'\x20categoriz'+a18_0x271f29(0x284)+a18_0x271f29(0x2e7)+a18_0x271f29(0x26a)+a18_0x271f29(0x231)+a18_0x271f29(0x1a3)+a18_0x271f29(0x269)+',\x20line\x20num'+a18_0x271f29(0x212)+a18_0x271f29(0x1e3)+a18_0x271f29(0x2bb)+'I-generate'+'d\x20briefing'+a18_0x271f29(0x2a3)+a18_0x271f29(0x2e1),a18_0x21e617[a18_0x271f29(0x1b7)+'a']=GetAnalysisResultsSchema,server['registerTo'+'ol'](a18_0x271f29(0x196)+a18_0x271f29(0x1b8),a18_0x21e617,async _0x57a662=>analysisController[a18_0x271f29(0x300)+a18_0x271f29(0x29f)](_0x57a662));const a18_0x4ceac4={};a18_0x4ceac4[a18_0x271f29(0x1d0)]=a18_0x271f29(0x28d)+a18_0x271f29(0x222)+a18_0x271f29(0x1b3),a18_0x4ceac4[a18_0x271f29(0x1a1)+'n']=a18_0x271f29(0x1f3)+a18_0x271f29(0x2dc)+a18_0x271f29(0x1c7)+a18_0x271f29(0x20f)+a18_0x271f29(0x2af)+a18_0x271f29(0x258)+a18_0x271f29(0x2f7)+a18_0x271f29(0x1a7)+a18_0x271f29(0x203)+a18_0x271f29(0x2ec)+a18_0x271f29(0x1eb)+a18_0x271f29(0x2d4)+a18_0x271f29(0x1b0)+a18_0x271f29(0x2b6)+a18_0x271f29(0x22d)+a18_0x271f29(0x216)+'nse),\x20vuln'+'erability\x20'+a18_0x271f29(0x257)+a18_0x271f29(0x21a)+a18_0x271f29(0x1e4)+'tion\x20guida'+a18_0x271f29(0x2b8)+a18_0x271f29(0x1c5)+a18_0x271f29(0x29c),a18_0x4ceac4[a18_0x271f29(0x1b7)+'a']=GetScaAnalysisResultsSchema,server[a18_0x271f29(0x1fc)+'ol'](a18_0x271f29(0x24e)+a18_0x271f29(0x25c)+'ults',a18_0x4ceac4,async _0x599ee6=>analysisController[a18_0x271f29(0x22e)+a18_0x271f29(0x1e9)+'s'](_0x599ee6));const a18_0x481da6={};a18_0x481da6[a18_0x271f29(0x1d0)]=a18_0x271f29(0x277)+a18_0x271f29(0x2c1),a18_0x481da6[a18_0x271f29(0x1a1)+'n']=a18_0x271f29(0x309)+a18_0x271f29(0x1bf)+'ted\x20SBOM\x20f'+a18_0x271f29(0x245)+a18_0x271f29(0x267)+a18_0x271f29(0x24b)+a18_0x271f29(0x2d7)+a18_0x271f29(0x298)+'analysis.\x20'+a18_0x271f29(0x274)+a18_0x271f29(0x1cc)+a18_0x271f29(0x19e)+a18_0x271f29(0x1cd)+a18_0x271f29(0x278)+a18_0x271f29(0x24c)+'ctory.\x20Ret'+a18_0x271f29(0x225)+a18_0x271f29(0x2ed)+a18_0x271f29(0x262)+a18_0x271f29(0x2d8),a18_0x481da6['inputSchem'+'a']=DownloadSbomFilesSchema,server[a18_0x271f29(0x1fc)+'ol'](a18_0x271f29(0x272)+a18_0x271f29(0x1ad),a18_0x481da6,async _0x1ff350=>scaController['downloadSb'+a18_0x271f29(0x228)](_0x1ff350));const a18_0x46df0b={};a18_0x46df0b[a18_0x271f29(0x1d0)]=a18_0x271f29(0x1a9)+a18_0x271f29(0x2be),a18_0x46df0b[a18_0x271f29(0x1a1)+'n']=a18_0x271f29(0x2d5)+a18_0x271f29(0x283)+a18_0x271f29(0x294)+a18_0x271f29(0x2fc)+a18_0x271f29(0x1ab)+a18_0x271f29(0x1b1)+'ginal\x20sour'+'ce\x20code\x20ba'+a18_0x271f29(0x2c2)+a18_0x271f29(0x1c3)+'\x20analysis\x20'+a18_0x271f29(0x1c6)+a18_0x271f29(0x223)+a18_0x271f29(0x2e4)+a18_0x271f29(0x2e5)+a18_0x271f29(0x24d)+a18_0x271f29(0x2d0)+'\x20of\x20the\x20fi'+a18_0x271f29(0x2d1)+'iff\x20showin'+a18_0x271f29(0x2d3)+a18_0x271f29(0x2bc)+a18_0x271f29(0x1ee)+a18_0x271f29(0x1d4)+a18_0x271f29(0x19d)+'ies\x20in\x20SAS'+'T.',a18_0x46df0b[a18_0x271f29(0x1b7)+'a']=GenerateSecureCodeSchema,server[a18_0x271f29(0x1fc)+'ol'](a18_0x271f29(0x29a)+a18_0x271f29(0x2a1),a18_0x46df0b,async _0x38574a=>securityController[a18_0x271f29(0x28b)+a18_0x271f29(0x2f3)](_0x38574a));const a18_0x172917={};a18_0x172917[a18_0x271f29(0x1a1)+'n']=a18_0x271f29(0x243)+a18_0x271f29(0x1f8)+'\x20usage\x20rul'+'es\x20and\x20gui'+'delines\x20fo'+'r\x20AI\x20agent'+'s.',a18_0x172917[a18_0x271f29(0x2ae)]=a18_0x271f29(0x247)+a18_0x271f29(0x281),server[a18_0x271f29(0x226)+a18_0x271f29(0x27d)](a18_0x271f29(0x1cb)+a18_0x271f29(0x20b),a18_0x271f29(0x2e2)+a18_0x271f29(0x1c2),a18_0x172917,async _0x223eb7=>{const _0x1d14a7=a18_0x271f29,_0x3666fd={};_0x3666fd['uri']=_0x223eb7['href'],_0x3666fd[_0x1d14a7(0x23b)]=SPARROW_RULES,_0x3666fd[_0x1d14a7(0x2ae)]='text/markd'+'own';const _0x5c2d83={};return _0x5c2d83['contents']=[_0x3666fd],_0x5c2d83;});const a18_0x2fb650={};a18_0x2fb650[a18_0x271f29(0x1d0)]=a18_0x271f29(0x1df)+a18_0x271f29(0x2ca),a18_0x2fb650[a18_0x271f29(0x1a1)+'n']='Load\x20the\x20S'+'parrow\x20MCP'+a18_0x271f29(0x217)+a18_0x271f29(0x2c4)+a18_0x271f29(0x197),server[a18_0x271f29(0x232)+a18_0x271f29(0x21e)](a18_0x271f29(0x1cb)+a18_0x271f29(0x20b),a18_0x2fb650,async()=>{const _0x5ea97f=a18_0x271f29,_0x5442ef={};_0x5442ef[_0x5ea97f(0x1dd)]='text',_0x5442ef[_0x5ea97f(0x23b)]=SPARROW_RULES;const _0x4ad800={};_0x4ad800[_0x5ea97f(0x24a)]=_0x5ea97f(0x23d),_0x4ad800[_0x5ea97f(0x2cd)]=_0x5442ef;const _0x326142={};return _0x326142[_0x5ea97f(0x1e5)]=[_0x4ad800],_0x326142;});const transport=new StdioServerTransport();logger['info'](a18_0x271f29(0x2b9)+a18_0x271f29(0x1ef)+a18_0x271f29(0x306)+a18_0x271f29(0x1d3)+'d');try{const serverFileDir=a18_0x50760b[a18_0x271f29(0x2fb)](fileURLToPath(import.meta.url)),projectRoot=a18_0x50760b[a18_0x271f29(0x304)](serverFileDir,'..'),logsDir=a18_0x50760b[a18_0x271f29(0x304)](projectRoot,a18_0x271f29(0x19f));if(!a18_0x482cad[a18_0x271f29(0x2d9)](logsDir)){const a18_0x3883a9={};a18_0x3883a9['recursive']=!![],a18_0x482cad[a18_0x271f29(0x293)](logsDir,a18_0x3883a9);}const combinedPath=a18_0x50760b[a18_0x271f29(0x252)](logsDir,a18_0x271f29(0x1ac)+'og'),errorPath=a18_0x50760b[a18_0x271f29(0x252)](logsDir,a18_0x271f29(0x28a));logger[a18_0x271f29(0x26f)](a18_0x271f29(0x2fd)+a18_0x271f29(0x1b9)+a18_0x271f29(0x200)+'\x20'+combinedPath+a18_0x271f29(0x25b)+errorPath);}catch(a18_0x40c749){logger[a18_0x271f29(0x19a)](a18_0x271f29(0x268)+a18_0x271f29(0x26e)+a18_0x271f29(0x20d)+a18_0x271f29(0x2a0)+'ctory:',a18_0x40c749);}analysisService[a18_0x271f29(0x23e)+a18_0x271f29(0x2a6)+'vice']()['then'](()=>{const _0x202ff5=a18_0x271f29,_0x1e8972={};_0x1e8972[_0x202ff5(0x1ce)]=_0x202ff5(0x1f4)+_0x202ff5(0x237)+_0x202ff5(0x234)+_0x202ff5(0x2c7);const _0x37e5cf=_0x1e8972;logger[_0x202ff5(0x26f)](_0x37e5cf[_0x202ff5(0x1ce)]);})[a18_0x271f29(0x2ad)](_0x17f5be=>{const _0x298303=a18_0x271f29;logger[_0x298303(0x19a)]('Checker\x20se'+'rvice\x20init'+_0x298303(0x287)+_0x298303(0x276)+'ill\x20contin'+_0x298303(0x1e0)+_0x298303(0x25a)+'nfo):',_0x17f5be);}),await server[a18_0x271f29(0x2cb)](transport);
2
+ const a18_0x499644=a18_0x1f60;(function(_0x30d7c7,_0x42d7b3){const _0x61e893=a18_0x1f60,_0x5d556b=_0x30d7c7();while(!![]){try{const _0x4beb58=parseInt(_0x61e893(0x189))/0x1*(parseInt(_0x61e893(0x1e0))/0x2)+-parseInt(_0x61e893(0x23f))/0x3+parseInt(_0x61e893(0x22a))/0x4*(-parseInt(_0x61e893(0x173))/0x5)+parseInt(_0x61e893(0x227))/0x6+-parseInt(_0x61e893(0x21a))/0x7+parseInt(_0x61e893(0x240))/0x8+parseInt(_0x61e893(0x2ad))/0x9;if(_0x4beb58===_0x42d7b3)break;else _0x5d556b['push'](_0x5d556b['shift']());}catch(_0x334899){_0x5d556b['push'](_0x5d556b['shift']());}}}(a18_0x5bee,0xcb376));const a18_0x34ee85=(function(){let _0x5dc3d4=!![];return function(_0x47a18c,_0x2becaa){const _0x8893f=_0x5dc3d4?function(){const _0x530b1e=a18_0x1f60;if(_0x2becaa){const _0x515180=_0x2becaa[_0x530b1e(0x2a4)](_0x47a18c,arguments);return _0x2becaa=null,_0x515180;}}:function(){};return _0x5dc3d4=![],_0x8893f;};}()),a18_0x3b9de9=a18_0x34ee85(this,function(){const _0x42a5f1=a18_0x1f60,_0x2e562d={};_0x2e562d[_0x42a5f1(0x1d1)]='(((.+)+)+)'+'+$';const _0x4a5696=_0x2e562d;return a18_0x3b9de9[_0x42a5f1(0x284)]()[_0x42a5f1(0x1b3)](_0x42a5f1(0x184)+'+$')[_0x42a5f1(0x284)]()[_0x42a5f1(0x1c9)+'r'](a18_0x3b9de9)[_0x42a5f1(0x1b3)](_0x4a5696[_0x42a5f1(0x1d1)]);});a18_0x3b9de9();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';function a18_0x5bee(){const _0xd9870b=['\x20Analysis','tailed\x20SCA','an\x20analysi','\x20usage\x20rul','Automatica','e\x20SCA\x20Anal','Load\x20the\x20S','ultiple\x20de','CESS,\x20ANAL','contents','\x20a\x20full-pr','of\x20the\x20ori','ute\x20paths.','Downloads\x20','e-generato','ZIP\x20File\x20S','nd\x20remedia','brary\x20upda','ysis_progr','ct\x20is\x20alre','\x27COMPLETE\x27','eSca','\x20Service).','get_analys','output/sbo','tion\x20guida','iff\x20showin','\x20categoriz','then','rity\x20of\x20a\x20','lysis','Initiates\x20','\x20SCA\x20Analy','Analysis\x20s','P.\x20It\x20scan','.\x20Returns\x20','parrow\x20MCP','ed\x20list\x20of','Generate\x20S','_modules)\x20','ables\x20(ver','search','generate_s','to\x20see\x20if\x20',',\x20error:\x20','Periodical','resolve','omatically','\x20an\x20\x27analy','mimeType','status\x20is\x20','s\x20is\x20\x27COMP','Multi-File','ified\x20by\x20t','atic\x20Appli','error.log','g\x20the\x20chan','\x20archive\x20c','is_status','type','ysisResult','sed\x20on\x20pre','Y,\x20PRE_PRO','constructo','r\x20analyzin','\x20It\x20identi','Returns\x20an','ce\x20code\x20ba','lder_sca','leted\x20SCA\x20','MCP\x20secure','CiflU','combined.l','ense\x20issue','lysis\x20on\x20m','vided\x20duri','\x20project.\x20','verity,\x20de','files\x20to\x20i','ist\x20of\x20dow','generateSe','\x20once\x20the\x20','m/<analysi','\x20packages\x20','sisId\x27.','s\x20only\x20pro','293256svjmYS','\x20the\x20corre','s)\x20results','vulnerable','get_sca_an','\x20is\x20prefer','a\x20comprehe','analyzeZip','mkdirSync','ess','ecure\x20Code','and\x20upload','text','ce\x20risks.\x20','ults','warn','nce\x20the\x20st','user','\x20open-sour','ialization','dules\x20or\x20p','Checker\x20se','analyzeFol','\x20(Software','ty\x20flaws.\x20','esSca','rogress\x20an','fication.\x20','delines\x20fo','\x20an\x20ongoin','a\x20SAST\x20ana','ile\x20vulner','track_anal','X,\x20SWID)\x20f','nsive\x20SAST','m.xml,\x20req','lnerabilit','dependenci','cation\x20Sec','iance\x20info','derSast','ady\x20packag','\x20artifacts','f\x20a\x20single','bom_files','name','analyzeFil','t\x20provides','urce\x20code\x20','inputSchem','Get\x20SCA\x20An','connect','descriptio','dentify\x20vu','ginal\x20sour','Checks\x20the','specific\x20c','s\x20the\x20code','6222384vUpBYb','nce\x20for\x20li','analyze_fo','version','like\x20a\x20Con','d\x20set\x20of\x20f','ue\x20without','e\x20SAST\x20Ana','\x20of\x20the\x20fi','g\x20the\x20logi','n\x20\x27analysi','\x20Returns\x20a','nalysis)\x20o','4413234bTJUSN','\x20legacy\x20pr','trackAnaly','943084NULPYm','the\x20genera','I-generate','les','mmon\x20build','Official\x20S','ysis','saved\x20to\x20t','CA\x20Analysi','ort\x20with\x20c','es.\x20Useful','uri','join','eSast','troller\x20or','Log\x20file\x20l','rvice\x20init','sparrow://','tages\x20are\x20','ule)\x20to\x20fi','p_sast','3986412uXVbRo','10932488TElscA','OMPLETE\x27.\x20','les_sca','tes.','ly\x20check\x20a','sResults','agers.\x20Ret','initialize','title','sId\x27.','rsal\x20withi','ndings.','nalysisId\x27','ctive\x20wait','\x20like\x20node','iles\x20(e.g.','Files\x20are\x20','ry.\x20It\x20aut','registerRe','LETE\x27\x20and\x20','\x20content\x20o','rabilities','\x20analysis\x20','is_results','ile\x20checki','re\x20directo','for\x20securi','les_sast','dentifies\x20','the\x20entire','erability\x20','omponent\x20t','pendency\x20f','Folder\x20SAS','_progress\x27','Single\x20Fil','dirname','sId>\x27\x20dire','c\x20and\x20secu','\x20Useful\x20fo','ported\x20dep','t\x20or\x20a\x20sin','secure-cod','the\x20source','cts\x20with\x20m','\x20Compositi','fies\x20vulne','position\x20A','ic\x20progres','ccessfully','COMPLETE.\x20','ode\x20snippe','ing,\x20\x27trac','ultiple\x20mo','re,\x20patche','own','an\x20SCA\x20sca','ackaged\x20or','le_sast',',\x20CycloneD','Download\x20S','is\x20Results','es\x20into\x20th','vious\x20SAST','he\x20local\x20\x27','endency\x20de','href','ng\x20the\x20ANA','toString','results.\x20I','ompt','ialized\x20su','finding\x20vu','ontaining\x20','\x20project\x20f','\x20a\x20compreh','\x20current\x20p','\x20this\x20when','source','\x20SAST\x20Anal','download_s','sion,\x20lice','T\x20analysis','registerPr',')\x20and\x20an\x20A','n\x20on\x20a\x20ZIP','lly\x20genera','heir\x20absol','T\x20Analysis','le\x20paths.','rules','Get\x20Analys','injection,','isId\x27\x20for\x20','rom\x20a\x20comp','path\x20trave','\x20source\x20co','x,\x20and\x20a\x20d','tailed\x20SAS','g\x20a\x20relate','apply','older.\x20It\x20','Id\x27.','\x20files\x20(ex','uirements.','or\x20all\x20sup','Provides\x20a','\x20\x27analysis','analysis\x20I','17821953BrMWBw','lists\x20(CVE','.\x20Use\x20this','getScaAnal','messages','ogress\x20by\x20','Folder\x20SCA','nalysis\x20pr','cted\x20code,','content','sparrow-ru',',\x20CVSS),\x20a','scription,','Sca','\x20ZIP\x20archi','_PROCESS,\x20','e\x20archive\x20','ensive\x20rep','INIT,\x20READ','ed\x20as\x20a\x20ZI','lities\x20(se','\x20XSS,\x20and\x20',',\x20a\x20packag','n\x20a\x20single','\x20code\x20gene','getAnalysi','txt).\x20It\x20i','ill\x20contin','analyze_fi','registerTo','red.','ing)\x20analy','lysis\x20on\x20a','info','on\x20Analysi','1.0.0','urity\x20Test','\x20for\x20manua','nloaded\x20fi','ojects\x20for','ftware\x20Com','cureCode','s\x20percenta','ctory:','\x20dependenc','ce.\x20Useful','CheckerSer','es\x20and\x20lic','files\x20spec','25nCLnYH','ges.\x20For\x20a','gress\x20Noti','atus\x20is\x20\x27C','d\x20version\x20','ctory.\x20Ret','es\x20and\x20gui','analysis.\x20','urns\x20an\x20\x27a','derSca','recursive','lder_sast','logs','YSIS,\x20POST','Sast','role','ng/creatin','(((.+)+)+)','sisProgres','de\x20file.\x20U','.\x20Provides','omFiles','1TZenRd'];a18_0x5bee=function(){return _0xd9870b;};return a18_0x5bee();}import a18_0x539fa3 from'path';function a18_0x1f60(_0x2d83f1,_0x24c648){_0x2d83f1=_0x2d83f1-0x171;const _0x158061=a18_0x5bee();let _0x3b9de9=_0x158061[_0x2d83f1];return _0x3b9de9;}import a18_0x3cce3b 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,DownloadSbomFilesSchema}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_0x3e6e9b={};a18_0x3e6e9b[a18_0x499644(0x20d)]=a18_0x499644(0x26a)+a18_0x499644(0x198)+'r',a18_0x3e6e9b[a18_0x499644(0x21d)]=a18_0x499644(0x2d0);const server=new McpServer(a18_0x3e6e9b),analysisService=new AnalysisService(),sastController=new SastController(analysisService),scaController=new ScaController(analysisService),analysisController=new AnalysisController(analysisService),securityController=new SecurityController(analysisService),systemController=new SystemController(),a18_0x449a09={};a18_0x449a09[a18_0x499644(0x248)]='Single\x20Fil'+a18_0x499644(0x221)+a18_0x499644(0x1a8),a18_0x449a09[a18_0x499644(0x214)+'n']='Initiates\x20'+'a\x20SAST\x20(St'+a18_0x499644(0x1c0)+a18_0x499644(0x206)+a18_0x499644(0x2d1)+a18_0x499644(0x2cc)+'sis\x20on\x20the'+a18_0x499644(0x254)+a18_0x499644(0x20b)+a18_0x499644(0x2a0)+a18_0x499644(0x186)+'se\x20this\x20fo'+'r\x20analyzin'+a18_0x499644(0x223)+a18_0x499644(0x266)+a18_0x499644(0x1a7)+a18_0x499644(0x218)+a18_0x499644(0x273)+a18_0x499644(0x269)+'gle\x20file\x20('+a18_0x499644(0x21e)+a18_0x499644(0x238)+a18_0x499644(0x1a0)+a18_0x499644(0x1cb)+a18_0x499644(0x26e)+a18_0x499644(0x255)+'\x20like\x20SQL\x20'+a18_0x499644(0x29c)+a18_0x499644(0x2c2)+a18_0x499644(0x29f)+a18_0x499644(0x24a)+'n\x20the\x20code'+a18_0x499644(0x1ad)+'an\x20\x27analys'+a18_0x499644(0x29d)+'tracking.',a18_0x449a09[a18_0x499644(0x211)+'a']=AnalyzeFileSastSchema,server[a18_0x499644(0x2ca)+'ol'](a18_0x499644(0x2c9)+a18_0x499644(0x27a),a18_0x449a09,async _0x28a0f3=>sastController[a18_0x499644(0x20e)+a18_0x499644(0x237)](_0x28a0f3));const a18_0x5799e8={};a18_0x5799e8[a18_0x499644(0x248)]=a18_0x499644(0x1be)+a18_0x499644(0x28f)+a18_0x499644(0x230),a18_0x5799e8['descriptio'+'n']=a18_0x499644(0x1a9)+a18_0x499644(0x1fe)+a18_0x499644(0x1d4)+'ultiple\x20so'+a18_0x499644(0x210)+a18_0x499644(0x172)+a18_0x499644(0x1bf)+a18_0x499644(0x297)+a18_0x499644(0x196)+a18_0x499644(0x267)+a18_0x499644(0x1ca)+a18_0x499644(0x2a3)+a18_0x499644(0x21f)+a18_0x499644(0x24f)+a18_0x499644(0x2c3)+'e\x20or\x20a\x20mod'+a18_0x499644(0x23d)+'nd\x20cross-f'+a18_0x499644(0x1ff)+'abilities.'+'\x20Returns\x20a'+a18_0x499644(0x224)+a18_0x499644(0x249),a18_0x5799e8[a18_0x499644(0x211)+'a']=AnalyzeFilesSastSchema,server[a18_0x499644(0x2ca)+'ol'](a18_0x499644(0x2c9)+a18_0x499644(0x25b),a18_0x5799e8,async _0xd1cccc=>sastController[a18_0x499644(0x20e)+'esSast'](_0xd1cccc));const a18_0x2598ad={};a18_0x2598ad[a18_0x499644(0x248)]=a18_0x499644(0x261)+a18_0x499644(0x298),a18_0x2598ad[a18_0x499644(0x214)+'n']=a18_0x499644(0x1a9)+a18_0x499644(0x1e6)+a18_0x499644(0x202)+a18_0x499644(0x256)+'on\x20an\x20enti'+a18_0x499644(0x259)+a18_0x499644(0x251)+a18_0x499644(0x1b9)+a18_0x499644(0x1dd)+a18_0x499644(0x26b)+a18_0x499644(0x2a7)+'cluding\x20co'+a18_0x499644(0x22e)+a18_0x499644(0x20a)+a18_0x499644(0x24e)+a18_0x499644(0x1b1)+a18_0x499644(0x1eb)+'s\x20them\x20for'+a18_0x499644(0x194)+'oject\x20secu'+'rity\x20scan.'+a18_0x499644(0x225)+a18_0x499644(0x224)+'sId\x27.',a18_0x2598ad[a18_0x499644(0x211)+'a']=AnalyzeFolderSastSchema,server['registerTo'+'ol'](a18_0x499644(0x21c)+a18_0x499644(0x17e),a18_0x2598ad,async _0x3ef06f=>sastController[a18_0x499644(0x1f6)+a18_0x499644(0x208)](_0x3ef06f));const a18_0x236c17={};a18_0x236c17[a18_0x499644(0x248)]=a18_0x499644(0x199)+'AST\x20Analys'+'is',a18_0x236c17[a18_0x499644(0x214)+'n']=a18_0x499644(0x1a9)+a18_0x499644(0x1fe)+a18_0x499644(0x2cd)+a18_0x499644(0x2bb)+'ve\x20contain'+'ing\x20source'+'\x20code.\x20Use'+a18_0x499644(0x28d)+'\x20the\x20proje'+a18_0x499644(0x19d)+a18_0x499644(0x209)+a18_0x499644(0x2c0)+a18_0x499644(0x1ac)+a18_0x499644(0x219)+'\x20within\x20th'+a18_0x499644(0x2bd)+a18_0x499644(0x25a)+a18_0x499644(0x1f8)+a18_0x499644(0x1cc)+a18_0x499644(0x2ab)+a18_0x499644(0x2a6),a18_0x236c17['inputSchem'+'a']=AnalyzeZipSastSchema,server['registerTo'+'ol']('analyze_zi'+a18_0x499644(0x23e),a18_0x236c17,async _0x401307=>sastController[a18_0x499644(0x1e7)+a18_0x499644(0x181)](_0x401307));const a18_0x198aba={};a18_0x198aba[a18_0x499644(0x248)]=a18_0x499644(0x263)+a18_0x499644(0x18f)+a18_0x499644(0x230),a18_0x198aba[a18_0x499644(0x214)+'n']=a18_0x499644(0x1a9)+'an\x20SCA\x20(So'+a18_0x499644(0x2d5)+a18_0x499644(0x26f)+a18_0x499644(0x226)+a18_0x499644(0x2c4)+a18_0x499644(0x2d9)+'y\x20file\x20(e.'+'g.,\x20packag'+'e.json,\x20po'+a18_0x499644(0x203)+a18_0x499644(0x2a8)+a18_0x499644(0x2c7)+a18_0x499644(0x25c)+a18_0x499644(0x1e3)+a18_0x499644(0x1f2)+'ce\x20librari'+a18_0x499644(0x171)+a18_0x499644(0x1d3)+'s.\x20Returns'+a18_0x499644(0x1ba)+a18_0x499644(0x1de),a18_0x198aba['inputSchem'+'a']=AnalyzeFileScaSchema,server[a18_0x499644(0x2ca)+'ol'](a18_0x499644(0x2c9)+'le_sca',a18_0x198aba,async _0x57a928=>scaController[a18_0x499644(0x20e)+a18_0x499644(0x19f)](_0x57a928));const a18_0x2249b7={};a18_0x2249b7[a18_0x499644(0x248)]='Multi-File'+a18_0x499644(0x1aa)+'sis',a18_0x2249b7['descriptio'+'n']=a18_0x499644(0x1a9)+'an\x20SCA\x20ana'+'lysis\x20on\x20m'+a18_0x499644(0x191)+a18_0x499644(0x260)+'iles\x20at\x20on'+a18_0x499644(0x2da)+'\x20for\x20proje'+a18_0x499644(0x26c)+a18_0x499644(0x275)+a18_0x499644(0x1f4)+'ackage\x20man'+a18_0x499644(0x246)+a18_0x499644(0x17b)+a18_0x499644(0x24c)+'.',a18_0x2249b7[a18_0x499644(0x211)+'a']=AnalyzeFilesScaSchema,server[a18_0x499644(0x2ca)+'ol'](a18_0x499644(0x2c9)+a18_0x499644(0x242),a18_0x2249b7,async _0x534ddd=>scaController[a18_0x499644(0x20e)+a18_0x499644(0x1f9)](_0x534ddd));const a18_0x4fbebf={};a18_0x4fbebf[a18_0x499644(0x248)]=a18_0x499644(0x2b3)+a18_0x499644(0x18a),a18_0x4fbebf[a18_0x499644(0x214)+'n']=a18_0x499644(0x1a9)+'a\x20full\x20SCA'+'\x20scan\x20on\x20a'+a18_0x499644(0x28a)+a18_0x499644(0x2a5)+'searches\x20f'+a18_0x499644(0x2a9)+a18_0x499644(0x268)+a18_0x499644(0x281)+'claration\x20'+a18_0x499644(0x1d8)+a18_0x499644(0x215)+a18_0x499644(0x204)+'ies\x20and\x20li'+'cense\x20comp'+'liance\x20ris'+'ks\x20across\x20'+a18_0x499644(0x25d)+a18_0x499644(0x1d6)+a18_0x499644(0x1cc)+a18_0x499644(0x2ab)+a18_0x499644(0x2a6),a18_0x4fbebf['inputSchem'+'a']=AnalyzeFolderScaSchema,server[a18_0x499644(0x2ca)+'ol'](a18_0x499644(0x21c)+a18_0x499644(0x1ce),a18_0x4fbebf,async _0xbd661c=>scaController[a18_0x499644(0x1f6)+a18_0x499644(0x17c)](_0xbd661c));const a18_0x4b5ab1={};a18_0x4b5ab1['title']=a18_0x499644(0x199)+a18_0x499644(0x232)+'s',a18_0x4b5ab1[a18_0x499644(0x214)+'n']='Initiates\x20'+a18_0x499644(0x278)+a18_0x499644(0x295)+a18_0x499644(0x1c3)+a18_0x499644(0x289)+a18_0x499644(0x205)+a18_0x499644(0x234)+'\x20for\x20analy'+'zing\x20pre-p'+a18_0x499644(0x279)+a18_0x499644(0x228)+a18_0x499644(0x2d4)+'\x20open-sour'+a18_0x499644(0x1ed)+a18_0x499644(0x1cc)+'\x20\x27analysis'+'Id\x27.',a18_0x4b5ab1[a18_0x499644(0x211)+'a']=AnalyzeZipScaSchema,server[a18_0x499644(0x2ca)+'ol']('analyze_zi'+'p_sca',a18_0x4b5ab1,async _0x333293=>scaController[a18_0x499644(0x1e7)+a18_0x499644(0x2ba)](_0x333293));const a18_0x3e2ef0={};a18_0x3e2ef0['title']='Track\x20Anal'+'ysis\x20Progr'+a18_0x499644(0x1e9),a18_0x3e2ef0[a18_0x499644(0x214)+'n']=a18_0x499644(0x1b7)+a18_0x499644(0x244)+a18_0x499644(0x2b4)+a18_0x499644(0x2b2)+a18_0x499644(0x2ac)+'D\x20and\x20upda'+'te\x20via\x20Pro'+a18_0x499644(0x175)+a18_0x499644(0x1fb)+a18_0x499644(0x1ab)+a18_0x499644(0x23c)+a18_0x499644(0x2bf)+a18_0x499644(0x1c8)+a18_0x499644(0x192)+a18_0x499644(0x180)+a18_0x499644(0x2bc)+a18_0x499644(0x272)+'Progress\x20i'+a18_0x499644(0x1df)+a18_0x499644(0x1d5)+a18_0x499644(0x283)+'LYSIS\x20stag'+'e.',a18_0x3e2ef0[a18_0x499644(0x211)+'a']=TrackAnalysisProgressSchema,server['registerTo'+'ol'](a18_0x499644(0x200)+a18_0x499644(0x19c)+a18_0x499644(0x1e9),a18_0x3e2ef0,async(_0x3935db,_0x2e4996)=>analysisController[a18_0x499644(0x229)+a18_0x499644(0x185)+'s'](_0x3935db,_0x2e4996));const a18_0x81f31e={};a18_0x81f31e[a18_0x499644(0x248)]=a18_0x499644(0x29b)+'is\x20Status',a18_0x81f31e[a18_0x499644(0x214)+'n']=a18_0x499644(0x217)+a18_0x499644(0x28c)+a18_0x499644(0x1fa)+'d\x20stage\x20of'+a18_0x499644(0x1fd)+'g\x20analysis'+a18_0x499644(0x2af)+a18_0x499644(0x2d2)+'l\x20polling\x20'+a18_0x499644(0x1b5)+a18_0x499644(0x18c)+a18_0x499644(0x1bd)+a18_0x499644(0x253)+'to\x20get\x20bas'+a18_0x499644(0x270)+a18_0x499644(0x2d7)+a18_0x499644(0x174)+a18_0x499644(0x24d)+a18_0x499644(0x274)+'k_analysis'+a18_0x499644(0x262)+a18_0x499644(0x1e5)+a18_0x499644(0x2cb),a18_0x81f31e['inputSchem'+'a']=GetAnalysisStatusSchema,server[a18_0x499644(0x2ca)+'ol'](a18_0x499644(0x1a1)+a18_0x499644(0x1c4),a18_0x81f31e,async _0x2627bd=>analysisController['getAnalysi'+'sStatus'](_0x2627bd));const a18_0x69038b={};a18_0x69038b['title']='Get\x20Analys'+a18_0x499644(0x27d),a18_0x69038b[a18_0x499644(0x214)+'n']='Fetches\x20de'+a18_0x499644(0x2a2)+a18_0x499644(0x292)+'\x20results\x20o'+a18_0x499644(0x1f0)+a18_0x499644(0x176)+a18_0x499644(0x241)+a18_0x499644(0x2aa)+a18_0x499644(0x1a5)+a18_0x499644(0x1af)+'\x20vulnerabi'+a18_0x499644(0x2c1)+a18_0x499644(0x1d7)+a18_0x499644(0x2b9)+'\x20file\x20path'+',\x20line\x20num'+'ber,\x20compl'+a18_0x499644(0x207)+a18_0x499644(0x294)+a18_0x499644(0x22c)+'d\x20briefing'+a18_0x499644(0x222)+a18_0x499644(0x24b),a18_0x69038b[a18_0x499644(0x211)+'a']=GetAnalysisResultsSchema,server['registerTo'+'ol'](a18_0x499644(0x1a1)+a18_0x499644(0x257),a18_0x69038b,async _0x4c43f0=>analysisController[a18_0x499644(0x2c6)+a18_0x499644(0x245)](_0x4c43f0));const a18_0x1bea82={};a18_0x1bea82['title']=a18_0x499644(0x212)+'alysis\x20Res'+a18_0x499644(0x1ee),a18_0x1bea82[a18_0x499644(0x214)+'n']='Fetches\x20de'+a18_0x499644(0x18b)+a18_0x499644(0x1f7)+a18_0x499644(0x26d)+a18_0x499644(0x2cf)+a18_0x499644(0x1e2)+a18_0x499644(0x1db)+a18_0x499644(0x1bc)+a18_0x499644(0x19e)+a18_0x499644(0x187)+a18_0x499644(0x28b)+a18_0x499644(0x2be)+a18_0x499644(0x233)+a18_0x499644(0x25f)+a18_0x499644(0x1b2)+a18_0x499644(0x291)+'nse),\x20vuln'+a18_0x499644(0x25e)+a18_0x499644(0x2ae)+a18_0x499644(0x2b8)+a18_0x499644(0x19a)+a18_0x499644(0x1a3)+a18_0x499644(0x21b)+a18_0x499644(0x19b)+a18_0x499644(0x243),a18_0x1bea82['inputSchem'+'a']=GetScaAnalysisResultsSchema,server[a18_0x499644(0x2ca)+'ol'](a18_0x499644(0x1e4)+'alysis_res'+a18_0x499644(0x1ee),a18_0x1bea82,async _0x780745=>analysisController[a18_0x499644(0x2b0)+a18_0x499644(0x1c6)+'s'](_0x780745));const a18_0x395cfa={};a18_0x395cfa[a18_0x499644(0x248)]=a18_0x499644(0x27c)+'BOM\x20Files',a18_0x395cfa['descriptio'+'n']=a18_0x499644(0x197)+a18_0x499644(0x22b)+'ted\x20SBOM\x20f'+'iles\x20(SPDX'+a18_0x499644(0x27b)+a18_0x499644(0x201)+a18_0x499644(0x29e)+a18_0x499644(0x1cf)+a18_0x499644(0x17a)+a18_0x499644(0x250)+a18_0x499644(0x231)+a18_0x499644(0x280)+a18_0x499644(0x1a2)+a18_0x499644(0x1dc)+a18_0x499644(0x265)+a18_0x499644(0x178)+'urns\x20the\x20l'+a18_0x499644(0x1d9)+a18_0x499644(0x2d3)+a18_0x499644(0x299),a18_0x395cfa['inputSchem'+'a']=DownloadSbomFilesSchema,server[a18_0x499644(0x2ca)+'ol'](a18_0x499644(0x290)+a18_0x499644(0x20c),a18_0x395cfa,async _0x241220=>scaController['downloadSb'+a18_0x499644(0x188)](_0x241220));const a18_0x46fc65={};a18_0x46fc65[a18_0x499644(0x248)]=a18_0x499644(0x1b0)+a18_0x499644(0x1ea),a18_0x46fc65[a18_0x499644(0x214)+'n']=a18_0x499644(0x18e)+a18_0x499644(0x296)+'tes\x20a\x20secu'+a18_0x499644(0x276)+a18_0x499644(0x177)+a18_0x499644(0x195)+a18_0x499644(0x216)+a18_0x499644(0x1cd)+a18_0x499644(0x1c7)+a18_0x499644(0x27f)+a18_0x499644(0x256)+a18_0x499644(0x285)+a18_0x499644(0x20f)+a18_0x499644(0x1e1)+a18_0x499644(0x2b5)+'\x20a\x20brief\x20e'+'xplanation'+a18_0x499644(0x222)+a18_0x499644(0x2a1)+a18_0x499644(0x1a4)+a18_0x499644(0x1c2)+'ges.\x20Use\x20t'+'his\x20after\x20'+a18_0x499644(0x288)+a18_0x499644(0x204)+'ies\x20in\x20SAS'+'T.',a18_0x46fc65[a18_0x499644(0x211)+'a']=GenerateSecureCodeSchema,server['registerTo'+'ol'](a18_0x499644(0x1b4)+'ecure_code',a18_0x46fc65,async _0x1b718c=>securityController[a18_0x499644(0x1da)+a18_0x499644(0x2d6)](_0x1b718c));const a18_0x203396={};a18_0x203396[a18_0x499644(0x214)+'n']=a18_0x499644(0x22f)+a18_0x499644(0x1ae)+a18_0x499644(0x18d)+a18_0x499644(0x179)+a18_0x499644(0x1fc)+'r\x20AI\x20agent'+'s.',a18_0x203396[a18_0x499644(0x1bb)]='text/markd'+a18_0x499644(0x277),server[a18_0x499644(0x252)+a18_0x499644(0x28e)](a18_0x499644(0x2b7)+a18_0x499644(0x22d),a18_0x499644(0x23b)+a18_0x499644(0x29a),a18_0x203396,async _0x6539f=>{const _0x51afd7=a18_0x499644,_0x541a50={};_0x541a50[_0x51afd7(0x235)]=_0x6539f[_0x51afd7(0x282)],_0x541a50[_0x51afd7(0x1ec)]=SPARROW_RULES,_0x541a50[_0x51afd7(0x1bb)]='text/markd'+_0x51afd7(0x277);const _0x4777cc={};return _0x4777cc[_0x51afd7(0x193)]=[_0x541a50],_0x4777cc;});const a18_0x4138a6={};a18_0x4138a6[a18_0x499644(0x248)]='Sparrow\x20MC'+'P\x20Rules',a18_0x4138a6[a18_0x499644(0x214)+'n']=a18_0x499644(0x190)+a18_0x499644(0x1ae)+'\x20usage\x20rul'+a18_0x499644(0x27e)+'e\x20context.',server[a18_0x499644(0x293)+a18_0x499644(0x286)](a18_0x499644(0x2b7)+'les',a18_0x4138a6,async()=>{const _0x18c428=a18_0x499644,_0x2acf1a={};_0x2acf1a[_0x18c428(0x1c5)]=_0x18c428(0x1ec),_0x2acf1a[_0x18c428(0x1ec)]=SPARROW_RULES;const _0x22ea53={};_0x22ea53[_0x18c428(0x182)]=_0x18c428(0x1f1),_0x22ea53[_0x18c428(0x2b6)]=_0x2acf1a;const _0x5a507b={};return _0x5a507b[_0x18c428(0x2b1)]=[_0x22ea53],_0x5a507b;});const transport=new StdioServerTransport();logger[a18_0x499644(0x2ce)](a18_0x499644(0x1d0)+a18_0x499644(0x2c5)+'ration\x20ser'+'ver\x20starte'+'d');try{const serverFileDir=a18_0x539fa3[a18_0x499644(0x264)](fileURLToPath(import.meta.url)),projectRoot=a18_0x539fa3[a18_0x499644(0x1b8)](serverFileDir,'..'),logsDir=a18_0x539fa3[a18_0x499644(0x1b8)](projectRoot,a18_0x499644(0x17f));if(!a18_0x3cce3b['existsSync'](logsDir)){const a18_0x2c8aa5={};a18_0x2c8aa5[a18_0x499644(0x17d)]=!![],a18_0x3cce3b[a18_0x499644(0x1e8)](logsDir,a18_0x2c8aa5);}const combinedPath=a18_0x539fa3[a18_0x499644(0x236)](logsDir,a18_0x499644(0x1d2)+'og'),errorPath=a18_0x539fa3[a18_0x499644(0x236)](logsDir,a18_0x499644(0x1c1));logger[a18_0x499644(0x2ce)](a18_0x499644(0x239)+'ocations\x20-'+'\x20combined:'+'\x20'+combinedPath+a18_0x499644(0x1b6)+errorPath);}catch(a18_0x9b3e36){logger[a18_0x499644(0x1ef)]('Warning\x20wh'+a18_0x499644(0x258)+a18_0x499644(0x183)+'g\x20log\x20dire'+a18_0x499644(0x2d8),a18_0x9b3e36);}analysisService[a18_0x499644(0x247)+a18_0x499644(0x2db)+'vice']()[a18_0x499644(0x1a6)](()=>{const _0x8a2cd1=a18_0x499644;logger[_0x8a2cd1(0x2ce)](_0x8a2cd1(0x1f5)+_0x8a2cd1(0x23a)+_0x8a2cd1(0x287)+_0x8a2cd1(0x271));})['catch'](_0x413df2=>{const _0x3b4c11=a18_0x499644;logger[_0x3b4c11(0x1ef)](_0x3b4c11(0x1f5)+'rvice\x20init'+_0x3b4c11(0x1f3)+'\x20failed\x20(w'+_0x3b4c11(0x2c8)+_0x3b4c11(0x220)+'\x20checker\x20i'+'nfo):',_0x413df2);}),await server[a18_0x499644(0x213)](transport);
@@ -0,0 +1 @@
1
+ const a31_0x17af1b=a31_0x149b;(function(_0x471ca8,_0x41e733){const _0x2e2c55=a31_0x149b,_0x51eb1d=_0x471ca8();while(!![]){try{const _0x1398dd=-parseInt(_0x2e2c55(0x97))/0x1*(-parseInt(_0x2e2c55(0x70))/0x2)+parseInt(_0x2e2c55(0xa1))/0x3*(-parseInt(_0x2e2c55(0x91))/0x4)+-parseInt(_0x2e2c55(0x83))/0x5+-parseInt(_0x2e2c55(0x90))/0x6+-parseInt(_0x2e2c55(0x78))/0x7*(-parseInt(_0x2e2c55(0xa0))/0x8)+parseInt(_0x2e2c55(0x9a))/0x9*(parseInt(_0x2e2c55(0x68))/0xa)+parseInt(_0x2e2c55(0x7e))/0xb;if(_0x1398dd===_0x41e733)break;else _0x51eb1d['push'](_0x51eb1d['shift']());}catch(_0x12448d){_0x51eb1d['push'](_0x51eb1d['shift']());}}}(a31_0xa56c,0xa1a64));const a31_0x26efc5=(function(){let _0x1dac3a=!![];return function(_0x2a8df2,_0x48e475){const _0x232682=_0x1dac3a?function(){if(_0x48e475){const _0x197d21=_0x48e475['apply'](_0x2a8df2,arguments);return _0x48e475=null,_0x197d21;}}:function(){};return _0x1dac3a=![],_0x232682;};}()),a31_0x503711=a31_0x26efc5(this,function(){const _0x246b36=a31_0x149b;return a31_0x503711[_0x246b36(0x93)]()['search'](_0x246b36(0xaf)+'+$')[_0x246b36(0x93)]()[_0x246b36(0x8d)+'r'](a31_0x503711)[_0x246b36(0x9f)](_0x246b36(0xaf)+'+$');});function a31_0x149b(_0xe9c965,_0x542a96){_0xe9c965=_0xe9c965-0x68;const _0x5bfdf3=a31_0xa56c();let _0x503711=_0x5bfdf3[_0xe9c965];return _0x503711;}a31_0x503711();function a31_0xa56c(){const _0x41d262=['rrectly','yuFqR','409270gsWoji','nRecommend','.AND.LT.OR','.service.j','SION.GT.AN','should\x20for','D.LT','toBe','30653PCETFL','.EQUAL.AND','../sparrow','1.9.0','rectly','ation','25162940vSLqAL','name','1.9.15\x20이상\x20','버전으로\x20업데이트하','SCA.SV.COM','6366125CVCHSn','orrectly','.LT','1.9.15\x20초과\x20','mat\x20UPDATE','type','T.OR.EQUAL','s/logger.j','MON.5896','rvice\x20-\x20Re','constructo','.VERSION.G','VhkXW','7651446zZHQOI','60ryBlrj','ice.js','toString','versionRem','parseScaCo','1.9.16','2RaPJFd','T.AND.LT.O','SION.GT.OR','18ZlrvIg','ediations','mock','.AND.LT\x20co','versions','search','1256wpbOOs','90339CsEmDQ','../checker','R.EQUAL\x20co','1.9.16\x20미만\x20','vOGjW','ant','../s3.serv','../llm.ser','1.9.15','.LT.OR.EQU','remediatio','issues','checkerKey','세요.','(((.+)+)+)','1389820yrPCDB','UPDATE.VER','.EQUAL\x20cor','mponents','version','T.AND.LT\x20c'];a31_0xa56c=function(){return _0x41d262;};return a31_0xa56c();}import{AnalysisService}from'../analysis.service.js';import{jest}from'@jest/globals';jest[a31_0x17af1b(0x9c)](a31_0x17af1b(0xa8)+'vice.js'),jest['mock'](a31_0x17af1b(0x7a)+a31_0x17af1b(0x73)+'s'),jest[a31_0x17af1b(0x9c)](a31_0x17af1b(0xa7)+a31_0x17af1b(0x92)),jest[a31_0x17af1b(0x9c)](a31_0x17af1b(0xa2)+a31_0x17af1b(0x73)+'s'),jest['mock']('../../util'+a31_0x17af1b(0x8a)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn'](),'debug':jest['fn']()}})),describe('AnalysisSe'+a31_0x17af1b(0x8c)+'mediation\x20'+'Formatting',()=>{const _0x5aca09=a31_0x17af1b,_0x2e5895={'vOGjW':'1.9.15','yuFqR':_0x5aca09(0x75)+_0x5aca09(0x87)+_0x5aca09(0x8e)+_0x5aca09(0x89)+_0x5aca09(0x72)+_0x5aca09(0x6a)+_0x5aca09(0x7c),'VhkXW':function(_0x353bfd,_0x2e4f79,_0x4e9c92){return _0x353bfd(_0x2e4f79,_0x4e9c92);}};let _0x100dc9;beforeAll(()=>{_0x100dc9=new AnalysisService();}),it(_0x2e5895[_0x5aca09(0x6f)],()=>{const _0x2dcc77=_0x5aca09,_0x30006a={};_0x30006a[_0x2dcc77(0x88)]='UPDATE.VER'+_0x2dcc77(0x99)+_0x2dcc77(0x79)+_0x2dcc77(0xaa)+'AL',_0x30006a['versions']=[_0x2dcc77(0xa9),_0x2dcc77(0x96)];const _0x2209f8={};_0x2209f8[_0x2dcc77(0x94)+'ediations']=[_0x30006a];const _0x522e7a={};_0x522e7a['checkerKey']=_0x2dcc77(0x82)+_0x2dcc77(0x8b),_0x522e7a[_0x2dcc77(0xab)+'ns']=_0x2209f8;const _0x325689={};_0x325689[_0x2dcc77(0x7f)]='ant',_0x325689[_0x2dcc77(0x6c)]='1.9.0',_0x325689['issues']=[_0x522e7a];const _0x3ccd29=[_0x325689],_0x2f254c=_0x100dc9['parseScaCo'+'mponents'](_0x3ccd29),_0x40b873=_0x2f254c[0x0][_0x2dcc77(0xac)][0x0][_0x2dcc77(0xab)+'nRecommend'+_0x2dcc77(0x7d)];expect(_0x40b873)[_0x2dcc77(0x77)](_0x2dcc77(0x80)+'1.9.16\x20이하\x20'+_0x2dcc77(0x81)+_0x2dcc77(0xae));}),_0x2e5895[_0x5aca09(0x8f)](it,_0x5aca09(0x75)+_0x5aca09(0x87)+_0x5aca09(0x8e)+_0x5aca09(0x89)+_0x5aca09(0x9d)+'rrectly',()=>{const _0x10d9dd=_0x5aca09,_0x2796b0={};_0x2796b0[_0x10d9dd(0x88)]=_0x10d9dd(0x69)+_0x10d9dd(0x99)+_0x10d9dd(0x79)+_0x10d9dd(0x85),_0x2796b0['versions']=[_0x2e5895[_0x10d9dd(0xa5)],_0x10d9dd(0x96)];const _0x3cf3db={};_0x3cf3db[_0x10d9dd(0x94)+_0x10d9dd(0x9b)]=[_0x2796b0];const _0x2e2777={};_0x2e2777['checkerKey']='SCA.SV.COM'+_0x10d9dd(0x8b),_0x2e2777[_0x10d9dd(0xab)+'ns']=_0x3cf3db;const _0x5c7f02={};_0x5c7f02[_0x10d9dd(0x7f)]=_0x10d9dd(0xa6),_0x5c7f02[_0x10d9dd(0x6c)]=_0x10d9dd(0x7b),_0x5c7f02['issues']=[_0x2e2777];const _0x249023=[_0x5c7f02],_0xe0ab7d=_0x100dc9[_0x10d9dd(0x95)+_0x10d9dd(0x6b)](_0x249023),_0x1ab411=_0xe0ab7d[0x0][_0x10d9dd(0xac)][0x0][_0x10d9dd(0xab)+_0x10d9dd(0x71)+_0x10d9dd(0x7d)];expect(_0x1ab411)[_0x10d9dd(0x77)]('1.9.15\x20이상\x20'+_0x10d9dd(0xa4)+_0x10d9dd(0x81)+_0x10d9dd(0xae));}),it('should\x20for'+_0x5aca09(0x87)+'.VERSION.G'+_0x5aca09(0x98)+_0x5aca09(0xa3)+_0x5aca09(0x6e),()=>{const _0x3d73c9=_0x5aca09,_0x47d9a1={};_0x47d9a1[_0x3d73c9(0x88)]=_0x3d73c9(0x69)+_0x3d73c9(0x74)+'D.LT.OR.EQ'+'UAL',_0x47d9a1[_0x3d73c9(0x9e)]=[_0x2e5895[_0x3d73c9(0xa5)],_0x3d73c9(0x96)];const _0x5e6d32={};_0x5e6d32[_0x3d73c9(0x94)+'ediations']=[_0x47d9a1];const _0x52c53b={};_0x52c53b[_0x3d73c9(0xad)]=_0x3d73c9(0x82)+'MON.5896',_0x52c53b['remediatio'+'ns']=_0x5e6d32;const _0x21d80d={};_0x21d80d[_0x3d73c9(0x7f)]=_0x3d73c9(0xa6),_0x21d80d[_0x3d73c9(0x6c)]=_0x3d73c9(0x7b),_0x21d80d[_0x3d73c9(0xac)]=[_0x52c53b];const _0x33abd5=[_0x21d80d],_0x4bf454=_0x100dc9['parseScaCo'+_0x3d73c9(0x6b)](_0x33abd5),_0x8f5121=_0x4bf454[0x0]['issues'][0x0][_0x3d73c9(0xab)+_0x3d73c9(0x71)+_0x3d73c9(0x7d)];expect(_0x8f5121)['toBe'](_0x3d73c9(0x86)+'1.9.16\x20이하\x20'+_0x3d73c9(0x81)+_0x3d73c9(0xae));}),it('should\x20for'+_0x5aca09(0x87)+'.VERSION.G'+_0x5aca09(0x6d)+_0x5aca09(0x84),()=>{const _0x5db66f=_0x5aca09,_0x56db18={};_0x56db18[_0x5db66f(0x88)]=_0x5db66f(0x69)+_0x5db66f(0x74)+_0x5db66f(0x76),_0x56db18['versions']=[_0x5db66f(0xa9),_0x5db66f(0x96)];const _0x317d63={};_0x317d63['versionRem'+'ediations']=[_0x56db18];const _0x3fa6bb={};_0x3fa6bb[_0x5db66f(0xad)]=_0x5db66f(0x82)+'MON.5896',_0x3fa6bb['remediatio'+'ns']=_0x317d63;const _0x40157c={};_0x40157c[_0x5db66f(0x7f)]=_0x5db66f(0xa6),_0x40157c[_0x5db66f(0x6c)]=_0x5db66f(0x7b),_0x40157c[_0x5db66f(0xac)]=[_0x3fa6bb];const _0x4b1fe5=[_0x40157c],_0x5c7ebd=_0x100dc9[_0x5db66f(0x95)+_0x5db66f(0x6b)](_0x4b1fe5),_0x4e8957=_0x5c7ebd[0x0][_0x5db66f(0xac)][0x0][_0x5db66f(0xab)+_0x5db66f(0x71)+_0x5db66f(0x7d)];expect(_0x4e8957)[_0x5db66f(0x77)](_0x5db66f(0x86)+_0x5db66f(0xa4)+_0x5db66f(0x81)+_0x5db66f(0xae));});});
@@ -1 +1 @@
1
- const a31_0x178b6e=a31_0x4241;(function(_0x15643c,_0x3636b1){const _0x22e0b4=a31_0x4241,_0x3af63d=_0x15643c();while(!![]){try{const _0x5e7e6d=parseInt(_0x22e0b4(0x14a))/0x1*(-parseInt(_0x22e0b4(0x146))/0x2)+-parseInt(_0x22e0b4(0x169))/0x3*(parseInt(_0x22e0b4(0x150))/0x4)+parseInt(_0x22e0b4(0x185))/0x5*(parseInt(_0x22e0b4(0x17d))/0x6)+parseInt(_0x22e0b4(0x194))/0x7*(parseInt(_0x22e0b4(0x1b0))/0x8)+parseInt(_0x22e0b4(0x15e))/0x9+-parseInt(_0x22e0b4(0x19b))/0xa*(-parseInt(_0x22e0b4(0x1ab))/0xb)+parseInt(_0x22e0b4(0x1a4))/0xc;if(_0x5e7e6d===_0x3636b1)break;else _0x3af63d['push'](_0x3af63d['shift']());}catch(_0xcf785c){_0x3af63d['push'](_0x3af63d['shift']());}}}(a31_0x37b7,0xa2119));const a31_0x298917=(function(){let _0x381bcc=!![];return function(_0x4bdb20,_0x21549d){const _0x391a99=_0x381bcc?function(){const _0x1fce2f=a31_0x4241;if(_0x21549d){const _0x245b29=_0x21549d[_0x1fce2f(0x181)](_0x4bdb20,arguments);return _0x21549d=null,_0x245b29;}}:function(){};return _0x381bcc=![],_0x391a99;};}()),a31_0x72756=a31_0x298917(this,function(){const _0x21a0da=a31_0x4241;return a31_0x72756[_0x21a0da(0x14f)]()[_0x21a0da(0x18b)]('(((.+)+)+)'+'+$')['toString']()['constructo'+'r'](a31_0x72756)['search'](_0x21a0da(0x1b5)+'+$');});a31_0x72756();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockSparrowService={'getAnalysisStatus':jest['fn'](),'downloadAnalysisResults':jest['fn'](),'pollAnalysisCompletion':jest['fn'](),'requestScaAnalysis':jest['fn']()},mockS3Service={'uploadFile':jest['fn'](),'uploadMultipleFiles':jest['fn'](),'uploadFilesFromPaths':jest['fn'](),'uploadZipFile':jest['fn'](),'uploadFolderAsZip':jest['fn']()},mockCheckerService={'initialize':jest['fn'](),'getLocalizedInfo':jest['fn'](),'getComplianceInfo':jest['fn']()};jest[a31_0x178b6e(0x161)+a31_0x178b6e(0x18c)](a31_0x178b6e(0x18f)+a31_0x178b6e(0x174)+'s',()=>({'SparrowService':jest['fn']()[a31_0x178b6e(0x1b1)+a31_0x178b6e(0x172)](()=>mockSparrowService)})),jest[a31_0x178b6e(0x161)+a31_0x178b6e(0x18c)]('../s3.serv'+a31_0x178b6e(0x187),()=>({'S3Service':jest['fn']()['mockImplem'+a31_0x178b6e(0x172)](()=>mockS3Service)})),jest[a31_0x178b6e(0x161)+a31_0x178b6e(0x18c)]('../checker'+'.service.j'+'s',()=>({'CheckerService':jest['fn']()[a31_0x178b6e(0x1b1)+'entation'](()=>mockCheckerService)}));const {AnalysisService:AnalysisServiceClass}=await import('../analysi'+'s.service.'+'js');function a31_0x37b7(){const _0x4b73a2=['456','toBe','3.0.0\x20이상\x20버','mediation','should\x20for','UPDATE.VER','sis-id-2','1.0.1\x20버전으로','2227032ZMHbvQ','isCompleti','CVE-2023-1','status','test-analy','URypn','SUCCESS','1067ZNZurD','sis-id-3','.VERSION.L','type','version','8XsHsjB','mockImplem','2.0.0\x20이상\x202','components','Ixdfq','(((.+)+)+)','sis-id-6','SION.GT.OR','pollAnalys','2rpSWFF','CVE-2023-5','remediatio','mat\x20UPDATE','1088693gIFoZV','Olvni','severity','rvice\x20-\x20Re','wkCsg','toString','2614316gbFmhq','test-lib','correctly','2.9.9','3.0.0','should\x20han','ysisResult','name','issues','array\x20corr','QWshE','result','\x20업데이트하세요.','versionRem','6951546dIkupy','SION.EQUAL','toBeUndefi','unstable_m','clearAllMo','.VERSION.G','T.OR.EQUAL','\x20with\x20rang','1.5.0\x20이하\x20버','ation','CVE-2023-3','6NZwzFZ','전으로\x20업데이트하세','\x20없습니다.','ediations','.EQUAL','nRecommend','edValue','s\x20-\x20Remedi','1.0.1','entation','1.0.0','.service.j','lts','sis-id','CVE-2023-7','alysisResu','1.5.0','dle\x20empty\x20','검색된\x20조치\x20방안이','890','5408418XphJQT','ctly','mockResolv','versions','apply','analysisId','YfWQM','downloadAn','5OOumxh','COMPLETE','ice.js','TbKBt','dkgXD','HIGH','search','ockModule','\x20correctly','으로\x20업데이트하세요','../sparrow','CVE-2023-9','ation\x20Form','fqOuJ','e\x20correctl','4522301iWUnHt','SION.LT.OR','678','ectly','AnalysisSe','getScaAnal','sis-id-5','57140jWbBje'];a31_0x37b7=function(){return _0x4b73a2;};return a31_0x37b7();}function a31_0x4241(_0x329595,_0x9657bb){_0x329595=_0x329595-0x145;const _0x6b428f=a31_0x37b7();let _0x72756=_0x6b428f[_0x329595];return _0x72756;}describe(a31_0x178b6e(0x198)+a31_0x178b6e(0x14d)+a31_0x178b6e(0x19f),()=>{const _0x58d5af=a31_0x178b6e,_0x41312b={'wkCsg':_0x58d5af(0x1a6)+'234','QWshE':_0x58d5af(0x1a1)+_0x58d5af(0x15f),'YfWQM':_0x58d5af(0x1a3)+_0x58d5af(0x15c),'Olvni':_0x58d5af(0x173),'YoKrV':_0x58d5af(0x186),'Ixdfq':'SUCCESS','TRani':'test-lib','vGpod':'HIGH','dkgXD':'should\x20han'+'dle\x20no\x20rem'+'ediations\x20'+_0x58d5af(0x152),'URypn':function(_0x2efc05,_0x53fb2b){return _0x2efc05(_0x53fb2b);}};let _0xab924b;_0x41312b[_0x58d5af(0x1a9)](beforeEach,()=>{const _0x2bedc8=_0x58d5af;jest[_0x2bedc8(0x162)+'cks'](),_0xab924b=new AnalysisServiceClass();}),describe(_0x58d5af(0x199)+_0x58d5af(0x156)+_0x58d5af(0x170)+_0x58d5af(0x191)+'atting',()=>{const _0x321a39=_0x58d5af,_0x42e9b4={};_0x42e9b4['fqOuJ']=_0x41312b['vGpod'],_0x42e9b4[_0x321a39(0x188)]='SUCCESS';const _0x311794=_0x42e9b4;it(_0x321a39(0x1a0)+_0x321a39(0x149)+'.VERSION.E'+'QUAL\x20corre'+_0x321a39(0x17e),async()=>{const _0x139bf6=_0x321a39,_0x5de683=_0x139bf6(0x1a8)+_0x139bf6(0x176),_0x501a35={};_0x501a35['id']=_0x41312b[_0x139bf6(0x14e)],_0x501a35[_0x139bf6(0x14c)]=_0x139bf6(0x18a),_0x501a35[_0x139bf6(0x148)+'ns']={},_0x501a35[_0x139bf6(0x148)+'ns'][_0x139bf6(0x15d)+_0x139bf6(0x16c)]=[{'type':_0x41312b[_0x139bf6(0x15a)],'versions':[_0x139bf6(0x171)]}];const _0x118aa4={};_0x118aa4[_0x139bf6(0x157)]=_0x139bf6(0x151),_0x118aa4[_0x139bf6(0x1af)]=_0x139bf6(0x173),_0x118aa4[_0x139bf6(0x158)]=[_0x501a35];const _0x26262b=[_0x118aa4],_0x362677={};_0x362677[_0x139bf6(0x1a7)]='COMPLETE',_0x362677[_0x139bf6(0x15b)]=_0x139bf6(0x1aa),_0x362677[_0x139bf6(0x182)]=_0x5de683,mockSparrowService[_0x139bf6(0x145)+_0x139bf6(0x1a5)+'on'][_0x139bf6(0x17f)+_0x139bf6(0x16f)](_0x362677),mockSparrowService[_0x139bf6(0x184)+_0x139bf6(0x178)+_0x139bf6(0x175)][_0x139bf6(0x17f)+'edValue'](_0x26262b);const _0x4b69c6=await _0xab924b[_0x139bf6(0x199)+_0x139bf6(0x156)+'s'](_0x5de683),_0x466b4d=_0x4b69c6[_0x139bf6(0x1b3)][0x0][_0x139bf6(0x158)][0x0];expect(_0x466b4d[_0x139bf6(0x148)+_0x139bf6(0x16e)+'ation'])[_0x139bf6(0x19d)](_0x41312b[_0x139bf6(0x183)]);}),it('should\x20for'+'mat\x20UPDATE'+_0x321a39(0x1ad)+_0x321a39(0x164)+_0x321a39(0x18d),async()=>{const _0x1e109e=_0x321a39,_0x247933='test-analy'+_0x1e109e(0x1a2),_0x27bc50={};_0x27bc50['type']=_0x1e109e(0x1a1)+_0x1e109e(0x195)+'.EQUAL',_0x27bc50[_0x1e109e(0x180)]=[_0x1e109e(0x179)];const _0x4bfc0f={};_0x4bfc0f[_0x1e109e(0x15d)+'ediations']=[_0x27bc50];const _0x105eed={};_0x105eed['id']=_0x1e109e(0x147)+_0x1e109e(0x196),_0x105eed[_0x1e109e(0x14c)]=_0x1e109e(0x18a),_0x105eed[_0x1e109e(0x148)+'ns']=_0x4bfc0f;const _0x59c485={};_0x59c485[_0x1e109e(0x157)]=_0x1e109e(0x151),_0x59c485[_0x1e109e(0x1af)]=_0x41312b['Olvni'],_0x59c485[_0x1e109e(0x158)]=[_0x105eed];const _0x3bac96=[_0x59c485],_0x41cd25={};_0x41cd25['status']=_0x1e109e(0x186),_0x41cd25[_0x1e109e(0x15b)]='SUCCESS',_0x41cd25[_0x1e109e(0x182)]=_0x247933,mockSparrowService[_0x1e109e(0x145)+_0x1e109e(0x1a5)+'on'][_0x1e109e(0x17f)+_0x1e109e(0x16f)](_0x41cd25),mockSparrowService[_0x1e109e(0x184)+_0x1e109e(0x178)+_0x1e109e(0x175)][_0x1e109e(0x17f)+'edValue'](_0x3bac96);const _0x102f71=await _0xab924b[_0x1e109e(0x199)+_0x1e109e(0x156)+'s'](_0x247933),_0x44d737=_0x102f71[_0x1e109e(0x1b3)][0x0][_0x1e109e(0x158)][0x0];expect(_0x44d737[_0x1e109e(0x148)+_0x1e109e(0x16e)+_0x1e109e(0x167)])[_0x1e109e(0x19d)](_0x1e109e(0x166)+_0x1e109e(0x16a)+'요.');}),it('should\x20for'+_0x321a39(0x149)+_0x321a39(0x163)+_0x321a39(0x164)+_0x321a39(0x165)+_0x321a39(0x193)+'y',async()=>{const _0xe794b1=_0x321a39,_0x43bee6=_0xe794b1(0x1a8)+_0xe794b1(0x1ac),_0x1e5731={};_0x1e5731[_0xe794b1(0x1ae)]=_0xe794b1(0x1a1)+_0xe794b1(0x1b7)+_0xe794b1(0x16d),_0x1e5731[_0xe794b1(0x180)]=['2.0.0',_0xe794b1(0x153)];const _0x343ec3={};_0x343ec3['versionRem'+_0xe794b1(0x16c)]=[_0x1e5731];const _0x83ac5d={};_0x83ac5d['id']=_0xe794b1(0x190)+'012',_0x83ac5d['severity']=_0xe794b1(0x18a),_0x83ac5d[_0xe794b1(0x148)+'ns']=_0x343ec3;const _0x3a8d32={};_0x3a8d32[_0xe794b1(0x157)]=_0xe794b1(0x151),_0x3a8d32[_0xe794b1(0x1af)]=_0xe794b1(0x173),_0x3a8d32[_0xe794b1(0x158)]=[_0x83ac5d];const _0x4f9cf3=[_0x3a8d32],_0x243432={};_0x243432[_0xe794b1(0x1a7)]=_0x41312b['YoKrV'],_0x243432[_0xe794b1(0x15b)]=_0x41312b[_0xe794b1(0x1b4)],_0x243432['analysisId']=_0x43bee6,mockSparrowService['pollAnalys'+_0xe794b1(0x1a5)+'on'][_0xe794b1(0x17f)+_0xe794b1(0x16f)](_0x243432),mockSparrowService['downloadAn'+_0xe794b1(0x178)+'lts'][_0xe794b1(0x17f)+_0xe794b1(0x16f)](_0x4f9cf3);const _0x5e302d=await _0xab924b['getScaAnal'+_0xe794b1(0x156)+'s'](_0x43bee6),_0x2890de=_0x5e302d[_0xe794b1(0x1b3)][0x0][_0xe794b1(0x158)][0x0];expect(_0x2890de[_0xe794b1(0x148)+_0xe794b1(0x16e)+_0xe794b1(0x167)])[_0xe794b1(0x19d)](_0xe794b1(0x1b2)+'.9.9\x20이하\x20버전'+_0xe794b1(0x18e)+'.');}),it(_0x321a39(0x1a0)+_0x321a39(0x149)+_0x321a39(0x163)+_0x321a39(0x164)+'\x20with\x20sing'+'le\x20version'+_0x321a39(0x18d),async()=>{const _0x2e00d0=_0x321a39,_0x18e13e=_0x2e00d0(0x1a8)+'sis-id-4',_0x3ffaa4={};_0x3ffaa4[_0x2e00d0(0x1ae)]='UPDATE.VER'+_0x2e00d0(0x1b7)+_0x2e00d0(0x16d),_0x3ffaa4[_0x2e00d0(0x180)]=[_0x2e00d0(0x154)];const _0x13fc7c={};_0x13fc7c[_0x2e00d0(0x15d)+_0x2e00d0(0x16c)]=[_0x3ffaa4];const _0x52bb93={};_0x52bb93['id']=_0x2e00d0(0x168)+_0x2e00d0(0x19c),_0x52bb93['severity']=_0x311794[_0x2e00d0(0x192)],_0x52bb93[_0x2e00d0(0x148)+'ns']=_0x13fc7c;const _0x40d7db={};_0x40d7db[_0x2e00d0(0x157)]=_0x2e00d0(0x151),_0x40d7db[_0x2e00d0(0x1af)]=_0x2e00d0(0x173),_0x40d7db[_0x2e00d0(0x158)]=[_0x52bb93];const _0x4fca52=[_0x40d7db],_0x517a14={};_0x517a14['status']='COMPLETE',_0x517a14[_0x2e00d0(0x15b)]=_0x311794['TbKBt'],_0x517a14[_0x2e00d0(0x182)]=_0x18e13e,mockSparrowService[_0x2e00d0(0x145)+'isCompleti'+'on'][_0x2e00d0(0x17f)+_0x2e00d0(0x16f)](_0x517a14),mockSparrowService[_0x2e00d0(0x184)+_0x2e00d0(0x178)+_0x2e00d0(0x175)][_0x2e00d0(0x17f)+_0x2e00d0(0x16f)](_0x4fca52);const _0x295137=await _0xab924b[_0x2e00d0(0x199)+_0x2e00d0(0x156)+'s'](_0x18e13e),_0x1f2e3f=_0x295137[_0x2e00d0(0x1b3)][0x0]['issues'][0x0];expect(_0x1f2e3f[_0x2e00d0(0x148)+_0x2e00d0(0x16e)+'ation'])[_0x2e00d0(0x19d)](_0x2e00d0(0x19e)+_0x2e00d0(0x16a)+'요.');}),it(_0x41312b[_0x321a39(0x189)],async()=>{const _0x5926c8=_0x321a39,_0x19b3e5=_0x5926c8(0x1a8)+_0x5926c8(0x19a),_0x2e4341={};_0x2e4341['id']=_0x5926c8(0x177)+_0x5926c8(0x17c),_0x2e4341[_0x5926c8(0x14c)]=_0x5926c8(0x18a),_0x2e4341['remediatio'+'ns']=undefined;const _0x6925b3={};_0x6925b3['name']=_0x41312b['TRani'],_0x6925b3[_0x5926c8(0x1af)]=_0x5926c8(0x173),_0x6925b3[_0x5926c8(0x158)]=[_0x2e4341];const _0x5b08bd=[_0x6925b3],_0x1a9131={};_0x1a9131['status']=_0x5926c8(0x186),_0x1a9131[_0x5926c8(0x15b)]=_0x41312b[_0x5926c8(0x1b4)],_0x1a9131[_0x5926c8(0x182)]=_0x19b3e5,mockSparrowService[_0x5926c8(0x145)+_0x5926c8(0x1a5)+'on'][_0x5926c8(0x17f)+_0x5926c8(0x16f)](_0x1a9131),mockSparrowService[_0x5926c8(0x184)+'alysisResu'+_0x5926c8(0x175)][_0x5926c8(0x17f)+'edValue'](_0x5b08bd);const _0x1bf56e=await _0xab924b[_0x5926c8(0x199)+'ysisResult'+'s'](_0x19b3e5),_0x2638c7=_0x1bf56e[_0x5926c8(0x1b3)][0x0][_0x5926c8(0x158)][0x0];expect(_0x2638c7['remediatio'+_0x5926c8(0x16e)+_0x5926c8(0x167)])[_0x5926c8(0x160)+'ned']();}),it(_0x321a39(0x155)+_0x321a39(0x17a)+_0x321a39(0x15d)+'ediations\x20'+_0x321a39(0x159)+_0x321a39(0x197),async()=>{const _0x23722e=_0x321a39,_0x472294=_0x23722e(0x1a8)+_0x23722e(0x1b6),_0x41a61d={};_0x41a61d[_0x23722e(0x15d)+_0x23722e(0x16c)]=[];const _0x5866a1={};_0x5866a1['id']=_0x23722e(0x177)+_0x23722e(0x17c),_0x5866a1['severity']=_0x23722e(0x18a),_0x5866a1[_0x23722e(0x148)+'ns']=_0x41a61d;const _0x2f1e7c={};_0x2f1e7c[_0x23722e(0x157)]=_0x23722e(0x151),_0x2f1e7c[_0x23722e(0x1af)]=_0x41312b[_0x23722e(0x14b)],_0x2f1e7c[_0x23722e(0x158)]=[_0x5866a1];const _0x36c3dd=[_0x2f1e7c],_0x55123f={};_0x55123f[_0x23722e(0x1a7)]='COMPLETE',_0x55123f['result']='SUCCESS',_0x55123f[_0x23722e(0x182)]=_0x472294,mockSparrowService[_0x23722e(0x145)+_0x23722e(0x1a5)+'on'][_0x23722e(0x17f)+_0x23722e(0x16f)](_0x55123f),mockSparrowService[_0x23722e(0x184)+_0x23722e(0x178)+_0x23722e(0x175)][_0x23722e(0x17f)+'edValue'](_0x36c3dd);const _0x550d66=await _0xab924b[_0x23722e(0x199)+_0x23722e(0x156)+'s'](_0x472294),_0xbf7e57=_0x550d66[_0x23722e(0x1b3)][0x0]['issues'][0x0];expect(_0xbf7e57[_0x23722e(0x148)+_0x23722e(0x16e)+_0x23722e(0x167)])[_0x23722e(0x19d)](_0x23722e(0x17b)+_0x23722e(0x16b));});});});
1
+ function a32_0x224a(){const _0x4b1f44=['2.0.0','AnalysisSe','57213XZItPj','.EQUAL\x20cor','CVE-2023-7','HIGH','검색된\x20조치\x20방안이','severity','1.0.1','1.0.1\x20버전으로','test-lib','rectly','1.5.0\x20이하\x20버','issues','lts','should\x20han','.LT.OR.EQU','version','세요.','.AND.LT.OR','alysisResu','2.9.9','6aRUBMf','hIDKZ','Akcmw','377zDXXIM','UPDATE.VER','T.OR.EQUAL','ons\x20correc','entation','array\x20corr','should\x20for','93378zEvbHh','downloadAn','sis-id-3','456','\x20업데이트하세요.','versionRem','1.9.15\x20이상\x20','ation\x20Form','.VERSION.L','1.0.0','pollAnalys','unstable_m','search','264tpcClq','SION.EQUAL','COMPLETE','ation','status','\x20correctly','apply','전으로\x20업데이트하세','iZapk','.9\x20이상\x20버전으로','getScaAnal','버전으로\x20업데이트하','le\x20version','131545vDFBta','nRecommend','ediations','\x20with\x20mult','type','sis-id','versions','BKWaf','154gXmuod','ice.js','s\x20-\x20Remedi','5uUQcUn','sis-id-6','890','.service.j','2.0.0,\x202.9','40458LOopVf','atting','ectly','s.service.','isCompleti','1.9.15','toBeUndefi','SUCCESS','3.0.0\x20이상\x20버','SION.GT.OR','mat\x20UPDATE','1.5.0','../analysi','234','result','ediations\x20','ysisResult','3.0.0','SION.LT.OR','edValue','(((.+)+)+)','WQAgD','999','correctly','toBe','CVE-2023-9','mockImplem','2903296wJQUHx','.EQUAL.AND','dle\x20no\x20rem','ockModule','1.9.16\x20이하\x20','ctly','mockResolv','rvice\x20-\x20Re','820084zDtlie','.EQUAL','remediatio','analysisId','012','../checker','Fqpuv','86580foRVRR','sis-id-2','test-analy','.VERSION.E','dle\x20empty\x20','name','components','10zGjzFb'];a32_0x224a=function(){return _0x4b1f44;};return a32_0x224a();}const a32_0x2f207d=a32_0x540d;(function(_0x566258,_0xc43b14){const _0x1ff426=a32_0x540d,_0x3d6f7b=_0x566258();while(!![]){try{const _0x1260db=-parseInt(_0x1ff426(0xf1))/0x1+parseInt(_0x1ff426(0x101))/0x2*(parseInt(_0x1ff426(0xcd))/0x3)+-parseInt(_0x1ff426(0x124))/0x4*(-parseInt(_0x1ff426(0xfc))/0x5)+-parseInt(_0x1ff426(0xd7))/0x6*(-parseInt(_0x1ff426(0xf9))/0x7)+-parseInt(_0x1ff426(0xe4))/0x8*(parseInt(_0x1ff426(0x135))/0x9)+parseInt(_0x1ff426(0x132))/0xa*(-parseInt(_0x1ff426(0x11c))/0xb)+parseInt(_0x1ff426(0x12b))/0xc*(parseInt(_0x1ff426(0xd0))/0xd);if(_0x1260db===_0xc43b14)break;else _0x3d6f7b['push'](_0x3d6f7b['shift']());}catch(_0x4e06f7){_0x3d6f7b['push'](_0x3d6f7b['shift']());}}}(a32_0x224a,0x2ed5e));const a32_0x2c4eb6=(function(){let _0x31c782=!![];return function(_0x522175,_0x1d7f21){const _0x525eb1=_0x31c782?function(){const _0xd2dd88=a32_0x540d;if(_0x1d7f21){const _0x42a47b=_0x1d7f21[_0xd2dd88(0xea)](_0x522175,arguments);return _0x1d7f21=null,_0x42a47b;}}:function(){};return _0x31c782=![],_0x525eb1;};}()),a32_0x503556=a32_0x2c4eb6(this,function(){const _0x3f8087=a32_0x540d;return a32_0x503556['toString']()[_0x3f8087(0xe3)](_0x3f8087(0x115)+'+$')['toString']()['constructo'+'r'](a32_0x503556)[_0x3f8087(0xe3)]('(((.+)+)+)'+'+$');});function a32_0x540d(_0xcf9261,_0x373262){_0xcf9261=_0xcf9261-0xbf;const _0x425aa3=a32_0x224a();let _0x503556=_0x425aa3[_0xcf9261];return _0x503556;}a32_0x503556();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockSparrowService={'getAnalysisStatus':jest['fn'](),'downloadAnalysisResults':jest['fn'](),'pollAnalysisCompletion':jest['fn'](),'requestScaAnalysis':jest['fn']()},mockS3Service={'uploadFile':jest['fn'](),'uploadMultipleFiles':jest['fn'](),'uploadFilesFromPaths':jest['fn'](),'uploadZipFile':jest['fn'](),'uploadFolderAsZip':jest['fn']()},mockCheckerService={'initialize':jest['fn'](),'getLocalizedInfo':jest['fn'](),'getComplianceInfo':jest['fn']()};jest[a32_0x2f207d(0xe2)+a32_0x2f207d(0x11f)]('../sparrow'+a32_0x2f207d(0xff)+'s',()=>({'SparrowService':jest['fn']()['mockImplem'+a32_0x2f207d(0xd4)](()=>mockSparrowService)})),jest[a32_0x2f207d(0xe2)+a32_0x2f207d(0x11f)]('../s3.serv'+a32_0x2f207d(0xfa),()=>({'S3Service':jest['fn']()['mockImplem'+a32_0x2f207d(0xd4)](()=>mockS3Service)})),jest[a32_0x2f207d(0xe2)+a32_0x2f207d(0x11f)](a32_0x2f207d(0x129)+a32_0x2f207d(0xff)+'s',()=>({'CheckerService':jest['fn']()[a32_0x2f207d(0x11b)+a32_0x2f207d(0xd4)](()=>mockCheckerService)}));const {AnalysisService:AnalysisServiceClass}=await import(a32_0x2f207d(0x10d)+a32_0x2f207d(0x104)+'js');describe(a32_0x2f207d(0x134)+a32_0x2f207d(0x123)+'mediation',()=>{const _0x4e853c=a32_0x2f207d,_0x36c93e={'iZapk':'test-analy'+_0x4e853c(0xd9),'BKWaf':_0x4e853c(0x12d)+'sis-id-5','Fqpuv':'COMPLETE','hIDKZ':_0x4e853c(0xc1),'Akcmw':'should\x20for'+_0x4e853c(0x10b)+_0x4e853c(0xdf)+'T.OR.EQUAL'+_0x4e853c(0xe9),'AmMRw':function(_0x2cab57,_0x3818b2,_0x153d14){return _0x2cab57(_0x3818b2,_0x153d14);},'bpDaO':function(_0x8ec0ce,_0x49b649){return _0x8ec0ce(_0x49b649);}};let _0x413ba2;_0x36c93e['bpDaO'](beforeEach,()=>{jest['clearAllMo'+'cks'](),_0x413ba2=new AnalysisServiceClass();}),describe(_0x4e853c(0xee)+_0x4e853c(0x111)+_0x4e853c(0xfb)+_0x4e853c(0xde)+_0x4e853c(0x102),()=>{const _0x41713e=_0x4e853c,_0x17bf51={};_0x17bf51[_0x41713e(0x116)]='HIGH',_0x17bf51['hnsUe']=_0x41713e(0x12d)+'sis-id-4';const _0x14f427=_0x17bf51;it(_0x41713e(0xd6)+_0x41713e(0x10b)+_0x41713e(0x12e)+'QUAL\x20corre'+_0x41713e(0x121),async()=>{const _0x519fb3=_0x41713e,_0x1b8274=_0x519fb3(0x12d)+_0x519fb3(0xf6),_0x3535b3={};_0x3535b3[_0x519fb3(0xf5)]='UPDATE.VER'+_0x519fb3(0xe5),_0x3535b3[_0x519fb3(0xf7)]=[_0x519fb3(0xbf)];const _0x1b7500={};_0x1b7500[_0x519fb3(0xdc)+_0x519fb3(0xf3)]=[_0x3535b3];const _0x5053b7={};_0x5053b7['id']='CVE-2023-1'+_0x519fb3(0x10e),_0x5053b7[_0x519fb3(0x13a)]=_0x519fb3(0x138),_0x5053b7[_0x519fb3(0x126)+'ns']=_0x1b7500;const _0x12df61={};_0x12df61[_0x519fb3(0x130)]=_0x519fb3(0xc1),_0x12df61[_0x519fb3(0xc8)]=_0x519fb3(0xe0),_0x12df61[_0x519fb3(0xc4)]=[_0x5053b7];const _0x2c0c41=[_0x12df61],_0x36835e={};_0x36835e[_0x519fb3(0xe8)]='COMPLETE',_0x36835e['result']=_0x519fb3(0x108),_0x36835e['analysisId']=_0x1b8274,mockSparrowService[_0x519fb3(0xe1)+_0x519fb3(0x105)+'on'][_0x519fb3(0x122)+'edValue'](_0x36835e),mockSparrowService[_0x519fb3(0xd8)+_0x519fb3(0xcb)+'lts'][_0x519fb3(0x122)+'edValue'](_0x2c0c41);const _0x5f5e01=await _0x413ba2[_0x519fb3(0xee)+_0x519fb3(0x111)+'s'](_0x1b8274),_0x3426e9=_0x5f5e01[_0x519fb3(0x131)][0x0][_0x519fb3(0xc4)][0x0];expect(_0x3426e9[_0x519fb3(0x126)+'nRecommend'+'ation'])[_0x519fb3(0x119)](_0x519fb3(0xc0)+'\x20업데이트하세요.');}),it(_0x36c93e[_0x41713e(0xcf)],async()=>{const _0xe90789=_0x41713e,_0xb042ac=_0xe90789(0x12d)+_0xe90789(0x12c),_0x46c78e={};_0x46c78e[_0xe90789(0xf5)]=_0xe90789(0xd1)+_0xe90789(0x113)+_0xe90789(0x125),_0x46c78e[_0xe90789(0xf7)]=[_0xe90789(0x10c)];const _0x268b04={};_0x268b04['versionRem'+_0xe90789(0xf3)]=[_0x46c78e];const _0xabb4fe={};_0xabb4fe['id']='CVE-2023-5'+'678',_0xabb4fe[_0xe90789(0x13a)]=_0x14f427[_0xe90789(0x116)],_0xabb4fe[_0xe90789(0x126)+'ns']=_0x268b04;const _0x2ab1c2={};_0x2ab1c2[_0xe90789(0x130)]=_0xe90789(0xc1),_0x2ab1c2[_0xe90789(0xc8)]=_0xe90789(0xe0),_0x2ab1c2[_0xe90789(0xc4)]=[_0xabb4fe];const _0x526e8b=[_0x2ab1c2],_0x18ead4={};_0x18ead4[_0xe90789(0xe8)]=_0xe90789(0xe6),_0x18ead4[_0xe90789(0x10f)]=_0xe90789(0x108),_0x18ead4['analysisId']=_0xb042ac,mockSparrowService[_0xe90789(0xe1)+'isCompleti'+'on']['mockResolv'+'edValue'](_0x18ead4),mockSparrowService[_0xe90789(0xd8)+'alysisResu'+_0xe90789(0xc5)][_0xe90789(0x122)+'edValue'](_0x526e8b);const _0x27abfe=await _0x413ba2[_0xe90789(0xee)+_0xe90789(0x111)+'s'](_0xb042ac),_0x361523=_0x27abfe[_0xe90789(0x131)][0x0]['issues'][0x0];expect(_0x361523['remediatio'+_0xe90789(0xf2)+_0xe90789(0xe7)])[_0xe90789(0x119)](_0xe90789(0xc3)+'전으로\x20업데이트하세'+'요.');}),it(_0x41713e(0xd6)+_0x41713e(0x10b)+'.VERSION.G'+'T.OR.EQUAL'+_0x41713e(0xf4)+'iple\x20versi'+_0x41713e(0xd3)+'tly',async()=>{const _0x47b768=_0x41713e,_0x13a549=_0x36c93e[_0x47b768(0xec)],_0x4d0598={};_0x4d0598['type']=_0x47b768(0xd1)+_0x47b768(0x10a)+'.EQUAL',_0x4d0598[_0x47b768(0xf7)]=[_0x47b768(0x133),_0x47b768(0xcc)];const _0x416538={};_0x416538['versionRem'+_0x47b768(0xf3)]=[_0x4d0598];const _0x4ab5a6={};_0x4ab5a6['id']=_0x47b768(0x11a)+_0x47b768(0x128),_0x4ab5a6['severity']='HIGH',_0x4ab5a6[_0x47b768(0x126)+'ns']=_0x416538;const _0x5d6d7a={};_0x5d6d7a[_0x47b768(0x130)]=_0x47b768(0xc1),_0x5d6d7a[_0x47b768(0xc8)]='1.0.0',_0x5d6d7a[_0x47b768(0xc4)]=[_0x4ab5a6];const _0x5cce0b=[_0x5d6d7a],_0x3945f4={};_0x3945f4[_0x47b768(0xe8)]='COMPLETE',_0x3945f4['result']=_0x47b768(0x108),_0x3945f4['analysisId']=_0x13a549,mockSparrowService[_0x47b768(0xe1)+_0x47b768(0x105)+'on']['mockResolv'+_0x47b768(0x114)](_0x3945f4),mockSparrowService[_0x47b768(0xd8)+_0x47b768(0xcb)+_0x47b768(0xc5)][_0x47b768(0x122)+_0x47b768(0x114)](_0x5cce0b);const _0x470cf5=await _0x413ba2['getScaAnal'+'ysisResult'+'s'](_0x13a549),_0x4e91d0=_0x470cf5[_0x47b768(0x131)][0x0]['issues'][0x0];expect(_0x4e91d0['remediatio'+_0x47b768(0xf2)+_0x47b768(0xe7)])['toBe'](_0x47b768(0x100)+_0x47b768(0xed)+_0x47b768(0xdb));}),it('should\x20for'+_0x41713e(0x10b)+'.VERSION.G'+'T.OR.EQUAL'+'\x20with\x20sing'+_0x41713e(0xf0)+_0x41713e(0xe9),async()=>{const _0x1174fd=_0x41713e,_0x1f7878=_0x14f427['hnsUe'],_0x251685={};_0x251685[_0x1174fd(0xf5)]=_0x1174fd(0xd1)+'SION.GT.OR'+'.EQUAL',_0x251685[_0x1174fd(0xf7)]=[_0x1174fd(0x112)];const _0x573d79={};_0x573d79[_0x1174fd(0xdc)+'ediations']=[_0x251685];const _0x4a6e6a={};_0x4a6e6a['id']='CVE-2023-3'+_0x1174fd(0xda),_0x4a6e6a[_0x1174fd(0x13a)]=_0x1174fd(0x138),_0x4a6e6a['remediatio'+'ns']=_0x573d79;const _0x4e09e9={};_0x4e09e9[_0x1174fd(0x130)]='test-lib',_0x4e09e9[_0x1174fd(0xc8)]=_0x1174fd(0xe0),_0x4e09e9[_0x1174fd(0xc4)]=[_0x4a6e6a];const _0x18bcdc=[_0x4e09e9],_0x25b1ec={};_0x25b1ec[_0x1174fd(0xe8)]=_0x1174fd(0xe6),_0x25b1ec[_0x1174fd(0x10f)]=_0x1174fd(0x108),_0x25b1ec[_0x1174fd(0x127)]=_0x1f7878,mockSparrowService[_0x1174fd(0xe1)+_0x1174fd(0x105)+'on'][_0x1174fd(0x122)+'edValue'](_0x25b1ec),mockSparrowService[_0x1174fd(0xd8)+_0x1174fd(0xcb)+'lts'][_0x1174fd(0x122)+_0x1174fd(0x114)](_0x18bcdc);const _0x52ac74=await _0x413ba2[_0x1174fd(0xee)+_0x1174fd(0x111)+'s'](_0x1f7878),_0x2cae37=_0x52ac74[_0x1174fd(0x131)][0x0][_0x1174fd(0xc4)][0x0];expect(_0x2cae37[_0x1174fd(0x126)+_0x1174fd(0xf2)+_0x1174fd(0xe7)])['toBe'](_0x1174fd(0x109)+_0x1174fd(0xeb)+'요.');}),it(_0x41713e(0xd6)+'mat\x20UPDATE'+'.VERSION.G'+_0x41713e(0xd2)+_0x41713e(0xca)+_0x41713e(0x136)+_0x41713e(0xc2),async()=>{const _0x4051d4=_0x41713e,_0x2402c7=_0x36c93e[_0x4051d4(0xf8)],_0x54e78f={};_0x54e78f[_0x4051d4(0xf5)]=_0x4051d4(0xd1)+_0x4051d4(0x10a)+_0x4051d4(0x11d)+_0x4051d4(0xc7)+'AL',_0x54e78f[_0x4051d4(0xf7)]=[_0x4051d4(0x106),'1.9.16'];const _0x41e919={};_0x41e919['versionRem'+_0x4051d4(0xf3)]=[_0x54e78f];const _0x3d805b={};_0x3d805b['id']=_0x4051d4(0x11a)+_0x4051d4(0x117),_0x3d805b[_0x4051d4(0x13a)]=_0x4051d4(0x138),_0x3d805b[_0x4051d4(0x126)+'ns']=_0x41e919;const _0x23bc42={};_0x23bc42[_0x4051d4(0x130)]=_0x4051d4(0xc1),_0x23bc42[_0x4051d4(0xc8)]=_0x4051d4(0xe0),_0x23bc42[_0x4051d4(0xc4)]=[_0x3d805b];const _0x2a921d=[_0x23bc42],_0x319faa={};_0x319faa['status']=_0x36c93e[_0x4051d4(0x12a)],_0x319faa['result']=_0x4051d4(0x108),_0x319faa['analysisId']=_0x2402c7,mockSparrowService['pollAnalys'+_0x4051d4(0x105)+'on'][_0x4051d4(0x122)+'edValue'](_0x319faa),mockSparrowService[_0x4051d4(0xd8)+_0x4051d4(0xcb)+'lts'][_0x4051d4(0x122)+_0x4051d4(0x114)](_0x2a921d);const _0x492cd3=await _0x413ba2[_0x4051d4(0xee)+_0x4051d4(0x111)+'s'](_0x2402c7),_0x3c2118=_0x492cd3[_0x4051d4(0x131)][0x0][_0x4051d4(0xc4)][0x0];expect(_0x3c2118[_0x4051d4(0x126)+_0x4051d4(0xf2)+'ation'])['toBe'](_0x4051d4(0xdd)+_0x4051d4(0x120)+_0x4051d4(0xef)+_0x4051d4(0xc9));}),_0x36c93e['AmMRw'](it,_0x41713e(0xc6)+_0x41713e(0x11e)+_0x41713e(0x110)+_0x41713e(0x118),async()=>{const _0x28b3ec=_0x41713e,_0x31b124=_0x28b3ec(0x12d)+_0x28b3ec(0xfd),_0x15cde5={};_0x15cde5['id']=_0x28b3ec(0x137)+_0x28b3ec(0xfe),_0x15cde5[_0x28b3ec(0x13a)]=_0x28b3ec(0x138),_0x15cde5['remediatio'+'ns']=undefined;const _0x4cd75e={};_0x4cd75e[_0x28b3ec(0x130)]=_0x36c93e[_0x28b3ec(0xce)],_0x4cd75e[_0x28b3ec(0xc8)]=_0x28b3ec(0xe0),_0x4cd75e[_0x28b3ec(0xc4)]=[_0x15cde5];const _0x45b194=[_0x4cd75e],_0x8fadc8={};_0x8fadc8[_0x28b3ec(0xe8)]=_0x36c93e[_0x28b3ec(0x12a)],_0x8fadc8[_0x28b3ec(0x10f)]=_0x28b3ec(0x108),_0x8fadc8[_0x28b3ec(0x127)]=_0x31b124,mockSparrowService[_0x28b3ec(0xe1)+'isCompleti'+'on'][_0x28b3ec(0x122)+_0x28b3ec(0x114)](_0x8fadc8),mockSparrowService[_0x28b3ec(0xd8)+_0x28b3ec(0xcb)+_0x28b3ec(0xc5)]['mockResolv'+_0x28b3ec(0x114)](_0x45b194);const _0x5f4040=await _0x413ba2[_0x28b3ec(0xee)+_0x28b3ec(0x111)+'s'](_0x31b124),_0x5e0fb1=_0x5f4040[_0x28b3ec(0x131)][0x0][_0x28b3ec(0xc4)][0x0];expect(_0x5e0fb1[_0x28b3ec(0x126)+_0x28b3ec(0xf2)+_0x28b3ec(0xe7)])[_0x28b3ec(0x107)+'ned']();}),it('should\x20han'+_0x41713e(0x12f)+_0x41713e(0xdc)+_0x41713e(0x110)+_0x41713e(0xd5)+_0x41713e(0x103),async()=>{const _0x4eb277=_0x41713e,_0x42fcb9=_0x4eb277(0x12d)+'sis-id-7',_0x56cb60={};_0x56cb60[_0x4eb277(0xdc)+_0x4eb277(0xf3)]=[];const _0x438d82={};_0x438d82['id']='CVE-2023-7'+'890',_0x438d82[_0x4eb277(0x13a)]='HIGH',_0x438d82[_0x4eb277(0x126)+'ns']=_0x56cb60;const _0x40c5a4={};_0x40c5a4[_0x4eb277(0x130)]=_0x4eb277(0xc1),_0x40c5a4[_0x4eb277(0xc8)]=_0x4eb277(0xe0),_0x40c5a4['issues']=[_0x438d82];const _0x4e17c4=[_0x40c5a4],_0x7a4d14={};_0x7a4d14['status']=_0x4eb277(0xe6),_0x7a4d14[_0x4eb277(0x10f)]=_0x4eb277(0x108),_0x7a4d14[_0x4eb277(0x127)]=_0x42fcb9,mockSparrowService['pollAnalys'+'isCompleti'+'on'][_0x4eb277(0x122)+'edValue'](_0x7a4d14),mockSparrowService[_0x4eb277(0xd8)+_0x4eb277(0xcb)+'lts'][_0x4eb277(0x122)+_0x4eb277(0x114)](_0x4e17c4);const _0x350002=await _0x413ba2[_0x4eb277(0xee)+_0x4eb277(0x111)+'s'](_0x42fcb9),_0x5bee1e=_0x350002[_0x4eb277(0x131)][0x0]['issues'][0x0];expect(_0x5bee1e[_0x4eb277(0x126)+_0x4eb277(0xf2)+_0x4eb277(0xe7)])[_0x4eb277(0x119)](_0x4eb277(0x139)+'\x20없습니다.');});});});
@@ -1 +1 @@
1
- function a32_0x1458(_0x1486a7,_0x514ce9){_0x1486a7=_0x1486a7-0x1c9;const _0x22609c=a32_0xd9a3();let _0xbf64a8=_0x22609c[_0x1486a7];return _0xbf64a8;}const a32_0x51bb01=a32_0x1458;(function(_0x219295,_0x4de2c0){const _0x12e849=a32_0x1458,_0x449443=_0x219295();while(!![]){try{const _0x522686=parseInt(_0x12e849(0x1f2))/0x1*(parseInt(_0x12e849(0x1d2))/0x2)+-parseInt(_0x12e849(0x222))/0x3*(parseInt(_0x12e849(0x1cc))/0x4)+-parseInt(_0x12e849(0x215))/0x5+-parseInt(_0x12e849(0x1cb))/0x6*(-parseInt(_0x12e849(0x1df))/0x7)+parseInt(_0x12e849(0x221))/0x8+parseInt(_0x12e849(0x219))/0x9*(parseInt(_0x12e849(0x1cf))/0xa)+-parseInt(_0x12e849(0x1e1))/0xb;if(_0x522686===_0x4de2c0)break;else _0x449443['push'](_0x449443['shift']());}catch(_0x4e99cd){_0x449443['push'](_0x449443['shift']());}}}(a32_0xd9a3,0xa9707));const a32_0x12762a=(function(){let _0x5d4be6=!![];return function(_0x19ed66,_0x4b08b0){const _0x7f51b8=_0x5d4be6?function(){const _0x5ed7d7=a32_0x1458;if(_0x4b08b0){const _0x42f25a=_0x4b08b0[_0x5ed7d7(0x1c9)](_0x19ed66,arguments);return _0x4b08b0=null,_0x42f25a;}}:function(){};return _0x5d4be6=![],_0x7f51b8;};}()),a32_0xbf64a8=a32_0x12762a(this,function(){const _0x5c642d=a32_0x1458;return a32_0xbf64a8['toString']()[_0x5c642d(0x1fe)](_0x5c642d(0x20e)+'+$')[_0x5c642d(0x210)]()[_0x5c642d(0x1d8)+'r'](a32_0xbf64a8)[_0x5c642d(0x1fe)](_0x5c642d(0x20e)+'+$');});a32_0xbf64a8();function a32_0xd9a3(){const _0x588a52=['26041433azbCsM','rThan','parseScaCo','xiddA','ces\x20and\x20al','aliasInfos','../llm.ser','1.10.9','name','risk','xpxf-3v68','cveId','erate\x20reme','dSTib','cvssScore','nRecommend','https://nv','4bMfmfg','toBeGreate','bility\x20nam','se\x20vulnera','toContain','should\x20par','A\x20Parsing','type','parse','iases\x20corr','vulnerabil','affectedVe','search','../../util','url','versions','version','rvice\x20-\x20SC','find','link','erability/','1.9.0','ice.js','AnalysisSe','severityRa','1979','.ant:ant','diation\x20re','(((.+)+)+)','/vuln/deta','toString','utf-8','issues','jsRcH','ation','26580NYXuZT','ting','should\x20map','vulnName','40509jknZCV','rating','test_resul','commendati','../s3.serv','d\x20versions','\x20CRITICAL\x20','v.dev/vuln','4936056xaSpdi','6WJLZyb','GHSA-f62v-','vulnId','ity','mponents','MON.5896','tly','toBeDefine','remediatio','ediations','rsions','../sparrow','mock','s/logger.j','references','checkerKey','vice.js','SCA.SV.COM','apply','versionRem','6636vSGrzk','1202664tiRGHI','toBe','readFileSy','2870awkNad','il/CVE-202','ctly','239266JIQneP','length','.service.j','se\x20referen','UPDATE.VER','severity','constructo','CVE-2020-1','se\x20affecte','VjEFq','nvd.nist.g','0-11979','join','8106VJfhrE','1.10.8'];a32_0xd9a3=function(){return _0x588a52;};return a32_0xd9a3();}import{AnalysisService}from'../analysis.service.js';import a32_0x23f3e6 from'fs';import a32_0xcb66de from'path';import{jest}from'@jest/globals';jest[a32_0x51bb01(0x22e)](a32_0x51bb01(0x1e7)+a32_0x51bb01(0x232)),jest['mock'](a32_0x51bb01(0x22d)+a32_0x51bb01(0x1d4)+'s'),jest['mock'](a32_0x51bb01(0x21d)+a32_0x51bb01(0x208)),jest['mock']('../checker'+a32_0x51bb01(0x1d4)+'s'),jest['mock'](a32_0x51bb01(0x1ff)+a32_0x51bb01(0x22f)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn'](),'debug':jest['fn']()}})),describe(a32_0x51bb01(0x209)+a32_0x51bb01(0x203)+a32_0x51bb01(0x1f8),()=>{const _0x3bb17f=a32_0x51bb01,_0x545bf7={'jsRcH':function(_0x5854de,_0xfd19a7){return _0x5854de(_0xfd19a7);},'xiddA':'CVE-2020-1'+'1979','VjEFq':_0x3bb17f(0x1e0),'dSTib':function(_0x18be1a,_0x121ea9,_0x594674){return _0x18be1a(_0x121ea9,_0x594674);}};let _0x4459cf,_0x152c90;beforeAll(()=>{const _0x24cc1e=_0x3bb17f;_0x4459cf=new AnalysisService();const _0xce2cba=a32_0xcb66de[_0x24cc1e(0x1de)](process['cwd'](),_0x24cc1e(0x21b)+'ts','1.json');if(a32_0x23f3e6['existsSync'](_0xce2cba)){const _0x1c5be3=a32_0x23f3e6[_0x24cc1e(0x1ce)+'nc'](_0xce2cba,_0x24cc1e(0x211));_0x152c90=JSON[_0x24cc1e(0x1fa)](_0x1c5be3);}else{const _0x948725={};_0x948725[_0x24cc1e(0x21a)]='High',_0x948725[_0x24cc1e(0x1ef)]=7.5;const _0x3dafc8={};_0x3dafc8['alias']='GHSA-f62v-'+_0x24cc1e(0x1eb),_0x3dafc8[_0x24cc1e(0x205)]='https://os'+_0x24cc1e(0x220)+_0x24cc1e(0x206)+'GHSA-f62v-'+_0x24cc1e(0x1eb);const _0xd8ddc0={};_0xd8ddc0[_0x24cc1e(0x224)]=_0x24cc1e(0x1d9)+_0x24cc1e(0x20b),_0xd8ddc0[_0x24cc1e(0x218)]=_0x24cc1e(0x1d9)+_0x24cc1e(0x20b),_0xd8ddc0['vulnLink']=_0x24cc1e(0x1f1)+'d.nist.gov'+_0x24cc1e(0x20f)+_0x24cc1e(0x1d0)+_0x24cc1e(0x1dd),_0xd8ddc0[_0x24cc1e(0x20a)+_0x24cc1e(0x216)]=_0x948725,_0xd8ddc0[_0x24cc1e(0x1e6)]=[_0x3dafc8];const _0x33406b={};_0x33406b[_0x24cc1e(0x1f9)]=_0x24cc1e(0x1d6)+'SION.GT.OR'+'.EQUAL',_0x33406b['versions']=[_0x24cc1e(0x1e8)];const _0x47299a={};_0x47299a[_0x24cc1e(0x1ca)+_0x24cc1e(0x22b)]=[_0x33406b];const _0x3b307c={};_0x3b307c[_0x24cc1e(0x1f9)]='LT.OR.EQUA'+'L',_0x3b307c[_0x24cc1e(0x201)]=[_0x24cc1e(0x1e0)];const _0x296bc0={};_0x296bc0[_0x24cc1e(0x231)]=_0x24cc1e(0x233)+_0x24cc1e(0x227),_0x296bc0[_0x24cc1e(0x1ea)]=0x5,_0x296bc0[_0x24cc1e(0x1fc)+_0x24cc1e(0x225)]=_0xd8ddc0,_0x296bc0['remediatio'+'ns']=_0x47299a,_0x296bc0['affectedVe'+'rsions']=[_0x3b307c];const _0x3bba3c={};_0x3bba3c[_0x24cc1e(0x1e9)]='org.apache'+_0x24cc1e(0x20c),_0x3bba3c[_0x24cc1e(0x202)]=_0x24cc1e(0x207),_0x3bba3c['issues']=[_0x296bc0],_0x152c90=[_0x3bba3c];}}),it(_0x3bb17f(0x1f7)+'se\x20checker'+'Key\x20correc'+_0x3bb17f(0x228),()=>{const _0x25ec90=_0x3bb17f,_0x1c30ab=_0x4459cf[_0x25ec90(0x1e3)+_0x25ec90(0x226)](_0x152c90),_0xdd384b=_0x1c30ab[0x0][_0x25ec90(0x212)][0x0];expect(_0xdd384b[_0x25ec90(0x231)])[_0x25ec90(0x1cd)](_0x25ec90(0x233)+_0x25ec90(0x227));}),it(_0x3bb17f(0x217)+'\x20risk\x205\x20to'+_0x3bb17f(0x21f)+_0x3bb17f(0x1d7),()=>{const _0x5c91ff=_0x3bb17f,_0x54e7cf=_0x4459cf[_0x5c91ff(0x1e3)+'mponents'](_0x152c90),_0x44ba4a=_0x54e7cf[0x0][_0x5c91ff(0x212)][0x0];_0x545bf7['jsRcH'](expect,_0x44ba4a[_0x5c91ff(0x1ea)])['toBe'](0x5),expect(_0x44ba4a[_0x5c91ff(0x1d7)])[_0x5c91ff(0x1cd)]('CRITICAL');}),it(_0x3bb17f(0x1f7)+_0x3bb17f(0x1f5)+_0x3bb17f(0x1f4)+'e/ID\x20corre'+_0x3bb17f(0x1d1),()=>{const _0x5bd52c=_0x3bb17f,_0xf981d4=_0x4459cf[_0x5bd52c(0x1e3)+_0x5bd52c(0x226)](_0x152c90),_0x1cd07f=_0xf981d4[0x0]['issues'][0x0];expect(_0x1cd07f[_0x5bd52c(0x1ec)])['toBe'](_0x545bf7[_0x5bd52c(0x1e4)]);}),_0x545bf7[_0x3bb17f(0x1ee)](it,_0x3bb17f(0x1f7)+_0x3bb17f(0x1da)+_0x3bb17f(0x21e)+'\x20correctly',()=>{const _0x57e8c8=_0x3bb17f,_0x41c5b3=_0x4459cf[_0x57e8c8(0x1e3)+_0x57e8c8(0x226)](_0x152c90),_0x22b576=_0x41c5b3[0x0]['issues'][0x0];expect(_0x22b576[_0x57e8c8(0x1fd)+_0x57e8c8(0x22c)])[_0x57e8c8(0x229)+'d'](),expect(_0x22b576[_0x57e8c8(0x1fd)+'rsions'][_0x57e8c8(0x1d3)])[_0x57e8c8(0x1f3)+_0x57e8c8(0x1e2)](0x0),_0x545bf7[_0x57e8c8(0x213)](expect,_0x22b576[_0x57e8c8(0x1fd)+_0x57e8c8(0x22c)][0x0][_0x57e8c8(0x1f9)])[_0x57e8c8(0x1cd)]('LT.OR.EQUA'+'L'),expect(_0x22b576['affectedVe'+_0x57e8c8(0x22c)][0x0]['versions'])['toContain'](_0x545bf7[_0x57e8c8(0x1db)]);}),it('should\x20par'+_0x3bb17f(0x1d5)+_0x3bb17f(0x1e5)+_0x3bb17f(0x1fb)+'ectly',()=>{const _0xc3d634=_0x3bb17f,_0x311b30=_0x4459cf[_0xc3d634(0x1e3)+_0xc3d634(0x226)](_0x152c90),_0x5e6c36=_0x311b30[0x0][_0xc3d634(0x212)][0x0];expect(_0x5e6c36[_0xc3d634(0x230)])[_0xc3d634(0x229)+'d']();const _0x231c60=_0x5e6c36[_0xc3d634(0x230)]['find'](_0x28bf7e=>_0x28bf7e[_0xc3d634(0x1f9)]==='details');expect(_0x231c60)[_0xc3d634(0x229)+'d'](),expect(_0x231c60[_0xc3d634(0x200)])[_0xc3d634(0x1f6)](_0xc3d634(0x1dc)+'ov');const _0x53f74b=_0x5e6c36[_0xc3d634(0x230)][_0xc3d634(0x204)](_0x16c65e=>_0x16c65e[_0xc3d634(0x1f9)]==='alias');expect(_0x53f74b)[_0xc3d634(0x229)+'d'](),expect(_0x53f74b['source'])[_0xc3d634(0x1cd)](_0xc3d634(0x223)+'xpxf-3v68');}),it('should\x20gen'+_0x3bb17f(0x1ed)+_0x3bb17f(0x20d)+_0x3bb17f(0x21c)+'on',()=>{const _0x4b4d43=_0x3bb17f,_0x4043ed=_0x4459cf[_0x4b4d43(0x1e3)+'mponents'](_0x152c90),_0x13db3c=_0x4043ed[0x0][_0x4b4d43(0x212)][0x0];expect(_0x13db3c[_0x4b4d43(0x22a)+_0x4b4d43(0x1f0)+_0x4b4d43(0x214)])['toBeDefine'+'d'](),_0x545bf7[_0x4b4d43(0x213)](expect,_0x13db3c[_0x4b4d43(0x22a)+_0x4b4d43(0x1f0)+'ation'][_0x4b4d43(0x1d3)])[_0x4b4d43(0x1f3)+_0x4b4d43(0x1e2)](0x0);});});
1
+ const a33_0xec4ae0=a33_0x531f;(function(_0x5606fc,_0x29eb88){const _0x59e812=a33_0x531f,_0x4b3713=_0x5606fc();while(!![]){try{const _0x56fdd4=-parseInt(_0x59e812(0x11a))/0x1*(-parseInt(_0x59e812(0x16d))/0x2)+parseInt(_0x59e812(0x13e))/0x3+parseInt(_0x59e812(0x15c))/0x4*(parseInt(_0x59e812(0x14b))/0x5)+parseInt(_0x59e812(0x123))/0x6+parseInt(_0x59e812(0x133))/0x7+parseInt(_0x59e812(0x16c))/0x8*(-parseInt(_0x59e812(0x159))/0x9)+-parseInt(_0x59e812(0x124))/0xa;if(_0x56fdd4===_0x29eb88)break;else _0x4b3713['push'](_0x4b3713['shift']());}catch(_0x2e172a){_0x4b3713['push'](_0x4b3713['shift']());}}}(a33_0x1e01,0xa03e0));function a33_0x1e01(){const _0x132cc5=['MON.5896','.service.j','1979','High','se\x20checker','.EQUAL','.ant:ant','join','il/CVE-202','remediatio','AnalysisSe','4840bPrMMj','530pAlTnw','details','https://nv','should\x20map','existsSync','affectedVe','search','parse','1.10.9','vulnLink','vulnerabil','cwd','apply','UPDATE.VER','../checker','se\x20referen','ces\x20and\x20al','toBeGreate','find','LT.OR.EQUA','rThan','cvssScore','e/ID\x20corre','4591udCSkh','1.9.0','mponents','A\x20Parsing','xpxf-3v68','rsions','utf-8','checkerKey','erability/','7828470ancSSS','33669390LrrAai','CRITICAL','GHSA-f62v-','ation','ctly','toBe','toBeDefine','xawaQ','aliasInfos','test_resul','vulnId','1.json','should\x20gen','source','erate\x20reme','881321FUoGHb','risk','mock','diation\x20re','ectly','https://os','\x20correctly','alias','ediations','toContain','Key\x20correc','2043684cXlafs','s/logger.j','SCA.SV.COM','rating','0-11979','parseScaCo','type','nRecommend','ity','length','CVE-2020-1','d.nist.gov','1.10.8','3918675ccYTjy','constructo','ting','../sparrow','issues','(((.+)+)+)','se\x20vulnera','SION.GT.OR','severity','references','\x20CRITICAL\x20','name','tly','versions','1323PekFJc','readFileSy','bility\x20nam','4MkPGFC','should\x20par','d\x20versions','\x20risk\x205\x20to','rvice\x20-\x20SC'];a33_0x1e01=function(){return _0x132cc5;};return a33_0x1e01();}const a33_0x146cac=(function(){let _0x55d09f=!![];return function(_0x3d3792,_0x41f426){const _0x217ea5=_0x55d09f?function(){const _0x2e5665=a33_0x531f;if(_0x41f426){const _0x32eb69=_0x41f426[_0x2e5665(0x10f)](_0x3d3792,arguments);return _0x41f426=null,_0x32eb69;}}:function(){};return _0x55d09f=![],_0x217ea5;};}()),a33_0x3bd3c3=a33_0x146cac(this,function(){const _0x55e570=a33_0x531f;return a33_0x3bd3c3['toString']()[_0x55e570(0x173)]('(((.+)+)+)'+'+$')['toString']()[_0x55e570(0x14c)+'r'](a33_0x3bd3c3)['search'](_0x55e570(0x150)+'+$');});a33_0x3bd3c3();import{AnalysisService}from'../analysis.service.js';import a33_0x35cc3e from'fs';import a33_0x18732d from'path';import{jest}from'@jest/globals';function a33_0x531f(_0x322e55,_0x254e1f){_0x322e55=_0x322e55-0x10f;const _0x55a238=a33_0x1e01();let _0x3bd3c3=_0x55a238[_0x322e55];return _0x3bd3c3;}jest[a33_0xec4ae0(0x135)]('../llm.ser'+'vice.js'),jest['mock'](a33_0xec4ae0(0x14e)+a33_0xec4ae0(0x162)+'s'),jest[a33_0xec4ae0(0x135)]('../s3.serv'+'ice.js'),jest[a33_0xec4ae0(0x135)](a33_0xec4ae0(0x111)+a33_0xec4ae0(0x162)+'s'),jest[a33_0xec4ae0(0x135)]('../../util'+a33_0xec4ae0(0x13f)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn'](),'debug':jest['fn']()}})),describe(a33_0xec4ae0(0x16b)+a33_0xec4ae0(0x160)+a33_0xec4ae0(0x11d),()=>{const _0x1e5a29=a33_0xec4ae0,_0x250774={'xawaQ':function(_0x14119a,_0x1a0e5c){return _0x14119a(_0x1a0e5c);},'mmfOz':function(_0x13e070,_0x32d7da,_0x3d2c18){return _0x13e070(_0x32d7da,_0x3d2c18);}};let _0x50c67c,_0x3a7e7e;beforeAll(()=>{const _0x1b3da1=a33_0x531f;_0x50c67c=new AnalysisService();const _0x1aa50f=a33_0x18732d[_0x1b3da1(0x168)](process[_0x1b3da1(0x178)](),_0x1b3da1(0x12d)+'ts',_0x1b3da1(0x12f));if(a33_0x35cc3e[_0x1b3da1(0x171)](_0x1aa50f)){const _0x4ad8ab=a33_0x35cc3e[_0x1b3da1(0x15a)+'nc'](_0x1aa50f,_0x1b3da1(0x120));_0x3a7e7e=JSON[_0x1b3da1(0x174)](_0x4ad8ab);}else{const _0x25bcdc={};_0x25bcdc[_0x1b3da1(0x141)]=_0x1b3da1(0x164),_0x25bcdc[_0x1b3da1(0x118)]=7.5;const _0x5ac890={};_0x5ac890[_0x1b3da1(0x13a)]=_0x1b3da1(0x126)+_0x1b3da1(0x11e),_0x5ac890['link']=_0x1b3da1(0x138)+'v.dev/vuln'+_0x1b3da1(0x122)+'GHSA-f62v-'+'xpxf-3v68';const _0x2fde2e={};_0x2fde2e[_0x1b3da1(0x12e)]=_0x1b3da1(0x148)+_0x1b3da1(0x163),_0x2fde2e['vulnName']=_0x1b3da1(0x148)+_0x1b3da1(0x163),_0x2fde2e[_0x1b3da1(0x176)]=_0x1b3da1(0x16f)+_0x1b3da1(0x149)+'/vuln/deta'+_0x1b3da1(0x169)+_0x1b3da1(0x142),_0x2fde2e['severityRa'+_0x1b3da1(0x14d)]=_0x25bcdc,_0x2fde2e[_0x1b3da1(0x12c)]=[_0x5ac890];const _0x10b719={};_0x10b719['type']=_0x1b3da1(0x110)+_0x1b3da1(0x152)+_0x1b3da1(0x166),_0x10b719[_0x1b3da1(0x158)]=[_0x1b3da1(0x175)];const _0xcbc200={};_0xcbc200['versionRem'+_0x1b3da1(0x13b)]=[_0x10b719];const _0x57e552={};_0x57e552[_0x1b3da1(0x144)]='LT.OR.EQUA'+'L',_0x57e552['versions']=[_0x1b3da1(0x14a)];const _0x2e8500={};_0x2e8500['checkerKey']=_0x1b3da1(0x140)+_0x1b3da1(0x161),_0x2e8500['risk']=0x5,_0x2e8500[_0x1b3da1(0x177)+_0x1b3da1(0x146)]=_0x2fde2e,_0x2e8500[_0x1b3da1(0x16a)+'ns']=_0xcbc200,_0x2e8500[_0x1b3da1(0x172)+'rsions']=[_0x57e552];const _0x1c6b1f={};_0x1c6b1f[_0x1b3da1(0x156)]='org.apache'+_0x1b3da1(0x167),_0x1c6b1f['version']=_0x1b3da1(0x11b),_0x1c6b1f['issues']=[_0x2e8500],_0x3a7e7e=[_0x1c6b1f];}}),it('should\x20par'+_0x1e5a29(0x165)+_0x1e5a29(0x13d)+_0x1e5a29(0x157),()=>{const _0x7bdd65=_0x1e5a29,_0x30ce66=_0x50c67c[_0x7bdd65(0x143)+_0x7bdd65(0x11c)](_0x3a7e7e),_0x53e816=_0x30ce66[0x0]['issues'][0x0];expect(_0x53e816[_0x7bdd65(0x121)])[_0x7bdd65(0x129)](_0x7bdd65(0x140)+_0x7bdd65(0x161));}),it(_0x1e5a29(0x170)+_0x1e5a29(0x15f)+_0x1e5a29(0x155)+_0x1e5a29(0x153),()=>{const _0x33b9fe=_0x1e5a29,_0x320dda=_0x50c67c[_0x33b9fe(0x143)+_0x33b9fe(0x11c)](_0x3a7e7e),_0x22f204=_0x320dda[0x0]['issues'][0x0];expect(_0x22f204[_0x33b9fe(0x134)])[_0x33b9fe(0x129)](0x5),expect(_0x22f204[_0x33b9fe(0x153)])[_0x33b9fe(0x129)](_0x33b9fe(0x125));}),it('should\x20par'+_0x1e5a29(0x151)+_0x1e5a29(0x15b)+_0x1e5a29(0x119)+_0x1e5a29(0x128),()=>{const _0x508aa3=_0x1e5a29,_0x431e47=_0x50c67c['parseScaCo'+_0x508aa3(0x11c)](_0x3a7e7e),_0x1075d7=_0x431e47[0x0][_0x508aa3(0x14f)][0x0];expect(_0x1075d7['cveId'])[_0x508aa3(0x129)]('CVE-2020-1'+'1979');}),_0x250774['mmfOz'](it,_0x1e5a29(0x15d)+'se\x20affecte'+_0x1e5a29(0x15e)+_0x1e5a29(0x139),()=>{const _0x32ac12=_0x1e5a29,_0xd36a33=_0x50c67c[_0x32ac12(0x143)+_0x32ac12(0x11c)](_0x3a7e7e),_0x172a9e=_0xd36a33[0x0][_0x32ac12(0x14f)][0x0];expect(_0x172a9e['affectedVe'+_0x32ac12(0x11f)])[_0x32ac12(0x12a)+'d'](),expect(_0x172a9e[_0x32ac12(0x172)+_0x32ac12(0x11f)][_0x32ac12(0x147)])[_0x32ac12(0x114)+'rThan'](0x0),_0x250774[_0x32ac12(0x12b)](expect,_0x172a9e[_0x32ac12(0x172)+_0x32ac12(0x11f)][0x0][_0x32ac12(0x144)])[_0x32ac12(0x129)](_0x32ac12(0x116)+'L'),expect(_0x172a9e[_0x32ac12(0x172)+_0x32ac12(0x11f)][0x0][_0x32ac12(0x158)])[_0x32ac12(0x13c)](_0x32ac12(0x14a));}),_0x250774['mmfOz'](it,_0x1e5a29(0x15d)+_0x1e5a29(0x112)+_0x1e5a29(0x113)+'iases\x20corr'+_0x1e5a29(0x137),()=>{const _0x32da5e=_0x1e5a29,_0x466a34=_0x50c67c[_0x32da5e(0x143)+_0x32da5e(0x11c)](_0x3a7e7e),_0x4e4ac2=_0x466a34[0x0][_0x32da5e(0x14f)][0x0];expect(_0x4e4ac2['references'])['toBeDefine'+'d']();const _0xf6087d=_0x4e4ac2[_0x32da5e(0x154)][_0x32da5e(0x115)](_0x2949d8=>_0x2949d8[_0x32da5e(0x144)]===_0x32da5e(0x16e));expect(_0xf6087d)[_0x32da5e(0x12a)+'d'](),expect(_0xf6087d['url'])[_0x32da5e(0x13c)]('nvd.nist.g'+'ov');const _0x1c029a=_0x4e4ac2[_0x32da5e(0x154)][_0x32da5e(0x115)](_0x4fab9b=>_0x4fab9b[_0x32da5e(0x144)]==='alias');expect(_0x1c029a)[_0x32da5e(0x12a)+'d'](),expect(_0x1c029a[_0x32da5e(0x131)])[_0x32da5e(0x129)](_0x32da5e(0x126)+'xpxf-3v68');}),it(_0x1e5a29(0x130)+_0x1e5a29(0x132)+_0x1e5a29(0x136)+'commendati'+'on',()=>{const _0x5d0c34=_0x1e5a29,_0x3044bd=_0x50c67c[_0x5d0c34(0x143)+_0x5d0c34(0x11c)](_0x3a7e7e),_0x5d51d2=_0x3044bd[0x0][_0x5d0c34(0x14f)][0x0];expect(_0x5d51d2['remediatio'+_0x5d0c34(0x145)+_0x5d0c34(0x127)])[_0x5d0c34(0x12a)+'d'](),expect(_0x5d51d2[_0x5d0c34(0x16a)+'nRecommend'+_0x5d0c34(0x127)]['length'])[_0x5d0c34(0x114)+_0x5d0c34(0x117)](0x0);});});