multi-agents-cli 1.0.29 → 1.0.31

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/init.js +2 -1
  2. package/package.json +1 -1
package/init.js CHANGED
@@ -89,7 +89,8 @@ if (isReInit) {
89
89
  // Re-init from inside project or worktree - self-relocate to repo root
90
90
  try {
91
91
  const { execSync } = require('child_process');
92
- const repoRoot = execSync('git rev-parse --show-toplevel', { encoding: 'utf8' }).trim();
92
+ const gitCommonDir = execSync('git rev-parse --git-common-dir', { encoding: 'utf8' }).trim();
93
+ const repoRoot = require('path').resolve(gitCommonDir, '..');
93
94
  process.chdir(repoRoot);
94
95
  } catch { /* stay in current directory */ }
95
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-agents-cli",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "Multi-agent workflow orchestration for Claude Code — isolated git worktrees, structured state tracking, autonomous task chaining",
5
5
  "keywords": [
6
6
  "claude-code",