matheusandre1 opened a new pull request, #173:
URL: https://github.com/apache/camel-kit/pull/173

   Fixes #168. Part of #164.
   
   ## Summary
   
   `camel-kit init` no longer replaces files an existing project owns, and
   reinitialization keeps user customizations.
   
   - **Instruction files** (`AGENTS.md`, `CLAUDE.md`, `QWEN.md`,
     `.github/copilot-instructions.md`): Camel Kit writes its content inside a
     managed block. It appends the block to an existing file and later replaces
     only that block.
   - **Other shared files** (`docs/constitution.md`, `.claude/settings.json`,
     `.qwenignore`, `.bob/custom_modes.yaml`, Maven wrapper): tracked by hash in
     `.camel-kit/managed-files.properties`. A file is rewritten only when 
missing
     or unchanged since Camel Kit wrote it; otherwise it is preserved, reported,
     and the generated version is saved under `.camel-kit/conflicts/`.
   - **`--replace <path>`** replaces one shared file in full; **`--dry-run`**
     previews the outcome without writing.
   - Existing JSON MCP configs are merged for every agent; an invalid one stops
     `init` before any write.
   - Only `.camel-kit/` marks a project as initialized.
   
   Coordinated with @Jinal-Sarvaiya (#172): this PR owns the init changes; the
   managed-block markers are the ones from her branch.
   
   ## Tests
   
   `InitSafeAdoptionTest` covers adoption, conflicts, reinitialization,
   `--replace`, `--dry-run` and greenfield for all eight agents.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to