septum 0.1.3 → 0.1.5
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/LICENSE +21 -21
- package/README.md +105 -102
- package/bin/septum.ts +4 -4
- package/package.json +63 -63
- package/src/cli/commands/check.ts +161 -161
- package/src/cli/commands/hook.ts +188 -188
- package/src/cli/commands/ingest.ts +29 -29
- package/src/cli/commands/init.ts +211 -211
- package/src/cli/commands/locate.ts +61 -61
- package/src/cli/commands/query.ts +64 -64
- package/src/cli/commands/serve.ts +5 -5
- package/src/cli/commands/slice.ts +48 -90
- package/src/cli/commands/sync.ts +31 -31
- package/src/cli/commands/topology.ts +119 -0
- package/src/cli/index.ts +210 -199
- package/src/cli/templates/hooks.ts +75 -75
- package/src/cli/templates/rules.ts +38 -38
- package/src/cli/templates/skill.ts +69 -69
- package/src/core/boundary/evaluator.ts +232 -210
- package/src/core/config/loader.ts +97 -97
- package/src/core/config/schema.ts +39 -39
- package/src/core/database/client.ts +44 -44
- package/src/core/database/repositories/dependency.repository.ts +366 -349
- package/src/core/database/repositories/domain.repository.ts +218 -198
- package/src/core/database/repositories/environment.repository.ts +207 -0
- package/src/core/database/repositories/file.repository.ts +116 -106
- package/src/core/database/repositories/meta.repository.ts +33 -33
- package/src/core/database/repositories/symbol.repository.ts +443 -424
- package/src/core/database/repository.ts +264 -255
- package/src/core/database/schema.ts +34 -1
- package/src/core/discovery/topology-detector.ts +486 -486
- package/src/core/ingestion/hasher.ts +5 -5
- package/src/core/ingestion/pipeline.ts +584 -535
- package/src/core/parser/behavioral-analyzer.ts +119 -0
- package/src/core/parser/boundary-tracker.ts +288 -128
- package/src/core/parser/extractors/base.ts +62 -61
- package/src/core/parser/extractors/frontend.ts +194 -194
- package/src/core/parser/extractors/go.ts +229 -176
- package/src/core/parser/extractors/laravel-semantic.ts +1039 -585
- package/src/core/parser/extractors/mcp-cli-semantic.ts +199 -199
- package/src/core/parser/extractors/nestjs-semantic.ts +119 -119
- package/src/core/parser/extractors/php.ts +153 -149
- package/src/core/parser/extractors/python.ts +228 -226
- package/src/core/parser/extractors/registry.ts +70 -70
- package/src/core/parser/extractors/semantic-extractor.interface.ts +21 -21
- package/src/core/parser/extractors/typescript.ts +181 -177
- package/src/core/parser/schema/providers/laravel-migration-provider.ts +215 -0
- package/src/core/parser/schema/providers/prisma-schema-provider.ts +89 -0
- package/src/core/parser/schema/schema-provider-registry.ts +43 -0
- package/src/core/parser/schema/schema-provider.interface.ts +33 -0
- package/src/core/parser/tree-sitter.ts +41 -41
- package/src/core/resolver/call-graph-tracer.ts +666 -668
- package/src/core/resolver/module-resolver.ts +408 -342
- package/src/core/resolver/symbol-locator.ts +543 -543
- package/src/core/resolver/vertical-slice-tracer.ts +301 -252
- package/src/core/session/session-manager.ts +56 -56
- package/src/core/telemetry/telemetry.ts +86 -86
- package/src/core/topology/environment-detector.ts +860 -0
- package/src/core/topology/types.ts +83 -0
- package/src/index.ts +21 -18
- package/src/mcp/schemas.ts +578 -238
- package/src/mcp/server.ts +875 -656
- package/src/mcp/tools/check-boundary.ts +171 -152
- package/src/mcp/tools/get-domain-catalog.ts +145 -121
- package/src/mcp/tools/get-environment-topology.ts +141 -0
- package/src/mcp/tools/get-feature-context.ts +212 -116
- package/src/mcp/tools/get-symbol-hotspots.ts +60 -49
- package/src/mcp/tools/get-symbol-impact.ts +28 -26
- package/src/mcp/tools/get-symbol.ts +65 -63
- package/src/mcp/tools/locate-symbol.ts +171 -190
- package/src/mcp/tools/register-domain.ts +68 -64
- package/src/mcp/tools/register-feature.ts +100 -0
- package/src/mcp/tools/trace-vertical-slice.ts +74 -103
- package/src/types/index.ts +335 -299
package/src/types/index.ts
CHANGED
|
@@ -1,299 +1,335 @@
|
|
|
1
|
-
export type EnforcementMode = "strict" | "warn";
|
|
2
|
-
|
|
3
|
-
export type ArchetypeKind =
|
|
4
|
-
| "controller"
|
|
5
|
-
| "service"
|
|
6
|
-
| "model"
|
|
7
|
-
| "repository"
|
|
8
|
-
| "action"
|
|
9
|
-
| "job"
|
|
10
|
-
| "event"
|
|
11
|
-
| "listener"
|
|
12
|
-
| "middleware"
|
|
13
|
-
| "request"
|
|
14
|
-
| "resource"
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
1
|
+
export type EnforcementMode = "strict" | "warn";
|
|
2
|
+
|
|
3
|
+
export type ArchetypeKind =
|
|
4
|
+
| "controller"
|
|
5
|
+
| "service"
|
|
6
|
+
| "model"
|
|
7
|
+
| "repository"
|
|
8
|
+
| "action"
|
|
9
|
+
| "job"
|
|
10
|
+
| "event"
|
|
11
|
+
| "listener"
|
|
12
|
+
| "middleware"
|
|
13
|
+
| "request"
|
|
14
|
+
| "resource"
|
|
15
|
+
| "route"
|
|
16
|
+
| "util"
|
|
17
|
+
| "view"
|
|
18
|
+
| "unknown";
|
|
19
|
+
|
|
20
|
+
export type SymbolKind =
|
|
21
|
+
| "class"
|
|
22
|
+
| "interface"
|
|
23
|
+
| "trait"
|
|
24
|
+
| "enum"
|
|
25
|
+
| "method"
|
|
26
|
+
| "function"
|
|
27
|
+
| "type"
|
|
28
|
+
| "property"
|
|
29
|
+
| "component"
|
|
30
|
+
| "view";
|
|
31
|
+
|
|
32
|
+
export type Visibility = "public" | "protected" | "private";
|
|
33
|
+
|
|
34
|
+
export interface SeptumConfig {
|
|
35
|
+
version: string;
|
|
36
|
+
settings: {
|
|
37
|
+
enforcement: EnforcementMode;
|
|
38
|
+
db_path?: string;
|
|
39
|
+
ignore_patterns?: string[];
|
|
40
|
+
};
|
|
41
|
+
domains: Record<string, DomainConfig>;
|
|
42
|
+
features?: Record<string, FeatureConfig>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface DomainConfig {
|
|
46
|
+
root: string;
|
|
47
|
+
allowed_dependencies?: string[];
|
|
48
|
+
forbidden_dependencies?: string[];
|
|
49
|
+
archetypes?: Record<string, string>;
|
|
50
|
+
description?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface FeatureConfig {
|
|
54
|
+
domain: string;
|
|
55
|
+
description?: string;
|
|
56
|
+
allowed_touchpoints: string[];
|
|
57
|
+
reuse_symbols?: string[];
|
|
58
|
+
input_contract?: Record<string, unknown>;
|
|
59
|
+
output_contract?: Record<string, unknown>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface FeatureContextResponse {
|
|
63
|
+
feature_key: string;
|
|
64
|
+
feature?: string;
|
|
65
|
+
domain: string;
|
|
66
|
+
description?: string;
|
|
67
|
+
allowed_touchpoints: string[];
|
|
68
|
+
reuse_symbols: Array<{
|
|
69
|
+
name: string;
|
|
70
|
+
kind: string;
|
|
71
|
+
signature?: string;
|
|
72
|
+
methods?: string[];
|
|
73
|
+
properties?: string[];
|
|
74
|
+
file_path?: string;
|
|
75
|
+
domain?: string;
|
|
76
|
+
}>;
|
|
77
|
+
input_contract: Record<string, unknown>;
|
|
78
|
+
output_contract: Record<string, unknown>;
|
|
79
|
+
governance_directives?: string[];
|
|
80
|
+
is_inferred?: boolean;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface RegisterFeatureArgs {
|
|
84
|
+
feature_key: string;
|
|
85
|
+
domain: string;
|
|
86
|
+
description?: string;
|
|
87
|
+
allowed_touchpoints: string[];
|
|
88
|
+
reuse_symbols?: string[];
|
|
89
|
+
input_contract?: Record<string, unknown>;
|
|
90
|
+
output_contract?: Record<string, unknown>;
|
|
91
|
+
persist_to_config?: boolean;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface CheckBoundaryArgs {
|
|
95
|
+
file_path: string;
|
|
96
|
+
proposed_imports: string[];
|
|
97
|
+
feature_key?: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface DomainRecord {
|
|
101
|
+
id: number;
|
|
102
|
+
name: string;
|
|
103
|
+
root_path: string;
|
|
104
|
+
allowed_deps_json: string;
|
|
105
|
+
forbidden_deps_json: string;
|
|
106
|
+
archetypes_json: string;
|
|
107
|
+
created_at: string;
|
|
108
|
+
updated_at: string;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface FileRecord {
|
|
112
|
+
id: number;
|
|
113
|
+
domain_id: number;
|
|
114
|
+
path: string;
|
|
115
|
+
archetype: ArchetypeKind;
|
|
116
|
+
content_hash: string;
|
|
117
|
+
line_count: number;
|
|
118
|
+
mtime_ms: number;
|
|
119
|
+
size_bytes: number;
|
|
120
|
+
last_scanned_at: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface ActiveFeatureSession {
|
|
124
|
+
feature_key: string;
|
|
125
|
+
domain: string;
|
|
126
|
+
touchpoints: string[];
|
|
127
|
+
locked_at: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface SymbolRecord {
|
|
131
|
+
id: number;
|
|
132
|
+
file_id: number;
|
|
133
|
+
name: string;
|
|
134
|
+
kind: SymbolKind;
|
|
135
|
+
signature: string;
|
|
136
|
+
visibility: Visibility;
|
|
137
|
+
line_start: number;
|
|
138
|
+
line_end: number;
|
|
139
|
+
line_count: number;
|
|
140
|
+
nesting_depth: number;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface DependencyRecord {
|
|
144
|
+
id: number;
|
|
145
|
+
source_file_id: number;
|
|
146
|
+
target_symbol_or_path: string;
|
|
147
|
+
import_statement: string;
|
|
148
|
+
line_number: number;
|
|
149
|
+
is_external: boolean;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface ExtractedSymbol {
|
|
153
|
+
name: string;
|
|
154
|
+
kind: SymbolKind;
|
|
155
|
+
signature: string;
|
|
156
|
+
visibility: Visibility;
|
|
157
|
+
line_start: number;
|
|
158
|
+
line_end: number;
|
|
159
|
+
line_count: number;
|
|
160
|
+
nesting_depth?: number;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface ExtractedDependency {
|
|
164
|
+
target: string;
|
|
165
|
+
statement: string;
|
|
166
|
+
line_number: number;
|
|
167
|
+
is_external: boolean;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export interface ParsedFileAST {
|
|
171
|
+
symbols: ExtractedSymbol[];
|
|
172
|
+
dependencies: ExtractedDependency[];
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export type BoundaryViolationRule =
|
|
176
|
+
| "forbidden_dependency"
|
|
177
|
+
| "disallowed_dependency"
|
|
178
|
+
| "touchpoint_violation"
|
|
179
|
+
| "unknown_feature"
|
|
180
|
+
| "unmapped_domain";
|
|
181
|
+
|
|
182
|
+
export interface BoundaryViolation {
|
|
183
|
+
file: string;
|
|
184
|
+
line: number;
|
|
185
|
+
source_domain: string;
|
|
186
|
+
target_domain: string;
|
|
187
|
+
imported_target: string;
|
|
188
|
+
rule: BoundaryViolationRule;
|
|
189
|
+
message: string;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface DomainCatalogResponse {
|
|
193
|
+
domain: string;
|
|
194
|
+
root: string;
|
|
195
|
+
allowed_dependencies: string[];
|
|
196
|
+
forbidden_dependencies: string[];
|
|
197
|
+
files: Array<{
|
|
198
|
+
path: string;
|
|
199
|
+
archetype: ArchetypeKind;
|
|
200
|
+
symbols: Array<{
|
|
201
|
+
name: string;
|
|
202
|
+
kind: SymbolKind;
|
|
203
|
+
properties?: string[];
|
|
204
|
+
methods?: string[];
|
|
205
|
+
signatures?: string[];
|
|
206
|
+
}>;
|
|
207
|
+
}>;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export interface ExecutionChainNode {
|
|
211
|
+
stage:
|
|
212
|
+
| "ingress"
|
|
213
|
+
| "guard"
|
|
214
|
+
| "validation"
|
|
215
|
+
| "controller"
|
|
216
|
+
| "action"
|
|
217
|
+
| "service"
|
|
218
|
+
| "orchestrator"
|
|
219
|
+
| "use_case"
|
|
220
|
+
| "domain"
|
|
221
|
+
| "entity"
|
|
222
|
+
| "side_effect"
|
|
223
|
+
| "job"
|
|
224
|
+
| "event"
|
|
225
|
+
| "transaction"
|
|
226
|
+
| "egress"
|
|
227
|
+
| "repository"
|
|
228
|
+
| string;
|
|
229
|
+
symbol: string;
|
|
230
|
+
file?: string;
|
|
231
|
+
line?: number;
|
|
232
|
+
description?: string;
|
|
233
|
+
table?: string;
|
|
234
|
+
schema_file?: string;
|
|
235
|
+
columns_summary?: string;
|
|
236
|
+
guards?: string[];
|
|
237
|
+
mutations?: string[];
|
|
238
|
+
emits?: string[];
|
|
239
|
+
dispatches?: string[];
|
|
240
|
+
transactions?: boolean;
|
|
241
|
+
payload_props?: string[];
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export interface VerticalSliceRecord {
|
|
245
|
+
id: number;
|
|
246
|
+
domain_id: number | null;
|
|
247
|
+
feature_key: string | null;
|
|
248
|
+
http_method: string;
|
|
249
|
+
route_uri: string;
|
|
250
|
+
route_name: string | null;
|
|
251
|
+
controller_class: string;
|
|
252
|
+
action_name: string;
|
|
253
|
+
controller_file: string | null;
|
|
254
|
+
controller_line: number;
|
|
255
|
+
architecture_style: string;
|
|
256
|
+
entry_kind: string;
|
|
257
|
+
execution_chain_json: string;
|
|
258
|
+
created_at: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface VerticalSliceTraceResponse {
|
|
262
|
+
query: string;
|
|
263
|
+
found: boolean;
|
|
264
|
+
confidence?: "exact" | "inferred";
|
|
265
|
+
is_exact_match?: boolean;
|
|
266
|
+
architecture_style?: string;
|
|
267
|
+
entrypoint?: {
|
|
268
|
+
method: string;
|
|
269
|
+
uri: string;
|
|
270
|
+
name?: string | null;
|
|
271
|
+
controller: string;
|
|
272
|
+
action: string;
|
|
273
|
+
file?: string | null;
|
|
274
|
+
line?: number;
|
|
275
|
+
};
|
|
276
|
+
chain?: ExecutionChainNode[];
|
|
277
|
+
slice?: ExecutionChainNode[];
|
|
278
|
+
alternatives?: Array<{
|
|
279
|
+
method: string;
|
|
280
|
+
uri: string;
|
|
281
|
+
controller: string;
|
|
282
|
+
action: string;
|
|
283
|
+
}>;
|
|
284
|
+
message: string;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export interface GetSymbolArgs {
|
|
288
|
+
symbol: string;
|
|
289
|
+
domain?: string;
|
|
290
|
+
include_dependencies?: boolean;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export interface SymbolExactRange {
|
|
294
|
+
start_line: number;
|
|
295
|
+
end_line: number;
|
|
296
|
+
total_lines: number;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export interface GetSymbolDetailsResponse {
|
|
300
|
+
symbol: string;
|
|
301
|
+
kind: SymbolKind | string;
|
|
302
|
+
file_path: string;
|
|
303
|
+
domain?: string;
|
|
304
|
+
exact_range: SymbolExactRange;
|
|
305
|
+
signature: string;
|
|
306
|
+
visibility?: Visibility | string;
|
|
307
|
+
dependencies_injected: string[];
|
|
308
|
+
outbound_calls: string[];
|
|
309
|
+
sibling_methods?: string[];
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export interface GetSymbolImpactArgs {
|
|
313
|
+
symbol: string;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export interface InboundCaller {
|
|
317
|
+
file: string;
|
|
318
|
+
caller: string;
|
|
319
|
+
line: number;
|
|
320
|
+
kind?: string;
|
|
321
|
+
domain?: string;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export interface GetSymbolImpactResponse {
|
|
325
|
+
target_symbol: string;
|
|
326
|
+
found_in_index: boolean;
|
|
327
|
+
warning?: string;
|
|
328
|
+
impact_summary: {
|
|
329
|
+
total_dependents: number;
|
|
330
|
+
risk_level: "low" | "medium" | "high";
|
|
331
|
+
affected_files_count: number;
|
|
332
|
+
};
|
|
333
|
+
inbound_callers: InboundCaller[];
|
|
334
|
+
}
|
|
335
|
+
|