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
package/docs/troubleshooting.md
DELETED
|
@@ -1,611 +0,0 @@
|
|
|
1
|
-
# Troubleshooting Guide
|
|
2
|
-
|
|
3
|
-
Common issues and solutions for CrewX.
|
|
4
|
-
|
|
5
|
-
## Installation Issues
|
|
6
|
-
|
|
7
|
-
### Command Not Found
|
|
8
|
-
|
|
9
|
-
**Problem:** `crewx: command not found`
|
|
10
|
-
|
|
11
|
-
**Solution:**
|
|
12
|
-
```bash
|
|
13
|
-
# Install globally
|
|
14
|
-
npm install -g crewx
|
|
15
|
-
|
|
16
|
-
# Verify installation
|
|
17
|
-
crewx --version
|
|
18
|
-
|
|
19
|
-
# Check PATH
|
|
20
|
-
echo $PATH | grep npm
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
### Permission Errors (macOS/Linux)
|
|
24
|
-
|
|
25
|
-
**Problem:** Permission denied during installation
|
|
26
|
-
|
|
27
|
-
**Solution:**
|
|
28
|
-
```bash
|
|
29
|
-
# Use sudo (not recommended)
|
|
30
|
-
sudo npm install -g crewx
|
|
31
|
-
|
|
32
|
-
# Better: Fix npm permissions
|
|
33
|
-
mkdir ~/.npm-global
|
|
34
|
-
npm config set prefix '~/.npm-global'
|
|
35
|
-
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
|
|
36
|
-
source ~/.bashrc
|
|
37
|
-
|
|
38
|
-
# Then install
|
|
39
|
-
npm install -g crewx
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## Windows-Specific Issues
|
|
43
|
-
|
|
44
|
-
### PowerShell Execution Policy
|
|
45
|
-
|
|
46
|
-
**Problem:** `'crewx' is not recognized as an internal or external command`
|
|
47
|
-
|
|
48
|
-
**Cause:** PowerShell execution policy restrictions prevent `npx` scripts.
|
|
49
|
-
|
|
50
|
-
**Solution 1 (Recommended): Use cmd.exe**
|
|
51
|
-
|
|
52
|
-
Update MCP configuration:
|
|
53
|
-
```json
|
|
54
|
-
{
|
|
55
|
-
"servers": {
|
|
56
|
-
"crewx": {
|
|
57
|
-
"command": "cmd.exe",
|
|
58
|
-
"args": ["/c", "crewx", "mcp"],
|
|
59
|
-
"env": {
|
|
60
|
-
"CREWX_CONFIG": "${workspaceFolder}/crewx.yaml"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
**Solution 2: Change execution policy (requires admin)**
|
|
68
|
-
```powershell
|
|
69
|
-
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
**Solution 3: Direct node execution**
|
|
73
|
-
```bash
|
|
74
|
-
# Install globally
|
|
75
|
-
npm install -g crewx
|
|
76
|
-
|
|
77
|
-
# Find installation path
|
|
78
|
-
npm root -g
|
|
79
|
-
|
|
80
|
-
# Update MCP config
|
|
81
|
-
{
|
|
82
|
-
"servers": {
|
|
83
|
-
"crewx": {
|
|
84
|
-
"command": "node",
|
|
85
|
-
"args": ["C:\\Users\\YourName\\AppData\\Roaming\\npm\\node_modules\\crewx\\dist\\main.js", "mcp"]
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
## Configuration Issues
|
|
92
|
-
|
|
93
|
-
### Configuration File Not Found
|
|
94
|
-
|
|
95
|
-
**Problem:** `Error: crewx.yaml not found` (or `agents.yaml not found`)
|
|
96
|
-
|
|
97
|
-
**Solution:**
|
|
98
|
-
```bash
|
|
99
|
-
# Create crewx.yaml (preferred)
|
|
100
|
-
crewx init
|
|
101
|
-
|
|
102
|
-
# Verify file exists
|
|
103
|
-
ls crewx.yaml
|
|
104
|
-
|
|
105
|
-
# Check MCP config points to correct path
|
|
106
|
-
cat .vscode/mcp.json # or Claude Desktop config
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
> **Note:** Both `crewx.yaml` (preferred) and `agents.yaml` (legacy) are supported.
|
|
110
|
-
|
|
111
|
-
### Invalid YAML Syntax
|
|
112
|
-
|
|
113
|
-
**Problem:** `Error: Invalid YAML syntax`
|
|
114
|
-
|
|
115
|
-
**Solution:**
|
|
116
|
-
```bash
|
|
117
|
-
# Run doctor to validate
|
|
118
|
-
crewx doctor
|
|
119
|
-
|
|
120
|
-
# Common YAML errors:
|
|
121
|
-
# - Incorrect indentation (use spaces, not tabs)
|
|
122
|
-
# - Missing quotes around special characters
|
|
123
|
-
# - Missing colons or dashes
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
**Valid YAML:**
|
|
127
|
-
```yaml
|
|
128
|
-
agents:
|
|
129
|
-
- id: "my_agent" # ✓ Correct indentation
|
|
130
|
-
name: "My Agent" # ✓ Quotes around strings
|
|
131
|
-
provider: "cli/claude" # ✓ Proper namespace format
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
**Invalid YAML:**
|
|
135
|
-
```yaml
|
|
136
|
-
agents:
|
|
137
|
-
- id: my_agent # ✗ No quotes (may break with special chars)
|
|
138
|
-
name: My Agent # ✗ No quotes
|
|
139
|
-
provider: claude # ✗ Wrong indentation, old format
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
## MCP Integration Issues
|
|
143
|
-
|
|
144
|
-
### MCP Server Won't Start
|
|
145
|
-
|
|
146
|
-
**Problem:** MCP server fails to start in VS Code/Claude Desktop
|
|
147
|
-
|
|
148
|
-
**Checklist:**
|
|
149
|
-
1. Verify `crewx.yaml` (or `agents.yaml`) exists at specified path
|
|
150
|
-
2. Check CrewX is installed: `crewx --version`
|
|
151
|
-
3. Validate MCP config syntax (valid JSON)
|
|
152
|
-
4. Check environment variable `CREWX_CONFIG` is set
|
|
153
|
-
5. Restart MCP client after config changes
|
|
154
|
-
|
|
155
|
-
**Debugging:**
|
|
156
|
-
```bash
|
|
157
|
-
# Test MCP server manually
|
|
158
|
-
crewx mcp
|
|
159
|
-
|
|
160
|
-
# Check for error messages
|
|
161
|
-
# Verify config file path is correct
|
|
162
|
-
cat $CREWX_CONFIG
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
### MCP Tools Not Appearing
|
|
166
|
-
|
|
167
|
-
**Problem:** CrewX tools don't show up in MCP client
|
|
168
|
-
|
|
169
|
-
**Solution:**
|
|
170
|
-
1. Restart MCP client (VS Code, Claude Desktop, etc.)
|
|
171
|
-
2. Check MCP client logs for connection errors
|
|
172
|
-
3. Verify `CREWX_CONFIG` environment variable
|
|
173
|
-
4. Test server manually: `crewx mcp`
|
|
174
|
-
|
|
175
|
-
**VS Code specific:**
|
|
176
|
-
```bash
|
|
177
|
-
# Check VS Code MCP logs
|
|
178
|
-
# View > Output > Select "MCP" from dropdown
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
## AI Provider Issues
|
|
182
|
-
|
|
183
|
-
### Provider Not Available
|
|
184
|
-
|
|
185
|
-
**Problem:** `Error: AI provider not available`
|
|
186
|
-
|
|
187
|
-
**Solution:**
|
|
188
|
-
```bash
|
|
189
|
-
# Check provider status
|
|
190
|
-
crewx doctor
|
|
191
|
-
|
|
192
|
-
# Verify CLI tools are installed
|
|
193
|
-
claude --version
|
|
194
|
-
gemini --version
|
|
195
|
-
gh copilot --version
|
|
196
|
-
|
|
197
|
-
# Install missing tools
|
|
198
|
-
npm install -g @anthropic/claude-code
|
|
199
|
-
npm install -g @google/generative-ai-cli
|
|
200
|
-
gh extension install github/gh-copilot
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
### Provider Authentication Failed
|
|
204
|
-
|
|
205
|
-
**Problem:** Authentication errors with AI providers
|
|
206
|
-
|
|
207
|
-
**Claude Code:**
|
|
208
|
-
```bash
|
|
209
|
-
# Re-authenticate
|
|
210
|
-
claude login
|
|
211
|
-
|
|
212
|
-
# Verify session
|
|
213
|
-
claude session
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
**Gemini CLI:**
|
|
217
|
-
```bash
|
|
218
|
-
# Set API key
|
|
219
|
-
export GOOGLE_API_KEY="your-api-key"
|
|
220
|
-
|
|
221
|
-
# Or configure
|
|
222
|
-
gemini config set apiKey YOUR_API_KEY
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
**Copilot CLI:**
|
|
226
|
-
```bash
|
|
227
|
-
# Re-authenticate
|
|
228
|
-
gh auth login
|
|
229
|
-
|
|
230
|
-
# Verify
|
|
231
|
-
gh auth status
|
|
232
|
-
```
|
|
233
|
-
|
|
234
|
-
### Session Limit Reached
|
|
235
|
-
|
|
236
|
-
**Problem:** `Error: Session limit reached`
|
|
237
|
-
|
|
238
|
-
**Solution:**
|
|
239
|
-
```bash
|
|
240
|
-
# Wait for session reset (usually 5 minutes)
|
|
241
|
-
# Or use a different provider
|
|
242
|
-
|
|
243
|
-
# Use provider fallback
|
|
244
|
-
crewx query "@flexible_agent your question"
|
|
245
|
-
# Where flexible_agent has: provider: ["cli/claude", "cli/gemini", "cli/copilot"]
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
## Execution Issues
|
|
249
|
-
|
|
250
|
-
### Agent Execution Fails
|
|
251
|
-
|
|
252
|
-
**Problem:** Agent tasks fail or timeout
|
|
253
|
-
|
|
254
|
-
**Diagnostics:**
|
|
255
|
-
```bash
|
|
256
|
-
# Run doctor
|
|
257
|
-
crewx doctor
|
|
258
|
-
|
|
259
|
-
# Check task logs
|
|
260
|
-
crewx logs <task-id>
|
|
261
|
-
|
|
262
|
-
# Verify agent configuration
|
|
263
|
-
cat crewx.yaml
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
**Common causes:**
|
|
267
|
-
1. Working directory doesn't exist
|
|
268
|
-
2. Incorrect provider options
|
|
269
|
-
3. Timeout too short for complex tasks
|
|
270
|
-
4. Provider session limit
|
|
271
|
-
5. **Cross-platform path issues** (hardcoded OS-specific paths)
|
|
272
|
-
|
|
273
|
-
**Solutions:**
|
|
274
|
-
```yaml
|
|
275
|
-
# Fix working directory
|
|
276
|
-
working_directory: "./src" # Ensure path exists
|
|
277
|
-
|
|
278
|
-
# Adjust timeout
|
|
279
|
-
CODECREW_TIMEOUT_CLAUDE_EXECUTE=120000 crewx execute "@claude task"
|
|
280
|
-
|
|
281
|
-
# Use provider fallback
|
|
282
|
-
provider: ["cli/claude", "cli/gemini", "cli/copilot"]
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
### Cross-Platform Path Issues
|
|
286
|
-
|
|
287
|
-
**Problem:** Agent fails with `ENOENT` error on different operating systems
|
|
288
|
-
|
|
289
|
-
**Cause:** Hardcoded absolute paths in `crewx.yaml` that only work on specific OS
|
|
290
|
-
|
|
291
|
-
**Example error:**
|
|
292
|
-
```
|
|
293
|
-
ERROR: Process error: spawn C:\WINDOWS\system32\cmd.exe ENOENT
|
|
294
|
-
```
|
|
295
|
-
|
|
296
|
-
**Bad configuration (OS-specific):**
|
|
297
|
-
```yaml
|
|
298
|
-
agents:
|
|
299
|
-
- id: "my_agent"
|
|
300
|
-
working_directory: "/Users/username/project" # ✗ macOS only
|
|
301
|
-
# or
|
|
302
|
-
working_directory: "C:\\Users\\username\\project" # ✗ Windows only
|
|
303
|
-
```
|
|
304
|
-
|
|
305
|
-
**Good configuration (cross-platform):**
|
|
306
|
-
```yaml
|
|
307
|
-
agents:
|
|
308
|
-
- id: "my_agent"
|
|
309
|
-
# Option 1: Use relative path (recommended)
|
|
310
|
-
working_directory: "."
|
|
311
|
-
|
|
312
|
-
# Option 2: Omit working_directory (uses current directory)
|
|
313
|
-
# working_directory not specified = current directory
|
|
314
|
-
|
|
315
|
-
# Option 3: Use environment variable
|
|
316
|
-
working_directory: "${PROJECT_ROOT}/src"
|
|
317
|
-
```
|
|
318
|
-
|
|
319
|
-
**Quick fix:**
|
|
320
|
-
1. Edit `crewx.yaml`
|
|
321
|
-
2. Change absolute paths to relative paths (`.`, `./src`, etc.)
|
|
322
|
-
3. Or remove `working_directory` entirely to use current directory
|
|
323
|
-
4. Test: `crewx query "@agent hello"`
|
|
324
|
-
|
|
325
|
-
**Debugging:**
|
|
326
|
-
```bash
|
|
327
|
-
# Check agent configuration
|
|
328
|
-
cat crewx.yaml | grep -A 3 "working_directory"
|
|
329
|
-
|
|
330
|
-
# Test agent
|
|
331
|
-
crewx query "@agent test query"
|
|
332
|
-
|
|
333
|
-
# Check logs for path errors
|
|
334
|
-
cat .crewx/logs/*.log | grep -i "enoent\|working"
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
### Timeout Errors
|
|
338
|
-
|
|
339
|
-
**Problem:** Tasks timeout before completion
|
|
340
|
-
|
|
341
|
-
**Solution:**
|
|
342
|
-
```bash
|
|
343
|
-
# Increase timeout via environment variables
|
|
344
|
-
export CODECREW_TIMEOUT_CLAUDE_QUERY=1800000 # 30 min
|
|
345
|
-
export CODECREW_TIMEOUT_GEMINI_EXECUTE=2400000 # 40 min
|
|
346
|
-
|
|
347
|
-
# Or inline
|
|
348
|
-
CODECREW_TIMEOUT_CLAUDE_QUERY=1800000 crewx query "@claude complex task"
|
|
349
|
-
```
|
|
350
|
-
|
|
351
|
-
**Available timeout variables:**
|
|
352
|
-
```bash
|
|
353
|
-
CODECREW_TIMEOUT_CLAUDE_QUERY=600000
|
|
354
|
-
CODECREW_TIMEOUT_CLAUDE_EXECUTE=45000
|
|
355
|
-
CODECREW_TIMEOUT_GEMINI_QUERY=600000
|
|
356
|
-
CODECREW_TIMEOUT_GEMINI_EXECUTE=1200000
|
|
357
|
-
CODECREW_TIMEOUT_COPILOT_QUERY=600000
|
|
358
|
-
CODECREW_TIMEOUT_COPILOT_EXECUTE=1200000
|
|
359
|
-
CODECREW_TIMEOUT_PARALLEL=300000
|
|
360
|
-
```
|
|
361
|
-
|
|
362
|
-
### Pipeline Failures
|
|
363
|
-
|
|
364
|
-
**Problem:** Piped commands fail or lose context
|
|
365
|
-
|
|
366
|
-
**Solution:**
|
|
367
|
-
```bash
|
|
368
|
-
# Ensure each stage completes successfully
|
|
369
|
-
crewx query "@claude design" && \
|
|
370
|
-
crewx execute "@gemini implement"
|
|
371
|
-
|
|
372
|
-
# Check pipeline output
|
|
373
|
-
crewx query "@claude design" | tee design.txt | \
|
|
374
|
-
crewx execute "@gemini implement"
|
|
375
|
-
|
|
376
|
-
# Use thread for context instead
|
|
377
|
-
crewx query "@claude design" --thread "project"
|
|
378
|
-
crewx execute "@gemini implement" --thread "project"
|
|
379
|
-
```
|
|
380
|
-
|
|
381
|
-
## Thread/Conversation Issues
|
|
382
|
-
|
|
383
|
-
### Thread Not Found
|
|
384
|
-
|
|
385
|
-
**Problem:** `Error: Thread not found`
|
|
386
|
-
|
|
387
|
-
**Solution:**
|
|
388
|
-
```bash
|
|
389
|
-
# Check existing threads
|
|
390
|
-
ls .crewx/conversations/
|
|
391
|
-
|
|
392
|
-
# Create new thread
|
|
393
|
-
crewx query "@claude start" --thread "new-thread"
|
|
394
|
-
|
|
395
|
-
# Thread names are case-sensitive
|
|
396
|
-
crewx query "@claude continue" --thread "auth-feature" # Correct
|
|
397
|
-
crewx query "@claude continue" --thread "Auth-Feature" # Different thread
|
|
398
|
-
```
|
|
399
|
-
|
|
400
|
-
### Context Not Preserved
|
|
401
|
-
|
|
402
|
-
**Problem:** Agent doesn't remember previous conversation
|
|
403
|
-
|
|
404
|
-
**Solution:**
|
|
405
|
-
```bash
|
|
406
|
-
# Ensure using same thread name
|
|
407
|
-
crewx query "@claude design" --thread "myproject"
|
|
408
|
-
crewx query "@claude refine" --thread "myproject" # Same name
|
|
409
|
-
|
|
410
|
-
# Check thread file exists
|
|
411
|
-
cat .crewx/conversations/myproject.json
|
|
412
|
-
|
|
413
|
-
# Thread is agent-specific
|
|
414
|
-
crewx query "@claude talk" --thread "chat" # Claude's thread
|
|
415
|
-
crewx query "@gemini talk" --thread "chat" # Different (Gemini's thread)
|
|
416
|
-
```
|
|
417
|
-
|
|
418
|
-
## Slack Integration Issues
|
|
419
|
-
|
|
420
|
-
### Slack Bot Not Responding
|
|
421
|
-
|
|
422
|
-
**Problem:** Bot doesn't respond to messages
|
|
423
|
-
|
|
424
|
-
**Checklist:**
|
|
425
|
-
1. Verify environment variables in `.env.slack`
|
|
426
|
-
2. Check bot token permissions (chat:write, app_mentions:read, etc.)
|
|
427
|
-
3. Ensure bot is invited to channel
|
|
428
|
-
4. Check socket mode is enabled
|
|
429
|
-
|
|
430
|
-
**Solution:**
|
|
431
|
-
```bash
|
|
432
|
-
# Verify .env.slack
|
|
433
|
-
cat .env.slack
|
|
434
|
-
|
|
435
|
-
# Required variables:
|
|
436
|
-
# SLACK_BOT_TOKEN=xoxb-...
|
|
437
|
-
# SLACK_APP_TOKEN=xapp-...
|
|
438
|
-
# SLACK_SIGNING_SECRET=...
|
|
439
|
-
|
|
440
|
-
# Restart bot
|
|
441
|
-
npm run start:slack
|
|
442
|
-
```
|
|
443
|
-
|
|
444
|
-
### Slack Execute Mode Not Working
|
|
445
|
-
|
|
446
|
-
**Problem:** Agent execution commands fail in Slack
|
|
447
|
-
|
|
448
|
-
**Cause:** Missing `--mode execute` flag when starting Slack bot
|
|
449
|
-
|
|
450
|
-
**Solution:**
|
|
451
|
-
```bash
|
|
452
|
-
# Start Slack bot with execute mode enabled
|
|
453
|
-
npm run start:slack -- --mode execute
|
|
454
|
-
|
|
455
|
-
# Or using node directly
|
|
456
|
-
node dist/main.js slack --mode execute
|
|
457
|
-
```
|
|
458
|
-
|
|
459
|
-
**Why this happens:**
|
|
460
|
-
- Without `--mode execute`, Slack bot only handles query operations
|
|
461
|
-
- Execute commands (`@agent do something`) require explicit execute mode
|
|
462
|
-
- This is a security feature to prevent unauthorized code execution
|
|
463
|
-
|
|
464
|
-
**Verification:**
|
|
465
|
-
```bash
|
|
466
|
-
# Check if bot is running in execute mode
|
|
467
|
-
# Bot startup message should show: "Slack bot started in execute mode"
|
|
468
|
-
```
|
|
469
|
-
|
|
470
|
-
### Slack Message Too Large
|
|
471
|
-
|
|
472
|
-
**Problem:** `invalid_blocks` error
|
|
473
|
-
|
|
474
|
-
**Solution:**
|
|
475
|
-
```bash
|
|
476
|
-
# Reduce max response length
|
|
477
|
-
echo "SLACK_MAX_RESPONSE_LENGTH=200000" >> .env.slack
|
|
478
|
-
|
|
479
|
-
# Restart bot
|
|
480
|
-
npm run start:slack
|
|
481
|
-
```
|
|
482
|
-
|
|
483
|
-
## Performance Issues
|
|
484
|
-
|
|
485
|
-
### Slow Responses
|
|
486
|
-
|
|
487
|
-
**Problem:** Queries take too long to respond
|
|
488
|
-
|
|
489
|
-
**Optimization:**
|
|
490
|
-
```bash
|
|
491
|
-
# Use faster models
|
|
492
|
-
crewx query "@claude:haiku quick question"
|
|
493
|
-
crewx query "@gemini:gemini-2.5-flash fast task"
|
|
494
|
-
|
|
495
|
-
# Reduce context size
|
|
496
|
-
# In crewx.yaml, limit --add-dir scope
|
|
497
|
-
options:
|
|
498
|
-
query:
|
|
499
|
-
- "--add-dir=./src/specific-module" # Instead of "."
|
|
500
|
-
|
|
501
|
-
# Use parallel execution
|
|
502
|
-
crewx query "@claude task1" "@gemini task2" # Parallel
|
|
503
|
-
```
|
|
504
|
-
|
|
505
|
-
### High Memory Usage
|
|
506
|
-
|
|
507
|
-
**Problem:** CrewX consuming too much memory
|
|
508
|
-
|
|
509
|
-
**Solution:**
|
|
510
|
-
```bash
|
|
511
|
-
# Use lazy loading for documents
|
|
512
|
-
# In documents.yaml:
|
|
513
|
-
documents:
|
|
514
|
-
large-doc:
|
|
515
|
-
path: "docs/large.md"
|
|
516
|
-
lazy: true # Only load when needed
|
|
517
|
-
|
|
518
|
-
# Limit conversation history
|
|
519
|
-
# Delete old threads
|
|
520
|
-
rm .crewx/conversations/old-thread.json
|
|
521
|
-
|
|
522
|
-
# Clear old logs
|
|
523
|
-
crewx clear-logs
|
|
524
|
-
```
|
|
525
|
-
|
|
526
|
-
## Debugging
|
|
527
|
-
|
|
528
|
-
### Enable Debug Logging
|
|
529
|
-
|
|
530
|
-
```bash
|
|
531
|
-
# Set debug environment variable
|
|
532
|
-
export DEBUG=crewx:*
|
|
533
|
-
|
|
534
|
-
# Run with verbose output
|
|
535
|
-
crewx query "@claude test" --verbose
|
|
536
|
-
|
|
537
|
-
# Check logs
|
|
538
|
-
cat .crewx/logs/*.log
|
|
539
|
-
```
|
|
540
|
-
|
|
541
|
-
### Check System Status
|
|
542
|
-
|
|
543
|
-
```bash
|
|
544
|
-
# Comprehensive health check
|
|
545
|
-
crewx doctor
|
|
546
|
-
|
|
547
|
-
# Check provider availability
|
|
548
|
-
crewx query "@claude hello"
|
|
549
|
-
crewx query "@gemini hello"
|
|
550
|
-
crewx query "@copilot hello"
|
|
551
|
-
|
|
552
|
-
# Verify configuration
|
|
553
|
-
cat agents.yaml
|
|
554
|
-
```
|
|
555
|
-
|
|
556
|
-
### Get Task Logs
|
|
557
|
-
|
|
558
|
-
```bash
|
|
559
|
-
# View specific task
|
|
560
|
-
crewx logs <task-id>
|
|
561
|
-
|
|
562
|
-
# View all recent tasks
|
|
563
|
-
crewx logs
|
|
564
|
-
|
|
565
|
-
# Find task ID from previous output
|
|
566
|
-
# Look for: "Task ID: abc123"
|
|
567
|
-
```
|
|
568
|
-
|
|
569
|
-
## Getting Help
|
|
570
|
-
|
|
571
|
-
If issues persist:
|
|
572
|
-
|
|
573
|
-
1. **Run diagnostics:**
|
|
574
|
-
```bash
|
|
575
|
-
crewx doctor
|
|
576
|
-
```
|
|
577
|
-
|
|
578
|
-
2. **Check logs:**
|
|
579
|
-
```bash
|
|
580
|
-
ls .crewx/logs/
|
|
581
|
-
cat .crewx/logs/latest.log
|
|
582
|
-
```
|
|
583
|
-
|
|
584
|
-
3. **Verify configuration:**
|
|
585
|
-
```bash
|
|
586
|
-
cat crewx.yaml # or agents.yaml
|
|
587
|
-
crewx init --force # Reset to defaults
|
|
588
|
-
```
|
|
589
|
-
|
|
590
|
-
4. **Test providers individually:**
|
|
591
|
-
```bash
|
|
592
|
-
claude "hello"
|
|
593
|
-
gemini -p "hello"
|
|
594
|
-
gh copilot suggest "hello"
|
|
595
|
-
```
|
|
596
|
-
|
|
597
|
-
5. **Report issue:**
|
|
598
|
-
- GitHub: https://github.com/sowonlabs/crewx/issues
|
|
599
|
-
- Include: Error message, `crewx doctor` output, logs
|
|
600
|
-
|
|
601
|
-
## Common Error Messages
|
|
602
|
-
|
|
603
|
-
| Error | Cause | Solution |
|
|
604
|
-
|-------|-------|----------|
|
|
605
|
-
| `crewx.yaml not found` | Missing configuration | Run `crewx init` |
|
|
606
|
-
| `Provider not available` | CLI tool not installed | Install provider CLI |
|
|
607
|
-
| `Session limit reached` | Too many requests | Wait or use different provider |
|
|
608
|
-
| `Timeout exceeded` | Task too complex | Increase timeout via env vars |
|
|
609
|
-
| `Invalid YAML syntax` | Malformed config | Run `crewx doctor` |
|
|
610
|
-
| `Thread not found` | Wrong thread name | Check `.crewx/conversations/` |
|
|
611
|
-
| `Permission denied` | File/directory access | Check working directory permissions |
|