@ycodium-ai/agent-acp 0.2.2092 → 0.2.2106

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.
Files changed (2) hide show
  1. package/dist/index.js +24 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -24261,7 +24261,7 @@ function makeAcpContentDeltaEvent(input2) {
24261
24261
  ...input2.turnId !== void 0 ? { turnId: input2.turnId } : {},
24262
24262
  ...input2.itemId ? { itemId: input2.itemId } : {},
24263
24263
  payload: {
24264
- streamKind: "assistant_text",
24264
+ streamKind: input2.streamKind ?? "assistant_text",
24265
24265
  delta: input2.text
24266
24266
  },
24267
24267
  raw: {
@@ -24945,21 +24945,24 @@ function parseSessionUpdateEvent(params) {
24945
24945
  }
24946
24946
  break;
24947
24947
  }
24948
- case "agent_message_chunk": {
24948
+ case "agent_message_chunk":
24949
+ case "agent_thought_chunk": {
24949
24950
  const content = isRecord3(upd["content"]) ? upd["content"] : void 0;
24950
24951
  const contentType = content?.["type"];
24952
+ const streamKind = kind === "agent_thought_chunk" ? "reasoning_text" : "assistant_text";
24951
24953
  if (contentType === "text") {
24952
24954
  const text = typeof content?.["text"] === "string" ? content["text"] : "";
24953
24955
  if (text.length > 0) {
24954
24956
  events.push({
24955
24957
  _tag: "ContentDelta",
24956
24958
  text,
24959
+ streamKind,
24957
24960
  rawPayload: params
24958
24961
  });
24959
24962
  }
24960
24963
  break;
24961
24964
  }
24962
- if (content && contentType !== "audio") {
24965
+ if (streamKind === "assistant_text" && content && contentType !== "audio") {
24963
24966
  events.push({
24964
24967
  _tag: "AssistantContentBlock",
24965
24968
  content,
@@ -25175,6 +25178,23 @@ function createAcpExecutor(options) {
25175
25178
  continue;
25176
25179
  }
25177
25180
  if (event._tag === "ContentDelta") {
25181
+ if (event.streamKind === "reasoning_text") {
25182
+ if (event.text.trim().length === 0) {
25183
+ continue;
25184
+ }
25185
+ emit(
25186
+ makeAcpContentDeltaEvent({
25187
+ stamp: stamp(),
25188
+ provider: options.provider,
25189
+ threadId: options.threadId,
25190
+ turnId: activeTurnId,
25191
+ text: event.text,
25192
+ streamKind: "reasoning_text",
25193
+ rawPayload: event.rawPayload
25194
+ })
25195
+ );
25196
+ continue;
25197
+ }
25178
25198
  if (event.text.trim().length === 0 && !assistantSegment.activeItemId) {
25179
25199
  continue;
25180
25200
  }
@@ -25187,6 +25207,7 @@ function createAcpExecutor(options) {
25187
25207
  turnId: activeTurnId,
25188
25208
  ...itemId ? { itemId } : {},
25189
25209
  text: event.text,
25210
+ streamKind: "assistant_text",
25190
25211
  rawPayload: event.rawPayload
25191
25212
  })
25192
25213
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-acp",
3
- "version": "0.2.2092",
3
+ "version": "0.2.2106",
4
4
  "description": "Generic ACP executor: user-supplied CLI over Agent Client Protocol stdio.",
5
5
  "keywords": [
6
6
  "ycodium",
@@ -20,9 +20,9 @@
20
20
  "@types/node": "24.12.4",
21
21
  "esbuild": "0.28.1",
22
22
  "vite-plus": "0.2.2",
23
- "@ycodium-ai/plugin-api": "0.2.2092",
23
+ "ycodium-acp-executor": "0.0.0",
24
24
  "ycodium-acp-protocol": "0.0.0",
25
- "ycodium-acp-executor": "0.0.0"
25
+ "@ycodium-ai/plugin-api": "0.2.2106"
26
26
  },
27
27
  "ycodium": {
28
28
  "plugin": "./dist/index.js",