@nclamvn/vibecode-cli 1.5.0 → 1.7.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.
- package/.vibecode/learning/fixes.json +1 -0
- package/.vibecode/learning/preferences.json +1 -0
- package/bin/vibecode.js +86 -3
- package/docs-site/README.md +41 -0
- package/docs-site/blog/2019-05-28-first-blog-post.md +12 -0
- package/docs-site/blog/2019-05-29-long-blog-post.md +44 -0
- package/docs-site/blog/2021-08-01-mdx-blog-post.mdx +24 -0
- package/docs-site/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg +0 -0
- package/docs-site/blog/2021-08-26-welcome/index.md +29 -0
- package/docs-site/blog/authors.yml +25 -0
- package/docs-site/blog/tags.yml +19 -0
- package/docs-site/docs/commands/agent.md +162 -0
- package/docs-site/docs/commands/assist.md +71 -0
- package/docs-site/docs/commands/build.md +53 -0
- package/docs-site/docs/commands/config.md +30 -0
- package/docs-site/docs/commands/debug.md +173 -0
- package/docs-site/docs/commands/doctor.md +34 -0
- package/docs-site/docs/commands/go.md +128 -0
- package/docs-site/docs/commands/index.md +79 -0
- package/docs-site/docs/commands/init.md +42 -0
- package/docs-site/docs/commands/learn.md +82 -0
- package/docs-site/docs/commands/lock.md +33 -0
- package/docs-site/docs/commands/plan.md +29 -0
- package/docs-site/docs/commands/review.md +31 -0
- package/docs-site/docs/commands/snapshot.md +34 -0
- package/docs-site/docs/commands/start.md +32 -0
- package/docs-site/docs/commands/status.md +37 -0
- package/docs-site/docs/commands/undo.md +83 -0
- package/docs-site/docs/configuration.md +72 -0
- package/docs-site/docs/faq.md +83 -0
- package/docs-site/docs/getting-started.md +119 -0
- package/docs-site/docs/guides/agent-mode.md +94 -0
- package/docs-site/docs/guides/debug-mode.md +83 -0
- package/docs-site/docs/guides/magic-mode.md +107 -0
- package/docs-site/docs/installation.md +98 -0
- package/docs-site/docs/intro.md +67 -0
- package/docs-site/docusaurus.config.ts +141 -0
- package/docs-site/package-lock.json +18039 -0
- package/docs-site/package.json +48 -0
- package/docs-site/sidebars.ts +70 -0
- package/docs-site/src/components/HomepageFeatures/index.tsx +72 -0
- package/docs-site/src/components/HomepageFeatures/styles.module.css +16 -0
- package/docs-site/src/css/custom.css +30 -0
- package/docs-site/src/pages/index.module.css +23 -0
- package/docs-site/src/pages/index.tsx +44 -0
- package/docs-site/src/pages/markdown-page.md +7 -0
- package/docs-site/src/theme/Footer/index.tsx +127 -0
- package/docs-site/src/theme/Footer/styles.module.css +285 -0
- 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 +1 -0
- package/docs-site/static/img/undraw_docusaurus_mountain.svg +171 -0
- package/docs-site/static/img/undraw_docusaurus_react.svg +170 -0
- package/docs-site/static/img/undraw_docusaurus_tree.svg +40 -0
- package/docs-site/tsconfig.json +8 -0
- package/package.json +5 -2
- package/src/agent/orchestrator.js +104 -35
- package/src/commands/build.js +13 -3
- package/src/commands/debug.js +109 -1
- package/src/commands/git.js +923 -0
- package/src/commands/go.js +9 -2
- package/src/commands/learn.js +294 -0
- package/src/commands/shell.js +486 -0
- package/src/commands/undo.js +281 -0
- package/src/commands/watch.js +556 -0
- package/src/commands/wizard.js +322 -0
- package/src/core/backup.js +325 -0
- package/src/core/learning.js +295 -0
- package/src/debug/image-analyzer.js +304 -0
- package/src/debug/index.js +30 -1
- package/src/index.js +50 -0
- package/src/ui/__tests__/error-translator.test.js +390 -0
- package/src/ui/dashboard.js +364 -0
- package/src/ui/error-translator.js +775 -0
- package/src/utils/image.js +222 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
package/bin/vibecode.js
CHANGED
|
@@ -21,6 +21,11 @@ import {
|
|
|
21
21
|
agentCommand,
|
|
22
22
|
debugCommand,
|
|
23
23
|
assistCommand,
|
|
24
|
+
undoCommand,
|
|
25
|
+
learnCommand,
|
|
26
|
+
gitCommand,
|
|
27
|
+
watchCommand,
|
|
28
|
+
shellCommand,
|
|
24
29
|
VERSION
|
|
25
30
|
} from '../src/index.js';
|
|
26
31
|
|
|
@@ -158,7 +163,8 @@ program
|
|
|
158
163
|
.option('-i, --interactive', 'Interactive debug session (default if no args)')
|
|
159
164
|
.option('-a, --auto', 'Auto-scan project for errors and fix')
|
|
160
165
|
.option('-l, --log <text>', 'Provide error log directly')
|
|
161
|
-
.option('--image <path>', '
|
|
166
|
+
.option('--image <path>', 'Analyze error from screenshot file')
|
|
167
|
+
.option('--clipboard', 'Analyze error from clipboard image')
|
|
162
168
|
.option('--attempts <n>', 'Max fix attempts (default: 3)', parseInt)
|
|
163
169
|
.option('-v, --verbose', 'Show detailed output')
|
|
164
170
|
.option('-q, --quiet', 'Minimal output')
|
|
@@ -176,7 +182,84 @@ program
|
|
|
176
182
|
});
|
|
177
183
|
|
|
178
184
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
179
|
-
//
|
|
185
|
+
// Phase H Commands - Undo/Rollback
|
|
180
186
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
181
187
|
|
|
182
|
-
program
|
|
188
|
+
program
|
|
189
|
+
.command('undo')
|
|
190
|
+
.description('⏪ Undo/rollback: Restore files to previous state')
|
|
191
|
+
.option('-l, --list', 'List available backups')
|
|
192
|
+
.option('-s, --step <n>', 'Restore to N steps ago', parseInt)
|
|
193
|
+
.option('-c, --clear', 'Clear all backups')
|
|
194
|
+
.option('-f, --force', 'Force operation without confirmation')
|
|
195
|
+
.action(undoCommand);
|
|
196
|
+
|
|
197
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
198
|
+
// Phase H5 Commands - Learning Mode
|
|
199
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
200
|
+
|
|
201
|
+
program
|
|
202
|
+
.command('learn')
|
|
203
|
+
.description('🧠 View and manage AI learnings from feedback')
|
|
204
|
+
.option('-s, --stats', 'Show learning statistics')
|
|
205
|
+
.option('-c, --clear', 'Clear all learnings')
|
|
206
|
+
.option('-e, --export', 'Export learnings to file')
|
|
207
|
+
.option('-f, --force', 'Skip confirmation prompts')
|
|
208
|
+
.action(learnCommand);
|
|
209
|
+
|
|
210
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
211
|
+
// Phase I Commands - Git Integration
|
|
212
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
213
|
+
|
|
214
|
+
program
|
|
215
|
+
.command('git [subcommand] [args...]')
|
|
216
|
+
.description('Git integration - commit, diff, branch, push with enhanced UI')
|
|
217
|
+
.option('-a, --auto', 'Auto-stage all changes before commit')
|
|
218
|
+
.option('-m, --message <msg>', 'Commit message')
|
|
219
|
+
.option('--staged', 'Show only staged changes (for diff)')
|
|
220
|
+
.option('--count <n>', 'Number of commits to show (for log)', parseInt)
|
|
221
|
+
.option('--all', 'Include all files (for add)')
|
|
222
|
+
.action((subcommand, args, options) => {
|
|
223
|
+
gitCommand(subcommand, args || [], options);
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
227
|
+
// Phase I2 Commands - File Watcher
|
|
228
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
229
|
+
|
|
230
|
+
program
|
|
231
|
+
.command('watch')
|
|
232
|
+
.description('Watch mode - auto-test/lint/build on file changes')
|
|
233
|
+
.option('-d, --dir <path>', 'Directory to watch')
|
|
234
|
+
.option('-t, --test', 'Run tests on change')
|
|
235
|
+
.option('-l, --lint', 'Run lint on change')
|
|
236
|
+
.option('-b, --build', 'Run build on change')
|
|
237
|
+
.option('-T, --typecheck', 'Run TypeScript check on change')
|
|
238
|
+
.option('-a, --all', 'Run all checks (test, lint, typecheck)')
|
|
239
|
+
.option('-n, --notify', 'Desktop notifications')
|
|
240
|
+
.option('-i, --immediate', 'Run checks immediately on start')
|
|
241
|
+
.action(watchCommand);
|
|
242
|
+
|
|
243
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
244
|
+
// Phase I3 Commands - Shell Mode
|
|
245
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
246
|
+
|
|
247
|
+
program
|
|
248
|
+
.command('shell')
|
|
249
|
+
.alias('$')
|
|
250
|
+
.description('Interactive shell with vibecode context and AI assistance')
|
|
251
|
+
.action(shellCommand);
|
|
252
|
+
|
|
253
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
254
|
+
// Parse - If no command provided, show interactive wizard
|
|
255
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
256
|
+
|
|
257
|
+
if (process.argv.length === 2) {
|
|
258
|
+
// No command provided - show interactive wizard
|
|
259
|
+
import('../src/commands/wizard.js').then(m => m.wizardCommand()).catch(err => {
|
|
260
|
+
console.error('Failed to load wizard:', err.message);
|
|
261
|
+
program.help();
|
|
262
|
+
});
|
|
263
|
+
} else {
|
|
264
|
+
program.parse();
|
|
265
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Website
|
|
2
|
+
|
|
3
|
+
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yarn
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Local Development
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
yarn start
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
|
|
18
|
+
|
|
19
|
+
## Build
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
yarn build
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
|
|
26
|
+
|
|
27
|
+
## Deployment
|
|
28
|
+
|
|
29
|
+
Using SSH:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
USE_SSH=true yarn deploy
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Not using SSH:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
GIT_USER=<Your GitHub username> yarn deploy
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: first-blog-post
|
|
3
|
+
title: First Blog Post
|
|
4
|
+
authors: [slorber, yangshun]
|
|
5
|
+
tags: [hola, docusaurus]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Lorem ipsum dolor sit amet...
|
|
9
|
+
|
|
10
|
+
<!-- truncate -->
|
|
11
|
+
|
|
12
|
+
...consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
|
@@ -0,0 +1,29 @@
|
|
|
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.
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
|
@@ -0,0 +1,162 @@
|
|
|
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
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
```
|