milens 0.6.9 → 0.7.0

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,61 +1,61 @@
1
- ---
2
- name: milens-orchestrator
3
- description: Code intelligence for the orchestrator area — symbols, dependencies, and entry points
4
- ---
5
-
6
- # Orchestrator
7
-
8
- ## Working with this area
9
- When working with code in **orchestrator/**, follow these mandatory safety rules:
10
-
11
- ### Before editing any symbol in this area:
12
- 1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
13
- 2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
14
- 3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
15
-
16
- ### Before committing changes in this area:
17
- 1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
18
- 2. If unexpected files changed → **STOP and report**
19
-
20
- ### Key tools for this area:
21
- | Task | Tool |
22
- |---|---|
23
- | Find all references | `mcp_milens_context` |
24
- | Check edit safety | `mcp_milens_edit_check` |
25
- | Text search across files | `mcp_milens_grep` |
26
- | See file symbols | `mcp_milens_get_file_symbols` |
27
-
28
- ## Overview
29
- Contains 22 symbols (7 exported) across 2 files.
30
-
31
- ## Key Symbols
32
- - **`Orchestrator`** [class] (src/orchestrator/orchestrator.ts:36) — 6 refs
33
- - **`OrchestratorReport`** [interface] (src/orchestrator/reporter.ts:4) — 5 refs
34
- - **`formatReport`** [function] (src/orchestrator/reporter.ts:17) — 4 refs
35
- - **`OrchestratorConfig`** [interface] (src/orchestrator/orchestrator.ts:10) — 2 refs
36
- - **`ImpactSnapshot`** [interface] (src/orchestrator/orchestrator.ts:18) — 2 refs
37
- - **`ReportOptions`** [interface] (src/orchestrator/reporter.ts:13) — 2 refs
38
- - **`ImpactDiff`** [interface] (src/orchestrator/orchestrator.ts:25) — 1 refs
39
-
40
- ## Entry Points
41
- - **`Orchestrator`** [class] — 6 incoming references
42
- - **`e`** [function] — 5 incoming references
43
- - **`OrchestratorReport`** [interface] — 5 incoming references
44
- - **`formatReport`** [function] — 4 incoming references
45
- - **`snapshot`** [method] — 3 incoming references
46
-
47
- ## Dependencies
48
- - **store**: `Database`, `findSymbolByName`, `findUpstream`, `clear`, `getTestCoverageGaps`, `findDeadCode`, `close`
49
- - **analyzer**: `reviewPr`, `ReviewResult`, `SymbolRisk`
50
- - **root**: `CodeSymbol`, `has`
51
- - **test**: `add`
52
-
53
- ## Used By
54
- - **root**: `Orchestrator`, `subscribe`, `runAndFormat`
55
- - **server**: `Orchestrator`, `snapshot`, `compare`, `runAndFormat`
56
- - **test**: `Orchestrator`, `formatReport`, `OrchestratorReport`, `subscribe`, `run`, `snapshot`, `compare`, `cancel` (+3 more)
57
- - **apps**: `e`
58
-
59
- ## Files
60
- - src/orchestrator/orchestrator.ts
61
- - src/orchestrator/reporter.ts
1
+ ---
2
+ name: milens-orchestrator
3
+ description: Code intelligence for the orchestrator area — symbols, dependencies, and entry points
4
+ ---
5
+
6
+ # Orchestrator
7
+
8
+ ## Working with this area
9
+ When working with code in **orchestrator/**, follow these mandatory safety rules:
10
+
11
+ ### Before editing any symbol in this area:
12
+ 1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
13
+ 2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
14
+ 3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
15
+
16
+ ### Before committing changes in this area:
17
+ 1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
18
+ 2. If unexpected files changed → **STOP and report**
19
+
20
+ ### Key tools for this area:
21
+ | Task | Tool |
22
+ |---|---|
23
+ | Find all references | `mcp_milens_context` |
24
+ | Check edit safety | `mcp_milens_edit_check` |
25
+ | Text search across files | `mcp_milens_grep` |
26
+ | See file symbols | `mcp_milens_get_file_symbols` |
27
+
28
+ ## Overview
29
+ Contains 22 symbols (7 exported) across 2 files.
30
+
31
+ ## Key Symbols
32
+ - **`Orchestrator`** [class] (src/orchestrator/orchestrator.ts:36) — 6 refs
33
+ - **`OrchestratorReport`** [interface] (src/orchestrator/reporter.ts:4) — 5 refs
34
+ - **`formatReport`** [function] (src/orchestrator/reporter.ts:17) — 4 refs
35
+ - **`OrchestratorConfig`** [interface] (src/orchestrator/orchestrator.ts:10) — 2 refs
36
+ - **`ImpactSnapshot`** [interface] (src/orchestrator/orchestrator.ts:18) — 2 refs
37
+ - **`ReportOptions`** [interface] (src/orchestrator/reporter.ts:13) — 2 refs
38
+ - **`ImpactDiff`** [interface] (src/orchestrator/orchestrator.ts:25) — 1 refs
39
+
40
+ ## Entry Points
41
+ - **`Orchestrator`** [class] — 6 incoming references
42
+ - **`e`** [function] — 5 incoming references
43
+ - **`OrchestratorReport`** [interface] — 5 incoming references
44
+ - **`formatReport`** [function] — 4 incoming references
45
+ - **`snapshot`** [method] — 3 incoming references
46
+
47
+ ## Dependencies
48
+ - **store**: `Database`, `findSymbolByName`, `findUpstream`, `clear`, `getTestCoverageGaps`, `findDeadCode`, `close`
49
+ - **analyzer**: `reviewPr`, `ReviewResult`, `SymbolRisk`
50
+ - **root**: `CodeSymbol`, `has`
51
+ - **test**: `add`
52
+
53
+ ## Used By
54
+ - **root**: `Orchestrator`, `subscribe`, `runAndFormat`
55
+ - **server**: `Orchestrator`, `loadSnapshots`, `snapshot`, `persistSnapshots`, `compare`, `runAndFormat`
56
+ - **test**: `Orchestrator`, `formatReport`, `OrchestratorReport`, `subscribe`, `run`, `snapshot`, `compare`, `cancel` (+3 more)
57
+ - **apps**: `e`
58
+
59
+ ## Files
60
+ - src/orchestrator/orchestrator.ts
61
+ - src/orchestrator/reporter.ts
@@ -1,82 +1,83 @@
1
- ---
2
- name: milens-parser
3
- description: Code intelligence for the parser area — symbols, dependencies, and entry points
4
- ---
5
-
6
- # Parser
7
-
8
- ## Working with this area
9
- When working with code in **parser/**, follow these mandatory safety rules:
10
-
11
- ### Before editing any symbol in this area:
12
- 1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
13
- 2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
14
- 3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
15
-
16
- ### Before committing changes in this area:
17
- 1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
18
- 2. If unexpected files changed → **STOP and report**
19
-
20
- ### Key tools for this area:
21
- | Task | Tool |
22
- |---|---|
23
- | Find all references | `mcp_milens_context` |
24
- | Check edit safety | `mcp_milens_edit_check` |
25
- | Text search across files | `mcp_milens_grep` |
26
- | See file symbols | `mcp_milens_get_file_symbols` |
27
-
28
- ## Overview
29
- Contains 83 symbols (31 exported) across 16 files.
30
-
31
- ## Key Symbols
32
- - **`LangSpec`** [interface] (src/parser/extract.ts:6) — 32 refs
33
- - **`loadLanguage`** [function] (src/parser/loader.ts:21) — 14 refs
34
- - **`getParser`** [function] (src/parser/loader.ts:32) — 13 refs
35
- - **`extractFromTree`** [function] (src/parser/extract.ts:256) — 8 refs
36
- - **`supportedExtensions`** [function] (src/parser/languages.ts:29) — 6 refs
37
- - **`extractHtmlScripts`** [function] (src/parser/lang-html.ts:38) — 5 refs
38
- - **`extractMarkdown`** [function] (src/parser/lang-md.ts:34) — 5 refs
39
- - **`spec`** [variable] (src/parser/lang-ts.ts:5) — 5 refs
40
- - **`extractVueScript`** [function] (src/parser/lang-vue.ts:19) — 5 refs
41
- - **`initTreeSitter`** [function] (src/parser/loader.ts:15) — 5 refs
42
- - **`clearQueryCache`** [function] (src/parser/extract.ts:72) — 4 refs
43
- - **`extractHtmlRefs`** [function] (src/parser/lang-html.ts:57) — 4 refs
44
- - **`extractHtmlLinks`** [function] (src/parser/lang-html.ts:99) — 4 refs
45
- - **`extractVueTemplateRefs`** [function] (src/parser/lang-vue.ts:38) — 4 refs
46
- - **`extractVueTemplateAst`** [function] (src/parser/lang-vue.ts:90) — 4 refs
47
-
48
- ## Entry Points
49
- - **`LangSpec`** [interface] — 32 incoming references
50
- - **`loadLanguage`** [function] — 14 incoming references
51
- - **`getParser`** [function] — 13 incoming references
52
- - **`extractFromTree`** [function] — 8 incoming references
53
- - **`supportedExtensions`** [function] — 6 incoming references
54
-
55
- ## Dependencies
56
- - **root**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+4 more)
57
- - **test**: `lang`, `add`, `parser`
58
- - **analyzer**: `resolve`
59
- - **store**: `load`
60
-
61
- ## Used By
62
- - **analyzer**: `langForFile`, `supportedExtensions`, `getParser`, `loadLanguage`, `extractFromTree`, `clearQueryCache`, `extractVueScript`, `extractVueTemplateRefs` (+9 more)
63
- - **server**: `getParser`, `loadLanguage`, `ALL_LANGS`
64
- - **test**: `getParser`, `loadLanguage`, `extractFromTree`, `extractVueScript`, `extractVueTemplateRefs`, `extractVueCompositionApi`, `extractVueTemplateAst`, `spec` (+11 more)
65
-
66
- ## Files
67
- - src/parser/extract.ts
68
- - src/parser/lang-css.ts
69
- - src/parser/lang-go.ts
70
- - src/parser/lang-html.ts
71
- - src/parser/lang-java.ts
72
- - src/parser/lang-js.ts
73
- - src/parser/lang-md.ts
74
- - src/parser/lang-php.ts
75
- - src/parser/lang-py.ts
76
- - src/parser/lang-ruby.ts
77
- - src/parser/lang-rust.ts
78
- - src/parser/lang-ts.ts
79
- - src/parser/lang-vue.ts
80
- - src/parser/language-provider.ts
81
- - src/parser/languages.ts
82
- - src/parser/loader.ts
1
+ ---
2
+ name: milens-parser
3
+ description: Code intelligence for the parser area — symbols, dependencies, and entry points
4
+ ---
5
+
6
+ # Parser
7
+
8
+ ## Working with this area
9
+ When working with code in **parser/**, follow these mandatory safety rules:
10
+
11
+ ### Before editing any symbol in this area:
12
+ 1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
13
+ 2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
14
+ 3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
15
+
16
+ ### Before committing changes in this area:
17
+ 1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
18
+ 2. If unexpected files changed → **STOP and report**
19
+
20
+ ### Key tools for this area:
21
+ | Task | Tool |
22
+ |---|---|
23
+ | Find all references | `mcp_milens_context` |
24
+ | Check edit safety | `mcp_milens_edit_check` |
25
+ | Text search across files | `mcp_milens_grep` |
26
+ | See file symbols | `mcp_milens_get_file_symbols` |
27
+
28
+ ## Overview
29
+ Contains 83 symbols (31 exported) across 16 files.
30
+
31
+ ## Key Symbols
32
+ - **`LangSpec`** [interface] (src/parser/extract.ts:6) — 32 refs
33
+ - **`loadLanguage`** [function] (src/parser/loader.ts:21) — 14 refs
34
+ - **`getParser`** [function] (src/parser/loader.ts:32) — 13 refs
35
+ - **`extractFromTree`** [function] (src/parser/extract.ts:256) — 8 refs
36
+ - **`supportedExtensions`** [function] (src/parser/languages.ts:29) — 6 refs
37
+ - **`extractHtmlScripts`** [function] (src/parser/lang-html.ts:38) — 5 refs
38
+ - **`extractMarkdown`** [function] (src/parser/lang-md.ts:34) — 5 refs
39
+ - **`spec`** [variable] (src/parser/lang-ts.ts:5) — 5 refs
40
+ - **`extractVueScript`** [function] (src/parser/lang-vue.ts:19) — 5 refs
41
+ - **`initTreeSitter`** [function] (src/parser/loader.ts:15) — 5 refs
42
+ - **`clearQueryCache`** [function] (src/parser/extract.ts:72) — 4 refs
43
+ - **`extractHtmlRefs`** [function] (src/parser/lang-html.ts:57) — 4 refs
44
+ - **`extractHtmlLinks`** [function] (src/parser/lang-html.ts:99) — 4 refs
45
+ - **`extractVueTemplateRefs`** [function] (src/parser/lang-vue.ts:38) — 4 refs
46
+ - **`extractVueTemplateAst`** [function] (src/parser/lang-vue.ts:90) — 4 refs
47
+
48
+ ## Entry Points
49
+ - **`LangSpec`** [interface] — 32 incoming references
50
+ - **`loadLanguage`** [function] — 14 incoming references
51
+ - **`getParser`** [function] — 13 incoming references
52
+ - **`extractFromTree`** [function] — 8 incoming references
53
+ - **`supportedExtensions`** [function] — 6 incoming references
54
+
55
+ ## Dependencies
56
+ - **root**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+4 more)
57
+ - **test**: `lang`, `add`, `parser`
58
+ - **scripts**: `root`
59
+ - **analyzer**: `resolve`
60
+ - **store**: `load`
61
+
62
+ ## Used By
63
+ - **analyzer**: `langForFile`, `supportedExtensions`, `getParser`, `loadLanguage`, `extractFromTree`, `clearQueryCache`, `extractVueScript`, `extractVueTemplateRefs` (+9 more)
64
+ - **server**: `getParser`, `loadLanguage`, `ALL_LANGS`
65
+ - **test**: `getParser`, `loadLanguage`, `extractFromTree`, `extractVueScript`, `extractVueTemplateRefs`, `extractVueCompositionApi`, `extractVueTemplateAst`, `spec` (+11 more)
66
+
67
+ ## Files
68
+ - src/parser/extract.ts
69
+ - src/parser/lang-css.ts
70
+ - src/parser/lang-go.ts
71
+ - src/parser/lang-html.ts
72
+ - src/parser/lang-java.ts
73
+ - src/parser/lang-js.ts
74
+ - src/parser/lang-md.ts
75
+ - src/parser/lang-php.ts
76
+ - src/parser/lang-py.ts
77
+ - src/parser/lang-ruby.ts
78
+ - src/parser/lang-rust.ts
79
+ - src/parser/lang-ts.ts
80
+ - src/parser/lang-vue.ts
81
+ - src/parser/language-provider.ts
82
+ - src/parser/languages.ts
83
+ - src/parser/loader.ts
@@ -1,86 +1,88 @@
1
- ---
2
- name: milens-root
3
- description: Code intelligence for the root area — symbols, dependencies, and entry points
4
- ---
5
-
6
- # Root
7
-
8
- ## Working with this area
9
- When working with code in **root/**, follow these mandatory safety rules:
10
-
11
- ### Before editing any symbol in this area:
12
- 1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
13
- 2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
14
- 3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
15
-
16
- ### Before committing changes in this area:
17
- 1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
18
- 2. If unexpected files changed → **STOP and report**
19
-
20
- ### Key tools for this area:
21
- | Task | Tool |
22
- |---|---|
23
- | Find all references | `mcp_milens_context` |
24
- | Check edit safety | `mcp_milens_edit_check` |
25
- | Text search across files | `mcp_milens_grep` |
26
- | See file symbols | `mcp_milens_get_file_symbols` |
27
-
28
- ## Overview
29
- Contains 229 symbols (153 exported) across 13 files.
30
-
31
- ## Key Symbols
32
- - **`CodeSymbol`** [interface] (src/types.ts:8) — 53 refs
33
- - **`SymbolLink`** [interface] (src/types.ts:26) — 24 refs
34
- - **`RawCall`** [interface] (src/types.ts:44) — 15 refs
35
- - **`isTestFile`** [function] (src/utils.ts:2) — 12 refs
36
- - **`RawImport`** [interface] (src/types.ts:35) — 9 refs
37
- - **`RawHeritage`** [interface] (src/types.ts:52) — 7 refs
38
- - **`ExtractionResult`** [interface] (src/types.ts:60) — 6 refs
39
- - **`RawTypeBinding`** [interface] (src/types.ts:80) — 6 refs
40
- - **`RawAssignmentBinding`** [interface] (src/types.ts:88) — 6 refs
41
- - **`RawReturnType`** [interface] (src/types.ts:96) — 5 refs
42
- - **`RawCallResultBinding`** [interface] (src/types.ts:104) — 5 refs
43
- - **`generateAgentsMd`** [function] (src/agents-md.ts:43) — 4 refs
44
- - **`computeMetrics`** [function] (src/metrics.ts:21) — 4 refs
45
- - **`formatMetricsReport`** [function] (src/metrics.ts:62) — 4 refs
46
- - **`MilensMetrics`** [interface] (src/metrics.ts:4) — 4 refs
47
-
48
- ## Entry Points
49
- - **`CodeSymbol`** [interface] — 53 incoming references
50
- - **`has`** [function] — 47 incoming references
51
- - **`SymbolLink`** [interface] — 24 incoming references
52
- - **`RawCall`** [interface] — 15 incoming references
53
- - **`isTestFile`** [function] — 12 incoming references
54
-
55
- ## Dependencies
56
- - **store**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `register` (+24 more)
57
- - **analyzer**: `loadAliases`, `analyze`, `resolve`, `clear`
58
- - **server**: `startHttp`, `startStdio`, `HookManager`, `get`, `enableHook`, `loadConfig`, `saveConfig`, `disableHook`
59
- - **security**: `loadRules`, `auditDependencies`
60
- - **orchestrator**: `Orchestrator`, `subscribe`, `runAndFormat`
61
- - **test**: `add`, `dbPath`
62
- - **scripts**: `outDir`
63
-
64
- ## Used By
65
- - **analyzer**: `isTestFile`, `CodeSymbol`, `ExtractionResult`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding` (+8 more)
66
- - **orchestrator**: `CodeSymbol`, `has`
67
- - **parser**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+4 more)
68
- - **store**: `Annotation`, `AnnotationKey`, `Session`, `EvolutionEvent`, `CodeSymbol`, `SymbolLink`, `RepoEntry`, `has` (+1 more)
69
- - **test**: `generateAgentsMd`, `AnnotationKey`, `CodeSymbol`, `SymbolLink`, `computeMetrics`, `formatMetricsReport`, `MilensMetrics`, `RawImport` (+17 more)
70
- - **security**: `has`
71
- - **server**: `has`
72
-
73
- ## Files
74
- - AGENTS.md
75
- - CLAUDE.md
76
- - CONTRIBUTING.md
77
- - DEPLOY.md
78
- - README.md
79
- - src/agents-md.ts
80
- - src/cli.ts
81
- - src/metrics.ts
82
- - src/skills.ts
83
- - src/types.ts
84
- - src/uninstall.ts
85
- - src/utils.ts
86
- - vitest.config.ts
1
+ ---
2
+ name: milens-root
3
+ description: Code intelligence for the root area — symbols, dependencies, and entry points
4
+ ---
5
+
6
+ # Root
7
+
8
+ ## Working with this area
9
+ When working with code in **root/**, follow these mandatory safety rules:
10
+
11
+ ### Before editing any symbol in this area:
12
+ 1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
13
+ 2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
14
+ 3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
15
+
16
+ ### Before committing changes in this area:
17
+ 1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
18
+ 2. If unexpected files changed → **STOP and report**
19
+
20
+ ### Key tools for this area:
21
+ | Task | Tool |
22
+ |---|---|
23
+ | Find all references | `mcp_milens_context` |
24
+ | Check edit safety | `mcp_milens_edit_check` |
25
+ | Text search across files | `mcp_milens_grep` |
26
+ | See file symbols | `mcp_milens_get_file_symbols` |
27
+
28
+ ## Overview
29
+ Contains 242 symbols (164 exported) across 13 files.
30
+
31
+ ## Key Symbols
32
+ - **`CodeSymbol`** [interface] (src/types.ts:8) — 53 refs
33
+ - **`SymbolLink`** [interface] (src/types.ts:26) — 24 refs
34
+ - **`RawCall`** [interface] (src/types.ts:44) — 15 refs
35
+ - **`isTestFile`** [function] (src/utils.ts:2) — 12 refs
36
+ - **`RawImport`** [interface] (src/types.ts:35) — 9 refs
37
+ - **`RawHeritage`** [interface] (src/types.ts:52) — 7 refs
38
+ - **`ExtractionResult`** [interface] (src/types.ts:60) — 6 refs
39
+ - **`RawTypeBinding`** [interface] (src/types.ts:80) — 6 refs
40
+ - **`RawAssignmentBinding`** [interface] (src/types.ts:88) — 6 refs
41
+ - **`RawReturnType`** [interface] (src/types.ts:96) — 5 refs
42
+ - **`RawCallResultBinding`** [interface] (src/types.ts:104) — 5 refs
43
+ - **`AnalysisStats`** [interface] (src/types.ts:113) — 5 refs
44
+ - **`generateAgentsMd`** [function] (src/agents-md.ts:93) — 4 refs
45
+ - **`computeMetrics`** [function] (src/metrics.ts:21) — 4 refs
46
+ - **`formatMetricsReport`** [function] (src/metrics.ts:62) — 4 refs
47
+
48
+ ## Entry Points
49
+ - **`CodeSymbol`** [interface] — 53 incoming references
50
+ - **`has`** [function] — 50 incoming references
51
+ - **`SymbolLink`** [interface] — 24 incoming references
52
+ - **`RawCall`** [interface] — 15 incoming references
53
+ - **`isTestFile`** [function] — 12 incoming references
54
+
55
+ ## Dependencies
56
+ - **store**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `register` (+24 more)
57
+ - **analyzer**: `loadAliases`, `analyze`, `resolve`, `clear`
58
+ - **ui**: `createProgressReporter`, `finalize`
59
+ - **server**: `startHttp`, `startStdio`, `HookManager`, `get`, `enableHook`, `loadConfig`, `saveConfig`, `disableHook`
60
+ - **security**: `loadRules`, `auditDependencies`
61
+ - **orchestrator**: `Orchestrator`, `subscribe`, `runAndFormat`
62
+ - **test**: `add`, `dbPath`
63
+ - **scripts**: `version`, `outDir`, `root`
64
+
65
+ ## Used By
66
+ - **analyzer**: `isTestFile`, `CodeSymbol`, `ExtractionResult`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding` (+8 more)
67
+ - **orchestrator**: `CodeSymbol`, `has`
68
+ - **parser**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+4 more)
69
+ - **server**: `generateCrossRefSection`, `has`
70
+ - **store**: `Annotation`, `AnnotationKey`, `Session`, `EvolutionEvent`, `CodeSymbol`, `SymbolLink`, `RepoEntry`, `has` (+1 more)
71
+ - **ui**: `AnalysisStats`
72
+ - **test**: `generateAgentsMd`, `AnnotationKey`, `CodeSymbol`, `SymbolLink`, `computeMetrics`, `formatMetricsReport`, `MilensMetrics`, `RawImport` (+17 more)
73
+ - **security**: `has`
74
+
75
+ ## Files
76
+ - AGENTS.md
77
+ - CLAUDE.md
78
+ - CONTRIBUTING.md
79
+ - DEPLOY.md
80
+ - README.md
81
+ - src/agents-md.ts
82
+ - src/cli.ts
83
+ - src/metrics.ts
84
+ - src/skills.ts
85
+ - src/types.ts
86
+ - src/uninstall.ts
87
+ - src/utils.ts
88
+ - vitest.config.ts
@@ -1,45 +1,54 @@
1
- ---
2
- name: milens-scripts
3
- description: Code intelligence for the scripts area — symbols, dependencies, and entry points
4
- ---
5
-
6
- # Scripts
7
-
8
- ## Working with this area
9
- When working with code in **scripts/**, follow these mandatory safety rules:
10
-
11
- ### Before editing any symbol in this area:
12
- 1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
13
- 2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
14
- 3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
15
-
16
- ### Before committing changes in this area:
17
- 1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
18
- 2. If unexpected files changed → **STOP and report**
19
-
20
- ### Key tools for this area:
21
- | Task | Tool |
22
- |---|---|
23
- | Find all references | `mcp_milens_context` |
24
- | Check edit safety | `mcp_milens_edit_check` |
25
- | Text search across files | `mcp_milens_grep` |
26
- | See file symbols | `mcp_milens_get_file_symbols` |
27
-
28
- ## Overview
29
- Contains 29 symbols (0 exported) across 1 files.
30
-
31
- ## Entry Points
32
- - **`ROOT`** [variable] — 2 incoming references
33
- - **`outDir`** [variable] — 2 incoming references
34
- - **`resolveTargets`** [function] — 1 incoming references
35
- - **`run`** [function] — 1 incoming references
36
- - **`__dirname`** [variable] — 1 incoming references
37
-
38
- ## Dependencies
39
- - **analyzer**: `resolve`
40
-
41
- ## Used By
42
- - **root**: `outDir`
43
-
44
- ## Files
45
- - scripts/build-standalone.mjs
1
+ ---
2
+ name: milens-scripts
3
+ description: Code intelligence for the scripts area — symbols, dependencies, and entry points
4
+ ---
5
+
6
+ # Scripts
7
+
8
+ ## Working with this area
9
+ When working with code in **scripts/**, follow these mandatory safety rules:
10
+
11
+ ### Before editing any symbol in this area:
12
+ 1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
13
+ 2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
14
+ 3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
15
+
16
+ ### Before committing changes in this area:
17
+ 1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
18
+ 2. If unexpected files changed → **STOP and report**
19
+
20
+ ### Key tools for this area:
21
+ | Task | Tool |
22
+ |---|---|
23
+ | Find all references | `mcp_milens_context` |
24
+ | Check edit safety | `mcp_milens_edit_check` |
25
+ | Text search across files | `mcp_milens_grep` |
26
+ | See file symbols | `mcp_milens_get_file_symbols` |
27
+
28
+ ## Overview
29
+ Contains 47 symbols (0 exported) across 3 files.
30
+
31
+ ## Entry Points
32
+ - **`root`** [variable] — 37 incoming references
33
+ - **`version`** [variable] — 4 incoming references
34
+ - **`ROOT`** [variable] — 2 incoming references
35
+ - **`outDir`** [variable] — 2 incoming references
36
+ - **`main`** [function] — 2 incoming references
37
+
38
+ ## Dependencies
39
+ - **analyzer**: `resolve`
40
+ - **store**: `Database`, `getCodebaseSummary`, `close`
41
+
42
+ ## Used By
43
+ - **docs**: `main`
44
+ - **analyzer**: `root`
45
+ - **root**: `version`, `outDir`, `root`
46
+ - **parser**: `root`
47
+ - **security**: `version`
48
+ - **server**: `root`
49
+ - **test**: `root`
50
+
51
+ ## Files
52
+ - scripts/build-standalone.mjs
53
+ - scripts/generate-release-stats.js
54
+ - scripts/update-docs.js