Image Selection Module API
Programmatic surfaces for this module: endpoints, functions, scripts, types, and configs.
Status
7 documented surfaces
API Surfaces
7This list is intentionally concrete: surface label, location, and what it does.
Function
runImageSelectionPipeline(input): Promise<RunReport>
FunctionMain pipeline entry point (validates SlotRequest, runs retrieval/scoring loop, returns RunReport).
Location: src/image_module/loop/orchestrator.ts
runImageSelectionPipeline(request)
FunctionPublic module export for the orchestrator entry point.
Location: src/image_module/index.ts
Type
SlotRequest (Zod schema + TS type)
TypeValidated input contract for selecting images for a slot.
Location: src/image_module/types.ts
RunReport (Zod schema + TS type)
TypeOutput contract containing accepted/rejected candidates plus full audit log.
Location: src/image_module/types.ts
Script
scripts/find-images.ts
ScriptCLI wrapper to run the pipeline with --slot-type and --context-file and write artifacts.
Location: scripts/find-images.ts
npm run test:image-module
ScriptRuns the image-module-only test runner for CI isolation.
Location: package.json
Config
Repo profile presets, budgets, and thresholds
ConfigDefaults for slot presets, budgets, timeouts, and score thresholds.
Location: src/image_module/repo_profile.json
Sources
File references that anchor this module and its API surfaces.