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.
- package/.agents/skills/analyzer/SKILL.md +81 -79
- package/.agents/skills/docs/SKILL.md +78 -79
- package/.agents/skills/milens/SKILL.md +319 -318
- package/.agents/skills/orchestrator/SKILL.md +61 -61
- package/.agents/skills/parser/SKILL.md +83 -82
- package/.agents/skills/root/SKILL.md +88 -86
- package/.agents/skills/scripts/SKILL.md +54 -45
- package/.agents/skills/security/SKILL.md +67 -66
- package/.agents/skills/server/SKILL.md +74 -73
- package/.agents/skills/store/SKILL.md +76 -75
- package/.agents/skills/test/SKILL.md +153 -152
- package/.agents/skills/ui/SKILL.md +51 -0
- package/README.md +568 -527
- package/adapters/claude-code/.claude/mcp.json +9 -9
- package/adapters/claude-code/CLAUDE.md +79 -79
- package/adapters/gemini/.gemini/context.md +81 -81
- package/adapters/opencode/.opencode/config.json +8 -8
- package/adapters/zed/.zed/settings.json +8 -8
- package/dist/cli.js +1 -1
- package/dist/server/hooks.d.ts.map +1 -1
- package/dist/server/hooks.js +10 -0
- package/dist/server/hooks.js.map +1 -1
- package/dist/skills.js +3 -3
- package/dist/store/db.d.ts.map +1 -1
- package/dist/store/db.js +1 -5
- package/dist/store/db.js.map +1 -1
- package/docs/README.md +25 -25
- 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
|
|
30
|
-
|
|
31
|
-
## Key Symbols
|
|
32
|
-
- **`loadRules`** [function] (src/security/rules.ts:
|
|
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:
|
|
40
|
-
- **`getRulesBySeverity`** [function] (src/security/rules.ts:
|
|
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:
|
|
45
|
-
- **`SecurityMatch`** [interface] (src/security/rules.ts:
|
|
46
|
-
- **`SecurityReport`** [interface] (src/security/rules.ts:
|
|
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
|
-
- **
|
|
57
|
-
- **
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
- **
|
|
62
|
-
- **
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- src/security/
|
|
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
|
|
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:
|
|
36
|
-
- **`defaultOnPreCommit`** [function] (src/server/hooks.ts:
|
|
37
|
-
- **`defaultOnFileChange`** [function] (src/server/hooks.ts:
|
|
38
|
-
- **`defaultOnPreCompact`** [function] (src/server/hooks.ts:
|
|
39
|
-
- **`defaultOnPostCompact`** [function] (src/server/hooks.ts:
|
|
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:
|
|
43
|
-
- **`generateTestPlan`** [function] (src/server/test-plan.ts:
|
|
44
|
-
- **`FileWatcher`** [class] (src/server/watcher.ts:50) — 3 refs
|
|
45
|
-
- **`startStdio`** [function] (src/server/mcp.ts:
|
|
46
|
-
- **`startHttp`** [function] (src/server/mcp.ts:
|
|
47
|
-
|
|
48
|
-
## Entry Points
|
|
49
|
-
- **`get`** [method] —
|
|
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
|
-
- **
|
|
58
|
-
- **
|
|
59
|
-
- **
|
|
60
|
-
- **
|
|
61
|
-
- **
|
|
62
|
-
- **test**: `add`, `dbPath`
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- **
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
- src/server/
|
|
71
|
-
- src/server/mcp.ts
|
|
72
|
-
- src/server/
|
|
73
|
-
- src/server/
|
|
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) —
|
|
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] —
|
|
50
|
-
- **`close`** [method] —
|
|
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`, `
|
|
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
|
-
- **
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
- src/store/
|
|
73
|
-
- src/store/
|
|
74
|
-
- src/store/
|
|
75
|
-
- src/store/
|
|
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
|