a2a-memory 0.11.6 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/a2a/client.js +1 -1
- package/dist/a2a/discovery.js +1 -1
- package/dist/a2a/index.js +1 -1
- package/dist/a2a/types.js +1 -1
- package/dist/adapters/anthropic.js +1 -1
- package/dist/chunking/chunker.js +1 -1
- package/dist/claude/sync.d.ts +8 -2
- package/dist/claude/sync.js +1 -1
- package/dist/cli/commands/add.js +1 -1
- package/dist/cli/commands/claude-sync.d.ts +3 -3
- package/dist/cli/commands/claude-sync.js +1 -1
- package/dist/cli/commands/cleanup.js +1 -1
- package/dist/cli/commands/config.js +1 -1
- package/dist/cli/commands/edit.js +1 -1
- package/dist/cli/commands/embed.js +1 -1
- package/dist/cli/commands/extract.js +1 -1
- package/dist/cli/commands/health.js +1 -1
- package/dist/cli/commands/list.js +1 -1
- package/dist/cli/commands/migrate-chunks.js +1 -1
- package/dist/cli/commands/migrate-file-refs.js +1 -1
- package/dist/cli/commands/proficiency.js +1 -1
- package/dist/cli/commands/rm.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/setup-wizard.js +1 -1
- package/dist/cli/commands/setup.js +1 -1
- package/dist/cli/commands/skill.js +1 -1
- package/dist/cli/commands/status.js +1 -1
- package/dist/cli/commands/sync.js +1 -1
- package/dist/cli/commands/team.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/manager.js +1 -1
- package/dist/db/database.d.ts +45 -2
- package/dist/db/database.js +1 -1
- package/dist/embedding/e5-provider.js +1 -1
- package/dist/embedding/index.js +1 -1
- package/dist/embedding/local-provider.js +1 -1
- package/dist/embedding/openai-provider.js +1 -1
- package/dist/embedding/quantization.js +1 -1
- package/dist/extraction/dedup-manager.js +1 -1
- package/dist/extraction/emotion-filter.js +1 -1
- package/dist/extraction/extractor.d.ts +0 -3
- 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.d.ts +29 -0
- package/dist/hooks/shared.js +1 -1
- package/dist/hooks/stop.d.ts +21 -0
- package/dist/hooks/stop.js +1 -0
- 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.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/lifecycle/cleanup-scheduler.js +1 -1
- package/dist/lifecycle/cleanup.d.ts +1 -0
- package/dist/lifecycle/cleanup.js +1 -1
- package/dist/lifecycle/consolidation.d.ts +22 -0
- package/dist/lifecycle/consolidation.js +1 -0
- package/dist/lifecycle/index.d.ts +2 -0
- package/dist/lifecycle/index.js +1 -1
- package/dist/lifecycle/injection-flush.d.ts +32 -0
- package/dist/lifecycle/injection-flush.js +1 -0
- package/dist/lifecycle/quality-scorer.d.ts +5 -6
- package/dist/lifecycle/quality-scorer.js +1 -1
- package/dist/lifecycle/tiering.js +1 -1
- package/dist/llm/client.js +1 -1
- package/dist/llm/index.js +1 -1
- package/dist/proficiency/actr-engine.js +1 -1
- package/dist/proficiency/detection.js +1 -1
- package/dist/proficiency/index.js +1 -1
- package/dist/proficiency/tracker.js +1 -1
- package/dist/providers/adapters.js +1 -1
- package/dist/providers/detector.js +1 -1
- package/dist/search/adaptive-router.js +1 -1
- package/dist/search/index.js +1 -1
- package/dist/search/ranker.js +1 -1
- package/dist/search/reranker.js +1 -1
- package/dist/session/parser.js +1 -1
- package/dist/skill/evaluator.js +1 -1
- package/dist/skill/index.js +1 -1
- package/dist/sync/client.d.ts +7 -0
- package/dist/sync/client.js +1 -1
- package/dist/sync/encryption.js +1 -1
- package/dist/sync/index.js +1 -1
- package/dist/sync/queue.js +1 -1
- package/dist/sync/scheduler.js +1 -1
- package/dist/sync/synchronizer.js +1 -1
- package/dist/sync/team-synchronizer.js +1 -1
- package/dist/sync/vector-clock.js +1 -1
- package/dist/types/index.d.ts +12 -0
- package/dist/types/index.js +1 -1
- package/dist/utils/keychain.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4827a7(_0x3e1d1c,_0x26d051){return _0x979c(_0x3e1d1c- -0xbb,_0x26d051);}function _0x1767(){const _0x9bdda2=['y2f0zwDVCNK','z2vTAw5P','C29Tzq','y2HVC2u','AwrLCG','y29UDgvUDa','u3LAvNq','EenoD1O','qKjzq0i','Dg9mB3DLCKnHCW','zML4','nZu2mtbTvKjzCxa','DhLWzq','vNjXtMO','y29Kzv9Wyxr0zq','teLHqNO','nZjYsNz1A3G','mJe5r0jqv1zT','whfPy3i','y3jLyxrLzf9HDa','ywX3yxLZ','B2jQzwn0','C291CMnLuhjVDG','y29UzMLKzw5Jzq','zxjYB3jFC29SDq','C3rYAw5N','q0furuDpuLLFva','mteYnte4nhb1shnQua','zNjVBvvUAwzPzq','nZyWmJHPzwD2qMS','CuLby2O','DgfNCW','BMv2zxi','nJu2nJG0ue9Nuxvq','y29UDgv4Da','BwvTB3j5','ChjVDMLKzxi','DeHbvNq','Dgv4Da','zgvJAxnPB24','y29UDMvUDgLVBG','ChjLzMvYzw5Jzq','Aw5JBhvKzxm','zfLUwxu','DKLctLi','y2XHDwrL','vfLqrv9ut19dqq','Dg9vBMLMAwvK','otu0ote2mePsyvjdzq','DgvTCgXHDgu','y3jLyxrLx3rPBq','t19uwvbf','veDuvNy','Cgf0DgvYBG','vevht1jz','mJe3otmWnvfprg1jvG','B3j5','mJi2mdeYoeDgr2LxCG','uuLMvge','ChjLzMvY','y2fJAgvFAwq','otbHAu5RANq','y3jLyxrLzef0','BgfIzwXZ','DMfSDwu','Aw5MzxjdyxrLzW','B3bLBMfP'];_0x1767=function(){return _0x9bdda2;};return _0x1767();}(function(_0x1b00e7,_0x513fa8){function _0x30129b(_0x212ffb,_0x224576){return _0x979c(_0x224576-0x95,_0x212ffb);}const _0x18e4c8=_0x1b00e7();function _0x572bc8(_0x3de943,_0x12a555){return _0x979c(_0x12a555- -0x2ae,_0x3de943);}while(!![]){try{const _0x32a98f=parseInt(_0x30129b(0x24b,0x242))/0x1+-parseInt(_0x30129b(0x236,0x21d))/0x2+-parseInt(_0x572bc8(-0x123,-0x10b))/0x3*(parseInt(_0x30129b(0x233,0x244))/0x4)+-parseInt(_0x572bc8(-0xfc,-0x111))/0x5+parseInt(_0x30129b(0x21a,0x237))/0x6*(parseInt(_0x572bc8(-0xdb,-0xfb))/0x7)+-parseInt(_0x30129b(0x245,0x257))/0x8+parseInt(_0x30129b(0x227,0x21b))/0x9*(parseInt(_0x572bc8(-0x118,-0x122))/0xa);if(_0x32a98f===_0x513fa8)break;else _0x18e4c8['push'](_0x18e4c8['shift']());}catch(_0x216ed5){_0x18e4c8['push'](_0x18e4c8['shift']());}}}(_0x1767,0xabd93));function _0x13ee40(_0x124be0,_0x26f304){return _0x979c(_0x26f304-0x3bb,_0x124be0);}export class ClaudeAdapter{['provider']='claude';static [_0x13ee40(0x566,0x57b)+_0x13ee40(0x53b,0x540)]={'error':_0x4827a7(0xef,0xce)+'tion','pattern':_0x13ee40(0x554,0x55b)+'rn','decision':_0x4827a7(0xfe,0xe3),'preference':_0x13ee40(0x55d,0x575),'context':_0x4827a7(0xf9,0xed)};static [_0x13ee40(0x54d,0x567)+_0x4827a7(0x10a,0x11e)]={'error_solution':'error','code_pattern':_0x13ee40(0x556,0x53f),'decision':'decision','convention':_0x4827a7(0x100,0x103),'context':_0x4827a7(0xf9,0xea)};[_0x13ee40(0x57a,0x57c)](_0x284257){const _0x47b16f={'TGTVv':_0x745b(-0x166,-0x15e)},_0x5632a7=_0x284257[_0x745b(-0x162,-0x174)]??_0x47b16f[_0x50d261(0x43a,0x43f)];function _0x50d261(_0x137c93,_0x222404){return _0x4827a7(_0x137c93-0x372,_0x222404);}function _0x745b(_0x4cdcc8,_0x3d90cf){return _0x4827a7(_0x3d90cf- -0x257,_0x4cdcc8);}return{'id':_0x284257['id']??'','content':_0x284257[_0x745b(-0x16a,-0x17b)]??'','category':ClaudeAdapter['TYPE_TO_CA'+_0x50d261(0x43c,0x452)][_0x5632a7]??_0x47b16f[_0x745b(-0x17f,-0x18f)],'tags':_0x284257[_0x50d261(0x468,0x460)]??[],'metadata':{'originalType':_0x5632a7},'sourceProvider':_0x50d261(0x476,0x460),'createdAt':_0x284257['created_at'],'confidence':_0x284257['confidence']??0x1};}[_0x4827a7(0xf3,0xee)+'d'](_0x12148a){function _0x137397(_0x17738b,_0x34d726){return _0x4827a7(_0x17738b- -0x2f,_0x34d726);}function _0x5621dc(_0x20f854,_0xaadf63){return _0x4827a7(_0x20f854-0x437,_0xaadf63);}return{'id':_0x12148a['id'],'content':_0x12148a['content'],'type':ClaudeAdapter[_0x5621dc(0x528,0x514)+_0x5621dc(0x541,0x54c)][_0x12148a[_0x137397(0xa8,0x9b)]]??_0x137397(0xca,0xb5),'tags':_0x12148a[_0x5621dc(0x52d,0x51d)],'created_at':_0x12148a['createdAt'],'confidence':_0x12148a[_0x5621dc(0x525,0x514)]};}}export class GPTAdapter{[_0x4827a7(0xfb,0x109)]='openai';[_0x13ee40(0x574,0x57c)](_0x4829e2){function _0x32bc53(_0x544b49,_0x4e2b9f){return _0x13ee40(_0x4e2b9f,_0x544b49- -0x1a9);}function _0x3cd3eb(_0x922284,_0x152412){return _0x13ee40(_0x922284,_0x152412- -0x1fe);}const _0x14b501=_0x4829e2[_0x32bc53(0x3a9,0x3a4)]??_0x4829e2[_0x3cd3eb(0x356,0x34c)]??'';return{'id':_0x4829e2['id']??'','content':_0x14b501,'category':this[_0x3cd3eb(0x34b,0x34d)+_0x32bc53(0x399,0x3a3)](_0x14b501),'tags':_0x4829e2[_0x3cd3eb(0x36a,0x36e)]??[],'metadata':{'originalType':_0x4829e2[_0x32bc53(0x3b0,0x3ac)]},'sourceProvider':_0x3cd3eb(0x32d,0x34e),'createdAt':_0x4829e2[_0x3cd3eb(0x368,0x362)],'confidence':_0x4829e2[_0x32bc53(0x3bb,0x3b2)]??0x1};}[_0x13ee40(0x55a,0x569)+'d'](_0x37a27d){const _0x22594a={'vIBNR':_0xa4bc5d(0x1d,0x3)};function _0xa4bc5d(_0x39ff1b,_0x5a8659){return _0x13ee40(_0x39ff1b,_0x5a8659- -0x56d);}function _0xdd954(_0xc242a0,_0x58af9f){return _0x13ee40(_0x58af9f,_0xc242a0- -0x52e);}return{'id':_0x37a27d['id'],'type':_0x22594a[_0xdd954(0x4b,0x48)],'value':_0x37a27d[_0xdd954(0x24,0x2e)],'tags':_0x37a27d[_0xdd954(0x3e,0x5b)],'metadata':{'category':_0x37a27d['category'],'source':_0x37a27d[_0xdd954(0x35,0x2c)+_0xdd954(0x23,0x1a)]},'created_at':_0x37a27d[_0xa4bc5d(-0x37,-0x25)]};}[_0x4827a7(0xd5,0xb8)+'ory'](_0x8059aa){const _0x5c9a29={'tHAVt':_0x58710f(-0xec,-0xfe),'BBYCB':'bug','SyZVt':'pattern','HwMbK':'code_patte'+'rn','VrqNj':_0x58710f(-0xf3,-0xef),'Xqicr':_0x1b8f31(0x92,0x95),'LIaBz':_0x58710f(-0xfe,-0xea),'xCNwZ':_0x58710f(-0xd4,-0xc7)};function _0x58710f(_0xe89a8e,_0x5437ab){return _0x13ee40(_0x5437ab,_0xe89a8e- -0x643);}const _0x25f12b=_0x8059aa[_0x58710f(-0xed,-0xed)+'e']();if(['error',_0x5c9a29[_0x58710f(-0xd1,-0xc5)],_0x5c9a29[_0x58710f(-0xee,-0x106)]][_0x1b8f31(0x60,0x77)](_0x4d7d55=>_0x25f12b['includes'](_0x4d7d55)))return _0x1b8f31(0xab,0x8d)+'tion';if([_0x5c9a29[_0x58710f(-0xf0,-0xf9)],_0x58710f(-0xc5,-0xad)][_0x58710f(-0xf4,-0x112)](_0x29c79b=>_0x25f12b[_0x1b8f31(0x84,0x9f)](_0x29c79b)))return _0x5c9a29['HwMbK'];if(['decided',_0x5c9a29[_0x1b8f31(0x8e,0x82)],_0x58710f(-0xcf,-0xb2)][_0x1b8f31(0x5b,0x77)](_0x248089=>_0x25f12b[_0x1b8f31(0xb4,0x9f)](_0x248089)))return _0x1b8f31(0x7d,0x9c);if([_0x58710f(-0xe2,-0xd8),_0x5c9a29[_0x58710f(-0xe4,-0xf2)],_0x5c9a29[_0x58710f(-0xe7,-0xe6)]][_0x1b8f31(0x67,0x77)](_0x4bfb85=>_0x25f12b[_0x1b8f31(0xbd,0x9f)](_0x4bfb85)))return'convention';function _0x1b8f31(_0x7ec654,_0x32303f){return _0x13ee40(_0x7ec654,_0x32303f- -0x4d8);}return _0x5c9a29[_0x1b8f31(0x85,0x7c)];}}function _0x979c(_0x12d4a5,_0x1f2fb2){_0x12d4a5=_0x12d4a5-0x183;const _0x17670c=_0x1767();let _0x979c4d=_0x17670c[_0x12d4a5];if(_0x979c['weqGSd']===undefined){var _0x386a34=function(_0x5e6fd5){const _0x20b109='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x432c74='',_0x246d6d='';for(let _0x562990=0x0,_0x1cc0f8,_0x380214,_0x4e6aac=0x0;_0x380214=_0x5e6fd5['charAt'](_0x4e6aac++);~_0x380214&&(_0x1cc0f8=_0x562990%0x4?_0x1cc0f8*0x40+_0x380214:_0x380214,_0x562990++%0x4)?_0x432c74+=String['fromCharCode'](0xff&_0x1cc0f8>>(-0x2*_0x562990&0x6)):0x0){_0x380214=_0x20b109['indexOf'](_0x380214);}for(let _0xb8eb88=0x0,_0x5cb519=_0x432c74['length'];_0xb8eb88<_0x5cb519;_0xb8eb88++){_0x246d6d+='%'+('00'+_0x432c74['charCodeAt'](_0xb8eb88)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x246d6d);};_0x979c['yIxxNl']=_0x386a34,_0x979c['YETRTR']={},_0x979c['weqGSd']=!![];}const _0x5d11ed=_0x17670c[0x0],_0x4f94f3=_0x12d4a5+_0x5d11ed,_0x1dc963=_0x979c['YETRTR'][_0x4f94f3];return!_0x1dc963?(_0x979c4d=_0x979c['yIxxNl'](_0x979c4d),_0x979c['YETRTR'][_0x4f94f3]=_0x979c4d):_0x979c4d=_0x1dc963,_0x979c4d;}export class GeminiAdapter{[_0x13ee40(0x58e,0x571)]=_0x13ee40(0x538,0x54e);[_0x4827a7(0x106,0x117)](_0x5cd633){function _0x25dee8(_0x68e705,_0x4d8988){return _0x4827a7(_0x68e705-0xf,_0x4d8988);}const _0x5b060f={'cNjPR':_0x11b4ed(0x5f,0x55),'dHaFN':function(_0x2aa394,_0x5e21d7){return _0x2aa394===_0x5e21d7;},'QIfTa':_0x25dee8(0xfb,0x115)};function _0x11b4ed(_0x4b4b5b,_0x56b8ff){return _0x4827a7(_0x56b8ff- -0x9b,_0x4b4b5b);}let _0x36863d='';if(typeof _0x5cd633[_0x11b4ed(0x33,0x41)]===_0x5b060f['cNjPR'])_0x36863d=_0x5cd633[_0x11b4ed(0x3f,0x41)];else _0x5b060f['dHaFN'](typeof _0x5cd633[_0x11b4ed(0x35,0x41)],_0x5b060f[_0x25dee8(0xdd,0xc5)])&&_0x5cd633[_0x11b4ed(0x1f,0x41)]!==null&&(_0x36863d=_0x5cd633['content'][_0x25dee8(0x10c,0xfe)]??'');return{'id':_0x5cd633['id']??'','content':_0x36863d,'category':_0x5cd633[_0x11b4ed(0x2d,0x3c)]??_0x11b4ed(0x6e,0x5e),'tags':_0x5cd633[_0x11b4ed(0x35,0x38)]??[],'metadata':{'cacheId':_0x5cd633[_0x11b4ed(0x30,0x35)]},'sourceProvider':'gemini','createdAt':_0x5cd633[_0x25dee8(0x118,0xff)+'e'],'confidence':_0x5cd633[_0x11b4ed(0x36,0x53)]??0x1};}[_0x13ee40(0x54a,0x569)+'d'](_0x571aec){function _0xfeeff(_0x1e26f7,_0x17378a){return _0x13ee40(_0x1e26f7,_0x17378a- -0xe2);}function _0x55bd95(_0x56a9ae,_0x2d966f){return _0x13ee40(_0x56a9ae,_0x2d966f- -0x1ba);}return{'id':_0x571aec['id'],'content':{'text':_0x571aec[_0x55bd95(0x37e,0x398)]},'category':_0x571aec[_0xfeeff(0x453,0x46b)],'labels':_0x571aec['tags'],'metadata':{'source':_0x571aec['sourceProv'+'ider']},'create_time':_0x571aec[_0xfeeff(0x46f,0x466)]};}}export function createAdapter(_0x42c40d){function _0x50764c(_0x489db5,_0xb4b23a){return _0x4827a7(_0x489db5- -0xc6,_0xb4b23a);}const _0x5d87a2={'qIAcj':'openai','dYnYu':'gemini'};function _0x4fe5d4(_0x2a1cd7,_0x20c885){return _0x4827a7(_0x2a1cd7- -0x2a5,_0x20c885);}switch(_0x42c40d){case'claude':return new ClaudeAdapter();case _0x5d87a2[_0x50764c(0x2f,0x3d)]:return new GPTAdapter();case _0x5d87a2[_0x50764c(0x3c,0x47)]:return new GeminiAdapter();default:return new ClaudeAdapter();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x572eff,_0x4b139f){function _0x56f1a5(_0x51bfa1,_0x40d09f){return _0x29d5(_0x51bfa1-0x10a,_0x40d09f);}const _0x349d3e=_0x572eff();function _0xdca3f2(_0x42b51c,_0x312ac6){return _0x29d5(_0x42b51c-0x10b,_0x312ac6);}while(!![]){try{const _0x3820f5=-parseInt(_0x56f1a5(0x1b1,0x1c1))/0x1+-parseInt(_0xdca3f2(0x1b7,0x1cb))/0x2+parseInt(_0x56f1a5(0x18f,0x18e))/0x3+parseInt(_0x56f1a5(0x1a8,0x192))/0x4*(-parseInt(_0xdca3f2(0x196,0x190))/0x5)+parseInt(_0x56f1a5(0x1b3,0x1bd))/0x6*(-parseInt(_0x56f1a5(0x196,0x1a7))/0x7)+parseInt(_0xdca3f2(0x1ac,0x19d))/0x8*(parseInt(_0x56f1a5(0x194,0x188))/0x9)+parseInt(_0x56f1a5(0x19a,0x1a3))/0xa;if(_0x3820f5===_0x4b139f)break;else _0x349d3e['push'](_0x349d3e['shift']());}catch(_0x721e76){_0x349d3e['push'](_0x349d3e['shift']());}}}(_0x59bd,0xa7912));export function detectProvider(_0x5e67bc){const _0x3f3fed={'uKcpe':'claude','oPDWJ':'openai','dTrEr':function(_0x55b460,_0xc622a6){return _0x55b460<_0xc622a6;},'yfpLw':_0x766523(0x351,0x365)+_0x766523(0x36d,0x35d),'slqYE':_0x1638e8(0x147,0x137)+_0x1638e8(0x10f,0x120),'phMxy':_0x766523(0x378,0x367),'cdGff':_0x1638e8(0x138,0x13f)+_0x1638e8(0x113,0x126)+_0x1638e8(0x135,0x120),'ccgtQ':'ANTHROPIC_'+'API_KEY\x20en'+'v','UqqSh':function(_0x3aa629,_0x405a8b){return _0x3aa629<_0x405a8b;},'nLoEI':'pBKjJ','Zzmyc':_0x766523(0x350,0x362),'YkFpd':function(_0x29f363,_0x7e2323){return _0x29f363!==_0x7e2323;},'ZXcls':_0x1638e8(0x137,0x135),'wUAai':_0x1638e8(0x12c,0x12b)+_0x1638e8(0x112,0x125)},_0x2ab691=_0x5e67bc??process.env,_0x208ac9=[];let _0x3a2bb6=_0x3f3fed[_0x766523(0x383,0x372)];function _0x766523(_0x1e50ad,_0x2afba6){return _0x29d5(_0x2afba6-0x2ca,_0x1e50ad);}let _0x4b8d76=0x0;if(_0x2ab691[_0x1638e8(0x13d,0x13f)+_0x1638e8(0x121,0x119)]||_0x2ab691[_0x1638e8(0x12d,0x129)+_0x1638e8(0x133,0x123)]){_0x3a2bb6=_0x1638e8(0x14e,0x13c),_0x4b8d76=0.95;if(_0x2ab691[_0x766523(0x37b,0x377)+_0x1638e8(0x110,0x119)])_0x208ac9[_0x766523(0x378,0x36e)](_0x3f3fed['cdGff']);if(_0x2ab691[_0x766523(0x374,0x361)+_0x1638e8(0x116,0x123)])_0x208ac9['push'](_0x3f3fed[_0x1638e8(0x117,0x116)]);}if(_0x2ab691['OPENAI_API'+_0x1638e8(0x12b,0x11b)]||_0x2ab691['GPT_MODEL']){if(_0x3f3fed[_0x766523(0x35d,0x36a)](_0x4b8d76,0.9)){if(_0x3f3fed[_0x766523(0x36f,0x35c)]===_0x3f3fed[_0x766523(0x34e,0x35f)]){const _0x3d525d=_0x56bb5f[_0x766523(0x364,0x370)+'ER'][_0x766523(0x380,0x378)+'e']();[_0x3f3fed[_0x1638e8(0x142,0x13d)],_0x3f3fed[_0x766523(0x381,0x36c)],_0x1638e8(0x113,0x118)][_0x1638e8(0x11c,0x131)](_0x3d525d)&&(_0x16cba7=_0x3d525d,_0x174051=0x1,_0x15766d['push']('A2A_PROVID'+'ER='+_0x3d525d));}else _0x3a2bb6=_0x3f3fed['oPDWJ'],_0x4b8d76=0.9;}if(_0x2ab691[_0x766523(0x362,0x365)+_0x1638e8(0x107,0x11b)])_0x208ac9[_0x1638e8(0x121,0x136)](_0x1638e8(0x120,0x12d)+_0x766523(0x348,0x35d));if(_0x2ab691[_0x766523(0x349,0x359)])_0x208ac9[_0x766523(0x36e,0x36e)](_0x3f3fed['slqYE']);}if(_0x2ab691[_0x766523(0x35b,0x366)+_0x1638e8(0x110,0x11b)]||_0x2ab691[_0x1638e8(0x115,0x12b)+_0x1638e8(0x11c,0x11b)]){if(_0x3f3fed[_0x766523(0x366,0x357)](_0x4b8d76,0.85)){if(_0x3f3fed[_0x766523(0x368,0x360)](_0x3f3fed['ZXcls'],_0x766523(0x36c,0x36d))){_0x3f3fed[_0x1638e8(0x112,0x11f)](_0xada382,0.9)&&(_0x1ed591=_0x3f3fed['oPDWJ'],_0x4c2e76=0.9);if(_0x169bf4['OPENAI_API'+'_KEY'])_0x53b0de[_0x1638e8(0x131,0x136)](_0x3f3fed[_0x1638e8(0x128,0x12c)]);if(_0x390025[_0x766523(0x360,0x359)])_0x942ae1[_0x766523(0x375,0x36e)](_0x3f3fed['slqYE']);}else _0x3a2bb6=_0x1638e8(0x124,0x118),_0x4b8d76=0.85;}if(_0x2ab691[_0x1638e8(0x11e,0x12e)+_0x1638e8(0x11a,0x11b)])_0x208ac9[_0x1638e8(0x126,0x136)](_0x766523(0x361,0x366)+_0x1638e8(0x115,0x125));if(_0x2ab691[_0x766523(0x34f,0x363)+'_KEY'])_0x208ac9['push'](_0x3f3fed['wUAai']);}if(_0x2ab691[_0x1638e8(0x143,0x138)+'ER']){const _0x34534f=_0x2ab691[_0x1638e8(0x133,0x138)+'ER'][_0x766523(0x36d,0x378)+'e']();[_0x3f3fed[_0x766523(0x386,0x375)],_0x3f3fed[_0x1638e8(0x12e,0x134)],_0x1638e8(0x123,0x118)][_0x766523(0x377,0x369)](_0x34534f)&&(_0x3a2bb6=_0x34534f,_0x4b8d76=0x1,_0x208ac9[_0x1638e8(0x147,0x136)]('A2A_PROVID'+_0x1638e8(0x114,0x11a)+_0x34534f));}function _0x1638e8(_0x102f55,_0x4f9259){return _0x29d5(_0x4f9259-0x92,_0x102f55);}return{'provider':_0x3a2bb6,'confidence':_0x4b8d76,'evidence':_0x208ac9};}function _0x29d5(_0x51c0bd,_0x2e21c3){_0x51c0bd=_0x51c0bd-0x84;const _0x59bdcb=_0x59bd();let _0x29d520=_0x59bdcb[_0x51c0bd];if(_0x29d5['LHLeZb']===undefined){var _0x19d7bd=function(_0x298642){const _0x482ac6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x563216='',_0x40e72d='';for(let _0xf7bf15=0x0,_0x2e8711,_0x19ed7f,_0x5cc269=0x0;_0x19ed7f=_0x298642['charAt'](_0x5cc269++);~_0x19ed7f&&(_0x2e8711=_0xf7bf15%0x4?_0x2e8711*0x40+_0x19ed7f:_0x19ed7f,_0xf7bf15++%0x4)?_0x563216+=String['fromCharCode'](0xff&_0x2e8711>>(-0x2*_0xf7bf15&0x6)):0x0){_0x19ed7f=_0x482ac6['indexOf'](_0x19ed7f);}for(let _0x96b0cc=0x0,_0x1bdd22=_0x563216['length'];_0x96b0cc<_0x1bdd22;_0x96b0cc++){_0x40e72d+='%'+('00'+_0x563216['charCodeAt'](_0x96b0cc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x40e72d);};_0x29d5['tagxZh']=_0x19d7bd,_0x29d5['ZwHAyK']={},_0x29d5['LHLeZb']=!![];}const _0x4bc5fb=_0x59bdcb[0x0],_0x16ddca=_0x51c0bd+_0x4bc5fb,_0x44ff98=_0x29d5['ZwHAyK'][_0x16ddca];return!_0x44ff98?(_0x29d520=_0x29d5['tagxZh'](_0x29d520),_0x29d5['ZwHAyK'][_0x16ddca]=_0x29d520):_0x29d520=_0x44ff98,_0x29d520;}function _0x59bd(){const _0x5c8ff8=['mtG0nJKYou1jExLbBa','z2vTAw5P','rv9wrvjtsu9o','rvi9','x0Tfwq','mtHQvxLbB0e','mti5nvv3rMjHCG','nJnRuxf2DM4','zfrYrxi','zw52','r1bux01prevm','mtK1nZy5nZbStNzVDLy','qvbjx0Tfwq','BKXVruK','x0TfwsbLBNy','rv9wrvjtsu9oia','wNPTEwm','wwTgCgq','qu5usfjpueLdxW','AezXsgS','r0vnsu5jx0fqsq','EwzWthC','t1bftKfjx0fqsq','r09pr0Xfx0fqsq','Dw5RBM93BG','mtuYodrqruDizMO','Aw5JBhvKzxm','vxfXu2G','mZm2oty4ofDlzKrSBG','B1bev0O','u2zdCg8','ChvZAa','r1bux01prevmia','qtjbx1bst1zjra','mte2ntyXnNzwtwfMCG','CgHnEhK','mtq5nJu4qxL5sgjX','y2XHDwrL','DuTJCgu','nJK5mZmYrhrHA0L6','q0Xbvurfx0npra','Dg9mB3DLCKnHCW','y2nNDfe'];_0x59bd=function(){return _0x5c8ff8;};return _0x59bd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2938df(_0x294673,_0x19d097){return _0x3572(_0x294673-0x16d,_0x19d097);}(function(_0x177404,_0x356e89){function _0x41611d(_0x546c5d,_0x44d839){return _0x3572(_0x44d839- -0x2b4,_0x546c5d);}function _0x4f1093(_0x58ca50,_0x5fb3cf){return _0x3572(_0x5fb3cf- -0xca,_0x58ca50);}const _0x746be9=_0x177404();while(!![]){try{const _0x58274f=-parseInt(_0x4f1093(0x6a,0x59))/0x1+parseInt(_0x4f1093(0x67,0x5b))/0x2+parseInt(_0x4f1093(0x5f,0x60))/0x3*(parseInt(_0x41611d(-0x1ad,-0x1a3))/0x4)+parseInt(_0x41611d(-0x1aa,-0x1a4))/0x5*(parseInt(_0x41611d(-0x194,-0x197))/0x6)+-parseInt(_0x41611d(-0x18d,-0x18c))/0x7+-parseInt(_0x4f1093(0x6b,0x5d))/0x8*(parseInt(_0x4f1093(0x59,0x5f))/0x9)+-parseInt(_0x41611d(-0x196,-0x19d))/0xa*(parseInt(_0x4f1093(0x48,0x4f))/0xb);if(_0x58274f===_0x356e89)break;else _0x746be9['push'](_0x746be9['shift']());}catch(_0x512681){_0x746be9['push'](_0x746be9['shift']());}}}(_0x5382,0xd94f2));const CODE_PATTERNS=[/\b(error|exception|traceback|stack\s*trace|stderr)\b/i,/\b(import|require|from|export|module)\s+['"`]/,/\b(function|class|interface|type|const|let|var|def|async)\b/,/[{}()\[\]<>].*[{}()\[\]<>]/,/\b\w+\.\w+\.\w+/,/\b\d+\.\d+\.\d+/,/(?:https?:\/\/|\/[\w/]+\.\w+)/],SEMANTIC_PATTERNS=[/\b(how|why|what|when|where|which|explain|describe)\b/i,/(어떻게|왜|무엇|언제|어디|설명|방법)/,/\?$/,/\b(similar|like|related|compare|difference|versus|vs)\b/i,/(비슷한|관련|비교|차이|대안)/,/\b(best practice|pattern|approach|architecture|design)\b/i,/(패턴|접근법|아키텍처|설계|구조)/];function _0x5382(){const _0x35c74f=['zgv0zwn0zwq','y2XHC3nPzNK','DhjPBq','EsaO','mtbWvgj3rKG','mZq4rgzls0vd','BgvUz3rO','yxnZAwzPy2f0Aq','u2HVCNqGCxvLCG','u2vTyw50AwmGCq','CIbTzxnZywDLia','mtm3mtbgCw9kuxe','DgvZDa','odHrwgjbt3G','C3bSAxq','thfuAMq','C29Tzq','mta5mJeZogfnA3fSwa','CM4GB3iGzxjYBW','q29KzsbWyxr0zq','qMzhA2G','DgvK','DwvYEsbKzxrLyW','oty4odi3qKPcu0DI','uwX3zfq','mZe3mtaXnMTmEwnlra','ihDVCMrZkq','mtiYota0twvPrhLT','ode3oty0zLnhDwzs','ntrtCLriEue','ndq2muPjzg90AW','C2LTCgXL','rgvMyxvSDcbJBa'];_0x5382=function(){return _0x35c74f;};return _0x5382();}function _0x3572(_0x5ff1e0,_0x5719dc){_0x5ff1e0=_0x5ff1e0-0x10d;const _0x5382d8=_0x5382();let _0x3572dd=_0x5382d8[_0x5ff1e0];if(_0x3572['XMYQrD']===undefined){var _0x495f9d=function(_0x2c94bd){const _0x57a97d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x253ef7='',_0xb3c722='';for(let _0x2a5d67=0x0,_0x2a9407,_0x49f1cb,_0x19821a=0x0;_0x49f1cb=_0x2c94bd['charAt'](_0x19821a++);~_0x49f1cb&&(_0x2a9407=_0x2a5d67%0x4?_0x2a9407*0x40+_0x49f1cb:_0x49f1cb,_0x2a5d67++%0x4)?_0x253ef7+=String['fromCharCode'](0xff&_0x2a9407>>(-0x2*_0x2a5d67&0x6)):0x0){_0x49f1cb=_0x57a97d['indexOf'](_0x49f1cb);}for(let _0x49ae3a=0x0,_0x30e075=_0x253ef7['length'];_0x49ae3a<_0x30e075;_0x49ae3a++){_0xb3c722+='%'+('00'+_0x253ef7['charCodeAt'](_0x49ae3a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xb3c722);};_0x3572['uOskxo']=_0x495f9d,_0x3572['TpCwbd']={},_0x3572['XMYQrD']=!![];}const _0x58c4f0=_0x5382d8[0x0],_0x54b5c7=_0x5ff1e0+_0x58c4f0,_0x26fc71=_0x3572['TpCwbd'][_0x54b5c7];return!_0x26fc71?(_0x3572dd=_0x3572['uOskxo'](_0x3572dd),_0x3572['TpCwbd'][_0x54b5c7]=_0x3572dd):_0x3572dd=_0x26fc71,_0x3572dd;}export class AdaptiveRouter{[_0x2938df(0x27a,0x272)](_0xa48623){const _0x196ca2={'BfGkh':_0x518711(0x104,0x114)+_0x59bae7(-0x3b,-0x3c)+_0x59bae7(-0x54,-0x44)+_0x518711(0x129,0x122),'LqTjd':'semantic','veDLR':_0x518711(0x10e,0x10a)+_0x59bae7(-0x38,-0x38)+_0x59bae7(-0x46,-0x39),'QlwdT':_0x518711(0x131,0x121)+_0x59bae7(-0x4a,-0x47)+'on'},_0x3c85e6=_0xa48623[_0x59bae7(-0x48,-0x4c)](),_0x2ae409=_0x3c85e6[_0x518711(0x104,0x10f)](/\s+/)[_0x518711(0x102,0x107)];if(_0x2ae409<=0x2)return{'complexity':'simple','useFTS':!![],'useVector':![],'useReranker':![],'reason':_0x59bae7(-0x3e,-0x46)+_0x518711(0x100,0x104)+_0x2ae409+_0x518711(0x10c,0x11b)};const _0x363ba7=CODE_PATTERNS['some'](_0x1d4114=>_0x1d4114['test'](_0x3c85e6));if(_0x363ba7)return{'complexity':'complex','useFTS':!![],'useVector':!![],'useReranker':!![],'reason':_0x196ca2[_0x518711(0x106,0x115)]};const _0x54ddde=SEMANTIC_PATTERNS[_0x59bae7(-0x36,-0x3e)](_0x37f432=>_0x37f432[_0x59bae7(-0x35,-0x42)](_0x3c85e6));if(_0x54ddde)return{'complexity':_0x196ca2['LqTjd'],'useFTS':!![],'useVector':!![],'useReranker':![],'reason':_0x196ca2['veDLR']};function _0x59bae7(_0x387a74,_0x5edb70){return _0x2938df(_0x5edb70- -0x2c7,_0x387a74);}function _0x518711(_0x1dc672,_0x1989b3){return _0x2938df(_0x1989b3- -0x178,_0x1dc672);}if(_0x2ae409>=0x5)return{'complexity':_0x196ca2[_0x59bae7(-0x4f,-0x3f)],'useFTS':!![],'useVector':!![],'useReranker':![],'reason':'Long\x20query'+'\x20('+_0x2ae409+_0x59bae7(-0x24,-0x34)};return{'complexity':_0x518711(0x10f,0x120),'useFTS':!![],'useVector':![],'useReranker':![],'reason':_0x196ca2[_0x59bae7(-0x45,-0x36)]};}}
|
package/dist/search/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4cd724,_0x57aedd){var _0x2becaf=_0x4cd724();function _0x16a4b0(_0x27d9e6,_0x19212a){return _0x5130(_0x27d9e6-0x311,_0x19212a);}function _0x542b11(_0x27e9eb,_0x5602af){return _0x5130(_0x5602af-0x3d,_0x27e9eb);}while(!![]){try{var _0x5c12e7=parseInt(_0x542b11(0x1a3,0x1a0))/0x1+-parseInt(_0x16a4b0(0x46e,0x472))/0x2*(parseInt(_0x542b11(0x19d,0x19d))/0x3)+-parseInt(_0x542b11(0x19d,0x199))/0x4+-parseInt(_0x16a4b0(0x46f,0x46c))/0x5+parseInt(_0x16a4b0(0x46b,0x46d))/0x6*(parseInt(_0x16a4b0(0x472,0x473))/0x7)+-parseInt(_0x542b11(0x19f,0x19f))/0x8+-parseInt(_0x542b11(0x198,0x19c))/0x9*(-parseInt(_0x542b11(0x195,0x198))/0xa);if(_0x5c12e7===_0x57aedd)break;else _0x2becaf['push'](_0x2becaf['shift']());}catch(_0x4d8700){_0x2becaf['push'](_0x2becaf['shift']());}}}(_0x224a,0x7f2b6));export{HybridRanker}from'./ranker.js';function _0x5130(_0x111b33,_0x5068f5){_0x111b33=_0x111b33-0x15a;var _0x224a22=_0x224a();var _0x5130f7=_0x224a22[_0x111b33];if(_0x5130['HVqCMc']===undefined){var _0xaffb36=function(_0x9ba268){var _0x587a65='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x2c9a8f='',_0x5330ee='';for(var _0x6afa56=0x0,_0x20f73d,_0xf63eb3,_0x487857=0x0;_0xf63eb3=_0x9ba268['charAt'](_0x487857++);~_0xf63eb3&&(_0x20f73d=_0x6afa56%0x4?_0x20f73d*0x40+_0xf63eb3:_0xf63eb3,_0x6afa56++%0x4)?_0x2c9a8f+=String['fromCharCode'](0xff&_0x20f73d>>(-0x2*_0x6afa56&0x6)):0x0){_0xf63eb3=_0x587a65['indexOf'](_0xf63eb3);}for(var _0x1d2d32=0x0,_0x40de87=_0x2c9a8f['length'];_0x1d2d32<_0x40de87;_0x1d2d32++){_0x5330ee+='%'+('00'+_0x2c9a8f['charCodeAt'](_0x1d2d32)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5330ee);};_0x5130['AlXgFY']=_0xaffb36,_0x5130['VIsKBV']={},_0x5130['HVqCMc']=!![];}var _0x8a8af=_0x224a22[0x0],_0x249011=_0x111b33+_0x8a8af,_0x3ffdd1=_0x5130['VIsKBV'][_0x249011];return!_0x3ffdd1?(_0x5130f7=_0x5130['AlXgFY'](_0x5130f7),_0x5130['VIsKBV'][_0x249011]=_0x5130f7):_0x5130f7=_0x3ffdd1,_0x5130f7;}function _0x224a(){var _0x4e8bb5=['mM92CfLUDq','mZuYoduZnvDsD1Pxyq','mZzeEhbYvvm','mJy4nZy3m3DZq0nJuG','mJm2odK0wuzVyLPk','mZiZntG0ofbPC2TKDq','nZC1nZi0vejvsxLf','otzfAuHWwgi','mZGYody0mhvlD3HcDG','mti4nJC0ohjste9SzG'];_0x224a=function(){return _0x4e8bb5;};return _0x224a();}export{AdaptiveRouter}from'./adaptive-router.js';export{CrossEncoderReranker}from'./reranker.js';
|
package/dist/search/ranker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2a1bc0,_0x1cc11c){function _0x59cb1c(_0x33f471,_0x17bf20){return _0x1d5e(_0x33f471- -0x2c6,_0x17bf20);}const _0x9dd38a=_0x2a1bc0();function _0x1285e6(_0x3555bd,_0x2602b6){return _0x1d5e(_0x2602b6-0x13a,_0x3555bd);}while(!![]){try{const _0x210a04=parseInt(_0x59cb1c(-0x1b4,-0x1a5))/0x1+-parseInt(_0x59cb1c(-0x1cd,-0x1e7))/0x2+-parseInt(_0x59cb1c(-0x1c6,-0x1b8))/0x3+-parseInt(_0x59cb1c(-0x1cc,-0x1e2))/0x4*(-parseInt(_0x59cb1c(-0x1c3,-0x1d3))/0x5)+parseInt(_0x59cb1c(-0x1c2,-0x1c1))/0x6*(-parseInt(_0x1285e6(0x24a,0x22f))/0x7)+-parseInt(_0x59cb1c(-0x1a0,-0x194))/0x8*(-parseInt(_0x1285e6(0x253,0x238))/0x9)+parseInt(_0x59cb1c(-0x1ab,-0x1a8))/0xa*(parseInt(_0x59cb1c(-0x1b3,-0x1bc))/0xb);if(_0x210a04===_0x1cc11c)break;else _0x9dd38a['push'](_0x9dd38a['shift']());}catch(_0x56ac79){_0x9dd38a['push'](_0x9dd38a['shift']());}}}(_0x4fdf,0x5b1b8));function _0x30ce57(_0x8ee7ca,_0x1893e2){return _0x1d5e(_0x8ee7ca-0x90,_0x1893e2);}function _0x1d5e(_0x5cd880,_0x2a6806){_0x5cd880=_0x5cd880-0xf4;const _0x4fdf31=_0x4fdf();let _0x1d5ebb=_0x4fdf31[_0x5cd880];if(_0x1d5e['vvDEjU']===undefined){var _0x2dbaea=function(_0x432613){const _0xc0b5b0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x10860b='',_0x58e650='';for(let _0x5bee6e=0x0,_0x49b50a,_0x1ac566,_0x28c237=0x0;_0x1ac566=_0x432613['charAt'](_0x28c237++);~_0x1ac566&&(_0x49b50a=_0x5bee6e%0x4?_0x49b50a*0x40+_0x1ac566:_0x1ac566,_0x5bee6e++%0x4)?_0x10860b+=String['fromCharCode'](0xff&_0x49b50a>>(-0x2*_0x5bee6e&0x6)):0x0){_0x1ac566=_0xc0b5b0['indexOf'](_0x1ac566);}for(let _0x137e73=0x0,_0x216472=_0x10860b['length'];_0x137e73<_0x216472;_0x137e73++){_0x58e650+='%'+('00'+_0x10860b['charCodeAt'](_0x137e73)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x58e650);};_0x1d5e['wNmJNK']=_0x2dbaea,_0x1d5e['RIYSgr']={},_0x1d5e['vvDEjU']=!![];}const _0x234d7a=_0x4fdf31[0x0],_0xe90ba1=_0x5cd880+_0x234d7a,_0x4c9dc4=_0x1d5e['RIYSgr'][_0xe90ba1];return!_0x4c9dc4?(_0x1d5ebb=_0x1d5e['wNmJNK'](_0x1d5ebb),_0x1d5e['RIYSgr'][_0xe90ba1]=_0x1d5ebb):_0x1d5ebb=_0x4c9dc4,_0x1d5ebb;}function _0x4fdf(){const _0x57638b=['DMfSDwvZ','mZGZntHyr1nyrKe','ALruAui','mtqWotu3mwnsAKDKDG','zNrZ','ChvZAa','mZvns0Tkrgm','nMffsgHrva','z2v0sg91CNnbzW','BM93','y2f0zwDVCNLcBW','DgLLCG','BgjbA1C','C291CMnLCW','uwzZALq','s3z5rNi','DxbKyxrLzef0','DgLLCKjVB3n0','CMvJzw5JEurLyW','B3n0','ywrKu2nVCMu','ndaWnZm0tuzJt05v','mtiXntu3n2Xqz0X5ra','CMfUAW','zNjVBq','rgLfAuK','whLVA0u','CLPOz0W','CgfYzw50swq','CMvJzw5JEq','nZbdqwn4se8','uefju2u','CfjIC1u','wwDhAhy','Eurprxy','D2vPz2H0CW','C2XPy2u','DMvJDg9Y','Dg9tDhjPBMC','BwvTB3j5','qM9LANC','otC2DuDut0LS','C2LwCvK','y2f0zwDVCNK','Dg90ywXty29Yzq','Cg93','C29YDa','nda0ntG1m2ffvhr5uG','BgvUz3rO','C2v0','C3bSAxq','mtmZnJu4oeXcte1mCG','mJi1nZq4AKLAyLHk','zurTu0C','z0r6s3i'];_0x4fdf=function(){return _0x57638b;};return _0x4fdf();}const CATEGORY_BOOST={'error_solution':1.2,'code_pattern':1.2,'decision':1.1,'convention':1.1,'skill':1.5,'rule':1.5,'context':0x1,'project_knowledge':0x1,'learning':0x1};function _0x56e6cb(_0xb23f27,_0x4039be){return _0x1d5e(_0x4039be- -0x2b6,_0xb23f27);}const TIER_BOOST={'semantic':1.2,'episodic':0x1,'working':0.8};export class HybridRanker{['k'];[_0x56e6cb(-0x197,-0x196)];[_0x30ce57(0x197,0x1a5)+_0x30ce57(0x1a0,0x1a7)];['tierBoost'];[_0x30ce57(0x19f,0x19c)+'ay'];constructor(_0x1f1ddc){function _0x2a90f5(_0x127b34,_0x32bade){return _0x30ce57(_0x32bade-0xab,_0x127b34);}function _0x2fe103(_0x596aba,_0x2cf2d1){return _0x30ce57(_0x2cf2d1- -0x2f,_0x596aba);}if(typeof _0x1f1ddc==='number'){const _0x21e03f='3|1|2|0|4'[_0x2a90f5(0x23e,0x233)]('|');let _0x5c8ab3=0x0;while(!![]){switch(_0x21e03f[_0x5c8ab3++]){case'0':this['tierBoost']=![];continue;case'1':this['weights']={'fts':0x1,'vector':0x1,'recency':0x1};continue;case'2':this[_0x2a90f5(0x23d,0x242)+_0x2fe103(0x181,0x171)]=![];continue;case'3':this['k']=_0x1f1ddc;continue;case'4':this[_0x2fe103(0x154,0x170)+'ay']=![];continue;}break;}}else{const _0x1d0a02=_0x1f1ddc??{};this['k']=_0x1d0a02['k']??0x3c,this['weights']={'fts':_0x1d0a02[_0x2fe103(0x19a,0x181)]?.[_0x2fe103(0x162,0x162)]??0x1,'vector':_0x1d0a02['weights']?.['vector']??0x1,'recency':_0x1d0a02[_0x2fe103(0x193,0x181)]?.[_0x2a90f5(0x24a,0x255)]??0x1},this[_0x2fe103(0x14e,0x168)+'ost']=_0x1d0a02[_0x2a90f5(0x227,0x242)+_0x2a90f5(0x245,0x24b)]??![],this[_0x2fe103(0x158,0x16f)]=_0x1d0a02['tierBoost']??![],this[_0x2a90f5(0x246,0x24a)+'ay']=_0x1d0a02[_0x2fe103(0x184,0x170)+'ay']??![];}}[_0x30ce57(0x1a4,0x1a5)](_0x225f08,_0x1a8f0a,_0x8fb5d){function _0x51b726(_0x194b52,_0x16c744){return _0x56e6cb(_0x194b52,_0x16c744-0x65a);}const _0x1c8408={'pRbsU':function(_0x18d4d8,_0x5f3d0b){return _0x18d4d8+_0x5f3d0b;},'rZhgL':function(_0x105a91,_0x56d94e){return _0x105a91/_0x56d94e;},'DiEiI':'fts','KvyFr':function(_0x36cad1,_0x32d052){return _0x36cad1>_0x32d052;},'lbAkW':function(_0x504ff2,_0x58d117){return _0x504ff2===_0x58d117;},'gDzKr':function(_0x4d8c0b,_0x456c4b){return _0x4d8c0b+_0x456c4b;},'LFGyN':'vFhWi'},_0x24ac16=_0x225f08[_0x14c0fa(-0xf8,-0xee)](0x0,0x1f4),_0x52168d=_0x1a8f0a[_0x51b726(0x4cd,0x4c5)](0x0,0x1f4),_0x43c86a=_0x8fb5d?.[_0x51b726(0x4c6,0x4c5)](0x0,0x1f4),_0x9fe58d=new Map();for(let _0x26d840=0x0;_0x26d840<_0x24ac16[_0x14c0fa(-0x114,-0x119)];_0x26d840++){const _0x4068fb=_0x24ac16[_0x26d840],_0x1352d7=_0x1c8408[_0x14c0fa(-0xec,-0xf2)](_0x26d840,0x1),_0x4d142c=_0x1c8408[_0x14c0fa(-0xfa,-0xf7)](this[_0x51b726(0x4bf,0x4c4)][_0x51b726(0x492,0x4a5)],this['k']+_0x1352d7);this['addScore'](_0x9fe58d,_0x4068fb[_0x14c0fa(-0x101,-0xeb)],_0x4d142c,_0x1c8408[_0x51b726(0x4a1,0x4ba)],_0x1352d7);}for(let _0x563cbd=0x0;_0x563cbd<_0x52168d[_0x14c0fa(-0x106,-0x119)];_0x563cbd++){const _0x92b579=_0x52168d[_0x563cbd],_0x630220=_0x563cbd+0x1,_0x3f669f=this[_0x51b726(0x4df,0x4c4)][_0x14c0fa(-0xd3,-0xed)]/(this['k']+_0x630220);this[_0x14c0fa(-0x106,-0xfe)](_0x9fe58d,_0x92b579[_0x14c0fa(-0xd7,-0xeb)],_0x3f669f,_0x51b726(0x4c3,0x4c6),_0x630220);}function _0x14c0fa(_0x53c801,_0x5ae898){return _0x56e6cb(_0x53c801,_0x5ae898-0xa7);}if(_0x43c86a&&_0x1c8408[_0x14c0fa(-0x10b,-0x103)](_0x43c86a[_0x14c0fa(-0x114,-0x119)],0x0)){if(_0x1c8408[_0x51b726(0x4c1,0x4ad)](_0x51b726(0x49a,0x4af),_0x14c0fa(-0x109,-0xf0)))_0x46e1cb[_0x51b726(0x4aa,0x49b)](_0x2d81f1['id'],{'memory':_0x2fe708,'totalScore':_0x13e552,'sources':[{'type':_0x4ee5e6,'rank':_0x13842e}]});else for(let _0x4e54b8=0x0;_0x4e54b8<_0x43c86a[_0x51b726(0x4b4,0x49a)];_0x4e54b8++){const _0x53c4f3=_0x43c86a[_0x4e54b8],_0x1a4343=_0x1c8408[_0x51b726(0x486,0x4a0)](_0x4e54b8,0x1);let _0x4f32a8;if(this[_0x51b726(0x4bf,0x4b3)+'ay']){const _0x49f970=this[_0x51b726(0x4be,0x4a9)+'o'](_0x53c4f3[_0x14c0fa(-0xe9,-0x102)]);_0x4f32a8=this[_0x14c0fa(-0xd3,-0xef)][_0x14c0fa(-0xfe,-0xf5)]*Math[_0x14c0fa(-0xfd,-0xe5)](_0x1c8408['gDzKr'](_0x49f970,0x1),-0.5);}else _0x4f32a8=this[_0x51b726(0x4d6,0x4c4)][_0x51b726(0x4a2,0x4be)]/(this['k']+_0x1a4343);this[_0x14c0fa(-0xe6,-0xfe)](_0x9fe58d,_0x53c4f3,_0x4f32a8,'recency',_0x1a4343);}}if(this[_0x51b726(0x4c1,0x4ab)+_0x51b726(0x4bf,0x4b4)]||this[_0x14c0fa(-0x10c,-0x101)])for(const _0x467171 of _0x9fe58d[_0x14c0fa(-0xfb,-0x112)]()){if('vFhWi'===_0x1c8408['LFGyN']){let _0x10f99b=0x1;this[_0x14c0fa(-0x103,-0x108)+_0x51b726(0x4a7,0x4b4)]&&(_0x10f99b*=CATEGORY_BOOST[_0x467171['memory'][_0x14c0fa(-0xea,-0xe7)]]??0x1),this['tierBoost']&&(_0x10f99b*=TIER_BOOST[_0x467171[_0x14c0fa(-0xf4,-0xeb)][_0x51b726(0x49c,0x4ac)]]??0x1),_0x467171['totalScore']*=_0x10f99b;}else{const _0xefefa0=_0x5b34e5??{};this['k']=_0xefefa0['k']??0x3c,this[_0x51b726(0x4db,0x4c4)]={'fts':_0xefefa0['weights']?.[_0x14c0fa(-0xf8,-0x10e)]??0x1,'vector':_0xefefa0[_0x14c0fa(-0x10a,-0xef)]?.['vector']??0x1,'recency':_0xefefa0[_0x51b726(0x4d8,0x4c4)]?.['recency']??0x1},this[_0x51b726(0x4b0,0x4ab)+'ost']=_0xefefa0[_0x14c0fa(-0x123,-0x108)+'ost']??![],this['tierBoost']=_0xefefa0[_0x14c0fa(-0xfa,-0x101)]??![],this[_0x14c0fa(-0xf3,-0x100)+'ay']=_0xefefa0[_0x51b726(0x4a6,0x4b3)+'ay']??![];}}const _0xf81a63=Array[_0x51b726(0x4af,0x4b9)](_0x9fe58d[_0x51b726(0x4b2,0x4a1)]())[_0x51b726(0x496,0x498)]((_0x28f58a,_0x624b86)=>_0x624b86['totalScore']-_0x28f58a['totalScore'])['map'](_0x108d10=>({'memory':_0x108d10[_0x51b726(0x4bb,0x4c8)],'score':_0x108d10[_0x51b726(0x4c9,0x4cd)],'sources':_0x108d10[_0x14c0fa(-0x115,-0x105)],'parentId':_0x108d10[_0x14c0fa(-0xf0,-0xeb)][_0x51b726(0x4a9,0x4bd)]}));return _0xf81a63;}['addScore'](_0x31c67c,_0x541229,_0x4cb12c,_0x4c7c77,_0x227f7f){function _0x139922(_0x180c50,_0x191523){return _0x56e6cb(_0x180c50,_0x191523-0x516);}const _0x56b31b=_0x31c67c['get'](_0x541229['id']);function _0x57b51d(_0xc0601b,_0x5f0345){return _0x56e6cb(_0x5f0345,_0xc0601b-0x5d);}_0x56b31b?(_0x56b31b['totalScore']+=_0x4cb12c,_0x56b31b[_0x139922(0x380,0x36a)][_0x139922(0x346,0x362)]({'type':_0x4c7c77,'rank':_0x227f7f})):_0x31c67c[_0x57b51d(-0x162,-0x17d)](_0x541229['id'],{'memory':_0x541229,'totalScore':_0x4cb12c,'sources':[{'type':_0x4c7c77,'rank':_0x227f7f}]});}[_0x30ce57(0x195,0x1a3)+'o'](_0x24027f){function _0x4f3740(_0xab9d4c,_0xacbad8){return _0x30ce57(_0xacbad8-0x34,_0xab9d4c);}const _0x226e3e={'Boejw':function(_0x99084,_0x59c916){return _0x99084-_0x59c916;}},_0xcab539=Date[_0x4f3740(0x1b0,0x1ca)](),_0x2a6899=new Date(_0x24027f)['getTime']();function _0x5746b7(_0x2c2ca5,_0x180855){return _0x30ce57(_0x2c2ca5-0x8a,_0x180855);}return Math['max'](0x0,_0x226e3e[_0x5746b7(0x23f,0x24b)](_0xcab539,_0x2a6899)/(0x3e8*0x3c*0x3c));}}export function computeEmbeddingHash(_0x301ca5,_0x53f75f=0x20){const _0x60b72a={'PAISe':function(_0x3e869c,_0xa0e388){return _0x3e869c<_0xa0e388;},'eDmSG':function(_0x2d0d51,_0x5ea325){return _0x2d0d51===_0x5ea325;},'jTTiB':function(_0x583e96,_0x315603){return _0x583e96+_0x315603;},'YgGhv':function(_0x49ed04,_0x499004){return _0x49ed04*_0x499004;},'siVqY':function(_0x385239,_0x4a44c2){return _0x385239*_0x4a44c2;},'XyokE':function(_0xaed1bf,_0x37e7da){return _0xaed1bf<_0x37e7da;}},_0x5ae235=[];function _0x52e4ef(_0x3781ef,_0x3f5c40){return _0x56e6cb(_0x3f5c40,_0x3781ef-0x559);}function _0xff016e(_0x476c3f,_0x1dd890){return _0x56e6cb(_0x1dd890,_0x476c3f-0x4b);}for(let _0x3c96e0=0x0;_0x3c96e0<_0x53f75f;_0x3c96e0++){let _0x254c55=0x0;for(let _0x4b9ea4=0x0;_0x60b72a[_0x52e4ef(0x3bf,0x3cf)](_0x4b9ea4,_0x301ca5[_0x52e4ef(0x399,0x3b2)]);_0x4b9ea4++){const _0x1b24a6=_0x60b72a[_0xff016e(-0x170,-0x167)]((_0x60b72a[_0x52e4ef(0x3a2,0x38a)](_0x60b72a[_0xff016e(-0x14d,-0x13f)](_0x3c96e0,0x1f),_0x60b72a[_0x52e4ef(0x3c1,0x3c7)](_0x4b9ea4,0x11))+0x7)%0x2,0x0)?0x1:-0x1;_0x254c55+=_0x60b72a[_0xff016e(-0x144,-0x131)](_0x301ca5[_0x4b9ea4],_0x1b24a6);}_0x5ae235[_0x52e4ef(0x3a5,0x3b5)](_0x254c55>=0x0?0x1:0x0);}let _0x320da8='';for(let _0x4cd41c=0x0;_0x60b72a[_0xff016e(-0x154,-0x157)](_0x4cd41c,_0x53f75f);_0x4cd41c+=0x4){let _0x188c66=0x0;for(let _0x10bb08=0x0;_0x10bb08<0x4&&_0x4cd41c+_0x10bb08<_0x53f75f;_0x10bb08++){_0x188c66|=_0x5ae235[_0x4cd41c+_0x10bb08]<<0x3-_0x10bb08;}_0x320da8+=_0x188c66[_0xff016e(-0x148,-0x14d)](0x10);}return _0x320da8;}
|
|
1
|
+
function _0x42f2ed(_0xbf5128,_0x406057){return _0x1908(_0xbf5128-0xcb,_0x406057);}(function(_0x308c77,_0x50b8ac){function _0x52c70f(_0x5807c7,_0x14d450){return _0x1908(_0x5807c7-0x281,_0x14d450);}const _0x24575b=_0x308c77();function _0x2d535a(_0x182f4f,_0x5131ad){return _0x1908(_0x5131ad- -0x2ad,_0x182f4f);}while(!![]){try{const _0x374469=-parseInt(_0x2d535a(-0x1a9,-0x1ac))/0x1*(-parseInt(_0x52c70f(0x364,0x366))/0x2)+-parseInt(_0x2d535a(-0x1b6,-0x1b8))/0x3*(-parseInt(_0x52c70f(0x37e,0x386))/0x4)+parseInt(_0x2d535a(-0x1b5,-0x1d1))/0x5+parseInt(_0x52c70f(0x35e,0x35d))/0x6+-parseInt(_0x2d535a(-0x1bd,-0x1d2))/0x7+parseInt(_0x52c70f(0x37d,0x38b))/0x8*(-parseInt(_0x2d535a(-0x1a4,-0x1bb))/0x9)+-parseInt(_0x2d535a(-0x1a7,-0x1b5))/0xa*(parseInt(_0x52c70f(0x386,0x365))/0xb);if(_0x374469===_0x50b8ac)break;else _0x24575b['push'](_0x24575b['shift']());}catch(_0x1769a3){_0x24575b['push'](_0x24575b['shift']());}}}(_0x21b2,0x7cd2f));const CATEGORY_BOOST={'error_solution':1.2,'code_pattern':1.2,'decision':1.1,'convention':1.1,'skill':1.5,'rule':1.5,'context':0x1,'project_knowledge':0x1,'learning':0x1};function _0xdacef3(_0x373455,_0x3ac0c7){return _0x1908(_0x373455-0x15b,_0x3ac0c7);}function _0x21b2(){const _0xef230f=['r3DLruW','Dg9tDhjPBMC','zw9dEeC','nteYEMPgvwXe','ne9pv3vmAG','C3vpzK8','Cu9KyKu','Bwf4','nu5pqwrWrq','zMvfB08','BNvTyMvY','y2f0zwDVCNK','otq2odKXmgLhBwPyva','y2f0zwDVCNLcBW','A3fhrg4','zLLPzvC','CevIsva','DgXIDMS','C052vKu','CMvJzw5JEurLyW','mNWWFdr8mxWZ','vuLrvgO','vgvoDxa','DgLLCG','se9JA1K','u2X2rhy','DMfSDwvZ','B3n0','CgfYzw50swq','Cg93','CMvJzw5JEq','DeLOtKG','DersqLG','C2v0','DxbKyxrLzef0','C291CMnLCW','BffivxO','ChH1zKy','tvjwtKW','mtu2mdiZyLLvr21P','mJqYmJiWnwzwshDQAa','mZK4ndu4ohneAgXKqG','z2v0','Dxjgv0C','z2v0sg91CNnbzW','C29YDa','zNrZ','nZaWndreuvPgCuW','CxvHBgL0EvnJBW','ywrKu2nVCMu','Du9Pqve','txjqzNu','Bg9zEg8','C3bSAxq','s1zAshC','BgvUz3rO','Dg90ywXty29Yzq','D2vPz2H0CW','DgLLCKjVB3n0','qM1frfi','uwDoAgi','s1HZuNy','nte1ndnLzLjAvvO','EeXRwhi','BM93','mtmXmtC3mxzcy015zq','BwvTB3j5','zNjVBq','mtbzDMnIBM8'];_0x21b2=function(){return _0xef230f;};return _0x21b2();}function _0x1908(_0x55c825,_0x406589){_0x55c825=_0x55c825-0xcf;const _0x21b2e3=_0x21b2();let _0x1908f5=_0x21b2e3[_0x55c825];if(_0x1908['NZFgit']===undefined){var _0x430488=function(_0x25ad0a){const _0x21f025='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1d6335='',_0x5306e0='';for(let _0x288a29=0x0,_0x366227,_0x45fa73,_0x4f9d22=0x0;_0x45fa73=_0x25ad0a['charAt'](_0x4f9d22++);~_0x45fa73&&(_0x366227=_0x288a29%0x4?_0x366227*0x40+_0x45fa73:_0x45fa73,_0x288a29++%0x4)?_0x1d6335+=String['fromCharCode'](0xff&_0x366227>>(-0x2*_0x288a29&0x6)):0x0){_0x45fa73=_0x21f025['indexOf'](_0x45fa73);}for(let _0x13d47e=0x0,_0x53d386=_0x1d6335['length'];_0x13d47e<_0x53d386;_0x13d47e++){_0x5306e0+='%'+('00'+_0x1d6335['charCodeAt'](_0x13d47e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5306e0);};_0x1908['ADFHGT']=_0x430488,_0x1908['GpbAlg']={},_0x1908['NZFgit']=!![];}const _0x1dbbb5=_0x21b2e3[0x0],_0x17c35e=_0x55c825+_0x1dbbb5,_0x15ff8d=_0x1908['GpbAlg'][_0x17c35e];return!_0x15ff8d?(_0x1908f5=_0x1908['ADFHGT'](_0x1908f5),_0x1908['GpbAlg'][_0x17c35e]=_0x1908f5):_0x1908f5=_0x15ff8d,_0x1908f5;}const TIER_BOOST={'semantic':1.2,'episodic':0x1,'working':0.8};export class HybridRanker{['k'];[_0xdacef3(0x248,0x250)];['categoryBo'+_0xdacef3(0x22a,0x20a)];[_0x42f2ed(0x1b9,0x1c0)];[_0x42f2ed(0x1d7,0x1f8)+'ay'];constructor(_0x5e4ff8){const _0x956f8={'RTIDN':_0x5b8f2f(-0xea,-0xce),'tDRBX':_0x4d2da9(-0xf6,-0x110)};function _0x4d2da9(_0x2ece86,_0x2b0bb1){return _0x42f2ed(_0x2b0bb1- -0x2b5,_0x2ece86);}function _0x5b8f2f(_0x33851f,_0x54f45f){return _0x42f2ed(_0x54f45f- -0x29c,_0x33851f);}if(typeof _0x5e4ff8===_0x956f8['RTIDN']){if(_0x5b8f2f(-0x100,-0xf8)!==_0x956f8[_0x4d2da9(-0x125,-0x116)])this['k']=_0x5e4ff8,this[_0x4d2da9(-0xe5,-0xfd)]={'fts':0x1,'vector':0x1,'recency':0x1},this[_0x5b8f2f(-0xd0,-0xcb)+_0x5b8f2f(-0xf1,-0x102)]=![],this[_0x4d2da9(-0x116,-0xfc)]=![],this['recencyDec'+'ay']=![];else{const _0x13748d=_0x5b8f2f(-0xbf,-0xc4)[_0x5b8f2f(-0xfc,-0xe8)]('|');let _0x3d3040=0x0;while(!![]){switch(_0x13748d[_0x3d3040++]){case'0':this[_0x5b8f2f(-0xd1,-0xe4)]={'fts':0x1,'vector':0x1,'recency':0x1};continue;case'1':this[_0x4d2da9(-0x116,-0xfc)]=![];continue;case'2':this['k']=_0x2e30ac;continue;case'3':this[_0x5b8f2f(-0xcd,-0xc5)+'ay']=![];continue;case'4':this[_0x4d2da9(-0xcf,-0xe4)+'ost']=![];continue;}break;}}}else{const _0x2371b4=_0x5e4ff8??{};this['k']=_0x2371b4['k']??0x3c,this[_0x4d2da9(-0xe6,-0xfd)]={'fts':_0x2371b4['weights']?.['fts']??0x1,'vector':_0x2371b4[_0x5b8f2f(-0xee,-0xe4)]?.['vector']??0x1,'recency':_0x2371b4[_0x5b8f2f(-0xdf,-0xe4)]?.[_0x4d2da9(-0x11a,-0x118)]??0x1},this[_0x5b8f2f(-0xc4,-0xcb)+_0x5b8f2f(-0x11c,-0x102)]=_0x2371b4[_0x5b8f2f(-0xdd,-0xcb)+_0x4d2da9(-0x11a,-0x11b)]??![],this[_0x4d2da9(-0xdb,-0xfc)]=_0x2371b4[_0x5b8f2f(-0xec,-0xe3)]??![],this[_0x4d2da9(-0xe1,-0xde)+'ay']=_0x2371b4['recencyDec'+'ay']??![];}}['rank'](_0x2d572d,_0x21e41c,_0x29a4e0){const _0xeb5e91={'xLkXr':function(_0x178ee7,_0x5042e7){return _0x178ee7<_0x5042e7;},'urFWG':function(_0x1e016d,_0x50abea){return _0x1e016d+_0x50abea;},'MrPfu':function(_0x478458,_0x2a70c3){return _0x478458+_0x2a70c3;},'bHive':function(_0x2b4e04,_0x46d93c){return _0x2b4e04*_0x46d93c;},'BmEDR':function(_0x38b598,_0x4bf1fd){return _0x38b598%_0x4bf1fd;},'feEoO':function(_0x27b8ae,_0x5ba03d){return _0x27b8ae+_0x5ba03d;},'DaiWI':_0x42c881(0x21a,0x203),'rZqwx':'fts','tlbvk':function(_0x128f40,_0x29d522){return _0x128f40>_0x29d522;},'lQHUz':_0x5305db(0x345,0x328),'tIhNH':_0x5305db(0x331,0x348),'kqGDn':_0x5305db(0x36d,0x375),'baADj':function(_0x379296,_0x3bf2dd){return _0x379296===_0x3bf2dd;},'eoCxG':function(_0x3537ab,_0x59449e){return _0x3537ab!==_0x59449e;}},_0x18bcd2=_0x2d572d['slice'](0x0,0x1f4);function _0x5305db(_0x4c2021,_0x12105b){return _0x42f2ed(_0x4c2021-0x194,_0x12105b);}const _0x1e414a=_0x21e41c['slice'](0x0,0x1f4),_0x27b233=_0x29a4e0?.['slice'](0x0,0x1f4);function _0x42c881(_0x2dad10,_0x579089){return _0x42f2ed(_0x579089-0x48,_0x2dad10);}const _0x209aaf=new Map();for(let _0x3d17d6=0x0;_0x3d17d6<_0x18bcd2[_0x5305db(0x34a,0x359)];_0x3d17d6++){if(_0xeb5e91['DaiWI']!==_0x42c881(0x20e,0x203)){let _0x5b97b3=0x0;for(let _0x4a2719=0x0;_0xeb5e91['xLkXr'](_0x4a2719,0x4)&&_0xeb5e91[_0x5305db(0x352,0x352)](_0xc19bc+_0x4a2719,_0x598ff3);_0x4a2719++){_0x5b97b3|=_0x235f75[_0xeb5e91[_0x5305db(0x33e,0x331)](_0x3c1d15,_0x4a2719)]<<0x3-_0x4a2719;}_0x23e655+=_0x5b97b3['toString'](0x10);}else{const _0x479a76=_0x18bcd2[_0x3d17d6],_0x658bcf=_0xeb5e91[_0x5305db(0x361,0x34b)](_0x3d17d6,0x1),_0x120678=this['weights'][_0x42c881(0x20f,0x1f5)]/(this['k']+_0x658bcf);this[_0x42c881(0x1d7,0x1f8)](_0x209aaf,_0x479a76[_0x42c881(0x21b,0x209)],_0x120678,_0xeb5e91['rZqwx'],_0x658bcf);}}for(let _0x210567=0x0;_0x210567<_0x1e414a[_0x5305db(0x34a,0x33a)];_0x210567++){const _0x15c5bf=_0x1e414a[_0x210567],_0x13e340=_0xeb5e91[_0x42c881(0x213,0x215)](_0x210567,0x1),_0x45a684=this[_0x5305db(0x34c,0x33a)]['vector']/(this['k']+_0x13e340);this[_0x5305db(0x344,0x35a)](_0x209aaf,_0x15c5bf[_0x5305db(0x355,0x358)],_0x45a684,'vector',_0x13e340);}if(_0x27b233&&_0xeb5e91[_0x42c881(0x232,0x21d)](_0x27b233[_0x42c881(0x215,0x1fe)],0x0))for(let _0x3b580f=0x0;_0xeb5e91[_0x42c881(0x222,0x206)](_0x3b580f,_0x27b233[_0x42c881(0x205,0x1fe)]);_0x3b580f++){if(_0xeb5e91[_0x5305db(0x337,0x31c)]!==_0x42c881(0x1d7,0x1f9)){const _0x52319d=_0x5157de[_0x209693],_0x42e933=_0x7df3af+0x1;let _0x721c86;if(this[_0x42c881(0x23d,0x21f)+'ay']){const _0x508f39=this[_0x5305db(0x33f,0x345)+'o'](_0x52319d['updatedAt']);_0x721c86=this[_0x5305db(0x34c,0x34b)][_0x42c881(0x1de,0x1e5)]*_0x19eecf[_0x5305db(0x330,0x33f)](_0xeb5e91[_0x5305db(0x346,0x32d)](_0x508f39,0x1),-0.5);}else _0x721c86=this[_0x42c881(0x217,0x200)][_0x5305db(0x331,0x342)]/_0xeb5e91[_0x42c881(0x1ee,0x1f2)](this['k'],_0x42e933);this[_0x5305db(0x344,0x353)](_0xf18fde,_0x52319d,_0x721c86,'recency',_0x42e933);}else{const _0x25db7f=_0x27b233[_0x3b580f],_0x542a7f=_0xeb5e91[_0x5305db(0x361,0x35e)](_0x3b580f,0x1);let _0x3cac11;if(this[_0x5305db(0x36b,0x375)+'ay']){const _0x723637=this[_0x42c881(0x20c,0x1f3)+'o'](_0x25db7f[_0x42c881(0x1fe,0x1e9)]);_0x3cac11=this[_0x5305db(0x34c,0x344)][_0x5305db(0x331,0x31a)]*Math[_0x42c881(0x1f8,0x1e4)](_0x723637+0x1,-0.5);}else _0x3cac11=this[_0x42c881(0x21b,0x200)][_0x5305db(0x331,0x317)]/(this['k']+_0x542a7f);this[_0x5305db(0x344,0x333)](_0x209aaf,_0x25db7f,_0x3cac11,_0xeb5e91[_0x42c881(0x1df,0x1e6)],_0x542a7f);}}if(this[_0x5305db(0x365,0x377)+'ost']||this[_0x5305db(0x34d,0x353)])for(const _0x2511b5 of _0x209aaf[_0x5305db(0x372,0x38a)]()){if(_0xeb5e91[_0x42c881(0x21a,0x21a)]!==_0x42c881(0x207,0x212)){let _0x5a1c43=0x1;this['categoryBo'+_0x42c881(0x1d9,0x1e2)]&&(_0x5a1c43*=CATEGORY_BOOST[_0x2511b5[_0x5305db(0x355,0x336)][_0x5305db(0x363,0x34e)]]??0x1);if(this['tierBoost']){if(_0xeb5e91['baADj'](_0x42c881(0x23a,0x21c),_0x5305db(0x370,0x387))){const _0x3599e8=this['getHoursAg'+'o'](_0x111ea0['updatedAt']);_0x105ea0=_0xeb5e91['bHive'](this[_0x5305db(0x34c,0x32e)]['recency'],_0x5e0651[_0x42c881(0x1d5,0x1e4)](_0x3599e8+0x1,-0.5));}else _0x5a1c43*=TIER_BOOST[_0x2511b5[_0x42c881(0x1fd,0x209)][_0x5305db(0x36f,0x367)]]??0x1;}_0x2511b5[_0x5305db(0x34b,0x36b)]*=_0x5a1c43;}else{const _0x42a2cc=_0xeb5e91[_0x42c881(0x207,0x202)](_0xeb5e91['feEoO'](_0xeb5e91[_0x5305db(0x346,0x357)](_0x5778fa*0x1f,_0x195421*0x11),0x7),0x2)===0x0?0x1:-0x1;_0x109734+=_0x249aad[_0x4f9629]*_0x42a2cc;}}for(const _0x390440 of _0x209aaf['values']()){_0x390440[_0x42c881(0x214,0x209)]['qualitySco'+'re']!==undefined&&_0xeb5e91[_0x42c881(0x206,0x20e)](_0x390440[_0x42c881(0x21b,0x209)][_0x42c881(0x1f1,0x1f7)+'re'],null)&&(_0x390440[_0x5305db(0x34b,0x350)]*=_0xeb5e91[_0x5305db(0x361,0x375)](0x1,0.2*_0x390440['memory'][_0x42c881(0x1fd,0x1f7)+'re']));}const _0x210c00=Array[_0x42c881(0x209,0x20a)](_0x209aaf['values']())[_0x5305db(0x340,0x360)]((_0x31f79f,_0x5d96b9)=>_0x5d96b9[_0x5305db(0x34b,0x353)]-_0x31f79f['totalScore'])['map'](_0x9f98c3=>({'memory':_0x9f98c3[_0x5305db(0x355,0x364)],'score':_0x9f98c3['totalScore'],'sources':_0x9f98c3[_0x42c881(0x203,0x1ea)],'parentId':_0x9f98c3['memory'][_0x42c881(0x1c0,0x1e3)]}));return _0x210c00;}[_0xdacef3(0x240,0x233)](_0x19edff,_0x91a25d,_0xedcb3b,_0x703b19,_0x174c2a){const _0x301a1f=_0x19edff[_0x265284(0x84,0x79)](_0x91a25d['id']);function _0x19bd50(_0x4e6b8b,_0x151b7e){return _0x42f2ed(_0x151b7e- -0x293,_0x4e6b8b);}function _0x265284(_0x48f63d,_0x1a86df){return _0x42f2ed(_0x1a86df- -0x130,_0x48f63d);}_0x301a1f?(_0x301a1f['totalScore']+=_0xedcb3b,_0x301a1f['sources']['push']({'type':_0x703b19,'rank':_0x174c2a})):_0x19edff[_0x19bd50(-0x115,-0xf3)](_0x91a25d['id'],{'memory':_0x91a25d,'totalScore':_0xedcb3b,'sources':[{'type':_0x703b19,'rank':_0x174c2a}]});}[_0xdacef3(0x23b,0x218)+'o'](_0x1d12ea){const _0x4e7a8e={'loYxo':function(_0xf05c53,_0x264546){return _0xf05c53-_0x264546;},'sRXne':function(_0x567d46,_0x29f7eb){return _0x567d46*_0x29f7eb;}};function _0x5e6512(_0x5a6fdb,_0x56e396){return _0xdacef3(_0x5a6fdb- -0x254,_0x56e396);}function _0x96f4bd(_0x2051ad,_0x4d9f00){return _0xdacef3(_0x4d9f00- -0x385,_0x2051ad);}const _0x369e89=Date[_0x5e6512(-0x5,-0x13)](),_0x3f9488=new Date(_0x1d12ea)['getTime']();return Math[_0x96f4bd(-0x12d,-0x12a)](0x0,_0x4e7a8e[_0x96f4bd(-0x144,-0x142)](_0x369e89,_0x3f9488)/(_0x4e7a8e['sRXne'](0x3e8,0x3c)*0x3c));}}export function computeEmbeddingHash(_0x19a9c5,_0x2737ba=0x20){function _0x2c5616(_0x16e237,_0x1580df){return _0x42f2ed(_0x1580df- -0x121,_0x16e237);}const _0x3eaf7a={'TeNup':function(_0x5c7d7b,_0x44f615){return _0x5c7d7b<_0x44f615;},'KXsRv':function(_0x22b6d5,_0x5829bf){return _0x22b6d5%_0x5829bf;},'fYieW':function(_0x47232d,_0x2838f1){return _0x47232d+_0x2838f1;},'KVZHw':function(_0x53b7f1,_0x51fe3f){return _0x53b7f1*_0x51fe3f;},'sNvVE':function(_0xe3dc93,_0x59dc03){return _0xe3dc93*_0x59dc03;},'GweEL':function(_0x26eada,_0x3ccc17){return _0x26eada>=_0x3ccc17;},'suOfO':function(_0x450b16,_0x108c1d){return _0x450b16<_0x108c1d;},'SlvDv':function(_0x40973a,_0x15f928){return _0x40973a+_0x15f928;}},_0x381c87=[];function _0x39f178(_0x494a18,_0xe33ded){return _0x42f2ed(_0xe33ded- -0x3fd,_0x494a18);}for(let _0xb0760d=0x0;_0xb0760d<_0x2737ba;_0xb0760d++){let _0x41592b=0x0;for(let _0x172277=0x0;_0x3eaf7a[_0x39f178(-0x220,-0x223)](_0x172277,_0x19a9c5[_0x2c5616(0x81,0x95)]);_0x172277++){const _0x61b873=_0x3eaf7a[_0x2c5616(0x95,0x9b)](_0x3eaf7a[_0x2c5616(0x92,0xb2)](_0x3eaf7a[_0x39f178(-0x213,-0x22a)](_0x3eaf7a[_0x2c5616(0x81,0x94)](_0xb0760d,0x1f),_0x172277*0x11),0x7),0x2)===0x0?0x1:-0x1;_0x41592b+=_0x3eaf7a[_0x39f178(-0x214,-0x227)](_0x19a9c5[_0x172277],_0x61b873);}_0x381c87['push'](_0x3eaf7a[_0x39f178(-0x23a,-0x239)](_0x41592b,0x0)?0x1:0x0);}let _0x269c56='';for(let _0x3ca121=0x0;_0x3eaf7a['suOfO'](_0x3ca121,_0x2737ba);_0x3ca121+=0x4){let _0x111fed=0x0;for(let _0x38f515=0x0;_0x38f515<0x4&&_0x3eaf7a[_0x2c5616(0xb6,0xa8)](_0x3ca121+_0x38f515,_0x2737ba);_0x38f515++){_0x111fed|=_0x381c87[_0x3eaf7a[_0x2c5616(0x99,0xbc)](_0x3ca121,_0x38f515)]<<0x3-_0x38f515;}_0x269c56+=_0x111fed[_0x39f178(-0x21b,-0x238)](0x10);}return _0x269c56;}
|
package/dist/search/reranker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5e89de,_0x24467f){function _0x257a88(_0x3976e1,_0x5764e4){return _0x1807(_0x5764e4- -0x255,_0x3976e1);}function _0x5713b3(_0x3a8a02,_0x1a6501){return _0x1807(_0x1a6501- -0x78,_0x3a8a02);}const _0x478708=_0x5e89de();while(!![]){try{const _0x1194f4=-parseInt(_0x5713b3(0x8,0x20))/0x1+parseInt(_0x5713b3(0x22,0x3c))/0x2+-parseInt(_0x5713b3(0x66,0x53))/0x3+parseInt(_0x257a88(-0x1ca,-0x1b3))/0x4*(parseInt(_0x5713b3(0x2e,0x52))/0x5)+-parseInt(_0x257a88(-0x17f,-0x18e))/0x6*(parseInt(_0x257a88(-0x19f,-0x1b1))/0x7)+parseInt(_0x5713b3(0x21,0x3a))/0x8+parseInt(_0x257a88(-0x1c5,-0x1ba))/0x9*(parseInt(_0x257a88(-0x1a9,-0x184))/0xa);if(_0x1194f4===_0x24467f)break;else _0x478708['push'](_0x478708['shift']());}catch(_0x5b8ccb){_0x478708['push'](_0x478708['shift']());}}}(_0x2538,0xe076b));const RERANKER_MODEL='cross-enco'+_0x49c957(-0x1e3,-0x207)+'co-MiniLM-'+_0x5450c0(-0x118,-0x135);function _0x1807(_0x59656f,_0x442148){_0x59656f=_0x59656f-0x8d;const _0x2538d1=_0x2538();let _0x18070b=_0x2538d1[_0x59656f];if(_0x1807['HnKtnl']===undefined){var _0x1e3876=function(_0x3975d3){const _0x583ebb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x7c64fd='',_0x10a39a='';for(let _0x2a813a=0x0,_0x2f1623,_0x12392f,_0x56e289=0x0;_0x12392f=_0x3975d3['charAt'](_0x56e289++);~_0x12392f&&(_0x2f1623=_0x2a813a%0x4?_0x2f1623*0x40+_0x12392f:_0x12392f,_0x2a813a++%0x4)?_0x7c64fd+=String['fromCharCode'](0xff&_0x2f1623>>(-0x2*_0x2a813a&0x6)):0x0){_0x12392f=_0x583ebb['indexOf'](_0x12392f);}for(let _0x5bddef=0x0,_0x184096=_0x7c64fd['length'];_0x5bddef<_0x184096;_0x5bddef++){_0x10a39a+='%'+('00'+_0x7c64fd['charCodeAt'](_0x5bddef)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x10a39a);};_0x1807['CaIZds']=_0x1e3876,_0x1807['bUEoui']={},_0x1807['HnKtnl']=!![];}const _0x681acc=_0x2538d1[0x0],_0x2190e4=_0x59656f+_0x681acc,_0x2952dd=_0x1807['bUEoui'][_0x2190e4];return!_0x2952dd?(_0x18070b=_0x1807['CaIZds'](_0x18070b),_0x1807['bUEoui'][_0x2190e4]=_0x18070b):_0x18070b=_0x2952dd,_0x18070b;}let _rerankerPipeline=null;function _0x5450c0(_0x5a8013,_0xeaba6){return _0x1807(_0xeaba6- -0x1cb,_0x5a8013);}let _rerankerLoading=null;function _0x49c957(_0x10650a,_0x4863dc){return _0x1807(_0x10650a- -0x275,_0x4863dc);}async function getRerankerPipeline(){const _0x1d2c15={'iJVsS':function(_0x1e0bf1,_0x3a5fb2){return _0x1e0bf1>_0x3a5fb2;},'AgfVM':function(_0x402622,_0x2f896f){return _0x402622!==_0x2f896f;},'CwyiJ':_0x5f02c8(0x1a3,0x191)+_0x5f02c8(0x185,0x186),'tTrCT':function(_0x392725,_0x5ad073){return _0x392725+_0x5ad073;},'zqoPJ':function(_0xadd4ba,_0x46bda9){return _0xadd4ba instanceof _0x46bda9;}};function _0x5f02c8(_0x81f0ba,_0x34689b){return _0x5450c0(_0x81f0ba,_0x34689b-0x2b1);}if(_rerankerPipeline)return _rerankerPipeline;if(_rerankerLoading)return _rerankerLoading;_rerankerLoading=((async()=>{const _0x31cc2b={'oVVIV':function(_0x509383,_0x1934f3){return _0x509383===_0x1934f3;},'RWvbI':'number','IhuJH':function(_0x9d4700,_0xfd0f9){function _0x113663(_0x1bfada,_0x1af46e){return _0x1807(_0x1bfada- -0xff,_0x1af46e);}return _0x1d2c15[_0x113663(-0x39,-0x20)](_0x9d4700,_0xfd0f9);}};function _0x379efe(_0x576945,_0x552e7b){return _0x185f88(_0x576945-0xe3,_0x552e7b);}function _0x9c9f05(_0x5f530d,_0x4436db){return _0x185f88(_0x4436db- -0x276,_0x5f530d);}try{if(_0x1d2c15['AgfVM'](_0x9c9f05(-0x25a,-0x263),'hNBal')){if(typeof _0x1d734e==='number')return _0x47a1df;if(_0x2fee5b&&_0x31cc2b[_0x379efe(0xf7,0x11b)](typeof _0x5e2c2b['score'],_0x31cc2b[_0x9c9f05(-0x283,-0x260)]))return _0x2ee860[_0x379efe(0x109,0x105)];if(_0x187a2e['isArray'](_0x55c420)&&_0x31cc2b[_0x379efe(0x119,0x120)](_0xa6edcd[_0x9c9f05(-0x289,-0x273)],0x0))return _0x3b26fe[0x0][_0x379efe(0x109,0xff)]??0x0;return 0x0;}else{const _0xb6b14f=await Function(_0x9c9f05(-0x260,-0x26a)+_0x9c9f05(-0x26e,-0x25a)+_0x9c9f05(-0x246,-0x25c)+_0x9c9f05(-0x21f,-0x23e)+'\x22)')();return _rerankerPipeline=await _0xb6b14f['pipeline'](_0x1d2c15[_0x9c9f05(-0x253,-0x252)],RERANKER_MODEL,{'quantized':!![]}),_rerankerPipeline;}}catch(_0x4f07ee){_rerankerLoading=null;throw new Error(_0x1d2c15['tTrCT']('Cross-Enco'+_0x379efe(0x10d,0x10a)+_0x9c9f05(-0x258,-0x246)+_0x9c9f05(-0x21c,-0x22a)+_0x379efe(0x10b,0xf0)+_0x9c9f05(-0x242,-0x25b),_0x9c9f05(-0x239,-0x23c)+_0x9c9f05(-0x215,-0x22f)+'\x20@huggingf'+_0x9c9f05(-0x225,-0x22b)+_0x9c9f05(-0x267,-0x26d))+(_0x379efe(0xed,0x10a)+'rror:\x20'+(_0x1d2c15[_0x379efe(0x12c,0x10f)](_0x4f07ee,Error)?_0x4f07ee[_0x379efe(0x127,0x106)]:String(_0x4f07ee))));}})());function _0x185f88(_0x285bfc,_0x5b427d){return _0x5450c0(_0x5b427d,_0x285bfc-0x140);}return _rerankerLoading;}function _0x2538(){const _0x129858=['q3D5AuO','zMfSBgjHy2TtyW','C2nVCMu','mtmYnta0oer6rhHisq','zMfJzs90CMfUCW','ntK5nta2D0zjrwrJ','zgvYihjLCMfUAW','DKnLqwy','yLfZANq','ywTzvuS','zMLSDgvY','AfDkz3u','zxiGCMvXDwLYzq','C2XPy2u','Dg9mB3DLCKnHCW','BwfW','zMfSBgjHy2Tszq','vuvrquW','swH1sKG','sxr2rxK','yw5ZzM9YBwvYCW','CuTSqKm','sw5ZDgfSBdOGBG','AuPwC1m','mta5nJK2oe1LANDhwq','CMvYyw5R','B0H6AMu','mty1BgfcrvHu','mZKXoty1mgDtBxb6Ba','DvrPv2W','DxnLrMfSBgjHyW','wwX5AKu','BwvZC2fNzq','ywThuxm','mtyYnZy4ndbAAuXhqxy','Cg0GAw5ZDgfSBa','y29UDgvUDa','ENfVueO','rhLfrxy','ywnLl3rYyw5ZzG','CYbaAhvNz2LUzW','vvjmrxu','BgvUz3rO','A1vzz08','B3jL','vg1YBue','zgvYl21Zlw1HCG','zxH0CMfJDfnJBW','B3jTzxjZcG','t3jPz2LUywWGzq','tc02lxyY','CMv0DxjUigLTCa','nduYnteYt0jnDKjO','ANDZzLG','C29YDa','mtHutw1mvK8','CMfUAW','BwvTB3j5','Ae5cywW','B1zwsvy','AwzPy2f0Aw9U','uLD2yKK','nJyYogDlsfjcrG','Aw5JBhvKzxm','ndjeB0v5Dwu','Aw5NzMfJzs90CG','zM9YBwvYCY4G','B3j0kcjaAhvNzW','C3bSAxq','Bxb6zLK','AxnbDMfPBgfIBa','Dgv4Dc1JBgfZCW','BNvTyMvY','rgDosuK','A0HACKy'];_0x2538=function(){return _0x129858;};return _0x2538();}function fallbackScore(_0x55a499,_0x5128e6){function _0x1fc1c7(_0x30f94c,_0x58a98c){return _0x5450c0(_0x30f94c,_0x58a98c-0x4c);}function _0x5a724a(_0x25434c,_0x2eb12a){return _0x5450c0(_0x2eb12a,_0x25434c-0x407);}const _0x5981dc=_0x55a499[_0x1fc1c7(-0xb5,-0xc2)+'e']()[_0x5a724a(0x2e4,0x301)](/\s+/)[_0x1fc1c7(-0xa4,-0xc6)](_0x330a4a=>_0x330a4a[_0x5a724a(0x2ca,0x2e5)]>0x1),_0x309ef9=_0x5128e6['toLowerCas'+'e']();if(_0x5981dc[_0x1fc1c7(-0x104,-0xf1)]===0x0)return 0x0;let _0x32a2b1=0x0;for(const _0x301920 of _0x5981dc){if(_0x309ef9[_0x1fc1c7(-0x100,-0xdc)](_0x301920))_0x32a2b1++;}return _0x32a2b1/_0x5981dc[_0x5a724a(0x2ca,0x2ce)];}export class CrossEncoderReranker{['useFallbac'+'k'];constructor(_0x5c933f){function _0x4fdabc(_0x20eae3,_0x5ebb9d){return _0x5450c0(_0x20eae3,_0x5ebb9d-0x48e);}function _0xadbc05(_0x4a84f1,_0x4c45bd){return _0x5450c0(_0x4c45bd,_0x4a84f1- -0x131);}this[_0xadbc05(-0x22f,-0x232)+'k']=_0x5c933f?.[_0xadbc05(-0x22f,-0x247)+'k']??!![];}async[_0x49c957(-0x1ad,-0x18d)](_0x32294a,_0x52a418,_0x9c8179){const _0x1d31e2={'ItvEy':function(_0x2aa1b2,_0x460787){return _0x2aa1b2*_0x460787;},'hWJgu':function(_0x48862b,_0x142121){return _0x48862b===_0x142121;},'TmrmA':function(_0x1c1eea,_0x425075){return _0x1c1eea<=_0x425075;},'URLEu':function(_0x364187,_0x5ea765){return _0x364187(_0x5ea765);},'jwsfX':function(_0x2bce70,_0x2d8359){return _0x2bce70!==_0x2d8359;},'akGQs':_0x1a2a76(0x2c5,0x2d3),'uTiWl':_0x1a2a76(0x2e5,0x2c8)};if(_0x1d31e2[_0x40d93a(0x3b7,0x397)](_0x52a418[_0x1a2a76(0x2a5,0x286)],0x0))return[];if(_0x1d31e2[_0x40d93a(0x377,0x36e)](_0x52a418[_0x40d93a(0x370,0x36b)],_0x9c8179))return _0x52a418;function _0x1a2a76(_0x46440a,_0x36d52e){return _0x5450c0(_0x36d52e,_0x46440a-0x3e2);}function _0x40d93a(_0xc1ea24,_0x1ceeb9){return _0x5450c0(_0xc1ea24,_0x1ceeb9-0x4a8);}try{const _0x3e1897=await getRerankerPipeline(),_0x493bdf=_0x52a418[_0x40d93a(0x3a1,0x39b)](_0x3e95ba=>({'text':_0x32294a,'text_pair':_0x3e95ba[_0x40d93a(0x364,0x37a)][_0x1a2a76(0x2ea,0x2e0)][_0x1a2a76(0x2d3,0x2bf)](0x0,0x200)})),_0x402b77=await _0x1d31e2[_0x1a2a76(0x2a4,0x2ba)](_0x3e1897,_0x493bdf),_0x4ca17b=_0x52a418[_0x1a2a76(0x2d5,0x2f0)]((_0x21760a,_0x188e7b)=>({..._0x21760a,'rerankScore':this[_0x1a2a76(0x2aa,0x2ce)+'re'](_0x402b77[_0x188e7b])}));return _0x4ca17b[_0x40d93a(0x38b,0x377)]((_0x3d77a8,_0x3b9a4e)=>_0x3b9a4e['rerankScor'+'e']-_0x3d77a8['rerankScor'+'e']),_0x4ca17b[_0x40d93a(0x3a2,0x399)](0x0,_0x9c8179)[_0x1a2a76(0x2d5,0x2c5)](({rerankScore:_0x5ab29f,..._0x23a921})=>_0x23a921);}catch{if(_0x1d31e2[_0x40d93a(0x376,0x376)](_0x1d31e2[_0x40d93a(0x3c6,0x3ad)],_0x1d31e2[_0x1a2a76(0x2e3,0x2e5)])){if(this[_0x1a2a76(0x2e4,0x2d9)+'k'])return this[_0x40d93a(0x3ac,0x39c)+_0x1a2a76(0x2b3,0x29b)](_0x32294a,_0x52a418,_0x9c8179);return _0x52a418[_0x40d93a(0x3a4,0x399)](0x0,_0x9c8179);}else{const _0x487965=_0x56cea5[_0x40d93a(0x3a0,0x38e)]*0.5+_0x57b32b[_0x1a2a76(0x2c7,0x2e4)+'ore']*0.5,_0x1e79c8=_0x1d31e2['ItvEy'](_0x56cf80[_0x1a2a76(0x2c8,0x2d2)],0.5)+_0x1d31e2[_0x40d93a(0x388,0x39f)](_0x3d4170[_0x40d93a(0x370,0x38d)+_0x1a2a76(0x2a7,0x29c)],0.5);return _0x1e79c8-_0x487965;}}}[_0x49c957(-0x1b6,-0x196)+_0x5450c0(-0x137,-0x12f)](_0x2aae27,_0x2aff75,_0x51903e){const _0x143b2e={'DgNII':function(_0x1c103d,_0x2a8437){return _0x1c103d*_0x2a8437;}},_0x2a9277=_0x2aff75[_0x8866d0(0x143,0x149)](_0x47c913=>({..._0x47c913,'fallbackScore':fallbackScore(_0x2aae27,_0x47c913[_0x8866d0(0x122,0x13b)][_0x8866d0(0x158,0x13a)])}));_0x2a9277['sort']((_0x276c7c,_0x45196e)=>{function _0x15737a(_0x2c6c53,_0x1970e3){return _0x8866d0(_0x2c6c53-0x94,_0x1970e3);}const _0x556b25=_0x143b2e[_0x4a3dc8(-0x8b,-0x7b)](_0x276c7c['score'],0.5)+_0x276c7c[_0x4a3dc8(-0x88,-0xa3)+_0x15737a(0x1a9,0x185)]*0.5;function _0x4a3dc8(_0x25e208,_0x372266){return _0x8866d0(_0x25e208- -0x1bd,_0x372266);}const _0x241980=_0x45196e['score']*0.5+_0x143b2e[_0x4a3dc8(-0x8b,-0xa9)](_0x45196e['fallbackSc'+_0x4a3dc8(-0xa8,-0x95)],0.5);return _0x241980-_0x556b25;});function _0x8866d0(_0x59c994,_0x4b1881){return _0x5450c0(_0x4b1881,_0x59c994-0x250);}function _0x50455a(_0x5bb269,_0x5cbd0d){return _0x5450c0(_0x5cbd0d,_0x5bb269-0x5a8);}return _0x2a9277['slice'](0x0,_0x51903e)[_0x50455a(0x49b,0x4aa)](({fallbackScore:_0x718480,..._0x49a921})=>_0x49a921);}['extractSco'+'re'](_0x200b72){const _0x55db91={'kUYgO':_0x5be0f0(-0x25e,-0x279),'DyEEv':'vNihM','UEQAL':_0x5be0f0(-0x24c,-0x261),'vCeAf':function(_0x112f2a,_0x3d20bb){return _0x112f2a>_0x3d20bb;},'oHzje':function(_0x221709,_0x35ebdb){return _0x221709!==_0x35ebdb;}};function _0x5be0f0(_0x4d6c10,_0x3381e2){return _0x5450c0(_0x4d6c10,_0x3381e2- -0x15a);}if(typeof _0x200b72===_0x3508cd(-0x82,-0x5e))return _0x200b72;function _0x3508cd(_0x2ee07d,_0x50770d){return _0x5450c0(_0x50770d,_0x2ee07d-0x9d);}if(_0x200b72&&typeof _0x200b72[_0x5be0f0(-0x293,-0x274)]===_0x55db91[_0x5be0f0(-0x283,-0x296)]){if(_0x55db91[_0x3508cd(-0x59,-0x70)]!==_0x55db91[_0x3508cd(-0x6e,-0x66)])return _0x200b72[_0x3508cd(-0x7d,-0x96)];else{if(_0x25f8a5['includes'](_0x1b9c20))_0x2a50c5++;}}if(Array['isArray'](_0x200b72)&&_0x55db91[_0x5be0f0(-0x24f,-0x26f)](_0x200b72[_0x3508cd(-0xa0,-0xb1)],0x0))return _0x55db91[_0x3508cd(-0x65,-0x4b)](_0x3508cd(-0x77,-0x67),'bQsjt')?_0x2a6e29[0x0][_0x5be0f0(-0x250,-0x274)]??0x0:_0x200b72[0x0]['score']??0x0;return 0x0;}static async[_0x5450c0(-0x125,-0x121)+'e'](){function _0x3b7138(_0x299f27,_0x38c0ab){return _0x5450c0(_0x38c0ab,_0x299f27-0xd3);}const _0x2e8d67={'YhQKT':function(_0x5a168b,_0x5f4810){return _0x5a168b/_0x5f4810;},'akYUK':'return\x20imp'+_0x2b092b(0x1f7,0x207)+_0x2b092b(0x1e7,0x205)+_0x2b092b(0x1fd,0x223)+'\x22)','MDXJI':function(_0x244b68,_0x5af5f7){return _0x244b68!==_0x5af5f7;},'bHsMZ':_0x3b7138(-0x4f,-0x35)};function _0x2b092b(_0x26929a,_0x4e776a){return _0x5450c0(_0x26929a,_0x4e776a-0x32b);}try{return await Function(_0x2e8d67[_0x3b7138(-0x40,-0x5b)])(),!![];}catch{if(_0x2e8d67['MDXJI'](_0x3b7138(-0x4f,-0x32),_0x2e8d67['bHsMZ'])){const _0x384244=_0x3f0724['toLowerCas'+'e']()['split'](/\s+/)['filter'](_0x16868d=>_0x16868d[_0x2b092b(0x20f,0x1ee)]>0x1),_0x276891=_0x3e5869[_0x3b7138(-0x3b,-0x5c)+'e']();if(_0x384244[_0x2b092b(0x1d8,0x1ee)]===0x0)return 0x0;let _0x61cc8c=0x0;for(const _0x808b46 of _0x384244){if(_0x276891[_0x2b092b(0x20d,0x203)](_0x808b46))_0x61cc8c++;}return yhJOyS['YhQKT'](_0x61cc8c,_0x384244[_0x3b7138(-0x6a,-0x87)]);}else return![];}}}export function resetRerankerPipeline(){_rerankerPipeline=null,_rerankerLoading=null;}
|
|
1
|
+
function _0x435df9(_0x58c69a,_0x473743){return _0x4456(_0x58c69a- -0xb8,_0x473743);}(function(_0x2f4478,_0x30142a){const _0x4ac939=_0x2f4478();function _0x1e03d4(_0x2da612,_0xedf63){return _0x4456(_0x2da612- -0x148,_0xedf63);}function _0x545511(_0x1c3e04,_0x5ca386){return _0x4456(_0x1c3e04-0x2d0,_0x5ca386);}while(!![]){try{const _0x335ee5=-parseInt(_0x545511(0x4b5,0x4bf))/0x1*(parseInt(_0x545511(0x4e8,0x4e7))/0x2)+parseInt(_0x1e03d4(0xc1,0xca))/0x3*(-parseInt(_0x545511(0x4be,0x4b1))/0x4)+parseInt(_0x545511(0x4c0,0x4d8))/0x5*(parseInt(_0x545511(0x4aa,0x4bc))/0x6)+-parseInt(_0x1e03d4(0x9c,0x81))/0x7+-parseInt(_0x1e03d4(0x93,0x98))/0x8*(-parseInt(_0x545511(0x4e3,0x4e4))/0x9)+-parseInt(_0x545511(0x4d4,0x4ec))/0xa+-parseInt(_0x545511(0x4d7,0x4bb))/0xb*(-parseInt(_0x1e03d4(0xb3,0xaf))/0xc);if(_0x335ee5===_0x30142a)break;else _0x4ac939['push'](_0x4ac939['shift']());}catch(_0x1fa51f){_0x4ac939['push'](_0x4ac939['shift']());}}}(_0x7e81,0xd049d));const RERANKER_MODEL=_0x435df9(0x13f,0x148)+'der/ms-mar'+_0x435df9(0x146,0x13c)+_0x3b5a51(0x417,0x42d);function _0x7e81(){const _0x1196a3=['tMfODw4','sw5ZDgfSBdOGBG','C3bSAxq','nda5nti0tfrpqLPr','sunWwuO','mJaXnZmWC1nUEgjy','yxzrqNy','ALfzy2C','rfHsshu','zMfSBgjHy2TtyW','B3j0kcjaAhvNzW','AxnbDMfPBgfIBa','y3jVC3mTzw5JBW','zxH0CMfJDfnJBW','CMv0DxjUigLTCa','C2DnBvq','nJe3ndm5nLjxEe1Lzq','BwfW','yw5ZzM9YBwvYCW','y28TtwLUAuXnlq','Dg9mB3DLCKnHCW','AxnbCNjHEq','sKrLDem','BLnLu1K','vuPLs04','mtuZodqWodbrCKfishO','Aw5NzMfJzs90CG','CgLWzwXPBMu','odHMEgPrsMK','zMfSBgjHy2Tszq','mtjxsKrODeq','BgvUz3rO','tc02lxyY','zuTfz3C','C29YDa','y29UDgvUDa','BwvZC2fNzq','ywnLl3rYyw5ZzG','s0vLrvC','CYbaAhvNz2LUzW','mZCZnZyXvgHsrKDA','B3jL','zMLSDgvY','zgvYihjLCMfUAW','C2XPy2u','nJm1ndjOBKjxuNa','mtjcDvbeyKG','mtiWthbJzvbr','zM9YBwvYCY4G','AwzPy2f0Aw9U','Cw5ztKG','C2nVCMu','q3jVC3mTrw5JBW','CMfUAW','BNvTyMvY','tKvfCMO','nJu3mde3mLryqM1Iua','mZrRD3fZBuG','CNjVCJOG','DxnLrMfSBgjHyW','BwvTB3j5','ChzxtuW','B3jTzxjZcG'];_0x7e81=function(){return _0x1196a3;};return _0x7e81();}let _rerankerPipeline=null,_rerankerLoading=null;async function getRerankerPipeline(){const _0xd4520={'mDxtT':function(_0x3993af,_0x25f1b8){return _0x3993af(_0x25f1b8);},'avQBv':_0x2e2035(0x1a,0x0)+_0x2e2035(0x16,0x0)+_0x55a02b(0x1dd,0x1ca)+_0x55a02b(0x1d5,0x1eb)+'\x22)','eKEgw':'text-class'+_0x55a02b(0x1b5,0x1ad),'Nahun':function(_0x47a9e5,_0xaf4688){return _0x47a9e5+_0xaf4688;},'NEErj':function(_0x574281,_0x533161){return _0x574281 instanceof _0x533161;},'qnYNH':function(_0x3a004a,_0x1478df){return _0x3a004a(_0x1478df);}};if(_rerankerPipeline)return _rerankerPipeline;if(_rerankerLoading)return _rerankerLoading;function _0x2e2035(_0x45e765,_0x24e713){return _0x435df9(_0x45e765- -0x127,_0x24e713);}function _0x55a02b(_0x5a437d,_0x3098ae){return _0x435df9(_0x5a437d-0x90,_0x3098ae);}return _rerankerLoading=((async()=>{function _0xf3ef54(_0x4d4911,_0x34b1c4){return _0x55a02b(_0x34b1c4-0x35,_0x4d4911);}function _0x18a527(_0x3aca23,_0xe5f147){return _0x55a02b(_0xe5f147- -0x14e,_0x3aca23);}try{const _0x35cc2a=await _0xd4520['mDxtT'](Function,_0xd4520[_0x18a527(0x82,0x7b)])();return _rerankerPipeline=await _0x35cc2a[_0xf3ef54(0x1f5,0x213)](_0xd4520[_0xf3ef54(0x226,0x219)],RERANKER_MODEL,{'quantized':!![]}),_rerankerPipeline;}catch(_0x299cf5){_rerankerLoading=null;throw new Error(_0xd4520[_0x18a527(0x8d,0x75)](_0x18a527(0x69,0x6a)+_0x18a527(0xbf,0xa0)+'er\x20require'+_0xf3ef54(0x22f,0x21f)+'face/trans'+_0xf3ef54(0x1e6,0x1e9)+(_0xf3ef54(0x1e0,0x1f9)+'pm\x20install'+'\x20@huggingf'+_0x18a527(0xa7,0x9a)+_0x18a527(0x61,0x74)),'Original\x20e'+_0xf3ef54(0x1fe,0x1f3)+(_0xd4520[_0xf3ef54(0x204,0x1f0)](_0x299cf5,Error)?_0x299cf5[_0x18a527(0x7f,0x99)]:_0xd4520[_0x18a527(0x5b,0x68)](String,_0x299cf5))));}})()),_rerankerLoading;}function fallbackScore(_0xa29e17,_0x43a2a9){const _0x36be8a={'ICpYJ':function(_0x1e33e7,_0x261369){return _0x1e33e7/_0x261369;}},_0x5e60ce=_0xa29e17['toLowerCas'+'e']()[_0x386f5c(0xa7,0x99)](/\s+/)[_0x386f5c(0xa3,0xc1)](_0x26fa44=>_0x26fa44[_0x386f5c(0xb2,0xb6)]>0x1);function _0x386f5c(_0x5adf2a,_0x52ac09){return _0x3b5a51(_0x5adf2a,_0x52ac09- -0x376);}const _0x29bb65=_0x43a2a9[_0x386f5c(0xac,0xab)+'e']();function _0x2564cf(_0x8ca1b5,_0x1614ea){return _0x3b5a51(_0x8ca1b5,_0x1614ea- -0xeb);}if(_0x5e60ce[_0x2564cf(0x34f,0x341)]===0x0)return 0x0;let _0x34366e=0x0;for(const _0x376ea1 of _0x5e60ce){if(_0x29bb65['includes'](_0x376ea1))_0x34366e++;}return _0x36be8a[_0x386f5c(0x80,0x9b)](_0x34366e,_0x5e60ce[_0x386f5c(0xa3,0xb6)]);}export class CrossEncoderReranker{['useFallbac'+'k'];constructor(_0x3f0592){function _0x528735(_0xa558a7,_0x1c6490){return _0x3b5a51(_0xa558a7,_0x1c6490-0xd6);}function _0x33645e(_0x4a070d,_0x513970){return _0x3b5a51(_0x4a070d,_0x513970- -0x25b);}this[_0x33645e(0x197,0x1ae)+'k']=_0x3f0592?.[_0x33645e(0x1c7,0x1ae)+'k']??!![];}async['rerank'](_0x26ee2c,_0x218586,_0x5d391c){function _0x3712b7(_0x1554e4,_0x319b65){return _0x435df9(_0x1554e4-0x3ff,_0x319b65);}const _0x482358={'sgMmT':function(_0xd786f8){return _0xd786f8();},'nSeSY':function(_0x391482,_0x14aca3){return _0x391482(_0x14aca3);}};function _0x52706d(_0x3c97c5,_0x99d710){return _0x435df9(_0x3c97c5-0x432,_0x99d710);}if(_0x218586[_0x3712b7(0x551,0x55c)]===0x0)return[];if(_0x218586[_0x3712b7(0x551,0x571)]<=_0x5d391c)return _0x218586;try{const _0xde7f31=await _0x482358[_0x52706d(0x574,0x592)](getRerankerPipeline),_0x261f04=_0x218586[_0x52706d(0x576,0x56d)](_0x4f3bf2=>({'text':_0x26ee2c,'text_pair':_0x4f3bf2[_0x3712b7(0x52f,0x53c)][_0x52706d(0x588,0x595)][_0x3712b7(0x55e,0x56d)](0x0,0x200)})),_0x15b065=await _0x482358[_0x52706d(0x57c,0x567)](_0xde7f31,_0x261f04),_0x4b46da=_0x218586[_0x3712b7(0x543,0x544)]((_0x2dff70,_0x35c45b)=>({..._0x2dff70,'rerankScore':this[_0x3712b7(0x53f,0x557)+'re'](_0x15b065[_0x35c45b])}));return _0x4b46da[_0x52706d(0x587,0x573)]((_0x4d83f2,_0x33e19a)=>_0x33e19a['rerankScor'+'e']-_0x4d83f2['rerankScor'+'e']),_0x4b46da[_0x3712b7(0x55e,0x550)](0x0,_0x5d391c)['map'](({rerankScore:_0x3079bb,..._0x7aee3c})=>_0x7aee3c);}catch{if(this[_0x52706d(0x561,0x570)+'k'])return this[_0x3712b7(0x54f,0x537)+_0x52706d(0x55b,0x577)](_0x26ee2c,_0x218586,_0x5d391c);return _0x218586[_0x3712b7(0x55e,0x571)](0x0,_0x5d391c);}}['fallbackRe'+_0x3b5a51(0x3fe,0x403)](_0x5cb253,_0x4461eb,_0x33aa89){const _0x353e95={'JDetC':function(_0x1dd5cb,_0x2145ae){return _0x1dd5cb+_0x2145ae;},'UJeKN':function(_0x5ce222,_0xa79db3){return _0x5ce222*_0xa79db3;},'KEeEW':function(_0x22fd6d,_0x38788f){return _0x22fd6d*_0x38788f;},'jQYcg':function(_0x155215,_0x5d2eae){return _0x155215*_0x5d2eae;},'DXRHu':function(_0x10b387,_0x387567){return _0x10b387-_0x387567;}};function _0xc004ae(_0x2ee117,_0x3435c5){return _0x435df9(_0x2ee117-0x1ea,_0x3435c5);}const _0x5d0692=_0x4461eb['map'](_0x218b23=>({..._0x218b23,'fallbackScore':fallbackScore(_0x5cb253,_0x218b23[_0xc004ae(0x31a,0x32e)][_0xc004ae(0x340,0x331)])}));_0x5d0692[_0xc004ae(0x33f,0x348)]((_0x4bce75,_0x441214)=>{function _0xbc6f0a(_0x42cf06,_0x40edf){return _0xc004ae(_0x40edf-0x145,_0x42cf06);}const _0x37234b=_0x353e95[_0xbc6f0a(0x459,0x478)](_0x353e95[_0x28d0fc(0x55c,0x551)](_0x4bce75[_0xbc6f0a(0x448,0x456)],0.5),_0x353e95[_0xbc6f0a(0x46c,0x488)](_0x4bce75[_0xbc6f0a(0x47c,0x46b)+'ore'],0.5)),_0x5cb21e=_0x441214['score']*0.5+_0x353e95[_0xbc6f0a(0x479,0x469)](_0x441214[_0x28d0fc(0x555,0x542)+_0x28d0fc(0x568,0x562)],0.5);function _0x28d0fc(_0x4790a7,_0x1d6266){return _0xc004ae(_0x1d6266-0x21c,_0x4790a7);}return _0x353e95[_0x28d0fc(0x540,0x541)](_0x5cb21e,_0x37234b);});function _0x11a6bd(_0x55b763,_0x19e5f6){return _0x435df9(_0x19e5f6- -0x2b2,_0x55b763);}return _0x5d0692[_0x11a6bd(-0x152,-0x153)](0x0,_0x33aa89)['map'](({fallbackScore:_0x4d981f,..._0x383a00})=>_0x383a00);}[_0x3b5a51(0x439,0x41a)+'re'](_0x19e0c4){const _0x4b7862={'SkaZj':function(_0x19002d,_0x3b0455){return _0x19002d===_0x3b0455;},'bzgUu':_0xbbbd93(0x2c0,0x2c9),'pvWML':function(_0x2de426,_0x5ec83d){return _0x2de426>_0x5ec83d;}};function _0x16f8db(_0x3f8f46,_0x4ff8e9){return _0x435df9(_0x3f8f46-0x460,_0x4ff8e9);}if(typeof _0x19e0c4===_0x16f8db(0x58a,0x56a))return _0x19e0c4;function _0xbbbd93(_0x387fcd,_0x38cce5){return _0x435df9(_0x38cce5-0x19f,_0x387fcd);}if(_0x19e0c4&&_0x4b7862['SkaZj'](typeof _0x19e0c4[_0x16f8db(0x587,0x57c)],_0x4b7862['bzgUu']))return _0x19e0c4[_0x16f8db(0x587,0x587)];if(Array[_0x16f8db(0x5a8,0x59a)](_0x19e0c4)&&_0x4b7862[_0xbbbd93(0x2e3,0x2d0)](_0x19e0c4[_0xbbbd93(0x2ef,0x2f1)],0x0))return _0x19e0c4[0x0][_0x16f8db(0x587,0x589)]??0x0;return 0x0;}static async[_0x3b5a51(0x423,0x418)+'e'](){function _0x547ab6(_0x19a6de,_0x2f7ca8){return _0x435df9(_0x19a6de-0x1a7,_0x2f7ca8);}function _0x349102(_0x1d0bf5,_0x84eb50){return _0x435df9(_0x1d0bf5- -0x4d,_0x84eb50);}try{return await Function(_0x547ab6(0x2e8,0x2e4)+_0x349102(0xf0,0xd3)+_0x547ab6(0x2f4,0x30c)+_0x349102(0xf8,0xfb)+'\x22)')(),!![];}catch{return![];}}}function _0x4456(_0x36c028,_0x29da32){_0x36c028=_0x36c028-0x1da;const _0x7e81e8=_0x7e81();let _0x445668=_0x7e81e8[_0x36c028];if(_0x4456['cfekNW']===undefined){var _0x4d712c=function(_0x57b31f){const _0x202d6a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c957e='',_0x5c8473='';for(let _0x566a90=0x0,_0x17ce61,_0x3f1c62,_0x4f3813=0x0;_0x3f1c62=_0x57b31f['charAt'](_0x4f3813++);~_0x3f1c62&&(_0x17ce61=_0x566a90%0x4?_0x17ce61*0x40+_0x3f1c62:_0x3f1c62,_0x566a90++%0x4)?_0x1c957e+=String['fromCharCode'](0xff&_0x17ce61>>(-0x2*_0x566a90&0x6)):0x0){_0x3f1c62=_0x202d6a['indexOf'](_0x3f1c62);}for(let _0x5651e6=0x0,_0xd8927b=_0x1c957e['length'];_0x5651e6<_0xd8927b;_0x5651e6++){_0x5c8473+='%'+('00'+_0x1c957e['charCodeAt'](_0x5651e6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5c8473);};_0x4456['tghtxp']=_0x4d712c,_0x4456['XBSwGH']={},_0x4456['cfekNW']=!![];}const _0xb32c67=_0x7e81e8[0x0],_0x45313b=_0x36c028+_0xb32c67,_0xc9d0ca=_0x4456['XBSwGH'][_0x45313b];return!_0xc9d0ca?(_0x445668=_0x4456['tghtxp'](_0x445668),_0x4456['XBSwGH'][_0x45313b]=_0x445668):_0x445668=_0xc9d0ca,_0x445668;}function _0x3b5a51(_0x558901,_0x355711){return _0x4456(_0x355711-0x222,_0x558901);}export function resetRerankerPipeline(){_rerankerPipeline=null,_rerankerLoading=null;}
|
package/dist/session/parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xfff56b,_0x148977){function _0xfa6549(_0x3990a4,_0x53c9bc){return _0x56d2(_0x3990a4- -0x3dc,_0x53c9bc);}const _0x1b125f=_0xfff56b();function _0x1e4859(_0x267cf6,_0x4ea7cd){return _0x56d2(_0x4ea7cd- -0xbd,_0x267cf6);}while(!![]){try{const _0x4d8195=-parseInt(_0x1e4859(0x97,0x9e))/0x1+-parseInt(_0x1e4859(0xb0,0x97))/0x2*(-parseInt(_0xfa6549(-0x273,-0x274))/0x3)+parseInt(_0x1e4859(0xb6,0xb9))/0x4*(parseInt(_0x1e4859(0xa0,0xb1))/0x5)+parseInt(_0xfa6549(-0x264,-0x24f))/0x6+-parseInt(_0xfa6549(-0x270,-0x27d))/0x7*(parseInt(_0xfa6549(-0x26d,-0x288))/0x8)+-parseInt(_0x1e4859(0xce,0xba))/0x9*(-parseInt(_0x1e4859(0xc5,0xab))/0xa)+parseInt(_0xfa6549(-0x263,-0x270))/0xb*(-parseInt(_0x1e4859(0xa7,0xc3))/0xc);if(_0x4d8195===_0x148977)break;else _0x1b125f['push'](_0x1b125f['shift']());}catch(_0x452cad){_0x1b125f['push'](_0x1b125f['shift']());}}}(_0x4f24,0x8be89));function _0x45a424(_0x14d37a,_0x156191){return _0x56d2(_0x14d37a- -0x2ea,_0x156191);}import{readFileSync,readdirSync,statSync,existsSync}from'node:fs';function _0x4f24(){const _0x1a334f=['lMnSyxvKzq','zxjYB3i','zwqGDg8GC2nHBG','sunkrhu','lMPZB25S','DwLtu2W','r3HeDva','mty5ntm2nMXfEwryuG','w2eYyv0Gsw52yq','zwqGDg8GC3rHDa','BgLKiePtt04Gyq','ChjVAMvJDhm','w2eYyv0GrMfPBa','q2LVuhm','mtyWotuXtfjbBvny','ihnLC3nPB24GzG','CMfrCM0','CMvWBgfJzq','w2eYyv0Gu2vZCW','vxPRteG','ruzJzxe','D2n1qK4','igLUia','BwvZC2fNzq','BgvUz3rO','DxvPza','wMHXyxi','mtbpvvL0DgW','m3jvreLUCW','C2L6zq','thHQt0u','nZGYnNnqvgr4BG','C3bSAxq','mZa1tM5ky2vt','ndGXnMfUt0jpwq','C3rHCNrZv2L0Aa','CgfYC2u','DxrMltG','AwXLoG','s1fNuK0','zw5KC1DPDgG','mZeYmdHMqKDQs3C','mtC4nJC3BNfcCgDr','nteYmtm0og1mCKv6tG','mJq0mdLWyuTgwKq','DhjPBq','CePSq3e','ChvZAa','txLHvM0','B3HWBgy','DKTqu0C','ndi3mKnwBMLWra','zwPODhi','DcbSAw5Lia','AwXLCZO'];_0x4f24=function(){return _0x1a334f;};return _0x4f24();}import{join,basename}from'node:path';import{homedir}from'node:os';const CLAUDE_PROJECTS_DIR=join(homedir(),_0x45a424(-0x166,-0x16e),_0x265ba7(-0x14d,-0x13a));export function parseSessionFile(_0x19a576){const _0x11bb30={'vKPfv':function(_0x1938bb,_0x36d3b5){return _0x1938bb(_0x36d3b5);},'uiSSl':function(_0x4cc229,_0x53ca9d,_0x3e772e){return _0x4cc229(_0x53ca9d,_0x3e772e);},'uBxgt':_0x4bf121(-0xd9,-0xe6),'EFceq':function(_0x111c51,_0x49a526){return _0x111c51!==_0x49a526;},'GxDuP':'raQrm','bMfuw':function(_0x4c98a2,_0x5d5ff1){return _0x4c98a2+_0x5d5ff1;}};function _0x4bf121(_0x5d6c73,_0x37cdcf){return _0x45a424(_0x37cdcf-0x92,_0x5d6c73);}if(!_0x11bb30['vKPfv'](existsSync,_0x19a576))return console[_0x4bf121(-0xdc,-0xd3)](_0x4bf121(-0xfb,-0xf9)+'ion\x20file\x20n'+'ot\x20found:',_0x19a576),[];const _0x82dbfc=_0x11bb30[_0x573647(0x1e0,0x1d6)](readFileSync,_0x19a576,_0x11bb30['uBxgt']),_0x22a08b=_0x82dbfc['split']('\x0a');function _0x573647(_0x25fe43,_0xdfd761){return _0x45a424(_0xdfd761-0x337,_0x25fe43);}const _0x5f1354=[];for(let _0x2a9a68=0x0;_0x2a9a68<_0x22a08b['length'];_0x2a9a68++){if(_0x11bb30[_0x573647(0x195,0x1ae)](_0x573647(0x1ad,0x1aa),_0x11bb30[_0x4bf121(-0xf4,-0x105)]))return _0xbcd785[_0x573647(0x1a4,0x1ab)](/\//g,'-');else{const _0x334a89=_0x22a08b[_0x2a9a68][_0x573647(0x1dd,0x1c7)]();if(!_0x334a89)continue;try{const _0x19c5be=JSON[_0x573647(0x1ce,0x1be)](_0x334a89);_0x19c5be[_0x4bf121(-0x101,-0xf2)]&&_0x19c5be['type']&&_0x19c5be[_0x4bf121(-0xd8,-0xf4)]&&_0x5f1354[_0x4bf121(-0xd1,-0xdc)](_0x19c5be);}catch{_0x573647(0x1df,0x1d4)===_0x4bf121(-0xc8,-0xd1)?console[_0x4bf121(-0xba,-0xd3)](_0x573647(0x1ab,0x1a2)+_0x4bf121(-0x101,-0x101)+_0x573647(0x1ea,0x1cf)+_0x11bb30['bMfuw'](_0x2a9a68,0x1)+_0x573647(0x1c8,0x1b0)+_0x19a576):_0x25c853=_0x11bb30['vKPfv'](_0x4697f1,_0x6ce37f);}}}return _0x5f1354;}export function projectPathToSlug(_0x437297){function _0x529991(_0x3c2c52,_0x1a1174){return _0x265ba7(_0x3c2c52-0x50b,_0x1a1174);}return _0x437297[_0x529991(0x3c4,0x3c2)](/\//g,'-');}export function slugToProjectPath(_0x2a302a){if(_0x2a302a[_0x34bf36(0xb8,0xa1)]('-'))return _0x2a302a['replace'](/-/g,'/');function _0x34bf36(_0x4766f8,_0xa5a468){return _0x45a424(_0xa5a468-0x21b,_0x4766f8);}return _0x2a302a;}function countLines(_0x17b99e){const _0x3c771f=readFileSync(_0x17b99e,_0x52d9f5(0x22d,0x240));function _0x52d9f5(_0x10061b,_0x20eb5a){return _0x265ba7(_0x20eb5a-0x373,_0x10061b);}function _0x3e1f45(_0x1d872a,_0x114095){return _0x265ba7(_0x114095-0x563,_0x1d872a);}return _0x3c771f[_0x3e1f45(0x43e,0x42b)]('\x0a')['filter'](_0x52363d=>_0x52363d['trim']()['length']>0x0)[_0x52d9f5(0x235,0x233)];}function _0x56d2(_0x5807b9,_0x37550c){_0x5807b9=_0x5807b9-0x153;const _0x4f248e=_0x4f24();let _0x56d2c0=_0x4f248e[_0x5807b9];if(_0x56d2['oMUwuf']===undefined){var _0x39ecc5=function(_0x800831){const _0x1cc4bf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x361f3e='',_0x788dd1='';for(let _0x402744=0x0,_0x31fdf3,_0x2cad44,_0x54f56c=0x0;_0x2cad44=_0x800831['charAt'](_0x54f56c++);~_0x2cad44&&(_0x31fdf3=_0x402744%0x4?_0x31fdf3*0x40+_0x2cad44:_0x2cad44,_0x402744++%0x4)?_0x361f3e+=String['fromCharCode'](0xff&_0x31fdf3>>(-0x2*_0x402744&0x6)):0x0){_0x2cad44=_0x1cc4bf['indexOf'](_0x2cad44);}for(let _0x503e20=0x0,_0x5dea63=_0x361f3e['length'];_0x503e20<_0x5dea63;_0x503e20++){_0x788dd1+='%'+('00'+_0x361f3e['charCodeAt'](_0x503e20)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x788dd1);};_0x56d2['IiJEai']=_0x39ecc5,_0x56d2['ajBrLw']={},_0x56d2['oMUwuf']=!![];}const _0x5390a1=_0x4f248e[0x0],_0x2c650f=_0x5807b9+_0x5390a1,_0x21a05=_0x56d2['ajBrLw'][_0x2c650f];return!_0x21a05?(_0x56d2c0=_0x56d2['IiJEai'](_0x56d2c0),_0x56d2['ajBrLw'][_0x2c650f]=_0x56d2c0):_0x56d2c0=_0x21a05,_0x56d2c0;}export function findSessionFiles(_0x11cacb){const _0x19cfaa={'CioPs':function(_0x1873c3,_0x556df1){return _0x1873c3(_0x556df1);},'LxjOE':_0x30b02b(0x378,0x364),'ejhtr':function(_0x4b761b,_0x1a8371,_0x76345){return _0x4b761b(_0x1a8371,_0x76345);},'oxplf':function(_0x3b83b3,_0x372c63,_0x22358a){return _0x3b83b3(_0x372c63,_0x22358a);},'pJlCq':function(_0x1e42ba,_0x145cab){return _0x1e42ba(_0x145cab);},'MyaVm':function(_0x5c769c,_0x59e660){return _0x5c769c(_0x59e660);},'vKPSG':function(_0x3197dc,_0x73004e){return _0x3197dc!==_0x73004e;},'wcuBN':_0x4d0601(0x3c8,0x3b8)};if(!_0x19cfaa[_0x4d0601(0x3c2,0x3c7)](existsSync,CLAUDE_PROJECTS_DIR)){if(_0x19cfaa[_0x30b02b(0x34e,0x368)]!==_0x19cfaa[_0x30b02b(0x366,0x368)])_0x5cd965[_0x30b02b(0x37f,0x382)](_0x30b02b(0x365,0x356)+_0x30b02b(0x37f,0x383)+_0x4d0601(0x3c4,0x3b6)+_0x4d0601(0x3eb,0x3fe),_0x1477c1);else return[];}function _0x30b02b(_0x17ae77,_0x3bc6d6){return _0x45a424(_0x3bc6d6-0x4e7,_0x17ae77);}const _0x35246c=[];try{const _0x5bdb66=_0x11cacb?[projectPathToSlug(_0x11cacb)]:readdirSync(CLAUDE_PROJECTS_DIR);for(const _0x2ae183 of _0x5bdb66){if(_0x30b02b(0x381,0x371)!==_0x30b02b(0x369,0x371))return[];else{const _0x36e7c3=_0x19cfaa[_0x30b02b(0x380,0x37e)](join,CLAUDE_PROJECTS_DIR,_0x2ae183);if(!existsSync(_0x36e7c3))continue;let _0x3d0787;try{_0x3d0787=_0x19cfaa[_0x4d0601(0x3c2,0x3d3)](statSync,_0x36e7c3);}catch{continue;}if(!_0x3d0787['isDirector'+'y']())continue;let _0x4fc0a8;try{_0x4fc0a8=readdirSync(_0x36e7c3);}catch{continue;}for(const _0x5f2291 of _0x4fc0a8){if(!_0x5f2291[_0x30b02b(0x369,0x372)](_0x4d0601(0x3f0,0x407)))continue;const _0x3f253d=_0x19cfaa['ejhtr'](join,_0x36e7c3,_0x5f2291),_0x340c0=_0x19cfaa[_0x4d0601(0x3e6,0x3ea)](basename,_0x5f2291,'.jsonl');try{const _0xfe2ca1=_0x19cfaa[_0x4d0601(0x3e3,0x3dc)](statSync,_0x3f253d),_0xf4a2cb=countLines(_0x3f253d);_0x35246c['push']({'sessionId':_0x340c0,'projectPath':_0x19cfaa[_0x4d0601(0x3e5,0x3fd)](slugToProjectPath,_0x2ae183),'filePath':_0x3f253d,'messageCount':_0xf4a2cb,'sizeBytes':_0xfe2ca1[_0x30b02b(0x379,0x367)],'modifiedAt':_0xfe2ca1['mtimeMs']});}catch{console['error']('[a2a]\x20Fail'+_0x30b02b(0x351,0x353)+_0x4d0601(0x3c4,0x3bc)+_0x30b02b(0x360,0x370),_0x3f253d);}}}}}catch(_0x3ac282){if(_0x19cfaa[_0x30b02b(0x376,0x37c)](_0x19cfaa[_0x30b02b(0x365,0x35f)],_0x19cfaa[_0x30b02b(0x35b,0x35f)])){if(_0x2ccc61['startsWith']('-'))return _0x19d43c[_0x4d0601(0x3c6,0x3c5)](/-/g,'/');return _0x46bd31;}else console[_0x30b02b(0x38d,0x382)](_0x4d0601(0x3c1,0x3af)+_0x30b02b(0x376,0x383)+_0x30b02b(0x370,0x359)+_0x30b02b(0x36c,0x380),_0x3ac282);}function _0x4d0601(_0x2e99d6,_0x445221){return _0x45a424(_0x2e99d6-0x552,_0x445221);}return _0x35246c;}function _0x265ba7(_0x481be5,_0x5e52e9){return _0x56d2(_0x481be5- -0x2a5,_0x5e52e9);}export function getSessionMessages(_0x3c78f8,_0x162c88){const _0x2a7f01={'VIEQP':function(_0x1e72d4,_0x39e1d7){return _0x1e72d4(_0x39e1d7);}},_0x455c40=_0x2a7f01['VIEQP'](projectPathToSlug,_0x162c88),_0x4b0ee6=join(CLAUDE_PROJECTS_DIR,_0x455c40,_0x3c78f8+_0xc194dc(0x1a4,0x1a6));function _0xc194dc(_0x43a7f5,_0x19a34f){return _0x45a424(_0x19a34f-0x308,_0x43a7f5);}return _0x2a7f01['VIEQP'](parseSessionFile,_0x4b0ee6);}
|