cc-viewer 1.5.10 → 1.5.12
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/cli.js +13 -0
- package/dist/assets/index-Db56U3Ow.js +715 -0
- package/dist/assets/index-DuRhaLLC.css +41 -0
- package/dist/index.html +2 -2
- package/interceptor.js +7 -2
- package/package.json +16 -1
- package/pty-manager.js +5 -1
- package/server.js +150 -0
- package/dist/assets/index-joG2LDF_.css +0 -41
- package/dist/assets/index-sP2Qs6ig.js +0 -679
package/cli.js
CHANGED
|
@@ -44,6 +44,7 @@ function buildShellHook(isNative) {
|
|
|
44
44
|
'setup-token', // token setup
|
|
45
45
|
'agents', // list configured agents
|
|
46
46
|
'plugin', // plugin management
|
|
47
|
+
'plugins', // alias for plugin
|
|
47
48
|
'mcp', // MCP server configuration
|
|
48
49
|
];
|
|
49
50
|
|
|
@@ -81,6 +82,17 @@ ${SHELL_HOOK_END}`;
|
|
|
81
82
|
const candidates = buildShellCandidates();
|
|
82
83
|
return `${SHELL_HOOK_START}
|
|
83
84
|
claude() {
|
|
85
|
+
# Pass through certain commands directly without ccv interception
|
|
86
|
+
case "$1" in
|
|
87
|
+
${passthroughCommands.join('|')})
|
|
88
|
+
command claude "$@"
|
|
89
|
+
return
|
|
90
|
+
;;
|
|
91
|
+
${passthroughFlags.join('|')})
|
|
92
|
+
command claude "$@"
|
|
93
|
+
return
|
|
94
|
+
;;
|
|
95
|
+
esac
|
|
84
96
|
local cli_js=""
|
|
85
97
|
for candidate in ${candidates}; do
|
|
86
98
|
if [ -f "$candidate" ]; then
|
|
@@ -259,6 +271,7 @@ async function runCliMode(extraClaudeArgs = [], cwd) {
|
|
|
259
271
|
// server.js 的 isCliMode 在模块顶层求值且只执行一次)
|
|
260
272
|
process.env.CCV_CLI_MODE = '1';
|
|
261
273
|
process.env.CCV_PROJECT_DIR = workingDir;
|
|
274
|
+
process.env.CCV_PROXY_MODE = '1';
|
|
262
275
|
|
|
263
276
|
// 1. 启动代理
|
|
264
277
|
const { startProxy } = await import('./proxy.js');
|