opencode-anthropic-fix 0.1.18 → 0.1.19

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 (2) hide show
  1. package/index.mjs +6 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2913,8 +2913,12 @@ export async function AnthropicAuthPlugin({ client, project, directory, worktree
2913
2913
  _adaptiveOverride,
2914
2914
  _tokenEconomy,
2915
2915
  );
2916
- // v2.1.107: cch attestation via xxHash64(body, seed) & 0xFFFFF
2917
- const finalBody = await computeAndReplaceCCH(body);
2916
+ // cch stays as the static "00000" placeholder — cc-107 and cc-108
2917
+ // JS bundles both emit `cch=00000;` unconditionally in the billing
2918
+ // header. The Bun-binary Attestation.zig xxHash64 mechanism lives in
2919
+ // a SEPARATE header path, not in this body field. Re-hashing here
2920
+ // mutates system[0] each turn, invalidating the prompt cache.
2921
+ const finalBody = body;
2918
2922
 
2919
2923
  // Opt-in: dump the OUTGOING body (post-cch) so diagnostics reflect
2920
2924
  // exactly what went on the wire. Previously dumped `body` which
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-anthropic-fix",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "main": "./index.mjs",
6
6
  "files": [