fix(cli): translate output differs in bytes from install output

Đang mở
#1,312 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
Lỗi
Độ 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, testing

Hướng nghiên cứu

Start with cli/tests/contexts/translate/application/translate-distribution-conformance.integration.test.ts on the refactor/cli-target branch and read its DIVERGENCES and MANIFEST_DIVERGENCES entries. For each entry, remove its allowance and use the failing test to identify the translate and install paths involved. The work is done when both paths produce the same bytes or the difference has a documented decision, and the conformance test passes.

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

Mô tả

Description

aidd translate output differs in bytes from what an install writes for the same plugins. The differences are currently named, and tolerated, by a conformance test on the refactor/cli-target branch. They are listed here so each can be fixed or accepted on purpose. Path A is the translate output (disk), path B is the install output.

Affected file(s)

cli/tests/contexts/translate/application/translate-distribution-conformance.integration.test.ts on refactor/cli-target (DIVERGENCES, MANIFEST_DIVERGENCES). Not on next yet: next has no conformance test for it.

Expected behaviour

Translate and install write the same bytes for the same content, or each difference is a documented decision.

Observed behaviour

DIVERGENCES:

  1. A rewrites an @relative reference into a markdown link.
  2. A namespaces an agent's name.
  3. A renames a flat skill after its folder (opencode, kilo).
  4. B keeps only a Codex skill's name and description.
  5. A leaves the {{TOOLS}} placeholder, B resolves it to .github/ (copilot).
  6. B copies the source mcp and hooks manifests, A synthesizes them elsewhere.

MANIFEST_DIVERGENCES:
7. B writes the manifest at the plugin root, A in the tool's own manifest directory.
8. A lists the components and drops strict, B copies the source manifest byte for byte.

Markdown is compared as frontmatter data plus body, since B re-serializes the frontmatter, so frontmatter byte differences come on top of this list.

AI tool

All (entries 3 to 5 are tool specific)

aidd-cli version

unreleased, next

OS

Any

Additional context

The test fails when an entry is no longer needed and when a difference is not named, so the list only shrinks. Work through it entry by entry: remove the entry, watch the conformance test go red for that entry alone, make the two paths agree (or record the decision), keep the test green.

Ngôn ngữ chính
TypeScript
Star
481
Fork
45
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
91

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 ai-driven-dev/framework

Tất cả issue của ai-driven-dev/framework

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.