multi-agents-cli 1.1.43 → 1.1.44

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.
@@ -156,6 +156,18 @@ const wipeAgent = ({ scope, agent, branch, worktreePath }) => {
156
156
  for (const entry of scopeContents) {
157
157
  fs.rmSync(require('path').join(scopeDir, entry), { recursive: true, force: true });
158
158
  }
159
+ // Restore CLAUDE.md from CLI templates if missing
160
+ const claudePath = require('path').join(scopeDir, 'CLAUDE.md');
161
+ if (!fs.existsSync(claudePath)) {
162
+ try {
163
+ const globalPkg = require('child_process').execSync('npm root -g', { stdio: 'pipe', encoding: 'utf8' }).trim();
164
+ const tmplPath = require('path').join(globalPkg, 'multi-agents-cli', 'core', 'templates', scope, 'CLAUDE.md');
165
+ if (fs.existsSync(tmplPath)) {
166
+ fs.mkdirSync(scopeDir, { recursive: true });
167
+ fs.copyFileSync(tmplPath, claudePath);
168
+ }
169
+ } catch {}
170
+ }
159
171
  require('child_process').execSync('git add -A', { cwd: ROOT, stdio: 'pipe' });
160
172
  require('child_process').execSync(
161
173
  `git commit --no-gpg-sign --no-verify -m "chore: remove ${scope} scope content for restart"`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-agents-cli",
3
- "version": "1.1.43",
3
+ "version": "1.1.44",
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",