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

未关闭
#1,312 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
cli, testing

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
481
派生
45
平均合并
1 天 13 小时
30 天内合并 PR
91

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ai-driven-dev/framework 的其他 Issue

查看 ai-driven-dev/framework 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。