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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c9dabd282aadc577e5a66416e23e27c72dc728328490e4ce1af213358c215f1
4
- data.tar.gz: 291cfd489f7b0b639655e3d0cdb473b0859b68bfdc2ed7ca1199826ac234af0a
3
+ metadata.gz: 41d6a7f273bd4630ef25d299a4379609336714a021d77bcbb5128235a62bd830
4
+ data.tar.gz: 64b3c29bbf29126d6f8aaf76e1f063140ad7ea3684e15ca392a2275d2fe35110
5
5
  SHA512:
6
- metadata.gz: 95fd8e8c760b88e74d321102d9a55fda265c8cc7fb1d7de1b15ac8a7bc09666d08ada3540c194a7e9c1f2b134c6913feee1583c788113ec6d368485a41259cbf
7
- data.tar.gz: d6a09886b74f4ece17e4529cff42fe99cdd1c68c2a6e04413d979754d362f461cdd074c40fea576c98b4187c83306787eeb88f25ea4952ffa99d1dee9bec3a80
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** — `:stimulus` introspector now included in the `:standard` preset (was `:full` only).
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` (10 core) default, `:full` (28) for power users
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 (412 examples)
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 10 core ones by default; use `:full` for 27 (`database_stats` is opt-in, PostgreSQL only).
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 (10 introspectors, default) or :full (all 28)
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` | 10 core | Array of introspector symbols |
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 # 412 examples
365
+ bundle exec rspec # 456 examples
366
366
  bundle exec rubocop # Lint
367
367
  ```
368
368
 
data/demo_script.sh CHANGED
@@ -8,7 +8,7 @@ echo 'Fetching gem metadata from https://rubygems.org...'
8
8
  sleep 0.3
9
9
  echo 'Resolving dependencies...'
10
10
  sleep 0.3
11
- echo 'Installing rails-ai-context 0.10.0'
11
+ echo 'Installing rails-ai-context 0.10.1'
12
12
  echo ''
13
13
  sleep 1
14
14
 
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 (10 core, default) or :full (all 28)
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 | 10 core symbols | Which introspectors to run |
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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsAiContext
4
- VERSION = "0.10.0"
4
+ VERSION = "0.10.1"
5
5
  end
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.0",
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.0/rails-ai-context-mcp.mcpb",
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-ai-context
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - crisnahine