@bugzy-ai/bugzy 1.2.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/LICENSE +21 -0
- package/README.md +248 -0
- package/dist/cli/index.cjs +7547 -0
- package/dist/cli/index.cjs.map +1 -0
- package/dist/cli/index.d.cts +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +7539 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/index.cjs +6439 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +54 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +6383 -0
- package/dist/index.js.map +1 -0
- package/dist/subagents/index.cjs +2703 -0
- package/dist/subagents/index.cjs.map +1 -0
- package/dist/subagents/index.d.cts +34 -0
- package/dist/subagents/index.d.ts +34 -0
- package/dist/subagents/index.js +2662 -0
- package/dist/subagents/index.js.map +1 -0
- package/dist/subagents/metadata.cjs +207 -0
- package/dist/subagents/metadata.cjs.map +1 -0
- package/dist/subagents/metadata.d.cts +31 -0
- package/dist/subagents/metadata.d.ts +31 -0
- package/dist/subagents/metadata.js +174 -0
- package/dist/subagents/metadata.js.map +1 -0
- package/dist/tasks/index.cjs +3464 -0
- package/dist/tasks/index.cjs.map +1 -0
- package/dist/tasks/index.d.cts +44 -0
- package/dist/tasks/index.d.ts +44 -0
- package/dist/tasks/index.js +3431 -0
- package/dist/tasks/index.js.map +1 -0
- package/dist/templates/init/.bugzy/runtime/project-context.md +35 -0
- package/dist/templates/init/.bugzy/runtime/templates/test-plan-template.md +25 -0
- package/dist/templates/init/.bugzy/runtime/testing-best-practices.md +278 -0
- package/dist/templates/init/.gitignore-template +4 -0
- package/package.json +95 -0
- package/templates/init/.bugzy/runtime/knowledge-base.md +61 -0
- package/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +97 -0
- package/templates/init/.bugzy/runtime/project-context.md +35 -0
- package/templates/init/.bugzy/runtime/subagent-memory-guide.md +87 -0
- package/templates/init/.bugzy/runtime/templates/test-plan-template.md +25 -0
- package/templates/init/.bugzy/runtime/templates/test-result-schema.md +498 -0
- package/templates/init/.bugzy/runtime/test-execution-strategy.md +535 -0
- package/templates/init/.bugzy/runtime/testing-best-practices.md +632 -0
- package/templates/init/.gitignore-template +25 -0
- package/templates/init/CLAUDE.md +157 -0
- package/templates/init/test-runs/README.md +45 -0
- package/templates/playwright/BasePage.template.ts +190 -0
- package/templates/playwright/auth.setup.template.ts +89 -0
- package/templates/playwright/dataGenerators.helper.template.ts +148 -0
- package/templates/playwright/dateUtils.helper.template.ts +96 -0
- package/templates/playwright/pages.fixture.template.ts +50 -0
- package/templates/playwright/playwright.config.template.ts +97 -0
- package/templates/playwright/reporters/bugzy-reporter.ts +454 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Bugzy Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
# Bugzy
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/bugzy)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
[](https://nodejs.org)
|
|
6
|
+
|
|
7
|
+
> Open-source AI agent configuration for QA automation with Claude Code
|
|
8
|
+
|
|
9
|
+
Bugzy is a CLI tool that manages AI agent configuration and starts Claude Code sessions with properly configured subagents, tasks, and MCP servers for test automation.
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
- ✅ **Complete Task Library** - 8 pre-built QA automation tasks
|
|
14
|
+
- ✅ **Flexible Subagents** - Test Runner, Team Communicator, Documentation Researcher, Issue Tracker
|
|
15
|
+
- ✅ **Easy Setup** - Interactive CLI configuration (`bugzy setup`)
|
|
16
|
+
- ✅ **Local Execution** - Runs entirely on your machine with Claude Code
|
|
17
|
+
- ✅ **Version Control Friendly** - Configuration stored in git-friendly files
|
|
18
|
+
- ✅ **Language Agnostic** - Works with any project type (Python, Ruby, Go, JavaScript, etc.)
|
|
19
|
+
- ✅ **No Vendor Lock-in** - Full control over customization
|
|
20
|
+
- ✅ **MCP Integration** - Automatic MCP server configuration
|
|
21
|
+
|
|
22
|
+
## Quick Start
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# Install globally
|
|
26
|
+
npm install -g bugzy
|
|
27
|
+
|
|
28
|
+
# Navigate to your project
|
|
29
|
+
cd my-project
|
|
30
|
+
|
|
31
|
+
# Run interactive setup
|
|
32
|
+
bugzy setup
|
|
33
|
+
|
|
34
|
+
# Configure your MCP secrets
|
|
35
|
+
cp .env.example .env
|
|
36
|
+
vim .env # Add your MCP API tokens (Slack, Notion, etc.)
|
|
37
|
+
|
|
38
|
+
# Generate test plan (creates .env.testdata with test data)
|
|
39
|
+
bugzy "/generate-test-plan for [your feature]"
|
|
40
|
+
|
|
41
|
+
# Start a Claude Code session
|
|
42
|
+
bugzy
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Example Usage
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# Generate a test plan
|
|
49
|
+
bugzy "generate test plan for user authentication"
|
|
50
|
+
|
|
51
|
+
# Or use slash commands in Claude Code
|
|
52
|
+
/generate-test-plan for checkout flow
|
|
53
|
+
/run-tests for payment processing
|
|
54
|
+
/verify-changes-slack deployed new feature
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## What Gets Created
|
|
58
|
+
|
|
59
|
+
After running `bugzy setup`, your project will have:
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
your-project/
|
|
63
|
+
├── .bugzy/
|
|
64
|
+
│ ├── config.json # Your subagent configuration
|
|
65
|
+
│ └── runtime/
|
|
66
|
+
│ ├── project-context.md # Project information
|
|
67
|
+
│ └── templates/ # Customizable templates
|
|
68
|
+
├── .claude/
|
|
69
|
+
│ ├── commands/ # 8 task slash commands
|
|
70
|
+
│ ├── agents/ # Configured subagent prompts
|
|
71
|
+
│ └── .mcp.json # MCP server configuration
|
|
72
|
+
├── .env.example # MCP secrets template (empty values)
|
|
73
|
+
├── .env.testdata # Test data with actual values (from /generate-test-plan)
|
|
74
|
+
└── .env # Your actual secrets (gitignored)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Available Subagents
|
|
78
|
+
|
|
79
|
+
| Subagent | Purpose | Integrations | Required |
|
|
80
|
+
|----------|---------|--------------|----------|
|
|
81
|
+
| **Test Runner** | Execute automated tests | Playwright | ✅ Yes |
|
|
82
|
+
| **Team Communicator** | Send team notifications | Slack | ❌ Optional |
|
|
83
|
+
| **Documentation Researcher** | Search documentation | Notion, Confluence | ❌ Optional |
|
|
84
|
+
| **Issue Tracker** | Create and track bugs | Linear, Jira, Notion, Slack | ❌ Optional |
|
|
85
|
+
|
|
86
|
+
## Available Tasks
|
|
87
|
+
|
|
88
|
+
| Task | Command | Description |
|
|
89
|
+
|------|---------|-------------|
|
|
90
|
+
| Generate Test Plan | `/generate-test-plan` | Create comprehensive test plans |
|
|
91
|
+
| Generate Test Cases | `/generate-test-cases` | Generate executable test cases |
|
|
92
|
+
| Explore Application | `/explore-application` | Document application features |
|
|
93
|
+
| Run Tests | `/run-tests` | Execute automated tests |
|
|
94
|
+
| Verify Changes (Manual) | `/verify-changes-manual` | Verify changes locally |
|
|
95
|
+
| Verify Changes (Slack) | `/verify-changes-slack` | Verify and notify team |
|
|
96
|
+
| Handle Message | `/handle-message` | Process team messages |
|
|
97
|
+
| Process Event | `/process-event` | Handle automated events |
|
|
98
|
+
|
|
99
|
+
## Configuration
|
|
100
|
+
|
|
101
|
+
Bugzy uses a simple configuration format:
|
|
102
|
+
|
|
103
|
+
```json
|
|
104
|
+
{
|
|
105
|
+
"version": "1.0.0",
|
|
106
|
+
"project": {
|
|
107
|
+
"name": "my-project"
|
|
108
|
+
},
|
|
109
|
+
"subagents": {
|
|
110
|
+
"test-runner": "playwright",
|
|
111
|
+
"team-communicator": "slack",
|
|
112
|
+
"documentation-researcher": "notion",
|
|
113
|
+
"issue-tracker": "linear"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
**Don't edit `config.json` manually** - use `bugzy setup` to reconfigure.
|
|
119
|
+
|
|
120
|
+
## Environment Variables
|
|
121
|
+
|
|
122
|
+
Bugzy loads environment variables for MCP servers and test configuration:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
# MCP Secrets
|
|
126
|
+
SLACK_BOT_TOKEN=xoxb-...
|
|
127
|
+
NOTION_TOKEN=secret_...
|
|
128
|
+
LINEAR_API_KEY=lin_api_...
|
|
129
|
+
|
|
130
|
+
# Test Configuration
|
|
131
|
+
TEST_BASE_URL=http://localhost:3000
|
|
132
|
+
TEST_USER_EMAIL=test@example.com
|
|
133
|
+
TEST_USER_PASSWORD=secure-password
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
See [Configuration Guide](./docs/configuration.md) for complete details.
|
|
137
|
+
|
|
138
|
+
## Documentation
|
|
139
|
+
|
|
140
|
+
- 📚 [Getting Started Guide](./docs/getting-started.md) - Installation and first-time setup
|
|
141
|
+
- ⚙️ [Configuration Guide](./docs/configuration.md) - Subagent and environment setup
|
|
142
|
+
- 🤖 [Subagents Guide](./docs/subagents.md) - Available subagents and integrations
|
|
143
|
+
- 📋 [Task Library](./docs/tasks.md) - All available tasks and usage
|
|
144
|
+
- 🏗️ [Architecture](./docs/architecture.md) - How Bugzy works under the hood
|
|
145
|
+
|
|
146
|
+
## Examples
|
|
147
|
+
|
|
148
|
+
Check out example configurations:
|
|
149
|
+
- [Basic Setup](./examples/basic/) - Minimal configuration with just Test Runner
|
|
150
|
+
- [Full Setup](./examples/full/) - All subagents configured
|
|
151
|
+
|
|
152
|
+
## Requirements
|
|
153
|
+
|
|
154
|
+
- **Node.js** v18 or higher
|
|
155
|
+
- **Claude Code** installed and configured
|
|
156
|
+
- **npm** or **yarn** package manager
|
|
157
|
+
|
|
158
|
+
## Breaking Changes (v0.2.0)
|
|
159
|
+
|
|
160
|
+
### New Test Execution Output Format
|
|
161
|
+
|
|
162
|
+
**This is a breaking change.** Bugzy now uses a hierarchical test execution format with custom Playwright reporter:
|
|
163
|
+
|
|
164
|
+
**What's New:**
|
|
165
|
+
- **Custom Bugzy Reporter**: Automatically creates `test-runs/YYYYMMDD-HHMMSS/` structure with `manifest.json`
|
|
166
|
+
- **Execution Retries**: Tracks multiple attempts per test (`exec-1/`, `exec-2/`, `exec-3/`)
|
|
167
|
+
- **Comprehensive Artifacts**: Videos for all tests, traces/screenshots for failures only
|
|
168
|
+
- **Manifest Format**: New `manifest.json` provides complete test run summary and per-test execution details
|
|
169
|
+
|
|
170
|
+
**Migration Path:**
|
|
171
|
+
1. Update to v0.2.0: `npm update -g bugzy`
|
|
172
|
+
2. Run `bugzy setup` in your project to regenerate configuration files
|
|
173
|
+
3. New files will be created:
|
|
174
|
+
- `playwright.config.ts` - Uses custom Bugzy reporter
|
|
175
|
+
- `reporters/bugzy-reporter.ts` - Custom reporter implementation
|
|
176
|
+
- `.bugzy/runtime/templates/test-result-schema.md` - Complete schema documentation
|
|
177
|
+
|
|
178
|
+
**Key Changes:**
|
|
179
|
+
- `/run-tests` now reads `manifest.json` instead of `.last-run.json`
|
|
180
|
+
- Test artifacts organized in `test-runs/{timestamp}/{testId}/exec-{num}/` structure
|
|
181
|
+
- Environment variable `BUGZY_EXECUTION_NUM` controls retry attempts
|
|
182
|
+
- Videos recorded for ALL tests (not just failures)
|
|
183
|
+
- Trace/screenshots only for failures (more efficient)
|
|
184
|
+
|
|
185
|
+
See `.bugzy/runtime/templates/test-result-schema.md` for complete format documentation.
|
|
186
|
+
|
|
187
|
+
## Reconfiguration
|
|
188
|
+
|
|
189
|
+
Need to change your setup? Just run:
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
bugzy setup
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Bugzy will detect your existing configuration and allow you to make changes.
|
|
196
|
+
|
|
197
|
+
## Troubleshooting
|
|
198
|
+
|
|
199
|
+
### Command Not Found
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
npm install -g bugzy
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### Missing Secrets
|
|
206
|
+
|
|
207
|
+
```
|
|
208
|
+
✗ Missing required MCP secrets: SLACK_BOT_TOKEN
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Add the missing secret to your `.env` file.
|
|
212
|
+
|
|
213
|
+
### Claude Code Not Found
|
|
214
|
+
|
|
215
|
+
Install Claude Code and ensure it's in your PATH.
|
|
216
|
+
|
|
217
|
+
See the [Getting Started Guide](./docs/getting-started.md) for more troubleshooting tips.
|
|
218
|
+
|
|
219
|
+
## FAQ
|
|
220
|
+
|
|
221
|
+
**Q: Do I need a package.json?**
|
|
222
|
+
A: No! Bugzy works with any project type.
|
|
223
|
+
|
|
224
|
+
**Q: Can I use this with Python/Ruby/Go projects?**
|
|
225
|
+
A: Yes! Bugzy is language-agnostic.
|
|
226
|
+
|
|
227
|
+
**Q: Where are my secrets stored?**
|
|
228
|
+
A: In `.env` which is gitignored. `.env.example` (MCP secrets template) and `.env.testdata` (test data) are committed.
|
|
229
|
+
|
|
230
|
+
**Q: Can I customize the tasks?**
|
|
231
|
+
A: You can customize templates in `.bugzy/runtime/templates/`.
|
|
232
|
+
|
|
233
|
+
**Q: How do I update to get new tasks?**
|
|
234
|
+
A: Run `npm update -g bugzy && bugzy setup`
|
|
235
|
+
|
|
236
|
+
## License
|
|
237
|
+
|
|
238
|
+
MIT © Bugzy Team
|
|
239
|
+
|
|
240
|
+
## Contributing
|
|
241
|
+
|
|
242
|
+
Contributions are welcome! Please read our contributing guidelines (coming soon).
|
|
243
|
+
|
|
244
|
+
## Support
|
|
245
|
+
|
|
246
|
+
- **Issues**: [github.com/bugzy-ai/bugzy-oss/issues](https://github.com/bugzy-ai/bugzy-oss/issues)
|
|
247
|
+
- **Discussions**: [github.com/bugzy-ai/bugzy-oss/discussions](https://github.com/bugzy-ai/bugzy-oss/discussions)
|
|
248
|
+
- **Documentation**: [docs.bugzy.dev](https://docs.bugzy.dev)
|