@tryvitris/website-harness 1.0.1 → 1.1.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.
Files changed (83) hide show
  1. package/README.md +76 -74
  2. package/agent/graph.yaml +769 -756
  3. package/agent/refs/admin.md +11 -11
  4. package/agent/refs/browser.md +6 -2
  5. package/agent/refs/business.md +20 -9
  6. package/agent/refs/compose.md +2 -0
  7. package/agent/refs/design-quality.md +2 -0
  8. package/agent/refs/direction.md +2 -0
  9. package/agent/refs/implement.md +8 -4
  10. package/agent/refs/scheduling.md +13 -0
  11. package/agent/refs/template-adaptation.md +2 -0
  12. package/agent/refs/template-library.md +2 -0
  13. package/agent/refs/typography.md +15 -0
  14. package/bin/api/agent/evaluate.js +7 -6
  15. package/bin/api/agent/grade.js +7 -6
  16. package/bin/api/cli/api.js +15 -14
  17. package/bin/api/cli.js +17 -16
  18. package/bin/api/engine.js +8 -7
  19. package/bin/api/hosting.js +9 -8
  20. package/bin/api/index.js +4 -3
  21. package/bin/api/render.js +2 -1
  22. package/bin/api/theme.js +2 -1
  23. package/bin/chunks/{chunk-M72KKZIB.js → chunk-5KRJQKHB.js} +4 -3
  24. package/bin/chunks/{chunk-72Y4YMTV.js → chunk-AD7WAHW2.js} +2 -2
  25. package/bin/chunks/{chunk-RE4GOHSU.js → chunk-AS74YXGM.js} +3 -3
  26. package/bin/chunks/{chunk-AUO5I56E.js → chunk-C3F7XQD2.js} +194 -1
  27. package/bin/chunks/{chunk-445FZZEC.js → chunk-DDJ3QCRR.js} +9 -9
  28. package/bin/chunks/{chunk-LKN75JGA.js → chunk-GE6UUEG2.js} +13 -8
  29. package/bin/chunks/chunk-GPS3SAGQ.js +1020 -0
  30. package/bin/chunks/{chunk-37F7XIMH.js → chunk-JTXFTNEA.js} +6 -1
  31. package/bin/chunks/{chunk-JBSGJR7X.js → chunk-KR5ZUZV2.js} +2 -2
  32. package/bin/chunks/{chunk-65LRZIBP.js → chunk-MAPY3YVE.js} +2 -2
  33. package/bin/chunks/{chunk-VKU5TY5C.js → chunk-MYX4FET4.js} +1 -1
  34. package/bin/chunks/{chunk-54QPYUM2.js → chunk-OZD7ZWDX.js} +1 -1
  35. package/bin/chunks/chunk-S2XVNTQP.js +90 -0
  36. package/bin/chunks/{chunk-UR4NWYVW.js → chunk-SBOUSO3S.js} +3 -3
  37. package/bin/chunks/{chunk-KIWEFRNG.js → chunk-SXPLCCO7.js} +6 -6
  38. package/bin/chunks/{chunk-H3BS2EBR.js → chunk-WIT6364Y.js} +4 -4
  39. package/bin/chunks/{chunk-GQPUILFR.js → chunk-WK7HJI5H.js} +1301 -1252
  40. package/bin/chunks/{design-context-store-ETVS4N6W.js → design-context-store-PGXCHUOF.js} +7 -6
  41. package/bin/chunks/{packets-XFXKHSEY.js → packets-B7MCJ42T.js} +7 -6
  42. package/bin/chunks/{preparation-3OR7LVPQ.js → preparation-MVKICQPD.js} +7 -6
  43. package/bin/cloudflare/backend.js +90 -11
  44. package/bin/types/src/agent/browser-typography.d.ts +33 -0
  45. package/bin/types/src/agent/theme-suite-identity.d.ts +1 -0
  46. package/bin/types/src/agent/typography-policy.d.ts +6 -0
  47. package/bin/types/src/build/index.d.ts +2 -0
  48. package/bin/types/src/cli/admin.d.ts +1 -1
  49. package/bin/types/src/compile/site.d.ts +1 -1
  50. package/bin/types/src/scheduling/config.d.ts +11 -0
  51. package/bin/types/src/scheduling/management.d.ts +2 -0
  52. package/bin/types/src/scheduling/styles.d.ts +1 -0
  53. package/bin/types/src/scheduling/widget.d.ts +2 -0
  54. package/bin/types/src/theme.d.ts +3 -1
  55. package/bin/types/src/types.d.ts +6 -1
  56. package/bin/types/src/typography.d.ts +27 -0
  57. package/bin/vitris-art.js +7 -6
  58. package/bin/vitris-build.js +5 -4
  59. package/bin/vitris-create-site.js +9 -8
  60. package/bin/vitris-cursor-hook.js +7 -6
  61. package/bin/vitris-eval.js +9 -8
  62. package/bin/vitris-go.js +9 -8
  63. package/bin/vitris-harvest.js +8 -7
  64. package/bin/vitris-knowledge.js +8 -7
  65. package/bin/vitris-launch-preflight.js +7 -6
  66. package/bin/vitris-motion-view.js +7 -6
  67. package/bin/vitris-references.js +5 -4
  68. package/bin/vitris-refresh.js +8 -7
  69. package/bin/vitris-stock.js +1 -1
  70. package/bin/vitris-templates.js +91 -1
  71. package/bin/vitris-themes.js +7 -6
  72. package/bin/vitris-upgrade.js +8 -7
  73. package/bin/vitris-verify-browser.js +33 -8
  74. package/bin/vitris-verify-performance.js +5 -4
  75. package/bin/vitris.js +17 -16
  76. package/design-system/MASTER.md +4 -0
  77. package/docs/ADMIN.md +85 -85
  78. package/docs/CLI.md +314 -308
  79. package/docs/SCHEDULING.md +67 -0
  80. package/package.json +5 -4
  81. package/templates/site/site.json +1 -0
  82. package/templates/site/theme/defaults.json +78 -17
  83. package/bin/chunks/chunk-L44ZTNDM.js +0 -332
package/README.md CHANGED
@@ -1,74 +1,76 @@
1
- # Vitrus Website Harness
2
-
3
- Vitrus Website Harness gives a coding agent the context, design guidance, and checks to build distinctive websites. It includes a static site compiler, a template library, media tools, and an optional Cloudflare backend for leads, analytics, and owner administration. Each website lives in its own repository.
4
-
5
- The package is [`@tryvitris/website-harness`](https://www.npmjs.com/package/@tryvitris/website-harness). Bring your own coding agent and Node.js 24 or newer. Generation normally ends with a verified local preview; Cloudflare launch is a separate, explicit step.
6
-
7
- ## Create a website
8
-
9
- An optional separate business admin is available through `vitris admin setup|status|verify`; new-site `--admin` prepares follow-up instructions. See the [admin integration guide](docs/ADMIN.md) for pinned packages, local plan/apply, backend grants and the separate customer-account Cloudflare rollout.
10
-
11
- ```bash
12
- npx --package @tryvitris/website-harness@1.0.0 vitris site create \
13
- --dir acme --slug acme --name "Acme Shop" \
14
- --from https://old-site.example --template "Still & Field" \
15
- --content-file ./acme-notes.md
16
- cd acme
17
- npm install
18
- npx playwright install chromium
19
- ```
20
-
21
- Replace the example values with your own. Use `--blank` instead of `--from` for a new site. `--template` accepts a catalog ID, name, or hosted preview URL; `--content` accepts supplied text directly. Both are optional. See the [CLI guide](docs/CLI.md) for input and media policies.
22
-
23
- Open the **site directory** in your coding agent and ask it to build the site. It follows the site's `AGENTS.md` and the prepare → `agent/CURRENT.md` → work → complete loop until the local preview is ready. To start or resume manually, use `npm run go`; for a later change, use `npm run go -- --change "Describe the change"`.
24
-
25
- To browse templates from a harness checkout, run `npm ci`, then `npm run templates:gallery` and open <http://127.0.0.1:4390/>. The gallery loads the hosted catalog. See the [template library guide](agent/refs/template-library.md) for creating and publishing templates.
26
-
27
- ## Built-in skills
28
-
29
- The harness loads stage-specific instructions from [`agent/refs/`](agent/refs/) automatically. These are not installed agent slash commands: describe the work to your agent, and the workflow selects the relevant guidance. The creative workflow also has the following named skills; their prerequisites are included when needed.
30
-
31
- | Skill | What it does |
32
- | --- | --- |
33
- | `business-positioning` | Ground the offer and distinguishing value in business evidence. |
34
- | `narrative` | Organize the visitor journey, questions, and supporting proof. |
35
- | `visual-research` | Adapt useful principles from visual references. |
36
- | `art-direction` | Turn the central idea into a coherent visual direction. |
37
- | `typography` | Establish readable, expressive type hierarchy. |
38
- | `composition` | Shape page layout, rhythm, and visual priority. |
39
- | `media-direction` | Select authentic imagery and identify media gaps. |
40
- | `copy-layout` | Develop page copy and layout together. |
41
- | `purposeful-interaction` | Choose interactions that help visitors act or decide. |
42
- | `responsive-design` | Preserve hierarchy and usable controls across screen sizes. |
43
- | `visual-critique` | Identify consequential visual weaknesses in rendered pages. |
44
- | `visitor-journey` | Test whether visitors can complete intended tasks. |
45
- | `motion-direction` | Plan useful movement and quiet intervals. |
46
- | `motion-page` | Compose motion across each page's journey. |
47
- | `motion-statistics` | Present supplied numbers accessibly, with motion where useful. |
48
- | `motion-phrases` | Pace text without hiding essential copy. |
49
- | `motion-choreography` | Coordinate imagery, captions, and process accents. |
50
-
51
- For example, ask your agent to “improve the mobile layout,” “review the visitor journey,” or “adapt this template to the business.” The workflow includes additional guidance for template adaptation, copy, accessibility, SEO, browser checks, and launch. See the [workflow guide](agent/WORKFLOW.md) and [creative skill registry](src/agent/creative-skills.ts).
52
-
53
- ## Develop the harness
54
-
55
- Customer sites build and verify locally, then upload the exact finished bundle directly to Cloudflare Pages. Use `npm run deploy:preview` for a hosted preview and `npm run deploy` for explicitly requested production publication. GitHub stores source; hosted deployment automation is opt-in. See [Cloudflare setup](docs/CLOUDFLARE.md) for new sites and migration of existing sites.
56
-
57
- ```bash
58
- npm ci
59
- npx playwright install chromium
60
- npm run typecheck
61
- npm test
62
- npm run verify:package
63
- ```
64
-
65
- For a local checkout, run `npm run build:cli` and create a sibling site with `--harness file:../vitris-harness`. See [distribution](docs/DISTRIBUTION.md) for package and upgrade details, and [official testing](docs/OFFICIAL-TEST.md) for frozen baselines.
66
-
67
- ## More information
68
-
69
- - [Active-agent quickstart](docs/QUICKSTART.md) and [workflow guide](agent/WORKFLOW.md)
70
- - [Cloudflare setup](docs/CLOUDFLARE.md), [contact forms](docs/CONTACT-FORMS.md), and [credential safety](docs/SECURITY.md)
71
- - [Stock and customer media](docs/STOCK-MEDIA.md) and [icon guide](agent/refs/icons.md)
72
- - [Evaluation protocol](agent/EVALUATION.md) and [CLI reference](docs/CLI.md)
73
-
74
- MIT licensed. Hosted demonstrations and third-party media have their own license records; see [NOTICE](NOTICE).
1
+ # Vitrus Website Harness
2
+
3
+ Vitrus Website Harness gives a coding agent the context, design guidance, and checks to build distinctive websites. It includes a static site compiler, a template library, media tools, and an optional Cloudflare backend for leads, analytics, and owner administration. Each website lives in its own repository.
4
+
5
+ The package is [`@tryvitris/website-harness`](https://www.npmjs.com/package/@tryvitris/website-harness). Bring your own coding agent and Node.js 24 or newer. Generation normally ends with a verified local preview; Cloudflare launch is a separate, explicit step.
6
+
7
+ ## Create a website
8
+
9
+ An optional separate business admin is available through `vitris admin setup|status|verify`; new-site `--admin` prepares follow-up instructions. See the [admin integration guide](docs/ADMIN.md) for pinned packages, local plan/apply, backend grants and the separate customer-account Cloudflare rollout.
10
+
11
+ ```bash
12
+ npx --package @tryvitris/website-harness@1.0.0 vitris site create \
13
+ --dir acme --slug acme --name "Acme Shop" \
14
+ --from https://old-site.example --template "Still & Field" \
15
+ --content-file ./acme-notes.md
16
+ cd acme
17
+ npm install
18
+ npx playwright install chromium
19
+ ```
20
+
21
+ Replace the example values with your own. Use `--blank` instead of `--from` for a new site. `--template` accepts a catalog ID, name, or hosted preview URL; `--content` accepts supplied text directly. Both are optional. See the [CLI guide](docs/CLI.md) for input and media policies.
22
+
23
+ Open the **site directory** in your coding agent and ask it to build the site. It follows the site's `AGENTS.md` and the prepare → `agent/CURRENT.md` → work → complete loop until the local preview is ready. To start or resume manually, use `npm run go`; for a later change, use `npm run go -- --change "Describe the change"`.
24
+
25
+ To browse templates from a harness checkout, run `npm ci`, then `npm run templates:gallery` and open <http://127.0.0.1:4390/>. The gallery loads the hosted catalog. See the [template library guide](agent/refs/template-library.md) for creating and publishing templates.
26
+
27
+ ## Built-in skills
28
+
29
+ The harness loads stage-specific instructions from [`agent/refs/`](agent/refs/) automatically. These are not installed agent slash commands: describe the work to your agent, and the workflow selects the relevant guidance. The creative workflow also has the following named skills; their prerequisites are included when needed.
30
+
31
+ | Skill | What it does |
32
+ | --- | --- |
33
+ | `business-positioning` | Ground the offer and distinguishing value in business evidence. |
34
+ | `narrative` | Organize the visitor journey, questions, and supporting proof. |
35
+ | `visual-research` | Adapt useful principles from visual references. |
36
+ | `art-direction` | Turn the central idea into a coherent visual direction. |
37
+ | `typography` | Establish readable, expressive type hierarchy. |
38
+ | `composition` | Shape page layout, rhythm, and visual priority. |
39
+ | `media-direction` | Select authentic imagery and identify media gaps. |
40
+ | `copy-layout` | Develop page copy and layout together. |
41
+ | `purposeful-interaction` | Choose interactions that help visitors act or decide. |
42
+ | `responsive-design` | Preserve hierarchy and usable controls across screen sizes. |
43
+ | `visual-critique` | Identify consequential visual weaknesses in rendered pages. |
44
+ | `visitor-journey` | Test whether visitors can complete intended tasks. |
45
+ | `motion-direction` | Plan useful movement and quiet intervals. |
46
+ | `motion-page` | Compose motion across each page's journey. |
47
+ | `motion-statistics` | Present supplied numbers accessibly, with motion where useful. |
48
+ | `motion-phrases` | Pace text without hiding essential copy. |
49
+ | `motion-choreography` | Coordinate imagery, captions, and process accents. |
50
+
51
+ For example, ask your agent to “improve the mobile layout,” “review the visitor journey,” or “adapt this template to the business.” The workflow includes additional guidance for template adaptation, copy, accessibility, SEO, browser checks, and launch. See the [workflow guide](agent/WORKFLOW.md) and [creative skill registry](src/agent/creative-skills.ts).
52
+
53
+ ## Develop the harness
54
+
55
+ Customer sites build and verify locally, then upload the exact finished bundle directly to Cloudflare Pages. Use `npm run deploy:preview` for a hosted preview and `npm run deploy` for explicitly requested production publication. GitHub stores source; hosted deployment automation is opt-in. See [Cloudflare setup](docs/CLOUDFLARE.md) for new sites and migration of existing sites.
56
+
57
+ ```bash
58
+ npm ci
59
+ npx playwright install chromium
60
+ npm run typecheck
61
+ npm test
62
+ npm run verify:package
63
+ ```
64
+
65
+ For a local checkout, run `npm run build:cli` and create a sibling site with `--harness file:../vitris-harness`. See [distribution](docs/DISTRIBUTION.md) for package and upgrade details, and [official testing](docs/OFFICIAL-TEST.md) for frozen baselines.
66
+
67
+ ## More information
68
+
69
+ - [Active-agent quickstart](docs/QUICKSTART.md) and [workflow guide](agent/WORKFLOW.md)
70
+ - [Cloudflare setup](docs/CLOUDFLARE.md), [contact forms](docs/CONTACT-FORMS.md), and [credential safety](docs/SECURITY.md)
71
+ - [Stock and customer media](docs/STOCK-MEDIA.md) and [icon guide](agent/refs/icons.md)
72
+ - [Evaluation protocol](agent/EVALUATION.md) and [CLI reference](docs/CLI.md)
73
+
74
+ MIT licensed. Hosted demonstrations and third-party media have their own license records; see [NOTICE](NOTICE).
75
+
76
+ Optional standard customer booking: see [scheduling](docs/SCHEDULING.md) for the source-only test booking component, compatible admin API, and paired local preview.