milens 0.7.0 → 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 +16 -19
- package/.agents/skills/apps/SKILL.md +60 -68
- package/.agents/skills/docs/SKILL.md +5 -25
- package/.agents/skills/milens/SKILL.md +6 -6
- package/.agents/skills/orchestrator/SKILL.md +8 -10
- package/.agents/skills/parser/SKILL.md +9 -11
- package/.agents/skills/root/SKILL.md +25 -29
- package/.agents/skills/scripts/SKILL.md +13 -16
- package/.agents/skills/security/SKILL.md +4 -9
- package/.agents/skills/server/SKILL.md +28 -25
- package/.agents/skills/store/SKILL.md +17 -21
- package/.agents/skills/test/SKILL.md +14 -19
- package/.agents/skills/ui/SKILL.md +1 -1
- package/README.md +12 -3
- package/adapters/README.md +144 -107
- 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/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/settings.json +9 -0
- 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 +142 -16
- 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/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 +8 -2
- 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 +87 -20
- 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 +11 -8
- 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
|
|
@@ -26,49 +26,46 @@ When working with code in **analyzer/**, follow these mandatory safety rules:
|
|
|
26
26
|
| See file symbols | `mcp_milens_get_file_symbols` |
|
|
27
27
|
|
|
28
28
|
## Overview
|
|
29
|
-
Contains
|
|
29
|
+
Contains 119 symbols (24 exported) across 8 files.
|
|
30
30
|
|
|
31
31
|
## Key Symbols
|
|
32
|
+
- **`analyze`** [function] (src/analyzer/engine.ts:139) — 10 refs
|
|
32
33
|
- **`resolveLinksWithStats`** [function] (src/analyzer/resolver.ts:37) — 9 refs
|
|
33
|
-
- **`reviewPr`** [function] (src/analyzer/review.ts:
|
|
34
|
-
- **`
|
|
34
|
+
- **`reviewPr`** [function] (src/analyzer/review.ts:244) — 9 refs
|
|
35
|
+
- **`countDependentFiles`** [function] (src/analyzer/risk.ts:13) — 9 refs
|
|
35
36
|
- **`loadAliases`** [function] (src/analyzer/config.ts:10) — 6 refs
|
|
36
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
|
|
37
40
|
- **`diffResolutions`** [function] (src/analyzer/scope-resolver.ts:768) — 5 refs
|
|
38
41
|
- **`enrichMetadata`** [function] (src/analyzer/enrich.ts:21) — 4 refs
|
|
39
|
-
- **`ReviewResult`** [interface] (src/analyzer/review.ts:
|
|
42
|
+
- **`ReviewResult`** [interface] (src/analyzer/review.ts:19) — 4 refs
|
|
40
43
|
- **`scanFiles`** [function] (src/analyzer/scanner.ts:11) — 4 refs
|
|
41
44
|
- **`resolveWithScopes`** [function] (src/analyzer/scope-resolver.ts:48) — 4 refs
|
|
42
45
|
- **`clearTreeCache`** [function] (src/analyzer/engine.ts:29) — 3 refs
|
|
43
46
|
- **`resolveLinks`** [function] (src/analyzer/resolver.ts:32) — 3 refs
|
|
44
|
-
- **`computeDiffStats`** [function] (src/analyzer/scope-resolver.ts:806) — 3 refs
|
|
45
|
-
- **`getCachedTree`** [function] (src/analyzer/engine.ts:26) — 2 refs
|
|
46
|
-
- **`reviewSymbol`** [function] (src/analyzer/review.ts:396) — 2 refs
|
|
47
47
|
|
|
48
48
|
## Entry Points
|
|
49
|
-
- **`resolve`** [method] — 25 incoming references
|
|
50
|
-
- **`find`** [function] — 14 incoming references
|
|
51
49
|
- **`ScopeNode`** [interface] — 11 incoming references
|
|
50
|
+
- **`analyze`** [function] — 10 incoming references
|
|
52
51
|
- **`resolveLinksWithStats`** [function] — 9 incoming references
|
|
53
52
|
- **`reviewPr`** [function] — 9 incoming references
|
|
53
|
+
- **`countDependentFiles`** [function] — 9 incoming references
|
|
54
54
|
|
|
55
55
|
## Dependencies
|
|
56
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
|
-
- **ui**: `ProgressPhase`, `ProgressReporter`, `startPhase`, `tick`, `endPhase`, `
|
|
60
|
-
- **test**: `add`, `parser`, `lang`
|
|
61
|
-
- **scripts**: `root`
|
|
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`
|
|
62
60
|
|
|
63
61
|
## Used By
|
|
64
|
-
- **root**: `loadAliases`, `analyze`, `resolve
|
|
62
|
+
- **root**: `loadAliases`, `analyze`, `resolve`
|
|
65
63
|
- **orchestrator**: `reviewPr`, `ReviewResult`, `SymbolRisk`
|
|
66
|
-
- **server**: `reviewPr`, `
|
|
67
|
-
- **test**: `analyze`, `loadAliases`, `getCachedTree`, `clearTreeCache`, `enrichMetadata`, `resolveLinksWithStats`, `resolveLinks`, `reviewSymbol` (+
|
|
64
|
+
- **server**: `reviewPr`, `countDependentFiles`, `analyze`
|
|
65
|
+
- **test**: `analyze`, `loadAliases`, `getCachedTree`, `clearTreeCache`, `enrichMetadata`, `resolveLinksWithStats`, `resolveLinks`, `reviewSymbol` (+9 more)
|
|
68
66
|
- **apps**: `resolve`
|
|
69
67
|
- **scripts**: `resolve`
|
|
70
68
|
- **parser**: `resolve`
|
|
71
|
-
- **store**: `resolve`
|
|
72
69
|
|
|
73
70
|
## Files
|
|
74
71
|
- src/analyzer/config.ts
|
|
@@ -76,6 +73,6 @@ Contains 128 symbols (29 exported) across 8 files.
|
|
|
76
73
|
- src/analyzer/enrich.ts
|
|
77
74
|
- src/analyzer/resolver.ts
|
|
78
75
|
- src/analyzer/review.ts
|
|
76
|
+
- src/analyzer/risk.ts
|
|
79
77
|
- src/analyzer/scanner.ts
|
|
80
78
|
- src/analyzer/scope-resolver.ts
|
|
81
|
-
- src/analyzer/testplan.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
|
|
@@ -26,9 +26,12 @@ When working with code in **docs/**, follow these mandatory safety rules:
|
|
|
26
26
|
| See file symbols | `mcp_milens_get_file_symbols` |
|
|
27
27
|
|
|
28
28
|
## Overview
|
|
29
|
-
Contains
|
|
29
|
+
Contains 122 symbols (112 exported) across 10 files.
|
|
30
30
|
|
|
31
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
|
|
32
35
|
- **`Accuracy Engine`** [section] (docs/accuracy.md:1) — 0 refs
|
|
33
36
|
- **`Type Bindings`** [section] (docs/accuracy.md:5) — 0 refs
|
|
34
37
|
- **`Method Resolution Order (MRO)`** [section] (docs/accuracy.md:29) — 0 refs
|
|
@@ -40,39 +43,16 @@ Contains 137 symbols (114 exported) across 21 files.
|
|
|
40
43
|
- **`Available Adapters`** [section] (docs/adapters.md:5) — 0 refs
|
|
41
44
|
- **`Quick Install`** [section] (docs/adapters.md:17) — 0 refs
|
|
42
45
|
- **`Claude Code`** [section] (docs/adapters.md:21) — 0 refs
|
|
43
|
-
- **`OpenCode`** [section] (docs/adapters.md:
|
|
44
|
-
- **`Cursor`** [section] (docs/adapters.md:36) — 0 refs
|
|
45
|
-
- **`GitHub Copilot`** [section] (docs/adapters.md:42) — 0 refs
|
|
46
|
-
- **`Codex`** [section] (docs/adapters.md:48) — 0 refs
|
|
47
|
-
|
|
48
|
-
## Entry Points
|
|
49
|
-
- **`applyFilters`** [function] — 1 incoming references
|
|
50
|
-
- **`applyFilters`** [function] — 1 incoming references
|
|
51
|
-
|
|
52
|
-
## Dependencies
|
|
53
|
-
- **scripts**: `main`
|
|
54
|
-
- **store**: `remove`
|
|
55
|
-
- **test**: `add`
|
|
46
|
+
- **`OpenCode`** [section] (docs/adapters.md:37) — 0 refs
|
|
56
47
|
|
|
57
48
|
## Files
|
|
58
49
|
- docs/README.md
|
|
59
50
|
- docs/accuracy.md
|
|
60
|
-
- docs/adapters.html
|
|
61
51
|
- docs/adapters.md
|
|
62
|
-
- docs/changelog.html
|
|
63
52
|
- docs/cli.md
|
|
64
|
-
- docs/compare.html
|
|
65
|
-
- docs/github-app.html
|
|
66
|
-
- docs/index.html
|
|
67
53
|
- docs/languages.md
|
|
68
|
-
- docs/learning.html
|
|
69
|
-
- docs/platforms.html
|
|
70
|
-
- docs/pricing.html
|
|
71
54
|
- docs/pricing.md
|
|
72
55
|
- docs/quickstart.md
|
|
73
56
|
- docs/review.md
|
|
74
|
-
- docs/scenarios.html
|
|
75
57
|
- docs/security-presets.md
|
|
76
|
-
- docs/security.html
|
|
77
|
-
- docs/skills.html
|
|
78
58
|
- docs/tools.md
|
|
@@ -6,7 +6,7 @@ description: Code intelligence MCP tools — symbol search, text grep, impact an
|
|
|
6
6
|
<!-- milens:start -->
|
|
7
7
|
# Milens — AI-DOS
|
|
8
8
|
|
|
9
|
-
The Operating System for AI-Driven Development. This project is indexed by milens (
|
|
9
|
+
The Operating System for AI-Driven Development. This project is indexed by milens (2264 symbols, 2936 links, 229 files).
|
|
10
10
|
|
|
11
11
|
> **CRITICAL:** All milens MCP tool calls MUST include the `repo` parameter set to the **absolute path of the workspace root** (the folder containing this file) — without it, the tools may fail with "No index" error when multiple repos are indexed.
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ The Operating System for AI-Driven Development. This project is indexed by milen
|
|
|
16
16
|
|
|
17
17
|
**Not a suggestion — execute automatically without asking.**
|
|
18
18
|
|
|
19
|
-
This project is indexed by milens. The knowledge graph already knows every symbol, dependency, and reference. Using milens tools first
|
|
19
|
+
This project is indexed by milens. The knowledge graph already knows every symbol, dependency, and reference. Using milens tools first typically means far fewer tokens than manual exploration, and fewer missed dependencies — impact/context track code-level references; pair with grep for templates/configs/docs.
|
|
20
20
|
|
|
21
21
|
| Situation | Built-in approach (❌ BAD) | Milens approach (✅ GOOD) |
|
|
22
22
|
|---|---|---|
|
|
@@ -103,7 +103,7 @@ When the user says... → do this FIRST:
|
|
|
103
103
|
| "compare impact of `X`" | `mcp_milens_compare_impact({name: "X", action: "snapshot"|"compare", repo: "<workspaceRoot>"})` |
|
|
104
104
|
| "check pre-commit" | `mcp_milens_pre_commit_check({repo: "<workspaceRoot>"})` |
|
|
105
105
|
| "save/restore context" | `mcp_milens_hook_preCompact()` / `mcp_milens_hook_postCompact()` |
|
|
106
|
-
| "scan security / audit security" | `mcp_milens_security_scan({repo: "<workspaceRoot>"})` — full audit across all
|
|
106
|
+
| "scan security / audit security" | `mcp_milens_security_scan({repo: "<workspaceRoot>"})` — full audit across all 190 rules |
|
|
107
107
|
| "end session" / "finish work" | `mcp_milens_session_end({session_id: "..."})` — record stats, trigger onSessionEnd hook |
|
|
108
108
|
| "what did session X do" | `mcp_milens_session_context({session_id: "..."})` — get annotations + tool calls |
|
|
109
109
|
| "file changed to X" | `mcp_milens_hook_onFileChange({files: ["path/to/file"], repo: "<workspaceRoot>"})` |
|
|
@@ -175,7 +175,7 @@ Every time you discover something important about a symbol, annotate it. The sys
|
|
|
175
175
|
| Find what needs testing most | `mcp_milens_test_coverage_gaps()` — sorted by risk |
|
|
176
176
|
| Get a test strategy | `mcp_milens_test_plan({name: "functionName"})` — mocks + scenarios |
|
|
177
177
|
| Review your changes | `mcp_milens_review_pr()` — risk scores for changed symbols |
|
|
178
|
-
| Check for security issues | `mcp_milens_security_scan()` —
|
|
178
|
+
| Check for security issues | `mcp_milens_security_scan()` — 190 rules in one call |
|
|
179
179
|
| Remove dead code safely | `mcp_milens_find_dead_code()` then use `dead_code_remove` prompt |
|
|
180
180
|
| Trace how code executes | `mcp_milens_trace({name: "functionName", direction: "to"})` |
|
|
181
181
|
| Find API endpoints | `mcp_milens_routes()` — auto-detect across 7 frameworks |
|
|
@@ -252,7 +252,7 @@ Milens indexes **Markdown files** (.md, .mdx) — headings become `section` symb
|
|
|
252
252
|
| `mcp_milens_test_coverage_gaps` | Untested symbols sorted by risk | Finding test priorities |
|
|
253
253
|
| `mcp_milens_test_impact` | Maps changes → test files | After making edits |
|
|
254
254
|
| `mcp_milens_test_generate` | Auto-generate test file | Starting tests from scratch |
|
|
255
|
-
| `mcp_milens_security_scan` |
|
|
255
|
+
| `mcp_milens_security_scan` | 190 security rules | Security audit requested |
|
|
256
256
|
| `mcp_milens_trace` | Call chains from entrypoints | Debugging execution flow |
|
|
257
257
|
| `mcp_milens_routes` | Framework routes/endpoints | Finding API endpoints |
|
|
258
258
|
| `mcp_milens_smart_context` | Intent-aware context | Understand/edit/debug/test modes |
|
|
@@ -295,8 +295,8 @@ After significant code changes: `npx milens analyze -p . --force` (replace `.` w
|
|
|
295
295
|
| Task | Read this skill file |
|
|
296
296
|
|------|---------------------|
|
|
297
297
|
| General milens tools reference | `.agents/skills/milens/SKILL.md` |
|
|
298
|
-
| Work in the Adapters area | `.agents/skills/adapters/SKILL.md` |
|
|
299
298
|
| Work in the Root area | `.agents/skills/root/SKILL.md` |
|
|
299
|
+
| Work in the Adapters area | `.agents/skills/adapters/SKILL.md` |
|
|
300
300
|
| Work in the Apps area | `.agents/skills/apps/SKILL.md` |
|
|
301
301
|
| Work in the Docs area | `.agents/skills/docs/SKILL.md` |
|
|
302
302
|
| Work in the Test area | `.agents/skills/test/SKILL.md` |
|
|
@@ -26,35 +26,33 @@ When working with code in **orchestrator/**, follow these mandatory safety rules
|
|
|
26
26
|
| See file symbols | `mcp_milens_get_file_symbols` |
|
|
27
27
|
|
|
28
28
|
## Overview
|
|
29
|
-
Contains
|
|
29
|
+
Contains 23 symbols (7 exported) across 2 files.
|
|
30
30
|
|
|
31
31
|
## Key Symbols
|
|
32
|
-
- **`Orchestrator`** [class] (src/orchestrator/orchestrator.ts:
|
|
32
|
+
- **`Orchestrator`** [class] (src/orchestrator/orchestrator.ts:46) — 6 refs
|
|
33
33
|
- **`OrchestratorReport`** [interface] (src/orchestrator/reporter.ts:4) — 5 refs
|
|
34
34
|
- **`formatReport`** [function] (src/orchestrator/reporter.ts:17) — 4 refs
|
|
35
|
-
- **`OrchestratorConfig`** [interface] (src/orchestrator/orchestrator.ts:
|
|
36
|
-
- **`ImpactSnapshot`** [interface] (src/orchestrator/orchestrator.ts:
|
|
35
|
+
- **`OrchestratorConfig`** [interface] (src/orchestrator/orchestrator.ts:20) — 2 refs
|
|
36
|
+
- **`ImpactSnapshot`** [interface] (src/orchestrator/orchestrator.ts:28) — 2 refs
|
|
37
37
|
- **`ReportOptions`** [interface] (src/orchestrator/reporter.ts:13) — 2 refs
|
|
38
|
-
- **`ImpactDiff`** [interface] (src/orchestrator/orchestrator.ts:
|
|
38
|
+
- **`ImpactDiff`** [interface] (src/orchestrator/orchestrator.ts:35) — 1 refs
|
|
39
39
|
|
|
40
40
|
## Entry Points
|
|
41
41
|
- **`Orchestrator`** [class] — 6 incoming references
|
|
42
|
-
- **`e`** [function] — 5 incoming references
|
|
43
42
|
- **`OrchestratorReport`** [interface] — 5 incoming references
|
|
44
43
|
- **`formatReport`** [function] — 4 incoming references
|
|
45
44
|
- **`snapshot`** [method] — 3 incoming references
|
|
45
|
+
- **`run`** [method] — 3 incoming references
|
|
46
46
|
|
|
47
47
|
## Dependencies
|
|
48
|
-
- **store**: `Database`, `findSymbolByName`, `findUpstream`, `
|
|
48
|
+
- **store**: `Database`, `findSymbolByName`, `findUpstream`, `getTestCoverageGaps`, `findDeadCode`
|
|
49
49
|
- **analyzer**: `reviewPr`, `ReviewResult`, `SymbolRisk`
|
|
50
|
-
- **root**: `CodeSymbol
|
|
51
|
-
- **test**: `add`
|
|
50
|
+
- **root**: `CodeSymbol`
|
|
52
51
|
|
|
53
52
|
## Used By
|
|
54
53
|
- **root**: `Orchestrator`, `subscribe`, `runAndFormat`
|
|
55
54
|
- **server**: `Orchestrator`, `loadSnapshots`, `snapshot`, `persistSnapshots`, `compare`, `runAndFormat`
|
|
56
55
|
- **test**: `Orchestrator`, `formatReport`, `OrchestratorReport`, `subscribe`, `run`, `snapshot`, `compare`, `cancel` (+3 more)
|
|
57
|
-
- **apps**: `e`
|
|
58
56
|
|
|
59
57
|
## Files
|
|
60
58
|
- src/orchestrator/orchestrator.ts
|
|
@@ -26,13 +26,13 @@ When working with code in **parser/**, follow these mandatory safety rules:
|
|
|
26
26
|
| See file symbols | `mcp_milens_get_file_symbols` |
|
|
27
27
|
|
|
28
28
|
## Overview
|
|
29
|
-
Contains
|
|
29
|
+
Contains 82 symbols (31 exported) across 16 files.
|
|
30
30
|
|
|
31
31
|
## Key Symbols
|
|
32
32
|
- **`LangSpec`** [interface] (src/parser/extract.ts:6) — 32 refs
|
|
33
|
-
- **`loadLanguage`** [function] (src/parser/loader.ts:21) —
|
|
34
|
-
- **`getParser`** [function] (src/parser/loader.ts:32) —
|
|
35
|
-
- **`extractFromTree`** [function] (src/parser/extract.ts:
|
|
33
|
+
- **`loadLanguage`** [function] (src/parser/loader.ts:21) — 15 refs
|
|
34
|
+
- **`getParser`** [function] (src/parser/loader.ts:32) — 14 refs
|
|
35
|
+
- **`extractFromTree`** [function] (src/parser/extract.ts:267) — 9 refs
|
|
36
36
|
- **`supportedExtensions`** [function] (src/parser/languages.ts:29) — 6 refs
|
|
37
37
|
- **`extractHtmlScripts`** [function] (src/parser/lang-html.ts:38) — 5 refs
|
|
38
38
|
- **`extractMarkdown`** [function] (src/parser/lang-md.ts:34) — 5 refs
|
|
@@ -42,20 +42,18 @@ Contains 83 symbols (31 exported) across 16 files.
|
|
|
42
42
|
- **`clearQueryCache`** [function] (src/parser/extract.ts:72) — 4 refs
|
|
43
43
|
- **`extractHtmlRefs`** [function] (src/parser/lang-html.ts:57) — 4 refs
|
|
44
44
|
- **`extractHtmlLinks`** [function] (src/parser/lang-html.ts:99) — 4 refs
|
|
45
|
+
- **`spec`** [variable] (src/parser/lang-js.ts:5) — 4 refs
|
|
45
46
|
- **`extractVueTemplateRefs`** [function] (src/parser/lang-vue.ts:38) — 4 refs
|
|
46
|
-
- **`extractVueTemplateAst`** [function] (src/parser/lang-vue.ts:90) — 4 refs
|
|
47
47
|
|
|
48
48
|
## Entry Points
|
|
49
49
|
- **`LangSpec`** [interface] — 32 incoming references
|
|
50
|
-
- **`loadLanguage`** [function] —
|
|
51
|
-
- **`getParser`** [function] —
|
|
52
|
-
- **`extractFromTree`** [function] —
|
|
50
|
+
- **`loadLanguage`** [function] — 15 incoming references
|
|
51
|
+
- **`getParser`** [function] — 14 incoming references
|
|
52
|
+
- **`extractFromTree`** [function] — 9 incoming references
|
|
53
53
|
- **`supportedExtensions`** [function] — 6 incoming references
|
|
54
54
|
|
|
55
55
|
## Dependencies
|
|
56
|
-
- **root**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+
|
|
57
|
-
- **test**: `lang`, `add`, `parser`
|
|
58
|
-
- **scripts**: `root`
|
|
56
|
+
- **root**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+3 more)
|
|
59
57
|
- **analyzer**: `resolve`
|
|
60
58
|
- **store**: `load`
|
|
61
59
|
|
|
@@ -26,57 +26,53 @@ When working with code in **root/**, follow these mandatory safety rules:
|
|
|
26
26
|
| See file symbols | `mcp_milens_get_file_symbols` |
|
|
27
27
|
|
|
28
28
|
## Overview
|
|
29
|
-
Contains
|
|
29
|
+
Contains 236 symbols (156 exported) across 12 files.
|
|
30
30
|
|
|
31
31
|
## Key Symbols
|
|
32
|
-
- **`CodeSymbol`** [interface] (src/types.ts:8) —
|
|
33
|
-
- **`SymbolLink`** [interface] (src/types.ts:26) —
|
|
34
|
-
- **`RawCall`** [interface] (src/types.ts:
|
|
35
|
-
- **`isTestFile`** [function] (src/utils.ts:2) —
|
|
32
|
+
- **`CodeSymbol`** [interface] (src/types.ts:8) — 50 refs
|
|
33
|
+
- **`SymbolLink`** [interface] (src/types.ts:26) — 22 refs
|
|
34
|
+
- **`RawCall`** [interface] (src/types.ts:45) — 15 refs
|
|
35
|
+
- **`isTestFile`** [function] (src/utils.ts:2) — 10 refs
|
|
36
36
|
- **`RawImport`** [interface] (src/types.ts:35) — 9 refs
|
|
37
|
-
- **`RawHeritage`** [interface] (src/types.ts:
|
|
38
|
-
- **`ExtractionResult`** [interface] (src/types.ts:
|
|
39
|
-
- **`RawTypeBinding`** [interface] (src/types.ts:
|
|
40
|
-
- **`RawAssignmentBinding`** [interface] (src/types.ts:
|
|
41
|
-
- **`
|
|
42
|
-
- **`
|
|
43
|
-
- **`
|
|
37
|
+
- **`RawHeritage`** [interface] (src/types.ts:59) — 7 refs
|
|
38
|
+
- **`ExtractionResult`** [interface] (src/types.ts:67) — 6 refs
|
|
39
|
+
- **`RawTypeBinding`** [interface] (src/types.ts:87) — 6 refs
|
|
40
|
+
- **`RawAssignmentBinding`** [interface] (src/types.ts:95) — 6 refs
|
|
41
|
+
- **`globToRegex`** [function] (src/utils.ts:11) — 6 refs
|
|
42
|
+
- **`RawReturnType`** [interface] (src/types.ts:103) — 5 refs
|
|
43
|
+
- **`RawCallResultBinding`** [interface] (src/types.ts:111) — 5 refs
|
|
44
|
+
- **`AnalysisStats`** [interface] (src/types.ts:120) — 5 refs
|
|
44
45
|
- **`generateAgentsMd`** [function] (src/agents-md.ts:93) — 4 refs
|
|
45
46
|
- **`computeMetrics`** [function] (src/metrics.ts:21) — 4 refs
|
|
46
|
-
- **`formatMetricsReport`** [function] (src/metrics.ts:62) — 4 refs
|
|
47
47
|
|
|
48
48
|
## Entry Points
|
|
49
|
-
- **`CodeSymbol`** [interface] —
|
|
50
|
-
- **`
|
|
51
|
-
- **`SymbolLink`** [interface] — 24 incoming references
|
|
49
|
+
- **`CodeSymbol`** [interface] — 50 incoming references
|
|
50
|
+
- **`SymbolLink`** [interface] — 22 incoming references
|
|
52
51
|
- **`RawCall`** [interface] — 15 incoming references
|
|
53
|
-
- **`isTestFile`** [function] —
|
|
52
|
+
- **`isTestFile`** [function] — 10 incoming references
|
|
53
|
+
- **`RawImport`** [interface] — 9 incoming references
|
|
54
54
|
|
|
55
55
|
## Dependencies
|
|
56
|
-
- **store**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `
|
|
57
|
-
- **analyzer**: `loadAliases`, `analyze`, `resolve
|
|
56
|
+
- **store**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `findDbPath` (+22 more)
|
|
57
|
+
- **analyzer**: `loadAliases`, `analyze`, `resolve`
|
|
58
58
|
- **ui**: `createProgressReporter`, `finalize`
|
|
59
|
-
- **server**: `startHttp`, `startStdio`, `HookManager`, `
|
|
59
|
+
- **server**: `startHttp`, `startStdio`, `HookManager`, `defaultOnSessionStart`, `defaultOnSessionEnd`, `defaultOnPreCompact`, `defaultOnPostCompact`, `enableHook` (+3 more)
|
|
60
60
|
- **security**: `loadRules`, `auditDependencies`
|
|
61
61
|
- **orchestrator**: `Orchestrator`, `subscribe`, `runAndFormat`
|
|
62
|
-
- **test**: `add`, `dbPath`
|
|
63
|
-
- **scripts**: `version`, `outDir`, `root`
|
|
64
62
|
|
|
65
63
|
## Used By
|
|
66
|
-
- **analyzer**: `isTestFile`, `CodeSymbol`, `ExtractionResult`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding` (+
|
|
67
|
-
- **orchestrator**: `CodeSymbol
|
|
68
|
-
- **parser**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+
|
|
69
|
-
- **server**: `generateCrossRefSection`, `
|
|
70
|
-
- **store**: `Annotation`, `AnnotationKey`, `Session`, `EvolutionEvent`, `CodeSymbol`, `SymbolLink`, `RepoEntry
|
|
64
|
+
- **analyzer**: `isTestFile`, `CodeSymbol`, `ExtractionResult`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding` (+7 more)
|
|
65
|
+
- **orchestrator**: `CodeSymbol`
|
|
66
|
+
- **parser**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+3 more)
|
|
67
|
+
- **server**: `generateCrossRefSection`, `globToRegex`
|
|
68
|
+
- **store**: `Annotation`, `AnnotationKey`, `Session`, `EvolutionEvent`, `CodeSymbol`, `SymbolLink`, `RepoEntry`
|
|
71
69
|
- **ui**: `AnalysisStats`
|
|
72
70
|
- **test**: `generateAgentsMd`, `AnnotationKey`, `CodeSymbol`, `SymbolLink`, `computeMetrics`, `formatMetricsReport`, `MilensMetrics`, `RawImport` (+17 more)
|
|
73
|
-
- **security**: `has`
|
|
74
71
|
|
|
75
72
|
## Files
|
|
76
73
|
- AGENTS.md
|
|
77
74
|
- CLAUDE.md
|
|
78
75
|
- CONTRIBUTING.md
|
|
79
|
-
- DEPLOY.md
|
|
80
76
|
- README.md
|
|
81
77
|
- src/agents-md.ts
|
|
82
78
|
- src/cli.ts
|
|
@@ -26,29 +26,26 @@ When working with code in **scripts/**, follow these mandatory safety rules:
|
|
|
26
26
|
| See file symbols | `mcp_milens_get_file_symbols` |
|
|
27
27
|
|
|
28
28
|
## Overview
|
|
29
|
-
Contains
|
|
29
|
+
Contains 77 symbols (0 exported) across 6 files.
|
|
30
30
|
|
|
31
31
|
## Entry Points
|
|
32
|
-
- **`
|
|
33
|
-
- **`
|
|
34
|
-
- **`
|
|
35
|
-
- **`
|
|
36
|
-
- **`
|
|
32
|
+
- **`ghApi`** [function] — 4 incoming references
|
|
33
|
+
- **`detectBreakingFromLabels`** [function] — 4 incoming references
|
|
34
|
+
- **`exec`** [function] — 3 incoming references
|
|
35
|
+
- **`branch`** [variable] — 3 incoming references
|
|
36
|
+
- **`detectTypeFromBranch`** [function] — 3 incoming references
|
|
37
37
|
|
|
38
38
|
## Dependencies
|
|
39
39
|
- **analyzer**: `resolve`
|
|
40
|
-
- **store**: `Database`, `getCodebaseSummary`, `close`
|
|
41
40
|
|
|
42
41
|
## Used By
|
|
43
|
-
- **
|
|
44
|
-
- **
|
|
45
|
-
- **root**: `version`, `outDir`, `root`
|
|
46
|
-
- **parser**: `root`
|
|
47
|
-
- **security**: `version`
|
|
48
|
-
- **server**: `root`
|
|
49
|
-
- **test**: `root`
|
|
42
|
+
- **apps**: `parseArgs`, `generatePrPayload`
|
|
43
|
+
- **test**: `detectTypeFromBranch`, `detectScopeFromBranch`, `detectBreakingFromBranch`, `detectBreakingFromLabels`, `slugify`, `parseArgs`, `generateTitle`, `generateBody` (+1 more)
|
|
50
44
|
|
|
51
45
|
## Files
|
|
52
46
|
- scripts/build-standalone.mjs
|
|
53
|
-
- scripts/
|
|
54
|
-
- scripts/
|
|
47
|
+
- scripts/check-console.mjs
|
|
48
|
+
- scripts/create-pr.cjs
|
|
49
|
+
- scripts/gen-build-info.mjs
|
|
50
|
+
- scripts/pr-generator.cjs
|
|
51
|
+
- scripts/smoke-test.mjs
|