@emseepea/create-progress-streaming-server 0.0.4 → 0.0.6
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.
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
import
|
|
1
|
+
import test from "node:test";
|
|
2
|
+
import {
|
|
3
|
+
assertResponseContains,
|
|
4
|
+
assertResponseMeaning,
|
|
5
|
+
assertToolCalls,
|
|
6
|
+
createConversation,
|
|
7
|
+
} from "@emseepea/testing/semantic";
|
|
2
8
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"for sample-tray. It does not treat an intermediate progress stage as the final " +
|
|
22
|
-
"result.",
|
|
23
|
-
expectedTools: ["run-germination-trial"],
|
|
9
|
+
test("keeps progress stages distinct from the completed result", async (t) => {
|
|
10
|
+
const chat = await createConversation(t, {
|
|
11
|
+
server: new URL("../dist/server.js", import.meta.url),
|
|
12
|
+
});
|
|
13
|
+
const response = await chat.send(
|
|
14
|
+
"Run the sample-tray pea germination trial. List its progress stages and final result.",
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
assertToolCalls(response, [{
|
|
18
|
+
name: "run-germination-trial",
|
|
19
|
+
arguments: { tray: "sample-tray" },
|
|
20
|
+
}]);
|
|
21
|
+
assertResponseContains(response, "sample-tray");
|
|
22
|
+
await assertResponseMeaning(response, {
|
|
23
|
+
expected:
|
|
24
|
+
"Soak, sow, and sprout are progress stages. The separate completed result " +
|
|
25
|
+
"is 8 of 10 germinated seeds for sample-tray.",
|
|
26
|
+
});
|
|
24
27
|
});
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"lint": "oxlint src test eval"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@emseepea/testing": "0.
|
|
17
|
+
"@emseepea/testing": "0.3.0",
|
|
18
18
|
"@types/node": "24.13.3",
|
|
19
19
|
"typescript": "6.0.3",
|
|
20
20
|
"oxlint": "1.80.0"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"private": true,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@emseepea/server": "0.
|
|
27
|
+
"@emseepea/server": "0.3.0",
|
|
28
28
|
"zod": "4.4.3"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emseepea/create-progress-streaming-server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Create an Em See Pea server that streams tool progress.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"prepack": "npm run build:initializer"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@emseepea/server": "0.
|
|
21
|
+
"@emseepea/server": "0.3.0",
|
|
22
22
|
"zod": "4.4.3",
|
|
23
|
-
"@emseepea/testing": "0.
|
|
23
|
+
"@emseepea/testing": "0.3.0",
|
|
24
24
|
"@types/node": "24.13.3",
|
|
25
25
|
"typescript": "6.0.3",
|
|
26
26
|
"oxlint": "1.80.0"
|