majlis 0.8.3 → 0.8.4

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/dist/cli.js +6 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -5524,11 +5524,15 @@ function gitCommitBuild(exp, cwd) {
5524
5524
  info("No code changes to commit.");
5525
5525
  return;
5526
5526
  }
5527
- const msg = `EXP-${String(exp.id).padStart(3, "0")}: ${exp.slug}
5527
+ const guidance = exp.builder_guidance ?? "";
5528
+ const iterationNums = guidance.match(/### Iteration (\d+)/g)?.map((m) => parseInt(m.replace("### Iteration ", ""), 10)) ?? [];
5529
+ const iterNum = iterationNums.length > 0 ? Math.max(...iterationNums) + 1 : 1;
5530
+ const iterTag = iterNum > 1 ? ` [iter ${iterNum}]` : "";
5531
+ const msg = `EXP-${String(exp.id).padStart(3, "0")}: ${exp.slug}${iterTag}
5528
5532
 
5529
5533
  ${exp.hypothesis ?? ""}`;
5530
5534
  (0, import_node_child_process5.execFileSync)("git", ["commit", "-m", msg], { cwd, encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] });
5531
- info(`Committed builder changes on ${exp.branch}.`);
5535
+ info(`Committed builder changes on ${exp.branch}${iterTag}.`);
5532
5536
  } catch {
5533
5537
  warn("Could not auto-commit builder changes \u2014 commit manually before resolving.");
5534
5538
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "majlis",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "Multi-agent workflow CLI for structured doubt, independent verification, and compressed knowledge",
5
5
  "bin": {
6
6
  "majlis": "./dist/cli.js"