Skip to content

fix: add update UX, file-level version patching, and v0.3→v0.4 migration#6

Merged
Soju06 merged 1 commit intomainfrom
fix/update-ux-version-patching
Feb 27, 2026
Merged

fix: add update UX, file-level version patching, and v0.3→v0.4 migration#6
Soju06 merged 1 commit intomainfrom
fix/update-ux-version-patching

Conversation

@Soju06
Copy link
Owner

@Soju06 Soju06 commented Feb 27, 2026

Summary

  • Update UX: install/update 실행 시 최신 버전 알림 표시. bunx/npx ephemeral 실행 감지하여 올바른 update command 반환
  • File-level version patching: install 시 canonical이 이미 존재하면 파일 단위로 version 비교 후 변경된 파일만 패치
  • v0.3→v0.4 migration: version 태그 없는 legacy 설치 자동 감지 → 전체 재동기화 + stale hook 마이그레이션

Changes

  • Skill/correction 파일 10개에 version YAML 태그 + x-release-please-version 마커 추가
  • release-please-config.json에 extra-files 등록 (릴리스 시 자동 version bump)
  • parser.ts: Frontmatter/CorrectionFileversion? 필드 추가
  • install.ts: canonical 재동기화 로직 (legacy 감지 → full sync, version diff → file patch), hook 마이그레이션 (stale → update), 설치 후 update 알림
  • update.ts: non-interactive 모드에서도 version check + 한 줄 알림
  • package-manager.ts: isEphemeral() 추가, ephemeral 환경용 update command 분기
  • 테스트 추가: version 파싱, ephemeral 감지

Test plan

  • tsc --noEmit pass
  • bun test — 117 tests pass
  • v0.3 legacy 시뮬레이션: version 태그 없는 SKILL.md로 canonical 구성 후 install → 전체 재동기화 확인
  • stale hook 시뮬레이션: old format hook으로 settings.json 구성 후 install → 마이그레이션 확인
  • bunx 감지: TMPDIR 경로에서 실행 시 올바른 update command 반환 확인

- Add version tags to all skill/correction files with release-please markers
- Add file-level version patching on install (skip unchanged files)
- Detect v0.3 legacy installs (no version tag) and auto-migrate
- Migrate stale hooks (ephemeral→skills-scope path) on install
- Add non-blocking update notification after install
- Detect bunx/npx ephemeral execution and return correct update command
- Show version check in non-interactive mode (one-line notification)
- Update release-please config with extra-files for skill version bumping
@Soju06 Soju06 merged commit be3a963 into main Feb 27, 2026
5 checks passed
@Soju06 Soju06 deleted the fix/update-ux-version-patching branch February 27, 2026 15:36
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