@nclamvn/vibecode-cli 1.7.0 → 1.8.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/SESSION_NOTES.md +119 -0
- package/bin/vibecode.js +53 -0
- package/package.json +1 -1
- package/src/commands/ask.js +230 -0
- package/src/commands/docs.js +167 -0
- package/src/commands/git.js +103 -2
- package/src/commands/migrate.js +341 -0
- package/src/commands/refactor.js +205 -0
- package/src/commands/review.js +126 -1
- package/src/commands/security.js +229 -0
- package/src/commands/test.js +194 -0
- package/src/config/constants.js +5 -1
- package/src/index.js +8 -0
- package/docs-site/README.md +0 -41
- package/docs-site/blog/2019-05-28-first-blog-post.md +0 -12
- package/docs-site/blog/2019-05-29-long-blog-post.md +0 -44
- package/docs-site/blog/2021-08-01-mdx-blog-post.mdx +0 -24
- package/docs-site/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg +0 -0
- package/docs-site/blog/2021-08-26-welcome/index.md +0 -29
- package/docs-site/blog/authors.yml +0 -25
- package/docs-site/blog/tags.yml +0 -19
- package/docs-site/docs/commands/agent.md +0 -162
- package/docs-site/docs/commands/assist.md +0 -71
- package/docs-site/docs/commands/build.md +0 -53
- package/docs-site/docs/commands/config.md +0 -30
- package/docs-site/docs/commands/debug.md +0 -173
- package/docs-site/docs/commands/doctor.md +0 -34
- package/docs-site/docs/commands/go.md +0 -128
- package/docs-site/docs/commands/index.md +0 -79
- package/docs-site/docs/commands/init.md +0 -42
- package/docs-site/docs/commands/learn.md +0 -82
- package/docs-site/docs/commands/lock.md +0 -33
- package/docs-site/docs/commands/plan.md +0 -29
- package/docs-site/docs/commands/review.md +0 -31
- package/docs-site/docs/commands/snapshot.md +0 -34
- package/docs-site/docs/commands/start.md +0 -32
- package/docs-site/docs/commands/status.md +0 -37
- package/docs-site/docs/commands/undo.md +0 -83
- package/docs-site/docs/configuration.md +0 -72
- package/docs-site/docs/faq.md +0 -83
- package/docs-site/docs/getting-started.md +0 -119
- package/docs-site/docs/guides/agent-mode.md +0 -94
- package/docs-site/docs/guides/debug-mode.md +0 -83
- package/docs-site/docs/guides/magic-mode.md +0 -107
- package/docs-site/docs/installation.md +0 -98
- package/docs-site/docs/intro.md +0 -67
- package/docs-site/docusaurus.config.ts +0 -141
- package/docs-site/package-lock.json +0 -18039
- package/docs-site/package.json +0 -48
- package/docs-site/sidebars.ts +0 -70
- package/docs-site/src/components/HomepageFeatures/index.tsx +0 -72
- package/docs-site/src/components/HomepageFeatures/styles.module.css +0 -16
- package/docs-site/src/css/custom.css +0 -30
- package/docs-site/src/pages/index.module.css +0 -23
- package/docs-site/src/pages/index.tsx +0 -44
- package/docs-site/src/pages/markdown-page.md +0 -7
- package/docs-site/src/theme/Footer/index.tsx +0 -127
- package/docs-site/src/theme/Footer/styles.module.css +0 -285
- package/docs-site/static/.nojekyll +0 -0
- package/docs-site/static/img/docusaurus-social-card.jpg +0 -0
- package/docs-site/static/img/docusaurus.png +0 -0
- package/docs-site/static/img/favicon.ico +0 -0
- package/docs-site/static/img/logo.svg +0 -1
- package/docs-site/static/img/undraw_docusaurus_mountain.svg +0 -171
- package/docs-site/static/img/undraw_docusaurus_react.svg +0 -170
- package/docs-site/static/img/undraw_docusaurus_tree.svg +0 -40
- package/docs-site/tsconfig.json +0 -8
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
slug: long-blog-post
|
|
3
|
-
title: Long Blog Post
|
|
4
|
-
authors: yangshun
|
|
5
|
-
tags: [hello, docusaurus]
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
This is the summary of a very long blog post,
|
|
9
|
-
|
|
10
|
-
Use a `<!--` `truncate` `-->` comment to limit blog post size in the list view.
|
|
11
|
-
|
|
12
|
-
<!-- truncate -->
|
|
13
|
-
|
|
14
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
15
|
-
|
|
16
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
17
|
-
|
|
18
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
19
|
-
|
|
20
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
21
|
-
|
|
22
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
23
|
-
|
|
24
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
25
|
-
|
|
26
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
27
|
-
|
|
28
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
29
|
-
|
|
30
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
31
|
-
|
|
32
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
33
|
-
|
|
34
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
35
|
-
|
|
36
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
37
|
-
|
|
38
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
39
|
-
|
|
40
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
41
|
-
|
|
42
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
43
|
-
|
|
44
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
slug: mdx-blog-post
|
|
3
|
-
title: MDX Blog Post
|
|
4
|
-
authors: [slorber]
|
|
5
|
-
tags: [docusaurus]
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
Blog posts support [Docusaurus Markdown features](https://docusaurus.io/docs/markdown-features), such as [MDX](https://mdxjs.com/).
|
|
9
|
-
|
|
10
|
-
:::tip
|
|
11
|
-
|
|
12
|
-
Use the power of React to create interactive blog posts.
|
|
13
|
-
|
|
14
|
-
:::
|
|
15
|
-
|
|
16
|
-
{/* truncate */}
|
|
17
|
-
|
|
18
|
-
For example, use JSX to create an interactive button:
|
|
19
|
-
|
|
20
|
-
```js
|
|
21
|
-
<button onClick={() => alert('button clicked!')}>Click me!</button>
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
<button onClick={() => alert('button clicked!')}>Click me!</button>
|
|
Binary file
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
slug: welcome
|
|
3
|
-
title: Welcome
|
|
4
|
-
authors: [slorber, yangshun]
|
|
5
|
-
tags: [facebook, hello, docusaurus]
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
[Docusaurus blogging features](https://docusaurus.io/docs/blog) are powered by the [blog plugin](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog).
|
|
9
|
-
|
|
10
|
-
Here are a few tips you might find useful.
|
|
11
|
-
|
|
12
|
-
<!-- truncate -->
|
|
13
|
-
|
|
14
|
-
Simply add Markdown files (or folders) to the `blog` directory.
|
|
15
|
-
|
|
16
|
-
Regular blog authors can be added to `authors.yml`.
|
|
17
|
-
|
|
18
|
-
The blog post date can be extracted from filenames, such as:
|
|
19
|
-
|
|
20
|
-
- `2019-05-30-welcome.md`
|
|
21
|
-
- `2019-05-30-welcome/index.md`
|
|
22
|
-
|
|
23
|
-
A blog post folder can be convenient to co-locate blog post images:
|
|
24
|
-
|
|
25
|
-

|
|
26
|
-
|
|
27
|
-
The blog supports tags as well!
|
|
28
|
-
|
|
29
|
-
**And if you don't want a blog**: just delete this directory, and use `blog: false` in your Docusaurus config.
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
yangshun:
|
|
2
|
-
name: Yangshun Tay
|
|
3
|
-
title: Ex-Meta Staff Engineer, Co-founder GreatFrontEnd
|
|
4
|
-
url: https://linkedin.com/in/yangshun
|
|
5
|
-
image_url: https://github.com/yangshun.png
|
|
6
|
-
page: true
|
|
7
|
-
socials:
|
|
8
|
-
x: yangshunz
|
|
9
|
-
linkedin: yangshun
|
|
10
|
-
github: yangshun
|
|
11
|
-
newsletter: https://www.greatfrontend.com
|
|
12
|
-
|
|
13
|
-
slorber:
|
|
14
|
-
name: Sébastien Lorber
|
|
15
|
-
title: Docusaurus maintainer
|
|
16
|
-
url: https://sebastienlorber.com
|
|
17
|
-
image_url: https://github.com/slorber.png
|
|
18
|
-
page:
|
|
19
|
-
# customize the url of the author page at /blog/authors/<permalink>
|
|
20
|
-
permalink: '/all-sebastien-lorber-articles'
|
|
21
|
-
socials:
|
|
22
|
-
x: sebastienlorber
|
|
23
|
-
linkedin: sebastienlorber
|
|
24
|
-
github: slorber
|
|
25
|
-
newsletter: https://thisweekinreact.com
|
package/docs-site/blog/tags.yml
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
facebook:
|
|
2
|
-
label: Facebook
|
|
3
|
-
permalink: /facebook
|
|
4
|
-
description: Facebook tag description
|
|
5
|
-
|
|
6
|
-
hello:
|
|
7
|
-
label: Hello
|
|
8
|
-
permalink: /hello
|
|
9
|
-
description: Hello tag description
|
|
10
|
-
|
|
11
|
-
docusaurus:
|
|
12
|
-
label: Docusaurus
|
|
13
|
-
permalink: /docusaurus
|
|
14
|
-
description: Docusaurus tag description
|
|
15
|
-
|
|
16
|
-
hola:
|
|
17
|
-
label: Hola
|
|
18
|
-
permalink: /hola
|
|
19
|
-
description: Hola tag description
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_position: 12
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# vibecode agent
|
|
6
|
-
|
|
7
|
-
**Agent Mode** - Autonomous multi-module builder with self-healing.
|
|
8
|
-
|
|
9
|
-
## Synopsis
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
vibecode agent <description> [options]
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Description
|
|
16
|
-
|
|
17
|
-
The `agent` command is designed for complex projects with multiple modules. It decomposes your project into independent modules, builds them sequentially, and uses self-healing to recover from errors.
|
|
18
|
-
|
|
19
|
-
## Arguments
|
|
20
|
-
|
|
21
|
-
| Argument | Description |
|
|
22
|
-
|----------|-------------|
|
|
23
|
-
| `description` | Description of the project to build |
|
|
24
|
-
|
|
25
|
-
## Options
|
|
26
|
-
|
|
27
|
-
| Option | Description |
|
|
28
|
-
|--------|-------------|
|
|
29
|
-
| `-n, --new` | Create new project directory |
|
|
30
|
-
| `-v, --verbose` | Show detailed progress |
|
|
31
|
-
| `--analyze` | Analyze project without building |
|
|
32
|
-
| `--status` | Show agent status and memory |
|
|
33
|
-
| `--report` | Export memory report |
|
|
34
|
-
| `--clear` | Clear agent memory |
|
|
35
|
-
| `--force` | Force operation |
|
|
36
|
-
| `--json` | Output as JSON |
|
|
37
|
-
| `--max-retries <n>` | Max retries per module (default: 3) |
|
|
38
|
-
| `--skip-tests` | Skip tests after each module |
|
|
39
|
-
| `--continue` | Continue on module failure |
|
|
40
|
-
|
|
41
|
-
## Examples
|
|
42
|
-
|
|
43
|
-
### Build Complex Project
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
vibecode agent "E-commerce platform with user auth, product catalog, shopping cart, and checkout"
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### Create New Project
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
vibecode agent "Blog platform with CMS" --new
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### Analyze Without Building
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
vibecode agent "My project" --analyze
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Check Agent Status
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
vibecode agent --status
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Export Report
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
vibecode agent --report
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
## How It Works
|
|
74
|
-
|
|
75
|
-
### 1. Decomposition
|
|
76
|
-
|
|
77
|
-
The agent analyzes your description and breaks it into modules:
|
|
78
|
-
|
|
79
|
-
```
|
|
80
|
-
📦 Project: E-commerce Platform
|
|
81
|
-
├── 🔐 auth (User authentication)
|
|
82
|
-
├── 📦 products (Product catalog)
|
|
83
|
-
├── 🛒 cart (Shopping cart)
|
|
84
|
-
├── 💳 checkout (Payment processing)
|
|
85
|
-
└── 📊 admin (Admin dashboard)
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### 2. Sequential Building
|
|
89
|
-
|
|
90
|
-
Each module is built in dependency order with its own:
|
|
91
|
-
- Requirements capture
|
|
92
|
-
- Code generation
|
|
93
|
-
- Test execution
|
|
94
|
-
- Verification
|
|
95
|
-
|
|
96
|
-
### 3. Self-Healing
|
|
97
|
-
|
|
98
|
-
If a module fails:
|
|
99
|
-
1. Analyze the error
|
|
100
|
-
2. Generate fix
|
|
101
|
-
3. Retry build
|
|
102
|
-
4. Max 3 attempts per module
|
|
103
|
-
|
|
104
|
-
### 4. Memory System
|
|
105
|
-
|
|
106
|
-
The agent remembers:
|
|
107
|
-
- Successful patterns
|
|
108
|
-
- Common errors
|
|
109
|
-
- Fix strategies
|
|
110
|
-
|
|
111
|
-
## Progress Dashboard
|
|
112
|
-
|
|
113
|
-
```
|
|
114
|
-
╭────────────────────────────────────────────────────────────╮
|
|
115
|
-
│ 🤖 VIBECODE AGENT │
|
|
116
|
-
│ │
|
|
117
|
-
│ Project: e-commerce-platform │
|
|
118
|
-
│ Mode: build │
|
|
119
|
-
│ │
|
|
120
|
-
│ [████████████████░░░░░░░░░░░░░░░░░░░░░░] 40% │
|
|
121
|
-
│ │
|
|
122
|
-
│ ✓ auth │
|
|
123
|
-
│ ✓ products │
|
|
124
|
-
│ ◐ cart (building...) │
|
|
125
|
-
│ ○ checkout │
|
|
126
|
-
│ ○ admin │
|
|
127
|
-
│ │
|
|
128
|
-
│ Elapsed: 5m 32s │ ETA: ~8m remaining │
|
|
129
|
-
│ │
|
|
130
|
-
╰────────────────────────────────────────────────────────────╯
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
## Memory Report
|
|
134
|
-
|
|
135
|
-
```bash
|
|
136
|
-
vibecode agent --report
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
Output:
|
|
140
|
-
```markdown
|
|
141
|
-
# Vibecode Agent Memory Report
|
|
142
|
-
|
|
143
|
-
## Statistics
|
|
144
|
-
- Total builds: 15
|
|
145
|
-
- Success rate: 87%
|
|
146
|
-
- Modules built: 42
|
|
147
|
-
|
|
148
|
-
## Common Patterns
|
|
149
|
-
- Next.js App Router: 8 times
|
|
150
|
-
- Prisma + PostgreSQL: 5 times
|
|
151
|
-
- Tailwind CSS: 12 times
|
|
152
|
-
|
|
153
|
-
## Learned Fixes
|
|
154
|
-
- TypeScript strict mode: 3 applications
|
|
155
|
-
- ESLint config: 2 applications
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
## See Also
|
|
159
|
-
|
|
160
|
-
- [Agent Mode Guide](../guides/agent-mode) - In-depth guide
|
|
161
|
-
- [go](./go) - For simpler single-module projects
|
|
162
|
-
- [debug](./debug) - For fixing issues
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_position: 14
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# vibecode assist
|
|
6
|
-
|
|
7
|
-
**Expert Mode** - Direct Claude Code access with project context.
|
|
8
|
-
|
|
9
|
-
## Synopsis
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
vibecode assist [prompt...] [options]
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Alias
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
vibecode expert [prompt...]
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Description
|
|
22
|
-
|
|
23
|
-
The `assist` command provides direct access to Claude Code with full project context injected. Use it for quick questions, code explanations, or custom tasks.
|
|
24
|
-
|
|
25
|
-
## Options
|
|
26
|
-
|
|
27
|
-
| Option | Description |
|
|
28
|
-
|--------|-------------|
|
|
29
|
-
| `--no-context` | Skip context injection |
|
|
30
|
-
|
|
31
|
-
## Examples
|
|
32
|
-
|
|
33
|
-
### Ask a Question
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
vibecode assist "How do I add authentication to this app?"
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Code Explanation
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
vibecode assist "Explain the user service module"
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### Custom Task
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
vibecode assist "Add error handling to all API routes"
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Without Context
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
vibecode assist "What is the best way to handle state in React?" --no-context
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Context Injection
|
|
58
|
-
|
|
59
|
-
By default, `assist` injects project context including:
|
|
60
|
-
|
|
61
|
-
- Current state and session info
|
|
62
|
-
- Contract and blueprint (if available)
|
|
63
|
-
- Recent build history
|
|
64
|
-
- Error patterns
|
|
65
|
-
|
|
66
|
-
This helps Claude Code provide more relevant responses.
|
|
67
|
-
|
|
68
|
-
## See Also
|
|
69
|
-
|
|
70
|
-
- [debug](./debug) - For bug fixing
|
|
71
|
-
- [go](./go) - For building new features
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_position: 7
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# vibecode build
|
|
6
|
-
|
|
7
|
-
Manage build process and capture evidence.
|
|
8
|
-
|
|
9
|
-
## Synopsis
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
vibecode build [options]
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Options
|
|
16
|
-
|
|
17
|
-
| Option | Description |
|
|
18
|
-
|--------|-------------|
|
|
19
|
-
| `-s, --start` | Start build process |
|
|
20
|
-
| `-c, --complete` | Mark build complete |
|
|
21
|
-
| `-e, --evidence` | Capture evidence snapshot |
|
|
22
|
-
| `-a, --auto` | Auto-build with Claude Code |
|
|
23
|
-
| `-i, --iterate` | Build-test-fix loop |
|
|
24
|
-
| `-m, --max <n>` | Max iterations |
|
|
25
|
-
| `--strict` | Exit with error if tests fail |
|
|
26
|
-
| `--provider <name>` | Provider (default: claude-code) |
|
|
27
|
-
|
|
28
|
-
## Examples
|
|
29
|
-
|
|
30
|
-
### Manual Build
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
vibecode build --start
|
|
34
|
-
# ... do work ...
|
|
35
|
-
vibecode build --complete
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Auto Build
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
vibecode build --auto
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### Iterative Build
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
vibecode build --iterate --max 5
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## See Also
|
|
51
|
-
|
|
52
|
-
- [plan](./plan) - Create plan first
|
|
53
|
-
- [review](./review) - Review after build
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_position: 10
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# vibecode config
|
|
6
|
-
|
|
7
|
-
Manage Vibecode configuration.
|
|
8
|
-
|
|
9
|
-
## Synopsis
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
vibecode config [options]
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Options
|
|
16
|
-
|
|
17
|
-
| Option | Description |
|
|
18
|
-
|--------|-------------|
|
|
19
|
-
| `--show` | Show current configuration |
|
|
20
|
-
| `--provider <name>` | Set default AI provider |
|
|
21
|
-
|
|
22
|
-
## Examples
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
# Show config
|
|
26
|
-
vibecode config --show
|
|
27
|
-
|
|
28
|
-
# Set provider
|
|
29
|
-
vibecode config --provider claude-code
|
|
30
|
-
```
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_position: 13
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# vibecode debug
|
|
6
|
-
|
|
7
|
-
**Debug Mode** - Intelligent 9-step bug fixing.
|
|
8
|
-
|
|
9
|
-
## Synopsis
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
vibecode debug [description...] [options]
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Description
|
|
16
|
-
|
|
17
|
-
The `debug` command uses a systematic 9-step protocol to identify, fix, and prevent bugs. It combines error analysis, AI-powered fixing, and automated verification.
|
|
18
|
-
|
|
19
|
-
## Arguments
|
|
20
|
-
|
|
21
|
-
| Argument | Description |
|
|
22
|
-
|----------|-------------|
|
|
23
|
-
| `description` | Description of the error (optional) |
|
|
24
|
-
|
|
25
|
-
## Options
|
|
26
|
-
|
|
27
|
-
| Option | Description |
|
|
28
|
-
|--------|-------------|
|
|
29
|
-
| `-i, --interactive` | Interactive debug session |
|
|
30
|
-
| `-a, --auto` | Auto-scan and fix errors |
|
|
31
|
-
| `-l, --log <text>` | Provide error log directly |
|
|
32
|
-
| `--image <path>` | Provide error screenshot |
|
|
33
|
-
| `--attempts <n>` | Max fix attempts (default: 3) |
|
|
34
|
-
| `-v, --verbose` | Show detailed output |
|
|
35
|
-
| `-q, --quiet` | Minimal output |
|
|
36
|
-
|
|
37
|
-
## Examples
|
|
38
|
-
|
|
39
|
-
### Interactive Mode
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
vibecode debug
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### With Error Description
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
vibecode debug "TypeError: Cannot read properties of undefined"
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Auto-Scan Mode
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
vibecode debug --auto
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### From Error Log
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
vibecode debug --log "Error: ENOENT: no such file or directory"
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### With Screenshot
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
vibecode debug --image ./error-screenshot.png
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
## The 9-Step Protocol
|
|
70
|
-
|
|
71
|
-
### 1. EVIDENCE
|
|
72
|
-
Gather error information from logs, description, or screenshots.
|
|
73
|
-
|
|
74
|
-
### 2. REPRODUCE
|
|
75
|
-
Confirm the error exists by running relevant commands.
|
|
76
|
-
|
|
77
|
-
### 3. ANALYZE
|
|
78
|
-
Identify root cause using pattern matching and AI analysis.
|
|
79
|
-
|
|
80
|
-
### 4. HYPOTHESIZE
|
|
81
|
-
Generate fix hypotheses ranked by confidence.
|
|
82
|
-
|
|
83
|
-
### 5. TEST
|
|
84
|
-
Prepare fix prompt and validate approach.
|
|
85
|
-
|
|
86
|
-
### 6. FIX
|
|
87
|
-
Apply fix via Claude Code.
|
|
88
|
-
|
|
89
|
-
### 7. VERIFY
|
|
90
|
-
Confirm the fix works by re-running tests.
|
|
91
|
-
|
|
92
|
-
### 8. DOCUMENT
|
|
93
|
-
Log the fix for future reference.
|
|
94
|
-
|
|
95
|
-
### 9. PREVENT
|
|
96
|
-
Add prevention rules to CLAUDE.md.
|
|
97
|
-
|
|
98
|
-
## Error Translation
|
|
99
|
-
|
|
100
|
-
Vibecode translates technical errors to human-friendly Vietnamese:
|
|
101
|
-
|
|
102
|
-
```
|
|
103
|
-
❌ TypeError: Cannot read properties of undefined (reading 'map')
|
|
104
|
-
|
|
105
|
-
Translates to:
|
|
106
|
-
|
|
107
|
-
╭────────────────────────────────────────────────────────────╮
|
|
108
|
-
│ ❌ LỖI: Biến chưa được định nghĩa │
|
|
109
|
-
│ │
|
|
110
|
-
│ Vấn đề: Code đang cố truy cập thuộc tính 'map' │
|
|
111
|
-
│ của một biến undefined │
|
|
112
|
-
│ │
|
|
113
|
-
│ 💡 Gợi ý: │
|
|
114
|
-
│ • Kiểm tra biến có được khởi tạo trước khi sử dụng │
|
|
115
|
-
│ • Thêm optional chaining (?.) khi truy cập thuộc tính │
|
|
116
|
-
│ • Kiểm tra null/undefined với if statement │
|
|
117
|
-
│ │
|
|
118
|
-
╰────────────────────────────────────────────────────────────╯
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
## Output
|
|
122
|
-
|
|
123
|
-
```
|
|
124
|
-
🔍 VIBECODE DEBUG - Intelligent Bug Fixing
|
|
125
|
-
|
|
126
|
-
[1/9 EVIDENCE] Gathering error information...
|
|
127
|
-
Type: TypeError
|
|
128
|
-
Category: RUNTIME
|
|
129
|
-
Error: Biến chưa được định nghĩa
|
|
130
|
-
→ Code đang cố truy cập thuộc tính 'map' của một biến undefined
|
|
131
|
-
|
|
132
|
-
[2/9 REPRODUCE] Confirming error exists...
|
|
133
|
-
✓ Error confirmed
|
|
134
|
-
|
|
135
|
-
[3/9 ANALYZE] Analyzing root cause...
|
|
136
|
-
Root cause: Missing null check
|
|
137
|
-
Confidence: 85%
|
|
138
|
-
|
|
139
|
-
[4/9 HYPOTHESIZE] Generating fix hypotheses...
|
|
140
|
-
Generated 2 hypothesis(es):
|
|
141
|
-
- Add optional chaining... (90%)
|
|
142
|
-
- Add null check... (85%)
|
|
143
|
-
|
|
144
|
-
[5/9 TEST] Preparing fix...
|
|
145
|
-
[6/9 FIX] Applying fix via Claude Code...
|
|
146
|
-
[7/9 VERIFY] Verifying fix...
|
|
147
|
-
✓ Fix verified successfully!
|
|
148
|
-
|
|
149
|
-
[8/9 DOCUMENT] Documenting fix...
|
|
150
|
-
[9/9 PREVENT] Adding prevention rules...
|
|
151
|
-
|
|
152
|
-
✅ Bug fixed and documented!
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
## Learning Integration
|
|
156
|
-
|
|
157
|
-
After each fix, Vibecode asks for feedback:
|
|
158
|
-
|
|
159
|
-
```
|
|
160
|
-
? Fix này có đúng không?
|
|
161
|
-
✅ Đúng, hoạt động tốt
|
|
162
|
-
❌ Không đúng
|
|
163
|
-
🔄 Đúng một phần
|
|
164
|
-
⏭️ Bỏ qua
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
Your feedback helps improve future suggestions.
|
|
168
|
-
|
|
169
|
-
## See Also
|
|
170
|
-
|
|
171
|
-
- [Debug Mode Guide](../guides/debug-mode) - In-depth guide
|
|
172
|
-
- [learn](./learn) - View learning statistics
|
|
173
|
-
- [assist](./assist) - Direct AI assistance
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_position: 5
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# vibecode doctor
|
|
6
|
-
|
|
7
|
-
Check configuration and diagnose issues.
|
|
8
|
-
|
|
9
|
-
## Synopsis
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
vibecode doctor
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Description
|
|
16
|
-
|
|
17
|
-
Runs diagnostic checks:
|
|
18
|
-
- Node.js version
|
|
19
|
-
- Claude Code availability
|
|
20
|
-
- Workspace integrity
|
|
21
|
-
- Configuration validity
|
|
22
|
-
|
|
23
|
-
## Example Output
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
🔍 Vibecode Doctor
|
|
27
|
-
|
|
28
|
-
✓ Node.js 20.10.0
|
|
29
|
-
✓ Claude Code installed
|
|
30
|
-
✓ Workspace valid
|
|
31
|
-
✓ Configuration OK
|
|
32
|
-
|
|
33
|
-
All checks passed!
|
|
34
|
-
```
|