@simosphere/tokenizer-speedup 0.9.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/analyze.js +1 -1
- package/dist/cli/config-cmd.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/init-cmd.js +1 -1
- package/dist/cli/setup-cmd.js +1 -1
- package/dist/cloud/stripe-checkout.js +1 -1
- package/dist/cloud/stripe-config.js +1 -1
- package/dist/cloud/stripe-usage.js +1 -1
- package/dist/cloud/stripe-webhooks.js +1 -1
- package/dist/cloud/subscription-store.js +1 -1
- package/dist/manifest.json +49 -45
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/resources.js +1 -1
- package/dist/mcp/session.js +1 -1
- package/dist/mcp/tools.js +1 -1
- package/dist/plugin/cli.js +1 -1
- package/dist/plugin/compression/anonymize.js +1 -0
- package/dist/plugin/compression/cache.js +1 -0
- package/dist/plugin/compression/chunked.js +1 -1
- package/dist/plugin/compression/dedup.js +1 -0
- package/dist/plugin/compression/format-optimizer.js +1 -0
- package/dist/plugin/compression/index.js +1 -1
- package/dist/plugin/compression/pipeline.js +1 -1
- package/dist/plugin/compression/quality.js +1 -1
- package/dist/plugin/compression/rule-based.js +1 -1
- package/dist/plugin/compression/structural.js +1 -1
- package/dist/plugin/compression/text-utils.js +1 -1
- package/dist/plugin/compression/token-budget.js +1 -1
- package/dist/plugin/config-loader.js +1 -1
- package/dist/plugin/context-compressor.js +1 -1
- package/dist/plugin/hook-dispatcher.js +1 -1
- package/dist/plugin/metering-client.js +1 -1
- package/dist/plugin/metrics-collector.js +1 -1
- package/dist/plugin/onboarding.js +1 -1
- package/dist/plugin/precompact-handler.js +1 -1
- package/dist/plugin/report.js +1 -1
- package/dist/plugin/rule-analytics-store.js +1 -1
- package/dist/plugin/rule-analytics.js +1 -1
- package/dist/plugin/rule-engine.js +1 -1
- package/dist/plugin/rule-sharing.js +1 -1
- package/dist/plugin/rule-suggest.js +1 -1
- package/dist/plugin/session-start.js +1 -1
- package/dist/plugin/smart-context.js +1 -1
- package/dist/shared/license.js +1 -1
- package/dist/shared/providers/claude-provider.js +1 -1
- package/dist/shared/providers/openai-provider.js +1 -1
- package/dist/shared/token-counter.js +1 -1
- package/dist/shared/token-provider.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2188a6,_0x22f963){const _0x3dbb17=_0x10a9,_0x38688b=_0x2188a6();while(!![]){try{const _0xee1788=parseInt(_0x3dbb17(0xed))/0x1+-parseInt(_0x3dbb17(0xec))/0x2*(-parseInt(_0x3dbb17(0xfa))/0x3)+parseInt(_0x3dbb17(0xf7))/0x4*(-parseInt(_0x3dbb17(0xf5))/0x5)+-parseInt(_0x3dbb17(0xef))/0x6*(parseInt(_0x3dbb17(0xf4))/0x7)+-parseInt(_0x3dbb17(0x102))/0x8+parseInt(_0x3dbb17(0xf6))/0x9+-parseInt(_0x3dbb17(0xff))/0xa;if(_0xee1788===_0x22f963)break;else _0x38688b['push'](_0x38688b['shift']());}catch(_0xe16cd3){_0x38688b['push'](_0x38688b['shift']());}}}(_0x3539,0xc3ab5));function _0x3539(){const _0x14ec76=['2386770dNxstg','yHbKS','fix','5020984xAToqq','lessons-learned/*.md','dump','2dhjHAk','723977gMBduz','lruip','78VKVTqL','error','XYQdX','isDirectory','filter','506177zhmBNh','1590985CKBtIv','14136786zCanPF','16NyzdAn','features/*.md','requirement','4757583bwQMZd','refactor','ILuob','docsDir','decisions/*.md'];_0x3539=function(){return _0x14ec76;};return _0x3539();}import{existsSync,readdirSync}from'node:fs';function _0x10a9(_0x45a680,_0x1b6cfe){_0x45a680=_0x45a680-0xea;const _0x353997=_0x3539();let _0x10a9cc=_0x353997[_0x45a680];return _0x10a9cc;}import{join}from'node:path';import _0x7515c3 from'js-yaml';export function detectProjectDocs(_0x28110e){const _0x5e4676=_0x10a9,_0x3d20b4={'ILuob':function(_0x53bf2b,_0x40632e,_0x460b84){return _0x53bf2b(_0x40632e,_0x460b84);},'yHbKS':function(_0x3ebede,_0x426478){return _0x3ebede(_0x426478);},'XnliP':'CLAUDE.md','iZhNk':function(_0x507c4e,_0x4768a6,_0x1aa412){return _0x507c4e(_0x4768a6,_0x1aa412);}},_0x4d67cb=_0x3d20b4[_0x5e4676(0xfc)](join,_0x28110e,'docs'),_0x1b36a1=_0x3d20b4[_0x5e4676(0x100)](existsSync,_0x4d67cb),_0x4ddc96=existsSync(join(_0x28110e,_0x3d20b4['XnliP'])),_0x3639c3=existsSync(join(_0x28110e,'docs/lessons-learned'));let _0x50c869=[];if(_0x1b36a1)try{_0x50c869=_0x3d20b4['iZhNk'](readdirSync,_0x4d67cb,{'withFileTypes':!0x0})[_0x5e4676(0xf3)](_0x47faf0=>_0x47faf0[_0x5e4676(0xf2)]())['map'](_0x4b65e0=>_0x4b65e0['name']);}catch{}return{'hasDocsDir':_0x1b36a1,'hasClaudeMd':_0x4ddc96,'hasLessonsLearned':_0x3639c3,'docSubdirs':_0x50c869};}export function generateDefaultConfig(_0x23775f){const _0x40f1fa=_0x10a9,_0x34374c={'PxrFi':_0x40f1fa(0x101),'hqGIi':'bug','XYQdX':'problem','XQovM':_0x40f1fa(0xfb),'lruip':'feature','fBRXD':'spec'},_0x46a58f={'version':0x1,'rules':[{'trigger':[_0x34374c['PxrFi'],_0x34374c['hqGIi'],_0x40f1fa(0xf0),_0x34374c[_0x40f1fa(0xf1)]],'load':_0x23775f['docsDir']+_0x40f1fa(0xea),'max_tokens':0x7d0,'summary_only':!0x1},{'trigger':['design','architecture',_0x34374c['XQovM']],'load':_0x23775f[_0x40f1fa(0xfd)]+_0x40f1fa(0xfe),'max_tokens':0xbb8,'summary_only':!0x0},{'trigger':[_0x34374c[_0x40f1fa(0xee)],_0x34374c['fBRXD'],_0x40f1fa(0xf9)],'load':_0x23775f[_0x40f1fa(0xfd)]+_0x40f1fa(0xf8),'max_tokens':0xbb8,'summary_only':!0x0}],'context_limits':{'max_injected_tokens':0x1f40,'max_file_tokens':0xfa0,'compress_above':0xbb8},'metering':{'endpoint':'https://api.simosphereai.com/v1/meter','batch_interval':0x3c,'send_content':!0x1}};return _0x7515c3[_0x40f1fa(0xeb)](_0x46a58f,{'lineWidth':0x78});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1824(){const _0x22ccac=['12033XTPETL','max_injected_tokens','turnIndex','326Gkjrji','113612tuZLFE','18uYPGoJ','compressedTokens','slice','filter','content','6097553qGjrhk','7988672iZUzZE','145knIbgF','2652fOZHAX','4722320MiRGYT','originalTokens','RpPpD','2238FuTxnV','209271ktvUZj','result','SrWQj','system','push','role','length'];_0x1824=function(){return _0x22ccac;};return _0x1824();}(function(_0x84e1c7,_0x5d2e82){const _0x42e427=_0x26c9,_0x5276ea=_0x84e1c7();while(!![]){try{const _0x207296=-parseInt(_0x42e427(0xb5))/0x1*(-parseInt(_0x42e427(0xc3))/0x2)+parseInt(_0x42e427(0xc4))/0x3+parseInt(_0x42e427(0xb6))/0x4*(parseInt(_0x42e427(0xbe))/0x5)+-parseInt(_0x42e427(0xbf))/0x6*(-parseInt(_0x42e427(0xcb))/0x7)+-parseInt(_0x42e427(0xbd))/0x8+-parseInt(_0x42e427(0xb7))/0x9*(parseInt(_0x42e427(0xc0))/0xa)+parseInt(_0x42e427(0xbc))/0xb;if(_0x207296===_0x5d2e82)break;else _0x5276ea['push'](_0x5276ea['shift']());}catch(_0xa75fe2){_0x5276ea['push'](_0x5276ea['shift']());}}}(_0x1824,0x99a3f));import{compressContextBudget}from'./context-compressor.js';function _0x26c9(_0x2ab16e,_0xb8e82b){_0x2ab16e=_0x2ab16e-0xb4;const _0x182478=_0x1824();let _0x26c9c6=_0x182478[_0x2ab16e];return _0x26c9c6;}import{countTokens}from'../shared/token-counter.js';export function prioritizeContext(_0x202179,_0xd50d3e,_0x5e1c5e=0x4){const _0x1238c1=_0x26c9,_0x4c2b85={'SrWQj':function(_0x50e5f2,_0x22c93d){return _0x50e5f2===_0x22c93d;},'RpPpD':function(_0x184dab,_0x2cc253){return _0x184dab(_0x2cc253);}};if(_0x4c2b85[_0x1238c1(0xc6)](0x0,_0x202179['length']))return{'prioritized':[],'totalOriginalTokens':0x0,'totalCompressedTokens':0x0,'segmentsDropped':0x0};const _0x239d15=_0xd50d3e[_0x1238c1(0xcc)],_0x3c966c=_0x202179['filter'](_0x5997bc=>'system'===_0x5997bc['role']),_0x51ce85=_0x202179[_0x1238c1(0xba)](_0x5b4478=>_0x1238c1(0xc7)!==_0x5b4478['role']),_0xff326e=Math['max'](0x0,_0x51ce85[_0x1238c1(0xca)]-_0x5e1c5e),_0x8e762=_0x51ce85[_0x1238c1(0xb9)](_0xff326e),_0x314915=_0x51ce85['slice'](0x0,_0xff326e),_0x1698bc=[];let _0x22e537=0x0,_0x4ee9ac=0x0,_0x52ebbe=0x0;for(const _0x1a5219 of _0x3c966c){const _0x510586=_0x4c2b85['RpPpD'](countTokens,_0x1a5219[_0x1238c1(0xbb)]);_0x22e537+=_0x510586,_0x4ee9ac+=_0x510586,_0x1698bc['push']({'role':_0x1a5219[_0x1238c1(0xc9)],'content':_0x1a5219['content'],'turnIndex':_0x1a5219['turnIndex'],'compressed':!0x1});}for(const _0x3a9241 of _0x8e762){const _0x211086=countTokens(_0x3a9241[_0x1238c1(0xbb)]);_0x22e537+=_0x211086,_0x4ee9ac+=_0x211086,_0x1698bc[_0x1238c1(0xc8)]({'role':_0x3a9241[_0x1238c1(0xc9)],'content':_0x3a9241[_0x1238c1(0xbb)],'turnIndex':_0x3a9241[_0x1238c1(0xb4)],'compressed':!0x1});}if(_0x314915['length']>0x0){const _0x3aa08a=_0x4ee9ac,_0x1d3aad=Math['max'](0x0,_0x239d15-_0x3aa08a);if(_0x1d3aad>0x0){const _0x10ee50=_0x314915['map'](_0x4f1511=>({'label':'turn-'+_0x4f1511[_0x1238c1(0xb4)],'text':_0x4f1511[_0x1238c1(0xbb)]})),_0xc5e49=compressContextBudget(_0x10ee50,_0x1d3aad);for(let _0x43aa35=0x0;_0x43aa35<_0x314915['length'];_0x43aa35++){const _0x590d62=_0x314915[_0x43aa35],_0x54cbdd=_0xc5e49[_0x43aa35][_0x1238c1(0xc5)];_0x22e537+=_0x54cbdd[_0x1238c1(0xc1)],_0x54cbdd[_0x1238c1(0xb8)]>0x0?(_0x4ee9ac+=_0x54cbdd[_0x1238c1(0xb8)],_0x1698bc[_0x1238c1(0xc8)]({'role':_0x590d62['role'],'content':_0x54cbdd['text'],'turnIndex':_0x590d62['turnIndex'],'compressed':_0x54cbdd['wasTruncated']})):(_0x52ebbe++,_0x22e537+=0x0);}}else{for(const _0x4e7517 of _0x314915)_0x22e537+=_0x4c2b85[_0x1238c1(0xc2)](countTokens,_0x4e7517['content']),_0x52ebbe++;}}return _0x1698bc['sort']((_0x48904b,_0x5a3506)=>_0x48904b['turnIndex']-_0x5a3506['turnIndex']),{'prioritized':_0x1698bc,'totalOriginalTokens':_0x22e537,'totalCompressedTokens':_0x4ee9ac,'segmentsDropped':_0x52ebbe};}
|
package/dist/plugin/report.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x350355,_0x44706f){const _0x20512a=_0x1b54,_0x80e8c5=_0x350355();while(!![]){try{const _0x54c0ea=-parseInt(_0x20512a(0xee))/0x1*(-parseInt(_0x20512a(0xe2))/0x2)+-parseInt(_0x20512a(0xf4))/0x3*(-parseInt(_0x20512a(0xec))/0x4)+-parseInt(_0x20512a(0xf6))/0x5*(parseInt(_0x20512a(0xf3))/0x6)+parseInt(_0x20512a(0xf2))/0x7*(-parseInt(_0x20512a(0xea))/0x8)+-parseInt(_0x20512a(0xe9))/0x9*(-parseInt(_0x20512a(0xf7))/0xa)+-parseInt(_0x20512a(0xef))/0xb+-parseInt(_0x20512a(0xf1))/0xc*(-parseInt(_0x20512a(0xed))/0xd);if(_0x54c0ea===_0x44706f)break;else _0x80e8c5['push'](_0x80e8c5['shift']());}catch(_0x3b2c73){_0x80e8c5['push'](_0x80e8c5['shift']());}}}(_0x4f02,0x5ba77));function _0x1b54(_0x2e6b0a,_0x3bd76c){_0x2e6b0a=_0x2e6b0a-0xe2;const _0x4f0221=_0x4f02();let _0x1b541c=_0x4f0221[_0x2e6b0a];return _0x1b541c;}import{readdirSync,readFileSync}from'node:fs';function _0x4f02(){const _0x4be3a1=['XfIPf','parse','4790817LpYXKI','7304UeGNbJ','diTjj','4TZVNeh','533221GRhiQP','22ULXddT','8158931vezQNm','zwbju','12ezYSFI','917EdIixu','1829202GKRCGq','1891635ZSuZYD','endsWith','10MUQXST','10GagOIF','AQtbC','58418nDIyoQ','.json','length','ITjxj','total_baseline'];_0x4f02=function(){return _0x4be3a1;};return _0x4f02();}import{join}from'node:path';const METRICS_DIR='.tokenizer-speedup',COST_PER_MILLION_TOKENS=0x3;export function generateReport(_0x531eea){const _0x3980a1=_0x1b54,_0x18ab93={'XfIPf':function(_0x2ddf5c,_0x1f0093,_0x3fa2a1){return _0x2ddf5c(_0x1f0093,_0x3fa2a1);},'lglBX':function(_0x843ed4,_0x371db6){return _0x843ed4(_0x371db6);},'zwbju':function(_0x39c05f,_0x49863c){return _0x39c05f>_0x49863c;},'AQtbC':function(_0x34c7cf,_0x5554e5){return _0x34c7cf*_0x5554e5;},'ITjxj':function(_0xd3a9fb,_0x304fb8){return _0xd3a9fb/_0x304fb8;},'diTjj':function(_0x3ea8ed,_0x4378a3){return _0x3ea8ed-_0x4378a3;}},_0x4adf71=_0x18ab93[_0x3980a1(0xe7)](join,_0x531eea,METRICS_DIR),_0x53f811=_0x18ab93['lglBX'](readdirSync,_0x4adf71)['filter'](_0x410acf=>_0x410acf[_0x3980a1(0xf5)](_0x3980a1(0xe3)))['map'](_0x4f6815=>JSON[_0x3980a1(0xe8)](readFileSync(join(_0x4adf71,_0x4f6815),'utf-8'))['summary']),_0x3a2e15=_0x53f811['reduce']((_0x34872d,_0x3be725)=>_0x34872d+_0x3be725[_0x3980a1(0xe6)],0x0),_0x2bf7ee=_0x53f811['reduce']((_0x5a1eef,_0x49e083)=>_0x5a1eef+_0x49e083['total_optimized'],0x0),_0x569d03=_0x3a2e15-_0x2bf7ee,_0x3b2dc9={};for(const _0x53d133 of _0x53f811)for(const [_0x2ae3fa,_0x5d579c]of Object['entries'](_0x53d133['rules_triggered']))_0x3b2dc9[_0x2ae3fa]=(_0x3b2dc9[_0x2ae3fa]||0x0)+_0x5d579c;const _0xe63595=_0x53f811['map'](_0x10f17a=>_0x10f17a['started_at'])['sort']();return{'sessions_count':_0x53f811['length'],'total_baseline':_0x3a2e15,'total_optimized':_0x2bf7ee,'total_delta':_0x569d03,'savings_percent':_0x18ab93[_0x3980a1(0xf0)](_0x3a2e15,0x0)?_0x18ab93[_0x3980a1(0xf8)](_0x18ab93[_0x3980a1(0xe5)](_0x569d03,_0x3a2e15),0x64):0x0,'total_prompts':_0x53f811['reduce']((_0x2e6fe3,_0x16f9d5)=>_0x2e6fe3+_0x16f9d5['prompts_count'],0x0),'rules_triggered':_0x3b2dc9,'estimated_cost_saved_usd':_0x569d03/0xf4240*0x3,'period_start':_0xe63595[0x0]||'','period_end':_0xe63595[_0x18ab93[_0x3980a1(0xeb)](_0xe63595[_0x3980a1(0xe4)],0x1)]||''};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2bb920,_0x5513dc){const _0x356664=_0x2741,_0x5b18de=_0x2bb920();while(!![]){try{const _0x32f413=-parseInt(_0x356664(0x1c6))/0x1*(parseInt(_0x356664(0x1c5))/0x2)+parseInt(_0x356664(0x1ce))/0x3+parseInt(_0x356664(0x1ca))/0x4+-parseInt(_0x356664(0x1cb))/0x5*(parseInt(_0x356664(0x1cc))/0x6)+parseInt(_0x356664(0x1c9))/0x7+-parseInt(_0x356664(0x1c8))/0x8*(parseInt(_0x356664(0x1c7))/0x9)+parseInt(_0x356664(0x1cd))/0xa*(parseInt(_0x356664(0x1d2))/0xb);if(_0x32f413===_0x5513dc)break;else _0x5b18de['push'](_0x5b18de['shift']());}catch(_0x1cbabe){_0x5b18de['push'](_0x5b18de['shift']());}}}(_0x2009,0x77845));import{RuleAnalytics}from'./rule-analytics.js';export function serializeAnalytics(_0x25c7b0){const _0xd6d6c8=_0x2741,_0x7fbb28=_0x25c7b0['getRanking']()['map'](_0xda7353=>({'rule':_0xda7353[_0xd6d6c8(0x1c4)],'fires':_0xda7353['fires'],'totalTokensSaved':_0xda7353[_0xd6d6c8(0x1c3)]}));return JSON[_0xd6d6c8(0x1d1)](_0x7fbb28);}function _0x2741(_0x54d28f,_0x586d2a){_0x54d28f=_0x54d28f-0x1c1;const _0x200973=_0x2009();let _0x2741eb=_0x200973[_0x54d28f];return _0x2741eb;}export function deserializeAnalytics(_0x78ef66){const _0x1dd5fc=_0x2741,_0x248523={'FVWST':function(_0x27bd05,_0x475a6e){return _0x27bd05/_0x475a6e;}},_0x499b94=new RuleAnalytics();try{const _0x5abcf9=JSON['parse'](_0x78ef66);for(const _0x5c76ea of _0x5abcf9){const _0x14eab5=_0x5c76ea[_0x1dd5fc(0x1c1)]>0x0?Math[_0x1dd5fc(0x1cf)](_0x248523[_0x1dd5fc(0x1c2)](_0x5c76ea[_0x1dd5fc(0x1c3)],_0x5c76ea[_0x1dd5fc(0x1c1)])):0x0;for(let _0x4bdd82=0x0;_0x4bdd82<_0x5c76ea['fires'];_0x4bdd82++)_0x499b94[_0x1dd5fc(0x1d0)](_0x5c76ea['rule'],_0x14eab5);}}catch{}return _0x499b94;}function _0x2009(){const _0x3c6e4f=['30aXkLud','1727910KwCFDc','round','recordFire','stringify','535898RwhuOq','fires','FVWST','totalTokensSaved','rule','4tcGUZE','229253MwWQSb','3932757NqBACH','8DbsiDV','6026412ZjpluR','1962696rEOHyA','10GRkcYW','2066082mSlHqN'];_0x2009=function(){return _0x3c6e4f;};return _0x2009();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x21ef14=_0x1b29;(function(_0x225a8f,_0x3027d8){const _0x451ec3=_0x1b29,_0x4fb444=_0x225a8f();while(!![]){try{const _0x6d09=parseInt(_0x451ec3(0xfb))/0x1+-parseInt(_0x451ec3(0xf0))/0x2+parseInt(_0x451ec3(0xf3))/0x3*(-parseInt(_0x451ec3(0xf8))/0x4)+-parseInt(_0x451ec3(0xfc))/0x5+parseInt(_0x451ec3(0xf7))/0x6*(parseInt(_0x451ec3(0xef))/0x7)+parseInt(_0x451ec3(0xf5))/0x8+-parseInt(_0x451ec3(0xfa))/0x9*(-parseInt(_0x451ec3(0xf4))/0xa);if(_0x6d09===_0x3027d8)break;else _0x4fb444['push'](_0x4fb444['shift']());}catch(_0x238259){_0x4fb444['push'](_0x4fb444['shift']());}}}(_0x7f97,0x47948));function _0x7f97(){const _0x435ae1=['414656IfCiBS','data','totalTokensSaved','48570RItdDw','174410ayYrWm','2090688HWkvhV','set','234Iryfsz','24MmrUAU','from','162xLEtKj','89560HJskma','2894465rmjAfK','avgTokensSaved','recordFire','91847oFyGSp'];_0x7f97=function(){return _0x435ae1;};return _0x7f97();}function _0x1b29(_0x506e57,_0x1a29dd){_0x506e57=_0x506e57-0xee;const _0x7f976=_0x7f97();let _0x1b2993=_0x7f976[_0x506e57];return _0x1b2993;}export class RuleAnalytics{[_0x21ef14(0xf1)]=new Map();[_0x21ef14(0xee)](_0x570e10,_0x2eadaa){const _0x14d1b0=_0x21ef14,_0x21cdae=this[_0x14d1b0(0xf1)]['get'](_0x570e10)??{'fires':0x0,'totalTokensSaved':0x0};_0x21cdae['fires']++,_0x21cdae[_0x14d1b0(0xf2)]+=_0x2eadaa,this['data'][_0x14d1b0(0xf6)](_0x570e10,_0x21cdae);}['getStats'](_0x398c86){const _0x163cb8=_0x21ef14,_0x5d4a50=this[_0x163cb8(0xf1)]['get'](_0x398c86);return _0x5d4a50?{'rule':_0x398c86,'fires':_0x5d4a50['fires'],'totalTokensSaved':_0x5d4a50[_0x163cb8(0xf2)],'avgTokensSaved':Math['round'](_0x5d4a50['totalTokensSaved']/_0x5d4a50['fires'])}:{'rule':_0x398c86,'fires':0x0,'totalTokensSaved':0x0,'avgTokensSaved':0x0};}['getRanking'](){const _0x30a5d6=_0x21ef14;return Array[_0x30a5d6(0xf9)](this[_0x30a5d6(0xf1)]['keys']())['map'](_0x124922=>this['getStats'](_0x124922))['sort']((_0xac534b,_0x504bf7)=>_0x504bf7['avgTokensSaved']-_0xac534b[_0x30a5d6(0xfd)]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x3a04(_0x2e9810,_0x5d159b){_0x2e9810=_0x2e9810-0xd9;const _0x29636b=_0x2963();let _0x3a0484=_0x29636b[_0x2e9810];return _0x3a0484;}const _0x5b99f4=_0x3a04;function _0x2963(){const _0x38206b=['limits','55660680aBCLLG','config','filter','some','4726530xgAhcv','toLowerCase','1604568VeMzCM','932035sXxxem','10315932spWxki','230sLAWYb','metering','9qnjUbL','rules','8OOzeuz','meteringConfig','includes','context_limits','1714afdxlf','5156165KJqQjc','30hHkieG','8mKsCIu'];_0x2963=function(){return _0x38206b;};return _0x2963();}(function(_0x2c56db,_0x51c67a){const _0x3bf0a3=_0x3a04,_0x46524c=_0x2c56db();while(!![]){try{const _0x37cc2e=parseInt(_0x3bf0a3(0xdc))/0x1*(parseInt(_0x3bf0a3(0xea))/0x2)+parseInt(_0x3bf0a3(0xe7))/0x3*(-parseInt(_0x3bf0a3(0xee))/0x4)+parseInt(_0x3bf0a3(0xe8))/0x5*(-parseInt(_0x3bf0a3(0xde))/0x6)+-parseInt(_0x3bf0a3(0xdd))/0x7*(parseInt(_0x3bf0a3(0xdf))/0x8)+-parseInt(_0x3bf0a3(0xec))/0x9*(parseInt(_0x3bf0a3(0xe5))/0xa)+-parseInt(_0x3bf0a3(0xe9))/0xb+parseInt(_0x3bf0a3(0xe1))/0xc;if(_0x37cc2e===_0x51c67a)break;else _0x46524c['push'](_0x46524c['shift']());}catch(_0xdb971d){_0x46524c['push'](_0x46524c['shift']());}}}(_0x2963,0xa7a65));export class RuleEngine{[_0x5b99f4(0xed)];[_0x5b99f4(0xe0)];[_0x5b99f4(0xe2)];constructor(_0x35e388){const _0x25d525=_0x5b99f4;this[_0x25d525(0xe2)]=_0x35e388,this['rules']=_0x35e388['rules'],this['limits']=_0x35e388[_0x25d525(0xdb)];}['match'](_0x1773d7){const _0x4062f=_0x5b99f4,_0x17ae8e=_0x1773d7[_0x4062f(0xe6)]();return this['rules'][_0x4062f(0xe3)](_0x4276d0=>_0x4276d0['trigger'][_0x4062f(0xe4)](_0x3474b9=>_0x17ae8e[_0x4062f(0xda)](_0x3474b9['toLowerCase']())));}get[_0x5b99f4(0xd9)](){const _0x37d720=_0x5b99f4;return this[_0x37d720(0xe2)][_0x37d720(0xeb)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5d4e84,_0xb7d47c){const _0x47b847=_0x5dd6,_0x4cf3fe=_0x5d4e84();while(!![]){try{const _0xab0e6e=-parseInt(_0x47b847(0x1df))/0x1+-parseInt(_0x47b847(0x1ef))/0x2*(parseInt(_0x47b847(0x1dd))/0x3)+parseInt(_0x47b847(0x1e4))/0x4+parseInt(_0x47b847(0x1e6))/0x5+-parseInt(_0x47b847(0x1eb))/0x6+parseInt(_0x47b847(0x1da))/0x7*(-parseInt(_0x47b847(0x1e9))/0x8)+parseInt(_0x47b847(0x1d9))/0x9;if(_0xab0e6e===_0xb7d47c)break;else _0x4cf3fe['push'](_0x4cf3fe['shift']());}catch(_0x489b53){_0x4cf3fe['push'](_0x4cf3fe['shift']());}}}(_0x4170,0xc12ea));import _0x162ec6 from'js-yaml';export function exportRuleBundle(_0x3b6d21,_0x3a0ff5){const _0x507be6=_0x5dd6,_0x83e4e1={'rkHgw':_0x507be6(0x1f2)},_0x29ec0c={'name':_0x3a0ff5[_0x507be6(0x1db)]??_0x83e4e1[_0x507be6(0x1dc)],'author':_0x3a0ff5['author'],'description':_0x3a0ff5['description'],'rules':_0x3b6d21};return _0x162ec6[_0x507be6(0x1de)](_0x29ec0c,{'lineWidth':0x78});}function _0x5dd6(_0x56cad6,_0x5ea0df){_0x56cad6=_0x56cad6-0x1d9;const _0x4170e3=_0x4170();let _0x5dd67a=_0x4170e3[_0x56cad6];return _0x5dd67a;}export function importRuleBundle(_0x5b2e8c){const _0x54abc4=_0x5dd6,_0x39fbd6={'FSDMu':'unknown'},_0x1d2361=_0x162ec6[_0x54abc4(0x1ec)](_0x5b2e8c);return{'name':_0x1d2361[_0x54abc4(0x1db)]??'imported','author':_0x1d2361['author']??_0x39fbd6[_0x54abc4(0x1ea)],'description':_0x1d2361['description']??'','rules':(_0x1d2361['rules']??[])['map'](_0x11cb17=>({'trigger':_0x11cb17[_0x54abc4(0x1e7)],'load':_0x11cb17['load'],'max_tokens':_0x11cb17[_0x54abc4(0x1f0)],'summary_only':_0x11cb17[_0x54abc4(0x1e2)]}))};}export function validateRuleBundle(_0x5ec3ff){const _0x5e0a3e=_0x5dd6,_0x16e126={'MIxOk':_0x5e0a3e(0x1ed),'XzUdc':_0x5e0a3e(0x1e8),'TTSqw':function(_0x26873e,_0x4a961a){return _0x26873e===_0x4a961a;},'OdlAA':_0x5e0a3e(0x1f1),'VNBYW':'each\x20rule\x20must\x20have\x20trigger\x20array\x20and\x20load\x20path','yfLcB':_0x5e0a3e(0x1e3)};try{const _0x19515c=_0x162ec6[_0x5e0a3e(0x1ec)](_0x5ec3ff);if(!_0x19515c||_0x16e126['MIxOk']!=typeof _0x19515c)return{'valid':!0x1,'error':_0x16e126['XzUdc']};if(!Array[_0x5e0a3e(0x1e5)](_0x19515c[_0x5e0a3e(0x1ee)])||_0x16e126['TTSqw'](0x0,_0x19515c['rules'][_0x5e0a3e(0x1e1)]))return{'valid':!0x1,'error':_0x16e126['OdlAA']};for(const _0x3a55e2 of _0x19515c[_0x5e0a3e(0x1ee)])if(!Array[_0x5e0a3e(0x1e5)](_0x3a55e2[_0x5e0a3e(0x1e7)])||!_0x3a55e2['load'])return{'valid':!0x1,'error':_0x16e126[_0x5e0a3e(0x1e0)]};return{'valid':!0x0};}catch{return{'valid':!0x1,'error':_0x16e126['yfLcB']};}}function _0x4170(){const _0x1577ab=['36854lrQVgL','max_tokens','bundle\x20must\x20contain\x20rules\x20array','custom-rules','26593488hfdKMV','28HNMFhl','name','rkHgw','150xRxpHJ','dump','1369661jjeMOE','VNBYW','length','summary_only','invalid\x20YAML','5357744PhafNL','isArray','5296785fsvOhP','trigger','invalid\x20YAML\x20structure','2277976RPtqfE','FSDMu','6794112tywpRA','load','object','rules'];_0x4170=function(){return _0x1577ab;};return _0x4170();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x8803b1=_0x1965;(function(_0x2271b1,_0xf21d76){const _0x49e6f3=_0x1965,_0x5edb51=_0x2271b1();while(!![]){try{const _0x1a0f47=-parseInt(_0x49e6f3(0x16f))/0x1+parseInt(_0x49e6f3(0x169))/0x2*(parseInt(_0x49e6f3(0x17b))/0x3)+parseInt(_0x49e6f3(0x178))/0x4*(-parseInt(_0x49e6f3(0x174))/0x5)+-parseInt(_0x49e6f3(0x17d))/0x6*(parseInt(_0x49e6f3(0x16b))/0x7)+-parseInt(_0x49e6f3(0x170))/0x8*(-parseInt(_0x49e6f3(0x17a))/0x9)+parseInt(_0x49e6f3(0x176))/0xa+-parseInt(_0x49e6f3(0x175))/0xb*(parseInt(_0x49e6f3(0x168))/0xc);if(_0x1a0f47===_0xf21d76)break;else _0x5edb51['push'](_0x5edb51['shift']());}catch(_0x4141c2){_0x5edb51['push'](_0x5edb51['shift']());}}}(_0x5e33,0xaeba2));const STOP_WORDS=new Set([_0x8803b1(0x171),'a','an','is','are',_0x8803b1(0x16d),'were','be',_0x8803b1(0x184),'to','of','in',_0x8803b1(0x17c),'on',_0x8803b1(0x183),'at','by',_0x8803b1(0x167),'it','this','that',_0x8803b1(0x185),'or',_0x8803b1(0x180),_0x8803b1(0x16a),'no','i','my','me','we','our','you',_0x8803b1(0x17f)]);export function suggestRules(_0x443145,_0x259d32,_0x1e2fbf){const _0xe45a11=_0x8803b1,_0x3f7257=new Set();for(const _0xbe350e of _0x443145)for(const _0x1f3c8e of _0xbe350e[_0xe45a11(0x179)])_0x3f7257['add'](_0x1f3c8e['toLowerCase']());const _0x3f6cde=new Map();for(const _0xbb8756 of _0x259d32){const _0x3c3034=_0xbb8756[_0xe45a11(0x181)]()['split'](/\s+/);for(const _0x43ef07 of _0x3c3034){const _0x279d34=_0x43ef07['replace'](/[^a-z0-9-]/g,'');_0x279d34['length']<0x3||STOP_WORDS[_0xe45a11(0x172)](_0x279d34)||_0x3f7257['has'](_0x279d34)||_0x3f6cde[_0xe45a11(0x177)](_0x279d34,(_0x3f6cde[_0xe45a11(0x16e)](_0x279d34)??0x0)+0x1);}}return Array[_0xe45a11(0x167)](_0x3f6cde[_0xe45a11(0x173)]())['filter'](([,_0x1d9851])=>_0x1d9851>=_0x1e2fbf)[_0xe45a11(0x16c)](([,_0x234251],[,_0x21a944])=>_0x21a944-_0x234251)['map'](([_0x4776ba,_0x230643])=>({'keyword':_0x4776ba,'frequency':_0x230643,'suggestedLoad':_0xe45a11(0x17e)+_0x4776ba+_0xe45a11(0x182)}));}function _0x1965(_0x1a740b,_0x2fcc1f){_0x1a740b=_0x1a740b-0x167;const _0x5e3311=_0x5e33();let _0x196542=_0x5e3311[_0x1a740b];return _0x196542;}function _0x5e33(){const _0xd0b565=['set','11212ZGuXQQ','trigger','63EoXNGV','3977445aVVNNm','for','4374498kPjcfG','docs/','your','but','toLowerCase','/*.md','with','been','and','from','12CaOmmN','2TCAOtT','not','7LlIGFC','sort','was','get','1409373JIjtsx','1419216cVWlSu','the','has','entries','540kUpXwE','2637349aRWsyh','8289920LDGEAh'];_0x5e33=function(){return _0xd0b565;};return _0x5e33();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xab915,_0x294b41){const _0x41cfbb=_0x104a,_0x3a4966=_0xab915();while(!![]){try{const _0x1048b0=-parseInt(_0x41cfbb(0x1ab))/0x1*(-parseInt(_0x41cfbb(0x1a6))/0x2)+parseInt(_0x41cfbb(0x1ae))/0x3+-parseInt(_0x41cfbb(0x1b0))/0x4+parseInt(_0x41cfbb(0x1a4))/0x5+-parseInt(_0x41cfbb(0x1a9))/0x6+-parseInt(_0x41cfbb(0x1b3))/0x7+-parseInt(_0x41cfbb(0x1b2))/0x8*(-parseInt(_0x41cfbb(0x1a7))/0x9);if(_0x1048b0===_0x294b41)break;else _0x3a4966['push'](_0x3a4966['shift']());}catch(_0x3e272c){_0x3a4966['push'](_0x3a4966['shift']());}}}(_0x1fb1,0x645c3));import{execSync}from'node:child_process';import{readdirSync}from'node:fs';function _0x104a(_0x1edc2c,_0x3287d1){_0x1edc2c=_0x1edc2c-0x1a2;const _0x1fb134=_0x1fb1();let _0x104a48=_0x1fb134[_0x1edc2c];return _0x104a48;}function _0x1fb1(){const _0x15200d=['2RegSCA','36ZTtruC','detached','3108066NUDsGX','pipe','524941stCGpw','GNLWB','utf-8','2189388HSgJLH','trim','2532448BAdsqu','git\x20branch\x20--show-current','226800NrpNPR','522221fRKbIg','endsWith','.md','length','jJisz','Git:\x20','1343320RJIYuF','SUlPC'];_0x1fb1=function(){return _0x15200d;};return _0x1fb1();}import{join}from'node:path';export function buildSessionStartContext(_0x23dc54){const _0x5c5f58=_0x104a,_0x2ff041={'wGHBj':_0x5c5f58(0x1b1),'jJisz':_0x5c5f58(0x1aa),'hHkpL':function(_0x290712,_0x4b3d70,_0x50efd5){return _0x290712(_0x4b3d70,_0x50efd5);},'LYZsm':_0x5c5f58(0x1ad),'SUlPC':function(_0x30b4be,_0x3e3011){return _0x30b4be>_0x3e3011;},'GNLWB':function(_0x35ccf3,_0x26b4eb){return _0x35ccf3===_0x26b4eb;}},{cwd:_0x219193}=_0x23dc54;if(!_0x219193)return{};const _0x3eb624=[];try{const _0xbfcd06=execSync(_0x2ff041['wGHBj'],{'cwd':_0x219193,'encoding':'utf-8','stdio':[_0x5c5f58(0x1aa),_0x5c5f58(0x1aa),_0x2ff041['jJisz']]})[_0x5c5f58(0x1af)]()||_0x5c5f58(0x1a8),_0x4f4d86=_0x2ff041['hHkpL'](execSync,'git\x20log\x20--oneline\x20-1',{'cwd':_0x219193,'encoding':_0x2ff041['LYZsm'],'stdio':['pipe',_0x2ff041[_0x5c5f58(0x1a2)],_0x2ff041[_0x5c5f58(0x1a2)]]})[_0x5c5f58(0x1af)]();_0x3eb624['push'](_0x5c5f58(0x1a3)+_0xbfcd06+'\x20|\x20'+_0x4f4d86);}catch{}try{const _0x3f4be4=join(_0x219193,'docs/lessons-learned'),_0x113e31=readdirSync(_0x3f4be4)['filter'](_0xcd2fb2=>_0xcd2fb2[_0x5c5f58(0x1b4)](_0x5c5f58(0x1b5))&&'_template.md'!==_0xcd2fb2);_0x2ff041[_0x5c5f58(0x1a5)](_0x113e31[_0x5c5f58(0x1b6)],0x0)&&_0x3eb624['push']('DNA\x203:\x20'+_0x113e31['length']+'\x20Lessons\x20Learned\x20vorhanden\x20in\x20docs/lessons-learned/');}catch{}return _0x2ff041[_0x5c5f58(0x1ac)](0x0,_0x3eb624['length'])?{}:{'additionalContext':_0x3eb624['join']('\x0a')};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4292(_0x22e583,_0x122802){_0x22e583=_0x22e583-0x1e7;const _0x1f6864=_0x1f68();let _0x4292fe=_0x1f6864[_0x22e583];return _0x4292fe;}const _0x43080f=_0x4292;function _0x1f68(){const _0x37925=['/04_Schriftarten/Inter/\x20|\x20FA\x20Pro:\x20','[Font-Pfade]\x20Uni\x20Neue:\x20','92hPcDac','utf-8','.md','875305ojBGVV','docs/strategy/geschaeftsgrundsaetze.md','_template.md','2898740pMGpQt','[Logo-Pfade]\x20SIMOSphere:\x20','[Firma]\x20SIMO\x20GmbH,\x20Aschaffenburg,\x20Bavaria,\x20Germany\x20|\x20info@simo-online.com','map','1053338QZlwyP','279799KdtMsF','/01_SIMO-GmbH/Logos/\x20|\x20Favicon:\x20','slice','moLRg','69684mYVeoR','endsWith','length','300VdguXM','bCHZI','\x20|\x20Bootstrap:\x20./bootstrap.sh','build','faDVB','61327RjcxKP','[Firma]\x20','pattern','[Logo]\x20SIMO_CI_ROOT\x20nicht\x20konfiguriert.\x20Setze\x20Env-Variable\x20fuer\x20Logo-Pfade.','JLxaP','test','[Fonts]\x20SIMO_CI_ROOT\x20nicht\x20konfiguriert.','split','[Workspace]\x20Config:\x20','8zZdRUu','(SIMO_WORKSPACE_ROOT\x20nicht\x20gesetzt)','join','432819ZihBoc','cwd','docs/company/simo-gmbh-profil.md','/04_Schriftarten/fontawesome-pro-7.1.0-web/'];_0x1f68=function(){return _0x37925;};return _0x1f68();}(function(_0x5392ce,_0x3e1b0a){const _0x46adaf=_0x4292,_0x1de3f9=_0x5392ce();while(!![]){try{const _0x1f5887=-parseInt(_0x46adaf(0x1f7))/0x1+-parseInt(_0x46adaf(0x1f6))/0x2+-parseInt(_0x46adaf(0x1fb))/0x3*(-parseInt(_0x46adaf(0x1ec))/0x4)+-parseInt(_0x46adaf(0x1ef))/0x5+-parseInt(_0x46adaf(0x1fe))/0x6*(-parseInt(_0x46adaf(0x203))/0x7)+parseInt(_0x46adaf(0x20c))/0x8*(parseInt(_0x46adaf(0x20f))/0x9)+parseInt(_0x46adaf(0x1f2))/0xa;if(_0x1f5887===_0x3e1b0a)break;else _0x1de3f9['push'](_0x1de3f9['shift']());}catch(_0x243c36){_0x1de3f9['push'](_0x1de3f9['shift']());}}}(_0x1f68,0x5041a));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':_0x48c222=>{const _0xedf5f8=_0x4292,_0x1b718b={'BChbo':function(_0x40b445,_0x40872c,_0x297312){return _0x40b445(_0x40872c,_0x297312);},'moLRg':function(_0x4e8294,_0x1545ba){return _0x4e8294>_0x1545ba;},'bCHZI':'[DNA\x203]\x20NACH\x20Fix:\x20Root\x20Cause\x20in\x20docs/lessons-learned/\x20dokumentieren.'},_0x28f524=[];if(_0x48c222['cwd'])try{const _0x139bce=_0x1b718b['BChbo'](join,_0x48c222['cwd'],'docs/lessons-learned'),_0x2d1d7e=readdirSync(_0x139bce)['filter'](_0x3856f7=>_0x3856f7[_0xedf5f8(0x1fc)](_0xedf5f8(0x1ee))&&_0xedf5f8(0x1f1)!==_0x3856f7);if(_0x1b718b[_0xedf5f8(0x1fa)](_0x2d1d7e[_0xedf5f8(0x1fd)],0x0)){const _0x33a572=_0x2d1d7e[_0xedf5f8(0x1f9)](0x0,0x5)[_0xedf5f8(0x1f5)](_0x1b9d6e=>'---\x20'+_0x1b9d6e+':\x20'+readFileSync(join(_0x139bce,_0x1b9d6e),_0xedf5f8(0x1ed))[_0xedf5f8(0x20a)]('\x0a')['slice'](0x0,0x5)['join']('\x20')['trim']());_0x28f524['push']('[DNA\x203]\x20Lessons\x20Learned\x20pruefen:\x0a'+_0x33a572[_0xedf5f8(0x20e)]('\x0a'));}}catch{}return _0x28f524['push'](_0x1b718b[_0xedf5f8(0x1ff)]),_0x28f524['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 _0x338bac=_0x4292,_0x16efd4=process.env.SIMO_CI_ROOT||'';return _0x16efd4?_0x338bac(0x1f3)+_0x16efd4+'/02_SIMOSphere-AI/Logos/\x20|\x20SIMO:\x20'+_0x16efd4+_0x338bac(0x1f8)+_0x16efd4+'/02_SIMOSphere-AI/Favicon/':_0x338bac(0x206);}},{'pattern':/\b(pricing|preis|angebot|pitch|proposal|kunde|customer|vertrieb|sales)\b/i,'build':_0x856476=>{const _0x1299d3=_0x4292,_0x526b05={'bGPQz':_0x1299d3(0x1f0),'tZRpG':function(_0x2a8e6b,_0x2e694d,_0x385882){return _0x2a8e6b(_0x2e694d,_0x385882);},'ZoITe':'utf-8','ZPlgS':'[Strategie]\x20Gesetze\x201(Schmerz),3(Wahrnehmung),5(Werttausch)\x20beachten.'};if(_0x856476[_0x1299d3(0x1e7)]){const _0x334ea5=join(_0x856476[_0x1299d3(0x1e7)],_0x526b05['bGPQz']);if(existsSync(_0x334ea5))return'[Strategie]\x20Gesetze\x201(Schmerz),3(Wahrnehmung),5(Werttausch)\x20beachten.\x0a'+_0x526b05['tZRpG'](readFileSync,_0x334ea5,_0x526b05['ZoITe'])['split']('\x0a')[_0x1299d3(0x1f9)](0x0,0x28)['join']('\x0a');}return _0x526b05['ZPlgS'];}},{'pattern':/\b(firma|impressum|vertrag|contract|legal|handelsregister|steuernummer|geschaeftsfuehr)\b/i,'build':_0x479dde=>{const _0x201674=_0x4292,_0x18e763={'xYDzV':function(_0x12ab02,_0x9f4ae4,_0x2d66ff){return _0x12ab02(_0x9f4ae4,_0x2d66ff);},'faDVB':_0x201674(0x1e8),'yTTbN':_0x201674(0x1f4)};if(_0x479dde['cwd']){const _0x1d8d95=_0x18e763['xYDzV'](join,_0x479dde['cwd'],_0x18e763[_0x201674(0x202)]);if(existsSync(_0x1d8d95))return _0x201674(0x204)+readFileSync(_0x1d8d95,'utf-8');}return _0x18e763['yTTbN'];}},{'pattern':/\b(setup|init|bootstrap|template|neues.?projekt|new.?project)\b/i,'build':()=>_0x43080f(0x20b)+(process.env.SIMO_WORKSPACE_ROOT||''||_0x43080f(0x20d))+_0x43080f(0x200)},{'pattern':/\b(font|schrift|typo|woff|otf|uni.?neue|inter.?display)\b/i,'build':()=>{const _0x18e453=_0x43080f,_0x355194={'JLxaP':_0x18e453(0x209)},_0x29ad07=process.env.SIMO_CI_ROOT||'';return _0x29ad07?_0x18e453(0x1eb)+_0x29ad07+'/04_Schriftarten/Uni\x20Neue-Desktop/\x20|\x20Inter:\x20'+_0x29ad07+_0x18e453(0x1ea)+_0x29ad07+_0x18e453(0x1e9):_0x355194[_0x18e453(0x207)];}}];export function buildSmartContext(_0x56b074){const _0x4d6ac7=_0x43080f,_0x10c854=[];for(const _0x429928 of keywordRules)if(_0x429928[_0x4d6ac7(0x205)][_0x4d6ac7(0x208)](_0x56b074['prompt'])){const _0x3a7c4f=_0x429928[_0x4d6ac7(0x201)](_0x56b074);_0x3a7c4f&&_0x10c854['push'](_0x3a7c4f);}return 0x0===_0x10c854[_0x4d6ac7(0x1fd)]?{}:{'additionalContext':_0x10c854['join']('\x0a')};}
|
package/dist/shared/license.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4de86b,_0xc688a){const _0x4303be=_0x3c0c,_0x4d5609=_0x4de86b();while(!![]){try{const _0x568b3a=parseInt(_0x4303be(0x1af))/0x1+parseInt(_0x4303be(0x1b9))/0x2*(parseInt(_0x4303be(0x1b3))/0x3)+parseInt(_0x4303be(0x1b6))/0x4*(parseInt(_0x4303be(0x1bc))/0x5)+-parseInt(_0x4303be(0x1be))/0x6*(parseInt(_0x4303be(0x1ba))/0x7)+-parseInt(_0x4303be(0x1b1))/0x8*(parseInt(_0x4303be(0x1b2))/0x9)+parseInt(_0x4303be(0x1b5))/0xa*(parseInt(_0x4303be(0x1b0))/0xb)+parseInt(_0x4303be(0x1b7))/0xc*(parseInt(_0x4303be(0x1bd))/0xd);if(_0x568b3a===_0xc688a)break;else _0x4d5609['push'](_0x4d5609['shift']());}catch(_0x58064c){_0x4d5609['push'](_0x4d5609['shift']());}}}(_0x15dc,0x9a12d));const LICENSE_KEY_REGEX=/^tsu_lic_(free|pro|team|enterprise)_[a-f0-9]{32}$/;export function validateLicenseFormat(_0x19683d){const _0x2256ee=_0x3c0c;return LICENSE_KEY_REGEX[_0x2256ee(0x1bb)](_0x19683d);}export function parseLicenseKey(_0x300514){const _0x5a7578=_0x3c0c,_0x162587=_0x300514[_0x5a7578(0x1b8)]('_');return{'tier':_0x162587[0x2],'hash':_0x162587[0x3]};}export function isLicenseExpired(_0xb8c9fe){const _0x198883=_0x3c0c,_0x49444a={'RRBxq':function(_0x2138a4,_0x35fb7b){return _0x2138a4<_0x35fb7b;}};return _0x49444a[_0x198883(0x1b4)](new Date(_0xb8c9fe),new Date());}function _0x3c0c(_0x21977e,_0x2935d8){_0x21977e=_0x21977e-0x1af;const _0x15dc10=_0x15dc();let _0x3c0cbe=_0x15dc10[_0x21977e];return _0x3c0cbe;}function _0x15dc(){const _0xdc18cd=['split','42FJqKmR','749MGdrCI','test','1149800HXvtwa','4498KaIaHu','69990OqXldx','1218459IXSdWD','2658469meeJDU','14576ToOTLl','2241WPePYN','33654aIIbZw','RRBxq','10GfAswE','4NaoQNU','14124TayJRs'];_0x15dc=function(){return _0xdc18cd;};return _0x15dc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x5b848f=_0x2d4a;(function(_0x5ed19b,_0x296b1a){const _0x229701=_0x2d4a,_0x5d4441=_0x5ed19b();while(!![]){try{const _0xd245c2=parseInt(_0x229701(0x1b3))/0x1+parseInt(_0x229701(0x1bb))/0x2*(parseInt(_0x229701(0x1b9))/0x3)+parseInt(_0x229701(0x1ae))/0x4*(-parseInt(_0x229701(0x1b0))/0x5)+parseInt(_0x229701(0x1b6))/0x6*(parseInt(_0x229701(0x1b2))/0x7)+-parseInt(_0x229701(0x1b4))/0x8+parseInt(_0x229701(0x1b8))/0x9+-parseInt(_0x229701(0x1ba))/0xa*(parseInt(_0x229701(0x1ad))/0xb);if(_0xd245c2===_0x296b1a)break;else _0x5d4441['push'](_0x5d4441['shift']());}catch(_0x3c2c06){_0x5d4441['push'](_0x5d4441['shift']());}}}(_0x4fca,0x8597c));function _0x2d4a(_0x4a2fd8,_0x444941){_0x4a2fd8=_0x4a2fd8-0x1ad;const _0x4fca34=_0x4fca();let _0x2d4a30=_0x4fca34[_0x4a2fd8];return _0x2d4a30;}import{encode}from'gpt-tokenizer';function _0x4fca(){const _0x80e2fb=['700814PLyGXB','229992YFXsvp','split','170394EJnqfY','lDXKQ','8800011vmTtvX','1869429yoSfln','93370UqzCjo','2BgzyJK','uDDTb','claude','ceil','2189pzWQJd','124zxSNgB','filter','65695RVxSNn','length','133yxEYmO'];_0x4fca=function(){return _0x80e2fb;};return _0x4fca();}import{registerProvider}from'../token-provider.js';export function createClaudeProvider(_0x470d3d){const _0x1845fd=_0x2d4a,_0xf38272={'lDXKQ':function(_0x264b01,_0x3acf31){return _0x264b01*_0x3acf31;},'uDDTb':_0x1845fd(0x1bd)};return{'name':_0xf38272[_0x1845fd(0x1bc)],'countTokens':_0x5b15a2=>_0x5b15a2?encode(_0x5b15a2)[_0x1845fd(0x1b1)]:0x0,'estimateTokens'(_0x1915a4){const _0x45bdf0=_0x1845fd;if(!_0x1915a4)return 0x0;const _0xb4f8ad=_0x1915a4[_0x45bdf0(0x1b5)](/\s+/)[_0x45bdf0(0x1af)](Boolean)['length'];return Math[_0x45bdf0(0x1be)](_0xf38272[_0x45bdf0(0x1b7)](1.4,_0xb4f8ad));}};}registerProvider(_0x5b848f(0x1bd),createClaudeProvider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xb749eb,_0x372c5f){const _0x5baa5a=_0x590b,_0x5f4aed=_0xb749eb();while(!![]){try{const _0x86f742=parseInt(_0x5baa5a(0x102))/0x1*(parseInt(_0x5baa5a(0x104))/0x2)+-parseInt(_0x5baa5a(0x107))/0x3+-parseInt(_0x5baa5a(0xfb))/0x4*(-parseInt(_0x5baa5a(0x100))/0x5)+-parseInt(_0x5baa5a(0xfe))/0x6*(-parseInt(_0x5baa5a(0xff))/0x7)+-parseInt(_0x5baa5a(0x105))/0x8+-parseInt(_0x5baa5a(0x106))/0x9+-parseInt(_0x5baa5a(0x103))/0xa;if(_0x86f742===_0x372c5f)break;else _0x5f4aed['push'](_0x5f4aed['shift']());}catch(_0x103c97){_0x5f4aed['push'](_0x5f4aed['shift']());}}}(_0x3313,0x2e17c));import{encode}from'gpt-tokenizer';import{registerProvider}from'../token-provider.js';function _0x590b(_0x288008,_0x13eb8b){_0x288008=_0x288008-0xfb;const _0x33136f=_0x3313();let _0x590b0b=_0x33136f[_0x288008];return _0x590b0b;}function _0x3313(){const _0x1ad804=['11506dQTUnr','897400rgSVBH','34cKlHBq','568808HxpplV','687942UXmYNG','78858AZFBBc','126676HTzylV','ceil','openai','30012eAdZFp','315TBvUFB','5UbwFvD','filter'];_0x3313=function(){return _0x1ad804;};return _0x3313();}export function createOpenAIProvider(_0x594282){const _0x6837c2=_0x590b;return{'name':_0x6837c2(0xfd),'countTokens':_0x2c5d20=>_0x2c5d20?encode(_0x2c5d20)['length']:0x0,'estimateTokens'(_0x41f8d0){const _0x516423=_0x6837c2;if(!_0x41f8d0)return 0x0;const _0x350310=_0x41f8d0['split'](/\s+/)[_0x516423(0x101)](Boolean)['length'];return Math[_0x516423(0xfc)](1.3*_0x350310);}};}registerProvider('openai',createOpenAIProvider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5c79(_0x260e48,_0x2e3df3){_0x260e48=_0x260e48-0x92;const _0x5c74d5=_0x5c74();let _0x5c7914=_0x5c74d5[_0x260e48];return _0x5c7914;}(function(_0x47d00c,_0xe802ba){const _0x2cdcb9=_0x5c79,_0x32f7f4=_0x47d00c();while(!![]){try{const _0x1d965b=parseInt(_0x2cdcb9(0x9b))/0x1*(parseInt(_0x2cdcb9(0x92))/0x2)+parseInt(_0x2cdcb9(0x9c))/0x3+-parseInt(_0x2cdcb9(0x93))/0x4+-parseInt(_0x2cdcb9(0x94))/0x5+parseInt(_0x2cdcb9(0x97))/0x6*(-parseInt(_0x2cdcb9(0x95))/0x7)+-parseInt(_0x2cdcb9(0x96))/0x8+-parseInt(_0x2cdcb9(0x9a))/0x9*(-parseInt(_0x2cdcb9(0x98))/0xa);if(_0x1d965b===_0xe802ba)break;else _0x32f7f4['push'](_0x32f7f4['shift']());}catch(_0x504f0c){_0x32f7f4['push'](_0x32f7f4['shift']());}}}(_0x5c74,0x6e3b5));import'./providers/claude-provider.js';import{createTokenProvider}from'./token-provider.js';const defaultProvider=createTokenProvider('claude');export function countTokens(_0x590672){return defaultProvider['countTokens'](_0x590672);}function _0x5c74(){const _0x4f6031=['214euhPFw','2751100clWLDO','1219795AMWPBW','7vVqolm','1081000PBvmAb','4887228dJVMKv','10luNNvT','estimateTokens','13469472yvUEXy','1453PpSKiv','2042481QKQFKS'];_0x5c74=function(){return _0x4f6031;};return _0x5c74();}export function estimateTokens(_0x209ba8){const _0x417d3e=_0x5c79;return defaultProvider[_0x417d3e(0x99)](_0x209ba8);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1583(_0x32ab6d,_0x538b59){_0x32ab6d=_0x32ab6d-0x1a1;const _0x53a667=_0x53a6();let _0x158342=_0x53a667[_0x32ab6d];return _0x158342;}const _0x493a9f=_0x1583;(function(_0x55bc96,_0x3d200e){const _0x187499=_0x1583,_0x4e81b0=_0x55bc96();while(!![]){try{const _0x309405=parseInt(_0x187499(0x1a3))/0x1+-parseInt(_0x187499(0x1af))/0x2*(-parseInt(_0x187499(0x1a4))/0x3)+-parseInt(_0x187499(0x1ad))/0x4+parseInt(_0x187499(0x1ae))/0x5+-parseInt(_0x187499(0x1ab))/0x6*(-parseInt(_0x187499(0x1a9))/0x7)+parseInt(_0x187499(0x1a2))/0x8+-parseInt(_0x187499(0x1a1))/0x9;if(_0x309405===_0x3d200e)break;else _0x4e81b0['push'](_0x4e81b0['shift']());}catch(_0x27eace){_0x4e81b0['push'](_0x4e81b0['shift']());}}}(_0x53a6,0x31c96));const registry=new Map();export function registerProvider(_0x4e80c0,_0x3ccc37){registry['set'](_0x4e80c0,_0x3ccc37);}export function createTokenProvider(_0xffdb52='claude',_0xfa204b=_0x493a9f(0x1a6)){const _0x4e1cf0=_0x493a9f,_0x384640=registry['get'](_0xffdb52);if(!_0x384640){const _0x1c331e=Array[_0x4e1cf0(0x1a5)](registry['keys']())[_0x4e1cf0(0x1a7)](',\x20');throw new Error(_0x4e1cf0(0x1a8)+_0xffdb52+_0x4e1cf0(0x1aa)+_0x1c331e);}return _0x384640(_0xfa204b);}function _0x53a6(){const _0x59c613=['21jdeVpP','from','claude-sonnet-4-20250514','join','Unknown\x20provider:\x20\x22','2051dFnnbs','\x22.\x20Available\x20providers:\x20','126EiuADQ','keys','868560UAvRUy','816380AwUaXy','74122tvwuUF','3704139yslGgX','1310392oGNykw','239982gWpqRp'];_0x53a6=function(){return _0x59c613;};return _0x53a6();}export function listProviders(){const _0x48e39f=_0x493a9f;return Array[_0x48e39f(0x1a5)](registry[_0x48e39f(0x1ac)]());}
|