cc-viewer 1.6.341 → 1.6.343
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 +4 -2
- package/cli.js +6 -1
- package/dist/assets/App-DkT8kHeT.js +2 -0
- package/dist/assets/App-Pkp5KFXT.css +1 -0
- package/dist/assets/{MdxEditorPanel-C-J9zemB.js → MdxEditorPanel-DJtY-RZu.js} +1 -1
- package/dist/assets/{Mobile-yWAU0Wid.js → Mobile-BSe9GgwO.js} +1 -1
- package/dist/assets/index-5v2dgTRS.js +2 -0
- package/dist/assets/{seqResourceLoaders-Deco0hhe.js → seqResourceLoaders-BlUz36Ig.js} +2 -2
- package/dist/assets/seqResourceLoaders-g06U0FFU.css +41 -0
- package/dist/index.html +1 -1
- package/findcc.js +17 -1
- package/package.json +1 -1
- package/server/lib/create_system_prompt.js +504 -0
- package/server/lib/system-prompt-presets.js +67 -0
- package/server/routes/expert.js +18 -0
- package/server/system-prompt-templates/presets/GLM-5.2.md +63 -0
- package/server/system-prompt-templates/presets/Qwen-3.7-Max.md +63 -0
- package/server/system-prompt-templates/presets/deepseek-v4-flash.md +60 -0
- package/server/system-prompt-templates/presets/deepseek-v4-pro.md +65 -0
- package/server/system-prompt-templates/presets/index.json +39 -0
- package/server/system-prompt-templates/reference/claude-code-cli-startup-options.md +325 -0
- package/server/system-prompt-templates/reference/prompt-control-tokens-deepseek-v4.md +178 -0
- package/server/system-prompt-templates/reference/prompt-control-tokens-qwen3.md +227 -0
- package/server/system-prompt-templates/reference/prompt-xml-tags-fable-5.md +101 -0
- package/server/system-prompt-templates/reference/prompt-xml-tags-opus-4-8.md +113 -0
- package/server/system-prompt-templates/systemPromptModel.md +168 -0
- package/server/system-prompt-templates/systemPromptVariables.md +113 -0
- package/dist/assets/App-DhRbGaoC.css +0 -1
- package/dist/assets/App-Dp2WJHli.js +0 -2
- package/dist/assets/index-CXwhCdjW.js +0 -2
- package/dist/assets/seqResourceLoaders-_JfPy7zE.css +0 -41
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
# CC-Viewer
|
|
4
4
|
|
|
5
|
+
🌐 **Website & feature tour: [weiesky.github.io/cc-viewer](https://weiesky.github.io/cc-viewer/)** — available in 18 languages (e.g. [简体中文](https://weiesky.github.io/cc-viewer/?lang=zh), [日本語](https://weiesky.github.io/cc-viewer/?lang=ja)).
|
|
6
|
+
|
|
5
7
|
Based on Claude Code, a Vibe Coding tool that distills and accumulates real development experience:
|
|
6
8
|
|
|
7
9
|
<img width="860" alt="cc-viewer — deploy once, share with every device" src="https://raw.githubusercontent.com/weiesky/cc-viewer/main/docs/cc-viewer-share.svg" />
|
|
@@ -143,7 +145,7 @@ By default, remote (LAN) access requires the `?token=` query that ccv prints at
|
|
|
143
145
|
|
|
144
146
|
### Model-specific system prompts
|
|
145
147
|
|
|
146
|
-
The **Edit System Prompt** modal (
|
|
148
|
+
The **Edit System Prompt** modal (hamburger menu → Edit System Prompt) is tabbed:
|
|
147
149
|
|
|
148
150
|
* 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.
|
|
149
151
|
* **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/`). Each tab has its own Append/Override switch and Markdown preview.
|
|
@@ -162,7 +164,7 @@ The **Edit System Prompt** modal (Preferences → Expert Settings) is tabbed:
|
|
|
162
164
|
|
|
163
165
|
## Star History
|
|
164
166
|
|
|
165
|
-
[](https://www.star-history.com/?repos=weiesky%2Fcc-viewer&type=date&legend=top-left)
|
|
166
168
|
|
|
167
169
|
## License
|
|
168
170
|
|
package/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
11
11
|
import { homedir } from 'node:os';
|
|
12
12
|
import { spawn } from 'node:child_process';
|
|
13
13
|
import { t } from './server/i18n.js';
|
|
14
|
-
import { INJECT_IMPORT, LEGACY_INJECT_IMPORTS, resolveCliPath, resolveNativePath, resolveNpmClaudePath, buildShellCandidates, setLogDir, LOG_DIR, hasClaude2xWrapper, getGlobalNodeModulesDir, PACKAGES, getClaudeConfigDir, isBrowserOpenSuppressed } from './findcc.js';
|
|
14
|
+
import { INJECT_IMPORT, LEGACY_INJECT_IMPORTS, resolveCliPath, resolveNativePath, resolveNpmClaudePath, buildShellCandidates, setLogDir, LOG_DIR, hasClaude2xWrapper, getGlobalNodeModulesDir, PACKAGES, getClaudeConfigDir, isBrowserOpenSuppressed, applyAgentTeamsDefault } from './findcc.js';
|
|
15
15
|
import { ensureHooks, removeAllManagedHooks } from './server/lib/ensure-hooks.js';
|
|
16
16
|
import { injectCliJsAt, removeCliJsInjectionAt, INJECT_START as _INJECT_START, INJECT_END as _INJECT_END, buildInjectBlock as _buildInjectBlock } from './server/lib/cli-inject.js';
|
|
17
17
|
import { normalizeBasePath } from './server/lib/base-path.js';
|
|
@@ -19,6 +19,11 @@ import { createHardenedCleanup, installWinKeypressFallback } from './server/lib/
|
|
|
19
19
|
|
|
20
20
|
const __dirname = fileURLToPath(new URL('.', import.meta.url));
|
|
21
21
|
|
|
22
|
+
// Default agent-teams (UltraPlan / AgentTeam) on unless the user explicitly
|
|
23
|
+
// configured the flag (shell env or settings.json). Runs before any mode dispatch,
|
|
24
|
+
// so the value is inherited by the spawned claude and reported by /api/claude-settings.
|
|
25
|
+
applyAgentTeamsDefault();
|
|
26
|
+
|
|
22
27
|
// Injection marker constants are defined in server/lib/cli-inject.js (for testability);
|
|
23
28
|
// This file only re-exports them for use by helpers and hooks, preserving existing behavior.
|
|
24
29
|
const INJECT_START = _INJECT_START;
|