milens 0.6.9 → 0.7.1
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 +54 -51
- package/.agents/skills/analyzer/SKILL.md +78 -79
- package/.agents/skills/apps/SKILL.md +60 -68
- package/.agents/skills/docs/SKILL.md +58 -79
- package/.agents/skills/milens/SKILL.md +319 -318
- package/.agents/skills/orchestrator/SKILL.md +59 -61
- package/.agents/skills/parser/SKILL.md +81 -82
- package/.agents/skills/root/SKILL.md +84 -86
- package/.agents/skills/scripts/SKILL.md +51 -45
- package/.agents/skills/security/SKILL.md +62 -66
- package/.agents/skills/server/SKILL.md +77 -73
- package/.agents/skills/store/SKILL.md +72 -75
- package/.agents/skills/test/SKILL.md +148 -152
- package/.agents/skills/ui/SKILL.md +51 -0
- package/README.md +577 -527
- package/adapters/README.md +144 -107
- package/adapters/claude-code/.claude/mcp.json +9 -9
- package/adapters/claude-code/.claude/settings.json.hooks-snippet.json +26 -0
- package/adapters/claude-code/.claude-plugin/plugin.json +11 -0
- package/adapters/claude-code/.mcp.json +9 -0
- package/adapters/claude-code/CLAUDE.md +79 -79
- package/adapters/codex/.codex/config.toml +3 -0
- package/adapters/copilot/.vscode/mcp.json +10 -0
- package/adapters/cursor/.cursor/mcp.json +9 -0
- package/adapters/cursor/.cursorrules +69 -9
- package/adapters/gemini/.gemini/context.md +81 -81
- package/adapters/gemini/.gemini/settings.json +9 -0
- package/adapters/opencode/.opencode/config.json +8 -8
- package/adapters/zed/.zed/settings.json +8 -8
- package/dist/agents-md.d.ts +0 -1
- package/dist/agents-md.js +2 -2
- package/dist/agents-md.js.map +1 -1
- package/dist/analyzer/config.d.ts +0 -1
- package/dist/analyzer/engine.d.ts +0 -1
- package/dist/analyzer/engine.js +42 -40
- package/dist/analyzer/engine.js.map +1 -1
- package/dist/analyzer/enrich.d.ts +0 -1
- package/dist/analyzer/enrich.js +13 -0
- package/dist/analyzer/enrich.js.map +1 -1
- package/dist/analyzer/resolver.d.ts +0 -1
- package/dist/analyzer/resolver.js +48 -4
- package/dist/analyzer/resolver.js.map +1 -1
- package/dist/analyzer/review.d.ts +2 -2
- package/dist/analyzer/review.js +7 -59
- package/dist/analyzer/review.js.map +1 -1
- package/dist/analyzer/risk.d.ts +20 -0
- package/dist/analyzer/risk.js +76 -0
- package/dist/analyzer/risk.js.map +1 -0
- package/dist/analyzer/scanner.d.ts +0 -1
- package/dist/analyzer/scanner.js +2 -4
- package/dist/analyzer/scanner.js.map +1 -1
- package/dist/analyzer/scope-resolver.d.ts +0 -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 -0
- package/dist/build-info.js +4 -0
- package/dist/build-info.js.map +1 -0
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +143 -17
- package/dist/cli.js.map +1 -1
- package/dist/metrics.d.ts +0 -1
- package/dist/orchestrator/orchestrator.d.ts +0 -1
- package/dist/orchestrator/orchestrator.js +16 -1
- package/dist/orchestrator/orchestrator.js.map +1 -1
- package/dist/orchestrator/reporter.d.ts +0 -1
- package/dist/parser/extract.d.ts +0 -1
- package/dist/parser/extract.js +53 -28
- package/dist/parser/extract.js.map +1 -1
- package/dist/parser/lang-css.d.ts +0 -1
- package/dist/parser/lang-go.d.ts +0 -1
- package/dist/parser/lang-html.d.ts +0 -1
- package/dist/parser/lang-java.d.ts +0 -1
- package/dist/parser/lang-js.d.ts +0 -1
- package/dist/parser/lang-md.d.ts +0 -1
- package/dist/parser/lang-php.d.ts +0 -1
- package/dist/parser/lang-py.d.ts +0 -1
- package/dist/parser/lang-ruby.d.ts +0 -1
- package/dist/parser/lang-rust.d.ts +0 -1
- package/dist/parser/lang-ts.d.ts +0 -1
- package/dist/parser/lang-vue.d.ts +0 -1
- package/dist/parser/language-provider.d.ts +0 -1
- package/dist/parser/languages.d.ts +0 -1
- package/dist/parser/loader.d.ts +0 -1
- package/dist/security/deps.d.ts +0 -1
- package/dist/security/rules.d.ts +0 -1
- package/dist/security/rules.js +13 -12
- package/dist/security/rules.js.map +1 -1
- package/dist/server/hooks.d.ts +0 -1
- package/dist/server/hooks.js +10 -0
- package/dist/server/hooks.js.map +1 -1
- package/dist/server/mcp-prompts.d.ts +0 -1
- package/dist/server/mcp-prompts.js +509 -523
- package/dist/server/mcp-prompts.js.map +1 -1
- package/dist/server/mcp.d.ts +0 -1
- package/dist/server/mcp.js +156 -655
- package/dist/server/mcp.js.map +1 -1
- package/dist/server/test-plan.d.ts +0 -1
- package/dist/server/tools/deps.d.ts +28 -0
- package/dist/server/tools/deps.js +2 -0
- package/dist/server/tools/deps.js.map +1 -0
- package/dist/server/tools/resources.d.ts +3 -0
- package/dist/server/tools/resources.js +103 -0
- package/dist/server/tools/resources.js.map +1 -0
- package/dist/server/tools/security.d.ts +3 -0
- package/dist/server/tools/security.js +176 -0
- package/dist/server/tools/security.js.map +1 -0
- package/dist/server/tools/session.d.ts +3 -0
- package/dist/server/tools/session.js +140 -0
- package/dist/server/tools/session.js.map +1 -0
- package/dist/server/tools/testing.d.ts +3 -0
- package/dist/server/tools/testing.js +200 -0
- package/dist/server/tools/testing.js.map +1 -0
- package/dist/server/watcher.d.ts +0 -1
- package/dist/server/watcher.js +1 -1
- package/dist/server/watcher.js.map +1 -1
- package/dist/skills.d.ts +0 -1
- package/dist/skills.js +11 -5
- package/dist/skills.js.map +1 -1
- package/dist/store/annotations.d.ts +1 -1
- package/dist/store/annotations.js +14 -3
- package/dist/store/annotations.js.map +1 -1
- package/dist/store/confidence.d.ts +0 -1
- package/dist/store/confidence.js +2 -0
- package/dist/store/confidence.js.map +1 -1
- package/dist/store/db.d.ts +9 -1
- package/dist/store/db.js +88 -25
- package/dist/store/db.js.map +1 -1
- package/dist/store/registry.d.ts +0 -1
- package/dist/store/vectors.d.ts +0 -1
- package/dist/types.d.ts +7 -1
- package/dist/ui/progress.d.ts +0 -1
- package/dist/uninstall.d.ts +0 -1
- package/dist/utils.d.ts +2 -1
- package/dist/utils.js +0 -0
- package/dist/utils.js.map +1 -1
- package/package.json +12 -9
- package/dist/agents-md.d.ts.map +0 -1
- package/dist/analyzer/config.d.ts.map +0 -1
- package/dist/analyzer/engine.d.ts.map +0 -1
- package/dist/analyzer/enrich.d.ts.map +0 -1
- package/dist/analyzer/resolver.d.ts.map +0 -1
- package/dist/analyzer/review.d.ts.map +0 -1
- package/dist/analyzer/scanner.d.ts.map +0 -1
- package/dist/analyzer/scope-resolver.d.ts.map +0 -1
- package/dist/analyzer/testplan.d.ts +0 -59
- package/dist/analyzer/testplan.d.ts.map +0 -1
- package/dist/analyzer/testplan.js +0 -218
- package/dist/analyzer/testplan.js.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/metrics.d.ts.map +0 -1
- package/dist/orchestrator/orchestrator.d.ts.map +0 -1
- package/dist/orchestrator/reporter.d.ts.map +0 -1
- package/dist/parser/extract.d.ts.map +0 -1
- package/dist/parser/lang-css.d.ts.map +0 -1
- package/dist/parser/lang-go.d.ts.map +0 -1
- package/dist/parser/lang-html.d.ts.map +0 -1
- package/dist/parser/lang-java.d.ts.map +0 -1
- package/dist/parser/lang-js.d.ts.map +0 -1
- package/dist/parser/lang-md.d.ts.map +0 -1
- package/dist/parser/lang-php.d.ts.map +0 -1
- package/dist/parser/lang-py.d.ts.map +0 -1
- package/dist/parser/lang-ruby.d.ts.map +0 -1
- package/dist/parser/lang-rust.d.ts.map +0 -1
- package/dist/parser/lang-ts.d.ts.map +0 -1
- package/dist/parser/lang-vue.d.ts.map +0 -1
- package/dist/parser/language-provider.d.ts.map +0 -1
- package/dist/parser/languages.d.ts.map +0 -1
- package/dist/parser/loader.d.ts.map +0 -1
- package/dist/security/deps.d.ts.map +0 -1
- package/dist/security/rules.d.ts.map +0 -1
- package/dist/server/hooks.d.ts.map +0 -1
- package/dist/server/mcp-prompts.d.ts.map +0 -1
- package/dist/server/mcp.d.ts.map +0 -1
- package/dist/server/test-plan.d.ts.map +0 -1
- package/dist/server/watcher.d.ts.map +0 -1
- package/dist/skills.d.ts.map +0 -1
- package/dist/store/annotations.d.ts.map +0 -1
- package/dist/store/confidence.d.ts.map +0 -1
- package/dist/store/db.d.ts.map +0 -1
- package/dist/store/registry.d.ts.map +0 -1
- package/dist/store/vectors.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/ui/progress.d.ts.map +0 -1
- package/dist/uninstall.d.ts.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- package/docs/README.md +0 -25
- package/docs/diagram1.svg +0 -1
- package/docs/diagram2.svg +0 -1
- package/docs/diagram3.svg +0 -1
|
@@ -1,51 +1,54 @@
|
|
|
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
|
|
30
|
-
|
|
31
|
-
## Key Symbols
|
|
32
|
-
- **`Milens
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
- **`
|
|
37
|
-
- **`
|
|
38
|
-
- **`
|
|
39
|
-
- **`
|
|
40
|
-
- **`
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
- **`
|
|
45
|
-
- **`
|
|
46
|
-
- **`
|
|
47
|
-
|
|
48
|
-
## Files
|
|
49
|
-
- adapters/README.md
|
|
50
|
-
- adapters/claude-code/CLAUDE.md
|
|
51
|
-
- adapters/
|
|
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 60 symbols (54 exported) across 6 files.
|
|
30
|
+
|
|
31
|
+
## Key Symbols
|
|
32
|
+
- **`Milens Adapter Packs`** [section] (adapters/README.md:1) — 0 refs
|
|
33
|
+
- **`What is milens?`** [section] (adapters/README.md:5) — 0 refs
|
|
34
|
+
- **`Available Adapters`** [section] (adapters/README.md:9) — 0 refs
|
|
35
|
+
- **`Installation`** [section] (adapters/README.md:21) — 0 refs
|
|
36
|
+
- **`Claude Code`** [section] (adapters/README.md:23) — 0 refs
|
|
37
|
+
- **`OpenCode`** [section] (adapters/README.md:54) — 0 refs
|
|
38
|
+
- **`Codex`** [section] (adapters/README.md:61) — 0 refs
|
|
39
|
+
- **`Cursor`** [section] (adapters/README.md:67) — 0 refs
|
|
40
|
+
- **`GitHub Copilot`** [section] (adapters/README.md:74) — 0 refs
|
|
41
|
+
- **`Gemini`** [section] (adapters/README.md:81) — 0 refs
|
|
42
|
+
- **`Zed`** [section] (adapters/README.md:87) — 0 refs
|
|
43
|
+
- **`Verification`** [section] (adapters/README.md:93) — 0 refs
|
|
44
|
+
- **`Index Maintenance`** [section] (adapters/README.md:101) — 0 refs
|
|
45
|
+
- **`All Tools Available`** [section] (adapters/README.md:109) — 0 refs
|
|
46
|
+
- **`Safety Rules (applies to all harnesses)`** [section] (adapters/README.md:127) — 0 refs
|
|
47
|
+
|
|
48
|
+
## Files
|
|
49
|
+
- adapters/README.md
|
|
50
|
+
- adapters/claude-code/CLAUDE.md
|
|
51
|
+
- adapters/codex/.codex/codex.md
|
|
52
|
+
- adapters/copilot/.github/copilot-instructions.md
|
|
53
|
+
- adapters/gemini/.gemini/context.md
|
|
54
|
+
- adapters/opencode/AGENTS.md
|
|
@@ -1,79 +1,78 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: milens-analyzer
|
|
3
|
-
description: Code intelligence for the analyzer area — symbols, dependencies, and entry points
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Analyzer
|
|
7
|
-
|
|
8
|
-
## Working with this area
|
|
9
|
-
When working with code in **analyzer/**, follow these mandatory safety rules:
|
|
10
|
-
|
|
11
|
-
### Before editing any symbol in this area:
|
|
12
|
-
1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
|
|
13
|
-
2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
|
|
14
|
-
3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
|
|
15
|
-
|
|
16
|
-
### Before committing changes in this area:
|
|
17
|
-
1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
|
|
18
|
-
2. If unexpected files changed → **STOP and report**
|
|
19
|
-
|
|
20
|
-
### Key tools for this area:
|
|
21
|
-
| Task | Tool |
|
|
22
|
-
|---|---|
|
|
23
|
-
| Find all references | `mcp_milens_context` |
|
|
24
|
-
| Check edit safety | `mcp_milens_edit_check` |
|
|
25
|
-
| Text search across files | `mcp_milens_grep` |
|
|
26
|
-
| See file symbols | `mcp_milens_get_file_symbols` |
|
|
27
|
-
|
|
28
|
-
## Overview
|
|
29
|
-
Contains
|
|
30
|
-
|
|
31
|
-
## Key Symbols
|
|
32
|
-
- **`
|
|
33
|
-
- **`
|
|
34
|
-
- **`
|
|
35
|
-
- **`
|
|
36
|
-
- **`
|
|
37
|
-
- **`
|
|
38
|
-
- **`
|
|
39
|
-
- **`
|
|
40
|
-
- **`
|
|
41
|
-
- **`
|
|
42
|
-
- **`
|
|
43
|
-
- **`
|
|
44
|
-
- **`
|
|
45
|
-
- **`
|
|
46
|
-
- **`
|
|
47
|
-
|
|
48
|
-
## Entry Points
|
|
49
|
-
- **`
|
|
50
|
-
- **`
|
|
51
|
-
- **`
|
|
52
|
-
- **`
|
|
53
|
-
- **`
|
|
54
|
-
|
|
55
|
-
## Dependencies
|
|
56
|
-
- **parser**: `langForFile`, `supportedExtensions`, `getParser`, `loadLanguage`, `extractFromTree`, `clearQueryCache`, `extractVueScript`, `extractVueTemplateRefs` (+9 more)
|
|
57
|
-
- **root**: `isTestFile`, `CodeSymbol`, `ExtractionResult`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding` (+
|
|
58
|
-
- **store**: `Database`, `TfIdfProvider`, `EmbeddingStore`, `buildEmbeddingText`, `
|
|
59
|
-
- **
|
|
60
|
-
|
|
61
|
-
## Used By
|
|
62
|
-
- **root**: `loadAliases`, `analyze`, `resolve
|
|
63
|
-
- **orchestrator**: `reviewPr`, `ReviewResult`, `SymbolRisk`
|
|
64
|
-
- **server**: `reviewPr`, `
|
|
65
|
-
- **test**: `analyze`, `loadAliases`, `getCachedTree`, `clearTreeCache`, `enrichMetadata`, `resolveLinksWithStats`, `resolveLinks`, `reviewSymbol` (+
|
|
66
|
-
- **apps**: `resolve`
|
|
67
|
-
- **scripts**: `resolve`
|
|
68
|
-
- **parser**: `resolve`
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
- src/analyzer/
|
|
73
|
-
- src/analyzer/
|
|
74
|
-
- src/analyzer/
|
|
75
|
-
- src/analyzer/
|
|
76
|
-
- src/analyzer/
|
|
77
|
-
- src/analyzer/scanner.ts
|
|
78
|
-
- src/analyzer/scope-resolver.ts
|
|
79
|
-
- src/analyzer/testplan.ts
|
|
1
|
+
---
|
|
2
|
+
name: milens-analyzer
|
|
3
|
+
description: Code intelligence for the analyzer area — symbols, dependencies, and entry points
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Analyzer
|
|
7
|
+
|
|
8
|
+
## Working with this area
|
|
9
|
+
When working with code in **analyzer/**, 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 119 symbols (24 exported) across 8 files.
|
|
30
|
+
|
|
31
|
+
## Key Symbols
|
|
32
|
+
- **`analyze`** [function] (src/analyzer/engine.ts:139) — 10 refs
|
|
33
|
+
- **`resolveLinksWithStats`** [function] (src/analyzer/resolver.ts:37) — 9 refs
|
|
34
|
+
- **`reviewPr`** [function] (src/analyzer/review.ts:244) — 9 refs
|
|
35
|
+
- **`countDependentFiles`** [function] (src/analyzer/risk.ts:13) — 9 refs
|
|
36
|
+
- **`loadAliases`** [function] (src/analyzer/config.ts:10) — 6 refs
|
|
37
|
+
- **`ResolutionResult`** [interface] (src/analyzer/resolver.ts:24) — 6 refs
|
|
38
|
+
- **`classifyRisk`** [function] (src/analyzer/risk.ts:33) — 5 refs
|
|
39
|
+
- **`scoreSymbolRisk`** [function] (src/analyzer/risk.ts:41) — 5 refs
|
|
40
|
+
- **`diffResolutions`** [function] (src/analyzer/scope-resolver.ts:768) — 5 refs
|
|
41
|
+
- **`enrichMetadata`** [function] (src/analyzer/enrich.ts:21) — 4 refs
|
|
42
|
+
- **`ReviewResult`** [interface] (src/analyzer/review.ts:19) — 4 refs
|
|
43
|
+
- **`scanFiles`** [function] (src/analyzer/scanner.ts:11) — 4 refs
|
|
44
|
+
- **`resolveWithScopes`** [function] (src/analyzer/scope-resolver.ts:48) — 4 refs
|
|
45
|
+
- **`clearTreeCache`** [function] (src/analyzer/engine.ts:29) — 3 refs
|
|
46
|
+
- **`resolveLinks`** [function] (src/analyzer/resolver.ts:32) — 3 refs
|
|
47
|
+
|
|
48
|
+
## Entry Points
|
|
49
|
+
- **`ScopeNode`** [interface] — 11 incoming references
|
|
50
|
+
- **`analyze`** [function] — 10 incoming references
|
|
51
|
+
- **`resolveLinksWithStats`** [function] — 9 incoming references
|
|
52
|
+
- **`reviewPr`** [function] — 9 incoming references
|
|
53
|
+
- **`countDependentFiles`** [function] — 9 incoming references
|
|
54
|
+
|
|
55
|
+
## Dependencies
|
|
56
|
+
- **parser**: `langForFile`, `supportedExtensions`, `getParser`, `loadLanguage`, `extractFromTree`, `clearQueryCache`, `extractVueScript`, `extractVueTemplateRefs` (+9 more)
|
|
57
|
+
- **root**: `isTestFile`, `CodeSymbol`, `ExtractionResult`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding` (+7 more)
|
|
58
|
+
- **store**: `Database`, `TfIdfProvider`, `EmbeddingStore`, `buildEmbeddingText`, `isFileUpToDate`, `upsertFileHash`, `getSymbolsByFile`, `transaction` (+18 more)
|
|
59
|
+
- **ui**: `ProgressPhase`, `ProgressReporter`, `startPhase`, `tick`, `endPhase`, `finalize`
|
|
60
|
+
|
|
61
|
+
## Used By
|
|
62
|
+
- **root**: `loadAliases`, `analyze`, `resolve`
|
|
63
|
+
- **orchestrator**: `reviewPr`, `ReviewResult`, `SymbolRisk`
|
|
64
|
+
- **server**: `reviewPr`, `countDependentFiles`, `analyze`
|
|
65
|
+
- **test**: `analyze`, `loadAliases`, `getCachedTree`, `clearTreeCache`, `enrichMetadata`, `resolveLinksWithStats`, `resolveLinks`, `reviewSymbol` (+9 more)
|
|
66
|
+
- **apps**: `resolve`
|
|
67
|
+
- **scripts**: `resolve`
|
|
68
|
+
- **parser**: `resolve`
|
|
69
|
+
|
|
70
|
+
## Files
|
|
71
|
+
- src/analyzer/config.ts
|
|
72
|
+
- src/analyzer/engine.ts
|
|
73
|
+
- src/analyzer/enrich.ts
|
|
74
|
+
- src/analyzer/resolver.ts
|
|
75
|
+
- src/analyzer/review.ts
|
|
76
|
+
- src/analyzer/risk.ts
|
|
77
|
+
- src/analyzer/scanner.ts
|
|
78
|
+
- src/analyzer/scope-resolver.ts
|
|
@@ -1,68 +1,60 @@
|
|
|
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
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
- **`
|
|
43
|
-
- **`
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
- **`
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
- apps/
|
|
60
|
-
- apps/
|
|
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
|
+
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 40 symbols (8 exported) across 6 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
|
+
|
|
41
|
+
## Entry Points
|
|
42
|
+
- **`DASHBOARD_URL`** [variable] — 3 incoming references
|
|
43
|
+
- **`loadOverview`** [function] — 2 incoming references
|
|
44
|
+
- **`poll`** [function] — 2 incoming references
|
|
45
|
+
- **`__dirname`** [variable] — 2 incoming references
|
|
46
|
+
- **`setStatus`** [function] — 1 incoming references
|
|
47
|
+
|
|
48
|
+
## Dependencies
|
|
49
|
+
- **store**: `remove`, `getAnnotations`, `Database`, `getCodebaseSummary`
|
|
50
|
+
- **analyzer**: `resolve`
|
|
51
|
+
- **scripts**: `parseArgs`, `generatePrPayload`
|
|
52
|
+
- **test**: `create`
|
|
53
|
+
|
|
54
|
+
## Files
|
|
55
|
+
- apps/dashboard/README.md
|
|
56
|
+
- apps/dashboard/index.html
|
|
57
|
+
- apps/dashboard/main.js
|
|
58
|
+
- apps/dashboard/preload.js
|
|
59
|
+
- apps/github/README.md
|
|
60
|
+
- apps/github/app.js
|
|
@@ -1,79 +1,58 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: milens-docs
|
|
3
|
-
description: Code intelligence for the docs area — symbols, dependencies, and entry points
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Docs
|
|
7
|
-
|
|
8
|
-
## Working with this area
|
|
9
|
-
When working with code in **docs/**, follow these mandatory safety rules:
|
|
10
|
-
|
|
11
|
-
### Before editing any symbol in this area:
|
|
12
|
-
1. Call `mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"})` — check blast radius
|
|
13
|
-
2. If depth-1 dependents > 5 → **STOP and warn** before proceeding
|
|
14
|
-
3. Call `mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"})` — see all callers/callees
|
|
15
|
-
|
|
16
|
-
### Before committing changes in this area:
|
|
17
|
-
1. Call `mcp_milens_detect_changes({repo: "<workspaceRoot>"})` — verify scope
|
|
18
|
-
2. If unexpected files changed → **STOP and report**
|
|
19
|
-
|
|
20
|
-
### Key tools for this area:
|
|
21
|
-
| Task | Tool |
|
|
22
|
-
|---|---|
|
|
23
|
-
| Find all references | `mcp_milens_context` |
|
|
24
|
-
| Check edit safety | `mcp_milens_edit_check` |
|
|
25
|
-
| Text search across files | `mcp_milens_grep` |
|
|
26
|
-
| See file symbols | `mcp_milens_get_file_symbols` |
|
|
27
|
-
|
|
28
|
-
## Overview
|
|
29
|
-
Contains
|
|
30
|
-
|
|
31
|
-
## Key Symbols
|
|
32
|
-
- **`
|
|
33
|
-
- **`
|
|
34
|
-
- **`
|
|
35
|
-
- **`
|
|
36
|
-
- **`
|
|
37
|
-
- **`
|
|
38
|
-
- **`
|
|
39
|
-
- **`
|
|
40
|
-
- **`
|
|
41
|
-
- **`
|
|
42
|
-
- **`
|
|
43
|
-
- **`
|
|
44
|
-
- **`
|
|
45
|
-
- **`
|
|
46
|
-
- **`
|
|
47
|
-
|
|
48
|
-
##
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
- docs/
|
|
58
|
-
- docs/
|
|
59
|
-
- docs/adapters.html
|
|
60
|
-
- docs/adapters.md
|
|
61
|
-
- docs/changelog.html
|
|
62
|
-
- docs/cli.md
|
|
63
|
-
- docs/compare.html
|
|
64
|
-
- docs/github-app.html
|
|
65
|
-
- docs/index.html
|
|
66
|
-
- docs/languages.md
|
|
67
|
-
- docs/learning.html
|
|
68
|
-
- docs/milens-upgrade.md
|
|
69
|
-
- docs/platforms.html
|
|
70
|
-
- docs/pricing.html
|
|
71
|
-
- docs/pricing.md
|
|
72
|
-
- docs/quickstart.md
|
|
73
|
-
- docs/review.md
|
|
74
|
-
- docs/scenarios.html
|
|
75
|
-
- docs/security-presets.md
|
|
76
|
-
- docs/security.html
|
|
77
|
-
- docs/skills.html
|
|
78
|
-
- docs/tools.md
|
|
79
|
-
- docs/vi-VN/README.md
|
|
1
|
+
---
|
|
2
|
+
name: milens-docs
|
|
3
|
+
description: Code intelligence for the docs area — symbols, dependencies, and entry points
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Docs
|
|
7
|
+
|
|
8
|
+
## Working with this area
|
|
9
|
+
When working with code in **docs/**, 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 122 symbols (112 exported) across 10 files.
|
|
30
|
+
|
|
31
|
+
## Key Symbols
|
|
32
|
+
- **`Milens Documentation`** [section] (docs/README.md:1) — 0 refs
|
|
33
|
+
- **`Getting Started`** [section] (docs/README.md:5) — 0 refs
|
|
34
|
+
- **`Reference`** [section] (docs/README.md:12) — 0 refs
|
|
35
|
+
- **`Accuracy Engine`** [section] (docs/accuracy.md:1) — 0 refs
|
|
36
|
+
- **`Type Bindings`** [section] (docs/accuracy.md:5) — 0 refs
|
|
37
|
+
- **`Method Resolution Order (MRO)`** [section] (docs/accuracy.md:29) — 0 refs
|
|
38
|
+
- **`C3 Linearization Example (Diamond)`** [section] (docs/accuracy.md:45) — 0 refs
|
|
39
|
+
- **`Import Semantics`** [section] (docs/accuracy.md:59) — 0 refs
|
|
40
|
+
- **`Accuracy Fixtures`** [section] (docs/accuracy.md:69) — 0 refs
|
|
41
|
+
- **`Dual-Path Resolution`** [section] (docs/accuracy.md:86) — 0 refs
|
|
42
|
+
- **`Adapter Packs`** [section] (docs/adapters.md:1) — 0 refs
|
|
43
|
+
- **`Available Adapters`** [section] (docs/adapters.md:5) — 0 refs
|
|
44
|
+
- **`Quick Install`** [section] (docs/adapters.md:17) — 0 refs
|
|
45
|
+
- **`Claude Code`** [section] (docs/adapters.md:21) — 0 refs
|
|
46
|
+
- **`OpenCode`** [section] (docs/adapters.md:37) — 0 refs
|
|
47
|
+
|
|
48
|
+
## Files
|
|
49
|
+
- docs/README.md
|
|
50
|
+
- docs/accuracy.md
|
|
51
|
+
- docs/adapters.md
|
|
52
|
+
- docs/cli.md
|
|
53
|
+
- docs/languages.md
|
|
54
|
+
- docs/pricing.md
|
|
55
|
+
- docs/quickstart.md
|
|
56
|
+
- docs/review.md
|
|
57
|
+
- docs/security-presets.md
|
|
58
|
+
- docs/tools.md
|