@locusai/cli 0.17.14 → 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.
Files changed (2) hide show
  1. package/bin/locus.js +6 -4
  2. package/package.json +1 -1
package/bin/locus.js CHANGED
@@ -4054,7 +4054,8 @@ class CodexRunner {
4054
4054
  const event = JSON.parse(line);
4055
4055
  const { type, item } = event;
4056
4056
  if (type === "item.started" && item?.type === "command_execution") {
4057
- const cmd = (item.command ?? "").slice(0, 80);
4057
+ const cmd = (item.command ?? "").split(`
4058
+ `)[0].slice(0, 80);
4058
4059
  options.onToolActivity?.(`running: ${cmd}`);
4059
4060
  } else if (type === "item.completed" && item?.type === "command_execution") {
4060
4061
  const code = item.exit_code;
@@ -5856,7 +5857,7 @@ ${gitLog}
5856
5857
  function buildExecutionRules(config) {
5857
5858
  return `# Execution Rules
5858
5859
 
5859
- 1. **Commit format:** Use conventional commits: \`feat: <title> (#<issue>)\`, \`fix: ...\`, \`chore: ...\`. Always include a blank line followed by \`Co-Authored-By: LocusAgent <agent@locusai.team>\` as a trailer in every commit message.
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.
5860
5861
  2. **Code quality:** Follow existing code style. Run linters/formatters if available.
5861
5862
  3. **Testing:** If test files exist for modified code, update them accordingly.
5862
5863
  4. **Do NOT:**
@@ -8300,7 +8301,8 @@ function ensureTaskCommit(projectRoot, issueNumber, issueTitle) {
8300
8301
  const message = `chore: complete #${issueNumber} - ${issueTitle}
8301
8302
 
8302
8303
  Co-Authored-By: LocusAgent <agent@locusai.team>`;
8303
- execSync12(`git commit -m ${JSON.stringify(message)}`, {
8304
+ execSync12(`git commit -F -`, {
8305
+ input: message,
8304
8306
  cwd: projectRoot,
8305
8307
  encoding: "utf-8",
8306
8308
  stdio: ["pipe", "pipe", "pipe"]
@@ -8786,7 +8788,7 @@ ${bold("Plan saved:")} ${cyan(id)}
8786
8788
  `);
8787
8789
  return;
8788
8790
  }
8789
- process.stderr.write(` To create these issues: ${bold(`locus plan approve ${id.slice(0, 8)}`)}
8791
+ process.stderr.write(` To create these issues: ${bold(`locus plan approve ${id.slice(0, 8)} --sprint <sprint name>`)}
8790
8792
 
8791
8793
  `);
8792
8794
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusai/cli",
3
- "version": "0.17.14",
3
+ "version": "0.17.16",
4
4
  "description": "GitHub-native AI engineering assistant",
5
5
  "type": "module",
6
6
  "bin": {