claude-cli-analytics 0.0.6 → 0.0.7
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/server/analyzer.js +12 -1
- package/package.json +1 -1
package/dist/server/analyzer.js
CHANGED
|
@@ -608,6 +608,9 @@ export function getSessionDetail(projectsDir, sessionId, projectPath) {
|
|
|
608
608
|
else if (nameLower === 'glob') {
|
|
609
609
|
detail = `${input.pattern || ''} in ${input.path || ''}`;
|
|
610
610
|
}
|
|
611
|
+
else if (nameLower === 'skill') {
|
|
612
|
+
detail = input.skill || '';
|
|
613
|
+
}
|
|
611
614
|
else if (nameLower === 'task') {
|
|
612
615
|
detail = input.description || '';
|
|
613
616
|
}
|
|
@@ -748,12 +751,20 @@ export function getSessionDetail(projectsDir, sessionId, projectPath) {
|
|
|
748
751
|
skills_loaded: (() => {
|
|
749
752
|
const skills = [];
|
|
750
753
|
const seen = new Set();
|
|
751
|
-
// Collect slash commands used
|
|
754
|
+
// Collect slash commands used and AI-invoked skills
|
|
752
755
|
for (const msg of messages) {
|
|
753
756
|
if (msg.skill_name && !seen.has(`cmd:${msg.skill_name}`)) {
|
|
754
757
|
seen.add(`cmd:${msg.skill_name}`);
|
|
755
758
|
skills.push({ name: msg.skill_name, type: 'command' });
|
|
756
759
|
}
|
|
760
|
+
for (const tu of msg.tool_uses) {
|
|
761
|
+
if (tu.name.toLowerCase() === 'skill' && tu.detail) {
|
|
762
|
+
if (!seen.has(`cmd:${tu.detail}`)) {
|
|
763
|
+
seen.add(`cmd:${tu.detail}`);
|
|
764
|
+
skills.push({ name: tu.detail, type: 'command' });
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
757
768
|
}
|
|
758
769
|
// Collect .claude/ spec files read (commands, settings, etc.)
|
|
759
770
|
for (const msg of messages) {
|