claude-code-templates 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/package.json +1 -1
- package/src/analytics.js +7 -2
- package/src/index.js +7 -0
- package/src/prompts.js +10 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-templates",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.12",
|
|
4
4
|
"description": "CLI tool to setup Claude Code configurations with framework-specific commands, automation hooks and MCP Servers for your projects",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
package/src/analytics.js
CHANGED
|
@@ -905,12 +905,17 @@ async function createWebDashboard() {
|
|
|
905
905
|
}
|
|
906
906
|
|
|
907
907
|
.status-square {
|
|
908
|
-
width: 10px;
|
|
909
|
-
height: 10px;
|
|
908
|
+
width: 10px !important;
|
|
909
|
+
height: 10px !important;
|
|
910
|
+
min-width: 10px !important;
|
|
911
|
+
min-height: 10px !important;
|
|
912
|
+
max-width: 10px !important;
|
|
913
|
+
max-height: 10px !important;
|
|
910
914
|
border-radius: 2px;
|
|
911
915
|
cursor: help;
|
|
912
916
|
position: relative;
|
|
913
917
|
flex-shrink: 0;
|
|
918
|
+
box-sizing: border-box;
|
|
914
919
|
}
|
|
915
920
|
|
|
916
921
|
.status-square.success {
|
package/src/index.js
CHANGED
|
@@ -81,6 +81,13 @@ async function createClaudeConfig(options = {}) {
|
|
|
81
81
|
console.log(chalk.yellow('⏹️ Setup cancelled by user.'));
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
|
+
|
|
85
|
+
// Handle analytics option from onboarding
|
|
86
|
+
if (config.analytics) {
|
|
87
|
+
console.log(chalk.blue('📊 Launching Claude Code Analytics Dashboard...'));
|
|
88
|
+
await runAnalytics(options);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
84
91
|
|
|
85
92
|
// Get template configuration
|
|
86
93
|
const templateConfig = getTemplateConfig(config);
|
package/src/prompts.js
CHANGED
|
@@ -17,7 +17,7 @@ async function interactivePrompts(projectInfo, options = {}) {
|
|
|
17
17
|
// Build steps array based on options
|
|
18
18
|
if (!options.language) state.steps.push('language');
|
|
19
19
|
if (!options.framework) state.steps.push('framework');
|
|
20
|
-
state.steps.push('commands', 'hooks', 'mcps', 'confirm');
|
|
20
|
+
state.steps.push('commands', 'hooks', 'mcps', 'analytics', 'confirm');
|
|
21
21
|
|
|
22
22
|
while (state.currentStep < state.steps.length) {
|
|
23
23
|
const stepName = state.steps[state.currentStep];
|
|
@@ -188,6 +188,15 @@ function getStepConfig(stepName, currentAnswers, projectInfo, options) {
|
|
|
188
188
|
pageSize: 15
|
|
189
189
|
};
|
|
190
190
|
|
|
191
|
+
case 'analytics':
|
|
192
|
+
return {
|
|
193
|
+
type: 'confirm',
|
|
194
|
+
name: 'analytics',
|
|
195
|
+
message: 'Launch Claude Code Analytics Dashboard? (Real-time monitoring of your Claude Code usage)',
|
|
196
|
+
default: false,
|
|
197
|
+
prefix: chalk.blue('📊')
|
|
198
|
+
};
|
|
199
|
+
|
|
191
200
|
case 'confirm':
|
|
192
201
|
const confirmLanguage = currentAnswers.language || options.language || 'common';
|
|
193
202
|
const confirmFramework = currentAnswers.framework || options.framework || 'none';
|