Commit 486d4bb
authored
feat(converter): add edge case handling for Task patterns and code blocks (#39)
- Add Task colon pattern regex for `Task agent-name: "prompt"` syntax
(used ~20+ times in CEP commands)
- Add Skill invocation pattern for `Skill("name")` syntax
- Preserve code blocks during transformation (tool references inside
backticks are intentionally not converted)
- Add comprehensive validation tests against real CEP content
Validated against 17 real CEP files (8 skills, 5 commands, 4 agents).
All 148 tests pass with 0 false positives detected.
Closes edge cases:
- Task with colon not converted (FIXED)
- Skill(args) pattern not converted (FIXED)
- Code block content transformed (FIXED - now preserved)1 parent a410cf4 commit 486d4bb
2 files changed
Lines changed: 437 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | | - | |
53 | | - | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| 114 | + | |
| 115 | + | |
112 | 116 | | |
113 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
114 | 126 | | |
115 | 127 | | |
116 | 128 | | |
| |||
120 | 132 | | |
121 | 133 | | |
122 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
123 | 139 | | |
124 | 140 | | |
125 | 141 | | |
| |||
0 commit comments