@sliday/tamp 0.2.11 → 0.2.12

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/compress.js +3 -1
  2. package/package.json +1 -1
package/compress.js CHANGED
@@ -72,10 +72,12 @@ export async function compressRequest(body, config, provider) {
72
72
  if (result) {
73
73
  target.compressed = result.text
74
74
  stats.push({ index: target.index, ...result })
75
+ } else {
76
+ stats.push({ index: target.index, skipped: 'not-compressible' })
75
77
  }
76
78
  }
77
79
  provider.apply(body, targets)
78
- return { body, stats }
80
+ return { body, stats, targetCount: targets.length }
79
81
  }
80
82
 
81
83
  export async function compressMessages(body, config) {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "providers.js",
10
10
  "stats.js"
11
11
  ],
12
- "version": "0.2.11",
12
+ "version": "0.2.12",
13
13
  "description": "Token compression proxy for coding agents. Works with Claude Code, Aider, Cursor, Cline, Windsurf. 33.9% fewer input tokens.",
14
14
  "type": "module",
15
15
  "main": "index.js",