@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.
Files changed (44) hide show
  1. package/dist/commands/doctor.d.ts +8 -0
  2. package/dist/commands/doctor.js +218 -0
  3. package/dist/commands/init.d.ts +4 -0
  4. package/dist/commands/init.js +772 -0
  5. package/dist/commands/install-hook.d.ts +12 -0
  6. package/dist/commands/install-hook.js +193 -0
  7. package/dist/commands/install.d.ts +1 -0
  8. package/dist/commands/install.js +81 -0
  9. package/dist/commands/login.d.ts +1 -0
  10. package/dist/commands/login.js +54 -0
  11. package/dist/commands/mcp-config.d.ts +6 -0
  12. package/dist/commands/mcp-config.js +209 -0
  13. package/dist/commands/serve.d.ts +1 -0
  14. package/dist/commands/serve.js +26 -0
  15. package/dist/commands/setup.d.ts +1 -0
  16. package/dist/commands/setup.js +92 -0
  17. package/dist/commands/status.d.ts +1 -0
  18. package/dist/commands/status.js +49 -0
  19. package/dist/commands/uninstall.d.ts +1 -0
  20. package/dist/commands/uninstall.js +50 -0
  21. package/dist/config.d.ts +5 -0
  22. package/dist/config.js +33 -0
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.js +71 -1075
  25. package/dist/mcp/server.d.ts +2 -0
  26. package/dist/mcp/server.js +544 -0
  27. package/package.json +16 -38
  28. package/src/commands/doctor.ts +231 -0
  29. package/src/commands/init.ts +827 -0
  30. package/src/commands/install-hook.ts +207 -0
  31. package/src/commands/install.ts +94 -0
  32. package/src/commands/login.ts +56 -0
  33. package/src/commands/mcp-config.ts +235 -0
  34. package/src/commands/serve.ts +23 -0
  35. package/src/commands/setup.ts +104 -0
  36. package/src/commands/status.ts +48 -0
  37. package/src/commands/uninstall.ts +49 -0
  38. package/src/config.ts +34 -0
  39. package/src/index.ts +87 -0
  40. package/src/mcp/server.ts +617 -0
  41. package/tsconfig.json +16 -0
  42. package/README.md +0 -89
  43. package/dist/chunk-7CKLRE2H.js +0 -36
  44. 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
@@ -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
- };
@@ -1,16 +0,0 @@
1
- import {
2
- clearConfig,
3
- getApiKey,
4
- getApiUrl,
5
- getConfigPath,
6
- setApiKey,
7
- setApiUrl
8
- } from "./chunk-7CKLRE2H.js";
9
- export {
10
- clearConfig,
11
- getApiKey,
12
- getApiUrl,
13
- getConfigPath,
14
- setApiKey,
15
- setApiUrl
16
- };