claude-code-templates 1.24.13 → 1.24.14
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.
|
@@ -270,7 +270,15 @@ Requirements:
|
|
|
270
270
|
|
|
271
271
|
try {
|
|
272
272
|
for await (const message of query({ prompt: promptContent, options })) {
|
|
273
|
-
|
|
273
|
+
// The Agent SDK returns different message types:
|
|
274
|
+
// - 'system': Initialization info
|
|
275
|
+
// - 'assistant': Individual API responses
|
|
276
|
+
// - 'result': Final aggregated result (THIS is what we need!)
|
|
277
|
+
if (message.type === 'result' && message.result) {
|
|
278
|
+
generatedCode = message.result;
|
|
279
|
+
log(`Received result (${message.result.length} chars)`, 'success');
|
|
280
|
+
} else if (message.type === 'text' && message.text) {
|
|
281
|
+
// Fallback for older SDK versions
|
|
274
282
|
generatedCode += message.text;
|
|
275
283
|
}
|
|
276
284
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-templates",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.14",
|
|
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": {
|