codowave 0.1.1 β 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 +229 -29
- package/dist/index.js +190 -344
- package/dist/index.js.map +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,53 +1,253 @@
|
|
|
1
|
-
# Codowave CLI
|
|
1
|
+
# π€ Codowave CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<p align="center">
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/codowave)
|
|
6
|
+
[](https://www.npmjs.com/package/codowave)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
[](https://github.com/CodowaveAI/Codowave/stargazers)
|
|
9
|
+
[](https://github.com/CodowaveAI/Codowave/network)
|
|
10
|
+
[](https://github.com/CodowaveAI/Codowave/issues)
|
|
11
|
+
[](https://github.com/CodowaveAI/Codowave/actions)
|
|
12
|
+
[](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
|
-
|
|
45
|
+
### Initialize
|
|
12
46
|
|
|
13
47
|
```bash
|
|
14
|
-
#
|
|
15
|
-
|
|
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
|
-
|
|
18
|
-
pnpm --filter codowave build
|
|
108
|
+
## βοΈ Configuration
|
|
19
109
|
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
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
|
-
|
|
192
|
+
| Package | Version | Description |
|
|
193
|
+
|---------|---------|-------------|
|
|
194
|
+
| `codowave` |  | CLI tool |
|
|
195
|
+
| `@codowave/core` |  | Core SDK |
|
|
27
196
|
|
|
28
|
-
|
|
197
|
+
## π οΈ Development
|
|
29
198
|
|
|
30
|
-
**Option 1: Push a tag**
|
|
31
199
|
```bash
|
|
32
|
-
#
|
|
33
|
-
git
|
|
34
|
-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
244
|
+
---
|
|
44
245
|
|
|
45
|
-
|
|
246
|
+
<p align="center">
|
|
46
247
|
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
251
|
+
[](https://github.com/CodowaveAI/Codowave/stargazers)
|
|
52
252
|
|
|
53
|
-
|
|
253
|
+
</p>
|