medesign 1.6.0 → 1.6.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/README.md +90 -72
- package/bin/medesign.js +44 -10
- package/package.json +81 -81
- package/tests/snapshot.js +5 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# ME-DESIGN v1.
|
|
1
|
+
# ME-DESIGN v1.6.1
|
|
2
2
|
|
|
3
|
-
**The Autonomous Design Engineering System
|
|
3
|
+
**The Autonomous Design Engineering System, Deterministic Quality Linter & Auto-Compiler for AI Coding Assistants**
|
|
4
4
|
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
[](https://github.com/methastrategy/medesign/actions/workflows/ci.yml)
|
|
@@ -8,36 +8,49 @@
|
|
|
8
8
|
[](https://nodejs.org/)
|
|
9
9
|
[]()
|
|
10
10
|
[]()
|
|
11
|
+
[]()
|
|
11
12
|
|
|
12
13
|
*Eliminate AI Slop and bring optical mathematics, perceptual color science, and mission-critical engineering rigor to automated UI/UX generation.*
|
|
13
14
|
|
|
14
15
|
---
|
|
15
16
|
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
17
|
## 🌟 Why ME-DESIGN?
|
|
19
18
|
|
|
20
19
|
Most AI-generated user interfaces suffer from **Decisionless Uniformity**: generic 3-card grids, oversaturated neon glows, clipping Thai/Latin font metrics, broken keyboard accessibility, and non-proportional press deformations.
|
|
21
20
|
|
|
22
|
-
**ME-DESIGN** changes the paradigm from subjective aesthetic prompting to an **executable 5-Engine Design Architecture** coupled with a **Dual-Tier Quality Linter**, **Knowledge Discovery Search Engine**,
|
|
21
|
+
**ME-DESIGN** changes the paradigm from subjective aesthetic prompting to an **executable 5-Engine Design Architecture** coupled with a **Dual-Tier Quality Linter**, **Knowledge Discovery Search Engine**, **Self-Healing Code Repair**, **Interactive Brief Intake Gate (v2.3)**, and **74 Global Brand Multi-Pane Systems**.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 🖼️ Visual Showcase & Responsive Render Gallery
|
|
26
|
+
|
|
27
|
+
Pre-rendered directly by ME-DESIGN's Headless Chrome CDP Engine across Desktop (1440×900) and Mobile (390×844) viewports:
|
|
28
|
+
|
|
29
|
+
| Design System & Archetype | Desktop View (1440×900) | Mobile View (390×844) |
|
|
30
|
+
| :--- | :--- | :--- |
|
|
31
|
+
| **Cadastral Engineering QA/QC**<br>*(Archetype 38 — Geospatial Precision)* | <img src="examples/snapshots/cadastral-qaqc-slide-desktop-1440x900.png" width="480" alt="Cadastral QA/QC Dashboard"> | <img src="examples/snapshots/cadastral-qaqc-slide-mobile-390x844.png" width="160" alt="Cadastral QA/QC Mobile"> |
|
|
32
|
+
| **Linear Issue Board**<br>*(Archetype 06 — Linear Minimal & High-Density)* | <img src="examples/snapshots/linear-issue-board-desktop-1440x900.png" width="480" alt="Linear Issue Board"> | <img src="examples/snapshots/linear-issue-board-mobile-390x844.png" width="160" alt="Linear Mobile"> |
|
|
33
|
+
| **Spotify Web Player**<br>*(Archetype 21 — Decoupled 3-Pane Media Studio)* | <img src="examples/snapshots/spotify-web-player-desktop-1440x900.png" width="480" alt="Spotify Web Player"> | <img src="examples/snapshots/spotify-web-player-mobile-390x844.png" width="160" alt="Spotify Mobile"> |
|
|
34
|
+
| **Executive Saliency Report**<br>*(Archetype 02 — Swiss International Editorial)* | <img src="examples/snapshots/executive-summary-report-desktop-1440x900.png" width="480" alt="Executive Summary Report"> | <img src="examples/snapshots/executive-summary-report-mobile-390x844.png" width="160" alt="Executive Mobile"> |
|
|
23
35
|
|
|
24
36
|
---
|
|
25
37
|
|
|
26
38
|
## ⚔️ Multi-Dimensional Competitive Benchmark
|
|
27
39
|
|
|
28
|
-
| Dimension | `medesign` (v1.
|
|
40
|
+
| Dimension | `medesign` (v1.6.0) | `ui-ux-pro-max-skill` | `pbakaus/impeccable` |
|
|
29
41
|
| :--- | :--- | :--- | :--- |
|
|
30
42
|
| **Execution Architecture** | **Autonomous Node.js CLI & Deterministic Engine** | Prompt-only System Text | Markdown Guidelines & Rules |
|
|
43
|
+
| **Brief Intake Protocol** | **Dual-Layer Auto-Intent Routing & 1-Click Cockpit Gate** | Free-form Prompting | Manual Instructions |
|
|
31
44
|
| **Verification Gate** | **Mathematical Q-Score (0–100) + Hard Invariants** | Subjective LLM Self-Critique | Manual Inspection Checklist |
|
|
32
|
-
| **Self-Healing Code Repair** | **
|
|
45
|
+
| **Self-Healing Code Repair** | **Deterministic Pattern & Style Fixer (`medesign polish`)** | Re-prompting Prompt Loop | Manual Code Editing |
|
|
33
46
|
| **Conversational Modifiers** | **Instant Code Density (`bolder` / `quiet`)** | Chat Revision Re-rolls | None |
|
|
34
|
-
| **Knowledge Discovery** | **Pure Node.js Search across 38 Archetypes &
|
|
47
|
+
| **Knowledge Discovery** | **Pure Node.js Search across 38 Archetypes & 74 Brands** | Static Markdown Reading | Static Document Browsing |
|
|
35
48
|
| **Automated CI/CD Quality Gate** | **Native OASIS SARIF v2.1.0 for GitHub Code Scanning** | None | None |
|
|
36
49
|
| **Perceptual Color Science** | **OKLCH / OKLab Gamut Mapping & `color-mix()`** | Standard Hex / sRGB Defaults | Hex / sRGB Recommendations |
|
|
37
50
|
| **Headless Browser Matrix** | **Chrome DevTools Protocol (Real Contrast & 44px Hit-Targets)** | None | Manual Browser DevTools |
|
|
38
51
|
| **Design Token Standards** | **Tailwind v4 `@theme`, W3C DTCG & CSS Custom Properties** | Unstructured CSS Snippets | None |
|
|
39
|
-
| **Domain Archetype Depth** | **38 Decoupled Archetypes (HMI
|
|
40
|
-
| **Runtime Package Footprint** | **Zero-Dependency CLI
|
|
52
|
+
| **Domain Archetype Depth** | **38 Decoupled Archetypes + 74 Brand Systems (HMI, GIS, Audio)** | Generic SaaS / E-commerce | General UI Polish Rules |
|
|
53
|
+
| **Runtime Package Footprint** | **Zero-Dependency CLI & Comprehensive Ruleset on npm** | Multi-file Prompt Repos | Docs / Repo Only |
|
|
41
54
|
|
|
42
55
|
---
|
|
43
56
|
|
|
@@ -54,7 +67,7 @@ ME-DESIGN Core Engine
|
|
|
54
67
|
|
|
55
68
|
---
|
|
56
69
|
|
|
57
|
-
## 📐 38 Production Archetypes
|
|
70
|
+
## 📐 38 Production Archetypes & 74 Global Brand Systems
|
|
58
71
|
|
|
59
72
|
ME-DESIGN decouples UI synthesis across 5 independent axes:
|
|
60
73
|
**Operational Archetype × Visual Language × Spatial Model × Motion Profile × Governance Tier**
|
|
@@ -68,85 +81,90 @@ ME-DESIGN decouples UI synthesis across 5 independent axes:
|
|
|
68
81
|
- **31. Mission Control HMI (ISA-101 Standard):** Tri-state alarms, greyscale base, operator decision priority.
|
|
69
82
|
- **32. Geospatial Situation Awareness (GIS & Cadastre):** Map-centric 16:10 / 100dvh, linked selection tables, EPSG coordinates.
|
|
70
83
|
- **33. CAD Precision Workbench:** Maximized canvas, floating command bar, geometric snap indicators.
|
|
71
|
-
|
|
72
|
-
- **35. Anomaly Triage & Incident Response:** Priority queue, severity vs confidence matrix.
|
|
73
|
-
- **36. Field Survey & Offline Operations:** 52px touch targets, RTK fix status, offline sync queue.
|
|
74
|
-
- **37. Spatiotemporal Change Detection:** Synchronized dual viewports, epoch time slider.
|
|
75
|
-
- **38. Data Provenance & Survey QA/QC:** Observation lineage, error ellipses, legal timestamp seals.
|
|
84
|
+
- **74 Global Brand Multi-Pane Systems:** Pre-calibrated spatial layouts and design tokens for premier brands (Apple, Spotify, Linear, Tesla, Stripe, Bloomberg, GitHub, Vercel, Porsche, Teenage Engineering, etc.).
|
|
76
85
|
|
|
77
86
|
---
|
|
78
87
|
|
|
79
|
-
##
|
|
88
|
+
## 📦 Installation & Global CLI
|
|
80
89
|
|
|
81
|
-
|
|
90
|
+
Install globally or execute instantly with `npx`:
|
|
82
91
|
|
|
83
92
|
```bash
|
|
84
|
-
#
|
|
85
|
-
npx medesign
|
|
86
|
-
npx medesign search "apple hardware"
|
|
87
|
-
npx medesign search "tesla telemetry"
|
|
93
|
+
# Direct execution without permanent installation
|
|
94
|
+
npx medesign <command>
|
|
88
95
|
|
|
89
|
-
#
|
|
90
|
-
|
|
96
|
+
# Or install globally
|
|
97
|
+
npm install -g medesign
|
|
98
|
+
```
|
|
91
99
|
|
|
92
|
-
|
|
93
|
-
npx medesign bolder path/to/index.html # Boost font weights, sharpen borders, raise contrast
|
|
94
|
-
npx medesign quiet path/to/index.html # Soften font weights, reduce borders to hairlines
|
|
100
|
+
### Verified CLI Commands
|
|
95
101
|
|
|
96
|
-
|
|
97
|
-
|
|
102
|
+
```text
|
|
103
|
+
ME-DESIGN CLI v1.6.1
|
|
104
|
+
Autonomous Design Engineering Toolkit & Automated Linter for AI Coding Assistants
|
|
98
105
|
|
|
99
|
-
|
|
100
|
-
|
|
106
|
+
USAGE:
|
|
107
|
+
medesign <command> [options]
|
|
101
108
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
109
|
+
COMMANDS:
|
|
110
|
+
search <query> Search 38 Archetypes & presets with discovery engine
|
|
111
|
+
Options: --json
|
|
105
112
|
|
|
106
|
-
|
|
107
|
-
|
|
113
|
+
polish <file> Self-healing repair for Hard Invariants (MD005, MD104, em-dash)
|
|
114
|
+
Options: --dry-run
|
|
108
115
|
|
|
109
|
-
|
|
110
|
-
npx medesign doctor
|
|
111
|
-
```
|
|
116
|
+
bolder <file> Boost visual density, font weights, and border contrast
|
|
112
117
|
|
|
113
|
-
|
|
118
|
+
quiet <file> Softens visual density, font weights, and border treatments
|
|
114
119
|
|
|
115
|
-
|
|
120
|
+
lint <file> Lint HTML/CSS/JSX file with deterministic pattern & architectural rules
|
|
121
|
+
Options: --format <text|json|sarif>
|
|
122
|
+
--preset <apple|tesla|metha>
|
|
123
|
+
--config <path>
|
|
116
124
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
125
|
+
audit <file> Run headless Chrome DevTools Protocol verification matrix
|
|
126
|
+
(Checks computed contrast, tab focus outline, 44px hit-targets across viewports)
|
|
127
|
+
Options: --json
|
|
120
128
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
```
|
|
129
|
+
snapshot <file> Capture high-DPI rendered screenshots across responsive viewports
|
|
130
|
+
Options: --out <dir>, --og (1200x630 banner), --viewports <list>
|
|
124
131
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
────────────────────────────────────────
|
|
132
|
+
tokens [export] Export preset design tokens to Tailwind v4 @theme, W3C DTCG, or CSS
|
|
133
|
+
Options: --preset <apple|tesla|metha|all>
|
|
134
|
+
--format <tailwind|dtcg|css|all>
|
|
135
|
+
--out <directory>
|
|
136
|
+
|
|
137
|
+
presets [list|get] Inspect available design system presets
|
|
138
|
+
Usage: medesign presets list
|
|
139
|
+
medesign presets get <preset-name>
|
|
140
|
+
|
|
141
|
+
test [options] Run deterministic test suite across fixtures
|
|
142
|
+
Options: --browser (runs both static pattern and headless browser matrix)
|
|
143
|
+
|
|
144
|
+
doctor Verify local environment, Node.js, and Chrome/CDP availability
|
|
145
|
+
|
|
146
|
+
help Display this help message
|
|
141
147
|
```
|
|
142
148
|
|
|
143
|
-
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## 🛠️ Automated Quality Linter & Self-Healing Repair
|
|
144
152
|
|
|
145
|
-
|
|
153
|
+
### 🛡️ Deterministic Static Rules Linter (`medesign lint`)
|
|
146
154
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
155
|
+
```bash
|
|
156
|
+
# Output human-readable terminal report
|
|
157
|
+
npx medesign lint path/to/dashboard.html
|
|
158
|
+
|
|
159
|
+
# Output SARIF 2.1.0 JSON format for GitHub Code Scanning
|
|
160
|
+
npx medesign lint path/to/dashboard.html --format sarif > medesign-results.sarif
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### 🩹 Self-Healing Repair (`medesign polish`)
|
|
164
|
+
|
|
165
|
+
Automatically inspects and repairs hard invariants directly in code:
|
|
166
|
+
- **MD104:** Replaces raw unconstrained `100vh` with safe modern `100dvh` fallbacks.
|
|
167
|
+
- **MD005:** Replaces `outline: none` with physical `:focus-visible` rings and `@media (forced-colors: active)`.
|
|
150
168
|
- **MD002:** Adds `@media (prefers-reduced-motion)` accessibility gates.
|
|
151
169
|
- **MD201:** Cleans up decorative AI-tell em-dashes `—` (including entity `—`) into clean hyphens `-`.
|
|
152
170
|
|
|
@@ -179,13 +197,13 @@ npx medesign quiet path/to/dashboard.html
|
|
|
179
197
|
### The Terminal Quality Audit Card
|
|
180
198
|
|
|
181
199
|
```text
|
|
182
|
-
ME-DESIGN v1.
|
|
200
|
+
ME-DESIGN v1.6.0
|
|
183
201
|
Design Quality & Governance Audit
|
|
184
202
|
────────────────────────────────────────
|
|
185
203
|
Target dashboard.tsx
|
|
186
204
|
Archetype Geospatial Situation Awareness (32)
|
|
187
|
-
Analysis Static
|
|
188
|
-
Ruleset medesign-standard@1.
|
|
205
|
+
Analysis Deterministic Static Pattern Rules
|
|
206
|
+
Ruleset medesign-standard@1.6.0
|
|
189
207
|
|
|
190
208
|
QUALITY SCORE (Q = 0.30H + 0.25I + 0.20G + 0.15R + 0.10V)
|
|
191
209
|
Hierarchy (H) 94.0 / 100
|
|
@@ -212,9 +230,9 @@ RESULT: PASS (Exit Code: 0)
|
|
|
212
230
|
|
|
213
231
|
ME-DESIGN provides shared rule adapters for all major agentic tools:
|
|
214
232
|
|
|
233
|
+
- **Google Antigravity:** Native Skill supported under `skills/medesign/SKILL.md`
|
|
215
234
|
- **Claude Code:** Copy `integrations/claude-code/SKILL.md` to `.claude/skills/medesign/SKILL.md`
|
|
216
235
|
- **Cursor:** Copy `integrations/cursor/medesign.mdc` to `.cursor/rules/medesign.mdc`
|
|
217
|
-
- **Google Antigravity:** Native Skill supported under `skills/medesign/SKILL.md`
|
|
218
236
|
|
|
219
237
|
---
|
|
220
238
|
|
package/bin/medesign.js
CHANGED
|
@@ -90,7 +90,7 @@ ${ANSI_BOLD}COMMANDS:${ANSI_RESET}
|
|
|
90
90
|
medesign presets get <preset-name>
|
|
91
91
|
|
|
92
92
|
${ANSI_CYAN}test${ANSI_RESET} [options] Run deterministic test suite across fixtures
|
|
93
|
-
Options: --browser (runs both static
|
|
93
|
+
Options: --browser (runs both static pattern and headless browser matrix)
|
|
94
94
|
|
|
95
95
|
${ANSI_CYAN}doctor${ANSI_RESET} Verify local environment, Node.js, and Chrome/CDP availability
|
|
96
96
|
|
|
@@ -265,15 +265,21 @@ ${ANSI_GRAY}──────────────────────
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
case 'polish': {
|
|
268
|
-
const
|
|
269
|
-
|
|
268
|
+
const isHelp = args.includes('--help') || args.includes('-h');
|
|
269
|
+
const dryRun = args.includes('--dry-run');
|
|
270
|
+
const targetFile = args.slice(1).find(a => !a.startsWith('--'));
|
|
271
|
+
|
|
272
|
+
if (!targetFile || isHelp) {
|
|
270
273
|
console.log(`
|
|
271
274
|
${ANSI_BOLD}ME-DESIGN Self-Healing Polish & Aesthetic Auto-Compiler${ANSI_RESET}
|
|
272
275
|
${ANSI_GRAY}Autonomous aesthetic compilation and self-healing repair engine${ANSI_RESET}
|
|
273
276
|
|
|
274
277
|
${ANSI_BOLD}Usage:${ANSI_RESET}
|
|
275
|
-
medesign polish <file>
|
|
276
|
-
mepolish <file>
|
|
278
|
+
medesign polish <file> [options]
|
|
279
|
+
mepolish <file> [options]
|
|
280
|
+
|
|
281
|
+
${ANSI_BOLD}Options:${ANSI_RESET}
|
|
282
|
+
--dry-run Preview potential repairs without modifying files on disk
|
|
277
283
|
|
|
278
284
|
${ANSI_BOLD}Repairs & Aesthetic Compilations:${ANSI_RESET}
|
|
279
285
|
- Elevates generic typography to curated Archetypes (Geist / Plus Jakarta Sans / JetBrains Mono)
|
|
@@ -288,7 +294,7 @@ ${ANSI_BOLD}Repairs & Aesthetic Compilations:${ANSI_RESET}
|
|
|
288
294
|
- Injects prefers-reduced-motion accessibility gate (MD002)
|
|
289
295
|
- Cleans HTML entity and unicode em-dashes to hyphens (MD201)
|
|
290
296
|
`);
|
|
291
|
-
process.exit(
|
|
297
|
+
process.exit(isHelp ? 0 : 1);
|
|
292
298
|
}
|
|
293
299
|
const resolvedPath = path.resolve(process.cwd(), targetFile);
|
|
294
300
|
if (!fs.existsSync(resolvedPath)) {
|
|
@@ -582,20 +588,40 @@ ${ANSI_BOLD}Repairs & Aesthetic Compilations:${ANSI_RESET}
|
|
|
582
588
|
fixes.push('Injected safe concentric radius formula max(0px, r_outer - border_w - pad) (MD103)');
|
|
583
589
|
}
|
|
584
590
|
|
|
591
|
+
if (dryRun) {
|
|
592
|
+
console.log(`\n${ANSI_YELLOW}${ANSI_BOLD}[POLISH DRY-RUN PREVIEW]${ANSI_RESET} ${fixes.length} potential repairs identified for ${ANSI_CYAN}${path.basename(resolvedPath)}${ANSI_RESET}`);
|
|
593
|
+
fixes.forEach(f => console.log(` ${ANSI_CYAN}Preview:${ANSI_RESET} ${f}`));
|
|
594
|
+
console.log(`\n${ANSI_GRAY}Dry-run mode: Target file was not modified on disk.${ANSI_RESET}\n`);
|
|
595
|
+
process.exit(0);
|
|
596
|
+
}
|
|
597
|
+
|
|
585
598
|
fs.writeFileSync(resolvedPath, content, 'utf8');
|
|
586
599
|
|
|
587
600
|
let afterQ = beforeQ;
|
|
588
601
|
let isPassed = true;
|
|
602
|
+
let hardFailures = [];
|
|
589
603
|
try {
|
|
590
604
|
const afterRes = spawnSync(process.execPath, [linterScript, resolvedPath, '--json'], { encoding: 'utf8' });
|
|
591
605
|
const parsed = JSON.parse(afterRes.stdout);
|
|
592
606
|
afterQ = parsed.qScore !== undefined ? parsed.qScore : beforeQ;
|
|
593
607
|
isPassed = parsed.passed !== undefined ? parsed.passed : (afterQ >= 75);
|
|
608
|
+
hardFailures = parsed.hardFailures || [];
|
|
594
609
|
} catch (e) {}
|
|
595
610
|
|
|
611
|
+
const statusBadge = isPassed ? `${ANSI_GREEN}PASS${ANSI_RESET}` : `${ANSI_RED}FAIL${ANSI_RESET}`;
|
|
596
612
|
console.log(`\n${ANSI_GREEN}${ANSI_BOLD}[POLISH COMPLETED]${ANSI_RESET} ${fixes.length} issues automatically repaired in ${ANSI_CYAN}${path.basename(resolvedPath)}${ANSI_RESET}`);
|
|
597
613
|
fixes.forEach(f => console.log(` ${ANSI_GREEN}Fixed:${ANSI_RESET} ${f}`));
|
|
598
|
-
console.log(`${ANSI_BOLD}Q-Score:${ANSI_RESET} ${beforeQ.toFixed(1)} -> ${ANSI_GREEN}${ANSI_BOLD}${afterQ.toFixed(1)}${ANSI_RESET} [${
|
|
614
|
+
console.log(`${ANSI_BOLD}Q-Score:${ANSI_RESET} ${beforeQ.toFixed(1)} -> ${ANSI_GREEN}${ANSI_BOLD}${afterQ.toFixed(1)}${ANSI_RESET} [${statusBadge}]\n`);
|
|
615
|
+
|
|
616
|
+
if (!isPassed) {
|
|
617
|
+
console.error(`${ANSI_RED}${ANSI_BOLD}[GATE REJECTED]${ANSI_RESET} File still contains unresolved violations after auto-repair:`);
|
|
618
|
+
if (hardFailures.length > 0) {
|
|
619
|
+
const failureNames = hardFailures.map(f => typeof f === 'string' ? f : `${f.ruleId} (${f.ruleName || 'Violation'})`).join(', ');
|
|
620
|
+
console.error(` ${ANSI_RED}Hard Invariant Failures:${ANSI_RESET} ${failureNames}`);
|
|
621
|
+
}
|
|
622
|
+
process.exit(1);
|
|
623
|
+
}
|
|
624
|
+
|
|
599
625
|
process.exit(0);
|
|
600
626
|
}
|
|
601
627
|
|
|
@@ -902,7 +928,7 @@ ${ANSI_BOLD}Usage:${ANSI_RESET}
|
|
|
902
928
|
if (args[1] === '--help' || args[1] === '-h') {
|
|
903
929
|
console.log(`
|
|
904
930
|
${ANSI_BOLD}ME-DESIGN Test Runner${ANSI_RESET}
|
|
905
|
-
${ANSI_GRAY}Run deterministic
|
|
931
|
+
${ANSI_GRAY}Run deterministic static rule & browser test suites${ANSI_RESET}
|
|
906
932
|
|
|
907
933
|
${ANSI_BOLD}Usage:${ANSI_RESET}
|
|
908
934
|
medesign test
|
|
@@ -979,8 +1005,16 @@ ${ANSI_BOLD}Usage:${ANSI_RESET}
|
|
|
979
1005
|
console.log(`Test Fixtures: ${ANSI_GREEN}${validCount} valid, ${invalidCount} invalid test fixtures${ANSI_RESET}\n`);
|
|
980
1006
|
|
|
981
1007
|
console.log(`${ANSI_GRAY}────────────────────────────────────────${ANSI_RESET}`);
|
|
982
|
-
|
|
983
|
-
|
|
1008
|
+
if (!nodeOk) {
|
|
1009
|
+
console.log(`${ANSI_RED}${ANSI_BOLD}STATUS: UNSUPPORTED ENVIRONMENT (Node.js >= 18.0.0 required)${ANSI_RESET}\n`);
|
|
1010
|
+
process.exit(1);
|
|
1011
|
+
} else if (foundChrome) {
|
|
1012
|
+
console.log(`${ANSI_GREEN}${ANSI_BOLD}STATUS: ALL SYSTEMS OPERATIONAL (Static & Browser Matrix Ready)${ANSI_RESET}\n`);
|
|
1013
|
+
process.exit(0);
|
|
1014
|
+
} else {
|
|
1015
|
+
console.log(`${ANSI_YELLOW}${ANSI_BOLD}STATUS: CORE OPERATIONAL (Static Engine Ready, Browser Audits Unavailable)${ANSI_RESET}\n`);
|
|
1016
|
+
process.exit(0);
|
|
1017
|
+
}
|
|
984
1018
|
}
|
|
985
1019
|
|
|
986
1020
|
case 'help':
|
package/package.json
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "medesign",
|
|
3
|
-
"version": "1.6.
|
|
4
|
-
"description": "Autonomous Design Engineering Toolkit & Automated Linter for AI Coding Assistants",
|
|
5
|
-
"main": "bin/medesign.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
"medesign": "bin/medesign.js",
|
|
8
|
-
"mepolish": "bin/mepolish.js",
|
|
9
|
-
"mebolder": "bin/mebolder.js",
|
|
10
|
-
"mequiet": "bin/mequiet.js",
|
|
11
|
-
"melint": "bin/melint.js",
|
|
12
|
-
"mesearch": "bin/mesearch.js",
|
|
13
|
-
"mesnapshot": "bin/mesnapshot.js"
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"bin",
|
|
17
|
-
"presets",
|
|
18
|
-
"references",
|
|
19
|
-
"integrations",
|
|
20
|
-
"scripts/export-tokens.js",
|
|
21
|
-
"tests/linter.js",
|
|
22
|
-
"tests/browser-audit.js",
|
|
23
|
-
"tests/snapshot.js",
|
|
24
|
-
"tests/schemas",
|
|
25
|
-
"tests/visual-testbed.html",
|
|
26
|
-
"examples",
|
|
27
|
-
"medesign.config.js"
|
|
28
|
-
],
|
|
29
|
-
"scripts": {
|
|
30
|
-
"test": "node tests/runner.js && node tests/validate-sarif.js && node tests/test-tokens.js && node tests/test-cli.js && node tests/test-behavioral-matrix.js",
|
|
31
|
-
"test:unit": "node tests/runner.js",
|
|
32
|
-
"test:sarif": "node tests/validate-sarif.js",
|
|
33
|
-
"test:tokens": "node tests/test-tokens.js",
|
|
34
|
-
"test:cli": "node tests/test-cli.js",
|
|
35
|
-
"test:benchmark": "node tests/test-blind-benchmark.js",
|
|
36
|
-
"test:browser": "node tests/runner.js --browser",
|
|
37
|
-
"test:snapshot": "node tests/snapshot.js examples/cadastral-qaqc-slide.html",
|
|
38
|
-
"search": "node bin/medesign.js search",
|
|
39
|
-
"polish": "node bin/medesign.js polish",
|
|
40
|
-
"bolder": "node bin/medesign.js bolder",
|
|
41
|
-
"quiet": "node bin/medesign.js quiet",
|
|
42
|
-
"lint": "node bin/medesign.js lint",
|
|
43
|
-
"audit": "node bin/medesign.js audit",
|
|
44
|
-
"snapshot": "node bin/medesign.js snapshot",
|
|
45
|
-
"tokens": "node bin/medesign.js tokens",
|
|
46
|
-
"doctor": "node bin/medesign.js doctor",
|
|
47
|
-
"prepublishOnly": "npm test",
|
|
48
|
-
"test:behavioral": "node tests/test-behavioral-matrix.js"
|
|
49
|
-
},
|
|
50
|
-
"repository": {
|
|
51
|
-
"type": "git",
|
|
52
|
-
"url": "git+https://github.com/methastrategy/medesign.git"
|
|
53
|
-
},
|
|
54
|
-
"homepage": "https://github.com/methastrategy/medesign#readme",
|
|
55
|
-
"bugs": {
|
|
56
|
-
"url": "https://github.com/methastrategy/medesign/issues"
|
|
57
|
-
},
|
|
58
|
-
"publishConfig": {
|
|
59
|
-
"access": "public"
|
|
60
|
-
},
|
|
61
|
-
"keywords": [
|
|
62
|
-
"design-tokens",
|
|
63
|
-
"linter",
|
|
64
|
-
"accessibility",
|
|
65
|
-
"design-systems",
|
|
66
|
-
"oklch",
|
|
67
|
-
"tailwind",
|
|
68
|
-
"dtcg",
|
|
69
|
-
"sarif",
|
|
70
|
-
"ai-coding-assistant",
|
|
71
|
-
"antigravity",
|
|
72
|
-
"claude-code"
|
|
73
|
-
],
|
|
74
|
-
"author": "Metha Tripraphankit (Survey Engineering & Geoinformatics, Kasetsart University)",
|
|
75
|
-
"license": "MIT",
|
|
76
|
-
"engines": {
|
|
77
|
-
"node": ">=18.0.0"
|
|
78
|
-
},
|
|
79
|
-
"dependencies": {},
|
|
80
|
-
"devDependencies": {}
|
|
81
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "medesign",
|
|
3
|
+
"version": "1.6.1",
|
|
4
|
+
"description": "Autonomous Design Engineering Toolkit & Automated Linter for AI Coding Assistants",
|
|
5
|
+
"main": "bin/medesign.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"medesign": "bin/medesign.js",
|
|
8
|
+
"mepolish": "bin/mepolish.js",
|
|
9
|
+
"mebolder": "bin/mebolder.js",
|
|
10
|
+
"mequiet": "bin/mequiet.js",
|
|
11
|
+
"melint": "bin/melint.js",
|
|
12
|
+
"mesearch": "bin/mesearch.js",
|
|
13
|
+
"mesnapshot": "bin/mesnapshot.js"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"bin",
|
|
17
|
+
"presets",
|
|
18
|
+
"references",
|
|
19
|
+
"integrations",
|
|
20
|
+
"scripts/export-tokens.js",
|
|
21
|
+
"tests/linter.js",
|
|
22
|
+
"tests/browser-audit.js",
|
|
23
|
+
"tests/snapshot.js",
|
|
24
|
+
"tests/schemas",
|
|
25
|
+
"tests/visual-testbed.html",
|
|
26
|
+
"examples",
|
|
27
|
+
"medesign.config.js"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"test": "node tests/runner.js && node tests/validate-sarif.js && node tests/test-tokens.js && node tests/test-cli.js && node tests/test-behavioral-matrix.js",
|
|
31
|
+
"test:unit": "node tests/runner.js",
|
|
32
|
+
"test:sarif": "node tests/validate-sarif.js",
|
|
33
|
+
"test:tokens": "node tests/test-tokens.js",
|
|
34
|
+
"test:cli": "node tests/test-cli.js",
|
|
35
|
+
"test:benchmark": "node tests/test-blind-benchmark.js",
|
|
36
|
+
"test:browser": "node tests/runner.js --browser",
|
|
37
|
+
"test:snapshot": "node tests/snapshot.js examples/cadastral-qaqc-slide.html",
|
|
38
|
+
"search": "node bin/medesign.js search",
|
|
39
|
+
"polish": "node bin/medesign.js polish",
|
|
40
|
+
"bolder": "node bin/medesign.js bolder",
|
|
41
|
+
"quiet": "node bin/medesign.js quiet",
|
|
42
|
+
"lint": "node bin/medesign.js lint",
|
|
43
|
+
"audit": "node bin/medesign.js audit",
|
|
44
|
+
"snapshot": "node bin/medesign.js snapshot",
|
|
45
|
+
"tokens": "node bin/medesign.js tokens",
|
|
46
|
+
"doctor": "node bin/medesign.js doctor",
|
|
47
|
+
"prepublishOnly": "npm test",
|
|
48
|
+
"test:behavioral": "node tests/test-behavioral-matrix.js"
|
|
49
|
+
},
|
|
50
|
+
"repository": {
|
|
51
|
+
"type": "git",
|
|
52
|
+
"url": "git+https://github.com/methastrategy/medesign.git"
|
|
53
|
+
},
|
|
54
|
+
"homepage": "https://github.com/methastrategy/medesign#readme",
|
|
55
|
+
"bugs": {
|
|
56
|
+
"url": "https://github.com/methastrategy/medesign/issues"
|
|
57
|
+
},
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public"
|
|
60
|
+
},
|
|
61
|
+
"keywords": [
|
|
62
|
+
"design-tokens",
|
|
63
|
+
"linter",
|
|
64
|
+
"accessibility",
|
|
65
|
+
"design-systems",
|
|
66
|
+
"oklch",
|
|
67
|
+
"tailwind",
|
|
68
|
+
"dtcg",
|
|
69
|
+
"sarif",
|
|
70
|
+
"ai-coding-assistant",
|
|
71
|
+
"antigravity",
|
|
72
|
+
"claude-code"
|
|
73
|
+
],
|
|
74
|
+
"author": "Metha Tripraphankit (Survey Engineering & Geoinformatics, Kasetsart University)",
|
|
75
|
+
"license": "MIT",
|
|
76
|
+
"engines": {
|
|
77
|
+
"node": ">=18.0.0"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {},
|
|
80
|
+
"devDependencies": {}
|
|
81
|
+
}
|
package/tests/snapshot.js
CHANGED
|
@@ -128,7 +128,7 @@ class CDPClient {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
async connect() {
|
|
131
|
-
for (let i = 0; i <
|
|
131
|
+
for (let i = 0; i < 60; i++) {
|
|
132
132
|
try {
|
|
133
133
|
const r = await fetch(`http://127.0.0.1:${this.port}/json/version`);
|
|
134
134
|
if (r.ok) break;
|
|
@@ -184,7 +184,10 @@ async function captureSnapshots() {
|
|
|
184
184
|
'--no-sandbox',
|
|
185
185
|
'--disable-extensions',
|
|
186
186
|
'--mute-audio',
|
|
187
|
-
'--hide-scrollbars'
|
|
187
|
+
'--hide-scrollbars',
|
|
188
|
+
'--disable-dev-shm-usage',
|
|
189
|
+
'--disable-setuid-sandbox',
|
|
190
|
+
'--no-zygote'
|
|
188
191
|
]);
|
|
189
192
|
|
|
190
193
|
const allPresets = isOgOnly
|