cc-viewer 1.8.0 → 1.8.1

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.
Files changed (39) hide show
  1. package/README.md +1 -0
  2. package/concepts/ar/ToolsFirst.md +1 -1
  3. package/concepts/da/ToolsFirst.md +1 -1
  4. package/concepts/de/ToolsFirst.md +1 -1
  5. package/concepts/en/ToolsFirst.md +1 -1
  6. package/concepts/es/ToolsFirst.md +1 -1
  7. package/concepts/fr/ToolsFirst.md +1 -1
  8. package/concepts/it/ToolsFirst.md +1 -1
  9. package/concepts/ja/ToolsFirst.md +1 -1
  10. package/concepts/ko/ToolsFirst.md +1 -1
  11. package/concepts/no/ToolsFirst.md +1 -1
  12. package/concepts/pl/ToolsFirst.md +1 -1
  13. package/concepts/pt-BR/ToolsFirst.md +1 -1
  14. package/concepts/ru/ToolsFirst.md +1 -1
  15. package/concepts/th/ToolsFirst.md +1 -1
  16. package/concepts/tr/ToolsFirst.md +1 -1
  17. package/concepts/uk/ToolsFirst.md +1 -1
  18. package/concepts/zh/ToolsFirst.md +1 -1
  19. package/concepts/zh-TW/ToolsFirst.md +1 -1
  20. package/dist/assets/App-CqQJDjfT.js +2 -0
  21. package/dist/assets/App-ssYfrjwF.css +1 -0
  22. package/dist/assets/{MdxEditorPanel-BBhgTmDk.js → MdxEditorPanel-DXwb5tSD.js} +1 -1
  23. package/dist/assets/{Mobile-vN4lyiaz.js → Mobile-DOjKURO3.js} +1 -1
  24. package/dist/assets/{ProxyStatsModal-BOflqr0R.js → ProxyStatsModal-BEnxiRXF.js} +1 -1
  25. package/dist/assets/index-CH_N7vvX.js +2 -0
  26. package/dist/assets/{seqResourceLoaders-DpYqp6SP.js → seqResourceLoaders-BJhO6zhW.js} +2 -2
  27. package/dist/index.html +1 -1
  28. package/package.json +1 -1
  29. package/server/lib/builtin-model-prompts.js +198 -0
  30. package/server/lib/launch-config.js +9 -1
  31. package/server/lib/model-system-prompts.js +17 -1
  32. package/server/lib/system-prompt-files.js +42 -5
  33. package/server/pty-manager.js +6 -3
  34. package/server/routes/expert.js +74 -13
  35. package/ultraAgents/README.md +3 -0
  36. package/ultraAgents/test-analysis-expert.json +45 -0
  37. package/dist/assets/App-BWajJyJh.css +0 -1
  38. package/dist/assets/App-CCu0y2Cq.js +0 -2
  39. package/dist/assets/index-C3BRHDVF.js +0 -2
package/README.md CHANGED
@@ -200,6 +200,7 @@ The **Edit System Prompt** modal (hamburger menu → Edit System Prompt) is tabb
200
200
  * The **Default** tab keeps the classic behavior: it writes `CC_SYSTEM.md` (override) or `CC_APPEND_SYSTEM.md` (append) into the current workspace, injected as `--system-prompt-file` / `--append-system-prompt-file` on the next ccv launch.
201
201
  * **Model tabs**: click **+ Add model**, type a name such as `opus` or `Gemini3`, and pick a scope — **Global** (`~/.claude/cc-viewer/system_prompt/`, applies to every workspace) or **Workspace** (`<project>/system_prompt/`). The name field offers type-ahead suggestions from your locally configured models (hot-reload proxy profiles and `settings.json`); names already added in the chosen scope are hidden, and arbitrary free-form names remain allowed. Each tab has its own Append/Override switch and Markdown preview.
202
202
  * Entries are stored as uppercase files: `OPUS_SYSTEM.md` (override) or `OPUS_APPEND_SYSTEM.md` (append). Matching is fuzzy — a case-insensitive substring of the model ID resolved from the ACTIVE configuration (an active third-party proxy profile's model mapping > the launch environment's `ANTHROPIC_MODEL`/`CLAUDE_MODEL` > the `model` configured in `settings.json`; with no configuration signal, no entry is injected), so `opus` matches `claude-opus-4-8[1m]` regardless of version. Switching the proxy profile mid-session re-matches only after the claude session is restarted, and a `--model` flag passed through extra args is not consulted (known limitations). A workspace match beats a global one; within a scope the longest name wins; a matched entry fully replaces the Default files for that launch.
203
+ * **Built-in presets are default-effective:** the package ships tuned prompts for `deepseek-v4-pro`, `deepseek-v4-flash`, `GLM-5.2`, `Qwen-3.7-Max`, `kimi-k2.7-code` and `kimi-k3` — when the resolved model matches one of them and no entry of yours matches, the built-in prompt is injected automatically (your own files always win: workspace > global > built-in). Built-in tabs carry a **Built-in** badge in the modal: edit and save to materialize your override, or use the tab's × to **disable** a built-in (recorded in `<scope>/system_prompt/.builtin-disabled.json`). A disabled built-in falls back to the Default files, and the header entry stays visible marked "Disabled" so you can re-enable it at any time.
203
204
  * Saving a tab empty deletes the entry. Model switches made mid-session apply at the next relaunch. Set `CCV_DISABLE_AUTO_SYSTEM_PROMPT=1` to disable all automatic injection. You may commit `<project>/system_prompt/` to share prompts with your team, or add it to `.gitignore` to keep them private.
204
205
 
205
206
  ### Logger mode (view the complete Claude Code session)
@@ -10,7 +10,7 @@
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@ Når Anthropic's API opbygger KV-Cache, sammensætter den konteksten til et præ
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@ Wenn die Anthropic API den KV-Cache aufbaut, verkettet sie den Kontext in dieser
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@ When Anthropic's API constructs the KV-Cache, it concatenates context into a pre
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@ Cuando la API de Anthropic construye el KV-Cache, concatena el contexto en un pr
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@ Lorsque l'API Anthropic construit le KV-Cache, elle concatène le contexte en un
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@ Quando l'API di Anthropic costruisce il KV-Cache, concatena il contesto in un pr
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@ Anthropic のAPIがKV-Cacheを構築する際、コンテキストを以下の**
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@ Anthropic의 API가 KV-Cache를 구성할 때, 컨텍스트를 다음 **고정
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@ Når Anthropic's API bygger opp KV-Cache, setter den sammen konteksten til et pr
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@ Gdy Anthropic API buduje KV-Cache, łączy kontekst w prefiks w tej **stałej ko
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@ Quando a API da Anthropic constrói o KV-Cache, ela concatena o contexto em um p
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@ Anthropic'in API'si KV-Cache'i oluştururken, bağlamı bu **sabit sırayla** bi
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@ Anthropic API 在构建 KV-Cache 时,按以下**固定顺序**将上下文拼
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema 定义) │ ← 缓存前缀的最前端
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (历史对话 + 当前 turn) │ ← 缓存前缀的最后端
13
+ │ 3. Messages (历史对话 + 当前 step) │ ← 缓存前缀的最后端
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16
 
@@ -10,7 +10,7 @@
10
10
  ┌─────────────────────────────────────────────────┐
11
11
  │ 1. Tools (JSON Schema definitions) │ ← Start of cache prefix
12
12
  │ 2. System Prompt │
13
- │ 3. Messages (conversation history + current turn)│ ← End of cache prefix
13
+ │ 3. Messages (conversation history + current step)│ ← End of cache prefix
14
14
  └─────────────────────────────────────────────────┘
15
15
  ```
16
16