claude-code-templates 1.24.15 → 1.24.17
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.
|
@@ -132,14 +132,6 @@ function saveFilesToDirectory(files: { path: string; content: string }[], baseDi
|
|
|
132
132
|
fs.mkdirSync(baseDir, { recursive: true });
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
console.log('');
|
|
136
|
-
printSeparator();
|
|
137
|
-
console.log(`${colors.bright}💾 DOWNLOADING FILES${colors.reset}`);
|
|
138
|
-
printSeparator();
|
|
139
|
-
console.log('');
|
|
140
|
-
console.log(`${colors.cyan}Output directory:${colors.reset} ${baseDir}`);
|
|
141
|
-
console.log('');
|
|
142
|
-
|
|
143
135
|
files.forEach(file => {
|
|
144
136
|
const fullPath = path.join(baseDir, file.path);
|
|
145
137
|
const dir = path.dirname(fullPath);
|
|
@@ -151,7 +143,7 @@ function saveFilesToDirectory(files: { path: string; content: string }[], baseDi
|
|
|
151
143
|
|
|
152
144
|
// Write file
|
|
153
145
|
fs.writeFileSync(fullPath, file.content, 'utf-8');
|
|
154
|
-
log(
|
|
146
|
+
log(`✓ ${file.path}`, 'success');
|
|
155
147
|
});
|
|
156
148
|
|
|
157
149
|
console.log('');
|
|
@@ -370,39 +362,17 @@ async function installAgents(agents: string[]): Promise<void> {
|
|
|
370
362
|
|
|
371
363
|
function displayResults(result: ExecutionResult, targetDir?: string) {
|
|
372
364
|
console.log('');
|
|
373
|
-
printSeparator();
|
|
374
|
-
console.log(`${colors.bright}📊 EXECUTION RESULTS${colors.reset}`);
|
|
375
|
-
printSeparator();
|
|
376
|
-
console.log('');
|
|
377
|
-
|
|
378
|
-
console.log(`${colors.cyan}Question:${colors.reset} ${result.question}`);
|
|
379
|
-
console.log('');
|
|
380
|
-
|
|
381
|
-
console.log(`${colors.cyan}Generated Code:${colors.reset}`);
|
|
382
|
-
printSeparator('-');
|
|
383
|
-
console.log(result.code);
|
|
384
|
-
printSeparator('-');
|
|
385
|
-
console.log('');
|
|
386
|
-
|
|
387
|
-
if (result.output) {
|
|
388
|
-
console.log(`${colors.cyan}Output:${colors.reset}`);
|
|
389
|
-
console.log(result.output);
|
|
390
|
-
console.log('');
|
|
391
|
-
}
|
|
392
365
|
|
|
393
366
|
if (result.error) {
|
|
394
|
-
console.log(`${colors.red}Error:${colors.reset}`);
|
|
395
|
-
console.log(result.error);
|
|
367
|
+
console.log(`${colors.red}❌ Error:${colors.reset} ${result.error}`);
|
|
396
368
|
console.log('');
|
|
369
|
+
return;
|
|
397
370
|
}
|
|
398
371
|
|
|
399
372
|
if (result.sandboxId) {
|
|
400
|
-
|
|
373
|
+
log(`Sandbox ID: ${result.sandboxId}`);
|
|
401
374
|
}
|
|
402
375
|
|
|
403
|
-
console.log(`${colors.green}Status:${colors.reset} ${result.success ? 'Success ✓' : 'Failed ✗'}`);
|
|
404
|
-
printSeparator();
|
|
405
|
-
|
|
406
376
|
// Extract and save files
|
|
407
377
|
const files = extractFilesFromCode(result.code);
|
|
408
378
|
if (files.length > 0) {
|
|
@@ -410,6 +380,11 @@ function displayResults(result: ExecutionResult, targetDir?: string) {
|
|
|
410
380
|
const timestamp = Date.now().toString(36);
|
|
411
381
|
const baseDir = targetDir || process.cwd();
|
|
412
382
|
const outputDir = path.join(baseDir, `cloudflare-${timestamp}`);
|
|
383
|
+
|
|
384
|
+
console.log('');
|
|
385
|
+
printSeparator();
|
|
386
|
+
log(`Downloading ${files.length} file(s)...`);
|
|
387
|
+
console.log('');
|
|
413
388
|
saveFilesToDirectory(files, outputDir);
|
|
414
389
|
}
|
|
415
390
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-templates",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.17",
|
|
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": {
|