feat: add defaults (template & config) as files
This commit is contained in:
parent
a53ae57f51
commit
97a05896a3
2 changed files with 40 additions and 0 deletions
24
static/default_config.yml
Normal file
24
static/default_config.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
# Example configuration for Code-Preloader
|
||||||
|
|
||||||
|
# List of repository paths to preload
|
||||||
|
# source_list:
|
||||||
|
# - "path/to/repo1"
|
||||||
|
# - "path/to/repo2"
|
||||||
|
|
||||||
|
# List of patterns to ignore during preloading
|
||||||
|
ignore_list:
|
||||||
|
- ^\.git/.*
|
||||||
|
|
||||||
|
# Path to the output file (if null, output to STDOUT)
|
||||||
|
output_path: null
|
||||||
|
|
||||||
|
prompt:
|
||||||
|
# Optional: Path to a file containing the prompt header
|
||||||
|
header_path: null
|
||||||
|
|
||||||
|
# Optional: Path to a file containing the prompt footer
|
||||||
|
footer_path: null
|
||||||
|
|
||||||
|
# Optional: Path to a file container a jinja template to structure the prompt
|
||||||
|
template_path: null
|
16
static/default_template.j2
Normal file
16
static/default_template.j2
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{%- if prompt_header -%}
|
||||||
|
@@ CONTEXT
|
||||||
|
|
||||||
|
{{ prompt_header }}
|
||||||
|
{%- endif -%}
|
||||||
|
{%- for file in prompt_files -%}
|
||||||
|
@@ FILE "{{ file.path }}" WITH MIME-TYPE "{{ file.mime_type }}"
|
||||||
|
|
||||||
|
{{- file.content -}}
|
||||||
|
|
||||||
|
{%- endfor -%}
|
||||||
|
{%- if prompt_footer -%}
|
||||||
|
@@ REQUEST
|
||||||
|
|
||||||
|
{{ prompt_footer }}
|
||||||
|
{%- endif -%}
|
Loading…
Reference in a new issue