claude-code-templates 1.24.10 → 1.24.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.
|
@@ -199,6 +199,7 @@ async function executeDirectly(config: LauncherConfig): Promise<ExecutionResult>
|
|
|
199
199
|
|
|
200
200
|
try {
|
|
201
201
|
log('Generating code with Claude Agent SDK...');
|
|
202
|
+
log(`Working directory: ${process.cwd()}`);
|
|
202
203
|
|
|
203
204
|
// Detect if this is a web development request
|
|
204
205
|
const isWebRequest = /html|css|javascript|webpage|website|form|ui|interface|frontend/i.test(config.prompt);
|
|
@@ -231,14 +232,26 @@ Requirements:
|
|
|
231
232
|
- Do NOT include any explanations, ONLY code blocks with filenames`
|
|
232
233
|
: config.prompt;
|
|
233
234
|
|
|
235
|
+
// Load agent content if agents were installed
|
|
236
|
+
let agentSystemPrompt = '';
|
|
237
|
+
if (agents.length > 0) {
|
|
238
|
+
const agentPath = path.join(process.cwd(), '.claude', 'agents', `${agents[0].replace(/\//g, '-')}.md`);
|
|
239
|
+
if (fs.existsSync(agentPath)) {
|
|
240
|
+
agentSystemPrompt = fs.readFileSync(agentPath, 'utf-8');
|
|
241
|
+
log(`Loaded agent from: ${agentPath}`);
|
|
242
|
+
} else {
|
|
243
|
+
log(`Agent file not found: ${agentPath}`, 'warning');
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
234
247
|
// Configure Claude Agent SDK options
|
|
235
248
|
const options: ClaudeAgentOptions = {
|
|
236
249
|
model: 'claude-sonnet-4-5',
|
|
237
250
|
apiKey: config.anthropicApiKey,
|
|
238
|
-
// Use
|
|
239
|
-
systemPrompt:
|
|
240
|
-
|
|
241
|
-
|
|
251
|
+
// Use custom system prompt with agent content if available
|
|
252
|
+
systemPrompt: agentSystemPrompt
|
|
253
|
+
? { type: 'text', text: agentSystemPrompt }
|
|
254
|
+
: { type: 'preset', preset: 'claude_code' },
|
|
242
255
|
};
|
|
243
256
|
|
|
244
257
|
// Collect the full response
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-templates",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.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": {
|