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

Abierto
#1,312 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
cli, testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
481
Forks
45
Merge medio
1 d 13 h
PR fusionados (30 d)
91

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ai-driven-dev/framework

Todos los issues de ai-driven-dev/framework

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.