milens 0.7.0 → 0.7.2
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 +59 -51
- package/.agents/skills/analyzer/SKILL.md +23 -21
- package/.agents/skills/apps/SKILL.md +65 -68
- package/.agents/skills/docs/SKILL.md +10 -25
- package/.agents/skills/milens/SKILL.md +11 -8
- package/.agents/skills/orchestrator/SKILL.md +13 -10
- package/.agents/skills/parser/SKILL.md +15 -12
- package/.agents/skills/root/SKILL.md +30 -29
- package/.agents/skills/scripts/SKILL.md +18 -16
- package/.agents/skills/security/SKILL.md +7 -7
- package/.agents/skills/server/SKILL.md +36 -26
- package/.agents/skills/store/SKILL.md +24 -23
- package/.agents/skills/test/SKILL.md +24 -22
- package/.agents/skills/ui/SKILL.md +6 -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/claude-code/CLAUDE.md +2 -0
- package/adapters/claude-code/hooks/hooks.json +27 -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 +1 -1
- package/dist/agents-md.js +47 -3
- package/dist/agents-md.js.map +1 -1
- package/dist/analyzer/config.d.ts +0 -1
- package/dist/analyzer/config.js +32 -0
- package/dist/analyzer/config.js.map +1 -1
- package/dist/analyzer/engine.d.ts +0 -1
- package/dist/analyzer/engine.js +67 -41
- package/dist/analyzer/engine.js.map +1 -1
- package/dist/analyzer/enrich.d.ts +0 -1
- package/dist/analyzer/enrich.js +81 -1
- package/dist/analyzer/enrich.js.map +1 -1
- package/dist/analyzer/resolver.d.ts +4 -2
- package/dist/analyzer/resolver.js +283 -36
- package/dist/analyzer/resolver.js.map +1 -1
- package/dist/analyzer/review.d.ts +2 -2
- package/dist/analyzer/review.js +39 -61
- 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 +5 -4
- package/dist/analyzer/scanner.js.map +1 -1
- package/dist/analyzer/scope-resolver.d.ts +0 -1
- package/dist/analyzer/scope-resolver.js +2 -2
- 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 +225 -30
- package/dist/cli.js.map +1 -1
- package/dist/metrics.d.ts +0 -1
- package/dist/orchestrator/orchestrator.d.ts +1 -2
- package/dist/orchestrator/orchestrator.js +30 -7
- package/dist/orchestrator/orchestrator.js.map +1 -1
- package/dist/orchestrator/reporter.d.ts +0 -1
- package/dist/parser/extract.d.ts +7 -1
- package/dist/parser/extract.js +76 -29
- package/dist/parser/extract.js.map +1 -1
- package/dist/parser/lang-css.d.ts +0 -1
- package/dist/parser/lang-css.js +12 -0
- package/dist/parser/lang-css.js.map +1 -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-js.js +15 -4
- package/dist/parser/lang-js.js.map +1 -1
- package/dist/parser/lang-md.d.ts +0 -1
- package/dist/parser/lang-md.js +1 -0
- package/dist/parser/lang-md.js.map +1 -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-ts.js +40 -6
- package/dist/parser/lang-ts.js.map +1 -1
- package/dist/parser/lang-vue.d.ts +0 -1
- package/dist/parser/lang-vue.js +0 -21
- package/dist/parser/lang-vue.js.map +1 -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 +35 -35
- package/dist/security/rules.js.map +1 -1
- package/dist/server/guard-hook.d.ts +10 -0
- package/dist/server/guard-hook.js +179 -0
- package/dist/server/guard-hook.js.map +1 -0
- package/dist/server/hooks.d.ts +0 -1
- package/dist/server/hooks.js +2 -1
- package/dist/server/hooks.js.map +1 -1
- package/dist/server/mcp-prompts.d.ts +0 -1
- package/dist/server/mcp-prompts.js +509 -523
- package/dist/server/mcp-prompts.js.map +1 -1
- package/dist/server/mcp.d.ts +0 -1
- package/dist/server/mcp.js +324 -681
- package/dist/server/mcp.js.map +1 -1
- package/dist/server/test-plan.d.ts +1 -1
- package/dist/server/test-plan.js +25 -7
- package/dist/server/test-plan.js.map +1 -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/findings-report.d.ts +3 -0
- package/dist/server/tools/findings-report.js +170 -0
- package/dist/server/tools/findings-report.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 +232 -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 +160 -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 +247 -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 +23 -11
- package/dist/skills.js.map +1 -1
- package/dist/store/annotations.d.ts +6 -1
- package/dist/store/annotations.js +56 -9
- 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 +22 -1
- package/dist/store/db.js +225 -45
- package/dist/store/db.js.map +1 -1
- package/dist/store/registry.d.ts +1 -1
- package/dist/store/registry.js +17 -6
- package/dist/store/registry.js.map +1 -1
- package/dist/store/schema.sql +2 -1
- package/dist/store/vectors.d.ts +0 -1
- package/dist/types.d.ts +23 -2
- package/dist/ui/progress.d.ts +0 -1
- package/dist/uninstall.d.ts +1 -1
- package/dist/uninstall.js +33 -10
- package/dist/uninstall.js.map +1 -1
- package/dist/utils.d.ts +2 -1
- package/dist/utils.js +37 -2
- 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,8 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
+
generated-by: milens
|
|
2
3
|
name: milens-root
|
|
3
4
|
description: Code intelligence for the root area — symbols, dependencies, and entry points
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- Generated by milens — safe to delete/regenerate -->
|
|
6
8
|
# Root
|
|
7
9
|
|
|
8
10
|
## Working with this area
|
|
@@ -25,58 +27,57 @@ When working with code in **root/**, follow these mandatory safety rules:
|
|
|
25
27
|
| Text search across files | `mcp_milens_grep` |
|
|
26
28
|
| See file symbols | `mcp_milens_get_file_symbols` |
|
|
27
29
|
|
|
30
|
+
### Edit-safety enforcement
|
|
31
|
+
A `PreToolUse` hook (warn mode by default) reminds you if no milens safety check (`impact`/`context`/`overview`/`guard_edit_check`/`edit_check`/`smart_context`) was called before an `Edit`/`Write`/`MultiEdit`. Opt-in strict deny mode is available via `milens hooks guard-set-mode --mode strict`. Both modes consume the check after one edit. See `.milens/hook-state/config.json`. Known caveat: the underlying `PreToolUse` deny mechanism has at least one reliability issue (https://github.com/anthropics/claude-code/issues/4362).
|
|
32
|
+
|
|
28
33
|
## Overview
|
|
29
|
-
Contains
|
|
34
|
+
Contains 238 symbols (157 exported) across 12 files.
|
|
30
35
|
|
|
31
36
|
## 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:
|
|
37
|
+
- **`CodeSymbol`** [interface] (src/types.ts:8) — 52 refs
|
|
38
|
+
- **`SymbolLink`** [interface] (src/types.ts:26) — 22 refs
|
|
39
|
+
- **`RawCall`** [interface] (src/types.ts:45) — 18 refs
|
|
40
|
+
- **`isTestFile`** [function] (src/utils.ts:4) — 10 refs
|
|
36
41
|
- **`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
|
-
- **`
|
|
42
|
+
- **`RawHeritage`** [interface] (src/types.ts:59) — 7 refs
|
|
43
|
+
- **`ExtractionResult`** [interface] (src/types.ts:67) — 6 refs
|
|
44
|
+
- **`RawTypeBinding`** [interface] (src/types.ts:88) — 6 refs
|
|
45
|
+
- **`RawAssignmentBinding`** [interface] (src/types.ts:96) — 6 refs
|
|
46
|
+
- **`globToRegex`** [function] (src/utils.ts:16) — 6 refs
|
|
47
|
+
- **`RawReturnType`** [interface] (src/types.ts:104) — 5 refs
|
|
48
|
+
- **`RawCallResultBinding`** [interface] (src/types.ts:112) — 5 refs
|
|
49
|
+
- **`AnalysisStats`** [interface] (src/types.ts:135) — 5 refs
|
|
44
50
|
- **`generateAgentsMd`** [function] (src/agents-md.ts:93) — 4 refs
|
|
45
51
|
- **`computeMetrics`** [function] (src/metrics.ts:21) — 4 refs
|
|
46
|
-
- **`formatMetricsReport`** [function] (src/metrics.ts:62) — 4 refs
|
|
47
52
|
|
|
48
53
|
## Entry Points
|
|
49
|
-
- **`CodeSymbol`** [interface] —
|
|
50
|
-
- **`
|
|
51
|
-
- **`
|
|
52
|
-
- **`
|
|
53
|
-
- **`
|
|
54
|
+
- **`CodeSymbol`** [interface] — 52 incoming references
|
|
55
|
+
- **`SymbolLink`** [interface] — 22 incoming references
|
|
56
|
+
- **`RawCall`** [interface] — 18 incoming references
|
|
57
|
+
- **`isTestFile`** [function] — 10 incoming references
|
|
58
|
+
- **`RawImport`** [interface] — 9 incoming references
|
|
54
59
|
|
|
55
60
|
## Dependencies
|
|
56
|
-
- **store**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `
|
|
57
|
-
- **analyzer**: `loadAliases`, `analyze`, `resolve
|
|
61
|
+
- **store**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `findDbPath` (+22 more)
|
|
62
|
+
- **analyzer**: `loadAliases`, `analyze`, `resolve`
|
|
58
63
|
- **ui**: `createProgressReporter`, `finalize`
|
|
59
|
-
- **server**: `startHttp`, `startStdio`, `HookManager`, `
|
|
64
|
+
- **server**: `startHttp`, `startStdio`, `HookManager`, `defaultOnSessionStart`, `defaultOnSessionEnd`, `defaultOnPreCompact`, `defaultOnPostCompact`, `handleMarkChecked` (+6 more)
|
|
60
65
|
- **security**: `loadRules`, `auditDependencies`
|
|
61
66
|
- **orchestrator**: `Orchestrator`, `subscribe`, `runAndFormat`
|
|
62
|
-
- **test**: `add`, `dbPath`
|
|
63
|
-
- **scripts**: `version`, `outDir`, `root`
|
|
64
67
|
|
|
65
68
|
## Used By
|
|
66
69
|
- **analyzer**: `isTestFile`, `CodeSymbol`, `ExtractionResult`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding` (+8 more)
|
|
67
|
-
- **orchestrator**: `CodeSymbol
|
|
70
|
+
- **orchestrator**: `CodeSymbol`
|
|
68
71
|
- **parser**: `CodeSymbol`, `RawImport`, `RawCall`, `RawHeritage`, `RawReExport`, `RawTypeBinding`, `RawAssignmentBinding`, `RawReturnType` (+4 more)
|
|
69
|
-
- **server**: `generateCrossRefSection`, `
|
|
70
|
-
- **store**: `Annotation`, `AnnotationKey`, `Session`, `EvolutionEvent`, `CodeSymbol`, `SymbolLink`, `RepoEntry
|
|
72
|
+
- **server**: `generateCrossRefSection`, `globToRegex`
|
|
73
|
+
- **store**: `Annotation`, `AnnotationKey`, `Session`, `EvolutionEvent`, `CodeSymbol`, `SymbolLink`, `RepoEntry`
|
|
71
74
|
- **ui**: `AnalysisStats`
|
|
72
|
-
- **test**: `generateAgentsMd`, `AnnotationKey`, `CodeSymbol`, `SymbolLink`, `computeMetrics`, `formatMetricsReport`, `MilensMetrics`, `RawImport` (+
|
|
73
|
-
- **security**: `has`
|
|
75
|
+
- **test**: `generateAgentsMd`, `AnnotationKey`, `CodeSymbol`, `SymbolLink`, `computeMetrics`, `formatMetricsReport`, `MilensMetrics`, `RawImport` (+18 more)
|
|
74
76
|
|
|
75
77
|
## Files
|
|
76
78
|
- AGENTS.md
|
|
77
79
|
- CLAUDE.md
|
|
78
80
|
- CONTRIBUTING.md
|
|
79
|
-
- DEPLOY.md
|
|
80
81
|
- README.md
|
|
81
82
|
- src/agents-md.ts
|
|
82
83
|
- src/cli.ts
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
+
generated-by: milens
|
|
2
3
|
name: milens-scripts
|
|
3
4
|
description: Code intelligence for the scripts area — symbols, dependencies, and entry points
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- Generated by milens — safe to delete/regenerate -->
|
|
6
8
|
# Scripts
|
|
7
9
|
|
|
8
10
|
## Working with this area
|
|
@@ -25,30 +27,30 @@ When working with code in **scripts/**, follow these mandatory safety rules:
|
|
|
25
27
|
| Text search across files | `mcp_milens_grep` |
|
|
26
28
|
| See file symbols | `mcp_milens_get_file_symbols` |
|
|
27
29
|
|
|
30
|
+
### Edit-safety enforcement
|
|
31
|
+
A `PreToolUse` hook (warn mode by default) reminds you if no milens safety check (`impact`/`context`/`overview`/`guard_edit_check`/`edit_check`/`smart_context`) was called before an `Edit`/`Write`/`MultiEdit`. Opt-in strict deny mode is available via `milens hooks guard-set-mode --mode strict`. Both modes consume the check after one edit. See `.milens/hook-state/config.json`. Known caveat: the underlying `PreToolUse` deny mechanism has at least one reliability issue (https://github.com/anthropics/claude-code/issues/4362).
|
|
32
|
+
|
|
28
33
|
## Overview
|
|
29
|
-
Contains
|
|
34
|
+
Contains 80 symbols (0 exported) across 7 files.
|
|
30
35
|
|
|
31
36
|
## Entry Points
|
|
32
|
-
- **`
|
|
33
|
-
- **`
|
|
34
|
-
- **`
|
|
35
|
-
- **`
|
|
36
|
-
- **`
|
|
37
|
+
- **`ghApi`** [function] — 4 incoming references
|
|
38
|
+
- **`exec`** [function] — 3 incoming references
|
|
39
|
+
- **`branch`** [variable] — 3 incoming references
|
|
40
|
+
- **`detectBreakingFromLabels`** [function] — 3 incoming references
|
|
41
|
+
- **`fail`** [function] — 3 incoming references
|
|
37
42
|
|
|
38
43
|
## Dependencies
|
|
39
44
|
- **analyzer**: `resolve`
|
|
40
|
-
- **store**: `Database`, `getCodebaseSummary`, `close`
|
|
41
45
|
|
|
42
46
|
## Used By
|
|
43
|
-
- **
|
|
44
|
-
- **analyzer**: `root`
|
|
45
|
-
- **root**: `version`, `outDir`, `root`
|
|
46
|
-
- **parser**: `root`
|
|
47
|
-
- **security**: `version`
|
|
48
|
-
- **server**: `root`
|
|
49
|
-
- **test**: `root`
|
|
47
|
+
- **apps**: `parseArgs`, `generatePrPayload`
|
|
50
48
|
|
|
51
49
|
## Files
|
|
52
50
|
- scripts/build-standalone.mjs
|
|
53
|
-
- scripts/
|
|
54
|
-
- scripts/
|
|
51
|
+
- scripts/check-console.mjs
|
|
52
|
+
- scripts/create-pr.cjs
|
|
53
|
+
- scripts/gen-build-info.mjs
|
|
54
|
+
- scripts/pr-generator.cjs
|
|
55
|
+
- scripts/smoke-test.mjs
|
|
56
|
+
- scripts/sync-version.mjs
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
+
generated-by: milens
|
|
2
3
|
name: milens-security
|
|
3
4
|
description: Code intelligence for the security area — symbols, dependencies, and entry points
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- Generated by milens — safe to delete/regenerate -->
|
|
6
8
|
# Security
|
|
7
9
|
|
|
8
10
|
## Working with this area
|
|
@@ -25,8 +27,11 @@ When working with code in **security/**, follow these mandatory safety rules:
|
|
|
25
27
|
| Text search across files | `mcp_milens_grep` |
|
|
26
28
|
| See file symbols | `mcp_milens_get_file_symbols` |
|
|
27
29
|
|
|
30
|
+
### Edit-safety enforcement
|
|
31
|
+
A `PreToolUse` hook (warn mode by default) reminds you if no milens safety check (`impact`/`context`/`overview`/`guard_edit_check`/`edit_check`/`smart_context`) was called before an `Edit`/`Write`/`MultiEdit`. Opt-in strict deny mode is available via `milens hooks guard-set-mode --mode strict`. Both modes consume the check after one edit. See `.milens/hook-state/config.json`. Known caveat: the underlying `PreToolUse` deny mechanism has at least one reliability issue (https://github.com/anthropics/claude-code/issues/4362).
|
|
32
|
+
|
|
28
33
|
## Overview
|
|
29
|
-
Contains
|
|
34
|
+
Contains 47 symbols (17 exported) across 2 files.
|
|
30
35
|
|
|
31
36
|
## Key Symbols
|
|
32
37
|
- **`loadRules`** [function] (src/security/rules.ts:1301) — 6 refs
|
|
@@ -35,6 +40,7 @@ Contains 44 symbols (15 exported) across 2 files.
|
|
|
35
40
|
- **`parseDependencies`** [function] (src/security/deps.ts:524) — 3 refs
|
|
36
41
|
- **`checkVulnerabilities`** [function] (src/security/deps.ts:687) — 3 refs
|
|
37
42
|
- **`Ecosystem`** [type] (src/security/deps.ts:8) — 3 refs
|
|
43
|
+
- **`ALL_RULES`** [variable] (src/security/rules.ts:99) — 3 refs
|
|
38
44
|
- **`VulnerabilityReport`** [interface] (src/security/deps.ts:26) — 2 refs
|
|
39
45
|
- **`getRulesByCategory`** [function] (src/security/rules.ts:1308) — 2 refs
|
|
40
46
|
- **`getRulesBySeverity`** [function] (src/security/rules.ts:1312) — 2 refs
|
|
@@ -43,7 +49,6 @@ Contains 44 symbols (15 exported) across 2 files.
|
|
|
43
49
|
- **`Vulnerability`** [interface] (src/security/deps.ts:16) — 0 refs
|
|
44
50
|
- **`SecurityRule`** [interface] (src/security/rules.ts:31) — 0 refs
|
|
45
51
|
- **`SecurityMatch`** [interface] (src/security/rules.ts:47) — 0 refs
|
|
46
|
-
- **`SecurityReport`** [interface] (src/security/rules.ts:59) — 0 refs
|
|
47
52
|
|
|
48
53
|
## Entry Points
|
|
49
54
|
- **`readManifest`** [function] — 6 incoming references
|
|
@@ -52,11 +57,6 @@ Contains 44 symbols (15 exported) across 2 files.
|
|
|
52
57
|
- **`detectEcosystem`** [function] — 3 incoming references
|
|
53
58
|
- **`parseDependencies`** [function] — 3 incoming references
|
|
54
59
|
|
|
55
|
-
## Dependencies
|
|
56
|
-
- **scripts**: `version`
|
|
57
|
-
- **test**: `add`
|
|
58
|
-
- **root**: `has`
|
|
59
|
-
|
|
60
60
|
## Used By
|
|
61
61
|
- **root**: `loadRules`, `auditDependencies`
|
|
62
62
|
- **server**: `loadRules`
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
+
generated-by: milens
|
|
2
3
|
name: milens-server
|
|
3
4
|
description: Code intelligence for the server area — symbols, dependencies, and entry points
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- Generated by milens — safe to delete/regenerate -->
|
|
6
8
|
# Server
|
|
7
9
|
|
|
8
10
|
## Working with this area
|
|
@@ -25,50 +27,58 @@ When working with code in **server/**, follow these mandatory safety rules:
|
|
|
25
27
|
| Text search across files | `mcp_milens_grep` |
|
|
26
28
|
| See file symbols | `mcp_milens_get_file_symbols` |
|
|
27
29
|
|
|
30
|
+
### Edit-safety enforcement
|
|
31
|
+
A `PreToolUse` hook (warn mode by default) reminds you if no milens safety check (`impact`/`context`/`overview`/`guard_edit_check`/`edit_check`/`smart_context`) was called before an `Edit`/`Write`/`MultiEdit`. Opt-in strict deny mode is available via `milens hooks guard-set-mode --mode strict`. Both modes consume the check after one edit. See `.milens/hook-state/config.json`. Known caveat: the underlying `PreToolUse` deny mechanism has at least one reliability issue (https://github.com/anthropics/claude-code/issues/4362).
|
|
32
|
+
|
|
28
33
|
## Overview
|
|
29
|
-
Contains
|
|
34
|
+
Contains 154 symbols (37 exported) across 12 files.
|
|
30
35
|
|
|
31
36
|
## Key Symbols
|
|
32
|
-
- **`
|
|
37
|
+
- **`Deps`** [interface] (src/server/tools/deps.ts:4) — 11 refs
|
|
38
|
+
- **`HookManager`** [class] (src/server/hooks.ts:43) — 9 refs
|
|
39
|
+
- **`defaultOnSessionStart`** [function] (src/server/hooks.ts:100) — 8 refs
|
|
40
|
+
- **`defaultOnSessionEnd`** [function] (src/server/hooks.ts:174) — 8 refs
|
|
41
|
+
- **`defaultOnPreCompact`** [function] (src/server/hooks.ts:350) — 8 refs
|
|
42
|
+
- **`defaultOnPostCompact`** [function] (src/server/hooks.ts:368) — 8 refs
|
|
43
|
+
- **`createMcpServer`** [function] (src/server/mcp.ts:452) — 6 refs
|
|
33
44
|
- **`HookConfig`** [interface] (src/server/hooks.ts:5) — 5 refs
|
|
34
|
-
- **`
|
|
35
|
-
- **`
|
|
45
|
+
- **`FileWatcher`** [class] (src/server/watcher.ts:50) — 5 refs
|
|
46
|
+
- **`readMode`** [function] (src/server/guard-hook.ts:38) — 4 refs
|
|
47
|
+
- **`writeMode`** [function] (src/server/guard-hook.ts:50) — 4 refs
|
|
48
|
+
- **`handleMarkChecked`** [function] (src/server/guard-hook.ts:147) — 4 refs
|
|
49
|
+
- **`handleCheckEdit`** [function] (src/server/guard-hook.ts:161) — 4 refs
|
|
36
50
|
- **`defaultOnPreCommit`** [function] (src/server/hooks.ts:237) — 4 refs
|
|
37
51
|
- **`defaultOnFileChange`** [function] (src/server/hooks.ts:323) — 4 refs
|
|
38
|
-
- **`defaultOnPreCompact`** [function] (src/server/hooks.ts:350) — 4 refs
|
|
39
|
-
- **`defaultOnPostCompact`** [function] (src/server/hooks.ts:368) — 4 refs
|
|
40
|
-
- **`SessionContext`** [interface] (src/server/hooks.ts:15) — 4 refs
|
|
41
|
-
- **`registerAllPrompts`** [function] (src/server/mcp-prompts.ts:637) — 4 refs
|
|
42
|
-
- **`createMcpServer`** [function] (src/server/mcp.ts:451) — 4 refs
|
|
43
|
-
- **`generateTestPlan`** [function] (src/server/test-plan.ts:39) — 4 refs
|
|
44
|
-
- **`FileWatcher`** [class] (src/server/watcher.ts:50) — 3 refs
|
|
45
|
-
- **`startStdio`** [function] (src/server/mcp.ts:2975) — 2 refs
|
|
46
|
-
- **`startHttp`** [function] (src/server/mcp.ts:3014) — 2 refs
|
|
47
52
|
|
|
48
53
|
## Entry Points
|
|
49
|
-
- **`
|
|
50
|
-
- **`HookManager`** [class] —
|
|
51
|
-
- **`
|
|
52
|
-
- **`
|
|
53
|
-
- **`
|
|
54
|
+
- **`Deps`** [interface] — 11 incoming references
|
|
55
|
+
- **`HookManager`** [class] — 9 incoming references
|
|
56
|
+
- **`defaultOnSessionStart`** [function] — 8 incoming references
|
|
57
|
+
- **`defaultOnSessionEnd`** [function] — 8 incoming references
|
|
58
|
+
- **`defaultOnPreCompact`** [function] — 8 incoming references
|
|
54
59
|
|
|
55
60
|
## Dependencies
|
|
56
|
-
- **store**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `
|
|
57
|
-
- **root**: `generateCrossRefSection`, `
|
|
58
|
-
- **analyzer**: `reviewPr`, `
|
|
61
|
+
- **store**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `getStats`, `getTestCoverage` (+38 more)
|
|
62
|
+
- **root**: `generateCrossRefSection`, `globToRegex`
|
|
63
|
+
- **analyzer**: `reviewPr`, `countDependentFiles`, `analyze`
|
|
59
64
|
- **parser**: `getParser`, `loadLanguage`, `ALL_LANGS`
|
|
60
|
-
- **security**: `loadRules`
|
|
61
65
|
- **orchestrator**: `Orchestrator`, `loadSnapshots`, `snapshot`, `persistSnapshots`, `compare`, `runAndFormat`
|
|
62
|
-
- **
|
|
63
|
-
- **scripts**: `root`
|
|
66
|
+
- **security**: `loadRules`
|
|
64
67
|
|
|
65
68
|
## Used By
|
|
66
|
-
- **root**: `startHttp`, `startStdio`, `HookManager`, `
|
|
67
|
-
- **test**: `
|
|
69
|
+
- **root**: `startHttp`, `startStdio`, `HookManager`, `defaultOnSessionStart`, `defaultOnSessionEnd`, `defaultOnPreCompact`, `defaultOnPostCompact`, `handleMarkChecked` (+6 more)
|
|
70
|
+
- **test**: `defaultOnSessionStart`, `defaultOnPreCompact`, `defaultOnSessionEnd`, `defaultOnPostCompact`, `createMcpServer`, `markChecked`, `checkEdit`, `readMode` (+26 more)
|
|
68
71
|
|
|
69
72
|
## Files
|
|
73
|
+
- src/server/guard-hook.ts
|
|
70
74
|
- src/server/hooks.ts
|
|
71
75
|
- src/server/mcp-prompts.ts
|
|
72
76
|
- src/server/mcp.ts
|
|
73
77
|
- src/server/test-plan.ts
|
|
78
|
+
- src/server/tools/deps.ts
|
|
79
|
+
- src/server/tools/findings-report.ts
|
|
80
|
+
- src/server/tools/resources.ts
|
|
81
|
+
- src/server/tools/security.ts
|
|
82
|
+
- src/server/tools/session.ts
|
|
83
|
+
- src/server/tools/testing.ts
|
|
74
84
|
- src/server/watcher.ts
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
+
generated-by: milens
|
|
2
3
|
name: milens-store
|
|
3
4
|
description: Code intelligence for the store area — symbols, dependencies, and entry points
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- Generated by milens — safe to delete/regenerate -->
|
|
6
8
|
# Store
|
|
7
9
|
|
|
8
10
|
## Working with this area
|
|
@@ -25,47 +27,46 @@ When working with code in **store/**, follow these mandatory safety rules:
|
|
|
25
27
|
| Text search across files | `mcp_milens_grep` |
|
|
26
28
|
| See file symbols | `mcp_milens_get_file_symbols` |
|
|
27
29
|
|
|
30
|
+
### Edit-safety enforcement
|
|
31
|
+
A `PreToolUse` hook (warn mode by default) reminds you if no milens safety check (`impact`/`context`/`overview`/`guard_edit_check`/`edit_check`/`smart_context`) was called before an `Edit`/`Write`/`MultiEdit`. Opt-in strict deny mode is available via `milens hooks guard-set-mode --mode strict`. Both modes consume the check after one edit. See `.milens/hook-state/config.json`. Known caveat: the underlying `PreToolUse` deny mechanism has at least one reliability issue (https://github.com/anthropics/claude-code/issues/4362).
|
|
32
|
+
|
|
28
33
|
## Overview
|
|
29
|
-
Contains
|
|
34
|
+
Contains 146 symbols (15 exported) across 5 files.
|
|
30
35
|
|
|
31
36
|
## Key Symbols
|
|
32
37
|
- **`Database`** [class] (src/store/db.ts:10) — 80 refs
|
|
33
|
-
- **`AnnotationStore`** [class] (src/store/annotations.ts:10) —
|
|
34
|
-
- **`RepoRegistry`** [class] (src/store/registry.ts:
|
|
35
|
-
- **`runDecayPass`** [function] (src/store/confidence.ts:
|
|
38
|
+
- **`AnnotationStore`** [class] (src/store/annotations.ts:10) — 21 refs
|
|
39
|
+
- **`RepoRegistry`** [class] (src/store/registry.ts:24) — 18 refs
|
|
40
|
+
- **`runDecayPass`** [function] (src/store/confidence.ts:87) — 6 refs
|
|
36
41
|
- **`buildEmbeddingText`** [function] (src/store/vectors.ts:250) — 4 refs
|
|
37
42
|
- **`TfIdfProvider`** [class] (src/store/vectors.ts:44) — 4 refs
|
|
38
43
|
- **`EmbeddingStore`** [class] (src/store/vectors.ts:170) — 4 refs
|
|
39
|
-
- **`decayConfidence`** [function] (src/store/confidence.ts:
|
|
44
|
+
- **`decayConfidence`** [function] (src/store/confidence.ts:23) — 3 refs
|
|
40
45
|
- **`boostConfidence`** [function] (src/store/confidence.ts:6) — 2 refs
|
|
41
|
-
- **`getStaleAnnotations`** [function] (src/store/confidence.ts:
|
|
42
|
-
- **`promoteSecurityAnnotations`** [function] (src/store/confidence.ts:
|
|
43
|
-
- **`autoPromote`** [function] (src/store/confidence.ts:
|
|
46
|
+
- **`getStaleAnnotations`** [function] (src/store/confidence.ts:40) — 2 refs
|
|
47
|
+
- **`promoteSecurityAnnotations`** [function] (src/store/confidence.ts:50) — 2 refs
|
|
48
|
+
- **`autoPromote`** [function] (src/store/confidence.ts:108) — 2 refs
|
|
44
49
|
- **`EmbeddingProvider`** [interface] (src/store/vectors.ts:15) — 2 refs
|
|
45
50
|
- **`NeuralProvider`** [class] (src/store/vectors.ts:122) — 0 refs
|
|
46
51
|
- **`SimilarResult`** [interface] (src/store/vectors.ts:23) — 0 refs
|
|
47
52
|
|
|
48
53
|
## Entry Points
|
|
49
54
|
- **`Database`** [class] — 80 incoming references
|
|
50
|
-
- **`
|
|
51
|
-
- **`
|
|
52
|
-
- **`
|
|
53
|
-
- **`
|
|
55
|
+
- **`AnnotationStore`** [class] — 21 incoming references
|
|
56
|
+
- **`RepoRegistry`** [class] — 18 incoming references
|
|
57
|
+
- **`findSymbolById`** [method] — 15 incoming references
|
|
58
|
+
- **`rowToSymbol`** [function] — 13 incoming references
|
|
54
59
|
|
|
55
60
|
## Dependencies
|
|
56
|
-
- **root**: `Annotation`, `AnnotationKey`, `Session`, `EvolutionEvent`, `CodeSymbol`, `SymbolLink`, `RepoEntry
|
|
57
|
-
- **test**: `add`, `dbPath`
|
|
58
|
-
- **analyzer**: `resolve`
|
|
61
|
+
- **root**: `Annotation`, `AnnotationKey`, `Session`, `EvolutionEvent`, `CodeSymbol`, `SymbolLink`, `RepoEntry`
|
|
59
62
|
|
|
60
63
|
## Used By
|
|
61
|
-
- **root**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `
|
|
62
|
-
- **analyzer**: `Database`, `TfIdfProvider`, `EmbeddingStore`, `buildEmbeddingText`, `
|
|
63
|
-
- **orchestrator**: `Database`, `findSymbolByName`, `findUpstream`, `
|
|
64
|
-
- **server**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `
|
|
65
|
-
- **test**: `Database`, `AnnotationStore`, `RepoRegistry`, `boostConfidence`, `decayConfidence`, `getStaleAnnotations`, `promoteSecurityAnnotations`, `runDecayPass` (+
|
|
66
|
-
- **apps**: `remove`, `getAnnotations`, `Database`, `getCodebaseSummary
|
|
67
|
-
- **docs**: `remove`
|
|
68
|
-
- **scripts**: `Database`, `getCodebaseSummary`, `close`
|
|
64
|
+
- **root**: `Database`, `RepoRegistry`, `AnnotationStore`, `runDecayPass`, `getIncomingLinks`, `getAllSymbols`, `getCodebaseSummary`, `findDbPath` (+22 more)
|
|
65
|
+
- **analyzer**: `Database`, `TfIdfProvider`, `EmbeddingStore`, `buildEmbeddingText`, `isFileUpToDate`, `upsertFileHash`, `getSymbolsByFile`, `transaction` (+18 more)
|
|
66
|
+
- **orchestrator**: `Database`, `findSymbolByName`, `findUpstream`, `getTestCoverageGaps`, `findDeadCode`
|
|
67
|
+
- **server**: `Database`, `AnnotationStore`, `RepoRegistry`, `runDecayPass`, `getCodebaseSummary`, `recall`, `getStats`, `getTestCoverage` (+38 more)
|
|
68
|
+
- **test**: `Database`, `AnnotationStore`, `RepoRegistry`, `boostConfidence`, `decayConfidence`, `getStaleAnnotations`, `promoteSecurityAnnotations`, `runDecayPass` (+76 more)
|
|
69
|
+
- **apps**: `remove`, `getAnnotations`, `Database`, `getCodebaseSummary`
|
|
69
70
|
- **parser**: `load`
|
|
70
71
|
|
|
71
72
|
## Files
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
+
generated-by: milens
|
|
2
3
|
name: milens-test
|
|
3
4
|
description: Code intelligence for the test area — symbols, dependencies, and entry points
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- Generated by milens — safe to delete/regenerate -->
|
|
6
8
|
# Test
|
|
7
9
|
|
|
8
10
|
## Working with this area
|
|
@@ -25,17 +27,20 @@ When working with code in **test/**, follow these mandatory safety rules:
|
|
|
25
27
|
| Text search across files | `mcp_milens_grep` |
|
|
26
28
|
| See file symbols | `mcp_milens_get_file_symbols` |
|
|
27
29
|
|
|
30
|
+
### Edit-safety enforcement
|
|
31
|
+
A `PreToolUse` hook (warn mode by default) reminds you if no milens safety check (`impact`/`context`/`overview`/`guard_edit_check`/`edit_check`/`smart_context`) was called before an `Edit`/`Write`/`MultiEdit`. Opt-in strict deny mode is available via `milens hooks guard-set-mode --mode strict`. Both modes consume the check after one edit. See `.milens/hook-state/config.json`. Known caveat: the underlying `PreToolUse` deny mechanism has at least one reliability issue (https://github.com/anthropics/claude-code/issues/4362).
|
|
32
|
+
|
|
28
33
|
## Overview
|
|
29
|
-
Contains
|
|
34
|
+
Contains 353 symbols (119 exported) across 83 files.
|
|
30
35
|
|
|
31
36
|
## Key Symbols
|
|
32
37
|
- **`User`** [class] (test/fixtures/accuracy/py-project/src/models.py:1) — 6 refs
|
|
33
38
|
- **`Calculator`** [class] (test/fixtures/accuracy/js-project/src/calculator.js:1) — 5 refs
|
|
34
39
|
- **`User`** [interface] (test/fixtures/ts-project/src/models.ts:1) — 5 refs
|
|
35
|
-
- **`
|
|
40
|
+
- **`User`** [class] (test/fixtures/accuracy/ruby-project/src/models.rb:1) — 5 refs
|
|
36
41
|
- **`User`** [interface] (test/fixtures/accuracy/ts-project/src/models.ts:1) — 3 refs
|
|
37
42
|
- **`User`** [class] (test/fixtures/py-project/models.py:1) — 3 refs
|
|
38
|
-
- **`
|
|
43
|
+
- **`UserRepo`** [class] (test/fixtures/accuracy/ruby-project/src/models.rb:10) — 3 refs
|
|
39
44
|
- **`createCalc`** [function] (test/fixtures/accuracy/js-project/src/calculator.js:6) — 2 refs
|
|
40
45
|
- **`UserRepository`** [class] (test/fixtures/accuracy/ts-project/src/models.ts:12) — 2 refs
|
|
41
46
|
- **`createUser`** [function] (test/fixtures/ts-project/src/models.ts:9) — 2 refs
|
|
@@ -43,35 +48,26 @@ Contains 328 symbols (119 exported) across 77 files.
|
|
|
43
48
|
- **`UserService`** [class] (test/fixtures/ts-project/src/nest-sample.ts:27) — 2 refs
|
|
44
49
|
- **`Save`** [method] (test/fixtures/accuracy/go-project/src/models/user.go:16) — 2 refs
|
|
45
50
|
- **`UserRepo`** [class] (test/fixtures/accuracy/py-project/src/models.py:10) — 2 refs
|
|
46
|
-
- **`
|
|
51
|
+
- **`save`** [method] (test/fixtures/accuracy/py-project/src/models.py:14) — 2 refs
|
|
47
52
|
|
|
48
53
|
## Entry Points
|
|
49
|
-
- **`add`** [method] — 46 incoming references
|
|
50
|
-
- **`lang`** [variable] — 12 incoming references
|
|
51
|
-
- **`dbPath`** [function] — 10 incoming references
|
|
52
54
|
- **`User`** [class] — 6 incoming references
|
|
53
55
|
- **`Calculator`** [class] — 5 incoming references
|
|
56
|
+
- **`User`** [interface] — 5 incoming references
|
|
57
|
+
- **`User`** [class] — 5 incoming references
|
|
58
|
+
- **`User`** [interface] — 3 incoming references
|
|
54
59
|
|
|
55
60
|
## Dependencies
|
|
56
|
-
- **analyzer**: `analyze`, `loadAliases`, `getCachedTree`, `clearTreeCache`, `enrichMetadata`, `resolveLinksWithStats`, `resolveLinks`, `reviewSymbol` (+
|
|
57
|
-
- **store**: `Database`, `AnnotationStore`, `RepoRegistry`, `boostConfidence`, `decayConfidence`, `getStaleAnnotations`, `promoteSecurityAnnotations`, `runDecayPass` (+
|
|
58
|
-
- **root**: `generateAgentsMd`, `AnnotationKey`, `CodeSymbol`, `SymbolLink`, `computeMetrics`, `formatMetricsReport`, `MilensMetrics`, `RawImport` (+
|
|
61
|
+
- **analyzer**: `analyze`, `loadAliases`, `getCachedTree`, `clearTreeCache`, `enrichMetadata`, `resolveLinksWithStats`, `resolveLinks`, `reviewSymbol` (+9 more)
|
|
62
|
+
- **store**: `Database`, `AnnotationStore`, `RepoRegistry`, `boostConfidence`, `decayConfidence`, `getStaleAnnotations`, `promoteSecurityAnnotations`, `runDecayPass` (+76 more)
|
|
63
|
+
- **root**: `generateAgentsMd`, `AnnotationKey`, `CodeSymbol`, `SymbolLink`, `computeMetrics`, `formatMetricsReport`, `MilensMetrics`, `RawImport` (+18 more)
|
|
64
|
+
- **server**: `defaultOnSessionStart`, `defaultOnPreCompact`, `defaultOnSessionEnd`, `defaultOnPostCompact`, `createMcpServer`, `markChecked`, `checkEdit`, `readMode` (+26 more)
|
|
59
65
|
- **security**: `detectEcosystem`, `parseDependencies`, `checkVulnerabilities`, `auditDependencies`, `loadRules`, `getRulesByCategory`, `getRulesBySeverity`
|
|
60
66
|
- **parser**: `getParser`, `loadLanguage`, `extractFromTree`, `extractVueScript`, `extractVueTemplateRefs`, `extractVueCompositionApi`, `extractVueTemplateAst`, `spec` (+11 more)
|
|
61
|
-
- **server**: `HookManager`, `HookConfig`, `defaultOnSessionStart`, `defaultOnSessionEnd`, `defaultOnPreCommit`, `defaultOnFileChange`, `defaultOnPreCompact`, `defaultOnPostCompact` (+10 more)
|
|
62
67
|
- **orchestrator**: `Orchestrator`, `formatReport`, `OrchestratorReport`, `subscribe`, `run`, `snapshot`, `compare`, `cancel` (+3 more)
|
|
63
|
-
- **scripts**: `root`
|
|
64
68
|
|
|
65
69
|
## Used By
|
|
66
|
-
- **apps**: `
|
|
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`
|
|
70
|
+
- **apps**: `create`
|
|
75
71
|
|
|
76
72
|
## Files
|
|
77
73
|
- test/fixtures/accuracy/go-project/src/admin.go
|
|
@@ -116,6 +112,7 @@ Contains 328 symbols (119 exported) across 77 files.
|
|
|
116
112
|
- test/fixtures/vue-project-refs/src/views/TestView.vue
|
|
117
113
|
- test/fixtures/vue-project/src/composables/useClipboard.js
|
|
118
114
|
- test/fixtures/vue-project/src/views/TestView.vue
|
|
115
|
+
- test/setup.ts
|
|
119
116
|
- test/unit/accuracy.test.ts
|
|
120
117
|
- test/unit/agents-md.test.ts
|
|
121
118
|
- test/unit/annotations.test.ts
|
|
@@ -127,27 +124,32 @@ Contains 328 symbols (119 exported) across 77 files.
|
|
|
127
124
|
- test/unit/engine.test.ts
|
|
128
125
|
- test/unit/enrich.test.ts
|
|
129
126
|
- test/unit/extractor.test.ts
|
|
127
|
+
- test/unit/findings-report.test.ts
|
|
128
|
+
- test/unit/guard-hook.test.ts
|
|
130
129
|
- test/unit/hooks.test.ts
|
|
131
130
|
- test/unit/html-css.test.ts
|
|
132
131
|
- test/unit/languages.test.ts
|
|
133
132
|
- test/unit/markdown.test.ts
|
|
134
133
|
- test/unit/mcp-prompts.test.ts
|
|
135
134
|
- test/unit/mcp-tools.test.ts
|
|
135
|
+
- test/unit/mcp-transport.test.ts
|
|
136
136
|
- test/unit/metrics.test.ts
|
|
137
137
|
- test/unit/mro.test.ts
|
|
138
138
|
- test/unit/orchestrator.test.ts
|
|
139
139
|
- test/unit/parser-extract-cache.test.ts
|
|
140
140
|
- test/unit/parser-loader.test.ts
|
|
141
|
+
- test/unit/pr-generator.test.ts
|
|
141
142
|
- test/unit/registry.test.ts
|
|
142
143
|
- test/unit/resolver.test.ts
|
|
143
144
|
- test/unit/review.test.ts
|
|
145
|
+
- test/unit/risk.test.ts
|
|
144
146
|
- test/unit/scanner.test.ts
|
|
145
147
|
- test/unit/scope-resolver.test.ts
|
|
146
148
|
- test/unit/security-rules.test.ts
|
|
147
149
|
- test/unit/server-test-plan.test.ts
|
|
148
150
|
- test/unit/skills.test.ts
|
|
149
|
-
- test/unit/testplan.test.ts
|
|
150
151
|
- test/unit/uninstall.test.ts
|
|
151
152
|
- test/unit/utils.test.ts
|
|
152
153
|
- test/unit/vectors.test.ts
|
|
153
154
|
- test/unit/vue-import.test.ts
|
|
155
|
+
- test/unit/watcher.test.ts
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
+
generated-by: milens
|
|
2
3
|
name: milens-ui
|
|
3
4
|
description: Code intelligence for the ui area — symbols, dependencies, and entry points
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- Generated by milens — safe to delete/regenerate -->
|
|
6
8
|
# Ui
|
|
7
9
|
|
|
8
10
|
## Working with this area
|
|
@@ -25,6 +27,9 @@ When working with code in **ui/**, follow these mandatory safety rules:
|
|
|
25
27
|
| Text search across files | `mcp_milens_grep` |
|
|
26
28
|
| See file symbols | `mcp_milens_get_file_symbols` |
|
|
27
29
|
|
|
30
|
+
### Edit-safety enforcement
|
|
31
|
+
A `PreToolUse` hook (warn mode by default) reminds you if no milens safety check (`impact`/`context`/`overview`/`guard_edit_check`/`edit_check`/`smart_context`) was called before an `Edit`/`Write`/`MultiEdit`. Opt-in strict deny mode is available via `milens hooks guard-set-mode --mode strict`. Both modes consume the check after one edit. See `.milens/hook-state/config.json`. Known caveat: the underlying `PreToolUse` deny mechanism has at least one reliability issue (https://github.com/anthropics/claude-code/issues/4362).
|
|
32
|
+
|
|
28
33
|
## Overview
|
|
29
34
|
Contains 10 symbols (3 exported) across 1 files.
|
|
30
35
|
|
|
@@ -44,7 +49,7 @@ Contains 10 symbols (3 exported) across 1 files.
|
|
|
44
49
|
- **root**: `AnalysisStats`
|
|
45
50
|
|
|
46
51
|
## Used By
|
|
47
|
-
- **analyzer**: `ProgressPhase`, `ProgressReporter`, `startPhase`, `tick`, `endPhase`, `
|
|
52
|
+
- **analyzer**: `ProgressPhase`, `ProgressReporter`, `startPhase`, `tick`, `endPhase`, `finalize`
|
|
48
53
|
- **root**: `createProgressReporter`, `finalize`
|
|
49
54
|
|
|
50
55
|
## Files
|
package/README.md
CHANGED
|
@@ -98,20 +98,29 @@ Then connect your editor:
|
|
|
98
98
|
claude mcp add milens -- milens serve -p .
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
-
Or in
|
|
101
|
+
Or drop this in `.mcp.json` at your project root (equivalent, works the same in the CLI, VS Code extension, and desktop app):
|
|
102
102
|
|
|
103
|
-
```
|
|
103
|
+
```json
|
|
104
104
|
{
|
|
105
105
|
"mcpServers": {
|
|
106
106
|
"milens": {
|
|
107
107
|
"type": "stdio",
|
|
108
108
|
"command": "milens",
|
|
109
|
-
"args": ["serve", "-p", "
|
|
109
|
+
"args": ["serve", "-p", "."]
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
+
Or install as a plugin from the marketplace:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
/plugin marketplace add fuze210699/milens
|
|
119
|
+
/plugin install milens
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
See [adapters/README.md](adapters/README.md#claude-code--via-plugin-install-marketplace) for how this avoids the workspace-root pitfall that broke earlier plugin builds.
|
|
123
|
+
|
|
115
124
|
<details>
|
|
116
125
|
<summary><b>More editors</b> — Cursor, OpenCode, Codex, Gemini, Zed</summary>
|
|
117
126
|
|