mycontext-cli 0.4.0 → 0.4.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 +15 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,11 +41,18 @@ mycontext generate context # paste PRD when prompted, or
|
|
|
41
41
|
# mycontext generate context --description "Short description"
|
|
42
42
|
mycontext generate types
|
|
43
43
|
|
|
44
|
-
# 3)
|
|
45
|
-
mycontext generate
|
|
44
|
+
# 3) Core-first design anchor (BrandComp)
|
|
45
|
+
mycontext core --group core generate # writes components/.mycontext/core/BrandComp.tsx
|
|
46
|
+
# refine manually or record notes
|
|
47
|
+
mycontext core refine --desc "Tighten spacing/colors"
|
|
48
|
+
# when satisfied
|
|
49
|
+
mycontext core ready
|
|
46
50
|
|
|
47
|
-
# 4)
|
|
48
|
-
mycontext generate-
|
|
51
|
+
# 4) Plan components (alias supported: component-list) — gated on core readiness
|
|
52
|
+
mycontext generate components-list --force
|
|
53
|
+
|
|
54
|
+
# 5) Generate components locally (installs shadcn primitives, adds tests)
|
|
55
|
+
mycontext generate-components all --local --with-tests --check
|
|
49
56
|
|
|
50
57
|
# Live preview (auto-updated) and final canvas
|
|
51
58
|
mycontext preview components # HTML overview
|
|
@@ -81,8 +88,9 @@ mycontext generate components-list
|
|
|
81
88
|
# Accepts alias
|
|
82
89
|
mycontext generate component-list
|
|
83
90
|
|
|
84
|
-
# Components (preview flags)
|
|
91
|
+
# Components (core-first and preview flags)
|
|
85
92
|
mycontext generate-components all --local --with-tests --final-canvas
|
|
93
|
+
mycontext generate-components all --local --core-first # core-only then stop
|
|
86
94
|
mycontext generate-components authentication --local --no-update-preview
|
|
87
95
|
|
|
88
96
|
# Preview & Normalize
|
|
@@ -98,6 +106,8 @@ mycontext normalize preview
|
|
|
98
106
|
- `--with-tests`: scaffold Jest + RTL and generate per-component tests
|
|
99
107
|
- Component list saves to `context/component-list.json` and merges by group/component name
|
|
100
108
|
- Neutral fallback: if AI times out for component-list, a valid skeleton is written so you can edit and re-run
|
|
109
|
+
- Post-generation import scan installs any missing `@/components/ui/*` shadcn primitives actually used
|
|
110
|
+
- Prompts include the plan banner: `[mycontext] Plan: plan → generate → QA → docs → preview (→ checks)`
|
|
101
111
|
|
|
102
112
|
## 🛠 Notes
|
|
103
113
|
|