headroom/sdk/typescript/src
Garm d4cd49af95 feat(telemetry): add headroom_stack and install_mode identity fields
Adds two orthogonal identity fields to the anonymous telemetry beacon so we
can segment usage by integration surface and deployment shape:

- headroom_stack: how Headroom is invoked (proxy, wrap_claude, wrap_codex,
  adapter_ts_openai, adapter_ts_anthropic, etc.). Resolved from HEADROOM_STACK
  env, HEADROOM_AGENT_TYPE fallback, or aggregated request-header counts.
- install_mode: how the proxy is deployed (wrapped / persistent / on_demand).
  Detected from HEADROOM_AGENT_TYPE plus DeploymentManifest lookup.

TS SDK adapters now tag every request with X-Headroom-Stack; a FastAPI
middleware buckets the counts and surfaces them via /stats so the beacon can
report requests_by_stack for mixed-integration sessions.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 17:12:38 +02:00
..
adapters feat(telemetry): add headroom_stack and install_mode identity fields 2026-04-17 17:12:38 +02:00
types typescript coverage 2026-04-06 21:24:36 +06:00
utils typescript coverage 2026-04-06 21:24:36 +06:00
client.ts feat(telemetry): add headroom_stack and install_mode identity fields 2026-04-17 17:12:38 +02:00
compress.ts typescript coverage 2026-04-06 21:24:36 +06:00
errors.ts typescript coverage 2026-04-06 21:24:36 +06:00
hooks.ts typescript coverage 2026-04-06 21:24:36 +06:00
index.ts feat(sdk/ts): add paths module with HEADROOM_CONFIG_DIR / HEADROOM_WORKSPACE_DIR parity 2026-04-16 19:16:00 -05:00
paths.ts feat(sdk/ts): add paths module with HEADROOM_CONFIG_DIR / HEADROOM_WORKSPACE_DIR parity 2026-04-16 19:16:00 -05:00
shared-context.ts typescript coverage 2026-04-06 21:24:36 +06:00
simulate.ts typescript coverage 2026-04-06 21:24:36 +06:00
types.ts feat(telemetry): add headroom_stack and install_mode identity fields 2026-04-17 17:12:38 +02:00