Files
g-butandClaude Opus 4.6 7a09c268ea Restructure codebase to state-of-the-art layout
Reorganized PrintCraft from a pile of scripts into a proper Python package
plus a clean project structure:

- Build printcraft/ Python package (pip install -e .) with:
  - printcraft.project  — loads project.yaml as typed Project/Scene/Surface/Character
  - printcraft.generators.grok  — consolidated from grok_gen_v5.py, with
    all the hard-won findings (short-prompt rule, keyboard.type, JS submit,
    CDP connection, rate-limit detection) documented inline
  - printcraft.cli  — Typer CLI: `printcraft project info`,
    `printcraft project list-scenes`, `printcraft generate scene/all-scenes`

- Restructure projects/duschwand-roli/ into:
  - project.yaml (SSOT — dimensions, characters, scenes, style)
  - source/{photos,references,docs} (immutable inputs)
  - rounds/00N-name/{manifest.yaml,prompts/,outputs/,notes.md}
  - selected/{scenes,murals} (curated best-of, symlinks into rounds)
  - composites/, deliverables/ (work and final output)
  Each round got a manifest.yaml crystallizing what was tried and learned.

- Archive 19 abandoned scripts to _archive/scripts-pre-consolidation/
  (grok_gen_v3/v4/v5, grok-generate, grok-go, make_composite, gimp_composite, etc.)

- Write docs/LEARNINGS.md with the crucial findings from this session:
  Grok short-prompt rule, keyboard.type vs JS setter, CDP+Chrome setup,
  NativeMessagingHosts per profile, why compositing fails, and more.

- Update templates/project/ to the new yaml-based structure so starting
  a new client project is `cp -r templates/project projects/<name>`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 11:02:33 +02:00
..