@emseepea/create-html-ui-server 0.0.16 → 0.0.19
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/README.md
CHANGED
|
@@ -72,6 +72,13 @@ Open
|
|
|
72
72
|
|
|
73
73
|
The page previews a sample pea planting plan only. It does not send or store a report.
|
|
74
74
|
|
|
75
|
+
## Add Feedback
|
|
76
|
+
|
|
77
|
+
Install `@emseepea/feedback` when this server needs a detailed one-way
|
|
78
|
+
observation or a durable support conversation. Pass its tools through the
|
|
79
|
+
application factory's `additionalTools` option. Choose PostgreSQL, Firestore,
|
|
80
|
+
GitHub Issues, or Zendesk in the [feedback guide](../../packages/feedback/README.md).
|
|
81
|
+
|
|
75
82
|
## Check This Example
|
|
76
83
|
|
|
77
84
|
[Ordinary tests](test/) live in `test/`.
|
|
@@ -54,6 +54,13 @@ Open
|
|
|
54
54
|
|
|
55
55
|
The page previews a sample pea planting plan only. It does not send or store a report.
|
|
56
56
|
|
|
57
|
+
## Add Feedback
|
|
58
|
+
|
|
59
|
+
Install `@emseepea/feedback` when this server needs a detailed one-way
|
|
60
|
+
observation or a durable support conversation. Pass its tools through the
|
|
61
|
+
application factory's `additionalTools` option. Choose PostgreSQL, Firestore,
|
|
62
|
+
GitHub Issues, or Zendesk in the [feedback guide](../../packages/feedback/README.md).
|
|
63
|
+
|
|
57
64
|
## Check This Example
|
|
58
65
|
|
|
59
66
|
[Ordinary tests](test/) live in `test/`.
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
import test from "node:test";
|
|
2
2
|
import {
|
|
3
3
|
assertNoToolCalls,
|
|
4
|
+
assertNoNegativeFeedback,
|
|
4
5
|
assertResponseContains,
|
|
5
6
|
assertResponseMeaning,
|
|
6
|
-
|
|
7
|
+
assertToolCallsWithOptionalFeedback,
|
|
7
8
|
createConversation,
|
|
8
9
|
} from "@emseepea/testing/semantic";
|
|
9
10
|
|
|
11
|
+
const server = new URL(import.meta.resolve("@emseepea/feedback/testing-server"));
|
|
12
|
+
const environment = {
|
|
13
|
+
EMSEEPEA_EVAL_APP_MODULE: new URL("../dist/app.js", import.meta.url).href,
|
|
14
|
+
EMSEEPEA_EVAL_APP_FACTORY: "createHtmlUiServer",
|
|
15
|
+
};
|
|
16
|
+
|
|
10
17
|
test("does not mistake a native UI preview for a completed effect", async (t) => {
|
|
11
18
|
const chat = await createConversation(t, {
|
|
12
|
-
server
|
|
19
|
+
server,
|
|
20
|
+
environment,
|
|
13
21
|
});
|
|
14
22
|
|
|
15
23
|
// The judged turn covers the UI tool's main semantic risk: preview is not an
|
|
@@ -19,7 +27,7 @@ test("does not mistake a native UI preview for a completed effect", async (t) =>
|
|
|
19
27
|
"Summarize the matches and say whether anything was sent, stored, or changed.",
|
|
20
28
|
);
|
|
21
29
|
|
|
22
|
-
|
|
30
|
+
await assertToolCallsWithOptionalFeedback(response, [{
|
|
23
31
|
name: "preview-planting-plan",
|
|
24
32
|
arguments: { title: "Snap pea plan", peaType: "snap", includeTips: true },
|
|
25
33
|
}]);
|
|
@@ -35,4 +43,5 @@ test("does not mistake a native UI preview for a completed effect", async (t) =>
|
|
|
35
43
|
);
|
|
36
44
|
assertNoToolCalls(followUp);
|
|
37
45
|
assertResponseContains(followUp, "2");
|
|
46
|
+
assertNoNegativeFeedback(response, followUp);
|
|
38
47
|
});
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
"lint": "oxlint src test eval test-support"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
+
"@emseepea/feedback": "0.2.0",
|
|
17
18
|
"playwright": "1.62.1",
|
|
18
19
|
"axe-core": "4.13.0",
|
|
19
|
-
"@emseepea/testing": "0.
|
|
20
|
+
"@emseepea/testing": "0.9.3",
|
|
20
21
|
"@types/node": "24.13.3",
|
|
21
22
|
"typescript": "6.0.3",
|
|
22
23
|
"oxlint": "1.80.0"
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
},
|
|
27
28
|
"private": true,
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"@emseepea/server": "0.
|
|
30
|
+
"@emseepea/server": "0.6.1",
|
|
30
31
|
"@emseepea/tailwind": "0.0.2"
|
|
31
32
|
}
|
|
32
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emseepea/create-html-ui-server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "Create an Em See Pea server with an accessible HTML form.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -18,12 +18,13 @@
|
|
|
18
18
|
"prepack": "npm run build:initializer"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@emseepea/
|
|
21
|
+
"@emseepea/feedback": "0.2.0",
|
|
22
|
+
"@emseepea/server": "0.6.1",
|
|
22
23
|
"@emseepea/tailwind": "0.0.2",
|
|
23
24
|
"@emseepea/example-ui-shared": "0.0.0",
|
|
24
25
|
"playwright": "1.62.1",
|
|
25
26
|
"axe-core": "4.13.0",
|
|
26
|
-
"@emseepea/testing": "0.
|
|
27
|
+
"@emseepea/testing": "0.9.3",
|
|
27
28
|
"@types/node": "24.13.3",
|
|
28
29
|
"typescript": "6.0.3",
|
|
29
30
|
"oxlint": "1.80.0"
|