cc-viewer 1.8.0 → 1.8.2
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 +1 -0
- package/concepts/ar/ToolsFirst.md +1 -1
- package/concepts/da/ToolsFirst.md +1 -1
- package/concepts/de/ToolsFirst.md +1 -1
- package/concepts/en/ToolsFirst.md +1 -1
- package/concepts/es/ToolsFirst.md +1 -1
- package/concepts/fr/ToolsFirst.md +1 -1
- package/concepts/it/ToolsFirst.md +1 -1
- package/concepts/ja/ToolsFirst.md +1 -1
- package/concepts/ko/ToolsFirst.md +1 -1
- package/concepts/no/ToolsFirst.md +1 -1
- package/concepts/pl/ToolsFirst.md +1 -1
- package/concepts/pt-BR/ToolsFirst.md +1 -1
- package/concepts/ru/ToolsFirst.md +1 -1
- package/concepts/th/ToolsFirst.md +1 -1
- package/concepts/tr/ToolsFirst.md +1 -1
- package/concepts/uk/ToolsFirst.md +1 -1
- package/concepts/zh/ToolsFirst.md +1 -1
- package/concepts/zh-TW/ToolsFirst.md +1 -1
- package/dist/assets/App-C5AeiZ4W.js +2 -0
- package/dist/assets/App-M61pqQEx.css +1 -0
- package/dist/assets/{MdxEditorPanel-BBhgTmDk.js → MdxEditorPanel-DNvC8jj8.js} +1 -1
- package/dist/assets/{Mobile-vN4lyiaz.js → Mobile-CiLjCGpD.js} +1 -1
- package/dist/assets/{ProxyStatsModal-BOflqr0R.js → ProxyStatsModal-_xwISk06.js} +1 -1
- package/dist/assets/index-CmXTH-Hd.js +2 -0
- package/dist/assets/seqResourceLoaders-BJpAk70J.js +2 -0
- package/dist/index.html +1 -1
- package/node_modules/@ccv/core/src/context-rules.js +6 -2
- package/package.json +1 -1
- package/server/lib/builtin-model-prompts.js +198 -0
- package/server/lib/context-watcher.js +1 -1
- package/server/lib/git-diff.js +27 -20
- package/server/lib/launch-config.js +9 -1
- package/server/lib/model-system-prompts.js +17 -1
- package/server/lib/system-prompt-files.js +42 -5
- package/server/pty-manager.js +6 -3
- package/server/routes/expert.js +74 -13
- package/server/system-prompt-templates/presets/GLM-5.2.md +5 -0
- package/server/system-prompt-templates/presets/GLM-5.3.md +74 -0
- package/server/system-prompt-templates/presets/Qwen-3.7-Max.md +5 -0
- package/server/system-prompt-templates/presets/deepseek-v4-flash.md +4 -0
- package/server/system-prompt-templates/presets/deepseek-v4-pro.md +5 -0
- package/server/system-prompt-templates/presets/index.json +8 -0
- package/server/system-prompt-templates/presets/kimi-k2.7-code.md +5 -0
- package/server/system-prompt-templates/presets/kimi-k3.md +5 -0
- package/ultraAgents/README.md +3 -0
- package/ultraAgents/test-analysis-expert.json +45 -0
- package/dist/assets/App-BWajJyJh.css +0 -1
- package/dist/assets/App-CCu0y2Cq.js +0 -2
- package/dist/assets/index-C3BRHDVF.js +0 -2
- package/dist/assets/seqResourceLoaders-DpYqp6SP.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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 (历史对话 + 当前
|
|
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
|
|
13
|
+
│ 3. Messages (conversation history + current step)│ ← End of cache prefix
|
|
14
14
|
└─────────────────────────────────────────────────┘
|
|
15
15
|
```
|
|
16
16
|
|