@polyxd/verifier 0.2.2 → 0.4.0

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/package.json CHANGED
@@ -1,17 +1,30 @@
1
1
  {
2
2
  "name": "@polyxd/verifier",
3
- "version": "0.2.2",
3
+ "version": "0.4.0",
4
4
  "description": "Verifies Polyxd UI documents: spec rules, rendered accessibility and layout, consistency across generations, and scripted agent tasks",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "./static": {
15
+ "types": "./dist/static.d.ts",
16
+ "default": "./dist/static.js"
17
+ },
18
+ "./dist/*": "./dist/*",
19
+ "./package.json": "./package.json"
20
+ },
9
21
  "bin": {
10
22
  "polyxd-verify": "dist/cli.js"
11
23
  },
12
24
  "scripts": {
13
25
  "build": "tsc -b",
14
- "build:harness": "vite build --config harness/vite.config.ts",
26
+ "build:patterns": "node scripts/build-patterns.ts",
27
+ "build:harness": "vite build --config harness/vite.config.ts && node scripts/build-harness-web.ts",
15
28
  "verify": "node src/cli.ts",
16
29
  "test": "npm run build:harness && node --test \"test/**/*.test.ts\"",
17
30
  "verify:examples": "npm run build:harness && node src/cli.ts ../spec/examples/*.json --registry ../spec/examples/registry/capabilities.json --tasks ../../bench/tasks.json -q",
@@ -20,20 +33,31 @@
20
33
  "score": "npm run build:harness && node scripts/score-run.ts",
21
34
  "leaderboard": "node scripts/leaderboard.ts",
22
35
  "rerank": "node scripts/rerank-set.ts",
23
- "prepack": "npm run build && npm run build:harness"
36
+ "prepack": "npm run build && npm run build:harness",
37
+ "conformance": "npm run build:harness && node scripts/conformance.ts"
24
38
  },
25
39
  "devDependencies": {
26
- "@polyxd/react": "^0.2.2",
40
+ "@polyxd/react": "^0.4.0",
27
41
  "@vitejs/plugin-react": "^6.1.1",
42
+ "ajv": "^8.20.0",
28
43
  "react": "^19.3.0",
29
44
  "react-dom": "^19.3.0",
30
- "vite": "^8.3.0"
45
+ "vite": "^8.3.0",
46
+ "@polyxd/web": "^0.4.0",
47
+ "playwright": "^1.63.0"
31
48
  },
32
49
  "dependencies": {
33
- "@polyxd/spec": "^0.2.2",
34
- "axe-core": "^4.13.0",
50
+ "@polyxd/spec": "^0.4.0",
51
+ "axe-core": "^4.13.0"
52
+ },
53
+ "peerDependencies": {
35
54
  "playwright": "^1.63.0"
36
55
  },
56
+ "peerDependenciesMeta": {
57
+ "playwright": {
58
+ "optional": true
59
+ }
60
+ },
37
61
  "repository": {
38
62
  "type": "git",
39
63
  "url": "git+https://github.com/visualfart/polyxd.git",
@@ -47,6 +71,8 @@
47
71
  "files": [
48
72
  "dist",
49
73
  "harness-dist",
74
+ "harness-web-dist",
75
+ "harness/README.md",
50
76
  "README.md",
51
77
  "LICENSE",
52
78
  "NOTICE"