claude-all-hands 1.0.13 → 1.0.15

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.
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import { execSync, spawnSync } from "child_process";
6
+ import { basename } from "path";
6
7
 
7
8
  // Protected branches - no planning required
8
9
  const PROTECTED_BRANCHES = new Set([
@@ -126,6 +127,13 @@ export function getProjectRoot(): string {
126
127
  }
127
128
  }
128
129
 
130
+ /**
131
+ * Get the repo's root directory name (e.g., "claude-agents").
132
+ */
133
+ export function getRepoName(): string {
134
+ return basename(getProjectRoot()) || "";
135
+ }
136
+
129
137
  /**
130
138
  * Get the plan directory path for current branch.
131
139
  */
@@ -14,7 +14,7 @@
14
14
  import { spawnSync } from "child_process";
15
15
  import { existsSync } from "fs";
16
16
  import { logInfo, logWarn } from "./observability.js";
17
- import { getBranch } from "./git.js";
17
+ import { getBranch, getRepoName } from "./git.js";
18
18
 
19
19
  export interface NotifyOptions {
20
20
  title: string; // Event type (required)
@@ -56,13 +56,15 @@ export function sendNotification(options: NotifyOptions): boolean {
56
56
  return false;
57
57
  }
58
58
 
59
+ const repo = getRepoName();
59
60
  const branch = getBranch() || "unknown";
61
+ const subtitle = repo ? `${repo} ${branch}` : branch;
60
62
  const notifType = options.type || "banner";
61
63
 
62
64
  const args: string[] = [
63
65
  "--type", notifType,
64
66
  "--title", options.title,
65
- "--subtitle", branch,
67
+ "--subtitle", subtitle,
66
68
  "--message", options.message,
67
69
  ];
68
70
 
@@ -9,9 +9,11 @@ url = data.get("tool_input", {}).get("url", "")
9
9
  if not url:
10
10
  sys.exit(0)
11
11
 
12
- # JSON output with additionalContext for Claude self-correction
13
12
  print(json.dumps({
14
- "continue": False,
15
- "additionalContext": "WebFetch blocked.\n\nMain agent: delegate to researcher agent.\nSubagent: use `envoy tavily extract \"<url>\"` instead."
13
+ "hookSpecificOutput": {
14
+ "hookEventName": "PreToolUse",
15
+ "permissionDecision": "deny",
16
+ "permissionDecisionReason": "WebFetch blocked. Main agent: delegate to researcher agent. Subagent: use `envoy tavily extract \"<url>\"` instead."
17
+ }
16
18
  }))
17
19
  sys.exit(0)
@@ -3,9 +3,11 @@
3
3
  import json
4
4
  import sys
5
5
 
6
- # JSON output with additionalContext for Claude self-correction
7
6
  print(json.dumps({
8
- "continue": False,
9
- "additionalContext": "WebSearch blocked.\n\nMain agent: delegate to researcher agent.\nSubagent: respond to main agent requesting researcher delegation."
7
+ "hookSpecificOutput": {
8
+ "hookEventName": "PreToolUse",
9
+ "permissionDecision": "deny",
10
+ "permissionDecisionReason": "WebSearch blocked. Main agent: delegate to researcher agent. Subagent: respond to main agent requesting researcher delegation."
11
+ }
10
12
  }))
11
13
  sys.exit(0)
@@ -134,8 +134,9 @@
134
134
  "padding": 0
135
135
  },
136
136
  "enabledPlugins": {
137
+ "swift-lsp@claude-plugins-official": true,
137
138
  "vtsls@claude-code-lsps": true,
138
- "pyright@claude-code-lsps": true,
139
+ "basedpyright@claude-code-lsps": true,
139
140
  "vscode-langservers@claude-code-lsps": true
140
141
  }
141
142
  }
@@ -1,7 +1,6 @@
1
1
  #!/bin/bash
2
2
  # Project status line - uses ccline if available, adds validation errors
3
3
 
4
- input=$(cat)
5
4
  PROJECT_DIR=$(printf '%s' "$input" | jq -r '.workspace.project_dir // empty')
6
5
 
7
6
  # Check for validation errors first
@@ -13,12 +12,9 @@ if [ -n "$PROJECT_DIR" ] && [ -f "$PROJECT_DIR/.claude/hooks/validate_artifacts.
13
12
  fi
14
13
  fi
15
14
 
16
- # Try ccline (global install)
17
- CCLINE="$HOME/.claude/ccline/ccline"
18
- if [ -x "$CCLINE" ]; then
19
- printf '%s' "$input" | "$CCLINE" 2>/dev/null
20
- [ "$ERROR_COUNT" -gt 0 ] && echo -e "\033[31m⚠ ${ERROR_COUNT} errors (run /validate to view)\033[0m"
15
+ STATUS=$(ccline)
16
+ if [ "$ERROR_COUNT" -gt 0 ]; then
17
+ echo -e "${STATUS} \033[31m⚠ ${ERROR_COUNT} errors\033[0m"
21
18
  else
22
- # No ccline - only show validation errors if any
23
- [ "$ERROR_COUNT" -gt 0 ] && echo -e "\033[31m⚠ ${ERROR_COUNT} errors (run /validate to view)\033[0m"
19
+ echo "$STATUS"
24
20
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-all-hands",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "CLI for syncing Claude agent configurations to all-hands repository",
5
5
  "type": "module",
6
6
  "bin": {