cc-viewer 1.4.5 → 1.4.6

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
@@ -81,6 +81,7 @@ Click the "Conversation Mode" button in the top-right corner to parse the Main A
81
81
  - User selection messages (AskUserQuestion) are displayed in a Q&A format
82
82
  - Bidirectional mode sync: switching to Conversation Mode automatically navigates to the conversation corresponding to the selected request; switching back to Raw Mode automatically navigates to the selected request
83
83
  - Settings panel: toggle the default collapsed state of tool results and thinking blocks
84
+ - Mobile chat browse: in mobile CLI mode, tap the "Chat Browse" button in the top bar to slide in a read-only chat view overlay, allowing you to browse the full conversation history on your phone
84
85
 
85
86
 
86
87
  ### Statistics Tool
package/cli.js CHANGED
@@ -32,6 +32,27 @@ function getShellConfigPath() {
32
32
  }
33
33
 
34
34
  function buildShellHook(isNative) {
35
+ // Commands/flags that should pass through directly without ccv interception
36
+ // These are non-interactive commands that don't involve API calls
37
+ const passthroughCommands = [
38
+ // Subcommands (no API calls)
39
+ 'doctor', // health check for auto-updater
40
+ 'install', // install native build
41
+ 'update', // self-update
42
+ 'upgrade', // alias for update
43
+ 'auth', // authentication management
44
+ 'setup-token', // token setup
45
+ 'agents', // list configured agents
46
+ 'plugin', // plugin management
47
+ 'mcp', // MCP server configuration
48
+ ];
49
+
50
+ const passthroughFlags = [
51
+ // Version/help info
52
+ '--version', '-v', '--v',
53
+ '--help', '-h',
54
+ ];
55
+
35
56
  if (isNative) {
36
57
  return `${SHELL_HOOK_START}
37
58
  claude() {
@@ -41,6 +62,17 @@ claude() {
41
62
  command claude "$@"
42
63
  return
43
64
  fi
65
+ # Pass through certain commands directly without ccv interception
66
+ case "$1" in
67
+ ${passthroughCommands.join('|')})
68
+ command claude "$@"
69
+ return
70
+ ;;
71
+ ${passthroughFlags.join('|')})
72
+ command claude "$@"
73
+ return
74
+ ;;
75
+ esac
44
76
  ccv run -- claude --ccv-internal "$@"
45
77
  }
46
78
  ${SHELL_HOOK_END}`;