raggrep 0.1.6 → 0.2.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.
- package/README.md +62 -95
- package/dist/app/indexer/index.d.ts +27 -2
- package/dist/cli/main.js +967 -604
- package/dist/cli/main.js.map +18 -17
- package/dist/{introspection/conventions/types.d.ts → domain/entities/conventions.d.ts} +6 -5
- package/dist/domain/entities/index.d.ts +2 -0
- package/dist/{introspection → domain/services}/conventions/configFiles.d.ts +1 -1
- package/dist/{introspection → domain/services}/conventions/entryPoints.d.ts +1 -1
- package/dist/{introspection → domain/services}/conventions/frameworks/convex.d.ts +1 -1
- package/dist/{introspection → domain/services}/conventions/frameworks/index.d.ts +1 -1
- package/dist/{introspection → domain/services}/conventions/frameworks/nextjs.d.ts +1 -1
- package/dist/{introspection → domain/services}/conventions/index.d.ts +5 -5
- package/dist/domain/services/introspection.d.ts +31 -0
- package/dist/index.js +671 -474
- package/dist/index.js.map +16 -16
- package/dist/{introspection/index.d.ts → infrastructure/introspection/IntrospectionIndex.d.ts} +3 -14
- package/dist/infrastructure/introspection/index.d.ts +9 -0
- package/dist/{introspection → infrastructure/introspection}/projectDetector.d.ts +3 -12
- package/dist/types.d.ts +4 -4
- package/package.json +1 -1
- package/dist/introspection/fileIntrospector.d.ts +0 -14
- /package/dist/{introspection/types.d.ts → domain/entities/introspection.d.ts} +0 -0
- /package/dist/{introspection → domain/services}/conventions/conventions.test.d.ts +0 -0
- /package/dist/{introspection → domain/services}/introspection.test.d.ts +0 -0
package/dist/{introspection/index.d.ts → infrastructure/introspection/IntrospectionIndex.d.ts}
RENAMED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Introspection
|
|
2
|
+
* Introspection Index Storage
|
|
3
3
|
*
|
|
4
4
|
* Manages file metadata for context-aware search boosting.
|
|
5
|
+
* Handles saving and loading introspection data to/from disk.
|
|
5
6
|
*/
|
|
6
|
-
import type { FileIntrospection, ProjectStructure } from "
|
|
7
|
-
import type { Config } from "../domain/entities";
|
|
8
|
-
export type { FileIntrospection, ProjectStructure, Project, Scope, ProjectType } from "./types";
|
|
9
|
-
export { introspectFile, introspectionToKeywords } from "./fileIntrospector";
|
|
10
|
-
export { detectProjectStructure, detectScopeFromName } from "./projectDetector";
|
|
7
|
+
import type { FileIntrospection, ProjectStructure, Config } from "../../domain/entities";
|
|
11
8
|
/**
|
|
12
9
|
* Introspection index for a workspace.
|
|
13
10
|
*/
|
|
@@ -58,11 +55,3 @@ export declare class IntrospectionIndex {
|
|
|
58
55
|
*/
|
|
59
56
|
clear(): void;
|
|
60
57
|
}
|
|
61
|
-
/**
|
|
62
|
-
* Calculate search boost based on introspection and query.
|
|
63
|
-
*
|
|
64
|
-
* @param intro - File introspection
|
|
65
|
-
* @param query - Search query
|
|
66
|
-
* @returns Boost multiplier (1.0 = no boost, >1.0 = positive boost)
|
|
67
|
-
*/
|
|
68
|
-
export declare function calculateIntrospectionBoost(intro: FileIntrospection, query: string): number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Introspection Infrastructure
|
|
3
|
+
*
|
|
4
|
+
* File I/O operations for introspection:
|
|
5
|
+
* - Project structure detection (filesystem scanning)
|
|
6
|
+
* - Introspection index storage (save/load)
|
|
7
|
+
*/
|
|
8
|
+
export { IntrospectionIndex } from "./IntrospectionIndex";
|
|
9
|
+
export { detectProjectStructure } from "./projectDetector";
|
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
* Auto-detects monorepo structure and project types from:
|
|
5
5
|
* - Folder layout (apps/, packages/, etc.)
|
|
6
6
|
* - package.json files (for TypeScript/JavaScript projects)
|
|
7
|
+
*
|
|
8
|
+
* This module performs file I/O to scan the filesystem.
|
|
7
9
|
*/
|
|
8
|
-
import type {
|
|
9
|
-
/**
|
|
10
|
-
* Detect scope from project name.
|
|
11
|
-
*/
|
|
12
|
-
export declare function detectScopeFromName(name: string): Scope;
|
|
10
|
+
import type { ProjectStructure } from "../../domain/entities/introspection";
|
|
13
11
|
/**
|
|
14
12
|
* Detect project structure in a workspace.
|
|
15
13
|
*
|
|
@@ -18,10 +16,3 @@ export declare function detectScopeFromName(name: string): Scope;
|
|
|
18
16
|
* 2. package.json scanning for more accurate project boundaries
|
|
19
17
|
*/
|
|
20
18
|
export declare function detectProjectStructure(rootDir: string): Promise<ProjectStructure>;
|
|
21
|
-
/**
|
|
22
|
-
* Find which project a file belongs to.
|
|
23
|
-
*
|
|
24
|
-
* Matches against detected projects (from package.json and folder patterns).
|
|
25
|
-
* For nested projects, returns the most specific (deepest) match.
|
|
26
|
-
*/
|
|
27
|
-
export declare function findProjectForFile(filepath: string, structure: ProjectStructure): Project;
|
package/dist/types.d.ts
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* This file re-exports domain entities and defines module interfaces.
|
|
5
5
|
* For new code, prefer importing directly from 'domain/entities'.
|
|
6
6
|
*/
|
|
7
|
-
export type { Chunk, ChunkType, FileIndex, FileManifestEntry, ModuleManifest, GlobalManifest, FileSummary, Tier1Manifest, SearchResult, SearchOptions, SearchContributions, CoreContribution, LanguageContribution, IntrospectionContribution, Config, ModuleConfig, } from
|
|
8
|
-
export { createChunkId, DEFAULT_SEARCH_OPTIONS, DEFAULT_IGNORE_PATHS, DEFAULT_EXTENSIONS, createDefaultConfig, } from
|
|
9
|
-
import type { Config, FileIndex, SearchResult, SearchOptions, ModuleConfig } from
|
|
7
|
+
export type { Chunk, ChunkType, FileIndex, FileManifestEntry, ModuleManifest, GlobalManifest, FileSummary, Tier1Manifest, SearchResult, SearchOptions, SearchContributions, CoreContribution, LanguageContribution, IntrospectionContribution, Config, ModuleConfig, } from "./domain/entities";
|
|
8
|
+
export { createChunkId, DEFAULT_SEARCH_OPTIONS, DEFAULT_IGNORE_PATHS, DEFAULT_EXTENSIONS, createDefaultConfig, } from "./domain/entities";
|
|
9
|
+
import type { Config, FileIndex, SearchResult, SearchOptions, ModuleConfig } from "./domain/entities";
|
|
10
10
|
/**
|
|
11
11
|
* Context provided to modules during indexing
|
|
12
12
|
*/
|
|
13
|
-
import type { FileIntrospection } from
|
|
13
|
+
import type { FileIntrospection } from "./domain/entities/introspection";
|
|
14
14
|
export interface IndexContext {
|
|
15
15
|
rootDir: string;
|
|
16
16
|
config: Config;
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* File Introspection
|
|
3
|
-
*
|
|
4
|
-
* Extracts metadata from individual files for context-aware search.
|
|
5
|
-
*/
|
|
6
|
-
import type { FileIntrospection, ProjectStructure } from "./types";
|
|
7
|
-
/**
|
|
8
|
-
* Extract introspection metadata for a file.
|
|
9
|
-
*/
|
|
10
|
-
export declare function introspectFile(filepath: string, structure: ProjectStructure, fileContent?: string): FileIntrospection;
|
|
11
|
-
/**
|
|
12
|
-
* Extract keywords from introspection for search boosting.
|
|
13
|
-
*/
|
|
14
|
-
export declare function introspectionToKeywords(intro: FileIntrospection): string[];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|