@momo-edc-ai-debugger/installer
v0.1.0
Published
Bootstrapper công khai: kiểm tra quyền GitLab → tải & cài EDC Debugger (private)
Readme
EDC Debugger — Installer (public npm wrapper)
Gói public mỏng để cài EDC Debugger lên máy mới. Mã thật nằm trong repo GitLab private — chỉ tài khoản có quyền (đã glab auth login) mới tải được.
Dùng
npx @momo-edc-ai-debugger/installerLuồng
- Preflight: kiểm tra
git,node,glab. - Checking access:
glab auth status(đã đăng nhập?) +glab api projects/:id(đọc được repo?) → có quyền mới đi tiếp; chưa đăng nhập → hướng dẫnglab auth login. - Downloading:
glab repo clonelần đầu /git fetch + reset --hardcác lần sau (auth qua glab credential helper) vào~/.edc-debugger/app. - Installing:
npm install+npm run build:web. - Launching: chạy agent → wizard hỏi API key (Gemini/Claude, kế thừa giá trị đã lưu) → serve UI
http://localhost:8917→ tự mở browser.
Hỗ trợ macOS + Windows (dùng git/node/glab).
Cấu hình khi publish
Đặt project path repo của bạn (1 trong 2):
- Sửa hằng
REPO_PATHtrongsrc/installer-config.ts, hoặc - Đặt env khi chạy:
EDC_REPO=owner/repo(vdanh.hoang8/MoMo-EDC-AI-debugger)
Env hỗ trợ: EDC_REPO (owner/repo), EDC_GITLAB_HOST (mặc định gitlab.com), EDC_BRANCH (mặc định main), EDC_INSTALL_DIR.
Build & publish
npm install
npm run build # tsc → dist/
npm publish --access public # đặt name/scope của bạn trong package.jsonBảo mật: repo private = rào chắn bằng quyền GitLab per-user (glab token). Gói public chỉ chứa logic tải/cài, không chứa code app, không chứa token.
