Extract a shared Muster Server client package for the CLI and muster-server

Đang mở
#452 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
cli, developer-experience

Hướng nghiên cứu

Start by reading packages/server/src/cli.ts, cli-agent.ts and cli-work.ts, then compare them with the CLI client files packages/cli/src/server-client.ts and server-command.ts in musterhq/muster. Trace the package boundaries and available tests before deciding how both consumers can use the shared client. Done means the request, origin rule, bearer /rpc calls and work commands are shared, with no behavior change for muster-server.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

packages/server/src/cli.ts (request), cli-agent.ts (origin rule) and cli-work.ts (work commands) are the only client for /rpc. The Muster CLI (musterhq/muster) now has its own small client (packages/cli/src/server-client.ts, server-command.ts). Extract request, the https-or-loopback origin rule, bearer /rpc calls and the work commands into one package both consume, so the rules and command names are not copied. No behavior change for muster-server.

Ngôn ngữ chính
TypeScript
Star
3
Fork
0
Merge trung bình
17 giờ 33 phút
Pull request đã merge (30 ngày)
163

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của musterhq/muster-code

Tất cả issue của musterhq/muster-code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.