claude-all-hands 1.0.21 → 1.0.23

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.
@@ -13,13 +13,21 @@ fi
13
13
 
14
14
  # Auto-install if node_modules missing
15
15
  if [ ! -d "$SCRIPT_DIR/node_modules" ]; then
16
- npm install --prefix "$SCRIPT_DIR" --silent 2>/dev/null
16
+ echo "Installing envoy dependencies..." >&2
17
+ if ! npm install --prefix "$SCRIPT_DIR" --legacy-peer-deps; then
18
+ echo "ERROR: npm install failed for claude-envoy" >&2
19
+ exit 1
20
+ fi
17
21
  cp "$SCRIPT_DIR/package.json" "$SCRIPT_DIR/node_modules/.package.json.cache" 2>/dev/null
18
22
  fi
19
23
 
20
24
  # Reinstall if package.json changed
21
25
  if ! cmp -s "$SCRIPT_DIR/package.json" "$SCRIPT_DIR/node_modules/.package.json.cache" 2>/dev/null; then
22
- npm install --prefix "$SCRIPT_DIR" --silent 2>/dev/null
26
+ echo "Updating envoy dependencies..." >&2
27
+ if ! npm install --prefix "$SCRIPT_DIR" --legacy-peer-deps; then
28
+ echo "ERROR: npm install failed for claude-envoy" >&2
29
+ exit 1
30
+ fi
23
31
  cp "$SCRIPT_DIR/package.json" "$SCRIPT_DIR/node_modules/.package.json.cache" 2>/dev/null
24
32
  fi
25
33
 
@@ -30,7 +30,7 @@ fi
30
30
  branch=$(git branch --show-current 2>/dev/null)
31
31
  if [ -n "$branch" ]; then
32
32
  if [ "$branch" = "main" ] || [ "$branch" = "master" ] || [ "$branch" = "develop" ] || [ "$branch" = "development" ] || [ "$branch" = "dev" ] || [ "$branch" = "staging" ] || [ "$branch" = "stage" ] || [ "$branch" = "production" ] || [ "$branch" = "prod" ] || [[ "$branch" == quick/* ]] || [[ "$branch" == curator/* ]] || [[ "$branch" == docs/* ]]; then
33
- # echo "Mode: Direct (no planning) - on $branch branch"
33
+ : # echo "Mode: Direct (no planning) - on $branch branch"
34
34
  else
35
35
  # Feature branch - ensure plan directory exists
36
36
  "$CLAUDE_PROJECT_DIR/.claude/envoy/envoy" plan init > /dev/null 2>&1
package/bin/cli.js CHANGED
@@ -6713,10 +6713,11 @@ async function cmdInit(target, autoYes = false) {
6713
6713
  console.log(" Done - your instructions preserved in CLAUDE.project.md");
6714
6714
  }
6715
6715
  const distributable = manifest.getDistributableFiles();
6716
+ const projectSpecificFiles = /* @__PURE__ */ new Set(["CLAUDE.project.md", ".claude/settings.local.json"]);
6716
6717
  const conflicts = [];
6717
6718
  for (const relPath of distributable) {
6718
6719
  if (relPath === "CLAUDE.md" && claudeMdMigrated) continue;
6719
- if (relPath === "CLAUDE.project.md" && claudeMdMigrated) continue;
6720
+ if (projectSpecificFiles.has(relPath) && existsSync4(join3(resolvedTarget, relPath))) continue;
6720
6721
  const sourceFile = join3(allhandsRoot, relPath);
6721
6722
  const targetFile = join3(resolvedTarget, relPath);
6722
6723
  if (existsSync4(targetFile) && existsSync4(sourceFile)) {
@@ -6753,12 +6754,12 @@ Auto-overwriting ${conflicts.length} conflicting files (--yes mode)`);
6753
6754
  let copied = 0;
6754
6755
  let skipped = 0;
6755
6756
  for (const relPath of [...distributable].sort()) {
6756
- if (relPath === "CLAUDE.project.md" && claudeMdMigrated) {
6757
+ const sourceFile = join3(allhandsRoot, relPath);
6758
+ const targetFile = join3(resolvedTarget, relPath);
6759
+ if (projectSpecificFiles.has(relPath) && existsSync4(targetFile)) {
6757
6760
  skipped++;
6758
6761
  continue;
6759
6762
  }
6760
- const sourceFile = join3(allhandsRoot, relPath);
6761
- const targetFile = join3(resolvedTarget, relPath);
6762
6763
  if (!existsSync4(sourceFile)) continue;
6763
6764
  mkdirSync(dirname5(targetFile), { recursive: true });
6764
6765
  if (existsSync4(targetFile)) {
@@ -6800,6 +6801,9 @@ ${"=".repeat(60)}`);
6800
6801
  if (resolution === "backup" && conflicts.length > 0) {
6801
6802
  console.log(`Created ${conflicts.length} backup file(s)`);
6802
6803
  }
6804
+ console.log("\nProject-specific files preserved (never overwritten):");
6805
+ console.log(" - CLAUDE.project.md");
6806
+ console.log(" - .claude/settings.local.json");
6803
6807
  console.log(`${"=".repeat(60)}`);
6804
6808
  console.log("\nNext steps:");
6805
6809
  console.log(" 1. Review CLAUDE.project.md for your project-specific instructions");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-all-hands",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "CLI for syncing Claude agent configurations to all-hands repository",
5
5
  "type": "module",
6
6
  "bin": {