@nextclaw/ncp 0.5.2 → 0.5.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -69,12 +69,13 @@ type NcpReasoningPart = {
69
69
  * - `"call"` — The model has emitted a complete tool call; `args` is populated.
70
70
  * - `"partial-call"` — Arguments are still being streamed; `args` may be incomplete.
71
71
  * - `"result"` — The tool has returned; `result` is populated.
72
+ * - `"cancelled"` — The tool was interrupted before a result was delivered.
72
73
  */
73
74
  type NcpToolInvocationPart = {
74
75
  type: "tool-invocation";
75
76
  toolName: string;
76
77
  toolCallId?: string;
77
- state?: "call" | "partial-call" | "result"; /** Tool input arguments. May be partial when `state === "partial-call"`. */
78
+ state?: "call" | "partial-call" | "result" | "cancelled"; /** Tool input arguments. May be partial when `state === "partial-call"`. */
78
79
  args?: unknown; /** Tool output. Populated when `state === "result"`. */
79
80
  result?: unknown;
80
81
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/ncp",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "private": false,
5
5
  "description": "NextClaw Communication Protocol core abstractions and types.",
6
6
  "type": "module",