switchroom 0.16.4 → 0.16.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "switchroom",
3
- "version": "0.16.4",
3
+ "version": "0.16.5",
4
4
  "description": "Run Claude Code 24/7 on your Claude Pro/Max subscription over Telegram. Open-source alternative to OpenClaw and NanoClaw — no API keys.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -811,9 +811,18 @@ if [ -n "$SWITCHROOM_LITELLM" ] && command -v switchroom >/dev/null 2>&1; then
811
811
  fi
812
812
  if [ -n "$sr_ll_ok" ]; then
813
813
  # Newline-separated Name: Value pairs (claude CLI ANTHROPIC_CUSTOM_HEADERS format).
814
+ # Tags: agent:<name> for per-agent spend tracking; profile:<profile> for
815
+ # fleet-level cost breakdown by role. Per-turn tags (cron vs telegram) are
816
+ # NOT achievable here — ANTHROPIC_CUSTOM_HEADERS is fixed per process and
817
+ # the claude CLI sends no session id. Use scheduler.jsonl ↔ /spend/logs
818
+ # time-window correlation for cron attribution instead.
814
819
  export ANTHROPIC_CUSTOM_HEADERS="x-litellm-api-key: Bearer $sr_ll_key
815
820
  x-litellm-customer-id: $SWITCHROOM_AGENT_NAME
816
- x-litellm-tags: agent:$SWITCHROOM_AGENT_NAME"
821
+ x-litellm-tags: agent:$SWITCHROOM_AGENT_NAME,profile:${SWITCHROOM_AGENT_PROFILE:-default}"
822
+ # Let Claude Code enumerate models from the LiteLLM gateway so non-Claude
823
+ # models configured in the proxy appear in the /model picker and can be
824
+ # selected via --model. Without this, the CLI only knows its bundled list.
825
+ export CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1
817
826
  else
818
827
  # Fail-open: drop every routing var so the claude CLI talks to Anthropic
819
828
  # directly on its OAuth credential (subscription path), unproxied.