raggrep 0.12.0 → 0.12.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.
- package/dist/cli/main.js +12 -10
- package/dist/cli/main.js.map +9 -9
- package/dist/index.js.map +5 -5
- package/package.json +1 -1
package/dist/cli/main.js
CHANGED
|
@@ -14276,7 +14276,7 @@ init_logger();
|
|
|
14276
14276
|
// package.json
|
|
14277
14277
|
var package_default = {
|
|
14278
14278
|
name: "raggrep",
|
|
14279
|
-
version: "0.12.
|
|
14279
|
+
version: "0.12.1",
|
|
14280
14280
|
description: "Local filesystem-based RAG system for codebases - semantic search using local embeddings",
|
|
14281
14281
|
type: "module",
|
|
14282
14282
|
main: "./dist/index.js",
|
|
@@ -14780,12 +14780,17 @@ Examples:
|
|
|
14780
14780
|
|
|
14781
14781
|
export default tool({
|
|
14782
14782
|
description:
|
|
14783
|
-
"
|
|
14783
|
+
"Semantic code search powered by RAG - understands INTENT, not just literal text. Parses code using AST to extract functions, classes, and symbols with full context. Finds relevant code even when exact keywords don't match. Superior to grep for exploratory searches like 'authentication logic', 'error handling patterns', or 'configuration loading'.\\n\\n\uD83C\uDFAF USE THIS TOOL FIRST when you need to:\\n• Find WHERE code is located (functions, components, services)\\n• Understand HOW code is structured\\n• Discover RELATED code across multiple files\\n• Get a QUICK overview of a topic\\n\\n❌ DON'T read multiple files manually when you can:\\n raggrep(\\"user authentication\\", { filter: [\\"src/\\"] })\\n\\n✅ INSTEAD of reading files one-by-one, search semantically:\\n • \\"Find the auth middleware\\" vs read: auth.ts, middleware.ts, index.ts...\\n • \\"Where are React components?\\" vs read: App.tsx, components/*, pages/*...\\n • \\"Database connection logic?\\" vs read: db.ts, config.ts, models/*...\\n • \\"Error handling patterns\\" vs read: error.ts, middleware.ts, handlers/*...\\n\\nThis saves ~10x tool calls and provides BETTER context by showing related code across the entire codebase.",
|
|
14784
14784
|
args: {
|
|
14785
14785
|
query: tool.schema
|
|
14786
14786
|
.string()
|
|
14787
14787
|
.describe(
|
|
14788
|
-
"Natural language search query
|
|
14788
|
+
"Natural language search query describing what you want to find. Be specific: 'auth middleware that checks JWT', 'React hooks for data fetching', 'database connection pool config'. This is MUCH faster than reading files manually."
|
|
14789
|
+
),
|
|
14790
|
+
filter: tool.schema
|
|
14791
|
+
.array(tool.schema.string())
|
|
14792
|
+
.describe(
|
|
14793
|
+
"Array of path prefixes or glob patterns to narrow search scope (OR logic). If user mentions a directory, use it. Otherwise infer from context. Common patterns: ['src/auth'], ['*.tsx', 'components/'], ['api/', 'routes/'], ['docs/', '*.md'], ['*.test.ts']. For broad search use ['src/'] or ['**/*']."
|
|
14789
14794
|
),
|
|
14790
14795
|
top: tool.schema
|
|
14791
14796
|
.number()
|
|
@@ -14798,12 +14803,8 @@ export default tool({
|
|
|
14798
14803
|
type: tool.schema
|
|
14799
14804
|
.string()
|
|
14800
14805
|
.optional()
|
|
14801
|
-
.describe("Filter by file extension (e.g., ts, tsx, js)"),
|
|
14802
|
-
filter: tool.schema
|
|
14803
|
-
.array(tool.schema.string())
|
|
14804
|
-
.optional()
|
|
14805
14806
|
.describe(
|
|
14806
|
-
"Filter by
|
|
14807
|
+
"Filter by single file extension without dot (e.g., 'ts', 'tsx', 'js', 'md'). Prefer using 'filter' with glob patterns like '*.ts' for more flexibility."
|
|
14807
14808
|
),
|
|
14808
14809
|
},
|
|
14809
14810
|
async execute(args) {
|
|
@@ -14824,7 +14825,8 @@ export default tool({
|
|
|
14824
14825
|
}
|
|
14825
14826
|
}
|
|
14826
14827
|
|
|
14827
|
-
const
|
|
14828
|
+
const proc = Bun.spawn(['raggrep', 'query', ...cmdArgs], { stdout: 'pipe' });
|
|
14829
|
+
const result = await new Response(proc.stdout).text();
|
|
14828
14830
|
return result.trim();
|
|
14829
14831
|
},
|
|
14830
14832
|
});
|
|
@@ -14892,4 +14894,4 @@ Run 'raggrep <command> --help' for more information.
|
|
|
14892
14894
|
}
|
|
14893
14895
|
main();
|
|
14894
14896
|
|
|
14895
|
-
//# debugId=
|
|
14897
|
+
//# debugId=7C2BD8137F58966D64756E2164756E21
|