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.
Files changed (31) hide show
  1. package/README.md +4 -2
  2. package/cli.js +6 -1
  3. package/dist/assets/App-DkT8kHeT.js +2 -0
  4. package/dist/assets/App-Pkp5KFXT.css +1 -0
  5. package/dist/assets/{MdxEditorPanel-C-J9zemB.js → MdxEditorPanel-DJtY-RZu.js} +1 -1
  6. package/dist/assets/{Mobile-yWAU0Wid.js → Mobile-BSe9GgwO.js} +1 -1
  7. package/dist/assets/index-5v2dgTRS.js +2 -0
  8. package/dist/assets/{seqResourceLoaders-Deco0hhe.js → seqResourceLoaders-BlUz36Ig.js} +2 -2
  9. package/dist/assets/seqResourceLoaders-g06U0FFU.css +41 -0
  10. package/dist/index.html +1 -1
  11. package/findcc.js +17 -1
  12. package/package.json +1 -1
  13. package/server/lib/create_system_prompt.js +504 -0
  14. package/server/lib/system-prompt-presets.js +67 -0
  15. package/server/routes/expert.js +18 -0
  16. package/server/system-prompt-templates/presets/GLM-5.2.md +63 -0
  17. package/server/system-prompt-templates/presets/Qwen-3.7-Max.md +63 -0
  18. package/server/system-prompt-templates/presets/deepseek-v4-flash.md +60 -0
  19. package/server/system-prompt-templates/presets/deepseek-v4-pro.md +65 -0
  20. package/server/system-prompt-templates/presets/index.json +39 -0
  21. package/server/system-prompt-templates/reference/claude-code-cli-startup-options.md +325 -0
  22. package/server/system-prompt-templates/reference/prompt-control-tokens-deepseek-v4.md +178 -0
  23. package/server/system-prompt-templates/reference/prompt-control-tokens-qwen3.md +227 -0
  24. package/server/system-prompt-templates/reference/prompt-xml-tags-fable-5.md +101 -0
  25. package/server/system-prompt-templates/reference/prompt-xml-tags-opus-4-8.md +113 -0
  26. package/server/system-prompt-templates/systemPromptModel.md +168 -0
  27. package/server/system-prompt-templates/systemPromptVariables.md +113 -0
  28. package/dist/assets/App-DhRbGaoC.css +0 -1
  29. package/dist/assets/App-Dp2WJHli.js +0 -2
  30. package/dist/assets/index-CXwhCdjW.js +0 -2
  31. 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 (PreferencesExpert Settings) is tabbed:
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
- [![Star History Chart](https://api.star-history.com/chart?repos=weiesky/cc-viewer&type=date&legend=bottom-right)](https://www.star-history.com/?repos=weiesky%2Fcc-viewer&type=date&legend=bottom-right)
167
+ [![Star History Chart](https://api.star-history.com/chart?repos=weiesky/cc-viewer&type=date&legend=top-left&sealed_token=j2X2_c0TE1YPvV14JRmosH_FQhqDbWyTVlXO7A-LrTISexkOoasVDprqJ6Pp0fsRHbAZlwMNMHkoqEk1uD_3vTYaT9lJW3bFbO17293VsptQjoDRtsdjCQ)](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;