cawdex 1.35.65 → 1.35.67
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 +186 -186
- package/bin/anycode.js +2 -2
- package/bin/cawdex.js +408 -408
- package/bin/ecc-hooks.cjs +11 -11
- package/dist/agents.js +1424 -1424
- package/dist/autonomous-loops.js +287 -287
- package/dist/command-palette.js +1 -1
- package/dist/command-palette.js.map +1 -1
- package/dist/compaction.js +8 -8
- package/dist/content-engine.js +543 -543
- package/dist/coverage.js +39 -39
- package/dist/docs-sync.js +98 -98
- package/dist/evaluation.js +452 -452
- package/dist/git-workflow.js +49 -49
- package/dist/index.js +75 -46
- package/dist/index.js.map +1 -1
- package/dist/instant-answer.js +10 -0
- package/dist/instant-answer.js.map +1 -1
- package/dist/modes.js +355 -355
- package/dist/orchestration.js +15 -15
- package/dist/pm2-manager.js +26 -26
- package/dist/prompt-buffer.d.ts +7 -0
- package/dist/prompt-buffer.js +31 -0
- package/dist/prompt-buffer.js.map +1 -1
- package/dist/query.d.ts +4 -0
- package/dist/query.js +79 -64
- package/dist/query.js.map +1 -1
- package/dist/refactor.js +87 -87
- package/dist/search-first.js +92 -92
- package/dist/session-picker.d.ts +44 -0
- package/dist/session-picker.js +227 -0
- package/dist/session-picker.js.map +1 -0
- package/dist/skill-create.js +100 -100
- package/dist/stitch.js +1 -1
- package/dist/swarm.d.ts +34 -54
- package/dist/swarm.js +175 -63
- package/dist/swarm.js.map +1 -1
- package/dist/system-prompt.js +10 -10
- package/dist/verification.js +55 -55
- package/dist/walkthrough.js +5 -5
- package/package.json +1 -1
- package/resources/__init__.py +1 -1
- package/resources/exgentic/cawdex_agent/README.md +114 -114
- package/resources/exgentic/cawdex_agent/__init__.py +5 -5
- package/resources/exgentic/cawdex_agent/agent.py +605 -605
- package/resources/exgentic/cawdex_agent/requirements.txt +2 -2
- package/resources/exgentic/cawdex_agent/setup.sh +21 -21
- package/resources/exgentic/cawdex_agent/utils.py +1061 -1061
- package/resources/hal/cawdex_agent/README.md +24 -24
- package/resources/hal/cawdex_agent/__init__.py +1 -1
- package/resources/hal/cawdex_agent/main.py +550 -550
- package/resources/hal/cawdex_agent/requirements.txt +2 -2
- package/resources/kbench/cawdex_agent/README.md +107 -107
- package/resources/kbench/cawdex_agent/adapter.manifest.json +19 -19
- package/resources/kbench/cawdex_agent/runner.mjs +753 -753
- package/resources/open_agent_leaderboard/cawdex-agent-card.md +119 -119
- package/resources/terminal_bench/__init__.py +1 -1
- package/resources/terminal_bench/cawdex_agent.py +174 -174
- package/resources/terminal_bench/setup.sh +121 -121
package/dist/coverage.js
CHANGED
|
@@ -73,45 +73,45 @@ function getCoverageCommand(framework) {
|
|
|
73
73
|
export function buildCoveragePrompt(cwd) {
|
|
74
74
|
const framework = detectTestFramework(cwd);
|
|
75
75
|
const coverageCmd = getCoverageCommand(framework);
|
|
76
|
-
return `Analyze test coverage for this project and suggest improvements.
|
|
77
|
-
|
|
78
|
-
## Current Working Directory
|
|
79
|
-
\`\`\`
|
|
80
|
-
${cwd}
|
|
81
|
-
\`\`\`
|
|
82
|
-
|
|
83
|
-
## Detected Test Framework
|
|
84
|
-
${framework !== 'unknown' ? chalk.green(framework) : chalk.yellow('unknown (manually specify)')}
|
|
85
|
-
|
|
86
|
-
## Instructions
|
|
87
|
-
1. Run the coverage command: \`${coverageCmd}\`
|
|
88
|
-
2. Parse the coverage report and extract:
|
|
89
|
-
- Total lines of code
|
|
90
|
-
- Lines covered
|
|
91
|
-
- Coverage percentage
|
|
92
|
-
- List of uncovered or poorly-covered files
|
|
93
|
-
3. Analyze the results:
|
|
94
|
-
- Identify the top 3-5 uncovered functions or code paths
|
|
95
|
-
- Prioritize by impact (critical paths first)
|
|
96
|
-
4. Suggest specific tests to write:
|
|
97
|
-
- For each uncovered area, describe what test cases would improve coverage
|
|
98
|
-
- Focus on edge cases and error handling
|
|
99
|
-
5. Set a target of 80% coverage minimum
|
|
100
|
-
|
|
101
|
-
## Expected Output Format
|
|
102
|
-
Provide:
|
|
103
|
-
1. Current coverage summary (percentage and line counts)
|
|
104
|
-
2. List of uncovered files
|
|
105
|
-
3. For each top uncovered function:
|
|
106
|
-
- Function name and location
|
|
107
|
-
- What it does
|
|
108
|
-
- Suggested test cases to cover it
|
|
109
|
-
4. Estimated effort to reach 80% coverage
|
|
110
|
-
5. Commands to run the suggested tests
|
|
111
|
-
|
|
112
|
-
## Notes
|
|
113
|
-
- If coverage is already ≥80%, suggest areas for improvement beyond line coverage
|
|
114
|
-
- Consider mutation testing or branch coverage for deeper insights
|
|
76
|
+
return `Analyze test coverage for this project and suggest improvements.
|
|
77
|
+
|
|
78
|
+
## Current Working Directory
|
|
79
|
+
\`\`\`
|
|
80
|
+
${cwd}
|
|
81
|
+
\`\`\`
|
|
82
|
+
|
|
83
|
+
## Detected Test Framework
|
|
84
|
+
${framework !== 'unknown' ? chalk.green(framework) : chalk.yellow('unknown (manually specify)')}
|
|
85
|
+
|
|
86
|
+
## Instructions
|
|
87
|
+
1. Run the coverage command: \`${coverageCmd}\`
|
|
88
|
+
2. Parse the coverage report and extract:
|
|
89
|
+
- Total lines of code
|
|
90
|
+
- Lines covered
|
|
91
|
+
- Coverage percentage
|
|
92
|
+
- List of uncovered or poorly-covered files
|
|
93
|
+
3. Analyze the results:
|
|
94
|
+
- Identify the top 3-5 uncovered functions or code paths
|
|
95
|
+
- Prioritize by impact (critical paths first)
|
|
96
|
+
4. Suggest specific tests to write:
|
|
97
|
+
- For each uncovered area, describe what test cases would improve coverage
|
|
98
|
+
- Focus on edge cases and error handling
|
|
99
|
+
5. Set a target of 80% coverage minimum
|
|
100
|
+
|
|
101
|
+
## Expected Output Format
|
|
102
|
+
Provide:
|
|
103
|
+
1. Current coverage summary (percentage and line counts)
|
|
104
|
+
2. List of uncovered files
|
|
105
|
+
3. For each top uncovered function:
|
|
106
|
+
- Function name and location
|
|
107
|
+
- What it does
|
|
108
|
+
- Suggested test cases to cover it
|
|
109
|
+
4. Estimated effort to reach 80% coverage
|
|
110
|
+
5. Commands to run the suggested tests
|
|
111
|
+
|
|
112
|
+
## Notes
|
|
113
|
+
- If coverage is already ≥80%, suggest areas for improvement beyond line coverage
|
|
114
|
+
- Consider mutation testing or branch coverage for deeper insights
|
|
115
115
|
- Ensure all new tests have clear assertions`;
|
|
116
116
|
}
|
|
117
117
|
/**
|
package/dist/docs-sync.js
CHANGED
|
@@ -111,104 +111,104 @@ export function buildDocsUpdatePrompt(cwd) {
|
|
|
111
111
|
const docSummary = docFiles
|
|
112
112
|
.map((d) => ` - ${d.type.toUpperCase()}: ${d.path}`)
|
|
113
113
|
.join('\n');
|
|
114
|
-
return `Update and synchronize all documentation to match the current code.
|
|
115
|
-
|
|
116
|
-
## Current Working Directory
|
|
117
|
-
\`\`\`
|
|
118
|
-
${cwd}
|
|
119
|
-
\`\`\`
|
|
120
|
-
|
|
121
|
-
## Detected Language
|
|
122
|
-
${language}
|
|
123
|
-
|
|
124
|
-
## Found Documentation Files
|
|
125
|
-
\`\`\`
|
|
126
|
-
${docSummary}
|
|
127
|
-
\`\`\`
|
|
128
|
-
|
|
129
|
-
## Instructions
|
|
130
|
-
1. **Review all documentation files**:
|
|
131
|
-
- README.md: Check installation, usage, API overview
|
|
132
|
-
- CHANGELOG.md: Verify recent entries match recent code changes
|
|
133
|
-
- docs/*.md: Check all guides for outdated examples
|
|
134
|
-
- Source files: Check for missing or stale JSDoc/docstrings
|
|
135
|
-
|
|
136
|
-
2. **Compare with actual code**:
|
|
137
|
-
- List all exported functions, classes, and types
|
|
138
|
-
- Check if they appear in documentation
|
|
139
|
-
- Verify function signatures match docs
|
|
140
|
-
- Check if CLI flags, config options are documented
|
|
141
|
-
- Look for examples that might be outdated
|
|
142
|
-
|
|
143
|
-
3. **Identify gaps**:
|
|
144
|
-
- Missing JSDoc comments on public APIs
|
|
145
|
-
- Undocumented exports
|
|
146
|
-
- Examples that don't run
|
|
147
|
-
- Missing error documentation
|
|
148
|
-
- Deprecated features still documented
|
|
149
|
-
- New features not documented
|
|
150
|
-
|
|
151
|
-
4. **Update stale documentation**:
|
|
152
|
-
- Fix outdated examples with current syntax
|
|
153
|
-
- Update API signatures if code changed
|
|
154
|
-
- Correct parameter names and types
|
|
155
|
-
- Update version numbers in examples
|
|
156
|
-
- Fix broken internal links
|
|
157
|
-
|
|
158
|
-
5. **Add missing documentation**:
|
|
159
|
-
- Add JSDoc to all public functions and classes
|
|
160
|
-
- Document all public exports in README or API.md
|
|
161
|
-
- Add examples for common use cases
|
|
162
|
-
- Document error cases and exceptions
|
|
163
|
-
- Add CLI usage if applicable
|
|
164
|
-
|
|
165
|
-
## Documentation Standards
|
|
166
|
-
For JSDoc/Docstrings:
|
|
167
|
-
\`\`\`typescript
|
|
168
|
-
/**
|
|
169
|
-
* Brief description of what this does.
|
|
170
|
-
*
|
|
171
|
-
* More detailed explanation if needed.
|
|
172
|
-
*
|
|
173
|
-
* @param paramName - Description of parameter
|
|
174
|
-
* @returns Description of return value
|
|
175
|
-
* @throws ErrorType If this condition occurs
|
|
176
|
-
* @example
|
|
177
|
-
* const result = myFunction('input');
|
|
178
|
-
*/
|
|
179
|
-
function exampleFunction(paramName: string): string {
|
|
180
|
-
// ...
|
|
181
|
-
}
|
|
182
|
-
\`\`\`
|
|
183
|
-
|
|
184
|
-
For README:
|
|
185
|
-
- Brief project description
|
|
186
|
-
- Installation instructions
|
|
187
|
-
- Quick start example
|
|
188
|
-
- Link to full API documentation
|
|
189
|
-
- Contributing guidelines
|
|
190
|
-
- License
|
|
191
|
-
|
|
192
|
-
## Expected Output Format
|
|
193
|
-
1. **Summary**:
|
|
194
|
-
- Total documentation files found
|
|
195
|
-
- Number of public exports
|
|
196
|
-
- Coverage % (documented vs total)
|
|
197
|
-
|
|
198
|
-
2. **For each documentation file**:
|
|
199
|
-
- **File**: Path
|
|
200
|
-
- **Status**: (up-to-date / needs update / incomplete)
|
|
201
|
-
- **Issues Found**: Specific problems
|
|
202
|
-
- **Changes Made**: What was updated
|
|
203
|
-
|
|
204
|
-
3. **For JSDoc/Docstrings**:
|
|
205
|
-
- **Functions without docs**: List
|
|
206
|
-
- **Outdated docs**: List with fixes
|
|
207
|
-
- **Missing examples**: Which functions need them
|
|
208
|
-
|
|
209
|
-
4. **Overall Documentation Health**:
|
|
210
|
-
- Completeness score (0-100%)
|
|
211
|
-
- Key gaps remaining
|
|
114
|
+
return `Update and synchronize all documentation to match the current code.
|
|
115
|
+
|
|
116
|
+
## Current Working Directory
|
|
117
|
+
\`\`\`
|
|
118
|
+
${cwd}
|
|
119
|
+
\`\`\`
|
|
120
|
+
|
|
121
|
+
## Detected Language
|
|
122
|
+
${language}
|
|
123
|
+
|
|
124
|
+
## Found Documentation Files
|
|
125
|
+
\`\`\`
|
|
126
|
+
${docSummary}
|
|
127
|
+
\`\`\`
|
|
128
|
+
|
|
129
|
+
## Instructions
|
|
130
|
+
1. **Review all documentation files**:
|
|
131
|
+
- README.md: Check installation, usage, API overview
|
|
132
|
+
- CHANGELOG.md: Verify recent entries match recent code changes
|
|
133
|
+
- docs/*.md: Check all guides for outdated examples
|
|
134
|
+
- Source files: Check for missing or stale JSDoc/docstrings
|
|
135
|
+
|
|
136
|
+
2. **Compare with actual code**:
|
|
137
|
+
- List all exported functions, classes, and types
|
|
138
|
+
- Check if they appear in documentation
|
|
139
|
+
- Verify function signatures match docs
|
|
140
|
+
- Check if CLI flags, config options are documented
|
|
141
|
+
- Look for examples that might be outdated
|
|
142
|
+
|
|
143
|
+
3. **Identify gaps**:
|
|
144
|
+
- Missing JSDoc comments on public APIs
|
|
145
|
+
- Undocumented exports
|
|
146
|
+
- Examples that don't run
|
|
147
|
+
- Missing error documentation
|
|
148
|
+
- Deprecated features still documented
|
|
149
|
+
- New features not documented
|
|
150
|
+
|
|
151
|
+
4. **Update stale documentation**:
|
|
152
|
+
- Fix outdated examples with current syntax
|
|
153
|
+
- Update API signatures if code changed
|
|
154
|
+
- Correct parameter names and types
|
|
155
|
+
- Update version numbers in examples
|
|
156
|
+
- Fix broken internal links
|
|
157
|
+
|
|
158
|
+
5. **Add missing documentation**:
|
|
159
|
+
- Add JSDoc to all public functions and classes
|
|
160
|
+
- Document all public exports in README or API.md
|
|
161
|
+
- Add examples for common use cases
|
|
162
|
+
- Document error cases and exceptions
|
|
163
|
+
- Add CLI usage if applicable
|
|
164
|
+
|
|
165
|
+
## Documentation Standards
|
|
166
|
+
For JSDoc/Docstrings:
|
|
167
|
+
\`\`\`typescript
|
|
168
|
+
/**
|
|
169
|
+
* Brief description of what this does.
|
|
170
|
+
*
|
|
171
|
+
* More detailed explanation if needed.
|
|
172
|
+
*
|
|
173
|
+
* @param paramName - Description of parameter
|
|
174
|
+
* @returns Description of return value
|
|
175
|
+
* @throws ErrorType If this condition occurs
|
|
176
|
+
* @example
|
|
177
|
+
* const result = myFunction('input');
|
|
178
|
+
*/
|
|
179
|
+
function exampleFunction(paramName: string): string {
|
|
180
|
+
// ...
|
|
181
|
+
}
|
|
182
|
+
\`\`\`
|
|
183
|
+
|
|
184
|
+
For README:
|
|
185
|
+
- Brief project description
|
|
186
|
+
- Installation instructions
|
|
187
|
+
- Quick start example
|
|
188
|
+
- Link to full API documentation
|
|
189
|
+
- Contributing guidelines
|
|
190
|
+
- License
|
|
191
|
+
|
|
192
|
+
## Expected Output Format
|
|
193
|
+
1. **Summary**:
|
|
194
|
+
- Total documentation files found
|
|
195
|
+
- Number of public exports
|
|
196
|
+
- Coverage % (documented vs total)
|
|
197
|
+
|
|
198
|
+
2. **For each documentation file**:
|
|
199
|
+
- **File**: Path
|
|
200
|
+
- **Status**: (up-to-date / needs update / incomplete)
|
|
201
|
+
- **Issues Found**: Specific problems
|
|
202
|
+
- **Changes Made**: What was updated
|
|
203
|
+
|
|
204
|
+
3. **For JSDoc/Docstrings**:
|
|
205
|
+
- **Functions without docs**: List
|
|
206
|
+
- **Outdated docs**: List with fixes
|
|
207
|
+
- **Missing examples**: Which functions need them
|
|
208
|
+
|
|
209
|
+
4. **Overall Documentation Health**:
|
|
210
|
+
- Completeness score (0-100%)
|
|
211
|
+
- Key gaps remaining
|
|
212
212
|
- Recommended priorities for next steps`;
|
|
213
213
|
}
|
|
214
214
|
/**
|