milens 0.6.8 → 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.
Files changed (42) hide show
  1. package/.agents/skills/analyzer/SKILL.md +81 -79
  2. package/.agents/skills/docs/SKILL.md +78 -79
  3. package/.agents/skills/milens/SKILL.md +319 -318
  4. package/.agents/skills/orchestrator/SKILL.md +61 -61
  5. package/.agents/skills/parser/SKILL.md +83 -82
  6. package/.agents/skills/root/SKILL.md +88 -86
  7. package/.agents/skills/scripts/SKILL.md +54 -45
  8. package/.agents/skills/security/SKILL.md +67 -66
  9. package/.agents/skills/server/SKILL.md +74 -73
  10. package/.agents/skills/store/SKILL.md +76 -75
  11. package/.agents/skills/test/SKILL.md +153 -152
  12. package/.agents/skills/ui/SKILL.md +51 -0
  13. package/README.md +568 -522
  14. package/adapters/claude-code/.claude/mcp.json +9 -9
  15. package/adapters/claude-code/CLAUDE.md +79 -79
  16. package/adapters/gemini/.gemini/context.md +81 -81
  17. package/adapters/opencode/.opencode/config.json +8 -9
  18. package/adapters/zed/.zed/settings.json +8 -8
  19. package/dist/analyzer/review.d.ts.map +1 -1
  20. package/dist/analyzer/review.js +5 -1
  21. package/dist/analyzer/review.js.map +1 -1
  22. package/dist/cli.js +1 -1
  23. package/dist/security/rules.d.ts +2 -1
  24. package/dist/security/rules.d.ts.map +1 -1
  25. package/dist/security/rules.js +276 -61
  26. package/dist/security/rules.js.map +1 -1
  27. package/dist/server/hooks.d.ts.map +1 -1
  28. package/dist/server/hooks.js +10 -0
  29. package/dist/server/hooks.js.map +1 -1
  30. package/dist/server/mcp.d.ts.map +1 -1
  31. package/dist/server/mcp.js +84 -19
  32. package/dist/server/mcp.js.map +1 -1
  33. package/dist/server/test-plan.d.ts +1 -1
  34. package/dist/server/test-plan.d.ts.map +1 -1
  35. package/dist/server/test-plan.js +48 -4
  36. package/dist/server/test-plan.js.map +1 -1
  37. package/dist/skills.js +3 -3
  38. package/dist/store/db.d.ts.map +1 -1
  39. package/dist/store/db.js +19 -21
  40. package/dist/store/db.js.map +1 -1
  41. package/docs/README.md +25 -25
  42. package/package.json +2 -2
@@ -1,66 +1,67 @@
1
- ---
2
- name: milens-security
3
- description: Code intelligence for the security area — symbols, dependencies, and entry points
4
- ---
5
-
6
- # Security
7
-
8
- ## Working with this area
9
- When working with code in **security/**, 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 35 symbols (15 exported) across 2 files.
30
-
31
- ## Key Symbols
32
- - **`loadRules`** [function] (src/security/rules.ts:1044) — 6 refs
33
- - **`auditDependencies`** [function] (src/security/deps.ts:732) — 4 refs
34
- - **`detectEcosystem`** [function] (src/security/deps.ts:512) — 3 refs
35
- - **`parseDependencies`** [function] (src/security/deps.ts:524) — 3 refs
36
- - **`checkVulnerabilities`** [function] (src/security/deps.ts:687) — 3 refs
37
- - **`Ecosystem`** [type] (src/security/deps.ts:8) — 3 refs
38
- - **`VulnerabilityReport`** [interface] (src/security/deps.ts:26) — 2 refs
39
- - **`getRulesByCategory`** [function] (src/security/rules.ts:1051) — 2 refs
40
- - **`getRulesBySeverity`** [function] (src/security/rules.ts:1055) — 2 refs
41
- - **`SecurityCategory`** [type] (src/security/rules.ts:3) — 1 refs
42
- - **`Dependency`** [interface] (src/security/deps.ts:10) — 0 refs
43
- - **`Vulnerability`** [interface] (src/security/deps.ts:16) — 0 refs
44
- - **`SecurityRule`** [interface] (src/security/rules.ts:14) — 0 refs
45
- - **`SecurityMatch`** [interface] (src/security/rules.ts:29) — 0 refs
46
- - **`SecurityReport`** [interface] (src/security/rules.ts:41) — 0 refs
47
-
48
- ## Entry Points
49
- - **`readManifest`** [function] — 6 incoming references
50
- - **`loadRules`** [function] — 6 incoming references
51
- - **`auditDependencies`** [function] — 4 incoming references
52
- - **`detectEcosystem`** [function] — 3 incoming references
53
- - **`parseDependencies`** [function] — 3 incoming references
54
-
55
- ## Dependencies
56
- - **test**: `add`
57
- - **root**: `has`
58
-
59
- ## Used By
60
- - **root**: `loadRules`, `auditDependencies`
61
- - **server**: `loadRules`
62
- - **test**: `detectEcosystem`, `parseDependencies`, `checkVulnerabilities`, `auditDependencies`, `loadRules`, `getRulesByCategory`, `getRulesBySeverity`
63
-
64
- ## Files
65
- - src/security/deps.ts
66
- - src/security/rules.ts
1
+ ---
2
+ name: milens-security
3
+ description: Code intelligence for the security area — symbols, dependencies, and entry points
4
+ ---
5
+
6
+ # Security
7
+
8
+ ## Working with this area
9
+ When working with code in **security/**, 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 44 symbols (15 exported) across 2 files.
30
+
31
+ ## Key Symbols
32
+ - **`loadRules`** [function] (src/security/rules.ts:1301) — 6 refs
33
+ - **`auditDependencies`** [function] (src/security/deps.ts:732) — 4 refs
34
+ - **`detectEcosystem`** [function] (src/security/deps.ts:512) — 3 refs
35
+ - **`parseDependencies`** [function] (src/security/deps.ts:524) — 3 refs
36
+ - **`checkVulnerabilities`** [function] (src/security/deps.ts:687) — 3 refs
37
+ - **`Ecosystem`** [type] (src/security/deps.ts:8) — 3 refs
38
+ - **`VulnerabilityReport`** [interface] (src/security/deps.ts:26) — 2 refs
39
+ - **`getRulesByCategory`** [function] (src/security/rules.ts:1308) — 2 refs
40
+ - **`getRulesBySeverity`** [function] (src/security/rules.ts:1312) — 2 refs
41
+ - **`SecurityCategory`** [type] (src/security/rules.ts:3) — 1 refs
42
+ - **`Dependency`** [interface] (src/security/deps.ts:10) — 0 refs
43
+ - **`Vulnerability`** [interface] (src/security/deps.ts:16) — 0 refs
44
+ - **`SecurityRule`** [interface] (src/security/rules.ts:31) — 0 refs
45
+ - **`SecurityMatch`** [interface] (src/security/rules.ts:47) — 0 refs
46
+ - **`SecurityReport`** [interface] (src/security/rules.ts:59) — 0 refs
47
+
48
+ ## Entry Points
49
+ - **`readManifest`** [function] — 6 incoming references
50
+ - **`loadRules`** [function] — 6 incoming references
51
+ - **`auditDependencies`** [function] — 4 incoming references
52
+ - **`detectEcosystem`** [function] — 3 incoming references
53
+ - **`parseDependencies`** [function] — 3 incoming references
54
+
55
+ ## Dependencies
56
+ - **scripts**: `version`
57
+ - **test**: `add`
58
+ - **root**: `has`
59
+
60
+ ## Used By
61
+ - **root**: `loadRules`, `auditDependencies`
62
+ - **server**: `loadRules`
63
+ - **test**: `detectEcosystem`, `parseDependencies`, `checkVulnerabilities`, `auditDependencies`, `loadRules`, `getRulesByCategory`, `getRulesBySeverity`
64
+
65
+ ## Files
66
+ - src/security/deps.ts
67
+ - src/security/rules.ts
@@ -1,73 +1,74 @@
1
- ---
2
- name: milens-server
3
- description: Code intelligence for the server area — symbols, dependencies, and entry points
4
- ---
5
-
6
- # Server
7
-
8
- ## Working with this area
9
- When working with code in **server/**, 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 99 symbols (16 exported) across 5 files.
30
-
31
- ## Key Symbols
32
- - **`HookManager`** [class] (src/server/hooks.ts:43) — 8 refs
33
- - **`HookConfig`** [interface] (src/server/hooks.ts:5) — 5 refs
34
- - **`defaultOnSessionStart`** [function] (src/server/hooks.ts:100) — 4 refs
35
- - **`defaultOnSessionEnd`** [function] (src/server/hooks.ts:164) — 4 refs
36
- - **`defaultOnPreCommit`** [function] (src/server/hooks.ts:227) — 4 refs
37
- - **`defaultOnFileChange`** [function] (src/server/hooks.ts:313) — 4 refs
38
- - **`defaultOnPreCompact`** [function] (src/server/hooks.ts:340) — 4 refs
39
- - **`defaultOnPostCompact`** [function] (src/server/hooks.ts:358) — 4 refs
40
- - **`SessionContext`** [interface] (src/server/hooks.ts:15) — 4 refs
41
- - **`registerAllPrompts`** [function] (src/server/mcp-prompts.ts:637) — 4 refs
42
- - **`createMcpServer`** [function] (src/server/mcp.ts:420) — 4 refs
43
- - **`generateTestPlan`** [function] (src/server/test-plan.ts:14) — 4 refs
44
- - **`FileWatcher`** [class] (src/server/watcher.ts:50) — 3 refs
45
- - **`startStdio`** [function] (src/server/mcp.ts:2907) — 2 refs
46
- - **`startHttp`** [function] (src/server/mcp.ts:2946) — 2 refs
47
-
48
- ## Entry Points
49
- - **`get`** [method] — 12 incoming references
50
- - **`HookManager`** [class] — 8 incoming references
51
- - **`loadConfig`** [method] — 7 incoming references
52
- - **`HookConfig`** [interface] — 5 incoming references
53
- - **`defaultOnSessionStart`** [function] — 4 incoming references
54
-
55
- ## Dependencies
56
- - **store**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `close`, `getStats` (+36 more)
57
- - **analyzer**: `reviewPr`, `analyze`, `resolve`, `clear`
58
- - **parser**: `getParser`, `loadLanguage`, `ALL_LANGS`
59
- - **security**: `loadRules`
60
- - **orchestrator**: `Orchestrator`, `snapshot`, `compare`, `runAndFormat`
61
- - **root**: `has`
62
- - **test**: `add`, `dbPath`
63
-
64
- ## Used By
65
- - **root**: `startHttp`, `startStdio`, `HookManager`, `get`, `enableHook`, `loadConfig`, `saveConfig`, `disableHook`
66
- - **test**: `HookManager`, `HookConfig`, `defaultOnSessionStart`, `defaultOnSessionEnd`, `defaultOnPreCommit`, `defaultOnFileChange`, `defaultOnPreCompact`, `defaultOnPostCompact` (+10 more)
67
-
68
- ## Files
69
- - src/server/hooks.ts
70
- - src/server/mcp-prompts.ts
71
- - src/server/mcp.ts
72
- - src/server/test-plan.ts
73
- - src/server/watcher.ts
1
+ ---
2
+ name: milens-server
3
+ description: Code intelligence for the server area — symbols, dependencies, and entry points
4
+ ---
5
+
6
+ # Server
7
+
8
+ ## Working with this area
9
+ When working with code in **server/**, 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 102 symbols (16 exported) across 5 files.
30
+
31
+ ## Key Symbols
32
+ - **`HookManager`** [class] (src/server/hooks.ts:43) — 8 refs
33
+ - **`HookConfig`** [interface] (src/server/hooks.ts:5) — 5 refs
34
+ - **`defaultOnSessionStart`** [function] (src/server/hooks.ts:100) — 4 refs
35
+ - **`defaultOnSessionEnd`** [function] (src/server/hooks.ts:174) — 4 refs
36
+ - **`defaultOnPreCommit`** [function] (src/server/hooks.ts:237) — 4 refs
37
+ - **`defaultOnFileChange`** [function] (src/server/hooks.ts:323) — 4 refs
38
+ - **`defaultOnPreCompact`** [function] (src/server/hooks.ts:350) — 4 refs
39
+ - **`defaultOnPostCompact`** [function] (src/server/hooks.ts:368) — 4 refs
40
+ - **`SessionContext`** [interface] (src/server/hooks.ts:15) — 4 refs
41
+ - **`registerAllPrompts`** [function] (src/server/mcp-prompts.ts:637) — 4 refs
42
+ - **`createMcpServer`** [function] (src/server/mcp.ts:451) — 4 refs
43
+ - **`generateTestPlan`** [function] (src/server/test-plan.ts:39) — 4 refs
44
+ - **`FileWatcher`** [class] (src/server/watcher.ts:50) — 3 refs
45
+ - **`startStdio`** [function] (src/server/mcp.ts:2975) — 2 refs
46
+ - **`startHttp`** [function] (src/server/mcp.ts:3014) — 2 refs
47
+
48
+ ## Entry Points
49
+ - **`get`** [method] — 13 incoming references
50
+ - **`HookManager`** [class] — 8 incoming references
51
+ - **`loadConfig`** [method] — 7 incoming references
52
+ - **`HookConfig`** [interface] — 5 incoming references
53
+ - **`defaultOnSessionStart`** [function] — 4 incoming references
54
+
55
+ ## Dependencies
56
+ - **store**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `close`, `getStats` (+36 more)
57
+ - **root**: `generateCrossRefSection`, `has`
58
+ - **analyzer**: `reviewPr`, `analyze`, `resolve`, `clear`
59
+ - **parser**: `getParser`, `loadLanguage`, `ALL_LANGS`
60
+ - **security**: `loadRules`
61
+ - **orchestrator**: `Orchestrator`, `loadSnapshots`, `snapshot`, `persistSnapshots`, `compare`, `runAndFormat`
62
+ - **test**: `add`, `dbPath`
63
+ - **scripts**: `root`
64
+
65
+ ## Used By
66
+ - **root**: `startHttp`, `startStdio`, `HookManager`, `get`, `enableHook`, `loadConfig`, `saveConfig`, `disableHook`
67
+ - **test**: `HookManager`, `HookConfig`, `defaultOnSessionStart`, `defaultOnSessionEnd`, `defaultOnPreCommit`, `defaultOnFileChange`, `defaultOnPreCompact`, `defaultOnPostCompact` (+10 more)
68
+
69
+ ## Files
70
+ - src/server/hooks.ts
71
+ - src/server/mcp-prompts.ts
72
+ - src/server/mcp.ts
73
+ - src/server/test-plan.ts
74
+ - src/server/watcher.ts
@@ -1,75 +1,76 @@
1
- ---
2
- name: milens-store
3
- description: Code intelligence for the store area — symbols, dependencies, and entry points
4
- ---
5
-
6
- # Store
7
-
8
- ## Working with this area
9
- When working with code in **store/**, 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 135 symbols (15 exported) across 5 files.
30
-
31
- ## Key Symbols
32
- - **`Database`** [class] (src/store/db.ts:10) — 79 refs
33
- - **`AnnotationStore`** [class] (src/store/annotations.ts:10) — 19 refs
34
- - **`RepoRegistry`** [class] (src/store/registry.ts:18) — 16 refs
35
- - **`runDecayPass`** [function] (src/store/confidence.ts:85) — 6 refs
36
- - **`buildEmbeddingText`** [function] (src/store/vectors.ts:250) — 4 refs
37
- - **`TfIdfProvider`** [class] (src/store/vectors.ts:44) — 4 refs
38
- - **`EmbeddingStore`** [class] (src/store/vectors.ts:170) — 4 refs
39
- - **`decayConfidence`** [function] (src/store/confidence.ts:22) — 3 refs
40
- - **`boostConfidence`** [function] (src/store/confidence.ts:6) — 2 refs
41
- - **`getStaleAnnotations`** [function] (src/store/confidence.ts:38) — 2 refs
42
- - **`promoteSecurityAnnotations`** [function] (src/store/confidence.ts:48) — 2 refs
43
- - **`autoPromote`** [function] (src/store/confidence.ts:106) — 2 refs
44
- - **`EmbeddingProvider`** [interface] (src/store/vectors.ts:15) — 2 refs
45
- - **`NeuralProvider`** [class] (src/store/vectors.ts:122) — 0 refs
46
- - **`SimilarResult`** [interface] (src/store/vectors.ts:23) — 0 refs
47
-
48
- ## Entry Points
49
- - **`Database`** [class] — 79 incoming references
50
- - **`close`** [method] — 31 incoming references
51
- - **`get`** [method] — 23 incoming references
52
- - **`AnnotationStore`** [class] — 19 incoming references
53
- - **`RepoRegistry`** [class] — 16 incoming references
54
-
55
- ## Dependencies
56
- - **root**: `Annotation`, `AnnotationKey`, `Session`, `EvolutionEvent`, `CodeSymbol`, `SymbolLink`, `RepoEntry`, `has` (+1 more)
57
- - **test**: `add`, `dbPath`
58
- - **analyzer**: `resolve`
59
-
60
- ## Used By
61
- - **root**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `register` (+24 more)
62
- - **analyzer**: `Database`, `TfIdfProvider`, `EmbeddingStore`, `buildEmbeddingText`, `get`, `clearFiles`, `clear`, `isFileUpToDate` (+23 more)
63
- - **orchestrator**: `Database`, `findSymbolByName`, `findUpstream`, `clear`, `getTestCoverageGaps`, `findDeadCode`, `close`
64
- - **server**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `close`, `getStats` (+36 more)
65
- - **test**: `Database`, `AnnotationStore`, `RepoRegistry`, `boostConfidence`, `decayConfidence`, `getStaleAnnotations`, `promoteSecurityAnnotations`, `runDecayPass` (+77 more)
66
- - **apps**: `remove`, `getAnnotations`, `Database`, `getCodebaseSummary`, `close`
67
- - **docs**: `remove`
68
- - **parser**: `load`
69
-
70
- ## Files
71
- - src/store/annotations.ts
72
- - src/store/confidence.ts
73
- - src/store/db.ts
74
- - src/store/registry.ts
75
- - src/store/vectors.ts
1
+ ---
2
+ name: milens-store
3
+ description: Code intelligence for the store area — symbols, dependencies, and entry points
4
+ ---
5
+
6
+ # Store
7
+
8
+ ## Working with this area
9
+ When working with code in **store/**, 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 135 symbols (15 exported) across 5 files.
30
+
31
+ ## Key Symbols
32
+ - **`Database`** [class] (src/store/db.ts:10) — 80 refs
33
+ - **`AnnotationStore`** [class] (src/store/annotations.ts:10) — 19 refs
34
+ - **`RepoRegistry`** [class] (src/store/registry.ts:18) — 16 refs
35
+ - **`runDecayPass`** [function] (src/store/confidence.ts:85) — 6 refs
36
+ - **`buildEmbeddingText`** [function] (src/store/vectors.ts:250) — 4 refs
37
+ - **`TfIdfProvider`** [class] (src/store/vectors.ts:44) — 4 refs
38
+ - **`EmbeddingStore`** [class] (src/store/vectors.ts:170) — 4 refs
39
+ - **`decayConfidence`** [function] (src/store/confidence.ts:22) — 3 refs
40
+ - **`boostConfidence`** [function] (src/store/confidence.ts:6) — 2 refs
41
+ - **`getStaleAnnotations`** [function] (src/store/confidence.ts:38) — 2 refs
42
+ - **`promoteSecurityAnnotations`** [function] (src/store/confidence.ts:48) — 2 refs
43
+ - **`autoPromote`** [function] (src/store/confidence.ts:106) — 2 refs
44
+ - **`EmbeddingProvider`** [interface] (src/store/vectors.ts:15) — 2 refs
45
+ - **`NeuralProvider`** [class] (src/store/vectors.ts:122) — 0 refs
46
+ - **`SimilarResult`** [interface] (src/store/vectors.ts:23) — 0 refs
47
+
48
+ ## Entry Points
49
+ - **`Database`** [class] — 80 incoming references
50
+ - **`close`** [method] — 33 incoming references
51
+ - **`get`** [method] — 23 incoming references
52
+ - **`AnnotationStore`** [class] — 19 incoming references
53
+ - **`RepoRegistry`** [class] — 16 incoming references
54
+
55
+ ## Dependencies
56
+ - **root**: `Annotation`, `AnnotationKey`, `Session`, `EvolutionEvent`, `CodeSymbol`, `SymbolLink`, `RepoEntry`, `has` (+1 more)
57
+ - **test**: `add`, `dbPath`
58
+ - **analyzer**: `resolve`
59
+
60
+ ## Used By
61
+ - **root**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `register` (+24 more)
62
+ - **analyzer**: `Database`, `TfIdfProvider`, `EmbeddingStore`, `buildEmbeddingText`, `get`, `isFileUpToDate`, `upsertFileHash`, `getSymbolsByFile` (+22 more)
63
+ - **orchestrator**: `Database`, `findSymbolByName`, `findUpstream`, `clear`, `getTestCoverageGaps`, `findDeadCode`, `close`
64
+ - **server**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `close`, `getStats` (+36 more)
65
+ - **test**: `Database`, `AnnotationStore`, `RepoRegistry`, `boostConfidence`, `decayConfidence`, `getStaleAnnotations`, `promoteSecurityAnnotations`, `runDecayPass` (+77 more)
66
+ - **apps**: `remove`, `getAnnotations`, `Database`, `getCodebaseSummary`, `close`
67
+ - **docs**: `remove`
68
+ - **scripts**: `Database`, `getCodebaseSummary`, `close`
69
+ - **parser**: `load`
70
+
71
+ ## Files
72
+ - src/store/annotations.ts
73
+ - src/store/confidence.ts
74
+ - src/store/db.ts
75
+ - src/store/registry.ts
76
+ - src/store/vectors.ts