Commit c635d89
fix(processing): honor a tool's recommended output extension over the… (#1901)
* fix(processing): honor a tool's recommended output extension over the table default
excel_to_table's output param is data_kind "table", so leaving the
output path blank made the WASM runner default it to .csv. Its writer
is the generic vector-format dispatch (same as GeoParquet/GPKG tools),
which has no CSV driver, so the tool failed its own default with
"unsupported output path" -- readable input (21542 rows x 10 columns
from a legacy .xls), unusable default output. Same failure shape as
#1074.
The param's own description already names the extension that works
("GeoParquet .parquet recommended"); outputTextFormatHint now honors
an explicit "<ext> recommended" in the description before falling
back to the generic csv/html/json/table heuristics.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* Address Claude review feedback
- Require the recommended-extension capture in `outputTextFormatHint` to
start with a letter (`/\.([a-z][a-z0-9]*)\s+recommended/i`), so a decimal
in a parameter's prose ("a tolerance of 0.5 recommended") can no longer be
read as an extension and short-circuit the csv/html/json/table heuristics.
- Add a regression test covering that case.
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: giswqs <giswqs@gmail.com>1 parent 8d6c2ac commit c635d89
2 files changed
Lines changed: 43 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
421 | | - | |
422 | | - | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
423 | 424 | | |
424 | 425 | | |
425 | | - | |
| 426 | + | |
426 | 427 | | |
427 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
428 | 439 | | |
429 | 440 | | |
430 | 441 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
444 | 472 | | |
0 commit comments