Commit 5fbde0e
fix: CLI QA improvements — creation, aliases, help, schemas (#190)
* fix: CLI QA improvements — creation support, aliases, help, schemas (#189)
Closes #189
- Add CLI creation for 8 previously unsupported problem types:
MaximalIS, BinPacking, PaintShop, MaximumSetPacking,
MinimumSetCovering, BicliqueCover, BMF, ClosestVectorProblem
- Add MaxMatching alias for MaximumMatching
- Fix bare `pred` appending unrelated solve help text (match first line only)
- Fix `pred create <PROBLEM>` exiting 0 when showing help (now exits 2)
- Fix `--timeout` default shown twice in help
- Fix Makefile using wrong flag names (--edges → --graph, --bits-m → --m)
- Align schemas to constructor params (BMF, PaintShop, CircuitSAT)
- Add CLI creation instructions to add-model skill (Step 4.5)
- Add parse_comma_list and parse_edge_pairs utilities
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: address PR #190 review — test exit codes, ILP/CircuitSAT ordering, edge trim
- Update 3 tests to expect non-zero exit when showing help (issue #189 item 9)
- Move ILP/CircuitSAT check before empty-flags help so they get the
"via reduction" message instead of generic schema help
- Trim each side of edge pairs in parse_edge_pairs for robustness
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: add --bounds flag for CVP creation, consistent with schema
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 92cdd0a commit 5fbde0e
11 files changed
Lines changed: 375 additions & 58 deletions
File tree
- .claude/skills/add-model
- problemreductions-cli
- src
- commands
- tests
- src/models
- algebraic
- formula
- misc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
127 | 142 | | |
128 | 143 | | |
129 | 144 | | |
| |||
168 | 183 | | |
169 | 184 | | |
170 | 185 | | |
| 186 | + | |
| 187 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
274 | | - | |
| 273 | + | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
211 | 220 | | |
212 | 221 | | |
213 | 222 | | |
| |||
281 | 290 | | |
282 | 291 | | |
283 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
284 | 329 | | |
285 | 330 | | |
286 | 331 | | |
| |||
315 | 360 | | |
316 | 361 | | |
317 | 362 | | |
318 | | - | |
| 363 | + | |
319 | 364 | | |
320 | 365 | | |
321 | 366 | | |
| |||
367 | 412 | | |
368 | 413 | | |
369 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
370 | 420 | | |
| 421 | + | |
371 | 422 | | |
372 | 423 | | |
373 | 424 | | |
| |||
382 | 433 | | |
383 | 434 | | |
384 | 435 | | |
385 | | - | |
| 436 | + | |
386 | 437 | | |
387 | 438 | | |
388 | 439 | | |
| |||
0 commit comments