@4da/mcp-server 4.3.0 → 4.6.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/README.md +61 -81
- package/dist/db.d.ts +12 -1
- package/dist/db.d.ts.map +1 -1
- package/dist/db.js +71 -8
- package/dist/db.js.map +1 -1
- package/dist/index.d.ts +9 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -17
- package/dist/index.js.map +1 -1
- package/dist/live/crates-registry.d.ts +18 -0
- package/dist/live/crates-registry.d.ts.map +1 -0
- package/dist/live/crates-registry.js +133 -0
- package/dist/live/crates-registry.js.map +1 -0
- package/dist/live/go-registry.d.ts +19 -0
- package/dist/live/go-registry.d.ts.map +1 -0
- package/dist/live/go-registry.js +127 -0
- package/dist/live/go-registry.js.map +1 -0
- package/dist/live/http-utils.d.ts +3 -0
- package/dist/live/http-utils.d.ts.map +1 -0
- package/dist/live/http-utils.js +20 -0
- package/dist/live/http-utils.js.map +1 -0
- package/dist/live/index.d.ts +7 -2
- package/dist/live/index.d.ts.map +1 -1
- package/dist/live/index.js +71 -0
- package/dist/live/index.js.map +1 -1
- package/dist/live/npm-registry.d.ts +19 -0
- package/dist/live/npm-registry.d.ts.map +1 -0
- package/dist/live/npm-registry.js +132 -0
- package/dist/live/npm-registry.js.map +1 -0
- package/dist/live/osv-scanner.d.ts.map +1 -1
- package/dist/live/osv-scanner.js +1 -10
- package/dist/live/osv-scanner.js.map +1 -1
- package/dist/live/pypi-registry.d.ts +18 -0
- package/dist/live/pypi-registry.d.ts.map +1 -0
- package/dist/live/pypi-registry.js +142 -0
- package/dist/live/pypi-registry.js.map +1 -0
- package/dist/live/rate-limiter.d.ts +12 -0
- package/dist/live/rate-limiter.d.ts.map +1 -1
- package/dist/live/rate-limiter.js +4 -0
- package/dist/live/rate-limiter.js.map +1 -1
- package/dist/live/semver-utils.d.ts +5 -0
- package/dist/live/semver-utils.d.ts.map +1 -0
- package/dist/live/semver-utils.js +28 -0
- package/dist/live/semver-utils.js.map +1 -0
- package/dist/live/types.d.ts +41 -0
- package/dist/live/types.d.ts.map +1 -1
- package/dist/schema-registry.d.ts +4 -2
- package/dist/schema-registry.d.ts.map +1 -1
- package/dist/schema-registry.js +55 -221
- package/dist/schema-registry.js.map +1 -1
- package/dist/schemas/dependency-health.json +27 -0
- package/dist/schemas/upgrade-planner.json +22 -0
- package/dist/tool-dispatch.d.ts +1 -7
- package/dist/tool-dispatch.d.ts.map +1 -1
- package/dist/tool-dispatch.js +14 -46
- package/dist/tool-dispatch.js.map +1 -1
- package/dist/tools/dependency-health.d.ts +45 -0
- package/dist/tools/dependency-health.d.ts.map +1 -0
- package/dist/tools/dependency-health.js +152 -0
- package/dist/tools/dependency-health.js.map +1 -0
- package/dist/tools/index.d.ts +13 -40
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +18 -52
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/upgrade-planner.d.ts +59 -0
- package/dist/tools/upgrade-planner.d.ts.map +1 -0
- package/dist/tools/upgrade-planner.js +167 -0
- package/dist/tools/upgrade-planner.js.map +1 -0
- package/dist/tools/what-should-i-know.d.ts +4 -12
- package/dist/tools/what-should-i-know.d.ts.map +1 -1
- package/dist/tools/what-should-i-know.js +11 -102
- package/dist/tools/what-should-i-know.js.map +1 -1
- package/package.json +2 -2
- package/dist/schemas/agent-feedback-stats.json +0 -14
- package/dist/schemas/agent-session-brief.json +0 -25
- package/dist/schemas/attention-report.json +0 -13
- package/dist/schemas/autophagy-status.json +0 -13
- package/dist/schemas/compound-advantage.json +0 -14
- package/dist/schemas/config-validator.json +0 -18
- package/dist/schemas/context-analysis.json +0 -25
- package/dist/schemas/daily-briefing.json +0 -34
- package/dist/schemas/decision-windows.json +0 -22
- package/dist/schemas/delegation-score.json +0 -18
- package/dist/schemas/explain-relevance.json +0 -19
- package/dist/schemas/export-context.json +0 -17
- package/dist/schemas/llm-status.json +0 -13
- package/dist/schemas/preemption-feed.json +0 -18
- package/dist/schemas/project-health.json +0 -13
- package/dist/schemas/record-agent-feedback.json +0 -28
- package/dist/schemas/reverse-mentions.json +0 -13
- package/dist/schemas/score-autopsy.json +0 -30
- package/dist/schemas/semantic-shifts.json +0 -17
- package/dist/schemas/signal-chains.json +0 -19
- package/dist/schemas/source-health.json +0 -17
- package/dist/schemas/tech-radar.json +0 -23
- package/dist/schemas/topic-connections.json +0 -34
- package/dist/schemas/trend-analysis.json +0 -29
- package/dist/schemas/trust-summary.json +0 -13
- package/dist/tools/agent-feedback-stats.d.ts +0 -30
- package/dist/tools/agent-feedback-stats.d.ts.map +0 -1
- package/dist/tools/agent-feedback-stats.js +0 -41
- package/dist/tools/agent-feedback-stats.js.map +0 -1
- package/dist/tools/agent-session-brief.d.ts +0 -44
- package/dist/tools/agent-session-brief.d.ts.map +0 -1
- package/dist/tools/agent-session-brief.js +0 -179
- package/dist/tools/agent-session-brief.js.map +0 -1
- package/dist/tools/attention-report.d.ts +0 -40
- package/dist/tools/attention-report.d.ts.map +0 -1
- package/dist/tools/attention-report.js +0 -73
- package/dist/tools/attention-report.js.map +0 -1
- package/dist/tools/autophagy-status.d.ts +0 -25
- package/dist/tools/autophagy-status.d.ts.map +0 -1
- package/dist/tools/autophagy-status.js +0 -56
- package/dist/tools/autophagy-status.js.map +0 -1
- package/dist/tools/compound-advantage.d.ts +0 -30
- package/dist/tools/compound-advantage.d.ts.map +0 -1
- package/dist/tools/compound-advantage.js +0 -133
- package/dist/tools/compound-advantage.js.map +0 -1
- package/dist/tools/config-validator.d.ts +0 -59
- package/dist/tools/config-validator.d.ts.map +0 -1
- package/dist/tools/config-validator.js +0 -417
- package/dist/tools/config-validator.js.map +0 -1
- package/dist/tools/context-analysis.d.ts +0 -108
- package/dist/tools/context-analysis.d.ts.map +0 -1
- package/dist/tools/context-analysis.js +0 -301
- package/dist/tools/context-analysis.js.map +0 -1
- package/dist/tools/daily-briefing.d.ts +0 -103
- package/dist/tools/daily-briefing.d.ts.map +0 -1
- package/dist/tools/daily-briefing.js +0 -294
- package/dist/tools/daily-briefing.js.map +0 -1
- package/dist/tools/decision-windows.d.ts +0 -37
- package/dist/tools/decision-windows.d.ts.map +0 -1
- package/dist/tools/decision-windows.js +0 -67
- package/dist/tools/decision-windows.js.map +0 -1
- package/dist/tools/delegation-score.d.ts +0 -34
- package/dist/tools/delegation-score.d.ts.map +0 -1
- package/dist/tools/delegation-score.js +0 -260
- package/dist/tools/delegation-score.js.map +0 -1
- package/dist/tools/explain-relevance.d.ts +0 -36
- package/dist/tools/explain-relevance.d.ts.map +0 -1
- package/dist/tools/explain-relevance.js +0 -51
- package/dist/tools/explain-relevance.js.map +0 -1
- package/dist/tools/export-context.d.ts +0 -60
- package/dist/tools/export-context.d.ts.map +0 -1
- package/dist/tools/export-context.js +0 -179
- package/dist/tools/export-context.js.map +0 -1
- package/dist/tools/llm-status.d.ts +0 -45
- package/dist/tools/llm-status.d.ts.map +0 -1
- package/dist/tools/llm-status.js +0 -93
- package/dist/tools/llm-status.js.map +0 -1
- package/dist/tools/muse-context.d.ts +0 -195
- package/dist/tools/muse-context.d.ts.map +0 -1
- package/dist/tools/muse-context.js +0 -284
- package/dist/tools/muse-context.js.map +0 -1
- package/dist/tools/preemption-feed.d.ts +0 -55
- package/dist/tools/preemption-feed.d.ts.map +0 -1
- package/dist/tools/preemption-feed.js +0 -124
- package/dist/tools/preemption-feed.js.map +0 -1
- package/dist/tools/project-health.d.ts +0 -53
- package/dist/tools/project-health.d.ts.map +0 -1
- package/dist/tools/project-health.js +0 -122
- package/dist/tools/project-health.js.map +0 -1
- package/dist/tools/record-agent-feedback.d.ts +0 -46
- package/dist/tools/record-agent-feedback.d.ts.map +0 -1
- package/dist/tools/record-agent-feedback.js +0 -71
- package/dist/tools/record-agent-feedback.js.map +0 -1
- package/dist/tools/reverse-mentions.d.ts +0 -38
- package/dist/tools/reverse-mentions.d.ts.map +0 -1
- package/dist/tools/reverse-mentions.js +0 -75
- package/dist/tools/reverse-mentions.js.map +0 -1
- package/dist/tools/score-autopsy.d.ts +0 -93
- package/dist/tools/score-autopsy.d.ts.map +0 -1
- package/dist/tools/score-autopsy.js +0 -295
- package/dist/tools/score-autopsy.js.map +0 -1
- package/dist/tools/semantic-shifts.d.ts +0 -53
- package/dist/tools/semantic-shifts.d.ts.map +0 -1
- package/dist/tools/semantic-shifts.js +0 -74
- package/dist/tools/semantic-shifts.js.map +0 -1
- package/dist/tools/signal-chains.d.ts +0 -52
- package/dist/tools/signal-chains.d.ts.map +0 -1
- package/dist/tools/signal-chains.js +0 -63
- package/dist/tools/signal-chains.js.map +0 -1
- package/dist/tools/source-health.d.ts +0 -64
- package/dist/tools/source-health.d.ts.map +0 -1
- package/dist/tools/source-health.js +0 -205
- package/dist/tools/source-health.js.map +0 -1
- package/dist/tools/tech-radar.d.ts +0 -38
- package/dist/tools/tech-radar.d.ts.map +0 -1
- package/dist/tools/tech-radar.js +0 -249
- package/dist/tools/tech-radar.js.map +0 -1
- package/dist/tools/topic-connections.d.ts +0 -112
- package/dist/tools/topic-connections.d.ts.map +0 -1
- package/dist/tools/topic-connections.js +0 -319
- package/dist/tools/topic-connections.js.map +0 -1
- package/dist/tools/trend-analysis.d.ts +0 -105
- package/dist/tools/trend-analysis.d.ts.map +0 -1
- package/dist/tools/trend-analysis.js +0 -296
- package/dist/tools/trend-analysis.js.map +0 -1
- package/dist/tools/trust-summary.d.ts +0 -38
- package/dist/tools/trust-summary.d.ts.map +0 -1
- package/dist/tools/trust-summary.js +0 -89
- package/dist/tools/trust-summary.js.map +0 -1
package/dist/schema-registry.js
CHANGED
|
@@ -14,71 +14,59 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* Slim tool registry — one-liner descriptions + category/tag metadata.
|
|
16
16
|
* Full schemas are stored in schemas/*.json and exposed as MCP Resources.
|
|
17
|
+
*
|
|
18
|
+
* 14 tools total: 9 standalone + 5 full-mode.
|
|
17
19
|
*/
|
|
18
20
|
export const TOOL_REGISTRY = {
|
|
19
|
-
//
|
|
20
|
-
|
|
21
|
-
summary: "
|
|
22
|
-
schemaFile: "
|
|
23
|
-
category: "
|
|
24
|
-
tags: ["
|
|
25
|
-
standalone: false,
|
|
26
|
-
},
|
|
27
|
-
get_context: {
|
|
28
|
-
summary: "Get user's interests, tech stack, learned affinities",
|
|
29
|
-
schemaFile: "get-context.json",
|
|
30
|
-
category: "core",
|
|
31
|
-
tags: ["context", "interests", "tech-stack", "profile"],
|
|
21
|
+
// --- Dependency Security (standalone) ---
|
|
22
|
+
vulnerability_scan: {
|
|
23
|
+
summary: "Scan dependencies for known CVEs via OSV.dev — zero config, multi-ecosystem",
|
|
24
|
+
schemaFile: "vulnerability-scan.json",
|
|
25
|
+
category: "security",
|
|
26
|
+
tags: ["security", "vulnerabilities", "cve", "dependencies", "osv"],
|
|
32
27
|
standalone: true,
|
|
33
28
|
},
|
|
34
|
-
|
|
35
|
-
summary: "
|
|
36
|
-
schemaFile: "
|
|
37
|
-
category: "
|
|
38
|
-
tags: ["
|
|
39
|
-
standalone:
|
|
40
|
-
},
|
|
41
|
-
record_feedback: {
|
|
42
|
-
summary: "Teach 4DA what you like/dislike (click, save, dismiss)",
|
|
43
|
-
schemaFile: "record-feedback.json",
|
|
44
|
-
category: "core",
|
|
45
|
-
tags: ["feedback", "preference", "learning", "interaction"],
|
|
46
|
-
standalone: false,
|
|
29
|
+
dependency_health: {
|
|
30
|
+
summary: "Dependency health — version freshness, deprecation, CVEs across npm/Rust/Python/Go",
|
|
31
|
+
schemaFile: "dependency-health.json",
|
|
32
|
+
category: "security",
|
|
33
|
+
tags: ["dependencies", "health", "outdated", "deprecated", "versions"],
|
|
34
|
+
standalone: true,
|
|
47
35
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
standalone: false,
|
|
36
|
+
upgrade_planner: {
|
|
37
|
+
summary: "Ranked upgrade recommendations — prioritized by CVE severity, deprecation, version distance",
|
|
38
|
+
schemaFile: "upgrade-planner.json",
|
|
39
|
+
category: "security",
|
|
40
|
+
tags: ["upgrade", "dependencies", "recommendations", "versions"],
|
|
41
|
+
standalone: true,
|
|
55
42
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
43
|
+
// --- Intelligence (mixed) ---
|
|
44
|
+
what_should_i_know: {
|
|
45
|
+
summary: "Pre-task intelligence briefing — advisories, decisions, signals, ecosystem updates",
|
|
46
|
+
schemaFile: "what-should-i-know.json",
|
|
59
47
|
category: "intelligence",
|
|
60
|
-
tags: ["
|
|
61
|
-
standalone:
|
|
48
|
+
tags: ["briefing", "advisories", "pre-task", "signals"],
|
|
49
|
+
standalone: true,
|
|
62
50
|
},
|
|
63
|
-
|
|
64
|
-
summary: "
|
|
65
|
-
schemaFile: "
|
|
51
|
+
ecosystem_pulse: {
|
|
52
|
+
summary: "Live ecosystem news relevant to your tech stack from Hacker News",
|
|
53
|
+
schemaFile: "ecosystem-pulse.json",
|
|
66
54
|
category: "intelligence",
|
|
67
|
-
tags: ["
|
|
68
|
-
standalone:
|
|
55
|
+
tags: ["ecosystem", "news", "hacker-news", "live"],
|
|
56
|
+
standalone: true,
|
|
69
57
|
},
|
|
70
|
-
|
|
71
|
-
summary: "
|
|
72
|
-
schemaFile: "context
|
|
58
|
+
get_context: {
|
|
59
|
+
summary: "Get user's interests, tech stack, learned affinities",
|
|
60
|
+
schemaFile: "get-context.json",
|
|
73
61
|
category: "intelligence",
|
|
74
|
-
tags: ["context", "
|
|
75
|
-
standalone:
|
|
62
|
+
tags: ["context", "interests", "tech-stack", "profile"],
|
|
63
|
+
standalone: true,
|
|
76
64
|
},
|
|
77
|
-
|
|
78
|
-
summary: "
|
|
79
|
-
schemaFile: "
|
|
65
|
+
get_relevant_content: {
|
|
66
|
+
summary: "Query scored content feed — articles, advisories, releases ranked by relevance to your stack",
|
|
67
|
+
schemaFile: "get-relevant-content.json",
|
|
80
68
|
category: "intelligence",
|
|
81
|
-
tags: ["
|
|
69
|
+
tags: ["content", "feed", "relevance", "filter"],
|
|
82
70
|
standalone: false,
|
|
83
71
|
},
|
|
84
72
|
get_actionable_signals: {
|
|
@@ -88,101 +76,36 @@ export const TOOL_REGISTRY = {
|
|
|
88
76
|
tags: ["signals", "priority", "actionable", "classification"],
|
|
89
77
|
standalone: false,
|
|
90
78
|
},
|
|
91
|
-
signal_chains: {
|
|
92
|
-
summary: "Get causal signal chains connecting related events over time",
|
|
93
|
-
schemaFile: "signal-chains.json",
|
|
94
|
-
category: "intelligence",
|
|
95
|
-
tags: ["signals", "causal", "chains", "temporal"],
|
|
96
|
-
standalone: false,
|
|
97
|
-
},
|
|
98
|
-
semantic_shifts: {
|
|
99
|
-
summary: "Detect narrative shifts in topics you follow",
|
|
100
|
-
schemaFile: "semantic-shifts.json",
|
|
101
|
-
category: "intelligence",
|
|
102
|
-
tags: ["narrative", "shifts", "topics", "detection"],
|
|
103
|
-
standalone: false,
|
|
104
|
-
},
|
|
105
|
-
attention_report: {
|
|
106
|
-
summary: "Analyze attention allocation vs codebase needs",
|
|
107
|
-
schemaFile: "attention-report.json",
|
|
108
|
-
category: "intelligence",
|
|
109
|
-
tags: ["attention", "allocation", "codebase", "analysis"],
|
|
110
|
-
standalone: false,
|
|
111
|
-
},
|
|
112
|
-
// Diagnostic Tools
|
|
113
|
-
source_health: {
|
|
114
|
-
summary: "Diagnose source fetching and data quality issues",
|
|
115
|
-
schemaFile: "source-health.json",
|
|
116
|
-
category: "diagnostic",
|
|
117
|
-
tags: ["sources", "health", "fetching", "quality"],
|
|
118
|
-
standalone: false,
|
|
119
|
-
},
|
|
120
|
-
config_validator: {
|
|
121
|
-
summary: "Validate configuration and detect issues",
|
|
122
|
-
schemaFile: "config-validator.json",
|
|
123
|
-
category: "diagnostic",
|
|
124
|
-
tags: ["config", "validation", "settings", "health"],
|
|
125
|
-
standalone: false,
|
|
126
|
-
},
|
|
127
|
-
llm_status: {
|
|
128
|
-
summary: "Check LLM/Ollama configuration and availability",
|
|
129
|
-
schemaFile: "llm-status.json",
|
|
130
|
-
category: "diagnostic",
|
|
131
|
-
tags: ["llm", "ollama", "status", "availability"],
|
|
132
|
-
standalone: false,
|
|
133
|
-
},
|
|
134
|
-
// Knowledge & Health Tools
|
|
135
|
-
export_context_packet: {
|
|
136
|
-
summary: "Generate portable context packet for session handoff",
|
|
137
|
-
schemaFile: "export-context.json",
|
|
138
|
-
category: "knowledge",
|
|
139
|
-
tags: ["export", "context", "handoff", "portable"],
|
|
140
|
-
standalone: false,
|
|
141
|
-
},
|
|
142
79
|
knowledge_gaps: {
|
|
143
|
-
summary: "
|
|
80
|
+
summary: "Dependencies you use daily but never read about — surfaces missed CVEs and updates",
|
|
144
81
|
schemaFile: "knowledge-gaps.json",
|
|
145
|
-
category: "
|
|
146
|
-
tags: ["gaps", "dependencies", "knowledge", "
|
|
147
|
-
standalone: false,
|
|
148
|
-
},
|
|
149
|
-
reverse_mentions: {
|
|
150
|
-
summary: "Find where your projects are mentioned in sources",
|
|
151
|
-
schemaFile: "reverse-mentions.json",
|
|
152
|
-
category: "knowledge",
|
|
153
|
-
tags: ["mentions", "projects", "sources", "discovery"],
|
|
82
|
+
category: "intelligence",
|
|
83
|
+
tags: ["gaps", "dependencies", "knowledge", "blind-spots"],
|
|
154
84
|
standalone: false,
|
|
155
85
|
},
|
|
156
|
-
|
|
157
|
-
summary: "
|
|
158
|
-
schemaFile: "
|
|
159
|
-
category: "
|
|
160
|
-
tags: ["
|
|
86
|
+
record_feedback: {
|
|
87
|
+
summary: "Teach 4DA what matters — save or dismiss items to sharpen future scoring",
|
|
88
|
+
schemaFile: "record-feedback.json",
|
|
89
|
+
category: "intelligence",
|
|
90
|
+
tags: ["feedback", "learning", "save", "dismiss"],
|
|
161
91
|
standalone: false,
|
|
162
92
|
},
|
|
163
|
-
//
|
|
93
|
+
// --- Decisions (standalone) ---
|
|
164
94
|
decision_memory: {
|
|
165
|
-
summary: "
|
|
95
|
+
summary: "Record, query, and manage architectural decisions across sessions",
|
|
166
96
|
schemaFile: "decision-memory.json",
|
|
167
97
|
category: "decisions",
|
|
168
|
-
tags: ["decisions", "memory", "record", "
|
|
98
|
+
tags: ["decisions", "memory", "record", "architecture"],
|
|
169
99
|
standalone: true,
|
|
170
100
|
},
|
|
171
|
-
tech_radar: {
|
|
172
|
-
summary: "Generate tech radar from decisions and content signals",
|
|
173
|
-
schemaFile: "tech-radar.json",
|
|
174
|
-
category: "decisions",
|
|
175
|
-
tags: ["tech-radar", "decisions", "signals", "adopt"],
|
|
176
|
-
standalone: false,
|
|
177
|
-
},
|
|
178
101
|
check_decision_alignment: {
|
|
179
|
-
summary: "Check if a technology
|
|
102
|
+
summary: "Check if a technology change aligns with recorded decisions before proceeding",
|
|
180
103
|
schemaFile: "decision-enforcement.json",
|
|
181
104
|
category: "decisions",
|
|
182
105
|
tags: ["alignment", "decisions", "enforcement", "check"],
|
|
183
106
|
standalone: true,
|
|
184
107
|
},
|
|
185
|
-
// Agent
|
|
108
|
+
// --- Agent (standalone) ---
|
|
186
109
|
agent_memory: {
|
|
187
110
|
summary: "Cross-agent persistent memory — store and recall across sessions and tools",
|
|
188
111
|
schemaFile: "agent-memory.json",
|
|
@@ -190,103 +113,14 @@ export const TOOL_REGISTRY = {
|
|
|
190
113
|
tags: ["agent", "memory", "persistent", "cross-session"],
|
|
191
114
|
standalone: true,
|
|
192
115
|
},
|
|
193
|
-
|
|
194
|
-
summary: "Tailored session startup context for AI agents — decisions, changes, memories",
|
|
195
|
-
schemaFile: "agent-session-brief.json",
|
|
196
|
-
category: "agent",
|
|
197
|
-
tags: ["agent", "session", "brief", "startup"],
|
|
198
|
-
standalone: false,
|
|
199
|
-
},
|
|
200
|
-
delegation_score: {
|
|
201
|
-
summary: "AI-delegatability assessment — should the agent proceed or ask the human?",
|
|
202
|
-
schemaFile: "delegation-score.json",
|
|
203
|
-
category: "agent",
|
|
204
|
-
tags: ["agent", "delegation", "autonomy", "assessment"],
|
|
205
|
-
standalone: false,
|
|
206
|
-
},
|
|
207
|
-
// Developer DNA
|
|
116
|
+
// --- Identity (full-mode) ---
|
|
208
117
|
developer_dna: {
|
|
209
|
-
summary: "Export your Developer DNA — tech identity,
|
|
118
|
+
summary: "Export your Developer DNA — tech identity, primary stack, engagement patterns",
|
|
210
119
|
schemaFile: "developer-dna.json",
|
|
211
120
|
category: "identity",
|
|
212
121
|
tags: ["identity", "dna", "profile", "tech-stack", "export"],
|
|
213
122
|
standalone: false,
|
|
214
123
|
},
|
|
215
|
-
// Intelligence Metabolism Tools
|
|
216
|
-
autophagy_status: {
|
|
217
|
-
summary: "Get intelligence metabolism status — autophagy cycles, calibration accuracy, anti-patterns",
|
|
218
|
-
schemaFile: "autophagy-status.json",
|
|
219
|
-
category: "metabolism",
|
|
220
|
-
tags: ["autophagy", "metabolism", "calibration", "health"],
|
|
221
|
-
standalone: false,
|
|
222
|
-
},
|
|
223
|
-
decision_windows: {
|
|
224
|
-
summary: "View and manage decision windows — time-bounded opportunities requiring attention",
|
|
225
|
-
schemaFile: "decision-windows.json",
|
|
226
|
-
category: "metabolism",
|
|
227
|
-
tags: ["decisions", "windows", "time-bounded", "opportunities"],
|
|
228
|
-
standalone: false,
|
|
229
|
-
},
|
|
230
|
-
compound_advantage: {
|
|
231
|
-
summary: "Get compound advantage score — measures intelligence leverage for decisions",
|
|
232
|
-
schemaFile: "compound-advantage.json",
|
|
233
|
-
category: "metabolism",
|
|
234
|
-
tags: ["compound", "advantage", "leverage", "score"],
|
|
235
|
-
standalone: false,
|
|
236
|
-
},
|
|
237
|
-
// Agent Feedback Tools
|
|
238
|
-
record_agent_feedback: {
|
|
239
|
-
summary: "Record whether agent-recommended content was used, rejected, or partially used",
|
|
240
|
-
schemaFile: "record-agent-feedback.json",
|
|
241
|
-
category: "agent",
|
|
242
|
-
tags: ["agent", "feedback", "learning", "pasifa", "scoring"],
|
|
243
|
-
standalone: false,
|
|
244
|
-
},
|
|
245
|
-
get_agent_feedback_stats: {
|
|
246
|
-
summary: "Get statistics on agent recommendation usage — source usefulness, top items, trends",
|
|
247
|
-
schemaFile: "agent-feedback-stats.json",
|
|
248
|
-
category: "agent",
|
|
249
|
-
tags: ["agent", "feedback", "statistics", "analytics", "pasifa"],
|
|
250
|
-
standalone: false,
|
|
251
|
-
},
|
|
252
|
-
// Synthesis Tools
|
|
253
|
-
what_should_i_know: {
|
|
254
|
-
summary: "Pre-task intelligence briefing — advisories, decisions, signals, delegation assessment",
|
|
255
|
-
schemaFile: "what-should-i-know.json",
|
|
256
|
-
category: "agent",
|
|
257
|
-
tags: ["agent", "briefing", "synthesis", "pre-task", "delegation", "advisories"],
|
|
258
|
-
standalone: true,
|
|
259
|
-
},
|
|
260
|
-
// Trust & Preemption Tools
|
|
261
|
-
trust_summary: {
|
|
262
|
-
summary: "Intelligence quality metrics — precision, action rate, false positives, preemption wins",
|
|
263
|
-
schemaFile: "trust-summary.json",
|
|
264
|
-
category: "intelligence",
|
|
265
|
-
tags: ["trust", "precision", "quality", "metrics", "reliability"],
|
|
266
|
-
standalone: false,
|
|
267
|
-
},
|
|
268
|
-
preemption_feed: {
|
|
269
|
-
summary: "Forward-looking alerts — signal chains, dependency risks, knowledge gaps",
|
|
270
|
-
schemaFile: "preemption-feed.json",
|
|
271
|
-
category: "intelligence",
|
|
272
|
-
tags: ["preemption", "alerts", "risks", "dependencies", "forward-looking"],
|
|
273
|
-
standalone: false,
|
|
274
|
-
},
|
|
275
|
-
// Live Intelligence Tools
|
|
276
|
-
vulnerability_scan: {
|
|
277
|
-
summary: "Scan dependencies for known CVEs via OSV.dev — zero config, multi-ecosystem",
|
|
278
|
-
schemaFile: "vulnerability-scan.json",
|
|
279
|
-
category: "knowledge",
|
|
280
|
-
tags: ["security", "vulnerabilities", "cve", "dependencies", "osv", "scanning"],
|
|
281
|
-
standalone: true,
|
|
282
|
-
},
|
|
283
|
-
ecosystem_pulse: {
|
|
284
|
-
summary: "Live ecosystem news relevant to your tech stack from Hacker News",
|
|
285
|
-
schemaFile: "ecosystem-pulse.json",
|
|
286
|
-
category: "intelligence",
|
|
287
|
-
tags: ["ecosystem", "news", "hacker-news", "trends", "live"],
|
|
288
|
-
standalone: true,
|
|
289
|
-
},
|
|
290
124
|
};
|
|
291
125
|
/**
|
|
292
126
|
* Get slim tool list for list_tools response
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-registry.js","sourceRoot":"","sources":["../src/schema-registry.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"schema-registry.js","sourceRoot":"","sources":["../src/schema-registry.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C;;;;;;;;;;;GAWG;AAmBH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAsC;IAC9D,2CAA2C;IAC3C,kBAAkB,EAAE;QAClB,OAAO,EAAE,6EAA6E;QACtF,UAAU,EAAE,yBAAyB;QACrC,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,CAAC;QACnE,UAAU,EAAE,IAAI;KACjB;IACD,iBAAiB,EAAE;QACjB,OAAO,EAAE,oFAAoF;QAC7F,UAAU,EAAE,wBAAwB;QACpC,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,CAAC,cAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC;QACtE,UAAU,EAAE,IAAI;KACjB;IACD,eAAe,EAAE;QACf,OAAO,EAAE,6FAA6F;QACtG,UAAU,EAAE,sBAAsB;QAClC,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,iBAAiB,EAAE,UAAU,CAAC;QAChE,UAAU,EAAE,IAAI;KACjB;IAED,+BAA+B;IAC/B,kBAAkB,EAAE;QAClB,OAAO,EAAE,oFAAoF;QAC7F,UAAU,EAAE,yBAAyB;Q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AO,GAAG,kBAAkB,EAAE,CAAC;IACrC,MAAM,UAAU,GAAG,EAA8D,CAAC;IAElF,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QACnD,UAAU,CAAC,GAAmB,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;IACnE,CAAC;IAED,OAAO;QACL,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM;QAC9C,UAAU;KACX,CAAC;AACJ,CAAC;AAED,gDAAgD;AAChD,MAAM,UAAU,cAAc,CAAC,IAAc;IAC3C,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IACzD,OAAO,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC;SACjC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;SAC1E,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dependency_health",
|
|
3
|
+
"description": "Assess health of project dependencies — version freshness, deprecation status, known CVEs across npm, Rust, Python, and Go. Auto-detects from lock files.\n\nReturns a health score (0-100), outdated/deprecated/vulnerable counts, and per-dependency details including semver distance and registry metadata.\n\nPrivacy: sends only package names (public manifest data). No code or personal data transmitted.",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"include_dev": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "Include devDependencies in health check. Default: false."
|
|
10
|
+
},
|
|
11
|
+
"ecosystem_filter": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": ["npm", "crates.io", "PyPI", "Go"],
|
|
14
|
+
"description": "Only show dependencies from this ecosystem."
|
|
15
|
+
},
|
|
16
|
+
"sort_by": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": ["risk", "name", "outdated"],
|
|
19
|
+
"description": "Sort order. 'risk' prioritizes vulnerable+deprecated+outdated. Default: risk."
|
|
20
|
+
},
|
|
21
|
+
"limit": {
|
|
22
|
+
"type": "number",
|
|
23
|
+
"description": "Maximum dependencies to return. Default: 50."
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "upgrade_planner",
|
|
3
|
+
"description": "Ranked upgrade recommendations for project dependencies. Combines vulnerability severity, deprecation status, and version distance to produce a prioritized upgrade plan.\n\nShows quick wins (safe patch/minor upgrades) separately from breaking changes (major version bumps). Use this after dependency_health to plan your upgrade strategy.\n\nPrivacy: uses cached registry data. No additional network calls beyond what dependency_health already fetched.",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"include_dev": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "Include devDependencies. Default: false."
|
|
10
|
+
},
|
|
11
|
+
"max_recommendations": {
|
|
12
|
+
"type": "number",
|
|
13
|
+
"description": "Maximum recommendations to return. Default: 20."
|
|
14
|
+
},
|
|
15
|
+
"risk_threshold": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": ["all", "low", "medium", "high", "critical"],
|
|
18
|
+
"description": "Only show upgrades at or above this risk level. Default: all."
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
package/dist/tool-dispatch.d.ts
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Tool Dispatch Registry
|
|
3
3
|
*
|
|
4
|
-
* Map-based dispatch
|
|
5
|
-
* All 33 execute functions are imported once and mapped by tool name.
|
|
6
|
-
*
|
|
4
|
+
* Map-based dispatch for the 14 active tools.
|
|
7
5
|
* Adding a new tool = add to this map + schema-registry + barrel export.
|
|
8
6
|
*/
|
|
9
7
|
import type { FourDADatabase } from "./db.js";
|
|
10
8
|
/**
|
|
11
9
|
* Executor signature — all tool execute functions follow this shape.
|
|
12
10
|
* Awaiting a sync return resolves immediately, so we can await uniformly.
|
|
13
|
-
*
|
|
14
|
-
* Uses `any` for params because each tool defines its own strict param type —
|
|
15
|
-
* type safety is enforced inside each tool file, not at the dispatch boundary.
|
|
16
|
-
* (The original switch statement used `as unknown as XParams` on every call.)
|
|
17
11
|
*/
|
|
18
12
|
export type ToolExecutor = (db: FourDADatabase, params: any) => unknown | Promise<unknown>;
|
|
19
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-dispatch.d.ts","sourceRoot":"","sources":["../src/tool-dispatch.ts"],"names":[],"mappings":"AACA
|
|
1
|
+
{"version":3,"file":"tool-dispatch.d.ts","sourceRoot":"","sources":["../src/tool-dispatch.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAqB9C;;;GAGG;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AA+B3F;;;GAGG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,cAAc,EAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GACxC,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAU7D;AAED,iDAAiD;AACjD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,6CAA6C;AAC7C,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C"}
|
package/dist/tool-dispatch.js
CHANGED
|
@@ -2,66 +2,34 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Tool Dispatch Registry
|
|
4
4
|
*
|
|
5
|
-
* Map-based dispatch
|
|
6
|
-
* All 33 execute functions are imported once and mapped by tool name.
|
|
7
|
-
*
|
|
5
|
+
* Map-based dispatch for the 14 active tools.
|
|
8
6
|
* Adding a new tool = add to this map + schema-registry + barrel export.
|
|
9
7
|
*/
|
|
10
|
-
import { executeGetRelevantContent, executeGetContext,
|
|
8
|
+
import { executeGetRelevantContent, executeGetContext, executeRecordFeedback, executeGetActionableSignals, executeKnowledgeGaps, executeDecisionMemory, executeCheckDecisionAlignment, executeAgentMemory, executeDeveloperDna, executeWhatShouldIKnow, executeVulnerabilityScan, executeEcosystemPulse, executeDependencyHealth, executeUpgradePlanner, } from "./tools/index.js";
|
|
11
9
|
import { getLiveIntelligence } from "./live-singleton.js";
|
|
12
10
|
/**
|
|
13
11
|
* Dispatch map — tool name → execute function
|
|
14
12
|
*/
|
|
15
13
|
const DISPATCH_MAP = {
|
|
16
|
-
//
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
record_feedback: executeRecordFeedback,
|
|
14
|
+
// Dependency Security
|
|
15
|
+
vulnerability_scan: (db, params) => executeVulnerabilityScan(db, params, getLiveIntelligence()),
|
|
16
|
+
dependency_health: (db, params) => executeDependencyHealth(db, params, getLiveIntelligence()),
|
|
17
|
+
upgrade_planner: (db, params) => executeUpgradePlanner(db, params, getLiveIntelligence()),
|
|
21
18
|
// Intelligence
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
topic_connections: executeTopicConnections,
|
|
19
|
+
what_should_i_know: executeWhatShouldIKnow,
|
|
20
|
+
ecosystem_pulse: (db, params) => executeEcosystemPulse(db, params, getLiveIntelligence()),
|
|
21
|
+
get_context: executeGetContext,
|
|
22
|
+
get_relevant_content: executeGetRelevantContent,
|
|
27
23
|
get_actionable_signals: executeGetActionableSignals,
|
|
28
|
-
signal_chains: executeSignalChains,
|
|
29
|
-
semantic_shifts: executeSemanticShifts,
|
|
30
|
-
attention_report: executeAttentionReport,
|
|
31
|
-
// Diagnostic
|
|
32
|
-
source_health: executeSourceHealth,
|
|
33
|
-
config_validator: executeConfigValidator,
|
|
34
|
-
llm_status: executeLLMStatus,
|
|
35
|
-
// Knowledge & Health
|
|
36
|
-
export_context_packet: executeExportContextPacket,
|
|
37
24
|
knowledge_gaps: executeKnowledgeGaps,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Decision Intelligence
|
|
25
|
+
record_feedback: executeRecordFeedback,
|
|
26
|
+
// Decisions
|
|
41
27
|
decision_memory: executeDecisionMemory,
|
|
42
|
-
tech_radar: executeTechRadar,
|
|
43
28
|
check_decision_alignment: executeCheckDecisionAlignment,
|
|
44
|
-
// Agent
|
|
29
|
+
// Agent
|
|
45
30
|
agent_memory: executeAgentMemory,
|
|
46
|
-
|
|
47
|
-
delegation_score: executeDelegationScore,
|
|
48
|
-
// Developer DNA
|
|
31
|
+
// Identity
|
|
49
32
|
developer_dna: executeDeveloperDna,
|
|
50
|
-
// Intelligence Metabolism
|
|
51
|
-
autophagy_status: executeAutophagyStatus,
|
|
52
|
-
decision_windows: executeDecisionWindows,
|
|
53
|
-
compound_advantage: executeCompoundAdvantage,
|
|
54
|
-
// Agent Feedback
|
|
55
|
-
record_agent_feedback: executeRecordAgentFeedback,
|
|
56
|
-
get_agent_feedback_stats: executeGetAgentFeedbackStats,
|
|
57
|
-
// Synthesis
|
|
58
|
-
what_should_i_know: executeWhatShouldIKnow,
|
|
59
|
-
// Trust & Preemption
|
|
60
|
-
trust_summary: executeTrustSummary,
|
|
61
|
-
preemption_feed: executePreemptionFeed,
|
|
62
|
-
// Live Intelligence
|
|
63
|
-
vulnerability_scan: (db, params) => executeVulnerabilityScan(db, params, getLiveIntelligence()),
|
|
64
|
-
ecosystem_pulse: (db, params) => executeEcosystemPulse(db, params, getLiveIntelligence()),
|
|
65
33
|
};
|
|
66
34
|
/**
|
|
67
35
|
* Dispatch a tool call by name. Awaits uniformly (no-op for sync executors).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-dispatch.js","sourceRoot":"","sources":["../src/tool-dispatch.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C
|
|
1
|
+
{"version":3,"file":"tool-dispatch.js","sourceRoot":"","sources":["../src/tool-dispatch.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C;;;;;GAKG;AAIH,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,2BAA2B,EAC3B,oBAAoB,EACpB,qBAAqB,EACrB,6BAA6B,EAC7B,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAS1D;;GAEG;AACH,MAAM,YAAY,GAAiC;IACjD,sBAAsB;IACtB,kBAAkB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC/F,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC7F,eAAe,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oB;IAClC,OAAO,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dependency_health tool
|
|
3
|
+
*
|
|
4
|
+
* Assesses health of project dependencies by checking version freshness,
|
|
5
|
+
* deprecation status, and known vulnerabilities across npm, crates.io,
|
|
6
|
+
* PyPI, and Go ecosystems. Zero config — auto-detects from lock files.
|
|
7
|
+
*/
|
|
8
|
+
import type { FourDADatabase } from "../db.js";
|
|
9
|
+
import type { LiveIntelligence } from "../live/index.js";
|
|
10
|
+
import type { DependencyHealthResult } from "../live/types.js";
|
|
11
|
+
export interface DependencyHealthParams {
|
|
12
|
+
include_dev?: boolean;
|
|
13
|
+
ecosystem_filter?: string;
|
|
14
|
+
sort_by?: "risk" | "name" | "outdated";
|
|
15
|
+
limit?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare const dependencyHealthTool: {
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
inputSchema: {
|
|
21
|
+
type: "object";
|
|
22
|
+
properties: {
|
|
23
|
+
include_dev: {
|
|
24
|
+
type: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
ecosystem_filter: {
|
|
28
|
+
type: string;
|
|
29
|
+
enum: string[];
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
sort_by: {
|
|
33
|
+
type: string;
|
|
34
|
+
enum: string[];
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
limit: {
|
|
38
|
+
type: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare function executeDependencyHealth(_db: FourDADatabase, params: DependencyHealthParams, liveIntel: LiveIntelligence | null): Promise<DependencyHealthResult>;
|
|
45
|
+
//# sourceMappingURL=dependency-health.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependency-health.d.ts","sourceRoot":"","sources":["../../src/tools/dependency-health.ts"],"names":[],"mappings":"AACA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,sBAAsB,EAAuB,MAAM,kBAAkB,CAAC;AAEpF,MAAM,WAAW,sBAAsB;IACrC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BhC,CAAC;AAEF,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,cAAc,EACnB,MAAM,EAAE,sBAAsB,EAC9B,SAAS,EAAE,gBAAgB,GAAG,IAAI,GACjC,OAAO,CAAC,sBAAsB,CAAC,CAsHjC"}
|