@kernl-sdk/pg 0.1.31 → 0.1.32
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
|
@@ -96,7 +96,7 @@ describe.sequential("PG Thread Lifecycle", () => {
|
|
|
96
96
|
content: [
|
|
97
97
|
message({ role: "assistant", text: "" }),
|
|
98
98
|
{
|
|
99
|
-
kind: "tool
|
|
99
|
+
kind: "tool.call",
|
|
100
100
|
toolId: "add",
|
|
101
101
|
callId: "call_1",
|
|
102
102
|
state: IN_PROGRESS,
|
|
@@ -141,13 +141,13 @@ describe.sequential("PG Thread Lifecycle", () => {
|
|
|
141
141
|
// verify events
|
|
142
142
|
const eventsResult = await pool.query('SELECT * FROM "kernl"."thread_events" WHERE tid = $1 ORDER BY seq ASC', [threadResult.rows[0].id]);
|
|
143
143
|
const events = eventsResult.rows;
|
|
144
|
-
// Should have: user msg, assistant msg (tick1), tool
|
|
144
|
+
// Should have: user msg, assistant msg (tick1), tool.call, tool.result, assistant msg (tick2)
|
|
145
145
|
expect(events.length).toBeGreaterThanOrEqual(5);
|
|
146
146
|
// Verify event kinds and order
|
|
147
147
|
expect(events[0].kind).toBe("message"); // user
|
|
148
148
|
expect(events[1].kind).toBe("message"); // assistant (tick 1)
|
|
149
|
-
expect(events[2].kind).toBe("tool
|
|
150
|
-
expect(events[3].kind).toBe("tool
|
|
149
|
+
expect(events[2].kind).toBe("tool.call");
|
|
150
|
+
expect(events[3].kind).toBe("tool.result");
|
|
151
151
|
expect(events[4].kind).toBe("message"); // assistant (tick 2)
|
|
152
152
|
// Verify tool result exists and is in correct format
|
|
153
153
|
const toolResult = events[3];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kernl-sdk/pg",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.32",
|
|
4
4
|
"description": "PostgreSQL storage adapter for kernl",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"kernl",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"tsc-alias": "^1.8.10",
|
|
36
36
|
"typescript": "5.9.2",
|
|
37
37
|
"vitest": "^4.0.8",
|
|
38
|
-
"@kernl-sdk/ai": "^0.
|
|
39
|
-
"@kernl-sdk/protocol": "^0.
|
|
38
|
+
"@kernl-sdk/ai": "^0.4.0",
|
|
39
|
+
"@kernl-sdk/protocol": "^0.5.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"pg": "^8.16.3",
|
|
43
|
-
"kernl": "^0.
|
|
44
|
-
"@kernl-sdk/retrieval": "^0.1.
|
|
43
|
+
"kernl": "^0.12.0",
|
|
44
|
+
"@kernl-sdk/retrieval": "^0.1.9",
|
|
45
45
|
"@kernl-sdk/shared": "^0.4.0",
|
|
46
|
-
"@kernl-sdk/storage": "0.
|
|
46
|
+
"@kernl-sdk/storage": "0.2.0"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"clean": "rm -rf dist",
|
|
@@ -135,7 +135,7 @@ describe.sequential("PG Thread Lifecycle", () => {
|
|
|
135
135
|
content: [
|
|
136
136
|
message({ role: "assistant", text: "" }),
|
|
137
137
|
{
|
|
138
|
-
kind: "tool
|
|
138
|
+
kind: "tool.call",
|
|
139
139
|
toolId: "add",
|
|
140
140
|
callId: "call_1",
|
|
141
141
|
state: IN_PROGRESS,
|
|
@@ -195,14 +195,14 @@ describe.sequential("PG Thread Lifecycle", () => {
|
|
|
195
195
|
|
|
196
196
|
const events = eventsResult.rows;
|
|
197
197
|
|
|
198
|
-
// Should have: user msg, assistant msg (tick1), tool
|
|
198
|
+
// Should have: user msg, assistant msg (tick1), tool.call, tool.result, assistant msg (tick2)
|
|
199
199
|
expect(events.length).toBeGreaterThanOrEqual(5);
|
|
200
200
|
|
|
201
201
|
// Verify event kinds and order
|
|
202
202
|
expect(events[0].kind).toBe("message"); // user
|
|
203
203
|
expect(events[1].kind).toBe("message"); // assistant (tick 1)
|
|
204
|
-
expect(events[2].kind).toBe("tool
|
|
205
|
-
expect(events[3].kind).toBe("tool
|
|
204
|
+
expect(events[2].kind).toBe("tool.call");
|
|
205
|
+
expect(events[3].kind).toBe("tool.result");
|
|
206
206
|
expect(events[4].kind).toBe("message"); // assistant (tick 2)
|
|
207
207
|
|
|
208
208
|
// Verify tool result exists and is in correct format
|