@emseepea/create-html-ui-server 0.0.25 → 0.0.27

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.7",
18
+ "@emseepea/feedback": "0.2.9",
19
19
  "playwright": "1.62.1",
20
20
  "axe-core": "4.13.0",
21
- "@emseepea/testing": "0.9.11",
21
+ "@emseepea/testing": "0.9.13",
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.10.1",
31
+ "@emseepea/server": "0.10.3",
32
32
  "@emseepea/tailwind": "0.0.2"
33
33
  }
34
34
  }
@@ -27,6 +27,8 @@ const outputSchema = z.strictObject({
27
27
  notice: z.literal("No report was sent or stored.").describe("Reminder that the preview caused no external effect."),
28
28
  });
29
29
 
30
+ export const plantingPlanAppResourceUri = "ui://pea-planting-plan/v1.html";
31
+
30
32
  const varieties = [
31
33
  { name: "Harbour Gem", growthHabit: "bush" as const, peaType: "shelling" as const, tips: ["compact", "harvest when pods feel full"] },
32
34
  { name: "Highland Snap", growthHabit: "climbing" as const, peaType: "snap" as const, tips: ["provide support", "pick pods young"] },
@@ -45,12 +47,19 @@ export function previewPlantingPlan(input: z.output<typeof inputSchema>) {
45
47
  };
46
48
  }
47
49
 
48
- export function createPreviewPlantingPlanTool(access: AccessPolicy = { access: "public" }) {
50
+ export function createPreviewPlantingPlanTool(
51
+ access: AccessPolicy = { access: "public" },
52
+ appResource = false,
53
+ ) {
49
54
  return defineTool({
50
55
  name: "preview-planting-plan",
51
56
  ...access,
52
57
  title: "Preview a Pea Planting Plan",
53
58
  description: "Preview a sample pea planting plan without sending, storing, or changing anything.",
59
+ ...(appResource ? { _meta: {
60
+ ui: { resourceUri: plantingPlanAppResourceUri },
61
+ "openai/outputTemplate": plantingPlanAppResourceUri,
62
+ } } : {}),
54
63
  inputSchema,
55
64
  outputSchema,
56
65
  handler: (input) => ({ data: previewPlantingPlan(input) }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emseepea/create-html-ui-server",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
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.7",
22
- "@emseepea/server": "0.10.1",
21
+ "@emseepea/feedback": "0.2.9",
22
+ "@emseepea/server": "0.10.3",
23
23
  "@emseepea/tailwind": "0.0.2",
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.9.11",
27
+ "@emseepea/testing": "0.9.13",
28
28
  "@types/node": "24.13.3",
29
29
  "typescript": "6.0.3",
30
30
  "oxlint": "1.80.0"