@emseepea/create-resources-and-prompts-server 0.0.7 → 0.0.9

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.
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "private": true,
26
26
  "dependencies": {
27
- "@emseepea/server": "0.3.0",
27
+ "@emseepea/server": "0.3.3",
28
28
  "zod": "4.4.3"
29
29
  }
30
30
  }
@@ -7,7 +7,9 @@ export default (() => definePrompt({
7
7
  name: "growing-guide",
8
8
  title: "Pea growing guide",
9
9
  description: "Create a prompt for a sample pea-growing topic.",
10
- argsSchema: z.object({ topic: z.string().min(1) }),
10
+ argsSchema: z.object({
11
+ topic: z.string().min(1).describe("Pea-growing topic to explain."),
12
+ }),
11
13
  complete: {
12
14
  topic: (value) => topics.filter((topic) => topic.startsWith(value)),
13
15
  },
@@ -14,7 +14,13 @@ test("lists and reads the advertised resource and prompt", async (t) => {
14
14
  assert.match(resource.contents[0].text, /Sowing depth is how deep a seed goes/);
15
15
  assert.match(resource.contents[0].text, /plant spacing is the gap between plants/);
16
16
 
17
- assert.deepEqual((await client.listPrompts()).prompts.map(({ name }) => name), ["growing-guide"]);
17
+ const listedPrompts = await client.listPrompts();
18
+ assert.deepEqual(listedPrompts.prompts.map(({ name }) => name), ["growing-guide"]);
19
+ assert.deepEqual(listedPrompts.prompts[0].arguments, [{
20
+ name: "topic",
21
+ description: "Pea-growing topic to explain.",
22
+ required: true,
23
+ }]);
18
24
  const prompt = await client.getPrompt({
19
25
  name: "growing-guide",
20
26
  arguments: { topic: "sowing-depth" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emseepea/create-resources-and-prompts-server",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Create an Em See Pea server with resources and prompts.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,7 +18,7 @@
18
18
  "prepack": "npm run build:initializer"
19
19
  },
20
20
  "devDependencies": {
21
- "@emseepea/server": "0.3.0",
21
+ "@emseepea/server": "0.3.3",
22
22
  "zod": "4.4.3",
23
23
  "@emseepea/testing": "0.3.0",
24
24
  "@types/node": "24.13.3",