viepilot 1.0.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 (84) hide show
  1. package/CHANGELOG.md +230 -0
  2. package/LICENSE +23 -0
  3. package/README.md +550 -0
  4. package/bin/viepilot.cjs +222 -0
  5. package/bin/vp-tools.cjs +912 -0
  6. package/dev-install.sh +109 -0
  7. package/docs/README.md +125 -0
  8. package/docs/advanced-usage.md +366 -0
  9. package/docs/api/README.md +12 -0
  10. package/docs/api/graphql-schema.md +5 -0
  11. package/docs/api/kafka-events.md +5 -0
  12. package/docs/api/rest-api.md +19 -0
  13. package/docs/api/websocket-api.md +5 -0
  14. package/docs/dev/architecture.md +226 -0
  15. package/docs/dev/cli-reference.md +324 -0
  16. package/docs/dev/contributing.md +195 -0
  17. package/docs/dev/deployment.md +204 -0
  18. package/docs/dev/getting-started.md +16 -0
  19. package/docs/dev/testing.md +171 -0
  20. package/docs/dev/ui-components-library.md +36 -0
  21. package/docs/getting-started.md +163 -0
  22. package/docs/skills-reference.md +399 -0
  23. package/docs/troubleshooting.md +297 -0
  24. package/docs/user/faq.md +117 -0
  25. package/docs/user/features/autonomous-mode.md +111 -0
  26. package/docs/user/features/checkpoint-recovery.md +76 -0
  27. package/docs/user/features/debug-mode.md +77 -0
  28. package/docs/user/features/ui-direction.md +29 -0
  29. package/docs/user/quick-start.md +157 -0
  30. package/docs/videos/01-installation.md +113 -0
  31. package/docs/videos/02-first-project.md +132 -0
  32. package/docs/videos/03-autonomous-mode.md +147 -0
  33. package/install.sh +144 -0
  34. package/lib/cli-shared.cjs +108 -0
  35. package/package.json +78 -0
  36. package/skills/vp-audit/SKILL.md +140 -0
  37. package/skills/vp-auto/SKILL.md +204 -0
  38. package/skills/vp-brainstorm/SKILL.md +75 -0
  39. package/skills/vp-crystallize/SKILL.md +175 -0
  40. package/skills/vp-debug/SKILL.md +96 -0
  41. package/skills/vp-docs/SKILL.md +258 -0
  42. package/skills/vp-evolve/SKILL.md +165 -0
  43. package/skills/vp-pause/SKILL.md +150 -0
  44. package/skills/vp-request/SKILL.md +250 -0
  45. package/skills/vp-resume/SKILL.md +141 -0
  46. package/skills/vp-rollback/SKILL.md +116 -0
  47. package/skills/vp-status/SKILL.md +137 -0
  48. package/skills/vp-task/SKILL.md +139 -0
  49. package/skills/vp-ui-components/SKILL.md +64 -0
  50. package/templates/phase/PHASE-STATE.md +35 -0
  51. package/templates/phase/SPEC.md +40 -0
  52. package/templates/phase/SUMMARY.md +67 -0
  53. package/templates/phase/TASK.md +101 -0
  54. package/templates/phase/VERIFICATION.md +49 -0
  55. package/templates/project/AI-GUIDE.md +114 -0
  56. package/templates/project/ARCHITECTURE.md +70 -0
  57. package/templates/project/CHANGELOG.md +36 -0
  58. package/templates/project/CONTRIBUTING.md +154 -0
  59. package/templates/project/CONTRIBUTORS.md +41 -0
  60. package/templates/project/PROJECT-CONTEXT.md +74 -0
  61. package/templates/project/PROJECT-META.md +133 -0
  62. package/templates/project/README.md +197 -0
  63. package/templates/project/ROADMAP.md +56 -0
  64. package/templates/project/SYSTEM-RULES.md +368 -0
  65. package/templates/project/TRACKER.md +50 -0
  66. package/ui-components/INDEX.md +9 -0
  67. package/ui-components/base/button/README.md +8 -0
  68. package/ui-components/base/button/metadata.json +8 -0
  69. package/ui-components/base/card/README.md +8 -0
  70. package/ui-components/base/card/metadata.json +8 -0
  71. package/ui-components/base/input/README.md +8 -0
  72. package/ui-components/base/input/metadata.json +8 -0
  73. package/workflows/audit.md +549 -0
  74. package/workflows/autonomous.md +425 -0
  75. package/workflows/brainstorm.md +257 -0
  76. package/workflows/crystallize.md +418 -0
  77. package/workflows/debug.md +241 -0
  78. package/workflows/documentation.md +587 -0
  79. package/workflows/evolve.md +258 -0
  80. package/workflows/pause-work.md +255 -0
  81. package/workflows/request.md +534 -0
  82. package/workflows/resume-work.md +226 -0
  83. package/workflows/rollback.md +202 -0
  84. package/workflows/ui-components.md +109 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,230 @@
1
+ # Changelog
2
+
3
+ All notable changes to ViePilot will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Enhanced
11
+
12
+ - **M1.15 / Phase 18 (FEAT-004) in progress** — npm publish distribution scaffold: package publish metadata, release scripts, secure GitHub Actions `release-npm` workflow, and maintainer publish/rollback guide. Final registry smoke verify is blocked pending npm publish auth.
13
+
14
+ ### Fixed
15
+
16
+ - **CI coverage** — Jest chỉ instrument process hiện tại; test CLI qua `spawnSync` khiến `bin/vp-tools.cjs` báo **0%**. Đã tách `lib/cli-shared.cjs` (validators, `findProjectRoot`, Levenshtein) và đặt `collectCoverageFrom` trên file đó; bổ sung test in-process + `require.main === module` gate cho CLI; `install.sh` / `dev-install.sh` cài kèm `lib/`.
17
+
18
+ ### Documentation
19
+
20
+ - `README.md` — Project Scale LOC + M1.11 completion banner; Documentation row includes `api/`
21
+ - `.viepilot/audit-report.md` — PASS after README metric sync (`/vp-audit`)
22
+ - `docs/api/*` — added framework-appropriate API index (no HTTP surface; points to CLI/file model)
23
+ - `docs/dev/getting-started.md` — dev entry linking to canonical getting-started
24
+ - `docs/README.md`, root `README.md` — index and `docs/` tree synced with `api/`
25
+ - `README.md`, `docs/user/features/autonomous-mode.md`, `docs/skills-reference.md`, `docs/user/quick-start.md`, `docs/troubleshooting.md` — clarified `/vp-auto` with no extra args vs `--fast`, control points, and typical one-task-per-chat-turn behavior
26
+
27
+ ## [0.10.0] - 2026-03-31 — M1.14 Guided NPX Installer (FEAT-003)
28
+
29
+ ### Added
30
+
31
+ - `bin/viepilot.cjs` — new CLI entrypoint for guided install flow.
32
+ - `tests/unit/guided-installer.test.js` — parser and CLI behavior tests for installer modes.
33
+ - `.viepilot/phases/17-npx-guided-installer/` — phase artifacts, tasks, and summary.
34
+
35
+ ### Enhanced
36
+
37
+ - `package.json` — `bin.viepilot` mapping for `npx viepilot`.
38
+ - `install.sh`, `dev-install.sh` — support automation env vars (`VIEPILOT_AUTO_YES`, install profiles), install `viepilot.cjs`.
39
+ - `README.md`, `docs/user/quick-start.md`, `docs/troubleshooting.md` — guided NPX onboarding and fallback instructions.
40
+ - `.viepilot/TRACKER.md`, `.viepilot/ROADMAP.md`, `.viepilot/HANDOFF.json`, `.viepilot/requests/FEAT-003.md` — state/release synchronization for M1.14 completion.
41
+
42
+ ## [0.8.2] - 2026-03-31 — M1.12 Doc-first execution gates (BUG-001)
43
+
44
+ ## [0.9.0] - 2026-03-31 — M1.13 UI direction + component curation (FEAT-002)
45
+
46
+ ### Added
47
+
48
+ - `workflows/ui-components.md` — component curation pipeline (global/local stores, metadata contract, index sync)
49
+ - `skills/vp-ui-components/SKILL.md` — new skill to ingest/classify/store reusable UI components
50
+ - `docs/user/features/ui-direction.md` — user guide for `/vp-brainstorm --ui`
51
+ - `docs/dev/ui-components-library.md` — developer guide for curation taxonomy and artifact contract
52
+ - `ui-components/` — baseline stock components bundled with the repo
53
+
54
+ ### Enhanced
55
+
56
+ - `workflows/brainstorm.md`, `skills/vp-brainstorm/SKILL.md` — UI Direction mode with live `index.html`/`style.css`/`notes.md` artifact loop
57
+ - `workflows/crystallize.md`, `skills/vp-crystallize/SKILL.md` — consume UI direction artifacts and map them into implementation plans
58
+ - `install.sh`, `dev-install.sh` — install/symlink `ui-components` stock library
59
+ - `README.md`, `docs/README.md`, `docs/skills-reference.md`, `docs/user/quick-start.md`, `docs/dev/architecture.md` — synced with new skill/workflow and UI-first flow
60
+
61
+ ### Fixed
62
+
63
+ - `workflows/autonomous.md` — **Pre-execution documentation gate** before implementation; task start checkpoint only after contract + gate + stack preflight
64
+ - `skills/vp-auto/SKILL.md` — doc-first rule + checkpoint order (skill metadata **0.2.1**)
65
+ - `templates/phase/TASK.md` — Pre-execution gate checklist (BUG-001)
66
+ - `workflows/audit.md` — Tier **1f** heuristic for execute-first / docs-later (report row in **1g**)
67
+
68
+ ## [0.8.1] - 2026-03-31 — ROOT documentation alignment (ENH-011)
69
+
70
+ ### Fixed
71
+
72
+ - `README.md` — framework version badge aligned with TRACKER; documented framework SemVer vs npm `package.json` version
73
+ - `workflows/audit.md` — audit plan banner lists **4 tiers** (stack vs framework)
74
+ - `CHANGELOG.md` — consolidated shipped milestones under versioned sections below
75
+
76
+ ## [0.8.0] - 2026-03-31 — M1.10 Execution Trace Reliability (ENH-010)
77
+
78
+ ### Enhanced
79
+
80
+ - `workflows/autonomous.md` — mandatory task contract; state-first updates per PASS task/sub-task
81
+ - `skills/vp-auto/SKILL.md` — decomposition fields + incremental state sync
82
+ - `templates/phase/TASK.md` — Paths, File-Level Plan, Best Practices, Do/Don't, State Update Checklist
83
+ - `workflows/audit.md` — delayed/batch-only state-update anti-pattern guidance
84
+ - `.viepilot/phases/13-task-granularity-state-sync/` — phase planning + completion artifacts
85
+
86
+ ## [0.7.0] - 2026-03-31 — M1.9 Stack-Aware Audit (ENH-009)
87
+
88
+ ### Enhanced
89
+
90
+ - `workflows/audit.md` — stack + code-quality tier; framework tier; research fallback; vp-auto guardrails contract
91
+ - `skills/vp-audit/SKILL.md` — stack-aware audit (skill metadata version `0.3.0`)
92
+ - `skills/vp-auto/SKILL.md` — consume audit guardrails when report present
93
+ - `.viepilot/phases/12-audit-stack-compliance/` — phase artifacts
94
+
95
+ ## [0.6.0] - 2026-03-30 — M1.8 Stack Intelligence (ENH-008)
96
+
97
+ ### Enhanced
98
+
99
+ - `workflows/crystallize.md` — official stack research gate; global cache layout; `STACKS.md` integration
100
+ - `skills/vp-crystallize/SKILL.md` — research + cache requirements
101
+ - `workflows/autonomous.md` / `skills/vp-auto/SKILL.md` — stack preflight (summary-first)
102
+
103
+ ## [0.5.0] - 2026-03-30 — M1.7 Brainstorm Intelligence
104
+
105
+ ### Enhanced
106
+
107
+ - `workflows/brainstorm.md` — landing layout deep-dive; in-session research; `21st.dev` references
108
+ - `skills/vp-brainstorm/SKILL.md` — `--landing`, `--research`
109
+
110
+ ## [0.4.0] - 2026-03-30 — M1.6 Generalize (ENH-006, ENH-007)
111
+
112
+ ### Enhanced
113
+
114
+ - `workflows/autonomous.md`, `workflows/documentation.md` — fewer framework-only assumptions; generic version handling
115
+ - `workflows/audit.md`, `skills/vp-audit/SKILL.md` — project-agnostic audit baseline
116
+ - `workflows/evolve.md`, `skills/vp-evolve/SKILL.md` — enhanced brainstorm routing
117
+
118
+ ## [0.3.0] - 2026-03-30 — M1.5 ENH Backlog: Drift Prevention
119
+
120
+ ### Enhanced
121
+
122
+ #### vp-docs (ENH-004, ENH-005, ENH-002)
123
+
124
+ - `workflows/documentation.md` — new Step 0 resolves GitHub owner/repo from `git remote` before generating any file; eliminates hardcoded `your-org`/`YOUR_USERNAME` placeholders
125
+ - `workflows/documentation.md` — new Step 3B scans `skills/` directory to build `skills-reference.md` incrementally (append-only, preserves manual edits)
126
+ - `workflows/documentation.md` — Step 3 (create_index) now also updates root `README.md` Documentation table and Project Structure tree after generating docs
127
+ - `skills/vp-docs/SKILL.md` — Step 0 added, objective updated to declare all files updated including `skills-reference.md` and root `README.md`
128
+
129
+ #### vp-auto (ENH-001)
130
+
131
+ - `workflows/autonomous.md` — Step 5a: syncs `.viepilot/ROADMAP.md` phase status and Progress Summary after every phase completes
132
+ - `workflows/autonomous.md` — Step 5b: detects new skill files in phase diff and appends to `docs/skills-reference.md`
133
+ - `workflows/autonomous.md` — Step 6a: syncs `README.md` badges, counts, and tables on milestone complete
134
+ - `skills/vp-auto/SKILL.md` — objective now declares all files updated (ROADMAP.md per-phase, README.md on milestone)
135
+
136
+ #### vp-audit (ENH-003)
137
+
138
+ - `workflows/audit.md` — new Step 6 drift_check: detects README.md badge drift, README.md table drift, ROADMAP.md phase status drift, docs/skills-reference.md missing sections, and placeholder URLs in docs/
139
+ - `workflows/audit.md` — drift auto-fix option (option 1) updates all drifted files and commits
140
+ - `skills/vp-audit/SKILL.md` — objective, flags, and success_criteria updated to declare all drift check capabilities
141
+
142
+ ## [0.2.0] - 2026-03-30 — M1 Foundation Enhancement
143
+
144
+ ### Added
145
+
146
+ #### Testing
147
+
148
+ - Jest test suite with 194 tests across unit, integration, and AI compatibility categories
149
+ - `tests/unit/validators.test.js` — 30 CLI unit tests (all 13 commands)
150
+ - `tests/unit/ai-provider-compat.test.js` — 142 AI provider compatibility tests
151
+ - `tests/integration/workflow.test.js` — 22 end-to-end workflow tests
152
+
153
+ #### CI/CD
154
+
155
+ - GitHub Actions pipeline (`.github/workflows/ci.yml`)
156
+ - Test job: Node.js 18/20/22 matrix
157
+ - Coverage job: lcov report with >80% threshold
158
+ - Lint job: syntax validation for CLI and test files
159
+
160
+ #### Documentation
161
+
162
+ - `docs/videos/` — 3 video tutorial scripts (installation, first project, autonomous mode)
163
+ - `docs/troubleshooting.md` — 15+ common issues with solutions
164
+ - `docs/advanced-usage.md` — Power user guide (all flags, debug, CI/CD, custom skills)
165
+ - `examples/` — 3 example projects (web-app, api-service, cli-tool)
166
+
167
+ ## [0.1.0] - 2026-03-30
168
+
169
+ ### Added
170
+
171
+ #### Skills
172
+
173
+ - `/vp-brainstorm` - Interactive brainstorm sessions with topic-based structure
174
+ - `/vp-crystallize` - Transform brainstorm into executable artifacts
175
+ - `/vp-auto` - Autonomous execution with control points
176
+ - `/vp-pause` - Save complete work state for later resume
177
+ - `/vp-resume` - Restore context and continue seamlessly
178
+ - `/vp-status` - Visual progress dashboard
179
+ - `/vp-evolve` - Add features, new milestones, or refactor
180
+ - `/vp-docs` - Generate comprehensive documentation
181
+ - `/vp-task` - Manual task management
182
+
183
+ #### Workflows
184
+
185
+ - `brainstorm.md` - Brainstorm session workflow
186
+ - `crystallize.md` - Artifact generation workflow
187
+ - `autonomous.md` - Autonomous execution workflow
188
+ - `pause-work.md` - State preservation workflow
189
+ - `resume-work.md` - Context restoration workflow
190
+ - `evolve.md` - Project evolution workflow
191
+ - `documentation.md` - Documentation generation workflow
192
+
193
+ #### Templates
194
+
195
+ - Project templates (AI-GUIDE, PROJECT-META, ARCHITECTURE, etc.)
196
+ - Phase templates (SPEC, PHASE-STATE, TASK, VERIFICATION, SUMMARY)
197
+
198
+ #### Standards
199
+
200
+ - Semantic Versioning (SemVer)
201
+ - Keep a Changelog format
202
+ - Conventional Commits for git messages
203
+ - Contributor recognition guidelines
204
+ - Code comment standards (good/bad examples)
205
+
206
+ #### Tools
207
+
208
+ - `vp-tools.cjs` - CLI helper for state management
209
+
210
+ #### Documentation
211
+
212
+ - Getting started guide
213
+ - Skills reference
214
+ - Installation script
215
+
216
+ ---
217
+
218
+ [Unreleased]: https://github.com/0-CODE/viepilot/compare/v0.10.0...HEAD
219
+ [0.10.0]: https://github.com/0-CODE/viepilot/compare/v0.9.0...v0.10.0
220
+ [0.9.0]: https://github.com/0-CODE/viepilot/compare/v0.8.2...v0.9.0
221
+ [0.8.2]: https://github.com/0-CODE/viepilot/compare/v0.8.1...v0.8.2
222
+ [0.8.1]: https://github.com/0-CODE/viepilot/compare/v0.8.0...v0.8.1
223
+ [0.8.0]: https://github.com/0-CODE/viepilot/compare/v0.7.0...v0.8.0
224
+ [0.7.0]: https://github.com/0-CODE/viepilot/compare/v0.6.0...v0.7.0
225
+ [0.6.0]: https://github.com/0-CODE/viepilot/compare/v0.5.0...v0.6.0
226
+ [0.5.0]: https://github.com/0-CODE/viepilot/compare/v0.4.0...v0.5.0
227
+ [0.4.0]: https://github.com/0-CODE/viepilot/compare/v0.3.0...v0.4.0
228
+ [0.3.0]: https://github.com/0-CODE/viepilot/compare/v0.2.0...v0.3.0
229
+ [0.2.0]: https://github.com/0-CODE/viepilot/compare/v0.1.0...v0.2.0
230
+ [0.1.0]: https://github.com/0-CODE/viepilot/releases/tag/v0.1.0
package/LICENSE ADDED
@@ -0,0 +1,23 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Công Ty TNHH TMDV CÔNG NGHỆ & GIẢI PHÁP CREPS VIỆT NAM
4
+
5
+ Lead Developer: Trần Thành Nhân
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.