cc-viewer 1.6.340 → 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 +9 -7
- package/cli.js +6 -1
- package/dist/assets/{App-dxurJZOc.js → App-BFcpzWEl.js} +1 -1
- package/dist/assets/App-D5BI6yGO.css +1 -0
- package/dist/assets/{MdxEditorPanel-cmncg1dk.js → MdxEditorPanel-CaDMFlsk.js} +1 -1
- package/dist/assets/{Mobile-8qTc8tgy.js → Mobile-C22UBGse.js} +1 -1
- package/dist/assets/index-CtSbjm-X.js +2 -0
- package/dist/assets/seqResourceLoaders-BqKidNto.js +2 -0
- 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/code-replace.js +208 -0
- package/server/lib/code-search.js +480 -0
- package/server/lib/context-watcher.js +59 -10
- package/server/lib/system-prompt-files.js +2 -0
- package/server/pty-manager.js +13 -3
- package/server/routes/search.js +133 -0
- package/server/routes/workspaces.js +2 -1
- package/server/server.js +2 -0
- package/dist/assets/App-CtNuVMnv.css +0 -1
- package/dist/assets/index-vxFqQRE8.js +0 -2
- package/dist/assets/seqResourceLoaders-BKzkcT2J.js +0 -2
- package/dist/assets/seqResourceLoaders-H2_MWgbi.css +0 -41
package/README.md
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
<img height="200" width="1500" alt="CC-Viewer" src="https://github.com/user-attachments/assets/abec0513-1d56-4244-b7ed-9382b6c09049" />
|
|
2
2
|
|
|
3
|
-
As the author's account has been disabled by Claude Code, updates to the repository are paused for a few weeks.
|
|
4
|
-
|
|
5
|
-
The author is taking this opportunity to work on a multimodal project.
|
|
6
|
-
|
|
7
|
-
If there are any critical bugs requiring fixes, please submit them via the issues section; they can still be addressed.
|
|
8
|
-
|
|
9
3
|
# CC-Viewer
|
|
10
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
|
+
|
|
11
7
|
Based on Claude Code, a Vibe Coding tool that distills and accumulates real development experience:
|
|
12
8
|
|
|
13
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" />
|
|
@@ -120,6 +116,12 @@ You can view the code diff directly right after an edit:
|
|
|
120
116
|
|
|
121
117
|
While you can open files and code by hand, that's not recommended — that's the old-school way!
|
|
122
118
|
|
|
119
|
+
### Code search
|
|
120
|
+
|
|
121
|
+
The activity bar includes a VS Code-style **Search across files** view (the magnifier icon, next to File Explorer and Git). Type a keyword or regular expression and get matches grouped by file with the matched text highlighted; click a result to jump straight to that line with the match selected. The usual toggles are there — **Match Case**, **Match Whole Word**, **Use Regular Expression**, and a "…" expander for **files to include / exclude** globs. Search is scoped to the current project and honors `.gitignore` (it uses [ripgrep](https://github.com/BurntSushi/ripgrep) when it's installed for speed, and falls back to a built-in scanner otherwise, so there's nothing extra to install).
|
|
122
|
+
|
|
123
|
+
You can also **replace across files**: expand the replace row (the chevron next to the search box), and each match shows an inline before/after preview. Replace a single match, all matches in one file, or everywhere (replace-all asks for confirmation first). Regex mode supports `$1`/`$&` capture-group substitution. Replacements write directly to disk — files with unsaved edits open in the viewer are skipped, and there's no built-in undo, so lean on version control to revert.
|
|
124
|
+
|
|
123
125
|
### Mobile programming
|
|
124
126
|
|
|
125
127
|
You can even scan a QR code and code from a mobile device:
|
|
@@ -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;
|