crewx 0.3.0 → 0.4.0-dev.1
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/bin/crewx.js +6 -0
- package/package.json +9 -107
- package/LICENSE +0 -201
- package/README.md +0 -234
- package/crewx.yaml +0 -2069
- package/dist/agent.types.d.ts +0 -117
- package/dist/agent.types.js +0 -16
- package/dist/agent.types.js.map +0 -1
- package/dist/ai-provider.service.d.ts +0 -36
- package/dist/ai-provider.service.js +0 -191
- package/dist/ai-provider.service.js.map +0 -1
- package/dist/ai.service.d.ts +0 -57
- package/dist/ai.service.js +0 -629
- package/dist/ai.service.js.map +0 -1
- package/dist/app.module.d.ts +0 -5
- package/dist/app.module.js +0 -103
- package/dist/app.module.js.map +0 -1
- package/dist/cli/agent.handler.d.ts +0 -2
- package/dist/cli/agent.handler.js +0 -140
- package/dist/cli/agent.handler.js.map +0 -1
- package/dist/cli/chat.handler.d.ts +0 -19
- package/dist/cli/chat.handler.js +0 -431
- package/dist/cli/chat.handler.js.map +0 -1
- package/dist/cli/cli.handler.d.ts +0 -4
- package/dist/cli/cli.handler.js +0 -97
- package/dist/cli/cli.handler.js.map +0 -1
- package/dist/cli/doctor.handler.d.ts +0 -36
- package/dist/cli/doctor.handler.js +0 -382
- package/dist/cli/doctor.handler.js.map +0 -1
- package/dist/cli/execute.handler.d.ts +0 -2
- package/dist/cli/execute.handler.js +0 -319
- package/dist/cli/execute.handler.js.map +0 -1
- package/dist/cli/help.handler.d.ts +0 -2
- package/dist/cli/help.handler.js +0 -10
- package/dist/cli/help.handler.js.map +0 -1
- package/dist/cli/init.handler.d.ts +0 -26
- package/dist/cli/init.handler.js +0 -450
- package/dist/cli/init.handler.js.map +0 -1
- package/dist/cli/mcp.handler.d.ts +0 -3
- package/dist/cli/mcp.handler.js +0 -121
- package/dist/cli/mcp.handler.js.map +0 -1
- package/dist/cli/query.handler.d.ts +0 -2
- package/dist/cli/query.handler.js +0 -380
- package/dist/cli/query.handler.js.map +0 -1
- package/dist/cli/templates.handler.d.ts +0 -2
- package/dist/cli/templates.handler.js +0 -100
- package/dist/cli/templates.handler.js.map +0 -1
- package/dist/cli-options.d.ts +0 -29
- package/dist/cli-options.js +0 -234
- package/dist/cli-options.js.map +0 -1
- package/dist/config/timeout.config.d.ts +0 -14
- package/dist/config/timeout.config.js +0 -34
- package/dist/config/timeout.config.js.map +0 -1
- package/dist/constants.d.ts +0 -4
- package/dist/constants.js +0 -8
- package/dist/constants.js.map +0 -1
- package/dist/conversation/base-conversation-history.provider.d.ts +0 -12
- package/dist/conversation/base-conversation-history.provider.js +0 -45
- package/dist/conversation/base-conversation-history.provider.js.map +0 -1
- package/dist/conversation/cli-conversation-history.provider.d.ts +0 -16
- package/dist/conversation/cli-conversation-history.provider.js +0 -111
- package/dist/conversation/cli-conversation-history.provider.js.map +0 -1
- package/dist/conversation/conversation-config.d.ts +0 -9
- package/dist/conversation/conversation-config.js +0 -25
- package/dist/conversation/conversation-config.js.map +0 -1
- package/dist/conversation/conversation-history.interface.d.ts +0 -25
- package/dist/conversation/conversation-history.interface.js +0 -3
- package/dist/conversation/conversation-history.interface.js.map +0 -1
- package/dist/conversation/conversation-provider.factory.d.ts +0 -10
- package/dist/conversation/conversation-provider.factory.js +0 -50
- package/dist/conversation/conversation-provider.factory.js.map +0 -1
- package/dist/conversation/conversation-storage.service.d.ts +0 -16
- package/dist/conversation/conversation-storage.service.js +0 -220
- package/dist/conversation/conversation-storage.service.js.map +0 -1
- package/dist/conversation/index.d.ts +0 -7
- package/dist/conversation/index.js +0 -24
- package/dist/conversation/index.js.map +0 -1
- package/dist/conversation/slack-conversation-history.provider.d.ts +0 -28
- package/dist/conversation/slack-conversation-history.provider.js +0 -278
- package/dist/conversation/slack-conversation-history.provider.js.map +0 -1
- package/dist/crewx.tool.d.ts +0 -332
- package/dist/crewx.tool.js +0 -1463
- package/dist/crewx.tool.js.map +0 -1
- package/dist/guards/bearer-auth.guard.d.ts +0 -7
- package/dist/guards/bearer-auth.guard.js +0 -44
- package/dist/guards/bearer-auth.guard.js.map +0 -1
- package/dist/health.controller.d.ts +0 -6
- package/dist/health.controller.js +0 -32
- package/dist/health.controller.js.map +0 -1
- package/dist/knowledge/DocumentManager.d.ts +0 -4
- package/dist/knowledge/DocumentManager.js +0 -119
- package/dist/knowledge/DocumentManager.js.map +0 -1
- package/dist/main.d.ts +0 -1
- package/dist/main.js +0 -268
- package/dist/main.js.map +0 -1
- package/dist/mcp.controller.d.ts +0 -8
- package/dist/mcp.controller.js +0 -62
- package/dist/mcp.controller.js.map +0 -1
- package/dist/project.service.d.ts +0 -44
- package/dist/project.service.js +0 -299
- package/dist/project.service.js.map +0 -1
- package/dist/providers/ai-provider.interface.d.ts +0 -50
- package/dist/providers/ai-provider.interface.js +0 -23
- package/dist/providers/ai-provider.interface.js.map +0 -1
- package/dist/providers/base-ai.provider.d.ts +0 -50
- package/dist/providers/base-ai.provider.js +0 -624
- package/dist/providers/base-ai.provider.js.map +0 -1
- package/dist/providers/claude.provider.d.ts +0 -25
- package/dist/providers/claude.provider.js +0 -362
- package/dist/providers/claude.provider.js.map +0 -1
- package/dist/providers/codex.provider.d.ts +0 -17
- package/dist/providers/codex.provider.js +0 -99
- package/dist/providers/codex.provider.js.map +0 -1
- package/dist/providers/copilot.provider.d.ts +0 -25
- package/dist/providers/copilot.provider.js +0 -266
- package/dist/providers/copilot.provider.js.map +0 -1
- package/dist/providers/dynamic-provider.factory.d.ts +0 -55
- package/dist/providers/dynamic-provider.factory.js +0 -587
- package/dist/providers/dynamic-provider.factory.js.map +0 -1
- package/dist/providers/gemini.provider.d.ts +0 -22
- package/dist/providers/gemini.provider.js +0 -147
- package/dist/providers/gemini.provider.js.map +0 -1
- package/dist/services/agent-loader.service.d.ts +0 -29
- package/dist/services/agent-loader.service.js +0 -370
- package/dist/services/agent-loader.service.js.map +0 -1
- package/dist/services/auth.service.d.ts +0 -9
- package/dist/services/auth.service.js +0 -47
- package/dist/services/auth.service.js.map +0 -1
- package/dist/services/config-validator.service.d.ts +0 -28
- package/dist/services/config-validator.service.js +0 -467
- package/dist/services/config-validator.service.js.map +0 -1
- package/dist/services/config.service.d.ts +0 -45
- package/dist/services/config.service.js +0 -180
- package/dist/services/config.service.js.map +0 -1
- package/dist/services/context-enhancement.service.d.ts +0 -13
- package/dist/services/context-enhancement.service.js +0 -169
- package/dist/services/context-enhancement.service.js.map +0 -1
- package/dist/services/document-loader.service.d.ts +0 -16
- package/dist/services/document-loader.service.js +0 -137
- package/dist/services/document-loader.service.js.map +0 -1
- package/dist/services/help.service.d.ts +0 -5
- package/dist/services/help.service.js +0 -117
- package/dist/services/help.service.js.map +0 -1
- package/dist/services/intelligent-compression.service.d.ts +0 -20
- package/dist/services/intelligent-compression.service.js +0 -179
- package/dist/services/intelligent-compression.service.js.map +0 -1
- package/dist/services/mcp-client.service.d.ts +0 -26
- package/dist/services/mcp-client.service.js +0 -81
- package/dist/services/mcp-client.service.js.map +0 -1
- package/dist/services/parallel-processing.service.d.ts +0 -108
- package/dist/services/parallel-processing.service.js +0 -268
- package/dist/services/parallel-processing.service.js.map +0 -1
- package/dist/services/remote-agent.service.d.ts +0 -49
- package/dist/services/remote-agent.service.js +0 -215
- package/dist/services/remote-agent.service.js.map +0 -1
- package/dist/services/result-formatter.service.d.ts +0 -27
- package/dist/services/result-formatter.service.js +0 -126
- package/dist/services/result-formatter.service.js.map +0 -1
- package/dist/services/task-management.service.d.ts +0 -63
- package/dist/services/task-management.service.js +0 -272
- package/dist/services/task-management.service.js.map +0 -1
- package/dist/services/template.service.d.ts +0 -36
- package/dist/services/template.service.js +0 -195
- package/dist/services/template.service.js.map +0 -1
- package/dist/services/tool-call.service.d.ts +0 -53
- package/dist/services/tool-call.service.js +0 -1061
- package/dist/services/tool-call.service.js.map +0 -1
- package/dist/slack/formatters/message.formatter.d.ts +0 -25
- package/dist/slack/formatters/message.formatter.js +0 -246
- package/dist/slack/formatters/message.formatter.js.map +0 -1
- package/dist/slack/slack-bot.d.ts +0 -24
- package/dist/slack/slack-bot.js +0 -467
- package/dist/slack/slack-bot.js.map +0 -1
- package/dist/stderr.logger.d.ts +0 -8
- package/dist/stderr.logger.js +0 -26
- package/dist/stderr.logger.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/utils/config-utils.d.ts +0 -15
- package/dist/utils/config-utils.js +0 -69
- package/dist/utils/config-utils.js.map +0 -1
- package/dist/utils/error-utils.d.ts +0 -3
- package/dist/utils/error-utils.js +0 -27
- package/dist/utils/error-utils.js.map +0 -1
- package/dist/utils/math-utils.d.ts +0 -3
- package/dist/utils/math-utils.js +0 -10
- package/dist/utils/math-utils.js.map +0 -1
- package/dist/utils/mcp-installer.d.ts +0 -20
- package/dist/utils/mcp-installer.js +0 -199
- package/dist/utils/mcp-installer.js.map +0 -1
- package/dist/utils/mention-parser.d.ts +0 -18
- package/dist/utils/mention-parser.js +0 -136
- package/dist/utils/mention-parser.js.map +0 -1
- package/dist/utils/simple-security.d.ts +0 -3
- package/dist/utils/simple-security.js +0 -20
- package/dist/utils/simple-security.js.map +0 -1
- package/dist/utils/stdin-utils.d.ts +0 -27
- package/dist/utils/stdin-utils.js +0 -130
- package/dist/utils/stdin-utils.js.map +0 -1
- package/dist/utils/string-utils.d.ts +0 -1
- package/dist/utils/string-utils.js +0 -10
- package/dist/utils/string-utils.js.map +0 -1
- package/dist/utils/template-processor.d.ts +0 -32
- package/dist/utils/template-processor.js +0 -202
- package/dist/utils/template-processor.js.map +0 -1
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -17
- package/dist/version.js.map +0 -1
- package/docs/CLA.md +0 -88
- package/docs/agent-configuration.md +0 -364
- package/docs/agent-registry-strategy.md +0 -348
- package/docs/branding-decision-crewx.md +0 -395
- package/docs/claude-code-docker-guide.md +0 -264
- package/docs/cli-guide.md +0 -439
- package/docs/development.md +0 -595
- package/docs/diagram1.svg +0 -1
- package/docs/guides/agent-best-practices.md +0 -97
- package/docs/guides/bug-management.md +0 -600
- package/docs/guides/git-bug-reference.md +0 -366
- package/docs/mcp-integration.md +0 -187
- package/docs/process/development-workflow.md +0 -84
- package/docs/remote-agents.md +0 -555
- package/docs/roadmap.md +0 -528
- package/docs/rules/branch-protection.md +0 -40
- package/docs/standards/rc-versioning.md +0 -60
- package/docs/standards/report-structure.md +0 -67
- package/docs/template-variables.md +0 -382
- package/docs/templates.md +0 -517
- package/docs/tools.md +0 -583
- package/docs/troubleshooting.md +0 -611
- package/templates/agents/default.yaml +0 -938
- package/templates/agents/minimal.yaml +0 -25
- package/templates/documents/crewcode-manual.md +0 -292
- package/templates/versions.json +0 -19
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
# Git-Bug Command Reference for CrewX
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
git-bug is our primary bug tracking system.
|
|
5
|
-
|
|
6
|
-
## Core Commands
|
|
7
|
-
|
|
8
|
-
### Listing Bugs
|
|
9
|
-
```bash
|
|
10
|
-
# List all bugs
|
|
11
|
-
git bug bug
|
|
12
|
-
|
|
13
|
-
# List open bugs only
|
|
14
|
-
git bug bug --status open
|
|
15
|
-
|
|
16
|
-
# List closed bugs only
|
|
17
|
-
git bug bug --status closed
|
|
18
|
-
|
|
19
|
-
# Filter by label (RECOMMENDED for finding specific bugs)
|
|
20
|
-
git bug bug -l status:resolved # Find resolved bugs
|
|
21
|
-
git bug bug -l priority:높음 # Find high priority bugs
|
|
22
|
-
git bug bug -l version:0.1.17 # Find bugs for specific version
|
|
23
|
-
|
|
24
|
-
# Search bugs by text
|
|
25
|
-
git bug bug "keyword"
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
### Viewing Bug Details
|
|
29
|
-
```bash
|
|
30
|
-
# Show full bug details
|
|
31
|
-
git bug bug show BUG_HASH
|
|
32
|
-
|
|
33
|
-
# Show bug title
|
|
34
|
-
git bug bug title BUG_HASH
|
|
35
|
-
|
|
36
|
-
# Show bug comments
|
|
37
|
-
git bug bug comment BUG_HASH
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### Creating Bugs
|
|
41
|
-
```bash
|
|
42
|
-
# Create new bug (interactive)
|
|
43
|
-
git bug bug new
|
|
44
|
-
|
|
45
|
-
# Create bug with title and message (non-interactive)
|
|
46
|
-
git bug bug new --title "Bug title" --message "Description"
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### Updating Bug Status
|
|
50
|
-
```bash
|
|
51
|
-
# Close a bug
|
|
52
|
-
git bug bug status close BUG_HASH
|
|
53
|
-
|
|
54
|
-
# Reopen a bug
|
|
55
|
-
git bug bug status open BUG_HASH
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
### Managing Labels
|
|
59
|
-
```bash
|
|
60
|
-
# Add labels to bug
|
|
61
|
-
git bug bug label new BUG_HASH label1 label2
|
|
62
|
-
|
|
63
|
-
# Remove labels
|
|
64
|
-
git bug bug label rm BUG_HASH label1
|
|
65
|
-
|
|
66
|
-
# View bug labels
|
|
67
|
-
git bug bug label BUG_HASH
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### Adding Comments
|
|
71
|
-
```bash
|
|
72
|
-
# Add comment to bug
|
|
73
|
-
git bug bug comment new BUG_HASH --message "Comment text"
|
|
74
|
-
|
|
75
|
-
# Edit existing comment
|
|
76
|
-
git bug bug comment edit COMMENT_ID --message "Updated text"
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
## CrewX Bug Workflow
|
|
80
|
-
|
|
81
|
-
### Standard Labels
|
|
82
|
-
- **status:** created, analyzed, in-progress, resolved, rejected, closed
|
|
83
|
-
- **priority:** 높음 (high), 중간 (medium), 낮음 (low)
|
|
84
|
-
- **version:** 0.1.x (version where bug found/fixed)
|
|
85
|
-
- **target_release:** 0.1.x (planned release version for this bug)
|
|
86
|
-
|
|
87
|
-
### How to Determine Correct Version
|
|
88
|
-
|
|
89
|
-
**ALWAYS check npm registry before setting version labels:**
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
# Check current production version
|
|
93
|
-
npm view crewx version
|
|
94
|
-
# Output example: 0.1.0
|
|
95
|
-
|
|
96
|
-
# Use the major.minor version for labels
|
|
97
|
-
# If production is 0.1.0 → use 0.1.x for version/target_release
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
**Version Label Rules:**
|
|
101
|
-
- `version:X.Y.x` - Version where bug was found/fixed
|
|
102
|
-
- `target_release:X.Y.x` - Planned release for this bug
|
|
103
|
-
- Always use current major.minor (e.g., 0.1.x, not 0.3.x)
|
|
104
|
-
- Update labels if version changes between bug creation and release
|
|
105
|
-
|
|
106
|
-
**Example:**
|
|
107
|
-
```bash
|
|
108
|
-
# Step 1: Check production version
|
|
109
|
-
npm view crewx version # → 0.1.0
|
|
110
|
-
|
|
111
|
-
# Step 2: Register bug with correct version
|
|
112
|
-
git bug bug new --title "Bug title" --message "Description"
|
|
113
|
-
BUG_HASH=$(git bug bug | head -1 | awk '{print $1}')
|
|
114
|
-
git bug bug label new $BUG_HASH status:created priority:중간 version:0.1.x target_release:0.1.x
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
### Bug States
|
|
118
|
-
1. **created** → Bug reported, not analyzed
|
|
119
|
-
2. **analyzed** → Root cause identified
|
|
120
|
-
3. **in-progress** → Developer working on fix
|
|
121
|
-
4. **resolved** → Fix implemented, ready for testing
|
|
122
|
-
5. **closed** → Verified working, released
|
|
123
|
-
6. **rejected** → Won't fix (duplicate, invalid, etc.)
|
|
124
|
-
|
|
125
|
-
## Common Workflows
|
|
126
|
-
|
|
127
|
-
### Find bugs by status
|
|
128
|
-
```bash
|
|
129
|
-
# Find all resolved bugs (ready for RC)
|
|
130
|
-
git bug bug | grep 'status:resolved'
|
|
131
|
-
|
|
132
|
-
# Find bugs in specific version
|
|
133
|
-
git bug bug | grep 'version:0.1.13'
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### Get bug details for testing
|
|
137
|
-
```bash
|
|
138
|
-
# Show bug details by hash
|
|
139
|
-
git bug bug show aae5d66
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### Update bug status after fix
|
|
143
|
-
```bash
|
|
144
|
-
# Add in-progress label
|
|
145
|
-
git bug bug label new $HASH status:in-progress
|
|
146
|
-
|
|
147
|
-
# Remove created label
|
|
148
|
-
git bug bug label rm $HASH status:created
|
|
149
|
-
|
|
150
|
-
# Add comment with resolution
|
|
151
|
-
git bug bug comment new $HASH --message "Fixed in commit abc123"
|
|
152
|
-
|
|
153
|
-
# Mark as resolved
|
|
154
|
-
git bug bug label rm $HASH status:in-progress
|
|
155
|
-
git bug bug label new $HASH status:resolved
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
## Agent Usage Tips
|
|
159
|
-
|
|
160
|
-
### For Developers (@crewx_dev)
|
|
161
|
-
- Use `git bug bug --status open` to find bugs to fix
|
|
162
|
-
- Update status: created → in-progress → resolved
|
|
163
|
-
- Add comments with fix details
|
|
164
|
-
- Never set status:closed (only users can close)
|
|
165
|
-
|
|
166
|
-
### For QA (@crewx_qa_lead, @crewx_tester)
|
|
167
|
-
- List resolved bugs: `git bug bug -l status:resolved`
|
|
168
|
-
- Get bug details for test planning: `git bug bug show HASH`
|
|
169
|
-
- Verify labels match expected version
|
|
170
|
-
|
|
171
|
-
### For Release Manager (@crewx_release_manager)
|
|
172
|
-
- Find bugs for RC: `git bug bug -l status:resolved`
|
|
173
|
-
- Parse bug hashes for merging
|
|
174
|
-
- Verify bug fixes in RC branch before release
|
|
175
|
-
|
|
176
|
-
## Output Format
|
|
177
|
-
|
|
178
|
-
### Default Format (git bug bug)
|
|
179
|
-
```
|
|
180
|
-
HASH STATUS TITLE
|
|
181
|
-
b31d1c9 open Fix default agent config loading
|
|
182
|
-
6cfd309 closed Update crewx.yaml filename handling
|
|
183
|
-
...
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
- First column: git-bug hash (7 chars)
|
|
187
|
-
- Second column: **Bug state** (open/closed) - NOT label status!
|
|
188
|
-
- Third column: Bug title
|
|
189
|
-
|
|
190
|
-
**🚨 CRITICAL: Labels are NOT shown in default output!**
|
|
191
|
-
|
|
192
|
-
The second column shows bug **state** (open/closed), not label **status** (created/resolved/etc).
|
|
193
|
-
|
|
194
|
-
### When Using -l Flag (Filter by Label)
|
|
195
|
-
```bash
|
|
196
|
-
git bug bug -l status:resolved
|
|
197
|
-
```
|
|
198
|
-
**Output:**
|
|
199
|
-
```
|
|
200
|
-
aae5d66 open Change license from MIT to AGPL-3.0
|
|
201
|
-
d5670a2 open agents.yaml 기본 파일명을 crewx.yaml로 변경
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
**⚠️ Confusing but correct:**
|
|
205
|
-
- Second column says "open" (bug state)
|
|
206
|
-
- But these bugs have `status:resolved` label (that's why -l found them!)
|
|
207
|
-
- Labels are NOT displayed in default format
|
|
208
|
-
|
|
209
|
-
**How to verify labels:**
|
|
210
|
-
```bash
|
|
211
|
-
# Method 1: Use show command
|
|
212
|
-
git bug bug show aae5d66
|
|
213
|
-
|
|
214
|
-
# Method 2: Use json format
|
|
215
|
-
git bug bug -l status:resolved -f json | grep labels
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
## Common Mistakes and Solutions
|
|
219
|
-
|
|
220
|
-
### Wrong Hash Format
|
|
221
|
-
❌ **Wrong:** Using bug-ID prefix with hash
|
|
222
|
-
```bash
|
|
223
|
-
git bug bug show bug-aae5d66 # ERROR: Invalid hash
|
|
224
|
-
git bug bug label new bug-aae5d66 status:resolved # ERROR
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
✅ **Correct:** Use only the 7-character hash
|
|
228
|
-
```bash
|
|
229
|
-
git bug bug show aae5d66 # Correct
|
|
230
|
-
git bug bug label new aae5d66 status:resolved # Correct
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
**Why?** git-bug uses its own hash system (e.g., `aae5d66`). Never add `bug-` prefix to the hash.
|
|
234
|
-
|
|
235
|
-
### Finding Resolved Bugs
|
|
236
|
-
❌ **Wrong:** Using grep on bug list doesn't show labels
|
|
237
|
-
```bash
|
|
238
|
-
git bug bug | grep 'status:resolved' # Won't work - labels not shown in list
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
✅ **Correct:** Use `-l` flag to filter by label (RECOMMENDED)
|
|
242
|
-
```bash
|
|
243
|
-
git bug bug -l status:resolved # Fast and accurate!
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
✅ **Alternative:** Use `git bug bug show` to check individual bugs
|
|
247
|
-
```bash
|
|
248
|
-
# Get bug hash from list, then show details
|
|
249
|
-
git bug bug show aae5d66
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
### Bug List Command
|
|
253
|
-
❌ **Wrong:** Using non-existent `ls` subcommand
|
|
254
|
-
```bash
|
|
255
|
-
git bug bug ls # ERROR: Unknown command 'ls'
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
✅ **Correct:** Use `git bug bug` without subcommand
|
|
259
|
-
```bash
|
|
260
|
-
git bug bug # Lists all bugs
|
|
261
|
-
git bug bug --status open # Lists open bugs
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
### Confusing: "open" State vs "resolved" Label
|
|
265
|
-
❌ **Wrong interpretation:** "Output says 'open', so it's not resolved"
|
|
266
|
-
```bash
|
|
267
|
-
git bug bug -l status:resolved
|
|
268
|
-
# Output:
|
|
269
|
-
# aae5d66 open Bug title...
|
|
270
|
-
#
|
|
271
|
-
# Conclusion: "It says open, so no resolved bugs" ❌ WRONG!
|
|
272
|
-
```
|
|
273
|
-
|
|
274
|
-
✅ **Correct interpretation:** "-l filtered by label, output shows state"
|
|
275
|
-
```bash
|
|
276
|
-
git bug bug -l status:resolved
|
|
277
|
-
# Output shows bugs WITH status:resolved label
|
|
278
|
-
# Second column "open" = bug STATE (not closed to develop yet)
|
|
279
|
-
# These bugs ARE resolved and ready for RC testing!
|
|
280
|
-
```
|
|
281
|
-
|
|
282
|
-
**Key Understanding:**
|
|
283
|
-
- **Bug State** (open/closed): Managed by Release Manager after merge to develop
|
|
284
|
-
- **Bug Label** (status:resolved): Managed by Developer after fixing
|
|
285
|
-
- `-l status:resolved` finds bugs with the **label**, regardless of **state**
|
|
286
|
-
- "open" state + "status:resolved" label = **Ready for RC testing**
|
|
287
|
-
|
|
288
|
-
## Efficient Bug Query Methods
|
|
289
|
-
|
|
290
|
-
### Finding Bugs by Label (RECOMMENDED)
|
|
291
|
-
Use the `-l` flag for fast and accurate label-based searches:
|
|
292
|
-
|
|
293
|
-
```bash
|
|
294
|
-
# Find all resolved bugs (ready for RC)
|
|
295
|
-
git bug bug -l status:resolved
|
|
296
|
-
|
|
297
|
-
# Find high priority bugs
|
|
298
|
-
git bug bug -l priority:높음
|
|
299
|
-
|
|
300
|
-
# Find bugs for specific version
|
|
301
|
-
git bug bug -l version:0.1.17
|
|
302
|
-
|
|
303
|
-
# Combine with status filter
|
|
304
|
-
git bug bug --status open -l priority:높음
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
**Why use `-l` instead of grep?**
|
|
308
|
-
- ✅ Faster: Direct label query
|
|
309
|
-
- ✅ Accurate: No false positives
|
|
310
|
-
- ✅ Clean: Only bugs with exact label match
|
|
311
|
-
|
|
312
|
-
### Finding a Specific Bug by Hash
|
|
313
|
-
```bash
|
|
314
|
-
# Quick search by hash in bug list
|
|
315
|
-
git bug bug | grep 'aae5d66'
|
|
316
|
-
|
|
317
|
-
# Get full details
|
|
318
|
-
git bug bug show aae5d66
|
|
319
|
-
```
|
|
320
|
-
|
|
321
|
-
### Checking Multiple Bugs
|
|
322
|
-
When you need to check status of multiple bugs, run individual show commands:
|
|
323
|
-
|
|
324
|
-
```bash
|
|
325
|
-
# Check bug aae5d66
|
|
326
|
-
git bug bug show aae5d66
|
|
327
|
-
|
|
328
|
-
# Check bug b31d1c9
|
|
329
|
-
git bug bug show b31d1c9
|
|
330
|
-
|
|
331
|
-
# Check bug 6cfd309
|
|
332
|
-
git bug bug show 6cfd309
|
|
333
|
-
```
|
|
334
|
-
|
|
335
|
-
**Why individual commands?**
|
|
336
|
-
- `git bug bug` list output doesn't include labels (status, priority, version)
|
|
337
|
-
- Labels are only visible in `git bug bug show HASH` output
|
|
338
|
-
- grep on list output can't find status:resolved or other labels
|
|
339
|
-
|
|
340
|
-
### Finding Bugs for RC Release
|
|
341
|
-
```bash
|
|
342
|
-
# RECOMMENDED: Use -l flag to find bugs by target_release
|
|
343
|
-
git bug bug -l target_release:0.1.17
|
|
344
|
-
|
|
345
|
-
# Find resolved bugs for specific release
|
|
346
|
-
git bug bug -l status:resolved -l target_release:0.1.17
|
|
347
|
-
|
|
348
|
-
# Find all resolved bugs (any release)
|
|
349
|
-
git bug bug -l status:resolved
|
|
350
|
-
|
|
351
|
-
# Alternative: Manual checking (slower)
|
|
352
|
-
# Step 1: List all open bugs
|
|
353
|
-
git bug bug --status open
|
|
354
|
-
|
|
355
|
-
# Step 2: Check each bug individually for status:resolved label
|
|
356
|
-
git bug bug show HASH1
|
|
357
|
-
git bug bug show HASH2
|
|
358
|
-
# ... repeat for each bug
|
|
359
|
-
|
|
360
|
-
# Step 3: Collect hashes with status:resolved for merging
|
|
361
|
-
```
|
|
362
|
-
|
|
363
|
-
## Important Notes
|
|
364
|
-
- **Hash is primary identifier** in git-bug (7-character format like `aae5d66`)
|
|
365
|
-
- Status in git-bug: only "open" or "closed" (labels track detailed states)
|
|
366
|
-
- **Labels are not visible in list output** - use `show` command or `-l` flag to filter by labels
|
package/docs/mcp-integration.md
DELETED
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
# MCP Integration Guide
|
|
2
|
-
|
|
3
|
-
CrewX can be used as an MCP (Model Context Protocol) server for IDE integration and AI CLI tools.
|
|
4
|
-
|
|
5
|
-
## MCP Server Mode
|
|
6
|
-
|
|
7
|
-
Start the MCP server:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
crewx mcp
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
This enables CrewX to be used by MCP-compatible clients like VS Code, Claude Desktop, and Cursor.
|
|
14
|
-
|
|
15
|
-
## MCP Integration Status
|
|
16
|
-
|
|
17
|
-
CrewX works as an MCP server with various AI tools:
|
|
18
|
-
|
|
19
|
-
| AI Tool | MCP Support | Status | Notes |
|
|
20
|
-
|---------|-------------|--------|-------|
|
|
21
|
-
| **Claude CLI** | ✅ Full Support | Working | User-level registration via `claude mcp add` |
|
|
22
|
-
| **Gemini CLI** | ✅ Full Support | Working | Requires `prompts/list` handler (implemented) |
|
|
23
|
-
| **Copilot CLI** | ❌ Limited | Not Working | MCP unstable in CLI mode, works in VS Code only |
|
|
24
|
-
|
|
25
|
-
## IDE Integration
|
|
26
|
-
|
|
27
|
-
### VS Code MCP Extension
|
|
28
|
-
|
|
29
|
-
Create `.vscode/mcp.json` in your project:
|
|
30
|
-
|
|
31
|
-
**Windows (recommended):**
|
|
32
|
-
```json
|
|
33
|
-
{
|
|
34
|
-
"servers": {
|
|
35
|
-
"crewx": {
|
|
36
|
-
"command": "cmd.exe",
|
|
37
|
-
"args": ["/c", "crewx", "mcp"],
|
|
38
|
-
"env": {
|
|
39
|
-
"CREWX_CONFIG": "${workspaceFolder}/crewx.yaml"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
**macOS/Linux:**
|
|
47
|
-
```json
|
|
48
|
-
{
|
|
49
|
-
"servers": {
|
|
50
|
-
"crewx": {
|
|
51
|
-
"command": "npx",
|
|
52
|
-
"args": ["-y", "crewx", "mcp"],
|
|
53
|
-
"env": {
|
|
54
|
-
"CREWX_CONFIG": "${workspaceFolder}/crewx.yaml"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
> **Note:** While `agents.yaml` is still supported, `crewx.yaml` is the preferred configuration filename.
|
|
62
|
-
|
|
63
|
-
> **Windows Note:** Use `cmd.exe` due to PowerShell execution policy restrictions.
|
|
64
|
-
|
|
65
|
-
### Claude Desktop
|
|
66
|
-
|
|
67
|
-
Add to `claude_desktop_config.json`:
|
|
68
|
-
|
|
69
|
-
```json
|
|
70
|
-
{
|
|
71
|
-
"mcpServers": {
|
|
72
|
-
"crewx": {
|
|
73
|
-
"command": "npx",
|
|
74
|
-
"args": ["-y", "crewx", "mcp"],
|
|
75
|
-
"env": {
|
|
76
|
-
"CREWX_CONFIG": "/path/to/your/crewx.yaml"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
**Location:**
|
|
84
|
-
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
85
|
-
- **Windows**: `%APPDATA%/Claude/claude_desktop_config.json`
|
|
86
|
-
|
|
87
|
-
### Cursor IDE
|
|
88
|
-
|
|
89
|
-
Create `.cursor/mcp.json` in your project root:
|
|
90
|
-
|
|
91
|
-
```json
|
|
92
|
-
{
|
|
93
|
-
"mcpServers": {
|
|
94
|
-
"crewx": {
|
|
95
|
-
"command": "npx",
|
|
96
|
-
"args": ["-y", "crewx", "mcp"],
|
|
97
|
-
"env": {
|
|
98
|
-
"CREWX_CONFIG": "${workspaceFolder}/crewx.yaml"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
**Note:** Restart Cursor and enable the MCP server in Settings > Cursor Settings > MCP Servers.
|
|
106
|
-
|
|
107
|
-
### Other MCP Clients
|
|
108
|
-
|
|
109
|
-
- **Cline**: Supports MCP through VS Code MCP extension
|
|
110
|
-
- **Continue**: Supports MCP through VS Code MCP extension
|
|
111
|
-
- **Windsurf**: MCP support may vary - check their documentation
|
|
112
|
-
|
|
113
|
-
## Available MCP Tools
|
|
114
|
-
|
|
115
|
-
When using CrewX as an MCP server, these tools are available:
|
|
116
|
-
|
|
117
|
-
### Agent Management
|
|
118
|
-
1. **`crewx_listAgents`** - List all available specialist agents
|
|
119
|
-
2. **`crewx_queryAgent`** - Query an agent (read-only analysis)
|
|
120
|
-
3. **`crewx_executeAgent`** - Execute tasks through an agent (file operations)
|
|
121
|
-
4. **`crewx_queryAgentParallel`** - Query multiple agents in parallel
|
|
122
|
-
5. **`crewx_executeAgentParallel`** - Execute multiple tasks in parallel
|
|
123
|
-
|
|
124
|
-
### Task Monitoring
|
|
125
|
-
6. **`crewx_getTaskLogs`** - Retrieve task execution logs by task ID
|
|
126
|
-
|
|
127
|
-
### System Diagnostics
|
|
128
|
-
7. **`crewx_checkAIProviders`** - Check AI CLI tool availability
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
## Configuration
|
|
132
|
-
|
|
133
|
-
### Environment Variables
|
|
134
|
-
|
|
135
|
-
Set `CREWX_CONFIG` to specify your configuration file location:
|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
# In MCP client configuration
|
|
139
|
-
"env": {
|
|
140
|
-
"CREWX_CONFIG": "/path/to/crewx.yaml"
|
|
141
|
-
}
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
> **Note:** Both `crewx.yaml` (preferred) and `agents.yaml` (legacy) are supported.
|
|
145
|
-
|
|
146
|
-
### Agent Configuration
|
|
147
|
-
|
|
148
|
-
Create `crewx.yaml` (see [Agent Configuration Guide](agent-configuration.md)):
|
|
149
|
-
|
|
150
|
-
```yaml
|
|
151
|
-
agents:
|
|
152
|
-
- id: "my_agent"
|
|
153
|
-
name: "My Custom Agent"
|
|
154
|
-
provider: "claude"
|
|
155
|
-
working_directory: "./src"
|
|
156
|
-
inline:
|
|
157
|
-
type: "agent"
|
|
158
|
-
system_prompt: |
|
|
159
|
-
You are a helpful coding assistant.
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
## Setup Checklist
|
|
163
|
-
|
|
164
|
-
1. **Create `crewx.yaml`** in your project (or use legacy `agents.yaml`)
|
|
165
|
-
2. **Configure MCP client** (VS Code, Claude Desktop, etc.)
|
|
166
|
-
3. **Restart MCP client** to load the server
|
|
167
|
-
4. **Verify connection** by listing agents
|
|
168
|
-
5. **Test with a simple query**
|
|
169
|
-
|
|
170
|
-
## Troubleshooting
|
|
171
|
-
|
|
172
|
-
### Server Won't Start
|
|
173
|
-
- Ensure `crewx.yaml` (or `agents.yaml`) exists at the specified path
|
|
174
|
-
- Check that CrewX is installed (`npm install -g crewx`)
|
|
175
|
-
- Verify MCP client configuration syntax
|
|
176
|
-
|
|
177
|
-
### Tools Not Appearing
|
|
178
|
-
- Restart your MCP client after configuration changes
|
|
179
|
-
- Check MCP client logs for connection errors
|
|
180
|
-
- Verify `CREWX_CONFIG` environment variable is set correctly
|
|
181
|
-
|
|
182
|
-
### Agent Execution Fails
|
|
183
|
-
- Run `crewx doctor` to check AI CLI availability
|
|
184
|
-
- Verify agent configuration in `crewx.yaml`
|
|
185
|
-
- Check task logs with `crewx_getTaskLogs`
|
|
186
|
-
|
|
187
|
-
See [Troubleshooting Guide](troubleshooting.md) for more solutions.
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# Development Workflow Overview
|
|
2
|
-
|
|
3
|
-
## Bug Status Flow
|
|
4
|
-
```
|
|
5
|
-
created → analyzed → in-progress → resolved → closed
|
|
6
|
-
↘ rejected
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
**Important:** Agents should NEVER set status to `closed` - only users can close bugs after verification.
|
|
10
|
-
|
|
11
|
-
## RC Versioning Convention
|
|
12
|
-
|
|
13
|
-
**ALWAYS start from rc.0**
|
|
14
|
-
|
|
15
|
-
- First RC: `0.3.14-rc.0` ✅
|
|
16
|
-
- After failure: `0.3.14-rc.1`, `rc.2`, ...
|
|
17
|
-
- Never start with rc.1 ❌
|
|
18
|
-
|
|
19
|
-
## RC Release Process
|
|
20
|
-
|
|
21
|
-
1. **Merge**: All `resolved` bugs → `release/X.X.X-rc.0` branch
|
|
22
|
-
2. **Test**: QA team runs integration tests
|
|
23
|
-
3. **Decision**:
|
|
24
|
-
- ✅ **PASS**: Merge to `develop` → npm publish
|
|
25
|
-
- ❌ **FAIL**: Exclude failed bugs → `rc.1`, `rc.2`, ... (retry)
|
|
26
|
-
|
|
27
|
-
## Branch Strategy
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
Individual bugs: bugfix/bug-XXXXX
|
|
31
|
-
Integration testing: release/X.X.X-rc.N
|
|
32
|
-
Stable development: develop
|
|
33
|
-
Production: main
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
**Workflow:**
|
|
37
|
-
```
|
|
38
|
-
bugfix/bug-XXXXX → release/X.X.X-rc.N → develop → main
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## Checking Current Release Status
|
|
42
|
-
|
|
43
|
-
Before planning a new RC, always check the current production status:
|
|
44
|
-
|
|
45
|
-
### 1. Check NPM Registry (Production Version)
|
|
46
|
-
```bash
|
|
47
|
-
npm view crewx version
|
|
48
|
-
# Output: 0.3.16 → Latest published version
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### 2. Check Git Tags (Release History)
|
|
52
|
-
```bash
|
|
53
|
-
git tag | grep "^v0\.3" | sort -V | tail -5
|
|
54
|
-
# Shows recent release tags like v0.3.16, v0.3.15, etc.
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### 3. Check Release Branches (In-Progress RCs)
|
|
58
|
-
```bash
|
|
59
|
-
git branch -r | grep "release/"
|
|
60
|
-
# Shows active RC branches like origin/release/0.3.17-rc.0
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Decision Logic
|
|
64
|
-
```
|
|
65
|
-
NPM version: 0.3.16
|
|
66
|
-
Latest tag: v0.3.16
|
|
67
|
-
Latest RC reports: 0.3.16-rc.2 (PASS)
|
|
68
|
-
Resolved bugs: 3개
|
|
69
|
-
|
|
70
|
-
→ Conclusion: 0.3.16 already released
|
|
71
|
-
→ Next RC: 0.3.17-rc.0 (with 3 resolved bugs)
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
**Key Principle:** Git tags and NPM registry are the single source of truth for release status, not test reports.
|
|
75
|
-
|
|
76
|
-
## Release Plan Structure
|
|
77
|
-
|
|
78
|
-
Each release should have a plan document defining:
|
|
79
|
-
- Target version
|
|
80
|
-
- Included bugs (with `target_release` field)
|
|
81
|
-
- Test report location
|
|
82
|
-
- Expected timeline
|
|
83
|
-
|
|
84
|
-
See: Release Plan Template in agents.yaml documents section
|