@simosphere/tokenizer-speedup 0.7.0 → 0.7.2
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/.claude-plugin/plugin.json +1 -1
- package/README.de.md +173 -0
- package/README.md +173 -0
- package/dist/cli/analyze.js +1 -1
- package/dist/cli/config-cmd.js +1 -1
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +2 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/setup-cmd.js +1 -1
- package/dist/cli/setup-cmd.js.map +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 +34 -34
- package/dist/plugin/cli.d.ts +1 -0
- package/dist/plugin/cli.js +2 -1
- package/dist/plugin/cli.js.map +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 +25 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x464d83=_0x421a;(function(_0x3f6bbf,_0x1b69a0){const _0x5e2522=_0x421a,_0x6527b0=_0x3f6bbf();while(!![]){try{const _0x55a17b=parseInt(_0x5e2522(0xe8))/0x1+parseInt(_0x5e2522(0xfa))/0x2*(-parseInt(_0x5e2522(0xfb))/0x3)+-parseInt(_0x5e2522(0xfc))/0x4+-parseInt(_0x5e2522(0xfd))/0x5+-parseInt(_0x5e2522(0xe4))/0x6*(-parseInt(_0x5e2522(0xe6))/0x7)+parseInt(_0x5e2522(0xf7))/0x8*(-parseInt(_0x5e2522(0xe5))/0x9)+-parseInt(_0x5e2522(0x103))/0xa*(-parseInt(_0x5e2522(0xf2))/0xb);if(_0x55a17b===_0x1b69a0)break;else _0x6527b0['push'](_0x6527b0['shift']());}catch(_0x4b9f34){_0x6527b0['push'](_0x6527b0['shift']());}}}(_0x3a49,0x512f3));import{readdirSync,readFileSync,existsSync}from'node:fs';import{join}from'node:path';function _0x3a49(){const _0x1ff482=['length','372784vaVjLT','ySRQj','push','---\x20','/04_Schriftarten/fontawesome-pro-7.1.0-web/','filter','[Firma]\x20SIMO\x20GmbH,\x20Aschaffenburg,\x20Bavaria,\x20Germany\x20|\x20info@simo-online.com','docs/lessons-learned','pattern','_template.md','4334594TXxtNo','/04_Schriftarten/Inter/\x20|\x20FA\x20Pro:\x20','split','(SIMO_WORKSPACE_ROOT\x20nicht\x20gesetzt)','join','73936Kabuno','cwd','/02_SIMOSphere-AI/Favicon/','218KaydeQ','8691MELPXD','2210348KNnHZn','2380875bfURiw','[Firma]\x20','slice','OfRjn','/01_SIMO-GmbH/Logos/\x20|\x20Favicon:\x20','\x20|\x20Bootstrap:\x20./bootstrap.sh','20CbHsuW','/02_SIMOSphere-AI/Logos/\x20|\x20SIMO:\x20','[DNA\x203]\x20NACH\x20Fix:\x20Root\x20Cause\x20in\x20docs/lessons-learned/\x20dokumentieren.','12WVaZmI','18AUiSWT','1871303nxRKhm'];_0x3a49=function(){return _0x1ff482;};return _0x3a49();}function _0x421a(_0x656798,_0x48b156){_0x656798=_0x656798-0xe3;const _0x3a498f=_0x3a49();let _0x421afb=_0x3a498f[_0x656798];return _0x421afb;}const keywordRules=[{'pattern':/\b(fix|bug|error|fehler|problem|broken|kaputt|crash|fail)\b/i,'build':_0x23833f=>{const _0x84dff4=_0x421a,_0x371558={'RyxQP':function(_0xc9c77f,_0x31fd04){return _0xc9c77f>_0x31fd04;}},_0x3d84e1=[];if(_0x23833f['cwd'])try{const _0x2aa4af=join(_0x23833f['cwd'],_0x84dff4(0xef)),_0x3c0220=readdirSync(_0x2aa4af)[_0x84dff4(0xed)](_0x19f27e=>_0x19f27e['endsWith']('.md')&&_0x84dff4(0xf1)!==_0x19f27e);if(_0x371558['RyxQP'](_0x3c0220[_0x84dff4(0xe7)],0x0)){const _0x8b3b6=_0x3c0220[_0x84dff4(0xff)](0x0,0x5)['map'](_0x5c7621=>_0x84dff4(0xeb)+_0x5c7621+':\x20'+readFileSync(join(_0x2aa4af,_0x5c7621),'utf-8')[_0x84dff4(0xf4)]('\x0a')['slice'](0x0,0x5)['join']('\x20')['trim']());_0x3d84e1['push']('[DNA\x203]\x20Lessons\x20Learned\x20pruefen:\x0a'+_0x8b3b6['join']('\x0a'));}}catch{}return _0x3d84e1[_0x84dff4(0xea)](_0x84dff4(0xe3)),_0x3d84e1['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 _0x5386c6=_0x421a,_0x29a480=process.env.SIMO_CI_ROOT||'';return _0x29a480?'[Logo-Pfade]\x20SIMOSphere:\x20'+_0x29a480+_0x5386c6(0x104)+_0x29a480+_0x5386c6(0x101)+_0x29a480+_0x5386c6(0xf9):'[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':_0x3fd190=>{const _0x3362a3=_0x421a,_0x5f5a25={'BPNOa':function(_0x1f75af,_0x2072cb,_0x1ea9de){return _0x1f75af(_0x2072cb,_0x1ea9de);}};if(_0x3fd190[_0x3362a3(0xf8)]){const _0x374272=join(_0x3fd190[_0x3362a3(0xf8)],'docs/strategy/geschaeftsgrundsaetze.md');if(existsSync(_0x374272))return'[Strategie]\x20Gesetze\x201(Schmerz),3(Wahrnehmung),5(Werttausch)\x20beachten.\x0a'+_0x5f5a25['BPNOa'](readFileSync,_0x374272,'utf-8')[_0x3362a3(0xf4)]('\x0a')['slice'](0x0,0x28)['join']('\x0a');}return'[Strategie]\x20Gesetze\x201(Schmerz),3(Wahrnehmung),5(Werttausch)\x20beachten.';}},{'pattern':/\b(firma|impressum|vertrag|contract|legal|handelsregister|steuernummer|geschaeftsfuehr)\b/i,'build':_0x52c3a1=>{const _0x3ea7d2=_0x421a,_0x31983d={'ySRQj':'docs/company/simo-gmbh-profil.md','OfRjn':function(_0x3d3115,_0x50f005,_0x40e84d){return _0x3d3115(_0x50f005,_0x40e84d);},'NuFWQ':'utf-8','NttMu':_0x3ea7d2(0xee)};if(_0x52c3a1['cwd']){const _0x358c7b=join(_0x52c3a1['cwd'],_0x31983d[_0x3ea7d2(0xe9)]);if(existsSync(_0x358c7b))return _0x3ea7d2(0xfe)+_0x31983d[_0x3ea7d2(0x100)](readFileSync,_0x358c7b,_0x31983d['NuFWQ']);}return _0x31983d['NttMu'];}},{'pattern':/\b(setup|init|bootstrap|template|neues.?projekt|new.?project)\b/i,'build':()=>'[Workspace]\x20Config:\x20'+(process.env.SIMO_WORKSPACE_ROOT||''||_0x464d83(0xf5))+_0x464d83(0x102)},{'pattern':/\b(font|schrift|typo|woff|otf|uni.?neue|inter.?display)\b/i,'build':()=>{const _0x4343c5=_0x464d83,_0xe62a6d={'syWhz':'[Fonts]\x20SIMO_CI_ROOT\x20nicht\x20konfiguriert.'},_0xd193dc=process.env.SIMO_CI_ROOT||'';return _0xd193dc?'[Font-Pfade]\x20Uni\x20Neue:\x20'+_0xd193dc+'/04_Schriftarten/Uni\x20Neue-Desktop/\x20|\x20Inter:\x20'+_0xd193dc+_0x4343c5(0xf3)+_0xd193dc+_0x4343c5(0xec):_0xe62a6d['syWhz'];}}];export function buildSmartContext(_0x3a1f0e){const _0x582a74=_0x464d83,_0x43a0c4=[];for(const _0x56184a of keywordRules)if(_0x56184a[_0x582a74(0xf0)]['test'](_0x3a1f0e['prompt'])){const _0x3bb7f8=_0x56184a['build'](_0x3a1f0e);_0x3bb7f8&&_0x43a0c4['push'](_0x3bb7f8);}return 0x0===_0x43a0c4[_0x582a74(0xe7)]?{}:{'additionalContext':_0x43a0c4[_0x582a74(0xf6)]('\x0a')};}
|
package/dist/shared/license.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ab39e,_0x2c528d){const _0x1a2f66=_0x3645,_0x1b4606=_0x2ab39e();while(!![]){try{const _0x280da3=-parseInt(_0x1a2f66(0x141))/0x1+-parseInt(_0x1a2f66(0x138))/0x2*(-parseInt(_0x1a2f66(0x13c))/0x3)+parseInt(_0x1a2f66(0x140))/0x4*(parseInt(_0x1a2f66(0x136))/0x5)+parseInt(_0x1a2f66(0x13e))/0x6+-parseInt(_0x1a2f66(0x13b))/0x7*(-parseInt(_0x1a2f66(0x137))/0x8)+-parseInt(_0x1a2f66(0x13f))/0x9*(parseInt(_0x1a2f66(0x13d))/0xa)+-parseInt(_0x1a2f66(0x13a))/0xb;if(_0x280da3===_0x2c528d)break;else _0x1b4606['push'](_0x1b4606['shift']());}catch(_0x9814dc){_0x1b4606['push'](_0x1b4606['shift']());}}}(_0x4556,0xa3db0));function _0x3645(_0x1e3769,_0x387541){_0x1e3769=_0x1e3769-0x135;const _0x4556ae=_0x4556();let _0x3645e5=_0x4556ae[_0x1e3769];return _0x3645e5;}const LICENSE_KEY_REGEX=/^tsu_lic_(free|pro|team|enterprise)_[a-f0-9]{32}$/;export function validateLicenseFormat(_0x231d51){const _0x31feba=_0x3645;return LICENSE_KEY_REGEX[_0x31feba(0x135)](_0x231d51);}export function parseLicenseKey(_0x3060b5){const _0x1b049=_0x3645,_0x432a46=_0x3060b5[_0x1b049(0x139)]('_');return{'tier':_0x432a46[0x2],'hash':_0x432a46[0x3]};}function _0x4556(){const _0x51a016=['test','5HTdDTF','8AxzXQk','2OFJkWh','split','16383807iYfCEg','7750274zoYQOI','696669bYJWNc','54630BUBCog','4444566RuCMrA','306aGHEBO','2355224ayFbxJ','322641opDDbs'];_0x4556=function(){return _0x51a016;};return _0x4556();}export function isLicenseExpired(_0x26d55c){return new Date(_0x26d55c)<new Date();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4714d1=_0xbdc4;(function(_0x1d59cd,_0x5da8f7){const _0x1526b5=_0xbdc4,_0x5997b6=_0x1d59cd();while(!![]){try{const _0x19f604=-parseInt(_0x1526b5(0x83))/0x1+parseInt(_0x1526b5(0x81))/0x2+-parseInt(_0x1526b5(0x79))/0x3+parseInt(_0x1526b5(0x80))/0x4*(parseInt(_0x1526b5(0x7d))/0x5)+parseInt(_0x1526b5(0x7e))/0x6*(parseInt(_0x1526b5(0x7c))/0x7)+parseInt(_0x1526b5(0x7b))/0x8+-parseInt(_0x1526b5(0x76))/0x9*(-parseInt(_0x1526b5(0x7a))/0xa);if(_0x19f604===_0x5da8f7)break;else _0x5997b6['push'](_0x5997b6['shift']());}catch(_0xcfe2fb){_0x5997b6['push'](_0x5997b6['shift']());}}}(_0x33e4,0xd4004));import{encode}from'gpt-tokenizer';import{registerProvider}from'../token-provider.js';function _0xbdc4(_0x1feb8f,_0x55b27e){_0x1feb8f=_0x1feb8f-0x76;const _0x33e4d2=_0x33e4();let _0xbdc4ce=_0x33e4d2[_0x1feb8f];return _0xbdc4ce;}function _0x33e4(){const _0x1f54ae=['6MBVCNN','split','16owRyAW','136928OMfYGX','claude','1082761aAyLlc','105606UVyWYa','ceil','filter','3215847GgbYfq','930zxVoaR','10233896kgBYNV','1077937BVrfvf','537640SqHvCo'];_0x33e4=function(){return _0x1f54ae;};return _0x33e4();}export function createClaudeProvider(_0x12d945){const _0x5d7010={'KJuHU':function(_0x228b39,_0x3aa29a){return _0x228b39*_0x3aa29a;}};return{'name':'claude','countTokens':_0x342960=>_0x342960?encode(_0x342960)['length']:0x0,'estimateTokens'(_0x432624){const _0x1c283c=_0xbdc4;if(!_0x432624)return 0x0;const _0x15164b=_0x432624[_0x1c283c(0x7f)](/\s+/)[_0x1c283c(0x78)](Boolean)['length'];return Math[_0x1c283c(0x77)](_0x5d7010['KJuHU'](1.4,_0x15164b));}};}registerProvider(_0x4714d1(0x82),createClaudeProvider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x254eb0,_0x31e194){const _0x589cd1=_0x1c6b,_0x19f0ad=_0x254eb0();while(!![]){try{const _0x4cc609=-parseInt(_0x589cd1(0x11d))/0x1+-parseInt(_0x589cd1(0x126))/0x2*(parseInt(_0x589cd1(0x11e))/0x3)+parseInt(_0x589cd1(0x122))/0x4*(parseInt(_0x589cd1(0x121))/0x5)+parseInt(_0x589cd1(0x120))/0x6+parseInt(_0x589cd1(0x11f))/0x7+-parseInt(_0x589cd1(0x123))/0x8+parseInt(_0x589cd1(0x11c))/0x9*(parseInt(_0x589cd1(0x125))/0xa);if(_0x4cc609===_0x31e194)break;else _0x19f0ad['push'](_0x19f0ad['shift']());}catch(_0x14ff9a){_0x19f0ad['push'](_0x19f0ad['shift']());}}}(_0x2d1c,0x64718));function _0x1c6b(_0x3daf08,_0x4fc0ea){_0x3daf08=_0x3daf08-0x11c;const _0x2d1c0e=_0x2d1c();let _0x1c6b24=_0x2d1c0e[_0x3daf08];return _0x1c6b24;}import{encode}from'gpt-tokenizer';function _0x2d1c(){const _0x476332=['2045862PMMCwl','1756542iLWeLH','334965eNBfpl','20suOZcM','1454704TbJRgA','filter','3438230GAShHL','384gXYePT','18WDUMPX','583724HSSgoA','6729AFPBwF'];_0x2d1c=function(){return _0x476332;};return _0x2d1c();}import{registerProvider}from'../token-provider.js';export function createOpenAIProvider(_0x471673){return{'name':'openai','countTokens':_0x36b15d=>_0x36b15d?encode(_0x36b15d)['length']:0x0,'estimateTokens'(_0xeed68d){const _0x51843e=_0x1c6b;if(!_0xeed68d)return 0x0;const _0x19de4f=_0xeed68d['split'](/\s+/)[_0x51843e(0x124)](Boolean)['length'];return Math['ceil'](1.3*_0x19de4f);}};}registerProvider('openai',createOpenAIProvider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1972(_0x4155c5,_0x27f81b){_0x4155c5=_0x4155c5-0x6e;const _0x6764c7=_0x6764();let _0x1972fb=_0x6764c7[_0x4155c5];return _0x1972fb;}(function(_0x3f430d,_0x2cb5b1){const _0x4905f0=_0x1972,_0x2a4ade=_0x3f430d();while(!![]){try{const _0x19ebaf=parseInt(_0x4905f0(0x77))/0x1*(parseInt(_0x4905f0(0x73))/0x2)+-parseInt(_0x4905f0(0x76))/0x3*(-parseInt(_0x4905f0(0x72))/0x4)+-parseInt(_0x4905f0(0x6e))/0x5*(-parseInt(_0x4905f0(0x70))/0x6)+-parseInt(_0x4905f0(0x71))/0x7+parseInt(_0x4905f0(0x75))/0x8+-parseInt(_0x4905f0(0x74))/0x9+parseInt(_0x4905f0(0x6f))/0xa;if(_0x19ebaf===_0x2cb5b1)break;else _0x2a4ade['push'](_0x2a4ade['shift']());}catch(_0x4e700b){_0x2a4ade['push'](_0x2a4ade['shift']());}}}(_0x6764,0xd0874));import'./providers/claude-provider.js';import{createTokenProvider}from'./token-provider.js';const defaultProvider=createTokenProvider('claude');export function countTokens(_0xa0134b){return defaultProvider['countTokens'](_0xa0134b);}function _0x6764(){const _0x344818=['6qcyIfD','80129MEInmw','10XiVARE','961300aOBnRV','1089906NQYOFl','9732751giVNGZ','1064956jPVTpg','8HvmVhn','6240996ZjAaTq','13004344CKitIN'];_0x6764=function(){return _0x344818;};return _0x6764();}export function estimateTokens(_0x451afd){return defaultProvider['estimateTokens'](_0x451afd);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x21a6(){const _0x5c835a=['4717936lmGTxs','10710056nIvVws','3690tfZzRH','Unknown\x20provider:\x20','from','145XFrpLR','get','keys','siTQy','703712BalLzs','2gfVnMt','claude','1984074DekSIT','23464WpnihT','30670884YFZjAQ'];_0x21a6=function(){return _0x5c835a;};return _0x21a6();}function _0xf2e7(_0x146494,_0x3631c4){_0x146494=_0x146494-0xaa;const _0x21a662=_0x21a6();let _0xf2e795=_0x21a662[_0x146494];return _0xf2e795;}const _0xad3750=_0xf2e7;(function(_0x5ecb78,_0x164cae){const _0x377f14=_0xf2e7,_0x493c3c=_0x5ecb78();while(!![]){try{const _0x952471=-parseInt(_0x377f14(0xb0))/0x1+-parseInt(_0x377f14(0xb1))/0x2*(-parseInt(_0x377f14(0xb3))/0x3)+-parseInt(_0x377f14(0xb6))/0x4+-parseInt(_0x377f14(0xac))/0x5*(parseInt(_0x377f14(0xb8))/0x6)+-parseInt(_0x377f14(0xb4))/0x7+-parseInt(_0x377f14(0xb7))/0x8+parseInt(_0x377f14(0xb5))/0x9;if(_0x952471===_0x164cae)break;else _0x493c3c['push'](_0x493c3c['shift']());}catch(_0x61eabe){_0x493c3c['push'](_0x493c3c['shift']());}}}(_0x21a6,0xc9aee));const registry=new Map();export function registerProvider(_0x281315,_0x2cae3b){registry['set'](_0x281315,_0x2cae3b);}export function createTokenProvider(_0xca4977=_0xad3750(0xb2),_0x1e3be7='claude-sonnet-4-20250514'){const _0x10a944=_0xad3750,_0xbe1da9={'siTQy':function(_0x3b94d0,_0x1e1015){return _0x3b94d0(_0x1e1015);}},_0x2d1b48=registry[_0x10a944(0xad)](_0xca4977);if(!_0x2d1b48)throw new Error(_0x10a944(0xaa)+_0xca4977);return _0xbe1da9[_0x10a944(0xaf)](_0x2d1b48,_0x1e3be7);}export function listProviders(){const _0x2254ae=_0xad3750;return Array[_0x2254ae(0xab)](registry[_0x2254ae(0xae)]());}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simosphere/tokenizer-speedup",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Intelligent context optimization for LLM sessions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/plugin/cli.js",
|
|
@@ -27,7 +27,30 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"
|
|
30
|
+
"keywords": [
|
|
31
|
+
"claude-code",
|
|
32
|
+
"token-optimization",
|
|
33
|
+
"llm",
|
|
34
|
+
"context-management",
|
|
35
|
+
"cost-reduction",
|
|
36
|
+
"claude",
|
|
37
|
+
"ai",
|
|
38
|
+
"developer-tools",
|
|
39
|
+
"plugin"
|
|
40
|
+
],
|
|
41
|
+
"homepage": "https://tokenizer-speedup.simosphereai.com",
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "https://github.com/SIMOSphereOS/tokenizer-speedup.git"
|
|
45
|
+
},
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": "https://github.com/SIMOSphereOS/tokenizer-speedup/issues"
|
|
48
|
+
},
|
|
49
|
+
"author": {
|
|
50
|
+
"name": "SIMO GmbH",
|
|
51
|
+
"email": "info@simo-online.com",
|
|
52
|
+
"url": "https://simo-online.com"
|
|
53
|
+
},
|
|
31
54
|
"license": "UNLICENSED",
|
|
32
55
|
"devDependencies": {
|
|
33
56
|
"@types/js-yaml": "^4.0.9",
|