@simosphere/tokenizer-speedup 0.7.4 → 0.8.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.
Files changed (41) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README-plugin.md +17 -1
  3. package/README.de.md +41 -1
  4. package/README.md +41 -1
  5. package/dist/cli/analyze.js +1 -1
  6. package/dist/cli/config-cmd.js +1 -1
  7. package/dist/cli/index.js +1 -1
  8. package/dist/cli/init-cmd.js +1 -0
  9. package/dist/cli/setup-cmd.js +1 -1
  10. package/dist/cloud/stripe-checkout.js +1 -1
  11. package/dist/cloud/stripe-config.js +1 -1
  12. package/dist/cloud/stripe-usage.js +1 -1
  13. package/dist/cloud/stripe-webhooks.js +1 -1
  14. package/dist/cloud/subscription-store.js +1 -1
  15. package/dist/manifest.json +37 -32
  16. package/dist/mcp/index.js +2 -0
  17. package/dist/mcp/resources.js +1 -0
  18. package/dist/mcp/session.js +1 -0
  19. package/dist/mcp/tools.js +1 -0
  20. package/dist/plugin/cli.js +1 -1
  21. package/dist/plugin/config-loader.js +1 -1
  22. package/dist/plugin/context-compressor.js +1 -1
  23. package/dist/plugin/hook-dispatcher.js +1 -1
  24. package/dist/plugin/metering-client.js +1 -1
  25. package/dist/plugin/metrics-collector.js +1 -1
  26. package/dist/plugin/onboarding.js +1 -1
  27. package/dist/plugin/precompact-handler.js +1 -1
  28. package/dist/plugin/report.js +1 -1
  29. package/dist/plugin/rule-analytics-store.js +1 -1
  30. package/dist/plugin/rule-analytics.js +1 -1
  31. package/dist/plugin/rule-engine.js +1 -1
  32. package/dist/plugin/rule-sharing.js +1 -1
  33. package/dist/plugin/rule-suggest.js +1 -1
  34. package/dist/plugin/session-start.js +1 -1
  35. package/dist/plugin/smart-context.js +1 -1
  36. package/dist/shared/license.js +1 -1
  37. package/dist/shared/providers/claude-provider.js +1 -1
  38. package/dist/shared/providers/openai-provider.js +1 -1
  39. package/dist/shared/token-counter.js +1 -1
  40. package/dist/shared/token-provider.js +1 -1
  41. package/package.json +7 -3
@@ -1 +1 @@
1
- function _0x3210(_0x4d176d,_0x45c380){_0x4d176d=_0x4d176d-0x138;const _0x318fc5=_0x318f();let _0x3210eb=_0x318fc5[_0x4d176d];return _0x3210eb;}const _0x1a90c2=_0x3210;(function(_0x18f7b1,_0xefbf16){const _0x4038f5=_0x3210,_0x1e9282=_0x18f7b1();while(!![]){try{const _0x47cb68=parseInt(_0x4038f5(0x14b))/0x1*(parseInt(_0x4038f5(0x13b))/0x2)+parseInt(_0x4038f5(0x143))/0x3*(-parseInt(_0x4038f5(0x13c))/0x4)+-parseInt(_0x4038f5(0x14c))/0x5+parseInt(_0x4038f5(0x13f))/0x6+parseInt(_0x4038f5(0x142))/0x7+-parseInt(_0x4038f5(0x138))/0x8+parseInt(_0x4038f5(0x149))/0x9;if(_0x47cb68===_0xefbf16)break;else _0x1e9282['push'](_0x1e9282['shift']());}catch(_0x43aba3){_0x1e9282['push'](_0x1e9282['shift']());}}}(_0x318f,0x1ba40));import{readFileSync}from'node:fs';import{join}from'node:path';import _0x1526aa from'js-yaml';import'../shared/providers/claude-provider.js';import'../shared/providers/openai-provider.js';import{listProviders}from'../shared/token-provider.js';const CONFIG_FILENAME=_0x1a90c2(0x13a),DEFAULT_LIMITS={'max_injected_tokens':0xfa0,'max_file_tokens':0x5dc,'compress_above':0x320},DEFAULT_METERING={'endpoint':_0x1a90c2(0x13e),'batch_interval':0x3c,'send_content':!0x1};export function parseConfig(_0x54684f){const _0x57b48a=_0x1a90c2,_0x135a3d={'BUFKN':function(_0x298fb9,_0xa53cae){return _0x298fb9!=_0xa53cae;},'uQbIR':'number','HURIv':_0x57b48a(0x14d),'diAbi':_0x57b48a(0x140),'HauUS':'gpt-4o','LvpRE':function(_0x4c1f75){return _0x4c1f75();}},_0x32548a=_0x1526aa['load'](_0x54684f);if(!_0x32548a||_0x135a3d['BUFKN'](_0x135a3d['uQbIR'],typeof _0x32548a['version']))throw new Error(_0x135a3d['HURIv']);const _0x37d3eb=_0x32548a['provider']??'claude',_0x38ecaa=_0x32548a['model']??(_0x57b48a(0x139)===_0x37d3eb?_0x135a3d[_0x57b48a(0x141)]:_0x135a3d['HauUS']),_0x47936f=_0x135a3d[_0x57b48a(0x147)](listProviders);if(!_0x47936f['includes'](_0x37d3eb))throw new Error('Unknown\x20provider:\x20'+_0x37d3eb+_0x57b48a(0x13d)+_0x47936f[_0x57b48a(0x144)](',\x20'));const _0x403d46=Array['isArray'](_0x32548a['rules'])?_0x32548a['rules']:[],_0x1ee14e=_0x32548a[_0x57b48a(0x145)]??DEFAULT_LIMITS,_0x592582=_0x32548a['metering']??DEFAULT_METERING;return{'version':_0x32548a[_0x57b48a(0x14a)],'provider':_0x37d3eb,'model':_0x38ecaa,'rules':_0x403d46,'context_limits':_0x1ee14e,'metering':_0x592582};}export function loadConfigFromString(_0x45ebbb){const _0x49445d=_0x1a90c2,_0x4b786b={'eJRUx':function(_0x17e5ae,_0x406af4){return _0x17e5ae(_0x406af4);}};return _0x4b786b[_0x49445d(0x146)](parseConfig,_0x45ebbb);}function _0x318f(){const _0x2fe798=['version','4798wRpbFo','717490vlpgdi','Invalid\x20config:\x20missing\x20or\x20invalid\x20\x22version\x22\x20field','289144iJbOAB','claude','tokenizer-speedup.yaml','28xzIwJg','4kmPBLm','.\x20Known:\x20','https://api.simosphere.ai/v1/meter','10794icwTnG','claude-sonnet-4-20250514','diAbi','1169469SwCylF','122847MBviJZ','join','context_limits','eJRUx','LvpRE','utf-8','879912gCmVmj'];_0x318f=function(){return _0x2fe798;};return _0x318f();}export function loadConfig(_0x38dd17){const _0x49ba2f=_0x1a90c2,_0x517ac6={'PUKHr':function(_0x387f11,_0x3f7f35){return _0x387f11(_0x3f7f35);}},_0x3c0e74=join(_0x38dd17,CONFIG_FILENAME);return _0x517ac6['PUKHr'](parseConfig,readFileSync(_0x3c0e74,_0x49ba2f(0x148)));}
1
+ const _0x18835b=_0x3b22;(function(_0x439e9f,_0x4a7112){const _0x38f671=_0x3b22,_0x3cc197=_0x439e9f();while(!![]){try{const _0x2c3868=parseInt(_0x38f671(0x14e))/0x1*(parseInt(_0x38f671(0x159))/0x2)+-parseInt(_0x38f671(0x15b))/0x3*(-parseInt(_0x38f671(0x15c))/0x4)+-parseInt(_0x38f671(0x14b))/0x5*(-parseInt(_0x38f671(0x161))/0x6)+parseInt(_0x38f671(0x154))/0x7*(parseInt(_0x38f671(0x15a))/0x8)+parseInt(_0x38f671(0x156))/0x9+-parseInt(_0x38f671(0x15d))/0xa*(-parseInt(_0x38f671(0x15f))/0xb)+parseInt(_0x38f671(0x157))/0xc*(-parseInt(_0x38f671(0x160))/0xd);if(_0x2c3868===_0x4a7112)break;else _0x3cc197['push'](_0x3cc197['shift']());}catch(_0x1f7c53){_0x3cc197['push'](_0x3cc197['shift']());}}}(_0x51ed,0x704c8));import{readFileSync}from'node:fs';import{join}from'node:path';function _0x51ed(){const _0x4506e6=['load','gpt-4o','5JCGJNW','join','version','229ntiieG','https://api.simosphere.ai/v1/meter','rules','mlHgV','RpGbY','number','56OqLbYv','includes','2644479ZArwrQ','269616rhvlFE','metering','7132RTUQMl','595184ycHZeQ','2630193gahsGB','4OuHQhl','1270QQdwhi','.\x20Known:\x20','4763XdAwdH','1274LbGPOD','146934qpBmJD','Unknown\x20provider:\x20','model','claude'];_0x51ed=function(){return _0x4506e6;};return _0x51ed();}import _0x9cf265 from'js-yaml';import'../shared/providers/claude-provider.js';function _0x3b22(_0x135d49,_0x52d6d6){_0x135d49=_0x135d49-0x14a;const _0x51ed11=_0x51ed();let _0x3b2288=_0x51ed11[_0x135d49];return _0x3b2288;}import'../shared/providers/openai-provider.js';import{listProviders}from'../shared/token-provider.js';const CONFIG_FILENAME='tokenizer-speedup.yaml';export const DEFAULT_LIMITS={'max_injected_tokens':0xfa0,'max_file_tokens':0x5dc,'compress_above':0x320};export const DEFAULT_METERING={'endpoint':_0x18835b(0x14f),'batch_interval':0x3c,'send_content':!0x1};export function parseConfig(_0x5b9b08){const _0x49dbe9=_0x18835b,_0x2154e2={'xyEDn':'Invalid\x20config:\x20missing\x20or\x20invalid\x20\x22version\x22\x20field','mlHgV':_0x49dbe9(0x164),'RpGbY':'claude-sonnet-4-20250514'},_0xf58bef=_0x9cf265[_0x49dbe9(0x165)](_0x5b9b08);if(!_0xf58bef||_0x49dbe9(0x153)!=typeof _0xf58bef[_0x49dbe9(0x14d)])throw new Error(_0x2154e2['xyEDn']);const _0x17e53d=_0xf58bef['provider']??_0x2154e2['mlHgV'],_0x2deee5=_0xf58bef[_0x49dbe9(0x163)]??(_0x2154e2[_0x49dbe9(0x151)]===_0x17e53d?_0x2154e2[_0x49dbe9(0x152)]:_0x49dbe9(0x14a)),_0x4c7e9d=listProviders();if(!_0x4c7e9d[_0x49dbe9(0x155)](_0x17e53d))throw new Error(_0x49dbe9(0x162)+_0x17e53d+_0x49dbe9(0x15e)+_0x4c7e9d[_0x49dbe9(0x14c)](',\x20'));const _0x3827bc=Array['isArray'](_0xf58bef[_0x49dbe9(0x150)])?_0xf58bef[_0x49dbe9(0x150)]:[],_0x1e4c8c=_0xf58bef['context_limits']??DEFAULT_LIMITS,_0x13d1ec=_0xf58bef[_0x49dbe9(0x158)]??DEFAULT_METERING;return{'version':_0xf58bef['version'],'provider':_0x17e53d,'model':_0x2deee5,'rules':_0x3827bc,'context_limits':_0x1e4c8c,'metering':_0x13d1ec};}export function loadConfigFromString(_0x1e07ad){return parseConfig(_0x1e07ad);}export function loadConfig(_0x5471a9){const _0xdd7f09={'mIMXE':function(_0x271285,_0x1f13b1,_0x80dfd1){return _0x271285(_0x1f13b1,_0x80dfd1);}},_0x52f068=join(_0x5471a9,CONFIG_FILENAME);return parseConfig(_0xdd7f09['mIMXE'](readFileSync,_0x52f068,'utf-8'));}
@@ -1 +1 @@
1
- function _0x1300(){const _0x49cb75=['246120qAzAZE','83238phprBO','8033LOfyFk','369960lpbIFf','knWYk','8HmSMed','map','ebFwM','split','576225IElGEH','YFsOu','28ljwyGC','jFKDB','eRuxg','floor','1663974wRzOkh','58buboij','5634450zXBsqx'];_0x1300=function(){return _0x49cb75;};return _0x1300();}(function(_0x18c6a6,_0x29fbbb){const _0x2a6706=_0x2db0,_0xbc28f=_0x18c6a6();while(!![]){try{const _0x1ef033=parseInt(_0x2a6706(0x122))/0x1*(parseInt(_0x2a6706(0x11e))/0x2)+parseInt(_0x2a6706(0x129))/0x3+parseInt(_0x2a6706(0x123))/0x4+-parseInt(_0x2a6706(0x120))/0x5+parseInt(_0x2a6706(0x121))/0x6*(parseInt(_0x2a6706(0x12b))/0x7)+parseInt(_0x2a6706(0x125))/0x8*(parseInt(_0x2a6706(0x11d))/0x9)+-parseInt(_0x2a6706(0x11f))/0xa;if(_0x1ef033===_0x29fbbb)break;else _0xbc28f['push'](_0xbc28f['shift']());}catch(_0x4f8894){_0xbc28f['push'](_0xbc28f['shift']());}}}(_0x1300,0x2374f));import{countTokens}from'../shared/token-counter.js';export function compressContext(_0x55ed8a,_0xd12028){const _0x41c54e=_0x2db0,_0x102456={'plCNP':function(_0x4e6468,_0xbe066e){return _0x4e6468<=_0xbe066e;},'Gnqmi':function(_0x48312e,_0x534965){return _0x48312e+_0x534965;},'DgJQW':function(_0x4d0d0f,_0x45e7eb){return _0x4d0d0f>_0x45e7eb;},'jFKDB':function(_0x5ac0ee,_0x3bfef3){return _0x5ac0ee>_0x3bfef3;},'sUFiN':function(_0x254f09,_0x83f35c){return _0x254f09(_0x83f35c);},'JqiCI':function(_0xe01b3e,_0xfa5f64){return _0xe01b3e+_0xfa5f64;},'YFsOu':function(_0x58981c,_0x40bae3){return _0x58981c+_0x40bae3;},'EZBlA':'\x20→\x20','eRuxg':'\x20Token]','knWYk':function(_0xd57a22,_0x4b5746){return _0xd57a22(_0x4b5746);}};if(!_0x55ed8a)return{'text':'','originalTokens':0x0,'compressedTokens':0x0,'wasTruncated':!0x1};const _0x3e63a4=countTokens(_0x55ed8a);if(_0x102456['plCNP'](_0x3e63a4,_0xd12028))return{'text':_0x55ed8a,'originalTokens':_0x3e63a4,'compressedTokens':_0x3e63a4,'wasTruncated':!0x1};const _0x352ee0=_0x55ed8a['split']('\x0a\x0a');let _0x270d19='',_0x28e3da=0x0;for(const _0x57f0ed of _0x352ee0){const _0x10ca4a=_0x270d19?_0x102456['Gnqmi'](_0x270d19+'\x0a\x0a',_0x57f0ed):_0x57f0ed,_0x1a4796=countTokens(_0x10ca4a);if(_0x1a4796>_0xd12028)break;_0x270d19=_0x10ca4a,_0x28e3da=_0x1a4796;}if(!_0x270d19&&_0x102456['DgJQW'](_0x352ee0['length'],0x0)){const _0x1c1086=_0x352ee0[0x0][_0x41c54e(0x128)](/\s+/);let _0x7a6f1e='';for(const _0x1a259c of _0x1c1086){const _0x366e73=_0x7a6f1e?_0x7a6f1e+'\x20'+_0x1a259c:_0x1a259c;if(_0x102456[_0x41c54e(0x11a)](countTokens(_0x366e73),_0xd12028-0x5))break;_0x7a6f1e=_0x366e73;}_0x270d19=_0x7a6f1e,_0x28e3da=_0x102456['sUFiN'](countTokens,_0x270d19);}const _0x36de16=_0x102456['JqiCI'](_0x102456[_0x41c54e(0x12a)](_0x102456['Gnqmi'](_0x270d19,'\x0a\x0a[...\x20gekuerzt,\x20'),_0x3e63a4)+_0x102456['EZBlA']+_0x28e3da,_0x102456[_0x41c54e(0x11b)]);return{'text':_0x36de16,'originalTokens':_0x3e63a4,'compressedTokens':_0x102456[_0x41c54e(0x124)](countTokens,_0x36de16),'wasTruncated':!0x0};}function _0x2db0(_0x52fde1,_0x5bd573){_0x52fde1=_0x52fde1-0x11a;const _0x13001e=_0x1300();let _0x2db0aa=_0x13001e[_0x52fde1];return _0x2db0aa;}export function compressContextBudget(_0x523868,_0x2787af){const _0x4f9a1a=_0x2db0,_0x934589={'ebFwM':function(_0x5384da,_0x519510){return _0x5384da/_0x519510;}},_0x479fb2=Math[_0x4f9a1a(0x11c)](_0x934589[_0x4f9a1a(0x127)](_0x2787af,Math['max'](_0x523868['length'],0x1)));return _0x523868[_0x4f9a1a(0x126)](({label:_0x53eb79,text:_0x4d1e41})=>({'label':_0x53eb79,'result':compressContext(_0x4d1e41,_0x479fb2)}));}
1
+ (function(_0x454c0b,_0x4abacb){const _0x268aa5=_0x46c4,_0x5f51f9=_0x454c0b();while(!![]){try{const _0x4d5421=parseInt(_0x268aa5(0x107))/0x1+parseInt(_0x268aa5(0x100))/0x2+-parseInt(_0x268aa5(0x103))/0x3*(-parseInt(_0x268aa5(0x10a))/0x4)+parseInt(_0x268aa5(0x10b))/0x5*(parseInt(_0x268aa5(0xff))/0x6)+-parseInt(_0x268aa5(0x108))/0x7*(parseInt(_0x268aa5(0x104))/0x8)+parseInt(_0x268aa5(0xfc))/0x9+-parseInt(_0x268aa5(0xfb))/0xa;if(_0x4d5421===_0x4abacb)break;else _0x5f51f9['push'](_0x5f51f9['shift']());}catch(_0x25aee7){_0x5f51f9['push'](_0x5f51f9['shift']());}}}(_0x27b2,0xc47e7));import{countTokens}from'../shared/token-counter.js';function _0x46c4(_0x299de8,_0x29acbd){_0x299de8=_0x299de8-0xfa;const _0x27b275=_0x27b2();let _0x46c497=_0x27b275[_0x299de8];return _0x46c497;}export function compressContext(_0xc405ff,_0x498629){const _0x5c1325=_0x46c4,_0x5e365a={'Kpubm':function(_0x5ba0a5,_0x556e12){return _0x5ba0a5(_0x556e12);},'YeiGy':function(_0x2a96c0,_0x4e65b2){return _0x2a96c0+_0x4e65b2;},'YaCXH':function(_0x2a67d3,_0x3f9bd2){return _0x2a67d3+_0x3f9bd2;},'aFBva':function(_0x159037,_0x22d44b){return _0x159037+_0x22d44b;},'LoPyt':function(_0x4a66d6,_0x19bcce){return _0x4a66d6+_0x19bcce;},'AMkmk':function(_0x1b02dd,_0x52f3dc){return _0x1b02dd(_0x52f3dc);},'MUaDv':function(_0xaaaf7c,_0x5d65d6){return _0xaaaf7c+_0x5d65d6;},'AKgzN':function(_0x226148,_0x2a5936){return _0x226148+_0x2a5936;},'VRcJT':'\x0a\x0a[...\x20gekuerzt,\x20','GzhMJ':'\x20→\x20','CQMin':function(_0x4f1913,_0x3b7845){return _0x4f1913(_0x3b7845);}};if(!_0xc405ff)return{'text':'','originalTokens':0x0,'compressedTokens':0x0,'wasTruncated':!0x1};const _0x20166c=_0x5e365a['Kpubm'](countTokens,_0xc405ff);if(_0x20166c<=_0x498629)return{'text':_0xc405ff,'originalTokens':_0x20166c,'compressedTokens':_0x20166c,'wasTruncated':!0x1};const _0x4fd133=_0xc405ff[_0x5c1325(0x101)]('\x0a\x0a');let _0x36d360='',_0x573490=0x0;for(const _0x20da4 of _0x4fd133){const _0x230b51=_0x36d360?_0x5e365a['YeiGy'](_0x5e365a['YaCXH'](_0x36d360,'\x0a\x0a'),_0x20da4):_0x20da4,_0x533fcc=countTokens(_0x230b51);if(_0x533fcc>_0x498629)break;_0x36d360=_0x230b51,_0x573490=_0x533fcc;}if(!_0x36d360&&_0x4fd133['length']>0x0){const _0x1b6ed6=_0x4fd133[0x0][_0x5c1325(0x101)](/\s+/);let _0x53829b='';for(const _0x2e0482 of _0x1b6ed6){const _0x139d77=_0x53829b?_0x5e365a[_0x5c1325(0x102)](_0x5e365a['LoPyt'](_0x53829b,'\x20'),_0x2e0482):_0x2e0482;if(_0x5e365a[_0x5c1325(0xfd)](countTokens,_0x139d77)>_0x498629-0x5)break;_0x53829b=_0x139d77;}_0x36d360=_0x53829b,_0x573490=countTokens(_0x36d360);}const _0x54b32b=_0x5e365a[_0x5c1325(0x102)](_0x5e365a[_0x5c1325(0xfa)](_0x5e365a[_0x5c1325(0xfe)](_0x36d360+_0x5e365a[_0x5c1325(0x106)],_0x20166c),_0x5e365a['GzhMJ'])+_0x573490,'\x20Token]');return{'text':_0x54b32b,'originalTokens':_0x20166c,'compressedTokens':_0x5e365a['CQMin'](countTokens,_0x54b32b),'wasTruncated':!0x0};}function _0x27b2(){const _0x4e19aa=['split','aFBva','871599SgVEzz','906904DIQRyL','omsia','VRcJT','747716CGBASh','35qZkQWW','map','12tUaedo','1320030lGCKwA','MUaDv','13559570EPbzNe','2554434MZJKfO','AMkmk','AKgzN','6bSXjRW','1120928TbnFOB'];_0x27b2=function(){return _0x4e19aa;};return _0x27b2();}export function compressContextBudget(_0x2e9dcd,_0x83a305){const _0x4c42b5=_0x46c4,_0x3ecb1b={'omsia':function(_0x3d864e,_0x22d37f){return _0x3d864e/_0x22d37f;}},_0x50a0ac=Math['floor'](_0x3ecb1b[_0x4c42b5(0x105)](_0x83a305,Math['max'](_0x2e9dcd['length'],0x1)));return _0x2e9dcd[_0x4c42b5(0x109)](({label:_0x421180,text:_0x32b60b})=>({'label':_0x421180,'result':compressContext(_0x32b60b,_0x50a0ac)}));}
@@ -1 +1 @@
1
- const _0x55d095=_0x2602;function _0x3133(){const _0x414fef=['text','mOxEx','join','4592tPYkya','record','\x20laden.','6987075vubLiu','collector','288940DIspPZ','push','prompt','limits','projectRoot','max_file_tokens','engine','222WYfhwd','user','hook_event_name','82612pVCSQD','length','min','QiWYi','1289866CbaciY','708fgEuBS','now','max_injected_tokens','getSessionSummary','load','11151864ircQtC','content','handlePreCompact','7262019EmgIzI'];_0x3133=function(){return _0x414fef;};return _0x3133();}(function(_0x2bed0f,_0x1dae52){const _0x381ad8=_0x2602,_0xa08133=_0x2bed0f();while(!![]){try{const _0x4d29c2=parseInt(_0x381ad8(0xbe))/0x1+parseInt(_0x381ad8(0xb0))/0x2+parseInt(_0x381ad8(0xb7))/0x3*(-parseInt(_0x381ad8(0xba))/0x4)+-parseInt(_0x381ad8(0xae))/0x5+-parseInt(_0x381ad8(0xbf))/0x6*(-parseInt(_0x381ad8(0xab))/0x7)+parseInt(_0x381ad8(0xa4))/0x8+parseInt(_0x381ad8(0xa7))/0x9;if(_0x4d29c2===_0x1dae52)break;else _0xa08133['push'](_0xa08133['shift']());}catch(_0x410cb5){_0xa08133['push'](_0xa08133['shift']());}}}(_0x3133,0xc01c1));import{RuleEngine}from'./rule-engine.js';import{MetricsCollector}from'./metrics-collector.js';import{compressContext}from'./context-compressor.js';function _0x2602(_0x470d61,_0x4c98b9){_0x470d61=_0x470d61-0xa1;const _0x3133c9=_0x3133();let _0x2602ba=_0x3133c9[_0x470d61];return _0x2602ba;}import{prioritizeContext}from'./precompact-handler.js';import{countTokens}from'../shared/token-counter.js';export class HookDispatcher{['engine'];[_0x55d095(0xaf)];[_0x55d095(0xb4)];constructor(_0xb56715,_0x2873c0,_0x437a35){const _0x1af629=_0x55d095;this[_0x1af629(0xb6)]=new RuleEngine(_0xb56715),this['projectRoot']=_0x2873c0,this['collector']=new MetricsCollector(_0x2873c0,_0x437a35||'session-'+Date[_0x1af629(0xc0)]());}['handleUserPromptSubmit'](_0x7963e){const _0xbf38bf=_0x55d095,_0x10e71e={'CMTtT':function(_0x4d0ad9,_0x16a42f){return _0x4d0ad9===_0x16a42f;},'tVReL':function(_0x4119db,_0x26b203){return _0x4119db(_0x26b203);},'mOxEx':function(_0x2c5933,_0x1d4720){return _0x2c5933+_0x1d4720;}},_0x25f38c=_0x7963e[_0xbf38bf(0xb2)]||'',_0x183dc4=this['engine']['match'](_0x25f38c);if(_0x10e71e['CMTtT'](0x0,_0x183dc4[_0xbf38bf(0xbb)])){const _0x69b07=_0x10e71e['tVReL'](countTokens,_0x25f38c);return this[_0xbf38bf(0xaf)]['record']({'hook_event':_0x7963e['hook_event_name'],'baseline_tokens':_0x69b07,'optimized_tokens':_0x69b07,'rule_matched':null}),{};}const _0x4cab3e=[],_0x364b6c=[];for(const _0x2bdfe4 of _0x183dc4)_0x364b6c[_0xbf38bf(0xb1)](_0x2bdfe4['trigger'][0x0]),_0x2bdfe4['summary_only']?_0x4cab3e[_0xbf38bf(0xb1)]('['+_0x2bdfe4['trigger'][0x0]+']\x20Fuer\x20Details:\x20'+_0x2bdfe4[_0xbf38bf(0xa3)]+_0xbf38bf(0xad)):_0x4cab3e[_0xbf38bf(0xb1)]('['+_0x2bdfe4['trigger'][0x0]+']\x20Relevanter\x20Kontext:\x20'+_0x2bdfe4['load']+'\x20(max\x20'+(_0x2bdfe4['max_tokens']||this[_0xbf38bf(0xb6)][_0xbf38bf(0xb3)][_0xbf38bf(0xb5)])+'\x20Token)');let _0x2f456d=_0x4cab3e[_0xbf38bf(0xaa)]('\x0a');const _0x10cb1f=this['engine'][_0xbf38bf(0xb3)]['compress_above'];_0x10cb1f>0x0&&(_0x2f456d=compressContext(_0x2f456d,_0x10cb1f)[_0xbf38bf(0xa8)]);const _0x19ea5f=countTokens(_0x25f38c),_0x333c20=countTokens(_0x2f456d),_0x457c20=_0x10e71e['mOxEx'](_0x19ea5f,this['engine']['limits']['max_injected_tokens']),_0x57a1d4=_0x10e71e[_0xbf38bf(0xa9)](_0x19ea5f,Math[_0xbf38bf(0xbc)](_0x333c20,this['engine']['limits'][_0xbf38bf(0xa1)]));return this['collector']['record']({'hook_event':_0x7963e['hook_event_name'],'baseline_tokens':_0x457c20,'optimized_tokens':_0x57a1d4,'rule_matched':_0x364b6c[_0xbf38bf(0xaa)]('+')}),{'additionalContext':_0x2f456d};}[_0x55d095(0xa6)](_0x1f4360){const _0x1ad578=_0x55d095,_0x599484={'QiWYi':function(_0x3bbf58,_0x5d9121,_0x55a3d6){return _0x3bbf58(_0x5d9121,_0x55a3d6);}},_0x2d8b8a=[];if(_0x1f4360[_0x1ad578(0xb2)]&&_0x2d8b8a[_0x1ad578(0xb1)]({'role':_0x1ad578(0xb8),'content':_0x1f4360[_0x1ad578(0xb2)],'turnIndex':0x0}),0x0===_0x2d8b8a['length'])return{};const _0x4f218f=_0x599484[_0x1ad578(0xbd)](prioritizeContext,_0x2d8b8a,this['engine'][_0x1ad578(0xb3)]),_0x594b12=_0x4f218f['prioritized']['map'](_0x2ed017=>_0x2ed017[_0x1ad578(0xa5)])[_0x1ad578(0xaa)]('\x0a\x0a');return this[_0x1ad578(0xaf)][_0x1ad578(0xac)]({'hook_event':_0x1f4360[_0x1ad578(0xb9)],'baseline_tokens':_0x4f218f['totalOriginalTokens'],'optimized_tokens':_0x4f218f['totalCompressedTokens'],'rule_matched':null}),{'additionalContext':_0x594b12};}['handleSessionStop'](){const _0x157f22=_0x55d095;return this[_0x157f22(0xaf)]['flush'](),this['collector']['getSummary']();}[_0x55d095(0xa2)](){const _0x4f7507=_0x55d095;return this[_0x4f7507(0xaf)]['getSummary']();}}
1
+ const _0x461bbd=_0x3fad;(function(_0x4451da,_0x58f74f){const _0x231dca=_0x3fad,_0x2c9201=_0x4451da();while(!![]){try{const _0x20391c=-parseInt(_0x231dca(0x1fa))/0x1*(parseInt(_0x231dca(0x1e4))/0x2)+-parseInt(_0x231dca(0x1d8))/0x3*(-parseInt(_0x231dca(0x1f7))/0x4)+-parseInt(_0x231dca(0x1e9))/0x5+-parseInt(_0x231dca(0x1e2))/0x6+parseInt(_0x231dca(0x1f3))/0x7+parseInt(_0x231dca(0x1f4))/0x8*(parseInt(_0x231dca(0x1ec))/0x9)+parseInt(_0x231dca(0x1f5))/0xa*(parseInt(_0x231dca(0x1dc))/0xb);if(_0x20391c===_0x58f74f)break;else _0x2c9201['push'](_0x2c9201['shift']());}catch(_0x3be72f){_0x2c9201['push'](_0x2c9201['shift']());}}}(_0x58d8,0xce17a));import{RuleEngine}from'./rule-engine.js';import{MetricsCollector}from'./metrics-collector.js';import{compressContext}from'./context-compressor.js';import{prioritizeContext}from'./precompact-handler.js';function _0x3fad(_0x482b5d,_0x2485d2){_0x482b5d=_0x482b5d-0x1d8;const _0x58d822=_0x58d8();let _0x3fadef=_0x58d822[_0x482b5d];return _0x3fadef;}import{countTokens}from'../shared/token-counter.js';function _0x58d8(){const _0x1ed8c7=['40qMHcLF','3091690XJOaEZ','projectRoot','5141604OnXzet','record','handleUserPromptSubmit','9RBpblR','content','AwStj','3uRIISa','hook_event_name','push','\x20laden.','44kceudM','prompt','limits','getSummary','max_tokens','collector','7624584izeuwS','getSessionSummary','101242oAOprN',']\x20Fuer\x20Details:\x20','session-','map','trigger','7789165cacPbM','summary_only','length','1349289ZYwhyJ','engine','min','now','\x20(max\x20','load','prioritized','5996606guqroG'];_0x58d8=function(){return _0x1ed8c7;};return _0x58d8();}export class HookDispatcher{[_0x461bbd(0x1ed)];[_0x461bbd(0x1e1)];[_0x461bbd(0x1f6)];constructor(_0x5ce9c5,_0x4ac825,_0x1cb9be){const _0x2bcfd1=_0x461bbd;this[_0x2bcfd1(0x1ed)]=new RuleEngine(_0x5ce9c5),this[_0x2bcfd1(0x1f6)]=_0x4ac825,this['collector']=new MetricsCollector(_0x4ac825,_0x1cb9be||_0x2bcfd1(0x1e6)+Date[_0x2bcfd1(0x1ef)]());}[_0x461bbd(0x1f9)](_0x10c36f){const _0x8aa00=_0x461bbd,_0x16b89c={'Dbbtp':function(_0x338a22,_0x4805db){return _0x338a22>_0x4805db;},'Ycqox':function(_0x538687,_0x55df04,_0x297ad5){return _0x538687(_0x55df04,_0x297ad5);},'iyZvV':function(_0x127ad9,_0x377f67){return _0x127ad9(_0x377f67);},'AwStj':function(_0x4bd3b0,_0x5e5134){return _0x4bd3b0+_0x5e5134;}},_0x4c2ac7=_0x10c36f[_0x8aa00(0x1dd)]||'',_0xcfb84c=this['engine']['match'](_0x4c2ac7);if(0x0===_0xcfb84c[_0x8aa00(0x1eb)]){const _0x38c098=countTokens(_0x4c2ac7);return this[_0x8aa00(0x1e1)][_0x8aa00(0x1f8)]({'hook_event':_0x10c36f['hook_event_name'],'baseline_tokens':_0x38c098,'optimized_tokens':_0x38c098,'rule_matched':null}),{};}const _0x16834f=[],_0x5b676b=[];for(const _0x523a0b of _0xcfb84c)_0x5b676b[_0x8aa00(0x1da)](_0x523a0b[_0x8aa00(0x1e8)][0x0]),_0x523a0b[_0x8aa00(0x1ea)]?_0x16834f[_0x8aa00(0x1da)]('['+_0x523a0b[_0x8aa00(0x1e8)][0x0]+_0x8aa00(0x1e5)+_0x523a0b['load']+_0x8aa00(0x1db)):_0x16834f['push']('['+_0x523a0b['trigger'][0x0]+']\x20Relevanter\x20Kontext:\x20'+_0x523a0b[_0x8aa00(0x1f1)]+_0x8aa00(0x1f0)+(_0x523a0b[_0x8aa00(0x1e0)]||this['engine'][_0x8aa00(0x1de)]['max_file_tokens'])+'\x20Token)');let _0x4b85dc=_0x16834f['join']('\x0a');const _0x2111f0=this[_0x8aa00(0x1ed)][_0x8aa00(0x1de)]['compress_above'];_0x16b89c['Dbbtp'](_0x2111f0,0x0)&&(_0x4b85dc=_0x16b89c['Ycqox'](compressContext,_0x4b85dc,_0x2111f0)['text']);const _0x4f6d01=_0x16b89c['iyZvV'](countTokens,_0x4c2ac7),_0x86ba22=countTokens(_0x4b85dc),_0x4dd265=_0x16b89c[_0x8aa00(0x1fc)](_0x4f6d01,this[_0x8aa00(0x1ed)][_0x8aa00(0x1de)]['max_injected_tokens']),_0x34e72e=_0x16b89c['AwStj'](_0x4f6d01,Math[_0x8aa00(0x1ee)](_0x86ba22,this[_0x8aa00(0x1ed)][_0x8aa00(0x1de)]['max_injected_tokens']));return this['collector'][_0x8aa00(0x1f8)]({'hook_event':_0x10c36f['hook_event_name'],'baseline_tokens':_0x4dd265,'optimized_tokens':_0x34e72e,'rule_matched':_0x5b676b['join']('+')}),{'additionalContext':_0x4b85dc};}['handlePreCompact'](_0x18e25c){const _0x5a49c6=_0x461bbd,_0x3b7efd={'BrfmC':'user'},_0x31e408=[];if(_0x18e25c[_0x5a49c6(0x1dd)]&&_0x31e408[_0x5a49c6(0x1da)]({'role':_0x3b7efd['BrfmC'],'content':_0x18e25c[_0x5a49c6(0x1dd)],'turnIndex':0x0}),0x0===_0x31e408[_0x5a49c6(0x1eb)])return{};const _0x502614=prioritizeContext(_0x31e408,this[_0x5a49c6(0x1ed)]['limits']),_0x17c8ad=_0x502614[_0x5a49c6(0x1f2)][_0x5a49c6(0x1e7)](_0x5c021a=>_0x5c021a[_0x5a49c6(0x1fb)])['join']('\x0a\x0a');return this[_0x5a49c6(0x1e1)]['record']({'hook_event':_0x18e25c[_0x5a49c6(0x1d9)],'baseline_tokens':_0x502614['totalOriginalTokens'],'optimized_tokens':_0x502614['totalCompressedTokens'],'rule_matched':null}),{'additionalContext':_0x17c8ad};}['handleSessionStop'](){const _0xf46a6=_0x461bbd;return this['collector']['flush'](),this[_0xf46a6(0x1e1)][_0xf46a6(0x1df)]();}[_0x461bbd(0x1e3)](){const _0x50215f=_0x461bbd;return this[_0x50215f(0x1e1)]['getSummary']();}}
@@ -1 +1 @@
1
- const _0x801554=_0x1d5f;function _0x1d5f(_0x317379,_0xb7f1b7){_0x317379=_0x317379-0x1c4;const _0x3e71de=_0x3e71();let _0x1d5fc6=_0x3e71de[_0x317379];return _0x1d5fc6;}(function(_0x3f96bb,_0x1cc520){const _0x56cdb8=_0x1d5f,_0x4b72d4=_0x3f96bb();while(!![]){try{const _0x17ff98=-parseInt(_0x56cdb8(0x1d3))/0x1+parseInt(_0x56cdb8(0x1cd))/0x2+-parseInt(_0x56cdb8(0x1c7))/0x3+parseInt(_0x56cdb8(0x1cc))/0x4+parseInt(_0x56cdb8(0x1d6))/0x5*(-parseInt(_0x56cdb8(0x1c8))/0x6)+parseInt(_0x56cdb8(0x1ce))/0x7+-parseInt(_0x56cdb8(0x1ca))/0x8*(-parseInt(_0x56cdb8(0x1cf))/0x9);if(_0x17ff98===_0x1cc520)break;else _0x4b72d4['push'](_0x4b72d4['shift']());}catch(_0x1a3d3f){_0x4b72d4['push'](_0x4b72d4['shift']());}}}(_0x3e71,0xb63a1));export function buildMeterPayload(_0x15ee37,_0x58e505){const _0x4dfccb=_0x1d5f;return{'session_id':_0x15ee37['session_id'],'tokens_saved':_0x15ee37[_0x4dfccb(0x1c5)],'baseline_tokens':_0x15ee37['total_baseline'],'optimized_tokens':_0x15ee37[_0x4dfccb(0x1d7)],'hook_event':'Stop','provider':_0x58e505[_0x4dfccb(0x1c9)],'model':_0x58e505[_0x4dfccb(0x1d9)],'team_id':_0x58e505['team_id']??''};}function _0x3e71(){const _0x106060=['no_endpoint','zuSGa','616123jqOWeD','send','http_','83200pwyPKB','total_optimized','timeout','model','status','application/json','total_delta','Yecha','4473453OUTmlz','450pxlcNx','provider','160SWDAWS','network_error','1954232fYBdGP','771902RrHCCy','5362042afqHqK','1107522gqYlWB','endpoint'];_0x3e71=function(){return _0x106060;};return _0x3e71();}export class MeteringClient{['endpoint'];constructor(_0x70d3e8){this['endpoint']=_0x70d3e8;}async[_0x801554(0x1d4)](_0x549e9d){const _0x5532ef=_0x801554,_0x29c51e={'MfKaz':function(_0x91b11f,_0x36ebcf,_0x3d2861){return _0x91b11f(_0x36ebcf,_0x3d2861);},'zuSGa':_0x5532ef(0x1c4),'Yecha':_0x5532ef(0x1cb)};if(!this['endpoint'])return{'sent':!0x1,'reason':_0x5532ef(0x1d1)};try{const _0x275307=await _0x29c51e['MfKaz'](fetch,this[_0x5532ef(0x1d0)],{'method':'POST','headers':{'Content-Type':_0x29c51e[_0x5532ef(0x1d2)],'Authorization':'Bearer\x20'+(process.env.TOKENIZER_API_KEY||'')},'body':JSON['stringify'](_0x549e9d),'signal':AbortSignal[_0x5532ef(0x1d8)](0x1388)});return _0x275307['ok']?{'sent':!0x0}:{'sent':!0x1,'reason':_0x5532ef(0x1d5)+_0x275307[_0x5532ef(0x1da)]};}catch{return{'sent':!0x1,'reason':_0x29c51e[_0x5532ef(0x1c6)]};}}}
1
+ function _0x5cb7(){const _0x29a2ad=['session_id','54czjWjR','1910280HITpJw','6011800yigYmQ','http_','AIhKJ','stringify','8160cfAddk','16388364JnVYfh','network_error','1085FydtdS','no_endpoint','484nWWTcA','111HbZVXm','application/json','11634WBAwok','2FjTJur','team_id','198376MDswvQ','endpoint','total_delta','model','375880bySrHK'];_0x5cb7=function(){return _0x29a2ad;};return _0x5cb7();}const _0x37ca50=_0x1122;(function(_0x1cb704,_0x440831){const _0x28feb7=_0x1122,_0x10ebb6=_0x1cb704();while(!![]){try{const _0x5bdd05=-parseInt(_0x28feb7(0x1fa))/0x1*(-parseInt(_0x28feb7(0x1e5))/0x2)+-parseInt(_0x28feb7(0x1f7))/0x3*(-parseInt(_0x28feb7(0x1f1))/0x4)+-parseInt(_0x28feb7(0x1ed))/0x5+parseInt(_0x28feb7(0x1f9))/0x6*(parseInt(_0x28feb7(0x1f4))/0x7)+-parseInt(_0x28feb7(0x1ec))/0x8*(parseInt(_0x28feb7(0x1eb))/0x9)+parseInt(_0x28feb7(0x1e9))/0xa*(parseInt(_0x28feb7(0x1f6))/0xb)+parseInt(_0x28feb7(0x1f2))/0xc;if(_0x5bdd05===_0x440831)break;else _0x10ebb6['push'](_0x10ebb6['shift']());}catch(_0x3f896f){_0x10ebb6['push'](_0x10ebb6['shift']());}}}(_0x5cb7,0xea1b4));function _0x1122(_0x5b497a,_0x56c90d){_0x5b497a=_0x5b497a-0x1e4;const _0x5cb747=_0x5cb7();let _0x112221=_0x5cb747[_0x5b497a];return _0x112221;}export function buildMeterPayload(_0x32872e,_0x5b16bb){const _0x140eaf=_0x1122,_0x7e9e0={'PPmJQ':'Stop'};return{'session_id':_0x32872e[_0x140eaf(0x1ea)],'tokens_saved':_0x32872e[_0x140eaf(0x1e7)],'baseline_tokens':_0x32872e['total_baseline'],'optimized_tokens':_0x32872e['total_optimized'],'hook_event':_0x7e9e0['PPmJQ'],'provider':_0x5b16bb['provider'],'model':_0x5b16bb[_0x140eaf(0x1e8)],'team_id':_0x5b16bb[_0x140eaf(0x1e4)]??''};}export class MeteringClient{[_0x37ca50(0x1e6)];constructor(_0x3ffe09){this['endpoint']=_0x3ffe09;}async['send'](_0x4120c0){const _0x531ca7=_0x37ca50,_0x404652={'VzXIo':_0x531ca7(0x1f8),'AIhKJ':_0x531ca7(0x1f3)};if(!this[_0x531ca7(0x1e6)])return{'sent':!0x1,'reason':_0x531ca7(0x1f5)};try{const _0x58cb1d=await fetch(this[_0x531ca7(0x1e6)],{'method':'POST','headers':{'Content-Type':_0x404652['VzXIo'],'Authorization':'Bearer\x20'+(process.env.TOKENIZER_API_KEY||'')},'body':JSON[_0x531ca7(0x1f0)](_0x4120c0),'signal':AbortSignal['timeout'](0x1388)});return _0x58cb1d['ok']?{'sent':!0x0}:{'sent':!0x1,'reason':_0x531ca7(0x1ee)+_0x58cb1d['status']};}catch{return{'sent':!0x1,'reason':_0x404652[_0x531ca7(0x1ef)]};}}}
@@ -1 +1 @@
1
- function _0x4aac(_0x513fb2,_0x5d5c81){_0x513fb2=_0x513fb2-0x93;const _0x4a361b=_0x4a36();let _0x4aacd2=_0x4a361b[_0x513fb2];return _0x4aacd2;}const _0xfbb764=_0x4aac;(function(_0x4669f3,_0x1b1d36){const _0x4de77a=_0x4aac,_0x35b38d=_0x4669f3();while(!![]){try{const _0xa28a5e=-parseInt(_0x4de77a(0xa5))/0x1*(-parseInt(_0x4de77a(0x9a))/0x2)+parseInt(_0x4de77a(0x98))/0x3*(parseInt(_0x4de77a(0xa9))/0x4)+-parseInt(_0x4de77a(0x99))/0x5+-parseInt(_0x4de77a(0xab))/0x6*(-parseInt(_0x4de77a(0xa4))/0x7)+-parseInt(_0x4de77a(0x97))/0x8*(-parseInt(_0x4de77a(0xa6))/0x9)+-parseInt(_0x4de77a(0xa1))/0xa*(parseInt(_0x4de77a(0xae))/0xb)+-parseInt(_0x4de77a(0x9c))/0xc*(parseInt(_0x4de77a(0x95))/0xd);if(_0xa28a5e===_0x1b1d36)break;else _0x35b38d['push'](_0x35b38d['shift']());}catch(_0x3a4041){_0x35b38d['push'](_0x35b38d['shift']());}}}(_0x4a36,0x5abf8));import{mkdirSync,writeFileSync}from'node:fs';import{join}from'node:path';function _0x4a36(){const _0x437f21=['11YbPcAP','baseline_tokens','utf-8','stringify','reduce','1651wDsZln','startedAt','8TwwGRs','3JalYAg','1462525hEmLHW','949174fesQQn','record','51708LdwMTS','optimized_tokens','hook_event','oJfcq','flush','214190PWQpZe','metrics','rule_matched','710381ojFOCm','1gdmoDd','4421961Neoxkj','lkyBr','length','661888aeXDVe','sessionId','6abbhft','projectRoot','push'];_0x4a36=function(){return _0x437f21;};return _0x4a36();}const METRICS_DIR='.tokenizer-speedup';export class MetricsCollector{['metrics']=[];[_0xfbb764(0xaa)];['projectRoot'];[_0xfbb764(0x96)];constructor(_0x5e68ed,_0x4192b8){const _0x46fa50=_0xfbb764;this[_0x46fa50(0xac)]=_0x5e68ed,this[_0x46fa50(0xaa)]=_0x4192b8,this[_0x46fa50(0x96)]=new Date()['toISOString']();}[_0xfbb764(0x9b)](_0x45a01e){const _0x2912cc=_0xfbb764;this['metrics'][_0x2912cc(0xad)]({'session_id':this[_0x2912cc(0xaa)],'timestamp':new Date()['toISOString'](),'hook_event':_0x45a01e[_0x2912cc(0x9e)],'baseline_tokens':_0x45a01e['baseline_tokens'],'optimized_tokens':_0x45a01e[_0x2912cc(0x9d)],'delta':_0x45a01e['baseline_tokens']-_0x45a01e['optimized_tokens'],'rule_matched':_0x45a01e[_0x2912cc(0xa3)]});}['getMetrics'](){return[...this['metrics']];}['getSummary'](){const _0x55c40b=_0xfbb764,_0x14deb7={'oJfcq':function(_0x2b5ef1,_0x472921){return _0x2b5ef1+_0x472921;},'lkyBr':function(_0x3fc7bc,_0x228b2c){return _0x3fc7bc*_0x228b2c;},'FNGIe':function(_0x1ed7b9,_0x4378a0){return _0x1ed7b9/_0x4378a0;}},_0x199bac=this[_0x55c40b(0xa2)][_0x55c40b(0x94)]((_0x4b9983,_0x502e98)=>_0x4b9983+_0x502e98[_0x55c40b(0xaf)],0x0),_0x49d8dd=this[_0x55c40b(0xa2)][_0x55c40b(0x94)]((_0x211773,_0x4f55a8)=>_0x211773+_0x4f55a8['optimized_tokens'],0x0),_0x5d821e=_0x199bac-_0x49d8dd,_0x49b9bc={};for(const _0x3fb470 of this['metrics'])_0x3fb470['rule_matched']&&(_0x49b9bc[_0x3fb470[_0x55c40b(0xa3)]]=_0x14deb7[_0x55c40b(0x9f)](_0x49b9bc[_0x3fb470[_0x55c40b(0xa3)]]||0x0,0x1));return{'session_id':this[_0x55c40b(0xaa)],'started_at':this[_0x55c40b(0x96)],'ended_at':new Date()['toISOString'](),'total_baseline':_0x199bac,'total_optimized':_0x49d8dd,'total_delta':_0x5d821e,'savings_percent':_0x199bac>0x0?_0x14deb7[_0x55c40b(0xa7)](_0x14deb7['FNGIe'](_0x5d821e,_0x199bac),0x64):0x0,'prompts_count':this[_0x55c40b(0xa2)][_0x55c40b(0xa8)],'rules_triggered':_0x49b9bc};}[_0xfbb764(0xa0)](){const _0x4de828=_0xfbb764,_0xd264a={'setBQ':function(_0x11eba0,_0xac0670,_0xd1c156){return _0x11eba0(_0xac0670,_0xd1c156);}},_0x270b33=join(this['projectRoot'],METRICS_DIR);_0xd264a['setBQ'](mkdirSync,_0x270b33,{'recursive':!0x0});const _0x5507f8={'metrics':this['metrics'],'summary':this['getSummary']()};writeFileSync(join(_0x270b33,this['sessionId']+'.json'),JSON[_0x4de828(0x93)](_0x5507f8,null,0x2),_0x4de828(0xb0));}}
1
+ function _0x5063(){const _0x43ea0a=['15zYdgmS','232404xTihDD','1179890ABpsVX','baseline_tokens','metrics','getSummary','sessionId','9RmooFQ','8736924ExiEvs','record','startedAt','toISOString','329KlIBGz','53898loQakx','66sqywqz','push','421912UKuiMN','Ptjkv','11hIZYaC','rule_matched','optimized_tokens','161474uOaZwU','hook_event','projectRoot','8621416ZMfdOX'];_0x5063=function(){return _0x43ea0a;};return _0x5063();}const _0x279c6a=_0x5a49;function _0x5a49(_0x198eaa,_0x50e39d){_0x198eaa=_0x198eaa-0x197;const _0x5063f6=_0x5063();let _0x5a494c=_0x5063f6[_0x198eaa];return _0x5a494c;}(function(_0x381424,_0x11e4dc){const _0x35980a=_0x5a49,_0x51bf12=_0x381424();while(!![]){try{const _0x554b19=-parseInt(_0x35980a(0x197))/0x1+parseInt(_0x35980a(0x1a8))/0x2*(-parseInt(_0x35980a(0x1a9))/0x3)+parseInt(_0x35980a(0x1ab))/0x4*(parseInt(_0x35980a(0x19b))/0x5)+-parseInt(_0x35980a(0x19c))/0x6*(-parseInt(_0x35980a(0x1a7))/0x7)+-parseInt(_0x35980a(0x19a))/0x8*(parseInt(_0x35980a(0x1a2))/0x9)+-parseInt(_0x35980a(0x19d))/0xa*(parseInt(_0x35980a(0x1ad))/0xb)+parseInt(_0x35980a(0x1a3))/0xc;if(_0x554b19===_0x11e4dc)break;else _0x51bf12['push'](_0x51bf12['shift']());}catch(_0x20016e){_0x51bf12['push'](_0x51bf12['shift']());}}}(_0x5063,0xdf62f));import{mkdirSync,writeFileSync}from'node:fs';import{join}from'node:path';const METRICS_DIR='.tokenizer-speedup';export class MetricsCollector{[_0x279c6a(0x19f)]=[];['sessionId'];[_0x279c6a(0x199)];[_0x279c6a(0x1a5)];constructor(_0x3d0ecd,_0x1b419d){const _0x25a06f=_0x279c6a;this['projectRoot']=_0x3d0ecd,this[_0x25a06f(0x1a1)]=_0x1b419d,this[_0x25a06f(0x1a5)]=new Date()['toISOString']();}[_0x279c6a(0x1a4)](_0xce93b0){const _0x5ba13c=_0x279c6a,_0x56459e={'Ptjkv':function(_0x3f0861,_0x40fdde){return _0x3f0861-_0x40fdde;}};this[_0x5ba13c(0x19f)][_0x5ba13c(0x1aa)]({'session_id':this['sessionId'],'timestamp':new Date()['toISOString'](),'hook_event':_0xce93b0[_0x5ba13c(0x198)],'baseline_tokens':_0xce93b0['baseline_tokens'],'optimized_tokens':_0xce93b0[_0x5ba13c(0x1af)],'delta':_0x56459e[_0x5ba13c(0x1ac)](_0xce93b0[_0x5ba13c(0x19e)],_0xce93b0['optimized_tokens']),'rule_matched':_0xce93b0[_0x5ba13c(0x1ae)]});}['getMetrics'](){return[...this['metrics']];}[_0x279c6a(0x1a0)](){const _0x66b903=_0x279c6a,_0x509281={'aDAmj':function(_0x428a52,_0x44d267){return _0x428a52-_0x44d267;},'mbMCN':function(_0x3dae49,_0x454f03){return _0x3dae49+_0x454f03;},'Yrdlg':function(_0x34051a,_0x23bd70){return _0x34051a>_0x23bd70;},'CJIbL':function(_0x4ba81e,_0xf98cc9){return _0x4ba81e/_0xf98cc9;}},_0xd7cd2b=this['metrics']['reduce']((_0x189234,_0x51d810)=>_0x189234+_0x51d810['baseline_tokens'],0x0),_0xdfe729=this[_0x66b903(0x19f)]['reduce']((_0x477a74,_0x6c12c9)=>_0x477a74+_0x6c12c9[_0x66b903(0x1af)],0x0),_0x3eec4d=_0x509281['aDAmj'](_0xd7cd2b,_0xdfe729),_0x37ac5a={};for(const _0x24c10d of this[_0x66b903(0x19f)])_0x24c10d[_0x66b903(0x1ae)]&&(_0x37ac5a[_0x24c10d['rule_matched']]=_0x509281['mbMCN'](_0x37ac5a[_0x24c10d[_0x66b903(0x1ae)]]||0x0,0x1));return{'session_id':this[_0x66b903(0x1a1)],'started_at':this['startedAt'],'ended_at':new Date()[_0x66b903(0x1a6)](),'total_baseline':_0xd7cd2b,'total_optimized':_0xdfe729,'total_delta':_0x3eec4d,'savings_percent':_0x509281['Yrdlg'](_0xd7cd2b,0x0)?_0x509281['CJIbL'](_0x3eec4d,_0xd7cd2b)*0x64:0x0,'prompts_count':this[_0x66b903(0x19f)]['length'],'rules_triggered':_0x37ac5a};}['flush'](){const _0x35cbfe=_0x279c6a,_0x1e0640={'NtylQ':function(_0x23f2f1,_0xaeb4c8,_0x2e3af7){return _0x23f2f1(_0xaeb4c8,_0x2e3af7);}},_0x24ef37=_0x1e0640['NtylQ'](join,this['projectRoot'],METRICS_DIR);_0x1e0640['NtylQ'](mkdirSync,_0x24ef37,{'recursive':!0x0});const _0x102017={'metrics':this[_0x35cbfe(0x19f)],'summary':this[_0x35cbfe(0x1a0)]()};writeFileSync(_0x1e0640['NtylQ'](join,_0x24ef37,this['sessionId']+'.json'),JSON['stringify'](_0x102017,null,0x2),'utf-8');}}
@@ -1 +1 @@
1
- (function(_0x3c5ef6,_0x5ec286){const _0x365489=_0x1896,_0x5d37ca=_0x3c5ef6();while(!![]){try{const _0x5e602b=-parseInt(_0x365489(0x126))/0x1*(-parseInt(_0x365489(0x117))/0x2)+parseInt(_0x365489(0x118))/0x3+parseInt(_0x365489(0x124))/0x4+-parseInt(_0x365489(0x125))/0x5*(parseInt(_0x365489(0x120))/0x6)+-parseInt(_0x365489(0x121))/0x7*(parseInt(_0x365489(0x111))/0x8)+-parseInt(_0x365489(0x11e))/0x9+parseInt(_0x365489(0x112))/0xa*(parseInt(_0x365489(0x10c))/0xb);if(_0x5e602b===_0x5ec286)break;else _0x5d37ca['push'](_0x5d37ca['shift']());}catch(_0x4100ed){_0x5d37ca['push'](_0x5d37ca['shift']());}}}(_0x2005,0xab0e7));import{existsSync,readdirSync}from'node:fs';import{join}from'node:path';import _0x187745 from'js-yaml';export function detectProjectDocs(_0x39777d){const _0x3fc662=_0x1896,_0x152ffb={'WkGqc':function(_0x4d3e4d,_0xdb9605){return _0x4d3e4d(_0xdb9605);},'NkZqj':function(_0x52d8b9,_0x25b007){return _0x52d8b9(_0x25b007);},'GYkxz':function(_0x3247d3,_0x5abbb6,_0x1b5026){return _0x3247d3(_0x5abbb6,_0x1b5026);},'AcbEy':'CLAUDE.md','jaoet':function(_0x2d9104,_0x3f93cc,_0x1c939f){return _0x2d9104(_0x3f93cc,_0x1c939f);},'oOTls':'docs/lessons-learned'},_0x2d0ae1=join(_0x39777d,'docs'),_0x1542a2=_0x152ffb['WkGqc'](existsSync,_0x2d0ae1),_0x3527b6=_0x152ffb[_0x3fc662(0x11c)](existsSync,_0x152ffb[_0x3fc662(0x110)](join,_0x39777d,_0x152ffb[_0x3fc662(0x123)])),_0xb65cd5=existsSync(_0x152ffb['jaoet'](join,_0x39777d,_0x152ffb[_0x3fc662(0x122)]));let _0x6251b7=[];if(_0x1542a2)try{_0x6251b7=_0x152ffb[_0x3fc662(0x115)](readdirSync,_0x2d0ae1,{'withFileTypes':!0x0})['filter'](_0x4fe2a8=>_0x4fe2a8['isDirectory']())['map'](_0x343041=>_0x343041[_0x3fc662(0x116)]);}catch{}return{'hasDocsDir':_0x1542a2,'hasClaudeMd':_0x3527b6,'hasLessonsLearned':_0xb65cd5,'docSubdirs':_0x6251b7};}function _0x1896(_0x1e3309,_0x4b4a03){_0x1e3309=_0x1e3309-0x10c;const _0x2005c9=_0x2005();let _0x189605=_0x2005c9[_0x1e3309];return _0x189605;}export function generateDefaultConfig(_0x5378f6){const _0x37db0c=_0x1896,_0x1c5bca={'WRdlu':'fix','BTxvj':_0x37db0c(0x11a),'VMYKk':'error','weWfb':_0x37db0c(0x10e),'osxFK':'architecture','LkYet':_0x37db0c(0x11d),'KijEl':'requirement','TBCSv':'https://api.simosphereai.com/v1/meter'},_0x300036={'version':0x1,'rules':[{'trigger':[_0x1c5bca['WRdlu'],_0x1c5bca['BTxvj'],_0x1c5bca[_0x37db0c(0x114)],'problem'],'load':_0x5378f6[_0x37db0c(0x119)]+_0x37db0c(0x10d),'max_tokens':0x7d0,'summary_only':!0x1},{'trigger':[_0x1c5bca['weWfb'],_0x1c5bca[_0x37db0c(0x11f)],_0x1c5bca['LkYet']],'load':_0x5378f6['docsDir']+_0x37db0c(0x11b),'max_tokens':0xbb8,'summary_only':!0x0},{'trigger':[_0x37db0c(0x113),'spec',_0x1c5bca[_0x37db0c(0x10f)]],'load':_0x5378f6['docsDir']+'features/*.md','max_tokens':0xbb8,'summary_only':!0x0}],'context_limits':{'max_injected_tokens':0x1f40,'max_file_tokens':0xfa0,'compress_above':0xbb8},'metering':{'endpoint':_0x1c5bca['TBCSv'],'batch_interval':0x3c,'send_content':!0x1}};return _0x187745['dump'](_0x300036,{'lineWidth':0x78});}function _0x2005(){const _0x5d205a=['VMYKk','jaoet','name','373348PIBthk','659082BZUAcI','docsDir','bug','decisions/*.md','NkZqj','refactor','4087062QNAicG','osxFK','96972lnOdTX','7mlomHd','oOTls','AcbEy','4750832oAeQZy','50UQIdkr','5yBkyjm','48466kVYUsQ','lessons-learned/*.md','design','KijEl','GYkxz','8265592LZEDUu','20gPhbwE','feature'];_0x2005=function(){return _0x5d205a;};return _0x2005();}
1
+ (function(_0x5127dc,_0x2ddb6f){const _0x58982b=_0x469f,_0x291fb7=_0x5127dc();while(!![]){try{const _0xb30e0c=-parseInt(_0x58982b(0x70))/0x1+-parseInt(_0x58982b(0x6f))/0x2*(-parseInt(_0x58982b(0x89))/0x3)+-parseInt(_0x58982b(0x7a))/0x4*(parseInt(_0x58982b(0x76))/0x5)+-parseInt(_0x58982b(0x7d))/0x6+-parseInt(_0x58982b(0x7e))/0x7*(parseInt(_0x58982b(0x71))/0x8)+-parseInt(_0x58982b(0x80))/0x9*(-parseInt(_0x58982b(0x85))/0xa)+-parseInt(_0x58982b(0x74))/0xb*(-parseInt(_0x58982b(0x7f))/0xc);if(_0xb30e0c===_0x2ddb6f)break;else _0x291fb7['push'](_0x291fb7['shift']());}catch(_0x3d93f0){_0x291fb7['push'](_0x291fb7['shift']());}}}(_0x2d78,0x2f7ce));function _0x469f(_0x2d13fd,_0x4f1a60){_0x2d13fd=_0x2d13fd-0x6b;const _0x2d785d=_0x2d78();let _0x469f78=_0x2d785d[_0x2d13fd];return _0x469f78;}import{existsSync,readdirSync}from'node:fs';import{join}from'node:path';import _0x4f374c from'js-yaml';export function detectProjectDocs(_0x297a54){const _0xce9465=_0x469f,_0x4aa5ad={'TcNqO':function(_0x1cb8dd,_0x2782d9,_0x4dbe2b){return _0x1cb8dd(_0x2782d9,_0x4dbe2b);},'FmPZt':'docs','HciYG':function(_0x14df2f,_0xcd2c04){return _0x14df2f(_0xcd2c04);},'HuBDU':function(_0x3d76a3,_0x5f5027,_0x405709){return _0x3d76a3(_0x5f5027,_0x405709);}},_0x3a7c81=_0x4aa5ad[_0xce9465(0x75)](join,_0x297a54,_0x4aa5ad[_0xce9465(0x82)]),_0x5515fd=_0x4aa5ad[_0xce9465(0x6c)](existsSync,_0x3a7c81),_0x3776a3=existsSync(join(_0x297a54,_0xce9465(0x77))),_0x2ab3a5=existsSync(_0x4aa5ad['TcNqO'](join,_0x297a54,_0xce9465(0x73)));let _0x58d091=[];if(_0x5515fd)try{_0x58d091=_0x4aa5ad['HuBDU'](readdirSync,_0x3a7c81,{'withFileTypes':!0x0})[_0xce9465(0x81)](_0xeaa5=>_0xeaa5[_0xce9465(0x6e)]())[_0xce9465(0x72)](_0x10eb49=>_0x10eb49[_0xce9465(0x87)]);}catch{}return{'hasDocsDir':_0x5515fd,'hasClaudeMd':_0x3776a3,'hasLessonsLearned':_0x2ab3a5,'docSubdirs':_0x58d091};}function _0x2d78(){const _0x3d8634=['map','docs/lessons-learned','2497XUTzBb','TcNqO','205sdnrog','CLAUDE.md','https://api.simosphereai.com/v1/meter','error','25348BGRaMM','features/*.md','problem','1055400CQNJBm','7siTgxe','40296WLSMKj','45TCEIoC','filter','FmPZt','lessons-learned/*.md','EWVgP','273310FmXqeZ','design','name','architecture','174QqiSji','fix','HciYG','requirement','isDirectory','8134HUiVap','121644iXKYzr','3063488hinHCv'];_0x2d78=function(){return _0x3d8634;};return _0x2d78();}export function generateDefaultConfig(_0x3932c8){const _0xda2872=_0x469f,_0x5b2062={'FvqxS':'bug','moMmt':_0xda2872(0x79),'jakky':_0xda2872(0x7c),'EWVgP':_0xda2872(0x88),'LrtOP':'refactor','cJUUh':_0xda2872(0x78)},_0x35ce88={'version':0x1,'rules':[{'trigger':[_0xda2872(0x6b),_0x5b2062['FvqxS'],_0x5b2062['moMmt'],_0x5b2062['jakky']],'load':_0x3932c8['docsDir']+_0xda2872(0x83),'max_tokens':0x7d0,'summary_only':!0x1},{'trigger':[_0xda2872(0x86),_0x5b2062[_0xda2872(0x84)],_0x5b2062['LrtOP']],'load':_0x3932c8['docsDir']+'decisions/*.md','max_tokens':0xbb8,'summary_only':!0x0},{'trigger':['feature','spec',_0xda2872(0x6d)],'load':_0x3932c8['docsDir']+_0xda2872(0x7b),'max_tokens':0xbb8,'summary_only':!0x0}],'context_limits':{'max_injected_tokens':0x1f40,'max_file_tokens':0xfa0,'compress_above':0xbb8},'metering':{'endpoint':_0x5b2062['cJUUh'],'batch_interval':0x3c,'send_content':!0x1}};return _0x4f374c['dump'](_0x35ce88,{'lineWidth':0x78});}
@@ -1 +1 @@
1
- function _0x1718(){const _0x415000=['push','6904644SUbfzp','max','max_injected_tokens','30ldzlBT','gxrmi','290XgVOzv','1107342NSMOqJ','33UEIDak','18StjGNo','1100060oINDke','compressedTokens','slice','content','217596FKyOpj','filter','turn-','role','turnIndex','951265uAkbkG','4houQJZ','wasTruncated','4098LyScVb','originalTokens','system','3613216piHLoU'];_0x1718=function(){return _0x415000;};return _0x1718();}(function(_0x379130,_0x134c07){const _0x182320=_0x5e04,_0x405e60=_0x379130();while(!![]){try{const _0x5b4294=-parseInt(_0x182320(0x1d9))/0x1+parseInt(_0x182320(0x1d1))/0x2*(parseInt(_0x182320(0x1c7))/0x3)+-parseInt(_0x182320(0x1c5))/0x4*(parseInt(_0x182320(0x1d5))/0x5)+parseInt(_0x182320(0x1d4))/0x6*(-parseInt(_0x182320(0x1c4))/0x7)+-parseInt(_0x182320(0x1ca))/0x8+-parseInt(_0x182320(0x1d2))/0x9*(parseInt(_0x182320(0x1cf))/0xa)+-parseInt(_0x182320(0x1d3))/0xb*(-parseInt(_0x182320(0x1cc))/0xc);if(_0x5b4294===_0x134c07)break;else _0x405e60['push'](_0x405e60['shift']());}catch(_0xf10b5d){_0x405e60['push'](_0x405e60['shift']());}}}(_0x1718,0x3f07c));import{compressContextBudget}from'./context-compressor.js';import{countTokens}from'../shared/token-counter.js';function _0x5e04(_0x5a5384,_0x159da1){_0x5a5384=_0x5a5384-0x1c1;const _0x171853=_0x1718();let _0x5e04ad=_0x171853[_0x5a5384];return _0x5e04ad;}export function prioritizeContext(_0x8d21f7,_0x4e1ff0,_0x2a584e=0x4){const _0x5c41cf=_0x5e04,_0x540f5c={'gxrmi':function(_0x2275ed,_0x4c35e7){return _0x2275ed===_0x4c35e7;},'ebXtB':function(_0x50c8b2,_0x28729b){return _0x50c8b2(_0x28729b);},'MftQP':function(_0x4d5a67,_0x38ccab){return _0x4d5a67(_0x38ccab);}};if(_0x540f5c[_0x5c41cf(0x1d0)](0x0,_0x8d21f7['length']))return{'prioritized':[],'totalOriginalTokens':0x0,'totalCompressedTokens':0x0,'segmentsDropped':0x0};const _0x280f5b=_0x4e1ff0[_0x5c41cf(0x1ce)],_0x21b9d5=_0x8d21f7[_0x5c41cf(0x1da)](_0x45f6b6=>_0x5c41cf(0x1c9)===_0x45f6b6['role']),_0x2bac6f=_0x8d21f7[_0x5c41cf(0x1da)](_0xc21745=>_0x5c41cf(0x1c9)!==_0xc21745[_0x5c41cf(0x1c2)]),_0x407816=Math['max'](0x0,_0x2bac6f['length']-_0x2a584e),_0x3fee03=_0x2bac6f['slice'](_0x407816),_0x34947d=_0x2bac6f[_0x5c41cf(0x1d7)](0x0,_0x407816),_0x3f1174=[];let _0x2f97a4=0x0,_0x5557be=0x0,_0x59920f=0x0;for(const _0x1556ab of _0x21b9d5){const _0x361fba=_0x540f5c['ebXtB'](countTokens,_0x1556ab['content']);_0x2f97a4+=_0x361fba,_0x5557be+=_0x361fba,_0x3f1174[_0x5c41cf(0x1cb)]({'role':_0x1556ab[_0x5c41cf(0x1c2)],'content':_0x1556ab['content'],'turnIndex':_0x1556ab['turnIndex'],'compressed':!0x1});}for(const _0x470494 of _0x3fee03){const _0xc94518=_0x540f5c['ebXtB'](countTokens,_0x470494['content']);_0x2f97a4+=_0xc94518,_0x5557be+=_0xc94518,_0x3f1174[_0x5c41cf(0x1cb)]({'role':_0x470494['role'],'content':_0x470494[_0x5c41cf(0x1d8)],'turnIndex':_0x470494[_0x5c41cf(0x1c3)],'compressed':!0x1});}if(_0x34947d['length']>0x0){const _0x457d68=_0x5557be,_0x3ab885=Math[_0x5c41cf(0x1cd)](0x0,_0x280f5b-_0x457d68);if(_0x3ab885>0x0){const _0x5e61f0=_0x34947d['map'](_0x8d5ba2=>({'label':_0x5c41cf(0x1c1)+_0x8d5ba2['turnIndex'],'text':_0x8d5ba2[_0x5c41cf(0x1d8)]})),_0x9c085d=compressContextBudget(_0x5e61f0,_0x3ab885);for(let _0x4946bd=0x0;_0x4946bd<_0x34947d['length'];_0x4946bd++){const _0x1a2e94=_0x34947d[_0x4946bd],_0x24e537=_0x9c085d[_0x4946bd]['result'];_0x2f97a4+=_0x24e537[_0x5c41cf(0x1c8)],_0x24e537[_0x5c41cf(0x1d6)]>0x0?(_0x5557be+=_0x24e537['compressedTokens'],_0x3f1174[_0x5c41cf(0x1cb)]({'role':_0x1a2e94['role'],'content':_0x24e537['text'],'turnIndex':_0x1a2e94['turnIndex'],'compressed':_0x24e537[_0x5c41cf(0x1c6)]})):(_0x59920f++,_0x2f97a4+=0x0);}}else{for(const _0x7aa8f3 of _0x34947d)_0x2f97a4+=_0x540f5c['MftQP'](countTokens,_0x7aa8f3[_0x5c41cf(0x1d8)]),_0x59920f++;}}return _0x3f1174['sort']((_0x5d46c6,_0x37a48d)=>_0x5d46c6['turnIndex']-_0x37a48d['turnIndex']),{'prioritized':_0x3f1174,'totalOriginalTokens':_0x2f97a4,'totalCompressedTokens':_0x5557be,'segmentsDropped':_0x59920f};}
1
+ (function(_0x3cda5a,_0x472dbe){const _0x284a8e=_0x4bd3,_0x296e73=_0x3cda5a();while(!![]){try{const _0x492e15=parseInt(_0x284a8e(0x149))/0x1*(parseInt(_0x284a8e(0x13b))/0x2)+parseInt(_0x284a8e(0x14e))/0x3*(parseInt(_0x284a8e(0x13c))/0x4)+-parseInt(_0x284a8e(0x135))/0x5*(parseInt(_0x284a8e(0x143))/0x6)+-parseInt(_0x284a8e(0x140))/0x7+parseInt(_0x284a8e(0x13a))/0x8*(parseInt(_0x284a8e(0x146))/0x9)+parseInt(_0x284a8e(0x134))/0xa*(parseInt(_0x284a8e(0x136))/0xb)+parseInt(_0x284a8e(0x13e))/0xc*(-parseInt(_0x284a8e(0x147))/0xd);if(_0x492e15===_0x472dbe)break;else _0x296e73['push'](_0x296e73['shift']());}catch(_0x2ce3e1){_0x296e73['push'](_0x296e73['shift']());}}}(_0x7b12,0x49c99));import{compressContextBudget}from'./context-compressor.js';function _0x4bd3(_0x200d2b,_0x1847ab){_0x200d2b=_0x200d2b-0x133;const _0x7b125c=_0x7b12();let _0x4bd3cc=_0x7b125c[_0x200d2b];return _0x4bd3cc;}import{countTokens}from'../shared/token-counter.js';export function prioritizeContext(_0x264d2d,_0x21273b,_0x4d1709=0x4){const _0x4d0ce1=_0x4bd3,_0x34a89f={'mcvXa':function(_0x158b00,_0x36dbe8){return _0x158b00===_0x36dbe8;},'zlBgq':function(_0x31a600,_0x3da662){return _0x31a600-_0x3da662;},'cgXSD':function(_0x5708b0,_0x5ba900){return _0x5708b0(_0x5ba900);},'PXJdE':function(_0x386199,_0x5c84fd){return _0x386199-_0x5c84fd;},'MBvEk':function(_0x16577e,_0x341c3f){return _0x16577e>_0x341c3f;},'sSWrC':function(_0x2b6957,_0x3a205b,_0x30da38){return _0x2b6957(_0x3a205b,_0x30da38);}};if(_0x34a89f[_0x4d0ce1(0x14c)](0x0,_0x264d2d[_0x4d0ce1(0x141)]))return{'prioritized':[],'totalOriginalTokens':0x0,'totalCompressedTokens':0x0,'segmentsDropped':0x0};const _0x312178=_0x21273b['max_injected_tokens'],_0x2b5750=_0x264d2d['filter'](_0x24309a=>_0x4d0ce1(0x144)===_0x24309a[_0x4d0ce1(0x133)]),_0xeb9597=_0x264d2d[_0x4d0ce1(0x145)](_0x5d365d=>_0x4d0ce1(0x144)!==_0x5d365d['role']),_0x4c45d7=Math[_0x4d0ce1(0x14a)](0x0,_0x34a89f[_0x4d0ce1(0x13f)](_0xeb9597[_0x4d0ce1(0x141)],_0x4d1709)),_0x59e2b=_0xeb9597['slice'](_0x4c45d7),_0x18bab0=_0xeb9597['slice'](0x0,_0x4c45d7),_0x40d446=[];let _0x201c72=0x0,_0x3b4ef5=0x0,_0x136279=0x0;for(const _0x3b775a of _0x2b5750){const _0x23a9f1=_0x34a89f['cgXSD'](countTokens,_0x3b775a['content']);_0x201c72+=_0x23a9f1,_0x3b4ef5+=_0x23a9f1,_0x40d446['push']({'role':_0x3b775a['role'],'content':_0x3b775a[_0x4d0ce1(0x139)],'turnIndex':_0x3b775a['turnIndex'],'compressed':!0x1});}for(const _0x226e51 of _0x59e2b){const _0x5ea902=countTokens(_0x226e51[_0x4d0ce1(0x139)]);_0x201c72+=_0x5ea902,_0x3b4ef5+=_0x5ea902,_0x40d446['push']({'role':_0x226e51[_0x4d0ce1(0x133)],'content':_0x226e51['content'],'turnIndex':_0x226e51[_0x4d0ce1(0x137)],'compressed':!0x1});}if(_0x18bab0[_0x4d0ce1(0x141)]>0x0){const _0x56d95a=_0x3b4ef5,_0x50106f=Math['max'](0x0,_0x34a89f['PXJdE'](_0x312178,_0x56d95a));if(_0x34a89f['MBvEk'](_0x50106f,0x0)){const _0x2171db=_0x18bab0[_0x4d0ce1(0x138)](_0x5e2c3b=>({'label':'turn-'+_0x5e2c3b['turnIndex'],'text':_0x5e2c3b[_0x4d0ce1(0x139)]})),_0xc3635f=_0x34a89f[_0x4d0ce1(0x148)](compressContextBudget,_0x2171db,_0x50106f);for(let _0x88f397=0x0;_0x88f397<_0x18bab0[_0x4d0ce1(0x141)];_0x88f397++){const _0x4c12fd=_0x18bab0[_0x88f397],_0x30f58c=_0xc3635f[_0x88f397]['result'];_0x201c72+=_0x30f58c[_0x4d0ce1(0x142)],_0x34a89f['MBvEk'](_0x30f58c[_0x4d0ce1(0x13d)],0x0)?(_0x3b4ef5+=_0x30f58c[_0x4d0ce1(0x13d)],_0x40d446['push']({'role':_0x4c12fd['role'],'content':_0x30f58c['text'],'turnIndex':_0x4c12fd['turnIndex'],'compressed':_0x30f58c[_0x4d0ce1(0x14d)]})):(_0x136279++,_0x201c72+=0x0);}}else{for(const _0x30a814 of _0x18bab0)_0x201c72+=countTokens(_0x30a814[_0x4d0ce1(0x139)]),_0x136279++;}}return _0x40d446[_0x4d0ce1(0x14b)]((_0xdc777b,_0x40a057)=>_0xdc777b[_0x4d0ce1(0x137)]-_0x40a057['turnIndex']),{'prioritized':_0x40d446,'totalOriginalTokens':_0x201c72,'totalCompressedTokens':_0x3b4ef5,'segmentsDropped':_0x136279};}function _0x7b12(){const _0x337006=['length','originalTokens','28758WxQcmv','system','filter','16722ZrSMGh','20709KKhEwP','sSWrC','7159MfNhsp','max','sort','mcvXa','wasTruncated','382125lwCZQE','role','91290pWczkK','485hGEKRo','682WtnxGm','turnIndex','map','content','1432jCRUmc','90IsUSNh','4LViaAW','compressedTokens','3480buLfSQ','zlBgq','832902YGbdlV'];_0x7b12=function(){return _0x337006;};return _0x7b12();}
@@ -1 +1 @@
1
- function _0x1f66(_0x176cf7,_0x2b49f0){_0x176cf7=_0x176cf7-0x10d;const _0x359133=_0x3591();let _0x1f6603=_0x359133[_0x176cf7];return _0x1f6603;}function _0x3591(){const _0x41aee4=['parse','reduce','sort','3127868LrMBnA','rules_triggered','2608896PMZHPV','entries','745213GwQIYU','LQKxP','22562epfHGn','length','4330YUeRMn','25875864UPafSi','started_at','map','Nllap','7299816HdILee','46yPPGOa','mrTFe','4788CeUenl'];_0x3591=function(){return _0x41aee4;};return _0x3591();}(function(_0x32b395,_0x1b75cf){const _0x12529e=_0x1f66,_0x5e2f6f=_0x32b395();while(!![]){try{const _0x10b6e3=-parseInt(_0x12529e(0x11e))/0x1*(parseInt(_0x12529e(0x116))/0x2)+-parseInt(_0x12529e(0x112))/0x3+-parseInt(_0x12529e(0x110))/0x4+-parseInt(_0x12529e(0x118))/0x5*(-parseInt(_0x12529e(0x120))/0x6)+parseInt(_0x12529e(0x114))/0x7+-parseInt(_0x12529e(0x11d))/0x8+parseInt(_0x12529e(0x119))/0x9;if(_0x10b6e3===_0x1b75cf)break;else _0x5e2f6f['push'](_0x5e2f6f['shift']());}catch(_0x3ab3b0){_0x5e2f6f['push'](_0x5e2f6f['shift']());}}}(_0x3591,0x8ff35));import{readdirSync,readFileSync}from'node:fs';import{join}from'node:path';const METRICS_DIR='.tokenizer-speedup',COST_PER_MILLION_TOKENS=0x3;export function generateReport(_0x58bd11){const _0x2dd36e=_0x1f66,_0x325188={'mrTFe':function(_0x7a1354,_0x9d42d6){return _0x7a1354(_0x9d42d6);},'eQHbN':function(_0x3d88c0,_0x171db5){return _0x3d88c0+_0x171db5;},'Nllap':function(_0x3736f7,_0x287391){return _0x3736f7/_0x287391;},'LQKxP':function(_0x4dc03e,_0x1dd31b){return _0x4dc03e*_0x1dd31b;}},_0x274458=join(_0x58bd11,METRICS_DIR),_0x1b638e=_0x325188[_0x2dd36e(0x11f)](readdirSync,_0x274458)['filter'](_0x55e07a=>_0x55e07a['endsWith']('.json'))[_0x2dd36e(0x11b)](_0x184ffe=>JSON[_0x2dd36e(0x10d)](readFileSync(join(_0x274458,_0x184ffe),'utf-8'))['summary']),_0x25e336=_0x1b638e['reduce']((_0x1e3608,_0x49fd51)=>_0x1e3608+_0x49fd51['total_baseline'],0x0),_0x56bec6=_0x1b638e['reduce']((_0x48ab59,_0x5ee309)=>_0x48ab59+_0x5ee309['total_optimized'],0x0),_0x104086=_0x25e336-_0x56bec6,_0x59b422={};for(const _0x56e0a9 of _0x1b638e)for(const [_0xcf3a75,_0x5b9505]of Object[_0x2dd36e(0x113)](_0x56e0a9[_0x2dd36e(0x111)]))_0x59b422[_0xcf3a75]=_0x325188['eQHbN'](_0x59b422[_0xcf3a75]||0x0,_0x5b9505);const _0x55d941=_0x1b638e['map'](_0x83aef=>_0x83aef[_0x2dd36e(0x11a)])[_0x2dd36e(0x10f)]();return{'sessions_count':_0x1b638e['length'],'total_baseline':_0x25e336,'total_optimized':_0x56bec6,'total_delta':_0x104086,'savings_percent':_0x25e336>0x0?_0x325188[_0x2dd36e(0x11c)](_0x104086,_0x25e336)*0x64:0x0,'total_prompts':_0x1b638e[_0x2dd36e(0x10e)]((_0xd3dbe2,_0x2286fd)=>_0xd3dbe2+_0x2286fd['prompts_count'],0x0),'rules_triggered':_0x59b422,'estimated_cost_saved_usd':_0x325188[_0x2dd36e(0x115)](_0x325188[_0x2dd36e(0x11c)](_0x104086,0xf4240),0x3),'period_start':_0x55d941[0x0]||'','period_end':_0x55d941[_0x55d941[_0x2dd36e(0x117)]-0x1]||''};}
1
+ function _0x3fcd(){const _0x52b861=['155886UEqhom','endsWith','7908065YXYuvp','1194XjtSxn','747504MHvlOC','kCBHM','parse','7789056tHDBKy','total_baseline','12ohWyvZ','1578TaXELe','reduce','aMwmD','583byoePr','41944XjGaxv','524eJfeua','144930RWgzZj','rules_triggered','prompts_count','summary','length','32HGiYmC'];_0x3fcd=function(){return _0x52b861;};return _0x3fcd();}(function(_0x3a75db,_0x5ad3a7){const _0x4b60a6=_0x45aa,_0x542931=_0x3a75db();while(!![]){try{const _0x25f689=-parseInt(_0x4b60a6(0x115))/0x1*(-parseInt(_0x4b60a6(0x104))/0x2)+-parseInt(_0x4b60a6(0x10b))/0x3*(parseInt(_0x4b60a6(0x114))/0x4)+parseInt(_0x4b60a6(0x10d))/0x5+parseInt(_0x4b60a6(0x10e))/0x6*(-parseInt(_0x4b60a6(0x103))/0x7)+-parseInt(_0x4b60a6(0x10a))/0x8*(-parseInt(_0x4b60a6(0x10f))/0x9)+parseInt(_0x4b60a6(0x105))/0xa*(-parseInt(_0x4b60a6(0x102))/0xb)+parseInt(_0x4b60a6(0x112))/0xc;if(_0x25f689===_0x5ad3a7)break;else _0x542931['push'](_0x542931['shift']());}catch(_0x25fbab){_0x542931['push'](_0x542931['shift']());}}}(_0x3fcd,0xd1f22));function _0x45aa(_0x562873,_0x1a1797){_0x562873=_0x562873-0x101;const _0x3fcd9d=_0x3fcd();let _0x45aa32=_0x3fcd9d[_0x562873];return _0x45aa32;}import{readdirSync,readFileSync}from'node:fs';import{join}from'node:path';const METRICS_DIR='.tokenizer-speedup',COST_PER_MILLION_TOKENS=0x3;export function generateReport(_0xef8ee0){const _0x487d24=_0x45aa,_0x5d45bf={'kCBHM':function(_0x5db164,_0x4d4c94){return _0x5db164(_0x4d4c94);},'aMwmD':function(_0x2f296f,_0xbff987){return _0x2f296f>_0xbff987;}},_0x58e155=join(_0xef8ee0,METRICS_DIR),_0x5c38b2=_0x5d45bf[_0x487d24(0x110)](readdirSync,_0x58e155)['filter'](_0x13870f=>_0x13870f[_0x487d24(0x10c)]('.json'))['map'](_0x27cea4=>JSON[_0x487d24(0x111)](readFileSync(join(_0x58e155,_0x27cea4),'utf-8'))[_0x487d24(0x108)]),_0x435ce7=_0x5c38b2['reduce']((_0x1d017c,_0x16dec2)=>_0x1d017c+_0x16dec2[_0x487d24(0x113)],0x0),_0x16eede=_0x5c38b2[_0x487d24(0x116)]((_0x408cc1,_0x571b81)=>_0x408cc1+_0x571b81['total_optimized'],0x0),_0x53bd0f=_0x435ce7-_0x16eede,_0x5c5b07={};for(const _0x3535a6 of _0x5c38b2)for(const [_0x10f56e,_0x53068d]of Object['entries'](_0x3535a6[_0x487d24(0x106)]))_0x5c5b07[_0x10f56e]=(_0x5c5b07[_0x10f56e]||0x0)+_0x53068d;const _0x2b88f9=_0x5c38b2['map'](_0x37c0e2=>_0x37c0e2['started_at'])['sort']();return{'sessions_count':_0x5c38b2[_0x487d24(0x109)],'total_baseline':_0x435ce7,'total_optimized':_0x16eede,'total_delta':_0x53bd0f,'savings_percent':_0x5d45bf[_0x487d24(0x101)](_0x435ce7,0x0)?_0x53bd0f/_0x435ce7*0x64:0x0,'total_prompts':_0x5c38b2['reduce']((_0x52eb5b,_0x2cdede)=>_0x52eb5b+_0x2cdede[_0x487d24(0x107)],0x0),'rules_triggered':_0x5c5b07,'estimated_cost_saved_usd':_0x53bd0f/0xf4240*0x3,'period_start':_0x2b88f9[0x0]||'','period_end':_0x2b88f9[_0x2b88f9['length']-0x1]||''};}
@@ -1 +1 @@
1
- (function(_0x395505,_0x2cb079){const _0x3029fa=_0x30d1,_0x4bd664=_0x395505();while(!![]){try{const _0x3b3c4e=-parseInt(_0x3029fa(0x8d))/0x1+parseInt(_0x3029fa(0x89))/0x2*(-parseInt(_0x3029fa(0x88))/0x3)+-parseInt(_0x3029fa(0x86))/0x4*(-parseInt(_0x3029fa(0x87))/0x5)+parseInt(_0x3029fa(0x83))/0x6*(parseInt(_0x3029fa(0x84))/0x7)+-parseInt(_0x3029fa(0x94))/0x8*(-parseInt(_0x3029fa(0x93))/0x9)+parseInt(_0x3029fa(0x91))/0xa*(-parseInt(_0x3029fa(0x8a))/0xb)+-parseInt(_0x3029fa(0x8c))/0xc*(parseInt(_0x3029fa(0x8b))/0xd);if(_0x3b3c4e===_0x2cb079)break;else _0x4bd664['push'](_0x4bd664['shift']());}catch(_0x375e50){_0x4bd664['push'](_0x4bd664['shift']());}}}(_0x55d5,0x794c1));function _0x30d1(_0x37eadd,_0x5ae8ca){_0x37eadd=_0x37eadd-0x82;const _0x55d54b=_0x55d5();let _0x30d1d0=_0x55d54b[_0x37eadd];return _0x30d1d0;}import{RuleAnalytics}from'./rule-analytics.js';export function serializeAnalytics(_0x423595){const _0x4e3e99=_0x30d1,_0x1a5863=_0x423595[_0x4e3e99(0x95)]()['map'](_0x5a0874=>({'rule':_0x5a0874['rule'],'fires':_0x5a0874['fires'],'totalTokensSaved':_0x5a0874['totalTokensSaved']}));return JSON['stringify'](_0x1a5863);}export function deserializeAnalytics(_0x2966b7){const _0x529439=_0x30d1,_0x5f2041={'ImZHV':function(_0x2665e6,_0x401298){return _0x2665e6>_0x401298;}},_0x22781f=new RuleAnalytics();try{const _0x79b4ce=JSON[_0x529439(0x90)](_0x2966b7);for(const _0x19f789 of _0x79b4ce){const _0x16d8bb=_0x5f2041['ImZHV'](_0x19f789[_0x529439(0x85)],0x0)?Math[_0x529439(0x82)](_0x19f789[_0x529439(0x8e)]/_0x19f789[_0x529439(0x85)]):0x0;for(let _0x6c9741=0x0;_0x6c9741<_0x19f789['fires'];_0x6c9741++)_0x22781f[_0x529439(0x92)](_0x19f789[_0x529439(0x8f)],_0x16d8bb);}}catch{}return _0x22781f;}function _0x55d5(){const _0x9de52a=['134770HulkBj','999mRlAXa','802VRUKJJ','11OkUWjd','224731rpyRnL','120nCxWnY','625641QzQHYh','totalTokensSaved','rule','parse','25920XVXLgk','recordFire','1197QNJDMA','47496olbXcW','getRanking','round','6bvgYUp','153342fUvEbq','fires','92GPsxBn'];_0x55d5=function(){return _0x9de52a;};return _0x55d5();}
1
+ (function(_0x5eec73,_0x44e72b){const _0x4915d7=_0x2687,_0x2d794f=_0x5eec73();while(!![]){try{const _0x57a3bc=parseInt(_0x4915d7(0x19d))/0x1+-parseInt(_0x4915d7(0x198))/0x2*(parseInt(_0x4915d7(0x1a0))/0x3)+-parseInt(_0x4915d7(0x196))/0x4*(parseInt(_0x4915d7(0x19f))/0x5)+-parseInt(_0x4915d7(0x19c))/0x6+-parseInt(_0x4915d7(0x1a4))/0x7*(parseInt(_0x4915d7(0x1a1))/0x8)+parseInt(_0x4915d7(0x19b))/0x9+-parseInt(_0x4915d7(0x194))/0xa*(-parseInt(_0x4915d7(0x1a3))/0xb);if(_0x57a3bc===_0x44e72b)break;else _0x2d794f['push'](_0x2d794f['shift']());}catch(_0x5662ab){_0x2d794f['push'](_0x2d794f['shift']());}}}(_0x13ae,0xf1fb7));import{RuleAnalytics}from'./rule-analytics.js';export function serializeAnalytics(_0x3d0fd7){const _0x2be718=_0x2687,_0x4e13e2=_0x3d0fd7[_0x2be718(0x199)]()[_0x2be718(0x1a2)](_0x4fd6a4=>({'rule':_0x4fd6a4[_0x2be718(0x19a)],'fires':_0x4fd6a4[_0x2be718(0x19e)],'totalTokensSaved':_0x4fd6a4['totalTokensSaved']}));return JSON['stringify'](_0x4e13e2);}function _0x13ae(){const _0x5a0558=['7UAheDs','parse','10pwWhyx','dPgRk','21916kMRWEQ','qSmqI','57244WahIIe','getRanking','rule','12778263NtDJtA','2070264RjfIzu','1713581XmfPKm','fires','1005RQosNe','21CtyGUV','8958424VLyJSa','map','6866761EheoJJ'];_0x13ae=function(){return _0x5a0558;};return _0x13ae();}function _0x2687(_0x56782c,_0x49ec92){_0x56782c=_0x56782c-0x194;const _0x13ae10=_0x13ae();let _0x268758=_0x13ae10[_0x56782c];return _0x268758;}export function deserializeAnalytics(_0x4e632e){const _0x235b5c=_0x2687,_0x3c4b4b={'qSmqI':function(_0x54a363,_0xe20f6a){return _0x54a363/_0xe20f6a;},'dPgRk':function(_0x5be478,_0x4a0bce){return _0x5be478<_0x4a0bce;}},_0x555e9a=new RuleAnalytics();try{const _0x118515=JSON[_0x235b5c(0x1a5)](_0x4e632e);for(const _0x4bfc97 of _0x118515){const _0x2074b7=_0x4bfc97[_0x235b5c(0x19e)]>0x0?Math['round'](_0x3c4b4b[_0x235b5c(0x197)](_0x4bfc97['totalTokensSaved'],_0x4bfc97['fires'])):0x0;for(let _0x4d4d4f=0x0;_0x3c4b4b[_0x235b5c(0x195)](_0x4d4d4f,_0x4bfc97['fires']);_0x4d4d4f++)_0x555e9a['recordFire'](_0x4bfc97['rule'],_0x2074b7);}}catch{}return _0x555e9a;}
@@ -1 +1 @@
1
- function _0x3772(_0x348a49,_0x847e1a){_0x348a49=_0x348a49-0xb9;const _0x388f78=_0x388f();let _0x377297=_0x388f78[_0x348a49];return _0x377297;}const _0x27954c=_0x3772;(function(_0x4f68eb,_0x3f8452){const _0xffaff2=_0x3772,_0x24b81f=_0x4f68eb();while(!![]){try{const _0x4a5c4d=-parseInt(_0xffaff2(0xbb))/0x1*(parseInt(_0xffaff2(0xc6))/0x2)+-parseInt(_0xffaff2(0xc5))/0x3*(-parseInt(_0xffaff2(0xc9))/0x4)+parseInt(_0xffaff2(0xcb))/0x5+-parseInt(_0xffaff2(0xc8))/0x6*(-parseInt(_0xffaff2(0xbe))/0x7)+parseInt(_0xffaff2(0xba))/0x8*(-parseInt(_0xffaff2(0xbf))/0x9)+parseInt(_0xffaff2(0xc1))/0xa+parseInt(_0xffaff2(0xb9))/0xb;if(_0x4a5c4d===_0x3f8452)break;else _0x24b81f['push'](_0x24b81f['shift']());}catch(_0x4b472f){_0x24b81f['push'](_0x24b81f['shift']());}}}(_0x388f,0x88487));function _0x388f(){const _0x2b20f8=['fires','634945rwhfKo','10253199HFtreJ','1661960CMysme','149jplMXt','from','keys','7ERYxJb','45vqAGYt','totalTokensSaved','1660530GGCMnK','data','get','getStats','2626629ZUhIeq','11678UHSKIe','getRanking','2197542WSsUME','4oEzFFZ'];_0x388f=function(){return _0x2b20f8;};return _0x388f();}export class RuleAnalytics{[_0x27954c(0xc2)]=new Map();['recordFire'](_0x53fb69,_0x5e990c){const _0x33cfcf=_0x27954c,_0x1ccc2e=this['data']['get'](_0x53fb69)??{'fires':0x0,'totalTokensSaved':0x0};_0x1ccc2e['fires']++,_0x1ccc2e[_0x33cfcf(0xc0)]+=_0x5e990c,this['data']['set'](_0x53fb69,_0x1ccc2e);}['getStats'](_0x546a6b){const _0x5dee9e=_0x27954c,_0xaba5e6={'YFRtn':function(_0x10cd06,_0x326984){return _0x10cd06/_0x326984;}},_0x38573b=this[_0x5dee9e(0xc2)][_0x5dee9e(0xc3)](_0x546a6b);return _0x38573b?{'rule':_0x546a6b,'fires':_0x38573b[_0x5dee9e(0xca)],'totalTokensSaved':_0x38573b['totalTokensSaved'],'avgTokensSaved':Math['round'](_0xaba5e6['YFRtn'](_0x38573b['totalTokensSaved'],_0x38573b['fires']))}:{'rule':_0x546a6b,'fires':0x0,'totalTokensSaved':0x0,'avgTokensSaved':0x0};}[_0x27954c(0xc7)](){const _0x57f9a7=_0x27954c;return Array[_0x57f9a7(0xbc)](this['data'][_0x57f9a7(0xbd)]())['map'](_0x10c7c8=>this[_0x57f9a7(0xc4)](_0x10c7c8))['sort']((_0x287c3c,_0x12c70f)=>_0x12c70f['avgTokensSaved']-_0x287c3c['avgTokensSaved']);}}
1
+ const _0x32f514=_0x109c;(function(_0x3fbbef,_0x136bbf){const _0xac8513=_0x109c,_0x5781b6=_0x3fbbef();while(!![]){try{const _0x193567=parseInt(_0xac8513(0x1c8))/0x1+parseInt(_0xac8513(0x1d2))/0x2+parseInt(_0xac8513(0x1cf))/0x3*(parseInt(_0xac8513(0x1da))/0x4)+parseInt(_0xac8513(0x1d1))/0x5+parseInt(_0xac8513(0x1c9))/0x6*(parseInt(_0xac8513(0x1ca))/0x7)+parseInt(_0xac8513(0x1d6))/0x8*(parseInt(_0xac8513(0x1d0))/0x9)+-parseInt(_0xac8513(0x1d7))/0xa;if(_0x193567===_0x136bbf)break;else _0x5781b6['push'](_0x5781b6['shift']());}catch(_0x15b4de){_0x5781b6['push'](_0x5781b6['shift']());}}}(_0x5bea,0x301c8));export class RuleAnalytics{[_0x32f514(0x1cc)]=new Map();['recordFire'](_0x519f64,_0x10ae23){const _0x218720=_0x32f514,_0x3a54dc=this[_0x218720(0x1cc)][_0x218720(0x1d3)](_0x519f64)??{'fires':0x0,'totalTokensSaved':0x0};_0x3a54dc['fires']++,_0x3a54dc['totalTokensSaved']+=_0x10ae23,this[_0x218720(0x1cc)][_0x218720(0x1d8)](_0x519f64,_0x3a54dc);}[_0x32f514(0x1cd)](_0x4e0ce4){const _0x5b43dd=_0x32f514,_0x35c100=this['data'][_0x5b43dd(0x1d3)](_0x4e0ce4);return _0x35c100?{'rule':_0x4e0ce4,'fires':_0x35c100['fires'],'totalTokensSaved':_0x35c100[_0x5b43dd(0x1db)],'avgTokensSaved':Math['round'](_0x35c100[_0x5b43dd(0x1db)]/_0x35c100[_0x5b43dd(0x1d9)])}:{'rule':_0x4e0ce4,'fires':0x0,'totalTokensSaved':0x0,'avgTokensSaved':0x0};}['getRanking'](){const _0x8c14f6=_0x32f514;return Array[_0x8c14f6(0x1dc)](this[_0x8c14f6(0x1cc)][_0x8c14f6(0x1d4)]())[_0x8c14f6(0x1cb)](_0x1bb7f5=>this['getStats'](_0x1bb7f5))[_0x8c14f6(0x1ce)]((_0xba5178,_0x2e541b)=>_0x2e541b[_0x8c14f6(0x1d5)]-_0xba5178['avgTokensSaved']);}}function _0x109c(_0x86f57b,_0x33f624){_0x86f57b=_0x86f57b-0x1c8;const _0x5bea2b=_0x5bea();let _0x109c81=_0x5bea2b[_0x86f57b];return _0x109c81;}function _0x5bea(){const _0x43e4bc=['avgTokensSaved','72KEdlkO','12646930QpSqpf','set','fires','148lXLcLG','totalTokensSaved','from','86130DaETFh','178296Uiayhw','42jEzXNr','map','data','getStats','sort','14973ungJvC','392724GhkXNO','1345090xdgahr','701844GUBpeI','get','keys'];_0x5bea=function(){return _0x43e4bc;};return _0x5bea();}
@@ -1 +1 @@
1
- const _0x57774a=_0x2535;(function(_0x4f8ac4,_0x319ed7){const _0x188769=_0x2535,_0x332854=_0x4f8ac4();while(!![]){try{const _0x38ed0f=-parseInt(_0x188769(0x87))/0x1+parseInt(_0x188769(0x88))/0x2*(-parseInt(_0x188769(0x8f))/0x3)+parseInt(_0x188769(0x98))/0x4*(-parseInt(_0x188769(0x94))/0x5)+parseInt(_0x188769(0x8a))/0x6*(-parseInt(_0x188769(0x95))/0x7)+-parseInt(_0x188769(0x8e))/0x8+-parseInt(_0x188769(0x8c))/0x9*(parseInt(_0x188769(0x97))/0xa)+parseInt(_0x188769(0x91))/0xb;if(_0x38ed0f===_0x319ed7)break;else _0x332854['push'](_0x332854['shift']());}catch(_0x1509c1){_0x332854['push'](_0x332854['shift']());}}}(_0x1e54,0x2b7ce));function _0x2535(_0x308163,_0x4dbae8){_0x308163=_0x308163-0x87;const _0x1e54b5=_0x1e54();let _0x2535ab=_0x1e54b5[_0x308163];return _0x2535ab;}export class RuleEngine{['rules'];[_0x57774a(0x92)];[_0x57774a(0x90)];constructor(_0x1b39d0){const _0x56e647=_0x57774a;this[_0x56e647(0x90)]=_0x1b39d0,this['rules']=_0x1b39d0['rules'],this['limits']=_0x1b39d0['context_limits'];}['match'](_0x1a0370){const _0x4f75f5=_0x57774a,_0x400021=_0x1a0370[_0x4f75f5(0x93)]();return this[_0x4f75f5(0x96)][_0x4f75f5(0x8b)](_0x193ef3=>_0x193ef3['trigger']['some'](_0x22ecca=>_0x400021['includes'](_0x22ecca[_0x4f75f5(0x93)]())));}get[_0x57774a(0x89)](){const _0x143ff1=_0x57774a;return this['config'][_0x143ff1(0x8d)];}}function _0x1e54(){const _0x581707=['331836KEninl','8934bUWixV','meteringConfig','1446gSCzbl','filter','367641qGarVs','metering','1045208AWFDas','9jfWlcd','config','14274161GVTitf','limits','toLowerCase','20MyzPTd','5474yXnhPW','rules','30gAtxyX','332628SJirxJ'];_0x1e54=function(){return _0x581707;};return _0x1e54();}
1
+ function _0x2931(_0x28ce9c,_0x56f4ea){_0x28ce9c=_0x28ce9c-0x1e4;const _0x53b219=_0x53b2();let _0x2931a1=_0x53b219[_0x28ce9c];return _0x2931a1;}function _0x53b2(){const _0x48861e=['1662ittZeu','some','7284456WmNXoi','228012dqTrgu','180484LjGZVy','10TtPHTm','metering','filter','27040WrhXSC','match','includes','24437ePUClr','3240uyQTjX','context_limits','toLowerCase','443531iGaShE','344802DQJJpc','15mZWUyz','config','rules'];_0x53b2=function(){return _0x48861e;};return _0x53b2();}const _0x8c4d0e=_0x2931;(function(_0x274c81,_0x3cc7d7){const _0x1ccd22=_0x2931,_0x2fc8ef=_0x274c81();while(!![]){try{const _0x4c4f91=parseInt(_0x1ccd22(0x1ec))/0x1+parseInt(_0x1ccd22(0x1ee))/0x2*(-parseInt(_0x1ccd22(0x1e5))/0x3)+parseInt(_0x1ccd22(0x1ed))/0x4*(parseInt(_0x1ccd22(0x1e6))/0x5)+parseInt(_0x1ccd22(0x1e9))/0x6*(-parseInt(_0x1ccd22(0x1f4))/0x7)+parseInt(_0x1ccd22(0x1eb))/0x8+-parseInt(_0x1ccd22(0x1f5))/0x9*(-parseInt(_0x1ccd22(0x1f1))/0xa)+-parseInt(_0x1ccd22(0x1e4))/0xb;if(_0x4c4f91===_0x3cc7d7)break;else _0x2fc8ef['push'](_0x2fc8ef['shift']());}catch(_0x10ee4a){_0x2fc8ef['push'](_0x2fc8ef['shift']());}}}(_0x53b2,0xa271e));export class RuleEngine{[_0x8c4d0e(0x1e8)];['limits'];['config'];constructor(_0x3206c6){const _0x44e162=_0x8c4d0e;this[_0x44e162(0x1e7)]=_0x3206c6,this['rules']=_0x3206c6[_0x44e162(0x1e8)],this['limits']=_0x3206c6[_0x44e162(0x1f6)];}[_0x8c4d0e(0x1f2)](_0x1dc992){const _0x303d1c=_0x8c4d0e,_0x225993=_0x1dc992[_0x303d1c(0x1f7)]();return this['rules'][_0x303d1c(0x1f0)](_0x26c1e3=>_0x26c1e3['trigger'][_0x303d1c(0x1ea)](_0x57e8af=>_0x225993[_0x303d1c(0x1f3)](_0x57e8af['toLowerCase']())));}get['meteringConfig'](){const _0x3579d8=_0x8c4d0e;return this[_0x3579d8(0x1e7)][_0x3579d8(0x1ef)];}}
@@ -1 +1 @@
1
- function _0x461d(_0x28f823,_0x5c027e){_0x28f823=_0x28f823-0x68;const _0x163db1=_0x163d();let _0x461df8=_0x163db1[_0x28f823];return _0x461df8;}(function(_0x1f0e78,_0x1c3ccc){const _0x518a7d=_0x461d,_0x57dec8=_0x1f0e78();while(!![]){try{const _0x36700f=parseInt(_0x518a7d(0x6d))/0x1+-parseInt(_0x518a7d(0x6b))/0x2*(-parseInt(_0x518a7d(0x6a))/0x3)+-parseInt(_0x518a7d(0x72))/0x4+-parseInt(_0x518a7d(0x74))/0x5*(-parseInt(_0x518a7d(0x80))/0x6)+parseInt(_0x518a7d(0x70))/0x7+-parseInt(_0x518a7d(0x77))/0x8+parseInt(_0x518a7d(0x6c))/0x9;if(_0x36700f===_0x1c3ccc)break;else _0x57dec8['push'](_0x57dec8['shift']());}catch(_0x2f6cd0){_0x57dec8['push'](_0x57dec8['shift']());}}}(_0x163d,0xdee54));import _0x3d5fb4 from'js-yaml';function _0x163d(){const _0x2a84d8=['rules','invalid\x20YAML\x20structure','length','map','name','each\x20rule\x20must\x20have\x20trigger\x20array\x20and\x20load\x20path','vpKFm','27858wIeAqo','load','trigger','description','jCAwo','dump','1611939EqBMbT','2qHOwcd','2348550JoCbBi','301712cKsLIN','summary_only','invalid\x20YAML','4212474dsuyUc','spxWF','304332wdOygt','imported','1065SJvDrT','custom-rules','GYBdk','13613224lOOuCy','isArray'];_0x163d=function(){return _0x2a84d8;};return _0x163d();}export function exportRuleBundle(_0x4a1668,_0x1ff9c0){const _0x5d82e5=_0x461d,_0x5120f4={'spxWF':_0x5d82e5(0x75)},_0x2f4e18={'name':_0x1ff9c0[_0x5d82e5(0x7d)]??_0x5120f4[_0x5d82e5(0x71)],'author':_0x1ff9c0['author'],'description':_0x1ff9c0[_0x5d82e5(0x83)],'rules':_0x4a1668};return _0x3d5fb4[_0x5d82e5(0x69)](_0x2f4e18,{'lineWidth':0x78});}export function importRuleBundle(_0x413a86){const _0x422b89=_0x461d,_0x48d77a={'jCAwo':'unknown'},_0xc11d1e=_0x3d5fb4[_0x422b89(0x81)](_0x413a86);return{'name':_0xc11d1e['name']??_0x422b89(0x73),'author':_0xc11d1e['author']??_0x48d77a[_0x422b89(0x68)],'description':_0xc11d1e[_0x422b89(0x83)]??'','rules':(_0xc11d1e[_0x422b89(0x79)]??[])[_0x422b89(0x7c)](_0x29e44d=>({'trigger':_0x29e44d['trigger'],'load':_0x29e44d[_0x422b89(0x81)],'max_tokens':_0x29e44d['max_tokens'],'summary_only':_0x29e44d[_0x422b89(0x6e)]}))};}export function validateRuleBundle(_0x3edefb){const _0x52bf4d=_0x461d,_0x1b7203={'ziWVU':_0x52bf4d(0x7a),'GYBdk':'bundle\x20must\x20contain\x20rules\x20array','vpKFm':_0x52bf4d(0x7e)};try{const _0x3f7c5d=_0x3d5fb4['load'](_0x3edefb);if(!_0x3f7c5d||'object'!=typeof _0x3f7c5d)return{'valid':!0x1,'error':_0x1b7203['ziWVU']};if(!Array[_0x52bf4d(0x78)](_0x3f7c5d['rules'])||0x0===_0x3f7c5d['rules'][_0x52bf4d(0x7b)])return{'valid':!0x1,'error':_0x1b7203[_0x52bf4d(0x76)]};for(const _0x362846 of _0x3f7c5d[_0x52bf4d(0x79)])if(!Array['isArray'](_0x362846[_0x52bf4d(0x82)])||!_0x362846['load'])return{'valid':!0x1,'error':_0x1b7203[_0x52bf4d(0x7f)]};return{'valid':!0x0};}catch{return{'valid':!0x1,'error':_0x52bf4d(0x6f)};}}
1
+ function _0x6ab7(){const _0x192176=['dump','trigger','PlXAX','5797584JWoRzz','GczDA','1142616wxHzQH','length','2359494NotSJi','name','load','invalid\x20YAML','TwtVZ','217752ttOrvu','KpjYs','object','742096wuUniK','rules','isArray','hEUYf','custom-rules','ulwNf','imported','774775DTVGgG','133tdrTRU','238544qScNKM','summary_only','max_tokens','10lTPRgC'];_0x6ab7=function(){return _0x192176;};return _0x6ab7();}(function(_0x467f09,_0x358fba){const _0x4374e1=_0x54b4,_0x1a0ff1=_0x467f09();while(!![]){try{const _0x273c29=parseInt(_0x4374e1(0x1e3))/0x1+-parseInt(_0x4374e1(0x1f8))/0x2+-parseInt(_0x4374e1(0x1f0))/0x3+parseInt(_0x4374e1(0x1f5))/0x4+-parseInt(_0x4374e1(0x1e8))/0x5*(parseInt(_0x4374e1(0x1ee))/0x6)+parseInt(_0x4374e1(0x1e4))/0x7*(parseInt(_0x4374e1(0x1e5))/0x8)+parseInt(_0x4374e1(0x1ec))/0x9;if(_0x273c29===_0x358fba)break;else _0x1a0ff1['push'](_0x1a0ff1['shift']());}catch(_0x412afd){_0x1a0ff1['push'](_0x1a0ff1['shift']());}}}(_0x6ab7,0x7a709));function _0x54b4(_0x363a4b,_0x5e03a3){_0x363a4b=_0x363a4b-0x1e1;const _0x6ab70a=_0x6ab7();let _0x54b403=_0x6ab70a[_0x363a4b];return _0x54b403;}import _0x565d72 from'js-yaml';export function exportRuleBundle(_0x28bfc4,_0x59f2dd){const _0x50c3d7=_0x54b4,_0x4755c6={'TwtVZ':_0x50c3d7(0x1fc)},_0x2601dc={'name':_0x59f2dd[_0x50c3d7(0x1f1)]??_0x4755c6[_0x50c3d7(0x1f4)],'author':_0x59f2dd['author'],'description':_0x59f2dd['description'],'rules':_0x28bfc4};return _0x565d72[_0x50c3d7(0x1e9)](_0x2601dc,{'lineWidth':0x78});}export function importRuleBundle(_0x2604bf){const _0x938712=_0x54b4,_0x538043={'vjcYO':_0x938712(0x1e2),'SKuPx':'unknown'},_0x45f7de=_0x565d72[_0x938712(0x1f2)](_0x2604bf);return{'name':_0x45f7de['name']??_0x538043['vjcYO'],'author':_0x45f7de['author']??_0x538043['SKuPx'],'description':_0x45f7de['description']??'','rules':(_0x45f7de[_0x938712(0x1f9)]??[])['map'](_0x1fa68a=>({'trigger':_0x1fa68a['trigger'],'load':_0x1fa68a[_0x938712(0x1f2)],'max_tokens':_0x1fa68a[_0x938712(0x1e7)],'summary_only':_0x1fa68a[_0x938712(0x1e6)]}))};}export function validateRuleBundle(_0x10c140){const _0x52ed90=_0x54b4,_0x441c3b={'KpjYs':function(_0x534efb,_0x52254e){return _0x534efb!=_0x52254e;},'ulwNf':_0x52ed90(0x1f7),'hEUYf':'invalid\x20YAML\x20structure','PlXAX':'bundle\x20must\x20contain\x20rules\x20array','GczDA':_0x52ed90(0x1f3)};try{const _0x546778=_0x565d72['load'](_0x10c140);if(!_0x546778||_0x441c3b[_0x52ed90(0x1f6)](_0x441c3b[_0x52ed90(0x1e1)],typeof _0x546778))return{'valid':!0x1,'error':_0x441c3b[_0x52ed90(0x1fb)]};if(!Array[_0x52ed90(0x1fa)](_0x546778['rules'])||0x0===_0x546778[_0x52ed90(0x1f9)][_0x52ed90(0x1ef)])return{'valid':!0x1,'error':_0x441c3b[_0x52ed90(0x1eb)]};for(const _0x17f772 of _0x546778['rules'])if(!Array['isArray'](_0x17f772[_0x52ed90(0x1ea)])||!_0x17f772['load'])return{'valid':!0x1,'error':'each\x20rule\x20must\x20have\x20trigger\x20array\x20and\x20load\x20path'};return{'valid':!0x0};}catch{return{'valid':!0x1,'error':_0x441c3b[_0x52ed90(0x1ed)]};}}
@@ -1 +1 @@
1
- const _0x2febdb=_0x4044;(function(_0x54d15c,_0x50af07){const _0x4daa5e=_0x4044,_0x100fea=_0x54d15c();while(!![]){try{const _0x29c2c3=parseInt(_0x4daa5e(0x6c))/0x1+-parseInt(_0x4daa5e(0x69))/0x2*(-parseInt(_0x4daa5e(0x81))/0x3)+parseInt(_0x4daa5e(0x6a))/0x4+-parseInt(_0x4daa5e(0x68))/0x5+-parseInt(_0x4daa5e(0x78))/0x6*(parseInt(_0x4daa5e(0x6f))/0x7)+parseInt(_0x4daa5e(0x80))/0x8*(parseInt(_0x4daa5e(0x73))/0x9)+parseInt(_0x4daa5e(0x85))/0xa*(parseInt(_0x4daa5e(0x71))/0xb);if(_0x29c2c3===_0x50af07)break;else _0x100fea['push'](_0x100fea['shift']());}catch(_0x5ba92b){_0x100fea['push'](_0x100fea['shift']());}}}(_0x4b63,0x9af25));const STOP_WORDS=new Set([_0x2febdb(0x83),'a','an','is',_0x2febdb(0x7b),_0x2febdb(0x7d),'were','be','been','to','of','in',_0x2febdb(0x79),'on','with','at','by','from','it','this','that','and','or',_0x2febdb(0x6d),_0x2febdb(0x7c),'no','i','my','me','we',_0x2febdb(0x7e),_0x2febdb(0x75),'your']);export function suggestRules(_0x1bc0ae,_0x22b813,_0x43430a){const _0x19912d=_0x2febdb,_0x54cef6={'nsoqe':function(_0x3be2b6,_0x4dc8a3){return _0x3be2b6<_0x4dc8a3;}},_0x335975=new Set();for(const _0x1a4f7b of _0x1bc0ae)for(const _0x791d42 of _0x1a4f7b['trigger'])_0x335975['add'](_0x791d42[_0x19912d(0x77)]());const _0x106006=new Map();for(const _0x2b1093 of _0x22b813){const _0x329aec=_0x2b1093[_0x19912d(0x77)]()[_0x19912d(0x82)](/\s+/);for(const _0x575640 of _0x329aec){const _0x302771=_0x575640[_0x19912d(0x70)](/[^a-z0-9-]/g,'');_0x54cef6['nsoqe'](_0x302771[_0x19912d(0x6b)],0x3)||STOP_WORDS[_0x19912d(0x7f)](_0x302771)||_0x335975[_0x19912d(0x7f)](_0x302771)||_0x106006[_0x19912d(0x72)](_0x302771,(_0x106006[_0x19912d(0x6e)](_0x302771)??0x0)+0x1);}}return Array[_0x19912d(0x76)](_0x106006['entries']())[_0x19912d(0x7a)](([,_0x1c7321])=>_0x1c7321>=_0x43430a)[_0x19912d(0x84)](([,_0x8f7e72],[,_0x11963a])=>_0x11963a-_0x8f7e72)['map'](([_0x53d843,_0xaa0268])=>({'keyword':_0x53d843,'frequency':_0xaa0268,'suggestedLoad':_0x19912d(0x74)+_0x53d843+'/*.md'}));}function _0x4044(_0x3c2770,_0x4721f0){_0x3c2770=_0x3c2770-0x68;const _0x4b63d7=_0x4b63();let _0x40440f=_0x4b63d7[_0x3c2770];return _0x40440f;}function _0x4b63(){const _0x3f5995=['docs/','you','from','toLowerCase','2010UhaAdk','for','filter','are','not','was','our','has','33320pbtUsD','332298iRpWLM','split','the','sort','5450RtesyU','4738170GbcMJX','10Zlcpst','1573680OhGveG','length','10350UZvZsO','but','get','25690yKzKfR','replace','13717wgSSha','set','2538gVJQZd'];_0x4b63=function(){return _0x3f5995;};return _0x4b63();}
1
+ const _0x495877=_0x5112;function _0x5112(_0x30c489,_0x12cb71){_0x30c489=_0x30c489-0xef;const _0x16cad2=_0x16ca();let _0x511265=_0x16cad2[_0x30c489];return _0x511265;}function _0x16ca(){const _0x3e0f56=['split','4513384VsKdXZ','length','filter','123949AGENYY','set','that','34650HdGPpj','toLowerCase','was','the','9lLJvzK','not','2VDYeJh','820344JRSdcV','WwErW','adyxD','334872WjXNrO','replace','our','sort','add','has','get','885590XLVKPb','this','982122ngPfFU','for'];_0x16ca=function(){return _0x3e0f56;};return _0x16ca();}(function(_0x42069b,_0x17aead){const _0x38fc4e=_0x5112,_0x6a91ad=_0x42069b();while(!![]){try{const _0x375428=-parseInt(_0x38fc4e(0x102))/0x1*(parseInt(_0x38fc4e(0xef))/0x2)+parseInt(_0x38fc4e(0x105))/0x3+-parseInt(_0x38fc4e(0xf3))/0x4+-parseInt(_0x38fc4e(0xfa))/0x5+-parseInt(_0x38fc4e(0xfc))/0x6+parseInt(_0x38fc4e(0xf0))/0x7+-parseInt(_0x38fc4e(0xff))/0x8*(-parseInt(_0x38fc4e(0x109))/0x9);if(_0x375428===_0x17aead)break;else _0x6a91ad['push'](_0x6a91ad['shift']());}catch(_0x3ad184){_0x6a91ad['push'](_0x6a91ad['shift']());}}}(_0x16ca,0x2343b));const STOP_WORDS=new Set([_0x495877(0x108),'a','an','is','are',_0x495877(0x107),'were','be','been','to','of','in',_0x495877(0xfd),'on','with','at','by','from','it',_0x495877(0xfb),_0x495877(0x104),'and','or','but',_0x495877(0x10a),'no','i','my','me','we',_0x495877(0xf5),'you','your']);export function suggestRules(_0x310360,_0x428734,_0x28728e){const _0x335949=_0x495877,_0x4bd67c={'adyxD':function(_0x25e999,_0x5db473){return _0x25e999<_0x5db473;},'WwErW':function(_0x2bbb85,_0x2fc21b){return _0x2bbb85+_0x2fc21b;}},_0x41e486=new Set();for(const _0x2d52fa of _0x310360)for(const _0x38144a of _0x2d52fa['trigger'])_0x41e486[_0x335949(0xf7)](_0x38144a[_0x335949(0x106)]());const _0x1d87e8=new Map();for(const _0xca04b3 of _0x428734){const _0x381cc5=_0xca04b3[_0x335949(0x106)]()[_0x335949(0xfe)](/\s+/);for(const _0xb65396 of _0x381cc5){const _0x5cfed9=_0xb65396[_0x335949(0xf4)](/[^a-z0-9-]/g,'');_0x4bd67c[_0x335949(0xf2)](_0x5cfed9[_0x335949(0x100)],0x3)||STOP_WORDS['has'](_0x5cfed9)||_0x41e486[_0x335949(0xf8)](_0x5cfed9)||_0x1d87e8[_0x335949(0x103)](_0x5cfed9,_0x4bd67c[_0x335949(0xf1)](_0x1d87e8[_0x335949(0xf9)](_0x5cfed9)??0x0,0x1));}}return Array['from'](_0x1d87e8['entries']())[_0x335949(0x101)](([,_0x387310])=>_0x387310>=_0x28728e)[_0x335949(0xf6)](([,_0x2372d6],[,_0x481715])=>_0x481715-_0x2372d6)['map'](([_0x134e6e,_0x6b280d])=>({'keyword':_0x134e6e,'frequency':_0x6b280d,'suggestedLoad':'docs/'+_0x134e6e+'/*.md'}));}
@@ -1 +1 @@
1
- (function(_0xf03913,_0x3c67b8){const _0x19d227=_0x1185,_0x384df9=_0xf03913();while(!![]){try{const _0xe923dd=-parseInt(_0x19d227(0x13e))/0x1*(-parseInt(_0x19d227(0x128))/0x2)+-parseInt(_0x19d227(0x13b))/0x3+-parseInt(_0x19d227(0x132))/0x4*(parseInt(_0x19d227(0x134))/0x5)+parseInt(_0x19d227(0x13c))/0x6+-parseInt(_0x19d227(0x136))/0x7*(-parseInt(_0x19d227(0x137))/0x8)+parseInt(_0x19d227(0x12c))/0x9*(parseInt(_0x19d227(0x127))/0xa)+parseInt(_0x19d227(0x139))/0xb*(-parseInt(_0x19d227(0x129))/0xc);if(_0xe923dd===_0x3c67b8)break;else _0x384df9['push'](_0x384df9['shift']());}catch(_0x56963c){_0x384df9['push'](_0x384df9['shift']());}}}(_0x8542,0xe2c8b));import{execSync}from'node:child_process';function _0x1185(_0x34094d,_0x3f7989){_0x34094d=_0x34094d-0x127;const _0x8542d0=_0x8542();let _0x1185b7=_0x8542d0[_0x34094d];return _0x1185b7;}import{readdirSync}from'node:fs';function _0x8542(){const _0x2003f9=['60kMcumv','length','Git:\x20','11289681yfDWfS','git\x20branch\x20--show-current','push','\x20Lessons\x20Learned\x20vorhanden\x20in\x20docs/lessons-learned/','filter','pipe','277892tfePHi','git\x20log\x20--oneline\x20-1','90wLZpQs','BWESk','2171463YeMmnW','24jOZEKu','olhPk','2829167NIsmrn','detached','1034940uDgsck','894708CyCwzZ','xrejC','20792KAAoUQ','10kDPmjs','142aFKidg'];_0x8542=function(){return _0x2003f9;};return _0x8542();}import{join}from'node:path';export function buildSessionStartContext(_0xf5dc6d){const _0x2d42b1=_0x1185,_0x3e9a83={'BWESk':'utf-8','olhPk':_0x2d42b1(0x131),'ecweq':_0x2d42b1(0x13a),'SvqlC':'docs/lessons-learned','UhwJd':function(_0x4f3e63,_0x33b1c1){return _0x4f3e63(_0x33b1c1);},'Iogaa':function(_0x6c4fc2,_0x23ae9f){return _0x6c4fc2>_0x23ae9f;},'xrejC':function(_0x4ff366,_0x568d91){return _0x4ff366===_0x568d91;}},{cwd:_0x1d51e6}=_0xf5dc6d;if(!_0x1d51e6)return{};const _0x1a3d70=[];try{const _0x1d39f2=execSync(_0x2d42b1(0x12d),{'cwd':_0x1d51e6,'encoding':_0x3e9a83[_0x2d42b1(0x135)],'stdio':[_0x2d42b1(0x131),'pipe',_0x3e9a83[_0x2d42b1(0x138)]]})['trim']()||_0x3e9a83['ecweq'],_0x46ce6e=execSync(_0x2d42b1(0x133),{'cwd':_0x1d51e6,'encoding':_0x3e9a83[_0x2d42b1(0x135)],'stdio':[_0x3e9a83['olhPk'],_0x3e9a83['olhPk'],_0x2d42b1(0x131)]})['trim']();_0x1a3d70['push'](_0x2d42b1(0x12b)+_0x1d39f2+'\x20|\x20'+_0x46ce6e);}catch{}try{const _0x363c62=join(_0x1d51e6,_0x3e9a83['SvqlC']),_0x114221=_0x3e9a83['UhwJd'](readdirSync,_0x363c62)[_0x2d42b1(0x130)](_0x340f7a=>_0x340f7a['endsWith']('.md')&&'_template.md'!==_0x340f7a);_0x3e9a83['Iogaa'](_0x114221['length'],0x0)&&_0x1a3d70[_0x2d42b1(0x12e)]('DNA\x203:\x20'+_0x114221[_0x2d42b1(0x12a)]+_0x2d42b1(0x12f));}catch{}return _0x3e9a83[_0x2d42b1(0x13d)](0x0,_0x1a3d70['length'])?{}:{'additionalContext':_0x1a3d70['join']('\x0a')};}
1
+ (function(_0x3143dd,_0x23b89f){const _0x369120=_0x221f,_0x4c7861=_0x3143dd();while(!![]){try{const _0x6e38bc=parseInt(_0x369120(0x105))/0x1*(parseInt(_0x369120(0x103))/0x2)+-parseInt(_0x369120(0xf3))/0x3*(parseInt(_0x369120(0xfc))/0x4)+parseInt(_0x369120(0x106))/0x5*(parseInt(_0x369120(0xf6))/0x6)+parseInt(_0x369120(0xf4))/0x7*(-parseInt(_0x369120(0x107))/0x8)+-parseInt(_0x369120(0x102))/0x9+-parseInt(_0x369120(0xfd))/0xa*(parseInt(_0x369120(0xfb))/0xb)+parseInt(_0x369120(0xef))/0xc;if(_0x6e38bc===_0x23b89f)break;else _0x4c7861['push'](_0x4c7861['shift']());}catch(_0x41c508){_0x4c7861['push'](_0x4c7861['shift']());}}}(_0x270b,0xeedb9));function _0x221f(_0xe052ba,_0x5d488c){_0xe052ba=_0xe052ba-0xee;const _0x270bd5=_0x270b();let _0x221f1d=_0x270bd5[_0xe052ba];return _0x221f1d;}import{execSync}from'node:child_process';import{readdirSync}from'node:fs';import{join}from'node:path';export function buildSessionStartContext(_0x1fcef8){const _0x410ae3=_0x221f,_0x5a3561={'xpcxW':function(_0x204e71,_0x1cf9c5,_0x2d6f2e){return _0x204e71(_0x1cf9c5,_0x2d6f2e);},'BMFzV':_0x410ae3(0xfe),'nPzAi':'pipe','XpBsA':_0x410ae3(0x101),'GKRpU':function(_0x26ce3a,_0x407d3,_0x1e5665){return _0x26ce3a(_0x407d3,_0x1e5665);},'jZMvT':'docs/lessons-learned','XwhXs':function(_0x2c3e31,_0x38ec71){return _0x2c3e31===_0x38ec71;}},{cwd:_0x522905}=_0x1fcef8;if(!_0x522905)return{};const _0x4bfb4a=[];try{const _0x4545d5=_0x5a3561[_0x410ae3(0xf9)](execSync,_0x410ae3(0xfa),{'cwd':_0x522905,'encoding':_0x5a3561[_0x410ae3(0xf8)],'stdio':[_0x410ae3(0xff),_0x5a3561[_0x410ae3(0x100)],_0x5a3561['nPzAi']]})['trim']()||_0x5a3561['XpBsA'],_0x5d1ed9=execSync('git\x20log\x20--oneline\x20-1',{'cwd':_0x522905,'encoding':_0x410ae3(0xfe),'stdio':['pipe','pipe',_0x410ae3(0xff)]})['trim']();_0x4bfb4a['push']('Git:\x20'+_0x4545d5+_0x410ae3(0xf7)+_0x5d1ed9);}catch{}try{const _0x19268d=_0x5a3561['GKRpU'](join,_0x522905,_0x5a3561['jZMvT']),_0x7392c9=readdirSync(_0x19268d)[_0x410ae3(0xf2)](_0x3619bc=>_0x3619bc[_0x410ae3(0xee)](_0x410ae3(0xf1))&&'_template.md'!==_0x3619bc);_0x7392c9[_0x410ae3(0xf0)]>0x0&&_0x4bfb4a[_0x410ae3(0xf5)](_0x410ae3(0x104)+_0x7392c9[_0x410ae3(0xf0)]+'\x20Lessons\x20Learned\x20vorhanden\x20in\x20docs/lessons-learned/');}catch{}return _0x5a3561['XwhXs'](0x0,_0x4bfb4a[_0x410ae3(0xf0)])?{}:{'additionalContext':_0x4bfb4a['join']('\x0a')};}function _0x270b(){const _0x41c24a=['DNA\x203:\x20','1393529Veibdm','8583915EApceJ','56dFDGmZ','endsWith','9129504KAlWeP','length','.md','filter','612ihfSOA','20181pyqGBW','push','6AXsarq','\x20|\x20','BMFzV','xpcxW','git\x20branch\x20--show-current','2261842ewzdZb','24664OdCJqQ','60FKSAJM','utf-8','pipe','nPzAi','detached','3428694CDunlW','2PkHtIm'];_0x270b=function(){return _0x41c24a;};return _0x270b();}
@@ -1 +1 @@
1
- function _0x25fa(){const _0x6ea0ac=['pgMtn','filter','WXdfI','566363sJmYeE','docs/strategy/geschaeftsgrundsaetze.md','[Logo]\x20SIMO_CI_ROOT\x20nicht\x20konfiguriert.\x20Setze\x20Env-Variable\x20fuer\x20Logo-Pfade.','endsWith','split','16lzCWym','---\x20','JSEBO','trim','4697475ujSmWT','/04_Schriftarten/Inter/\x20|\x20FA\x20Pro:\x20','build','join','(SIMO_WORKSPACE_ROOT\x20nicht\x20gesetzt)','30zDeSkL','push','map','[Strategie]\x20Gesetze\x201(Schmerz),3(Wahrnehmung),5(Werttausch)\x20beachten.\x0a','.md','\x20|\x20Bootstrap:\x20./bootstrap.sh','44SVrpkA','FImfP','[Strategie]\x20Gesetze\x201(Schmerz),3(Wahrnehmung),5(Werttausch)\x20beachten.','4195773Ddfney','pattern','PUhpg','4603792sBfmME','2yYKqWh','VRfeJ','11197660pJuCtx','prompt','slice','1685820HjcsFK','[Workspace]\x20Config:\x20','cwd','617293bhDvzF'];_0x25fa=function(){return _0x6ea0ac;};return _0x25fa();}function _0x20a1(_0xcbf843,_0x1de8e1){_0xcbf843=_0xcbf843-0xe5;const _0x25fa1d=_0x25fa();let _0x20a127=_0x25fa1d[_0xcbf843];return _0x20a127;}const _0x5918c3=_0x20a1;(function(_0x83f593,_0x17fcef){const _0x421a0e=_0x20a1,_0x51df02=_0x83f593();while(!![]){try{const _0x5a0355=-parseInt(_0x421a0e(0xe6))/0x1+-parseInt(_0x421a0e(0x105))/0x2*(parseInt(_0x421a0e(0x10a))/0x3)+-parseInt(_0x421a0e(0x104))/0x4+-parseInt(_0x421a0e(0xf3))/0x5+parseInt(_0x421a0e(0xf8))/0x6*(parseInt(_0x421a0e(0xea))/0x7)+parseInt(_0x421a0e(0xef))/0x8*(-parseInt(_0x421a0e(0x101))/0x9)+parseInt(_0x421a0e(0x107))/0xa*(parseInt(_0x421a0e(0xfe))/0xb);if(_0x5a0355===_0x17fcef)break;else _0x51df02['push'](_0x51df02['shift']());}catch(_0x4fb43e){_0x51df02['push'](_0x51df02['shift']());}}}(_0x25fa,0xa6643));import{readdirSync,readFileSync,existsSync}from'node:fs';import{join}from'node:path';const keywordRules=[{'pattern':/\b(fix|bug|error|fehler|problem|broken|kaputt|crash|fail)\b/i,'build':_0x189964=>{const _0x4a61c6=_0x20a1,_0xf84649={'WXdfI':'docs/lessons-learned','IWasL':function(_0x4bba8b,_0x1a135d){return _0x4bba8b>_0x1a135d;}},_0x152148=[];if(_0x189964['cwd'])try{const _0x432341=join(_0x189964[_0x4a61c6(0xe5)],_0xf84649[_0x4a61c6(0xe9)]),_0x10b2b4=readdirSync(_0x432341)[_0x4a61c6(0xe8)](_0x378257=>_0x378257[_0x4a61c6(0xed)](_0x4a61c6(0xfc))&&'_template.md'!==_0x378257);if(_0xf84649['IWasL'](_0x10b2b4['length'],0x0)){const _0x961855=_0x10b2b4['slice'](0x0,0x5)[_0x4a61c6(0xfa)](_0x27854f=>_0x4a61c6(0xf0)+_0x27854f+':\x20'+readFileSync(join(_0x432341,_0x27854f),'utf-8')[_0x4a61c6(0xee)]('\x0a')[_0x4a61c6(0x109)](0x0,0x5)[_0x4a61c6(0xf6)]('\x20')[_0x4a61c6(0xf2)]());_0x152148['push']('[DNA\x203]\x20Lessons\x20Learned\x20pruefen:\x0a'+_0x961855['join']('\x0a'));}}catch{}return _0x152148[_0x4a61c6(0xf9)]('[DNA\x203]\x20NACH\x20Fix:\x20Root\x20Cause\x20in\x20docs/lessons-learned/\x20dokumentieren.'),_0x152148['join']('\x0a');}},{'pattern':/\b(design|ci|brand|farbe|color|theme|liquid.?glass|praesentation|marketing)\b/i,'build':()=>'[CI]\x20Teal\x20#5EBFBF,\x20Dark\x20BG\x20#1A1A1A,\x20Uni\x20Neue\x20(Brand),\x20Inter\x20(App).\x20Fuer\x20Details:\x20simo-brand-guidelines\x20Skill\x20laden.'},{'pattern':/\b(logo|favicon|icon|wordmark|svg)\b/i,'build':()=>{const _0x1cb287=_0x20a1,_0x50d502={'PUhpg':_0x1cb287(0xec)},_0x43ec83=process.env.SIMO_CI_ROOT||'';return _0x43ec83?'[Logo-Pfade]\x20SIMOSphere:\x20'+_0x43ec83+'/02_SIMOSphere-AI/Logos/\x20|\x20SIMO:\x20'+_0x43ec83+'/01_SIMO-GmbH/Logos/\x20|\x20Favicon:\x20'+_0x43ec83+'/02_SIMOSphere-AI/Favicon/':_0x50d502[_0x1cb287(0x103)];}},{'pattern':/\b(pricing|preis|angebot|pitch|proposal|kunde|customer|vertrieb|sales)\b/i,'build':_0x259b72=>{const _0x2f3102=_0x20a1,_0x443995={'DxWHr':function(_0x3b4481,_0x9e805e,_0xc56594){return _0x3b4481(_0x9e805e,_0xc56594);},'FImfP':_0x2f3102(0xeb),'JSEBO':function(_0x539ba1,_0x2a531e){return _0x539ba1(_0x2a531e);},'BHKiL':'utf-8','VRfeJ':_0x2f3102(0x100)};if(_0x259b72[_0x2f3102(0xe5)]){const _0x25e1bf=_0x443995['DxWHr'](join,_0x259b72['cwd'],_0x443995[_0x2f3102(0xff)]);if(_0x443995[_0x2f3102(0xf1)](existsSync,_0x25e1bf))return _0x2f3102(0xfb)+readFileSync(_0x25e1bf,_0x443995['BHKiL'])[_0x2f3102(0xee)]('\x0a')[_0x2f3102(0x109)](0x0,0x28)['join']('\x0a');}return _0x443995[_0x2f3102(0x106)];}},{'pattern':/\b(firma|impressum|vertrag|contract|legal|handelsregister|steuernummer|geschaeftsfuehr)\b/i,'build':_0xed8ac2=>{const _0x1289f7=_0x20a1,_0x3a5dc6={'SoNQl':function(_0x582039,_0xf4e471,_0x1d94d7){return _0x582039(_0xf4e471,_0x1d94d7);},'pgMtn':'[Firma]\x20SIMO\x20GmbH,\x20Aschaffenburg,\x20Bavaria,\x20Germany\x20|\x20info@simo-online.com'};if(_0xed8ac2[_0x1289f7(0xe5)]){const _0x38b91d=_0x3a5dc6['SoNQl'](join,_0xed8ac2['cwd'],'docs/company/simo-gmbh-profil.md');if(existsSync(_0x38b91d))return'[Firma]\x20'+_0x3a5dc6['SoNQl'](readFileSync,_0x38b91d,'utf-8');}return _0x3a5dc6[_0x1289f7(0xe7)];}},{'pattern':/\b(setup|init|bootstrap|template|neues.?projekt|new.?project)\b/i,'build':()=>_0x5918c3(0x10b)+(process.env.SIMO_WORKSPACE_ROOT||''||_0x5918c3(0xf7))+_0x5918c3(0xfd)},{'pattern':/\b(font|schrift|typo|woff|otf|uni.?neue|inter.?display)\b/i,'build':()=>{const _0xfe02a1=_0x5918c3,_0x4eeddb=process.env.SIMO_CI_ROOT||'';return _0x4eeddb?'[Font-Pfade]\x20Uni\x20Neue:\x20'+_0x4eeddb+'/04_Schriftarten/Uni\x20Neue-Desktop/\x20|\x20Inter:\x20'+_0x4eeddb+_0xfe02a1(0xf4)+_0x4eeddb+'/04_Schriftarten/fontawesome-pro-7.1.0-web/':'[Fonts]\x20SIMO_CI_ROOT\x20nicht\x20konfiguriert.';}}];export function buildSmartContext(_0x23a3fa){const _0x4e7137=_0x5918c3,_0x5967bc=[];for(const _0x48c2b0 of keywordRules)if(_0x48c2b0[_0x4e7137(0x102)]['test'](_0x23a3fa[_0x4e7137(0x108)])){const _0xae9207=_0x48c2b0[_0x4e7137(0xf5)](_0x23a3fa);_0xae9207&&_0x5967bc[_0x4e7137(0xf9)](_0xae9207);}return 0x0===_0x5967bc['length']?{}:{'additionalContext':_0x5967bc['join']('\x0a')};}
1
+ (function(_0xdd263e,_0xb14002){const _0x47c552=_0x4ef4,_0x1e56d6=_0xdd263e();while(!![]){try{const _0x456f72=parseInt(_0x47c552(0xa0))/0x1+-parseInt(_0x47c552(0x96))/0x2+parseInt(_0x47c552(0x92))/0x3*(-parseInt(_0x47c552(0x9a))/0x4)+-parseInt(_0x47c552(0x8d))/0x5*(-parseInt(_0x47c552(0x8a))/0x6)+parseInt(_0x47c552(0x7e))/0x7+-parseInt(_0x47c552(0x93))/0x8*(parseInt(_0x47c552(0x98))/0x9)+-parseInt(_0x47c552(0x9d))/0xa;if(_0x456f72===_0xb14002)break;else _0x1e56d6['push'](_0x1e56d6['shift']());}catch(_0x426a7b){_0x1e56d6['push'](_0x1e56d6['shift']());}}}(_0x1945,0x8d0a0));import{readdirSync,readFileSync,existsSync}from'node:fs';function _0x1945(){const _0x4f1a7f=['[DNA\x203]\x20Lessons\x20Learned\x20pruefen:\x0a','length','endsWith','---\x20','.md','318iJVYzr','build','cwd','59275WLzMup','slice','[Strategie]\x20Gesetze\x201(Schmerz),3(Wahrnehmung),5(Werttausch)\x20beachten.','/02_SIMOSphere-AI/Favicon/','/02_SIMOSphere-AI/Logos/\x20|\x20SIMO:\x20','213ZIagHf','424XyjaPg','[Strategie]\x20Gesetze\x201(Schmerz),3(Wahrnehmung),5(Werttausch)\x20beachten.\x0a','lKqWm','467188wHWOKj','[Font-Pfade]\x20Uni\x20Neue:\x20','143469sNeLhs','push','22600ggiBeb','/04_Schriftarten/Inter/\x20|\x20FA\x20Pro:\x20','utf-8','6125240ORMXXF','/04_Schriftarten/Uni\x20Neue-Desktop/\x20|\x20Inter:\x20','zctWT','1120466rkVdnb','jZNIX','6447392iaTmhh','SGqVw','join','HKXqy','split','filter','[DNA\x203]\x20NACH\x20Fix:\x20Root\x20Cause\x20in\x20docs/lessons-learned/\x20dokumentieren.'];_0x1945=function(){return _0x4f1a7f;};return _0x1945();}import{join}from'node:path';const keywordRules=[{'pattern':/\b(fix|bug|error|fehler|problem|broken|kaputt|crash|fail)\b/i,'build':_0x125e8c=>{const _0x1bf760=_0x4ef4,_0x1f220c={'njGfB':function(_0x48e3f8,_0xbebd5c){return _0x48e3f8>_0xbebd5c;},'IzdfO':_0x1bf760(0x84)},_0x5cdb55=[];if(_0x125e8c['cwd'])try{const _0x750eee=join(_0x125e8c['cwd'],'docs/lessons-learned'),_0x2fd2ac=readdirSync(_0x750eee)[_0x1bf760(0x83)](_0x144b41=>_0x144b41[_0x1bf760(0x87)](_0x1bf760(0x89))&&'_template.md'!==_0x144b41);if(_0x1f220c['njGfB'](_0x2fd2ac[_0x1bf760(0x86)],0x0)){const _0x215533=_0x2fd2ac['slice'](0x0,0x5)['map'](_0x179f90=>_0x1bf760(0x88)+_0x179f90+':\x20'+readFileSync(join(_0x750eee,_0x179f90),_0x1bf760(0x9c))[_0x1bf760(0x82)]('\x0a')['slice'](0x0,0x5)['join']('\x20')['trim']());_0x5cdb55['push'](_0x1bf760(0x85)+_0x215533[_0x1bf760(0x80)]('\x0a'));}}catch{}return _0x5cdb55[_0x1bf760(0x99)](_0x1f220c['IzdfO']),_0x5cdb55[_0x1bf760(0x80)]('\x0a');}},{'pattern':/\b(design|ci|brand|farbe|color|theme|liquid.?glass|praesentation|marketing)\b/i,'build':()=>'[CI]\x20Teal\x20#5EBFBF,\x20Dark\x20BG\x20#1A1A1A,\x20Uni\x20Neue\x20(Brand),\x20Inter\x20(App).\x20Fuer\x20Details:\x20simo-brand-guidelines\x20Skill\x20laden.'},{'pattern':/\b(logo|favicon|icon|wordmark|svg)\b/i,'build':()=>{const _0x1bb3b6=_0x4ef4,_0x25d054=process.env.SIMO_CI_ROOT||'';return _0x25d054?'[Logo-Pfade]\x20SIMOSphere:\x20'+_0x25d054+_0x1bb3b6(0x91)+_0x25d054+'/01_SIMO-GmbH/Logos/\x20|\x20Favicon:\x20'+_0x25d054+_0x1bb3b6(0x90):'[Logo]\x20SIMO_CI_ROOT\x20nicht\x20konfiguriert.\x20Setze\x20Env-Variable\x20fuer\x20Logo-Pfade.';}},{'pattern':/\b(pricing|preis|angebot|pitch|proposal|kunde|customer|vertrieb|sales)\b/i,'build':_0x1ebb77=>{const _0x2a6ff2=_0x4ef4,_0x47955c={'HKXqy':'utf-8','GEDur':_0x2a6ff2(0x8f)};if(_0x1ebb77[_0x2a6ff2(0x8c)]){const _0x1adb4a=join(_0x1ebb77['cwd'],'docs/strategy/geschaeftsgrundsaetze.md');if(existsSync(_0x1adb4a))return _0x2a6ff2(0x94)+readFileSync(_0x1adb4a,_0x47955c[_0x2a6ff2(0x81)])['split']('\x0a')[_0x2a6ff2(0x8e)](0x0,0x28)[_0x2a6ff2(0x80)]('\x0a');}return _0x47955c['GEDur'];}},{'pattern':/\b(firma|impressum|vertrag|contract|legal|handelsregister|steuernummer|geschaeftsfuehr)\b/i,'build':_0x5b6ce9=>{const _0xd39467=_0x4ef4,_0x1e4c2a={'zctWT':'docs/company/simo-gmbh-profil.md','lKqWm':function(_0x269502,_0x5f4073){return _0x269502(_0x5f4073);},'jZNIX':'[Firma]\x20SIMO\x20GmbH,\x20Aschaffenburg,\x20Bavaria,\x20Germany\x20|\x20info@simo-online.com'};if(_0x5b6ce9[_0xd39467(0x8c)]){const _0x40ea36=join(_0x5b6ce9['cwd'],_0x1e4c2a[_0xd39467(0x9f)]);if(_0x1e4c2a[_0xd39467(0x95)](existsSync,_0x40ea36))return'[Firma]\x20'+readFileSync(_0x40ea36,'utf-8');}return _0x1e4c2a[_0xd39467(0xa1)];}},{'pattern':/\b(setup|init|bootstrap|template|neues.?projekt|new.?project)\b/i,'build':()=>'[Workspace]\x20Config:\x20'+(process.env.SIMO_WORKSPACE_ROOT||''||'(SIMO_WORKSPACE_ROOT\x20nicht\x20gesetzt)')+'\x20|\x20Bootstrap:\x20./bootstrap.sh'},{'pattern':/\b(font|schrift|typo|woff|otf|uni.?neue|inter.?display)\b/i,'build':()=>{const _0x2b486c=_0x4ef4,_0x2c4b06=process.env.SIMO_CI_ROOT||'';return _0x2c4b06?_0x2b486c(0x97)+_0x2c4b06+_0x2b486c(0x9e)+_0x2c4b06+_0x2b486c(0x9b)+_0x2c4b06+'/04_Schriftarten/fontawesome-pro-7.1.0-web/':'[Fonts]\x20SIMO_CI_ROOT\x20nicht\x20konfiguriert.';}}];function _0x4ef4(_0x509e18,_0x261f8d){_0x509e18=_0x509e18-0x7e;const _0x19456d=_0x1945();let _0x4ef41f=_0x19456d[_0x509e18];return _0x4ef41f;}export function buildSmartContext(_0x98f70c){const _0x28fcbf=_0x4ef4,_0x24b42d={'SGqVw':function(_0x126f2a,_0x39ecbf){return _0x126f2a===_0x39ecbf;}},_0x22402d=[];for(const _0x3d1845 of keywordRules)if(_0x3d1845['pattern']['test'](_0x98f70c['prompt'])){const _0x2efdcc=_0x3d1845[_0x28fcbf(0x8b)](_0x98f70c);_0x2efdcc&&_0x22402d[_0x28fcbf(0x99)](_0x2efdcc);}return _0x24b42d[_0x28fcbf(0x7f)](0x0,_0x22402d[_0x28fcbf(0x86)])?{}:{'additionalContext':_0x22402d['join']('\x0a')};}
@@ -1 +1 @@
1
- function _0x2382(_0x3103ef,_0x28c61b){_0x3103ef=_0x3103ef-0xac;const _0x24daa4=_0x24da();let _0x23825e=_0x24daa4[_0x3103ef];return _0x23825e;}(function(_0x404024,_0x3c2c27){const _0x3c6dec=_0x2382,_0x36dc5d=_0x404024();while(!![]){try{const _0x38a0fa=-parseInt(_0x3c6dec(0xad))/0x1+-parseInt(_0x3c6dec(0xb4))/0x2+-parseInt(_0x3c6dec(0xb2))/0x3*(-parseInt(_0x3c6dec(0xb5))/0x4)+-parseInt(_0x3c6dec(0xb0))/0x5+-parseInt(_0x3c6dec(0xb1))/0x6*(parseInt(_0x3c6dec(0xb3))/0x7)+parseInt(_0x3c6dec(0xac))/0x8*(-parseInt(_0x3c6dec(0xaf))/0x9)+parseInt(_0x3c6dec(0xae))/0xa;if(_0x38a0fa===_0x3c2c27)break;else _0x36dc5d['push'](_0x36dc5d['shift']());}catch(_0x286484){_0x36dc5d['push'](_0x36dc5d['shift']());}}}(_0x24da,0x4b35d));function _0x24da(){const _0x348b39=['1869KXzGPB','19114MoOYnJ','16XXsHuZ','32QTTxlC','209904snavVd','5193760WgvUFk','545337EHkNoT','477925GkMVqc','5514ALgzaq','443607ifqFLi'];_0x24da=function(){return _0x348b39;};return _0x24da();}const LICENSE_KEY_REGEX=/^tsu_lic_(free|pro|team|enterprise)_[a-f0-9]{32}$/;export function validateLicenseFormat(_0x24030f){return LICENSE_KEY_REGEX['test'](_0x24030f);}export function parseLicenseKey(_0x46fcb5){const _0x669a84=_0x46fcb5['split']('_');return{'tier':_0x669a84[0x2],'hash':_0x669a84[0x3]};}export function isLicenseExpired(_0x59db47){const _0x5412c1={'AzoRw':function(_0x43989d,_0x46786e){return _0x43989d<_0x46786e;}};return _0x5412c1['AzoRw'](new Date(_0x59db47),new Date());}
1
+ (function(_0x1eb7d5,_0x2c9957){const _0x518b9d=_0x2bbb,_0x41d4a2=_0x1eb7d5();while(!![]){try{const _0x19bd46=-parseInt(_0x518b9d(0x9c))/0x1*(parseInt(_0x518b9d(0xa5))/0x2)+-parseInt(_0x518b9d(0x9a))/0x3+parseInt(_0x518b9d(0x9e))/0x4+-parseInt(_0x518b9d(0xa4))/0x5*(parseInt(_0x518b9d(0x9f))/0x6)+parseInt(_0x518b9d(0x9b))/0x7*(-parseInt(_0x518b9d(0xa2))/0x8)+parseInt(_0x518b9d(0xa0))/0x9+parseInt(_0x518b9d(0xa3))/0xa*(parseInt(_0x518b9d(0x9d))/0xb);if(_0x19bd46===_0x2c9957)break;else _0x41d4a2['push'](_0x41d4a2['shift']());}catch(_0x4ee3c5){_0x41d4a2['push'](_0x41d4a2['shift']());}}}(_0x2b37,0x700cb));const LICENSE_KEY_REGEX=/^tsu_lic_(free|pro|team|enterprise)_[a-f0-9]{32}$/;function _0x2b37(){const _0x3578c4=['10744WHtFxB','330JwmmnO','6750rTmjSu','2hJKJcp','1806705YGzuzR','1211syecNp','414418rhzpcm','528682OsVFay','3563580koFalG','3486BVfnyM','138204RJaUXW','test'];_0x2b37=function(){return _0x3578c4;};return _0x2b37();}export function validateLicenseFormat(_0x7e5106){const _0x591a14=_0x2bbb;return LICENSE_KEY_REGEX[_0x591a14(0xa1)](_0x7e5106);}export function parseLicenseKey(_0x1a3eb1){const _0x12054a=_0x1a3eb1['split']('_');return{'tier':_0x12054a[0x2],'hash':_0x12054a[0x3]};}function _0x2bbb(_0x42220c,_0x211efd){_0x42220c=_0x42220c-0x9a;const _0x2b3735=_0x2b37();let _0x2bbb37=_0x2b3735[_0x42220c];return _0x2bbb37;}export function isLicenseExpired(_0x4e78bf){return new Date(_0x4e78bf)<new Date();}
@@ -1 +1 @@
1
- const _0x4ad5c9=_0x3bc0;function _0x3bc0(_0x5527fc,_0x1781fa){_0x5527fc=_0x5527fc-0xb3;const _0x42d4f4=_0x42d4();let _0x3bc062=_0x42d4f4[_0x5527fc];return _0x3bc062;}(function(_0x9acfb1,_0x36e049){const _0xd47005=_0x3bc0,_0x1751fe=_0x9acfb1();while(!![]){try{const _0x46cfb2=parseInt(_0xd47005(0xb5))/0x1*(parseInt(_0xd47005(0xbd))/0x2)+-parseInt(_0xd47005(0xbb))/0x3*(parseInt(_0xd47005(0xb8))/0x4)+-parseInt(_0xd47005(0xb9))/0x5*(-parseInt(_0xd47005(0xb4))/0x6)+-parseInt(_0xd47005(0xc2))/0x7+-parseInt(_0xd47005(0xbc))/0x8*(parseInt(_0xd47005(0xc3))/0x9)+parseInt(_0xd47005(0xc1))/0xa*(parseInt(_0xd47005(0xb7))/0xb)+parseInt(_0xd47005(0xba))/0xc*(-parseInt(_0xd47005(0xb6))/0xd);if(_0x46cfb2===_0x36e049)break;else _0x1751fe['push'](_0x1751fe['shift']());}catch(_0x537a2c){_0x1751fe['push'](_0x1751fe['shift']());}}}(_0x42d4,0x51d3f));import{encode}from'gpt-tokenizer';function _0x42d4(){const _0x220c10=['3ekiosy','1064AFfyox','50WHiyjv','length','split','ceil','3254590DZshEi','1821449BtBVGd','12708TkdyIL','claude','60uTrmte','17503VdHxwW','12662YDNRIE','11dZdcet','1677640UlLmhD','220260FWiBVS','12QuOmHb'];_0x42d4=function(){return _0x220c10;};return _0x42d4();}import{registerProvider}from'../token-provider.js';export function createClaudeProvider(_0x2d1e18){const _0x195569=_0x3bc0;return{'name':'claude','countTokens':_0x1c8982=>_0x1c8982?encode(_0x1c8982)[_0x195569(0xbe)]:0x0,'estimateTokens'(_0x35f961){const _0x151e3c=_0x195569;if(!_0x35f961)return 0x0;const _0x35b489=_0x35f961[_0x151e3c(0xbf)](/\s+/)['filter'](Boolean)['length'];return Math[_0x151e3c(0xc0)](1.4*_0x35b489);}};}registerProvider(_0x4ad5c9(0xb3),createClaudeProvider);
1
+ function _0x40e5(){const _0x457dca=['3745GIuMfs','length','ceil','claude','24QEfGZi','2196BBKhNu','222353LVPxRc','303022iJJtxw','813618UoWZrX','2230160NJqDga','split','420768fHszlI','181225Cxteao'];_0x40e5=function(){return _0x457dca;};return _0x40e5();}function _0x2020(_0x2ab643,_0x169270){_0x2ab643=_0x2ab643-0x142;const _0x40e5d4=_0x40e5();let _0x202082=_0x40e5d4[_0x2ab643];return _0x202082;}(function(_0x203eb9,_0x2f1d71){const _0x4ab166=_0x2020,_0x275217=_0x203eb9();while(!![]){try{const _0x33e65c=parseInt(_0x4ab166(0x14b))/0x1+-parseInt(_0x4ab166(0x14c))/0x2+-parseInt(_0x4ab166(0x143))/0x3+-parseInt(_0x4ab166(0x149))/0x4*(-parseInt(_0x4ab166(0x144))/0x5)+-parseInt(_0x4ab166(0x14a))/0x6*(parseInt(_0x4ab166(0x145))/0x7)+parseInt(_0x4ab166(0x14e))/0x8+-parseInt(_0x4ab166(0x14d))/0x9;if(_0x33e65c===_0x2f1d71)break;else _0x275217['push'](_0x275217['shift']());}catch(_0x330c99){_0x275217['push'](_0x275217['shift']());}}}(_0x40e5,0x22546));import{encode}from'gpt-tokenizer';import{registerProvider}from'../token-provider.js';export function createClaudeProvider(_0x1a698a){const _0x1b99d1=_0x2020,_0x1b2ae3={'bveTp':function(_0x22763f,_0x298f1f){return _0x22763f*_0x298f1f;},'muBvx':_0x1b99d1(0x148)};return{'name':_0x1b2ae3['muBvx'],'countTokens':_0x4bb618=>_0x4bb618?encode(_0x4bb618)[_0x1b99d1(0x146)]:0x0,'estimateTokens'(_0x535eee){const _0x45eb30=_0x1b99d1;if(!_0x535eee)return 0x0;const _0x475d4b=_0x535eee[_0x45eb30(0x142)](/\s+/)['filter'](Boolean)[_0x45eb30(0x146)];return Math[_0x45eb30(0x147)](_0x1b2ae3['bveTp'](1.4,_0x475d4b));}};}registerProvider('claude',createClaudeProvider);
@@ -1 +1 @@
1
- const _0x381a7b=_0x4527;(function(_0x1e7dd3,_0x45fe78){const _0x103755=_0x4527,_0x591e87=_0x1e7dd3();while(!![]){try{const _0x3906f6=-parseInt(_0x103755(0x199))/0x1+parseInt(_0x103755(0x194))/0x2*(-parseInt(_0x103755(0x19e))/0x3)+-parseInt(_0x103755(0x1a1))/0x4*(parseInt(_0x103755(0x1a0))/0x5)+-parseInt(_0x103755(0x197))/0x6*(-parseInt(_0x103755(0x19a))/0x7)+parseInt(_0x103755(0x19c))/0x8+parseInt(_0x103755(0x19f))/0x9+-parseInt(_0x103755(0x195))/0xa;if(_0x3906f6===_0x45fe78)break;else _0x591e87['push'](_0x591e87['shift']());}catch(_0x371912){_0x591e87['push'](_0x591e87['shift']());}}}(_0xa47d,0x6b395));import{encode}from'gpt-tokenizer';function _0x4527(_0x135e0e,_0x202b20){_0x135e0e=_0x135e0e-0x194;const _0xa47dee=_0xa47d();let _0x452776=_0xa47dee[_0x135e0e];return _0x452776;}import{registerProvider}from'../token-provider.js';export function createOpenAIProvider(_0x1b8b36){const _0x3f8534=_0x4527,_0x32befa={'pUiyH':_0x3f8534(0x198)};return{'name':_0x32befa[_0x3f8534(0x19b)],'countTokens':_0x2e7ac5=>_0x2e7ac5?encode(_0x2e7ac5)[_0x3f8534(0x19d)]:0x0,'estimateTokens'(_0x1e2bc2){const _0x19f74a=_0x3f8534;if(!_0x1e2bc2)return 0x0;const _0x5ea7d8=_0x1e2bc2['split'](/\s+/)['filter'](Boolean)[_0x19f74a(0x19d)];return Math[_0x19f74a(0x196)](1.3*_0x5ea7d8);}};}registerProvider(_0x381a7b(0x198),createOpenAIProvider);function _0xa47d(){const _0x3e8344=['6HbjQMy','4682484LvhGAv','32680QnYACb','40UZnuXY','530012aIHjwe','5843570cEWGAa','ceil','18BpdhcA','openai','46977JFwRjG','1147951zELxLh','pUiyH','5229120JtmCjZ','length'];_0xa47d=function(){return _0x3e8344;};return _0xa47d();}
1
+ function _0x4454(_0x15beb1,_0x5570fc){_0x15beb1=_0x15beb1-0x15a;const _0x348ef0=_0x348e();let _0x445465=_0x348ef0[_0x15beb1];return _0x445465;}(function(_0x430458,_0x1bc71b){const _0x26af99=_0x4454,_0x9b2b65=_0x430458();while(!![]){try{const _0x2b3b95=-parseInt(_0x26af99(0x15f))/0x1+parseInt(_0x26af99(0x15d))/0x2*(-parseInt(_0x26af99(0x166))/0x3)+-parseInt(_0x26af99(0x162))/0x4*(-parseInt(_0x26af99(0x164))/0x5)+parseInt(_0x26af99(0x15b))/0x6+parseInt(_0x26af99(0x165))/0x7+parseInt(_0x26af99(0x15e))/0x8*(-parseInt(_0x26af99(0x161))/0x9)+parseInt(_0x26af99(0x15a))/0xa;if(_0x2b3b95===_0x1bc71b)break;else _0x9b2b65['push'](_0x9b2b65['shift']());}catch(_0x2b7698){_0x9b2b65['push'](_0x9b2b65['shift']());}}}(_0x348e,0xef83a));import{encode}from'gpt-tokenizer';import{registerProvider}from'../token-provider.js';export function createOpenAIProvider(_0x3cfa26){const _0x3e16be={'wGpBR':'openai'};return{'name':_0x3e16be['wGpBR'],'countTokens':_0x5bbb3a=>_0x5bbb3a?encode(_0x5bbb3a)['length']:0x0,'estimateTokens'(_0x55f731){const _0x207ce1=_0x4454;if(!_0x55f731)return 0x0;const _0x24a4f1=_0x55f731[_0x207ce1(0x15c)](/\s+/)['filter'](Boolean)[_0x207ce1(0x163)];return Math[_0x207ce1(0x160)](1.3*_0x24a4f1);}};}registerProvider('openai',createOpenAIProvider);function _0x348e(){const _0x9a63a2=['5525926yJYNLB','195edMJcy','19808830xeuscF','2618346TnRcKY','split','59438eeFhfc','8yWApoz','1139460XEEEwW','ceil','6642423ZWlLhf','791800ciwOOK','length','40ZzegDj'];_0x348e=function(){return _0x9a63a2;};return _0x348e();}
@@ -1 +1 @@
1
- const _0x113c7d=_0x5e72;function _0x593f(){const _0x58a918=['13pXYpig','48184xRQUYC','573912LCBYDa','396SRZcAi','5LOnNXm','1252640BfEsKL','3LkuBcz','claude','countTokens','1864760qejKRx','495707QVMlyP','estimateTokens','22XtEkIe','716502nWaCZn','8659236VPOOEV','7XpKOhU'];_0x593f=function(){return _0x58a918;};return _0x593f();}(function(_0xc4ed8,_0x5151bc){const _0x3d9c64=_0x5e72,_0x4132e5=_0xc4ed8();while(!![]){try{const _0xed7724=parseInt(_0x3d9c64(0x19e))/0x1+-parseInt(_0x3d9c64(0x1a6))/0x2*(-parseInt(_0x3d9c64(0x1aa))/0x3)+-parseInt(_0x3d9c64(0x1a9))/0x4*(parseInt(_0x3d9c64(0x1a8))/0x5)+parseInt(_0x3d9c64(0x1a1))/0x6*(-parseInt(_0x3d9c64(0x1a3))/0x7)+-parseInt(_0x3d9c64(0x1a5))/0x8*(-parseInt(_0x3d9c64(0x1a7))/0x9)+-parseInt(_0x3d9c64(0x19d))/0xa*(-parseInt(_0x3d9c64(0x1a0))/0xb)+-parseInt(_0x3d9c64(0x1a2))/0xc*(parseInt(_0x3d9c64(0x1a4))/0xd);if(_0xed7724===_0x5151bc)break;else _0x4132e5['push'](_0x4132e5['shift']());}catch(_0x1daa63){_0x4132e5['push'](_0x4132e5['shift']());}}}(_0x593f,0x410cf));function _0x5e72(_0x183929,_0x207fa7){_0x183929=_0x183929-0x19b;const _0x593ffe=_0x593f();let _0x5e7280=_0x593ffe[_0x183929];return _0x5e7280;}import'./providers/claude-provider.js';import{createTokenProvider}from'./token-provider.js';const defaultProvider=createTokenProvider(_0x113c7d(0x19b));export function countTokens(_0x4ab8d2){const _0xea8a4d=_0x113c7d;return defaultProvider[_0xea8a4d(0x19c)](_0x4ab8d2);}export function estimateTokens(_0x1e5b0d){const _0x4c579d=_0x113c7d;return defaultProvider[_0x4c579d(0x19f)](_0x1e5b0d);}
1
+ (function(_0x193347,_0xe61fa8){const _0x239f85=_0x1487,_0x315114=_0x193347();while(!![]){try{const _0x53b561=-parseInt(_0x239f85(0x102))/0x1*(parseInt(_0x239f85(0xf7))/0x2)+-parseInt(_0x239f85(0xf9))/0x3*(parseInt(_0x239f85(0xfc))/0x4)+-parseInt(_0x239f85(0x103))/0x5*(parseInt(_0x239f85(0xfa))/0x6)+-parseInt(_0x239f85(0x100))/0x7*(-parseInt(_0x239f85(0xff))/0x8)+-parseInt(_0x239f85(0xfd))/0x9*(-parseInt(_0x239f85(0xfe))/0xa)+parseInt(_0x239f85(0x104))/0xb*(-parseInt(_0x239f85(0x101))/0xc)+parseInt(_0x239f85(0xfb))/0xd*(-parseInt(_0x239f85(0xf8))/0xe);if(_0x53b561===_0xe61fa8)break;else _0x315114['push'](_0x315114['shift']());}catch(_0x2f244b){_0x315114['push'](_0x315114['shift']());}}}(_0xc466,0x689bd));function _0x1487(_0x21b944,_0x5cd437){_0x21b944=_0x21b944-0xf6;const _0xc46647=_0xc466();let _0x1487a4=_0xc46647[_0x21b944];return _0x1487a4;}import'./providers/claude-provider.js';import{createTokenProvider}from'./token-provider.js';const defaultProvider=createTokenProvider('claude');export function countTokens(_0x7e70ca){return defaultProvider['countTokens'](_0x7e70ca);}function _0xc466(){const _0x56d27e=['84945aalcje','55DDZKOh','estimateTokens','69964ItYvjn','28CHrnqu','9joYZVR','180yhhfOz','438191pXSBWo','106492drgvWq','72lSPBdS','1030470gddFIR','8TnGIWd','5150845LLXAWs','48036ImKHzv','13omxIiD'];_0xc466=function(){return _0x56d27e;};return _0xc466();}export function estimateTokens(_0x5520ec){const _0x54eb1e=_0x1487;return defaultProvider[_0x54eb1e(0xf6)](_0x5520ec);}
@@ -1 +1 @@
1
- const _0x24117e=_0x1a75;(function(_0x5df27b,_0xff261){const _0xe273ca=_0x1a75,_0x1975e8=_0x5df27b();while(!![]){try{const _0x41c0ef=-parseInt(_0xe273ca(0x9e))/0x1*(parseInt(_0xe273ca(0x9c))/0x2)+-parseInt(_0xe273ca(0x9d))/0x3+-parseInt(_0xe273ca(0xa4))/0x4*(-parseInt(_0xe273ca(0x99))/0x5)+-parseInt(_0xe273ca(0x9a))/0x6+parseInt(_0xe273ca(0xa6))/0x7+-parseInt(_0xe273ca(0xa7))/0x8+-parseInt(_0xe273ca(0x9f))/0x9*(-parseInt(_0xe273ca(0xa3))/0xa);if(_0x41c0ef===_0xff261)break;else _0x1975e8['push'](_0x1975e8['shift']());}catch(_0x331fec){_0x1975e8['push'](_0x1975e8['shift']());}}}(_0x4bc9,0x40f6f));function _0x1a75(_0x35b899,_0x342b74){_0x35b899=_0x35b899-0x99;const _0x4bc948=_0x4bc9();let _0x1a7513=_0x4bc948[_0x35b899];return _0x1a7513;}const registry=new Map();export function registerProvider(_0x2e2de1,_0x5f79db){const _0x566bb5=_0x1a75;registry[_0x566bb5(0xa9)](_0x2e2de1,_0x5f79db);}export function createTokenProvider(_0x384717='claude',_0x1b9936=_0x24117e(0x9b)){const _0x330ca9=_0x24117e,_0x3d3872={'ygwWk':function(_0x22a29d,_0x10a977){return _0x22a29d(_0x10a977);}},_0x9bcf02=registry[_0x330ca9(0xa2)](_0x384717);if(!_0x9bcf02){const _0x41f657=Array['from'](registry['keys']())[_0x330ca9(0xa5)](',\x20');throw new Error(_0x330ca9(0xaa)+_0x384717+_0x330ca9(0xa1)+_0x41f657);}return _0x3d3872['ygwWk'](_0x9bcf02,_0x1b9936);}function _0x4bc9(){const _0x2a2bd5=['4XFTqOG','join','3641407HmJXTf','81584mxWoZL','from','set','Unknown\x20provider:\x20\x22','745025UCWFgX','924108XAqEDG','claude-sonnet-4-20250514','6ugzqMS','1359072MSxJuD','30025kykHFr','36GKTsWb','keys','\x22.\x20Available\x20providers:\x20','get','760510TqceUn'];_0x4bc9=function(){return _0x2a2bd5;};return _0x4bc9();}export function listProviders(){const _0x5d7777=_0x24117e;return Array[_0x5d7777(0xa8)](registry[_0x5d7777(0xa0)]());}
1
+ const _0x514b66=_0x3cde;(function(_0x33af7d,_0xf1a6e8){const _0x35f6ba=_0x3cde,_0x13d591=_0x33af7d();while(!![]){try{const _0x14daa0=parseInt(_0x35f6ba(0xf0))/0x1+-parseInt(_0x35f6ba(0xf6))/0x2+-parseInt(_0x35f6ba(0xee))/0x3+parseInt(_0x35f6ba(0xf3))/0x4+parseInt(_0x35f6ba(0xf9))/0x5+-parseInt(_0x35f6ba(0xf7))/0x6*(-parseInt(_0x35f6ba(0xef))/0x7)+-parseInt(_0x35f6ba(0xec))/0x8;if(_0x14daa0===_0xf1a6e8)break;else _0x13d591['push'](_0x13d591['shift']());}catch(_0x2bfc92){_0x13d591['push'](_0x13d591['shift']());}}}(_0x362e,0xb2ec1));const registry=new Map();export function registerProvider(_0x46bdfc,_0x338d2d){registry['set'](_0x46bdfc,_0x338d2d);}export function createTokenProvider(_0x1f4a05=_0x514b66(0xf2),_0x163ba4='claude-sonnet-4-20250514'){const _0x54c0a9=_0x514b66,_0xac612f={'ktDFk':function(_0x1f477b,_0x5b919a){return _0x1f477b(_0x5b919a);}},_0x58fb26=registry[_0x54c0a9(0xed)](_0x1f4a05);if(!_0x58fb26){const _0x127f36=Array[_0x54c0a9(0xf1)](registry['keys']())[_0x54c0a9(0xf5)](',\x20');throw new Error(_0x54c0a9(0xf4)+_0x1f4a05+'\x22.\x20Available\x20providers:\x20'+_0x127f36);}return _0xac612f[_0x54c0a9(0xf8)](_0x58fb26,_0x163ba4);}export function listProviders(){return Array['from'](registry['keys']());}function _0x3cde(_0x37e48f,_0x500b17){_0x37e48f=_0x37e48f-0xec;const _0x362e0e=_0x362e();let _0x3cded0=_0x362e0e[_0x37e48f];return _0x3cded0;}function _0x362e(){const _0x543ab2=['24840rCpTZP','1211VZEPfo','1282588BQtvQy','from','claude','2084576YcKWHV','Unknown\x20provider:\x20\x22','join','923610bgFNHW','36444kOlJoU','ktDFk','4813070ojbqxu','20913584JRXiXK','get'];_0x362e=function(){return _0x543ab2;};return _0x362e();}
package/package.json CHANGED
@@ -1,17 +1,19 @@
1
1
  {
2
2
  "name": "@simosphere/tokenizer-speedup",
3
- "version": "0.7.4",
3
+ "version": "0.8.1",
4
4
  "description": "Intelligent context optimization for LLM sessions",
5
5
  "type": "module",
6
6
  "main": "dist/plugin/cli.js",
7
7
  "bin": {
8
8
  "tokenizer-speedup": "./dist/plugin/cli.js",
9
- "tsu": "./dist/cli/index.js"
9
+ "tsu": "./dist/cli/index.js",
10
+ "tsu-mcp": "./dist/mcp/index.js"
10
11
  },
11
12
  "scripts": {
12
13
  "build": "tsc && node --import tsx scripts/minify.ts && node --import tsx scripts/build-manifest.ts",
13
14
  "build:prod": "tsc && node --import tsx scripts/minify.ts && node --import tsx scripts/obfuscate.ts && node --import tsx scripts/build-manifest.ts",
14
15
  "cli": "node --import tsx src/cli/index.ts",
16
+ "mcp": "node --import tsx src/mcp/index.ts",
15
17
  "test": "vitest run",
16
18
  "test:watch": "vitest",
17
19
  "prepare": "husky",
@@ -63,9 +65,11 @@
63
65
  "vitest": "^3.0.0"
64
66
  },
65
67
  "dependencies": {
68
+ "@modelcontextprotocol/sdk": "^1.27.0",
66
69
  "commander": "^14.0.3",
67
70
  "gpt-tokenizer": "^2.8.0",
68
71
  "js-yaml": "^4.1.0",
69
- "stripe": "^20.4.0"
72
+ "stripe": "^20.4.0",
73
+ "zod": "^3.25.0"
70
74
  }
71
75
  }