bin/install.js held byte-identical duplicate definitions of the augment converter family (convertSlashCommandsToAugmentSkillMentions, convertClaudeToAugmentMarkdown, getAugmentSkillAdapterHeader, convertClaudeCommandToAugmentSkill, convertClaudeAgentToAugmentAgent) that already exist canonically in src/runtime-artifact-conversion.cts (generated to gsd-core/bin/lib/runtime-artifact-conversion.cjs). Deferred Phase 1->2 cleanup tracked in #1675 (epic #1507 / ADR-1508). Deleted the five local copies; install.js now binds the three PUBLIC converters from runtimeArtifactConversion (same pattern as getDirName / processAttribution in #1510). The two private helpers live only in the conversion module now. module.exports preserved (re-exported). Behavior-preserving: four converters byte-identical; the fifth (convertClaudeAgentToAugmentAgent) differed only by an inert let->const (variable never reassigned). Extends the DEFECT.GENERATIVE-FIX reference-identity parity guard in enh-1511 to assert single-sourcing. Closes #1675
520 KiB
Executable File
520 KiB
Executable File