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,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] —
|
|
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
|
-
|
|
65
|
-
|
|
66
|
-
- **
|
|
67
|
-
- **
|
|
68
|
-
- **
|
|
69
|
-
- **
|
|
70
|
-
- **
|
|
71
|
-
- **
|
|
72
|
-
- **
|
|
73
|
-
- **
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
- test/fixtures/accuracy/go-project/src/
|
|
78
|
-
- test/fixtures/accuracy/go-project/src/
|
|
79
|
-
- test/fixtures/accuracy/
|
|
80
|
-
- test/fixtures/accuracy/java-project/src/
|
|
81
|
-
- test/fixtures/accuracy/
|
|
82
|
-
- test/fixtures/accuracy/js-project/src/
|
|
83
|
-
- test/fixtures/accuracy/js-project/src/
|
|
84
|
-
- test/fixtures/accuracy/
|
|
85
|
-
- test/fixtures/accuracy/php-project/src/
|
|
86
|
-
- test/fixtures/accuracy/php-project/src/
|
|
87
|
-
- test/fixtures/accuracy/
|
|
88
|
-
- test/fixtures/accuracy/py-project/src/
|
|
89
|
-
- test/fixtures/accuracy/py-project/src/
|
|
90
|
-
- test/fixtures/accuracy/
|
|
91
|
-
- test/fixtures/accuracy/ruby-project/src/
|
|
92
|
-
- test/fixtures/accuracy/ruby-project/src/
|
|
93
|
-
- test/fixtures/accuracy/
|
|
94
|
-
- test/fixtures/accuracy/rust-project/src/
|
|
95
|
-
- test/fixtures/accuracy/rust-project/src/
|
|
96
|
-
- test/fixtures/accuracy/
|
|
97
|
-
- test/fixtures/accuracy/ts-project/src/
|
|
98
|
-
- test/fixtures/accuracy/ts-project/src/
|
|
99
|
-
- test/fixtures/
|
|
100
|
-
- test/fixtures/go-project/
|
|
101
|
-
- test/fixtures/
|
|
102
|
-
- test/fixtures/html-project/css/
|
|
103
|
-
- test/fixtures/html-project/
|
|
104
|
-
- test/fixtures/html-project/
|
|
105
|
-
- test/fixtures/html-project/js/
|
|
106
|
-
- test/fixtures/
|
|
107
|
-
- test/fixtures/md-project/
|
|
108
|
-
- test/fixtures/
|
|
109
|
-
- test/fixtures/py-project/
|
|
110
|
-
- test/fixtures/
|
|
111
|
-
- test/fixtures/ts-project/src/
|
|
112
|
-
- test/fixtures/ts-project/src/
|
|
113
|
-
- test/fixtures/ts-project/src/
|
|
114
|
-
- test/fixtures/
|
|
115
|
-
- test/fixtures/vue-project-refs/src/
|
|
116
|
-
- test/fixtures/vue-project/src/
|
|
117
|
-
- test/fixtures/vue-project/src/
|
|
118
|
-
- test/
|
|
119
|
-
- test/unit/
|
|
120
|
-
- test/unit/
|
|
121
|
-
- test/unit/
|
|
122
|
-
- test/unit/
|
|
123
|
-
- test/unit/
|
|
124
|
-
- test/unit/
|
|
125
|
-
- test/unit/
|
|
126
|
-
- test/unit/
|
|
127
|
-
- test/unit/
|
|
128
|
-
- test/unit/
|
|
129
|
-
- test/unit/
|
|
130
|
-
- test/unit/
|
|
131
|
-
- test/unit/
|
|
132
|
-
- test/unit/
|
|
133
|
-
- test/unit/
|
|
134
|
-
- test/unit/mcp-
|
|
135
|
-
- test/unit/
|
|
136
|
-
- test/unit/
|
|
137
|
-
- test/unit/
|
|
138
|
-
- test/unit/
|
|
139
|
-
- test/unit/parser-
|
|
140
|
-
- test/unit/
|
|
141
|
-
- test/unit/
|
|
142
|
-
- test/unit/
|
|
143
|
-
- test/unit/
|
|
144
|
-
- test/unit/
|
|
145
|
-
- test/unit/
|
|
146
|
-
- test/unit/
|
|
147
|
-
- test/unit/
|
|
148
|
-
- test/unit/
|
|
149
|
-
- test/unit/
|
|
150
|
-
- test/unit/
|
|
151
|
-
- test/unit/
|
|
152
|
-
- test/unit/
|
|
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
|