milens 0.6.8 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/analyzer/SKILL.md +81 -79
- package/.agents/skills/docs/SKILL.md +78 -79
- package/.agents/skills/milens/SKILL.md +319 -318
- package/.agents/skills/orchestrator/SKILL.md +61 -61
- package/.agents/skills/parser/SKILL.md +83 -82
- package/.agents/skills/root/SKILL.md +88 -86
- package/.agents/skills/scripts/SKILL.md +54 -45
- package/.agents/skills/security/SKILL.md +67 -66
- package/.agents/skills/server/SKILL.md +74 -73
- package/.agents/skills/store/SKILL.md +76 -75
- package/.agents/skills/test/SKILL.md +153 -152
- package/.agents/skills/ui/SKILL.md +51 -0
- package/README.md +568 -522
- package/adapters/claude-code/.claude/mcp.json +9 -9
- package/adapters/claude-code/CLAUDE.md +79 -79
- package/adapters/gemini/.gemini/context.md +81 -81
- package/adapters/opencode/.opencode/config.json +8 -9
- package/adapters/zed/.zed/settings.json +8 -8
- package/dist/analyzer/review.d.ts.map +1 -1
- package/dist/analyzer/review.js +5 -1
- package/dist/analyzer/review.js.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/security/rules.d.ts +2 -1
- package/dist/security/rules.d.ts.map +1 -1
- package/dist/security/rules.js +276 -61
- package/dist/security/rules.js.map +1 -1
- package/dist/server/hooks.d.ts.map +1 -1
- package/dist/server/hooks.js +10 -0
- package/dist/server/hooks.js.map +1 -1
- package/dist/server/mcp.d.ts.map +1 -1
- package/dist/server/mcp.js +84 -19
- package/dist/server/mcp.js.map +1 -1
- package/dist/server/test-plan.d.ts +1 -1
- package/dist/server/test-plan.d.ts.map +1 -1
- package/dist/server/test-plan.js +48 -4
- package/dist/server/test-plan.js.map +1 -1
- package/dist/skills.js +3 -3
- package/dist/store/db.d.ts.map +1 -1
- package/dist/store/db.js +19 -21
- package/dist/store/db.js.map +1 -1
- package/docs/README.md +25 -25
- package/package.json +2 -2
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: milens-orchestrator
|
|
3
|
-
description: Code intelligence for the orchestrator area — symbols, dependencies, and entry points
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Orchestrator
|
|
7
|
-
|
|
8
|
-
## Working with this area
|
|
9
|
-
When working with code in **orchestrator/**, 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 22 symbols (7 exported) across 2 files.
|
|
30
|
-
|
|
31
|
-
## Key Symbols
|
|
32
|
-
- **`Orchestrator`** [class] (src/orchestrator/orchestrator.ts:36) — 6 refs
|
|
33
|
-
- **`OrchestratorReport`** [interface] (src/orchestrator/reporter.ts:4) — 5 refs
|
|
34
|
-
- **`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
|
|
37
|
-
- **`ReportOptions`** [interface] (src/orchestrator/reporter.ts:13) — 2 refs
|
|
38
|
-
- **`ImpactDiff`** [interface] (src/orchestrator/orchestrator.ts:25) — 1 refs
|
|
39
|
-
|
|
40
|
-
## Entry Points
|
|
41
|
-
- **`Orchestrator`** [class] — 6 incoming references
|
|
42
|
-
- **`e`** [function] — 5 incoming references
|
|
43
|
-
- **`OrchestratorReport`** [interface] — 5 incoming references
|
|
44
|
-
- **`formatReport`** [function] — 4 incoming references
|
|
45
|
-
- **`snapshot`** [method] — 3 incoming references
|
|
46
|
-
|
|
47
|
-
## Dependencies
|
|
48
|
-
- **store**: `Database`, `findSymbolByName`, `findUpstream`, `clear`, `getTestCoverageGaps`, `findDeadCode`, `close`
|
|
49
|
-
- **analyzer**: `reviewPr`, `ReviewResult`, `SymbolRisk`
|
|
50
|
-
- **root**: `CodeSymbol`, `has`
|
|
51
|
-
- **test**: `add`
|
|
52
|
-
|
|
53
|
-
## Used By
|
|
54
|
-
- **root**: `Orchestrator`, `subscribe`, `runAndFormat`
|
|
55
|
-
- **server**: `Orchestrator`, `snapshot`, `compare`, `runAndFormat`
|
|
56
|
-
- **test**: `Orchestrator`, `formatReport`, `OrchestratorReport`, `subscribe`, `run`, `snapshot`, `compare`, `cancel` (+3 more)
|
|
57
|
-
- **apps**: `e`
|
|
58
|
-
|
|
59
|
-
## Files
|
|
60
|
-
- src/orchestrator/orchestrator.ts
|
|
61
|
-
- src/orchestrator/reporter.ts
|
|
1
|
+
---
|
|
2
|
+
name: milens-orchestrator
|
|
3
|
+
description: Code intelligence for the orchestrator area — symbols, dependencies, and entry points
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Orchestrator
|
|
7
|
+
|
|
8
|
+
## Working with this area
|
|
9
|
+
When working with code in **orchestrator/**, 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 22 symbols (7 exported) across 2 files.
|
|
30
|
+
|
|
31
|
+
## Key Symbols
|
|
32
|
+
- **`Orchestrator`** [class] (src/orchestrator/orchestrator.ts:36) — 6 refs
|
|
33
|
+
- **`OrchestratorReport`** [interface] (src/orchestrator/reporter.ts:4) — 5 refs
|
|
34
|
+
- **`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
|
|
37
|
+
- **`ReportOptions`** [interface] (src/orchestrator/reporter.ts:13) — 2 refs
|
|
38
|
+
- **`ImpactDiff`** [interface] (src/orchestrator/orchestrator.ts:25) — 1 refs
|
|
39
|
+
|
|
40
|
+
## Entry Points
|
|
41
|
+
- **`Orchestrator`** [class] — 6 incoming references
|
|
42
|
+
- **`e`** [function] — 5 incoming references
|
|
43
|
+
- **`OrchestratorReport`** [interface] — 5 incoming references
|
|
44
|
+
- **`formatReport`** [function] — 4 incoming references
|
|
45
|
+
- **`snapshot`** [method] — 3 incoming references
|
|
46
|
+
|
|
47
|
+
## Dependencies
|
|
48
|
+
- **store**: `Database`, `findSymbolByName`, `findUpstream`, `clear`, `getTestCoverageGaps`, `findDeadCode`, `close`
|
|
49
|
+
- **analyzer**: `reviewPr`, `ReviewResult`, `SymbolRisk`
|
|
50
|
+
- **root**: `CodeSymbol`, `has`
|
|
51
|
+
- **test**: `add`
|
|
52
|
+
|
|
53
|
+
## Used By
|
|
54
|
+
- **root**: `Orchestrator`, `subscribe`, `runAndFormat`
|
|
55
|
+
- **server**: `Orchestrator`, `loadSnapshots`, `snapshot`, `persistSnapshots`, `compare`, `runAndFormat`
|
|
56
|
+
- **test**: `Orchestrator`, `formatReport`, `OrchestratorReport`, `subscribe`, `run`, `snapshot`, `compare`, `cancel` (+3 more)
|
|
57
|
+
- **apps**: `e`
|
|
58
|
+
|
|
59
|
+
## Files
|
|
60
|
+
- src/orchestrator/orchestrator.ts
|
|
61
|
+
- src/orchestrator/reporter.ts
|
|
@@ -1,82 +1,83 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: milens-parser
|
|
3
|
-
description: Code intelligence for the parser area — symbols, dependencies, and entry points
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Parser
|
|
7
|
-
|
|
8
|
-
## Working with this area
|
|
9
|
-
When working with code in **parser/**, 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 83 symbols (31 exported) across 16 files.
|
|
30
|
-
|
|
31
|
-
## Key Symbols
|
|
32
|
-
- **`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
|
|
36
|
-
- **`supportedExtensions`** [function] (src/parser/languages.ts:29) — 6 refs
|
|
37
|
-
- **`extractHtmlScripts`** [function] (src/parser/lang-html.ts:38) — 5 refs
|
|
38
|
-
- **`extractMarkdown`** [function] (src/parser/lang-md.ts:34) — 5 refs
|
|
39
|
-
- **`spec`** [variable] (src/parser/lang-ts.ts:5) — 5 refs
|
|
40
|
-
- **`extractVueScript`** [function] (src/parser/lang-vue.ts:19) — 5 refs
|
|
41
|
-
- **`initTreeSitter`** [function] (src/parser/loader.ts:15) — 5 refs
|
|
42
|
-
- **`clearQueryCache`** [function] (src/parser/extract.ts:72) — 4 refs
|
|
43
|
-
- **`extractHtmlRefs`** [function] (src/parser/lang-html.ts:57) — 4 refs
|
|
44
|
-
- **`extractHtmlLinks`** [function] (src/parser/lang-html.ts:99) — 4 refs
|
|
45
|
-
- **`extractVueTemplateRefs`** [function] (src/parser/lang-vue.ts:38) — 4 refs
|
|
46
|
-
- **`extractVueTemplateAst`** [function] (src/parser/lang-vue.ts:90) — 4 refs
|
|
47
|
-
|
|
48
|
-
## Entry Points
|
|
49
|
-
- **`LangSpec`** [interface] — 32 incoming references
|
|
50
|
-
- **`loadLanguage`** [function] — 14 incoming references
|
|
51
|
-
- **`getParser`** [function] — 13 incoming references
|
|
52
|
-
- **`extractFromTree`** [function] — 8 incoming references
|
|
53
|
-
- **`supportedExtensions`** [function] — 6 incoming references
|
|
54
|
-
|
|
55
|
-
## Dependencies
|
|
56
|
-
- **root**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+4 more)
|
|
57
|
-
- **test**: `lang`, `add`, `parser`
|
|
58
|
-
- **
|
|
59
|
-
- **
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
- **
|
|
64
|
-
- **
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
- src/parser/
|
|
69
|
-
- src/parser/lang-
|
|
70
|
-
- src/parser/lang-
|
|
71
|
-
- src/parser/lang-
|
|
72
|
-
- src/parser/lang-
|
|
73
|
-
- src/parser/lang-
|
|
74
|
-
- src/parser/lang-
|
|
75
|
-
- src/parser/lang-
|
|
76
|
-
- src/parser/lang-
|
|
77
|
-
- src/parser/lang-
|
|
78
|
-
- src/parser/lang-
|
|
79
|
-
- src/parser/lang-
|
|
80
|
-
- src/parser/
|
|
81
|
-
- src/parser/
|
|
82
|
-
- src/parser/
|
|
1
|
+
---
|
|
2
|
+
name: milens-parser
|
|
3
|
+
description: Code intelligence for the parser area — symbols, dependencies, and entry points
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Parser
|
|
7
|
+
|
|
8
|
+
## Working with this area
|
|
9
|
+
When working with code in **parser/**, 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 83 symbols (31 exported) across 16 files.
|
|
30
|
+
|
|
31
|
+
## Key Symbols
|
|
32
|
+
- **`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
|
|
36
|
+
- **`supportedExtensions`** [function] (src/parser/languages.ts:29) — 6 refs
|
|
37
|
+
- **`extractHtmlScripts`** [function] (src/parser/lang-html.ts:38) — 5 refs
|
|
38
|
+
- **`extractMarkdown`** [function] (src/parser/lang-md.ts:34) — 5 refs
|
|
39
|
+
- **`spec`** [variable] (src/parser/lang-ts.ts:5) — 5 refs
|
|
40
|
+
- **`extractVueScript`** [function] (src/parser/lang-vue.ts:19) — 5 refs
|
|
41
|
+
- **`initTreeSitter`** [function] (src/parser/loader.ts:15) — 5 refs
|
|
42
|
+
- **`clearQueryCache`** [function] (src/parser/extract.ts:72) — 4 refs
|
|
43
|
+
- **`extractHtmlRefs`** [function] (src/parser/lang-html.ts:57) — 4 refs
|
|
44
|
+
- **`extractHtmlLinks`** [function] (src/parser/lang-html.ts:99) — 4 refs
|
|
45
|
+
- **`extractVueTemplateRefs`** [function] (src/parser/lang-vue.ts:38) — 4 refs
|
|
46
|
+
- **`extractVueTemplateAst`** [function] (src/parser/lang-vue.ts:90) — 4 refs
|
|
47
|
+
|
|
48
|
+
## Entry Points
|
|
49
|
+
- **`LangSpec`** [interface] — 32 incoming references
|
|
50
|
+
- **`loadLanguage`** [function] — 14 incoming references
|
|
51
|
+
- **`getParser`** [function] — 13 incoming references
|
|
52
|
+
- **`extractFromTree`** [function] — 8 incoming references
|
|
53
|
+
- **`supportedExtensions`** [function] — 6 incoming references
|
|
54
|
+
|
|
55
|
+
## Dependencies
|
|
56
|
+
- **root**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+4 more)
|
|
57
|
+
- **test**: `lang`, `add`, `parser`
|
|
58
|
+
- **scripts**: `root`
|
|
59
|
+
- **analyzer**: `resolve`
|
|
60
|
+
- **store**: `load`
|
|
61
|
+
|
|
62
|
+
## Used By
|
|
63
|
+
- **analyzer**: `langForFile`, `supportedExtensions`, `getParser`, `loadLanguage`, `extractFromTree`, `clearQueryCache`, `extractVueScript`, `extractVueTemplateRefs` (+9 more)
|
|
64
|
+
- **server**: `getParser`, `loadLanguage`, `ALL_LANGS`
|
|
65
|
+
- **test**: `getParser`, `loadLanguage`, `extractFromTree`, `extractVueScript`, `extractVueTemplateRefs`, `extractVueCompositionApi`, `extractVueTemplateAst`, `spec` (+11 more)
|
|
66
|
+
|
|
67
|
+
## Files
|
|
68
|
+
- src/parser/extract.ts
|
|
69
|
+
- src/parser/lang-css.ts
|
|
70
|
+
- src/parser/lang-go.ts
|
|
71
|
+
- src/parser/lang-html.ts
|
|
72
|
+
- src/parser/lang-java.ts
|
|
73
|
+
- src/parser/lang-js.ts
|
|
74
|
+
- src/parser/lang-md.ts
|
|
75
|
+
- src/parser/lang-php.ts
|
|
76
|
+
- src/parser/lang-py.ts
|
|
77
|
+
- src/parser/lang-ruby.ts
|
|
78
|
+
- src/parser/lang-rust.ts
|
|
79
|
+
- src/parser/lang-ts.ts
|
|
80
|
+
- src/parser/lang-vue.ts
|
|
81
|
+
- src/parser/language-provider.ts
|
|
82
|
+
- src/parser/languages.ts
|
|
83
|
+
- src/parser/loader.ts
|
|
@@ -1,86 +1,88 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: milens-root
|
|
3
|
-
description: Code intelligence for the root area — symbols, dependencies, and entry points
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Root
|
|
7
|
-
|
|
8
|
-
## Working with this area
|
|
9
|
-
When working with code in **root/**, 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
|
-
- **`CodeSymbol`** [interface] (src/types.ts:8) — 53 refs
|
|
33
|
-
- **`SymbolLink`** [interface] (src/types.ts:26) — 24 refs
|
|
34
|
-
- **`RawCall`** [interface] (src/types.ts:44) — 15 refs
|
|
35
|
-
- **`isTestFile`** [function] (src/utils.ts:2) — 12 refs
|
|
36
|
-
- **`RawImport`** [interface] (src/types.ts:35) — 9 refs
|
|
37
|
-
- **`RawHeritage`** [interface] (src/types.ts:52) — 7 refs
|
|
38
|
-
- **`ExtractionResult`** [interface] (src/types.ts:60) — 6 refs
|
|
39
|
-
- **`RawTypeBinding`** [interface] (src/types.ts:80) — 6 refs
|
|
40
|
-
- **`RawAssignmentBinding`** [interface] (src/types.ts:88) — 6 refs
|
|
41
|
-
- **`RawReturnType`** [interface] (src/types.ts:96) — 5 refs
|
|
42
|
-
- **`RawCallResultBinding`** [interface] (src/types.ts:104) — 5 refs
|
|
43
|
-
- **`
|
|
44
|
-
- **`
|
|
45
|
-
- **`
|
|
46
|
-
- **`
|
|
47
|
-
|
|
48
|
-
## Entry Points
|
|
49
|
-
- **`CodeSymbol`** [interface] — 53 incoming references
|
|
50
|
-
- **`has`** [function] —
|
|
51
|
-
- **`SymbolLink`** [interface] — 24 incoming references
|
|
52
|
-
- **`RawCall`** [interface] — 15 incoming references
|
|
53
|
-
- **`isTestFile`** [function] — 12 incoming references
|
|
54
|
-
|
|
55
|
-
## Dependencies
|
|
56
|
-
- **store**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `register` (+24 more)
|
|
57
|
-
- **analyzer**: `loadAliases`, `analyze`, `resolve`, `clear`
|
|
58
|
-
- **
|
|
59
|
-
- **
|
|
60
|
-
- **
|
|
61
|
-
- **
|
|
62
|
-
- **
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- **
|
|
67
|
-
- **
|
|
68
|
-
- **
|
|
69
|
-
- **
|
|
70
|
-
- **
|
|
71
|
-
- **
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
- src/
|
|
82
|
-
- src/
|
|
83
|
-
- src/
|
|
84
|
-
- src/
|
|
85
|
-
- src/
|
|
86
|
-
-
|
|
1
|
+
---
|
|
2
|
+
name: milens-root
|
|
3
|
+
description: Code intelligence for the root area — symbols, dependencies, and entry points
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Root
|
|
7
|
+
|
|
8
|
+
## Working with this area
|
|
9
|
+
When working with code in **root/**, 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 242 symbols (164 exported) across 13 files.
|
|
30
|
+
|
|
31
|
+
## Key Symbols
|
|
32
|
+
- **`CodeSymbol`** [interface] (src/types.ts:8) — 53 refs
|
|
33
|
+
- **`SymbolLink`** [interface] (src/types.ts:26) — 24 refs
|
|
34
|
+
- **`RawCall`** [interface] (src/types.ts:44) — 15 refs
|
|
35
|
+
- **`isTestFile`** [function] (src/utils.ts:2) — 12 refs
|
|
36
|
+
- **`RawImport`** [interface] (src/types.ts:35) — 9 refs
|
|
37
|
+
- **`RawHeritage`** [interface] (src/types.ts:52) — 7 refs
|
|
38
|
+
- **`ExtractionResult`** [interface] (src/types.ts:60) — 6 refs
|
|
39
|
+
- **`RawTypeBinding`** [interface] (src/types.ts:80) — 6 refs
|
|
40
|
+
- **`RawAssignmentBinding`** [interface] (src/types.ts:88) — 6 refs
|
|
41
|
+
- **`RawReturnType`** [interface] (src/types.ts:96) — 5 refs
|
|
42
|
+
- **`RawCallResultBinding`** [interface] (src/types.ts:104) — 5 refs
|
|
43
|
+
- **`AnalysisStats`** [interface] (src/types.ts:113) — 5 refs
|
|
44
|
+
- **`generateAgentsMd`** [function] (src/agents-md.ts:93) — 4 refs
|
|
45
|
+
- **`computeMetrics`** [function] (src/metrics.ts:21) — 4 refs
|
|
46
|
+
- **`formatMetricsReport`** [function] (src/metrics.ts:62) — 4 refs
|
|
47
|
+
|
|
48
|
+
## Entry Points
|
|
49
|
+
- **`CodeSymbol`** [interface] — 53 incoming references
|
|
50
|
+
- **`has`** [function] — 50 incoming references
|
|
51
|
+
- **`SymbolLink`** [interface] — 24 incoming references
|
|
52
|
+
- **`RawCall`** [interface] — 15 incoming references
|
|
53
|
+
- **`isTestFile`** [function] — 12 incoming references
|
|
54
|
+
|
|
55
|
+
## Dependencies
|
|
56
|
+
- **store**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `register` (+24 more)
|
|
57
|
+
- **analyzer**: `loadAliases`, `analyze`, `resolve`, `clear`
|
|
58
|
+
- **ui**: `createProgressReporter`, `finalize`
|
|
59
|
+
- **server**: `startHttp`, `startStdio`, `HookManager`, `get`, `enableHook`, `loadConfig`, `saveConfig`, `disableHook`
|
|
60
|
+
- **security**: `loadRules`, `auditDependencies`
|
|
61
|
+
- **orchestrator**: `Orchestrator`, `subscribe`, `runAndFormat`
|
|
62
|
+
- **test**: `add`, `dbPath`
|
|
63
|
+
- **scripts**: `version`, `outDir`, `root`
|
|
64
|
+
|
|
65
|
+
## Used By
|
|
66
|
+
- **analyzer**: `isTestFile`, `CodeSymbol`, `ExtractionResult`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding` (+8 more)
|
|
67
|
+
- **orchestrator**: `CodeSymbol`, `has`
|
|
68
|
+
- **parser**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+4 more)
|
|
69
|
+
- **server**: `generateCrossRefSection`, `has`
|
|
70
|
+
- **store**: `Annotation`, `AnnotationKey`, `Session`, `EvolutionEvent`, `CodeSymbol`, `SymbolLink`, `RepoEntry`, `has` (+1 more)
|
|
71
|
+
- **ui**: `AnalysisStats`
|
|
72
|
+
- **test**: `generateAgentsMd`, `AnnotationKey`, `CodeSymbol`, `SymbolLink`, `computeMetrics`, `formatMetricsReport`, `MilensMetrics`, `RawImport` (+17 more)
|
|
73
|
+
- **security**: `has`
|
|
74
|
+
|
|
75
|
+
## Files
|
|
76
|
+
- AGENTS.md
|
|
77
|
+
- CLAUDE.md
|
|
78
|
+
- CONTRIBUTING.md
|
|
79
|
+
- DEPLOY.md
|
|
80
|
+
- README.md
|
|
81
|
+
- src/agents-md.ts
|
|
82
|
+
- src/cli.ts
|
|
83
|
+
- src/metrics.ts
|
|
84
|
+
- src/skills.ts
|
|
85
|
+
- src/types.ts
|
|
86
|
+
- src/uninstall.ts
|
|
87
|
+
- src/utils.ts
|
|
88
|
+
- vitest.config.ts
|
|
@@ -1,45 +1,54 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: milens-scripts
|
|
3
|
-
description: Code intelligence for the scripts area — symbols, dependencies, and entry points
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Scripts
|
|
7
|
-
|
|
8
|
-
## Working with this area
|
|
9
|
-
When working with code in **scripts/**, 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
|
-
## Entry Points
|
|
32
|
-
- **`
|
|
33
|
-
- **`
|
|
34
|
-
- **`
|
|
35
|
-
- **`
|
|
36
|
-
- **`
|
|
37
|
-
|
|
38
|
-
## Dependencies
|
|
39
|
-
- **analyzer**: `resolve`
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
1
|
+
---
|
|
2
|
+
name: milens-scripts
|
|
3
|
+
description: Code intelligence for the scripts area — symbols, dependencies, and entry points
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Scripts
|
|
7
|
+
|
|
8
|
+
## Working with this area
|
|
9
|
+
When working with code in **scripts/**, 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 47 symbols (0 exported) across 3 files.
|
|
30
|
+
|
|
31
|
+
## Entry Points
|
|
32
|
+
- **`root`** [variable] — 37 incoming references
|
|
33
|
+
- **`version`** [variable] — 4 incoming references
|
|
34
|
+
- **`ROOT`** [variable] — 2 incoming references
|
|
35
|
+
- **`outDir`** [variable] — 2 incoming references
|
|
36
|
+
- **`main`** [function] — 2 incoming references
|
|
37
|
+
|
|
38
|
+
## Dependencies
|
|
39
|
+
- **analyzer**: `resolve`
|
|
40
|
+
- **store**: `Database`, `getCodebaseSummary`, `close`
|
|
41
|
+
|
|
42
|
+
## Used By
|
|
43
|
+
- **docs**: `main`
|
|
44
|
+
- **analyzer**: `root`
|
|
45
|
+
- **root**: `version`, `outDir`, `root`
|
|
46
|
+
- **parser**: `root`
|
|
47
|
+
- **security**: `version`
|
|
48
|
+
- **server**: `root`
|
|
49
|
+
- **test**: `root`
|
|
50
|
+
|
|
51
|
+
## Files
|
|
52
|
+
- scripts/build-standalone.mjs
|
|
53
|
+
- scripts/generate-release-stats.js
|
|
54
|
+
- scripts/update-docs.js
|