@oneciel-ai/claude-any 0.1.63 → 0.1.64
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 +10 -1
- package/claude_any.py +12 -1
- package/docs/README.ja.md +9 -1
- package/docs/README.ko.md +9 -1
- package/docs/README.zh.md +9 -1
- package/docs/manual.md +1 -1
- package/package.json +1 -1
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.
|
|
51
|
+
Current version: `0.1.64`
|
|
52
52
|
|
|
53
53
|
## Why This Exists
|
|
54
54
|
|
|
@@ -385,6 +385,15 @@ steps under that larger model's supervision.
|
|
|
385
385
|
|
|
386
386
|
## Changelog
|
|
387
387
|
|
|
388
|
+
### 0.1.64
|
|
389
|
+
|
|
390
|
+
- **Model-aware native auto-compact**: claude-any now injects
|
|
391
|
+
`CLAUDE_CODE_AUTO_COMPACT_WINDOW` at launch using the selected provider/model
|
|
392
|
+
context window, including the cached Ollama/Ollama Cloud model catalog. Smaller
|
|
393
|
+
custom models now let Claude Code's native auto-compact trigger against their
|
|
394
|
+
real context budget instead of falling back to Claude Code's generic 200K
|
|
395
|
+
assumption.
|
|
396
|
+
|
|
388
397
|
### 0.1.63
|
|
389
398
|
|
|
390
399
|
- **Plan Mode stop guard**: when a non-Anthropic model is already in Plan Mode
|
package/claude_any.py
CHANGED
|
@@ -90,7 +90,7 @@ PROVIDER_LABELS = {
|
|
|
90
90
|
"self-hosted-nim": "Self Hosted NIM",
|
|
91
91
|
}
|
|
92
92
|
APP_NAME = "Claude Any"
|
|
93
|
-
VERSION = "0.1.
|
|
93
|
+
VERSION = "0.1.64"
|
|
94
94
|
CREDITS = "Credits: One Ciel LLC"
|
|
95
95
|
|
|
96
96
|
LOG_LEVELS = {"SILENT": 0, "ERROR": 1, "WARN": 2, "INFO": 3, "DEBUG": 4, "TRACE": 5}
|
|
@@ -8774,6 +8774,13 @@ def claude_code_output_token_limit(provider: str, pcfg: dict[str, Any]) -> int |
|
|
|
8774
8774
|
return None
|
|
8775
8775
|
|
|
8776
8776
|
|
|
8777
|
+
def claude_code_auto_compact_window(provider: str, pcfg: dict[str, Any]) -> int | None:
|
|
8778
|
+
limit = context_limit_for_status(provider, pcfg)
|
|
8779
|
+
if limit:
|
|
8780
|
+
return limit
|
|
8781
|
+
return None
|
|
8782
|
+
|
|
8783
|
+
|
|
8777
8784
|
def claude_code_context_model_alias(provider: str, pcfg: dict[str, Any], model: str) -> str:
|
|
8778
8785
|
model = strip_claude_context_suffix(model)
|
|
8779
8786
|
limit = context_limit_for_status(provider, pcfg)
|
|
@@ -8790,6 +8797,9 @@ def apply_common_claude_env(provider: str, pcfg: dict[str, Any], env: dict[str,
|
|
|
8790
8797
|
output_tokens = claude_code_output_token_limit(provider, pcfg)
|
|
8791
8798
|
if output_tokens:
|
|
8792
8799
|
env["CLAUDE_CODE_MAX_OUTPUT_TOKENS"] = str(output_tokens)
|
|
8800
|
+
compact_window = claude_code_auto_compact_window(provider, pcfg)
|
|
8801
|
+
if compact_window:
|
|
8802
|
+
env["CLAUDE_CODE_AUTO_COMPACT_WINDOW"] = str(compact_window)
|
|
8793
8803
|
advisor_model = str(pcfg.get("advisor_model") or "").strip()
|
|
8794
8804
|
if advisor_model:
|
|
8795
8805
|
env["CLAUDE_ANY_ADVISOR_MODEL"] = advisor_model
|
|
@@ -8880,6 +8890,7 @@ def cmd_env(_: argparse.Namespace) -> None:
|
|
|
8880
8890
|
"CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS",
|
|
8881
8891
|
"CLAUDE_CODE_ATTRIBUTION_HEADER",
|
|
8882
8892
|
"CLAUDE_CODE_MAX_OUTPUT_TOKENS",
|
|
8893
|
+
"CLAUDE_CODE_AUTO_COMPACT_WINDOW",
|
|
8883
8894
|
"ANTHROPIC_MODEL",
|
|
8884
8895
|
"ANTHROPIC_CUSTOM_MODEL_OPTION",
|
|
8885
8896
|
"ANTHROPIC_DEFAULT_HAIKU_MODEL",
|
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.
|
|
50
|
+
現在のバージョン: `0.1.64`
|
|
51
51
|
|
|
52
52
|
## 作られた理由
|
|
53
53
|
|
|
@@ -351,6 +351,14 @@ Windows/Linux 管理、クリーンアップスクリプト、定期的なセキ
|
|
|
351
351
|
|
|
352
352
|
## 変更履歴
|
|
353
353
|
|
|
354
|
+
### 0.1.64
|
|
355
|
+
|
|
356
|
+
- **モデル context 対応の native auto-compact**: claude-any は起動時に、選択中の
|
|
357
|
+
provider/model の context window を使って `CLAUDE_CODE_AUTO_COMPACT_WINDOW`
|
|
358
|
+
を注入します。Ollama/Ollama Cloud ではディスクにキャッシュした model catalog
|
|
359
|
+
も利用するため、小さい custom model でも Claude Code の汎用 200K 仮定ではなく、
|
|
360
|
+
実際の context budget に合わせて native auto-compact が発火します。
|
|
361
|
+
|
|
354
362
|
### 0.1.63
|
|
355
363
|
|
|
356
364
|
- **Plan Mode stop guard**: non-Anthropic モデルが Plan Mode 中に短い確認文だけで
|
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.
|
|
50
|
+
현재 버전: `0.1.64`
|
|
51
51
|
|
|
52
52
|
## 왜 만들었나
|
|
53
53
|
|
|
@@ -351,6 +351,14 @@ Windows 이벤트 로그 리뷰, 바이러스/랜섬웨어 침입 시도 정리,
|
|
|
351
351
|
|
|
352
352
|
## 변경 이력
|
|
353
353
|
|
|
354
|
+
### 0.1.64
|
|
355
|
+
|
|
356
|
+
- **모델 컨텍스트 인식 native auto-compact**: claude-any가 실행 시 선택된
|
|
357
|
+
provider/model의 context window를 기준으로 `CLAUDE_CODE_AUTO_COMPACT_WINDOW`를
|
|
358
|
+
주입합니다. Ollama/Ollama Cloud는 디스크에 캐시된 model catalog도 활용하므로,
|
|
359
|
+
작은 커스텀 모델도 Claude Code의 기본 200K 가정이 아니라 실제 context budget에
|
|
360
|
+
맞춰 native auto-compact가 발동됩니다.
|
|
361
|
+
|
|
354
362
|
### 0.1.63
|
|
355
363
|
|
|
356
364
|
- **Plan Mode stop guard**: non-Anthropic 모델이 Plan Mode 안에서 짧은 확인
|
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.
|
|
50
|
+
当前版本: `0.1.64`
|
|
51
51
|
|
|
52
52
|
## 为什么存在
|
|
53
53
|
|
|
@@ -337,6 +337,14 @@ Hermes 格式模型或部分较旧的 Qwen tool template。
|
|
|
337
337
|
|
|
338
338
|
## 更新日志
|
|
339
339
|
|
|
340
|
+
### 0.1.64
|
|
341
|
+
|
|
342
|
+
- **按模型上下文触发 native auto-compact**:claude-any 启动时会根据当前
|
|
343
|
+
provider/model 的 context window 注入 `CLAUDE_CODE_AUTO_COMPACT_WINDOW`。
|
|
344
|
+
Ollama/Ollama Cloud 会同时使用磁盘缓存的 model catalog,因此较小的 custom
|
|
345
|
+
model 也会按真实 context budget 触发 Claude Code 原生 auto-compact,而不是
|
|
346
|
+
退回到 Claude Code 通用的 200K 假设。
|
|
347
|
+
|
|
340
348
|
### 0.1.63
|
|
341
349
|
|
|
342
350
|
- **Plan Mode stop guard**:当 non-Anthropic 模型已经处于 Plan Mode,却只输出
|
package/docs/manual.md
CHANGED
package/package.json
CHANGED