@nextclaw/nextclaw-ncp-runtime-codex-sdk 0.1.1 → 0.1.3
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.
|
@@ -34,13 +34,6 @@ function buildToolDescriptor(item) {
|
|
|
34
34
|
items: item.items
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
case "error":
|
|
38
|
-
return {
|
|
39
|
-
toolName: "error",
|
|
40
|
-
args: {
|
|
41
|
-
message: item.message
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
37
|
}
|
|
45
38
|
}
|
|
46
39
|
function buildToolResult(item) {
|
|
@@ -73,13 +66,6 @@ function buildToolResult(item) {
|
|
|
73
66
|
status: "completed",
|
|
74
67
|
items: item.items
|
|
75
68
|
};
|
|
76
|
-
case "error":
|
|
77
|
-
return {
|
|
78
|
-
ok: false,
|
|
79
|
-
error: {
|
|
80
|
-
message: item.message
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
69
|
}
|
|
84
70
|
}
|
|
85
71
|
function stringifyToolArgs(args) {
|
|
@@ -92,7 +78,7 @@ function stringifyToolArgs(args) {
|
|
|
92
78
|
}
|
|
93
79
|
}
|
|
94
80
|
function isToolLikeItem(item) {
|
|
95
|
-
return item.type === "mcp_tool_call" || item.type === "command_execution" || item.type === "web_search" || item.type === "file_change" || item.type === "todo_list"
|
|
81
|
+
return item.type === "mcp_tool_call" || item.type === "command_execution" || item.type === "web_search" || item.type === "file_change" || item.type === "todo_list";
|
|
96
82
|
}
|
|
97
83
|
async function* mapCodexItemEvent(params) {
|
|
98
84
|
const { sessionId, messageId, event, itemTextById, toolStateById } = params;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/nextclaw-ncp-runtime-codex-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Optional NCP runtime adapter backed by OpenAI Codex SDK.",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@openai/codex-sdk": "^0.107.0",
|
|
20
|
-
"@nextclaw/ncp": "0.3.
|
|
20
|
+
"@nextclaw/ncp": "0.3.2"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^20.17.6",
|