@almyty/acp-server 1.0.7 → 1.0.10
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/dist/agent.js +2 -1
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -213,7 +213,8 @@ export class AlmytyAcpAgent {
|
|
|
213
213
|
throw new JsonRpcError(INVALID_PARAMS, `Session not found: ${sessionId}`);
|
|
214
214
|
}
|
|
215
215
|
// Extract text from ContentBlock array
|
|
216
|
-
|
|
216
|
+
// ACP spec uses "prompt", some clients send "content"
|
|
217
|
+
const content = (params.prompt || params.content);
|
|
217
218
|
const inputText = extractTextFromContent(content);
|
|
218
219
|
if (!inputText) {
|
|
219
220
|
throw new JsonRpcError(INVALID_PARAMS, 'No text content in prompt');
|