agent-composer 0.1.7 → 0.1.8
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.
package/package.json
CHANGED
|
@@ -65,7 +65,7 @@ case "$TOOL" in
|
|
|
65
65
|
Edit|Write|NotebookEdit \
|
|
66
66
|
| mcp__*__write_file | mcp__*__edit_file \
|
|
67
67
|
| mcp__*__write | mcp__*__edit)
|
|
68
|
-
emit_deny "
|
|
68
|
+
emit_deny "DENY: dispatch Task(subagent_type=\"coder\"); no Bash workaround."
|
|
69
69
|
;;
|
|
70
70
|
esac
|
|
71
71
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# PostToolUse hook: auto-lint after Edit/Write/NotebookEdit. Fail-soft.
|
|
3
|
+
set -u
|
|
4
|
+
command -v jq >/dev/null 2>&1 || exit 0
|
|
5
|
+
INPUT="$(cat || true)"
|
|
6
|
+
[[ -z "$INPUT" ]] && exit 0
|
|
7
|
+
FILE="$(jq -r '.tool_input.file_path // empty' <<<"$INPUT" 2>/dev/null)"
|
|
8
|
+
[[ -z "$FILE" || ! -f "$FILE" ]] && exit 0
|
|
9
|
+
run() { command -v "$1" >/dev/null 2>&1 || return 0; "$@" >&2 2>&1 || printf 'lint-on-save: %s issues on %s\n' "$1" "$FILE" >&2; }
|
|
10
|
+
case "$FILE" in
|
|
11
|
+
*.ts|*.tsx|*.js|*.jsx|*.mjs|*.cjs|*.vue) run eslint --fix "$FILE" ;;
|
|
12
|
+
*.php)
|
|
13
|
+
if [[ -x vendor/bin/pint ]]; then
|
|
14
|
+
vendor/bin/pint "$FILE" >&2 2>&1 || printf 'lint-on-save: pint issues on %s\n' "$FILE" >&2
|
|
15
|
+
else
|
|
16
|
+
run php-cs-fixer fix "$FILE"
|
|
17
|
+
fi
|
|
18
|
+
;;
|
|
19
|
+
*.py) run ruff format "$FILE"; run ruff check --fix "$FILE" ;;
|
|
20
|
+
*.rs) run rustfmt "$FILE" ;;
|
|
21
|
+
*.go) run gofmt -w "$FILE" ;;
|
|
22
|
+
*.json|*.md|*.yml|*.yaml|*.css|*.scss|*.html) run prettier --write "$FILE" ;;
|
|
23
|
+
esac
|
|
24
|
+
exit 0
|
|
@@ -3,17 +3,30 @@
|
|
|
3
3
|
"version": "0.1.0",
|
|
4
4
|
"description": "Multi-agent orchestrator: Claude as brain, GLM/agy as executors. Dispatches code/research/review work to subagents wired through the @composer-mcp/server MCP server.",
|
|
5
5
|
"claudeCodeVersion": ">=4.6",
|
|
6
|
-
"requires": [
|
|
6
|
+
"requires": [
|
|
7
|
+
"agent-composer"
|
|
8
|
+
],
|
|
7
9
|
"settings": {
|
|
8
|
-
"PreToolUse": [
|
|
9
|
-
|
|
10
|
+
"PreToolUse": [
|
|
11
|
+
"bash:hooks/boundary_guard.sh"
|
|
12
|
+
],
|
|
13
|
+
"PostToolUse": [
|
|
14
|
+
"bash:hooks/lint-on-save.sh"
|
|
15
|
+
],
|
|
16
|
+
"Stop": [
|
|
17
|
+
"bash:hooks/learn.sh"
|
|
18
|
+
]
|
|
10
19
|
},
|
|
11
|
-
"skills": [
|
|
20
|
+
"skills": [
|
|
21
|
+
"skills/composer-mastermind/SKILL.md"
|
|
22
|
+
],
|
|
12
23
|
"agents": [
|
|
13
24
|
"agents/coder.md",
|
|
14
25
|
"agents/researcher.md",
|
|
15
26
|
"agents/reviewer.md"
|
|
16
27
|
],
|
|
17
|
-
"commands": [
|
|
28
|
+
"commands": [
|
|
29
|
+
"commands/evolve.md"
|
|
30
|
+
],
|
|
18
31
|
"license": "MIT"
|
|
19
32
|
}
|