cc-viewer 1.5.11 → 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 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');