milens 0.7.0 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/.agents/skills/adapters/SKILL.md +59 -51
  2. package/.agents/skills/analyzer/SKILL.md +23 -21
  3. package/.agents/skills/apps/SKILL.md +65 -68
  4. package/.agents/skills/docs/SKILL.md +10 -25
  5. package/.agents/skills/milens/SKILL.md +11 -8
  6. package/.agents/skills/orchestrator/SKILL.md +13 -10
  7. package/.agents/skills/parser/SKILL.md +15 -12
  8. package/.agents/skills/root/SKILL.md +30 -29
  9. package/.agents/skills/scripts/SKILL.md +18 -16
  10. package/.agents/skills/security/SKILL.md +7 -7
  11. package/.agents/skills/server/SKILL.md +36 -26
  12. package/.agents/skills/store/SKILL.md +24 -23
  13. package/.agents/skills/test/SKILL.md +24 -22
  14. package/.agents/skills/ui/SKILL.md +6 -1
  15. package/README.md +12 -3
  16. package/adapters/README.md +144 -107
  17. package/adapters/claude-code/.claude/settings.json.hooks-snippet.json +26 -0
  18. package/adapters/claude-code/.claude-plugin/plugin.json +11 -0
  19. package/adapters/claude-code/.mcp.json +9 -0
  20. package/adapters/claude-code/CLAUDE.md +2 -0
  21. package/adapters/claude-code/hooks/hooks.json +27 -0
  22. package/adapters/codex/.codex/config.toml +3 -0
  23. package/adapters/copilot/.vscode/mcp.json +10 -0
  24. package/adapters/cursor/.cursor/mcp.json +9 -0
  25. package/adapters/cursor/.cursorrules +69 -9
  26. package/adapters/gemini/.gemini/settings.json +9 -0
  27. package/dist/agents-md.d.ts +1 -1
  28. package/dist/agents-md.js +47 -3
  29. package/dist/agents-md.js.map +1 -1
  30. package/dist/analyzer/config.d.ts +0 -1
  31. package/dist/analyzer/config.js +32 -0
  32. package/dist/analyzer/config.js.map +1 -1
  33. package/dist/analyzer/engine.d.ts +0 -1
  34. package/dist/analyzer/engine.js +67 -41
  35. package/dist/analyzer/engine.js.map +1 -1
  36. package/dist/analyzer/enrich.d.ts +0 -1
  37. package/dist/analyzer/enrich.js +81 -1
  38. package/dist/analyzer/enrich.js.map +1 -1
  39. package/dist/analyzer/resolver.d.ts +4 -2
  40. package/dist/analyzer/resolver.js +283 -36
  41. package/dist/analyzer/resolver.js.map +1 -1
  42. package/dist/analyzer/review.d.ts +2 -2
  43. package/dist/analyzer/review.js +39 -61
  44. package/dist/analyzer/review.js.map +1 -1
  45. package/dist/analyzer/risk.d.ts +20 -0
  46. package/dist/analyzer/risk.js +76 -0
  47. package/dist/analyzer/risk.js.map +1 -0
  48. package/dist/analyzer/scanner.d.ts +0 -1
  49. package/dist/analyzer/scanner.js +5 -4
  50. package/dist/analyzer/scanner.js.map +1 -1
  51. package/dist/analyzer/scope-resolver.d.ts +0 -1
  52. package/dist/analyzer/scope-resolver.js +2 -2
  53. package/dist/analyzer/scope-resolver.js.map +1 -1
  54. package/dist/build-info.d.ts +2 -0
  55. package/dist/build-info.js +4 -0
  56. package/dist/build-info.js.map +1 -0
  57. package/dist/cli.d.ts +0 -1
  58. package/dist/cli.js +225 -30
  59. package/dist/cli.js.map +1 -1
  60. package/dist/metrics.d.ts +0 -1
  61. package/dist/orchestrator/orchestrator.d.ts +1 -2
  62. package/dist/orchestrator/orchestrator.js +30 -7
  63. package/dist/orchestrator/orchestrator.js.map +1 -1
  64. package/dist/orchestrator/reporter.d.ts +0 -1
  65. package/dist/parser/extract.d.ts +7 -1
  66. package/dist/parser/extract.js +76 -29
  67. package/dist/parser/extract.js.map +1 -1
  68. package/dist/parser/lang-css.d.ts +0 -1
  69. package/dist/parser/lang-css.js +12 -0
  70. package/dist/parser/lang-css.js.map +1 -1
  71. package/dist/parser/lang-go.d.ts +0 -1
  72. package/dist/parser/lang-html.d.ts +0 -1
  73. package/dist/parser/lang-java.d.ts +0 -1
  74. package/dist/parser/lang-js.d.ts +0 -1
  75. package/dist/parser/lang-js.js +15 -4
  76. package/dist/parser/lang-js.js.map +1 -1
  77. package/dist/parser/lang-md.d.ts +0 -1
  78. package/dist/parser/lang-md.js +1 -0
  79. package/dist/parser/lang-md.js.map +1 -1
  80. package/dist/parser/lang-php.d.ts +0 -1
  81. package/dist/parser/lang-py.d.ts +0 -1
  82. package/dist/parser/lang-ruby.d.ts +0 -1
  83. package/dist/parser/lang-rust.d.ts +0 -1
  84. package/dist/parser/lang-ts.d.ts +0 -1
  85. package/dist/parser/lang-ts.js +40 -6
  86. package/dist/parser/lang-ts.js.map +1 -1
  87. package/dist/parser/lang-vue.d.ts +0 -1
  88. package/dist/parser/lang-vue.js +0 -21
  89. package/dist/parser/lang-vue.js.map +1 -1
  90. package/dist/parser/language-provider.d.ts +0 -1
  91. package/dist/parser/languages.d.ts +0 -1
  92. package/dist/parser/loader.d.ts +0 -1
  93. package/dist/security/deps.d.ts +0 -1
  94. package/dist/security/rules.d.ts +0 -1
  95. package/dist/security/rules.js +35 -35
  96. package/dist/security/rules.js.map +1 -1
  97. package/dist/server/guard-hook.d.ts +10 -0
  98. package/dist/server/guard-hook.js +179 -0
  99. package/dist/server/guard-hook.js.map +1 -0
  100. package/dist/server/hooks.d.ts +0 -1
  101. package/dist/server/hooks.js +2 -1
  102. package/dist/server/hooks.js.map +1 -1
  103. package/dist/server/mcp-prompts.d.ts +0 -1
  104. package/dist/server/mcp-prompts.js +509 -523
  105. package/dist/server/mcp-prompts.js.map +1 -1
  106. package/dist/server/mcp.d.ts +0 -1
  107. package/dist/server/mcp.js +324 -681
  108. package/dist/server/mcp.js.map +1 -1
  109. package/dist/server/test-plan.d.ts +1 -1
  110. package/dist/server/test-plan.js +25 -7
  111. package/dist/server/test-plan.js.map +1 -1
  112. package/dist/server/tools/deps.d.ts +28 -0
  113. package/dist/server/tools/deps.js +2 -0
  114. package/dist/server/tools/deps.js.map +1 -0
  115. package/dist/server/tools/findings-report.d.ts +3 -0
  116. package/dist/server/tools/findings-report.js +170 -0
  117. package/dist/server/tools/findings-report.js.map +1 -0
  118. package/dist/server/tools/resources.d.ts +3 -0
  119. package/dist/server/tools/resources.js +103 -0
  120. package/dist/server/tools/resources.js.map +1 -0
  121. package/dist/server/tools/security.d.ts +3 -0
  122. package/dist/server/tools/security.js +232 -0
  123. package/dist/server/tools/security.js.map +1 -0
  124. package/dist/server/tools/session.d.ts +3 -0
  125. package/dist/server/tools/session.js +160 -0
  126. package/dist/server/tools/session.js.map +1 -0
  127. package/dist/server/tools/testing.d.ts +3 -0
  128. package/dist/server/tools/testing.js +247 -0
  129. package/dist/server/tools/testing.js.map +1 -0
  130. package/dist/server/watcher.d.ts +0 -1
  131. package/dist/server/watcher.js +1 -1
  132. package/dist/server/watcher.js.map +1 -1
  133. package/dist/skills.d.ts +0 -1
  134. package/dist/skills.js +23 -11
  135. package/dist/skills.js.map +1 -1
  136. package/dist/store/annotations.d.ts +6 -1
  137. package/dist/store/annotations.js +56 -9
  138. package/dist/store/annotations.js.map +1 -1
  139. package/dist/store/confidence.d.ts +0 -1
  140. package/dist/store/confidence.js +2 -0
  141. package/dist/store/confidence.js.map +1 -1
  142. package/dist/store/db.d.ts +22 -1
  143. package/dist/store/db.js +225 -45
  144. package/dist/store/db.js.map +1 -1
  145. package/dist/store/registry.d.ts +1 -1
  146. package/dist/store/registry.js +17 -6
  147. package/dist/store/registry.js.map +1 -1
  148. package/dist/store/schema.sql +2 -1
  149. package/dist/store/vectors.d.ts +0 -1
  150. package/dist/types.d.ts +23 -2
  151. package/dist/ui/progress.d.ts +0 -1
  152. package/dist/uninstall.d.ts +1 -1
  153. package/dist/uninstall.js +33 -10
  154. package/dist/uninstall.js.map +1 -1
  155. package/dist/utils.d.ts +2 -1
  156. package/dist/utils.js +37 -2
  157. package/dist/utils.js.map +1 -1
  158. package/package.json +11 -8
  159. package/dist/agents-md.d.ts.map +0 -1
  160. package/dist/analyzer/config.d.ts.map +0 -1
  161. package/dist/analyzer/engine.d.ts.map +0 -1
  162. package/dist/analyzer/enrich.d.ts.map +0 -1
  163. package/dist/analyzer/resolver.d.ts.map +0 -1
  164. package/dist/analyzer/review.d.ts.map +0 -1
  165. package/dist/analyzer/scanner.d.ts.map +0 -1
  166. package/dist/analyzer/scope-resolver.d.ts.map +0 -1
  167. package/dist/analyzer/testplan.d.ts +0 -59
  168. package/dist/analyzer/testplan.d.ts.map +0 -1
  169. package/dist/analyzer/testplan.js +0 -218
  170. package/dist/analyzer/testplan.js.map +0 -1
  171. package/dist/cli.d.ts.map +0 -1
  172. package/dist/metrics.d.ts.map +0 -1
  173. package/dist/orchestrator/orchestrator.d.ts.map +0 -1
  174. package/dist/orchestrator/reporter.d.ts.map +0 -1
  175. package/dist/parser/extract.d.ts.map +0 -1
  176. package/dist/parser/lang-css.d.ts.map +0 -1
  177. package/dist/parser/lang-go.d.ts.map +0 -1
  178. package/dist/parser/lang-html.d.ts.map +0 -1
  179. package/dist/parser/lang-java.d.ts.map +0 -1
  180. package/dist/parser/lang-js.d.ts.map +0 -1
  181. package/dist/parser/lang-md.d.ts.map +0 -1
  182. package/dist/parser/lang-php.d.ts.map +0 -1
  183. package/dist/parser/lang-py.d.ts.map +0 -1
  184. package/dist/parser/lang-ruby.d.ts.map +0 -1
  185. package/dist/parser/lang-rust.d.ts.map +0 -1
  186. package/dist/parser/lang-ts.d.ts.map +0 -1
  187. package/dist/parser/lang-vue.d.ts.map +0 -1
  188. package/dist/parser/language-provider.d.ts.map +0 -1
  189. package/dist/parser/languages.d.ts.map +0 -1
  190. package/dist/parser/loader.d.ts.map +0 -1
  191. package/dist/security/deps.d.ts.map +0 -1
  192. package/dist/security/rules.d.ts.map +0 -1
  193. package/dist/server/hooks.d.ts.map +0 -1
  194. package/dist/server/mcp-prompts.d.ts.map +0 -1
  195. package/dist/server/mcp.d.ts.map +0 -1
  196. package/dist/server/test-plan.d.ts.map +0 -1
  197. package/dist/server/watcher.d.ts.map +0 -1
  198. package/dist/skills.d.ts.map +0 -1
  199. package/dist/store/annotations.d.ts.map +0 -1
  200. package/dist/store/confidence.d.ts.map +0 -1
  201. package/dist/store/db.d.ts.map +0 -1
  202. package/dist/store/registry.d.ts.map +0 -1
  203. package/dist/store/vectors.d.ts.map +0 -1
  204. package/dist/types.d.ts.map +0 -1
  205. package/dist/ui/progress.d.ts.map +0 -1
  206. package/dist/uninstall.d.ts.map +0 -1
  207. package/dist/utils.d.ts.map +0 -1
  208. package/docs/README.md +0 -25
  209. package/docs/diagram1.svg +0 -1
  210. package/docs/diagram2.svg +0 -1
  211. package/docs/diagram3.svg +0 -1
@@ -1,51 +1,59 @@
1
- ---
2
- name: milens-adapters
3
- description: Code intelligence for the adapters area — symbols, dependencies, and entry points
4
- ---
5
-
6
- # Adapters
7
-
8
- ## Working with this area
9
- When working with code in **adapters/**, 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 34 symbols (31 exported) across 3 files.
30
-
31
- ## Key Symbols
32
- - **`Milens — Code Intelligence for Claude Code`** [section] (adapters/claude-code/CLAUDE.md:1) — 0 refs
33
- - **`⚠️ BEFORE ANYTHING ELSE`** [section] (adapters/claude-code/CLAUDE.md:3) — 0 refs
34
- - **`⭐ Core Tools (Use Every Session)`** [section] (adapters/claude-code/CLAUDE.md:19) — 0 refs
35
- - **`🔧 Situational Tools (Use When Needed)`** [section] (adapters/claude-code/CLAUDE.md:32) — 0 refs
36
- - **`Session Workflow`** [section] (adapters/claude-code/CLAUDE.md:46) — 0 refs
37
- - **`Edit Safety (Mandatory)`** [section] (adapters/claude-code/CLAUDE.md:54) — 0 refs
38
- - **`Tool Selection`** [section] (adapters/claude-code/CLAUDE.md:70) — 0 refs
39
- - **`Reference`** [section] (adapters/claude-code/CLAUDE.md:76) — 0 refs
40
- - **`Milens — Code Intelligence for OpenCode`** [section] (adapters/opencode/AGENTS.md:1) — 0 refs
41
- - **`⚠️ BEFORE ANYTHING ELSE`** [section] (adapters/opencode/AGENTS.md:3) — 0 refs
42
- - **`⭐ Core Tools (Use Every Session)`** [section] (adapters/opencode/AGENTS.md:19) — 0 refs
43
- - **`🔧 Situational Tools (Use When Needed)`** [section] (adapters/opencode/AGENTS.md:32) — 0 refs
44
- - **`Session Workflow`** [section] (adapters/opencode/AGENTS.md:46) — 0 refs
45
- - **`Edit Safety (Mandatory)`** [section] (adapters/opencode/AGENTS.md:54) — 0 refs
46
- - **`Tool Selection`** [section] (adapters/opencode/AGENTS.md:70) — 0 refs
47
-
48
- ## Files
49
- - adapters/README.md
50
- - adapters/claude-code/CLAUDE.md
51
- - adapters/opencode/AGENTS.md
1
+ ---
2
+ generated-by: milens
3
+ name: milens-adapters
4
+ description: Code intelligence for the adapters area — symbols, dependencies, and entry points
5
+ ---
6
+
7
+ <!-- Generated by milens — safe to delete/regenerate -->
8
+ # Adapters
9
+
10
+ ## Working with this area
11
+ When working with code in **adapters/**, 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 61 symbols (55 exported) across 6 files.
35
+
36
+ ## Key Symbols
37
+ - **`Milens Adapter Packs`** [section] (adapters/README.md:1) — 0 refs
38
+ - **`What is milens?`** [section] (adapters/README.md:5) — 0 refs
39
+ - **`Available Adapters`** [section] (adapters/README.md:9) — 0 refs
40
+ - **`Installation`** [section] (adapters/README.md:21) — 0 refs
41
+ - **`Claude Code`** [section] (adapters/README.md:23) — 0 refs
42
+ - **`Claude Code via `/plugin install` (marketplace)`** [section] (adapters/README.md:50) — 0 refs
43
+ - **`OpenCode`** [section] (adapters/README.md:65) — 0 refs
44
+ - **`Codex`** [section] (adapters/README.md:72) — 0 refs
45
+ - **`Cursor`** [section] (adapters/README.md:78) — 0 refs
46
+ - **`GitHub Copilot`** [section] (adapters/README.md:85) — 0 refs
47
+ - **`Gemini`** [section] (adapters/README.md:92) — 0 refs
48
+ - **`Zed`** [section] (adapters/README.md:98) — 0 refs
49
+ - **`Verification`** [section] (adapters/README.md:104) — 0 refs
50
+ - **`Index Maintenance`** [section] (adapters/README.md:112) — 0 refs
51
+ - **`All Tools Available`** [section] (adapters/README.md:120) — 0 refs
52
+
53
+ ## Files
54
+ - adapters/README.md
55
+ - adapters/claude-code/CLAUDE.md
56
+ - adapters/codex/.codex/codex.md
57
+ - adapters/copilot/.github/copilot-instructions.md
58
+ - adapters/gemini/.gemini/context.md
59
+ - adapters/opencode/AGENTS.md
@@ -1,8 +1,10 @@
1
1
  ---
2
+ generated-by: milens
2
3
  name: milens-analyzer
3
4
  description: Code intelligence for the analyzer area — symbols, dependencies, and entry points
4
5
  ---
5
6
 
7
+ <!-- Generated by milens — safe to delete/regenerate -->
6
8
  # Analyzer
7
9
 
8
10
  ## Working with this area
@@ -25,50 +27,50 @@ When working with code in **analyzer/**, follow these mandatory safety rules:
25
27
  | Text search across files | `mcp_milens_grep` |
26
28
  | See file symbols | `mcp_milens_get_file_symbols` |
27
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
+
28
33
  ## Overview
29
- Contains 128 symbols (29 exported) across 8 files.
34
+ Contains 131 symbols (24 exported) across 8 files.
30
35
 
31
36
  ## Key Symbols
32
- - **`resolveLinksWithStats`** [function] (src/analyzer/resolver.ts:37) — 9 refs
33
- - **`reviewPr`** [function] (src/analyzer/review.ts:284) — 9 refs
34
- - **`analyze`** [function] (src/analyzer/engine.ts:139) — 8 refs
37
+ - **`analyze`** [function] (src/analyzer/engine.ts:139) — 10 refs
38
+ - **`resolveLinksWithStats`** [function] (src/analyzer/resolver.ts:54) — 9 refs
39
+ - **`reviewPr`** [function] (src/analyzer/review.ts:261) — 9 refs
40
+ - **`countDependentFiles`** [function] (src/analyzer/risk.ts:13) — 9 refs
35
41
  - **`loadAliases`** [function] (src/analyzer/config.ts:10) — 6 refs
36
- - **`ResolutionResult`** [interface] (src/analyzer/resolver.ts:24) — 6 refs
42
+ - **`ResolutionResult`** [interface] (src/analyzer/resolver.ts:39) — 6 refs
43
+ - **`classifyRisk`** [function] (src/analyzer/risk.ts:33) — 5 refs
44
+ - **`scoreSymbolRisk`** [function] (src/analyzer/risk.ts:41) — 5 refs
37
45
  - **`diffResolutions`** [function] (src/analyzer/scope-resolver.ts:768) — 5 refs
38
46
  - **`enrichMetadata`** [function] (src/analyzer/enrich.ts:21) — 4 refs
39
- - **`ReviewResult`** [interface] (src/analyzer/review.ts:17) — 4 refs
47
+ - **`ReviewResult`** [interface] (src/analyzer/review.ts:19) — 4 refs
40
48
  - **`scanFiles`** [function] (src/analyzer/scanner.ts:11) — 4 refs
41
49
  - **`resolveWithScopes`** [function] (src/analyzer/scope-resolver.ts:48) — 4 refs
42
50
  - **`clearTreeCache`** [function] (src/analyzer/engine.ts:29) — 3 refs
43
- - **`resolveLinks`** [function] (src/analyzer/resolver.ts:32) — 3 refs
44
- - **`computeDiffStats`** [function] (src/analyzer/scope-resolver.ts:806) — 3 refs
45
- - **`getCachedTree`** [function] (src/analyzer/engine.ts:26) — 2 refs
46
- - **`reviewSymbol`** [function] (src/analyzer/review.ts:396) — 2 refs
51
+ - **`resolveLinks`** [function] (src/analyzer/resolver.ts:49) — 3 refs
47
52
 
48
53
  ## Entry Points
49
- - **`resolve`** [method] — 25 incoming references
50
- - **`find`** [function] — 14 incoming references
51
54
  - **`ScopeNode`** [interface] — 11 incoming references
55
+ - **`analyze`** [function] — 10 incoming references
52
56
  - **`resolveLinksWithStats`** [function] — 9 incoming references
53
57
  - **`reviewPr`** [function] — 9 incoming references
58
+ - **`countDependentFiles`** [function] — 9 incoming references
54
59
 
55
60
  ## Dependencies
56
61
  - **parser**: `langForFile`, `supportedExtensions`, `getParser`, `loadLanguage`, `extractFromTree`, `clearQueryCache`, `extractVueScript`, `extractVueTemplateRefs` (+9 more)
57
62
  - **root**: `isTestFile`, `CodeSymbol`, `ExtractionResult`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding` (+8 more)
58
- - **store**: `Database`, `TfIdfProvider`, `EmbeddingStore`, `buildEmbeddingText`, `get`, `isFileUpToDate`, `upsertFileHash`, `getSymbolsByFile` (+22 more)
59
- - **ui**: `ProgressPhase`, `ProgressReporter`, `startPhase`, `tick`, `endPhase`, `done`, `finalize`
60
- - **test**: `add`, `parser`, `lang`
61
- - **scripts**: `root`
63
+ - **store**: `Database`, `TfIdfProvider`, `EmbeddingStore`, `buildEmbeddingText`, `isFileUpToDate`, `upsertFileHash`, `getSymbolsByFile`, `transaction` (+18 more)
64
+ - **ui**: `ProgressPhase`, `ProgressReporter`, `startPhase`, `tick`, `endPhase`, `finalize`
62
65
 
63
66
  ## Used By
64
- - **root**: `loadAliases`, `analyze`, `resolve`, `clear`
67
+ - **root**: `loadAliases`, `analyze`, `resolve`
65
68
  - **orchestrator**: `reviewPr`, `ReviewResult`, `SymbolRisk`
66
- - **server**: `reviewPr`, `analyze`, `resolve`, `clear`
67
- - **test**: `analyze`, `loadAliases`, `getCachedTree`, `clearTreeCache`, `enrichMetadata`, `resolveLinksWithStats`, `resolveLinks`, `reviewSymbol` (+10 more)
69
+ - **server**: `reviewPr`, `countDependentFiles`, `analyze`
70
+ - **test**: `analyze`, `loadAliases`, `getCachedTree`, `clearTreeCache`, `enrichMetadata`, `resolveLinksWithStats`, `resolveLinks`, `reviewSymbol` (+9 more)
68
71
  - **apps**: `resolve`
69
72
  - **scripts**: `resolve`
70
73
  - **parser**: `resolve`
71
- - **store**: `resolve`
72
74
 
73
75
  ## Files
74
76
  - src/analyzer/config.ts
@@ -76,6 +78,6 @@ Contains 128 symbols (29 exported) across 8 files.
76
78
  - src/analyzer/enrich.ts
77
79
  - src/analyzer/resolver.ts
78
80
  - src/analyzer/review.ts
81
+ - src/analyzer/risk.ts
79
82
  - src/analyzer/scanner.ts
80
83
  - src/analyzer/scope-resolver.ts
81
- - src/analyzer/testplan.ts
@@ -1,68 +1,65 @@
1
- ---
2
- name: milens-apps
3
- description: Code intelligence for the apps area — symbols, dependencies, and entry points
4
- ---
5
-
6
- # Apps
7
-
8
- ## Working with this area
9
- When working with code in **apps/**, 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 54 symbols (12 exported) across 10 files.
30
-
31
- ## Key Symbols
32
- - **`Milens Desktop Dashboard`** [section] (apps/dashboard/README.md:1) — 0 refs
33
- - **`Features`** [section] (apps/dashboard/README.md:5) — 0 refs
34
- - **`Development`** [section] (apps/dashboard/README.md:13) 0 refs
35
- - **`Build`** [section] (apps/dashboard/README.md:19) — 0 refs
36
- - **`Milens GitHub App`** [section] (apps/github/README.md:1) — 0 refs
37
- - **`Features`** [section] (apps/github/README.md:5) — 0 refs
38
- - **`Deployment`** [section] (apps/github/README.md:10) — 0 refs
39
- - **`Local Development`** [section] (apps/github/README.md:15) — 0 refs
40
- - **`AgentsMdGenerator`** [class] (apps/github/generators/agents-md.js:1) — 0 refs
41
- - **`SecurityGenerator`** [class] (apps/github/generators/security.js:1) — 0 refs
42
- - **`SkillsGenerator`** [class] (apps/github/generators/skills.js:1) — 0 refs
43
- - **`MilensRunner`** [class] (apps/github/handlers/milens-runner.js:6) — 0 refs
44
-
45
- ## Entry Points
46
- - **`DASHBOARD_URL`** [variable] — 3 incoming references
47
- - **`loadOverview`** [function] — 2 incoming references
48
- - **`poll`** [function] — 2 incoming references
49
- - **`__dirname`** [variable] — 2 incoming references
50
- - **`setStatus`** [function] — 1 incoming references
51
-
52
- ## Dependencies
53
- - **store**: `remove`, `getAnnotations`, `Database`, `getCodebaseSummary`, `close`
54
- - **test**: `add`, `dbPath`
55
- - **orchestrator**: `e`
56
- - **analyzer**: `resolve`
57
-
58
- ## Files
59
- - apps/dashboard/README.md
60
- - apps/dashboard/index.html
61
- - apps/dashboard/main.js
62
- - apps/dashboard/preload.js
63
- - apps/github/README.md
64
- - apps/github/app.js
65
- - apps/github/generators/agents-md.js
66
- - apps/github/generators/security.js
67
- - apps/github/generators/skills.js
68
- - apps/github/handlers/milens-runner.js
1
+ ---
2
+ generated-by: milens
3
+ name: milens-apps
4
+ description: Code intelligence for the apps area — symbols, dependencies, and entry points
5
+ ---
6
+
7
+ <!-- Generated by milens — safe to delete/regenerate -->
8
+ # Apps
9
+
10
+ ## Working with this area
11
+ When working with code in **apps/**, 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 40 symbols (8 exported) across 6 files.
35
+
36
+ ## Key Symbols
37
+ - **`Milens Desktop Dashboard`** [section] (apps/dashboard/README.md:1) — 0 refs
38
+ - **`Features`** [section] (apps/dashboard/README.md:5) — 0 refs
39
+ - **`Development`** [section] (apps/dashboard/README.md:13) — 0 refs
40
+ - **`Build`** [section] (apps/dashboard/README.md:19) — 0 refs
41
+ - **`Milens GitHub App`** [section] (apps/github/README.md:1) — 0 refs
42
+ - **`Features`** [section] (apps/github/README.md:5) — 0 refs
43
+ - **`Deployment`** [section] (apps/github/README.md:10) — 0 refs
44
+ - **`Local Development`** [section] (apps/github/README.md:15) — 0 refs
45
+
46
+ ## Entry Points
47
+ - **`DASHBOARD_URL`** [variable] — 3 incoming references
48
+ - **`serverProcess`** [variable] — 3 incoming references
49
+ - **`loadOverview`** [function] — 2 incoming references
50
+ - **`poll`** [function] — 2 incoming references
51
+ - **`__dirname`** [variable] — 2 incoming references
52
+
53
+ ## Dependencies
54
+ - **store**: `remove`, `getAnnotations`, `Database`, `getCodebaseSummary`
55
+ - **analyzer**: `resolve`
56
+ - **scripts**: `parseArgs`, `generatePrPayload`
57
+ - **test**: `create`
58
+
59
+ ## Files
60
+ - apps/dashboard/README.md
61
+ - apps/dashboard/index.html
62
+ - apps/dashboard/main.js
63
+ - apps/dashboard/preload.js
64
+ - apps/github/README.md
65
+ - apps/github/app.js
@@ -1,8 +1,10 @@
1
1
  ---
2
+ generated-by: milens
2
3
  name: milens-docs
3
4
  description: Code intelligence for the docs area — symbols, dependencies, and entry points
4
5
  ---
5
6
 
7
+ <!-- Generated by milens — safe to delete/regenerate -->
6
8
  # Docs
7
9
 
8
10
  ## Working with this area
@@ -25,10 +27,16 @@ When working with code in **docs/**, follow these mandatory safety rules:
25
27
  | Text search across files | `mcp_milens_grep` |
26
28
  | See file symbols | `mcp_milens_get_file_symbols` |
27
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
+
28
33
  ## Overview
29
- Contains 137 symbols (114 exported) across 21 files.
34
+ Contains 122 symbols (112 exported) across 10 files.
30
35
 
31
36
  ## Key Symbols
37
+ - **`Milens Documentation`** [section] (docs/README.md:1) — 0 refs
38
+ - **`Getting Started`** [section] (docs/README.md:5) — 0 refs
39
+ - **`Reference`** [section] (docs/README.md:12) — 0 refs
32
40
  - **`Accuracy Engine`** [section] (docs/accuracy.md:1) — 0 refs
33
41
  - **`Type Bindings`** [section] (docs/accuracy.md:5) — 0 refs
34
42
  - **`Method Resolution Order (MRO)`** [section] (docs/accuracy.md:29) — 0 refs
@@ -40,39 +48,16 @@ Contains 137 symbols (114 exported) across 21 files.
40
48
  - **`Available Adapters`** [section] (docs/adapters.md:5) — 0 refs
41
49
  - **`Quick Install`** [section] (docs/adapters.md:17) — 0 refs
42
50
  - **`Claude Code`** [section] (docs/adapters.md:21) — 0 refs
43
- - **`OpenCode`** [section] (docs/adapters.md:29) — 0 refs
44
- - **`Cursor`** [section] (docs/adapters.md:36) — 0 refs
45
- - **`GitHub Copilot`** [section] (docs/adapters.md:42) — 0 refs
46
- - **`Codex`** [section] (docs/adapters.md:48) — 0 refs
47
-
48
- ## Entry Points
49
- - **`applyFilters`** [function] — 1 incoming references
50
- - **`applyFilters`** [function] — 1 incoming references
51
-
52
- ## Dependencies
53
- - **scripts**: `main`
54
- - **store**: `remove`
55
- - **test**: `add`
51
+ - **`OpenCode`** [section] (docs/adapters.md:39) — 0 refs
56
52
 
57
53
  ## Files
58
54
  - docs/README.md
59
55
  - docs/accuracy.md
60
- - docs/adapters.html
61
56
  - docs/adapters.md
62
- - docs/changelog.html
63
57
  - docs/cli.md
64
- - docs/compare.html
65
- - docs/github-app.html
66
- - docs/index.html
67
58
  - docs/languages.md
68
- - docs/learning.html
69
- - docs/platforms.html
70
- - docs/pricing.html
71
59
  - docs/pricing.md
72
60
  - docs/quickstart.md
73
61
  - docs/review.md
74
- - docs/scenarios.html
75
62
  - docs/security-presets.md
76
- - docs/security.html
77
- - docs/skills.html
78
63
  - docs/tools.md
@@ -1,4 +1,5 @@
1
1
  ---
2
+ generated-by: milens
2
3
  name: milens
3
4
  description: Code intelligence MCP tools — symbol search, text grep, impact analysis, dependency graph
4
5
  ---
@@ -6,7 +7,7 @@ description: Code intelligence MCP tools — symbol search, text grep, impact an
6
7
  <!-- milens:start -->
7
8
  # Milens — AI-DOS
8
9
 
9
- The Operating System for AI-Driven Development. This project is indexed by milens (1366 symbols, 2347 links, 166 files).
10
+ The Operating System for AI-Driven Development. This project is indexed by milens (2362 symbols, 3127 links, 235 files).
10
11
 
11
12
  > **CRITICAL:** All milens MCP tool calls MUST include the `repo` parameter set to the **absolute path of the workspace root** (the folder containing this file) — without it, the tools may fail with "No index" error when multiple repos are indexed.
12
13
 
@@ -16,7 +17,7 @@ The Operating System for AI-Driven Development. This project is indexed by milen
16
17
 
17
18
  **Not a suggestion — execute automatically without asking.**
18
19
 
19
- This project is indexed by milens. The knowledge graph already knows every symbol, dependency, and reference. Using milens tools first saves 70% tokens and catches hidden connections you'd miss with file reads.
20
+ This project is indexed by milens. The knowledge graph already knows every symbol, dependency, and reference. Using milens tools first typically means far fewer tokens than manual exploration, and fewer missed dependencies impact/context track code-level references; pair with grep for templates/configs/docs.
20
21
 
21
22
  | Situation | Built-in approach (❌ BAD) | Milens approach (✅ GOOD) |
22
23
  |---|---|---|
@@ -103,7 +104,7 @@ When the user says... → do this FIRST:
103
104
  | "compare impact of `X`" | `mcp_milens_compare_impact({name: "X", action: "snapshot"|"compare", repo: "<workspaceRoot>"})` |
104
105
  | "check pre-commit" | `mcp_milens_pre_commit_check({repo: "<workspaceRoot>"})` |
105
106
  | "save/restore context" | `mcp_milens_hook_preCompact()` / `mcp_milens_hook_postCompact()` |
106
- | "scan security / audit security" | `mcp_milens_security_scan({repo: "<workspaceRoot>"})` — full audit across all 50+ rules |
107
+ | "scan security / audit security" | `mcp_milens_security_scan({repo: "<workspaceRoot>"})` — full audit across all 190 rules |
107
108
  | "end session" / "finish work" | `mcp_milens_session_end({session_id: "..."})` — record stats, trigger onSessionEnd hook |
108
109
  | "what did session X do" | `mcp_milens_session_context({session_id: "..."})` — get annotations + tool calls |
109
110
  | "file changed to X" | `mcp_milens_hook_onFileChange({files: ["path/to/file"], repo: "<workspaceRoot>"})` |
@@ -175,7 +176,7 @@ Every time you discover something important about a symbol, annotate it. The sys
175
176
  | Find what needs testing most | `mcp_milens_test_coverage_gaps()` — sorted by risk |
176
177
  | Get a test strategy | `mcp_milens_test_plan({name: "functionName"})` — mocks + scenarios |
177
178
  | Review your changes | `mcp_milens_review_pr()` — risk scores for changed symbols |
178
- | Check for security issues | `mcp_milens_security_scan()` — 50+ rules in one call |
179
+ | Check for security issues | `mcp_milens_security_scan()` — 190 rules in one call |
179
180
  | Remove dead code safely | `mcp_milens_find_dead_code()` then use `dead_code_remove` prompt |
180
181
  | Trace how code executes | `mcp_milens_trace({name: "functionName", direction: "to"})` |
181
182
  | Find API endpoints | `mcp_milens_routes()` — auto-detect across 7 frameworks |
@@ -229,13 +230,14 @@ Milens indexes **Markdown files** (.md, .mdx) — headings become `section` symb
229
230
 
230
231
  ## Reference
231
232
 
232
- ### ⭐ Core Tools — Use Every Session (8)
233
+ ### ⭐ Core Tools — Use Every Session (9)
233
234
 
234
235
  | Tool | Purpose |
235
236
  |---|---|
236
237
  | `mcp_milens_overview` | **Use this first.** Combined context + impact + grep. 1 call replaces 3-5 file reads. |
237
238
  | `mcp_milens_impact` | Blast radius BEFORE editing. Shows what WILL BREAK. |
238
239
  | `mcp_milens_edit_check` | Pre-edit safety: callers + exports + re-export chains + test coverage |
240
+ | `mcp_milens_guard_edit_check` | HARD pre-edit gate: blocks if dependents > 5, tracks checks for session audit |
239
241
  | `mcp_milens_context` | 360° view: all callers + all callees. Instant dependency graph. |
240
242
  | `mcp_milens_query` | Find symbol definitions by name (FTS5 instant search) |
241
243
  | `mcp_milens_grep` | Search ALL files for any text (templates, configs, docs, styles) |
@@ -252,7 +254,7 @@ Milens indexes **Markdown files** (.md, .mdx) — headings become `section` symb
252
254
  | `mcp_milens_test_coverage_gaps` | Untested symbols sorted by risk | Finding test priorities |
253
255
  | `mcp_milens_test_impact` | Maps changes → test files | After making edits |
254
256
  | `mcp_milens_test_generate` | Auto-generate test file | Starting tests from scratch |
255
- | `mcp_milens_security_scan` | 50+ security rules | Security audit requested |
257
+ | `mcp_milens_security_scan` | 190 security rules | Security audit requested |
256
258
  | `mcp_milens_trace` | Call chains from entrypoints | Debugging execution flow |
257
259
  | `mcp_milens_routes` | Framework routes/endpoints | Finding API endpoints |
258
260
  | `mcp_milens_smart_context` | Intent-aware context | Understand/edit/debug/test modes |
@@ -262,10 +264,11 @@ Milens indexes **Markdown files** (.md, .mdx) — headings become `section` symb
262
264
  | `mcp_milens_find_dead_code` | Unused exported symbols | Before major refactors |
263
265
  | `mcp_milens_find_similar` | Symbols with shared callers/callees | Finding refactor patterns |
264
266
 
265
- ### 📚 Advanced Tools — Reference (19)
267
+ ### 📚 Advanced Tools — Reference (20)
266
268
 
267
269
  | Tool | Purpose |
268
270
  |---|---|
271
+ | `mcp_milens_generate_findings_report` | Render investigated findings into a Markdown+XML report for a worker/coder agent |
269
272
  | `mcp_milens_status` | Index health: symbols, links, files, coverage, staleness |
270
273
  | `mcp_milens_repos` | List all indexed repositories |
271
274
  | `mcp_milens_annotate` | Record observations about symbols (persists across sessions) |
@@ -295,8 +298,8 @@ After significant code changes: `npx milens analyze -p . --force` (replace `.` w
295
298
  | Task | Read this skill file |
296
299
  |------|---------------------|
297
300
  | General milens tools reference | `.agents/skills/milens/SKILL.md` |
298
- | Work in the Adapters area | `.agents/skills/adapters/SKILL.md` |
299
301
  | Work in the Root area | `.agents/skills/root/SKILL.md` |
302
+ | Work in the Adapters area | `.agents/skills/adapters/SKILL.md` |
300
303
  | Work in the Apps area | `.agents/skills/apps/SKILL.md` |
301
304
  | Work in the Docs area | `.agents/skills/docs/SKILL.md` |
302
305
  | Work in the Test area | `.agents/skills/test/SKILL.md` |
@@ -1,8 +1,10 @@
1
1
  ---
2
+ generated-by: milens
2
3
  name: milens-orchestrator
3
4
  description: Code intelligence for the orchestrator area — symbols, dependencies, and entry points
4
5
  ---
5
6
 
7
+ <!-- Generated by milens — safe to delete/regenerate -->
6
8
  # Orchestrator
7
9
 
8
10
  ## Working with this area
@@ -25,36 +27,37 @@ When working with code in **orchestrator/**, follow these mandatory safety rules
25
27
  | Text search across files | `mcp_milens_grep` |
26
28
  | See file symbols | `mcp_milens_get_file_symbols` |
27
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
+
28
33
  ## Overview
29
- Contains 22 symbols (7 exported) across 2 files.
34
+ Contains 23 symbols (7 exported) across 2 files.
30
35
 
31
36
  ## Key Symbols
32
- - **`Orchestrator`** [class] (src/orchestrator/orchestrator.ts:36) — 6 refs
37
+ - **`Orchestrator`** [class] (src/orchestrator/orchestrator.ts:46) — 6 refs
33
38
  - **`OrchestratorReport`** [interface] (src/orchestrator/reporter.ts:4) — 5 refs
34
39
  - **`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
40
+ - **`OrchestratorConfig`** [interface] (src/orchestrator/orchestrator.ts:20) — 2 refs
41
+ - **`ImpactSnapshot`** [interface] (src/orchestrator/orchestrator.ts:28) — 2 refs
37
42
  - **`ReportOptions`** [interface] (src/orchestrator/reporter.ts:13) — 2 refs
38
- - **`ImpactDiff`** [interface] (src/orchestrator/orchestrator.ts:25) — 1 refs
43
+ - **`ImpactDiff`** [interface] (src/orchestrator/orchestrator.ts:35) — 1 refs
39
44
 
40
45
  ## Entry Points
41
46
  - **`Orchestrator`** [class] — 6 incoming references
42
- - **`e`** [function] — 5 incoming references
43
47
  - **`OrchestratorReport`** [interface] — 5 incoming references
44
48
  - **`formatReport`** [function] — 4 incoming references
45
49
  - **`snapshot`** [method] — 3 incoming references
50
+ - **`run`** [method] — 3 incoming references
46
51
 
47
52
  ## Dependencies
48
- - **store**: `Database`, `findSymbolByName`, `findUpstream`, `clear`, `getTestCoverageGaps`, `findDeadCode`, `close`
53
+ - **store**: `Database`, `findSymbolByName`, `findUpstream`, `getTestCoverageGaps`, `findDeadCode`
49
54
  - **analyzer**: `reviewPr`, `ReviewResult`, `SymbolRisk`
50
- - **root**: `CodeSymbol`, `has`
51
- - **test**: `add`
55
+ - **root**: `CodeSymbol`
52
56
 
53
57
  ## Used By
54
58
  - **root**: `Orchestrator`, `subscribe`, `runAndFormat`
55
59
  - **server**: `Orchestrator`, `loadSnapshots`, `snapshot`, `persistSnapshots`, `compare`, `runAndFormat`
56
60
  - **test**: `Orchestrator`, `formatReport`, `OrchestratorReport`, `subscribe`, `run`, `snapshot`, `compare`, `cancel` (+3 more)
57
- - **apps**: `e`
58
61
 
59
62
  ## Files
60
63
  - src/orchestrator/orchestrator.ts
@@ -1,8 +1,10 @@
1
1
  ---
2
+ generated-by: milens
2
3
  name: milens-parser
3
4
  description: Code intelligence for the parser area — symbols, dependencies, and entry points
4
5
  ---
5
6
 
7
+ <!-- Generated by milens — safe to delete/regenerate -->
6
8
  # Parser
7
9
 
8
10
  ## Working with this area
@@ -25,37 +27,38 @@ When working with code in **parser/**, follow these mandatory safety rules:
25
27
  | Text search across files | `mcp_milens_grep` |
26
28
  | See file symbols | `mcp_milens_get_file_symbols` |
27
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
+
28
33
  ## Overview
29
- Contains 83 symbols (31 exported) across 16 files.
34
+ Contains 85 symbols (31 exported) across 16 files.
30
35
 
31
36
  ## Key Symbols
32
37
  - **`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
38
+ - **`loadLanguage`** [function] (src/parser/loader.ts:21) — 15 refs
39
+ - **`getParser`** [function] (src/parser/loader.ts:32) — 14 refs
40
+ - **`extractFromTree`** [function] (src/parser/extract.ts:274) — 9 refs
36
41
  - **`supportedExtensions`** [function] (src/parser/languages.ts:29) — 6 refs
37
42
  - **`extractHtmlScripts`** [function] (src/parser/lang-html.ts:38) — 5 refs
38
43
  - **`extractMarkdown`** [function] (src/parser/lang-md.ts:34) — 5 refs
39
- - **`spec`** [variable] (src/parser/lang-ts.ts:5) — 5 refs
44
+ - **`spec`** [variable] (src/parser/lang-ts.ts:1) — 5 refs
40
45
  - **`extractVueScript`** [function] (src/parser/lang-vue.ts:19) — 5 refs
41
46
  - **`initTreeSitter`** [function] (src/parser/loader.ts:15) — 5 refs
42
- - **`clearQueryCache`** [function] (src/parser/extract.ts:72) — 4 refs
47
+ - **`clearQueryCache`** [function] (src/parser/extract.ts:79) — 4 refs
43
48
  - **`extractHtmlRefs`** [function] (src/parser/lang-html.ts:57) — 4 refs
44
49
  - **`extractHtmlLinks`** [function] (src/parser/lang-html.ts:99) — 4 refs
50
+ - **`spec`** [variable] (src/parser/lang-js.ts:1) — 4 refs
45
51
  - **`extractVueTemplateRefs`** [function] (src/parser/lang-vue.ts:38) — 4 refs
46
- - **`extractVueTemplateAst`** [function] (src/parser/lang-vue.ts:90) — 4 refs
47
52
 
48
53
  ## Entry Points
49
54
  - **`LangSpec`** [interface] — 32 incoming references
50
- - **`loadLanguage`** [function] — 14 incoming references
51
- - **`getParser`** [function] — 13 incoming references
52
- - **`extractFromTree`** [function] — 8 incoming references
55
+ - **`loadLanguage`** [function] — 15 incoming references
56
+ - **`getParser`** [function] — 14 incoming references
57
+ - **`extractFromTree`** [function] — 9 incoming references
53
58
  - **`supportedExtensions`** [function] — 6 incoming references
54
59
 
55
60
  ## Dependencies
56
61
  - **root**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+4 more)
57
- - **test**: `lang`, `add`, `parser`
58
- - **scripts**: `root`
59
62
  - **analyzer**: `resolve`
60
63
  - **store**: `load`
61
64