kompactor 0.8.3__tar.gz → 0.8.4__tar.gz

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.
Files changed (43) hide show
  1. {kompactor-0.8.3 → kompactor-0.8.4}/PKG-INFO +3 -3
  2. {kompactor-0.8.3 → kompactor-0.8.4}/README.md +2 -2
  3. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/__init__.py +1 -1
  4. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/cli.py +2 -1
  5. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/static/usage.html +1 -1
  6. kompactor-0.8.3/kompactor/vsix/kompactor-0.8.3.vsix → kompactor-0.8.4/kompactor/vsix/kompactor-0.8.4.vsix +0 -0
  7. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor.egg-info/PKG-INFO +3 -3
  8. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor.egg-info/SOURCES.txt +1 -1
  9. {kompactor-0.8.3 → kompactor-0.8.4}/pyproject.toml +1 -1
  10. {kompactor-0.8.3 → kompactor-0.8.4}/LICENSE +0 -0
  11. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/__main__.py +0 -0
  12. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/_launch.py +0 -0
  13. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/config.py +0 -0
  14. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/estimate.py +0 -0
  15. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/filters.py +0 -0
  16. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/graph.py +0 -0
  17. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/hooks.py +0 -0
  18. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/installer.py +0 -0
  19. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/langs.py +0 -0
  20. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/outline.py +0 -0
  21. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/prove.py +0 -0
  22. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/rules.py +0 -0
  23. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/samples.py +0 -0
  24. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/server.py +0 -0
  25. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/shellwrap.py +0 -0
  26. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/static/fonts/OFL.txt +0 -0
  27. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/static/fonts/plex-mono-400.woff2 +0 -0
  28. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/static/fonts/plex-mono-500.woff2 +0 -0
  29. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/static/fonts/plex-sans-400.woff2 +0 -0
  30. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/static/fonts/plex-sans-500.woff2 +0 -0
  31. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/static/fonts/plex-sans-600.woff2 +0 -0
  32. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/static/logo-mark.svg +0 -0
  33. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/store.py +0 -0
  34. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/tokens.py +0 -0
  35. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor/ui.html +0 -0
  36. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor.egg-info/dependency_links.txt +0 -0
  37. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor.egg-info/entry_points.txt +0 -0
  38. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor.egg-info/requires.txt +0 -0
  39. {kompactor-0.8.3 → kompactor-0.8.4}/kompactor.egg-info/top_level.txt +0 -0
  40. {kompactor-0.8.3 → kompactor-0.8.4}/setup.cfg +0 -0
  41. {kompactor-0.8.3 → kompactor-0.8.4}/tests/test_graph.py +0 -0
  42. {kompactor-0.8.3 → kompactor-0.8.4}/tests/test_kompactor.py +0 -0
  43. {kompactor-0.8.3 → kompactor-0.8.4}/tests/test_shell.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kompactor
3
- Version: 0.8.3
3
+ Version: 0.8.4
4
4
  Summary: Cut the tokens Claude Code spends on noise: compacted command output (failing runs included), outline-first reads, a local code graph, and per-turn savings.
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://github.com/amarkum/kompactor
@@ -123,7 +123,7 @@ kompactor start
123
123
  ```
124
124
  If your shell says `kompactor: command not found` (pip put the command in a folder that isn't on your PATH), run `python3 -m kompactor start` once. It links `kompactor` into a folder that is already on your PATH, such as `~/.local/bin`, so the command works in every terminal from then on.
125
125
 
126
- **VS Code and Cursor.** `kompactor start` adds the Kompactor extension to VS Code and Cursor automatically when they're installed (skip it with `--no-editor`); reload the window and a **Kompactor** icon appears in the activity bar. To install it by hand, download `kompactor-0.8.3.vsix` from [Releases](https://github.com/amarkum/kompactor/releases) and use Extensions › `⋯` › *Install from VSIX…*.
126
+ **VS Code and Cursor.** `kompactor start` adds the Kompactor extension to VS Code and Cursor automatically when they're installed (skip it with `--no-editor`); reload the window and a **Kompactor** icon appears in the activity bar. To install it by hand, download `kompactor-0.8.4.vsix` from [Releases](https://github.com/amarkum/kompactor/releases) and use Extensions › `⋯` › *Install from VSIX…*.
127
127
 
128
128
  **From source:**
129
129
  ```bash
@@ -136,7 +136,7 @@ git clone https://github.com/amarkum/kompactor.git && ./kompactor/install.sh
136
136
  2. **Work as usual.** You don't call Kompactor; it acts on Claude's tool calls by itself. After each reply you'll see a line like `Kompactor: −8.2k tokens this turn`, and the status line shows the running total.
137
137
  3. **Check it's on:** run `kompactor` in a terminal (or `/kompactor` in Claude Code):
138
138
  ```
139
- Kompactor 0.8.3 is on
139
+ Kompactor 0.8.4 is on
140
140
 
141
141
  Claude Code connected
142
142
  Level Balanced (3 of 5)
@@ -90,7 +90,7 @@ kompactor start
90
90
  ```
91
91
  If your shell says `kompactor: command not found` (pip put the command in a folder that isn't on your PATH), run `python3 -m kompactor start` once. It links `kompactor` into a folder that is already on your PATH, such as `~/.local/bin`, so the command works in every terminal from then on.
92
92
 
93
- **VS Code and Cursor.** `kompactor start` adds the Kompactor extension to VS Code and Cursor automatically when they're installed (skip it with `--no-editor`); reload the window and a **Kompactor** icon appears in the activity bar. To install it by hand, download `kompactor-0.8.3.vsix` from [Releases](https://github.com/amarkum/kompactor/releases) and use Extensions › `⋯` › *Install from VSIX…*.
93
+ **VS Code and Cursor.** `kompactor start` adds the Kompactor extension to VS Code and Cursor automatically when they're installed (skip it with `--no-editor`); reload the window and a **Kompactor** icon appears in the activity bar. To install it by hand, download `kompactor-0.8.4.vsix` from [Releases](https://github.com/amarkum/kompactor/releases) and use Extensions › `⋯` › *Install from VSIX…*.
94
94
 
95
95
  **From source:**
96
96
  ```bash
@@ -103,7 +103,7 @@ git clone https://github.com/amarkum/kompactor.git && ./kompactor/install.sh
103
103
  2. **Work as usual.** You don't call Kompactor; it acts on Claude's tool calls by itself. After each reply you'll see a line like `Kompactor: −8.2k tokens this turn`, and the status line shows the running total.
104
104
  3. **Check it's on:** run `kompactor` in a terminal (or `/kompactor` in Claude Code):
105
105
  ```
106
- Kompactor 0.8.3 is on
106
+ Kompactor 0.8.4 is on
107
107
 
108
108
  Claude Code connected
109
109
  Level Balanced (3 of 5)
@@ -1,3 +1,3 @@
1
1
  """Kompactor: cut the tokens Claude Code spends on noise."""
2
2
 
3
- __version__ = "0.8.3"
3
+ __version__ = "0.8.4"
@@ -201,7 +201,8 @@ def cmd_status(a):
201
201
  with store.connect() as db:
202
202
  raw, kept, n = db.execute("SELECT COALESCE(SUM(raw_tokens),0), COALESCE(SUM(kept_tokens),0), COUNT(*) "
203
203
  "FROM events").fetchone()
204
- saved = f"{_fmt(raw - kept)} tokens ({_pct(raw - kept, raw)}) in {n} tool calls" if n else "nothing yet"
204
+ saved = (f"{_fmt(raw - kept)} tokens (−{100 * (raw - kept) / raw:.0f}%) in {n} tool call{'s' if n != 1 else ''}"
205
+ if n and raw else "nothing yet")
205
206
  d = _dashboard()
206
207
  print(f"""Kompactor {__version__} is {state}
207
208
 
@@ -139,7 +139,7 @@ svg.chev { width: 11px; height: 11px; stroke: var(--ink-3); fill: none; stroke-w
139
139
  <pre><code>pipx install kompactor
140
140
  kompactor start</code></pre></div>
141
141
  <div class="card"><b>VS Code</b><span class="muted">Download the extension file from the repo's Releases page, then click <b>Enable</b> when Kompactor asks.</span>
142
- <pre><code>code --install-extension kompactor-0.8.3.vsix</code></pre></div>
142
+ <pre><code>code --install-extension kompactor-0.8.4.vsix</code></pre></div>
143
143
  </div>
144
144
  <p class="muted">Windows: run <code>.\kompactor\install.ps1</code> from a clone, or use the VS Code extension. The CLI and the VS Code extension read the same <code>~/.claude/settings.json</code>, so one install covers both. A backup of that file is kept as <code>settings.json.kompactor-backup</code>.</p>
145
145
  <p class="muted"><code>kompactor start</code> adds hooks, a status line (if you don't have one) and, on macOS and Linux, Claude Code's <code>CLAUDE_CODE_SHELL_PREFIX</code> setting pointing at <code>~/.kompactor/bin/kompactor-shell</code>, which is what lets Kompactor compact failing commands. It never replaces a status line or shell prefix you already have. Restart open Claude Code sessions after setup.</p>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kompactor
3
- Version: 0.8.3
3
+ Version: 0.8.4
4
4
  Summary: Cut the tokens Claude Code spends on noise: compacted command output (failing runs included), outline-first reads, a local code graph, and per-turn savings.
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://github.com/amarkum/kompactor
@@ -123,7 +123,7 @@ kompactor start
123
123
  ```
124
124
  If your shell says `kompactor: command not found` (pip put the command in a folder that isn't on your PATH), run `python3 -m kompactor start` once. It links `kompactor` into a folder that is already on your PATH, such as `~/.local/bin`, so the command works in every terminal from then on.
125
125
 
126
- **VS Code and Cursor.** `kompactor start` adds the Kompactor extension to VS Code and Cursor automatically when they're installed (skip it with `--no-editor`); reload the window and a **Kompactor** icon appears in the activity bar. To install it by hand, download `kompactor-0.8.3.vsix` from [Releases](https://github.com/amarkum/kompactor/releases) and use Extensions › `⋯` › *Install from VSIX…*.
126
+ **VS Code and Cursor.** `kompactor start` adds the Kompactor extension to VS Code and Cursor automatically when they're installed (skip it with `--no-editor`); reload the window and a **Kompactor** icon appears in the activity bar. To install it by hand, download `kompactor-0.8.4.vsix` from [Releases](https://github.com/amarkum/kompactor/releases) and use Extensions › `⋯` › *Install from VSIX…*.
127
127
 
128
128
  **From source:**
129
129
  ```bash
@@ -136,7 +136,7 @@ git clone https://github.com/amarkum/kompactor.git && ./kompactor/install.sh
136
136
  2. **Work as usual.** You don't call Kompactor; it acts on Claude's tool calls by itself. After each reply you'll see a line like `Kompactor: −8.2k tokens this turn`, and the status line shows the running total.
137
137
  3. **Check it's on:** run `kompactor` in a terminal (or `/kompactor` in Claude Code):
138
138
  ```
139
- Kompactor 0.8.3 is on
139
+ Kompactor 0.8.4 is on
140
140
 
141
141
  Claude Code connected
142
142
  Level Balanced (3 of 5)
@@ -35,7 +35,7 @@ kompactor/static/fonts/plex-mono-500.woff2
35
35
  kompactor/static/fonts/plex-sans-400.woff2
36
36
  kompactor/static/fonts/plex-sans-500.woff2
37
37
  kompactor/static/fonts/plex-sans-600.woff2
38
- kompactor/vsix/kompactor-0.8.3.vsix
38
+ kompactor/vsix/kompactor-0.8.4.vsix
39
39
  tests/test_graph.py
40
40
  tests/test_kompactor.py
41
41
  tests/test_shell.py
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "kompactor"
7
- version = "0.8.3"
7
+ version = "0.8.4"
8
8
  description = "Cut the tokens Claude Code spends on noise: compacted command output (failing runs included), outline-first reads, a local code graph, and per-turn savings."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes