Default storage path#38
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds a platform-aware Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
docs/getting-started/mcp.md (1)
54-56:⚠️ Potential issue | 🟡 MinorDocumentation references outdated default path.
Line 56 instructs users to create a file at
slayer_data/datasources/mydb.yaml, but with the new default storage behavior, the actual default path is now platform-specific (e.g.,~/.local/share/slayeron Linux). This could confuse users who follow these instructions without using--storage.Consider updating to reference the platform default or adding a note about the default location:
📝 Suggested update
-Create a file at `slayer_data/datasources/mydb.yaml`: +Create a file in your storage folder's `datasources/` directory (e.g., `~/.local/share/slayer/datasources/mydb.yaml` on Linux — see [Storage Backends](../configuration/storage.md) for platform defaults):🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/getting-started/mcp.md` around lines 54 - 56, The docs currently tell users to create datasources at the hardcoded path `slayer_data/datasources/mydb.yaml`, which is outdated; update the text in docs/getting-started/mcp.md to mention the platform-specific default storage location (e.g., "~/.local/share/slayer" on Linux) and/or explain that users can override it with the `--storage` flag, replacing the explicit `slayer_data/...` example with either a note about the default path per OS or showing both the default path and an example when `--storage` is used so readers aren’t misled.
🧹 Nitpick comments (2)
CLAUDE.md (1)
85-85: Consider adding Windows default path for completeness.The CLI documentation mentions Linux and macOS defaults but omits Windows (
%LOCALAPPDATA%\slayer). Since the code inslayer/storage/base.pysupports Windows, consider adding it here for completeness.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@CLAUDE.md` at line 85, Update the CLI docs sentence describing storage defaults to include the Windows default path (%LOCALAPPDATA%\slayer), since the implementation in slayer/storage/base.py already supports Windows; modify the line mentioning Linux and macOS to also list Windows and ensure the env var and legacy flag behavior description remains unchanged.slayer/cli.py (1)
84-87: Epilog example still references explicit--storage ./slayer_data.The example in the MCP command epilog suggests using
--storage ./slayer_data, but since the default is now platform-appropriate, this example might mislead users into thinking they need to specify storage explicitly. Consider updating to show the simpler form or clarify when explicit storage is useful.📝 Suggested update
# Add to Claude Code: - claude mcp add slayer -- slayer mcp --storage ./slayer_data + claude mcp add slayer -- slayer mcpOr if you want to show the override capability:
# Add to Claude Code: claude mcp add slayer -- slayer mcp + + # Or with explicit storage path: + claude mcp add slayer -- slayer mcp --storage ./my_custom_data🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@slayer/cli.py` around lines 84 - 87, Update the MCP command epilog string that currently contains "claude mcp add slayer -- slayer mcp --storage ./slayer_data" to avoid suggesting an explicit --storage by default; edit the MCP command epilog (the epilog string in slayer/cli.py where the "claude mcp add slayer..." example is defined) to either show the simpler form without --storage (e.g., "claude mcp add slayer -- slayer mcp") or include a brief parenthetical clarifier that --storage is only needed to override the platform-default storage path, so the example no longer implies it is required.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@docs/getting-started/mcp.md`:
- Around line 54-56: The docs currently tell users to create datasources at the
hardcoded path `slayer_data/datasources/mydb.yaml`, which is outdated; update
the text in docs/getting-started/mcp.md to mention the platform-specific default
storage location (e.g., "~/.local/share/slayer" on Linux) and/or explain that
users can override it with the `--storage` flag, replacing the explicit
`slayer_data/...` example with either a note about the default path per OS or
showing both the default path and an example when `--storage` is used so readers
aren’t misled.
---
Nitpick comments:
In `@CLAUDE.md`:
- Line 85: Update the CLI docs sentence describing storage defaults to include
the Windows default path (%LOCALAPPDATA%\slayer), since the implementation in
slayer/storage/base.py already supports Windows; modify the line mentioning
Linux and macOS to also list Windows and ensure the env var and legacy flag
behavior description remains unchanged.
In `@slayer/cli.py`:
- Around line 84-87: Update the MCP command epilog string that currently
contains "claude mcp add slayer -- slayer mcp --storage ./slayer_data" to avoid
suggesting an explicit --storage by default; edit the MCP command epilog (the
epilog string in slayer/cli.py where the "claude mcp add slayer..." example is
defined) to either show the simpler form without --storage (e.g., "claude mcp
add slayer -- slayer mcp") or include a brief parenthetical clarifier that
--storage is only needed to override the platform-default storage path, so the
example no longer implies it is required.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 80ea3a3a-ebbb-4ca9-9daa-415c3cb388e7
📒 Files selected for processing (6)
CLAUDE.mdREADME.mddocs/configuration/storage.mddocs/getting-started/mcp.mdslayer/cli.pyslayer/storage/base.py
577663e to
2db2674
Compare
Summary by CodeRabbit
New Features
Documentation
Roadmap