@simosphere/tokenizer-speedup 0.8.1 → 0.9.0
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 +22 -14
- 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 +46 -37
- 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/chunked.js +1 -0
- package/dist/plugin/compression/index.js +1 -0
- package/dist/plugin/compression/pipeline.js +1 -0
- package/dist/plugin/compression/quality.js +1 -0
- package/dist/plugin/compression/rule-based.js +1 -0
- package/dist/plugin/compression/structural.js +1 -0
- package/dist/plugin/compression/text-utils.js +1 -0
- package/dist/plugin/compression/token-budget.js +1 -0
- package/dist/plugin/compression/types.js +1 -0
- 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
|
-
|
|
1
|
+
function _0x465e(){const _0x72eb51=['[Firma]\x20SIMO\x20GmbH,\x20Aschaffenburg,\x20Bavaria,\x20Germany\x20|\x20info@simo-online.com','[DNA\x203]\x20Lessons\x20Learned\x20pruefen:\x0a','docs/strategy/geschaeftsgrundsaetze.md','YJWbK','35zdcDvb','length','9411360UBjlxB','cwd','utf-8','hdmgr','\x20|\x20Bootstrap:\x20./bootstrap.sh','_template.md','join','docs/company/simo-gmbh-profil.md','[Workspace]\x20Config:\x20','IBXhJ','[DNA\x203]\x20NACH\x20Fix:\x20Root\x20Cause\x20in\x20docs/lessons-learned/\x20dokumentieren.','36216aJKcyQ','4918998WIXByA','[Strategie]\x20Gesetze\x201(Schmerz),3(Wahrnehmung),5(Werttausch)\x20beachten.\x0a','slice','/04_Schriftarten/Inter/\x20|\x20FA\x20Pro:\x20','[Firma]\x20','[Font-Pfade]\x20Uni\x20Neue:\x20','docs/lessons-learned','test','18625290CBPyeV','rrncE','QYmnv','udsoe','1580635FgzHOD','split','[CI]\x20Teal\x20#5EBFBF,\x20Dark\x20BG\x20#1A1A1A,\x20Uni\x20Neue\x20(Brand),\x20Inter\x20(App).\x20Fuer\x20Details:\x20simo-brand-guidelines\x20Skill\x20laden.','1832mqdutt','[Fonts]\x20SIMO_CI_ROOT\x20nicht\x20konfiguriert.','SGCPO','3774922JNTQDB','rfzGS','---\x20','/04_Schriftarten/fontawesome-pro-7.1.0-web/','[Strategie]\x20Gesetze\x201(Schmerz),3(Wahrnehmung),5(Werttausch)\x20beachten.','2227998SvfdeV','4fQUpqi','build','/02_SIMOSphere-AI/Logos/\x20|\x20SIMO:\x20','(SIMO_WORKSPACE_ROOT\x20nicht\x20gesetzt)','/02_SIMOSphere-AI/Favicon/'];_0x465e=function(){return _0x72eb51;};return _0x465e();}const _0xcb3340=_0x527b;function _0x527b(_0x54ece5,_0x1203fa){_0x54ece5=_0x54ece5-0x182;const _0x465eed=_0x465e();let _0x527bad=_0x465eed[_0x54ece5];return _0x527bad;}(function(_0x555b74,_0x426713){const _0x519656=_0x527b,_0x34f195=_0x555b74();while(!![]){try{const _0x23f424=-parseInt(_0x519656(0x189))/0x1+-parseInt(_0x519656(0x18f))/0x2+parseInt(_0x519656(0x1ac))/0x3+parseInt(_0x519656(0x195))/0x4*(parseInt(_0x519656(0x1a0))/0x5)+parseInt(_0x519656(0x194))/0x6*(parseInt(_0x519656(0x19e))/0x7)+-parseInt(_0x519656(0x18c))/0x8*(-parseInt(_0x519656(0x1ab))/0x9)+-parseInt(_0x519656(0x185))/0xa;if(_0x23f424===_0x426713)break;else _0x34f195['push'](_0x34f195['shift']());}catch(_0x49d28c){_0x34f195['push'](_0x34f195['shift']());}}}(_0x465e,0xecb02));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':_0x4514ab=>{const _0x5cb196=_0x527b,_0x6a54f2={'rrncE':_0x5cb196(0x183),'uANsL':function(_0x187948,_0x33dce3){return _0x187948(_0x33dce3);},'IBXhJ':function(_0x431b8a,_0x246503){return _0x431b8a>_0x246503;},'rfzGS':_0x5cb196(0x1aa)},_0x56dc71=[];if(_0x4514ab[_0x5cb196(0x1a1)])try{const _0x11b125=join(_0x4514ab[_0x5cb196(0x1a1)],_0x6a54f2[_0x5cb196(0x186)]),_0x1b8f38=_0x6a54f2['uANsL'](readdirSync,_0x11b125)['filter'](_0xdbb31d=>_0xdbb31d['endsWith']('.md')&&_0x5cb196(0x1a5)!==_0xdbb31d);if(_0x6a54f2[_0x5cb196(0x1a9)](_0x1b8f38[_0x5cb196(0x19f)],0x0)){const _0x460f64=_0x1b8f38[_0x5cb196(0x1ae)](0x0,0x5)['map'](_0x489218=>_0x5cb196(0x191)+_0x489218+':\x20'+readFileSync(join(_0x11b125,_0x489218),_0x5cb196(0x1a2))[_0x5cb196(0x18a)]('\x0a')[_0x5cb196(0x1ae)](0x0,0x5)['join']('\x20')['trim']());_0x56dc71['push'](_0x5cb196(0x19b)+_0x460f64[_0x5cb196(0x1a6)]('\x0a'));}}catch{}return _0x56dc71['push'](_0x6a54f2[_0x5cb196(0x190)]),_0x56dc71[_0x5cb196(0x1a6)]('\x0a');}},{'pattern':/\b(design|ci|brand|farbe|color|theme|liquid.?glass|praesentation|marketing)\b/i,'build':()=>_0xcb3340(0x18b)},{'pattern':/\b(logo|favicon|icon|wordmark|svg)\b/i,'build':()=>{const _0x490fa1=_0xcb3340,_0x197b86={'udsoe':'[Logo]\x20SIMO_CI_ROOT\x20nicht\x20konfiguriert.\x20Setze\x20Env-Variable\x20fuer\x20Logo-Pfade.'},_0x30f131=process.env.SIMO_CI_ROOT||'';return _0x30f131?'[Logo-Pfade]\x20SIMOSphere:\x20'+_0x30f131+_0x490fa1(0x197)+_0x30f131+'/01_SIMO-GmbH/Logos/\x20|\x20Favicon:\x20'+_0x30f131+_0x490fa1(0x199):_0x197b86[_0x490fa1(0x188)];}},{'pattern':/\b(pricing|preis|angebot|pitch|proposal|kunde|customer|vertrieb|sales)\b/i,'build':_0x4f9f93=>{const _0x224d48=_0xcb3340,_0x315764={'hdmgr':function(_0x390ee2,_0x3c80e2,_0x439807){return _0x390ee2(_0x3c80e2,_0x439807);},'EaxOi':_0x224d48(0x19c),'QYmnv':function(_0x493429,_0x22bbd3){return _0x493429(_0x22bbd3);},'etcPt':function(_0xfb4e65,_0x532683,_0x5b3412){return _0xfb4e65(_0x532683,_0x5b3412);},'kOTNU':_0x224d48(0x193)};if(_0x4f9f93[_0x224d48(0x1a1)]){const _0x3e3efb=_0x315764[_0x224d48(0x1a3)](join,_0x4f9f93[_0x224d48(0x1a1)],_0x315764['EaxOi']);if(_0x315764[_0x224d48(0x187)](existsSync,_0x3e3efb))return _0x224d48(0x1ad)+_0x315764['etcPt'](readFileSync,_0x3e3efb,'utf-8')[_0x224d48(0x18a)]('\x0a')[_0x224d48(0x1ae)](0x0,0x28)[_0x224d48(0x1a6)]('\x0a');}return _0x315764['kOTNU'];}},{'pattern':/\b(firma|impressum|vertrag|contract|legal|handelsregister|steuernummer|geschaeftsfuehr)\b/i,'build':_0x76ca51=>{const _0x54e822=_0xcb3340,_0x3ecff4={'YJWbK':function(_0x5ecf72,_0xf24372,_0x12c8ac){return _0x5ecf72(_0xf24372,_0x12c8ac);},'SGCPO':'utf-8','GXdHN':_0x54e822(0x19a)};if(_0x76ca51['cwd']){const _0x4a84e2=join(_0x76ca51['cwd'],_0x54e822(0x1a7));if(existsSync(_0x4a84e2))return _0x54e822(0x1b0)+_0x3ecff4[_0x54e822(0x19d)](readFileSync,_0x4a84e2,_0x3ecff4[_0x54e822(0x18e)]);}return _0x3ecff4['GXdHN'];}},{'pattern':/\b(setup|init|bootstrap|template|neues.?projekt|new.?project)\b/i,'build':()=>_0xcb3340(0x1a8)+(process.env.SIMO_WORKSPACE_ROOT||''||_0xcb3340(0x198))+_0xcb3340(0x1a4)},{'pattern':/\b(font|schrift|typo|woff|otf|uni.?neue|inter.?display)\b/i,'build':()=>{const _0x7ffad=_0xcb3340,_0x5b4533=process.env.SIMO_CI_ROOT||'';return _0x5b4533?_0x7ffad(0x182)+_0x5b4533+'/04_Schriftarten/Uni\x20Neue-Desktop/\x20|\x20Inter:\x20'+_0x5b4533+_0x7ffad(0x1af)+_0x5b4533+_0x7ffad(0x192):_0x7ffad(0x18d);}}];export function buildSmartContext(_0x9d5c0e){const _0x1d6ba4=_0xcb3340,_0x1b8120=[];for(const _0x45f26c of keywordRules)if(_0x45f26c['pattern'][_0x1d6ba4(0x184)](_0x9d5c0e['prompt'])){const _0x5b1ac3=_0x45f26c[_0x1d6ba4(0x196)](_0x9d5c0e);_0x5b1ac3&&_0x1b8120['push'](_0x5b1ac3);}return 0x0===_0x1b8120[_0x1d6ba4(0x19f)]?{}:{'additionalContext':_0x1b8120[_0x1d6ba4(0x1a6)]('\x0a')};}
|
package/dist/shared/license.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5ecc(_0x204c43,_0x2f5163){_0x204c43=_0x204c43-0x105;const _0x48a234=_0x48a2();let _0x5ecce7=_0x48a234[_0x204c43];return _0x5ecce7;}(function(_0x5c4b47,_0x5cbfc4){const _0x15c37c=_0x5ecc,_0x698706=_0x5c4b47();while(!![]){try{const _0x5f4113=parseInt(_0x15c37c(0x105))/0x1*(parseInt(_0x15c37c(0x10a))/0x2)+parseInt(_0x15c37c(0x10d))/0x3+-parseInt(_0x15c37c(0x108))/0x4+parseInt(_0x15c37c(0x107))/0x5+-parseInt(_0x15c37c(0x10f))/0x6*(-parseInt(_0x15c37c(0x109))/0x7)+parseInt(_0x15c37c(0x106))/0x8+-parseInt(_0x15c37c(0x10b))/0x9*(parseInt(_0x15c37c(0x10c))/0xa);if(_0x5f4113===_0x5cbfc4)break;else _0x698706['push'](_0x698706['shift']());}catch(_0x1001dd){_0x698706['push'](_0x698706['shift']());}}}(_0x48a2,0xe564d));const LICENSE_KEY_REGEX=/^tsu_lic_(free|pro|team|enterprise)_[a-f0-9]{32}$/;export function validateLicenseFormat(_0x42007f){const _0x34115f=_0x5ecc;return LICENSE_KEY_REGEX[_0x34115f(0x110)](_0x42007f);}export function parseLicenseKey(_0x519d45){const _0x3870f8=_0x5ecc,_0x3585c7=_0x519d45[_0x3870f8(0x10e)]('_');return{'tier':_0x3585c7[0x2],'hash':_0x3585c7[0x3]};}export function isLicenseExpired(_0xb35f0e){return new Date(_0xb35f0e)<new Date();}function _0x48a2(){const _0x502941=['710138EBnzfF','408141ILouAi','690BShXRr','3785835Tdvzoy','split','6723762NCKfvO','test','3toWomu','13885712YgFCYU','663955NBwXtV','4990424cZLrfq','7KxDZJU'];_0x48a2=function(){return _0x502941;};return _0x48a2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x41ae15,_0x534ca8){const _0x3234d1=_0x1585,_0x561ec2=_0x41ae15();while(!![]){try{const _0xe310e5=parseInt(_0x3234d1(0x1e2))/0x1+-parseInt(_0x3234d1(0x1e1))/0x2+-parseInt(_0x3234d1(0x1e0))/0x3+-parseInt(_0x3234d1(0x1de))/0x4+parseInt(_0x3234d1(0x1e3))/0x5+parseInt(_0x3234d1(0x1e4))/0x6*(-parseInt(_0x3234d1(0x1df))/0x7)+parseInt(_0x3234d1(0x1e7))/0x8;if(_0xe310e5===_0x534ca8)break;else _0x561ec2['push'](_0x561ec2['shift']());}catch(_0x25325d){_0x561ec2['push'](_0x561ec2['shift']());}}}(_0x226c,0x21397));import{encode}from'gpt-tokenizer';import{registerProvider}from'../token-provider.js';export function createClaudeProvider(_0x50380e){const _0x1913da={'ibfWV':function(_0x25db26,_0x3fcf4f){return _0x25db26*_0x3fcf4f;},'MmeVF':'claude'};return{'name':_0x1913da['MmeVF'],'countTokens':_0x436cb1=>_0x436cb1?encode(_0x436cb1)['length']:0x0,'estimateTokens'(_0x2c492c){const _0xf73d8c=_0x1585;if(!_0x2c492c)return 0x0;const _0x4ace1c=_0x2c492c['split'](/\s+/)[_0xf73d8c(0x1e6)](Boolean)[_0xf73d8c(0x1e5)];return Math[_0xf73d8c(0x1dc)](_0x1913da[_0xf73d8c(0x1dd)](1.4,_0x4ace1c));}};}function _0x1585(_0x1fe30f,_0x38354b){_0x1fe30f=_0x1fe30f-0x1dc;const _0x226ca9=_0x226c();let _0x15851d=_0x226ca9[_0x1fe30f];return _0x15851d;}function _0x226c(){const _0x47c8c8=['7ohmyRw','641640KOPvDx','250574sjjoiC','170234kDBINC','542775EKyaOx','840498PLYGvO','length','filter','3379104zwimrM','ceil','ibfWV','343360CNGhrC'];_0x226c=function(){return _0x47c8c8;};return _0x226c();}registerProvider('claude',createClaudeProvider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5d80ea=_0x3544;(function(_0x508a35,_0x1782f1){const _0x1578ec=_0x3544,_0x3e769e=_0x508a35();while(!![]){try{const _0x4ae2dd=-parseInt(_0x1578ec(0x158))/0x1*(parseInt(_0x1578ec(0x156))/0x2)+parseInt(_0x1578ec(0x154))/0x3+-parseInt(_0x1578ec(0x162))/0x4+-parseInt(_0x1578ec(0x157))/0x5*(parseInt(_0x1578ec(0x160))/0x6)+parseInt(_0x1578ec(0x155))/0x7+parseInt(_0x1578ec(0x159))/0x8*(-parseInt(_0x1578ec(0x15d))/0x9)+-parseInt(_0x1578ec(0x15f))/0xa*(-parseInt(_0x1578ec(0x15b))/0xb);if(_0x4ae2dd===_0x1782f1)break;else _0x3e769e['push'](_0x3e769e['shift']());}catch(_0x5be4bf){_0x3e769e['push'](_0x3e769e['shift']());}}}(_0x3f45,0xd5484));import{encode}from'gpt-tokenizer';function _0x3544(_0x432cd3,_0x2256ae){_0x432cd3=_0x432cd3-0x154;const _0x3f459a=_0x3f45();let _0x354457=_0x3f459a[_0x432cd3];return _0x354457;}import{registerProvider}from'../token-provider.js';function _0x3f45(){const _0x42320d=['40rkJOmD','6vtvmkA','ceil','6624312BRJyge','330717ehyDrP','2128021vkkfUE','275390XeOeUP','8475785asgdeD','1vabrQU','442128efpaKm','ESeQG','14809322nApcbg','openai','234eAUEwm','split'];_0x3f45=function(){return _0x42320d;};return _0x3f45();}export function createOpenAIProvider(_0x1bf014){const _0x2fde04=_0x3544,_0x133b06={'ESeQG':'openai'};return{'name':_0x133b06[_0x2fde04(0x15a)],'countTokens':_0x1f8674=>_0x1f8674?encode(_0x1f8674)['length']:0x0,'estimateTokens'(_0x498472){const _0x5db1be=_0x2fde04;if(!_0x498472)return 0x0;const _0x59bdbe=_0x498472[_0x5db1be(0x15e)](/\s+/)['filter'](Boolean)['length'];return Math[_0x5db1be(0x161)](1.3*_0x59bdbe);}};}registerProvider(_0x5d80ea(0x15c),createOpenAIProvider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x541c(){const _0x4b90ef=['5924310rPhosX','251336XGctFo','88IwQYTQ','69492RmMSNY','6371260paBCre','586614iGZkcm','184866GPmaVo','countTokens','1151302mXfDUu'];_0x541c=function(){return _0x4b90ef;};return _0x541c();}(function(_0x398c46,_0x1d5db8){const _0x4ee145=_0x5042,_0x460e7a=_0x398c46();while(!![]){try{const _0x4c94e3=-parseInt(_0x4ee145(0xa2))/0x1+parseInt(_0x4ee145(0x9f))/0x2+-parseInt(_0x4ee145(0xa0))/0x3*(-parseInt(_0x4ee145(0xa5))/0x4)+parseInt(_0x4ee145(0xa3))/0x5+-parseInt(_0x4ee145(0xa6))/0x6+-parseInt(_0x4ee145(0xa7))/0x7+-parseInt(_0x4ee145(0xa4))/0x8;if(_0x4c94e3===_0x1d5db8)break;else _0x460e7a['push'](_0x460e7a['shift']());}catch(_0x11ba31){_0x460e7a['push'](_0x460e7a['shift']());}}}(_0x541c,0xb211c));import'./providers/claude-provider.js';import{createTokenProvider}from'./token-provider.js';const defaultProvider=createTokenProvider('claude');export function countTokens(_0x37f209){const _0xab63d4=_0x5042;return defaultProvider[_0xab63d4(0xa1)](_0x37f209);}function _0x5042(_0x201e92,_0x3ba710){_0x201e92=_0x201e92-0x9f;const _0x541c88=_0x541c();let _0x5042d3=_0x541c88[_0x201e92];return _0x5042d3;}export function estimateTokens(_0x34c3d3){return defaultProvider['estimateTokens'](_0x34c3d3);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3d3aaa,_0xd41f28){const _0x1cb6ee=_0x4042,_0x2b1003=_0x3d3aaa();while(!![]){try{const _0x24b33c=parseInt(_0x1cb6ee(0xca))/0x1+parseInt(_0x1cb6ee(0xc9))/0x2*(-parseInt(_0x1cb6ee(0xc3))/0x3)+-parseInt(_0x1cb6ee(0xc0))/0x4+-parseInt(_0x1cb6ee(0xbc))/0x5*(parseInt(_0x1cb6ee(0xc7))/0x6)+parseInt(_0x1cb6ee(0xbe))/0x7*(-parseInt(_0x1cb6ee(0xc2))/0x8)+parseInt(_0x1cb6ee(0xc5))/0x9*(-parseInt(_0x1cb6ee(0xbb))/0xa)+-parseInt(_0x1cb6ee(0xc8))/0xb*(-parseInt(_0x1cb6ee(0xc1))/0xc);if(_0x24b33c===_0xd41f28)break;else _0x2b1003['push'](_0x2b1003['shift']());}catch(_0xe4a97a){_0x2b1003['push'](_0x2b1003['shift']());}}}(_0x5497,0x5851c));const registry=new Map();export function registerProvider(_0x5445c1,_0x57077c){const _0x13ca85=_0x4042;registry[_0x13ca85(0xc4)](_0x5445c1,_0x57077c);}function _0x5497(){const _0x467d84=['10EpyRxu','85wTklZi','from','1414DGnsTx','mZDJv','1045188sdCGsM','361572fykbxL','14304NpGMqk','3048hvexxU','set','667179TUdAfl','\x22.\x20Available\x20providers:\x20','214026EkpqrH','649UExOEd','882drJEIB','335094EpQhvz','keys','get','Unknown\x20provider:\x20\x22'];_0x5497=function(){return _0x467d84;};return _0x5497();}export function createTokenProvider(_0x54af9f='claude',_0x19ad38='claude-sonnet-4-20250514'){const _0x374929=_0x4042,_0x145836={'mZDJv':function(_0x8f3723,_0x5c1141){return _0x8f3723(_0x5c1141);}},_0x7ac969=registry[_0x374929(0xb9)](_0x54af9f);if(!_0x7ac969){const _0x3b4b9d=Array[_0x374929(0xbd)](registry[_0x374929(0xcb)]())['join'](',\x20');throw new Error(_0x374929(0xba)+_0x54af9f+_0x374929(0xc6)+_0x3b4b9d);}return _0x145836[_0x374929(0xbf)](_0x7ac969,_0x19ad38);}function _0x4042(_0x25eb6c,_0x46ad87){_0x25eb6c=_0x25eb6c-0xb9;const _0x54979f=_0x5497();let _0x404263=_0x54979f[_0x25eb6c];return _0x404263;}export function listProviders(){return Array['from'](registry['keys']());}
|