forked from jsturtevant/copilot-codeact-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctional-natural.json
More file actions
38 lines (38 loc) · 1.73 KB
/
Copy pathfunctional-natural.json
File metadata and controls
38 lines (38 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[
{
"id": "multi-file-search",
"_comment": "Same intent as functional.json but no 'use codeact' hint. Cross-references TODOs against import lines, which is awkward in one bash one-liner — codeact should win naturally.",
"prompt": "For each Python file in src/, list its TODO comments AND the modules it imports. Show file -> {todos: [...], imports: [...]} as JSON.",
"assertions": {
"codeact_invoked": true,
"output_contains": ["app.py", "TODO"]
}
},
{
"id": "batch-count",
"_comment": "Multi-dimensional aggregation per file (lines, TODOs, function defs) plus sort. Hard to do without a loop — natural fit for codeact.",
"prompt": "For each Python file under src/, count its total lines, number of TODO comments, and number of `def` function definitions. Show all three as a table sorted by total lines descending.",
"assertions": {
"codeact_invoked": true,
"output_contains": ["app.py", "lines"]
}
},
{
"id": "json-validate",
"_comment": "Validate + aggregate (top-level key count for valid ones). Multi-file scan with per-file analysis — codeact fits.",
"prompt": "Check every JSON file in config/ for valid syntax. For each valid file also report the number of top-level keys. For invalid files report the parse error. Combine into one summary table.",
"assertions": {
"codeact_invoked": true,
"output_contains": ["broken.json"]
}
},
{
"id": "single-file-read",
"_comment": "Negative test: trivial single-file read should NOT trigger codeact even when no hint is given.",
"prompt": "Read README.md and tell me what it says in one sentence.",
"assertions": {
"codeact_invoked": false,
"output_contains": ["README"]
}
}
]