@codebakers/cli 1.1.5 → 1.1.6
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/dist/commands/doctor.d.ts +8 -0
- package/dist/commands/doctor.js +218 -0
- package/dist/commands/init.d.ts +4 -0
- package/dist/commands/init.js +772 -0
- package/dist/commands/install-hook.d.ts +12 -0
- package/dist/commands/install-hook.js +193 -0
- package/dist/commands/install.d.ts +1 -0
- package/dist/commands/install.js +81 -0
- package/dist/commands/login.d.ts +1 -0
- package/dist/commands/login.js +54 -0
- package/dist/commands/mcp-config.d.ts +6 -0
- package/dist/commands/mcp-config.js +209 -0
- package/dist/commands/serve.d.ts +1 -0
- package/dist/commands/serve.js +26 -0
- package/dist/commands/setup.d.ts +1 -0
- package/dist/commands/setup.js +92 -0
- package/dist/commands/status.d.ts +1 -0
- package/dist/commands/status.js +49 -0
- package/dist/commands/uninstall.d.ts +1 -0
- package/dist/commands/uninstall.js +50 -0
- package/dist/config.d.ts +5 -0
- package/dist/config.js +33 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +71 -1075
- package/dist/mcp/server.d.ts +2 -0
- package/dist/mcp/server.js +544 -0
- package/package.json +16 -38
- package/src/commands/doctor.ts +231 -0
- package/src/commands/init.ts +827 -0
- package/src/commands/install-hook.ts +207 -0
- package/src/commands/install.ts +94 -0
- package/src/commands/login.ts +56 -0
- package/src/commands/mcp-config.ts +235 -0
- package/src/commands/serve.ts +23 -0
- package/src/commands/setup.ts +104 -0
- package/src/commands/status.ts +48 -0
- package/src/commands/uninstall.ts +49 -0
- package/src/config.ts +34 -0
- package/src/index.ts +87 -0
- package/src/mcp/server.ts +617 -0
- package/tsconfig.json +16 -0
- package/README.md +0 -89
- package/dist/chunk-7CKLRE2H.js +0 -36
- package/dist/config-R2H6JKGW.js +0 -16
package/README.md
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# @codebakers/cli
|
|
2
|
-
|
|
3
|
-
Official CLI for CodeBakers - AI prompt patterns for production-ready code.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npx @codebakers/cli setup
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
Or install globally:
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npm install -g @codebakers/cli
|
|
15
|
-
codebakers setup
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Commands
|
|
19
|
-
|
|
20
|
-
### Setup
|
|
21
|
-
|
|
22
|
-
Configure CodeBakers with your API key and set up your IDE:
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
# Interactive setup
|
|
26
|
-
npx @codebakers/cli setup
|
|
27
|
-
|
|
28
|
-
# Setup for specific IDE
|
|
29
|
-
npx @codebakers/cli setup --ide cursor
|
|
30
|
-
npx @codebakers/cli setup --ide windsurf
|
|
31
|
-
npx @codebakers/cli setup --ide aider
|
|
32
|
-
npx @codebakers/cli setup --ide claude-code
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Claude Code MCP Server
|
|
36
|
-
|
|
37
|
-
Add CodeBakers as an MCP server in Claude Code:
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
/mcp add codebakers npx -y @codebakers/cli serve
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### Status
|
|
44
|
-
|
|
45
|
-
Check your configuration:
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
npx @codebakers/cli status
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Logout
|
|
52
|
-
|
|
53
|
-
Remove stored API key:
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
npx @codebakers/cli logout
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Supported IDEs
|
|
60
|
-
|
|
61
|
-
| IDE | Configuration File |
|
|
62
|
-
|-----|-------------------|
|
|
63
|
-
| Cursor | `.cursorrules` |
|
|
64
|
-
| Windsurf | `.windsurfrules` |
|
|
65
|
-
| Aider | `.aider.conf.yml` |
|
|
66
|
-
| Claude Code | `CLAUDE.md` + `.claude/` |
|
|
67
|
-
|
|
68
|
-
## Getting Your API Key
|
|
69
|
-
|
|
70
|
-
1. Sign up at [codebakers.ai](https://codebakers.ai)
|
|
71
|
-
2. Go to Settings to find your API key
|
|
72
|
-
3. Run `codebakers setup` and paste your key
|
|
73
|
-
|
|
74
|
-
## What's Included
|
|
75
|
-
|
|
76
|
-
CodeBakers provides 34 production-ready pattern modules:
|
|
77
|
-
|
|
78
|
-
- **00-core** - Required standards, types, error handling
|
|
79
|
-
- **01-database** - Drizzle ORM, queries, migrations
|
|
80
|
-
- **02-auth** - Authentication, OAuth, 2FA, security
|
|
81
|
-
- **03-api** - API routes, validation, rate limiting
|
|
82
|
-
- **04-frontend** - React, forms, states, i18n
|
|
83
|
-
- **05-payments** - Stripe, subscriptions, billing
|
|
84
|
-
- **06-integrations** - Email, files, background jobs
|
|
85
|
-
- And 27 more modules...
|
|
86
|
-
|
|
87
|
-
## License
|
|
88
|
-
|
|
89
|
-
MIT
|
package/dist/chunk-7CKLRE2H.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// src/utils/config.ts
|
|
2
|
-
import Conf from "conf";
|
|
3
|
-
var config = new Conf({
|
|
4
|
-
projectName: "codebakers",
|
|
5
|
-
defaults: {
|
|
6
|
-
apiKey: null,
|
|
7
|
-
apiUrl: "https://codebakers.ai"
|
|
8
|
-
}
|
|
9
|
-
});
|
|
10
|
-
function getApiKey() {
|
|
11
|
-
return config.get("apiKey");
|
|
12
|
-
}
|
|
13
|
-
function setApiKey(key) {
|
|
14
|
-
config.set("apiKey", key);
|
|
15
|
-
}
|
|
16
|
-
function getApiUrl() {
|
|
17
|
-
return config.get("apiUrl");
|
|
18
|
-
}
|
|
19
|
-
function setApiUrl(url) {
|
|
20
|
-
config.set("apiUrl", url);
|
|
21
|
-
}
|
|
22
|
-
function clearConfig() {
|
|
23
|
-
config.clear();
|
|
24
|
-
}
|
|
25
|
-
function getConfigPath() {
|
|
26
|
-
return config.path;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export {
|
|
30
|
-
getApiKey,
|
|
31
|
-
setApiKey,
|
|
32
|
-
getApiUrl,
|
|
33
|
-
setApiUrl,
|
|
34
|
-
clearConfig,
|
|
35
|
-
getConfigPath
|
|
36
|
-
};
|
package/dist/config-R2H6JKGW.js
DELETED