rails-ai-context 0.7.1 → 0.8.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 +8 -0
- data/CLAUDE.md +1 -0
- data/README.md +211 -292
- data/demo.gif +0 -0
- data/demo.tape +2 -2
- data/demo_script.sh +23 -12
- data/docs/GUIDE.md +953 -0
- data/docs/token-comparison.jpeg +0 -0
- data/lib/generators/rails_ai_context/install/install_generator.rb +7 -0
- data/lib/rails_ai_context/configuration.rb +11 -0
- data/lib/rails_ai_context/doctor.rb +8 -0
- data/lib/rails_ai_context/live_reload.rb +107 -0
- data/lib/rails_ai_context/server.rb +24 -0
- data/lib/rails_ai_context/tools/base_tool.rb +6 -0
- data/lib/rails_ai_context/version.rb +1 -1
- data/server.json +21 -0
- metadata +5 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e6efb0468b245ebcc4945086d0091ccdf7a5df5395af4cfde7a928ec2861c93
|
|
4
|
+
data.tar.gz: f956c81dc980e2622e04d6957ad59c054e33f416f5e37eb11c8d4466c255fa00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b2eeb539cff753960b5f6718c7d3e7ec476dd56440785369ed7af6d40af9aa20ea4d213ed09e1d3cfa7f94e244f7a9a15ad57385fb6ddc88e1a338bc1aedbfe
|
|
7
|
+
data.tar.gz: '099e4dee7daefb3bddad34d9b10c3a25c8d6ff906b797f1acd35f5ae17ae169b89cf954b0cc73d7ae7fc557af6e3a3c08535d2d348ce364c08647050ff9eb19b'
|
data/CHANGELOG.md
CHANGED
|
@@ -5,11 +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.8.0] - 2026-03-19
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **MCP Live Reload** — when running `rails ai:serve`, file changes automatically invalidate tool caches and send MCP notifications (`notifications/resources/list_changed`) to connected AI clients. The AI's context stays fresh without manual re-querying. Requires the `listen` gem (enabled by default when available). Configurable via `config.live_reload` (`:auto`, `true`, `false`) and `config.live_reload_debounce` (default: 1.5s).
|
|
13
|
+
- **Live reload doctor check** — `rails ai:doctor` now warns when the `listen` gem is not installed.
|
|
14
|
+
|
|
8
15
|
## [0.7.1] - 2026-03-19
|
|
9
16
|
|
|
10
17
|
### Added
|
|
11
18
|
|
|
12
19
|
- **Full MCP tool reference in all context files** — every generated file (CLAUDE.md, .cursorrules, .windsurfrules, copilot-instructions.md) now includes complete tool documentation with parameters, detail levels, pagination examples, and usage workflow. Dedicated `rails-mcp-tools` split rule files added for Claude, Cursor, Windsurf, and Copilot.
|
|
20
|
+
- **MCP Registry listing** — published to the [official MCP Registry](https://registry.modelcontextprotocol.io) as `io.github.crisnahine/rails-ai-context` via mcpb package type.
|
|
13
21
|
|
|
14
22
|
### Fixed
|
|
15
23
|
|
data/CLAUDE.md
CHANGED
|
@@ -16,6 +16,7 @@ structure to AI assistants via the Model Context Protocol (MCP).
|
|
|
16
16
|
- `lib/rails_ai_context/middleware.rb` — Rack middleware for auto-mounting MCP HTTP endpoint
|
|
17
17
|
- `lib/rails_ai_context/fingerprinter.rb` — SHA256 file fingerprinting for cache invalidation
|
|
18
18
|
- `lib/rails_ai_context/doctor.rb` — Diagnostic checks and AI readiness scoring
|
|
19
|
+
- `lib/rails_ai_context/live_reload.rb` — MCP live reload: watches files, invalidates caches, notifies AI clients
|
|
19
20
|
- `lib/rails_ai_context/watcher.rb` — File watcher for auto-regenerating context files
|
|
20
21
|
- `lib/rails_ai_context/engine.rb` — Rails Engine for auto-integration
|
|
21
22
|
- `lib/generators/rails_ai_context/install/` — Install generator (creates .mcp.json, initializer, context files)
|