From b46c412ec2fd51eccb062452210579639559c6fd Mon Sep 17 00:00:00 2001 From: tukuaiai Date: Tue, 19 May 2026 14:00:02 +0800 Subject: [PATCH] feat: skills - add auto-tmux report manifest --- skills/auto-tmux/SKILL.md | 2 +- skills/auto-tmux/references/automation.md | 2 +- .../auto-tmux/references/iteration-roadmap.md | 5 ++- skills/auto-tmux/scripts/README.md | 1 + skills/auto-tmux/scripts/swarm-report-pack.sh | 42 ++++++++++++++++++- .../auto-tmux/scripts/validate-auto-tmux.sh | 3 ++ 6 files changed, 50 insertions(+), 5 deletions(-) diff --git a/skills/auto-tmux/SKILL.md b/skills/auto-tmux/SKILL.md index b8c47d2..e4a6995 100644 --- a/skills/auto-tmux/SKILL.md +++ b/skills/auto-tmux/SKILL.md @@ -289,7 +289,7 @@ skills/auto-tmux/scripts/swarm-dispatch.sh --role worker --target : 0)); then mkdir -p "$out_dir/attachments" cat > "$out_dir/attachments.md" <> "$out_dir/attachments.md" attachment_lines+="- [$rel_path](./$rel_path)"$'\n' + if ((attachment_count > 0)); then + attachment_json+=","$'\n' + fi + attachment_json+=" {\"source\":\"$(json_escape "$attachment")\",\"path\":\"$(json_escape "$rel_path")\"}" + attachment_count=$((attachment_count + 1)) done fi +cat > "$out_dir/manifest.json" <}")", + "files": [ + "index.md", + "board.md", + "deps.md", + "timeline.md", + "blockers.md", + "assign.md", + "export/manifest.json" + ], + "attachments": [ +$attachment_json + ] +} +EOF + cat > "$out_dir/index.md" <}\` @@ -120,6 +159,7 @@ cat > "$out_dir/index.md" < "$tmp/remote/remote-tmux.txt" "$1" --dir "$tmp/swarm" --out "$tmp/out" --attach "$tmp/remote" >/dev/null grep -Fq "attachments.md" "$tmp/out/index.md" + grep -Fq "manifest.json" "$tmp/out/index.md" + grep -Fq "\"type\": \"auto-tmux-swarm-report-pack\"" "$tmp/out/manifest.json" + grep -Fq "\"attachments\"" "$tmp/out/manifest.json" grep -Fq "remote-tmux.txt" "$tmp/out/attachments/remote/remote-tmux.txt" rm -rf "$tmp" ' _ "$script_dir/swarm-report-pack.sh"