@4da/mcp-server 3.2.0 → 4.1.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/LICENSE +21 -0
- package/README.md +234 -62
- package/dist/auth.d.ts +36 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +82 -0
- package/dist/auth.js.map +1 -0
- package/dist/db.d.ts +100 -2
- package/dist/db.d.ts.map +1 -1
- package/dist/db.js +707 -1
- package/dist/db.js.map +1 -1
- package/dist/doctor.d.ts +15 -0
- package/dist/doctor.d.ts.map +1 -0
- package/dist/doctor.js +124 -0
- package/dist/doctor.js.map +1 -0
- package/dist/http-transport.d.ts +25 -0
- package/dist/http-transport.d.ts.map +1 -0
- package/dist/http-transport.js +143 -0
- package/dist/http-transport.js.map +1 -0
- package/dist/index.d.ts +15 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +195 -250
- package/dist/index.js.map +1 -1
- package/dist/live/cache.d.ts +16 -0
- package/dist/live/cache.d.ts.map +1 -0
- package/dist/live/cache.js +61 -0
- package/dist/live/cache.js.map +1 -0
- package/dist/live/hn-fetcher.d.ts +19 -0
- package/dist/live/hn-fetcher.d.ts.map +1 -0
- package/dist/live/hn-fetcher.js +123 -0
- package/dist/live/hn-fetcher.js.map +1 -0
- package/dist/live/index.d.ts +55 -0
- package/dist/live/index.d.ts.map +1 -0
- package/dist/live/index.js +131 -0
- package/dist/live/index.js.map +1 -0
- package/dist/live/osv-scanner.d.ts +19 -0
- package/dist/live/osv-scanner.d.ts.map +1 -0
- package/dist/live/osv-scanner.js +197 -0
- package/dist/live/osv-scanner.js.map +1 -0
- package/dist/live/rate-limiter.d.ts +19 -0
- package/dist/live/rate-limiter.d.ts.map +1 -0
- package/dist/live/rate-limiter.js +52 -0
- package/dist/live/rate-limiter.js.map +1 -0
- package/dist/live/types.d.ts +89 -0
- package/dist/live/types.d.ts.map +1 -0
- package/dist/live/types.js +3 -0
- package/dist/live/types.js.map +1 -0
- package/dist/live/version-resolver.d.ts +11 -0
- package/dist/live/version-resolver.d.ts.map +1 -0
- package/dist/live/version-resolver.js +321 -0
- package/dist/live/version-resolver.js.map +1 -0
- package/dist/live-singleton.d.ts +9 -0
- package/dist/live-singleton.d.ts.map +1 -0
- package/dist/live-singleton.js +14 -0
- package/dist/live-singleton.js.map +1 -0
- package/dist/llm.d.ts +20 -2
- package/dist/llm.d.ts.map +1 -1
- package/dist/llm.js +80 -22
- package/dist/llm.js.map +1 -1
- package/dist/output-manager.d.ts.map +1 -1
- package/dist/output-manager.js +1 -0
- package/dist/output-manager.js.map +1 -1
- package/dist/project-scanner.d.ts +27 -0
- package/dist/project-scanner.d.ts.map +1 -0
- package/dist/project-scanner.js +366 -0
- package/dist/project-scanner.js.map +1 -0
- package/dist/schema-registry.d.ts +31 -13
- package/dist/schema-registry.d.ts.map +1 -1
- package/dist/schema-registry.js +208 -32
- package/dist/schema-registry.js.map +1 -1
- package/dist/schemas/agent-feedback-stats.json +14 -0
- package/dist/schemas/agent-memory.json +49 -0
- package/dist/schemas/agent-session-brief.json +25 -0
- package/dist/schemas/attention-report.json +13 -0
- package/dist/schemas/autophagy-status.json +13 -0
- package/dist/schemas/compound-advantage.json +14 -0
- package/dist/schemas/decision-enforcement.json +22 -0
- package/dist/schemas/decision-memory.json +54 -0
- package/dist/schemas/decision-windows.json +22 -0
- package/dist/schemas/delegation-score.json +18 -0
- package/dist/schemas/developer-dna.json +219 -0
- package/dist/schemas/export-context.json +17 -0
- package/dist/schemas/knowledge-gaps.json +14 -0
- package/dist/schemas/preemption-feed.json +18 -0
- package/dist/schemas/project-health.json +13 -0
- package/dist/schemas/record-agent-feedback.json +28 -0
- package/dist/schemas/reverse-mentions.json +13 -0
- package/dist/schemas/semantic-shifts.json +17 -0
- package/dist/schemas/signal-chains.json +19 -0
- package/dist/schemas/tech-radar.json +23 -0
- package/dist/schemas/trust-summary.json +13 -0
- package/dist/schemas/vulnerability-scan.json +26 -0
- package/dist/schemas/what-should-i-know.json +19 -0
- package/dist/setup.d.ts +18 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +171 -0
- package/dist/setup.js.map +1 -0
- package/dist/tool-dispatch.d.ts +33 -0
- package/dist/tool-dispatch.d.ts.map +1 -0
- package/dist/tool-dispatch.js +87 -0
- package/dist/tool-dispatch.js.map +1 -0
- package/dist/tools/agent-feedback-stats.d.ts +30 -0
- package/dist/tools/agent-feedback-stats.d.ts.map +1 -0
- package/dist/tools/agent-feedback-stats.js +41 -0
- package/dist/tools/agent-feedback-stats.js.map +1 -0
- package/dist/tools/agent-memory.d.ts +94 -0
- package/dist/tools/agent-memory.d.ts.map +1 -0
- package/dist/tools/agent-memory.js +262 -0
- package/dist/tools/agent-memory.js.map +1 -0
- package/dist/tools/agent-session-brief.d.ts +44 -0
- package/dist/tools/agent-session-brief.d.ts.map +1 -0
- package/dist/tools/agent-session-brief.js +179 -0
- package/dist/tools/agent-session-brief.js.map +1 -0
- package/dist/tools/attention-report.d.ts +6 -5
- package/dist/tools/attention-report.d.ts.map +1 -1
- package/dist/tools/attention-report.js +1 -0
- package/dist/tools/attention-report.js.map +1 -1
- package/dist/tools/autophagy-status.d.ts +25 -0
- package/dist/tools/autophagy-status.d.ts.map +1 -0
- package/dist/tools/autophagy-status.js +56 -0
- package/dist/tools/autophagy-status.js.map +1 -0
- package/dist/tools/compound-advantage.d.ts +30 -0
- package/dist/tools/compound-advantage.d.ts.map +1 -0
- package/dist/tools/compound-advantage.js +133 -0
- package/dist/tools/compound-advantage.js.map +1 -0
- package/dist/tools/config-validator.d.ts.map +1 -1
- package/dist/tools/config-validator.js +31 -0
- package/dist/tools/config-validator.js.map +1 -1
- package/dist/tools/context-analysis.d.ts.map +1 -1
- package/dist/tools/context-analysis.js +1 -0
- package/dist/tools/context-analysis.js.map +1 -1
- package/dist/tools/daily-briefing.d.ts.map +1 -1
- package/dist/tools/daily-briefing.js +17 -1
- package/dist/tools/daily-briefing.js.map +1 -1
- package/dist/tools/decision-enforcement.d.ts +59 -0
- package/dist/tools/decision-enforcement.d.ts.map +1 -0
- package/dist/tools/decision-enforcement.js +185 -0
- package/dist/tools/decision-enforcement.js.map +1 -0
- package/dist/tools/decision-memory.d.ts +132 -0
- package/dist/tools/decision-memory.d.ts.map +1 -0
- package/dist/tools/decision-memory.js +345 -0
- package/dist/tools/decision-memory.js.map +1 -0
- package/dist/tools/decision-windows.d.ts +37 -0
- package/dist/tools/decision-windows.d.ts.map +1 -0
- package/dist/tools/decision-windows.js +67 -0
- package/dist/tools/decision-windows.js.map +1 -0
- package/dist/tools/delegation-score.d.ts +34 -0
- package/dist/tools/delegation-score.d.ts.map +1 -0
- package/dist/tools/delegation-score.js +251 -0
- package/dist/tools/delegation-score.js.map +1 -0
- package/dist/tools/developer-dna.d.ts +79 -0
- package/dist/tools/developer-dna.d.ts.map +1 -0
- package/dist/tools/developer-dna.js +378 -0
- package/dist/tools/developer-dna.js.map +1 -0
- package/dist/tools/explain-relevance.d.ts.map +1 -1
- package/dist/tools/explain-relevance.js +1 -0
- package/dist/tools/explain-relevance.js.map +1 -1
- package/dist/tools/export-context.d.ts +23 -6
- package/dist/tools/export-context.d.ts.map +1 -1
- package/dist/tools/export-context.js +58 -14
- package/dist/tools/export-context.js.map +1 -1
- package/dist/tools/get-actionable-signals.d.ts.map +1 -1
- package/dist/tools/get-actionable-signals.js +60 -9
- package/dist/tools/get-actionable-signals.js.map +1 -1
- package/dist/tools/get-context.d.ts.map +1 -1
- package/dist/tools/get-context.js +1 -0
- package/dist/tools/get-context.js.map +1 -1
- package/dist/tools/get-relevant-content.d.ts.map +1 -1
- package/dist/tools/get-relevant-content.js +3 -0
- package/dist/tools/get-relevant-content.js.map +1 -1
- package/dist/tools/index.d.ts +26 -16
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +35 -16
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/knowledge-gaps.d.ts +11 -1
- package/dist/tools/knowledge-gaps.d.ts.map +1 -1
- package/dist/tools/knowledge-gaps.js +9 -3
- package/dist/tools/knowledge-gaps.js.map +1 -1
- package/dist/tools/llm-status.d.ts.map +1 -1
- package/dist/tools/llm-status.js +1 -0
- package/dist/tools/llm-status.js.map +1 -1
- package/dist/tools/muse-context.d.ts +195 -0
- package/dist/tools/muse-context.d.ts.map +1 -0
- package/dist/tools/muse-context.js +284 -0
- package/dist/tools/muse-context.js.map +1 -0
- package/dist/tools/preemption-feed.d.ts +55 -0
- package/dist/tools/preemption-feed.d.ts.map +1 -0
- package/dist/tools/preemption-feed.js +124 -0
- package/dist/tools/preemption-feed.js.map +1 -0
- package/dist/tools/project-health.d.ts +12 -6
- package/dist/tools/project-health.d.ts.map +1 -1
- package/dist/tools/project-health.js +49 -10
- package/dist/tools/project-health.js.map +1 -1
- package/dist/tools/record-agent-feedback.d.ts +46 -0
- package/dist/tools/record-agent-feedback.d.ts.map +1 -0
- package/dist/tools/record-agent-feedback.js +71 -0
- package/dist/tools/record-agent-feedback.js.map +1 -0
- package/dist/tools/record-feedback.d.ts.map +1 -1
- package/dist/tools/record-feedback.js +1 -0
- package/dist/tools/record-feedback.js.map +1 -1
- package/dist/tools/reverse-mentions.d.ts +8 -8
- package/dist/tools/reverse-mentions.d.ts.map +1 -1
- package/dist/tools/reverse-mentions.js +1 -0
- package/dist/tools/reverse-mentions.js.map +1 -1
- package/dist/tools/score-autopsy.d.ts.map +1 -1
- package/dist/tools/score-autopsy.js +1 -0
- package/dist/tools/score-autopsy.js.map +1 -1
- package/dist/tools/semantic-shifts.d.ts +17 -1
- package/dist/tools/semantic-shifts.d.ts.map +1 -1
- package/dist/tools/semantic-shifts.js +1 -0
- package/dist/tools/semantic-shifts.js.map +1 -1
- package/dist/tools/signal-chains.d.ts +14 -7
- package/dist/tools/signal-chains.d.ts.map +1 -1
- package/dist/tools/signal-chains.js +5 -2
- package/dist/tools/signal-chains.js.map +1 -1
- package/dist/tools/source-health.d.ts.map +1 -1
- package/dist/tools/source-health.js +1 -0
- package/dist/tools/source-health.js.map +1 -1
- package/dist/tools/tech-radar.d.ts +38 -0
- package/dist/tools/tech-radar.d.ts.map +1 -0
- package/dist/tools/tech-radar.js +249 -0
- package/dist/tools/tech-radar.js.map +1 -0
- package/dist/tools/topic-connections.d.ts.map +1 -1
- package/dist/tools/topic-connections.js +1 -0
- package/dist/tools/topic-connections.js.map +1 -1
- package/dist/tools/trend-analysis.d.ts.map +1 -1
- package/dist/tools/trend-analysis.js +1 -0
- package/dist/tools/trend-analysis.js.map +1 -1
- package/dist/tools/trust-summary.d.ts +38 -0
- package/dist/tools/trust-summary.d.ts.map +1 -0
- package/dist/tools/trust-summary.js +89 -0
- package/dist/tools/trust-summary.js.map +1 -0
- package/dist/tools/vulnerability-scan.d.ts +89 -0
- package/dist/tools/vulnerability-scan.d.ts.map +1 -0
- package/dist/tools/vulnerability-scan.js +127 -0
- package/dist/tools/vulnerability-scan.js.map +1 -0
- package/dist/tools/what-should-i-know.d.ts +79 -0
- package/dist/tools/what-should-i-know.d.ts.map +1 -0
- package/dist/tools/what-should-i-know.js +376 -0
- package/dist/tools/what-should-i-know.js.map +1 -0
- package/dist/types.d.ts +221 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -1
- package/package.json +53 -24
package/dist/schema-registry.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-Apache-2.0
|
|
1
2
|
/**
|
|
2
3
|
* Schema Registry for Dynamic Context Discovery
|
|
3
4
|
*
|
|
@@ -5,100 +6,248 @@
|
|
|
5
6
|
* - Returning only one-liner summaries in list_tools
|
|
6
7
|
* - Storing full schemas as MCP Resources (lazy-loaded)
|
|
7
8
|
*
|
|
9
|
+
* Also provides category/tag metadata for tool discovery and filtering.
|
|
10
|
+
*
|
|
8
11
|
* Full schemas available at: 4da://schema/{tool_name}
|
|
12
|
+
* Category manifest at: 4da://categories
|
|
9
13
|
*/
|
|
10
14
|
/**
|
|
11
|
-
* Slim tool registry
|
|
12
|
-
* Full schemas are stored in schemas/*.json and exposed as MCP Resources
|
|
15
|
+
* Slim tool registry — one-liner descriptions + category/tag metadata.
|
|
16
|
+
* Full schemas are stored in schemas/*.json and exposed as MCP Resources.
|
|
13
17
|
*/
|
|
14
18
|
export const TOOL_REGISTRY = {
|
|
15
19
|
// Core Tools
|
|
16
20
|
get_relevant_content: {
|
|
17
21
|
summary: "Query filtered content by relevance, source, time",
|
|
18
22
|
schemaFile: "get-relevant-content.json",
|
|
23
|
+
category: "core",
|
|
24
|
+
tags: ["content", "feed", "relevance", "filter", "query"],
|
|
19
25
|
},
|
|
20
26
|
get_context: {
|
|
21
27
|
summary: "Get user's interests, tech stack, learned affinities",
|
|
22
28
|
schemaFile: "get-context.json",
|
|
29
|
+
category: "core",
|
|
30
|
+
tags: ["context", "interests", "tech-stack", "profile"],
|
|
23
31
|
},
|
|
24
32
|
explain_relevance: {
|
|
25
33
|
summary: "Understand why an item scored the way it did",
|
|
26
34
|
schemaFile: "explain-relevance.json",
|
|
35
|
+
category: "core",
|
|
36
|
+
tags: ["relevance", "scoring", "explanation", "debug"],
|
|
27
37
|
},
|
|
28
38
|
record_feedback: {
|
|
29
39
|
summary: "Teach 4DA what you like/dislike (click, save, dismiss)",
|
|
30
40
|
schemaFile: "record-feedback.json",
|
|
41
|
+
category: "core",
|
|
42
|
+
tags: ["feedback", "preference", "learning", "interaction"],
|
|
31
43
|
},
|
|
32
|
-
//
|
|
44
|
+
// Intelligence Tools
|
|
33
45
|
score_autopsy: {
|
|
34
46
|
summary: "Deep forensic analysis of relevance scores (AI-powered)",
|
|
35
47
|
schemaFile: "score-autopsy.json",
|
|
48
|
+
category: "intelligence",
|
|
49
|
+
tags: ["scoring", "forensic", "analysis", "ai", "debug"],
|
|
36
50
|
},
|
|
37
51
|
trend_analysis: {
|
|
38
52
|
summary: "Statistical patterns, anomalies, and predictions (AI-powered)",
|
|
39
53
|
schemaFile: "trend-analysis.json",
|
|
54
|
+
category: "intelligence",
|
|
55
|
+
tags: ["trends", "patterns", "predictions", "ai", "statistics"],
|
|
40
56
|
},
|
|
41
57
|
daily_briefing: {
|
|
42
58
|
summary: "Executive summary of discoveries (AI-powered)",
|
|
43
59
|
schemaFile: "daily-briefing.json",
|
|
60
|
+
category: "intelligence",
|
|
61
|
+
tags: ["briefing", "summary", "daily", "ai", "digest"],
|
|
44
62
|
},
|
|
45
63
|
context_analysis: {
|
|
46
64
|
summary: "Optimize your context for better relevance (AI-powered)",
|
|
47
65
|
schemaFile: "context-analysis.json",
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
summary: "Diagnose source fetching and data quality issues",
|
|
51
|
-
schemaFile: "source-health.json",
|
|
66
|
+
category: "intelligence",
|
|
67
|
+
tags: ["context", "optimization", "relevance", "ai"],
|
|
52
68
|
},
|
|
53
69
|
topic_connections: {
|
|
54
70
|
summary: "Build knowledge graphs from content (AI-powered)",
|
|
55
71
|
schemaFile: "topic-connections.json",
|
|
72
|
+
category: "intelligence",
|
|
73
|
+
tags: ["topics", "knowledge-graph", "connections", "ai"],
|
|
74
|
+
},
|
|
75
|
+
get_actionable_signals: {
|
|
76
|
+
summary: "Classify content into actionable signals with priority levels",
|
|
77
|
+
schemaFile: "get-actionable-signals.json",
|
|
78
|
+
category: "intelligence",
|
|
79
|
+
tags: ["signals", "priority", "actionable", "classification"],
|
|
80
|
+
},
|
|
81
|
+
signal_chains: {
|
|
82
|
+
summary: "Get causal signal chains connecting related events over time",
|
|
83
|
+
schemaFile: "signal-chains.json",
|
|
84
|
+
category: "intelligence",
|
|
85
|
+
tags: ["signals", "causal", "chains", "temporal"],
|
|
86
|
+
},
|
|
87
|
+
semantic_shifts: {
|
|
88
|
+
summary: "Detect narrative shifts in topics you follow",
|
|
89
|
+
schemaFile: "semantic-shifts.json",
|
|
90
|
+
category: "intelligence",
|
|
91
|
+
tags: ["narrative", "shifts", "topics", "detection"],
|
|
92
|
+
},
|
|
93
|
+
attention_report: {
|
|
94
|
+
summary: "Analyze attention allocation vs codebase needs",
|
|
95
|
+
schemaFile: "attention-report.json",
|
|
96
|
+
category: "intelligence",
|
|
97
|
+
tags: ["attention", "allocation", "codebase", "analysis"],
|
|
98
|
+
},
|
|
99
|
+
// Diagnostic Tools
|
|
100
|
+
source_health: {
|
|
101
|
+
summary: "Diagnose source fetching and data quality issues",
|
|
102
|
+
schemaFile: "source-health.json",
|
|
103
|
+
category: "diagnostic",
|
|
104
|
+
tags: ["sources", "health", "fetching", "quality"],
|
|
56
105
|
},
|
|
57
106
|
config_validator: {
|
|
58
107
|
summary: "Validate configuration and detect issues",
|
|
59
108
|
schemaFile: "config-validator.json",
|
|
109
|
+
category: "diagnostic",
|
|
110
|
+
tags: ["config", "validation", "settings", "health"],
|
|
60
111
|
},
|
|
61
112
|
llm_status: {
|
|
62
113
|
summary: "Check LLM/Ollama configuration and availability",
|
|
63
114
|
schemaFile: "llm-status.json",
|
|
115
|
+
category: "diagnostic",
|
|
116
|
+
tags: ["llm", "ollama", "status", "availability"],
|
|
64
117
|
},
|
|
65
|
-
|
|
66
|
-
summary: "Classify content into actionable signals with priority levels",
|
|
67
|
-
schemaFile: "get-actionable-signals.json",
|
|
68
|
-
},
|
|
69
|
-
// Innovation Feature Tools
|
|
118
|
+
// Knowledge & Health Tools
|
|
70
119
|
export_context_packet: {
|
|
71
120
|
summary: "Generate portable context packet for session handoff",
|
|
72
121
|
schemaFile: "export-context.json",
|
|
122
|
+
category: "knowledge",
|
|
123
|
+
tags: ["export", "context", "handoff", "portable"],
|
|
73
124
|
},
|
|
74
125
|
knowledge_gaps: {
|
|
75
126
|
summary: "Detect knowledge gaps in your project dependencies",
|
|
76
127
|
schemaFile: "knowledge-gaps.json",
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
summary: "Get causal signal chains connecting related events over time",
|
|
80
|
-
schemaFile: "signal-chains.json",
|
|
81
|
-
},
|
|
82
|
-
semantic_shifts: {
|
|
83
|
-
summary: "Detect narrative shifts in topics you follow",
|
|
84
|
-
schemaFile: "semantic-shifts.json",
|
|
128
|
+
category: "knowledge",
|
|
129
|
+
tags: ["gaps", "dependencies", "knowledge", "detection"],
|
|
85
130
|
},
|
|
86
131
|
reverse_mentions: {
|
|
87
132
|
summary: "Find where your projects are mentioned in sources",
|
|
88
133
|
schemaFile: "reverse-mentions.json",
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
summary: "Analyze attention allocation vs codebase needs",
|
|
92
|
-
schemaFile: "attention-report.json",
|
|
134
|
+
category: "knowledge",
|
|
135
|
+
tags: ["mentions", "projects", "sources", "discovery"],
|
|
93
136
|
},
|
|
94
137
|
project_health: {
|
|
95
138
|
summary: "Project health radar for dependency freshness and security",
|
|
96
139
|
schemaFile: "project-health.json",
|
|
140
|
+
category: "knowledge",
|
|
141
|
+
tags: ["project", "health", "dependencies", "security"],
|
|
142
|
+
},
|
|
143
|
+
// Decision Intelligence Tools
|
|
144
|
+
decision_memory: {
|
|
145
|
+
summary: "Manage developer decisions (record, list, check, update, supersede)",
|
|
146
|
+
schemaFile: "decision-memory.json",
|
|
147
|
+
category: "decisions",
|
|
148
|
+
tags: ["decisions", "memory", "record", "manage"],
|
|
149
|
+
},
|
|
150
|
+
tech_radar: {
|
|
151
|
+
summary: "Generate tech radar from decisions and content signals",
|
|
152
|
+
schemaFile: "tech-radar.json",
|
|
153
|
+
category: "decisions",
|
|
154
|
+
tags: ["tech-radar", "decisions", "signals", "adopt"],
|
|
155
|
+
},
|
|
156
|
+
check_decision_alignment: {
|
|
157
|
+
summary: "Check if a technology or pattern aligns with active decisions before suggesting changes",
|
|
158
|
+
schemaFile: "decision-enforcement.json",
|
|
159
|
+
category: "decisions",
|
|
160
|
+
tags: ["alignment", "decisions", "enforcement", "check"],
|
|
161
|
+
},
|
|
162
|
+
// Agent Autonomy Tools
|
|
163
|
+
agent_memory: {
|
|
164
|
+
summary: "Cross-agent persistent memory — store and recall across sessions and tools",
|
|
165
|
+
schemaFile: "agent-memory.json",
|
|
166
|
+
category: "agent",
|
|
167
|
+
tags: ["agent", "memory", "persistent", "cross-session"],
|
|
168
|
+
},
|
|
169
|
+
agent_session_brief: {
|
|
170
|
+
summary: "Tailored session startup context for AI agents — decisions, changes, memories",
|
|
171
|
+
schemaFile: "agent-session-brief.json",
|
|
172
|
+
category: "agent",
|
|
173
|
+
tags: ["agent", "session", "brief", "startup"],
|
|
174
|
+
},
|
|
175
|
+
delegation_score: {
|
|
176
|
+
summary: "AI-delegatability assessment — should the agent proceed or ask the human?",
|
|
177
|
+
schemaFile: "delegation-score.json",
|
|
178
|
+
category: "agent",
|
|
179
|
+
tags: ["agent", "delegation", "autonomy", "assessment"],
|
|
180
|
+
},
|
|
181
|
+
// Developer DNA
|
|
182
|
+
developer_dna: {
|
|
183
|
+
summary: "Export your Developer DNA — tech identity, dependencies, engagement, blind spots",
|
|
184
|
+
schemaFile: "developer-dna.json",
|
|
185
|
+
category: "identity",
|
|
186
|
+
tags: ["identity", "dna", "profile", "tech-stack", "export"],
|
|
187
|
+
},
|
|
188
|
+
// Intelligence Metabolism Tools
|
|
189
|
+
autophagy_status: {
|
|
190
|
+
summary: "Get intelligence metabolism status — autophagy cycles, calibration accuracy, anti-patterns",
|
|
191
|
+
schemaFile: "autophagy-status.json",
|
|
192
|
+
category: "metabolism",
|
|
193
|
+
tags: ["autophagy", "metabolism", "calibration", "health"],
|
|
194
|
+
},
|
|
195
|
+
decision_windows: {
|
|
196
|
+
summary: "View and manage decision windows — time-bounded opportunities requiring attention",
|
|
197
|
+
schemaFile: "decision-windows.json",
|
|
198
|
+
category: "metabolism",
|
|
199
|
+
tags: ["decisions", "windows", "time-bounded", "opportunities"],
|
|
200
|
+
},
|
|
201
|
+
compound_advantage: {
|
|
202
|
+
summary: "Get compound advantage score — measures intelligence leverage for decisions",
|
|
203
|
+
schemaFile: "compound-advantage.json",
|
|
204
|
+
category: "metabolism",
|
|
205
|
+
tags: ["compound", "advantage", "leverage", "score"],
|
|
206
|
+
},
|
|
207
|
+
// Agent Feedback Tools
|
|
208
|
+
record_agent_feedback: {
|
|
209
|
+
summary: "Record whether agent-recommended content was used, rejected, or partially used",
|
|
210
|
+
schemaFile: "record-agent-feedback.json",
|
|
211
|
+
category: "agent",
|
|
212
|
+
tags: ["agent", "feedback", "learning", "pasifa", "scoring"],
|
|
213
|
+
},
|
|
214
|
+
get_agent_feedback_stats: {
|
|
215
|
+
summary: "Get statistics on agent recommendation usage — source usefulness, top items, trends",
|
|
216
|
+
schemaFile: "agent-feedback-stats.json",
|
|
217
|
+
category: "agent",
|
|
218
|
+
tags: ["agent", "feedback", "statistics", "analytics", "pasifa"],
|
|
219
|
+
},
|
|
220
|
+
// Synthesis Tools
|
|
221
|
+
what_should_i_know: {
|
|
222
|
+
summary: "Pre-task intelligence briefing — advisories, decisions, signals, delegation assessment",
|
|
223
|
+
schemaFile: "what-should-i-know.json",
|
|
224
|
+
category: "agent",
|
|
225
|
+
tags: ["agent", "briefing", "synthesis", "pre-task", "delegation", "advisories"],
|
|
226
|
+
},
|
|
227
|
+
// Trust & Preemption Tools
|
|
228
|
+
trust_summary: {
|
|
229
|
+
summary: "Intelligence quality metrics — precision, action rate, false positives, preemption wins",
|
|
230
|
+
schemaFile: "trust-summary.json",
|
|
231
|
+
category: "intelligence",
|
|
232
|
+
tags: ["trust", "precision", "quality", "metrics", "reliability"],
|
|
233
|
+
},
|
|
234
|
+
preemption_feed: {
|
|
235
|
+
summary: "Forward-looking alerts — signal chains, dependency risks, knowledge gaps",
|
|
236
|
+
schemaFile: "preemption-feed.json",
|
|
237
|
+
category: "intelligence",
|
|
238
|
+
tags: ["preemption", "alerts", "risks", "dependencies", "forward-looking"],
|
|
239
|
+
},
|
|
240
|
+
// Live Intelligence Tools
|
|
241
|
+
vulnerability_scan: {
|
|
242
|
+
summary: "Scan dependencies for known CVEs via OSV.dev — zero config, multi-ecosystem",
|
|
243
|
+
schemaFile: "vulnerability-scan.json",
|
|
244
|
+
category: "knowledge",
|
|
245
|
+
tags: ["security", "vulnerabilities", "cve", "dependencies", "osv", "scanning"],
|
|
97
246
|
},
|
|
98
247
|
};
|
|
99
248
|
/**
|
|
100
249
|
* Get slim tool list for list_tools response
|
|
101
|
-
* Returns minimal schema (just type: object)
|
|
250
|
+
* Returns minimal schema (just type: object) — full schema via resources
|
|
102
251
|
*/
|
|
103
252
|
export function getSlimToolList() {
|
|
104
253
|
return Object.entries(TOOL_REGISTRY).map(([name, info]) => ({
|
|
@@ -111,23 +260,50 @@ export function getSlimToolList() {
|
|
|
111
260
|
* Get list of schema resources for ListResources
|
|
112
261
|
*/
|
|
113
262
|
export function getSchemaResources() {
|
|
114
|
-
return Object.entries(TOOL_REGISTRY).map(([name
|
|
263
|
+
return Object.entries(TOOL_REGISTRY).map(([name]) => ({
|
|
115
264
|
uri: `4da://schema/${name}`,
|
|
116
265
|
name: `${name} schema`,
|
|
117
266
|
description: `Full JSON Schema for the ${name} tool`,
|
|
118
267
|
mimeType: "application/json",
|
|
119
268
|
}));
|
|
120
269
|
}
|
|
121
|
-
/**
|
|
122
|
-
* Check if a tool exists
|
|
123
|
-
*/
|
|
270
|
+
/** Check if a tool exists */
|
|
124
271
|
export function hasToolSchema(toolName) {
|
|
125
272
|
return toolName in TOOL_REGISTRY;
|
|
126
273
|
}
|
|
127
|
-
/**
|
|
128
|
-
* Get schema filename for a tool
|
|
129
|
-
*/
|
|
274
|
+
/** Get schema filename for a tool */
|
|
130
275
|
export function getSchemaFilename(toolName) {
|
|
131
276
|
return TOOL_REGISTRY[toolName]?.schemaFile || null;
|
|
132
277
|
}
|
|
278
|
+
/** Get tool names grouped by category */
|
|
279
|
+
export function getToolsByCategory() {
|
|
280
|
+
const result = {};
|
|
281
|
+
for (const [name, entry] of Object.entries(TOOL_REGISTRY)) {
|
|
282
|
+
if (!result[entry.category]) {
|
|
283
|
+
result[entry.category] = [];
|
|
284
|
+
}
|
|
285
|
+
result[entry.category].push(name);
|
|
286
|
+
}
|
|
287
|
+
return result;
|
|
288
|
+
}
|
|
289
|
+
/** Structured category manifest for the 4da://categories resource */
|
|
290
|
+
export function getCategoryManifest() {
|
|
291
|
+
const grouped = getToolsByCategory();
|
|
292
|
+
const categories = {};
|
|
293
|
+
for (const [cat, tools] of Object.entries(grouped)) {
|
|
294
|
+
categories[cat] = { tools, count: tools.length };
|
|
295
|
+
}
|
|
296
|
+
return {
|
|
297
|
+
version: "1.0.0",
|
|
298
|
+
total_tools: Object.keys(TOOL_REGISTRY).length,
|
|
299
|
+
categories,
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
/** Find tools matching any of the given tags */
|
|
303
|
+
export function getToolsByTags(tags) {
|
|
304
|
+
const tagSet = new Set(tags.map((t) => t.toLowerCase()));
|
|
305
|
+
return Object.entries(TOOL_REGISTRY)
|
|
306
|
+
.filter(([, entry]) => entry.tags.some((t) => tagSet.has(t.toLowerCase())))
|
|
307
|
+
.map(([name]) => name);
|
|
308
|
+
}
|
|
133
309
|
//# sourceMappingURL=schema-registry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-registry.js","sourceRoot":"","sources":["../src/schema-registry.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"schema-registry.js","sourceRoot":"","sources":["../src/schema-registry.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C;;;;;;;;;;;GAWG;AAqBH;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAsC;IAC9D,aAAa;IACb,oBAAoB,EAAE;QACpB,OAAO,EAAE,mDAAmD;QAC5D,UAAU,EAAE,2BAA2B;QACvC,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,CAAC;KAC1D;IACD,WAAW,EAAE;QACX,OAAO,EAAE,sDAAsD;QAC/D,UAAU,EAAE,kBAAkB;QAC9B,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,CAAC,S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AE,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "get_agent_feedback_stats",
|
|
3
|
+
"description": "Get statistics on how agents have used 4DA recommendations.\n\nShows which sources and topics are most valuable for AI-assisted development:\n- Total recommendations: used / rejected / partially_used counts\n- By source type: which sources produce the most agent-useful content\n- Top used item IDs (most frequently recommended and accepted)\n- Recent feedback entries\n\nUse this to understand what content is actually being used by AI agents and where PASIFA scoring can be improved.",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"days": {
|
|
8
|
+
"type": "number",
|
|
9
|
+
"description": "Number of days to look back (default: 30, max: 365)",
|
|
10
|
+
"default": 30
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agent_memory",
|
|
3
|
+
"description": "Cross-agent persistent memory — store and recall discoveries, decisions, context, and warnings across sessions and tools.\n\nEnables AI agents to build institutional knowledge that persists beyond individual conversations. Supports storing, recalling by topic, filtering by tags, and retrieving recent entries.",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"action": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": ["store", "recall", "recall_by_tags", "get_recent"],
|
|
10
|
+
"description": "Action to perform"
|
|
11
|
+
},
|
|
12
|
+
"session_id": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Session identifier (for store)"
|
|
15
|
+
},
|
|
16
|
+
"agent_type": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Agent identifier, e.g. claude_code, cursor, windsurf (for store)"
|
|
19
|
+
},
|
|
20
|
+
"memory_type": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": ["discovery", "decision", "context", "warning", "preference"],
|
|
23
|
+
"description": "Type of memory (for store). Default: context"
|
|
24
|
+
},
|
|
25
|
+
"content": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Memory content text (for store)"
|
|
28
|
+
},
|
|
29
|
+
"tags": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": { "type": "string" },
|
|
32
|
+
"description": "Tags for categorization and retrieval"
|
|
33
|
+
},
|
|
34
|
+
"confidence": {
|
|
35
|
+
"type": "number",
|
|
36
|
+
"description": "Confidence level 0.0-1.0 (for store)"
|
|
37
|
+
},
|
|
38
|
+
"topic": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Topic to recall memories about (for recall)"
|
|
41
|
+
},
|
|
42
|
+
"limit": {
|
|
43
|
+
"type": "number",
|
|
44
|
+
"description": "Maximum memories to return (for recall/get_recent). Default: 10"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"required": ["action"]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agent_session_brief",
|
|
3
|
+
"description": "Tailored session startup context for AI agents.\n\nProvides a comprehensive brief including active developer decisions, recent agent memories, and relevant context changes. Designed to be called at the start of each AI session for continuity.",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"agent_type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Agent identifier (e.g. claude_code, cursor). Filters memories to this agent if provided."
|
|
10
|
+
},
|
|
11
|
+
"since": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "ISO datetime to look back from. Default: 24 hours ago."
|
|
14
|
+
},
|
|
15
|
+
"include_decisions": {
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"description": "Include active developer decisions. Default: true."
|
|
18
|
+
},
|
|
19
|
+
"include_memories": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"description": "Include recent agent memories. Default: true."
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "attention_report",
|
|
3
|
+
"description": "Analyze attention allocation vs codebase needs.\n\nCompares where you spend reading/saving time against what your projects actually depend on. Reveals mismatches between attention and codebase reality.",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"period_days": {
|
|
8
|
+
"type": "number",
|
|
9
|
+
"description": "Analysis period in days. Default: 7"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "autophagy_status",
|
|
3
|
+
"description": "Get intelligence metabolism status — autophagy cycle history, calibration accuracy, anti-patterns detected.\n\nReturns recent autophagy cycles, active calibration deltas, and detected anti-patterns from the intelligence metabolism system.",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"limit": {
|
|
8
|
+
"type": "number",
|
|
9
|
+
"description": "Maximum autophagy cycles to return. Default: 5"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "compound_advantage",
|
|
3
|
+
"description": "Get compound advantage score — measures how effectively you leverage 4DA intelligence for time-sensitive decisions.\n\nTracks response rate to decision windows, average lead time before opportunities close, and calibration accuracy of the scoring engine.",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"period": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": ["weekly", "monthly"],
|
|
10
|
+
"description": "Scoring period. Default: weekly"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "check_decision_alignment",
|
|
3
|
+
"description": "Check if a technology or pattern aligns with active decisions before suggesting changes.\n\nPrevents AI agents from recommending technologies or patterns that contradict settled developer decisions. Returns alignment status and relevant decisions.",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"technology": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Technology name to check (e.g., 'postgresql', 'redis', 'graphql')"
|
|
10
|
+
},
|
|
11
|
+
"pattern": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Architecture pattern to check (e.g., 'microservices', 'event-driven')"
|
|
14
|
+
},
|
|
15
|
+
"context": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Additional context about the proposed change"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": ["technology"]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "decision_memory",
|
|
3
|
+
"description": "Manage developer decisions — record, list, check alignment, update, or supersede.\n\nPersistent decision memory that tracks technology choices, architecture patterns, and workflow preferences. Prevents re-litigation of settled decisions across sessions.",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"action": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": ["record", "list", "check_alignment", "update", "supersede"],
|
|
10
|
+
"description": "Action to perform"
|
|
11
|
+
},
|
|
12
|
+
"decision_type": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": ["tech_choice", "architecture", "workflow", "pattern", "dependency"],
|
|
15
|
+
"description": "Type of decision (for record)"
|
|
16
|
+
},
|
|
17
|
+
"subject": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Subject of the decision (e.g., 'database', 'auth-strategy')"
|
|
20
|
+
},
|
|
21
|
+
"decision": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "The decision made (for record)"
|
|
24
|
+
},
|
|
25
|
+
"rationale": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Why this decision was made (for record)"
|
|
28
|
+
},
|
|
29
|
+
"alternatives_rejected": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": { "type": "string" },
|
|
32
|
+
"description": "Alternatives that were considered and rejected"
|
|
33
|
+
},
|
|
34
|
+
"context_tags": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": { "type": "string" },
|
|
37
|
+
"description": "Tags for filtering and retrieval"
|
|
38
|
+
},
|
|
39
|
+
"confidence": {
|
|
40
|
+
"type": "number",
|
|
41
|
+
"description": "Confidence level 0.0-1.0 (for record)"
|
|
42
|
+
},
|
|
43
|
+
"id": {
|
|
44
|
+
"type": "number",
|
|
45
|
+
"description": "Decision ID (for update/supersede)"
|
|
46
|
+
},
|
|
47
|
+
"technology": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "Technology to check alignment for (check_alignment action)"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": ["action"]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "decision_windows",
|
|
3
|
+
"description": "View and manage decision windows — time-bounded opportunities detected from content intelligence.\n\nList open windows sorted by urgency, mark windows as acted on with an outcome, or close windows that are no longer relevant.",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"action": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": ["list", "act", "close"],
|
|
10
|
+
"description": "Action to perform. Default: list"
|
|
11
|
+
},
|
|
12
|
+
"window_id": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"description": "Window ID (required for 'act' or 'close' actions)"
|
|
15
|
+
},
|
|
16
|
+
"outcome": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Outcome description when acting on a window"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "delegation_score",
|
|
3
|
+
"description": "AI-delegatability assessment — should the agent proceed autonomously or ask the human?\n\nComputes a delegation score (0-1) for a given subject/task by analyzing the developer's familiarity, decision history, and risk profile. Higher scores mean safer to delegate.",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"subject": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The technology, pattern, or topic to assess for delegation"
|
|
10
|
+
},
|
|
11
|
+
"task_description": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Optional description of the task being considered for delegation"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["subject"]
|
|
17
|
+
}
|
|
18
|
+
}
|