pi-magi-theme 0.1.0 → 0.1.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 CHANGED
@@ -4,6 +4,10 @@ A three-mind council theme + extension for [pi](https://pi.dev): a detailed Tree
4
4
 
5
5
  All artwork is original. The symbolism (the three Magi, the Tree of Life, the golem, the seven seals) is public domain.
6
6
 
7
+ ![pi with the MAGI theme: Tree of Life header, side panel with the MAGI triangle and llama-swap telemetry](https://raw.githubusercontent.com/b-iurea/pi-magi-theme/main/docs/screenshot.png)
8
+
9
+ ![The MAGI deliberating while the model thinks](https://raw.githubusercontent.com/b-iurea/pi-magi-theme/main/docs/deliberation.png)
10
+
7
11
  ## Install
8
12
 
9
13
  ```bash
@@ -800,9 +800,11 @@ class MagiPanel implements Component {
800
800
  ),
801
801
  );
802
802
  if (swap.srvPps) out.push(this.field("PROMPT/S", swap.srvPps.toFixed(1), inner, "muted"));
803
- if (swap.inputTokens) {
804
- const hit = Math.round((swap.cacheTokens / swap.inputTokens) * 100);
805
- out.push(this.field("KV CACHE", `${fmtTokens(swap.cacheTokens)}/${fmtTokens(swap.inputTokens)} hit ${hit}%`, inner, "muted"));
803
+ // llama-swap's input_tokens are the prompt tokens processed outside the cache
804
+ const promptTotal = swap.cacheTokens + swap.inputTokens;
805
+ if (promptTotal) {
806
+ const hit = Math.round((swap.cacheTokens / promptTotal) * 100);
807
+ out.push(this.field("KV CACHE", `${fmtTokens(swap.cacheTokens)}/${fmtTokens(promptTotal)} hit ${hit}%`, inner, "muted"));
806
808
  }
807
809
  out.push(this.field("PEAK", perf.peakTps ? `${perf.peakTps.toFixed(1)} tok/s` : "—", inner, "muted"));
808
810
  out.push(this.field("TTFT", perf.ttft ? fmtMs(perf.ttft) : "—", inner, "muted"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-magi-theme",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "MAGI theme + extension for pi: Tree of Life header, three-model /magi council, golem tool animations, seven-seal context gauge, llama-swap telemetry",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -29,6 +29,7 @@
29
29
  "LICENSE"
30
30
  ],
31
31
  "pi": {
32
+ "image": "https://raw.githubusercontent.com/b-iurea/pi-magi-theme/main/docs/screenshot.png",
32
33
  "extensions": [
33
34
  "./extensions/magi/index.ts"
34
35
  ],