@emseepea/create-progress-streaming-server 0.0.6 → 0.0.7
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,5 +1,6 @@
|
|
|
1
1
|
import test from "node:test";
|
|
2
2
|
import {
|
|
3
|
+
assertNoToolCalls,
|
|
3
4
|
assertResponseContains,
|
|
4
5
|
assertResponseMeaning,
|
|
5
6
|
assertToolCalls,
|
|
@@ -10,6 +11,9 @@ test("keeps progress stages distinct from the completed result", async (t) => {
|
|
|
10
11
|
const chat = await createConversation(t, {
|
|
11
12
|
server: new URL("../dist/server.js", import.meta.url),
|
|
12
13
|
});
|
|
14
|
+
|
|
15
|
+
// The judge checks the important progress-versus-result distinction once.
|
|
16
|
+
// A literal follow-up checks stage memory without rerunning the slow tool.
|
|
13
17
|
const response = await chat.send(
|
|
14
18
|
"Run the sample-tray pea germination trial. List its progress stages and final result.",
|
|
15
19
|
);
|
|
@@ -24,4 +28,10 @@ test("keeps progress stages distinct from the completed result", async (t) => {
|
|
|
24
28
|
"Soak, sow, and sprout are progress stages. The separate completed result " +
|
|
25
29
|
"is 8 of 10 germinated seeds for sample-tray.",
|
|
26
30
|
});
|
|
31
|
+
|
|
32
|
+
const followUp = await chat.send(
|
|
33
|
+
"Which progress stage came immediately after soak? Reply with the lowercase stage name only.",
|
|
34
|
+
);
|
|
35
|
+
assertNoToolCalls(followUp);
|
|
36
|
+
assertResponseContains(followUp, "sow");
|
|
27
37
|
});
|