diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ddd90b86..c415eec3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -62,6 +62,7 @@ repos: rev: v0.9.3 hooks: - id: taplo-format + exclude: /modify_.*\.toml$ - repo: https://github.com/google/yamlfmt rev: v0.21.0 diff --git a/chezmoi/.chezmoitemplates/memsearch_config.toml b/chezmoi/.chezmoitemplates/memsearch_config.toml new file mode 100644 index 00000000..406e8a68 --- /dev/null +++ b/chezmoi/.chezmoitemplates/memsearch_config.toml @@ -0,0 +1,13 @@ +[embedding] +provider = "onnx" + +[reranker] +model = "Alibaba-NLP/gte-reranker-modernbert-base" + +[plugins.claude-code.user_profile] +enabled = true +output_file = "~/.memsearch/USER.md" + +[plugins.opencode.user_profile] +enabled = true +output_file = "~/.memsearch/USER.md" diff --git a/chezmoi/private_dot_memsearch/modify_config.toml b/chezmoi/private_dot_memsearch/modify_config.toml new file mode 100644 index 00000000..3ecc2a10 --- /dev/null +++ b/chezmoi/private_dot_memsearch/modify_config.toml @@ -0,0 +1,8 @@ +{{- /* chezmoi:modify-template */ -}} +{{- $current := dict -}} +{{- if .chezmoi.stdin | trim -}} +{{- $current = fromToml .chezmoi.stdin -}} +{{- end -}} +{{- $template := includeTemplate "memsearch_config.toml" . | fromToml -}} +{{- $merged := mergeOverwrite $current $template -}} +{{ $merged | toToml }}