@sparrowai/sparrow-mcp 1.1.6 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.d.ts +8 -4
  16. package/dist/src/controllers/sast.controller.js +1 -1
  17. package/dist/src/controllers/sca.controller.d.ts +8 -4
  18. package/dist/src/controllers/sca.controller.js +1 -1
  19. package/dist/src/controllers/security.controller.js +1 -1
  20. package/dist/src/controllers/system.controller.js +1 -1
  21. package/dist/src/schemas/tool.schemas.d.ts +8 -0
  22. package/dist/src/schemas/tool.schemas.js +1 -1
  23. package/dist/src/server.js +1 -1
  24. package/dist/src/services/__tests__/checker.service.test.js +1 -1
  25. package/dist/src/services/__tests__/llm.service.test.js +1 -1
  26. package/dist/src/services/__tests__/s3.service.test.js +1 -1
  27. package/dist/src/services/__tests__/sparrow.service.test.js +1 -1
  28. package/dist/src/services/analysis.service.d.ts +20 -23
  29. package/dist/src/services/analysis.service.js +1 -1
  30. package/dist/src/services/checker.service.js +1 -1
  31. package/dist/src/services/llm/AnthropicProvider.js +1 -1
  32. package/dist/src/services/llm/BedrockProvider.js +1 -1
  33. package/dist/src/services/llm/GeminiProvider.js +1 -1
  34. package/dist/src/services/llm/LLMFactory.js +1 -1
  35. package/dist/src/services/llm/LLMProvider.js +1 -1
  36. package/dist/src/services/llm/OllamaProvider.js +1 -1
  37. package/dist/src/services/llm/OpenAIProvider.js +1 -1
  38. package/dist/src/services/llm.service.js +1 -1
  39. package/dist/src/services/s3.service.js +1 -1
  40. package/dist/src/services/sparrow.service.js +1 -1
  41. package/dist/src/types/types.d.ts +5 -0
  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
@@ -2,9 +2,10 @@ import { AnalysisService } from '../services/analysis.service.js';
2
2
  export declare class ScaController {
3
3
  private analysisService;
4
4
  constructor(analysisService: AnalysisService);
5
- analyzeFileSca({ filePath, zipFileName }: {
5
+ analyzeFileSca({ filePath, zipFileName, memo }: {
6
6
  filePath: string;
7
7
  zipFileName?: string;
8
+ memo?: string;
8
9
  }): Promise<{
9
10
  content: {
10
11
  type: "text";
@@ -30,9 +31,10 @@ export declare class ScaController {
30
31
  error?: undefined;
31
32
  };
32
33
  }>;
33
- analyzeFilesSca({ filePaths, zipFileName }: {
34
+ analyzeFilesSca({ filePaths, zipFileName, memo }: {
34
35
  filePaths: string[];
35
36
  zipFileName?: string;
37
+ memo?: string;
36
38
  }): Promise<{
37
39
  content: {
38
40
  type: "text";
@@ -58,9 +60,10 @@ export declare class ScaController {
58
60
  error?: undefined;
59
61
  };
60
62
  }>;
61
- analyzeFolderSca({ folderPath, zipFileName }: {
63
+ analyzeFolderSca({ folderPath, zipFileName, memo }: {
62
64
  folderPath: string;
63
65
  zipFileName?: string;
66
+ memo?: string;
64
67
  }): Promise<{
65
68
  content: {
66
69
  type: "text";
@@ -88,9 +91,10 @@ export declare class ScaController {
88
91
  error?: undefined;
89
92
  };
90
93
  }>;
91
- analyzeZipSca({ zipFilePath, zipFileName }: {
94
+ analyzeZipSca({ zipFilePath, zipFileName, memo }: {
92
95
  zipFilePath: string;
93
96
  zipFileName?: string;
97
+ memo?: string;
94
98
  }): Promise<{
95
99
  content: {
96
100
  type: "text";
@@ -1 +1 @@
1
- const a9_0x127117=a9_0x140b;(function(_0x58e4ad,_0x40b31f){const _0x29e923=a9_0x140b,_0x1d410f=_0x58e4ad();while(!![]){try{const _0x15e605=parseInt(_0x29e923(0x1ff))/0x1+parseInt(_0x29e923(0x1f1))/0x2+parseInt(_0x29e923(0x20f))/0x3+-parseInt(_0x29e923(0x216))/0x4*(parseInt(_0x29e923(0x22f))/0x5)+-parseInt(_0x29e923(0x1f5))/0x6*(parseInt(_0x29e923(0x1f2))/0x7)+-parseInt(_0x29e923(0x21f))/0x8+parseInt(_0x29e923(0x23b))/0x9;if(_0x15e605===_0x40b31f)break;else _0x1d410f['push'](_0x1d410f['shift']());}catch(_0x19f64a){_0x1d410f['push'](_0x1d410f['shift']());}}}(a9_0x46e8,0xb8cf8));const a9_0x4f8c76=(function(){let _0x5d912e=!![];return function(_0x5389e6,_0x1ef21b){const _0x34c71e=_0x5d912e?function(){const _0x44e380=a9_0x140b;if(_0x1ef21b){const _0xfa2de2=_0x1ef21b[_0x44e380(0x20e)](_0x5389e6,arguments);return _0x1ef21b=null,_0xfa2de2;}}:function(){};return _0x5d912e=![],_0x34c71e;};}()),a9_0x27d719=a9_0x4f8c76(this,function(){const _0x478c9f=a9_0x140b;return a9_0x27d719[_0x478c9f(0x20b)]()['search'](_0x478c9f(0x249)+'+$')[_0x478c9f(0x20b)]()[_0x478c9f(0x209)+'r'](a9_0x27d719)[_0x478c9f(0x246)](_0x478c9f(0x249)+'+$');});a9_0x27d719();import{logger}from'../utils/logger.js';function a9_0x46e8(){const _0x4ad005=['):\x20','apply','3561288VOGpgE','\x20SCA\x20analy','CA\x20analysi','File\x20path\x20','rted.\x0aFold','aths\x20array','zipFilePat','276ojqEFe','error','\x20paths:\x20','th.','Type:\x20','\x0aStatus:\x20','text','esSca','Multi-file','11600344SdCtnE','YqRRQ','s\x20failed:','sted:\x20','sis\x20reques','e\x20SCA\x20anal','structured','at\x20least\x20o','File:\x20','s\x20requeste','ysis\x20reque','analyzeZip','ysis\x20faile','content','trim','\x20analysis\x20','30995YFHJDh','info','analysisId','ded','length','ror','analyzeFol','status','ZIP\x20file\x20S','skippedFol','ovided.','h\x20not\x20prov','4588920fFuNYI','ovided','rted.\x0aNumb','\x20requires\x20','derSca','o\x20analyze.','SCA\x20analys','filePathCo','Content','ID:\x20','File\x20paths','search','join','eSca','(((.+)+)+)','Single\x20fil','\x20not\x20provi','folders\x20(','ders','rvice','Unknown\x20er','ath\x20not\x20pr','ided','er:\x20','type','1792218CNXSBG','3353HlRZNt','er\x20of\x20file','Folder\x20pat','10134nVCsWL','not\x20provid','filePath','\x0a\x0aSkipped\x20','failed:','analysisSe','analyzeFil','is\x20request','JHKge','Folder\x20SCA','850704nTZYLQ','NyzHk','message','analysisTy','sis\x20failed','\x0aAnalysis\x20','d:\x20','is\x20has\x20sta','ne\x20file\x20pa','\x20failed:\x20','constructo','Sca','toString','ZIP\x20file\x20p'];a9_0x46e8=function(){return _0x4ad005;};return a9_0x46e8();}function a9_0x140b(_0x518766,_0x3caf60){_0x518766=_0x518766-0x1ed;const _0xc5e89e=a9_0x46e8();let _0x27d719=_0xc5e89e[_0x518766];return _0x27d719;}export class ScaController{[a9_0x127117(0x1fa)+a9_0x127117(0x24e)];constructor(_0xee5587){this['analysisSe'+'rvice']=_0xee5587;}async['analyzeFil'+a9_0x127117(0x248)]({filePath:_0x56437c,zipFileName:_0x20c284}){const _0x10d5e0=a9_0x127117,_0x589e2f={};_0x589e2f[_0x10d5e0(0x220)]=function(_0x486d07,_0x2735b3){return _0x486d07 instanceof _0x2735b3;};const _0x272c53=_0x589e2f;try{if(!_0x56437c||_0x56437c[_0x10d5e0(0x22d)]()[_0x10d5e0(0x233)]===0x0){const _0x1e94d0={};_0x1e94d0['type']=_0x10d5e0(0x21c),_0x1e94d0[_0x10d5e0(0x21c)]='File\x20path\x20'+_0x10d5e0(0x1f6)+'ed.';const _0x79f494={};_0x79f494[_0x10d5e0(0x217)]=_0x10d5e0(0x212)+_0x10d5e0(0x1f6)+'ed';const _0x557776={};return _0x557776[_0x10d5e0(0x22c)]=[_0x1e94d0],_0x557776[_0x10d5e0(0x225)+'Content']=_0x79f494,_0x557776;}logger[_0x10d5e0(0x230)](_0x10d5e0(0x24a)+_0x10d5e0(0x224)+_0x10d5e0(0x229)+_0x10d5e0(0x222)+_0x56437c);const _0xcc6c7=await this['analysisSe'+_0x10d5e0(0x24e)][_0x10d5e0(0x1fb)+_0x10d5e0(0x248)](_0x56437c,_0x20c284),_0x4d6613=_0x10d5e0(0x241)+_0x10d5e0(0x206)+'rted.\x0aFile'+':\x20'+_0x56437c+(_0x10d5e0(0x204)+_0x10d5e0(0x244))+_0xcc6c7[_0x10d5e0(0x231)]+'\x0aStatus:\x20'+_0xcc6c7['status']+(_0x10d5e0(0x204)+'Type:\x20')+_0xcc6c7[_0x10d5e0(0x202)+'pe'],_0x3cfe80={};_0x3cfe80[_0x10d5e0(0x1f0)]=_0x10d5e0(0x21c),_0x3cfe80[_0x10d5e0(0x21c)]=_0x4d6613;const _0xf7eba0={};_0xf7eba0['analysisId']=_0xcc6c7[_0x10d5e0(0x231)],_0xf7eba0[_0x10d5e0(0x236)]=_0xcc6c7[_0x10d5e0(0x236)],_0xf7eba0[_0x10d5e0(0x1f7)]=_0x56437c,_0xf7eba0[_0x10d5e0(0x202)+'pe']=_0xcc6c7[_0x10d5e0(0x202)+'pe'];const _0x533528={};return _0x533528['content']=[_0x3cfe80],_0x533528[_0x10d5e0(0x225)+_0x10d5e0(0x243)]=_0xf7eba0,_0x533528;}catch(_0x46aebb){logger[_0x10d5e0(0x217)](_0x10d5e0(0x24a)+_0x10d5e0(0x224)+_0x10d5e0(0x22b)+'d:',_0x46aebb);const _0xb11911={};return _0xb11911[_0x10d5e0(0x1f0)]='text',_0xb11911[_0x10d5e0(0x21c)]=_0x10d5e0(0x241)+'is\x20request'+_0x10d5e0(0x208)+(_0x46aebb instanceof Error?_0x46aebb[_0x10d5e0(0x201)]:'Unknown\x20er'+'ror'),{'content':[_0xb11911],'structuredContent':{'error':_0x272c53[_0x10d5e0(0x220)](_0x46aebb,Error)?_0x46aebb[_0x10d5e0(0x201)]:_0x10d5e0(0x24f)+_0x10d5e0(0x234)}};}}async[a9_0x127117(0x1fb)+a9_0x127117(0x21d)]({filePaths:_0x13fdc0,zipFileName:_0x46c365}){const _0x21033d=a9_0x127117,_0x4ec22a={};_0x4ec22a[_0x21033d(0x200)]='text';const _0x208200=_0x4ec22a;try{if(!_0x13fdc0||_0x13fdc0[_0x21033d(0x233)]===0x0){const _0x2b0528={};_0x2b0528[_0x21033d(0x1f0)]=_0x21033d(0x21c),_0x2b0528[_0x21033d(0x21c)]='No\x20files\x20t'+_0x21033d(0x240)+'\x20The\x20fileP'+_0x21033d(0x214)+_0x21033d(0x23e)+_0x21033d(0x226)+_0x21033d(0x207)+_0x21033d(0x219);const _0x270092={};_0x270092['error']=_0x21033d(0x245)+_0x21033d(0x24b)+_0x21033d(0x232);const _0x76df66={};return _0x76df66[_0x21033d(0x22c)]=[_0x2b0528],_0x76df66[_0x21033d(0x225)+_0x21033d(0x243)]=_0x270092,_0x76df66;}logger[_0x21033d(0x230)]('Multi-file'+_0x21033d(0x210)+_0x21033d(0x223)+'ted:\x20'+_0x13fdc0['length']+('\x20file\x20path'+'s'));const _0x201fdb=await this[_0x21033d(0x1fa)+'rvice'][_0x21033d(0x1fb)+_0x21033d(0x21d)](_0x13fdc0,_0x46c365),_0x1890d6=_0x21033d(0x241)+_0x21033d(0x206)+_0x21033d(0x23d)+_0x21033d(0x1f3)+_0x21033d(0x218)+_0x13fdc0['length']+(_0x21033d(0x204)+_0x21033d(0x244))+_0x201fdb[_0x21033d(0x231)]+_0x21033d(0x21b)+_0x201fdb[_0x21033d(0x236)]+(_0x21033d(0x204)+_0x21033d(0x21a))+_0x201fdb[_0x21033d(0x202)+'pe'],_0x1ba4cb={};_0x1ba4cb[_0x21033d(0x1f0)]=_0x208200[_0x21033d(0x200)],_0x1ba4cb[_0x21033d(0x21c)]=_0x1890d6;const _0x34173c={};_0x34173c['analysisId']=_0x201fdb[_0x21033d(0x231)],_0x34173c['status']=_0x201fdb[_0x21033d(0x236)],_0x34173c[_0x21033d(0x242)+'unt']=_0x13fdc0[_0x21033d(0x233)],_0x34173c[_0x21033d(0x202)+'pe']=_0x201fdb[_0x21033d(0x202)+'pe'];const _0x45d208={};return _0x45d208[_0x21033d(0x22c)]=[_0x1ba4cb],_0x45d208[_0x21033d(0x225)+'Content']=_0x34173c,_0x45d208;}catch(_0x52868b){logger[_0x21033d(0x217)](_0x21033d(0x21e)+_0x21033d(0x210)+_0x21033d(0x203)+':',_0x52868b);const _0x4d5187={};_0x4d5187[_0x21033d(0x1f0)]=_0x21033d(0x21c),_0x4d5187[_0x21033d(0x21c)]=_0x21033d(0x241)+_0x21033d(0x1fc)+'\x20failed:\x20'+(_0x52868b instanceof Error?_0x52868b[_0x21033d(0x201)]:_0x21033d(0x24f)+'ror');const _0x1fcab8={};_0x1fcab8['error']=_0x52868b instanceof Error?_0x52868b[_0x21033d(0x201)]:'Unknown\x20er'+_0x21033d(0x234);const _0x24bbc0={};return _0x24bbc0[_0x21033d(0x22c)]=[_0x4d5187],_0x24bbc0['structured'+_0x21033d(0x243)]=_0x1fcab8,_0x24bbc0;}}async[a9_0x127117(0x235)+a9_0x127117(0x23f)]({folderPath:_0x40cd20,zipFileName:_0x476a43}){const _0x5857ba=a9_0x127117;try{if(!_0x40cd20||_0x40cd20['trim']()[_0x5857ba(0x233)]===0x0){const _0x96be6d={};_0x96be6d[_0x5857ba(0x1f0)]=_0x5857ba(0x21c),_0x96be6d[_0x5857ba(0x21c)]=_0x5857ba(0x1f4)+_0x5857ba(0x23a)+'ided.';const _0x387fdd={};_0x387fdd[_0x5857ba(0x217)]=_0x5857ba(0x1f4)+_0x5857ba(0x23a)+_0x5857ba(0x1ee);const _0x19ee42={};return _0x19ee42[_0x5857ba(0x22c)]=[_0x96be6d],_0x19ee42[_0x5857ba(0x225)+_0x5857ba(0x243)]=_0x387fdd,_0x19ee42;}logger[_0x5857ba(0x230)]('Folder\x20SCA'+_0x5857ba(0x22e)+'requested:'+'\x20'+_0x40cd20);const _0xc441b9=await this[_0x5857ba(0x1fa)+'rvice']['analyzeFol'+'derSca'](_0x40cd20,_0x476a43);let _0x3147b7=_0x5857ba(0x241)+_0x5857ba(0x206)+_0x5857ba(0x213)+_0x5857ba(0x1ef)+_0x40cd20+('\x0aAnalysis\x20'+_0x5857ba(0x244))+_0xc441b9[_0x5857ba(0x231)]+'\x0aStatus:\x20'+_0xc441b9['status']+(_0x5857ba(0x204)+'Type:\x20')+_0xc441b9[_0x5857ba(0x202)+'pe'];_0xc441b9[_0x5857ba(0x238)+_0x5857ba(0x24d)]&&_0xc441b9[_0x5857ba(0x238)+_0x5857ba(0x24d)][_0x5857ba(0x233)]>0x0&&(_0x3147b7+=_0x5857ba(0x1f8)+_0x5857ba(0x24c)+_0xc441b9['skippedFol'+_0x5857ba(0x24d)][_0x5857ba(0x233)]+_0x5857ba(0x20d)+_0xc441b9['skippedFol'+'ders'][_0x5857ba(0x247)](',\x20'));const _0x3b4e22={};_0x3b4e22[_0x5857ba(0x1f0)]=_0x5857ba(0x21c),_0x3b4e22[_0x5857ba(0x21c)]=_0x3147b7;const _0x4b7ac8={};_0x4b7ac8[_0x5857ba(0x231)]=_0xc441b9[_0x5857ba(0x231)],_0x4b7ac8[_0x5857ba(0x236)]=_0xc441b9['status'],_0x4b7ac8['folderPath']=_0x40cd20,_0x4b7ac8[_0x5857ba(0x202)+'pe']=_0xc441b9[_0x5857ba(0x202)+'pe'],_0x4b7ac8['skippedFol'+_0x5857ba(0x24d)]=_0xc441b9[_0x5857ba(0x238)+'ders'];const _0x5e5fb9={};return _0x5e5fb9['content']=[_0x3b4e22],_0x5e5fb9['structured'+_0x5857ba(0x243)]=_0x4b7ac8,_0x5e5fb9;}catch(_0x35ecce){logger[_0x5857ba(0x217)](_0x5857ba(0x1fe)+_0x5857ba(0x22e)+_0x5857ba(0x1f9),_0x35ecce);const _0x2804b5={};_0x2804b5['type']=_0x5857ba(0x21c),_0x2804b5[_0x5857ba(0x21c)]='SCA\x20analys'+_0x5857ba(0x1fc)+_0x5857ba(0x208)+(_0x35ecce instanceof Error?_0x35ecce['message']:_0x5857ba(0x24f)+_0x5857ba(0x234));const _0x4fffaf={};_0x4fffaf[_0x5857ba(0x217)]=_0x35ecce instanceof Error?_0x35ecce[_0x5857ba(0x201)]:_0x5857ba(0x24f)+'ror';const _0x2144ca={};return _0x2144ca[_0x5857ba(0x22c)]=[_0x2804b5],_0x2144ca[_0x5857ba(0x225)+'Content']=_0x4fffaf,_0x2144ca;}}async[a9_0x127117(0x22a)+a9_0x127117(0x20a)]({zipFilePath:_0x59aad2,zipFileName:_0x4c5864}){const _0x25a9cf=a9_0x127117,_0x1f8e40={};_0x1f8e40[_0x25a9cf(0x1fd)]='text';const _0x262048=_0x1f8e40;try{if(!_0x59aad2||_0x59aad2[_0x25a9cf(0x22d)]()[_0x25a9cf(0x233)]===0x0){const _0x208417={};_0x208417[_0x25a9cf(0x1f0)]='text',_0x208417[_0x25a9cf(0x21c)]='ZIP\x20file\x20p'+'ath\x20not\x20pr'+_0x25a9cf(0x239);const _0x1ce8a3={};_0x1ce8a3[_0x25a9cf(0x217)]=_0x25a9cf(0x20c)+_0x25a9cf(0x1ed)+_0x25a9cf(0x23c);const _0x155617={};return _0x155617['content']=[_0x208417],_0x155617[_0x25a9cf(0x225)+_0x25a9cf(0x243)]=_0x1ce8a3,_0x155617;}logger['info'](_0x25a9cf(0x237)+_0x25a9cf(0x211)+_0x25a9cf(0x228)+_0x25a9cf(0x205)+_0x59aad2);const _0x2584a9=await this[_0x25a9cf(0x1fa)+_0x25a9cf(0x24e)][_0x25a9cf(0x22a)+_0x25a9cf(0x20a)](_0x59aad2,_0x4c5864),_0xf2dce3=_0x25a9cf(0x241)+_0x25a9cf(0x206)+'rted.\x0aZIP\x20'+_0x25a9cf(0x227)+_0x59aad2+(_0x25a9cf(0x204)+_0x25a9cf(0x244))+_0x2584a9[_0x25a9cf(0x231)]+_0x25a9cf(0x21b)+_0x2584a9['status']+(_0x25a9cf(0x204)+'Type:\x20')+_0x2584a9['analysisTy'+'pe'],_0x527d34={};_0x527d34[_0x25a9cf(0x1f0)]=_0x25a9cf(0x21c),_0x527d34[_0x25a9cf(0x21c)]=_0xf2dce3;const _0x5d4e3d={};_0x5d4e3d[_0x25a9cf(0x231)]=_0x2584a9['analysisId'],_0x5d4e3d[_0x25a9cf(0x236)]=_0x2584a9[_0x25a9cf(0x236)],_0x5d4e3d[_0x25a9cf(0x215)+'h']=_0x59aad2,_0x5d4e3d[_0x25a9cf(0x202)+'pe']=_0x2584a9[_0x25a9cf(0x202)+'pe'];const _0x5268c9={};return _0x5268c9['content']=[_0x527d34],_0x5268c9[_0x25a9cf(0x225)+_0x25a9cf(0x243)]=_0x5d4e3d,_0x5268c9;}catch(_0x510218){logger[_0x25a9cf(0x217)](_0x25a9cf(0x237)+_0x25a9cf(0x211)+_0x25a9cf(0x221),_0x510218);const _0x2e2e27={};_0x2e2e27[_0x25a9cf(0x1f0)]=_0x262048['JHKge'],_0x2e2e27['text']=_0x25a9cf(0x241)+_0x25a9cf(0x1fc)+_0x25a9cf(0x208)+(_0x510218 instanceof Error?_0x510218[_0x25a9cf(0x201)]:_0x25a9cf(0x24f)+_0x25a9cf(0x234));const _0x29ce0a={};_0x29ce0a[_0x25a9cf(0x217)]=_0x510218 instanceof Error?_0x510218[_0x25a9cf(0x201)]:'Unknown\x20er'+_0x25a9cf(0x234);const _0x453101={};return _0x453101['content']=[_0x2e2e27],_0x453101[_0x25a9cf(0x225)+'Content']=_0x29ce0a,_0x453101;}}}
1
+ const a9_0x109211=a9_0x1ea1;(function(_0x241168,_0x15084f){const _0x590a08=a9_0x1ea1,_0x344a62=_0x241168();while(!![]){try{const _0x38f018=parseInt(_0x590a08(0x1b9))/0x1*(parseInt(_0x590a08(0x1f2))/0x2)+parseInt(_0x590a08(0x1db))/0x3*(-parseInt(_0x590a08(0x1d1))/0x4)+parseInt(_0x590a08(0x204))/0x5*(-parseInt(_0x590a08(0x1cb))/0x6)+parseInt(_0x590a08(0x206))/0x7*(-parseInt(_0x590a08(0x1eb))/0x8)+parseInt(_0x590a08(0x21a))/0x9+parseInt(_0x590a08(0x210))/0xa*(parseInt(_0x590a08(0x1ee))/0xb)+-parseInt(_0x590a08(0x1c7))/0xc;if(_0x38f018===_0x15084f)break;else _0x344a62['push'](_0x344a62['shift']());}catch(_0x28be31){_0x344a62['push'](_0x344a62['shift']());}}}(a9_0x3496,0xcf8e5));function a9_0x3496(){const _0x2e9b3b=['28204prIabR','Content','Type:\x20','join','requested:','\x0aStatus:\x20','er:\x20','qJBsE','Folder\x20SCA','s\x20failed:','249WQoXtz','rted.\x0aZIP\x20','ided.','is\x20has\x20sta','analyzeFol','analyzeFil','rted.\x0aFold','is\x20request','filePathCo','constructo','SCA\x20analys','text','sis\x20reques','ror','h\x20not\x20prov','analysisTy','8Vvrrca','\x20file\x20path','analysisId','14571249DMHOwz','ted:\x20','ZIP\x20file\x20S','ID:\x20','50axpsEE','e\x20SCA\x20anal','CA\x20analysi','\x20analysis\x20','rted.\x0aNumb','folders\x20(','ed.','apply','esSca','File\x20path\x20','rvice','not\x20provid','tWTPO','unt','aths\x20array','Unknown\x20er','ne\x20file\x20pa','GHWkF','2570wwoJWJ','ath\x20not\x20pr','808955BHyTiC','\x20failed:\x20','):\x20','ZIP\x20file\x20p','folderPath','ided','(((.+)+)+)','zipFilePat','ders','sis\x20failed','10DclArN','message','Sca','info','length','analysisSe','jLrXv','failed:','Single\x20fil','\x0aAnalysis\x20','8700345NySOxh','skippedFol','koKQk','structured','s\x20requeste','content','58456yNsJQw','type','error','NqtDj','th.','\x20paths:\x20','search','ysis\x20reque','tduwj','analyzeZip','er\x20of\x20file','at\x20least\x20o','Folder\x20pat','ded','24577572wxNmZi','filePath','d:\x20','status','1794iHcXEw','\x20The\x20fileP','trim','File\x20paths','\x20SCA\x20analy','Multi-file'];a9_0x3496=function(){return _0x2e9b3b;};return a9_0x3496();}const a9_0xd38614=(function(){let _0x437b78=!![];return function(_0x299342,_0x2d3828){const _0x35f406=_0x437b78?function(){const _0x1adfd8=a9_0x1ea1;if(_0x2d3828){const _0x3786aa=_0x2d3828[_0x1adfd8(0x1f9)](_0x299342,arguments);return _0x2d3828=null,_0x3786aa;}}:function(){};return _0x437b78=![],_0x35f406;};}()),a9_0x4acbb7=a9_0xd38614(this,function(){const _0x5ba247=a9_0x1ea1,_0x315378={};_0x315378[_0x5ba247(0x1bc)]='(((.+)+)+)'+'+$';const _0x2b80c7=_0x315378;return a9_0x4acbb7['toString']()[_0x5ba247(0x1bf)](_0x2b80c7[_0x5ba247(0x1bc)])['toString']()[_0x5ba247(0x1e4)+'r'](a9_0x4acbb7)['search'](_0x5ba247(0x20c)+'+$');});function a9_0x1ea1(_0x3a20ee,_0x2fd810){_0x3a20ee=_0x3a20ee-0x1b5;const _0x488fef=a9_0x3496();let _0x4acbb7=_0x488fef[_0x3a20ee];return _0x4acbb7;}a9_0x4acbb7();import{logger}from'../utils/logger.js';export class ScaController{[a9_0x109211(0x215)+'rvice'];constructor(_0x14fe2a){const _0x51f245=a9_0x109211;this[_0x51f245(0x215)+_0x51f245(0x1fc)]=_0x14fe2a;}async[a9_0x109211(0x1e0)+'eSca']({filePath:_0x272e35,zipFileName:_0x3e9d07,memo:_0x2d6130}){const _0x34d1e5=a9_0x109211,_0x335179={};_0x335179['qJBsE']='Single\x20fil'+'e\x20SCA\x20anal'+'ysis\x20faile'+'d:';const _0x404117=_0x335179;try{if(!_0x272e35||_0x272e35[_0x34d1e5(0x1cd)]()[_0x34d1e5(0x214)]===0x0){const _0xcd3b02={};_0xcd3b02[_0x34d1e5(0x1ba)]=_0x34d1e5(0x1e6),_0xcd3b02['text']=_0x34d1e5(0x1fb)+_0x34d1e5(0x1fd)+_0x34d1e5(0x1f8);const _0x3e1fe0={};_0x3e1fe0['error']=_0x34d1e5(0x1fb)+_0x34d1e5(0x1fd)+'ed';const _0x3d4c85={};return _0x3d4c85[_0x34d1e5(0x1b8)]=[_0xcd3b02],_0x3d4c85[_0x34d1e5(0x1b6)+'Content']=_0x3e1fe0,_0x3d4c85;}logger[_0x34d1e5(0x213)](_0x34d1e5(0x218)+_0x34d1e5(0x1f3)+_0x34d1e5(0x1c0)+'sted:\x20'+_0x272e35);const _0x182ed3=await this[_0x34d1e5(0x215)+_0x34d1e5(0x1fc)][_0x34d1e5(0x1e0)+'eSca'](_0x272e35,_0x3e9d07,_0x2d6130),_0x47bfb4=_0x34d1e5(0x1e5)+_0x34d1e5(0x1de)+'rted.\x0aFile'+':\x20'+_0x272e35+(_0x34d1e5(0x219)+_0x34d1e5(0x1f1))+_0x182ed3[_0x34d1e5(0x1ed)]+_0x34d1e5(0x1d6)+_0x182ed3['status']+('\x0aAnalysis\x20'+_0x34d1e5(0x1d3))+_0x182ed3[_0x34d1e5(0x1ea)+'pe'],_0x373e9a={};_0x373e9a['type']=_0x34d1e5(0x1e6),_0x373e9a['text']=_0x47bfb4;const _0x229009={};_0x229009[_0x34d1e5(0x1ed)]=_0x182ed3['analysisId'],_0x229009[_0x34d1e5(0x1ca)]=_0x182ed3[_0x34d1e5(0x1ca)],_0x229009[_0x34d1e5(0x1c8)]=_0x272e35,_0x229009[_0x34d1e5(0x1ea)+'pe']=_0x182ed3[_0x34d1e5(0x1ea)+'pe'];const _0x54f7bd={};return _0x54f7bd[_0x34d1e5(0x1b8)]=[_0x373e9a],_0x54f7bd['structured'+_0x34d1e5(0x1d2)]=_0x229009,_0x54f7bd;}catch(_0x1081e8){logger[_0x34d1e5(0x1bb)](_0x404117[_0x34d1e5(0x1d8)],_0x1081e8);const _0x13b101={};_0x13b101[_0x34d1e5(0x1ba)]=_0x34d1e5(0x1e6),_0x13b101[_0x34d1e5(0x1e6)]=_0x34d1e5(0x1e5)+_0x34d1e5(0x1e2)+_0x34d1e5(0x207)+(_0x1081e8 instanceof Error?_0x1081e8['message']:_0x34d1e5(0x201)+_0x34d1e5(0x1e8));const _0x4aa22b={};_0x4aa22b['error']=_0x1081e8 instanceof Error?_0x1081e8['message']:_0x34d1e5(0x201)+_0x34d1e5(0x1e8);const _0x204e26={};return _0x204e26[_0x34d1e5(0x1b8)]=[_0x13b101],_0x204e26[_0x34d1e5(0x1b6)+_0x34d1e5(0x1d2)]=_0x4aa22b,_0x204e26;}}async[a9_0x109211(0x1e0)+a9_0x109211(0x1fa)]({filePaths:_0x3b456c,zipFileName:_0x3010d3,memo:_0x1adedb}){const _0x38e9a0=a9_0x109211,_0x239554={};_0x239554[_0x38e9a0(0x1fe)]=_0x38e9a0(0x1e6),_0x239554[_0x38e9a0(0x1b5)]=function(_0x3a4a4e,_0x2e596d){return _0x3a4a4e instanceof _0x2e596d;};const _0x5b8db3=_0x239554;try{if(!_0x3b456c||_0x3b456c['length']===0x0){const _0x3c9fbf={};_0x3c9fbf[_0x38e9a0(0x1ba)]=_0x5b8db3['tWTPO'],_0x3c9fbf[_0x38e9a0(0x1e6)]='No\x20files\x20t'+'o\x20analyze.'+_0x38e9a0(0x1cc)+_0x38e9a0(0x200)+'\x20requires\x20'+_0x38e9a0(0x1c4)+_0x38e9a0(0x202)+_0x38e9a0(0x1bd);const _0x3b5e81={};_0x3b5e81[_0x38e9a0(0x1bb)]=_0x38e9a0(0x1ce)+'\x20not\x20provi'+_0x38e9a0(0x1c6);const _0xfd8d81={};return _0xfd8d81[_0x38e9a0(0x1b8)]=[_0x3c9fbf],_0xfd8d81[_0x38e9a0(0x1b6)+_0x38e9a0(0x1d2)]=_0x3b5e81,_0xfd8d81;}logger[_0x38e9a0(0x213)](_0x38e9a0(0x1d0)+_0x38e9a0(0x1cf)+_0x38e9a0(0x1e7)+_0x38e9a0(0x1ef)+_0x3b456c[_0x38e9a0(0x214)]+(_0x38e9a0(0x1ec)+'s'));const _0x9a54d0=await this[_0x38e9a0(0x215)+_0x38e9a0(0x1fc)]['analyzeFil'+_0x38e9a0(0x1fa)](_0x3b456c,_0x3010d3,_0x1adedb),_0x3922d6='SCA\x20analys'+_0x38e9a0(0x1de)+_0x38e9a0(0x1f6)+_0x38e9a0(0x1c3)+_0x38e9a0(0x1be)+_0x3b456c[_0x38e9a0(0x214)]+(_0x38e9a0(0x219)+_0x38e9a0(0x1f1))+_0x9a54d0[_0x38e9a0(0x1ed)]+'\x0aStatus:\x20'+_0x9a54d0[_0x38e9a0(0x1ca)]+(_0x38e9a0(0x219)+'Type:\x20')+_0x9a54d0[_0x38e9a0(0x1ea)+'pe'],_0x2db332={};_0x2db332[_0x38e9a0(0x1ba)]=_0x38e9a0(0x1e6),_0x2db332[_0x38e9a0(0x1e6)]=_0x3922d6;const _0x29a93e={};_0x29a93e[_0x38e9a0(0x1ed)]=_0x9a54d0['analysisId'],_0x29a93e['status']=_0x9a54d0[_0x38e9a0(0x1ca)],_0x29a93e[_0x38e9a0(0x1e3)+_0x38e9a0(0x1ff)]=_0x3b456c[_0x38e9a0(0x214)],_0x29a93e['analysisTy'+'pe']=_0x9a54d0['analysisTy'+'pe'];const _0x4f7a91={};return _0x4f7a91['content']=[_0x2db332],_0x4f7a91[_0x38e9a0(0x1b6)+_0x38e9a0(0x1d2)]=_0x29a93e,_0x4f7a91;}catch(_0x30f33b){logger[_0x38e9a0(0x1bb)](_0x38e9a0(0x1d0)+_0x38e9a0(0x1cf)+_0x38e9a0(0x20f)+':',_0x30f33b);const _0x419b15={};return _0x419b15['type']=_0x38e9a0(0x1e6),_0x419b15['text']=_0x38e9a0(0x1e5)+'is\x20request'+_0x38e9a0(0x207)+(_0x30f33b instanceof Error?_0x30f33b[_0x38e9a0(0x211)]:_0x38e9a0(0x201)+_0x38e9a0(0x1e8)),{'content':[_0x419b15],'structuredContent':{'error':_0x5b8db3[_0x38e9a0(0x1b5)](_0x30f33b,Error)?_0x30f33b[_0x38e9a0(0x211)]:_0x38e9a0(0x201)+'ror'}};}}async[a9_0x109211(0x1df)+'derSca']({folderPath:_0x4868aa,zipFileName:_0x54c9bb,memo:_0x7aad66}){const _0x3b7814=a9_0x109211,_0x46ed5c={};_0x46ed5c['GHWkF']=_0x3b7814(0x1d9)+_0x3b7814(0x1f5)+_0x3b7814(0x217),_0x46ed5c[_0x3b7814(0x1c1)]=function(_0x5aff72,_0x51ffcd){return _0x5aff72 instanceof _0x51ffcd;};const _0x4897f6=_0x46ed5c;try{if(!_0x4868aa||_0x4868aa[_0x3b7814(0x1cd)]()['length']===0x0){const _0x2b27a7={};_0x2b27a7['type']=_0x3b7814(0x1e6),_0x2b27a7[_0x3b7814(0x1e6)]=_0x3b7814(0x1c5)+'h\x20not\x20prov'+_0x3b7814(0x1dd);const _0x5f126f={};_0x5f126f['error']='Folder\x20pat'+_0x3b7814(0x1e9)+_0x3b7814(0x20b);const _0x55e706={};return _0x55e706['content']=[_0x2b27a7],_0x55e706[_0x3b7814(0x1b6)+_0x3b7814(0x1d2)]=_0x5f126f,_0x55e706;}logger[_0x3b7814(0x213)](_0x3b7814(0x1d9)+'\x20analysis\x20'+_0x3b7814(0x1d5)+'\x20'+_0x4868aa);const _0x30f67b=await this['analysisSe'+'rvice'][_0x3b7814(0x1df)+'derSca'](_0x4868aa,_0x54c9bb,_0x7aad66);let _0x37bc6d=_0x3b7814(0x1e5)+_0x3b7814(0x1de)+_0x3b7814(0x1e1)+_0x3b7814(0x1d7)+_0x4868aa+(_0x3b7814(0x219)+_0x3b7814(0x1f1))+_0x30f67b['analysisId']+_0x3b7814(0x1d6)+_0x30f67b[_0x3b7814(0x1ca)]+(_0x3b7814(0x219)+_0x3b7814(0x1d3))+_0x30f67b['analysisTy'+'pe'];_0x30f67b[_0x3b7814(0x21b)+_0x3b7814(0x20e)]&&_0x30f67b[_0x3b7814(0x21b)+_0x3b7814(0x20e)][_0x3b7814(0x214)]>0x0&&(_0x37bc6d+='\x0a\x0aSkipped\x20'+_0x3b7814(0x1f7)+_0x30f67b[_0x3b7814(0x21b)+'ders'][_0x3b7814(0x214)]+_0x3b7814(0x208)+_0x30f67b['skippedFol'+_0x3b7814(0x20e)][_0x3b7814(0x1d4)](',\x20'));const _0x493a3a={};_0x493a3a['type']='text',_0x493a3a['text']=_0x37bc6d;const _0x146954={};_0x146954[_0x3b7814(0x1ed)]=_0x30f67b[_0x3b7814(0x1ed)],_0x146954['status']=_0x30f67b[_0x3b7814(0x1ca)],_0x146954[_0x3b7814(0x20a)]=_0x4868aa,_0x146954['analysisTy'+'pe']=_0x30f67b[_0x3b7814(0x1ea)+'pe'],_0x146954[_0x3b7814(0x21b)+_0x3b7814(0x20e)]=_0x30f67b['skippedFol'+_0x3b7814(0x20e)];const _0x3a90c3={};return _0x3a90c3[_0x3b7814(0x1b8)]=[_0x493a3a],_0x3a90c3[_0x3b7814(0x1b6)+_0x3b7814(0x1d2)]=_0x146954,_0x3a90c3;}catch(_0x149b44){logger[_0x3b7814(0x1bb)](_0x4897f6[_0x3b7814(0x203)],_0x149b44);const _0xe31c0a={};return _0xe31c0a[_0x3b7814(0x1ba)]=_0x3b7814(0x1e6),_0xe31c0a[_0x3b7814(0x1e6)]=_0x3b7814(0x1e5)+'is\x20request'+'\x20failed:\x20'+(_0x149b44 instanceof Error?_0x149b44[_0x3b7814(0x211)]:_0x3b7814(0x201)+_0x3b7814(0x1e8)),{'content':[_0xe31c0a],'structuredContent':{'error':_0x4897f6['tduwj'](_0x149b44,Error)?_0x149b44[_0x3b7814(0x211)]:_0x3b7814(0x201)+'ror'}};}}async['analyzeZip'+a9_0x109211(0x212)]({zipFilePath:_0x4d4105,zipFileName:_0x499088,memo:_0x45115a}){const _0x1a67b4=a9_0x109211,_0x24f892={};_0x24f892['SDztf']=_0x1a67b4(0x1f0)+'CA\x20analysi'+_0x1a67b4(0x1da),_0x24f892['jLrXv']=_0x1a67b4(0x201)+_0x1a67b4(0x1e8);const _0x4eab1e=_0x24f892;try{if(!_0x4d4105||_0x4d4105[_0x1a67b4(0x1cd)]()[_0x1a67b4(0x214)]===0x0){const _0x3d11ba={};_0x3d11ba['type']=_0x1a67b4(0x1e6),_0x3d11ba[_0x1a67b4(0x1e6)]='ZIP\x20file\x20p'+_0x1a67b4(0x205)+'ovided.';const _0x11e192={};_0x11e192[_0x1a67b4(0x1bb)]=_0x1a67b4(0x209)+_0x1a67b4(0x205)+'ovided';const _0x12ded8={};return _0x12ded8['content']=[_0x3d11ba],_0x12ded8['structured'+_0x1a67b4(0x1d2)]=_0x11e192,_0x12ded8;}logger['info'](_0x1a67b4(0x1f0)+_0x1a67b4(0x1f4)+_0x1a67b4(0x1b7)+_0x1a67b4(0x1c9)+_0x4d4105);const _0x77fa6c=await this[_0x1a67b4(0x215)+'rvice'][_0x1a67b4(0x1c2)+'Sca'](_0x4d4105,_0x499088,_0x45115a),_0x3fdabb=_0x1a67b4(0x1e5)+_0x1a67b4(0x1de)+_0x1a67b4(0x1dc)+'File:\x20'+_0x4d4105+(_0x1a67b4(0x219)+_0x1a67b4(0x1f1))+_0x77fa6c['analysisId']+_0x1a67b4(0x1d6)+_0x77fa6c[_0x1a67b4(0x1ca)]+(_0x1a67b4(0x219)+_0x1a67b4(0x1d3))+_0x77fa6c[_0x1a67b4(0x1ea)+'pe'],_0x1d8861={};_0x1d8861['type']=_0x1a67b4(0x1e6),_0x1d8861[_0x1a67b4(0x1e6)]=_0x3fdabb;const _0x6b4e8e={};_0x6b4e8e['analysisId']=_0x77fa6c['analysisId'],_0x6b4e8e['status']=_0x77fa6c[_0x1a67b4(0x1ca)],_0x6b4e8e[_0x1a67b4(0x20d)+'h']=_0x4d4105,_0x6b4e8e['analysisTy'+'pe']=_0x77fa6c[_0x1a67b4(0x1ea)+'pe'];const _0x51d489={};return _0x51d489[_0x1a67b4(0x1b8)]=[_0x1d8861],_0x51d489[_0x1a67b4(0x1b6)+'Content']=_0x6b4e8e,_0x51d489;}catch(_0x56ec3d){logger['error'](_0x4eab1e['SDztf'],_0x56ec3d);const _0x3bc5cb={};_0x3bc5cb[_0x1a67b4(0x1ba)]=_0x1a67b4(0x1e6),_0x3bc5cb[_0x1a67b4(0x1e6)]='SCA\x20analys'+'is\x20request'+_0x1a67b4(0x207)+(_0x56ec3d instanceof Error?_0x56ec3d[_0x1a67b4(0x211)]:_0x1a67b4(0x201)+_0x1a67b4(0x1e8));const _0x2b7c7b={};_0x2b7c7b[_0x1a67b4(0x1bb)]=_0x56ec3d instanceof Error?_0x56ec3d[_0x1a67b4(0x211)]:_0x4eab1e[_0x1a67b4(0x216)];const _0x350dd6={};return _0x350dd6[_0x1a67b4(0x1b8)]=[_0x3bc5cb],_0x350dd6[_0x1a67b4(0x1b6)+_0x1a67b4(0x1d2)]=_0x2b7c7b,_0x350dd6;}}}
@@ -1 +1 @@
1
- const a10_0x2d6b3d=a10_0x1cb8;(function(_0x26c151,_0x4cb85d){const _0x5a2c1b=a10_0x1cb8,_0x5f9d1d=_0x26c151();while(!![]){try{const _0x4d77f8=-parseInt(_0x5a2c1b(0xa1))/0x1+-parseInt(_0x5a2c1b(0x7d))/0x2*(-parseInt(_0x5a2c1b(0x8b))/0x3)+parseInt(_0x5a2c1b(0x77))/0x4+-parseInt(_0x5a2c1b(0x9b))/0x5+parseInt(_0x5a2c1b(0x85))/0x6*(parseInt(_0x5a2c1b(0x9a))/0x7)+-parseInt(_0x5a2c1b(0x7e))/0x8+parseInt(_0x5a2c1b(0x7c))/0x9;if(_0x4d77f8===_0x4cb85d)break;else _0x5f9d1d['push'](_0x5f9d1d['shift']());}catch(_0xfcc472){_0x5f9d1d['push'](_0x5f9d1d['shift']());}}}(a10_0x1526,0x462c6));function a10_0x1cb8(_0x83d6bd,_0x4458a0){_0x83d6bd=_0x83d6bd-0x6c;const _0x4dfd31=a10_0x1526();let _0xe86eca=_0x4dfd31[_0x83d6bd];return _0xe86eca;}const a10_0x26251f=(function(){let _0x5382e6=!![];return function(_0x377dfa,_0x2851a1){const _0x2e42cc=_0x5382e6?function(){const _0x5f38fe=a10_0x1cb8;if(_0x2851a1){const _0x517618=_0x2851a1[_0x5f38fe(0x80)](_0x377dfa,arguments);return _0x2851a1=null,_0x517618;}}:function(){};return _0x5382e6=![],_0x2e42cc;};}()),a10_0xe86eca=a10_0x26251f(this,function(){const _0x27edc9=a10_0x1cb8;return a10_0xe86eca['toString']()[_0x27edc9(0x91)](_0x27edc9(0x8a)+'+$')[_0x27edc9(0x6d)]()[_0x27edc9(0x8c)+'r'](a10_0xe86eca)[_0x27edc9(0x91)](_0x27edc9(0x8a)+'+$');});a10_0xe86eca();function a10_0x1526(){const _0x1f163d=['search','Secure\x20cod','\x20of\x20','error','iff)\x0a```di','info','secureCode','Code\x20Gener','generate\x20s','7RRcMiw','2732310XinvdL','\x0a```\x0a\x0a##\x20S','diff','ation\x20Resu','analysisSe','structured','370684PXHNCt','ror','ff\x0a','isError','toString','length','wing\x20','```java\x0a','text','Brief','omAnalysis','rjByC','cure\x20Code\x0a','Failed\x20to\x20','459476tFRFSz','\x0a#\x20Secure\x20','rvice','message','content','3870891ayXUNV','408822hvKtjF','2152296ECTHRY','ecure\x20Code','apply','Content','generateSe','ecure\x20code','XqWWj','3118938nckBVo','cureCodeFr','on\x20request','type','Unknown\x20er','(((.+)+)+)','6XiLDqt','constructo','\x0a\x0a##\x20Code\x20','\x20character','ed:\x20','\x0a```\x0a\x20\x20\x20\x20\x20'];a10_0x1526=function(){return _0x1f163d;};return a10_0x1526();}import{logger}from'../utils/logger.js';export class SecurityController{[a10_0x2d6b3d(0x9f)+a10_0x2d6b3d(0x79)];constructor(_0x17b31d){const _0x25575d=a10_0x2d6b3d;this[_0x25575d(0x9f)+'rvice']=_0x17b31d;}async[a10_0x2d6b3d(0x82)+'cureCode']({analysisId:_0x359a17,fileContent:_0x17462a}){const _0x3b4ba3=a10_0x2d6b3d,_0x4f7838={'XqWWj':function(_0x22b716,_0x24d2ce,_0x458dc3){return _0x22b716(_0x24d2ce,_0x458dc3);},'rjByC':_0x3b4ba3(0x71)};try{logger[_0x3b4ba3(0x96)](_0x3b4ba3(0x92)+'e\x20generati'+_0x3b4ba3(0x87)+_0x3b4ba3(0x8f)+_0x359a17);const _0xc914f4=await this[_0x3b4ba3(0x9f)+_0x3b4ba3(0x79)]['generateSe'+_0x3b4ba3(0x86)+_0x3b4ba3(0x73)](_0x359a17,_0x17462a),_0x311328=0x7a120,_0x25fc32=(_0xad72df,_0x1f0c63)=>{const _0x568a0b=_0x3b4ba3;if(_0xad72df[_0x568a0b(0x6e)]<=_0x1f0c63)return _0xad72df;return _0xad72df['substring'](0x0,_0x1f0c63)+('\x0a\x0a...\x20(Sho'+_0x568a0b(0x6f)+_0x1f0c63+_0x568a0b(0x93)+_0xad72df[_0x568a0b(0x6e)]+(_0x568a0b(0x8e)+'s)'));},_0x5cf354=(_0x3b4ba3(0x78)+_0x3b4ba3(0x98)+_0x3b4ba3(0x9e)+'lts\x0a\x0a##\x20Se'+_0x3b4ba3(0x75)+_0x3b4ba3(0x70)+_0x25fc32(_0xc914f4[_0x3b4ba3(0x97)],_0x311328)+(_0x3b4ba3(0x9c)+_0x3b4ba3(0x7f)+'\x20Briefing\x0a')+_0x25fc32(_0xc914f4[_0x3b4ba3(0x97)+'Brief'],_0x311328)+(_0x3b4ba3(0x8d)+'Changes\x20(D'+_0x3b4ba3(0x95)+_0x3b4ba3(0xa3))+_0x25fc32(_0xc914f4[_0x3b4ba3(0x9d)],_0x311328)+(_0x3b4ba3(0x90)+'\x20'))['trim'](),_0x1b524b={'analysisId':_0x359a17,'secureCode':_0x4f7838[_0x3b4ba3(0x84)](_0x25fc32,_0xc914f4[_0x3b4ba3(0x97)],_0x311328),'secureCodeBrief':_0x25fc32(_0xc914f4['secureCode'+_0x3b4ba3(0x72)],_0x311328),'diff':_0x25fc32(_0xc914f4[_0x3b4ba3(0x9d)],_0x311328)},_0x584290={};_0x584290[_0x3b4ba3(0x88)]=_0x3b4ba3(0x71),_0x584290['text']=_0x5cf354;const _0x53b498={};return _0x53b498[_0x3b4ba3(0x7b)]=[_0x584290],_0x53b498[_0x3b4ba3(0xa0)+_0x3b4ba3(0x81)]=_0x1b524b,_0x53b498;}catch(_0x3873b5){logger[_0x3b4ba3(0x94)](_0x3b4ba3(0x76)+_0x3b4ba3(0x99)+_0x3b4ba3(0x83)+':',_0x3873b5);const _0x5596ba=_0x3873b5 instanceof Error?_0x3873b5[_0x3b4ba3(0x7a)]:_0x3b4ba3(0x89)+_0x3b4ba3(0xa2),_0x4fbea2={};_0x4fbea2[_0x3b4ba3(0x88)]=_0x4f7838[_0x3b4ba3(0x74)],_0x4fbea2[_0x3b4ba3(0x71)]=_0x3b4ba3(0x76)+'generate\x20s'+_0x3b4ba3(0x83)+':\x20'+_0x5596ba;const _0x585a27={};_0x585a27[_0x3b4ba3(0x94)]=_0x5596ba;const _0x42c48a={};return _0x42c48a['content']=[_0x4fbea2],_0x42c48a[_0x3b4ba3(0xa0)+_0x3b4ba3(0x81)]=_0x585a27,_0x42c48a[_0x3b4ba3(0x6c)]=!![],_0x42c48a;}}}
1
+ const a10_0x1a0b53=a10_0x2d05;(function(_0x2816a5,_0x30231c){const _0x57e18d=a10_0x2d05,_0x3ac68a=_0x2816a5();while(!![]){try{const _0xb79176=parseInt(_0x57e18d(0x1aa))/0x1*(-parseInt(_0x57e18d(0x19d))/0x2)+parseInt(_0x57e18d(0x1c0))/0x3+parseInt(_0x57e18d(0x1af))/0x4*(parseInt(_0x57e18d(0x1a5))/0x5)+parseInt(_0x57e18d(0x1bd))/0x6+parseInt(_0x57e18d(0x1b1))/0x7*(parseInt(_0x57e18d(0x1a4))/0x8)+-parseInt(_0x57e18d(0x1a0))/0x9*(parseInt(_0x57e18d(0x1a1))/0xa)+-parseInt(_0x57e18d(0x1a3))/0xb;if(_0xb79176===_0x30231c)break;else _0x3ac68a['push'](_0x3ac68a['shift']());}catch(_0x2bbcc2){_0x3ac68a['push'](_0x3ac68a['shift']());}}}(a10_0x13c4,0x66f7f));const a10_0x79e974=(function(){let _0x52c311=!![];return function(_0x22399b,_0x96ce35){const _0x54ea2f=_0x52c311?function(){const _0xa86239=a10_0x2d05;if(_0x96ce35){const _0x3f2c58=_0x96ce35[_0xa86239(0x1be)](_0x22399b,arguments);return _0x96ce35=null,_0x3f2c58;}}:function(){};return _0x52c311=![],_0x54ea2f;};}()),a10_0x33b2f3=a10_0x79e974(this,function(){const _0x5c9a5b=a10_0x2d05,_0x2fd939={};_0x2fd939['AXsuk']=_0x5c9a5b(0x19f)+'+$';const _0x146b56=_0x2fd939;return a10_0x33b2f3[_0x5c9a5b(0x194)]()[_0x5c9a5b(0x192)]('(((.+)+)+)'+'+$')['toString']()[_0x5c9a5b(0x1bf)+'r'](a10_0x33b2f3)[_0x5c9a5b(0x192)](_0x146b56['AXsuk']);});function a10_0x2d05(_0x4dcb25,_0x5bb3c0){_0x4dcb25=_0x4dcb25-0x192;const _0x2bf2f6=a10_0x13c4();let _0x33b2f3=_0x2bf2f6[_0x4dcb25];return _0x33b2f3;}function a10_0x13c4(){const _0x359669=['generate\x20s','Failed\x20to\x20','cureCode','e\x20generati','4139ObWoyk','\x20of\x20','Secure\x20cod','trim','generateSe','99764ppOvou','isError','7NnbElR','info','Content','message','content','diff','secureCode','ror','Changes\x20(D','substring','structured','analysisSe','3265512rehuaK','apply','constructo','1759380EQZjQM','\x0a\x0a...\x20(Sho','length','search','error','toString','iff)\x0a```di','Unknown\x20er','text','```java\x0a','ff\x0a','rvice','\x0a```\x0a\x0a##\x20S','on\x20request','406QBXxxR','ecure\x20Code','(((.+)+)+)','197613siIwIh','100NKOkyb','\x20character','8757254RAmTEX','2990216ZUWCny','155VFeMkX'];a10_0x13c4=function(){return _0x359669;};return a10_0x13c4();}a10_0x33b2f3();import{logger}from'../utils/logger.js';export class SecurityController{[a10_0x1a0b53(0x1bc)+'rvice'];constructor(_0x2f95fb){const _0x320d68=a10_0x1a0b53;this[_0x320d68(0x1bc)+_0x320d68(0x19a)]=_0x2f95fb;}async[a10_0x1a0b53(0x1ae)+a10_0x1a0b53(0x1a8)]({analysisId:_0x36bb9d,fileContent:_0xf255ce}){const _0x374a70=a10_0x1a0b53;try{logger[_0x374a70(0x1b2)](_0x374a70(0x1ac)+_0x374a70(0x1a9)+_0x374a70(0x19c)+'ed:\x20'+_0x36bb9d);const _0x2df02b=await this[_0x374a70(0x1bc)+_0x374a70(0x19a)]['generateSe'+'cureCodeFr'+'omAnalysis'](_0x36bb9d,_0xf255ce),_0x5e8f2f=0x7a120,_0x4468a9=(_0x370c81,_0x20213d)=>{const _0x522cf1=_0x374a70;if(_0x370c81[_0x522cf1(0x1c2)]<=_0x20213d)return _0x370c81;return _0x370c81[_0x522cf1(0x1ba)](0x0,_0x20213d)+(_0x522cf1(0x1c1)+'wing\x20'+_0x20213d+_0x522cf1(0x1ab)+_0x370c81['length']+(_0x522cf1(0x1a2)+'s)'));},_0x38289b=('\x0a#\x20Secure\x20'+'Code\x20Gener'+'ation\x20Resu'+'lts\x0a\x0a##\x20Se'+'cure\x20Code\x0a'+_0x374a70(0x198)+_0x4468a9(_0x2df02b[_0x374a70(0x1b7)],_0x5e8f2f)+(_0x374a70(0x19b)+_0x374a70(0x19e)+'\x20Briefing\x0a')+_0x4468a9(_0x2df02b['secureCode'+'Brief'],_0x5e8f2f)+('\x0a\x0a##\x20Code\x20'+_0x374a70(0x1b9)+_0x374a70(0x195)+_0x374a70(0x199))+_0x4468a9(_0x2df02b[_0x374a70(0x1b6)],_0x5e8f2f)+('\x0a```\x0a\x20\x20\x20\x20\x20'+'\x20'))[_0x374a70(0x1ad)](),_0xdd75f9={'analysisId':_0x36bb9d,'secureCode':_0x4468a9(_0x2df02b[_0x374a70(0x1b7)],_0x5e8f2f),'secureCodeBrief':_0x4468a9(_0x2df02b['secureCode'+'Brief'],_0x5e8f2f),'diff':_0x4468a9(_0x2df02b[_0x374a70(0x1b6)],_0x5e8f2f)},_0xa8d77c={};_0xa8d77c['type']=_0x374a70(0x197),_0xa8d77c[_0x374a70(0x197)]=_0x38289b;const _0xf37f7a={};return _0xf37f7a[_0x374a70(0x1b5)]=[_0xa8d77c],_0xf37f7a[_0x374a70(0x1bb)+_0x374a70(0x1b3)]=_0xdd75f9,_0xf37f7a;}catch(_0x9cc450){logger[_0x374a70(0x193)](_0x374a70(0x1a7)+_0x374a70(0x1a6)+'ecure\x20code'+':',_0x9cc450);const _0x29b769=_0x9cc450 instanceof Error?_0x9cc450[_0x374a70(0x1b4)]:_0x374a70(0x196)+_0x374a70(0x1b8),_0x12b79a={};_0x12b79a['type']=_0x374a70(0x197),_0x12b79a[_0x374a70(0x197)]='Failed\x20to\x20'+_0x374a70(0x1a6)+'ecure\x20code'+':\x20'+_0x29b769;const _0xb51b83={};_0xb51b83['error']=_0x29b769;const _0x23cb5f={};return _0x23cb5f[_0x374a70(0x1b5)]=[_0x12b79a],_0x23cb5f[_0x374a70(0x1bb)+_0x374a70(0x1b3)]=_0xb51b83,_0x23cb5f[_0x374a70(0x1b0)]=!![],_0x23cb5f;}}}
@@ -1 +1 @@
1
- function a11_0x490c(_0x2f4f1c,_0x42e2b8){_0x2f4f1c=_0x2f4f1c-0x1cc;var _0x3b093f=a11_0x5707();var _0x37362e=_0x3b093f[_0x2f4f1c];return _0x37362e;}(function(_0xa0e972,_0x269519){var _0x4963cf=a11_0x490c,_0x436983=_0xa0e972();while(!![]){try{var _0x3d8c86=parseInt(_0x4963cf(0x1d4))/0x1*(parseInt(_0x4963cf(0x1d2))/0x2)+parseInt(_0x4963cf(0x1db))/0x3+-parseInt(_0x4963cf(0x1da))/0x4*(parseInt(_0x4963cf(0x1d1))/0x5)+-parseInt(_0x4963cf(0x1d6))/0x6*(-parseInt(_0x4963cf(0x1d7))/0x7)+parseInt(_0x4963cf(0x1cc))/0x8+parseInt(_0x4963cf(0x1d8))/0x9+parseInt(_0x4963cf(0x1d3))/0xa*(-parseInt(_0x4963cf(0x1ce))/0xb);if(_0x3d8c86===_0x269519)break;else _0x436983['push'](_0x436983['shift']());}catch(_0x3b6b8b){_0x436983['push'](_0x436983['shift']());}}}(a11_0x5707,0xa8eaf));var a11_0x3105bd=(function(){var _0x470b7c=!![];return function(_0x466bcb,_0x48c035){var _0x5a3808=_0x470b7c?function(){var _0x30a160=a11_0x490c;if(_0x48c035){var _0x4246c8=_0x48c035[_0x30a160(0x1cd)](_0x466bcb,arguments);return _0x48c035=null,_0x4246c8;}}:function(){};return _0x470b7c=![],_0x5a3808;};}()),a11_0x37362e=a11_0x3105bd(this,function(){var _0x57c113=a11_0x490c,_0x7381b3={};_0x7381b3[_0x57c113(0x1d9)]=_0x57c113(0x1cf)+'+$';var _0x3a89f9=_0x7381b3;return a11_0x37362e['toString']()[_0x57c113(0x1d0)](_0x57c113(0x1cf)+'+$')[_0x57c113(0x1d5)]()['constructo'+'r'](a11_0x37362e)[_0x57c113(0x1d0)](_0x3a89f9[_0x57c113(0x1d9)]);});function a11_0x5707(){var _0x9212e1=['apply','2629gOUkTa','(((.+)+)+)','search','2102090ZYzxeK','2XuatMd','128220oWrSep','986311KrUUHW','toString','6zYeTXm','8099819bgXKyZ','1864683UYzOTN','jDFdc','4jlroUO','2411052xliyme','8179712TrLXHh'];a11_0x5707=function(){return _0x9212e1;};return a11_0x5707();}a11_0x37362e();export class SystemController{}
1
+ (function(_0xf1b1cb,_0x3a6849){var _0x28fe2a=a11_0x5563,_0x23ba13=_0xf1b1cb();while(!![]){try{var _0x4de1ee=-parseInt(_0x28fe2a(0x17f))/0x1*(-parseInt(_0x28fe2a(0x185))/0x2)+-parseInt(_0x28fe2a(0x17e))/0x3+-parseInt(_0x28fe2a(0x17d))/0x4+parseInt(_0x28fe2a(0x180))/0x5*(parseInt(_0x28fe2a(0x179))/0x6)+parseInt(_0x28fe2a(0x178))/0x7*(-parseInt(_0x28fe2a(0x177))/0x8)+-parseInt(_0x28fe2a(0x17a))/0x9*(-parseInt(_0x28fe2a(0x186))/0xa)+parseInt(_0x28fe2a(0x17c))/0xb*(parseInt(_0x28fe2a(0x17b))/0xc);if(_0x4de1ee===_0x3a6849)break;else _0x23ba13['push'](_0x23ba13['shift']());}catch(_0x590894){_0x23ba13['push'](_0x23ba13['shift']());}}}(a11_0x5013,0xd6888));function a11_0x5013(){var _0x5688b6=['846LJtbem','35664BMToKb','2574jbeNDh','2504744cilOLt','2687292RqsrSC','670229pohNgf','9005FhwwZA','search','(((.+)+)+)','constructo','toString','2sbKkkb','152410tjYIOx','apply','32yizgdx','1133986aLAzkU','834SItssq'];a11_0x5013=function(){return _0x5688b6;};return a11_0x5013();}var a11_0x38afca=(function(){var _0x237ad5=!![];return function(_0x5d7369,_0x50633b){var _0x51e998=_0x237ad5?function(){var _0x23b5ce=a11_0x5563;if(_0x50633b){var _0x3bc704=_0x50633b[_0x23b5ce(0x176)](_0x5d7369,arguments);return _0x50633b=null,_0x3bc704;}}:function(){};return _0x237ad5=![],_0x51e998;};}()),a11_0x2955d7=a11_0x38afca(this,function(){var _0x5aa88d=a11_0x5563;return a11_0x2955d7[_0x5aa88d(0x184)]()['search'](_0x5aa88d(0x182)+'+$')['toString']()[_0x5aa88d(0x183)+'r'](a11_0x2955d7)[_0x5aa88d(0x181)](_0x5aa88d(0x182)+'+$');});a11_0x2955d7();function a11_0x5563(_0x3ac9db,_0x5e46e6){_0x3ac9db=_0x3ac9db-0x176;var _0x503d65=a11_0x5013();var _0x2955d7=_0x503d65[_0x3ac9db];return _0x2955d7;}export class SystemController{}
@@ -2,34 +2,42 @@ import { z } from "zod";
2
2
  export declare const AnalyzeFileSastSchema: {
3
3
  fileContent: z.ZodString;
4
4
  fileName: z.ZodEffects<z.ZodString, string, string>;
5
+ memo: z.ZodOptional<z.ZodString>;
5
6
  };
6
7
  export declare const AnalyzeFilesSastSchema: {
7
8
  filePaths: z.ZodArray<z.ZodString, "many">;
8
9
  zipFileName: z.ZodOptional<z.ZodString>;
10
+ memo: z.ZodOptional<z.ZodString>;
9
11
  };
10
12
  export declare const AnalyzeFolderSastSchema: {
11
13
  folderPath: z.ZodString;
12
14
  zipFileName: z.ZodOptional<z.ZodString>;
15
+ memo: z.ZodOptional<z.ZodString>;
13
16
  };
14
17
  export declare const AnalyzeZipSastSchema: {
15
18
  zipFilePath: z.ZodString;
16
19
  zipFileName: z.ZodOptional<z.ZodString>;
20
+ memo: z.ZodOptional<z.ZodString>;
17
21
  };
18
22
  export declare const AnalyzeFileScaSchema: {
19
23
  filePath: z.ZodString;
20
24
  zipFileName: z.ZodOptional<z.ZodString>;
25
+ memo: z.ZodOptional<z.ZodString>;
21
26
  };
22
27
  export declare const AnalyzeFilesScaSchema: {
23
28
  filePaths: z.ZodArray<z.ZodString, "many">;
24
29
  zipFileName: z.ZodOptional<z.ZodString>;
30
+ memo: z.ZodOptional<z.ZodString>;
25
31
  };
26
32
  export declare const AnalyzeFolderScaSchema: {
27
33
  folderPath: z.ZodString;
28
34
  zipFileName: z.ZodOptional<z.ZodString>;
35
+ memo: z.ZodOptional<z.ZodString>;
29
36
  };
30
37
  export declare const AnalyzeZipScaSchema: {
31
38
  zipFilePath: z.ZodString;
32
39
  zipFileName: z.ZodOptional<z.ZodString>;
40
+ memo: z.ZodOptional<z.ZodString>;
33
41
  };
34
42
  export declare const TrackAnalysisProgressSchema: {
35
43
  analysisId: z.ZodString;
@@ -1 +1 @@
1
- const a17_0x3140c3=a17_0x59b9;(function(_0x1046df,_0x640ca8){const _0x290cee=a17_0x59b9,_0x595e1f=_0x1046df();while(!![]){try{const _0x211912=-parseInt(_0x290cee(0xc9))/0x1+-parseInt(_0x290cee(0xcd))/0x2+-parseInt(_0x290cee(0xe3))/0x3+parseInt(_0x290cee(0x96))/0x4*(-parseInt(_0x290cee(0x8d))/0x5)+parseInt(_0x290cee(0x98))/0x6+parseInt(_0x290cee(0xd2))/0x7+parseInt(_0x290cee(0x89))/0x8;if(_0x211912===_0x640ca8)break;else _0x595e1f['push'](_0x595e1f['shift']());}catch(_0x59f3dc){_0x595e1f['push'](_0x595e1f['shift']());}}}(a17_0x4493,0x2d6a6));const a17_0x434eec=(function(){let _0x4cb94b=!![];return function(_0x19021c,_0x56b7da){const _0x5196a4=_0x4cb94b?function(){const _0x3bffcc=a17_0x59b9;if(_0x56b7da){const _0x3efd37=_0x56b7da[_0x3bffcc(0xd1)](_0x19021c,arguments);return _0x56b7da=null,_0x3efd37;}}:function(){};return _0x4cb94b=![],_0x5196a4;};}()),a17_0x199158=a17_0x434eec(this,function(){const _0x12c05f=a17_0x59b9;return a17_0x199158[_0x12c05f(0xaa)]()['search'](_0x12c05f(0xcc)+'+$')[_0x12c05f(0xaa)]()['constructo'+'r'](a17_0x199158)[_0x12c05f(0xb6)]('(((.+)+)+)'+'+$');});a17_0x199158();import{z}from'zod';const a17_0x18e9f0={};a17_0x18e9f0[a17_0x3140c3(0xc0)]='파일명에\x20확장자가\x20'+a17_0x3140c3(0xe5);export const AnalyzeFileSastSchema={'fileContent':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe2)](0x1,a17_0x3140c3(0x90)+a17_0x3140c3(0x8b))['describe'](a17_0x3140c3(0xdc)+a17_0x3140c3(0x8c)+'e\x20code\x20fil'+'e\x20to\x20analy'+'ze'),'fileName':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe2)](0x1)[a17_0x3140c3(0xac)](_0x191de3=>_0x191de3[a17_0x3140c3(0xb0)]('.'),a17_0x18e9f0)[a17_0x3140c3(0xe1)](a17_0x3140c3(0xcf)+a17_0x3140c3(0xc2)+a17_0x3140c3(0x87)+a17_0x3140c3(0x8f)+a17_0x3140c3(0xdf)+')')};export const AnalyzeFilesSastSchema={'filePaths':z[a17_0x3140c3(0x9c)](z['string']())[a17_0x3140c3(0xe1)]('List\x20of\x20so'+a17_0x3140c3(0xad)+a17_0x3140c3(0x9b)+a17_0x3140c3(0x8e)+a17_0x3140c3(0xd7)+'\x27/src/User'+'Service.ja'+a17_0x3140c3(0xb3)+a17_0x3140c3(0x8a)+'va\x27])'),'zipFileName':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xa2)]()[a17_0x3140c3(0xe1)]('Name\x20of\x20th'+a17_0x3140c3(0xa1)+'\x20to\x20be\x20cre'+'ated\x20(opti'+'onal)')};export const AnalyzeFolderSastSchema={'folderPath':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xa0)+a17_0x3140c3(0xba)+'ontaining\x20'+a17_0x3140c3(0xaf)+a17_0x3140c3(0x9f)+'ze'),'zipFileName':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xa2)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xc4)+a17_0x3140c3(0xa1)+a17_0x3140c3(0x91)+a17_0x3140c3(0xd3)+'onal,\x20uses'+a17_0x3140c3(0xcb)+a17_0x3140c3(0xb2)+'specified)')};export const AnalyzeZipSastSchema={'zipFilePath':z[a17_0x3140c3(0xc5)]()['describe'](a17_0x3140c3(0xa0)+a17_0x3140c3(0xa1)+a17_0x3140c3(0x9d)+a17_0x3140c3(0xde)+a17_0x3140c3(0xc6)+a17_0x3140c3(0xdb)),'zipFileName':z['string']()['optional']()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xbb)+a17_0x3140c3(0xbe)+a17_0x3140c3(0xce)+a17_0x3140c3(0xc7)+a17_0x3140c3(0xa6)+a17_0x3140c3(0xca)+'\x20if\x20not\x20sp'+a17_0x3140c3(0xc1))};function a17_0x4493(){const _0xa2978e=['es\x20origina','specified)','\x20analysis','t\x20to\x20gener','toString','pendency\x20f','refine','urce\x20code\x20','ile\x20conten','source\x20cod','includes','iles\x20to\x20an','me\x20if\x20not\x20','va\x27,\x20\x27/src','lt:\x2030000)','ate\x20secure','search','00)','ing\x20(defau','onal)','e\x20folder\x20c','ZIP\x20file\x20n','Analysis\x20I','List\x20of\x20de','ame\x20to\x20be\x20','e.g.,\x20\x27pac','message','ecified)','with\x20exten','ck\x20interva','Name\x20of\x20th','string','ode\x20to\x20ana','tional,\x20us','number','31221kzILvq','l\x20filename','\x20folder\x20na','(((.+)+)+)','116662vJQaNU','stored\x20(op','File\x20name\x20','dependenci','apply','2263100avPWRk','ated\x20(opti','Maximum\x20ti','me\x20to\x20wait','\x20\x27requirem','e\x20(e.g.,\x20[','onal,\x20uses','D\x20from\x20the','cy\x20file\x20to','lyze','Content\x20of','taining\x20de','g\x20source\x20c','vice.java\x27','Status\x20che','describe','min','813810KYHopn','es\x20to\x20anal','필요합니다','econds\x20bef','sion\x20(e.g.','\x20security\x20','1092848GqmDZd','/DbUtil.ja','습니다','\x20the\x20sourc','35QSDBoo','\x20to\x20analyz',',\x20\x27UserSer','파일\x20내용이\x20비어있','\x20to\x20be\x20cre','yze','\x20in\x20millis','\x20version','folder\x20con','119172PqbbAx','g\x20project\x20','1772934AtAghx','alyze\x20(e.g','ents.txt\x27]','file\x20paths','array','\x20containin','ore\x20return','e\x20to\x20analy','Path\x20to\x20th','e\x20ZIP\x20file','optional','l\x20in\x20milli','Original\x20f','analysis'];a17_0x4493=function(){return _0xa2978e;};return a17_0x4493();}export const AnalyzeFileScaSchema={'filePath':z['string']()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xa0)+'e\x20dependen'+a17_0x3140c3(0xda)+'\x20analyze\x20('+a17_0x3140c3(0xbf)+'kage.json\x27'+')'),'zipFileName':z['string']()['optional']()[a17_0x3140c3(0xe1)]('Name\x20of\x20th'+'e\x20ZIP\x20file'+a17_0x3140c3(0x91)+'ated\x20(opti'+a17_0x3140c3(0xb9))};export const AnalyzeFilesScaSchema={'filePaths':z[a17_0x3140c3(0x9c)](z[a17_0x3140c3(0xc5)]())[a17_0x3140c3(0xe1)](a17_0x3140c3(0xbd)+a17_0x3140c3(0xab)+a17_0x3140c3(0xb1)+a17_0x3140c3(0x99)+'.,\x20[\x27packa'+'ge.json\x27,\x20'+'\x27pom.xml\x27,'+a17_0x3140c3(0xd6)+a17_0x3140c3(0x9a)+')'),'zipFileName':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xa2)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xc4)+'e\x20ZIP\x20file'+'\x20to\x20be\x20cre'+'ated\x20(opti'+a17_0x3140c3(0xb9))};export const AnalyzeFolderScaSchema={'folderPath':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe1)]('Path\x20to\x20th'+'e\x20project\x20'+a17_0x3140c3(0x95)+a17_0x3140c3(0xdd)+a17_0x3140c3(0xab)+a17_0x3140c3(0xb1)+'alyze'),'zipFileName':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xa2)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xc4)+'e\x20ZIP\x20file'+a17_0x3140c3(0x91)+'ated\x20(opti'+a17_0x3140c3(0xd8)+a17_0x3140c3(0xcb)+a17_0x3140c3(0xb2)+a17_0x3140c3(0xa7))};export const AnalyzeZipScaSchema={'zipFilePath':z['string']()['describe'](a17_0x3140c3(0xa0)+a17_0x3140c3(0xa1)+a17_0x3140c3(0x9d)+a17_0x3140c3(0x97)+a17_0x3140c3(0xd0)+a17_0x3140c3(0xe4)+a17_0x3140c3(0x92)),'zipFileName':z['string']()[a17_0x3140c3(0xa2)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xbb)+a17_0x3140c3(0xbe)+a17_0x3140c3(0xce)+a17_0x3140c3(0xc7)+a17_0x3140c3(0xa6)+a17_0x3140c3(0xca)+'\x20if\x20not\x20sp'+a17_0x3140c3(0xc1))};export const TrackAnalysisProgressSchema={'analysisId':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xbc)+'D'),'intervalMs':z[a17_0x3140c3(0xc8)]()[a17_0x3140c3(0xa2)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xe0)+a17_0x3140c3(0xc3)+a17_0x3140c3(0xa3)+'seconds\x20(d'+'efault:\x2030'+a17_0x3140c3(0xb7)),'maxWaitMs':z['number']()['optional']()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xd4)+a17_0x3140c3(0xd5)+a17_0x3140c3(0x93)+a17_0x3140c3(0xe6)+a17_0x3140c3(0x9e)+a17_0x3140c3(0xb8)+a17_0x3140c3(0xb4))};export const GetAnalysisStatusSchema={'analysisId':z[a17_0x3140c3(0xc5)]()['describe'](a17_0x3140c3(0xbc)+'D')};function a17_0x59b9(_0xdd0e47,_0x5eee82){_0xdd0e47=_0xdd0e47-0x87;const _0x4272dd=a17_0x4493();let _0x199158=_0x4272dd[_0xdd0e47];return _0x199158;}export const GetAnalysisResultsSchema={'analysisId':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xbc)+'D')};export const GetScaAnalysisResultsSchema={'analysisId':z['string']()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xbc)+'D\x20from\x20SCA'+a17_0x3140c3(0xa8))};export const GenerateSecureCodeSchema={'analysisId':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xbc)+a17_0x3140c3(0xd9)+a17_0x3140c3(0x88)+a17_0x3140c3(0xa5)),'fileContent':z[a17_0x3140c3(0xc5)]()[a17_0x3140c3(0xe1)](a17_0x3140c3(0xa4)+a17_0x3140c3(0xae)+a17_0x3140c3(0xa9)+a17_0x3140c3(0xb5)+a17_0x3140c3(0x94))};
1
+ const a17_0x3c1e25=a17_0x5c79;(function(_0x3068f4,_0x17a865){const _0x3c8162=a17_0x5c79,_0x56427b=_0x3068f4();while(!![]){try{const _0x2699b4=parseInt(_0x3c8162(0x120))/0x1+-parseInt(_0x3c8162(0xf3))/0x2+-parseInt(_0x3c8162(0xf0))/0x3+-parseInt(_0x3c8162(0xf4))/0x4+parseInt(_0x3c8162(0x13f))/0x5+-parseInt(_0x3c8162(0x127))/0x6+parseInt(_0x3c8162(0x13b))/0x7*(parseInt(_0x3c8162(0x12b))/0x8);if(_0x2699b4===_0x17a865)break;else _0x56427b['push'](_0x56427b['shift']());}catch(_0x5a12f9){_0x56427b['push'](_0x56427b['shift']());}}}(a17_0x3927,0x2b69e));const a17_0x34b847=(function(){let _0x3b4407=!![];return function(_0x416772,_0x5cc1c6){const _0x587cc2=_0x3b4407?function(){const _0x2c1567=a17_0x5c79;if(_0x5cc1c6){const _0x4393d0=_0x5cc1c6[_0x2c1567(0xe8)](_0x416772,arguments);return _0x5cc1c6=null,_0x4393d0;}}:function(){};return _0x3b4407=![],_0x587cc2;};}()),a17_0x4129aa=a17_0x34b847(this,function(){const _0x2fe311=a17_0x5c79;return a17_0x4129aa[_0x2fe311(0xf8)]()['search'](_0x2fe311(0xfe)+'+$')[_0x2fe311(0xf8)]()['constructo'+'r'](a17_0x4129aa)[_0x2fe311(0x125)]('(((.+)+)+)'+'+$');});a17_0x4129aa();import{z}from'zod';function a17_0x3927(){const _0xb57e23=['D\x20from\x20SCA','28nnUlyj','es\x20origina','stored\x20(op','Status\x20che','1068490syJvci','\x20if\x20not\x20sp','efault:\x2030','me\x20if\x20not\x20','g\x20source\x20c','optional','describe','e\x20ZIP\x20file','Service.ja','apply','tional,\x20us','e\x20to\x20analy',',\x20\x27UserSer','\x27pom.xml\x27,','e\x20folder\x20c','array','e\x20code\x20fil','325902woXRxQ','kage.json\x27','includes','524608iiHbzl','965432StpizI','필요합니다','\x20the\x20sourc','파일\x20내용이\x20비어있','toString','vice.java\x27','iles\x20to\x20an','va\x27,\x20\x27/src','습니다','yze','(((.+)+)+)','ing\x20(defau','ore\x20return','min','Analysis\x20I','taining\x20de','\x20analyze\x20(','g\x20project\x20','/DbUtil.ja','ZIP\x20file\x20n','\x20folder\x20na','\x20to\x20analyz','ile\x20conten','\x20in\x20millis','with\x20exten','l\x20filename','\x20containin','refine','dependenci','pendency\x20f','e\x20(e.g.,\x20[','\x20to\x20be\x20cre','ge.json\x27,\x20','ated\x20(opti','emo','me\x20to\x20wait','va\x27])','folder\x20con','Path\x20to\x20th','string','\x20security\x20','e.g.,\x20\x27pac','cy\x20file\x20to','es\x20to\x20anal','10319NoSKxq','onal,\x20uses','.,\x20[\x27packa','ecified)','Content\x20of','search','00)','1386450ujgiGa','onal)','specified)','lt:\x2030000)','1594352yZflWx','파일명에\x20확장자가\x20','\x20analysis','t\x20to\x20gener','seconds\x20(d','source\x20cod','alyze','number','Analysis\x20m','ontaining\x20','ame\x20to\x20be\x20','econds\x20bef','alyze\x20(e.g','e\x20project\x20','Name\x20of\x20th'];a17_0x3927=function(){return _0xb57e23;};return a17_0x3927();}const a17_0x56ca03={};a17_0x56ca03['message']=a17_0x3c1e25(0x12c)+a17_0x3c1e25(0xf5);export const AnalyzeFileSastSchema={'fileContent':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0x101)](0x1,a17_0x3c1e25(0xf7)+a17_0x3c1e25(0xfc))['describe'](a17_0x3c1e25(0x124)+a17_0x3c1e25(0xf6)+a17_0x3c1e25(0xef)+a17_0x3c1e25(0xea)+'ze'),'fileName':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0x101)](0x1)[a17_0x3c1e25(0x10f)](_0x1f1c57=>_0x1f1c57[a17_0x3c1e25(0xf2)]('.'),a17_0x56ca03)[a17_0x3c1e25(0xe5)]('File\x20name\x20'+a17_0x3c1e25(0x10c)+'sion\x20(e.g.'+a17_0x3c1e25(0xeb)+a17_0x3c1e25(0xf9)+')'),'memo':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0xe4)]()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x133)+a17_0x3c1e25(0x116))};export const AnalyzeFilesSastSchema={'filePaths':z[a17_0x3c1e25(0xee)](z[a17_0x3c1e25(0x11b)]())[a17_0x3c1e25(0xe5)]('List\x20of\x20so'+'urce\x20code\x20'+'file\x20paths'+a17_0x3c1e25(0x109)+a17_0x3c1e25(0x112)+'\x27/src/User'+a17_0x3c1e25(0xe7)+a17_0x3c1e25(0xfb)+a17_0x3c1e25(0x106)+a17_0x3c1e25(0x118)),'zipFileName':z['string']()['optional']()['describe']('Name\x20of\x20th'+a17_0x3c1e25(0xe6)+a17_0x3c1e25(0x113)+'ated\x20(opti'+a17_0x3c1e25(0x128)),'memo':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0xe4)]()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x133)+a17_0x3c1e25(0x116))};export const AnalyzeFolderSastSchema={'folderPath':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0xe5)]('Path\x20to\x20th'+a17_0x3c1e25(0xed)+a17_0x3c1e25(0x134)+a17_0x3c1e25(0x130)+'e\x20to\x20analy'+'ze'),'zipFileName':z['string']()[a17_0x3c1e25(0xe4)]()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x139)+a17_0x3c1e25(0xe6)+a17_0x3c1e25(0x113)+a17_0x3c1e25(0x115)+a17_0x3c1e25(0x121)+'\x20folder\x20na'+a17_0x3c1e25(0xe2)+a17_0x3c1e25(0x129)),'memo':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0xe4)]()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x133)+a17_0x3c1e25(0x116))};export const AnalyzeZipSastSchema={'zipFilePath':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x11a)+a17_0x3c1e25(0xe6)+a17_0x3c1e25(0x10e)+a17_0x3c1e25(0xe3)+'ode\x20to\x20ana'+'lyze'),'zipFileName':z['string']()[a17_0x3c1e25(0xe4)]()['describe'](a17_0x3c1e25(0x107)+a17_0x3c1e25(0x135)+a17_0x3c1e25(0x13d)+'tional,\x20us'+'es\x20origina'+a17_0x3c1e25(0x10d)+a17_0x3c1e25(0xe0)+a17_0x3c1e25(0x123)),'memo':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0xe4)]()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x133)+a17_0x3c1e25(0x116))};function a17_0x5c79(_0x10f0ab,_0x1c8aa1){_0x10f0ab=_0x10f0ab-0xe0;const _0x3ea784=a17_0x3927();let _0x4129aa=_0x3ea784[_0x10f0ab];return _0x4129aa;}export const AnalyzeFileScaSchema={'filePath':z['string']()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x11a)+'e\x20dependen'+a17_0x3c1e25(0x11e)+a17_0x3c1e25(0x104)+a17_0x3c1e25(0x11d)+a17_0x3c1e25(0xf1)+')'),'zipFileName':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0xe4)]()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x139)+a17_0x3c1e25(0xe6)+a17_0x3c1e25(0x113)+a17_0x3c1e25(0x115)+a17_0x3c1e25(0x128)),'memo':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0xe4)]()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x133)+a17_0x3c1e25(0x116))};export const AnalyzeFilesScaSchema={'filePaths':z[a17_0x3c1e25(0xee)](z['string']())[a17_0x3c1e25(0xe5)]('List\x20of\x20de'+a17_0x3c1e25(0x111)+'iles\x20to\x20an'+a17_0x3c1e25(0x137)+a17_0x3c1e25(0x122)+a17_0x3c1e25(0x114)+a17_0x3c1e25(0xec)+'\x20\x27requirem'+'ents.txt\x27]'+')'),'zipFileName':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0xe4)]()['describe'](a17_0x3c1e25(0x139)+a17_0x3c1e25(0xe6)+a17_0x3c1e25(0x113)+'ated\x20(opti'+a17_0x3c1e25(0x128)),'memo':z['string']()[a17_0x3c1e25(0xe4)]()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x133)+a17_0x3c1e25(0x116))};export const AnalyzeFolderScaSchema={'folderPath':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x11a)+a17_0x3c1e25(0x138)+a17_0x3c1e25(0x119)+a17_0x3c1e25(0x103)+a17_0x3c1e25(0x111)+a17_0x3c1e25(0xfa)+a17_0x3c1e25(0x131)),'zipFileName':z[a17_0x3c1e25(0x11b)]()['optional']()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x139)+a17_0x3c1e25(0xe6)+a17_0x3c1e25(0x113)+a17_0x3c1e25(0x115)+a17_0x3c1e25(0x121)+a17_0x3c1e25(0x108)+a17_0x3c1e25(0xe2)+a17_0x3c1e25(0x129)),'memo':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0xe4)]()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x133)+'emo')};export const AnalyzeZipScaSchema={'zipFilePath':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x11a)+a17_0x3c1e25(0xe6)+a17_0x3c1e25(0x10e)+a17_0x3c1e25(0x105)+a17_0x3c1e25(0x110)+a17_0x3c1e25(0x11f)+a17_0x3c1e25(0xfd)),'zipFileName':z['string']()['optional']()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x107)+a17_0x3c1e25(0x135)+a17_0x3c1e25(0x13d)+a17_0x3c1e25(0xe9)+a17_0x3c1e25(0x13c)+a17_0x3c1e25(0x10d)+a17_0x3c1e25(0xe0)+'ecified)'),'memo':z[a17_0x3c1e25(0x11b)]()['optional']()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x133)+a17_0x3c1e25(0x116))};export const TrackAnalysisProgressSchema={'analysisId':z[a17_0x3c1e25(0x11b)]()['describe'](a17_0x3c1e25(0x102)+'D'),'intervalMs':z[a17_0x3c1e25(0x132)]()['optional']()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x13e)+'ck\x20interva'+'l\x20in\x20milli'+a17_0x3c1e25(0x12f)+a17_0x3c1e25(0xe1)+a17_0x3c1e25(0x126)),'maxWaitMs':z[a17_0x3c1e25(0x132)]()[a17_0x3c1e25(0xe4)]()[a17_0x3c1e25(0xe5)]('Maximum\x20ti'+a17_0x3c1e25(0x117)+a17_0x3c1e25(0x10b)+a17_0x3c1e25(0x136)+a17_0x3c1e25(0x100)+a17_0x3c1e25(0xff)+a17_0x3c1e25(0x12a))};export const GetAnalysisStatusSchema={'analysisId':z['string']()[a17_0x3c1e25(0xe5)]('Analysis\x20I'+'D')};export const GetAnalysisResultsSchema={'analysisId':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0xe5)](a17_0x3c1e25(0x102)+'D')};export const GetScaAnalysisResultsSchema={'analysisId':z['string']()['describe'](a17_0x3c1e25(0x102)+a17_0x3c1e25(0x13a)+a17_0x3c1e25(0x12d))};export const GenerateSecureCodeSchema={'analysisId':z[a17_0x3c1e25(0x11b)]()['describe'](a17_0x3c1e25(0x102)+'D\x20from\x20the'+a17_0x3c1e25(0x11c)+'analysis'),'fileContent':z[a17_0x3c1e25(0x11b)]()[a17_0x3c1e25(0xe5)]('Original\x20f'+a17_0x3c1e25(0x10a)+a17_0x3c1e25(0x12e)+'ate\x20secure'+'\x20version')};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env tsx
2
- const a18_0x3b145f=a18_0x76c0;(function(_0x408ce8,_0x5682ca){const _0x1c8b00=a18_0x76c0,_0x250e36=_0x408ce8();while(!![]){try{const _0x5de87c=parseInt(_0x1c8b00(0xdd))/0x1*(-parseInt(_0x1c8b00(0x1d5))/0x2)+parseInt(_0x1c8b00(0xea))/0x3*(-parseInt(_0x1c8b00(0x114))/0x4)+-parseInt(_0x1c8b00(0x15c))/0x5*(parseInt(_0x1c8b00(0xce))/0x6)+-parseInt(_0x1c8b00(0xfa))/0x7+parseInt(_0x1c8b00(0xfd))/0x8*(-parseInt(_0x1c8b00(0x19f))/0x9)+-parseInt(_0x1c8b00(0x191))/0xa+parseInt(_0x1c8b00(0x13c))/0xb*(parseInt(_0x1c8b00(0x176))/0xc);if(_0x5de87c===_0x5682ca)break;else _0x250e36['push'](_0x250e36['shift']());}catch(_0x5e1578){_0x250e36['push'](_0x250e36['shift']());}}}(a18_0x6ed2,0x79a9c));const a18_0x2a33db=(function(){let _0x525351=!![];return function(_0x337399,_0x315983){const _0x16c3d9=_0x525351?function(){if(_0x315983){const _0x42903e=_0x315983['apply'](_0x337399,arguments);return _0x315983=null,_0x42903e;}}:function(){};return _0x525351=![],_0x16c3d9;};}()),a18_0x1ec73b=a18_0x2a33db(this,function(){const _0x205b95=a18_0x76c0;return a18_0x1ec73b[_0x205b95(0xda)]()[_0x205b95(0x182)](_0x205b95(0xcf)+'+$')[_0x205b95(0xda)]()[_0x205b95(0x1cd)+'r'](a18_0x1ec73b)[_0x205b95(0x182)](_0x205b95(0xcf)+'+$');});a18_0x1ec73b();import{McpServer}from'@modelcontextprotocol/sdk/server/mcp.js';import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';function a18_0x76c0(_0x10d52b,_0x3db06d){_0x10d52b=_0x10d52b-0xb9;const _0x34baad=a18_0x6ed2();let _0x1ec73b=_0x34baad[_0x10d52b];return _0x1ec73b;}import{AnalysisService}from'./services/analysis.service.js';import{logger}from'./utils/logger.js';import a18_0x515ad7 from'path';import a18_0xbbee1e from'fs';import{fileURLToPath}from'url';import{SPARROW_RULES}from'./config/constants.js';import{AnalyzeFileSastSchema,AnalyzeFilesSastSchema,AnalyzeFolderSastSchema,AnalyzeZipSastSchema,AnalyzeFileScaSchema,AnalyzeFilesScaSchema,AnalyzeFolderScaSchema,AnalyzeZipScaSchema,TrackAnalysisProgressSchema,GetAnalysisStatusSchema,GetAnalysisResultsSchema,GetScaAnalysisResultsSchema,GenerateSecureCodeSchema}from'./schemas/tool.schemas.js';import{SastController}from'./controllers/sast.controller.js';import{ScaController}from'./controllers/sca.controller.js';import{AnalysisController}from'./controllers/analysis.controller.js';import{SecurityController}from'./controllers/security.controller.js';import{SystemController}from'./controllers/system.controller.js';const a18_0x113084={};a18_0x113084['name']=a18_0x3b145f(0xf7)+a18_0x3b145f(0x171)+'r',a18_0x113084[a18_0x3b145f(0x129)]='1.0.0';const server=new McpServer(a18_0x113084),analysisService=new AnalysisService(),sastController=new SastController(analysisService),scaController=new ScaController(analysisService),analysisController=new AnalysisController(analysisService),securityController=new SecurityController(analysisService),systemController=new SystemController(),a18_0x1183cb={};a18_0x1183cb['title']=a18_0x3b145f(0x116)+a18_0x3b145f(0x15e)+a18_0x3b145f(0x181),a18_0x1183cb[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x10d)+a18_0x3b145f(0xc7)+a18_0x3b145f(0x1fb)+a18_0x3b145f(0x1de)+a18_0x3b145f(0x1f2)+a18_0x3b145f(0x103)+a18_0x3b145f(0x126)+a18_0x3b145f(0x204)+a18_0x3b145f(0xee)+a18_0x3b145f(0x1d2)+a18_0x3b145f(0xcd)+a18_0x3b145f(0x111)+'r\x20analyzin'+'g\x20the\x20logi'+'c\x20and\x20secu'+a18_0x3b145f(0x168)+a18_0x3b145f(0x161)+a18_0x3b145f(0x20c)+a18_0x3b145f(0x208)+a18_0x3b145f(0x198)+a18_0x3b145f(0xd4)+a18_0x3b145f(0x158)+a18_0x3b145f(0x14e)+a18_0x3b145f(0xe8)+a18_0x3b145f(0x190)+a18_0x3b145f(0xdb)+'\x20like\x20SQL\x20'+'injection,'+a18_0x3b145f(0x1aa)+a18_0x3b145f(0x1cb)+a18_0x3b145f(0x19a)+a18_0x3b145f(0x1f3)+a18_0x3b145f(0x17e)+a18_0x3b145f(0x10a)+a18_0x3b145f(0x209)+a18_0x3b145f(0xec),a18_0x1183cb[a18_0x3b145f(0x1a5)+'a']=AnalyzeFileSastSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0x162)+'le_sast',a18_0x1183cb,async _0x10b0c4=>sastController[a18_0x3b145f(0x152)+a18_0x3b145f(0x1ad)](_0x10b0c4));const a18_0x49a999={};a18_0x49a999[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0x1ab)+a18_0x3b145f(0x14c)+a18_0x3b145f(0x153),a18_0x49a999[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x10d)+a18_0x3b145f(0xde)+a18_0x3b145f(0x1fc)+a18_0x3b145f(0x106)+'urce\x20code\x20'+'files\x20spec'+a18_0x3b145f(0x144)+a18_0x3b145f(0x1c2)+'ute\x20paths.'+a18_0x3b145f(0x13d)+a18_0x3b145f(0x1d6)+a18_0x3b145f(0x133)+a18_0x3b145f(0x187)+'iles\x20(e.g.'+a18_0x3b145f(0xef)+a18_0x3b145f(0x21a)+a18_0x3b145f(0x120)+a18_0x3b145f(0x1df)+'ile\x20vulner'+'abilities.'+a18_0x3b145f(0x124)+a18_0x3b145f(0x17d)+'sId\x27.',a18_0x49a999[a18_0x3b145f(0x1a5)+'a']=AnalyzeFilesSastSchema,server[a18_0x3b145f(0x14f)+'ol']('analyze_fi'+a18_0x3b145f(0x179),a18_0x49a999,async _0x371018=>sastController[a18_0x3b145f(0x152)+a18_0x3b145f(0xbd)](_0x371018));const a18_0x463076={};a18_0x463076['title']=a18_0x3b145f(0x1e0)+a18_0x3b145f(0x13a),a18_0x463076[a18_0x3b145f(0x1f0)+'n']='Initiates\x20'+a18_0x3b145f(0x165)+a18_0x3b145f(0x119)+'\x20analysis\x20'+'on\x20an\x20enti'+a18_0x3b145f(0xd8)+a18_0x3b145f(0x1d1)+'omatically'+'\x20packages\x20'+a18_0x3b145f(0x192)+a18_0x3b145f(0x1a4)+a18_0x3b145f(0x1c9)+a18_0x3b145f(0x16b)+a18_0x3b145f(0x110)+'\x20like\x20node'+'_modules)\x20'+'and\x20upload'+'s\x20them\x20for'+a18_0x3b145f(0xd9)+a18_0x3b145f(0x1ba)+'rity\x20scan.'+a18_0x3b145f(0x124)+'n\x20\x27analysi'+a18_0x3b145f(0x132),a18_0x463076[a18_0x3b145f(0x1a5)+'a']=AnalyzeFolderSastSchema,server[a18_0x3b145f(0x14f)+'ol']('analyze_fo'+a18_0x3b145f(0x1f7),a18_0x463076,async _0xcac116=>sastController[a18_0x3b145f(0xc0)+a18_0x3b145f(0xbf)](_0xcac116));const a18_0x5aaf62={};a18_0x5aaf62[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0xe6)+a18_0x3b145f(0x1d9)+'is',a18_0x5aaf62[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x10d)+a18_0x3b145f(0xde)+'lysis\x20on\x20a'+a18_0x3b145f(0x1d7)+a18_0x3b145f(0x16a)+a18_0x3b145f(0x169)+a18_0x3b145f(0xc5)+'\x20this\x20when'+a18_0x3b145f(0x20f)+a18_0x3b145f(0xf3)+a18_0x3b145f(0x172)+'ed\x20as\x20a\x20ZI'+a18_0x3b145f(0x1f5)+a18_0x3b145f(0x159)+'\x20within\x20th'+'e\x20archive\x20'+a18_0x3b145f(0x1c3)+a18_0x3b145f(0x1c7)+a18_0x3b145f(0xd2)+'\x20\x27analysis'+a18_0x3b145f(0x219),a18_0x5aaf62[a18_0x3b145f(0x1a5)+'a']=AnalyzeZipSastSchema,server['registerTo'+'ol'](a18_0x3b145f(0xf9)+'p_sast',a18_0x5aaf62,async _0x17e75e=>sastController['analyzeZip'+a18_0x3b145f(0x1b0)](_0x17e75e));const a18_0x389e78={};a18_0x389e78[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0x116)+a18_0x3b145f(0x139)+a18_0x3b145f(0x153),a18_0x389e78[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x10d)+a18_0x3b145f(0x17b)+a18_0x3b145f(0x189)+a18_0x3b145f(0x19d)+a18_0x3b145f(0x20e)+a18_0x3b145f(0x100)+a18_0x3b145f(0xe2)+a18_0x3b145f(0x1fd)+a18_0x3b145f(0x1fa)+a18_0x3b145f(0x10f)+a18_0x3b145f(0x154)+a18_0x3b145f(0xdf)+'txt).\x20It\x20i'+'dentifies\x20'+'vulnerable'+'\x20open-sour'+a18_0x3b145f(0x201)+a18_0x3b145f(0x16e)+a18_0x3b145f(0x118)+'s.\x20Returns'+a18_0x3b145f(0x194)+a18_0x3b145f(0xe9),a18_0x389e78[a18_0x3b145f(0x1a5)+'a']=AnalyzeFileScaSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0x162)+a18_0x3b145f(0x117),a18_0x389e78,async _0x4af134=>scaController['analyzeFil'+'eSca'](_0x4af134));const a18_0x1b123c={};a18_0x1b123c[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0x1ab)+a18_0x3b145f(0x13b)+a18_0x3b145f(0x1d8),a18_0x1b123c[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x10d)+a18_0x3b145f(0xbc)+a18_0x3b145f(0x1fc)+a18_0x3b145f(0x12a)+'pendency\x20f'+a18_0x3b145f(0x1c1)+a18_0x3b145f(0x18e)+a18_0x3b145f(0x15f)+a18_0x3b145f(0x16d)+a18_0x3b145f(0x14d)+a18_0x3b145f(0x17c)+a18_0x3b145f(0x18b)+a18_0x3b145f(0x1a9)+a18_0x3b145f(0x196)+a18_0x3b145f(0x1e5)+'.',a18_0x1b123c[a18_0x3b145f(0x1a5)+'a']=AnalyzeFilesScaSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0x162)+a18_0x3b145f(0xf1),a18_0x1b123c,async _0x50a111=>scaController[a18_0x3b145f(0x152)+a18_0x3b145f(0xc9)](_0x50a111));const a18_0x9dc23e={};a18_0x9dc23e[a18_0x3b145f(0x1f4)]='Folder\x20SCA'+a18_0x3b145f(0x1a8),a18_0x9dc23e[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x10d)+a18_0x3b145f(0xf2)+a18_0x3b145f(0x1f6)+a18_0x3b145f(0x1b1)+'older.\x20It\x20'+a18_0x3b145f(0x101)+a18_0x3b145f(0x1b3)+a18_0x3b145f(0x180)+a18_0x3b145f(0x141)+a18_0x3b145f(0x155)+a18_0x3b145f(0x1b9)+a18_0x3b145f(0x214)+a18_0x3b145f(0x1a1)+a18_0x3b145f(0x149)+a18_0x3b145f(0x193)+a18_0x3b145f(0xcc)+a18_0x3b145f(0x145)+a18_0x3b145f(0xc8)+a18_0x3b145f(0x218)+a18_0x3b145f(0xd2)+a18_0x3b145f(0x15d)+a18_0x3b145f(0x219),a18_0x9dc23e[a18_0x3b145f(0x1a5)+'a']=AnalyzeFolderScaSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0x1be)+'lder_sca',a18_0x9dc23e,async _0x55cfd7=>scaController[a18_0x3b145f(0xc0)+'derSca'](_0x55cfd7));const a18_0x491b81={};a18_0x491b81[a18_0x3b145f(0x1f4)]='ZIP\x20File\x20S'+a18_0x3b145f(0x1ec)+'s',a18_0x491b81[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x10d)+a18_0x3b145f(0x1f9)+'n\x20on\x20a\x20ZIP'+a18_0x3b145f(0x11c)+'ontaining\x20'+a18_0x3b145f(0x147)+a18_0x3b145f(0x1e4)+a18_0x3b145f(0xed)+a18_0x3b145f(0xe1)+a18_0x3b145f(0x156)+a18_0x3b145f(0x1c5)+a18_0x3b145f(0x1ce)+a18_0x3b145f(0x216)+'ce\x20risks.\x20'+a18_0x3b145f(0xd2)+a18_0x3b145f(0x15d)+a18_0x3b145f(0x219),a18_0x491b81[a18_0x3b145f(0x1a5)+'a']=AnalyzeZipScaSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0xf9)+'p_sca',a18_0x491b81,async _0x3643d2=>scaController[a18_0x3b145f(0xc6)+a18_0x3b145f(0x148)](_0x3643d2));const a18_0x3bf4ab={};a18_0x3bf4ab[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0x200)+a18_0x3b145f(0x18f)+'ess',a18_0x3bf4ab[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x21f)+'ly\x20check\x20a'+a18_0x3b145f(0x13f)+a18_0x3b145f(0x1bf)+a18_0x3b145f(0x1e6)+a18_0x3b145f(0x1bd)+'te\x20via\x20Pro'+a18_0x3b145f(0x20a)+'fication.\x20'+a18_0x3b145f(0xba)+a18_0x3b145f(0xe0)+a18_0x3b145f(0x1f8)+a18_0x3b145f(0x1ff)+a18_0x3b145f(0xe5)+'YSIS,\x20POST'+a18_0x3b145f(0x174)+a18_0x3b145f(0x1e8)+a18_0x3b145f(0x213)+a18_0x3b145f(0x1d0)+'vided\x20duri'+a18_0x3b145f(0x1ea)+a18_0x3b145f(0xe7)+'e.',a18_0x3bf4ab[a18_0x3b145f(0x1a5)+'a']=TrackAnalysisProgressSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0x104)+a18_0x3b145f(0x135)+'ess',a18_0x3bf4ab,async(_0x562a92,_0x347e25)=>analysisController['trackAnaly'+a18_0x3b145f(0x123)+'s'](_0x562a92,_0x347e25));const a18_0x4ceee9={};function a18_0x6ed2(){const _0x5c96e7=['cts\x20with\x20m','es\x20and\x20lic','ensive\x20rep','ccessfully','e-generato','ady\x20packag','\x20results\x20o','_PROCESS,\x20','Generate\x20S','50460kMMWBQ','dirname','sResults','les_sast','Log\x20file\x20l','an\x20SCA\x20(So','dules\x20or\x20p','n\x20\x27analysi','.\x20Returns\x20',',\x20CVSS),\x20a','ported\x20dep','lysis','search','tailed\x20SCA','type','results.\x20I',')\x20and\x20an\x20A','d\x20set\x20of\x20f','MCP\x20secure','ftware\x20Com','omponent\x20t','ackage\x20man','ng/creatin','sion,\x20lice','ce.\x20Useful','ysis\x20Progr','fies\x20vulne','7429450unultC','the\x20source','cense\x20comp','\x20an\x20\x27analy','ompt','urns\x20an\x20\x27a','r\x20AI\x20agent','gle\x20file\x20(','\x20usage\x20rul','rsal\x20withi','ing,\x20\x27trac','ges.\x20For\x20a','position\x20A','ecure_code','72RYmfAe','l\x20polling\x20','lnerabilit','\x20a\x20brief\x20e','\x20code\x20gene','\x20files\x20(ex','inputSchem','registerRe','\x20is\x20prefer','\x20Analysis','agers.\x20Ret','\x20XSS,\x20and\x20','Multi-File','user','eSast','nce\x20the\x20st','alysis_res','Sast','\x20project\x20f','_progress\x27','or\x20all\x20sup','g\x20analysis','ue\x20without','mimeType','sparrow://','Provides\x20a','files\x20to\x20i','oject\x20secu','sparrow-ru','content','D\x20and\x20upda','analyze_fo','ogress\x20by\x20','combined.l','iles\x20at\x20on','heir\x20absol','for\x20securi','recursive','\x20legacy\x20pr','verity,\x20de','ty\x20flaws.\x20','\x27COMPLETE\x27','cluding\x20co','\x20file\x20path','path\x20trave','re,\x20patche','constructo','ojects\x20for','Official\x20S','s\x20only\x20pro','ry.\x20It\x20aut','\x20source\x20co','iance\x20info','d\x20stage\x20of','260422AtHcCC','r\x20analyzin','\x20ZIP\x20archi','sis','AST\x20Analys','getScaAnal','ysisResult','ults','on\x20Analysi','cation\x20Sec','nd\x20cross-f','Folder\x20SAS','get_analys','getAnalysi','warn','es.\x20Useful','nalysisId\x27','analysis\x20I','\x20for\x20manua','COMPLETE.\x20','is\x20Status','ng\x20the\x20ANA','href','CA\x20Analysi','\x20(Software','\x20a\x20compreh','\x20the\x20corre','descriptio','contents','urity\x20Test','n\x20the\x20code','title','P.\x20It\x20scan','\x20scan\x20on\x20a','lder_sast','INIT,\x20READ','an\x20SCA\x20sca','g.,\x20packag','atic\x20Appli','lysis\x20on\x20m','y\x20file\x20(e.','parrow\x20MCP','Y,\x20PRE_PRO','Track\x20Anal','ce\x20librari','ort\x20with\x20c','d\x20briefing','\x20content\x20o','red.','ill\x20contin','\x20an\x20ongoin','t\x20or\x20a\x20sin','isId\x27\x20for\x20','gress\x20Noti','ctive\x20wait','ode\x20snippe','sStatus','nalysis)\x20o','\x20the\x20proje','\x20once\x20the\x20','ies\x20in\x20SAS','tes.','Progress\x20i','dentify\x20vu','xplanation','\x20open-sour','\x20failed\x20(w','\x20project.\x20','Id\x27.','e\x20or\x20a\x20mod','Checks\x20the','\x20Compositi','lities\x20(se','ic\x20progres','Periodical','delines\x20fo','status\x20is\x20','get_sca_an','Analysis\x20s','own','an\x20SCA\x20ana','esSast','.\x20Provides','derSast','analyzeFol','ce\x20code\x20ba','uri','ctory:','is_status','\x20code.\x20Use','analyzeZip','a\x20SAST\x20(St','the\x20entire','esSca','mkdirSync','tailed\x20SAS','liance\x20ris','de\x20file.\x20U','6FRpBGQ','(((.+)+)+)','messages','t\x20provides','Returns\x20an','connect','like\x20a\x20Con','ocations\x20-','d\x20version\x20','x,\x20and\x20a\x20d','re\x20directo','\x20a\x20full-pr','toString','rabilities','source','3sVaKBU','a\x20SAST\x20ana','uirements.','tages\x20are\x20','zing\x20pre-p','\x20dependenc','ges.\x20Use\x20t','g\x20the\x20chan','CESS,\x20ANAL','ZIP\x20File\x20S','LYSIS\x20stag','\x20It\x20identi','sisId\x27.','631137QqSVGA','\x20vulnerabi','tracking.','\x20for\x20analy','f\x20a\x20single',',\x20a\x20packag','\x20checker\x20i','les_sca','a\x20full\x20SCA','ct\x20is\x20alre','ginal\x20sour','lists\x20(CVE','Checker\x20se','secure-cod','vice','analyze_zi','2372335FYJAmG','an\x20analysi','ndings.','131736FkrqdL','ver\x20starte','es\x20and\x20gui','n\x20a\x20single','searches\x20f','info','ing)\x20analy','track_anal','Get\x20Analys','ultiple\x20so','nce\x20for\x20li','Sparrow\x20MC','\x20current\x20p','an\x20\x27analys','ecure\x20Code','rvice\x20init','Initiates\x20','vious\x20SAST','e.json,\x20po','\x20artifacts','se\x20this\x20fo','\x20analysis\x20','es\x20into\x20th','8fMkOow','initialize','Single\x20Fil','le_sca','ense\x20issue','nsive\x20SAST','erability\x20','role','\x20archive\x20c','CheckerSer','finding\x20vu','s\x20percenta','ule)\x20to\x20fi',',\x20line\x20num','ration\x20ser','sisProgres','\x20Returns\x20a','T\x20analysis','sis\x20on\x20the','Fetches\x20de','nfo):','version','ultiple\x20de','les','text/markd','to\x20get\x20bas','then','existsSync','his\x20after\x20','\x20of\x20the\x20fi','sId\x27.','g\x20a\x20relate','ber,\x20compl','ysis_progr','text','atus\x20is\x20\x27C','k_analysis','e\x20SCA\x20Anal','T\x20Analysis','\x20SCA\x20Analy','7579AKxQJh','\x20Useful\x20fo','P\x20Rules','nalysis\x20pr','alysis\x20Res','endency\x20de','is\x20Results','resolve','ified\x20by\x20t','ks\x20across\x20','ables\x20(ver','dependenci','Sca','ies\x20and\x20li','Automatica','join','\x20SAST\x20Anal','ultiple\x20mo','\x20Service).','registerTo','ialization','brary\x20upda','analyzeFil','ysis','m.xml,\x20req','claration\x20','ackaged\x20or','ed\x20list\x20of','troller\x20or','s\x20the\x20code','\x20categoriz','LETE\x27\x20and\x20','1869680MlUTQr','\x20\x27analysis','e\x20SAST\x20Ana','\x20for\x20proje','I-generate','specific\x20c','analyze_fi','logs','registerPr','a\x20comprehe','rules','generateSe','rity\x20of\x20a\x20','ing\x20source','ve\x20contain','mmon\x20build','error.log'];a18_0x6ed2=function(){return _0x5c96e7;};return a18_0x6ed2();}a18_0x4ceee9[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0x105)+a18_0x3b145f(0x1e9),a18_0x4ceee9[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x21b)+a18_0x3b145f(0x109)+'rogress\x20an'+a18_0x3b145f(0x1d4)+a18_0x3b145f(0x207)+a18_0x3b145f(0x1b4)+'.\x20Use\x20this'+a18_0x3b145f(0x1e7)+a18_0x3b145f(0x1a0)+'to\x20see\x20if\x20'+a18_0x3b145f(0xfb)+'s\x20is\x20\x27COMP'+a18_0x3b145f(0x15b)+a18_0x3b145f(0x12d)+a18_0x3b145f(0x21e)+a18_0x3b145f(0x11f)+a18_0x3b145f(0x19c)+a18_0x3b145f(0x20b)+a18_0x3b145f(0x19b)+a18_0x3b145f(0x138)+a18_0x3b145f(0x1b2)+a18_0x3b145f(0x1a7)+a18_0x3b145f(0x205),a18_0x4ceee9[a18_0x3b145f(0x1a5)+'a']=GetAnalysisStatusSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0x1e1)+a18_0x3b145f(0xc4),a18_0x4ceee9,async _0x1d7dbe=>analysisController[a18_0x3b145f(0x1e2)+a18_0x3b145f(0x20d)](_0x1d7dbe));const a18_0x488260={};a18_0x488260[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0x105)+a18_0x3b145f(0x142),a18_0x488260[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x127)+a18_0x3b145f(0xcb)+a18_0x3b145f(0x125)+a18_0x3b145f(0x173)+a18_0x3b145f(0x1ae)+a18_0x3b145f(0x137)+'OMPLETE\x27.\x20'+a18_0x3b145f(0x1b8)+a18_0x3b145f(0x15a)+a18_0x3b145f(0x157)+a18_0x3b145f(0xeb)+a18_0x3b145f(0x21d)+a18_0x3b145f(0x1c6)+'scription,'+a18_0x3b145f(0x1ca)+a18_0x3b145f(0x121)+a18_0x3b145f(0x134)+a18_0x3b145f(0x1d3)+a18_0x3b145f(0x186)+a18_0x3b145f(0x160)+a18_0x3b145f(0x203)+a18_0x3b145f(0x131)+a18_0x3b145f(0xfc),a18_0x488260[a18_0x3b145f(0x1a5)+'a']=GetAnalysisResultsSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0x1e1)+'is_results',a18_0x488260,async _0x3cd16f=>analysisController[a18_0x3b145f(0x1e2)+a18_0x3b145f(0x178)](_0x3cd16f));const a18_0x1dab13={};a18_0x1dab13[a18_0x3b145f(0x1f4)]='Get\x20SCA\x20An'+a18_0x3b145f(0x140)+a18_0x3b145f(0x1dc),a18_0x1dab13[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x127)+a18_0x3b145f(0x183)+a18_0x3b145f(0x1ed)+a18_0x3b145f(0x21c)+a18_0x3b145f(0x1dd)+'s)\x20results'+a18_0x3b145f(0x210)+a18_0x3b145f(0x221)+a18_0x3b145f(0x1c8)+a18_0x3b145f(0xbe)+a18_0x3b145f(0x1ee)+a18_0x3b145f(0x16f)+a18_0x3b145f(0x202)+a18_0x3b145f(0x18a)+a18_0x3b145f(0x146)+a18_0x3b145f(0x18d)+'nse),\x20vuln'+a18_0x3b145f(0x11a)+a18_0x3b145f(0xf5)+a18_0x3b145f(0x17f)+'nd\x20remedia'+'tion\x20guida'+a18_0x3b145f(0x107)+a18_0x3b145f(0x151)+a18_0x3b145f(0x212),a18_0x1dab13[a18_0x3b145f(0x1a5)+'a']=GetScaAnalysisResultsSchema,server[a18_0x3b145f(0x14f)+'ol'](a18_0x3b145f(0xb9)+a18_0x3b145f(0x1af)+a18_0x3b145f(0x1dc),a18_0x1dab13,async _0x245504=>analysisController[a18_0x3b145f(0x1da)+a18_0x3b145f(0x1db)+'s'](_0x245504));const a18_0x2cc98a={};a18_0x2cc98a['title']=a18_0x3b145f(0x175)+a18_0x3b145f(0x10b),a18_0x2cc98a[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x14a)+'lly\x20genera'+'tes\x20a\x20secu'+a18_0x3b145f(0x1cc)+a18_0x3b145f(0xd6)+'of\x20the\x20ori'+a18_0x3b145f(0xf4)+a18_0x3b145f(0xc1)+'sed\x20on\x20pre'+a18_0x3b145f(0x10e)+a18_0x3b145f(0x112)+a18_0x3b145f(0x185)+a18_0x3b145f(0xd1)+a18_0x3b145f(0x1ef)+'cted\x20code,'+a18_0x3b145f(0x1a2)+a18_0x3b145f(0x215)+a18_0x3b145f(0x131)+a18_0x3b145f(0xd7)+'iff\x20showin'+a18_0x3b145f(0xe4)+a18_0x3b145f(0xe3)+a18_0x3b145f(0x130)+a18_0x3b145f(0x11e)+a18_0x3b145f(0x1a1)+a18_0x3b145f(0x211)+'T.',a18_0x2cc98a[a18_0x3b145f(0x1a5)+'a']=GenerateSecureCodeSchema,server[a18_0x3b145f(0x14f)+'ol']('generate_s'+a18_0x3b145f(0x19e),a18_0x2cc98a,async _0x2d511e=>securityController[a18_0x3b145f(0x167)+'cureCode'](_0x2d511e));const a18_0x26d0d8={};a18_0x26d0d8[a18_0x3b145f(0x1f0)+'n']=a18_0x3b145f(0x1cf)+'parrow\x20MCP'+a18_0x3b145f(0x199)+a18_0x3b145f(0xff)+a18_0x3b145f(0x220)+a18_0x3b145f(0x197)+'s.',a18_0x26d0d8[a18_0x3b145f(0x1b6)]=a18_0x3b145f(0x12c)+a18_0x3b145f(0xbb),server[a18_0x3b145f(0x1a6)+a18_0x3b145f(0xdc)]('sparrow-ru'+a18_0x3b145f(0x12b),a18_0x3b145f(0x1b7)+a18_0x3b145f(0x166),a18_0x26d0d8,async _0x246d8b=>{const _0x4cfde5=a18_0x3b145f,_0xeb9369={};_0xeb9369[_0x4cfde5(0xc2)]=_0x246d8b[_0x4cfde5(0x1eb)],_0xeb9369[_0x4cfde5(0x136)]=SPARROW_RULES,_0xeb9369[_0x4cfde5(0x1b6)]=_0x4cfde5(0x12c)+_0x4cfde5(0xbb);const _0x283baa={};return _0x283baa[_0x4cfde5(0x1f1)]=[_0xeb9369],_0x283baa;});const a18_0x29b2d9={};a18_0x29b2d9[a18_0x3b145f(0x1f4)]=a18_0x3b145f(0x108)+a18_0x3b145f(0x13e),a18_0x29b2d9[a18_0x3b145f(0x1f0)+'n']='Load\x20the\x20S'+a18_0x3b145f(0x1fe)+'\x20usage\x20rul'+a18_0x3b145f(0x113)+'e\x20context.',server[a18_0x3b145f(0x164)+a18_0x3b145f(0x195)](a18_0x3b145f(0x1bb)+a18_0x3b145f(0x12b),a18_0x29b2d9,async()=>{const _0x37840a=a18_0x3b145f,_0x3eb66b={};_0x3eb66b[_0x37840a(0x184)]='text',_0x3eb66b['text']=SPARROW_RULES;const _0x23bd1e={};_0x23bd1e[_0x37840a(0x11b)]=_0x37840a(0x1ac),_0x23bd1e[_0x37840a(0x1bc)]=_0x3eb66b;const _0x17a623={};return _0x17a623[_0x37840a(0xd0)]=[_0x23bd1e],_0x17a623;});const transport=new StdioServerTransport();logger[a18_0x3b145f(0x102)](a18_0x3b145f(0x188)+a18_0x3b145f(0x1a3)+a18_0x3b145f(0x122)+a18_0x3b145f(0xfe)+'d');try{const serverFileDir=a18_0x515ad7[a18_0x3b145f(0x177)](fileURLToPath(import.meta.url)),projectRoot=a18_0x515ad7[a18_0x3b145f(0x143)](serverFileDir,'..'),logsDir=a18_0x515ad7[a18_0x3b145f(0x143)](projectRoot,a18_0x3b145f(0x163));if(!a18_0xbbee1e[a18_0x3b145f(0x12f)](logsDir)){const a18_0x1f4358={};a18_0x1f4358[a18_0x3b145f(0x1c4)]=!![],a18_0xbbee1e[a18_0x3b145f(0xca)](logsDir,a18_0x1f4358);}const combinedPath=a18_0x515ad7['join'](logsDir,a18_0x3b145f(0x1c0)+'og'),errorPath=a18_0x515ad7[a18_0x3b145f(0x14b)](logsDir,a18_0x3b145f(0x16c));logger[a18_0x3b145f(0x102)](a18_0x3b145f(0x17a)+a18_0x3b145f(0xd5)+'\x20combined:'+'\x20'+combinedPath+',\x20error:\x20'+errorPath);}catch(a18_0x23f055){logger[a18_0x3b145f(0x1e3)]('Warning\x20wh'+'ile\x20checki'+a18_0x3b145f(0x18c)+'g\x20log\x20dire'+a18_0x3b145f(0xc3),a18_0x23f055);}analysisService[a18_0x3b145f(0x115)+a18_0x3b145f(0x11d)+a18_0x3b145f(0xf8)]()[a18_0x3b145f(0x12e)](()=>{const _0x3db86d=a18_0x3b145f;logger['info'](_0x3db86d(0xf6)+_0x3db86d(0x10c)+'ialized\x20su'+_0x3db86d(0x170));})['catch'](_0x4759be=>{const _0x28cd93=a18_0x3b145f;logger[_0x28cd93(0x1e3)]('Checker\x20se'+_0x28cd93(0x10c)+_0x28cd93(0x150)+_0x28cd93(0x217)+_0x28cd93(0x206)+_0x28cd93(0x1b5)+_0x28cd93(0xf0)+_0x28cd93(0x128),_0x4759be);}),await server[a18_0x3b145f(0xd3)](transport);
2
+ const a18_0x4e065b=a18_0x12f4;(function(_0x87c7ad,_0x1fc818){const _0x227e02=a18_0x12f4,_0x8faf3c=_0x87c7ad();while(!![]){try{const _0x496e87=parseInt(_0x227e02(0x1df))/0x1+parseInt(_0x227e02(0x20e))/0x2+parseInt(_0x227e02(0x1d0))/0x3*(-parseInt(_0x227e02(0x169))/0x4)+-parseInt(_0x227e02(0x19d))/0x5+parseInt(_0x227e02(0x1fa))/0x6+parseInt(_0x227e02(0x142))/0x7*(parseInt(_0x227e02(0x130))/0x8)+-parseInt(_0x227e02(0x1f1))/0x9;if(_0x496e87===_0x1fc818)break;else _0x8faf3c['push'](_0x8faf3c['shift']());}catch(_0x499863){_0x8faf3c['push'](_0x8faf3c['shift']());}}}(a18_0x1275,0x9db51));const a18_0x55fc2e=(function(){let _0x4c2097=!![];return function(_0x270ea0,_0x1d6955){const _0x4f625d=_0x4c2097?function(){const _0x2f1b4c=a18_0x12f4;if(_0x1d6955){const _0x4f7119=_0x1d6955[_0x2f1b4c(0x20f)](_0x270ea0,arguments);return _0x1d6955=null,_0x4f7119;}}:function(){};return _0x4c2097=![],_0x4f625d;};}()),a18_0x2a32b7=a18_0x55fc2e(this,function(){const _0x413093=a18_0x12f4;return a18_0x2a32b7[_0x413093(0x209)]()[_0x413093(0x1b8)](_0x413093(0x208)+'+$')['toString']()[_0x413093(0x1ca)+'r'](a18_0x2a32b7)[_0x413093(0x1b8)]('(((.+)+)+)'+'+$');});a18_0x2a32b7();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_0x27aa23 from'path';import a18_0x5f4606 from'fs';import{fileURLToPath}from'url';import{SPARROW_RULES}from'./config/constants.js';import{AnalyzeFileSastSchema,AnalyzeFilesSastSchema,AnalyzeFolderSastSchema,AnalyzeZipSastSchema,AnalyzeFileScaSchema,AnalyzeFilesScaSchema,AnalyzeFolderScaSchema,AnalyzeZipScaSchema,TrackAnalysisProgressSchema,GetAnalysisStatusSchema,GetAnalysisResultsSchema,GetScaAnalysisResultsSchema,GenerateSecureCodeSchema}from'./schemas/tool.schemas.js';import{SastController}from'./controllers/sast.controller.js';import{ScaController}from'./controllers/sca.controller.js';import{AnalysisController}from'./controllers/analysis.controller.js';import{SecurityController}from'./controllers/security.controller.js';import{SystemController}from'./controllers/system.controller.js';const a18_0x189bad={};a18_0x189bad['name']=a18_0x4e065b(0x1f0)+a18_0x4e065b(0x10f)+'r',a18_0x189bad['version']=a18_0x4e065b(0x115);const server=new McpServer(a18_0x189bad),analysisService=new AnalysisService(),sastController=new SastController(analysisService),scaController=new ScaController(analysisService),analysisController=new AnalysisController(analysisService),securityController=new SecurityController(analysisService),systemController=new SystemController(),a18_0x4fe5a2={};a18_0x4fe5a2['title']=a18_0x4e065b(0x16d)+a18_0x4e065b(0xde)+a18_0x4e065b(0x17f),a18_0x4fe5a2[a18_0x4e065b(0xd4)+'n']=a18_0x4e065b(0x17c)+a18_0x4e065b(0x1ec)+a18_0x4e065b(0xd1)+a18_0x4e065b(0x10e)+'urity\x20Test'+a18_0x4e065b(0x1e9)+a18_0x4e065b(0x1e2)+'\x20content\x20o'+a18_0x4e065b(0x185)+a18_0x4e065b(0x127)+a18_0x4e065b(0x14f)+a18_0x4e065b(0x217)+a18_0x4e065b(0x1aa)+'g\x20the\x20logi'+'c\x20and\x20secu'+a18_0x4e065b(0x21a)+a18_0x4e065b(0xe9)+a18_0x4e065b(0x176)+a18_0x4e065b(0x18c)+a18_0x4e065b(0x13f)+a18_0x4e065b(0x122)+a18_0x4e065b(0x100)+a18_0x4e065b(0xd0)+a18_0x4e065b(0x136)+'fies\x20vulne'+'rabilities'+'\x20like\x20SQL\x20'+'injection,'+a18_0x4e065b(0x1db)+a18_0x4e065b(0x112)+a18_0x4e065b(0xdb)+a18_0x4e065b(0x204)+a18_0x4e065b(0x1b6)+a18_0x4e065b(0x1f2)+a18_0x4e065b(0x203)+'tracking.',a18_0x4fe5a2[a18_0x4e065b(0x17b)+'a']=AnalyzeFileSastSchema,server[a18_0x4e065b(0xe4)+'ol']('analyze_fi'+'le_sast',a18_0x4fe5a2,async _0x379ad1=>sastController['analyzeFil'+'eSast'](_0x379ad1));const a18_0x1128ca={};function a18_0x1275(){const _0x3e977d=['gle\x20file\x20(','ration\x20ser','trackAnaly','70QgKRbZ','sion,\x20lice','user','analyzeZip','Warning\x20wh','sStatus','ty\x20flaws.\x20','oject\x20secu','agers.\x20Ret','dules\x20or\x20p','sId\x27.','\x20results\x20o','and\x20upload','de\x20file.\x20U','es\x20and\x20lic','ic\x20progres','LYSIS\x20stag','ed\x20as\x20a\x20ZI','\x20Compositi','position\x20A','sis','\x20artifacts','nalysisId\x27','heir\x20absol','Id\x27.','xplanation','gress\x20Noti','abilities.','\x20combined:','an\x20analysi','tes.','ks\x20across\x20','initialize','es\x20and\x20gui','track_anal','iles\x20(e.g.','COMPLETE.\x20','ges.\x20For\x20a','ecure\x20Code','4ZkNeCo','a\x20full\x20SCA','info','of\x20the\x20ori','Single\x20Fil','ysis_progr','tailed\x20SCA',')\x20and\x20an\x20A','a\x20comprehe','\x20a\x20brief\x20e','ified\x20by\x20t','g\x20log\x20dire','ule)\x20to\x20fi','ode\x20snippe','resolve','claration\x20','cts\x20with\x20m','\x20like\x20node','inputSchem','Initiates\x20','\x20for\x20manua','lly\x20genera','lysis','own','re,\x20patche','n\x20on\x20a\x20ZIP','source','te\x20via\x20Pro','f\x20a\x20single','text/markd','\x20\x27analysis','erability\x20','\x20project\x20f','s\x20only\x20pro','ctory:','t\x20or\x20a\x20sin','ultiple\x20de','Log\x20file\x20l','x,\x20and\x20a\x20d','s)\x20results','an\x20SCA\x20ana','nd\x20remedia','is_status','\x20archive\x20c','ady\x20packag','analyze_fi','Fetches\x20de','rvice\x20init','eSca','Y,\x20PRE_PRO','content','mmon\x20build','797205IyjHiY','ZIP\x20File\x20S','ies\x20and\x20li','Automatica','dentifies\x20','\x20current\x20p','T\x20Analysis','\x20dependenc','ue\x20without','\x20scan\x20on\x20a','ecure_code','\x20is\x20prefer','finding\x20vu','r\x20analyzin','iance\x20info','analyze_zi','\x20vulnerabi','red.','nalysis\x20pr','\x20the\x20corre','_modules)\x20','on\x20an\x20enti','recursive','warn','sResults','.\x20Returns\x20','nalysis)\x20o','search','k_analysis','sed\x20on\x20pre','his\x20after\x20','les_sast','.\x20Use\x20this','e\x20context.','lysis\x20on\x20m','messages','\x20usage\x20rul','\x20SCA\x20Analy','ense\x20issue','ct\x20is\x20alre','p_sast','ng\x20the\x20ANA','\x20of\x20the\x20fi','n\x20a\x20single','an\x20SCA\x20(So','constructo','\x20checker\x20i','es\x20into\x20th','ges.\x20Use\x20t','\x20a\x20full-pr','ultiple\x20mo','2867523ffjixc','derSast','d\x20version\x20','tes\x20a\x20secu','ess','m.xml,\x20req','s\x20them\x20for','title','Load\x20the\x20S','ompt','les_sca','\x20XSS,\x20and\x20','existsSync','sisId\x27.','ogress\x20by\x20','1204727anlSXV','error.log','\x20open-sour','sis\x20on\x20the','generateSe','\x20packages\x20',',\x20line\x20num','Periodical','Folder\x20SCA','generate_s','ing)\x20analy','combined.l','ialization','a\x20SAST\x20(St','atus\x20is\x20\x27C','Official\x20S','nce\x20for\x20li','secure-cod','7313472VlTMMX','an\x20\x27analys','logs','D\x20and\x20upda','ort\x20with\x20c','g.,\x20packag','ing,\x20\x27trac','cluding\x20co','pendency\x20f','3283524gnzkgh','parrow\x20MCP','lists\x20(CVE','iles\x20at\x20on','uri','\x20once\x20the\x20','verity,\x20de','\x20Returns\x20a','lnerabilit','isId\x27\x20for\x20','n\x20the\x20code','CA\x20Analysi','rogress\x20an','INIT,\x20READ','(((.+)+)+)','toString','vious\x20SAST','_progress\x27','sparrow-ru','s.\x20Returns','1579976CwLlJB','apply','ultiple\x20so','or\x20all\x20sup','sisProgres',',\x20a\x20packag','d\x20stage\x20of','ported\x20dep','registerRe','se\x20this\x20fo','analyze_fo','ensive\x20rep','rity\x20of\x20a\x20','MCP\x20secure','\x20(Software','\x20a\x20compreh','Sca','uirements.','searches\x20f','ies\x20in\x20SAS','Get\x20SCA\x20An','ber,\x20compl','y\x20file\x20(e.','Sparrow\x20MC','urce\x20code\x20','\x20an\x20ongoin','p_sca','\x20Service).','atic\x20Appli','mkdirSync','LETE\x27\x20and\x20','descriptio','Checker\x20se','\x20this\x20when','rules','cureCode','g\x20a\x20relate','ults','rsal\x20withi','ng/creatin','ce\x20code\x20ba','e\x20SAST\x20Ana','g\x20the\x20chan','fication.\x20','\x20code.\x20Use','results.\x20I','\x20legacy\x20pr','registerTo','t\x20provides','\x20for\x20analy','ill\x20contin','nfo):','specific\x20c','r\x20AI\x20agent','\x20for\x20proje','iff\x20showin','ables\x20(ver','tages\x20are\x20','\x20files\x20(ex','nd\x20cross-f','es.\x20Useful','ialized\x20su','ly\x20check\x20a','re\x20directo','AST\x20Analys','analyzeFol','s\x20percenta','files\x20to\x20i','ysisResult','d\x20briefing','Track\x20Anal','connect','to\x20get\x20bas','lder_sast','\x20within\x20th','troller\x20or','ce\x20risks.\x20','ce\x20librari','join','Get\x20Analys','\x20code\x20gene','rity\x20scan.','endency\x20de','\x20SAST\x20Anal','liance\x20ris','ysis','Returns\x20an','n\x20\x27analysi','\x20categoriz','cation\x20Sec','e-generato','les','ve\x20contain','path\x20trave','an\x20SCA\x20sca','getScaAnal','1.0.0','vided\x20duri','dependenci','lder_sca','ry.\x20It\x20aut','get_sca_an','cense\x20comp','text','scription,','P\x20Rules','get_analys','getAnalysi','\x20project.\x20','like\x20a\x20Con','ojects\x20for','e\x20or\x20a\x20mod','is\x20Results','ginal\x20sour','\x20source\x20co','\x20ZIP\x20archi','nsive\x20SAST','the\x20entire','analyzeFil','mimeType','derSca','catch','ackaged\x20or','25512oNsIhh','\x20analysis\x20','CheckerSer','T\x20analysis','ce.\x20Useful','le_sca','\x20It\x20identi','tailed\x20SAS','urns\x20an\x20\x27a','nce\x20the\x20st','OMPLETE\x27.\x20','.\x20Provides','then','delines\x20fo','dentify\x20vu'];a18_0x1275=function(){return _0x3e977d;};return a18_0x1275();}a18_0x1128ca[a18_0x4e065b(0x1d7)]='Multi-File'+a18_0x4e065b(0x108)+a18_0x4e065b(0x10a),a18_0x1128ca[a18_0x4e065b(0xd4)+'n']='Initiates\x20'+'a\x20SAST\x20ana'+a18_0x4e065b(0x1bf)+a18_0x4e065b(0x210)+a18_0x4e065b(0xcd)+'files\x20spec'+a18_0x4e065b(0x173)+a18_0x4e065b(0x159)+'ute\x20paths.'+'\x20Useful\x20fo'+a18_0x4e065b(0x1aa)+a18_0x4e065b(0xd9)+'d\x20set\x20of\x20f'+a18_0x4e065b(0x165)+a18_0x4e065b(0x213)+a18_0x4e065b(0x124)+a18_0x4e065b(0x175)+a18_0x4e065b(0xf0)+'ile\x20vulner'+a18_0x4e065b(0x15d)+a18_0x4e065b(0x201)+a18_0x4e065b(0x10c)+a18_0x4e065b(0x14c),a18_0x1128ca[a18_0x4e065b(0x17b)+'a']=AnalyzeFilesSastSchema,server[a18_0x4e065b(0xe4)+'ol'](a18_0x4e065b(0x196)+a18_0x4e065b(0x1bc),a18_0x1128ca,async _0x5b8b05=>sastController['analyzeFil'+'esSast'](_0x5b8b05));const a18_0x25a9fa={};a18_0x25a9fa[a18_0x4e065b(0x1d7)]='Folder\x20SAS'+a18_0x4e065b(0x1a3),a18_0x25a9fa[a18_0x4e065b(0xd4)+'n']=a18_0x4e065b(0x17c)+a18_0x4e065b(0x171)+a18_0x4e065b(0x129)+a18_0x4e065b(0x131)+a18_0x4e065b(0x1b2)+a18_0x4e065b(0xf4)+a18_0x4e065b(0x119)+'omatically'+a18_0x4e065b(0x1e4)+'the\x20source'+a18_0x4e065b(0xef)+a18_0x4e065b(0x1f8)+a18_0x4e065b(0x19c)+a18_0x4e065b(0x157)+a18_0x4e065b(0x17a)+a18_0x4e065b(0x1b1)+a18_0x4e065b(0x14e)+a18_0x4e065b(0x1d6)+a18_0x4e065b(0x1ce)+a18_0x4e065b(0x149)+a18_0x4e065b(0x106)+a18_0x4e065b(0x201)+'n\x20\x27analysi'+a18_0x4e065b(0x14c),a18_0x25a9fa[a18_0x4e065b(0x17b)+'a']=AnalyzeFolderSastSchema,server[a18_0x4e065b(0xe4)+'ol'](a18_0x4e065b(0x218)+a18_0x4e065b(0xfe),a18_0x25a9fa,async _0x2347bc=>sastController[a18_0x4e065b(0xf6)+a18_0x4e065b(0x1d1)](_0x2347bc));const a18_0x590a86={};a18_0x590a86['title']='ZIP\x20File\x20S'+a18_0x4e065b(0xf5)+'is',a18_0x590a86['descriptio'+'n']=a18_0x4e065b(0x17c)+'a\x20SAST\x20ana'+'lysis\x20on\x20a'+a18_0x4e065b(0x128)+a18_0x4e065b(0x111)+'ing\x20source'+a18_0x4e065b(0xe1)+a18_0x4e065b(0xd6)+'\x20the\x20proje'+a18_0x4e065b(0x1c4)+a18_0x4e065b(0x195)+a18_0x4e065b(0x153)+'P.\x20It\x20scan'+'s\x20the\x20code'+a18_0x4e065b(0xff)+'e\x20archive\x20'+'for\x20securi'+a18_0x4e065b(0x148)+a18_0x4e065b(0x10b)+a18_0x4e065b(0x187)+a18_0x4e065b(0x15a),a18_0x590a86['inputSchem'+'a']=AnalyzeZipSastSchema,server[a18_0x4e065b(0xe4)+'ol'](a18_0x4e065b(0x1ac)+a18_0x4e065b(0x1c5),a18_0x590a86,async _0x183f07=>sastController[a18_0x4e065b(0x145)+'Sast'](_0x183f07));const a18_0x381f4c={};a18_0x381f4c[a18_0x4e065b(0x1d7)]='Single\x20Fil'+'e\x20SCA\x20Anal'+a18_0x4e065b(0x10a),a18_0x381f4c[a18_0x4e065b(0xd4)+'n']=a18_0x4e065b(0x17c)+a18_0x4e065b(0x1c9)+'ftware\x20Com'+a18_0x4e065b(0x155)+a18_0x4e065b(0x1b7)+a18_0x4e065b(0x1c8)+a18_0x4e065b(0x1a4)+a18_0x4e065b(0xcb)+a18_0x4e065b(0x1f6)+'e.json,\x20po'+a18_0x4e065b(0x1d5)+a18_0x4e065b(0x21f)+'txt).\x20It\x20i'+a18_0x4e065b(0x1a1)+'vulnerable'+'\x20open-sour'+a18_0x4e065b(0x102)+a18_0x4e065b(0x150)+a18_0x4e065b(0x1c3)+a18_0x4e065b(0x20d)+'\x20an\x20\x27analy'+a18_0x4e065b(0x1dd),a18_0x381f4c[a18_0x4e065b(0x17b)+'a']=AnalyzeFileScaSchema,server['registerTo'+'ol']('analyze_fi'+a18_0x4e065b(0x135),a18_0x381f4c,async _0x72eb99=>scaController[a18_0x4e065b(0x12b)+a18_0x4e065b(0x199)](_0x72eb99));const a18_0x225108={};a18_0x225108[a18_0x4e065b(0x1d7)]='Multi-File'+a18_0x4e065b(0x1c2)+a18_0x4e065b(0x156),a18_0x225108[a18_0x4e065b(0xd4)+'n']=a18_0x4e065b(0x17c)+a18_0x4e065b(0x191)+'lysis\x20on\x20m'+a18_0x4e065b(0x18d)+a18_0x4e065b(0x1f9)+a18_0x4e065b(0x1fd)+a18_0x4e065b(0x134)+a18_0x4e065b(0xeb)+a18_0x4e065b(0x179)+a18_0x4e065b(0x1cf)+a18_0x4e065b(0x14b)+'ackage\x20man'+a18_0x4e065b(0x14a)+a18_0x4e065b(0x138)+a18_0x4e065b(0x158)+'.',a18_0x225108[a18_0x4e065b(0x17b)+'a']=AnalyzeFilesScaSchema,server[a18_0x4e065b(0xe4)+'ol'](a18_0x4e065b(0x196)+a18_0x4e065b(0x1da),a18_0x225108,async _0xdc7b41=>scaController['analyzeFil'+'esSca'](_0xdc7b41));const a18_0x5565f4={};a18_0x5565f4[a18_0x4e065b(0x1d7)]=a18_0x4e065b(0x1e7)+'\x20Analysis',a18_0x5565f4[a18_0x4e065b(0xd4)+'n']=a18_0x4e065b(0x17c)+a18_0x4e065b(0x16a)+a18_0x4e065b(0x1a6)+a18_0x4e065b(0x189)+'older.\x20It\x20'+a18_0x4e065b(0x220)+a18_0x4e065b(0x211)+a18_0x4e065b(0x215)+a18_0x4e065b(0x107)+a18_0x4e065b(0x178)+a18_0x4e065b(0xf8)+a18_0x4e065b(0x13e)+a18_0x4e065b(0x202)+a18_0x4e065b(0x19f)+a18_0x4e065b(0x11b)+a18_0x4e065b(0x109)+a18_0x4e065b(0x161)+a18_0x4e065b(0x12a)+a18_0x4e065b(0x121)+a18_0x4e065b(0x10b)+a18_0x4e065b(0x187)+a18_0x4e065b(0x15a),a18_0x5565f4[a18_0x4e065b(0x17b)+'a']=AnalyzeFolderScaSchema,server[a18_0x4e065b(0xe4)+'ol'](a18_0x4e065b(0x218)+a18_0x4e065b(0x118),a18_0x5565f4,async _0x4f3d7e=>scaController[a18_0x4e065b(0xf6)+a18_0x4e065b(0x12d)](_0x4f3d7e));const a18_0x47182a={};a18_0x47182a[a18_0x4e065b(0x1d7)]=a18_0x4e065b(0x19e)+a18_0x4e065b(0x205)+'s',a18_0x47182a[a18_0x4e065b(0xd4)+'n']=a18_0x4e065b(0x17c)+a18_0x4e065b(0x113)+a18_0x4e065b(0x182)+a18_0x4e065b(0x194)+'ontaining\x20'+a18_0x4e065b(0x117)+a18_0x4e065b(0xf1)+a18_0x4e065b(0xe6)+'zing\x20pre-p'+a18_0x4e065b(0x12f)+a18_0x4e065b(0xe3)+a18_0x4e065b(0x123)+a18_0x4e065b(0x1e1)+a18_0x4e065b(0x101)+a18_0x4e065b(0x10b)+a18_0x4e065b(0x187)+a18_0x4e065b(0x15a),a18_0x47182a[a18_0x4e065b(0x17b)+'a']=AnalyzeZipScaSchema,server['registerTo'+'ol'](a18_0x4e065b(0x1ac)+a18_0x4e065b(0xcf),a18_0x47182a,async _0x1eff54=>scaController[a18_0x4e065b(0x145)+a18_0x4e065b(0x21e)](_0x1eff54));const a18_0x2ad696={};a18_0x2ad696['title']=a18_0x4e065b(0xfb)+'ysis\x20Progr'+a18_0x4e065b(0x1d4),a18_0x2ad696[a18_0x4e065b(0xd4)+'n']=a18_0x4e065b(0x1e6)+a18_0x4e065b(0xf3)+a18_0x4e065b(0x1af)+a18_0x4e065b(0x1de)+'analysis\x20I'+a18_0x4e065b(0x1f4)+a18_0x4e065b(0x184)+a18_0x4e065b(0x15c)+a18_0x4e065b(0xe0)+'Analysis\x20s'+a18_0x4e065b(0xee)+a18_0x4e065b(0x207)+a18_0x4e065b(0x19a)+'CESS,\x20ANAL'+'YSIS,\x20POST'+'_PROCESS,\x20'+a18_0x4e065b(0x166)+'Progress\x20i'+a18_0x4e065b(0x18a)+a18_0x4e065b(0x116)+a18_0x4e065b(0x1c6)+a18_0x4e065b(0x152)+'e.',a18_0x2ad696[a18_0x4e065b(0x17b)+'a']=TrackAnalysisProgressSchema,server[a18_0x4e065b(0xe4)+'ol'](a18_0x4e065b(0x164)+a18_0x4e065b(0x16e)+'ess',a18_0x2ad696,async(_0x298f0b,_0x3a3518)=>analysisController[a18_0x4e065b(0x141)+a18_0x4e065b(0x212)+'s'](_0x298f0b,_0x3a3518));const a18_0x1a8c96={};a18_0x1a8c96[a18_0x4e065b(0x1d7)]=a18_0x4e065b(0x104)+'is\x20Status',a18_0x1a8c96[a18_0x4e065b(0xd4)+'n']='Checks\x20the'+a18_0x4e065b(0x1a2)+a18_0x4e065b(0x206)+a18_0x4e065b(0x214)+a18_0x4e065b(0xce)+'g\x20analysis'+a18_0x4e065b(0x1bd)+a18_0x4e065b(0x17d)+'l\x20polling\x20'+'to\x20see\x20if\x20'+a18_0x4e065b(0x15f)+'s\x20is\x20\x27COMP'+a18_0x4e065b(0xd3)+a18_0x4e065b(0xfd)+a18_0x4e065b(0x151)+a18_0x4e065b(0xf7)+a18_0x4e065b(0x167)+'ctive\x20wait'+a18_0x4e065b(0x1f7)+a18_0x4e065b(0x1b9)+a18_0x4e065b(0x20b)+a18_0x4e065b(0x1a8)+a18_0x4e065b(0x1ae),a18_0x1a8c96[a18_0x4e065b(0x17b)+'a']=GetAnalysisStatusSchema,server[a18_0x4e065b(0xe4)+'ol']('get_analys'+a18_0x4e065b(0x193),a18_0x1a8c96,async _0x22a8d3=>analysisController['getAnalysi'+a18_0x4e065b(0x147)](_0x22a8d3));const a18_0x3f81b2={};a18_0x3f81b2[a18_0x4e065b(0x1d7)]=a18_0x4e065b(0x104)+a18_0x4e065b(0x125),a18_0x3f81b2[a18_0x4e065b(0xd4)+'n']='Fetches\x20de'+a18_0x4e065b(0x137)+a18_0x4e065b(0x133)+a18_0x4e065b(0x14d)+a18_0x4e065b(0x139)+a18_0x4e065b(0x1ed)+a18_0x4e065b(0x13a)+'Provides\x20a'+a18_0x4e065b(0x10d)+'ed\x20list\x20of'+a18_0x4e065b(0x1ad)+'lities\x20(se'+a18_0x4e065b(0x200)+a18_0x4e065b(0x11d)+'\x20file\x20path'+a18_0x4e065b(0x1e5)+a18_0x4e065b(0xca)+a18_0x4e065b(0x1ab)+a18_0x4e065b(0x170)+'I-generate'+a18_0x4e065b(0xfa)+'\x20of\x20the\x20fi'+'ndings.',a18_0x3f81b2['inputSchem'+'a']=GetAnalysisResultsSchema,server['registerTo'+'ol'](a18_0x4e065b(0x11f)+'is_results',a18_0x3f81b2,async _0x15d131=>analysisController[a18_0x4e065b(0x120)+a18_0x4e065b(0x1b5)](_0x15d131));const a18_0x3d2163={};a18_0x3d2163[a18_0x4e065b(0x1d7)]=a18_0x4e065b(0x222)+'alysis\x20Res'+a18_0x4e065b(0xda),a18_0x3d2163['descriptio'+'n']=a18_0x4e065b(0x197)+a18_0x4e065b(0x16f)+a18_0x4e065b(0x21c)+a18_0x4e065b(0x154)+'on\x20Analysi'+a18_0x4e065b(0x190)+a18_0x4e065b(0x1ff)+'status\x20is\x20'+'\x27COMPLETE\x27'+a18_0x4e065b(0x13b)+a18_0x4e065b(0x21d)+a18_0x4e065b(0x219)+a18_0x4e065b(0x1f5)+'omponent\x20t'+a18_0x4e065b(0xed)+a18_0x4e065b(0x143)+'nse),\x20vuln'+a18_0x4e065b(0x188)+a18_0x4e065b(0x1fc)+',\x20CVSS),\x20a'+a18_0x4e065b(0x192)+'tion\x20guida'+a18_0x4e065b(0x1ef)+'brary\x20upda'+a18_0x4e065b(0x160),a18_0x3d2163[a18_0x4e065b(0x17b)+'a']=GetScaAnalysisResultsSchema,server['registerTo'+'ol'](a18_0x4e065b(0x11a)+'alysis_res'+a18_0x4e065b(0xda),a18_0x3d2163,async _0x58dc71=>analysisController[a18_0x4e065b(0x114)+a18_0x4e065b(0xf9)+'s'](_0x58dc71));const a18_0x36135d={};a18_0x36135d['title']='Generate\x20S'+a18_0x4e065b(0x168),a18_0x36135d['descriptio'+'n']=a18_0x4e065b(0x1a0)+a18_0x4e065b(0x17e)+a18_0x4e065b(0x1d3)+a18_0x4e065b(0x181)+a18_0x4e065b(0x1d2)+a18_0x4e065b(0x16c)+a18_0x4e065b(0x126)+a18_0x4e065b(0xdd)+a18_0x4e065b(0x1ba)+a18_0x4e065b(0x20a)+a18_0x4e065b(0x131)+a18_0x4e065b(0xe2)+a18_0x4e065b(0xe5)+a18_0x4e065b(0x1b0)+'cted\x20code,'+a18_0x4e065b(0x172)+a18_0x4e065b(0x15b)+a18_0x4e065b(0x1c7)+a18_0x4e065b(0x18f)+a18_0x4e065b(0xec)+a18_0x4e065b(0xdf)+a18_0x4e065b(0x1cd)+a18_0x4e065b(0x1bb)+a18_0x4e065b(0x1a9)+a18_0x4e065b(0x202)+a18_0x4e065b(0x221)+'T.',a18_0x36135d['inputSchem'+'a']=GenerateSecureCodeSchema,server[a18_0x4e065b(0xe4)+'ol'](a18_0x4e065b(0x1e8)+a18_0x4e065b(0x1a7),a18_0x36135d,async _0x246297=>securityController[a18_0x4e065b(0x1e3)+a18_0x4e065b(0xd8)](_0x246297));const a18_0x5d3e17={};function a18_0x12f4(_0x35ea50,_0x8f81cc){_0x35ea50=_0x35ea50-0xca;const _0x5affb6=a18_0x1275();let _0x2a32b7=_0x5affb6[_0x35ea50];return _0x2a32b7;}a18_0x5d3e17[a18_0x4e065b(0xd4)+'n']=a18_0x4e065b(0x1ee)+a18_0x4e065b(0x1fb)+a18_0x4e065b(0x1c1)+a18_0x4e065b(0x163)+a18_0x4e065b(0x13d)+a18_0x4e065b(0xea)+'s.',a18_0x5d3e17[a18_0x4e065b(0x12c)]=a18_0x4e065b(0x186)+'own',server[a18_0x4e065b(0x216)+a18_0x4e065b(0x183)](a18_0x4e065b(0x20c)+a18_0x4e065b(0x110),'sparrow://'+a18_0x4e065b(0xd7),a18_0x5d3e17,async _0x1db6a7=>{const _0x2256d9=a18_0x4e065b,_0x24a37e={};_0x24a37e[_0x2256d9(0x1fe)]=_0x1db6a7['href'],_0x24a37e[_0x2256d9(0x11c)]=SPARROW_RULES,_0x24a37e[_0x2256d9(0x12c)]='text/markd'+_0x2256d9(0x180);const _0x3a28ba={};return _0x3a28ba['contents']=[_0x24a37e],_0x3a28ba;});const a18_0xe7bb15={};a18_0xe7bb15[a18_0x4e065b(0x1d7)]=a18_0x4e065b(0xcc)+a18_0x4e065b(0x11e),a18_0xe7bb15[a18_0x4e065b(0xd4)+'n']=a18_0x4e065b(0x1d8)+a18_0x4e065b(0x1fb)+'\x20usage\x20rul'+a18_0x4e065b(0x1cc)+a18_0x4e065b(0x1be),server['registerPr'+a18_0x4e065b(0x1d9)]('sparrow-ru'+'les',a18_0xe7bb15,async()=>{const _0x5cb4e2=a18_0x4e065b,_0x5935ae={};_0x5935ae['type']=_0x5cb4e2(0x11c),_0x5935ae['text']=SPARROW_RULES;const _0x545b07={};_0x545b07['role']=_0x5cb4e2(0x144),_0x545b07[_0x5cb4e2(0x19b)]=_0x5935ae;const _0x5cc7f0={};return _0x5cc7f0[_0x5cb4e2(0x1c0)]=[_0x545b07],_0x5cc7f0;});const transport=new StdioServerTransport();logger[a18_0x4e065b(0x16b)](a18_0x4e065b(0x21b)+a18_0x4e065b(0x105)+a18_0x4e065b(0x140)+'ver\x20starte'+'d');try{const serverFileDir=a18_0x27aa23['dirname'](fileURLToPath(import.meta.url)),projectRoot=a18_0x27aa23[a18_0x4e065b(0x177)](serverFileDir,'..'),logsDir=a18_0x27aa23['resolve'](projectRoot,a18_0x4e065b(0x1f3));if(!a18_0x5f4606[a18_0x4e065b(0x1dc)](logsDir)){const a18_0xca083d={};a18_0xca083d[a18_0x4e065b(0x1b3)]=!![],a18_0x5f4606[a18_0x4e065b(0xd2)](logsDir,a18_0xca083d);}const combinedPath=a18_0x27aa23[a18_0x4e065b(0x103)](logsDir,a18_0x4e065b(0x1ea)+'og'),errorPath=a18_0x27aa23['join'](logsDir,a18_0x4e065b(0x1e0));logger['info'](a18_0x4e065b(0x18e)+'ocations\x20-'+a18_0x4e065b(0x15e)+'\x20'+combinedPath+',\x20error:\x20'+errorPath);}catch(a18_0x4cb7db){logger[a18_0x4e065b(0x1b4)](a18_0x4e065b(0x146)+'ile\x20checki'+a18_0x4e065b(0xdc)+a18_0x4e065b(0x174)+a18_0x4e065b(0x18b),a18_0x4cb7db);}analysisService[a18_0x4e065b(0x162)+a18_0x4e065b(0x132)+'vice']()[a18_0x4e065b(0x13c)](()=>{const _0x1a86d8=a18_0x4e065b;logger[_0x1a86d8(0x16b)]('Checker\x20se'+_0x1a86d8(0x198)+_0x1a86d8(0xf2)+'ccessfully');})[a18_0x4e065b(0x12e)](_0x5e42fa=>{const _0x5035a1=a18_0x4e065b;logger[_0x5035a1(0x1b4)](_0x5035a1(0xd5)+_0x5035a1(0x198)+_0x5035a1(0x1eb)+'\x20failed\x20(w'+_0x5035a1(0xe7)+_0x5035a1(0x1a5)+_0x5035a1(0x1cb)+_0x5035a1(0xe8),_0x5e42fa);}),await server[a18_0x4e065b(0xfc)](transport);
@@ -1 +1 @@
1
- const a31_0xe6d8ea=a31_0x5447;(function(_0x208236,_0x43b6cb){const _0x3a7fdc=a31_0x5447,_0x38feb5=_0x208236();while(!![]){try{const _0x5004e8=parseInt(_0x3a7fdc(0xea))/0x1+-parseInt(_0x3a7fdc(0xdf))/0x2*(parseInt(_0x3a7fdc(0xce))/0x3)+-parseInt(_0x3a7fdc(0xde))/0x4+parseInt(_0x3a7fdc(0xaf))/0x5*(parseInt(_0x3a7fdc(0xec))/0x6)+-parseInt(_0x3a7fdc(0xe1))/0x7*(-parseInt(_0x3a7fdc(0xe9))/0x8)+parseInt(_0x3a7fdc(0xc5))/0x9+-parseInt(_0x3a7fdc(0xdd))/0xa;if(_0x5004e8===_0x43b6cb)break;else _0x38feb5['push'](_0x38feb5['shift']());}catch(_0x1b2c5e){_0x38feb5['push'](_0x38feb5['shift']());}}}(a31_0x3342,0x49019));const a31_0x50fecd=(function(){let _0x4a2ea6=!![];return function(_0x1ff0c1,_0x1842e9){const _0x4205a7=_0x4a2ea6?function(){const _0x487134=a31_0x5447;if(_0x1842e9){const _0x8f7943=_0x1842e9[_0x487134(0xcf)](_0x1ff0c1,arguments);return _0x1842e9=null,_0x8f7943;}}:function(){};return _0x4a2ea6=![],_0x4205a7;};}()),a31_0x423081=a31_0x50fecd(this,function(){const _0x47d2a9=a31_0x5447,_0x57bdba={};_0x57bdba['FaHiC']='(((.+)+)+)'+'+$';const _0x22e3dc=_0x57bdba;return a31_0x423081[_0x47d2a9(0xb6)]()[_0x47d2a9(0xd0)](_0x47d2a9(0xc0)+'+$')[_0x47d2a9(0xb6)]()[_0x47d2a9(0xc4)+'r'](a31_0x423081)['search'](_0x22e3dc[_0x47d2a9(0xdb)]);});function a31_0x3342(){const _0xec9cc7=['zip','test-token','Error\x20impo','../../util','unstable_m','ot\x20exists','../../conf','mkdirSync','1041aFuhoO','apply','search','Value','default','ckerServic','exports:','http://che','clearAllMo','initialize','checkersDi','cks','../checker','FaHiC','http://tes','11374110hmEThH','897000OdiFMI','2578AEZzWE','existsSync','171395dBJdck','sparrow','t-api','ckers-dl','ig/appConf','vice','e:\x20module\x20','s/logger.j','184helblW','533638ubSzxq','toBe','4038LqdlCu','edValue','get','ckers\x20if\x20n','ockModule','3235IEmpoU','should\x20att','baseUrl','checkersUr','import\x20Che','CheckerSer','kerService','toString','tialize\x20wi','Failed\x20to\x20','th\x20provide','.service.j','error','adm-zip','mockResolv','d\x20director','rting\x20Chec','(((.+)+)+)','ig.js','Called','ZSyDm','constructo','5181777ntjdXY'];a31_0x3342=function(){return _0xec9cc7;};return a31_0x3342();}a31_0x423081();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAxios={'get':jest['fn'](),'post':jest['fn']()};jest[a31_0xe6d8ea(0xca)+a31_0xe6d8ea(0xae)]('axios',()=>({'default':mockAxios})),jest[a31_0xe6d8ea(0xca)+a31_0xe6d8ea(0xae)]('fs',()=>({'default':{'existsSync':jest['fn'](),'readdirSync':jest['fn'](),'mkdirSync':jest['fn'](),'writeFileSync':jest['fn'](),'readFileSync':jest['fn'](),'unlinkSync':jest['fn'](),'statSync':jest['fn'](),'rmSync':jest['fn']()}})),jest['unstable_m'+'ockModule'](a31_0xe6d8ea(0xbc),()=>{const _0x544945=a31_0xe6d8ea;return{'default':jest['fn'](()=>({'extractAllTo':jest['fn'](),'getEntries':jest['fn']()['mockReturn'+_0x544945(0xd1)]([])}))};});const a31_0x4b224c={};function a31_0x5447(_0x4f28fa,_0x9ccb0){_0x4f28fa=_0x4f28fa-0xac;const _0x53b966=a31_0x3342();let _0x423081=_0x53b966[_0x4f28fa];return _0x423081;}a31_0x4b224c[a31_0xe6d8ea(0xb1)]=a31_0xe6d8ea(0xdc)+a31_0xe6d8ea(0xe3),a31_0x4b224c['apiKey']=a31_0xe6d8ea(0xc7);const a31_0x286a28={};a31_0x286a28[a31_0xe6d8ea(0xe2)]=a31_0x4b224c,a31_0x286a28[a31_0xe6d8ea(0xb2)+'l']=a31_0xe6d8ea(0xd5)+a31_0xe6d8ea(0xe4),jest[a31_0xe6d8ea(0xca)+a31_0xe6d8ea(0xae)](a31_0xe6d8ea(0xcc)+a31_0xe6d8ea(0xe5)+a31_0xe6d8ea(0xc1),()=>({'appConfig':a31_0x286a28})),jest['unstable_m'+a31_0xe6d8ea(0xae)](a31_0xe6d8ea(0xc9)+a31_0xe6d8ea(0xe8)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn'](),'debug':jest['fn']()}})),describe(a31_0xe6d8ea(0xb4)+'vice',()=>{const _0x524f6d=a31_0xe6d8ea,_0x4dcc04={'ZSyDm':function(_0x2bb78f,_0x122825){return _0x2bb78f(_0x122825);}};let _0xa9374e,_0x492a68;const _0x16c757='/tmp/test-'+'checkers';beforeAll(async()=>{const _0x562d0f=a31_0x5447;try{const _0x445660=await import(_0x562d0f(0xda)+_0x562d0f(0xba)+'s');_0xa9374e=_0x445660[_0x562d0f(0xb4)+_0x562d0f(0xe6)];if(!_0xa9374e){console[_0x562d0f(0xbb)](_0x562d0f(0xb8)+_0x562d0f(0xb3)+_0x562d0f(0xd3)+_0x562d0f(0xe7)+_0x562d0f(0xd4),Object['keys'](_0x445660));throw new Error(_0x562d0f(0xb4)+'vice\x20is\x20un'+'defined\x20af'+'ter\x20import');}}catch(_0x8cc21a){console[_0x562d0f(0xbb)](_0x562d0f(0xc8)+_0x562d0f(0xbf)+_0x562d0f(0xb5)+':',_0x8cc21a);throw _0x8cc21a;}}),beforeEach(()=>{const _0x7bb714=a31_0x5447;jest[_0x7bb714(0xd6)+_0x7bb714(0xd9)](),_0xa9374e&&(_0x492a68=new _0xa9374e(_0x16c757));}),it('should\x20ini'+_0x524f6d(0xb7)+_0x524f6d(0xb9)+_0x524f6d(0xbe)+'y',()=>{const _0x25a074=_0x524f6d;expect(_0x492a68[_0x25a074(0xd8)+'r'])[_0x25a074(0xeb)](_0x16c757);}),it(_0x524f6d(0xb0)+'empt\x20to\x20do'+'wnload\x20che'+_0x524f6d(0xad)+_0x524f6d(0xcb),async()=>{const _0x2ad571=_0x524f6d,_0x1b1bf3=(await import('fs'))[_0x2ad571(0xd2)];_0x1b1bf3[_0x2ad571(0xe0)]['mockReturn'+_0x2ad571(0xd1)](![]),mockAxios[_0x2ad571(0xac)][_0x2ad571(0xbd)+_0x2ad571(0xed)]({'data':Buffer['from'](_0x2ad571(0xc6))}),await _0x492a68[_0x2ad571(0xd7)](),expect(mockAxios[_0x2ad571(0xac)])['toHaveBeen'+_0x2ad571(0xc2)](),_0x4dcc04[_0x2ad571(0xc3)](expect,_0x1b1bf3[_0x2ad571(0xcd)])['toHaveBeen'+_0x2ad571(0xc2)]();});});
1
+ function a31_0x1a89(){const _0x25bbe7=['default','e:\x20module\x20','../../util','initialize','th\x20provide','s/logger.j','axios','NAdOL','ckers\x20if\x20n','(((.+)+)+)','defined\x20af','checkersDi','ckerServic','mockReturn','t-api','checkersUr','mkdirSync','toString','../checker','ot\x20exists','5oMRPrr','2678823QZASGt','cks','error','checkers','d\x20director','from','1359588RaUTEr','zip','363652Dqxxew','.service.j','baseUrl','toBe','ockModule','import\x20Che','empt\x20to\x20do','/tmp/test-','ig/appConf','vice\x20is\x20un','rting\x20Chec','sparrow','Called','http://che','constructo','CheckerSer','toHaveBeen','edValue','Value','kerService','3168088udZfWU','exports:','ckers-dl','apply','Error\x20impo','../../conf','unstable_m','tialize\x20wi','190264ZulDmW','Failed\x20to\x20','vice','8654PPWEhV','21XWlLpC','1870002hXwkEA','should\x20ini','search','get','test-token'];a31_0x1a89=function(){return _0x25bbe7;};return a31_0x1a89();}function a31_0x13fe(_0x3ea75c,_0x13af8f){_0x3ea75c=_0x3ea75c-0x175;const _0x5d0698=a31_0x1a89();let _0x26f8b1=_0x5d0698[_0x3ea75c];return _0x26f8b1;}const a31_0x1c0f30=a31_0x13fe;(function(_0x242f18,_0x59b98c){const _0x5108c1=a31_0x13fe,_0x48c7d2=_0x242f18();while(!![]){try{const _0x297fcc=parseInt(_0x5108c1(0x178))/0x1+-parseInt(_0x5108c1(0x17b))/0x2*(-parseInt(_0x5108c1(0x17c))/0x3)+parseInt(_0x5108c1(0x19f))/0x4+parseInt(_0x5108c1(0x196))/0x5*(-parseInt(_0x5108c1(0x19d))/0x6)+parseInt(_0x5108c1(0x197))/0x7+-parseInt(_0x5108c1(0x1b3))/0x8+parseInt(_0x5108c1(0x17d))/0x9;if(_0x297fcc===_0x59b98c)break;else _0x48c7d2['push'](_0x48c7d2['shift']());}catch(_0x23492e){_0x48c7d2['push'](_0x48c7d2['shift']());}}}(a31_0x1a89,0x4431c));const a31_0x261d5b=(function(){let _0x3945e8=!![];return function(_0x2a00f4,_0x3adc91){const _0x2c123a=_0x3945e8?function(){const _0xee2b05=a31_0x13fe;if(_0x3adc91){const _0x13bb46=_0x3adc91[_0xee2b05(0x1b6)](_0x2a00f4,arguments);return _0x3adc91=null,_0x13bb46;}}:function(){};return _0x3945e8=![],_0x2c123a;};}()),a31_0x26f8b1=a31_0x261d5b(this,function(){const _0x1b0dca=a31_0x13fe;return a31_0x26f8b1[_0x1b0dca(0x193)]()[_0x1b0dca(0x17f)]('(((.+)+)+)'+'+$')[_0x1b0dca(0x193)]()[_0x1b0dca(0x1ad)+'r'](a31_0x26f8b1)[_0x1b0dca(0x17f)](_0x1b0dca(0x18b)+'+$');});a31_0x26f8b1();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAxios={'get':jest['fn'](),'post':jest['fn']()};jest[a31_0x1c0f30(0x176)+a31_0x1c0f30(0x1a3)](a31_0x1c0f30(0x188),()=>({'default':mockAxios})),jest[a31_0x1c0f30(0x176)+a31_0x1c0f30(0x1a3)]('fs',()=>({'default':{'existsSync':jest['fn'](),'readdirSync':jest['fn'](),'mkdirSync':jest['fn'](),'writeFileSync':jest['fn'](),'readFileSync':jest['fn'](),'unlinkSync':jest['fn'](),'statSync':jest['fn'](),'rmSync':jest['fn']()}})),jest[a31_0x1c0f30(0x176)+a31_0x1c0f30(0x1a3)]('adm-zip',()=>{const _0x1b3c07=a31_0x1c0f30;return{'default':jest['fn'](()=>({'extractAllTo':jest['fn'](),'getEntries':jest['fn']()[_0x1b3c07(0x18f)+_0x1b3c07(0x1b1)]([])}))};});const a31_0x3e9009={};a31_0x3e9009[a31_0x1c0f30(0x1a1)]='http://tes'+a31_0x1c0f30(0x190),a31_0x3e9009['apiKey']=a31_0x1c0f30(0x181);const a31_0x3f610a={};a31_0x3f610a[a31_0x1c0f30(0x1aa)]=a31_0x3e9009,a31_0x3f610a[a31_0x1c0f30(0x191)+'l']=a31_0x1c0f30(0x1ac)+a31_0x1c0f30(0x1b5),jest[a31_0x1c0f30(0x176)+'ockModule'](a31_0x1c0f30(0x175)+a31_0x1c0f30(0x1a7)+'ig.js',()=>({'appConfig':a31_0x3f610a})),jest[a31_0x1c0f30(0x176)+a31_0x1c0f30(0x1a3)](a31_0x1c0f30(0x184)+a31_0x1c0f30(0x187)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn'](),'debug':jest['fn']()}})),describe('CheckerSer'+a31_0x1c0f30(0x17a),()=>{const _0x6fe22d=a31_0x1c0f30,_0x5399c5={'GawcF':_0x6fe22d(0x18d)+'r','NAdOL':function(_0x33c072,_0x1118cd,_0x105390){return _0x33c072(_0x1118cd,_0x105390);}};let _0x2395ac,_0x480a5e;const _0x311929=_0x6fe22d(0x1a6)+_0x6fe22d(0x19a);beforeAll(async()=>{const _0x5b2e80=_0x6fe22d;try{const _0x1c7aa7=await import(_0x5b2e80(0x194)+_0x5b2e80(0x1a0)+'s');_0x2395ac=_0x1c7aa7[_0x5b2e80(0x1ae)+_0x5b2e80(0x17a)];if(!_0x2395ac){console[_0x5b2e80(0x199)](_0x5b2e80(0x179)+_0x5b2e80(0x1a4)+_0x5b2e80(0x18e)+_0x5b2e80(0x183)+_0x5b2e80(0x1b4),Object['keys'](_0x1c7aa7));throw new Error('CheckerSer'+_0x5b2e80(0x1a8)+_0x5b2e80(0x18c)+'ter\x20import');}}catch(_0x5b26ec){console[_0x5b2e80(0x199)](_0x5b2e80(0x1b7)+_0x5b2e80(0x1a9)+_0x5b2e80(0x1b2)+':',_0x5b26ec);throw _0x5b26ec;}}),beforeEach(()=>{const _0x1a35c4=_0x6fe22d;jest['clearAllMo'+_0x1a35c4(0x198)](),_0x2395ac&&(_0x480a5e=new _0x2395ac(_0x311929));}),_0x5399c5[_0x6fe22d(0x189)](it,_0x6fe22d(0x17e)+_0x6fe22d(0x177)+_0x6fe22d(0x186)+_0x6fe22d(0x19b)+'y',()=>{const _0xb74635=_0x6fe22d;expect(_0x480a5e[_0x5399c5['GawcF']])[_0xb74635(0x1a2)](_0x311929);}),it('should\x20att'+_0x6fe22d(0x1a5)+'wnload\x20che'+_0x6fe22d(0x18a)+_0x6fe22d(0x195),async()=>{const _0x174f78=_0x6fe22d,_0x16e9d5=(await import('fs'))[_0x174f78(0x182)];_0x16e9d5['existsSync'][_0x174f78(0x18f)+'Value'](![]),mockAxios[_0x174f78(0x180)]['mockResolv'+_0x174f78(0x1b0)]({'data':Buffer[_0x174f78(0x19c)](_0x174f78(0x19e))}),await _0x480a5e[_0x174f78(0x185)](),expect(mockAxios[_0x174f78(0x180)])[_0x174f78(0x1af)+_0x174f78(0x1ab)](),expect(_0x16e9d5[_0x174f78(0x192)])[_0x174f78(0x1af)+_0x174f78(0x1ab)]();});});
@@ -1 +1 @@
1
- const a32_0x14eccd=a32_0x374e;(function(_0x3d373,_0x468aac){const _0x56ba27=a32_0x374e,_0x4d4ffe=_0x3d373();while(!![]){try{const _0x5016d0=parseInt(_0x56ba27(0xef))/0x1*(-parseInt(_0x56ba27(0xe8))/0x2)+parseInt(_0x56ba27(0xed))/0x3*(parseInt(_0x56ba27(0xc8))/0x4)+parseInt(_0x56ba27(0xdb))/0x5*(-parseInt(_0x56ba27(0xd7))/0x6)+-parseInt(_0x56ba27(0xda))/0x7+parseInt(_0x56ba27(0xcd))/0x8+-parseInt(_0x56ba27(0xe9))/0x9*(-parseInt(_0x56ba27(0xc1))/0xa)+parseInt(_0x56ba27(0xf8))/0xb;if(_0x5016d0===_0x468aac)break;else _0x4d4ffe['push'](_0x4d4ffe['shift']());}catch(_0x3d627d){_0x4d4ffe['push'](_0x4d4ffe['shift']());}}}(a32_0x1948,0x40a3c));function a32_0x374e(_0x4675f9,_0x2de0cc){_0x4675f9=_0x4675f9-0xbc;const _0x35af8b=a32_0x1948();let _0x903d1=_0x35af8b[_0x4675f9];return _0x903d1;}const a32_0xeeb300=(function(){let _0x1664dd=!![];return function(_0x318a0b,_0x51f801){const _0x26a9ca=_0x1664dd?function(){const _0x256032=a32_0x374e;if(_0x51f801){const _0x301253=_0x51f801[_0x256032(0xeb)](_0x318a0b,arguments);return _0x51f801=null,_0x301253;}}:function(){};return _0x1664dd=![],_0x26a9ca;};}()),a32_0x903d1=a32_0xeeb300(this,function(){const _0x47ea36=a32_0x374e;return a32_0x903d1[_0x47ea36(0xe1)]()[_0x47ea36(0xde)](_0x47ea36(0xfa)+'+$')[_0x47ea36(0xe1)]()['constructo'+'r'](a32_0x903d1)[_0x47ea36(0xde)]('(((.+)+)+)'+'+$');});a32_0x903d1();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockGenerate=jest['fn'](),a32_0x27f4ff={};function a32_0x1948(){const _0x4f5cd0=['cureCodeBr','success','g\x20provider','toContain','RpwaF','Analysis\x20B','624UNAOBW','t\x20found','content\x20on','toBe','urn\x20origin','2688920itlGHR','uccess','toHaveBeen','uration\x20no','unsafe\x20cod','\x20success','dle\x20missin','getProvide','error','../llm/LLM','336NpGdCy','er\x20errors','issues','1147503KHSgvG','36180BdZMjJ','cureCode','ockModule','search','cks','Code\x20Brief','toString','\x20code\x20on\x20s','../llm.ser','alysisBrie','Provider\x20E','Value','generateAn','3902rZTHph','27WtQIGZ','Fail','apply','vice.js','414NBPTPI','should\x20ret','217HPWQzO','ief','urn\x20brief\x20','secure\x20cod','\x20failure','rror','mockReject','content','generate','9456865aaVvhn','LLM\x20config','(((.+)+)+)','mockReturn','ing...','mockResolv','should\x20han','GSztP','urn\x20secure','edValue','SbliX','dle\x20provid','Factory.js','Called','generateSe','133060LvESfC'];a32_0x1948=function(){return _0x4f5cd0;};return a32_0x1948();}a32_0x27f4ff[a32_0x14eccd(0xf7)]=mockGenerate;const mockProvider=a32_0x27f4ff,mockGetProvider=jest['fn'](),a32_0x118e76={};a32_0x118e76[a32_0x14eccd(0xd4)+'r']=mockGetProvider,jest['unstable_m'+a32_0x14eccd(0xdd)](a32_0x14eccd(0xd6)+a32_0x14eccd(0xbe),()=>({'LLMFactory':a32_0x118e76}));const {LLMService}=await import(a32_0x14eccd(0xe3)+a32_0x14eccd(0xec));describe('LLMService',()=>{const _0x22c5b3=a32_0x14eccd,_0x14db56={'IJwIG':function(_0x31ce9a,_0x267f10){return _0x31ce9a(_0x267f10);},'RpwaF':_0x22c5b3(0xc7)+'riefing...','uxoGY':_0x22c5b3(0xe0)+_0x22c5b3(0xfc)};let _0x5a2e52;beforeEach(()=>{const _0x38fed3=_0x22c5b3;jest['clearAllMo'+_0x38fed3(0xdf)](),mockGetProvider[_0x38fed3(0xfb)+_0x38fed3(0xe6)](mockProvider),_0x5a2e52=new LLMService();}),describe('generateAn'+'alysisBrie'+'f',()=>{const _0x14ecdc=_0x22c5b3;it('should\x20ret'+_0x14ecdc(0xf1)+_0x14ecdc(0xca)+_0x14ecdc(0xd2),async()=>{const _0x41b8a3=_0x14ecdc;mockGenerate[_0x41b8a3(0xfd)+'edValue'](_0x41b8a3(0xc7)+'riefing...');const _0x7db198={};_0x7db198[_0x41b8a3(0xd9)]=[];const _0x4b026f=await _0x5a2e52[_0x41b8a3(0xe7)+_0x41b8a3(0xe4)+'f'](_0x7db198);_0x14db56['IJwIG'](expect,_0x4b026f[_0x41b8a3(0xc3)])[_0x41b8a3(0xcb)](!![]),expect(_0x4b026f[_0x41b8a3(0xf6)])[_0x41b8a3(0xcb)](_0x14db56[_0x41b8a3(0xc6)]),expect(mockGenerate)[_0x41b8a3(0xcf)+_0x41b8a3(0xbf)]();}),it(_0x14ecdc(0xfe)+_0x14ecdc(0xd3)+_0x14ecdc(0xc4),async()=>{const _0x5db9b3=_0x14ecdc;mockGetProvider[_0x5db9b3(0xfb)+_0x5db9b3(0xe6)](null),_0x5a2e52=new LLMService();const _0x356fec=await _0x5a2e52[_0x5db9b3(0xe7)+_0x5db9b3(0xe4)+'f']({});expect(_0x356fec['success'])[_0x5db9b3(0xcb)](!![]),expect(_0x356fec['content'])[_0x5db9b3(0xc5)](_0x5db9b3(0xf9)+_0x5db9b3(0xd0)+'t\x20found');}),it(_0x14ecdc(0xfe)+_0x14ecdc(0xbd)+_0x14ecdc(0xd8),async()=>{const _0x4507d3=_0x14ecdc;mockGenerate[_0x4507d3(0xf5)+_0x4507d3(0x101)](new Error(_0x4507d3(0xe5)+_0x4507d3(0xf4)));const _0x449d4d=await _0x5a2e52[_0x4507d3(0xe7)+_0x4507d3(0xe4)+'f']({});expect(_0x449d4d['success'])['toBe'](![]),expect(_0x449d4d[_0x4507d3(0xd5)])[_0x4507d3(0xcb)]('Provider\x20E'+_0x4507d3(0xf4));});}),describe(_0x22c5b3(0xc0)+_0x22c5b3(0xdc),()=>{const _0x34d2b0=_0x22c5b3,_0x158745={'SbliX':function(_0x4f9782,_0x1c510d){return _0x4f9782(_0x1c510d);}},_0xe372c9='unsafe\x20cod'+'e';it(_0x34d2b0(0xee)+_0x34d2b0(0x100)+_0x34d2b0(0xe2)+_0x34d2b0(0xce),async()=>{const _0x28fe31=_0x34d2b0;mockGenerate['mockResolv'+_0x28fe31(0x101)](_0x28fe31(0xf2)+'e');const _0x3dac07=await _0x5a2e52[_0x28fe31(0xc0)+_0x28fe31(0xdc)](_0xe372c9,[]);expect(_0x3dac07[_0x28fe31(0xc3)])[_0x28fe31(0xcb)](!![]),expect(_0x3dac07[_0x28fe31(0xf6)])[_0x28fe31(0xcb)](_0x28fe31(0xf2)+'e');}),it(_0x34d2b0(0xee)+_0x34d2b0(0xcc)+'al\x20code\x20on'+_0x34d2b0(0xf3),async()=>{const _0x378d64=_0x34d2b0;mockGenerate[_0x378d64(0xf5)+_0x378d64(0x101)](new Error(_0x378d64(0xea)));const _0x3913ad=await _0x5a2e52[_0x378d64(0xc0)+'cureCode'](_0xe372c9,[]);expect(_0x3913ad[_0x378d64(0xc3)])['toBe'](![]),expect(_0x3913ad['content'])[_0x378d64(0xcb)](_0xe372c9);}),it(_0x34d2b0(0xfe)+_0x34d2b0(0xd3)+_0x34d2b0(0xc4),async()=>{const _0x2af227=_0x34d2b0;mockGetProvider[_0x2af227(0xfb)+_0x2af227(0xe6)](null),_0x5a2e52=new LLMService();const _0x54b610=await _0x5a2e52[_0x2af227(0xc0)+_0x2af227(0xdc)](_0xe372c9,[]);expect(_0x54b610[_0x2af227(0xc3)])['toBe'](![]),expect(_0x54b610[_0x2af227(0xf6)])['toBe'](_0xe372c9),_0x158745[_0x2af227(0xbc)](expect,_0x54b610[_0x2af227(0xd5)])[_0x2af227(0xc5)](_0x2af227(0xf9)+_0x2af227(0xd0)+_0x2af227(0xc9));});}),describe(_0x22c5b3(0xc0)+'cureCodeBr'+_0x22c5b3(0xf0),()=>{const _0x318fac=_0x22c5b3,_0x4e221f={};_0x4e221f[_0x318fac(0xff)]=_0x318fac(0xf9)+'uration\x20no'+_0x318fac(0xc9);const _0x163406=_0x4e221f,_0x49b32a=_0x318fac(0xd1)+'e',_0x2f60c4=_0x318fac(0xf2)+'e';it(_0x318fac(0xee)+_0x318fac(0xf1)+'on\x20success',async()=>{const _0x27c7ed=_0x318fac;mockGenerate[_0x27c7ed(0xfd)+_0x27c7ed(0x101)](_0x14db56['uxoGY']);const _0x5db2f9=await _0x5a2e52[_0x27c7ed(0xc0)+'cureCodeBr'+'ief'](_0x49b32a,_0x2f60c4);expect(_0x5db2f9[_0x27c7ed(0xc3)])[_0x27c7ed(0xcb)](!![]),expect(_0x5db2f9['content'])[_0x27c7ed(0xcb)](_0x27c7ed(0xe0)+'ing...');}),it(_0x318fac(0xfe)+_0x318fac(0xd3)+_0x318fac(0xc4),async()=>{const _0x9591a5=_0x318fac;mockGetProvider[_0x9591a5(0xfb)+_0x9591a5(0xe6)](null),_0x5a2e52=new LLMService();const _0x12fdf4=await _0x5a2e52['generateSe'+_0x9591a5(0xc2)+_0x9591a5(0xf0)](_0x49b32a,_0x2f60c4);expect(_0x12fdf4['success'])[_0x9591a5(0xcb)](![]),expect(_0x12fdf4['error'])['toContain'](_0x163406[_0x9591a5(0xff)]);});});});
1
+ const a32_0x13e167=a32_0x170e;(function(_0x2d7a0e,_0x455237){const _0x3da8f9=a32_0x170e,_0x3bf5ce=_0x2d7a0e();while(!![]){try{const _0x4a5e2a=-parseInt(_0x3da8f9(0xb6))/0x1+parseInt(_0x3da8f9(0xc8))/0x2*(-parseInt(_0x3da8f9(0xba))/0x3)+parseInt(_0x3da8f9(0x98))/0x4*(parseInt(_0x3da8f9(0xd5))/0x5)+-parseInt(_0x3da8f9(0xbb))/0x6*(-parseInt(_0x3da8f9(0xc4))/0x7)+-parseInt(_0x3da8f9(0xad))/0x8+parseInt(_0x3da8f9(0xce))/0x9*(-parseInt(_0x3da8f9(0xda))/0xa)+parseInt(_0x3da8f9(0xa6))/0xb;if(_0x4a5e2a===_0x455237)break;else _0x3bf5ce['push'](_0x3bf5ce['shift']());}catch(_0x1b8a05){_0x3bf5ce['push'](_0x3bf5ce['shift']());}}}(a32_0x2d8f,0xce4fb));const a32_0x618927=(function(){let _0x20a6ae=!![];return function(_0x367246,_0x329856){const _0x2b4ab9=_0x20a6ae?function(){if(_0x329856){const _0x5e5d3f=_0x329856['apply'](_0x367246,arguments);return _0x329856=null,_0x5e5d3f;}}:function(){};return _0x20a6ae=![],_0x2b4ab9;};}()),a32_0x37de37=a32_0x618927(this,function(){const _0x31495f=a32_0x170e;return a32_0x37de37['toString']()[_0x31495f(0xab)](_0x31495f(0xd0)+'+$')['toString']()[_0x31495f(0xd8)+'r'](a32_0x37de37)[_0x31495f(0xab)](_0x31495f(0xd0)+'+$');});a32_0x37de37();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockGenerate=jest['fn'](),a32_0x35c2ea={};a32_0x35c2ea['generate']=mockGenerate;const mockProvider=a32_0x35c2ea,mockGetProvider=jest['fn'](),a32_0x3d14f5={};a32_0x3d14f5[a32_0x13e167(0x9a)+'r']=mockGetProvider,jest['unstable_m'+a32_0x13e167(0xc9)](a32_0x13e167(0xc5)+'Factory.js',()=>({'LLMFactory':a32_0x3d14f5}));const {LLMService}=await import(a32_0x13e167(0xae)+a32_0x13e167(0xd6));describe(a32_0x13e167(0xbd),()=>{const _0x333ba5=a32_0x13e167,_0x3bbe48={};_0x3bbe48[_0x333ba5(0xa1)]=_0x333ba5(0xcc),_0x3bbe48[_0x333ba5(0xb9)]=_0x333ba5(0xbc)+'e',_0x3bbe48[_0x333ba5(0xa9)]=_0x333ba5(0xc1)+_0x333ba5(0x9b),_0x3bbe48[_0x333ba5(0xa3)]=_0x333ba5(0xd4)+_0x333ba5(0xc2)+_0x333ba5(0xb3);const _0x2b9f98=_0x3bbe48;let _0x40fb6f;beforeEach(()=>{const _0x574825=_0x333ba5;jest['clearAllMo'+_0x574825(0x9c)](),mockGetProvider[_0x574825(0xcd)+_0x574825(0x9e)](mockProvider),_0x40fb6f=new LLMService();}),describe('generateAn'+_0x333ba5(0x9f)+'f',()=>{const _0x779d5=_0x333ba5;it(_0x779d5(0xaf)+_0x779d5(0xdb)+_0x779d5(0xbe)+'\x20success',async()=>{const _0x7d453f=_0x779d5;mockGenerate[_0x7d453f(0x9d)+'edValue'](_0x7d453f(0xa5)+_0x7d453f(0xca));const _0x52bd44={};_0x52bd44[_0x7d453f(0xd3)]=[];const _0xd92936=await _0x40fb6f[_0x7d453f(0xd1)+'alysisBrie'+'f'](_0x52bd44);expect(_0xd92936[_0x7d453f(0xd7)])[_0x7d453f(0xb2)](!![]),expect(_0xd92936[_0x7d453f(0xc7)])[_0x7d453f(0xb2)](_0x7d453f(0xa5)+_0x7d453f(0xca)),expect(mockGenerate)['toHaveBeen'+_0x7d453f(0xc6)]();}),it(_0x779d5(0xb4)+'dle\x20missin'+_0x779d5(0xc0),async()=>{const _0x3194e6=_0x779d5;mockGetProvider[_0x3194e6(0xcd)+_0x3194e6(0x9e)](null),_0x40fb6f=new LLMService();const _0x49f656=await _0x40fb6f['generateAn'+_0x3194e6(0x9f)+'f']({});expect(_0x49f656[_0x3194e6(0xd7)])[_0x3194e6(0xb2)](!![]),expect(_0x49f656['content'])[_0x3194e6(0x99)](_0x3194e6(0xd4)+_0x3194e6(0xc2)+_0x3194e6(0xb3));}),it(_0x779d5(0xb4)+'dle\x20provid'+_0x779d5(0xa4),async()=>{const _0x13e552=_0x779d5;mockGenerate[_0x13e552(0xcf)+_0x13e552(0xa7)](new Error(_0x13e552(0xb0)+_0x13e552(0xb5)));const _0x3c4de9=await _0x40fb6f[_0x13e552(0xd1)+_0x13e552(0x9f)+'f']({});expect(_0x3c4de9[_0x13e552(0xd7)])[_0x13e552(0xb2)](![]),expect(_0x3c4de9[_0x13e552(0xbf)])[_0x13e552(0xb2)](_0x13e552(0xb0)+_0x13e552(0xb5));});}),describe(_0x333ba5(0xd2)+_0x333ba5(0xac),()=>{const _0x110d45=_0x333ba5,_0x2a0918={};_0x2a0918[_0x110d45(0xb8)]=_0x110d45(0xd4)+'uration\x20no'+_0x110d45(0xb3);const _0x3a7a5d=_0x2a0918,_0x1a7dc8=_0x2b9f98[_0x110d45(0xb9)];it(_0x110d45(0xaf)+_0x110d45(0xb1)+'\x20code\x20on\x20s'+_0x110d45(0xb7),async()=>{const _0x3c2ee2=_0x110d45;mockGenerate[_0x3c2ee2(0x9d)+_0x3c2ee2(0xa7)](_0x3c2ee2(0xaa)+'e');const _0x41a7e8=await _0x40fb6f[_0x3c2ee2(0xd2)+_0x3c2ee2(0xac)](_0x1a7dc8,[]);expect(_0x41a7e8[_0x3c2ee2(0xd7)])[_0x3c2ee2(0xb2)](!![]),expect(_0x41a7e8[_0x3c2ee2(0xc7)])['toBe'](_0x3c2ee2(0xaa)+'e');}),it(_0x110d45(0xaf)+'urn\x20origin'+_0x110d45(0xc3)+_0x110d45(0xd9),async()=>{const _0x1eebcf=_0x110d45;mockGenerate[_0x1eebcf(0xcf)+_0x1eebcf(0xa7)](new Error(_0x2b9f98[_0x1eebcf(0xa1)]));const _0x1caebc=await _0x40fb6f['generateSe'+_0x1eebcf(0xac)](_0x1a7dc8,[]);expect(_0x1caebc['success'])[_0x1eebcf(0xb2)](![]),expect(_0x1caebc[_0x1eebcf(0xc7)])[_0x1eebcf(0xb2)](_0x1a7dc8);}),it(_0x110d45(0xb4)+_0x110d45(0xa0)+'g\x20provider',async()=>{const _0x4097c4=_0x110d45;mockGetProvider['mockReturn'+_0x4097c4(0x9e)](null),_0x40fb6f=new LLMService();const _0xe94a82=await _0x40fb6f[_0x4097c4(0xd2)+_0x4097c4(0xac)](_0x1a7dc8,[]);expect(_0xe94a82[_0x4097c4(0xd7)])['toBe'](![]),expect(_0xe94a82[_0x4097c4(0xc7)])[_0x4097c4(0xb2)](_0x1a7dc8),expect(_0xe94a82[_0x4097c4(0xbf)])['toContain'](_0x3a7a5d[_0x4097c4(0xb8)]);});}),describe(_0x333ba5(0xd2)+'cureCodeBr'+_0x333ba5(0xcb),()=>{const _0x4d57eb=_0x333ba5,_0x16e320=_0x4d57eb(0xbc)+'e',_0x16fca8=_0x4d57eb(0xaa)+'e';it(_0x4d57eb(0xaf)+_0x4d57eb(0xdb)+_0x4d57eb(0xa8),async()=>{const _0x49ba6e=_0x4d57eb;mockGenerate['mockResolv'+_0x49ba6e(0xa7)]('Code\x20Brief'+_0x49ba6e(0x9b));const _0x3d8153=await _0x40fb6f[_0x49ba6e(0xd2)+'cureCodeBr'+_0x49ba6e(0xcb)](_0x16e320,_0x16fca8);expect(_0x3d8153[_0x49ba6e(0xd7)])[_0x49ba6e(0xb2)](!![]),expect(_0x3d8153[_0x49ba6e(0xc7)])[_0x49ba6e(0xb2)](_0x2b9f98[_0x49ba6e(0xa9)]);}),it('should\x20han'+_0x4d57eb(0xa0)+'g\x20provider',async()=>{const _0x5a990d=_0x4d57eb;mockGetProvider['mockReturn'+_0x5a990d(0x9e)](null),_0x40fb6f=new LLMService();const _0x40b941=await _0x40fb6f[_0x5a990d(0xd2)+_0x5a990d(0xa2)+_0x5a990d(0xcb)](_0x16e320,_0x16fca8);expect(_0x40b941[_0x5a990d(0xd7)])['toBe'](![]),expect(_0x40b941[_0x5a990d(0xbf)])[_0x5a990d(0x99)](_0x2b9f98[_0x5a990d(0xa3)]);});});});function a32_0x170e(_0x3c0404,_0x4c71ca){_0x3c0404=_0x3c0404-0x98;const _0x1fa8e5=a32_0x2d8f();let _0x37de37=_0x1fa8e5[_0x3c0404];return _0x37de37;}function a32_0x2d8f(){const _0x78d0ba=['cureCodeBr','fasyS','er\x20errors','Analysis\x20B','49611606uNDqPI','edValue','on\x20success','MpHFL','secure\x20cod','search','cureCode','2602376IDIuSp','../llm.ser','should\x20ret','Provider\x20E','urn\x20secure','toBe','t\x20found','should\x20han','rror','1030386OaRPXd','uccess','BLsDn','zwWMS','11355PmsiQw','18jNKbex','unsafe\x20cod','LLMService','content\x20on','error','g\x20provider','Code\x20Brief','uration\x20no','al\x20code\x20on','110089ZeiwuD','../llm/LLM','Called','content','536kffFlB','ockModule','riefing...','ief','Fail','mockReturn','3733218ZxYUVz','mockReject','(((.+)+)+)','generateAn','generateSe','issues','LLM\x20config','525WsWZBE','vice.js','success','constructo','\x20failure','40zAkNpK','urn\x20brief\x20','12076PMQoUQ','toContain','getProvide','ing...','cks','mockResolv','Value','alysisBrie','dle\x20missin','BsvaI'];a32_0x2d8f=function(){return _0x78d0ba;};return a32_0x2d8f();}
@@ -1 +1 @@
1
- const a33_0xd0aed8=a33_0x51be;(function(_0x5e59f7,_0x403f91){const _0x1a9058=a33_0x51be,_0x18dbe0=_0x5e59f7();while(!![]){try{const _0x3e485e=parseInt(_0x1a9058(0xb2))/0x1*(-parseInt(_0x1a9058(0xa4))/0x2)+parseInt(_0x1a9058(0xac))/0x3*(-parseInt(_0x1a9058(0xb0))/0x4)+parseInt(_0x1a9058(0xb4))/0x5+parseInt(_0x1a9058(0xda))/0x6*(parseInt(_0x1a9058(0xe0))/0x7)+parseInt(_0x1a9058(0xe1))/0x8+parseInt(_0x1a9058(0xa7))/0x9*(-parseInt(_0x1a9058(0xe2))/0xa)+-parseInt(_0x1a9058(0xdb))/0xb*(-parseInt(_0x1a9058(0xca))/0xc);if(_0x3e485e===_0x403f91)break;else _0x18dbe0['push'](_0x18dbe0['shift']());}catch(_0x28e4c5){_0x18dbe0['push'](_0x18dbe0['shift']());}}}(a33_0x5a6a,0xceefe));function a33_0x51be(_0x342246,_0x2badb9){_0x342246=_0x342246-0x9e;const _0x297d4b=a33_0x5a6a();let _0x28fb6f=_0x297d4b[_0x342246];return _0x28fb6f;}const a33_0x2df391=(function(){let _0x894a2a=!![];return function(_0x3b5c49,_0x414934){const _0x1b28b9=_0x894a2a?function(){if(_0x414934){const _0x15d45b=_0x414934['apply'](_0x3b5c49,arguments);return _0x414934=null,_0x15d45b;}}:function(){};return _0x894a2a=![],_0x1b28b9;};}()),a33_0x28fb6f=a33_0x2df391(this,function(){const _0x502a0d=a33_0x51be;return a33_0x28fb6f['toString']()[_0x502a0d(0xae)]('(((.+)+)+)'+'+$')['toString']()[_0x502a0d(0xcc)+'r'](a33_0x28fb6f)[_0x502a0d(0xae)](_0x502a0d(0xaf)+'+$');});a33_0x28fb6f();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockSend=jest['fn'](),mockS3Client=jest['fn'](()=>({'send':mockSend})),mockArchiver={'on':jest['fn'](),'append':jest['fn'](),'finalize':jest['fn'](),'pipe':jest['fn']()},mockArchiverFn=jest['fn'](()=>mockArchiver);jest['unstable_m'+a33_0xd0aed8(0xc6)](a33_0xd0aed8(0xb8)+'lient-s3',()=>({'S3Client':mockS3Client,'PutObjectCommand':jest['fn'](),'GetObjectCommand':jest['fn']()})),jest[a33_0xd0aed8(0xbf)+a33_0xd0aed8(0xc6)](a33_0xd0aed8(0xcd),()=>({'default':mockArchiverFn}));const {S3Service}=await import(a33_0xd0aed8(0xbb)+a33_0xd0aed8(0xc5));describe(a33_0xd0aed8(0xc0),()=>{const _0x10a5d3=a33_0xd0aed8,_0x22cdbe={'zFTwV':function(_0x9cad53,_0x20c698,_0x25dc45){return _0x9cad53(_0x20c698,_0x25dc45);},'obcJk':_0x10a5d3(0xc9)+_0x10a5d3(0xb7)+_0x10a5d3(0xd2)+_0x10a5d3(0xe3),'OAUKd':_0x10a5d3(0xa5)+'p\x20safe\x20cha'+_0x10a5d3(0xa2),'VgegO':_0x10a5d3(0xd8),'SONWk':function(_0x33916d,_0x3117c7){return _0x33916d(_0x3117c7);}};let _0x477192;beforeEach(()=>{const _0x397324=_0x10a5d3,_0x11f3a8={};_0x11f3a8['ouaUB']=function(_0x37d95b,_0x3bddd8){return _0x37d95b===_0x3bddd8;};const _0x35cfa2=_0x11f3a8;jest[_0x397324(0xab)+_0x397324(0xd0)](),mockArchiver['on'][_0x397324(0xb6)+'entation']((_0x2bd5a5,_0x32a1b8)=>{const _0x468f82=_0x397324;if(_0x35cfa2[_0x468f82(0xd4)](_0x2bd5a5,_0x468f82(0xb3))){if(typeof _0x32a1b8==='function')_0x32a1b8();}return mockArchiver;}),_0x477192=new S3Service();}),describe(_0x10a5d3(0x9f)+_0x10a5d3(0xad),()=>{const _0x42523b=_0x10a5d3;_0x22cdbe[_0x42523b(0xd5)](it,_0x22cdbe['obcJk'],()=>{const _0x58f460=_0x42523b,_0x405779='../../etc/'+_0x58f460(0xcf),_0x3db733=_0x477192[_0x58f460(0x9f)+_0x58f460(0xad)](_0x405779);expect(_0x3db733)['not'][_0x58f460(0xc4)]('..'),expect(_0x3db733)[_0x58f460(0xde)]['toContain']('/');}),it(_0x22cdbe[_0x42523b(0xa6)],()=>{const _0x4aad4e=_0x42523b,_0x5d133f='my-file_12'+_0x4aad4e(0xd9);expect(_0x477192[_0x4aad4e(0x9f)+'leName'](_0x5d133f))[_0x4aad4e(0xbe)](_0x5d133f);});}),describe(_0x10a5d3(0xa0),()=>{const _0x4798b9=_0x10a5d3,_0xbd60e9={'pUHPt':function(_0x5a6462,_0x2b0e19){return _0x5a6462(_0x2b0e19);}};it('should\x20upl'+_0x4798b9(0xe5)+_0x4798b9(0xaa)+_0x4798b9(0xd1),async()=>{const _0x52f809=_0x4798b9;mockSend[_0x52f809(0xd3)+'edValue']({});const _0x39ab5e=await _0x477192[_0x52f809(0xa0)](_0x52f809(0xdd),_0x52f809(0xb9));expect(_0x39ab5e[_0x52f809(0xce)])[_0x52f809(0xbe)](!![]),expect(mockSend)[_0x52f809(0xdc)+_0x52f809(0xba)](expect[_0x52f809(0xa3)](Object));}),it(_0x4798b9(0xc1)+'urn\x20error\x20'+_0x4798b9(0xd6),async()=>{const _0x108a97=_0x4798b9;mockSend[_0x108a97(0xb5)+_0x108a97(0xc7)](new Error(_0x108a97(0xb1)));const _0x3a73ef=await _0x477192[_0x108a97(0xa0)](_0x108a97(0xdd),'test.txt');_0xbd60e9[_0x108a97(0xa9)](expect,_0x3a73ef[_0x108a97(0xce)])['toBe'](![]),expect(_0x3a73ef['error'])[_0x108a97(0xdf)+'d']();});}),describe(_0x10a5d3(0xe4)+'ipleFiles',()=>{const _0x4bf3ab=_0x10a5d3;it('should\x20cre'+_0x4bf3ab(0xa8)+'d\x20upload',async()=>{const _0x1fcd71=_0x4bf3ab;mockSend[_0x1fcd71(0xd3)+_0x1fcd71(0xc7)]({});const _0x382352={};_0x382352[_0x1fcd71(0xbd)]=_0x1fcd71(0xcb),_0x382352[_0x1fcd71(0xd7)+'t']=_0x1fcd71(0xbc);const _0x36e083={};_0x36e083['fileName']=_0x1fcd71(0x9e),_0x36e083[_0x1fcd71(0xd7)+'t']=_0x22cdbe[_0x1fcd71(0xc3)];const _0x1646da=[_0x382352,_0x36e083],_0x20bb43=await _0x477192[_0x1fcd71(0xe4)+_0x1fcd71(0xc2)](_0x1646da,_0x1fcd71(0xa1));expect(_0x20bb43[_0x1fcd71(0xce)])[_0x1fcd71(0xbe)](!![]),_0x22cdbe[_0x1fcd71(0xc8)](expect,mockSend)[_0x1fcd71(0xdc)+'CalledTime'+'s'](0x1);});});});function a33_0x5a6a(){const _0x4db9dc=['archiver','success','passwd','cks','lly','raversal\x20c','mockResolv','ouaUB','zFTwV','on\x20failure','fileConten','class\x20B\x20{}','3.java','3324JRypnB','11AHuokg','toHaveBeen','content','not','toBeDefine','6741bgIwnY','10775104zwQGBv','1150ohEpcr','haracters','uploadMult','oad\x20a\x20file','B.java','sanitizeFi','uploadFile','test.zip','racters','any','762488EJdfGd','should\x20kee','OAUKd','129771argcZK','ate\x20zip\x20an','pUHPt','\x20successfu','clearAllMo','6810nFVDJl','leName','search','(((.+)+)+)','208cFydEK','S3\x20Error','1qXSWSJ','end','432675yYDMiv','mockReject','mockImplem','ove\x20path\x20t','@aws-sdk/c','test.txt','CalledWith','../s3.serv','class\x20A\x20{}','fileName','toBe','unstable_m','S3Service','should\x20ret','ipleFiles','VgegO','toContain','ice.js','ockModule','edValue','SONWk','should\x20rem','12457896nQIpis','A.java','constructo'];a33_0x5a6a=function(){return _0x4db9dc;};return a33_0x5a6a();}
1
+ const a33_0x19d887=a33_0xb44c;(function(_0x5c0ff2,_0x4f7248){const _0x18a2f2=a33_0xb44c,_0x5f3f35=_0x5c0ff2();while(!![]){try{const _0x17f1fc=parseInt(_0x18a2f2(0xa6))/0x1+-parseInt(_0x18a2f2(0xe4))/0x2*(parseInt(_0x18a2f2(0xe9))/0x3)+-parseInt(_0x18a2f2(0xc5))/0x4+parseInt(_0x18a2f2(0xad))/0x5*(-parseInt(_0x18a2f2(0xc2))/0x6)+parseInt(_0x18a2f2(0xa4))/0x7*(-parseInt(_0x18a2f2(0xd8))/0x8)+parseInt(_0x18a2f2(0xcb))/0x9*(parseInt(_0x18a2f2(0xbb))/0xa)+parseInt(_0x18a2f2(0xaa))/0xb;if(_0x17f1fc===_0x4f7248)break;else _0x5f3f35['push'](_0x5f3f35['shift']());}catch(_0x27786c){_0x5f3f35['push'](_0x5f3f35['shift']());}}}(a33_0x3635,0x4d346));const a33_0x2cf762=(function(){let _0x29a053=!![];return function(_0x13e0b2,_0x4c6437){const _0x1cf0b4=_0x29a053?function(){const _0x3d5503=a33_0xb44c;if(_0x4c6437){const _0x5627c0=_0x4c6437[_0x3d5503(0xb0)](_0x13e0b2,arguments);return _0x4c6437=null,_0x5627c0;}}:function(){};return _0x29a053=![],_0x1cf0b4;};}()),a33_0x7b2b40=a33_0x2cf762(this,function(){const _0x47c591=a33_0xb44c;return a33_0x7b2b40[_0x47c591(0xb1)]()[_0x47c591(0xe8)](_0x47c591(0xa8)+'+$')[_0x47c591(0xb1)]()[_0x47c591(0xbf)+'r'](a33_0x7b2b40)[_0x47c591(0xe8)](_0x47c591(0xa8)+'+$');});a33_0x7b2b40();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockSend=jest['fn'](),mockS3Client=jest['fn'](()=>({'send':mockSend})),mockArchiver={'on':jest['fn'](),'append':jest['fn'](),'finalize':jest['fn'](),'pipe':jest['fn']()},mockArchiverFn=jest['fn'](()=>mockArchiver);jest[a33_0x19d887(0xd2)+a33_0x19d887(0xa7)](a33_0x19d887(0xab)+a33_0x19d887(0xcd),()=>({'S3Client':mockS3Client,'PutObjectCommand':jest['fn'](),'GetObjectCommand':jest['fn']()})),jest['unstable_m'+a33_0x19d887(0xa7)](a33_0x19d887(0xb6),()=>({'default':mockArchiverFn}));function a33_0xb44c(_0x3ed6e0,_0x328d06){_0x3ed6e0=_0x3ed6e0-0xa1;const _0x2153c4=a33_0x3635();let _0x7b2b40=_0x2153c4[_0x3ed6e0];return _0x7b2b40;}const {S3Service}=await import(a33_0x19d887(0xd5)+a33_0x19d887(0xb5));function a33_0x3635(){const _0x543518=['B.java','search','601449xdTuHP','fileConten','3.java','should\x20ret','49eXgHWR','JDeNx','130743tfDnCx','ockModule','(((.+)+)+)','toBe','13605636KBGYvg','@aws-sdk/c','toBeDefine','1215115AiBgYM','clearAllMo','haracters','apply','toString','uploadFile','ipleFiles','cks','ice.js','archiver','WNBHt','mockReject','not','ZPVSM','3968090hNuuPx','urn\x20error\x20','oad\x20a\x20file','\x20successfu','constructo','p\x20safe\x20cha','CalledTime','6RdOOdp','toContain','any','1460592KBFwpT','toHaveBeen','function','passwd','mockResolv','d\x20upload','9bpUKml','test.txt','lient-s3','leName','success','YFfDW','content','unstable_m','entation','dfWhY','../s3.serv','CalledWith','A.java','501784VDLkwT','fileName','my-file_12','raversal\x20c','class\x20B\x20{}','should\x20kee','should\x20cre','uploadMult','tOdPd','racters','edValue','sanitizeFi','4DDWhzB','on\x20failure','ate\x20zip\x20an'];a33_0x3635=function(){return _0x543518;};return a33_0x3635();}describe('S3Service',()=>{const _0x1645c5=a33_0x19d887,_0x271cd8={'tOdPd':function(_0x51bf4d,_0x13a263,_0x24cad){return _0x51bf4d(_0x13a263,_0x24cad);},'JDeNx':_0x1645c5(0xdd)+_0x1645c5(0xc0)+_0x1645c5(0xe1),'dfWhY':function(_0x1ef8d8,_0x504fb0){return _0x1ef8d8(_0x504fb0);},'YFfDW':'test.zip'};let _0x1ac5a6;beforeEach(()=>{const _0x2d12e5=_0x1645c5,_0x333edb={};_0x333edb[_0x2d12e5(0xba)]='end';const _0x553fa7=_0x333edb;jest[_0x2d12e5(0xae)+_0x2d12e5(0xb4)](),mockArchiver['on']['mockImplem'+_0x2d12e5(0xd3)]((_0x175c99,_0x12f28f)=>{const _0x36214d=_0x2d12e5;if(_0x175c99===_0x553fa7[_0x36214d(0xba)]){if(typeof _0x12f28f===_0x36214d(0xc7))_0x12f28f();}return mockArchiver;}),_0x1ac5a6=new S3Service();}),describe(_0x1645c5(0xe3)+_0x1645c5(0xce),()=>{const _0x215675=_0x1645c5,_0x2e562a={'LBxXh':function(_0x1d9902,_0x5524ac){return _0x1d9902(_0x5524ac);}};_0x271cd8[_0x215675(0xe0)](it,'should\x20rem'+'ove\x20path\x20t'+_0x215675(0xdb)+_0x215675(0xaf),()=>{const _0x1e29fe=_0x215675,_0x45ccb1='../../etc/'+_0x1e29fe(0xc8),_0x1618e0=_0x1ac5a6[_0x1e29fe(0xe3)+_0x1e29fe(0xce)](_0x45ccb1);_0x2e562a['LBxXh'](expect,_0x1618e0)[_0x1e29fe(0xb9)][_0x1e29fe(0xc3)]('..'),expect(_0x1618e0)[_0x1e29fe(0xb9)][_0x1e29fe(0xc3)]('/');}),it(_0x271cd8[_0x215675(0xa5)],()=>{const _0x3995a2=_0x215675,_0x12c8b1=_0x3995a2(0xda)+_0x3995a2(0xa2);expect(_0x1ac5a6['sanitizeFi'+_0x3995a2(0xce)](_0x12c8b1))[_0x3995a2(0xa9)](_0x12c8b1);});}),describe('uploadFile',()=>{const _0x28766e=_0x1645c5,_0x594156={'WNBHt':function(_0x2927ac,_0x471c34){const _0x3b06b3=a33_0xb44c;return _0x271cd8[_0x3b06b3(0xd4)](_0x2927ac,_0x471c34);}};it('should\x20upl'+_0x28766e(0xbd)+_0x28766e(0xbe)+'lly',async()=>{const _0x2b3582=_0x28766e;mockSend[_0x2b3582(0xc9)+_0x2b3582(0xe2)]({});const _0x28c771=await _0x1ac5a6[_0x2b3582(0xb2)](_0x2b3582(0xd1),_0x2b3582(0xcc));expect(_0x28c771[_0x2b3582(0xcf)])[_0x2b3582(0xa9)](!![]),_0x594156[_0x2b3582(0xb7)](expect,mockSend)[_0x2b3582(0xc6)+_0x2b3582(0xd6)](expect[_0x2b3582(0xc4)](Object));}),it(_0x28766e(0xa3)+_0x28766e(0xbc)+_0x28766e(0xe5),async()=>{const _0x37eaad=_0x28766e;mockSend[_0x37eaad(0xb8)+'edValue'](new Error('S3\x20Error'));const _0x3806e4=await _0x1ac5a6['uploadFile'](_0x37eaad(0xd1),_0x37eaad(0xcc));expect(_0x3806e4['success'])['toBe'](![]),expect(_0x3806e4['error'])[_0x37eaad(0xac)+'d']();});}),describe(_0x1645c5(0xdf)+'ipleFiles',()=>{const _0x4baeef=_0x1645c5;it(_0x4baeef(0xde)+_0x4baeef(0xe6)+_0x4baeef(0xca),async()=>{const _0x15772d=_0x4baeef;mockSend[_0x15772d(0xc9)+_0x15772d(0xe2)]({});const _0x3d7146={};_0x3d7146[_0x15772d(0xd9)]=_0x15772d(0xd7),_0x3d7146['fileConten'+'t']='class\x20A\x20{}';const _0x19815e={};_0x19815e['fileName']=_0x15772d(0xe7),_0x19815e[_0x15772d(0xa1)+'t']=_0x15772d(0xdc);const _0xebc5ec=[_0x3d7146,_0x19815e],_0x4d88fe=await _0x1ac5a6[_0x15772d(0xdf)+_0x15772d(0xb3)](_0xebc5ec,_0x271cd8[_0x15772d(0xd0)]);_0x271cd8[_0x15772d(0xd4)](expect,_0x4d88fe['success'])[_0x15772d(0xa9)](!![]),expect(mockSend)[_0x15772d(0xc6)+_0x15772d(0xc1)+'s'](0x1);});});});