mycontext-cli 0.4.0 → 0.4.2

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