Commit Graph

1 Commits

Author SHA1 Message Date
rob c623ad2576 Add reference-photo input: "build something like this"
Attach a photo (📎 button, drag-drop, paste, or an image URL) and the driver
hands it to claude -p, which reads the image (its Read tool sees images) and
emits the usual tool-call JSON to build a simplified, buildable interpretation
in dimensional lumber — no API keys, same claude -p pipe.

- driver: interpret(image_path=) prepends a reference-photo directive with the
  image's absolute path; find_image_url() + fetch_image() download a linked
  image to a temp file; woodshop-talk --image (path or URL) for CLI/voice.
- controller.run_command(image_path=) passthrough.
- command bar: 📎 attach (file picker), drag-drop image, Ctrl+V paste image,
  and image-URL-in-text detection; downloads run off the UI thread; an image
  chip shows/clears the attachment.
- tests: URL detection, image directive in prompt, fetch_image temp write,
  controller passthrough, command-bar attach + default-text smoke. 216 pass.

Honest limit: the live image round-trip needs a real display/model call to
verify — wired + unit-tested, please confirm it sees the photo on your machine.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-30 22:20:57 -03:00