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 +4 -4
- data/CHANGELOG.md +13 -0
- data/CLAUDE.md +3 -1
- data/LICENSE +21 -661
- data/README.md +9 -4
- data/demo_script.sh +2 -2
- data/docs/GUIDE.md +18 -3
- data/lib/generators/rails_ai_context/install/install_generator.rb +26 -13
- data/lib/rails_ai_context/configuration.rb +5 -0
- data/lib/rails_ai_context/serializers/claude_rules_serializer.rb +68 -34
- data/lib/rails_ai_context/serializers/context_file_serializer.rb +64 -13
- data/lib/rails_ai_context/serializers/copilot_instructions_serializer.rb +52 -31
- data/lib/rails_ai_context/serializers/cursor_rules_serializer.rb +11 -30
- data/lib/rails_ai_context/serializers/markdown_serializer.rb +1 -1
- data/lib/rails_ai_context/serializers/rules_serializer.rb +1 -1
- data/lib/rails_ai_context/serializers/windsurf_rules_serializer.rb +9 -22
- data/lib/rails_ai_context/tasks/rails_ai_context.rake +3 -3
- data/lib/rails_ai_context/version.rb +1 -1
- data/lib/rails_ai_context.rb +1 -1
- data/server.json +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 661adfd69ce52e181149673477e63271b1bb0d0e866f19b734e44054ba01e230
|
|
4
|
+
data.tar.gz: b9468609fa7b9579b49b3cc2fefff3a30c4ac3fdbaeac31643cf0a211f4e4a77
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 (
|
|
45
|
+
bundle exec rspec # Run specs (408 examples)
|
|
44
46
|
bundle exec rubocop # Lint
|
|
45
47
|
```
|
|
46
48
|
|