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

Aberta
#1,312 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
48/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript
Domínio
cli, testing

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
TypeScript
Estrelas
481
Forks
45
Merge médio
1d 13h
PRs com merge (30d)
91

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de ai-driven-dev/framework

Todas as issues de ai-driven-dev/framework

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.