Repository navigation
ingest-fixes: route.MediaType; docproc v0.13.0 - #52
Merged
Merged
Conversation
…go-core v0.15.0, marathon 0.26.0, gotenberg 9.11.1, seaweedfs 4.56, mise-action v5.5.0, uv 0.13.12, byteorder 1.5.1, sha2 0.11.3 Taken with `mise run upgrade`, which moves the root mise pins first and then the modules under them. Currency now reports only the three holds (MimeKit 5.0.0 and MsgKit 3.1.0 in tools/mail's generator, typed-path 0.13.0 in tools/onenote), whose hold comments stay. - storage, postgres, cmd/docproc: docproc base module v0.12.0, recorded under each module's Unreleased; no sub-module tag. integration:storage and integration:postgres pass. - cmd/docproc: go-core v0.15.0, which only adds the event package's JSON codec. docproc v0.12.0's settings.Run defaults LibreOfficeMemory to the tool memory bound, so the bounds test's starting values carry it and DOCPROC_TOOL_MEMORY moves both. LibreOfficeMemory binds only when LibreOfficeExec is set, which docproc run leaves unset, so the command's behavior does not change. - picture.LibreOfficeImage: gotenberg/gotenberg 9.11.1-libreoffice, tag and digest moved together; picture's integration tier passes with the golden sums unchanged. Recorded under the base module's Unreleased. - tools/mail, tools/onenote, tools/envelope: byteorder 1.5.1 and sha2 0.11.3 (0.11.2 is yanked) in the lock files, recorded under mail's and onenote's Unreleased. - marathon 0.26.0 (root mise.toml; tools/ooxml inherits it), uv 0.13.12 (tools/ooxml), jdx/mise-action v5.5.0, seaweedfs 4.56: development toolchain and harness pins, not recorded, as earlier bumps of them were not.
- route.MediaType(r, size, head, name, mimeType): within a ZIP, an ODF package, or an OLE2 compound file, the name's extension (by Ext) decides first: OOXML types, the four OpenDocument types and application/zip for .zip within a ZIP or ODF, legacy office types through LegacyTarget and application/vnd.ms-outlook for .msg within an OLE2 file. Otherwise the Kind's table type; content of no signature takes At's route: text/plain for Text, message/rfc822 for Nested, application/octet-stream otherwise. It reads r only through At, so only for content of no signature, and returns an error only for r's own. - route.go: the OOXML extension set becomes ooxmlTypes, extension to media type, so OOXMLExtension and MediaType read one table. - Unit tier: route/test/media_test.go covers every Kind, every container extension, the text/message/octet-stream fallbacks (by header, .eml, stored type, NUL, stored audio), and a reader error. - route/doc.go inventory and docs/api.md list MediaType. CHANGELOG: Unreleased becomes [v0.13.0] - 2026-12-02 with MediaType under Added and the gotenberg bump under Changed, an empty Unreleased above, compare links extended; storage, postgres, cmd/docproc stay Unreleased. README's go get names v0.13.0. Not tagged. Decisions: - The Kind table matches the root's for every kind, including the ones where a type and At's route part: an ODF package with no OpenDocument extension is application/zip; an OLE2 file without a known extension is application/x-ole-storage; a byte order mark is text/plain even when At routes the content Nested; an unencrypted OLE2 file named .docx takes the .docx type though At routes it Unrouted, as behavior 4's extension-first rule says. - OpenDocument extensions are the root's four (.odt, .ods, .odp, .odg); templates and other ODF extensions fall to application/zip. mise run check passes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
capstone.data-intelligence.showcase · ingest-fixes · docproc v0.13.0
This release ships ahead of the task's SHIP. The architect approved it at the task's
checkpoint escalation, because docinfer and Bunrei build on the tag.
Summary
route.MediaTypetakesAt's inputs and returns the media type of the content asAtroutes it:
text/plain,message/rfc822, orapplication/octet-streamfor content with nosignature.
It returns an error only when the reader fails.
Upgrades:
storage,postgres, andcmd/docprocrequire docproc v0.12.0;cmd/docprocrequires go-core v0.15.0;Verify
mise run check: ✓. Slice 1 also ran the picture integration tier against gotenberg 9.11.1, andthe storage and postgres integration tiers. All three passed.
Release: docproc
v0.13.0. The sub-modules stay Unreleased.