@almyty/acp-server 1.0.11 → 1.0.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.
- package/dist/agent.js +0 -4
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -260,7 +260,6 @@ export class AlmytyAcpAgent {
|
|
|
260
260
|
if (event.event === 'execution.error' || event.event === 'run.error') {
|
|
261
261
|
return {
|
|
262
262
|
stopReason: 'end_turn',
|
|
263
|
-
content: [{ type: 'text', text: collectedText.join('') || 'Execution failed.' }],
|
|
264
263
|
};
|
|
265
264
|
}
|
|
266
265
|
}
|
|
@@ -281,14 +280,12 @@ export class AlmytyAcpAgent {
|
|
|
281
280
|
});
|
|
282
281
|
return {
|
|
283
282
|
stopReason: 'end_turn',
|
|
284
|
-
content: [{ type: 'text', text }],
|
|
285
283
|
};
|
|
286
284
|
}
|
|
287
285
|
catch (invokeErr) {
|
|
288
286
|
const errMsg = invokeErr instanceof Error ? invokeErr.message : String(invokeErr);
|
|
289
287
|
return {
|
|
290
288
|
stopReason: 'end_turn',
|
|
291
|
-
content: [{ type: 'text', text: `Error: ${errMsg}` }],
|
|
292
289
|
};
|
|
293
290
|
}
|
|
294
291
|
}
|
|
@@ -420,7 +417,6 @@ export class AlmytyAcpAgent {
|
|
|
420
417
|
const errMsg = err instanceof Error ? err.message : String(err);
|
|
421
418
|
return {
|
|
422
419
|
stopReason: 'end_turn',
|
|
423
|
-
content: [{ type: 'text', text: `Error: ${errMsg}` }],
|
|
424
420
|
};
|
|
425
421
|
}
|
|
426
422
|
}
|