@nextclaw/nextclaw-ncp-runtime-codex-sdk 0.1.27 → 0.1.28

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.
@@ -125,17 +125,7 @@ async function* mapCodexItemEvent(params) {
125
125
  return;
126
126
  }
127
127
  if (item.type === "reasoning") {
128
- yield* mapTextSnapshotDelta({
129
- currentText: item.text ?? "",
130
- deltaType: NcpEventType.MessageReasoningDelta,
131
- endType: NcpEventType.MessageReasoningEnd,
132
- eventType: event.type,
133
- itemId: item.id,
134
- itemTextById,
135
- messageId,
136
- sessionId,
137
- startType: NcpEventType.MessageReasoningStart
138
- });
128
+ itemTextById.delete(item.id);
139
129
  return;
140
130
  }
141
131
  if (!isToolLikeItem(item)) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/nextclaw-ncp-runtime-codex-sdk",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "private": false,
5
5
  "description": "Optional NCP runtime adapter backed by OpenAI Codex SDK.",
6
6
  "type": "module",
@@ -21,11 +21,13 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^20.17.6",
24
- "typescript": "^5.6.3"
24
+ "typescript": "^5.6.3",
25
+ "vitest": "^4.1.2"
25
26
  },
26
27
  "scripts": {
27
28
  "build": "tsdown src/index.ts --dts --clean --target es2022 --no-fixedExtension --unbundle",
28
29
  "lint": "eslint .",
30
+ "test": "vitest run src/utils/codex-sdk-ncp-event-mapper.utils.test.ts",
29
31
  "tsc": "tsc -p tsconfig.json"
30
32
  }
31
33
  }