a2a-memory 0.12.66 → 0.12.68
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 +7 -7
- 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/measure.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.d.ts +4 -1
- package/dist/cli/commands/setup-wizard.js +1 -1
- package/dist/cli/commands/setup.d.ts +1 -0
- 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.d.ts +49 -0
- package/dist/config/manager.js +1 -1
- package/dist/config/prompt-hook.d.ts +52 -0
- package/dist/config/prompt-hook.js +1 -0
- package/dist/contextrank/ac-matcher.js +1 -1
- 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/contextrank/since-store.js +1 -1
- package/dist/db/database.js +1 -1
- package/dist/db/integrity-marker.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.d.ts +18 -0
- 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/channel-metrics.d.ts +23 -4
- package/dist/lifecycle/channel-metrics.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.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.d.ts +9 -0
- package/dist/types/index.js +1 -1
- package/dist/utils/file-mode.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
package/dist/search/reranker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x201f(){const _0x4539ed=['sg5Ns1y','C2XPy2u','C2nVCMu','mtm2Eu1cu01x','Dg9mB3DLCKnHCW','ywnLl3rYyw5ZzG','BwvZC2fNzq','nJGWyxDkrwDw','CMvYyw5Ru2nVCG','mte0otCYodrKDMLrBuW','nJaWmZK1nxnxAhrAvq','sw5ZDgfSBdOGBG','BNvTyMvY','zMLSDgvY','B3jL','BgvUz3rO','ndqWnZKWmeDWuvzKsW','nta0oerOCKfcvG','CMvYyw5R','y3jVC3mTzw5JBW','AxnbCNjHEq','yw5ZzM9YBwvYCW','mteYneDLt3LlwG','BwfW','iebODwDNAw5NzG','CMfUAW','Aw5JBhvKzxm','mJe4n3vbtNb6yW','swT2CK0','Aw5NzMfJzs90CG','B3j0kcjaAhvNzW','y29UDgvUDa','BwvTB3j5','zMfSBgjHy2Tszq','AxnbDMfPBgfIBa','CMv0DxjUigLTCa','C29YDa','y28TtwLUAuXnlq','Cg0GAw5ZDgfSBa','rNzVA2W','DxnLrMfSBgjHyW','zgvYl21Zlw1HCG','mtKYmZuYnKfzzMTywG','ndb4qNP4BhC','zxH0CMfJDfnJBW','B3jTzxjZcG','nteWmZK4zuvvsvzu','zMfSBgjHy2TtyW'];_0x201f=function(){return _0x4539ed;};return _0x201f();}(function(_0x2da2c8,_0xeb13dc){function _0x30b0c7(_0x4bca65,_0x104661){return _0x29be(_0x4bca65-0x177,_0x104661);}const _0x3b11d5=_0x2da2c8();function _0x1e0d3e(_0x44543d,_0x6991a){return _0x29be(_0x44543d- -0x311,_0x6991a);}while(!![]){try{const _0x2a46f2=parseInt(_0x1e0d3e(-0x211,-0x21e))/0x1*(parseInt(_0x30b0c7(0x268,0x278))/0x2)+-parseInt(_0x1e0d3e(-0x20c,-0x216))/0x3*(parseInt(_0x30b0c7(0x272,0x276))/0x4)+-parseInt(_0x1e0d3e(-0x21d,-0x20b))/0x5+-parseInt(_0x30b0c7(0x271,0x25a))/0x6+-parseInt(_0x1e0d3e(-0x229,-0x241))/0x7*(-parseInt(_0x30b0c7(0x264,0x264))/0x8)+parseInt(_0x1e0d3e(-0x21e,-0x21a))/0x9+-parseInt(_0x30b0c7(0x28c,0x299))/0xa*(-parseInt(_0x30b0c7(0x28b,0x282))/0xb);if(_0x2a46f2===_0xeb13dc)break;else _0x3b11d5['push'](_0x3b11d5['shift']());}catch(_0x56ce3f){_0x3b11d5['push'](_0x3b11d5['shift']());}}}(_0x201f,0xb571f));const RERANKER_MODEL=_0xd172ed(-0x1f,-0x30)+_0x1f104a(0x3f6,0x3e3)+_0xd172ed(-0x10,-0x1e)+'L-6-v2';let _rerankerPipeline=null;function _0x1f104a(_0x1e4068,_0x486866){return _0x29be(_0x486866-0x2d0,_0x1e4068);}function _0xd172ed(_0x3d6cd4,_0x2fe00e){return _0x29be(_0x2fe00e- -0x12d,_0x3d6cd4);}let _rerankerLoading=null;function _0x29be(_0x33462e,_0x1f359e){_0x33462e=_0x33462e-0xe6;const _0x201f91=_0x201f();let _0x29bed1=_0x201f91[_0x33462e];if(_0x29be['vJFVbA']===undefined){var _0x3e6db7=function(_0x2fa6a6){const _0x215490='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x370b1e='',_0x2301e3='';for(let _0x30e2f4=0x0,_0x435533,_0x1eac7c,_0x11a654=0x0;_0x1eac7c=_0x2fa6a6['charAt'](_0x11a654++);~_0x1eac7c&&(_0x435533=_0x30e2f4%0x4?_0x435533*0x40+_0x1eac7c:_0x1eac7c,_0x30e2f4++%0x4)?_0x370b1e+=String['fromCharCode'](0xff&_0x435533>>(-0x2*_0x30e2f4&0x6)):0x0){_0x1eac7c=_0x215490['indexOf'](_0x1eac7c);}for(let _0x145acc=0x0,_0x83cb1d=_0x370b1e['length'];_0x145acc<_0x83cb1d;_0x145acc++){_0x2301e3+='%'+('00'+_0x370b1e['charCodeAt'](_0x145acc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2301e3);};_0x29be['NHbHxk']=_0x3e6db7,_0x29be['FhcOFd']={},_0x29be['vJFVbA']=!![];}const _0x5105b8=_0x201f91[0x0],_0x2913a2=_0x33462e+_0x5105b8,_0xd45d45=_0x29be['FhcOFd'][_0x2913a2];return!_0xd45d45?(_0x29bed1=_0x29be['NHbHxk'](_0x29bed1),_0x29be['FhcOFd'][_0x2913a2]=_0x29bed1):_0x29bed1=_0xd45d45,_0x29bed1;}async function getRerankerPipeline(){if(_rerankerPipeline)return _rerankerPipeline;if(_rerankerLoading)return _rerankerLoading;return _rerankerLoading=((async()=>{function _0xd4570e(_0x2900f9,_0x5da261){return _0x29be(_0x2900f9- -0x278,_0x5da261);}function _0xe5ed5b(_0x101769,_0x19f9ac){return _0x29be(_0x101769- -0x184,_0x19f9ac);}if(_0xd4570e(-0x167,-0x16e)===_0xe5ed5b(-0x73,-0x75))try{const _0x351af1=await Function('return\x20imp'+'ort(\x22@hugg'+_0xd4570e(-0x171,-0x167)+'ansformers'+'\x22)')();return _rerankerPipeline=await _0x351af1['pipeline']('text-class'+'ification',RERANKER_MODEL,{'quantized':!![]}),_rerankerPipeline;}catch(_0x31386c){if(_0xd4570e(-0x18e,-0x1a4)!==_0xd4570e(-0x18e,-0x182)){if(typeof _0x1176a7===_0xe5ed5b(-0x8e,-0xa1))return _0x1b0a39;if(_0x57dc7e&&typeof _0xad75a1[_0xd4570e(-0x18c,-0x198)]==='number')return _0x51a4ae[_0xd4570e(-0x18c,-0x17c)];if(_0x4da659[_0xd4570e(-0x17a,-0x18a)](_0x2d9e0d)&&_0x21b8a1[_0xd4570e(-0x17f,-0x178)]>0x0)return _0x585a58[0x0]['score']??0x0;return 0x0;}else{_rerankerLoading=null;throw new Error('Cross-Enco'+'der\x20rerank'+'er\x20require'+'s\x20@hugging'+'face/trans'+'formers.\x20'+(_0xe5ed5b(-0x8f,-0x9a)+_0xd4570e(-0x168,-0x159)+_0xe5ed5b(-0x82,-0x6f)+_0xe5ed5b(-0x95,-0xa1)+_0xe5ed5b(-0x9d,-0x9b))+('Original\x20e'+'rror:\x20'+(_0x31386c instanceof Error?_0x31386c[_0xe5ed5b(-0x94,-0x9e)]:String(_0x31386c))));}}else this['useFallbac'+'k']=_0x5c7ba0?.[_0xd4570e(-0x166,-0x174)+'k']??!![];})()),_rerankerLoading;}function fallbackScore(_0x2f84c8,_0x1a6816){const _0x17422d=_0x2f84c8[_0x21b6e9(0x25b,0x24c)+'e']()['split'](/\s+/)[_0x399208(-0x192,-0x18c)](_0x49e24e=>_0x49e24e[_0x21b6e9(0x25c,0x257)]>0x1),_0x32ff92=_0x1a6816['toLowerCas'+'e']();function _0x399208(_0x5e8cc4,_0x5a9326){return _0x1f104a(_0x5e8cc4,_0x5a9326- -0x553);}if(_0x17422d[_0x21b6e9(0x247,0x257)]===0x0)return 0x0;let _0xf7555b=0x0;for(const _0x235e76 of _0x17422d){if(_0x32ff92[_0x399208(-0x190,-0x17f)](_0x235e76))_0xf7555b++;}function _0x21b6e9(_0x14e4ad,_0x5646c7){return _0x1f104a(_0x14e4ad,_0x5646c7- -0x172);}return _0xf7555b/_0x17422d[_0x21b6e9(0x258,0x257)];}export class CrossEncoderReranker{[_0x1f104a(0x3e0,0x3e2)+'k'];constructor(_0x3ad9e8){function _0x89502a(_0x25e05d,_0x3f7a51){return _0xd172ed(_0x25e05d,_0x3f7a51- -0xbe);}this[_0x89502a(-0xd8,-0xd9)+'k']=_0x3ad9e8?.['useFallbac'+'k']??!![];}async[_0xd172ed(-0x40,-0x31)](_0x396f94,_0xeae9c8,_0x42eed4){function _0x3a6905(_0x4ad3d3,_0x3c1dc5){return _0x1f104a(_0x4ad3d3,_0x3c1dc5- -0x283);}if(_0xeae9c8[_0x1bfb4d(0x76,0x86)]===0x0)return[];if(_0xeae9c8[_0x1bfb4d(0x76,0x85)]<=_0x42eed4)return _0xeae9c8;function _0x1bfb4d(_0x3e1220,_0x389da2){return _0x1f104a(_0x389da2,_0x3e1220- -0x353);}try{const _0x5b39c4=await getRerankerPipeline(),_0x525946=_0xeae9c8['map'](_0x4ad5ff=>({'text':_0x396f94,'text_pair':_0x4ad5ff['memory']['content'][_0x1bfb4d(0x68,0x58)](0x0,0x200)})),_0x7b5397=await _0x5b39c4(_0x525946),_0x57d68d=_0xeae9c8[_0x1bfb4d(0x7e,0x81)]((_0x673ba6,_0x4f9dbb)=>({..._0x673ba6,'rerankScore':this['extractSco'+'re'](_0x7b5397[_0x4f9dbb])}));return _0x57d68d[_0x3a6905(0x15b,0x15b)]((_0x27cd88,_0x44a01f)=>_0x44a01f[_0x1bfb4d(0x6f,0x59)+'e']-_0x27cd88['rerankScor'+'e']),_0x57d68d[_0x1bfb4d(0x68,0x69)](0x0,_0x42eed4)[_0x3a6905(0x14a,0x14e)](({rerankScore:_0xe09507,..._0x1d6d7e})=>_0x1d6d7e);}catch{if(this[_0x1bfb4d(0x8f,0x8f)+'k'])return this[_0x1bfb4d(0x88,0x94)+_0x3a6905(0x15f,0x150)](_0x396f94,_0xeae9c8,_0x42eed4);return _0xeae9c8['slice'](0x0,_0x42eed4);}}[_0x1f104a(0x3ec,0x3db)+'rank'](_0x5cd3b6,_0x175784,_0xd5f9ad){const _0x101142=_0x175784[_0x1fd55c(-0x1fc,-0x1f7)](_0x250fa4=>({..._0x250fa4,'fallbackScore':fallbackScore(_0x5cd3b6,_0x250fa4[_0x383e91(0x45e,0x45b)][_0x383e91(0x468,0x45a)])}));function _0x383e91(_0x19fb3e,_0xf05e84){return _0x1f104a(_0x19fb3e,_0xf05e84-0x81);}_0x101142[_0x1fd55c(-0x1f5,-0x1ea)]((_0x3f7c09,_0x451e1f)=>{const _0x47eec6=_0x3f7c09[_0x238eb6(0x4a7,0x4ba)]*0.5+_0x3f7c09[_0x5e4e9c(0x39c,0x384)+_0x5e4e9c(0x3ab,0x3ae)]*0.5;function _0x5e4e9c(_0x395902,_0x571668){return _0x1fd55c(_0x571668,_0x395902-0x5ab);}const _0x4fdf1e=_0x451e1f[_0x5e4e9c(0x39f,0x3b0)]*0.5+_0x451e1f[_0x5e4e9c(0x39c,0x38d)+_0x5e4e9c(0x3ab,0x3b7)]*0.5;function _0x238eb6(_0x2e6eb9,_0x5bbf84){return _0x1fd55c(_0x2e6eb9,_0x5bbf84-0x6c6);}return _0x4fdf1e-_0x47eec6;});function _0x1fd55c(_0x4a5da3,_0x4fadfd){return _0x1f104a(_0x4a5da3,_0x4fadfd- -0x5c8);}return _0x101142[_0x383e91(0x453,0x43c)](0x0,_0xd5f9ad)[_0x1fd55c(-0x20b,-0x1f7)](({fallbackScore:_0x5bdc02,..._0x19e446})=>_0x19e446);}[_0x1f104a(0x3b4,0x3b6)+'re'](_0x2b781f){function _0x2347bb(_0x4da5e9,_0x1c84f1){return _0x1f104a(_0x1c84f1,_0x4da5e9- -0x29b);}function _0x56b6aa(_0x3ef639,_0x5553ca){return _0x1f104a(_0x5553ca,_0x3ef639- -0x295);}if(typeof _0x2b781f===_0x2347bb(0x12b,0x11b))return _0x2b781f;if(_0x2b781f&&typeof _0x2b781f[_0x56b6aa(0x127,0x114)]===_0x2347bb(0x12b,0x121))return _0x2b781f[_0x2347bb(0x121,0x11b)];if(Array['isArray'](_0x2b781f)&&_0x2b781f[_0x56b6aa(0x134,0x11d)]>0x0)return _0x2b781f[0x0]['score']??0x0;return 0x0;}static async[_0xd172ed(-0x1c,-0x21)+'e'](){function _0xdc74aa(_0x2d119e,_0x224374){return _0x1f104a(_0x2d119e,_0x224374- -0x4fa);}function _0x31da83(_0x521013,_0xbfafc6){return _0x1f104a(_0x521013,_0xbfafc6- -0xdf);}try{return await Function(_0x31da83(0x2f6,0x2fe)+_0x31da83(0x2e6,0x2f9)+_0x31da83(0x301,0x2f8)+_0x31da83(0x2f0,0x2f0)+'\x22)')(),!![];}catch{if('IkvrM'===_0xdc74aa(-0x128,-0x124))return![];else{if(this['useFallbac'+'k'])return this[_0x31da83(0x2fe,0x2fc)+_0xdc74aa(-0x129,-0x127)](_0x55594b,_0x4d3f70,_0x2d8eb1);return _0x2eb55e[_0x31da83(0x2d7,0x2dc)](0x0,_0x377288);}}}}export function resetRerankerPipeline(){_rerankerPipeline=null,_rerankerLoading=null;}
|
package/dist/session/parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2dc93d,_0xac3952){function _0x1b6f6c(_0x30dc5c,_0x1ac52d){return _0x30f4(_0x1ac52d-0x48,_0x30dc5c);}const _0x54feaa=_0x2dc93d();function _0x493851(_0x2e019b,_0x177f72){return _0x30f4(_0x2e019b- -0x35a,_0x177f72);}while(!![]){try{const _0x4922dd=-parseInt(_0x493851(-0x2a0,-0x28d))/0x1*(parseInt(_0x1b6f6c(0x114,0x11f))/0x2)+parseInt(_0x1b6f6c(0x122,0x10d))/0x3+-parseInt(_0x493851(-0x284,-0x28e))/0x4*(-parseInt(_0x1b6f6c(0xf8,0xf8))/0x5)+parseInt(_0x493851(-0x2a8,-0x2a6))/0x6*(-parseInt(_0x493851(-0x285,-0x291))/0x7)+parseInt(_0x493851(-0x2a4,-0x2a9))/0x8+-parseInt(_0x1b6f6c(0x109,0x11c))/0x9*(parseInt(_0x493851(-0x2a1,-0x2a5))/0xa)+parseInt(_0x1b6f6c(0xf8,0xfb))/0xb*(-parseInt(_0x1b6f6c(0x120,0x10e))/0xc);if(_0x4922dd===_0xac3952)break;else _0x54feaa['push'](_0x54feaa['shift']());}catch(_0x386b04){_0x54feaa['push'](_0x54feaa['shift']());}}}(_0x2963,0x875c8));function _0x30f4(_0x433724,_0x2db31c){_0x433724=_0x433724-0xb0;const _0x2963f4=_0x2963();let _0x30f4e0=_0x2963f4[_0x433724];if(_0x30f4['lCtAJZ']===undefined){var _0x3964a1=function(_0x4f58fb){const _0x5a17e6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x55829f='',_0xd4ce6a='';for(let _0x3fdaaa=0x0,_0x50139b,_0x364e4e,_0x5a2559=0x0;_0x364e4e=_0x4f58fb['charAt'](_0x5a2559++);~_0x364e4e&&(_0x50139b=_0x3fdaaa%0x4?_0x50139b*0x40+_0x364e4e:_0x364e4e,_0x3fdaaa++%0x4)?_0x55829f+=String['fromCharCode'](0xff&_0x50139b>>(-0x2*_0x3fdaaa&0x6)):0x0){_0x364e4e=_0x5a17e6['indexOf'](_0x364e4e);}for(let _0x2b186e=0x0,_0x2b2ebe=_0x55829f['length'];_0x2b186e<_0x2b2ebe;_0x2b186e++){_0xd4ce6a+='%'+('00'+_0x55829f['charCodeAt'](_0x2b186e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xd4ce6a);};_0x30f4['yJuHZM']=_0x3964a1,_0x30f4['nuELea']={},_0x30f4['lCtAJZ']=!![];}const _0x16cb43=_0x2963f4[0x0],_0x235f29=_0x433724+_0x16cb43,_0x1ce9ec=_0x30f4['nuELea'][_0x235f29];return!_0x1ce9ec?(_0x30f4e0=_0x30f4['yJuHZM'](_0x30f4e0),_0x30f4['nuELea'][_0x235f29]=_0x30f4e0):_0x30f4e0=_0x1ce9ec,_0x30f4e0;}import{readFileSync,readdirSync,statSync,existsSync}from'node:fs';import{join,basename}from'node:path';import{homedir}from'node:os';const CLAUDE_PROJECTS_DIR=join(homedir(),_0x5c39ae(0x4a8,0x4b1),_0x5c39ae(0x495,0x48d));function _0x2963(){const _0x327924=['BwvZC2fNzq','mtu2nZaWzhD6A2jN','ihnLC3nPB24GzG','ndCXnKTvDwXIsW','mJy2ndjdEgvvDfm','ChjVAMvJDhm','zxjYB3i','nJuXnZq4me1Rsw1dyq','ufb3shy','Bwf0y2G','mta3meDzzwLMAq','mtC3muzNshbTBG','C2L6zq','zw5KC1DPDgG','BxrPBwvnCW','BgvUz3rO','w2eYyv0Gu2vZCW','DxvPza','w2eYyv0GrMfPBa','w2eYyv0Gsw52yq','ChvZAa','B3qGzM91BMq6','mZa2mdy5nLrdA1j6DG','mJeZnMvWyxrPvW','lMnSyxvKzq','DcbSAw5Lia','DhLWzq','DxrMltG','zMLSDgvY','Aw9UigzPBguGBG','lMPZB25S','BgLKiePtt04Gyq','AxneAxjLy3rVCG','CgfYC2u','CMvWBgfJzq','zwqGDg8GC2nHBG','DhjPBq','mZGYnZDOEuvLAui','ndq3m0jjzg1mEq','ndbHuLDxCK8','mJmYwvL4txHp','zwqGDg8GC3rHDa','igLUia'];_0x2963=function(){return _0x327924;};return _0x2963();}export function parseSessionFile(_0x323f7e){if(!existsSync(_0x323f7e))return console['error'](_0x3c9bbc(-0x18d,-0x18a)+_0x400c11(-0x211,-0x214)+_0x400c11(-0x223,-0x21c),_0x323f7e),[];function _0x3c9bbc(_0x384d33,_0x46859a){return _0x5900ab(_0x384d33,_0x46859a- -0x48);}function _0x400c11(_0x1f8b15,_0x47776e){return _0x5900ab(_0x1f8b15,_0x47776e- -0xdf);}const _0x2ad152=readFileSync(_0x323f7e,_0x400c11(-0x201,-0x216)),_0xac8aef=_0x2ad152['split']('\x0a'),_0xc9174d=[];for(let _0x544ed7=0x0;_0x544ed7<_0xac8aef[_0x400c11(-0x22b,-0x222)];_0x544ed7++){const _0x349e0e=_0xac8aef[_0x544ed7][_0x400c11(-0x217,-0x20d)]();if(!_0x349e0e)continue;try{const _0x3463c9=JSON[_0x3c9bbc(-0x17a,-0x179)](_0x349e0e);_0x3463c9[_0x3c9bbc(-0x192,-0x189)]&&_0x3463c9['type']&&_0x3463c9[_0x3c9bbc(-0x181,-0x16f)]&&_0xc9174d[_0x400c11(-0x21f,-0x21d)](_0x3463c9);}catch{console[_0x3c9bbc(-0x187,-0x194)](_0x3c9bbc(-0x17c,-0x187)+_0x3c9bbc(-0x189,-0x17b)+_0x3c9bbc(-0x177,-0x181)+(_0x544ed7+0x1)+_0x400c11(-0x201,-0x207)+_0x323f7e);}}return _0xc9174d;}function _0x5c39ae(_0xd2e378,_0x180e34){return _0x30f4(_0xd2e378-0x3e1,_0x180e34);}export function projectPathToSlug(_0x2146b7){function _0x40174d(_0x55daf,_0x539b0d){return _0x5c39ae(_0x55daf- -0x5a7,_0x539b0d);}return _0x2146b7[_0x40174d(-0xf5,-0xff)](/[^a-zA-Z0-9]/g,'-');}export function slugToProjectPath(_0x44d0e3){function _0x473a38(_0x18d0ca,_0xe23b01){return _0x5c39ae(_0x18d0ca- -0x684,_0xe23b01);}if(_0x44d0e3['startsWith']('-'))return _0x44d0e3[_0x473a38(-0x1d2,-0x1e8)](/-/g,'/');return _0x44d0e3;}function _0x5900ab(_0x4d653b,_0x4102a5){return _0x30f4(_0x4102a5- -0x201,_0x4d653b);}export function extractCwdFromContent(_0x2ae9e2){function _0xc6a6e4(_0x46857a,_0x36e07c){return _0x5900ab(_0x46857a,_0x36e07c- -0x15f);}const _0x1cd25a=_0x2ae9e2[_0xc6a6e4(-0x2a4,-0x2a8)](/"cwd"\s*:\s*"((?:[^"\\]|\\.)*)"/);if(!_0x1cd25a)return null;function _0x216169(_0x57c204,_0x2f5f98){return _0x5900ab(_0x2f5f98,_0x57c204-0x3b7);}try{return JSON[_0x216169(0x286,0x271)]('\x22'+_0x1cd25a[0x1]+'\x22');}catch{return null;}}function readSessionMeta(_0x3b0716){const _0xf61c31=readFileSync(_0x3b0716,'utf-8');function _0x576d3f(_0x318639,_0x1535b7){return _0x5900ab(_0x318639,_0x1535b7-0x4dc);}function _0x256eff(_0x5cac21,_0x1d2df6){return _0x5900ab(_0x1d2df6,_0x5cac21-0x17);}return{'messageCount':_0xf61c31['split']('\x0a')[_0x576d3f(0x3a9,0x3a6)](_0x242908=>_0x242908['trim']()[_0x576d3f(0x3aa,0x399)]>0x0)[_0x576d3f(0x384,0x399)],'cwd':extractCwdFromContent(_0xf61c31)};}export function findSessionFiles(_0xe1c113){if(!existsSync(CLAUDE_PROJECTS_DIR))return[];const _0xb819fc=[];function _0x25a110(_0x2bd65e,_0x223c90){return _0x5900ab(_0x223c90,_0x2bd65e-0x28b);}function _0x513187(_0x751b10,_0x3f36e2){return _0x5900ab(_0x3f36e2,_0x751b10- -0x2c);}try{const _0x236a6e=_0xe1c113?[projectPathToSlug(_0xe1c113)]:readdirSync(CLAUDE_PROJECTS_DIR);for(const _0x9cf2b1 of _0x236a6e){const _0x586744=join(CLAUDE_PROJECTS_DIR,_0x9cf2b1);if(!existsSync(_0x586744))continue;let _0x1082b7;try{if(_0x513187(-0x176,-0x171)===_0x513187(-0x176,-0x169))_0x1082b7=statSync(_0x586744);else{const _0x1fef73=_0x2b2ebe[_0x513187(-0x15d,-0x170)](_0x4b2bdc);_0x1fef73[_0x513187(-0x16d,-0x16b)]&&_0x1fef73[_0x513187(-0x164,-0x15b)]&&_0x1fef73[_0x25a110(0x164,0x157)]&&_0x505e50[_0x513187(-0x16a,-0x168)](_0x1fef73);}}catch{continue;}if(!_0x1082b7[_0x25a110(0x159,0x16c)+'y']())continue;let _0x48f785;try{_0x48f785=readdirSync(_0x586744);}catch{continue;}for(const _0x3d9782 of _0x48f785){if(!_0x3d9782[_0x513187(-0x171,-0x16a)](_0x25a110(0x157,0x160)))continue;const _0x559661=join(_0x586744,_0x3d9782),_0xba3305=basename(_0x3d9782,_0x25a110(0x157,0x166));try{const _0x563d23=statSync(_0x559661),{messageCount:_0x1eb367,cwd:_0x2bbc37}=readSessionMeta(_0x559661);if(_0xe1c113&&_0x2bbc37&&_0x2bbc37!==_0xe1c113)continue;_0xb819fc[_0x513187(-0x16a,-0x164)]({'sessionId':_0xba3305,'projectPath':_0xe1c113||_0x2bbc37||slugToProjectPath(_0x9cf2b1),'filePath':_0x559661,'messageCount':_0x1eb367,'sizeBytes':_0x563d23[_0x513187(-0x172,-0x171)],'modifiedAt':_0x563d23[_0x513187(-0x170,-0x16a)]});}catch{console[_0x25a110(0x13f,0x14b)](_0x25a110(0x14b,0x14d)+_0x513187(-0x155,-0x153)+'\x20session\x20f'+'ile:',_0x559661);}}}}catch(_0x11bada){console['error'](_0x513187(-0x16c,-0x17b)+_0x513187(-0x15b,-0x150)+_0x513187(-0x17c,-0x17a)+'iles:',_0x11bada);}return _0xb819fc;}export function getSessionMessages(_0x15c4bc,_0x30b5ab){const _0x1ea2f9=projectPathToSlug(_0x30b5ab);function _0x9cda2f(_0x2bfab5,_0xc7ef92){return _0x5c39ae(_0x2bfab5- -0x15c,_0xc7ef92);}const _0x1a50cb=join(CLAUDE_PROJECTS_DIR,_0x1ea2f9,_0x15c4bc+_0x9cda2f(0x352,0x367));return parseSessionFile(_0x1a50cb);}
|
package/dist/skill/evaluator.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4dd450,_0xaa8d6e){function _0x2400bf(_0x482b4d,_0x2fd828){return _0x2dac(_0x482b4d-0x18,_0x2fd828);}function _0x4663f4(_0x3c097d,_0x5b21de){return _0x2dac(_0x5b21de-0x150,_0x3c097d);}const _0x3d9b20=_0x4dd450();while(!![]){try{const _0x21ea29=parseInt(_0x4663f4(0x2f5,0x2c3))/0x1+-parseInt(_0x4663f4(0x295,0x2d9))/0x2+parseInt(_0x2400bf(0x1c2,0x16e))/0x3+parseInt(_0x2400bf(0x1b3,0x205))/0x4*(parseInt(_0x2400bf(0x156,0x14a))/0x5)+parseInt(_0x2400bf(0x14d,0x138))/0x6*(parseInt(_0x4663f4(0x2db,0x2aa))/0x7)+-parseInt(_0x4663f4(0x2bb,0x2f5))/0x8*(parseInt(_0x4663f4(0x25a,0x29b))/0x9)+parseInt(_0x2400bf(0x16a,0x181))/0xa*(parseInt(_0x2400bf(0x148,0x129))/0xb);if(_0x21ea29===_0xaa8d6e)break;else _0x3d9b20['push'](_0x3d9b20['shift']());}catch(_0x4e0c00){_0x3d9b20['push'](_0x3d9b20['shift']());}}}(_0x3f96,0xe0772));function _0x1674ff(_0x150c07,_0x5c74d2){return _0x2dac(_0x5c74d2- -0xab,_0x150c07);}import{randomUUID}from'node:crypto';import{cosineSimilarity}from'../extraction/similarity.js';function _0x4475ab(_0x28eee8,_0x528e22){return _0x2dac(_0x28eee8-0x2a2,_0x528e22);}function _0x2dac(_0x2c8ceb,_0x340c84){_0x2c8ceb=_0x2c8ceb-0x11a;const _0x3f96dd=_0x3f96();let _0x2dacc4=_0x3f96dd[_0x2c8ceb];if(_0x2dac['MxiVoR']===undefined){var _0x402cf2=function(_0x25cbf8){const _0x8fafe4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x339660='',_0x242618='';for(let _0x5c5061=0x0,_0x57b706,_0x29f76c,_0x13a3d2=0x0;_0x29f76c=_0x25cbf8['charAt'](_0x13a3d2++);~_0x29f76c&&(_0x57b706=_0x5c5061%0x4?_0x57b706*0x40+_0x29f76c:_0x29f76c,_0x5c5061++%0x4)?_0x339660+=String['fromCharCode'](0xff&_0x57b706>>(-0x2*_0x5c5061&0x6)):0x0){_0x29f76c=_0x8fafe4['indexOf'](_0x29f76c);}for(let _0x2b936e=0x0,_0x95a4a8=_0x339660['length'];_0x2b936e<_0x95a4a8;_0x2b936e++){_0x242618+='%'+('00'+_0x339660['charCodeAt'](_0x2b936e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x242618);};_0x2dac['ntvtcN']=_0x402cf2,_0x2dac['ylwcsA']={},_0x2dac['MxiVoR']=!![];}const _0x2be4c7=_0x3f96dd[0x0],_0x58ceaa=_0x2c8ceb+_0x2be4c7,_0x1ce6eb=_0x2dac['ylwcsA'][_0x58ceaa];return!_0x1ce6eb?(_0x2dacc4=_0x2dac['ntvtcN'](_0x2dacc4),_0x2dac['ylwcsA'][_0x58ceaa]=_0x2dacc4):_0x2dacc4=_0x1ce6eb,_0x2dacc4;}function _0x3f96(){const _0x3285fd=['C3rYAw5NAwz5','r2PtD0K','DxbKyxrLzef0','C3rHCNrZv2L0Aa','Dg9gAxHLza','BgXT','y2f0zwDVCNK','zg5RzuG','y2XHC3nPzNLdBW','zxzHBhvHDgvdBa','zxGUANm','rgT1Buq','BgvUz3rO','ChvZAa','BNrLBNq','CNvLl2zHBhnLla','y2uIoIaWlJaTmq','DxbKyxrLtwvTBW','DgvKqxq','y2X1C3rLCK1LBq','ywjZB3jIsw50BW','vgHYzxnOB2XK','DgfNCW','zwrKAw5NCW','oty5ntC3ngHpsfHUza','q29UzMLKzw5Jzq','Bwf4u2TPBgXZ','y3j5C3rHBgXPEG','C2TPBgXdB252zq','ntGWmdKYz0LKEeHx','BMnL','zurHExm','zw1IzwrKAw5N','BgfZDefJy2vZCW','zMLUza','C2f2zuvTyMvKza','Bwf4','u2fTCgXLig1LBq','mtCXnxLoANfQAq','EvjyyLO','ChjVAMvJDfbHDa','BgfZDefJDgL2yq','zdOG','CMLLCW','yNvPBgrtA2LSBa','C291CMnLtwvTBW','CKvjtxG','Aw9U','Dg9ju09tDhjPBG','BgXTvMfSAwrHDa','zMv0y2GGzMfPBa','ndvgCvPNCem','igzHAwXLzdOG','y29UzMLN','u2TPBgWGy3jLyq','yxzLCMfNzuvTyG','BNq6ia','CMfNzvnPBwLSyq','mtbWCez4qu0','y29TChv0zuf2zq','DgLTzw91Da','AM9PBG','BwLUuMvWzxrPDa','yMfZzty0','AwyGDgHLC2uGCW','y29UDgvUDa','mJHQCu9Ks24','Ahf3sLi','BMf0DxjL','AMvJDfvZywDL','y29UzMLKzw5Jzq','C2TPBgXFAwq','CML0Eq','C2TPBgW','C3bSAxq','rxzHBhvHDgLVBG','BwvZC2fNzq','Bwv0ytO','qxbbBw0','zg9TywLU','BgvHCM5PBMC','Aw1PBgfYig1LBq','zxH0CMfJDe1LDa','BwLUq29UzMLKzq','BMf0DxjLoG','ywrK','tgPhtxu','zNjVBq','CMv2Awv3q3LJBa','zMXVB3i','BNm6','ntGXoty3wK9Qu3zW','Dxn0zxi','BM93','CNnPB24','zxnLBNqGysbYzq','y29TChjLC3nuBW','y291BNroB25jBG','C2LTAwXHCML0Eq','zvnRAwXS','wfbtwxu','z0XNzxG','BwfW','runptK5sruzvuW','C2L6zq','C2vTyw50Awm','B3jPzxm','u2TPBgW','y29TCgXLDgu','C3rHyMLSAxr5','AxneDxbSAwnHDa','Cgf0DgvYBG','zxzHBhvHDgu','mZqZotuZmLzRCxnAtG','z2v0','v0jbtwu','zMLSDgvY','C29YDa','CMfUzg9T','q29UDgvUDa','q2f0zwDVCNK6ia','zw5HyMXLza','Aw5JBhvKzxm','zgvTB3rLzc1MCG','Dhbyt0i','DgHmte0','teXnihzHBgLKyq','ywnXqMm','B20TC2TPBgW','y3jLyxrLtwvTBW','Dg9tDhjPBMC','nZC2ng1kDvbXwa','q291BNq','lJb9','Dgf4B25VBxK6','DMfSAwrHDgvxAq','w1nRAwXSxsa','CNLjzhm','rujjDLa','z2v0vgLTzq','CgfYC2u','mtmXmtKYofboz0jdua','B0z0zMO','DgLVBIbMywLSzq','Aw9UCW','v1zLtKK','mJGYotCXn256B3jzwq','Aw5N','ywrHDge','DxnHyMXLihnRAq','C2v0','y2zIuvO','DgGGsLnptJOGEW','C2vZC2LVBKLK','B3jPzxm6','s2v5ihbHDhrLCG','C2XPy2u','rgv0zxjTAw5Lia','vfrMu0u','zwrbDa','CMv2Awv3u2TPBa','zw50CMLLCW','zMLSBa','BgLZDe1LBw9YAq','uMvZCg9Uzcb3Aq','AgfZ','DhjPBuvUza'];_0x3f96=function(){return _0x3285fd;};return _0x3f96();}const REAL_USAGE_THRESHOLD=0x2;export class SkillEvaluator{['db'];[_0x1674ff(0x5f,0xa2)];constructor(_0x2bf995,_0x51d049){this['db']=_0x2bf995,this['config']=_0x51d049;}async[_0x4475ab(0x42a,0x452)](_0x5da3f9,_0x326b36){const _0x331b50=this[_0x2b8771(-0x1ba,-0x1a9)]['skillConve'+_0x513f8f(-0x123,-0x173)];if(!_0x331b50?.['enabled'])return{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]};function _0x2b8771(_0x4839af,_0x3f9a8e){return _0x4475ab(_0x3f9a8e- -0x598,_0x4839af);}const _0x3c3fbd=[],_0x42c914=[];let _0x26c90d=0x0,_0x1cea53=0x0;function _0x513f8f(_0x4b69ff,_0x42e2db){return _0x4475ab(_0x42e2db- -0x58b,_0x4b69ff);}try{if(_0x2b8771(-0x1e1,-0x190)!==_0x2b8771(-0x1cf,-0x1d7)){const _0x23ec65=this['db'][_0x513f8f(-0x12a,-0x12e)+'es']({'limit':0x1f4,'projectPath':_0x5da3f9}),_0x1cdacd=_0x23ec65[_0x2b8771(-0x178,-0x16a)](_0x521a41=>_0x521a41[_0x513f8f(-0x1c3,-0x1cb)]!=='skill'&&_0x521a41[_0x2b8771(-0x19e,-0x1be)]&&_0x521a41[_0x2b8771(-0x1f9,-0x1be)]['length']>0x0);if(_0x1cdacd[_0x513f8f(-0x1e3,-0x1c5)]<_0x331b50[_0x513f8f(-0x155,-0x193)+'ions'])return{'candidates':_0x42c914,'created':_0x26c90d,'skipped':_0x1cdacd[_0x513f8f(-0x1e0,-0x1c5)],'errors':_0x3c3fbd};const _0x557aa4=0x12c;let _0x8ddae7;if(_0x1cdacd['length']>_0x557aa4){const _0x224a94=[..._0x1cdacd][_0x2b8771(-0x154,-0x169)]((_0x386077,_0x10b149)=>new Date(_0x10b149['updatedAt'])[_0x513f8f(-0x16d,-0x146)]()-new Date(_0x386077[_0x513f8f(-0x216,-0x1cf)])['getTime']()),_0x3ebfc2=Math[_0x513f8f(-0x178,-0x178)](_0x557aa4*0.7),_0x15cc36=_0x557aa4-_0x3ebfc2,_0x95e294=_0x224a94[_0x513f8f(-0x163,-0x135)](0x0,_0x3ebfc2),_0x313a41=new Set(_0x95e294['map'](_0x26f6d8=>_0x26f6d8['id'])),_0x1d3248=_0x224a94['slice'](_0x3ebfc2)[_0x2b8771(-0x1a2,-0x16a)](_0x1773c6=>!_0x313a41[_0x513f8f(-0xfa,-0x12c)](_0x1773c6['id'])),_0x572b9c=[];for(let _0x325b4c=_0x1d3248[_0x2b8771(-0x1cc,-0x1d2)]-0x1;_0x325b4c>0x0&&_0x572b9c[_0x2b8771(-0x21f,-0x1d2)]<_0x15cc36;_0x325b4c--){const _0x158691=Math[_0x2b8771(-0x169,-0x185)](Math[_0x2b8771(-0x150,-0x168)]()*(_0x325b4c+0x1));[_0x1d3248[_0x325b4c],_0x1d3248[_0x158691]]=[_0x1d3248[_0x158691],_0x1d3248[_0x325b4c]],_0x572b9c[_0x513f8f(-0x179,-0x1c4)](_0x1d3248[_0x325b4c]);}_0x8ddae7=[..._0x95e294,..._0x572b9c];}else _0x8ddae7=_0x1cdacd;const _0x2a2c6b=this[_0x2b8771(-0x1dc,-0x1cb)+_0x513f8f(-0x155,-0x167)](_0x8ddae7,_0x331b50[_0x513f8f(-0x1a0,-0x16f)+_0x2b8771(-0x186,-0x1c9)]),_0x446314=_0x23ec65['filter'](_0x50412a=>_0x50412a[_0x2b8771(-0x19e,-0x1d8)]==='skill');let _0x28b8b7=_0x331b50[_0x2b8771(-0x1fc,-0x1c4)]-_0x446314[_0x2b8771(-0x222,-0x1d2)];for(const _0x4cbfc7 of _0x2a2c6b){if(_0x28b8b7<=0x0)break;const _0xc335dd=this[_0x2b8771(-0x18c,-0x1d5)+_0x2b8771(-0x1c3,-0x182)](_0x4cbfc7,_0x331b50[_0x513f8f(-0x146,-0x193)+_0x513f8f(-0x168,-0x141)],_0x331b50['minConfide'+_0x2b8771(-0x1c8,-0x1c0)]);if(!_0xc335dd){_0x1cea53+=_0x4cbfc7[_0x2b8771(-0x18b,-0x1d2)];continue;}const _0x45ad8f=this[_0x513f8f(-0x14e,-0x163)+_0x513f8f(-0x1b1,-0x16e)](_0xc335dd,_0x446314);if(_0x45ad8f){_0x1cea53+=_0x4cbfc7[_0x2b8771(-0x1e2,-0x1d2)];continue;}_0x42c914[_0x513f8f(-0x174,-0x1c4)](_0xc335dd);if(_0x331b50[_0x513f8f(-0x150,-0x1a0)+_0x513f8f(-0x14f,-0x1a2)]&&this[_0x2b8771(-0x1f3,-0x1a9)][_0x513f8f(-0x1f1,-0x1cc)]?.[_0x513f8f(-0x18a,-0x158)])try{const _0x474580=await this[_0x513f8f(-0x180,-0x14a)+'thLLM'](_0xc335dd);if(!_0x474580){_0x1cea53+=_0x4cbfc7[_0x513f8f(-0x17c,-0x1c5)];continue;}}catch(_0x7815bf){_0x3c3fbd[_0x2b8771(-0x1f7,-0x1d1)]('LLM\x20valida'+'tion\x20faile'+_0x513f8f(-0x177,-0x1a7)+(_0x7815bf instanceof Error?_0x7815bf[_0x513f8f(-0x14f,-0x185)]:String(_0x7815bf)));}try{await this[_0x2b8771(-0x161,-0x17e)+_0x513f8f(-0x158,-0x166)](_0xc335dd,_0x326b36),_0x26c90d++,_0x28b8b7--;}catch(_0xe0f933){_0x3c3fbd[_0x2b8771(-0x1dc,-0x1d1)](_0x513f8f(-0x199,-0x19b)+_0x2b8771(-0x15e,-0x14f)+_0x2b8771(-0x188,-0x1b4)+(_0xe0f933 instanceof Error?_0xe0f933['message']:String(_0xe0f933)));}}}else return![];}catch(_0x2e256d){_0x3c3fbd['push'](_0x2b8771(-0x18e,-0x193)+_0x2b8771(-0x172,-0x1aa)+(_0x2e256d instanceof Error?_0x2e256d[_0x513f8f(-0x146,-0x185)]:String(_0x2e256d)));}return{'candidates':_0x42c914,'created':_0x26c90d,'skipped':_0x1cea53,'errors':_0x3c3fbd};}[_0x1674ff(0x70,0x80)+_0x1674ff(0xc4,0xd7)](_0x4526e6,_0x4d30d8){function _0x484523(_0x314369,_0x402a82){return _0x4475ab(_0x402a82- -0x59c,_0x314369);}const _0x3b8fb3=new Set(),_0x2e961a=[];for(const _0x1d86eb of _0x4526e6){if(_0x3b8fb3[_0x484523(-0x16a,-0x13d)](_0x1d86eb['id']))continue;if(!_0x1d86eb[_0x484523(-0x1f4,-0x1c2)])continue;const _0x13a08d=[_0x1d86eb];_0x3b8fb3[_0x484523(-0x1cb,-0x18d)](_0x1d86eb['id']);for(const _0x5f0333 of _0x4526e6){if(_0x3339de(0x29c,0x269)!=='ixcxR'){if(_0x3b8fb3[_0x3339de(0x299,0x292)](_0x5f0333['id']))continue;if(!_0x5f0333[_0x484523(-0x1d9,-0x1c2)])continue;const _0xfc3717=cosineSimilarity(_0x1d86eb[_0x484523(-0x17a,-0x1c2)],_0x5f0333['embedding']);_0xfc3717>=_0x4d30d8&&(_0x13a08d[_0x3339de(0x1ee,0x1fa)](_0x5f0333),_0x3b8fb3['add'](_0x5f0333['id']));}else _0x8f343d['push']('taxonomy:'+_0x22b50c[_0x3339de(0x215,0x23c)]),_0x22e9dd[_0x3339de(0x224,0x234)]&&_0x1cd89d['push']('taxonomy:'+_0x1cfa3f['skill_id']),_0x483a57[_0x3339de(0x200,0x231)]&&_0x75ac9e[_0x3339de(0x1f0,0x1fa)]('nature:'+_0x32b573[_0x3339de(0x25d,0x231)]);}_0x2e961a['push'](_0x13a08d);}function _0x3339de(_0x2eb44d,_0x16838c){return _0x4475ab(_0x16838c- -0x1cd,_0x2eb44d);}return _0x2e961a;}[_0x4475ab(0x3c3,0x3e1)+'uster'](_0xcdc82f,_0xfbba1c,_0x2f6c49){const _0x494196=0.5;if(_0xcdc82f[_0x530b68(0x287,0x2b7)]<_0xfbba1c)return null;const _0x2de47e=this[_0x3c0099(0x25c,0x236)+_0x3c0099(0x251,0x234)+_0x3c0099(0x24f,0x243)](_0xcdc82f);if(_0x2de47e<0.75)return null;let _0x2d4c09=_0x2de47e;const _0x3e0551=new Set(_0xcdc82f[_0x3c0099(0x283,0x261)](_0x4906e7=>_0x4906e7[_0x3c0099(0x262,0x294)])[_0x530b68(0x2ef,0x2b5)](Boolean));_0x3e0551[_0x3c0099(0x231,0x263)]>=0x2&&(_0x2d4c09*=1.2);const _0x2d94f4=new Map();for(const _0x519ad5 of _0xcdc82f){_0x3c0099(0x29e,0x28c)===_0x530b68(0x2a2,0x261)?_0x15fe60[_0x3c0099(0x27d,0x291)](_0x1a1dda[_0x3c0099(0x22c,0x201)],(_0x24d344[_0x3c0099(0x25e,0x26d)](_0x4b568b['category'])??0x0)+0x1):_0x2d94f4[_0x530b68(0x311,0x35f)](_0x519ad5[_0x530b68(0x281,0x29a)],(_0x2d94f4['get'](_0x519ad5[_0x530b68(0x281,0x2c4)])??0x0)+0x1);}let _0x3ba0fd=_0xcdc82f[0x0][_0x530b68(0x281,0x249)],_0x5c8634=0x0;function _0x3c0099(_0x4f2039,_0x4943e1){return _0x4475ab(_0x4943e1- -0x1bf,_0x4f2039);}for(const [_0x1bd59b,_0x36bc1a]of _0x2d94f4){'oFtfj'!==_0x3c0099(0x291,0x289)?_0x3bce5f[_0x1658e5]+=_0x2c4098[_0x530b68(0x29b,0x2b7)][_0x3e7a49]/_0x38adab[_0x530b68(0x287,0x25f)]:_0x36bc1a>_0x5c8634&&(_0x5c8634=_0x36bc1a,_0x3ba0fd=_0x1bd59b);}_0x5c8634/_0xcdc82f['length']>=0.5&&('XPSYu'===_0x3c0099(0x275,0x25f)?_0x2d4c09*=1.1:(_0x171dac+=_0x3ca108(_0x14191e[_0x72fa09][_0x3c0099(0x22a,0x21b)],_0x4732de[_0x421aff]['embedding']),_0x1ff8e3++));_0x2d4c09=Math['min'](_0x2d4c09,0x1);if(_0x2d4c09<_0x494196)return null;let _0x53df0c;const _0x367f7b=_0xcdc82f[_0x3c0099(0x275,0x26f)](_0x2bac92=>_0x2bac92[_0x3c0099(0x265,0x21b)]&&_0x2bac92['embedding'][_0x3c0099(0x22d,0x207)]>0x0);if(_0x367f7b['length']>=0x2){if(_0x530b68(0x2d1,0x2d4)===_0x3c0099(0x230,0x26e))_0x182a95[_0x3c0099(0x2dc,0x291)](_0x5e834f,(_0x28f4a5[_0x530b68(0x2ed,0x2d8)](_0x255d0c)??0x0)+0x1);else{const _0x100a55=_0x367f7b[0x0][_0x530b68(0x29b,0x28c)][_0x530b68(0x287,0x2bb)],_0x3aa1c5=new Array(_0x100a55)[_0x3c0099(0x2aa,0x29d)](0x0);for(const _0x49fe99 of _0x367f7b){for(let _0x503138=0x0;_0x503138<_0x100a55;_0x503138++){_0x3aa1c5[_0x503138]+=_0x49fe99[_0x3c0099(0x247,0x21b)][_0x503138]/_0x367f7b[_0x530b68(0x287,0x235)];}}let _0x47120b=0x0,_0x12b3f0=-0x1;for(let _0x339e34=0x0;_0x339e34<_0x367f7b[_0x530b68(0x287,0x2cb)];_0x339e34++){const _0xc96a20=cosineSimilarity(_0x3aa1c5,_0x367f7b[_0x339e34][_0x530b68(0x29b,0x29a)]);_0xc96a20>_0x12b3f0&&(_0x12b3f0=_0xc96a20,_0x47120b=_0x339e34);}_0x53df0c=_0x367f7b[_0x47120b]['content'][_0x530b68(0x317,0x2f6)](0x0,0x1f4);}}else{if('HoOuL'!==_0x3c0099(0x248,0x27a)){const _0x2e9cce=[..._0xcdc82f][_0x3c0099(0x2bb,0x270)]((_0x4533f3,_0x4d4752)=>_0x4d4752[_0x530b68(0x2bc,0x26d)]['length']-_0x4533f3[_0x530b68(0x2bc,0x279)][_0x530b68(0x287,0x238)]);_0x53df0c=_0x2e9cce[0x0][_0x530b68(0x2bc,0x2bc)][_0x3c0099(0x28a,0x297)](0x0,0x1f4);}else this['db']=_0x5c5061,this[_0x530b68(0x2b0,0x29f)]=_0x57b706;}function _0x530b68(_0x503435,_0x557615){return _0x4475ab(_0x503435- -0x13f,_0x557615);}const _0xec2981=new Map();for(const _0x511690 of _0xcdc82f){for(const _0x463541 of _0x511690[_0x530b68(0x291,0x2da)]){_0x3c0099(0x26b,0x23e)===_0x530b68(0x312,0x308)?_0x3bb145[_0x3c0099(0x1e5,0x208)](_0x530b68(0x2b1,0x2d2)+_0x530b68(0x30a,0x343)+_0x3c0099(0x1d8,0x225)+(_0x523c58 instanceof _0x3f81d6?_0x2d2713[_0x3c0099(0x297,0x247)]:_0x39e911(_0x16fc60))):_0xec2981['set'](_0x463541,(_0xec2981[_0x3c0099(0x21e,0x26d)](_0x463541)??0x0)+0x1);}}const _0x4ced13=Array[_0x3c0099(0x260,0x252)](_0xec2981[_0x530b68(0x31c,0x301)]())[_0x3c0099(0x21d,0x26f)](([,_0x3f243f])=>_0x3f243f>=0x2)[_0x3c0099(0x272,0x261)](([_0x46fb89])=>_0x46fb89);return{'clusterId':randomUUID(),'sourceMemories':_0xcdc82f,'category':_0x3ba0fd,'confidence':_0x2d4c09,'pattern':_0x53df0c,'tags':[..._0x4ced13,_0x3c0099(0x229,0x244),_0x3c0099(0x21a,0x216)+'ed']};}async[_0x4475ab(0x441,0x3f2)+_0x4475ab(0x437,0x470)](_0x3c6b73){function _0x34c6c0(_0x4a2c92,_0x5da9ed){return _0x4475ab(_0x4a2c92- -0x581,_0x5da9ed);}function _0x5361fe(_0x49a8f3,_0x5f440d){return _0x4475ab(_0x5f440d- -0x160,_0x49a8f3);}try{const {createLLMClient:_0x2eef4f}=await import('../llm/ind'+_0x5361fe(0x293,0x264)),_0x3ef510=_0x2eef4f(this[_0x34c6c0(-0x192,-0x15d)][_0x5361fe(0x286,0x25f)]),_0x2914c5=[_0x34c6c0(-0x12a,-0xdb)+_0x5361fe(0x251,0x29a)+_0x5361fe(0x2a1,0x2ab)+'ories\x20repr'+_0x5361fe(0x29c,0x2b9)+_0x5361fe(0x325,0x2ef)+'ll/pattern'+'.',_0x5361fe(0x34a,0x2fe)+_0x5361fe(0x2b8,0x2f2)+'\x22valid\x22:\x20t'+_0x34c6c0(-0x1b8,-0x1c3)+'\x20\x22confiden'+_0x34c6c0(-0x1b7,-0x18f)+_0x5361fe(0x2b8,0x2df),'',_0x5361fe(0x2bd,0x2d2)+_0x3c6b73[_0x5361fe(0x217,0x260)],'Pattern:\x20'+_0x3c6b73[_0x34c6c0(-0x158,-0x1a0)],'Source\x20cou'+_0x34c6c0(-0x18f,-0x16d)+_0x3c6b73[_0x34c6c0(-0x19a,-0x16e)+'ries'][_0x5361fe(0x2a3,0x266)],'',_0x5361fe(0x278,0x27f)+_0x34c6c0(-0x12d,-0x119),..._0x3c6b73[_0x34c6c0(-0x19a,-0x188)+'ries'][_0x34c6c0(-0x12b,-0x133)](0x0,0x3)[_0x34c6c0(-0x161,-0x12b)]((_0x102c10,_0x34a1d0)=>_0x34a1d0+0x1+'.\x20'+_0x102c10[_0x5361fe(0x24e,0x29b)][_0x34c6c0(-0x12b,-0x155)](0x0,0xc8))][_0x34c6c0(-0x18a,-0x197)]('\x0a'),_0x31349b=await _0x3ef510[_0x5361fe(0x2f8,0x2c6)](_0x2914c5),_0x56940f=JSON[_0x5361fe(0x2fb,0x2e6)](_0x31349b);return _0x56940f['valid']===!![]&&(_0x56940f[_0x34c6c0(-0x181,-0x135)]??0x0)>=(this[_0x34c6c0(-0x192,-0x1ab)][_0x34c6c0(-0x1ab,-0x1a1)+'rsion']?.[_0x34c6c0(-0x174,-0x13f)+_0x5361fe(0x2a1,0x278)]??0.7);}catch(_0x43e517){const _0x253b02=_0x43e517 instanceof Error?_0x43e517[_0x5361fe(0x295,0x2a6)]:String(_0x43e517);if(_0x253b02[_0x34c6c0(-0x14d,-0x129)](_0x34c6c0(-0x18b,-0x188))||_0x253b02[_0x34c6c0(-0x14d,-0x18e)](_0x34c6c0(-0x160,-0x136)+'ED')||_0x253b02[_0x5361fe(0x2fb,0x2d4)](_0x5361fe(0x25e,0x28c)+'ed'))return![];return![];}}async[_0x4475ab(0x41a,0x40e)+_0x1674ff(0xf3,0xd8)](_0x38a62c,_0x458176){function _0x57026a(_0xa06f5d,_0x44b95c){return _0x4475ab(_0x44b95c- -0x2b,_0xa06f5d);}const _0x1b6dde=new Date()[_0x57026a(0x3ba,0x3bf)+'g'](),_0x592899=new Date(Date[_0x118367(0x1af,0x1eb)]()+(this[_0x57026a(0x3c8,0x3c4)]['skillConve'+_0x118367(0x1b0,0x1b3)]?.[_0x118367(0x1aa,0x1d0)+_0x57026a(0x3fa,0x3ae)]??0x5a)*0x18*0x3c*0x3c*0x3e8)[_0x118367(0x182,0x1b7)+'g'](),_0x4745d9=this[_0x57026a(0x3d1,0x3bb)+_0x118367(0x1c9,0x1b2)](_0x38a62c);let _0x8edc2e=null;if(_0x458176)try{_0x8edc2e=await _0x458176[_0x118367(0x15a,0x163)+_0x118367(0x160,0x18f)]({'content':_0x38a62c[_0x57026a(0x421,0x3fe)],'tags':_0x38a62c[_0x118367(0x168,0x1a1)][_0x118367(0x1c6,0x1b4)](_0x4ef17c=>!_0x4ef17c[_0x118367(0x155,0x14c)]('meta:')&&_0x4ef17c!==_0x57026a(0x3c8,0x3d8)&&_0x4ef17c!=='crystalliz'+'ed'),'category':_0x38a62c[_0x118367(0x158,0x151)]});}catch{}const _0x1731e9={'sourceMemoryIds':_0x38a62c['sourceMemo'+_0x118367(0x17d,0x152)][_0x118367(0x1b8,0x1c6)](_0x365421=>_0x365421['id']),'crystallizedAt':_0x1b6dde,'confidence':_0x38a62c[_0x57026a(0x41f,0x3d5)],'reviewDueAt':_0x592899,'activationCount':0x0,..._0x8edc2e&&{'taxonomyDomain':_0x8edc2e[_0x118367(0x1a1,0x1d6)],'taxonomySkillId':_0x8edc2e[_0x118367(0x199,0x1e4)]??undefined,'taxonomyNature':_0x8edc2e[_0x57026a(0x386,0x3d3)]??undefined,'taxonomyStability':_0x8edc2e[_0x118367(0x1bf,0x1b3)]??undefined,'taxonomyConfidence':_0x8edc2e['confidence']}},_0x3d5e5c=_0x118367(0x19f,0x188)+Buffer[_0x118367(0x1a9,0x15e)](JSON[_0x118367(0x1f9,0x1a8)](_0x1731e9))['toString'](_0x57026a(0x396,0x3ce)),_0x4ae2f9=[];_0x8edc2e&&(_0x4ae2f9[_0x118367(0x15f,0x110)](_0x118367(0x1d8,0x196)+_0x8edc2e['domain']),_0x8edc2e[_0x57026a(0x3e8,0x3d6)]&&_0x4ae2f9[_0x57026a(0x37f,0x39c)](_0x57026a(0x3ef,0x415)+_0x8edc2e[_0x118367(0x199,0x1d3)]),_0x8edc2e[_0x57026a(0x3d0,0x3d3)]&&_0x4ae2f9[_0x118367(0x15f,0x18c)](_0x57026a(0x3f7,0x3e3)+_0x8edc2e[_0x118367(0x196,0x14f)]));function _0x118367(_0x20d179,_0x5c2757){return _0x4475ab(_0x20d179- -0x268,_0x5c2757);}const _0x11637b=this['db'][_0x118367(0x1d3,0x213)+'ry']({'content':_0x4745d9,'category':'skill','tier':_0x118367(0x1bb,0x1f7),'tags':[..._0x38a62c['tags'],..._0x4ae2f9,_0x3d5e5c],'projectPath':_0x38a62c['sourceMemo'+'ries'][0x0]?.[_0x57026a(0x3f7,0x3b7)+'h']}),_0xb8df6a=_0x38a62c[_0x57026a(0x3b5,0x3bc)+'ries'][_0x118367(0x1b8,0x1b2)](_0x7661b6=>_0x7661b6[_0x57026a(0x3f8,0x3af)])['filter'](_0x3faa46=>!!_0x3faa46&&_0x3faa46[_0x57026a(0x35e,0x39b)]>0x0);if(_0xb8df6a[_0x118367(0x15e,0x12d)]>0x0){const _0x4b6192=this['averageEmb'+_0x118367(0x169,0x192)](_0xb8df6a);this['db'][_0x57026a(0x3c3,0x3b2)+_0x118367(0x1e5,0x219)](_0x11637b['id'],_0x4b6192);}return _0x11637b;}[_0x4475ab(0x45a,0x4aa)+'ls'](){const _0x107173=new Date();let _0x4a3553=0x0;function _0x2e2e77(_0x5da01c,_0x73efda){return _0x4475ab(_0x73efda- -0x325,_0x5da01c);}let _0x37fcaa=0x0;function _0x408219(_0x29e165,_0x84749e){return _0x4475ab(_0x29e165-0x8,_0x84749e);}let _0x2b3e3a=0x0,_0x178548=0x0;const _0x241622=this['db'][_0x2e2e77(0x13f,0x138)+'es']({'category':_0x408219(0x40b,0x44f),'limit':0x3e8});for(const _0x1a91af of _0x241622){_0x4a3553++;const _0x2d734f=this['extractMet'+'adata'](_0x1a91af);if(!_0x2d734f)continue;const _0x2889ff=new Date(_0x2d734f['reviewDueA'+'t']);if(_0x107173<_0x2889ff)continue;let _0x34ebe1;try{_0x34ebe1=this['db'][_0x2e2e77(0xf1,0xf6)+_0x408219(0x407,0x441)](_0x1a91af['id']);}catch{_0x34ebe1=null;}if(_0x34ebe1===null){_0x178548++;continue;}if(_0x34ebe1<REAL_USAGE_THRESHOLD)this['db'][_0x408219(0x3d3,0x3c2)+'ry'](_0x1a91af['id'],{'category':_0x408219(0x412,0x465),'tags':[..._0x1a91af[_0x408219(0x3d8,0x3dd)]['filter'](_0x320b68=>_0x320b68!==_0x408219(0x40b,0x3ec)&&_0x320b68!==_0x408219(0x3dd,0x38d)+'ed'&&_0x320b68!=='demoted-fr'+_0x408219(0x442,0x40e)),_0x408219(0x43d,0x429)+'om-skill']}),_0x37fcaa++;else{if(_0x2e2e77(0x13e,0x13d)===_0x2e2e77(0xd3,0x11f))_0x539d8c[_0x408219(0x3cf,0x405)](_0x2e2e77(0x11e,0x113)+_0x2e2e77(0x119,0x124)+_0x408219(0x3ec,0x3c2)+(_0x2e70a8 instanceof _0x108596?_0x2b2302['message']:_0x27c1ce(_0x2207fa)));else{const _0x6f4850=new Date(Date[_0x2e2e77(0x10e,0xf2)]()+(this[_0x408219(0x3f7,0x430)][_0x2e2e77(0xf5,0xb1)+_0x408219(0x420,0x469)]?.[_0x2e2e77(0xc8,0xed)+'eDays']??0x5a)*0x18*0x3c*0x3c*0x3e8)[_0x408219(0x3f2,0x3f4)+'g'](),_0x2dc4df={..._0x2d734f,'reviewDueAt':_0x6f4850,'activationCount':_0x34ebe1,'lastActivatedAt':_0x1a91af[_0x408219(0x3e3,0x40e)+_0x408219(0x461,0x486)]},_0x4fdd37=_0x408219(0x40f,0x413)+Buffer[_0x2e2e77(0x102,0xec)](JSON[_0x2e2e77(0x17f,0x13c)](_0x2dc4df))['toString'](_0x2e2e77(0x108,0xd4)),_0x553a44=_0x1a91af[_0x2e2e77(0xe0,0xab)]['filter'](_0x572871=>!_0x572871[_0x2e2e77(0xdc,0x98)](_0x408219(0x40f,0x439)));_0x553a44['push'](_0x4fdd37),this['db'][_0x2e2e77(0x91,0xa6)+'ry'](_0x1a91af['id'],{'tags':_0x553a44}),_0x2b3e3a++;}}}return{'reviewed':_0x4a3553,'demoted':_0x37fcaa,'renewed':_0x2b3e3a,'unknownUsage':_0x178548};}['computeAve'+_0x1674ff(0x84,0xa6)+_0x1674ff(0xbc,0xb5)](_0x5d18a6){function _0x838a67(_0x2138e1,_0x33b8c5){return _0x4475ab(_0x2138e1- -0x28a,_0x33b8c5);}if(_0x5d18a6['length']<0x2)return 0x1;let _0x3f4a86=0x0;function _0x245c8d(_0x14c959,_0x505b77){return _0x4475ab(_0x505b77- -0x127,_0x14c959);}let _0x4b42f8=0x0;for(let _0x375ccf=0x0;_0x375ccf<_0x5d18a6[_0x838a67(0x13c,0x185)];_0x375ccf++){for(let _0x1a0f7b=_0x375ccf+0x1;_0x1a0f7b<_0x5d18a6[_0x838a67(0x13c,0x14b)];_0x1a0f7b++){if(_0x245c8d(0x289,0x29e)!==_0x245c8d(0x2b2,0x29e)){const _0x43fe1c=[..._0x271ad4][_0x245c8d(0x2b9,0x308)]((_0x5fe651,_0x29a87f)=>new _0x258bb4(_0x29a87f['updatedAt'])[_0x245c8d(0x366,0x31e)]()-new _0x411789(_0x5fe651[_0x245c8d(0x283,0x295)])[_0x245c8d(0x361,0x31e)]()),_0x47ca92=_0x4db994[_0x838a67(0x189,0x1c1)](_0x52feb4*0.7),_0x438731=_0x14824e-_0x47ca92,_0x509c51=_0x43fe1c[_0x245c8d(0x324,0x32f)](0x0,_0x47ca92),_0x15f2bf=new _0x4a9576(_0x509c51[_0x245c8d(0x31b,0x2f9)](_0x135650=>_0x135650['id'])),_0x53c0b3=_0x43fe1c[_0x245c8d(0x34e,0x32f)](_0x47ca92)[_0x838a67(0x1a4,0x1f6)](_0x243fd1=>!_0x15f2bf[_0x838a67(0x1d5,0x224)](_0x243fd1['id'])),_0x1c9627=[];for(let _0x4de777=_0x53c0b3['length']-0x1;_0x4de777>0x0&&_0x1c9627[_0x245c8d(0x2ed,0x29f)]<_0x438731;_0x4de777--){const _0x39ca6e=_0x1463ec[_0x838a67(0x189,0x182)](_0x2793d1[_0x838a67(0x1a6,0x17b)]()*(_0x4de777+0x1));[_0x53c0b3[_0x4de777],_0x53c0b3[_0x39ca6e]]=[_0x53c0b3[_0x39ca6e],_0x53c0b3[_0x4de777]],_0x1c9627[_0x245c8d(0x2a7,0x2a0)](_0x53c0b3[_0x4de777]);}_0x587f91=[..._0x509c51,..._0x1c9627];}else _0x5d18a6[_0x375ccf][_0x838a67(0x150,0x100)]&&_0x5d18a6[_0x1a0f7b][_0x838a67(0x150,0x122)]&&(_0x3f4a86+=cosineSimilarity(_0x5d18a6[_0x375ccf][_0x245c8d(0x28d,0x2b3)],_0x5d18a6[_0x1a0f7b][_0x838a67(0x150,0x11b)]),_0x4b42f8++);}}return _0x4b42f8>0x0?_0x3f4a86/_0x4b42f8:0x0;}['isDuplicat'+_0x4475ab(0x41d,0x458)](_0x1ab176,_0x42350d){const _0x57b953=new Set(_0x1ab176[_0x249086(0x270,0x22b)+'ries']['map'](_0x27f069=>_0x27f069['id']));function _0x3f2f1f(_0xc9f46f,_0x55c303){return _0x1674ff(_0xc9f46f,_0x55c303- -0x174);}for(const _0x4e0cab of _0x42350d){const _0x35a5fc=this[_0x3f2f1f(-0x9b,-0xb5)+_0x249086(0x2d7,0x2c1)](_0x4e0cab);if(!_0x35a5fc)continue;const _0x53b250=new Set(_0x35a5fc[_0x3f2f1f(-0xdf,-0xda)+'ryIds']),_0x451f7f=[..._0x57b953][_0x249086(0x2b7,0x30a)](_0x2ae1e8=>_0x53b250['has'](_0x2ae1e8))['length'],_0x59ece6=_0x451f7f/Math[_0x249086(0x267,0x2a8)](_0x57b953['size'],_0x53b250['size']);if(_0x59ece6>=0.7)return!![];}function _0x249086(_0x493bb3,_0x3a77dc){return _0x1674ff(_0x3a77dc,_0x493bb3-0x1d6);}return![];}[_0x1674ff(0x90,0x99)+_0x1674ff(0x9e,0xe4)](_0x344b41){const _0x5063b6=[];function _0x1a20d4(_0x2d21f9,_0x10c380){return _0x1674ff(_0x10c380,_0x2d21f9- -0x7c);}_0x5063b6[_0xbe1b56(-0x278,-0x24d)](_0x1a20d4(0x79,0x98)+_0x344b41['pattern']),_0x5063b6[_0x1a20d4(-0x2,-0x35)](''),_0x5063b6[_0xbe1b56(-0x24b,-0x24d)](_0xbe1b56(-0x1ab,-0x1e2)+_0x344b41['category']);function _0xbe1b56(_0x25e2f2,_0x5d86cb){return _0x1674ff(_0x25e2f2,_0x5d86cb- -0x2c7);}_0x5063b6[_0x1a20d4(-0x2,-0x8)]('Sources:\x20'+_0x344b41['sourceMemo'+'ries'][_0xbe1b56(-0x288,-0x24e)]+'\x20memories'),_0x5063b6[_0x1a20d4(-0x2,0x5)](_0xbe1b56(-0x276,-0x241)+':\x20'+(_0x344b41[_0xbe1b56(-0x204,-0x214)]*0x64)[_0x1a20d4(-0xb,-0x21)](0x0)+'%');if(_0x344b41[_0xbe1b56(-0x208,-0x22d)+'ries'][_0x1a20d4(-0x3,0x2b)]>0x1){_0x5063b6[_0x1a20d4(-0x2,0x42)](''),_0x5063b6[_0xbe1b56(-0x25b,-0x24d)](_0x1a20d4(0x8c,0xc9)+_0x1a20d4(0x4b,0x2b));for(const _0x4012f2 of _0x344b41[_0x1a20d4(0x1e,0x49)+'ries'][_0xbe1b56(-0x1b6,-0x1be)](0x0,0x3)){const _0x22f810=_0x4012f2['content'][_0x1a20d4(0x3b,0x5b)]('\x0a')[0x0][_0x1a20d4(0x8d,0xb0)](0x0,0x96);_0x5063b6[_0x1a20d4(-0x2,0x50)]('-\x20'+_0x22f810);}}return _0x5063b6[_0x1a20d4(0x2e,0x5f)]('\x0a');}[_0x1674ff(0xd1,0xbf)+'adata'](_0x5cf3c5){const _0x4b21ff=_0x5cf3c5['tags'][_0x1b82b2(-0x71,-0x52)](_0x26f1bd=>_0x26f1bd['startsWith'](_0x1b82b2(-0x46,-0x23)));if(!_0x4b21ff)return null;function _0x1449e4(_0x457158,_0xfe7ead){return _0x1674ff(_0xfe7ead,_0x457158-0x2f8);}function _0x1b82b2(_0x2fd15a,_0x4b7957){return _0x1674ff(_0x4b7957,_0x2fd15a- -0x100);}try{const _0x46cfd0=Buffer['from'](_0x4b21ff['slice'](0x5),'base64')[_0x1449e4(0x3e7,0x41b)]('utf-8');return JSON[_0x1449e4(0x3f1,0x40b)](_0x46cfd0);}catch{return null;}}[_0x4475ab(0x3f1,0x3bc)+_0x4475ab(0x3d1,0x414)](_0xa6e743){if(_0xa6e743[_0x5786cf(0x39e,0x3aa)]===0x0)return[];function _0x42a2f8(_0x55a303,_0x1a3ae5){return _0x4475ab(_0x1a3ae5- -0x1e2,_0x55a303);}const _0x4525d0=_0xa6e743[0x0][_0x42a2f8(0x1e6,0x1e4)],_0x38627f=new Array(_0x4525d0)[_0x5786cf(0x434,0x47c)](0x0);for(const _0x130fc9 of _0xa6e743){for(let _0x513704=0x0;_0x513704<_0x4525d0;_0x513704++){_0x42a2f8(0x21f,0x23d)===_0x42a2f8(0x1f7,0x23d)?_0x38627f[_0x513704]+=_0x130fc9[_0x513704]:_0x520da9*=1.1;}}for(let _0x33c7c6=0x0;_0x33c7c6<_0x4525d0;_0x33c7c6++){_0x38627f[_0x33c7c6]/=_0xa6e743['length'];}function _0x5786cf(_0x36b935,_0x2c4469){return _0x4475ab(_0x36b935- -0x28,_0x2c4469);}return _0x38627f;}[_0x4475ab(0x3ce,0x3dd)+'Skill'](_0x3d1621){if(!_0x3d1621[_0x299951(0x32f,0x334)]||_0x3d1621['category']==='skill')return _0x299951(0x3ad,0x3be)===_0x41f342(-0x1ab,-0x180)?{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]}:{'absorbed':![]};const _0x1276bf=this['db'][_0x41f342(-0xd8,-0x10b)+'es']({'limit':0xc8})[_0x299951(0x383,0x39b)](_0x4a90e0=>_0x4a90e0[_0x299951(0x315,0x356)]===_0x299951(0x358,0x39f));function _0x299951(_0x1dafcb,_0x2a7ca9){return _0x1674ff(_0x2a7ca9,_0x1dafcb-0x2a2);}for(const _0x49e9bb of _0x1276bf){if(!_0x49e9bb[_0x299951(0x32f,0x352)])continue;const _0xc37633=cosineSimilarity(_0x3d1621[_0x41f342(-0x150,-0x18e)],_0x49e9bb['embedding']);if(_0xc37633<0.8)continue;const _0x2616d6=this['extractMet'+'adata'](_0x49e9bb);if(!_0x2616d6)continue;if(_0x2616d6[_0x41f342(-0x146,-0x181)+'ryIds'][_0x299951(0x389,0x3b1)](_0x3d1621['id']))return{'absorbed':![]};_0x2616d6[_0x41f342(-0x1d1,-0x181)+_0x299951(0x398,0x3e1)][_0x41f342(-0x1cb,-0x1a1)](_0x3d1621['id']),_0x2616d6['activation'+_0x41f342(-0xfb,-0x12a)]=(_0x2616d6['activation'+_0x299951(0x393,0x3d7)]||0x0)+0x1,_0x2616d6[_0x41f342(-0x16a,-0x185)+_0x299951(0x321,0x371)]=new Date()[_0x299951(0x33f,0x32e)+'g']();const _0x27c32c=_0x41f342(-0x1ad,-0x161)+Buffer[_0x299951(0x366,0x374)](JSON['stringify'](_0x2616d6))[_0x299951(0x391,0x37e)](_0x41f342(-0x129,-0x16f)),_0x15754e=_0x49e9bb[_0x299951(0x325,0x358)][_0x299951(0x383,0x343)](_0x537447=>!_0x537447[_0x299951(0x312,0x307)](_0x41f342(-0x149,-0x161))),_0x14afd6='-\x20'+_0x3d1621[_0x299951(0x350,0x387)][_0x299951(0x359,0x399)]('\x0a')[0x0][_0x41f342(-0x161,-0x112)](0x0,0x96);let _0x2c6afe=_0x49e9bb[_0x41f342(-0x151,-0x16d)];const _0x430847=_0x2c6afe['split']('\x0a')[_0x41f342(-0x100,-0x13a)](_0x414977=>_0x414977[_0x299951(0x312,0x324)]('-\x20'));return _0x430847[_0x299951(0x31b,0x2f5)]<0x5&&(_0x2c6afe=_0x2c6afe[_0x41f342(-0xee,-0x108)]()+'\x0a'+_0x14afd6),this['db'][_0x299951(0x320,0x30d)+'ry'](_0x49e9bb['id'],{'content':_0x2c6afe,'tags':[..._0x15754e,_0x27c32c]}),{'absorbed':!![],'skillId':_0x49e9bb['id']};}function _0x41f342(_0x297dbb,_0x976e68){return _0x1674ff(_0x297dbb,_0x976e68- -0x21b);}return{'absorbed':![]};}}
|
|
1
|
+
(function(_0x1b6015,_0x10d55e){function _0x4b7626(_0x939feb,_0x50ab3b){return _0x17c9(_0x50ab3b- -0x32,_0x939feb);}const _0x4b7bfe=_0x1b6015();function _0x11d0da(_0x234258,_0x2ee056){return _0x17c9(_0x234258-0x349,_0x2ee056);}while(!![]){try{const _0x5f524d=-parseInt(_0x4b7626(0x14e,0x15e))/0x1+parseInt(_0x4b7626(0x130,0x114))/0x2*(-parseInt(_0x11d0da(0x4f8,0x4aa))/0x3)+-parseInt(_0x11d0da(0x4dc,0x518))/0x4+-parseInt(_0x4b7626(0x167,0x175))/0x5+parseInt(_0x11d0da(0x4a5,0x4e9))/0x6*(-parseInt(_0x11d0da(0x46f,0x4ad))/0x7)+parseInt(_0x11d0da(0x496,0x45a))/0x8+parseInt(_0x4b7626(0xf3,0x134))/0x9*(parseInt(_0x11d0da(0x4c9,0x485))/0xa);if(_0x5f524d===_0x10d55e)break;else _0x4b7bfe['push'](_0x4b7bfe['shift']());}catch(_0x23518e){_0x4b7bfe['push'](_0x4b7bfe['shift']());}}}(_0x1a8c,0xb7a2d));function _0x1df160(_0x1e53f5,_0x2ba172){return _0x17c9(_0x2ba172- -0xb2,_0x1e53f5);}function _0x238444(_0x3efcc3,_0x36976e){return _0x17c9(_0x36976e- -0x24f,_0x3efcc3);}function _0x1a8c(){const _0x1ce96b=['CgfYC2u','BNq6ia','Dg9tDhjPBMC','zMLSDgvY','Aw9U','ChvZAa','CMfUzg9T','zxzHBhvHDgu','q291BNq','y29TChv0zuf2zq','DMfSAwq','y29UzMLKzw5Jzq','y2X1C3rLCK1LBq','AgfZ','zgvTB3rLzc1MCG','Aw1PBgfYig1LBq','yNvPBgrtA2LSBa','Dg9ju09tDhjPBG','nJbIDfrxveC','BM93','BgfZDefJy2vZCW','runptK5sruzvuW','BgXT','yxzLCMfNzuvTyG','BwLU','y2XHC3nPzNLdBW','thvqEfe','AwyGDgHLC2uGCW','qwjxzha','y291BNroB25jBG','zurHExm','zMXVB3i','igzHAwXLzdOG','tNHItNu','mti3mZm4mKnWDuPjDq','zNjVBq','DxbKyxrLzef0','odCZnJmYu2X3wKvf','CMv2Awv3u2TPBa','zMv0y2GGzMfPBa','BgvHCM5PBMC','Bwv0ytO','B3jPzxm6','BwLUuMvWzxrPDa','ywn0AxzHDgLVBG','C2LTAwXHCML0Eq','Dgf4B25VBxK6','teXnihzHBgLKyq','zvnRAwXS','C29YDa','C09wCKq','qwL4q3m','qxndB3C','Bwf4u2TPBgXZ','Aw5JBhvKzxm','Dxn0zxi','zMLUza','nZC1mdmWshb0te52','y29TChjLC3nuBW','zdOG','BwLUq29UzMLKzq','CMv2Awv3q3LJBa','Aw5N','y29UDgvUDa','ywrK','mJy1oezhsw5Rza','rgjlt0i','C2TPBgW','qNrpvNm','Aw9UCW','CfLuuNO','B3jPzxmGCMvWCG','y3j5C3rHBgXPEG','u2fTCgXLig1LBq','BgWVCgf0DgvYBG','B3vvCfu','q29UDgvUDa','u291CMnLCZOG','BwvZC2fNzq','BMTly1m','rxzHBhvHDgLVBG','EwHjEwq','C2vZC2LVBKLK','q2f0zwDVCNK6ia','DMfSAwrHDgvxAq','DvH2ywK','mJfgAvL1su8','z2v0vgLTzq','DgLTzw91Da','zxzHBhvHDgvdBa','C2TPBgXFAwq','z2v0','D0jtzMi','DgfNCW','Ee9Vs3K','zwrKAw5NCW','AM9PBG','CMfNzvnPBwLSyq','AxneDxbSAwnHDa','BNm6','CNnPB24','BMf0DxjL','C2f2zuvTyMvKza','u2TPBgW','DgvKqxq','ugf0DgvYBJOG','zvfpyMG','ywrHDge','B3jPzxm','DhjPBuvUza','C3rHCNrZv2L0Aa','C2v0','zw1IzwrKAw5N','DgLVBIbMywLSzq','C3rYAw5NAwz5','zg9TywLU','Cgf0DgvYBG','DgGGsLnptJOGEW','mtK0oerMA1jetW','CMLLCW','C2TPBgXdB252zq','u291CMnLignVDq','y2f0zwDVCNK','w1nRAwXSxsa','y29TCgXLDgu','mtqWnZa3mKvwDfPwCq','ChjVAMvJDfbHDa','CNLjzhm','C2vTyw50Awm','C2XPy2u','yxLnsLm','AMvJDfvZywDL','BwfW','CMv2Awv3rhvLqq','y29UzMLN','s2v5ihbHDhrLCG','zxH0CMfJDe1LDa','CNvLl2zHBhnLla','Dg9gAxHLza','BgLZDe1LBw9YAq','mJC0mtG3ng1qEKzSva','zMLSBa','lI4VBgXTl2LUza','zw5HyMXLza','ig1LBw9YAwvZ','CML0Eq','C2L6zq','yMfZzty0','C3bSAxq','B20TC2TPBgW','nJy4ntq3ownot1H1vq','DxnHyMXLihnRAq','BgvUz3rO','DxbKyxrLtwvTBW','C291CMnLtwvTBW','DgHmte0','DwPeDfO','DxrMltG'];_0x1a8c=function(){return _0x1ce96b;};return _0x1a8c();}import{randomUUID}from'node:crypto';import{cosineSimilarity}from'../extraction/similarity.js';function _0x17c9(_0x5c84de,_0x1634e0){_0x5c84de=_0x5c84de-0x115;const _0x1a8cb2=_0x1a8c();let _0x17c99e=_0x1a8cb2[_0x5c84de];if(_0x17c9['GfgRLp']===undefined){var _0x143fdc=function(_0x1cb87a){const _0x5ecb28='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x589ccd='',_0x1b37d0='';for(let _0x2af26a=0x0,_0x43d246,_0x5deaf6,_0xe5d277=0x0;_0x5deaf6=_0x1cb87a['charAt'](_0xe5d277++);~_0x5deaf6&&(_0x43d246=_0x2af26a%0x4?_0x43d246*0x40+_0x5deaf6:_0x5deaf6,_0x2af26a++%0x4)?_0x589ccd+=String['fromCharCode'](0xff&_0x43d246>>(-0x2*_0x2af26a&0x6)):0x0){_0x5deaf6=_0x5ecb28['indexOf'](_0x5deaf6);}for(let _0x387836=0x0,_0x4737cc=_0x589ccd['length'];_0x387836<_0x4737cc;_0x387836++){_0x1b37d0+='%'+('00'+_0x589ccd['charCodeAt'](_0x387836)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1b37d0);};_0x17c9['GuEKXs']=_0x143fdc,_0x17c9['ZuaGVD']={},_0x17c9['GfgRLp']=!![];}const _0x2bbec1=_0x1a8cb2[0x0],_0xec042c=_0x5c84de+_0x2bbec1,_0x5ba124=_0x17c9['ZuaGVD'][_0xec042c];return!_0x5ba124?(_0x17c99e=_0x17c9['GuEKXs'](_0x17c99e),_0x17c9['ZuaGVD'][_0xec042c]=_0x17c99e):_0x17c99e=_0x5ba124,_0x17c99e;}const REAL_USAGE_THRESHOLD=0x2;export class SkillEvaluator{['db'];[_0x238444(-0x133,-0xf9)];constructor(_0x13ae83,_0x3301c7){this['db']=_0x13ae83;function _0x564dc5(_0x216ab8,_0x16ac5a){return _0x238444(_0x16ac5a,_0x216ab8-0x2c8);}this[_0x564dc5(0x1cf,0x189)]=_0x3301c7;}async[_0x1df160(0x84,0xc3)](_0x30a334,_0x26492d){const _0x35cf21=this[_0x4c1f27(-0x23,0x18)][_0x4c1f27(-0x1e,0xa)+_0x4c1f27(0x1a,-0xa)];if(!_0x35cf21?.[_0x4c1f27(0x19,0x21)])return{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]};const _0x2c1372=[],_0x4c4578=[];let _0x568d14=0x0,_0x888fc9=0x0;function _0x4c1f27(_0x3311cc,_0x30f4ca){return _0x238444(_0x3311cc,_0x30f4ca-0x111);}function _0x342a43(_0x10f6df,_0x479874){return _0x238444(_0x479874,_0x10f6df- -0x80);}try{const _0x58613b=this['db'][_0x4c1f27(-0x2f,0x1d)+'es']({'limit':0x1f4,'projectPath':_0x30a334}),_0x3e15df=_0x58613b[_0x4c1f27(0x1f,0x33)](_0x19fe53=>_0x19fe53[_0x342a43(-0x185,-0x19f)]!==_0x4c1f27(0x2c,0x73)&&_0x19fe53[_0x4c1f27(0x45,0x2)]&&_0x19fe53[_0x342a43(-0x18f,-0x187)]['length']>0x0);if(_0x3e15df['length']<_0x35cf21[_0x4c1f27(0x9a,0x5b)+'ions'])return{'candidates':_0x4c4578,'created':_0x568d14,'skipped':_0x3e15df['length'],'errors':_0x2c1372};const _0x1a952b=0x12c;let _0x4a84e9;if(_0x3e15df[_0x342a43(-0x167,-0x149)]>_0x1a952b){const _0xecb886=[..._0x3e15df][_0x342a43(-0x130,-0x17e)]((_0x2f1f51,_0x4b824e)=>new Date(_0x4b824e[_0x342a43(-0x13d,-0x138)])[_0x342a43(-0x1a8,-0x1c7)]()-new Date(_0x2f1f51[_0x4c1f27(0x6a,0x54)])[_0x342a43(-0x1a8,-0x1be)]()),_0x56e9d9=Math['floor'](_0x1a952b*0.7),_0x4a2255=_0x1a952b-_0x56e9d9,_0x68a732=_0xecb886[_0x4c1f27(-0x34,0x13)](0x0,_0x56e9d9),_0x23e2a5=new Set(_0x68a732[_0x4c1f27(-0x1e,0x16)](_0x21000a=>_0x21000a['id'])),_0x3179c8=_0xecb886[_0x342a43(-0x17e,-0x158)](_0x56e9d9)['filter'](_0x452066=>!_0x23e2a5[_0x4c1f27(-0x3,0x3d)](_0x452066['id'])),_0x18acc1=[];for(let _0x328399=_0x3179c8[_0x4c1f27(-0x21,0x2a)]-0x1;_0x328399>0x0&&_0x18acc1[_0x4c1f27(0x1,0x2a)]<_0x4a2255;_0x328399--){const _0x4d40c4=Math[_0x4c1f27(0x26,0x4f)](Math[_0x4c1f27(0x6,0x36)]()*(_0x328399+0x1));[_0x3179c8[_0x328399],_0x3179c8[_0x4d40c4]]=[_0x3179c8[_0x4d40c4],_0x3179c8[_0x328399]],_0x18acc1[_0x342a43(-0x15c,-0x118)](_0x3179c8[_0x328399]);}_0x4a84e9=[..._0x68a732,..._0x18acc1];}else _0x4a84e9=_0x3e15df;const _0xec5760=this[_0x342a43(-0x155,-0x124)+'ories'](_0x4a84e9,_0x35cf21[_0x4c1f27(0x12,0x5d)+'Threshold']),_0x60c3a7=_0x58613b[_0x342a43(-0x15e,-0x11b)](_0x141d0b=>_0x141d0b[_0x342a43(-0x185,-0x155)]==='skill');let _0x33fc22=_0x35cf21[_0x342a43(-0x12c,-0x10a)]-_0x60c3a7[_0x342a43(-0x167,-0x13b)];for(const _0x565e20 of _0xec5760){if(_0x33fc22<=0x0)break;const _0x7b8420=this['evaluateCl'+_0x4c1f27(0x37,0x67)](_0x565e20,_0x35cf21[_0x342a43(-0x136,-0x128)+_0x342a43(-0x1ba,-0x201)],_0x35cf21[_0x342a43(-0x125,-0xe2)+'nce']);if(!_0x7b8420){_0x888fc9+=_0x565e20[_0x342a43(-0x167,-0x130)];continue;}const _0x32237c=this[_0x4c1f27(-0x4c,-0xc)+_0x4c1f27(0x4f,0x60)](_0x7b8420,_0x60c3a7);if(_0x32237c){_0x888fc9+=_0x565e20[_0x342a43(-0x167,-0x152)];continue;}_0x4c4578['push'](_0x7b8420);if(_0x35cf21['llmValidat'+_0x342a43(-0x15d,-0x176)]&&this[_0x342a43(-0x179,-0x1c8)][_0x4c1f27(-0x2,0x46)]?.['enabled'])try{const _0x1258bd=await this[_0x342a43(-0x1ab,-0x17a)+_0x4c1f27(0x1,0x2d)](_0x7b8420);if(!_0x1258bd){_0x888fc9+=_0x565e20[_0x4c1f27(-0x4,0x2a)];continue;}}catch(_0x79b290){_0x2c1372[_0x4c1f27(-0x10,0x35)](_0x4c1f27(0x5c,0x5f)+'tion\x20faile'+_0x4c1f27(0x28,0x6b)+(_0x79b290 instanceof Error?_0x79b290[_0x4c1f27(-0x1e,-0x20)]:String(_0x79b290)));}try{await this['compressTo'+_0x4c1f27(-0x2e,-0x7)](_0x7b8420,_0x26492d),_0x568d14++,_0x33fc22--;}catch(_0x1b9e10){_0x2c1372[_0x342a43(-0x15c,-0x18c)]('Skill\x20crea'+_0x4c1f27(-0xe,0x3)+_0x342a43(-0x126,-0x119)+(_0x1b9e10 instanceof Error?_0x1b9e10[_0x342a43(-0x1b1,-0x1e9)]:String(_0x1b9e10)));}}}catch(_0x3fcd39){_0x2c1372[_0x4c1f27(0x10,0x35)](_0x4c1f27(-0x34,-0x1e)+_0x4c1f27(0x4d,0x50)+(_0x3fcd39 instanceof Error?_0x3fcd39[_0x342a43(-0x1b1,-0x19a)]:String(_0x3fcd39)));}return{'candidates':_0x4c4578,'created':_0x568d14,'skipped':_0x888fc9,'errors':_0x2c1372};}[_0x1df160(0xb6,0xc8)+_0x1df160(0x53,0x8a)](_0x3f7dd5,_0x2d953b){function _0x90ee91(_0x4f9c19,_0x16930f){return _0x238444(_0x4f9c19,_0x16930f-0x50b);}const _0x1e0986=new Set(),_0x176356=[];function _0x4b1ccd(_0xf0edc0,_0x669ce9){return _0x238444(_0x669ce9,_0xf0edc0-0x26b);}for(const _0x217031 of _0x3f7dd5){if(_0x1e0986[_0x4b1ccd(0x197,0x166)](_0x217031['id']))continue;if(!_0x217031[_0x90ee91(0x434,0x3fc)])continue;const _0x26a386=[_0x217031];_0x1e0986[_0x4b1ccd(0x1ca,0x1e6)](_0x217031['id']);for(const _0x1d78c1 of _0x3f7dd5){if(_0x1e0986['has'](_0x1d78c1['id']))continue;if(!_0x1d78c1['embedding'])continue;const _0x13e11b=cosineSimilarity(_0x217031[_0x4b1ccd(0x15c,0x1a8)],_0x1d78c1[_0x4b1ccd(0x15c,0x14c)]);_0x13e11b>=_0x2d953b&&(_0x26a386['push'](_0x1d78c1),_0x1e0986[_0x4b1ccd(0x1ca,0x20f)](_0x1d78c1['id']));}_0x176356['push'](_0x26a386);}return _0x176356;}[_0x1df160(0x8d,0x77)+'uster'](_0x22bc96,_0x3920be,_0x4911b2){const _0x1c4060=0.5;if(_0x22bc96[_0xd85b54(0x532,0x509)]<_0x3920be)return null;function _0xd85b54(_0x2425b3,_0x9877bb){return _0x238444(_0x9877bb,_0x2425b3-0x619);}const _0x19b183=this[_0x3e4c71(0x2d2,0x2c6)+_0xd85b54(0x4fb,0x532)+_0xd85b54(0x52b,0x4f4)](_0x22bc96);function _0x3e4c71(_0x2668dc,_0x5446a3){return _0x238444(_0x2668dc,_0x5446a3-0x39e);}if(_0x19b183<0.75)return null;let _0x19d1b2=_0x19b183;const _0x438a0a=new Set(_0x22bc96['map'](_0x307995=>_0x307995[_0x3e4c71(0x27a,0x271)])['filter'](Boolean));_0x438a0a[_0xd85b54(0x52c,0x4fc)]>=0x2&&(_0x19d1b2*=1.2);const _0x316883=new Map();for(const _0x471581 of _0x22bc96){if(_0x3e4c71(0x26e,0x27d)!==_0x3e4c71(0x2c4,0x301))_0x316883[_0x3e4c71(0x287,0x28e)](_0x471581['category'],(_0x316883[_0xd85b54(0x4f5,0x4e5)](_0x471581['category'])??0x0)+0x1);else return{'absorbed':![]};}let _0x43df86=_0x22bc96[0x0][_0xd85b54(0x514,0x4d9)],_0x16aead=0x0;for(const [_0x321be2,_0x1b7788]of _0x316883){_0xd85b54(0x504,0x54f)!==_0x3e4c71(0x288,0x289)?_0x269ca1=this['db'][_0x3e4c71(0x2b5,0x2da)+_0x3e4c71(0x2a9,0x2a2)](_0x1973fd['id']):_0x1b7788>_0x16aead&&(_0x16aead=_0x1b7788,_0x43df86=_0x321be2);}_0x16aead/_0x22bc96[_0x3e4c71(0x272,0x2b7)]>=0.5&&(_0x19d1b2*=1.1);_0x19d1b2=Math[_0x3e4c71(0x2ec,0x2d5)](_0x19d1b2,0x1);if(_0x19d1b2<_0x1c4060)return null;let _0x3a3523;const _0x2ca8b6=_0x22bc96['filter'](_0x338145=>_0x338145[_0xd85b54(0x50a,0x4d6)]&&_0x338145['embedding'][_0x3e4c71(0x291,0x2b7)]>0x0);if(_0x2ca8b6['length']>=0x2){const _0x4d327e=_0x2ca8b6[0x0][_0x3e4c71(0x265,0x28f)][_0xd85b54(0x532,0x566)],_0x49d051=new Array(_0x4d327e)['fill'](0x0);for(const _0x5fb16c of _0x2ca8b6){if(_0xd85b54(0x536,0x57b)===_0x3e4c71(0x2b7,0x2d9))_0x352981>_0x498400&&(_0x3329db=_0x139d9b,_0x3a06fc=_0x2aa74c);else for(let _0x4392c9=0x0;_0x4392c9<_0x4d327e;_0x4392c9++){_0x49d051[_0x4392c9]+=_0x5fb16c[_0xd85b54(0x50a,0x532)][_0x4392c9]/_0x2ca8b6[_0xd85b54(0x532,0x569)];}}let _0x119882=0x0,_0x213f9c=-0x1;for(let _0x218b57=0x0;_0x218b57<_0x2ca8b6[_0xd85b54(0x532,0x566)];_0x218b57++){const _0x562087=cosineSimilarity(_0x49d051,_0x2ca8b6[_0x218b57][_0xd85b54(0x50a,0x4df)]);_0x562087>_0x213f9c&&(_0x213f9c=_0x562087,_0x119882=_0x218b57);}_0x3a3523=_0x2ca8b6[_0x119882]['content'][_0xd85b54(0x51b,0x51f)](0x0,0x1f4);}else{const _0x1baee6=[..._0x22bc96][_0xd85b54(0x569,0x53e)]((_0x19cc60,_0x1e8fab)=>_0x1e8fab[_0xd85b54(0x577,0x58e)][_0xd85b54(0x532,0x502)]-_0x19cc60['content'][_0x3e4c71(0x2f0,0x2b7)]);_0x3a3523=_0x1baee6[0x0]['content']['slice'](0x0,0x1f4);}const _0x3b505d=new Map();for(const _0x316349 of _0x22bc96){for(const _0x250194 of _0x316349[_0xd85b54(0x4f7,0x4da)]){_0x3b505d[_0x3e4c71(0x250,0x28e)](_0x250194,(_0x3b505d['get'](_0x250194)??0x0)+0x1);}}const _0x544deb=Array[_0x3e4c71(0x2a2,0x2e0)](_0x3b505d['entries']())[_0xd85b54(0x53b,0x547)](([,_0x1aa1ce])=>_0x1aa1ce>=0x2)[_0x3e4c71(0x2c5,0x2a3)](([_0xa7a365])=>_0xa7a365);return{'clusterId':randomUUID(),'sourceMemories':_0x22bc96,'category':_0x43df86,'confidence':_0x19d1b2,'pattern':_0x3a3523,'tags':[..._0x544deb,_0xd85b54(0x57b,0x57e),_0xd85b54(0x4e2,0x4a3)+'ed']};}async[_0x238444(-0x134,-0x12b)+_0x1df160(0xd4,0xb9)](_0x59e6f7){function _0x2bd52b(_0x41fca3,_0x46e890){return _0x1df160(_0x41fca3,_0x46e890- -0x24c);}function _0x4c7c76(_0x8bde36,_0x195291){return _0x1df160(_0x8bde36,_0x195291-0x1e3);}try{const {createLLMClient:_0x4922f5}=await import(_0x4c7c76(0x26c,0x28f)+'ex.js'),_0x5b2872=_0x4922f5(this[_0x4c7c76(0x292,0x287)][_0x4c7c76(0x2e4,0x2b5)]),_0x322bf1=['Determine\x20'+_0x4c7c76(0x278,0x2ba)+_0x4c7c76(0x29f,0x2ae)+_0x2bd52b(-0x1e3,-0x1e7)+'esent\x20a\x20re'+_0x2bd52b(-0x199,-0x197)+_0x2bd52b(-0x1f2,-0x1e4)+'.','Respond\x20wi'+_0x2bd52b(-0x1e1,-0x1b9)+'\x22valid\x22:\x20t'+_0x4c7c76(0x295,0x28a)+'\x20\x22confiden'+'ce\x22:\x200.0-1'+'.0}','','Category:\x20'+_0x59e6f7[_0x2bd52b(-0x170,-0x1b4)],_0x4c7c76(0x2b8,0x26a)+_0x59e6f7[_0x2bd52b(-0x184,-0x1ba)],_0x4c7c76(0x26b,0x27a)+_0x4c7c76(0x2b2,0x2a0)+_0x59e6f7['sourceMemo'+'ries']['length'],'',_0x2bd52b(-0x1f1,-0x1e5)+_0x2bd52b(-0x12c,-0x166),..._0x59e6f7[_0x2bd52b(-0x1d2,-0x194)+_0x2bd52b(-0x172,-0x1b7)]['slice'](0x0,0x3)[_0x4c7c76(0x27d,0x285)]((_0xb798d8,_0x1cd619)=>_0x1cd619+0x1+'.\x20'+_0xb798d8[_0x2bd52b(-0x15d,-0x151)][_0x2bd52b(-0x1b7,-0x1ad)](0x0,0xc8))][_0x2bd52b(-0x1df,-0x1ce)]('\x0a'),_0xf12b29=await _0x5b2872[_0x4c7c76(0x2bd,0x27d)](_0x322bf1),_0x4821a1=JSON[_0x4c7c76(0x2ec,0x29f)](_0xf12b29);return _0x4821a1[_0x4c7c76(0x2f2,0x2a9)]===!![]&&(_0x4821a1[_0x4c7c76(0x2b0,0x2aa)]??0x0)>=(this[_0x4c7c76(0x26a,0x287)][_0x4c7c76(0x28f,0x279)+_0x2bd52b(-0x1fc,-0x1ca)]?.[_0x4c7c76(0x29d,0x2db)+'nce']??0.7);}catch(_0x2939e9){if('nkKcS'===_0x2bd52b(-0x1a5,-0x1df)){const _0x1f3dcb=_0x2939e9 instanceof Error?_0x2939e9[_0x4c7c76(0x220,0x24f)]:String(_0x2939e9);if(_0x1f3dcb[_0x4c7c76(0x2f2,0x2d5)](_0x4c7c76(0x2a0,0x259))||_0x1f3dcb[_0x2bd52b(-0x177,-0x15a)](_0x2bd52b(-0x141,-0x17b)+'ED')||_0x1f3dcb[_0x2bd52b(-0x172,-0x15a)](_0x4c7c76(0x313,0x2c6)+'ed'))return![];return![];}else _0x58910a+=_0x324ca8(_0x5759b1[_0x5cb589]['embedding'],_0x8082c6[_0x4bd7ef][_0x4c7c76(0x247,0x271)]),_0x125835++;}}async[_0x238444(-0xf1,-0xa7)+_0x1df160(0x97,0x85)](_0x28c083,_0x2f9a18){const _0x391b93=new Date()[_0x2b54b0(-0x26f,-0x252)+'g']();function _0x3385f4(_0x5028fc,_0x5b1900){return _0x238444(_0x5028fc,_0x5b1900- -0x105);}const _0x2650de=new Date(Date['now']()+(this[_0x3385f4(-0x1c4,-0x1fe)][_0x2b54b0(-0x28d,-0x289)+'rsion']?.['reviewCycl'+_0x3385f4(-0x1a6,-0x1c8)]??0x5a)*0x18*0x3c*0x3c*0x3e8)[_0x2b54b0(-0x225,-0x252)+'g'](),_0x1e07f5=this[_0x3385f4(-0x1de,-0x1d6)+_0x3385f4(-0x200,-0x238)](_0x28c083);let _0x40a3a1=null;if(_0x2f9a18)try{_0x40a3a1=await _0x2f9a18[_0x2b54b0(-0x236,-0x24a)+'ntent']({'content':_0x28c083[_0x2b54b0(-0x28a,-0x28d)],'tags':_0x28c083[_0x3385f4(-0x1fc,-0x227)][_0x2b54b0(-0x227,-0x260)](_0x122712=>!_0x122712[_0x2b54b0(-0x2cd,-0x293)](_0x2b54b0(-0x237,-0x23a))&&_0x122712!==_0x3385f4(-0x1be,-0x1a3)&&_0x122712!==_0x2b54b0(-0x2f3,-0x2b9)+'ed'),'category':_0x28c083[_0x2b54b0(-0x239,-0x287)]});}catch{}const _0x3c6cdd={'sourceMemoryIds':_0x28c083[_0x3385f4(-0x1f0,-0x1ea)+_0x3385f4(-0x242,-0x20d)]['map'](_0x1f9188=>_0x1f9188['id']),'crystallizedAt':_0x391b93,'confidence':_0x28c083[_0x2b54b0(-0x294,-0x258)],'reviewDueAt':_0x2650de,'activationCount':0x0,..._0x40a3a1&&{'taxonomyDomain':_0x40a3a1[_0x2b54b0(-0x279,-0x28e)],'taxonomySkillId':_0x40a3a1['skill_id']??undefined,'taxonomyNature':_0x40a3a1[_0x3385f4(-0x1e0,-0x21f)]??undefined,'taxonomyStability':_0x40a3a1['stability']??undefined,'taxonomyConfidence':_0x40a3a1[_0x2b54b0(-0x271,-0x258)]}},_0x1af0f1='meta:'+Buffer[_0x2b54b0(-0x26f,-0x240)](JSON[_0x2b54b0(-0x2cf,-0x28f)](_0x3c6cdd))[_0x3385f4(-0x1a7,-0x1e4)](_0x3385f4(-0x209,-0x1f1)),_0x1339f2=[];if(_0x40a3a1){_0x1339f2[_0x3385f4(-0x192,-0x1e1)](_0x3385f4(-0x1ea,-0x1b8)+_0x40a3a1[_0x2b54b0(-0x29d,-0x28e)]);if(_0x40a3a1[_0x2b54b0(-0x2c1,-0x2a7)]){if('NAVlm'===_0x2b54b0(-0x2e8,-0x2ac))return null;else _0x1339f2['push'](_0x2b54b0(-0x20e,-0x235)+_0x40a3a1[_0x2b54b0(-0x2f5,-0x2a7)]);}_0x40a3a1[_0x3385f4(-0x1e5,-0x21f)]&&_0x1339f2['push']('nature:'+_0x40a3a1[_0x3385f4(-0x259,-0x21f)]);}function _0x2b54b0(_0x18daaf,_0xbb316b){return _0x238444(_0x18daaf,_0xbb316b- -0x182);}const _0x1e06b1=this['db']['createMemo'+'ry']({'content':_0x1e07f5,'category':_0x2b54b0(-0x23c,-0x220),'tier':_0x3385f4(-0x22f,-0x204),'tags':[..._0x28c083['tags'],..._0x1339f2,_0x1af0f1],'projectPath':_0x28c083[_0x2b54b0(-0x28c,-0x267)+'ries'][0x0]?.[_0x2b54b0(-0x2cc,-0x283)+'h']}),_0x486bb9=_0x28c083[_0x3385f4(-0x213,-0x1ea)+_0x2b54b0(-0x2a2,-0x28a)][_0x2b54b0(-0x29f,-0x27d)](_0xf22f9a=>_0xf22f9a[_0x2b54b0(-0x27d,-0x291)])['filter'](_0x16b88f=>!!_0x16b88f&&_0x16b88f['length']>0x0);if(_0x486bb9[_0x2b54b0(-0x2b0,-0x269)]>0x0){const _0x77ee36=this[_0x2b54b0(-0x27e,-0x24c)+_0x2b54b0(-0x2cb,-0x2a2)](_0x486bb9);this['db'][_0x3385f4(-0x265,-0x21e)+_0x2b54b0(-0x268,-0x225)](_0x1e06b1['id'],_0x77ee36);}return _0x1e06b1;}[_0x238444(-0xb4,-0xbb)+'ls'](){const _0xabd620=new Date();let _0x1b4589=0x0,_0x3c68a0=0x0;function _0x747a21(_0x312e95,_0x2c3529){return _0x1df160(_0x312e95,_0x2c3529-0x1e5);}function _0x4be14b(_0x2f1b16,_0x123c6e){return _0x1df160(_0x123c6e,_0x2f1b16-0x3a5);}let _0x25cfe6=0x0,_0x29bad6=0x0;const _0x5d4c78=this['db'][_0x747a21(0x270,0x28e)+'es']({'category':_0x747a21(0x2e2,0x2e4),'limit':0x3e8});for(const _0x55c13b of _0x5d4c78){_0x1b4589++;const _0x435670=this['extractMet'+_0x747a21(0x234,0x26e)](_0x55c13b);if(!_0x435670)continue;const _0x163802=new Date(_0x435670[_0x4be14b(0x448,0x417)+'t']);if(_0xabd620<_0x163802)continue;let _0x36dc6d;try{_0x36dc6d=this['db'][_0x747a21(0x2b3,0x2be)+'jectUsage'](_0x55c13b['id']);}catch{if(_0x747a21(0x2b9,0x2e3)!==_0x747a21(0x26b,0x285))_0x36dc6d=null;else{const _0x159c44=_0xd2a115(_0x4197ef,_0x40636e[_0x51643f][_0x747a21(0x2bf,0x273)]);_0x159c44>_0x5f3709&&(_0x49545f=_0x159c44,_0x179e70=_0x5ebd1c);}}if(_0x36dc6d===null){_0x29bad6++;continue;}if(_0x36dc6d<REAL_USAGE_THRESHOLD)this['db'][_0x747a21(0x2d9,0x29c)+'ry'](_0x55c13b['id'],{'category':_0x4be14b(0x489,0x441),'tags':[..._0x55c13b[_0x4be14b(0x420,0x440)][_0x747a21(0x26d,0x2a4)](_0x687a5c=>_0x687a5c!==_0x747a21(0x2b6,0x2e4)&&_0x687a5c!==_0x4be14b(0x40b,0x458)+'ed'&&_0x687a5c!==_0x747a21(0x2e4,0x2af)+_0x747a21(0x261,0x298)),'demoted-fr'+'om-skill']}),_0x3c68a0++;else{const _0x469f6b=new Date(Date[_0x4be14b(0x474,0x442)]()+(this[_0x747a21(0x27f,0x289)]['skillConve'+_0x4be14b(0x427,0x45f)]?.[_0x4be14b(0x49e,0x47f)+_0x4be14b(0x47f,0x4b6)]??0x5a)*0x18*0x3c*0x3c*0x3e8)['toISOStrin'+'g'](),_0x1aac01={..._0x435670,'reviewDueAt':_0x469f6b,'activationCount':_0x36dc6d,'lastActivatedAt':_0x55c13b[_0x4be14b(0x475,0x4a2)+'edAt']},_0x301902=_0x747a21(0x2c8,0x2ca)+Buffer[_0x747a21(0x292,0x2c4)](JSON[_0x747a21(0x272,0x275)](_0x1aac01))[_0x747a21(0x2d8,0x2a3)](_0x4be14b(0x456,0x48a)),_0x163632=_0x55c13b[_0x4be14b(0x420,0x40a)][_0x747a21(0x27c,0x2a4)](_0x4e3491=>!_0x4e3491['startsWith'](_0x747a21(0x285,0x2ca)));_0x163632[_0x4be14b(0x466,0x448)](_0x301902),this['db'][_0x747a21(0x252,0x29c)+'ry'](_0x55c13b['id'],{'tags':_0x163632}),_0x25cfe6++;}}return{'reviewed':_0x1b4589,'demoted':_0x3c68a0,'renewed':_0x25cfe6,'unknownUsage':_0x29bad6};}[_0x1df160(0xca,0xc5)+_0x238444(-0x13f,-0x11e)+_0x238444(-0x117,-0xee)](_0x287df8){if(_0x287df8[_0x2d9e4f(-0x20d,-0x1e8)]<0x2)return 0x1;let _0x4b37b1=0x0;function _0x21ce0c(_0x15335f,_0x155068){return _0x238444(_0x15335f,_0x155068-0x53f);}let _0x5151a5=0x0;function _0x2d9e4f(_0x2fb879,_0xfd27fb){return _0x238444(_0x2fb879,_0xfd27fb- -0x101);}for(let _0x1300ef=0x0;_0x1300ef<_0x287df8[_0x21ce0c(0x48b,0x458)];_0x1300ef++){for(let _0x20537e=_0x1300ef+0x1;_0x20537e<_0x287df8['length'];_0x20537e++){if(_0x2d9e4f(-0x1d2,-0x1c8)===_0x2d9e4f(-0x24d,-0x224)){const _0x197e30=new _0x449e21(_0x368fde[_0x2d9e4f(-0x1bd,-0x1cf)]()+(this[_0x2d9e4f(-0x20f,-0x1fa)][_0x21ce0c(0x484,0x438)+_0x2d9e4f(-0x21d,-0x21c)]?.[_0x2d9e4f(-0x1ef,-0x1a5)+'eDays']??0x5a)*0x18*0x3c*0x3c*0x3e8)[_0x2d9e4f(-0x1b6,-0x1d1)+'g'](),_0x4fc94f={..._0x378bf8,'reviewDueAt':_0x197e30,'activationCount':_0x366993,'lastActivatedAt':_0x4a63f8['lastAccess'+'edAt']},_0x134152=_0x21ce0c(0x4d5,0x487)+_0x503006[_0x21ce0c(0x4af,0x481)](_0xa5ef03[_0x21ce0c(0x3e6,0x432)](_0x4fc94f))[_0x2d9e4f(-0x1fa,-0x1e0)](_0x2d9e4f(-0x221,-0x1ed)),_0x227ef0=_0x14de80['tags'][_0x21ce0c(0x418,0x461)](_0x590c4a=>!_0x590c4a[_0x2d9e4f(-0x1e4,-0x212)]('meta:'));_0x227ef0[_0x2d9e4f(-0x1ee,-0x1dd)](_0x134152),this['db'][_0x21ce0c(0x441,0x459)+'ry'](_0x5a1c3e['id'],{'tags':_0x227ef0}),_0x239541++;}else _0x287df8[_0x1300ef]['embedding']&&_0x287df8[_0x20537e][_0x21ce0c(0x421,0x430)]&&(_0x4b37b1+=cosineSimilarity(_0x287df8[_0x1300ef][_0x2d9e4f(-0x202,-0x210)],_0x287df8[_0x20537e][_0x2d9e4f(-0x20a,-0x210)]),_0x5151a5++);}}return _0x5151a5>0x0?_0x4b37b1/_0x5151a5:0x0;}[_0x1df160(0xcd,0x80)+_0x1df160(0xfc,0xec)](_0x5ad285,_0x497f3c){function _0x478cb0(_0x2bd916,_0x582d86){return _0x238444(_0x582d86,_0x2bd916- -0x146);}const _0x5df508=new Set(_0x5ad285[_0x478cb0(-0x22b,-0x273)+_0x2e87ca(0x2fa,0x2e5)][_0x478cb0(-0x241,-0x275)](_0x5acb63=>_0x5acb63['id']));function _0x2e87ca(_0x1ecb1c,_0x757891){return _0x238444(_0x1ecb1c,_0x757891-0x3ed);}for(const _0xfa1a5 of _0x497f3c){const _0xaabad3=this[_0x478cb0(-0x23d,-0x20a)+_0x2e87ca(0x31f,0x2d9)](_0xfa1a5);if(!_0xaabad3)continue;const _0xca36ea=new Set(_0xaabad3[_0x2e87ca(0x346,0x308)+_0x478cb0(-0x246,-0x224)]),_0x4e38cc=[..._0x5df508][_0x2e87ca(0x358,0x30f)](_0x4a6d75=>_0xca36ea[_0x478cb0(-0x21a,-0x240)](_0x4a6d75))[_0x478cb0(-0x22d,-0x1fa)],_0x28945f=_0x4e38cc/Math['max'](_0x5df508[_0x478cb0(-0x233,-0x1f5)],_0xca36ea[_0x478cb0(-0x233,-0x27a)]);if(_0x28945f>=0.7)return!![];}return![];}[_0x238444(-0xbb,-0xd1)+_0x238444(-0x124,-0x133)](_0x37a985){function _0x1d5013(_0xe98a9e,_0x46618b){return _0x1df160(_0xe98a9e,_0x46618b- -0x64);}const _0x313ce9=[];function _0x3e6cc7(_0x3551dd,_0x1f0d17){return _0x1df160(_0x3551dd,_0x1f0d17-0x44d);}_0x313ce9['push'](_0x1d5013(0x83,0x35)+_0x37a985[_0x3e6cc7(0x4fe,0x4df)]),_0x313ce9[_0x1d5013(0x6c,0x5d)](''),_0x313ce9[_0x1d5013(0x68,0x5d)](_0x3e6cc7(0x483,0x4be)+_0x37a985[_0x3e6cc7(0x49f,0x4e5)]),_0x313ce9[_0x3e6cc7(0x4cf,0x50e)](_0x3e6cc7(0x4d2,0x4b8)+_0x37a985[_0x3e6cc7(0x4d0,0x505)+_0x1d5013(0x24,0x31)]['length']+_0x1d5013(0x84,0x4a)),_0x313ce9[_0x1d5013(0x74,0x5d)]('Confidence'+':\x20'+(_0x37a985[_0x1d5013(0xa5,0x63)]*0x64)[_0x1d5013(0x93,0x44)](0x0)+'%');if(_0x37a985['sourceMemo'+_0x1d5013(0x49,0x31)][_0x3e6cc7(0x4e7,0x503)]>0x1){if(_0x3e6cc7(0x561,0x53c)!==_0x3e6cc7(0x58c,0x53d)){_0x313ce9[_0x1d5013(0xa5,0x5d)](''),_0x313ce9[_0x1d5013(0x5b,0x5d)](_0x1d5013(0x85,0x41)+_0x3e6cc7(0x4cc,0x4ce));for(const _0x3f9a2e of _0x37a985['sourceMemo'+'ries'][_0x1d5013(0x23,0x3b)](0x0,0x3)){const _0x17fc43=_0x3f9a2e[_0x1d5013(0x62,0x97)][_0x1d5013(0x4d,0x4e)]('\x0a')[0x0][_0x3e6cc7(0x500,0x4ec)](0x0,0x96);_0x313ce9[_0x3e6cc7(0x522,0x50e)]('-\x20'+_0x17fc43);}}else{if(_0xd7eaf3[_0x3e6cc7(0x4f4,0x503)]<0x2)return 0x1;let _0x1e5835=0x0,_0x221a10=0x0;for(let _0x1470f1=0x0;_0x1470f1<_0x4de137[_0x1d5013(0x3f,0x52)];_0x1470f1++){for(let _0x11662c=_0x1470f1+0x1;_0x11662c<_0x3fa518[_0x1d5013(0x61,0x52)];_0x11662c++){_0x1083ee[_0x1470f1]['embedding']&&_0x3f44bc[_0x11662c][_0x1d5013(0x3e,0x2a)]&&(_0x1e5835+=_0x1a52a9(_0x1f2d3d[_0x1470f1][_0x1d5013(0x61,0x2a)],_0x2283fb[_0x11662c][_0x1d5013(0x39,0x2a)]),_0x221a10++);}}return _0x221a10>0x0?_0x1e5835/_0x221a10:0x0;}}return _0x313ce9[_0x1d5013(-0x32,0x1a)]('\x0a');}['extractMet'+_0x238444(-0x110,-0x114)](_0x7a225c){const _0x3a0ed3=_0x7a225c[_0x2756f6(-0x130,-0x101)][_0x24d010(0xdd,0xb1)](_0x7b1a27=>_0x7b1a27[_0x2756f6(-0x12f,-0xf0)]('meta:'));function _0x24d010(_0x3e553,_0x3bf1c2){return _0x238444(_0x3e553,_0x3bf1c2-0x15a);}if(!_0x3a0ed3)return null;function _0x2756f6(_0x586672,_0x1472b3){return _0x238444(_0x586672,_0x1472b3-0x21);}try{const _0x467f47=Buffer[_0x24d010(0xb3,0x9c)](_0x3a0ed3[_0x2756f6(-0xfd,-0xdd)](0x5),'base64')[_0x2756f6(-0xb5,-0xbe)](_0x2756f6(-0x77,-0xc1));return JSON[_0x24d010(0x78,0x79)](_0x467f47);}catch{return null;}}[_0x1df160(0xac,0xd3)+_0x1df160(0xa4,0x7d)](_0x1b6765){if(_0x1b6765[_0x12bab5(-0x118,-0x122)]===0x0)return[];const _0x380866=_0x1b6765[0x0][_0x12bab5(-0x10e,-0x122)];function _0x4535f6(_0xb53ffe,_0x336818){return _0x1df160(_0x336818,_0xb53ffe- -0x16d);}const _0x4b20ce=new Array(_0x380866)[_0x12bab5(-0x153,-0x12d)](0x0);function _0x12bab5(_0x5317ff,_0x4f4c96){return _0x1df160(_0x5317ff,_0x4f4c96- -0x1d8);}for(const _0x5d784b of _0x1b6765){if(_0x4535f6(-0x7f,-0x71)===_0x4535f6(-0x109,-0x10c))_0x11d2c5[_0x12bab5(-0xc8,-0x117)](_0x20489a),_0x39c268[_0x4535f6(-0x71,-0x3b)](_0x259ee3['id']);else for(let _0x57181c=0x0;_0x57181c<_0x380866;_0x57181c++){_0x4b20ce[_0x57181c]+=_0x5d784b[_0x57181c];}}for(let _0x127552=0x0;_0x127552<_0x380866;_0x127552++){_0x4b20ce[_0x127552]/=_0x1b6765[_0x4535f6(-0xb7,-0xe3)];}return _0x4b20ce;}['absorbInto'+_0x1df160(0x6c,0x85)](_0x55a067){function _0x2231e7(_0x63b871,_0x337a55){return _0x238444(_0x337a55,_0x63b871-0x2b0);}if(!_0x55a067[_0x2231e7(0x1a1,0x1b6)]||_0x55a067[_0x92a8d6(-0xe9,-0x109)]===_0x92a8d6(-0x82,-0x8e)){if(_0x2231e7(0x17c,0x1b2)!==_0x2231e7(0x17c,0x199))for(const _0x3e540c of _0x1fe1d3[_0x2231e7(0x18e,0x152)]){_0x511915[_0x2231e7(0x1a0,0x17b)](_0x3e540c,(_0x5ee085['get'](_0x3e540c)??0x0)+0x1);}else return{'absorbed':![]};}const _0x3b93ab=this['db'][_0x92a8d6(-0xd8,-0xe8)+'es']({'limit':0xc8})[_0x2231e7(0x1d2,0x205)](_0x4136e3=>_0x4136e3[_0x92a8d6(-0xe9,-0x10a)]==='skill');for(const _0x4ccfad of _0x3b93ab){if(!_0x4ccfad[_0x92a8d6(-0xf3,-0x135)])continue;const _0x1fa29f=cosineSimilarity(_0x55a067['embedding'],_0x4ccfad[_0x2231e7(0x1a1,0x1ae)]);if(_0x1fa29f<0.8)continue;const _0x44c6b4=this['extractMet'+_0x2231e7(0x19c,0x1d2)](_0x4ccfad);if(!_0x44c6b4)continue;if(_0x44c6b4[_0x2231e7(0x1cb,0x1a7)+_0x92a8d6(-0xe4,-0xaa)]['includes'](_0x55a067['id']))return{'absorbed':![]};_0x44c6b4[_0x92a8d6(-0xc9,-0x8a)+_0x2231e7(0x1b0,0x188)]['push'](_0x55a067['id']),_0x44c6b4['activation'+'Count']=(_0x44c6b4[_0x92a8d6(-0x99,-0xa5)+_0x2231e7(0x1d7,0x1b3)]||0x0)+0x1,_0x44c6b4['lastActiva'+_0x2231e7(0x199,0x165)]=new Date()[_0x2231e7(0x1e0,0x19b)+'g']();const _0x103870=_0x2231e7(0x1f8,0x1f4)+Buffer['from'](JSON[_0x2231e7(0x1a3,0x19b)](_0x44c6b4))[_0x2231e7(0x1d1,0x1f8)](_0x2231e7(0x1c4,0x1fa)),_0x1d1403=_0x4ccfad[_0x92a8d6(-0x106,-0xcc)]['filter'](_0x135d21=>!_0x135d21['startsWith'](_0x92a8d6(-0x9c,-0x7d))),_0xe12156='-\x20'+_0x55a067[_0x2231e7(0x20e,0x255)][_0x2231e7(0x1c5,0x1c6)]('\x0a')[0x0][_0x92a8d6(-0xe2,-0xf9)](0x0,0x96);let _0x2bc3f9=_0x4ccfad[_0x2231e7(0x20e,0x1e2)];const _0x561929=_0x2bc3f9[_0x92a8d6(-0xcf,-0xff)]('\x0a')['filter'](_0x4c7d77=>_0x4c7d77[_0x2231e7(0x19f,0x16a)]('-\x20'));return _0x561929[_0x92a8d6(-0xcb,-0xa4)]<0x5&&(_0x92a8d6(-0xa4,-0xb2)!==_0x92a8d6(-0x112,-0x15a)?_0x2bc3f9=_0x2bc3f9[_0x92a8d6(-0xf6,-0x13a)]()+'\x0a'+_0xe12156:(this['db']['updateMemo'+'ry'](_0x3ef5f9['id'],{'category':_0x2231e7(0x1f7,0x1ea),'tags':[..._0x5ba14a[_0x92a8d6(-0x106,-0x12a)][_0x92a8d6(-0xc2,-0x9a)](_0x2287f8=>_0x2287f8!==_0x92a8d6(-0x82,-0x3c)&&_0x2287f8!=='crystalliz'+'ed'&&_0x2287f8!==_0x2231e7(0x1dd,0x1d7)+_0x2231e7(0x1c6,0x19a)),_0x2231e7(0x1dd,0x194)+_0x2231e7(0x1c6,0x1fb)]}),_0x4372a7++)),this['db'][_0x92a8d6(-0xca,-0xed)+'ry'](_0x4ccfad['id'],{'content':_0x2bc3f9,'tags':[..._0x1d1403,_0x103870]}),{'absorbed':!![],'skillId':_0x4ccfad['id']};}function _0x92a8d6(_0x24c8ab,_0x31c732){return _0x238444(_0x31c732,_0x24c8ab-0x1c);}return{'absorbed':![]};}}
|
package/dist/skill/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x389792,_0x3ec983){var _0x39f480=_0x389792();function _0x1c1826(_0x1f4ced,_0x21a2aa){return _0x558b(_0x21a2aa-0x42,_0x1f4ced);}function _0x17f9f0(_0x14956c,_0xe8351a){return _0x558b(_0xe8351a-0x36a,_0x14956c);}while(!![]){try{var _0x406c0c=parseInt(_0x17f9f0(0x3df,0x3e1))/0x1+-parseInt(_0x1c1826(0xbc,0xb8))/0x2*(parseInt(_0x1c1826(0xb8,0xb6))/0x3)+parseInt(_0x1c1826(0xbf,0xbe))/0x4+parseInt(_0x17f9f0(0x3e7,0x3e7))/0x5+parseInt(_0x17f9f0(0x3e3,0x3df))/0x6*(parseInt(_0x17f9f0(0x3e5,0x3e3))/0x7)+parseInt(_0x1c1826(0xb8,0xbc))/0x8+parseInt(_0x17f9f0(0x3e0,0x3e5))/0x9*(-parseInt(_0x1c1826(0xba,0xba))/0xa);if(_0x406c0c===_0x3ec983)break;else _0x39f480['push'](_0x39f480['shift']());}catch(_0x15e60b){_0x39f480['push'](_0x39f480['shift']());}}}(_0x1829,0xf0196));function _0x558b(_0x316f0b,_0x3eeff1){_0x316f0b=_0x316f0b-0x74;var _0x1829f2=_0x1829();var _0x558b55=_0x1829f2[_0x316f0b];if(_0x558b['iFBxCu']===undefined){var _0x2ebcc3=function(_0x12b9e0){var _0x5c1ab7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5d9d0a='',_0x378e15='';for(var _0x27d0b3=0x0,_0x3a6c33,_0x3f3b7a,_0x38b779=0x0;_0x3f3b7a=_0x12b9e0['charAt'](_0x38b779++);~_0x3f3b7a&&(_0x3a6c33=_0x27d0b3%0x4?_0x3a6c33*0x40+_0x3f3b7a:_0x3f3b7a,_0x27d0b3++%0x4)?_0x5d9d0a+=String['fromCharCode'](0xff&_0x3a6c33>>(-0x2*_0x27d0b3&0x6)):0x0){_0x3f3b7a=_0x5c1ab7['indexOf'](_0x3f3b7a);}for(var _0x5724a6=0x0,_0x2073fa=_0x5d9d0a['length'];_0x5724a6<_0x2073fa;_0x5724a6++){_0x378e15+='%'+('00'+_0x5d9d0a['charCodeAt'](_0x5724a6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x378e15);};_0x558b['PCFnYz']=_0x2ebcc3,_0x558b['tLhNoX']={},_0x558b['iFBxCu']=!![];}var _0x58533b=_0x1829f2[0x0],_0x24d465=_0x316f0b+_0x58533b,_0x5e0063=_0x558b['tLhNoX'][_0x24d465];return!_0x5e0063?(_0x558b55=_0x558b['PCFnYz'](_0x558b55),_0x558b['tLhNoX'][_0x24d465]=_0x558b55):_0x558b55=_0x5e0063,_0x558b55;}function _0x1829(){var _0x534489=['mtG5mdm0mtfpDLjyqxa','mtC3mti2nerXr2rjAW','mZiWnJe0mgndEwHZyW','mtK0mxjhzgrsDq','ndq2oti4q21SBKvy','mtaWngriu2noyq','mZi0nte3EgHWEg1u','mtbIrwfyCgK','mZvwq2DLwee','mtmWmJa5ndr0uNzHqNK'];_0x1829=function(){return _0x534489;};return _0x1829();}export{SkillEvaluator}from'./evaluator.js';
|
package/dist/sync/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5338(){const _0x27b4af=['BK9TBMO','Axq9mq','AwXL','Bw9YAwvZlW','twvTyMvY','mtu3mJm2BNHHDefv','CNnVBMfSAxPHDa','6RcaioYxHUYkTEUlIoUlPa','BxnN','mJK4mhn2vwPYCq','y29UDgvUDa','DxbKyxrLtwvTBW','tufyx1jfvfjjrq','CNLFAwq','Bwf4vg9Rzw5Z','Bw9YAwvZl3nLyq','zw1IBgu','zxzLBNq','ywrKvgvHBu1LBq','yw5ZzMvYl2LTCa','l21LBwjLCNm','ChrPB25lzxK','mtu0B0nIs2Xr','BgfZDf9ZEw5Jzq','7jQu7lkTioYlNoQWHcdSTiJQS7W6ia','7jwu7zI47zMuio2cPoUkLcaZmIa','DgfNCW','y2f0zwDVCMLLCW','sfruuca0mdm','AwnPzw5JAwvZ','C2vHCMnOvgvHBq','y2XLyxjfBMnYEq','C3vJy2vZCW','C2TPBgXFBwvTBW','mJu4odeYmgrQvvnoyG','zxH0oIdSNzhRI7xSL5aGyW','CMvZDwX0','BM9KztPMCW','Aw1WB3j0uhjVzG','BhrH','mJa5mZuYA1jxC0nv','l3jLAw5MB3jJzq','y2XHC3nPzNLdBW','BI9HBMfSExPL','sfruuca0mJi','zw1VCNK','s2v5','DhLWzq','mZiYnJeZnKLUt2vACa','64sK7yQ47jUm7ygSioYyPoULMdOG','rvfPyuK','EuHsrvu','BfPQDhq','B250zxH0lMLKia','mZaXnZu5CxvKAuLb','DgLWyxj0','Aw5JBhvKzuvTyG','B3v0y29Tzq','l3rLyw1ZlW','zf9HDa','ChjVAMvJDf9Wyq','ihWG','C3rHDhvZ','yw5ZzMvYl2HPCW','BNrLBNq','C3rYAw5NAwz5','C2v0','AgfZ','CLjLC3bVBNnL','zLnRyxq','yxbWBgLJyxrPBW','qwjVCNrfCNjVCG','yw5HBhL6zuvTBW','zxH0','mZzdyMD3ExO','w2eYyv0GCMvPBG','y3jLyxrLuMvSyq','l2fWAs92ms9MAq','yMLSAxr5twf0CG','BxpRPBWG64sy7jEi7iQ164Ui64UK','C3rHDhm','yxbWBhLezwX0yq','BgLZDe1LBw9YAq','B2zPy2LLBMn5lW','u1rbvfvt','7zUeioUlPoYlNcdSI5ZRJ4tTLzJSHlJSMPq','ywrKq29UDgv4Da','B3j0','l3bYB21VDgu','DgLLCG','B2zMC2v0','7jQu7lkTioYlPo2mQdOG','mtaW','BwvZC2fNzq','CKHPC3rVCNK','CMLLC0jHDgnO','yNL0zxpSL6ZSLBWG7zwP64Ui','CMLLCW','Eg9UB215l2nSyq','Bg9J','C2v0rw5HyMXLza','ChjVBw90zu1LBq','7jQu7lkTioYGNo2vNdOG7j6G7iUCia','r0vu','z2v0vgvHBvn0yq','Bw9YAwvZl2jHDa','qKftrv9eruXbwq','BwfW','yxbPs2v5','DMvYC2LVBG','l2fWAs92ms90zq','Bw9YAwvZl3rHzW','yxnZzw1IBgvdBW','mte0mdm4og9oq1vSzG','yw5ZzMvYl2v4Ca','AM9PBG','lI4VlI4VCgfJAW','Dg9YEt8','B3j5','zxHPC3rPBMDFzG','DgLVBG','zY9YzwXHDgLVBG','y3jLyxrLtwvTBW','y2f0zwDVCNK','B25fBMfIBgvK','Dg9tDhjPBMC','l2fWAs92ms90CG','AwvUy2LLCW','zhvWBgLJyxrL','y2HLy2TgAwXLra','AwvUy3LfDMvUDa','C2LNBMfS','yujZweq','l21LBw9YAwvZlW','DxbSAwnHDgu','yxbWzw5K','zw5JCNLWDgLVBG','7j247kADioYlPo2mQdOGqvbj','Aw9Us2v5','zgv0ywLS','CMvMzxjLBMnLxW','Cg93','zMLSzw5HBwu','CMvPBMzVCMnLtq','BI9QC29U','yMfZzvvYBa','zMLSzv9Pza','y29UzMLN','BgvUz3rO','BgvZl2nOzwnRlq','Dhj1zq','sfruuca','Bw9YAwvZ','rMvHDhvYzxm','zw1VCNLgzwvKyG','BMfTzq','zY9JB250zxH0CW','C2XPy2u','BgvZl3vWBg9Hza','ANnVBG','Cg9ZDfbYB2zPyW','zxzLBNqVyMf0yW','l21LBw9YAwvZ','AxrLBxm','yMvKzgLUzW','CNLPDuC','DhvYzxm','l2fWAs92ms90yq','qwfHD3G','zxjYB3i','ufvu','C3rHCNrZv2L0Aa','zxriyvi','Dg90ywXFBwvTBW','t3HZr1O','CMnO','z2v0vhjHBNnMzq','Bw9YAwvZl3n0yq','tvjSDeK','BgLZDfrLyw1Z','uKvuuLLbqKXfxW','zgvJCNLWDe1LBq','z2v0u3rHDhm','C2vZC2LVBL9Pza','yw1Z','CMvXDwvZDe11Ba','l2fWAs92ms9Wzq','zw5HyMXLzezLyq','BgLTAxq','zxHWB3j0uhjVzG','CMvXDwvZDa','nZq4ndi0nwzYqLjKwa','C3LUyY9HChbSEq','ywDLlMPZB24','rKLtrey','BgLZDfrLyw1nzq','y3jLyxrLq29UDa','AxnfBMnYExb0Aq','l2fWAs92ms9TyW','DgLTzw91Da','ue9tva','y29UDgv4Da','DgvZDenVBM5LyW','zMfPBgvKigzVCG','AgfUzgXLrxjYBW','mc4WlJa','nNPTD1H6ua','x01t','CNLgAwXLtgLUAW','CY9WB3b1BgfYpW','l2fWAs92ms9Tzq','sfruuca0mdq','Aw9Ul2vTB3rPBW','BM9KztPWyxrO','Bwf0CML4','BgLZDfbYB2zPyW','revmrvrf','l2fWAs92ms9WCG','AxnbCNjHEq'];_0x5338=function(){return _0x27b4af;};return _0x5338();}(function(_0x451aae,_0x34d940){function _0x4afa50(_0x2609df,_0x276a45){return _0xc3ce(_0x2609df- -0x263,_0x276a45);}const _0x267a58=_0x451aae();function _0x526901(_0x1bbc69,_0x54e500){return _0xc3ce(_0x54e500-0x3d,_0x1bbc69);}while(!![]){try{const _0x1e7b26=-parseInt(_0x526901(0x329,0x2e8))/0x1+-parseInt(_0x4afa50(0x34,0x93))/0x2+-parseInt(_0x4afa50(0x5,0x46))/0x3*(parseInt(_0x4afa50(-0x58,-0x74))/0x4)+-parseInt(_0x526901(0x301,0x296))/0x5+parseInt(_0x526901(0x2de,0x2b7))/0x6*(parseInt(_0x4afa50(0x28,-0x9))/0x7)+-parseInt(_0x526901(0x344,0x2e2))/0x8*(parseInt(_0x526901(0x1bc,0x221))/0x9)+-parseInt(_0x4afa50(0x1b,-0x3a))/0xa*(-parseInt(_0x526901(0x322,0x2da))/0xb);if(_0x1e7b26===_0x34d940)break;else _0x267a58['push'](_0x267a58['shift']());}catch(_0x5dd3d2){_0x267a58['push'](_0x267a58['shift']());}}}(_0x5338,0xed56a));import{encryptContent,decryptContent,wrapEncryptedContent,unwrapEncryptedContent}from'./encryption.js';function _0xc3ce(_0x1fa15d,_0x1a912b){_0x1fa15d=_0x1fa15d-0x1d7;const _0x53381b=_0x5338();let _0xc3ce85=_0x53381b[_0x1fa15d];if(_0xc3ce['DRvjpQ']===undefined){var _0x47ea52=function(_0x55906e){const _0x7dd464='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x32fe76='',_0x3f7487='';for(let _0x5d73c5=0x0,_0x21f1d3,_0x37bfe7,_0x31ce00=0x0;_0x37bfe7=_0x55906e['charAt'](_0x31ce00++);~_0x37bfe7&&(_0x21f1d3=_0x5d73c5%0x4?_0x21f1d3*0x40+_0x37bfe7:_0x37bfe7,_0x5d73c5++%0x4)?_0x32fe76+=String['fromCharCode'](0xff&_0x21f1d3>>(-0x2*_0x5d73c5&0x6)):0x0){_0x37bfe7=_0x7dd464['indexOf'](_0x37bfe7);}for(let _0x4b4974=0x0,_0x2f1917=_0x32fe76['length'];_0x4b4974<_0x2f1917;_0x4b4974++){_0x3f7487+='%'+('00'+_0x32fe76['charCodeAt'](_0x4b4974)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3f7487);};_0xc3ce['TiDJLb']=_0x47ea52,_0xc3ce['HHFwRa']={},_0xc3ce['DRvjpQ']=!![];}const _0x262ddb=_0x53381b[0x0],_0x5491db=_0x1fa15d+_0x262ddb,_0x23a375=_0xc3ce['HHFwRa'][_0x5491db];return!_0x23a375?(_0xc3ce85=_0xc3ce['TiDJLb'](_0xc3ce85),_0xc3ce['HHFwRa'][_0x5491db]=_0xc3ce85):_0xc3ce85=_0x23a375,_0xc3ce85;}function _0x20d5ca(_0x5a534b,_0x4a7529){return _0xc3ce(_0x5a534b-0x3a9,_0x4a7529);}function withStatus(_0x5cb188,_0x40220e){function _0x3aa06d(_0x4520be,_0x5b18b6){return _0xc3ce(_0x4520be- -0x24e,_0x5b18b6);}return _0x5cb188[_0x3aa06d(-0x76,-0x8e)]=_0x40220e,_0x5cb188;}export function getErrorStatus(_0x3f21ec){function _0x5c3e7e(_0x2cc768,_0x4e65bb){return _0xc3ce(_0x2cc768- -0x61,_0x4e65bb);}return _0x3f21ec instanceof Error?_0x3f21ec[_0x5c3e7e(0x177,0x147)]:undefined;}function _0x1c409f(_0x2e7c5d,_0x4665ff){return _0xc3ce(_0x2e7c5d- -0x2b7,_0x4665ff);}let _pluginVersion=_0x1c409f(-0x50,-0x79);try{const {readFileSync}=await import('node:fs'),{fileURLToPath}=await import('node:url'),{dirname,join}=await import(_0x20d5ca(0x618,0x60d)),__dirname=dirname(fileURLToPath(import.meta.url)),pkg=JSON['parse'](readFileSync(join(__dirname,_0x1c409f(-0xa9,-0xb1)+_0x20d5ca(0x604,0x5f7)),'utf-8'));_pluginVersion=pkg[_0x1c409f(-0xb0,-0x77)]||_0x1c409f(-0x50,-0x58);}catch{}export class A2AClient{['config'];[_0x1c409f(-0x56,0x5)];['encryption'+_0x1c409f(-0x14,-0x6)]=null;[_0x20d5ca(0x5fe,0x61b)+_0x20d5ca(0x5e9,0x594)]=[];constructor(_0x22fa2b){function _0x1a0717(_0x433916,_0xdf480c){return _0x20d5ca(_0xdf480c- -0x5d,_0x433916);}this[_0x1a0717(0x5aa,0x579)]=_0x22fa2b;function _0x48347e(_0x1b7723,_0x4c607d){return _0x20d5ca(_0x4c607d- -0x349,_0x1b7723);}this[_0x48347e(0x259,0x2c1)]=_0x22fa2b[_0x48347e(0x2cb,0x2c1)]??0xea60;}[_0x20d5ca(0x5a7,0x565)+_0x1c409f(-0x84,-0x8b)](_0x4bcb74){function _0x4665bb(_0x4a04d9,_0x50e5d0){return _0x20d5ca(_0x4a04d9- -0x653,_0x50e5d0);}function _0x19b15f(_0xbdfbb3,_0xb74f6b){return _0x20d5ca(_0xb74f6b- -0x769,_0xbdfbb3);}this[_0x19b15f(-0x117,-0x16b)+_0x19b15f(-0x1e7,-0x180)]=_0x4bcb74;}['setEncrypt'+_0x1c409f(-0x93,-0x4d)](_0x1814be){function _0x511676(_0x23a81e,_0x50396c){return _0x20d5ca(_0x50396c- -0x62c,_0x23a81e);}if(_0x1814be[_0x21a4e0(0x3dd,0x3a4)]!==0x20){if(_0x21a4e0(0x38e,0x36e)!==_0x511676(-0x47,-0xa4))return this[_0x21a4e0(0x407,0x3ff)](_0x21a4e0(0x411,0x3a7),_0x21a4e0(0x40f,0x3ac)+'g/relation'+'s',_0x1da83d);else throw new Error('암호화\x20키는\x2032\x20'+_0x21a4e0(0x3a9,0x3ef)+'다');}function _0x21a4e0(_0x2f1292,_0x2f343d){return _0x20d5ca(_0x2f1292- -0x1fa,_0x2f343d);}this[_0x511676(0x1,-0x61)+_0x21a4e0(0x452,0x48c)]=_0x1814be;}[_0x20d5ca(0x63d,0x654)+_0x1c409f(-0x2d,-0x61)](){function _0x4d3249(_0x25ee78,_0x389508){return _0x1c409f(_0x25ee78-0x5f5,_0x389508);}function _0x4cd998(_0x24d3ba,_0xca1d0f){return _0x1c409f(_0xca1d0f- -0x8a,_0x24d3ba);}this[_0x4cd998(-0xfe,-0x11f)+_0x4cd998(-0x69,-0x9e)]=null;}[_0x1c409f(-0x58,-0x9)+_0x20d5ca(0x5bf,0x5b3)](){function _0x57dd6e(_0x2f9983,_0x2760ee){return _0x1c409f(_0x2760ee-0x411,_0x2f9983);}function _0x505481(_0x531817,_0x3a48ba){return _0x1c409f(_0x3a48ba-0x4d0,_0x531817);}return this[_0x57dd6e(0x31e,0x37c)+_0x505481(0x4cf,0x4bc)]!==null;}async[_0x20d5ca(0x5bd,0x592)+'ry'](_0x434a22){function _0x43cbc0(_0x5a1690,_0x12c039){return _0x20d5ca(_0x5a1690- -0x6b9,_0x12c039);}function _0x1ed2ea(_0x614891,_0xc60958){return _0x20d5ca(_0x614891- -0x655,_0xc60958);}let _0x2787d3=_0x434a22[_0x1ed2ea(-0x2d,0x1a)];if(this[_0x1ed2ea(-0x8a,-0x88)+_0x43cbc0(-0x6d,-0xa9)]){const _0x252c42=encryptContent(_0x434a22['content'],this[_0x1ed2ea(-0x8a,-0x3f)+_0x1ed2ea(-0x9,-0x38)]);_0x2787d3=wrapEncryptedContent(_0x252c42);}const _0x152370=await this['request']('POST',_0x1ed2ea(-0x40,0x20)+_0x1ed2ea(-0x7a,-0x7b),{'content':_0x2787d3,'category':_0x434a22[_0x43cbc0(-0xfb,-0x90)],'tier':_0x434a22[_0x1ed2ea(-0xb9,-0x6a)],'tags':_0x434a22['tags']??[]}),_0x599c38=_0x152370;if(this[_0x1ed2ea(-0x8a,-0x6a)+_0x1ed2ea(-0x9,-0x27)]&&_0x599c38[_0x43cbc0(-0x91,-0x59)]){const _0x26fed7=unwrapEncryptedContent(_0x599c38[_0x1ed2ea(-0x2d,-0x7f)]);_0x26fed7&&(_0x599c38['content']=decryptContent(_0x26fed7,this[_0x1ed2ea(-0x8a,-0x2f)+'Key']));}return _0x599c38;}async['searchMemo'+_0x1c409f(-0xbc,-0x86)](_0x27463a,_0x11a591){function _0x1818f8(_0x4fd6a2,_0x490266){return _0x20d5ca(_0x4fd6a2-0x7,_0x490266);}function _0x91f0bd(_0x29a90f,_0x1a3f77){return _0x20d5ca(_0x29a90f- -0x753,_0x1a3f77);}const _0x1ac93e=await this['request']('POST',_0x91f0bd(-0x13e,-0xe7)+_0x91f0bd(-0x126,-0x118)+_0x1818f8(0x5f9,0x61b),{'query':_0x27463a,'limit':_0x11a591?.[_0x91f0bd(-0x154,-0x15c)]??0xa,'category':_0x11a591?.[_0x1818f8(0x5c5,0x593)]});return _0x1ac93e[_0x1818f8(0x5ed,0x595)]??[];}async[_0x1c409f(-0xcb,-0xb2)+'es'](_0x36232a){function _0x1a6fe6(_0x522b03,_0x208cac){return _0x1c409f(_0x208cac-0x5cc,_0x522b03);}const _0x196266=new URLSearchParams();if(_0x36232a?.[_0x3dc580(-0x44,-0x85)])_0x196266[_0x3dc580(-0xbe,-0x8f)](_0x3dc580(-0x44,-0x3b),_0x36232a[_0x3dc580(-0x44,-0x80)]['toString']());if(_0x36232a?.[_0x1a6fe6(0x4c8,0x509)])_0x196266['set'](_0x3dc580(-0xa6,-0x6f),_0x36232a[_0x1a6fe6(0x537,0x509)]['toString']());if(_0x36232a?.[_0x1a6fe6(0x60c,0x5c2)+'edding'])_0x196266[_0x3dc580(-0xbe,-0x10d)]('include_em'+_0x1a6fe6(0x5af,0x553),_0x3dc580(-0x6a,-0x8d));const _0x4fc911='/api/v1/me'+_0x3dc580(-0x68,-0x34)+(_0x196266['toString']()?'?'+_0x196266[_0x3dc580(-0x83,-0x19)]():''),_0x43c2c8=await this[_0x3dc580(-0x42,0x23)](_0x3dc580(-0x99,-0x3c),_0x4fc911),_0x1c8a39=_0x43c2c8[_0x3dc580(-0x5d,-0x15)]??[];if(this[_0x1a6fe6(0x4ea,0x537)+_0x3dc580(0x9,-0x41)])return _0x3dc580(-0x52,0x11)===_0x1a6fe6(0x58a,0x58a)?![]:_0x1c8a39[_0x3dc580(-0x95,-0x41)](_0x1cac18=>this[_0x1a6fe6(0x511,0x564)+_0x3dc580(-0x8a,-0x78)](_0x1cac18));function _0x3dc580(_0x587837,_0x615d64){return _0x1c409f(_0x587837-0x1d,_0x615d64);}return _0x1c8a39;}[_0x20d5ca(0x5f8,0x64c)+_0x20d5ca(0x5b9,0x619)](_0x2ff415){function _0xdb5692(_0x36b3e1,_0x5026f8){return _0x20d5ca(_0x36b3e1- -0xe6,_0x5026f8);}if(!this[_0xdb5692(0x4e5,0x52a)+_0x499020(-0x62,-0xcf)])return _0x2ff415;const _0x3df68d={..._0x2ff415};function _0x499020(_0x52cba5,_0x83ca1e){return _0x20d5ca(_0x83ca1e- -0x71b,_0x52cba5);}if(_0x3df68d['content']){const _0x12ce8f=unwrapEncryptedContent(_0x3df68d['content']);if(_0x12ce8f){if(_0xdb5692(0x509,0x4fe)!==_0xdb5692(0x509,0x553))return this[_0xdb5692(0x51b,0x571)](_0xdb5692(0x525,0x52d),_0xdb5692(0x517,0x526)+_0x499020(-0xd8,-0xf7)+'ion/emotio'+_0xdb5692(0x563,0x50e),{'message':_0x595034[_0x499020(-0x131,-0x13b)](0x0,0x1f4)});else try{_0x3df68d[_0xdb5692(0x542,0x595)]=decryptContent(_0x12ce8f,this[_0xdb5692(0x4e5,0x4a7)+_0xdb5692(0x566,0x50c)]);}catch{}}}return _0x3df68d;}async[_0x20d5ca(0x629,0x68b)+'ry'](_0x4f5672,_0x1bc4c9){function _0xa28d6b(_0x4607b7,_0x4f88fa){return _0x20d5ca(_0x4607b7- -0x27f,_0x4f88fa);}const _0xfb732b=await this['request'](_0x5a9c8c(-0xf6,-0x159),'/api/v1/me'+_0xa28d6b(0x3a2,0x3e0)+_0x4f5672,_0x1bc4c9);function _0x5a9c8c(_0x438eab,_0x9e79d4){return _0x20d5ca(_0x9e79d4- -0x746,_0x438eab);}return _0xfb732b;}async['deleteMemo'+'ry'](_0xf87995){function _0x575063(_0x3f322d,_0x4be3aa){return _0x1c409f(_0x4be3aa- -0xea,_0x3f322d);}function _0x63351e(_0x1cbbfc,_0x198e38){return _0x1c409f(_0x1cbbfc-0x36b,_0x198e38);}await this[_0x63351e(0x30c,0x2dc)](_0x63351e(0x326,0x2d8),_0x63351e(0x320,0x33e)+_0x63351e(0x32c,0x398)+_0xf87995);}async[_0x1c409f(-0x6a,-0x23)](){function _0x50ce3d(_0x2d1385,_0x3bbf34){return _0x1c409f(_0x3bbf34-0x5dc,_0x2d1385);}const _0x533d84=await this[_0x1c6689(0x15a,0x1c4)](_0x50ce3d(0x501,0x526),_0x50ce3d(0x4d9,0x52d)+_0x1c6689(0x1f8,0x1be));function _0x1c6689(_0x5a6b70,_0x18a4d7){return _0x1c409f(_0x18a4d7-0x223,_0x5a6b70);}if(Array['isArray'](_0x533d84))return _0x533d84;return _0x533d84[_0x50ce3d(0x56e,0x562)]??[];}async[_0x1c409f(-0x5a,-0x8b)+_0x1c409f(-0x85,-0x73)](_0x4110a8,_0x374f5c){const _0x28b82f=new URLSearchParams();function _0x36bb1b(_0x10cfed,_0x3bf9c6){return _0x20d5ca(_0x10cfed- -0x6b4,_0x3bf9c6);}if(_0x374f5c?.[_0x268e0e(-0x64,-0x1a)])_0x28b82f['set'](_0x268e0e(-0x5d,-0x1a),_0x374f5c[_0x36bb1b(-0xb5,-0x103)][_0x268e0e(-0x54,-0x59)]());if(_0x374f5c?.[_0x36bb1b(-0x117,-0xc5)])_0x28b82f['set']('offset',_0x374f5c[_0x36bb1b(-0x117,-0x13d)][_0x36bb1b(-0xf4,-0x91)]());const _0x43eb40=_0x28b82f[_0x268e0e(-0x1d,-0x59)]();function _0x268e0e(_0x30c0e4,_0x5e303d){return _0x20d5ca(_0x5e303d- -0x619,_0x30c0e4);}const _0x23262c=_0x36bb1b(-0x5c,-0x1)+encodeURIComponent(_0x4110a8)+'/memories'+(_0x43eb40?'?'+_0x43eb40:''),_0x56b2c6=await this[_0x268e0e(-0x5f,-0x18)](_0x268e0e(-0x75,-0x6f),_0x23262c);return _0x56b2c6['items']??[];}async[_0x20d5ca(0x630,0x61e)+_0x1c409f(-0xa7,-0x87)](_0x166ab7,_0x16dbca){function _0x298a3c(_0xe4d75d,_0x463381){return _0x20d5ca(_0x463381- -0x11f,_0xe4d75d);}const _0x79976=await this[_0x298a3c(0x505,0x4e2)](_0x2f883f(0x4da,0x4a7),_0x2f883f(0x52c,0x4f4)+encodeURIComponent(_0x166ab7)+_0x298a3c(0x482,0x4c6),_0x16dbca);function _0x2f883f(_0xf5f370,_0x97d9b4){return _0x20d5ca(_0x97d9b4- -0x164,_0xf5f370);}return _0x79976;}async[_0x1c409f(-0x24,-0x53)+'Memories'](_0x1a341a,_0x263a24,_0x4f4471){const _0x4f8ef9=await this['request'](_0x3fa41c(0x3b7,0x3b3),_0x3fa41c(0x404,0x452)+encodeURIComponent(_0x1a341a)+(_0x3e4538(0x56b,0x51b)+'search'),{'query':_0x263a24,'limit':_0x4f4471?.[_0x3fa41c(0x3ab,0x3a6)]??0xa,'category':_0x4f4471?.['category']});function _0x3fa41c(_0x28b108,_0x5d81b0){return _0x20d5ca(_0x28b108- -0x254,_0x5d81b0);}function _0x3e4538(_0x1df49e,_0x4d4cf4){return _0x20d5ca(_0x4d4cf4- -0xad,_0x1df49e);}return _0x4f8ef9[_0x3e4538(0x54a,0x539)]??[];}async['generateDe'+_0x1c409f(-0x1b,0x12)](_0x40779c,_0x6f6a48,_0x2ec6dc){function _0xe7e8d5(_0xe2465d,_0xb9a45c){return _0x20d5ca(_0xb9a45c- -0x4a2,_0xe2465d);}function _0x2d8e86(_0x381076,_0x57c4bf){return _0x20d5ca(_0x57c4bf- -0x268,_0x381076);}return this['request'](_0x2d8e86(0x381,0x3a3),'/teams/'+encodeURIComponent(_0x40779c)+(_0x2d8e86(0x38c,0x360)+'sync/delta'),{'memory_id':_0x6f6a48,'vector_clock':_0x2ec6dc});}async[_0x1c409f(-0xcc,-0x10b)](_0x227673,_0x56c9a3,_0xe7316d){function _0x56e335(_0x4c6c8c,_0x148464){return _0x20d5ca(_0x148464- -0x297,_0x4c6c8c);}function _0x542d08(_0x19c4de,_0x397144){return _0x20d5ca(_0x397144- -0x627,_0x19c4de);}return this[_0x542d08(-0x80,-0x26)](_0x56e335(0x3b8,0x374),'/teams/'+encodeURIComponent(_0x227673)+(_0x56e335(0x2e9,0x331)+_0x542d08(0x45,-0x24)),{'memory_id':_0x56c9a3,'delta':_0xe7316d});}async[_0x20d5ca(0x5bd,0x5e5)+_0x1c409f(-0xbe,-0xcd)](_0x16dab0){function _0x55f8d8(_0x51f6c2,_0xe5fa85){return _0x20d5ca(_0xe5fa85- -0x334,_0x51f6c2);}function _0x14057c(_0x48314a,_0x59da2f){return _0x20d5ca(_0x59da2f- -0x29c,_0x48314a);}const _0x5669fd=await this[_0x55f8d8(0x299,0x2cd)]('POST',_0x14057c(0x312,0x379)+_0x55f8d8(0x255,0x278)+'ch',{'items':_0x16dab0});return _0x5669fd;}async[_0x1c409f(-0x53,-0x79)+_0x20d5ca(0x5bb,0x5b2)](){function _0x26ed24(_0xd9383d,_0x510ab0){return _0x20d5ca(_0x510ab0- -0x6da,_0xd9383d);}function _0x1c1749(_0x464d04,_0x3895b9){return _0x20d5ca(_0x3895b9- -0x38,_0x464d04);}try{return await this[_0x1c1749(0x568,0x5c9)]('GET',_0x1c1749(0x61f,0x5dd)+'mories?lim'+_0x1c1749(0x59a,0x5e7)),!![];}catch{return![];}}async[_0x1c409f(-0xad,-0x84)+'ntext'](_0xbe51eb,_0x2b91e7){function _0x47aa5c(_0x6f2e31,_0x1489d5){return _0x1c409f(_0x1489d5-0x414,_0x6f2e31);}const _0x41378d=await this[_0xb09805(0x38b,0x3e1)](_0x47aa5c(0x406,0x3bf),_0x47aa5c(0x38c,0x3c9)+'mories/ass'+_0x47aa5c(0x450,0x3e2),{'query':_0xbe51eb,'max_memories':_0x2b91e7?.['maxMemorie'+'s']??0x5,'max_tokens':_0x2b91e7?.[_0x47aa5c(0x427,0x3e0)]??0x7d0,'categories':_0x2b91e7?.[_0xb09805(0x3c3,0x38d)],'tier':_0x2b91e7?.[_0x47aa5c(0x331,0x350)]});function _0xb09805(_0x35989b,_0x3a6ef3){return _0x1c409f(_0x35989b-0x3ea,_0x3a6ef3);}return _0x41378d;}async[_0x20d5ca(0x5d2,0x57c)+_0x1c409f(-0x15,-0x3a)](_0x358d05){const _0x3fa598=await this['request'](_0x187369(0x613,0x640),_0x354a61(0x27f,0x243)+_0x187369(0x629,0x659)+_0x358d05+_0x187369(0x64f,0x6b5));function _0x354a61(_0x41e552,_0x100cfb){return _0x1c409f(_0x100cfb-0x28e,_0x41e552);}function _0x187369(_0x1612dd,_0x5d53e4){return _0x1c409f(_0x1612dd-0x668,_0x5d53e4);}return _0x3fa598;}async[_0x1c409f(-0x8e,-0xca)+_0x20d5ca(0x5dd,0x641)+'ack'](_0x563471,_0x412f7d){function _0x339e4e(_0x20b660,_0x560764){return _0x20d5ca(_0x560764- -0xf9,_0x20b660);}function _0x234b2c(_0x36ef52,_0x188ab9){return _0x20d5ca(_0x188ab9- -0x4c5,_0x36ef52);}try{await this['request'](_0x234b2c(0x14b,0x146),_0x339e4e(0x556,0x51c)+'mories/'+_0x563471+_0x339e4e(0x542,0x54e),{'success':_0x412f7d});}catch(_0x345667){console[_0x234b2c(0x150,0x127)](_0x339e4e(0x4d9,0x495)+'forceMemor'+'yFeedback\x20'+_0x339e4e(0x4f0,0x515)+'\x20'+_0x563471+':',_0x345667 instanceof Error?_0x345667[_0x234b2c(0xc7,0xdb)]:String(_0x345667));}}async[_0x20d5ca(0x5a8,0x60c)+_0x1c409f(-0xa7,-0xa0)](_0x392aaa,_0x271049){function _0x3d4c34(_0x3faec3,_0x15f3ac){return _0x1c409f(_0x15f3ac-0x4ba,_0x3faec3);}function _0x463282(_0x2c501f,_0x1f21d9){return _0x1c409f(_0x1f21d9- -0x91,_0x2c501f);}const _0x4b54e4=await this[_0x3d4c34(0x479,0x45b)](_0x463282(-0x10b,-0xe6),_0x463282(-0x7a,-0xdc)+_0x463282(-0xca,-0xd0)+_0x392aaa+_0x3d4c34(0x3ff,0x3f5));return _0x4b54e4;}async[_0x20d5ca(0x5f9,0x5a9)](){const _0xab0f7e=await this[_0x2776c3(0x28f,0x268)]('GET','/api/v1/me'+_0x2776c3(0x2b4,0x25b)+'ts');function _0x3af61e(_0x59fb20,_0xac879f){return _0x20d5ca(_0x59fb20- -0x765,_0xac879f);}function _0x2776c3(_0x177ec6,_0x4c9b24){return _0x20d5ca(_0x4c9b24- -0x399,_0x177ec6);}return _0xab0f7e;}async['getPopular'+'Tags'](_0x57a6ab=0xa){const _0xa1d38d=new URLSearchParams();_0xa1d38d['set'](_0x3aa96b(0xf1,0x119),_0x57a6ab['toString']());const _0x5c615f=_0x444a9d(-0xae,-0x6f)+_0x444a9d(-0x111,-0xd9)+_0x3aa96b(0x153,0x12e)+_0xa1d38d[_0x444a9d(-0x103,-0x135)]();function _0x3aa96b(_0x196707,_0x4edaa7){return _0x1c409f(_0x4edaa7-0x17a,_0x196707);}function _0x444a9d(_0x48643a,_0x18ff4e){return _0x1c409f(_0x48643a- -0x63,_0x18ff4e);}const _0x24b73d=await this[_0x444a9d(-0xc2,-0xc6)](_0x444a9d(-0x119,-0x10f),_0x5c615f);return _0x24b73d[_0x3aa96b(0xe6,0x100)]??[];}async[_0x20d5ca(0x5ab,0x595)+'ts'](_0xf2e859){function _0x26a1c2(_0x3978cb,_0xd59448){return _0x1c409f(_0xd59448-0x477,_0x3978cb);}const _0x2bda68=await this[_0x190fdd(0x1cf,0x1e5)](_0x26a1c2(0x3ce,0x3c1),_0x190fdd(0x226,0x200)+encodeURIComponent(_0xf2e859)+('/memories/'+_0x26a1c2(0x3f7,0x3aa))),_0x32d020=_0x2bda68,_0x46381b=_0x32d020['stats']??_0x32d020;function _0x190fdd(_0x1384ff,_0xe60078){return _0x1c409f(_0x1384ff-0x22e,_0xe60078);}return{'totalMemories':_0x46381b[_0x26a1c2(0x402,0x407)+_0x26a1c2(0x420,0x3bb)]??0x0,'totalNodes':_0x46381b['total_node'+'s']??0x0,'lastSyncedAt':_0x46381b[_0x190fdd(0x203,0x244)+_0x190fdd(0x227,0x277)]??null};}async['postProfic'+_0x1c409f(-0x9b,-0x70)](_0x4a1e2c){function _0xcfabb9(_0x11e967,_0xa6956d){return _0x20d5ca(_0x11e967- -0x1e2,_0xa6956d);}function _0x245d7e(_0x515a66,_0x3b4131){return _0x20d5ca(_0x515a66- -0x5b5,_0x3b4131);}const _0xf2b891=await this[_0x245d7e(0x4c,0x92)](_0xcfabb9(0x429,0x425),_0xcfabb9(0x43a,0x462)+_0xcfabb9(0x3b4,0x38f)+_0x245d7e(0x7a,0xe1),{'skill_memory_id':_0x4a1e2c[_0x245d7e(0x8a,0x4f)+_0xcfabb9(0x449,0x4a1)],'outcome':_0x4a1e2c[_0x245d7e(0xa2,0xbc)],'difficulty':_0x4a1e2c['difficulty'],'context_tags':_0x4a1e2c['context_ta'+'gs'],'session_id':_0x4a1e2c[_0x245d7e(0x45,0x4f)]});return _0xf2b891;}async[_0x20d5ca(0x5e3,0x5e5)+_0x20d5ca(0x5c5,0x5fe)+'Batch'](_0x24b480){function _0x345660(_0x577ccf,_0x45effb){return _0x1c409f(_0x577ccf-0x136,_0x45effb);}function _0x586f58(_0x48e5c8,_0x12f077){return _0x1c409f(_0x12f077- -0x2c,_0x48e5c8);}await this[_0x586f58(-0xda,-0x8b)](_0x345660(0xe1,0x116),_0x345660(0xf2,0x9e)+_0x586f58(-0xa3,-0xf6)+_0x345660(0xba,0xcc)+'h',{'events':_0x24b480});}async[_0x1c409f(-0x46,-0x15)+_0x20d5ca(0x5c2,0x5a4)](_0x1e43db){const _0x1d7429=new URLSearchParams();function _0x40669a(_0x469508,_0x3bcb9f){return _0x20d5ca(_0x469508- -0x175,_0x3bcb9f);}_0x1d7429[_0xfd9426(0x35f,0x363)]('page_size',_0xfd9426(0x379,0x3c8));function _0xfd9426(_0x3a0777,_0x5c5634){return _0x20d5ca(_0x3a0777- -0x226,_0x5c5634);}if(_0x1e43db)_0x1d7429['set'](_0xfd9426(0x434,0x464)+'th',_0x1e43db);const _0x232ba6='/api/v1/pr'+'oficiency?'+_0x1d7429['toString'](),_0x1e1346=await this[_0xfd9426(0x3db,0x442)](_0xfd9426(0x384,0x3bb),_0x232ba6);return _0x1e1346[_0xfd9426(0x3c0,0x375)]??[];}async[_0x1c409f(-0xd5,-0xea)+'tion'](_0x404c29){function _0x393c08(_0x47b394,_0x1806a9){return _0x1c409f(_0x1806a9-0x64,_0x47b394);}function _0x193e3b(_0x6e849b,_0x5d949a){return _0x1c409f(_0x6e849b- -0xd9,_0x5d949a);}return this[_0x193e3b(-0x138,-0x140)](_0x193e3b(-0x12e,-0x158),_0x193e3b(-0x13c,-0xe9)+'rsonalizat'+_0x393c08(0x1f,0x1b)+_0x193e3b(-0xf0,-0xc1),{'message':_0x404c29[_0x193e3b(-0x159,-0x168)](0x0,0x1f4)});}async[_0x1c409f(-0x60,-0xb)+'iciencies'](_0x3986aa,_0x3347f7){function _0x188975(_0xfe6474,_0x2cf5fa){return _0x20d5ca(_0xfe6474- -0x40b,_0x2cf5fa);}function _0x18cbc5(_0x4f1863,_0x59f53a){return _0x20d5ca(_0x59f53a- -0x475,_0x4f1863);}const _0x4839c1=await this[_0x18cbc5(0x1f0,0x18c)](_0x188975(0x200,0x241),_0x18cbc5(0xe3,0x14c)+_0x188975(0x1aa,0x1ea)+_0x18cbc5(0x180,0x125),{'source_provider':_0x3986aa,'skill_ids':_0x3347f7??null});return _0x4839c1;}async[_0x1c409f(-0x1c,0x10)+_0x20d5ca(0x63b,0x683)](_0x211712,_0x540141){function _0x416e8a(_0x35d5b5,_0x3ec652){return _0x1c409f(_0x35d5b5-0x360,_0x3ec652);}const _0x49e9df=await this[_0x416e8a(0x301,0x363)](_0x120adf(0x467,0x430),'/api/v1/tr'+_0x416e8a(0x331,0x2e6)+_0x120adf(0x3d3,0x3bf),{'package':_0x211712,'target_provider':_0x540141});function _0x120adf(_0x27f62d,_0x3c59d9){return _0x1c409f(_0x3c59d9-0x485,_0x27f62d);}return _0x49e9df;}async['getCompati'+_0x1c409f(-0xcf,-0xc1)+'ix'](){function _0x40d354(_0x439d27,_0x1c8bb0){return _0x1c409f(_0x1c8bb0- -0x119,_0x439d27);}function _0x2c32ee(_0x2441dc,_0x598a3e){return _0x1c409f(_0x598a3e-0x2ad,_0x2441dc);}const _0x1065ea=await this[_0x40d354(-0x1c6,-0x178)](_0x40d354(-0x1f5,-0x1cf),_0x40d354(-0x1db,-0x1b8)+'ansfer/com'+'patibility');return _0x1065ea[_0x40d354(-0x14b,-0x160)]??[];}async[_0x20d5ca(0x5f3,0x58f)+_0x20d5ca(0x5a1,0x5b0)](_0x52d665=0x1){const _0x17a71a=new URLSearchParams();function _0x5bfe65(_0x272273,_0x2e3a21){return _0x20d5ca(_0x272273- -0x453,_0x2e3a21);}function _0x1922b1(_0x2ed0ad,_0x2df98f){return _0x20d5ca(_0x2df98f- -0x200,_0x2ed0ad);}_0x17a71a[_0x5bfe65(0x132,0x103)]('page',_0x52d665[_0x5bfe65(0x16d,0x1ad)]());const _0x965463='/api/v1/tr'+_0x5bfe65(0x12f,0xe3)+_0x1922b1(0x372,0x3b8)+_0x17a71a[_0x5bfe65(0x16d,0x138)](),_0x484d57=await this[_0x1922b1(0x46e,0x401)](_0x5bfe65(0x157,0x14e),_0x965463);return _0x484d57;}async['uploadFile'](_0x5e1aae,_0x2d2c1b){function _0x168a8d(_0x5e0084,_0x4b9a7a){return _0x1c409f(_0x5e0084-0x1b1,_0x4b9a7a);}const {readFileSync:_0x127315}=await import(_0x168a8d(0x194,0x15e)),{basename:_0x4560cf}=await import('node:path'),_0x296266=_0x127315(_0x5e1aae),_0x3235b5=_0x4560cf(_0x5e1aae),_0x4bd399=new FormData();_0x4bd399[_0x168a8d(0x11b,0x15a)]('file',new Blob([_0x296266]),_0x3235b5);_0x2d2c1b['category']&&_0x4bd399[_0x1892a6(0x1de,0x180)](_0x1892a6(0x15c,0x174),_0x2d2c1b['category']);if(_0x2d2c1b['tags']&&_0x2d2c1b[_0x1892a6(0x1d3,0x1ee)]['length']>0x0){if(_0x168a8d(0x118,0x10b)!==_0x1892a6(0x1d1,0x207))_0x4bd399[_0x168a8d(0x11b,0xe1)](_0x1892a6(0x1fc,0x1ee),_0x2d2c1b[_0x1892a6(0x22a,0x1ee)][_0x168a8d(0x107,0xf9)](','));else throw _0x21a190;}function _0x1892a6(_0x2ec39e,_0x4c603b){return _0x1c409f(_0x4c603b-0x216,_0x2ec39e);}const _0x2c099c=await this[_0x168a8d(0x14d,0x128)+_0x1892a6(0x22c,0x20b)]('POST',_0x1892a6(0x189,0x146)+_0x168a8d(0x132,0xff),_0x4bd399),_0x42157d=_0x2c099c;return{'id':_0x42157d[_0x168a8d(0x126,0xce)],'filename':_0x42157d[_0x168a8d(0x122,0x12f)]};}async[_0x1c409f(-0x9c,-0xac)+_0x20d5ca(0x5c9,0x572)](_0x3207bc){function _0x3304a8(_0x48f5b1,_0x16f034){return _0x1c409f(_0x48f5b1-0x405,_0x16f034);}function _0x27c9b6(_0x5bc31d,_0x5d487b){return _0x1c409f(_0x5d487b-0x3d3,_0x5bc31d);}const _0xa89aa4=await this[_0x3304a8(0x3a6,0x3f4)](_0x27c9b6(0x33b,0x37e),_0x3304a8(0x335,0x2e9)+_0x27c9b6(0x352,0x34b)+_0x3304a8(0x368,0x372),{'content_hash':_0x3207bc}),_0x45db8b=_0xa89aa4;return{'exists':_0x45db8b['is_duplica'+'te'],'file_id':_0x45db8b[_0x3304a8(0x35f,0x3c1)+_0x3304a8(0x3c5,0x421)]?.['id']};}async['createMemo'+_0x20d5ca(0x613,0x610)](_0xd8ae62,_0x4497d9,_0x2f92f2){function _0x45f9a3(_0x223759,_0x1c5c0b){return _0x1c409f(_0x223759- -0x11d,_0x1c5c0b);}const _0x46b7d5=await this['request'](_0x47f99b(0x558,0x55d),_0x45f9a3(-0x168,-0x10d)+'mory-files',{'memory_id':_0xd8ae62,'file_id':_0x4497d9,'reference_type':_0x2f92f2[_0x47f99b(0x51c,0x4bf)+_0x47f99b(0x59a,0x5bb)],'reference_path':_0x2f92f2[_0x45f9a3(-0x1ae,-0x203)+'path']});function _0x47f99b(_0xd7af92,_0xe6ba08){return _0x1c409f(_0xd7af92-0x5ad,_0xe6ba08);}return _0x46b7d5;}async[_0x20d5ca(0x607,0x611)+_0x1c409f(-0xd4,-0xce)](_0x58ac59){function _0x4af3af(_0x1ab2dc,_0x5a1435){return _0x20d5ca(_0x5a1435- -0x492,_0x1ab2dc);}const _0x20c324=await this[_0x28c193(0x400,0x45f)](_0x28c193(0x4d0,0x469),_0x4af3af(0x1b8,0x177)+_0x28c193(0x484,0x43d),_0x58ac59),_0x207c7b=_0x20c324?.[_0x28c193(0x495,0x46a)]?.['id']??_0x20c324?.['id'];function _0x28c193(_0x5e2419,_0x2292bf){return _0x20d5ca(_0x2292bf- -0x1a2,_0x5e2419);}if(!_0x207c7b)throw new Error(_0x4af3af(0x10e,0x175)+_0x28c193(0x43b,0x49f)+_0x28c193(0x46b,0x4b1)+_0x28c193(0x44a,0x483));return{'id':_0x207c7b};}async[_0x20d5ca(0x599,0x5df)+_0x1c409f(-0x3e,-0x93)](_0x262b9c,_0x1e062f){function _0x5a64d3(_0x353a35,_0x2f5662){return _0x1c409f(_0x353a35-0x1df,_0x2f5662);}function _0x595c74(_0x29ead0,_0x3112f4){return _0x1c409f(_0x29ead0-0x37e,_0x3112f4);}return this['request'](_0x5a64d3(0x18a,0x12d),_0x595c74(0x327,0x2c7)+'g/contexts'+'/'+_0x262b9c+_0x5a64d3(0x1b1,0x211),_0x1e062f);}async[_0x20d5ca(0x58f,0x560)+_0x1c409f(-0xa5,-0xa1)](_0xe37158){function _0x1ec9ce(_0x1c3058,_0x22aa73){return _0x1c409f(_0x22aa73-0x55e,_0x1c3058);}function _0x2b22e5(_0x1ee025,_0x3d9424){return _0x1c409f(_0x3d9424-0x183,_0x1ee025);}return this[_0x1ec9ce(0x499,0x4ff)](_0x2b22e5(0xdf,0x12e),_0x2b22e5(0xc7,0x12c)+_0x2b22e5(0xfe,0xdf)+'s',_0xe37158);}async[_0x20d5ca(0x648,0x670)+_0x20d5ca(0x583,0x5ba)](_0x147e4e){function _0xce41fb(_0x4ca7b4,_0x3aaf34){return _0x1c409f(_0x4ca7b4- -0xc5,_0x3aaf34);}function _0x12717b(_0x2d56e8,_0x270395){return _0x1c409f(_0x270395-0x403,_0x2d56e8);}try{const _0x44b8f=await this[_0x12717b(0x35d,0x3a4)](_0xce41fb(-0x11a,-0x124),_0xce41fb(-0x13b,-0x15f)+_0x12717b(0x352,0x348)+'ssify',{'content':_0x147e4e[_0x12717b(0x42a,0x3cb)][_0xce41fb(-0x145,-0xfe)](0x0,0x7d0),'tags':_0x147e4e['tags']??[],'category':_0x147e4e['category']}),_0x37390d=_0x44b8f;if(_0x37390d[_0x12717b(0x3b0,0x3e1)]&&_0x37390d['result'])return _0x37390d[_0x12717b(0x3f0,0x3e5)];return null;}catch{return null;}}static [_0x20d5ca(0x5f7,0x620)+_0x1c409f(-0xc9,-0x11c)]=new Set([0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]);static [_0x20d5ca(0x62a,0x68b)+'S']=0x3;static [_0x1c409f(-0xb3,-0x4e)+_0x1c409f(-0x4e,-0x82)]=0x3e8;async['request'](_0xbc43f3,_0xb9bc03,_0x1031b8){function _0x218177(_0x1a80dc,_0x564f91){return _0x1c409f(_0x1a80dc-0x371,_0x564f91);}let _0x1c95ec;for(let _0x5eddcd=0x0;_0x5eddcd<A2AClient[_0x301d57(0x40f,0x3c0)+'S'];_0x5eddcd++){if(_0x218177(0x361,0x377)!=='llkYC'){const _0x3a5b3a=''+this[_0x301d57(0x3ce,0x36c)][_0x301d57(0x31c,0x36a)]+_0xb9bc03,_0xe643b5=new AbortController(),_0x49e9e1=setTimeout(()=>_0xe643b5['abort'](),this[_0x218177(0x31b,0x2db)]);try{const _0x4d58ce=await fetch(_0x3a5b3a,{'method':_0xbc43f3,'headers':{'Content-Type':_0x218177(0x29a,0x2e3)+_0x218177(0x2e4,0x2c7),'x-api-key':this[_0x301d57(0x32c,0x36c)][_0x301d57(0x305,0x345)],'X-Plugin-Version':_pluginVersion,...this[_0x218177(0x30f,0x2ab)+_0x301d57(0x376,0x37f)][_0x218177(0x2e8,0x336)]>0x0&&{'X-Plugin-Features':this[_0x301d57(0x3b4,0x394)+'tures'][_0x218177(0x2c7,0x268)](',')}},'body':_0x1031b8?JSON[_0x218177(0x295,0x25a)](_0x1031b8):undefined,'signal':_0xe643b5['signal']});clearTimeout(_0x49e9e1);if(A2AClient[_0x301d57(0x327,0x38d)+_0x301d57(0x346,0x32d)][_0x301d57(0x356,0x31c)](_0x4d58ce[_0x301d57(0x331,0x317)])&&_0x5eddcd<A2AClient['MAX_RETRIE'+'S']-0x1){const _0x196c47=A2AClient[_0x301d57(0x374,0x343)+_0x218177(0x323,0x2ba)]*Math[_0x301d57(0x32b,0x366)](0x2,_0x5eddcd);await new Promise(_0x4afd33=>setTimeout(_0x4afd33,_0x196c47));continue;}!_0x4d58ce['ok']&&await this[_0x301d57(0x38b,0x3a5)+'rResponse'](_0x4d58ce);if(_0xbc43f3===_0x218177(0x32c,0x2e8)&&_0x4d58ce[_0x218177(0x292,0x271)]===0xcc){if(_0x301d57(0x34b,0x39b)==='FISDF')return;else{if(_0x2b70c8[_0x218177(0x2e8,0x2db)]!==0x20)throw new _0x4ef63d(_0x218177(0x348,0x2fa)+_0x218177(0x2b4,0x2be)+'다');this['encryption'+_0x301d57(0x382,0x3e2)]=_0x1042ba;}}return await _0x4d58ce['json']();}catch(_0x4af717){clearTimeout(_0x49e9e1);if(_0x4af717 instanceof Error){if(getErrorStatus(_0x4af717)!==undefined)throw _0x4af717;if(_0x4af717[_0x218177(0x2b1,0x2ce)][_0x301d57(0x3e5,0x384)]('인증\x20실패')||_0x4af717['message'][_0x218177(0x2ff,0x2fd)](_0x301d57(0x426,0x3d0))||_0x4af717[_0x218177(0x2b1,0x259)][_0x301d57(0x3b7,0x384)](_0x218177(0x327,0x2ef))||_0x4af717[_0x301d57(0x312,0x336)][_0x301d57(0x3df,0x384)](_0x218177(0x35b,0x302)))throw _0x4af717;if(_0x5eddcd<A2AClient['MAX_RETRIE'+'S']-0x1){_0x1c95ec=_0x4af717;const _0x432bad=A2AClient[_0x301d57(0x34d,0x343)+'_MS']*Math[_0x301d57(0x310,0x366)](0x2,_0x5eddcd);await new Promise(_0x959d35=>setTimeout(_0x959d35,_0x432bad));continue;}if(_0x4af717['name']===_0x301d57(0x324,0x320))throw new Error(_0x301d57(0x437,0x3cc)+this[_0x301d57(0x3fd,0x3a0)]+_0x301d57(0x303,0x328));throw new Error(_0x301d57(0x3df,0x3e5)+_0x4af717[_0x218177(0x2b1,0x2c9)]);}throw _0x4af717;}}else{const _0x137152=_0x3827cd(_0x18adb7['content']);_0x137152&&(_0x191e98[_0x218177(0x339,0x35b)]=_0x5803aa(_0x137152,this['encryption'+_0x218177(0x35d,0x3bb)]));}}function _0x301d57(_0x1edc63,_0x1f0117){return _0x1c409f(_0x1f0117-0x3f6,_0x1edc63);}throw _0x1c95ec??new Error(_0x218177(0x2af,0x26f)+A2AClient[_0x301d57(0x418,0x3c0)+'S']+'회\x20재시도\x20후\x20실패');}async[_0x20d5ca(0x5fc,0x652)+_0x1c409f(-0xb,-0x2)](_0xd98709,_0x100306,_0x551fe9){const _0x503c76=''+this[_0x55af50(0x250,0x1f0)]['baseUrl']+_0x100306,_0x56e387=new AbortController();function _0x34beed(_0x3fb1ad,_0x4de607){return _0x20d5ca(_0x3fb1ad- -0x4f1,_0x4de607);}function _0x55af50(_0x3bd928,_0x35da21){return _0x20d5ca(_0x3bd928- -0x386,_0x35da21);}const _0x76a8bf=setTimeout(()=>_0x56e387['abort'](),this[_0x55af50(0x284,0x21e)]);try{const _0x4a8a9b=await fetch(_0x503c76,{'method':_0xd98709,'headers':{'x-api-key':this['config'][_0x55af50(0x229,0x1f0)],'X-Plugin-Version':_pluginVersion},'body':_0x551fe9,'signal':_0x56e387[_0x34beed(0xd5,0x8a)]});return clearTimeout(_0x76a8bf),!_0x4a8a9b['ok']&&await this['handleErro'+'rResponse'](_0x4a8a9b),await _0x4a8a9b[_0x55af50(0x25c,0x26f)]();}catch(_0x29a5f4){if('kGssO'!==_0x34beed(0xfa,0x99)){clearTimeout(_0x76a8bf);if(_0x29a5f4 instanceof Error&&_0x29a5f4[_0x55af50(0x258,0x20f)]===_0x55af50(0x204,0x1c7))throw new Error(_0x34beed(0x145,0x11c)+this[_0x34beed(0x119,0x10b)]+'ms를\x20넘었습니다');throw _0x29a5f4;}else _0x6a85b6['content']=_0x37e7bf(_0x249ef7,this[_0x55af50(0x245,0x1ef)+_0x34beed(0x15b,0x1bc)]);}}async['handleErro'+_0x1c409f(-0xd9,-0x72)](_0x348c0d){const _0x3fee89=_0x348c0d[_0x2d84bf(0xd4,0x130)];if(_0x3fee89===0x191)throw withStatus(new Error(_0xed3ff5(-0x174,-0x1a1)+'\x20Key를\x20확인하세'+'요'),0x191);if(_0x3fee89===0x1ad){if(_0xed3ff5(-0x158,-0x114)!==_0x2d84bf(0x13b,0x118))return _0xbfe959 instanceof _0x35d0dd?_0x2f8f15['status']:_0x1ab02e;else throw withStatus(new Error(_0x2d84bf(0xfc,0x99)+_0x2d84bf(0xeb,0x111)),0x1ad);}let _0x5c343b=_0xed3ff5(-0x166,-0x1a7)+_0x3fee89;try{const _0x4e2bd3=await _0x348c0d[_0xed3ff5(-0x15e,-0x125)]();if(Array[_0x2d84bf(0x170,0x11f)](_0x4e2bd3[_0xed3ff5(-0x172,-0x183)])){const _0x3c6ab8=_0x4e2bd3[_0x2d84bf(0x121,0xe0)][_0xed3ff5(-0x192,-0x176)](_0x59f5d6=>{function _0x22502a(_0x567aea,_0x5579e7){return _0x2d84bf(_0x567aea- -0xd6,_0x5579e7);}function _0x85e0b5(_0x35eb30,_0x1cefff){return _0x2d84bf(_0x35eb30-0x1ed,_0x1cefff);}const _0x59ec13=Array['isArray'](_0x59f5d6[_0x22502a(0x23,0x51)])?_0x59f5d6[_0x85e0b5(0x2e6,0x2bc)]['join']('.'):'',_0x1c72ff=_0x59f5d6[_0x22502a(0xa3,0xe9)]??JSON[_0x22502a(0x1,-0x7)](_0x59f5d6);return _0x59ec13?_0x59ec13+':\x20'+_0x1c72ff:_0x1c72ff;})[_0xed3ff5(-0x18a,-0x16e)](_0xed3ff5(-0x1c0,-0x217));_0x5c343b+=':\x20'+_0x3c6ab8;}else{if(_0x4e2bd3[_0xed3ff5(-0x172,-0x188)]){if(_0xed3ff5(-0xee,-0x9e)===_0xed3ff5(-0x14b,-0x187)){const _0x29ca27=_0x2d110f(_0x5e0b66[_0xed3ff5(-0x118,-0x10b)]);if(_0x29ca27)try{_0x599559[_0xed3ff5(-0x118,-0x103)]=_0x1080df(_0x29ca27,this[_0xed3ff5(-0x175,-0x1de)+'Key']);}catch{}}else _0x5c343b+=':\x20'+_0x4e2bd3['detail'];}else _0x4e2bd3['message']&&(_0x5c343b+=':\x20'+_0x4e2bd3['message']);}}catch{}function _0xed3ff5(_0x1b6679,_0x54d678){return _0x1c409f(_0x1b6679- -0xe0,_0x54d678);}function _0x2d84bf(_0x251a01,_0x1153aa){return _0x1c409f(_0x251a01-0x1b3,_0x1153aa);}throw withStatus(new Error(_0x5c343b),_0x3fee89);}}
|
|
1
|
+
(function(_0x4c6fb8,_0x1e7227){const _0x2f6ad=_0x4c6fb8();function _0x37fa9d(_0x529cb6,_0x4e8380){return _0x478e(_0x4e8380-0x2fd,_0x529cb6);}function _0x16326a(_0x50b56c,_0x3aff26){return _0x478e(_0x50b56c- -0xba,_0x3aff26);}while(!![]){try{const _0x1ff664=-parseInt(_0x37fa9d(0x4b4,0x517))/0x1*(-parseInt(_0x16326a(0x175,0x19e))/0x2)+parseInt(_0x37fa9d(0x466,0x4bd))/0x3*(parseInt(_0x37fa9d(0x529,0x55f))/0x4)+-parseInt(_0x16326a(0x126,0x11c))/0x5*(parseInt(_0x37fa9d(0x546,0x4fe))/0x6)+-parseInt(_0x16326a(0x178,0x18a))/0x7+-parseInt(_0x37fa9d(0x51e,0x4e5))/0x8*(parseInt(_0x16326a(0x123,0xfb))/0x9)+parseInt(_0x37fa9d(0x50c,0x54b))/0xa*(parseInt(_0x37fa9d(0x500,0x509))/0xb)+parseInt(_0x37fa9d(0x51c,0x544))/0xc*(parseInt(_0x16326a(0x10f,0xe0))/0xd);if(_0x1ff664===_0x1e7227)break;else _0x2f6ad['push'](_0x2f6ad['shift']());}catch(_0xc5d1ba){_0x2f6ad['push'](_0x2f6ad['shift']());}}}(_0x5475,0x96c76));function _0x316391(_0x2371d6,_0x1e283b){return _0x478e(_0x2371d6- -0x344,_0x1e283b);}import{encryptContent,decryptContent,wrapEncryptedContent,unwrapEncryptedContent}from'./encryption.js';function withStatus(_0x2e194d,_0x45a8e1){return _0x2e194d['status']=_0x45a8e1,_0x2e194d;}export function getErrorStatus(_0x4fae3b){return _0x4fae3b instanceof Error?_0x4fae3b['status']:undefined;}let _pluginVersion=_0x417442(0x160,0x11a);function _0x5475(){const _0x30587d=['qMf0y2G','whL0vwq','mte1nZaXCMjAuLPT','CgfNzq','7zUeioUlPoYlNcdSI5ZRJ4tTLzJSHlJSMPq','Dg9tDhjPBMC','ywjVCNq','AwXL','AxrLBxm','C3rHCNrZv2L0Aa','sKDsuha','mtnWzK5JD0S','twvTB3jPzxm','CgfYC2u','C2v0rw5HyMXLza','sfruuca0mJi','DgLLCG','yw1Z','C2vHCMnO','C2LNBMfS','Axq9mq','yNL0zxpSL6ZSLBWG7zwP64Ui','zw5JCNLWDgLVBG','ANboD1G','Aw5JBhvKzuvTyG','CMvXDwvZDe11Ba','zY9YzwXHDgLVBG','BI9HBMfSExPL','yxbWBgLJyxrPBW','y2XLyxjfBMnYEq','zxH0','nteYntv6DfLpq3y','y29UDgv4Df90yq','Cg9ZDfbYB2zPyW','mJK2mtu1nxr0Dez6wG','l21LBw9YAwvZ','C2vZC2LVBL9Pza','l3rLyw1ZlW','yw5HBhL6zuvTBW','u1rbvfvt','AM1UChy','7jQu7lkTioYGNo2vNdOG7j6G7iUCia','oda4tMHczuXO','y2HLy2TgAwXLra','B2zMC2v0','Bw9YAwvZ','Eg9UB215l2nSyq','C2v0','w2eYyv0GCMvPBG','qwjVCNrfCNjVCG','6RcaioYxHUYkTEUlIoUlPa','BxnN','Aw9Us2v5','y3jLyxrLq29UDa','BM9KztP1CMW','BNrLEhq','BNrLBNq','B25fBMfIBgvK','t2rVuxu','AwnPzw5JAwvZ','zxHWB3j0uhjVzG','CKHPC3rVCNK','zMLSzq','z2vUzxjHDgvezq','CMnO','l21LBw9YAwvZlW','DxbSB2fKrMLSzq','nM16rujUDa','7jwu7zI47zMuio2cPoUkLcaZmIa','Bw9YAwvZl3n0yq','zvnqzwe','ChjVBw90zu1LBq','zw1VCNLgzwvKyG','zw5HyMXLzezLyq','AxnbCNjHEq','yMfZzvvYBa','CNnVBMfSAxPHDa','DxrMltG','mJa3nZLJvgnUD3m','zgvSzxrLtwvTBW','sfruuca','ANnVBG','CMLLCW','AwvUy2LLCW','BgvZl3vWBg9Hza','uKvuuLLbqKXfxW','CMvMzxjLBMnLxW','Bw9YAwvZp2XPBq','zxjYB3i','l2fWAs92ms9TyW','C2TPBgXFBwvTBW','AgfUzgXLrxjYBW','mty5otnrrNjLCNC','r0vu','zgvJCNLWDe1LBq','BM9KztPMCW','BM9KztPWyxrO','ywDLlMPZB24','BMfTzq','y29UzMLN','l2fWAs92ms9MAq','Aw1WB3j0uhjVzG','qKftrv9eruXbwq','z2v0ug9WDwXHCG','y2f0zwDVCMLLCW','C3rHDhm','y2f0zwDVCNK','CgfNzv9ZAxPL','DgfNCW','CY9WB3b1BgfYpW','BgLZDe1LBw9YAq','zY9JB250zxH0CW','DgLTzw91Da','mtaYqNzeC2Hh','CNLFAwq','Cu1At0e','ntu2mda0neXvBg91vW','C3rYAw5NAwz5','twvTyMvY','BwfW','z2v0u3rHDhm','7j247kADioYlPo2mQdOGqvbj','zMLSzv9Pza','DxbSAwnHDgu','Bw9YAwvZlW','AwvUy3LfDMvUDa','AM9PBG','vgfNCW','zM9Yy2vnzw1VCG','ywrKvgvHBu1LBq','C3vJy2vZCW','BxpRPBWG64sy7jEi7iQ164Ui64UK','z2v0vhjHBNnMzq','Cg93','CNLgAwXLtgLUAW','zxH0oIdSNzhRI7xSL5aGyW','AxnFzhvWBgLJyq','mtmYodiXodH4v2XYu2q','mc4WlJa','Dg9YEt8','7jQu7lkTioYlNoQWHcdSTiJQS7W6ia','l2fWAs92ms9WCG','ywnR','ihWG','mtm3mhftAgHxsa','zgLMzMLJDwX0Eq','Dhj1zq','BhrH','Bw9YAwvZl3rHzW','DxbKyxrLtwvTBW','sLf1vuG','l2fWAs92ms9Tzq','zw1VCNK','x01t','C3LUyY9KzwX0yq','zxHPC3rPBMDFzG','Bw9YEs1MAwXLCW','B3v0y29Tzq','B3j5','lI4VlI4VCgfJAW','Dg90ywXFBwvTBW','C2XPy2u','AgfZ','zgv0ywLS','mZz5rxjKzKK','BI9QC29U','ChrPB25lzxK','z2v0vgvHBvn0yq','DhvYzxm','BgvUz3rO','ue9tva','l2fWAs92ms90yq','B2zPy2LLBMn5lW','zMfPBgvKigzVCG','C2vHCMnOtwvTBW','tufyx1jfvfjjrq','CLjLC3bVBNnL','Bg9J','Aw5JBhvKzv9LBq','yxbWzw5K','CMvXDwvZDa','EuzLzwrIywnRia','zwrKAw5N','DgLVBG','DgvZDenVBM5LyW','B2zPy2LLBMn5pW','CMvZDwX0','zw1IBgu','B3j0','BwvZC2fNzq','zxzLBNq','Cgf0AwjPBgL0Eq','7zQmioYERoYlNoUpHcdTM4qG7iUK7yYO','BgfZDf9ZEw5Jzq','Bwf4twvTB3jPzq','Bw9YAwvZl2fZCW','BgvZl2nOzwnRlq','yxnZzw1IBgvdBW','ieTLEEULVcdTMzxSNBJTLzJSHlG','s2v5','y3jLyxrLtwvTBW','ChjVAMvJDf9Wyq','yxbPs2v5','l21LBwjLCNm','BgLZDfrLyw1nzq','zMLSzw5HBwu','C3rHDhvZ','64sK7yQ47jUm7ygSioYyPoULMdOG','yw5ZzMvYl2v4Ca','zhvWBgLJyxrL','l2fWAs92ms9Wzq','DgLWyxj0','BgLTAxq','yMvKzgLUzW','l2fWAs92ms90CG','7j247kADioYlPo2mQa','l3jLAw5MB3jJzq','mtaW','tg9PEgG','zf9HDa','DMvYC2LVBG','y29UDgvUDa','revmrvrf','Bwf4vg9Rzw5Z','C2v0rw5JCNLWDa','Cgf0Aa'];_0x5475=function(){return _0x30587d;};return _0x5475();}function _0x478e(_0x1cad8f,_0x4f95bf){_0x1cad8f=_0x1cad8f-0x186;const _0x54756f=_0x5475();let _0x478e91=_0x54756f[_0x1cad8f];if(_0x478e['oQCaUZ']===undefined){var _0x2c4a05=function(_0x1e0baf){const _0x5c4781='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x31351c='',_0x26d1f7='';for(let _0x46e535=0x0,_0x4e85a1,_0x237351,_0x56517d=0x0;_0x237351=_0x1e0baf['charAt'](_0x56517d++);~_0x237351&&(_0x4e85a1=_0x46e535%0x4?_0x4e85a1*0x40+_0x237351:_0x237351,_0x46e535++%0x4)?_0x31351c+=String['fromCharCode'](0xff&_0x4e85a1>>(-0x2*_0x46e535&0x6)):0x0){_0x237351=_0x5c4781['indexOf'](_0x237351);}for(let _0x56ab96=0x0,_0x2d368c=_0x31351c['length'];_0x56ab96<_0x2d368c;_0x56ab96++){_0x26d1f7+='%'+('00'+_0x31351c['charCodeAt'](_0x56ab96)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x26d1f7);};_0x478e['HXLCTo']=_0x2c4a05,_0x478e['JtDkJL']={},_0x478e['oQCaUZ']=!![];}const _0x3022af=_0x54756f[0x0],_0x1e2c32=_0x1cad8f+_0x3022af,_0x4b197b=_0x478e['JtDkJL'][_0x1e2c32];return!_0x4b197b?(_0x478e91=_0x478e['HXLCTo'](_0x478e91),_0x478e['JtDkJL'][_0x1e2c32]=_0x478e91):_0x478e91=_0x4b197b,_0x478e91;}function _0x417442(_0x222728,_0x52d898){return _0x478e(_0x222728- -0xe8,_0x52d898);}try{const {readFileSync}=await import(_0x316391(-0x127,-0xf0)),{fileURLToPath}=await import(_0x417442(0x10c,0x162)),{dirname,join}=await import(_0x316391(-0x126,-0x143)),__dirname=dirname(fileURLToPath(import.meta.url)),pkg=JSON[_0x316391(-0x179,-0x161)](readFileSync(join(__dirname,_0x417442(0x175,0x1c8)+_0x417442(0x137,0x16d)),_0x417442(0x123,0xb5)));_pluginVersion=pkg[_0x417442(0xd0,0xd5)]||_0x417442(0x160,0x135);}catch{}export class A2AClient{[_0x316391(-0x123,-0x11b)];[_0x316391(-0x116,-0x163)];[_0x417442(0xec,0x136)+_0x417442(0xbb,0x91)]=null;['enabledFea'+_0x316391(-0xde,-0x85)]=[];constructor(_0xb44655){function _0x4a6142(_0x10d145,_0x54e800){return _0x316391(_0x54e800-0x124,_0x10d145);}function _0x5232e4(_0x134d37,_0x3e2c87){return _0x316391(_0x134d37-0x555,_0x3e2c87);}this[_0x4a6142(0x55,0x1)]=_0xb44655,this[_0x5232e4(0x43f,0x41a)]=_0xb44655[_0x5232e4(0x43f,0x471)]??0xea60;}[_0x417442(0xe4,0x126)+'Features'](_0x2ddb58){function _0xec5c1b(_0x42d15e,_0x304eea){return _0x316391(_0x304eea-0x570,_0x42d15e);}function _0x3c2d97(_0x432e26,_0x38832f){return _0x316391(_0x432e26-0x380,_0x38832f);}this[_0x3c2d97(0x243,0x1d3)+_0x3c2d97(0x2a2,0x27d)]=_0x2ddb58;}[_0x417442(0xd4,0x143)+_0x316391(-0x152,-0x11b)](_0x3efede){if(_0x3efede[_0x3588f5(0x255,0x296)]!==0x20){if(_0x3fd4b3(0x2b8,0x2fa)===_0x3588f5(0x1c3,0x1c8))throw new Error(_0x3588f5(0x1f0,0x253)+_0x3fd4b3(0x2b6,0x314)+'다');else return _0x46db7f[_0x3fd4b3(0x318,0x2eb)](_0x430012=>this[_0x3588f5(0x20a,0x22f)+_0x3588f5(0x24a,0x1f7)](_0x430012));}function _0x3588f5(_0xc1c0f,_0x5997fc){return _0x316391(_0xc1c0f-0x332,_0x5997fc);}function _0x3fd4b3(_0x2f17ac,_0x58f6af){return _0x316391(_0x2f17ac-0x427,_0x58f6af);}this[_0x3588f5(0x1c2,0x1ab)+'Key']=_0x3efede;}[_0x316391(-0x169,-0x16a)+_0x417442(0x17c,0x141)](){function _0x44fd39(_0x377892,_0x28aa70){return _0x316391(_0x28aa70-0x598,_0x377892);}function _0x4bd7d6(_0x3a4e71,_0x1a9d6d){return _0x316391(_0x3a4e71-0x1b1,_0x1a9d6d);}this[_0x44fd39(0x48c,0x428)+_0x44fd39(0x3af,0x3f7)]=null;}['isEncrypti'+_0x417442(0x10f,0x164)](){function _0x1d1ea4(_0x1ca37e,_0x445c57){return _0x316391(_0x1ca37e-0x68b,_0x445c57);}return this[_0x1d1ea4(0x51b,0x540)+'Key']!==null;}async[_0x417442(0xbc,0x9f)+'ry'](_0x2b862b){function _0x2fb947(_0x3ff9d9,_0x25735c){return _0x417442(_0x25735c- -0x16b,_0x3ff9d9);}let _0x1bffb3=_0x2b862b[_0x46597d(-0x45,0x3)];if(this['encryption'+_0x2fb947(-0x11f,-0xb0)]){const _0xd1573b=encryptContent(_0x2b862b['content'],this['encryption'+_0x46597d(-0x5b,-0xbc)]);_0x1bffb3=wrapEncryptedContent(_0xd1573b);}const _0x6b5c2e=await this[_0x2fb947(-0xe6,-0xc3)](_0x2fb947(-0xab,-0xcd),_0x46597d(0x57,0x48)+_0x2fb947(-0x44,-0x68),{'content':_0x1bffb3,'category':_0x2b862b['category'],'tier':_0x2b862b[_0x2fb947(-0x35,-0x85)],'tags':_0x2b862b[_0x46597d(0x2c,0x86)]??[]});function _0x46597d(_0x1bacbe,_0x20e54e){return _0x417442(_0x1bacbe- -0x116,_0x20e54e);}const _0x27f99d=_0x6b5c2e;if(this['encryption'+_0x2fb947(-0xea,-0xb0)]&&_0x27f99d['content']){const _0x1ce235=unwrapEncryptedContent(_0x27f99d[_0x2fb947(-0xec,-0x9a)]);_0x1ce235&&(_0x27f99d[_0x46597d(-0x45,-0x65)]=decryptContent(_0x1ce235,this[_0x46597d(-0x2a,0x25)+_0x46597d(-0x5b,0x5)]));}return _0x27f99d;}async[_0x417442(0xa2,0x32)+_0x316391(-0x134,-0x198)](_0x161e00,_0x45d5ae){function _0x1c114a(_0x3f6902,_0x108fcd){return _0x417442(_0x108fcd- -0x2da,_0x3f6902);}const _0x24ef96=await this['request'](_0x3a7f95(0xa5,0xad),'/api/v1/me'+'mories/sea'+_0x1c114a(-0x1bb,-0x1c4),{'query':_0x161e00,'limit':_0x45d5ae?.[_0x3a7f95(0xcf,0xb6)]??0xa,'category':_0x45d5ae?.['category']});function _0x3a7f95(_0x3bfa23,_0x582951){return _0x417442(_0x3bfa23-0x7,_0x582951);}return _0x24ef96[_0x1c114a(-0x203,-0x1fc)]??[];}async[_0x417442(0x144,0x146)+'es'](_0x1e42c4){const _0x4b5087=new URLSearchParams();if(_0x1e42c4?.[_0x49d998(0x3b0,0x37a)])_0x4b5087[_0x49d998(0x3d6,0x3b7)]('limit',_0x1e42c4[_0x1c8d25(0xfc,0xe7)][_0x1c8d25(0x10f,0x11f)]());if(_0x1e42c4?.['offset'])_0x4b5087[_0x1c8d25(0x139,0x13a)](_0x1c8d25(0x136,0x110),_0x1e42c4['offset'][_0x1c8d25(0x10f,0x102)]());if(_0x1e42c4?.[_0x49d998(0x394,0x3a0)+_0x49d998(0x353,0x35c)])_0x4b5087[_0x1c8d25(0x139,0x176)](_0x1c8d25(0xda,0x8a)+_0x1c8d25(0xfd,0xe2),_0x49d998(0x478,0x41a));function _0x1c8d25(_0x1a8a70,_0x5aebdd){return _0x316391(_0x1a8a70-0x290,_0x5aebdd);}const _0x534a9c=_0x1c8d25(0x1a1,0x1fb)+_0x49d998(0x3cd,0x3b5)+(_0x4b5087[_0x1c8d25(0x10f,0xc8)]()?'?'+_0x4b5087[_0x1c8d25(0x10f,0xbe)]():''),_0x14efac=await this[_0x1c8d25(0xdc,0x142)]('GET',_0x534a9c);function _0x49d998(_0x35c9c2,_0x535aa6){return _0x316391(_0x535aa6-0x50e,_0x35c9c2);}const _0x105c5f=_0x14efac[_0x49d998(0x39d,0x390)]??[];if(this[_0x49d998(0x3f0,0x39e)+_0x1c8d25(0xef,0x160)])return _0x105c5f[_0x49d998(0x3f8,0x3ff)](_0x2e4f1f=>this[_0x49d998(0x3cb,0x3e6)+_0x1c8d25(0x1a8,0x1b9)](_0x2e4f1f));return _0x105c5f;}[_0x316391(-0x128,-0x11a)+'ory'](_0x183728){if(!this['encryption'+'Key'])return _0x183728;const _0x403625={..._0x183728};function _0x161926(_0x2bb3bb,_0x2b8d74){return _0x316391(_0x2bb3bb-0x4e6,_0x2b8d74);}if(_0x403625['content']){const _0x42f2e4=unwrapEncryptedContent(_0x403625['content']);if(_0x42f2e4){if(_0x161926(0x3d3,0x3ee)!==_0x5d78e7(0x1f,0x7a))this[_0x5d78e7(0x3e,0x6a)]=_0x4645a7,this[_0x161926(0x3d0,0x3d8)]=_0x4de9ec[_0x161926(0x3d0,0x3c4)]??0xea60;else try{if(_0x161926(0x361,0x323)!==_0x161926(0x361,0x39f))return![];else _0x403625[_0x5d78e7(0x62,0x2)]=decryptContent(_0x42f2e4,this[_0x5d78e7(-0x35,0x1d)+_0x161926(0x345,0x2fd)]);}catch{}}}function _0x5d78e7(_0x3943a5,_0x26ea1b){return _0x316391(_0x26ea1b-0x18d,_0x3943a5);}return _0x403625;}async[_0x316391(-0xf1,-0x103)+'ry'](_0x1adce5,_0x2460c6){const _0xbee6f9=await this[_0x545ad2(-0x14,-0x4c)]('PUT',_0x545ad2(0xb1,0xf2)+_0x6f3dfc(0x3e5,0x381)+_0x1adce5,_0x2460c6);function _0x545ad2(_0x5cf710,_0x162530){return _0x316391(_0x5cf710-0x1a0,_0x162530);}function _0x6f3dfc(_0x9abfd,_0x284376){return _0x316391(_0x284376-0x48b,_0x9abfd);}return _0xbee6f9;}async[_0x417442(0x125,0xe9)+'ry'](_0xca28e0){function _0x315c74(_0x46c6ac,_0x256fac){return _0x316391(_0x256fac-0x588,_0x46c6ac);}function _0x10d7d2(_0x364ddd,_0x40814a){return _0x316391(_0x364ddd-0x5ae,_0x40814a);}await this[_0x10d7d2(0x3fa,0x3a5)](_0x10d7d2(0x424,0x463),'/api/v1/me'+'mories/'+_0xca28e0);}async['listTeams'](){function _0x51ed24(_0x58183f,_0x553c50){return _0x417442(_0x58183f- -0x101,_0x553c50);}function _0x5e5154(_0x375c2a,_0x1ce0f5){return _0x417442(_0x375c2a- -0x1c3,_0x1ce0f5);}const _0x4784da=await this[_0x5e5154(-0x11b,-0xf7)](_0x51ed24(0x32,-0x1a),'/api/v1/te'+_0x5e5154(-0xdc,-0xa3));if(Array['isArray'](_0x4784da))return _0x4784da;return _0x4784da['items']??[];}async[_0x316391(-0x19c,-0x180)+_0x316391(-0x159,-0x125)](_0x5cc9b7,_0x112505){const _0x10c987=new URLSearchParams();if(_0x112505?.['limit'])_0x10c987[_0x2246e7(-0x82,-0x94)](_0x2246e7(-0x9c,-0xd1),_0x112505[_0x2246e7(-0xc4,-0xd1)][_0x2246e7(-0x113,-0xbe)]());if(_0x112505?.[_0x2246e7(-0x3a,-0x97)])_0x10c987[_0x2246e7(-0x60,-0x94)](_0x2246e7(-0xa3,-0x97),_0x112505['offset'][_0x2246e7(-0x12e,-0xbe)]());function _0x2246e7(_0x10cee3,_0x2d2ab6){return _0x417442(_0x2d2ab6- -0x199,_0x10cee3);}function _0x3a83fc(_0x5abef2,_0x5c88e2){return _0x417442(_0x5c88e2- -0xbc,_0x5abef2);}const _0x3a3b59=_0x10c987[_0x3a83fc(0x89,0x1f)](),_0x19f8bc=_0x3a83fc(0x56,0x3f)+encodeURIComponent(_0x5cc9b7)+_0x2246e7(-0x3e,-0xa0)+(_0x3a3b59?'?'+_0x3a3b59:''),_0x3b5076=await this['request'](_0x2246e7(-0x7c,-0x66),_0x19f8bc);return _0x3b5076['items']??[];}async[_0x417442(0x157,0x101)+_0x417442(0x174,0x137)](_0x5152f2,_0x3d720e){const _0x59a474=await this[_0x539fa0(0x176,0x134)](_0x539fa0(0x16c,0x153),_0x539fa0(0x1c9,0x158)+encodeURIComponent(_0x5152f2)+_0x539fa0(0x1c7,0x213),_0x3d720e);function _0x539fa0(_0x2d18f3,_0x663b3e){return _0x417442(_0x2d18f3-0xce,_0x663b3e);}function _0x59237f(_0x4008c3,_0x41b2ec){return _0x417442(_0x41b2ec-0x3c,_0x4008c3);}return _0x59a474;}async['searchTeam'+_0x417442(0xe2,0xdd)](_0x4980bf,_0x282973,_0x59ab69){const _0x511045=await this[_0x85adf1(0x1af,0x142)](_0x85adf1(0x11e,0x138),_0x118d48(0x252,0x262)+encodeURIComponent(_0x4980bf)+(_0x118d48(0x26e,0x26b)+_0x85adf1(0x1c3,0x182)),{'query':_0x282973,'limit':_0x59ab69?.['limit']??0xa,'category':_0x59ab69?.['category']});function _0x85adf1(_0xdf2e0a,_0x5e9d43){return _0x417442(_0x5e9d43-0x9a,_0xdf2e0a);}function _0x118d48(_0x23dc6c,_0x12df2c){return _0x417442(_0x23dc6c-0x157,_0x12df2c);}return _0x511045['items']??[];}async[_0x316391(-0x147,-0x1a3)+_0x417442(0x169,0x14f)](_0x475609,_0x27e57c,_0x40cc94){function _0x4607aa(_0x504322,_0x49b4a0){return _0x417442(_0x49b4a0-0x206,_0x504322);}function _0x2b2146(_0x4d17c6,_0x31dbe6){return _0x417442(_0x31dbe6- -0xe1,_0x4d17c6);}return this[_0x2b2146(-0x54,-0x39)](_0x2b2146(-0xa3,-0x43),_0x2b2146(0x28,0x1a)+encodeURIComponent(_0x475609)+(_0x2b2146(0x9b,0x36)+_0x2b2146(0x95,0x8f)),{'memory_id':_0x27e57c,'vector_clock':_0x40cc94});}async['applyDelta'](_0x5a2cb7,_0x5e64db,_0x59659f){function _0x1e992b(_0x591c24,_0x3d5bc0){return _0x417442(_0x591c24- -0x248,_0x3d5bc0);}function _0x49f340(_0x49262e,_0x4f481f){return _0x417442(_0x49262e-0x29,_0x4f481f);}return this[_0x1e992b(-0x1a0,-0x135)]('POST','/teams/'+encodeURIComponent(_0x5a2cb7)+(_0x49f340(0x140,0x197)+'sync/apply'),{'memory_id':_0x5e64db,'delta':_0x59659f});}async[_0x316391(-0x1a0,-0x16b)+'riesBatch'](_0x25e806){function _0x528694(_0x1468e1,_0x5da8af){return _0x417442(_0x5da8af-0xf,_0x1468e1);}function _0x5d6a1b(_0x2c389b,_0x22ef11){return _0x417442(_0x2c389b-0x2a7,_0x22ef11);}const _0x3b9dab=await this['request'](_0x528694(0xa0,0xad),_0x5d6a1b(0x414,0x3e2)+'mories/bat'+'ch',{'items':_0x25e806});return _0x3b9dab;}async[_0x417442(0xac,0xb0)+_0x417442(0xab,0x7c)](){function _0xf13965(_0x52155b,_0x2fbf34){return _0x316391(_0x52155b- -0x47,_0x2fbf34);}function _0x117158(_0x5b74de,_0x2c2665){return _0x316391(_0x2c2665-0x37a,_0x5b74de);}try{return await this[_0x117158(0x157,0x1c6)](_0x117158(0x28c,0x251),_0xf13965(-0x136,-0x18e)+_0x117158(0x224,0x24b)+_0x117158(0x229,0x208)),!![];}catch{return![];}}async[_0x417442(0xb9,0x68)+_0x417442(0x10d,0x125)](_0x4a5459,_0x3f8692){function _0x48cff5(_0x5a4db1,_0x2c644e){return _0x316391(_0x5a4db1-0x31e,_0x2c644e);}const _0x3f4c58=await this['request'](_0x48cff5(0x160,0x181),_0x58352a(0x2d9,0x30f)+_0x58352a(0x268,0x259)+_0x58352a(0x244,0x251),{'query':_0x4a5459,'max_memories':_0x3f8692?.[_0x48cff5(0x178,0x1e8)+'s']??0x5,'max_tokens':_0x3f8692?.[_0x58352a(0x2c3,0x275)]??0x7d0,'categories':_0x3f8692?.[_0x48cff5(0x200,0x201)],'tier':_0x3f8692?.[_0x48cff5(0x1a8,0x1d6)]});function _0x58352a(_0xbd5d9b,_0x31a5f7){return _0x316391(_0x31a5f7-0x3fe,_0xbd5d9b);}return _0x3f4c58;}async['reinforceM'+_0x316391(-0xee,-0x9e)](_0x2a2246){const _0x1d4583=await this[_0x5df36f(-0x1ab,-0x175)]('POST',_0x5df36f(-0x8c,-0xb0)+'mories/'+_0x2a2246+_0x505020(-0x1ff,-0x1e0));function _0x5df36f(_0x5a552d,_0x23ca00){return _0x417442(_0x23ca00- -0x21d,_0x5a552d);}function _0x505020(_0x20fe89,_0x4fd8ac){return _0x417442(_0x20fe89- -0x2cb,_0x4fd8ac);}return _0x1d4583;}async['reinforceM'+_0x417442(0x11e,0x188)+_0x417442(0x164,0x10d)](_0x327975,_0xab2a55){function _0x2c9d19(_0x126468,_0x12bc3d){return _0x316391(_0x126468-0x7d,_0x12bc3d);}function _0x3f9669(_0x2eda40,_0x292c45){return _0x316391(_0x292c45-0x538,_0x2eda40);}try{await this[_0x2c9d19(-0x137,-0xcd)](_0x3f9669(0x33a,0x37a),_0x3f9669(0x49a,0x449)+'mories/'+_0x327975+_0x2c9d19(-0x113,-0xb8),{'success':_0xab2a55});}catch(_0x8a4a27){console[_0x2c9d19(-0xb1,-0x82)](_0x3f9669(0x374,0x3e2)+_0x2c9d19(-0x89,-0x3d)+_0x2c9d19(-0x136,-0x163)+_0x3f9669(0x3c1,0x37d)+'\x20'+_0x327975+':',_0x8a4a27 instanceof Error?_0x8a4a27['message']:String(_0x8a4a27));}}async[_0x417442(0x11d,0x17f)+_0x316391(-0xe8,-0x95)](_0x1f6aca,_0x1b597b){function _0x2ee50f(_0x5b728d,_0x17330e){return _0x417442(_0x5b728d-0x1de,_0x17330e);}function _0x116459(_0x131aae,_0x847b3d){return _0x417442(_0x847b3d-0x4a9,_0x131aae);}const _0x1f2a3c=await this[_0x116459(0x593,0x551)](_0x116459(0x55a,0x547),'/api/v1/me'+_0x2ee50f(0x330,0x2cf)+_0x1f6aca+'/promote');return _0x1f2a3c;}async[_0x316391(-0x10e,-0x10d)](){function _0x473308(_0x53d870,_0x41a434){return _0x316391(_0x53d870-0x461,_0x41a434);}function _0x4a0ab5(_0x3c46a3,_0x3bd15b){return _0x316391(_0x3c46a3-0x369,_0x3bd15b);}const _0x434358=await this[_0x4a0ab5(0x1b5,0x187)]('GET',_0x4a0ab5(0x27a,0x22a)+_0x4a0ab5(0x228,0x1f3)+'ts');return _0x434358;}async[_0x417442(0x13d,0xdf)+_0x417442(0x155,0x12d)](_0x469772=0xa){const _0x264646=new URLSearchParams();_0x264646[_0x5d5da5(0x3,0x51)](_0x5d5da5(-0x3a,-0x1),_0x469772[_0x5d5da5(-0x27,-0x87)]());function _0x5d5da5(_0x1cd73f,_0x1dee26){return _0x417442(_0x1cd73f- -0x102,_0x1dee26);}function _0x39e3b5(_0x3c8cba,_0x1d85b3){return _0x417442(_0x1d85b3-0x3b7,_0x3c8cba);}const _0x44bb55=_0x39e3b5(0x593,0x524)+_0x39e3b5(0x4ee,0x521)+_0x39e3b5(0x50f,0x4fa)+_0x264646[_0x39e3b5(0x468,0x492)](),_0x2976c0=await this['request'](_0x5d5da5(0x31,0x31),_0x44bb55);return _0x2976c0[_0x5d5da5(-0x24,0x4b)]??[];}async[_0x316391(-0xdf,-0xde)+'ts'](_0x1a69ed){const _0x123b11=await this['request'](_0x371799(0x2b7,0x2d1),_0xd661c4(0x232,0x200)+encodeURIComponent(_0x1a69ed)+('/memories/'+_0xd661c4(0x276,0x23c))),_0x5e12d5=_0x123b11,_0x16abfd=_0x5e12d5[_0xd661c4(0x276,0x295)]??_0x5e12d5;function _0xd661c4(_0x4abdc6,_0xf57d87){return _0x316391(_0x4abdc6-0x393,_0xf57d87);}function _0x371799(_0x16a69e,_0x7f6ca0){return _0x316391(_0x16a69e-0x3e0,_0x7f6ca0);}return{'totalMemories':_0x16abfd[_0x371799(0x2fa,0x338)+_0xd661c4(0x25f,0x28e)]??0x0,'totalNodes':_0x16abfd['total_node'+'s']??0x0,'lastSyncedAt':_0x16abfd[_0x371799(0x239,0x22d)+_0x371799(0x253,0x232)]??null};}async[_0x316391(-0x165,-0x198)+_0x316391(-0x109,-0xe0)](_0x457b8b){function _0x3020cc(_0x1a2711,_0x1f4625){return _0x417442(_0x1f4625- -0x9f,_0x1a2711);}const _0x231f47=await this['request'](_0x3020cc(-0x60,-0x1),_0x3020cc(0xb6,0xc4)+_0x3020cc(-0x34,0x1)+_0x3430cd(0x461,0x40a),{'skill_memory_id':_0x457b8b[_0x3430cd(0x4df,0x4a9)+_0x3430cd(0x4f7,0x53a)],'outcome':_0x457b8b[_0x3430cd(0x522,0x554)],'difficulty':_0x457b8b[_0x3430cd(0x516,0x51c)],'context_tags':_0x457b8b[_0x3430cd(0x4a5,0x446)+'gs'],'session_id':_0x457b8b[_0x3430cd(0x4a9,0x506)]});function _0x3430cd(_0xb8cf61,_0x7764fe){return _0x417442(_0xb8cf61-0x3af,_0x7764fe);}return _0x231f47;}async[_0x417442(0xf7,0x13b)+_0x417442(0x153,0x136)+_0x417442(0xd6,0xce)](_0x4c18c9){function _0x510ef7(_0x5c4c35,_0xf3c69b){return _0x316391(_0x5c4c35-0x31b,_0xf3c69b);}function _0x1b13ec(_0x54f555,_0x4ff5a5){return _0x316391(_0x54f555-0x64c,_0x4ff5a5);}await this[_0x1b13ec(0x498,0x48e)](_0x1b13ec(0x48e,0x4eb),_0x510ef7(0x222,0x233)+_0x1b13ec(0x490,0x4be)+'event/batc'+'h',{'events':_0x4c18c9});}async['listProfic'+_0x316391(-0x133,-0xcd)](_0x2c775b){const _0x34f0c7=new URLSearchParams();function _0x1fba9d(_0x36a8e1,_0xb57b49){return _0x316391(_0xb57b49-0x5a,_0x36a8e1);}_0x34f0c7[_0x51a2c8(-0xc3,-0xa4)](_0x1fba9d(-0x63,-0xc1),_0x51a2c8(-0x109,-0xdc));if(_0x2c775b)_0x34f0c7['set'](_0x1fba9d(-0x13a,-0x145)+'th',_0x2c775b);const _0x24dca9=_0x51a2c8(0x9,-0x46)+_0x1fba9d(-0x109,-0x155)+_0x34f0c7['toString']();function _0x51a2c8(_0x594193,_0x3a5b3d){return _0x316391(_0x3a5b3d-0xb3,_0x594193);}const _0x213ba1=await this['request'](_0x1fba9d(-0x84,-0xcf),_0x24dca9);return _0x213ba1[_0x51a2c8(-0x8b,-0xcb)]??[];}async[_0x316391(-0x160,-0x138)+_0x417442(0xab,0x10d)](_0x1b9526){function _0x46e124(_0x41987b,_0x4c67c2){return _0x316391(_0x4c67c2-0x1d0,_0x41987b);}function _0x598e31(_0x2b461a,_0x39710e){return _0x316391(_0x2b461a-0x60e,_0x39710e);}return this[_0x598e31(0x45a,0x3e9)](_0x598e31(0x450,0x497),_0x46e124(0x98,0x3a)+_0x46e124(0x80,0x96)+'ion/emotio'+_0x46e124(0x18,0x65),{'message':_0x1b9526[_0x598e31(0x529,0x574)](0x0,0x1f4)});}async[_0x316391(-0x14a,-0x119)+'iciencies'](_0x596e93,_0x29e2cf){function _0x16ec37(_0x7bd61f,_0x22ece3){return _0x316391(_0x7bd61f-0xe8,_0x22ece3);}function _0x575fba(_0x6aa144,_0x4b880b){return _0x316391(_0x4b880b-0x20a,_0x6aa144);}const _0xb1e32e=await this[_0x575fba(0x62,0x56)](_0x16ec37(-0xd6,-0x13a),'/api/v1/tr'+_0x16ec37(-0xb0,-0xd9)+_0x16ec37(-0xc4,-0xd4),{'source_provider':_0x596e93,'skill_ids':_0x29e2cf??null});return _0xb1e32e;}async[_0x316391(-0x121,-0xc0)+_0x417442(0x111,0x182)](_0x875915,_0x1dd84b){function _0x1941fe(_0x4f32e0,_0x5d711c){return _0x316391(_0x4f32e0-0x231,_0x5d711c);}function _0x5797e7(_0x2d2f05,_0x456aad){return _0x316391(_0x456aad-0x1,_0x2d2f05);}const _0x4aaf43=await this[_0x5797e7(-0x164,-0x1b3)]('POST',_0x5797e7(-0x131,-0x191)+'ansfer/imp'+_0x1941fe(0x85,0x57),{'package':_0x875915,'target_provider':_0x1dd84b});return _0x4aaf43;}async['getCompati'+'bilityMatr'+'ix'](){const _0xc1a95d=await this[_0x375920(0x1a2,0x181)]('GET','/api/v1/tr'+'ansfer/com'+_0x2583f3(0x2e2,0x2fb));function _0x2583f3(_0x229942,_0x4ae506){return _0x316391(_0x229942-0x48b,_0x4ae506);}function _0x375920(_0x2cf68f,_0x72704){return _0x316391(_0x2cf68f-0x356,_0x72704);}return _0xc1a95d['matrix']??[];}async[_0x316391(-0x102,-0xb9)+_0x417442(0x113,0xb1)](_0x2f2310=0x1){function _0x4da808(_0x5086c3,_0x51a9dc){return _0x316391(_0x5086c3-0x712,_0x51a9dc);}function _0x3142f9(_0x3fe6f1,_0x4ab9d0){return _0x316391(_0x4ab9d0-0x247,_0x3fe6f1);}const _0x408b00=new URLSearchParams();_0x408b00[_0x4da808(0x5bb,0x5df)](_0x3142f9(0x94,0xc4),_0x2f2310[_0x3142f9(0x101,0xc6)]());const _0x25ddb4='/api/v1/tr'+'ansfer/his'+_0x3142f9(0x17c,0x14c)+_0x408b00['toString'](),_0xe2a637=await this[_0x3142f9(0xcc,0x93)](_0x3142f9(0xd4,0x11e),_0x25ddb4);return _0xe2a637;}async[_0x316391(-0x144,-0x122)](_0x434d3a,_0x2bd32d){function _0x17985a(_0x3e0b05,_0x5c56cd){return _0x316391(_0x3e0b05-0x3ec,_0x5c56cd);}const {readFileSync:_0x7ab36e}=await import(_0x5a4cbe(0x3c9,0x3b8));function _0x5a4cbe(_0x14cbf1,_0x3534c9){return _0x316391(_0x3534c9-0x4df,_0x14cbf1);}const {basename:_0x31dfed}=await import(_0x17985a(0x2c6,0x2bc)),_0x2d4602=_0x7ab36e(_0x434d3a),_0x185b2b=_0x31dfed(_0x434d3a),_0x4cb28a=new FormData();_0x4cb28a['append'](_0x5a4cbe(0x370,0x397),new Blob([_0x2d4602]),_0x185b2b);if(_0x2bd32d[_0x17985a(0x2d0,0x29d)]){if('qDJTI'==='qDJTI')_0x4cb28a[_0x5a4cbe(0x330,0x32a)](_0x5a4cbe(0x3fd,0x3c3),_0x2bd32d['category']);else{const _0x2469a8=_0x1795c0[_0x17985a(0x309,0x34c)][_0x17985a(0x2dd,0x27e)](_0x4354e1=>{function _0x2ffef1(_0x35477a,_0x3652a4){return _0x17985a(_0x35477a- -0x1bf,_0x3652a4);}const _0x468355=_0x16a068['isArray'](_0x4354e1[_0xd757cb(-0x12,-0x63)])?_0x4354e1['loc'][_0x2ffef1(0x125,0x12b)]('.'):'';function _0xd757cb(_0x17e593,_0x456c4e){return _0x17985a(_0x456c4e- -0x298,_0x17e593);}const _0x1ddf90=_0x4354e1[_0x2ffef1(0xda,0x105)]??_0x3db98c[_0xd757cb(0x66,0x43)](_0x4354e1);return _0x468355?_0x468355+':\x20'+_0x1ddf90:_0x1ddf90;})['join'](_0x17985a(0x2f5,0x34d));_0xada20c+=':\x20'+_0x2469a8;}}_0x2bd32d[_0x17985a(0x2d2,0x30b)]&&_0x2bd32d[_0x5a4cbe(0x375,0x3c5)]['length']>0x0&&_0x4cb28a[_0x5a4cbe(0x393,0x32a)](_0x5a4cbe(0x3ec,0x3c5),_0x2bd32d[_0x17985a(0x2d2,0x307)][_0x5a4cbe(0x3d2,0x3d7)](','));const _0x5658c9=await this[_0x5a4cbe(0x3b9,0x372)+_0x17985a(0x257,0x2b7)](_0x17985a(0x22e,0x223),'/api/v1/fi'+_0x5a4cbe(0x3bc,0x3ad),_0x4cb28a),_0x4209dd=_0x5658c9;return{'id':_0x4209dd[_0x17985a(0x2e0,0x344)],'filename':_0x4209dd[_0x5a4cbe(0x2f9,0x344)]};}async[_0x417442(0x101,0x9a)+_0x316391(-0x10b,-0xc1)](_0x5197bd){function _0x2c9731(_0x33d504,_0x342bae){return _0x316391(_0x33d504-0x233,_0x342bae);}const _0x3cadd2=await this[_0x2c9731(0x7f,0x97)](_0x2c9731(0x75,0x29),_0x2c9731(0x111,0x14d)+_0x122b96(0x4d5,0x492)+_0x2c9731(0x9c,0x33),{'content_hash':_0x5197bd}),_0x3d3df1=_0x3cadd2;function _0x122b96(_0x2cacab,_0x5b5e6f){return _0x316391(_0x2cacab-0x679,_0x5b5e6f);}return{'exists':_0x3d3df1[_0x122b96(0x57b,0x563)+'te'],'file_id':_0x3d3df1[_0x2c9731(0x148,0x199)+_0x122b96(0x4fa,0x500)]?.['id']};}async[_0x316391(-0x1a0,-0x1e0)+_0x316391(-0x100,-0xb7)](_0xde78d,_0x1e3870,_0x5a29e3){function _0x543fad(_0x10dc09,_0x4616db){return _0x417442(_0x4616db-0x269,_0x10dc09);}function _0x2645c6(_0x52327e,_0x268fd3){return _0x417442(_0x268fd3- -0x8,_0x52327e);}const _0x35d05a=await this[_0x2645c6(0xcf,0xa0)](_0x2645c6(0x60,0x96),_0x2645c6(0x158,0x165)+_0x543fad(0x390,0x3db),{'memory_id':_0xde78d,'file_id':_0x1e3870,'reference_type':_0x5a29e3[_0x2645c6(0x10b,0x124)+'type'],'reference_path':_0x5a29e3['reference_'+_0x543fad(0x35e,0x33e)]});return _0x35d05a;}async[_0x417442(0x10b,0x136)+_0x316391(-0x168,-0x166)](_0x323f10){function _0x3c1e9f(_0x56c4b7,_0x256abf){return _0x417442(_0x56c4b7- -0xbe,_0x256abf);}const _0x4ef719=await this[_0x5a78c8(0x3d0,0x36f)](_0x3c1e9f(-0x20,-0x27),_0x5a78c8(0x410,0x3f6)+_0x3c1e9f(0x87,0xc0),_0x323f10),_0x22de2d=_0x4ef719?.['context']?.['id']??_0x4ef719?.['id'];function _0x5a78c8(_0x510763,_0xf8a29d){return _0x417442(_0xf8a29d-0x2c7,_0x510763);}if(!_0x22de2d){if(_0x3c1e9f(0x52,0x96)!==_0x3c1e9f(0x52,0x59))return;else throw new Error(_0x5a78c8(0x42c,0x3d2)+_0x3c1e9f(0x9f,0x54)+'ontext.id\x20'+_0x3c1e9f(0x4a,0x1));}return{'id':_0x22de2d};}async['addContext'+_0x417442(0x14c,0x187)](_0x253424,_0x3131dd){function _0x49c36f(_0x20de83,_0x463580){return _0x316391(_0x20de83-0x2b3,_0x463580);}function _0x397f60(_0xbc8310,_0x12765c){return _0x316391(_0x12765c-0x173,_0xbc8310);}return this[_0x397f60(-0xe,-0x41)](_0x397f60(-0x4c,-0x4b),_0x49c36f(0x186,0x1d7)+_0x397f60(0x33,0x5c)+'/'+_0x253424+_0x49c36f(0x116,0xf8),_0x3131dd);}async['createRela'+'tion'](_0x28c45b){function _0x128e8b(_0x5411f7,_0x32561f){return _0x417442(_0x32561f-0x1c1,_0x5411f7);}function _0x1e82e1(_0xae18e8,_0x3a9f6b){return _0x417442(_0x3a9f6b- -0xe1,_0xae18e8);}return this['request']('POST',_0x128e8b(0x2b6,0x2f0)+_0x128e8b(0x283,0x2b1)+'s',_0x28c45b);}async['classifyCo'+_0x316391(-0x14e,-0xe1)](_0x643699){function _0x1d4582(_0x430c96,_0x1a4714){return _0x316391(_0x430c96-0x140,_0x1a4714);}function _0x35e56a(_0x572bfa,_0x4df344){return _0x316391(_0x4df344-0x66d,_0x572bfa);}try{const _0x1b3f11=await this[_0x1d4582(-0x74,-0x5e)](_0x35e56a(0x4bd,0x4af),_0x1d4582(-0x7d,-0x43)+_0x35e56a(0x570,0x515)+'ssify',{'content':_0x643699[_0x35e56a(0x47b,0x4e2)][_0x35e56a(0x53d,0x588)](0x0,0x7d0),'tags':_0x643699['tags']??[],'category':_0x643699[_0x35e56a(0x584,0x551)]}),_0x14d69e=_0x1b3f11;if(_0x14d69e[_0x1d4582(0x3c,0x4)]&&_0x14d69e[_0x1d4582(-0x6e,-0x1)])return _0x14d69e[_0x35e56a(0x4bf,0x4bf)];return null;}catch{return null;}}static ['RETRYABLE_'+_0x316391(-0x15f,-0x199)]=new Set([0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]);static [_0x417442(0xa3,0x113)+'S']=0x3;static [_0x417442(0x13c,0x147)+_0x417442(0x16f,0x103)]=0x3e8;async[_0x316391(-0x1b4,-0x143)](_0x5020b8,_0x2ddffd,_0x33972){function _0x22a53c(_0x1af4fa,_0xa9c843){return _0x316391(_0xa9c843-0x98,_0x1af4fa);}let _0x3c236c;function _0x18d0b1(_0x4f508a,_0x2f015f){return _0x316391(_0x4f508a-0xe8,_0x2f015f);}for(let _0x2130a5=0x0;_0x2130a5<A2AClient[_0x18d0b1(-0xd1,-0xd0)+'S'];_0x2130a5++){if('JQuUH'!==_0x18d0b1(-0x8,0x1d))return this[_0x22a53c(-0x140,-0x11c)](_0x18d0b1(-0xd6,-0x129),_0x22a53c(-0x65,-0x95)+_0x18d0b1(-0x2f,0x21)+'/'+_0x5df4e9+_0x18d0b1(-0xb5,-0xca),_0x140016);else{const _0x18719d=''+this[_0x22a53c(-0x5c,-0x8b)][_0x18d0b1(-0x53,-0x22)]+_0x2ddffd,_0x42a5b3=new AbortController(),_0x4bf11e=setTimeout(()=>_0x42a5b3['abort'](),this[_0x22a53c(-0x76,-0x7e)]);try{const _0x42c080=await fetch(_0x18719d,{'method':_0x5020b8,'headers':{'Content-Type':_0x22a53c(-0x73,-0xd2)+_0x18d0b1(0x7,0xd),'x-api-key':this[_0x18d0b1(-0x3b,-0x4a)][_0x22a53c(-0x112,-0x106)],'X-Plugin-Version':_pluginVersion,...this['enabledFea'+_0x22a53c(0x25,-0x46)][_0x22a53c(-0x5d,-0x45)]>0x0&&{'X-Plugin-Features':this[_0x18d0b1(-0x55,-0xc5)+_0x18d0b1(0xa,-0x36)][_0x22a53c(-0x7b,-0x70)](',')}},'body':_0x33972?JSON[_0x18d0b1(-0x29,-0x52)](_0x33972):undefined,'signal':_0x42a5b3[_0x22a53c(-0xb8,-0xdb)]});clearTimeout(_0x4bf11e);if(A2AClient[_0x18d0b1(-0x49,-0x12)+_0x18d0b1(-0x77,-0x5c)][_0x22a53c(-0xb3,-0x4c)](_0x42c080[_0x22a53c(-0xae,-0x102)])&&_0x2130a5<A2AClient[_0x18d0b1(-0xd1,-0xf7)+'S']-0x1){const _0x174381=A2AClient[_0x22a53c(-0x5c,-0x88)+_0x18d0b1(-0x5,-0x4a)]*Math[_0x22a53c(-0x7d,-0x69)](0x2,_0x2130a5);await new Promise(_0xfd9971=>setTimeout(_0xfd9971,_0x174381));continue;}if(!_0x42c080['ok']){if(_0x22a53c(-0x109,-0xf6)===_0x18d0b1(-0x76,-0x96))return this[_0x18d0b1(-0xcc,-0x12c)]('POST',_0x22a53c(-0xd0,-0xc9)+_0x24e756(_0x44ca9c)+(_0x18d0b1(-0x5d,-0xd)+_0x18d0b1(-0x4,0x6a)),{'memory_id':_0x2e2140,'vector_clock':_0x3bfb5f});else await this['handleErro'+_0x18d0b1(-0xd0,-0xa0)](_0x42c080);}if(_0x5020b8===_0x22a53c(-0xb3,-0xf2)&&_0x42c080[_0x22a53c(-0xde,-0x102)]===0xcc)return;return await _0x42c080['json']();}catch(_0x5a78ed){if('YIdIb'==='YIdIb'){clearTimeout(_0x4bf11e);if(_0x5a78ed instanceof Error){if(getErrorStatus(_0x5a78ed)!==undefined)throw _0x5a78ed;if(_0x5a78ed[_0x18d0b1(-0xc3,-0xae)][_0x22a53c(-0xb3,-0xe5)](_0x18d0b1(-0xa9,-0x10c))||_0x5a78ed[_0x18d0b1(-0xc3,-0x94)][_0x18d0b1(-0x95,-0xb7)]('HTTP\x20403')||_0x5a78ed[_0x18d0b1(-0xc3,-0xaf)][_0x18d0b1(-0x95,-0x46)]('HTTP\x20404')||_0x5a78ed['message'][_0x18d0b1(-0x95,-0xd9)](_0x18d0b1(-0x8f,-0x94)))throw _0x5a78ed;if(_0x2130a5<A2AClient[_0x18d0b1(-0xd1,-0x110)+'S']-0x1){_0x3c236c=_0x5a78ed;const _0x1eb769=A2AClient[_0x18d0b1(-0x38,-0x92)+'_MS']*Math[_0x18d0b1(-0x19,-0x55)](0x2,_0x2130a5);await new Promise(_0x2683b8=>setTimeout(_0x2683b8,_0x1eb769));continue;}if(_0x5a78ed[_0x22a53c(-0x9c,-0x8c)]===_0x22a53c(-0xdd,-0xbd))throw new Error('요청\x20시간\x20초과:\x20'+this[_0x22a53c(-0x1b,-0x7e)]+'ms를\x20넘었습니다');throw new Error(_0x22a53c(-0x14b,-0x101)+_0x5a78ed[_0x22a53c(-0x166,-0x113)]);}throw _0x5a78ed;}else throw _0x9081c2;}}}throw _0x3c236c??new Error('요청\x20실패:\x20'+A2AClient[_0x18d0b1(-0xd1,-0xe2)+'S']+_0x18d0b1(-0xc0,-0x68));}async['requestMul'+_0x417442(0xc7,0xd9)](_0x37380e,_0x5ab9a3,_0x28fb4e){const _0x103fab=''+this[_0x46daad(0x41e,0x3dd)][_0x263a0c(0x21e,0x1e0)]+_0x5ab9a3;function _0x46daad(_0x28ecde,_0x2d7fe0){return _0x417442(_0x28ecde-0x2e5,_0x2d7fe0);}function _0x263a0c(_0x4e5968,_0x4971b6){return _0x417442(_0x4971b6-0xbf,_0x4e5968);}const _0x3d1e1b=new AbortController(),_0x1aeb9d=setTimeout(()=>_0x3d1e1b[_0x46daad(0x3c1,0x3d0)](),this[_0x263a0c(0x1aa,0x205)]);try{const _0x457e26=await fetch(_0x103fab,{'method':_0x37380e,'headers':{'x-api-key':this[_0x263a0c(0x1ee,0x1f8)]['apiKey'],'X-Plugin-Version':_pluginVersion},'body':_0x28fb4e,'signal':_0x3d1e1b['signal']});return clearTimeout(_0x1aeb9d),!_0x457e26['ok']&&await this['handleErro'+'rResponse'](_0x457e26),await _0x457e26['json']();}catch(_0x570c98){clearTimeout(_0x1aeb9d);if(_0x570c98 instanceof Error&&_0x570c98['name']==='AbortError')throw new Error(_0x263a0c(0x1c3,0x221)+this[_0x263a0c(0x23b,0x205)]+_0x263a0c(0x278,0x218));throw _0x570c98;}}async[_0x417442(0x131,0x190)+_0x417442(0xa4,0x9a)](_0x5ceb7a){const _0x40ca7b=_0x5ceb7a[_0xbcfc32(-0x8a,-0xe9)];if(_0x40ca7b===0x191)throw withStatus(new Error(_0xbcfc32(0x3,-0x20)+_0x1fb3c8(-0x138,-0x164)+'요'),0x191);function _0xbcfc32(_0x275ece,_0x29483d){return _0x316391(_0x275ece-0x110,_0x29483d);}function _0x1fb3c8(_0x3e9834,_0x44384b){return _0x316391(_0x44384b-0x3e,_0x3e9834);}if(_0x40ca7b===0x1ad)throw withStatus(new Error(_0xbcfc32(-0x4d,-0x6d)+_0x1fb3c8(-0xdd,-0x144)),0x1ad);let _0x29a86b=_0x1fb3c8(-0x11f,-0xf8)+_0x40ca7b;try{if(_0x1fb3c8(-0x101,-0x102)===_0x1fb3c8(-0x13f,-0x13e))return null;else{const _0x5e48e4=await _0x5ceb7a[_0xbcfc32(-0x25,-0x21)]();if(Array['isArray'](_0x5e48e4[_0x1fb3c8(-0x94,-0xa5)])){const _0x255f89=_0x5e48e4[_0xbcfc32(0x2d,0x85)]['map'](_0x3498ae=>{const _0x1e7a19=Array[_0x3d1db1(0x1a9,0x1ae)](_0x3498ae[_0x3d1db1(0x108,0x133)])?_0x3498ae[_0x3d1db1(0x172,0x133)][_0x5099fd(0x121,0xb3)]('.'):'',_0x329857=_0x3498ae[_0x3d1db1(0x16c,0x197)]??JSON[_0x5099fd(0x98,0xaa)](_0x3498ae);function _0x3d1db1(_0x46fe59,_0x4d00b2){return _0x1fb3c8(_0x46fe59,_0x4d00b2-0x2ac);}function _0x5099fd(_0x2547bf,_0x1caaf2){return _0x1fb3c8(_0x2547bf,_0x1caaf2-0x17d);}return _0x1e7a19?_0x1e7a19+':\x20'+_0x329857:_0x329857;})['join']('\x20|\x20');_0x29a86b+=':\x20'+_0x255f89;}else{if(_0x5e48e4[_0xbcfc32(0x2d,-0x2b)])_0x29a86b+=':\x20'+_0x5e48e4[_0x1fb3c8(-0xac,-0xa5)];else _0x5e48e4[_0xbcfc32(-0x9b,-0x65)]&&(_0x29a86b+=':\x20'+_0x5e48e4[_0x1fb3c8(-0x106,-0x16d)]);}}}catch{}throw withStatus(new Error(_0x29a86b),_0x40ca7b);}}
|
package/dist/sync/encryption.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2ac12e,_0x487a70){const _0x3a215f=_0x2ac12e();function _0x17f2ca(_0x1291ea,_0x353ea6){return _0xe45e(_0x1291ea- -0x1fe,_0x353ea6);}function _0x527f98(_0xf197b6,_0x2a1b21){return _0xe45e(_0x2a1b21- -0x6e,_0xf197b6);}while(!![]){try{const _0x3e88f1=-parseInt(_0x527f98(0x122,0x138))/0x1+-parseInt(_0x527f98(0x136,0x142))/0x2+parseInt(_0x17f2ca(-0x3e,-0x3f))/0x3*(-parseInt(_0x527f98(0x151,0x13f))/0x4)+-parseInt(_0x527f98(0x165,0x14e))/0x5*(-parseInt(_0x527f98(0x157,0x149))/0x6)+-parseInt(_0x527f98(0x124,0x12c))/0x7+parseInt(_0x527f98(0x139,0x141))/0x8+parseInt(_0x527f98(0x156,0x14f))/0x9;if(_0x3e88f1===_0x487a70)break;else _0x3a215f['push'](_0x3a215f['shift']());}catch(_0x2dd39e){_0x3a215f['push'](_0x3a215f['shift']());}}}(_0x4bb7,0x2ee47));import{randomBytes,createCipheriv,createDecipheriv,pbkdf2Sync}from'node:crypto';const ALGORITHM=_0x301a88(-0x19b,-0x1b2)+'m',KEY_LENGTH=0x20;function _0x301a88(_0x5e245b,_0x28534a){return _0xe45e(_0x5e245b- -0x342,_0x28534a);}function _0xe45e(_0x5a7409,_0x3f9348){_0x5a7409=_0x5a7409-0x19a;const _0x4bb7fa=_0x4bb7();let _0xe45e40=_0x4bb7fa[_0x5a7409];if(_0xe45e['CjkVpq']===undefined){var _0x114366=function(_0x2b6567){const _0x48750d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3aebd9='',_0x573e1d='';for(let _0x2e5c72=0x0,_0x3c6fe4,_0x58b9ef,_0xf21c=0x0;_0x58b9ef=_0x2b6567['charAt'](_0xf21c++);~_0x58b9ef&&(_0x3c6fe4=_0x2e5c72%0x4?_0x3c6fe4*0x40+_0x58b9ef:_0x58b9ef,_0x2e5c72++%0x4)?_0x3aebd9+=String['fromCharCode'](0xff&_0x3c6fe4>>(-0x2*_0x2e5c72&0x6)):0x0){_0x58b9ef=_0x48750d['indexOf'](_0x58b9ef);}for(let _0x5289d4=0x0,_0x51473a=_0x3aebd9['length'];_0x5289d4<_0x51473a;_0x5289d4++){_0x573e1d+='%'+('00'+_0x3aebd9['charCodeAt'](_0x5289d4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x573e1d);};_0xe45e['CoLGIo']=_0x114366,_0xe45e['YBxLjz']={},_0xe45e['CjkVpq']=!![];}const _0x378fd4=_0x4bb7fa[0x0],_0x5b2b21=_0x5a7409+_0x378fd4,_0x41ca99=_0xe45e['YBxLjz'][_0x5b2b21];return!_0x41ca99?(_0xe45e40=_0xe45e['CoLGIo'](_0xe45e40),_0xe45e['YBxLjz'][_0x5b2b21]=_0xe45e40):_0xe45e40=_0x41ca99,_0xe45e40;}const IV_LENGTH=0xc,TAG_LENGTH=0x10,SALT_LENGTH=0x10,PBKDF2_ITERATIONS=0x186a0,PBKDF2_DIGEST=_0x351d47(0x501,0x4f6);export function generateEncryptionKey(){return randomBytes(KEY_LENGTH);}export function deriveKey(_0x30e111,_0x4a169b){const _0x3a42c3=_0x4a169b??randomBytes(SALT_LENGTH),_0x45dfaa=pbkdf2Sync(_0x30e111,_0x3a42c3,PBKDF2_ITERATIONS,KEY_LENGTH,PBKDF2_DIGEST);return{'key':_0x45dfaa,'salt':_0x3a42c3};}export function encryptContent(_0x3bf274,_0x180c4d){if(_0x180c4d[_0x27d2f9(0x4f1,0x4fc)]!==KEY_LENGTH)throw new Error(_0x27d2f9(0x4e1,0x4f1)+KEY_LENGTH+(_0x42349b(0xec,0xe3)+_0x42349b(0xdd,0xe1))+_0x180c4d['length']+')');const _0x44fe54=randomBytes(IV_LENGTH);function _0x27d2f9(_0x1867b8,_0x2aabd8){return _0x301a88(_0x1867b8-0x670,_0x2aabd8);}const _0x579cbe=createCipheriv(ALGORITHM,_0x180c4d,_0x44fe54),_0x19fdaf=Buffer['from'](_0x3bf274,_0x42349b(0xed,0xef)),_0x4879ce=Buffer['concat']([_0x579cbe[_0x42349b(0xe5,0xd3)](_0x19fdaf),_0x579cbe['final']()]),_0x17ee13=_0x579cbe[_0x27d2f9(0x4dc,0x4cc)]();function _0x42349b(_0x182388,_0xbdc22b){return _0x301a88(_0xbdc22b-0x26d,_0x182388);}return{'ciphertext':_0x4879ce[_0x42349b(0xe1,0xcb)](_0x42349b(0xde,0xe4)),'iv':_0x44fe54[_0x42349b(0xd2,0xcb)](_0x27d2f9(0x4e7,0x4de)),'tag':_0x17ee13[_0x42349b(0xbb,0xcb)](_0x27d2f9(0x4e7,0x4f2))};}export function decryptContent(_0x19f6cb,_0x2e0273){if(_0x2e0273[_0x5e69c6(0x4d1,0x4e1)]!==KEY_LENGTH)throw new Error(_0x3636ab(-0x95,-0x8f)+KEY_LENGTH+('\x20bytes여야\x20합'+'니다\x20(현재:\x20')+_0x2e0273[_0x3636ab(-0x85,-0x94)]+')');const _0x5793b9=Buffer[_0x5e69c6(0x4eb,0x4d9)](_0x19f6cb['iv'],_0x5e69c6(0x4eb,0x4d7)),_0x4f663e=Buffer[_0x3636ab(-0x8d,-0x7a)](_0x19f6cb[_0x3636ab(-0x87,-0x7d)],'base64'),_0x311cde=Buffer[_0x3636ab(-0x8d,-0xa2)](_0x19f6cb[_0x3636ab(-0x97,-0x81)],_0x3636ab(-0x8f,-0x82)),_0x27ce37=createDecipheriv(ALGORITHM,_0x2e0273,_0x5793b9);_0x27ce37[_0x5e69c6(0x4bc,0x4c3)](_0x311cde);function _0x5e69c6(_0x1e2ec0,_0x4a3fd3){return _0x301a88(_0x4a3fd3-0x660,_0x1e2ec0);}function _0x3636ab(_0x385651,_0x9b7797){return _0x301a88(_0x385651-0xfa,_0x9b7797);}try{const _0x576922=Buffer[_0x5e69c6(0x4bd,0x4c2)]([_0x27ce37[_0x5e69c6(0x4b3,0x4c6)](_0x4f663e),_0x27ce37['final']()]);return _0x576922[_0x5e69c6(0x4cb,0x4be)](_0x3636ab(-0x84,-0x99));}catch(_0x492cdf){if(_0x492cdf instanceof Error)throw new Error(_0x5e69c6(0x4f4,0x4e4)+_0x492cdf[_0x5e69c6(0x4e2,0x4e5)]+(_0x5e69c6(0x4b3,0x4c7)+_0x3636ab(-0x9e,-0xab)));throw _0x492cdf;}}export function encryptEmbedding(_0x2935b0,_0x4adb7c){const _0x100f0b=new Float64Array(_0x2935b0),_0xfc8757=Buffer[_0x55f2d8(0x4cd,0x4c8)](_0x100f0b[_0x55f2d8(0x4bd,0x4b9)]);function _0x55f2d8(_0x5c3218,_0x5e57f4){return _0x301a88(_0x5c3218-0x654,_0x5e57f4);}const _0x4c533d=randomBytes(IV_LENGTH),_0x51cfe2=createCipheriv(ALGORITHM,_0x4adb7c,_0x4c533d);function _0xfd634b(_0x1c6b81,_0x387834){return _0x301a88(_0x387834-0xe0,_0x1c6b81);}const _0x5aa16b=Buffer[_0xfd634b(-0xb3,-0xbe)]([_0x51cfe2[_0x55f2d8(0x4ba,0x4c7)](_0xfc8757),_0x51cfe2[_0xfd634b(-0xad,-0xb0)]()]),_0x14849c=_0x51cfe2[_0x55f2d8(0x4c0,0x4c8)](),_0x4d0eab=Buffer[_0xfd634b(-0xcf,-0xbe)]([_0x4c533d,_0x14849c,_0x5aa16b]);return _0x4d0eab[_0xfd634b(-0xb7,-0xc2)](_0x55f2d8(0x4cb,0x4c7));}export function decryptEmbedding(_0x3590a4,_0x34c97d){function _0x3849e5(_0x51d445,_0x11a64b){return _0x351d47(_0x51d445,_0x11a64b- -0x696);}function _0x5e78c8(_0x532885,_0x26bbd8){return _0x351d47(_0x26bbd8,_0x532885- -0x4ac);}const _0x3b8561=Buffer[_0x5e78c8(0x59,0x43)](_0x3590a4,_0x3849e5(-0x1a9,-0x193));if(_0x3b8561[_0x5e78c8(0x61,0x4d)]<IV_LENGTH+TAG_LENGTH){if(_0x3849e5(-0x1a7,-0x1b0)!==_0x3849e5(-0x1a1,-0x1b0))return null;else throw new Error(_0x5e78c8(0x39,0x2c)+_0x3849e5(-0x196,-0x197)+'다');}const _0x18fafc=_0x3b8561['subarray'](0x0,IV_LENGTH),_0x21d556=_0x3b8561[_0x5e78c8(0x58,0x53)](IV_LENGTH,IV_LENGTH+TAG_LENGTH),_0x48a14e=_0x3b8561['subarray'](IV_LENGTH+TAG_LENGTH),_0x4c6003=createDecipheriv(ALGORITHM,_0x34c97d,_0x18fafc);_0x4c6003['setAuthTag'](_0x21d556);try{const _0x25a689=Buffer['concat']([_0x4c6003[_0x5e78c8(0x46,0x39)](_0x48a14e),_0x4c6003['final']()]),_0x9ba849=new Float64Array(_0x25a689[_0x5e78c8(0x49,0x4d)],_0x25a689['byteOffset'],_0x25a689[_0x3849e5(-0x198,-0x1ad)]/Float64Array[_0x5e78c8(0x3c,0x46)+_0x3849e5(-0x184,-0x187)]);return Array[_0x5e78c8(0x59,0x43)](_0x9ba849);}catch(_0x9fad88){if(_0x9fad88 instanceof Error)throw new Error(_0x3849e5(-0x19f,-0x18e)+':\x20'+_0x9fad88['message']);throw _0x9fad88;}}export function isValidEncryptedPayload(_0x16465e){if(typeof _0x16465e!==_0xe6c0b6(0xf5,0xe9)||_0x16465e===null)return![];const _0xf3400f=_0x16465e;function _0xe6c0b6(_0x34edc0,_0x12f170){return _0x301a88(_0x12f170-0x277,_0x34edc0);}function _0xb94b8b(_0x3c33dc,_0x590c82){return _0x301a88(_0x590c82-0x379,_0x3c33dc);}return typeof _0xf3400f[_0xb94b8b(0x1e9,0x1f8)]==='string'&&typeof _0xf3400f['iv']===_0xb94b8b(0x206,0x1f6)&&typeof _0xf3400f[_0xe6c0b6(0xee,0xe6)]===_0xb94b8b(0x1df,0x1f6);}function _0x351d47(_0x294ef6,_0x1003a0){return _0xe45e(_0x1003a0-0x34a,_0x294ef6);}function _0x4bb7(){const _0x435cd8=['icJSNPJRQRVRKjWG7ykKioUyKoUkLa','ioUnSoYDTo2eScdRS4dSOBaP','yNvMzMvY','C2HHnteY','mZGXmKvWzvHRBW','z2v0qxv0AfrHzW','mtK5mta0ofncAK9gAG','ndm0mZy2zMnQyuj4','DgfN','zMLUywW','7jwu7zI47zMuio2cPoUkLca','B2jQzwn0','7j207ysW6RcaioUeIoUSTcdSP6FSIRxRI4G','64Ui64UKicJTMitSNQW6ia','ndu4ntjLBvzyBNa','igj5DgvZ7jES7jw8io2vQq','yMfZzty0','C3vIyxjYyxK','zNjVBq','mJbjquDmzvm','nJq3odaXmvbYy0f0Aa','7j6e67kG65sPioUZTE2yUo2zLcdSI6tTJkG','C3rYAw5N','otKZu3LbvxPT','y2LWAgvYDgv4Da','zw5JCNLWDgvK','BgvUz3rO','DxrMltG','ruXftuvova','67o17zI47zMuioYlPo2mQdOG','BwvZC2fNzq','mtmYodm5n1b6DMjdra','7jwu7zI47zMu65cCioYEHoUYOoUuQsdRJBa','DuLlvKS','C3rYAw5NAwz5','qLLurvnFuevsxW','yNL0zuXLBMD0Aa','Dg9tDhjPBMC','CgfYC2u','u0jyvwu','zgf0yq','y29Uy2f0','C2v0qxv0AfrHzW','odq3nJbbsw1PCvq','ywvZlti1nI1NyW','DxbKyxrL'];_0x4bb7=function(){return _0x435cd8;};return _0x4bb7();}export function wrapEncryptedContent(_0x2a4b7d){function _0x2ed744(_0x1da69e,_0xb2492e){return _0x301a88(_0x1da69e-0x5a4,_0xb2492e);}function _0x502d79(_0x36f0cf,_0x151957){return _0x301a88(_0x36f0cf-0x654,_0x151957);}return JSON[_0x502d79(0x4af,0x4a6)]({'encrypted':!![],'data':_0x2a4b7d['ciphertext'],'iv':_0x2a4b7d['iv'],'tag':_0x2a4b7d[_0x2ed744(0x413,0x419)]});}export function unwrapEncryptedContent(_0x366a12){function _0x5079e8(_0x394ab9,_0x24b5e9){return _0x301a88(_0x394ab9-0x4c1,_0x24b5e9);}function _0x47e091(_0x487f34,_0x4911b4){return _0x301a88(_0x487f34-0x203,_0x4911b4);}try{if('SBXUe'===_0x47e091(0x63,0x7a)){const _0xb5fc8e=JSON[_0x47e091(0x62,0x78)](_0x366a12);if(_0xb5fc8e[_0x5079e8(0x341,0x332)]!==!![])return null;if(typeof _0xb5fc8e[_0x47e091(0x64,0x4f)]!==_0x47e091(0x80,0x79)||typeof _0xb5fc8e['iv']!=='string'||typeof _0xb5fc8e['tag']!==_0x47e091(0x80,0x74))return null;return{'ciphertext':_0xb5fc8e[_0x5079e8(0x322,0x31a)],'iv':_0xb5fc8e['iv'],'tag':_0xb5fc8e[_0x47e091(0x72,0x88)]};}else{if(_0x596242[_0x47e091(0x84,0x9b)]!==_0x2d26dd)throw new _0x1c39eb('암호화\x20키는\x20'+_0xc47f9e+(_0x5079e8(0x337,0x32e)+_0x5079e8(0x335,0x33b))+_0x4dddf7['length']+')');const _0xbf9ea5=_0x3aebb9(_0x9e6823),_0x52938c=_0x37270c(_0x338efe,_0x528bc3,_0xbf9ea5),_0x14e1cc=_0xc47152['from'](_0x353be2,_0x5079e8(0x343,0x343)),_0x1550b4=_0xfd0c59['concat']([_0x52938c[_0x5079e8(0x327,0x33a)](_0x14e1cc),_0x52938c['final']()]),_0x3f02e6=_0x52938c['getAuthTag']();return{'ciphertext':_0x1550b4[_0x47e091(0x61,0x61)](_0x47e091(0x7a,0x6a)),'iv':_0xbf9ea5[_0x47e091(0x61,0x78)](_0x47e091(0x7a,0x67)),'tag':_0x3f02e6[_0x47e091(0x61,0x6c)](_0x5079e8(0x338,0x325))};}}catch{return null;}}
|
|
1
|
+
(function(_0x27a718,_0x3fc425){const _0x27b683=_0x27a718();function _0x8cd23(_0x10f587,_0x36e18a){return _0x1726(_0x36e18a-0x297,_0x10f587);}function _0x42ea45(_0x2e6183,_0x33f303){return _0x1726(_0x33f303-0x1bc,_0x2e6183);}while(!![]){try{const _0x2361e8=-parseInt(_0x42ea45(0x2e2,0x2dc))/0x1*(parseInt(_0x42ea45(0x2f6,0x305))/0x2)+-parseInt(_0x42ea45(0x2ea,0x2d7))/0x3*(-parseInt(_0x42ea45(0x2e9,0x2e2))/0x4)+parseInt(_0x42ea45(0x300,0x2ff))/0x5*(parseInt(_0x42ea45(0x2e6,0x2e4))/0x6)+parseInt(_0x8cd23(0x3d3,0x3be))/0x7*(parseInt(_0x42ea45(0x2ee,0x2ed))/0x8)+-parseInt(_0x8cd23(0x3b3,0x3b3))/0x9+parseInt(_0x8cd23(0x3d6,0x3cb))/0xa*(parseInt(_0x8cd23(0x3d1,0x3d8))/0xb)+-parseInt(_0x8cd23(0x3aa,0x3bb))/0xc*(-parseInt(_0x42ea45(0x304,0x2eb))/0xd);if(_0x2361e8===_0x3fc425)break;else _0x27b683['push'](_0x27b683['shift']());}catch(_0x365f2c){_0x27b683['push'](_0x27b683['shift']());}}}(_0x1f1e,0xee077));import{randomBytes,createCipheriv,createDecipheriv,pbkdf2Sync}from'node:crypto';const ALGORITHM=_0x2497d3(0x1c6,0x1ca)+'m',KEY_LENGTH=0x20,IV_LENGTH=0xc,TAG_LENGTH=0x10,SALT_LENGTH=0x10,PBKDF2_ITERATIONS=0x186a0,PBKDF2_DIGEST=_0x2497d3(0x1bc,0x1b5);function _0x2497d3(_0x124e41,_0x4e54d9){return _0x1726(_0x124e41-0x7c,_0x4e54d9);}export function generateEncryptionKey(){return randomBytes(KEY_LENGTH);}export function deriveKey(_0xc0e729,_0x123a60){const _0xa1e781=_0x123a60??randomBytes(SALT_LENGTH),_0x2eb5a5=pbkdf2Sync(_0xc0e729,_0xa1e781,PBKDF2_ITERATIONS,KEY_LENGTH,PBKDF2_DIGEST);return{'key':_0x2eb5a5,'salt':_0xa1e781};}export function encryptContent(_0x5bb23c,_0xf5f9a){if(_0xf5f9a[_0x1235a0(0x4d5,0x4dc)]!==KEY_LENGTH)throw new Error(_0x1235a0(0x4d6,0x4cb)+KEY_LENGTH+('\x20bytes여야\x20합'+_0x1235a0(0x4d1,0x4d5))+_0xf5f9a[_0x1235a0(0x4f4,0x4dc)]+')');const _0x406f=randomBytes(IV_LENGTH),_0x2a73de=createCipheriv(ALGORITHM,_0xf5f9a,_0x406f),_0x7df9ae=Buffer[_0x4e1936(0x441,0x43a)](_0x5bb23c,_0x4e1936(0x446,0x442));function _0x4e1936(_0x2ca233,_0x21f07c){return _0x2497d3(_0x21f07c-0x290,_0x2ca233);}const _0x44c43b=Buffer[_0x4e1936(0x44c,0x454)]([_0x2a73de[_0x1235a0(0x4ab,0x4bf)](_0x7df9ae),_0x2a73de[_0x1235a0(0x4d5,0x4e1)]()]),_0x43598d=_0x2a73de[_0x1235a0(0x4de,0x4c7)]();function _0x1235a0(_0x1e2857,_0x91b395){return _0x2497d3(_0x91b395-0x326,_0x1e2857);}return{'ciphertext':_0x44c43b['toString'](_0x1235a0(0x4d5,0x4c0)),'iv':_0x406f[_0x4e1936(0x448,0x43e)](_0x4e1936(0x420,0x42a)),'tag':_0x43598d[_0x1235a0(0x4db,0x4d4)](_0x4e1936(0x41d,0x42a))};}export function decryptContent(_0x6d6bbd,_0x3522eb){if(_0x3522eb['length']!==KEY_LENGTH)throw new Error(_0x2cd5bc(0x44e,0x44b)+KEY_LENGTH+(_0x2cd5bc(0x428,0x43c)+'니다\x20(현재:\x20')+_0x3522eb[_0x2cd5bc(0x46b,0x45c)]+')');const _0x5edf86=Buffer[_0x2ce0e1(0xeb,0xdc)](_0x6d6bbd['iv'],_0x2cd5bc(0x433,0x440)),_0x27b440=Buffer['from'](_0x6d6bbd[_0x2cd5bc(0x47f,0x468)],_0x2ce0e1(0xc9,0xcc));function _0x2cd5bc(_0x108692,_0x5e19d8){return _0x260581(_0x5e19d8-0x520,_0x108692);}const _0x4da609=Buffer[_0x2ce0e1(0xdd,0xdc)](_0x6d6bbd['tag'],_0x2cd5bc(0x44a,0x440));function _0x2ce0e1(_0x47bcb3,_0x3744c5){return _0x260581(_0x3744c5-0x1ac,_0x47bcb3);}const _0x3bbadd=createDecipheriv(ALGORITHM,_0x3522eb,_0x5edf86);_0x3bbadd['setAuthTag'](_0x4da609);try{const _0x139485=Buffer[_0x2cd5bc(0x46e,0x46a)]([_0x3bbadd[_0x2cd5bc(0x454,0x43f)](_0x27b440),_0x3bbadd['final']()]);return _0x139485['toString'](_0x2cd5bc(0x46e,0x458));}catch(_0x4218fd){if(_0x4218fd instanceof Error)throw new Error(_0x2ce0e1(0xff,0xe6)+_0x4218fd[_0x2ce0e1(0xe3,0xea)]+(_0x2ce0e1(0xe0,0xf5)+_0x2cd5bc(0x45d,0x459)));throw _0x4218fd;}}export function encryptEmbedding(_0x37edd0,_0x3feca2){const _0x5b19fc=new Float64Array(_0x37edd0),_0x44a26b=Buffer[_0x18749d(0xa2,0x8c)](_0x5b19fc[_0x18749d(0x67,0x7f)]),_0x11e405=randomBytes(IV_LENGTH),_0x1672b6=createCipheriv(ALGORITHM,_0x3feca2,_0x11e405),_0x413b89=Buffer[_0x20faec(0x8f,0x96)]([_0x1672b6[_0x20faec(0x61,0x6b)](_0x44a26b),_0x1672b6[_0x20faec(0x7f,0x8d)]()]),_0x2fd8a3=_0x1672b6[_0x18749d(0x76,0x83)]();function _0x20faec(_0x2af376,_0x5d231e){return _0x2497d3(_0x5d231e- -0x12e,_0x2af376);}function _0x18749d(_0x598b30,_0x27c137){return _0x2497d3(_0x27c137- -0x11e,_0x598b30);}const _0x363fc=Buffer[_0x20faec(0x88,0x96)]([_0x11e405,_0x2fd8a3,_0x413b89]);return _0x363fc['toString'](_0x18749d(0x7e,0x7c));}export function decryptEmbedding(_0x58c6ea,_0x35421e){const _0x1fab2a=Buffer[_0x41ebef(-0x223,-0x20b)](_0x58c6ea,_0x41ebef(-0x22e,-0x21b));if(_0x1fab2a[_0x41ebef(-0x1fc,-0x1ff)]<IV_LENGTH+TAG_LENGTH)throw new Error(_0x41ebef(-0x20f,-0x1fc)+_0x1cf84b(-0x22c,-0x241)+'다');const _0x179bf4=_0x1fab2a[_0x41ebef(-0x1e4,-0x1fb)](0x0,IV_LENGTH);function _0x41ebef(_0x4ea5d2,_0x1ff642){return _0x260581(_0x1ff642- -0x13b,_0x4ea5d2);}const _0x56fec5=_0x1fab2a[_0x41ebef(-0x1f2,-0x1fb)](IV_LENGTH,IV_LENGTH+TAG_LENGTH),_0x204b94=_0x1fab2a[_0x41ebef(-0x1fd,-0x1fb)](IV_LENGTH+TAG_LENGTH),_0x54b2fc=createDecipheriv(ALGORITHM,_0x35421e,_0x179bf4);function _0x1cf84b(_0x5a5501,_0x57ac8a){return _0x260581(_0x5a5501- -0x15e,_0x57ac8a);}_0x54b2fc[_0x1cf84b(-0x223,-0x227)](_0x56fec5);try{if('tZePa'!==_0x41ebef(-0x20a,-0x1f4)){const _0x256de8=Buffer[_0x41ebef(-0x1e2,-0x1f1)]([_0x54b2fc['update'](_0x204b94),_0x54b2fc['final']()]),_0x51ce2f=new Float64Array(_0x256de8['buffer'],_0x256de8[_0x41ebef(-0x1df,-0x1f5)],_0x256de8[_0x1cf84b(-0x23d,-0x23d)]/Float64Array[_0x1cf84b(-0x232,-0x23f)+_0x1cf84b(-0x227,-0x20f)]);return Array[_0x41ebef(-0x211,-0x20b)](_0x51ce2f);}else return null;}catch(_0x20ecf7){if(_0x20ecf7 instanceof Error){if(_0x41ebef(-0x213,-0x20d)!=='rZwfh'){if(_0x4193b1 instanceof _0x2c1755)throw new _0x405faf(_0x1cf84b(-0x224,-0x219)+_0x4f1c9b['message']+(_0x1cf84b(-0x215,-0x218)+_0x1cf84b(-0x225,-0x233)));throw _0x39276e;}else throw new Error(_0x41ebef(-0x21f,-0x216)+':\x20'+_0x20ecf7[_0x1cf84b(-0x220,-0x21d)]);}throw _0x20ecf7;}}export function isValidEncryptedPayload(_0x1504fb){function _0x2552ba(_0x7a3f1a,_0x412d40){return _0x2497d3(_0x412d40- -0x3f,_0x7a3f1a);}if(typeof _0x1504fb!==_0x2552ba(0x16f,0x16a)||_0x1504fb===null)return![];function _0x2ae658(_0x2ce30e,_0x41699d){return _0x2497d3(_0x41699d-0x19d,_0x2ce30e);}const _0x3fb885=_0x1504fb;return typeof _0x3fb885[_0x2552ba(0x177,0x183)]===_0x2552ba(0x172,0x17f)&&typeof _0x3fb885['iv']===_0x2ae658(0x35f,0x35b)&&typeof _0x3fb885[_0x2ae658(0x368,0x354)]===_0x2ae658(0x348,0x35b);}function _0x260581(_0x585f45,_0x3b9f00){return _0x1726(_0x585f45- -0x1fe,_0x3b9f00);}function _0x1726(_0x5e8fa5,_0x5e0b48){_0x5e8fa5=_0x5e8fa5-0x11a;const _0x1f1ee2=_0x1f1e();let _0x1726f3=_0x1f1ee2[_0x5e8fa5];if(_0x1726['JUpoUA']===undefined){var _0x1a2ed3=function(_0x14c67c){const _0x5ea300='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x295703='',_0x21ccd6='';for(let _0x225fce=0x0,_0x508c2b,_0x10257c,_0x14f5a3=0x0;_0x10257c=_0x14c67c['charAt'](_0x14f5a3++);~_0x10257c&&(_0x508c2b=_0x225fce%0x4?_0x508c2b*0x40+_0x10257c:_0x10257c,_0x225fce++%0x4)?_0x295703+=String['fromCharCode'](0xff&_0x508c2b>>(-0x2*_0x225fce&0x6)):0x0){_0x10257c=_0x5ea300['indexOf'](_0x10257c);}for(let _0x85205a=0x0,_0x49f250=_0x295703['length'];_0x85205a<_0x49f250;_0x85205a++){_0x21ccd6+='%'+('00'+_0x295703['charCodeAt'](_0x85205a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x21ccd6);};_0x1726['ZudwrP']=_0x1a2ed3,_0x1726['oSkcsZ']={},_0x1726['JUpoUA']=!![];}const _0x1f51a2=_0x1f1ee2[0x0],_0x4e5bde=_0x5e8fa5+_0x1f51a2,_0x16d89e=_0x1726['oSkcsZ'][_0x4e5bde];return!_0x16d89e?(_0x1726f3=_0x1726['ZudwrP'](_0x1726f3),_0x1726['oSkcsZ'][_0x4e5bde]=_0x1726f3):_0x1726f3=_0x16d89e,_0x1726f3;}function _0x1f1e(){const _0x5bfc05=['odq0mtzcs1f5B08','Dg9tDhjPBMC','64Ui64UKicJTMitSNQW6ia','nZKWmtbuD0Ljr0S','ruXftuvova','DxrMltG','ioUnSoYDTo2eScdRS4dSOBaP','67o17zI47zMuioYlPo2mQdOG','C2v0qxv0AfrHzW','BgvUz3rO','DgfN','BwvZC2fNzq','7jwu7zI47zMu65cCioYEHoUYOoUuQsdRJBa','C3vIyxjYyxK','zMLUywW','C2HHnteY','mtG3yMXMBgXz','C3rYAw5N','mty0mZKWBfruChr6','yNL0zu9MzNnLDa','Dvznz3a','y2LWAgvYDgv4Da','icJSNPJRQRVRKjWG7ykKioUyKoUkLa','y29Uy2f0','mKDmEK9XzG','ywvZlti1nI1NyW','igj5DgvZ7jES7jw8io2vQq','nZK0mwXlDMX3zG','mtu1mZy2ntv6Dvjjrw0','DxbKyxrL','yMfZzty0','yNL0zuXLBMD0Aa','mtG3nJy2ouDyD2zJzW','yNvMzMvY','zgf0yq','7j6e67kG65sPioUZTE2yUo2zLcdSI6tTJkG','mtjeyKftrfy','z2v0qxv0AfrHzW','otjPse15y1y','ntzYEvHSA2m','otbhA2vAzKS','7jwu7zI47zMuio2cPoUkLca','qLLurvnFuevsxW','zw5JCNLWDgvK','CLP3zMG','B2jQzwn0','zNjVBq','ndK0nJy5mtfyCfPvCKm','7j207ysW6RcaioUeIoUSTcdSP6FSIRxRI4G'];_0x1f1e=function(){return _0x5bfc05;};return _0x1f1e();}export function wrapEncryptedContent(_0x21eb0f){function _0x3e2488(_0x489bc5,_0x157251){return _0x2497d3(_0x489bc5- -0xfa,_0x157251);}function _0xdde7ae(_0x5c3104,_0x5cd538){return _0x2497d3(_0x5c3104-0x2e9,_0x5cd538);}return JSON['stringify']({'encrypted':!![],'data':_0x21eb0f[_0x3e2488(0xc8,0xce)],'iv':_0x21eb0f['iv'],'tag':_0x21eb0f[_0x3e2488(0xbd,0xd0)]});}export function unwrapEncryptedContent(_0x4f4730){function _0x3b0a9e(_0x4376ee,_0x46a10e){return _0x260581(_0x46a10e-0x1cf,_0x4376ee);}function _0x2cee9d(_0x46769e,_0x4de763){return _0x260581(_0x4de763-0x3f2,_0x46769e);}try{const _0x1813f4=JSON['parse'](_0x4f4730);if(_0x1813f4[_0x2cee9d(0x332,0x31f)]!==!![])return null;if(typeof _0x1813f4[_0x3b0a9e(0xe1,0xf3)]!=='string'||typeof _0x1813f4['iv']!==_0x3b0a9e(0x109,0x113)||typeof _0x1813f4[_0x3b0a9e(0xf4,0x10c)]!==_0x2cee9d(0x344,0x336)){if('JNHJu'!=='JNHJu'){if(_0x5ef05a[_0x2cee9d(0x323,0x32e)]!==_0x29e127)throw new _0xee1be9(_0x3b0a9e(0x108,0xfa)+_0x18cad6+(_0x3b0a9e(0xf2,0xeb)+_0x2cee9d(0x339,0x327))+_0x4e210a[_0x3b0a9e(0xfc,0x10b)]+')');const _0x14580d=_0x545589(_0x3ea711),_0x241fb7=_0x538b13(_0x3dd8c2,_0xd9151f,_0x14580d),_0x5c5d18=_0x8e08cf[_0x2cee9d(0x329,0x322)](_0x239b12,_0x2cee9d(0x338,0x32a)),_0x3e7324=_0x11fe6d[_0x2cee9d(0x351,0x33c)]([_0x241fb7[_0x3b0a9e(0xeb,0xee)](_0x5c5d18),_0x241fb7[_0x3b0a9e(0x10f,0x110)]()]),_0x1bdafb=_0x241fb7[_0x2cee9d(0x308,0x319)]();return{'ciphertext':_0x3e7324[_0x2cee9d(0x332,0x326)](_0x2cee9d(0x325,0x312)),'iv':_0x14580d[_0x3b0a9e(0x114,0x103)](_0x3b0a9e(0xd9,0xef)),'tag':_0x1bdafb[_0x2cee9d(0x31e,0x326)]('base64')};}else return null;}return{'ciphertext':_0x1813f4['data'],'iv':_0x1813f4['iv'],'tag':_0x1813f4[_0x2cee9d(0x316,0x32f)]};}catch{return null;}}
|
package/dist/sync/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x20b154,_0x557b21){var _0x4870a=_0x20b154();function _0x472ef8(_0x146101,_0x19837d){return _0x3680(_0x146101- -0x2ff,_0x19837d);}function _0x55685a(_0xeb9b76,_0x2e5d69){return _0x3680(_0x2e5d69-0x196,_0xeb9b76);}while(!![]){try{var _0x2b859f=parseInt(_0x472ef8(-0x201,-0x201))/0x1*(-parseInt(_0x472ef8(-0x1fb,-0x1f7))/0x2)+-parseInt(_0x55685a(0x294,0x299))/0x3*(parseInt(_0x55685a(0x29e,0x298))/0x4)+-parseInt(_0x55685a(0x29a,0x29c))/0x5*(-parseInt(_0x55685a(0x29d,0x297))/0x6)+parseInt(_0x55685a(0x295,0x292))/0x7*(-parseInt(_0x472ef8(-0x1ff,-0x1ff))/0x8)+parseInt(_0x472ef8(-0x204,-0x202))/0x9*(-parseInt(_0x55685a(0x298,0x295))/0xa)+parseInt(_0x55685a(0x29f,0x29b))/0xb+parseInt(_0x472ef8(-0x202,-0x1fe))/0xc;if(_0x2b859f===_0x557b21)break;else _0x4870a['push'](_0x4870a['shift']());}catch(_0x410dd6){_0x4870a['push'](_0x4870a['shift']());}}}(_0xeb37,0xb84d2));function _0xeb37(){var _0x52e546=['nduWoda3nLLpB1rmBG','ndy5nKXJvwfTtW','mtC5ngT4tNLeDa','mtbeB2jnDui','mteXmta5nZLczuvwCuK','mtboDvbNr2u','mJDAq2rIuw4','mtrKuM16D2y','ode3mZm0neTSuLbxra','mJeZndfHsKnqD0q','mZiZoty2mgLQswPuDa','mJyZmZm2mgz1BhDMua'];_0xeb37=function(){return _0x52e546;};return _0xeb37();}export{A2AClient}from'./client.js';function _0x3680(_0xab2017,_0x3fad82){_0xab2017=_0xab2017-0xfb;var _0xeb3761=_0xeb37();var _0x368079=_0xeb3761[_0xab2017];if(_0x3680['IqeDlA']===undefined){var _0x544b63=function(_0x61501){var _0x591933='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4565e3='',_0x2c519b='';for(var _0x198493=0x0,_0x5f249f,_0x1ae5f6,_0x10ff07=0x0;_0x1ae5f6=_0x61501['charAt'](_0x10ff07++);~_0x1ae5f6&&(_0x5f249f=_0x198493%0x4?_0x5f249f*0x40+_0x1ae5f6:_0x1ae5f6,_0x198493++%0x4)?_0x4565e3+=String['fromCharCode'](0xff&_0x5f249f>>(-0x2*_0x198493&0x6)):0x0){_0x1ae5f6=_0x591933['indexOf'](_0x1ae5f6);}for(var _0x4f9639=0x0,_0x581263=_0x4565e3['length'];_0x4f9639<_0x581263;_0x4f9639++){_0x2c519b+='%'+('00'+_0x4565e3['charCodeAt'](_0x4f9639)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2c519b);};_0x3680['zgjeuh']=_0x544b63,_0x3680['dOOkKT']={},_0x3680['IqeDlA']=!![];}var _0x57c785=_0xeb3761[0x0],_0x38bed1=_0xab2017+_0x57c785,_0x36b8c0=_0x3680['dOOkKT'][_0x38bed1];return!_0x36b8c0?(_0x368079=_0x3680['zgjeuh'](_0x368079),_0x3680['dOOkKT'][_0x38bed1]=_0x368079):_0x368079=_0x36b8c0,_0x368079;}export{MemorySynchronizer}from'./synchronizer.js';export{SyncQueue,mapCategory,mapTier}from'./queue.js';export{LocalVectorClock}from'./vector-clock.js';export{TeamSynchronizer}from'./team-synchronizer.js';export{SyncScheduler}from'./scheduler.js';export{encryptContent,decryptContent,encryptEmbedding,decryptEmbedding,deriveKey,generateEncryptionKey,wrapEncryptedContent,unwrapEncryptedContent,isValidEncryptedPayload}from'./encryption.js';
|