diff --git a/.github/workflows/lint-agents.yml b/.github/workflows/lint-agents.yml index 57a683be..8616e442 100644 --- a/.github/workflows/lint-agents.yml +++ b/.github/workflows/lint-agents.yml @@ -19,7 +19,6 @@ on: - "support/**" - "spatial-computing/**" - "specialized/**" - - "strategy/**" jobs: lint: @@ -36,7 +35,7 @@ jobs: FILES=$(git diff --name-only --diff-filter=ACMR origin/${{ github.base_ref }}...HEAD -- \ 'academic/**/*.md' 'design/**/*.md' 'engineering/**/*.md' 'finance/**/*.md' 'game-development/**/*.md' 'gis/**/*.md' 'marketing/**/*.md' 'paid-media/**/*.md' 'sales/**/*.md' 'security/**/*.md' 'product/**/*.md' \ 'project-management/**/*.md' 'testing/**/*.md' 'support/**/*.md' \ - 'spatial-computing/**/*.md' 'specialized/**/*.md' 'strategy/**/*.md') + 'spatial-computing/**/*.md' 'specialized/**/*.md') { echo "files</dev/null) + return 1 +} +while IFS= read -r div; do + if [[ ! -d "$div" ]]; then + fail "division '$div' has no directory on disk" + elif ! has_agent_file "$div"; then + fail "division '$div' has no agent files (.md with '---' frontmatter) — not a real division" + fi +done < <(canonical) + # --- result ---------------------------------------------------------------- count="$(canonical | wc -l | tr -d ' ')" diff --git a/scripts/convert.sh b/scripts/convert.sh index 1521015d..1266109d 100755 --- a/scripts/convert.sh +++ b/scripts/convert.sh @@ -68,7 +68,7 @@ TODAY="$(date +%Y-%m-%d)" AGENT_DIRS=( academic design engineering finance game-development gis marketing paid-media product project-management - sales security spatial-computing specialized strategy support testing + sales security spatial-computing specialized support testing ) # --- Usage --- diff --git a/scripts/lint-agents.sh b/scripts/lint-agents.sh index 3b7a7c45..574ca6f1 100755 --- a/scripts/lint-agents.sh +++ b/scripts/lint-agents.sh @@ -26,7 +26,6 @@ AGENT_DIRS=( security spatial-computing specialized - strategy support testing )