cc-viewer 1.6.341 → 1.6.342

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 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" />
@@ -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;