feat(tools): install every discovered portal CLI with one command (#540) (#541)

README and SETUP.md hardcoded the six shipped portals in four PowerShell/Bash
loops, so a portal added by /add-portal or borrowed from another fork was
skipped on a fresh clone. tools/install_portal_clis.py uses CI's discover-clis
glob, isolates per-CLI failures, and skips manifests with lifecycle scripts or
trustedDependencies.
This commit is contained in:
落尘 authored and GitHub committed 2026-10-15 11:32:17 +02:00
1 parent eaa73e55ab
commit 8a3094f138
5 files changed
+230 -31

No files matched your search

+4 -16
View File
@@ -89,25 +89,12 @@ cd ai-job-search
### 2. Install job search tools
PowerShell:
```powershell
$tools = @("jobbank-search", "jobdanmark-search", "jobindex-search", "jobnet-search", "linkedin-search", "freehire-search")
foreach ($tool in $tools) {
Push-Location ".agents/skills/$tool/cli"
bun install
Pop-Location
}
```
Bash / zsh / Git Bash:
```bash
for tool in jobbank-search jobdanmark-search jobindex-search jobnet-search linkedin-search freehire-search; do
(cd .agents/skills/$tool/cli && bun install)
done
python3 tools/install_portal_clis.py # Windows: python tools\install_portal_clis.py
```
It runs `bun install` in every portal CLI under `.agents/skills/*/cli/` - discovered, not listed, so a portal you add with `/add-portal` or copy from another fork is included on a fresh clone. A CLI whose `package.json` declares an install-time lifecycle script is skipped and reported rather than run. `--dry-run` shows what it would install.
For `linkedin-search` and `freehire-search` the install is optional: both have zero runtime dependencies and run with plain `bun`; `bun install` only pulls TypeScript dev types.
### 3. Set up your profile
@@ -221,6 +208,7 @@ ai-job-search/
│ ├── check_framework_version.py # CI check: framework_version bumped when skill files change
│ ├── check_upstream_updates.py # Preview which personalized files an upstream update touches
│ ├── convert_salary_excel.py # Convert salary Excel to JSON
│ ├── install_portal_clis.py # Install every discovered portal CLI (bun install)
│ ├── lint_skills.py # CI lint for skills, commands, settings.json
│ ├── robots_check.py # Gate the browser-header retry against robots.txt
│ ├── security_guards.py # CI guards: permission allowlist, gitignore rules, manifests