Skip to content

v4.2-beta.1 — template tools survive a failed rebuild; Excel and Word read European numbers and loose tables

Pre-release
Pre-release

Choose a tag to compare

@dvejsada dvejsada released this 26 Nov 22:48
9b63c21

Template tools that survive a failed rebuild, and Excel and Word that read the Markdown models actually write: European decimals, Czech spacing, and table rows without a trailing pipe.

🩹 Bug fixes

Dynamic templates (#192, #210)

  • A failed rebuild no longer deletes a working tool. Saving a template, or saving the global style mapping, used to remove the tool first and rebuild it second. Any build that failed left nothing behind. The new tool is now built first and swapped in only once it exists.
  • The previous version stays live until restart, and the admin page says so. This applies to a broken edit, whether it is a bad argument or a file that no longer resolves. A Word tool whose own .docx is gone is still removed and named, as before.
  • A build error is a warning page, not a 500 in the admin UI.
  • A style-mapping save names any tool it could not rebuild. Such a tool still runs on the old mapping, and the save no longer counts it as re-registered.

Excel: European decimals in percents (#143, #212)

  • types: percent reads a decimal comma, the way number already did: 4,3, 4,3 % and 1.234,56 are percents. Untyped 4,3% is a percent too.
  • A value a typed column can't read is reported. It is kept as text and reported as typed_value_kept_as_text, once per table column, with the count and the first cell.

Word: table rows without a trailing pipe (#144, #212)

  • A row without its trailing | is still a row, as in GitHub Markdown and in the Excel tool. Before, | 3 | 4 ended the table and printed as text below it, and a header without its trailing pipe broke the whole table.
  • Word and Excel now share one table-row grammar (markdown_table.py).

Excel: number and currency columns (#211, #213)

  • No more silent 10x and 1000x errors.
    • 0,125 reads as 0.125 (it was 125), and 1234,567 as 1234.567 (it was 1234567).
    • 1,5e3, 4,3., 1.5,2, 10 20, nan and inf are kept as text with a warning. Before, they became a wrong number or an empty cell.
  • Czech typography reads: non-breaking spaces, U+202F and the − minus sign (1 234,50 Kč). So does Indian grouping (₹1,23,456.70).
  • The table decides the ambiguous 4,375.
    • If the table's other numbers write decimal commas (2,5, 12 500,00), it is 4.375. If they write decimal points (1.5, 1,234.50), it is 4375.
    • Every guess is reported. With no evidence in the table, it is read as thousands and flagged ambiguous_comma_read_as_thousands. When another column decided it, the note ambiguous_number_read_from_table names the cell that did.

Check on upgrade

  • More responses carry warnings.
    • Excel: values a typed column could not read, 4,375-style values read as thousands (including plain English 1,234 columns, as an info note), and decisions taken from another column.
    • A client that only expects a bare URL should also accept {"file": …, "warnings": […]}, which the tools already return when something is reported.
  • Excel: values that used to become numbers are now text. These are malformed or loosely spaced numbers in typed columns, and untyped grouping behind a zero (0,125, 00,125). They were wrong numbers before.
  • Excel: untyped 4,375 still reads as 4375, with no warning. Declare types: number for decimal-comma columns.
  • Word: two consecutive lines that start with | are a table, with table_separator_missing, as in GitHub Markdown. Start a line with \| to keep it as text. A lone | x line is text, now with table_not_recognised.
  • Admin: after a failed template save, the previous tool keeps serving until the server restarts or the template is switched off.
docker pull georgx22/mcp-office-docs:v4.2-beta.1

Prerelease, so the image does not move latest.

Full changelog: v4.1.1...v4.2-beta.1