feat(api): expose generated episode transcripts#210
Merged
Conversation
Deploying podnotes with
|
| Latest commit: |
7bb004a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://24663ab1.podnotes.pages.dev |
| Branch Preview URL: | https://feat-105-transcript-api.podnotes.pages.dev |
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.
Expose generated PodNotes transcript notes through the public plugin API so QuickAdd, Templater, and other workflow plugins can read transcript text from
app.plugins.plugins.podnotes.api.This adds
api.transcriptas a convenience async getter andapi.getTranscript(episode?)for current or explicit episode lookup. Both read the already-generated transcript note using the same configured transcript path logic as the transcription writer; they do not trigger transcription, call OpenAI, or create new transcript files.Docs now include a concrete QuickAdd-style macro example that builds an AI prompt from the PodNotes transcript. The transcript docs also clarify that the transcript template placeholder is
{{transcript}}.Validation performed:
api.transcript,api.getTranscript(), andapi.getTranscript(explicitEpisode)return the generated transcript note, with missing transcript returningnullanddev:errorsclean.fnm exec --using 22 npm run lintfnm exec --using 22 npm run format:checkfnm exec --using 22 npm run typecheckfnm exec --using 22 npm run buildfnm exec --using 22 npm run testPATH=/tmp/podnotes-codex-105-mkdocs/bin:$PATH fnm exec --using 22 npm run docs:buildAdversarial review covered correctness/runtime behavior, public API ergonomics, security/privacy/cost, and maintainability/test quality. Follow-up fixes added explicit-episode API test coverage and corrected the transcript placeholder docs.
Closes #105