milens 0.7.1 → 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.
- package/.agents/skills/adapters/SKILL.md +16 -11
- package/.agents/skills/analyzer/SKILL.md +11 -6
- package/.agents/skills/apps/SKILL.md +6 -1
- package/.agents/skills/docs/SKILL.md +6 -1
- package/.agents/skills/milens/SKILL.md +6 -3
- package/.agents/skills/orchestrator/SKILL.md +5 -0
- package/.agents/skills/parser/SKILL.md +11 -6
- package/.agents/skills/root/SKILL.md +21 -16
- package/.agents/skills/scripts/SKILL.md +9 -4
- package/.agents/skills/security/SKILL.md +10 -5
- package/.agents/skills/server/SKILL.md +18 -11
- package/.agents/skills/store/SKILL.md +10 -5
- package/.agents/skills/test/SKILL.md +15 -8
- package/.agents/skills/ui/SKILL.md +5 -0
- package/adapters/claude-code/.claude-plugin/plugin.json +1 -1
- package/adapters/claude-code/CLAUDE.md +2 -0
- package/adapters/claude-code/hooks/hooks.json +27 -0
- package/dist/agents-md.d.ts +1 -0
- package/dist/agents-md.js +45 -1
- package/dist/agents-md.js.map +1 -1
- package/dist/analyzer/config.js +32 -0
- package/dist/analyzer/config.js.map +1 -1
- package/dist/analyzer/engine.js +26 -2
- package/dist/analyzer/engine.js.map +1 -1
- package/dist/analyzer/enrich.js +68 -1
- package/dist/analyzer/enrich.js.map +1 -1
- package/dist/analyzer/resolver.d.ts +4 -1
- package/dist/analyzer/resolver.js +241 -38
- package/dist/analyzer/resolver.js.map +1 -1
- package/dist/analyzer/review.js +32 -2
- package/dist/analyzer/review.js.map +1 -1
- package/dist/analyzer/scanner.js +3 -0
- package/dist/analyzer/scanner.js.map +1 -1
- package/dist/analyzer/scope-resolver.js +1 -1
- package/dist/analyzer/scope-resolver.js.map +1 -1
- package/dist/build-info.d.ts +2 -2
- package/dist/build-info.js +2 -2
- package/dist/cli.js +84 -15
- package/dist/cli.js.map +1 -1
- package/dist/orchestrator/orchestrator.d.ts +1 -1
- package/dist/orchestrator/orchestrator.js +14 -6
- package/dist/orchestrator/orchestrator.js.map +1 -1
- package/dist/parser/extract.d.ts +7 -0
- package/dist/parser/extract.js +23 -1
- package/dist/parser/extract.js.map +1 -1
- package/dist/parser/lang-css.js +12 -0
- package/dist/parser/lang-css.js.map +1 -1
- package/dist/parser/lang-js.js +15 -4
- package/dist/parser/lang-js.js.map +1 -1
- package/dist/parser/lang-md.js +1 -0
- package/dist/parser/lang-md.js.map +1 -1
- package/dist/parser/lang-ts.js +40 -6
- package/dist/parser/lang-ts.js.map +1 -1
- package/dist/parser/lang-vue.js +0 -21
- package/dist/parser/lang-vue.js.map +1 -1
- package/dist/security/rules.js +22 -23
- package/dist/security/rules.js.map +1 -1
- package/dist/server/guard-hook.d.ts +10 -0
- package/dist/server/guard-hook.js +179 -0
- package/dist/server/guard-hook.js.map +1 -0
- package/dist/server/hooks.js +2 -1
- package/dist/server/hooks.js.map +1 -1
- package/dist/server/mcp.js +172 -30
- package/dist/server/mcp.js.map +1 -1
- package/dist/server/test-plan.d.ts +1 -0
- package/dist/server/test-plan.js +25 -7
- package/dist/server/test-plan.js.map +1 -1
- package/dist/server/tools/findings-report.d.ts +3 -0
- package/dist/server/tools/findings-report.js +170 -0
- package/dist/server/tools/findings-report.js.map +1 -0
- package/dist/server/tools/security.js +61 -5
- package/dist/server/tools/security.js.map +1 -1
- package/dist/server/tools/session.js +37 -17
- package/dist/server/tools/session.js.map +1 -1
- package/dist/server/tools/testing.js +58 -11
- package/dist/server/tools/testing.js.map +1 -1
- package/dist/skills.js +15 -9
- package/dist/skills.js.map +1 -1
- package/dist/store/annotations.d.ts +5 -0
- package/dist/store/annotations.js +45 -9
- package/dist/store/annotations.js.map +1 -1
- package/dist/store/db.d.ts +13 -0
- package/dist/store/db.js +146 -33
- package/dist/store/db.js.map +1 -1
- package/dist/store/registry.d.ts +1 -0
- package/dist/store/registry.js +17 -6
- package/dist/store/registry.js.map +1 -1
- package/dist/store/schema.sql +2 -1
- package/dist/types.d.ts +16 -1
- package/dist/uninstall.d.ts +1 -0
- package/dist/uninstall.js +33 -10
- package/dist/uninstall.js.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +0 -0
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
+
generated-by: milens
|
|
2
3
|
name: milens-adapters
|
|
3
4
|
description: Code intelligence for the adapters area — symbols, dependencies, and entry points
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- Generated by milens — safe to delete/regenerate -->
|
|
6
8
|
# Adapters
|
|
7
9
|
|
|
8
10
|
## Working with this area
|
|
@@ -25,8 +27,11 @@ When working with code in **adapters/**, 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
|
|
34
|
+
Contains 61 symbols (55 exported) across 6 files.
|
|
30
35
|
|
|
31
36
|
## Key Symbols
|
|
32
37
|
- **`Milens Adapter Packs`** [section] (adapters/README.md:1) — 0 refs
|
|
@@ -34,16 +39,16 @@ Contains 60 symbols (54 exported) across 6 files.
|
|
|
34
39
|
- **`Available Adapters`** [section] (adapters/README.md:9) — 0 refs
|
|
35
40
|
- **`Installation`** [section] (adapters/README.md:21) — 0 refs
|
|
36
41
|
- **`Claude Code`** [section] (adapters/README.md:23) — 0 refs
|
|
37
|
-
- **`
|
|
38
|
-
- **`
|
|
39
|
-
- **`
|
|
40
|
-
- **`
|
|
41
|
-
- **`
|
|
42
|
-
- **`
|
|
43
|
-
- **`
|
|
44
|
-
- **`
|
|
45
|
-
- **`
|
|
46
|
-
- **`
|
|
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
|
|
47
52
|
|
|
48
53
|
## Files
|
|
49
54
|
- adapters/README.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,16 +27,19 @@ 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
|
|
34
|
+
Contains 131 symbols (24 exported) across 8 files.
|
|
30
35
|
|
|
31
36
|
## Key Symbols
|
|
32
37
|
- **`analyze`** [function] (src/analyzer/engine.ts:139) — 10 refs
|
|
33
|
-
- **`resolveLinksWithStats`** [function] (src/analyzer/resolver.ts:
|
|
34
|
-
- **`reviewPr`** [function] (src/analyzer/review.ts:
|
|
38
|
+
- **`resolveLinksWithStats`** [function] (src/analyzer/resolver.ts:54) — 9 refs
|
|
39
|
+
- **`reviewPr`** [function] (src/analyzer/review.ts:261) — 9 refs
|
|
35
40
|
- **`countDependentFiles`** [function] (src/analyzer/risk.ts:13) — 9 refs
|
|
36
41
|
- **`loadAliases`** [function] (src/analyzer/config.ts:10) — 6 refs
|
|
37
|
-
- **`ResolutionResult`** [interface] (src/analyzer/resolver.ts:
|
|
42
|
+
- **`ResolutionResult`** [interface] (src/analyzer/resolver.ts:39) — 6 refs
|
|
38
43
|
- **`classifyRisk`** [function] (src/analyzer/risk.ts:33) — 5 refs
|
|
39
44
|
- **`scoreSymbolRisk`** [function] (src/analyzer/risk.ts:41) — 5 refs
|
|
40
45
|
- **`diffResolutions`** [function] (src/analyzer/scope-resolver.ts:768) — 5 refs
|
|
@@ -43,7 +48,7 @@ Contains 119 symbols (24 exported) across 8 files.
|
|
|
43
48
|
- **`scanFiles`** [function] (src/analyzer/scanner.ts:11) — 4 refs
|
|
44
49
|
- **`resolveWithScopes`** [function] (src/analyzer/scope-resolver.ts:48) — 4 refs
|
|
45
50
|
- **`clearTreeCache`** [function] (src/analyzer/engine.ts:29) — 3 refs
|
|
46
|
-
- **`resolveLinks`** [function] (src/analyzer/resolver.ts:
|
|
51
|
+
- **`resolveLinks`** [function] (src/analyzer/resolver.ts:49) — 3 refs
|
|
47
52
|
|
|
48
53
|
## Entry Points
|
|
49
54
|
- **`ScopeNode`** [interface] — 11 incoming references
|
|
@@ -54,7 +59,7 @@ Contains 119 symbols (24 exported) across 8 files.
|
|
|
54
59
|
|
|
55
60
|
## Dependencies
|
|
56
61
|
- **parser**: `langForFile`, `supportedExtensions`, `getParser`, `loadLanguage`, `extractFromTree`, `clearQueryCache`, `extractVueScript`, `extractVueTemplateRefs` (+9 more)
|
|
57
|
-
- **root**: `isTestFile`, `CodeSymbol`, `ExtractionResult`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding` (+
|
|
62
|
+
- **root**: `isTestFile`, `CodeSymbol`, `ExtractionResult`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding` (+8 more)
|
|
58
63
|
- **store**: `Database`, `TfIdfProvider`, `EmbeddingStore`, `buildEmbeddingText`, `isFileUpToDate`, `upsertFileHash`, `getSymbolsByFile`, `transaction` (+18 more)
|
|
59
64
|
- **ui**: `ProgressPhase`, `ProgressReporter`, `startPhase`, `tick`, `endPhase`, `finalize`
|
|
60
65
|
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
+
generated-by: milens
|
|
2
3
|
name: milens-apps
|
|
3
4
|
description: Code intelligence for the apps area — symbols, dependencies, and entry points
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- Generated by milens — safe to delete/regenerate -->
|
|
6
8
|
# Apps
|
|
7
9
|
|
|
8
10
|
## Working with this area
|
|
@@ -25,6 +27,9 @@ When working with code in **apps/**, 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
34
|
Contains 40 symbols (8 exported) across 6 files.
|
|
30
35
|
|
|
@@ -40,10 +45,10 @@ Contains 40 symbols (8 exported) across 6 files.
|
|
|
40
45
|
|
|
41
46
|
## Entry Points
|
|
42
47
|
- **`DASHBOARD_URL`** [variable] — 3 incoming references
|
|
48
|
+
- **`serverProcess`** [variable] — 3 incoming references
|
|
43
49
|
- **`loadOverview`** [function] — 2 incoming references
|
|
44
50
|
- **`poll`** [function] — 2 incoming references
|
|
45
51
|
- **`__dirname`** [variable] — 2 incoming references
|
|
46
|
-
- **`setStatus`** [function] — 1 incoming references
|
|
47
52
|
|
|
48
53
|
## Dependencies
|
|
49
54
|
- **store**: `remove`, `getAnnotations`, `Database`, `getCodebaseSummary`
|
|
@@ -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,6 +27,9 @@ 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
34
|
Contains 122 symbols (112 exported) across 10 files.
|
|
30
35
|
|
|
@@ -43,7 +48,7 @@ Contains 122 symbols (112 exported) across 10 files.
|
|
|
43
48
|
- **`Available Adapters`** [section] (docs/adapters.md:5) — 0 refs
|
|
44
49
|
- **`Quick Install`** [section] (docs/adapters.md:17) — 0 refs
|
|
45
50
|
- **`Claude Code`** [section] (docs/adapters.md:21) — 0 refs
|
|
46
|
-
- **`OpenCode`** [section] (docs/adapters.md:
|
|
51
|
+
- **`OpenCode`** [section] (docs/adapters.md:39) — 0 refs
|
|
47
52
|
|
|
48
53
|
## Files
|
|
49
54
|
- docs/README.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 (
|
|
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
|
|
|
@@ -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 (
|
|
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) |
|
|
@@ -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 (
|
|
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) |
|
|
@@ -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,6 +27,9 @@ 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
34
|
Contains 23 symbols (7 exported) across 2 files.
|
|
30
35
|
|
|
@@ -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,24 +27,27 @@ 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
|
|
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
38
|
- **`loadLanguage`** [function] (src/parser/loader.ts:21) — 15 refs
|
|
34
39
|
- **`getParser`** [function] (src/parser/loader.ts:32) — 14 refs
|
|
35
|
-
- **`extractFromTree`** [function] (src/parser/extract.ts:
|
|
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:
|
|
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:
|
|
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
|
|
45
|
-
- **`spec`** [variable] (src/parser/lang-js.ts:
|
|
50
|
+
- **`spec`** [variable] (src/parser/lang-js.ts:1) — 4 refs
|
|
46
51
|
- **`extractVueTemplateRefs`** [function] (src/parser/lang-vue.ts:38) — 4 refs
|
|
47
52
|
|
|
48
53
|
## Entry Points
|
|
@@ -53,7 +58,7 @@ Contains 82 symbols (31 exported) across 16 files.
|
|
|
53
58
|
- **`supportedExtensions`** [function] — 6 incoming references
|
|
54
59
|
|
|
55
60
|
## Dependencies
|
|
56
|
-
- **root**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+
|
|
61
|
+
- **root**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+4 more)
|
|
57
62
|
- **analyzer**: `resolve`
|
|
58
63
|
- **store**: `load`
|
|
59
64
|
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
+
generated-by: milens
|
|
2
3
|
name: milens-root
|
|
3
4
|
description: Code intelligence for the root area — symbols, dependencies, and entry points
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- Generated by milens — safe to delete/regenerate -->
|
|
6
8
|
# Root
|
|
7
9
|
|
|
8
10
|
## Working with this area
|
|
@@ -25,30 +27,33 @@ When working with code in **root/**, 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
|
|
34
|
+
Contains 238 symbols (157 exported) across 12 files.
|
|
30
35
|
|
|
31
36
|
## Key Symbols
|
|
32
|
-
- **`CodeSymbol`** [interface] (src/types.ts:8) —
|
|
37
|
+
- **`CodeSymbol`** [interface] (src/types.ts:8) — 52 refs
|
|
33
38
|
- **`SymbolLink`** [interface] (src/types.ts:26) — 22 refs
|
|
34
|
-
- **`RawCall`** [interface] (src/types.ts:45) —
|
|
35
|
-
- **`isTestFile`** [function] (src/utils.ts:
|
|
39
|
+
- **`RawCall`** [interface] (src/types.ts:45) — 18 refs
|
|
40
|
+
- **`isTestFile`** [function] (src/utils.ts:4) — 10 refs
|
|
36
41
|
- **`RawImport`** [interface] (src/types.ts:35) — 9 refs
|
|
37
42
|
- **`RawHeritage`** [interface] (src/types.ts:59) — 7 refs
|
|
38
43
|
- **`ExtractionResult`** [interface] (src/types.ts:67) — 6 refs
|
|
39
|
-
- **`RawTypeBinding`** [interface] (src/types.ts:
|
|
40
|
-
- **`RawAssignmentBinding`** [interface] (src/types.ts:
|
|
41
|
-
- **`globToRegex`** [function] (src/utils.ts:
|
|
42
|
-
- **`RawReturnType`** [interface] (src/types.ts:
|
|
43
|
-
- **`RawCallResultBinding`** [interface] (src/types.ts:
|
|
44
|
-
- **`AnalysisStats`** [interface] (src/types.ts:
|
|
44
|
+
- **`RawTypeBinding`** [interface] (src/types.ts:88) — 6 refs
|
|
45
|
+
- **`RawAssignmentBinding`** [interface] (src/types.ts:96) — 6 refs
|
|
46
|
+
- **`globToRegex`** [function] (src/utils.ts:16) — 6 refs
|
|
47
|
+
- **`RawReturnType`** [interface] (src/types.ts:104) — 5 refs
|
|
48
|
+
- **`RawCallResultBinding`** [interface] (src/types.ts:112) — 5 refs
|
|
49
|
+
- **`AnalysisStats`** [interface] (src/types.ts:135) — 5 refs
|
|
45
50
|
- **`generateAgentsMd`** [function] (src/agents-md.ts:93) — 4 refs
|
|
46
51
|
- **`computeMetrics`** [function] (src/metrics.ts:21) — 4 refs
|
|
47
52
|
|
|
48
53
|
## Entry Points
|
|
49
|
-
- **`CodeSymbol`** [interface] —
|
|
54
|
+
- **`CodeSymbol`** [interface] — 52 incoming references
|
|
50
55
|
- **`SymbolLink`** [interface] — 22 incoming references
|
|
51
|
-
- **`RawCall`** [interface] —
|
|
56
|
+
- **`RawCall`** [interface] — 18 incoming references
|
|
52
57
|
- **`isTestFile`** [function] — 10 incoming references
|
|
53
58
|
- **`RawImport`** [interface] — 9 incoming references
|
|
54
59
|
|
|
@@ -56,18 +61,18 @@ Contains 236 symbols (156 exported) across 12 files.
|
|
|
56
61
|
- **store**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `findDbPath` (+22 more)
|
|
57
62
|
- **analyzer**: `loadAliases`, `analyze`, `resolve`
|
|
58
63
|
- **ui**: `createProgressReporter`, `finalize`
|
|
59
|
-
- **server**: `startHttp`, `startStdio`, `HookManager`, `defaultOnSessionStart`, `defaultOnSessionEnd`, `defaultOnPreCompact`, `defaultOnPostCompact`, `
|
|
64
|
+
- **server**: `startHttp`, `startStdio`, `HookManager`, `defaultOnSessionStart`, `defaultOnSessionEnd`, `defaultOnPreCompact`, `defaultOnPostCompact`, `handleMarkChecked` (+6 more)
|
|
60
65
|
- **security**: `loadRules`, `auditDependencies`
|
|
61
66
|
- **orchestrator**: `Orchestrator`, `subscribe`, `runAndFormat`
|
|
62
67
|
|
|
63
68
|
## Used By
|
|
64
|
-
- **analyzer**: `isTestFile`, `CodeSymbol`, `ExtractionResult`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding` (+
|
|
69
|
+
- **analyzer**: `isTestFile`, `CodeSymbol`, `ExtractionResult`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding` (+8 more)
|
|
65
70
|
- **orchestrator**: `CodeSymbol`
|
|
66
|
-
- **parser**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+
|
|
71
|
+
- **parser**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+4 more)
|
|
67
72
|
- **server**: `generateCrossRefSection`, `globToRegex`
|
|
68
73
|
- **store**: `Annotation`, `AnnotationKey`, `Session`, `EvolutionEvent`, `CodeSymbol`, `SymbolLink`, `RepoEntry`
|
|
69
74
|
- **ui**: `AnalysisStats`
|
|
70
|
-
- **test**: `generateAgentsMd`, `AnnotationKey`, `CodeSymbol`, `SymbolLink`, `computeMetrics`, `formatMetricsReport`, `MilensMetrics`, `RawImport` (+
|
|
75
|
+
- **test**: `generateAgentsMd`, `AnnotationKey`, `CodeSymbol`, `SymbolLink`, `computeMetrics`, `formatMetricsReport`, `MilensMetrics`, `RawImport` (+18 more)
|
|
71
76
|
|
|
72
77
|
## Files
|
|
73
78
|
- AGENTS.md
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
+
generated-by: milens
|
|
2
3
|
name: milens-scripts
|
|
3
4
|
description: Code intelligence for the scripts area — symbols, dependencies, and entry points
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- Generated by milens — safe to delete/regenerate -->
|
|
6
8
|
# Scripts
|
|
7
9
|
|
|
8
10
|
## Working with this area
|
|
@@ -25,22 +27,24 @@ When working with code in **scripts/**, 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
|
|
34
|
+
Contains 80 symbols (0 exported) across 7 files.
|
|
30
35
|
|
|
31
36
|
## Entry Points
|
|
32
37
|
- **`ghApi`** [function] — 4 incoming references
|
|
33
|
-
- **`detectBreakingFromLabels`** [function] — 4 incoming references
|
|
34
38
|
- **`exec`** [function] — 3 incoming references
|
|
35
39
|
- **`branch`** [variable] — 3 incoming references
|
|
36
|
-
- **`
|
|
40
|
+
- **`detectBreakingFromLabels`** [function] — 3 incoming references
|
|
41
|
+
- **`fail`** [function] — 3 incoming references
|
|
37
42
|
|
|
38
43
|
## Dependencies
|
|
39
44
|
- **analyzer**: `resolve`
|
|
40
45
|
|
|
41
46
|
## Used By
|
|
42
47
|
- **apps**: `parseArgs`, `generatePrPayload`
|
|
43
|
-
- **test**: `detectTypeFromBranch`, `detectScopeFromBranch`, `detectBreakingFromBranch`, `detectBreakingFromLabels`, `slugify`, `parseArgs`, `generateTitle`, `generateBody` (+1 more)
|
|
44
48
|
|
|
45
49
|
## Files
|
|
46
50
|
- scripts/build-standalone.mjs
|
|
@@ -49,3 +53,4 @@ Contains 77 symbols (0 exported) across 6 files.
|
|
|
49
53
|
- scripts/gen-build-info.mjs
|
|
50
54
|
- scripts/pr-generator.cjs
|
|
51
55
|
- scripts/smoke-test.mjs
|
|
56
|
+
- scripts/sync-version.mjs
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
+
generated-by: milens
|
|
2
3
|
name: milens-security
|
|
3
4
|
description: Code intelligence for the security area — symbols, dependencies, and entry points
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- Generated by milens — safe to delete/regenerate -->
|
|
6
8
|
# Security
|
|
7
9
|
|
|
8
10
|
## Working with this area
|
|
@@ -25,25 +27,28 @@ When working with code in **security/**, 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
|
|
34
|
+
Contains 47 symbols (17 exported) across 2 files.
|
|
30
35
|
|
|
31
36
|
## Key Symbols
|
|
32
|
-
- **`loadRules`** [function] (src/security/rules.ts:
|
|
37
|
+
- **`loadRules`** [function] (src/security/rules.ts:1301) — 6 refs
|
|
33
38
|
- **`auditDependencies`** [function] (src/security/deps.ts:732) — 4 refs
|
|
34
39
|
- **`detectEcosystem`** [function] (src/security/deps.ts:512) — 3 refs
|
|
35
40
|
- **`parseDependencies`** [function] (src/security/deps.ts:524) — 3 refs
|
|
36
41
|
- **`checkVulnerabilities`** [function] (src/security/deps.ts:687) — 3 refs
|
|
37
42
|
- **`Ecosystem`** [type] (src/security/deps.ts:8) — 3 refs
|
|
43
|
+
- **`ALL_RULES`** [variable] (src/security/rules.ts:99) — 3 refs
|
|
38
44
|
- **`VulnerabilityReport`** [interface] (src/security/deps.ts:26) — 2 refs
|
|
39
|
-
- **`getRulesByCategory`** [function] (src/security/rules.ts:
|
|
40
|
-
- **`getRulesBySeverity`** [function] (src/security/rules.ts:
|
|
45
|
+
- **`getRulesByCategory`** [function] (src/security/rules.ts:1308) — 2 refs
|
|
46
|
+
- **`getRulesBySeverity`** [function] (src/security/rules.ts:1312) — 2 refs
|
|
41
47
|
- **`SecurityCategory`** [type] (src/security/rules.ts:3) — 1 refs
|
|
42
48
|
- **`Dependency`** [interface] (src/security/deps.ts:10) — 0 refs
|
|
43
49
|
- **`Vulnerability`** [interface] (src/security/deps.ts:16) — 0 refs
|
|
44
50
|
- **`SecurityRule`** [interface] (src/security/rules.ts:31) — 0 refs
|
|
45
51
|
- **`SecurityMatch`** [interface] (src/security/rules.ts:47) — 0 refs
|
|
46
|
-
- **`SecurityReport`** [interface] (src/security/rules.ts:59) — 0 refs
|
|
47
52
|
|
|
48
53
|
## Entry Points
|
|
49
54
|
- **`readManifest`** [function] — 6 incoming references
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
+
generated-by: milens
|
|
2
3
|
name: milens-server
|
|
3
4
|
description: Code intelligence for the server area — symbols, dependencies, and entry points
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- Generated by milens — safe to delete/regenerate -->
|
|
6
8
|
# Server
|
|
7
9
|
|
|
8
10
|
## Working with this area
|
|
@@ -25,35 +27,38 @@ When working with code in **server/**, 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
|
|
34
|
+
Contains 154 symbols (37 exported) across 12 files.
|
|
30
35
|
|
|
31
36
|
## Key Symbols
|
|
37
|
+
- **`Deps`** [interface] (src/server/tools/deps.ts:4) — 11 refs
|
|
32
38
|
- **`HookManager`** [class] (src/server/hooks.ts:43) — 9 refs
|
|
33
|
-
- **`Deps`** [interface] (src/server/tools/deps.ts:4) — 9 refs
|
|
34
39
|
- **`defaultOnSessionStart`** [function] (src/server/hooks.ts:100) — 8 refs
|
|
35
40
|
- **`defaultOnSessionEnd`** [function] (src/server/hooks.ts:174) — 8 refs
|
|
36
41
|
- **`defaultOnPreCompact`** [function] (src/server/hooks.ts:350) — 8 refs
|
|
37
42
|
- **`defaultOnPostCompact`** [function] (src/server/hooks.ts:368) — 8 refs
|
|
43
|
+
- **`createMcpServer`** [function] (src/server/mcp.ts:452) — 6 refs
|
|
38
44
|
- **`HookConfig`** [interface] (src/server/hooks.ts:5) — 5 refs
|
|
39
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
|
|
40
50
|
- **`defaultOnPreCommit`** [function] (src/server/hooks.ts:237) — 4 refs
|
|
41
51
|
- **`defaultOnFileChange`** [function] (src/server/hooks.ts:323) — 4 refs
|
|
42
|
-
- **`SessionContext`** [interface] (src/server/hooks.ts:15) — 4 refs
|
|
43
|
-
- **`registerAllPrompts`** [function] (src/server/mcp-prompts.ts:623) — 4 refs
|
|
44
|
-
- **`createMcpServer`** [function] (src/server/mcp.ts:452) — 4 refs
|
|
45
|
-
- **`startStdio`** [function] (src/server/mcp.ts:2306) — 4 refs
|
|
46
|
-
- **`startHttp`** [function] (src/server/mcp.ts:2363) — 4 refs
|
|
47
52
|
|
|
48
53
|
## Entry Points
|
|
54
|
+
- **`Deps`** [interface] — 11 incoming references
|
|
49
55
|
- **`HookManager`** [class] — 9 incoming references
|
|
50
|
-
- **`Deps`** [interface] — 9 incoming references
|
|
51
56
|
- **`defaultOnSessionStart`** [function] — 8 incoming references
|
|
52
57
|
- **`defaultOnSessionEnd`** [function] — 8 incoming references
|
|
53
58
|
- **`defaultOnPreCompact`** [function] — 8 incoming references
|
|
54
59
|
|
|
55
60
|
## Dependencies
|
|
56
|
-
- **store**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `getStats`, `getTestCoverage` (+
|
|
61
|
+
- **store**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `getStats`, `getTestCoverage` (+38 more)
|
|
57
62
|
- **root**: `generateCrossRefSection`, `globToRegex`
|
|
58
63
|
- **analyzer**: `reviewPr`, `countDependentFiles`, `analyze`
|
|
59
64
|
- **parser**: `getParser`, `loadLanguage`, `ALL_LANGS`
|
|
@@ -61,15 +66,17 @@ Contains 113 symbols (22 exported) across 10 files.
|
|
|
61
66
|
- **security**: `loadRules`
|
|
62
67
|
|
|
63
68
|
## Used By
|
|
64
|
-
- **root**: `startHttp`, `startStdio`, `HookManager`, `defaultOnSessionStart`, `defaultOnSessionEnd`, `defaultOnPreCompact`, `defaultOnPostCompact`, `
|
|
65
|
-
- **test**: `defaultOnSessionStart`, `defaultOnPreCompact`, `defaultOnSessionEnd`, `defaultOnPostCompact`, `
|
|
69
|
+
- **root**: `startHttp`, `startStdio`, `HookManager`, `defaultOnSessionStart`, `defaultOnSessionEnd`, `defaultOnPreCompact`, `defaultOnPostCompact`, `handleMarkChecked` (+6 more)
|
|
70
|
+
- **test**: `defaultOnSessionStart`, `defaultOnPreCompact`, `defaultOnSessionEnd`, `defaultOnPostCompact`, `createMcpServer`, `markChecked`, `checkEdit`, `readMode` (+26 more)
|
|
66
71
|
|
|
67
72
|
## Files
|
|
73
|
+
- src/server/guard-hook.ts
|
|
68
74
|
- src/server/hooks.ts
|
|
69
75
|
- src/server/mcp-prompts.ts
|
|
70
76
|
- src/server/mcp.ts
|
|
71
77
|
- src/server/test-plan.ts
|
|
72
78
|
- src/server/tools/deps.ts
|
|
79
|
+
- src/server/tools/findings-report.ts
|
|
73
80
|
- src/server/tools/resources.ts
|
|
74
81
|
- src/server/tools/security.ts
|
|
75
82
|
- src/server/tools/session.ts
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
+
generated-by: milens
|
|
2
3
|
name: milens-store
|
|
3
4
|
description: Code intelligence for the store area — symbols, dependencies, and entry points
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- Generated by milens — safe to delete/regenerate -->
|
|
6
8
|
# Store
|
|
7
9
|
|
|
8
10
|
## Working with this area
|
|
@@ -25,13 +27,16 @@ When working with code in **store/**, 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
|
|
34
|
+
Contains 146 symbols (15 exported) across 5 files.
|
|
30
35
|
|
|
31
36
|
## Key Symbols
|
|
32
37
|
- **`Database`** [class] (src/store/db.ts:10) — 80 refs
|
|
33
38
|
- **`AnnotationStore`** [class] (src/store/annotations.ts:10) — 21 refs
|
|
34
|
-
- **`RepoRegistry`** [class] (src/store/registry.ts:
|
|
39
|
+
- **`RepoRegistry`** [class] (src/store/registry.ts:24) — 18 refs
|
|
35
40
|
- **`runDecayPass`** [function] (src/store/confidence.ts:87) — 6 refs
|
|
36
41
|
- **`buildEmbeddingText`** [function] (src/store/vectors.ts:250) — 4 refs
|
|
37
42
|
- **`TfIdfProvider`** [class] (src/store/vectors.ts:44) — 4 refs
|
|
@@ -48,8 +53,8 @@ Contains 139 symbols (15 exported) across 5 files.
|
|
|
48
53
|
## Entry Points
|
|
49
54
|
- **`Database`** [class] — 80 incoming references
|
|
50
55
|
- **`AnnotationStore`** [class] — 21 incoming references
|
|
51
|
-
- **`RepoRegistry`** [class] —
|
|
52
|
-
- **`findSymbolById`** [method] —
|
|
56
|
+
- **`RepoRegistry`** [class] — 18 incoming references
|
|
57
|
+
- **`findSymbolById`** [method] — 15 incoming references
|
|
53
58
|
- **`rowToSymbol`** [function] — 13 incoming references
|
|
54
59
|
|
|
55
60
|
## Dependencies
|
|
@@ -59,7 +64,7 @@ Contains 139 symbols (15 exported) across 5 files.
|
|
|
59
64
|
- **root**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `findDbPath` (+22 more)
|
|
60
65
|
- **analyzer**: `Database`, `TfIdfProvider`, `EmbeddingStore`, `buildEmbeddingText`, `isFileUpToDate`, `upsertFileHash`, `getSymbolsByFile`, `transaction` (+18 more)
|
|
61
66
|
- **orchestrator**: `Database`, `findSymbolByName`, `findUpstream`, `getTestCoverageGaps`, `findDeadCode`
|
|
62
|
-
- **server**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `getStats`, `getTestCoverage` (+
|
|
67
|
+
- **server**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `getStats`, `getTestCoverage` (+38 more)
|
|
63
68
|
- **test**: `Database`, `AnnotationStore`, `RepoRegistry`, `boostConfidence`, `decayConfidence`, `getStaleAnnotations`, `promoteSecurityAnnotations`, `runDecayPass` (+76 more)
|
|
64
69
|
- **apps**: `remove`, `getAnnotations`, `Database`, `getCodebaseSummary`
|
|
65
70
|
- **parser**: `load`
|