Files
scriptorium/docs/internal/overview.md

2.1 KiB

Internal Component Overview

This is the complete inventory of Scriptorium's implemented Go components. The architecture policy owns normative boundaries; public behavior belongs in the linked contracts.

Component Implemented responsibility References
cmd/scriptorium Process entrypoint that delegates arguments and streams to the CLI adapter. CLI contract, adapter internals
internal/adapter/cli Parses execution, application-configuration, and captured framework-configuration inspection commands; resolves settings; constructs Promptkit engines for execution, definition inspection, and framework inspection; maps requests; and owns process output and exit behavior. CLI contract, adapter internals, source internals
internal/adapter/http Owns routes, DTOs, strict decoding, limits, Promptkit request/result mapping, public error mapping, and restricted HTTP artifact reading. HTTP API, adapter internals, source internals
internal/config Selects application sources, supplies the application ConfigKit definition and explicit overrides, and converts resolved settings for runtime use. configuration contract, adapter internals, source internals
internal/defaults Holds Scriptorium-owned application and HTTP defaults. configuration contract
internal/format Formats Promptkit prepared-run and prompt/profile inspection values for CLI text or JSON output; framework-configuration output uses Promptkit's native captured view and writers. CLI contract, adapter internals
internal/report Projects one terminal Promptkit observation into Scriptorium-owned execution metadata. adapter internals

Framework implementation packages are provided by Promptkit v0.12.0 and are not part of this repository.