a2a-memory 0.12.11 → 0.12.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/a2a/client.js +1 -1
- package/dist/a2a/discovery.js +1 -1
- package/dist/a2a/index.js +1 -1
- package/dist/a2a/types.js +1 -1
- package/dist/adapters/anthropic.js +1 -1
- package/dist/chunking/chunker.js +1 -1
- package/dist/claude/sync.js +1 -1
- package/dist/cli/commands/add.js +1 -1
- package/dist/cli/commands/claude-sync.js +1 -1
- package/dist/cli/commands/cleanup.js +1 -1
- package/dist/cli/commands/config.js +1 -1
- package/dist/cli/commands/edit.js +1 -1
- package/dist/cli/commands/embed.js +1 -1
- package/dist/cli/commands/extract.js +1 -1
- package/dist/cli/commands/health.js +1 -1
- package/dist/cli/commands/list.js +1 -1
- package/dist/cli/commands/migrate-chunks.js +1 -1
- package/dist/cli/commands/migrate-file-refs.js +1 -1
- package/dist/cli/commands/proficiency.js +1 -1
- package/dist/cli/commands/rm.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/setup-wizard.js +1 -1
- package/dist/cli/commands/setup.js +1 -1
- package/dist/cli/commands/skill.js +1 -1
- package/dist/cli/commands/status.js +1 -1
- package/dist/cli/commands/sync.js +1 -1
- package/dist/cli/commands/team.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/manager.d.ts +14 -0
- package/dist/config/manager.js +1 -1
- package/dist/db/database.d.ts +12 -0
- package/dist/db/database.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 +13 -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/cleanup-scheduler.js +1 -1
- package/dist/lifecycle/cleanup.js +1 -1
- package/dist/lifecycle/consolidation.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/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/providers/adapters.js +1 -1
- package/dist/providers/detector.js +1 -1
- package/dist/search/adaptive-router.js +1 -1
- package/dist/search/index.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 +2 -0
- package/dist/types/index.js +1 -1
- package/dist/utils/keychain.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/search/ranker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x358c(_0x42094b,_0x20b3f2){_0x42094b=_0x42094b-0x18e;const _0x498a9a=_0x498a();let _0x358c85=_0x498a9a[_0x42094b];if(_0x358c['EUOqNb']===undefined){var _0x389d21=function(_0x4d8ab5){const _0xde13b7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x233d4f='',_0x155225='';for(let _0x3e4035=0x0,_0x1b8643,_0x43a58f,_0x45428c=0x0;_0x43a58f=_0x4d8ab5['charAt'](_0x45428c++);~_0x43a58f&&(_0x1b8643=_0x3e4035%0x4?_0x1b8643*0x40+_0x43a58f:_0x43a58f,_0x3e4035++%0x4)?_0x233d4f+=String['fromCharCode'](0xff&_0x1b8643>>(-0x2*_0x3e4035&0x6)):0x0){_0x43a58f=_0xde13b7['indexOf'](_0x43a58f);}for(let _0x2ed6f2=0x0,_0x177db2=_0x233d4f['length'];_0x2ed6f2<_0x177db2;_0x2ed6f2++){_0x155225+='%'+('00'+_0x233d4f['charCodeAt'](_0x2ed6f2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x155225);};_0x358c['UngtYc']=_0x389d21,_0x358c['LJAKXt']={},_0x358c['EUOqNb']=!![];}const _0x20c57d=_0x498a9a[0x0],_0xfe6469=_0x42094b+_0x20c57d,_0x2a2e9a=_0x358c['LJAKXt'][_0xfe6469];return!_0x2a2e9a?(_0x358c85=_0x358c['UngtYc'](_0x358c85),_0x358c['LJAKXt'][_0xfe6469]=_0x358c85):_0x358c85=_0x2a2e9a,_0x358c85;}function _0x498a(){const _0x51e01d=['C3bSAxq','te5NBui','ndKWoty3mNzPDfLmsG','zNrZ','BuLWuMO','DMfSDwvZ','C2v0','y2f0zwDVCNK','EenhDvG','A3bYB3e','BwvTB3j5','vw1kwLm','ntaXmZK0mK1Yufb1za','y2f0zwDVCNLcBW','ywrKu2nVCMu','DxbKyxrLzef0','mti2ndq2nvz0C25rqq','tK5sBLG','DKXhuvu','z2rgDfq','CxvHBgL0EvnJBW','yNLerMi','CMvJzw5JEurLyW','wMTesgO','ndK4ndmXn256ugDUtq','CgfYzw50swq','CMvJzw5JEq','uuL6DeW','D2T1yxK','u01fzfG','C291CMnLCW','BwfW','BM93','BNvTyMvY','whH5wNy','nda2nNvcAKD5sW','C29YDa','ChvZAa','z2v0sg91CNnbzW','n1H0DfDSsG','Dg9tDhjPBMC','mtq4rfPlCwHz','B3n0','Dg90ywXty29Yzq','Eu1etLq','mtu5mZiXmezmsLPRrW','DMvJDg9Y','DgLLCKjVB3n0','nJy1odC2mfHhtwzAva','BgvUz3rO','z2v0','ofzZChzozG','vuLUzMW','mNWWFdf8nhWZ','D2vPz2H0CW','rLfVD2i','DgLLCG','C2XPy2u','zNjVBq','shv5CwO','wuTAzLC','Bwf4','txLvBei','t1LwwvG','t1PPwgi','Buv3AgG','BwvVEfe'];_0x498a=function(){return _0x51e01d;};return _0x498a();}(function(_0x340b68,_0x36bb00){function _0x1258aa(_0x37302f,_0x1e76d7){return _0x358c(_0x37302f- -0x3a0,_0x1e76d7);}const _0x414b70=_0x340b68();function _0x1a182b(_0x2d9596,_0x53dc65){return _0x358c(_0x2d9596-0x1ba,_0x53dc65);}while(!![]){try{const _0x37a352=parseInt(_0x1a182b(0x361,0x380))/0x1*(parseInt(_0x1258aa(-0x1f3,-0x1e3))/0x2)+-parseInt(_0x1258aa(-0x1ef,-0x1e6))/0x3+parseInt(_0x1258aa(-0x1e9,-0x1e3))/0x4*(parseInt(_0x1a182b(0x34e,0x333))/0x5)+parseInt(_0x1258aa(-0x210,-0x203))/0x6*(parseInt(_0x1a182b(0x365,0x35c))/0x7)+parseInt(_0x1258aa(-0x1d7,-0x1cf))/0x8+-parseInt(_0x1a182b(0x356,0x357))/0x9+-parseInt(_0x1a182b(0x36e,0x35d))/0xa;if(_0x37a352===_0x36bb00)break;else _0x414b70['push'](_0x414b70['shift']());}catch(_0x82b79d){_0x414b70['push'](_0x414b70['shift']());}}}(_0x498a,0x7b5bd));function _0xd0c350(_0x2a0865,_0x334693){return _0x358c(_0x334693-0x266,_0x2a0865);}const CATEGORY_BOOST={'error_solution':1.2,'code_pattern':1.2,'decision':1.1,'convention':1.1,'skill':1.5,'rule':1.5,'context':0x1,'project_knowledge':0x1,'learning':0x1};function _0x48130d(_0x42ad96,_0x4fef18){return _0x358c(_0x4fef18-0x292,_0x42ad96);}const TIER_BOOST={'semantic':1.2,'episodic':0x1,'working':0.8};export class HybridRanker{['k'];[_0x48130d(0x449,0x44c)];[_0x48130d(0x403,0x423)+_0x48130d(0x453,0x440)];['tierBoost'];[_0xd0c350(0x3e9,0x400)+'ay'];constructor(_0xbd4f54){function _0x23f405(_0x496795,_0x5cd6e9){return _0xd0c350(_0x5cd6e9,_0x496795- -0x60f);}function _0x1af33c(_0x44323c,_0x473c1f){return _0xd0c350(_0x473c1f,_0x44323c- -0x19e);}if(typeof _0xbd4f54==='number')this['k']=_0xbd4f54,this[_0x23f405(-0x1ef,-0x202)]={'fts':0x1,'vector':0x1,'recency':0x1},this[_0x1af33c(0x259,0x263)+_0x1af33c(0x276,0x28a)]=![],this[_0x1af33c(0x27b,0x263)]=![],this[_0x23f405(-0x20f,-0x1f8)+'ay']=![];else{const _0x22ddb2=_0xbd4f54??{};this['k']=_0x22ddb2['k']??0x3c,this[_0x1af33c(0x282,0x26c)]={'fts':_0x22ddb2[_0x23f405(-0x1ef,-0x1f0)]?.['fts']??0x1,'vector':_0x22ddb2[_0x23f405(-0x1ef,-0x20d)]?.[_0x1af33c(0x27a,0x287)]??0x1,'recency':_0x22ddb2[_0x1af33c(0x282,0x287)]?.[_0x23f405(-0x20b,-0x20f)]??0x1},this[_0x23f405(-0x218,-0x239)+_0x23f405(-0x1fb,-0x20c)]=_0x22ddb2[_0x1af33c(0x259,0x238)+_0x23f405(-0x1fb,-0x1dd)]??![],this[_0x23f405(-0x1f6,-0x1da)]=_0x22ddb2[_0x23f405(-0x1f6,-0x1f8)]??![],this[_0x23f405(-0x20f,-0x214)+'ay']=_0x22ddb2[_0x23f405(-0x20f,-0x1ee)+'ay']??![];}}['rank'](_0x2f4f66,_0x1cad31,_0xe388fc){const _0x5d0af7={'ASYeY':'4|1|2|0|3','yMDNT':function(_0x79d73a,_0x2bd7be){return _0x79d73a===_0x2bd7be;},'mEwhh':function(_0x5227ee,_0x402c85){return _0x5227ee+_0x402c85;},'eHIHB':function(_0x4856ed,_0x13fa39){return _0x4856ed-_0x13fa39;},'wkuay':function(_0x2d14cf,_0x3901f6){return _0x2d14cf/_0x3901f6;},'YKZfW':function(_0x1a19cc,_0xb0338c){return _0x1a19cc+_0xb0338c;},'vLGQU':_0x58edf2(0x4a6,0x4bb),'IoACQ':function(_0x4a0fd1,_0x5b8d07){return _0x4a0fd1/_0x5b8d07;},'OMsca':function(_0x39976a,_0x2aa5ab){return _0x39976a<_0x2aa5ab;},'SMEdX':function(_0x4886ac,_0x106b43){return _0x4886ac!==_0x106b43;},'aAIrR':_0x58edf2(0x49d,0x4ac),'Huyqj':_0x58edf2(0x4c0,0x4b9),'mIpRj':_0x30036c(0x586,0x57c),'QIztL':_0x30036c(0x5bd,0x5ad),'CLcSV':_0x58edf2(0x484,0x497),'byDFb':function(_0x16a878,_0x41df4c){return _0x16a878!==_0x41df4c;},'ZkDHj':function(_0x3ba569,_0x3afca2){return _0x3ba569===_0x3afca2;},'OZiXb':'FHuCt','WbRnU':function(_0x3c39e3,_0x19986b){return _0x3c39e3+_0x19986b;},'vJnFF':function(_0x177b5b,_0x393cfa){return _0x177b5b*_0x393cfa;}},_0x45711c=_0x2f4f66[_0x30036c(0x599,0x5a4)](0x0,0x1f4),_0x44e47b=_0x1cad31[_0x30036c(0x5bf,0x5a4)](0x0,0x1f4);function _0x30036c(_0x557e97,_0x3e7624){return _0xd0c350(_0x557e97,_0x3e7624-0x181);}const _0x21a36c=_0xe388fc?.[_0x30036c(0x5bf,0x5a4)](0x0,0x1f4),_0x12c4ca=new Map();function _0x58edf2(_0x1f8e62,_0x1db5f7){return _0xd0c350(_0x1f8e62,_0x1db5f7-0x8b);}for(let _0x2cfa24=0x0;_0x2cfa24<_0x45711c[_0x58edf2(0x492,0x4a6)];_0x2cfa24++){const _0x3ab737=_0x45711c[_0x2cfa24],_0x2e5a47=_0x2cfa24+0x1,_0x418652=_0x5d0af7[_0x58edf2(0x478,0x491)](this[_0x30036c(0x5a1,0x5a1)][_0x30036c(0x5c8,0x5b1)],_0x5d0af7[_0x30036c(0x5b1,0x5a7)](this['k'],_0x2e5a47));this[_0x58edf2(0x495,0x483)](_0x12c4ca,_0x3ab737['memory'],_0x418652,_0x5d0af7[_0x58edf2(0x47c,0x487)],_0x2e5a47);}for(let _0x2c9cfb=0x0;_0x2c9cfb<_0x44e47b['length'];_0x2c9cfb++){const _0x43bd2c=_0x44e47b[_0x2c9cfb],_0x196151=_0x5d0af7[_0x30036c(0x5c5,0x5ac)](_0x2c9cfb,0x1),_0x7250b7=_0x5d0af7['IoACQ'](this['weights'][_0x30036c(0x587,0x599)],this['k']+_0x196151);this[_0x30036c(0x572,0x579)](_0x12c4ca,_0x43bd2c[_0x58edf2(0x474,0x47f)],_0x7250b7,_0x30036c(0x58f,0x599),_0x196151);}if(_0x21a36c&&_0x21a36c[_0x30036c(0x5a0,0x59c)]>0x0)for(let _0x35e10=0x0;_0x5d0af7['OMsca'](_0x35e10,_0x21a36c[_0x30036c(0x5b6,0x59c)]);_0x35e10++){if(_0x5d0af7[_0x30036c(0x58a,0x588)](_0x5d0af7['aAIrR'],'FQowb')){const _0x3774dc=_0x5d0af7['ASYeY'][_0x58edf2(0x4bb,0x4b8)]('|');let _0x5b8cdc=0x0;while(!![]){switch(_0x3774dc[_0x5b8cdc++]){case'0':this[_0x30036c(0x5b9,0x59a)]=![];continue;case'1':this['weights']={'fts':0x1,'vector':0x1,'recency':0x1};continue;case'2':this[_0x58edf2(0x46f,0x482)+_0x58edf2(0x47f,0x49f)]=![];continue;case'3':this['recencyDec'+'ay']=![];continue;case'4':this['k']=_0x4c66d3;continue;}break;}}else{const _0x3b763d=_0x21a36c[_0x35e10],_0x2017f8=_0x35e10+0x1;let _0x47f25b;if(this[_0x58edf2(0x471,0x48b)+'ay']){if(_0x5d0af7[_0x58edf2(0x4ad,0x4b0)]!==_0x5d0af7[_0x58edf2(0x49f,0x4bc)]){const _0x3d806b=this['getHoursAg'+'o'](_0x3b763d[_0x58edf2(0x48a,0x484)]);_0x47f25b=this[_0x30036c(0x597,0x5a1)][_0x58edf2(0x4a6,0x48f)]*Math['pow'](_0x3d806b+0x1,-0.5);}else _0x4d9205[_0x58edf2(0x4b3,0x4be)](_0x20e209['id'],{'memory':_0x1a2630,'totalScore':_0x1bf58d,'sources':[{'type':_0x1e18c0,'rank':_0x4ef8aa}]});}else _0x47f25b=this['weights'][_0x30036c(0x59a,0x585)]/_0x5d0af7[_0x30036c(0x59c,0x5a7)](this['k'],_0x2017f8);this['addScore'](_0x12c4ca,_0x3b763d,_0x47f25b,_0x58edf2(0x497,0x48f),_0x2017f8);}}if(this[_0x58edf2(0x482,0x482)+'ost']||this['tierBoost'])for(const _0x533c0f of _0x12c4ca['values']()){if(_0x5d0af7[_0x58edf2(0x483,0x4a1)](_0x5d0af7[_0x58edf2(0x4b2,0x490)],_0x5d0af7['CLcSV'])){if(ZMTxTT['yMDNT'](typeof _0x1b8643,_0x58edf2(0x484,0x496))){const _0xc8b272=_0x30036c(0x5a2,0x5a0)[_0x58edf2(0x4a4,0x4b8)]('|');let _0x259fee=0x0;while(!![]){switch(_0xc8b272[_0x259fee++]){case'0':this['weights']={'fts':0x1,'vector':0x1,'recency':0x1};continue;case'1':this[_0x58edf2(0x492,0x482)+_0x30036c(0x57b,0x595)]=![];continue;case'2':this['k']=_0x2ed6f2;continue;case'3':this[_0x58edf2(0x4a7,0x48b)+'ay']=![];continue;case'4':this['tierBoost']=![];continue;}break;}}else{const _0x42c8c2=_0x177db2??{};this['k']=_0x42c8c2['k']??0x3c,this[_0x58edf2(0x49a,0x4ab)]={'fts':_0x42c8c2['weights']?.[_0x58edf2(0x4be,0x4bb)]??0x1,'vector':_0x42c8c2[_0x30036c(0x5b4,0x5a1)]?.[_0x58edf2(0x496,0x4a3)]??0x1,'recency':_0x42c8c2[_0x30036c(0x5a2,0x5a1)]?.[_0x58edf2(0x47a,0x48f)]??0x1},this[_0x58edf2(0x49b,0x482)+'ost']=_0x42c8c2[_0x58edf2(0x4a1,0x482)+_0x58edf2(0x498,0x49f)]??![],this[_0x58edf2(0x4ac,0x4a4)]=_0x42c8c2[_0x30036c(0x593,0x59a)]??![],this[_0x30036c(0x58c,0x581)+'ay']=_0x42c8c2['recencyDec'+'ay']??![];}}else{let _0x1524dc=0x1;this[_0x58edf2(0x49d,0x482)+_0x30036c(0x5a8,0x595)]&&(_0x1524dc*=CATEGORY_BOOST[_0x533c0f['memory'][_0x30036c(0x59b,0x5b5)]]??0x1),this[_0x58edf2(0x487,0x4a4)]&&(_0x1524dc*=TIER_BOOST[_0x533c0f[_0x58edf2(0x46e,0x47f)][_0x58edf2(0x48d,0x4ad)]]??0x1),_0x533c0f['totalScore']*=_0x1524dc;}}for(const _0x43f00a of _0x12c4ca[_0x58edf2(0x4d8,0x4bd)]()){if(_0x5d0af7[_0x30036c(0x58b,0x580)](_0x58edf2(0x4b8,0x4b4),_0x30036c(0x5b3,0x5aa))){const _0x47264f=this[_0x58edf2(0x4b4,0x49b)+'o'](_0x1e9c60[_0x58edf2(0x46f,0x484)]);_0x5a07f2=this['weights'][_0x58edf2(0x482,0x48f)]*_0x30a096['pow'](_0x5d0af7['mEwhh'](_0x47264f,0x1),-0.5);}else _0x5d0af7['SMEdX'](_0x43f00a[_0x30036c(0x586,0x575)][_0x58edf2(0x47a,0x489)+'re'],undefined)&&_0x43f00a['memory']['qualitySco'+'re']!==null&&(_0x5d0af7[_0x58edf2(0x490,0x48c)](_0x30036c(0x56c,0x57e),_0x5d0af7[_0x58edf2(0x4cb,0x4b5)])?_0x11edea|=_0x4d3692[_0x5d0af7['mEwhh'](_0x35db3f,_0x21fd6d)]<<_0x5d0af7['eHIHB'](0x3,_0x27075c):_0x43f00a[_0x30036c(0x591,0x596)]*=_0x5d0af7['WbRnU'](0x1,_0x5d0af7['vJnFF'](0.2,_0x43f00a[_0x58edf2(0x463,0x47f)]['qualitySco'+'re'])));}const _0x518238=Array[_0x30036c(0x5b2,0x5a5)](_0x12c4ca[_0x30036c(0x5a4,0x5b3)]())[_0x30036c(0x588,0x58f)]((_0xebfe7a,_0x2fe1c1)=>_0x2fe1c1[_0x58edf2(0x4c1,0x4a0)]-_0xebfe7a['totalScore'])[_0x58edf2(0x489,0x494)](_0x569ae9=>({'memory':_0x569ae9[_0x30036c(0x58d,0x575)],'score':_0x569ae9['totalScore'],'sources':_0x569ae9[_0x58edf2(0x488,0x493)],'parentId':_0x569ae9['memory'][_0x30036c(0x5a2,0x584)]}));return _0x518238;}[_0x48130d(0x417,0x424)](_0x1e978b,_0x1632cf,_0x30bb90,_0x55a364,_0x3436f5){function _0x1c7234(_0x43612c,_0x27abc0){return _0xd0c350(_0x43612c,_0x27abc0- -0x95);}function _0x54b796(_0x558f6a,_0x82ed55){return _0xd0c350(_0x558f6a,_0x82ed55- -0x11e);}const _0x2049c1=_0x1e978b[_0x1c7234(0x39b,0x387)](_0x1632cf['id']);_0x2049c1?(_0x2049c1[_0x1c7234(0x39a,0x380)]+=_0x30bb90,_0x2049c1['sources'][_0x1c7234(0x362,0x37a)]({'type':_0x55a364,'rank':_0x3436f5})):_0x1e978b['set'](_0x1632cf['id'],{'memory':_0x1632cf,'totalScore':_0x30bb90,'sources':[{'type':_0x55a364,'rank':_0x3436f5}]});}[_0xd0c350(0x428,0x410)+'o'](_0x2366d7){const _0x549ac3=Date[_0x542dda(0x36d,0x36b)](),_0x267bf5=new Date(_0x2366d7)['getTime']();function _0x542dda(_0x13766c,_0x474c16){return _0xd0c350(_0x13766c,_0x474c16- -0x9f);}function _0x33d590(_0x2acc7c,_0x1ed53b){return _0xd0c350(_0x2acc7c,_0x1ed53b- -0x614);}return Math[_0x542dda(0x385,0x388)](0x0,(_0x549ac3-_0x267bf5)/(0x3e8*0x3c*0x3c));}}export function computeEmbeddingHash(_0x3b63e1,_0x188ed1=0x20){const _0x504438={'MyUlB':function(_0x5cb17f,_0x28654e){return _0x5cb17f<_0x28654e;},'DFHUG':function(_0x121dec,_0xf2a790){return _0x121dec%_0xf2a790;},'xCGuX':function(_0x4ec6ad,_0x4eabbb){return _0x4ec6ad+_0x4eabbb;},'UmJZS':function(_0x31c1a0,_0x332499){return _0x31c1a0+_0x332499;},'kproq':function(_0x48e518,_0x17f48c){return _0x48e518*_0x17f48c;},'NmeaH':function(_0x166b91,_0x463336){return _0x166b91<_0x463336;},'UInfl':function(_0x22ab36,_0x150f31){return _0x22ab36+_0x150f31;}},_0x912c87=[];function _0x310fc5(_0x3757cc,_0x4e2d34){return _0xd0c350(_0x4e2d34,_0x3757cc- -0x41b);}for(let _0x203030=0x0;_0x504438[_0x365bc7(0x117,0x108)](_0x203030,_0x188ed1);_0x203030++){let _0x31ed2c=0x0;for(let _0x5a7f78=0x0;_0x5a7f78<_0x3b63e1[_0x365bc7(0x10a,0x11a)];_0x5a7f78++){const _0x48250a=_0x504438['DFHUG'](_0x504438[_0x365bc7(0x124,0x143)](_0x504438[_0x365bc7(0xe4,0xfb)](_0x504438[_0x310fc5(0x1b,0x27)](_0x203030,0x1f),_0x5a7f78*0x11),0x7),0x2)===0x0?0x1:-0x1;_0x31ed2c+=_0x504438[_0x365bc7(0x125,0x12e)](_0x3b63e1[_0x5a7f78],_0x48250a);}_0x912c87['push'](_0x31ed2c>=0x0?0x1:0x0);}function _0x365bc7(_0x5d2a84,_0x37819b){return _0xd0c350(_0x37819b,_0x5d2a84- -0x311);}let _0x31c006='';for(let _0x432c59=0x0;_0x432c59<_0x188ed1;_0x432c59+=0x4){let _0x3868a9=0x0;for(let _0x15e027=0x0;_0x504438[_0x365bc7(0x117,0x107)](_0x15e027,0x4)&&_0x504438['NmeaH'](_0x504438[_0x310fc5(0x3,0xa)](_0x432c59,_0x15e027),_0x188ed1);_0x15e027++){_0x3868a9|=_0x912c87[_0x432c59+_0x15e027]<<0x3-_0x15e027;}_0x31c006+=_0x3868a9[_0x365bc7(0x101,0x110)](0x10);}return _0x31c006;}
|
|
1
|
+
(function(_0xabe5ce,_0x5e2f77){function _0x3e4447(_0x2a9f57,_0x2f9a8b){return _0x2efb(_0x2f9a8b- -0x125,_0x2a9f57);}const _0x3062f8=_0xabe5ce();function _0x199de6(_0x5e1f83,_0x3c68a7){return _0x2efb(_0x5e1f83- -0x73,_0x3c68a7);}while(!![]){try{const _0x187781=parseInt(_0x199de6(0x179,0x186))/0x1*(parseInt(_0x199de6(0x19d,0x1a2))/0x2)+parseInt(_0x3e4447(0xe7,0xd4))/0x3+parseInt(_0x3e4447(0xa9,0xbe))/0x4*(parseInt(_0x3e4447(0xa8,0xc8))/0x5)+-parseInt(_0x3e4447(0xdb,0xd7))/0x6*(parseInt(_0x3e4447(0x93,0xaa))/0x7)+-parseInt(_0x199de6(0x159,0x158))/0x8*(parseInt(_0x199de6(0x17c,0x169))/0x9)+-parseInt(_0x199de6(0x193,0x172))/0xa+parseInt(_0x3e4447(0xb8,0xb2))/0xb*(parseInt(_0x3e4447(0xae,0xbf))/0xc);if(_0x187781===_0x5e2f77)break;else _0x3062f8['push'](_0x3062f8['shift']());}catch(_0x29e269){_0x3062f8['push'](_0x3062f8['shift']());}}}(_0x2783,0x97db7));function _0x2efb(_0x264d29,_0x5944ba){_0x264d29=_0x264d29-0x1bf;const _0x27837a=_0x2783();let _0x2efb5d=_0x27837a[_0x264d29];if(_0x2efb['UfyxrF']===undefined){var _0x523331=function(_0x36b9c2){const _0x30cb88='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1a10cc='',_0x1c1f57='';for(let _0x49a41d=0x0,_0x574b7c,_0x137d23,_0x41c382=0x0;_0x137d23=_0x36b9c2['charAt'](_0x41c382++);~_0x137d23&&(_0x574b7c=_0x49a41d%0x4?_0x574b7c*0x40+_0x137d23:_0x137d23,_0x49a41d++%0x4)?_0x1a10cc+=String['fromCharCode'](0xff&_0x574b7c>>(-0x2*_0x49a41d&0x6)):0x0){_0x137d23=_0x30cb88['indexOf'](_0x137d23);}for(let _0x140a63=0x0,_0x182d84=_0x1a10cc['length'];_0x140a63<_0x182d84;_0x140a63++){_0x1c1f57+='%'+('00'+_0x1a10cc['charCodeAt'](_0x140a63)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1c1f57);};_0x2efb['nwrIOR']=_0x523331,_0x2efb['rbeTdV']={},_0x2efb['UfyxrF']=!![];}const _0x4edd38=_0x27837a[0x0],_0xceaa76=_0x264d29+_0x4edd38,_0x4558b1=_0x2efb['rbeTdV'][_0xceaa76];return!_0x4558b1?(_0x2efb5d=_0x2efb['nwrIOR'](_0x2efb5d),_0x2efb['rbeTdV'][_0xceaa76]=_0x2efb5d):_0x2efb5d=_0x4558b1,_0x2efb5d;}const CATEGORY_BOOST={'error_solution':1.2,'code_pattern':1.2,'decision':1.1,'convention':1.1,'skill':1.5,'rule':1.5,'context':0x1,'project_knowledge':0x1,'learning':0x1};function _0x1cfc2c(_0xfa4f92,_0x330949){return _0x2efb(_0xfa4f92-0x1e8,_0x330949);}function _0x2783(){const _0x4caa0e=['D2vPz2H0CW','C291CMnLCW','mJmXntm2BuDytuHi','AffQvxK','DeLnseu','n3DZyuTfvW','BK5bzeq','u2ftD2S','EM90q2K','Dg90ywXty29Yzq','v0HOqLi','EK5wyMW','BwfW','ndr5wKrIr0G','tKnXshm','twDPC3q','C3bSAxq','rxvrrNO','CMfUAW','z2v0vgLTzq','EhzqDhO','C3jMDKG','BgvUz3rO','B0POB3K','CxvHBgL0EvnJBW','mti0DgPVyKXL','mZa0mduXmNbMEw9UDq','BNvTyMvY','C2v0','DMvJDg9Y','zfffzfy','zNjVBq','t1jLrgO','v2HJsKu','nLD3uuXfAa','mtaZotK1t1rJDeDx','B3n0','ndvSsKXPrNG','tfv3AK8','DgLLCKjVB3n0','zxPlAwK','CMvJzw5JEq','y0HjCMm','Dg9tDhjPBMC','u2H4shq','AgD2D0C','ugXItgG','mta5mZe1mKPtuvPNyG','z3nsz3C','quXtvgu','nJmWmdKWnM1UqvrruG','zKvtBfm','z2nxv0O','y2f0zwDVCNK','BM93','ywrKu2nVCMu','y2f0zwDVCNLcBW','zgfMwvG','CgfYzw50swq','tfLrExa','mJa3mJGZmev5qvvwva','zNjbAvq','sxDctu4','ChvZAa','yujVuM8','m3WYFdr8mxWW','zNrZ','DgLLCG','DxbKyxrLzef0','Cg93','ndK4wvror2Lv','BLDWzuW','uurosKi','zfzUsxO','BwvTB3j5','z2v0sg91CNnbzW','ELH0wuS','CMvJzw5JEurLyW','z2v0','D1fSBgS','DMfSDwvZ','C2XPy2u','C29YDa','Cvzxs2m'];_0x2783=function(){return _0x4caa0e;};return _0x2783();}function _0x1d5c16(_0x16d0c3,_0x3e29fc){return _0x2efb(_0x3e29fc- -0x2bc,_0x16d0c3);}const TIER_BOOST={'semantic':1.2,'episodic':0x1,'working':0.8};export class HybridRanker{['k'];[_0x1d5c16(-0x111,-0xf2)];[_0x1d5c16(-0xe4,-0xba)+'ost'];[_0x1d5c16(-0xbf,-0xcb)];[_0x1d5c16(-0x106,-0xf9)+'ay'];constructor(_0x42dd92){function _0x2dc3d8(_0x597165,_0x2e6bb3){return _0x1cfc2c(_0x597165- -0x3ea,_0x2e6bb3);}function _0x1c8883(_0x41101b,_0x37fd79){return _0x1cfc2c(_0x37fd79-0xdc,_0x41101b);}const _0x1b7590={'gcWWJ':_0x2dc3d8(-0x1d,-0x46),'LUwjO':_0x2dc3d8(0x9,0x32),'gsRgw':function(_0x33ae4b,_0x4dd77a){return _0x33ae4b??_0x4dd77a;}};if(typeof _0x42dd92===_0x1b7590[_0x1c8883(0x4e5,0x4c2)]){const _0x530507=_0x1b7590[_0x1c8883(0x4cc,0x4b4)][_0x2dc3d8(-0x28,-0x9)]('|');let _0x326b0c=0x0;while(!![]){switch(_0x530507[_0x326b0c++]){case'0':this[_0x2dc3d8(-0x3f,-0x4d)+'ay']=![];continue;case'1':this[_0x1c8883(0x4d5,0x4b5)]=![];continue;case'2':this[_0x2dc3d8(-0x38,-0x3e)]={'fts':0x1,'vector':0x1,'recency':0x1};continue;case'3':this['k']=_0x42dd92;continue;case'4':this['categoryBo'+_0x2dc3d8(-0x14,-0x15)]=![];continue;}break;}}else{const _0x7487c9=_0x1b7590[_0x1c8883(0x4d8,0x4be)](_0x42dd92,{});this['k']=_0x7487c9['k']??0x3c,this['weights']={'fts':_0x7487c9[_0x1c8883(0x4a9,0x48e)]?.[_0x1c8883(0x4f0,0x4d0)]??0x1,'vector':_0x7487c9[_0x1c8883(0x491,0x48e)]?.[_0x1c8883(0x4c1,0x4ab)]??0x1,'recency':_0x7487c9[_0x1c8883(0x483,0x48e)]?.[_0x1c8883(0x4bb,0x4b7)]??0x1},this[_0x2dc3d8(0x0,-0xa)+'ost']=_0x7487c9[_0x2dc3d8(0x0,0xf)+'ost']??![],this[_0x2dc3d8(-0x11,0x3)]=_0x7487c9[_0x1c8883(0x4c2,0x4b5)]??![],this[_0x2dc3d8(-0x3f,-0x2e)+'ay']=_0x7487c9[_0x2dc3d8(-0x3f,-0x65)+'ay']??![];}}[_0x1cfc2c(0x3c4,0x39a)](_0x3fab16,_0x3149b2,_0x2f0c46){const _0x11aec3={'qVWKc':_0x44a806(0x14d,0x13b),'sjGkN':function(_0xb45585,_0x59b7b8){return _0xb45585!==_0x59b7b8;},'cHIrc':function(_0x289c8a,_0x1ef26e){return _0x289c8a*_0x1ef26e;},'wQllk':function(_0x32df2f,_0x39282c){return _0x32df2f+_0x39282c;},'OReDj':function(_0x54a439,_0x1ee392){return _0x54a439+_0x1ee392;},'srfvH':function(_0x57ce2b,_0x1163b2){return _0x57ce2b>_0x1163b2;},'zotCi':function(_0x204da9,_0x59c615){return _0x204da9===_0x59c615;},'QDNJB':function(_0x5f291e,_0x69b8f5){return _0x5f291e<_0x69b8f5;},'tIMHE':function(_0x4dfd96,_0x6fd832){return _0x4dfd96+_0x6fd832;},'aBoRo':function(_0x16fe1d,_0x120149){return _0x16fe1d/_0x120149;},'PlbLh':function(_0x371a99,_0x54c1be){return _0x371a99+_0x54c1be;},'dQEdV':_0x43ede2(0x520,0x524),'dVnIz':_0x43ede2(0x4f0,0x507),'iKIZl':_0x44a806(0x11c,0x124),'ALSTe':function(_0x779bf7,_0x219c63){return _0x779bf7!==_0x219c63;},'WhcJE':function(_0x45ddf3,_0x42574f){return _0x45ddf3!==_0x42574f;},'Mgist':_0x43ede2(0x512,0x51e),'cXlUM':_0x44a806(0x12b,0x127)},_0x320b87=_0x3fab16[_0x44a806(0x121,0x139)](0x0,0x1f4),_0xa6442a=_0x3149b2['slice'](0x0,0x1f4);function _0x44a806(_0x480dbe,_0x41cba5){return _0x1cfc2c(_0x480dbe- -0x28e,_0x41cba5);}const _0x1c1b53=_0x2f0c46?.[_0x43ede2(0x4e2,0x4bb)](0x0,0x1f4),_0x4aae84=new Map();for(let _0x25981a=0x0;_0x25981a<_0x320b87[_0x44a806(0x13a,0x15c)];_0x25981a++){const _0x5b4254=_0x320b87[_0x25981a],_0x31f35c=_0x25981a+0x1,_0x5bebb5=this[_0x43ede2(0x4e5,0x4cf)]['fts']/_0x11aec3[_0x44a806(0x144,0x12b)](this['k'],_0x31f35c);this[_0x43ede2(0x51c,0x4f3)](_0x4aae84,_0x5b4254[_0x43ede2(0x4db,0x4ec)],_0x5bebb5,_0x44a806(0x166,0x175),_0x31f35c);}for(let _0x55bb73=0x0;_0x55bb73<_0xa6442a[_0x44a806(0x13a,0x116)];_0x55bb73++){const _0x503e3e=_0xa6442a[_0x55bb73],_0xcc5af2=_0x55bb73+0x1,_0xc01e13=this['weights'][_0x44a806(0x141,0x14c)]/_0x11aec3[_0x44a806(0x144,0x165)](this['k'],_0xcc5af2);this[_0x44a806(0x15b,0x160)](_0x4aae84,_0x503e3e[_0x44a806(0x11a,0x123)],_0xc01e13,_0x43ede2(0x502,0x4db),_0xcc5af2);}function _0x43ede2(_0x461f6d,_0x1ebb3c){return _0x1cfc2c(_0x461f6d-0x133,_0x1ebb3c);}if(_0x1c1b53&&_0x11aec3[_0x44a806(0x139,0x121)](_0x1c1b53[_0x43ede2(0x4fb,0x516)],0x0)){if(_0x11aec3[_0x44a806(0x12c,0x153)](_0x44a806(0x14c,0x137),_0x43ede2(0x50d,0x4f3)))for(let _0xbd5d83=0x0;_0x11aec3[_0x44a806(0x16c,0x182)](_0xbd5d83,_0x1c1b53['length']);_0xbd5d83++){const _0x515b74=_0x1c1b53[_0xbd5d83],_0x486509=_0xbd5d83+0x1;let _0xfe63f;if(this[_0x43ede2(0x4de,0x4cd)+'ay']){const _0xe81658=this[_0x44a806(0x11b,0x10f)+'o'](_0x515b74['updatedAt']);_0xfe63f=this[_0x43ede2(0x4e5,0x4f4)][_0x44a806(0x14d,0x14a)]*Math[_0x44a806(0x169,0x172)](_0x11aec3[_0x44a806(0x128,0x126)](_0xe81658,0x1),-0.5);}else _0xfe63f=_0x11aec3[_0x43ede2(0x525,0x502)](this['weights'][_0x44a806(0x14d,0x151)],_0x11aec3[_0x43ede2(0x513,0x4f7)](this['k'],_0x486509));this[_0x44a806(0x15b,0x174)](_0x4aae84,_0x515b74,_0xfe63f,_0x44a806(0x14d,0x16f),_0x486509);}else _0x334c68*=_0x278d7a[_0x421284[_0x43ede2(0x4db,0x4fa)]['tier']]??0x1;}if(this[_0x44a806(0x15c,0x157)+_0x44a806(0x148,0x126)]||this['tierBoost'])for(const _0x5027da of _0x4aae84[_0x44a806(0x120,0x138)]()){if(_0x11aec3[_0x44a806(0x142,0x14d)]!==_0x11aec3[_0x44a806(0x119,0x13c)]){let _0x2584b2=0x1;this['categoryBo'+'ost']&&(_0x2584b2*=CATEGORY_BOOST[_0x5027da[_0x43ede2(0x4db,0x4c8)][_0x44a806(0x159,0x14f)]]??0x1);if(this[_0x43ede2(0x50c,0x522)]){if(_0x11aec3['iKIZl']!=='zXtYK'){const _0x45d1c6=_0x36dc83[_0x1d0fe3],_0x2edeac=_0x555942+0x1;let _0x3f2cfd;if(this[_0x43ede2(0x4de,0x4f3)+'ay']){const _0x537308=this[_0x44a806(0x11b,0x129)+'o'](_0x45d1c6[_0x43ede2(0x529,0x530)]);_0x3f2cfd=this[_0x44a806(0x124,0x14b)][_0x43ede2(0x50e,0x4eb)]*_0x5063ef[_0x44a806(0x169,0x150)](_0x537308+0x1,-0.5);}else _0x3f2cfd=this[_0x44a806(0x124,0x108)]['recency']/(this['k']+_0x2edeac);this[_0x43ede2(0x51c,0x504)](_0x3e8482,_0x45d1c6,_0x3f2cfd,_0x11aec3[_0x43ede2(0x4e4,0x4d8)],_0x2edeac);}else _0x2584b2*=TIER_BOOST[_0x5027da[_0x44a806(0x11a,0x122)][_0x44a806(0x167,0x168)]]??0x1;}_0x5027da[_0x43ede2(0x4ee,0x4f0)]*=_0x2584b2;}else _0x11aec3['sjGkN'](_0x41e645[_0x43ede2(0x4db,0x4b8)][_0x44a806(0x13c,0x142)+'re'],_0xcb1c59)&&_0x234f75[_0x43ede2(0x4db,0x4ba)][_0x43ede2(0x4fd,0x4df)+'re']!==null&&(_0x347ac6[_0x43ede2(0x4ee,0x518)]*=0x1+_0x11aec3[_0x43ede2(0x50f,0x503)](0.2,_0x5c6f10[_0x44a806(0x11a,0x139)]['qualitySco'+'re']));}for(const _0x492b3b of _0x4aae84[_0x44a806(0x120,0x124)]()){if(_0x11aec3[_0x44a806(0x155,0x136)](_0x492b3b[_0x43ede2(0x4db,0x4dc)]['qualitySco'+'re'],undefined)&&_0x11aec3[_0x44a806(0x145,0x136)](_0x492b3b[_0x44a806(0x11a,0x140)][_0x43ede2(0x4fd,0x4e6)+'re'],null)){if(_0x11aec3[_0x44a806(0x145,0x13f)](_0x11aec3[_0x43ede2(0x4f4,0x506)],_0x11aec3['cXlUM']))_0x492b3b[_0x43ede2(0x4ee,0x4c9)]*=0x1+0.2*_0x492b3b[_0x43ede2(0x4db,0x4e6)][_0x44a806(0x13c,0x11c)+'re'];else{const _0x55f1a1=this[_0x44a806(0x11b,0x10f)+'o'](_0x23172c[_0x44a806(0x168,0x14c)]);_0x432918=this[_0x43ede2(0x4e5,0x4eb)][_0x44a806(0x14d,0x16c)]*_0x200669[_0x44a806(0x169,0x183)](_0x11aec3[_0x44a806(0x11f,0x135)](_0x55f1a1,0x1),-0.5);}}}const _0x348aad=Array[_0x44a806(0x143,0x15f)](_0x4aae84[_0x43ede2(0x4e1,0x4de)]())[_0x44a806(0x122,0x120)]((_0x1b962e,_0x5cdda1)=>_0x5cdda1['totalScore']-_0x1b962e['totalScore'])[_0x44a806(0x130,0x138)](_0x16a868=>({'memory':_0x16a868['memory'],'score':_0x16a868[_0x43ede2(0x4ee,0x513)],'sources':_0x16a868[_0x43ede2(0x4e6,0x4d6)],'parentId':_0x16a868[_0x43ede2(0x4db,0x4d1)][_0x43ede2(0x51f,0x4fa)]}));return _0x348aad;}[_0x1cfc2c(0x3e9,0x3c0)](_0x4866e6,_0x231878,_0xd0cac6,_0x429e74,_0x1a29cb){function _0x56e457(_0x4ba8ea,_0x341159){return _0x1d5c16(_0x341159,_0x4ba8ea-0x2d);}function _0x385fae(_0x427c53,_0x58eea6){return _0x1d5c16(_0x58eea6,_0x427c53-0x96);}const _0x1b2ecb=_0x4866e6[_0x56e457(-0xcb,-0xe4)](_0x231878['id']);_0x1b2ecb?(_0x1b2ecb[_0x56e457(-0xbc,-0xab)]+=_0xd0cac6,_0x1b2ecb[_0x385fae(-0x5b,-0x50)][_0x56e457(-0x86,-0x6c)]({'type':_0x429e74,'rank':_0x1a29cb})):_0x4866e6[_0x385fae(-0x40,-0x37)](_0x231878['id'],{'memory':_0x231878,'totalScore':_0xd0cac6,'sources':[{'type':_0x429e74,'rank':_0x1a29cb}]});}['getHoursAg'+'o'](_0x106b18){const _0x567451={'ShxHt':function(_0x1bf3f8,_0x2479c0){return _0x1bf3f8*_0x2479c0;}},_0x5c3b85=Date[_0x1f4545(0x27b,0x27d)]();function _0x35f721(_0x465df1,_0x126a66){return _0x1d5c16(_0x465df1,_0x126a66-0x577);}const _0x486cec=new Date(_0x106b18)[_0x35f721(0x4c0,0x498)]();function _0x1f4545(_0x2edfa1,_0x431e2a){return _0x1d5c16(_0x2edfa1,_0x431e2a-0x339);}return Math['max'](0x0,(_0x5c3b85-_0x486cec)/(_0x567451[_0x35f721(0x4d0,0x4b1)](0x3e8,0x3c)*0x3c));}}export function computeEmbeddingHash(_0x4313d8,_0x4e2e9d=0x20){const _0x63e6d9={'WHhBR':function(_0x182322,_0x16174e){return _0x182322===_0x16174e;},'NCqHs':function(_0x1ec991,_0x4ba0e1){return _0x1ec991+_0x4ba0e1;},'EuQFz':function(_0x3bedc3,_0x4a874f){return _0x3bedc3+_0x4a874f;},'frAiT':function(_0x589d9e,_0x17b4c5){return _0x589d9e*_0x17b4c5;},'nNAdD':function(_0x1087a1,_0x2f2859){return _0x1087a1>=_0x2f2859;},'Gvnvd':function(_0x1991b2,_0x7ed1cf){return _0x1991b2!==_0x7ed1cf;},'pLEVN':_0x26cf6f(0x567,0x547),'xvPtz':function(_0x5ab6a9,_0x393b99){return _0x5ab6a9<_0x393b99;},'YAlOe':function(_0x2caee6,_0x3adef4){return _0x2caee6<<_0x3adef4;},'dafYX':function(_0x3cb95f,_0x2584e8){return _0x3cb95f+_0x2584e8;},'nWpeL':function(_0x3485ff,_0x4f83be){return _0x3485ff-_0x4f83be;}};function _0x3557c5(_0x532aca,_0x4b1c9e){return _0x1cfc2c(_0x532aca- -0x47e,_0x4b1c9e);}function _0x26cf6f(_0x1b4c45,_0x397169){return _0x1cfc2c(_0x397169-0x17e,_0x1b4c45);}const _0x2726e6=[];for(let _0x4206d6=0x0;_0x4206d6<_0x4e2e9d;_0x4206d6++){let _0x350493=0x0;for(let _0x292300=0x0;_0x292300<_0x4313d8[_0x26cf6f(0x520,0x546)];_0x292300++){if(_0x3557c5(-0xc9,-0xeb)!==_0x26cf6f(0x557,0x563)){const _0x59f147=_0x63e6d9[_0x3557c5(-0xc2,-0xcd)](_0x63e6d9[_0x3557c5(-0xbe,-0xb8)](_0x63e6d9[_0x26cf6f(0x536,0x541)](_0x4206d6*0x1f,_0x63e6d9[_0x26cf6f(0x591,0x56d)](_0x292300,0x11)),0x7)%0x2,0x0)?0x1:-0x1;_0x350493+=_0x4313d8[_0x292300]*_0x59f147;}else{let _0x301b1f=0x1;this['categoryBo'+_0x26cf6f(0x53b,0x554)]&&(_0x301b1f*=_0x39f64a[_0x4708c9[_0x3557c5(-0xd6,-0xfc)][_0x3557c5(-0x97,-0xad)]]??0x1),this['tierBoost']&&(_0x301b1f*=_0x7258cd[_0x5d9eb6['memory'][_0x26cf6f(0x587,0x573)]]??0x1),_0x9e5528[_0x3557c5(-0xc3,-0xbf)]*=_0x301b1f;}}_0x2726e6[_0x26cf6f(0x57e,0x56f)](_0x63e6d9[_0x26cf6f(0x516,0x536)](_0x350493,0x0)?0x1:0x0);}let _0x32f36f='';for(let _0x340719=0x0;_0x340719<_0x4e2e9d;_0x340719+=0x4){if(_0x63e6d9['Gvnvd'](_0x3557c5(-0x8e,-0xa9),_0x63e6d9['pLEVN'])){let _0x2be63a=0x0;for(let _0x290371=0x0;_0x290371<0x4&&_0x63e6d9[_0x26cf6f(0x531,0x544)](_0x340719+_0x290371,_0x4e2e9d);_0x290371++){_0x2be63a|=_0x63e6d9['YAlOe'](_0x2726e6[_0x63e6d9[_0x26cf6f(0x576,0x569)](_0x340719,_0x290371)],_0x63e6d9[_0x26cf6f(0x579,0x577)](0x3,_0x290371));}_0x32f36f+=_0x2be63a[_0x3557c5(-0xa1,-0xc6)](0x10);}else _0x30321d[_0x3557c5(-0xb0,-0x89)](_0x475bb5['id'],{'memory':_0x3f56f8,'totalScore':_0xb1c98e,'sources':[{'type':_0x5509c4,'rank':_0x55175b}]});}return _0x32f36f;}
|
package/dist/search/reranker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5d31c3,_0x25e77c){const _0x3729c7=_0x5d31c3();function _0x3c5207(_0xdbab38,_0x22f9b8){return _0x17c9(_0x22f9b8- -0x3ba,_0xdbab38);}function _0x455df4(_0x112462,_0x214d06){return _0x17c9(_0x214d06- -0x105,_0x112462);}while(!![]){try{const _0x63c27e=-parseInt(_0x3c5207(-0x298,-0x278))/0x1*(parseInt(_0x455df4(0x36,0x2d))/0x2)+parseInt(_0x3c5207(-0x290,-0x276))/0x3+parseInt(_0x3c5207(-0x26d,-0x27e))/0x4+parseInt(_0x455df4(0x26,0x42))/0x5*(-parseInt(_0x3c5207(-0x2c0,-0x2ad))/0x6)+-parseInt(_0x455df4(0x3e,0x1d))/0x7+-parseInt(_0x3c5207(-0x291,-0x29d))/0x8+-parseInt(_0x3c5207(-0x28e,-0x2aa))/0x9*(-parseInt(_0x455df4(-0x15,0x7))/0xa);if(_0x63c27e===_0x25e77c)break;else _0x3729c7['push'](_0x3729c7['shift']());}catch(_0x7ca0a2){_0x3729c7['push'](_0x3729c7['shift']());}}}(_0x5272,0x5b8c8));function _0x1ed854(_0x58fbc5,_0x588fbe){return _0x17c9(_0x588fbe-0x18a,_0x58fbc5);}function _0x17c9(_0x309264,_0x38aff6){_0x309264=_0x309264-0x105;const _0x5272bc=_0x5272();let _0x17c9b7=_0x5272bc[_0x309264];if(_0x17c9['BwjgXf']===undefined){var _0x159b78=function(_0x2e2841){const _0x148869='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3f3bea='',_0x3d9896='';for(let _0x2a6f74=0x0,_0x4b9f8a,_0x5d8e99,_0x546c90=0x0;_0x5d8e99=_0x2e2841['charAt'](_0x546c90++);~_0x5d8e99&&(_0x4b9f8a=_0x2a6f74%0x4?_0x4b9f8a*0x40+_0x5d8e99:_0x5d8e99,_0x2a6f74++%0x4)?_0x3f3bea+=String['fromCharCode'](0xff&_0x4b9f8a>>(-0x2*_0x2a6f74&0x6)):0x0){_0x5d8e99=_0x148869['indexOf'](_0x5d8e99);}for(let _0x2734df=0x0,_0x474d62=_0x3f3bea['length'];_0x2734df<_0x474d62;_0x2734df++){_0x3d9896+='%'+('00'+_0x3f3bea['charCodeAt'](_0x2734df)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3d9896);};_0x17c9['GgFejc']=_0x159b78,_0x17c9['zxrjyc']={},_0x17c9['BwjgXf']=!![];}const _0x5e0b7a=_0x5272bc[0x0],_0x491a77=_0x309264+_0x5e0b7a,_0x3c9e71=_0x17c9['zxrjyc'][_0x491a77];return!_0x3c9e71?(_0x17c9b7=_0x17c9['GgFejc'](_0x17c9b7),_0x17c9['zxrjyc'][_0x491a77]=_0x17c9b7):_0x17c9b7=_0x3c9e71,_0x17c9b7;}const RERANKER_MODEL=_0x37368a(0x3cb,0x3ea)+'der/ms-mar'+_0x37368a(0x3bf,0x3ce)+_0x37368a(0x3f4,0x3f4);let _rerankerPipeline=null,_rerankerLoading=null;async function getRerankerPipeline(){function _0x25734e(_0x29a403,_0x2e146a){return _0x37368a(_0x2e146a,_0x29a403- -0x14e);}const _0x5c1ec2={'VtlQO':function(_0x54a73d,_0x3386bd){return _0x54a73d>_0x3386bd;},'vBtyw':function(_0x2acbc6,_0x10465d){return _0x2acbc6===_0x10465d;},'yAvRS':'QdoBD','mvqJa':function(_0x5e7cff,_0x1fed76){return _0x5e7cff(_0x1fed76);},'JzCxh':_0x4246a8(-0x2b0,-0x2c9)+_0x25734e(0x2a4,0x2b7),'oJJRy':function(_0x21185d,_0x5f378f){return _0x21185d===_0x5f378f;},'nTSgJ':function(_0x5e474a,_0x574477){return _0x5e474a+_0x574477;}};if(_rerankerPipeline)return _rerankerPipeline;if(_rerankerLoading)return _rerankerLoading;_rerankerLoading=((async()=>{function _0x29ea9d(_0x3a972b,_0x4a6c7f){return _0x4246a8(_0x3a972b-0x3c5,_0x4a6c7f);}function _0x344e3e(_0x5beb5f,_0x2e334b){return _0x4246a8(_0x2e334b-0x6c1,_0x5beb5f);}const _0x3c8fe7={'SdaXU':_0x29ea9d(0x12e,0x149),'YzhTI':function(_0x42c8e8,_0x7b6344){function _0x2c1ec5(_0x471118,_0x23d95c){return _0x29ea9d(_0x471118- -0x317,_0x23d95c);}return _0x5c1ec2[_0x2c1ec5(-0x1de,-0x1e3)](_0x42c8e8,_0x7b6344);}};try{if(_0x5c1ec2['vBtyw'](_0x5c1ec2[_0x344e3e(0x42b,0x40f)],_0x5c1ec2[_0x29ea9d(0x113,0xf5)])){const _0x1fad0c=await _0x5c1ec2[_0x344e3e(0x463,0x451)](Function,'return\x20imp'+_0x29ea9d(0x11c,0xff)+_0x29ea9d(0x13d,0x15c)+'ansformers'+'\x22)')();return _rerankerPipeline=await _0x1fad0c[_0x344e3e(0x406,0x41c)](_0x5c1ec2[_0x344e3e(0x42d,0x430)],RERANKER_MODEL,{'quantized':!![]}),_rerankerPipeline;}else{if(typeof _0x282298===_0x3c8fe7[_0x29ea9d(0x12b,0x134)])return _0x329766;if(_0x2f3718&&typeof _0x57d999['score']===_0x344e3e(0x426,0x42a))return _0x5829be[_0x344e3e(0x422,0x415)];if(_0x1c28b2['isArray'](_0x1395ed)&&_0x3c8fe7[_0x344e3e(0x409,0x426)](_0x165bd5['length'],0x0))return _0x4d0559[0x0][_0x344e3e(0x3fa,0x415)]??0x0;return 0x0;}}catch(_0x39d4f0){if(_0x5c1ec2[_0x344e3e(0x3f3,0x40c)]('wXjio',_0x344e3e(0x43d,0x43c))){_rerankerLoading=null;throw new Error(_0x5c1ec2['nTSgJ'](_0x344e3e(0x41d,0x433)+'der\x20rerank'+_0x29ea9d(0x118,0x121)+_0x29ea9d(0x135,0x139)+_0x344e3e(0x417,0x41f)+_0x29ea9d(0x111,0x116),_0x29ea9d(0x13f,0x141)+_0x29ea9d(0x141,0x15c)+_0x29ea9d(0x133,0x11b)+_0x29ea9d(0x10f,0x116)+_0x29ea9d(0x126,0x14a))+(_0x29ea9d(0x130,0x11b)+_0x29ea9d(0x122,0x136)+(_0x39d4f0 instanceof Error?_0x39d4f0[_0x344e3e(0x423,0x42b)]:String(_0x39d4f0))));}else _0x19d6de=null,_0xe4349f=null;}})());function _0x4246a8(_0x20eb57,_0x4842d2){return _0x37368a(_0x4842d2,_0x20eb57- -0x66a);}return _rerankerLoading;}function fallbackScore(_0x4dfdab,_0x58950b){function _0x1a3f1c(_0x5f5534,_0x1682e5){return _0x37368a(_0x5f5534,_0x1682e5- -0x59b);}function _0x346cd4(_0x418c36,_0x435629){return _0x37368a(_0x418c36,_0x435629- -0xc4);}const _0x4bd5d5={'ECjoP':function(_0x184a87,_0x474264){return _0x184a87===_0x474264;},'oIwBa':function(_0x296ddd,_0x34c4e4){return _0x296ddd!==_0x34c4e4;},'ETcSA':_0x346cd4(0x2f6,0x30e)},_0x1a0bf9=_0x4dfdab[_0x1a3f1c(-0x1a6,-0x1a4)+'e']()['split'](/\s+/)[_0x1a3f1c(-0x1cb,-0x1ce)](_0x3fdedd=>_0x3fdedd[_0x1a3f1c(-0x1cb,-0x1b2)]>0x1),_0x3385ab=_0x58950b[_0x1a3f1c(-0x18c,-0x1a4)+'e']();if(_0x4bd5d5[_0x346cd4(0x323,0x313)](_0x1a0bf9['length'],0x0))return 0x0;let _0xd53ae7=0x0;for(const _0x363ab6 of _0x1a0bf9){if(_0x4bd5d5[_0x346cd4(0x308,0x2ff)](_0x4bd5d5[_0x346cd4(0x350,0x32c)],_0x4bd5d5['ETcSA']))return _0x5644cc[_0x346cd4(0x303,0x2fa)];else{if(_0x3385ab['includes'](_0x363ab6))_0xd53ae7++;}}return _0xd53ae7/_0x1a0bf9[_0x346cd4(0x323,0x325)];}export class CrossEncoderReranker{[_0x1ed854(0x2f3,0x2d0)+'k'];constructor(_0xc7f052){function _0x2269f2(_0x191ed3,_0x43c111){return _0x1ed854(_0x191ed3,_0x43c111-0x1d0);}this['useFallbac'+'k']=_0xc7f052?.[_0x2269f2(0x488,0x4a0)+'k']??!![];}async[_0x1ed854(0x2a1,0x29d)](_0x5a1332,_0x3063c8,_0x460dc8){const _0x165088={'qXWBt':function(_0x1583c5,_0x2fa44e){return _0x1583c5<=_0x2fa44e;},'MsAUb':function(_0x1eb9c8,_0x3d611d){return _0x1eb9c8(_0x3d611d);}};function _0x2a0d68(_0x4bc0bd,_0x2d95cc){return _0x1ed854(_0x4bc0bd,_0x2d95cc- -0x14);}if(_0x3063c8[_0x53a4a9(-0x1b5,-0x1d3)]===0x0)return[];function _0x53a4a9(_0x24b628,_0x105e2b){return _0x1ed854(_0x24b628,_0x105e2b- -0x497);}if(_0x165088[_0x53a4a9(-0x209,-0x1f2)](_0x3063c8[_0x53a4a9(-0x1b7,-0x1d3)],_0x460dc8))return _0x3063c8;try{const _0x12113f=await getRerankerPipeline(),_0x3fcdf1=_0x3063c8[_0x53a4a9(-0x1da,-0x1df)](_0x4f6b37=>({'text':_0x5a1332,'text_pair':_0x4f6b37[_0x2a0d68(0x270,0x27e)][_0x53a4a9(-0x1d4,-0x1ce)][_0x2a0d68(0x27b,0x28d)](0x0,0x200)})),_0x53dac6=await _0x165088['MsAUb'](_0x12113f,_0x3fcdf1),_0x5468a5=_0x3063c8[_0x2a0d68(0x2a2,0x2a4)]((_0x57a888,_0x11543d)=>({..._0x57a888,'rerankScore':this['extractSco'+'re'](_0x53dac6[_0x11543d])}));return _0x5468a5[_0x2a0d68(0x286,0x2a7)]((_0x2aa49e,_0x4c43c8)=>_0x4c43c8[_0x53a4a9(-0x1e7,-0x1cd)+'e']-_0x2aa49e['rerankScor'+'e']),_0x5468a5[_0x53a4a9(-0x202,-0x1f6)](0x0,_0x460dc8)[_0x2a0d68(0x289,0x2a4)](({rerankScore:_0x235564,..._0x42e416})=>_0x42e416);}catch{if(this[_0x53a4a9(-0x1a4,-0x1c7)+'k'])return this[_0x2a0d68(0x281,0x29d)+_0x53a4a9(-0x1c9,-0x1cf)](_0x5a1332,_0x3063c8,_0x460dc8);return _0x3063c8[_0x2a0d68(0x2aa,0x28d)](0x0,_0x460dc8);}}['fallbackRe'+_0x1ed854(0x2d8,0x2c8)](_0x58e5b0,_0x284786,_0x275077){const _0x1b23d6={'bNusl':function(_0x14d774,_0x4bcf78){return _0x14d774+_0x4bcf78;},'fHcfz':function(_0xff4fbd,_0x5b68ad){return _0xff4fbd*_0x5b68ad;},'jLhGg':function(_0x5d9f12,_0x23b699){return _0x5d9f12-_0x23b699;}},_0x7b09e2=_0x284786[_0x2311e8(0x3a3,0x398)](_0x5b67c1=>({..._0x5b67c1,'fallbackScore':fallbackScore(_0x58e5b0,_0x5b67c1['memory'][_0x2ea331(-0x187,-0x199)])}));function _0x2ea331(_0x5bd1cf,_0x4b15f6){return _0x1ed854(_0x5bd1cf,_0x4b15f6- -0x462);}_0x7b09e2['sort']((_0x28a196,_0x5df1d3)=>{function _0x1f252c(_0x2aeb76,_0x4b7fe9){return _0x2ea331(_0x2aeb76,_0x4b7fe9-0x619);}const _0xec7caa=_0x1b23d6[_0x3f87e2(0x318,0x30d)](_0x1b23d6[_0x1f252c(0x4a1,0x47e)](_0x28a196[_0x3f87e2(0x314,0x302)],0.5),_0x28a196[_0x1f252c(0x477,0x475)+'ore']*0.5),_0x2c2d22=_0x1b23d6[_0x1f252c(0x448,0x45b)](_0x1b23d6[_0x1f252c(0x464,0x47e)](_0x5df1d3['score'],0.5),_0x1b23d6[_0x3f87e2(0x325,0x330)](_0x5df1d3[_0x1f252c(0x467,0x475)+'ore'],0.5));function _0x3f87e2(_0x593129,_0x5ac8a5){return _0x2ea331(_0x593129,_0x5ac8a5-0x4cb);}return _0x1b23d6[_0x3f87e2(0x349,0x33c)](_0x2c2d22,_0xec7caa);});function _0x2311e8(_0x22ec50,_0x6289f8){return _0x1ed854(_0x22ec50,_0x6289f8-0xe0);}return _0x7b09e2[_0x2ea331(-0x1c3,-0x1c1)](0x0,_0x275077)[_0x2ea331(-0x1c1,-0x1aa)](({fallbackScore:_0x186114,..._0x1695c2})=>_0x1695c2);}['extractSco'+'re'](_0x4faee1){function _0x1aa239(_0x4cb92e,_0x3f0083){return _0x37368a(_0x4cb92e,_0x3f0083-0xf);}const _0x408001={'EEMrX':function(_0x3e21bc,_0x587ecc){return _0x3e21bc===_0x587ecc;},'QFIfV':function(_0x40fccc,_0x19452d){return _0x40fccc>_0x19452d;}};if(_0x408001[_0x1aa239(0x3e7,0x3ea)](typeof _0x4faee1,_0x1aa239(0x3c2,0x3e2)))return _0x4faee1;if(_0x4faee1&&typeof _0x4faee1['score']===_0x1aa239(0x3f4,0x3e2))return _0x4faee1['score'];if(Array['isArray'](_0x4faee1)&&_0x408001[_0x42784f(-0x26c,-0x27e)](_0x4faee1['length'],0x0))return _0x4faee1[0x0][_0x42784f(-0x26c,-0x280)]??0x0;function _0x42784f(_0x2d178b,_0xfc33f1){return _0x37368a(_0x2d178b,_0xfc33f1- -0x63e);}return 0x0;}static async[_0x1ed854(0x2df,0x2d4)+'e'](){function _0xbb8025(_0x55b937,_0x377a36){return _0x37368a(_0x377a36,_0x55b937- -0x2dc);}const _0x122884={'zuXek':function(_0x18129b,_0x402632){return _0x18129b(_0x402632);},'btVjZ':_0x3dbe7d(0x4b0,0x4cf)+'ort(\x22@hugg'+_0xbb8025(0x106,0x103)+_0x3dbe7d(0x505,0x4f3)+'\x22)','srMoe':function(_0x542f3d,_0x1795c7){return _0x542f3d===_0x1795c7;},'GfkXH':'Msuys'};function _0x3dbe7d(_0x7a0009,_0x1acab3){return _0x37368a(_0x7a0009,_0x1acab3-0x10b);}try{return await _0x122884['zuXek'](Function,_0x122884[_0xbb8025(0xdd,0xd0)])(),!![];}catch{if(_0x122884[_0xbb8025(0x10b,0x109)](_0x122884['GfkXH'],_0x122884[_0xbb8025(0x103,0xe2)]))return![];else{if(this[_0x3dbe7d(0x51c,0x500)+'k'])return this[_0xbb8025(0xfa,0xf1)+_0xbb8025(0x111,0x127)](_0x503fae,_0x3d0784,_0x8c3a8);return _0x3af315[_0xbb8025(0xea,0xe0)](0x0,_0x132bda);}}}}function _0x37368a(_0x5970ce,_0x21003b){return _0x17c9(_0x21003b-0x2af,_0x5970ce);}function _0x5272(){const _0x2e787c=['wxPOveK','u2rHwfu','mtq2ntK2ogH4v2rKAG','rLnsvKG','BNvTyMvY','BwvZC2fNzq','t3jPz2LUywWGzq','zMfSBgjHy2Tszq','runQB1a','iebODwDNAw5NzG','sNPdEgG','CYbaAhvNz2LUzW','ruvnCLG','q3jVC3mTrw5JBW','BwfW','vNrSuu8','r2zRweG','C29YDa','mta1ntbszxfvwhm','Aw5NzMfJzs90CG','zMfSBgjHy2TtyW','sw5ZDgfSBdOGBG','D1HQAw8','Cg0GAw5ZDgfSBa','C3jnB2u','yw5ZzM9YBwvYCW','BgvUz3rO','y3jVC3mTzw5JBW','nJG5otK2tuTYthjq','zKHJzNO','CMfUAW','y29UDgvUDa','CMvYyw5Ru2nVCG','rvrJu0e','mJjur05gChu','AwzPy2f0Aw9U','mJa5mdu1mgfVuujSBa','tc02lxyY','DxnLrMfSBgjHyW','nvbnr1DYvq','Dg9mB3DLCKnHCW','AKXOr2C','AxnbDMfPBgfIBa','BxzXsMe','ywnLl3rYyw5ZzG','B0PkuNK','zM9YBwvYCY4G','BwvTB3j5','Euf2uLm','yNrwALO','Dgv4Dc1JBgfZCW','mZu0meTuwg93vq','mJq0nZy1mLHyCejewa','zxiGCMvXDwLYzq','C2nVCMu','mte1mtftsNDTrfa','uuzjzLy','B3j0kcjaAhvNzW','CMvYyw5R','B0L3qMe','CMv0DxjUigLTCa','CgLWzwXPBMu','C2XPy2u','CNjVCJOG','zMfJzs90CMfUCW','yK51C2W','CvHxqNq','B3jTzxjZcG','mtCWotCYmfLZwu9csq','zMLSDgvY','y28TtwLUAuXnlq'];_0x5272=function(){return _0x2e787c;};return _0x5272();}export function resetRerankerPipeline(){_rerankerPipeline=null,_rerankerLoading=null;}
|
|
1
|
+
function _0x39995b(_0x20177c,_0x403793){return _0x57d5(_0x403793-0x3e,_0x20177c);}function _0x4128(){const _0x42f070=['BwfW','ntzyzgTNrxi','tLPHufe','Aw5NzMfJzs90CG','EhPPvNK','zgvYihjLCMfUAW','mtjVvhjfq0C','nZmYntG3nffMEg95ta','Dgv4Dc1JBgfZCW','mtu2mZiWm21MC0PvvG','ywnLl3rYyw5ZzG','sw5ZDgfSBdOGBG','CgLWzwXPBMu','CMfUAW','BwvZC2fNzq','wwjnvey','AxzsyLm','ugn4DxG','tvD2qNq','C3bSAxq','mtC1mti1CuHmsM1l','Dg9mB3DLCKnHCW','B3jL','y29UDgvUDa','BNvTyMvY','CMv0DxjUigLTCa','B3jTzxjZcG','q3jVC3mTrw5JBW','zMfSBgjHy2TtyW','BgvUz3rO','B3j0kcjaAhvNzW','yw5ZzM9YBwvYCW','AwzPy2f0Aw9U','mZC4nZa3Chb6rwXt','AxnbDMfPBgfIBa','CMvYyw5R','wgPRB1y','rMHKCLu','CMvYyw5Ru2nVCG','mteWnJmWB0PpB2jz','AxnbCNjHEq','mZb2uK5kvLm','r1PpC00','zxiGCMvXDwLYzq','ndy4ndKZmLjbD0vpsq','iebODwDNAw5NzG','tc02lxyY','zM9YBwvYCY4G','twjsrNC','DxnLrMfSBgjHyW','CNjVCJOG','mtmXmZq2nvvkt0fiBG','y28TtwLUAuXnlq','C2nVCMu','zxH0CMfJDfnJBW','BwvTB3j5','BMn1rem','C2XPy2u','mtaXmLbiBxfdCW','Aw5JBhvKzxm','C29YDa','zMfJzs90CMfUCW','zMfSBgjHy2Tszq'];_0x4128=function(){return _0x42f070;};return _0x4128();}(function(_0xc545fa,_0x28ae2f){function _0x1d8d44(_0x53cb81,_0x4706e0){return _0x57d5(_0x4706e0-0x40,_0x53cb81);}function _0x193a0c(_0x312394,_0x441cf7){return _0x57d5(_0x441cf7-0x170,_0x312394);}const _0xe4a808=_0xc545fa();while(!![]){try{const _0xd18643=-parseInt(_0x193a0c(0x1e9,0x1f6))/0x1+-parseInt(_0x193a0c(0x1fa,0x216))/0x2*(-parseInt(_0x1d8d44(0xd9,0xd1))/0x3)+-parseInt(_0x1d8d44(0xa7,0xc3))/0x4*(-parseInt(_0x1d8d44(0xe1,0xf0))/0x5)+-parseInt(_0x1d8d44(0xbe,0xc4))/0x6+parseInt(_0x193a0c(0x1f9,0x20e))/0x7*(parseInt(_0x193a0c(0x1ef,0x1ee))/0x8)+parseInt(_0x193a0c(0x1ff,0x219))/0x9+parseInt(_0x1d8d44(0xdd,0xe4))/0xa*(parseInt(_0x1d8d44(0xd2,0xb8))/0xb);if(_0xd18643===_0x28ae2f)break;else _0xe4a808['push'](_0xe4a808['shift']());}catch(_0x13e89a){_0xe4a808['push'](_0xe4a808['shift']());}}}(_0x4128,0xc279d));const RERANKER_MODEL='cross-enco'+'der/ms-mar'+_0x39995b(0x107,0xef)+_0x39995b(0x107,0xe9);let _rerankerPipeline=null;function _0x5687b0(_0x149962,_0x7c6773){return _0x57d5(_0x149962- -0x203,_0x7c6773);}let _rerankerLoading=null;async function getRerankerPipeline(){function _0x4c2327(_0x4f29b8,_0x32ca64){return _0x5687b0(_0x32ca64- -0x7c,_0x4f29b8);}const _0x12b5ba={'QpFbq':function(_0x4b8506,_0xd91ca0){return _0x4b8506*_0xd91ca0;},'ncuDC':function(_0x5c5a80,_0x424620){return _0x5c5a80!==_0x424620;},'kkfOb':_0xc2c7a5(-0x1fb,-0x1df),'LJtXm':function(_0x24d20c,_0x145c8b){return _0x24d20c(_0x145c8b);},'GZOsM':_0x4c2327(-0x203,-0x1e9)+_0x4c2327(-0x1d3,-0x1e4)+_0x4c2327(-0x1f1,-0x1ff)+'ansformers'+'\x22)','XjkoV':function(_0x2a77bd,_0x374d18){return _0x2a77bd+_0x374d18;},'unNRf':function(_0xbe5662,_0x41c5b0){return _0xbe5662 instanceof _0x41c5b0;},'xziVy':function(_0x361b5a,_0x19e51e){return _0x361b5a(_0x19e51e);}};if(_rerankerPipeline)return _rerankerPipeline;if(_rerankerLoading)return _rerankerLoading;function _0xc2c7a5(_0x29702d,_0x5050cc){return _0x5687b0(_0x29702d- -0x9a,_0x5050cc);}return _rerankerLoading=((async()=>{function _0x58190e(_0x5f0336,_0xd257a5){return _0x4c2327(_0xd257a5,_0x5f0336-0xdd);}function _0xe4a85f(_0x3f3dd4,_0x20e81e){return _0x4c2327(_0x3f3dd4,_0x20e81e-0x637);}const _0x492d4a={'NZaPQ':function(_0x3a5894,_0x1e35e1){return _0x12b5ba['QpFbq'](_0x3a5894,_0x1e35e1);}};try{if(_0x12b5ba[_0x58190e(-0xed,-0xec)]('FhdrU',_0x12b5ba['kkfOb'])){const _0xa4ab4d={'LfUFA':function(_0x4c62c1,_0x4a6947){function _0x2be1fd(_0x41cd31,_0x40c475){return _0x58190e(_0x40c475-0x370,_0x41cd31);}return _0x492d4a[_0x2be1fd(0x25c,0x24d)](_0x4c62c1,_0x4a6947);},'MWvBt':function(_0x16ea39,_0x4907f8){return _0x16ea39*_0x4907f8;}},_0x3356ac=_0x4e4535['map'](_0x507af7=>({..._0x507af7,'fallbackScore':_0x45f374(_0xbdff38,_0x507af7[_0xe4a85f(0x452,0x46c)][_0x58190e(-0x10e,-0x12c)])}));return _0x3356ac[_0xe4a85f(0x443,0x432)]((_0x3679e3,_0x7ea173)=>{function _0x55373e(_0x5af52e,_0x4f898c){return _0xe4a85f(_0x4f898c,_0x5af52e- -0x523);}function _0x14f1bb(_0x1e5d3d,_0x422509){return _0xe4a85f(_0x422509,_0x1e5d3d- -0x4c0);}const _0x203078=_0xa4ab4d['LfUFA'](_0x3679e3[_0x14f1bb(-0x56,-0x68)],0.5)+_0x3679e3[_0x55373e(-0xd2,-0xd4)+_0x14f1bb(-0x75,-0x7e)]*0.5,_0x43489b=_0x7ea173[_0x55373e(-0xb9,-0xa2)]*0.5+_0xa4ab4d[_0x14f1bb(-0x79,-0x62)](_0x7ea173['fallbackSc'+_0x55373e(-0xd8,-0xec)],0.5);return _0x43489b-_0x203078;}),_0x3356ac[_0x58190e(-0x12b,-0x139)](0x0,_0x3ec8e0)[_0x58190e(-0x125,-0x135)](({fallbackScore:_0x26eea6,..._0x54558d})=>_0x54558d);}else{const _0x55d635=await _0x12b5ba['LJtXm'](Function,_0x12b5ba[_0x58190e(-0xfb,-0xf6)])();return _rerankerPipeline=await _0x55d635[_0xe4a85f(0x433,0x441)](_0x58190e(-0x11d,-0x139)+_0xe4a85f(0x437,0x455),RERANKER_MODEL,{'quantized':!![]}),_rerankerPipeline;}}catch(_0x5a0884){_rerankerLoading=null;throw new Error(_0x12b5ba[_0x58190e(-0x101,-0x104)](_0x12b5ba['XjkoV'](_0xe4a85f(0x432,0x450)+_0x58190e(-0x120,-0x13c)+_0xe4a85f(0x472,0x460)+'s\x20@hugging'+_0x58190e(-0x127,-0x12a)+_0x58190e(-0xf6,-0xfe),_0xe4a85f(0x429,0x440)+'pm\x20install'+_0x58190e(-0xf8,-0xdf)+_0x58190e(-0x11b,-0xff)+_0x58190e(-0x10b,-0x128)),'Original\x20e'+_0xe4a85f(0x47e,0x467)+(_0x12b5ba['unNRf'](_0x5a0884,Error)?_0x5a0884[_0x58190e(-0x117,-0x10f)]:_0x12b5ba[_0xe4a85f(0x433,0x439)](String,_0x5a0884))));}})()),_rerankerLoading;}function _0x57d5(_0x1ff4e8,_0x2dcd86){_0x1ff4e8=_0x1ff4e8-0x77;const _0x4128fd=_0x4128();let _0x57d544=_0x4128fd[_0x1ff4e8];if(_0x57d5['jWmcBk']===undefined){var _0x2d1a79=function(_0x548696){const _0x182fee='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3a305a='',_0x50c1aa='';for(let _0x3268d7=0x0,_0x3a032d,_0x15e2b2,_0x1839bf=0x0;_0x15e2b2=_0x548696['charAt'](_0x1839bf++);~_0x15e2b2&&(_0x3a032d=_0x3268d7%0x4?_0x3a032d*0x40+_0x15e2b2:_0x15e2b2,_0x3268d7++%0x4)?_0x3a305a+=String['fromCharCode'](0xff&_0x3a032d>>(-0x2*_0x3268d7&0x6)):0x0){_0x15e2b2=_0x182fee['indexOf'](_0x15e2b2);}for(let _0x235cba=0x0,_0x57a1fe=_0x3a305a['length'];_0x235cba<_0x57a1fe;_0x235cba++){_0x50c1aa+='%'+('00'+_0x3a305a['charCodeAt'](_0x235cba)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x50c1aa);};_0x57d5['AHdVFB']=_0x2d1a79,_0x57d5['nDXVfa']={},_0x57d5['jWmcBk']=!![];}const _0x33dc31=_0x4128fd[0x0],_0xdd70a0=_0x1ff4e8+_0x33dc31,_0x1149aa=_0x57d5['nDXVfa'][_0xdd70a0];return!_0x1149aa?(_0x57d544=_0x57d5['AHdVFB'](_0x57d544),_0x57d5['nDXVfa'][_0xdd70a0]=_0x57d544):_0x57d544=_0x1149aa,_0x57d544;}function fallbackScore(_0x2e421d,_0x368bc2){const _0x153265=_0x2e421d[_0x400d53(-0x1c2,-0x1ad)+'e']()[_0x400d53(-0x195,-0x1af)](/\s+/)['filter'](_0x4d2c8e=>_0x4d2c8e['length']>0x1),_0x3049f5=_0x368bc2['toLowerCas'+'e']();function _0x150a3f(_0x3d49eb,_0x25c456){return _0x5687b0(_0x3d49eb-0x54e,_0x25c456);}if(_0x153265['length']===0x0)return 0x0;function _0x400d53(_0x26077d,_0x181a1e){return _0x5687b0(_0x181a1e- -0x3c,_0x26077d);}let _0x5dcb39=0x0;for(const _0xe11924 of _0x153265){if(_0x3049f5[_0x400d53(-0x1c4,-0x1c6)](_0xe11924))_0x5dcb39++;}return _0x5dcb39/_0x153265[_0x400d53(-0x1b0,-0x1a5)];}export class CrossEncoderReranker{[_0x39995b(0xe8,0xec)+'k'];constructor(_0x1a3289){function _0x201dc3(_0x4d0eb1,_0x543dca){return _0x5687b0(_0x543dca-0x27,_0x4d0eb1);}function _0x9037c9(_0x55a17c,_0x510ff9){return _0x5687b0(_0x510ff9-0x5bc,_0x55a17c);}this[_0x9037c9(0x464,0x467)+'k']=_0x1a3289?.[_0x9037c9(0x44c,0x467)+'k']??!![];}async[_0x39995b(0xe8,0xde)](_0x4e134f,_0x45a08d,_0x3aab35){function _0x77a444(_0x2503bb,_0x4cc95d){return _0x5687b0(_0x4cc95d-0x462,_0x2503bb);}const _0x55dd06={'Pcxux':function(_0x577ffe,_0x183de1){return _0x577ffe===_0x183de1;},'dlmmh':function(_0x520e79,_0x2fc305){return _0x520e79(_0x2fc305);}};if(_0x55dd06[_0x77a444(0x2ea,0x2ed)](_0x45a08d[_0x77a444(0x2e3,0x2f9)],0x0))return[];if(_0x45a08d[_0x77a444(0x2fb,0x2f9)]<=_0x3aab35)return _0x45a08d;function _0x34eef9(_0x5b7456,_0x5c3ef3){return _0x5687b0(_0x5c3ef3-0x1c7,_0x5b7456);}try{const _0x2899c4=await getRerankerPipeline(),_0x1811ce=_0x45a08d[_0x77a444(0x2f7,0x2dc)](_0x55acf4=>({'text':_0x4e134f,'text_pair':_0x55acf4[_0x34eef9(0x85,0x78)][_0x34eef9(0x40,0x58)][_0x34eef9(0x48,0x3b)](0x0,0x200)})),_0x2b8f7f=await _0x55dd06['dlmmh'](_0x2899c4,_0x1811ce),_0x64c269=_0x45a08d['map']((_0x3d36c0,_0x3b6187)=>({..._0x3d36c0,'rerankScore':this[_0x34eef9(0x7c,0x77)+'re'](_0x2b8f7f[_0x3b6187])}));return _0x64c269['sort']((_0xcd0121,_0x3cc8b5)=>_0x3cc8b5['rerankScor'+'e']-_0xcd0121[_0x34eef9(0x4f,0x67)+'e']),_0x64c269[_0x77a444(0x2c1,0x2d6)](0x0,_0x3aab35)[_0x77a444(0x2bd,0x2dc)](({rerankScore:_0x2aeaf5,..._0x35904f})=>_0x35904f);}catch{if(this[_0x34eef9(0x86,0x72)+'k'])return this['fallbackRe'+_0x77a444(0x305,0x2e9)](_0x4e134f,_0x45a08d,_0x3aab35);return _0x45a08d['slice'](0x0,_0x3aab35);}}[_0x39995b(0xd7,0xba)+_0x39995b(0xd5,0xc8)](_0xc54aa5,_0xa578a5,_0x36e1ea){function _0x2390db(_0x37ee42,_0x1c54c6){return _0x5687b0(_0x1c54c6- -0x3,_0x37ee42);}function _0x33a557(_0x16ce1d,_0xa78342){return _0x5687b0(_0x16ce1d- -0x16c,_0xa78342);}const _0xd64c53={'WtvUu':function(_0xe7c110,_0x221e75){return _0xe7c110+_0x221e75;},'TiQWL':function(_0x589954,_0x3d18ad){return _0x589954*_0x3d18ad;},'ivRbS':function(_0x1c7735,_0x3f0d1b){return _0x1c7735-_0x3f0d1b;}},_0x57e16c=_0xa578a5[_0x2390db(-0x1a7,-0x189)](_0x1599f1=>({..._0x1599f1,'fallbackScore':fallbackScore(_0xc54aa5,_0x1599f1[_0x33a557(-0x2bb,-0x2ca)]['content'])}));return _0x57e16c[_0x33a557(-0x2f5,-0x2ea)]((_0x351312,_0x32d312)=>{function _0xbd09ad(_0x18cea0,_0x4d7a14){return _0x33a557(_0x18cea0-0x68,_0x4d7a14);}const _0x4679ef=_0xd64c53['WtvUu'](_0xd64c53['TiQWL'](_0x351312[_0xbd09ad(-0x255,-0x240)],0.5),_0x351312[_0x50f685(-0x284,-0x28b)+'ore']*0.5),_0xc22d2b=_0x32d312[_0xbd09ad(-0x255,-0x236)]*0.5+_0x32d312[_0xbd09ad(-0x26e,-0x28b)+_0xbd09ad(-0x274,-0x26b)]*0.5;function _0x50f685(_0xe0a32c,_0x33c629){return _0x33a557(_0xe0a32c-0x52,_0x33c629);}return _0xd64c53[_0xbd09ad(-0x27a,-0x288)](_0xc22d2b,_0x4679ef);}),_0x57e16c[_0x2390db(-0x1ad,-0x18f)](0x0,_0x36e1ea)[_0x33a557(-0x2f2,-0x2fc)](({fallbackScore:_0x1d6841,..._0x5c5cdc})=>_0x5c5cdc);}[_0x5687b0(-0x150,-0x15f)+'re'](_0x248655){function _0x413a0d(_0x1a78c7,_0x2814d6){return _0x5687b0(_0x1a78c7- -0x81,_0x2814d6);}function _0x213277(_0x51fed5,_0x349482){return _0x5687b0(_0x51fed5-0x3b3,_0x349482);}const _0x54faa2={'xGWPX':function(_0x2a3b45,_0x2959ec){return _0x2a3b45===_0x2959ec;},'YbMTF':_0x213277(0x245,0x236),'MbRFw':function(_0x4bc091,_0x59dfb6){return _0x4bc091>_0x59dfb6;}};if(_0x54faa2['xGWPX'](typeof _0x248655,_0x54faa2[_0x413a0d(-0x1f8,-0x208)]))return _0x248655;if(_0x248655&&typeof _0x248655['score']===_0x54faa2[_0x213277(0x23c,0x248)])return _0x248655[_0x213277(0x262,0x26f)];if(Array[_0x413a0d(-0x1df,-0x1ef)](_0x248655)&&_0x54faa2[_0x213277(0x25d,0x243)](_0x248655[_0x413a0d(-0x1ea,-0x1fa)],0x0))return _0x248655[0x0][_0x413a0d(-0x1d2,-0x1d0)]??0x0;return 0x0;}static async[_0x5687b0(-0x164,-0x14f)+'e'](){function _0x4cc9be(_0x5be652,_0x188118){return _0x39995b(_0x188118,_0x5be652- -0x19b);}const _0x359f92={'qGVKF':'return\x20imp'+_0x56f99f(0x33f,0x348)+_0x4cc9be(-0xdd,-0xda)+_0x4cc9be(-0xc1,-0xb2)+'\x22)'};function _0x56f99f(_0x34e448,_0x28c959){return _0x39995b(_0x28c959,_0x34e448-0x266);}try{return await Function(_0x359f92['qGVKF'])(),!![];}catch{return![];}}}export function resetRerankerPipeline(){_rerankerPipeline=null,_rerankerLoading=null;}
|
package/dist/session/parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x43f030(_0x46db6f,_0x53bc40){return _0x8775(_0x46db6f- -0x201,_0x53bc40);}(function(_0x18bd16,_0x45cb49){function _0x557e44(_0x3a823,_0x456eb2){return _0x8775(_0x456eb2-0x67,_0x3a823);}const _0x1d94e4=_0x18bd16();function _0x5aa273(_0x177026,_0x3ed5c6){return _0x8775(_0x177026- -0x29,_0x3ed5c6);}while(!![]){try{const _0x16f2e6=-parseInt(_0x5aa273(0xe5,0xfd))/0x1+parseInt(_0x557e44(0x157,0x147))/0x2+parseInt(_0x557e44(0x182,0x16b))/0x3*(-parseInt(_0x557e44(0x138,0x151))/0x4)+-parseInt(_0x5aa273(0xd5,0xc7))/0x5+parseInt(_0x5aa273(0xe6,0xd2))/0x6*(-parseInt(_0x557e44(0x166,0x15d))/0x7)+parseInt(_0x557e44(0x162,0x178))/0x8+parseInt(_0x5aa273(0xc6,0xb7))/0x9;if(_0x16f2e6===_0x45cb49)break;else _0x1d94e4['push'](_0x1d94e4['shift']());}catch(_0x55ede1){_0x1d94e4['push'](_0x1d94e4['shift']());}}}(_0x185a,0xf38dc));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(),_0x43f030(-0xf4,-0x104),_0x43f030(-0xfb,-0xeb));function _0x4ce6a3(_0x5a7d92,_0x503fc2){return _0x8775(_0x503fc2- -0x1f0,_0x5a7d92);}export function parseSessionFile(_0x4b2c37){const _0x5b99bf={'tIhpv':function(_0x31c45d,_0x1ea60e){return _0x31c45d<_0x1ea60e;},'ypoSw':'rSmfL','xvToV':function(_0x1d0af0,_0x220490){return _0x1d0af0+_0x220490;}};if(!existsSync(_0x4b2c37))return console[_0x56b966(0x60,0x74)](_0x56b966(0x97,0x88)+_0x248512(0x2f3,0x2fb)+_0x56b966(0xad,0x95),_0x4b2c37),[];const _0x474193=readFileSync(_0x4b2c37,_0x56b966(0x94,0xa1));function _0x56b966(_0x21972f,_0x2af91b){return _0x4ce6a3(_0x21972f,_0x2af91b-0x17e);}const _0x1bce61=_0x474193[_0x56b966(0x7a,0x7c)]('\x0a');function _0x248512(_0x496021,_0x400f51){return _0x4ce6a3(_0x496021,_0x400f51-0x40a);}const _0xfbab8b=[];for(let _0x525c57=0x0;_0x5b99bf[_0x56b966(0x95,0x8e)](_0x525c57,_0x1bce61['length']);_0x525c57++){const _0x3f1672=_0x1bce61[_0x525c57][_0x56b966(0x70,0x7b)]();if(!_0x3f1672)continue;try{const _0x1fc395=JSON['parse'](_0x3f1672);_0x1fc395[_0x56b966(0x9e,0x97)]&&_0x1fc395[_0x56b966(0x89,0x93)]&&_0x1fc395['message']&&_0xfbab8b[_0x56b966(0x92,0x8f)](_0x1fc395);}catch{_0x5b99bf[_0x248512(0x301,0x312)]!==_0x56b966(0x91,0x87)?console[_0x248512(0x2fa,0x300)](_0x56b966(0x83,0x81)+_0x248512(0x31f,0x306)+_0x56b966(0xae,0x99)+_0x5b99bf[_0x56b966(0xa4,0x8d)](_0x525c57,0x1)+_0x248512(0x30e,0x322)+_0x4b2c37):_0x22331e[_0x56b966(0x7c,0x74)](_0x248512(0x307,0x2fc)+_0x248512(0x2f1,0x30a)+_0x248512(0x2f5,0x2fd)+_0x248512(0x32d,0x32e),_0x14ed9a);}}return _0xfbab8b;}export function projectPathToSlug(_0x51fe56){function _0x46fc31(_0x414f5a,_0x2c042d){return _0x4ce6a3(_0x2c042d,_0x414f5a-0x2d4);}return _0x51fe56[_0x46fc31(0x1e7,0x1eb)](/\//g,'-');}export function slugToProjectPath(_0x2f791b){function _0x27e796(_0x4d0f5b,_0x21440d){return _0x4ce6a3(_0x21440d,_0x4d0f5b-0x518);}function _0x238131(_0x1656ec,_0x18552e){return _0x4ce6a3(_0x1656ec,_0x18552e-0x567);}const _0x52b8e2={'Hwjsy':function(_0x272a54,_0x18ffef){return _0x272a54(_0x18ffef);},'HvfkV':function(_0x11276b,_0x99dc5){return _0x11276b!==_0x99dc5;}};if(_0x2f791b['startsWith']('-')){if(_0x52b8e2[_0x27e796(0x411,0x40d)](_0x27e796(0x40f,0x40b),_0x238131(0x444,0x45e)))_0x172dc0=_0x52b8e2[_0x238131(0x45c,0x46e)](_0x2152d8,_0x7475fb);else return _0x2f791b[_0x27e796(0x42b,0x431)](/-/g,'/');}return _0x2f791b;}function _0x185a(){const _0x33a332=['CKrMAxK','w2eYyv0Gu2vZCW','AxneAxjLy3rVCG','yvDnBeK','zwqGDg8GC3rHDa','mti1nda1nu9qvhHeva','EhzuB1y','DeLOChy','ChvZAa','lMPZB25S','CMvWBgfJzq','m1bzEeLeAa','DhLWzq','ChjVAMvJDhm','B3qGzM91BMq6','igLUia','DxvPza','EvHMqNG','DcbSAw5Lia','AwXLoG','lMnSyxvKzq','odGZmtC3CevQuhrh','mJq2suXvBMjp','yLbrzvK','mtaXmJe1ndrHy2fUwKG','whPHEuK','DxrMltG','AwXLCZO','mZu0ntC1nMjRq1L0sW','Aw9UigzPBguGBG','w2eYyv0GrMfPBa','ihnLC3nPB24GzG','zMLSDgvY','BgvUz3rO','zxjYB3i','twjyy3G','Au9Swgm','shzMA1y','ndu0mZy4ngz2DgPXra','BxDPCKG','BgLKiePtt04Gyq','DhjPBq','C3bSAxq','mti3mJiZnJrMrMjrDMW','zwqGDg8GC2nHBG','vuTOvfy','BxrPBwvnCW','w2eYyv0Gsw52yq','C2L6zq','yLL0AuC','mJaYmtC0tejuuMXt','shDQC3K','ExbVu3C'];_0x185a=function(){return _0x33a332;};return _0x185a();}function countLines(_0x3b5875){const _0x4e40e4={'bPQeY':function(_0x4d2748,_0x5a09d7,_0x4f2578){return _0x4d2748(_0x5a09d7,_0x4f2578);},'iOlXc':'utf-8'};function _0x4f9ecc(_0x39bf95,_0x56aec2){return _0x43f030(_0x56aec2-0x5dc,_0x39bf95);}function _0x53433b(_0xf90e52,_0x48b381){return _0x43f030(_0x48b381-0x43d,_0xf90e52);}const _0x5164a4=_0x4e40e4[_0x4f9ecc(0x4df,0x4eb)](readFileSync,_0x3b5875,_0x4e40e4[_0x53433b(0x32d,0x324)]);return _0x5164a4[_0x53433b(0x317,0x32a)]('\x0a')[_0x4f9ecc(0x4d4,0x4bf)](_0x5d110e=>_0x5d110e[_0x53433b(0x329,0x329)]()[_0x53433b(0x321,0x321)]>0x0)[_0x4f9ecc(0x4d0,0x4c0)];}function _0x8775(_0x123f47,_0x4bab18){_0x123f47=_0x123f47-0xe0;const _0x185a19=_0x185a();let _0x87757b=_0x185a19[_0x123f47];if(_0x8775['ZgwJiw']===undefined){var _0x342dfd=function(_0x22757f){const _0x311c31='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x48d7fd='',_0x518665='';for(let _0x55e667=0x0,_0x4a2a0f,_0x35043d,_0x50ca3c=0x0;_0x35043d=_0x22757f['charAt'](_0x50ca3c++);~_0x35043d&&(_0x4a2a0f=_0x55e667%0x4?_0x4a2a0f*0x40+_0x35043d:_0x35043d,_0x55e667++%0x4)?_0x48d7fd+=String['fromCharCode'](0xff&_0x4a2a0f>>(-0x2*_0x55e667&0x6)):0x0){_0x35043d=_0x311c31['indexOf'](_0x35043d);}for(let _0x143278=0x0,_0xe47c5d=_0x48d7fd['length'];_0x143278<_0xe47c5d;_0x143278++){_0x518665+='%'+('00'+_0x48d7fd['charCodeAt'](_0x143278)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x518665);};_0x8775['CpayLy']=_0x342dfd,_0x8775['yDEEiR']={},_0x8775['ZgwJiw']=!![];}const _0x424821=_0x185a19[0x0],_0x104bba=_0x123f47+_0x424821,_0x50de81=_0x8775['yDEEiR'][_0x104bba];return!_0x50de81?(_0x87757b=_0x8775['CpayLy'](_0x87757b),_0x8775['yDEEiR'][_0x104bba]=_0x87757b):_0x87757b=_0x50de81,_0x87757b;}export function findSessionFiles(_0x9b13cf){const _0x48184e={'aWMlI':function(_0x2dedb9,_0x3c9b7a){return _0x2dedb9(_0x3c9b7a);},'NCLJm':function(_0x189298,_0x16cbd8){return _0x189298(_0x16cbd8);},'yXfBx':function(_0x4fdf8d,_0xd1f375,_0x71195d){return _0x4fdf8d(_0xd1f375,_0x71195d);},'XzayI':function(_0x4a65fc,_0x191a21){return _0x4a65fc(_0x191a21);},'UKhTV':function(_0x3e8328,_0x29e255){return _0x3e8328(_0x29e255);},'brVEY':function(_0x35fa6c,_0x5011b1,_0x92ee53){return _0x35fa6c(_0x5011b1,_0x92ee53);},'stQyE':_0x23322a(-0x113,-0x129)+_0x23322a(-0xf8,-0xe5)+_0x5cb357(0x437,0x437)+_0x5cb357(0x460,0x46a),'mwirH':'[a2a]\x20Fail'+'ed\x20to\x20scan'+'\x20session\x20f'+_0x5cb357(0x468,0x45f)};if(!_0x48184e['aWMlI'](existsSync,CLAUDE_PROJECTS_DIR))return[];const _0x262675=[];function _0x23322a(_0x33bbfa,_0x4de924){return _0x43f030(_0x33bbfa-0xc,_0x4de924);}function _0x5cb357(_0x279aa5,_0x2121d8){return _0x43f030(_0x279aa5-0x555,_0x2121d8);}try{const _0x1d622a=_0x9b13cf?[_0x48184e['NCLJm'](projectPathToSlug,_0x9b13cf)]:readdirSync(CLAUDE_PROJECTS_DIR);for(const _0x3c2176 of _0x1d622a){const _0x22d20e=_0x48184e[_0x5cb357(0x45e,0x46b)](join,CLAUDE_PROJECTS_DIR,_0x3c2176);if(!_0x48184e[_0x23322a(-0xe3,-0xf2)](existsSync,_0x22d20e))continue;let _0x57ab7e;try{_0x57ab7e=_0x48184e[_0x5cb357(0x450,0x452)](statSync,_0x22d20e);}catch{continue;}if(!_0x57ab7e[_0x23322a(-0xfa,-0xe5)+'y']())continue;let _0x1069c3;try{_0x1069c3=_0x48184e[_0x5cb357(0x445,0x43a)](readdirSync,_0x22d20e);}catch{continue;}for(const _0x129529 of _0x1069c3){if(!_0x129529['endsWith'](_0x5cb357(0x456,0x451)))continue;const _0x399fd5=join(_0x22d20e,_0x129529),_0x136fc7=_0x48184e['brVEY'](basename,_0x129529,_0x5cb357(0x456,0x45b));try{const _0x1cd73e=statSync(_0x399fd5),_0x16535a=_0x48184e[_0x5cb357(0x466,0x478)](countLines,_0x399fd5);_0x262675[_0x23322a(-0xf4,-0xfc)]({'sessionId':_0x136fc7,'projectPath':slugToProjectPath(_0x3c2176),'filePath':_0x399fd5,'messageCount':_0x16535a,'sizeBytes':_0x1cd73e[_0x5cb357(0x448,0x459)],'modifiedAt':_0x1cd73e[_0x5cb357(0x446,0x439)]});}catch{console[_0x23322a(-0x10f,-0x121)](_0x48184e['stQyE'],_0x399fd5);}}}}catch(_0x2b5bc3){console[_0x5cb357(0x43a,0x43b)](_0x48184e[_0x23322a(-0x10a,-0xf9)],_0x2b5bc3);}return _0x262675;}export function getSessionMessages(_0x441f59,_0x3f14e3){const _0x1b9d43={'bYtiG':function(_0x304493,_0x2dddd6){return _0x304493(_0x2dddd6);},'xZFFF':function(_0x2fa99f,_0x2be131,_0xd36273,_0xd443d9){return _0x2fa99f(_0x2be131,_0xd36273,_0xd443d9);}},_0x1448e2=_0x1b9d43['bYtiG'](projectPathToSlug,_0x3f14e3);function _0x292960(_0x5ac287,_0x1f937a){return _0x43f030(_0x5ac287- -0x134,_0x1f937a);}function _0x12402c(_0x35f1d6,_0x378693){return _0x43f030(_0x378693-0x85,_0x35f1d6);}const _0x2801b8=_0x1b9d43['xZFFF'](join,CLAUDE_PROJECTS_DIR,_0x1448e2,_0x441f59+_0x12402c(-0x83,-0x7a));return _0x1b9d43[_0x292960(-0x240,-0x234)](parseSessionFile,_0x2801b8);}
|
package/dist/skill/evaluator.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5d72dc,_0x3feaf2){function _0x2b03bf(_0x32f7b1,_0x1431fe){return _0x6cd9(_0x32f7b1- -0x5,_0x1431fe);}const _0x5b8157=_0x5d72dc();function _0x184d21(_0x11c2f7,_0x3490aa){return _0x6cd9(_0x3490aa-0x21f,_0x11c2f7);}while(!![]){try{const _0x582c3e=-parseInt(_0x2b03bf(0x242,0x22e))/0x1*(parseInt(_0x184d21(0x46d,0x4b2))/0x2)+-parseInt(_0x2b03bf(0x285,0x24c))/0x3*(parseInt(_0x2b03bf(0x24d,0x2a8))/0x4)+-parseInt(_0x2b03bf(0x27a,0x2e8))/0x5*(-parseInt(_0x2b03bf(0x25e,0x295))/0x6)+parseInt(_0x2b03bf(0x256,0x296))/0x7+parseInt(_0x2b03bf(0x247,0x1e1))/0x8*(parseInt(_0x184d21(0x3fb,0x456))/0x9)+-parseInt(_0x184d21(0x437,0x3f9))/0xa*(-parseInt(_0x184d21(0x465,0x440))/0xb)+-parseInt(_0x184d21(0x437,0x3e2))/0xc;if(_0x582c3e===_0x3feaf2)break;else _0x5b8157['push'](_0x5b8157['shift']());}catch(_0x5443aa){_0x5b8157['push'](_0x5b8157['shift']());}}}(_0x53a4,0xd5a49));function _0x423852(_0x35683c,_0x3536fb){return _0x6cd9(_0x35683c-0x2c9,_0x3536fb);}import{randomUUID}from'node:crypto';function _0x5b2f82(_0x1777b3,_0x4e83cf){return _0x6cd9(_0x1777b3- -0x47,_0x4e83cf);}import{cosineSimilarity}from'../extraction/similarity.js';function _0x53a4(){const _0x3315ad=['nJq1mJfqBuTPCu4','uxHlyvq','ywjZB3jIsw50BW','C3rHyMLSAxr5','BNq6ia','zMXVB3i','u3r4AwG','zMv0y2GGzMfPBa','q2Dcwve','mJGYy0DcBLzm','iNzHBgLKiJOGDa','y29UDgvUDa','wNb1rwS','zxH0CMfJDe1LDa','wgLhvMm','rg10EMO','DxnHyMXLihnRAq','CNvLl2zHBhnLla','y3jLyxrLtwvTBW','r3Lusfq','DMz6wg0','BgXT','yvHys0y','nduYntyZmMznCwPwwq','BurSDMe','C2v0','zMLSDgvY','q29UzMLKzw5Jzq','AgfZ','C2XPy2u','BMf0DxjL','BwLUuMvWzxrPDa','yxzLCMfNzuvTyG','BezKAMm','uMXLvvO','zMLUza','zw1IzwrKAw5N','q2zkz3y','yKjozuS','ywrK','yNvPBgrtA2LSBa','wwfXr1q','zefzwLG','C2TPBgXdB252zq','sw5QD0y','Bwv0ytO','mZaXntqZmfDqy2nWqq','BNrLBNq','BwvZC2fNzq','werht08','runptK5sruzvuW','ywnJzxnZq291BG','vvrUCxO','u291CMnLignVDq','DgfNCW','AM9PBG','CvL4EKS','y2XHC3nPzNLdBW','CMfUzg9T','y3j5C3rHBgXPEG','A0PIteq','Dgf4B25VBxK6','BgvUz3rO','Bu9Utu4','CvzoCvu','q2f0zwDVCNK6ia','u2TPBgWGy3jLyq','y2f0zwDVCNK','zurdtwq','ChvZAa','DxbKyxrLtwvTBW','Dg9gAxHLza','s0ndt00','D0vpCu8','veLHvvi','zun6B1m','Aw1PBgfYig1LBq','y2X1C3rLCK1LBq','teXnihzHBgLKyq','BwLUq29UzMLKzq','C2vZC2LVBKLK','y29TChjLC3nuBW','EvDbsLq','rgv0zxjTAw5Lia','Dxn0zxi','yNrWA0u','zMLSBa','zKnrr3q','t3LOAMq','CMfNzvnPBwLSyq','B3jPzxmGCMvWCG','r21czLq','EfzACeC','zNjVBq','ywn0AxzHDgLVBG','BKzsD1i','B3jPzxm','EfjmrMi','CfDdseS','swfruxu','rfHRv0e','A3zkCeC','vgHYzxnOB2XK','B1fHs2u','igzHAwXLzdOG','zdOG','zwrbDa','DejREeK','w1nRAwXSxsa','wvPHBvi','C2L6zq','u291CMnLCZOG','BM93','C2TPBgXFAwq','BwfW','CML0Eq','rhH1vMW','ntvSvfLVug0','C29YDa','C3rYAw5NAwz5','AwyGDgHLC2uGCW','CNnPB24','ExbutNm','q291BNq','icjJB25MAwrLBG','rxzHBhvHDgLVBG','u2TPBgW','y2DjDgS','DgLVBIbMywLSzq','y29UzMLKzw5Jzq','BgXTvMfSAwrHDa','Cgf0DgvYBG','sNjor1u','C3rHCNrZv2L0Aa','qNrrz0u','C2TPBgW','uwP3zMi','DgHmte0','zg9TywLU','mJqYmwTYvwjkuq','Aw9U','z2v0','Bwf4u2TPBgXZ','C291CMnLtwvTBW','BgWVCgf0DgvYBG','Bwf4','B3rREKC','zhHyDvO','DgGGsLnptJOGEW','Dg9tDhjPBMC','rKLuzwm','BMf0DxjLoG','EwXcz20','Dg9ju09tDhjPBG','ALnKzwi','mZuXD1r5t0nS','weD1AfO','CgfYC2u','EhzVzwy','ChjVAMvJDfbHDa','mZqYndHpz1rMD2e','CMv2Awv3rhvLqq','zurHExm','CNLjzhm','DgLTzw91Da','Bujizxu','mJGWzg9fCuDH','ug9fuMq','tvLxzfO','zwjrBu0','zxGUANm','ig1LBw9YAwvZ','EeLgCfy','tg5Mtee','zvnRAwXS','mtGWodfTyvvntLu','zw50CMLLCW','BuvPyvm','yKTps0e','DMfSAwq','y2uIoIaWlJaTmq','zwrKAw5NCW','BgLZDe1LBw9YAq','mJKWnJiYwvDwreLk','ELHOu24','CMLLCW','rvPyvwe','ywrHDge','ENfstxC','t1bmtK8','wMvwC0C','s2v5ihbHDhrLCG','y29UzMLN','DxrMltG','Aw9UCW','wLP6qLe','DxbKyxrLzef0','zxnLBNqGysbYzq','rxz3tMq','ruvxBwG','u2fTCgXLig1LBq','Aw5JBhvKzxm','uLHtEvq','swH4rKm','DwjQu0G','zw5HyMXLza','y29TChv0zuf2zq','z2v0vgLTzq','yMfZzty0','C3bSAxq','rMjoy3C','mtveD3DtvvK','BgvHCM5PBMC','s2LQDKW','zxzHBhvHDgvdBa','y29TCgXLDgu','BMnL','q29UDgvUDa','AxneDxbSAwnHDa','CMv2Awv3q3LJBa','yLvrC3a','DMfSAwrHDgvxAq'];_0x53a4=function(){return _0x3315ad;};return _0x53a4();}function _0x6cd9(_0x5792a9,_0x36c42c){_0x5792a9=_0x5792a9-0x1bb;const _0x53a437=_0x53a4();let _0x6cd9e3=_0x53a437[_0x5792a9];if(_0x6cd9['uMiIgt']===undefined){var _0x486af=function(_0x5a6ddd){const _0x49622d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1fecb8='',_0x57ddd5='';for(let _0xdf122a=0x0,_0x1a4d1e,_0x50539b,_0x51428f=0x0;_0x50539b=_0x5a6ddd['charAt'](_0x51428f++);~_0x50539b&&(_0x1a4d1e=_0xdf122a%0x4?_0x1a4d1e*0x40+_0x50539b:_0x50539b,_0xdf122a++%0x4)?_0x1fecb8+=String['fromCharCode'](0xff&_0x1a4d1e>>(-0x2*_0xdf122a&0x6)):0x0){_0x50539b=_0x49622d['indexOf'](_0x50539b);}for(let _0x163a00=0x0,_0x519226=_0x1fecb8['length'];_0x163a00<_0x519226;_0x163a00++){_0x57ddd5+='%'+('00'+_0x1fecb8['charCodeAt'](_0x163a00)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x57ddd5);};_0x6cd9['CeUiBC']=_0x486af,_0x6cd9['LEXSfy']={},_0x6cd9['uMiIgt']=!![];}const _0x431272=_0x53a437[0x0],_0x367430=_0x5792a9+_0x431272,_0x240576=_0x6cd9['LEXSfy'][_0x367430];return!_0x240576?(_0x6cd9e3=_0x6cd9['CeUiBC'](_0x6cd9e3),_0x6cd9['LEXSfy'][_0x367430]=_0x6cd9e3):_0x6cd9e3=_0x240576,_0x6cd9e3;}export class SkillEvaluator{['db'];[_0x423852(0x535,0x54a)];constructor(_0x3d026f,_0x5b3b9e){this['db']=_0x3d026f;function _0x577b88(_0x550d03,_0x220ffa){return _0x423852(_0x220ffa- -0x1c1,_0x550d03);}this[_0x577b88(0x3c6,0x374)]=_0x5b3b9e;}async['evaluate'](_0x3830fe,_0x723509){function _0xc116d4(_0x211e8c,_0xe4731d){return _0x423852(_0x211e8c- -0x2ea,_0xe4731d);}const _0x1bf6d0={'RXSyT':function(_0xae3af0,_0x563af8){return _0xae3af0/_0x563af8;},'fCQGt':function(_0x27d778,_0x3c9634){return _0x27d778-_0x3c9634;},'qSPwv':function(_0x47be94,_0x156f53){return _0x47be94-_0x156f53;},'InjwF':function(_0x164cca,_0x10d654){return _0x164cca>_0x10d654;},'KCCOM':function(_0x27bff4,_0x9543bb){return _0x27bff4+_0x9543bb;},'XDGOO':function(_0x5410f3,_0x29b564){return _0x5410f3!==_0x29b564;},'xVZpG':'Qjwfb','yWAJT':function(_0x1512e5,_0x475788){return _0x1512e5!==_0x475788;},'PoERd':'LsteJ','EZXUa':function(_0x382e10,_0x9988c){return _0x382e10*_0x9988c;},'aXXKF':function(_0x5d031f,_0x45abca){return _0x5d031f-_0x45abca;},'obNPv':_0x26e072(0x36e,0x366),'MYWdZ':_0xc116d4(0x1ef,0x1ec),'xvoef':function(_0x2ce051,_0x11c2da){return _0x2ce051 instanceof _0x11c2da;},'RleUZ':function(_0xeaba1d,_0x2b19d0){return _0xeaba1d instanceof _0x2b19d0;},'qYxzK':function(_0x562c28,_0x2579e9){return _0x562c28(_0x2579e9);}};function _0x26e072(_0x14ee09,_0x52e91b){return _0x423852(_0x52e91b- -0x123,_0x14ee09);}const _0x67e5a1=this[_0xc116d4(0x24b,0x28e)][_0xc116d4(0x1b6,0x1e8)+_0xc116d4(0x204,0x1bb)];if(!_0x67e5a1?.[_0x26e072(0x3cd,0x41f)])return _0x1bf6d0[_0x26e072(0x3c9,0x383)](_0x26e072(0x3e7,0x3da),_0x1bf6d0[_0x26e072(0x3ff,0x3ae)])?{'absorbed':![]}:{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]};const _0x1a6ce0=[],_0x3e9143=[];let _0x5ab0ef=0x0,_0x1551af=0x0;try{if(_0x1bf6d0[_0x26e072(0x3f9,0x3a4)](_0x1bf6d0[_0xc116d4(0x232,0x24e)],_0xc116d4(0x1bf,0x1c1))){const _0x4c7c4f=this['db'][_0xc116d4(0x241,0x1d2)+'es']({'limit':0x1f4,'projectPath':_0x3830fe}),_0x4aea6f=_0x4c7c4f[_0x26e072(0x3cb,0x36c)](_0x35aa0a=>_0x35aa0a[_0x26e072(0x356,0x395)]!==_0xc116d4(0x212,0x1b0)&&_0x35aa0a['embedding']&&_0x35aa0a[_0xc116d4(0x1af,0x1d4)][_0xc116d4(0x1c9,0x1bc)]>0x0);if(_0x4aea6f[_0x26e072(0x388,0x390)]<_0x67e5a1[_0x26e072(0x30e,0x371)+_0xc116d4(0x24d,0x222)])return{'candidates':_0x3e9143,'created':_0x5ab0ef,'skipped':_0x4aea6f[_0x26e072(0x372,0x390)],'errors':_0x1a6ce0};const _0x3dd4e3=0x12c;let _0x2bf79a;if(_0x1bf6d0[_0x26e072(0x31c,0x37e)](_0x4aea6f[_0xc116d4(0x1c9,0x1ab)],_0x3dd4e3)){const _0x187b4d=[..._0x4aea6f][_0xc116d4(0x201,0x1a5)]((_0x1bbdce,_0x12c00a)=>new Date(_0x12c00a[_0xc116d4(0x24f,0x272)])[_0x26e072(0x483,0x421)]()-new Date(_0x1bbdce[_0x26e072(0x43a,0x416)])['getTime']()),_0x2a9579=Math['floor'](_0x1bf6d0[_0x26e072(0x3a8,0x40c)](_0x3dd4e3,0.7)),_0x2157a7=_0x1bf6d0[_0x26e072(0x3c4,0x368)](_0x3dd4e3,_0x2a9579),_0x43a4fa=_0x187b4d[_0xc116d4(0x1a8,0x1a9)](0x0,_0x2a9579),_0x2ae92f=new Set(_0x43a4fa[_0xc116d4(0x1fd,0x21f)](_0x2548d9=>_0x2548d9['id'])),_0x4b7fda=_0x187b4d[_0xc116d4(0x1a8,0x206)](_0x2a9579)[_0xc116d4(0x1a5,0x150)](_0x32f43e=>!_0x2ae92f[_0x26e072(0x319,0x36e)](_0x32f43e['id'])),_0x47b1ea=[];for(let _0x1cc0aa=_0x1bf6d0[_0x26e072(0x3e9,0x3a9)](_0x4b7fda[_0xc116d4(0x1c9,0x1a7)],0x1);_0x1cc0aa>0x0&&_0x47b1ea['length']<_0x2157a7;_0x1cc0aa--){const _0x3edc16=Math[_0xc116d4(0x26e,0x2b6)](_0x1bf6d0[_0x26e072(0x3ed,0x40c)](Math[_0xc116d4(0x1c5,0x221)](),_0x1bf6d0['KCCOM'](_0x1cc0aa,0x1)));[_0x4b7fda[_0x1cc0aa],_0x4b7fda[_0x3edc16]]=[_0x4b7fda[_0x3edc16],_0x4b7fda[_0x1cc0aa]],_0x47b1ea['push'](_0x4b7fda[_0x1cc0aa]);}_0x2bf79a=[..._0x43a4fa,..._0x47b1ea];}else _0x2bf79a=_0x4aea6f;const _0x3aa17d=this[_0xc116d4(0x1d8,0x1f6)+_0xc116d4(0x1eb,0x1e3)](_0x2bf79a,_0x67e5a1['similarity'+_0x26e072(0x38b,0x3b8)]),_0x282aa0=_0x4c7c4f[_0x26e072(0x394,0x36c)](_0x42ca85=>_0x42ca85[_0x26e072(0x3ef,0x395)]===_0x26e072(0x377,0x3d9));let _0x44dbd4=_0x67e5a1[_0x26e072(0x38e,0x3e0)]-_0x282aa0[_0xc116d4(0x1c9,0x22b)];for(const _0xc43309 of _0x3aa17d){if(_0x1bf6d0['obNPv']!==_0x26e072(0x38e,0x366))for(let _0x44f61e=0x0;_0x44f61e<_0x1d946a;_0x44f61e++){_0x403576[_0x44f61e]+=_0x1bf6d0[_0xc116d4(0x255,0x2c3)](_0x1b1401[_0x26e072(0x365,0x376)][_0x44f61e],_0x5a3bb1[_0xc116d4(0x1c9,0x161)]);}else{if(_0x44dbd4<=0x0)break;const _0x38fc97=this[_0x26e072(0x40e,0x428)+_0xc116d4(0x1df,0x1e1)](_0xc43309,_0x67e5a1[_0x26e072(0x3ba,0x371)+_0x26e072(0x439,0x414)],_0x67e5a1[_0x26e072(0x3b7,0x3a1)+_0xc116d4(0x263,0x249)]);if(!_0x38fc97){_0x1551af+=_0xc43309[_0xc116d4(0x1c9,0x19f)];continue;}const _0x37cd7f=this['isDuplicat'+_0xc116d4(0x239,0x24b)](_0x38fc97,_0x282aa0);if(_0x37cd7f){_0x1551af+=_0xc43309['length'];continue;}_0x3e9143['push'](_0x38fc97);if(_0x67e5a1[_0x26e072(0x408,0x3d4)+_0x26e072(0x3bc,0x3de)]&&this[_0x26e072(0x40b,0x412)][_0xc116d4(0x1a0,0x135)]?.[_0x26e072(0x3f7,0x41f)])try{const _0x3864e9=await this[_0x26e072(0x408,0x42f)+_0xc116d4(0x214,0x1ca)](_0x38fc97);if(!_0x3864e9){_0x1551af+=_0xc43309['length'];continue;}}catch(_0x59a91d){_0x26e072(0x40d,0x3b7)===_0x1bf6d0[_0x26e072(0x406,0x3fa)]?(this['db']=_0xdf122a,this[_0x26e072(0x3de,0x412)]=_0x1a4d1e):_0x1a6ce0[_0xc116d4(0x1d0,0x163)](_0xc116d4(0x1d9,0x1cd)+_0x26e072(0x3f1,0x3d2)+_0xc116d4(0x1f4,0x253)+(_0x1bf6d0[_0xc116d4(0x229,0x217)](_0x59a91d,Error)?_0x59a91d[_0x26e072(0x3e7,0x382)]:String(_0x59a91d)));}try{await this[_0x26e072(0x402,0x3a3)+_0x26e072(0x421,0x3d0)](_0x38fc97,_0x723509),_0x5ab0ef++,_0x44dbd4--;}catch(_0xd4feb5){if(_0x26e072(0x457,0x415)===_0xc116d4(0x1ac,0x1ee)){const _0x197c2c=_0x9f1555[_0xc116d4(0x1e8,0x1f7)](_0x56acd4[_0x26e072(0x3ac,0x36f)](0x5),_0xc116d4(0x25b,0x26f))[_0xc116d4(0x220,0x217)]('utf-8');return _0xbd53e0[_0xc116d4(0x228,0x1ef)](_0x197c2c);}else _0x1a6ce0['push'](_0xc116d4(0x1cd,0x1a3)+_0x26e072(0x40b,0x3d2)+_0xc116d4(0x1f4,0x1cf)+(_0xd4feb5 instanceof Error?_0xd4feb5['message']:String(_0xd4feb5)));}}}}else{const _0x591222=[..._0x2d4b4a][_0x26e072(0x3a0,0x3c8)]((_0x1ae5e7,_0x1ca3bf)=>new _0x1ca2c9(_0x1ca3bf[_0xc116d4(0x24f,0x236)])[_0xc116d4(0x25a,0x2c3)]()-new _0x481394(_0x1ae5e7['updatedAt'])[_0x26e072(0x3e0,0x421)]()),_0x3cfdbe=_0x296d7d[_0xc116d4(0x26e,0x275)](_0x14180b*0.7),_0x5ad8fc=_0x1bf6d0[_0xc116d4(0x1e2,0x19c)](_0x2178ad,_0x3cfdbe),_0x7d7350=_0x591222[_0x26e072(0x34e,0x36f)](0x0,_0x3cfdbe),_0x9bb2d1=new _0x2a007d(_0x7d7350[_0xc116d4(0x1fd,0x210)](_0x1590aa=>_0x1590aa['id'])),_0x1a880f=_0x591222[_0xc116d4(0x1a8,0x189)](_0x3cfdbe)[_0x26e072(0x3ba,0x36c)](_0x3b4c69=>!_0x9bb2d1[_0xc116d4(0x1a7,0x194)](_0x3b4c69['id'])),_0x390cdd=[];for(let _0x22f859=_0x1bf6d0['qSPwv'](_0x1a880f[_0x26e072(0x326,0x390)],0x1);_0x1bf6d0[_0xc116d4(0x1b7,0x159)](_0x22f859,0x0)&&_0x390cdd[_0xc116d4(0x1c9,0x19a)]<_0x5ad8fc;_0x22f859--){const _0x374e00=_0x7393f[_0xc116d4(0x26e,0x278)](_0xa6e534[_0x26e072(0x3de,0x38c)]()*_0x1bf6d0[_0x26e072(0x3aa,0x39a)](_0x22f859,0x1));[_0x1a880f[_0x22f859],_0x1a880f[_0x374e00]]=[_0x1a880f[_0x374e00],_0x1a880f[_0x22f859]],_0x390cdd['push'](_0x1a880f[_0x22f859]);}_0x5d747b=[..._0x7d7350,..._0x390cdd];}}catch(_0x4aa1b5){_0x1a6ce0['push'](_0x26e072(0x416,0x3cf)+_0x26e072(0x3d6,0x3ba)+(_0x1bf6d0[_0x26e072(0x350,0x374)](_0x4aa1b5,Error)?_0x4aa1b5['message']:_0x1bf6d0[_0xc116d4(0x1c3,0x1ba)](String,_0x4aa1b5)));}return{'candidates':_0x3e9143,'created':_0x5ab0ef,'skipped':_0x1551af,'errors':_0x1a6ce0};}[_0x5b2f82(0x1b2,0x173)+_0x5b2f82(0x1c5,0x1c5)](_0x1e51f9,_0x16e3ca){const _0x595d44={'pWCHK':function(_0x3141cf,_0x478677){return _0x3141cf<_0x478677;},'Oyhjd':function(_0x578dea,_0x236def,_0x5b0304){return _0x578dea(_0x236def,_0x5b0304);},'EEWmh':function(_0x4c7ea7,_0x5d6b1d){return _0x4c7ea7/_0x5d6b1d;},'Stxih':function(_0x3781fb,_0x204370){return _0x3781fb!==_0x204370;},'CfJgv':_0x480162(0x338,0x342),'bBNeK':_0x3e9f5c(-0x1cc,-0x182),'otkzG':function(_0x456329,_0x2d2fc8,_0x417068){return _0x456329(_0x2d2fc8,_0x417068);}};function _0x3e9f5c(_0x38bb86,_0x53954a){return _0x423852(_0x38bb86- -0x650,_0x53954a);}const _0x26174e=new Set();function _0x480162(_0x520f7d,_0x39eaf5){return _0x423852(_0x520f7d- -0x1a8,_0x39eaf5);}const _0x21fbd7=[];for(const _0x11685d of _0x1e51f9){if(_0x595d44[_0x3e9f5c(-0xf7,-0x131)](_0x595d44[_0x480162(0x2f2,0x357)],_0x595d44[_0x3e9f5c(-0x1b5,-0x1d9)])){if(_0x26174e[_0x3e9f5c(-0x1bf,-0x215)](_0x11685d['id']))continue;if(!_0x11685d[_0x480162(0x2f1,0x336)])continue;const _0x322353=[_0x11685d];_0x26174e[_0x3e9f5c(-0x1b4,-0x171)](_0x11685d['id']);for(const _0x50c098 of _0x1e51f9){if(_0x26174e[_0x3e9f5c(-0x1bf,-0x1c9)](_0x50c098['id']))continue;if(!_0x50c098[_0x480162(0x2f1,0x30c)])continue;const _0x4ca9d9=_0x595d44[_0x480162(0x35f,0x399)](cosineSimilarity,_0x11685d[_0x480162(0x2f1,0x2df)],_0x50c098[_0x480162(0x2f1,0x34c)]);_0x4ca9d9>=_0x16e3ca&&(_0x322353[_0x3e9f5c(-0x196,-0x159)](_0x50c098),_0x26174e['add'](_0x50c098['id']));}_0x21fbd7[_0x3e9f5c(-0x196,-0x168)](_0x322353);}else{if(_0x595d44[_0x480162(0x32f,0x370)](_0x1f0b9a[_0x480162(0x30b,0x2f6)],0x2))return 0x1;let _0x3fa64e=0x0,_0x3bab77=0x0;for(let _0x413924=0x0;_0x595d44[_0x480162(0x32f,0x35e)](_0x413924,_0x4742c0['length']);_0x413924++){for(let _0x4ddf35=_0x413924+0x1;_0x4ddf35<_0x50e666[_0x3e9f5c(-0x19d,-0x1b0)];_0x4ddf35++){_0x44ba20[_0x413924]['embedding']&&_0x1fda34[_0x4ddf35]['embedding']&&(_0x3fa64e+=_0x595d44[_0x3e9f5c(-0x183,-0x118)](_0x54284f,_0x4acd4c[_0x413924][_0x480162(0x2f1,0x33a)],_0x54a6a4[_0x4ddf35]['embedding']),_0x3bab77++);}}return _0x3bab77>0x0?_0x595d44[_0x480162(0x394,0x383)](_0x3fa64e,_0x3bab77):0x0;}}return _0x21fbd7;}['evaluateCl'+'uster'](_0x317c39,_0x40c5e4,_0x43ad71){const _0x4973fc={'BtQgE':function(_0x2b0471,_0x54ce4d){return _0x2b0471 instanceof _0x54ce4d;},'ZpuEk':function(_0x44ab23,_0x38ad51){return _0x44ab23(_0x38ad51);},'WNyQp':_0x4655b1(-0xc1,-0xe3)+'ED','iOeLX':function(_0x413479,_0x267ba1){return _0x413479<_0x267ba1;},'jSdeb':function(_0x48827d,_0x408879){return _0x48827d>=_0x408879;},'zqRMw':function(_0x412ec2,_0x55e210){return _0x412ec2+_0x55e210;},'eDCMd':function(_0x2ff386,_0x6d7ee4){return _0x2ff386/_0x6d7ee4;},'XGuhZ':function(_0x317321,_0x28028b){return _0x317321<_0x28028b;},'VoqXT':function(_0x58695d,_0x5c2eb3){return _0x58695d<_0x5c2eb3;},'YZamR':_0x4655b1(-0xb3,-0x10c),'mDlva':function(_0x36e96e,_0x4fbb2a){return _0x36e96e!==_0x4fbb2a;},'YaqGT':function(_0x11c039,_0x531773){return _0x11c039+_0x531773;},'xIFpV':function(_0x2e10a0){return _0x2e10a0();},'ebQmM':_0x4655b1(-0xb8,-0x96)+'ed'},_0x4139bc=0.5;if(_0x4973fc['iOeLX'](_0x317c39[_0x4655b1(-0xb5,-0x96)],_0x40c5e4))return null;const _0xce6663=this[_0x35a453(0x17c,0x1a2)+_0x35a453(0x107,0x108)+_0x35a453(0x121,0x103)](_0x317c39);if(_0xce6663<0.75)return null;let _0x333e0d=_0xce6663;const _0x3d5cac=new Set(_0x317c39[_0x4655b1(-0x81,-0x88)](_0x1af2d1=>_0x1af2d1[_0x35a453(0xfe,0xc4)])[_0x4655b1(-0xd9,-0x85)](Boolean));_0x4973fc['jSdeb'](_0x3d5cac[_0x4655b1(-0x85,-0x85)],0x2)&&(_0x333e0d*=1.2);const _0x1c0b1c=new Map();for(const _0x577769 of _0x317c39){_0x1c0b1c[_0x35a453(0xc7,0xc0)](_0x577769[_0x4655b1(-0xb0,-0x5e)],_0x4973fc[_0x35a453(0x16a,0x1a0)](_0x1c0b1c[_0x35a453(0x13b,0x101)](_0x577769[_0x4655b1(-0xb0,-0xf2)])??0x0,0x1));}let _0x1c69e3=_0x317c39[0x0]['category'],_0xe77e54=0x0;for(const [_0x34a7d2,_0x32a42b]of _0x1c0b1c){_0x32a42b>_0xe77e54&&(_0xe77e54=_0x32a42b,_0x1c69e3=_0x34a7d2);}_0x4973fc[_0x4655b1(-0xaf,-0xe5)](_0xe77e54,_0x317c39['length'])>=0.5&&(_0x333e0d*=1.1);_0x333e0d=Math['min'](_0x333e0d,0x1);function _0x4655b1(_0x19a016,_0x30482f){return _0x423852(_0x19a016- -0x568,_0x30482f);}function _0x35a453(_0x159f06,_0x3f024d){return _0x423852(_0x159f06- -0x3c7,_0x3f024d);}if(_0x4973fc[_0x4655b1(-0x57,-0x6d)](_0x333e0d,_0x4139bc))return null;let _0x40a7eb;const _0x3e19e7=_0x317c39[_0x35a453(0xc8,0xa5)](_0x44c543=>_0x44c543[_0x4655b1(-0xcf,-0x8d)]&&_0x44c543[_0x35a453(0xd2,0x11b)][_0x4655b1(-0xb5,-0xc5)]>0x0);if(_0x4973fc[_0x4655b1(-0x59,-0x50)](_0x3e19e7[_0x4655b1(-0xb5,-0xe6)],0x2)){const _0xe5bb50=_0x3e19e7[0x0][_0x4655b1(-0xcf,-0x12e)][_0x4655b1(-0xb5,-0xa3)],_0xa8d7da=new Array(_0xe5bb50)[_0x35a453(0x104,0xc5)](0x0);for(const _0x268ab6 of _0x3e19e7){for(let _0x25b0e1=0x0;_0x25b0e1<_0xe5bb50;_0x25b0e1++){_0xa8d7da[_0x25b0e1]+=_0x268ab6[_0x35a453(0xd2,0x137)][_0x25b0e1]/_0x3e19e7[_0x4655b1(-0xb5,-0x9f)];}}let _0x378526=0x0,_0x2e445c=-0x1;for(let _0x2fff9f=0x0;_0x4973fc['VoqXT'](_0x2fff9f,_0x3e19e7[_0x35a453(0xec,0x91)]);_0x2fff9f++){if(_0x4973fc[_0x4655b1(-0x86,-0x2b)]===_0x35a453(0x180,0x151))return{'candidates':_0x231f49,'created':_0x3d8006,'skipped':_0x48b7ac['length'],'errors':_0x59bbb9};else{const _0x244105=cosineSimilarity(_0xa8d7da,_0x3e19e7[_0x2fff9f]['embedding']);if(_0x244105>_0x2e445c){if(_0x4973fc[_0x4655b1(-0xdb,-0x129)](_0x35a453(0x115,0x167),_0x35a453(0x115,0xf3))){const _0x347bc6=_0x4973fc[_0x35a453(0x134,0xd8)](_0x4ea89e,_0x2e8add)?_0x4f61d4['message']:_0x4973fc[_0x4655b1(-0x9,-0x8)](_0x2241fa,_0x536760);if(_0x347bc6[_0x4655b1(-0x2a,-0xa)](_0x4655b1(-0x4f,-0x98))||_0x347bc6['includes'](_0x4973fc['WNyQp'])||_0x347bc6[_0x4655b1(-0x2a,-0x5c)]('fetch\x20fail'+'ed'))return![];return![];}else _0x2e445c=_0x244105,_0x378526=_0x2fff9f;}}}_0x40a7eb=_0x3e19e7[_0x378526]['content']['slice'](0x0,0x1f4);}else{const _0x5305c6=[..._0x317c39][_0x4655b1(-0x7d,-0x92)]((_0x3db99b,_0x5c676e)=>_0x5c676e['content'][_0x35a453(0xec,0x14d)]-_0x3db99b[_0x4655b1(-0xa,0x5d)][_0x35a453(0xec,0xeb)]);_0x40a7eb=_0x5305c6[0x0][_0x4655b1(-0xa,-0x21)][_0x35a453(0xcb,0xb2)](0x0,0x1f4);}const _0xdc62dc=new Map();for(const _0x864919 of _0x317c39){for(const _0x8d09b3 of _0x864919['tags']){_0xdc62dc[_0x4655b1(-0xda,-0x141)](_0x8d09b3,_0x4973fc[_0x4655b1(-0xca,-0xc7)](_0xdc62dc['get'](_0x8d09b3)??0x0,0x1));}}const _0x4a0490=Array[_0x4655b1(-0x96,-0x71)](_0xdc62dc[_0x35a453(0x15e,0x11c)]())['filter'](([,_0x11cd85])=>_0x11cd85>=0x2)[_0x4655b1(-0x81,-0xb2)](([_0x4242b8])=>_0x4242b8);return{'clusterId':_0x4973fc[_0x35a453(0x15a,0x18a)](randomUUID),'sourceMemories':_0x317c39,'category':_0x1c69e3,'confidence':_0x333e0d,'pattern':_0x40a7eb,'tags':[..._0x4a0490,'skill',_0x4973fc[_0x4655b1(-0x4a,-0x41)]]};}async[_0x423852(0x552,0x541)+'thLLM'](_0x5b0b29){function _0x1ef7f9(_0x18a50a,_0x320e7a){return _0x423852(_0x320e7a- -0x5e1,_0x18a50a);}const _0x43202e={'bUQsp':function(_0x54aad9,_0x10a81d){return _0x54aad9 instanceof _0x10a81d;},'kJbLD':'Respond\x20wi'+_0x1ef7f9(-0x85,-0xd8)+_0x1ef7f9(-0xa8,-0x84)+_0x1ef7f9(-0x102,-0x15b)+_0x3f6470(0xfe,0x107)+_0x1ef7f9(-0x76,-0xb8)+'.0}','KijvL':_0x3f6470(0x14a,0x132)+'ories:','dxXuZ':function(_0x26e553,_0x32c3f9){return _0x26e553>=_0x32c3f9;},'Odtnu':function(_0x277663,_0x127d50){return _0x277663(_0x127d50);},'FITec':_0x1ef7f9(-0xf6,-0x87)+'ed'};function _0x3f6470(_0x385549,_0x48ad0d){return _0x423852(_0x385549- -0x3f3,_0x48ad0d);}try{const {createLLMClient:_0x3acaf8}=await import('../llm/ind'+_0x1ef7f9(-0xcf,-0xc2)),_0x1e9fff=_0x3acaf8(this[_0x3f6470(0x142,0x15f)][_0x1ef7f9(-0x126,-0x157)]),_0x5e1f80=[_0x3f6470(0xd5,0x10c)+_0x3f6470(0xfa,0xc4)+_0x1ef7f9(-0xc1,-0x120)+_0x1ef7f9(-0xee,-0x112)+_0x3f6470(0x147,0xf9)+_0x3f6470(0x92,0x3c)+_0x3f6470(0x112,0xb9)+'.',_0x43202e[_0x1ef7f9(-0x167,-0x130)],'',_0x3f6470(0xc3,0x7a)+_0x5b0b29[_0x3f6470(0xc5,0x7e)],'Pattern:\x20'+_0x5b0b29['pattern'],_0x1ef7f9(-0x12e,-0x137)+_0x1ef7f9(-0x90,-0x8a)+_0x5b0b29[_0x3f6470(0x111,0x126)+_0x3f6470(0x13b,0x17b)][_0x3f6470(0xc0,0x52)],'',_0x43202e[_0x3f6470(0x157,0x13c)],..._0x5b0b29[_0x3f6470(0x111,0x143)+_0x3f6470(0x13b,0x15c)][_0x3f6470(0x9f,0x49)](0x0,0x3)['map']((_0x46c0b4,_0xbb316d)=>_0xbb316d+0x1+'.\x20'+_0x46c0b4[_0x3f6470(0x16b,0x149)][_0x3f6470(0x9f,0xd0)](0x0,0xc8))][_0x1ef7f9(-0x186,-0x135)]('\x0a'),_0x259fc0=await _0x1e9fff[_0x3f6470(0x159,0xf9)](_0x5e1f80),_0x51abdc=JSON[_0x3f6470(0x11f,0xb9)](_0x259fc0);return _0x51abdc[_0x1ef7f9(-0xa1,-0xb9)]===!![]&&_0x43202e[_0x1ef7f9(-0x6d,-0xd9)](_0x51abdc[_0x3f6470(0x103,0xc2)]??0x0,this[_0x3f6470(0x142,0x19c)][_0x3f6470(0xad,0x9a)+'rsion']?.[_0x3f6470(0xd1,0xb6)+_0x3f6470(0x15a,0x143)]??0.7);}catch(_0x338a39){const _0xe6965=_0x338a39 instanceof Error?_0x338a39[_0x1ef7f9(-0x153,-0x13c)]:_0x43202e['Odtnu'](String,_0x338a39);if(_0xe6965[_0x3f6470(0x14b,0xeb)](_0x1ef7f9(-0x91,-0xc8))||_0xe6965['includes'](_0x1ef7f9(-0xf9,-0x13a)+'ED')||_0xe6965['includes'](_0x43202e[_0x3f6470(0x118,0xd1)])){if('TbTag'==='TbTag')return![];else _0x1f1a43['push'](_0x3f6470(0xff,0x14a)+_0x3f6470(0xea,0x123)+(wRsuOW[_0x3f6470(0x15e,0xf7)](_0x4a549f,_0x2084e9)?_0x603ba0[_0x1ef7f9(-0x122,-0x13c)]:_0x1833bb(_0x129703)));}return![];}}async[_0x423852(0x4c6,0x4db)+_0x5b2f82(0x1e3,0x207)](_0x402eaa,_0x3061b8){const _0x2988d5={'eCzoS':function(_0x13488c,_0x5dcca9){return _0x13488c>_0x5dcca9;},'MwxyP':_0x2090c7(0x3ff,0x396)+'ns:','IaQQu':function(_0x4feeb3,_0x454f19){return _0x4feeb3*_0x454f19;},'BGcsJ':_0x2b51b5(0x88,0x31),'TIaUR':function(_0x4e1593,_0x48d626){return _0x4e1593&&_0x48d626;},'ylBgm':_0x2b51b5(0xfd,0xe5),'robeH':_0x2b51b5(0xac,0xe5),'uCWLg':_0x2b51b5(0xea,0x8d)},_0x120386=new Date()[_0x2090c7(0x32c,0x370)+'g']();function _0x2090c7(_0x22c398,_0x31cd65){return _0x5b2f82(_0x31cd65-0x172,_0x22c398);}const _0x1ea143=new Date(Date[_0x2090c7(0x34c,0x347)]()+_0x2988d5[_0x2b51b5(0x90,0xe0)]((this['config'][_0x2b51b5(0x58,0x64)+'rsion']?.['reviewCycl'+_0x2090c7(0x3b1,0x379)]??0x5a)*0x18*0x3c,0x3c)*0x3e8)[_0x2090c7(0x345,0x370)+'g']();function _0x2b51b5(_0x5488a5,_0x4665f2){return _0x5b2f82(_0x5488a5- -0x138,_0x4665f2);}const _0x13ba2c=this[_0x2090c7(0x36a,0x2ff)+_0x2b51b5(0x106,0xf8)](_0x402eaa);let _0x3ed2a5=null;if(_0x3061b8){if(_0x2988d5['BGcsJ']!==_0x2b51b5(0xa1,0x4d))try{_0x3ed2a5=await _0x3061b8[_0x2090c7(0x2b2,0x310)+_0x2090c7(0x2ea,0x306)]({'content':_0x402eaa[_0x2b51b5(0xb0,0x10a)],'tags':_0x402eaa[_0x2090c7(0x2ec,0x30d)][_0x2090c7(0x320,0x2f1)](_0xa28f3a=>!_0xa28f3a[_0x2b51b5(0xb2,0xda)](_0x2b51b5(0x5a,-0x8))&&_0xa28f3a!=='skill'&&_0xa28f3a!==_0x2b51b5(0x68,0xd4)+'ed'),'category':_0x402eaa[_0x2090c7(0x2ed,0x31a)]});}catch{}else{const _0x253e7e=[];_0x253e7e['push']('[Skill]\x20'+_0x1591c7['pattern']),_0x253e7e[_0x2b51b5(0x72,0x49)](''),_0x253e7e[_0x2090c7(0x383,0x31c)]('Category:\x20'+_0x56dfc1[_0x2090c7(0x316,0x31a)]),_0x253e7e['push'](_0x2090c7(0x3ad,0x346)+_0xddf047[_0x2b51b5(0xbc,0x128)+_0x2b51b5(0xe6,0x90)]['length']+_0x2090c7(0x376,0x382)),_0x253e7e['push'](_0x2b51b5(0x48,0x3f)+':\x20'+(_0x1ea0c4[_0x2b51b5(0xae,0xbd)]*0x64)[_0x2b51b5(0x74,0xc5)](0x0)+'%');if(_0x2988d5[_0x2090c7(0x33a,0x322)](_0x2b2ca6[_0x2090c7(0x37a,0x366)+_0x2090c7(0x3f9,0x390)][_0x2b51b5(0x6b,0x7c)],0x1)){_0x253e7e[_0x2b51b5(0x72,0x13)](''),_0x253e7e['push'](_0x2988d5['MwxyP']);for(const _0x3dfee5 of _0x51f467[_0x2090c7(0x373,0x366)+_0x2090c7(0x363,0x390)][_0x2090c7(0x2aa,0x2f4)](0x0,0x3)){const _0x2da240=_0x3dfee5['content'][_0x2090c7(0x38b,0x3a8)]('\x0a')[0x0]['slice'](0x0,0x96);_0x253e7e['push']('-\x20'+_0x2da240);}}return _0x253e7e['join']('\x0a');}}const _0x4973f1={'sourceMemoryIds':_0x402eaa['sourceMemo'+_0x2b51b5(0xe6,0xd6)]['map'](_0x3bed73=>_0x3bed73['id']),'crystallizedAt':_0x120386,'confidence':_0x402eaa['confidence'],'reviewDueAt':_0x1ea143,'activationCount':0x0,..._0x2988d5[_0x2090c7(0x385,0x321)](_0x3ed2a5,{'taxonomyDomain':_0x3ed2a5['domain'],'taxonomySkillId':_0x3ed2a5['skill_id']??undefined,'taxonomyNature':_0x3ed2a5[_0x2b51b5(0x4b,0x77)]??undefined,'taxonomyStability':_0x3ed2a5[_0x2090c7(0x353,0x3b8)]??undefined,'taxonomyConfidence':_0x3ed2a5[_0x2090c7(0x32d,0x358)]})},_0xe260ad=_0x2b51b5(0x5a,0x0)+Buffer['from'](JSON[_0x2b51b5(0xa4,0x60)](_0x4973f1))[_0x2090c7(0x33c,0x36c)](_0x2988d5[_0x2090c7(0x36b,0x36f)]),_0x7023d4=[];if(_0x3ed2a5){if(_0x2988d5['robeH']===_0x2988d5['uCWLg'])for(const _0x11b582 of _0x54bebf[_0x2090c7(0x2ab,0x30d)]){_0x32e7dd[_0x2090c7(0x2e3,0x2f0)](_0x11b582,(_0x304118[_0x2b51b5(0xba,0x53)](_0x11b582)??0x0)+0x1);}else _0x7023d4[_0x2090c7(0x384,0x31c)](_0x2090c7(0x31b,0x314)+_0x3ed2a5[_0x2b51b5(0xb7,0xf5)]),_0x3ed2a5[_0x2090c7(0x346,0x348)]&&_0x7023d4[_0x2090c7(0x2b9,0x31c)](_0x2090c7(0x2b0,0x314)+_0x3ed2a5['skill_id']),_0x3ed2a5[_0x2090c7(0x348,0x2f5)]&&_0x7023d4[_0x2090c7(0x2f7,0x31c)](_0x2b51b5(0xc4,0xf5)+_0x3ed2a5[_0x2b51b5(0x4b,-0x5)]);}const _0xd1e6e6=this['db'][_0x2b51b5(0x3f,0x9f)+'ry']({'content':_0x13ba2c,'category':_0x2b51b5(0xb4,0xca),'tier':'semantic','tags':[..._0x402eaa['tags'],..._0x7023d4,_0xe260ad],'projectPath':_0x402eaa[_0x2090c7(0x301,0x366)+_0x2b51b5(0xe6,0x149)][0x0]?.[_0x2b51b5(0xcc,0xb7)+'h']}),_0x18666a=_0x402eaa[_0x2b51b5(0xbc,0x81)+_0x2090c7(0x3b6,0x390)][_0x2b51b5(0x9f,0xa5)](_0x3a8702=>_0x3a8702['embedding'])[_0x2b51b5(0x47,0x88)](_0x3340d5=>!!_0x3340d5&&_0x3340d5[_0x2090c7(0x311,0x315)]>0x0);if(_0x18666a[_0x2b51b5(0x6b,0x21)]>0x0){const _0x1bdf3d=this[_0x2090c7(0x2d9,0x2f7)+_0x2090c7(0x3ad,0x38c)](_0x18666a);this['db']['saveEmbedd'+'ing'](_0xd1e6e6['id'],_0x1bdf3d);}return _0xd1e6e6;}['reviewSkil'+'ls'](){const _0x276e52={'JrNGU':_0x5ce51a(0x602,0x5e9),'GyTHT':function(_0x5b0d03,_0x3655a3){return _0x5b0d03*_0x3655a3;}},_0x15a183=new Date();let _0x23c19d=0x0,_0x1841fb=0x0,_0x904c3=0x0;const _0x5cfa9a=this['db'][_0x2026ae(0x1f2,0x1d8)+'es']({'category':_0x2026ae(0x1d3,0x1a9),'limit':0x3e8});for(const _0x4dbaa6 of _0x5cfa9a){_0x23c19d++;const _0x3de5ba=this[_0x2026ae(0x209,0x20d)+_0x2026ae(0x192,0x1dd)](_0x4dbaa6);if(!_0x3de5ba)continue;const _0x1c11a9=new Date(_0x3de5ba[_0x2026ae(0x187,0x1c3)+'t']);if(_0x15a183<_0x1c11a9)continue;if(_0x4dbaa6['accessCoun'+'t']<0x2)this['db'][_0x2026ae(0x12b,0x168)+'ry'](_0x4dbaa6['id'],{'category':_0x276e52[_0x2026ae(0x176,0x1a6)],'tags':_0x4dbaa6[_0x2026ae(0x11e,0x158)][_0x2026ae(0x180,0x13c)](_0xdac89a=>!_0xdac89a[_0x2026ae(0x1ee,0x1a7)](_0x2026ae(0x192,0x14f))&&_0xdac89a!=='skill'&&_0xdac89a!==_0x5ce51a(0x595,0x550)+'ed')}),_0x1841fb++;else{const _0x8c75e6=new Date(Date[_0x5ce51a(0x5aa,0x585)]()+_0x276e52[_0x5ce51a(0x537,0x528)](_0x276e52[_0x5ce51a(0x4f2,0x528)]((this[_0x2026ae(0x203,0x1e2)][_0x2026ae(0x178,0x14d)+'rsion']?.[_0x5ce51a(0x638,0x5f0)+_0x5ce51a(0x5fd,0x5b7)]??0x5a)*0x18*0x3c,0x3c),0x3e8))[_0x2026ae(0x1b7,0x1bb)+'g'](),_0x40b08e={..._0x3de5ba,'reviewDueAt':_0x8c75e6,'activationCount':_0x4dbaa6[_0x2026ae(0x17b,0x155)+'t'],'lastActivatedAt':_0x4dbaa6['lastAccess'+_0x2026ae(0x16e,0x18c)]},_0x4fa7cd='meta:'+Buffer['from'](JSON[_0x5ce51a(0x5c7,0x58c)](_0x40b08e))['toString'](_0x5ce51a(0x58f,0x5e5)),_0x576c8b=_0x4dbaa6[_0x2026ae(0x130,0x158)][_0x5ce51a(0x588,0x52f)](_0xc1270f=>!_0xc1270f[_0x2026ae(0x1c5,0x1a7)](_0x2026ae(0x1b0,0x14f)));_0x576c8b[_0x2026ae(0x10c,0x167)](_0x4fa7cd),this['db'][_0x5ce51a(0x5ca,0x55b)+'ry'](_0x4dbaa6['id'],{'tags':_0x576c8b}),_0x904c3++;}}function _0x5ce51a(_0x458216,_0x396e9e){return _0x5b2f82(_0x396e9e-0x3b0,_0x458216);}function _0x2026ae(_0x5869a2,_0x1855e1){return _0x5b2f82(_0x1855e1- -0x43,_0x5869a2);}return{'reviewed':_0x23c19d,'demoted':_0x1841fb,'renewed':_0x904c3};}['computeAve'+_0x5b2f82(0x1be,0x184)+_0x423852(0x4e8,0x532)](_0xa93c5c){const _0x13c62e={'mOnMN':function(_0x2c1b4b,_0x149036){return _0x2c1b4b<_0x149036;},'IhxFC':function(_0x36f451,_0x2ec402){return _0x36f451<_0x2ec402;},'nFRwR':function(_0x5e2904,_0x2d7e1a){return _0x5e2904+_0x2d7e1a;},'ypTNs':function(_0x15041a,_0x404e24){return _0x15041a<_0x404e24;},'bKOKA':function(_0x20215e,_0x2c80ff,_0x186b74){return _0x20215e(_0x2c80ff,_0x186b74);},'EvwNd':function(_0x322d3f,_0x27e634){return _0x322d3f>_0x27e634;}};if(_0x13c62e[_0x35d7b0(-0x169,-0x10a)](_0xa93c5c[_0x35d7b0(-0x16a,-0x183)],0x2))return 0x1;function _0x40b217(_0x6d3326,_0x4c00eb){return _0x5b2f82(_0x4c00eb-0x6c,_0x6d3326);}function _0x35d7b0(_0xa0efb7,_0x429d73){return _0x5b2f82(_0xa0efb7- -0x30d,_0x429d73);}let _0x4435b7=0x0,_0x2e0023=0x0;for(let _0x5e497a=0x0;_0x13c62e[_0x35d7b0(-0xdd,-0x7e)](_0x5e497a,_0xa93c5c['length']);_0x5e497a++){for(let _0x5a6c8f=_0x13c62e[_0x40b217(0x1d7,0x230)](_0x5e497a,0x1);_0x13c62e[_0x40b217(0x2a7,0x24b)](_0x5a6c8f,_0xa93c5c[_0x40b217(0x1e1,0x20f)]);_0x5a6c8f++){_0xa93c5c[_0x5e497a]['embedding']&&_0xa93c5c[_0x5a6c8f][_0x35d7b0(-0x184,-0x19e)]&&(_0x4435b7+=_0x13c62e[_0x35d7b0(-0xf6,-0x141)](cosineSimilarity,_0xa93c5c[_0x5e497a][_0x40b217(0x1e5,0x1f5)],_0xa93c5c[_0x5a6c8f][_0x40b217(0x23e,0x1f5)]),_0x2e0023++);}}return _0x13c62e[_0x35d7b0(-0xe2,-0x124)](_0x2e0023,0x0)?_0x4435b7/_0x2e0023:0x0;}[_0x423852(0x54f,0x549)+_0x5b2f82(0x213,0x251)](_0x460469,_0x5331d1){const _0x56250a={'btYZn':function(_0x52e2a0,_0x2478f6){return _0x52e2a0>=_0x2478f6;}},_0x56b61e=new Set(_0x460469[_0x429b7b(-0x4c,-0x22)+'ries'][_0x429b7b(-0x56,-0x3f)](_0x1a2198=>_0x1a2198['id']));function _0x429b7b(_0x5cd7d9,_0x34e30e){return _0x423852(_0x34e30e- -0x526,_0x5cd7d9);}function _0x370bb3(_0x315ada,_0x29d09e){return _0x423852(_0x29d09e-0x41,_0x315ada);}for(const _0x5a7440 of _0x5331d1){const _0xb0f3a3=this[_0x370bb3(0x5b3,0x5a1)+'adata'](_0x5a7440);if(!_0xb0f3a3)continue;const _0x5027af=new Set(_0xb0f3a3[_0x429b7b(-0x81,-0x22)+_0x370bb3(0x4ea,0x559)]),_0x2e0294=[..._0x56b61e][_0x429b7b(-0xd4,-0x97)](_0x2729d4=>_0x5027af[_0x370bb3(0x509,0x4d2)](_0x2729d4))[_0x370bb3(0x4b7,0x4f4)],_0x4b9a66=_0x2e0294/Math[_0x429b7b(-0x1f,-0x20)](_0x56b61e[_0x370bb3(0x573,0x524)],_0x5027af[_0x370bb3(0x55a,0x524)]);if(_0x56250a['btYZn'](_0x4b9a66,0.7))return!![];}return![];}[_0x423852(0x49d,0x4de)+'Content'](_0x34cbd8){const _0x3d4312={'YyCfi':function(_0x45b4a0,_0x37dfec){return _0x45b4a0*_0x37dfec;}},_0x131dcf=[];_0x131dcf[_0x50b511(0x224,0x1fb)](_0x50b511(0x1c2,0x222)+_0x34cbd8['pattern']),_0x131dcf[_0x50b511(0x1eb,0x1fb)](''),_0x131dcf['push'](_0x5e1755(0x3c0,0x426)+_0x34cbd8[_0x50b511(0x1d8,0x1f9)]),_0x131dcf[_0x50b511(0x1c1,0x1fb)](_0x5e1755(0x3ee,0x44e)+_0x34cbd8[_0x50b511(0x28c,0x245)+_0x50b511(0x284,0x26f)][_0x50b511(0x1c2,0x1f4)]+_0x50b511(0x1f7,0x261));function _0x5e1755(_0x1406ba,_0x3b6b9b){return _0x423852(_0x1406ba- -0xf6,_0x3b6b9b);}_0x131dcf['push'](_0x5e1755(0x39a,0x3c7)+':\x20'+_0x3d4312['YyCfi'](_0x34cbd8[_0x50b511(0x26b,0x237)],0x64)['toFixed'](0x0)+'%');function _0x50b511(_0x308db9,_0x24de8c){return _0x423852(_0x24de8c- -0x2bf,_0x308db9);}if(_0x34cbd8['sourceMemo'+_0x50b511(0x256,0x26f)][_0x5e1755(0x3bd,0x3c6)]>0x1){_0x131dcf[_0x50b511(0x18e,0x1fb)](''),_0x131dcf[_0x50b511(0x1a8,0x1fb)]('Key\x20patter'+'ns:');for(const _0x393b09 of _0x34cbd8[_0x50b511(0x1ee,0x245)+_0x5e1755(0x438,0x3f5)]['slice'](0x0,0x3)){const _0x5beb21=_0x393b09[_0x5e1755(0x468,0x41e)][_0x50b511(0x296,0x287)]('\x0a')[0x0][_0x50b511(0x1bc,0x1d3)](0x0,0x96);_0x131dcf[_0x5e1755(0x3c4,0x3b2)]('-\x20'+_0x5beb21);}}return _0x131dcf[_0x5e1755(0x3b6,0x398)]('\x0a');}[_0x5b2f82(0x250,0x214)+_0x5b2f82(0x220,0x224)](_0x22961e){const _0x30fcde={'QxKaT':'base64','WEKcF':_0x125f8a(0x4a3,0x4b0)},_0x554e8b=_0x22961e[_0x125f8a(0x418,0x471)][_0x125f8a(0x405,0x3d6)](_0x13ed3e=>_0x13ed3e[_0x569420(0x48d,0x4ce)](_0x125f8a(0x40f,0x41c)));function _0x125f8a(_0x4d39c7,_0x55f241){return _0x5b2f82(_0x4d39c7-0x27d,_0x55f241);}function _0x569420(_0x37684e,_0x574a80){return _0x5b2f82(_0x37684e-0x2a3,_0x574a80);}if(!_0x554e8b)return null;try{const _0x373494=Buffer[_0x125f8a(0x43f,0x456)](_0x554e8b['slice'](0x5),_0x30fcde[_0x569420(0x4e7,0x4c0)])[_0x125f8a(0x477,0x4dc)](_0x30fcde['WEKcF']);return JSON['parse'](_0x373494);}catch{return null;}}[_0x5b2f82(0x185,0x178)+'eddings'](_0x15a407){const _0x3bf3c7={'xRLFb':function(_0xe347c,_0x494608){return _0xe347c===_0x494608;},'mBHeu':_0x23c739(0x536,0x519)};function _0x23c739(_0x329e66,_0x5dcf84){return _0x423852(_0x5dcf84-0x4f,_0x329e66);}if(_0x3bf3c7[_0x118636(0x6,0x31)](_0x15a407['length'],0x0))return[];const _0x569bdd=_0x15a407[0x0][_0x118636(-0x2,0xe)],_0x1c6bca=new Array(_0x569bdd)[_0x118636(0x22,0x26)](0x0);for(const _0xf5713 of _0x15a407){for(let _0x3f72e1=0x0;_0x3f72e1<_0x569bdd;_0x3f72e1++){_0x1c6bca[_0x3f72e1]+=_0xf5713[_0x3f72e1];}}for(let _0x40f68d=0x0;_0x40f68d<_0x569bdd;_0x40f68d++){if(_0x3bf3c7[_0x118636(0x52,0x75)]===_0x118636(0x54,0x7d))return![];else _0x1c6bca[_0x40f68d]/=_0x15a407['length'];}function _0x118636(_0xe4865d,_0x4ca1a9){return _0x423852(_0x4ca1a9- -0x4a5,_0xe4865d);}return _0x1c6bca;}[_0x423852(0x555,0x520)+_0x423852(0x4f3,0x544)](_0x3cf8a4){function _0x1851ec(_0x2a598c,_0x17f408){return _0x5b2f82(_0x2a598c- -0xa9,_0x17f408);}const _0x5b8a48={'ZeVsG':_0x1851ec(0x18c,0x19f),'CgBYQ':_0x1851ec(0x17d,0x173),'orTbb':_0x118aab(0x2fc,0x343),'XiGVc':function(_0x3757a1,_0x23f912){return _0x3757a1<_0x23f912;},'zXhSn':function(_0x10bb6d,_0x2d0e09){return _0x10bb6d+_0x2d0e09;},'dAYZX':_0x118aab(0x326,0x2ef)};if(!_0x3cf8a4[_0x1851ec(0xe0,0xea)]||_0x3cf8a4[_0x118aab(0x2b8,0x252)]===_0x5b8a48['orTbb']){if(_0x118aab(0x2be,0x276)===_0x1851ec(0x105,0x14c))return{'absorbed':![]};else{const _0x2c0f84=_0x8e12c1[_0x118aab(0x358,0x3a1)](_0x774e56['random']()*(_0x1a06c1+0x1));[_0x596ad6[_0xb41b03],_0x399120[_0x2c0f84]]=[_0x4cce8a[_0x2c0f84],_0x3fb17e[_0x20ca34]],_0x563752[_0x1851ec(0x101,0x161)](_0x1efe7f[_0x4ba473]);}}const _0x2ac285=this['db'][_0x1851ec(0x172,0x140)+'es']({'limit':0xc8})[_0x118aab(0x28f,0x2bb)](_0x4f7b86=>_0x4f7b86[_0x1851ec(0xff,0x134)]===_0x1851ec(0x143,0x13c));for(const _0x5d89c0 of _0x2ac285){if(!_0x5d89c0[_0x118aab(0x299,0x273)])continue;const _0x58f4ea=cosineSimilarity(_0x3cf8a4[_0x118aab(0x299,0x240)],_0x5d89c0[_0x118aab(0x299,0x2b7)]);if(_0x5b8a48[_0x1851ec(0x1a8,0x1b8)](_0x58f4ea,0.8))continue;const _0x28772e=this['extractMet'+'adata'](_0x5d89c0);if(!_0x28772e)continue;if(_0x28772e['sourceMemo'+_0x1851ec(0x15f,0x180)]['includes'](_0x3cf8a4['id']))return{'absorbed':![]};_0x28772e[_0x1851ec(0x14b,0xe0)+_0x118aab(0x318,0x2f9)][_0x118aab(0x2ba,0x26b)](_0x3cf8a4['id']),_0x28772e['activation'+_0x118aab(0x2f0,0x2ef)]=_0x5b8a48['zXhSn'](_0x28772e[_0x1851ec(0x11a,0x123)+_0x118aab(0x2f0,0x304)]||0x0,0x1),_0x28772e['lastActiva'+'tedAt']=new Date()['toISOStrin'+'g']();const _0x5a6b86=_0x118aab(0x2a2,0x2eb)+Buffer[_0x118aab(0x2d2,0x321)](JSON['stringify'](_0x28772e))[_0x118aab(0x30a,0x2b6)](_0x5b8a48[_0x118aab(0x333,0x35c)]),_0x54e220=_0x5d89c0[_0x1851ec(0xf2,0xfb)][_0x1851ec(0xd6,0xfc)](_0x68889a=>!_0x68889a[_0x1851ec(0x141,0x195)](_0x1851ec(0xe9,0x113))),_0x4ebd23='-\x20'+_0x3cf8a4[_0x1851ec(0x1a5,0x1a9)][_0x118aab(0x346,0x30c)]('\x0a')[0x0][_0x1851ec(0xd9,0x127)](0x0,0x96);let _0x3db6c5=_0x5d89c0[_0x118aab(0x35e,0x2f9)];const _0x40b880=_0x3db6c5[_0x1851ec(0x18d,0x19b)]('\x0a')[_0x118aab(0x28f,0x28f)](_0x32a6f9=>_0x32a6f9[_0x118aab(0x2fa,0x298)]('-\x20'));if(_0x40b880['length']<0x5){if(_0x5b8a48[_0x118aab(0x29f,0x2d6)]!==_0x1851ec(0x188,0x1c8))_0x3db6c5=_0x5b8a48[_0x1851ec(0x174,0x1dc)](_0x3db6c5['trimEnd']()+'\x0a',_0x4ebd23);else{const _0x31e597=_0x2563e7[_0x1851ec(0xf2,0x12b)]['find'](_0x17841c=>_0x17841c[_0x118aab(0x2fa,0x32e)]('meta:'));if(!_0x31e597)return null;try{const _0x500934=_0x1d6082[_0x118aab(0x2d2,0x28f)](_0x31e597[_0x1851ec(0xd9,0xbe)](0x5),rsPVNT[_0x1851ec(0x17a,0x19d)])[_0x118aab(0x30a,0x2de)](rsPVNT[_0x1851ec(0x1a2,0x153)]);return _0x579276['parse'](_0x500934);}catch{return null;}}}return this['db'][_0x1851ec(0x102,0xf2)+'ry'](_0x5d89c0['id'],{'content':_0x3db6c5,'tags':[..._0x54e220,_0x5a6b86]}),{'absorbed':!![],'skillId':_0x5d89c0['id']};}function _0x118aab(_0x230c02,_0x19f729){return _0x5b2f82(_0x230c02-0x110,_0x19f729);}return{'absorbed':![]};}}
|
|
1
|
+
(function(_0x8cffa2,_0x3ebf29){function _0x2a9ab8(_0x140a74,_0x8519a6){return _0x2b83(_0x8519a6- -0x2e9,_0x140a74);}const _0x12e045=_0x8cffa2();function _0x21507a(_0x3ed0dc,_0x3c01ad){return _0x2b83(_0x3ed0dc- -0x158,_0x3c01ad);}while(!![]){try{const _0x1774b6=parseInt(_0x2a9ab8(-0xc9,-0xfb))/0x1*(-parseInt(_0x21507a(0x73,0x55))/0x2)+-parseInt(_0x21507a(0x60,0x4))/0x3*(-parseInt(_0x2a9ab8(-0xa7,-0x98))/0x4)+parseInt(_0x2a9ab8(-0xdf,-0x125))/0x5*(parseInt(_0x2a9ab8(-0x105,-0x157))/0x6)+-parseInt(_0x21507a(0xd8,0xd3))/0x7+-parseInt(_0x2a9ab8(-0x9f,-0xee))/0x8*(-parseInt(_0x2a9ab8(-0xe7,-0x12a))/0x9)+parseInt(_0x2a9ab8(-0x136,-0x15e))/0xa*(-parseInt(_0x21507a(0xdc,0x132))/0xb)+parseInt(_0x21507a(0xaf,0xe8))/0xc*(-parseInt(_0x21507a(0x50,0xb3))/0xd);if(_0x1774b6===_0x3ebf29)break;else _0x12e045['push'](_0x12e045['shift']());}catch(_0x26ab64){_0x12e045['push'](_0x12e045['shift']());}}}(_0x409e,0xbf22f));import{randomUUID}from'node:crypto';function _0x5d620b(_0x5ac6fa,_0x5ebc1e){return _0x2b83(_0x5ebc1e-0x1f9,_0x5ac6fa);}function _0x3f40ea(_0x5c5eeb,_0x37237e){return _0x2b83(_0x5c5eeb- -0x1bd,_0x37237e);}import{cosineSimilarity}from'../extraction/similarity.js';function _0x2b83(_0x1eccb0,_0x29debe){_0x1eccb0=_0x1eccb0-0x188;const _0x409ead=_0x409e();let _0x2b830b=_0x409ead[_0x1eccb0];if(_0x2b83['ltAKSY']===undefined){var _0x35b953=function(_0x3d443c){const _0x2f9833='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x43966c='',_0x5ca7e7='';for(let _0x1e2d70=0x0,_0x4447aa,_0x1b64aa,_0x40b0b9=0x0;_0x1b64aa=_0x3d443c['charAt'](_0x40b0b9++);~_0x1b64aa&&(_0x4447aa=_0x1e2d70%0x4?_0x4447aa*0x40+_0x1b64aa:_0x1b64aa,_0x1e2d70++%0x4)?_0x43966c+=String['fromCharCode'](0xff&_0x4447aa>>(-0x2*_0x1e2d70&0x6)):0x0){_0x1b64aa=_0x2f9833['indexOf'](_0x1b64aa);}for(let _0x21abbe=0x0,_0x452ae6=_0x43966c['length'];_0x21abbe<_0x452ae6;_0x21abbe++){_0x5ca7e7+='%'+('00'+_0x43966c['charCodeAt'](_0x21abbe)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5ca7e7);};_0x2b83['QqAmSc']=_0x35b953,_0x2b83['dHCcfj']={},_0x2b83['ltAKSY']=!![];}const _0x13272f=_0x409ead[0x0],_0x1628d7=_0x1eccb0+_0x13272f,_0x570abe=_0x2b83['dHCcfj'][_0x1628d7];return!_0x570abe?(_0x2b830b=_0x2b83['QqAmSc'](_0x2b830b),_0x2b83['dHCcfj'][_0x1628d7]=_0x2b830b):_0x2b830b=_0x570abe,_0x2b830b;}function _0x409e(){const _0x1db8a8=['Cu9Hy1C','zxzHBhvHDgvdBa','ugf0DgvYBJOG','BgfZDefJy2vZCW','lJb9','r0fAueq','y29UDgvUDa','zuPtru8','yMfZzty0','zwrbDa','B3jPzxm6','lI4VBgXTl2LUza','mJaWEgzuqK9N','tKDqwLy','BgfZDefJDgL2yq','DxbKyxrLzef0','zw5HyMXLza','yxzLCMfNzuvTyG','Aw5N','otKWz01IrNHL','zMLUza','C2XPy2u','ChvZAa','ChjVAMvJDfbHDa','C2f2zuvTyMvKza','DgLTzw91Da','y2f0zwDVCNK','B3bNrLq','yNvPBgrtA2LSBa','zdOG','zxGUANm','ywrHDge','qvrSsNq','CNvLl2zHBhnLla','Cfn5tNK','u2TPBgW','BwvZC2fNzq','CNnPB24','BM93','B3jPzxmGCMvWCG','q291BNq','nZHLtfzJsvu','BNq6ia','vvjPu2q','u2TzAuu','wfDTtLO','u291CMnLignVDq','C2L6zq','CMfNzvnPBwLSyq','zMLSBa','CgfYC2u','AwyGDgHLC2uGCW','zg9TywLU','CMv2Awv3u2TPBa','Cgf0DgvYBG','r1zswuu','vvz3BK0','mJy0C2fTANjf','C2vTyw50Awm','C291weu','y2uIoIaWlJaTmq','D0Dfz3C','BwLUq29UzMLKzq','runptK5sruzvuW','ndaWnvzhBMHLrG','BNrLBNq','v2Ltt0q','CMLLCW','swPzC2y','ndi1nJvgsvfjs2K','D3viELm','AgfZ','AKjQqvK','BwfW','BMnL','BgWVCgf0DgvYBG','odKXmdi2DKzAvhvr','BMf0DxjLoG','Dg9tDhjPBMC','zNjVBq','y3foA3O','y29UzMLN','veTvtuW','C1HXA3u','C2TPBgW','zg1QvwC','yLHADgG','C29YDa','DgLVBIbMywLSzq','rvHOr0G','C2TPBgXFAwq','C1PTvxa','DMjcreG','qLvVDui','zwrKAw5NCW','DgfNCW','s2v5ihbHDhrLCG','u2vbCgG','CxnmB0u','DxrMltG','D3DiCMe','Dg9gAxHLza','whnWyLG','Dgf4B25VBxK6','C2vZC2LVBKLK','zw50CMLLCW','EM5Lr1G','vNPRwwq','uMH0v00','C2v0','q1b0r3K','mwToAwPhrW','C3rYAw5NAwz5','v2nxtvq','s3DMqKK','zw1IzwrKAw5N','uMvZCg9Uzcb3Aq','CML0Eq','CMfUzg9T','y2X1C3rLCK1LBq','DxnHyMXLihnRAq','BNm6','Aw5JBhvKzxm','BgXT','mJu2mJr4z3v0DKm','BgvUz3rO','Dg9ju09tDhjPBG','Aw9UCW','AMTJCui','y2XHC3nPzNLdBW','igzHAwXLzdOG','u2fTCgXLig1LBq','Evz3Duq','z2v0vgLTzq','ig1LBw9YAwvZ','BMf0DxjL','mZu4ndGYmfvtC1n2qq','wvfyzwm','u2TPBgWGy3jLyq','zvfIy0m','C291CMnLtwvTBW','se5VseC','tfDODha','wvLmzwO','rLzgCMW','C3rHyMLSAxr5','B3jPzxm','zurHExm','y29TChjLC3nuBW','vgHYzxnOB2XK','Bwv0ytO','zxH0CMfJDe1LDa','ywn0AxzHDgLVBG','DgHmte0','r3HuvwW','Aw1PBgfYig1LBq','ywnJzxnZq291BG','y29TChv0zuf2zq','vKrnAwy','zxnLBNqGysbYzq','rxzHBhvHDgLVBG','EMzVr0O','yKPTA1i','BwLU','z2v0','C2TPBgXdB252zq','BvnYDKC','txPzyLm','zMLSDgvY','zvnRAwXS','BwLUuMvWzxrPDa','DgvKqxq','DhjPBuvUza','EePswLK','CNLjzhm','CeLNwM8','BgvHCM5PBMC','mZy4nZa4mMLsvNDlza','Aw9U','C3bSAxq','u291CMnLCZOG','nZC4nJL6zM1NswW','BgLZDe1LBw9YAq','CMv2Awv3rhvLqq','zMv0y2GGzMfPBa','q1rjqLa','ve9fyMO','zMXVB3i','y3jLyxrLtwvTBW','tevkvuO','ywrK','CxrbCfi','ze5HtNy','vhjPBKm','v3Dbzuq','y3j5C3rHBgXPEG','C3rHCNrZv2L0Aa','yKjLvg0','y29UzMLKzw5Jzq','uuDUr24','DxbKyxrLtwvTBW','AM9PBG','qw9osMO','q29UDgvUDa','AxneDxbSAwnHDa','q21Nq1C','Dxn0zxi','q2f0zwDVCNK6ia','venHy1C','CMv2Awv3q3LJBa','mZKWntjjy1HQzNa','ywjZB3jIsw50BW','B0Hly2C','ANnpCue'];_0x409e=function(){return _0x1db8a8;};return _0x409e();}export class SkillEvaluator{['db'];['config'];constructor(_0x2d063d,_0x3ae956){function _0x1ae710(_0x2fc269,_0x1df847){return _0x2b83(_0x2fc269-0x4e,_0x1df847);}this['db']=_0x2d063d,this[_0x1ae710(0x21e,0x1e5)]=_0x3ae956;}async['evaluate'](_0x3a9c24,_0x447bf7){const _0x57e4da={'jkcqB':function(_0x33d0f6,_0x243424){return _0x33d0f6(_0x243424);},'UVwnM':_0x5e0ad8(0x47c,0x4b4),'qOacW':function(_0x132afd,_0x152be8){return _0x132afd(_0x152be8);},'pIgZo':'vOwOP','NGPZV':function(_0x13652b,_0x4a37e0){return _0x13652b<_0x4a37e0;},'ATlJt':function(_0x2e3e03,_0x25a294){return _0x2e3e03-_0x25a294;},'miduU':function(_0x18d19c,_0x190eaf){return _0x18d19c!==_0x190eaf;},'XspbX':_0x3352c4(0x309,0x36e),'opgFT':_0x3352c4(0x2da,0x2b7),'TKUML':function(_0x2f197d,_0x2189c6){return _0x2f197d===_0x2189c6;},'sZmUp':function(_0x2612cd,_0x17ee1b){return _0x2612cd instanceof _0x17ee1b;},'GxTUl':function(_0x5e915e,_0x391aa7){return _0x5e915e instanceof _0x391aa7;}};function _0x3352c4(_0x11a94a,_0x588dc9){return _0x2b83(_0x11a94a-0xbd,_0x588dc9);}function _0x5e0ad8(_0x152b45,_0x373e32){return _0x2b83(_0x152b45-0x2e4,_0x373e32);}const _0x5db3d8=this[_0x3352c4(0x28d,0x2a6)][_0x5e0ad8(0x508,0x4ba)+_0x3352c4(0x261,0x295)];if(!_0x5db3d8?.[_0x5e0ad8(0x473,0x4c2)]){if(_0x57e4da[_0x5e0ad8(0x512,0x4d9)]===_0x3352c4(0x2aa,0x2d3))_0x4db7f5[_0x5e0ad8(0x479,0x436)]('taxonomy:'+_0x1eed48[_0x3352c4(0x270,0x24f)]),_0x3cdb8d[_0x5e0ad8(0x4bd,0x480)]&&_0x10cb88[_0x5e0ad8(0x479,0x4a6)](_0x3352c4(0x2a3,0x30d)+_0x3d7e72['skill_id']),_0x1f6b08[_0x3352c4(0x2c3,0x32c)]&&_0x4673d1[_0x3352c4(0x252,0x219)](_0x3352c4(0x289,0x2c6)+_0x3fb5dc[_0x5e0ad8(0x4ea,0x4f0)]);else return{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]};}const _0x219c1f=[],_0x3f5bc0=[];let _0x5f49bf=0x0,_0x51e10b=0x0;try{const _0x1838ba=this['db']['listMemori'+'es']({'limit':0x1f4,'projectPath':_0x3a9c24}),_0x5c0f99=_0x1838ba['filter'](_0x5ca996=>_0x5ca996[_0x5e0ad8(0x47d,0x4c7)]!==_0x3352c4(0x290,0x2c7)&&_0x5ca996[_0x5e0ad8(0x4d6,0x519)]&&_0x5ca996[_0x5e0ad8(0x4d6,0x497)][_0x5e0ad8(0x4e0,0x503)]>0x0);if(_0x57e4da[_0x5e0ad8(0x470,0x4ba)](_0x5c0f99[_0x5e0ad8(0x4e0,0x536)],_0x5db3d8[_0x3352c4(0x2e6,0x2b7)+_0x3352c4(0x2bb,0x30b)]))return{'candidates':_0x3f5bc0,'created':_0x5f49bf,'skipped':_0x5c0f99[_0x3352c4(0x2b9,0x320)],'errors':_0x219c1f};const _0x11fa99=0x12c;let _0x318ca5;if(_0x5c0f99[_0x3352c4(0x2b9,0x306)]>_0x11fa99){const _0x2e29ad=[..._0x5c0f99][_0x5e0ad8(0x4ba,0x477)]((_0x21a5b1,_0x244030)=>new Date(_0x244030[_0x5e0ad8(0x472,0x488)])[_0x5e0ad8(0x4e8,0x52a)]()-new Date(_0x21a5b1['updatedAt'])['getTime']()),_0x2dc5b6=Math['floor'](_0x11fa99*0.7),_0x4b8f7=_0x11fa99-_0x2dc5b6,_0x9122eb=_0x2e29ad[_0x3352c4(0x251,0x227)](0x0,_0x2dc5b6),_0x42291e=new Set(_0x9122eb[_0x3352c4(0x285,0x2c0)](_0xfc21aa=>_0xfc21aa['id'])),_0x239c96=_0x2e29ad[_0x5e0ad8(0x478,0x463)](_0x2dc5b6)[_0x3352c4(0x2e4,0x27d)](_0x559e5c=>!_0x42291e[_0x5e0ad8(0x4aa,0x451)](_0x559e5c['id'])),_0x39714e=[];for(let _0x45e0b0=_0x57e4da[_0x3352c4(0x25c,0x2c2)](_0x239c96['length'],0x1);_0x45e0b0>0x0&&_0x57e4da[_0x3352c4(0x249,0x25b)](_0x39714e[_0x3352c4(0x2b9,0x288)],_0x4b8f7);_0x45e0b0--){if(_0x3352c4(0x2dd,0x275)!==_0x5e0ad8(0x4a5,0x481)){const _0x57a16a=Math[_0x3352c4(0x2f7,0x28f)](Math[_0x3352c4(0x2b2,0x2c4)]()*(_0x45e0b0+0x1));[_0x239c96[_0x45e0b0],_0x239c96[_0x57a16a]]=[_0x239c96[_0x57a16a],_0x239c96[_0x45e0b0]],_0x39714e[_0x3352c4(0x252,0x2ba)](_0x239c96[_0x45e0b0]);}else{const _0x825aef=_0x2f063e instanceof _0x3f12d7?_0x47f90f['message']:_0x57e4da[_0x5e0ad8(0x4e3,0x519)](_0x16f841,_0x269e0e);if(_0x825aef['includes'](_0x57e4da[_0x5e0ad8(0x49b,0x440)])||_0x825aef[_0x3352c4(0x2b6,0x2cd)](_0x3352c4(0x27b,0x230)+'ED')||_0x825aef[_0x3352c4(0x2b6,0x308)](_0x5e0ad8(0x51b,0x504)+'ed'))return![];return![];}}_0x318ca5=[..._0x9122eb,..._0x39714e];}else{if(_0x57e4da['miduU'](_0x57e4da[_0x3352c4(0x2a2,0x2a5)],_0x57e4da[_0x3352c4(0x257,0x278)]))_0x318ca5=_0x5c0f99;else{const _0x41aa3b=_0x1a1a45[_0x3352c4(0x318,0x2ec)][_0x3352c4(0x2ef,0x2ce)]('\x0a')[0x0][_0x5e0ad8(0x478,0x44f)](0x0,0x96);_0x1e1e0c[_0x3352c4(0x252,0x210)]('-\x20'+_0x41aa3b);}}const _0x508b63=this[_0x3352c4(0x2b3,0x31e)+_0x3352c4(0x2ce,0x28a)](_0x318ca5,_0x5db3d8['similarity'+_0x5e0ad8(0x4f8,0x552)]),_0x222cbc=_0x1838ba[_0x3352c4(0x2e4,0x2ac)](_0x18e891=>_0x18e891[_0x5e0ad8(0x47d,0x47e)]===_0x5e0ad8(0x4b7,0x47e));let _0xbe1b04=_0x57e4da[_0x5e0ad8(0x483,0x41e)](_0x5db3d8['maxSkills'],_0x222cbc[_0x5e0ad8(0x4e0,0x49d)]);for(const _0x14b207 of _0x508b63){if(_0xbe1b04<=0x0)break;const _0x4072d8=this[_0x5e0ad8(0x53a,0x596)+'uster'](_0x14b207,_0x5db3d8[_0x3352c4(0x2e6,0x287)+_0x3352c4(0x2bb,0x2a1)],_0x5db3d8[_0x3352c4(0x27a,0x27f)+'nce']);if(!_0x4072d8){_0x51e10b+=_0x14b207[_0x5e0ad8(0x4e0,0x494)];continue;}const _0x5c6ccf=this[_0x3352c4(0x308,0x2b9)+_0x3352c4(0x2e5,0x27f)](_0x4072d8,_0x222cbc);if(_0x5c6ccf){_0x51e10b+=_0x14b207[_0x3352c4(0x2b9,0x2c7)];continue;}_0x3f5bc0['push'](_0x4072d8);if(_0x5db3d8['llmValidat'+_0x3352c4(0x2ee,0x333)]&&this[_0x5e0ad8(0x4b4,0x476)][_0x5e0ad8(0x4de,0x500)]?.[_0x5e0ad8(0x473,0x45f)])try{const _0x5e5b37=await this['validateWi'+'thLLM'](_0x4072d8);if(!_0x5e5b37){_0x51e10b+=_0x14b207[_0x3352c4(0x2b9,0x2ed)];continue;}}catch(_0x3b0e30){_0x57e4da[_0x3352c4(0x28e,0x2a8)]('TOEbj',_0x5e0ad8(0x51d,0x530))?_0x219c1f[_0x3352c4(0x252,0x226)]('LLM\x20valida'+'tion\x20faile'+_0x3352c4(0x259,0x2c2)+(_0x57e4da[_0x3352c4(0x297,0x23f)](_0x3b0e30,Error)?_0x3b0e30['message']:String(_0x3b0e30))):_0x2deeaf['push'](_0x5e0ad8(0x4ed,0x4cc)+_0x3352c4(0x294,0x2aa)+_0x3352c4(0x259,0x217)+(_0x48ea9c instanceof _0x438bcf?_0x39c120[_0x5e0ad8(0x487,0x45c)]:_0x57e4da[_0x5e0ad8(0x539,0x52f)](_0x547db5,_0x86c0ae)));}try{await this[_0x5e0ad8(0x4f7,0x4a4)+_0x5e0ad8(0x486,0x42c)](_0x4072d8,_0x447bf7),_0x5f49bf++,_0xbe1b04--;}catch(_0x2ab771){_0x219c1f[_0x5e0ad8(0x479,0x446)]('Skill\x20crea'+_0x3352c4(0x294,0x27d)+'d:\x20'+(_0x57e4da['GxTUl'](_0x2ab771,Error)?_0x2ab771[_0x5e0ad8(0x487,0x434)]:String(_0x2ab771)));}}}catch(_0x38420b){_0x219c1f['push'](_0x3352c4(0x2dc,0x280)+_0x5e0ad8(0x4e5,0x4db)+(_0x57e4da[_0x3352c4(0x2d6,0x2b8)](_0x38420b,Error)?_0x38420b[_0x3352c4(0x260,0x1fe)]:_0x57e4da[_0x5e0ad8(0x4e3,0x48c)](String,_0x38420b)));}return{'candidates':_0x3f5bc0,'created':_0x5f49bf,'skipped':_0x51e10b,'errors':_0x219c1f};}[_0x3f40ea(0x39,0x1e)+'ories'](_0x5e07f2,_0x3a046d){function _0x32215c(_0x437088,_0x3ec91f){return _0x3f40ea(_0x437088-0x47d,_0x3ec91f);}const _0x5c001e={'SdnOc':function(_0x171d58,_0x6deb10){return _0x171d58>=_0x6deb10;}};function _0x3b1f21(_0x233eea,_0x36608e){return _0x3f40ea(_0x36608e-0x3f8,_0x233eea);}const _0x234e39=new Set(),_0x1f3aef=[];for(const _0x2b829b of _0x5e07f2){if(_0x234e39['has'](_0x2b829b['id']))continue;if(!_0x2b829b['embedding'])continue;const _0x38d0cf=[_0x2b829b];_0x234e39[_0x32215c(0x4fd,0x499)](_0x2b829b['id']);for(const _0x157691 of _0x5e07f2){if(_0x234e39[_0x3b1f21(0x3dd,0x401)](_0x157691['id']))continue;if(!_0x157691[_0x3b1f21(0x3c4,0x42d)])continue;const _0x2b7fc2=cosineSimilarity(_0x2b829b[_0x32215c(0x4b2,0x499)],_0x157691[_0x32215c(0x4b2,0x4fa)]);_0x5c001e['SdnOc'](_0x2b7fc2,_0x3a046d)&&(_0x38d0cf[_0x32215c(0x455,0x401)](_0x157691),_0x234e39[_0x32215c(0x4fd,0x539)](_0x157691['id']));}_0x1f3aef[_0x3b1f21(0x3eb,0x3d0)](_0x38d0cf);}return _0x1f3aef;}['evaluateCl'+_0x3f40ea(0x90,0xb4)](_0x20205b,_0x966f57,_0x317560){const _0x30cc40={'oHKcg':function(_0x515ea5,_0xd0be15){return _0x515ea5-_0xd0be15;},'SkYiE':function(_0x2fe250,_0x5bf2af){return _0x2fe250>_0x5bf2af;},'MzYbS':function(_0x5a2400,_0x31e12e){return _0x5a2400<_0x31e12e;},'qtApR':function(_0x3f28b3,_0x3065b5){return _0x3f28b3+_0x3065b5;},'AoNJj':function(_0x28987f,_0x111b83){return _0x28987f<_0x111b83;},'jBjAY':function(_0x5ca29b,_0x204e71){return _0x5ca29b+_0x204e71;},'ldRyd':function(_0x26870e,_0x320dbe){return _0x26870e/_0x320dbe;},'HNoHG':function(_0x49e159,_0x6f51bf,_0x36848f){return _0x49e159(_0x6f51bf,_0x36848f);},'KwfBI':_0x43b902(0x31f,0x33d),'vbBDH':'LEJUJ','BseIf':_0xb25a4(0x5a4,0x5dd)+'ed'},_0xe35bf9=0.5;if(_0x20205b['length']<_0x966f57)return null;const _0x1d7344=this[_0x43b902(0x381,0x31f)+_0xb25a4(0x4f1,0x54a)+_0x43b902(0x359,0x354)](_0x20205b);if(_0x30cc40[_0xb25a4(0x61a,0x5e4)](_0x1d7344,0.75))return null;let _0x160120=_0x1d7344;const _0x7a25be=new Set(_0x20205b['map'](_0x88f752=>_0x88f752[_0xb25a4(0x5b7,0x582)])[_0xb25a4(0x5ae,0x5c2)](Boolean));_0x7a25be[_0xb25a4(0x4df,0x549)]>=0x2&&(_0x160120*=1.2);const _0x55cf8d=new Map();for(const _0x5956f1 of _0x20205b){_0x55cf8d[_0xb25a4(0x541,0x587)](_0x5956f1[_0x43b902(0x2fe,0x324)],_0x30cc40[_0x43b902(0x32c,0x2e5)](_0x55cf8d[_0x43b902(0x388,0x388)](_0x5956f1[_0x43b902(0x2fe,0x35c)])??0x0,0x1));}let _0x248b6b=_0x20205b[0x0][_0x43b902(0x2fe,0x2f2)],_0x3bcb3a=0x0;for(const [_0x110358,_0x4e31f3]of _0x55cf8d){_0x4e31f3>_0x3bcb3a&&(_0x3bcb3a=_0x4e31f3,_0x248b6b=_0x110358);}_0x3bcb3a/_0x20205b[_0x43b902(0x361,0x331)]>=0.5&&(_0x160120*=1.1);_0x160120=Math[_0xb25a4(0x61e,0x5bd)](_0x160120,0x1);if(_0x160120<_0xe35bf9)return null;function _0xb25a4(_0x16ca6e,_0x27768c){return _0x3f40ea(_0x27768c-0x558,_0x16ca6e);}let _0x4a286f;const _0x3b751f=_0x20205b['filter'](_0x4439bb=>_0x4439bb[_0xb25a4(0x596,0x58d)]&&_0x4439bb[_0x43b902(0x357,0x2fa)]['length']>0x0);if(_0x3b751f['length']>=0x2){const _0x4c5a10=_0x3b751f[0x0][_0xb25a4(0x570,0x58d)]['length'],_0x3ca8ca=new Array(_0x4c5a10)[_0xb25a4(0x529,0x54b)](0x0);for(const _0x1d08ba of _0x3b751f){for(let _0x19c46c=0x0;_0x30cc40[_0xb25a4(0x5f9,0x5c1)](_0x19c46c,_0x4c5a10);_0x19c46c++){_0x3ca8ca[_0x19c46c]+=_0x30cc40['ldRyd'](_0x1d08ba['embedding'][_0x19c46c],_0x3b751f[_0xb25a4(0x544,0x597)]);}}let _0x24cce5=0x0,_0x4d6426=-0x1;for(let _0x2087a5=0x0;_0x30cc40['MzYbS'](_0x2087a5,_0x3b751f[_0xb25a4(0x56c,0x597)]);_0x2087a5++){const _0xcc2bd=_0x30cc40[_0xb25a4(0x5f9,0x5a7)](cosineSimilarity,_0x3ca8ca,_0x3b751f[_0x2087a5][_0x43b902(0x357,0x31e)]);_0x30cc40['SkYiE'](_0xcc2bd,_0x4d6426)&&(_0x4d6426=_0xcc2bd,_0x24cce5=_0x2087a5);}_0x4a286f=_0x3b751f[_0x24cce5][_0xb25a4(0x5d6,0x5f6)][_0xb25a4(0x4f3,0x52f)](0x0,0x1f4);}else{if(_0x30cc40[_0x43b902(0x356,0x331)]===_0xb25a4(0x5af,0x5da)){const _0x5686ac=[..._0x398464]['sort']((_0x83f8f5,_0x28c9b4)=>new _0x5d1896(_0x28c9b4[_0xb25a4(0x4da,0x529)])[_0xb25a4(0x57b,0x59f)]()-new _0x31c92b(_0x83f8f5[_0xb25a4(0x546,0x529)])[_0xb25a4(0x544,0x59f)]()),_0xcd82c3=_0x4aaa6b[_0xb25a4(0x5c1,0x5d5)](_0x4099eb*0.7),_0x5d4302=osgtmX[_0x43b902(0x3b8,0x389)](_0x2a2886,_0xcd82c3),_0x4aa721=_0x5686ac['slice'](0x0,_0xcd82c3),_0x217935=new _0x271653(_0x4aa721['map'](_0x33824f=>_0x33824f['id'])),_0x1baae7=_0x5686ac[_0x43b902(0x2f9,0x2e4)](_0xcd82c3)[_0x43b902(0x38c,0x343)](_0x1b6903=>!_0x217935[_0x43b902(0x32b,0x2c3)](_0x1b6903['id'])),_0x40a5d3=[];for(let _0x26caf4=osgtmX[_0xb25a4(0x625,0x5ee)](_0x1baae7['length'],0x1);osgtmX[_0x43b902(0x310,0x342)](_0x26caf4,0x0)&&osgtmX[_0xb25a4(0x593,0x5c1)](_0x40a5d3[_0x43b902(0x361,0x3c8)],_0x5d4302);_0x26caf4--){const _0x19a7fa=_0x3108db[_0x43b902(0x39f,0x342)](_0xaa7b66[_0x43b902(0x35a,0x2f8)]()*osgtmX[_0x43b902(0x3a3,0x3a5)](_0x26caf4,0x1));[_0x1baae7[_0x26caf4],_0x1baae7[_0x19a7fa]]=[_0x1baae7[_0x19a7fa],_0x1baae7[_0x26caf4]],_0x40a5d3[_0x43b902(0x2fa,0x2cf)](_0x1baae7[_0x26caf4]);}_0xc139d3=[..._0x4aa721,..._0x40a5d3];}else{const _0x10d85e=[..._0x20205b][_0x43b902(0x33b,0x367)]((_0xd6e8fd,_0x5e5e64)=>_0x5e5e64['content'][_0xb25a4(0x5f3,0x597)]-_0xd6e8fd['content'][_0x43b902(0x361,0x30c)]);_0x4a286f=_0x10d85e[0x0][_0x43b902(0x3c0,0x416)]['slice'](0x0,0x1f4);}}function _0x43b902(_0x27dbe7,_0xf239ab){return _0x3f40ea(_0x27dbe7-0x322,_0xf239ab);}const _0x5d4a9d=new Map();for(const _0x438f84 of _0x20205b){if(_0x43b902(0x3a1,0x372)===_0x30cc40[_0x43b902(0x340,0x386)])for(const _0x17a738 of _0x438f84[_0xb25a4(0x5a3,0x579)]){_0x5d4a9d[_0xb25a4(0x57c,0x587)](_0x17a738,(_0x5d4a9d[_0x43b902(0x388,0x3d8)](_0x17a738)??0x0)+0x1);}else{const _0x41e4e7=this['averageEmb'+_0xb25a4(0x5c8,0x578)](_0x3839d1);this['db'][_0x43b902(0x2fc,0x337)+'ing'](_0x1aea0d['id'],_0x41e4e7);}}const _0x5a7a12=Array['from'](_0x5d4a9d[_0x43b902(0x34d,0x383)]())[_0x43b902(0x38c,0x34d)](([,_0x260c0c])=>_0x260c0c>=0x2)[_0x43b902(0x32d,0x350)](([_0x3edfcf])=>_0x3edfcf);return{'clusterId':randomUUID(),'sourceMemories':_0x20205b,'category':_0x248b6b,'confidence':_0x160120,'pattern':_0x4a286f,'tags':[..._0x5a7a12,_0xb25a4(0x5b2,0x56e),_0x30cc40['BseIf']]};}async['validateWi'+_0x5d620b(0x408,0x411)](_0xe62e7b){function _0x1d0ecd(_0x54080e,_0xdbd157){return _0x5d620b(_0xdbd157,_0x54080e- -0x366);}function _0x47a77c(_0x438c77,_0x5ac0d4){return _0x5d620b(_0x438c77,_0x5ac0d4- -0x84);}const _0x4d7e94={'eJSEO':_0x1d0ecd(0x1d,0x72)+_0x1d0ecd(0x30,-0x2e),'cqNkz':function(_0x165400,_0x31a4f5){return _0x165400(_0x31a4f5);},'LWhtp':'Determine\x20'+_0x47a77c(0x319,0x327)+_0x1d0ecd(0xad,0x58)+_0x1d0ecd(0x39,0x97)+_0x1d0ecd(0xb1,0x10f)+_0x1d0ecd(0x8a,0x6d)+_0x1d0ecd(0x5d,0xa5)+'.','pSyNy':function(_0xc49111,_0x30f6e0){return _0xc49111(_0x30f6e0);},'lDaeM':_0x1d0ecd(0x2b,0x6a)};try{const {createLLMClient:_0x31ef65}=await import(_0x4d7e94[_0x1d0ecd(0xef,0x89)]),_0x3fad21=_0x4d7e94[_0x1d0ecd(0x62,0x8c)](_0x31ef65,this['config'][_0x47a77c(0x3ad,0x36f)]),_0x28b11c=[_0x4d7e94[_0x1d0ecd(0xa0,0xca)],_0x47a77c(0x343,0x368)+'th\x20JSON:\x20{'+'\x22valid\x22:\x20t'+_0x47a77c(0x378,0x315)+'\x20\x22confiden'+_0x1d0ecd(0x4e,0x1f)+_0x47a77c(0x3d2,0x3ce),'',_0x47a77c(0x404,0x3c3)+_0xe62e7b[_0x47a77c(0x377,0x30e)],_0x47a77c(0x3bf,0x3cc)+_0xe62e7b[_0x47a77c(0x359,0x32a)],_0x47a77c(0x2e7,0x322)+_0x47a77c(0x301,0x31e)+_0xe62e7b[_0x1d0ecd(0x9e,0xf1)+_0x47a77c(0x307,0x337)][_0x47a77c(0x394,0x371)],'',_0x1d0ecd(0x95,0x46)+_0x47a77c(0x35b,0x2fe),..._0xe62e7b[_0x47a77c(0x384,0x380)+_0x1d0ecd(0x55,0x97)][_0x47a77c(0x336,0x309)](0x0,0x3)['map']((_0x2f5474,_0x596288)=>_0x596288+0x1+'.\x20'+_0x2f5474[_0x47a77c(0x36f,0x3d0)][_0x1d0ecd(0x27,0x59)](0x0,0xc8))][_0x47a77c(0x358,0x3bd)]('\x0a'),_0x1da281=await _0x3fad21['complete'](_0x28b11c),_0x2594e2=JSON[_0x47a77c(0x382,0x326)](_0x1da281);return _0x2594e2['valid']===!![]&&(_0x2594e2[_0x47a77c(0x412,0x3ba)]??0x0)>=(this[_0x47a77c(0x335,0x345)]['skillConve'+_0x1d0ecd(0x37,0x74)]?.[_0x1d0ecd(0x50,0x7a)+_0x47a77c(0x355,0x33e)]??0.7);}catch(_0x46fa7c){const _0x40a471=_0x46fa7c instanceof Error?_0x46fa7c['message']:_0x4d7e94[_0x1d0ecd(0x34,0x52)](String,_0x46fa7c);if(_0x40a471[_0x47a77c(0x3b7,0x36e)](_0x4d7e94['lDaeM'])||_0x40a471[_0x47a77c(0x3bb,0x36e)](_0x1d0ecd(0x51,0x9c)+'ED')||_0x40a471['includes'](_0x1d0ecd(0xca,0xd7)+'ed'))return![];return![];}}async[_0x5d620b(0x444,0x40c)+_0x5d620b(0x337,0x39b)](_0x568cd0,_0x1b30f0){function _0x483e58(_0x2dfd58,_0x157a12){return _0x5d620b(_0x157a12,_0x2dfd58- -0x597);}const _0x4d2df5={'GAZPD':function(_0x275ac3,_0x422a43){return _0x275ac3<_0x422a43;},'bBeTm':function(_0x1cfb8e,_0x40f09c){return _0x1cfb8e*_0x40f09c;},'yVwuD':function(_0x3d37c3,_0x43dba8){return _0x3d37c3&&_0x43dba8;},'wGEgw':_0x23c34d(0x2d0,0x2eb),'bXZth':function(_0x20d309,_0x76e01e){return _0x20d309===_0x76e01e;},'eQbcC':_0x23c34d(0x22c,0x20e),'YQXec':function(_0x388458,_0x240060){return _0x388458>_0x240060;}},_0xd5c6a7=new Date()[_0x23c34d(0x270,0x28b)+'g'](),_0x2a5104=new Date(Date['now']()+_0x4d2df5[_0x23c34d(0x2b7,0x31e)](this[_0x23c34d(0x243,0x210)][_0x23c34d(0x297,0x233)+_0x23c34d(0x217,0x1ba)]?.[_0x23c34d(0x2c3,0x32e)+_0x23c34d(0x285,0x2a8)]??0x5a,0x18)*0x3c*0x3c*0x3e8)[_0x23c34d(0x270,0x23f)+'g'](),_0x43ce32=this['buildSkill'+_0x483e58(-0x154,-0x176)](_0x568cd0);let _0x3cd3b9=null;if(_0x1b30f0)try{_0x3cd3b9=await _0x1b30f0[_0x483e58(-0x19e,-0x1bd)+_0x23c34d(0x233,0x1eb)]({'content':_0x568cd0[_0x483e58(-0x1e9,-0x233)],'tags':_0x568cd0[_0x23c34d(0x251,0x209)][_0x483e58(-0x177,-0x152)](_0x1403d9=>!_0x1403d9[_0x23c34d(0x2b6,0x280)](_0x483e58(-0x189,-0x1d6))&&_0x1403d9!=='skill'&&_0x1403d9!==_0x483e58(-0x15c,-0x1b6)+'ed'),'category':_0x568cd0[_0x483e58(-0x205,-0x1f7)]});}catch{}const _0x5006f5={'sourceMemoryIds':_0x568cd0[_0x23c34d(0x27e,0x233)+_0x483e58(-0x1dc,-0x1c2)][_0x483e58(-0x1d6,-0x1a6)](_0x1db10c=>_0x1db10c['id']),'crystallizedAt':_0xd5c6a7,'confidence':_0x568cd0[_0x23c34d(0x2b8,0x2a5)],'reviewDueAt':_0x2a5104,'activationCount':0x0,..._0x4d2df5[_0x483e58(-0x19b,-0x1aa)](_0x3cd3b9,{'taxonomyDomain':_0x3cd3b9[_0x483e58(-0x1eb,-0x242)],'taxonomySkillId':_0x3cd3b9['skill_id']??undefined,'taxonomyNature':_0x3cd3b9['nature']??undefined,'taxonomyStability':_0x3cd3b9[_0x483e58(-0x18e,-0x191)]??undefined,'taxonomyConfidence':_0x3cd3b9[_0x23c34d(0x2b8,0x2e1)]})},_0x5d479b=_0x23c34d(0x288,0x27d)+Buffer[_0x483e58(-0x1d0,-0x1d7)](JSON['stringify'](_0x5006f5))[_0x483e58(-0x1d1,-0x1d5)](_0x4d2df5[_0x483e58(-0x1e2,-0x1ca)]),_0x390307=[];function _0x23c34d(_0x103dd6,_0x5b72ec){return _0x5d620b(_0x5b72ec,_0x103dd6- -0x186);}if(_0x3cd3b9){_0x390307['push'](_0x23c34d(0x259,0x215)+_0x3cd3b9[_0x23c34d(0x226,0x1c7)]);_0x3cd3b9[_0x483e58(-0x1c5,-0x1a3)]&&_0x390307[_0x23c34d(0x208,0x247)](_0x483e58(-0x1b8,-0x1e8)+_0x3cd3b9[_0x23c34d(0x24c,0x2ac)]);if(_0x3cd3b9[_0x23c34d(0x279,0x235)]){if(_0x4d2df5[_0x483e58(-0x1c9,-0x223)](_0x483e58(-0x1e8,-0x20f),_0x483e58(-0x1e8,-0x1da)))_0x390307['push'](_0x23c34d(0x23f,0x23f)+_0x3cd3b9[_0x483e58(-0x198,-0x18a)]);else for(let _0x51d842=0x0;LJpdFC[_0x23c34d(0x2cd,0x2fe)](_0x51d842,_0x58ec3e);_0x51d842++){_0x54c3e5[_0x51d842]+=_0x40c4c2[_0x23c34d(0x265,0x225)][_0x51d842]/_0x358e2d[_0x483e58(-0x1a2,-0x1d5)];}}}const _0x278b30=this['db'][_0x483e58(-0x163,-0x122)+'ry']({'content':_0x43ce32,'category':'skill','tier':_0x4d2df5[_0x483e58(-0x194,-0x162)],'tags':[..._0x568cd0[_0x23c34d(0x251,0x245)],..._0x390307,_0x5d479b],'projectPath':_0x568cd0[_0x23c34d(0x27e,0x22d)+_0x483e58(-0x1dc,-0x1c8)][0x0]?.[_0x23c34d(0x209,0x21e)+'h']}),_0x49c800=_0x568cd0[_0x23c34d(0x27e,0x2b0)+_0x23c34d(0x235,0x20e)][_0x483e58(-0x1d6,-0x1c8)](_0x292975=>_0x292975[_0x23c34d(0x265,0x29d)])[_0x23c34d(0x29a,0x236)](_0x27eeb9=>!!_0x27eeb9&&_0x27eeb9[_0x483e58(-0x1a2,-0x1df)]>0x0);if(_0x4d2df5[_0x23c34d(0x27b,0x295)](_0x49c800[_0x483e58(-0x1a2,-0x1c7)],0x0)){const _0x50c78=this[_0x23c34d(0x203,0x213)+_0x483e58(-0x1c1,-0x1c6)](_0x49c800);this['db'][_0x483e58(-0x207,-0x1b1)+_0x483e58(-0x20d,-0x26d)](_0x278b30['id'],_0x50c78);}return _0x278b30;}[_0x5d620b(0x35f,0x3ad)+'ls'](){function _0x2e6f47(_0x377d0a,_0x4a17c6){return _0x3f40ea(_0x4a17c6-0x1db,_0x377d0a);}const _0x1209d5={'IjYsf':'Key\x20patter'+_0x3a22a6(0x23d,0x219),'QGnGn':_0x3a22a6(0x1ef,0x1d1),'sYvTQ':'AdFCD','bJmkR':_0x2e6f47(0x2a4,0x24d),'mSrvG':function(_0x42ef80,_0x384446){return _0x42ef80*_0x384446;},'YYLej':function(_0x3fae48,_0xb540a7){return _0x3fae48*_0xb540a7;},'SeAph':function(_0xeb1f0d,_0x32fe29){return _0xeb1f0d*_0x32fe29;}},_0x2b47c7=new Date();let _0x3dcc0f=0x0,_0x1c8185=0x0,_0x4e8315=0x0;function _0x3a22a6(_0x548cb2,_0x43e3a9){return _0x3f40ea(_0x548cb2-0x202,_0x43e3a9);}const _0x2f54ff=this['db'][_0x3a22a6(0x27a,0x281)+'es']({'category':_0x3a22a6(0x218,0x1fb),'limit':0x3e8});for(const _0x199e7d of _0x2f54ff){if(_0x1209d5[_0x3a22a6(0x28b,0x23d)]===_0x1209d5['sYvTQ']){_0x2eb635[_0x2e6f47(0x173,0x1b3)](''),_0x788af3[_0x2e6f47(0x193,0x1b3)](_0x1209d5[_0x3a22a6(0x208,0x1ab)]);for(const _0x53fe33 of _0x17146f[_0x3a22a6(0x250,0x296)+_0x2e6f47(0x199,0x1e0)][_0x3a22a6(0x1d9,0x17f)](0x0,0x3)){const _0x2d1853=_0x53fe33[_0x3a22a6(0x2a0,0x267)][_0x3a22a6(0x277,0x2a7)]('\x0a')[0x0][_0x2e6f47(0x200,0x1b2)](0x0,0x96);_0x5e5a14[_0x2e6f47(0x1e6,0x1b3)]('-\x20'+_0x2d1853);}}else{_0x3dcc0f++;const _0x568668=this['extractMet'+_0x3a22a6(0x1e3,0x236)](_0x199e7d);if(!_0x568668)continue;const _0x3c4e5b=new Date(_0x568668[_0x3a22a6(0x27b,0x24a)+'t']);if(_0x2b47c7<_0x3c4e5b)continue;if(_0x199e7d[_0x3a22a6(0x260,0x22e)+'t']<0x2)this['db'][_0x2e6f47(0x2ac,0x265)+'ry'](_0x199e7d['id'],{'category':_0x1209d5[_0x3a22a6(0x266,0x2ad)],'tags':_0x199e7d[_0x3a22a6(0x223,0x238)]['filter'](_0x26e30a=>!_0x26e30a[_0x2e6f47(0x28b,0x261)](_0x2e6f47(0x218,0x233))&&_0x26e30a!==_0x2e6f47(0x1b9,0x1f1)&&_0x26e30a!==_0x2e6f47(0x25c,0x260)+'ed')}),_0x1c8185++;else{const _0x82ab96=new Date(Date[_0x3a22a6(0x1ea,0x253)]()+_0x1209d5[_0x3a22a6(0x26a,0x2a3)](_0x1209d5[_0x3a22a6(0x253,0x234)](_0x1209d5[_0x3a22a6(0x225,0x250)](this[_0x3a22a6(0x215,0x1fb)]['skillConve'+_0x2e6f47(0x1ec,0x1c2)]?.['reviewCycl'+_0x2e6f47(0x217,0x230)]??0x5a,0x18),0x3c),0x3c)*0x3e8)[_0x3a22a6(0x242,0x224)+'g'](),_0x37151c={..._0x568668,'reviewDueAt':_0x82ab96,'activationCount':_0x199e7d[_0x2e6f47(0x249,0x239)+'t'],'lastActivatedAt':_0x199e7d[_0x3a22a6(0x29d,0x23c)+_0x2e6f47(0x1b5,0x1a6)]},_0x2e1e51=_0x3a22a6(0x25a,0x2c2)+Buffer[_0x3a22a6(0x213,0x233)](JSON[_0x3a22a6(0x234,0x29e)](_0x37151c))[_0x2e6f47(0x19b,0x1eb)](_0x2e6f47(0x29f,0x27b)),_0x4bbd6b=_0x199e7d[_0x3a22a6(0x223,0x222)][_0x2e6f47(0x297,0x245)](_0x3852d6=>!_0x3852d6['startsWith'](_0x3a22a6(0x25a,0x25f)));_0x4bbd6b[_0x2e6f47(0x210,0x1b3)](_0x2e1e51),this['db']['updateMemo'+'ry'](_0x199e7d['id'],{'tags':_0x4bbd6b}),_0x4e8315++;}}}return{'reviewed':_0x3dcc0f,'demoted':_0x1c8185,'renewed':_0x4e8315};}[_0x3f40ea(0x5f,0x51)+_0x5d620b(0x36f,0x3a8)+_0x5d620b(0x386,0x3ed)](_0x524db2){const _0x28d013={'WwAeD':function(_0x3dbb11,_0x5c8f7d){return _0x3dbb11!==_0x5c8f7d;},'EXhGH':function(_0x16683a,_0x2728e0){return _0x16683a+_0x2728e0;},'DZsHz':function(_0x40bb7a,_0x3560da){return _0x40bb7a<_0x3560da;},'IXVXU':function(_0x127cce,_0x5086ff){return _0x127cce!==_0x5086ff;},'FVFrl':function(_0x1223d4,_0x572073,_0x109bdf){return _0x1223d4(_0x572073,_0x109bdf);}};if(_0x524db2[_0x119c86(0x5b6,0x599)]<0x2)return 0x1;let _0x375360=0x0,_0x56fef0=0x0;function _0x1c63bb(_0x48e050,_0x5cc0bf){return _0x3f40ea(_0x48e050-0x495,_0x5cc0bf);}for(let _0x310bf1=0x0;_0x310bf1<_0x524db2['length'];_0x310bf1++){if(_0x28d013[_0x1c63bb(0x519,0x54d)](_0x1c63bb(0x504,0x4d4),_0x1c63bb(0x504,0x55c)))_0x29bfad*=1.1;else for(let _0x5a3204=_0x28d013[_0x119c86(0x570,0x575)](_0x310bf1,0x1);_0x28d013['DZsHz'](_0x5a3204,_0x524db2[_0x119c86(0x541,0x599)]);_0x5a3204++){if(_0x524db2[_0x310bf1][_0x119c86(0x57d,0x58f)]&&_0x524db2[_0x5a3204][_0x119c86(0x553,0x58f)]){if(_0x28d013['IXVXU']('RhoDC','qnxSE'))_0x375360+=_0x28d013[_0x119c86(0x58c,0x5ac)](cosineSimilarity,_0x524db2[_0x310bf1][_0x1c63bb(0x4ca,0x49f)],_0x524db2[_0x5a3204][_0x1c63bb(0x4ca,0x520)]),_0x56fef0++;else{const _0xffc3fc=[..._0xaf2f32][_0x1c63bb(0x4ae,0x477)]((_0x1831cd,_0x258c06)=>_0x258c06[_0x1c63bb(0x533,0x552)][_0x1c63bb(0x4d4,0x4e9)]-_0x1831cd['content'][_0x1c63bb(0x4d4,0x480)]);_0x395cf0=_0xffc3fc[0x0][_0x119c86(0x5db,0x5f8)][_0x119c86(0x55d,0x531)](0x0,0x1f4);}}}}function _0x119c86(_0x489469,_0x3b8150){return _0x3f40ea(_0x3b8150-0x55a,_0x489469);}return _0x56fef0>0x0?_0x375360/_0x56fef0:0x0;}['isDuplicat'+_0x5d620b(0x3cd,0x421)](_0x174890,_0xf63921){function _0x1148ea(_0x193f2f,_0x49acff){return _0x3f40ea(_0x49acff- -0x13,_0x193f2f);}const _0x230dc3={'CTIBP':function(_0x256567,_0x57f1fa){return _0x256567>=_0x57f1fa;}},_0x4b777c=new Set(_0x174890['sourceMemo'+_0x1148ea(0x5c,-0xe)][_0x1148ea(-0x2,-0x8)](_0x37b3ae=>_0x37b3ae['id']));function _0x3484ab(_0x451dfa,_0x35fa1b){return _0x3f40ea(_0x35fa1b-0x323,_0x451dfa);}for(const _0x4ba914 of _0xf63921){const _0x71eeb=this[_0x3484ab(0x358,0x37c)+'adata'](_0x4ba914);if(!_0x71eeb)continue;const _0x11f91d=new Set(_0x71eeb[_0x1148ea(-0x9,0x3b)+_0x3484ab(0x3ad,0x393)]),_0x423fe8=[..._0x4b777c][_0x1148ea(-0x10,0x57)](_0x555b29=>_0x11f91d[_0x1148ea(-0x4d,-0xa)](_0x555b29))['length'],_0x2d8633=_0x423fe8/Math['max'](_0x4b777c['size'],_0x11f91d[_0x3484ab(0x337,0x314)]);if(_0x230dc3[_0x1148ea(0x6d,0x68)](_0x2d8633,0.7))return!![];}return![];}[_0x5d620b(0x384,0x394)+_0x5d620b(0x40a,0x443)](_0x5e6b2c){const _0xa026ca={'WcWMT':function(_0x1b7e92,_0x17be92){return _0x1b7e92>_0x17be92;},'dmjUg':function(_0x511b58,_0x222f3d){return _0x511b58*_0x222f3d;},'zBAqz':_0x3698fd(-0xda,-0x114)+_0x3698fd(-0xd2,-0xfb)},_0x235b6b=[];_0x235b6b[_0x3698fd(-0x12b,-0x15e)]('[Skill]\x20'+_0x5e6b2c['pattern']);function _0x3698fd(_0x2e32de,_0x2a13bb){return _0x3f40ea(_0x2a13bb- -0x136,_0x2e32de);}_0x235b6b[_0x2b8a38(0x1e4,0x1af)](''),_0x235b6b['push'](_0x3698fd(-0x6e,-0xa5)+_0x5e6b2c['category']),_0x235b6b[_0x3698fd(-0xf5,-0x15e)](_0x3698fd(-0x74,-0xc0)+_0x5e6b2c[_0x3698fd(-0xdb,-0xe8)+_0x3698fd(-0xd1,-0x131)][_0x3698fd(-0x14e,-0xf7)]+_0x2b8a38(0x254,0x20e));function _0x2b8a38(_0x5cffb7,_0xee1bf0){return _0x3f40ea(_0x5cffb7-0x20c,_0xee1bf0);}_0x235b6b['push']('Confidence'+':\x20'+_0xa026ca[_0x3698fd(-0xfe,-0x11f)](_0x5e6b2c[_0x3698fd(-0x58,-0xae)],0x64)[_0x3698fd(-0xc7,-0x10f)](0x0)+'%');if(_0xa026ca[_0x2b8a38(0x23f,0x251)](_0x5e6b2c[_0x3698fd(-0xef,-0xe8)+'ries']['length'],0x1)){if('woPmD'!=='ugQmA'){_0x235b6b[_0x2b8a38(0x1e4,0x1f8)](''),_0x235b6b[_0x3698fd(-0x195,-0x15e)](_0xa026ca['zBAqz']);for(const _0x534b7e of _0x5e6b2c['sourceMemo'+_0x2b8a38(0x211,0x22d)][_0x2b8a38(0x1e3,0x205)](0x0,0x3)){const _0x3e69e3=_0x534b7e[_0x2b8a38(0x2aa,0x2e7)][_0x2b8a38(0x281,0x2c3)]('\x0a')[0x0][_0x3698fd(-0x104,-0x15f)](0x0,0x96);_0x235b6b['push']('-\x20'+_0x3e69e3);}}else{const _0x2e1d6e=_0x2d09fc(_0x4a6bb8,_0x4b3d80[_0x4649a9][_0x3698fd(-0xc2,-0x101)]);klSscU[_0x3698fd(-0x161,-0x103)](_0x2e1d6e,_0x102cf0)&&(_0x3c41d1=_0x2e1d6e,_0x481a4a=_0x31e514);}}return _0x235b6b[_0x3698fd(-0x92,-0xab)]('\x0a');}['extractMet'+'adata'](_0x2b0f92){function _0x102dcd(_0x8acf0d,_0x36f3d5){return _0x3f40ea(_0x36f3d5-0x4dc,_0x8acf0d);}const _0x725a9c={'sXqku':function(_0x5e2c28,_0x4d8967){return _0x5e2c28===_0x4d8967;},'zneGX':_0x102dcd(0x4d2,0x4cb),'VzkYd':_0x120762(0x324,0x30d)};function _0x120762(_0x1e880d,_0x2bbd9e){return _0x3f40ea(_0x1e880d-0x284,_0x2bbd9e);}const _0x59f70c=_0x2b0f92[_0x120762(0x2a5,0x245)][_0x102dcd(0x4c3,0x4b2)](_0x3d15f4=>_0x3d15f4[_0x102dcd(0x529,0x562)](_0x102dcd(0x4e8,0x534)));if(!_0x59f70c)return null;try{if(_0x725a9c[_0x102dcd(0x527,0x4f1)](_0x725a9c[_0x120762(0x2b0,0x302)],'PBlFK'))_0x21d036[_0x102dcd(0x508,0x4b4)](_0x277659),_0x29c995[_0x102dcd(0x570,0x55c)](_0x28faa0['id']);else{const _0x5c8771=Buffer[_0x102dcd(0x518,0x4ed)](_0x59f70c['slice'](0x5),_0x725a9c[_0x120762(0x2b1,0x248)])[_0x120762(0x294,0x243)](_0x120762(0x2a9,0x2ce));return JSON['parse'](_0x5c8771);}}catch{return null;}}[_0x3f40ea(-0x2d,-0x2a)+_0x5d620b(0x3da,0x3d6)](_0x5d57e3){function _0x4c3add(_0x532dc3,_0x322e88){return _0x3f40ea(_0x322e88-0x5e,_0x532dc3);}const _0x2c82b7={'LOdvK':function(_0x24aa18,_0x1eafee){return _0x24aa18===_0x1eafee;},'wuHzS':_0x4c3add(0xe0,0xf5)};if(_0x2c82b7['LOdvK'](_0x5d57e3[_0x378ea4(-0x62,-0x9c)],0x0))return[];function _0x378ea4(_0x33d73b,_0x353206){return _0x3f40ea(_0x353206- -0xdb,_0x33d73b);}const _0x3a8ed8=_0x5d57e3[0x0][_0x378ea4(-0xea,-0x9c)],_0x4b7aa6=new Array(_0x3a8ed8)['fill'](0x0);for(const _0x3eb168 of _0x5d57e3){if(_0x2c82b7[_0x4c3add(0x47,0x66)]===_0x4c3add(0xa4,0xf5))for(let _0x187b13=0x0;_0x187b13<_0x3a8ed8;_0x187b13++){_0x4b7aa6[_0x187b13]+=_0x3eb168[_0x187b13];}else _0x5c6b67=_0x421a32,_0x526e08=_0xc4b8cc;}for(let _0x1dd9ea=0x0;_0x1dd9ea<_0x3a8ed8;_0x1dd9ea++){_0x4b7aa6[_0x1dd9ea]/=_0x5d57e3['length'];}return _0x4b7aa6;}[_0x5d620b(0x454,0x44b)+_0x3f40ea(-0x1b,0x30)](_0x24db69){const _0x155ce6={'RhtWM':_0x2e94a7(0x54b,0x575),'TCacW':function(_0x5e1705,_0x27c242,_0x4f5c94){return _0x5e1705(_0x27c242,_0x4f5c94);},'qsLoE':function(_0x41044f,_0x44fd5f){return _0x41044f<_0x44fd5f;},'TrinC':_0x2e94a7(0x5d5,0x609),'BUouB':function(_0x159d11,_0x1f5fb0){return _0x159d11<_0x1f5fb0;},'wwHra':function(_0x2f1c4a,_0x25b7bc){return _0x2f1c4a+_0x25b7bc;}};if(!_0x24db69['embedding']||_0x24db69[_0x2e94a7(0x511,0x51f)]===_0x155ce6[_0x2e94a7(0x563,0x584)])return{'absorbed':![]};const _0x388cd6=this['db'][_0x2e94a7(0x5ad,0x565)+'es']({'limit':0xc8})[_0x2e94a7(0x59f,0x5ea)](_0x3a1048=>_0x3a1048[_0x2e94a7(0x511,0x543)]===_0x2e94a7(0x54b,0x575));function _0x385929(_0x18f4f2,_0x2a5d0a){return _0x3f40ea(_0x2a5d0a- -0x1c3,_0x18f4f2);}for(const _0x3daa7f of _0x388cd6){if(!_0x3daa7f['embedding'])continue;const _0x36f47c=_0x155ce6[_0x2e94a7(0x5c7,0x5cb)](cosineSimilarity,_0x24db69['embedding'],_0x3daa7f[_0x2e94a7(0x56a,0x5d3)]);if(_0x155ce6[_0x2e94a7(0x559,0x572)](_0x36f47c,0.8))continue;const _0x559550=this[_0x385929(-0x1b2,-0x16a)+_0x385929(-0x182,-0x1e2)](_0x3daa7f);if(!_0x559550)continue;if(_0x559550[_0x385929(-0x143,-0x175)+'ryIds']['includes'](_0x24db69['id']))return{'absorbed':![]};_0x559550[_0x385929(-0x1a9,-0x175)+_0x385929(-0x129,-0x153)]['push'](_0x24db69['id']),_0x559550[_0x2e94a7(0x58f,0x5ae)+_0x385929(-0x20d,-0x1d9)]=(_0x559550[_0x2e94a7(0x58f,0x5c0)+_0x385929(-0x235,-0x1d9)]||0x0)+0x1,_0x559550[_0x385929(-0x24a,-0x1f3)+_0x385929(-0x192,-0x156)]=new Date()[_0x385929(-0x12e,-0x183)+'g']();const _0x1a3a1a=_0x2e94a7(0x58d,0x5bb)+Buffer[_0x385929(-0x1a3,-0x1b2)](JSON[_0x2e94a7(0x567,0x57f)](_0x559550))[_0x385929(-0x19e,-0x1b3)](_0x155ce6[_0x385929(-0x139,-0x140)]),_0x16bd74=_0x3daa7f[_0x2e94a7(0x556,0x568)][_0x385929(-0x107,-0x159)](_0x337621=>!_0x337621[_0x385929(-0x10f,-0x13d)](_0x385929(-0x104,-0x16b))),_0x366e08='-\x20'+_0x24db69[_0x385929(-0x18f,-0x125)][_0x2e94a7(0x5aa,0x5ec)]('\x0a')[0x0]['slice'](0x0,0x96);let _0x5aeb29=_0x3daa7f[_0x385929(-0x104,-0x125)];const _0xfa58d=_0x5aeb29['split']('\x0a')[_0x385929(-0x104,-0x159)](_0x42e127=>_0x42e127[_0x2e94a7(0x5bb,0x5c1)]('-\x20'));return _0x155ce6[_0x2e94a7(0x554,0x593)](_0xfa58d['length'],0x5)&&(_0x5aeb29=_0x155ce6[_0x2e94a7(0x55b,0x4f7)](_0x5aeb29[_0x2e94a7(0x5a3,0x5f9)]()+'\x0a',_0x366e08)),this['db']['updateMemo'+'ry'](_0x3daa7f['id'],{'content':_0x5aeb29,'tags':[..._0x16bd74,_0x1a3a1a]}),{'absorbed':!![],'skillId':_0x3daa7f['id']};}function _0x2e94a7(_0x7a2bc0,_0x147b0){return _0x3f40ea(_0x7a2bc0-0x535,_0x147b0);}return{'absorbed':![]};}}
|
package/dist/skill/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4ebe(_0x274d30,_0x474450){_0x274d30=_0x274d30-0x182;var _0x3cddb7=_0x3cdd();var _0x4ebeb8=_0x3cddb7[_0x274d30];if(_0x4ebe['ZdQTZC']===undefined){var _0x6ab5a7=function(_0x28080a){var _0x5b341b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x60f2f2='',_0x5dc7cf='';for(var _0x382525=0x0,_0x5c388a,_0x4d0d80,_0x2b04dc=0x0;_0x4d0d80=_0x28080a['charAt'](_0x2b04dc++);~_0x4d0d80&&(_0x5c388a=_0x382525%0x4?_0x5c388a*0x40+_0x4d0d80:_0x4d0d80,_0x382525++%0x4)?_0x60f2f2+=String['fromCharCode'](0xff&_0x5c388a>>(-0x2*_0x382525&0x6)):0x0){_0x4d0d80=_0x5b341b['indexOf'](_0x4d0d80);}for(var _0x108f39=0x0,_0x608ec9=_0x60f2f2['length'];_0x108f39<_0x608ec9;_0x108f39++){_0x5dc7cf+='%'+('00'+_0x60f2f2['charCodeAt'](_0x108f39)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5dc7cf);};_0x4ebe['MLlMRn']=_0x6ab5a7,_0x4ebe['onVjot']={},_0x4ebe['ZdQTZC']=!![];}var _0xe76739=_0x3cddb7[0x0],_0x2bfa02=_0x274d30+_0xe76739,_0x190547=_0x4ebe['onVjot'][_0x2bfa02];return!_0x190547?(_0x4ebeb8=_0x4ebe['MLlMRn'](_0x4ebeb8),_0x4ebe['onVjot'][_0x2bfa02]=_0x4ebeb8):_0x4ebeb8=_0x190547,_0x4ebeb8;}(function(_0x3ddec3,_0x3f8a84){function _0x325bad(_0xbcafa2,_0x1fd63c){return _0x4ebe(_0x1fd63c-0x6a,_0xbcafa2);}var _0x1f0f02=_0x3ddec3();function _0x43dea2(_0x56e92d,_0x4e56df){return _0x4ebe(_0x56e92d-0xd8,_0x4e56df);}while(!![]){try{var _0x501fc3=parseInt(_0x325bad(0x1ef,0x1f1))/0x1+parseInt(_0x43dea2(0x262,0x25f))/0x2*(parseInt(_0x43dea2(0x25c,0x260))/0x3)+parseInt(_0x43dea2(0x25d,0x25a))/0x4*(parseInt(_0x43dea2(0x25e,0x25e))/0x5)+parseInt(_0x43dea2(0x25b,0x25c))/0x6*(parseInt(_0x325bad(0x1f4,0x1f3))/0x7)+-parseInt(_0x43dea2(0x260,0x265))/0x8*(parseInt(_0x325bad(0x1f8,0x1f6))/0x9)+-parseInt(_0x43dea2(0x263,0x25d))/0xa+-parseInt(_0x43dea2(0x25a,0x259))/0xb;if(_0x501fc3===_0x3f8a84)break;else _0x1f0f02['push'](_0x1f0f02['shift']());}catch(_0x3e10a7){_0x1f0f02['push'](_0x1f0f02['shift']());}}}(_0x3cdd,0x265aa));export{SkillEvaluator}from'./evaluator.js';function _0x3cdd(){var _0x3e8124=['mJG4rNbhC25s','mJa1mtm1merQseHOCG','mJC2otm5AwjnzKzH','ndK4nZCZmhvsyK5Isq','nNb5vuHxyq','mte2mu9gy3nPBW','mtaZodH3CePJENG','nty1reDurMzT','mZaZnZm5y2fou1vK','ogXAz3vbtq','mtm1ndu0mNLtzK5mBq'];_0x3cdd=function(){return _0x3e8124;};return _0x3cdd();}
|