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 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, choose **Finish setup** on that agent. Token Harness prepares the
37
- recommended **RTK + HarnessTrim** baseline and shows the exact safe plan before anything changes.
38
- 4. The **Optimizers** section keeps the recommended baseline separate from optional tools
39
- (mcptoon, GitNexus and Headroom). When a tool needs an action, that action appears on the same
40
- card as the status it refers to.
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** when you
43
- want to inspect provider versions. If a reviewed update is available, the same dialog offers
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 already-installed 1.6.12; license review required |
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
- Provider **package updates are separate from harness configuration writes**. `token-harness update`
176
- can replace a reviewed provider target without requiring an exact historical Claude/Codex fixture
177
- for that package version; exact compatibility rows still gate any later managed agent-config
178
- mutation. HarnessTrim updates use its reviewed npm channel and capture the previous global version
179
- for rollback. On native Windows RTK still prefers WinGet, but when that catalog is behind the
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
- Provider checks and reviewed updates are in **Overview -> Health and updates**. The browser first
365
- checks reviewed channels and, when an installable update exists, offers **Install updates** in the
366
- same dialog. From the advanced CLI, the preview prints the exact confirmation command:
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` replaces only installed providers whose target is inside the reviewed provider-package
374
- policy. HarnessTrim uses npm and captures the previous global version for rollback. On native
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "token-harness",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Quota-aware efficiency layer for Claude Code and Codex subscription limits.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/sbom.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "bomFormat": "CycloneDX",
3
3
  "specVersion": "1.5",
4
- "serialNumber": "urn:uuid:acbec121-baa9-de33-8ab5-e5e88efbd50e",
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.17",
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": "acbec121baa9de338ab5e5e88efbd50e5c4b3f0a1f2c6f7171f80dd05b12f312"
23
+ "content": "0d790b93b9cd0e278c120d92f199436f627f655e6fabae97fc7f805d4299bad6"
24
24
  }
25
25
  ]
26
26
  },