opencara 0.104.0 → 0.104.1
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/bin.js +1 -1
- package/dist/claude-acp.js +0 -14
- package/package.json +1 -1
package/dist/bin.js
CHANGED
package/dist/claude-acp.js
CHANGED
|
@@ -132,20 +132,6 @@ function handleClaudeEvent(sessionId, raw, done) {
|
|
|
132
132
|
const msg = raw;
|
|
133
133
|
const type = typeof msg["type"] === "string" ? msg["type"] : "";
|
|
134
134
|
if (type === "assistant") {
|
|
135
|
-
const message = msg["message"];
|
|
136
|
-
const blocks = message?.content ?? [];
|
|
137
|
-
for (const block of blocks) {
|
|
138
|
-
if (block?.type !== "text") continue;
|
|
139
|
-
const text = typeof block.text === "string" ? block.text : "";
|
|
140
|
-
if (text.length === 0) continue;
|
|
141
|
-
notify("session/update", {
|
|
142
|
-
sessionId,
|
|
143
|
-
update: {
|
|
144
|
-
sessionUpdate: "agent_message_chunk",
|
|
145
|
-
content: { type: "text", text }
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
135
|
return;
|
|
150
136
|
}
|
|
151
137
|
if (type === "stream_event") {
|