Skip to content

Add an images field to Slide, sourced deterministically not by the Engine - #7

Merged
lorenzoliuzzo merged 2 commits into
mainfrom
feat/slide-images
Jul 13, 2026
Merged

Add an images field to Slide, sourced deterministically not by the Engine#7
lorenzoliuzzo merged 2 commits into
mainfrom
feat/slide-images

Conversation

@lorenzoliuzzo

@lorenzoliuzzo lorenzoliuzzo commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Closes Slide outline has no images field; every deck is text-only #6.
  • Slide.images: list[str] threads through the same places bullets already goes: _parse_reply, the MyTypster JSON payload in _call_typster, and the issue-comment outline (_render_outline).
  • Image paths are never Engine-invented: the model can only choose from an images: directive in the issue body (parsed the same deterministic, pre-Engine way target_slides/_parse_target already is) or a --images CLI override. Any path in the Engine's reply that isn't in that available-images list is silently dropped in _parse_reply, never trusted.
  • Paired with Render slide images via #image() and stage them into the PR my-typster#8 (rendering images into the actual .typ/PDF and staging the file into the PR).

Test plan

  • pytest (10 passing, incl. 2 new: unlisted-path filtering, images: body directive parsing)
  • ruff check clean
  • GITHUB_ACTIONS=true pytest
  • CI green on this PR
  • End-to-end on a real deck (planned next, on the TFIM course-project talk)

🤖 Generated with Claude Code

lorenzoliuzzo and others added 2 commits July 13, 2026 18:48
…gine

Closes #6

Slide.images threads through the same places bullets already goes
(_parse_reply, the MyTypster payload, the issue-comment outline). Image
paths are never Engine-invented: the model can only choose from an
"images:" directive in the issue body (parsed the same deterministic way
target_slides already is) or a --images CLI override, and any path in
its reply that isn't in that list is silently dropped, never trusted.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@lorenzoliuzzo
lorenzoliuzzo marked this pull request as ready for review July 13, 2026 17:08
@lorenzoliuzzo
lorenzoliuzzo merged commit b1646e2 into main Jul 13, 2026
2 checks passed
@lorenzoliuzzo
lorenzoliuzzo deleted the feat/slide-images branch July 13, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slide outline has no images field; every deck is text-only

1 participant