claude-cli-analytics 0.0.5 → 0.0.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/dist/client/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>claude-analytics</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-C91ygWO-.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-BkOIudNK.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/dist/server/analyzer.js
CHANGED
|
@@ -744,7 +744,36 @@ export function getSessionDetail(projectsDir, sessionId, projectPath) {
|
|
|
744
744
|
danger_level: dangerLevel,
|
|
745
745
|
total_context_tokens: totalContextSent,
|
|
746
746
|
files_read: [...new Set(filesRead)],
|
|
747
|
-
spec_files_read: [...new Set(specFilesRead)]
|
|
747
|
+
spec_files_read: [...new Set(specFilesRead)],
|
|
748
|
+
skills_loaded: (() => {
|
|
749
|
+
const skills = [];
|
|
750
|
+
const seen = new Set();
|
|
751
|
+
// Collect slash commands used
|
|
752
|
+
for (const msg of messages) {
|
|
753
|
+
if (msg.skill_name && !seen.has(`cmd:${msg.skill_name}`)) {
|
|
754
|
+
seen.add(`cmd:${msg.skill_name}`);
|
|
755
|
+
skills.push({ name: msg.skill_name, type: 'command' });
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
// Collect .claude/ spec files read (commands, settings, etc.)
|
|
759
|
+
for (const msg of messages) {
|
|
760
|
+
for (const tu of msg.tool_uses) {
|
|
761
|
+
if (tu.category === 'read_spec' && tu.detail) {
|
|
762
|
+
const p = tu.detail;
|
|
763
|
+
if (!seen.has(`file:${p}`)) {
|
|
764
|
+
seen.add(`file:${p}`);
|
|
765
|
+
// Extract a friendly name from the path
|
|
766
|
+
const match = p.match(/\.claude\/commands\/([^/]+?)(?:\.\w+)?$/) ||
|
|
767
|
+
p.match(/\.claude\/([^/]+?)(?:\.\w+)?$/) ||
|
|
768
|
+
p.match(/([^/]+?)(?:\.\w+)?$/);
|
|
769
|
+
const name = match ? match[1] : p;
|
|
770
|
+
skills.push({ name, type: 'spec_file', path: p });
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
return skills;
|
|
776
|
+
})()
|
|
748
777
|
},
|
|
749
778
|
quality: {
|
|
750
779
|
read_count: readCount,
|