claude-code-templates 1.3.6 → 1.3.8
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/file-operations.js +7 -4
package/package.json
CHANGED
package/src/file-operations.js
CHANGED
|
@@ -160,10 +160,13 @@ async function runPostInstallationValidation(targetDir, templateConfig) {
|
|
|
160
160
|
const validationPrompt = createValidationPrompt(templateConfig);
|
|
161
161
|
|
|
162
162
|
// Run claude command with validation prompt as a task
|
|
163
|
-
|
|
163
|
+
// Escape quotes in the prompt and create proper shell command
|
|
164
|
+
const escapedPrompt = validationPrompt.replace(/"/g, '\\"');
|
|
165
|
+
const claudeCommand = `claude "${escapedPrompt}"`;
|
|
166
|
+
|
|
167
|
+
const claudeProcess = spawn('sh', ['-c', claudeCommand], {
|
|
164
168
|
cwd: targetDir,
|
|
165
|
-
stdio: 'inherit'
|
|
166
|
-
shell: true
|
|
169
|
+
stdio: 'inherit'
|
|
167
170
|
});
|
|
168
171
|
|
|
169
172
|
claudeProcess.on('error', (error) => {
|
|
@@ -193,7 +196,7 @@ function createValidationPrompt(templateConfig) {
|
|
|
193
196
|
const language = templateConfig.language || 'unknown';
|
|
194
197
|
const framework = templateConfig.framework || 'none';
|
|
195
198
|
|
|
196
|
-
return `
|
|
199
|
+
return `Validate Claude Code Templates installation for this ${language}${framework !== 'none' ? ` ${framework}` : ''} project. 1) Check project structure (package.json, src/, etc.) 2) Review CLAUDE.md, .claude/settings.json, .claude/commands/ 3) Compare with actual project dependencies 4) Suggest specific improvements. Make configuration match this project's actual setup.`;
|
|
197
200
|
}
|
|
198
201
|
|
|
199
202
|
async function processSettingsFile(sourcePath, destPath, templateConfig) {
|