Add markdown transcript export (?format=md) for room recordings#79
Open
arkh-node wants to merge 1 commit into
Open
Add markdown transcript export (?format=md) for room recordings#79arkh-node wants to merge 1 commit into
arkh-node wants to merge 1 commit into
Conversation
Closes cimcai#49. The export endpoint already supported txt and json; this adds a readable markdown 'recording' of a room's conversation. Extracts the txt/json/md rendering into pure helpers in server/transcript.ts so the formatting is unit-testable without Express/DB, and keeps the route a thin adapter. txt and json output are preserved byte-for-byte. Adds server/transcript.test.ts (node:test) covering md rendering, the empty-room and missing-timestamp cases, format parsing, filename extensions, and txt/json regression.
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.
Closes #49.
The room export endpoint already supports
txtandjson. This adds a third format — a markdown recording of a room's conversation — so "I wish I had a recording of this conversation" has a readable, shareable artifact.GET /api/rooms/:roomId/export?format=md→text/markdowndownloadserver/transcript.ts; the route is now a thin adapter. txt and json output are unchanged.server/transcript.test.ts(node:test) covers markdown rendering, the empty-room and missing-timestamp edge cases, format parsing, filename extensions, and txt/json regression.npm test→ 8 passing.Follow-up (not in this PR): a download control in the room UI exposing the three formats.