@emseepea/create-resources-and-prompts-server 0.0.14 → 0.0.18

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
@@ -66,6 +66,13 @@ npm start
66
66
  The server listens on `http://127.0.0.1:3000/mcp` by default. Set `PORT` to
67
67
  choose another port.
68
68
 
69
+ ## Add Feedback
70
+
71
+ Install `@emseepea/feedback` when this server needs a detailed one-way
72
+ observation or a durable support conversation. Pass its tools through the
73
+ application factory's `additionalTools` option. Choose PostgreSQL, Firestore,
74
+ GitHub Issues, or Zendesk in the [feedback guide](../../packages/feedback/README.md).
75
+
69
76
  ## Check This Example
70
77
 
71
78
  [Ordinary tests](test/) live in `test/`.
@@ -47,6 +47,13 @@ npm start
47
47
  The server listens on `http://127.0.0.1:3000/mcp` by default. Set `PORT` to
48
48
  choose another port.
49
49
 
50
+ ## Add Feedback
51
+
52
+ Install `@emseepea/feedback` when this server needs a detailed one-way
53
+ observation or a durable support conversation. Pass its tools through the
54
+ application factory's `additionalTools` option. Choose PostgreSQL, Firestore,
55
+ GitHub Issues, or Zendesk in the [feedback guide](../../packages/feedback/README.md).
56
+
50
57
  ## Check This Example
51
58
 
52
59
  [Ordinary tests](test/) live in `test/`.
@@ -1,13 +1,20 @@
1
1
  import test from "node:test";
2
2
  import {
3
- assertNoToolCalls,
3
+ assertOptionalToolCall,
4
4
  assertResponseMeaning,
5
5
  createConversation,
6
6
  } from "@emseepea/testing/semantic";
7
7
 
8
+ const server = new URL(import.meta.resolve("@emseepea/feedback/testing-server"));
9
+ const environment = {
10
+ EMSEEPEA_EVAL_APP_MODULE: new URL("../dist/app.js", import.meta.url).href,
11
+ EMSEEPEA_EVAL_APP_FACTORY: "createResourcesAndPromptsServer",
12
+ };
13
+
8
14
  test("does not pretend an unselected resource was supplied", async (t) => {
9
15
  const chat = await createConversation(t, {
10
- server: new URL("../dist/server.js", import.meta.url),
16
+ server,
17
+ environment,
11
18
  });
12
19
 
13
20
  const response = await chat.send(
@@ -15,9 +22,10 @@ test("does not pretend an unselected resource was supplied", async (t) => {
15
22
  "and plant spacing does guide://peas/planting/container specify?",
16
23
  );
17
24
 
18
- assertNoToolCalls(response);
19
25
  // Resources and prompts are user-selected client features, not autonomous
20
- // tools. One semantic assertion checks the honest unselected experience.
26
+ // tools. Capability-mismatch feedback is valid in this deliberately
27
+ // unsuccessful journey, so this test checks only the honest response.
28
+ assertOptionalToolCall(response, "submit-feedback");
21
29
  await assertResponseMeaning(response, {
22
30
  expected:
23
31
  "The response does not claim to know the guide's recommendation. It says " +
@@ -14,7 +14,8 @@
14
14
  "lint": "oxlint src test eval"
15
15
  },
16
16
  "devDependencies": {
17
- "@emseepea/testing": "0.6.1",
17
+ "@emseepea/feedback": "0.2.1",
18
+ "@emseepea/testing": "0.9.4",
18
19
  "@types/node": "24.13.3",
19
20
  "typescript": "6.0.3",
20
21
  "oxlint": "1.80.0"
@@ -24,7 +25,7 @@
24
25
  },
25
26
  "private": true,
26
27
  "dependencies": {
27
- "@emseepea/server": "0.4.0",
28
+ "@emseepea/server": "0.7.0",
28
29
  "zod": "4.4.3"
29
30
  }
30
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emseepea/create-resources-and-prompts-server",
3
- "version": "0.0.14",
3
+ "version": "0.0.18",
4
4
  "description": "Create an Em See Pea server with resources and prompts.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,9 +18,10 @@
18
18
  "prepack": "npm run build:initializer"
19
19
  },
20
20
  "devDependencies": {
21
- "@emseepea/server": "0.4.0",
21
+ "@emseepea/feedback": "0.2.1",
22
+ "@emseepea/server": "0.7.0",
22
23
  "zod": "4.4.3",
23
- "@emseepea/testing": "0.6.1",
24
+ "@emseepea/testing": "0.9.4",
24
25
  "@types/node": "24.13.3",
25
26
  "typescript": "6.0.3",
26
27
  "oxlint": "1.80.0"