Skip to content

fix: resilient two-phase setup — skills install without bun/Playwright#683

Open
jteng wants to merge 2 commits intogarrytan:mainfrom
jteng:fix/resilient-setup
Open

fix: resilient two-phase setup — skills install without bun/Playwright#683
jteng wants to merge 2 commits intogarrytan:mainfrom
jteng:fix/resilient-setup

Conversation

@jteng
Copy link
Copy Markdown

@jteng jteng commented Mar 30, 2026

Summary

  • Restructures ./setup into Phase 1 (skill linking — zero deps beyond bash+git) and Phase 2 (browse build + Playwright — requires bun)
  • Phase 1 always runs first, so Claude skills are linked on any system — even corporate laptops that can't install bun or Playwright
  • Phase 2 failures produce warnings, not fatal exits. Unified summary at end reports what succeeded

What changed

  • Fatal bun check → conditional HAS_BUN flag
  • Skill linking moved before browse build
  • Codex/Factory linking guarded on .agents//.factory/ directory existence
  • Kiro browse symlinks guarded on browse/dist existence
  • Phase 2 wrapped in set +e / set -e for error tolerance
  • 8 new structural tests for phase ordering and resilience

Test plan

  • bun test passes (633 tests, 0 failures)
  • Run ./setup without bun → links Claude skills, warns about rest, no fatal exit
  • Run ./setup with bun but Playwright fails → no exit 1 in browse build or Playwright sections
  • Run ./setup normally → identical behavior to current, plus unified summary

🤖 Generated with Claude Code

Jing Teng and others added 2 commits March 30, 2026 17:16
…wright

Restructure setup into Phase 1 (skill linking, zero deps beyond bash+git)
and Phase 2 (browse build + Playwright, requires bun). Phase 1 always runs
first so Claude skills are linked on any system. Phase 2 failures produce
warnings, not exits. Adds unified summary at end.

- Convert fatal bun check to conditional HAS_BUN flag
- Move skill linking before browse build
- Guard Codex/Factory linking on .agents/.factory directory existence
- Guard Kiro browse symlinks on browse/dist existence
- Wrap Phase 2 in set +e / set -e for error tolerance
- Add 8 structural tests for phase ordering and resilience

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Resolve conflict in setup: keep resilient two-phase approach (HAS_BUN flag)
while incorporating upstream's security-hardened bun install instructions
with checksum verification.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant