milens 0.6.9 → 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.
@@ -1,152 +1,153 @@
1
- ---
2
- name: milens-test
3
- description: Code intelligence for the test area — symbols, dependencies, and entry points
4
- ---
5
-
6
- # Test
7
-
8
- ## Working with this area
9
- When working with code in **test/**, 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 328 symbols (119 exported) across 77 files.
30
-
31
- ## Key Symbols
32
- - **`User`** [class] (test/fixtures/accuracy/py-project/src/models.py:1) — 6 refs
33
- - **`Calculator`** [class] (test/fixtures/accuracy/js-project/src/calculator.js:1) — 5 refs
34
- - **`User`** [interface] (test/fixtures/ts-project/src/models.ts:1) — 5 refs
35
- - **`save`** [method] (test/fixtures/accuracy/py-project/src/models.py:14) — 4 refs
36
- - **`User`** [interface] (test/fixtures/accuracy/ts-project/src/models.ts:1) — 3 refs
37
- - **`User`** [class] (test/fixtures/py-project/models.py:1) — 3 refs
38
- - **`User`** [class] (test/fixtures/accuracy/ruby-project/src/models.rb:1) — 3 refs
39
- - **`createCalc`** [function] (test/fixtures/accuracy/js-project/src/calculator.js:6) — 2 refs
40
- - **`UserRepository`** [class] (test/fixtures/accuracy/ts-project/src/models.ts:12) — 2 refs
41
- - **`createUser`** [function] (test/fixtures/ts-project/src/models.ts:9) — 2 refs
42
- - **`UserRole`** [type] (test/fixtures/ts-project/src/models.ts:7) — 2 refs
43
- - **`UserService`** [class] (test/fixtures/ts-project/src/nest-sample.ts:27) — 2 refs
44
- - **`Save`** [method] (test/fixtures/accuracy/go-project/src/models/user.go:16) — 2 refs
45
- - **`UserRepo`** [class] (test/fixtures/accuracy/py-project/src/models.py:10) — 2 refs
46
- - **`UserService`** [class] (test/fixtures/accuracy/py-project/src/service.py:4) — 2 refs
47
-
48
- ## Entry Points
49
- - **`add`** [method] — 43 incoming references
50
- - **`lang`** [variable] — 12 incoming references
51
- - **`dbPath`** [function] — 10 incoming references
52
- - **`User`** [class] — 6 incoming references
53
- - **`Calculator`** [class] — 5 incoming references
54
-
55
- ## Dependencies
56
- - **analyzer**: `analyze`, `loadAliases`, `getCachedTree`, `clearTreeCache`, `enrichMetadata`, `resolveLinksWithStats`, `resolveLinks`, `reviewSymbol` (+10 more)
57
- - **store**: `Database`, `AnnotationStore`, `RepoRegistry`, `boostConfidence`, `decayConfidence`, `getStaleAnnotations`, `promoteSecurityAnnotations`, `runDecayPass` (+77 more)
58
- - **root**: `generateAgentsMd`, `AnnotationKey`, `CodeSymbol`, `SymbolLink`, `computeMetrics`, `formatMetricsReport`, `MilensMetrics`, `RawImport` (+17 more)
59
- - **security**: `detectEcosystem`, `parseDependencies`, `checkVulnerabilities`, `auditDependencies`, `loadRules`, `getRulesByCategory`, `getRulesBySeverity`
60
- - **parser**: `getParser`, `loadLanguage`, `extractFromTree`, `extractVueScript`, `extractVueTemplateRefs`, `extractVueCompositionApi`, `extractVueTemplateAst`, `spec` (+11 more)
61
- - **server**: `HookManager`, `HookConfig`, `defaultOnSessionStart`, `defaultOnSessionEnd`, `defaultOnPreCommit`, `defaultOnFileChange`, `defaultOnPreCompact`, `defaultOnPostCompact` (+10 more)
62
- - **orchestrator**: `Orchestrator`, `formatReport`, `OrchestratorReport`, `subscribe`, `run`, `snapshot`, `compare`, `cancel` (+3 more)
63
-
64
- ## Used By
65
- - **apps**: `add`, `dbPath`
66
- - **docs**: `add`
67
- - **root**: `add`, `dbPath`
68
- - **analyzer**: `add`, `parser`, `lang`
69
- - **orchestrator**: `add`
70
- - **parser**: `lang`, `add`, `parser`
71
- - **security**: `add`
72
- - **server**: `add`, `dbPath`
73
- - **store**: `add`, `dbPath`
74
-
75
- ## Files
76
- - test/fixtures/accuracy/go-project/src/admin.go
77
- - test/fixtures/accuracy/go-project/src/main.go
78
- - test/fixtures/accuracy/go-project/src/models/user.go
79
- - test/fixtures/accuracy/java-project/src/Models.java
80
- - test/fixtures/accuracy/java-project/src/Service.java
81
- - test/fixtures/accuracy/js-project/src/app.js
82
- - test/fixtures/accuracy/js-project/src/calculator.js
83
- - test/fixtures/accuracy/js-project/src/extend.js
84
- - test/fixtures/accuracy/php-project/src/admin.php
85
- - test/fixtures/accuracy/php-project/src/models.php
86
- - test/fixtures/accuracy/php-project/src/service.php
87
- - test/fixtures/accuracy/py-project/src/admin.py
88
- - test/fixtures/accuracy/py-project/src/models.py
89
- - test/fixtures/accuracy/py-project/src/service.py
90
- - test/fixtures/accuracy/ruby-project/src/mixins.rb
91
- - test/fixtures/accuracy/ruby-project/src/models.rb
92
- - test/fixtures/accuracy/ruby-project/src/service.rb
93
- - test/fixtures/accuracy/rust-project/src/admin.rs
94
- - test/fixtures/accuracy/rust-project/src/main.rs
95
- - test/fixtures/accuracy/rust-project/src/models.rs
96
- - test/fixtures/accuracy/ts-project/src/auth.ts
97
- - test/fixtures/accuracy/ts-project/src/index.ts
98
- - test/fixtures/accuracy/ts-project/src/models.ts
99
- - test/fixtures/go-project/models/user.go
100
- - test/fixtures/go-project/service/handler.go
101
- - test/fixtures/html-project/css/main.css
102
- - test/fixtures/html-project/css/reset.css
103
- - test/fixtures/html-project/index.html
104
- - test/fixtures/html-project/js/analytics.js
105
- - test/fixtures/html-project/js/utils.js
106
- - test/fixtures/md-project/README.md
107
- - test/fixtures/md-project/docs/guide.md
108
- - test/fixtures/py-project/models.py
109
- - test/fixtures/py-project/service.py
110
- - test/fixtures/ts-project/src/UserProfile.vue
111
- - test/fixtures/ts-project/src/auth.ts
112
- - test/fixtures/ts-project/src/models.ts
113
- - test/fixtures/ts-project/src/nest-sample.ts
114
- - test/fixtures/vue-project-refs/src/composables/useClipboard.js
115
- - test/fixtures/vue-project-refs/src/views/TestView.vue
116
- - test/fixtures/vue-project/src/composables/useClipboard.js
117
- - test/fixtures/vue-project/src/views/TestView.vue
118
- - test/unit/accuracy.test.ts
119
- - test/unit/agents-md.test.ts
120
- - test/unit/annotations.test.ts
121
- - test/unit/cli.test.ts
122
- - test/unit/confidence.test.ts
123
- - test/unit/database.test.ts
124
- - test/unit/db-extended.test.ts
125
- - test/unit/deps-audit.test.ts
126
- - test/unit/engine.test.ts
127
- - test/unit/enrich.test.ts
128
- - test/unit/extractor.test.ts
129
- - test/unit/hooks.test.ts
130
- - test/unit/html-css.test.ts
131
- - test/unit/languages.test.ts
132
- - test/unit/markdown.test.ts
133
- - test/unit/mcp-prompts.test.ts
134
- - test/unit/mcp-tools.test.ts
135
- - test/unit/metrics.test.ts
136
- - test/unit/mro.test.ts
137
- - test/unit/orchestrator.test.ts
138
- - test/unit/parser-extract-cache.test.ts
139
- - test/unit/parser-loader.test.ts
140
- - test/unit/registry.test.ts
141
- - test/unit/resolver.test.ts
142
- - test/unit/review.test.ts
143
- - test/unit/scanner.test.ts
144
- - test/unit/scope-resolver.test.ts
145
- - test/unit/security-rules.test.ts
146
- - test/unit/server-test-plan.test.ts
147
- - test/unit/skills.test.ts
148
- - test/unit/testplan.test.ts
149
- - test/unit/uninstall.test.ts
150
- - test/unit/utils.test.ts
151
- - test/unit/vectors.test.ts
152
- - test/unit/vue-import.test.ts
1
+ ---
2
+ name: milens-test
3
+ description: Code intelligence for the test area — symbols, dependencies, and entry points
4
+ ---
5
+
6
+ # Test
7
+
8
+ ## Working with this area
9
+ When working with code in **test/**, 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 328 symbols (119 exported) across 77 files.
30
+
31
+ ## Key Symbols
32
+ - **`User`** [class] (test/fixtures/accuracy/py-project/src/models.py:1) — 6 refs
33
+ - **`Calculator`** [class] (test/fixtures/accuracy/js-project/src/calculator.js:1) — 5 refs
34
+ - **`User`** [interface] (test/fixtures/ts-project/src/models.ts:1) — 5 refs
35
+ - **`save`** [method] (test/fixtures/accuracy/py-project/src/models.py:14) — 4 refs
36
+ - **`User`** [interface] (test/fixtures/accuracy/ts-project/src/models.ts:1) — 3 refs
37
+ - **`User`** [class] (test/fixtures/py-project/models.py:1) — 3 refs
38
+ - **`User`** [class] (test/fixtures/accuracy/ruby-project/src/models.rb:1) — 3 refs
39
+ - **`createCalc`** [function] (test/fixtures/accuracy/js-project/src/calculator.js:6) — 2 refs
40
+ - **`UserRepository`** [class] (test/fixtures/accuracy/ts-project/src/models.ts:12) — 2 refs
41
+ - **`createUser`** [function] (test/fixtures/ts-project/src/models.ts:9) — 2 refs
42
+ - **`UserRole`** [type] (test/fixtures/ts-project/src/models.ts:7) — 2 refs
43
+ - **`UserService`** [class] (test/fixtures/ts-project/src/nest-sample.ts:27) — 2 refs
44
+ - **`Save`** [method] (test/fixtures/accuracy/go-project/src/models/user.go:16) — 2 refs
45
+ - **`UserRepo`** [class] (test/fixtures/accuracy/py-project/src/models.py:10) — 2 refs
46
+ - **`UserService`** [class] (test/fixtures/accuracy/py-project/src/service.py:4) — 2 refs
47
+
48
+ ## Entry Points
49
+ - **`add`** [method] — 46 incoming references
50
+ - **`lang`** [variable] — 12 incoming references
51
+ - **`dbPath`** [function] — 10 incoming references
52
+ - **`User`** [class] — 6 incoming references
53
+ - **`Calculator`** [class] — 5 incoming references
54
+
55
+ ## Dependencies
56
+ - **analyzer**: `analyze`, `loadAliases`, `getCachedTree`, `clearTreeCache`, `enrichMetadata`, `resolveLinksWithStats`, `resolveLinks`, `reviewSymbol` (+10 more)
57
+ - **store**: `Database`, `AnnotationStore`, `RepoRegistry`, `boostConfidence`, `decayConfidence`, `getStaleAnnotations`, `promoteSecurityAnnotations`, `runDecayPass` (+77 more)
58
+ - **root**: `generateAgentsMd`, `AnnotationKey`, `CodeSymbol`, `SymbolLink`, `computeMetrics`, `formatMetricsReport`, `MilensMetrics`, `RawImport` (+17 more)
59
+ - **security**: `detectEcosystem`, `parseDependencies`, `checkVulnerabilities`, `auditDependencies`, `loadRules`, `getRulesByCategory`, `getRulesBySeverity`
60
+ - **parser**: `getParser`, `loadLanguage`, `extractFromTree`, `extractVueScript`, `extractVueTemplateRefs`, `extractVueCompositionApi`, `extractVueTemplateAst`, `spec` (+11 more)
61
+ - **server**: `HookManager`, `HookConfig`, `defaultOnSessionStart`, `defaultOnSessionEnd`, `defaultOnPreCommit`, `defaultOnFileChange`, `defaultOnPreCompact`, `defaultOnPostCompact` (+10 more)
62
+ - **orchestrator**: `Orchestrator`, `formatReport`, `OrchestratorReport`, `subscribe`, `run`, `snapshot`, `compare`, `cancel` (+3 more)
63
+ - **scripts**: `root`
64
+
65
+ ## Used By
66
+ - **apps**: `add`, `dbPath`
67
+ - **docs**: `add`
68
+ - **root**: `add`, `dbPath`
69
+ - **analyzer**: `add`, `parser`, `lang`
70
+ - **orchestrator**: `add`
71
+ - **parser**: `lang`, `add`, `parser`
72
+ - **security**: `add`
73
+ - **server**: `add`, `dbPath`
74
+ - **store**: `add`, `dbPath`
75
+
76
+ ## Files
77
+ - test/fixtures/accuracy/go-project/src/admin.go
78
+ - test/fixtures/accuracy/go-project/src/main.go
79
+ - test/fixtures/accuracy/go-project/src/models/user.go
80
+ - test/fixtures/accuracy/java-project/src/Models.java
81
+ - test/fixtures/accuracy/java-project/src/Service.java
82
+ - test/fixtures/accuracy/js-project/src/app.js
83
+ - test/fixtures/accuracy/js-project/src/calculator.js
84
+ - test/fixtures/accuracy/js-project/src/extend.js
85
+ - test/fixtures/accuracy/php-project/src/admin.php
86
+ - test/fixtures/accuracy/php-project/src/models.php
87
+ - test/fixtures/accuracy/php-project/src/service.php
88
+ - test/fixtures/accuracy/py-project/src/admin.py
89
+ - test/fixtures/accuracy/py-project/src/models.py
90
+ - test/fixtures/accuracy/py-project/src/service.py
91
+ - test/fixtures/accuracy/ruby-project/src/mixins.rb
92
+ - test/fixtures/accuracy/ruby-project/src/models.rb
93
+ - test/fixtures/accuracy/ruby-project/src/service.rb
94
+ - test/fixtures/accuracy/rust-project/src/admin.rs
95
+ - test/fixtures/accuracy/rust-project/src/main.rs
96
+ - test/fixtures/accuracy/rust-project/src/models.rs
97
+ - test/fixtures/accuracy/ts-project/src/auth.ts
98
+ - test/fixtures/accuracy/ts-project/src/index.ts
99
+ - test/fixtures/accuracy/ts-project/src/models.ts
100
+ - test/fixtures/go-project/models/user.go
101
+ - test/fixtures/go-project/service/handler.go
102
+ - test/fixtures/html-project/css/main.css
103
+ - test/fixtures/html-project/css/reset.css
104
+ - test/fixtures/html-project/index.html
105
+ - test/fixtures/html-project/js/analytics.js
106
+ - test/fixtures/html-project/js/utils.js
107
+ - test/fixtures/md-project/README.md
108
+ - test/fixtures/md-project/docs/guide.md
109
+ - test/fixtures/py-project/models.py
110
+ - test/fixtures/py-project/service.py
111
+ - test/fixtures/ts-project/src/UserProfile.vue
112
+ - test/fixtures/ts-project/src/auth.ts
113
+ - test/fixtures/ts-project/src/models.ts
114
+ - test/fixtures/ts-project/src/nest-sample.ts
115
+ - test/fixtures/vue-project-refs/src/composables/useClipboard.js
116
+ - test/fixtures/vue-project-refs/src/views/TestView.vue
117
+ - test/fixtures/vue-project/src/composables/useClipboard.js
118
+ - test/fixtures/vue-project/src/views/TestView.vue
119
+ - test/unit/accuracy.test.ts
120
+ - test/unit/agents-md.test.ts
121
+ - test/unit/annotations.test.ts
122
+ - test/unit/cli.test.ts
123
+ - test/unit/confidence.test.ts
124
+ - test/unit/database.test.ts
125
+ - test/unit/db-extended.test.ts
126
+ - test/unit/deps-audit.test.ts
127
+ - test/unit/engine.test.ts
128
+ - test/unit/enrich.test.ts
129
+ - test/unit/extractor.test.ts
130
+ - test/unit/hooks.test.ts
131
+ - test/unit/html-css.test.ts
132
+ - test/unit/languages.test.ts
133
+ - test/unit/markdown.test.ts
134
+ - test/unit/mcp-prompts.test.ts
135
+ - test/unit/mcp-tools.test.ts
136
+ - test/unit/metrics.test.ts
137
+ - test/unit/mro.test.ts
138
+ - test/unit/orchestrator.test.ts
139
+ - test/unit/parser-extract-cache.test.ts
140
+ - test/unit/parser-loader.test.ts
141
+ - test/unit/registry.test.ts
142
+ - test/unit/resolver.test.ts
143
+ - test/unit/review.test.ts
144
+ - test/unit/scanner.test.ts
145
+ - test/unit/scope-resolver.test.ts
146
+ - test/unit/security-rules.test.ts
147
+ - test/unit/server-test-plan.test.ts
148
+ - test/unit/skills.test.ts
149
+ - test/unit/testplan.test.ts
150
+ - test/unit/uninstall.test.ts
151
+ - test/unit/utils.test.ts
152
+ - test/unit/vectors.test.ts
153
+ - test/unit/vue-import.test.ts
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: milens-ui
3
+ description: Code intelligence for the ui area — symbols, dependencies, and entry points
4
+ ---
5
+
6
+ # Ui
7
+
8
+ ## Working with this area
9
+ When working with code in **ui/**, 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 10 symbols (3 exported) across 1 files.
30
+
31
+ ## Key Symbols
32
+ - **`ProgressPhase`** [enum] (src/ui/progress.ts:3) — 3 refs
33
+ - **`createProgressReporter`** [function] (src/ui/progress.ts:18) — 2 refs
34
+ - **`ProgressReporter`** [interface] (src/ui/progress.ts:10) — 2 refs
35
+
36
+ ## Entry Points
37
+ - **`renderBar`** [function] — 3 incoming references
38
+ - **`finalize`** [method] — 3 incoming references
39
+ - **`ProgressPhase`** [enum] — 3 incoming references
40
+ - **`createProgressReporter`** [function] — 2 incoming references
41
+ - **`ProgressReporter`** [interface] — 2 incoming references
42
+
43
+ ## Dependencies
44
+ - **root**: `AnalysisStats`
45
+
46
+ ## Used By
47
+ - **analyzer**: `ProgressPhase`, `ProgressReporter`, `startPhase`, `tick`, `endPhase`, `done`, `finalize`
48
+ - **root**: `createProgressReporter`, `finalize`
49
+
50
+ ## Files
51
+ - src/ui/progress.ts