Go client: expose EngineInfo.kind and EngineInfo.protocol (the service already fills them)

Đang mở Phù hợp với người mới
#2,341 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
api

Hướng nghiên cứu

Bắt đầu với client/opensysml/engines.go và định nghĩa EngineInfo trong api/proto/sysml.proto; kiểm tra cách ListEngines ánh xạ các trường phản hồi hiện có. Cập nhật ánh xạ của Go client và kiểm tra các trường hợp công cụ tích hợp sẵn và công cụ đã đăng ký trong client/opensysml/engines_test.go. Hoàn tất khi cả hai giá trị khớp với service và các trường hiện có vẫn giữ nguyên; issue cũng yêu cầu ô Go trong bài kiểm tra parity và tài liệu.

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

Mô tả

Disclaimer, this issue was detected and written by an AI

Summary

ListEnginesResponse carries each engine's origin and transport:
EngineInfo.kind (built-in, tool, engine, policy, sampler) and
EngineInfo.protocol (-, object, argv+<stdin>, <transport>/<protocol>).
The service fills both. client/opensysml drops them, so an in-process caller
cannot tell an engine's kind or how it is spoken to and falls back to forking
sysml -engines.

Current state

  • api/proto/sysml.proto::EngineInfo — kind = 9, protocol = 10.
  • client/opensysml/engines.go:12 — EngineInfo has Name, Authority,
    Answers, Bounds, Process, ProcessFound, Ready, Unavailable; no
    Kind, no Protocol.
  • ListEngines at engines.go:115 copies fields 1–8 only.

Proposal

  • Add Kind string and Protocol string to EngineInfo, with the proto's
    comments, and copy e.Kind/e.Protocol in ListEngines.
  • No capability gate: the fields are part of the existing engines response.

Tests

  • client/opensysml/engines_test.go: a service with a built-in engine reports
    Kind == "built-in" and Protocol == "-"; a registered tool reports its
    manifest kind and <transport>/<protocol> spelling; the undecoded old fields
    are unchanged.
  • parity_options_test.go/parity doc: add the Go cell.

Acceptance

  • EngineInfo.Kind/.Protocol match the service for built-in and external
    engines.
  • No new capability gate; existing ListEngines callers keep working.
Ngôn ngữ chính
Go
Star
59
Fork
20
Merge trung bình
10 giờ 23 phút
Pull request đã merge (30 ngày)
897

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 Open-MBEE/OpenSysML

Tất cả issue của Open-MBEE/OpenSysML

Issue tương tự

Thêm issue về Go

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.