a2a-memory 0.12.58 → 0.12.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/adapters/anthropic.js +1 -1
- package/dist/chunking/chunker.js +1 -1
- package/dist/claude/sync.js +1 -1
- package/dist/cli/commands/add.js +1 -1
- package/dist/cli/commands/claude-sync.js +1 -1
- package/dist/cli/commands/cleanup.js +1 -1
- package/dist/cli/commands/config.js +1 -1
- package/dist/cli/commands/contextrank.js +1 -1
- package/dist/cli/commands/edit.js +1 -1
- package/dist/cli/commands/embed.js +1 -1
- package/dist/cli/commands/export.js +1 -1
- package/dist/cli/commands/extract.js +1 -1
- package/dist/cli/commands/health.js +1 -1
- package/dist/cli/commands/list.js +1 -1
- package/dist/cli/commands/migrate-chunks.js +1 -1
- package/dist/cli/commands/migrate-file-refs.js +1 -1
- package/dist/cli/commands/proficiency.js +1 -1
- package/dist/cli/commands/review.js +1 -1
- package/dist/cli/commands/rm.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/session-extract.js +1 -1
- package/dist/cli/commands/setup-wizard.js +1 -1
- package/dist/cli/commands/setup.js +1 -1
- package/dist/cli/commands/skill.js +1 -1
- package/dist/cli/commands/status.js +1 -1
- package/dist/cli/commands/sync.js +1 -1
- package/dist/cli/commands/team.js +1 -1
- package/dist/cli/commands/usage.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/manager.js +1 -1
- package/dist/contextrank/ac-matcher.js +1 -1
- package/dist/contextrank/edge-builder.js +1 -1
- package/dist/contextrank/rank-builder.js +1 -1
- package/dist/contextrank/signal-builder.js +1 -1
- package/dist/contextrank/since-store.js +1 -1
- package/dist/db/database.js +1 -1
- package/dist/db/usage-spool.js +1 -1
- package/dist/embedding/e5-provider.js +1 -1
- package/dist/embedding/index.js +1 -1
- package/dist/embedding/local-provider.js +1 -1
- package/dist/embedding/openai-provider.js +1 -1
- package/dist/embedding/quantization.js +1 -1
- package/dist/extraction/dedup-manager.js +1 -1
- package/dist/extraction/emotion-filter.js +1 -1
- package/dist/extraction/extractor.js +1 -1
- package/dist/extraction/file-reference.js +1 -1
- package/dist/extraction/filter.js +1 -1
- package/dist/extraction/scorer.js +1 -1
- package/dist/extraction/similarity.js +1 -1
- package/dist/hooks/client-factory.js +1 -1
- package/dist/hooks/post-tool-use.js +1 -1
- package/dist/hooks/pre-compact.js +1 -1
- package/dist/hooks/session-end.js +1 -1
- package/dist/hooks/session-start.js +1 -1
- package/dist/hooks/shared.js +1 -1
- package/dist/hooks/stop.js +1 -1
- package/dist/hooks/user-prompt-submit.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messages.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lifecycle/cleanup-scheduler.js +1 -1
- package/dist/lifecycle/cleanup.js +1 -1
- package/dist/lifecycle/consolidation.js +1 -1
- package/dist/lifecycle/contradiction.js +1 -1
- package/dist/lifecycle/embedding-backfill.js +1 -1
- package/dist/lifecycle/index.js +1 -1
- package/dist/lifecycle/injection-flush.js +1 -1
- package/dist/lifecycle/quality-scorer.js +1 -1
- package/dist/lifecycle/session-extract.js +1 -1
- package/dist/lifecycle/shadow-rebuild.js +1 -1
- package/dist/lifecycle/tiering.js +1 -1
- package/dist/llm/client.js +1 -1
- package/dist/llm/index.js +1 -1
- package/dist/proficiency/actr-engine.js +1 -1
- package/dist/proficiency/detection.js +1 -1
- package/dist/proficiency/index.js +1 -1
- package/dist/proficiency/tracker.js +1 -1
- package/dist/search/adaptive-router.js +1 -1
- package/dist/search/index.js +1 -1
- package/dist/search/injection-filter.js +1 -1
- package/dist/search/memoryrank-rerank.js +1 -1
- package/dist/search/ranker.js +1 -1
- package/dist/search/reranker.js +1 -1
- package/dist/session/parser.js +1 -1
- package/dist/skill/evaluator.js +1 -1
- package/dist/skill/index.js +1 -1
- package/dist/sync/client.js +1 -1
- package/dist/sync/encryption.js +1 -1
- package/dist/sync/index.js +1 -1
- package/dist/sync/queue.js +1 -1
- package/dist/sync/scheduler.js +1 -1
- package/dist/sync/synchronizer.js +1 -1
- package/dist/sync/team-synchronizer.js +1 -1
- package/dist/sync/vector-clock.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/keychain.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/dist/utils/test-isolation.js +1 -1
- package/package.json +1 -1
package/dist/search/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5204(){var _0x2cbb7e=['mJa2mxLwBufsAq','otqWodG2DgjdB1fg','mJC5otuYz2fzwvHo','mtG4mdC3mgHAu0f3Ca','mMLQAxvwAa','nZCYnZq2mevtue9zDG','ndaWodH1rvvyEeC','mti4mZq3ohzPqMjtuW','mtG3mdCWmdDozLvUrKC','mtjdBLvYsK8','mtjozNLbyM8','mJrUqLLiy3y'];_0x5204=function(){return _0x2cbb7e;};return _0x5204();}(function(_0x3a42a2,_0x4f92c2){function _0x264dc5(_0x44b0b9,_0x18dc9c){return _0xe8fb(_0x18dc9c- -0x30c,_0x44b0b9);}function _0x2f5b48(_0xea1c43,_0x236cee){return _0xe8fb(_0xea1c43- -0x339,_0x236cee);}var _0x276879=_0x3a42a2();while(!![]){try{var _0x5572d3=parseInt(_0x264dc5(-0x149,-0x149))/0x1*(-parseInt(_0x264dc5(-0x141,-0x146))/0x2)+-parseInt(_0x264dc5(-0x14f,-0x14b))/0x3*(-parseInt(_0x2f5b48(-0x175,-0x17a))/0x4)+parseInt(_0x264dc5(-0x148,-0x147))/0x5*(parseInt(_0x2f5b48(-0x16e,-0x170))/0x6)+parseInt(_0x2f5b48(-0x170,-0x172))/0x7+-parseInt(_0x2f5b48(-0x171,-0x171))/0x8*(-parseInt(_0x264dc5(-0x149,-0x14a))/0x9)+parseInt(_0x264dc5(-0x14b,-0x145))/0xa+parseInt(_0x264dc5(-0x143,-0x142))/0xb*(-parseInt(_0x2f5b48(-0x16d,-0x173))/0xc);if(_0x5572d3===_0x4f92c2)break;else _0x276879['push'](_0x276879['shift']());}catch(_0x604118){_0x276879['push'](_0x276879['shift']());}}}(_0x5204,0xbd0a4));export{HybridRanker}from'./ranker.js';export{AdaptiveRouter}from'./adaptive-router.js';function _0xe8fb(_0x2caee0,_0x38467a){_0x2caee0=_0x2caee0-0x1c1;var _0x5204e7=_0x5204();var _0xe8fbc3=_0x5204e7[_0x2caee0];if(_0xe8fb['ypksJE']===undefined){var _0x602b3c=function(_0x8a53c4){var _0x5af8a7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x477462='',_0x12b86b='';for(var _0x40ed47=0x0,_0x46d9c2,_0x355566,_0x5304b6=0x0;_0x355566=_0x8a53c4['charAt'](_0x5304b6++);~_0x355566&&(_0x46d9c2=_0x40ed47%0x4?_0x46d9c2*0x40+_0x355566:_0x355566,_0x40ed47++%0x4)?_0x477462+=String['fromCharCode'](0xff&_0x46d9c2>>(-0x2*_0x40ed47&0x6)):0x0){_0x355566=_0x5af8a7['indexOf'](_0x355566);}for(var _0x477ad8=0x0,_0x4c9504=_0x477462['length'];_0x477ad8<_0x4c9504;_0x477ad8++){_0x12b86b+='%'+('00'+_0x477462['charCodeAt'](_0x477ad8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x12b86b);};_0xe8fb['uLeNNG']=_0x602b3c,_0xe8fb['PwvjjN']={},_0xe8fb['ypksJE']=!![];}var _0x1ec7fa=_0x5204e7[0x0],_0x3bd5e5=_0x2caee0+_0x1ec7fa,_0x4229ec=_0xe8fb['PwvjjN'][_0x3bd5e5];return!_0x4229ec?(_0xe8fbc3=_0xe8fb['uLeNNG'](_0xe8fbc3),_0xe8fb['PwvjjN'][_0x3bd5e5]=_0xe8fbc3):_0xe8fbc3=_0x4229ec,_0xe8fbc3;}export{CrossEncoderReranker}from'./reranker.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f4d2f,_0x4a83ea){function _0x22bb61(_0x42e366,_0x41f4a1){return _0x43da(_0x42e366-0x27c,_0x41f4a1);}const _0x240fd0=_0x3f4d2f();function _0x24a97f(_0x5104f2,_0x1ee27a){return _0x43da(_0x1ee27a- -0x2d9,_0x5104f2);}while(!![]){try{const _0x61506c=-parseInt(_0x24a97f(-0x259,-0x262))/0x1*(parseInt(_0x22bb61(0x2eb,0x2e2))/0x2)+parseInt(_0x24a97f(-0x270,-0x26f))/0x3*(parseInt(_0x24a97f(-0x26a,-0x264))/0x4)+-parseInt(_0x24a97f(-0x256,-0x25f))/0x5+parseInt(_0x24a97f(-0x270,-0x26b))/0x6+parseInt(_0x24a97f(-0x26b,-0x26e))/0x7*(-parseInt(_0x24a97f(-0x260,-0x269))/0x8)+parseInt(_0x22bb61(0x2f0,0x2e8))/0x9*(-parseInt(_0x24a97f(-0x269,-0x263))/0xa)+parseInt(_0x24a97f(-0x267,-0x26c))/0xb;if(_0x61506c===_0x4a83ea)break;else _0x240fd0['push'](_0x240fd0['shift']());}catch(_0x1ecf8e){_0x240fd0['push'](_0x240fd0['shift']());}}}(_0x49ca,0x2abf4));function _0x43da(_0x3289c0,_0x2ee0f4){_0x3289c0=_0x3289c0-0x66;const _0x49ca88=_0x49ca();let _0x43dada=_0x49ca88[_0x3289c0];if(_0x43da['HgBmkk']===undefined){var _0x4c7da5=function(_0x3ca588){const _0x96ac14='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x45973a='',_0xc8be83='';for(let _0xb3b3c1=0x0,_0x2ae4b6,_0x9ae419,_0x1c48ad=0x0;_0x9ae419=_0x3ca588['charAt'](_0x1c48ad++);~_0x9ae419&&(_0x2ae4b6=_0xb3b3c1%0x4?_0x2ae4b6*0x40+_0x9ae419:_0x9ae419,_0xb3b3c1++%0x4)?_0x45973a+=String['fromCharCode'](0xff&_0x2ae4b6>>(-0x2*_0xb3b3c1&0x6)):0x0){_0x9ae419=_0x96ac14['indexOf'](_0x9ae419);}for(let _0x17175a=0x0,_0x167a67=_0x45973a['length'];_0x17175a<_0x167a67;_0x17175a++){_0xc8be83+='%'+('00'+_0x45973a['charCodeAt'](_0x17175a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xc8be83);};_0x43da['egoLMD']=_0x4c7da5,_0x43da['cLHxNS']={},_0x43da['HgBmkk']=!![];}const _0x52bed9=_0x49ca88[0x0],_0x10803a=_0x3289c0+_0x52bed9,_0x318f21=_0x43da['cLHxNS'][_0x10803a];return!_0x318f21?(_0x43dada=_0x43da['egoLMD'](_0x43dada),_0x43da['cLHxNS'][_0x10803a]=_0x43dada):_0x43dada=_0x318f21,_0x43dada;}function _0x49ca(){const _0x1f890c=['zMLSDgvY','ota4nteWz0X4q1vq','DhjPBq','AgfZ','ywrK','CxvHBgL0EvnJBW','mJq4mde2sNDhzNHt','nJG3mdK5zNrKD2LX','BwvTB3j5','oty1odGYnvbAuhfIuq','mtaWmdiWq0XZzwTk','ndGXnJe2zxPNCKfL','og1uCfDeBq','BgvUz3rO','v2fdv20','y29UDgvUDa','mtK0otK0Bfbkuwnd','nhrWsg5XsG','mtmWCvrcB2Xt','muz2A1Pjva','s3jQwvG'];_0x49ca=function(){return _0x1f890c;};return _0x49ca();}export function filterInjectionCandidates(_0x1f93aa,_0x2288c4){const _0x36c10b=new Set();function _0x24870e(_0x19eb88,_0x5e0e76){return _0x43da(_0x5e0e76- -0x32e,_0x19eb88);}let _0xe8ed7f=0x0;const _0x15e5af=_0x1f93aa['filter'](_0x34630b=>{function _0x56f531(_0x57924c,_0x10e15c){return _0x43da(_0x57924c-0x2a7,_0x10e15c);}function _0x432451(_0x2684f4,_0xfaa9a9){return _0x43da(_0xfaa9a9- -0x101,_0x2684f4);}const _0xa2d2c=_0x34630b[_0x432451(-0x9b,-0x95)][_0x432451(-0x8b,-0x8e)][_0x56f531(0x30d,0x315)]();if(_0x36c10b[_0x56f531(0x30e,0x311)](_0xa2d2c))return _0xe8ed7f++,![];return _0x36c10b[_0x432451(-0x91,-0x99)](_0xa2d2c),!![];});let _0x2cb0d0=0x0;const _0x469751=_0x15e5af[_0x24870e(-0x2bc,-0x2b5)](_0x379ef6=>{function _0x4edd86(_0x4b79b6,_0x181047){return _0x24870e(_0x4b79b6,_0x181047-0x5e4);}function _0xecfd51(_0x1d89b6,_0x583758){return _0x24870e(_0x1d89b6,_0x583758-0x155);}const _0x48a850=_0x379ef6[_0xecfd51(-0x16b,-0x16d)][_0xecfd51(-0x17a,-0x170)+'re'];if(_0x48a850!==undefined&&_0x48a850!==null&&_0x48a850<_0x2288c4){if(_0xecfd51(-0x167,-0x167)===_0x4edd86(0x32f,0x32e)){const _0xb761c0=_0x4fb77d[_0xecfd51(-0x16b,-0x16d)]['qualitySco'+'re'];if(_0xb761c0!==_0x3d0349&&_0xb761c0!==null&&_0xb761c0<_0x27017a)return _0x3ce734++,![];return!![];}else return _0x2cb0d0++,![];}return!![];});function _0x310d28(_0x25230f,_0x250027){return _0x43da(_0x25230f- -0x2c,_0x250027);}if(_0x469751[_0x310d28(0x45,0x3b)]===0x0&&_0x15e5af[_0x24870e(-0x2c5,-0x2bd)]>0x0)return{'results':_0x15e5af,'stats':{'contentDuplicates':_0xe8ed7f,'lowQuality':_0x2cb0d0,'qualityGateBypassed':!![]}};return{'results':_0x469751,'stats':{'contentDuplicates':_0xe8ed7f,'lowQuality':_0x2cb0d0,'qualityGateBypassed':![]}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x563b86,_0x49479b){function _0x35d464(_0x420682,_0x29994c){return _0x722c(_0x29994c-0x40,_0x420682);}const _0x323c70=_0x563b86();function _0x2aff7f(_0x4e1999,_0x32ead9){return _0x722c(_0x32ead9-0x38f,_0x4e1999);}while(!![]){try{const _0x41ebcd=-parseInt(_0x2aff7f(0x4dc,0x4e9))/0x1*(-parseInt(_0x2aff7f(0x4c5,0x4d6))/0x2)+-parseInt(_0x2aff7f(0x4c8,0x4de))/0x3*(parseInt(_0x35d464(0x1a5,0x18b))/0x4)+-parseInt(_0x2aff7f(0x4e9,0x4dd))/0x5*(-parseInt(_0x2aff7f(0x4dc,0x4cc))/0x6)+parseInt(_0x35d464(0x18e,0x183))/0x7*(parseInt(_0x2aff7f(0x4bf,0x4d3))/0x8)+-parseInt(_0x2aff7f(0x502,0x4f2))/0x9+parseInt(_0x2aff7f(0x4c0,0x4d9))/0xa*(-parseInt(_0x35d464(0x18a,0x1a1))/0xb)+parseInt(_0x2aff7f(0x4ff,0x4ec))/0xc*(parseInt(_0x2aff7f(0x4f1,0x4db))/0xd);if(_0x41ebcd===_0x49479b)break;else _0x323c70['push'](_0x323c70['shift']());}catch(_0x4816c4){_0x323c70['push'](_0x323c70['shift']());}}}(_0x18af,0x3096c));import{cosineSimilarity}from'../extraction/similarity.js';export const DEFAULT_RERANK_CONFIG={'enabled':!![],'nu':0.3,'floor':0.5,'expand':!![],'expandLimit':0xa,'mmrLambda':0.7};export function applyMemoryRankPrior(_0x1b207e,_0x4c8e1a){if(_0x1b207e[_0x4eba16(0x140,0x155)]===0x0)return _0x1b207e;const _0x3bc6cc=_0x4c8e1a?.['nu']??DEFAULT_RERANK_CONFIG['nu'],_0x18d508=_0x4c8e1a?.['floor']??DEFAULT_RERANK_CONFIG[_0x2a6f72(-0x140,-0x131)];if(_0x3bc6cc<=0x0)return _0x1b207e;function _0x4eba16(_0x593caa,_0xe7e517){return _0x722c(_0x593caa- -0x15,_0xe7e517);}const _0x454e55=_0x1b207e[_0x2a6f72(-0x13d,-0x14a)](_0x25a087=>_0x25a087[_0x4eba16(0x155,0x15c)][_0x4eba16(0x14d,0x163)])['filter'](_0x26a787=>_0x26a787!==undefined&&_0x26a787!==null&&Number[_0x4eba16(0x143,0x151)](_0x26a787));if(_0x454e55['length']===0x0)return _0x1b207e;const _0x5b4d3b=Math[_0x2a6f72(-0x15a,-0x149)](..._0x454e55),_0x4e3008=Math[_0x2a6f72(-0x153,-0x15d)](..._0x454e55)-_0x5b4d3b;function _0x2a6f72(_0x48a01c,_0x3ead10){return _0x722c(_0x48a01c- -0x299,_0x3ead10);}return _0x1b207e[_0x2a6f72(-0x13d,-0x14d)](_0x3a5520=>{const _0x471bd6=_0x3a5520[_0x1f80a0(0x37d,0x396)][_0x1f80a0(0x39b,0x38e)],_0x5dfecf=_0x471bd6===undefined||_0x471bd6===null||!Number[_0x2bdfb4(0xa2,0xb1)](_0x471bd6)?0.5:_0x4e3008<=0x0?0.5:(_0x471bd6-_0x5b4d3b)/_0x4e3008,_0xcc9b77=_0x18d508+(0x1-_0x18d508)*_0x5dfecf;function _0x2bdfb4(_0x126b4e,_0x13463b){return _0x4eba16(_0x126b4e- -0xa1,_0x13463b);}function _0x1f80a0(_0x45b16c,_0x491549){return _0x4eba16(_0x491549-0x241,_0x45b16c);}return{..._0x3a5520,'score':_0x3a5520[_0x2bdfb4(0x8a,0x8a)]*Math[_0x2bdfb4(0x85,0x86)](_0xcc9b77,_0x3bc6cc)};})[_0x4eba16(0x157,0x161)]((_0xaa76f5,_0x47a946)=>_0x47a946[_0x4eba16(0x12b,0x12d)]-_0xaa76f5[_0x4eba16(0x12b,0x13e)]);}export function expandCandidates(_0x188727,_0x5d8fe2,_0x202810){const _0x521f75=_0x202810?.[_0x1613f3(-0x105,-0xef)]??0x5,_0x408213=_0x202810?.['expandLimi'+'t']??DEFAULT_RERANK_CONFIG[_0x1b3563(0xd5,0xc0)+'t'],_0x335d29=_0x202810?.['expandWeig'+'ht']??0.5;if(_0x5d8fe2[_0x1613f3(-0xf8,-0xf7)]===0x0||_0x408213<=0x0)return _0x5d8fe2;function _0x1b3563(_0x511674,_0x249a8c){return _0x722c(_0x249a8c- -0x7c,_0x511674);}const _0x16e90e=_0x5d8fe2[_0x1b3563(0x100,0xea)](0x0,_0x521f75),_0x3ff817=new Set(_0x5d8fe2[_0x1b3563(0xf6,0xe0)](_0x170cf5=>_0x170cf5[_0x1b3563(0xec,0xee)]['id']));let _0x6dbe63;try{_0x6dbe63=_0x188727[_0x1b3563(0xcc,0xe3)+_0x1613f3(-0xe5,-0xd9)](_0x16e90e[_0x1b3563(0xe3,0xe0)](_0x1738fc=>_0x1738fc[_0x1b3563(0x104,0xee)]['id']),_0x408213+_0x3ff817[_0x1b3563(0x105,0xed)]);}catch{return _0x5d8fe2;}const _0x3dc592=_0x6dbe63[_0x1613f3(-0xed,-0x107)](_0x1e76a5=>!_0x3ff817['has'](_0x1e76a5['dstId']))[_0x1b3563(0xf6,0xea)](0x0,_0x408213);if(_0x3dc592[_0x1613f3(-0xf8,-0xe0)]===0x0)return _0x5d8fe2;let _0x579f56;try{_0x579f56=_0x188727[_0x1613f3(-0x10c,-0x11b)+_0x1613f3(-0x10f,-0x103)](_0x3dc592['map'](_0x21e064=>_0x21e064[_0x1613f3(-0xe2,-0xdf)]));}catch{if(_0x1b3563(0xbd,0xcd)!==_0x1613f3(-0x104,-0x11a))_0x50998a=_0x17444f,_0x55d51b=_0x4f8a2a;else return _0x5d8fe2;}const _0x421669=new Map(_0x579f56[_0x1b3563(0xe2,0xe0)](_0x177382=>[_0x177382['id'],_0x177382]));function _0x1613f3(_0x142275,_0x5a5811){return _0x722c(_0x142275- -0x24d,_0x5a5811);}const _0x1d2073=_0x16e90e[_0x16e90e[_0x1613f3(-0xf8,-0xf7)]-0x1][_0x1b3563(0xc4,0xc4)],_0x5582d6=[];for(const _0x2245dd of _0x3dc592){const _0x33d471=_0x421669[_0x1613f3(-0xfc,-0xe7)](_0x2245dd['dstId']);if(!_0x33d471)continue;_0x5582d6[_0x1b3563(0xc9,0xd7)]({'memory':_0x33d471,'score':_0x1d2073*_0x335d29*Math[_0x1b3563(0xad,0xc3)](0x1,Math['max'](0x0,_0x2245dd[_0x1b3563(0xb7,0xc6)])),'sources':[{'type':_0x1b3563(0xde,0xd4),'rank':_0x5582d6[_0x1613f3(-0xf8,-0xdf)]+0x1}]});}if(_0x5582d6['length']===0x0)return _0x5d8fe2;return[..._0x5d8fe2,..._0x5582d6][_0x1613f3(-0xe1,-0xe1)]((_0x149126,_0x5c6b99)=>_0x5c6b99['score']-_0x149126[_0x1613f3(-0x10d,-0x11d)]);}function _0x18af(){const _0x28ee6b=['ChvZAa','zw5HyMXLza','BgvUz3rO','C3bSAwnL','BgLTAxq','AxngAw5PDgu','zMXVB3i','mZm2nty5CvvbDMTk','Bw1YtgfTyMrH','BwfW','nZa4nJeYBxHuyw5d','CMvKDwnL','z2v0tMvPz2HIBW','zMLSDgvY','mtfQy21nC2i','BwvTB3j5CMfUAW','odaWnZaZvezqwNbI','ywrK','Dg9Rzw5Z','C2XPy2u','CMfUA2vK','CKvKz2vZ','C2L6zq','BwvTB3j5','zhn0swq','C29YDa','y2vPBa','Cg93','zxHWyw5KtgLTAq','nMrwBfrIsa','C0j5swrZ','BwLU','C2nVCMu','z2v0twvTB3jPzq','D2vPz2H0','mtC3mZCZzvfsCe1m','og5wCejcAq','zw1IzwrKAw5N','Bwf4','mLPRqNPcBG','C2vLzenVDw50','DvHPywu','mJC4nta2mhzdCenUrW','ogniuhH3sa','mJzAy1PjqMG','y29UzMLN','mtC3ntG4nwL6uK5ltW','ndaZmdqXvNzczwTs','zxHWyw5K','z2v0','y2X1C3rLCKLK'];_0x18af=function(){return _0x28ee6b;};return _0x18af();}export function diversify(_0x2edae4,_0x16e417){const _0x4fc184=_0x16e417[_0x3e0890(0xc4,0xb0)];if(_0x2edae4[_0x1165ca(0x11b,0x107)]===0x0||_0x4fc184<=0x0)return[];const _0x5ab36a=_0x16e417['mmrLambda']??DEFAULT_RERANK_CONFIG[_0x1165ca(0x121,0x107)],_0x55d3bb=[..._0x2edae4]['sort']((_0x49d885,_0x42591f)=>_0x42591f[_0x1165ca(0x106,0x10b)]-_0x49d885[_0x1165ca(0x106,0xf5)]),_0x250b92=_0x55d3bb[0x0][_0x3e0890(0x84,0x99)]>0x0?_0x55d3bb[0x0][_0x1165ca(0x106,0x104)]:0x1,_0x262d9f=[],_0x27d04f=new Set();while(_0x262d9f['length']<_0x4fc184&&_0x55d3bb[_0x3e0890(0xb9,0xae)]>0x0){let _0x53d94f=-0x1,_0x345641=-Infinity;for(let _0x4cfef2=0x0;_0x4cfef2<_0x55d3bb['length'];_0x4cfef2++){const _0x45eb51=_0x55d3bb[_0x4cfef2],_0x333dbe=_0x45eb51[_0x1165ca(0x130,0x147)]['clusterId'];if(_0x333dbe&&_0x27d04f['has'](_0x333dbe))continue;const _0xb3efeb=_0x45eb51[_0x1165ca(0x106,0x106)]/_0x250b92;let _0x4c3682=0x0;const _0x1b296f=_0x45eb51[_0x1165ca(0x130,0x118)][_0x1165ca(0x10b,0xf1)];if(_0x1b296f&&_0x1b296f['length']>0x0)for(const _0x4b5448 of _0x262d9f){const _0x52a085=_0x4b5448[_0x1165ca(0x130,0x125)][_0x3e0890(0x8c,0x9e)];if(_0x52a085&&_0x52a085[_0x1165ca(0x11b,0x12c)]===_0x1b296f['length']){const _0x54555a=cosineSimilarity(_0x1b296f,_0x52a085);if(_0x54555a>_0x4c3682)_0x4c3682=_0x54555a;}}const _0x5cf947=_0x5ab36a*_0xb3efeb-(0x1-_0x5ab36a)*_0x4c3682;_0x5cf947>_0x345641&&(_0x345641=_0x5cf947,_0x53d94f=_0x4cfef2);}if(_0x53d94f<0x0)break;const _0x238e86=_0x55d3bb[_0x3e0890(0x98,0xaf)](_0x53d94f,0x1)[0x0];_0x262d9f[_0x3e0890(0xb1,0xac)](_0x238e86);if(_0x238e86[_0x3e0890(0xc1,0xc3)]['clusterId'])_0x27d04f[_0x3e0890(0xb4,0xbd)](_0x238e86[_0x1165ca(0x130,0x139)][_0x3e0890(0xc2,0xab)]);}function _0x3e0890(_0x538e54,_0x271793){return _0x722c(_0x271793- -0xa7,_0x538e54);}function _0x1165ca(_0x36b1b1,_0xcce633){return _0x722c(_0x36b1b1- -0x3a,_0xcce633);}return _0x262d9f;}function _0x722c(_0x190359,_0x2d8b46){_0x190359=_0x190359-0x13b;const _0x18afae=_0x18af();let _0x722c1b=_0x18afae[_0x190359];if(_0x722c['QEsFhq']===undefined){var _0x18562e=function(_0x1005f8){const _0x24ce70='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x547038='',_0x5e77ee='';for(let _0x383f38=0x0,_0x4668b9,_0x53ad71,_0x244ab3=0x0;_0x53ad71=_0x1005f8['charAt'](_0x244ab3++);~_0x53ad71&&(_0x4668b9=_0x383f38%0x4?_0x4668b9*0x40+_0x53ad71:_0x53ad71,_0x383f38++%0x4)?_0x547038+=String['fromCharCode'](0xff&_0x4668b9>>(-0x2*_0x383f38&0x6)):0x0){_0x53ad71=_0x24ce70['indexOf'](_0x53ad71);}for(let _0x5d3595=0x0,_0x3a8901=_0x547038['length'];_0x5d3595<_0x3a8901;_0x5d3595++){_0x5e77ee+='%'+('00'+_0x547038['charCodeAt'](_0x5d3595)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5e77ee);};_0x722c['LvTdEL']=_0x18562e,_0x722c['REftKR']={},_0x722c['QEsFhq']=!![];}const _0x1c4b25=_0x18afae[0x0],_0x13b953=_0x190359+_0x1c4b25,_0x516a20=_0x722c['REftKR'][_0x13b953];return!_0x516a20?(_0x722c1b=_0x722c['LvTdEL'](_0x722c1b),_0x722c['REftKR'][_0x13b953]=_0x722c1b):_0x722c1b=_0x516a20,_0x722c1b;}export function assembleWithinBudget(_0x494fe2,_0x191064,_0x1ab4c6){if(_0x494fe2[_0x15db3c(0x1ed,0x1d5)]===0x0||_0x191064<=0x0)return _0x494fe2;const _0x57b86a=_0x1ab4c6??(_0x1d7130=>Math[_0x4242e1(0x18b,0x17d)](0x1,Math[_0x4242e1(0x192,0x1a4)](Math[_0x15db3c(0x1ad,0x1bf)](_0x1d7130['content'][_0x4242e1(0x1a4,0x18c)],0x258)/0x4))),_0x41047c=_0x494fe2[_0x15db3c(0x1d9,0x1dc)](_0x4462e4=>({'r':_0x4462e4,'tokens':Math[_0x4242e1(0x187,0x17d)](0x1,_0x57b86a(_0x4462e4[_0x4242e1(0x191,0x1a1)]))})),_0x313658=_0x41047c[_0x4242e1(0x184,0x195)]((_0x3c47ee,_0x7400f6)=>_0x3c47ee+_0x7400f6[_0x15db3c(0x1fe,0x1e5)],0x0);function _0x4242e1(_0x57192a,_0x3ae0be){return _0x722c(_0x3ae0be-0x37,_0x57192a);}function _0x15db3c(_0x1c8a69,_0x2c9622){return _0x722c(_0x2c9622-0x80,_0x1c8a69);}if(_0x313658<=_0x191064)return _0x494fe2;_0x41047c[_0x4242e1(0x1aa,0x1a3)]((_0xec5fe4,_0x193bd3)=>_0x193bd3['r'][_0x4242e1(0x16f,0x177)]/_0x193bd3[_0x15db3c(0x1f7,0x1e5)]-_0xec5fe4['r'][_0x15db3c(0x1d2,0x1c0)]/_0xec5fe4[_0x4242e1(0x197,0x19c)]);const _0xf0cf8d=[];let _0x12557f=0x0;for(const _0x2c233e of _0x41047c){if(_0x12557f+_0x2c233e['tokens']>_0x191064)continue;_0xf0cf8d[_0x4242e1(0x1a3,0x18a)](_0x2c233e['r']),_0x12557f+=_0x2c233e[_0x15db3c(0x1d2,0x1e5)];}return _0xf0cf8d[_0x4242e1(0x197,0x1a3)]((_0x37aa0e,_0x38814f)=>_0x38814f[_0x4242e1(0x185,0x177)]-_0x37aa0e['score']);}export function applyContextRankRerank(_0x481787){const _0xb36313={...DEFAULT_RERANK_CONFIG,..._0x481787[_0x4b91fc(-0x128,-0x11e)]};if(!_0xb36313[_0x4b91fc(-0x121,-0x119)])return _0x481787['ranked'][_0x4b91fc(-0x10f,-0x10f)](0x0,_0x481787['limit']);let _0x1527c6=_0x481787[_0x4b91fc(-0x10e,-0x106)];function _0x4b91fc(_0x64af30,_0x43a06c){return _0x722c(_0x64af30- -0x275,_0x43a06c);}_0xb36313[_0x3c342b(0x14d,0x140)]&&_0x481787['db']&&(_0x1527c6=expandCandidates(_0x481787['db'],_0x1527c6,{'expandLimit':_0xb36313[_0x3c342b(0x139,0x143)+'t']}));_0x1527c6=applyMemoryRankPrior(_0x1527c6,{'nu':_0xb36313['nu'],'floor':_0xb36313[_0x4b91fc(-0x11c,-0x10e)]});function _0x3c342b(_0x1a7055,_0x1715e3){return _0x722c(_0x1a7055- -0x3,_0x1715e3);}return diversify(_0x1527c6,{'limit':_0x481787[_0x3c342b(0x154,0x156)],'mmrLambda':_0xb36313[_0x4b91fc(-0x11a,-0x118)]});}
|
|
1
|
+
(function(_0x19c31d,_0x4bccc8){function _0x4e6ca4(_0x50415b,_0x39533e){return _0x2a19(_0x50415b- -0x38b,_0x39533e);}const _0x531bb4=_0x19c31d();function _0x2e100e(_0x45271d,_0x15e50f){return _0x2a19(_0x45271d-0xb9,_0x15e50f);}while(!![]){try{const _0x42db51=-parseInt(_0x4e6ca4(-0x2aa,-0x291))/0x1*(-parseInt(_0x4e6ca4(-0x29f,-0x2b5))/0x2)+parseInt(_0x2e100e(0x1c1,0x1d7))/0x3+-parseInt(_0x4e6ca4(-0x2a6,-0x2b5))/0x4*(parseInt(_0x2e100e(0x1b5,0x1bf))/0x5)+parseInt(_0x4e6ca4(-0x2ab,-0x2ad))/0x6+parseInt(_0x2e100e(0x1ae,0x1ac))/0x7+-parseInt(_0x2e100e(0x1a8,0x1ba))/0x8*(-parseInt(_0x2e100e(0x1ad,0x1bb))/0x9)+-parseInt(_0x2e100e(0x1c0,0x1a9))/0xa;if(_0x42db51===_0x4bccc8)break;else _0x531bb4['push'](_0x531bb4['shift']());}catch(_0x421630){_0x531bb4['push'](_0x531bb4['shift']());}}}(_0x1e53,0x6d707));import{cosineSimilarity}from'../extraction/similarity.js';export const DEFAULT_RERANK_CONFIG={'enabled':!![],'nu':0.3,'floor':0.5,'expand':!![],'expandLimit':0xa,'mmrLambda':0.7};export function applyMemoryRankPrior(_0xc0bcec,_0x2ab441){if(_0xc0bcec['length']===0x0)return _0xc0bcec;const _0x42f30f=_0x2ab441?.['nu']??DEFAULT_RERANK_CONFIG['nu'],_0x36280d=_0x2ab441?.[_0x4c260d(-0x1fc,-0x214)]??DEFAULT_RERANK_CONFIG[_0x4c260d(-0x1fd,-0x214)];if(_0x42f30f<=0x0)return _0xc0bcec;const _0x53ecac=_0xc0bcec[_0x3923bb(0x1f1,0x1e7)](_0x13f57c=>_0x13f57c[_0x3923bb(0x1fa,0x1fd)][_0x4c260d(-0x1e1,-0x1e7)])[_0x3923bb(0x1f9,0x215)](_0x35f46e=>_0x35f46e!==undefined&&_0x35f46e!==null&&Number[_0x4c260d(-0x1e6,-0x1f5)](_0x35f46e));if(_0x53ecac['length']===0x0)return _0xc0bcec;function _0x4c260d(_0x34e5f5,_0x4e15a6){return _0x2a19(_0x4e15a6- -0x2f6,_0x34e5f5);}function _0x3923bb(_0x353cde,_0x4ccc90){return _0x2a19(_0x353cde-0x116,_0x4ccc90);}const _0x2e547a=Math['min'](..._0x53ecac),_0x1b0f7c=Math[_0x3923bb(0x223,0x226)](..._0x53ecac)-_0x2e547a;return _0xc0bcec['map'](_0x28d34c=>{const _0x1f22a2=_0x28d34c[_0x531a0a(-0xc7,-0xb2)][_0x186be4(0x1bd,0x1c2)];function _0x531a0a(_0xc1336b,_0xef8949){return _0x3923bb(_0xef8949- -0x2ac,_0xc1336b);}function _0x186be4(_0x12a449,_0x5740e6){return _0x3923bb(_0x5740e6- -0x63,_0x12a449);}const _0xa39e1b=_0x1f22a2===undefined||_0x1f22a2===null||!Number[_0x531a0a(-0x8e,-0x95)](_0x1f22a2)?0.5:_0x1b0f7c<=0x0?0.5:(_0x1f22a2-_0x2e547a)/_0x1b0f7c,_0x44742a=_0x36280d+(0x1-_0x36280d)*_0xa39e1b;return{..._0x28d34c,'score':_0x28d34c[_0x531a0a(-0x7c,-0x98)]*Math[_0x531a0a(-0x80,-0x8b)](_0x44742a,_0x42f30f)};})['sort']((_0x440b42,_0x3d2727)=>_0x3d2727['score']-_0x440b42[_0x4c260d(-0x201,-0x1f8)]);}function _0x2a19(_0x242ed4,_0x21a496){_0x242ed4=_0x242ed4-0xdb;const _0x1e53c8=_0x1e53();let _0x2a192f=_0x1e53c8[_0x242ed4];if(_0x2a19['Hssjhl']===undefined){var _0x4b225a=function(_0x6069e2){const _0x46142c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x8c087c='',_0x577f00='';for(let _0x23d17f=0x0,_0x4fdfb8,_0x3c4161,_0x353a8f=0x0;_0x3c4161=_0x6069e2['charAt'](_0x353a8f++);~_0x3c4161&&(_0x4fdfb8=_0x23d17f%0x4?_0x4fdfb8*0x40+_0x3c4161:_0x3c4161,_0x23d17f++%0x4)?_0x8c087c+=String['fromCharCode'](0xff&_0x4fdfb8>>(-0x2*_0x23d17f&0x6)):0x0){_0x3c4161=_0x46142c['indexOf'](_0x3c4161);}for(let _0x477fd8=0x0,_0xa66c0f=_0x8c087c['length'];_0x477fd8<_0xa66c0f;_0x477fd8++){_0x577f00+='%'+('00'+_0x8c087c['charCodeAt'](_0x477fd8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x577f00);};_0x2a19['BqknNn']=_0x4b225a,_0x2a19['DtRSNF']={},_0x2a19['Hssjhl']=!![];}const _0x50b5de=_0x1e53c8[0x0],_0x1a0155=_0x242ed4+_0x50b5de,_0x439269=_0x2a19['DtRSNF'][_0x1a0155];return!_0x439269?(_0x2a192f=_0x2a19['BqknNn'](_0x2a192f),_0x2a19['DtRSNF'][_0x1a0155]=_0x2a192f):_0x2a192f=_0x439269,_0x2a192f;}export function expandCandidates(_0xae0a98,_0x521ff4,_0x3a9821){function _0x3d5923(_0x505872,_0x37b936){return _0x2a19(_0x505872-0x1cc,_0x37b936);}const _0x55f7fb=_0x3a9821?.[_0x3d5923(0x2bd,0x2d3)]??0x5,_0x5df644=_0x3a9821?.[_0x3d39e1(0xc0,0xb4)+'t']??DEFAULT_RERANK_CONFIG[_0x3d5923(0x2cc,0x2e7)+'t'],_0x151389=_0x3a9821?.[_0x3d39e1(0xa8,0xb7)+'ht']??0.5;if(_0x521ff4[_0x3d39e1(0xb8,0xd0)]===0x0||_0x5df644<=0x0)return _0x521ff4;const _0x504d13=_0x521ff4[_0x3d5923(0x2ce,0x2ca)](0x0,_0x55f7fb),_0xc26538=new Set(_0x521ff4[_0x3d5923(0x2a7,0x2ae)](_0x3ab7d8=>_0x3ab7d8[_0x3d5923(0x2b0,0x2a9)]['id']));let _0x49eda8;try{if('ynvnk'!==_0x3d5923(0x2b9,0x2b8))_0x49eda8=_0xae0a98[_0x3d5923(0x2c7,0x2d2)+_0x3d5923(0x2c9,0x2ce)](_0x504d13[_0x3d39e1(0x9b,0x83)](_0x36e8e9=>_0x36e8e9[_0x3d39e1(0xa4,0xbc)]['id']),_0x5df644+_0xc26538[_0x3d5923(0x2be,0x2a4)]);else{const _0x535ded=_0x37f2e8['memory']['embedding'];if(_0x535ded&&_0x535ded[_0x3d5923(0x2c4,0x2c5)]===_0x4af55a['length']){const _0x101ea1=_0x4c9b34(_0x25bf8d,_0x535ded);if(_0x101ea1>_0x3e1e42)_0x4d0f68=_0x101ea1;}}}catch{return _0x521ff4;}const _0x39a7a2=_0x49eda8[_0x3d5923(0x2af,0x2ab)](_0xbd03db=>!_0xc26538[_0x3d39e1(0x9c,0x8c)](_0xbd03db['dstId']))[_0x3d39e1(0xc2,0xcb)](0x0,_0x5df644);function _0x3d39e1(_0x5308de,_0x488924){return _0x2a19(_0x5308de- -0x40,_0x488924);}if(_0x39a7a2[_0x3d39e1(0xb8,0xa7)]===0x0)return _0x521ff4;let _0x509c7e;try{_0x509c7e=_0xae0a98[_0x3d5923(0x2c3,0x2cf)+_0x3d5923(0x2dc,0x2e6)](_0x39a7a2[_0x3d39e1(0x9b,0x8d)](_0x4aecc3=>_0x4aecc3[_0x3d39e1(0xca,0xe3)]));}catch{if(_0x3d39e1(0xba,0xc2)===_0x3d5923(0x2c6,0x2ac))return _0x521ff4;else _0x942699=_0x327748[_0x3d39e1(0xb7,0xc3)+_0x3d39e1(0xd0,0xdf)](_0x3e2e45['map'](_0x1cf530=>_0x1cf530[_0x3d39e1(0xca,0xc8)]));}const _0x4b53c0=new Map(_0x509c7e['map'](_0x5d74ec=>[_0x5d74ec['id'],_0x5d74ec])),_0x1afa83=_0x504d13[_0x504d13[_0x3d39e1(0xb8,0xa1)]-0x1][_0x3d39e1(0xbe,0xa5)],_0xb6a9bc=[];for(const _0x2642f1 of _0x39a7a2){const _0x5cca45=_0x4b53c0[_0x3d39e1(0x9e,0x97)](_0x2642f1[_0x3d5923(0x2d6,0x2c9)]);if(!_0x5cca45)continue;_0xb6a9bc[_0x3d5923(0x2a9,0x2b3)]({'memory':_0x5cca45,'score':_0x1afa83*_0x151389*Math[_0x3d5923(0x2b3,0x2b7)](0x1,Math[_0x3d5923(0x2d9,0x2f0)](0x0,_0x2642f1[_0x3d39e1(0xb3,0xbb)])),'sources':[{'type':_0x3d5923(0x2b2,0x2a9),'rank':_0xb6a9bc[_0x3d39e1(0xb8,0xc3)]+0x1}]});}if(_0xb6a9bc['length']===0x0)return _0x521ff4;return[..._0x521ff4,..._0xb6a9bc][_0x3d5923(0x2dd,0x2d6)]((_0x3edb37,_0xa91461)=>_0xa91461['score']-_0x3edb37[_0x3d5923(0x2ca,0x2e5)]);}export function diversify(_0x4dfade,_0x435c5e){const _0x5c5dbe=_0x435c5e[_0x8bd85e(0x43,0x57)];function _0xa5857f(_0xcb70e3,_0x3509d8){return _0x2a19(_0x3509d8- -0x311,_0xcb70e3);}if(_0x4dfade[_0x8bd85e(0x3f,0x4c)]===0x0||_0x5c5dbe<=0x0)return[];const _0x50c565=_0x435c5e['mmrLambda']??DEFAULT_RERANK_CONFIG[_0xa5857f(-0x232,-0x21b)],_0x52a19c=[..._0x4dfade][_0x8bd85e(0x5e,0x65)]((_0x534ec7,_0x2c0d7e)=>_0x2c0d7e[_0x8bd85e(0x58,0x52)]-_0x534ec7[_0xa5857f(-0x210,-0x213)]);function _0x8bd85e(_0x1f536b,_0x34cf25){return _0x2a19(_0x34cf25- -0xac,_0x1f536b);}const _0x4097a2=_0x52a19c[0x0][_0xa5857f(-0x225,-0x213)]>0x0?_0x52a19c[0x0][_0xa5857f(-0x22e,-0x213)]:0x1,_0xa8347e=[],_0x1b4d2f=new Set();while(_0xa8347e[_0x8bd85e(0x3d,0x4c)]<_0x5c5dbe&&_0x52a19c['length']>0x0){let _0x2abbf9=-0x1,_0x40d8ad=-Infinity;for(let _0x36c464=0x0;_0x36c464<_0x52a19c[_0xa5857f(-0x21e,-0x219)];_0x36c464++){const _0x52b0ab=_0x52a19c[_0x36c464],_0x2f04bf=_0x52b0ab['memory'][_0x8bd85e(0x62,0x53)];if(_0x2f04bf&&_0x1b4d2f['has'](_0x2f04bf))continue;const _0x5cf01d=_0x52b0ab[_0xa5857f(-0x211,-0x213)]/_0x4097a2;let _0x573691=0x0;const _0x2dab92=_0x52b0ab[_0x8bd85e(0x45,0x38)]['embedding'];if(_0x2dab92&&_0x2dab92[_0xa5857f(-0x217,-0x219)]>0x0)for(const _0x532e26 of _0xa8347e){if('mpUem'===_0x8bd85e(0x39,0x3e))for(const _0x57befa of _0x54a3a7){const _0x5d9b6a=_0x57befa[_0xa5857f(-0x245,-0x22d)][_0xa5857f(-0x238,-0x228)];if(_0x5d9b6a&&_0x5d9b6a[_0x8bd85e(0x41,0x4c)]===_0x3ebb44[_0xa5857f(-0x1fd,-0x219)]){const _0x557e76=_0x4311b3(_0x1d0386,_0x5d9b6a);if(_0x557e76>_0x529d63)_0x416a96=_0x557e76;}}else{const _0x255162=_0x532e26['memory'][_0x8bd85e(0x31,0x3d)];if(_0x255162&&_0x255162[_0x8bd85e(0x60,0x4c)]===_0x2dab92[_0xa5857f(-0x226,-0x219)]){const _0x8da7a7=cosineSimilarity(_0x2dab92,_0x255162);if(_0x8da7a7>_0x573691)_0x573691=_0x8da7a7;}}}const _0x528ab1=_0x50c565*_0x5cf01d-(0x1-_0x50c565)*_0x573691;_0x528ab1>_0x40d8ad&&(_0x40d8ad=_0x528ab1,_0x2abbf9=_0x36c464);}if(_0x2abbf9<0x0)break;const _0x3600f9=_0x52a19c[_0xa5857f(-0x1ee,-0x203)](_0x2abbf9,0x1)[0x0];_0xa8347e[_0x8bd85e(0x4b,0x31)](_0x3600f9);if(_0x3600f9[_0x8bd85e(0x34,0x38)][_0x8bd85e(0x4a,0x53)])_0x1b4d2f[_0x8bd85e(0x48,0x44)](_0x3600f9['memory'][_0x8bd85e(0x5e,0x53)]);}return _0xa8347e;}export function assembleWithinBudget(_0x5bbfef,_0x28a8fc,_0x1f4799){if(_0x5bbfef['length']===0x0||_0x28a8fc<=0x0)return _0x5bbfef;const _0x1a424c=_0x1f4799??(_0x3181c3=>Math[_0x554707(-0x4f,-0x67)](0x1,Math[_0x554707(-0x57,-0x3d)](Math[_0x554707(-0x75,-0x6d)](_0x3181c3[_0x554707(-0x71,-0x83)][_0xbe5ee1(0x43e,0x433)],0x258)/0x4))),_0x2357e3=_0x5bbfef[_0x554707(-0x81,-0x99)](_0xc3c853=>({'r':_0xc3c853,'tokens':Math[_0x554707(-0x4f,-0x54)](0x1,_0x1a424c(_0xc3c853[_0xbe5ee1(0x418,0x41f)]))})),_0x365c54=_0x2357e3[_0xbe5ee1(0x40d,0x429)]((_0x239246,_0x208365)=>_0x239246+_0x208365['tokens'],0x0);if(_0x365c54<=_0x28a8fc)return _0x5bbfef;_0x2357e3[_0x554707(-0x4b,-0x4a)]((_0x2da3d0,_0x113d15)=>_0x113d15['r'][_0x554707(-0x5e,-0x6e)]/_0x113d15[_0x554707(-0x7d,-0x7e)]-_0x2da3d0['r'][_0xbe5ee1(0x436,0x439)]/_0x2da3d0['tokens']);const _0x35595d=[];function _0x554707(_0xf86dfc,_0x25dc66){return _0x2a19(_0xf86dfc- -0x15c,_0x25dc66);}function _0xbe5ee1(_0x4b5bf4,_0xf5bebf){return _0x2a19(_0xf5bebf-0x33b,_0x4b5bf4);}let _0x461d7f=0x0;for(const _0x2b615f of _0x2357e3){if(_0x461d7f+_0x2b615f[_0x554707(-0x7d,-0x84)]>_0x28a8fc)continue;_0x35595d['push'](_0x2b615f['r']),_0x461d7f+=_0x2b615f[_0xbe5ee1(0x427,0x41a)];}return _0x35595d[_0x554707(-0x4b,-0x56)]((_0x44b331,_0x3f7601)=>_0x3f7601[_0xbe5ee1(0x43b,0x439)]-_0x44b331['score']);}export function applyContextRankRerank(_0x37fc72){const _0x1e2efd={...DEFAULT_RERANK_CONFIG,..._0x37fc72[_0x46b4e0(0x263,0x27e)]};if(!_0x1e2efd[_0x4b7b5c(0x3c,0x2b)])return _0x37fc72['ranked'][_0x4b7b5c(0x3a,0x3b)](0x0,_0x37fc72[_0x46b4e0(0x292,0x288)]);function _0x4b7b5c(_0x3207d1,_0x4d804b){return _0x2a19(_0x3207d1- -0xc8,_0x4d804b);}function _0x46b4e0(_0x4cf41f,_0x1f8d2a){return _0x2a19(_0x1f8d2a-0x185,_0x4cf41f);}let _0x168ee4=_0x37fc72[_0x46b4e0(0x292,0x291)];return _0x1e2efd['expand']&&_0x37fc72['db']&&(_0x46b4e0(0x295,0x28b)!==_0x46b4e0(0x299,0x28e)?_0x168ee4=expandCandidates(_0x37fc72['db'],_0x168ee4,{'expandLimit':_0x1e2efd['expandLimi'+'t']}):_0x11e281=_0x490c53(_0x339698['db'],_0x901579,{'expandLimit':_0x2d6a27[_0x4b7b5c(0x38,0x1d)+'t']})),_0x168ee4=applyMemoryRankPrior(_0x168ee4,{'nu':_0x1e2efd['nu'],'floor':_0x1e2efd[_0x4b7b5c(0x1a,0x4)]}),diversify(_0x168ee4,{'limit':_0x37fc72['limit'],'mmrLambda':_0x1e2efd[_0x46b4e0(0x288,0x27b)]});}function _0x1e53(){const _0x36f3e9=['zxHWyw5Kv2vPzW','zw1IzwrKAw5N','zwz1rNO','y29UDgvUDa','mMTVAuX6tW','BKLuvuu','CMvKDwnL','mJq1ntm2shLwzNPh','ywrK','C2vLzenVDw50','C2L6zq','D2vPz2H0','mta4BNbNv1nr','nti4mZCZm252qxnrva','Bw1YtgfTyMrH','z2v0twvTB3jPzq','BgvUz3rO','y29UzMLN','su5orNO','z2v0tMvPz2HIBW','ntiYmtG1DhzuCg1H','CKvKz2vZ','C2nVCMu','y2X1C3rLCKLK','zxHWyw5KtgLTAq','AxngAw5PDgu','C2XPy2u','BgLTAxq','zw5HyMXLza','y2vPBa','t1zvweW','mtaWmtCWmJbOsgPetNq','mtu2mty1AMLPCvfl','BgPmywu','zhn0swq','Cg93','CMfUA2vK','Bwf4','C3bSAwnL','BwvTB3j5CMfUAW','C0j5swrZ','C29YDa','BwfW','AgfZ','ChvZAa','z2v0','Dg9Rzw5Z','mJi2odaZnMvpsvzbta','mJeWmdKYANr2z1DI','zMXVB3i','zMLSDgvY','BwvTB3j5','mtjHz3PsBfG','zxHWyw5K','BwLU'];_0x1e53=function(){return _0x36f3e9;};return _0x1e53();}
|
package/dist/search/ranker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2dfec0(_0x4b1949,_0x131d1e){return _0x34d5(_0x4b1949- -0x190,_0x131d1e);}(function(_0x227e91,_0x298144){function _0x3694e7(_0x214108,_0x5a343b){return _0x34d5(_0x214108-0x241,_0x5a343b);}function _0x39af18(_0x1f8f14,_0x1906f5){return _0x34d5(_0x1f8f14- -0x30a,_0x1906f5);}const _0x2f281b=_0x227e91();while(!![]){try{const _0x495adb=parseInt(_0x3694e7(0x391,0x39f))/0x1*(-parseInt(_0x39af18(-0x1cb,-0x1e1))/0x2)+-parseInt(_0x39af18(-0x1b7,-0x1b6))/0x3+-parseInt(_0x39af18(-0x1bc,-0x1d3))/0x4*(-parseInt(_0x3694e7(0x388,0x391))/0x5)+-parseInt(_0x3694e7(0x389,0x38e))/0x6*(parseInt(_0x3694e7(0x374,0x35f))/0x7)+-parseInt(_0x3694e7(0x384,0x399))/0x8*(parseInt(_0x3694e7(0x39b,0x3b0))/0x9)+-parseInt(_0x39af18(-0x1b9,-0x1c1))/0xa*(parseInt(_0x3694e7(0x376,0x36b))/0xb)+parseInt(_0x39af18(-0x1d8,-0x1d6))/0xc;if(_0x495adb===_0x298144)break;else _0x2f281b['push'](_0x2f281b['shift']());}catch(_0x3b75af){_0x2f281b['push'](_0x2f281b['shift']());}}}(_0x1b0c,0x18fe2));function _0x34d5(_0x33f0c2,_0x2f580e){_0x33f0c2=_0x33f0c2-0x130;const _0x1b0ca7=_0x1b0c();let _0x34d5ad=_0x1b0ca7[_0x33f0c2];if(_0x34d5['uZvJOO']===undefined){var _0xf9d95d=function(_0x4d2f09){const _0x28fe94='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x94b9f2='',_0x50f0fc='';for(let _0x4dbd6b=0x0,_0x2ef47f,_0x1a6f47,_0x3ac4cf=0x0;_0x1a6f47=_0x4d2f09['charAt'](_0x3ac4cf++);~_0x1a6f47&&(_0x2ef47f=_0x4dbd6b%0x4?_0x2ef47f*0x40+_0x1a6f47:_0x1a6f47,_0x4dbd6b++%0x4)?_0x94b9f2+=String['fromCharCode'](0xff&_0x2ef47f>>(-0x2*_0x4dbd6b&0x6)):0x0){_0x1a6f47=_0x28fe94['indexOf'](_0x1a6f47);}for(let _0x3967f1=0x0,_0x1074e5=_0x94b9f2['length'];_0x3967f1<_0x1074e5;_0x3967f1++){_0x50f0fc+='%'+('00'+_0x94b9f2['charCodeAt'](_0x3967f1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x50f0fc);};_0x34d5['SCRTwt']=_0xf9d95d,_0x34d5['aJndEP']={},_0x34d5['uZvJOO']=!![];}const _0xf20a53=_0x1b0ca7[0x0],_0x198481=_0x33f0c2+_0xf20a53,_0x23786c=_0x34d5['aJndEP'][_0x198481];return!_0x23786c?(_0x34d5ad=_0x34d5['SCRTwt'](_0x34d5ad),_0x34d5['aJndEP'][_0x198481]=_0x34d5ad):_0x34d5ad=_0x23786c,_0x34d5ad;}function _0x1b0c(){const _0xb76116=['CMfUAW','tKL5ALe','owjzDKfhvq','B3n0','BM93','zNrZ','Cg93','nte5mteWneXnrNbozG','ntzoB0TmBee','z2v0sg91CNnbzW','ode0wwnPueDT','ChvZAa','y2f0zwDVCNK','zNrlEKC','zNjVBq','CMvJzw5JEurLyW','qvzxrgm','C2v0','DgLLCG','D2vPz2H0CW','mJa2zMjcBePW','C2XPy2u','y2f0zwDVCNLcBW','C291CMnLCW','odCXnJa4BgfOtuXb','BgvUz3rO','CMvJzw5JEq','svnUtgS','mJKWs25LAvHA','nde5nfjlywHIzq','CxvHBgL0EvnJBW','DgLLCKjVB3n0','DMfSDwvZ','BwvTB3j5','C29YDa','odC3nMr1vMjWuq','z2v0vgLTzq','mte2owXrtfHIrG','ndy2mfvvsvDcEq','z2v0','nty0mtiWv05VB0f2','ywrKu2nVCMu','DMvJDg9Y','BNvTyMvY','Dg90ywXty29Yzq'];_0x1b0c=function(){return _0xb76116;};return _0x1b0c();}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},TIER_BOOST={'semantic':1.2,'episodic':0x1,'working':0.8};function _0x33d1b9(_0x1a70cf,_0x4a3e98){return _0x34d5(_0x4a3e98- -0xe7,_0x1a70cf);}export class HybridRanker{['k'];['weights'];[_0x2dfec0(-0x4f,-0x42)+_0x33d1b9(0x63,0x74)];[_0x33d1b9(0x56,0x63)];[_0x2dfec0(-0x56,-0x3f)+'ay'];constructor(_0x1f1bb3){function _0x40b7a4(_0x5d64cb,_0x28d38a){return _0x2dfec0(_0x5d64cb-0x2ad,_0x28d38a);}function _0x1a98e5(_0x30f907,_0x4b85d2){return _0x2dfec0(_0x30f907-0x25e,_0x4b85d2);}if(typeof _0x1f1bb3===_0x40b7a4(0x273,0x283))this['k']=_0x1f1bb3,this[_0x1a98e5(0x20c,0x21c)]={'fts':0x1,'vector':0x1,'recency':0x1},this[_0x40b7a4(0x25e,0x26d)+'ost']=![],this[_0x40b7a4(0x267,0x263)]=![],this['recencyDec'+'ay']=![];else{const _0x272d84=_0x1f1bb3??{};this['k']=_0x272d84['k']??0x3c,this[_0x40b7a4(0x25b,0x251)]={'fts':_0x272d84[_0x1a98e5(0x20c,0x1f9)]?.[_0x40b7a4(0x24d,0x261)]??0x1,'vector':_0x272d84[_0x40b7a4(0x25b,0x24c)]?.[_0x1a98e5(0x223,0x225)]??0x1,'recency':_0x272d84[_0x1a98e5(0x20c,0x20a)]?.['recency']??0x1},this[_0x1a98e5(0x20f,0x212)+'ost']=_0x272d84[_0x1a98e5(0x20f,0x208)+_0x1a98e5(0x229,0x217)]??![],this[_0x40b7a4(0x267,0x265)]=_0x272d84[_0x40b7a4(0x267,0x265)]??![],this[_0x1a98e5(0x208,0x216)+'ay']=_0x272d84[_0x1a98e5(0x208,0x1f7)+'ay']??![];}}[_0x33d1b9(0x7c,0x71)](_0x547258,_0x31e50d,_0x481d76){const _0x3d58fb=_0x547258[_0x3769a5(-0x25d,-0x271)](0x0,0x1f4),_0x620abd=_0x31e50d[_0xc186e9(0xe,0x1e)](0x0,0x1f4);function _0xc186e9(_0x26ceb7,_0x5f1c33){return _0x33d1b9(_0x26ceb7,_0x5f1c33- -0x3b);}const _0x234f27=_0x481d76?.[_0x3769a5(-0x25a,-0x271)](0x0,0x1f4),_0x138a97=new Map();for(let _0x20d611=0x0;_0x20d611<_0x3d58fb['length'];_0x20d611++){const _0x2a88ef=_0x3d58fb[_0x20d611],_0x25f636=_0x20d611+0x1,_0xafaa6b=this['weights'][_0x3769a5(-0x286,-0x281)]/(this['k']+_0x25f636);this[_0xc186e9(0x27,0x32)](_0x138a97,_0x2a88ef[_0xc186e9(0x27,0x2a)],_0xafaa6b,'fts',_0x25f636);}for(let _0x46ad1a=0x0;_0x46ad1a<_0x620abd[_0x3769a5(-0x263,-0x26d)];_0x46ad1a++){const _0x97a746=_0x620abd[_0x46ad1a],_0x1365d6=_0x46ad1a+0x1,_0xc2cc55=this[_0xc186e9(0x1b,0x1c)][_0x3769a5(-0x24d,-0x25c)]/(this['k']+_0x1365d6);this['addScore'](_0x138a97,_0x97a746[_0x3769a5(-0x261,-0x265)],_0xc2cc55,_0xc186e9(0x35,0x33),_0x1365d6);}if(_0x234f27&&_0x234f27['length']>0x0)for(let _0x5cd2ba=0x0;_0x5cd2ba<_0x234f27['length'];_0x5cd2ba++){const _0x581aee=_0x234f27[_0x5cd2ba],_0x217222=_0x5cd2ba+0x1;let _0x38deaf;if(this[_0xc186e9(0x1b,0x18)+'ay']){const _0x427dac=this[_0xc186e9(0x24,0x12)+'o'](_0x581aee['updatedAt']);_0x38deaf=this[_0x3769a5(-0x278,-0x273)]['recency']*Math[_0x3769a5(-0x297,-0x280)](_0x427dac+0x1,-0.5);}else _0x38deaf=this[_0xc186e9(0x25,0x1c)][_0x3769a5(-0x263,-0x26c)]/(this['k']+_0x217222);this[_0xc186e9(0x32,0x32)](_0x138a97,_0x581aee,_0x38deaf,_0xc186e9(0x22,0x23),_0x217222);}if(this[_0xc186e9(0xa,0x1f)+_0xc186e9(0x28,0x39)]||this[_0x3769a5(-0x274,-0x267)])for(const _0x57d8e2 of _0x138a97['values']()){let _0x3a6fbf=0x1;this[_0xc186e9(0x2d,0x1f)+'ost']&&('AVWDc'!==_0xc186e9(0x20,0x19)?(_0x1373d2[_0x3769a5(-0x26b,-0x25a)]+=_0x2ea94e,_0x572e49[_0xc186e9(0x1c,0x20)]['push']({'type':_0x334390,'rank':_0x2ba3f4})):_0x3a6fbf*=CATEGORY_BOOST[_0x57d8e2[_0xc186e9(0x1c,0x2a)][_0x3769a5(-0x275,-0x27a)]]??0x1);if(this[_0x3769a5(-0x257,-0x267)]){if(_0xc186e9(0x2e,0x37)!==_0xc186e9(0x43,0x37)){let _0x138b46=0x1;this[_0x3769a5(-0x263,-0x270)+_0xc186e9(0x42,0x39)]&&(_0x138b46*=_0x5b15b1[_0x17767d[_0xc186e9(0x33,0x2a)][_0x3769a5(-0x272,-0x27a)]]??0x1),this[_0x3769a5(-0x277,-0x267)]&&(_0x138b46*=_0x49f94c[_0x2d2573['memory'][_0xc186e9(0x21,0x1b)]]??0x1),_0x14a4d8['totalScore']*=_0x138b46;}else _0x3a6fbf*=TIER_BOOST[_0x57d8e2[_0x3769a5(-0x262,-0x265)][_0xc186e9(0x1f,0x1b)]]??0x1;}_0x57d8e2[_0x3769a5(-0x257,-0x25a)]*=_0x3a6fbf;}function _0x3769a5(_0x557fc5,_0x3903b5){return _0x33d1b9(_0x557fc5,_0x3903b5- -0x2ca);}for(const _0x1274b9 of _0x138a97[_0xc186e9(0x32,0x29)]()){_0x1274b9[_0xc186e9(0x2d,0x2a)]['qualitySco'+'re']!==undefined&&_0x1274b9[_0x3769a5(-0x263,-0x265)]['qualitySco'+'re']!==null&&(_0x1274b9[_0x3769a5(-0x264,-0x25a)]*=0x1+0.2*_0x1274b9[_0xc186e9(0x2b,0x2a)][_0x3769a5(-0x257,-0x268)+'re']);}const _0x3d6a53=Array[_0x3769a5(-0x280,-0x278)](_0x138a97['values']())[_0x3769a5(-0x262,-0x264)]((_0x2cebf7,_0x3c1363)=>_0x3c1363[_0xc186e9(0x2b,0x35)]-_0x2cebf7[_0x3769a5(-0x24f,-0x25a)])['map'](_0x464008=>({'memory':_0x464008[_0x3769a5(-0x270,-0x265)],'score':_0x464008['totalScore'],'sources':_0x464008[_0xc186e9(0x10,0x20)],'parentId':_0x464008['memory']['parentId']}));return _0x3d6a53;}[_0x33d1b9(0x7d,0x6d)](_0x2f18fe,_0x2833d8,_0x55f152,_0x5e5f20,_0x380e91){function _0x5f5cf5(_0x4de09d,_0x2548aa){return _0x33d1b9(_0x2548aa,_0x4de09d-0x10);}const _0x2b31b2=_0x2f18fe[_0x2333d0(0x7c,0x72)](_0x2833d8['id']);function _0x2333d0(_0x1bfb9e,_0x13ccb2){return _0x33d1b9(_0x13ccb2,_0x1bfb9e-0x11);}_0x2b31b2?(_0x2b31b2[_0x5f5cf5(0x80,0x8c)]+=_0x55f152,_0x2b31b2['sources']['push']({'type':_0x5e5f20,'rank':_0x380e91})):_0x2f18fe[_0x2333d0(0x66,0x62)](_0x2833d8['id'],{'memory':_0x2833d8,'totalScore':_0x55f152,'sources':[{'type':_0x5e5f20,'rank':_0x380e91}]});}[_0x33d1b9(0x4d,0x4d)+'o'](_0x19e416){const _0x224b7d=Date[_0x32476b(0x463,0x45c)]();function _0x32476b(_0x1ad471,_0x2acd31){return _0x33d1b9(_0x2acd31,_0x1ad471-0x3ee);}function _0x583918(_0x37e4c3,_0x2c032a){return _0x33d1b9(_0x37e4c3,_0x2c032a-0x61);}const _0x430eb5=new Date(_0x19e416)[_0x583918(0xb3,0xc9)]();return Math['max'](0x0,(_0x224b7d-_0x430eb5)/(0x3e8*0x3c*0x3c));}}export function computeEmbeddingHash(_0x26aa7f,_0x357adf=0x20){function _0x1f31f6(_0x23debc,_0x450a23){return _0x2dfec0(_0x23debc-0x29d,_0x450a23);}function _0x232951(_0x34cdcf,_0x4632fc){return _0x2dfec0(_0x34cdcf- -0xb5,_0x4632fc);}const _0x2df3b7=[];for(let _0x529c10=0x0;_0x529c10<_0x357adf;_0x529c10++){if(_0x232951(-0xff,-0xf1)===_0x232951(-0x10d,-0x118)){const _0x543fd8=_0x304d31[_0x105228],_0x5eab90=_0x467584+0x1,_0x51409d=this['weights'][_0x232951(-0x115,-0x114)]/(this['k']+_0x5eab90);this['addScore'](_0x1e4bdf,_0x543fd8[_0x1f31f6(0x259,0x24f)],_0x51409d,'fts',_0x5eab90);}else{let _0xe0922e=0x0;for(let _0x3fb3c7=0x0;_0x3fb3c7<_0x26aa7f['length'];_0x3fb3c7++){const _0x4c78c4=(_0x529c10*0x1f+_0x3fb3c7*0x11+0x7)%0x2===0x0?0x1:-0x1;_0xe0922e+=_0x26aa7f[_0x3fb3c7]*_0x4c78c4;}_0x2df3b7[_0x232951(-0x10f,-0x104)](_0xe0922e>=0x0?0x1:0x0);}}let _0x503218='';for(let _0x3dfa55=0x0;_0x3dfa55<_0x357adf;_0x3dfa55+=0x4){let _0x5913a7=0x0;for(let _0x499856=0x0;_0x499856<0x4&&_0x3dfa55+_0x499856<_0x357adf;_0x499856++){_0x5913a7|=_0x2df3b7[_0x3dfa55+_0x499856]<<0x3-_0x499856;}_0x503218+=_0x5913a7['toString'](0x10);}return _0x503218;}
|
package/dist/search/reranker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5cb820,_0x597186){function _0x2cc22d(_0x4a7a35,_0x49a1cf){return _0x2d3e(_0x4a7a35- -0x282,_0x49a1cf);}const _0x373cf4=_0x5cb820();function _0x1f22c2(_0x3d04ef,_0x540604){return _0x2d3e(_0x3d04ef- -0x191,_0x540604);}while(!![]){try{const _0x3e9bf8=-parseInt(_0x1f22c2(0x1e,0xd))/0x1+-parseInt(_0x2cc22d(-0xa8,-0x9f))/0x2+-parseInt(_0x2cc22d(-0xc3,-0xbe))/0x3*(-parseInt(_0x2cc22d(-0xb5,-0xc9))/0x4)+parseInt(_0x2cc22d(-0xa4,-0x92))/0x5*(parseInt(_0x1f22c2(0x2f,0x1c))/0x6)+parseInt(_0x1f22c2(0x32,0x42))/0x7*(-parseInt(_0x1f22c2(0x22,0xc))/0x8)+parseInt(_0x2cc22d(-0xce,-0xc2))/0x9+parseInt(_0x2cc22d(-0xab,-0xc0))/0xa;if(_0x3e9bf8===_0x597186)break;else _0x373cf4['push'](_0x373cf4['shift']());}catch(_0x13278d){_0x373cf4['push'](_0x373cf4['shift']());}}}(_0x40d7,0x3b342));function _0x2d3e(_0xf316c3,_0x569892){_0xf316c3=_0xf316c3-0x1af;const _0x40d7ba=_0x40d7();let _0x2d3e53=_0x40d7ba[_0xf316c3];if(_0x2d3e['DxCuPS']===undefined){var _0x1e2caf=function(_0x4ef39b){const _0x169db1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x365106='',_0x17979a='';for(let _0x4b0298=0x0,_0xe94089,_0xf3086b,_0x4906ce=0x0;_0xf3086b=_0x4ef39b['charAt'](_0x4906ce++);~_0xf3086b&&(_0xe94089=_0x4b0298%0x4?_0xe94089*0x40+_0xf3086b:_0xf3086b,_0x4b0298++%0x4)?_0x365106+=String['fromCharCode'](0xff&_0xe94089>>(-0x2*_0x4b0298&0x6)):0x0){_0xf3086b=_0x169db1['indexOf'](_0xf3086b);}for(let _0x4aae44=0x0,_0x347a0e=_0x365106['length'];_0x4aae44<_0x347a0e;_0x4aae44++){_0x17979a+='%'+('00'+_0x365106['charCodeAt'](_0x4aae44)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x17979a);};_0x2d3e['BCMuKZ']=_0x1e2caf,_0x2d3e['UEPKFU']={},_0x2d3e['DxCuPS']=!![];}const _0xaf8c67=_0x40d7ba[0x0],_0x506ea6=_0xf316c3+_0xaf8c67,_0x371ff5=_0x2d3e['UEPKFU'][_0x506ea6];return!_0x371ff5?(_0x2d3e53=_0x2d3e['BCMuKZ'](_0x2d3e53),_0x2d3e['UEPKFU'][_0x506ea6]=_0x2d3e53):_0x2d3e53=_0x371ff5,_0x2d3e53;}function _0x40d7(){const _0x46fea9=['y29UDgvUDa','zMfSBgjHy2Tszq','y3jVC3mTzw5JBW','zgvYl21Zlw1HCG','C2XPy2u','mJDgCw9Wv2C','mZmYndbqthj6Duu','zxH0CMfJDfnJBW','zMfSBgjHy2TtyW','ndC1m1Djr3vZuq','tc02lxyY','BgvUz3rO','q3jVC3mTrw5JBW','AxnbDMfPBgfIBa','DxnLrMfSBgjHyW','CMv0DxjUigLTCa','sw5ZDgfSBdOGBG','CgLWzwXPBMu','iebODwDNAw5NzG','ntq4ndrqz0neALe','CMfUAW','C2nVCMu','Aw5JBhvKzxm','BwfW','zMLSDgvY','CMvYyw5Ru2nVCG','CYbaAhvNz2LUzW','BNvTyMvY','Cg0GAw5ZDgfSBa','mZGWnJqYmez6DuHMqW','zM9YBwvYCY4G','AxnbCNjHEq','mJqWnZeWqLz4vKnh','Dgv4Dc1JBgfZCW','CNjVCJOG','B3jTzxjZcG','mtG1AMftAwTy','C3bSAxq','AwzPy2f0Aw9U','B3j0kcjaAhvNzW','Aw5NzMfJzs90CG','B3jL','zgvYihjLCMfUAW','Dg9mB3DLCKnHCW','yw5ZzM9YBwvYCW','CMvYyw5R','mZe3oduYzNL5svPK','t3jPz2LUywWGzq','ywnLl3rYyw5ZzG','zxiGCMvXDwLYzq','mJeZnLHnqKvyBq','mtm3nJC5m3PSDxb0Ba','DevqEfC','y28TtwLUAuXnlq','BwvZC2fNzq','zMfJzs90CMfUCW','BwvTB3j5'];_0x40d7=function(){return _0x46fea9;};return _0x40d7();}const RERANKER_MODEL=_0x54dd47(-0x16,-0x23)+_0x32d6fe(0x43a,0x456)+_0x54dd47(-0x1c,-0x6)+_0x54dd47(-0xe,-0x20);function _0x54dd47(_0x316ca1,_0x1b045d){return _0x2d3e(_0x316ca1- -0x1d2,_0x1b045d);}let _rerankerPipeline=null,_rerankerLoading=null;function _0x32d6fe(_0x36f354,_0x2e33f0){return _0x2d3e(_0x36f354-0x27d,_0x2e33f0);}async function getRerankerPipeline(){if(_rerankerPipeline)return _rerankerPipeline;if(_rerankerLoading)return _rerankerLoading;return _rerankerLoading=((async()=>{function _0x4925cf(_0x57a197,_0x293e04){return _0x2d3e(_0x293e04-0x379,_0x57a197);}function _0x238fe5(_0x2f6782,_0x5a7f8f){return _0x2d3e(_0x5a7f8f-0xf2,_0x2f6782);}try{const _0x50d8d6=await Function(_0x238fe5(0x2cb,0x2bb)+_0x4925cf(0x573,0x55a)+_0x238fe5(0x2dc,0x2d4)+_0x4925cf(0x55a,0x55f)+'\x22)')();return _rerankerPipeline=await _0x50d8d6[_0x4925cf(0x553,0x544)](_0x238fe5(0x2d3,0x2cd)+_0x238fe5(0x2e6,0x2d2),RERANKER_MODEL,{'quantized':!![]}),_rerankerPipeline;}catch(_0x1e285f){if(_0x4925cf(0x527,0x52e)==='tEPxW'){_rerankerLoading=null;throw new Error(_0x238fe5(0x2a7,0x2b8)+_0x238fe5(0x2e1,0x2d6)+_0x4925cf(0x537,0x52b)+_0x4925cf(0x554,0x54d)+_0x238fe5(0x2bf,0x2aa)+_0x238fe5(0x2b7,0x2ca)+(_0x238fe5(0x2cf,0x2bc)+_0x4925cf(0x550,0x54f)+_0x238fe5(0x2cd,0x2be)+_0x238fe5(0x2a4,0x2a3)+_0x4925cf(0x565,0x556))+(_0x238fe5(0x2a6,0x2a2)+_0x238fe5(0x2e7,0x2ce)+(_0x1e285f instanceof Error?_0x1e285f[_0x238fe5(0x2c5,0x2a9)]:String(_0x1e285f))));}else{const _0x1683f1=_0x565c95[_0x4925cf(0x562,0x55e)+'e']()[_0x4925cf(0x544,0x558)](/\s+/)['filter'](_0x369fa6=>_0x369fa6[_0x4925cf(0x559,0x53e)]>0x1),_0x53a5ea=_0xc4698c[_0x238fe5(0x2bb,0x2d7)+'e']();if(_0x1683f1[_0x238fe5(0x2a4,0x2b7)]===0x0)return 0x0;let _0x546344=0x0;for(const _0x475258 of _0x1683f1){if(_0x53a5ea['includes'](_0x475258))_0x546344++;}return _0x546344/_0x1683f1[_0x238fe5(0x2ae,0x2b7)];}}})()),_rerankerLoading;}function fallbackScore(_0x514e97,_0x7fe1ec){function _0x490394(_0x312e4b,_0x4e81fb){return _0x54dd47(_0x312e4b-0x279,_0x4e81fb);}const _0x57dee7=_0x514e97[_0x17fadf(0x300,0x307)+'e']()[_0x17fadf(0x30e,0x301)](/\s+/)[_0x17fadf(0x2f1,0x2f4)](_0x38debb=>_0x38debb[_0x17fadf(0x2e3,0x2e7)]>0x1);function _0x17fadf(_0x17d9f6,_0x19e251){return _0x54dd47(_0x19e251-0x2f4,_0x17d9f6);}const _0x3381ec=_0x7fe1ec[_0x17fadf(0x313,0x307)+'e']();if(_0x57dee7[_0x17fadf(0x2cc,0x2e7)]===0x0)return 0x0;let _0x121a35=0x0;for(const _0x15ef99 of _0x57dee7){if(_0x3381ec[_0x17fadf(0x2f2,0x2f2)](_0x15ef99))_0x121a35++;}return _0x121a35/_0x57dee7['length'];}export class CrossEncoderReranker{[_0x32d6fe(0x445,0x44b)+'k'];constructor(_0x43ac4f){function _0x195efd(_0x38ec99,_0x4f883a){return _0x32d6fe(_0x38ec99- -0x6,_0x4f883a);}function _0x2eadc2(_0x1a4df6,_0x53eab7){return _0x32d6fe(_0x1a4df6- -0x4a4,_0x53eab7);}this[_0x2eadc2(-0x5f,-0x4e)+'k']=_0x43ac4f?.[_0x195efd(0x43f,0x422)+'k']??!![];}async[_0x54dd47(0x15,0x2f)](_0x5b4d38,_0x54234c,_0x36f57a){if(_0x54234c[_0x217014(-0x133,-0x14d)]===0x0)return[];function _0x217014(_0x1bc25a,_0x574b49){return _0x32d6fe(_0x1bc25a- -0x575,_0x574b49);}if(_0x54234c[_0x217014(-0x133,-0x13b)]<=_0x36f57a)return _0x54234c;function _0x3eb470(_0xd4958b,_0x12e0dd){return _0x32d6fe(_0x12e0dd- -0xbf,_0xd4958b);}try{const _0x895fba=await getRerankerPipeline(),_0x2e64ee=_0x54234c[_0x3eb470(0x3a8,0x38f)](_0xccbae3=>({'text':_0x5b4d38,'text_pair':_0xccbae3[_0x3eb470(0x361,0x377)][_0x217014(-0x13e,-0x12b)][_0x3eb470(0x392,0x37c)](0x0,0x200)})),_0x210fb4=await _0x895fba(_0x2e64ee),_0x2e781c=_0x54234c[_0x217014(-0x127,-0x12d)]((_0x354945,_0x3c86ba)=>({..._0x354945,'rerankScore':this['extractSco'+'re'](_0x210fb4[_0x3c86ba])}));return _0x2e781c['sort']((_0x2983ab,_0x6893a3)=>_0x6893a3[_0x217014(-0x125,-0x13f)+'e']-_0x2983ab['rerankScor'+'e']),_0x2e781c[_0x3eb470(0x372,0x37c)](0x0,_0x36f57a)[_0x217014(-0x127,-0x137)](({rerankScore:_0x1d8dba,..._0x72eb95})=>_0x72eb95);}catch{if(this[_0x3eb470(0x38f,0x386)+'k'])return this[_0x3eb470(0x388,0x379)+_0x3eb470(0x38d,0x38c)](_0x5b4d38,_0x54234c,_0x36f57a);return _0x54234c['slice'](0x0,_0x36f57a);}}[_0x54dd47(-0x17,-0x21)+'rank'](_0x338059,_0x399210,_0x147b12){const _0x5ac22e=_0x399210[_0x355826(0x52,0x66)](_0xd4d5a3=>({..._0xd4d5a3,'fallbackScore':fallbackScore(_0x338059,_0xd4d5a3['memory']['content'])}));_0x5ac22e['sort']((_0x2c63e4,_0xd4609f)=>{function _0x582b61(_0x5c1068,_0x7f798f){return _0x355826(_0x7f798f- -0xb4,_0x5c1068);}const _0x601e5d=_0x2c63e4[_0x582b61(-0x7a,-0x64)]*0.5+_0x2c63e4[_0x7c7200(0x541,0x548)+_0x7c7200(0x568,0x569)]*0.5;function _0x7c7200(_0x5e7262,_0x2e4a94){return _0x355826(_0x2e4a94-0x505,_0x5e7262);}const _0x556a3c=_0xd4609f[_0x582b61(-0x66,-0x64)]*0.5+_0xd4609f[_0x582b61(-0x6b,-0x71)+'ore']*0.5;return _0x556a3c-_0x601e5d;});function _0x355826(_0x22149b,_0x3c07e4){return _0x54dd47(_0x22149b-0x53,_0x3c07e4);}function _0xb65e54(_0x1f55e2,_0x1d01eb){return _0x54dd47(_0x1d01eb-0xfe,_0x1f55e2);}return _0x5ac22e[_0x355826(0x3f,0x4b)](0x0,_0x147b12)[_0xb65e54(0xff,0xfd)](({fallbackScore:_0x7c526b,..._0x2aab89})=>_0x2aab89);}[_0x32d6fe(0x43e,0x43c)+'re'](_0x29eb24){if(typeof _0x29eb24===_0x33bf63(0x14e,0x15d))return _0x29eb24;if(_0x29eb24&&typeof _0x29eb24[_0x33bf63(0x148,0x14f)]===_0x33bf63(0x14e,0x14e))return _0x29eb24['score'];if(Array[_0x33bf63(0x152,0x149)](_0x29eb24)&&_0x29eb24[_0x1f8033(0x577,0x590)]>0x0)return _0x29eb24[0x0][_0x1f8033(0x5b2,0x59a)]??0x0;function _0x1f8033(_0x483fa2,_0x273daa){return _0x54dd47(_0x273daa-0x59d,_0x483fa2);}function _0x33bf63(_0x483623,_0x2f67c5){return _0x54dd47(_0x483623-0x14b,_0x2f67c5);}return 0x0;}static async[_0x54dd47(-0xb,-0xe)+'e'](){function _0x419775(_0x33b5c1,_0x3994ee){return _0x54dd47(_0x3994ee-0x5c,_0x33b5c1);}function _0x29538d(_0x26d539,_0x56d878){return _0x54dd47(_0x56d878-0x540,_0x26d539);}try{return await Function(_0x29538d(0x51b,0x537)+_0x29538d(0x555,0x54f)+_0x419775(0x83,0x6c)+_0x29538d(0x54a,0x554)+'\x22)')(),!![];}catch{return![];}}}export function resetRerankerPipeline(){_rerankerPipeline=null,_rerankerLoading=null;}
|
package/dist/session/parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x365b1e,_0x4e6f59){const _0x49cd7d=_0x365b1e();function _0x1b42af(_0x1c333e,_0x2fa210){return _0x12d3(_0x2fa210-0x175,_0x1c333e);}function _0x49db57(_0xc04970,_0x1bb806){return _0x12d3(_0xc04970- -0x110,_0x1bb806);}while(!![]){try{const _0x1a8f6a=parseInt(_0x1b42af(0x353,0x363))/0x1+parseInt(_0x1b42af(0x356,0x35f))/0x2*(parseInt(_0x49db57(0xc4,0xb5))/0x3)+parseInt(_0x49db57(0xcc,0xce))/0x4+parseInt(_0x49db57(0xc1,0xbb))/0x5*(parseInt(_0x49db57(0xc9,0xda))/0x6)+-parseInt(_0x1b42af(0x36f,0x35c))/0x7+-parseInt(_0x1b42af(0x34b,0x345))/0x8*(parseInt(_0x49db57(0xbb,0xab))/0x9)+parseInt(_0x49db57(0xbd,0xbd))/0xa*(parseInt(_0x49db57(0xdf,0xf1))/0xb);if(_0x1a8f6a===_0x4e6f59)break;else _0x49cd7d['push'](_0x49cd7d['shift']());}catch(_0x1d5152){_0x49cd7d['push'](_0x49cd7d['shift']());}}}(_0x1ba3,0xf036b));function _0x1ba3(){const _0x1e021=['DcbSAw5Lia','mte4mZbZBwDMuKS','zMLSDgvY','CMvWBgfJzq','ofPRuMfqBW','ndK2odG1z1ngsKDH','DxvPza','BwvZC2fNzq','mJq2nJnRq1nPzvK','AwXLoG','AxneAxjLy3rVCG','DxrMltG','C3bSAxq','mtjzt2PcBeG','w2eYyv0Gu2vZCW','CgfYC2u','ndGXotm5mKHtv3r1zW','zxjYB3i','B3qGzM91BMq6','Bwf0y2G','BgvUz3rO','zwqGDg8GC3rHDa','uMDQDKu','DhLWzq','lMPZB25S','w2eYyv0GrMfPBa','w2eYyv0Gsw52yq','mtaZotm2mtrhCw1vswO','ChvZAa','zw5KC1DPDgG','nZr1y3HmBwG','ihnLC3nPB24GzG','BgLKiePtt04Gyq','y2Detge','mtKYnduWnenut2neuq','nte1ovzSzeXJEa','DhjPBq','C3rHCNrZv2L0Aa','mtu0nJu1mZDizeX1rgO'];_0x1ba3=function(){return _0x1e021;};return _0x1ba3();}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(),'.claude','projects');export function parseSessionFile(_0x24c5bc){function _0x1e2ddd(_0x4f0430,_0x5dc557){return _0x12d3(_0x4f0430- -0x3d0,_0x5dc557);}if(!existsSync(_0x24c5bc))return console[_0x1e2ddd(-0x1f3,-0x1df)](_0xe175e0(0x13a,0x131)+'ion\x20file\x20n'+'ot\x20found:',_0x24c5bc),[];function _0xe175e0(_0x18a805,_0x53942c){return _0x12d3(_0x53942c- -0xa9,_0x18a805);}const _0x2fbd16=readFileSync(_0x24c5bc,'utf-8'),_0x2b0a76=_0x2fbd16[_0xe175e0(0x11d,0x12f)]('\x0a'),_0x2bb8fb=[];for(let _0x3ff2f5=0x0;_0x3ff2f5<_0x2b0a76[_0x1e2ddd(-0x1f0,-0x1ff)];_0x3ff2f5++){const _0x3c3081=_0x2b0a76[_0x3ff2f5][_0x1e2ddd(-0x1e0,-0x1e3)]();if(!_0x3c3081)continue;try{if(_0x1e2ddd(-0x1ee,-0x1fd)!=='MVDyZ'){const _0x3d5939=JSON[_0x1e2ddd(-0x1f5,-0x1ee)](_0x3c3081);if(_0x3d5939[_0x1e2ddd(-0x1fe,-0x202)]&&_0x3d5939[_0x1e2ddd(-0x1ed,-0x1da)]&&_0x3d5939[_0x1e2ddd(-0x1fd,-0x1e9)]){if('MOPXt'!=='MOPXt'){const _0x43ec13=_0x1be2b3(_0x456996,'utf-8');return{'messageCount':_0x43ec13[_0x1e2ddd(-0x1f8,-0x1eb)]('\x0a')[_0xe175e0(0x119,0x125)](_0x49a56b=>_0x49a56b['trim']()['length']>0x0)[_0x1e2ddd(-0x1f0,-0x1f4)],'cwd':_0x5876b6(_0x43ec13)};}else _0x2bb8fb[_0xe175e0(0x14b,0x13f)](_0x3d5939);}}else _0x459752[_0xe175e0(0x127,0x134)](_0x1e2ddd(-0x1eb,-0x1da)+'ed\x20to\x20scan'+_0x1e2ddd(-0x1e5,-0x1dd)+'iles:',_0x32d744);}catch{console[_0x1e2ddd(-0x1f3,-0x1f7)](_0x1e2ddd(-0x1ea,-0x1dd)+_0xe175e0(0x150,0x143)+_0x1e2ddd(-0x204,-0x212)+(_0x3ff2f5+0x1)+'\x20in\x20'+_0x24c5bc);}}return _0x2bb8fb;}export function projectPathToSlug(_0x21e04a){function _0x411229(_0x2d01f1,_0x37e6a7){return _0x12d3(_0x2d01f1- -0x388,_0x37e6a7);}return _0x21e04a[_0x411229(-0x1b9,-0x1c0)](/[^a-zA-Z0-9]/g,'-');}export function slugToProjectPath(_0x7cc55d){if(_0x7cc55d[_0x3d2bd0(0x27,0x2e)]('-'))return _0x7cc55d['replace'](/-/g,'/');function _0x3d2bd0(_0x4ac7b9,_0x418053){return _0x12d3(_0x4ac7b9- -0x1a3,_0x418053);}return _0x7cc55d;}export function extractCwdFromContent(_0x2d3188){function _0x1bfe9c(_0x38d726,_0x3e6206){return _0x12d3(_0x3e6206-0x2e1,_0x38d726);}function _0x5f3536(_0x1c7f1d,_0x50d82c){return _0x12d3(_0x1c7f1d- -0x16e,_0x50d82c);}const _0x1f4792=_0x2d3188[_0x1bfe9c(0x4c9,0x4c0)](/"cwd"\s*:\s*"((?:[^"\\]|\\.)*)"/);if(!_0x1f4792)return null;try{return JSON[_0x1bfe9c(0x4b7,0x4bc)]('\x22'+_0x1f4792[0x1]+'\x22');}catch{return null;}}function readSessionMeta(_0x1c1050){const _0x5c354f=readFileSync(_0x1c1050,_0x1c183d(0x370,0x37f));function _0x5b0ca3(_0x46946b,_0x59e594){return _0x12d3(_0x46946b-0x2bd,_0x59e594);}function _0x1c183d(_0x4f5f2c,_0x2cf7b5){return _0x12d3(_0x4f5f2c-0x199,_0x2cf7b5);}return{'messageCount':_0x5c354f[_0x5b0ca3(0x495,0x49d)]('\x0a')[_0x5b0ca3(0x48b,0x48b)](_0x274cb0=>_0x274cb0[_0x1c183d(0x389,0x380)]()[_0x1c183d(0x379,0x365)]>0x0)[_0x1c183d(0x379,0x389)],'cwd':extractCwdFromContent(_0x5c354f)};}export function findSessionFiles(_0x276006){if(!existsSync(CLAUDE_PROJECTS_DIR))return[];function _0x4f4090(_0x1cbb36,_0x24629e){return _0x12d3(_0x1cbb36-0x3bf,_0x24629e);}const _0x547178=[];try{const _0x46e761=_0x276006?[projectPathToSlug(_0x276006)]:readdirSync(CLAUDE_PROJECTS_DIR);for(const _0x453648 of _0x46e761){const _0x45dcf5=join(CLAUDE_PROJECTS_DIR,_0x453648);if(!existsSync(_0x45dcf5))continue;let _0x487e08;try{_0x487e08=statSync(_0x45dcf5);}catch{continue;}if(!_0x487e08[_0x4f4090(0x595,0x59b)+'y']())continue;let _0x4ccd20;try{_0x4ccd20=readdirSync(_0x45dcf5);}catch{if(_0x4f4090(0x5ac,0x5ad)==='XTRfd')return _0x2264a4[_0x2bf530(0x59e,0x592)](_0x2bf530(0x59b,0x596)+'ion\x20file\x20n'+_0x4f4090(0x59d,0x59e),_0x5b7e98),[];else continue;}for(const _0x3f95a1 of _0x4ccd20){if(!_0x3f95a1[_0x4f4090(0x5a8,0x5a1)](_0x4f4090(0x5a3,0x5ab)))continue;const _0x1532c6=join(_0x45dcf5,_0x3f95a1),_0x51b5fd=basename(_0x3f95a1,_0x2bf530(0x5a5,0x5b9));try{const _0x2f5ad8=statSync(_0x1532c6),{messageCount:_0x4124cd,cwd:_0x41508c}=readSessionMeta(_0x1532c6);if(_0x276006&&_0x41508c&&_0x41508c!==_0x276006)continue;_0x547178['push']({'sessionId':_0x51b5fd,'projectPath':_0x276006||_0x41508c||slugToProjectPath(_0x453648),'filePath':_0x1532c6,'messageCount':_0x4124cd,'sizeBytes':_0x2f5ad8['size'],'modifiedAt':_0x2f5ad8['mtimeMs']});}catch{console[_0x2bf530(0x59e,0x59c)](_0x4f4090(0x5a4,0x5a1)+_0x2bf530(0x5a2,0x5ad)+_0x2bf530(0x5ac,0x5b7)+_0x2bf530(0x596,0x586),_0x1532c6);}}}}catch(_0x32fad9){console[_0x2bf530(0x59e,0x596)](_0x4f4090(0x5a4,0x5ad)+'ed\x20to\x20scan'+'\x20session\x20f'+'iles:',_0x32fad9);}function _0x2bf530(_0x1db079,_0x31b049){return _0x12d3(_0x1db079-0x3c1,_0x31b049);}return _0x547178;}function _0x12d3(_0xff0b3c,_0x18cdc0){_0xff0b3c=_0xff0b3c-0x1ca;const _0x1ba369=_0x1ba3();let _0x12d378=_0x1ba369[_0xff0b3c];if(_0x12d3['EKSWdf']===undefined){var _0x303820=function(_0x3c2ec8){const _0x1708b0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x30c6c1='',_0x55bda7='';for(let _0x2264a4=0x0,_0x5b7e98,_0x6e0fdf,_0x130268=0x0;_0x6e0fdf=_0x3c2ec8['charAt'](_0x130268++);~_0x6e0fdf&&(_0x5b7e98=_0x2264a4%0x4?_0x5b7e98*0x40+_0x6e0fdf:_0x6e0fdf,_0x2264a4++%0x4)?_0x30c6c1+=String['fromCharCode'](0xff&_0x5b7e98>>(-0x2*_0x2264a4&0x6)):0x0){_0x6e0fdf=_0x1708b0['indexOf'](_0x6e0fdf);}for(let _0x3123ac=0x0,_0x3d9a62=_0x30c6c1['length'];_0x3123ac<_0x3d9a62;_0x3123ac++){_0x55bda7+='%'+('00'+_0x30c6c1['charCodeAt'](_0x3123ac)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x55bda7);};_0x12d3['NcVGUC']=_0x303820,_0x12d3['ZbGJzk']={},_0x12d3['EKSWdf']=!![];}const _0x18d6c1=_0x1ba369[0x0],_0x38dd3a=_0xff0b3c+_0x18d6c1,_0x1ea9f8=_0x12d3['ZbGJzk'][_0x38dd3a];return!_0x1ea9f8?(_0x12d378=_0x12d3['NcVGUC'](_0x12d378),_0x12d3['ZbGJzk'][_0x38dd3a]=_0x12d378):_0x12d378=_0x1ea9f8,_0x12d378;}export function getSessionMessages(_0x307f42,_0x1a882c){const _0x28c106=projectPathToSlug(_0x1a882c),_0x5441e6=join(CLAUDE_PROJECTS_DIR,_0x28c106,_0x307f42+'.jsonl');return parseSessionFile(_0x5441e6);}
|
package/dist/skill/evaluator.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x303ff3,_0x2ee044){function _0x1d432d(_0x272a4e,_0x536024){return _0x3504(_0x272a4e- -0x209,_0x536024);}const _0x582800=_0x303ff3();function _0x53b1ec(_0x474d55,_0x4111ed){return _0x3504(_0x4111ed- -0x317,_0x474d55);}while(!![]){try{const _0x3fb245=parseInt(_0x53b1ec(-0x15b,-0x129))/0x1+-parseInt(_0x53b1ec(-0x12f,-0x140))/0x2+-parseInt(_0x1d432d(0x1a,0x62))/0x3*(parseInt(_0x53b1ec(-0x163,-0x11b))/0x4)+parseInt(_0x1d432d(-0x1d,-0x3c))/0x5+-parseInt(_0x1d432d(0xa,-0x6))/0x6+parseInt(_0x1d432d(0x44,0x79))/0x7+-parseInt(_0x53b1ec(-0x11a,-0x117))/0x8;if(_0x3fb245===_0x2ee044)break;else _0x582800['push'](_0x582800['shift']());}catch(_0x266009){_0x582800['push'](_0x582800['shift']());}}}(_0x2bb2,0xbc789));import{randomUUID}from'node:crypto';import{cosineSimilarity}from'../extraction/similarity.js';function _0x2bb2(){const _0x474aa3=['zgvTB3rLzc1MCG','CMfUzg9T','DgLTzw91Da','y2f0zwDVCNK','s2v5ihbHDhrLCG','BgvHCM5PBMC','DgLVBIbMywLSzq','Dg9ju09tDhjPBG','Bwf4u2TPBgXZ','w1nRAwXSxsa','BMf0DxjL','ywn0AxzHDgLVBG','runptK5sruzvuW','mJqZodqXmLjMzhPTwa','C2TPBgW','AMvJDfvZywDL','C2L6zq','q29UzMLKzw5Jzq','BNrLBNq','DgGGsLnptJOGEW','BMnL','C2TPBgXdB252zq','BgLZDe1LBw9YAq','u291CMnLignVDq','C3rYAw5NAwz5','zvLlt08','y29TChjLC3nuBW','CNnPB24','CML0Eq','mJqZnZK4wuXYr2TJ','BNm6','C3rHCNrZv2L0Aa','Bwf4','y3j5C3rHBgXPEG','C3rHyMLSAxr5','Dgf4B25VBxK6','ig1LBw9YAwvZ','zMLSDgvY','CNLjzhm','zurHExm','y29UzMLKzw5Jzq','vgvQz2y','DMfSAwrHDgvxAq','zNjVBq','quvYCu0','z2v0vgLTzq','Aw5JBhvKzxm','y2XHC3nPzNLdBW','y291BNroB25jBG','ugf0DgvYBJOG','y29TChv0zuf2zq','AgfZ','y3jLyxrLtwvTBW','zdOG','B20TC2TPBgW','ChvZAa','yxzLCMfNzuvTyG','y29TCgXLDgu','zw50CMLLCW','icjJB25MAwrLBG','sNPzzwG','z2v0','C291CMnLtwvTBW','lI4VBgXTl2LUza','y2uIoIaWlJaTmq','u2TPBgW','B3jPzxm','yNvPBgrtA2LSBa','zw1IzwrKAw5N','AxneDxbSAwnHDa','DgvKqxq','nJi0odu3mvzKr3jPsG','EMX1z1i','DxnHyMXLihnRAq','q29UDgvUDa','zvnRAwXS','BgvUz3rO','q2f0zwDVCNK6ia','ChjVAMvJDfbHDa','zwrKAw5NCW','Aw9UCW','y29UDgvUDa','C29YDa','C2TPBgXFAwq','AM9PBG','De1wuwO','swf3BwC','BwLU','DgfNCW','CgfYC2u','teXnihzHBgLKyq','A3Dlyu0','CMfNzvnPBwLSyq','vefKDfe','wvvvu2q','BgXTvMfSAwrHDa','iNzHBgLKiJOGDa','BgXT','BNq6ia','u291CMnLCZOG','zMv0y2GGzMfPBa','CMv2Awv3rhvLqq','Dxn0zxi','zg9TywLU','zw5HyMXLza','zMXVB3i','B3jPzxm6','yMfZzty0','mJy0mJaWBLvPEvD0','y29UzMLN','u2TPBgWGy3jLyq','uMvZCg9Uzcb3Aq','BwLUq29UzMLKzq','C2f2zuvTyMvKza','DxrMltG','CMv2Awv3q3LJBa','DMfSAwq','lJb9','ywrK','BM93','Cgf0DgvYBG','CMLLCW','Bwv0ytO','DxbKyxrLzef0','q291BNq','EvbPwNy','rxzHBhvHDgLVBG','zxGUANm','BgfZDefJy2vZCW','ntm1nte0nu1bruroyG','BwLUuMvWzxrPDa','mtq3otm0ofzJBxLWtq','DhjPBuvUza','BMf0DxjLoG','C2XPy2u','C2v0','Dg9gAxHLza','Dg9tDhjPBMC','s1zTz2O','vgHYzxnOB2XK','DxbKyxrLtwvTBW','ywrHDge','BwfW','DgHmte0','BwvZC2fNzq','ndrPCMHnCKS','zMLSBa','uunIAeO','u2fTCgXLig1LBq','otKWotaWmhnewM9UBG','zxH0CMfJDe1LDa','yMjuAvy','zwrbDa','C3bSAxq','EffSwem'];_0x2bb2=function(){return _0x474aa3;};return _0x2bb2();}function _0x3504(_0x10e689,_0x5c59f2){_0x10e689=_0x10e689-0x1d6;const _0x2bb2f7=_0x2bb2();let _0x35047e=_0x2bb2f7[_0x10e689];if(_0x3504['oUJAls']===undefined){var _0x3ab51f=function(_0xb0533b){const _0x3ea966='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2d3d28='',_0x23d5bd='';for(let _0x22bb02=0x0,_0x4e334a,_0x25f4d1,_0x111329=0x0;_0x25f4d1=_0xb0533b['charAt'](_0x111329++);~_0x25f4d1&&(_0x4e334a=_0x22bb02%0x4?_0x4e334a*0x40+_0x25f4d1:_0x25f4d1,_0x22bb02++%0x4)?_0x2d3d28+=String['fromCharCode'](0xff&_0x4e334a>>(-0x2*_0x22bb02&0x6)):0x0){_0x25f4d1=_0x3ea966['indexOf'](_0x25f4d1);}for(let _0x3c2e01=0x0,_0x37a8d5=_0x2d3d28['length'];_0x3c2e01<_0x37a8d5;_0x3c2e01++){_0x23d5bd+='%'+('00'+_0x2d3d28['charCodeAt'](_0x3c2e01)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x23d5bd);};_0x3504['MqZzOY']=_0x3ab51f,_0x3504['nlCzIJ']={},_0x3504['oUJAls']=!![];}const _0x44e43c=_0x2bb2f7[0x0],_0x310a22=_0x10e689+_0x44e43c,_0x444fbf=_0x3504['nlCzIJ'][_0x310a22];return!_0x444fbf?(_0x35047e=_0x3504['MqZzOY'](_0x35047e),_0x3504['nlCzIJ'][_0x310a22]=_0x35047e):_0x35047e=_0x444fbf,_0x35047e;}const REAL_USAGE_THRESHOLD=0x2;function _0x3d03b0(_0x32da18,_0x446719){return _0x3504(_0x32da18- -0x119,_0x446719);}function _0x3347f2(_0x19794b,_0x1dda1b){return _0x3504(_0x1dda1b-0x219,_0x19794b);}export class SkillEvaluator{['db'];[_0x3347f2(0x431,0x3f1)];constructor(_0x497d0b,_0x1c2e4d){function _0x350bf0(_0x4094f4,_0x5ce4de){return _0x3347f2(_0x5ce4de,_0x4094f4- -0x430);}this['db']=_0x497d0b,this[_0x350bf0(-0x3f,-0x54)]=_0x1c2e4d;}async['evaluate'](_0x4b8c6a,_0xffffee){const _0x17edca=this[_0x53c3b3(0x302,0x312)][_0x53c3b3(0x39f,0x355)+_0x12325f(0x45f,0x460)];if(!_0x17edca?.[_0x53c3b3(0x390,0x3a8)])return{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]};function _0x53c3b3(_0x470b47,_0xb2542a){return _0x3347f2(_0x470b47,_0xb2542a- -0xdf);}const _0x4dd8e9=[],_0x275b1e=[];let _0x1fc085=0x0,_0x3d45ab=0x0;try{const _0x2d7a7b=this['db'][_0x12325f(0x45a,0x449)+'es']({'limit':0x1f4,'projectPath':_0x4b8c6a}),_0xf47653=_0x2d7a7b[_0x53c3b3(0x319,0x365)](_0x174ccf=>_0x174ccf['category']!==_0x53c3b3(0x310,0x34e)&&_0x174ccf['embedding']&&_0x174ccf['embedding'][_0x12325f(0x490,0x469)]>0x0);if(_0xf47653[_0x53c3b3(0x3a7,0x38c)]<_0x17edca[_0x53c3b3(0x33a,0x327)+_0x53c3b3(0x38e,0x390)])return{'candidates':_0x275b1e,'created':_0x1fc085,'skipped':_0xf47653[_0x12325f(0x490,0x470)],'errors':_0x4dd8e9};const _0x4cd4c5=0x12c;let _0x381333;if(_0xf47653[_0x53c3b3(0x368,0x38c)]>_0x4cd4c5){if(_0x53c3b3(0x3b7,0x388)===_0x12325f(0x45d,0x47c))_0x45068f*=1.1;else{const _0x59fdd4=[..._0xf47653][_0x53c3b3(0x3d3,0x392)]((_0x198f6f,_0x57ebb6)=>new Date(_0x57ebb6[_0x53c3b3(0x303,0x320)])['getTime']()-new Date(_0x198f6f[_0x53c3b3(0x35a,0x320)])['getTime']()),_0x16f995=Math['floor'](_0x4cd4c5*0.7),_0x2dff7f=_0x4cd4c5-_0x16f995,_0x24a3e8=_0x59fdd4[_0x12325f(0x42f,0x415)](0x0,_0x16f995),_0xe3a54a=new Set(_0x24a3e8[_0x53c3b3(0x343,0x333)](_0xffbd7e=>_0xffbd7e['id'])),_0x299462=_0x59fdd4[_0x53c3b3(0x311,0x32b)](_0x16f995)['filter'](_0xd0847=>!_0xe3a54a[_0x53c3b3(0x37b,0x373)](_0xd0847['id'])),_0x3f4b5c=[];for(let _0x1af46a=_0x299462[_0x53c3b3(0x34e,0x38c)]-0x1;_0x1af46a>0x0&&_0x3f4b5c[_0x12325f(0x490,0x48b)]<_0x2dff7f;_0x1af46a--){if('kwKaM'===_0x12325f(0x49f,0x4a2)){const _0x388bbf=Math[_0x12325f(0x4ad,0x4e0)](Math[_0x53c3b3(0x31d,0x341)]()*(_0x1af46a+0x1));[_0x299462[_0x1af46a],_0x299462[_0x388bbf]]=[_0x299462[_0x388bbf],_0x299462[_0x1af46a]],_0x3f4b5c[_0x12325f(0x47b,0x43c)](_0x299462[_0x1af46a]);}else{_0x26b825['push'](''),_0x16de10['push'](_0x12325f(0x448,0x494)+_0x53c3b3(0x314,0x35e));for(const _0x53550e of _0x111567[_0x53c3b3(0x3a3,0x37e)+'ries']['slice'](0x0,0x3)){const _0x188ed9=_0x53550e[_0x53c3b3(0x3d3,0x391)]['split']('\x0a')[0x0][_0x53c3b3(0x34e,0x32b)](0x0,0x96);_0x539ff3[_0x12325f(0x47b,0x495)]('-\x20'+_0x188ed9);}}}_0x381333=[..._0x24a3e8,..._0x3f4b5c];}}else _0x381333=_0xf47653;const _0x2dbe42=this['clusterMem'+_0x12325f(0x486,0x477)](_0x381333,_0x17edca['similarity'+_0x12325f(0x434,0x3f6)]),_0x7f8ba6=_0x2d7a7b[_0x53c3b3(0x388,0x365)](_0x579303=>_0x579303[_0x53c3b3(0x383,0x343)]===_0x12325f(0x452,0x478));let _0x4310e0=_0x17edca[_0x12325f(0x44c,0x415)]-_0x7f8ba6['length'];for(const _0x6d8c01 of _0x2dbe42){if(_0x4310e0<=0x0)break;const _0x44ad0d=this['evaluateCl'+_0x12325f(0x4aa,0x497)](_0x6d8c01,_0x17edca[_0x53c3b3(0x2e4,0x327)+_0x53c3b3(0x373,0x390)],_0x17edca[_0x12325f(0x419,0x462)+_0x12325f(0x458,0x47d)]);if(!_0x44ad0d){if(_0x12325f(0x433,0x3f8)!==_0x12325f(0x433,0x3f5))_0x544f7f[_0x12325f(0x47b,0x46e)]('nature:'+_0x1f13a5[_0x53c3b3(0x390,0x34a)]);else{_0x3d45ab+=_0x6d8c01[_0x53c3b3(0x3a2,0x38c)];continue;}}const _0x3fcbe0=this[_0x12325f(0x489,0x4c1)+_0x12325f(0x48f,0x4a8)](_0x44ad0d,_0x7f8ba6);if(_0x3fcbe0){_0x3d45ab+=_0x6d8c01[_0x12325f(0x490,0x4c8)];continue;}_0x275b1e[_0x53c3b3(0x337,0x377)](_0x44ad0d);if(_0x17edca[_0x53c3b3(0x3bf,0x39f)+'ion']&&this[_0x53c3b3(0x326,0x312)][_0x53c3b3(0x396,0x3a1)]?.['enabled'])try{const _0x526cf7=await this[_0x12325f(0x46e,0x429)+_0x53c3b3(0x330,0x334)](_0x44ad0d);if(!_0x526cf7){_0x3d45ab+=_0x6d8c01[_0x53c3b3(0x369,0x38c)];continue;}}catch(_0x45c42a){_0x4dd8e9[_0x12325f(0x47b,0x498)](_0x53c3b3(0x360,0x39a)+_0x12325f(0x44a,0x487)+_0x53c3b3(0x35a,0x375)+(_0x45c42a instanceof Error?_0x45c42a[_0x12325f(0x439,0x418)]:String(_0x45c42a)));}try{await this['compressTo'+_0x12325f(0x485,0x498)](_0x44ad0d,_0xffffee),_0x1fc085++,_0x4310e0--;}catch(_0xef7006){_0x4dd8e9[_0x12325f(0x47b,0x43a)](_0x12325f(0x417,0x40c)+_0x12325f(0x44a,0x42a)+'d:\x20'+(_0xef7006 instanceof Error?_0xef7006['message']:String(_0xef7006)));}}}catch(_0x4eab98){_0x4dd8e9[_0x12325f(0x47b,0x4c3)](_0x12325f(0x427,0x424)+'\x20failed:\x20'+(_0x4eab98 instanceof Error?_0x4eab98[_0x12325f(0x439,0x3ed)]:String(_0x4eab98)));}function _0x12325f(_0x152a6b,_0x309eb6){return _0x3347f2(_0x309eb6,_0x152a6b-0x25);}return{'candidates':_0x275b1e,'created':_0x1fc085,'skipped':_0x3d45ab,'errors':_0x4dd8e9};}['clusterMem'+_0x3d03b0(0x12f,0x102)](_0xdda876,_0x48182b){const _0x3efe39=new Set(),_0x1f5aa6=[];function _0xbfc91e(_0x473cba,_0x5f5366){return _0x3d03b0(_0x5f5366-0x265,_0x473cba);}function _0x44e6b6(_0x5eb86b,_0x187b51){return _0x3d03b0(_0x5eb86b-0x27a,_0x187b51);}for(const _0x105eeb of _0xdda876){if(_0x3efe39[_0x44e6b6(0x39a,0x388)](_0x105eeb['id']))continue;if(!_0x105eeb[_0xbfc91e(0x3a8,0x396)])continue;const _0x33c6d8=[_0x105eeb];_0x3efe39[_0xbfc91e(0x36a,0x32d)](_0x105eeb['id']);for(const _0x53d65f of _0xdda876){if(_0xbfc91e(0x2f0,0x334)==='yPiZv'){if(_0x3efe39['has'](_0x53d65f['id']))continue;if(!_0x53d65f['embedding'])continue;const _0x3e56f7=cosineSimilarity(_0x105eeb[_0x44e6b6(0x3ab,0x3e3)],_0x53d65f[_0xbfc91e(0x350,0x396)]);_0x3e56f7>=_0x48182b&&(_0x33c6d8[_0x44e6b6(0x39e,0x3b7)](_0x53d65f),_0x3efe39[_0x44e6b6(0x342,0x36c)](_0x53d65f['id']));}else _0x50bd4a[_0xbfc91e(0x3b6,0x389)](_0x4c23d3),_0x315b9f[_0xbfc91e(0x2f4,0x32d)](_0x3c3225['id']);}_0x1f5aa6['push'](_0x33c6d8);}return _0x1f5aa6;}['evaluateCl'+_0x3347f2(0x4a5,0x485)](_0x290d50,_0x439b71,_0x3762ba){const _0x526980=0.5;if(_0x290d50[_0x359405(0xd1,0xae)]<_0x439b71)return null;const _0x3cc8b4=this[_0x359405(0xb7,0xa6)+_0x359405(0xe1,0xbc)+_0x359405(0xa1,0x8c)](_0x290d50);if(_0x3cc8b4<0.75)return null;let _0x203315=_0x3cc8b4;const _0x345a0a=new Set(_0x290d50[_0x13bc3a(0x68,0x3c)](_0x4ea34b=>_0x4ea34b['sessionId'])[_0x13bc3a(0x6c,0x6e)](Boolean));_0x345a0a['size']>=0x2&&(_0x359405(0x81,0x59)===_0x359405(0x7d,0x68)?(this['db']=_0x22bb02,this[_0x359405(0x57,0x69)]=_0x4e334a):_0x203315*=1.2);const _0xc47393=new Map();for(const _0x3a26a2 of _0x290d50){_0xc47393['set'](_0x3a26a2[_0x13bc3a(-0x1,0x4c)],(_0xc47393[_0x359405(0xc2,0x9c)](_0x3a26a2['category'])??0x0)+0x1);}let _0x5ef6b0=_0x290d50[0x0]['category'];function _0x359405(_0x13699a,_0x2e204b){return _0x3347f2(_0x2e204b,_0x13699a- -0x39a);}let _0x3bd6ed=0x0;for(const [_0x441391,_0x200a92]of _0xc47393){if(_0x200a92>_0x3bd6ed){if(_0x13bc3a(0xac,0x9f)===_0x13bc3a(0x60,0x9f))_0x3bd6ed=_0x200a92,_0x5ef6b0=_0x441391;else{const _0x2023c6=new _0x362706(_0x167e19[_0x13bc3a(-0x6,0x25)]()+(this[_0x13bc3a(-0x2,0x1b)][_0x13bc3a(0x16,0x5e)+_0x359405(0xa0,0xdd)]?.[_0x359405(0x5d,0x48)+_0x13bc3a(0x6e,0x70)]??0x5a)*0x18*0x3c*0x3c*0x3e8)[_0x13bc3a(0x92,0x50)+'g'](),_0x20563d={..._0x23162f,'reviewDueAt':_0x2023c6,'activationCount':_0x873d7,'lastActivatedAt':_0x44d91f[_0x359405(0x6a,0x7f)+_0x359405(0x82,0x40)]},_0xd5af65=_0x13bc3a(0x71,0x28)+_0x5618e7[_0x13bc3a(0x9e,0x74)](_0x36f952[_0x359405(0x9d,0xa9)](_0x20563d))[_0x359405(0x73,0x63)](_0x359405(0x55,0x6c)),_0x2f8287=_0x1b0924['tags']['filter'](_0x36f7e7=>!_0x36f7e7['startsWith'](_0x13bc3a(-0x22,0x28)));_0x2f8287[_0x13bc3a(0x4f,0x80)](_0xd5af65),this['db'][_0x359405(0x76,0x9f)+'ry'](_0x4318ac['id'],{'tags':_0x2f8287}),_0x1d28d8++;}}}_0x3bd6ed/_0x290d50['length']>=0.5&&(_0x203315*=1.1);_0x203315=Math[_0x13bc3a(0xa5,0xa0)](_0x203315,0x1);if(_0x203315<_0x526980)return null;let _0x2f6bef;function _0x13bc3a(_0x65c004,_0x38f5e2){return _0x3347f2(_0x65c004,_0x38f5e2- -0x3d6);}const _0x476a18=_0x290d50[_0x13bc3a(0xad,0x6e)](_0x379c2e=>_0x379c2e[_0x359405(0xc9,0x100)]&&_0x379c2e['embedding']['length']>0x0);if(_0x476a18[_0x13bc3a(0xc5,0x95)]>=0x2){const _0x587541=_0x476a18[0x0][_0x359405(0xc9,0x10c)][_0x359405(0xd1,0x87)],_0x3fbec6=new Array(_0x587541)['fill'](0x0);for(const _0x5da8d6 of _0x476a18){for(let _0x1c2f8c=0x0;_0x1c2f8c<_0x587541;_0x1c2f8c++){_0x3fbec6[_0x1c2f8c]+=_0x5da8d6[_0x359405(0xc9,0xd3)][_0x1c2f8c]/_0x476a18[_0x13bc3a(0xd1,0x95)];}}let _0x319d51=0x0,_0x250325=-0x1;for(let _0x556827=0x0;_0x556827<_0x476a18[_0x359405(0xd1,0x9c)];_0x556827++){const _0x1f2aea=cosineSimilarity(_0x3fbec6,_0x476a18[_0x556827][_0x359405(0xc9,0xa2)]);_0x1f2aea>_0x250325&&(_0x250325=_0x1f2aea,_0x319d51=_0x556827);}_0x2f6bef=_0x476a18[_0x319d51]['content'][_0x359405(0x70,0x7b)](0x0,0x1f4);}else{const _0x451906=[..._0x290d50][_0x13bc3a(0x58,0x9b)]((_0x5f53d5,_0x5d7c90)=>_0x5d7c90['content'][_0x359405(0xd1,0xc6)]-_0x5f53d5['content'][_0x13bc3a(0x79,0x95)]);_0x2f6bef=_0x451906[0x0]['content'][_0x13bc3a(0x22,0x34)](0x0,0x1f4);}const _0x37a537=new Map();for(const _0x306bc1 of _0x290d50){if('cywsv'===_0x13bc3a(0x62,0x75)){const _0x36368d=[..._0x5d7b66][_0x13bc3a(0x57,0x9b)]((_0x39a36f,_0x5b04cf)=>new _0x1ab8dc(_0x5b04cf[_0x13bc3a(0x24,0x29)])['getTime']()-new _0x49208d(_0x39a36f[_0x13bc3a(0x25,0x29)])[_0x13bc3a(0xaf,0x76)]()),_0x242947=_0x5d1a00['floor'](_0x559747*0.7),_0x49f42f=_0x16c9c6-_0x242947,_0x2ff56b=_0x36368d[_0x13bc3a(0x2f,0x34)](0x0,_0x242947),_0x3859f5=new _0x12b529(_0x2ff56b[_0x13bc3a(0xe,0x3c)](_0x218db6=>_0x218db6['id'])),_0x41fae6=_0x36368d[_0x359405(0x70,0x8b)](_0x242947)[_0x13bc3a(0x79,0x6e)](_0x18f8f4=>!_0x3859f5['has'](_0x18f8f4['id'])),_0x52e9bc=[];for(let _0x22ef17=_0x41fae6[_0x359405(0xd1,0xf8)]-0x1;_0x22ef17>0x0&&_0x52e9bc[_0x359405(0xd1,0x9d)]<_0x49f42f;_0x22ef17--){const _0x5f49df=_0x519bd3[_0x13bc3a(0xa5,0xb2)](_0x214341[_0x359405(0x86,0x97)]()*(_0x22ef17+0x1));[_0x41fae6[_0x22ef17],_0x41fae6[_0x5f49df]]=[_0x41fae6[_0x5f49df],_0x41fae6[_0x22ef17]],_0x52e9bc[_0x359405(0xbc,0xae)](_0x41fae6[_0x22ef17]);}_0x4cbce6=[..._0x2ff56b,..._0x52e9bc];}else for(const _0x4130fe of _0x306bc1['tags']){_0x37a537[_0x13bc3a(0x16,0x35)](_0x4130fe,(_0x37a537[_0x13bc3a(0x41,0x86)](_0x4130fe)??0x0)+0x1);}}const _0x2683c7=Array['from'](_0x37a537[_0x13bc3a(0xce,0x83)]())[_0x359405(0xaa,0xdd)](([,_0x2b1424])=>_0x2b1424>=0x2)[_0x13bc3a(0x79,0x3c)](([_0x1c7f51])=>_0x1c7f51);return{'clusterId':randomUUID(),'sourceMemories':_0x290d50,'category':_0x5ef6b0,'confidence':_0x203315,'pattern':_0x2f6bef,'tags':[..._0x2683c7,'skill',_0x13bc3a(0x24,0x6a)+'ed']};}async[_0x3d03b0(0x117,0xd8)+'thLLM'](_0x21d49d){function _0x322e99(_0x8894b3,_0x27aaf5){return _0x3347f2(_0x8894b3,_0x27aaf5- -0x521);}function _0x2c3cc7(_0x598ed9,_0x2394d3){return _0x3347f2(_0x598ed9,_0x2394d3- -0x486);}try{const {createLLMClient:_0x8b1b72}=await import(_0x322e99(-0xe7,-0xc3)+_0x2c3cc7(-0xc6,-0x83)),_0x44741e=_0x8b1b72(this[_0x322e99(-0x11a,-0x130)][_0x2c3cc7(-0x2a,-0x6)]),_0x4517a0=['Determine\x20'+'if\x20these\x20s'+'imilar\x20mem'+'ories\x20repr'+'esent\x20a\x20re'+_0x2c3cc7(-0x4,-0x1e)+'ll/pattern'+'.',_0x2c3cc7(-0x5f,-0x93)+_0x322e99(-0xb4,-0xef)+_0x2c3cc7(0x0,-0x7)+'rue/false,'+_0x322e99(-0xd0,-0xc7)+_0x2c3cc7(0x1d,-0x27)+_0x322e99(-0xe2,-0x128),'',_0x2c3cc7(-0x5c,-0x1a)+_0x21d49d[_0x2c3cc7(-0xa3,-0x64)],_0x322e99(-0x98,-0xd1)+_0x21d49d[_0x2c3cc7(-0xcf,-0x8a)],_0x322e99(-0x107,-0xeb)+_0x322e99(-0x81,-0xa0)+_0x21d49d[_0x2c3cc7(-0x2b,-0x29)+'ries'][_0x2c3cc7(-0x11,-0x1b)],'',_0x2c3cc7(-0x50,-0x6e)+_0x322e99(-0x8e,-0x98),..._0x21d49d[_0x2c3cc7(-0x1a,-0x29)+_0x322e99(-0x133,-0x124)][_0x2c3cc7(-0xa1,-0x7c)](0x0,0x3)[_0x322e99(-0xfb,-0x10f)]((_0x496b33,_0x4578b3)=>_0x4578b3+0x1+'.\x20'+_0x496b33['content']['slice'](0x0,0xc8))][_0x322e99(-0x71,-0xae)]('\x0a'),_0xa90178=await _0x44741e[_0x2c3cc7(-0x36,-0x2e)](_0x4517a0),_0x3e03c7=JSON['parse'](_0xa90178);return _0x3e03c7[_0x322e99(-0x11e,-0x129)]===!![]&&(_0x3e03c7[_0x322e99(-0x118,-0xda)]??0x0)>=(this[_0x322e99(-0x103,-0x130)][_0x322e99(-0x10a,-0xed)+_0x322e99(-0xe2,-0xe7)]?.['minConfide'+_0x2c3cc7(-0x80,-0x53)]??0.7);}catch(_0xba80e8){if(_0x2c3cc7(-0x4,-0x3e)==='jAOFQ'){if(_0x4c1d29[_0x322e99(-0xd1,-0xb6)]<0x2)return 0x1;let _0x43051c=0x0,_0x184c55=0x0;for(let _0x4b3470=0x0;_0x4b3470<_0x4166c6['length'];_0x4b3470++){for(let _0x5a7600=_0x4b3470+0x1;_0x5a7600<_0x5968e3[_0x322e99(-0xd3,-0xb6)];_0x5a7600++){_0x4ff4f1[_0x4b3470]['embedding']&&_0xb05762[_0x5a7600][_0x2c3cc7(-0x41,-0x23)]&&(_0x43051c+=_0x3906eb(_0xd70ec6[_0x4b3470][_0x322e99(-0x75,-0xbe)],_0x43c42a[_0x5a7600][_0x322e99(-0xba,-0xbe)]),_0x184c55++);}}return _0x184c55>0x0?_0x43051c/_0x184c55:0x0;}else{const _0x4f0c13=_0xba80e8 instanceof Error?_0xba80e8[_0x322e99(-0x128,-0x10d)]:String(_0xba80e8);if(_0x4f0c13[_0x322e99(-0xcd,-0xd4)](_0x322e99(-0x12c,-0x100))||_0x4f0c13[_0x2c3cc7(-0x7a,-0x39)](_0x2c3cc7(-0x99,-0x5b)+'ED')||_0x4f0c13[_0x322e99(-0xd5,-0xd4)](_0x2c3cc7(-0xc,-0x3)+'ed'))return![];return![];}}}async[_0x3347f2(0x451,0x439)+'Skill'](_0xac296f,_0x5c6e17){const _0x2945e9=new Date()['toISOStrin'+'g'](),_0x1cbe4d=new Date(Date[_0x2aa11b(0x50b,0x4ed)]()+(this[_0x2aa11b(0x501,0x4d5)][_0x2aa11b(0x544,0x566)+_0xc7baeb(-0xe3,-0xfb)]?.[_0x2aa11b(0x507,0x51b)+'eDays']??0x5a)*0x18*0x3c*0x3c*0x3e8)[_0xc7baeb(-0x14a,-0x10f)+'g'](),_0x391aa8=this['buildSkill'+_0x2aa11b(0x579,0x596)](_0xac296f);let _0x421d08=null;if(_0x5c6e17)try{_0x421d08=await _0x5c6e17[_0x2aa11b(0x55e,0x540)+_0x2aa11b(0x541,0x50f)]({'content':_0xac296f[_0x2aa11b(0x50c,0x4c5)],'tags':_0xac296f[_0x2aa11b(0x587,0x5ad)]['filter'](_0x52e94f=>!_0x52e94f[_0xc7baeb(-0x120,-0xf7)](_0xc7baeb(-0x134,-0x137))&&_0x52e94f!==_0x2aa11b(0x53d,0x558)&&_0x52e94f!=='crystalliz'+'ed'),'category':_0xac296f['category']});}catch{}function _0xc7baeb(_0x3d3f9a,_0x88434a){return _0x3d03b0(_0x88434a- -0x203,_0x3d3f9a);}const _0x5599b1={'sourceMemoryIds':_0xac296f[_0x2aa11b(0x56d,0x596)+_0x2aa11b(0x50d,0x53a)][_0x2aa11b(0x522,0x547)](_0x40d226=>_0x40d226['id']),'crystallizedAt':_0x2945e9,'confidence':_0xac296f[_0xc7baeb(-0xcc,-0xee)],'reviewDueAt':_0x1cbe4d,'activationCount':0x0,..._0x421d08&&{'taxonomyDomain':_0x421d08[_0xc7baeb(-0x9d,-0xaf)],'taxonomySkillId':_0x421d08['skill_id']??undefined,'taxonomyNature':_0x421d08[_0xc7baeb(-0xd9,-0x10c)]??undefined,'taxonomyStability':_0x421d08[_0xc7baeb(-0x110,-0xf4)]??undefined,'taxonomyConfidence':_0x421d08[_0x2aa11b(0x557,0x534)]}},_0x4a10a6='meta:'+Buffer[_0xc7baeb(-0xea,-0xeb)](JSON['stringify'](_0x5599b1))[_0x2aa11b(0x51d,0x4d7)](_0x2aa11b(0x4ff,0x519));function _0x2aa11b(_0xd4257e,_0xd54fa8){return _0x3d03b0(_0xd4257e-0x442,_0xd54fa8);}const _0x345c0b=[];_0x421d08&&(_0xc7baeb(-0x9f,-0xb9)===_0x2aa11b(0x58c,0x5c7)?(_0x345c0b[_0xc7baeb(-0x11e,-0xdf)](_0x2aa11b(0x552,0x53f)+_0x421d08[_0x2aa11b(0x596,0x59d)]),_0x421d08[_0x2aa11b(0x582,0x59f)]&&_0x345c0b['push'](_0x2aa11b(0x552,0x59f)+_0x421d08[_0xc7baeb(-0xb0,-0xc3)]),_0x421d08[_0xc7baeb(-0xc1,-0x10c)]&&_0x345c0b[_0x2aa11b(0x566,0x523)](_0xc7baeb(-0x123,-0x12c)+_0x421d08['nature'])):_0x3eefb9[_0x2aa11b(0x566,0x555)]('Skill\x20crea'+_0xc7baeb(-0x134,-0x110)+_0xc7baeb(-0x9a,-0xe1)+(_0x26ae45 instanceof _0x36fbcf?_0x5be3b1[_0x2aa11b(0x524,0x54b)]:_0x2c1f95(_0x175270))));const _0x482a16=this['db'][_0xc7baeb(-0x117,-0xe2)+'ry']({'content':_0x391aa8,'category':_0x2aa11b(0x53d,0x543),'tier':'semantic','tags':[..._0xac296f[_0xc7baeb(-0xae,-0xbe)],..._0x345c0b,_0x4a10a6],'projectPath':_0xac296f[_0x2aa11b(0x56d,0x543)+_0x2aa11b(0x50d,0x53a)][0x0]?.[_0xc7baeb(-0xa2,-0xc8)+'h']}),_0x379ef7=_0xac296f['sourceMemo'+'ries'][_0xc7baeb(-0x15a,-0x123)](_0x559a9b=>_0x559a9b[_0x2aa11b(0x573,0x560)])['filter'](_0x238efd=>!!_0x238efd&&_0x238efd[_0x2aa11b(0x57b,0x572)]>0x0);if(_0x379ef7[_0x2aa11b(0x57b,0x553)]>0x0){const _0x58fb69=this[_0x2aa11b(0x567,0x529)+'eddings'](_0x379ef7);this['db'][_0xc7baeb(-0x169,-0x140)+'ing'](_0x482a16['id'],_0x58fb69);}return _0x482a16;}['reviewSkil'+'ls'](){const _0x41bad5=new Date();let _0x5abf74=0x0,_0x55d59f=0x0,_0xe5329e=0x0;function _0x1353b3(_0x145067,_0x48458a){return _0x3d03b0(_0x145067-0x4aa,_0x48458a);}function _0x1d7bfe(_0x4d4cef,_0x58d78c){return _0x3d03b0(_0x58d78c-0x161,_0x4d4cef);}let _0xe1dd5a=0x0;const _0x2f7f24=this['db'][_0x1d7bfe(0x24c,0x264)+'es']({'category':_0x1353b3(0x5a5,0x5f1),'limit':0x3e8});for(const _0xc63759 of _0x2f7f24){_0x5abf74++;const _0x1e181c=this[_0x1353b3(0x592,0x593)+_0x1d7bfe(0x267,0x240)](_0xc63759);if(!_0x1e181c)continue;const _0x232b51=new Date(_0x1e181c[_0x1d7bfe(0x267,0x2b3)+'t']);if(_0x41bad5<_0x232b51)continue;let _0x462445;try{_0x462445=this['db'][_0x1353b3(0x5c7,0x5cc)+_0x1d7bfe(0x294,0x25d)](_0xc63759['id']);}catch{_0x462445=null;}if(_0x462445===null){_0xe1dd5a++;continue;}if(_0x462445<REAL_USAGE_THRESHOLD)this['db'][_0x1353b3(0x588,0x5c5)+'ry'](_0xc63759['id'],{'category':_0x1353b3(0x59c,0x57e),'tags':[..._0xc63759[_0x1353b3(0x5ef,0x623)][_0x1d7bfe(0x2a1,0x273)](_0x514281=>_0x514281!==_0x1d7bfe(0x28f,0x25c)&&_0x514281!==_0x1d7bfe(0x28f,0x26f)+'ed'&&_0x514281!==_0x1353b3(0x597,0x5b4)+_0x1d7bfe(0x2cf,0x284)),_0x1d7bfe(0x239,0x24e)+_0x1d7bfe(0x24e,0x284)]}),_0x55d59f++;else{const _0x3d709a=new Date(Date[_0x1d7bfe(0x1e4,0x22a)]()+(this['config']['skillConve'+_0x1d7bfe(0x2a7,0x269)]?.['reviewCycl'+'eDays']??0x5a)*0x18*0x3c*0x3c*0x3e8)[_0x1353b3(0x59e,0x552)+'g'](),_0x5c6999={..._0x1e181c,'reviewDueAt':_0x3d709a,'activationCount':_0x462445,'lastActivatedAt':_0xc63759[_0x1353b3(0x57c,0x59e)+'edAt']},_0x5b1fe0=_0x1d7bfe(0x212,0x22d)+Buffer['from'](JSON[_0x1d7bfe(0x21c,0x266)](_0x5c6999))[_0x1353b3(0x585,0x5d3)]('base64'),_0x2acb23=_0xc63759['tags'][_0x1d7bfe(0x2b1,0x273)](_0x3f2bdf=>!_0x3f2bdf[_0x1d7bfe(0x285,0x26d)](_0x1d7bfe(0x1df,0x22d)));_0x2acb23[_0x1d7bfe(0x2c8,0x285)](_0x5b1fe0),this['db']['updateMemo'+'ry'](_0xc63759['id'],{'tags':_0x2acb23}),_0xe5329e++;}}return{'reviewed':_0x5abf74,'demoted':_0x55d59f,'renewed':_0xe5329e,'unknownUsage':_0xe1dd5a};}[_0x3d03b0(0x11f,0xef)+'rageSimila'+_0x3d03b0(0x109,0xfc)](_0x3b9626){if(_0x3b9626[_0x2d9577(0x61,0x6e)]<0x2)return 0x1;let _0x19fb7e=0x0,_0x299822=0x0;for(let _0x9316c6=0x0;_0x9316c6<_0x3b9626[_0x4ed6a2(0x27c,0x258)];_0x9316c6++){if(_0x4ed6a2(0x285,0x27d)!=='tMVQj')return{'absorbed':![]};else for(let _0x53d8d5=_0x9316c6+0x1;_0x53d8d5<_0x3b9626['length'];_0x53d8d5++){_0x3b9626[_0x9316c6][_0x2d9577(0x59,0x90)]&&_0x3b9626[_0x53d8d5][_0x4ed6a2(0x274,0x2ad)]&&(_0x19fb7e+=cosineSimilarity(_0x3b9626[_0x9316c6]['embedding'],_0x3b9626[_0x53d8d5]['embedding']),_0x299822++);}}function _0x2d9577(_0x4936dd,_0x54a7d1){return _0x3347f2(_0x54a7d1,_0x4936dd- -0x40a);}function _0x4ed6a2(_0x1fa8a9,_0x749d3){return _0x3347f2(_0x749d3,_0x1fa8a9- -0x1ef);}return _0x299822>0x0?_0x19fb7e/_0x299822:0x0;}['isDuplicat'+_0x3347f2(0x4a6,0x46a)](_0x50ed51,_0x419574){const _0x8489b1=new Set(_0x50ed51['sourceMemo'+_0x315837(0x264,0x2a4)]['map'](_0x57cd82=>_0x57cd82['id']));for(const _0x20a597 of _0x419574){const _0x944b55=this[_0x461018(0x465,0x49f)+_0x461018(0x45c,0x44c)](_0x20a597);if(!_0x944b55)continue;const _0x5a3678=new Set(_0x944b55[_0x315837(0x2c4,0x2cc)+'ryIds']),_0x3afa2b=[..._0x8489b1][_0x315837(0x2ab,0x2be)](_0x163eb1=>_0x5a3678['has'](_0x163eb1))[_0x315837(0x2d2,0x316)],_0x2971a7=_0x3afa2b/Math[_0x461018(0x48a,0x4be)](_0x8489b1[_0x461018(0x47a,0x490)],_0x5a3678[_0x461018(0x47a,0x4b8)]);if(_0x2971a7>=0.7)return!![];}function _0x315837(_0x1df139,_0xa218bd){return _0x3347f2(_0xa218bd,_0x1df139- -0x199);}function _0x461018(_0x5f3202,_0x3197e9){return _0x3347f2(_0x3197e9,_0x5f3202-0x4b);}return![];}[_0x3d03b0(0x130,0x10f)+_0x3d03b0(0x137,0x159)](_0x455f0a){const _0x24d1ab=[];_0x24d1ab[_0x134109(-0x6d,-0x4d)]('[Skill]\x20'+_0x455f0a[_0x4aefae(0x4a8,0x4ca)]),_0x24d1ab[_0x134109(-0x6d,-0x50)](''),_0x24d1ab['push'](_0x4aefae(0x55f,0x53a)+_0x455f0a[_0x134109(-0xa1,-0x81)]);function _0x134109(_0x6b785d,_0x59ca32){return _0x3347f2(_0x59ca32,_0x6b785d- -0x4c3);}_0x24d1ab[_0x134109(-0x6d,-0x4e)](_0x4aefae(0x542,0x550)+_0x455f0a[_0x134109(-0x66,-0x3b)+_0x134109(-0xc6,-0xfe)][_0x4aefae(0x580,0x539)]+_0x134109(-0x80,-0xb0)),_0x24d1ab['push'](_0x4aefae(0x4e0,0x4fe)+':\x20'+(_0x455f0a['confidence']*0x64)[_0x4aefae(0x4d3,0x4da)](0x0)+'%');if(_0x455f0a[_0x4aefae(0x532,0x52b)+_0x134109(-0xc6,-0xc6)][_0x134109(-0x58,-0x46)]>0x1){if('KOMBD'==='KOMBD'){_0x24d1ab[_0x4aefae(0x528,0x524)](''),_0x24d1ab[_0x134109(-0x6d,-0xb3)](_0x134109(-0xa0,-0x9c)+_0x4aefae(0x523,0x50b));for(const _0x2ab351 of _0x455f0a[_0x4aefae(0x535,0x52b)+_0x4aefae(0x486,0x4cb)]['slice'](0x0,0x3)){if(_0x134109(-0x46,-0x87)!=='mtTPn'){const _0x2a9272=_0x2ab351[_0x4aefae(0x50c,0x53e)][_0x4aefae(0x4df,0x4eb)]('\x0a')[0x0]['slice'](0x0,0x96);_0x24d1ab['push']('-\x20'+_0x2a9272);}else _0xf57ee2['push']('taxonomy:'+_0x55d391[_0x4aefae(0x582,0x540)]);}}else this['db']['updateMemo'+'ry'](_0x2047d1['id'],{'category':_0x4aefae(0x537,0x4f2),'tags':[..._0x4ddc47[_0x4aefae(0x543,0x545)]['filter'](_0x18841a=>_0x18841a!==_0x134109(-0x96,-0xd4)&&_0x18841a!==_0x4aefae(0x4c1,0x50e)+'ed'&&_0x18841a!=='demoted-fr'+'om-skill'),_0x134109(-0xa4,-0xd2)+_0x4aefae(0x53b,0x523)]}),_0x4f49e6++;}function _0x4aefae(_0x2faaf5,_0x4c9459){return _0x3347f2(_0x2faaf5,_0x4c9459-0xce);}return _0x24d1ab['join']('\x0a');}[_0x3d03b0(0xe8,0x111)+_0x3347f2(0x458,0x411)](_0x3fe0a0){const _0x5536d7=_0x3fe0a0['tags']['find'](_0x28cd55=>_0x28cd55['startsWith'](_0x59d0ea(0x11b,0xce)));function _0x59d0ea(_0x67f8d1,_0x1b9c5a){return _0x3347f2(_0x67f8d1,_0x1b9c5a- -0x330);}if(!_0x5536d7)return null;function _0x48d078(_0x2a1361,_0x4982d2){return _0x3347f2(_0x4982d2,_0x2a1361- -0x3db);}try{const _0x295596=Buffer[_0x48d078(0x6f,0x45)](_0x5536d7[_0x48d078(0x2f,-0xb)](0x5),'base64')[_0x48d078(0x32,0x2)](_0x48d078(0x1b,0x19));return JSON[_0x48d078(0x9d,0xa0)](_0x295596);}catch{return null;}}[_0x3347f2(0x463,0x457)+_0x3347f2(0x449,0x46e)](_0x27fa48){if(_0x27fa48[_0x5dd47c(0x20a,0x222)]===0x0)return[];const _0x38f072=_0x27fa48[0x0][_0x21f0cc(0x5bc,0x5bd)];function _0x5dd47c(_0x52326f,_0x370894){return _0x3347f2(_0x52326f,_0x370894- -0x249);}function _0x21f0cc(_0x3ee6bf,_0x12065c){return _0x3347f2(_0x12065c,_0x3ee6bf-0x151);}const _0x1e4c70=new Array(_0x38f072)[_0x21f0cc(0x567,0x5b2)](0x0);for(const _0x45a171 of _0x27fa48){for(let _0x2fae4d=0x0;_0x2fae4d<_0x38f072;_0x2fae4d++){_0x1e4c70[_0x2fae4d]+=_0x45a171[_0x2fae4d];}}for(let _0x4e6164=0x0;_0x4e6164<_0x38f072;_0x4e6164++){_0x1e4c70[_0x4e6164]/=_0x27fa48[_0x5dd47c(0x23c,0x222)];}return _0x1e4c70;}['absorbInto'+_0x3d03b0(0x12e,0x103)](_0x4d842c){function _0x5b5120(_0x3d84e0,_0x134c72){return _0x3d03b0(_0x3d84e0-0xe8,_0x134c72);}if(!_0x4d842c[_0x5b5120(0x219,0x236)]||_0x4d842c[_0x2efe2e(0x20f,0x1e3)]===_0x5b5120(0x1e3,0x1c0))return{'absorbed':![]};const _0x589163=this['db'][_0x5b5120(0x1eb,0x1ab)+'es']({'limit':0xc8})[_0x5b5120(0x1fa,0x1ba)](_0x2bb614=>_0x2bb614[_0x2efe2e(0x20f,0x234)]===_0x5b5120(0x1e3,0x214));function _0x2efe2e(_0x3e2eb3,_0x388aeb){return _0x3d03b0(_0x3e2eb3-0x11f,_0x388aeb);}for(const _0x4a8fd7 of _0x589163){if(_0x2efe2e(0x248,0x203)===_0x2efe2e(0x20b,0x23e)){const _0x5bdd56=[];_0x5bdd56[_0x5b5120(0x20c,0x24b)](_0x2efe2e(0x215,0x24e)+_0x2871f6[_0x2efe2e(0x1e9,0x223)]),_0x5bdd56[_0x2efe2e(0x243,0x265)](''),_0x5bdd56[_0x5b5120(0x20c,0x254)](_0x2efe2e(0x259,0x214)+_0x503857['category']),_0x5bdd56['push']('Sources:\x20'+_0x3cdf12[_0x5b5120(0x213,0x243)+'ries']['length']+_0x5b5120(0x1f9,0x23b)),_0x5bdd56['push'](_0x2efe2e(0x21d,0x23f)+':\x20'+(_0x205e23['confidence']*0x64)['toFixed'](0x0)+'%');if(_0x205344[_0x2efe2e(0x24a,0x263)+_0x2efe2e(0x1ea,0x1d0)]['length']>0x1){_0x5bdd56[_0x5b5120(0x20c,0x21a)](''),_0x5bdd56[_0x2efe2e(0x243,0x203)](_0x2efe2e(0x210,0x234)+_0x2efe2e(0x22a,0x236));for(const _0x59d139 of _0xe74ffe[_0x2efe2e(0x24a,0x28a)+_0x5b5120(0x1b3,0x1ae)][_0x5b5120(0x1c0,0x1f1)](0x0,0x3)){const _0x1cd1fe=_0x59d139[_0x5b5120(0x226,0x259)]['split']('\x0a')[0x0][_0x5b5120(0x1c0,0x1c0)](0x0,0x96);_0x5bdd56[_0x2efe2e(0x243,0x1fb)]('-\x20'+_0x1cd1fe);}}return _0x5bdd56['join']('\x0a');}else{if(!_0x4a8fd7[_0x2efe2e(0x250,0x22a)])continue;const _0x540cb9=cosineSimilarity(_0x4d842c[_0x5b5120(0x219,0x1f7)],_0x4a8fd7['embedding']);if(_0x540cb9<0.8)continue;const _0x432cc5=this[_0x2efe2e(0x207,0x24e)+'adata'](_0x4a8fd7);if(!_0x432cc5)continue;if(_0x432cc5['sourceMemo'+_0x2efe2e(0x232,0x227)][_0x2efe2e(0x23a,0x202)](_0x4d842c['id']))return{'absorbed':![]};_0x432cc5[_0x2efe2e(0x24a,0x21b)+'ryIds'][_0x5b5120(0x20c,0x211)](_0x4d842c['id']),_0x432cc5[_0x5b5120(0x1e0,0x1ef)+_0x5b5120(0x1b6,0x1a0)]=(_0x432cc5['activation'+_0x2efe2e(0x1ed,0x237)]||0x0)+0x1,_0x432cc5['lastActiva'+_0x5b5120(0x21b,0x243)]=new Date()['toISOStrin'+'g']();const _0x4e8d5d=_0x2efe2e(0x1eb,0x203)+Buffer['from'](JSON[_0x2efe2e(0x224,0x1d6)](_0x432cc5))['toString'](_0x5b5120(0x1a5,0x15a)),_0x32e8bd=_0x4a8fd7[_0x5b5120(0x22d,0x1e7)][_0x2efe2e(0x231,0x1f5)](_0x19270c=>!_0x19270c[_0x5b5120(0x1f4,0x230)](_0x5b5120(0x1b4,0x1c1))),_0x30d633='-\x20'+_0x4d842c[_0x2efe2e(0x25d,0x22a)][_0x2efe2e(0x20a,0x1d1)]('\x0a')[0x0]['slice'](0x0,0x96);let _0x12e413=_0x4a8fd7[_0x5b5120(0x226,0x21d)];const _0x156ede=_0x12e413['split']('\x0a')[_0x5b5120(0x1fa,0x1e4)](_0x2b0db2=>_0x2b0db2[_0x2efe2e(0x22b,0x22a)]('-\x20'));return _0x156ede['length']<0x5&&(_0x12e413=_0x12e413[_0x5b5120(0x1be,0x200)]()+'\x0a'+_0x30d633),this['db'][_0x5b5120(0x1c6,0x1c6)+'ry'](_0x4a8fd7['id'],{'content':_0x12e413,'tags':[..._0x32e8bd,_0x4e8d5d]}),{'absorbed':!![],'skillId':_0x4a8fd7['id']};}}return{'absorbed':![]};}}
|
|
1
|
+
(function(_0x289d34,_0x586268){const _0x724ecc=_0x289d34();function _0x4924fb(_0x35ae46,_0x529395){return _0x453e(_0x35ae46- -0x1c0,_0x529395);}function _0x3eaf0d(_0x8c7613,_0x2e0f7d){return _0x453e(_0x2e0f7d- -0x33a,_0x8c7613);}while(!![]){try{const _0xcc48d9=parseInt(_0x3eaf0d(-0x1f0,-0x1ec))/0x1*(-parseInt(_0x3eaf0d(-0x23d,-0x210))/0x2)+-parseInt(_0x3eaf0d(-0x204,-0x251))/0x3*(-parseInt(_0x3eaf0d(-0x1c6,-0x1c2))/0x4)+-parseInt(_0x4924fb(-0xb7,-0x70))/0x5*(parseInt(_0x3eaf0d(-0x29d,-0x252))/0x6)+parseInt(_0x3eaf0d(-0x1d2,-0x213))/0x7+-parseInt(_0x3eaf0d(-0x214,-0x1f3))/0x8+-parseInt(_0x3eaf0d(-0x20f,-0x248))/0x9+parseInt(_0x4924fb(-0xb5,-0xec))/0xa;if(_0xcc48d9===_0x586268)break;else _0x724ecc['push'](_0x724ecc['shift']());}catch(_0x32ab3d){_0x724ecc['push'](_0x724ecc['shift']());}}}(_0x3d1f,0x65f7b));function _0x3d1f(){const _0x53bd38=['DxbKyxrLzef0','q2f0zwDVCNK6ia','A1njDu0','BwfW','z2rgrMC','Bwf4u2TPBgXZ','Aw5JBhvKzxm','C2L6zq','DxrMltG','yMfZzty0','AgfZ','BNrLBNq','B3jPzxmGCMvWCG','sxfcANm','BNm6','zwrbDa','icjJB25MAwrLBG','zMv0y2GGzMfPBa','teXnihzHBgLKyq','y29UzMLN','q29UDgvUDa','mZu3nZu2meH2ALnzvq','Dg9tDhjPBMC','AxneDxbSAwnHDa','C2vTyw50Awm','AwyGDgHLC2uGCW','zwrKAw5NCW','zw1IzwrKAw5N','mZiZmJa5qwHizwnS','u2TPBgW','ywn0AxzHDgLVBG','BgWVCgf0DgvYBG','BgXT','B3jPzxm','zxzHBhvHDgvdBa','AMvJDfvZywDL','BMf0DxjL','y2X1C3rLCK1LBq','C291CMnLtwvTBW','BwLU','zgvTB3rLzc1MCG','ChjVAMvJDfbHDa','y3j5C3rHBgXPEG','CML0Eq','BwLUuMvWzxrPDa','DgvKqxq','vgHYzxnOB2XK','CNLjzhm','Dxn0zxi','C2XPy2u','CMv2Awv3rhvLqq','CMv2Awv3q3LJBa','B20TC2TPBgW','DgLTzw91Da','ywrHDge','CMLLCW','zxzHBhvHDgu','s2v5ihbHDhrLCG','y2uIoIaWlJaTmq','EgXosgu','CgfYC2u','Aw5N','DMfSAwrHDgvxAq','z2v0','CNvLl2zHBhnLla','DgGGsLnptJOGEW','zg9TywLU','y2f0zwDVCNK','zvnRAwXS','BgfZDefJDgL2yq','ng5pEKfvwq','u2fTCgXLig1LBq','Aw9U','u2TPBgWGy3jLyq','y29UDgvUDa','Aw9UCW','BM93','C3rHyMLSAxr5','runptK5sruzvuW','zdOG','y2XHC3nPzNLdBW','q291BNq','y29TChjLC3nuBW','zMLUza','mte0mta5oePXtwzVDG','mteXndq5nhvXq3rbAa','Cgf0DgvYBG','u291CMnLCZOG','y3jLyxrLtwvTBW','DgLVBIbMywLSzq','DxbKyxrLtwvTBW','s1jczNe','C2TPBgXdB252zq','Dg9ju09tDhjPBG','mtmZndG4mfPTvuHrCG','rxzHBhvHDgLVBG','y29UzMLKzw5Jzq','z2v0vgLTzq','zMXVB3i','zMLSBa','ChvZAa','y29TCgXLDgu','BwvZC2fNzq','zwXdDu8','Bwf4','CNnPB24','yNvPBgrtA2LSBa','C29YDa','u291CMnLignVDq','w1nRAwXSxsa','ugf0DgvYBJOG','zNjVBq','C2v0','Aw1PBgfYig1LBq','BgvHCM5PBMC','zurHExm','DhjPBuvUza','mJbwDNLosuK','BMnL','mtqWntCXotbwthzVsuC','ywjZB3jIsw50BW','y291BNroB25jBG','C2f2zuvTyMvKza','BwLUq29UzMLKzq','C2TPBgW','BgvUz3rO','zw5HyMXLza','BgLZDe1LBw9YAq','zxnLBNqGysbYzq','BMf0DxjLoG','uMvZCg9Uzcb3Aq','yxzLCMfNzuvTyG','C2TPBgXFAwq','CMv2Awv3u2TPBa','lI4VBgXTl2LUza','Bwv0ytO','DgHmte0','BgfZDefJy2vZCW','C1noA2W','C3bSAxq','y29TChv0zuf2zq','ugznAg8','zxH0CMfJDe1LDa','q29UzMLKzw5Jzq','ig1LBw9YAwvZ','zMLSDgvY','B3jPzxm6','nduWmtC0ovvtqwzgza','lJb9','igzHAwXLzdOG','nhfrEhDqtq','zxGUANm','BNq6ia','AM9PBG','CMfNzvnPBwLSyq','C3rYAw5NAwz5','DgfNCW','C3rHCNrZv2L0Aa'];_0x3d1f=function(){return _0x53bd38;};return _0x3d1f();}function _0x3c9135(_0xbdff38,_0x179731){return _0x453e(_0x179731- -0x5b,_0xbdff38);}function _0x453e(_0x1637b8,_0x52341b){_0x1637b8=_0x1637b8-0xe5;const _0x3d1fde=_0x3d1f();let _0x453e93=_0x3d1fde[_0x1637b8];if(_0x453e['ecvAdd']===undefined){var _0x176012=function(_0x4651c1){const _0x41f789='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x48220a='',_0x23c3d3='';for(let _0x302172=0x0,_0x3586a4,_0x34bc7e,_0x2a95bc=0x0;_0x34bc7e=_0x4651c1['charAt'](_0x2a95bc++);~_0x34bc7e&&(_0x3586a4=_0x302172%0x4?_0x3586a4*0x40+_0x34bc7e:_0x34bc7e,_0x302172++%0x4)?_0x48220a+=String['fromCharCode'](0xff&_0x3586a4>>(-0x2*_0x302172&0x6)):0x0){_0x34bc7e=_0x41f789['indexOf'](_0x34bc7e);}for(let _0x3e541d=0x0,_0x107fd2=_0x48220a['length'];_0x3e541d<_0x107fd2;_0x3e541d++){_0x23c3d3+='%'+('00'+_0x48220a['charCodeAt'](_0x3e541d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x23c3d3);};_0x453e['WhJrMl']=_0x176012,_0x453e['SuaDMx']={},_0x453e['ecvAdd']=!![];}const _0x2a56a8=_0x3d1fde[0x0],_0x4504c9=_0x1637b8+_0x2a56a8,_0x362e92=_0x453e['SuaDMx'][_0x4504c9];return!_0x362e92?(_0x453e93=_0x453e['WhJrMl'](_0x453e93),_0x453e['SuaDMx'][_0x4504c9]=_0x453e93):_0x453e93=_0x362e92,_0x453e93;}import{randomUUID}from'node:crypto';import{cosineSimilarity}from'../extraction/similarity.js';const REAL_USAGE_THRESHOLD=0x2;function _0x859206(_0x450209,_0x3e4206){return _0x453e(_0x450209- -0x1cf,_0x3e4206);}export class SkillEvaluator{['db'];[_0x859206(-0x8a,-0xb8)];constructor(_0x4aa251,_0x35352a){this['db']=_0x4aa251;function _0x32d455(_0x14f0c7,_0x324302){return _0x859206(_0x324302-0x2,_0x14f0c7);}this[_0x32d455(-0xbb,-0x88)]=_0x35352a;}async[_0x3c9135(0x15d,0x10f)](_0x52a599,_0xa1afb0){function _0x43b01e(_0x48bd1a,_0x355874){return _0x859206(_0x48bd1a-0x3,_0x355874);}const _0x597ad6=this[_0xeb1ad7(0x35b,0x381)][_0x43b01e(-0xdc,-0xe3)+_0xeb1ad7(0x374,0x339)];if(!_0x597ad6?.[_0xeb1ad7(0x366,0x34e)])return{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]};const _0x148c71=[];function _0xeb1ad7(_0x4fd009,_0x229716){return _0x859206(_0x229716-0x40b,_0x4fd009);}const _0x51fca5=[];let _0x584418=0x0,_0x404f37=0x0;try{const _0x25d2c5=this['db']['listMemori'+'es']({'limit':0x1f4,'projectPath':_0x52a599}),_0x3b5e03=_0x25d2c5['filter'](_0x38d40f=>_0x38d40f[_0xeb1ad7(0x3e9,0x3b1)]!==_0x43b01e(-0xbc,-0xf8)&&_0x38d40f[_0xeb1ad7(0x3ac,0x389)]&&_0x38d40f[_0xeb1ad7(0x3b1,0x389)][_0x43b01e(-0xbb,-0xb3)]>0x0);if(_0x3b5e03[_0xeb1ad7(0x332,0x34d)]<_0x597ad6[_0x43b01e(-0x6e,-0x48)+_0xeb1ad7(0x3eb,0x3b9)])return{'candidates':_0x51fca5,'created':_0x584418,'skipped':_0x3b5e03[_0x43b01e(-0xbb,-0xfb)],'errors':_0x148c71};const _0x23412d=0x12c;let _0x248fea;if(_0x3b5e03[_0xeb1ad7(0x32b,0x34d)]>_0x23412d){const _0x421157=[..._0x3b5e03][_0x43b01e(-0xcd,-0x106)]((_0x57d2be,_0x33f9b8)=>new Date(_0x33f9b8[_0x43b01e(-0x9a,-0x5b)])[_0xeb1ad7(0x314,0x331)]()-new Date(_0x57d2be['updatedAt'])['getTime']()),_0x489775=Math['floor'](_0x23412d*0.7),_0x10d7df=_0x23412d-_0x489775,_0x42847e=_0x421157['slice'](0x0,_0x489775),_0x2dab48=new Set(_0x42847e['map'](_0x4f8559=>_0x4f8559['id'])),_0x374342=_0x421157['slice'](_0x489775)[_0xeb1ad7(0x37e,0x361)](_0x469b28=>!_0x2dab48[_0xeb1ad7(0x397,0x378)](_0x469b28['id'])),_0x10b7e0=[];for(let _0x3cccd8=_0x374342[_0xeb1ad7(0x358,0x34d)]-0x1;_0x3cccd8>0x0&&_0x10b7e0[_0xeb1ad7(0x371,0x34d)]<_0x10d7df;_0x3cccd8--){const _0x41e07e=Math[_0xeb1ad7(0x341,0x332)](Math['random']()*(_0x3cccd8+0x1));[_0x374342[_0x3cccd8],_0x374342[_0x41e07e]]=[_0x374342[_0x41e07e],_0x374342[_0x3cccd8]],_0x10b7e0[_0xeb1ad7(0x2f9,0x334)](_0x374342[_0x3cccd8]);}_0x248fea=[..._0x42847e,..._0x10b7e0];}else _0x43b01e(-0xae,-0xe4)!==_0x43b01e(-0xae,-0xaa)?(_0x337a75+=_0x3e2b82(_0x1c0ad6[_0x47609c]['embedding'],_0x52bf42[_0x5f3acc][_0x43b01e(-0x7f,-0x95)]),_0x564552++):_0x248fea=_0x3b5e03;const _0x565ca7=this[_0xeb1ad7(0x3b9,0x393)+_0xeb1ad7(0x3be,0x38f)](_0x248fea,_0x597ad6['similarity'+_0xeb1ad7(0x3a9,0x39c)]),_0x52558e=_0x25d2c5[_0x43b01e(-0xa7,-0x72)](_0x4ed2db=>_0x4ed2db[_0xeb1ad7(0x3e8,0x3b1)]===_0xeb1ad7(0x38e,0x34c));let _0x2fef02=_0x597ad6[_0xeb1ad7(0x366,0x373)]-_0x52558e[_0x43b01e(-0xbb,-0x7b)];for(const _0x5cd8ba of _0x565ca7){if(_0x2fef02<=0x0)break;const _0x4d2851=this['evaluateCl'+'uster'](_0x5cd8ba,_0x597ad6['minRepetit'+'ions'],_0x597ad6['minConfide'+_0x43b01e(-0xc2,-0xe6)]);if(!_0x4d2851){_0x404f37+=_0x5cd8ba[_0x43b01e(-0xbb,-0x107)];continue;}const _0x7a44e0=this[_0x43b01e(-0x83,-0x8c)+_0xeb1ad7(0x3f3,0x3b2)](_0x4d2851,_0x52558e);if(_0x7a44e0){_0x404f37+=_0x5cd8ba[_0x43b01e(-0xbb,-0xba)];continue;}_0x51fca5[_0xeb1ad7(0x36a,0x334)](_0x4d2851);if(_0x597ad6['llmValidat'+_0x43b01e(-0x52,-0x5e)]&&this['config'][_0x43b01e(-0x7a,-0x5b)]?.[_0xeb1ad7(0x334,0x34e)])try{const _0x21215b=await this[_0x43b01e(-0x5c,-0x98)+_0x43b01e(-0xb0,-0xd0)](_0x4d2851);if(!_0x21215b){_0x404f37+=_0x5cd8ba[_0x43b01e(-0xbb,-0x8c)];continue;}}catch(_0x38df81){if('SJnlZ'==='eFuJz'){if(_0x164a70[_0xeb1ad7(0x394,0x34d)]===0x0)return[];const _0x590a68=_0x580e8d[0x0][_0x43b01e(-0xbb,-0xbd)],_0x1dd255=new _0x2a7672(_0x590a68)[_0x43b01e(-0xd5,-0xb8)](0x0);for(const _0x260e99 of _0x5927af){for(let _0x54b795=0x0;_0x54b795<_0x590a68;_0x54b795++){_0x1dd255[_0x54b795]+=_0x260e99[_0x54b795];}}for(let _0x1c9952=0x0;_0x1c9952<_0x590a68;_0x1c9952++){_0x1dd255[_0x1c9952]/=_0x546a21[_0x43b01e(-0xbb,-0xfa)];}return _0x1dd255;}else _0x148c71[_0x43b01e(-0xd4,-0xfa)](_0x43b01e(-0x88,-0xad)+_0xeb1ad7(0x2f9,0x329)+_0xeb1ad7(0x3ba,0x3bd)+(_0x38df81 instanceof Error?_0x38df81['message']:String(_0x38df81)));}try{await this[_0xeb1ad7(0x2e2,0x322)+_0xeb1ad7(0x37e,0x38b)](_0x4d2851,_0xa1afb0),_0x584418++,_0x2fef02--;}catch(_0x4d74c0){_0x148c71['push'](_0xeb1ad7(0x3ab,0x3b7)+'tion\x20faile'+_0xeb1ad7(0x3a4,0x3bd)+(_0x4d74c0 instanceof Error?_0x4d74c0[_0xeb1ad7(0x36e,0x336)]:String(_0x4d74c0)));}}}catch(_0x144b1a){_0x148c71[_0xeb1ad7(0x317,0x334)](_0x43b01e(-0xd9,-0xf8)+_0xeb1ad7(0x37c,0x365)+(_0x144b1a instanceof Error?_0x144b1a[_0xeb1ad7(0x331,0x336)]:String(_0x144b1a)));}return{'candidates':_0x51fca5,'created':_0x584418,'skipped':_0x404f37,'errors':_0x148c71};}['clusterMem'+_0x3c9135(0xba,0xf8)](_0x2bd969,_0x24b00c){const _0x523248=new Set();function _0x1e5bf8(_0x10431f,_0x2692c6){return _0x859206(_0x2692c6-0x2e9,_0x10431f);}const _0x2579f3=[];function _0x3d49e3(_0x25e74f,_0x5ca791){return _0x859206(_0x25e74f-0x181,_0x5ca791);}for(const _0x5d9ac5 of _0x2bd969){if(_0x523248[_0x1e5bf8(0x264,0x256)](_0x5d9ac5['id']))continue;if(!_0x5d9ac5[_0x1e5bf8(0x25e,0x267)])continue;const _0x3a1d90=[_0x5d9ac5];_0x523248['add'](_0x5d9ac5['id']);for(const _0x1e3c95 of _0x2bd969){if(_0x523248['has'](_0x1e3c95['id']))continue;if(!_0x1e3c95[_0x1e5bf8(0x244,0x267)])continue;const _0x5e23bf=cosineSimilarity(_0x5d9ac5[_0x1e5bf8(0x262,0x267)],_0x1e3c95[_0x1e5bf8(0x27e,0x267)]);_0x5e23bf>=_0x24b00c&&(_0x3a1d90[_0x1e5bf8(0x205,0x212)](_0x1e3c95),_0x523248['add'](_0x1e3c95['id']));}_0x2579f3['push'](_0x3a1d90);}return _0x2579f3;}[_0x3c9135(0x148,0xf9)+_0x3c9135(0xe6,0x107)](_0x3aae20,_0x225860,_0x56bae1){const _0xe5ff31=0.5;if(_0x3aae20[_0x5dfae0(-0x1fd,-0x1bb)]<_0x225860)return null;const _0x30ec46=this['computeAve'+_0x5dfae0(-0x1e0,-0x1ff)+_0x4e0b5e(0x30c,0x2f1)](_0x3aae20);if(_0x30ec46<0.75)return null;let _0x173348=_0x30ec46;const _0x4fe7e7=new Set(_0x3aae20['map'](_0x3b1dd5=>_0x3b1dd5['sessionId'])[_0x4e0b5e(0x2d4,0x31d)](Boolean));_0x4fe7e7[_0x4e0b5e(0x2e8,0x337)]>=0x2&&(_0x173348*=1.2);const _0x5cd6c4=new Map();for(const _0x7d5cd7 of _0x3aae20){if(_0x5dfae0(-0x1a1,-0x1cc)===_0x4e0b5e(0x31c,0x313))_0x5cd6c4[_0x5dfae0(-0x20a,-0x1ef)](_0x7d5cd7[_0x4e0b5e(0x324,0x312)],(_0x5cd6c4['get'](_0x7d5cd7[_0x5dfae0(-0x199,-0x199)])??0x0)+0x1);else{const _0x2d5411=[..._0x11753f][_0x5dfae0(-0x20f,-0x1e1)]((_0x40e749,_0x47ce1b)=>_0x47ce1b[_0x5dfae0(-0x192,-0x1b8)]['length']-_0x40e749[_0x4e0b5e(0x32b,0x359)]['length']);_0xa2a909=_0x2d5411[0x0][_0x4e0b5e(0x32b,0x337)][_0x5dfae0(-0x1ab,-0x165)](0x0,0x1f4);}}let _0x5305ca=_0x3aae20[0x0][_0x5dfae0(-0x199,-0x168)];function _0x4e0b5e(_0x14aac2,_0x6f0740){return _0x3c9135(_0x6f0740,_0x14aac2-0x20a);}function _0x5dfae0(_0x954fee,_0xe0f4f){return _0x3c9135(_0xe0f4f,_0x954fee- -0x2b3);}let _0x32b497=0x0;for(const [_0x14b489,_0x146154]of _0x5cd6c4){_0x146154>_0x32b497&&(_0x32b497=_0x146154,_0x5305ca=_0x14b489);}_0x32b497/_0x3aae20['length']>=0.5&&(_0x173348*=1.1);_0x173348=Math[_0x4e0b5e(0x308,0x2c0)](_0x173348,0x1);if(_0x173348<_0xe5ff31)return null;let _0x3a7e82;const _0x34ec0b=_0x3aae20['filter'](_0x401285=>_0x401285[_0x4e0b5e(0x2fc,0x2b9)]&&_0x401285['embedding'][_0x4e0b5e(0x2c0,0x2f6)]>0x0);if(_0x34ec0b[_0x4e0b5e(0x2c0,0x2e6)]>=0x2){const _0x947e7e=_0x34ec0b[0x0]['embedding'][_0x5dfae0(-0x1fd,-0x24c)],_0x2ff8bb=new Array(_0x947e7e)['fill'](0x0);for(const _0x5283af of _0x34ec0b){for(let _0x387e31=0x0;_0x387e31<_0x947e7e;_0x387e31++){_0x2ff8bb[_0x387e31]+=_0x5283af[_0x5dfae0(-0x1c1,-0x20b)][_0x387e31]/_0x34ec0b['length'];}}let _0x6be14d=0x0,_0x313566=-0x1;for(let _0x50a6c6=0x0;_0x50a6c6<_0x34ec0b['length'];_0x50a6c6++){const _0x10477a=cosineSimilarity(_0x2ff8bb,_0x34ec0b[_0x50a6c6][_0x4e0b5e(0x2fc,0x338)]);if(_0x10477a>_0x313566){if(_0x4e0b5e(0x2aa,0x2ac)!==_0x5dfae0(-0x213,-0x1df)){const _0x432c1a=_0xafd7e0(_0x5e8a75,_0x58d76d[_0x13f2a3][_0x4e0b5e(0x2fc,0x33a)]);_0x432c1a>_0x5e8622&&(_0x543fa0=_0x432c1a,_0x1468cb=_0x2d7c70);}else _0x313566=_0x10477a,_0x6be14d=_0x50a6c6;}}_0x3a7e82=_0x34ec0b[_0x6be14d][_0x4e0b5e(0x32b,0x370)][_0x4e0b5e(0x312,0x319)](0x0,0x1f4);}else{const _0x1693a8=[..._0x3aae20][_0x4e0b5e(0x2ae,0x261)]((_0x1a049f,_0x2927e4)=>_0x2927e4[_0x4e0b5e(0x32b,0x2f1)][_0x5dfae0(-0x1fd,-0x1e1)]-_0x1a049f[_0x5dfae0(-0x192,-0x19f)][_0x5dfae0(-0x1fd,-0x203)]);_0x3a7e82=_0x1693a8[0x0][_0x4e0b5e(0x32b,0x365)][_0x4e0b5e(0x312,0x2c3)](0x0,0x1f4);}const _0x3003f0=new Map();for(const _0xc6362c of _0x3aae20){for(const _0x290bf8 of _0xc6362c[_0x5dfae0(-0x1de,-0x1bf)]){_0x3003f0[_0x4e0b5e(0x2b3,0x2ff)](_0x290bf8,(_0x3003f0[_0x5dfae0(-0x19d,-0x1cf)](_0x290bf8)??0x0)+0x1);}}const _0x25a655=Array[_0x4e0b5e(0x2b2,0x271)](_0x3003f0['entries']())[_0x4e0b5e(0x2d4,0x285)](([,_0x2ee039])=>_0x2ee039>=0x2)[_0x4e0b5e(0x2e4,0x29a)](([_0x240e12])=>_0x240e12);return{'clusterId':randomUUID(),'sourceMemories':_0x3aae20,'category':_0x5305ca,'confidence':_0x173348,'pattern':_0x3a7e82,'tags':[..._0x25a655,_0x5dfae0(-0x1fe,-0x204),_0x4e0b5e(0x30b,0x2c3)+'ed']};}async[_0x859206(-0x5f,-0x95)+_0x3c9135(0xd3,0xc1)](_0x1ebaaf){function _0x1e1b1b(_0x496799,_0xd935e6){return _0x3c9135(_0x496799,_0xd935e6-0x236);}function _0x37dd95(_0x268a0d,_0x496732){return _0x3c9135(_0x496732,_0x268a0d- -0x18);}try{if(_0x37dd95(0xae,0x81)!==_0x1e1b1b(0x2b3,0x2fc))_0x1ae55e=_0x18740c[_0x1e1b1b(0x2d1,0x2e3)]()+'\x0a'+_0x3aa734;else{const {createLLMClient:_0x39ccf2}=await import(_0x1e1b1b(0x2aa,0x2f5)+_0x37dd95(0xb8,0x91)),_0x1b9731=_0x39ccf2(this[_0x1e1b1b(0x30a,0x320)]['llm']),_0x179087=['Determine\x20'+_0x37dd95(0xd8,0x127)+_0x1e1b1b(0x2dc,0x2e0)+_0x1e1b1b(0x327,0x319)+_0x1e1b1b(0x2f3,0x2ef)+'usable\x20ski'+_0x1e1b1b(0x2f4,0x32c)+'.',_0x37dd95(0xa3,0xd6)+_0x37dd95(0x100,0x11c)+'\x22valid\x22:\x20t'+_0x1e1b1b(0x357,0x34d)+_0x37dd95(0xcf,0xc7)+_0x37dd95(0xf9,0xb4)+_0x37dd95(0xb5,0x85),'',_0x37dd95(0xc0,0x82)+_0x1ebaaf[_0x37dd95(0x102,0xdd)],_0x37dd95(0x8f,0x52)+_0x1ebaaf[_0x1e1b1b(0x2ca,0x2c5)],_0x37dd95(0x8d,0xce)+_0x1e1b1b(0x350,0x307)+_0x1ebaaf[_0x1e1b1b(0x368,0x333)+_0x1e1b1b(0x365,0x344)]['length'],'',_0x37dd95(0x106,0xf7)+_0x37dd95(0xb3,0xc3),..._0x1ebaaf[_0x1e1b1b(0x359,0x333)+_0x37dd95(0xf6,0xeb)][_0x37dd95(0xf0,0xb7)](0x0,0x3)[_0x37dd95(0xc2,0xe8)]((_0x12eee8,_0x3854f7)=>_0x3854f7+0x1+'.\x20'+_0x12eee8['content'][_0x1e1b1b(0x348,0x33e)](0x0,0xc8))][_0x1e1b1b(0x30c,0x308)]('\x0a'),_0x3d00e6=await _0x1b9731[_0x37dd95(0x86,0x79)](_0x179087),_0x4eca72=JSON[_0x1e1b1b(0x336,0x349)](_0x3d00e6);return _0x4eca72['valid']===!![]&&(_0x4eca72[_0x1e1b1b(0x299,0x2cf)]??0x0)>=(this['config'][_0x37dd95(0x7d,0x3a)+_0x1e1b1b(0x29e,0x2d8)]?.[_0x1e1b1b(0x2d5,0x2ea)+'nce']??0.7);}}catch(_0x52a3ae){const _0x26eaf1=_0x52a3ae instanceof Error?_0x52a3ae[_0x37dd95(0x87,0xbd)]:String(_0x52a3ae);if(_0x26eaf1[_0x37dd95(0xc5,0xec)](_0x1e1b1b(0x373,0x342))||_0x26eaf1['includes'](_0x1e1b1b(0x338,0x35b)+'ED')||_0x26eaf1['includes'](_0x37dd95(0xd0,0xa5)+'ed'))return![];return![];}}async[_0x3c9135(0x80,0x8b)+_0x859206(-0x80,-0x35)](_0x5130ad,_0x201da6){const _0x177591=new Date()[_0x3c7235(-0x175,-0x143)+'g'](),_0x500779=new Date(Date['now']()+(this['config'][_0x3c7235(-0x15c,-0x144)+'rsion']?.[_0x41ff1b(0x35c,0x35d)+_0x41ff1b(0x2b6,0x2ff)]??0x5a)*0x18*0x3c*0x3c*0x3e8)[_0x41ff1b(0x2c0,0x2e9)+'g'](),_0x39f83f=this['buildSkill'+_0x41ff1b(0x32e,0x33e)](_0x5130ad);let _0x3f3662=null;if(_0x201da6)try{_0x3f3662=await _0x201da6[_0x3c7235(-0xe8,-0xb2)+_0x41ff1b(0x330,0x335)]({'content':_0x5130ad[_0x41ff1b(0x2d2,0x2e2)],'tags':_0x5130ad[_0x41ff1b(0x314,0x328)][_0x3c7235(-0x128,-0x10f)](_0x1e6086=>!_0x1e6086['startsWith'](_0x3c7235(-0xe2,-0x119))&&_0x1e6086!==_0x3c7235(-0x118,-0x124)&&_0x1e6086!==_0x3c7235(-0xa4,-0xd8)+'ed'),'category':_0x5130ad[_0x41ff1b(0x39d,0x36d)]});}catch{}const _0xeeeedb={'sourceMemoryIds':_0x5130ad['sourceMemo'+_0x41ff1b(0x3af,0x361)][_0x3c7235(-0xcd,-0xff)](_0x2e4dae=>_0x2e4dae['id']),'crystallizedAt':_0x177591,'confidence':_0x5130ad[_0x3c7235(-0x180,-0x140)],'reviewDueAt':_0x500779,'activationCount':0x0,..._0x3f3662&&{'taxonomyDomain':_0x3f3662[_0x3c7235(-0xbb,-0xc0)],'taxonomySkillId':_0x3f3662[_0x3c7235(-0x130,-0x11c)]??undefined,'taxonomyNature':_0x3f3662[_0x41ff1b(0x308,0x34e)]??undefined,'taxonomyStability':_0x3f3662[_0x3c7235(-0x6b,-0xb5)]??undefined,'taxonomyConfidence':_0x3f3662['confidence']}},_0x17c617='meta:'+Buffer[_0x41ff1b(0x2c6,0x2fb)](JSON['stringify'](_0xeeeedb))[_0x41ff1b(0x320,0x340)]('base64'),_0x154987=[];if(_0x3f3662){_0x154987[_0x3c7235(-0x157,-0x13c)]('taxonomy:'+_0x3f3662['domain']);_0x3f3662[_0x41ff1b(0x348,0x310)]&&_0x154987[_0x41ff1b(0x2f1,0x2f0)]('taxonomy:'+_0x3f3662[_0x3c7235(-0xfa,-0x11c)]);if(_0x3f3662[_0x3c7235(-0xae,-0xde)]){if(_0x41ff1b(0x2cc,0x2e7)===_0x41ff1b(0x31a,0x2e7))_0x154987[_0x41ff1b(0x2db,0x2f0)](_0x41ff1b(0x2fd,0x30d)+_0x3f3662[_0x3c7235(-0xaf,-0xde)]);else{const _0x658ac8=_0x13435a['content']['split']('\x0a')[0x0][_0x3c7235(-0xbc,-0xd1)](0x0,0x96);_0xdb08aa[_0x41ff1b(0x2f7,0x2f0)]('-\x20'+_0x658ac8);}}}function _0x41ff1b(_0x52b352,_0x1b6429){return _0x859206(_0x1b6429-0x3c7,_0x52b352);}const _0x53fbac=this['db'][_0x41ff1b(0x2cd,0x2e4)+'ry']({'content':_0x39f83f,'category':'skill','tier':_0x3c7235(-0x103,-0xea),'tags':[..._0x5130ad[_0x3c7235(-0xf7,-0x104)],..._0x154987,_0x17c617],'projectPath':_0x5130ad['sourceMemo'+'ries'][0x0]?.[_0x3c7235(-0xf3,-0xd9)+'h']}),_0x380221=_0x5130ad[_0x3c7235(-0x11d,-0xdc)+_0x41ff1b(0x313,0x361)][_0x41ff1b(0x36e,0x32d)](_0x225ae8=>_0x225ae8[_0x3c7235(-0xa2,-0xe7)])[_0x41ff1b(0x337,0x31d)](_0x2e510b=>!!_0x2e510b&&_0x2e510b['length']>0x0);if(_0x380221[_0x41ff1b(0x331,0x309)]>0x0){const _0x482474=this[_0x3c7235(-0x111,-0x11d)+_0x41ff1b(0x30f,0x344)](_0x380221);this['db'][_0x41ff1b(0x2cc,0x306)+_0x41ff1b(0x36f,0x367)](_0x53fbac['id'],_0x482474);}function _0x3c7235(_0x5d6baa,_0x5a80e4){return _0x859206(_0x5a80e4- -0x65,_0x5d6baa);}return _0x53fbac;}[_0x3c9135(0x9b,0xbe)+'ls'](){const _0x3fce0f=new Date();function _0x439f23(_0x4df678,_0x12f652){return _0x859206(_0x4df678- -0x18,_0x12f652);}let _0x1a0658=0x0,_0x209d0b=0x0,_0x3e2c2f=0x0;function _0x33a162(_0x306c99,_0x3840aa){return _0x859206(_0x3840aa-0x483,_0x306c99);}let _0x16ca3c=0x0;const _0x140a5b=this['db'][_0x439f23(-0xd4,-0x10c)+'es']({'category':_0x439f23(-0xd7,-0x95),'limit':0x3e8});for(const _0x27518f of _0x140a5b){_0x1a0658++;const _0x3a87c9=this['extractMet'+_0x439f23(-0x7f,-0x87)](_0x27518f);if(!_0x3a87c9)continue;const _0x310769=new Date(_0x3a87c9[_0x33a162(0x42d,0x418)+'t']);if(_0x3fce0f<_0x310769)continue;let _0x27aebf;try{_0x27aebf=this['db'][_0x439f23(-0xda,-0xb9)+_0x439f23(-0x92,-0xdc)](_0x27518f['id']);}catch{_0x27aebf=null;}if(_0x27aebf===null){_0x16ca3c++;continue;}if(_0x27aebf<REAL_USAGE_THRESHOLD)this['db'][_0x439f23(-0xf9,-0xfb)+'ry'](_0x27518f['id'],{'category':_0x439f23(-0xe1,-0x9c),'tags':[..._0x27518f['tags'][_0x33a162(0x423,0x3d9)](_0x13fc18=>_0x13fc18!==_0x439f23(-0xd7,-0xa8)&&_0x13fc18!=='crystalliz'+'ed'&&_0x13fc18!==_0x33a162(0x43b,0x40e)+_0x33a162(0x42c,0x41a)),_0x33a162(0x45a,0x40e)+'om-skill']}),_0x209d0b++;else{const _0xa90dc7=new Date(Date[_0x439f23(-0x69,-0x78)]()+(this[_0x33a162(0x3f1,0x3f9)]['skillConve'+'rsion']?.[_0x439f23(-0x82,-0x7d)+'eDays']??0x5a)*0x18*0x3c*0x3c*0x3e8)[_0x33a162(0x3b9,0x3a5)+'g'](),_0x570d17={..._0x3a87c9,'reviewDueAt':_0xa90dc7,'activationCount':_0x27aebf,'lastActivatedAt':_0x27518f[_0x439f23(-0xca,-0xd7)+_0x33a162(0x3f0,0x3f5)]},_0xa8171e='meta:'+Buffer[_0x33a162(0x368,0x3b7)](JSON[_0x439f23(-0xb8,-0x6d)](_0x570d17))[_0x33a162(0x3ef,0x3fc)]('base64'),_0x36ac97=_0x27518f[_0x33a162(0x3c2,0x3e4)][_0x439f23(-0xc2,-0xf3)](_0x36b08b=>!_0x36b08b[_0x439f23(-0xb6,-0xd9)](_0x33a162(0x3c2,0x3cf)));_0x36ac97['push'](_0xa8171e),this['db'][_0x439f23(-0xf9,-0xed)+'ry'](_0x27518f['id'],{'tags':_0x36ac97}),_0x3e2c2f++;}}return{'reviewed':_0x1a0658,'demoted':_0x209d0b,'renewed':_0x3e2c2f,'unknownUsage':_0x16ca3c};}[_0x859206(-0xaf,-0x71)+_0x859206(-0xa1,-0x8b)+'rity'](_0x34c307){if(_0x34c307[_0x570813(0x112,0xf6)]<0x2)return 0x1;let _0x3e875f=0x0,_0x57dc5a=0x0;function _0x570813(_0xf1e399,_0x161c41){return _0x3c9135(_0x161c41,_0xf1e399-0x5c);}function _0xbdbda2(_0x54081c,_0x102315){return _0x3c9135(_0x54081c,_0x102315-0x189);}for(let _0x34459e=0x0;_0x34459e<_0x34c307[_0xbdbda2(0x246,0x23f)];_0x34459e++){for(let _0x4b7e43=_0x34459e+0x1;_0x4b7e43<_0x34c307[_0xbdbda2(0x202,0x23f)];_0x4b7e43++){_0x570813(0x140,0x125)!==_0x570813(0x140,0xf2)?_0x2f12af[_0x570813(0xf9,0x10c)](_0x570813(0x116,0xcf)+_0x2ffdf1['nature']):_0x34c307[_0x34459e][_0x570813(0x14e,0x14b)]&&_0x34c307[_0x4b7e43][_0x570813(0x14e,0x17a)]&&(_0x3e875f+=cosineSimilarity(_0x34c307[_0x34459e][_0x570813(0x14e,0x15e)],_0x34c307[_0x4b7e43][_0x570813(0x14e,0x121)]),_0x57dc5a++);}}return _0x57dc5a>0x0?_0x3e875f/_0x57dc5a:0x0;}[_0x3c9135(0x116,0xee)+_0x3c9135(0x162,0x11b)](_0x39d362,_0x5ea01b){const _0x2ef373=new Set(_0x39d362[_0x208b07(-0x20b,-0x1f9)+_0x208b07(-0x1fa,-0x228)]['map'](_0xb67a90=>_0xb67a90['id']));for(const _0x1bc84c of _0x5ea01b){const _0x2ea247=this[_0x201d60(-0x176,-0x16c)+_0x208b07(-0x1fb,-0x1fc)](_0x1bc84c);if(!_0x2ea247)continue;const _0x6c80a=new Set(_0x2ea247[_0x201d60(-0x140,-0x18b)+_0x208b07(-0x202,-0x1c5)]),_0x50abe5=[..._0x2ef373][_0x201d60(-0x173,-0x149)](_0x493276=>_0x6c80a[_0x208b07(-0x227,-0x1f5)](_0x493276))[_0x208b07(-0x252,-0x236)],_0x2deca6=_0x50abe5/Math[_0x201d60(-0x19c,-0x166)](_0x2ef373[_0x201d60(-0x15f,-0x16f)],_0x6c80a['size']);if(_0x2deca6>=0.7)return!![];}function _0x208b07(_0x20bc89,_0x6be192){return _0x859206(_0x20bc89- -0x194,_0x6be192);}function _0x201d60(_0x3ea0d8,_0x289dd5){return _0x859206(_0x3ea0d8- -0xc9,_0x289dd5);}return![];}[_0x3c9135(0x7a,0xa3)+_0x859206(-0x89,-0xd0)](_0x486b51){const _0x34b0a4=[];_0x34b0a4[_0x276a82(0x29d,0x279)](_0x276a82(0x2a6,0x2a2)+_0x486b51[_0x442b56(0x50d,0x4be)]),_0x34b0a4[_0x442b56(0x4dd,0x4cc)](''),_0x34b0a4['push']('Category:\x20'+_0x486b51[_0x276a82(0x31a,0x31d)]),_0x34b0a4[_0x276a82(0x29d,0x2b1)](_0x442b56(0x4bc,0x4bf)+_0x486b51['sourceMemo'+_0x276a82(0x30e,0x345)]['length']+_0x276a82(0x2c9,0x2a4)),_0x34b0a4[_0x276a82(0x29d,0x279)](_0x442b56(0x521,0x4f7)+':\x20'+(_0x486b51['confidence']*0x64)['toFixed'](0x0)+'%');function _0x276a82(_0x582985,_0x209238){return _0x859206(_0x582985-0x374,_0x209238);}function _0x442b56(_0x15af98,_0x19ee9b){return _0x859206(_0x19ee9b-0x5a3,_0x15af98);}if(_0x486b51['sourceMemo'+_0x276a82(0x30e,0x2e3)][_0x442b56(0x4e0,0x4e5)]>0x1){_0x34b0a4['push'](''),_0x34b0a4['push'](_0x276a82(0x310,0x322)+_0x442b56(0x4ee,0x514));for(const _0x535016 of _0x486b51[_0x276a82(0x2fd,0x30e)+_0x442b56(0x555,0x53d)]['slice'](0x0,0x3)){const _0xac7824=_0x535016[_0x442b56(0x535,0x550)][_0x442b56(0x4a5,0x4f3)]('\x0a')[0x0]['slice'](0x0,0x96);_0x34b0a4['push']('-\x20'+_0xac7824);}}return _0x34b0a4['join']('\x0a');}[_0x859206(-0xad,-0xb7)+_0x3c9135(0x11c,0x10d)](_0x554eed){const _0x365fea=_0x554eed[_0x105e0f(-0x2b0,-0x2ce)][_0x490def(0x47a,0x49f)](_0x1060cd=>_0x1060cd['startsWith']('meta:'));function _0x490def(_0x30e56a,_0x355657){return _0x859206(_0x30e56a-0x562,_0x355657);}function _0x105e0f(_0x1862fe,_0x2eeebe){return _0x859206(_0x1862fe- -0x211,_0x2eeebe);}if(!_0x365fea)return null;try{const _0x2a1db1=Buffer['from'](_0x365fea[_0x105e0f(-0x27d,-0x2cb)](0x5),'base64')[_0x105e0f(-0x298,-0x28a)](_0x490def(0x4cd,0x4cc));return JSON[_0x490def(0x501,0x4d4)](_0x2a1db1);}catch{return null;}}[_0x3c9135(0x97,0xbc)+_0x3c9135(0x133,0xf1)](_0x33fd21){if(_0x33fd21[_0x581874(0x3c0,0x3b8)]===0x0)return[];const _0x481419=_0x33fd21[0x0][_0x1de051(0x403,0x435)];function _0x1de051(_0x29dfc4,_0x24e401){return _0x859206(_0x29dfc4-0x4c1,_0x24e401);}const _0x4b1a93=new Array(_0x481419)[_0x581874(0x3a9,0x39e)](0x0);for(const _0x288488 of _0x33fd21){for(let _0x5009b1=0x0;_0x5009b1<_0x481419;_0x5009b1++){_0x4b1a93[_0x5009b1]+=_0x288488[_0x5009b1];}}for(let _0x2c2166=0x0;_0x2c2166<_0x481419;_0x2c2166++){if(_0x1de051(0x426,0x42d)!==_0x1de051(0x428,0x444))_0x4b1a93[_0x2c2166]/=_0x33fd21[_0x1de051(0x403,0x3f2)];else{const _0x4a4c44=_0x35bbc0[_0x1de051(0x422,0x44b)][_0x581874(0x38c,0x38e)](_0x4e27a1=>_0x4e27a1['startsWith']('meta:'));if(!_0x4a4c44)return null;try{const _0x26dd98=_0x16483c[_0x581874(0x3b3,0x3aa)](_0x4a4c44[_0x581874(0x3fb,0x40a)](0x5),'base64')['toString'](_0x581874(0x418,0x3e1));return _0x52e26a[_0x581874(0x3cc,0x415)](_0x26dd98);}catch{return null;}}}function _0x581874(_0x1449ec,_0x165a8a){return _0x859206(_0x165a8a-0x476,_0x1449ec);}return _0x4b1a93;}[_0x859206(-0xc3,-0xe4)+'Skill'](_0x2afe62){function _0x438511(_0x2443ba,_0x57a3d4){return _0x859206(_0x2443ba-0x515,_0x57a3d4);}if(!_0x2afe62[_0x438511(0x493,0x46f)]||_0x2afe62[_0x22fe7c(-0x26d,-0x245)]==='skill')return{'absorbed':![]};const _0x5a1abe=this['db'][_0x438511(0x459,0x478)+'es']({'limit':0xc8})[_0x438511(0x46b,0x4a2)](_0x282476=>_0x282476[_0x22fe7c(-0x26d,-0x2a5)]===_0x22fe7c(-0x2d2,-0x30b));function _0x22fe7c(_0x4aa056,_0x17f320){return _0x859206(_0x4aa056- -0x213,_0x17f320);}for(const _0x666505 of _0x5a1abe){if(!_0x666505[_0x438511(0x493,0x482)])continue;const _0x219665=cosineSimilarity(_0x2afe62['embedding'],_0x666505[_0x22fe7c(-0x295,-0x2e4)]);if(_0x219665<0.8)continue;const _0x92a46b=this[_0x438511(0x468,0x43c)+_0x22fe7c(-0x27a,-0x2a4)](_0x666505);if(!_0x92a46b)continue;if(_0x92a46b['sourceMemo'+_0x22fe7c(-0x281,-0x235)][_0x438511(0x47e,0x4b4)](_0x2afe62['id']))return{'absorbed':![]};_0x92a46b[_0x438511(0x49e,0x4c4)+_0x22fe7c(-0x281,-0x270)][_0x22fe7c(-0x2ea,-0x2ca)](_0x2afe62['id']),_0x92a46b[_0x438511(0x496,0x4d8)+_0x438511(0x42b,0x424)]=(_0x92a46b[_0x438511(0x496,0x4a3)+_0x22fe7c(-0x2fd,-0x349)]||0x0)+0x1,_0x92a46b[_0x438511(0x4bd,0x471)+_0x438511(0x4a5,0x4b0)]=new Date()[_0x22fe7c(-0x2f1,-0x2fe)+'g']();const _0x262071=_0x438511(0x461,0x47a)+Buffer['from'](JSON[_0x22fe7c(-0x2b3,-0x298)](_0x92a46b))[_0x22fe7c(-0x29a,-0x2e5)](_0x438511(0x481,0x4af)),_0x7b9083=_0x666505[_0x22fe7c(-0x2b2,-0x2af)][_0x438511(0x46b,0x47e)](_0x286479=>!_0x286479[_0x438511(0x477,0x458)](_0x438511(0x461,0x499))),_0x16d500='-\x20'+_0x2afe62[_0x22fe7c(-0x266,-0x26b)][_0x22fe7c(-0x2c3,-0x2f3)]('\x0a')[0x0][_0x438511(0x4a9,0x491)](0x0,0x96);let _0xd69710=_0x666505['content'];const _0x4dadf6=_0xd69710[_0x438511(0x465,0x46f)]('\x0a')[_0x22fe7c(-0x2bd,-0x2e3)](_0x31b7e6=>_0x31b7e6['startsWith']('-\x20'));return _0x4dadf6[_0x438511(0x457,0x449)]<0x5&&(_0xd69710=_0xd69710[_0x438511(0x44e,0x446)]()+'\x0a'+_0x16d500),this['db'][_0x438511(0x434,0x478)+'ry'](_0x666505['id'],{'content':_0xd69710,'tags':[..._0x7b9083,_0x262071]}),{'absorbed':!![],'skillId':_0x666505['id']};}return{'absorbed':![]};}}
|
package/dist/skill/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x190b03,_0x19329f){function _0x5e2259(_0x489923,_0x3e0821){return _0x5841(_0x489923-0x17a,_0x3e0821);}function _0x57a65e(_0x14b669,_0xf4c3df){return _0x5841(_0xf4c3df-0x2d6,_0x14b669);}var _0x243a5f=_0x190b03();while(!![]){try{var _0x569cd0=-parseInt(_0x57a65e(0x3a2,0x39e))/0x1*(parseInt(_0x57a65e(0x3a3,0x3a3))/0x2)+-parseInt(_0x5e2259(0x246,0x24a))/0x3+-parseInt(_0x57a65e(0x394,0x39a))/0x4+parseInt(_0x5e2259(0x240,0x243))/0x5+-parseInt(_0x57a65e(0x39a,0x399))/0x6*(parseInt(_0x57a65e(0x3a4,0x3a0))/0x7)+parseInt(_0x57a65e(0x3a5,0x39f))/0x8*(-parseInt(_0x57a65e(0x39e,0x3a1))/0x9)+parseInt(_0x5e2259(0x241,0x23c))/0xa*(parseInt(_0x57a65e(0x395,0x39b))/0xb);if(_0x569cd0===_0x19329f)break;else _0x243a5f['push'](_0x243a5f['shift']());}catch(_0x13a2f1){_0x243a5f['push'](_0x243a5f['shift']());}}}(_0x373e,0xf3792));function _0x373e(){var _0x38f2e6=['mZeZodKYnvzVrKvUEa','mtuWDgTzEffh','mtC1nZiYmuvMAfLvqW','mtq0mJy0offZrvnryq','nJq0C3nRt0LA','nZjeyuPgDhK','ndK5mZeZmufABxjluW','mMPLu3HfBG','mta0mZuYv2f5ugr3','ntyYndiXnKPfzfnbqW','nJa0mJu1m1vfwvHTzq'];_0x373e=function(){return _0x38f2e6;};return _0x373e();}function _0x5841(_0x563974,_0x35d100){_0x563974=_0x563974-0xc3;var _0x373e53=_0x373e();var _0x5841f3=_0x373e53[_0x563974];if(_0x5841['YuBixP']===undefined){var _0x2e1490=function(_0xd08078){var _0x37165b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5f13e5='',_0x5aeb31='';for(var _0x7e6dea=0x0,_0xe13b72,_0x3eb210,_0x970719=0x0;_0x3eb210=_0xd08078['charAt'](_0x970719++);~_0x3eb210&&(_0xe13b72=_0x7e6dea%0x4?_0xe13b72*0x40+_0x3eb210:_0x3eb210,_0x7e6dea++%0x4)?_0x5f13e5+=String['fromCharCode'](0xff&_0xe13b72>>(-0x2*_0x7e6dea&0x6)):0x0){_0x3eb210=_0x37165b['indexOf'](_0x3eb210);}for(var _0xd33c58=0x0,_0x300ab9=_0x5f13e5['length'];_0xd33c58<_0x300ab9;_0xd33c58++){_0x5aeb31+='%'+('00'+_0x5f13e5['charCodeAt'](_0xd33c58)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5aeb31);};_0x5841['AKwVpA']=_0x2e1490,_0x5841['gPUFDv']={},_0x5841['YuBixP']=!![];}var _0x4178e3=_0x373e53[0x0],_0x36bef7=_0x563974+_0x4178e3,_0x28af06=_0x5841['gPUFDv'][_0x36bef7];return!_0x28af06?(_0x5841f3=_0x5841['AKwVpA'](_0x5841f3),_0x5841['gPUFDv'][_0x36bef7]=_0x5841f3):_0x5841f3=_0x28af06,_0x5841f3;}export{SkillEvaluator}from'./evaluator.js';
|