@emseepea/create-html-ui-server 0.0.42 → 0.0.43

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.
@@ -15,10 +15,10 @@
15
15
  "container:build": "docker build --tag emseepea-server:local ."
16
16
  },
17
17
  "devDependencies": {
18
- "@emseepea/feedback": "0.2.17",
18
+ "@emseepea/feedback": "0.3.0",
19
19
  "playwright": "1.62.1",
20
20
  "axe-core": "4.13.0",
21
- "@emseepea/testing": "0.16.1",
21
+ "@emseepea/testing": "0.16.2",
22
22
  "@types/node": "24.13.3",
23
23
  "typescript": "6.0.3",
24
24
  "oxlint": "1.80.0"
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "private": true,
30
30
  "dependencies": {
31
- "@emseepea/server": "0.15.0",
31
+ "@emseepea/server": "0.16.0",
32
32
  "@emseepea/tailwind": "0.1.0"
33
33
  }
34
34
  }
@@ -13,12 +13,14 @@ const inputSchema = z.strictObject({
13
13
  peaType: peaTypeSchema,
14
14
  includeTips: z.boolean().describe("Whether to include sample growing tips."),
15
15
  });
16
- const outputSchema = z.strictObject({
16
+ // Published to clients, so it is open: a client holding a captured copy of
17
+ // this schema must tolerate a field added later. Inputs stay strict.
18
+ const outputSchema = z.object({
17
19
  status: z.literal("preview-only").describe("Confirms that this result is only a preview."),
18
20
  effectPerformed: z.literal(false).describe("Confirms that nothing was sent, stored, or changed."),
19
21
  title: z.string().describe("Title of the planting-plan preview."),
20
22
  matchingCount: z.number().int().nonnegative().describe("Number of sample varieties matching the selected pea type."),
21
- varieties: z.array(z.strictObject({
23
+ varieties: z.array(z.object({
22
24
  name: z.string().describe("Name of the sample pea variety."),
23
25
  growthHabit: z.enum(["bush", "climbing"]).describe("Whether the variety grows as a bush or climbing vine."),
24
26
  peaType: z.enum(["shelling", "snap"]).describe("Whether the variety is grown for shelled peas or edible pods."),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emseepea/create-html-ui-server",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "description": "Create an Em See Pea server with an accessible HTML form.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,13 +18,13 @@
18
18
  "prepack": "npm run build:initializer"
19
19
  },
20
20
  "devDependencies": {
21
- "@emseepea/feedback": "0.2.17",
22
- "@emseepea/server": "0.15.0",
21
+ "@emseepea/feedback": "0.3.0",
22
+ "@emseepea/server": "0.16.0",
23
23
  "@emseepea/tailwind": "0.1.0",
24
24
  "@emseepea/example-ui-shared": "0.0.0",
25
25
  "playwright": "1.62.1",
26
26
  "axe-core": "4.13.0",
27
- "@emseepea/testing": "0.16.1",
27
+ "@emseepea/testing": "0.16.2",
28
28
  "@types/node": "24.13.3",
29
29
  "typescript": "6.0.3",
30
30
  "oxlint": "1.80.0"