Skip to content

v0.9.1

Latest

Choose a tag to compare

@sliday sliday released this 26 Nov 13:38
· 22 commits to main since this release
62e97ff

Hardening, multi-provider parity, ANSI & test-runner rewriters, and live cache telemetry

Fixed.

  • CLI & TUI: tamp -y no longer clobbers level=, TAMP_LEVEL, or TAMP_COMPRESSION_PRESET; interactive TUI now binds proxyConfig.host (127.0.0.1 loopback by default); Dashboard.js redacts query-string API keys; tamp status / tamp stop respect config-file TAMP_PORT and verify PID identity before SIGKILL.
  • Safe tokenizer: Shared safeCountTokens (lib/tokens.js) wired across compress.js, lib/bm25.js, and lib/px-render.js, eliminating raw tokenizer WASM traps/stalls on low-entropy payloads and reusing precomputed bm25-trim counts.
  • Compression & security: Verbatim-critical guard now covers textpress and foundation-models as well as llmlingua; fixed loopback SSRF check ([::1] allowed, 127.evil.com blocked); config-fingerprinted compressBlock cache; async tamp compress-config (textpress now runs); fixed strip-comments escaped backslashes and non-Python # stripping; 64 KB argv guard on foundation-models.
  • Proxy, br-cache & sidecar: HTTP/HTTPS keep-alive pooling, upstream abort on client disconnect, per-proxy sidecar probing using TAMP_LLMLINGUA_URL, separate parse vs compress error logging, incremental byte tracking in lib/br-cache.js, and FastAPI lifespan + threadpool inference in sidecar/server.py.

Added.

  • Multi-provider parity: Honor TAMP_UPSTREAM_CHATGPT; walk past trailing non-tool messages in OpenAI/Responses cacheSafe extraction; strip cache_control and include first user turn in conversationSeed; generalized lib/path-extract.js for OpenAI Chat, OpenAI Responses (Codex), Kimi, and Moonshot (read-diff & protected-tool attribution).
  • Rewriters & redaction: Linear-time ANSI escape stripping + 4 failure-preserving rewriters (vitest, node-test, go-test, pnpm-bun); OpenRouter, npm, PyPI, HuggingFace, Groq, and xAI secret patterns with idempotent masking.
  • Telemetry & batched staleness: TAMP_STALE_IMAGE_KEEP_RECENT, TAMP_STALE_INPUT_KEEP_RECENT, TAMP_STALE_BATCH_SIZE, and TAMP_UPSTREAM_TIMEOUT; live cacheHitRate, redactions, and stale evictions surfaced in tamp status, /health?text, and logs.

Details: #33, #34. Install: npm i -g @sliday/tamp@0.9.1