@hahlex/millar-mcp 0.0.0-stage → 0.1.0-draft.1
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/LICENSE +21 -0
- package/dist/docs/CHANGELOG.md +21 -0
- package/dist/docs/GLOSSARY.md +77 -0
- package/dist/http.d.ts +3 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +39566 -0
- package/dist/http.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/server.d.ts +6 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +1115 -0
- package/dist/server.js.map +1 -0
- package/dist/skills/millar-animation/SKILL.md +66 -0
- package/dist/skills/millar-animation/references/animation-research-patterns.md +28 -0
- package/dist/skills/millar-animation/references/motion-choreography.md +80 -0
- package/dist/skills/millar-build-web/SKILL.md +59 -0
- package/dist/skills/millar-build-web/references/seo-cwv-and-copy.md +24 -0
- package/dist/skills/millar-build-web/references/web-architecture-checklist.md +47 -0
- package/dist/skills/millar-create-image/SKILL.md +62 -0
- package/dist/skills/millar-create-image/references/human-editorial-photography.md +74 -0
- package/dist/skills/millar-create-image/references/hybrid-plate-compositing.md +43 -0
- package/dist/skills/millar-create-image/references/image-art-direction.md +74 -0
- package/dist/skills/millar-create-image/references/multi-page-asset-map.md +27 -0
- package/dist/skills/millar-create-image/references/natural-editorial-illustration.md +57 -0
- package/dist/skills/millar-create-image/references/procedural-gallery-craft.md +84 -0
- package/dist/skills/millar-create-image/scripts/embed-provenance.mjs +185 -0
- package/dist/skills/millar-deep-research/SKILL.md +62 -0
- package/dist/skills/millar-deep-research/references/visual-extraction-protocol.md +36 -0
- package/dist/skills/millar-deep-research/references/world-class-benchmarks.md +30 -0
- package/dist/skills/millar-design/SKILL.md +83 -0
- package/dist/skills/millar-design/references/aesthetic-movements.md +49 -0
- package/dist/skills/millar-design/references/cross-page-sync-audit.md +25 -0
- package/dist/skills/millar-design/references/style-dna-contract.md +89 -0
- package/dist/skills/millar-verify-web/SKILL.md +76 -0
- package/dist/skills/millar-verify-web/references/five-layer-qa-gate.md +104 -0
- package/dist/skills/millar-verify-web/references/two-axis-review-rubric.md +23 -0
- package/dist/skills/millar-verify-web/scripts/millar-audit.mjs +617 -0
- package/dist/skills/millar-web-workflow/SKILL.md +60 -0
- package/dist/skills/millar-web-workflow/references/creative-divergence-protocol.md +52 -0
- package/dist/skills/millar-web-workflow/references/track-routing-and-gates.md +32 -0
- package/dist/skills-loader.d.ts +47 -0
- package/dist/skills-loader.d.ts.map +1 -0
- package/dist/skills-loader.js +204 -0
- package/dist/skills-loader.js.map +1 -0
- package/dist/sources/packages/marketing/src/assets/BrandAndGeometricAssets.tsx +373 -0
- package/dist/sources/packages/marketing/src/assets/SchematicAndProductAssets.tsx +497 -0
- package/dist/sources/packages/marketing/src/sections/MarketingSections.tsx +946 -0
- package/dist/sources/packages/marketing/src/templates/PageTemplates.tsx +304 -0
- package/dist/sources/packages/ui/src/components/Button.tsx +162 -0
- package/dist/sources/packages/ui/src/components/FormControls.tsx +476 -0
- package/dist/sources/packages/ui/src/components/Layout.tsx +176 -0
- package/dist/sources/packages/ui/src/components/OverlaysAndFeedback.tsx +291 -0
- package/dist/sources/packages/ui/src/components/SurfacesAndData.tsx +564 -0
- package/dist/stdio.d.ts +3 -0
- package/dist/stdio.d.ts.map +1 -0
- package/dist/stdio.js +37380 -0
- package/dist/stdio.js.map +1 -0
- package/package.json +48 -3
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Hahlex
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to **Millar** (Hahlex Design System) are documented here following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and [Semantic Versioning](https://semver.org/).
|
|
4
|
+
|
|
5
|
+
## [0.1.0] - 2026-11-25 (Draft Foundation Release)
|
|
6
|
+
|
|
7
|
+
> All v0.1.0 tokens, components, visual assets, composition patterns, sections, and templates are authored in `draft` status awaiting human sign-off for promotion to `approved`.
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- **Phase 0 (Monorepo, ADRs & Governance)**: Independent standalone pnpm monorepo (`d:\projects\millar`), accepted ADRs 0001-0005, *Measured Warmth* visual philosophy manifesto (`docs/art-direction/measured-warmth-philosophy.md`), `check:em-dash` (Hahlex-controlled UI/docs scope), and `check:governance` (Draft/Approved/Deprecated + visual-asset referential integrity gate).
|
|
11
|
+
- **Phase 1 (Shared Foundations & SSoT Compiler)**: W3C DTCG `2025.10` token sets (`tokens/`), canonical normalized Vector Brand Marks (4 SVG variants) + PWA maskable icons (`192px`, `512px`), and `@hahlex/millar-core` compiler generating `@hahlex/millar-tokens` (`tokens.css` with scoped `[data-theme="dark"]` & `[data-register="..."]`, Tailwind v4 `@theme inline`, Tailwind v3 preset, literal AntD 6 mirrors, `education.css`, `dtcg.json`, `millar-registry.json`). Automated verification clears `84/84` WCAG 2.1 AA contrast pairs and Machado protan/deutan minimum Delta-E `11.13`.
|
|
12
|
+
- **Phase 2 (Product/App Primitives & Domain Extension)**: `@hahlex/millar-ui` (10 accessible primitive groups, 54 1.5px Lucide icons, WAI-ARIA APG keyboard contracts, `createMillarAntdTheme` AntD 6 adapter) and optional `@hahlex/millar-domain-education` (`SkillDomainBadge`, `LearnerHighlight`).
|
|
13
|
+
- **Phase 3 (Marketing Design System & Photo-Free Craft)**: `@hahlex/millar-marketing` delivering 6 diverse Composition Patterns, 14 code-native Visual Assets (SVG, CSS, HTML5 Canvas, React; including `WarmHorizonWash` tagged `approved-visual-asset`), Productive & Expressive Motion Library, 10 Marketing Sections, 4 complete Page/App Templates (`ProductLaunchTemplate`, `EditorialFeatureTemplate`, `DirectoryWorkspaceTemplate`, `AnalyticsDashboardTemplate`), live Visual Do's & Don'ts, and *Measured Warmth* specimen poster (`PNG`/`PDF`).
|
|
14
|
+
- **Phase 4 (Millar Website Portal)**: `@hahlex/millar-portal` Next.js 15 App Router static portal (`basePath: "/millar"`) with Home, Foundations, Marketing, Product, and Resources routes, `Ctrl+K` Search Dialog, Light/Dark & EN/VI live toggles, interactive playgrounds, token explorer, asset downloads, and Cloudflare Workers config.
|
|
15
|
+
- **Phase 5 (Validator & Millar MCP Server)**: `@hahlex/millar-validator` (11 deterministic rules + CLI `check:design`, separating `automatedChecks` from `humanReviewCriteria`) and `@hahlex/millar-mcp` (`2026-07-28`, stdio + Streamable HTTP, 66 static/template `millar://` Resources, 11 read-only Tools with `lifecycleStatus`, and 3 Prompts).
|
|
16
|
+
- **Phase 6 (Verification & 2-Axis Code Review)**: Playwright E2E + real-browser `@axe-core/playwright` across all 5 Portal routes in Light & Dark modes (`1440px`, `768px`, `375px`, EN/VI, keyboard workflows, reduced-motion), visual screenshot inspection & polish, and Matt Pocock 2-Axis parallel code review remediation.
|
|
17
|
+
- **Phase 7 (Documentation & Integration)**: Authored `DESIGN.md`, `AGENTS.md`, root `README.md`, and `docs/integration/production-cutover-and-adoption.md` covering the mandatory CMS origin isolation gate, `hahlex-edu` / `education-portfolio` adoption guides, and MCP client setup matrix.
|
|
18
|
+
|
|
19
|
+
### Planned (v0.2.0 Roadmap)
|
|
20
|
+
- Additional Marketing & Product templates (`CompanyAboutTemplate`, `RecordDetailTemplate`, `AssistantWorkspaceTemplate`) and `ProofRibbonSection`.
|
|
21
|
+
- Human governance sign-off promoting validated `v0.1.0` items from `draft` to `approved`, manual NVDA/VoiceOver assistive technology audit, and production cutover to `hahlex.com/millar` following Keystatic CMS origin isolation.
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Millar
|
|
2
|
+
|
|
3
|
+
Millar is Hahlex's unified, product-agnostic design language, component system, visual asset library, portal, and AI-agent interface. This glossary defines the canonical terms shared by designers, engineers, and AI agents across the Hahlex ecosystem.
|
|
4
|
+
|
|
5
|
+
> **Lifecycle Note**: Terms below are `Draft` until approved by Hahlex leadership.
|
|
6
|
+
|
|
7
|
+
## Architecture & Layers
|
|
8
|
+
|
|
9
|
+
**Shared Foundations**:
|
|
10
|
+
The product-agnostic design standards shared across every Hahlex surface, covering principles, brand identity, typography, color scales, spacing, grid, radius, elevation, iconography, accessibility, and canonical design tokens.
|
|
11
|
+
_Avoid_: Core theme, base styles, global CSS
|
|
12
|
+
|
|
13
|
+
**Register**:
|
|
14
|
+
An intentional behavioral and aesthetic configuration built on Shared Foundations for a specific class of surface, specifically the **Marketing Register** (editorial pacing, expressive typography scale, storytelling sections, expressive motion) or the **Product Register** (operational density, 1-glance scannability, data controls, productive motion).
|
|
15
|
+
_Avoid_: Theme (a theme is light/dark contrast mode), skin, mode
|
|
16
|
+
|
|
17
|
+
**Theme**:
|
|
18
|
+
The luminance polarity applied to a surface, specifically **Light** (White-First or Editorial Cream canvas) or **Dark** (Warm Obsidian or Deep Espresso canvas). Orthogonal to Register.
|
|
19
|
+
_Avoid_: Mode (alone), palette, register
|
|
20
|
+
|
|
21
|
+
**Domain Extension**:
|
|
22
|
+
An optional semantic token, icon, and pattern pack layered on top of Shared Foundations for a specific Hahlex business vertical (such as the Education Extension for 4-skill language semantics or learner highlights) without polluting Millar's product-agnostic core.
|
|
23
|
+
_Avoid_: Vertical theme, product hack, plugin
|
|
24
|
+
|
|
25
|
+
**Single Source of Truth (SSoT)**:
|
|
26
|
+
The sole authoritative definition of Millar's tokens, guidelines, component contracts, sections, templates, visual assets, and motion presets from which the Millar Portal, consumable packages, and Millar MCP Server are compiled automatically.
|
|
27
|
+
_Avoid_: Master doc, style guide copy, reference file
|
|
28
|
+
|
|
29
|
+
## Visual & Surface System
|
|
30
|
+
|
|
31
|
+
**Surface Role**:
|
|
32
|
+
A named elevation and container tier (`base`, `inset`, `raised`, `overlay`, `modal`) that pairs a semantic background fill, hairline border, corner radius, shadow level, and z-index into one consistent visual unit.
|
|
33
|
+
_Avoid_: Elevation level (alone), card style, material
|
|
34
|
+
|
|
35
|
+
**Invariant**:
|
|
36
|
+
A non-negotiable, machine-verifiable rule enforced across Millar outputs (such as minimum WCAG AA contrast, zero un-tokenized colors, zero CSS gradients on product UI, or zero em-dash `U+2014` in copy).
|
|
37
|
+
_Avoid_: Guideline, best practice, recommendation
|
|
38
|
+
|
|
39
|
+
**Visual Asset**:
|
|
40
|
+
A reusable, code-native graphic primitive (SVG diagram, architectural grid, geometric pattern, tactile texture, stylized product-chrome frame, or brand mark) engineered to carry visual craft and narrative clarity without relying on stock photography or animation.
|
|
41
|
+
_Avoid_: Illustration (only one subset), image placeholder, decoration
|
|
42
|
+
|
|
43
|
+
**Product Visualization**:
|
|
44
|
+
A stylized, crisp, static-first representation of real Hahlex interface chrome built from Millar tokens and components to explain product capabilities on marketing surfaces without blurry screenshots or blank scroll traps.
|
|
45
|
+
_Avoid_: Mockup, screenshot, fake chatbox
|
|
46
|
+
|
|
47
|
+
**Motion Register**:
|
|
48
|
+
The split between **Productive Motion** (fast, task-focused feedback for Product/App controls) and **Expressive Motion** (deliberate editorial pacing for Marketing transitions), both bound to a static-first `prefers-reduced-motion` end state.
|
|
49
|
+
_Avoid_: Animation speed, transition preset
|
|
50
|
+
|
|
51
|
+
## Catalog & Composition
|
|
52
|
+
|
|
53
|
+
**Primitive**:
|
|
54
|
+
An atomic, accessible, product-agnostic UI building block (such as Button, Input, Dialog, DataTable, or Badge) with a single defined ARIA/keyboard contract.
|
|
55
|
+
_Avoid_: Widget, control (alone), element
|
|
56
|
+
|
|
57
|
+
**Pattern**:
|
|
58
|
+
A repeatable UX solution combining multiple Primitives and rules to solve a recurring user problem (such as FilterBar, Record Detail Drawer vs. Page, Form Validation, or Empty/Error/Loading recovery).
|
|
59
|
+
_Avoid_: Component, template, flow
|
|
60
|
+
|
|
61
|
+
**Section**:
|
|
62
|
+
A self-contained, responsive Marketing page band combining typography, layout grid, copy structure, and Visual Assets to deliver one clear narrative beat.
|
|
63
|
+
_Avoid_: Block, slice, module
|
|
64
|
+
|
|
65
|
+
**Template**:
|
|
66
|
+
A complete, opinionated multi-section Marketing page layout or multi-region Product application shell demonstrating approved composition, hierarchy, and responsive behavior.
|
|
67
|
+
_Avoid_: Starter, boilerplate, demo page
|
|
68
|
+
|
|
69
|
+
## Governance
|
|
70
|
+
|
|
71
|
+
**Lifecycle State**:
|
|
72
|
+
The formal maturity and authority status of every Millar token, component, section, template, or guideline: **Draft** (proposed or work-in-progress, including any AI-authored proposal), **Approved** (human-reviewed official Hahlex standard), or **Deprecated** (scheduled for removal with an explicit migration path).
|
|
73
|
+
_Avoid_: Beta, WIP, legacy, experimental
|
|
74
|
+
|
|
75
|
+
**Compliance Check**:
|
|
76
|
+
An automated, deterministic verification pass (run via CI or the Millar MCP `validate_design` tool) that inspects UI code or markup against Millar's verifiable Invariants and component contracts.
|
|
77
|
+
_Avoid_: Design review, lint (alone), aesthetic score
|
package/dist/http.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":""}
|