@emseepea/create-html-ui-server 0.0.3 → 0.0.4
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.
- package/README.md +43 -12
- package/{dist → initializer-dist}/template/package.json +6 -5
- package/package.json +31 -14
- /package/{dist → initializer-dist}/LICENSE +0 -0
- /package/{dist → initializer-dist}/create.mjs +0 -0
- /package/{dist → initializer-dist}/template/README.md +0 -0
- /package/{dist → initializer-dist}/template/eval/meaning.test.mjs +0 -0
- /package/{dist → initializer-dist}/template/src/capabilities/tool.preview-bean-report.ts +0 -0
- /package/{dist → initializer-dist}/template/src/server.ts +0 -0
- /package/{dist → initializer-dist}/template/src/ui-shared.ts +0 -0
- /package/{dist → initializer-dist}/template/test/accessibility.test.mjs +0 -0
- /package/{dist → initializer-dist}/template/test/ui-shared.test.mjs +0 -0
- /package/{dist → initializer-dist}/template/test-support/browser-contract.mjs +0 -0
- /package/{dist → initializer-dist}/template/tsconfig.json +0 -0
package/README.md
CHANGED
|
@@ -1,24 +1,55 @@
|
|
|
1
1
|
# `@emseepea/create-html-ui-server`
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
server-rendered HTML form. The package builds its starter from the maintained
|
|
5
|
-
[HTML form example](https://github.com/emseepea/emseepea/tree/main/examples/native-ui).
|
|
6
|
-
|
|
7
|
-
## Create the Project
|
|
8
|
-
|
|
9
|
-
This initializer is queued for the next pre-alpha release and will work after
|
|
10
|
-
npm publication.
|
|
3
|
+
This directory is both the maintained example and its public npm initializer.
|
|
11
4
|
|
|
12
5
|
```sh
|
|
13
6
|
npm init @emseepea/html-ui-server@next -- my-server
|
|
14
7
|
```
|
|
15
8
|
|
|
9
|
+
<!-- generated-project-readme -->
|
|
10
|
+
|
|
11
|
+
## Native UI Example
|
|
12
|
+
|
|
13
|
+
Choose this example when you need an accessible form but do not want React or
|
|
14
|
+
another browser UI framework.
|
|
15
|
+
|
|
16
|
+
This example adds one server-rendered form to the Fastify Model Context
|
|
17
|
+
Protocol (MCP) server. It uses the native renderer and the same sample states as
|
|
18
|
+
the React example. Choose the React example instead when your application
|
|
19
|
+
already uses React and needs client-side updates.
|
|
20
|
+
|
|
21
|
+
## Run
|
|
22
|
+
|
|
23
|
+
From this directory:
|
|
24
|
+
|
|
16
25
|
```sh
|
|
17
|
-
cd my-server
|
|
18
26
|
npm install
|
|
19
|
-
npm
|
|
20
|
-
npm run lint
|
|
27
|
+
npm run build
|
|
21
28
|
npm start
|
|
22
29
|
```
|
|
23
30
|
|
|
24
|
-
|
|
31
|
+
Open
|
|
32
|
+
`http://127.0.0.1:3000/` for the page or use
|
|
33
|
+
`http://127.0.0.1:3000/mcp` for Model Context Protocol (MCP).
|
|
34
|
+
|
|
35
|
+
The page previews content only. It does not send or store a report.
|
|
36
|
+
|
|
37
|
+
## Check This Example
|
|
38
|
+
|
|
39
|
+
[Ordinary tests](test/) live in `test/`.
|
|
40
|
+
The [AI tool-choice and understanding test](eval/meaning.test.mjs) lives separately in `eval/`.
|
|
41
|
+
The commands below run each suite independently.
|
|
42
|
+
|
|
43
|
+
Run its build, browser, keyboard, and accessibility checks:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
npm test
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Check that Claude chooses the preview tool and understands that it changes nothing:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
npm run test:llm
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
If Claude is not already signed in, run `claude auth login` first.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "emseepea-starter",
|
|
3
3
|
"version": "0.0.0",
|
|
4
|
-
"
|
|
4
|
+
"description": "Create an Em See Pea server with an accessible HTML form.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
@@ -13,10 +13,6 @@
|
|
|
13
13
|
"test:llm:built": "emseepea-test eval",
|
|
14
14
|
"lint": "oxlint src test eval test-support"
|
|
15
15
|
},
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"@emseepea/server": "0.1.0",
|
|
18
|
-
"@emseepea/tailwind": "0.0.1"
|
|
19
|
-
},
|
|
20
16
|
"devDependencies": {
|
|
21
17
|
"playwright": "1.62.1",
|
|
22
18
|
"axe-core": "4.13.0",
|
|
@@ -27,5 +23,10 @@
|
|
|
27
23
|
},
|
|
28
24
|
"engines": {
|
|
29
25
|
"node": ">=22"
|
|
26
|
+
},
|
|
27
|
+
"private": true,
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@emseepea/server": "0.2.1",
|
|
30
|
+
"@emseepea/tailwind": "0.0.1"
|
|
30
31
|
}
|
|
31
32
|
}
|
package/package.json
CHANGED
|
@@ -1,23 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emseepea/create-html-ui-server",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"private": false,
|
|
3
|
+
"version": "0.0.4",
|
|
5
4
|
"description": "Create an Em See Pea server with an accessible HTML form.",
|
|
6
5
|
"license": "MIT",
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
6
|
+
"type": "module",
|
|
7
|
+
"starterDependencies": ["@emseepea/server", "@emseepea/tailwind"],
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "npm run build:example && npm run build:initializer",
|
|
10
|
+
"build:example": "tsc -p tsconfig.json",
|
|
11
|
+
"build:initializer": "node ../../scripts/build-initializer.mjs",
|
|
12
|
+
"start": "node dist/server.js",
|
|
13
|
+
"test": "npm run build && npm run test:built",
|
|
14
|
+
"test:built": "node --test test/*.test.mjs",
|
|
15
|
+
"test:llm": "npm run build && npm run test:llm:built",
|
|
16
|
+
"test:llm:built": "emseepea-test eval",
|
|
17
|
+
"lint": "oxlint src test eval",
|
|
18
|
+
"prepack": "npm run build:initializer"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@emseepea/server": "0.2.1",
|
|
22
|
+
"@emseepea/tailwind": "0.0.1",
|
|
23
|
+
"@emseepea/example-ui-shared": "0.0.0",
|
|
24
|
+
"playwright": "1.62.1",
|
|
25
|
+
"axe-core": "4.13.0",
|
|
26
|
+
"@emseepea/testing": "0.2.1",
|
|
27
|
+
"@types/node": "24.13.3",
|
|
28
|
+
"typescript": "6.0.3",
|
|
29
|
+
"oxlint": "1.80.0"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=22"
|
|
11
33
|
},
|
|
34
|
+
"repository": { "type": "git", "url": "git+https://github.com/emseepea/emseepea.git", "directory": "examples/native-ui" },
|
|
12
35
|
"homepage": "https://emseepea.github.io/emseepea/examples/",
|
|
13
36
|
"bugs": "https://github.com/emseepea/emseepea/issues",
|
|
14
37
|
"publishConfig": { "access": "public", "provenance": true, "tag": "next" },
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"files": ["dist"],
|
|
18
|
-
"scripts": {
|
|
19
|
-
"build": "node ../../scripts/build-initializer.mjs",
|
|
20
|
-
"prepack": "npm run build"
|
|
21
|
-
},
|
|
22
|
-
"engines": { "node": ">=22" }
|
|
38
|
+
"bin": { "create-html-ui-server": "./initializer-dist/create.mjs" },
|
|
39
|
+
"files": ["initializer-dist"]
|
|
23
40
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|