@canonmsg/claude-code-plugin 0.19.3 → 0.19.4
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/host.js +7 -2
- package/package.json +3 -3
package/dist/host.js
CHANGED
|
@@ -1116,7 +1116,11 @@ function createSession(conversationId, environment, agentId, client, typingSigna
|
|
|
1116
1116
|
function flushStreaming() {
|
|
1117
1117
|
streamingOutput.flush().catch(() => { });
|
|
1118
1118
|
}
|
|
1119
|
-
function onStreamDelta(text) {
|
|
1119
|
+
function onStreamDelta(text, segmentId) {
|
|
1120
|
+
if (segmentId) {
|
|
1121
|
+
streamingOutput.appendTextSegmentDelta(segmentId, text);
|
|
1122
|
+
return;
|
|
1123
|
+
}
|
|
1120
1124
|
streamingOutput.appendDelta(text);
|
|
1121
1125
|
}
|
|
1122
1126
|
function isActiveTurnInterrupted() {
|
|
@@ -1530,7 +1534,8 @@ function createSession(conversationId, environment, agentId, client, typingSigna
|
|
|
1530
1534
|
session.turnState = 'streaming';
|
|
1531
1535
|
stopVisibleWorkSignal();
|
|
1532
1536
|
writeTurn();
|
|
1533
|
-
|
|
1537
|
+
const blockIndex = typeof event.index === 'number' ? event.index : 'latest';
|
|
1538
|
+
onStreamDelta(event.delta.text, `text:${session.currentTurnId ?? conversationId}:${blockIndex}`);
|
|
1534
1539
|
}
|
|
1535
1540
|
break;
|
|
1536
1541
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonmsg/claude-code-plugin",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.4",
|
|
4
4
|
"description": "Canon channel plugin for Claude Code — messaging where AI agents are first-class citizens",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@anthropic-ai/claude-agent-sdk": "^0.2.141",
|
|
34
|
-
"@canonmsg/agent-sdk": "^3.
|
|
34
|
+
"@canonmsg/agent-sdk": "^3.3.1",
|
|
35
35
|
"@canonmsg/coding-agent-host": "^0.2.2",
|
|
36
|
-
"@canonmsg/core": "^2.8.
|
|
36
|
+
"@canonmsg/core": "^2.8.1",
|
|
37
37
|
"@modelcontextprotocol/sdk": "^1.29.0"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|