65 lines
3.3 KiB
Markdown
65 lines
3.3 KiB
Markdown
# Scriptorium
|
|
|
|
Scriptorium is a prompt-execution application with a command-line interface and
|
|
an HTTP service. It prepares prompt requests, runs them against
|
|
OpenAI-compatible model endpoints, and returns generated output with validation
|
|
metadata.
|
|
|
|
The application uses [PromptKit v0.25.0](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/consumers/pkg-promptkit.md)
|
|
for prompt execution and [ConfigKit v1.4.0](https://forge.maximumdirect.net/base-layer/configkit/src/commit/4a7ae664a6287d71cba20f59c7c5b37b6f05b0a3/docs/config.md)
|
|
for configuration. [CommandKit v0.8.0](https://forge.maximumdirect.net/base-layer/commandkit/src/commit/0b53a63648c536afe50c46f948159116f776adae/docs/cli.md)
|
|
and its ckconfig v0.11.0 and ckprompt v0.12.0 integrations supply native
|
|
configuration, resource discovery, preview, reporting, and completion.
|
|
Scriptorium owns executable configuration, CLI and HTTP mapping, process
|
|
behavior, output presentation, and HTTP artifact-containment policy.
|
|
|
|
## Quickstart
|
|
|
|
From the repository root:
|
|
|
|
```bash
|
|
go run ./cmd/scriptorium promptkit show prepared generic.markdown_summary \
|
|
--config ./examples/config.yml \
|
|
--input-file transcript=./examples/fixtures/transcript.md \
|
|
--input-file glossary=./examples/fixtures/glossary.yml \
|
|
--format json
|
|
```
|
|
|
|
This renders the prepared prompt and effective runtime settings without calling
|
|
a model. For complete invocation and output behavior, see the
|
|
[CLI reference](docs/cli.md).
|
|
|
|
## Documentation
|
|
|
|
- [CLI reference](docs/cli.md)
|
|
- [Configuration reference](docs/config.md)
|
|
- [Application configuration inspection](docs/cli.md#application-configuration-inspection)
|
|
- [Framework configuration inspection](docs/cli.md#framework-configuration-inspection)
|
|
- [HTTP API reference](docs/api.md)
|
|
- [Operations guide](docs/operations.md)
|
|
- [Consumer integration overview](docs/consumers/api.md)
|
|
- [Migration from the former Go package](docs/consumers/migrating-to-promptkit.md)
|
|
- [Native CLI migration](docs/consumers/upgrading-cli.md)
|
|
- [Upgrade PromptKit definitions](docs/consumers/upgrading-promptkit.md)
|
|
- [Subprocess integration](docs/integrations/subprocess.md)
|
|
- [Architecture policy](docs/policy/architecture.md)
|
|
- [PromptKit framework formats](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/formats.md)
|
|
- [PromptKit Go consumer guide](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/consumers/pkg-promptkit.md)
|
|
|
|
## Examples
|
|
|
|
- [Minimal configuration](examples/config.yml) and
|
|
[complete configuration](examples/config.full.yml), plus a
|
|
[composed import/overlay example](examples/config.composed.yml), a
|
|
[collection composition example](examples/config.collections.yml), a
|
|
[collection checkout discovery example](examples/config.discovery.yml), and a
|
|
[backend inheritance example](examples/config.inheritance.yml)
|
|
- [Prompt definitions](examples/prompts/), [execution profiles](examples/profiles/),
|
|
[schemas](examples/schemas/), and [synthetic input fixtures](examples/fixtures/)
|
|
- [Render script](examples/render-markdown-summary.sh)
|
|
- [HTTP request](examples/http-run.json)
|
|
|
|
Scriptorium is licensed under the [GPL v3.0 or later](COPYRIGHT).
|
|
|
|
[Open Source attribution notices](docs/oss/attribution.md) are available.
|