@sliday/tamp 0.3.7 → 0.3.8
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/index.js +7 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -105,6 +105,13 @@ function pipeRequest(req, res, upstreamUrl, prefixChunks) {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
return http.createServer(async (req, res) => {
|
|
108
|
+
// Health check endpoint
|
|
109
|
+
if (req.url === '/health' && (req.method === 'GET' || req.method === 'HEAD')) {
|
|
110
|
+
const body = JSON.stringify({ status: 'ok', version: config.version || '0.3.7', stages: config.stages })
|
|
111
|
+
res.writeHead(200, { 'Content-Type': 'application/json', 'Content-Length': Buffer.byteLength(body) })
|
|
112
|
+
return res.end(req.method === 'HEAD' ? undefined : body)
|
|
113
|
+
}
|
|
114
|
+
|
|
108
115
|
const provider = detectProvider(req.method, req.url)
|
|
109
116
|
|
|
110
117
|
if (!provider) {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"providers.js",
|
|
10
10
|
"stats.js"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.3.
|
|
12
|
+
"version": "0.3.8",
|
|
13
13
|
"description": "Token compression proxy for coding agents. Works with Claude Code, Aider, Cursor, Cline, Windsurf. 52.6% fewer input tokens.",
|
|
14
14
|
"type": "module",
|
|
15
15
|
"main": "index.js",
|