token-harness 0.1.17 → 0.1.18
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 +25 -18
- package/package.json +1 -1
- package/sbom.json +3 -3
- package/token-harness.mjs +2401 -731
package/README.md
CHANGED
|
@@ -33,14 +33,15 @@ The first screen is **Overview**. There is no separate Setup page to learn.
|
|
|
33
33
|
|
|
34
34
|
1. Token Harness detects Claude Code and Codex.
|
|
35
35
|
2. Each detected coding agent says either **Ready** or **Setup incomplete**.
|
|
36
|
-
3. If setup is incomplete,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
3. If setup is incomplete, use the **Optimizer setup** matrix. It shows every optimizer against
|
|
37
|
+
every detected agent and lets you select one harness or both in the same review. The recommended
|
|
38
|
+
**RTK + HarnessTrim** baseline has its own action in that matrix and shows the exact safe plan
|
|
39
|
+
before anything changes.
|
|
40
|
+
4. Optional optimizers (mcptoon, GitNexus and Headroom) use the same matrix and per-optimizer action;
|
|
41
|
+
there is no repeated setup button under each coding-agent card.
|
|
41
42
|
5. **Health and updates** is maintenance, not another onboarding checklist. Normal setup performs its
|
|
42
|
-
own safety checks. Use **Re-check health** for troubleshooting and **Check for updates**
|
|
43
|
-
|
|
43
|
+
own safety checks. Use **Re-check health** for troubleshooting and **Check for updates** to inspect
|
|
44
|
+
Token Harness and optimizer versions. If an update is available, the same dialog offers
|
|
44
45
|
**Install updates** after showing the versions.
|
|
45
46
|
6. Keep using Claude Code or Codex normally. Open **Results** when you want detailed evidence.
|
|
46
47
|
|
|
@@ -160,7 +161,7 @@ algorithms into this repository.
|
|
|
160
161
|
| [RTK](https://github.com/rtk-ai/rtk) | Shell/tool output reduction | Managed on reviewed combinations |
|
|
161
162
|
| [HarnessTrim](https://github.com/giuliastro/HarnessTrim) | Deterministic output/context reduction | Managed first-party integration |
|
|
162
163
|
| mcptoon | MCP discovery / compact manifest guidance | Optional managed integration on exact reviewed 0.7.10 rows; no savings assumed |
|
|
163
|
-
| GitNexus | Repository graph / MCP context | Optional managed Claude integration for
|
|
164
|
+
| GitNexus | Repository graph / MCP context | Optional managed Claude/Codex integration for reviewed 1.6.12; license review required |
|
|
164
165
|
| Headroom | Local MCP context compression/retrieval | Optional config-only managed Claude/Codex integration for already-installed 0.37.0; package prerequisite stays user-owned |
|
|
165
166
|
| [cclimits](https://github.com/cruzanstx/cclimits) | Optional Claude allowance evidence | Read-only evidence; not an optimizer |
|
|
166
167
|
| [ccusage](https://github.com/ccusage/ccusage) | Local usage history | Read-only evidence; never subscription quota |
|
|
@@ -172,11 +173,12 @@ be accepted without another hard-coded version bump when their executable versio
|
|
|
172
173
|
machine-readable `capabilities` version and the semantic surface/write-set comparison reports no
|
|
173
174
|
drift.
|
|
174
175
|
|
|
175
|
-
|
|
176
|
-
can
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
176
|
+
Token Harness and provider **package updates are separate from harness configuration writes**.
|
|
177
|
+
`token-harness update` can update the app when it is running from its verified global npm
|
|
178
|
+
installation, and can replace a reviewed provider target without requiring an exact historical
|
|
179
|
+
Claude/Codex fixture for that package version; exact compatibility rows still gate any later
|
|
180
|
+
managed agent-config mutation. HarnessTrim updates use its reviewed npm channel and capture the
|
|
181
|
+
previous global version for rollback. On native Windows RTK still prefers WinGet, but when that catalog is behind the
|
|
180
182
|
reviewed 0.49.0 target Token Harness can fall back to the exact official GitHub Windows x64 release:
|
|
181
183
|
it verifies GitHub's published SHA-256, replaces only the uniquely resolved `rtk.exe`, verifies the
|
|
182
184
|
new version, and restores and re-verifies the previous bytes on failure. This package-only fallback
|
|
@@ -361,17 +363,22 @@ Update Token Harness itself:
|
|
|
361
363
|
npm install --global token-harness@latest
|
|
362
364
|
```
|
|
363
365
|
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
366
|
+
Token Harness and optimizer checks are in **Overview -> Health and updates**. The browser checks
|
|
367
|
+
the app's npm installation and the reviewed optimizer channels. When an installable update exists,
|
|
368
|
+
it offers **Install updates** in the same dialog. After updating Token Harness from the browser,
|
|
369
|
+
restart the app to load the new version. From the advanced CLI, the preview prints the exact
|
|
370
|
+
confirmation command:
|
|
367
371
|
|
|
368
372
|
```sh
|
|
369
373
|
token-harness update
|
|
370
374
|
token-harness update --yes
|
|
371
375
|
```
|
|
372
376
|
|
|
373
|
-
`update`
|
|
374
|
-
|
|
377
|
+
`update` installs Token Harness itself only when the running copy matches its global npm package;
|
|
378
|
+
other install methods remain available through their original updater. Optimizer updates replace
|
|
379
|
+
only installed providers whose target is inside the reviewed provider-package policy. The npm
|
|
380
|
+
package inventory captures the previous Token Harness version for rollback. HarnessTrim uses npm
|
|
381
|
+
and captures the previous global version for rollback. On native
|
|
375
382
|
Windows RTK prefers WinGet; when WinGet cannot yet reach the reviewed target, Token Harness can use
|
|
376
383
|
the verified official GitHub Windows x64 release fallback described above. That fallback verifies the
|
|
377
384
|
published digest and post-update version and restores the previous executable on failure.
|
package/package.json
CHANGED
package/sbom.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bomFormat": "CycloneDX",
|
|
3
3
|
"specVersion": "1.5",
|
|
4
|
-
"serialNumber": "urn:uuid:
|
|
4
|
+
"serialNumber": "urn:uuid:0d790b93-b9cd-0e27-8c12-0d92f199436f",
|
|
5
5
|
"version": 1,
|
|
6
6
|
"metadata": {
|
|
7
7
|
"component": {
|
|
8
8
|
"type": "application",
|
|
9
9
|
"bom-ref": "token-harness",
|
|
10
10
|
"name": "token-harness",
|
|
11
|
-
"version": "0.1.
|
|
11
|
+
"version": "0.1.18",
|
|
12
12
|
"description": "Quota-aware efficiency layer for Claude Code and Codex subscription limits.",
|
|
13
13
|
"licenses": [
|
|
14
14
|
{
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"hashes": [
|
|
21
21
|
{
|
|
22
22
|
"alg": "SHA-256",
|
|
23
|
-
"content": "
|
|
23
|
+
"content": "0d790b93b9cd0e278c120d92f199436f627f655e6fabae97fc7f805d4299bad6"
|
|
24
24
|
}
|
|
25
25
|
]
|
|
26
26
|
},
|