@emseepea/create-html-ui-server 0.0.1 → 0.0.3

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.
@@ -10,7 +10,8 @@ toolSelectionTest("Native UI preview is not mistaken for a completed effect", {
10
10
  "Sample Range",
11
11
  "preview-only",
12
12
  "false",
13
- "No report was sent or stored"
13
+ /\b(?:no|not|nothing|neither|never|wasn't|weren't|didn't)\b[^.!?\n]{0,80}\b(?:sent|delivered)\b/i,
14
+ /\b(?:no|not|nothing|neither|never|wasn't|weren't|didn't)\b[^.!?\n]{0,80}\b(?:stored|saved|persisted)\b/i
14
15
  ],
15
16
  criteria:
16
17
  "The answer identifies Forest Ember from Sample Range as the one dark-roast " +
@@ -14,7 +14,7 @@
14
14
  "lint": "oxlint src test eval test-support"
15
15
  },
16
16
  "dependencies": {
17
- "@emseepea/server": "0.0.4",
17
+ "@emseepea/server": "0.1.0",
18
18
  "@emseepea/tailwind": "0.0.1"
19
19
  },
20
20
  "devDependencies": {
@@ -0,0 +1,4 @@
1
+ import { createPreviewBeanReportTool } from "../ui-shared.js";
2
+ import type { CapabilityModuleFactory } from "@emseepea/server";
3
+
4
+ export default (() => createPreviewBeanReportTool()) satisfies CapabilityModuleFactory;
@@ -2,18 +2,17 @@ import { readFile } from "node:fs/promises";
2
2
  import { parse } from "node:querystring";
3
3
 
4
4
  import {
5
- createPreviewBeanReportTool,
6
5
  fixtureForState,
7
6
  viewFromSubmission,
8
7
  } from "./ui-shared.js";
9
- import { createEmseepea, renderElicitationForm, serveEmseepea } from "@emseepea/server";
8
+ import { createEmseepea, discoverCapabilities, renderElicitationForm, serveEmseepea } from "@emseepea/server";
10
9
 
11
10
  const stylesheet = await readFile(new URL(import.meta.resolve("@emseepea/tailwind/styles.css")), "utf8");
12
11
  const app = createEmseepea({
13
12
  name: "emseepea-native-ui",
14
13
  version: "0.0.0",
15
14
  instructions: "Use preview-bean-report to preview sample report content. It sends and stores nothing.",
16
- tools: [createPreviewBeanReportTool()],
15
+ ...await discoverCapabilities(new URL("./capabilities/", import.meta.url)),
17
16
  });
18
17
 
19
18
  app.addContentTypeParser(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emseepea/create-html-ui-server",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "private": false,
5
5
  "description": "Create an Em See Pea server with an accessible HTML form.",
6
6
  "license": "MIT",