milens 0.7.2 → 0.7.3

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 (52) hide show
  1. package/.agents/skills/adapters/SKILL.md +59 -59
  2. package/.agents/skills/analyzer/SKILL.md +83 -83
  3. package/.agents/skills/apps/SKILL.md +65 -65
  4. package/.agents/skills/docs/SKILL.md +63 -63
  5. package/.agents/skills/milens/SKILL.md +322 -322
  6. package/.agents/skills/milens-security-review/SKILL.md +224 -224
  7. package/.agents/skills/orchestrator/SKILL.md +64 -64
  8. package/.agents/skills/parser/SKILL.md +86 -86
  9. package/.agents/skills/root/SKILL.md +89 -89
  10. package/.agents/skills/scripts/SKILL.md +56 -56
  11. package/.agents/skills/security/SKILL.md +67 -67
  12. package/.agents/skills/server/SKILL.md +84 -84
  13. package/.agents/skills/store/SKILL.md +77 -77
  14. package/.agents/skills/test/SKILL.md +155 -155
  15. package/.agents/skills/ui/SKILL.md +56 -56
  16. package/README.md +577 -577
  17. package/adapters/README.md +144 -144
  18. package/adapters/claude-code/.claude/mcp.json +9 -9
  19. package/adapters/claude-code/.claude/settings.json.hooks-snippet.json +26 -26
  20. package/adapters/claude-code/.claude-plugin/plugin.json +11 -11
  21. package/adapters/claude-code/.mcp.json +9 -9
  22. package/adapters/claude-code/CLAUDE.md +81 -81
  23. package/adapters/claude-code/hooks/hooks.json +27 -27
  24. package/adapters/codex/.codex/config.toml +3 -3
  25. package/adapters/copilot/.vscode/mcp.json +10 -10
  26. package/adapters/cursor/.cursor/mcp.json +9 -9
  27. package/adapters/cursor/.cursorrules +69 -69
  28. package/adapters/gemini/.gemini/context.md +81 -81
  29. package/adapters/gemini/.gemini/settings.json +9 -9
  30. package/adapters/opencode/.opencode/config.json +8 -8
  31. package/adapters/zed/.zed/settings.json +8 -8
  32. package/dist/build-info.d.ts +2 -2
  33. package/dist/build-info.js +2 -2
  34. package/dist/cli.js +482 -482
  35. package/dist/parser/lang-css.js +9 -9
  36. package/dist/parser/lang-go.js +58 -58
  37. package/dist/parser/lang-html.js +3 -3
  38. package/dist/parser/lang-java.js +37 -37
  39. package/dist/parser/lang-js.js +105 -105
  40. package/dist/parser/lang-php.js +45 -45
  41. package/dist/parser/lang-py.js +43 -43
  42. package/dist/parser/lang-ruby.js +28 -28
  43. package/dist/parser/lang-rust.js +48 -48
  44. package/dist/parser/lang-ts.js +210 -210
  45. package/dist/server/mcp-prompts.js +502 -502
  46. package/dist/server/mcp.js +56 -56
  47. package/dist/skills.js +296 -296
  48. package/dist/store/annotations.js +1 -1
  49. package/dist/store/db.js +224 -224
  50. package/dist/store/schema.sql +144 -144
  51. package/dist/store/vectors.js +2 -2
  52. package/package.json +85 -85
@@ -1,84 +1,84 @@
1
- ---
2
- generated-by: milens
3
- name: milens-server
4
- description: Code intelligence for the server area — symbols, dependencies, and entry points
5
- ---
6
-
7
- <!-- Generated by milens — safe to delete/regenerate -->
8
- # Server
9
-
10
- ## Working with this area
11
- When working with code in **server/**, follow these mandatory safety rules:
12
-
13
- ### Before editing any symbol in this area:
14
- 1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
15
- 2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
16
- 3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
17
-
18
- ### Before committing changes in this area:
19
- 1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
20
- 2. If unexpected files changed → **STOP and report**
21
-
22
- ### Key tools for this area:
23
- | Task | Tool |
24
- |---|---|
25
- | Find all references | `mcp_milens_context` |
26
- | Check edit safety | `mcp_milens_edit_check` |
27
- | Text search across files | `mcp_milens_grep` |
28
- | See file symbols | `mcp_milens_get_file_symbols` |
29
-
30
- ### Edit-safety enforcement
31
- A `PreToolUse` hook (warn mode by default) reminds you if no milens safety check (`impact`/`context`/`overview`/`guard_edit_check`/`edit_check`/`smart_context`) was called before an `Edit`/`Write`/`MultiEdit`. Opt-in strict deny mode is available via `milens hooks guard-set-mode --mode strict`. Both modes consume the check after one edit. See `.milens/hook-state/config.json`. Known caveat: the underlying `PreToolUse` deny mechanism has at least one reliability issue (https://github.com/anthropics/claude-code/issues/4362).
32
-
33
- ## Overview
34
- Contains 154 symbols (37 exported) across 12 files.
35
-
36
- ## Key Symbols
37
- - **`Deps`** [interface] (src/server/tools/deps.ts:4) — 11 refs
38
- - **`HookManager`** [class] (src/server/hooks.ts:43) — 9 refs
39
- - **`defaultOnSessionStart`** [function] (src/server/hooks.ts:100) — 8 refs
40
- - **`defaultOnSessionEnd`** [function] (src/server/hooks.ts:174) — 8 refs
41
- - **`defaultOnPreCompact`** [function] (src/server/hooks.ts:350) — 8 refs
42
- - **`defaultOnPostCompact`** [function] (src/server/hooks.ts:368) — 8 refs
43
- - **`createMcpServer`** [function] (src/server/mcp.ts:452) — 6 refs
44
- - **`HookConfig`** [interface] (src/server/hooks.ts:5) — 5 refs
45
- - **`FileWatcher`** [class] (src/server/watcher.ts:50) — 5 refs
46
- - **`readMode`** [function] (src/server/guard-hook.ts:38) — 4 refs
47
- - **`writeMode`** [function] (src/server/guard-hook.ts:50) — 4 refs
48
- - **`handleMarkChecked`** [function] (src/server/guard-hook.ts:147) — 4 refs
49
- - **`handleCheckEdit`** [function] (src/server/guard-hook.ts:161) — 4 refs
50
- - **`defaultOnPreCommit`** [function] (src/server/hooks.ts:237) — 4 refs
51
- - **`defaultOnFileChange`** [function] (src/server/hooks.ts:323) — 4 refs
52
-
53
- ## Entry Points
54
- - **`Deps`** [interface] — 11 incoming references
55
- - **`HookManager`** [class] — 9 incoming references
56
- - **`defaultOnSessionStart`** [function] — 8 incoming references
57
- - **`defaultOnSessionEnd`** [function] — 8 incoming references
58
- - **`defaultOnPreCompact`** [function] — 8 incoming references
59
-
60
- ## Dependencies
61
- - **store**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `getStats`, `getTestCoverage` (+38 more)
62
- - **root**: `generateCrossRefSection`, `globToRegex`
63
- - **analyzer**: `reviewPr`, `countDependentFiles`, `analyze`
64
- - **parser**: `getParser`, `loadLanguage`, `ALL_LANGS`
65
- - **orchestrator**: `Orchestrator`, `loadSnapshots`, `snapshot`, `persistSnapshots`, `compare`, `runAndFormat`
66
- - **security**: `loadRules`
67
-
68
- ## Used By
69
- - **root**: `startHttp`, `startStdio`, `HookManager`, `defaultOnSessionStart`, `defaultOnSessionEnd`, `defaultOnPreCompact`, `defaultOnPostCompact`, `handleMarkChecked` (+6 more)
70
- - **test**: `defaultOnSessionStart`, `defaultOnPreCompact`, `defaultOnSessionEnd`, `defaultOnPostCompact`, `createMcpServer`, `markChecked`, `checkEdit`, `readMode` (+26 more)
71
-
72
- ## Files
73
- - src/server/guard-hook.ts
74
- - src/server/hooks.ts
75
- - src/server/mcp-prompts.ts
76
- - src/server/mcp.ts
77
- - src/server/test-plan.ts
78
- - src/server/tools/deps.ts
79
- - src/server/tools/findings-report.ts
80
- - src/server/tools/resources.ts
81
- - src/server/tools/security.ts
82
- - src/server/tools/session.ts
83
- - src/server/tools/testing.ts
84
- - src/server/watcher.ts
1
+ ---
2
+ generated-by: milens
3
+ name: milens-server
4
+ description: Code intelligence for the server area — symbols, dependencies, and entry points
5
+ ---
6
+
7
+ <!-- Generated by milens — safe to delete/regenerate -->
8
+ # Server
9
+
10
+ ## Working with this area
11
+ When working with code in **server/**, follow these mandatory safety rules:
12
+
13
+ ### Before editing any symbol in this area:
14
+ 1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
15
+ 2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
16
+ 3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
17
+
18
+ ### Before committing changes in this area:
19
+ 1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
20
+ 2. If unexpected files changed → **STOP and report**
21
+
22
+ ### Key tools for this area:
23
+ | Task | Tool |
24
+ |---|---|
25
+ | Find all references | `mcp_milens_context` |
26
+ | Check edit safety | `mcp_milens_edit_check` |
27
+ | Text search across files | `mcp_milens_grep` |
28
+ | See file symbols | `mcp_milens_get_file_symbols` |
29
+
30
+ ### Edit-safety enforcement
31
+ A `PreToolUse` hook (warn mode by default) reminds you if no milens safety check (`impact`/`context`/`overview`/`guard_edit_check`/`edit_check`/`smart_context`) was called before an `Edit`/`Write`/`MultiEdit`. Opt-in strict deny mode is available via `milens hooks guard-set-mode --mode strict`. Both modes consume the check after one edit. See `.milens/hook-state/config.json`. Known caveat: the underlying `PreToolUse` deny mechanism has at least one reliability issue (https://github.com/anthropics/claude-code/issues/4362).
32
+
33
+ ## Overview
34
+ Contains 154 symbols (37 exported) across 12 files.
35
+
36
+ ## Key Symbols
37
+ - **`Deps`** [interface] (src/server/tools/deps.ts:4) — 11 refs
38
+ - **`HookManager`** [class] (src/server/hooks.ts:43) — 9 refs
39
+ - **`defaultOnSessionStart`** [function] (src/server/hooks.ts:100) — 8 refs
40
+ - **`defaultOnSessionEnd`** [function] (src/server/hooks.ts:174) — 8 refs
41
+ - **`defaultOnPreCompact`** [function] (src/server/hooks.ts:350) — 8 refs
42
+ - **`defaultOnPostCompact`** [function] (src/server/hooks.ts:368) — 8 refs
43
+ - **`createMcpServer`** [function] (src/server/mcp.ts:452) — 6 refs
44
+ - **`HookConfig`** [interface] (src/server/hooks.ts:5) — 5 refs
45
+ - **`FileWatcher`** [class] (src/server/watcher.ts:50) — 5 refs
46
+ - **`readMode`** [function] (src/server/guard-hook.ts:38) — 4 refs
47
+ - **`writeMode`** [function] (src/server/guard-hook.ts:50) — 4 refs
48
+ - **`handleMarkChecked`** [function] (src/server/guard-hook.ts:147) — 4 refs
49
+ - **`handleCheckEdit`** [function] (src/server/guard-hook.ts:161) — 4 refs
50
+ - **`defaultOnPreCommit`** [function] (src/server/hooks.ts:237) — 4 refs
51
+ - **`defaultOnFileChange`** [function] (src/server/hooks.ts:323) — 4 refs
52
+
53
+ ## Entry Points
54
+ - **`Deps`** [interface] — 11 incoming references
55
+ - **`HookManager`** [class] — 9 incoming references
56
+ - **`defaultOnSessionStart`** [function] — 8 incoming references
57
+ - **`defaultOnSessionEnd`** [function] — 8 incoming references
58
+ - **`defaultOnPreCompact`** [function] — 8 incoming references
59
+
60
+ ## Dependencies
61
+ - **store**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `getStats`, `getTestCoverage` (+38 more)
62
+ - **root**: `generateCrossRefSection`, `globToRegex`
63
+ - **analyzer**: `reviewPr`, `countDependentFiles`, `analyze`
64
+ - **parser**: `getParser`, `loadLanguage`, `ALL_LANGS`
65
+ - **orchestrator**: `Orchestrator`, `loadSnapshots`, `snapshot`, `persistSnapshots`, `compare`, `runAndFormat`
66
+ - **security**: `loadRules`
67
+
68
+ ## Used By
69
+ - **root**: `startHttp`, `startStdio`, `HookManager`, `defaultOnSessionStart`, `defaultOnSessionEnd`, `defaultOnPreCompact`, `defaultOnPostCompact`, `handleMarkChecked` (+6 more)
70
+ - **test**: `defaultOnSessionStart`, `defaultOnPreCompact`, `defaultOnSessionEnd`, `defaultOnPostCompact`, `createMcpServer`, `markChecked`, `checkEdit`, `readMode` (+26 more)
71
+
72
+ ## Files
73
+ - src/server/guard-hook.ts
74
+ - src/server/hooks.ts
75
+ - src/server/mcp-prompts.ts
76
+ - src/server/mcp.ts
77
+ - src/server/test-plan.ts
78
+ - src/server/tools/deps.ts
79
+ - src/server/tools/findings-report.ts
80
+ - src/server/tools/resources.ts
81
+ - src/server/tools/security.ts
82
+ - src/server/tools/session.ts
83
+ - src/server/tools/testing.ts
84
+ - src/server/watcher.ts
@@ -1,77 +1,77 @@
1
- ---
2
- generated-by: milens
3
- name: milens-store
4
- description: Code intelligence for the store area — symbols, dependencies, and entry points
5
- ---
6
-
7
- <!-- Generated by milens — safe to delete/regenerate -->
8
- # Store
9
-
10
- ## Working with this area
11
- When working with code in **store/**, follow these mandatory safety rules:
12
-
13
- ### Before editing any symbol in this area:
14
- 1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
15
- 2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
16
- 3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
17
-
18
- ### Before committing changes in this area:
19
- 1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
20
- 2. If unexpected files changed → **STOP and report**
21
-
22
- ### Key tools for this area:
23
- | Task | Tool |
24
- |---|---|
25
- | Find all references | `mcp_milens_context` |
26
- | Check edit safety | `mcp_milens_edit_check` |
27
- | Text search across files | `mcp_milens_grep` |
28
- | See file symbols | `mcp_milens_get_file_symbols` |
29
-
30
- ### Edit-safety enforcement
31
- A `PreToolUse` hook (warn mode by default) reminds you if no milens safety check (`impact`/`context`/`overview`/`guard_edit_check`/`edit_check`/`smart_context`) was called before an `Edit`/`Write`/`MultiEdit`. Opt-in strict deny mode is available via `milens hooks guard-set-mode --mode strict`. Both modes consume the check after one edit. See `.milens/hook-state/config.json`. Known caveat: the underlying `PreToolUse` deny mechanism has at least one reliability issue (https://github.com/anthropics/claude-code/issues/4362).
32
-
33
- ## Overview
34
- Contains 146 symbols (15 exported) across 5 files.
35
-
36
- ## Key Symbols
37
- - **`Database`** [class] (src/store/db.ts:10) — 80 refs
38
- - **`AnnotationStore`** [class] (src/store/annotations.ts:10) — 21 refs
39
- - **`RepoRegistry`** [class] (src/store/registry.ts:24) — 18 refs
40
- - **`runDecayPass`** [function] (src/store/confidence.ts:87) — 6 refs
41
- - **`buildEmbeddingText`** [function] (src/store/vectors.ts:250) — 4 refs
42
- - **`TfIdfProvider`** [class] (src/store/vectors.ts:44) — 4 refs
43
- - **`EmbeddingStore`** [class] (src/store/vectors.ts:170) — 4 refs
44
- - **`decayConfidence`** [function] (src/store/confidence.ts:23) — 3 refs
45
- - **`boostConfidence`** [function] (src/store/confidence.ts:6) — 2 refs
46
- - **`getStaleAnnotations`** [function] (src/store/confidence.ts:40) — 2 refs
47
- - **`promoteSecurityAnnotations`** [function] (src/store/confidence.ts:50) — 2 refs
48
- - **`autoPromote`** [function] (src/store/confidence.ts:108) — 2 refs
49
- - **`EmbeddingProvider`** [interface] (src/store/vectors.ts:15) — 2 refs
50
- - **`NeuralProvider`** [class] (src/store/vectors.ts:122) — 0 refs
51
- - **`SimilarResult`** [interface] (src/store/vectors.ts:23) — 0 refs
52
-
53
- ## Entry Points
54
- - **`Database`** [class] — 80 incoming references
55
- - **`AnnotationStore`** [class] — 21 incoming references
56
- - **`RepoRegistry`** [class] — 18 incoming references
57
- - **`findSymbolById`** [method] — 15 incoming references
58
- - **`rowToSymbol`** [function] — 13 incoming references
59
-
60
- ## Dependencies
61
- - **root**: `Annotation`, `AnnotationKey`, `Session`, `EvolutionEvent`, `CodeSymbol`, `SymbolLink`, `RepoEntry`
62
-
63
- ## Used By
64
- - **root**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `findDbPath` (+22 more)
65
- - **analyzer**: `Database`, `TfIdfProvider`, `EmbeddingStore`, `buildEmbeddingText`, `isFileUpToDate`, `upsertFileHash`, `getSymbolsByFile`, `transaction` (+18 more)
66
- - **orchestrator**: `Database`, `findSymbolByName`, `findUpstream`, `getTestCoverageGaps`, `findDeadCode`
67
- - **server**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `getStats`, `getTestCoverage` (+38 more)
68
- - **test**: `Database`, `AnnotationStore`, `RepoRegistry`, `boostConfidence`, `decayConfidence`, `getStaleAnnotations`, `promoteSecurityAnnotations`, `runDecayPass` (+76 more)
69
- - **apps**: `remove`, `getAnnotations`, `Database`, `getCodebaseSummary`
70
- - **parser**: `load`
71
-
72
- ## Files
73
- - src/store/annotations.ts
74
- - src/store/confidence.ts
75
- - src/store/db.ts
76
- - src/store/registry.ts
77
- - src/store/vectors.ts
1
+ ---
2
+ generated-by: milens
3
+ name: milens-store
4
+ description: Code intelligence for the store area — symbols, dependencies, and entry points
5
+ ---
6
+
7
+ <!-- Generated by milens — safe to delete/regenerate -->
8
+ # Store
9
+
10
+ ## Working with this area
11
+ When working with code in **store/**, follow these mandatory safety rules:
12
+
13
+ ### Before editing any symbol in this area:
14
+ 1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
15
+ 2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
16
+ 3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
17
+
18
+ ### Before committing changes in this area:
19
+ 1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
20
+ 2. If unexpected files changed → **STOP and report**
21
+
22
+ ### Key tools for this area:
23
+ | Task | Tool |
24
+ |---|---|
25
+ | Find all references | `mcp_milens_context` |
26
+ | Check edit safety | `mcp_milens_edit_check` |
27
+ | Text search across files | `mcp_milens_grep` |
28
+ | See file symbols | `mcp_milens_get_file_symbols` |
29
+
30
+ ### Edit-safety enforcement
31
+ A `PreToolUse` hook (warn mode by default) reminds you if no milens safety check (`impact`/`context`/`overview`/`guard_edit_check`/`edit_check`/`smart_context`) was called before an `Edit`/`Write`/`MultiEdit`. Opt-in strict deny mode is available via `milens hooks guard-set-mode --mode strict`. Both modes consume the check after one edit. See `.milens/hook-state/config.json`. Known caveat: the underlying `PreToolUse` deny mechanism has at least one reliability issue (https://github.com/anthropics/claude-code/issues/4362).
32
+
33
+ ## Overview
34
+ Contains 146 symbols (15 exported) across 5 files.
35
+
36
+ ## Key Symbols
37
+ - **`Database`** [class] (src/store/db.ts:10) — 80 refs
38
+ - **`AnnotationStore`** [class] (src/store/annotations.ts:10) — 21 refs
39
+ - **`RepoRegistry`** [class] (src/store/registry.ts:24) — 18 refs
40
+ - **`runDecayPass`** [function] (src/store/confidence.ts:87) — 6 refs
41
+ - **`buildEmbeddingText`** [function] (src/store/vectors.ts:250) — 4 refs
42
+ - **`TfIdfProvider`** [class] (src/store/vectors.ts:44) — 4 refs
43
+ - **`EmbeddingStore`** [class] (src/store/vectors.ts:170) — 4 refs
44
+ - **`decayConfidence`** [function] (src/store/confidence.ts:23) — 3 refs
45
+ - **`boostConfidence`** [function] (src/store/confidence.ts:6) — 2 refs
46
+ - **`getStaleAnnotations`** [function] (src/store/confidence.ts:40) — 2 refs
47
+ - **`promoteSecurityAnnotations`** [function] (src/store/confidence.ts:50) — 2 refs
48
+ - **`autoPromote`** [function] (src/store/confidence.ts:108) — 2 refs
49
+ - **`EmbeddingProvider`** [interface] (src/store/vectors.ts:15) — 2 refs
50
+ - **`NeuralProvider`** [class] (src/store/vectors.ts:122) — 0 refs
51
+ - **`SimilarResult`** [interface] (src/store/vectors.ts:23) — 0 refs
52
+
53
+ ## Entry Points
54
+ - **`Database`** [class] — 80 incoming references
55
+ - **`AnnotationStore`** [class] — 21 incoming references
56
+ - **`RepoRegistry`** [class] — 18 incoming references
57
+ - **`findSymbolById`** [method] — 15 incoming references
58
+ - **`rowToSymbol`** [function] — 13 incoming references
59
+
60
+ ## Dependencies
61
+ - **root**: `Annotation`, `AnnotationKey`, `Session`, `EvolutionEvent`, `CodeSymbol`, `SymbolLink`, `RepoEntry`
62
+
63
+ ## Used By
64
+ - **root**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `findDbPath` (+22 more)
65
+ - **analyzer**: `Database`, `TfIdfProvider`, `EmbeddingStore`, `buildEmbeddingText`, `isFileUpToDate`, `upsertFileHash`, `getSymbolsByFile`, `transaction` (+18 more)
66
+ - **orchestrator**: `Database`, `findSymbolByName`, `findUpstream`, `getTestCoverageGaps`, `findDeadCode`
67
+ - **server**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `getStats`, `getTestCoverage` (+38 more)
68
+ - **test**: `Database`, `AnnotationStore`, `RepoRegistry`, `boostConfidence`, `decayConfidence`, `getStaleAnnotations`, `promoteSecurityAnnotations`, `runDecayPass` (+76 more)
69
+ - **apps**: `remove`, `getAnnotations`, `Database`, `getCodebaseSummary`
70
+ - **parser**: `load`
71
+
72
+ ## Files
73
+ - src/store/annotations.ts
74
+ - src/store/confidence.ts
75
+ - src/store/db.ts
76
+ - src/store/registry.ts
77
+ - src/store/vectors.ts
@@ -1,155 +1,155 @@
1
- ---
2
- generated-by: milens
3
- name: milens-test
4
- description: Code intelligence for the test area — symbols, dependencies, and entry points
5
- ---
6
-
7
- <!-- Generated by milens — safe to delete/regenerate -->
8
- # Test
9
-
10
- ## Working with this area
11
- When working with code in **test/**, follow these mandatory safety rules:
12
-
13
- ### Before editing any symbol in this area:
14
- 1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
15
- 2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
16
- 3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
17
-
18
- ### Before committing changes in this area:
19
- 1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
20
- 2. If unexpected files changed → **STOP and report**
21
-
22
- ### Key tools for this area:
23
- | Task | Tool |
24
- |---|---|
25
- | Find all references | `mcp_milens_context` |
26
- | Check edit safety | `mcp_milens_edit_check` |
27
- | Text search across files | `mcp_milens_grep` |
28
- | See file symbols | `mcp_milens_get_file_symbols` |
29
-
30
- ### Edit-safety enforcement
31
- A `PreToolUse` hook (warn mode by default) reminds you if no milens safety check (`impact`/`context`/`overview`/`guard_edit_check`/`edit_check`/`smart_context`) was called before an `Edit`/`Write`/`MultiEdit`. Opt-in strict deny mode is available via `milens hooks guard-set-mode --mode strict`. Both modes consume the check after one edit. See `.milens/hook-state/config.json`. Known caveat: the underlying `PreToolUse` deny mechanism has at least one reliability issue (https://github.com/anthropics/claude-code/issues/4362).
32
-
33
- ## Overview
34
- Contains 353 symbols (119 exported) across 83 files.
35
-
36
- ## Key Symbols
37
- - **`User`** [class] (test/fixtures/accuracy/py-project/src/models.py:1) — 6 refs
38
- - **`Calculator`** [class] (test/fixtures/accuracy/js-project/src/calculator.js:1) — 5 refs
39
- - **`User`** [interface] (test/fixtures/ts-project/src/models.ts:1) — 5 refs
40
- - **`User`** [class] (test/fixtures/accuracy/ruby-project/src/models.rb:1) — 5 refs
41
- - **`User`** [interface] (test/fixtures/accuracy/ts-project/src/models.ts:1) — 3 refs
42
- - **`User`** [class] (test/fixtures/py-project/models.py:1) — 3 refs
43
- - **`UserRepo`** [class] (test/fixtures/accuracy/ruby-project/src/models.rb:10) — 3 refs
44
- - **`createCalc`** [function] (test/fixtures/accuracy/js-project/src/calculator.js:6) — 2 refs
45
- - **`UserRepository`** [class] (test/fixtures/accuracy/ts-project/src/models.ts:12) — 2 refs
46
- - **`createUser`** [function] (test/fixtures/ts-project/src/models.ts:9) — 2 refs
47
- - **`UserRole`** [type] (test/fixtures/ts-project/src/models.ts:7) — 2 refs
48
- - **`UserService`** [class] (test/fixtures/ts-project/src/nest-sample.ts:27) — 2 refs
49
- - **`Save`** [method] (test/fixtures/accuracy/go-project/src/models/user.go:16) — 2 refs
50
- - **`UserRepo`** [class] (test/fixtures/accuracy/py-project/src/models.py:10) — 2 refs
51
- - **`save`** [method] (test/fixtures/accuracy/py-project/src/models.py:14) — 2 refs
52
-
53
- ## Entry Points
54
- - **`User`** [class] — 6 incoming references
55
- - **`Calculator`** [class] — 5 incoming references
56
- - **`User`** [interface] — 5 incoming references
57
- - **`User`** [class] — 5 incoming references
58
- - **`User`** [interface] — 3 incoming references
59
-
60
- ## Dependencies
61
- - **analyzer**: `analyze`, `loadAliases`, `getCachedTree`, `clearTreeCache`, `enrichMetadata`, `resolveLinksWithStats`, `resolveLinks`, `reviewSymbol` (+9 more)
62
- - **store**: `Database`, `AnnotationStore`, `RepoRegistry`, `boostConfidence`, `decayConfidence`, `getStaleAnnotations`, `promoteSecurityAnnotations`, `runDecayPass` (+76 more)
63
- - **root**: `generateAgentsMd`, `AnnotationKey`, `CodeSymbol`, `SymbolLink`, `computeMetrics`, `formatMetricsReport`, `MilensMetrics`, `RawImport` (+18 more)
64
- - **server**: `defaultOnSessionStart`, `defaultOnPreCompact`, `defaultOnSessionEnd`, `defaultOnPostCompact`, `createMcpServer`, `markChecked`, `checkEdit`, `readMode` (+26 more)
65
- - **security**: `detectEcosystem`, `parseDependencies`, `checkVulnerabilities`, `auditDependencies`, `loadRules`, `getRulesByCategory`, `getRulesBySeverity`
66
- - **parser**: `getParser`, `loadLanguage`, `extractFromTree`, `extractVueScript`, `extractVueTemplateRefs`, `extractVueCompositionApi`, `extractVueTemplateAst`, `spec` (+11 more)
67
- - **orchestrator**: `Orchestrator`, `formatReport`, `OrchestratorReport`, `subscribe`, `run`, `snapshot`, `compare`, `cancel` (+3 more)
68
-
69
- ## Used By
70
- - **apps**: `create`
71
-
72
- ## Files
73
- - test/fixtures/accuracy/go-project/src/admin.go
74
- - test/fixtures/accuracy/go-project/src/main.go
75
- - test/fixtures/accuracy/go-project/src/models/user.go
76
- - test/fixtures/accuracy/java-project/src/Models.java
77
- - test/fixtures/accuracy/java-project/src/Service.java
78
- - test/fixtures/accuracy/js-project/src/app.js
79
- - test/fixtures/accuracy/js-project/src/calculator.js
80
- - test/fixtures/accuracy/js-project/src/extend.js
81
- - test/fixtures/accuracy/php-project/src/admin.php
82
- - test/fixtures/accuracy/php-project/src/models.php
83
- - test/fixtures/accuracy/php-project/src/service.php
84
- - test/fixtures/accuracy/py-project/src/admin.py
85
- - test/fixtures/accuracy/py-project/src/models.py
86
- - test/fixtures/accuracy/py-project/src/service.py
87
- - test/fixtures/accuracy/ruby-project/src/mixins.rb
88
- - test/fixtures/accuracy/ruby-project/src/models.rb
89
- - test/fixtures/accuracy/ruby-project/src/service.rb
90
- - test/fixtures/accuracy/rust-project/src/admin.rs
91
- - test/fixtures/accuracy/rust-project/src/main.rs
92
- - test/fixtures/accuracy/rust-project/src/models.rs
93
- - test/fixtures/accuracy/ts-project/src/auth.ts
94
- - test/fixtures/accuracy/ts-project/src/index.ts
95
- - test/fixtures/accuracy/ts-project/src/models.ts
96
- - test/fixtures/go-project/models/user.go
97
- - test/fixtures/go-project/service/handler.go
98
- - test/fixtures/html-project/css/main.css
99
- - test/fixtures/html-project/css/reset.css
100
- - test/fixtures/html-project/index.html
101
- - test/fixtures/html-project/js/analytics.js
102
- - test/fixtures/html-project/js/utils.js
103
- - test/fixtures/md-project/README.md
104
- - test/fixtures/md-project/docs/guide.md
105
- - test/fixtures/py-project/models.py
106
- - test/fixtures/py-project/service.py
107
- - test/fixtures/ts-project/src/UserProfile.vue
108
- - test/fixtures/ts-project/src/auth.ts
109
- - test/fixtures/ts-project/src/models.ts
110
- - test/fixtures/ts-project/src/nest-sample.ts
111
- - test/fixtures/vue-project-refs/src/composables/useClipboard.js
112
- - test/fixtures/vue-project-refs/src/views/TestView.vue
113
- - test/fixtures/vue-project/src/composables/useClipboard.js
114
- - test/fixtures/vue-project/src/views/TestView.vue
115
- - test/setup.ts
116
- - test/unit/accuracy.test.ts
117
- - test/unit/agents-md.test.ts
118
- - test/unit/annotations.test.ts
119
- - test/unit/cli.test.ts
120
- - test/unit/confidence.test.ts
121
- - test/unit/database.test.ts
122
- - test/unit/db-extended.test.ts
123
- - test/unit/deps-audit.test.ts
124
- - test/unit/engine.test.ts
125
- - test/unit/enrich.test.ts
126
- - test/unit/extractor.test.ts
127
- - test/unit/findings-report.test.ts
128
- - test/unit/guard-hook.test.ts
129
- - test/unit/hooks.test.ts
130
- - test/unit/html-css.test.ts
131
- - test/unit/languages.test.ts
132
- - test/unit/markdown.test.ts
133
- - test/unit/mcp-prompts.test.ts
134
- - test/unit/mcp-tools.test.ts
135
- - test/unit/mcp-transport.test.ts
136
- - test/unit/metrics.test.ts
137
- - test/unit/mro.test.ts
138
- - test/unit/orchestrator.test.ts
139
- - test/unit/parser-extract-cache.test.ts
140
- - test/unit/parser-loader.test.ts
141
- - test/unit/pr-generator.test.ts
142
- - test/unit/registry.test.ts
143
- - test/unit/resolver.test.ts
144
- - test/unit/review.test.ts
145
- - test/unit/risk.test.ts
146
- - test/unit/scanner.test.ts
147
- - test/unit/scope-resolver.test.ts
148
- - test/unit/security-rules.test.ts
149
- - test/unit/server-test-plan.test.ts
150
- - test/unit/skills.test.ts
151
- - test/unit/uninstall.test.ts
152
- - test/unit/utils.test.ts
153
- - test/unit/vectors.test.ts
154
- - test/unit/vue-import.test.ts
155
- - test/unit/watcher.test.ts
1
+ ---
2
+ generated-by: milens
3
+ name: milens-test
4
+ description: Code intelligence for the test area — symbols, dependencies, and entry points
5
+ ---
6
+
7
+ <!-- Generated by milens — safe to delete/regenerate -->
8
+ # Test
9
+
10
+ ## Working with this area
11
+ When working with code in **test/**, follow these mandatory safety rules:
12
+
13
+ ### Before editing any symbol in this area:
14
+ 1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
15
+ 2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
16
+ 3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
17
+
18
+ ### Before committing changes in this area:
19
+ 1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
20
+ 2. If unexpected files changed → **STOP and report**
21
+
22
+ ### Key tools for this area:
23
+ | Task | Tool |
24
+ |---|---|
25
+ | Find all references | `mcp_milens_context` |
26
+ | Check edit safety | `mcp_milens_edit_check` |
27
+ | Text search across files | `mcp_milens_grep` |
28
+ | See file symbols | `mcp_milens_get_file_symbols` |
29
+
30
+ ### Edit-safety enforcement
31
+ A `PreToolUse` hook (warn mode by default) reminds you if no milens safety check (`impact`/`context`/`overview`/`guard_edit_check`/`edit_check`/`smart_context`) was called before an `Edit`/`Write`/`MultiEdit`. Opt-in strict deny mode is available via `milens hooks guard-set-mode --mode strict`. Both modes consume the check after one edit. See `.milens/hook-state/config.json`. Known caveat: the underlying `PreToolUse` deny mechanism has at least one reliability issue (https://github.com/anthropics/claude-code/issues/4362).
32
+
33
+ ## Overview
34
+ Contains 353 symbols (119 exported) across 83 files.
35
+
36
+ ## Key Symbols
37
+ - **`User`** [class] (test/fixtures/accuracy/py-project/src/models.py:1) — 6 refs
38
+ - **`Calculator`** [class] (test/fixtures/accuracy/js-project/src/calculator.js:1) — 5 refs
39
+ - **`User`** [interface] (test/fixtures/ts-project/src/models.ts:1) — 5 refs
40
+ - **`User`** [class] (test/fixtures/accuracy/ruby-project/src/models.rb:1) — 5 refs
41
+ - **`User`** [interface] (test/fixtures/accuracy/ts-project/src/models.ts:1) — 3 refs
42
+ - **`User`** [class] (test/fixtures/py-project/models.py:1) — 3 refs
43
+ - **`UserRepo`** [class] (test/fixtures/accuracy/ruby-project/src/models.rb:10) — 3 refs
44
+ - **`createCalc`** [function] (test/fixtures/accuracy/js-project/src/calculator.js:6) — 2 refs
45
+ - **`UserRepository`** [class] (test/fixtures/accuracy/ts-project/src/models.ts:12) — 2 refs
46
+ - **`createUser`** [function] (test/fixtures/ts-project/src/models.ts:9) — 2 refs
47
+ - **`UserRole`** [type] (test/fixtures/ts-project/src/models.ts:7) — 2 refs
48
+ - **`UserService`** [class] (test/fixtures/ts-project/src/nest-sample.ts:27) — 2 refs
49
+ - **`Save`** [method] (test/fixtures/accuracy/go-project/src/models/user.go:16) — 2 refs
50
+ - **`UserRepo`** [class] (test/fixtures/accuracy/py-project/src/models.py:10) — 2 refs
51
+ - **`save`** [method] (test/fixtures/accuracy/py-project/src/models.py:14) — 2 refs
52
+
53
+ ## Entry Points
54
+ - **`User`** [class] — 6 incoming references
55
+ - **`Calculator`** [class] — 5 incoming references
56
+ - **`User`** [interface] — 5 incoming references
57
+ - **`User`** [class] — 5 incoming references
58
+ - **`User`** [interface] — 3 incoming references
59
+
60
+ ## Dependencies
61
+ - **analyzer**: `analyze`, `loadAliases`, `getCachedTree`, `clearTreeCache`, `enrichMetadata`, `resolveLinksWithStats`, `resolveLinks`, `reviewSymbol` (+9 more)
62
+ - **store**: `Database`, `AnnotationStore`, `RepoRegistry`, `boostConfidence`, `decayConfidence`, `getStaleAnnotations`, `promoteSecurityAnnotations`, `runDecayPass` (+76 more)
63
+ - **root**: `generateAgentsMd`, `AnnotationKey`, `CodeSymbol`, `SymbolLink`, `computeMetrics`, `formatMetricsReport`, `MilensMetrics`, `RawImport` (+18 more)
64
+ - **server**: `defaultOnSessionStart`, `defaultOnPreCompact`, `defaultOnSessionEnd`, `defaultOnPostCompact`, `createMcpServer`, `markChecked`, `checkEdit`, `readMode` (+26 more)
65
+ - **security**: `detectEcosystem`, `parseDependencies`, `checkVulnerabilities`, `auditDependencies`, `loadRules`, `getRulesByCategory`, `getRulesBySeverity`
66
+ - **parser**: `getParser`, `loadLanguage`, `extractFromTree`, `extractVueScript`, `extractVueTemplateRefs`, `extractVueCompositionApi`, `extractVueTemplateAst`, `spec` (+11 more)
67
+ - **orchestrator**: `Orchestrator`, `formatReport`, `OrchestratorReport`, `subscribe`, `run`, `snapshot`, `compare`, `cancel` (+3 more)
68
+
69
+ ## Used By
70
+ - **apps**: `create`
71
+
72
+ ## Files
73
+ - test/fixtures/accuracy/go-project/src/admin.go
74
+ - test/fixtures/accuracy/go-project/src/main.go
75
+ - test/fixtures/accuracy/go-project/src/models/user.go
76
+ - test/fixtures/accuracy/java-project/src/Models.java
77
+ - test/fixtures/accuracy/java-project/src/Service.java
78
+ - test/fixtures/accuracy/js-project/src/app.js
79
+ - test/fixtures/accuracy/js-project/src/calculator.js
80
+ - test/fixtures/accuracy/js-project/src/extend.js
81
+ - test/fixtures/accuracy/php-project/src/admin.php
82
+ - test/fixtures/accuracy/php-project/src/models.php
83
+ - test/fixtures/accuracy/php-project/src/service.php
84
+ - test/fixtures/accuracy/py-project/src/admin.py
85
+ - test/fixtures/accuracy/py-project/src/models.py
86
+ - test/fixtures/accuracy/py-project/src/service.py
87
+ - test/fixtures/accuracy/ruby-project/src/mixins.rb
88
+ - test/fixtures/accuracy/ruby-project/src/models.rb
89
+ - test/fixtures/accuracy/ruby-project/src/service.rb
90
+ - test/fixtures/accuracy/rust-project/src/admin.rs
91
+ - test/fixtures/accuracy/rust-project/src/main.rs
92
+ - test/fixtures/accuracy/rust-project/src/models.rs
93
+ - test/fixtures/accuracy/ts-project/src/auth.ts
94
+ - test/fixtures/accuracy/ts-project/src/index.ts
95
+ - test/fixtures/accuracy/ts-project/src/models.ts
96
+ - test/fixtures/go-project/models/user.go
97
+ - test/fixtures/go-project/service/handler.go
98
+ - test/fixtures/html-project/css/main.css
99
+ - test/fixtures/html-project/css/reset.css
100
+ - test/fixtures/html-project/index.html
101
+ - test/fixtures/html-project/js/analytics.js
102
+ - test/fixtures/html-project/js/utils.js
103
+ - test/fixtures/md-project/README.md
104
+ - test/fixtures/md-project/docs/guide.md
105
+ - test/fixtures/py-project/models.py
106
+ - test/fixtures/py-project/service.py
107
+ - test/fixtures/ts-project/src/UserProfile.vue
108
+ - test/fixtures/ts-project/src/auth.ts
109
+ - test/fixtures/ts-project/src/models.ts
110
+ - test/fixtures/ts-project/src/nest-sample.ts
111
+ - test/fixtures/vue-project-refs/src/composables/useClipboard.js
112
+ - test/fixtures/vue-project-refs/src/views/TestView.vue
113
+ - test/fixtures/vue-project/src/composables/useClipboard.js
114
+ - test/fixtures/vue-project/src/views/TestView.vue
115
+ - test/setup.ts
116
+ - test/unit/accuracy.test.ts
117
+ - test/unit/agents-md.test.ts
118
+ - test/unit/annotations.test.ts
119
+ - test/unit/cli.test.ts
120
+ - test/unit/confidence.test.ts
121
+ - test/unit/database.test.ts
122
+ - test/unit/db-extended.test.ts
123
+ - test/unit/deps-audit.test.ts
124
+ - test/unit/engine.test.ts
125
+ - test/unit/enrich.test.ts
126
+ - test/unit/extractor.test.ts
127
+ - test/unit/findings-report.test.ts
128
+ - test/unit/guard-hook.test.ts
129
+ - test/unit/hooks.test.ts
130
+ - test/unit/html-css.test.ts
131
+ - test/unit/languages.test.ts
132
+ - test/unit/markdown.test.ts
133
+ - test/unit/mcp-prompts.test.ts
134
+ - test/unit/mcp-tools.test.ts
135
+ - test/unit/mcp-transport.test.ts
136
+ - test/unit/metrics.test.ts
137
+ - test/unit/mro.test.ts
138
+ - test/unit/orchestrator.test.ts
139
+ - test/unit/parser-extract-cache.test.ts
140
+ - test/unit/parser-loader.test.ts
141
+ - test/unit/pr-generator.test.ts
142
+ - test/unit/registry.test.ts
143
+ - test/unit/resolver.test.ts
144
+ - test/unit/review.test.ts
145
+ - test/unit/risk.test.ts
146
+ - test/unit/scanner.test.ts
147
+ - test/unit/scope-resolver.test.ts
148
+ - test/unit/security-rules.test.ts
149
+ - test/unit/server-test-plan.test.ts
150
+ - test/unit/skills.test.ts
151
+ - test/unit/uninstall.test.ts
152
+ - test/unit/utils.test.ts
153
+ - test/unit/vectors.test.ts
154
+ - test/unit/vue-import.test.ts
155
+ - test/unit/watcher.test.ts