Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
31 lines
4.0 KiB
Markdown
31 lines
4.0 KiB
Markdown
# CODEMAP — apps/api · domain · templates
|
||
|
||
> Generated from `apps/api/app/domains/templates` by `scripts/gen_codemaps.py`. Do not edit by hand; re-run after code changes.
|
||
|
||
| Module | Purpose | Public surface |
|
||
|---|---|---|
|
||
| `apps/api/app/domains/templates/compiler.py` | Pure template → RenderSpec compiler. | `def compile_template` |
|
||
| `apps/api/app/domains/templates/definitions.py` | Genre shot-template definition model (system templates). | `class TemplateInput`, `class ShotTemplateDef` |
|
||
| `apps/api/app/domains/templates/policy.py` | Pure defaults + retention policy constants for the shot-template engine. | `def safezone_for`, `def gain_for` |
|
||
| `apps/api/app/domains/templates/presets/anime_beat_edit.py` | Seed: anime-beat-edit — beat-synced montage, hardest frame first. | — |
|
||
| `apps/api/app/domains/templates/presets/asmr_loop.py` | Seed: asmr-satisfying-loop — single ~5s frame-perfect seamless loop. | — |
|
||
| `apps/api/app/domains/templates/presets/before_after.py` | Seed: before-after — transformation-reveal format. | — |
|
||
| `apps/api/app/domains/templates/presets/brainrot_meme.py` | Seed: brainrot-ai-meme — absurdist recurring AI character, serialized. | — |
|
||
| `apps/api/app/domains/templates/presets/fake_podcast.py` | Seed: fake-ai-podcast — two synthetic hosts, mid-conversation hook. | — |
|
||
| `apps/api/app/domains/templates/presets/gameplay_story.py` | Seed: split-screen-gameplay-story — any gameplay + any narration. | — |
|
||
| `apps/api/app/domains/templates/presets/greenscreen_react.py` | Seed: greenscreen-react — commentary / hot-take react format. | — |
|
||
| `apps/api/app/domains/templates/presets/listicle.py` | Seed: listicle — rapid-fire "N things" edutainment / marketing format. | — |
|
||
| `apps/api/app/domains/templates/presets/minecraft_reddit_split.py` | Seed: minecraft-reddit-split — the flagship 'brainrot' dual-stimulation format. | — |
|
||
| `apps/api/app/domains/templates/presets/movie_recap.py` | Seed: movie-recap — narrated summary with a SPECIFIC ANGLE. | — |
|
||
| `apps/api/app/domains/templates/presets/platform_hook_open.py` | Seed: platform-hook-open — composable 0–5s opener prefix for any genre. | — |
|
||
| `apps/api/app/domains/templates/presets/product_demo_ad.py` | Seed: product-demo-ad — the startup UGC marketing format. | — |
|
||
| `apps/api/app/domains/templates/presets/quiz_engagement.py` | Seed: quiz-engagement — comment-driving "which one / would you rather" format. | — |
|
||
| `apps/api/app/domains/templates/presets/testimonial_ad.py` | Seed: testimonial-ad — social-proof UGC marketing format. | — |
|
||
| `apps/api/app/domains/templates/render_spec.py` | Compiled render-spec — the concrete plan the composer consumes. | `class MediaBinding`, `class CaptionCue`, `class AudioCue`, `class IdentityLock`, `class SegmentSpec`, `class LoopPlan`, `class RenderSpec` |
|
||
| `apps/api/app/domains/templates/repository.py` | TemplateInstance repository — record instantiations + genre analytics. | `class TemplateInstanceRepository` |
|
||
| `apps/api/app/domains/templates/router.py` | Shot-template HTTP domain — browse + compile + instantiate. | `def list_templates`, `def list_backgrounds`, `def popular_templates`, `def template_history`, `def get_template`, `def compile_template`, `def instantiate_template` |
|
||
| `apps/api/app/domains/templates/schemas.py` | Pydantic DTOs + view builders for the shot-template HTTP surface. | `class CompileRequest`, `def slot_view`, `def input_view`, `def template_summary`, `def template_detail` |
|
||
| `apps/api/app/domains/templates/service.py` | Template engine orchestration — compile + instantiate into the real pipeline. | `def list_templates`, `def compile_spec`, `def instantiate_draft` |
|
||
| `apps/api/app/domains/templates/slots.py` | Segment-slot authoring model for the genre shot-template engine. | `class SlotSpec`, `class AudioPlanDef` |
|
||
| `apps/api/app/domains/templates/validation.py` | Pure input validation for template compilation. | `class TemplateError`, `def validate_duration`, `def validate_inputs` |
|