@oneciel-ai/claude-any 0.1.34 → 0.1.35

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/README.md CHANGED
@@ -48,7 +48,7 @@ arguments through unchanged.
48
48
 
49
49
  Credits: One Ciel LLC
50
50
 
51
- Current version: `0.1.34`
51
+ Current version: `0.1.35`
52
52
 
53
53
  ## Why This Exists
54
54
 
@@ -381,6 +381,15 @@ steps under that larger model's supervision.
381
381
 
382
382
  ## Changelog
383
383
 
384
+ ### 0.1.35
385
+
386
+ - **NVIDIA router context guard**: NVIDIA hosted now defaults to a 32K router
387
+ context window and LLM presets may tune that cap, reducing timeout-prone
388
+ payload growth in long Claude Code sessions.
389
+ - **Upstream activity status**: the router records current request, retry,
390
+ success, and error state with estimated token/byte size so the statusline can
391
+ distinguish active upstream waits from idle sessions.
392
+
384
393
  ### 0.1.34
385
394
 
386
395
  - **Complete headless configuration path**: add `--ca-env-file`,
package/claude_any.py CHANGED
@@ -39,8 +39,9 @@ LOG_LEVEL_PATH = CONFIG_DIR / "log-level"
39
39
  REQUEST_DUMP_PATH = CONFIG_DIR / "requests.jsonl"
40
40
  RESPONSE_DUMP_PATH = CONFIG_DIR / "responses.jsonl"
41
41
  TOOL_CALL_LOG_PATH = CONFIG_DIR / "tool-calls.jsonl"
42
- RATE_LIMIT_STATE_PATH = CONFIG_DIR / "rate-limit-state.json"
43
- CHAT_MESSAGES_PATH = CONFIG_DIR / "chat-messages.jsonl"
42
+ RATE_LIMIT_STATE_PATH = CONFIG_DIR / "rate-limit-state.json"
43
+ ROUTER_ACTIVITY_PATH = CONFIG_DIR / "router-activity.json"
44
+ CHAT_MESSAGES_PATH = CONFIG_DIR / "chat-messages.jsonl"
44
45
  CHAT_FILES_DIR = CONFIG_DIR / "chat-files"
45
46
  PLAN_ARTIFACTS_DIR = CONFIG_DIR / "plan-artifacts"
46
47
  PID_PATH = CONFIG_DIR / "router.pid"
@@ -84,7 +85,7 @@ PROVIDER_LABELS = {
84
85
  "self-hosted-nim": "Self Hosted NIM",
85
86
  }
86
87
  APP_NAME = "Claude Any"
87
- VERSION = "0.1.34"
88
+ VERSION = "0.1.35"
88
89
  CREDITS = "Credits: One Ciel LLC"
89
90
 
90
91
  LOG_LEVELS = {"SILENT": 0, "ERROR": 1, "WARN": 2, "INFO": 3, "DEBUG": 4, "TRACE": 5}
@@ -712,17 +713,18 @@ DEFAULT_CONFIG: dict[str, Any] = {
712
713
  "stream_enabled": True,
713
714
  "stream_word_chunking": False,
714
715
  },
715
- "nvidia-hosted": {
716
- "base_url": "https://integrate.api.nvidia.com/v1",
717
- "api_key": "not-used",
718
- "current_model": "qwen/qwen3-coder-480b-a35b-instruct",
716
+ "nvidia-hosted": {
717
+ "base_url": "https://integrate.api.nvidia.com/v1",
718
+ "api_key": "not-used",
719
+ "current_model": "qwen/qwen3-coder-480b-a35b-instruct",
719
720
  "advisor_model": "",
720
721
  "custom_models": [],
721
722
  "native_compat": False,
722
- "rate_limit_rpm": 40,
723
- "rate_limit_status": True,
724
- "max_output_tokens": 4096,
725
- "temperature": 0.7,
723
+ "rate_limit_rpm": 40,
724
+ "rate_limit_status": True,
725
+ "context_window": 32768,
726
+ "max_output_tokens": 4096,
727
+ "temperature": 0.7,
726
728
  "top_p": 0.8,
727
729
  "request_timeout_ms": 300000,
728
730
  "stream_enabled": True,
@@ -773,14 +775,21 @@ def apply_config_migrations(cfg: dict[str, Any]) -> None:
773
775
  pcfg["native_compat"] = False
774
776
  migrations[marker] = True
775
777
 
776
- marker = "default_timeout_5m_20260513"
777
- if not migrations.get(marker):
778
- for pcfg in (cfg.get("providers") or {}).values():
779
- if not isinstance(pcfg, dict):
780
- continue
781
- if positive_int(pcfg.get("request_timeout_ms")) in (600000, 1800000):
782
- pcfg["request_timeout_ms"] = 300000
783
- migrations[marker] = True
778
+ marker = "default_timeout_5m_20260513"
779
+ if not migrations.get(marker):
780
+ for pcfg in (cfg.get("providers") or {}).values():
781
+ if not isinstance(pcfg, dict):
782
+ continue
783
+ if positive_int(pcfg.get("request_timeout_ms")) in (600000, 1800000):
784
+ pcfg["request_timeout_ms"] = 300000
785
+ migrations[marker] = True
786
+
787
+ marker = "nvidia_context_window_32k_20260513"
788
+ if not migrations.get(marker):
789
+ pcfg = cfg.get("providers", {}).get("nvidia-hosted", {})
790
+ if isinstance(pcfg, dict) and not positive_int(pcfg.get("context_window")):
791
+ pcfg["context_window"] = 32768
792
+ migrations[marker] = True
784
793
 
785
794
 
786
795
  _config_cache: dict[str, Any] | None = None
@@ -1174,8 +1183,9 @@ from pathlib import Path
1174
1183
  HOME = Path.home()
1175
1184
  CONFIG_DIR = Path(os.environ.get("CLAUDE_ANY_CONFIG_DIR") or (HOME / ".config" / "claude-any"))
1176
1185
  CONFIG_PATH = CONFIG_DIR / "config.json"
1177
- STATE_PATH = CONFIG_DIR / "rate-limit-state.json"
1178
- PALETTE = (203, 209, 215, 221, 229, 187, 151, 116, 111, 147, 183, 219)
1186
+ STATE_PATH = CONFIG_DIR / "rate-limit-state.json"
1187
+ ACTIVITY_PATH = CONFIG_DIR / "router-activity.json"
1188
+ PALETTE = (203, 209, 215, 221, 229, 187, 151, 116, 111, 147, 183, 219)
1179
1189
 
1180
1190
 
1181
1191
  def load_json(path, default):
@@ -1225,8 +1235,9 @@ def main():
1225
1235
  rpm = int(raw_rpm)
1226
1236
  except Exception:
1227
1237
  rpm = 40
1228
- state = load_json(STATE_PATH, {})
1229
- now = time.time()
1238
+ state = load_json(STATE_PATH, {})
1239
+ activity = load_json(ACTIVITY_PATH, {})
1240
+ now = time.time()
1230
1241
  key = f"{provider}:__global__" if provider else ""
1231
1242
  entry = state.get(key) if key else None
1232
1243
  if not isinstance(entry, dict):
@@ -1288,9 +1299,25 @@ def main():
1288
1299
  rpm_text += " | server " + ", ".join(parts)
1289
1300
  if penalty_until > now:
1290
1301
  rpm_text += f" | wait {max(0.0, penalty_until - now):.0f}s"
1291
- elif last_wait >= 0.5 and 0.0 <= now - updated_at < 60.0:
1292
- rpm_text += f" | wait {last_wait:.1f}s"
1293
- print(f"{left} | {color(rpm_text)}")
1302
+ elif last_wait >= 0.5 and 0.0 <= now - updated_at < 60.0:
1303
+ rpm_text += f" | wait {last_wait:.1f}s"
1304
+ if isinstance(activity, dict):
1305
+ try:
1306
+ age = now - float(activity.get("updated_at") or 0)
1307
+ except Exception:
1308
+ age = 999999
1309
+ if 0 <= age < 180:
1310
+ event = str(activity.get("event") or "")
1311
+ if event == "retry":
1312
+ rpm_text += f" | retry {activity.get('attempt')}/{activity.get('total')}"
1313
+ elif event == "request":
1314
+ tokens = activity.get("tokens")
1315
+ rpm_text += f" | upstream {age:.0f}s"
1316
+ if tokens:
1317
+ rpm_text += f" {tokens}tok"
1318
+ elif event in ("success", "error"):
1319
+ rpm_text += f" | {event} {age:.0f}s"
1320
+ print(f"{left} | {color(rpm_text)}")
1294
1321
 
1295
1322
 
1296
1323
  if __name__ == "__main__":
@@ -2834,16 +2861,34 @@ def native_anthropic_base_url(provider: str, pcfg: dict[str, Any]) -> str:
2834
2861
  return base
2835
2862
 
2836
2863
 
2837
- def write_json(handler: BaseHTTPRequestHandler, obj: Any, status: int = 200) -> None:
2838
- body = json.dumps(obj).encode("utf-8")
2839
- handler.send_response(status)
2840
- handler.send_header("content-type", "application/json")
2841
- handler.send_header("content-length", str(len(body)))
2842
- handler.end_headers()
2843
- handler.wfile.write(body)
2844
-
2845
-
2846
- def write_text_response(handler: BaseHTTPRequestHandler, text: str, status: int = 200, content_type: str = "text/plain; charset=utf-8") -> None:
2864
+ def write_json(handler: BaseHTTPRequestHandler, obj: Any, status: int = 200) -> None:
2865
+ body = json.dumps(obj).encode("utf-8")
2866
+ handler.send_response(status)
2867
+ handler.send_header("content-type", "application/json")
2868
+ handler.send_header("content-length", str(len(body)))
2869
+ handler.end_headers()
2870
+ handler.wfile.write(body)
2871
+
2872
+
2873
+ def write_router_activity(event: str, provider: str, model: str | None = None, **fields: Any) -> None:
2874
+ try:
2875
+ CONFIG_DIR.mkdir(parents=True, exist_ok=True)
2876
+ data = {
2877
+ "updated_at": time.time(),
2878
+ "time": time.strftime("%Y-%m-%dT%H:%M:%S"),
2879
+ "event": event,
2880
+ "provider": provider,
2881
+ "model": model or "",
2882
+ }
2883
+ data.update(fields)
2884
+ tmp = ROUTER_ACTIVITY_PATH.with_name(f"{ROUTER_ACTIVITY_PATH.name}.{os.getpid()}.{time.time_ns()}.tmp")
2885
+ tmp.write_text(json.dumps(data, ensure_ascii=False, separators=(",", ":")), encoding="utf-8")
2886
+ tmp.replace(ROUTER_ACTIVITY_PATH)
2887
+ except Exception:
2888
+ pass
2889
+
2890
+
2891
+ def write_text_response(handler: BaseHTTPRequestHandler, text: str, status: int = 200, content_type: str = "text/plain; charset=utf-8") -> None:
2847
2892
  body = text.encode("utf-8")
2848
2893
  handler.send_response(status)
2849
2894
  handler.send_header("content-type", content_type)
@@ -3556,11 +3601,20 @@ def cap_output_tokens_for_context(
3556
3601
  return max(1, min(configured, available))
3557
3602
 
3558
3603
 
3559
- def ollama_context_limit_for_budget(pcfg: dict[str, Any]) -> int:
3560
- raw = pcfg.get("num_ctx", "auto")
3561
- if isinstance(raw, str) and raw.strip().lower() == "auto":
3562
- return positive_int(pcfg.get("num_ctx_max")) or 65536
3563
- return positive_int(raw) or positive_int(pcfg.get("num_ctx_max")) or 65536
3604
+ def ollama_context_limit_for_budget(pcfg: dict[str, Any]) -> int:
3605
+ raw = pcfg.get("num_ctx", "auto")
3606
+ if isinstance(raw, str) and raw.strip().lower() == "auto":
3607
+ return positive_int(pcfg.get("num_ctx_max")) or 65536
3608
+ return positive_int(raw) or positive_int(pcfg.get("num_ctx_max")) or 65536
3609
+
3610
+
3611
+ def openai_context_limit_for_budget(provider: str, pcfg: dict[str, Any]) -> int:
3612
+ configured = positive_int(pcfg.get("context_window")) or positive_int(pcfg.get("max_model_len"))
3613
+ if configured:
3614
+ return configured
3615
+ if provider == "nvidia-hosted":
3616
+ return 32768
3617
+ return 65536
3564
3618
 
3565
3619
 
3566
3620
  def compact_ollama_messages_for_budget(
@@ -3695,10 +3749,10 @@ def ollama_chat_request(model: str, body: dict[str, Any], pcfg: dict[str, Any],
3695
3749
  return req
3696
3750
 
3697
3751
 
3698
- def openai_compatible_chat_request(model: str, body: dict[str, Any], pcfg: dict[str, Any], stream: bool = False) -> dict[str, Any]:
3699
- messages = anthropic_messages_to_openai(body)
3700
- tools = anthropic_tools_to_ollama(body.get("tools"))
3701
- context_limit = positive_int(pcfg.get("context_window")) or positive_int(pcfg.get("max_model_len")) or 65536
3752
+ def openai_compatible_chat_request(provider: str, model: str, body: dict[str, Any], pcfg: dict[str, Any], stream: bool = False) -> dict[str, Any]:
3753
+ messages = anthropic_messages_to_openai(body)
3754
+ tools = anthropic_tools_to_ollama(body.get("tools"))
3755
+ context_limit = openai_context_limit_for_budget(provider, pcfg)
3702
3756
  configured = configured_output_tokens(pcfg, body)
3703
3757
  reserve = positive_int(pcfg.get("context_reserve_tokens")) or 1024
3704
3758
  output_reserve = configured or positive_int(body.get("max_tokens")) or 4096
@@ -4592,37 +4646,58 @@ def post_json_with_rate_retry(
4592
4646
  model: str,
4593
4647
  retry_notice: Callable[[str], None] | None = None,
4594
4648
  ) -> Any:
4595
- gateway_retries = positive_int(pcfg.get("gateway_retries")) or 2
4596
- max_attempts = max(1, gateway_retries + 1)
4597
- for attempt in range(max_attempts):
4598
- try:
4599
- data_bytes = json.dumps(req_body).encode("utf-8")
4600
- req = urllib.request.Request(url, data=data_bytes, headers=headers, method="POST")
4601
- with urllib.request.urlopen(req, timeout=timeout) as resp:
4602
- learn_router_rate_limit_headers(provider, pcfg, model, resp.headers)
4603
- return json.loads(resp.read().decode("utf-8"))
4604
- except urllib.error.HTTPError as exc:
4605
- raw = exc.read().decode("utf-8", errors="ignore")
4606
- learn_router_rate_limit_headers(provider, pcfg, model, exc.headers)
4649
+ gateway_retries = positive_int(pcfg.get("gateway_retries")) or 2
4650
+ max_attempts = max(1, gateway_retries + 1)
4651
+ token_estimate = estimate_tokens(req_body)
4652
+ byte_estimate = len(json.dumps(req_body, ensure_ascii=False).encode("utf-8"))
4653
+ for attempt in range(max_attempts):
4654
+ try:
4655
+ write_router_activity(
4656
+ "request",
4657
+ provider,
4658
+ model,
4659
+ attempt=attempt + 1,
4660
+ total=max_attempts,
4661
+ tokens=token_estimate,
4662
+ bytes=byte_estimate,
4663
+ timeout=timeout,
4664
+ )
4665
+ router_log("INFO", f"upstream_request provider={provider} model={model} attempt={attempt + 1}/{max_attempts} tokens={token_estimate} bytes={byte_estimate} timeout={timeout}")
4666
+ data_bytes = json.dumps(req_body).encode("utf-8")
4667
+ req = urllib.request.Request(url, data=data_bytes, headers=headers, method="POST")
4668
+ with urllib.request.urlopen(req, timeout=timeout) as resp:
4669
+ learn_router_rate_limit_headers(provider, pcfg, model, resp.headers)
4670
+ data = json.loads(resp.read().decode("utf-8"))
4671
+ write_router_activity("success", provider, model, attempt=attempt + 1, tokens=token_estimate, bytes=byte_estimate)
4672
+ return data
4673
+ except urllib.error.HTTPError as exc:
4674
+ raw = exc.read().decode("utf-8", errors="ignore")
4675
+ learn_router_rate_limit_headers(provider, pcfg, model, exc.headers)
4607
4676
  if exc.code == 429 and attempt == 0:
4608
4677
  wait = register_router_rate_limit_backoff(provider, pcfg, model, exc.headers.get("Retry-After"))
4609
4678
  time.sleep(wait)
4610
4679
  continue
4611
- if exc.code in UPSTREAM_RETRY_HTTP_CODES and attempt + 1 < max_attempts:
4612
- retry_no = attempt + 1
4613
- if retry_notice:
4614
- retry_notice(upstream_retry_message(retry_no, gateway_retries))
4615
- time.sleep(upstream_retry_wait_seconds(retry_no))
4616
- continue
4617
- raise RuntimeError(upstream_http_error_message(exc, raw)) from exc
4618
- except (TimeoutError, urllib.error.URLError) as exc:
4619
- if retryable_timeout_exception(exc) and attempt + 1 < max_attempts:
4620
- retry_no = attempt + 1
4621
- if retry_notice:
4622
- retry_notice(upstream_retry_message(retry_no, gateway_retries))
4623
- time.sleep(upstream_retry_wait_seconds(retry_no))
4624
- continue
4625
- raise RuntimeError(f"{type(exc).__name__}: {exc}") from exc
4680
+ if exc.code in UPSTREAM_RETRY_HTTP_CODES and attempt + 1 < max_attempts:
4681
+ retry_no = attempt + 1
4682
+ write_router_activity("retry", provider, model, attempt=retry_no, total=gateway_retries, code=exc.code, tokens=token_estimate, bytes=byte_estimate)
4683
+ router_log("WARN", f"upstream_retry provider={provider} model={model} attempt={retry_no}/{gateway_retries} code={exc.code} tokens={token_estimate} bytes={byte_estimate}")
4684
+ if retry_notice:
4685
+ retry_notice(upstream_retry_message(retry_no, gateway_retries))
4686
+ time.sleep(upstream_retry_wait_seconds(retry_no))
4687
+ continue
4688
+ write_router_activity("error", provider, model, code=exc.code, tokens=token_estimate, bytes=byte_estimate)
4689
+ raise RuntimeError(upstream_http_error_message(exc, raw)) from exc
4690
+ except (TimeoutError, urllib.error.URLError) as exc:
4691
+ if retryable_timeout_exception(exc) and attempt + 1 < max_attempts:
4692
+ retry_no = attempt + 1
4693
+ write_router_activity("retry", provider, model, attempt=retry_no, total=gateway_retries, error=type(exc).__name__, tokens=token_estimate, bytes=byte_estimate)
4694
+ router_log("WARN", f"upstream_retry provider={provider} model={model} attempt={retry_no}/{gateway_retries} error={type(exc).__name__} tokens={token_estimate} bytes={byte_estimate}")
4695
+ if retry_notice:
4696
+ retry_notice(upstream_retry_message(retry_no, gateway_retries))
4697
+ time.sleep(upstream_retry_wait_seconds(retry_no))
4698
+ continue
4699
+ write_router_activity("error", provider, model, error=type(exc).__name__, tokens=token_estimate, bytes=byte_estimate)
4700
+ raise RuntimeError(f"{type(exc).__name__}: {exc}") from exc
4626
4701
  raise RuntimeError("upstream request failed")
4627
4702
 
4628
4703
 
@@ -4631,7 +4706,7 @@ def forward_openai_compatible_chat(handler: BaseHTTPRequestHandler, provider: st
4631
4706
  model = resolve_requested_model(provider, pcfg, body.get("model"))
4632
4707
  if provider == "nvidia-hosted":
4633
4708
  model = ncp_model_id_for_nvidia_hosted(model)
4634
- req_body = openai_compatible_chat_request(model, body, pcfg, stream=False)
4709
+ req_body = openai_compatible_chat_request(provider, model, body, pcfg, stream=False)
4635
4710
  url = join_url(provider_upstream_request_base(provider, pcfg), "/chat/completions")
4636
4711
  waited, rpm_used, rpm_limit = apply_router_rate_limit(provider, pcfg, model)
4637
4712
  stream = bool(body.get("stream", True))
@@ -5112,7 +5187,7 @@ def status_lines() -> list[str]:
5112
5187
  *([f"keep_alive: {pcfg.get('keep_alive', 'default')}"] if provider in ("ollama", "ollama-cloud") else []),
5113
5188
  *([f"think: {bool(pcfg.get('think', False))}"] if provider in ("ollama", "ollama-cloud") else []),
5114
5189
  *([f"request_timeout_ms: {pcfg.get('request_timeout_ms', 'default')}"] if provider in ("ollama", "ollama-cloud") else []),
5115
- *([f"context_window: {pcfg.get('context_window', 'default')}"] if provider in ("vllm", "self-hosted-nim") else []),
5190
+ *([f"context_window: {pcfg.get('context_window', 'default')}"] if provider in ("vllm", "nvidia-hosted", "self-hosted-nim") else []),
5116
5191
  *([f"context_reserve_tokens: {pcfg.get('context_reserve_tokens', 'default')}"] if provider in ("vllm", "self-hosted-nim") else []),
5117
5192
  *([f"max_output_tokens: {pcfg.get('max_output_tokens', 'default')}"] if provider in ("vllm", "nvidia-hosted", "self-hosted-nim") else []),
5118
5193
  *([f"request_timeout_ms: {pcfg.get('request_timeout_ms', 'default')}"] if provider in ("vllm", "nvidia-hosted", "self-hosted-nim") else []),
@@ -5421,9 +5496,9 @@ def provider_options_status(provider: str, pcfg: dict[str, Any]) -> str:
5421
5496
  if limit is not None:
5422
5497
  suffix = f"{used}/{limit}" if limit > 0 else f"{used}/min(unlimited)"
5423
5498
  parts.append(f"rpm_used={suffix}")
5424
- if provider in ("vllm", "self-hosted-nim"):
5425
- parts.insert(0, f"context_window={pcfg.get('context_window', 'default')}")
5426
- parts.insert(1, f"reserve={pcfg.get('context_reserve_tokens', 'default')}")
5499
+ if provider in ("vllm", "nvidia-hosted", "self-hosted-nim"):
5500
+ parts.insert(0, f"context_window={pcfg.get('context_window', 'default')}")
5501
+ parts.insert(1, f"reserve={pcfg.get('context_reserve_tokens', 'default')}")
5427
5502
  if provider in ("vllm", "self-hosted-nim"):
5428
5503
  native_default = False if provider == "nvidia-hosted" else True
5429
5504
  parts.append(f"native={bool(pcfg.get('native_compat', native_default))}")
@@ -5741,10 +5816,10 @@ def apply_llm_preset_to_provider(provider: str, pcfg: dict[str, Any], preset_id:
5741
5816
  f"native={native_default}",
5742
5817
  ],
5743
5818
  }
5744
- for token in tokens_by_preset[preset_id]:
5745
- if provider == "nvidia-hosted" and token.startswith(("context_window=", "reserve=", "native=")):
5746
- continue
5747
- apply_provider_option(provider, pcfg, token)
5819
+ for token in tokens_by_preset[preset_id]:
5820
+ if provider == "nvidia-hosted" and token.startswith("native="):
5821
+ continue
5822
+ apply_provider_option(provider, pcfg, token)
5748
5823
  if server_limit:
5749
5824
  requested_context = positive_int(pcfg.get("context_window"))
5750
5825
  if requested_context and requested_context > server_limit:
package/docs/README.ja.md CHANGED
@@ -47,7 +47,7 @@ vLLM、NVIDIA hosted、self-hosted NIM を選択し、通常の Claude Code 引
47
47
 
48
48
  Credits: One Ciel LLC
49
49
 
50
- 現在のバージョン: `0.1.34`
50
+ 現在のバージョン: `0.1.35`
51
51
 
52
52
  ## 作られた理由
53
53
 
@@ -351,6 +351,15 @@ Windows/Linux 管理、クリーンアップスクリプト、定期的なセキ
351
351
 
352
352
  ## 変更履歴
353
353
 
354
+ ### 0.1.35
355
+
356
+ - **NVIDIA router context guard**: NVIDIA hosted の router context 既定値を 32K
357
+ に下げ、LLM preset がこの cap を調整できるようにしました。長い Claude Code
358
+ セッションで payload が肥大して timeout する状況を減らします。
359
+ - **Upstream activity status**: router が現在の request/retry/success/error
360
+ 状態と推定 token/byte サイズを記録し、statusline で upstream 待機と idle を
361
+ 判別できるようにしました。
362
+
354
363
  ### 0.1.34
355
364
 
356
365
  - **完全な headless 設定経路**: `--ca-env-file`、環境変数マッピング、Advisor
package/docs/README.ko.md CHANGED
@@ -47,7 +47,7 @@ NVIDIA hosted, self-hosted NIM을 선택하고, Claude Code의 일반 인자는
47
47
 
48
48
  Credits: One Ciel LLC
49
49
 
50
- 현재 버전: `0.1.34`
50
+ 현재 버전: `0.1.35`
51
51
 
52
52
  ## 왜 만들었나
53
53
 
@@ -351,6 +351,15 @@ Windows 이벤트 로그 리뷰, 바이러스/랜섬웨어 침입 시도 정리,
351
351
 
352
352
  ## 변경 이력
353
353
 
354
+ ### 0.1.35
355
+
356
+ - **NVIDIA router context guard**: NVIDIA hosted의 router context 기본값을 32K로
357
+ 낮추고 LLM preset이 이 cap을 조정할 수 있게 하여, 긴 Claude Code 세션에서
358
+ payload가 커져 timeout이 나는 상황을 줄였습니다.
359
+ - **Upstream activity status**: router가 현재 request/retry/success/error 상태와
360
+ 추정 token/byte 크기를 기록하여, statusline에서 upstream 대기와 idle 상태를
361
+ 구분할 수 있습니다.
362
+
354
363
  ### 0.1.34
355
364
 
356
365
  - **완전한 headless 설정 경로**: `--ca-env-file`, 환경변수 매핑, Advisor model,
package/docs/README.zh.md CHANGED
@@ -47,7 +47,7 @@ NIM,并把普通 Claude Code 参数原样传递。
47
47
 
48
48
  Credits: One Ciel LLC
49
49
 
50
- 当前版本: `0.1.34`
50
+ 当前版本: `0.1.35`
51
51
 
52
52
  ## 为什么存在
53
53
 
@@ -337,6 +337,14 @@ Hermes 格式模型或部分较旧的 Qwen tool template。
337
337
 
338
338
  ## 更新日志
339
339
 
340
+ ### 0.1.35
341
+
342
+ - **NVIDIA router context guard**:NVIDIA hosted 的 router context 默认值改为
343
+ 32K,并允许 LLM preset 调整该 cap,减少长 Claude Code 会话中 payload 变大后
344
+ 触发 timeout 的情况。
345
+ - **Upstream activity status**:router 会记录当前 request/retry/success/error
346
+ 状态和估算 token/byte 大小,statusline 可以区分正在等待 upstream 还是已 idle。
347
+
340
348
  ### 0.1.34
341
349
 
342
350
  - **完整 headless 配置路径**:新增 `--ca-env-file`、环境变量映射、Advisor
package/docs/manual.md CHANGED
@@ -10,7 +10,7 @@ Code starts, while passing normal Claude Code arguments through unchanged.
10
10
 
11
11
  Credits: One Ciel LLC
12
12
 
13
- Current version: `0.1.34`
13
+ Current version: `0.1.35`
14
14
 
15
15
  ## Install
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneciel-ai/claude-any",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "description": "Claude Code provider selector for Anthropic, Ollama, Ollama Cloud, vLLM, NVIDIA hosted, and self-hosted NIM.",
5
5
  "license": "MIT",
6
6
  "author": "One Ciel LLC",