septum 0.1.0 → 0.1.2

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.
Files changed (65) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +100 -100
  3. package/bin/septum.ts +4 -4
  4. package/package.json +63 -62
  5. package/src/cli/commands/check.ts +161 -161
  6. package/src/cli/commands/hook.ts +188 -188
  7. package/src/cli/commands/ingest.ts +29 -29
  8. package/src/cli/commands/init.ts +211 -211
  9. package/src/cli/commands/locate.ts +61 -61
  10. package/src/cli/commands/query.ts +64 -64
  11. package/src/cli/commands/serve.ts +5 -5
  12. package/src/cli/commands/slice.ts +90 -90
  13. package/src/cli/commands/sync.ts +31 -31
  14. package/src/cli/index.ts +199 -178
  15. package/src/cli/templates/hooks.ts +75 -75
  16. package/src/cli/templates/rules.ts +38 -38
  17. package/src/cli/templates/skill.ts +66 -66
  18. package/src/core/boundary/evaluator.ts +210 -210
  19. package/src/core/config/loader.ts +84 -84
  20. package/src/core/config/schema.ts +39 -39
  21. package/src/core/database/client.ts +44 -132
  22. package/src/core/database/repositories/dependency.repository.ts +279 -279
  23. package/src/core/database/repositories/domain.repository.ts +198 -198
  24. package/src/core/database/repositories/file.repository.ts +99 -99
  25. package/src/core/database/repositories/meta.repository.ts +33 -33
  26. package/src/core/database/repositories/symbol.repository.ts +424 -424
  27. package/src/core/database/repository.ts +242 -242
  28. package/src/core/database/schema.ts +120 -0
  29. package/src/core/discovery/topology-detector.ts +418 -418
  30. package/src/core/ingestion/hasher.ts +5 -5
  31. package/src/core/ingestion/pipeline.ts +438 -438
  32. package/src/core/parser/boundary-tracker.ts +128 -128
  33. package/src/core/parser/extractors/base.ts +60 -60
  34. package/src/core/parser/extractors/frontend.ts +194 -194
  35. package/src/core/parser/extractors/go.ts +176 -176
  36. package/src/core/parser/extractors/laravel-semantic.ts +426 -426
  37. package/src/core/parser/extractors/mcp-cli-semantic.ts +199 -199
  38. package/src/core/parser/extractors/nestjs-semantic.ts +119 -119
  39. package/src/core/parser/extractors/php.ts +149 -149
  40. package/src/core/parser/extractors/python.ts +226 -226
  41. package/src/core/parser/extractors/registry.ts +49 -49
  42. package/src/core/parser/extractors/semantic-extractor.interface.ts +21 -21
  43. package/src/core/parser/extractors/typescript.ts +177 -177
  44. package/src/core/parser/tree-sitter.ts +39 -39
  45. package/src/core/resolver/call-graph-tracer.ts +668 -668
  46. package/src/core/resolver/module-resolver.ts +342 -323
  47. package/src/core/resolver/symbol-locator.ts +543 -405
  48. package/src/core/resolver/vertical-slice-tracer.ts +237 -236
  49. package/src/core/session/session-manager.ts +56 -56
  50. package/src/core/telemetry/telemetry.ts +86 -86
  51. package/src/index.ts +18 -18
  52. package/src/mcp/schemas.ts +68 -68
  53. package/src/mcp/server.ts +612 -602
  54. package/src/mcp/tools/check-boundary.ts +102 -102
  55. package/src/mcp/tools/get-domain-catalog.ts +91 -91
  56. package/src/mcp/tools/get-feature-context.ts +116 -116
  57. package/src/mcp/tools/get-symbol-hotspots.ts +49 -49
  58. package/src/mcp/tools/get-symbol-impact.ts +26 -26
  59. package/src/mcp/tools/get-symbol.ts +63 -63
  60. package/src/mcp/tools/locate-symbol.ts +74 -74
  61. package/src/mcp/tools/register-domain.ts +64 -64
  62. package/src/mcp/tools/trace-vertical-slice.ts +102 -102
  63. package/src/types/index.ts +296 -296
  64. package/src/version.ts +3 -0
  65. package/src/core/database/schema.sql +0 -92
@@ -1,296 +1,296 @@
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
- | "util"
16
- | "unknown";
17
-
18
- export type SymbolKind =
19
- | "class"
20
- | "interface"
21
- | "trait"
22
- | "enum"
23
- | "method"
24
- | "function"
25
- | "type"
26
- | "property";
27
-
28
- export type Visibility = "public" | "protected" | "private";
29
-
30
- export interface SeptumConfig {
31
- version: string;
32
- settings: {
33
- enforcement: EnforcementMode;
34
- db_path?: string;
35
- ignore_patterns?: string[];
36
- };
37
- domains: Record<string, DomainConfig>;
38
- features?: Record<string, FeatureConfig>;
39
- }
40
-
41
- export interface DomainConfig {
42
- root: string;
43
- allowed_dependencies?: string[];
44
- forbidden_dependencies?: string[];
45
- archetypes?: Record<string, string>;
46
- description?: string;
47
- }
48
-
49
- export interface FeatureConfig {
50
- domain: string;
51
- description?: string;
52
- allowed_touchpoints: string[];
53
- reuse_symbols?: string[];
54
- input_contract?: Record<string, unknown>;
55
- output_contract?: Record<string, unknown>;
56
- }
57
-
58
- export interface FeatureContextResponse {
59
- feature: string;
60
- domain: string;
61
- description?: string;
62
- allowed_touchpoints: string[];
63
- reuse_symbols: Array<{
64
- name: string;
65
- kind: string;
66
- signature?: string;
67
- methods?: string[];
68
- properties?: string[];
69
- file_path?: string;
70
- domain?: string;
71
- }>;
72
- input_contract: Record<string, unknown>;
73
- output_contract: Record<string, unknown>;
74
- governance_directives?: string[];
75
- }
76
-
77
- export interface CheckBoundaryArgs {
78
- file_path: string;
79
- proposed_imports: string[];
80
- feature_key?: string;
81
- }
82
-
83
- export interface DomainRecord {
84
- id: number;
85
- name: string;
86
- root_path: string;
87
- allowed_deps_json: string;
88
- forbidden_deps_json: string;
89
- archetypes_json: string;
90
- created_at: string;
91
- updated_at: string;
92
- }
93
-
94
- export interface FileRecord {
95
- id: number;
96
- domain_id: number;
97
- path: string;
98
- archetype: ArchetypeKind;
99
- content_hash: string;
100
- line_count: number;
101
- mtime_ms: number;
102
- size_bytes: number;
103
- last_scanned_at: string;
104
- }
105
-
106
- export interface ActiveFeatureSession {
107
- feature_key: string;
108
- domain: string;
109
- touchpoints: string[];
110
- locked_at: string;
111
- }
112
-
113
- export interface SymbolRecord {
114
- id: number;
115
- file_id: number;
116
- name: string;
117
- kind: SymbolKind;
118
- signature: string;
119
- visibility: Visibility;
120
- line_start: number;
121
- line_end: number;
122
- line_count: number;
123
- }
124
-
125
- export interface DependencyRecord {
126
- id: number;
127
- source_file_id: number;
128
- target_symbol_or_path: string;
129
- import_statement: string;
130
- line_number: number;
131
- is_external: boolean;
132
- }
133
-
134
- export interface ExtractedSymbol {
135
- name: string;
136
- kind: SymbolKind;
137
- signature: string;
138
- visibility: Visibility;
139
- line_start: number;
140
- line_end: number;
141
- line_count: number;
142
- }
143
-
144
- export interface ExtractedDependency {
145
- target: string;
146
- statement: string;
147
- line_number: number;
148
- is_external: boolean;
149
- }
150
-
151
- export interface ParsedFileAST {
152
- symbols: ExtractedSymbol[];
153
- dependencies: ExtractedDependency[];
154
- }
155
-
156
- export type BoundaryViolationRule =
157
- | "forbidden_dependency"
158
- | "disallowed_dependency"
159
- | "touchpoint_violation"
160
- | "unknown_feature";
161
-
162
- export interface BoundaryViolation {
163
- file: string;
164
- line: number;
165
- source_domain: string;
166
- target_domain: string;
167
- imported_target: string;
168
- rule: BoundaryViolationRule;
169
- message: string;
170
- }
171
-
172
- export interface DomainCatalogResponse {
173
- domain: string;
174
- root: string;
175
- allowed_dependencies: string[];
176
- forbidden_dependencies: string[];
177
- files: Array<{
178
- path: string;
179
- archetype: ArchetypeKind;
180
- symbols: Array<{
181
- name: string;
182
- kind: SymbolKind;
183
- properties?: string[];
184
- methods?: string[];
185
- signatures?: string[];
186
- }>;
187
- }>;
188
- }
189
-
190
- export interface ExecutionChainNode {
191
- stage:
192
- | "ingress"
193
- | "validation"
194
- | "controller"
195
- | "orchestrator"
196
- | "use_case"
197
- | "domain"
198
- | "entity"
199
- | "egress"
200
- | "repository"
201
- | string;
202
- symbol: string;
203
- file?: string;
204
- line?: number;
205
- description?: string;
206
- }
207
-
208
- export interface VerticalSliceRecord {
209
- id: number;
210
- domain_id: number | null;
211
- feature_key: string | null;
212
- http_method: string;
213
- route_uri: string;
214
- route_name: string | null;
215
- controller_class: string;
216
- action_name: string;
217
- controller_file: string | null;
218
- controller_line: number;
219
- architecture_style: string;
220
- entry_kind: string;
221
- execution_chain_json: string;
222
- created_at: string;
223
- }
224
-
225
- export interface VerticalSliceTraceResponse {
226
- query: string;
227
- found: boolean;
228
- confidence?: "exact" | "inferred";
229
- is_exact_match?: boolean;
230
- architecture_style?: string;
231
- entrypoint?: {
232
- method: string;
233
- uri: string;
234
- name?: string | null;
235
- controller: string;
236
- action: string;
237
- file?: string | null;
238
- line?: number;
239
- };
240
- chain?: ExecutionChainNode[];
241
- alternatives?: Array<{
242
- method: string;
243
- uri: string;
244
- controller: string;
245
- action: string;
246
- }>;
247
- message: string;
248
- }
249
-
250
- export interface GetSymbolArgs {
251
- symbol: string;
252
- domain?: string;
253
- include_dependencies?: boolean;
254
- }
255
-
256
- export interface SymbolExactRange {
257
- start_line: number;
258
- end_line: number;
259
- total_lines: number;
260
- }
261
-
262
- export interface GetSymbolDetailsResponse {
263
- symbol: string;
264
- kind: SymbolKind | string;
265
- file_path: string;
266
- domain?: string;
267
- exact_range: SymbolExactRange;
268
- signature: string;
269
- visibility?: Visibility | string;
270
- dependencies_injected: string[];
271
- outbound_calls: string[];
272
- sibling_methods?: string[];
273
- }
274
-
275
- export interface GetSymbolImpactArgs {
276
- symbol: string;
277
- }
278
-
279
- export interface InboundCaller {
280
- file: string;
281
- caller: string;
282
- line: number;
283
- kind?: string;
284
- domain?: string;
285
- }
286
-
287
- export interface GetSymbolImpactResponse {
288
- target_symbol: string;
289
- impact_summary: {
290
- total_dependents: number;
291
- risk_level: "low" | "medium" | "high";
292
- affected_files_count: number;
293
- };
294
- inbound_callers: InboundCaller[];
295
- }
296
-
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
+ | "util"
16
+ | "unknown";
17
+
18
+ export type SymbolKind =
19
+ | "class"
20
+ | "interface"
21
+ | "trait"
22
+ | "enum"
23
+ | "method"
24
+ | "function"
25
+ | "type"
26
+ | "property";
27
+
28
+ export type Visibility = "public" | "protected" | "private";
29
+
30
+ export interface SeptumConfig {
31
+ version: string;
32
+ settings: {
33
+ enforcement: EnforcementMode;
34
+ db_path?: string;
35
+ ignore_patterns?: string[];
36
+ };
37
+ domains: Record<string, DomainConfig>;
38
+ features?: Record<string, FeatureConfig>;
39
+ }
40
+
41
+ export interface DomainConfig {
42
+ root: string;
43
+ allowed_dependencies?: string[];
44
+ forbidden_dependencies?: string[];
45
+ archetypes?: Record<string, string>;
46
+ description?: string;
47
+ }
48
+
49
+ export interface FeatureConfig {
50
+ domain: string;
51
+ description?: string;
52
+ allowed_touchpoints: string[];
53
+ reuse_symbols?: string[];
54
+ input_contract?: Record<string, unknown>;
55
+ output_contract?: Record<string, unknown>;
56
+ }
57
+
58
+ export interface FeatureContextResponse {
59
+ feature: string;
60
+ domain: string;
61
+ description?: string;
62
+ allowed_touchpoints: string[];
63
+ reuse_symbols: Array<{
64
+ name: string;
65
+ kind: string;
66
+ signature?: string;
67
+ methods?: string[];
68
+ properties?: string[];
69
+ file_path?: string;
70
+ domain?: string;
71
+ }>;
72
+ input_contract: Record<string, unknown>;
73
+ output_contract: Record<string, unknown>;
74
+ governance_directives?: string[];
75
+ }
76
+
77
+ export interface CheckBoundaryArgs {
78
+ file_path: string;
79
+ proposed_imports: string[];
80
+ feature_key?: string;
81
+ }
82
+
83
+ export interface DomainRecord {
84
+ id: number;
85
+ name: string;
86
+ root_path: string;
87
+ allowed_deps_json: string;
88
+ forbidden_deps_json: string;
89
+ archetypes_json: string;
90
+ created_at: string;
91
+ updated_at: string;
92
+ }
93
+
94
+ export interface FileRecord {
95
+ id: number;
96
+ domain_id: number;
97
+ path: string;
98
+ archetype: ArchetypeKind;
99
+ content_hash: string;
100
+ line_count: number;
101
+ mtime_ms: number;
102
+ size_bytes: number;
103
+ last_scanned_at: string;
104
+ }
105
+
106
+ export interface ActiveFeatureSession {
107
+ feature_key: string;
108
+ domain: string;
109
+ touchpoints: string[];
110
+ locked_at: string;
111
+ }
112
+
113
+ export interface SymbolRecord {
114
+ id: number;
115
+ file_id: number;
116
+ name: string;
117
+ kind: SymbolKind;
118
+ signature: string;
119
+ visibility: Visibility;
120
+ line_start: number;
121
+ line_end: number;
122
+ line_count: number;
123
+ }
124
+
125
+ export interface DependencyRecord {
126
+ id: number;
127
+ source_file_id: number;
128
+ target_symbol_or_path: string;
129
+ import_statement: string;
130
+ line_number: number;
131
+ is_external: boolean;
132
+ }
133
+
134
+ export interface ExtractedSymbol {
135
+ name: string;
136
+ kind: SymbolKind;
137
+ signature: string;
138
+ visibility: Visibility;
139
+ line_start: number;
140
+ line_end: number;
141
+ line_count: number;
142
+ }
143
+
144
+ export interface ExtractedDependency {
145
+ target: string;
146
+ statement: string;
147
+ line_number: number;
148
+ is_external: boolean;
149
+ }
150
+
151
+ export interface ParsedFileAST {
152
+ symbols: ExtractedSymbol[];
153
+ dependencies: ExtractedDependency[];
154
+ }
155
+
156
+ export type BoundaryViolationRule =
157
+ | "forbidden_dependency"
158
+ | "disallowed_dependency"
159
+ | "touchpoint_violation"
160
+ | "unknown_feature";
161
+
162
+ export interface BoundaryViolation {
163
+ file: string;
164
+ line: number;
165
+ source_domain: string;
166
+ target_domain: string;
167
+ imported_target: string;
168
+ rule: BoundaryViolationRule;
169
+ message: string;
170
+ }
171
+
172
+ export interface DomainCatalogResponse {
173
+ domain: string;
174
+ root: string;
175
+ allowed_dependencies: string[];
176
+ forbidden_dependencies: string[];
177
+ files: Array<{
178
+ path: string;
179
+ archetype: ArchetypeKind;
180
+ symbols: Array<{
181
+ name: string;
182
+ kind: SymbolKind;
183
+ properties?: string[];
184
+ methods?: string[];
185
+ signatures?: string[];
186
+ }>;
187
+ }>;
188
+ }
189
+
190
+ export interface ExecutionChainNode {
191
+ stage:
192
+ | "ingress"
193
+ | "validation"
194
+ | "controller"
195
+ | "orchestrator"
196
+ | "use_case"
197
+ | "domain"
198
+ | "entity"
199
+ | "egress"
200
+ | "repository"
201
+ | string;
202
+ symbol: string;
203
+ file?: string;
204
+ line?: number;
205
+ description?: string;
206
+ }
207
+
208
+ export interface VerticalSliceRecord {
209
+ id: number;
210
+ domain_id: number | null;
211
+ feature_key: string | null;
212
+ http_method: string;
213
+ route_uri: string;
214
+ route_name: string | null;
215
+ controller_class: string;
216
+ action_name: string;
217
+ controller_file: string | null;
218
+ controller_line: number;
219
+ architecture_style: string;
220
+ entry_kind: string;
221
+ execution_chain_json: string;
222
+ created_at: string;
223
+ }
224
+
225
+ export interface VerticalSliceTraceResponse {
226
+ query: string;
227
+ found: boolean;
228
+ confidence?: "exact" | "inferred";
229
+ is_exact_match?: boolean;
230
+ architecture_style?: string;
231
+ entrypoint?: {
232
+ method: string;
233
+ uri: string;
234
+ name?: string | null;
235
+ controller: string;
236
+ action: string;
237
+ file?: string | null;
238
+ line?: number;
239
+ };
240
+ chain?: ExecutionChainNode[];
241
+ alternatives?: Array<{
242
+ method: string;
243
+ uri: string;
244
+ controller: string;
245
+ action: string;
246
+ }>;
247
+ message: string;
248
+ }
249
+
250
+ export interface GetSymbolArgs {
251
+ symbol: string;
252
+ domain?: string;
253
+ include_dependencies?: boolean;
254
+ }
255
+
256
+ export interface SymbolExactRange {
257
+ start_line: number;
258
+ end_line: number;
259
+ total_lines: number;
260
+ }
261
+
262
+ export interface GetSymbolDetailsResponse {
263
+ symbol: string;
264
+ kind: SymbolKind | string;
265
+ file_path: string;
266
+ domain?: string;
267
+ exact_range: SymbolExactRange;
268
+ signature: string;
269
+ visibility?: Visibility | string;
270
+ dependencies_injected: string[];
271
+ outbound_calls: string[];
272
+ sibling_methods?: string[];
273
+ }
274
+
275
+ export interface GetSymbolImpactArgs {
276
+ symbol: string;
277
+ }
278
+
279
+ export interface InboundCaller {
280
+ file: string;
281
+ caller: string;
282
+ line: number;
283
+ kind?: string;
284
+ domain?: string;
285
+ }
286
+
287
+ export interface GetSymbolImpactResponse {
288
+ target_symbol: string;
289
+ impact_summary: {
290
+ total_dependents: number;
291
+ risk_level: "low" | "medium" | "high";
292
+ affected_files_count: number;
293
+ };
294
+ inbound_callers: InboundCaller[];
295
+ }
296
+
package/src/version.ts ADDED
@@ -0,0 +1,3 @@
1
+ import packageJson from "../package.json" with { type: "json" };
2
+
3
+ export const SEPTUM_VERSION: string = packageJson.version;
@@ -1,92 +0,0 @@
1
- -- Septum Embedded SQLite Database Schema
2
- -- Version 1.0
3
-
4
- PRAGMA foreign_keys = ON;
5
-
6
- CREATE TABLE IF NOT EXISTS domains (
7
- id INTEGER PRIMARY KEY AUTOINCREMENT,
8
- name TEXT NOT NULL UNIQUE,
9
- root_path TEXT NOT NULL,
10
- allowed_deps_json TEXT NOT NULL DEFAULT '[]',
11
- forbidden_deps_json TEXT NOT NULL DEFAULT '[]',
12
- archetypes_json TEXT NOT NULL DEFAULT '{}',
13
- created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
14
- updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
15
- );
16
-
17
- CREATE TABLE IF NOT EXISTS files (
18
- id INTEGER PRIMARY KEY AUTOINCREMENT,
19
- domain_id INTEGER NOT NULL,
20
- path TEXT NOT NULL UNIQUE,
21
- archetype TEXT NOT NULL DEFAULT 'unknown',
22
- content_hash TEXT NOT NULL,
23
- line_count INTEGER NOT NULL DEFAULT 0,
24
- mtime_ms INTEGER NOT NULL DEFAULT 0,
25
- size_bytes INTEGER NOT NULL DEFAULT 0,
26
- last_scanned_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
27
- FOREIGN KEY (domain_id) REFERENCES domains(id) ON DELETE CASCADE
28
- );
29
-
30
- CREATE TABLE IF NOT EXISTS symbols (
31
- id INTEGER PRIMARY KEY AUTOINCREMENT,
32
- file_id INTEGER NOT NULL,
33
- name TEXT NOT NULL,
34
- kind TEXT NOT NULL, -- 'class' | 'interface' | 'trait' | 'method' | 'function' | 'property'
35
- signature TEXT NOT NULL,
36
- visibility TEXT NOT NULL DEFAULT 'public', -- 'public' | 'protected' | 'private'
37
- line_start INTEGER NOT NULL DEFAULT 0,
38
- line_end INTEGER NOT NULL DEFAULT 0,
39
- line_count INTEGER NOT NULL DEFAULT 1,
40
- FOREIGN KEY (file_id) REFERENCES files(id) ON DELETE CASCADE
41
- );
42
-
43
- CREATE TABLE IF NOT EXISTS dependencies (
44
- id INTEGER PRIMARY KEY AUTOINCREMENT,
45
- source_file_id INTEGER NOT NULL,
46
- target_symbol_or_path TEXT NOT NULL,
47
- import_statement TEXT NOT NULL,
48
- line_number INTEGER NOT NULL DEFAULT 0,
49
- is_external BOOLEAN NOT NULL DEFAULT 0,
50
- FOREIGN KEY (source_file_id) REFERENCES files(id) ON DELETE CASCADE
51
- );
52
-
53
- -- Fast Lookup Indexes
54
- CREATE INDEX IF NOT EXISTS idx_domains_name ON domains(name);
55
- CREATE INDEX IF NOT EXISTS idx_files_domain_id ON files(domain_id);
56
- CREATE INDEX IF NOT EXISTS idx_files_path ON files(path);
57
- CREATE INDEX IF NOT EXISTS idx_symbols_file_id ON symbols(file_id);
58
- CREATE INDEX IF NOT EXISTS idx_symbols_name ON symbols(name);
59
- CREATE INDEX IF NOT EXISTS idx_symbols_kind ON symbols(kind);
60
- CREATE INDEX IF NOT EXISTS idx_symbols_line_count ON symbols(kind, line_count DESC);
61
- CREATE INDEX IF NOT EXISTS idx_dependencies_source ON dependencies(source_file_id);
62
- CREATE INDEX IF NOT EXISTS idx_dependencies_target ON dependencies(target_symbol_or_path);
63
-
64
- CREATE TABLE IF NOT EXISTS vertical_slices (
65
- id INTEGER PRIMARY KEY AUTOINCREMENT,
66
- domain_id INTEGER,
67
- feature_key TEXT,
68
- http_method TEXT NOT NULL,
69
- route_uri TEXT NOT NULL,
70
- route_name TEXT,
71
- controller_class TEXT NOT NULL,
72
- action_name TEXT NOT NULL,
73
- controller_file TEXT,
74
- controller_line INTEGER DEFAULT 0,
75
- architecture_style TEXT NOT NULL DEFAULT 'clean',
76
- entry_kind TEXT NOT NULL DEFAULT 'http_route',
77
- execution_chain_json TEXT NOT NULL,
78
- created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
79
- FOREIGN KEY (domain_id) REFERENCES domains(id) ON DELETE CASCADE
80
- );
81
-
82
- CREATE INDEX IF NOT EXISTS idx_slices_route_uri ON vertical_slices(route_uri);
83
- CREATE INDEX IF NOT EXISTS idx_slices_route_name ON vertical_slices(route_name);
84
- CREATE INDEX IF NOT EXISTS idx_slices_controller ON vertical_slices(controller_class, action_name);
85
-
86
- -- Synchronization & Watermark SSOT Tracking
87
- CREATE TABLE IF NOT EXISTS repo_meta (
88
- key TEXT PRIMARY KEY,
89
- value TEXT NOT NULL,
90
- updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
91
- );
92
-