rails-ai-context 0.10.0 → 0.10.1
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 +1 -1
- data/CLAUDE.md +2 -2
- data/README.md +4 -4
- data/demo_script.sh +1 -1
- data/docs/GUIDE.md +2 -2
- data/lib/rails_ai_context/configuration.rb +1 -1
- data/lib/rails_ai_context/version.rb +1 -1
- data/server.json +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41d6a7f273bd4630ef25d299a4379609336714a021d77bcbb5128235a62bd830
|
|
4
|
+
data.tar.gz: 64b3c29bbf29126d6f8aaf76e1f063140ad7ea3684e15ca392a2275d2fe35110
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90003df73a6d12bec5e205343ffc4615a6f59061f32bdba71f344dfcacf046de339836b871d1e6e85353bff3951673a5fa2f2c2b0bd3b950c9b0d62872760bc2
|
|
7
|
+
data.tar.gz: eaad1515c31ee3d6d3cb61a402991d92aa6107770011d70338a096d8dc23a809423e77ba3194d7813cbb3df2ea3cadf772ebdf4f7b939afe0c82940471b7b7a3
|
data/CHANGELOG.md
CHANGED
|
@@ -14,7 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
14
14
|
- **`rails_get_controllers` `action` parameter** — returns actual action source code + applicable filters instead of the entire controller file. Saves ~1,400 tokens per call. ([#9](https://github.com/crisnahine/rails-ai-context/issues/9))
|
|
15
15
|
- **`rails_get_test_info` enhanced** — now supports `detail` levels (summary/standard/full), `model` and `controller` params to find existing tests, fixture/factory names, test helper setup. ([#10](https://github.com/crisnahine/rails-ai-context/issues/10))
|
|
16
16
|
- **ViewTemplateIntrospector** — new introspector that reads view file contents and extracts partial references and Stimulus data attributes.
|
|
17
|
-
- **Stimulus in standard preset** —
|
|
17
|
+
- **Stimulus and view_templates in standard preset** — both introspectors now in `:standard` preset (11 introspectors, was 10).
|
|
18
18
|
|
|
19
19
|
## [0.9.0] - 2026-03-19
|
|
20
20
|
|
data/CLAUDE.md
CHANGED
|
@@ -32,7 +32,7 @@ structure to AI assistants via the Model Context Protocol (MCP).
|
|
|
32
32
|
6. **Diff-aware** — context regeneration skips unchanged files
|
|
33
33
|
7. **Per-assistant serializers** — each AI tool gets tailored output format
|
|
34
34
|
8. **Zeitwerk autoloading** — files loaded on-demand, not all upfront
|
|
35
|
-
9. **Introspector presets** — `:standard` (
|
|
35
|
+
9. **Introspector presets** — `:standard` (11 core) default, `:full` (28) for power users
|
|
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/`
|
|
@@ -42,7 +42,7 @@ structure to AI assistants via the Model Context Protocol (MCP).
|
|
|
42
42
|
## Testing
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
|
-
bundle exec rspec # Run specs (
|
|
45
|
+
bundle exec rspec # Run specs (456 examples)
|
|
46
46
|
bundle exec rubocop # Lint
|
|
47
47
|
```
|
|
48
48
|
|
data/README.md
CHANGED
|
@@ -174,7 +174,7 @@ Root files (CLAUDE.md, AGENTS.md, etc.) use **section markers** — your custom
|
|
|
174
174
|
| **DevOps** | Puma, Procfile, Docker, deployment tools, asset pipeline |
|
|
175
175
|
| **Architecture** | Service objects, STI, polymorphism, state machines, multi-tenancy, engines |
|
|
176
176
|
|
|
177
|
-
28 introspectors total. The `:standard` preset runs
|
|
177
|
+
28 introspectors total. The `:standard` preset runs 11 core ones by default; use `:full` for 27 (`database_stats` is opt-in, PostgreSQL only).
|
|
178
178
|
|
|
179
179
|
---
|
|
180
180
|
|
|
@@ -228,7 +228,7 @@ end
|
|
|
228
228
|
```ruby
|
|
229
229
|
# config/initializers/rails_ai_context.rb
|
|
230
230
|
RailsAiContext.configure do |config|
|
|
231
|
-
# Presets: :standard (
|
|
231
|
+
# Presets: :standard (11 introspectors, default) or :full (all 28)
|
|
232
232
|
config.preset = :standard
|
|
233
233
|
|
|
234
234
|
# Cherry-pick on top of a preset
|
|
@@ -262,7 +262,7 @@ end
|
|
|
262
262
|
| Option | Default | Description |
|
|
263
263
|
|--------|---------|-------------|
|
|
264
264
|
| `preset` | `:standard` | Introspector preset (`:standard` or `:full`) |
|
|
265
|
-
| `introspectors` |
|
|
265
|
+
| `introspectors` | 11 core | Array of introspector symbols |
|
|
266
266
|
| `context_mode` | `:compact` | `:compact` (≤150 lines) or `:full` (dump everything) |
|
|
267
267
|
| `claude_max_lines` | `150` | Max lines for CLAUDE.md in compact mode |
|
|
268
268
|
| `max_tool_response_chars` | `120_000` | Safety cap for MCP tool responses |
|
|
@@ -362,7 +362,7 @@ The gem parses `db/schema.rb` as text when no database is connected. Works in CI
|
|
|
362
362
|
```bash
|
|
363
363
|
git clone https://github.com/crisnahine/rails-ai-context.git
|
|
364
364
|
cd rails-ai-context && bundle install
|
|
365
|
-
bundle exec rspec #
|
|
365
|
+
bundle exec rspec # 456 examples
|
|
366
366
|
bundle exec rubocop # Lint
|
|
367
367
|
```
|
|
368
368
|
|
data/demo_script.sh
CHANGED
data/docs/GUIDE.md
CHANGED
|
@@ -579,7 +579,7 @@ Both transports are **read-only** — they expose the same 11 tools and never mo
|
|
|
579
579
|
RailsAiContext.configure do |config|
|
|
580
580
|
# --- Introspectors ---
|
|
581
581
|
|
|
582
|
-
# Presets: :standard (
|
|
582
|
+
# Presets: :standard (11 core, default) or :full (all 28)
|
|
583
583
|
config.preset = :standard
|
|
584
584
|
|
|
585
585
|
# Cherry-pick on top of a preset
|
|
@@ -636,7 +636,7 @@ end
|
|
|
636
636
|
| Option | Type | Default | Description |
|
|
637
637
|
|--------|------|---------|-------------|
|
|
638
638
|
| `preset` | Symbol | `:standard` | Introspector preset (`:standard` or `:full`) |
|
|
639
|
-
| `introspectors` | Array |
|
|
639
|
+
| `introspectors` | Array | 11 core symbols | Which introspectors to run |
|
|
640
640
|
| `context_mode` | Symbol | `:compact` | `:compact` or `:full` |
|
|
641
641
|
| `claude_max_lines` | Integer | `150` | Max lines for CLAUDE.md in compact mode |
|
|
642
642
|
| `max_tool_response_chars` | Integer | `120_000` | Safety cap for MCP tool responses |
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module RailsAiContext
|
|
4
4
|
class Configuration
|
|
5
5
|
PRESETS = {
|
|
6
|
-
standard: %i[schema models routes jobs gems conventions controllers tests migrations stimulus],
|
|
6
|
+
standard: %i[schema models routes jobs gems conventions controllers tests migrations stimulus view_templates],
|
|
7
7
|
full: %i[schema models routes jobs gems conventions stimulus controllers views view_templates turbo
|
|
8
8
|
i18n config active_storage action_text auth api tests rake_tasks assets
|
|
9
9
|
devops action_mailbox migrations seeds middleware engines multi_database]
|
data/server.json
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
"url": "https://github.com/crisnahine/rails-ai-context",
|
|
8
8
|
"source": "github"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.10.
|
|
10
|
+
"version": "0.10.1",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "mcpb",
|
|
14
|
-
"identifier": "https://github.com/crisnahine/rails-ai-context/releases/download/v0.10.
|
|
14
|
+
"identifier": "https://github.com/crisnahine/rails-ai-context/releases/download/v0.10.1/rails-ai-context-mcp.mcpb",
|
|
15
15
|
"fileSha256": "dd711a0ad6c4de943ae4da94eaf59a6dc9494b9d57f726e24649ed4e2f156990",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|