@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.
- package/README.md +1 -0
- package/dist/index.js +9 -9
- package/dist/src/common/hasher.d.ts +0 -1
- package/dist/src/common/path-utils.d.ts +28 -2
- package/dist/src/extractor/types.d.ts +7 -3
- package/dist/src/gildash/context.d.ts +12 -9
- package/dist/src/gildash/guard.d.ts +23 -0
- package/dist/src/gildash/index.d.ts +16 -0
- package/dist/src/gildash/lifecycle.d.ts +3 -2
- package/dist/src/gildash/semantic-api.d.ts +4 -0
- package/dist/src/indexer/annotation-indexer.d.ts +2 -1
- package/dist/src/indexer/relation-indexer.d.ts +2 -1
- package/dist/src/indexer/symbol-indexer.d.ts +2 -2
- package/dist/src/parser/ast-utils.d.ts +2 -5
- package/dist/src/parser/index.d.ts +1 -1
- package/dist/src/search/annotation-search.d.ts +3 -3
- package/dist/src/search/dependency-graph.d.ts +13 -11
- package/dist/src/search/index.d.ts +4 -4
- package/dist/src/search/relation-search.d.ts +8 -5
- package/dist/src/search/symbol-search.d.ts +6 -4
- package/dist/src/semantic/index.d.ts +3 -0
- package/dist/src/semantic/tsc-program.d.ts +0 -1
- package/dist/src/semantic/type-collector.d.ts +13 -0
- package/dist/src/store/index.d.ts +1 -1
- package/dist/src/store/repositories/annotation.repository.d.ts +3 -2
- package/dist/src/store/repositories/file.repository.d.ts +3 -2
- package/dist/src/store/repositories/relation.repository.d.ts +14 -10
- package/dist/src/store/repositories/symbol.repository.d.ts +10 -12
- package/dist/src/store/schema.d.ts +6 -6
- package/package.json +1 -1
- package/dist/src/extractor/index.d.ts +0 -8
|
@@ -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:
|
|
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
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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:
|
|
42
|
+
deleteFileSymbols(project: string, filePath: RelPath): void;
|
|
45
43
|
searchByQuery(opts: {
|
|
46
44
|
ftsQuery?: string;
|
|
47
45
|
exactName?: string;
|
|
48
|
-
kind?:
|
|
49
|
-
filePath?:
|
|
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:
|
|
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: [
|
|
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:
|
|
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: [
|
|
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:
|
|
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: [
|
|
774
|
+
enumValues: ["jsdoc", "line", "block"];
|
|
775
775
|
baseColumn: never;
|
|
776
776
|
identity: undefined;
|
|
777
777
|
generated: undefined;
|
package/package.json
CHANGED
|
@@ -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';
|