on main help sign in
refactor(bash): make whitespace conform to spec
ef1990aAmolith
internal/agent/tools/bash.tpl+10−6
@@ -60,17 +60,21 @@ When user asks to create git commit:
60 - Use clear language, accurate reflection ("add"=new feature, "update"=enhancement, "fix"=bug fix)
60 - Use clear language, accurate reflection ("add"=new feature, "update"=enhancement, "fix"=bug fix)
61 - Avoid generic messages, review draft
61 - Avoid generic messages, review draft
62
62
63−4. Create commit with Crush signature using HEREDOC:
63+4. Create commit{{ if or (eq .Attribution.TrailerStyle "assisted-by") (eq .Attribution.TrailerStyle "co-authored-by")}} with attribution{{ end }} using HEREDOC:
64 git commit -m "$(cat <<'EOF'
64 git commit -m "$(cat <<'EOF'
65 Commit message here.
65 Commit message here.
66+
66−{{ if .Attribution.GeneratedWith}}
67+{{- if .Attribution.GeneratedWith}}
67 💘 Generated with Crush
68 💘 Generated with Crush
68−{{ end }}
69+{{- end}}
69−{{ if eq .Attribution.TrailerStyle "assisted-by"}}
70+{{- if eq .Attribution.TrailerStyle "assisted-by"}}
71+
70 Assisted-by: {{ .ModelName }} via Crush
72 Assisted-by: {{ .ModelName }} via Crush
71−{{ else if eq .Attribution.TrailerStyle "co-authored-by"}}
73+{{- else if eq .Attribution.TrailerStyle "co-authored-by"}}
74+
72 Co-Authored-By: Crush <crush@charm.land>
75 Co-Authored-By: Crush <crush@charm.land>
73−{{ end }}
76+{{- end}}
77+
74 EOF
78 EOF
75 )"
79 )"
76
80