@locusai/cli 0.17.5 → 0.17.6

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 -1
  2. package/package.json +1 -1
package/bin/locus.js CHANGED
@@ -1271,7 +1271,12 @@ function updateIssueLabels(number, addLabels, removeLabels, options = {}) {
1271
1271
  gh(args, options);
1272
1272
  }
1273
1273
  function addIssueComment(number, body, options = {}) {
1274
- gh(`issue comment ${number} --body ${JSON.stringify(body)}`, options);
1274
+ const cwd = options.cwd ?? process.cwd();
1275
+ execFileSync("gh", ["issue", "comment", String(number), "--body", body], {
1276
+ cwd,
1277
+ encoding: "utf-8",
1278
+ stdio: ["pipe", "pipe", "pipe"]
1279
+ });
1275
1280
  }
1276
1281
  function createMilestone(owner, repo, title, dueOn, description, options = {}) {
1277
1282
  let args = `api repos/${owner}/${repo}/milestones -f title=${JSON.stringify(title)}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusai/cli",
3
- "version": "0.17.5",
3
+ "version": "0.17.6",
4
4
  "description": "GitHub-native AI engineering assistant",
5
5
  "type": "module",
6
6
  "bin": {