Skip to content

feat: distribute csp via Homebrew tap#22

Merged
amondnet merged 4 commits into
mainfrom
amondnet/homebrew
Jun 18, 2026
Merged

feat: distribute csp via Homebrew tap#22
amondnet merged 4 commits into
mainfrom
amondnet/homebrew

Conversation

@amondnet

@amondnet amondnet commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

요약

pleaseai/homebrew-tap을 통한 csp 배포를 추가합니다. asana/notion 패턴을 따르되, csp의 네이티브 의존성에 맞게 조정했습니다.

brew install pleaseai/tap/csp

변경 내용

  • csp --version / -V 구현 및 MCP 서버 버전 동기화 (src/version.ts 단일 출처)
  • src/version.ts에 release-please x-release-please-version 주석 추가
  • release-please-config.json + .release-please-manifest.json (node release-type)
  • .github/workflows/release-please.yml:
    • release-please → 4-아키텍처 네이티브 러너 바이너리 빌드 → GitHub Release 업로드 → homebrew-tapcsp.rb 자동 push
  • 두 README에 Homebrew 설치 안내 추가

네이티브 빌드 주의점 (asana와의 차이)

csp는 플랫폼별 네이티브 addon(onnxruntime-node, @kreuzberg/tree-sitter-language-pack)에 의존합니다. bun build --compile호스트 플랫폼.node를 임베드하므로, --target으로 교차 컴파일하면 잘못된 아키텍처가 들어가 bad CPU type in executable로 실패합니다(실측 확인). 따라서 각 타깃을 네이티브 러너(macos-13/macos-14/ubuntu-latest/ubuntu-24.04-arm)에서 빌드합니다.

검증: 네이티브 컴파일 바이너리로 실제 csp search 동작(tree-sitter 파싱 + onnxruntime 임베딩) 및 csp --version 확인 완료.

후속

  • homebrew-tapcsp.rb첫 릴리스 시 워크플로가 자동 생성합니다. (tap README에는 csp 항목을 미리 추가해 push 완료)
  • CI 시크릿 APP_ID / PRIVATE_KEY는 기존 org 설정(asana/notion에서 사용 중)을 그대로 사용합니다.

Summary by cubic

Add Homebrew distribution for csp with per-arch native binaries and an automated release pipeline. Install with brew install pleaseai/tap/csp; --version/-V is implemented and the MCP server reports the same version.

  • New Features
    • Homebrew publishing: per-arch native builds (macos-13, macos-14, ubuntu-latest, ubuntu-24.04-arm), upload to Release, and auto-update pleaseai/homebrew-tap with csp.rb + checksums. Built on native runners (due to onnxruntime-node / @kreuzberg/tree-sitter-language-pack).
    • Versioning: add csp --version / -V; MCP server reads from a single source in src/version.ts (annotated with x-release-please-version) managed by release-please.
    • CI: sync bun.lock into release PRs for clean bun install --frozen-lockfile, and pin GitHub Actions to full commit SHAs.
    • Docs: add Homebrew install instructions to README.md and README.ko.md, and note the correct cache path ~/.csp/.

Written for commit 9b85115. Summary will update on new commits.

Add a release pipeline that publishes standalone csp binaries and updates
the pleaseai/homebrew-tap formula on each release.

- wire `csp --version` / `-V` and sync version into the MCP server
- annotate src/version.ts for release-please version bumping
- add release-please config + manifest (node release-type)
- add release-please workflow: build per-arch native binaries
  (onnxruntime/tree-sitter addons can't cross-compile via bun --target),
  upload to the GitHub release, then push csp.rb to homebrew-tap
- document `brew install pleaseai/tap/csp` in both READMEs
@codacy-production

codacy-production Bot commented Jun 18, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이번 풀 리퀘스트는 release-please를 도입하여 버전 관리 및 릴리스 프로세스를 자동화하고, CLI에 버전 확인 기능(-V, --version)을 추가하며, README에 Homebrew 설치 안내를 업데이트하는 변경사항을 포함하고 있습니다. 구체적으로는 release-please 설정 파일들을 추가하고, src/version.ts를 통해 버전을 동적으로 관리하도록 cli.tsmcp/server.ts를 수정하였습니다. 검토할 리뷰 의견이 없으므로 추가적인 피드백은 제공하지 않습니다.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found and verified against the latest diff

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread README.md Outdated
@amondnet amondnet merged commit 0278323 into main Jun 18, 2026
2 checks passed
@amondnet amondnet deleted the amondnet/homebrew branch June 18, 2026 02:48
This was referenced Jun 18, 2026
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