Commit 600cabe
committed
feat(prompts): support custom stages, remote prompts, and template variables
Add StagesConfig and StageDefinition for TOML-based stage
definitions. Add PromptRegistry::with_settings async factory
for remote prompt resolution (HTTP, git clone, local dir).
Add substitute_variables for {{variable}} template expansion.
Refactor get_stage_prompt to use fallback chain: stages.toml
config -> file-based stages -> hardcoded stages. Add stage
filtering respecting enabled flag from config. Add md5
dependency for prompt cache hashing.
Signed-off-by: derekbarbosa <derekasobrab@gmail.com>1 parent 8de1967 commit 600cabe
13 files changed
Lines changed: 468 additions & 36 deletions
File tree
- src/worker
- third_party/prompts/kernel
- stages
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
0 commit comments