@ycodium-ai/agent-dsh 0.2.2078 → 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 +4 -4
package/dist/index.js CHANGED
@@ -24338,7 +24338,7 @@ function makeAcpContentDeltaEvent(input2) {
24338
24338
  ...input2.turnId !== void 0 ? { turnId: input2.turnId } : {},
24339
24339
  ...input2.itemId ? { itemId: input2.itemId } : {},
24340
24340
  payload: {
24341
- streamKind: "assistant_text",
24341
+ streamKind: input2.streamKind ?? "assistant_text",
24342
24342
  delta: input2.text
24343
24343
  },
24344
24344
  raw: {
@@ -25022,21 +25022,24 @@ function parseSessionUpdateEvent(params) {
25022
25022
  }
25023
25023
  break;
25024
25024
  }
25025
- case "agent_message_chunk": {
25025
+ case "agent_message_chunk":
25026
+ case "agent_thought_chunk": {
25026
25027
  const content = isRecord3(upd["content"]) ? upd["content"] : void 0;
25027
25028
  const contentType = content?.["type"];
25029
+ const streamKind = kind === "agent_thought_chunk" ? "reasoning_text" : "assistant_text";
25028
25030
  if (contentType === "text") {
25029
25031
  const text = typeof content?.["text"] === "string" ? content["text"] : "";
25030
25032
  if (text.length > 0) {
25031
25033
  events.push({
25032
25034
  _tag: "ContentDelta",
25033
25035
  text,
25036
+ streamKind,
25034
25037
  rawPayload: params
25035
25038
  });
25036
25039
  }
25037
25040
  break;
25038
25041
  }
25039
- if (content && contentType !== "audio") {
25042
+ if (streamKind === "assistant_text" && content && contentType !== "audio") {
25040
25043
  events.push({
25041
25044
  _tag: "AssistantContentBlock",
25042
25045
  content,
@@ -25252,6 +25255,23 @@ function createAcpExecutor(options) {
25252
25255
  continue;
25253
25256
  }
25254
25257
  if (event._tag === "ContentDelta") {
25258
+ if (event.streamKind === "reasoning_text") {
25259
+ if (event.text.trim().length === 0) {
25260
+ continue;
25261
+ }
25262
+ emit(
25263
+ makeAcpContentDeltaEvent({
25264
+ stamp: stamp(),
25265
+ provider: options.provider,
25266
+ threadId: options.threadId,
25267
+ turnId: activeTurnId,
25268
+ text: event.text,
25269
+ streamKind: "reasoning_text",
25270
+ rawPayload: event.rawPayload
25271
+ })
25272
+ );
25273
+ continue;
25274
+ }
25255
25275
  if (event.text.trim().length === 0 && !assistantSegment.activeItemId) {
25256
25276
  continue;
25257
25277
  }
@@ -25264,6 +25284,7 @@ function createAcpExecutor(options) {
25264
25284
  turnId: activeTurnId,
25265
25285
  ...itemId ? { itemId } : {},
25266
25286
  text: event.text,
25287
+ streamKind: "assistant_text",
25267
25288
  rawPayload: event.rawPayload
25268
25289
  })
25269
25290
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-dsh",
3
- "version": "0.2.2078",
3
+ "version": "0.2.2106",
4
4
  "description": "DeepSeek Harness executor: dsh 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.2078",
24
- "ycodium-acp-protocol": "0.0.0",
25
- "ycodium-acp-executor": "0.0.0"
23
+ "@ycodium-ai/plugin-api": "0.2.2106",
24
+ "ycodium-acp-executor": "0.0.0",
25
+ "ycodium-acp-protocol": "0.0.0"
26
26
  },
27
27
  "ycodium": {
28
28
  "plugin": "./dist/index.js",