mcp-context-optimizer 0.1.4 → 0.1.6
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 +127 -3
- package/dist/compact.d.ts +70 -0
- package/dist/compact.d.ts.map +1 -0
- package/dist/compact.js +174 -0
- package/dist/compact.js.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/optimizer.d.ts +7 -2
- package/dist/optimizer.d.ts.map +1 -1
- package/dist/optimizer.js +35 -5
- package/dist/optimizer.js.map +1 -1
- package/dist/render.d.ts +22 -3
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +21 -7
- package/dist/render.js.map +1 -1
- package/dist/score.d.ts +5 -0
- package/dist/score.d.ts.map +1 -1
- package/dist/score.js +13 -5
- package/dist/score.js.map +1 -1
- package/dist/select.d.ts +9 -0
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +103 -1
- package/dist/select.js.map +1 -1
- package/dist/types.d.ts +32 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -2
- package/skills/pro/bench/token-comparison.json +69 -0
- package/skills/pro/bench/token-savings.svg +67 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="600" height="400" viewBox="0 0 600 400">
|
|
2
|
+
<!-- Background -->
|
|
3
|
+
<rect width="100%" height="100%" fill="#0d1117"/>
|
|
4
|
+
|
|
5
|
+
<!-- Title -->
|
|
6
|
+
<text x="300" y="30" text-anchor="middle" fill="white" font-size="18" font-family="monospace">
|
|
7
|
+
Token Savings by Scenario
|
|
8
|
+
</text>
|
|
9
|
+
|
|
10
|
+
<!-- Axes -->
|
|
11
|
+
<line x1="60" y1="340" x2="560" y2="340" stroke="#555" stroke-width="2"/>
|
|
12
|
+
<line x1="60" y1="340" x2="60" y2="60" stroke="#555" stroke-width="2"/>
|
|
13
|
+
|
|
14
|
+
<!-- Labels -->
|
|
15
|
+
<text x="300" y="390" text-anchor="middle" fill="white" font-size="12" font-family="monospace">
|
|
16
|
+
Scenarios
|
|
17
|
+
</text>
|
|
18
|
+
<text x="20" y="200" text-anchor="middle" fill="white" font-size="12" font-family="monospace"
|
|
19
|
+
transform="rotate(-90 20,200)">
|
|
20
|
+
% Reduction
|
|
21
|
+
</text>
|
|
22
|
+
|
|
23
|
+
<!-- Bars -->
|
|
24
|
+
<!-- Debugging Session -->
|
|
25
|
+
<rect x="120" y="77" width="80" height="263" fill="#58a6ff"/>
|
|
26
|
+
<text x="160" y="67" text-anchor="middle" fill="white" font-size="12" font-family="monospace">94%</text>
|
|
27
|
+
<text x="160" y="365" text-anchor="middle" fill="white" font-size="12" font-family="monospace">
|
|
28
|
+
Debugging
|
|
29
|
+
</text>
|
|
30
|
+
|
|
31
|
+
<!-- Code Review -->
|
|
32
|
+
<rect x="320" y="264" width="80" height="76" fill="#7ee787"/>
|
|
33
|
+
<text x="360" y="254" text-anchor="middle" fill="white" font-size="12" font-family="monospace">27%</text>
|
|
34
|
+
<text x="360" y="365" text-anchor="middle" fill="white" font-size="12" font-family="monospace">
|
|
35
|
+
Code Review
|
|
36
|
+
</text>
|
|
37
|
+
|
|
38
|
+
<!-- Average -->
|
|
39
|
+
<rect x="480" y="204" width="80" height="136" fill="#ffa657"/>
|
|
40
|
+
<text x="520" y="210" text-anchor="middle" fill="white" font-size="12" font-family="monospace">42%</text>
|
|
41
|
+
<text x="520" y="365" text-anchor="middle" fill="white" font-size="12" font-family="monospace">
|
|
42
|
+
Average
|
|
43
|
+
</text>
|
|
44
|
+
|
|
45
|
+
<!-- Y-axis values -->
|
|
46
|
+
<text x="55" y="340" text-anchor="end" fill="white" font-size="10" font-family="monospace">0%</text>
|
|
47
|
+
<text x="55" y="290" text-anchor="end" fill="white" font-size="10" font-family="monospace">20%</text>
|
|
48
|
+
<text x="55" y="240" text-anchor="end" fill="white" font-size="10" font-family="monospace">40%</text>
|
|
49
|
+
<text x="55" y="190" text-anchor="end" fill="white" font-size="10" font-family="monospace">60%</text>
|
|
50
|
+
<text x="55" y="140" text-anchor="end" fill="white" font-size="10" font-family="monospace">80%</text>
|
|
51
|
+
<text x="55" y="90" text-anchor="end" fill="white" font-size="10" font-family="monospace">100%</text>
|
|
52
|
+
|
|
53
|
+
<!-- Grid lines -->
|
|
54
|
+
<line x1="60" y1="290" x2="560" y2="290" stroke="#21262d" stroke-width="1" stroke-dasharray="4"/>
|
|
55
|
+
<line x1="60" y1="240" x2="560" y2="240" stroke="#21262d" stroke-width="1" stroke-dasharray="4"/>
|
|
56
|
+
<line x1="60" y1="190" x2="560" y2="190" stroke="#21262d" stroke-width="1" stroke-dasharray="4"/>
|
|
57
|
+
<line x1="60" y1="140" x2="560" y2="140" stroke="#21262d" stroke-width="1" stroke-dasharray="4"/>
|
|
58
|
+
|
|
59
|
+
<!-- Legend -->
|
|
60
|
+
<rect x="400" y="280" width="140" height="50" fill="#161b22" stroke="#30363d" rx="4"/>
|
|
61
|
+
<rect x="410" y="295" width="12" height="12" fill="#58a6ff"/>
|
|
62
|
+
<text x="430" y="305" fill="white" font-size="12" font-family="monospace">Debugging</text>
|
|
63
|
+
<rect x="410" y="315" width="12" height="12" fill="#7ee787"/>
|
|
64
|
+
<text x="430" y="325" fill="white" font-size="12" font-family="monospace">Code Review</text>
|
|
65
|
+
<rect x="410" y="335" width="12" height="12" fill="#ffa657"/>
|
|
66
|
+
<text x="430" y="345" fill="white" font-size="12" font-family="monospace">Average</text>
|
|
67
|
+
</svg>
|