@zipbul/gildash 0.33.0 → 0.34.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.
@@ -1,8 +1,10 @@
1
1
  import type { DbConnection } from '../connection';
2
+ import type { RelPath } from '../../common/path-utils';
3
+ import type { SymbolKind } from '../../extractor/types';
2
4
  export interface SymbolRecord {
3
5
  project: string;
4
6
  filePath: string;
5
- kind: string;
7
+ kind: SymbolKind;
6
8
  name: string;
7
9
  startLine: number;
8
10
  startColumn: number;
@@ -17,10 +19,6 @@ export interface SymbolRecord {
17
19
  resolvedType?: string | null;
18
20
  structuralFingerprint?: string | null;
19
21
  }
20
- export interface SearchOptions {
21
- kind?: string;
22
- limit?: number;
23
- }
24
22
  /**
25
23
  * Aggregate symbol statistics for a project.
26
24
  *
@@ -35,18 +33,18 @@ export interface SymbolStats {
35
33
  export declare class SymbolRepository {
36
34
  private readonly db;
37
35
  constructor(db: DbConnection);
38
- replaceFileSymbols(project: string, filePath: string, contentHash: string, syms: ReadonlyArray<Partial<SymbolRecord>>): void;
39
- getFileSymbols(project: string, filePath: string): SymbolRecord[];
40
- searchByName(project: string, query: string, opts?: SearchOptions): SymbolRecord[];
41
- searchByKind(project: string, kind: string): SymbolRecord[];
36
+ replaceFileSymbols(project: string, filePath: string, contentHash: string, syms: ReadonlyArray<Partial<SymbolRecord> & {
37
+ kind: SymbolKind;
38
+ }>): void;
39
+ getFileSymbols(project: string, filePath: RelPath): SymbolRecord[];
42
40
  getStats(project: string): SymbolStats;
43
41
  getByFingerprint(project: string, fingerprint: string): SymbolRecord[];
44
- deleteFileSymbols(project: string, filePath: string): void;
42
+ deleteFileSymbols(project: string, filePath: RelPath): void;
45
43
  searchByQuery(opts: {
46
44
  ftsQuery?: string;
47
45
  exactName?: string;
48
- kind?: string;
49
- filePath?: string;
46
+ kind?: SymbolKind;
47
+ filePath?: RelPath;
50
48
  isExported?: boolean;
51
49
  project?: string;
52
50
  limit?: number;
@@ -196,14 +196,14 @@ export declare const symbols: import("drizzle-orm/sqlite-core").SQLiteTableWithC
196
196
  tableName: "symbols";
197
197
  dataType: "string";
198
198
  columnType: "SQLiteText";
199
- data: string;
199
+ data: "function" | "property" | "method" | "class" | "variable" | "type" | "interface" | "enum" | "namespace";
200
200
  driverParam: string;
201
201
  notNull: true;
202
202
  hasDefault: false;
203
203
  isPrimaryKey: false;
204
204
  isAutoincrement: false;
205
205
  hasRuntimeDefault: false;
206
- enumValues: [string, ...string[]];
206
+ enumValues: ["function", "method", "class", "variable", "type", "interface", "enum", "namespace", "property"];
207
207
  baseColumn: never;
208
208
  identity: undefined;
209
209
  generated: undefined;
@@ -495,14 +495,14 @@ export declare const relations: import("drizzle-orm/sqlite-core").SQLiteTableWit
495
495
  tableName: "relations";
496
496
  dataType: "string";
497
497
  columnType: "SQLiteText";
498
- data: string;
498
+ data: "extends" | "implements" | "imports" | "type-references" | "re-exports" | "calls";
499
499
  driverParam: string;
500
500
  notNull: true;
501
501
  hasDefault: false;
502
502
  isPrimaryKey: false;
503
503
  isAutoincrement: false;
504
504
  hasRuntimeDefault: false;
505
- enumValues: [string, ...string[]];
505
+ enumValues: ["imports", "type-references", "re-exports", "calls", "extends", "implements"];
506
506
  baseColumn: never;
507
507
  identity: undefined;
508
508
  generated: undefined;
@@ -764,14 +764,14 @@ export declare const annotations: import("drizzle-orm/sqlite-core").SQLiteTableW
764
764
  tableName: "annotations";
765
765
  dataType: "string";
766
766
  columnType: "SQLiteText";
767
- data: string;
767
+ data: "jsdoc" | "line" | "block";
768
768
  driverParam: string;
769
769
  notNull: true;
770
770
  hasDefault: false;
771
771
  isPrimaryKey: false;
772
772
  isAutoincrement: false;
773
773
  hasRuntimeDefault: false;
774
- enumValues: [string, ...string[]];
774
+ enumValues: ["jsdoc", "line", "block"];
775
775
  baseColumn: never;
776
776
  identity: undefined;
777
777
  generated: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zipbul/gildash",
3
- "version": "0.33.0",
3
+ "version": "0.34.1",
4
4
  "description": "TypeScript code indexing and dependency graph engine for Bun",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,8 +0,0 @@
1
- export { extractSymbols } from './symbol-extractor';
2
- export { extractAnnotations } from './annotation-extractor';
3
- export { extractRelations } from './relation-extractor';
4
- export { extractImports } from './imports-extractor';
5
- export { extractCalls } from './calls-extractor';
6
- export { extractHeritage } from './heritage-extractor';
7
- export { resolveImport, buildImportMap } from './extractor-utils';
8
- export type { ExtractedSymbol, SymbolKind, CodeRelation, Parameter, Modifier, Heritage, Decorator, ExpressionValue, ExpressionLiteral, ExpressionIdentifier, ExpressionMember, ExpressionCall, ExpressionNew, ExpressionObject, ExpressionObjectProperty, ExpressionArray, ExpressionSpread, ExpressionFunction, ExpressionTemplate, ExpressionUnresolvable, ExpressionObjectEntry, KeyExpression, SymbolKey, JsDocBlock, JsDocTag, ImportReference, QualifiedName, AnnotationSource, ExtractedAnnotation, } from './types';