rails-ai-context 0.8.5 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8933a659a2417ef033549547e011f90f7e3e3b1cacc8d2421802b944987869f2
4
- data.tar.gz: fd39c3dc419170ca979d1c5fc3ccf59d4da66bec27ee712bfbb0ac9e1996769c
3
+ metadata.gz: 661adfd69ce52e181149673477e63271b1bb0d0e866f19b734e44054ba01e230
4
+ data.tar.gz: b9468609fa7b9579b49b3cc2fefff3a30c4ac3fdbaeac31643cf0a211f4e4a77
5
5
  SHA512:
6
- metadata.gz: 3cb8ffb9600a47aca301bfc4d232bb3ff08f1283a66e3f2a7b0e2b205b31d91cf0b2ec6cbab43e8c7856d79191c467662cf693b74b7a26805f11a8c6c116d7f7
7
- data.tar.gz: fa41c1eb1d078119a807cb5e9a6558fe3f40e6523eb1e497e9662d5454c3e756de0f39dd5a0744d3f1921c368011d4e2778fd4b460dc4918adc1f9002aa45fd5
6
+ metadata.gz: e3f09200ea197372810ce5526a9db0baa9f5c1f74072126c92b6a0318eaedb11bc0e2cb6b671d9b4de0813dd04e6cd86a97e9643f2952606fa2e8ae60ec9893b
7
+ data.tar.gz: 5fda7235d72d4ccca1b918b93ee6a57f02add14a911d7178a7120db195ab7e6d4e1846d234db88beb36d842ae838bf7394f4bf89361d5dd389e26824140aee1d
data/CHANGELOG.md CHANGED
@@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.9.0] - 2026-03-19
9
+
10
+ ### Added
11
+
12
+ - **`config.generate_root_files` option** — when set to `false`, skips generating root-level context files (CLAUDE.md, AGENTS.md, .windsurfrules, copilot-instructions.md, .ai-context.json) while still generating all split rules (.claude/rules/, .cursor/rules/, .windsurf/rules/, .github/instructions/). Defaults to `true`.
13
+ - **Section markers on root files** — generated content in CLAUDE.md, AGENTS.md, .windsurfrules, and copilot-instructions.md is now wrapped in `<!-- BEGIN rails-ai-context -->` / `<!-- END rails-ai-context -->` markers. User content outside the markers is preserved on re-generation. Existing files without markers get the marked section appended.
14
+ - **App overview split rules** — new `rails-context.md` in `.claude/rules/` and `rails-context.instructions.md` in `.github/instructions/` provide a compact app overview (stack, models, routes, gems, architecture) so context is available even when root files are disabled.
15
+
16
+ ### Changed
17
+
18
+ - **Removed `.cursorrules` root file** — Cursor officially deprecated `.cursorrules` in favor of `.cursor/rules/`. The `:cursor` format now generates only `.cursor/rules/*.mdc` split rules. The `rails-project.mdc` split rule (with `alwaysApply: true`) already provides the project overview.
19
+ - **License changed from AGPL-3.0 to MIT** — removes the copyleft blocker for SaaS and commercial projects.
20
+
8
21
  ## [0.8.5] - 2026-03-19
9
22
 
10
23
  ### Fixed
data/CLAUDE.md CHANGED
@@ -36,11 +36,13 @@ structure to AI assistants via the Model Context Protocol (MCP).
36
36
  10. **MCP auto-discovery** — `.mcp.json` generated by install generator
37
37
  11. **Compact by default** — context files ≤150 lines, MCP tools use `detail` parameter (summary/standard/full)
38
38
  12. **Per-tool split rules** — `.claude/rules/`, `.cursor/rules/`, `.windsurf/rules/`, `.github/instructions/`
39
+ 13. **Section markers** — root file content wrapped in `<!-- BEGIN/END rails-ai-context -->` to preserve user content
40
+ 14. **generate_root_files toggle** — when false, skip root files (CLAUDE.md, etc.), only generate split rules
39
41
 
40
42
  ## Testing
41
43
 
42
44
  ```bash
43
- bundle exec rspec # Run specs (403 examples)
45
+ bundle exec rspec # Run specs (408 examples)
44
46
  bundle exec rubocop # Lint
45
47
  ```
46
48