-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
41 lines (34 loc) · 887 Bytes
/
index.ts
File metadata and controls
41 lines (34 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Export all modules
export * from './api';
export * from './context';
export * from './events';
export * from './indexer';
export * from './map';
export * from './observability';
export { createPatternMatcher, type PatternMatcher } from './pattern-matcher';
export * from './scanner';
export * from './services';
export * from './storage';
export * from './utils';
export * from './vector';
export interface CoreConfig {
apiKey: string;
debug: boolean;
repositoryPath: string;
}
export class CoreService {
private config: CoreConfig;
constructor(config: CoreConfig) {
this.config = config;
}
initialize(): void {
// Debug logging handled by caller if needed
void this.config.debug;
}
getApiKey(): string {
return this.config.apiKey;
}
}
export function createCoreService(config: CoreConfig): CoreService {
return new CoreService(config);
}