@sparrowai/sparrow-mcp 1.0.8 → 1.0.10

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.
@@ -1 +1 @@
1
- const a0_0xad6362=a0_0x44c7;(function(_0x414ef6,_0x3ebfcd){const _0x30684b=a0_0x44c7,_0x3f3c63=_0x414ef6();while(!![]){try{const _0x4bb495=parseInt(_0x30684b(0x186))/0x1+-parseInt(_0x30684b(0x1a8))/0x2*(parseInt(_0x30684b(0x17c))/0x3)+-parseInt(_0x30684b(0x1a1))/0x4*(parseInt(_0x30684b(0x18b))/0x5)+parseInt(_0x30684b(0x199))/0x6+-parseInt(_0x30684b(0x19a))/0x7*(parseInt(_0x30684b(0x1b0))/0x8)+parseInt(_0x30684b(0x196))/0x9*(parseInt(_0x30684b(0x18e))/0xa)+parseInt(_0x30684b(0x1aa))/0xb;if(_0x4bb495===_0x3ebfcd)break;else _0x3f3c63['push'](_0x3f3c63['shift']());}catch(_0x13c863){_0x3f3c63['push'](_0x3f3c63['shift']());}}}(a0_0x29eb,0x295f0));const a0_0x36f5a8=(function(){let _0x1485ab=!![];return function(_0x393b1f,_0x29b040){const _0x25ef62=_0x1485ab?function(){if(_0x29b040){const _0x2fd330=_0x29b040['apply'](_0x393b1f,arguments);return _0x29b040=null,_0x2fd330;}}:function(){};return _0x1485ab=![],_0x25ef62;};}()),a0_0x186387=a0_0x36f5a8(this,function(){const _0x55f6d3=a0_0x44c7;return a0_0x186387[_0x55f6d3(0x195)]()[_0x55f6d3(0x190)](_0x55f6d3(0x197)+'+$')['toString']()[_0x55f6d3(0x180)+'r'](a0_0x186387)[_0x55f6d3(0x190)]('(((.+)+)+)'+'+$');});a0_0x186387();function a0_0x44c7(_0x1d6fa4,_0x18d3d4){_0x1d6fa4=_0x1d6fa4-0x17a;const _0x1b0ca8=a0_0x29eb();let _0x186387=_0x1b0ca8[_0x1d6fa4];return _0x186387;}import{config}from'dotenv';import a0_0x509fd4 from'path';import a0_0x426299 from'fs';function a0_0x29eb(){const _0x2d3674=['dirname','path','error','31516LxbSpz','STORAGE_CO','E_URL','existsSync','filter','NTAINER_NA','STORAGE_AC','2teBhRk','endpoint','3529383rWHMAw','_KEY','notion','설정되지\x20않았습니다','\x20설정되지\x20않았습니','CRET_KEY','63392HSVqpt','SPARROW_AP','지\x20키\x20환경\x20변수가','STORAGE_EN','baseUrl','STORAGE_SE','필수\x20환경\x20변수가\x20','\x20(로드\x20경로:\x20','secretAcce','alhost:114','bucket','NOTION_API','../../.env','demand.spa','10389RYIkEc','I_KEY','\x20사용합니다.','STORAGE_RE','constructo','resolve','ABASE_ID','개발\x20환경:\x20스토리','ENV_PATH','rrowcloud.','69915skVgmU','find','join','GION','env','105ZPguvM','ollama','region','30kASOqv','I_URL','search','https://on','developmen','NODE_ENV','model','toString','121887kNobOj','(((.+)+)+)','sparrow','915750mQPEWV','217XcHFvm','cwd','us-east-1','warn'];a0_0x29eb=function(){return _0x2d3674;};return a0_0x29eb();}import{fileURLToPath}from'url';import{logger}from'../utils/logger.js';const moduleDir=a0_0x509fd4[a0_0xad6362(0x19e)](fileURLToPath(import.meta.url)),repoRootEnvPath=a0_0x509fd4[a0_0xad6362(0x181)](moduleDir,a0_0xad6362(0x17a)),cwdEnvPath=a0_0x509fd4[a0_0xad6362(0x181)](process[a0_0xad6362(0x19b)](),'.env'),explicitEnvPath=process[a0_0xad6362(0x18a)][a0_0xad6362(0x184)]?a0_0x509fd4[a0_0xad6362(0x181)](process['cwd'](),process['env'][a0_0xad6362(0x184)]):undefined,candidateEnvPaths=[explicitEnvPath,cwdEnvPath,repoRootEnvPath]['filter'](Boolean),envPath=candidateEnvPaths[a0_0xad6362(0x187)](_0x82a970=>{const _0x10789b=a0_0xad6362;try{return a0_0x426299[_0x10789b(0x1a4)](_0x82a970);}catch{return![];}})||repoRootEnvPath,a0_0x1554f4={};a0_0x1554f4[a0_0xad6362(0x19f)]=envPath,config(a0_0x1554f4);const a0_0x47b0c8={};a0_0x47b0c8[a0_0xad6362(0x1b4)]=process[a0_0xad6362(0x18a)]['OLLAMA_BAS'+a0_0xad6362(0x1a3)]||'http://loc'+a0_0xad6362(0x1b9)+'34',a0_0x47b0c8[a0_0xad6362(0x194)]=process[a0_0xad6362(0x18a)]['OLLAMA_MOD'+'EL']||'gemma2:27b';const a0_0x566e6d={};a0_0x566e6d[a0_0xad6362(0x1ba)]=process[a0_0xad6362(0x18a)][a0_0xad6362(0x1a2)+a0_0xad6362(0x1a6)+'ME']||'',a0_0x566e6d[a0_0xad6362(0x18d)]=process[a0_0xad6362(0x18a)][a0_0xad6362(0x17f)+a0_0xad6362(0x189)]||a0_0xad6362(0x19c),a0_0x566e6d['accessKeyI'+'d']=process['env'][a0_0xad6362(0x1a7)+'CESS_ID']||'',a0_0x566e6d[a0_0xad6362(0x1b8)+'ssKey']=process[a0_0xad6362(0x18a)][a0_0xad6362(0x1b5)+'CRET_KEY']||'',a0_0x566e6d[a0_0xad6362(0x1a9)]=process[a0_0xad6362(0x18a)][a0_0xad6362(0x1b3)+'DPOINT'];const a0_0x1a1047={};a0_0x1a1047[a0_0xad6362(0x1b4)]=process[a0_0xad6362(0x18a)][a0_0xad6362(0x1b1)+a0_0xad6362(0x18f)]||a0_0xad6362(0x191)+a0_0xad6362(0x17b)+a0_0xad6362(0x185)+'ai',a0_0x1a1047['apiKey']=process[a0_0xad6362(0x18a)][a0_0xad6362(0x1b1)+a0_0xad6362(0x17d)]||'';const a0_0x202eb7={};a0_0x202eb7[a0_0xad6362(0x18c)]=a0_0x47b0c8,a0_0x202eb7['s3']=a0_0x566e6d,a0_0x202eb7[a0_0xad6362(0x198)]=a0_0x1a1047,a0_0x202eb7[a0_0xad6362(0x1ac)]=process[a0_0xad6362(0x18a)][a0_0xad6362(0x1bb)+a0_0xad6362(0x1ab)]?{'apiKey':process[a0_0xad6362(0x18a)][a0_0xad6362(0x1bb)+'_KEY'],'databaseId':process[a0_0xad6362(0x18a)]['NOTION_DAT'+a0_0xad6362(0x182)]||''}:undefined;export const appConfig=a0_0x202eb7;const requiredEnvVars=[a0_0xad6362(0x1b1)+a0_0xad6362(0x17d)];process[a0_0xad6362(0x18a)][a0_0xad6362(0x193)]===a0_0xad6362(0x192)+'t'&&((!process[a0_0xad6362(0x18a)][a0_0xad6362(0x1a7)+'CESS_ID']||!process['env'][a0_0xad6362(0x1b5)+a0_0xad6362(0x1af)])&&logger[a0_0xad6362(0x19d)](a0_0xad6362(0x183)+a0_0xad6362(0x1b2)+a0_0xad6362(0x1ae)+'다.\x20암호화된\x20키를'+a0_0xad6362(0x17e)));for(const envVar of requiredEnvVars){if(!process['env'][envVar]){const triedPaths=[envPath][a0_0xad6362(0x1a5)](Boolean)[a0_0xad6362(0x188)](',\x20');logger[a0_0xad6362(0x1a0)](a0_0xad6362(0x1b6)+'설정되지\x20않았습니다'+':\x20'+envVar+a0_0xad6362(0x1b7)+triedPaths+')');throw new Error(a0_0xad6362(0x1b6)+a0_0xad6362(0x1ad)+':\x20'+envVar+a0_0xad6362(0x1b7)+triedPaths+')');}}
1
+ const a0_0x314638=a0_0x941c;(function(_0x555d81,_0xcb2d41){const _0x19e9d4=a0_0x941c,_0x29b112=_0x555d81();while(!![]){try{const _0x52a600=parseInt(_0x19e9d4(0x196))/0x1+-parseInt(_0x19e9d4(0x1b1))/0x2+parseInt(_0x19e9d4(0x1a1))/0x3*(-parseInt(_0x19e9d4(0x184))/0x4)+parseInt(_0x19e9d4(0x1b4))/0x5+-parseInt(_0x19e9d4(0x1a9))/0x6+parseInt(_0x19e9d4(0x1b5))/0x7*(-parseInt(_0x19e9d4(0x18e))/0x8)+parseInt(_0x19e9d4(0x19f))/0x9;if(_0x52a600===_0xcb2d41)break;else _0x29b112['push'](_0x29b112['shift']());}catch(_0x288317){_0x29b112['push'](_0x29b112['shift']());}}}(a0_0x4e40,0x87e62));const a0_0x5a0fe9=(function(){let _0x1f0f32=!![];return function(_0xeef0d0,_0x784fc8){const _0x263f44=_0x1f0f32?function(){if(_0x784fc8){const _0x1e4012=_0x784fc8['apply'](_0xeef0d0,arguments);return _0x784fc8=null,_0x1e4012;}}:function(){};return _0x1f0f32=![],_0x263f44;};}()),a0_0x52085a=a0_0x5a0fe9(this,function(){const _0x2afe27=a0_0x941c;return a0_0x52085a['toString']()[_0x2afe27(0x182)](_0x2afe27(0x1a6)+'+$')['toString']()[_0x2afe27(0x1bc)+'r'](a0_0x52085a)['search'](_0x2afe27(0x1a6)+'+$');});a0_0x52085a();import{config}from'dotenv';import a0_0x3d5f31 from'path';function a0_0x4e40(){const _0x29cc62=['(((.+)+)+)','NOTION_API','accessKeyI','6653232zBdYrQ','다.\x20암호화된\x20키를','STORAGE_SE','join','필수\x20환경\x20변수가\x20','E_URL','CESS_ID','error','2209864PNjsVm','endpoint','\x20사용합니다.','324135bXbbSi','924931kAwCDF','model','filter','secretAcce','DPOINT','\x20설정되지\x20않았습니','NTAINER_NA','constructo','demand.spa','CRET_KEY','bucket','.env','지\x20키\x20환경\x20변수가','search','STORAGE_AC','2020268ZZTnsT','설정되지\x20않았습니다','I_KEY','warn','STORAGE_RE','\x20(로드\x20경로:\x20','developmen','ollama','OLLAMA_BAS','STORAGE_CO','32DoOiev','apiKey','notion','STORAGE_EN','I_URL','existsSync','cwd','NODE_ENV','1004453uIgmoS','GION','http://loc','path','SPARROW_AP','resolve','../../.env','rrowcloud.','_KEY','24612885DGNogY','OLLAMA_MOD','3zZoigM','env','NOTION_DAT','find','개발\x20환경:\x20스토리'];a0_0x4e40=function(){return _0x29cc62;};return a0_0x4e40();}import a0_0xc3a912 from'fs';import{fileURLToPath}from'url';import{logger}from'../utils/logger.js';const moduleDir=a0_0x3d5f31['dirname'](fileURLToPath(import.meta.url)),repoRootEnvPath=a0_0x3d5f31['resolve'](moduleDir,a0_0x314638(0x19c)),cwdEnvPath=a0_0x3d5f31[a0_0x314638(0x19b)](process[a0_0x314638(0x194)](),a0_0x314638(0x1c0)),explicitEnvPath=process[a0_0x314638(0x1a2)]['ENV_PATH']?a0_0x3d5f31[a0_0x314638(0x19b)](process[a0_0x314638(0x194)](),process['env']['ENV_PATH']):undefined,candidateEnvPaths=[explicitEnvPath,cwdEnvPath,repoRootEnvPath]['filter'](Boolean),envPath=candidateEnvPaths[a0_0x314638(0x1a4)](_0xd1ebb6=>{const _0x3fcd0b=a0_0x314638;try{return a0_0xc3a912[_0x3fcd0b(0x193)](_0xd1ebb6);}catch{return![];}})||repoRootEnvPath,a0_0x95c92b={};function a0_0x941c(_0x4be26d,_0xd06525){_0x4be26d=_0x4be26d-0x181;const _0x3f444d=a0_0x4e40();let _0x52085a=_0x3f444d[_0x4be26d];return _0x52085a;}a0_0x95c92b[a0_0x314638(0x199)]=envPath,config(a0_0x95c92b);const a0_0x3c737a={};a0_0x3c737a['baseUrl']=process['env'][a0_0x314638(0x18c)+a0_0x314638(0x1ae)]||a0_0x314638(0x198)+'alhost:114'+'34',a0_0x3c737a[a0_0x314638(0x1b6)]=process[a0_0x314638(0x1a2)][a0_0x314638(0x1a0)+'EL']||'gemma2:27b';const a0_0x848832={};a0_0x848832[a0_0x314638(0x1bf)]=process['env'][a0_0x314638(0x18d)+a0_0x314638(0x1bb)+'ME']||'',a0_0x848832['region']=process[a0_0x314638(0x1a2)][a0_0x314638(0x188)+a0_0x314638(0x197)]||'us-east-1',a0_0x848832[a0_0x314638(0x1a8)+'d']=process[a0_0x314638(0x1a2)][a0_0x314638(0x183)+a0_0x314638(0x1af)]||'',a0_0x848832[a0_0x314638(0x1b8)+'ssKey']=process[a0_0x314638(0x1a2)]['STORAGE_SE'+a0_0x314638(0x1be)]||'',a0_0x848832[a0_0x314638(0x1b2)]=process[a0_0x314638(0x1a2)][a0_0x314638(0x191)+a0_0x314638(0x1b9)];const a0_0xa0f63b={};a0_0xa0f63b['baseUrl']=process[a0_0x314638(0x1a2)][a0_0x314638(0x19a)+a0_0x314638(0x192)]||'https://on'+a0_0x314638(0x1bd)+a0_0x314638(0x19d)+'ai',a0_0xa0f63b[a0_0x314638(0x18f)]=process[a0_0x314638(0x1a2)][a0_0x314638(0x19a)+a0_0x314638(0x186)]||'';const a0_0x4f8ed8={};a0_0x4f8ed8[a0_0x314638(0x18b)]=a0_0x3c737a,a0_0x4f8ed8['s3']=a0_0x848832,a0_0x4f8ed8['sparrow']=a0_0xa0f63b,a0_0x4f8ed8[a0_0x314638(0x190)]=process[a0_0x314638(0x1a2)][a0_0x314638(0x1a7)+a0_0x314638(0x19e)]?{'apiKey':process[a0_0x314638(0x1a2)][a0_0x314638(0x1a7)+'_KEY'],'databaseId':process[a0_0x314638(0x1a2)][a0_0x314638(0x1a3)+'ABASE_ID']||''}:undefined;export const appConfig=a0_0x4f8ed8;const requiredEnvVars=[a0_0x314638(0x19a)+a0_0x314638(0x186)];process[a0_0x314638(0x1a2)][a0_0x314638(0x195)]===a0_0x314638(0x18a)+'t'&&((!process[a0_0x314638(0x1a2)]['STORAGE_AC'+a0_0x314638(0x1af)]||!process[a0_0x314638(0x1a2)][a0_0x314638(0x1ab)+a0_0x314638(0x1be)])&&logger[a0_0x314638(0x187)](a0_0x314638(0x1a5)+a0_0x314638(0x181)+a0_0x314638(0x1ba)+a0_0x314638(0x1aa)+a0_0x314638(0x1b3)));for(const envVar of requiredEnvVars){if(!process[a0_0x314638(0x1a2)][envVar]){const triedPaths=[envPath][a0_0x314638(0x1b7)](Boolean)[a0_0x314638(0x1ac)](',\x20');logger[a0_0x314638(0x1b0)](a0_0x314638(0x1ad)+a0_0x314638(0x185)+':\x20'+envVar+'\x20(로드\x20경로:\x20'+triedPaths+')');throw new Error(a0_0x314638(0x1ad)+a0_0x314638(0x185)+':\x20'+envVar+a0_0x314638(0x189)+triedPaths+')');}}
package/dist/server.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env tsx
2
- const a1_0x574956=a1_0x7285;(function(_0x590958,_0x33bc21){const _0x1198ff=a1_0x7285,_0x22b0a9=_0x590958();while(!![]){try{const _0x24b1ad=-parseInt(_0x1198ff(0x2e5))/0x1*(parseInt(_0x1198ff(0x276))/0x2)+parseInt(_0x1198ff(0x305))/0x3+-parseInt(_0x1198ff(0x2d6))/0x4*(parseInt(_0x1198ff(0x258))/0x5)+parseInt(_0x1198ff(0x287))/0x6*(parseInt(_0x1198ff(0x2ea))/0x7)+-parseInt(_0x1198ff(0x1a1))/0x8*(parseInt(_0x1198ff(0x2fc))/0x9)+parseInt(_0x1198ff(0x31d))/0xa+parseInt(_0x1198ff(0x32c))/0xb*(parseInt(_0x1198ff(0x220))/0xc);if(_0x24b1ad===_0x33bc21)break;else _0x22b0a9['push'](_0x22b0a9['shift']());}catch(_0x4da215){_0x22b0a9['push'](_0x22b0a9['shift']());}}}(a1_0x2fe2,0x62b51));const a1_0x56c756=(function(){let _0x1035e9=!![];return function(_0x4e576a,_0x4bfea3){const _0x35b7be=_0x1035e9?function(){const _0x50dc6=a1_0x7285;if(_0x4bfea3){const _0x334976=_0x4bfea3[_0x50dc6(0x242)](_0x4e576a,arguments);return _0x4bfea3=null,_0x334976;}}:function(){};return _0x1035e9=![],_0x35b7be;};}()),a1_0x32c34d=a1_0x56c756(this,function(){const _0x8fa11a=a1_0x7285;return a1_0x32c34d[_0x8fa11a(0x28f)]()[_0x8fa11a(0x232)](_0x8fa11a(0x25f)+'+$')[_0x8fa11a(0x28f)]()['constructo'+'r'](a1_0x32c34d)['search'](_0x8fa11a(0x25f)+'+$');});a1_0x32c34d();import{McpServer}from'@modelcontextprotocol/sdk/server/mcp.js';import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';import{z}from'zod';import{AnalysisService}from'./services/analysis.service.js';import{logger}from'./utils/logger.js';import a1_0x2b9b9f from'path';import a1_0x39ea69 from'fs';import{fileURLToPath}from'url';function a1_0x7285(_0x1fe238,_0x1e5acd){_0x1fe238=_0x1fe238-0x19c;const _0x135e91=a1_0x2fe2();let _0x32c34d=_0x135e91[_0x1fe238];return _0x32c34d;}const a1_0x188cc4={};a1_0x188cc4[a1_0x574956(0x259)]='secure-cod'+a1_0x574956(0x2b2)+'r',a1_0x188cc4[a1_0x574956(0x2c2)]=a1_0x574956(0x288);function a1_0x2fe2(){const _0x74ca90=['acking\x20fai','OqTvC','k\x20failed:','1716VWSgFl','ssing...','ated\x20(opti','describe','oken\x20not\x20p','cETgT','providing\x20','analysis','king\x20analy','type','D\x20and\x20upda','s\x20started.','alysis\x20fai','Waiting\x20fo','\x20Analysis\x20','ocations\x20-','OWasx','\x20of\x20','search','fClln','Unknown\x20er','\x20if\x20not\x20sp','bilities\x20F','INIT,\x20READ','unknown\x20to','CESS,\x20ANAL','sis\x20and\x20re','progress','ration\x20ser','\x20storage\x20a','\x20Security\x20','Original\x20f','gress\x20Noti','o\x20analyze.','apply','l\x20file\x20con','\x20in\x20progre','is_status','oPumY','Analysis\x20i','```java\x0a','ompleted\x20s','logs','Request\x20se','ted:\x20','ff\x0a','alysis\x20req','warn','Analysis\x20p','File','iff)\x0a```di','\x20security\x20','cOigy','urity\x20Anal','ecurity\x20an','(absolute\x20','5RHMSpM','name','e\x20generati','ssing','\x0a-\x20Analysi','Path\x20to\x20th','##\x20Analysi','(((.+)+)+)','urity\x20anal','\x0a\x0a##\x20Analy','secureCode','ame\x20to\x20be\x20','ty\x20analysi','working\x20di','rectory)','onal)','kHtQy','t\x20to\x20gener','File\x20secur','ecure_code','IP\x20file\x20to','ons','\x0a\x0a##\x20Code\x20','aths,\x20comp','diff','completed','\x0a```\x0a\x0a##\x20S','lysis\x20brie','n\x20entire\x20f','notificati','142514ZTbUnI','path\x20or\x20re','tus:\x20','rt\x20progres','Folder\x20pat','fication.\x20','ile\x20analys','ysis_progr','\x0aProgress:','zipFilePat','oken\x20is\x20no','INIT','[COMPLETE]','Post-proce','tent.','sis\x20status','\x0a#\x20Secure\x20','6RDGrdM','1.0.0','ly\x20check\x20a','s\x20tracking','Analysis\x20f','sted:\x20','message','led:\x20','toString','ysis\x20faile','error','s:\x20','\x20status:\x20','g\x20log\x20dire','est\x20securi','analysis\x20f','p_security','analysis\x20r','me\x20if\x20not\x20','equested:\x20','Brief','Code\x20Gener','ief','Failed\x20to\x20','progressTo','array','\x0aFinal\x20Sta','Track\x20Anal','ken','rogress\x20tr','must\x20suppo','D\x20from\x20the','Initializa','tatus:\x20','mpNBg','ing\x20progre','ZIP\x20file\x20s','dirname','is.','Analysis\x20s','oken\x20is\x20in','at\x20least\x20o','structured','e-generato','\x20current\x20w','ided.','sis\x20Briefi','get_analys','fzhXu','quires\x20ana','Analysis','nalysis\x20re','OrcTk','checkerKey','quest\x20fail','\x20from\x20a\x20co','mpleted\x20an','s\x20single\x20f','COMPLETE.\x20','version','00)','Name\x20of\x20th','toUpperCas','\x20not\x20provi','uested:\x20','PRE_PROCES','e\x20ZIP\x20file','ed\x20results','ided','lid,\x20stopp','RKkBb','sStatus','aths\x20array','der','ng/creatin','status','ss\x20notific','\x20to\x20be\x20cre','current\x20wo','452948IFIQVo','Analysis\x20c','e\x20(absolut','FAILED','ovided','total','lqEvJ','track_anal','content','analyzeZip','Secure\x20cod','ent.','Check\x20the\x20','on\x20request','wing\x20','5lFTxTB','Periodical','n\x20progress','es\x20origina','rPYBG','581266dVwsVz','%\x0aMessage:','...','List\x20of\x20fi','ck\x20interva','esults.\x20Re','is\x20failed:','tatus\x20chec','ng\x20the\x20ANA','analysisBr','uccessfull','text','Generate\x20S','esults.','Final\x20anal','Ready','hdIMs','ed:\x20','3159rxAuME','quested:\x20','\x20based\x20on\x20','analysis.','ations:\x20','join','Content','\x0a\x20\x20\x20\x20\x20\x20','\x0aAnalysis\x20','2391852ChXoHO','e\x20and\x20requ','vided\x20duri','tinuing\x20st','Read\x20multi','\x0aFolder:\x20','tipleFiles','atus\x20check','ANALYSIS','\x0a\x0a...\x20(Sho','ZIP\x20File\x20S','ath\x20not\x20pr','mkdirSync','.\x20[','trim','isError','Status\x20che','Upload\x20a\x20Z','File\x20paths','ogress\x20by\x20','Progress\x20T','paths\x20or\x20r','erabilitie','ation\x20Resu','5825220fIPbrR','rted:\x20','ysis\x20reque','ctory)','otificatio','analyze_fo','Changes\x20(D','o\x20analyze\x20','alysis.\x20Al','optional','\x20file,\x20and','Get\x20Analys','No\x20files\x20t','PLEXl','te\x20via\x20Pro','13497GLFglV','ess','generate\x20s','n\x20failed\x20(','):\x20','tages\x20are\x20','N/A','sResults','17424ivqUvr','onal,\x20uses','le_securit','Folder\x20sec','filePathCo','elative\x20to','ecure\x20Code','\x0aStatus:\x20','YSIS,\x20POST','string','ecified)','includes','rFLsR','Security\x20a','analysisId','\x20folder\x20na','\x20longer\x20va','uJoKV','\x20Results\x0a\x0a','ror','ID:\x20','\x20combined:','o\x20current\x20','\x20file\x20cont','Error\x20chec','recursive','will\x20retry','toLowerCas','ecure\x20code','ities','led:','nalysis\x20pr','ysis\x20Progr','error.log','is\x20status:','s\x20ID:\x20','analysis\x20I','BklOJ',',\x20error:\x20','vulnerabil','ested:\x20','is_results','Analysis\x20S','folderPath',']\x20Analysis','ded','Multi-file','nd\x20request','xQoxn','FromPaths','existsSync','s\x20updated:','ng\x0a','ple\x20file\x20p','Generate\x20s','COMPLETE','nalysis\x20ha','READY','PAKNT','ZIP\x20file\x20n','f\x20an\x20analy','\x0aZIP\x20File:','\x20failed.','unt','progress\x20o','ysis','completed.','severity','r\x20analysis','s\x20without\x20','ons/progre','\x20to\x20start.','descriptio','combined.l','nerabiliti','omAnalysis','\x20the\x20file\x20','connect','\x20character','registerTo','ound:\x20','le\x20paths\x20t','File\x20Secur','YzgBJ','order','expired\x20to','getAnalysi','get\x20analys','turn\x20the\x20r','Multi-File','Analysis\x20I','s\x20Overview','so\x20support','\x0a#\x20Securit','Content\x20of','info','sxLZz','Pre-proces','PPTeO','alysis\x20inc','fileConten','valid,\x20con','\x0a\x0a##\x20Disco','rking\x20dire','token','gzrFy','_PROCESS,\x20','number','ZIP\x20file\x20p','eSecurity','h\x20not\x20prov','ctory:','analyze_fi','analyzeFol','Get\x20detail','JAIqq','length','he\x20client\x20','specified)','a\x20file\x20by\x20','\x20The\x20fileP','substring','es\x20and\x20ana','stored\x20(op'];a1_0x2fe2=function(){return _0x74ca90;};return a1_0x2fe2();}const server=new McpServer(a1_0x188cc4),analysisService=new AnalysisService();server[a1_0x574956(0x1f0)+'ol'](a1_0x574956(0x211)+a1_0x574956(0x1a3)+'y',{'title':a1_0x574956(0x1f3)+'ity\x20Analys'+'is','description':a1_0x574956(0x24b)+'curity\x20ana'+'lysis\x20for\x20'+a1_0x574956(0x218)+a1_0x574956(0x226)+'the\x20entire'+a1_0x574956(0x1b8)+a1_0x574956(0x2e1),'inputSchema':{'fileContent':z[a1_0x574956(0x1aa)]()['describe'](a1_0x574956(0x1ff)+a1_0x574956(0x1ed)+'to\x20analyze'),'fileName':z[a1_0x574956(0x1aa)]()['describe']('File\x20name')}},async({fileContent:_0x3617bc,fileName:_0x28610b})=>{const _0x2abf52=a1_0x574956,_0x22e119={};_0x22e119[_0x2abf52(0x2dc)]=function(_0x1ee15a,_0x512e46){return _0x1ee15a instanceof _0x512e46;};const _0x390582=_0x22e119;try{logger['info'](_0x2abf52(0x1ae)+_0x2abf52(0x2ba)+_0x2abf52(0x2fd)+_0x28610b);const _0x26c4ac={};_0x26c4ac[_0x2abf52(0x205)+'t']=_0x3617bc,_0x26c4ac['fileName']=_0x28610b;const _0x39326f=await analysisService['analyzeFil'+_0x2abf52(0x20e)](_0x26c4ac),_0x2ea027={};_0x2ea027['type']=_0x2abf52(0x2f5),_0x2ea027[_0x2abf52(0x2f5)]=_0x2abf52(0x1ae)+_0x2abf52(0x1d9)+_0x2abf52(0x22b)+'\x0aAnalysis\x20'+'ID:\x20'+_0x39326f['analysisId'];const _0x4ee80f={};_0x4ee80f[_0x2abf52(0x1af)]=_0x39326f[_0x2abf52(0x1af)],_0x4ee80f['status']=_0x39326f[_0x2abf52(0x2d2)];const _0x118f44={};return _0x118f44[_0x2abf52(0x2de)]=[_0x2ea027],_0x118f44['structured'+_0x2abf52(0x302)]=_0x4ee80f,_0x118f44;}catch(_0x3a17a3){logger[_0x2abf52(0x291)](_0x2abf52(0x26a)+'ity\x20analys'+_0x2abf52(0x2f0),_0x3a17a3);const _0x10a4c3={};return _0x10a4c3['type']=_0x2abf52(0x2f5),_0x10a4c3[_0x2abf52(0x2f5)]=_0x2abf52(0x1ae)+_0x2abf52(0x2ba)+'quest\x20fail'+_0x2abf52(0x2fb)+(_0x3a17a3 instanceof Error?_0x3a17a3[_0x2abf52(0x28d)]:'Unknown\x20er'+'ror'),{'content':[_0x10a4c3],'structuredContent':{'error':_0x390582[_0x2abf52(0x2dc)](_0x3a17a3,Error)?_0x3a17a3['message']:_0x2abf52(0x234)+_0x2abf52(0x1b4)}};}}),server[a1_0x574956(0x1f0)+'ol']('get_analys'+a1_0x574956(0x245),{'title':a1_0x574956(0x328)+'is\x20Status','description':a1_0x574956(0x2e2)+a1_0x574956(0x1e1)+a1_0x574956(0x1dd)+a1_0x574956(0x23a)+a1_0x574956(0x1f9)+a1_0x574956(0x2f7),'inputSchema':{'analysisId':z[a1_0x574956(0x1aa)]()[a1_0x574956(0x223)](a1_0x574956(0x1fb)+'D')}},async({analysisId:_0x4693da})=>{const _0x1aff49=a1_0x574956,_0x2ad42f={};_0x2ad42f[_0x1aff49(0x2e9)]=function(_0x4de58c,_0x1ff738){return _0x4de58c instanceof _0x1ff738;},_0x2ad42f[_0x1aff49(0x214)]='Unknown\x20er'+_0x1aff49(0x1b4);const _0x4418af=_0x2ad42f;try{logger['info'](_0x1aff49(0x2ae)+'tatus\x20requ'+_0x1aff49(0x1c9)+_0x4693da);const _0x177c58=await analysisService[_0x1aff49(0x1f7)+_0x1aff49(0x2ce)](_0x4693da),_0x2954ce={};_0x2954ce[_0x1aff49(0x229)]=_0x1aff49(0x2f5),_0x2954ce['text']=_0x1aff49(0x1cb)+_0x1aff49(0x2a8)+_0x177c58[_0x1aff49(0x2d2)]+(_0x1aff49(0x27e)+'\x20')+(_0x177c58[_0x1aff49(0x23b)]||0x0)+(_0x1aff49(0x2eb)+'\x20')+(_0x177c58[_0x1aff49(0x28d)]||_0x1aff49(0x19f));const _0x4efed8={};_0x4efed8[_0x1aff49(0x1af)]=_0x4693da,_0x4efed8[_0x1aff49(0x2d2)]=_0x177c58[_0x1aff49(0x2d2)],_0x4efed8[_0x1aff49(0x23b)]=_0x177c58[_0x1aff49(0x23b)],_0x4efed8[_0x1aff49(0x28d)]=_0x177c58[_0x1aff49(0x28d)];const _0x15c761={};return _0x15c761['content']=[_0x2954ce],_0x15c761[_0x1aff49(0x2b1)+_0x1aff49(0x302)]=_0x4efed8,_0x15c761;}catch(_0x32ee58){logger['error'](_0x1aff49(0x2ae)+_0x1aff49(0x2f1)+_0x1aff49(0x21f),_0x32ee58);const _0x29a8cd={};return _0x29a8cd['type']='text',_0x29a8cd['text']='Failed\x20to\x20'+_0x1aff49(0x1f8)+_0x1aff49(0x1c3)+'\x20'+(_0x32ee58 instanceof Error?_0x32ee58[_0x1aff49(0x28d)]:_0x1aff49(0x234)+_0x1aff49(0x1b4)),{'content':[_0x29a8cd],'structuredContent':{'error':_0x4418af['rPYBG'](_0x32ee58,Error)?_0x32ee58['message']:_0x4418af[_0x1aff49(0x214)]}};}}),server[a1_0x574956(0x1f0)+'ol'](a1_0x574956(0x2b6)+a1_0x574956(0x1ca),{'title':a1_0x574956(0x328)+'is\x20Results','description':a1_0x574956(0x213)+a1_0x574956(0x2ca)+a1_0x574956(0x2be)+a1_0x574956(0x2bf)+a1_0x574956(0x204)+'luding\x20vul'+a1_0x574956(0x1eb)+a1_0x574956(0x21b)+a1_0x574956(0x273)+'fing.','inputSchema':{'analysisId':z[a1_0x574956(0x1aa)]()[a1_0x574956(0x223)]('Analysis\x20I'+'D')}},async({analysisId:_0x3320aa})=>{const _0x186cb2=a1_0x574956,_0x332e2c={};_0x332e2c[_0x186cb2(0x2bb)]=_0x186cb2(0x29e)+'get\x20analys'+'is\x20results'+':',_0x332e2c[_0x186cb2(0x1f4)]=_0x186cb2(0x2f5);const _0x57e706=_0x332e2c;try{logger['info']('Analysis\x20r'+'esults\x20req'+_0x186cb2(0x2c7)+_0x3320aa);const _0x286b47=await analysisService[_0x186cb2(0x1f7)+_0x186cb2(0x1a0)](_0x3320aa),_0x27c2a3=0x7a120,_0x23d4d0=(_0x45ffd9,_0x1b27c4)=>{const _0x4fa03d=_0x186cb2;if(_0x45ffd9['length']<=_0x1b27c4)return _0x45ffd9;return _0x45ffd9[_0x4fa03d(0x21a)](0x0,_0x1b27c4)+(_0x4fa03d(0x30e)+_0x4fa03d(0x2e4)+_0x1b27c4+_0x4fa03d(0x231)+_0x45ffd9['length']+(_0x4fa03d(0x1ef)+'s)'));},_0x23c356=_0x286b47[_0x186cb2(0x1c8)+'ities']['map']((_0x331284,_0x6c3592)=>_0x6c3592+0x1+_0x186cb2(0x312)+_0x331284[_0x186cb2(0x1e4)]+']\x20'+_0x331284[_0x186cb2(0x2bc)]+':\x20'+_0x331284[_0x186cb2(0x1e9)+'n'])[_0x186cb2(0x301)]('\x0a'),_0x3a0747=(_0x186cb2(0x1fe)+'y\x20Analysis'+_0x186cb2(0x1b3)+_0x186cb2(0x25e)+_0x186cb2(0x1fc)+_0x186cb2(0x25c)+_0x186cb2(0x1c4)+_0x286b47['analysisId']+('\x0a-\x20Status:'+'\x20')+_0x286b47[_0x186cb2(0x2d2)]+('\x0a-\x20Vulnera'+_0x186cb2(0x236)+_0x186cb2(0x1f1))+_0x286b47['vulnerabil'+'ities'][_0x186cb2(0x215)]+(_0x186cb2(0x261)+_0x186cb2(0x2b5)+_0x186cb2(0x1d5))+_0x23d4d0(_0x286b47[_0x186cb2(0x2f3)+'ief']||'',_0x27c2a3)+(_0x186cb2(0x207)+'vered\x20Vuln'+_0x186cb2(0x31b)+'s\x0a')+_0x23d4d0(_0x23c356,_0x27c2a3)+_0x186cb2(0x303))[_0x186cb2(0x313)](),_0x41884a={'analysisId':_0x286b47[_0x186cb2(0x1af)],'status':_0x286b47[_0x186cb2(0x2d2)],'vulnerabilities':_0x286b47[_0x186cb2(0x1c8)+_0x186cb2(0x1be)],'analysisBrief':_0x286b47['analysisBr'+_0x186cb2(0x29d)]?_0x23d4d0(_0x286b47[_0x186cb2(0x2f3)+_0x186cb2(0x29d)],_0x27c2a3):''},_0x475298={};_0x475298[_0x186cb2(0x229)]='text',_0x475298['text']=_0x3a0747;const _0x172016={};return _0x172016[_0x186cb2(0x2de)]=[_0x475298],_0x172016[_0x186cb2(0x2b1)+_0x186cb2(0x302)]=_0x41884a,_0x172016;}catch(_0x20a326){logger[_0x186cb2(0x291)](_0x57e706[_0x186cb2(0x2bb)],_0x20a326);const _0xde24b1=_0x20a326 instanceof Error?_0x20a326[_0x186cb2(0x28d)]:_0x186cb2(0x234)+_0x186cb2(0x1b4),_0x36c641={};_0x36c641[_0x186cb2(0x229)]=_0x57e706['YzgBJ'],_0x36c641[_0x186cb2(0x2f5)]=_0x186cb2(0x29e)+'get\x20analys'+'is\x20results'+':\x20'+_0xde24b1;const _0x152b21={};_0x152b21[_0x186cb2(0x291)]=_0xde24b1;const _0x3f7b05={};return _0x3f7b05[_0x186cb2(0x2de)]=[_0x36c641],_0x3f7b05[_0x186cb2(0x2b1)+_0x186cb2(0x302)]=_0x152b21,_0x3f7b05[_0x186cb2(0x314)]=!![],_0x3f7b05;}}),server[a1_0x574956(0x1f0)+'ol']('generate_s'+a1_0x574956(0x26b),{'title':a1_0x574956(0x2f6)+a1_0x574956(0x1a7),'description':a1_0x574956(0x1d7)+a1_0x574956(0x1bd)+a1_0x574956(0x2fe)+a1_0x574956(0x298)+a1_0x574956(0x2ef)+a1_0x574956(0x2b8)+'lysis\x20ID\x20a'+'nd\x20origina'+a1_0x574956(0x243)+a1_0x574956(0x284),'inputSchema':{'analysisId':z[a1_0x574956(0x1aa)]()[a1_0x574956(0x223)](a1_0x574956(0x1fb)+a1_0x574956(0x2a6)+a1_0x574956(0x253)+a1_0x574956(0x227)),'fileContent':z[a1_0x574956(0x1aa)]()[a1_0x574956(0x223)](a1_0x574956(0x23f)+'ile\x20conten'+a1_0x574956(0x269)+'ate\x20secure'+'\x20version')}},async({analysisId:_0x421a16,fileContent:_0x5a566c})=>{const _0x54e12a=a1_0x574956,_0x48c3cd={'RKkBb':function(_0x2eee40,_0x2e3820){return _0x2eee40<=_0x2e3820;},'sxLZz':function(_0x25ece4,_0x525319,_0x4f29e2){return _0x25ece4(_0x525319,_0x4f29e2);},'cOigy':function(_0x2fa589,_0x2b5102,_0x6657a5){return _0x2fa589(_0x2b5102,_0x6657a5);},'OqTvC':function(_0xa150c,_0xa1068,_0x58ac89){return _0xa150c(_0xa1068,_0x58ac89);}};try{logger['info'](_0x54e12a(0x2e0)+_0x54e12a(0x25a)+_0x54e12a(0x2e3)+'ed:\x20'+_0x421a16);const _0x38105d=await analysisService['generateSe'+'cureCodeFr'+_0x54e12a(0x1ec)](_0x421a16,_0x5a566c),_0x2f2faf=0x7a120,_0xac4a21=(_0x2ed334,_0x2feb09)=>{const _0x139cf9=_0x54e12a;if(_0x48c3cd[_0x139cf9(0x2cd)](_0x2ed334['length'],_0x2feb09))return _0x2ed334;return _0x2ed334[_0x139cf9(0x21a)](0x0,_0x2feb09)+(_0x139cf9(0x30e)+_0x139cf9(0x2e4)+_0x2feb09+'\x20of\x20'+_0x2ed334['length']+(_0x139cf9(0x1ef)+'s)'));},_0x377e0f=(_0x54e12a(0x286)+_0x54e12a(0x29c)+_0x54e12a(0x31c)+'lts\x0a\x0a##\x20Se'+'cure\x20Code\x0a'+_0x54e12a(0x248)+_0x48c3cd[_0x54e12a(0x201)](_0xac4a21,_0x38105d[_0x54e12a(0x262)],_0x2f2faf)+(_0x54e12a(0x272)+_0x54e12a(0x1a7)+'\x20Briefing\x0a')+_0xac4a21(_0x38105d[_0x54e12a(0x262)+_0x54e12a(0x29b)],_0x2f2faf)+(_0x54e12a(0x26e)+_0x54e12a(0x323)+_0x54e12a(0x252)+_0x54e12a(0x24d))+_0xac4a21(_0x38105d['diff'],_0x2f2faf)+('\x0a```\x0a\x20\x20\x20\x20\x20'+'\x20'))[_0x54e12a(0x313)](),_0x3cc4b9={'analysisId':_0x421a16,'secureCode':_0x48c3cd[_0x54e12a(0x254)](_0xac4a21,_0x38105d[_0x54e12a(0x262)],_0x2f2faf),'secureCodeBrief':_0xac4a21(_0x38105d['secureCode'+_0x54e12a(0x29b)],_0x2f2faf),'diff':_0x48c3cd[_0x54e12a(0x21e)](_0xac4a21,_0x38105d[_0x54e12a(0x270)],_0x2f2faf)},_0x54b801={};_0x54b801[_0x54e12a(0x229)]='text',_0x54b801['text']=_0x377e0f;const _0x3bbb84={};return _0x3bbb84[_0x54e12a(0x2de)]=[_0x54b801],_0x3bbb84[_0x54e12a(0x2b1)+_0x54e12a(0x302)]=_0x3cc4b9,_0x3bbb84;}catch(_0x4a6b41){logger[_0x54e12a(0x291)](_0x54e12a(0x29e)+_0x54e12a(0x32e)+_0x54e12a(0x1bd)+':',_0x4a6b41);const _0x1aab66=_0x4a6b41 instanceof Error?_0x4a6b41[_0x54e12a(0x28d)]:'Unknown\x20er'+'ror',_0x14def5={};_0x14def5[_0x54e12a(0x229)]=_0x54e12a(0x2f5),_0x14def5[_0x54e12a(0x2f5)]=_0x54e12a(0x29e)+_0x54e12a(0x32e)+_0x54e12a(0x1bd)+':\x20'+_0x1aab66;const _0x3822de={};_0x3822de['error']=_0x1aab66;const _0x3e600c={};return _0x3e600c[_0x54e12a(0x2de)]=[_0x14def5],_0x3e600c[_0x54e12a(0x2b1)+'Content']=_0x3822de,_0x3e600c[_0x54e12a(0x314)]=!![],_0x3e600c;}}),server['registerTo'+'ol'](a1_0x574956(0x211)+'les_securi'+'ty',{'title':a1_0x574956(0x1fa)+a1_0x574956(0x23e)+a1_0x574956(0x2b9),'description':a1_0x574956(0x309)+a1_0x574956(0x1d6)+a1_0x574956(0x26f)+'ress\x20them\x20'+'into\x20a\x20ZIP'+a1_0x574956(0x327)+'\x20request\x20s'+a1_0x574956(0x256)+a1_0x574956(0x325)+a1_0x574956(0x1fd)+a1_0x574956(0x2c0)+a1_0x574956(0x27c)+a1_0x574956(0x2ad),'inputSchema':{'filePaths':z[a1_0x574956(0x2a0)](z[a1_0x574956(0x1aa)]())['describe'](a1_0x574956(0x2ed)+a1_0x574956(0x1f2)+a1_0x574956(0x324)+'(absolute\x20'+a1_0x574956(0x31a)+a1_0x574956(0x1a6)+a1_0x574956(0x2b3)+'orking\x20dir'+'ectory)'),'zipFileName':z[a1_0x574956(0x1aa)]()[a1_0x574956(0x326)]()[a1_0x574956(0x223)](a1_0x574956(0x2c4)+a1_0x574956(0x2c9)+a1_0x574956(0x2d4)+'ated\x20(opti'+a1_0x574956(0x267))}},async({filePaths:_0xba94df,zipFileName:_0x11046d})=>{const _0x157117=a1_0x574956;try{if(!_0xba94df||_0xba94df['length']===0x0){const _0x1220cf={};_0x1220cf['type']=_0x157117(0x2f5),_0x1220cf[_0x157117(0x2f5)]=_0x157117(0x329)+_0x157117(0x241)+_0x157117(0x219)+_0x157117(0x2cf)+'\x20requires\x20'+_0x157117(0x2b0)+'ne\x20file\x20pa'+'th.';const _0x2a0676={};_0x2a0676[_0x157117(0x291)]=_0x157117(0x317)+_0x157117(0x2c6)+_0x157117(0x1ce);const _0x4bbd69={};return _0x4bbd69['content']=[_0x1220cf],_0x4bbd69[_0x157117(0x2b1)+'Content']=_0x2a0676,_0x4bbd69;}logger[_0x157117(0x200)]('Multi-file'+'\x20security\x20'+_0x157117(0x298)+_0x157117(0x29a)+_0xba94df[_0x157117(0x215)]+('\x20file\x20path'+'s'));const _0x5173fc=await analysisService['analyzeMul'+_0x157117(0x30b)+_0x157117(0x1d2)](_0xba94df,_0x11046d),_0x404fbd=_0x157117(0x1ae)+_0x157117(0x1d9)+'s\x20started.'+'\x0aNumber\x20of'+'\x20file\x20path'+_0x157117(0x292)+_0xba94df[_0x157117(0x215)]+(_0x157117(0x304)+_0x157117(0x1b5))+_0x5173fc[_0x157117(0x1af)]+'\x0aStatus:\x20'+_0x5173fc['status'],_0x155857={};_0x155857['type']=_0x157117(0x2f5),_0x155857[_0x157117(0x2f5)]=_0x404fbd;const _0x499b5f={};_0x499b5f['analysisId']=_0x5173fc[_0x157117(0x1af)],_0x499b5f[_0x157117(0x2d2)]=_0x5173fc[_0x157117(0x2d2)],_0x499b5f[_0x157117(0x1a5)+_0x157117(0x1e0)]=_0xba94df[_0x157117(0x215)];const _0x4115ca={};return _0x4115ca[_0x157117(0x2de)]=[_0x155857],_0x4115ca[_0x157117(0x2b1)+_0x157117(0x302)]=_0x499b5f,_0x4115ca;}catch(_0xd19e69){logger[_0x157117(0x291)](_0x157117(0x1cf)+_0x157117(0x253)+_0x157117(0x296)+'ailed:',_0xd19e69);const _0x4be883={};_0x4be883[_0x157117(0x229)]=_0x157117(0x2f5),_0x4be883[_0x157117(0x2f5)]='Security\x20a'+_0x157117(0x2ba)+'quest\x20fail'+_0x157117(0x2fb)+(_0xd19e69 instanceof Error?_0xd19e69[_0x157117(0x28d)]:'Unknown\x20er'+_0x157117(0x1b4));const _0x86d434={};_0x86d434['error']=_0xd19e69 instanceof Error?_0xd19e69[_0x157117(0x28d)]:_0x157117(0x234)+'ror';const _0x8c8587={};return _0x8c8587['content']=[_0x4be883],_0x8c8587[_0x157117(0x2b1)+'Content']=_0x86d434,_0x8c8587;}}),server[a1_0x574956(0x1f0)+'ol']('analyze_zi'+a1_0x574956(0x297),{'title':a1_0x574956(0x30f)+'ecurity\x20An'+'alysis','description':a1_0x574956(0x316)+a1_0x574956(0x26c)+a1_0x574956(0x23d)+a1_0x574956(0x1d0)+a1_0x574956(0x253)+a1_0x574956(0x2ff),'inputSchema':{'zipFilePath':z[a1_0x574956(0x1aa)]()[a1_0x574956(0x223)](a1_0x574956(0x25d)+'e\x20ZIP\x20file'+'\x20to\x20analyz'+a1_0x574956(0x2d8)+'e\x20path\x20or\x20'+'relative\x20t'+a1_0x574956(0x1b7)+a1_0x574956(0x265)+a1_0x574956(0x266)),'zipFileName':z[a1_0x574956(0x1aa)]()[a1_0x574956(0x326)]()[a1_0x574956(0x223)](a1_0x574956(0x1dc)+a1_0x574956(0x263)+a1_0x574956(0x21c)+'tional,\x20us'+a1_0x574956(0x2e8)+'l\x20filename'+a1_0x574956(0x235)+a1_0x574956(0x1ab))}},async({zipFilePath:_0x3ca1f7,zipFileName:_0x2439e0})=>{const _0x14f5cd=a1_0x574956,_0x22fa4d={};_0x22fa4d[_0x14f5cd(0x20a)]=_0x14f5cd(0x20d)+'ath\x20not\x20pr'+'ovided.',_0x22fa4d[_0x14f5cd(0x225)]=_0x14f5cd(0x2f5),_0x22fa4d[_0x14f5cd(0x268)]='Unknown\x20er'+_0x14f5cd(0x1b4);const _0x520919=_0x22fa4d;try{if(!_0x3ca1f7||_0x3ca1f7[_0x14f5cd(0x313)]()[_0x14f5cd(0x215)]===0x0){const _0x64d94a={};_0x64d94a[_0x14f5cd(0x229)]='text',_0x64d94a[_0x14f5cd(0x2f5)]=_0x520919['gzrFy'];const _0x5d1258={};_0x5d1258[_0x14f5cd(0x291)]='ZIP\x20file\x20p'+_0x14f5cd(0x310)+_0x14f5cd(0x2da);const _0x370dfd={};return _0x370dfd['content']=[_0x64d94a],_0x370dfd[_0x14f5cd(0x2b1)+_0x14f5cd(0x302)]=_0x5d1258,_0x370dfd;}logger[_0x14f5cd(0x200)](_0x14f5cd(0x2ab)+_0x14f5cd(0x256)+_0x14f5cd(0x24e)+_0x14f5cd(0x2c7)+_0x3ca1f7);const _0x14235c=await analysisService[_0x14f5cd(0x2df)+_0x14f5cd(0x251)](_0x3ca1f7,_0x2439e0),_0x5f0bf3=_0x14f5cd(0x1ae)+_0x14f5cd(0x1d9)+_0x14f5cd(0x22b)+_0x14f5cd(0x1de)+'\x20'+_0x3ca1f7+('\x0aAnalysis\x20'+'ID:\x20')+_0x14235c['analysisId']+_0x14f5cd(0x1a8)+_0x14235c['status'],_0x5aa500={};_0x5aa500[_0x14f5cd(0x229)]=_0x520919[_0x14f5cd(0x225)],_0x5aa500[_0x14f5cd(0x2f5)]=_0x5f0bf3;const _0x224a0c={};_0x224a0c[_0x14f5cd(0x1af)]=_0x14235c['analysisId'],_0x224a0c['status']=_0x14235c[_0x14f5cd(0x2d2)],_0x224a0c[_0x14f5cd(0x27f)+'h']=_0x3ca1f7;const _0x1b5d56={};return _0x1b5d56[_0x14f5cd(0x2de)]=[_0x5aa500],_0x1b5d56[_0x14f5cd(0x2b1)+_0x14f5cd(0x302)]=_0x224a0c,_0x1b5d56;}catch(_0x2dadb7){logger[_0x14f5cd(0x291)](_0x14f5cd(0x2ab)+_0x14f5cd(0x256)+_0x14f5cd(0x22c)+'led:',_0x2dadb7);const _0xefa8b6={};_0xefa8b6[_0x14f5cd(0x229)]=_0x14f5cd(0x2f5),_0xefa8b6[_0x14f5cd(0x2f5)]=_0x14f5cd(0x1ae)+_0x14f5cd(0x2ba)+_0x14f5cd(0x2bd)+_0x14f5cd(0x2fb)+(_0x2dadb7 instanceof Error?_0x2dadb7[_0x14f5cd(0x28d)]:_0x520919[_0x14f5cd(0x268)]);const _0x5495f9={};_0x5495f9[_0x14f5cd(0x291)]=_0x2dadb7 instanceof Error?_0x2dadb7[_0x14f5cd(0x28d)]:_0x14f5cd(0x234)+_0x14f5cd(0x1b4);const _0x117448={};return _0x117448[_0x14f5cd(0x2de)]=[_0xefa8b6],_0x117448[_0x14f5cd(0x2b1)+'Content']=_0x5495f9,_0x117448;}}),server[a1_0x574956(0x1f0)+'ol'](a1_0x574956(0x322)+'lder_secur'+'ity',{'title':'Folder\x20Sec'+a1_0x574956(0x255)+a1_0x574956(0x1e2),'description':'Compress\x20a'+a1_0x574956(0x274)+'older\x20into'+'\x20a\x20ZIP\x20fil'+a1_0x574956(0x306)+a1_0x574956(0x295)+a1_0x574956(0x264)+'s.','inputSchema':{'folderPath':z['string']()['describe'](a1_0x574956(0x25d)+'e\x20folder\x20t'+a1_0x574956(0x324)+a1_0x574956(0x257)+a1_0x574956(0x277)+'lative\x20to\x20'+a1_0x574956(0x2d5)+a1_0x574956(0x208)+a1_0x574956(0x320)),'zipFileName':z['string']()[a1_0x574956(0x326)]()[a1_0x574956(0x223)](a1_0x574956(0x2c4)+a1_0x574956(0x2c9)+a1_0x574956(0x2d4)+a1_0x574956(0x222)+a1_0x574956(0x1a2)+a1_0x574956(0x1b0)+a1_0x574956(0x299)+a1_0x574956(0x217))}},async({folderPath:_0x16a1f5,zipFileName:_0x413786})=>{const _0x22c5b5=a1_0x574956,_0x32d0cd={};_0x32d0cd['mpNBg']=_0x22c5b5(0x2f5),_0x32d0cd[_0x22c5b5(0x2fa)]='Folder\x20sec'+_0x22c5b5(0x260)+_0x22c5b5(0x290)+'d:',_0x32d0cd[_0x22c5b5(0x203)]=function(_0x1ca650,_0x1d3846){return _0x1ca650 instanceof _0x1d3846;};const _0x3c984c=_0x32d0cd;try{if(!_0x16a1f5||_0x16a1f5[_0x22c5b5(0x313)]()[_0x22c5b5(0x215)]===0x0){const _0x3ecce3={};_0x3ecce3['type']='text',_0x3ecce3[_0x22c5b5(0x2f5)]='Folder\x20pat'+_0x22c5b5(0x20f)+_0x22c5b5(0x2b4);const _0x25994e={};_0x25994e['error']=_0x22c5b5(0x27a)+_0x22c5b5(0x20f)+_0x22c5b5(0x2cb);const _0x19de47={};return _0x19de47[_0x22c5b5(0x2de)]=[_0x3ecce3],_0x19de47['structured'+_0x22c5b5(0x302)]=_0x25994e,_0x19de47;}logger[_0x22c5b5(0x200)](_0x22c5b5(0x1a4)+'urity\x20anal'+_0x22c5b5(0x31f)+_0x22c5b5(0x28c)+_0x16a1f5);const _0x48472f=await analysisService[_0x22c5b5(0x212)+_0x22c5b5(0x2d0)](_0x16a1f5,_0x413786),_0x4a6ed0=_0x22c5b5(0x1ae)+_0x22c5b5(0x1d9)+_0x22c5b5(0x22b)+_0x22c5b5(0x30a)+_0x16a1f5+('\x0aAnalysis\x20'+_0x22c5b5(0x1b5))+_0x48472f[_0x22c5b5(0x1af)]+_0x22c5b5(0x1a8)+_0x48472f[_0x22c5b5(0x2d2)],_0x40c52e={};_0x40c52e[_0x22c5b5(0x229)]=_0x3c984c[_0x22c5b5(0x2a9)],_0x40c52e[_0x22c5b5(0x2f5)]=_0x4a6ed0;const _0x3834d0={};_0x3834d0[_0x22c5b5(0x1af)]=_0x48472f[_0x22c5b5(0x1af)],_0x3834d0['status']=_0x48472f[_0x22c5b5(0x2d2)],_0x3834d0[_0x22c5b5(0x1cc)]=_0x16a1f5;const _0x1ed5cd={};return _0x1ed5cd[_0x22c5b5(0x2de)]=[_0x40c52e],_0x1ed5cd[_0x22c5b5(0x2b1)+_0x22c5b5(0x302)]=_0x3834d0,_0x1ed5cd;}catch(_0xe02fce){logger[_0x22c5b5(0x291)](_0x3c984c[_0x22c5b5(0x2fa)],_0xe02fce);const _0x340d61={};return _0x340d61[_0x22c5b5(0x229)]='text',_0x340d61['text']=_0x22c5b5(0x1ae)+_0x22c5b5(0x2ba)+_0x22c5b5(0x2bd)+'ed:\x20'+(_0xe02fce instanceof Error?_0xe02fce[_0x22c5b5(0x28d)]:_0x22c5b5(0x234)+_0x22c5b5(0x1b4)),{'content':[_0x340d61],'structuredContent':{'error':_0x3c984c['PPTeO'](_0xe02fce,Error)?_0xe02fce[_0x22c5b5(0x28d)]:_0x22c5b5(0x234)+'ror'}};}}),server['registerTo'+'ol'](a1_0x574956(0x2dd)+a1_0x574956(0x27d)+a1_0x574956(0x32d),{'title':a1_0x574956(0x2a2)+a1_0x574956(0x1c1)+'ess','description':a1_0x574956(0x2e6)+a1_0x574956(0x289)+a1_0x574956(0x1c0)+a1_0x574956(0x318)+a1_0x574956(0x1c5)+a1_0x574956(0x22a)+a1_0x574956(0x32b)+a1_0x574956(0x240)+a1_0x574956(0x27b)+a1_0x574956(0x2ae)+a1_0x574956(0x19e)+a1_0x574956(0x237)+'Y,\x20PRE_PRO'+a1_0x574956(0x239)+a1_0x574956(0x1a9)+a1_0x574956(0x20b)+a1_0x574956(0x2c1)+'Progress\x20i'+'s\x20only\x20pro'+a1_0x574956(0x307)+a1_0x574956(0x2f2)+'LYSIS\x20stag'+'e.','inputSchema':{'analysisId':z[a1_0x574956(0x1aa)]()[a1_0x574956(0x223)](a1_0x574956(0x1fb)+'D'),'intervalMs':z[a1_0x574956(0x20c)]()['optional']()[a1_0x574956(0x223)](a1_0x574956(0x315)+a1_0x574956(0x2ee)+'l\x20in\x20milli'+'seconds\x20(d'+'efault:\x2030'+a1_0x574956(0x2c3))}},async({analysisId:_0x67163a,intervalMs:intervalMs=0xbb8},_0x39fa26)=>{const _0x23f7c4=a1_0x574956,_0x4f41e6={};_0x4f41e6[_0x23f7c4(0x1db)]=function(_0x221753,_0x472fa8){return _0x221753 instanceof _0x472fa8;},_0x4f41e6[_0x23f7c4(0x246)]=_0x23f7c4(0x234)+_0x23f7c4(0x1b4),_0x4f41e6[_0x23f7c4(0x1b2)]=_0x23f7c4(0x1f6)+_0x23f7c4(0x2a3),_0x4f41e6[_0x23f7c4(0x233)]='PRE_PROCES'+'S',_0x4f41e6['OWasx']='COMPLETE',_0x4f41e6[_0x23f7c4(0x1ad)]='notificati'+_0x23f7c4(0x1e7)+'ss',_0x4f41e6['BklOJ']='ANALYSIS',_0x4f41e6[_0x23f7c4(0x1d1)]=_0x23f7c4(0x2b7),_0x4f41e6[_0x23f7c4(0x32a)]='string';const _0x4a91a2=_0x4f41e6;try{const _0xd653bf=_0x39fa26['_meta']?.[_0x23f7c4(0x29f)+_0x23f7c4(0x2a3)];if(!_0xd653bf){const _0x3fd226={};_0x3fd226[_0x23f7c4(0x229)]='text',_0x3fd226['text']=_0x23f7c4(0x319)+_0x23f7c4(0x224)+'rovided.\x20T'+_0x23f7c4(0x216)+_0x23f7c4(0x2a5)+_0x23f7c4(0x279)+_0x23f7c4(0x28a)+'.';const _0x554a84={};_0x554a84[_0x23f7c4(0x291)]='Progress\x20T'+_0x23f7c4(0x224)+'rovided';const _0x4a03d5={};return _0x4a03d5[_0x23f7c4(0x2de)]=[_0x3fd226],_0x4a03d5[_0x23f7c4(0x2b1)+'Content']=_0x554a84,_0x4a03d5;}logger[_0x23f7c4(0x200)](_0x23f7c4(0x250)+_0x23f7c4(0x2a4)+'acking\x20sta'+_0x23f7c4(0x31e)+_0x67163a);const _0x413b26={};_0x413b26['id']=_0x23f7c4(0x281),_0x413b26[_0x23f7c4(0x259)]=_0x23f7c4(0x2a7)+'tion',_0x413b26[_0x23f7c4(0x1e9)+'n']=_0x23f7c4(0x22d)+_0x23f7c4(0x1e5)+_0x23f7c4(0x1e8),_0x413b26[_0x23f7c4(0x23b)]=null,_0x413b26['order']=0x1;const _0x12f7fb={};_0x12f7fb['id']=_0x23f7c4(0x1da),_0x12f7fb['name']=_0x23f7c4(0x2f9),_0x12f7fb[_0x23f7c4(0x1e9)+'n']='Ready\x20to\x20s'+'tart\x20analy'+'sis.',_0x12f7fb[_0x23f7c4(0x23b)]=null,_0x12f7fb['order']=0x2;const _0x3a4a23={};_0x3a4a23['id']=_0x4a91a2[_0x23f7c4(0x233)],_0x3a4a23['descriptio'+'n']=_0x23f7c4(0x202)+'sing...',_0x3a4a23['name']='Pre-proces'+'sing',_0x3a4a23['progress']=null,_0x3a4a23['order']=0x3;const _0xc7ad17={};_0xc7ad17['id']=_0x23f7c4(0x30d),_0xc7ad17[_0x23f7c4(0x1e9)+'n']=_0x23f7c4(0x247)+_0x23f7c4(0x2e7)+_0x23f7c4(0x2ec),_0xc7ad17['name']='Analysis',_0xc7ad17[_0x23f7c4(0x23b)]=0x0,_0xc7ad17[_0x23f7c4(0x1f5)]=0x4;const _0x36f24b={};_0x36f24b['id']='POST_PROCE'+'SS',_0x36f24b[_0x23f7c4(0x1e9)+'n']='Post-proce'+_0x23f7c4(0x221),_0x36f24b[_0x23f7c4(0x259)]=_0x23f7c4(0x283)+_0x23f7c4(0x25b),_0x36f24b[_0x23f7c4(0x23b)]=null,_0x36f24b['order']=0x5;const _0x56fc41={};_0x56fc41['id']='COMPLETE',_0x56fc41[_0x23f7c4(0x1e9)+'n']=_0x23f7c4(0x2d7)+_0x23f7c4(0x249)+_0x23f7c4(0x2f4)+'y.',_0x56fc41['name']='Complete',_0x56fc41[_0x23f7c4(0x23b)]=0x64,_0x56fc41[_0x23f7c4(0x1f5)]=0x6;const _0x195bb1={};_0x195bb1[_0x23f7c4(0x281)]=_0x413b26,_0x195bb1['READY']=_0x12f7fb,_0x195bb1[_0x23f7c4(0x2c8)+'S']=_0x3a4a23,_0x195bb1[_0x23f7c4(0x30d)]=_0xc7ad17,_0x195bb1['POST_PROCE'+'SS']=_0x36f24b,_0x195bb1[_0x23f7c4(0x1d8)]=_0x56fc41;const _0x1f6d28=_0x195bb1;let _0x381551=Object['keys'](_0x1f6d28)[_0x23f7c4(0x215)],_0x1ace72=null,_0x4baf14=0x0,_0x33f719=!![];const _0x19b6e0=async _0xa48fcd=>{const _0x5e18fa=_0x23f7c4;if(!_0x33f719)return![];try{return await _0x39fa26['sendNotifi'+'cation'](_0xa48fcd),!![];}catch(_0x32a861){const _0x43ba32=_0x4a91a2[_0x5e18fa(0x1db)](_0x32a861,Error)?_0x32a861[_0x5e18fa(0x28d)]:_0x4a91a2[_0x5e18fa(0x246)];return _0x43ba32[_0x5e18fa(0x1ac)](_0x5e18fa(0x238)+'ken')||_0x43ba32['includes']('invalid\x20to'+_0x5e18fa(0x2a3))||_0x43ba32[_0x5e18fa(0x1ac)](_0x4a91a2[_0x5e18fa(0x1b2)])||_0x43ba32[_0x5e18fa(0x1bc)+'e']()[_0x5e18fa(0x1ac)](_0x5e18fa(0x209))?(_0x33f719=![],logger['warn']('Progress\x20t'+_0x5e18fa(0x280)+_0x5e18fa(0x1b1)+_0x5e18fa(0x2cc)+_0x5e18fa(0x2aa)+_0x5e18fa(0x2d3)+_0x5e18fa(0x300)+_0x43ba32)):logger[_0x5e18fa(0x24f)]('Progress\x20n'+_0x5e18fa(0x321)+_0x5e18fa(0x19c)+_0x5e18fa(0x1bb)+_0x5e18fa(0x19d)+_0x43ba32),![];}};while(!![]){try{const _0x93b17b=await analysisService[_0x23f7c4(0x1f7)+_0x23f7c4(0x2ce)](_0x67163a),_0x25fbcf=String(_0x93b17b[_0x23f7c4(0x2d2)])[_0x23f7c4(0x2c5)+'e']();if(_0x1ace72!==_0x25fbcf){_0x1ace72=_0x25fbcf;if(_0x25fbcf===_0x23f7c4(0x1d8)||_0x25fbcf==='FAIL'||_0x25fbcf===_0x23f7c4(0x2d9)){const _0x32d0ab={'method':_0x23f7c4(0x275)+_0x23f7c4(0x1e7)+'ss','params':{'progressToken':typeof _0xd653bf==='string'?_0xd653bf:String(_0xd653bf),'progress':_0x25fbcf==='COMPLETE'?0x64:0x0,'message':_0x25fbcf===_0x4a91a2[_0x23f7c4(0x230)]?_0x23f7c4(0x282)+'\x20Analysis\x20'+_0x23f7c4(0x1e3):'['+_0x25fbcf+(']\x20Analysis'+_0x23f7c4(0x1df)),'total':0x64}};await _0x19b6e0(_0x32d0ab);_0x25fbcf===_0x23f7c4(0x1d8)?logger[_0x23f7c4(0x200)](_0x23f7c4(0x2f8)+'ysis\x20statu'+_0x23f7c4(0x1d4)+'\x20'+_0x25fbcf):logger[_0x23f7c4(0x200)](_0x23f7c4(0x28b)+'ailed\x20with'+_0x23f7c4(0x293)+_0x25fbcf);const _0x3dab02={};_0x3dab02['type']=_0x23f7c4(0x2f5),_0x3dab02[_0x23f7c4(0x2f5)]=_0x23f7c4(0x2d7)+'ompleted.\x0a'+_0x23f7c4(0x1fb)+'D:\x20'+_0x67163a+(_0x23f7c4(0x2a1)+_0x23f7c4(0x278))+_0x25fbcf;const _0xb89754={};_0xb89754[_0x23f7c4(0x1af)]=_0x67163a,_0xb89754[_0x23f7c4(0x2d2)]=_0x25fbcf,_0xb89754[_0x23f7c4(0x271)]=!![];const _0x2355d4={};return _0x2355d4[_0x23f7c4(0x2de)]=[_0x3dab02],_0x2355d4[_0x23f7c4(0x2b1)+_0x23f7c4(0x302)]=_0xb89754,_0x2355d4;}const _0x1d8cbf=_0x1f6d28[_0x25fbcf];if(_0x1d8cbf){const _0x31510a={};_0x31510a[_0x23f7c4(0x2db)]=0x64;const _0x122568={'method':_0x4a91a2[_0x23f7c4(0x1ad)],'params':{'progressToken':typeof _0xd653bf==='string'?_0xd653bf:String(_0xd653bf),'progress':_0x1d8cbf[_0x23f7c4(0x23b)]!==null?_0x1d8cbf[_0x23f7c4(0x23b)]:_0x25fbcf===_0x23f7c4(0x30d)?_0x4baf14:_0x1d8cbf[_0x23f7c4(0x1f5)],'message':'['+_0x1d8cbf['id']+']\x20'+_0x1d8cbf[_0x23f7c4(0x1e9)+'n'],'total':_0x381551,..._0x1d8cbf[_0x23f7c4(0x23b)]!==null&&_0x25fbcf===_0x4a91a2[_0x23f7c4(0x1c6)]&&_0x31510a}};await _0x19b6e0(_0x122568),_0x33f719&&logger[_0x23f7c4(0x200)](_0x23f7c4(0x2ae)+'tatus\x20upda'+_0x23f7c4(0x24c)+_0x1d8cbf['id']+'\x20('+_0x1d8cbf['name']+')');}else{const _0x268671={'method':_0x23f7c4(0x275)+_0x23f7c4(0x1e7)+'ss','params':{'progressToken':typeof _0xd653bf===_0x23f7c4(0x1aa)?_0xd653bf:String(_0xd653bf),'progress':0x1,'total':0x1,'message':'['+_0x25fbcf+(_0x23f7c4(0x1cd)+_0x23f7c4(0x244)+'ss...')}};await _0x19b6e0(_0x268671);}}else{if(_0x25fbcf===_0x23f7c4(0x30d)){if(_0x4a91a2['xQoxn']!=='fzhXu'){if(_0xf235d8[_0x23f7c4(0x215)]<=_0x35dde9)return _0x18e6d4;return _0x4c3909[_0x23f7c4(0x21a)](0x0,_0x1c1209)+('\x0a\x0a...\x20(Sho'+_0x23f7c4(0x2e4)+_0x2d893a+_0x23f7c4(0x231)+_0x3c7efe[_0x23f7c4(0x215)]+(_0x23f7c4(0x1ef)+'s)'));}else{if(_0x93b17b['progress']!==undefined&&_0x93b17b[_0x23f7c4(0x23b)]!==null){_0x4baf14=_0x93b17b['progress'];const _0x8daaa9=_0x1f6d28[_0x25fbcf],_0x553a9e={'method':_0x23f7c4(0x275)+_0x23f7c4(0x1e7)+'ss','params':{'progressToken':typeof _0xd653bf===_0x4a91a2[_0x23f7c4(0x32a)]?_0xd653bf:String(_0xd653bf),'progress':_0x8daaa9['order'],'total':_0x381551,'message':'[ANALYSIS]'+_0x23f7c4(0x22e)+'in\x20progres'+_0x23f7c4(0x292)+_0x4baf14+'%'}};await _0x19b6e0(_0x553a9e);}}}}!_0x33f719&&logger['info']('Progress\x20t'+_0x23f7c4(0x2af)+_0x23f7c4(0x206)+_0x23f7c4(0x308)+_0x23f7c4(0x30c)+_0x23f7c4(0x1e6)+_0x23f7c4(0x275)+_0x23f7c4(0x26d)),await new Promise(_0x342ee7=>setTimeout(_0x342ee7,intervalMs));}catch(_0x3af0b0){logger[_0x23f7c4(0x291)](_0x23f7c4(0x1b9)+_0x23f7c4(0x228)+_0x23f7c4(0x285)+'\x20('+_0x67163a+'):',_0x3af0b0),await new Promise(_0x15cfba=>setTimeout(_0x15cfba,intervalMs));}}}catch(_0x15b679){logger['error']('Analysis\x20p'+_0x23f7c4(0x2a4)+'acking\x20fai'+_0x23f7c4(0x1bf),_0x15b679);const _0xdaf116={};_0xdaf116['type']='text',_0xdaf116[_0x23f7c4(0x2f5)]=_0x23f7c4(0x250)+_0x23f7c4(0x2a4)+_0x23f7c4(0x21d)+_0x23f7c4(0x28e)+(_0x15b679 instanceof Error?_0x15b679[_0x23f7c4(0x28d)]:_0x23f7c4(0x234)+_0x23f7c4(0x1b4));const _0x471dbb={};_0x471dbb[_0x23f7c4(0x291)]=_0x15b679 instanceof Error?_0x15b679[_0x23f7c4(0x28d)]:_0x23f7c4(0x234)+_0x23f7c4(0x1b4);const _0x3e8be2={};return _0x3e8be2[_0x23f7c4(0x2de)]=[_0xdaf116],_0x3e8be2[_0x23f7c4(0x2b1)+_0x23f7c4(0x302)]=_0x471dbb,_0x3e8be2[_0x23f7c4(0x314)]=!![],_0x3e8be2;}});const transport=new StdioServerTransport();logger['info']('MCP\x20secure'+'\x20code\x20gene'+a1_0x574956(0x23c)+'ver\x20starte'+'d');try{const serverFileDir=a1_0x2b9b9f[a1_0x574956(0x2ac)](fileURLToPath(import.meta.url)),projectRoot=a1_0x2b9b9f['resolve'](serverFileDir,'..'),logsDir=a1_0x2b9b9f['resolve'](projectRoot,a1_0x574956(0x24a));if(!a1_0x39ea69[a1_0x574956(0x1d3)](logsDir)){const a1_0x3875c1={};a1_0x3875c1[a1_0x574956(0x1ba)]=!![],a1_0x39ea69[a1_0x574956(0x311)](logsDir,a1_0x3875c1);}const combinedPath=a1_0x2b9b9f[a1_0x574956(0x301)](logsDir,a1_0x574956(0x1ea)+'og'),errorPath=a1_0x2b9b9f[a1_0x574956(0x301)](logsDir,a1_0x574956(0x1c2));logger[a1_0x574956(0x200)]('Log\x20file\x20l'+a1_0x574956(0x22f)+a1_0x574956(0x1b6)+'\x20'+combinedPath+a1_0x574956(0x1c7)+errorPath);}catch(a1_0x4591fe){logger[a1_0x574956(0x24f)]('Warning\x20wh'+'ile\x20checki'+a1_0x574956(0x2d1)+a1_0x574956(0x294)+a1_0x574956(0x210),a1_0x4591fe);}await server[a1_0x574956(0x1ee)](transport);
2
+ const a1_0x53b251=a1_0x513e;(function(_0x5728ad,_0x17b18f){const _0x3829f9=a1_0x513e,_0x6c75bf=_0x5728ad();while(!![]){try{const _0x1ca1a1=parseInt(_0x3829f9(0x12d))/0x1+parseInt(_0x3829f9(0x16e))/0x2*(-parseInt(_0x3829f9(0x157))/0x3)+-parseInt(_0x3829f9(0x14a))/0x4*(-parseInt(_0x3829f9(0x2ad))/0x5)+parseInt(_0x3829f9(0x19d))/0x6+-parseInt(_0x3829f9(0x13a))/0x7*(parseInt(_0x3829f9(0x28a))/0x8)+parseInt(_0x3829f9(0x160))/0x9*(-parseInt(_0x3829f9(0x204))/0xa)+parseInt(_0x3829f9(0x1ad))/0xb*(-parseInt(_0x3829f9(0x17e))/0xc);if(_0x1ca1a1===_0x17b18f)break;else _0x6c75bf['push'](_0x6c75bf['shift']());}catch(_0x29dc3d){_0x6c75bf['push'](_0x6c75bf['shift']());}}}(a1_0x10e5,0xacc20));const a1_0x4a2376=(function(){let _0x405511=!![];return function(_0xa84758,_0x467726){const _0x2e2baa=_0x405511?function(){if(_0x467726){const _0x491642=_0x467726['apply'](_0xa84758,arguments);return _0x467726=null,_0x491642;}}:function(){};return _0x405511=![],_0x2e2baa;};}()),a1_0x24fbc0=a1_0x4a2376(this,function(){const _0x49d5da=a1_0x513e;return a1_0x24fbc0['toString']()['search'](_0x49d5da(0x1ce)+'+$')[_0x49d5da(0x275)]()['constructo'+'r'](a1_0x24fbc0)[_0x49d5da(0x126)](_0x49d5da(0x1ce)+'+$');});a1_0x24fbc0();import{McpServer}from'@modelcontextprotocol/sdk/server/mcp.js';import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';import{z}from'zod';import{AnalysisService}from'./services/analysis.service.js';import{logger}from'./utils/logger.js';import a1_0x110f13 from'path';import a1_0x14d714 from'fs';import{fileURLToPath}from'url';const a1_0x26447f={};function a1_0x10e5(){const _0x149c2d=['N/A','ysis\x20reque','\x20file,\x20and','mpleted\x20an','ief','zipFilePat','quested:\x20','diff','224QaDqyf','atus\x20check','ided','rogress\x20tr','\x20to\x20be\x20cre','is\x20failed:','type','s\x20only\x20pro','Multi-file','tart\x20analy','toUpperCas','ysis\x20Progr','r\x20analysis','analyzeFol','es\x20origina','nalysis\x20re','COMPLETE.\x20','mkdirSync','ted:\x20','tages\x20are\x20','ver\x20starte','g\x20log\x20dire','Post-proce','INIT,\x20READ','Waiting\x20fo','will\x20retry','connect','into\x20a\x20ZIP','[FAIL]\x20Ana','Upload\x20a\x20Z','esults.\x20Re','result','sis\x20status','ity\x20Analys','iff)\x0a```di','5RhvteV','specified)','der','.\x20[','l\x20file\x20con','generateSe','Log\x20file\x20l','\x0aAnalysis\x20','unt','a\x20file\x20by\x20','\x20security\x20','describe','s\x20Overview','ity','\x20storage\x20a','Failed\x20to\x20','Generate\x20S','on\x20request','ctory)','\x0a#\x20Securit','e\x20ZIP\x20file','search','ZIP\x20file\x20p','current\x20wo','total','sis\x20Briefi','warn','e\x20(absolut','534987TuAXII','rly.','analyzeFil','e-generato','ress\x20them\x20','analysisBr','lysis\x20brie','ile\x20conten','working\x20di','urity\x20anal','\x20file\x20path','MCP\x20secure','\x0a```\x0a\x0a##\x20S','161567grkFDv','%\x0aMessage:','PRE_PROCES','ID:\x20','folderPath','D\x20and\x20upda','o\x20analyze\x20','\x0aFolder:\x20','sStatus','\x0aStatus:\x20','recursive','SUCCESS','cure\x20Code\x0a','Code\x20Gener','uccessfull','\x20status:\x20','5537180IWblxA','trim','aths,\x20comp','\x0a-\x20Result:','analyzeZip','substring','sResults','cureCodeFr','at\x20least\x20o','isError','tus:\x20','nalysis\x20ha','ations:\x20','2471151icZmjg','join','s\x20started.','oken\x20is\x20no','ceaHu','ctory:','text','luding\x20vul','nd\x20origina','5949LKgkhu','RZCSN','is\x20results','Error\x20chec','vulnerabil','tent.','k\x20failed:','e\x20folder\x20t','upNSv','get_analys','[STOP]\x20Ana','analysis\x20f','progressTo','File','2RoVDgz','PAPjR','[SUCCESS]\x20','map','ated\x20(opti','severity','turn\x20the\x20r','rfCeW','D:\x20','STOP','ecure\x20Code','ecurity\x20An','(absolute\x20','older\x20into','ysis\x20faile','YSIS,\x20POST','4291596gYxuLx','Path\x20to\x20th','tional,\x20us','includes','uested:\x20','Name\x20of\x20th','\x0a-\x20Vulnera','acking\x20sta','stored\x20(op','ound:\x20','YMgSe','ly\x20check\x20a','\x20request\x20s','ss\x20notific','ess','Multi-File','ng\x0a','INIT','tatus\x20requ','message','ZIP\x20file\x20n','unknown\x20to','version','hBJSv','generate\x20s','existsSync','token','s\x20single\x20f','Content\x20of','IP\x20file\x20to','oken\x20not\x20p','5460582cmwBYT','Folder\x20pat','\x20based\x20on\x20','progress\x20o','\x20combined:','\x20Briefing\x0a','lysis\x20fail','Track\x20Anal','rted:\x20','is_results','ANALYSIS','length','vAUHk','name','ed\x20results','ken','11qxudTL','king\x20analy','sis.','ompleted.\x0a','00)','registerTo','ecure\x20code','[COMPLETE]','ate\x20secure','descriptio','analyze_zi','tatus\x20upda','vered\x20Vuln','structured','ile\x20analys','ent.','elative\x20to','generate_s','\x0a\x0a...\x20(Sho','s:\x20','tatus:\x20','qkjwx','ror','nd\x20request','\x0a#\x20Secure\x20','led:\x20','lts\x0a\x0a##\x20Se','info','tion','Changes\x20(D','ile\x20checki','error.log','e\x20and\x20requ','(((.+)+)+)','lder_secur','EpKZD','path\x20or\x20re','\x20request.','Progress\x20i','is_status','wing\x20','number','ailed:','ZIP\x20File\x20S','error','):\x20','ons/progre','Periodical','Compress\x20a','cation','track_anal','\x20failed.','dirname','Analysis\x20p','Get\x20detail','Ready','analyzeMul','File\x20secur','iukAM','\x0a\x20\x20\x20\x20\x20\x20','Analysis\x20S','led:','\x0aProgress:','curity\x20ana','rking\x20dire','Generate\x20s','omAnalysis','Analysis\x20I','Get\x20Analys','analyze_fo','te\x20via\x20Pro','keys','D\x20from\x20the','string','ration\x20ser','array','\x0aZIP\x20File:','otificatio','\x20the\x20file\x20','rovided','FAILED','lysis\x20ID\x20a','ocations\x20-','e\x20path\x20or\x20','resolve','\x20Analysis\x20','fileConten','4450pRVuqs','s\x20ID:\x20','_meta','status','COMPLETE','1.0.0','ple\x20file\x20p','pxLMP','analysis\x20r','LYSIS\x20stag','secureCode','s\x20without\x20','Check\x20the\x20','_PROCESS,\x20','ath\x20not\x20pr','alysis\x20req','\x20file\x20cont','ck\x20interva','order','```java\x0a','quest\x20fail','ff\x0a','analysisId','onal)','h\x20not\x20prov','sendNotifi','ailed\x20with','esults.','notificati','Progress\x20T','nalysis\x20pr','File\x20name','ovided.','sted:\x20','n\x20failed\x20(','\x20not\x20provi','Complete','secure-cod','efault:\x2030','\x0aFinal\x20Sta',']\x20Analysis','Progress\x20t','dzKIy','ame\x20to\x20be\x20','ssing...','Content','\x20if\x20not\x20sp','Analysis\x20c','alysis','ne\x20file\x20pa','ysis','content','Folder\x20sec','\x0a-\x20Analysi','ecified)','analyze_fi','optional','urity\x20Anal','Read\x20multi','lysis\x20for\x20','ovided','analysis.','p_security','combined.l','the\x20entire',',\x20error:\x20','o\x20current\x20','ded','must\x20suppo','in\x20progres','POST_PROCE','Analysis\x20s','so\x20support','List\x20of\x20fi','ecurity\x20an','n\x20entire\x20f','invalid\x20to','sing','\x20of\x20','\x20to\x20analyz','alysis\x20inc','PUxot','ed:\x20','progress','\x20character','lete\x20prope','ities','Progress\x20n','ested:\x20','aths\x20array','Analysis\x20i','le_securit','Unknown\x20er','ZIP\x20file\x20s','FAIL','Warning\x20wh','seconds\x20(d','Ready\x20to\x20s','Analysis','\x20a\x20ZIP\x20fil','READY','\x20from\x20a\x20co','Brief','Folder\x20Sec','Security\x20a','\x20folder\x20na','lid,\x20stopp','FromPaths','logs','est\x20securi','ss...','ectory)','Pre-proces','toString','equested:\x20','onal,\x20uses','ons','toLowerCas','\x20requires\x20','\x20in\x20progre','s\x20updated:','LXtiG','es\x20and\x20ana','acking\x20fai','analysis','o\x20analyze.'];a1_0x10e5=function(){return _0x149c2d;};return a1_0x10e5();}a1_0x26447f[a1_0x53b251(0x1aa)]=a1_0x53b251(0x229)+a1_0x53b251(0x130)+'r',a1_0x26447f[a1_0x53b251(0x194)]=a1_0x53b251(0x209);const server=new McpServer(a1_0x26447f),analysisService=new AnalysisService();function a1_0x513e(_0x5f3338,_0x1c31f3){_0x5f3338=_0x5f3338-0x112;const _0x283cb2=a1_0x10e5();let _0x24fbc0=_0x283cb2[_0x5f3338];return _0x24fbc0;}server[a1_0x53b251(0x1b2)+'ol'](a1_0x53b251(0x23b)+a1_0x53b251(0x25f)+'y',{'title':'File\x20Secur'+a1_0x53b251(0x2ab)+'is','description':'Request\x20se'+a1_0x53b251(0x1ec)+a1_0x53b251(0x23f)+a1_0x53b251(0x11a)+'providing\x20'+a1_0x53b251(0x244)+a1_0x53b251(0x214)+a1_0x53b251(0x1bc),'inputSchema':{'fileContent':z[a1_0x53b251(0x1f6)]()[a1_0x53b251(0x11c)](a1_0x53b251(0x19a)+a1_0x53b251(0x1fb)+'to\x20analyze'),'fileName':z[a1_0x53b251(0x1f6)]()['describe'](a1_0x53b251(0x223))}},async({fileContent:_0x21be26,fileName:_0x3ce19c})=>{const _0x51ebdf=a1_0x53b251;try{logger[_0x51ebdf(0x1c8)](_0x51ebdf(0x26c)+_0x51ebdf(0x299)+_0x51ebdf(0x288)+_0x3ce19c);const _0x48eceb={};_0x48eceb[_0x51ebdf(0x203)+'t']=_0x21be26,_0x48eceb['fileName']=_0x3ce19c;const _0x93595b=await analysisService[_0x51ebdf(0x12f)+'eSecurity'](_0x48eceb),_0x12bb87={};_0x12bb87[_0x51ebdf(0x290)]=_0x51ebdf(0x15d),_0x12bb87[_0x51ebdf(0x15d)]=_0x51ebdf(0x26c)+_0x51ebdf(0x155)+_0x51ebdf(0x159)+_0x51ebdf(0x118)+'ID:\x20'+_0x93595b[_0x51ebdf(0x21a)];const _0xe67c5a={};_0xe67c5a[_0x51ebdf(0x21a)]=_0x93595b[_0x51ebdf(0x21a)],_0xe67c5a[_0x51ebdf(0x207)]=_0x93595b[_0x51ebdf(0x207)];const _0x217ca5={};return _0x217ca5['content']=[_0x12bb87],_0x217ca5[_0x51ebdf(0x1ba)+'Content']=_0xe67c5a,_0x217ca5;}catch(_0xaca54b){logger[_0x51ebdf(0x1d9)](_0x51ebdf(0x1e6)+'ity\x20analys'+_0x51ebdf(0x28f),_0xaca54b);const _0x156045={};_0x156045[_0x51ebdf(0x290)]='text',_0x156045['text']=_0x51ebdf(0x26c)+_0x51ebdf(0x299)+_0x51ebdf(0x218)+_0x51ebdf(0x256)+(_0xaca54b instanceof Error?_0xaca54b['message']:_0x51ebdf(0x260)+_0x51ebdf(0x1c3));const _0x4e1407={};_0x4e1407['error']=_0xaca54b instanceof Error?_0xaca54b[_0x51ebdf(0x191)]:_0x51ebdf(0x260)+'ror';const _0x45ece6={};return _0x45ece6[_0x51ebdf(0x237)]=[_0x156045],_0x45ece6[_0x51ebdf(0x1ba)+_0x51ebdf(0x231)]=_0x4e1407,_0x45ece6;}}),server[a1_0x53b251(0x1b2)+'ol'](a1_0x53b251(0x169)+a1_0x53b251(0x1d4),{'title':a1_0x53b251(0x1f1)+'is\x20Status','description':a1_0x53b251(0x210)+a1_0x53b251(0x1a0)+'f\x20an\x20analy'+'sis\x20and\x20re'+a1_0x53b251(0x174)+a1_0x53b251(0x21f),'inputSchema':{'analysisId':z[a1_0x53b251(0x1f6)]()[a1_0x53b251(0x11c)]('Analysis\x20I'+'D')}},async({analysisId:_0x3cc74d})=>{const _0x392a73=a1_0x53b251,_0x2a8200={};_0x2a8200[_0x392a73(0x168)]=_0x392a73(0x24b)+'tatus\x20chec'+_0x392a73(0x166);const _0x506ff0=_0x2a8200;try{logger[_0x392a73(0x1c8)](_0x392a73(0x24b)+_0x392a73(0x190)+_0x392a73(0x25c)+_0x3cc74d);const _0x215741=await analysisService['getAnalysi'+_0x392a73(0x142)](_0x3cc74d),_0x3680d6=_0x215741[_0x392a73(0x207)]===_0x392a73(0x208)&&_0x215741[_0x392a73(0x2a9)]?_0x215741[_0x392a73(0x2a9)]:_0x215741[_0x392a73(0x207)],_0xae9de8={};_0xae9de8['type']=_0x392a73(0x15d),_0xae9de8[_0x392a73(0x15d)]=_0x392a73(0x1e9)+_0x392a73(0x1c1)+_0x3680d6+(_0x392a73(0x1eb)+'\x20')+(_0x215741[_0x392a73(0x257)]||0x0)+(_0x392a73(0x13b)+'\x20')+(_0x215741[_0x392a73(0x191)]||'N/A');const _0x131bba={};_0x131bba[_0x392a73(0x21a)]=_0x3cc74d,_0x131bba[_0x392a73(0x207)]=_0x3680d6,_0x131bba[_0x392a73(0x2a9)]=_0x215741[_0x392a73(0x2a9)],_0x131bba[_0x392a73(0x257)]=_0x215741[_0x392a73(0x257)],_0x131bba['message']=_0x215741['message'];const _0x5cac12={};return _0x5cac12[_0x392a73(0x237)]=[_0xae9de8],_0x5cac12[_0x392a73(0x1ba)+_0x392a73(0x231)]=_0x131bba,_0x5cac12;}catch(_0x1ab9f1){logger[_0x392a73(0x1d9)](_0x506ff0[_0x392a73(0x168)],_0x1ab9f1);const _0x4a5f75={};_0x4a5f75[_0x392a73(0x290)]=_0x392a73(0x15d),_0x4a5f75['text']=_0x392a73(0x120)+'get\x20analys'+'is\x20status:'+'\x20'+(_0x1ab9f1 instanceof Error?_0x1ab9f1[_0x392a73(0x191)]:_0x392a73(0x260)+_0x392a73(0x1c3));const _0x3f1d44={};_0x3f1d44[_0x392a73(0x1d9)]=_0x1ab9f1 instanceof Error?_0x1ab9f1[_0x392a73(0x191)]:'Unknown\x20er'+_0x392a73(0x1c3);const _0x1c0588={};return _0x1c0588[_0x392a73(0x237)]=[_0x4a5f75],_0x1c0588['structured'+_0x392a73(0x231)]=_0x3f1d44,_0x1c0588;}}),server[a1_0x53b251(0x1b2)+'ol'](a1_0x53b251(0x169)+a1_0x53b251(0x1a6),{'title':a1_0x53b251(0x1f1)+'is\x20Results','description':a1_0x53b251(0x1e3)+a1_0x53b251(0x1ab)+a1_0x53b251(0x269)+a1_0x53b251(0x285)+a1_0x53b251(0x254)+a1_0x53b251(0x15e)+'nerabiliti'+a1_0x53b251(0x27e)+a1_0x53b251(0x133)+'fing.','inputSchema':{'analysisId':z[a1_0x53b251(0x1f6)]()['describe'](a1_0x53b251(0x1f0)+'D')}},async({analysisId:_0x2ccff5})=>{const _0x5aa869=a1_0x53b251,_0x5eaf87={'YMgSe':function(_0x25cfc0,_0xaa9aa7,_0x25e606){return _0x25cfc0(_0xaa9aa7,_0x25e606);},'RZCSN':'Failed\x20to\x20'+'get\x20analys'+_0x5aa869(0x162)+':'};try{logger['info']('Analysis\x20r'+'esults\x20req'+_0x5aa869(0x182)+_0x2ccff5);const _0xaf5b3a=await analysisService['getAnalysi'+_0x5aa869(0x150)](_0x2ccff5),_0x1c37fb=_0xaf5b3a[_0x5aa869(0x2a9)]??_0xaf5b3a[_0x5aa869(0x207)],_0x2338d7=0x7a120,_0x3665d2=(_0x232594,_0x578393)=>{const _0x46466c=_0x5aa869;if(_0x232594[_0x46466c(0x1a8)]<=_0x578393)return _0x232594;return _0x232594[_0x46466c(0x14f)](0x0,_0x578393)+(_0x46466c(0x1bf)+_0x46466c(0x1d5)+_0x578393+_0x46466c(0x252)+_0x232594[_0x46466c(0x1a8)]+(_0x46466c(0x258)+'s)'));},_0x3dd328=_0xaf5b3a['vulnerabil'+_0x5aa869(0x25a)][_0x5aa869(0x171)]((_0x196bc1,_0x1cc3b5)=>_0x1cc3b5+0x1+_0x5aa869(0x114)+_0x196bc1[_0x5aa869(0x173)]+']\x20'+_0x196bc1['checkerKey']+':\x20'+_0x196bc1[_0x5aa869(0x1b6)+'n'])[_0x5aa869(0x158)]('\x0a'),_0x59d343=(_0x5aa869(0x124)+'y\x20Analysis'+'\x20Results\x0a\x0a'+'##\x20Analysi'+_0x5aa869(0x11d)+_0x5aa869(0x239)+_0x5aa869(0x205)+_0xaf5b3a['analysisId']+('\x0a-\x20Status:'+'\x20')+_0x1c37fb+(_0x5aa869(0x14d)+'\x20')+(_0xaf5b3a[_0x5aa869(0x2a9)]||_0x5aa869(0x282))+(_0x5aa869(0x184)+'bilities\x20F'+_0x5aa869(0x187))+_0xaf5b3a[_0x5aa869(0x164)+_0x5aa869(0x25a)][_0x5aa869(0x1a8)]+('\x0a\x0a##\x20Analy'+_0x5aa869(0x12a)+_0x5aa869(0x18e))+_0x3665d2(_0xaf5b3a[_0x5aa869(0x132)+_0x5aa869(0x286)]||'',_0x2338d7)+('\x0a\x0a##\x20Disco'+_0x5aa869(0x1b9)+'erabilitie'+'s\x0a')+_0x3665d2(_0x3dd328,_0x2338d7)+_0x5aa869(0x1e8))[_0x5aa869(0x14b)](),_0x5366d1={'analysisId':_0xaf5b3a[_0x5aa869(0x21a)],'status':_0x1c37fb,'result':_0xaf5b3a[_0x5aa869(0x2a9)],'vulnerabilities':_0xaf5b3a[_0x5aa869(0x164)+'ities'],'analysisBrief':_0xaf5b3a[_0x5aa869(0x132)+_0x5aa869(0x286)]?_0x5eaf87[_0x5aa869(0x188)](_0x3665d2,_0xaf5b3a['analysisBr'+_0x5aa869(0x286)],_0x2338d7):''},_0x1941a6={};_0x1941a6[_0x5aa869(0x290)]=_0x5aa869(0x15d),_0x1941a6['text']=_0x59d343;const _0x1eed9c={};return _0x1eed9c[_0x5aa869(0x237)]=[_0x1941a6],_0x1eed9c[_0x5aa869(0x1ba)+_0x5aa869(0x231)]=_0x5366d1,_0x1eed9c;}catch(_0x5c4827){logger[_0x5aa869(0x1d9)](_0x5eaf87[_0x5aa869(0x161)],_0x5c4827);const _0x50d1a9=_0x5c4827 instanceof Error?_0x5c4827[_0x5aa869(0x191)]:_0x5aa869(0x260)+_0x5aa869(0x1c3),_0x3e19b4={};_0x3e19b4[_0x5aa869(0x290)]=_0x5aa869(0x15d),_0x3e19b4[_0x5aa869(0x15d)]='Failed\x20to\x20'+'get\x20analys'+_0x5aa869(0x162)+':\x20'+_0x50d1a9;const _0xf82c2a={};_0xf82c2a[_0x5aa869(0x1d9)]=_0x50d1a9;const _0x48651a={};return _0x48651a[_0x5aa869(0x237)]=[_0x3e19b4],_0x48651a[_0x5aa869(0x1ba)+_0x5aa869(0x231)]=_0xf82c2a,_0x48651a[_0x5aa869(0x153)]=!![],_0x48651a;}}),server[a1_0x53b251(0x1b2)+'ol'](a1_0x53b251(0x1be)+'ecure_code',{'title':a1_0x53b251(0x121)+'ecure\x20Code','description':a1_0x53b251(0x1ee)+a1_0x53b251(0x1b3)+a1_0x53b251(0x19f)+a1_0x53b251(0x20c)+a1_0x53b251(0x2a8)+'quires\x20ana'+a1_0x53b251(0x1fe)+a1_0x53b251(0x15f)+a1_0x53b251(0x115)+a1_0x53b251(0x165),'inputSchema':{'analysisId':z[a1_0x53b251(0x1f6)]()['describe'](a1_0x53b251(0x1f0)+a1_0x53b251(0x1f5)+'\x20security\x20'+a1_0x53b251(0x280)),'fileContent':z['string']()['describe']('Original\x20f'+a1_0x53b251(0x134)+'t\x20to\x20gener'+a1_0x53b251(0x1b5)+'\x20version')}},async({analysisId:_0x4084d0,fileContent:_0x10cfa5})=>{const _0xdcd234=a1_0x53b251,_0x48f2c5={'ceaHu':function(_0x27626f,_0x495eab){return _0x27626f+_0x495eab;},'dzKIy':function(_0x2fdb7e,_0x3fe03c,_0x353d61){return _0x2fdb7e(_0x3fe03c,_0x353d61);},'OHKkJ':'text'};try{logger[_0xdcd234(0x1c8)]('Secure\x20cod'+'e\x20generati'+_0xdcd234(0x122)+_0xdcd234(0x256)+_0x4084d0);const _0x1671ae=await analysisService[_0xdcd234(0x116)+_0xdcd234(0x151)+_0xdcd234(0x1ef)](_0x4084d0,_0x10cfa5),_0xf47c59=0x7a120,_0x2d5956=(_0x2a7c02,_0x2bc3ff)=>{const _0x3a70ce=_0xdcd234;if(_0x2a7c02['length']<=_0x2bc3ff)return _0x2a7c02;return _0x48f2c5[_0x3a70ce(0x15b)](_0x2a7c02['substring'](0x0,_0x2bc3ff),_0x3a70ce(0x1bf)+_0x3a70ce(0x1d5)+_0x2bc3ff+_0x3a70ce(0x252)+_0x2a7c02[_0x3a70ce(0x1a8)]+(_0x3a70ce(0x258)+'s)'));},_0x5869b3=(_0xdcd234(0x1c5)+_0xdcd234(0x147)+'ation\x20Resu'+_0xdcd234(0x1c7)+_0xdcd234(0x146)+_0xdcd234(0x217)+_0x2d5956(_0x1671ae['secureCode'],_0xf47c59)+(_0xdcd234(0x139)+_0xdcd234(0x178)+_0xdcd234(0x1a2))+_0x2d5956(_0x1671ae[_0xdcd234(0x20e)+'Brief'],_0xf47c59)+('\x0a\x0a##\x20Code\x20'+_0xdcd234(0x1ca)+_0xdcd234(0x2ac)+_0xdcd234(0x219))+_0x48f2c5[_0xdcd234(0x22e)](_0x2d5956,_0x1671ae[_0xdcd234(0x289)],_0xf47c59)+('\x0a```\x0a\x20\x20\x20\x20\x20'+'\x20'))['trim'](),_0xeda514={'analysisId':_0x4084d0,'secureCode':_0x48f2c5[_0xdcd234(0x22e)](_0x2d5956,_0x1671ae[_0xdcd234(0x20e)],_0xf47c59),'secureCodeBrief':_0x2d5956(_0x1671ae[_0xdcd234(0x20e)+_0xdcd234(0x26a)],_0xf47c59),'diff':_0x2d5956(_0x1671ae['diff'],_0xf47c59)},_0x59e669={};_0x59e669[_0xdcd234(0x290)]=_0x48f2c5['OHKkJ'],_0x59e669[_0xdcd234(0x15d)]=_0x5869b3;const _0x286f78={};return _0x286f78[_0xdcd234(0x237)]=[_0x59e669],_0x286f78[_0xdcd234(0x1ba)+_0xdcd234(0x231)]=_0xeda514,_0x286f78;}catch(_0x124978){logger[_0xdcd234(0x1d9)](_0xdcd234(0x120)+'generate\x20s'+_0xdcd234(0x1b3)+':',_0x124978);const _0x146f8e=_0x124978 instanceof Error?_0x124978[_0xdcd234(0x191)]:_0xdcd234(0x260)+_0xdcd234(0x1c3),_0x50181d={};_0x50181d[_0xdcd234(0x290)]=_0xdcd234(0x15d),_0x50181d[_0xdcd234(0x15d)]=_0xdcd234(0x120)+_0xdcd234(0x196)+_0xdcd234(0x1b3)+':\x20'+_0x146f8e;const _0x5d610e={};_0x5d610e[_0xdcd234(0x1d9)]=_0x146f8e;const _0x428c48={};return _0x428c48[_0xdcd234(0x237)]=[_0x50181d],_0x428c48[_0xdcd234(0x1ba)+'Content']=_0x5d610e,_0x428c48[_0xdcd234(0x153)]=!![],_0x428c48;}}),server['registerTo'+'ol'](a1_0x53b251(0x23b)+'les_securi'+'ty',{'title':a1_0x53b251(0x18d)+'\x20Security\x20'+a1_0x53b251(0x266),'description':a1_0x53b251(0x23e)+a1_0x53b251(0x20a)+a1_0x53b251(0x14c)+a1_0x53b251(0x131)+a1_0x53b251(0x2a5)+a1_0x53b251(0x284)+a1_0x53b251(0x18a)+a1_0x53b251(0x24e)+'alysis.\x20Al'+a1_0x53b251(0x24c)+a1_0x53b251(0x199)+a1_0x53b251(0x1bb)+'is.','inputSchema':{'filePaths':z[a1_0x53b251(0x1f8)](z['string']())[a1_0x53b251(0x11c)](a1_0x53b251(0x24d)+'le\x20paths\x20t'+a1_0x53b251(0x140)+a1_0x53b251(0x17a)+'paths\x20or\x20r'+a1_0x53b251(0x1bd)+'\x20current\x20w'+'orking\x20dir'+a1_0x53b251(0x273)),'zipFileName':z[a1_0x53b251(0x1f6)]()[a1_0x53b251(0x23c)]()['describe'](a1_0x53b251(0x183)+'e\x20ZIP\x20file'+a1_0x53b251(0x28e)+a1_0x53b251(0x172)+a1_0x53b251(0x21b))}},async({filePaths:_0x34eb3f,zipFileName:_0x5ecefa})=>{const _0x591fba=a1_0x53b251,_0x3c3e66={};_0x3c3e66[_0x591fba(0x20b)]='Unknown\x20er'+_0x591fba(0x1c3);const _0x5c20d5=_0x3c3e66;try{if(!_0x34eb3f||_0x34eb3f[_0x591fba(0x1a8)]===0x0){const _0x1e89c8={};_0x1e89c8[_0x591fba(0x290)]='text',_0x1e89c8[_0x591fba(0x15d)]='No\x20files\x20t'+_0x591fba(0x281)+'\x20The\x20fileP'+_0x591fba(0x25d)+_0x591fba(0x27a)+_0x591fba(0x152)+_0x591fba(0x235)+'th.';const _0x3de928={};_0x3de928[_0x591fba(0x1d9)]='File\x20paths'+_0x591fba(0x227)+_0x591fba(0x247);const _0x468023={};return _0x468023[_0x591fba(0x237)]=[_0x1e89c8],_0x468023['structured'+'Content']=_0x3de928,_0x468023;}logger[_0x591fba(0x1c8)](_0x591fba(0x292)+_0x591fba(0x11b)+_0x591fba(0x20c)+_0x591fba(0x276)+_0x34eb3f[_0x591fba(0x1a8)]+(_0x591fba(0x137)+'s'));const _0x1cb279=await analysisService[_0x591fba(0x1e5)+'tipleFiles'+_0x591fba(0x26f)](_0x34eb3f,_0x5ecefa),_0x4b7d0a=_0x591fba(0x26c)+_0x591fba(0x155)+_0x591fba(0x159)+'\x0aNumber\x20of'+'\x20file\x20path'+_0x591fba(0x1c0)+_0x34eb3f[_0x591fba(0x1a8)]+(_0x591fba(0x118)+'ID:\x20')+_0x1cb279['analysisId']+_0x591fba(0x143)+_0x1cb279['status'],_0x1a0aff={};_0x1a0aff[_0x591fba(0x290)]='text',_0x1a0aff[_0x591fba(0x15d)]=_0x4b7d0a;const _0x5e169a={};_0x5e169a[_0x591fba(0x21a)]=_0x1cb279[_0x591fba(0x21a)],_0x5e169a[_0x591fba(0x207)]=_0x1cb279[_0x591fba(0x207)],_0x5e169a['filePathCo'+_0x591fba(0x119)]=_0x34eb3f[_0x591fba(0x1a8)];const _0x4bd7a4={};return _0x4bd7a4[_0x591fba(0x237)]=[_0x1a0aff],_0x4bd7a4['structured'+_0x591fba(0x231)]=_0x5e169a,_0x4bd7a4;}catch(_0x252e73){logger[_0x591fba(0x1d9)](_0x591fba(0x292)+_0x591fba(0x11b)+_0x591fba(0x16b)+_0x591fba(0x1d7),_0x252e73);const _0x46b901={};_0x46b901[_0x591fba(0x290)]=_0x591fba(0x15d),_0x46b901[_0x591fba(0x15d)]=_0x591fba(0x26c)+_0x591fba(0x299)+_0x591fba(0x218)+'ed:\x20'+(_0x252e73 instanceof Error?_0x252e73[_0x591fba(0x191)]:_0x591fba(0x260)+'ror');const _0x4f0f3={};_0x4f0f3[_0x591fba(0x1d9)]=_0x252e73 instanceof Error?_0x252e73[_0x591fba(0x191)]:_0x5c20d5[_0x591fba(0x20b)];const _0x55e13f={};return _0x55e13f[_0x591fba(0x237)]=[_0x46b901],_0x55e13f[_0x591fba(0x1ba)+_0x591fba(0x231)]=_0x4f0f3,_0x55e13f;}}),server[a1_0x53b251(0x1b2)+'ol'](a1_0x53b251(0x1b7)+a1_0x53b251(0x242),{'title':a1_0x53b251(0x1d8)+a1_0x53b251(0x179)+a1_0x53b251(0x234),'description':a1_0x53b251(0x2a7)+a1_0x53b251(0x19b)+a1_0x53b251(0x11f)+a1_0x53b251(0x1c4)+a1_0x53b251(0x11b)+a1_0x53b251(0x241),'inputSchema':{'zipFilePath':z[a1_0x53b251(0x1f6)]()[a1_0x53b251(0x11c)](a1_0x53b251(0x17f)+a1_0x53b251(0x125)+a1_0x53b251(0x253)+a1_0x53b251(0x12c)+a1_0x53b251(0x200)+'relative\x20t'+a1_0x53b251(0x246)+a1_0x53b251(0x135)+'rectory)'),'zipFileName':z[a1_0x53b251(0x1f6)]()[a1_0x53b251(0x23c)]()[a1_0x53b251(0x11c)](a1_0x53b251(0x192)+a1_0x53b251(0x22f)+a1_0x53b251(0x186)+a1_0x53b251(0x180)+a1_0x53b251(0x298)+'l\x20filename'+a1_0x53b251(0x232)+a1_0x53b251(0x23a))}},async({zipFilePath:_0x23ee5f,zipFileName:_0x18933f})=>{const _0x3c6c6e=a1_0x53b251,_0x8df52e={};_0x8df52e[_0x3c6c6e(0x16f)]=_0x3c6c6e(0x260)+_0x3c6c6e(0x1c3),_0x8df52e[_0x3c6c6e(0x1e7)]=function(_0x5c8489,_0x1b1e67){return _0x5c8489 instanceof _0x1b1e67;};const _0x518a82=_0x8df52e;try{if(!_0x23ee5f||_0x23ee5f[_0x3c6c6e(0x14b)]()[_0x3c6c6e(0x1a8)]===0x0){const _0x157502={};_0x157502[_0x3c6c6e(0x290)]='text',_0x157502[_0x3c6c6e(0x15d)]=_0x3c6c6e(0x127)+_0x3c6c6e(0x212)+_0x3c6c6e(0x224);const _0x410bd0={};_0x410bd0[_0x3c6c6e(0x1d9)]=_0x3c6c6e(0x127)+_0x3c6c6e(0x212)+_0x3c6c6e(0x240);const _0x262980={};return _0x262980[_0x3c6c6e(0x237)]=[_0x157502],_0x262980['structured'+_0x3c6c6e(0x231)]=_0x410bd0,_0x262980;}logger['info'](_0x3c6c6e(0x261)+_0x3c6c6e(0x24e)+_0x3c6c6e(0x213)+_0x3c6c6e(0x182)+_0x23ee5f);const _0x489502=await analysisService[_0x3c6c6e(0x14e)+_0x3c6c6e(0x16d)](_0x23ee5f,_0x18933f),_0x4c4fc5='Security\x20a'+_0x3c6c6e(0x155)+_0x3c6c6e(0x159)+_0x3c6c6e(0x1f9)+'\x20'+_0x23ee5f+('\x0aAnalysis\x20'+_0x3c6c6e(0x13d))+_0x489502[_0x3c6c6e(0x21a)]+_0x3c6c6e(0x143)+_0x489502[_0x3c6c6e(0x207)],_0x527af4={};_0x527af4[_0x3c6c6e(0x290)]=_0x3c6c6e(0x15d),_0x527af4[_0x3c6c6e(0x15d)]=_0x4c4fc5;const _0x5b0f11={};_0x5b0f11[_0x3c6c6e(0x21a)]=_0x489502[_0x3c6c6e(0x21a)],_0x5b0f11['status']=_0x489502[_0x3c6c6e(0x207)],_0x5b0f11[_0x3c6c6e(0x287)+'h']=_0x23ee5f;const _0x4e5a75={};return _0x4e5a75[_0x3c6c6e(0x237)]=[_0x527af4],_0x4e5a75['structured'+_0x3c6c6e(0x231)]=_0x5b0f11,_0x4e5a75;}catch(_0x11c418){logger[_0x3c6c6e(0x1d9)](_0x3c6c6e(0x261)+'ecurity\x20an'+'alysis\x20fai'+'led:',_0x11c418);const _0x4faca8={};return _0x4faca8[_0x3c6c6e(0x290)]='text',_0x4faca8[_0x3c6c6e(0x15d)]=_0x3c6c6e(0x26c)+'nalysis\x20re'+_0x3c6c6e(0x218)+_0x3c6c6e(0x256)+(_0x11c418 instanceof Error?_0x11c418[_0x3c6c6e(0x191)]:_0x518a82['PAPjR']),{'content':[_0x4faca8],'structuredContent':{'error':_0x518a82[_0x3c6c6e(0x1e7)](_0x11c418,Error)?_0x11c418['message']:'Unknown\x20er'+_0x3c6c6e(0x1c3)}};}}),server['registerTo'+'ol'](a1_0x53b251(0x1f2)+a1_0x53b251(0x1cf)+a1_0x53b251(0x11e),{'title':a1_0x53b251(0x26b)+a1_0x53b251(0x23d)+a1_0x53b251(0x236),'description':a1_0x53b251(0x1dd)+a1_0x53b251(0x24f)+a1_0x53b251(0x17b)+a1_0x53b251(0x267)+a1_0x53b251(0x1cd)+a1_0x53b251(0x271)+'ty\x20analysi'+'s.','inputSchema':{'folderPath':z['string']()[a1_0x53b251(0x11c)](a1_0x53b251(0x17f)+a1_0x53b251(0x167)+a1_0x53b251(0x140)+a1_0x53b251(0x17a)+a1_0x53b251(0x1d1)+'lative\x20to\x20'+a1_0x53b251(0x128)+a1_0x53b251(0x1ed)+a1_0x53b251(0x123)),'zipFileName':z[a1_0x53b251(0x1f6)]()['optional']()['describe']('Name\x20of\x20th'+'e\x20ZIP\x20file'+a1_0x53b251(0x28e)+'ated\x20(opti'+a1_0x53b251(0x277)+a1_0x53b251(0x26d)+'me\x20if\x20not\x20'+a1_0x53b251(0x112))}},async({folderPath:_0x5cc3bd,zipFileName:_0x23ecb4})=>{const _0x1342d1=a1_0x53b251,_0x4c31ec={};_0x4c31ec[_0x1342d1(0x175)]=_0x1342d1(0x15d),_0x4c31ec['qkjwx']=_0x1342d1(0x19e)+_0x1342d1(0x21c)+_0x1342d1(0x28c);const _0xa696e5=_0x4c31ec;try{if(!_0x5cc3bd||_0x5cc3bd['trim']()[_0x1342d1(0x1a8)]===0x0){const _0x563c68={};_0x563c68[_0x1342d1(0x290)]=_0xa696e5[_0x1342d1(0x175)],_0x563c68['text']=_0x1342d1(0x19e)+_0x1342d1(0x21c)+'ided.';const _0x3dd867={};_0x3dd867['error']=_0xa696e5[_0x1342d1(0x1c2)];const _0x245615={};return _0x245615[_0x1342d1(0x237)]=[_0x563c68],_0x245615[_0x1342d1(0x1ba)+_0x1342d1(0x231)]=_0x3dd867,_0x245615;}logger[_0x1342d1(0x1c8)](_0x1342d1(0x238)+'urity\x20anal'+_0x1342d1(0x283)+_0x1342d1(0x225)+_0x5cc3bd);const _0x29e8b4=await analysisService[_0x1342d1(0x297)+_0x1342d1(0x113)](_0x5cc3bd,_0x23ecb4),_0x455c60=_0x1342d1(0x26c)+_0x1342d1(0x155)+_0x1342d1(0x159)+_0x1342d1(0x141)+_0x5cc3bd+(_0x1342d1(0x118)+_0x1342d1(0x13d))+_0x29e8b4[_0x1342d1(0x21a)]+_0x1342d1(0x143)+_0x29e8b4[_0x1342d1(0x207)],_0x1b1f9a={};_0x1b1f9a[_0x1342d1(0x290)]=_0xa696e5[_0x1342d1(0x175)],_0x1b1f9a[_0x1342d1(0x15d)]=_0x455c60;const _0x1615b1={};_0x1615b1[_0x1342d1(0x21a)]=_0x29e8b4[_0x1342d1(0x21a)],_0x1615b1[_0x1342d1(0x207)]=_0x29e8b4[_0x1342d1(0x207)],_0x1615b1[_0x1342d1(0x13e)]=_0x5cc3bd;const _0x28836d={};return _0x28836d[_0x1342d1(0x237)]=[_0x1b1f9a],_0x28836d[_0x1342d1(0x1ba)+_0x1342d1(0x231)]=_0x1615b1,_0x28836d;}catch(_0xc03a5a){logger[_0x1342d1(0x1d9)]('Folder\x20sec'+_0x1342d1(0x136)+_0x1342d1(0x17c)+'d:',_0xc03a5a);const _0x27d80f={};_0x27d80f['type']=_0x1342d1(0x15d),_0x27d80f[_0x1342d1(0x15d)]=_0x1342d1(0x26c)+_0x1342d1(0x299)+'quest\x20fail'+_0x1342d1(0x256)+(_0xc03a5a instanceof Error?_0xc03a5a[_0x1342d1(0x191)]:_0x1342d1(0x260)+'ror');const _0x4f7aae={};_0x4f7aae['error']=_0xc03a5a instanceof Error?_0xc03a5a['message']:_0x1342d1(0x260)+_0x1342d1(0x1c3);const _0xae198={};return _0xae198[_0x1342d1(0x237)]=[_0x27d80f],_0xae198['structured'+_0x1342d1(0x231)]=_0x4f7aae,_0xae198;}}),server[a1_0x53b251(0x1b2)+'ol'](a1_0x53b251(0x1df)+'ysis_progr'+a1_0x53b251(0x18c),{'title':a1_0x53b251(0x1a4)+a1_0x53b251(0x295)+a1_0x53b251(0x18c),'description':a1_0x53b251(0x1dc)+a1_0x53b251(0x189)+a1_0x53b251(0x222)+'ogress\x20by\x20'+'analysis\x20I'+a1_0x53b251(0x13f)+a1_0x53b251(0x1f3)+'gress\x20Noti'+'fication.\x20'+a1_0x53b251(0x24b)+a1_0x53b251(0x29d)+a1_0x53b251(0x2a1)+'Y,\x20PRE_PRO'+'CESS,\x20ANAL'+a1_0x53b251(0x17d)+a1_0x53b251(0x211)+a1_0x53b251(0x29a)+a1_0x53b251(0x1d3)+a1_0x53b251(0x291)+'vided\x20duri'+'ng\x20the\x20ANA'+a1_0x53b251(0x20d)+'e.','inputSchema':{'analysisId':z[a1_0x53b251(0x1f6)]()[a1_0x53b251(0x11c)]('Analysis\x20I'+'D'),'intervalMs':z[a1_0x53b251(0x1d6)]()['optional']()['describe']('Status\x20che'+a1_0x53b251(0x215)+'l\x20in\x20milli'+a1_0x53b251(0x264)+a1_0x53b251(0x22a)+a1_0x53b251(0x1b1))}},async({analysisId:_0x5e681b,intervalMs:intervalMs=0xbb8},_0x28d889)=>{const _0x1dd87b=a1_0x53b251,_0xb6c722={'FlbgH':_0x1dd87b(0x2a2)+_0x1dd87b(0x296)+'\x20to\x20start.','vAUHk':_0x1dd87b(0x274)+'sing...','uYnye':'FAIL','hBJSv':function(_0x4532b0,_0x8008a9){return _0x4532b0(_0x8008a9);},'LXtiG':'COMPLETE','EpKZD':function(_0x40923a,_0x1d0fce){return _0x40923a(_0x1d0fce);},'PUxot':function(_0x403d06,_0xabd58d){return _0x403d06 instanceof _0xabd58d;}};try{const _0x5ce041=_0x28d889[_0x1dd87b(0x206)]?.[_0x1dd87b(0x16c)+'ken'];if(!_0x5ce041){const _0x36b553={};_0x36b553[_0x1dd87b(0x290)]=_0x1dd87b(0x15d),_0x36b553[_0x1dd87b(0x15d)]='Progress\x20T'+'oken\x20not\x20p'+'rovided.\x20T'+'he\x20client\x20'+_0x1dd87b(0x248)+'rt\x20progres'+'s\x20tracking'+'.';const _0x40eacf={};_0x40eacf[_0x1dd87b(0x1d9)]=_0x1dd87b(0x221)+_0x1dd87b(0x19c)+_0x1dd87b(0x1fc);const _0x398fdd={};return _0x398fdd[_0x1dd87b(0x237)]=[_0x36b553],_0x398fdd[_0x1dd87b(0x1ba)+_0x1dd87b(0x231)]=_0x40eacf,_0x398fdd;}logger['info'](_0x1dd87b(0x1e2)+_0x1dd87b(0x28d)+_0x1dd87b(0x185)+_0x1dd87b(0x1a5)+_0x5e681b);const _0x46bb7e={};_0x46bb7e['id']=_0x1dd87b(0x18f),_0x46bb7e[_0x1dd87b(0x1aa)]='Initializa'+_0x1dd87b(0x1c9),_0x46bb7e[_0x1dd87b(0x1b6)+'n']=_0xb6c722['FlbgH'],_0x46bb7e[_0x1dd87b(0x257)]=null,_0x46bb7e[_0x1dd87b(0x216)]=0x1;const _0x4eb497={};_0x4eb497['id']='READY',_0x4eb497[_0x1dd87b(0x1aa)]=_0x1dd87b(0x1e4),_0x4eb497[_0x1dd87b(0x1b6)+'n']=_0x1dd87b(0x265)+_0x1dd87b(0x293)+_0x1dd87b(0x1af),_0x4eb497[_0x1dd87b(0x257)]=null,_0x4eb497[_0x1dd87b(0x216)]=0x2;const _0x3500fe={};_0x3500fe['id']='PRE_PROCES'+'S',_0x3500fe[_0x1dd87b(0x1b6)+'n']=_0xb6c722[_0x1dd87b(0x1a9)],_0x3500fe[_0x1dd87b(0x1aa)]='Pre-proces'+_0x1dd87b(0x251),_0x3500fe[_0x1dd87b(0x257)]=null,_0x3500fe[_0x1dd87b(0x216)]=0x3;const _0x3b8d85={};_0x3b8d85['id']=_0x1dd87b(0x1a7),_0x3b8d85['descriptio'+'n']=_0x1dd87b(0x25e)+'n\x20progress'+'...',_0x3b8d85[_0x1dd87b(0x1aa)]='Analysis',_0x3b8d85[_0x1dd87b(0x257)]=0x0,_0x3b8d85[_0x1dd87b(0x216)]=0x4;const _0x40e943={};_0x40e943['id']=_0x1dd87b(0x24a)+'SS',_0x40e943[_0x1dd87b(0x1b6)+'n']=_0x1dd87b(0x2a0)+_0x1dd87b(0x230),_0x40e943['name']=_0x1dd87b(0x2a0)+'ssing',_0x40e943['progress']=null,_0x40e943[_0x1dd87b(0x216)]=0x5;const _0xb7f6d9={};_0xb7f6d9['id']=_0x1dd87b(0x208),_0xb7f6d9[_0x1dd87b(0x1b6)+'n']='Analysis\x20c'+'ompleted\x20s'+'uccessfull'+'y.',_0xb7f6d9[_0x1dd87b(0x1aa)]=_0x1dd87b(0x228),_0xb7f6d9['progress']=0x64,_0xb7f6d9[_0x1dd87b(0x216)]=0x6;const _0xebce74={};_0xebce74[_0x1dd87b(0x18f)]=_0x46bb7e,_0xebce74[_0x1dd87b(0x268)]=_0x4eb497,_0xebce74[_0x1dd87b(0x13c)+'S']=_0x3500fe,_0xebce74[_0x1dd87b(0x1a7)]=_0x3b8d85,_0xebce74[_0x1dd87b(0x24a)+'SS']=_0x40e943,_0xebce74[_0x1dd87b(0x208)]=_0xb7f6d9;const _0x2e8bf3=_0xebce74;let _0x28d1f8=Object[_0x1dd87b(0x1f4)](_0x2e8bf3)['length'],_0x94f969=null,_0x30ff60=0x0,_0x1ffb37=!![];const _0x2cae04=async _0x3f9045=>{const _0xc2e725=_0x1dd87b;if(!_0x1ffb37)return![];try{return await _0x28d889[_0xc2e725(0x21d)+_0xc2e725(0x1de)](_0x3f9045),!![];}catch(_0xe4a3c6){const _0x14923f=_0xe4a3c6 instanceof Error?_0xe4a3c6[_0xc2e725(0x191)]:_0xc2e725(0x260)+_0xc2e725(0x1c3);return _0x14923f['includes'](_0xc2e725(0x193)+_0xc2e725(0x1ac))||_0x14923f[_0xc2e725(0x181)](_0xc2e725(0x250)+_0xc2e725(0x1ac))||_0x14923f[_0xc2e725(0x181)]('expired\x20to'+_0xc2e725(0x1ac))||_0x14923f[_0xc2e725(0x279)+'e']()[_0xc2e725(0x181)](_0xc2e725(0x198))?(_0x1ffb37=![],logger[_0xc2e725(0x12b)]('Progress\x20t'+_0xc2e725(0x15a)+'\x20longer\x20va'+_0xc2e725(0x26e)+'ing\x20progre'+_0xc2e725(0x18b)+_0xc2e725(0x156)+_0x14923f)):logger[_0xc2e725(0x12b)](_0xc2e725(0x25b)+_0xc2e725(0x1fa)+_0xc2e725(0x226)+_0xc2e725(0x2a3)+_0xc2e725(0x1da)+_0x14923f),![];}};while(!![]){try{const _0x26fcc4=await analysisService['getAnalysi'+_0x1dd87b(0x142)](_0x5e681b),_0x37b90a=String(_0x26fcc4[_0x1dd87b(0x207)])[_0x1dd87b(0x294)+'e'](),_0x1ed765=String(_0x26fcc4[_0x1dd87b(0x207)])[_0x1dd87b(0x294)+'e'](),_0x502292=_0x1ed765===_0x1dd87b(0x208)&&_0x26fcc4['result']?String(_0x26fcc4['result'])[_0x1dd87b(0x294)+'e']():_0x37b90a;if(_0x94f969!==_0x37b90a){_0x94f969=_0x37b90a;if(_0x1ed765===_0x1dd87b(0x208)||_0x37b90a===_0xb6c722['uYnye']||_0x37b90a===_0x1dd87b(0x1fd)){let _0xe215dd,_0x32cedd;if(_0x1ed765===_0x1dd87b(0x208)){const _0x37047a=_0x26fcc4[_0x1dd87b(0x2a9)]?_0xb6c722[_0x1dd87b(0x195)](String,_0x26fcc4['result'])[_0x1dd87b(0x294)+'e']():undefined;_0x32cedd=_0x37047a||_0xb6c722[_0x1dd87b(0x27d)];if(_0x37047a===_0x1dd87b(0x145))_0xe215dd=_0x1dd87b(0x170)+_0x1dd87b(0x233)+'ompleted\x20s'+_0x1dd87b(0x148)+'y.';else{if(_0x37047a===_0x1dd87b(0x262))_0xe215dd=_0x1dd87b(0x2a6)+_0x1dd87b(0x1a3)+'ed\x20to\x20comp'+_0x1dd87b(0x259)+_0x1dd87b(0x12e);else _0x37047a===_0x1dd87b(0x177)?_0xe215dd=_0x1dd87b(0x16a)+'lysis\x20was\x20'+'stopped\x20by'+_0x1dd87b(0x1d2):(_0xe215dd=_0x1dd87b(0x1b4)+_0x1dd87b(0x202)+'completed.',_0x32cedd=_0x1dd87b(0x208));}}else _0xe215dd='['+_0x37b90a+(_0x1dd87b(0x22c)+_0x1dd87b(0x1e0)),_0x32cedd=_0x37b90a;const _0x4f8255={'method':_0x1dd87b(0x220)+_0x1dd87b(0x1db)+'ss','params':{'progressToken':typeof _0x5ce041===_0x1dd87b(0x1f6)?_0x5ce041:String(_0x5ce041),'progress':_0x37b90a===_0x1dd87b(0x208)?0x64:0x0,'message':_0xe215dd,'total':0x64}};await _0x2cae04(_0x4f8255);_0x1ed765===_0x1dd87b(0x208)?logger[_0x1dd87b(0x1c8)]('Final\x20anal'+'ysis\x20statu'+_0x1dd87b(0x27c)+'\x20'+_0x32cedd):logger['info']('Analysis\x20f'+_0x1dd87b(0x21e)+_0x1dd87b(0x149)+_0x32cedd);const _0x239f4d={};_0x239f4d[_0x1dd87b(0x290)]=_0x1dd87b(0x15d),_0x239f4d['text']=_0x1dd87b(0x233)+_0x1dd87b(0x1b0)+_0x1dd87b(0x1f0)+_0x1dd87b(0x176)+_0x5e681b+(_0x1dd87b(0x22b)+_0x1dd87b(0x154))+_0x32cedd;const _0x3ee3ad={};_0x3ee3ad['analysisId']=_0x5e681b,_0x3ee3ad[_0x1dd87b(0x207)]=_0x32cedd,_0x3ee3ad[_0x1dd87b(0x2a9)]=_0x26fcc4[_0x1dd87b(0x2a9)],_0x3ee3ad['completed']=!![];const _0x2ffbe2={};return _0x2ffbe2[_0x1dd87b(0x237)]=[_0x239f4d],_0x2ffbe2['structured'+_0x1dd87b(0x231)]=_0x3ee3ad,_0x2ffbe2;}const _0x3003ce=_0x2e8bf3[_0x37b90a];if(_0x3003ce){const _0x550852={};_0x550852[_0x1dd87b(0x129)]=0x64;const _0x587f77={'method':'notificati'+'ons/progre'+'ss','params':{'progressToken':typeof _0x5ce041===_0x1dd87b(0x1f6)?_0x5ce041:String(_0x5ce041),'progress':_0x3003ce[_0x1dd87b(0x257)]!==null?_0x3003ce[_0x1dd87b(0x257)]:_0x37b90a===_0x1dd87b(0x1a7)?_0x30ff60:_0x3003ce[_0x1dd87b(0x216)],'message':'['+_0x3003ce['id']+']\x20'+_0x3003ce[_0x1dd87b(0x1b6)+'n'],'total':_0x28d1f8,..._0x3003ce[_0x1dd87b(0x257)]!==null&&_0x37b90a===_0x1dd87b(0x1a7)&&_0x550852}};await _0x2cae04(_0x587f77),_0x1ffb37&&logger[_0x1dd87b(0x1c8)](_0x1dd87b(0x24b)+_0x1dd87b(0x1b8)+_0x1dd87b(0x29c)+_0x3003ce['id']+'\x20('+_0x3003ce['name']+')');}else{const _0x5216b1={'method':'notificati'+'ons/progre'+'ss','params':{'progressToken':typeof _0x5ce041==='string'?_0x5ce041:_0xb6c722[_0x1dd87b(0x1d0)](String,_0x5ce041),'progress':0x1,'total':0x1,'message':'['+_0x37b90a+(_0x1dd87b(0x22c)+_0x1dd87b(0x27b)+_0x1dd87b(0x272))}};await _0x2cae04(_0x5216b1);}}else{if(_0x37b90a==='ANALYSIS'){if(_0x26fcc4[_0x1dd87b(0x257)]!==undefined&&_0x26fcc4[_0x1dd87b(0x257)]!==null){_0x30ff60=_0x26fcc4['progress'];const _0x3c0bf1=_0x2e8bf3[_0x37b90a],_0x56dea3={'method':_0x1dd87b(0x220)+'ons/progre'+'ss','params':{'progressToken':typeof _0x5ce041===_0x1dd87b(0x1f6)?_0x5ce041:String(_0x5ce041),'progress':_0x3c0bf1[_0x1dd87b(0x216)],'total':_0x28d1f8,'message':'[ANALYSIS]'+_0x1dd87b(0x202)+_0x1dd87b(0x249)+'s:\x20'+_0x30ff60+'%'}};await _0x2cae04(_0x56dea3);}}}!_0x1ffb37&&logger[_0x1dd87b(0x1c8)](_0x1dd87b(0x22d)+'oken\x20is\x20in'+'valid,\x20con'+'tinuing\x20st'+_0x1dd87b(0x28b)+_0x1dd87b(0x20f)+_0x1dd87b(0x220)+_0x1dd87b(0x278)),await new Promise(_0x584d43=>setTimeout(_0x584d43,intervalMs));}catch(_0x2d7164){logger[_0x1dd87b(0x1d9)](_0x1dd87b(0x163)+_0x1dd87b(0x1ae)+_0x1dd87b(0x2aa)+'\x20('+_0x5e681b+'):',_0x2d7164),await new Promise(_0x3c1dbd=>setTimeout(_0x3c1dbd,intervalMs));}}}catch(_0x4f6da5){logger[_0x1dd87b(0x1d9)](_0x1dd87b(0x1e2)+_0x1dd87b(0x28d)+'acking\x20fai'+_0x1dd87b(0x1ea),_0x4f6da5);const _0x2a10cd={};return _0x2a10cd[_0x1dd87b(0x290)]='text',_0x2a10cd[_0x1dd87b(0x15d)]=_0x1dd87b(0x1e2)+_0x1dd87b(0x28d)+_0x1dd87b(0x27f)+_0x1dd87b(0x1c6)+(_0x4f6da5 instanceof Error?_0x4f6da5[_0x1dd87b(0x191)]:_0x1dd87b(0x260)+_0x1dd87b(0x1c3)),{'content':[_0x2a10cd],'structuredContent':{'error':_0xb6c722[_0x1dd87b(0x255)](_0x4f6da5,Error)?_0x4f6da5['message']:_0x1dd87b(0x260)+_0x1dd87b(0x1c3)},'isError':!![]};}});const transport=new StdioServerTransport();logger[a1_0x53b251(0x1c8)](a1_0x53b251(0x138)+'\x20code\x20gene'+a1_0x53b251(0x1f7)+a1_0x53b251(0x29e)+'d');try{const serverFileDir=a1_0x110f13[a1_0x53b251(0x1e1)](fileURLToPath(import.meta.url)),projectRoot=a1_0x110f13[a1_0x53b251(0x201)](serverFileDir,'..'),logsDir=a1_0x110f13[a1_0x53b251(0x201)](projectRoot,a1_0x53b251(0x270));if(!a1_0x14d714[a1_0x53b251(0x197)](logsDir)){const a1_0x456611={};a1_0x456611[a1_0x53b251(0x144)]=!![],a1_0x14d714[a1_0x53b251(0x29b)](logsDir,a1_0x456611);}const combinedPath=a1_0x110f13[a1_0x53b251(0x158)](logsDir,a1_0x53b251(0x243)+'og'),errorPath=a1_0x110f13[a1_0x53b251(0x158)](logsDir,a1_0x53b251(0x1cc));logger[a1_0x53b251(0x1c8)](a1_0x53b251(0x117)+a1_0x53b251(0x1ff)+a1_0x53b251(0x1a1)+'\x20'+combinedPath+a1_0x53b251(0x245)+errorPath);}catch(a1_0x52e40b){logger[a1_0x53b251(0x12b)](a1_0x53b251(0x263)+a1_0x53b251(0x1cb)+'ng/creatin'+a1_0x53b251(0x29f)+a1_0x53b251(0x15c),a1_0x52e40b);}await server[a1_0x53b251(0x2a4)](transport);
@@ -10,6 +10,7 @@ export declare class AnalysisService {
10
10
  }>;
11
11
  getAnalysisStatus(analysisId: string): Promise<{
12
12
  status: string;
13
+ result?: string;
13
14
  progress?: number;
14
15
  message?: string;
15
16
  }>;
@@ -1 +1 @@
1
- const a2_0x5787d9=a2_0x4d46;(function(_0x49beac,_0x3d5d3f){const _0xee7973=a2_0x4d46,_0x1dad4e=_0x49beac();while(!![]){try{const _0x4e85b1=-parseInt(_0xee7973(0x205))/0x1+-parseInt(_0xee7973(0x1df))/0x2+-parseInt(_0xee7973(0x1d6))/0x3*(-parseInt(_0xee7973(0x220))/0x4)+parseInt(_0xee7973(0x1d8))/0x5*(parseInt(_0xee7973(0x26d))/0x6)+-parseInt(_0xee7973(0x21f))/0x7*(-parseInt(_0xee7973(0x23d))/0x8)+parseInt(_0xee7973(0x1d7))/0x9*(parseInt(_0xee7973(0x21c))/0xa)+parseInt(_0xee7973(0x241))/0xb;if(_0x4e85b1===_0x3d5d3f)break;else _0x1dad4e['push'](_0x1dad4e['shift']());}catch(_0x50d5ee){_0x1dad4e['push'](_0x1dad4e['shift']());}}}(a2_0x2321,0xda383));const a2_0x2cb48d=(function(){let _0x4ae866=!![];return function(_0x4b206c,_0x449ad5){const _0x4b9d8e=_0x4ae866?function(){const _0x3e4e9d=a2_0x4d46;if(_0x449ad5){const _0x195cc1=_0x449ad5[_0x3e4e9d(0x230)](_0x4b206c,arguments);return _0x449ad5=null,_0x195cc1;}}:function(){};return _0x4ae866=![],_0x4b9d8e;};}()),a2_0x4a6b83=a2_0x2cb48d(this,function(){const _0x119177=a2_0x4d46;return a2_0x4a6b83['toString']()[_0x119177(0x1e0)]('(((.+)+)+)'+'+$')[_0x119177(0x1fa)]()[_0x119177(0x27f)+'r'](a2_0x4a6b83)[_0x119177(0x1e0)]('(((.+)+)+)'+'+$');});a2_0x4a6b83();import{LLMService}from'./llm.service.js';import{SparrowService}from'./sparrow.service.js';function a2_0x2321(){const _0x2dd8c0=['yFromRisk','basename','PRE_PROCES','분석\x20결과\x20다운로드','Security','input.zip','lts','uploadMult','lysis','개\x20취약점\x20발견\x20(','sResults','alysisResu','안\x20분석\x20요청\x20실패','ZIP\x20파일\x20경로가','code.java','Line:\x20','ZIP\x20파일\x20업로드','FromPaths','126050mOleWe','분석이\x20진행\x20중입니','hhTug','7ZVZiiZ','5144kDwJyu','error','\x20실패했습니다.','analyzeMul','pollAnalys','vice','Psoxc','risk','석\x20시작:\x20','completed','\x20제공되지\x20않았습니','downloadAn','\x20실패:\x20','join','파일\x20업로드\x20실패:','청\x20완료:\x20','apply','key','eventMsgs','progress','MEDIUM','info','sStatus','checkerKey','ZIP\x20파일\x20기반\x20','analyzeZip','success','analysisId','uploadZipF','3088376vicfyo','secureCode','BAfdj','안전한\x20코드\x20브리핑','14565309PmupAj','contexts','toUpperCas','files','폴더\x20기반\x20보안\x20분','INIT','content','rabilities','FAIL','lineNumber','니다.','ief','requestAna','File:\x20','분석이\x20실패했습니다','ANALYSIS','zipFileNam','message','scription','분석\x20ID\x20변경\x20감','filePath','generateSe','개\x20파일','\x20->\x20실제\x20','HIGH','messages','파일\x20경로\x20기반\x20분','실패:','분석이\x20완료되었습니','취약점이\x20발견되었습','uploadFile','cureCodeBr','getAnalysi','보안\x20분석\x20요청\x20실','eSecurity','개\x20파일\x20경로','tipleFiles','fileConten','다중\x20파일\x20보안\x20분','folder.zip','filePaths','폴더\x20압축\x20및\x20업로','보안\x20분석\x20시작:\x20','severity','48AEZIRa','료:\x20','UNKNOWN','석\x20요청\x20완료:\x20','llmService','length','generateUn','gYzJJ','ile','준비\x20중입니다.','초기화\x20중입니다.','안전한\x20코드\x20생성\x20','ifiedDiff','분석\x20ID:\x20','SjyJL','석\x20요청\x20실패:','파일\x20경로\x20기반\x20보','sparrowSer','constructo','diff','buildVulne','push','분석\x20상태\x20조회\x20실','파일\x20경로\x20기반\x20다','VAtnG','분석\x20요청\x20완료:\x20','3126bIUGdk','387RMJmhI','68995BFzzEh','COMPLETE','alysisBrie','DqXAo','후처리\x20중입니다.','READY','s3Key','2170008wGtZoM','search','완료\x20(분석\x20ID:','der','Risk\x20Level','analysisBr','vulnerabil','s3Service','다중\x20파일\x20분석\x20요','LOW','analyzeFol','전처리\x20중입니다.','isArray','Details:\x20','Method:\x20','string','sFromPaths','status','분석\x20결과\x20조회:\x20','시작:\x20','isCompleti','지\x20않았습니다.','\x20없습니다.','분석\x20결과\x20조회\x20실','lccNX','dhEAD','method','toString','지:\x20원본\x20','fileName','mapSeverit','analyzeFil','uploadFold','\x20시작:\x20','CRITICAL','Brief','parseVulne','POST_PROCE','1723754BMVHqm','폴더\x20기반\x20분석\x20요','ities','requestId','cureCode'];a2_0x2321=function(){return _0x2dd8c0;};return a2_0x2321();}import{S3Service}from'./s3.service.js';import{DiffUtil}from'../utils/diff.util.js';function a2_0x4d46(_0x29d692,_0x3a7816){_0x29d692=_0x29d692-0x1d1;const _0x3be621=a2_0x2321();let _0x4a6b83=_0x3be621[_0x29d692];return _0x4a6b83;}import{logger}from'../utils/logger.js';import a2_0x70d49 from'path';export class AnalysisService{[a2_0x5787d9(0x271)];[a2_0x5787d9(0x27e)+a2_0x5787d9(0x225)];[a2_0x5787d9(0x1e6)];constructor(){const _0x5856db=a2_0x5787d9;this[_0x5856db(0x271)]=new LLMService(),this[_0x5856db(0x27e)+_0x5856db(0x225)]=new SparrowService(),this[_0x5856db(0x1e6)]=new S3Service();}async[a2_0x5787d9(0x1fe)+a2_0x5787d9(0x263)](_0x5b49d7){const _0x1eb850=a2_0x5787d9;try{logger['info'](_0x1eb850(0x26b)+_0x5b49d7['fileName']);const _0x21be74=await this[_0x1eb850(0x1e6)][_0x1eb850(0x25f)](_0x5b49d7[_0x1eb850(0x266)+'t'],_0x5b49d7[_0x1eb850(0x1fc)]);if(!_0x21be74[_0x1eb850(0x23a)])throw new Error('파일\x20업로드\x20실패:'+'\x20'+_0x21be74[_0x1eb850(0x221)]);const _0x1815e1={};_0x1815e1['fileName']=_0x5b49d7[_0x1eb850(0x1fc)],_0x1815e1[_0x1eb850(0x266)+'t']=_0x5b49d7[_0x1eb850(0x266)+'t'],_0x1815e1['s3Key']=_0x21be74[_0x1eb850(0x231)];const _0x58a845=_0x1815e1,_0x3b5d85=await this['sparrowSer'+_0x1eb850(0x225)][_0x1eb850(0x24d)+'lysis'](_0x58a845);logger[_0x1eb850(0x235)](_0x1eb850(0x1d5)+_0x3b5d85[_0x1eb850(0x208)]);const _0x1e5d80={};return _0x1e5d80[_0x1eb850(0x23b)]=_0x3b5d85[_0x1eb850(0x23b)]||_0x3b5d85[_0x1eb850(0x208)],_0x1e5d80['status']=_0x3b5d85[_0x1eb850(0x1f0)],_0x1e5d80;}catch(_0x1e1ab4){logger['error'](_0x1eb850(0x262)+'패:',_0x1e1ab4);throw _0x1e1ab4;}}async[a2_0x5787d9(0x261)+a2_0x5787d9(0x236)](_0x54c928){const _0x1444fd=a2_0x5787d9,_0x223718={};_0x223718[_0x1444fd(0x226)]=function(_0x21fb0e,_0x51ad1b){return _0x21fb0e===_0x51ad1b;};const _0x32bb43=_0x223718;try{const _0x2c4a51=await this['sparrowSer'+_0x1444fd(0x225)]['getAnalysi'+_0x1444fd(0x236)](_0x54c928);let _0x3e6733=_0x2c4a51[_0x1444fd(0x233)];if(_0x32bb43[_0x1444fd(0x226)](_0x3e6733,undefined)){const _0x33841a=String(_0x2c4a51[_0x1444fd(0x1f0)])['toUpperCas'+'e']();if(_0x32bb43[_0x1444fd(0x226)](_0x33841a,_0x1444fd(0x1d9)))_0x3e6733=0x64;else{if(_0x33841a===_0x1444fd(0x250))_0x3e6733=undefined;else{if(_0x33841a==='INIT'||_0x33841a===_0x1444fd(0x1dd))_0x3e6733=0x0;else{if(_0x33841a===_0x1444fd(0x20c)+'S')_0x3e6733=0xa;else _0x33841a===_0x1444fd(0x204)+'SS'&&(_0x3e6733=0x5a);}}}}const _0x4e3164={};_0x4e3164[_0x1444fd(0x246)]=_0x1444fd(0x277),_0x4e3164[_0x1444fd(0x1dd)]=_0x1444fd(0x276),_0x4e3164[_0x1444fd(0x20c)+'S']=_0x1444fd(0x1ea),_0x4e3164[_0x1444fd(0x250)]='분석\x20중입니다.',_0x4e3164['POST_PROCE'+'SS']=_0x1444fd(0x1dc),_0x4e3164['COMPLETE']=_0x1444fd(0x25d)+'다.',_0x4e3164[_0x1444fd(0x249)]=_0x1444fd(0x24f)+'.',_0x4e3164['FAILED']='분석이\x20실패했습니다'+'.';const _0x38cf51=_0x4e3164,_0x51f6fc=String(_0x2c4a51['status'])[_0x1444fd(0x243)+'e'](),_0x2238dd=_0x38cf51[_0x51f6fc]||_0x1444fd(0x21d)+'다.',_0x162b69={};return _0x162b69[_0x1444fd(0x1f0)]=_0x2c4a51[_0x1444fd(0x1f0)],_0x162b69[_0x1444fd(0x233)]=_0x3e6733,_0x162b69[_0x1444fd(0x252)]=_0x2238dd,_0x162b69;}catch(_0x21cc61){logger[_0x1444fd(0x221)](_0x1444fd(0x1d2)+'패:',_0x21cc61);throw _0x21cc61;}}async['getAnalysi'+a2_0x5787d9(0x214)](_0x3e87c3){const _0x2c7a0e=a2_0x5787d9,_0x4e8985={'VAtnG':function(_0x49884d,_0x5e44af){return _0x49884d(_0x5e44af);}};try{logger[_0x2c7a0e(0x235)](_0x2c7a0e(0x1f1)+_0x3e87c3);const _0x23895e=await this[_0x2c7a0e(0x27e)+_0x2c7a0e(0x225)][_0x2c7a0e(0x224)+'isCompleti'+'on'](_0x3e87c3),_0x121d41=_0x23895e[_0x2c7a0e(0x23b)]||_0x3e87c3;_0x121d41!==_0x3e87c3&&logger[_0x2c7a0e(0x235)](_0x2c7a0e(0x254)+_0x2c7a0e(0x1fb)+_0x3e87c3+_0x2c7a0e(0x258)+_0x121d41);logger[_0x2c7a0e(0x235)]('분석\x20결과\x20다운로드'+'\x20시작:\x20'+_0x121d41);const _0x5712b9=await this[_0x2c7a0e(0x27e)+_0x2c7a0e(0x225)][_0x2c7a0e(0x22b)+'alysisResu'+_0x2c7a0e(0x210)](_0x121d41),_0x1ad554=this[_0x2c7a0e(0x203)+_0x2c7a0e(0x248)](_0x5712b9),_0x43b69c=await this[_0x2c7a0e(0x271)]['generateAn'+_0x2c7a0e(0x1da)+'f'](_0x5712b9),_0x296d2d=_0x43b69c[_0x2c7a0e(0x23a)]?_0x43b69c['content']:'분석\x20브리핑\x20생성에'+_0x2c7a0e(0x222);logger['info']('분석\x20결과\x20생성\x20완'+_0x2c7a0e(0x26e)+_0x1ad554[_0x2c7a0e(0x272)]+(_0x2c7a0e(0x213)+_0x2c7a0e(0x27a))+_0x121d41+')');const _0x328d59={};return _0x328d59['analysisId']=_0x121d41,_0x328d59[_0x2c7a0e(0x1f0)]=_0x2c7a0e(0x229),_0x328d59[_0x2c7a0e(0x1e5)+_0x2c7a0e(0x207)]=_0x1ad554,_0x328d59[_0x2c7a0e(0x1e4)+'ief']=_0x296d2d,_0x328d59;}catch(_0x289693){if(_0x2c7a0e(0x1f8)!=='pABug'){logger['error'](_0x2c7a0e(0x1f6)+'패:',_0x289693);throw _0x289693;}else{const _0x58bbb3=typeof _0x553e0d==='string'?_0x4e8985[_0x2c7a0e(0x1d4)](_0x298ed2,_0x5dd5a3):_0x51d64c;if(_0x58bbb3<=0x2)return'HIGH';else return _0x58bbb3===0x3?_0x2c7a0e(0x234):_0x2c7a0e(0x1e8);}}}async[a2_0x5787d9(0x256)+'cureCodeFr'+'omAnalysis'](_0x43783d,_0x293b8e){const _0x39758f=a2_0x5787d9;try{logger[_0x39758f(0x235)](_0x39758f(0x278)+_0x39758f(0x1f2)+_0x43783d);const _0x1f8498=await this[_0x39758f(0x27e)+_0x39758f(0x225)][_0x39758f(0x224)+_0x39758f(0x1f3)+'on'](_0x43783d),_0x360e12=_0x1f8498[_0x39758f(0x23b)]||_0x43783d;logger[_0x39758f(0x235)](_0x39758f(0x20d)+_0x39758f(0x200)+_0x360e12);const _0xb2e78e=await this['sparrowSer'+'vice'][_0x39758f(0x22b)+_0x39758f(0x215)+_0x39758f(0x210)](_0x360e12),_0x2f231d=this['parseVulne'+_0x39758f(0x248)](_0xb2e78e),_0x354f0a=await this[_0x39758f(0x271)][_0x39758f(0x256)+_0x39758f(0x209)](_0x293b8e,_0x2f231d),_0x279914=_0x354f0a[_0x39758f(0x23a)]?_0x354f0a[_0x39758f(0x247)]:_0x293b8e,_0x39c693=await this[_0x39758f(0x271)][_0x39758f(0x256)+_0x39758f(0x260)+_0x39758f(0x24c)](_0x293b8e,_0x279914),_0x225798=_0x39c693[_0x39758f(0x23a)]?_0x39c693[_0x39758f(0x247)]:_0x39758f(0x240)+'\x20생성에\x20실패했습니'+'다.',_0x195852=DiffUtil[_0x39758f(0x273)+_0x39758f(0x279)](_0x293b8e,_0x279914,_0x39758f(0x218));logger[_0x39758f(0x235)](_0x39758f(0x278)+_0x39758f(0x1e1)+'\x20'+_0x360e12+')');const _0x8bbc={};return _0x8bbc[_0x39758f(0x23e)]=_0x279914,_0x8bbc[_0x39758f(0x23e)+_0x39758f(0x202)]=_0x225798,_0x8bbc[_0x39758f(0x280)]=_0x195852,_0x8bbc;}catch(_0x1d6b5a){logger['error'](_0x39758f(0x278)+_0x39758f(0x25c),_0x1d6b5a);throw _0x1d6b5a;}}['parseVulne'+a2_0x5787d9(0x248)](_0x336db2){const _0x52b967=a2_0x5787d9,_0xa41280=[];for(const _0x475705 of _0x336db2){if(Array[_0x52b967(0x1eb)](_0x475705))for(const _0x3ce66d of _0x475705){_0x3ce66d['checkerKey']&&_0xa41280[_0x52b967(0x1d1)]({'checkerKey':_0x3ce66d[_0x52b967(0x237)]||'UNKNOWN','description':this['buildVulne'+'rabilityDe'+_0x52b967(0x253)](_0x3ce66d),'severity':this[_0x52b967(0x1fd)+_0x52b967(0x20a)](_0x3ce66d[_0x52b967(0x227)]),'lineNumber':_0x3ce66d[_0x52b967(0x24a)],'filePath':_0x3ce66d[_0x52b967(0x269)]&&_0x3ce66d[_0x52b967(0x269)][_0x52b967(0x272)]>0x0?_0x3ce66d[_0x52b967(0x269)][0x0]:undefined});}else{if(_0x475705[_0x52b967(0x1e5)+_0x52b967(0x207)]&&Array[_0x52b967(0x1eb)](_0x475705[_0x52b967(0x1e5)+_0x52b967(0x207)]))for(const _0x18cc69 of _0x475705[_0x52b967(0x1e5)+_0x52b967(0x207)]){_0xa41280[_0x52b967(0x1d1)]({'checkerKey':_0x18cc69['checkerKey']||_0x52b967(0x26f),'description':_0x18cc69['descriptio'+'n']||_0x18cc69['message']||'설명\x20없음','severity':this['mapSeverit'+'y'](_0x18cc69[_0x52b967(0x26c)]),'lineNumber':_0x18cc69[_0x52b967(0x24a)],'filePath':_0x18cc69[_0x52b967(0x255)]});}}}return _0xa41280;}[a2_0x5787d9(0x281)+'rabilityDe'+a2_0x5787d9(0x253)](_0x3a3380){const _0x4872a6=a2_0x5787d9,_0x65dd4e={};_0x65dd4e['BHqox']=_0x4872a6(0x25e)+_0x4872a6(0x24b);const _0x50a39f=_0x65dd4e,_0x9b8a15=[];_0x3a3380[_0x4872a6(0x237)]&&_0x9b8a15[_0x4872a6(0x1d1)]('Checker:\x20'+_0x3a3380[_0x4872a6(0x237)]);_0x3a3380[_0x4872a6(0x1f9)]&&_0x9b8a15[_0x4872a6(0x1d1)](_0x4872a6(0x1ed)+_0x3a3380[_0x4872a6(0x1f9)]);_0x3a3380[_0x4872a6(0x269)]&&_0x3a3380[_0x4872a6(0x269)][_0x4872a6(0x272)]>0x0&&_0x9b8a15[_0x4872a6(0x1d1)](_0x4872a6(0x24e)+_0x3a3380['filePaths'][0x0]);_0x3a3380['lineNumber']&&_0x9b8a15[_0x4872a6(0x1d1)](_0x4872a6(0x219)+_0x3a3380[_0x4872a6(0x24a)]);_0x3a3380['risk']&&_0x9b8a15[_0x4872a6(0x1d1)](_0x4872a6(0x1e3)+':\x20'+_0x3a3380['risk']);if(_0x3a3380['contexts']&&Array[_0x4872a6(0x1eb)](_0x3a3380[_0x4872a6(0x242)])){const _0x300987=[];for(const _0x176c54 of _0x3a3380['contexts']){if(_0x176c54[_0x4872a6(0x232)]&&Array['isArray'](_0x176c54[_0x4872a6(0x232)]))for(const _0x16dbad of _0x176c54[_0x4872a6(0x232)]){if(_0x16dbad['messages']&&Array[_0x4872a6(0x1eb)](_0x16dbad['messages']))for(const _0x2a57e6 of _0x16dbad[_0x4872a6(0x25a)]){_0x2a57e6[_0x4872a6(0x252)]&&_0x300987[_0x4872a6(0x1d1)](_0x2a57e6[_0x4872a6(0x252)]);}}}_0x300987[_0x4872a6(0x272)]>0x0&&_0x9b8a15[_0x4872a6(0x1d1)](_0x4872a6(0x1ec)+_0x300987[_0x4872a6(0x22d)](';\x20'));}return _0x9b8a15[_0x4872a6(0x272)]>0x0?_0x9b8a15[_0x4872a6(0x22d)](',\x20'):_0x50a39f['BHqox'];}['mapSeverit'+'yFromRisk'](_0x7a8c5){const _0x33a0ed=a2_0x5787d9,_0x53d487={};_0x53d487[_0x33a0ed(0x21e)]=_0x33a0ed(0x1ee);const _0x358697=_0x53d487,_0x458709=typeof _0x7a8c5===_0x358697[_0x33a0ed(0x21e)]?parseInt(_0x7a8c5):_0x7a8c5;if(_0x458709<=0x2)return'HIGH';else return _0x458709===0x3?'MEDIUM':_0x33a0ed(0x1e8);}async['analyzeMul'+a2_0x5787d9(0x265)+a2_0x5787d9(0x20e)](_0x45c40f){const _0x453710=a2_0x5787d9,_0x1bd9e3={};_0x1bd9e3['BAfdj']=function(_0x255de6,_0x430444){return _0x255de6===_0x430444;},_0x1bd9e3[_0x453710(0x1db)]=_0x453710(0x267)+_0x453710(0x27c);const _0xa3d736=_0x1bd9e3;try{logger[_0x453710(0x235)](_0x453710(0x267)+_0x453710(0x228)+_0x45c40f['files'][_0x453710(0x272)]+_0x453710(0x257));if(!_0x45c40f[_0x453710(0x244)]||_0xa3d736[_0x453710(0x23f)](_0x45c40f['files']['length'],0x0))throw new Error('분석할\x20파일이\x20없습'+_0x453710(0x24b));const _0x51adce=await this[_0x453710(0x1e6)][_0x453710(0x211)+'ipleFiles'](_0x45c40f[_0x453710(0x244)],_0x45c40f[_0x453710(0x251)+'e']);if(!_0x51adce[_0x453710(0x23a)])throw new Error(_0x453710(0x22e)+'\x20'+_0x51adce['error']);const _0x5f2dae=_0x45c40f[_0x453710(0x244)][0x0]?.['fileName']||_0x453710(0x20f),_0x296280={};_0x296280[_0x453710(0x1fc)]=_0x45c40f[_0x453710(0x251)+'e']||_0x5f2dae,_0x296280[_0x453710(0x266)+'t']='',_0x296280[_0x453710(0x1de)]=_0x51adce[_0x453710(0x231)];const _0x3fd60d=_0x296280,_0x12c4ea=await this[_0x453710(0x27e)+'vice'][_0x453710(0x24d)+_0x453710(0x212)](_0x3fd60d);logger[_0x453710(0x235)](_0x453710(0x1e7)+_0x453710(0x22f)+_0x12c4ea['requestId']);const _0x36036c={};return _0x36036c['analysisId']=_0x12c4ea[_0x453710(0x23b)]||_0x12c4ea[_0x453710(0x208)],_0x36036c[_0x453710(0x1f0)]=_0x12c4ea[_0x453710(0x1f0)],_0x36036c;}catch(_0x4c6a21){logger[_0x453710(0x221)](_0xa3d736[_0x453710(0x1db)],_0x4c6a21);throw _0x4c6a21;}}async[a2_0x5787d9(0x223)+a2_0x5787d9(0x265)+a2_0x5787d9(0x21b)](_0x912030,_0x3ece68){const _0x11c9e5=a2_0x5787d9,_0x335504={};_0x335504['gYzJJ']=function(_0x250821,_0x40e8d4){return _0x250821===_0x40e8d4;},_0x335504[_0x11c9e5(0x27b)]='분석할\x20파일\x20경로가'+_0x11c9e5(0x1f5),_0x335504[_0x11c9e5(0x1f7)]=_0x11c9e5(0x27d)+_0x11c9e5(0x216)+':';const _0x2f241=_0x335504;try{logger[_0x11c9e5(0x235)](_0x11c9e5(0x1d3)+'중\x20파일\x20보안\x20분석'+'\x20시작:\x20'+_0x912030[_0x11c9e5(0x272)]+_0x11c9e5(0x264));if(!_0x912030||_0x2f241[_0x11c9e5(0x274)](_0x912030['length'],0x0))throw new Error(_0x2f241[_0x11c9e5(0x27b)]);const _0x3f7b9f=await this[_0x11c9e5(0x1e6)]['uploadFile'+_0x11c9e5(0x1ef)](_0x912030,_0x3ece68);if(!_0x3f7b9f['success'])throw new Error(_0x11c9e5(0x22e)+'\x20'+_0x3f7b9f['error']);const _0x54d1db=a2_0x70d49[_0x11c9e5(0x20b)](_0x912030[0x0])||_0x11c9e5(0x20f),_0x2ebc37={};_0x2ebc37[_0x11c9e5(0x1fc)]=_0x3ece68||_0x54d1db,_0x2ebc37[_0x11c9e5(0x266)+'t']='',_0x2ebc37[_0x11c9e5(0x1de)]=_0x3f7b9f[_0x11c9e5(0x231)];const _0x1c8539=_0x2ebc37,_0xf10b53=await this[_0x11c9e5(0x27e)+_0x11c9e5(0x225)][_0x11c9e5(0x24d)+_0x11c9e5(0x212)](_0x1c8539);logger[_0x11c9e5(0x235)](_0x11c9e5(0x25b)+_0x11c9e5(0x270)+_0xf10b53['requestId']);const _0x6f7a1c={};return _0x6f7a1c['analysisId']=_0xf10b53[_0x11c9e5(0x23b)]||_0xf10b53[_0x11c9e5(0x208)],_0x6f7a1c[_0x11c9e5(0x1f0)]=_0xf10b53[_0x11c9e5(0x1f0)],_0x6f7a1c;}catch(_0x3e12ec){logger[_0x11c9e5(0x221)](_0x2f241[_0x11c9e5(0x1f7)],_0x3e12ec);throw _0x3e12ec;}}async[a2_0x5787d9(0x239)+'File'](_0x320f32,_0x4beffd){const _0x546aee=a2_0x5787d9;try{logger['info'](_0x546aee(0x238)+'보안\x20분석\x20시작:\x20'+_0x320f32);if(!_0x320f32)throw new Error(_0x546aee(0x217)+_0x546aee(0x22a)+'다.');const _0x3123c0=await this[_0x546aee(0x1e6)][_0x546aee(0x23c)+_0x546aee(0x275)](_0x320f32);if(!_0x3123c0[_0x546aee(0x23a)])throw new Error(_0x546aee(0x21a)+_0x546aee(0x22c)+_0x3123c0['error']);const _0x32e865=_0x4beffd||a2_0x70d49[_0x546aee(0x20b)](_0x320f32)||_0x546aee(0x20f),_0x17cf4f={};_0x17cf4f[_0x546aee(0x1fc)]=_0x32e865,_0x17cf4f[_0x546aee(0x266)+'t']='',_0x17cf4f[_0x546aee(0x1de)]=_0x3123c0['key'];const _0x32ec5f=_0x17cf4f,_0x28a3b8=await this[_0x546aee(0x27e)+'vice'][_0x546aee(0x24d)+_0x546aee(0x212)](_0x32ec5f);logger[_0x546aee(0x235)](_0x546aee(0x238)+'분석\x20요청\x20완료:\x20'+_0x28a3b8[_0x546aee(0x208)]);const _0x59fb1e={};return _0x59fb1e['analysisId']=_0x28a3b8[_0x546aee(0x23b)]||_0x28a3b8[_0x546aee(0x208)],_0x59fb1e[_0x546aee(0x1f0)]=_0x28a3b8[_0x546aee(0x1f0)],_0x59fb1e;}catch(_0x4952d3){logger[_0x546aee(0x221)](_0x546aee(0x238)+'보안\x20분석\x20요청\x20실'+'패:',_0x4952d3);throw _0x4952d3;}}async[a2_0x5787d9(0x1e9)+a2_0x5787d9(0x1e2)](_0x24a70f,_0x5d6f72){const _0x538843=a2_0x5787d9;try{logger[_0x538843(0x235)](_0x538843(0x245)+_0x538843(0x228)+_0x24a70f);if(!_0x24a70f)throw new Error('폴더\x20경로가\x20제공되'+_0x538843(0x1f4));const _0x100a36=await this['s3Service'][_0x538843(0x1ff)+'erAsZip'](_0x24a70f,_0x5d6f72);if(!_0x100a36[_0x538843(0x23a)])throw new Error(_0x538843(0x26a)+'드\x20실패:\x20'+_0x100a36[_0x538843(0x221)]);const _0x5ba03a=_0x5d6f72||a2_0x70d49[_0x538843(0x20b)](_0x24a70f)||_0x538843(0x268),_0xe25065={};_0xe25065['fileName']=_0x5ba03a,_0xe25065[_0x538843(0x266)+'t']='',_0xe25065[_0x538843(0x1de)]=_0x100a36[_0x538843(0x231)];const _0xdfc17c=_0xe25065,_0x9165a7=await this[_0x538843(0x27e)+'vice']['requestAna'+'lysis'](_0xdfc17c);logger['info'](_0x538843(0x206)+_0x538843(0x22f)+_0x9165a7[_0x538843(0x208)]);const _0x5e2366={};return _0x5e2366['analysisId']=_0x9165a7['analysisId']||_0x9165a7[_0x538843(0x208)],_0x5e2366['status']=_0x9165a7[_0x538843(0x1f0)],_0x5e2366;}catch(_0x18a104){logger[_0x538843(0x221)]('폴더\x20기반\x20보안\x20분'+_0x538843(0x27c),_0x18a104);throw _0x18a104;}}[a2_0x5787d9(0x1fd)+'y'](_0x27e532){const _0x53da26=a2_0x5787d9,_0x27ffb2={};_0x27ffb2[_0x53da26(0x259)]=_0x53da26(0x259),_0x27ffb2[_0x53da26(0x201)]='HIGH',_0x27ffb2[_0x53da26(0x234)]=_0x53da26(0x234),_0x27ffb2[_0x53da26(0x1e8)]=_0x53da26(0x1e8),_0x27ffb2['INFO']='LOW';const _0x30d76e=_0x27ffb2;return _0x30d76e[_0x27e532?.[_0x53da26(0x243)+'e']()]||_0x53da26(0x234);}}
1
+ const a2_0x444a9f=a2_0x4563;(function(_0x16c36d,_0x2e3633){const _0x5f12c4=a2_0x4563,_0x4eeefc=_0x16c36d();while(!![]){try{const _0x49fccf=parseInt(_0x5f12c4(0xc1))/0x1+parseInt(_0x5f12c4(0x13f))/0x2*(-parseInt(_0x5f12c4(0xf7))/0x3)+-parseInt(_0x5f12c4(0xfe))/0x4+-parseInt(_0x5f12c4(0x123))/0x5*(-parseInt(_0x5f12c4(0xcb))/0x6)+-parseInt(_0x5f12c4(0x11a))/0x7*(parseInt(_0x5f12c4(0xef))/0x8)+parseInt(_0x5f12c4(0x106))/0x9+-parseInt(_0x5f12c4(0xe0))/0xa*(parseInt(_0x5f12c4(0x10f))/0xb);if(_0x49fccf===_0x2e3633)break;else _0x4eeefc['push'](_0x4eeefc['shift']());}catch(_0x39f4){_0x4eeefc['push'](_0x4eeefc['shift']());}}}(a2_0x5de9,0x7bd26));const a2_0x28750d=(function(){let _0x488398=!![];return function(_0x283633,_0x4ae024){const _0x429bd1=_0x488398?function(){const _0x51547f=a2_0x4563;if(_0x4ae024){const _0x2b878f=_0x4ae024[_0x51547f(0x94)](_0x283633,arguments);return _0x4ae024=null,_0x2b878f;}}:function(){};return _0x488398=![],_0x429bd1;};}()),a2_0x8eca58=a2_0x28750d(this,function(){const _0x44ed3b=a2_0x4563;return a2_0x8eca58[_0x44ed3b(0xaa)]()['search'](_0x44ed3b(0xf0)+'+$')[_0x44ed3b(0xaa)]()['constructo'+'r'](a2_0x8eca58)[_0x44ed3b(0xac)](_0x44ed3b(0xf0)+'+$');});a2_0x8eca58();import{LLMService}from'./llm.service.js';import{SparrowService}from'./sparrow.service.js';import{S3Service}from'./s3.service.js';function a2_0x4563(_0x3bde1f,_0x4a64c7){_0x3bde1f=_0x3bde1f-0x91;const _0x549d1a=a2_0x5de9();let _0x8eca58=_0x549d1a[_0x3bde1f];return _0x8eca58;}import{DiffUtil}from'../utils/diff.util.js';import{logger}from'../utils/logger.js';function a2_0x5de9(){const _0x5f1d8a=['File','STOP','progress','14afoHnB','vulnerabil','parseVulne','basename','INIT','FAILED','lysis','code.java','석\x20시작:\x20','5bnpvKz','Brief','전처리\x20중입니다.','안전한\x20코드\x20브리핑','join','eSecurity','sFromPaths','analyzeFil','message','지\x20않았습니다.','risk','중\x20파일\x20보안\x20분석','없습니다.)','mapSeverit','push','\x20실패:\x20','니다.','fileName','File:\x20','generateAn','\x20->\x20실제\x20','generateSe','파일\x20경로\x20기반\x20보','cureCodeFr','한\x20상태입니다.','analyzeFol','분석을\x20올바르게\x20완','\x20실패했습니다.','180886nfGMAk','LOW','zipFileNam','completed','Line:\x20','content','안\x20분석\x20요청\x20실패','messages','uploadMult','result','vice','완료되지\x20않았습니다','지:\x20원본\x20','안전한\x20코드\x20생성\x20','input.zip','apply','\x20제공되지\x20않았습니','폴더\x20기반\x20보안\x20분','requestId','ief','설명\x20없음','개\x20파일\x20경로','중지\x20요청을\x20받아\x20','isArray','료:\x20','length','분석\x20중입니다.','tipleFiles','HIGH','COMPLETE','erAsZip','downloadAn','success','\x20(SUCCESS가','분석할\x20파일\x20경로가','s3Service','generateUn','toString','rabilities','search','준비\x20중입니다.','analyzeMul','omAnalysis','분석\x20결과\x20생성\x20완','실패:','MEDIUM','분석\x20ID:\x20','s3Key','시작:\x20','wGRxC','string','llmService','sStatus','분석\x20브리핑\x20생성에','yFromRisk','error','다중\x20파일\x20보안\x20분','lineNumber','.\x20result=','getAnalysi','988919TdIYHq','POST_PROCE','alysisBrie','ities','분석\x20ID\x20변경\x20감','분석이\x20진행\x20중입니','contexts','cureCodeBr','bYJHy','sResults','184524WrixYR','info','analysisBr','ZIP\x20파일\x20경로가','석\x20요청\x20완료:\x20','pollAnalys','드\x20실패:\x20','analysisId','분석이\x20실패했습니다','pzrxr','eventMsgs','분석이\x20성공적으로\x20','method','status','rabilityDe','석\x20요청\x20실패:','files','완료되었습니다.','der','lts','checkerKey','2764930dAjEvf','보안\x20분석\x20시작:\x20','filePaths','ANALYSIS','requestAna','\x20아니므로\x20안전한\x20','파일\x20경로\x20기반\x20다','파일\x20업로드\x20실패:','ile','ZIP\x20파일\x20업로드','sparrowSer','후처리\x20중입니다.','cureCode','CRITICAL','failed','108400DkOfGa','(((.+)+)+)','Security','uploadFold','취약점이\x20발견되었습','분석이\x20완료되었습니','nnepp','diff','3bZUbLh','분석\x20결과\x20조회\x20실','FAIL','UNKNOWN','폴더\x20기반\x20분석\x20요','toUpperCas','descriptio','3393352tpWPtG','개\x20파일','READY','uploadFile','secureCode','분석\x20결과\x20조회:\x20','SUCCESS','buildVulne','6568875cLqzgn','key','\x20시작:\x20','ifiedDiff','alysisResu','isCompleti','Checker:\x20','ZIP\x20파일\x20기반\x20','다중\x20파일\x20분석\x20요','11GFrbDE','입니다.','severity','scription','Risk\x20Level','료하지\x20못하고\x20실패','fileConten','분석\x20결과\x20다운로드'];a2_0x5de9=function(){return _0x5f1d8a;};return a2_0x5de9();}import a2_0x2c6260 from'path';export class AnalysisService{[a2_0x444a9f(0xb8)];[a2_0x444a9f(0xea)+'vice'];[a2_0x444a9f(0xa8)];constructor(){const _0x16319e=a2_0x444a9f;this['llmService']=new LLMService(),this['sparrowSer'+_0x16319e(0x149)]=new SparrowService(),this[_0x16319e(0xa8)]=new S3Service();}async[a2_0x444a9f(0x12a)+a2_0x444a9f(0x128)](_0x1686aa){const _0x3f2ba0=a2_0x444a9f;try{logger['info'](_0x3f2ba0(0xe1)+_0x1686aa['fileName']);const _0x4f2cc0=await this[_0x3f2ba0(0xa8)][_0x3f2ba0(0x101)](_0x1686aa[_0x3f2ba0(0x115)+'t'],_0x1686aa[_0x3f2ba0(0x134)]);if(!_0x4f2cc0['success'])throw new Error(_0x3f2ba0(0xe7)+'\x20'+_0x4f2cc0[_0x3f2ba0(0xbc)]);const _0x359f94={};_0x359f94[_0x3f2ba0(0x134)]=_0x1686aa[_0x3f2ba0(0x134)],_0x359f94[_0x3f2ba0(0x115)+'t']=_0x1686aa['fileConten'+'t'],_0x359f94[_0x3f2ba0(0xb4)]=_0x4f2cc0[_0x3f2ba0(0x107)];const _0x1bb4f9=_0x359f94,_0x2779f2=await this[_0x3f2ba0(0xea)+_0x3f2ba0(0x149)][_0x3f2ba0(0xe4)+_0x3f2ba0(0x120)](_0x1bb4f9);logger['info']('분석\x20요청\x20완료:\x20'+_0x2779f2['requestId']);const _0x40b096={};return _0x40b096[_0x3f2ba0(0xd2)]=_0x2779f2[_0x3f2ba0(0xd2)]||_0x2779f2[_0x3f2ba0(0x97)],_0x40b096[_0x3f2ba0(0xd8)]=_0x2779f2['status'],_0x40b096;}catch(_0x377949){logger['error']('보안\x20분석\x20요청\x20실'+'패:',_0x377949);throw _0x377949;}}async['getAnalysi'+a2_0x444a9f(0xb9)](_0x8f8e0a){const _0x2c7be1=a2_0x444a9f,_0x120b5c={};_0x120b5c['HwRew']=_0x2c7be1(0x100),_0x120b5c['nnepp']=function(_0x4d1a75,_0x30c23c){return _0x4d1a75===_0x30c23c;},_0x120b5c[_0x2c7be1(0xc9)]=_0x2c7be1(0x9f);const _0x41b133=_0x120b5c;try{const _0x2a24fc=await this[_0x2c7be1(0xea)+_0x2c7be1(0x149)]['getAnalysi'+_0x2c7be1(0xb9)](_0x8f8e0a);let _0x289967=_0x2a24fc[_0x2c7be1(0x119)];if(_0x289967===undefined){const _0x3661e6=String(_0x2a24fc['status'])[_0x2c7be1(0xfc)+'e']();if(_0x3661e6===_0x2c7be1(0xa2))_0x289967=0x64;else{if(_0x3661e6===_0x2c7be1(0xe3))_0x289967=undefined;else{if(_0x3661e6===_0x2c7be1(0x11e)||_0x3661e6===_0x41b133['HwRew'])_0x289967=0x0;else{if(_0x3661e6==='PRE_PROCES'+'S')_0x289967=0xa;else _0x3661e6===_0x2c7be1(0xc2)+'SS'&&(_0x289967=0x5a);}}}}const _0x286b16=String(_0x2a24fc['status'])[_0x2c7be1(0xfc)+'e']();let _0x857157;if(_0x286b16==='COMPLETE'){const _0x2330a0=_0x2a24fc[_0x2c7be1(0x148)]?String(_0x2a24fc['result'])[_0x2c7be1(0xfc)+'e']():undefined;if(_0x2330a0===_0x2c7be1(0x104))_0x857157=_0x2c7be1(0xd6)+_0x2c7be1(0xdc);else{if(_0x41b133[_0x2c7be1(0xf5)](_0x2330a0,_0x2c7be1(0xf9)))_0x857157=_0x2c7be1(0x13d)+_0x2c7be1(0x114)+_0x2c7be1(0x13b);else _0x2330a0===_0x2c7be1(0x118)?_0x857157=_0x2c7be1(0x9b)+'분석이\x20중지된\x20상태'+_0x2c7be1(0x110):_0x857157=_0x2c7be1(0xf4)+'다.';}}else{const _0x556e51={};_0x556e51['INIT']='초기화\x20중입니다.',_0x556e51[_0x2c7be1(0x100)]=_0x2c7be1(0xad),_0x556e51['PRE_PROCES'+'S']=_0x2c7be1(0x125),_0x556e51[_0x2c7be1(0xe3)]=_0x41b133[_0x2c7be1(0xc9)],_0x556e51['POST_PROCE'+'SS']=_0x2c7be1(0xeb),_0x556e51['FAIL']=_0x2c7be1(0xd3)+'.',_0x556e51[_0x2c7be1(0x11f)]=_0x2c7be1(0xd3)+'.';const _0x491f80=_0x556e51;_0x857157=_0x491f80[_0x286b16]||_0x2c7be1(0xc6)+'다.';}let _0x3f3e27=_0x2a24fc['status'];_0x286b16===_0x2c7be1(0xa2)&&_0x2a24fc['result']&&(_0x3f3e27=_0x2a24fc[_0x2c7be1(0x148)]);const _0x30eb89={};return _0x30eb89[_0x2c7be1(0xd8)]=_0x3f3e27,_0x30eb89[_0x2c7be1(0x148)]=_0x2a24fc[_0x2c7be1(0x148)],_0x30eb89['progress']=_0x289967,_0x30eb89[_0x2c7be1(0x12b)]=_0x857157,_0x30eb89;}catch(_0x5b9d42){logger[_0x2c7be1(0xbc)]('분석\x20상태\x20조회\x20실'+'패:',_0x5b9d42);throw _0x5b9d42;}}async[a2_0x444a9f(0xc0)+a2_0x444a9f(0xca)](_0x1ab71e){const _0x254b06=a2_0x444a9f;try{logger[_0x254b06(0xcc)](_0x254b06(0x103)+_0x1ab71e);const _0x393452=await this['sparrowSer'+_0x254b06(0x149)][_0x254b06(0xd0)+_0x254b06(0x10b)+'on'](_0x1ab71e),_0x478d29=_0x393452[_0x254b06(0x148)]?String(_0x393452[_0x254b06(0x148)])[_0x254b06(0xfc)+'e']():undefined;let _0x29c3d4;_0x478d29==='FAIL'||_0x478d29===_0x254b06(0x118)?_0x29c3d4=_0x254b06(0xee):_0x29c3d4=_0x254b06(0x142);const _0x3df4e1=_0x393452[_0x254b06(0xd2)]||_0x1ab71e;_0x3df4e1!==_0x1ab71e&&logger[_0x254b06(0xcc)](_0x254b06(0xc5)+_0x254b06(0x91)+_0x1ab71e+_0x254b06(0x137)+_0x3df4e1);logger['info'](_0x254b06(0x116)+_0x254b06(0x108)+_0x3df4e1);const _0xed4b31=await this[_0x254b06(0xea)+_0x254b06(0x149)][_0x254b06(0xa4)+_0x254b06(0x10a)+_0x254b06(0xde)](_0x3df4e1),_0xcc20dd=this[_0x254b06(0x11c)+'rabilities'](_0xed4b31),_0x4516c5=await this[_0x254b06(0xb8)][_0x254b06(0x136)+_0x254b06(0xc3)+'f'](_0xed4b31),_0xa50f74=_0x4516c5[_0x254b06(0xa5)]?_0x4516c5[_0x254b06(0x144)]:_0x254b06(0xba)+_0x254b06(0x13e);logger[_0x254b06(0xcc)](_0x254b06(0xb0)+_0x254b06(0x9d)+_0xcc20dd[_0x254b06(0x9e)]+('개\x20취약점\x20발견\x20('+_0x254b06(0xb3))+_0x3df4e1+')');const _0x8d344a={};return _0x8d344a['analysisId']=_0x3df4e1,_0x8d344a[_0x254b06(0xd8)]=_0x29c3d4,_0x8d344a['result']=_0x478d29,_0x8d344a[_0x254b06(0x11b)+'ities']=_0xcc20dd,_0x8d344a[_0x254b06(0xcd)+_0x254b06(0x98)]=_0xa50f74,_0x8d344a;}catch(_0x15e576){logger[_0x254b06(0xbc)](_0x254b06(0xf8)+'패:',_0x15e576);throw _0x15e576;}}async[a2_0x444a9f(0x138)+a2_0x444a9f(0x13a)+a2_0x444a9f(0xaf)](_0x492ff3,_0x597902){const _0x421a6b=a2_0x444a9f;try{logger[_0x421a6b(0xcc)](_0x421a6b(0x92)+_0x421a6b(0xb5)+_0x492ff3);const _0x5c6390=await this[_0x421a6b(0xea)+_0x421a6b(0x149)]['pollAnalys'+_0x421a6b(0x10b)+'on'](_0x492ff3),_0x56965b=_0x5c6390[_0x421a6b(0x148)]?String(_0x5c6390['result'])[_0x421a6b(0xfc)+'e']():undefined;if(_0x56965b&&_0x56965b!==_0x421a6b(0x104))throw new Error(_0x421a6b(0xd6)+_0x421a6b(0x14a)+_0x421a6b(0xbf)+_0x56965b+(_0x421a6b(0xa6)+_0x421a6b(0xe5)+'코드를\x20생성할\x20수\x20'+_0x421a6b(0x12f)));const _0x28c0e2=_0x5c6390[_0x421a6b(0xd2)]||_0x492ff3;logger[_0x421a6b(0xcc)](_0x421a6b(0x116)+'\x20시작:\x20'+_0x28c0e2);const _0x5a7856=await this[_0x421a6b(0xea)+'vice']['downloadAn'+_0x421a6b(0x10a)+'lts'](_0x28c0e2),_0x41908f=this[_0x421a6b(0x11c)+_0x421a6b(0xab)](_0x5a7856),_0x8a196b=await this[_0x421a6b(0xb8)]['generateSe'+_0x421a6b(0xec)](_0x597902,_0x41908f),_0xdab213=_0x8a196b['success']?_0x8a196b['content']:_0x597902,_0x30b1d2=await this[_0x421a6b(0xb8)][_0x421a6b(0x138)+_0x421a6b(0xc8)+_0x421a6b(0x98)](_0x597902,_0xdab213),_0x38e8d9=_0x30b1d2[_0x421a6b(0xa5)]?_0x30b1d2['content']:_0x421a6b(0x126)+'\x20생성에\x20실패했습니'+'다.',_0x35c8a2=DiffUtil[_0x421a6b(0xa9)+_0x421a6b(0x109)](_0x597902,_0xdab213,_0x421a6b(0x121));logger[_0x421a6b(0xcc)](_0x421a6b(0x92)+'완료\x20(분석\x20ID:'+'\x20'+_0x28c0e2+')');const _0x1d0ab1={};return _0x1d0ab1[_0x421a6b(0x102)]=_0xdab213,_0x1d0ab1[_0x421a6b(0x102)+_0x421a6b(0x124)]=_0x38e8d9,_0x1d0ab1[_0x421a6b(0xf6)]=_0x35c8a2,_0x1d0ab1;}catch(_0x32c8b5){logger[_0x421a6b(0xbc)](_0x421a6b(0x92)+_0x421a6b(0xb1),_0x32c8b5);throw _0x32c8b5;}}[a2_0x444a9f(0x11c)+a2_0x444a9f(0xab)](_0x471861){const _0xbc675e=a2_0x444a9f,_0x474d5e=[];for(const _0x50b855 of _0x471861){if(Array[_0xbc675e(0x9c)](_0x50b855))for(const _0x5c2227 of _0x50b855){_0x5c2227['checkerKey']&&_0x474d5e[_0xbc675e(0x131)]({'checkerKey':_0x5c2227['checkerKey']||_0xbc675e(0xfa),'description':this[_0xbc675e(0x105)+_0xbc675e(0xd9)+'scription'](_0x5c2227),'severity':this[_0xbc675e(0x130)+_0xbc675e(0xbb)](_0x5c2227[_0xbc675e(0x12d)]),'lineNumber':_0x5c2227[_0xbc675e(0xbe)],'filePath':_0x5c2227[_0xbc675e(0xe2)]&&_0x5c2227[_0xbc675e(0xe2)]['length']>0x0?_0x5c2227['filePaths'][0x0]:undefined});}else{if(_0x50b855['vulnerabil'+_0xbc675e(0xc4)]&&Array['isArray'](_0x50b855['vulnerabil'+_0xbc675e(0xc4)]))for(const _0x1db5dd of _0x50b855[_0xbc675e(0x11b)+_0xbc675e(0xc4)]){_0x474d5e[_0xbc675e(0x131)]({'checkerKey':_0x1db5dd[_0xbc675e(0xdf)]||_0xbc675e(0xfa),'description':_0x1db5dd[_0xbc675e(0xfd)+'n']||_0x1db5dd[_0xbc675e(0x12b)]||_0xbc675e(0x99),'severity':this[_0xbc675e(0x130)+'y'](_0x1db5dd[_0xbc675e(0x111)]),'lineNumber':_0x1db5dd[_0xbc675e(0xbe)],'filePath':_0x1db5dd['filePath']});}}}return _0x474d5e;}[a2_0x444a9f(0x105)+'rabilityDe'+a2_0x444a9f(0x112)](_0x4fce51){const _0x1af3fa=a2_0x444a9f,_0x43e66e=[];_0x4fce51[_0x1af3fa(0xdf)]&&_0x43e66e[_0x1af3fa(0x131)](_0x1af3fa(0x10c)+_0x4fce51[_0x1af3fa(0xdf)]);_0x4fce51['method']&&_0x43e66e['push']('Method:\x20'+_0x4fce51[_0x1af3fa(0xd7)]);_0x4fce51[_0x1af3fa(0xe2)]&&_0x4fce51['filePaths'][_0x1af3fa(0x9e)]>0x0&&_0x43e66e[_0x1af3fa(0x131)](_0x1af3fa(0x135)+_0x4fce51[_0x1af3fa(0xe2)][0x0]);_0x4fce51['lineNumber']&&_0x43e66e['push'](_0x1af3fa(0x143)+_0x4fce51[_0x1af3fa(0xbe)]);_0x4fce51[_0x1af3fa(0x12d)]&&_0x43e66e[_0x1af3fa(0x131)](_0x1af3fa(0x113)+':\x20'+_0x4fce51[_0x1af3fa(0x12d)]);if(_0x4fce51[_0x1af3fa(0xc7)]&&Array[_0x1af3fa(0x9c)](_0x4fce51[_0x1af3fa(0xc7)])){const _0x12d5c4=[];for(const _0x2d22ea of _0x4fce51[_0x1af3fa(0xc7)]){if(_0x2d22ea['eventMsgs']&&Array[_0x1af3fa(0x9c)](_0x2d22ea['eventMsgs']))for(const _0x898efe of _0x2d22ea[_0x1af3fa(0xd5)]){if(_0x898efe['messages']&&Array[_0x1af3fa(0x9c)](_0x898efe[_0x1af3fa(0x146)]))for(const _0x589167 of _0x898efe['messages']){_0x589167[_0x1af3fa(0x12b)]&&_0x12d5c4[_0x1af3fa(0x131)](_0x589167[_0x1af3fa(0x12b)]);}}}_0x12d5c4[_0x1af3fa(0x9e)]>0x0&&_0x43e66e[_0x1af3fa(0x131)]('Details:\x20'+_0x12d5c4[_0x1af3fa(0x127)](';\x20'));}return _0x43e66e[_0x1af3fa(0x9e)]>0x0?_0x43e66e[_0x1af3fa(0x127)](',\x20'):_0x1af3fa(0xf3)+_0x1af3fa(0x133);}[a2_0x444a9f(0x130)+'yFromRisk'](_0x1a7b4b){const _0x1e29a2=a2_0x444a9f,_0x565f6b=typeof _0x1a7b4b===_0x1e29a2(0xb7)?parseInt(_0x1a7b4b):_0x1a7b4b;if(_0x565f6b<=0x2)return _0x1e29a2(0xa1);else return _0x565f6b===0x3?'MEDIUM':_0x1e29a2(0x140);}async['analyzeMul'+'tipleFiles'+a2_0x444a9f(0xf1)](_0x36f050){const _0x322ec9=a2_0x444a9f,_0x3f85b5={};_0x3f85b5[_0x322ec9(0xb6)]='다중\x20파일\x20보안\x20분'+_0x322ec9(0xda);const _0x4cd938=_0x3f85b5;try{if(_0x322ec9(0xd4)!=='pzrxr'){if(_0x5ca14a){const _0x18ef83=_0xab8ded[_0x322ec9(0x94)](_0xcb3224,arguments);return _0x41ee37=null,_0x18ef83;}}else{logger[_0x322ec9(0xcc)](_0x322ec9(0xbd)+_0x322ec9(0x122)+_0x36f050[_0x322ec9(0xdb)][_0x322ec9(0x9e)]+_0x322ec9(0xff));if(!_0x36f050[_0x322ec9(0xdb)]||_0x36f050[_0x322ec9(0xdb)]['length']===0x0)throw new Error('분석할\x20파일이\x20없습'+_0x322ec9(0x133));const _0x57e724=await this[_0x322ec9(0xa8)][_0x322ec9(0x147)+'ipleFiles'](_0x36f050[_0x322ec9(0xdb)],_0x36f050[_0x322ec9(0x141)+'e']);if(!_0x57e724['success'])throw new Error(_0x322ec9(0xe7)+'\x20'+_0x57e724[_0x322ec9(0xbc)]);const _0x3d691f=_0x36f050[_0x322ec9(0xdb)][0x0]?.[_0x322ec9(0x134)]||'input.zip',_0x3b3110={};_0x3b3110['fileName']=_0x36f050[_0x322ec9(0x141)+'e']||_0x3d691f,_0x3b3110[_0x322ec9(0x115)+'t']='',_0x3b3110['s3Key']=_0x57e724[_0x322ec9(0x107)];const _0x1910e5=_0x3b3110,_0x57f097=await this['sparrowSer'+_0x322ec9(0x149)][_0x322ec9(0xe4)+_0x322ec9(0x120)](_0x1910e5);logger[_0x322ec9(0xcc)](_0x322ec9(0x10e)+'청\x20완료:\x20'+_0x57f097[_0x322ec9(0x97)]);const _0x1e2ce8={};return _0x1e2ce8[_0x322ec9(0xd2)]=_0x57f097[_0x322ec9(0xd2)]||_0x57f097[_0x322ec9(0x97)],_0x1e2ce8[_0x322ec9(0xd8)]=_0x57f097[_0x322ec9(0xd8)],_0x1e2ce8;}}catch(_0xcd04a1){logger['error'](_0x4cd938[_0x322ec9(0xb6)],_0xcd04a1);throw _0xcd04a1;}}async[a2_0x444a9f(0xae)+a2_0x444a9f(0xa0)+'FromPaths'](_0x1ee7a3,_0x1b626c){const _0x3ef745=a2_0x444a9f;try{logger['info'](_0x3ef745(0xe6)+_0x3ef745(0x12e)+_0x3ef745(0x108)+_0x1ee7a3[_0x3ef745(0x9e)]+_0x3ef745(0x9a));if(!_0x1ee7a3||_0x1ee7a3[_0x3ef745(0x9e)]===0x0)throw new Error(_0x3ef745(0xa7)+'\x20없습니다.');const _0x419fbf=await this['s3Service']['uploadFile'+_0x3ef745(0x129)](_0x1ee7a3,_0x1b626c);if(!_0x419fbf[_0x3ef745(0xa5)])throw new Error(_0x3ef745(0xe7)+'\x20'+_0x419fbf['error']);const _0x71ce5b=a2_0x2c6260[_0x3ef745(0x11d)](_0x1ee7a3[0x0])||_0x3ef745(0x93),_0x9b664a={};_0x9b664a[_0x3ef745(0x134)]=_0x1b626c||_0x71ce5b,_0x9b664a[_0x3ef745(0x115)+'t']='',_0x9b664a['s3Key']=_0x419fbf['key'];const _0x2d591a=_0x9b664a,_0x2d3057=await this['sparrowSer'+_0x3ef745(0x149)][_0x3ef745(0xe4)+_0x3ef745(0x120)](_0x2d591a);logger[_0x3ef745(0xcc)]('파일\x20경로\x20기반\x20분'+_0x3ef745(0xcf)+_0x2d3057[_0x3ef745(0x97)]);const _0x3a40cb={};return _0x3a40cb['analysisId']=_0x2d3057[_0x3ef745(0xd2)]||_0x2d3057[_0x3ef745(0x97)],_0x3a40cb['status']=_0x2d3057['status'],_0x3a40cb;}catch(_0x56fefd){logger[_0x3ef745(0xbc)](_0x3ef745(0x139)+_0x3ef745(0x145)+':',_0x56fefd);throw _0x56fefd;}}async['analyzeZip'+a2_0x444a9f(0x117)](_0x5e6b42,_0x2193ab){const _0x518181=a2_0x444a9f;try{logger[_0x518181(0xcc)](_0x518181(0x10d)+_0x518181(0xe1)+_0x5e6b42);if(!_0x5e6b42)throw new Error(_0x518181(0xce)+_0x518181(0x95)+'다.');const _0x5ed0d7=await this['s3Service']['uploadZipF'+_0x518181(0xe8)](_0x5e6b42);if(!_0x5ed0d7[_0x518181(0xa5)])throw new Error(_0x518181(0xe9)+_0x518181(0x132)+_0x5ed0d7[_0x518181(0xbc)]);const _0x41bdb1=_0x2193ab||a2_0x2c6260['basename'](_0x5e6b42)||_0x518181(0x93),_0x54dd06={};_0x54dd06['fileName']=_0x41bdb1,_0x54dd06['fileConten'+'t']='',_0x54dd06[_0x518181(0xb4)]=_0x5ed0d7[_0x518181(0x107)];const _0x3a1905=_0x54dd06,_0x189974=await this[_0x518181(0xea)+_0x518181(0x149)][_0x518181(0xe4)+'lysis'](_0x3a1905);logger[_0x518181(0xcc)](_0x518181(0x10d)+'분석\x20요청\x20완료:\x20'+_0x189974[_0x518181(0x97)]);const _0x193432={};return _0x193432[_0x518181(0xd2)]=_0x189974['analysisId']||_0x189974[_0x518181(0x97)],_0x193432[_0x518181(0xd8)]=_0x189974[_0x518181(0xd8)],_0x193432;}catch(_0x520884){logger['error'](_0x518181(0x10d)+'보안\x20분석\x20요청\x20실'+'패:',_0x520884);throw _0x520884;}}async[a2_0x444a9f(0x13c)+a2_0x444a9f(0xdd)](_0x393d21,_0x34163e){const _0x3ba51f=a2_0x444a9f,_0x3e7c30={};_0x3e7c30['CccID']='폴더\x20경로가\x20제공되'+_0x3ba51f(0x12c);const _0x6db4d0=_0x3e7c30;try{logger[_0x3ba51f(0xcc)](_0x3ba51f(0x96)+_0x3ba51f(0x122)+_0x393d21);if(!_0x393d21)throw new Error(_0x6db4d0['CccID']);const _0x3b1303=await this[_0x3ba51f(0xa8)][_0x3ba51f(0xf2)+_0x3ba51f(0xa3)](_0x393d21,_0x34163e);if(!_0x3b1303[_0x3ba51f(0xa5)])throw new Error('폴더\x20압축\x20및\x20업로'+_0x3ba51f(0xd1)+_0x3b1303[_0x3ba51f(0xbc)]);const _0x24cfe7=_0x34163e||a2_0x2c6260[_0x3ba51f(0x11d)](_0x393d21)||'folder.zip',_0x455218={};_0x455218[_0x3ba51f(0x134)]=_0x24cfe7,_0x455218[_0x3ba51f(0x115)+'t']='',_0x455218[_0x3ba51f(0xb4)]=_0x3b1303[_0x3ba51f(0x107)];const _0xdbabec=_0x455218,_0x48e8d9=await this[_0x3ba51f(0xea)+_0x3ba51f(0x149)][_0x3ba51f(0xe4)+_0x3ba51f(0x120)](_0xdbabec);logger['info'](_0x3ba51f(0xfb)+'청\x20완료:\x20'+_0x48e8d9['requestId']);const _0x4a2e50={};return _0x4a2e50[_0x3ba51f(0xd2)]=_0x48e8d9[_0x3ba51f(0xd2)]||_0x48e8d9[_0x3ba51f(0x97)],_0x4a2e50['status']=_0x48e8d9[_0x3ba51f(0xd8)],_0x4a2e50;}catch(_0x3a3ec1){logger[_0x3ba51f(0xbc)](_0x3ba51f(0x96)+_0x3ba51f(0xda),_0x3a3ec1);throw _0x3a3ec1;}}[a2_0x444a9f(0x130)+'y'](_0x468774){const _0xb0c921=a2_0x444a9f,_0x5f3f55={};_0x5f3f55[_0xb0c921(0xa1)]=_0xb0c921(0xa1),_0x5f3f55[_0xb0c921(0xed)]='HIGH',_0x5f3f55[_0xb0c921(0xb2)]=_0xb0c921(0xb2),_0x5f3f55['LOW']='LOW',_0x5f3f55['INFO']=_0xb0c921(0x140);const _0x3933af=_0x5f3f55;return _0x3933af[_0x468774?.['toUpperCas'+'e']()]||_0xb0c921(0xb2);}}
@@ -1 +1 @@
1
- const a3_0x5699e9=a3_0x128d;(function(_0x1e2955,_0x29ff65){const _0x1d2f6b=a3_0x128d,_0x3e00c9=_0x1e2955();while(!![]){try{const _0x5b2c54=-parseInt(_0x1d2f6b(0x226))/0x1*(-parseInt(_0x1d2f6b(0x1fc))/0x2)+-parseInt(_0x1d2f6b(0x23c))/0x3*(parseInt(_0x1d2f6b(0x224))/0x4)+parseInt(_0x1d2f6b(0x270))/0x5*(-parseInt(_0x1d2f6b(0x271))/0x6)+-parseInt(_0x1d2f6b(0x1f7))/0x7*(-parseInt(_0x1d2f6b(0x1ec))/0x8)+-parseInt(_0x1d2f6b(0x262))/0x9+parseInt(_0x1d2f6b(0x1e1))/0xa*(parseInt(_0x1d2f6b(0x1fe))/0xb)+parseInt(_0x1d2f6b(0x229))/0xc*(parseInt(_0x1d2f6b(0x264))/0xd);if(_0x5b2c54===_0x29ff65)break;else _0x3e00c9['push'](_0x3e00c9['shift']());}catch(_0x48c297){_0x3e00c9['push'](_0x3e00c9['shift']());}}}(a3_0x1582,0x1b481));const a3_0x1d5e57=(function(){let _0x2e9326=!![];return function(_0x482e39,_0x4bc46f){const _0x7d87cb=_0x2e9326?function(){const _0x2de3fa=a3_0x128d;if(_0x4bc46f){const _0xc8bc6e=_0x4bc46f[_0x2de3fa(0x259)](_0x482e39,arguments);return _0x4bc46f=null,_0xc8bc6e;}}:function(){};return _0x2e9326=![],_0x7d87cb;};}()),a3_0x195e4c=a3_0x1d5e57(this,function(){const _0x1ccede=a3_0x128d;return a3_0x195e4c[_0x1ccede(0x20a)]()['search']('(((.+)+)+)'+'+$')[_0x1ccede(0x20a)]()[_0x1ccede(0x208)+'r'](a3_0x195e4c)[_0x1ccede(0x201)](_0x1ccede(0x1ed)+'+$');});function a3_0x128d(_0x2cbb9d,_0x2a9f1b){_0x2cbb9d=_0x2cbb9d-0x1dd;const _0x56517f=a3_0x1582();let _0x195e4c=_0x56517f[_0x2cbb9d];return _0x195e4c;}a3_0x195e4c();function a3_0x1582(){const _0x29c759=['improvemen','success','ements\x0a\x0aPl','ude:\x0a1.\x20Ma','ecure\x20code','message','ents\x0a\x0aPlea','ollowing\x20o','\x0a3.\x20Applie','\x0a```\x0a\x0aThe\x20','alysisBrie','re\x20code\x20ba','cureCodeBr','\x20briefing.','ately\x20200-','generate\x20a','ments\x0a2.\x20F','jor\x20securi','content','\x0a1.\x20Number','apply','assessment','nerabiliti','r.\x20Please\x20','error','\x20code\x20and\x20','ty\x20improve','ure\x20code:\x0a','ava\x0a','1607418dTbZJo','tion\x20by\x20se','209833WJgJUV','status','n\x20the\x20same','check\x20if\x20t','Please\x20wri','r\x20briefing','model','ief','d\x20include:','code','\x0a```\x0a\x0aSecu','cure\x20code\x20','12855JzGNmy','282ALPYkl','ing\x20in\x20Eng','erate\x20secu','nect\x20to\x20Ol','ETIMEDOUT','hould\x20incl','\x0a\x0aThe\x20brie','overed\x20Vul','re\x20Code:\x0a`','\x0aOriginal\x20','pply\x20secur','LM\x20analysi','te\x20a\x20simpl','\x20in\x20Englis','\x20briefing:','\x20all\x20secur','ECONNREFUS','ate','iginal\x20Cod','ription\x20of','Ollama\x20API','nalysis\x20br','ntrik','Network\x20er','ity\x20analys','19730Fcqbtf','n\x20only\x20the','te\x20a\x20brief','Unknown\x20er','wing\x20secur','\x20-\x20','generateSe','lish\x20compa','es:\x0a','stringify','ollama','88abAadE','(((.+)+)+)','that\x20need\x20','e:\x0a```java','\x20following','briefing\x20s','tion\x20timeo','d\x20security','nts\x20to\x20exp','ror','\x20security\x20','87773NMvMEA','ities:\x0a\x0aOr','generateAn','\x20code\x0a3.\x20A','/api/gener','266VafCPN','timeout','1199NtepyQ','ity\x20best\x20p','lity\x20as\x20th','search','es\x0a3.\x20Over','discovered','300\x20charac','he\x20server\x20','classifica','Code:\x0a```j','constructo','ver\x20connec','toString','e\x20and\x20clea','generate\x20L','\x20best\x20prac','is\x20running','data','isAxiosErr','HdKCX','generate\x20s','s\x20briefing','ty\x20status\x20','vulnerabil','\x20Add\x20comme','all\x20securi','enerate\x20se','riginal\x20co','Failed\x20to\x20','ractices\x0a4','Ollama\x20ser','00-400\x20cha','e\x20original','briefing\x20i','racters.','ease\x20retur','de\x20and\x20sec','\x20error:\x20','4TnvWJE','abilities\x0a','187vHjToZ','he\x20briefin','Cannot\x20con','96ZGqqOv','2.\x20Maintai','se\x20write\x20t','ximately\x203',':\x0a\x0aAnalysi','post','y\x20improvem','found\x20and\x20','ability\x0a5.','de\x20(withou','lain\x20secur','ters.','is\x20results','s\x20Results:','verity\x0a2.\x20','lama\x20serve','ixed\x20vulne','response','Brief\x20desc','287403YygcCy','baseUrl','ditional\x20t','\x20the\x20follo','cureCode','\x20functiona','ror:\x20','h\x20based\x20on','t\x20explanat'];a3_0x1582=function(){return _0x29c759;};return a3_0x1582();}import a3_0x49e890 from'axios';import{appConfig}from'../config/appConfig.js';import{logger}from'../utils/logger.js';export class LLMService{[a3_0x5699e9(0x23d)];[a3_0x5699e9(0x26a)];constructor(){const _0x4d8f41=a3_0x5699e9;this[_0x4d8f41(0x23d)]=appConfig['ollama'][_0x4d8f41(0x23d)],this['model']=appConfig[_0x4d8f41(0x1eb)]['model'];}async[a3_0x5699e9(0x1f9)+a3_0x5699e9(0x24f)+'f'](_0x27cc6d){const _0x38452d=a3_0x5699e9;try{const _0x28807c=_0x38452d(0x268)+_0x38452d(0x27d)+_0x38452d(0x20b)+_0x38452d(0x269)+_0x38452d(0x27e)+_0x38452d(0x243)+_0x38452d(0x23f)+_0x38452d(0x1e5)+_0x38452d(0x1e0)+_0x38452d(0x235)+_0x38452d(0x22d)+_0x38452d(0x236)+'\x0a'+JSON[_0x38452d(0x1ea)](_0x27cc6d,null,0x2)+(_0x38452d(0x277)+'fing\x20shoul'+_0x38452d(0x26c)+_0x38452d(0x258)+'\x20of\x20vulner'+'abilities\x20'+_0x38452d(0x230)+_0x38452d(0x206)+_0x38452d(0x263)+_0x38452d(0x237)+_0x38452d(0x23b)+_0x38452d(0x284)+'\x20major\x20vul'+'nerabiliti'+_0x38452d(0x202)+_0x38452d(0x217)+_0x38452d(0x214)+_0x38452d(0x25a)+'\x0a4.\x20Areas\x20'+_0x38452d(0x1ee)+_0x38452d(0x245)+'t\x0a\x0aPlease\x20'+'write\x20the\x20'+_0x38452d(0x21f)+'n\x20approxim'+_0x38452d(0x253)+_0x38452d(0x204)+_0x38452d(0x234)),_0x2fdff8={};_0x2fdff8[_0x38452d(0x1fd)]=0x493e0;const _0x3f7353=await a3_0x49e890['post'](this[_0x38452d(0x23d)]+(_0x38452d(0x1fb)+_0x38452d(0x282)),{'model':this[_0x38452d(0x26a)],'prompt':_0x28807c,'stream':![]},_0x2fdff8),_0x5d0da9={};return _0x5d0da9[_0x38452d(0x257)]=_0x3f7353[_0x38452d(0x20f)][_0x38452d(0x23a)],_0x5d0da9['success']=!![],_0x5d0da9;}catch(_0x2bfe0f){logger[_0x38452d(0x25d)](_0x38452d(0x21a)+_0x38452d(0x20c)+_0x38452d(0x27c)+_0x38452d(0x213)+':',_0x2bfe0f);let _0x360bd9=_0x38452d(0x1e4)+'ror';if(a3_0x49e890[_0x38452d(0x210)+'or'](_0x2bfe0f)){if(_0x2bfe0f['code']===_0x38452d(0x281)+'ED')_0x360bd9=_0x38452d(0x228)+_0x38452d(0x274)+_0x38452d(0x238)+_0x38452d(0x25c)+_0x38452d(0x267)+_0x38452d(0x205)+_0x38452d(0x20e)+'.';else{if(_0x2bfe0f['code']===_0x38452d(0x275))_0x360bd9=_0x38452d(0x21c)+_0x38452d(0x209)+_0x38452d(0x1f2)+'ut';else _0x2bfe0f[_0x38452d(0x23a)]?_0x360bd9=_0x38452d(0x285)+'\x20error:\x20'+_0x2bfe0f['response'][_0x38452d(0x265)]+_0x38452d(0x1e6)+JSON[_0x38452d(0x1ea)](_0x2bfe0f[_0x38452d(0x23a)][_0x38452d(0x20f)]):_0x360bd9=_0x38452d(0x1df)+_0x38452d(0x242)+_0x2bfe0f['message'];}}else _0x2bfe0f instanceof Error&&(_0x360bd9=_0x2bfe0f[_0x38452d(0x24a)]);const _0x34972a={};return _0x34972a[_0x38452d(0x257)]=_0x38452d(0x21a)+_0x38452d(0x254)+_0x38452d(0x1dd)+'iefing.',_0x34972a['success']=![],_0x34972a['error']=_0x360bd9,_0x34972a;}}async[a3_0x5699e9(0x1e7)+a3_0x5699e9(0x240)](_0x608813,_0x9ec551){const _0x812f57=a3_0x5699e9,_0x3bd5b8={};_0x3bd5b8[_0x812f57(0x211)]=function(_0x157915,_0x43aeb3){return _0x157915===_0x43aeb3;},_0x3bd5b8[_0x812f57(0x1de)]='ECONNREFUS'+'ED';const _0x4c87c0=_0x3bd5b8;try{const _0xbdd0de='Please\x20gen'+_0x812f57(0x273)+_0x812f57(0x250)+'sed\x20on\x20the'+_0x812f57(0x1f0)+_0x812f57(0x25e)+_0x812f57(0x203)+_0x812f57(0x1f6)+_0x812f57(0x215)+_0x812f57(0x1f8)+_0x812f57(0x283)+_0x812f57(0x1ef)+'\x0a'+_0x608813+('\x0a```\x0a\x0aDisc'+_0x812f57(0x278)+_0x812f57(0x25b)+_0x812f57(0x1e9))+JSON[_0x812f57(0x1ea)](_0x9ec551,null,0x2)+('\x0a\x0aRequirem'+'ents:\x0a1.\x20G'+_0x812f57(0x218)+_0x812f57(0x26f)+'that\x20fixes'+_0x812f57(0x280)+'ity\x20vulner'+_0x812f57(0x225)+_0x812f57(0x22a)+_0x812f57(0x266)+_0x812f57(0x241)+_0x812f57(0x200)+_0x812f57(0x21e)+_0x812f57(0x1fa)+_0x812f57(0x27b)+_0x812f57(0x1ff)+_0x812f57(0x21b)+'.\x20Maintain'+'\x20code\x20read'+_0x812f57(0x231)+_0x812f57(0x216)+_0x812f57(0x1f4)+_0x812f57(0x233)+'ity\x20improv'+_0x812f57(0x247)+_0x812f57(0x221)+_0x812f57(0x1e2)+'\x20secure\x20co'+_0x812f57(0x232)+_0x812f57(0x244)+'ions\x20or\x20ad'+_0x812f57(0x23e)+'ext):'),_0x27b87a={};_0x27b87a[_0x812f57(0x1fd)]=0x493e0;const _0x444f93=await a3_0x49e890[_0x812f57(0x22e)](this[_0x812f57(0x23d)]+(_0x812f57(0x1fb)+_0x812f57(0x282)),{'model':this[_0x812f57(0x26a)],'prompt':_0xbdd0de,'stream':![]},_0x27b87a),_0x435da0={};return _0x435da0[_0x812f57(0x257)]=_0x444f93[_0x812f57(0x20f)][_0x812f57(0x23a)],_0x435da0[_0x812f57(0x246)]=!![],_0x435da0;}catch(_0x1d9154){logger[_0x812f57(0x25d)](_0x812f57(0x21a)+_0x812f57(0x212)+_0x812f57(0x249)+':',_0x1d9154);let _0x4cdf9e='Unknown\x20er'+_0x812f57(0x1f5);if(a3_0x49e890[_0x812f57(0x210)+'or'](_0x1d9154)){if(_0x4c87c0[_0x812f57(0x211)](_0x1d9154[_0x812f57(0x26d)],_0x4c87c0[_0x812f57(0x1de)]))_0x4cdf9e=_0x812f57(0x228)+_0x812f57(0x274)+_0x812f57(0x238)+_0x812f57(0x25c)+'check\x20if\x20t'+_0x812f57(0x205)+_0x812f57(0x20e)+'.';else{if(_0x1d9154[_0x812f57(0x26d)]===_0x812f57(0x275))_0x4cdf9e='Ollama\x20ser'+'ver\x20connec'+_0x812f57(0x1f2)+'ut';else _0x1d9154[_0x812f57(0x23a)]?_0x4cdf9e=_0x812f57(0x285)+_0x812f57(0x223)+_0x1d9154[_0x812f57(0x23a)][_0x812f57(0x265)]+_0x812f57(0x1e6)+JSON[_0x812f57(0x1ea)](_0x1d9154[_0x812f57(0x23a)]['data']):_0x4cdf9e=_0x812f57(0x1df)+_0x812f57(0x242)+_0x1d9154[_0x812f57(0x24a)];}}else _0x1d9154 instanceof Error&&(_0x4cdf9e=_0x1d9154['message']);const _0x37bb49={};return _0x37bb49[_0x812f57(0x257)]=_0x608813,_0x37bb49[_0x812f57(0x246)]=![],_0x37bb49['error']=_0x4cdf9e,_0x37bb49;}}async['generateSe'+a3_0x5699e9(0x251)+a3_0x5699e9(0x26b)](_0x59f1d9,_0xe605da){const _0x38153b=a3_0x5699e9;try{const _0x5dc506=_0x38153b(0x268)+_0x38153b(0x1e3)+_0x38153b(0x272)+_0x38153b(0x1e8)+'ring\x20the\x20f'+_0x38153b(0x24c)+_0x38153b(0x219)+_0x38153b(0x222)+_0x38153b(0x260)+_0x38153b(0x27a)+_0x38153b(0x207)+_0x38153b(0x261)+_0x59f1d9+(_0x38153b(0x26e)+_0x38153b(0x279)+'``java\x0a')+_0xe605da+(_0x38153b(0x24e)+_0x38153b(0x1f1)+_0x38153b(0x276)+_0x38153b(0x248)+_0x38153b(0x256)+_0x38153b(0x25f)+_0x38153b(0x255)+_0x38153b(0x239)+'rabilities'+_0x38153b(0x24d)+_0x38153b(0x1f3)+_0x38153b(0x20d)+'tices\x0a4.\x20C'+'ode\x20qualit'+_0x38153b(0x22f)+_0x38153b(0x24b)+_0x38153b(0x22b)+_0x38153b(0x227)+'g\x20in\x20appro'+_0x38153b(0x22c)+_0x38153b(0x21d)+_0x38153b(0x220)),_0x27627e={};_0x27627e[_0x38153b(0x1fd)]=0x493e0;const _0xc7e6dc=await a3_0x49e890[_0x38153b(0x22e)](this['baseUrl']+(_0x38153b(0x1fb)+'ate'),{'model':this[_0x38153b(0x26a)],'prompt':_0x5dc506,'stream':![]},_0x27627e),_0x1699e9={};return _0x1699e9[_0x38153b(0x257)]=_0xc7e6dc['data'][_0x38153b(0x23a)],_0x1699e9[_0x38153b(0x246)]=!![],_0x1699e9;}catch(_0x38b372){logger[_0x38153b(0x25d)](_0x38153b(0x21a)+_0x38153b(0x212)+'ecure\x20code'+_0x38153b(0x27f),_0x38b372);let _0x4227da='Unknown\x20er'+'ror';if(a3_0x49e890[_0x38153b(0x210)+'or'](_0x38b372)){if(_0x38b372['code']===_0x38153b(0x281)+'ED')_0x4227da=_0x38153b(0x228)+_0x38153b(0x274)+_0x38153b(0x238)+_0x38153b(0x25c)+_0x38153b(0x267)+_0x38153b(0x205)+_0x38153b(0x20e)+'.';else{if(_0x38b372[_0x38153b(0x26d)]===_0x38153b(0x275))_0x4227da='Ollama\x20ser'+_0x38153b(0x209)+'tion\x20timeo'+'ut';else _0x38b372[_0x38153b(0x23a)]?_0x4227da=_0x38153b(0x285)+_0x38153b(0x223)+_0x38b372[_0x38153b(0x23a)][_0x38153b(0x265)]+'\x20-\x20'+JSON[_0x38153b(0x1ea)](_0x38b372[_0x38153b(0x23a)][_0x38153b(0x20f)]):_0x4227da='Network\x20er'+_0x38153b(0x242)+_0x38b372[_0x38153b(0x24a)];}}else _0x38b372 instanceof Error&&(_0x4227da=_0x38b372[_0x38153b(0x24a)]);const _0x3da421={};return _0x3da421[_0x38153b(0x257)]=_0x38153b(0x21a)+'generate\x20s'+_0x38153b(0x249)+_0x38153b(0x252),_0x3da421[_0x38153b(0x246)]=![],_0x3da421[_0x38153b(0x25d)]=_0x4227da,_0x3da421;}}}
1
+ function a3_0x34a3(){const _0x688dfc=['h\x20based\x20on','response','cureCode','\x20code\x0a3.\x20A','ror','code','188698NOEdoI','tion\x20timeo','racters.','Cannot\x20con','t\x20explanat','r\x20briefing','ext):','ollama','message','ty\x20status\x20','Failed\x20to\x20','iefing.','1183036BREaok','n\x20approxim','(((.+)+)+)','\x20briefing.','ETIMEDOUT','is\x20results','ude:\x0a1.\x20Ma','stringify','ava\x0a','ments\x0a2.\x20F','e\x20and\x20clea','cureCodeBr','generate\x20a','ity\x20improv','ver\x20connec','ollowing\x20o','ure\x20code:\x0a','pply\x20secur','t\x0a\x0aPlease\x20','discovered','abilities\x20','r.\x20Please\x20','nts\x20to\x20exp','lity\x20as\x20th','enerate\x20se','Unknown\x20er','toString','18zNuCzL','Please\x20gen','\x0aOriginal\x20','lain\x20secur','constructo','s\x20briefing','data','iginal\x20Cod','n\x20the\x20same','apply','ximately\x203','jAvvW','d\x20include:','ing\x20in\x20Eng','\x20-\x20','timeout','generateSe','g\x20in\x20appro','\x20in\x20Englis','s\x20Results:','hould\x20incl','3ZHAvcQ','ECONNREFUS','rabilities','model','he\x20server\x20','\x20major\x20vul','\x0a3.\x20Applie','cure\x20code\x20','8468919OUttRZ','ate','ring\x20the\x20f','\x0a1.\x20Number','\x0a```\x0a\x0aSecu','300\x20charac','briefing\x20i','error','LM\x20analysi','post','search','ity\x20analys','Ollama\x20API','he\x20briefin','ters.','\x0a\x0aThe\x20brie','ity\x20best\x20p','baseUrl','\x20of\x20vulner','ability\x0a5.','lish\x20compa','Network\x20er','2993466bGFQpf','\x20security\x20','status','ode\x20qualit','nect\x20to\x20Ol','jor\x20securi','2164928jFegmM','ities:\x0a\x0aOr','ditional\x20t','ions\x20or\x20ad','that\x20need\x20','\x0a```\x0a\x0aThe\x20','success','lama\x20serve','alysisBrie','es\x0a3.\x20Over','nalysis\x20br','write\x20the\x20','ents\x0a\x0aPlea','all\x20securi','isAxiosErr','\x0a\x0aRequirem','briefing\x20s','ief','classifica','``java\x0a','Ollama\x20ser','abilities\x0a','Please\x20wri','re\x20code\x20ba','ror:\x20','content','\x20best\x20prac','osGld','2932124kncifR','check\x20if\x20t','\x20the\x20follo','ixed\x20vulne','\x20all\x20secur','wing\x20secur','ription\x20of','3568350BxeByE','y\x20improvem','is\x20running','ecure\x20code','nerabiliti','ents:\x0a1.\x20G','e\x20original','/api/gener','generateAn','.\x20Maintain',':\x0a\x0aAnalysi','2.\x20Maintai','\x20Add\x20comme','Brief\x20desc','\x20code\x20and\x20','00-400\x20cha','tices\x0a4.\x20C','n\x20only\x20the','re\x20Code:\x0a`','ately\x20200-','es:\x0a','te\x20a\x20brief','de\x20and\x20sec'];a3_0x34a3=function(){return _0x688dfc;};return a3_0x34a3();}const a3_0xdb0f56=a3_0x2aa9;(function(_0x4580b6,_0x2edb81){const _0x12a718=a3_0x2aa9,_0x4389e2=_0x4580b6();while(!![]){try{const _0x3518cf=parseInt(_0x12a718(0x22c))/0x1+-parseInt(_0x12a718(0x220))/0x2*(-parseInt(_0x12a718(0x1bc))/0x3)+parseInt(_0x12a718(0x1fc))/0x4+parseInt(_0x12a718(0x203))/0x5+parseInt(_0x12a718(0x1a7))/0x6*(-parseInt(_0x12a718(0x1da))/0x7)+parseInt(_0x12a718(0x1e0))/0x8+-parseInt(_0x12a718(0x1c4))/0x9;if(_0x3518cf===_0x2edb81)break;else _0x4389e2['push'](_0x4389e2['shift']());}catch(_0x33a2f1){_0x4389e2['push'](_0x4389e2['shift']());}}}(a3_0x34a3,0xbc2ed));function a3_0x2aa9(_0x2717ba,_0x552831){_0x2717ba=_0x2717ba-0x1a1;const _0x3b9502=a3_0x34a3();let _0x4255f3=_0x3b9502[_0x2717ba];return _0x4255f3;}const a3_0x2ef00a=(function(){let _0x4e15e2=!![];return function(_0x17f859,_0x1181e7){const _0x35d1a7=_0x4e15e2?function(){const _0x4bb912=a3_0x2aa9;if(_0x1181e7){const _0x268af4=_0x1181e7[_0x4bb912(0x1b0)](_0x17f859,arguments);return _0x1181e7=null,_0x268af4;}}:function(){};return _0x4e15e2=![],_0x35d1a7;};}()),a3_0x4255f3=a3_0x2ef00a(this,function(){const _0x1b4d93=a3_0x2aa9;return a3_0x4255f3[_0x1b4d93(0x1a6)]()[_0x1b4d93(0x1ce)](_0x1b4d93(0x22e)+'+$')[_0x1b4d93(0x1a6)]()[_0x1b4d93(0x1ab)+'r'](a3_0x4255f3)[_0x1b4d93(0x1ce)]('(((.+)+)+)'+'+$');});a3_0x4255f3();import a3_0x531c85 from'axios';import{appConfig}from'../config/appConfig.js';import{logger}from'../utils/logger.js';export class LLMService{[a3_0xdb0f56(0x1d5)];[a3_0xdb0f56(0x1bf)];constructor(){const _0x1910f0=a3_0xdb0f56;this[_0x1910f0(0x1d5)]=appConfig[_0x1910f0(0x227)][_0x1910f0(0x1d5)],this[_0x1910f0(0x1bf)]=appConfig[_0x1910f0(0x227)][_0x1910f0(0x1bf)];}async[a3_0xdb0f56(0x20b)+a3_0xdb0f56(0x1e8)+'f'](_0x277fbe){const _0x1ea0f0=a3_0xdb0f56;try{const _0x17a800=_0x1ea0f0(0x1f6)+'te\x20a\x20simpl'+_0x1ea0f0(0x236)+_0x1ea0f0(0x225)+_0x1ea0f0(0x1b9)+_0x1ea0f0(0x21a)+_0x1ea0f0(0x1fe)+_0x1ea0f0(0x201)+_0x1ea0f0(0x1cf)+_0x1ea0f0(0x231)+_0x1ea0f0(0x20d)+_0x1ea0f0(0x1ba)+'\x0a'+JSON[_0x1ea0f0(0x233)](_0x277fbe,null,0x2)+(_0x1ea0f0(0x1d3)+'fing\x20shoul'+_0x1ea0f0(0x1b3)+_0x1ea0f0(0x1c7)+_0x1ea0f0(0x1d6)+_0x1ea0f0(0x240)+'found\x20and\x20'+_0x1ea0f0(0x1f2)+'tion\x20by\x20se'+'verity\x0a2.\x20'+_0x1ea0f0(0x210)+_0x1ea0f0(0x202)+_0x1ea0f0(0x1c1)+_0x1ea0f0(0x207)+_0x1ea0f0(0x1e9)+_0x1ea0f0(0x1ed)+_0x1ea0f0(0x229)+'assessment'+'\x0a4.\x20Areas\x20'+_0x1ea0f0(0x1e4)+'improvemen'+_0x1ea0f0(0x23e)+_0x1ea0f0(0x1eb)+_0x1ea0f0(0x1ca)+_0x1ea0f0(0x22d)+_0x1ea0f0(0x216)+_0x1ea0f0(0x1c9)+_0x1ea0f0(0x1d2)),_0x5144f8={};_0x5144f8[_0x1ea0f0(0x1b6)]=0x493e0;const _0x3d1b62=await a3_0x531c85[_0x1ea0f0(0x1cd)](this['baseUrl']+(_0x1ea0f0(0x20a)+_0x1ea0f0(0x1c5)),{'model':this[_0x1ea0f0(0x1bf)],'prompt':_0x17a800,'stream':![]},_0x5144f8),_0x30e7df={};return _0x30e7df[_0x1ea0f0(0x1f9)]=_0x3d1b62[_0x1ea0f0(0x1ad)][_0x1ea0f0(0x21b)],_0x30e7df[_0x1ea0f0(0x1e6)]=!![],_0x30e7df;}catch(_0x33c88d){logger[_0x1ea0f0(0x1cb)](_0x1ea0f0(0x22a)+'generate\x20L'+_0x1ea0f0(0x1cc)+_0x1ea0f0(0x1ac)+':',_0x33c88d);let _0x3921b3='Unknown\x20er'+_0x1ea0f0(0x21e);if(a3_0x531c85[_0x1ea0f0(0x1ee)+'or'](_0x33c88d)){if(_0x33c88d[_0x1ea0f0(0x21f)]===_0x1ea0f0(0x1bd)+'ED')_0x3921b3=_0x1ea0f0(0x223)+'nect\x20to\x20Ol'+'lama\x20serve'+_0x1ea0f0(0x1a1)+_0x1ea0f0(0x1fd)+_0x1ea0f0(0x1c0)+_0x1ea0f0(0x205)+'.';else{if(_0x33c88d[_0x1ea0f0(0x21f)]==='ETIMEDOUT')_0x3921b3=_0x1ea0f0(0x1f4)+_0x1ea0f0(0x23a)+_0x1ea0f0(0x221)+'ut';else _0x33c88d[_0x1ea0f0(0x21b)]?_0x3921b3=_0x1ea0f0(0x1d0)+'\x20error:\x20'+_0x33c88d[_0x1ea0f0(0x21b)]['status']+_0x1ea0f0(0x1b5)+JSON[_0x1ea0f0(0x233)](_0x33c88d['response'][_0x1ea0f0(0x1ad)]):_0x3921b3=_0x1ea0f0(0x1d9)+_0x1ea0f0(0x1f8)+_0x33c88d[_0x1ea0f0(0x228)];}}else _0x33c88d instanceof Error&&(_0x3921b3=_0x33c88d['message']);const _0x5a40e1={};return _0x5a40e1[_0x1ea0f0(0x1f9)]='Failed\x20to\x20'+_0x1ea0f0(0x238)+_0x1ea0f0(0x1ea)+_0x1ea0f0(0x22b),_0x5a40e1[_0x1ea0f0(0x1e6)]=![],_0x5a40e1['error']=_0x3921b3,_0x5a40e1;}}async[a3_0xdb0f56(0x1b7)+a3_0xdb0f56(0x21c)](_0x148845,_0x522fc2){const _0x2fe3c2=a3_0xdb0f56,_0x59f381={};_0x59f381[_0x2fe3c2(0x1b2)]=function(_0x2d34e1,_0x37475c){return _0x2d34e1 instanceof _0x37475c;};const _0x576fd3=_0x59f381;try{const _0x44533b=_0x2fe3c2(0x1a8)+'erate\x20secu'+_0x2fe3c2(0x1f7)+'sed\x20on\x20the'+'\x20following'+_0x2fe3c2(0x211)+_0x2fe3c2(0x23f)+_0x2fe3c2(0x1db)+'vulnerabil'+_0x2fe3c2(0x1e1)+_0x2fe3c2(0x1ae)+'e:\x0a```java'+'\x0a'+_0x148845+('\x0a```\x0a\x0aDisc'+'overed\x20Vul'+_0x2fe3c2(0x207)+_0x2fe3c2(0x217))+JSON[_0x2fe3c2(0x233)](_0x522fc2,null,0x2)+(_0x2fe3c2(0x1ef)+_0x2fe3c2(0x208)+_0x2fe3c2(0x1a4)+_0x2fe3c2(0x1c3)+'that\x20fixes'+_0x2fe3c2(0x200)+'ity\x20vulner'+_0x2fe3c2(0x1f5)+_0x2fe3c2(0x20e)+_0x2fe3c2(0x1af)+'\x20functiona'+_0x2fe3c2(0x1a3)+_0x2fe3c2(0x209)+_0x2fe3c2(0x21d)+_0x2fe3c2(0x23d)+_0x2fe3c2(0x1d4)+'ractices\x0a4'+_0x2fe3c2(0x20c)+'\x20code\x20read'+_0x2fe3c2(0x1d7)+_0x2fe3c2(0x20f)+_0x2fe3c2(0x1a2)+_0x2fe3c2(0x1aa)+_0x2fe3c2(0x239)+'ements\x0a\x0aPl'+'ease\x20retur'+_0x2fe3c2(0x214)+'\x20secure\x20co'+'de\x20(withou'+_0x2fe3c2(0x224)+_0x2fe3c2(0x1e3)+_0x2fe3c2(0x1e2)+_0x2fe3c2(0x226)),_0x2d6861={};_0x2d6861[_0x2fe3c2(0x1b6)]=0x493e0;const _0x119189=await a3_0x531c85[_0x2fe3c2(0x1cd)](this['baseUrl']+(_0x2fe3c2(0x20a)+_0x2fe3c2(0x1c5)),{'model':this[_0x2fe3c2(0x1bf)],'prompt':_0x44533b,'stream':![]},_0x2d6861),_0x28df54={};return _0x28df54[_0x2fe3c2(0x1f9)]=_0x119189[_0x2fe3c2(0x1ad)]['response'],_0x28df54[_0x2fe3c2(0x1e6)]=!![],_0x28df54;}catch(_0x1fdf85){logger['error']('Failed\x20to\x20'+'generate\x20s'+_0x2fe3c2(0x206)+':',_0x1fdf85);let _0x1e2ae3=_0x2fe3c2(0x1a5)+_0x2fe3c2(0x21e);if(a3_0x531c85[_0x2fe3c2(0x1ee)+'or'](_0x1fdf85)){if(_0x1fdf85[_0x2fe3c2(0x21f)]==='ECONNREFUS'+'ED')_0x1e2ae3=_0x2fe3c2(0x223)+_0x2fe3c2(0x1de)+_0x2fe3c2(0x1e7)+'r.\x20Please\x20'+_0x2fe3c2(0x1fd)+_0x2fe3c2(0x1c0)+_0x2fe3c2(0x205)+'.';else{if(_0x1fdf85[_0x2fe3c2(0x21f)]===_0x2fe3c2(0x230))_0x1e2ae3='Ollama\x20ser'+_0x2fe3c2(0x23a)+'tion\x20timeo'+'ut';else _0x1fdf85[_0x2fe3c2(0x21b)]?_0x1e2ae3=_0x2fe3c2(0x1d0)+'\x20error:\x20'+_0x1fdf85[_0x2fe3c2(0x21b)]['status']+_0x2fe3c2(0x1b5)+JSON[_0x2fe3c2(0x233)](_0x1fdf85[_0x2fe3c2(0x21b)][_0x2fe3c2(0x1ad)]):_0x1e2ae3=_0x2fe3c2(0x1d9)+_0x2fe3c2(0x1f8)+_0x1fdf85[_0x2fe3c2(0x228)];}}else _0x576fd3[_0x2fe3c2(0x1b2)](_0x1fdf85,Error)&&(_0x1e2ae3=_0x1fdf85[_0x2fe3c2(0x228)]);const _0x2c3672={};return _0x2c3672[_0x2fe3c2(0x1f9)]=_0x148845,_0x2c3672[_0x2fe3c2(0x1e6)]=![],_0x2c3672[_0x2fe3c2(0x1cb)]=_0x1e2ae3,_0x2c3672;}}async[a3_0xdb0f56(0x1b7)+a3_0xdb0f56(0x237)+a3_0xdb0f56(0x1f1)](_0x10b5c2,_0x189da8){const _0x37be48=a3_0xdb0f56,_0x26b067={};_0x26b067['osGld']=function(_0x3c752e,_0x3d45cb){return _0x3c752e===_0x3d45cb;};const _0x5eb846=_0x26b067;try{const _0x39eeba=_0x37be48(0x1f6)+_0x37be48(0x218)+_0x37be48(0x1b4)+_0x37be48(0x1d8)+_0x37be48(0x1c6)+_0x37be48(0x23b)+'riginal\x20co'+_0x37be48(0x219)+_0x37be48(0x23c)+_0x37be48(0x1a9)+'Code:\x0a```j'+_0x37be48(0x234)+_0x10b5c2+(_0x37be48(0x1c8)+_0x37be48(0x215)+_0x37be48(0x1f3))+_0x189da8+(_0x37be48(0x1e5)+_0x37be48(0x1f0)+_0x37be48(0x1bb)+_0x37be48(0x232)+_0x37be48(0x1df)+'ty\x20improve'+_0x37be48(0x235)+_0x37be48(0x1ff)+_0x37be48(0x1be)+_0x37be48(0x1c2)+'d\x20security'+_0x37be48(0x1fa)+_0x37be48(0x213)+_0x37be48(0x1dd)+_0x37be48(0x204)+_0x37be48(0x1ec)+'se\x20write\x20t'+_0x37be48(0x1d1)+_0x37be48(0x1b8)+_0x37be48(0x1b1)+_0x37be48(0x212)+_0x37be48(0x222)),_0x20af0d={};_0x20af0d[_0x37be48(0x1b6)]=0x493e0;const _0x638eca=await a3_0x531c85['post'](this[_0x37be48(0x1d5)]+(_0x37be48(0x20a)+_0x37be48(0x1c5)),{'model':this['model'],'prompt':_0x39eeba,'stream':![]},_0x20af0d),_0x41cdfd={};return _0x41cdfd[_0x37be48(0x1f9)]=_0x638eca[_0x37be48(0x1ad)]['response'],_0x41cdfd[_0x37be48(0x1e6)]=!![],_0x41cdfd;}catch(_0x1063f9){logger[_0x37be48(0x1cb)]('Failed\x20to\x20'+'generate\x20s'+_0x37be48(0x206)+'\x20briefing:',_0x1063f9);let _0x4c7c93=_0x37be48(0x1a5)+'ror';if(a3_0x531c85['isAxiosErr'+'or'](_0x1063f9)){if(_0x1063f9[_0x37be48(0x21f)]===_0x37be48(0x1bd)+'ED')_0x4c7c93=_0x37be48(0x223)+_0x37be48(0x1de)+_0x37be48(0x1e7)+_0x37be48(0x1a1)+_0x37be48(0x1fd)+_0x37be48(0x1c0)+_0x37be48(0x205)+'.';else{if(_0x5eb846[_0x37be48(0x1fb)](_0x1063f9[_0x37be48(0x21f)],_0x37be48(0x230)))_0x4c7c93=_0x37be48(0x1f4)+_0x37be48(0x23a)+'tion\x20timeo'+'ut';else _0x1063f9[_0x37be48(0x21b)]?_0x4c7c93='Ollama\x20API'+'\x20error:\x20'+_0x1063f9[_0x37be48(0x21b)][_0x37be48(0x1dc)]+'\x20-\x20'+JSON[_0x37be48(0x233)](_0x1063f9[_0x37be48(0x21b)][_0x37be48(0x1ad)]):_0x4c7c93=_0x37be48(0x1d9)+'ror:\x20'+_0x1063f9[_0x37be48(0x228)];}}else _0x1063f9 instanceof Error&&(_0x4c7c93=_0x1063f9[_0x37be48(0x228)]);const _0x359775={};return _0x359775[_0x37be48(0x1f9)]=_0x37be48(0x22a)+'generate\x20s'+_0x37be48(0x206)+_0x37be48(0x22f),_0x359775[_0x37be48(0x1e6)]=![],_0x359775[_0x37be48(0x1cb)]=_0x4c7c93,_0x359775;}}}