@kernl-sdk/xai 0.2.2 → 0.3.0
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.
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @kernl-sdk/xai
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8815744: **BREAKING:** Refactor event kind naming from kebab-case to dot notation
|
|
8
|
+
|
|
9
|
+
This aligns the language model stream/item kinds with the existing realtime events naming convention.
|
|
10
|
+
|
|
11
|
+
### Kind value changes
|
|
12
|
+
|
|
13
|
+
| Old | New |
|
|
14
|
+
| ------------------ | ------------------ |
|
|
15
|
+
| `tool-call` | `tool.call` |
|
|
16
|
+
| `tool-result` | `tool.result` |
|
|
17
|
+
| `text-start` | `text.start` |
|
|
18
|
+
| `text-delta` | `text.delta` |
|
|
19
|
+
| `text-end` | `text.end` |
|
|
20
|
+
| `reasoning-start` | `reasoning.start` |
|
|
21
|
+
| `reasoning-delta` | `reasoning.delta` |
|
|
22
|
+
| `reasoning-end` | `reasoning.end` |
|
|
23
|
+
| `tool-input-start` | `tool.input.start` |
|
|
24
|
+
| `tool-input-delta` | `tool.input.delta` |
|
|
25
|
+
| `tool-input-end` | `tool.input.end` |
|
|
26
|
+
| `stream-start` | `stream.start` |
|
|
27
|
+
|
|
28
|
+
### ToolInputStartEvent: `toolName` → `toolId`
|
|
29
|
+
|
|
30
|
+
The `ToolInputStartEvent` now uses `toolId` to match `ToolCall` and `ToolResult`.
|
|
31
|
+
|
|
32
|
+
### Migration
|
|
33
|
+
|
|
34
|
+
If you have persisted thread events, run:
|
|
35
|
+
|
|
36
|
+
```sql
|
|
37
|
+
UPDATE thread_events SET kind = 'tool.call' WHERE kind = 'tool-call';
|
|
38
|
+
UPDATE thread_events SET kind = 'tool.result' WHERE kind = 'tool-result';
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- Updated dependencies [8815744]
|
|
44
|
+
- @kernl-sdk/protocol@0.5.0
|
|
45
|
+
|
|
3
46
|
## 0.2.2
|
|
4
47
|
|
|
5
48
|
### Patch Changes
|
|
@@ -122,7 +122,7 @@ export const ITEM = {
|
|
|
122
122
|
content,
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
-
case "tool
|
|
125
|
+
case "tool.result":
|
|
126
126
|
return {
|
|
127
127
|
type: "function_call_output",
|
|
128
128
|
call_id: item.callId,
|
|
@@ -146,7 +146,7 @@ export const ITEM = {
|
|
|
146
146
|
};
|
|
147
147
|
case "function_call_output":
|
|
148
148
|
return {
|
|
149
|
-
kind: "tool
|
|
149
|
+
kind: "tool.result",
|
|
150
150
|
callId: item.call_id,
|
|
151
151
|
toolId: "",
|
|
152
152
|
state: "completed",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kernl-sdk/xai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "xAI (Grok) realtime voice provider for kernl",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"kernl",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"ws": "^8.18.0",
|
|
36
|
-
"@kernl-sdk/protocol": "0.
|
|
36
|
+
"@kernl-sdk/protocol": "0.5.0",
|
|
37
37
|
"@kernl-sdk/shared": "0.4.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -158,7 +158,7 @@ export const ITEM: Codec<LanguageModelItem, GrokItem> = {
|
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
case "tool
|
|
161
|
+
case "tool.result":
|
|
162
162
|
return {
|
|
163
163
|
type: "function_call_output",
|
|
164
164
|
call_id: item.callId,
|
|
@@ -187,7 +187,7 @@ export const ITEM: Codec<LanguageModelItem, GrokItem> = {
|
|
|
187
187
|
|
|
188
188
|
case "function_call_output":
|
|
189
189
|
return {
|
|
190
|
-
kind: "tool
|
|
190
|
+
kind: "tool.result",
|
|
191
191
|
callId: item.call_id,
|
|
192
192
|
toolId: "",
|
|
193
193
|
state: "completed" as const,
|