@emseepea/create-react-ui-server 0.0.15 → 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
@@ -70,6 +70,13 @@ Open
70
70
 
71
71
  The page previews a sample pea planting plan only. It does not send or store a report.
72
72
 
73
+ ## Add Feedback
74
+
75
+ Install `@emseepea/feedback` when this server needs a detailed one-way
76
+ observation or a durable support conversation. Pass its tools through the
77
+ application factory's `additionalTools` option. Choose PostgreSQL, Firestore,
78
+ GitHub Issues, or Zendesk in the [feedback guide](../../packages/feedback/README.md).
79
+
73
80
  ## Check This Example
74
81
 
75
82
  [Ordinary tests](test/) live in `test/`.
@@ -52,6 +52,13 @@ Open
52
52
 
53
53
  The page previews a sample pea planting plan only. It does not send or store a report.
54
54
 
55
+ ## Add Feedback
56
+
57
+ Install `@emseepea/feedback` when this server needs a detailed one-way
58
+ observation or a durable support conversation. Pass its tools through the
59
+ application factory's `additionalTools` option. Choose PostgreSQL, Firestore,
60
+ GitHub Issues, or Zendesk in the [feedback guide](../../packages/feedback/README.md).
61
+
55
62
  ## Check This Example
56
63
 
57
64
  [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
- assertToolCalls,
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: "createReactUiServer",
15
+ };
16
+
10
17
  test("understands an all-varieties React UI preview", async (t) => {
11
18
  const chat = await createConversation(t, {
12
- server: new URL("../dist/server.js", import.meta.url),
19
+ server,
20
+ environment,
13
21
  });
14
22
 
15
23
  // This variant covers all-variety filtering and omitted tips. One exact
@@ -19,7 +27,7 @@ test("understands an all-varieties React UI preview", async (t) => {
19
27
  "Summarize the matches and say whether anything was sent, stored, or changed.",
20
28
  );
21
29
 
22
- assertToolCalls(response, [{
30
+ await assertToolCallsWithOptionalFeedback(response, [{
23
31
  name: "preview-planting-plan",
24
32
  arguments: { title: "All pea plan", peaType: "all", includeTips: false },
25
33
  }]);
@@ -36,4 +44,5 @@ test("understands an all-varieties React UI preview", async (t) => {
36
44
  );
37
45
  assertNoToolCalls(followUp);
38
46
  assertResponseContains(followUp, "3");
47
+ assertNoNegativeFeedback(response, followUp);
39
48
  });
@@ -14,9 +14,10 @@
14
14
  "lint": "oxlint src test eval test-support"
15
15
  },
16
16
  "devDependencies": {
17
+ "@emseepea/feedback": "0.2.1",
17
18
  "playwright": "1.62.1",
18
19
  "axe-core": "4.13.0",
19
- "@emseepea/testing": "0.6.1",
20
+ "@emseepea/testing": "0.9.4",
20
21
  "@types/node": "24.13.3",
21
22
  "@types/react": "19.2.18",
22
23
  "@types/react-dom": "19.2.5",
@@ -29,8 +30,8 @@
29
30
  },
30
31
  "private": true,
31
32
  "dependencies": {
32
- "@emseepea/react": "0.0.10",
33
- "@emseepea/server": "0.4.0",
33
+ "@emseepea/react": "0.0.14",
34
+ "@emseepea/server": "0.7.0",
34
35
  "@emseepea/tailwind": "0.0.2",
35
36
  "react": "19.2.8",
36
37
  "react-dom": "19.2.8"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emseepea/create-react-ui-server",
3
- "version": "0.0.15",
3
+ "version": "0.0.19",
4
4
  "description": "Create an Em See Pea server with an accessible React form.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,15 +18,16 @@
18
18
  "prepack": "npm run build:initializer"
19
19
  },
20
20
  "devDependencies": {
21
- "@emseepea/react": "0.0.10",
22
- "@emseepea/server": "0.4.0",
21
+ "@emseepea/feedback": "0.2.1",
22
+ "@emseepea/react": "0.0.14",
23
+ "@emseepea/server": "0.7.0",
23
24
  "@emseepea/tailwind": "0.0.2",
24
25
  "react": "19.2.8",
25
26
  "react-dom": "19.2.8",
26
27
  "@emseepea/example-ui-shared": "0.0.0",
27
28
  "playwright": "1.62.1",
28
29
  "axe-core": "4.13.0",
29
- "@emseepea/testing": "0.6.1",
30
+ "@emseepea/testing": "0.9.4",
30
31
  "@types/node": "24.13.3",
31
32
  "@types/react": "19.2.18",
32
33
  "@types/react-dom": "19.2.5",