@locusai/cli 0.17.15 → 0.17.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/locus.js +3 -2
- package/package.json +1 -1
package/bin/locus.js
CHANGED
|
@@ -5857,7 +5857,7 @@ ${gitLog}
|
|
|
5857
5857
|
function buildExecutionRules(config) {
|
|
5858
5858
|
return `# Execution Rules
|
|
5859
5859
|
|
|
5860
|
-
1. **Commit format:** Use conventional commits: \`feat: <title> (#<issue>)\`, \`fix: ...\`, \`chore: ...\`.
|
|
5860
|
+
1. **Commit format:** Use conventional commits: \`feat: <title> (#<issue>)\`, \`fix: ...\`, \`chore: ...\`. Every commit message MUST be multi-line: the first line is the title, then a blank line, then \`Co-Authored-By: LocusAgent <agent@locusai.team>\` as a Git trailer. Use \`git commit -m "<title>" -m "Co-Authored-By: LocusAgent <agent@locusai.team>"\` (two separate -m flags) to ensure the trailer is on its own line.
|
|
5861
5861
|
2. **Code quality:** Follow existing code style. Run linters/formatters if available.
|
|
5862
5862
|
3. **Testing:** If test files exist for modified code, update them accordingly.
|
|
5863
5863
|
4. **Do NOT:**
|
|
@@ -8301,7 +8301,8 @@ function ensureTaskCommit(projectRoot, issueNumber, issueTitle) {
|
|
|
8301
8301
|
const message = `chore: complete #${issueNumber} - ${issueTitle}
|
|
8302
8302
|
|
|
8303
8303
|
Co-Authored-By: LocusAgent <agent@locusai.team>`;
|
|
8304
|
-
execSync12(`git commit -
|
|
8304
|
+
execSync12(`git commit -F -`, {
|
|
8305
|
+
input: message,
|
|
8305
8306
|
cwd: projectRoot,
|
|
8306
8307
|
encoding: "utf-8",
|
|
8307
8308
|
stdio: ["pipe", "pipe", "pipe"]
|