diff --git a/AGENTS.md b/AGENTS.md index f431f135119570bc99e18843bf3d0fb53ed6dfab..0e507e2c9d8caae3e6ca603d7df97311e869d9a3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -25,7 +25,7 @@ This file provides guidance to AI coding agents when working with code in this r Example usage: ```bash -just run -t feat -m "add validation" -T "Co-authored-by: Name " +just run -t feat -m "add validation" -T "Assisted-by: GLM 4.6 via Crush" ``` ## Project Purpose @@ -97,7 +97,7 @@ Trailers follow git's specification precisely: Example valid trailer: ``` -Co-authored-by: This is a very long value, with spaces and +Assisted-by: This is a very long value, with spaces and newlines in it. ``` @@ -111,7 +111,7 @@ Co-authored-by: This is a very long value, with spaces and - `-T` / `--trailer`: Repeatable flag accepting full trailer strings in `Key: value` format (not separate key/value args) - `-a` / `--amend`: Boolean flag to amend the previous commit instead of creating a new one -Trailer format detail: Each `-T` flag takes a complete trailer string like `-T "Co-authored-by: Name "`, NOT separate key and value arguments. +Trailer format detail: Each `-T` flag takes a complete trailer string like `-T "Assisted-by: GLM 4.6 via Crush"`, NOT separate key and value arguments. ### Final Output diff --git a/README.md b/README.md index 3ea0d6de9c75a58865b43417664f1258b3d95115..00b7d9b2a1ba76abbb82ec762acb324e977031a3 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Create/amend commits exclusively using `formatted-commit`. Try to use it normall -h --help -formatted-commit -t feat -s "web/git-bug" -m "do a fancy new thing" -T "Crush " -b "$(cat <<'EOF' +formatted-commit -t feat -s "web/git-bug" -m "do a fancy new thing" -T "Assisted-by: GLM 4.6 via Crush" -b "$(cat <<'EOF' Multi-line - Body @@ -124,8 +124,8 @@ $ formatted-commit -h EXAMPLES - # With co-author - formatted-commit -t feat -m "do a thing" -T "Crush " + # With Assisted-by + formatted-commit -t feat -m "do a thing" -T "Assisted-by: GLM 4.6 via Crush" # Breaking change with longer body formatted-commit -t feat -m "do a thing that borks a thing" -B -b "$(cat <<'EOF' diff --git a/main.go b/main.go index efc3551b3705f61625a96e7944b5e9a94a131333..cf34bcdbd815aef8673554272666a54afec596b8 100644 --- a/main.go +++ b/main.go @@ -33,8 +33,8 @@ var rootCmd = &cobra.Command{ the Conventional Commits specification with proper subject length validation, body wrapping, and trailer formatting.`, Example: ` -# With co-author -formatted-commit -t feat -m "do a thing" -T "Crush " +# With Assisted-by +formatted-commit -t feat -m "do a thing" -T "Assisted-by: GLM 4.6 via Crush" # Breaking change with longer body formatted-commit -t feat -m "do a thing that borks a thing" -B -b "$(cat <<'EOF'