@emseepea/create-html-ui-server 0.0.10 → 0.0.12

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.
@@ -16,7 +16,7 @@
16
16
  "devDependencies": {
17
17
  "playwright": "1.62.1",
18
18
  "axe-core": "4.13.0",
19
- "@emseepea/testing": "0.3.0",
19
+ "@emseepea/testing": "0.4.0",
20
20
  "@types/node": "24.13.3",
21
21
  "typescript": "6.0.3",
22
22
  "oxlint": "1.80.0"
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "private": true,
28
28
  "dependencies": {
29
- "@emseepea/server": "0.3.2",
29
+ "@emseepea/server": "0.3.3",
30
30
  "@emseepea/tailwind": "0.0.2"
31
31
  }
32
32
  }
@@ -48,13 +48,7 @@ export function createPreviewPlantingPlanTool() {
48
48
  description: "Preview a sample pea planting plan without sending, storing, or changing anything.",
49
49
  inputSchema,
50
50
  outputSchema,
51
- handler(input) {
52
- const data = previewPlantingPlan(input);
53
- return {
54
- text: `${data.title} contains ${data.matchingCount} matching pea varieties. ${data.notice}`,
55
- data,
56
- };
57
- },
51
+ handler: (input) => ({ data: previewPlantingPlan(input) }),
58
52
  });
59
53
  }
60
54
 
@@ -23,4 +23,9 @@ test("describes every planting-plan tool property", async (t) => {
23
23
  assert.equal(output.varieties.items.properties.peaType.description, "Whether the variety is grown for shelled peas or edible pods.");
24
24
  assert.equal(output.varieties.items.properties.tips.description, "Sample growing tips when requested.");
25
25
  assert.equal(output.notice.description, "Reminder that the preview caused no external effect.");
26
+ const result = await client.callTool({
27
+ name: "preview-planting-plan",
28
+ arguments: { title: "Spring peas", peaType: "snap", includeTips: false },
29
+ });
30
+ assert.equal(result.content[0].text, JSON.stringify(result.structuredContent));
26
31
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emseepea/create-html-ui-server",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
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,12 @@
18
18
  "prepack": "npm run build:initializer"
19
19
  },
20
20
  "devDependencies": {
21
- "@emseepea/server": "0.3.2",
21
+ "@emseepea/server": "0.3.3",
22
22
  "@emseepea/tailwind": "0.0.2",
23
23
  "@emseepea/example-ui-shared": "0.0.0",
24
24
  "playwright": "1.62.1",
25
25
  "axe-core": "4.13.0",
26
- "@emseepea/testing": "0.3.0",
26
+ "@emseepea/testing": "0.4.0",
27
27
  "@types/node": "24.13.3",
28
28
  "typescript": "6.0.3",
29
29
  "oxlint": "1.80.0"