cc-viewer 1.6.15 → 1.6.16

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/dist/index.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>Claude Code Viewer</title>
7
7
  <link rel="icon" href="/favicon.ico?v=1">
8
8
  <link rel="shortcut icon" href="/favicon.ico?v=1">
9
- <script type="module" crossorigin src="/assets/index-DrOfiUVQ.js"></script>
9
+ <script type="module" crossorigin src="/assets/index-D6AEj7Mx.js"></script>
10
10
  <link rel="stylesheet" crossorigin href="/assets/index-CVCiS6Zl.css">
11
11
  </head>
12
12
  <body>
@@ -77,12 +77,12 @@ export function extractToolResultText(toolResult) {
77
77
  }
78
78
 
79
79
  /**
80
- * Extract cached content from a single MainAgent log entry.
81
- * Returns null if the entry is not a MainAgent entry.
80
+ * Extract cached content from a single log entry (MainAgent or SubAgent).
81
+ * Returns null if the entry has no body; returns object with empty arrays
82
+ * if no cache_control markers are found.
82
83
  */
83
84
  export function extractCachedContent(entry) {
84
- if (!isMainAgentEntry(entry)) return null;
85
- if (!entry.body) return null;
85
+ if (!entry?.body) return null;
86
86
 
87
87
  const body = entry.body;
88
88
  const usage = entry.response?.body?.usage;
@@ -104,7 +104,7 @@ export function extractCachedContent(entry) {
104
104
  if (lastCacheIndex >= 0) {
105
105
  for (let i = 0; i <= lastCacheIndex; i++) {
106
106
  const block = body.system[i];
107
- if (block.type === 'text' && block.text && block.cache_control) result.system.push(block.text);
107
+ if (block.type === 'text' && block.text) result.system.push(block.text);
108
108
  }
109
109
  }
110
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-viewer",
3
- "version": "1.6.15",
3
+ "version": "1.6.16",
4
4
  "description": "Claude Code Logger visualization management tool",
5
5
  "license": "MIT",
6
6
  "main": "server.js",