token-goat 2.8.3 → 2.8.6

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.
@@ -25,7 +25,7 @@ import {
25
25
  runSkeleton,
26
26
  runSymbol,
27
27
  withPinnedReads
28
- } from "./token-goat-chunk-TX4JFJTD.mjs";
28
+ } from "./token-goat-chunk-XAWIELXH.mjs";
29
29
  import {
30
30
  buildProjectMap,
31
31
  embeddingsDepsAvailable,
@@ -34,7 +34,7 @@ import {
34
34
  getProjectIndexCounts,
35
35
  isWorkerRunning,
36
36
  mapLookupBytesSaved
37
- } from "./token-goat-chunk-PWVXXPCC.mjs";
37
+ } from "./token-goat-chunk-DK4VLLYB.mjs";
38
38
  import {
39
39
  VERSION,
40
40
  dataDir,
@@ -44,8 +44,9 @@ import {
44
44
  loadConfig,
45
45
  normalizePath,
46
46
  recordStat,
47
- resolveProjectRoot
48
- } from "./token-goat-chunk-6ODZ6PZK.mjs";
47
+ resolveProjectRoot,
48
+ savedTokensFromBytes
49
+ } from "./token-goat-chunk-2JZ66BBE.mjs";
49
50
  import "./token-goat-chunk-AO2QD2AG.mjs";
50
51
  import "./token-goat-chunk-AEX54RUZ.mjs";
51
52
 
@@ -533,7 +534,7 @@ async function createMcpServer() {
533
534
  const map = buildProjectMap(resolveToolRoot(projectRoot), { compact: compact === true });
534
535
  const text = formatProjectMap(map, map.compact);
535
536
  const bytesSaved = mapLookupBytesSaved(map, text);
536
- recordStat("map_lookup", bytesSaved, Math.round(bytesSaved / 4));
537
+ recordStat("map_lookup", bytesSaved, savedTokensFromBytes(bytesSaved));
537
538
  return toCallToolResult({ text, code: 0 });
538
539
  }
539
540
  );
@@ -2,11 +2,11 @@ import { createRequire as __cjsRequire } from 'node:module';
2
2
  const require = __cjsRequire(import.meta.url);
3
3
  import {
4
4
  relayInProcess
5
- } from "./token-goat-chunk-NKNCHJ4H.mjs";
6
- import "./token-goat-chunk-4HIMCBYK.mjs";
7
- import "./token-goat-chunk-PWVXXPCC.mjs";
8
- import "./token-goat-chunk-EFF2XCLB.mjs";
9
- import "./token-goat-chunk-6ODZ6PZK.mjs";
5
+ } from "./token-goat-chunk-MA5237JN.mjs";
6
+ import "./token-goat-chunk-TELKICYU.mjs";
7
+ import "./token-goat-chunk-DK4VLLYB.mjs";
8
+ import "./token-goat-chunk-GUNYAGOZ.mjs";
9
+ import "./token-goat-chunk-2JZ66BBE.mjs";
10
10
  import "./token-goat-chunk-AO2QD2AG.mjs";
11
11
  import "./token-goat-chunk-AEX54RUZ.mjs";
12
12
  export {
@@ -2,13 +2,13 @@ import { createRequire as __cjsRequire } from 'node:module';
2
2
  const require = __cjsRequire(import.meta.url);
3
3
  import {
4
4
  run
5
- } from "./token-goat-chunk-222VPFP2.mjs";
6
- import "./token-goat-chunk-TX4JFJTD.mjs";
7
- import "./token-goat-chunk-4HIMCBYK.mjs";
8
- import "./token-goat-chunk-PWVXXPCC.mjs";
5
+ } from "./token-goat-chunk-U7M2LTGP.mjs";
6
+ import "./token-goat-chunk-XAWIELXH.mjs";
7
+ import "./token-goat-chunk-TELKICYU.mjs";
8
+ import "./token-goat-chunk-DK4VLLYB.mjs";
9
9
  import {
10
10
  installEpipeGuard
11
- } from "./token-goat-chunk-6ODZ6PZK.mjs";
11
+ } from "./token-goat-chunk-2JZ66BBE.mjs";
12
12
  import "./token-goat-chunk-AO2QD2AG.mjs";
13
13
  import "./token-goat-chunk-AEX54RUZ.mjs";
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "token-goat",
3
- "version": "2.8.3",
3
+ "version": "2.8.6",
4
4
  "description": "Surgical token-reduction companion for Claude Code and other AI coding agents",
5
5
  "type": "module",
6
6
  "main": "./dist/token-goat.mjs",
@@ -31,6 +31,8 @@
31
31
  "typecheck:vscode-extension:tests": "npm --prefix vscode-extension run typecheck:tests",
32
32
  "dev": "tsx src/main.ts",
33
33
  "prepare": "node scripts/install-git-hooks.mjs",
34
+ "parser:fingerprint": "node scripts/parser-fingerprint.mjs",
35
+ "parser:fingerprint:check": "node scripts/parser-fingerprint.mjs --check",
34
36
  "schema:copilot": "node scripts/extract_harness_schema.mjs auto --harness copilot_cli --out schemas/copilot_cli.hooks.json",
35
37
  "schema:copilot:check": "node scripts/extract_harness_schema.mjs auto --harness copilot_cli --out schemas/copilot_cli.hooks.json --check"
36
38
  },