a2a-memory 0.12.51 → 0.12.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/adapters/anthropic.js +1 -1
- package/dist/chunking/chunker.js +1 -1
- package/dist/claude/sync.js +1 -1
- package/dist/cli/commands/add.js +1 -1
- package/dist/cli/commands/claude-sync.js +1 -1
- package/dist/cli/commands/cleanup.js +1 -1
- package/dist/cli/commands/config.js +1 -1
- package/dist/cli/commands/contextrank.js +1 -1
- package/dist/cli/commands/edit.js +1 -1
- package/dist/cli/commands/embed.js +1 -1
- package/dist/cli/commands/export.js +1 -1
- package/dist/cli/commands/extract.js +1 -1
- package/dist/cli/commands/health.js +1 -1
- package/dist/cli/commands/list.js +1 -1
- package/dist/cli/commands/migrate-chunks.js +1 -1
- package/dist/cli/commands/migrate-file-refs.js +1 -1
- package/dist/cli/commands/proficiency.js +1 -1
- package/dist/cli/commands/review.js +1 -1
- package/dist/cli/commands/rm.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/session-extract.js +1 -1
- package/dist/cli/commands/setup-wizard.js +1 -1
- package/dist/cli/commands/setup.js +1 -1
- package/dist/cli/commands/skill.js +1 -1
- package/dist/cli/commands/status.js +1 -1
- package/dist/cli/commands/sync.js +1 -1
- package/dist/cli/commands/team.js +1 -1
- package/dist/cli/commands/usage.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/manager.js +1 -1
- package/dist/contextrank/edge-builder.d.ts +18 -0
- package/dist/contextrank/edge-builder.js +1 -1
- package/dist/contextrank/rank-builder.js +1 -1
- package/dist/contextrank/signal-builder.js +1 -1
- package/dist/db/database.js +1 -1
- package/dist/db/usage-spool.js +1 -1
- package/dist/embedding/e5-provider.js +1 -1
- package/dist/embedding/index.js +1 -1
- package/dist/embedding/local-provider.js +1 -1
- package/dist/embedding/openai-provider.js +1 -1
- package/dist/embedding/quantization.js +1 -1
- package/dist/extraction/dedup-manager.js +1 -1
- package/dist/extraction/emotion-filter.js +1 -1
- package/dist/extraction/extractor.js +1 -1
- package/dist/extraction/file-reference.js +1 -1
- package/dist/extraction/filter.js +1 -1
- package/dist/extraction/scorer.js +1 -1
- package/dist/extraction/similarity.js +1 -1
- package/dist/hooks/client-factory.js +1 -1
- package/dist/hooks/post-tool-use.js +1 -1
- package/dist/hooks/pre-compact.js +1 -1
- package/dist/hooks/session-end.js +1 -1
- package/dist/hooks/session-start.js +1 -1
- package/dist/hooks/shared.js +1 -1
- package/dist/hooks/stop.js +1 -1
- package/dist/hooks/user-prompt-submit.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messages.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lifecycle/cleanup-scheduler.js +1 -1
- package/dist/lifecycle/cleanup.js +1 -1
- package/dist/lifecycle/consolidation.js +1 -1
- package/dist/lifecycle/contradiction.js +1 -1
- package/dist/lifecycle/embedding-backfill.js +1 -1
- package/dist/lifecycle/index.js +1 -1
- package/dist/lifecycle/injection-flush.js +1 -1
- package/dist/lifecycle/quality-scorer.js +1 -1
- package/dist/lifecycle/session-extract.js +1 -1
- package/dist/lifecycle/shadow-rebuild.d.ts +34 -2
- package/dist/lifecycle/shadow-rebuild.js +1 -1
- package/dist/lifecycle/tiering.js +1 -1
- package/dist/llm/client.js +1 -1
- package/dist/llm/index.js +1 -1
- package/dist/proficiency/actr-engine.js +1 -1
- package/dist/proficiency/detection.js +1 -1
- package/dist/proficiency/index.js +1 -1
- package/dist/proficiency/tracker.js +1 -1
- package/dist/search/adaptive-router.js +1 -1
- package/dist/search/index.js +1 -1
- package/dist/search/injection-filter.js +1 -1
- package/dist/search/memoryrank-rerank.js +1 -1
- package/dist/search/ranker.js +1 -1
- package/dist/search/reranker.js +1 -1
- package/dist/session/parser.js +1 -1
- package/dist/skill/evaluator.js +1 -1
- package/dist/skill/index.js +1 -1
- package/dist/sync/client.js +1 -1
- package/dist/sync/encryption.js +1 -1
- package/dist/sync/index.js +1 -1
- package/dist/sync/queue.js +1 -1
- package/dist/sync/scheduler.js +1 -1
- package/dist/sync/synchronizer.js +1 -1
- package/dist/sync/team-synchronizer.js +1 -1
- package/dist/sync/vector-clock.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/keychain.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/dist/utils/test-isolation.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x59e0c7,_0x3b234b){function _0x559340(_0x1bf074,_0x1968a7){return _0xb05c(_0x1968a7- -0x154,_0x1bf074);}const _0x1ba3b0=_0x59e0c7();function _0x10b8f2(_0x983462,_0x2fce9e){return _0xb05c(_0x983462-0x27,_0x2fce9e);}while(!![]){try{const _0x317658=-parseInt(_0x10b8f2(0x18b,0x16e))/0x1+-parseInt(_0x559340(0x16,-0x23))/0x2+-parseInt(_0x559340(0xc9,0x93))/0x3*(-parseInt(_0x10b8f2(0x200,0x1a9))/0x4)+parseInt(_0x10b8f2(0x17f,0x1a8))/0x5+parseInt(_0x10b8f2(0x16a,0x114))/0x6+-parseInt(_0x559340(0xde,0x81))/0x7+parseInt(_0x10b8f2(0x190,0x172))/0x8*(-parseInt(_0x10b8f2(0x1bc,0x1aa))/0x9);if(_0x317658===_0x3b234b)break;else _0x1ba3b0['push'](_0x1ba3b0['shift']());}catch(_0x435428){_0x1ba3b0['push'](_0x1ba3b0['shift']());}}}(_0x2781,0x818f9));import{createInterface}from'node:readline';import{existsSync,readFileSync,writeFileSync,mkdirSync}from'node:fs';import{join}from'node:path';import{homedir}from'node:os';import{execSync}from'node:child_process';import _0x465402 from'chalk';import{ConfigManager}from'../../config/manager.js';function _0xc96f51(_0x2a2351,_0x386ae7){return _0xb05c(_0x2a2351- -0x175,_0x386ae7);}function _0x18250e(_0x37e945,_0x38f8e7){return _0xb05c(_0x37e945- -0x390,_0x38f8e7);}const CLAUDE_SETTINGS_PATH=join(homedir(),_0x18250e(-0x261,-0x25e),_0x18250e(-0x1a5,-0x1e4)+_0xc96f51(-0x13,0x7)),DEFAULT_SERVER_URL='https://a2'+_0xc96f51(0x1e,0x48)+_0xc96f51(-0x1a,0x2)+_0xc96f51(-0x40,-0x7b)+_0x18250e(-0x201,-0x22f),AGENT_NAME=_0xc96f51(-0x4a,0x6)+'e-plugin';function _0xb05c(_0x29069c,_0x33a54c){_0x29069c=_0x29069c-0x125;const _0x2781e7=_0x2781();let _0xb05c0b=_0x2781e7[_0x29069c];if(_0xb05c['lhaGlh']===undefined){var _0x25b4f4=function(_0x389691){const _0xa857ce='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3578e1='',_0x1e0004='';for(let _0x54f522=0x0,_0x2549c3,_0x10003a,_0xa4d91d=0x0;_0x10003a=_0x389691['charAt'](_0xa4d91d++);~_0x10003a&&(_0x2549c3=_0x54f522%0x4?_0x2549c3*0x40+_0x10003a:_0x10003a,_0x54f522++%0x4)?_0x3578e1+=String['fromCharCode'](0xff&_0x2549c3>>(-0x2*_0x54f522&0x6)):0x0){_0x10003a=_0xa857ce['indexOf'](_0x10003a);}for(let _0xaa3a46=0x0,_0x3f1c3a=_0x3578e1['length'];_0xaa3a46<_0x3f1c3a;_0xaa3a46++){_0x1e0004+='%'+('00'+_0x3578e1['charCodeAt'](_0xaa3a46)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1e0004);};_0xb05c['UyQHQq']=_0x25b4f4,_0xb05c['hJBRAF']={},_0xb05c['lhaGlh']=!![];}const _0xcc399b=_0x2781e7[0x0],_0x475a72=_0x29069c+_0xcc399b,_0x385f55=_0xb05c['hJBRAF'][_0x475a72];return!_0x385f55?(_0xb05c0b=_0xb05c['UyQHQq'](_0xb05c0b),_0xb05c['hJBRAF'][_0x475a72]=_0xb05c0b):_0xb05c0b=_0x385f55,_0xb05c0b;}function createRl(){function _0x3f4abd(_0x34e288,_0x59283b){return _0xc96f51(_0x34e288- -0x125,_0x59283b);}return createInterface({'input':process[_0x3f4abd(-0x11f,-0x171)],'output':process['stdout']});}function _0x2781(){const _0x58088e=['y2XHDwrLlwnVza','icbfCNjVCJOGsq','BgvUz3rO','Ag9VA3nszwDPCW','lMnSyxvKzq','ywX0Aa','mtq4mdm4mejpwKndDG','lI4U','BwvTB3j5oNvWza','icaGqtjbie1LBq','nY51Cc5YywLSDW','DxrMltG','xtOG','DgGVBg9NAw4','yxj0lcbqB3n0va','C2vYDMvYvxjS','zgLT','zc5QCW','Aw5NigfNzw50ia','EwvSBg93','CxvLC3rPB24','zsbbueKGs2v5ia','BMfTzq','yxbPs2v5','mZCZmtC3ofj1AwTzyG','kfnLC3nPB25tDa','qvbjieTLEsbZyq','qwrTAw4Grw1HAq','y2f0Aw5NlI4Uia','CMvK','y0n2zxy','Aw9UigzHAwXLza','DxrMoa','ywLSzwqGDg8GyW','yxj0lMPZ','CMvHDguGywDLBG','AcbZzxj2zxiGyq','sw52ywXPzcbvuG','uKW6ia','z2LZDgvYzwq','u2vZC2LVBKvUza','BNzHBgLKifvsta','DMfSDwvZ','4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq','CMqU','mZm5otiZnuPzA0XPBa','z0TwqLq','zg9Uzq','Dwn0Aw9UltHKmq','ywr5igv4Axn0CW','sg9VA3mGywXYzq','zxHPDa','Aw5JBhvKzxm','DhjPzxzLza','qwDLBNqGy3jLyq','C29U','AxrLBxm','nJC2ndK3DKXzELzk','yxrL','u3rLCcaXlZq6ia','icbtzxj2zxiGvq','C3vJy2vZCW','ndH0wMHbBum','z3jLzw4','yM9Sza','BMvJDgLVBG','Au9iruu','ccai','uhjLq29TCgfJDa','zgLZDa','y29TBwfUza','icbdAgvJA2LUzW','jY4UlIa','BM9Kzsa','zw50CZ9Uyw1Lpq','zxrL','DgvYzwq','BwvTB3j5oNnLyq','u3rLCcaYlZq6ia','CgfZC3DVCMq','C3rKAw4','q2fUBM90ihjLyq','C2HIB2fYzc4','ywDLBNrjza','DgvK','z2TtBgW','D3jPDgu','u2vYDMvYienVBG','C2vZu1y','C2v0rw5JB2rPBG','twjcEMC','u2vYDMvYifvsta','yxqG','wgXnt1u','ChjLlwnVBxbHyW','EMfYzcaGia','zxrYAwv2zsb0Aa','DxnLCI1WCM9TCa','zwqGyNKGC2v0Dq','iev4Axn0Aw5Nia','yxKUyxbW','sefJEuG','qwDLBNqGywXYzq','Cgf1C2u','ys1HCgKTChjVza','C2v0uMf3tw9Kzq','ndK3mdDgsNzXt0y','icbqyxnZD29Yza','C3rKB3v0','C3rLza','zurrv20','C2XPy2u','DhjHDgLVBG','BwfUDwfSBhKGzG','yw5UB3qGCMvHyW','zw1HAwW','B25Zkq','kgzYB20GB3b0Aq','C2vZC2LVBI1ZDa','BM5Ly3rPB24UlG','yxbWBgLJyxrPBW','DgLVBG','icbqBgvHC2uGCG','CgfYC2u','u3vIBwL0','vxnLCLbYB21WDa','C3rYAw5NAwz5','zMLSDgvY','DhjPBq','icbbzg1PBIbfBq','Bg9Hza','Cgf0Ag5HBwu','AxnbCNjHEq','C29Tzq','icbtzxr1CcbdBW','zgrIrK4','sgHlq2m','s2v5ig5VDcbYzq','BwvTB3j5oMnYzq','B3j5iokaLcbrDwLJ','zMfPBgvK','C2v0qxbPs2v5','BNbTihjVB3qGlq','y2GGC2vYDMvYia','CMvTB3zLtgLZDa','igzVCM1HDcdIGjqG','qvbjieTLEsbYzq','C2f2zq','C2vYDMvY','tdOG','BI9QC29U','4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq','ywrTAw5aytjHBq','igzVCIbLEgLZDa','DxjS','l2fWAs92ms9Ozq','ytjHlw1LBw9YEq','icbbDxrOzw50Aq','ug9ZDfrVB2XvCW','DgLTzw91Da','u3rLCcaZlZq6ia','4Pwu4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq','icH1C2uGls1MBW','zMLUza','lMPZB24GDxbKyq','zfrqwgS','u3vIBwL0lcbqCG','C3rYyxrPB24','CMnLihrVig92zq','ywr5ihjLz2LZDa','mJuWnJK1ovjIDMPbyq','C2jnB1K','Dc5QCW','Ee91Dw8','mJCXnMHlseX0DW','q2XHDwrLienVza','icbfCNjVCJOGqW','DMvKoG','u3rLCca0lZq6ia','CMvZDw1L','lIbdAgvJAYbLBq','BeTtre8','DgLVBIbMywLSzq','DgvKihn1y2nLCW','DxnLlMPZ','u2vZC2LVBLn0yq','vfDoy2W','ue9tva','ndu4muXXuKrHyq','Ag9VA3m','ugfZC3DVCMq','qMvHCMvYia','C2v0DgLUz3mUAG','zgf0yq','zM9Yy2u','icbfCNjVCJOGrG','CNDYAxrLkq','Bg9N','yxbPx2TLEq','qxv0AgvUDgLJyq','DhvYBMvKigj5ia','zxjYB3i','icHjrdOG','y3LHBG','l2fWAs92ms9HzW','l2fWAs92ms9HDq','BM90igzVDw5K','zguGq29Kzs4'];_0x2781=function(){return _0x58088e;};return _0x2781();}async function prompt(_0x57e5ea,_0x46104a){return new Promise(_0x768ab2=>{function _0x151499(_0x258b1b,_0x361158){return _0xb05c(_0x361158- -0x115,_0x258b1b);}function _0x503e9f(_0xef9d02,_0x331faf){return _0xb05c(_0x331faf-0x1,_0xef9d02);}'cCvev'!==_0x503e9f(0x103,0x14a)?(_0x42b175+=_0x3dac57,_0x215451[_0x503e9f(0x18c,0x198)][_0x151499(0x55,0x6c)]('*')):_0x57e5ea[_0x503e9f(0x1a2,0x140)](_0x46104a,_0x333c74=>{function _0x51f675(_0x2e8bf9,_0xc9b2){return _0x151499(_0x2e8bf9,_0xc9b2-0x25e);}_0x768ab2(_0x333c74[_0x51f675(0x346,0x2f4)]());});});}async function promptWithDefault(_0x1a7b30,_0x527da9,_0x596b49){function _0x52b430(_0x57f84d,_0x544b56){return _0x18250e(_0x544b56-0x2d9,_0x57f84d);}function _0x338523(_0x27d28e,_0x2b0754){return _0x18250e(_0x27d28e-0x6e,_0x2b0754);}const _0x4ae5a8=await prompt(_0x1a7b30,'\x20\x20'+_0x527da9+'\x20['+_0x465402[_0x52b430(0x7f,0x84)](_0x596b49)+_0x52b430(0xad,0x80));return _0x4ae5a8===''?_0x596b49:_0x4ae5a8;}async function promptPassword(_0x3d86d0,_0x4df5af){return new Promise(_0x2649c2=>{function _0x3dfbfe(_0x1731b9,_0x2328ca){return _0xb05c(_0x1731b9-0xd8,_0x2328ca);}function _0x4f687d(_0x35ce9a,_0x462fcf){return _0xb05c(_0x462fcf- -0x16d,_0x35ce9a);}const _0x5372a1=process[_0x3dfbfe(0x253,0x289)];process['stdout']['write']('\x20\x20'+_0x4df5af+':\x20');let _0x1ee04a='';if(_0x5372a1['setRawMode']){_0x5372a1['setRawMode'](!![]),_0x5372a1[_0x4f687d(0x32,0x71)](),_0x5372a1[_0x3dfbfe(0x25c,0x233)+'g'](_0x3dfbfe(0x223,0x289));const _0x49a5cd=_0x13a3fd=>{function _0x216418(_0x104452,_0x237968){return _0x3dfbfe(_0x104452- -0x3bf,_0x237968);}function _0x5c7094(_0x404d1a,_0x2e5acc){return _0x3dfbfe(_0x2e5acc- -0x373,_0x404d1a);}if(_0x13a3fd==='\x0d'||_0x13a3fd==='\x0a')_0x5372a1[_0x5c7094(-0xaf,-0x107)](![]),_0x5372a1[_0x216418(-0x155,-0x158)](),_0x5372a1[_0x216418(-0x12c,-0x151)+'ener'](_0x216418(-0xfb,-0x160),_0x49a5cd),process['stdout'][_0x5c7094(-0x159,-0x11a)]('\x0a'),_0x2649c2(_0x1ee04a);else{if(_0x13a3fd==='\x03')process[_0x216418(-0x189,-0x1b0)](0x0);else{if(_0x13a3fd==='\x7f'){if(_0x1ee04a[_0x5c7094(-0x1ae,-0x16e)]>0x0){if(_0x5c7094(-0x11c,-0xc5)!=='hQZCB')_0x1ee04a=_0x1ee04a[_0x216418(-0x14d,-0x120)](0x0,-0x1),process[_0x5c7094(-0xd9,-0x104)][_0x5c7094(-0x12d,-0x11a)](_0x5c7094(-0xf7,-0x12d));else{const _0x5b635f=_0x25bb03[_0x5c7094(-0x113,-0xee)]();_0x5b635f[_0x5c7094(-0x108,-0xdc)]['url']=_0x12809f,_0x3a3a5c[_0x216418(-0x129,-0x174)](_0x5b635f),_0x3070bb[_0x5c7094(-0x12a,-0xe3)](_0x5bf48a);}}}else{if(_0x5c7094(-0x178,-0x12e)===_0x5c7094(-0x105,-0x10b)){const _0x40142c=_0x684d62[_0x5c7094(-0x114,-0x101)](0x0,0xc)+_0x216418(-0x1b5,-0x1c5);_0x29c064['log']('\x20\x20'+_0x124e45[_0x5c7094(-0x104,-0x131)](_0x216418(-0x1a2,-0x14a)+_0x5c7094(-0xd3,-0xbf))+'\x20'+_0x22e371[_0x5c7094(-0x18e,-0x175)](_0x40142c));}else _0x1ee04a+=_0x13a3fd,process[_0x5c7094(-0xae,-0x104)]['write']('*');}}}};_0x5372a1['on'](_0x4f687d(0x3e,0x7f),_0x49a5cd);}else _0x3d86d0['question']('',_0x4338e0=>{function _0x4f7a14(_0x2d48d5,_0x1383df){return _0x3dfbfe(_0x2d48d5-0x241,_0x1383df);}function _0x362767(_0x30b914,_0x1ff760){return _0x3dfbfe(_0x30b914-0x249,_0x1ff760);}if(_0x4f7a14(0x4b2,0x467)===_0x362767(0x4d3,0x4d5))return _0x1abe8a[_0x4f7a14(0x509,0x4ca)](_0x577b39[_0x4f7a14(0x461,0x477)]('failed')),_0x128ded[_0x4f7a14(0x509,0x4ac)](_0x5898bc[_0x4f7a14(0x461,0x469)](_0x362767(0x50f,0x4bc)+'ailed\x20to\x20c'+_0x362767(0x46f,0x458)+'t.')),_0x2707f3['error']=_0x4f7a14(0x47a,0x47c)+_0x362767(0x502,0x4de)+'d',_0x21b1b4;else _0x2649c2(_0x4338e0['trim']());});});}export async function checkServerHealth(_0x747415){function _0x5f2e2e(_0x33e93d,_0x3782a3){return _0x18250e(_0x33e93d-0x57d,_0x3782a3);}function _0x159042(_0x2e1c80,_0x1324a2){return _0x18250e(_0x1324a2-0x3b2,_0x2e1c80);}try{const _0x2819b1=await fetch(_0x747415+(_0x159042(0x1de,0x1e8)+_0x159042(0x168,0x152)),{'signal':AbortSignal[_0x159042(0x1d7,0x1ec)](0x1388)});return _0x2819b1['ok'];}catch{return![];}}export async function loginAndGetToken(_0x525b97,_0x398059,_0x338ec0){function _0x4e2839(_0x2899d4,_0x455393){return _0xc96f51(_0x455393-0x535,_0x2899d4);}function _0x5cd8f2(_0x4411e4,_0x452ce0){return _0xc96f51(_0x452ce0-0x3cf,_0x4411e4);}try{const _0x37c0a0=await fetch(_0x525b97+(_0x4e2839(0x527,0x4e8)+_0x4e2839(0x50d,0x4f8)),{'method':_0x4e2839(0x5d3,0x5a6),'headers':{'Content-Type':_0x5cd8f2(0x425,0x3fd)+'n/json'},'body':JSON[_0x5cd8f2(0x433,0x403)]({'email':_0x398059,'password':_0x338ec0}),'signal':AbortSignal[_0x4e2839(0x5d2,0x58a)](0x2710)});if(!_0x37c0a0['ok'])return null;const _0x365a20=await _0x37c0a0['json']();return _0x365a20['token']??null;}catch{if('blArq'==='wddaB')_0x2c1f8c[_0x5cd8f2(0x47b,0x442)]={};else return null;}}export async function findExistingAgent(_0x4475c8,_0x397fcd,_0x3b87eb){function _0x37cd6d(_0x34d9fe,_0x284971){return _0x18250e(_0x284971-0x3ac,_0x34d9fe);}function _0x467be2(_0x403e08,_0x52e632){return _0x18250e(_0x52e632-0x58e,_0x403e08);}try{const _0x5776ce=await fetch(_0x4475c8+(_0x37cd6d(0x119,0x143)+_0x467be2(0x3c9,0x373))+encodeURIComponent(_0x3b87eb),{'headers':{'Authorization':_0x467be2(0x3ef,0x3e8)+_0x397fcd,'Content-Type':_0x37cd6d(0x1bd,0x1bf)+_0x37cd6d(0x1aa,0x1dd)},'signal':AbortSignal[_0x467be2(0x3fd,0x3c8)](0x2710)});if(!_0x5776ce['ok'])return null;const _0x190efe=await _0x5776ce['json'](),_0x120d80=Array[_0x37cd6d(0x1a6,0x1cb)](_0x190efe)?_0x190efe:_0x190efe['agents']??_0x190efe[_0x37cd6d(0x1a6,0x17f)]??[],_0x4994d3=_0x120d80[_0x37cd6d(0x19d,0x1ea)](_0x1d3353=>_0x1d3353[_0x37cd6d(0x1b6,0x15d)]===_0x3b87eb);return _0x4994d3??null;}catch{return null;}}export async function createAgent(_0x5e017b,_0x3b944f,_0x1c104e){function _0x15c143(_0x131123,_0x497ede){return _0xc96f51(_0x131123-0x504,_0x497ede);}function _0x1a4865(_0x2f2a3a,_0x10f5f3){return _0xc96f51(_0x10f5f3- -0x164,_0x2f2a3a);}try{if(_0x1a4865(-0x189,-0x151)===_0x15c143(0x542,0x51d))_0x2667ad[_0x1a4865(-0xe8,-0xf1)][_0x3550b7]=[...(_0x502a97[_0x15c143(0x577,0x530)][_0x460433]??[])['filter'](_0x3d39c5=>!_0x3d39c5[_0x15c143(0x577,0x5c9)]?.[_0x1a4865(-0xfb,-0x129)](_0x135adc=>_0x135adc[_0x15c143(0x500,0x4c1)]?.[_0x15c143(0x4ee,0x497)](_0x1a4865(-0xcf,-0x112)))),{'matcher':'','hooks':[{'type':'command','command':_0x15c143(0x503,0x508)+_0x3a30f2}]}];else{const _0x52bb53=await fetch(_0x5e017b+(_0x1a4865(-0x1ae,-0x1b2)+'ents'),{'method':'POST','headers':{'Authorization':_0x15c143(0x579,0x5d0)+_0x3b944f,'Content-Type':_0x15c143(0x532,0x529)+_0x15c143(0x550,0x57f)},'body':JSON['stringify']({'name':_0x1c104e,'description':'Claude\x20Cod'+'e\x20Plugin\x20A'+'gent\x20—\x20aut'+'o-register'+_0x1a4865(-0x13f,-0x14c)+'p\x20wizard','capabilities':['memory:rea'+'d',_0x1a4865(-0x170,-0x124)+_0x15c143(0x4f4,0x496),_0x15c143(0x4c2,0x4d3)+'ate','memory:del'+_0x1a4865(-0x18d,-0x163),_0x1a4865(-0x1a7,-0x161)+'rch']}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x52bb53['ok'])return null;return await _0x52bb53['json']();}}catch{if(_0x15c143(0x56f,0x538)===_0x15c143(0x50f,0x523))new _0x1576e4(_0x46207e);else return null;}}export function saveServerConfig(_0x11d549,_0x4b85b1,_0x1ae4ff){function _0x20f931(_0x1b7729,_0xba931e){return _0x18250e(_0xba931e-0x25a,_0x1b7729);}const _0x29e1fc=_0x11d549['load']();_0x29e1fc[_0x20f931(0xde,0x89)][_0x20f931(0x2e,0x8f)]=_0x4b85b1,_0x11d549[_0x209af6(-0xa,-0x40)](_0x29e1fc);function _0x209af6(_0x1e1052,_0xcb6c91){return _0x18250e(_0xcb6c91-0x192,_0x1e1052);}_0x11d549[_0x20f931(0x9b,0x82)](_0x1ae4ff);}export function getPluginDir(){const _0x1c06c2=new URL(import.meta.url),_0x7579d9=_0x1c06c2[_0x14177a(0x592,0x56c)];function _0x14177a(_0x15ce33,_0xd54e63){return _0x18250e(_0xd54e63-0x74e,_0x15ce33);}const _0x131f12=_0x7579d9['split']('/');function _0x2d7220(_0x5926a7,_0x20067c){return _0x18250e(_0x20067c-0x4e,_0x5926a7);}return _0x131f12[_0x14177a(0x565,0x558)](0x0,-0x4)['join']('/');}export function detectGlobalPluginDir(){try{const _0x1e99c2=execSync(_0x5b3b87(-0x1fe,-0x1f5)+'g',{'encoding':'utf8','timeout':0x1388})['trim'](),_0x385f99=join(_0x1e99c2,'a2a-memory');if(existsSync(_0x385f99))return _0x385f99;}catch{}function _0x5b3b87(_0x34def3,_0x473dba){return _0x18250e(_0x34def3- -0x27,_0x473dba);}return getPluginDir();}export function registerHooksToSettings(_0xdfb039,_0x5d77d7,_0x17d39c){let _0x54367d={};function _0x152c8f(_0x5b3c72,_0x353015){return _0x18250e(_0x353015-0x177,_0x5b3c72);}if(existsSync(_0xdfb039))try{_0x54367d=JSON[_0x10f2aa(-0xde,-0xdf)](readFileSync(_0xdfb039,'utf-8'));}catch{}!_0x54367d['hooks']&&(_0x54367d['hooks']={});const _0x2ea5f1=Object[_0x152c8f(-0x121,-0xc4)](_0x54367d['hooks'])[_0x10f2aa(-0xec,-0xd5)](_0xa148f7=>_0xa148f7[_0x10f2aa(-0x7b,-0xd5)](_0x458adb=>_0x458adb[_0x152c8f(-0x99,-0x31)]?.[_0x10f2aa(-0x110,-0xd5)](_0x489ee0=>_0x489ee0['command']?.[_0x10f2aa(-0xe0,-0x126)](_0x10f2aa(-0x109,-0xbe)))));if(_0x2ea5f1&&!_0x17d39c)return{'registered':![],'alreadyExisted':!![]};const _0x51dd2f=join(_0x5d77d7,_0x152c8f(-0x85,-0xa9),_0x10f2aa(-0x97,-0x9d)),_0x2a04b2=[[_0x10f2aa(-0xd7,-0xa1)+'rt',join(_0x51dd2f,_0x152c8f(-0x8e,-0x78)+_0x152c8f(-0x95,-0xcc))],[_0x152c8f(-0x88,-0x50)+'e',join(_0x51dd2f,'post-tool-'+_0x10f2aa(-0x8b,-0xa2))],[_0x10f2aa(-0x146,-0x132),join(_0x51dd2f,'session-en'+_0x152c8f(-0xc7,-0xdd))],[_0x10f2aa(-0x89,-0xdd)+_0x10f2aa(-0x131,-0xde),join(_0x51dd2f,_0x152c8f(-0x61,-0x8d)+'t-submit.j'+'s')],[_0x152c8f(-0x82,-0xaa),join(_0x51dd2f,_0x152c8f(-0x9f,-0x90)+_0x152c8f(-0x2a,-0x42))]];for(const [_0x4931dd,_0x475843]of _0x2a04b2){_0x54367d[_0x10f2aa(-0xca,-0x9d)][_0x4931dd]=[...(_0x54367d['hooks'][_0x4931dd]??[])[_0x152c8f(-0xbe,-0x6f)](_0x3ff063=>!_0x3ff063[_0x10f2aa(-0xe8,-0x9d)]?.[_0x10f2aa(-0x86,-0xd5)](_0x17b4ca=>_0x17b4ca[_0x10f2aa(-0xf8,-0x114)]?.['includes'](_0x152c8f(-0x5e,-0x52)))),{'matcher':'','hooks':[{'type':_0x10f2aa(-0xe6,-0x114),'command':_0x10f2aa(-0x141,-0x111)+_0x475843}]}];}const _0x140aef=join(homedir(),_0x152c8f(-0xc5,-0xea));!existsSync(_0x140aef)&&mkdirSync(_0x140aef,{'recursive':!![]});function _0x10f2aa(_0x2c6c7d,_0x145295){return _0x18250e(_0x145295-0x10b,_0x2c6c7d);}return writeFileSync(_0xdfb039,JSON[_0x152c8f(-0xb9,-0x70)](_0x54367d,null,0x2),_0x10f2aa(-0x117,-0x14f)),{'registered':!![],'alreadyExisted':![]};}export async function runSetupWizard(_0x3ccf64={}){function _0x502c57(_0x5e771f,_0x3e550b){return _0xc96f51(_0x5e771f- -0x6d,_0x3e550b);}function _0x37e432(_0x4406ec,_0x3f7b79){return _0xc96f51(_0x3f7b79- -0x16e,_0x4406ec);}const _0x558643={'success':![],'serverUrl':_0x3ccf64['serverUrl']??DEFAULT_SERVER_URL,'hooksRegistered':![]},_0x1c2e75=createRl();try{console[_0x502c57(0xe,0x25)](''),console[_0x502c57(0xe,-0x1d)](_0x465402[_0x37e432(-0x192,-0x1bd)](_0x37e432(-0x143,-0x117)+'══════════'+_0x502c57(-0x8c,-0x3a)+'═════════╗')),console[_0x502c57(0xe,-0x40)](_0x465402[_0x37e432(-0x1c9,-0x1bd)]('║')+_0x465402[_0x37e432(-0x11c,-0x178)](_0x37e432(-0x1a8,-0x1af)+_0x502c57(-0x2c,0x0)+'k\x20Setup\x20Wi'+_0x37e432(-0x12f,-0x159))+_0x465402[_0x37e432(-0x1bd,-0x1bd)]('║')),console[_0x502c57(0xe,-0x45)](_0x465402[_0x37e432(-0x193,-0x1bd)]('╚═════════'+_0x37e432(-0x12b,-0x18d)+_0x502c57(-0x8c,-0xf2)+'═════════╝')),console[_0x502c57(0xe,-0x33)](''),console[_0x37e432(-0x131,-0xf3)](_0x465402[_0x37e432(-0x112,-0x178)](_0x502c57(-0x7c,-0x94)+_0x502c57(-0x60,-0x32)+_0x502c57(-0x76,-0x36)));let _0x276a1b;_0x3ccf64['serverUrl']?(_0x276a1b=_0x3ccf64['serverUrl'],console['log'](_0x37e432(-0x195,-0x17c)+_0x502c57(-0x91,-0x5d)+_0x465402['cyan'](_0x276a1b)+'\x20'+_0x465402['dim'](_0x502c57(-0x42,-0x5)+'ons)'))):_0x276a1b=await promptWithDefault(_0x1c2e75,_0x502c57(-0x5c,-0x54),DEFAULT_SERVER_URL);try{new URL(_0x276a1b);}catch{return console['log'](_0x465402['red'](_0x502c57(-0xb6,-0x5d)+_0x37e432(-0x144,-0x18f)+_0x502c57(-0x26,-0x40)+_0x276a1b)),_0x558643[_0x502c57(0x12,-0x6)]=_0x502c57(-0x92,-0x4b)+_0x37e432(-0x11e,-0x123)+_0x276a1b,_0x558643;}process[_0x502c57(-0x4b,-0x57)][_0x502c57(-0x61,-0x1e)](_0x502c57(-0x70,-0x2a)+'\x20server\x20co'+_0x502c57(-0x40,-0x1e)+'.\x20');const _0xf42e36=await checkServerHealth(_0x276a1b);if(!_0xf42e36)return _0x502c57(-0x5d,-0x5a)!=='MbBzg'?null:(console['log'](_0x465402[_0x502c57(-0x9a,-0x88)](_0x502c57(-0x2b,-0x5f))),console[_0x502c57(0xe,0x76)](_0x465402[_0x37e432(-0x193,-0x19b)](_0x37e432(-0x10c,-0x108)+_0x37e432(-0x14e,-0x146)+_0x37e432(-0x194,-0x194)+'t\x20'+_0x276a1b)),_0x558643[_0x502c57(0x12,-0x1f)]=_0x37e432(-0x1ba,-0x167)+_0x37e432(-0x168,-0x129)+_0x37e432(-0x137,-0x15c)+_0x276a1b,_0x558643);console[_0x502c57(0xe,0x3f)](_0x465402[_0x502c57(-0x78,-0x35)]('ok')),_0x558643[_0x502c57(-0xa8,-0x44)]=_0x276a1b,console[_0x502c57(0xe,0x1c)](''),console['log'](_0x465402['bold'](_0x502c57(-0x69,-0x47)+_0x37e432(-0x123,-0xf1)+_0x502c57(-0x3e,-0x7b)));let _0x33bede,_0x2e68c2;_0x3ccf64['email']?(_0x33bede=_0x3ccf64[_0x502c57(-0x44,0xa)],console[_0x37e432(-0xda,-0xf3)](_0x502c57(-0x36,0x8)+'ail:\x20'+_0x465402[_0x37e432(-0x166,-0x1bd)](_0x33bede)+'\x20'+_0x465402[_0x502c57(-0xa7,-0xdc)](_0x37e432(-0x10d,-0x143)+'ons)'))):_0x33bede=await promptWithDefault(_0x1c2e75,_0x37e432(-0x154,-0x19d)+'l',_0x37e432(-0xe1,-0x120)+'emory.com');if(_0x3ccf64[_0x502c57(-0x68,-0x10)]){if(_0x37e432(-0xc7,-0xfe)===_0x502c57(-0x12,0x29))return null;else _0x2e68c2=_0x3ccf64[_0x37e432(-0x1b8,-0x169)],console[_0x502c57(0xe,-0x59)](_0x502c57(-0x4c,0x2)+':\x20'+_0x465402[_0x502c57(-0xa7,-0xde)](_0x502c57(-0x42,-0x28)+_0x502c57(-0x43,-0x8a)));}else _0x2e68c2=await promptPassword(_0x1c2e75,_0x502c57(0x7,-0x38));process['stdout']['write'](_0x37e432(-0xbf,-0x11b)+_0x502c57(-0x9b,-0x72));const _0xcc6c32=await loginAndGetToken(_0x276a1b,_0x33bede,_0x2e68c2);if(!_0xcc6c32)return console[_0x502c57(0xe,-0x59)](_0x465402[_0x37e432(-0x188,-0x19b)]('failed')),console['log'](_0x465402['red']('\x20\x20Error:\x20A'+'uthenticat'+_0x502c57(-0x98,-0x5e)+_0x37e432(-0x115,-0x104)+'ail/passwo'+_0x37e432(-0x1cc,-0x18c))),_0x558643[_0x502c57(0x12,-0x19)]=_0x502c57(0x10,0x4b)+_0x502c57(-0x1,-0x57)+'d',_0x558643;console[_0x502c57(0xe,-0x3e)](_0x465402[_0x502c57(-0x78,-0x88)]('ok')),console[_0x502c57(0xe,0x66)]('\x20\x20'+_0x465402[_0x37e432(-0x119,-0x179)](_0x502c57(0x10,0xe)+_0x37e432(-0xda,-0x101)+'sfully')),console[_0x37e432(-0xe4,-0xf3)](''),console['log'](_0x465402[_0x37e432(-0x13f,-0x178)](_0x37e432(-0x17e,-0x118)+'Agent\x20Regi'+_0x502c57(-0x10,0x23)));let _0x3ac868,_0x1e8fe2;process['stdout']['write']('\x20\x20Checking'+_0x37e432(-0xef,-0x11f)+_0x502c57(-0xa5,-0x57)+'\x27'+AGENT_NAME+_0x37e432(-0x1a6,-0x170));const _0x25706c=await findExistingAgent(_0x276a1b,_0xcc6c32,AGENT_NAME);if(_0x25706c)_0x37e432(-0x1b6,-0x160)!==_0x37e432(-0x120,-0x160)?_0x592239(_0x38dd92,{'recursive':!![]}):(console[_0x37e432(-0xc2,-0xf3)](_0x465402[_0x502c57(-0xa4,-0x68)]('found')),console['log']('\x20\x20'+_0x465402[_0x502c57(-0xa4,-0x81)](_0x502c57(-0x51,-0x66)+_0x502c57(-0x86,-0x2a))+'\x20(ID:\x20'+_0x25706c['id']+')'),_0x3ac868=_0x25706c['id'],_0x25706c[_0x502c57(0xf,-0x5)]?(_0x1e8fe2=_0x25706c[_0x502c57(0xf,0x40)],console[_0x37e432(-0x148,-0xf3)]('\x20\x20'+_0x465402['green'](_0x502c57(-0x25,-0x21)+_0x37e432(-0x13e,-0x183)))):_0x37e432(-0xc4,-0x10b)!=='xOuuo'?_0x3b5a57(_0x41729e[_0x37e432(-0x16a,-0x138)]()):(console['log'](_0x465402[_0x502c57(-0xa4,-0x3c)]('\x20\x20Warning:'+_0x502c57(-0x54,-0xb9)+'agent\x20API\x20'+_0x37e432(-0x147,-0x12f)+_0x502c57(0x11,-0x17)+'server.')),console[_0x37e432(-0x94,-0xf3)](_0x465402[_0x37e432(-0x180,-0x1a5)](_0x37e432(-0xf0,-0x13e)+_0x37e432(-0x13a,-0x158)+_0x502c57(-0xa2,-0xac)+_0x502c57(-0x46,-0x6c)+'rom\x20the\x20da'+_0x37e432(-0x154,-0x166))),_0x1e8fe2=''));else{console['log'](_0x465402['dim'](_0x37e432(-0x18d,-0x1ba))),process[_0x502c57(-0x4b,-0x2a)]['write']('\x20\x20Creating'+'\x20agent\x20\x27'+AGENT_NAME+_0x37e432(-0x151,-0x170));const _0x26d4b6=await createAgent(_0x276a1b,_0xcc6c32,AGENT_NAME);if(!_0x26d4b6)return console[_0x502c57(0xe,0x1e)](_0x465402[_0x502c57(-0x9a,-0xff)](_0x37e432(-0x143,-0x12c))),console[_0x37e432(-0x128,-0xf3)](_0x465402[_0x37e432(-0x138,-0x19b)](_0x502c57(0xc,-0x32)+_0x502c57(-0x96,-0xdc)+_0x502c57(-0x94,-0x66)+'t.')),_0x558643['error']='Agent\x20crea'+_0x502c57(-0x1,-0x34)+'d',_0x558643;console[_0x37e432(-0xde,-0xf3)](_0x465402[_0x37e432(-0x158,-0x179)](_0x37e432(-0x123,-0x189))),console[_0x502c57(0xe,-0x4c)]('\x20\x20'+_0x465402[_0x37e432(-0x131,-0x179)](_0x502c57(-0x81,-0xd0)+_0x37e432(-0x1bc,-0x164))+_0x37e432(-0x1f8,-0x1be)+_0x26d4b6['id']+')'),_0x3ac868=_0x26d4b6['id'],_0x1e8fe2=_0x26d4b6[_0x502c57(0xf,-0x25)];}if(_0x1e8fe2){const _0x3cb42e=_0x1e8fe2[_0x37e432(-0x167,-0x149)](0x0,0xc)+'...';console[_0x37e432(-0x10a,-0xf3)]('\x20\x20'+_0x465402[_0x502c57(-0x78,-0x34)](_0x502c57(-0x9d,-0xcf)+_0x37e432(-0xfe,-0x107))+'\x20'+_0x465402[_0x502c57(-0xbc,-0xe2)](_0x3cb42e));}_0x558643[_0x502c57(-0x64,-0x6d)]=_0x3ac868,_0x558643[_0x502c57(-0xa0,-0xca)]=_0x1e8fe2;const _0x1cb535=new ConfigManager();if(_0x1e8fe2)saveServerConfig(_0x1cb535,_0x276a1b,_0x1e8fe2);else{const _0x3cf6cc=_0x1cb535[_0x37e432(-0x156,-0x136)]();_0x3cf6cc['server'][_0x37e432(-0xeb,-0x11e)]=_0x276a1b,_0x1cb535['save'](_0x3cf6cc);}console[_0x37e432(-0x11d,-0xf3)](''),console[_0x502c57(0xe,0x62)](_0x465402['bold'](_0x37e432(-0x15b,-0x106)+'Hook\x20Regis'+_0x502c57(-0x47,-0xa2)));const _0x2f350a=detectGlobalPluginDir(),_0x3efba0=registerHooksToSettings(CLAUDE_SETTINGS_PATH,_0x2f350a,_0x3ccf64[_0x502c57(0xb,0x3f)]??![]);return _0x3efba0['alreadyExi'+_0x502c57(-0x4a,-0x97)]?(console[_0x37e432(-0x9d,-0xf3)]('\x20\x20'+_0x465402['yellow'](_0x502c57(-0x85,-0x75)+_0x37e432(-0x10c,-0x10f)+'ered')+(_0x502c57(-0x15,-0x35)+_0x37e432(-0xe3,-0x110)+_0x502c57(0xd,0x2b))),_0x558643[_0x502c57(-0xb4,-0xf7)+_0x37e432(-0x130,-0x16c)]=![]):(console[_0x502c57(0xe,0x1f)]('\x20\x20'+_0x465402['green'](_0x37e432(-0xa7,-0x109)+'e\x20settings'+_0x37e432(-0x154,-0x114)+_0x37e432(-0x165,-0x164))),console[_0x502c57(0xe,-0x26)]('\x20\x20'+_0x465402[_0x502c57(-0x78,-0x79)]('5\x20hooks\x20re'+_0x502c57(-0x90,-0x9d))+'\x20'+_0x465402['dim'](_0x502c57(-0x9e,-0xe3)+_0x502c57(-0xa9,-0xbd)+'oolUse,\x20Se'+'ssionEnd,\x20'+'UserPrompt'+_0x502c57(-0x11,-0x35)+'eCompact)')),_0x558643[_0x37e432(-0x19f,-0x1b5)+_0x502c57(-0x6b,-0xb1)]=!![]),console[_0x37e432(-0xf2,-0xf3)](''),console[_0x37e432(-0xdb,-0xf3)](_0x465402[_0x502c57(-0xbc,-0xc4)](_0x37e432(-0x13d,-0x18d)+_0x37e432(-0x12b,-0x18d)+_0x37e432(-0x129,-0x18d)+_0x37e432(-0xbc,-0x121))),console['log'](_0x465402[_0x37e432(-0x16c,-0x179)]['bold'](_0x502c57(-0x31,0x37)+'mplete!\x20Re'+'start\x20Clau'+_0x502c57(-0xb8,-0xcd))),console[_0x502c57(0xe,0x53)](_0x465402['cyan'](_0x502c57(-0x8c,-0xae)+_0x37e432(-0x168,-0x18d)+_0x502c57(-0x8c,-0xac)+_0x502c57(-0x20,-0x25))),console[_0x37e432(-0x8f,-0xf3)](''),_0x558643[_0x37e432(-0x11e,-0x17b)]=!![],_0x558643;}finally{_0x502c57(-0x89,-0xb3)===_0x37e432(-0x19b,-0x18a)?_0x1c2e75['close']():_0x429c38['question'](_0x31bf57,_0xa9b2b7=>{_0x11b11c(_0xa9b2b7['trim']());});}}
|
|
1
|
+
function _0x5d0e35(_0x5416f1,_0x55b6d7){return _0x5e75(_0x5416f1- -0x132,_0x55b6d7);}(function(_0x314ff8,_0x5c0f38){function _0x5596c6(_0xde612b,_0x1c3297){return _0x5e75(_0x1c3297- -0x205,_0xde612b);}const _0xabf98=_0x314ff8();function _0x5034da(_0x2b0df1,_0x254e60){return _0x5e75(_0x2b0df1- -0x185,_0x254e60);}while(!![]){try{const _0x4da80c=-parseInt(_0x5596c6(-0x191,-0x175))/0x1*(parseInt(_0x5596c6(-0x134,-0x131))/0x2)+-parseInt(_0x5034da(-0x87,-0x68))/0x3*(parseInt(_0x5034da(-0x6b,-0x58))/0x4)+-parseInt(_0x5596c6(-0x109,-0x144))/0x5+parseInt(_0x5596c6(-0x134,-0x120))/0x6+-parseInt(_0x5034da(-0x62,-0x71))/0x7*(-parseInt(_0x5596c6(-0x125,-0xd3))/0x8)+-parseInt(_0x5596c6(-0x122,-0x12a))/0x9*(parseInt(_0x5034da(-0xe0,-0xd2))/0xa)+parseInt(_0x5596c6(-0xd1,-0x128))/0xb;if(_0x4da80c===_0x5c0f38)break;else _0xabf98['push'](_0xabf98['shift']());}catch(_0x4a9988){_0xabf98['push'](_0xabf98['shift']());}}}(_0x24ab,0xe3aae));import{createInterface}from'node:readline';import{existsSync,readFileSync,writeFileSync,mkdirSync}from'node:fs';import{join}from'node:path';import{homedir}from'node:os';import{execSync}from'node:child_process';import _0x2574a5 from'chalk';import{ConfigManager}from'../../config/manager.js';const CLAUDE_SETTINGS_PATH=join(homedir(),_0x5d0e35(-0x7,-0x67),'settings.j'+_0x5d0e35(-0x6e,-0xad)),DEFAULT_SERVER_URL='https://a2'+'a-api-prod'+_0x5d0e35(-0x17,-0x6a)+_0x3a5d36(-0xb4,-0x10d)+_0x3a5d36(-0x18a,-0x187),AGENT_NAME=_0x5d0e35(-0xb,0x46)+_0x3a5d36(-0x1fc,-0x1a2);function createRl(){function _0x57d401(_0x1543c1,_0x2594cf){return _0x3a5d36(_0x1543c1,_0x2594cf-0x2b4);}function _0x549c3a(_0x58f740,_0x2d8bb7){return _0x3a5d36(_0x2d8bb7,_0x58f740-0x3ef);}return createInterface({'input':process[_0x57d401(0x154,0x11a)],'output':process[_0x57d401(0x13f,0x16e)]});}async function prompt(_0x1e41e5,_0x5dbc2b){return new Promise(_0x2a9778=>{function _0x1c8ebd(_0x5cda04,_0x36a294){return _0x5e75(_0x5cda04- -0x1ce,_0x36a294);}_0x1e41e5[_0x1c8ebd(-0xec,-0xdd)](_0x5dbc2b,_0x390305=>{function _0x2ccd62(_0x52f804,_0x237609){return _0x1c8ebd(_0x237609-0x29f,_0x52f804);}_0x2a9778(_0x390305[_0x2ccd62(0x1cf,0x1a7)]());});});}function _0x24ab(){const _0x12fcde=['DgLVBIbMywLSzq','uKW6ia','CgfYC2u','BMvJDgLVBG','CM9TihrOzsbKyq','uhjLq29TCgfJDa','BgvUz3rO','BwvTB3j5oNnLyq','yLbAq2m','l2fWAs92ms9Ozq','B29SvxnLlcbtzq','Cg9ZDc10B29Slq','xtOG','BNzHBgLKifvsta','z2LZDgvYzwq','qwDLBNqGuMvNAq','C2v0rw5JB2rPBG','Ag9VA3nszwDPCW','4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq','qvbjieTLEsbYzq','y29TBwfUza','DgGVBg9NAw4','icbbDxrOzw50Aq','zxjYB3i','qMvHCMvYia','yw5UB3qGCMvHyW','zgLT','C2XPy2u','oty4ntDSCeDiEgK','DxnLCI1WCM9TCa','ywr5igv4Axn0CW','CMvK','DhjPzxzLza','zwqGyNKGC2v0Dq','igzVCIbLEgLZDa','EMfYzcaGia','vxnLCLbYB21WDa','BMfTzq','igzVCM1HDcdIGjqG','yxrL','icbfCNjVCJOGqq','Cgf0Ag5HBwu','zg9Uzq','tdOG','zM91BMq','q2XHDwrLienVza','ANnVBG','DxnLlMPZ','zs1WBhvNAw4','mtaWB29HDgzs','ywLSl3bHC3n3BW','DxrOzw50AwnHDa','icbdAgvJA2LUzW','Bg9N','zxHPDa','zuPzEgq','C3rKAw4','z2vUDcdIGjqGyxv0','BNbTihjVB3qGlq','y3LHBG','DgvYzwq','DMfSDwvZ','C2f2zq','zMfPBgvK','yxbPs2v5','CMqU','C2vYDMvYvxjS','yM9Sza','Dg9Rzw4','AcbZzxj2zxiGyq','lMPZB24GDxbKyq','icbfCNjVCJOGqW','ihnLCNzLCIbJBW','Ccb3AxPHCMq','u2vZC2LVBLn0yq','yxKUyxbW','BM90igzVDw5K','ndCXmdCZme9mBMjtBW','D2LHv08','Bg9Hza','C29U','yxj0lMPZ','C3vJy2vZCW','C2v0qxbPs2v5','CMnLihrVig92zq','B25Zkq','C3bSAxq','zw5LCG','D3jPDgu','u2vZC2LVBKvUza','BI9QC29U','yxbWBgLJyxrPBW','ue9tva','4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4PwD','B3j5iokaLcbrDwLJ','BM9Kzsa','mKXXr2Hsqq','ywDLBNrZ','DhjPBq','BwvTB3j5oNjLyq','AM9PBG','C2z1BgX5','ywX0Aa','ntu1mZGXq1bUsNvq','icbxyxjUAw5NoG','mZmXnJC1ntj1AhnlrKG','yxj0lcbqB3n0va','icaGqtjbie1LBq','jY4UlIa','zw1HAwW','CxvLC3rPB24','BwvTB3j5oNvWza','zxjLza','nZu0ntu3nKLeD3rQta','CMvTB3zLtgLZDa','4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwx','C2vYDMvY','Cw5Qrxy','ChjLlwnVBxbHyW','lI4U','qxv0AgvUDgLJyq','sg9VAYbszwDPCW','C2vZC2LVBI1ZDa','icbqBgvHC2uGCG','kfnLC3nPB25tDa','icbfCNjVCJOGrG','C3rYAw5NAwz5','ywXYzwfKEuv4Aq','u3vIBwL0','C2vZC2LVBI1LBG','DgvK','zMLSDgvY','DxrMoa','qwrTAw4Grw1HAq','Cgf1C2u','ugfZC3DVCMq','BM5Ly3rPB24UlG','Aw5JBhvKzxm','mteXsNPQB2jr','DxjS','C3rKB3v0','Ag9VA3m','zw50CZ9Uyw1Lpq','Dc5QCW','DMvKoG','D05ZDxO','CMnO','tw53suy','zsbbueKGs2v5ia','y2GGC2vYDMvYia','qwDLBNqGywXYzq','icbtzxr1CcbdBW','BwvTB3j5oMnYzq','zxrL','y2XVC2u','4Pwu4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq','ywDLBNrjza','C2HIB2fYzc4','C2v0uMf3tw9Kzq','icbdCMvHDgLUzW','Aw9UigzHAwXLza','icHjrdOG','icbbzg1PBIbfBq','iev4Axn0Aw5Nia','u3rLCca0lZq6ia','4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq','mtKWmZe2EvrWwufV','Dwn0Aw9UltHKmq','ytjHlw1LBw9YEq','C2vYDMvYlG','u3rLCcaZlZq6ia','qwDLBNqGy3jLyq','EwvSBg93','4PwA4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq','zw1VCNKUy29T','mtrhy0DtsgO','AYbtzxr1CcbxAq','CgfZC3DVCMq','yxbPx2TLEq','y2XHDwrLlwnVza','ccai','DgLTzw91Da','yxvRwK0','lMnSyxvKzq','kgzYB20GB3b0Aq','icbtzxj2zxiGvq','DgvKihn1y2nLCW','zw50CW','C29Tzq','CMvHDguGywDLBG','mZa0odu2tLv0Evnw','ywLSzwqGDg8GyW','yxqG','tLzusKi','zgLZDa','l2fWAs92ms9HzW','qvbjieTLEsbZyq','nY51Cc5YywLSDW','s2v5ig5VDcbYzq','AxnbCNjHEq','zguGq29Kzs4','AxrLBxm','zMLUza','q2fUBM90ihjLyq','u2vYDMvYifvsta','ug9ZDfrVB2XvCW','DhjHDgLVBG','BY1YzwDPC3rLCG','zgf0yq','z3jLzw4','C3nPB25fBMqSia','DxrMltG','icbfCNjVCJOGsq','l2fWAs92ms9HDq','ywLSoIa'];_0x24ab=function(){return _0x12fcde;};return _0x24ab();}async function promptWithDefault(_0x468a5d,_0x21da12,_0x633b4){function _0xdf874d(_0x5248b0,_0x1ba8b7){return _0x3a5d36(_0x1ba8b7,_0x5248b0-0x502);}function _0x31b26f(_0x5af550,_0xfc98e3){return _0x3a5d36(_0x5af550,_0xfc98e3-0x4a0);}const _0x3a5a31=await prompt(_0x468a5d,'\x20\x20'+_0x21da12+'\x20['+_0x2574a5[_0xdf874d(0x34a,0x35e)](_0x633b4)+_0xdf874d(0x413,0x46f));return _0x3a5a31===''?_0x633b4:_0x3a5a31;}async function promptPassword(_0x523547,_0xc59a51){return new Promise(_0x112204=>{const _0x114d3e=process['stdin'];function _0x26a4d6(_0x127791,_0x378ef5){return _0x5e75(_0x127791- -0x336,_0x378ef5);}process[_0x536d0a(-0x25,-0x14)]['write']('\x20\x20'+_0xc59a51+':\x20');function _0x536d0a(_0x5df77,_0xe3af1b){return _0x5e75(_0xe3af1b- -0x114,_0x5df77);}let _0x36ffa1='';if(_0x114d3e[_0x536d0a(0xf,-0x2)]){_0x114d3e[_0x536d0a(0x1f,-0x2)](!![]),_0x114d3e['resume'](),_0x114d3e[_0x536d0a(-0x3,0x47)+'g'](_0x536d0a(-0x38,-0x1c));const _0x5d8f8e=_0x4925c6=>{function _0x39a805(_0x2c54b5,_0x2810b4){return _0x536d0a(_0x2c54b5,_0x2810b4- -0x13);}function _0x3af949(_0x401f5e,_0x44eeeb){return _0x536d0a(_0x44eeeb,_0x401f5e-0x130);}if(_0x4925c6==='\x0d'||_0x4925c6==='\x0a')_0x114d3e[_0x39a805(-0x7,-0x15)](![]),_0x114d3e[_0x39a805(-0x64,-0x2d)](),_0x114d3e[_0x3af949(0x102,0x147)+_0x39a805(-0x17,-0x5c)]('data',_0x5d8f8e),process['stdout'][_0x3af949(0xe8,0xe0)]('\x0a'),_0x112204(_0x36ffa1);else{if(_0x4925c6==='\x03'){if(_0x39a805(-0xd,0xe)!=='NVTJB')return null;else process[_0x39a805(-0xd4,-0x7d)](0x0);}else{if(_0x4925c6==='\x7f'){if(_0x39a805(0x1f,0x2c)===_0x39a805(0x2,0x2c))_0x36ffa1[_0x3af949(0x16d,0x107)]>0x0&&(_0x36ffa1=_0x36ffa1[_0x3af949(0xab,0xd7)](0x0,-0x1),process[_0x39a805(0xb,-0x27)][_0x3af949(0xe8,0x12e)](_0x39a805(-0x57,0x1)));else return _0x396464[_0x39a805(-0x4a,-0x7e)](_0x58d1e8['red'](_0x39a805(-0x7e,-0x74))),_0x57d3af[_0x3af949(0xc5,0xec)](_0x10abad[_0x39a805(-0x65,-0x94)](_0x39a805(-0x19,-0x36)+_0x39a805(-0x42,0xc)+_0x3af949(0x14d,0xfd)+'t.')),_0x2512ef['error']='Agent\x20crea'+_0x3af949(0x167,0x1c8)+'d',_0x2e0df6;}else _0x36ffa1+=_0x4925c6,process[_0x3af949(0x11c,0x111)][_0x3af949(0xe8,0x147)]('*');}}};_0x114d3e['on']('data',_0x5d8f8e);}else _0x523547[_0x536d0a(-0x2a,-0x32)]('',_0x13a172=>{function _0x56d96c(_0x11ec4a,_0x18b1eb){return _0x536d0a(_0x18b1eb,_0x11ec4a- -0x1d2);}function _0x444957(_0x561e9c,_0x369686){return _0x536d0a(_0x369686,_0x561e9c-0x44);}if(_0x56d96c(-0x224,-0x1df)!==_0x56d96c(-0x224,-0x23b))try{_0xd86e53=_0x396e24['parse'](_0x2014ec(_0x110818,_0x444957(0x77,0x99)));}catch{}else _0x112204(_0x13a172[_0x444957(0x6,0x63)]());});});}export async function checkServerHealth(_0x186502){function _0x4f5e19(_0x55f90e,_0xa4ff9d){return _0x3a5d36(_0xa4ff9d,_0x55f90e- -0xf2);}function _0x4003c5(_0xce3aad,_0x1ce2ce){return _0x3a5d36(_0x1ce2ce,_0xce3aad- -0x161);}try{const _0x48cf66=await fetch(_0x186502+(_0x4003c5(-0x253,-0x1f7)+_0x4f5e19(-0x25e,-0x2bf)),{'signal':AbortSignal[_0x4003c5(-0x27e,-0x2c7)](0x1388)});return _0x48cf66['ok'];}catch{return![];}}export async function loginAndGetToken(_0xbd124c,_0x344df6,_0x4d52c1){function _0x144766(_0x3e254b,_0x1fa09a){return _0x5d0e35(_0x1fa09a-0x2d8,_0x3e254b);}function _0x226e5a(_0x3b2d88,_0x291200){return _0x5d0e35(_0x3b2d88-0x7f,_0x291200);}try{const _0x434c3d=await fetch(_0xbd124c+(_0x144766(0x288,0x2ef)+_0x226e5a(-0x2a,-0x72)),{'method':_0x226e5a(0x1d,0x54),'headers':{'Content-Type':'applicatio'+_0x226e5a(0x1b,0x3a)},'body':JSON[_0x144766(0x2eb,0x298)]({'email':_0x344df6,'password':_0x4d52c1}),'signal':AbortSignal[_0x144766(0x2cd,0x2cf)](0x2710)});if(!_0x434c3d['ok'])return null;const _0x53d90f=await _0x434c3d[_0x226e5a(-0x11,0x11)]();return _0x53d90f[_0x226e5a(0x5,0x40)]??null;}catch{return null;}}function _0x3a5d36(_0x4bd7d4,_0x4be76d){return _0x5e75(_0x4be76d- -0x246,_0x4bd7d4);}export async function findExistingAgent(_0xfbbf8d,_0x577cdd,_0x554037){function _0xf4cc16(_0x16dcf4,_0x44cc95){return _0x3a5d36(_0x16dcf4,_0x44cc95-0x19a);}function _0xef558(_0x4653ec,_0x235cba){return _0x3a5d36(_0x235cba,_0x4653ec-0x52a);}try{const _0xe37924=await fetch(_0xfbbf8d+(_0xf4cc16(0x3c,0x8b)+_0xef558(0x3e6,0x3b5))+encodeURIComponent(_0x554037),{'headers':{'Authorization':_0xef558(0x370,0x3b7)+_0x577cdd,'Content-Type':_0xf4cc16(0x13,0x23)+_0xf4cc16(-0xc,0x22)},'signal':AbortSignal[_0xf4cc16(0xd5,0x7d)](0x2710)});if(!_0xe37924['ok'])return null;const _0x242b1c=await _0xe37924[_0xef558(0x386,0x33f)](),_0xf01303=Array[_0xf4cc16(0x99,0x8f)](_0x242b1c)?_0x242b1c:_0x242b1c[_0xef558(0x3b9,0x373)]??_0x242b1c[_0xef558(0x421,0x3f2)]??[],_0x4f8ee3=_0xf01303[_0xf4cc16(0xee,0x92)](_0x26d981=>_0x26d981[_0xef558(0x37d,0x3d0)]===_0x554037);return _0x4f8ee3??null;}catch{return null;}}export async function createAgent(_0x53eda7,_0x535700,_0x253170){function _0x4e4923(_0x4d8ebe,_0xd4a3aa){return _0x5d0e35(_0x4d8ebe-0x4ac,_0xd4a3aa);}function _0xc5c657(_0xbac4ac,_0x516118){return _0x5d0e35(_0xbac4ac-0x153,_0x516118);}try{const _0x520ca3=await fetch(_0x53eda7+(_0xc5c657(0x158,0x164)+_0xc5c657(0x150,0xf6)),{'method':'POST','headers':{'Authorization':_0x4e4923(0x406,0x3d7)+_0x535700,'Content-Type':_0xc5c657(0xf0,0x13d)+_0xc5c657(0xef,0x158)},'body':JSON['stringify']({'name':_0x253170,'description':_0xc5c657(0xc2,0x89)+'e\x20Plugin\x20A'+_0x4e4923(0x427,0x48d)+_0x4e4923(0x4bd,0x4f1)+_0x4e4923(0x40f,0x45f)+_0x4e4923(0x437,0x3f3),'capabilities':[_0x4e4923(0x451,0x44d)+'d',_0xc5c657(0x12d,0x17e)+_0xc5c657(0xbc,0xcd),_0xc5c657(0x104,0x133)+_0x4e4923(0x415,0x432),'memory:del'+_0x4e4923(0x487,0x4a5),_0xc5c657(0x173,0x14f)+_0xc5c657(0x127,0x108)]}),'signal':AbortSignal[_0xc5c657(0x14a,0x18b)](0x2710)});if(!_0x520ca3['ok'])return null;return await _0x520ca3['json']();}catch{return null;}}function _0x5e75(_0x2f08ce,_0x144c66){_0x2f08ce=_0x2f08ce-0x87;const _0x24ab51=_0x24ab();let _0x5e7573=_0x24ab51[_0x2f08ce];if(_0x5e75['vDQIJV']===undefined){var _0x51851d=function(_0x35ba5c){const _0x1cf848='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x908ef9='',_0xe94277='';for(let _0x2a6737=0x0,_0x1149fc,_0x50a495,_0x1da835=0x0;_0x50a495=_0x35ba5c['charAt'](_0x1da835++);~_0x50a495&&(_0x1149fc=_0x2a6737%0x4?_0x1149fc*0x40+_0x50a495:_0x50a495,_0x2a6737++%0x4)?_0x908ef9+=String['fromCharCode'](0xff&_0x1149fc>>(-0x2*_0x2a6737&0x6)):0x0){_0x50a495=_0x1cf848['indexOf'](_0x50a495);}for(let _0x208b8a=0x0,_0x51a60a=_0x908ef9['length'];_0x208b8a<_0x51a60a;_0x208b8a++){_0xe94277+='%'+('00'+_0x908ef9['charCodeAt'](_0x208b8a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xe94277);};_0x5e75['DfwtAx']=_0x51851d,_0x5e75['SRyAFy']={},_0x5e75['vDQIJV']=!![];}const _0x300ec8=_0x24ab51[0x0],_0x13206d=_0x2f08ce+_0x300ec8,_0x270185=_0x5e75['SRyAFy'][_0x13206d];return!_0x270185?(_0x5e7573=_0x5e75['DfwtAx'](_0x5e7573),_0x5e75['SRyAFy'][_0x13206d]=_0x5e7573):_0x5e7573=_0x270185,_0x5e7573;}export function saveServerConfig(_0x2289ba,_0x40a35f,_0xfecf4a){function _0x557eae(_0x25b8e9,_0x215fff){return _0x3a5d36(_0x25b8e9,_0x215fff-0x376);}function _0x4d6ae2(_0x36c744,_0x37d7e4){return _0x3a5d36(_0x37d7e4,_0x36c744-0x4b1);}const _0x43a259=_0x2289ba['load']();_0x43a259['server'][_0x557eae(0x259,0x22f)]=_0x40a35f,_0x2289ba[_0x4d6ae2(0x31d,0x334)](_0x43a259),_0x2289ba[_0x557eae(0x238,0x1f7)](_0xfecf4a);}export function getPluginDir(){function _0x331250(_0x3e28c5,_0x3c49d6){return _0x3a5d36(_0x3c49d6,_0x3e28c5-0x537);}const _0x11c20f=new URL(import.meta.url);function _0x5d226b(_0x45d911,_0x102058){return _0x3a5d36(_0x102058,_0x45d911-0x3aa);}const _0x3efc9c=_0x11c20f[_0x331250(0x38e,0x3a8)],_0x5726c2=_0x3efc9c[_0x5d226b(0x22e,0x1d3)]('/');return _0x5726c2['slice'](0x0,-0x4)[_0x331250(0x3c9,0x36c)]('/');}export function detectGlobalPluginDir(){function _0x1bc6a8(_0x2b2d05,_0x25aaaf){return _0x3a5d36(_0x25aaaf,_0x2b2d05-0x2d1);}try{if('aukZM'===_0x51ded7(0x25a,0x213)){const _0x171432=execSync(_0x51ded7(0x1de,0x214)+'g',{'encoding':_0x1bc6a8(0x183,0x136),'timeout':0x1388})[_0x1bc6a8(0x161,0x10c)](),_0x58b7e7=join(_0x171432,_0x1bc6a8(0x1a7,0x1c2));if(existsSync(_0x58b7e7)){if(_0x51ded7(0x235,0x1e5)===_0x51ded7(0x235,0x20b))return _0x58b7e7;else _0x2f2c0c[_0x1bc6a8(0x18c,0x196)][_0x7f04a]=[...(_0x376bfc['hooks'][_0x58a607]??[])[_0x51ded7(0x227,0x206)](_0x210d08=>!_0x210d08['hooks']?.[_0x1bc6a8(0x1bb,0x17f)](_0x40eda0=>_0x40eda0['command']?.['includes'](_0x51ded7(0x24c,0x29a)))),{'matcher':'','hooks':[{'type':_0x51ded7(0x1b8,0x1a6),'command':_0x1bc6a8(0x15e,0x153)+_0x1a79d7}]}];}}else _0x1f7fda[_0x51ded7(0x23e,0x218)]();}catch{}function _0x51ded7(_0x4acc02,_0x2ed8c4){return _0x3a5d36(_0x2ed8c4,_0x4acc02-0x376);}return getPluginDir();}export function registerHooksToSettings(_0xcd1fe0,_0x520719,_0x5df200){let _0x4cba92={};if(existsSync(_0xcd1fe0)){if(_0x51efac(0x35c,0x313)!==_0x122353(-0x1e7,-0x1d6))_0x4029b0['setRawMode'](![]),_0x45b73b[_0x122353(-0x160,-0x1c5)](),_0x2de4eb['removeList'+_0x51efac(0x344,0x2f5)](_0x51efac(0x399,0x36e),_0x1cc802),_0x5463f2[_0x51efac(0x326,0x32a)][_0x122353(-0x1d3,-0x1f3)]('\x0a'),_0x148961(_0x11b8eb);else try{_0x4cba92=JSON[_0x122353(-0x173,-0x172)](readFileSync(_0xcd1fe0,_0x51efac(0x31e,0x371)));}catch{}}!_0x4cba92[_0x122353(-0x19f,-0x1be)]&&(_0x4cba92[_0x51efac(0x340,0x32b)]={});const _0x3073b5=Object[_0x51efac(0x31c,0x2db)](_0x4cba92[_0x51efac(0x308,0x32b)])[_0x51efac(0x36d,0x35a)](_0x9e55dc=>_0x9e55dc['some'](_0x5d7f17=>_0x5d7f17[_0x122353(-0x165,-0x1be)]?.[_0x51efac(0x352,0x35a)](_0x52d962=>_0x52d962[_0x51efac(0x2d1,0x2b2)]?.['includes'](_0x51efac(0x2dc,0x346)))));if(_0x3073b5&&!_0x5df200)return{'registered':![],'alreadyExisted':!![]};const _0x3ced53=join(_0x520719,_0x122353(-0x151,-0x189),'hooks'),_0x1ce724=[[_0x122353(-0x250,-0x201)+'rt',join(_0x3ced53,_0x122353(-0x20b,-0x1d1)+_0x51efac(0x299,0x2ef))],[_0x51efac(0x34f,0x36b)+'e',join(_0x3ced53,_0x122353(-0x1c3,-0x169)+_0x122353(-0x248,-0x21c))],[_0x51efac(0x350,0x2f7),join(_0x3ced53,_0x122353(-0x180,-0x1ca)+'d.js')],['UserPrompt'+_0x51efac(0x334,0x31e),join(_0x3ced53,_0x51efac(0x311,0x2bb)+'t-submit.j'+'s')],[_0x122353(-0x17c,-0x16f),join(_0x3ced53,_0x51efac(0x377,0x314)+_0x51efac(0x33d,0x32d))]];for(const [_0x469689,_0x70ce8b]of _0x1ce724){_0x122353(-0x1b7,-0x1b8)===_0x122353(-0x165,-0x1b8)?_0x4cba92[_0x51efac(0x35c,0x32b)][_0x469689]=[...(_0x4cba92[_0x122353(-0x223,-0x1be)][_0x469689]??[])[_0x122353(-0x226,-0x1c8)](_0x2c3ab2=>!_0x2c3ab2[_0x122353(-0x1fc,-0x1be)]?.[_0x51efac(0x348,0x35a)](_0xf150f5=>_0xf150f5[_0x122353(-0x258,-0x237)]?.[_0x51efac(0x2c4,0x327)](_0x51efac(0x339,0x346)))),{'matcher':'','hooks':[{'type':'command','command':'node\x20'+_0x70ce8b}]}]:(_0x454dff=_0x489a13[_0x122353(-0x1a7,-0x19a)],_0x5c7d51['log']('\x20\x20Password'+':\x20'+_0xd99ee9[_0x122353(-0x20c,-0x231)](_0x122353(-0x130,-0x193)+_0x122353(-0x212,-0x1f6))));}const _0x5483af=join(homedir(),_0x122353(-0x1df,-0x194));!existsSync(_0x5483af)&&mkdirSync(_0x5483af,{'recursive':!![]});function _0x122353(_0x160c85,_0x81a01){return _0x3a5d36(_0x160c85,_0x81a01- -0x79);}writeFileSync(_0xcd1fe0,JSON[_0x51efac(0x31c,0x31c)](_0x4cba92,null,0x2),_0x122353(-0x1a2,-0x178));function _0x51efac(_0x316206,_0x4aebb6){return _0x3a5d36(_0x316206,_0x4aebb6-0x470);}return{'registered':!![],'alreadyExisted':![]};}export async function runSetupWizard(_0x3c9498={}){function _0x2edf4a(_0x3bb888,_0x16a65c){return _0x5d0e35(_0x3bb888-0x142,_0x16a65c);}function _0x12ba53(_0x5ca6bd,_0x3fae76){return _0x5d0e35(_0x3fae76-0x254,_0x5ca6bd);}const _0x1832ae={'success':![],'serverUrl':_0x3c9498[_0x2edf4a(0xc6,0x10c)]??DEFAULT_SERVER_URL,'hooksRegistered':![]},_0x217582=createRl();try{if('OVTKc'===_0x12ba53(0x171,0x1cd))return _0x51e280[_0x2edf4a(0xb9,0x9f)](_0x3aad4f[_0x2edf4a(0xa3,0x78)](_0x2edf4a(0xc3,0xe5))),_0x4e4c88[_0x12ba53(0x1cf,0x1cb)](_0x31aadc['red'](_0x12ba53(0x1fd,0x1dd)+_0x2edf4a(0x9d,0x68)+_0x2edf4a(0xc9,0x77)+'t\x20'+_0x154858)),_0x5b0f36[_0x2edf4a(0x9b,0xd1)]=_0x2edf4a(0x14f,0x16e)+'ch\x20server\x20'+'at\x20'+_0x3906b1,_0x4232be;else{console[_0x12ba53(0x1c7,0x1cb)](''),console[_0x12ba53(0x208,0x1cb)](_0x2574a5[_0x12ba53(0x19c,0x1d1)](_0x12ba53(0x282,0x231)+_0x2edf4a(0x16d,0x149)+_0x2edf4a(0x16d,0x191)+_0x12ba53(0x1f0,0x209))),console['log'](_0x2574a5[_0x2edf4a(0xbf,0xbd)]('║')+_0x2574a5[_0x12ba53(0x21d,0x1d9)](_0x12ba53(0x20b,0x201)+_0x2edf4a(0xe2,0x13a)+_0x12ba53(0x22d,0x246)+_0x12ba53(0x14d,0x1b9))+_0x2574a5['cyan']('║')),console['log'](_0x2574a5[_0x2edf4a(0xbf,0xd6)](_0x12ba53(0x27c,0x243)+'══════════'+_0x12ba53(0x250,0x27f)+_0x12ba53(0x1e2,0x1f3))),console[_0x12ba53(0x1f5,0x1cb)](''),console[_0x12ba53(0x1d9,0x1cb)](_0x2574a5['bold']('Step\x201/4:\x20'+'Server\x20Con'+_0x12ba53(0x250,0x270)));let _0xde55ac;_0x3c9498['serverUrl']?(_0xde55ac=_0x3c9498['serverUrl'],console[_0x2edf4a(0xb9,0xdc)](_0x12ba53(0x265,0x24f)+_0x12ba53(0x216,0x26e)+_0x2574a5['cyan'](_0xde55ac)+'\x20'+_0x2574a5[_0x12ba53(0x1fe,0x1b0)]('(from\x20opti'+_0x12ba53(0x1e9,0x1eb)))):_0xde55ac=await promptWithDefault(_0x217582,_0x12ba53(0x2a4,0x262),DEFAULT_SERVER_URL);try{new URL(_0xde55ac);}catch{return console[_0x12ba53(0x1d0,0x1cb)](_0x2574a5[_0x12ba53(0x19c,0x1b5)](_0x12ba53(0x283,0x26a)+_0x2edf4a(0x168,0x161)+_0x2edf4a(0xaa,0x81)+_0xde55ac)),_0x1832ae[_0x2edf4a(0x9b,0xb4)]='Invalid\x20UR'+_0x2edf4a(0xaf,0x97)+_0xde55ac,_0x1832ae;}process[_0x12ba53(0x289,0x222)][_0x2edf4a(0xdc,0x126)](_0x12ba53(0x225,0x1ca)+_0x12ba53(0x247,0x1de)+_0x2edf4a(0x10c,0xd1)+'.\x20');const _0x5be285=await checkServerHealth(_0xde55ac);if(!_0x5be285)return console['log'](_0x2574a5[_0x12ba53(0x217,0x1b5)](_0x12ba53(0x1e7,0x1d5))),console[_0x12ba53(0x1ee,0x1cb)](_0x2574a5['red'](_0x12ba53(0x1be,0x1dd)+'annot\x20reac'+'h\x20server\x20a'+'t\x20'+_0xde55ac)),_0x1832ae['error']='Cannot\x20rea'+_0x2edf4a(0x119,0x113)+_0x12ba53(0x299,0x256)+_0xde55ac,_0x1832ae;console['log'](_0x2574a5[_0x12ba53(0x24f,0x267)]('ok')),_0x1832ae[_0x2edf4a(0xc6,0xbf)]=_0xde55ac,console[_0x12ba53(0x21c,0x1cb)](''),console[_0x2edf4a(0xb9,0x9a)](_0x2574a5[_0x2edf4a(0xc7,0x12c)]('Step\x202/4:\x20'+'Authentica'+'tion'));let _0x284953,_0x1d76f3;_0x3c9498['email']?(_0x284953=_0x3c9498[_0x12ba53(0x1a5,0x203)],console[_0x12ba53(0x1d7,0x1cb)](_0x12ba53(0x299,0x238)+_0x12ba53(0x22a,0x26c)+_0x2574a5[_0x12ba53(0x201,0x1d1)](_0x284953)+'\x20'+_0x2574a5[_0x12ba53(0x21b,0x1b0)]('(from\x20opti'+_0x12ba53(0x1c5,0x1eb)))):_0x284953=await promptWithDefault(_0x217582,_0x2edf4a(0x109,0x158)+'l','admin@a2am'+_0x2edf4a(0x132,0xea));_0x3c9498[_0x12ba53(0x1f4,0x247)]?(_0x1d76f3=_0x3c9498['password'],console['log']('\x20\x20Password'+':\x20'+_0x2574a5[_0x2edf4a(0x9e,0xcd)](_0x2edf4a(0x13c,0x15f)+_0x2edf4a(0xd9,0xe3)))):_0x1d76f3=await promptPassword(_0x217582,_0x2edf4a(0x10b,0x126));process[_0x2edf4a(0x110,0x16c)]['write'](_0x12ba53(0x216,0x1ac)+'cating...\x20');const _0x18751d=await loginAndGetToken(_0xde55ac,_0x284953,_0x1d76f3);if(!_0x18751d)return console['log'](_0x2574a5['red'](_0x12ba53(0x1b3,0x1d5))),console['log'](_0x2574a5[_0x2edf4a(0xa3,0x5e)](_0x2edf4a(0xac,0xc0)+_0x2edf4a(0xb7,0x62)+_0x12ba53(0x28a,0x236)+'.\x20Check\x20em'+_0x12ba53(0x200,0x1c8)+_0x12ba53(0x191,0x1d7))),_0x1832ae[_0x12ba53(0x1f5,0x1ad)]=_0x2edf4a(0xfc,0xae)+_0x12ba53(0x2a9,0x26d)+'d',_0x1832ae;console[_0x2edf4a(0xb9,0x109)](_0x2574a5[_0x12ba53(0x2a1,0x267)]('ok')),console['log']('\x20\x20'+_0x2574a5['green'](_0x12ba53(0x252,0x20e)+_0x12ba53(0x227,0x250)+_0x2edf4a(0xe9,0x137))),console[_0x12ba53(0x1a4,0x1cb)](''),console['log'](_0x2574a5[_0x12ba53(0x1f5,0x1d9)](_0x2edf4a(0x12e,0xe5)+_0x12ba53(0x279,0x27c)+'stration'));let _0xb7403e,_0x51e3eb;process[_0x12ba53(0x1f5,0x222)][_0x12ba53(0x231,0x1ee)]('\x20\x20Checking'+_0x2edf4a(0xa6,0xb1)+'ing\x20agent\x20'+'\x27'+AGENT_NAME+_0x2edf4a(0xf0,0xbd));const _0x51bc7b=await findExistingAgent(_0xde55ac,_0x18751d,AGENT_NAME);if(_0x51bc7b)console[_0x12ba53(0x230,0x1cb)](_0x2574a5['yellow'](_0x12ba53(0x1ef,0x1c2))),console[_0x2edf4a(0xb9,0x80)]('\x20\x20'+_0x2574a5[_0x2edf4a(0x130,0x119)](_0x12ba53(0x293,0x22c)+_0x12ba53(0x19c,0x1b4))+_0x12ba53(0x25b,0x237)+_0x51bc7b['id']+')'),_0xb7403e=_0x51bc7b['id'],_0x51bc7b['api_key']?(_0x51e3eb=_0x51bc7b[_0x12ba53(0x28c,0x248)],console[_0x12ba53(0x227,0x1cb)]('\x20\x20'+_0x2574a5[_0x12ba53(0x21c,0x267)](_0x2edf4a(0x97,0xbf)+_0x12ba53(0x182,0x1b6)))):(console[_0x12ba53(0x1a4,0x1cb)](_0x2574a5['yellow'](_0x2edf4a(0xec,0xa1)+_0x2edf4a(0x127,0x109)+'agent\x20API\x20'+_0x12ba53(0x205,0x25c)+'turned\x20by\x20'+_0x2edf4a(0x12d,0x116))),console['log'](_0x2574a5[_0x2edf4a(0x130,0x175)](_0x12ba53(0x26c,0x211)+'etrieve\x20th'+_0x12ba53(0x1ce,0x22a)+'manually\x20f'+_0x2edf4a(0x15f,0x186)+_0x12ba53(0x24c,0x233))),_0x51e3eb='');else{console[_0x2edf4a(0xb9,0x56)](_0x2574a5[_0x2edf4a(0x9e,0x64)](_0x2edf4a(0xd0,0x6d))),process[_0x12ba53(0x21b,0x222)][_0x12ba53(0x235,0x1ee)](_0x2edf4a(0x123,0xcb)+'\x20agent\x20\x27'+AGENT_NAME+'\x27...\x20');const _0x586bb4=await createAgent(_0xde55ac,_0x18751d,AGENT_NAME);if(!_0x586bb4)return console['log'](_0x2574a5[_0x12ba53(0x177,0x1b5)](_0x12ba53(0x204,0x1d5))),console[_0x12ba53(0x223,0x1cb)](_0x2574a5[_0x2edf4a(0xa3,0xf2)](_0x12ba53(0x1cc,0x213)+_0x12ba53(0x274,0x255)+_0x2edf4a(0x141,0x145)+'t.')),_0x1832ae[_0x2edf4a(0x9b,0x7a)]='Agent\x20crea'+_0x12ba53(0x285,0x26d)+'d',_0x1832ae;console['log'](_0x2574a5[_0x2edf4a(0x155,0x135)](_0x2edf4a(0xae,0x10f))),console['log']('\x20\x20'+_0x2574a5[_0x2edf4a(0x155,0x100)](_0x12ba53(0x248,0x241)+'ted')+_0x12ba53(0x296,0x237)+_0x586bb4['id']+')'),_0xb7403e=_0x586bb4['id'],_0x51e3eb=_0x586bb4['api_key'];}if(_0x51e3eb){const _0x3b0612=_0x51e3eb['slice'](0x0,0xc)+_0x2edf4a(0xfb,0xc5);console[_0x2edf4a(0xb9,0x64)]('\x20\x20'+_0x2574a5[_0x2edf4a(0x155,0x19d)](_0x12ba53(0x2a0,0x25a)+_0x2edf4a(0x114,0x110))+'\x20'+_0x2574a5[_0x2edf4a(0xbf,0x86)](_0x3b0612));}_0x1832ae[_0x2edf4a(0x120,0xd8)]=_0xb7403e,_0x1832ae[_0x12ba53(0x1e3,0x1d6)]=_0x51e3eb;const _0x2d78bd=new ConfigManager();if(_0x51e3eb)saveServerConfig(_0x2d78bd,_0xde55ac,_0x51e3eb);else{const _0x52d85b=_0x2d78bd[_0x12ba53(0x1d9,0x1e5)]();_0x52d85b[_0x12ba53(0x1af,0x20a)]['url']=_0xde55ac,_0x2d78bd[_0x2edf4a(0xc2,0x89)](_0x52d85b);}console[_0x2edf4a(0xb9,0xe1)](''),console[_0x2edf4a(0xb9,0xdf)](_0x2574a5[_0x12ba53(0x177,0x1d9)](_0x2edf4a(0x128,0x12c)+_0x2edf4a(0xfd,0x12f)+_0x2edf4a(0x152,0x18d)));const _0x551c9a=detectGlobalPluginDir(),_0x3df708=registerHooksToSettings(CLAUDE_SETTINGS_PATH,_0x551c9a,_0x3c9498['force']??![]);return _0x3df708[_0x2edf4a(0x103,0x12c)+'sted']?(console[_0x2edf4a(0xb9,0xa2)]('\x20\x20'+_0x2574a5['yellow']('Hooks\x20alre'+'ady\x20regist'+_0x12ba53(0x1c7,0x206))+('\x20(use\x20--fo'+_0x2edf4a(0xd8,0xfb)+'rwrite)')),_0x1832ae[_0x12ba53(0x254,0x27e)+_0x12ba53(0x18f,0x1d2)]=![]):(console[_0x12ba53(0x20b,0x1cb)]('\x20\x20'+_0x2574a5[_0x12ba53(0x2ba,0x267)](_0x12ba53(0x214,0x1c3)+'e\x20settings'+_0x2edf4a(0xca,0xdf)+_0x12ba53(0x1f5,0x218))),console[_0x2edf4a(0xb9,0x101)]('\x20\x20'+_0x2574a5[_0x2edf4a(0x155,0x14f)]('5\x20hooks\x20re'+_0x12ba53(0x27f,0x27b))+'\x20'+_0x2574a5[_0x12ba53(0x1c8,0x1b0)](_0x2edf4a(0x100,0x106)+_0x2edf4a(0xee,0x156)+_0x12ba53(0x25f,0x277)+_0x2edf4a(0x156,0x101)+_0x2edf4a(0xa8,0x62)+'Submit,\x20Pr'+'eCompact)')),_0x1832ae['hooksRegis'+_0x12ba53(0x21e,0x1d2)]=!![]),console['log'](''),console[_0x12ba53(0x161,0x1cb)](_0x2574a5[_0x12ba53(0x22b,0x1d1)](_0x2edf4a(0x16d,0x1a1)+_0x2edf4a(0x16d,0x199)+_0x12ba53(0x27e,0x27f)+_0x2edf4a(0x129,0xd8))),console['log'](_0x2574a5[_0x2edf4a(0x155,0x137)][_0x2edf4a(0xc7,0xba)](_0x2edf4a(0x11b,0xb8)+'mplete!\x20Re'+'start\x20Clau'+_0x12ba53(0x267,0x25e))),console['log'](_0x2574a5[_0x2edf4a(0xbf,0xc3)](_0x2edf4a(0x16d,0x197)+_0x12ba53(0x283,0x27f)+_0x2edf4a(0x16d,0x181)+'═════════')),console[_0x2edf4a(0xb9,0x9c)](''),_0x1832ae[_0x2edf4a(0xd6,0xf5)]=!![],_0x1832ae;}}finally{_0x217582[_0x2edf4a(0x11e,0xb8)]();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x33305c,_0x2ebe6e){function _0x4a63e4(_0x166def,_0x3ec53a){return _0x32cf(_0x3ec53a-0x184,_0x166def);}const _0xfb7c84=_0x33305c();function _0x2ce2e8(_0x51a4c6,_0x1531a7){return _0x32cf(_0x51a4c6- -0x347,_0x1531a7);}while(!![]){try{const _0x2dafe4=parseInt(_0x2ce2e8(-0x266,-0x241))/0x1*(-parseInt(_0x2ce2e8(-0x2bd,-0x2bd))/0x2)+parseInt(_0x4a63e4(0x25e,0x245))/0x3+parseInt(_0x4a63e4(0x288,0x251))/0x4+parseInt(_0x4a63e4(0x232,0x1f5))/0x5*(parseInt(_0x2ce2e8(-0x2cc,-0x2b5))/0x6)+parseInt(_0x4a63e4(0x1df,0x1ee))/0x7+parseInt(_0x4a63e4(0x256,0x263))/0x8*(-parseInt(_0x2ce2e8(-0x2a1,-0x294))/0x9)+-parseInt(_0x4a63e4(0x25f,0x23f))/0xa;if(_0x2dafe4===_0x2ebe6e)break;else _0xfb7c84['push'](_0xfb7c84['shift']());}catch(_0x18440a){_0xfb7c84['push'](_0xfb7c84['shift']());}}}(_0x391d,0x2055a));function _0x5d9005(_0x34a227,_0x4631a0){return _0x32cf(_0x34a227-0x3c2,_0x4631a0);}import{Command}from'commander';import{existsSync,readFileSync,writeFileSync,mkdirSync}from'node:fs';import{join}from'node:path';import{homedir}from'node:os';import _0x237472 from'chalk';import _0x4be298 from'ora';import{ConfigManager}from'../../config/manager.js';import{MemoryDatabase}from'../../db/database.js';import{findSessionFiles}from'../../session/parser.js';import{runSetupWizard}from'./setup-wizard.js';function _0x391d(){const _0x4b3f51=['DxrMltG','sw50zxjHy3rPDG','Bg9N','DcbHDxrVq2fWDa','yM9Sza','ug9ZDfrVB2XvCW','BI4UlG','B3vYihf1zxj5iG','EgLZDgLUzYbZzq','Bw9YAwvZoIa','Dc5QCW','y29TBwfUza','uhjLq29TCgfJDa','igv4Axn0Aw5Nia','C2vZC2LVBI1ZDa','BwfPBd4','EsbqBhvNAw4','zxr1CcbLDMvUia','ntuXmte1weT5yKXt','zc5QCW','CgfZC3DVCMq','DxjS','zsbOB29RCYbYzq','lMnSyxvKzq','zM9Yy2u','zgvKicHTB2rLoG','zs4UlG','ls13AxPHCMq','zsbZzxr1Ccb3Aq','Aw5JBhvKzxm','q2XHDwrLihnLDa','B2rLigHVB2TZlG','vxnLCLbYB21WDa','q29UzMLNigrPCG','u3vIBwL0','C3rLCMvKicH1CW','ls1MB3jJzq','rgf0ywjHC2uGAq','B25MAwCGzgLYzq','ndGWotaZmervtNrmtW','u2vZC2LVBLn0yq','DxnLlMPZ','Dg90ywXnzw1VCG','y3LHBG','ig5VDcbWyxjZzq','nZKYmJu4EuftBezK','zxjYB3i','q29UzMLNigXVyq','C3vJy2vLza','ytjHlw1LBw9YEq','B3j5ifbSDwDPBG','cUkCKYbtzxr1CcbJ','zsbOB29RCYbHBa','z2v0u3rHDhm','B25MAwD1CMf0Aq','B0DMr2i','Bw9Kzq','ote3nZCYuvfPte9Z','Dc1ZDwjTAxqUAG','Ag9VA3m','DMfSDwvZ','C3nPB25ZoIa','zMLSDgvY','ls1LBwfPBca8zq','CMvHzhKGCMvNAq','tg9HzgLUzYbJBW','BML0AwfSAxPLza','ig1LBw9YAwvZkq','q2XHDwrLienVza','y2XVC2u','B3b0Aw9U','DgLUz3m','D2HPDgu','C3rHCNq','AM9PBG','mtzgD1D5ufu','ifnLyxjJAcbTzq','mJiYodqXrxfvCgrc','C2v0Dxa','q3jLyxrPBMCGyW','zgLT','CuP6vfu','zcb0CNvL','C3bSAxq','z3jLzw4','mtCZntqYnKPusMzRta','CgfYC2u','C2v0DgLUz3mUAG','ihnLyxjJAcaIEq','z2LZDgvYzwq','igv4DhjHy3q','BMuTy2XPy2SGyW','mZyYmde1u0jptMHw','rM9Yy2uGCMuTCW','idXWyxnZD29Yza','DgGGls13AxPHCG','zsaTlwzVCMnLia','BM9Kzsa','y3rVCNKUlI4','uMvNAxn0zxjPBG','Dg8GB3zLCNDYAq','AwvZ','mtHVr01gu2q','ihDPDgGGls13Aq','BgvUz3rO','C29Tzq','z2v0q29UzMLNra','yxj0lMPZ','zwn0B3j5oIa','B21WBgv0zsek','qwrTAw4Gzw1HAq','Cg9ZDc10B29Slq','zw1HAwW','zgLZDa','w2eYyv0Gv2fYBG','AwyGywXYzwfKEq','D29YzcaODxnLza','mMjxELLeza','zgvZy3jPChrPBW','ignVBMzPzYbZzq','C2vZC2LVBI1LBG','sw5PDgLHBgL6zq','Aw5NoIbdB3vSza','Cgf0Aa','AcaTlxDPEMfYza','u2vZC2LVBKvUza','u2vYDMvYifvsta'];_0x391d=function(){return _0x4b3f51;};return _0x391d();}function _0x430e52(_0x46d586,_0x9e199d){return _0x32cf(_0x46d586- -0x87,_0x9e199d);}const CLAUDE_SETTINGS_PATH=join(homedir(),_0x430e52(0x24,0x36),_0x430e52(-0x1b,0x15)+'son');export function setupCommand(){function _0x4e9b2d(_0x495bbe,_0x46113f){return _0x430e52(_0x495bbe-0x440,_0x46113f);}function _0x4bdf82(_0x58bc11,_0x5b749c){return _0x430e52(_0x58bc11-0x394,_0x5b749c);}return new Command(_0x4bdf82(0x3ef,0x3d7))[_0x4e9b2d(0x444,0x47e)+'n'](_0x4e9b2d(0x447,0x41a)+'\x20A2A\x20Memor'+_0x4bdf82(0x3b1,0x3d0))[_0x4e9b2d(0x493,0x467)](_0x4bdf82(0x3c5,0x395),_0x4e9b2d(0x42b,0x455)+_0x4e9b2d(0x45e,0x493)+_0x4e9b2d(0x441,0x429)+'\x20configure'+'d')[_0x4bdf82(0x3e7,0x3c8)](_0x4e9b2d(0x468,0x494),_0x4bdf82(0x3a2,0x36d)+_0x4bdf82(0x3bd,0x3f8)+'zard\x20for\x20o'+_0x4e9b2d(0x429,0x439)+_0x4bdf82(0x3d7,0x3a9)+'on')['option']('--url\x20<url'+'>',_0x4e9b2d(0x44c,0x47e)+'\x20(used\x20wit'+_0x4bdf82(0x39e,0x36e)+')')[_0x4bdf82(0x3e7,0x401)](_0x4bdf82(0x3e0,0x3ef)+_0x4e9b2d(0x45c,0x42c),_0x4bdf82(0x390,0x38f)+'l\x20(used\x20wi'+_0x4bdf82(0x381,0x359)+'d)')[_0x4e9b2d(0x493,0x49b)]('--password'+_0x4bdf82(0x380,0x36c)+'>','Admin\x20pass'+_0x4e9b2d(0x442,0x443)+_0x4e9b2d(0x435,0x435)+'zard)')['action'](async _0x5c0559=>{if(_0x5c0559['wizard']){await runSetupWizard({'serverUrl':_0x5c0559[_0x401202(-0xf5,-0x125)],'email':_0x5c0559[_0x401202(-0x17d,-0x149)],'password':_0x5c0559[_0x3af6d4(0x1a,-0x10)],'force':_0x5c0559[_0x3af6d4(0x1e,0x5a)]});return;}console[_0x3af6d4(0x8,0x33)](_0x237472['bold']('\x0a🚀\x20A2A\x20Mem'+_0x3af6d4(0x38,0x50)+'\x20Setup\x0a'));let _0x61bd68=_0x4be298(_0x401202(-0xdc,-0xeb)+_0x3af6d4(0x2c,-0x3)+_0x401202(-0x15c,-0x157))[_0x401202(-0xe0,-0xf1)]();const _0x2a23f7=new ConfigManager(),_0x5152d1=_0x2a23f7[_0x3af6d4(-0xf,0x8)+'ir']();_0x61bd68[_0x3af6d4(0x36,0x6a)](_0x401202(-0x115,-0x119)+_0x3af6d4(-0xd,-0x42)+_0x237472[_0x3af6d4(0x31,0x4)](_0x5152d1));function _0x3af6d4(_0x5f3298,_0x1366c1){return _0x4e9b2d(_0x5f3298- -0x447,_0x1366c1);}_0x61bd68=_0x4be298(_0x3af6d4(0x47,0xb)+'nfiguratio'+_0x401202(-0x120,-0x134))[_0x3af6d4(0x4f,0x8c)]();const _0x565f59=_0x2a23f7['load']();_0x61bd68[_0x401202(-0xe7,-0x10a)](_0x401202(-0x11b,-0x10b)+_0x401202(-0x136,-0x121)+'\x20'+_0x237472['yellow'](_0x565f59[_0x401202(-0x131,-0x102)])+')'),_0x61bd68=_0x4be298('Initializi'+'ng\x20databas'+_0x3af6d4(0x20,0x32))[_0x401202(-0x11a,-0xf1)]();const _0xa1eeeb=new MemoryDatabase(_0x565f59['db'][_0x3af6d4(0x2,-0x19)]);_0xa1eeeb['initialize']();const _0x5ae30e=_0xa1eeeb[_0x3af6d4(0x3b,0x43)]();_0xa1eeeb[_0x401202(-0xda,-0xf5)](),_0x61bd68[_0x3af6d4(0x36,0x8)](_0x401202(-0x14d,-0x115)+_0x401202(-0x135,-0xf8)+'\x20('+_0x237472[_0x3af6d4(-0x25,-0x22)](_0x5ae30e[_0x3af6d4(0x30,0x32)+_0x3af6d4(-0x14,-0xc)])+_0x401202(-0x11c,-0xf7));const _0x4fe0f3=findSessionFiles();_0x4fe0f3[_0x401202(-0x157,-0x151)]>0x0&&console[_0x401202(-0x10b,-0x138)](_0x237472['blue']('\x20\x20\x20ℹ\x20Found'+'\x20'+_0x4fe0f3[_0x401202(-0x12e,-0x151)]+(_0x401202(-0x108,-0x12d)+'session\x20fi'+'le(s)')));_0x61bd68=_0x4be298(_0x401202(-0x149,-0x156)+'g\x20Claude\x20C'+_0x3af6d4(0x25,-0x8)+'..')['start']();const _0x18f0cf=registerHooks(_0x5c0559[_0x401202(-0x11d,-0x122)]);function _0x401202(_0x4404e4,_0x3ed0bf){return _0x4e9b2d(_0x3ed0bf- -0x587,_0x4404e4);}_0x18f0cf?_0x61bd68[_0x3af6d4(0x36,0xa)](_0x401202(-0xe5,-0xf6)+_0x3af6d4(0x1c,0x2e)+_0x3af6d4(-0x20,-0x1d)):_0x61bd68['warn'](_0x3af6d4(0x4a,0x6a)+_0x3af6d4(0x3a,0x33)+_0x3af6d4(0x46,0x58)+_0x3af6d4(0x29,0x1b)+_0x3af6d4(-0x19,-0x16)+_0x401202(-0x15f,-0x155)+'te)'),console[_0x3af6d4(0x8,0x22)](_0x237472['green'][_0x3af6d4(0xa,0x12)](_0x401202(-0x105,-0x107)+_0x401202(-0x15f,-0x14c))),console[_0x401202(-0x13f,-0x138)](_0x237472[_0x3af6d4(-0x29,-0x58)]('Next\x20steps'+':')),console[_0x401202(-0x150,-0x138)]('\x20\x20'+_0x237472[_0x3af6d4(0x31,0x68)]('1.')+('\x20Enable\x20au'+'to-capture'+':\x20')+_0x237472['white'](_0x401202(-0xe3,-0x109)+_0x401202(-0x14b,-0x142)+_0x401202(-0x170,-0x137)+'ure.enable'+_0x401202(-0x12b,-0x167))),console[_0x3af6d4(0x8,0x24)]('\x20\x20'+_0x237472[_0x3af6d4(0x31,0x62)]('2.')+('\x20Extract\x20e'+_0x401202(-0x15f,-0x132)+_0x401202(-0x12f,-0xfd))+_0x237472[_0x3af6d4(0x4e,0x5e)](_0x3af6d4(0x37,0x57)+_0x3af6d4(-0x1f,-0x42))),console[_0x401202(-0x12e,-0x138)]('\x20\x20'+_0x237472[_0x3af6d4(0x31,0x26)]('3.')+(_0x3af6d4(0x52,0x16)+_0x3af6d4(0xf,0x47))+_0x237472[_0x401202(-0x122,-0xf2)]('a2a-memory'+_0x401202(-0x186,-0x161)+_0x3af6d4(0xd,-0xb))+'\x0a');});}function _0x32cf(_0x351648,_0x365144){_0x351648=_0x351648-0x65;const _0x391db0=_0x391d();let _0x32cfca=_0x391db0[_0x351648];if(_0x32cf['ZQBWzL']===undefined){var _0x48b81b=function(_0x20c899){const _0x45ef41='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x42ee21='',_0x5cbea7='';for(let _0x4dfde0=0x0,_0x372bec,_0x597aeb,_0x10932b=0x0;_0x597aeb=_0x20c899['charAt'](_0x10932b++);~_0x597aeb&&(_0x372bec=_0x4dfde0%0x4?_0x372bec*0x40+_0x597aeb:_0x597aeb,_0x4dfde0++%0x4)?_0x42ee21+=String['fromCharCode'](0xff&_0x372bec>>(-0x2*_0x4dfde0&0x6)):0x0){_0x597aeb=_0x45ef41['indexOf'](_0x597aeb);}for(let _0x27c86e=0x0,_0x48f481=_0x42ee21['length'];_0x27c86e<_0x48f481;_0x27c86e++){_0x5cbea7+='%'+('00'+_0x42ee21['charCodeAt'](_0x27c86e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5cbea7);};_0x32cf['GQQvjk']=_0x48b81b,_0x32cf['ZNnRVn']={},_0x32cf['ZQBWzL']=!![];}const _0x4c21e4=_0x391db0[0x0],_0x3773aa=_0x351648+_0x4c21e4,_0x5e7071=_0x32cf['ZNnRVn'][_0x3773aa];return!_0x5e7071?(_0x32cfca=_0x32cf['GQQvjk'](_0x32cfca),_0x32cf['ZNnRVn'][_0x3773aa]=_0x32cfca):_0x32cfca=_0x5e7071,_0x32cfca;}function registerHooks(_0x546f19){let _0x4f8c54={};if(existsSync(CLAUDE_SETTINGS_PATH))try{_0x4f8c54=JSON[_0x541612(-0xc0,-0xec)](readFileSync(CLAUDE_SETTINGS_PATH,_0x26be80(0x3a4,0x394)));}catch{console[_0x541612(-0x69,-0x8f)](_0x26be80(0x3b6,0x387)+_0x26be80(0x380,0x38f)+_0x26be80(0x3d3,0x3c0)+_0x26be80(0x37f,0x3a1)+_0x541612(-0x79,-0x3c)+_0x541612(-0x50,-0x5d));}!_0x4f8c54[_0x26be80(0x3ee,0x3cf)]&&('qJzTU'===_0x541612(-0xc5,-0xdf)?_0x4f8c54[_0x541612(-0x5c,-0x78)]={}:_0x48f481[_0x541612(-0x67,-0x96)]('Claude\x20Cod'+_0x541612(-0x81,-0x78)+'gistered'));function _0x26be80(_0x2d017e,_0x498a8b){return _0x430e52(_0x498a8b-0x387,_0x2d017e);}const _0x215674=Object[_0x541612(-0x5b,-0x8b)](_0x4f8c54['hooks'])[_0x26be80(0x375,0x37e)](_0x5d0b21=>_0x5d0b21[_0x26be80(0x398,0x37e)](_0x1a4faf=>_0x1a4faf[_0x541612(-0x5c,-0x94)]?.['some'](_0x4998f0=>_0x4998f0[_0x541612(-0x8c,-0xa5)]?.[_0x26be80(0x3c1,0x3b1)](_0x26be80(0x3fc,0x3c5)))));if(_0x215674&&!_0x546f19){if(_0x541612(-0x60,-0x50)!=='oGfGb')_0x488130[_0x26be80(0x3d3,0x3cf)]={};else return![];}const _0x526217=getPluginDir();_0x4f8c54['hooks']['SessionSta'+'rt']=[...(_0x4f8c54[_0x26be80(0x3cc,0x3cf)][_0x541612(-0x6f,-0x50)+'rt']??[])['filter'](_0x174a14=>!_0x174a14[_0x26be80(0x3df,0x3cf)]?.['some'](_0x449526=>_0x449526['command']?.[_0x26be80(0x3ca,0x3b1)]('a2a-memory'))),{'matcher':'','hooks':[{'type':_0x541612(-0x8c,-0x8f),'command':_0x541612(-0xb5,-0xbe)+join(_0x526217,_0x26be80(0x37d,0x386),_0x541612(-0x5c,-0x8f),_0x541612(-0x89,-0x6b)+_0x26be80(0x379,0x380))}]}];function _0x541612(_0x2b0bbd,_0x167774){return _0x430e52(_0x2b0bbd- -0xa4,_0x167774);}_0x4f8c54[_0x26be80(0x3ae,0x3cf)][_0x541612(-0x92,-0x66)+'e']=[...(_0x4f8c54[_0x541612(-0x5c,-0x48)][_0x26be80(0x360,0x399)+'e']??[])[_0x26be80(0x3e4,0x3d2)](_0x329292=>!_0x329292[_0x26be80(0x3b2,0x3cf)]?.[_0x26be80(0x352,0x37e)](_0x265090=>_0x265090[_0x541612(-0x8c,-0x8b)]?.[_0x26be80(0x3e3,0x3b1)](_0x26be80(0x3fc,0x3c5)))),{'matcher':'','hooks':[{'type':_0x26be80(0x39c,0x39f),'command':_0x541612(-0xb5,-0xa4)+join(_0x526217,_0x26be80(0x37d,0x386),'hooks',_0x541612(-0xa7,-0x7f)+_0x26be80(0x3c2,0x3bd))}]}],_0x4f8c54[_0x541612(-0x5c,-0x4e)][_0x26be80(0x36f,0x392)]=[...(_0x4f8c54[_0x541612(-0x5c,-0x39)][_0x541612(-0x99,-0xd7)]??[])[_0x26be80(0x3fd,0x3d2)](_0x1912d9=>!_0x1912d9[_0x541612(-0x5c,-0x1d)]?.[_0x26be80(0x35f,0x37e)](_0x4073ee=>_0x4073ee[_0x541612(-0x8c,-0x8d)]?.[_0x26be80(0x3cd,0x3b1)]('a2a-memory'))),{'matcher':'','hooks':[{'type':_0x26be80(0x39b,0x39f),'command':_0x541612(-0xb5,-0x7a)+join(_0x526217,_0x26be80(0x39a,0x386),_0x541612(-0x5c,-0x6a),_0x541612(-0x9e,-0x8a)+_0x541612(-0x84,-0x97))}]}],_0x4f8c54[_0x541612(-0x5c,-0x26)][_0x541612(-0x77,-0x75)+_0x26be80(0x377,0x3b6)]=[...(_0x4f8c54[_0x26be80(0x3e6,0x3cf)][_0x26be80(0x3c5,0x3b4)+'Submit']??[])[_0x541612(-0x59,-0x55)](_0x49856c=>!_0x49856c[_0x26be80(0x3f8,0x3cf)]?.[_0x541612(-0xad,-0x97)](_0x276e86=>_0x276e86[_0x26be80(0x382,0x39f)]?.[_0x26be80(0x3bc,0x3b1)]('a2a-memory'))),{'matcher':'','hooks':[{'type':_0x541612(-0x8c,-0xab),'command':_0x541612(-0xb5,-0x94)+join(_0x526217,_0x26be80(0x393,0x386),_0x541612(-0x5c,-0x31),'user-promp'+_0x541612(-0x5d,-0x7c)+'s')}]}],_0x4f8c54[_0x26be80(0x3c9,0x3cf)][_0x541612(-0x8b,-0xb3)]=[...(_0x4f8c54[_0x26be80(0x3d8,0x3cf)]['PreCompact']??[])[_0x541612(-0x59,-0x55)](_0x55e308=>!_0x55e308[_0x26be80(0x3a3,0x3cf)]?.[_0x541612(-0xad,-0x7d)](_0x4d8d6b=>_0x4d8d6b[_0x26be80(0x3c7,0x39f)]?.[_0x26be80(0x3c1,0x3b1)]('a2a-memory'))),{'matcher':'','hooks':[{'type':_0x26be80(0x3d9,0x39f),'command':_0x26be80(0x347,0x376)+join(_0x526217,_0x541612(-0xa5,-0x98),'hooks','pre-compac'+_0x541612(-0x8d,-0x81))}]}];const _0x44a706=join(homedir(),'.claude');return!existsSync(_0x44a706)&&mkdirSync(_0x44a706,{'recursive':!![]}),writeFileSync(CLAUDE_SETTINGS_PATH,JSON['stringify'](_0x4f8c54,null,0x2),_0x541612(-0x97,-0xa2)),!![];}function getPluginDir(){const _0x50d395=new URL(import.meta.url);function _0x16ddd8(_0x1a0dca,_0x1b2ff7){return _0x5d9005(_0x1b2ff7- -0x1c2,_0x1a0dca);}const _0x4968bb=_0x50d395['pathname'];function _0x302e7d(_0x27d341,_0x27ace7){return _0x5d9005(_0x27ace7- -0xce,_0x27d341);}const _0x27663b=_0x4968bb[_0x16ddd8(0x27b,0x268)]('/');return _0x27663b['slice'](0x0,-0x4)[_0x302e7d(0x3ce,0x3d2)]('/');}
|
|
1
|
+
(function(_0x217fbd,_0x59e4ad){function _0x1251f3(_0xc56120,_0x21aaeb){return _0x2a48(_0xc56120-0xf4,_0x21aaeb);}const _0x1e46e5=_0x217fbd();function _0x107178(_0x2773b7,_0x5f4209){return _0x2a48(_0x5f4209- -0x234,_0x2773b7);}while(!![]){try{const _0x2e8399=-parseInt(_0x1251f3(0x2a9,0x2e9))/0x1+parseInt(_0x1251f3(0x27d,0x29e))/0x2+parseInt(_0x107178(-0x9c,-0x8a))/0x3*(parseInt(_0x107178(-0xab,-0x95))/0x4)+-parseInt(_0x1251f3(0x27e,0x2b9))/0x5+-parseInt(_0x1251f3(0x2d1,0x2b0))/0x6+parseInt(_0x107178(-0xc7,-0xaf))/0x7*(parseInt(_0x107178(-0x7d,-0xb2))/0x8)+-parseInt(_0x107178(-0x2f,-0x49))/0x9*(-parseInt(_0x1251f3(0x2d8,0x319))/0xa);if(_0x2e8399===_0x59e4ad)break;else _0x1e46e5['push'](_0x1e46e5['shift']());}catch(_0x48d9e6){_0x1e46e5['push'](_0x1e46e5['shift']());}}}(_0x8567,0x85b78));function _0x8567(){const _0x3abdc4=['mZyWodKXnwjIB0XgBG','zsbZzxr1Ccb3Aq','C2vZC2LVBI1ZDa','zcb0CNvL','DguP','C3bSAxq','zw1HAwW','CMvHzhKGCMvNAq','u3vIBwL0','B3vYihf1zxj5iG','zc5QCW','zgLT','ug9ZDfrVB2XvCW','y29TBwfUza','zsaTlwzVCMnLia','AwvZ','EsbqBhvNAw4','ignVBMzPzYbZzq','DgLUz3m','DxjLlMvUywjSzq','ls1LBwfPBca8zq','nda2nZzNuLfJB3O','sw5PDgLHBgL6Aq','B3j5ifbSDwDPBG','BM9Kzsa','zM9Yy2u','u2vYDMvYifvsta','zsbOB29RCYbHBa','y3rVCNKUlI4','D2HPDgu','u2vZC2LVBKvUza','ignVBMzPz3vYzq','mJKXuuHJBw1e','yM9Sza','Cgf0Aa','BgvUz3rO','yMX1zq','igv4DhjHy3q','q3jLyxrPBMCGyW','C29U','zs4UlG','zxjYB3i','C2v0DgLUz3mUAG','nJa1ndiXD2T0D3vU','Bg9N','Aw5NoIbdB3vSza','Dg90ywXnzw1VCG','zMLSDgvY','C29Tzq','ls11CMWGphvYBa','DcbHDxrVq2fWDa','ls1WyxnZD29Yza','y2XVC2u','y3LHBG','lMnSyxvKzq','z3jLzw4','AcaTlxDPEMfYza','ieeYqsbnzw1VCG','EMfYzcbMB3iGBW','C3vJy2vLza','qwrTAw4GCgfZCW','BcaODxnLzcb3Aq','C2vZC2LVBIbMAq','DxrMltG','icaG4Os5iezVDw5K','icH1C2vKihDPDa','rgf0ywjHC2uGAq','C2XPy2u','ywn0Aw9U','DxnLCI1WCM9TCa','D29YzcaODxnLza','CgfYC2u','u2vZC2LVBLn0yq','ig1LBw9YAwvZkq','C2v0Dxa','BMCGzgf0ywjHCW','vxnLCLbYB21WDa','rM9Yy2uGCMuTCW','q2XHDwrLihnLDa','Cgf0Ag5HBwu','Ag9VA3m','C3rLCMvKicH1CW','C3nPB25ZoIa','mtCZmZq4nhjewM1Lrq','Dg8Ty2fWDhvYzq','Dg8GB3zLCNDYAq','ifnLDhvWcG','cVcFMOaGqtjbie1LBq','q2XHDwrLienVza','zsbOB29RCYbYzq','mJy5mfD5vergrq','z2v0u3rHDhm','yxj0lMPZ','zgLZDa','BMuTy2XPy2SGyW','tg9HzgLUzYbJBW','C3rYAw5NAwz5','mJu0n2fQyMjhCW','tMv4DcbZDgvWCW','sw50zxjHy3rPDG','z2LZDgvYzwq','EwvSBg93','idXWyxnZD29Yza','uhjLq29TCgfJDa','ChjLlwnVBxbHyW','q29UzMLNigXVyq','C3rHCNq','DMfSDwvZ','w2eYyv0Gv2fYBG','zgvKicHTB2rLoG','Aw5JBhvKzxm','ig5VDcbWyxjZzq','B21WBgv0zsek','ytjHlw1LBw9YEq','zgvZy3jPChrPBW','D2L6yxjK','BMzPz3vYyxrPBW','sw5PDgLHBgL6zq','Bg9Hza','D2fYBG','cUkCKYbtzxr1CcbJ','ifnLyxjJAcbTzq','BguOCYK','igv4Axn0Aw5Nia','wfLXyxa','EMfYzcK','mJa5mZzoBMTXBfe','DxnLlMPZ','ls1MB3jJzq','mZiYwevXBujQ','B3b0Aw9U','ievUywjSzsbHDq','ihnLyxjJAcaIEq','mtK2mtG0mgTHBhfgsW'];_0x8567=function(){return _0x3abdc4;};return _0x8567();}function _0x2a48(_0x2fee28,_0x19a8ba){_0x2fee28=_0x2fee28-0x175;const _0x85674c=_0x8567();let _0x2a4875=_0x85674c[_0x2fee28];if(_0x2a48['MtrSFK']===undefined){var _0x2121e0=function(_0x260359){const _0x255ad7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3d39cf='',_0x3119ff='';for(let _0x4b7914=0x0,_0x544e87,_0x483da9,_0x5142aa=0x0;_0x483da9=_0x260359['charAt'](_0x5142aa++);~_0x483da9&&(_0x544e87=_0x4b7914%0x4?_0x544e87*0x40+_0x483da9:_0x483da9,_0x4b7914++%0x4)?_0x3d39cf+=String['fromCharCode'](0xff&_0x544e87>>(-0x2*_0x4b7914&0x6)):0x0){_0x483da9=_0x255ad7['indexOf'](_0x483da9);}for(let _0x48710b=0x0,_0x4d2758=_0x3d39cf['length'];_0x48710b<_0x4d2758;_0x48710b++){_0x3119ff+='%'+('00'+_0x3d39cf['charCodeAt'](_0x48710b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3119ff);};_0x2a48['ZlFLcb']=_0x2121e0,_0x2a48['HxwwsQ']={},_0x2a48['MtrSFK']=!![];}const _0x534146=_0x85674c[0x0],_0x57e330=_0x2fee28+_0x534146,_0x5343ad=_0x2a48['HxwwsQ'][_0x57e330];return!_0x5343ad?(_0x2a4875=_0x2a48['ZlFLcb'](_0x2a4875),_0x2a48['HxwwsQ'][_0x57e330]=_0x2a4875):_0x2a4875=_0x5343ad,_0x2a4875;}import{Command}from'commander';import{existsSync,readFileSync,writeFileSync,mkdirSync}from'node:fs';import{join}from'node:path';import{homedir}from'node:os';import _0x6f10b6 from'chalk';import _0x49db17 from'ora';function _0x31c30d(_0x367868,_0xc96a2d){return _0x2a48(_0xc96a2d-0x111,_0x367868);}import{ConfigManager}from'../../config/manager.js';import{MemoryDatabase}from'../../db/database.js';function _0x487ebf(_0x3f7c62,_0x7eef06){return _0x2a48(_0x7eef06- -0x200,_0x3f7c62);}import{findSessionFiles}from'../../session/parser.js';import{runSetupWizard}from'./setup-wizard.js';const CLAUDE_SETTINGS_PATH=join(homedir(),'.claude',_0x487ebf(-0x48,-0x4c)+_0x487ebf(-0x1b,-0x4f));export function setupCommand(){function _0x38c8f2(_0x3b1e73,_0x20d759){return _0x487ebf(_0x20d759,_0x3b1e73-0x5c0);}function _0x1f23ad(_0xcacccd,_0x245d17){return _0x487ebf(_0x245d17,_0xcacccd-0x32b);}return new Command(_0x38c8f2(0x594,0x560))[_0x1f23ad(0x2a1,0x2bc)+'n'](_0x38c8f2(0x539,0x517)+_0x38c8f2(0x583,0x571)+_0x1f23ad(0x2c5,0x2d9))[_0x1f23ad(0x2b1,0x2ba)](_0x38c8f2(0x544,0x579),_0x38c8f2(0x597,0x56e)+'etup\x20even\x20'+'if\x20already'+_0x38c8f2(0x569,0x576)+'d')['option']('--wizard',_0x1f23ad(0x318,0x312)+_0x1f23ad(0x2b6,0x2cf)+_0x1f23ad(0x2ef,0x326)+_0x38c8f2(0x5a8,0x5d6)+'onfigurati'+'on')[_0x1f23ad(0x2b1,0x2d1)](_0x1f23ad(0x2e6,0x324)+'>',_0x38c8f2(0x564,0x54a)+_0x38c8f2(0x58b,0x549)+_0x1f23ad(0x2ed,0x2c2)+')')[_0x38c8f2(0x546,0x56f)](_0x1f23ad(0x2c9,0x2e3)+'mail>','Admin\x20emai'+_0x38c8f2(0x587,0x574)+'th\x20--wizar'+'d)')[_0x1f23ad(0x2b1,0x272)](_0x38c8f2(0x57d,0x585)+_0x1f23ad(0x31b,0x30b)+'>',_0x1f23ad(0x2f1,0x2ba)+_0x38c8f2(0x590,0x5c0)+'\x20with\x20--wi'+_0x1f23ad(0x2ac,0x279))[_0x38c8f2(0x58e,0x5b5)](async _0x44e895=>{if(_0x44e895[_0x566ede(0x2ef,0x2b6)]){await runSetupWizard({'serverUrl':_0x44e895['url'],'email':_0x44e895[_0x568fc5(-0x34,-0x2b)],'password':_0x44e895['password'],'force':_0x44e895[_0x566ede(0x31b,0x30b)]});return;}function _0x566ede(_0x28c5e1,_0x3e0576){return _0x1f23ad(_0x28c5e1-0x4d,_0x3e0576);}console[_0x566ede(0x32e,0x2ff)](_0x6f10b6[_0x566ede(0x323,0x30e)](_0x566ede(0x359,0x34e)+_0x566ede(0x319,0x31f)+_0x568fc5(-0x19,0x25)));let _0x2c8052=_0x49db17(_0x568fc5(-0x12,-0xb)+'onfig\x20dire'+_0x568fc5(-0x38,-0x15))[_0x566ede(0x36c,0x363)]();const _0x37f3a3=new ConfigManager(),_0x30b02f=_0x37f3a3['getConfigD'+'ir']();_0x2c8052[_0x568fc5(-0x26,0xa)]('Config\x20dir'+'ectory:\x20'+_0x6f10b6[_0x566ede(0x337,0x348)](_0x30b02f)),_0x2c8052=_0x49db17(_0x568fc5(0x38,0x2e)+_0x568fc5(-0x19,-0x43)+'n...')[_0x566ede(0x36c,0x379)]();const _0x51e444=_0x37f3a3[_0x566ede(0x2f2,0x2d2)]();_0x2c8052['succeed'](_0x568fc5(-0x4,0x38)+_0x566ede(0x36f,0x343)+'\x20'+_0x6f10b6[_0x568fc5(0x5f,0x34)](_0x51e444['mode'])+')');function _0x568fc5(_0x51f2f0,_0x794f7a){return _0x1f23ad(_0x794f7a- -0x2e6,_0x51f2f0);}_0x2c8052=_0x49db17(_0x566ede(0x318,0x30e)+_0x568fc5(0x0,0x1a)+_0x568fc5(-0x33,-0x9))[_0x568fc5(0x1,0x39)]();const _0x87b6a6=new MemoryDatabase(_0x51e444['db'][_0x568fc5(-0x47,-0xf)]);_0x87b6a6['initialize']();const _0x1fa23a=_0x87b6a6[_0x568fc5(0x6,0x2a)]();_0x87b6a6[_0x568fc5(-0xe,0x3)](),_0x2c8052['succeed'](_0x568fc5(-0x27,0x11)+'nitialized'+'\x20('+_0x6f10b6['green'](_0x1fa23a[_0x568fc5(-0x45,-0x3)+_0x568fc5(-0x5a,-0x22)])+_0x568fc5(0x2b,0x18));const _0x5543eb=findSessionFiles();_0x5543eb[_0x566ede(0x325,0x32f)]>0x0&&console[_0x566ede(0x32e,0x313)](_0x6f10b6[_0x566ede(0x326,0x304)](_0x566ede(0x342,0x34b)+'\x20'+_0x5543eb[_0x566ede(0x325,0x2f7)]+(_0x568fc5(-0x16,-0x3c)+_0x568fc5(-0x2f,0xd)+_0x566ede(0x2f6,0x2cf))));_0x2c8052=_0x49db17('Registerin'+'g\x20Claude\x20C'+'ode\x20hooks.'+'..')[_0x568fc5(0x50,0x39)]();const _0x1c3b20=registerHooks(_0x44e895[_0x566ede(0x31b,0x332)]);_0x1c3b20?_0x2c8052['succeed'](_0x566ede(0x35a,0x39a)+_0x566ede(0x35b,0x342)+_0x568fc5(0x12,0x33)):_0x2c8052[_0x568fc5(-0x73,-0x40)]('Claude\x20Cod'+_0x568fc5(-0x59,-0x16)+_0x566ede(0x309,0x33d)+_0x568fc5(0x47,0x20)+_0x566ede(0x310,0x2e4)+_0x566ede(0x357,0x362)+_0x568fc5(-0x25,-0x2d)),console[_0x566ede(0x32e,0x36f)](_0x6f10b6[_0x566ede(0x339,0x353)][_0x568fc5(-0x34,-0x10)](_0x566ede(0x2f4,0x2bf)+_0x568fc5(0x65,0x3f))),console[_0x566ede(0x32e,0x325)](_0x6f10b6[_0x568fc5(-0xc,-0x26)](_0x568fc5(0x2b,0x31)+':')),console[_0x568fc5(0x20,-0x5)]('\x20\x20'+_0x6f10b6[_0x566ede(0x337,0x366)]('1.')+(_0x566ede(0x2ff,0x322)+_0x566ede(0x356,0x376)+':\x20')+_0x6f10b6[_0x568fc5(-0x31,-0x14)](_0x568fc5(-0x4,-0x46)+_0x566ede(0x313,0x328)+_0x568fc5(0x17,0x1)+_0x566ede(0x315,0x353)+_0x568fc5(-0x68,-0x2e))),console[_0x566ede(0x32e,0x36f)]('\x20\x20'+_0x6f10b6[_0x566ede(0x337,0x30a)]('2.')+('\x20Extract\x20e'+'xisting\x20se'+_0x566ede(0x354,0x372))+_0x6f10b6['white'](_0x568fc5(-0x76,-0x46)+_0x566ede(0x327,0x2fd))),console[_0x568fc5(0x14,-0x5)]('\x20\x20'+_0x6f10b6['cyan']('3.')+(_0x566ede(0x2f5,0x2bd)+'mories:\x20')+_0x6f10b6[_0x568fc5(-0x2b,-0x14)](_0x566ede(0x2ed,0x31d)+_0x566ede(0x300,0x2f7)+_0x566ede(0x30b,0x2eb))+'\x0a');});}function registerHooks(_0x33e7a6){let _0x1238d7={};if(existsSync(CLAUDE_SETTINGS_PATH))try{'XYqap'!==_0x163471(0x196,0x172)?_0xe08211[_0x468deb(0x25f,0x298)](_0x163471(0x20c,0x1e3)+_0x468deb(0x25a,0x29c)+'\x20not\x20parse'+_0x163471(0x195,0x1a0)+_0x468deb(0x2d6,0x2bd)+_0x468deb(0x282,0x281)):_0x1238d7=JSON[_0x468deb(0x2ab,0x2b6)](readFileSync(CLAUDE_SETTINGS_PATH,_0x163471(0x1df,0x1c5)));}catch{console[_0x163471(0x1c9,0x1f9)]('[a2a]\x20Warn'+_0x163471(0x1cd,0x1d0)+_0x468deb(0x2fa,0x2de)+_0x163471(0x195,0x1c4)+_0x468deb(0x2b5,0x2bd)+_0x468deb(0x255,0x281));}!_0x1238d7[_0x163471(0x1f0,0x1bf)]&&(_0x1238d7['hooks']={});function _0x468deb(_0x56a79b,_0x58abff){return _0x31c30d(_0x56a79b,_0x58abff- -0x2c);}const _0x4dd267=Object[_0x163471(0x20b,0x1da)](_0x1238d7[_0x468deb(0x2cd,0x2bf)])[_0x163471(0x1d0,0x195)](_0x3b2aa3=>_0x3b2aa3[_0x163471(0x1d0,0x1de)](_0x2af8e3=>_0x2af8e3[_0x163471(0x1f0,0x232)]?.[_0x163471(0x1d0,0x1cf)](_0x4a09b8=>_0x4a09b8[_0x468deb(0x26b,0x27c)]?.[_0x163471(0x20e,0x24e)]('a2a-memory'))));if(_0x4dd267&&!_0x33e7a6)return![];const _0x2e7848=getPluginDir();_0x1238d7[_0x468deb(0x2a1,0x2bf)][_0x468deb(0x286,0x2b7)+'rt']=[...(_0x1238d7[_0x468deb(0x2fd,0x2bf)][_0x163471(0x1e8,0x200)+'rt']??[])['filter'](_0x174266=>!_0x174266[_0x163471(0x1f0,0x20b)]?.[_0x468deb(0x267,0x29f)](_0x1536a9=>_0x1536a9[_0x468deb(0x23f,0x27c)]?.[_0x468deb(0x313,0x2dd)](_0x163471(0x18b,0x156)))),{'matcher':'','hooks':[{'type':_0x163471(0x1ad,0x1be),'command':_0x468deb(0x270,0x287)+join(_0x2e7848,_0x163471(0x1fd,0x219),'hooks',_0x468deb(0x233,0x271)+_0x468deb(0x2cc,0x2cb))}]}],_0x1238d7[_0x163471(0x1f0,0x20f)][_0x163471(0x1ac,0x1a8)+'e']=[...(_0x1238d7[_0x468deb(0x2b3,0x2bf)][_0x163471(0x1ac,0x19e)+'e']??[])[_0x468deb(0x2df,0x29e)](_0x9dd67f=>!_0x9dd67f[_0x468deb(0x2a9,0x2bf)]?.[_0x163471(0x1d0,0x18f)](_0x492b11=>_0x492b11[_0x163471(0x1ad,0x199)]?.[_0x468deb(0x2b0,0x2dd)]('a2a-memory'))),{'matcher':'','hooks':[{'type':_0x163471(0x1ad,0x1af),'command':'node\x20'+join(_0x2e7848,_0x468deb(0x293,0x2cc),_0x163471(0x1f0,0x1b3),'post-tool-'+_0x468deb(0x291,0x268))}]}],_0x1238d7['hooks'][_0x468deb(0x27e,0x28d)]=[...(_0x1238d7[_0x163471(0x1f0,0x1c0)][_0x163471(0x1be,0x1db)]??[])[_0x163471(0x1cf,0x1f0)](_0x43c64e=>!_0x43c64e[_0x163471(0x1f0,0x1af)]?.[_0x468deb(0x26f,0x29f)](_0x395633=>_0x395633[_0x468deb(0x24b,0x27c)]?.['includes'](_0x468deb(0x253,0x25a)))),{'matcher':'','hooks':[{'type':'command','command':_0x163471(0x1b8,0x19d)+join(_0x2e7848,'dist',_0x163471(0x1f0,0x1c9),'session-en'+_0x468deb(0x261,0x279))}]}],_0x1238d7['hooks'][_0x163471(0x1ec,0x1fd)+_0x468deb(0x270,0x277)]=[...(_0x1238d7[_0x468deb(0x2c7,0x2bf)][_0x468deb(0x2f4,0x2bb)+_0x163471(0x1a8,0x176)]??[])['filter'](_0x269c27=>!_0x269c27[_0x163471(0x1f0,0x1cb)]?.[_0x468deb(0x2a1,0x29f)](_0xa64ac9=>_0xa64ac9[_0x468deb(0x2ad,0x27c)]?.[_0x163471(0x20e,0x20a)](_0x163471(0x18b,0x160)))),{'matcher':'','hooks':[{'type':_0x468deb(0x2a4,0x27c),'command':_0x468deb(0x24c,0x287)+join(_0x2e7848,_0x163471(0x1fd,0x1bc),_0x468deb(0x2f6,0x2bf),_0x468deb(0x29e,0x2b4)+'t-submit.j'+'s')}]}],_0x1238d7['hooks'][_0x163471(0x207,0x20e)]=[...(_0x1238d7[_0x468deb(0x2be,0x2bf)][_0x163471(0x207,0x227)]??[])[_0x468deb(0x261,0x29e)](_0x431782=>!_0x431782['hooks']?.[_0x163471(0x1d0,0x1e4)](_0x2d1e47=>_0x2d1e47['command']?.[_0x468deb(0x2bb,0x2dd)](_0x468deb(0x266,0x25a)))),{'matcher':'','hooks':[{'type':_0x163471(0x1ad,0x183),'command':_0x163471(0x1b8,0x1ee)+join(_0x2e7848,_0x468deb(0x305,0x2cc),'hooks',_0x468deb(0x2a5,0x2d7)+'t.js')}]}];const _0x2c332b=join(homedir(),_0x468deb(0x2b3,0x2a5));!existsSync(_0x2c332b)&&mkdirSync(_0x2c332b,{'recursive':!![]});writeFileSync(CLAUDE_SETTINGS_PATH,JSON[_0x468deb(0x2fc,0x2cf)](_0x1238d7,null,0x2),'utf-8');function _0x163471(_0x56b835,_0xfe79d){return _0x31c30d(_0xfe79d,_0x56b835- -0xfb);}return!![];}function getPluginDir(){function _0x4ddce4(_0x55121f,_0x8a7b28){return _0x487ebf(_0x55121f,_0x8a7b28-0x304);}const _0x1a4f2d=new URL(import.meta.url);function _0xfd85ad(_0x180272,_0x392add){return _0x487ebf(_0x180272,_0x392add-0x23f);}const _0x4e4366=_0x1a4f2d[_0xfd85ad(0x1e8,0x218)],_0x3bdd45=_0x4e4366[_0x4ddce4(0x2bd,0x293)]('/');return _0x3bdd45[_0xfd85ad(0x242,0x20c)](0x0,-0x4)['join']('/');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3b0b5c,_0x1a160d){function _0x5035c5(_0x4f7ff9,_0x8fb4f0){return _0x3f5b(_0x8fb4f0-0x1dc,_0x4f7ff9);}const _0x80c03d=_0x3b0b5c();function _0x1053e5(_0x298e1a,_0x25ec31){return _0x3f5b(_0x298e1a-0x3d4,_0x25ec31);}while(!![]){try{const _0x2ef0e6=parseInt(_0x5035c5(0x2f5,0x31c))/0x1*(parseInt(_0x5035c5(0x2d4,0x2e6))/0x2)+-parseInt(_0x5035c5(0x2d8,0x2f7))/0x3+-parseInt(_0x1053e5(0x548,0x533))/0x4+-parseInt(_0x1053e5(0x53d,0x559))/0x5+-parseInt(_0x5035c5(0x369,0x33b))/0x6*(-parseInt(_0x1053e5(0x504,0x4d9))/0x7)+parseInt(_0x1053e5(0x531,0x4fe))/0x8+parseInt(_0x1053e5(0x4d5,0x4a2))/0x9*(parseInt(_0x1053e5(0x510,0x54e))/0xa);if(_0x2ef0e6===_0x1a160d)break;else _0x80c03d['push'](_0x80c03d['shift']());}catch(_0x2787ef){_0x80c03d['push'](_0x80c03d['shift']());}}}(_0x3cfe,0x39ed3));import{Command}from'commander';function _0x3f5b(_0x1eaa7b,_0x41a990){_0x1eaa7b=_0x1eaa7b-0xfb;const _0x3cfe19=_0x3cfe();let _0x3f5b13=_0x3cfe19[_0x1eaa7b];if(_0x3f5b['WamiWc']===undefined){var _0x32333c=function(_0x34e244){const _0x32f1f8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x34b25c='',_0x1e54d5='';for(let _0x40c0ab=0x0,_0x58f205,_0x11d2fd,_0x56c47f=0x0;_0x11d2fd=_0x34e244['charAt'](_0x56c47f++);~_0x11d2fd&&(_0x58f205=_0x40c0ab%0x4?_0x58f205*0x40+_0x11d2fd:_0x11d2fd,_0x40c0ab++%0x4)?_0x34b25c+=String['fromCharCode'](0xff&_0x58f205>>(-0x2*_0x40c0ab&0x6)):0x0){_0x11d2fd=_0x32f1f8['indexOf'](_0x11d2fd);}for(let _0x1a483a=0x0,_0x414df4=_0x34b25c['length'];_0x1a483a<_0x414df4;_0x1a483a++){_0x1e54d5+='%'+('00'+_0x34b25c['charCodeAt'](_0x1a483a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1e54d5);};_0x3f5b['NyIQBb']=_0x32333c,_0x3f5b['PBwgVf']={},_0x3f5b['WamiWc']=!![];}const _0x4141a1=_0x3cfe19[0x0],_0x51e81e=_0x1eaa7b+_0x4141a1,_0x5267fa=_0x3f5b['PBwgVf'][_0x51e81e];return!_0x5267fa?(_0x3f5b13=_0x3f5b['NyIQBb'](_0x3f5b13),_0x3f5b['PBwgVf'][_0x51e81e]=_0x3f5b13):_0x3f5b13=_0x5267fa,_0x3f5b13;}import _0x8df90e from'chalk';import _0x1ccb61 from'ora';import{ConfigManager}from'../../config/manager.js';function _0x3cfe(){const _0x320a24=['icbHmMeTBwvTBW','y3jLyxrLza','uwTpsfq','C3vJy2vLza','D2L0AdO','yMXLihnRAwXSqW','CgTiqvO','Aw5PDgLHBgL6zq','C3rHCNrZv2L0Aa','DgLUzYbZA2LSBa','n1LtAKDjBW','rxjYB3iGzhvYAq','icbszxzPzxDLza','zxm6ia','zgvTB3rLza','C2TPChbLza','uMv2Awv3igfUza','CMv2Awv3zwq','CZOG','Dg9gAxHLza','rgvSzxrLigeGCW','icbdB25MAwrLBG','mtm0odu5mezvtKPWva','BMCGzxzHBhvHDa','CMv2Awv3u2TPBa','zgLZywjSzwqUia','mZm1mde4uezhuMfZ','C2TPBgW','B252zxjZAw9Uia','67o066wyktOG','ALbcuum','icbdCMvHDgvKoG','zxjYB3jZ','B252zxjZAw9UlG','BgLZDe1LBw9YAq','ywn0Aw9U','icbby2nLC3m6ia','zw5HyMXLza','DgGGDg8GzxzHBa','zxjYB3i','uMv2Awv3ignVBq','rw5HyMXLigL0ia','zxzHBhvHDgu','C2TPBgXZ','rxzHBhvHDgLUzW','uNvUihnRAwXSia','CNLjzhm','zgLKyxrLCY4UlG','C2XPy2u','C2TPBgXZlI4U','CMv2Awv3','DxnHz2uGkoQWLEUtSsa','AwvZ','zgLT','icbszw5LD2vKoG','mZC4mZeXmMf1BNfqtq','cLnRAwXSCYaO','mta4nJC4BfzvzvLb','zM91BMq6ia','u2TPBgWGBM90ia','icbvBMTUB3DUia','Cgf0Aa','C2vYDMvY','y29TBwfUza','ignVBxbSzxrL','zxHPDa','icbtA2LWCgvKoG','mti4ntC3mhPWteHwuq','CMvK','Dwf0zsiU','Dwf0zq','rgvSzxrLzcbZAW','rxjYB3iGzgvSzq','ig1HBNvHBgX5','A2LSBcbSAwzLyW','Dw5RBM93BLvZyq','EwvSBg93','BgvUz3rO','ota3nJGWrMrYsxLm','DxjS','rxjYB3iGBgLZDa','y29UzMLKzw5Jzq','Aw5NihnRAwXSCW','DgvtDhjPBMC','y2fUzgLKyxrLCW','zxH0CMfJDe1LDa','C2v0ihnRAwXSqW','C3rHCNq','Aw9UoG','Dg9mB2nHBgveyq','ktOk','CNKGy29UzMLNia','AM9PBG','mtHLsvb6rvi','zgvZy3jPChrPBW','EwnSzq','z3jLzw4','zMLUza','A2LSBcbTzw1VCG','u2TPBgWGy29UDG','ywnJzxnZq291BG','Bg9N','mK9eBvvqqG','zxjZAw9UigLZia','AM5XANi','CMv2Awv3rhvLqq','lxaSic0TChjVAG','icbszxzPzxC6ia','su1tDxq','icbezw1VDgvKoG','zw5HyMXLzcb0CG','y29UDgvUDa','BgLZDa','tgLZDcbHBgWGCW','CM0GpgLKpG','zg1vEhG','icaGifnVDxjJzq','icbdyw5KAwrHDa','AwXSoIa','mteYmZe5mvH0whvxza','C3rHBgXPEMvKia','twfUywDLignYEq','y2u6ia','B3b0Aw9U','y2XVC2u','y3LHBG','ihjLzNjLC2GGCW','Bg9Hza','BMCGCMv2Awv3oG','yw13zfm'];_0x3cfe=function(){return _0x320a24;};return _0x3cfe();}import{MemoryDatabase}from'../../db/database.js';import{SkillEvaluator}from'../../skill/evaluator.js';import{A2AClient}from'../../sync/client.js';export function skillCommand(){const _0x41e06d=new Command(_0x536153(0x4a2,0x4bc))[_0x536153(0x49a,0x47d)+'n'](_0x3cec02(-0x2bc,-0x2a5)+_0x536153(0x488,0x497)+_0x3cec02(-0x288,-0x282));function _0x3cec02(_0x474eb3,_0x1dc029){return _0x3f5b(_0x474eb3- -0x3d9,_0x1dc029);}_0x41e06d['command'](_0x3cec02(-0x2c5,-0x297))['descriptio'+'n'](_0x3cec02(-0x2c4,-0x2f9)+_0x3cec02(-0x2d3,-0x2d2)+_0x536153(0x495,0x4d5))[_0x3cec02(-0x290,-0x2a3)](()=>{function _0x2b5da3(_0x3c32d3,_0x46a91c){return _0x536153(_0x46a91c,_0x3c32d3- -0x648);}function _0xafd6d1(_0x52c5ba,_0x54c99d){return _0x536153(_0x54c99d,_0x52c5ba- -0x4b0);}if(_0x2b5da3(-0x189,-0x1c0)!==_0x2b5da3(-0x1a8,-0x19b)){const _0x456f66=new ConfigManager()[_0xafd6d1(-0x12,-0x3d)](),_0xf925d4=new MemoryDatabase(_0x456f66['db'][_0x2b5da3(-0x16a,-0x12c)]);try{_0xf925d4['initialize']();const _0x77e2ed=_0xf925d4['listMemori'+'es']({'category':_0xafd6d1(0xc,-0x2b),'limit':0x64});if(_0x77e2ed[_0x2b5da3(-0x15a,-0x163)]===0x0){console[_0xafd6d1(-0x2c,-0x18)](_0x8df90e[_0xafd6d1(0x26,0xd)]('No\x20skills\x20'+'found.\x20Ena'+_0xafd6d1(-0xa,0x17)+_0xafd6d1(0xd,-0x25)+'and\x20run\x20\x22a'+'2a-memory\x20'+'skill\x20eval'+_0x2b5da3(-0x162,-0x171)));return;}console['log'](_0x8df90e[_0x2b5da3(-0x1ac,-0x192)](_0xafd6d1(0x29,0x6a)+_0x77e2ed['length']+_0x2b5da3(-0x1cf,-0x1e4)));const _0x4211d7=new SkillEvaluator(_0xf925d4,_0x456f66);for(const _0x546c15 of _0x77e2ed){const _0x4d9514=_0x4211d7[_0x2b5da3(-0x152,-0x17d)+'adata'](_0x546c15),_0x1490f7=_0x546c15[_0x2b5da3(-0x1ba,-0x1af)]['split']('\x0a')[0x0][_0x2b5da3(-0x177,-0x171)](0x0,0x50),_0x1c2489=_0x4d9514?.['sourceMemo'+_0xafd6d1(0x1f,-0x12)][_0x2b5da3(-0x15a,-0x141)]??'?',_0x15d16e=_0x4d9514?(_0x4d9514[_0x2b5da3(-0x156,-0x17a)]*0x64)[_0xafd6d1(0x4,0xf)](0x0)+'%':'?',_0x552b8c=_0x4d9514?.[_0x2b5da3(-0x1c0,-0x18a)+'t']?new Date(_0x4d9514[_0xafd6d1(-0x28,-0x1c)+'t'])[_0x2b5da3(-0x1d0,-0x1de)+_0x2b5da3(-0x154,-0x170)]():'?';console[_0xafd6d1(-0x2c,-0x59)]('\x20\x20'+_0x8df90e['bold'](_0x546c15['id'][_0x2b5da3(-0x177,-0x158)](0x0,0x8))+'\x20\x20'+_0x1490f7),console[_0x2b5da3(-0x1c4,-0x1cf)](_0x8df90e[_0x2b5da3(-0x172,-0x165)](_0xafd6d1(-0x1d,-0x12)+_0xafd6d1(0x3,0x1f)+_0x1c2489+(_0xafd6d1(0x6,-0x13)+_0xafd6d1(-0x17,-0x6))+_0x15d16e+_0x2b5da3(-0x1be,-0x1e0)+_0x552b8c+_0xafd6d1(0x15,-0x21)+_0x546c15[_0xafd6d1(-0x2d,-0x20)+'t'])),console[_0x2b5da3(-0x1c4,-0x1e7)]('');}}catch(_0x5d4d4d){_0x2b5da3(-0x1a5,-0x17d)!==_0xafd6d1(-0xd,0x1e)?(_0xb34bc7['log'](_0x3410cc[_0x2b5da3(-0x163,-0x164)](_0x2b5da3(-0x16c,-0x155)+_0x2b5da3(-0x16d,-0x16d)+_0x39f4a7)),_0x4c3bf3[_0xafd6d1(0x32,0x31)](0x1)):(console[_0xafd6d1(0x18,-0x3)](_0x8df90e[_0x2b5da3(-0x163,-0x17a)](_0x2b5da3(-0x157,-0x122)+_0xafd6d1(0x43,0x15)+':'),_0x5d4d4d),process[_0x2b5da3(-0x166,-0x18b)](0x1));}finally{'pkHAZ'===_0x2b5da3(-0x1a1,-0x1d8)?_0xf925d4[_0x2b5da3(-0x1ad,-0x1c4)]():_0x2c15dc['close']();}}else _0x448965[_0x2b5da3(-0x1c4,-0x1aa)](_0x3c9908['yellow'](_0x2b5da3(-0x16b,-0x130)+_0x2b5da3(-0x174,-0x194)+_0x2b5da3(-0x18a,-0x180)+_0x1fdd06[_0xafd6d1(0x3c,0x49)+'ge']));}),_0x41e06d['command'](_0x3cec02(-0x289,-0x27f))[_0x536153(0x4a6,0x47d)+'n'](_0x3cec02(-0x286,-0x295)+'evaluation'+_0x536153(0x51e,0x4ea))[_0x536153(0x4be,0x49a)](_0x3cec02(-0x2cb,-0x2a1)+'ect\x20<path>','Project\x20pa'+_0x536153(0x4d6,0x4c7)+_0x536153(0x4e1,0x4e7))[_0x536153(0x4ab,0x4c4)](async _0x5a61b4=>{const _0xb3385e=new ConfigManager()[_0x1a64ab(-0x230,-0x23f)]();function _0x1a64ab(_0x46d3cb,_0x2ea59e){return _0x536153(_0x2ea59e,_0x46d3cb- -0x6ce);}if(!_0xb3385e['skillConve'+'rsion']?.[_0xa307f4(0x2ea,0x324)]){console['log'](_0x8df90e[_0x1a64ab(-0x1e1,-0x1c3)]('Skill\x20conv'+_0xa307f4(0x2aa,0x2af)+_0xa307f4(0x2de,0x2fc)+'Enable\x20it\x20'+'with:')),console[_0xa307f4(0x2a8,0x299)](_0x8df90e[_0x1a64ab(-0x1f8,-0x22e)](_0x1a64ab(-0x22d,-0x210)+_0xa307f4(0x29e,0x2c3)+_0x1a64ab(-0x1d7,-0x1a0)+_0x1a64ab(-0x20c,-0x1d4)+_0x1a64ab(-0x241,-0x256)+'ue'));return;}const _0x4939e3=new MemoryDatabase(_0xb3385e['db'][_0xa307f4(0x302,0x326)]);function _0xa307f4(_0x194a39,_0x52ec32){return _0x536153(_0x52ec32,_0x194a39- -0x1dc);}try{_0x4939e3[_0xa307f4(0x2cc,0x2b5)]();const _0x1391a5=_0x1ccb61(_0x1a64ab(-0x201,-0x238)+'\x20skill\x20can'+_0x1a64ab(-0x1fe,-0x1c9))[_0xa307f4(0x29a,0x294)](),_0x53d711=new SkillEvaluator(_0x4939e3,_0xb3385e);let _0x3d2f9b;_0xb3385e[_0x1a64ab(-0x1ef,-0x22d)]?.['apiKey']&&_0xb3385e['server']?.[_0xa307f4(0x314,0x341)]&&(_0x3d2f9b=new A2AClient({'baseUrl':_0xb3385e[_0x1a64ab(-0x1ef,-0x209)]['url'],'apiKey':_0xb3385e['server']['apiKey'],'timeout':0x2710}));const _0x35ec50=await _0x53d711['evaluate'](_0x5a61b4['project'],_0x3d2f9b);_0x1391a5['succeed'](_0x8df90e[_0xa307f4(0x2a3,0x280)]('Evaluation'+_0x1a64ab(-0x1ed,-0x1f1))),console[_0xa307f4(0x2a8,0x2c9)](_0x8df90e[_0x1a64ab(-0x1f8,-0x1c6)](_0x1a64ab(-0x20e,-0x23e)+'\x20'+_0x35ec50[_0xa307f4(0x2c6,0x302)])),console[_0x1a64ab(-0x24a,-0x26e)](_0x8df90e[_0xa307f4(0x2fa,0x32a)](_0xa307f4(0x307,0x301)+'\x20'+_0x35ec50[_0xa307f4(0x2d4,0x2ff)])),console[_0xa307f4(0x2a8,0x299)](_0x8df90e['dim'](_0xa307f4(0x2b8,0x2f3)+_0x1a64ab(-0x220,-0x248)+_0x35ec50[_0x1a64ab(-0x1d9,-0x1a2)]['length'])),_0x35ec50[_0x1a64ab(-0x20d,-0x1d6)][_0xa307f4(0x312,0x346)]>0x0&&console[_0xa307f4(0x2a8,0x28a)](_0x8df90e[_0x1a64ab(-0x1e1,-0x20a)]('\x20\x20Errors:\x20'+_0x35ec50['errors'][_0x1a64ab(-0x253,-0x282)](',\x20')));}catch(_0xd9a831){'DekWo'===_0x1a64ab(-0x243,-0x21e)?_0x1346c8[_0xa307f4(0x2bf,0x289)]():(console[_0xa307f4(0x2ec,0x328)](_0x8df90e[_0xa307f4(0x309,0x311)]('Error\x20duri'+_0x1a64ab(-0x216,-0x242)+_0x1a64ab(-0x257,-0x218)),_0xd9a831),process[_0xa307f4(0x306,0x2ef)](0x1));}finally{_0x4939e3[_0x1a64ab(-0x233,-0x241)]();}});function _0x536153(_0x142baa,_0x1c73ee){return _0x3f5b(_0x1c73ee-0x37b,_0x142baa);}return _0x41e06d['command'](_0x536153(0x495,0x4d3))[_0x536153(0x459,0x47d)+'n'](_0x3cec02(-0x2a3,-0x296)+_0x3cec02(-0x2b7,-0x2cd)+_0x536153(0x4cd,0x4eb)+_0x3cec02(-0x2d6,-0x2c3))[_0x3cec02(-0x290,-0x259)](()=>{function _0x8dd014(_0x552f43,_0x34ed18){return _0x3cec02(_0x34ed18-0x9c,_0x552f43);}function _0x30a0c0(_0x212d78,_0x37be55){return _0x3cec02(_0x212d78-0x61,_0x37be55);}if('dmUxx'!==_0x8dd014(-0x225,-0x226)){_0x16ee58[_0x8dd014(-0x203,-0x234)](_0x5be73e[_0x30a0c0(-0x206,-0x209)](_0x8dd014(-0x235,-0x236)+_0x30a0c0(-0x26d,-0x2aa)+'disabled.\x20'+_0x8dd014(-0x215,-0x1ee)+_0x8dd014(-0x20a,-0x213))),_0x594153[_0x30a0c0(-0x26f,-0x2a8)](_0x4526ff['dim'](_0x8dd014(-0x1e2,-0x217)+_0x8dd014(-0x1fe,-0x23e)+_0x8dd014(-0x1c9,-0x1c1)+_0x30a0c0(-0x231,-0x251)+_0x8dd014(-0x234,-0x22b)+'ue'));return;}else{const _0x20728f=new ConfigManager()[_0x30a0c0(-0x255,-0x255)](),_0x2636a1=new MemoryDatabase(_0x20728f['db']['path']);try{_0x2636a1['initialize']();const _0x3ec4a2=_0x1ccb61('Reviewing\x20'+_0x8dd014(-0x1eb,-0x1e6))[_0x8dd014(-0x22e,-0x242)](),_0xefecfd=new SkillEvaluator(_0x2636a1,_0x20728f),_0x4bea23=_0xefecfd[_0x30a0c0(-0x23a,-0x1fb)+'ls']();_0x3ec4a2[_0x8dd014(-0x222,-0x214)](_0x8df90e[_0x8dd014(-0x25d,-0x239)](_0x8dd014(-0x1b2,-0x1ef)+'plete')),console[_0x30a0c0(-0x26f,-0x29f)](_0x8df90e['dim'](_0x8dd014(-0x1fb,-0x20b)+':\x20'+_0x4bea23[_0x8dd014(-0x20e,-0x206)])),console[_0x30a0c0(-0x26f,-0x2a4)](_0x8df90e[_0x30a0c0(-0x21d,-0x249)](_0x8dd014(-0x21e,-0x22c)+'\x20'+_0x4bea23[_0x30a0c0(-0x244,-0x26b)])),console[_0x8dd014(-0x238,-0x234)](_0x8df90e[_0x30a0c0(-0x21d,-0x1eb)](_0x30a0c0(-0x21c,-0x20b)+'\x20'+_0x4bea23['renewed'])),_0x4bea23[_0x8dd014(-0x197,-0x1cc)+'ge']>0x0&&console['log'](_0x8df90e[_0x30a0c0(-0x206,-0x209)](_0x8dd014(-0x1eb,-0x1db)+_0x30a0c0(-0x21f,-0x212)+_0x30a0c0(-0x235,-0x22b)+_0x4bea23[_0x8dd014(-0x1d0,-0x1cc)+'ge']));}catch(_0x41475d){_0x30a0c0(-0x26c,-0x256)==='jnqjr'?(console[_0x8dd014(-0x216,-0x1f0)](_0x8df90e[_0x8dd014(-0x1c9,-0x1d3)]('Error\x20duri'+'ng\x20review:'),_0x41475d),process['exit'](0x1)):(_0xc26571[_0x30a0c0(-0x22b,-0x1fe)](_0x4d40fa[_0x8dd014(-0x1ea,-0x1d3)](_0x8dd014(-0x23b,-0x20c)+_0x8dd014(-0x242,-0x219)),_0x3cf502),_0x3d9c55[_0x30a0c0(-0x211,-0x23e)](0x1));}finally{_0x2636a1[_0x30a0c0(-0x258,-0x266)]();}}}),_0x41e06d[_0x3cec02(-0x274,-0x23c)](_0x3cec02(-0x2c3,-0x2b5))[_0x536153(0x49f,0x47d)+'n'](_0x536153(0x4ca,0x4b5)+'kill\x20memor'+'y')[_0x536153(0x4fa,0x4c4)](_0x18884b=>{const _0x3f5f70=new ConfigManager()['load']();function _0x28e0f6(_0x200668,_0x1f0748){return _0x536153(_0x200668,_0x1f0748-0x31);}function _0x3f3815(_0x54a71a,_0xb6d168){return _0x536153(_0x54a71a,_0xb6d168- -0xa4);}const _0x2ba282=new MemoryDatabase(_0x3f5f70['db']['path']);try{_0x2ba282['initialize']();const _0x1fef0a=_0x2ba282[_0x28e0f6(0x531,0x4f4)+'es']({'category':_0x3f3815(0x423,0x418),'limit':0x3e8}),_0x59cf1a=_0x1fef0a[_0x3f3815(0x3b7,0x3dc)](_0x5aeab5=>_0x5aeab5['id']===_0x18884b||_0x5aeab5['id'][_0x28e0f6(0x4bf,0x4da)](_0x18884b));!_0x59cf1a&&(console['log'](_0x8df90e[_0x28e0f6(0x51f,0x516)](_0x3f3815(0x417,0x438)+_0x3f3815(0x40e,0x437)+_0x18884b)),process['exit'](0x1)),_0x2ba282['deleteMemo'+'ry'](_0x59cf1a['id']),console[_0x3f3815(0x3ff,0x3e0)](_0x8df90e['green'](_0x3f3815(0x449,0x444)+_0x3f3815(0x42e,0x3f1)+_0x59cf1a['id'][_0x28e0f6(0x4c8,0x502)](0x0,0x8)));}catch(_0x6e0dc4){console['error'](_0x8df90e['red'](_0x28e0f6(0x530,0x51a)+_0x28e0f6(0x4a6,0x4db)+':'),_0x6e0dc4),process[_0x28e0f6(0x547,0x513)](0x1);}finally{_0x2ba282[_0x28e0f6(0x490,0x4cc)]();}}),_0x41e06d;}
|
|
1
|
+
(function(_0x22febb,_0x47083e){const _0x26baee=_0x22febb();function _0x351ed8(_0x5a4a77,_0xbc93f3){return _0x5351(_0xbc93f3-0x3a2,_0x5a4a77);}function _0x4f5ea6(_0x2636e0,_0x187415){return _0x5351(_0x187415-0x91,_0x2636e0);}while(!![]){try{const _0x4aed69=-parseInt(_0x351ed8(0x5b7,0x5bc))/0x1+-parseInt(_0x4f5ea6(0x27d,0x297))/0x2*(-parseInt(_0x4f5ea6(0x27a,0x28f))/0x3)+parseInt(_0x4f5ea6(0x221,0x243))/0x4+-parseInt(_0x351ed8(0x53c,0x576))/0x5+-parseInt(_0x351ed8(0x53d,0x56d))/0x6*(parseInt(_0x4f5ea6(0x266,0x293))/0x7)+parseInt(_0x351ed8(0x587,0x5ad))/0x8*(-parseInt(_0x351ed8(0x56e,0x57d))/0x9)+parseInt(_0x351ed8(0x60b,0x5d7))/0xa;if(_0x4aed69===_0x47083e)break;else _0x26baee['push'](_0x26baee['shift']());}catch(_0x5f17f0){_0x26baee['push'](_0x26baee['shift']());}}}(_0x280c,0xe99fa));function _0x5351(_0x1d334c,_0x1a14ba){_0x1d334c=_0x1d334c-0x1af;const _0x280c41=_0x280c();let _0x535198=_0x280c41[_0x1d334c];if(_0x5351['JhrsRA']===undefined){var _0x5399c2=function(_0x50191f){const _0x1b58e1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x555d7e='',_0x5cdd64='';for(let _0x599155=0x0,_0x3da1bb,_0x3263eb,_0x453ae9=0x0;_0x3263eb=_0x50191f['charAt'](_0x453ae9++);~_0x3263eb&&(_0x3da1bb=_0x599155%0x4?_0x3da1bb*0x40+_0x3263eb:_0x3263eb,_0x599155++%0x4)?_0x555d7e+=String['fromCharCode'](0xff&_0x3da1bb>>(-0x2*_0x599155&0x6)):0x0){_0x3263eb=_0x1b58e1['indexOf'](_0x3263eb);}for(let _0x5aa107=0x0,_0x1efe5a=_0x555d7e['length'];_0x5aa107<_0x1efe5a;_0x5aa107++){_0x5cdd64+='%'+('00'+_0x555d7e['charCodeAt'](_0x5aa107)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5cdd64);};_0x5351['BlBLdk']=_0x5399c2,_0x5351['UedhNF']={},_0x5351['JhrsRA']=!![];}const _0x3f0dde=_0x280c41[0x0],_0x597f4e=_0x1d334c+_0x3f0dde,_0x9cc840=_0x5351['UedhNF'][_0x597f4e];return!_0x9cc840?(_0x535198=_0x5351['BlBLdk'](_0x535198),_0x5351['UedhNF'][_0x597f4e]=_0x535198):_0x535198=_0x9cc840,_0x535198;}function _0x280c(){const _0x552e81=['zw5HyMXLzcb0CG','zgvTB3rLza','mMeTBwvTB3j5ia','zxm6ia','cLnRAwXSCYaO','ntG0mdiXnvrUt3DZDG','EwvSBg93','yw5Kihj1BIaIyq','CM0GpgLKpG','y2u6ia','ihnRAwXSignHBG','zMLUza','mtyXnJr4CgfSsum','BgLZDe1LBw9YAq','y3LHBG','zxjYB3jZ','Dw5RBM93BLvZyq','A2LSBcbSAwzLyW','C2TPBgW','yxbPs2v5','CMv2Awv3','Bg9N','C2vYDMvY','icbtA2LWCgvKoG','ChjVAMvJDa','CMv2Awv3zwq','zM91BMq6ia','C2TPBgXdB252zq','uNvUihnRAwXSia','uMv2Awv3ignVBq','zxH0CMfJDe1LDa','Dg9gAxHLza','ig1HBNvHBgX5','uMv2Awv3igfUza','DwDLzMC','DgGGDg8GzxzHBa','zgLT','CNLjzhm','vLHgB08','icbvBMTUB3DUia','q3Lvvwm','icbby2nLC3m6ia','AM9PBG','BgvUz3rO','y3jLyxrLza','ignVBxbSzxrL','C3rHCNq','mZu0m1HdCwXZBG','icbszxzPzxDLza','y2fUzgLKyxrLCW','D2L0AdO','mtyXnZaYmuPuA2vpEa','veHmy3u','rgvSzxrLigeGCW','rgvSzxrLzcbZAW','mtCYnejbs1jYBq','rxjYB3iGzgvSzq','zxjYB3i','zwn0idXWyxrOpG','Aw9UoG','odq5nMHmD01MBq','ywrHDge','DxjS','tM8GC2TPBgXZia','icbezw1VDgvKoG','u2TPBgWGBM90ia','CgXLDgu','uMv2Awv3Aw5Nia','Dg9mB2nHBgveyq','DgvtDhjPBMC','ywnJzxnZq291BG','zxzHBhvHDgLVBG','DgLUzYbZA2LSBa','C2TPBgXZlI4U','zgvZy3jPChrPBW','ndi5mJC0CKz5tufp','zxzHBhvHDgu','icbszw5LD2vKoG','C2TPBgWGzxzHBa','B252zxjZAw9UlG','CNnPB24','icbdB25MAwrLBG','EwnSzq','A2LSBcbTzw1VCG','ktOk','CNKGy29UzMLNia','z3jLzw4','C3rHCNrZv2L0Aa','Dwf0zsiU','C3vJy2vLza','B3b0Aw9U','C2XPy2u','yM9Sza','y29TBwfUza','yKXytNG','CMvK','ywn0Aw9U','BMCGCMv2Awv3oG','Aw5PDgLHBgL6zq','rxjYB3iGBgLZDa','zxHPDa','rxzHBhvHDgLVBG','nduYodi0ntbSCvzxwKm','Bg9Hza','y2XVC2u','uhjVAMvJDcbWyq','tgrWuMy','mJeYotm4mhrQvhDVwa','C3rHBgXPEMvKia','C2TPBgXZ','C291CMnLtwvTBW','rw5HyMXLigL0ia','rxjYB3iGzhvYAq','Aw5NihnRAwXSCW','icbszxzPzxC6ia','BMCGzxzHBhvHDa','Dwf0zq','67o066wyktOG','lxaSic0TChjVAG','zxjZAw9UigLZia','Cgf0Aa','C3bSAxq','zgvSzxrLtwvTBW','runABwO','ihjLzNjLC2GGCW','zM91BMqUievUyq','C1zsv0G','CMv2Awv3rhvLqq','zw5HyMXLza','zgLZywjSzwqUia','CeDUC1i','icaGifnVDxjJzq','ndj6r1bzzMi','CMv2Awv3u2TPBa','DxnHz2uGkoQWLEUtSsa','B252zxjZAw9Uia'];_0x280c=function(){return _0x552e81;};return _0x280c();}import{Command}from'commander';import _0x59334d from'chalk';import _0x40f613 from'ora';import{ConfigManager}from'../../config/manager.js';import{MemoryDatabase}from'../../db/database.js';import{SkillEvaluator}from'../../skill/evaluator.js';import{A2AClient}from'../../sync/client.js';export function skillCommand(){const _0x1398b3=new Command(_0x2a61fe(0x310,0x30a))[_0x2dee49(0x302,0x2f4)+'n']('Manage\x20cry'+_0x2dee49(0x2c5,0x28e)+_0x2dee49(0x286,0x28f));_0x1398b3[_0x2a61fe(0x35b,0x349)]('list')[_0x2dee49(0x30f,0x2f4)+'n']('List\x20all\x20s'+'kill\x20memor'+'ies')[_0x2dee49(0x327,0x30a)](()=>{function _0x447961(_0x150a32,_0x517265){return _0x2a61fe(_0x517265- -0xcc,_0x150a32);}function _0x54128d(_0xee2228,_0x3344d8){return _0x2a61fe(_0xee2228-0x21,_0x3344d8);}if('sVRWH'!==_0x447961(0x1e8,0x228))_0x487049[_0x447961(0x20a,0x247)](_0x1767b0['red'](_0x54128d(0x360,0x320)+_0x54128d(0x339,0x350)+_0x568987)),_0x2e08e8['exit'](0x1);else{const _0x123a59=new ConfigManager()['load'](),_0x3b75ca=new MemoryDatabase(_0x123a59['db'][_0x447961(0x1f9,0x222)]);try{if(_0x447961(0x247,0x266)!==_0x54128d(0x341,0x33f)){_0x3b75ca[_0x447961(0x29f,0x294)]();const _0x1b7b6d=_0x3b75ca[_0x54128d(0x32c,0x353)+'es']({'category':_0x54128d(0x331,0x360),'limit':0x64});if(_0x1b7b6d['length']===0x0){console[_0x54128d(0x334,0x340)](_0x59334d[_0x447961(0x21d,0x256)](_0x447961(0x247,0x271)+_0x54128d(0x314,0x2da)+'ble\x20skillC'+_0x447961(0x26f,0x231)+_0x447961(0x205,0x239)+_0x447961(0x278,0x234)+_0x447961(0x29c,0x280)+_0x447961(0x2a6,0x28a)));return;}console[_0x54128d(0x334,0x344)](_0x59334d[_0x447961(0x27d,0x240)](_0x447961(0x21d,0x236)+_0x1b7b6d[_0x54128d(0x34a,0x325)]+_0x447961(0x2b3,0x286)));const _0x5b075b=new SkillEvaluator(_0x3b75ca,_0x123a59);for(const _0x4cc43c of _0x1b7b6d){if(_0x447961(0x2a4,0x290)===_0x447961(0x221,0x25a))_0x473386['log'](_0xc306fb[_0x54128d(0x325,0x314)](_0x54128d(0x346,0x33c)+_0x447961(0x1f2,0x230)+'보류):\x20'+_0x538460[_0x447961(0x20d,0x242)+'ge']));else{const _0x376884=_0x5b075b[_0x54128d(0x33d,0x374)+_0x54128d(0x35c,0x362)](_0x4cc43c),_0x5c66bc=_0x4cc43c['content'][_0x447961(0x1e1,0x223)]('\x0a')[0x0]['slice'](0x0,0x50),_0x151707=_0x376884?.[_0x54128d(0x305,0x2e7)+'ryIds']['length']??'?',_0x1b8d01=_0x376884?(_0x376884['confidence']*0x64)[_0x447961(0x285,0x251)](0x0)+'%':'?',_0x350be1=_0x376884?.[_0x54128d(0x316,0x333)+'t']?new Date(_0x376884['reviewDueA'+'t'])[_0x54128d(0x363,0x39d)+_0x54128d(0x364,0x34b)]():'?';console[_0x447961(0x235,0x247)]('\x20\x20'+_0x59334d[_0x447961(0x2c8,0x28e)](_0x4cc43c['id']['slice'](0x0,0x8))+'\x20\x20'+_0x5c66bc),console[_0x54128d(0x334,0x2f4)](_0x59334d['dim'](_0x54128d(0x31a,0x343)+'s:\x20'+_0x151707+(_0x447961(0x294,0x283)+_0x447961(0x27f,0x23b))+_0x1b8d01+_0x54128d(0x309,0x2f7)+_0x350be1+'\x20\x20Access:\x20'+_0x4cc43c[_0x54128d(0x365,0x351)+'t'])),console[_0x54128d(0x334,0x34d)]('');}}}else _0x22dfe7[_0x447961(0x27a,0x26b)](_0x1729bf[_0x447961(0x268,0x291)](_0x54128d(0x307,0x309)+_0x447961(0x2cd,0x293)),_0x542ff3),_0x22f1bd['exit'](0x1);}catch(_0x1804ee){if('Jmntp'!=='Jmntp'){_0x5a5f86['initialize']();const _0x55cc19=_0x4e072e('Reviewing\x20'+_0x447961(0x23a,0x27b))[_0x447961(0x289,0x260)](),_0x375f30=new _0x1adfcd(_0x10ddd8,_0x557474),_0x3368c0=_0x375f30[_0x447961(0x1fe,0x22f)+'ls']();_0x55cc19[_0x447961(0x258,0x28b)](_0x58e7ad[_0x447961(0x27a,0x288)](_0x54128d(0x33c,0x2fb)+_0x447961(0x271,0x274))),_0x502f05['log'](_0x1789e4[_0x447961(0x268,0x256)]('\x20\x20Reviewed'+':\x20'+_0x3368c0['reviewed'])),_0x5e111d[_0x54128d(0x334,0x34d)](_0x17345d[_0x447961(0x213,0x256)]('\x20\x20Demoted:'+'\x20'+_0x3368c0['demoted'])),_0x110ff2[_0x54128d(0x334,0x2fa)](_0x51b3f1['dim'](_0x447961(0x23d,0x27f)+'\x20'+_0x3368c0['renewed'])),_0x3368c0[_0x54128d(0x32f,0x35d)+'ge']>0x0&&_0x36dd54[_0x447961(0x236,0x247)](_0x5b6ae4[_0x447961(0x233,0x238)]('\x20\x20Unknown\x20'+_0x54128d(0x31d,0x2e3)+'보류):\x20'+_0x3368c0[_0x447961(0x237,0x242)+'ge']));}else console[_0x447961(0x23f,0x26b)](_0x59334d[_0x447961(0x291,0x291)](_0x447961(0x288,0x295)+_0x54128d(0x308,0x313)+':'),_0x1804ee),process[_0x54128d(0x383,0x3b0)](0x1);}finally{_0x3b75ca[_0x54128d(0x2ff,0x2d7)]();}}}),_0x1398b3[_0x2a61fe(0x35b,0x319)](_0x2dee49(0x2b6,0x2f6))[_0x2dee49(0x2e7,0x2f4)+'n'](_0x2a61fe(0x31a,0x2d8)+_0x2a61fe(0x345,0x311)+_0x2a61fe(0x31e,0x356))[_0x2a61fe(0x358,0x32d)](_0x2dee49(0x25d,0x298)+_0x2a61fe(0x338,0x317),_0x2a61fe(0x2df,0x2ac)+_0x2dee49(0x2a8,0x2cd)+_0x2dee49(0x271,0x296))[_0x2dee49(0x2cd,0x30a)](async _0x1ff372=>{const _0x28493b=new ConfigManager()['load']();if(!_0x28493b[_0x58e336(-0x7f,-0x3b)+_0x58e336(-0x3f,-0x6)]?.[_0x4ff649(0x4e8,0x50b)]){console[_0x58e336(-0x3a,-0x41)](_0x59334d[_0x58e336(-0x14,-0x50)]('Skill\x20conv'+_0x58e336(-0x4f,-0x67)+_0x4ff649(0x4e9,0x4f6)+_0x4ff649(0x4d7,0x4dc)+_0x4ff649(0x522,0x4f3))),console[_0x4ff649(0x505,0x548)](_0x59334d[_0x58e336(-0x71,-0x32)]('\x20\x20a2a-memo'+_0x4ff649(0x545,0x52e)+'set\x20skillC'+_0x4ff649(0x53f,0x540)+_0x58e336(-0x6a,-0x56)+'ue'));return;}function _0x4ff649(_0x3df2d1,_0x4649f8){return _0x2dee49(_0x4649f8,_0x3df2d1-0x246);}const _0x559f6c=new MemoryDatabase(_0x28493b['db'][_0x58e336(-0x80,-0x66)]);function _0x58e336(_0x30ce57,_0x3fb554){return _0x2dee49(_0x30ce57,_0x3fb554- -0x300);}try{_0x559f6c['initialize']();const _0x108ef5=_0x40f613('Evaluating'+_0x4ff649(0x4fa,0x517)+'didates...')[_0x58e336(-0x5c,-0x28)](),_0x3e12f3=new SkillEvaluator(_0x559f6c,_0x28493b);let _0xdc1acc;_0x28493b[_0x4ff649(0x506,0x4e1)]?.[_0x58e336(-0x17,-0x43)]&&_0x28493b[_0x58e336(-0x3d,-0x40)]?.[_0x58e336(0x27,-0x18)]&&(_0xdc1acc=new A2AClient({'baseUrl':_0x28493b[_0x58e336(-0x2,-0x40)][_0x4ff649(0x52e,0x4f3)],'apiKey':_0x28493b[_0x4ff649(0x506,0x4f6)]['apiKey'],'timeout':0x2710}));const _0x5c7f8a=await _0x3e12f3[_0x4ff649(0x53c,0x500)](_0x1ff372[_0x4ff649(0x508,0x4d5)],_0xdc1acc);_0x108ef5[_0x4ff649(0x549,0x50f)](_0x59334d['green'](_0x58e336(0x52,0xf)+_0x58e336(-0x46,-0x29))),console[_0x4ff649(0x505,0x532)](_0x59334d[_0x4ff649(0x514,0x551)]('\x20\x20Created:'+'\x20'+_0x5c7f8a[_0x4ff649(0x51c,0x513)])),console['log'](_0x59334d[_0x4ff649(0x514,0x4f8)](_0x58e336(-0x45,-0x3f)+'\x20'+_0x5c7f8a['skipped'])),console[_0x4ff649(0x505,0x546)](_0x59334d[_0x58e336(-0x2,-0x32)]('\x20\x20Candidat'+_0x58e336(-0x28,-0x53)+_0x5c7f8a[_0x4ff649(0x521,0x514)][_0x58e336(-0x28,-0x2b)])),_0x5c7f8a[_0x58e336(-0x63,-0x47)][_0x4ff649(0x51b,0x525)]>0x0&&console['log'](_0x59334d[_0x58e336(-0xc,-0x50)]('\x20\x20Errors:\x20'+_0x5c7f8a[_0x58e336(-0x2a,-0x47)][_0x4ff649(0x51a,0x4da)](',\x20')));}catch(_0x3a252e){if(_0x4ff649(0x4e3,0x4b1)===_0x4ff649(0x4e3,0x4da))console[_0x4ff649(0x529,0x50c)](_0x59334d[_0x58e336(0x2,0x9)]('Error\x20duri'+_0x58e336(-0x40,-0x6b)+_0x58e336(0x25,-0x1b)),_0x3a252e),process['exit'](0x1);else{const _0x2c4269=_0x51b9eb[_0x58e336(0x1,-0x38)+_0x58e336(-0x3,-0x19)](_0x5b43e5),_0x7927f3=_0x2a023c['content']['split']('\x0a')[0x0][_0x4ff649(0x54b,0x507)](0x0,0x50),_0x5bef8e=_0x2c4269?.[_0x58e336(-0x77,-0x70)+_0x4ff649(0x515,0x50e)][_0x4ff649(0x51b,0x502)]??'?',_0xde6b52=_0x2c4269?(_0x2c4269['confidence']*0x64)[_0x4ff649(0x50f,0x548)](0x0)+'%':'?',_0x43d325=_0x2c4269?.['reviewDueA'+'t']?new _0x49bed3(_0x2c4269['reviewDueA'+'t'])['toLocaleDa'+_0x4ff649(0x535,0x519)]():'?';_0x4264e8[_0x4ff649(0x505,0x50e)]('\x20\x20'+_0x6ca72d[_0x58e336(-0x33,0x6)](_0x4a4c54['id'][_0x58e336(0x10,0x5)](0x0,0x8))+'\x20\x20'+_0x7927f3),_0x384ab2[_0x58e336(-0xb,-0x41)](_0x4d5488['dim'](_0x4ff649(0x4eb,0x4ec)+'s:\x20'+_0x5bef8e+(_0x58e336(-0x3c,-0x5)+_0x58e336(-0x5a,-0x4d))+_0xde6b52+_0x58e336(-0x5b,-0x6c)+_0x43d325+_0x4ff649(0x519,0x4e6)+_0x4df53d[_0x4ff649(0x536,0x4f7)+'t'])),_0x2134fd[_0x58e336(-0x12,-0x41)]('');}}finally{_0x4ff649(0x4d2,0x49e)!=='LdpRf'?_0x56cee2['close']():_0x559f6c[_0x58e336(-0xae,-0x76)]();}});function _0x2dee49(_0x3b26a7,_0x5360f0){return _0x5351(_0x5360f0-0xdb,_0x3b26a7);}_0x1398b3[_0x2dee49(0x2fc,0x307)](_0x2a61fe(0x312,0x32b))[_0x2dee49(0x31d,0x2f4)+'n'](_0x2a61fe(0x31f,0x2f2)+_0x2dee49(0x2e2,0x29e)+_0x2a61fe(0x30f,0x2d9)+_0x2a61fe(0x350,0x30f))[_0x2a61fe(0x35e,0x337)](()=>{function _0x3aed71(_0x53aa24,_0x2bffd7){return _0x2a61fe(_0x2bffd7- -0x3cd,_0x53aa24);}function _0x16de78(_0x14b94a,_0x34b0f5){return _0x2a61fe(_0x14b94a- -0x15,_0x34b0f5);}const _0x380b82=new ConfigManager()['load'](),_0x21a268=new MemoryDatabase(_0x380b82['db']['path']);try{_0x21a268['initialize']();const _0x2a1a29=_0x40f613(_0x3aed71(-0xa1,-0x8c)+_0x3aed71(-0xb0,-0x86))[_0x16de78(0x317,0x304)](),_0x56cb14=new SkillEvaluator(_0x21a268,_0x380b82),_0x171416=_0x56cb14[_0x3aed71(-0x8e,-0xd2)+'ls']();_0x2a1a29[_0x16de78(0x342,0x342)](_0x59334d[_0x16de78(0x33f,0x37e)](_0x3aed71(-0x80,-0xb2)+_0x3aed71(-0x95,-0x8d))),console['log'](_0x59334d[_0x3aed71(-0xdb,-0xab)](_0x3aed71(-0x78,-0x9f)+':\x20'+_0x171416[_0x16de78(0x302,0x2e4)])),console[_0x3aed71(-0xbe,-0xba)](_0x59334d[_0x16de78(0x30d,0x2dc)](_0x3aed71(-0xb5,-0x8f)+'\x20'+_0x171416[_0x16de78(0x2ea,0x2d8)])),console[_0x3aed71(-0xd9,-0xba)](_0x59334d[_0x3aed71(-0x92,-0xab)]('\x20\x20Renewed:'+'\x20'+_0x171416['renewed'])),_0x171416['unknownUsa'+'ge']>0x0&&console[_0x16de78(0x2fe,0x2c3)](_0x59334d[_0x3aed71(-0x86,-0xc9)](_0x3aed71(-0x65,-0xa8)+_0x16de78(0x2e7,0x2d5)+_0x16de78(0x2d6,0x2e0)+_0x171416[_0x16de78(0x2f9,0x33d)+'ge']));}catch(_0x1b3a05){_0x3aed71(-0xd2,-0xd5)===_0x16de78(0x30f,0x2ce)?_0xb03551['log'](_0x37a16c[_0x3aed71(-0xd9,-0xc9)]('\x20\x20Errors:\x20'+_0x2b7df3[_0x3aed71(-0xdc,-0xc0)][_0x3aed71(-0xc1,-0xa5)](',\x20'))):(console[_0x3aed71(-0xc4,-0x96)](_0x59334d[_0x3aed71(-0x90,-0x70)](_0x3aed71(-0xdf,-0xe7)+_0x16de78(0x34a,0x338)),_0x1b3a05),process[_0x3aed71(-0x82,-0x6b)](0x1));}finally{_0x21a268[_0x16de78(0x2c9,0x2ef)]();}}),_0x1398b3[_0x2a61fe(0x35b,0x376)](_0x2a61fe(0x306,0x2c3))[_0x2a61fe(0x348,0x311)+'n'](_0x2dee49(0x2cc,0x2df)+_0x2dee49(0x2f8,0x2fd)+'y')['action'](_0x57655e=>{function _0x424c64(_0x4b2458,_0x349edc){return _0x2dee49(_0x349edc,_0x4b2458- -0x38e);}function _0x5e4baa(_0x21a77e,_0x1d3352){return _0x2dee49(_0x1d3352,_0x21a77e-0x244);}const _0x245585=new ConfigManager()[_0x424c64(-0x7d,-0x73)](),_0x53f065=new MemoryDatabase(_0x245585['db'][_0x5e4baa(0x4de,0x4d1)]);try{_0x53f065['initialize']();const _0x5d68f0=_0x53f065[_0x5e4baa(0x4fb,0x4f7)+'es']({'category':_0x5e4baa(0x500,0x535),'limit':0x3e8}),_0x231744=_0x5d68f0[_0x5e4baa(0x4f9,0x4cd)](_0x14975d=>_0x14975d['id']===_0x57655e||_0x14975d['id'][_0x424c64(-0x8d,-0xb4)](_0x57655e));!_0x231744&&(console['log'](_0x59334d[_0x5e4baa(0x54d,0x537)](_0x424c64(-0xa3,-0x94)+_0x424c64(-0xca,-0xeb)+_0x57655e)),process[_0x424c64(-0x80,-0x61)](0x1)),_0x53f065[_0x5e4baa(0x4e0,0x4cc)+'ry'](_0x231744['id']),console['log'](_0x59334d['green'](_0x5e4baa(0x524,0x539)+'ill:\x20'+_0x231744['id'][_0x424c64(-0x89,-0x81)](0x0,0x8)));}catch(_0x368134){console[_0x424c64(-0xab,-0x85)](_0x59334d[_0x424c64(-0x85,-0x62)](_0x424c64(-0xac,-0x6c)+_0x424c64(-0x9c,-0xde)+':'),_0x368134),process[_0x5e4baa(0x552,0x595)](0x1);}finally{_0x53f065[_0x424c64(-0x104,-0xcf)]();}});function _0x2a61fe(_0x577fe9,_0x570124){return _0x5351(_0x577fe9-0x12f,_0x570124);}return _0x1398b3;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc4dce0,_0x28a860){function _0x13edfe(_0x7b4116,_0x5d9c7c){return _0x13ad(_0x7b4116- -0x136,_0x5d9c7c);}function _0x4b8d09(_0x163ae7,_0x1978a6){return _0x13ad(_0x1978a6-0x367,_0x163ae7);}const _0x2c8ff5=_0xc4dce0();while(!![]){try{const _0x58d422=-parseInt(_0x4b8d09(0x4f9,0x4f2))/0x1+-parseInt(_0x4b8d09(0x4f8,0x4fa))/0x2+-parseInt(_0x13edfe(0x4e,0x68))/0x3+parseInt(_0x4b8d09(0x50e,0x4f5))/0x4+parseInt(_0x4b8d09(0x51c,0x505))/0x5+parseInt(_0x4b8d09(0x526,0x50a))/0x6+parseInt(_0x4b8d09(0x52e,0x51a))/0x7;if(_0x58d422===_0x28a860)break;else _0x2c8ff5['push'](_0x2c8ff5['shift']());}catch(_0x47abf5){_0x2c8ff5['push'](_0x2c8ff5['shift']());}}}(_0x5249,0x447c4));import{Command}from'commander';import _0x55efda from'chalk';import{ConfigManager}from'../../config/manager.js';function _0x13ad(_0x1d02e9,_0x2de82f){_0x1d02e9=_0x1d02e9-0x17f;const _0x5249a8=_0x5249();let _0x13ad47=_0x5249a8[_0x1d02e9];if(_0x13ad['FJRHyw']===undefined){var _0x5965d3=function(_0x2a5738){const _0x1add0c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x479beb='',_0x1b2fff='';for(let _0xc4a397=0x0,_0xa5992f,_0x5e6eae,_0x470dd8=0x0;_0x5e6eae=_0x2a5738['charAt'](_0x470dd8++);~_0x5e6eae&&(_0xa5992f=_0xc4a397%0x4?_0xa5992f*0x40+_0x5e6eae:_0x5e6eae,_0xc4a397++%0x4)?_0x479beb+=String['fromCharCode'](0xff&_0xa5992f>>(-0x2*_0xc4a397&0x6)):0x0){_0x5e6eae=_0x1add0c['indexOf'](_0x5e6eae);}for(let _0x38ceca=0x0,_0x1aa363=_0x479beb['length'];_0x38ceca<_0x1aa363;_0x38ceca++){_0x1b2fff+='%'+('00'+_0x479beb['charCodeAt'](_0x38ceca)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1b2fff);};_0x13ad['WGdFbq']=_0x5965d3,_0x13ad['UylySs']={},_0x13ad['FJRHyw']=!![];}const _0xf5a972=_0x5249a8[0x0],_0x4c93aa=_0x1d02e9+_0xf5a972,_0x4565d7=_0x13ad['UylySs'][_0x4c93aa];return!_0x4565d7?(_0x13ad47=_0x13ad['WGdFbq'](_0x13ad47),_0x13ad['UylySs'][_0x4c93aa]=_0x13ad47):_0x13ad47=_0x4565d7,_0x13ad47;}function _0x5249(){const _0x4c1bfc=['EwvSBg93','CMvK','mte1nJiYnhnUt0T3uG','yxv0B0nHChr1CG','zgLT','icaGicaGia','q2f0zwDVCMLLCW','ywn0Aw9U','zw5HyMXLza','ndm0nde2DgjWC1Dr','C29YDa','CMu6','mtaWnJi2nhjVv1LTAW','zw1VCNKGC3rHDa','t0zg','B2DNz00','BwfW','mJq0mZG0qxHOD252','Bg9Hza','zgvZy3jPChrPBW','yMX1zq','Dg9tDhjPBMC','AwvZ','rKzYELG','yxv0B0LUAMvJDa','Dg90ywXnzw1VCG','Dg90ywXtzxnZAq','ie1c','nty0ote1rhPJD0v6','qxv0BY1jBMPLyW','Dg9gAxHLza','qxv0BY1dyxb0Dq','zw50CMLLCW','mJK3mJK1ohbRBuPYrq','yM9Sza','Dw50CW','BgvUz3rO','Bwf4','cVcFK4eGtwvTB3j5ia','z3jLzw4','icaGia','CgfKrw5K','tw9KztO','CMvWzwf0','Cgf0Aa','CM9JzxnZzwq6','y2XVC2u','u2vZC2LVBNmGua','icaGicaGicaGia','mJuZnZqZmeDWAKrzBa','ieTc','u2HVDYbbmKeGtq','y2f0zwDVCNLdBW','CM91BMq','Bw9Kzq','A2v5CW','Bg9N'];_0x5249=function(){return _0x4c1bfc;};return _0x5249();}import{MemoryDatabase}from'../../db/database.js';import{findSessionFiles}from'../../session/parser.js';export function statusCommand(){function _0x5e6d1c(_0x1e8eb2,_0x40fad2){return _0x13ad(_0x40fad2-0x162,_0x1e8eb2);}function _0x4b7c12(_0x4ee0ba,_0x5bf039){return _0x13ad(_0x5bf039-0x20f,_0x4ee0ba);}return new Command('status')[_0x5e6d1c(0x307,0x2f7)+'n'](_0x4b7c12(0x3c6,0x3c4)+_0x5e6d1c(0x2f3,0x2f1)+'us')[_0x5e6d1c(0x2fb,0x2eb)](()=>{function _0x5cf8c3(_0x5a2528,_0x41962f){return _0x5e6d1c(_0x41962f,_0x5a2528- -0x348);}const _0x21c62d=new ConfigManager()[_0x5cf8c3(-0x52,-0x5f)]();function _0x1bbae9(_0x1dfb6d,_0x5359e3){return _0x5e6d1c(_0x1dfb6d,_0x5359e3- -0x4b);}const _0x19c7c8=new MemoryDatabase(_0x21c62d['db'][_0x5cf8c3(-0x38,-0x4f)]);try{_0x19c7c8['initialize']();const _0x5c51b9=_0x19c7c8['getStats'](),_0x2223f6=findSessionFiles();console[_0x5cf8c3(-0x65,-0x50)](_0x55efda[_0x1bbae9(0x2cf,0x2bb)]('\x0a📊\x20A2A\x20Mem'+'ory\x20Status'+'\x0a')),console['log'](_0x55efda[_0x5cf8c3(-0x60,-0x70)](_0x1bbae9(0x2ac,0x2c3))+('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1bbae9(0x2b1,0x2c1))+_0x55efda[_0x5cf8c3(-0x64,-0x53)](_0x21c62d[_0x1bbae9(0x2a9,0x296)])),console[_0x1bbae9(0x29c,0x298)](_0x55efda[_0x5cf8c3(-0x60,-0x45)]('DB\x20Path:')+('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'\x20')+_0x55efda['cyan'](_0x21c62d['db']['path'])),console[_0x1bbae9(0x29d,0x298)](_0x55efda[_0x5cf8c3(-0x60,-0x6b)]('DB\x20Size:')+(_0x1bbae9(0x2d8,0x2c9)+'\x20')+formatBytes(_0x5c51b9['dbSizeByte'+'s'])),console[_0x5cf8c3(-0x65,-0x53)](_0x55efda[_0x1bbae9(0x29a,0x29d)]('Memories:')+_0x1bbae9(0x2b8,0x2c9)+_0x55efda[_0x5cf8c3(-0x3d,-0x30)](_0x5c51b9[_0x5cf8c3(-0x4b,-0x47)+_0x5cf8c3(-0x4e,-0x3a)])),console['log'](_0x55efda[_0x5cf8c3(-0x60,-0x79)](_0x5cf8c3(-0x35,-0x1b)+_0x1bbae9(0x2b8,0x2c6))+'\x20'+_0x55efda[_0x5cf8c3(-0x50,-0x5d)](_0x5c51b9[_0x5cf8c3(-0x4a,-0x38)+'ons'])),console[_0x1bbae9(0x28e,0x298)](_0x55efda[_0x5cf8c3(-0x60,-0x72)]('Sessions\x20A'+'vailable:')+'\x20'+_0x2223f6[_0x1bbae9(0x2da,0x2bd)]);const _0x27965e=_0x21c62d[_0x5cf8c3(-0x61,-0x7a)+'e'][_0x5cf8c3(-0x5c,-0x4b)]?_0x55efda[_0x1bbae9(0x2c1,0x2c0)][_0x1bbae9(0x2c1,0x2bb)]('ON'):_0x55efda[_0x1bbae9(0x2b0,0x29a)](_0x1bbae9(0x29a,0x2a7)),_0x4ac026=_0x21c62d[_0x1bbae9(0x2c3,0x2b1)][_0x1bbae9(0x2b8,0x2a1)]?_0x55efda[_0x5cf8c3(-0x3d,-0x2a)][_0x1bbae9(0x2c7,0x2bb)]('ON'):_0x55efda[_0x5cf8c3(-0x63,-0x62)](_0x5cf8c3(-0x56,-0x3b));console[_0x1bbae9(0x27c,0x298)](_0x55efda['dim'](_0x5cf8c3(-0x45,-0x55)+_0x1bbae9(0x29f,0x2a4))+'\x20\x20\x20\x20\x20\x20'+_0x27965e),console[_0x5cf8c3(-0x65,-0x66)](_0x55efda[_0x1bbae9(0x280,0x29d)](_0x1bbae9(0x2b7,0x2b6)+'t:')+_0x5cf8c3(-0x5f,-0x60)+_0x4ac026);if(Object[_0x5cf8c3(-0x66,-0x57)](_0x5c51b9[_0x5cf8c3(-0x30,-0x25)+_0x1bbae9(0x2d2,0x2bc)])['length']>0x0){console['log'](_0x55efda[_0x1bbae9(0x2c1,0x2bb)](_0x1bbae9(0x2af,0x2bf)+_0x5cf8c3(-0x5e,-0x79)+':\x0a'));const _0x24bdb9=Object[_0x1bbae9(0x2ab,0x2b9)](_0x5c51b9[_0x5cf8c3(-0x30,-0x2c)+_0x1bbae9(0x2ce,0x2bc)])[_0x1bbae9(0x2b6,0x2a3)]((_0x3b507d,_0x4a6582)=>_0x4a6582[0x1]-_0x3b507d[0x1]),_0x2dbe7c=Math[_0x1bbae9(0x2a5,0x2be)](..._0x24bdb9['map'](([_0x24aa8f])=>_0x24aa8f[_0x5cf8c3(-0x40,-0x2b)]));for(const [_0x47cbd9,_0x3d77af]of _0x24bdb9){const _0x3775e7=createBar(_0x3d77af,_0x5c51b9['totalMemor'+_0x5cf8c3(-0x4e,-0x62)],0x14),_0x5853a5=(_0x3d77af/_0x5c51b9[_0x1bbae9(0x299,0x2b2)+_0x1bbae9(0x2a2,0x2af)]*0x64)[_0x5cf8c3(-0x46,-0x30)](0x1);console[_0x1bbae9(0x2a1,0x298)]('\x20\x20'+_0x47cbd9[_0x1bbae9(0x2be,0x2c2)](_0x2dbe7c)+'\x20'+_0x3775e7+'\x20'+_0x55efda['cyan'](_0x3d77af[_0x1bbae9(0x2c5,0x2ae)]()['padStart'](0x4))+'\x20'+_0x55efda[_0x1bbae9(0x297,0x29d)]('('+_0x5853a5+'%)'));}}console[_0x5cf8c3(-0x65,-0x63)]();}finally{_0x19c7c8[_0x5cf8c3(-0x36,-0x2c)]();}});}function formatBytes(_0x3fe9bd){function _0x5e5799(_0x2f3a71,_0x21b337){return _0x13ad(_0x21b337- -0x3a8,_0x2f3a71);}function _0x2765b6(_0x568967,_0x44c91c){return _0x13ad(_0x44c91c- -0x3e1,_0x568967);}if(_0x3fe9bd<0x400)return _0x55efda[_0x2765b6(-0x227,-0x238)](_0x3fe9bd+'\x20B');else{if(_0x3fe9bd<0x400*0x400){if(_0x5e5799(-0x205,-0x20f)!=='WbmoM')return _0x55efda['green']((_0x3fe9bd/0x400)[_0x5e5799(-0x205,-0x208)](0x1)+'\x20KB');else{_0x58066e[_0x2765b6(-0x244,-0x260)](_0x38b078[_0x2765b6(-0x24d,-0x23d)](_0x5e5799(-0x1fa,-0x200)+'Categories'+':\x0a'));const _0x5e417a=_0x153f2f[_0x5e5799(-0x204,-0x206)](_0x576b6b[_0x5e5799(-0x1e4,-0x1f2)+'unts'])[_0x2765b6(-0x270,-0x255)]((_0x18f5da,_0x59d81f)=>_0x59d81f[0x1]-_0x18f5da[0x1]),_0x49e287=_0xca344c[_0x2765b6(-0x242,-0x23a)](..._0x5e417a[_0x2765b6(-0x23f,-0x24f)](([_0x339cf8])=>_0x339cf8[_0x2765b6(-0x24e,-0x23b)]));for(const [_0x56ffc0,_0x14f8da]of _0x5e417a){const _0x49f3c5=_0x51880d(_0x14f8da,_0x1f2ba2['totalMemor'+_0x2765b6(-0x243,-0x249)],0x14),_0x37ac66=(_0x14f8da/_0x374941['totalMemor'+'ies']*0x64)[_0x5e5799(-0x1f4,-0x208)](0x1);_0x5afa4d['log']('\x20\x20'+_0x56ffc0[_0x5e5799(-0x207,-0x1fd)](_0x49e287)+'\x20'+_0x49f3c5+'\x20'+_0x5c7e5d['cyan'](_0x14f8da[_0x5e5799(-0x20d,-0x211)]()['padStart'](0x4))+'\x20'+_0x2960df[_0x2765b6(-0x24e,-0x25b)]('('+_0x37ac66+'%)'));}}}else return'ogggM'===_0x5e5799(-0x1ff,-0x217)?_0x55efda[_0x5e5799(-0x20d,-0x1ff)]((_0x3fe9bd/(0x400*0x400))['toFixed'](0x1)+_0x2765b6(-0x229,-0x244)):_0x5633f5[_0x2765b6(-0x227,-0x238)]((_0x109370/0x400)[_0x2765b6(-0x23c,-0x241)](0x1)+_0x5e5799(-0x1d9,-0x1f4));}}function createBar(_0x2390e5,_0xb0d5cb,_0x2d96f7){const _0x30f05e=Math[_0x274727(0x429,0x41f)](_0x2390e5/_0xb0d5cb*_0x2d96f7);function _0x274727(_0x406c5b,_0x275aa5){return _0x13ad(_0x275aa5-0x268,_0x406c5b);}const _0x519516=_0x2d96f7-_0x30f05e;function _0x4fdba7(_0x59dffc,_0x426553){return _0x13ad(_0x426553-0x1a1,_0x59dffc);}return _0x55efda[_0x274727(0x419,0x3fe)]('█'['repeat'](_0x30f05e))+_0x55efda[_0x4fdba7(0x32a,0x327)]('░'[_0x4fdba7(0x356,0x34e)](_0x519516));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x512017,_0x29b8b6){function _0xe5030c(_0x3978a2,_0x248d86){return _0x558c(_0x3978a2- -0x280,_0x248d86);}function _0x30b3f8(_0x531f1e,_0x1741db){return _0x558c(_0x1741db- -0x324,_0x531f1e);}const _0x156e44=_0x512017();while(!![]){try{const _0x16196b=parseInt(_0x30b3f8(-0x299,-0x271))/0x1+parseInt(_0x30b3f8(-0x2c4,-0x299))/0x2+-parseInt(_0x30b3f8(-0x23d,-0x257))/0x3*(parseInt(_0x30b3f8(-0x295,-0x27c))/0x4)+-parseInt(_0x30b3f8(-0x262,-0x27d))/0x5*(parseInt(_0x30b3f8(-0x24a,-0x249))/0x6)+-parseInt(_0x30b3f8(-0x24a,-0x243))/0x7+-parseInt(_0xe5030c(-0x1a3,-0x1e2))/0x8+parseInt(_0x30b3f8(-0x2d0,-0x29b))/0x9*(parseInt(_0xe5030c(-0x1c2,-0x19e))/0xa);if(_0x16196b===_0x29b8b6)break;else _0x156e44['push'](_0x156e44['shift']());}catch(_0x2e46a9){_0x156e44['push'](_0x156e44['shift']());}}}(_0x551b,0xa07ec));import{Command}from'commander';import _0xb69000 from'chalk';import _0x5c1384 from'ora';import{ConfigManager}from'../../config/manager.js';import{MemoryDatabase}from'../../db/database.js';import{A2AClient}from'../../sync/client.js';import{MemorySynchronizer}from'../../sync/synchronizer.js';import{SyncScheduler}from'../../sync/scheduler.js';import{createLogger}from'../../utils/logger.js';export function syncCommand(){function _0xaabb2d(_0x24eb73,_0x40ac1a){return _0x558c(_0x40ac1a- -0xe1,_0x24eb73);}function _0x17ce79(_0x4adbc5,_0x3f55c8){return _0x558c(_0x3f55c8-0x1c4,_0x4adbc5);}const _0x5c422c=new Command(_0xaabb2d(-0x2d,-0x45));return _0x5c422c['descriptio'+'n'](_0x17ce79(0x260,0x271)+_0xaabb2d(-0x47,-0x40)+'\x20with\x20A2A\x20'+_0x17ce79(0x2a1,0x272))[_0x17ce79(0x2bd,0x2af)]('--push',_0x17ce79(0x29d,0x2b0)+_0xaabb2d(-0x6b,-0x30)+_0xaabb2d(-0x16,0x11)+_0xaabb2d(0x4f,0xe))[_0xaabb2d(-0x1c,0xa)](_0xaabb2d(-0x26,-0x46),'Pull\x20remot'+_0x17ce79(0x258,0x265)+'\x20from\x20serv'+_0xaabb2d(0x36,0x3))[_0xaabb2d(-0x2e,0xa)]('--status',_0xaabb2d(-0x3e,-0x36)+_0xaabb2d(-0x20,-0x5e)+_0xaabb2d(0x1b,0x13))[_0x17ce79(0x288,0x2af)]('--watch',_0xaabb2d(-0x47,-0x64)+_0xaabb2d(-0x3f,-0x44)+'on\x20interva'+_0xaabb2d(0x14,0x18)+_0x17ce79(0x259,0x24b))['option'](_0xaabb2d(-0x1,-0x27)+_0x17ce79(0x2b4,0x2bf),_0x17ce79(0x216,0x249)+_0x17ce79(0x246,0x24c)+_0x17ce79(0x28d,0x29b)+_0x17ce79(0x258,0x259)+_0xaabb2d(-0x38,-0x5f),parseInt)[_0xaabb2d(0x18,0x1)](async _0xc8c681=>{function _0x2d9e75(_0x58376f,_0x175541){return _0x17ce79(_0x175541,_0x58376f-0x77);}function _0x2e0b42(_0x571605,_0x111eff){return _0x17ce79(_0x111eff,_0x571605-0x10f);}if(_0x2d9e75(0x2dd,0x2c2)!==_0x2e0b42(0x375,0x340))_0x3ea52e instanceof _0x2735c6&&_0x2b528a[_0x2d9e75(0x325,0x31d)](_0xb84f00[_0x2e0b42(0x378,0x35a)]('\x0a❌\x20오류:\x20'+_0x3ca9ea['message']+'\x0a')),_0x2133bb[_0x2e0b42(0x360,0x36b)](0x1);else{const _0x25aba7=new ConfigManager()[_0x2e0b42(0x367,0x367)](),_0x99d9f1=new MemoryDatabase(_0x25aba7['db'][_0x2d9e75(0x317,0x349)]);try{_0x99d9f1[_0x2e0b42(0x353,0x34c)]();!_0x25aba7['server']['apiKey']&&(console[_0x2e0b42(0x3bd,0x3cc)](_0xb69000[_0x2e0b42(0x378,0x378)](_0x2e0b42(0x34b,0x34d)+_0x2e0b42(0x388,0x3c9)+_0x2d9e75(0x2c7,0x2dc))),console[_0x2d9e75(0x322,0x304)](_0x2d9e75(0x333,0x342)+'하세요:\x0a\x20\x20'+_0xb69000['cyan'](_0x2d9e75(0x2b4,0x2bc)+'\x20config\x20se'+_0x2d9e75(0x2c5,0x29b)+_0x2e0b42(0x3a4,0x377)+_0x2e0b42(0x362,0x366))+'\x0a'),process['exit'](0x1));const _0xab907d=new A2AClient({'baseUrl':_0x25aba7[_0x2e0b42(0x381,0x3bd)][_0x2e0b42(0x3ab,0x3e4)],'apiKey':_0x25aba7[_0x2d9e75(0x2e9,0x2d0)]['apiKey']}),_0x8df389=new MemorySynchronizer(_0x99d9f1,_0xab907d);if(_0xc8c681['status']){await showSyncStatus(_0x8df389);return;}if(_0xc8c681[_0x2e0b42(0x38a,0x3c2)]){await executeWatch(_0x8df389,_0x25aba7,_0xc8c681['interval']);return;}const _0x3df5ce=_0x5c1384(_0x2d9e75(0x2f3,0x2d9)+_0x2e0b42(0x3c3,0x3c3))[_0x2d9e75(0x2ea,0x2c5)](),_0x5bef00=await _0xab907d[_0x2d9e75(0x307,0x2df)+_0x2d9e75(0x320,0x2e0)]();!_0x5bef00&&(_0x3df5ce['fail'](_0xb69000['red'](_0x2d9e75(0x2df,0x2f9))),console[_0x2d9e75(0x322,0x31a)](_0xb69000['yellow'](_0x2e0b42(0x39e,0x3c1)+_0x2e0b42(0x369,0x390)+_0xb69000[_0x2e0b42(0x351,0x381)](_0x25aba7[_0x2e0b42(0x381,0x366)][_0x2e0b42(0x3ab,0x3e5)])+'\x0a')),process['exit'](0x1));_0x3df5ce['succeed'](_0xb69000[_0x2e0b42(0x34d,0x329)](_0x2e0b42(0x39a,0x387)));if(_0xc8c681[_0x2d9e75(0x335,0x345)]){if('LBCye'===_0x2d9e75(0x330,0x353))_0x14e84e[_0x2d9e75(0x325,0x34e)](_0x1b30f7['red'](_0x2e0b42(0x3a6,0x3d8)+_0x18e337[_0x2e0b42(0x38c,0x384)]+'\x0a'));else{await executePush(_0x8df389,0x0);return;}}if(_0xc8c681[_0x2e0b42(0x36a,0x371)]){await executePull(_0x8df389);return;}await executeSync(_0x8df389);}catch(_0x5ed6ff){_0x5ed6ff instanceof Error&&console['error'](_0xb69000[_0x2e0b42(0x378,0x33e)](_0x2d9e75(0x30e,0x341)+_0x5ed6ff['message']+'\x0a')),process[_0x2e0b42(0x360,0x373)](0x1);}finally{_0x99d9f1[_0x2e0b42(0x379,0x347)]();}}}),_0x5c422c;}async function showSyncStatus(_0x22277b){function _0x30971a(_0x4c99b3,_0x2b4e61){return _0x558c(_0x2b4e61-0x183,_0x4c99b3);}function _0x2796fc(_0x78e3ab,_0x2e0520){return _0x558c(_0x78e3ab-0x71,_0x2e0520);}const _0x5c99e9=_0x5c1384('동기화\x20상태\x20확인\x20'+'중...')[_0x30971a(0x220,0x232)](),_0x196297=await _0x22277b[_0x30971a(0x26f,0x25c)]();_0x5c99e9[_0x2796fc(0x12c,0xf6)](),console[_0x2796fc(0x158,0x122)](_0xb69000[_0x2796fc(0x135,0x16f)](_0x30971a(0x210,0x240))),console['log'](_0xb69000[_0x30971a(0x1f9,0x21c)]('로컬→원격\x20대기:')+'\x20'+_0xb69000['yellow'](_0x196297['pendingPus'+'h'])+'개'),console[_0x2796fc(0x158,0x142)](_0xb69000['dim'](_0x30971a(0x20f,0x244))+'\x20'+_0xb69000[_0x2796fc(0x14f,0x17f)](_0x196297[_0x30971a(0x2af,0x26b)+'l'])+'개');if(_0x196297['lastSynced'+'At']){const _0x99a60e=new Date(_0x196297[_0x30971a(0x243,0x251)+'At']);console[_0x2796fc(0x158,0x163)](_0xb69000[_0x2796fc(0x10a,0x117)](_0x30971a(0x23e,0x280))+'\x20'+_0xb69000[_0x2796fc(0xef,0xac)](_0x99a60e[_0x30971a(0x276,0x253)+_0x2796fc(0xed,0xd6)]()));}else _0x2796fc(0x145,0x143)!==_0x30971a(0x22c,0x24d)?console[_0x2796fc(0x158,0x172)](_0xb69000[_0x30971a(0x1ea,0x21c)]('마지막\x20동기화:')+'\x20'+_0xb69000[_0x2796fc(0x139,0x118)]('없음')):_0x87e0e[_0x30971a(0x299,0x26a)](_0x4c9552['dim']('마지막\x20동기화:')+'\x20'+_0x247236[_0x30971a(0x26a,0x24b)]('없음'));console[_0x30971a(0x261,0x26a)]();}async function executeSync(_0x249836){function _0x83286(_0x261aa7,_0x13223c){return _0x558c(_0x261aa7- -0x234,_0x13223c);}const _0x35c5ed=_0x5c1384(_0x14752a(-0x26a,-0x256)+'..')[_0x83286(-0x185,-0x186)](),_0x48a5d5=await _0x249836[_0x83286(-0x198,-0x1ce)]();_0x35c5ed[_0x14752a(-0x258,-0x21c)](),console['log'](_0xb69000[_0x83286(-0x170,-0x144)](_0x14752a(-0x1d4,-0x215))),console[_0x83286(-0x14d,-0x12e)](_0xb69000[_0x83286(-0x19b,-0x15a)](_0x14752a(-0x23e,-0x251))+'\x20'+_0xb69000['green'](_0x48a5d5[_0x83286(-0x136,-0x169)]+'개')),console[_0x83286(-0x14d,-0x14e)](_0xb69000[_0x14752a(-0x255,-0x23e)](_0x14752a(-0x233,-0x1f8))+'\x20'+_0xb69000[_0x83286(-0x1ba,-0x19e)](_0x48a5d5[_0x83286(-0x138,-0x16f)]+'개'));_0x48a5d5[_0x14752a(-0x1c9,-0x1e1)]>0x0&&console[_0x83286(-0x14d,-0x179)](_0xb69000['dim'](_0x14752a(-0x20b,-0x21b))+'\x20'+_0xb69000[_0x83286(-0x156,-0x14b)](_0x48a5d5[_0x14752a(-0x1a8,-0x1e1)]+'개'));function _0x14752a(_0x3a6a14,_0x451e87){return _0x558c(_0x451e87- -0x2d7,_0x3a6a14);}if(_0x48a5d5[_0x14752a(-0x220,-0x218)][_0x14752a(-0x1e2,-0x1e4)]>0x0){console[_0x14752a(-0x1d8,-0x1f0)](_0xb69000[_0x14752a(-0x232,-0x1f9)]('\x0a⚠️\x20\x20경고:\x20'+_0x48a5d5[_0x83286(-0x175,-0x17b)]['length']+_0x14752a(-0x258,-0x253)));for(const _0x1576cc of _0x48a5d5['errors']['slice'](0x0,0x5)){'YSzIu'!=='YSzIu'?_0x4a954a[_0x83286(-0x14d,-0x10d)](_0x2269de[_0x83286(-0x19b,-0x15a)]('\x20\x20...\x20외\x20'+(_0x1f8b24[_0x83286(-0x175,-0x144)]['length']-0x5)+_0x14752a(-0x24f,-0x261))):console[_0x14752a(-0x227,-0x1f0)](_0x83286(-0x1bd,-0x1dc)+_0xb69000[_0x14752a(-0x203,-0x23e)](_0x1576cc));}_0x48a5d5[_0x83286(-0x175,-0x135)]['length']>0x5&&console['log'](_0xb69000[_0x14752a(-0x257,-0x23e)]('\x20\x20...\x20외\x20'+(_0x48a5d5[_0x83286(-0x175,-0x180)][_0x14752a(-0x1a6,-0x1e4)]-0x5)+_0x83286(-0x1be,-0x1cb)));}console[_0x14752a(-0x1bd,-0x1f0)](_0xb69000[_0x14752a(-0x212,-0x23e)](_0x14752a(-0x235,-0x249)+(_0x48a5d5['duration']/0x3e8)['toFixed'](0x2)+'초\x0a'));}async function executePush(_0xc586fa,_0x287acd){const _0x551586=_0x5c1384(_0x486429(0x3e2,0x3e1)+'중...')[_0x42372b(0x163,0x19a)](),_0x9e09e=await _0xc586fa[_0x42372b(0x214,0x1e5)]({'timeoutMs':_0x287acd});function _0x486429(_0x5afc21,_0x4c26c2){return _0x558c(_0x5afc21-0x367,_0x4c26c2);}_0x551586['stop']();function _0x42372b(_0x5869bd,_0x47072d){return _0x558c(_0x47072d-0xeb,_0x5869bd);}console[_0x42372b(0x1e8,0x1d2)](_0xb69000['bold'](_0x486429(0x430,0x46e)+'\x0a')),console[_0x42372b(0x1ff,0x1d2)](_0xb69000[_0x486429(0x400,0x445)]('전송된\x20메모리:')+'\x20'+_0xb69000[_0x42372b(0x17b,0x165)](_0x9e09e[_0x42372b(0x20c,0x1e9)]+'개'));if(_0x9e09e[_0x486429(0x426,0x40b)][_0x486429(0x45a,0x461)]>0x0){console['log'](_0xb69000[_0x486429(0x445,0x412)](_0x486429(0x450,0x486)+_0x9e09e[_0x42372b(0x1b7,0x1aa)][_0x486429(0x45a,0x41c)]+_0x42372b(0x197,0x16f)));for(const _0x14ee66 of _0x9e09e['errors'][_0x486429(0x441,0x40c)](0x0,0x5)){console[_0x42372b(0x1ed,0x1d2)](_0x486429(0x3de,0x3a6)+_0xb69000[_0x42372b(0x1b9,0x184)](_0x14ee66));}}console[_0x486429(0x44e,0x446)](_0xb69000[_0x42372b(0x164,0x184)](_0x486429(0x3f5,0x42d)+(_0x9e09e[_0x42372b(0x1b8,0x1d8)]/0x3e8)[_0x42372b(0x15b,0x19b)](0x2)+'초\x0a'));}function _0x558c(_0x2cf888,_0x2716b2){_0x2cf888=_0x2cf888-0x76;const _0x551b53=_0x551b();let _0x558cb6=_0x551b53[_0x2cf888];if(_0x558c['RmySpI']===undefined){var _0x531ffa=function(_0x4922d9){const _0x4c58e6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x259081='',_0x2368af='';for(let _0x257ab4=0x0,_0x366f52,_0x2306ce,_0x5c1d96=0x0;_0x2306ce=_0x4922d9['charAt'](_0x5c1d96++);~_0x2306ce&&(_0x366f52=_0x257ab4%0x4?_0x366f52*0x40+_0x2306ce:_0x2306ce,_0x257ab4++%0x4)?_0x259081+=String['fromCharCode'](0xff&_0x366f52>>(-0x2*_0x257ab4&0x6)):0x0){_0x2306ce=_0x4c58e6['indexOf'](_0x2306ce);}for(let _0x2f36ae=0x0,_0x3d7cca=_0x259081['length'];_0x2f36ae<_0x3d7cca;_0x2f36ae++){_0x2368af+='%'+('00'+_0x259081['charCodeAt'](_0x2f36ae)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2368af);};_0x558c['NxyQiq']=_0x531ffa,_0x558c['BvaEYX']={},_0x558c['RmySpI']=!![];}const _0x2eac9d=_0x551b53[0x0],_0x2878d3=_0x2cf888+_0x2eac9d,_0x38e8a2=_0x558c['BvaEYX'][_0x2878d3];return!_0x38e8a2?(_0x558cb6=_0x558c['NxyQiq'](_0x558cb6),_0x558c['BvaEYX'][_0x2878d3]=_0x558cb6):_0x558cb6=_0x38e8a2,_0x558cb6;}async function executePull(_0x3f568f){const _0x4bf361=_0x5c1384(_0x34de03(-0xe0,-0xf5)+_0x34de03(-0x11f,-0xe1))[_0x34de03(-0x12e,-0x115)](),_0x5ed8d2=await _0x3f568f[_0x34de03(-0x11e,-0x12d)]();function _0x34de03(_0x1c1c78,_0x57afab){return _0x558c(_0x57afab- -0x1c4,_0x1c1c78);}_0x4bf361[_0x4071b3(0x151,0x113)](),console['log'](_0xb69000[_0x34de03(-0x104,-0x100)](_0x4071b3(0x104,0xea)+'\x0a')),console[_0x34de03(-0x99,-0xdd)](_0xb69000[_0x4071b3(0xe3,0xf1)](_0x34de03(-0xa0,-0xd3))+'\x20'+_0xb69000[_0x4071b3(0xe0,0xd2)](_0x5ed8d2[_0x34de03(-0x106,-0xc8)]+'개'));function _0x4071b3(_0x380c3b,_0x1169b7){return _0x558c(_0x1169b7-0x58,_0x380c3b);}_0x5ed8d2[_0x34de03(-0xe0,-0xce)]>0x0&&(_0x34de03(-0x12b,-0x12c)===_0x4071b3(0x12c,0x118)?(_0x5c1d96[_0x4071b3(0x16a,0x142)](_0x2f36ae[_0x4071b3(0xb8,0xfd)]('\x0a❌\x20API\x20Key'+_0x4071b3(0x147,0x10d)+_0x4071b3(0x128,0xe4))),_0x3d7cca[_0x34de03(-0x102,-0xdd)](_0x4071b3(0x10f,0x150)+_0x34de03(-0x10f,-0xe4)+_0x363204[_0x4071b3(0xad,0xd6)](_0x4071b3(0xb1,0xd1)+_0x4071b3(0x17b,0x146)+_0x4071b3(0x119,0xe2)+_0x4071b3(0x136,0x129)+'_API_KEY')+'\x0a'),_0x43ce49[_0x34de03(-0x117,-0x137)](0x1)):console[_0x4071b3(0x15b,0x13f)](_0xb69000[_0x34de03(-0x131,-0x12b)]('충돌\x20해결:')+'\x20'+_0xb69000[_0x4071b3(0x137,0x136)](_0x5ed8d2[_0x4071b3(0x156,0x14e)]+'개')));if(_0x5ed8d2['errors']['length']>0x0){console['log'](_0xb69000[_0x34de03(-0xc7,-0xe6)](_0x34de03(-0x11c,-0xdb)+_0x5ed8d2[_0x4071b3(0xf6,0x117)][_0x4071b3(0x165,0x14b)]+_0x4071b3(0xbe,0xdc)));for(const _0x492abd of _0x5ed8d2[_0x34de03(-0xf7,-0x105)][_0x34de03(-0xaa,-0xea)](0x0,0x5)){console[_0x34de03(-0x121,-0xdd)]('\x20\x20•\x20'+_0xb69000[_0x4071b3(0x12e,0xf1)](_0x492abd));}}console['log'](_0xb69000[_0x34de03(-0x13e,-0x12b)](_0x34de03(-0x132,-0x136)+(_0x5ed8d2['duration']/0x3e8)[_0x4071b3(0xdb,0x108)](0x2)+'초\x0a'));}function _0x551b(){const _0x3cc3e9=['ls1WDwXS','C3LUyW','Dw91CYbZEw5Jia','BxmP','7lsDioUpMEQ4So2zLcdTMP/SIjG6','C2H1DgrVD24','zsbTzw1VCMLLCW','sgzZCfa','zMX1C2G','7isC67keioYxSoQYScdSI6tTJkG','CMvK','y2XVC2u','mte5odKYmfLMBfzfsW','ne1iD3DiDq','BM8Gy2HHBMDLCW','DgnOioUQQoUtNcdSI5ZSNPek','u2HVDYbZEw5JAa','u0Lhvevstq','u3LUy2HYB25PEG','C2vYDMvY','C3rHCNq','Dg9gAxHLza','ig1LBw9YAwvZia','8j+tIIbxyxrJAcdSOOxRO4W','mJK3ndmZANbHCe1n','ywjVCNq','6RcaioYePoYGLEUqMoYNGcdSLyRSLzJSIRu','q3rYBcTd','D2f0y2G','7isC67keioYxSoQYScdTMzxSNBGG7ksr','BwvZC2fNzq','ls1PBNrLCNzHBa','C3rVCa','7lAP64+mio2vToQYSdO','cVcFK4OG64+z6RIW7zMuioYdGE2dNaO','nJmZmfjHBLftra','zxjYB3jZ','EMfSCMC','7jUq6RkP4OAs66gC7lUSioUmGoQ4SdO','cUkCHsdRJ5NQUldTMzqG7jMe66omcG','u3LUy1DHDgnO','yM9Sza','u0Lhsu5u','AM9PBG','7isC67keioYxSoQYScdSHlhQS7u','z3jHEq','cUkCHsbqDxnOioYzHoUJJa','r3P3Eeq','cUYeNoUYHcbvuKZSNyqG7zMv','DgvZDenVBM5LyW','mtC5ode4nwPpAgngrq','BgfZDfn5BMnLza','7jUq6RkP4OAs66gC7lUSioUpMEQ4So2zLca','Dg9mB2nHBgvtDa','CgLlzxKGwu9vuG','C3LUy0nVDw50','cUkDJcdSMktRPzG6ia','su10yKq','C2LNBMfS','yMX1zq','BgLZzwnVBMrZia','DxjS','z2v0u3rHDhvZ','C2XPy2u','mtHnEwL5t2G','Cgf0Aa','oda1mdm2ohf3uhfPCG','EwvSBg93','7jUq6RkP4OAs66gC7lUSoG','7zwy7is47jQuoGOGia','mZy2mdG4mw9mEeDksG','ywn0Aw9U','7ksrlI4U','zxiGB25SEq','DgLVBG','BwvtDhjPBMC','Bg9N','CgvUzgLUz1b1Ba','cUkAOo+4JYaG6Rk96RoGoIa','zxjYB3i','B3b0Aw9U','uhvZAcbSB2nHBa','zhvYyxrPB24','ignVBMzPzYbZzq','B25SEq','lI4U','6Rca7kc47jIOioUPLoUQQoUMRdO','Dg8GC2vYDMvYia','BgvUz3rO','ihn0yxr1CW','sNjUqw0','y29UzMXPy3rZ','rxjYB3i6ia','64UK7j2mioUQHEUGUEYwToUHNcdSHktSOju','BcaOzgvMyxvSDa','ChvZAa','idXTCZ4','ChvSBgvK','66Ei7kEa66EjioUpMEQ4So2zLdO','ChvZAgvK','6RcCioYyPoULMa','icdIGkiG','cUkDJcbbueKGs2v5','ytjHlw1LBw9YEq','z3jLzw4','66gC7lUS4OAs7jUq6RkPioUpMEQ4So2zLca','CMLUzW','uNvUignVBNrPBG','y3LHBG','Dg9mB2nHBgvuAq','Aw5PDgLHBgL6zq','7jAr67cP7zALioUpMEQ4So2zLcdSPjeU','DgnOkq','CM9UAxPHDgLVBG','6RcC7j2yioYyPoULMcdRSjZSG50','u3LUyYbPBNrLCG','66gC7lUS4OAs7jUq6RkPoG','oIaZmg1PBIK','DMfSigLUig1PBa','mZeYntD4rKXswei','DcbZzxj2zxiUyq','mJaXote0nhnPBgLdAW','64Ui64UKlGO','zxHPDa','cUYgJoYALcdSI5ZQSiq6ia','x0fqsv9lrvK','Aw50zxj2ywXnCW','ywrKrxzLBNrmAq','cUkCHsbqDwXSioYzHoUJJa','7ksr7kEaoG','Bg9Hza','khDPDgGGls13yq','7j247zwy7is47jQuoIa','ChvSBa','z21Tqvm','zgLT','Bg9Nz2LUzW'];_0x551b=function(){return _0x3cc3e9;};return _0x551b();}async function executeWatch(_0xb6f6ed,_0x1989d6,_0x399810){const _0x53a3bc=_0x399810??_0x1989d6['autoSync'][_0x2e3502(-0x32b,-0x301)],_0x57e6a1=createLogger(_0x43d2c1(0x365,0x32b),_0x1989d6[_0x2e3502(-0x321,-0x30e)]);console['log'](_0xb69000['bold']('\x0a🔄\x20Sync\x20Wa'+_0x2e3502(-0x311,-0x2ec))),console[_0x2e3502(-0x2d4,-0x2b2)](_0xb69000[_0x43d2c1(0x2e6,0x301)]('주기:')+'\x20'+_0xb69000[_0x43d2c1(0x31d,0x2e6)]((_0x53a3bc/0x3e8/0x3c)['toFixed'](0x1)+'분'));function _0x2e3502(_0xb1838,_0x37daf2){return _0x558c(_0xb1838- -0x3bb,_0x37daf2);}console['log'](_0xb69000[_0x43d2c1(0x2e6,0x301)](_0x43d2c1(0x2ea,0x2fb))+'\x20'+_0xb69000[_0x43d2c1(0x328,0x346)](_0x2e3502(-0x305,-0x2fe))+'\x0a');function _0x43d2c1(_0x4dc16c,_0x472a9a){return _0x558c(_0x472a9a-0x268,_0x4dc16c);}const _0x30e684=new SyncScheduler(_0xb6f6ed,{'intervalMs':_0x53a3bc,'syncOnStart':!![],'onSync':_0x47b261=>{const _0x27d315=new Date()['toLocaleTi'+_0x503a8c(0x483,0x452)](),_0x3714a5=[];function _0x503a8c(_0x11e51c,_0x6e871e){return _0x43d2c1(_0x6e871e,_0x11e51c-0x135);}if(_0x47b261['pushed']>0x0)_0x3714a5[_0x4b183f(0x44,0x81)](_0xb69000[_0x503a8c(0x417,0x442)]('↑'+_0x47b261['pushed']));function _0x4b183f(_0x29980f,_0x4ea568){return _0x43d2c1(_0x4ea568,_0x29980f- -0x31e);}if(_0x47b261['pulled']>0x0)_0x3714a5['push'](_0xb69000[_0x4b183f(0x20,-0x18)]('↓'+_0x47b261[_0x503a8c(0x499,0x4cc)]));if(_0x47b261[_0x503a8c(0x45c,0x45f)][_0x503a8c(0x490,0x4be)]>0x0)_0x3714a5[_0x4b183f(0x44,0x54)](_0xb69000[_0x4b183f(-0x11,0x1b)]('!'+_0x47b261[_0x503a8c(0x45c,0x41f)]['length']));const _0x24970f=_0x3714a5[_0x503a8c(0x490,0x457)]>0x0?_0x3714a5[_0x4b183f(0x10,0x37)]('\x20'):_0xb69000[_0x503a8c(0x436,0x3f8)](_0x4b183f(-0xd,-0x3f));console['log']('['+_0xb69000[_0x503a8c(0x436,0x41f)](_0x27d315)+']\x20'+_0x24970f+'\x20('+_0x47b261['duration']+_0x4b183f(-0x18,-0x4b));},'onError':_0x480a6c=>{function _0x54f066(_0x3b4a28,_0x5aef16){return _0x43d2c1(_0x5aef16,_0x3b4a28- -0x34f);}function _0x269c59(_0x2f2512,_0x548dff){return _0x43d2c1(_0x548dff,_0x2f2512-0x170);}const _0x108d2e=new Date()[_0x269c59(0x457,0x43c)+_0x269c59(0x4be,0x493)]();console[_0x269c59(0x4bf,0x47b)]('['+_0xb69000[_0x54f066(-0x4e,-0x8a)](_0x108d2e)+']\x20'+_0xb69000['red'](_0x269c59(0x4cf,0x4cb)+_0x480a6c['message']));}},_0x57e6a1),_0x19a8c9=new AbortController(),_0x3c4420=()=>{function _0x15bce8(_0x44a609,_0x2fdf6e){return _0x2e3502(_0x2fdf6e-0x610,_0x44a609);}function _0x3d818d(_0x582623,_0x1e0648){return _0x2e3502(_0x1e0648-0x5ac,_0x582623);}_0x30e684[_0x15bce8(0x313,0x310)]();const _0x2b8db4=_0x30e684[_0x3d818d(0x29e,0x2ca)]();console[_0x15bce8(0x31c,0x33c)]('\x0a'+_0xb69000['bold'](_0x3d818d(0x29f,0x2a3))),console[_0x15bce8(0x312,0x33c)](_0xb69000[_0x3d818d(0x2cc,0x28a)](_0x3d818d(0x2c7,0x290))+'\x20'+_0x2b8db4[_0x15bce8(0x313,0x327)]),_0x57e6a1[_0x15bce8(0x31b,0x2f8)](),_0x19a8c9[_0x3d818d(0x2ba,0x2a5)]();};process['on'](_0x2e3502(-0x2f6,-0x324),_0x3c4420),process['on'](_0x43d2c1(0x2fe,0x314),_0x3c4420),await _0x30e684['start']();try{await new Promise((_0x530d9c,_0x3fb912)=>{function _0x239881(_0x2d2988,_0x153d8f){return _0x43d2c1(_0x153d8f,_0x2d2988- -0x4c2);}function _0x3e25c9(_0x407282,_0x20bef4){return _0x43d2c1(_0x407282,_0x20bef4- -0x33e);}_0x19a8c9[_0x3e25c9(0xd,-0x1)][_0x3e25c9(-0x55,-0x45)+'stener'](_0x3e25c9(0x1b,-0x22),()=>_0x3fb912(new Error(_0x239881(-0x1ba,-0x1ce))));});}catch{}}
|
|
1
|
+
(function(_0x5977ef,_0x31b985){function _0x355c54(_0x48ad26,_0x3ea891){return _0x4cbc(_0x48ad26- -0x34d,_0x3ea891);}function _0x27cd(_0x430513,_0x457cdd){return _0x4cbc(_0x457cdd- -0x2cc,_0x430513);}const _0x46d9f3=_0x5977ef();while(!![]){try{const _0x5ec136=-parseInt(_0x27cd(-0x10d,-0xf6))/0x1*(parseInt(_0x355c54(-0x1df,-0x20d))/0x2)+-parseInt(_0x27cd(-0x123,-0x11a))/0x3+-parseInt(_0x27cd(-0x113,-0x142))/0x4*(-parseInt(_0x27cd(-0x127,-0x139))/0x5)+parseInt(_0x27cd(-0x16c,-0x140))/0x6+-parseInt(_0x355c54(-0x166,-0x19b))/0x7+-parseInt(_0x355c54(-0x1af,-0x1cb))/0x8+parseInt(_0x355c54(-0x184,-0x190))/0x9;if(_0x5ec136===_0x31b985)break;else _0x46d9f3['push'](_0x46d9f3['shift']());}catch(_0x699865){_0x46d9f3['push'](_0x46d9f3['shift']());}}}(_0x116a,0xc38fe));import{Command}from'commander';function _0x4cbc(_0x4568d7,_0x58db10){_0x4568d7=_0x4568d7-0x169;const _0x116afd=_0x116a();let _0x4cbcd0=_0x116afd[_0x4568d7];if(_0x4cbc['hHsNXl']===undefined){var _0x31138c=function(_0x2bb998){const _0x512079='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2bd5ab='',_0x8f920b='';for(let _0x17241b=0x0,_0x2caea4,_0x183f11,_0x12eeed=0x0;_0x183f11=_0x2bb998['charAt'](_0x12eeed++);~_0x183f11&&(_0x2caea4=_0x17241b%0x4?_0x2caea4*0x40+_0x183f11:_0x183f11,_0x17241b++%0x4)?_0x2bd5ab+=String['fromCharCode'](0xff&_0x2caea4>>(-0x2*_0x17241b&0x6)):0x0){_0x183f11=_0x512079['indexOf'](_0x183f11);}for(let _0x223db6=0x0,_0x1dd4e7=_0x2bd5ab['length'];_0x223db6<_0x1dd4e7;_0x223db6++){_0x8f920b+='%'+('00'+_0x2bd5ab['charCodeAt'](_0x223db6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x8f920b);};_0x4cbc['oAEIen']=_0x31138c,_0x4cbc['rCAHxt']={},_0x4cbc['hHsNXl']=!![];}const _0x391c03=_0x116afd[0x0],_0x5ae277=_0x4568d7+_0x391c03,_0x59d93e=_0x4cbc['rCAHxt'][_0x5ae277];return!_0x59d93e?(_0x4cbcd0=_0x4cbc['oAEIen'](_0x4cbcd0),_0x4cbc['rCAHxt'][_0x5ae277]=_0x4cbcd0):_0x4cbcd0=_0x59d93e,_0x4cbcd0;}import _0x8739ed from'chalk';function _0x116a(){const _0x180014=['uNvUignVBNrPBG','ChvSBa','mJi2mZuZCfbdqKT2','B3b0Aw9U','ls1WDwXS','idXTCZ4','rxjYB3i6ia','AM9PBG','C2LNBMfS','cVcFK4OG64+z6RIW7zMuioYdGE2dNaO','66gC7lUS4OAs7jUq6RkPioUmGoQ4SdO','7ksr7kEaoG','BcaOzgvMyxvSDa','u0Lhsu5u','y2XVC2u','ls1ZDgf0Dxm','u3LUyYbPBNrLCG','Dg8GC2vYDMvYia','7jAr67cP7zALioUpMEQ4So2zLcdSPjeU','yMX1zq','icdIGkiG','yM9Sza','64Ui64UKlGO','yxv0B1n5BMm','icaUlI4G7jM4ia','oti4mte4n3PvwMLfDq','DgvZDenVBM5LyW','ytjHlw1LBw9YEq','cUkDJcbbueKGs2v5','CMvK','EwvSBg93','igzYB20GC2vYDG','cUYeNoUYHcbvuKZSNyqG7zMv','cUkCHsdRJ5NQUldTMzqG7jMe66omcG','uhvSBcbYzw1VDa','z2v0u3rHDhvZ','B24GAw50zxj2yq','ChvZAgvK','mJyXmZvjCwz1DKK','cVcFLiqGu3LUyYbxyq','C3rVCa','BM8Gy2HHBMDLCW','64UK7j2mioUQHEUGUEYwToUHNcdSHktSOju','u0Lhvevstq','zxHPDa','khDPDgGGls13yq','cUkDJcdSMktRPzG6ia','CgvUzgLUz1b1CW','zxiGB25SEq','Aw5PDgLHBgL6zq','D2f0y2G','Aw50zxj2ywW','zgLT','ywrKrxzLBNrmAq','u3LUy1DHDgnO','mteXmZC3mZvXCvHpzLG','B25SEq','CgvUzgLUz1b1Ba','C3LUy0nVDw50','BxmP','ls1PBNrLCNzHBa','6RcCioYyPoULMa','DgnOioUQQoUtNcdSI5ZSNPek','66gC7lUS4OAs7jUq6RkPioUpMEQ4So2zLca','nJHkuKrJwKO','C2vYDMvY','6RcC7j2yioYyPoULMcdRSjZSG50','7isC67keioYxSoQYScdSI6tTJkG','7lsDioUpMEQ4So2zLcdTMP/SIjG6','oIaZmg1PBIK','C3rHCNq','7zwy7is47jQuoGOGia','Bg9N','u3LUy2HYB25PEG','7lAP64+mio2vToQYSdO','BwvZC2fNzq','zxjYB3jZ','6RcaioYePoYGLEUqMoYNGcdSLyRSLzJSIRu','CgLlzxKGwu9vuG','DxjS','zxjYB3i','Dvjbs00','ChvSBgvK','cUkCHsbqDwXSioYzHoUJJa','BwvtDhjPBMC','Aw50zxj2ywXnCW','CMLUzW','7isC67keioYxSoQYScdSHlhQS7u','lI4U','Dg9mB2nHBgvuAq','8j+tIIbxyxrJAcdSOOxRO4W','zhvYyxrPB24','odqXotu2BKrxv21e','DgLVBG','nZGWoteWohvWuuPhwa','ANjnDgm','7j247zwy7is47jQuoIa','7kce7iAH65cCioUPLoUQQoUMRdO','cUYgJoYALcdSI5ZQSiq6ia','7jUq6RkP4OAs66gC7lUSioUmGoQ4SdO','ignVBMzPzYbZzq','mJvqDuHhq3u','y3LHBG','q3rYBcTd','DgnOkq','66Ei7kEa66EjioUpMEQ4So2zLdO','66gC7lUS4OAs7jUq6RkPoG','yxbPs2v5','y29UzMXPy3rZ','z3jLzw4','ywn0Aw9U','7jUq6RkP4OAs66gC7lUSoG','mJmYmZa0sLnsB2n6','ChvZAa','C2XPy2u','zMX1C2G','C3vJy2vLza','ls1WDxnO','Bg9Hza','BgvUz3rO','u2HVDYbZEw5JAa','Cgf0Aa','vezZthK','cUkAOo+4JYaG6Rk96RoGoIa','C2H1DgrVD24','7ksrlI4U','uhvZAcbSB2nHBa','Dg9mB2nHBgvtDa','Dg9gAxHLza','64+z6RIW7zMuioYdGE2dNcdTMzxSNBGG'];_0x116a=function(){return _0x180014;};return _0x116a();}import _0x436d1f from'ora';import{ConfigManager}from'../../config/manager.js';import{MemoryDatabase}from'../../db/database.js';import{A2AClient}from'../../sync/client.js';import{MemorySynchronizer}from'../../sync/synchronizer.js';import{SyncScheduler}from'../../sync/scheduler.js';import{createLogger}from'../../utils/logger.js';export function syncCommand(){function _0x5ae648(_0x347587,_0x393aa3){return _0x4cbc(_0x347587- -0x281,_0x393aa3);}function _0xd09469(_0x3d2ab0,_0x16bef1){return _0x4cbc(_0x16bef1- -0x186,_0x3d2ab0);}const _0xcacb7=new Command('sync');return _0xcacb7['descriptio'+'n'](_0xd09469(-0x47,-0xf)+'e\x20memories'+'\x20with\x20A2A\x20'+_0x5ae648(-0x112,-0x101))[_0x5ae648(-0xce,-0xac)](_0xd09469(0x50,0x1d),_0x5ae648(-0xd5,-0xce)+'\x20memories\x20'+_0x5ae648(-0xc0,-0xbd)+_0xd09469(0x3b,0x62))[_0x5ae648(-0xce,-0x96)](_0x5ae648(-0xcd,-0xa3),_0xd09469(0x7e,0x4c)+'e\x20memories'+_0x5ae648(-0xb2,-0xe4)+_0x5ae648(-0xa1,-0x9d))['option'](_0xd09469(0xc,0x39),_0xd09469(0x4e,0x20)+'ronization'+'\x20status')[_0x5ae648(-0xce,-0xd9)]('--watch',_0xd09469(-0xd,0x2a)+'uous\x20sync\x20'+_0x5ae648(-0xad,-0xcb)+_0x5ae648(-0xc5,-0xc8)+_0xd09469(0xd,-0x13))[_0x5ae648(-0xce,-0xf6)](_0x5ae648(-0x117,-0x101)+_0xd09469(0x17,0x2f),_0x5ae648(-0xc1,-0xcc)+'val\x20in\x20mil'+'liseconds\x20'+_0xd09469(0x16,0x57)+_0xd09469(-0x18,0x10),parseInt)[_0xd09469(0x10,0x16)](async _0x180b6a=>{const _0x3c9f14=new ConfigManager()[_0x55246d(0x215,0x1e8)]();function _0x57c913(_0x203f1b,_0x42b841){return _0xd09469(_0x203f1b,_0x42b841-0x209);}function _0x55246d(_0x1e9b76,_0xf217d9){return _0xd09469(_0xf217d9,_0x1e9b76-0x1f7);}const _0x47b31a=new MemoryDatabase(_0x3c9f14['db'][_0x55246d(0x218,0x1db)]);try{if('Upwwr'===_0x57c913(0x1f4,0x22b))_0xc2f50b[_0x55246d(0x1e7,0x20f)](_0x402efc['dim'](_0x57c913(0x254,0x24b)+(_0xd88e9[_0x57c913(0x1ef,0x1fd)]['length']-0x5)+_0x55246d(0x1dc,0x1f7)));else{_0x47b31a[_0x57c913(0x277,0x264)]();!_0x3c9f14[_0x55246d(0x1e0,0x1c2)][_0x55246d(0x20a,0x1ff)]&&(console['error'](_0x8739ed[_0x57c913(0x26d,0x250)](_0x57c913(0x25e,0x24f)+_0x57c913(0x1de,0x1fe)+_0x57c913(0x271,0x249))),console[_0x57c913(0x1dc,0x1f9)](_0x57c913(0x254,0x25d)+_0x57c913(0x1c9,0x1f8)+_0x8739ed[_0x57c913(0x1df,0x217)](_0x55246d(0x23c,0x207)+_0x57c913(0x209,0x215)+'t\x20server.a'+_0x55246d(0x1ed,0x1ca)+'_API_KEY')+'\x0a'),process[_0x55246d(0x24d,0x228)](0x1));const _0x5b84b9=new A2AClient({'baseUrl':_0x3c9f14[_0x57c913(0x1ba,0x1f2)][_0x55246d(0x1ee,0x1ec)],'apiKey':_0x3c9f14[_0x57c913(0x22c,0x1f2)][_0x55246d(0x20a,0x232)]}),_0xc6d359=new MemorySynchronizer(_0x47b31a,_0x5b84b9);if(_0x180b6a['status']){await showSyncStatus(_0xc6d359);return;}if(_0x180b6a[_0x55246d(0x253,0x235)]){await executeWatch(_0xc6d359,_0x3c9f14,_0x180b6a[_0x55246d(0x254,0x216)]);return;}const _0x37eee8=_0x436d1f('서버\x20연결\x20확인\x20중'+_0x55246d(0x1f7,0x21b))['start'](),_0x39b7e1=await _0x5b84b9[_0x55246d(0x23b,0x21c)+_0x57c913(0x1d3,0x20e)]();!_0x39b7e1&&(_0x37eee8['fail'](_0x8739ed[_0x57c913(0x238,0x250)](_0x55246d(0x1e2,0x1de))),console['log'](_0x8739ed['yellow'](_0x55246d(0x241,0x21c)+_0x55246d(0x1ff,0x1e3)+_0x8739ed['cyan'](_0x3c9f14[_0x55246d(0x1e0,0x1d2)][_0x57c913(0x216,0x200)])+'\x0a')),process[_0x55246d(0x24d,0x233)](0x1));_0x37eee8[_0x57c913(0x21c,0x225)](_0x8739ed[_0x55246d(0x20c,0x1e7)](_0x57c913(0x22e,0x208)));if(_0x180b6a['push']){await executePush(_0xc6d359,0x0);return;}if(_0x180b6a[_0x55246d(0x222,0x239)]){await executePull(_0xc6d359);return;}await executeSync(_0xc6d359);}}catch(_0x500850){_0x500850 instanceof Error&&(_0x55246d(0x1f0,0x221)!==_0x55246d(0x1f0,0x225)?_0x5b0c97[_0x55246d(0x1e7,0x211)](_0x213555['dim'](_0x55246d(0x208,0x216))+'\x20'+_0x44b8cb['gray']('없음')):console['error'](_0x8739ed[_0x57c913(0x22a,0x250)](_0x57c913(0x280,0x261)+_0x500850[_0x55246d(0x1ea,0x1fd)]+'\x0a'))),process[_0x55246d(0x24d,0x223)](0x1);}finally{_0x47b31a[_0x57c913(0x270,0x241)]();}}),_0xcacb7;}async function showSyncStatus(_0x5892a5){const _0x529e70=_0x436d1f(_0x553433(-0x173,-0x159)+'중...')[_0x953c70(-0x90,-0x82)]();function _0x953c70(_0x1022a0,_0x51838e){return _0x4cbc(_0x51838e- -0x1f6,_0x1022a0);}const _0x344d2a=await _0x5892a5[_0x553433(-0x143,-0x135)]();_0x529e70[_0x553433(-0xfb,-0x130)](),console[_0x553433(-0x16f,-0x192)](_0x8739ed[_0x953c70(-0x6,-0x31)](_0x953c70(-0x5f,-0x3d))),console[_0x553433(-0x186,-0x192)](_0x8739ed[_0x953c70(-0x14,-0x12)](_0x953c70(-0x1b,-0x3c))+'\x20'+_0x8739ed[_0x953c70(-0xc,-0x28)](_0x344d2a[_0x953c70(-0x24,-0x17)+'h'])+'개');function _0x553433(_0x133388,_0x1ccd5e){return _0x4cbc(_0x1ccd5e- -0x308,_0x133388);}console[_0x953c70(-0x68,-0x80)](_0x8739ed['dim'](_0x553433(-0x195,-0x177))+'\x20'+_0x8739ed[_0x953c70(-0x23,-0x28)](_0x344d2a[_0x953c70(-0x42,-0xd)+'l'])+'개');if(_0x344d2a['lastSynced'+'At']){const _0x42acfa=new Date(_0x344d2a['lastSynced'+'At']);console[_0x553433(-0x17a,-0x192)](_0x8739ed[_0x953c70(0x1a,-0x12)](_0x953c70(-0x22,-0x5f))+'\x20'+_0x8739ed[_0x953c70(-0x35,-0x62)](_0x42acfa[_0x953c70(-0x3b,-0x49)+_0x953c70(-0x39,-0x72)]()));}else console[_0x553433(-0x1b0,-0x192)](_0x8739ed[_0x553433(-0x15e,-0x124)](_0x953c70(-0x3d,-0x5f))+'\x20'+_0x8739ed['gray']('없음'));console['log']();}async function executeSync(_0x3f8d2c){const _0x45c17b=_0x436d1f(_0x2d3888(0x284,0x26c)+'..')[_0x2d3888(0x236,0x270)](),_0x30b17b=await _0x3f8d2c['sync']();_0x45c17b[_0x2d3888(0x29a,0x280)](),console['log'](_0x8739ed['bold'](_0x2d3888(0x293,0x2ce)));function _0x5a4846(_0x1020ce,_0x1fa90f){return _0x4cbc(_0x1fa90f-0x100,_0x1020ce);}console['log'](_0x8739ed[_0x2d3888(0x2a6,0x2d5)](_0x2d3888(0x25a,0x295))+'\x20'+_0x8739ed[_0x5a4846(0x2b9,0x29b)](_0x30b17b['pushed']+'개')),console[_0x2d3888(0x238,0x276)](_0x8739ed[_0x2d3888(0x2a6,0x2af)](_0x2d3888(0x25f,0x25e))+'\x20'+_0x8739ed['green'](_0x30b17b[_0x2d3888(0x242,0x238)]+'개'));_0x30b17b[_0x2d3888(0x25c,0x29c)]>0x0&&console[_0x5a4846(0x23b,0x276)](_0x8739ed[_0x2d3888(0x2a6,0x29b)](_0x2d3888(0x23a,0x25f))+'\x20'+_0x8739ed[_0x2d3888(0x290,0x261)](_0x30b17b[_0x2d3888(0x25c,0x290)]+'개'));function _0x2d3888(_0x262f01,_0x5e9005){return _0x4cbc(_0x262f01-0xc2,_0x5e9005);}if(_0x30b17b['errors'][_0x2d3888(0x267,0x24d)]>0x0){console['log'](_0x8739ed[_0x5a4846(0x2ea,0x2ce)](_0x2d3888(0x26b,0x28a)+_0x30b17b[_0x2d3888(0x23c,0x215)][_0x2d3888(0x267,0x29d)]+_0x5a4846(0x230,0x270)));for(const _0x378a3b of _0x30b17b[_0x5a4846(0x27a,0x27a)][_0x2d3888(0x262,0x24d)](0x0,0x5)){console['log'](_0x5a4846(0x2f5,0x2c4)+_0x8739ed[_0x5a4846(0x2e7,0x2e4)](_0x378a3b));}_0x30b17b[_0x5a4846(0x2b7,0x27a)][_0x2d3888(0x267,0x2a2)]>0x5&&console[_0x2d3888(0x238,0x21d)](_0x8739ed[_0x2d3888(0x2a6,0x28e)](_0x5a4846(0x2ee,0x2c8)+(_0x30b17b[_0x5a4846(0x270,0x27a)][_0x5a4846(0x273,0x2a5)]-0x5)+_0x5a4846(0x2ac,0x26b)));}console[_0x2d3888(0x238,0x21d)](_0x8739ed['dim'](_0x5a4846(0x296,0x290)+(_0x30b17b[_0x2d3888(0x24b,0x26a)]/0x3e8)[_0x5a4846(0x2ab,0x2ae)](0x2)+'초\x0a'));}async function executePush(_0x1e4c34,_0x313ba8){const _0x3f2c54=_0x436d1f(_0x3626e7(-0x94,-0xc5)+_0x3626e7(-0xa8,-0x87))[_0x8d0870(0x4b8,0x4ba)](),_0x239c93=await _0x1e4c34[_0x3626e7(-0x90,-0x93)]({'timeoutMs':_0x313ba8});function _0x8d0870(_0x4aee4b,_0x37134d){return _0x4cbc(_0x37134d-0x346,_0x4aee4b);}_0x3f2c54['stop'](),console[_0x8d0870(0x47c,0x4bc)](_0x8739ed[_0x8d0870(0x527,0x50b)]('\x0a✅\x20Push\x20완료'+'\x0a'));function _0x3626e7(_0x24c944,_0x29447d){return _0x4cbc(_0x29447d- -0x232,_0x24c944);}console['log'](_0x8739ed[_0x8d0870(0x569,0x52a)](_0x3626e7(-0xa8,-0xa3))+'\x20'+_0x8739ed['green'](_0x239c93['pushed']+'개'));if(_0x239c93[_0x8d0870(0x499,0x4c0)]['length']>0x0){console[_0x8d0870(0x4c0,0x4bc)](_0x8739ed[_0x8d0870(0x507,0x514)]('\x0a⚠️\x20\x20경고:\x20'+_0x239c93['errors'][_0x3626e7(-0xa0,-0x8d)]+_0x3626e7(-0xbc,-0xc2)));for(const _0x24f953 of _0x239c93[_0x8d0870(0x4c7,0x4c0)][_0x3626e7(-0x6d,-0x92)](0x0,0x5)){'GBVCP'===_0x3626e7(-0xda,-0xa5)?_0x3b5cbc[_0x3626e7(-0xb6,-0xb4)](_0x2f82d0[_0x8d0870(0x505,0x513)](_0x3626e7(-0x77,-0x54)+_0x4bbb5d['message']+'\x0a')):console[_0x3626e7(-0xf9,-0xbc)](_0x3626e7(-0x58,-0x6e)+_0x8739ed['dim'](_0x24f953));}}console[_0x8d0870(0x4d3,0x4bc)](_0x8739ed[_0x8d0870(0x52e,0x52a)](_0x8d0870(0x504,0x4d6)+(_0x239c93[_0x8d0870(0x4cb,0x4cf)]/0x3e8)[_0x8d0870(0x4d9,0x4f4)](0x2)+'초\x0a'));}async function executePull(_0x47a8c8){const _0xd7d5a9=_0x436d1f('원격→로컬\x20동기화\x20'+_0x467afc(0x114,0x145))[_0x467afc(0x11a,0x10e)]();function _0x467afc(_0x37c1b8,_0x268b4d){return _0x4cbc(_0x268b4d- -0x66,_0x37c1b8);}const _0x4d1955=await _0x47a8c8['pull']();_0xd7d5a9[_0x17f431(0x528,0x4ef)](),console[_0x17f431(0x49f,0x48d)](_0x8739ed['bold'](_0x467afc(0x150,0x11b)+'\x0a'));function _0x17f431(_0x3a41eb,_0x2b16f2){return _0x4cbc(_0x2b16f2-0x317,_0x3a41eb);}console['log'](_0x8739ed[_0x17f431(0x4d1,0x4fb)]('가져온\x20메모리:')+'\x20'+_0x8739ed[_0x467afc(0x14b,0x135)](_0x4d1955['pulled']+'개'));_0x4d1955['conflicts']>0x0&&console[_0x467afc(0x151,0x110)](_0x8739ed['dim'](_0x17f431(0x461,0x48f))+'\x20'+_0x8739ed[_0x17f431(0x51a,0x4e5)](_0x4d1955[_0x17f431(0x4e6,0x4b1)]+'개'));if(_0x4d1955[_0x17f431(0x455,0x491)]['length']>0x0){console[_0x467afc(0xde,0x110)](_0x8739ed[_0x467afc(0x174,0x168)](_0x467afc(0x155,0x143)+_0x4d1955[_0x17f431(0x4cd,0x491)][_0x17f431(0x4f1,0x4bc)]+'개의\x20오류\x20발생'));for(const _0x34783f of _0x4d1955[_0x467afc(0xf3,0x114)][_0x17f431(0x4ef,0x4b7)](0x0,0x5)){console['log'](_0x17f431(0x4db,0x4db)+_0x8739ed[_0x17f431(0x4dd,0x4fb)](_0x34783f));}}console['log'](_0x8739ed[_0x467afc(0x1b4,0x17e)](_0x17f431(0x489,0x4a7)+(_0x4d1955[_0x467afc(0xf7,0x123)]/0x3e8)[_0x467afc(0x108,0x148)](0x2)+'초\x0a'));}async function executeWatch(_0x372ef5,_0x10385a,_0xee3c12){const _0x42e251=_0xee3c12??_0x10385a[_0x5047ce(-0xad,-0xd6)][_0x1d8b23(0x448,0x43b)],_0x2bb780=createLogger(_0x5047ce(-0x8e,-0x86),_0x10385a['logging']);function _0x1d8b23(_0x11305e,_0x5b62c7){return _0x4cbc(_0x11305e-0x2c5,_0x5b62c7);}function _0x5047ce(_0x25f083,_0xa8386f){return _0x4cbc(_0x25f083- -0x274,_0xa8386f);}console[_0x1d8b23(0x43b,0x456)](_0x8739ed['bold'](_0x5047ce(-0x9d,-0x7e)+_0x1d8b23(0x431,0x426))),console[_0x5047ce(-0xfe,-0xca)](_0x8739ed['dim']('주기:')+'\x20'+_0x8739ed[_0x5047ce(-0xe0,-0xea)]((_0x42e251/0x3e8/0x3c)[_0x1d8b23(0x473,0x45a)](0x1)+'분')),console['log'](_0x8739ed[_0x5047ce(-0x90,-0x70)](_0x1d8b23(0x480,0x444))+'\x20'+_0x8739ed[_0x5047ce(-0xa6,-0x94)](_0x1d8b23(0x45a,0x452))+'\x0a');const _0x258884=new SyncScheduler(_0x372ef5,{'intervalMs':_0x42e251,'syncOnStart':!![],'onSync':_0x1e88df=>{const _0x1fe6b0=new Date()[_0x25d2b2(0x419,0x3fa)+'meString']();function _0x4c159e(_0x158081,_0x4f74f9){return _0x1d8b23(_0x4f74f9- -0x2a,_0x158081);}const _0x554d99=[];if(_0x1e88df[_0x4c159e(0x4af,0x470)]>0x0)_0x554d99[_0x4c159e(0x41b,0x43a)](_0x8739ed['green']('↑'+_0x1e88df[_0x4c159e(0x458,0x470)]));function _0x25d2b2(_0x18c473,_0x30ac22){return _0x1d8b23(_0x30ac22- -0x52,_0x18c473);}if(_0x1e88df[_0x25d2b2(0x403,0x3f3)]>0x0)_0x554d99[_0x4c159e(0x416,0x43a)](_0x8739ed[_0x25d2b2(0x41d,0x436)]('↓'+_0x1e88df[_0x4c159e(0x40b,0x41b)]));if(_0x1e88df[_0x25d2b2(0x3e3,0x3ed)][_0x25d2b2(0x443,0x418)]>0x0)_0x554d99['push'](_0x8739ed[_0x25d2b2(0x481,0x440)]('!'+_0x1e88df[_0x4c159e(0x447,0x415)][_0x4c159e(0x40a,0x440)]));const _0xd8b559=_0x554d99[_0x25d2b2(0x447,0x418)]>0x0?_0x554d99[_0x25d2b2(0x3ea,0x42a)]('\x20'):_0x8739ed[_0x25d2b2(0x46e,0x457)](_0x25d2b2(0x481,0x44c));console[_0x25d2b2(0x40c,0x3e9)]('['+_0x8739ed[_0x4c159e(0x4b3,0x47f)](_0x1fe6b0)+']\x20'+_0xd8b559+'\x20('+_0x1e88df[_0x4c159e(0x45d,0x424)]+_0x25d2b2(0x3d6,0x3dc));},'onError':_0x20cbea=>{function _0x5010bd(_0x1f79ff,_0x54a184){return _0x5047ce(_0x1f79ff-0x3e8,_0x54a184);}const _0x40ec18=new Date()[_0x5010bd(0x2fb,0x2e3)+_0x4aee8d(0x338,0x333)]();function _0x4aee8d(_0x1732f6,_0x5a1320){return _0x5047ce(_0x1732f6-0x42a,_0x5a1320);}console[_0x5010bd(0x2ea,0x2ab)]('['+_0x8739ed[_0x4aee8d(0x39a,0x38d)](_0x40ec18)+']\x20'+_0x8739ed[_0x4aee8d(0x383,0x383)](_0x5010bd(0x32a,0x2f2)+_0x20cbea[_0x4aee8d(0x32f,0x358)]));}},_0x2bb780),_0x19ac89=new AbortController(),_0x262372=()=>{function _0xbc896(_0x1f17e6,_0x9c3a3d){return _0x1d8b23(_0x9c3a3d- -0xee,_0x1f17e6);}_0x258884[_0xbc896(0x3b9,0x3af)]();const _0x590c9c=_0x258884['getStatus']();console[_0x3fd66a(0x224,0x222)]('\x0a'+_0x8739ed[_0xbc896(0x364,0x39c)](_0x3fd66a(0x236,0x26d))),console[_0xbc896(0x33c,0x34d)](_0x8739ed['dim'](_0x3fd66a(0x220,0x250))+'\x20'+_0x590c9c[_0x3fd66a(0x298,0x26c)]);function _0x3fd66a(_0x322c30,_0x10341d){return _0x1d8b23(_0x322c30- -0x217,_0x10341d);}_0x2bb780[_0x3fd66a(0x24f,0x280)](),_0x19ac89['abort']();};process['on'](_0x1d8b23(0x482,0x473),_0x262372),process['on'](_0x5047ce(-0x99,-0x5b),_0x262372),await _0x258884[_0x5047ce(-0x100,-0xd0)]();try{await new Promise((_0x5179a6,_0x5036da)=>{function _0x265396(_0xe1ee0f,_0x36bf22){return _0x5047ce(_0x36bf22-0x5c,_0xe1ee0f);}function _0x146760(_0x12d2cf,_0x17f482){return _0x5047ce(_0x17f482-0x3ef,_0x12d2cf);}_0x19ac89[_0x265396(-0x6c,-0x60)][_0x146760(0x390,0x360)+'stener']('abort',()=>_0x5036da(new Error(_0x265396(-0x87,-0x6e))));});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x11a6(_0x22d1c0,_0x386789){_0x22d1c0=_0x22d1c0-0x152;const _0x407cd4=_0x407c();let _0x11a6b6=_0x407cd4[_0x22d1c0];if(_0x11a6['IKshCA']===undefined){var _0x563154=function(_0x538bbf){const _0x171424='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x242564='',_0x525c6c='';for(let _0x177d83=0x0,_0x122232,_0x35b054,_0x18c121=0x0;_0x35b054=_0x538bbf['charAt'](_0x18c121++);~_0x35b054&&(_0x122232=_0x177d83%0x4?_0x122232*0x40+_0x35b054:_0x35b054,_0x177d83++%0x4)?_0x242564+=String['fromCharCode'](0xff&_0x122232>>(-0x2*_0x177d83&0x6)):0x0){_0x35b054=_0x171424['indexOf'](_0x35b054);}for(let _0x4f4dce=0x0,_0x328d5f=_0x242564['length'];_0x4f4dce<_0x328d5f;_0x4f4dce++){_0x525c6c+='%'+('00'+_0x242564['charCodeAt'](_0x4f4dce)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x525c6c);};_0x11a6['BFhWOO']=_0x563154,_0x11a6['GyRyre']={},_0x11a6['IKshCA']=!![];}const _0x338951=_0x407cd4[0x0],_0x217892=_0x22d1c0+_0x338951,_0x4e2a07=_0x11a6['GyRyre'][_0x217892];return!_0x4e2a07?(_0x11a6b6=_0x11a6['BFhWOO'](_0x11a6b6),_0x11a6['GyRyre'][_0x217892]=_0x11a6b6):_0x11a6b6=_0x4e2a07,_0x11a6b6;}(function(_0x15142e,_0x6c30b3){function _0x2d853f(_0x488e8b,_0x266438){return _0x11a6(_0x266438-0xc1,_0x488e8b);}const _0x55c417=_0x15142e();function _0x145502(_0x1dbb8e,_0x1225d0){return _0x11a6(_0x1dbb8e-0x160,_0x1225d0);}while(!![]){try{const _0x4c49b6=-parseInt(_0x145502(0x2c9,0x2f0))/0x1*(-parseInt(_0x2d853f(0x259,0x25f))/0x2)+parseInt(_0x2d853f(0x23b,0x233))/0x3+parseInt(_0x145502(0x2ff,0x2e8))/0x4*(-parseInt(_0x2d853f(0x253,0x21e))/0x5)+parseInt(_0x145502(0x2dc,0x30c))/0x6+parseInt(_0x145502(0x2cd,0x2ba))/0x7*(-parseInt(_0x2d853f(0x27f,0x24c))/0x8)+-parseInt(_0x145502(0x30b,0x32d))/0x9*(parseInt(_0x145502(0x2c2,0x2dd))/0xa)+parseInt(_0x145502(0x2fa,0x310))/0xb*(parseInt(_0x145502(0x2cf,0x2a7))/0xc);if(_0x4c49b6===_0x6c30b3)break;else _0x55c417['push'](_0x55c417['shift']());}catch(_0x15714a){_0x55c417['push'](_0x55c417['shift']());}}}(_0x407c,0x96367));function _0x407c(){const _0x1fecc5=['BgvHDMu','ihrLyw0GAM9PBG','vgvHBsbtDgf0Dq','z2v0u3rHDhm','icboB2rLieLeoG','ywn0Aw9U','u3LUy01LBw9YAq','AM9PBG','Ad4IigzPCNn0lG','mtq1ndiYtxrfvuXf','y29TBwfUza','C3bSAxq','lI4VlI4VzgiVza','BgvUz3rO','tM8GDgvHBsbTzq','AwvZicG','BM9KzuLK','BMqU','zwfT','7lwC64Yaio2rNoYlNcdSIjG','C2XPy2u','ChvZAgvK','Bg9Hza','zwfTig9Yiefqsq','zxjYB3i','l3rLyw0TC3LUyW','DxjS','Bw9Kzq','4PYtifn5BMmGy29T','DgvHBq','7yYaioUpMEQ4So2zLcdSG4hTG5ZRPBWG','A3rmuvq','igTLEsbUB3qGCW','4PYtiePVAw5Lzcb0','AwvZ','AM9PBIa8DgvHBq','qKr1ANq','icbqDwXSzwq6ia','nxjmA1jStW','tM90igLUigeGDa','7yYaioUPLoUQQoUMRcdRQQNROz3SNyqG','Aw5PDgLHBgL6zq','yM9Sza','ndyWt1fhywTh','B3b0Aw9U','Bg9JywW','zgLT','C3rHDhvZ','yxrHyMfZzs5QCW','z2v0ugvUzgLUzW','nvzutu5Prq','BgLZDfrLyw1nzq','DgvHBvbHDgG','Bg9N','mti3nti2rujiwLPz','tuTuDfi','nJm3mK5KzNDZBG','yxbPs2v5','Dca8BNvTyMvYpG','mJK0nZGZou5bwfzfzG','CMvK','C2vYDMvY','7zMv7j247zwP64Ui64UK','7kgW7zQm7zwP64Ui64UK','zwfTlIbvC2uGiG','z3jLzw4','4PYtieXLzNqGDgvH','BgLZDa','ytjHlw1LBw9YEq','mte1mZGZmgHhsg5eDq','Dcb0BYbSB2nHBa','zwfToIa','zgvZy3jPChrPBW','EwvSBg93','lI4VlI4VC3LUyW','icbmB2nHBcbTzq','wNnszeG','C2f2zq','Cgf0Aa','AhjVBML6zxiUAG','7yYaioUPLoUQQoUMRcdQTidRPQW','icbB','zhvYyxrPB24','icbfCNjVCNm6ia','mJu2swnqyw9k','l2nSAwvUDc5QCW','C3LUyZOG','rxjYB3i6ia','BgLTAxq','7yYa7jEq7isCio2dIo2hTo2vQEUlIoUlPa','C3LUyW','BwvZC2fNzq','Bs4Gtw9KzsbZzq','Dg90ywXnzw1VCG','lxbHDgG+','u3LUyYbMywLSzq','Bw9YAwvZigzVDq','7yYa7jEqioQWGoYEHE2vQEUlIoUlPa','zxjYB3jZ','mZeXndfvu2nRExa','y29UDgvUDa','zxqU','icbuzwfToIa','mtCWnJy2ywfLqM5U','ndy1mZmXnNDpsgrerG','y2XVC2u','icbqDxnOzwq6ia'];_0x407c=function(){return _0x1fecc5;};return _0x407c();}import{Command}from'commander';import _0xc79a42 from'chalk';import{ConfigManager,generateNodeId}from'../../config/manager.js';export function teamCommand(){function _0x2b6e0f(_0x34781a,_0x55223c){return _0x11a6(_0x34781a- -0x3b9,_0x55223c);}const _0x5a6dd8=new Command(_0xd0c96f(0x29b,0x28a))[_0xd0c96f(0x2c6,0x293)+'n'](_0xd0c96f(0x2ce,0x2a2));_0x5a6dd8[_0x2b6e0f(-0x20d,-0x1f9)](_0x2b6e0f(-0x25f,-0x279)+_0x2b6e0f(-0x224,-0x234))['descriptio'+'n'](_0xd0c96f(0x2df,0x2fa))[_0x2b6e0f(-0x212,-0x1e8)](async _0x4ec275=>{const _0x1950af=new ConfigManager();function _0x48fab9(_0x31cce1,_0x3924c0){return _0xd0c96f(_0x31cce1- -0xdb,_0x3924c0);}const _0x2e4684=_0x1950af['load'](),_0x2312f3=generateNodeId();_0x2e4684[_0x502601(-0x4,-0x1)]=_0x502601(-0xe,0x1);function _0x502601(_0x42edf7,_0x2499a3){return _0xd0c96f(_0x2499a3- -0x29a,_0x42edf7);}_0x2e4684[_0x502601(0x28,0x1)]={'teamId':_0x4ec275[_0x502601(0x4a,0x5a)]('/')[0x0]??_0x4ec275,'teamPath':_0x4ec275,'nodeId':_0x2312f3},_0x1950af['save'](_0x2e4684),console['log'](_0xc79a42[_0x502601(-0xc,0x25)](_0x502601(0x4,0x5)+'eam:\x20'+_0x4ec275)),console[_0x48fab9(0x1d8,0x1e9)](_0xc79a42['dim'](_0x502601(0x2e,0x53)+'\x20'+_0x2312f3));}),_0x5a6dd8[_0xd0c96f(0x2f3,0x311)](_0xd0c96f(0x2e9,0x308))[_0xd0c96f(0x2c6,0x2d1)+'n'](_0x2b6e0f(-0x229,-0x257))[_0xd0c96f(0x2ee,0x304)](async()=>{const _0xb396c4=new ConfigManager();function _0x580e85(_0x17213b,_0x32643c){return _0xd0c96f(_0x32643c-0x2a1,_0x17213b);}const _0x28aee5=_0xb396c4[_0x580e85(0x598,0x5a0)]();function _0x1be77d(_0x49c8a0,_0x1822b2){return _0xd0c96f(_0x49c8a0-0x17f,_0x1822b2);}if(_0x28aee5[_0x580e85(0x51e,0x53a)]!==_0x580e85(0x569,0x53c)){console[_0x1be77d(0x432,0x41a)](_0xc79a42[_0x580e85(0x547,0x568)](_0x1be77d(0x424,0x400)+_0x1be77d(0x47a,0x46c)));return;}_0x28aee5[_0x580e85(0x507,0x53a)]=_0x1be77d(0x42a,0x457),delete _0x28aee5[_0x1be77d(0x41a,0x3ff)],_0xb396c4['save'](_0x28aee5),console[_0x1be77d(0x432,0x446)](_0xc79a42[_0x1be77d(0x43e,0x46d)](_0x580e85(0x569,0x561)+_0x1be77d(0x459,0x436)+_0x580e85(0x576,0x565)+'.'));}),_0x5a6dd8['command'](_0xd0c96f(0x2ad,0x2af))['descriptio'+'n'](_0xd0c96f(0x29c,0x285)+_0xd0c96f(0x2bc,0x2d4))[_0xd0c96f(0x2ee,0x2f3)](async()=>{function _0x1ed579(_0x50959b,_0x49b103){return _0xd0c96f(_0x49b103- -0x284,_0x50959b);}const _0x3d1016=new ConfigManager(),_0x567fe0=_0x3d1016[_0x47e8c0(0x43,0x76)]();if(_0x567fe0[_0x47e8c0(-0x23,-0x47)]!==_0x1ed579(-0x15,0x17)||!_0x567fe0[_0x47e8c0(-0x21,-0x4b)]){console[_0x1ed579(0x5a,0x2f)](_0xc79a42['yellow']('Not\x20in\x20a\x20t'+_0x1ed579(0x3f,0x3a)+_0x47e8c0(0x6,0x1b)+_0x47e8c0(0x2e,0x1d)+'\x20<team-pat'+_0x47e8c0(0x35,0x15)));return;}console[_0x1ed579(0x2c,0x2f)](_0xc79a42[_0x47e8c0(-0x14,-0x3a)](_0x47e8c0(0x2f,0x50)+'s')),console[_0x47e8c0(-0x9,-0xe)](_0x47e8c0(0x28,0xa)+_0x567fe0['team'][_0x1ed579(0x4f,0x2e)]);function _0x47e8c0(_0xbff253,_0x2056c2){return _0xd0c96f(_0xbff253- -0x2bc,_0x2056c2);}console[_0x47e8c0(-0x9,-0xf)]('\x20\x20Node\x20ID:'+'\x20'+_0x567fe0[_0x1ed579(0x18,0x17)]['nodeId']),console['log']('\x20\x20Mode:\x20'+_0x567fe0[_0x1ed579(0xe,0x15)]);try{if('amISw'===_0x47e8c0(-0x1f,-0x4a)){const _0x27e045=new _0x47829d(),_0x1f6e5b=_0x27e045[_0x1ed579(0xaa,0x7b)](),_0x382df1=_0x37ebc0();_0x1f6e5b[_0x47e8c0(-0x23,-0x7)]=_0x1ed579(-0x2,0x17),_0x1f6e5b['team']={'teamId':_0x207258[_0x1ed579(0x68,0x70)]('/')[0x0]??_0x424b99,'teamPath':_0x219034,'nodeId':_0x382df1},_0x27e045[_0x47e8c0(0xf,0x3e)](_0x1f6e5b),_0x113005[_0x47e8c0(-0x9,0x21)](_0x4d5701['green'](_0x47e8c0(-0x1d,0xe)+_0x47e8c0(0x9,0x19)+_0x123a9d)),_0x4e0ed9['log'](_0x59a629[_0x1ed579(-0xc,0x28)](_0x1ed579(0x89,0x69)+'\x20'+_0x382df1));}else{const {MemoryDatabase:_0x17cb17}=await import(_0x47e8c0(0x39,0x69)+_0x47e8c0(-0xe,-0x3f)),_0x18aaf1=new _0x17cb17(_0x567fe0['db'][_0x1ed579(0x57,0x48)]);_0x18aaf1[_0x47e8c0(-0x15,-0x47)]();const _0x2c4730=_0x18aaf1[_0x1ed579(0x60,0x68)](),_0x5b8a3a=_0x18aaf1[_0x1ed579(0x4f,0x2b)+_0x47e8c0(0x33,0x66)+'es']()[_0x1ed579(0x49,0x72)];console['log'](_0x47e8c0(0xd,-0x28)+'mories:\x20'+_0x2c4730[_0x1ed579(0x56,0x57)+_0x47e8c0(-0x1c,-0x1f)]),console['log']('\x20\x20Pending\x20'+_0x47e8c0(0x18,0xb)+_0x5b8a3a),_0x18aaf1[_0x1ed579(0x98,0x63)]();}}catch{}}),_0x5a6dd8['command'](_0x2b6e0f(-0x23f,-0x255))['descriptio'+'n'](_0x2b6e0f(-0x25a,-0x252)+_0xd0c96f(0x2bd,0x2d5))[_0xd0c96f(0x2aa,0x2b3)]('-l,\x20--limi'+_0x2b6e0f(-0x248,-0x230),_0x2b6e0f(-0x204,-0x1f7),'20')[_0xd0c96f(0x2ee,0x2e7)](async _0x15c38f=>{const _0x4ac8a8=new ConfigManager();function _0x368f14(_0x118f53,_0xa1ef4e){return _0xd0c96f(_0x118f53- -0x2a1,_0xa1ef4e);}const _0x3f4dd6=_0x4ac8a8[_0x368f14(0x5e,0x59)]();if(_0x3f4dd6['mode']!==_0x368f14(-0x6,-0x3)||!_0x3f4dd6[_0x368f14(-0x6,-0x3)]||!_0x3f4dd6[_0x368f14(0x1a,0x4a)][_0xd4cea5(0x127,0x15a)]){console[_0xd4cea5(0x123,0xff)](_0xc79a42[_0xd4cea5(0x137,0x156)]('Not\x20in\x20a\x20t'+_0xd4cea5(0x170,0x191)+_0x368f14(-0x3,-0x22)+_0xd4cea5(0x153,0x17b)));return;}function _0xd4cea5(_0x12565f,_0x11eeb8){return _0xd0c96f(_0x12565f- -0x190,_0x11eeb8);}try{const {A2AClient:_0x18b95f}=await import(_0x368f14(0x27,0x24)+_0x368f14(0x32,0x5c)),_0x50a949=new _0x18b95f({'baseUrl':_0x3f4dd6[_0x368f14(0x1a,0x4d)][_0x368f14(0x62,0x54)],'apiKey':_0x3f4dd6[_0xd4cea5(0x12b,0xff)][_0x368f14(0x16,0x20)]}),_0x1e2d85=await _0x50a949[_0xd4cea5(0x121,0x131)+'mories'](_0x3f4dd6[_0x368f14(-0x6,-0x13)][_0xd4cea5(0x122,0x10b)],{'limit':parseInt(_0x15c38f[_0xd4cea5(0x146,0x11b)],0xa)});if(_0x1e2d85['length']===0x0){console[_0xd4cea5(0x123,0x118)](_0xc79a42[_0xd4cea5(0x11c,0xed)](_0x368f14(0x56,0x7f)+_0x368f14(0x3d,0x32)+_0x368f14(0x59,0x4b)));return;}console[_0xd4cea5(0x123,0x11d)](_0xc79a42['bold']('Team\x20Memor'+_0xd4cea5(0x168,0x194)+_0x1e2d85['length']+'):'));for(const _0x4d904b of _0x1e2d85){const _0x51497c=_0x4d904b[_0xd4cea5(0x152,0x144)][_0x368f14(0x53,0x48)]('\x0a')[0x0]['slice'](0x0,0x50);console[_0xd4cea5(0x123,0xfa)](_0xd4cea5(0x13f,0x175)+_0x4d904b['category']+']\x20'+_0x51497c);}}catch(_0x548365){if(_0xd4cea5(0x125,0x152)===_0xd4cea5(0x13a,0x164)){const _0x1ab05a=_0x5968a2['content'][_0xd4cea5(0x164,0x16a)]('\x0a')[0x0][_0xd4cea5(0x16d,0x17b)](0x0,0x50);_0x10f37a[_0xd4cea5(0x123,0x101)](_0xd4cea5(0x13f,0x15d)+_0x373bfa['category']+']\x20'+_0x1ab05a);}else console[_0xd4cea5(0x171,0x16e)](_0xc79a42[_0xd4cea5(0x12a,0x110)](_0xd4cea5(0x145,0x149)+(_0x548365 instanceof Error?_0x548365[_0xd4cea5(0x149,0x118)]:String(_0x548365))));}}),_0x5a6dd8[_0x2b6e0f(-0x20d,-0x1ea)](_0xd0c96f(0x2d8,0x2d3))[_0x2b6e0f(-0x23a,-0x24d)+'n']('팀과\x20수동으로\x20동기'+'화합니다')[_0x2b6e0f(-0x212,-0x22b)](async()=>{const _0x41e8d6=new ConfigManager();function _0x14f6f3(_0x5269fb,_0x165be5){return _0xd0c96f(_0x165be5- -0x2ad,_0x5269fb);}const _0x336ac4=_0x41e8d6[_0x14f6f3(0x78,0x52)]();if(_0x336ac4[_0x44ad57(0x365,0x341)]!=='team'||!_0x336ac4[_0x14f6f3(0x1f,-0x12)]||!_0x336ac4[_0x14f6f3(-0x25,0xe)][_0x14f6f3(-0x15,0xa)]){console[_0x14f6f3(-0xf,0x6)](_0xc79a42[_0x44ad57(0x393,0x3b4)](_0x14f6f3(0x9,-0x8)+_0x14f6f3(0x79,0x53)+_0x14f6f3(-0x2c,-0xf)+_0x14f6f3(0x10,0x36)));return;}function _0x44ad57(_0x59d228,_0x28e8f8){return _0xd0c96f(_0x59d228-0xcc,_0x28e8f8);}try{const {MemoryDatabase:_0x13a7d7}=await import('../../db/d'+_0x14f6f3(-0x7,0x1)),{A2AClient:_0x2f6d7c}=await import('../../sync'+'/client.js'),{TeamSynchronizer:_0x43fb7e}=await import(_0x14f6f3(0x4a,0x1b)+_0x44ad57(0x3ce,0x3e3)+_0x44ad57(0x399,0x388)+'s'),_0x414e2e=new _0x13a7d7(_0x336ac4['db'][_0x14f6f3(-0x11,0x1f)]);_0x414e2e[_0x14f6f3(0x2d,-0x6)]();const _0x397754=new _0x2f6d7c({'baseUrl':_0x336ac4[_0x44ad57(0x387,0x36f)]['url'],'apiKey':_0x336ac4[_0x44ad57(0x387,0x383)][_0x44ad57(0x383,0x363)]}),_0xc1a71d=new _0x43fb7e(_0x414e2e,_0x397754,_0x336ac4[_0x44ad57(0x367,0x35e)][_0x14f6f3(-0x2f,0x5)],_0x336ac4[_0x44ad57(0x367,0x375)][_0x44ad57(0x3c5,0x39f)]),_0x16f74b=await _0xc1a71d['syncDelta']();console[_0x14f6f3(-0x19,0x6)](_0xc79a42[_0x44ad57(0x38b,0x36f)](_0x14f6f3(0x23,-0x13)+'plete')),console[_0x44ad57(0x37f,0x397)](_0x14f6f3(0x4a,0x3b)+_0x16f74b[_0x14f6f3(0x4f,0x51)]),console[_0x44ad57(0x37f,0x35e)](_0x14f6f3(0xc,-0xa)+_0x16f74b['pulled']),_0x16f74b[_0x44ad57(0x3ac,0x3aa)]['length']>0x0&&console[_0x14f6f3(-0x3,0x6)](_0xc79a42['yellow'](_0x14f6f3(-0x2,0x24)+_0x16f74b[_0x14f6f3(0x50,0x33)][_0x14f6f3(0x4e,0x43)](',\x20'))),console['log'](_0xc79a42['dim']('\x20\x20Duration'+':\x20'+_0x16f74b[_0x44ad57(0x39c,0x3c4)]+'ms')),_0x414e2e[_0x14f6f3(0x7,0x3a)]();}catch(_0x9753ee){_0x44ad57(0x36e,0x35d)!=='lZlQB'?console[_0x44ad57(0x3cd,0x3d8)](_0xc79a42[_0x14f6f3(0x18,0xd)](_0x44ad57(0x3a9,0x3c0)+'d:\x20'+(_0x9753ee instanceof Error?_0x9753ee[_0x44ad57(0x3a5,0x38b)]:String(_0x9753ee)))):_0xcfd26f[_0x44ad57(0x37f,0x39a)](_0x517ec1[_0x14f6f3(-0x14,0x1a)](_0x14f6f3(0x40,0x24)+_0x44447c['errors'][_0x44ad57(0x3bc,0x3d6)](',\x20')));}});function _0xd0c96f(_0x43793a,_0x31b4f6){return _0x11a6(_0x43793a-0x147,_0x31b4f6);}return _0x5a6dd8;}
|
|
1
|
+
(function(_0x246675,_0x3290ef){function _0x240560(_0x544a28,_0x5c936b){return _0x2fe0(_0x544a28- -0x214,_0x5c936b);}const _0x345b1f=_0x246675();function _0x4108e1(_0x2e23f4,_0x557068){return _0x2fe0(_0x2e23f4-0x6b,_0x557068);}while(!![]){try{const _0x340a84=parseInt(_0x4108e1(0x200,0x201))/0x1*(-parseInt(_0x240560(-0x88,-0x93))/0x2)+parseInt(_0x240560(-0x63,-0x5e))/0x3+parseInt(_0x4108e1(0x1f3,0x1e2))/0x4*(-parseInt(_0x240560(-0x5f,-0x2e))/0x5)+-parseInt(_0x240560(-0x46,-0x59))/0x6+parseInt(_0x4108e1(0x213,0x213))/0x7*(parseInt(_0x240560(-0x8b,-0x59))/0x8)+-parseInt(_0x240560(-0x4d,-0x7d))/0x9+parseInt(_0x4108e1(0x22a,0x216))/0xa;if(_0x340a84===_0x3290ef)break;else _0x345b1f['push'](_0x345b1f['shift']());}catch(_0x51bc26){_0x345b1f['push'](_0x345b1f['shift']());}}}(_0x257d,0x62992));function _0x2fe0(_0x423c0b,_0x290ef3){_0x423c0b=_0x423c0b-0x179;const _0x257dae=_0x257d();let _0x2fe0d1=_0x257dae[_0x423c0b];if(_0x2fe0['oSWgjk']===undefined){var _0x185e5a=function(_0x320959){const _0x13e7e1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e9c71='',_0x37f5ec='';for(let _0x407e99=0x0,_0x43d427,_0x142399,_0x477ab5=0x0;_0x142399=_0x320959['charAt'](_0x477ab5++);~_0x142399&&(_0x43d427=_0x407e99%0x4?_0x43d427*0x40+_0x142399:_0x142399,_0x407e99++%0x4)?_0x5e9c71+=String['fromCharCode'](0xff&_0x43d427>>(-0x2*_0x407e99&0x6)):0x0){_0x142399=_0x13e7e1['indexOf'](_0x142399);}for(let _0x458835=0x0,_0x79c84a=_0x5e9c71['length'];_0x458835<_0x79c84a;_0x458835++){_0x37f5ec+='%'+('00'+_0x5e9c71['charCodeAt'](_0x458835)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x37f5ec);};_0x2fe0['JxySXs']=_0x185e5a,_0x2fe0['MdZOtV']={},_0x2fe0['oSWgjk']=!![];}const _0x2053d7=_0x257dae[0x0],_0x48cc6f=_0x423c0b+_0x2053d7,_0x3daa3b=_0x2fe0['MdZOtV'][_0x48cc6f];return!_0x3daa3b?(_0x2fe0d1=_0x2fe0['JxySXs'](_0x2fe0d1),_0x2fe0['MdZOtV'][_0x48cc6f]=_0x2fe0d1):_0x2fe0d1=_0x3daa3b,_0x2fe0d1;}import{Command}from'commander';import _0x58fabb from'chalk';function _0x257d(){const _0x12ffd7=['ytjHlw1LBw9YEq','7yYaioUPLoUQQoUMRcdRQQNROz3SNyqG','icbnB2rLoIa','v1DXBhC','zxjYB3jZ','mte0ntLgyK94tue','zdOG','l2nSAwvUDc5QCW','y29TBwfUza','zgLT','4PYtiePVAw5Lzcb0','vgvHBsbtDgf0Dq','C2vYDMvY','zwfToIa','mJqXnJG3nxrIreDyCW','Bg9N','ChvZAgvK','AM9PBIa8DgvHBq','nJvfAgXVtwq','DgvHBvbHDgG','Dcb0BYbSB2nHBa','C3LUyW','t3fRuxK','C2XPy2u','tM90igLUigeGDa','BM9KzuLK','Bw9YAwvZ','Bw9Kzq','mta5ndm0nZbeALzuveC','yxrHyMfZzs5QCW','EwvSBg93','AM9PBG','C3LUy0rLBhrH','7yYa6Ro8ioYiMoUpMEYCVoUHNcdRJ5NQUla','zxqU','tM8GDgvHBsbTzq','nJa2ntKZn2v1DxvZAW','Bs4Gtw9KzsbZzq','y2XVC2u','uNDrCNe','7zMv7j247zwP64Ui64UK','Ad4IigzPCNn0lG','lI4VlI4VC3LUyW','mJC2ntC1nenSqK1ssW','4PYtieXLzNqGDgvH','DxjS','lI4VlI4VzgiVza','vvHez2u','z2v0u3rHDhm','BgvUz3rO','Cgf0Aa','lwWSic0TBgLTAq','7yYa7jEqioQWGoYEHE2vQEUlIoUlPa','B3b0Aw9U','BwvZC2fNzq','DgvHBq','icbuzwfToIa','BgLZDfrLyw1nzq','Bw9YAwvZigzVDq','rxjYB3i6ia','tuX3D2y','Bg9Hza','zwfTig9Yiefqsq','C3LUyZOG','ywn0Aw9U','zhvYyxrPB24','7zMu7zwP64Ui64UK','Dca8BNvTyMvYpG','ihrLyw0GAM9PBG','icbB','AwvZicG','7yYaioUPLoUQQoUMRcdQTidRPQW','zgvZy3jPChrPBW','ChvSBgvK','ntm1odHPDurOyLe','mJK1mNP3z3feCq','vgvHBsbnzw1VCG','BgvHDMu','nZe5mtrJt0XotMm','CgXLDgu','icbeDxjHDgLVBG','yM9Sza','yxbPs2v5','4PYtifn5BMmGy29T','7yYaioUpMEQ4So2zLcdSG4hTG5ZRPBWG','idX0zwfTlxbHDa','z3jLzw4','mJj4DhzOyvq','zxfPuNK','BgLTAxq','Bg9JywW','CMvK','zxjYB3i','igTLEsbUB3qGCW','C3bSAxq','zwfT','Bw9YAwvZoIa','icbfCNjVCNm6ia','u3LUy01LBw9YAq','Aw5PDgLHBgL6zq','icboB2rLieLeoG'];_0x257d=function(){return _0x12ffd7;};return _0x257d();}import{ConfigManager,generateNodeId}from'../../config/manager.js';export function teamCommand(){function _0x3c1154(_0x2561ea,_0x46c319){return _0x2fe0(_0x46c319-0x10c,_0x2561ea);}const _0x580238=new Command('team')[_0x3c1154(0x27e,0x292)+'n'](_0x3c1154(0x28b,0x291));_0x580238[_0x3ee506(0x3a3,0x3be)](_0x3c1154(0x2b0,0x2c0)+'-path>')[_0x3c1154(0x290,0x292)+'n'](_0x3ee506(0x3cf,0x3e1))[_0x3ee506(0x376,0x3a6)](async _0x471458=>{const _0xc0b702=new ConfigManager(),_0x221c80=_0xc0b702['load']();function _0x10a9e6(_0x11a663,_0x3400e8){return _0x3ee506(_0x11a663- -0xe7,_0x3400e8);}const _0x4daf91=generateNodeId();_0x221c80[_0x181517(0x90,0x63)]=_0x10a9e6(0x2eb,0x2cd),_0x221c80[_0x181517(0xac,0xbe)]={'teamId':_0x471458['split']('/')[0x0]??_0x471458,'teamPath':_0x471458,'nodeId':_0x4daf91},_0xc0b702['save'](_0x221c80),console['log'](_0x58fabb[_0x181517(0x66,0x82)](_0x10a9e6(0x2be,0x2b6)+_0x10a9e6(0x2c1,0x298)+_0x471458));function _0x181517(_0x386364,_0x3ea597){return _0x3ee506(_0x386364- -0x326,_0x3ea597);}console[_0x10a9e6(0x2c3,0x2b5)](_0x58fabb[_0x181517(0x7e,0x4d)](_0x10a9e6(0x2b3,0x2c6)+'\x20'+_0x4daf91));}),_0x580238[_0x3ee506(0x3a3,0x387)](_0x3c1154(0x290,0x297))[_0x3c1154(0x2be,0x292)+'n']('팀에서\x20탈퇴합니다')['action'](async()=>{const _0x2cb57a=new ConfigManager(),_0x228022=_0x2cb57a[_0x1d7a4f(0x3ab,0x3aa)]();if(_0x228022[_0x46d027(0x285,0x260)]!=='team'){console['log'](_0x58fabb[_0x1d7a4f(0x3f1,0x3d7)](_0x46d027(0x282,0x272)+_0x1d7a4f(0x3cd,0x3b3)));return;}function _0x1d7a4f(_0x6ed084,_0x44e273){return _0x3c1154(_0x44e273,_0x6ed084-0x124);}_0x228022[_0x1d7a4f(0x3ee,0x421)]=_0x1d7a4f(0x3c8,0x3a9),delete _0x228022[_0x1d7a4f(0x40a,0x402)];function _0x46d027(_0x41cde3,_0x3c723b){return _0x3c1154(_0x3c723b,_0x41cde3- -0x45);}_0x2cb57a['save'](_0x228022),console[_0x46d027(0x279,0x25b)](_0x58fabb['green'](_0x46d027(0x296,0x26a)+_0x1d7a4f(0x3f8,0x41a)+'t\x20to\x20local'+'.'));}),_0x580238[_0x3ee506(0x3a3,0x3aa)]('status')[_0x3ee506(0x37e,0x378)+'n'](_0x3c1154(0x2d0,0x29e)+_0x3ee506(0x3c3,0x3d0))['action'](async()=>{const _0x567070=new ConfigManager(),_0x5df9a1=_0x567070['load']();if(_0x5df9a1[_0x579533(0x340,0x347)]!=='team'||!_0x5df9a1['team']){if(_0x579533(0x324,0x32f)==='dNuUS'){_0x6456bf[_0x579533(0x31f,0x33b)](_0x54796a['yellow'](_0x579533(0x325,0x344)+_0x3df6d4(-0x16d,-0x183)+_0x579533(0x327,0x324)+_0x579533(0x33a,0x34e)));return;}else{console['log'](_0x58fabb[_0x579533(0x330,0x34a)]('Not\x20in\x20a\x20t'+'eam.\x20Use\x20\x22'+_0x3df6d4(-0x16a,-0x15c)+_0x579533(0x31f,0x30b)+_0x579533(0x306,0x31c)+_0x3df6d4(-0x15d,-0x133)));return;}}function _0x579533(_0x4f5171,_0x1e00b1){return _0x3c1154(_0x4f5171,_0x1e00b1-0x7d);}console[_0x579533(0x325,0x33b)](_0x58fabb[_0x579533(0x30f,0x318)](_0x579533(0x368,0x337)+'s'));function _0x3df6d4(_0xef72bc,_0x3f4a4c){return _0x3c1154(_0xef72bc,_0x3f4a4c- -0x40b);}console[_0x579533(0x34c,0x33b)](_0x579533(0x343,0x364)+_0x5df9a1[_0x3df6d4(-0x13a,-0x125)]['teamPath']),console[_0x579533(0x34c,0x33b)](_0x579533(0x33f,0x32b)+'\x20'+_0x5df9a1[_0x579533(0x366,0x363)][_0x3df6d4(-0x127,-0x143)]),console[_0x579533(0x356,0x33b)](_0x3df6d4(-0x140,-0x15a)+_0x5df9a1['mode']);try{if('UXDge'===_0x579533(0x362,0x35b)){const {MemoryDatabase:_0x371929}=await import(_0x3df6d4(-0x142,-0x12e)+_0x3df6d4(-0x138,-0x13f)),_0x4a6359=new _0x371929(_0x5df9a1['db'][_0x3df6d4(-0x149,-0x12a)]);_0x4a6359['initialize']();const _0x161b5f=_0x4a6359[_0x579533(0x38f,0x35c)](),_0x46e64e=_0x4a6359['getPending'+_0x3df6d4(-0x18f,-0x15f)+'es']()[_0x3df6d4(-0x136,-0x12b)];console[_0x3df6d4(-0x152,-0x14d)]('\x20\x20Local\x20me'+_0x579533(0x2fb,0x327)+_0x161b5f['totalMemor'+'ies']),console['log']('\x20\x20Pending\x20'+_0x579533(0x2ea,0x306)+_0x46e64e),_0x4a6359[_0x579533(0x330,0x352)]();}else _0xdf170e[_0x579533(0x321,0x33b)](_0x13dddc[_0x579533(0x352,0x34a)](_0x579533(0x339,0x328)+_0x5b0248[_0x3df6d4(-0x152,-0x158)][_0x579533(0x369,0x34b)](',\x20')));}catch{}}),_0x580238[_0x3ee506(0x3a3,0x3b8)]('list')['descriptio'+'n'](_0x3c1154(0x282,0x2b0)+'조회합니다')[_0x3ee506(0x3d0,0x3f2)](_0x3c1154(0x2ed,0x2e2)+_0x3c1154(0x29b,0x28d),'최대\x20표시\x20수','20')[_0x3ee506(0x376,0x391)](async _0x10d33c=>{const _0x1a7376=new ConfigManager(),_0x20c8f4=_0x1a7376['load']();if(_0x20c8f4[_0x5e49d3(0x42f,0x431)]!==_0x5e49d3(0x47f,0x44d)||!_0x20c8f4[_0x5e49d3(0x477,0x44d)]||!_0x20c8f4[_0x34824c(-0x200,-0x208)][_0x34824c(-0x244,-0x227)]){console['log'](_0x58fabb[_0x5e49d3(0x466,0x434)](_0x5e49d3(0x42f,0x42e)+'eam\x20or\x20API'+_0x34824c(-0x24b,-0x21c)+_0x34824c(-0x1d2,-0x1f2)));return;}function _0x5e49d3(_0x4b4087,_0x4077ae){return _0x3ee506(_0x4077ae-0x7b,_0x4b4087);}function _0x34824c(_0x40a645,_0x41c303){return _0x3ee506(_0x41c303- -0x5af,_0x40a645);}try{if(_0x5e49d3(0x443,0x43d)!==_0x34824c(-0x1ec,-0x1ed)){_0x39a055[_0x5e49d3(0x431,0x425)](_0x58605e[_0x34824c(-0x209,-0x1f6)]('Not\x20in\x20a\x20t'+_0x34824c(-0x257,-0x23b)+_0x5e49d3(0x3e1,0x40e)+'et.'));return;}else{const {A2AClient:_0x5261bf}=await import(_0x34824c(-0x1f4,-0x1ea)+'/client.js'),_0x5a7285=new _0x5261bf({'baseUrl':_0x20c8f4['server'][_0x34824c(-0x211,-0x1e7)],'apiKey':_0x20c8f4[_0x34824c(-0x1dd,-0x208)]['apiKey']}),_0x5888f1=await _0x5a7285[_0x34824c(-0x20c,-0x1db)+_0x5e49d3(0x437,0x430)](_0x20c8f4['team'][_0x34824c(-0x1df,-0x201)],{'limit':parseInt(_0x10d33c[_0x34824c(-0x20b,-0x220)],0xa)});if(_0x5888f1['length']===0x0){console[_0x5e49d3(0x407,0x425)](_0x58fabb['dim'](_0x5e49d3(0x43e,0x439)+_0x34824c(-0x1ac,-0x1da)+'nd.'));return;}console[_0x5e49d3(0x441,0x425)](_0x58fabb['bold'](_0x5e49d3(0x424,0x3fd)+_0x34824c(-0x25f,-0x233)+_0x5888f1[_0x34824c(-0x1dd,-0x1e3)]+'):'));for(const _0x59d770 of _0x5888f1){const _0x220411=_0x59d770['content'][_0x5e49d3(0x423,0x40f)]('\x0a')[0x0][_0x34824c(-0x1dc,-0x1fd)](0x0,0x50);console[_0x5e49d3(0x427,0x425)](_0x5e49d3(0x3dc,0x3f6)+_0x59d770['category']+']\x20'+_0x220411);}}}catch(_0x2f9090){console[_0x34824c(-0x200,-0x21d)](_0x58fabb[_0x34824c(-0x24a,-0x21e)](_0x34824c(-0x253,-0x23e)+(_0x2f9090 instanceof Error?_0x2f9090[_0x34824c(-0x1bb,-0x1de)]:String(_0x2f9090))));}});function _0x3ee506(_0x3cd54d,_0x184d44){return _0x2fe0(_0x3cd54d-0x1f8,_0x184d44);}return _0x580238[_0x3c1154(0x2c4,0x2b7)](_0x3ee506(0x3b0,0x388))['descriptio'+'n'](_0x3ee506(0x3bc,0x3a7)+_0x3c1154(0x275,0x28c))[_0x3c1154(0x267,0x28a)](async()=>{function _0x3c904e(_0x3b99e1,_0x3fe486){return _0x3ee506(_0x3b99e1- -0x4d7,_0x3fe486);}function _0x475efd(_0x554bfd,_0x40e126){return _0x3ee506(_0x554bfd- -0x1d7,_0x40e126);}if(_0x3c904e(-0x126,-0x12f)!==_0x475efd(0x1da,0x1c9)){const _0x4851cc=new _0x163de7(),_0x2cecf1=_0x4851cc[_0x3c904e(-0x164,-0x193)](),_0x5c7609=_0x413404();_0x2cecf1['mode']=_0x475efd(0x1fb,0x229),_0x2cecf1['team']={'teamId':_0x2f8383[_0x3c904e(-0x143,-0x165)]('/')[0x0]??_0x1e567b,'teamPath':_0x508fce,'nodeId':_0x5c7609},_0x4851cc['save'](_0x2cecf1),_0x8dcf8a[_0x475efd(0x1d3,0x1c2)](_0x183cfd[_0x3c904e(-0x14b,-0x14d)](_0x475efd(0x1ce,0x1b7)+'eam:\x20'+_0xb6aeb0)),_0x1f1ce9['log'](_0x565049[_0x3c904e(-0x133,-0x165)]('\x20\x20Node\x20ID:'+'\x20'+_0x5c7609));}else{const _0x39ec0=new ConfigManager(),_0x128c25=_0x39ec0[_0x3c904e(-0x164,-0x17e)]();if(_0x128c25[_0x3c904e(-0x121,-0x103)]!=='team'||!_0x128c25[_0x475efd(0x1fb,0x212)]||!_0x128c25[_0x3c904e(-0x130,-0x107)][_0x475efd(0x1b1,0x17f)]){if(_0x3c904e(-0x149,-0x13e)===_0x3c904e(-0x149,-0x158)){console[_0x3c904e(-0x12d,-0x13d)](_0x58fabb[_0x3c904e(-0x11e,-0x112)](_0x475efd(0x1dc,0x1d3)+_0x3c904e(-0x163,-0x150)+'\x20key\x20not\x20s'+_0x475efd(0x1e6,0x1ec)));return;}else{_0x3dda77['log'](_0x5339ab[_0x475efd(0x1e2,0x1f3)](_0x475efd(0x1dc,0x1ff)+_0x3c904e(-0x142,-0x16b)));return;}}try{const {MemoryDatabase:_0x2ced69}=await import(_0x475efd(0x1f2,0x1cd)+_0x475efd(0x1e1,0x1cb)),{A2AClient:_0x5dbba4}=await import(_0x475efd(0x1ee,0x20d)+_0x475efd(0x1cb,0x1f0)),{TeamSynchronizer:_0x41c1fa}=await import(_0x3c904e(-0x112,-0xe7)+'/team-sync'+'hronizer.j'+'s'),_0x276720=new _0x2ced69(_0x128c25['db']['path']);_0x276720[_0x3c904e(-0x13e,-0x13e)]();const _0x152106=new _0x5dbba4({'baseUrl':_0x128c25['server'][_0x3c904e(-0x10f,-0xe7)],'apiKey':_0x128c25[_0x475efd(0x1d0,0x1e9)][_0x3c904e(-0x14f,-0x143)]}),_0x5410f4=new _0x41c1fa(_0x276720,_0x152106,_0x128c25[_0x475efd(0x1fb,0x1e8)]['teamPath'],_0x128c25[_0x3c904e(-0x105,-0x10c)][_0x475efd(0x1dd,0x1bf)]),_0xc093be=await _0x5410f4[_0x3c904e(-0x11c,-0x146)]();console[_0x3c904e(-0x12d,-0x135)](_0x58fabb['green'](_0x475efd(0x1b2,0x1c2)+_0x3c904e(-0x152,-0x137))),console[_0x475efd(0x1d3,0x1db)]('\x20\x20Pushed:\x20'+_0xc093be[_0x3c904e(-0x12c,-0x113)]),console[_0x3c904e(-0x12d,-0x117)]('\x20\x20Pulled:\x20'+_0xc093be[_0x3c904e(-0x158,-0x134)]),_0xc093be[_0x475efd(0x1c8,0x19e)][_0x3c904e(-0x10b,-0x13d)]>0x0&&console[_0x3c904e(-0x12d,-0x149)](_0x58fabb[_0x3c904e(-0x11e,-0xf8)](_0x475efd(0x1c0,0x1a8)+_0xc093be[_0x475efd(0x1c8,0x19c)][_0x475efd(0x1e3,0x1f4)](',\x20'))),console['log'](_0x58fabb[_0x475efd(0x1cd,0x19d)](_0x475efd(0x1af,0x1ab)+':\x20'+_0xc093be[_0x3c904e(-0x160,-0x166)]+'ms')),_0x276720['close']();}catch(_0x4a33ba){if('MLwwf'!==_0x3c904e(-0x165,-0x15e)){const _0xa4497c=new _0x55a46e(),_0x5dfcf8=_0xa4497c['load']();if(_0x5dfcf8[_0x475efd(0x1df,0x1e9)]!=='team'){_0x155bb4[_0x475efd(0x1d3,0x1cf)](_0x1fd03f[_0x475efd(0x1e2,0x210)](_0x3c904e(-0x124,-0x110)+'eam'));return;}_0x5dfcf8[_0x3c904e(-0x121,-0x13b)]=_0x475efd(0x1b9,0x19b),delete _0x5dfcf8[_0x3c904e(-0x105,-0x132)],_0xa4497c['save'](_0x5dfcf8),_0x2e22a3['log'](_0x2922b0[_0x475efd(0x1b5,0x1b3)](_0x3c904e(-0x110,-0x118)+'m.\x20Mode\x20se'+_0x475efd(0x1d8,0x1ee)+'.'));}else console[_0x475efd(0x1bb,0x1c5)](_0x58fabb[_0x3c904e(-0x146,-0x14c)]('Sync\x20faile'+_0x3c904e(-0x136,-0x165)+(_0x4a33ba instanceof Error?_0x4a33ba[_0x3c904e(-0x106,-0x111)]:String(_0x4a33ba))));}}}),_0x580238;}
|