@sliday/tamp 0.2.2 → 0.2.4

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/bin/tamp.js CHANGED
@@ -59,13 +59,13 @@ function printBanner(config) {
59
59
  }
60
60
 
61
61
  // --- Auto-start LLMLingua-2 sidecar if needed ---
62
- const needsSidecar = config.stages.includes('llmlingua') && !config.llmLinguaUrl
62
+ let { config: finalConfig, server: finalServer } = createProxy()
63
+
64
+ const needsSidecar = finalConfig.stages.includes('llmlingua') && !finalConfig.llmLinguaUrl
63
65
  const venvPython = join(root, 'sidecar', '.venv', 'bin', 'python')
64
66
  const serverPy = join(root, 'sidecar', 'server.py')
65
67
  const hasSidecar = existsSync(venvPython) && existsSync(serverPy)
66
68
 
67
- let { config: finalConfig, server: finalServer } = createProxy()
68
-
69
69
  if (needsSidecar && hasSidecar) {
70
70
  const sidecarPort = 8788
71
71
  process.env.TAMP_LLMLINGUA_URL = `http://localhost:${sidecarPort}`
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "providers.js",
10
10
  "stats.js"
11
11
  ],
12
- "version": "0.2.2",
12
+ "version": "0.2.4",
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",
package/providers.js CHANGED
@@ -51,10 +51,16 @@ const anthropic = {
51
51
  const openai = {
52
52
  name: 'openai',
53
53
  match(method, url) {
54
- return method === 'POST' && (url.startsWith('/v1/chat/completions') || url.startsWith('/chat/completions'))
54
+ return method === 'POST' && (
55
+ url.startsWith('/v1/chat/completions') ||
56
+ url.startsWith('/chat/completions') ||
57
+ url.startsWith('/v1/responses') ||
58
+ url.startsWith('/responses')
59
+ )
55
60
  },
56
61
  normalizeUrl(url) {
57
62
  if (url.startsWith('/chat/completions')) return '/v1' + url
63
+ if (url.startsWith('/responses')) return '/v1' + url
58
64
  return url
59
65
  },
60
66
  extract(body) {