codowave 0.1.0 β†’ 0.1.2

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/README.md CHANGED
@@ -1,53 +1,253 @@
1
- # Codowave CLI
1
+ # πŸ€– Codowave CLI
2
2
 
3
- AI-powered coding agent for your GitHub repos.
3
+ <p align="center">
4
4
 
5
- ## Installation
5
+ [![npm version](https://img.shields.io/npm/v/codowave)](https://www.npmjs.com/package/codowave)
6
+ [![npm downloads](https://img.shields.io/npm/dm/codowave)](https://www.npmjs.com/package/codowave)
7
+ [![License](https://img.shields.io/github/license/CodowaveAI/Codowave)](LICENSE)
8
+ [![Stars](https://img.shields.io/github/stars/CodowaveAI/Codowave)](https://github.com/CodowaveAI/Codowave/stargazers)
9
+ [![Forks](https://img.shields.io/github/forks/CodowaveAI/Codowave)](https://github.com/CodowaveAI/Codowave/network)
10
+ [![Issues](https://img.shields.io/github/issues/CodowaveAI/Codowave)](https://github.com/CodowaveAI/Codowave/issues)
11
+ [![CI](https://img.shields.io/github/actions/workflow/status/CodowaveAI/Codowave/ci)](https://github.com/CodowaveAI/Codowave/actions)
12
+ [![Last Commit](https://img.shields.io/github/last-commit/CodowaveAI/Codowave)](https://github.com/CodowaveAI/Codowave/commits/main)
13
+
14
+ </p>
15
+
16
+ > **Self-hosted AI coding assistant that works on your servers, your rules**
17
+
18
+ Codowave is an autonomous AI agent that automates your GitHub workflow. It reads issues, plans solutions, writes code, runs tests, and creates PRs β€” automatically.
19
+
20
+ ## ✨ Features
21
+
22
+ - **πŸ€– Autonomous Issue Resolution** β€” AI reads issues, codes fixes, and opens PRs
23
+ - **πŸ”’ Self-Hosted** β€” Runs on your infrastructure. Your code never leaves your servers
24
+ - **πŸ”— GitHub Native** β€” Deep integration with Issues, PRs, and Actions
25
+ - **πŸ§ͺ Auto-Testing** β€” Runs tests automatically before creating PRs
26
+ - **⚑ Fast Setup** β€” Get started in under 5 minutes
27
+ - **πŸ”Œ Extensible** β€” Add custom skills and workflows
28
+ - **πŸ“Š Real-time Monitoring** β€” Track runs with status and logs commands
29
+
30
+ ## πŸš€ Quick Start
31
+
32
+ ### Installation
6
33
 
7
34
  ```bash
35
+ # Install globally with npm
8
36
  npm install -g codowave
37
+
38
+ # Or with pnpm
39
+ pnpm add -g codowave
40
+
41
+ # Or with yarn
42
+ yarn global add codowave
9
43
  ```
10
44
 
11
- ## Development
45
+ ### Initialize
12
46
 
13
47
  ```bash
14
- # Install dependencies
15
- pnpm install
48
+ # Initialize Codowave with your GitHub App
49
+ codowave init
50
+ ```
51
+
52
+ This wizard will:
53
+ 1. Connect your GitHub account
54
+ 2. Select repositories to automate
55
+ 3. Configure your AI provider (OpenAI, Anthropic, Ollama, etc.)
56
+ 4. Start processing issues automatically!
57
+
58
+ ### Process an Issue
59
+
60
+ ```bash
61
+ # Process an issue by URL
62
+ codowave run https://github.com/owner/repo/issues/123
63
+
64
+ # Or by issue number (if in correct repo)
65
+ codowave run 123
66
+
67
+ # Specify a different repository
68
+ codowave run 456 --repo owner/repo
69
+ ```
70
+
71
+ ### Check Status
72
+
73
+ ```bash
74
+ # View overall status
75
+ codowave status
76
+
77
+ # Check a specific run
78
+ codowave status --run-id abc123
79
+ ```
80
+
81
+ ### View Logs
82
+
83
+ ```bash
84
+ # View logs for a run
85
+ codowave logs --run-id abc123
86
+
87
+ # Stream logs in real-time
88
+ codowave logs --run-id abc123 --follow
89
+ ```
90
+
91
+ ## πŸ“– Commands
92
+
93
+ | Command | Description |
94
+ |---------|-------------|
95
+ | `codowave init` | Initialize Codowave with your GitHub App |
96
+ | `codowave run <issue>` | Process an issue (URL or number) |
97
+ | `codowave status` | Check overall or run-specific status |
98
+ | `codowave logs` | View logs for a run |
99
+ | `codowave --help` | Show help |
100
+
101
+ ### Options
102
+
103
+ | Option | Description |
104
+ |--------|-------------|
105
+ | `-V, --version` | Show version number |
106
+ | `-h, --help` | Show help |
16
107
 
17
- # Build the CLI
18
- pnpm --filter codowave build
108
+ ## βš™οΈ Configuration
19
109
 
20
- # Run in development mode
21
- pnpm --filter codowave dev
110
+ ### Environment Variables
111
+
112
+ ```bash
113
+ # Required for GitHub operations
114
+ GITHUB_APP_ID=your_app_id
115
+ GITHUB_APP_PRIVATE_KEY=your_private_key
116
+ GITHUB_WEBHOOK_SECRET=your_secret
117
+
118
+ # AI Provider (choose one)
119
+ OPENAI_API_KEY=sk-...
120
+ ANTHROPIC_API_KEY=sk-ant-...
121
+ OLLAMA_BASE_URL=http://localhost:11434
122
+ MINIMAX_API_KEY=your_key
22
123
  ```
23
124
 
24
- ## Publishing to npm
125
+ ### Configuration File
126
+
127
+ Create `codowave.config.yaml` in your project:
128
+
129
+ ```yaml
130
+ github:
131
+ app_id: your_app_id
132
+ private_key: ./private-key.pem
133
+
134
+ ai:
135
+ provider: openai # openai, anthropic, ollama, minimax
136
+ model: gpt-4
137
+
138
+ autopilot:
139
+ enabled: true
140
+ max_retries: 3
141
+ auto_merge: true
142
+ ```
143
+
144
+ ## πŸ—οΈ Architecture
145
+
146
+ ```
147
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
148
+ β”‚ Codowave CLI β”‚
149
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
150
+ β”‚
151
+ β–Ό
152
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
153
+ β”‚ @codowave/core β”‚
154
+ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
155
+ β”‚ β”‚ Context β”‚ β”‚ Planner β”‚ β”‚ Coder β”‚ β”‚
156
+ β”‚ β”‚ Builder β”‚ β”‚ AI β”‚ β”‚ AI β”‚ β”‚
157
+ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
158
+ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
159
+ β”‚ β”‚ Test β”‚ β”‚PR Creatorβ”‚ β”‚
160
+ β”‚ β”‚ Runner β”‚ β”‚ β”‚ β”‚
161
+ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
162
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
163
+ β”‚
164
+ β–Ό
165
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
166
+ β”‚ GitHub API β”‚
167
+ β”‚ Issues ←→ PRs ←→ Actions ←→ Webhooks β”‚
168
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
169
+ ```
170
+
171
+ ## πŸ” Security
172
+
173
+ - **Self-hosted** β€” Your code never leaves your servers
174
+ - **GitHub App** β€” Secure OAuth-based authentication
175
+ - **No data retention** β€” Processing is ephemeral
176
+ - **Audit logging** β€” Full trail of all operations
177
+
178
+ ## πŸ€– How It Works
179
+
180
+ 1. **Issue Received** β†’ Agent reads issue description
181
+ 2. **Planning** β†’ AI analyzes code, creates implementation plan
182
+ 3. **Approval** β†’ (Optional) Human reviews plan
183
+ 4. **Coding** β†’ Agent implements the fix
184
+ 5. **Testing** β†’ Runs existing tests, adds new tests
185
+ 6. **PR Created** β†’ Opens pull request with changes
186
+ 7. **Auto-Merged** β†’ When CI passes, PR auto-merges
187
+
188
+ ## πŸ“¦ Packages
189
+
190
+ This monorepo contains:
25
191
 
26
- This package is published to npm using GitHub Actions. The workflow is defined in `.github/workflows/npm-publish.yml`.
192
+ | Package | Version | Description |
193
+ |---------|---------|-------------|
194
+ | `codowave` | ![npm](https://img.shields.io/npm/v/codowave) | CLI tool |
195
+ | `@codowave/core` | ![npm](https://img.shields.io/npm/v/@codowave/core) | Core SDK |
27
196
 
28
- ### Publishing a new version
197
+ ## πŸ› οΈ Development
29
198
 
30
- **Option 1: Push a tag**
31
199
  ```bash
32
- # Create a tag with the version
33
- git tag cli/v0.1.0
34
- git push origin cli/v0.1.0
200
+ # Clone the repository
201
+ git clone https://github.com/CodowaveAI/Codowave.git
202
+ cd Codowave
203
+
204
+ # Install dependencies
205
+ pnpm install
206
+
207
+ # Build all packages
208
+ pnpm build
209
+
210
+ # Run tests
211
+ pnpm test
212
+
213
+ # TypeScript check
214
+ pnpm typecheck
215
+ ```
216
+
217
+ ### Running in Docker
218
+
219
+ ```bash
220
+ # Build the CLI Docker image
221
+ docker build -t codowave-cli ./packages/cli
222
+
223
+ # Run
224
+ docker run --rm codowave-cli --help
35
225
  ```
36
226
 
37
- **Option 2: Manual workflow dispatch**
38
- 1. Go to [Actions > Publish CLI to npm](https://github.com/CodowaveAI/Codowave/actions/workflows/npm-publish.yml)
39
- 2. Click "Run workflow"
40
- 3. Enter the version bump (patch, minor, major) or specific version
41
- 4. Click "Run workflow"
227
+ ## πŸ“š Documentation
228
+
229
+ - [Getting Started](https://codowave.com/docs)
230
+ - [Configuration](https://codowave.com/docs/config)
231
+ - [AI Providers](https://codowave.com/docs/ai-providers)
232
+ - [API Reference](https://codowave.com/docs/api)
233
+
234
+ ## πŸ™ Acknowledgments
235
+
236
+ - [OpenClaw](https://github.com/openclaw/openclaw) β€” AI agent framework
237
+ - [MCP](https://modelcontextprotocol.io) β€” Model Context Protocol
238
+ - [AI SDK](https://sdk.vercel.ai) β€” Vercel AI SDK
239
+
240
+ ## πŸ“„ License
241
+
242
+ MIT License β€” see [LICENSE](./LICENSE) for details.
42
243
 
43
- ### Required secrets
244
+ ---
44
245
 
45
- To publish to npm, you need to set up the following secrets in your repository:
246
+ <p align="center">
46
247
 
47
- 1. **NPM_TOKEN**: An npm access token with publish permissions
48
- - Create at: https://www.npmjs.com/settings/<your-username>/tokens
49
- - Add to: https://github.com/CodowaveAI/Codowave/settings/secrets/actions
248
+ **Built with πŸ”₯ by [Codowave](https://codowave.com)**
249
+ **Contributions welcome! See [CONTRIBUTING.md](./CONTRIBUTING.md)**
50
250
 
51
- ## License
251
+ [![Star us on GitHub](https://img.shields.io/github/stars/CodowaveAI/Codowave?style=social)](https://github.com/CodowaveAI/Codowave/stargazers)
52
252
 
53
- MIT
253
+ </p>