@aibuildinfra/proofgraph 1.0.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/PRIVACY.md +8 -0
- package/README.md +193 -0
- package/SECURITY.md +27 -0
- package/dist/cli/index.d.ts +6 -0
- package/dist/cli/index.js +273 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/dashboard/server.d.ts +5 -0
- package/dist/dashboard/server.js +271 -0
- package/dist/dashboard/server.js.map +1 -0
- package/dist/data/seed.d.ts +6 -0
- package/dist/data/seed.js +325 -0
- package/dist/data/seed.js.map +1 -0
- package/dist/engine/aiDiscoverability.d.ts +11 -0
- package/dist/engine/aiDiscoverability.js +135 -0
- package/dist/engine/aiDiscoverability.js.map +1 -0
- package/dist/engine/claimVerifier.d.ts +26 -0
- package/dist/engine/claimVerifier.js +130 -0
- package/dist/engine/claimVerifier.js.map +1 -0
- package/dist/engine/consistencyAudit.d.ts +11 -0
- package/dist/engine/consistencyAudit.js +172 -0
- package/dist/engine/consistencyAudit.js.map +1 -0
- package/dist/engine/exporter.d.ts +17 -0
- package/dist/engine/exporter.js +83 -0
- package/dist/engine/exporter.js.map +1 -0
- package/dist/engine/graphTraversal.d.ts +25 -0
- package/dist/engine/graphTraversal.js +74 -0
- package/dist/engine/graphTraversal.js.map +1 -0
- package/dist/engine/resolver.d.ts +20 -0
- package/dist/engine/resolver.js +168 -0
- package/dist/engine/resolver.js.map +1 -0
- package/dist/engine/schemaOrg.d.ts +12 -0
- package/dist/engine/schemaOrg.js +105 -0
- package/dist/engine/schemaOrg.js.map +1 -0
- package/dist/engine/tokenOptimizer.d.ts +25 -0
- package/dist/engine/tokenOptimizer.js +166 -0
- package/dist/engine/tokenOptimizer.js.map +1 -0
- package/dist/engine/webPresence.d.ts +32 -0
- package/dist/engine/webPresence.js +63 -0
- package/dist/engine/webPresence.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/prompts.d.ts +25 -0
- package/dist/mcp/prompts.js +136 -0
- package/dist/mcp/prompts.js.map +1 -0
- package/dist/mcp/resources.d.ts +27 -0
- package/dist/mcp/resources.js +118 -0
- package/dist/mcp/resources.js.map +1 -0
- package/dist/mcp/server.d.ts +15 -0
- package/dist/mcp/server.js +88 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/tools.d.ts +256 -0
- package/dist/mcp/tools.js +391 -0
- package/dist/mcp/tools.js.map +1 -0
- package/dist/security/robots.d.ts +15 -0
- package/dist/security/robots.js +78 -0
- package/dist/security/robots.js.map +1 -0
- package/dist/security/safeFetch.d.ts +23 -0
- package/dist/security/safeFetch.js +122 -0
- package/dist/security/safeFetch.js.map +1 -0
- package/dist/storage/graphStore.d.ts +70 -0
- package/dist/storage/graphStore.js +275 -0
- package/dist/storage/graphStore.js.map +1 -0
- package/dist/storage/sqliteAdapter.d.ts +14 -0
- package/dist/storage/sqliteAdapter.js +137 -0
- package/dist/storage/sqliteAdapter.js.map +1 -0
- package/dist/tests/proofgraph.test.d.ts +5 -0
- package/dist/tests/proofgraph.test.js +249 -0
- package/dist/tests/proofgraph.test.js.map +1 -0
- package/dist/types/index.d.ts +206 -0
- package/dist/types/index.js +6 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +65 -0
- package/server.json +24 -0
- package/smithery.yaml +6 -0
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProofGraph Lightweight Developer Dashboard
|
|
3
|
+
* Built with native Node.js HTTP server and responsive vanilla UI
|
|
4
|
+
*/
|
|
5
|
+
import { createServer } from 'node:http';
|
|
6
|
+
import { globalGraphStore } from '../storage/graphStore.js';
|
|
7
|
+
import { seedStandardGraph } from '../data/seed.js';
|
|
8
|
+
import { ConsistencyAuditor } from '../engine/consistencyAudit.js';
|
|
9
|
+
import { AIDiscoverabilityEngine } from '../engine/aiDiscoverability.js';
|
|
10
|
+
export function startDashboard(port = 3456) {
|
|
11
|
+
seedStandardGraph(globalGraphStore);
|
|
12
|
+
const server = createServer((req, res) => {
|
|
13
|
+
const url = new URL(req.url || '/', `http://${req.headers.host || 'localhost'}`);
|
|
14
|
+
if (url.pathname === '/api/graph') {
|
|
15
|
+
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
16
|
+
res.end(JSON.stringify(globalGraphStore.toJSON()));
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (url.pathname === '/api/audit') {
|
|
20
|
+
const entityId = url.searchParams.get('entity') || 'entity:organization:ai-build-infra';
|
|
21
|
+
const auditor = new ConsistencyAuditor(globalGraphStore);
|
|
22
|
+
const discoverability = new AIDiscoverabilityEngine(globalGraphStore);
|
|
23
|
+
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
24
|
+
res.end(JSON.stringify({
|
|
25
|
+
consistency: auditor.audit(entityId),
|
|
26
|
+
discoverability: discoverability.evaluate(entityId),
|
|
27
|
+
}));
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
// Serve HTML Dashboard
|
|
31
|
+
res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' });
|
|
32
|
+
res.end(renderDashboardHtml());
|
|
33
|
+
});
|
|
34
|
+
server.listen(port, () => {
|
|
35
|
+
console.log(`\n ProofGraph Developer Dashboard running at http://localhost:${port}`);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function renderDashboardHtml() {
|
|
39
|
+
const entities = globalGraphStore.getAllEntities();
|
|
40
|
+
const claims = globalGraphStore.getAllClaims();
|
|
41
|
+
const sources = globalGraphStore.getAllSources();
|
|
42
|
+
const relationships = globalGraphStore.getAllRelationships();
|
|
43
|
+
return `<!DOCTYPE html>
|
|
44
|
+
<html lang="en">
|
|
45
|
+
<head>
|
|
46
|
+
<meta charset="UTF-8">
|
|
47
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
48
|
+
<title>ProofGraph Dashboard | AI Build Infra</title>
|
|
49
|
+
<style>
|
|
50
|
+
:root {
|
|
51
|
+
--bg: #0d1117;
|
|
52
|
+
--card-bg: #161b22;
|
|
53
|
+
--border: #30363d;
|
|
54
|
+
--text: #c9d1d9;
|
|
55
|
+
--text-bright: #f0f6fc;
|
|
56
|
+
--accent: #58a6ff;
|
|
57
|
+
--success: #3fb950;
|
|
58
|
+
--warning: #d29922;
|
|
59
|
+
--danger: #f85149;
|
|
60
|
+
}
|
|
61
|
+
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
62
|
+
body {
|
|
63
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
|
|
64
|
+
background: var(--bg);
|
|
65
|
+
color: var(--text);
|
|
66
|
+
line-height: 1.5;
|
|
67
|
+
padding: 24px;
|
|
68
|
+
}
|
|
69
|
+
header {
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: space-between;
|
|
72
|
+
align-items: center;
|
|
73
|
+
padding-bottom: 20px;
|
|
74
|
+
border-bottom: 1px solid var(--border);
|
|
75
|
+
margin-bottom: 24px;
|
|
76
|
+
}
|
|
77
|
+
.logo {
|
|
78
|
+
font-size: 1.5rem;
|
|
79
|
+
font-weight: 700;
|
|
80
|
+
color: var(--text-bright);
|
|
81
|
+
}
|
|
82
|
+
.logo span { color: var(--accent); }
|
|
83
|
+
.badge {
|
|
84
|
+
display: inline-block;
|
|
85
|
+
padding: 4px 8px;
|
|
86
|
+
font-size: 0.75rem;
|
|
87
|
+
font-weight: 600;
|
|
88
|
+
border-radius: 6px;
|
|
89
|
+
background: #1f6feb26;
|
|
90
|
+
color: var(--accent);
|
|
91
|
+
border: 1px solid #388bfd4d;
|
|
92
|
+
}
|
|
93
|
+
.grid {
|
|
94
|
+
display: grid;
|
|
95
|
+
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
96
|
+
gap: 16px;
|
|
97
|
+
margin-bottom: 24px;
|
|
98
|
+
}
|
|
99
|
+
.metric-card {
|
|
100
|
+
background: var(--card-bg);
|
|
101
|
+
border: 1px solid var(--border);
|
|
102
|
+
border-radius: 8px;
|
|
103
|
+
padding: 16px;
|
|
104
|
+
}
|
|
105
|
+
.metric-card .num {
|
|
106
|
+
font-size: 2rem;
|
|
107
|
+
font-weight: 700;
|
|
108
|
+
color: var(--text-bright);
|
|
109
|
+
}
|
|
110
|
+
.metric-card .label {
|
|
111
|
+
font-size: 0.85rem;
|
|
112
|
+
color: #8b949e;
|
|
113
|
+
text-transform: uppercase;
|
|
114
|
+
letter-spacing: 0.5px;
|
|
115
|
+
}
|
|
116
|
+
.section {
|
|
117
|
+
background: var(--card-bg);
|
|
118
|
+
border: 1px solid var(--border);
|
|
119
|
+
border-radius: 8px;
|
|
120
|
+
padding: 20px;
|
|
121
|
+
margin-bottom: 24px;
|
|
122
|
+
}
|
|
123
|
+
h2 {
|
|
124
|
+
font-size: 1.1rem;
|
|
125
|
+
color: var(--text-bright);
|
|
126
|
+
margin-bottom: 16px;
|
|
127
|
+
border-bottom: 1px solid var(--border);
|
|
128
|
+
padding-bottom: 8px;
|
|
129
|
+
}
|
|
130
|
+
table {
|
|
131
|
+
width: 100%;
|
|
132
|
+
border-collapse: collapse;
|
|
133
|
+
font-size: 0.9rem;
|
|
134
|
+
}
|
|
135
|
+
th, td {
|
|
136
|
+
text-align: left;
|
|
137
|
+
padding: 10px 12px;
|
|
138
|
+
border-bottom: 1px solid var(--border);
|
|
139
|
+
}
|
|
140
|
+
th { color: #8b949e; font-weight: 600; }
|
|
141
|
+
.status-pill {
|
|
142
|
+
display: inline-block;
|
|
143
|
+
padding: 2px 8px;
|
|
144
|
+
border-radius: 12px;
|
|
145
|
+
font-size: 0.75rem;
|
|
146
|
+
font-weight: 600;
|
|
147
|
+
}
|
|
148
|
+
.supported { background: #23863626; color: var(--success); border: 1px solid #2ea0434d; }
|
|
149
|
+
.conflicting { background: #bb800926; color: var(--warning); border: 1px solid #d299224d; }
|
|
150
|
+
code {
|
|
151
|
+
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
152
|
+
font-size: 0.85rem;
|
|
153
|
+
background: rgba(110,118,129,0.2);
|
|
154
|
+
padding: 2px 6px;
|
|
155
|
+
border-radius: 4px;
|
|
156
|
+
}
|
|
157
|
+
</style>
|
|
158
|
+
</head>
|
|
159
|
+
<body>
|
|
160
|
+
<header>
|
|
161
|
+
<div>
|
|
162
|
+
<div class="logo">Proof<span>Graph</span></div>
|
|
163
|
+
<p style="font-size: 0.85rem; color: #8b949e;">Evidence-First Entity & Knowledge Graph MCP Server • AI Build Infra</p>
|
|
164
|
+
</div>
|
|
165
|
+
<span class="badge">STDIO MCP Active</span>
|
|
166
|
+
</header>
|
|
167
|
+
|
|
168
|
+
<div class="grid">
|
|
169
|
+
<div class="metric-card">
|
|
170
|
+
<div class="num">${entities.length}</div>
|
|
171
|
+
<div class="label">Canonical Entities</div>
|
|
172
|
+
</div>
|
|
173
|
+
<div class="metric-card">
|
|
174
|
+
<div class="num">${claims.length}</div>
|
|
175
|
+
<div class="label">Verified Claims</div>
|
|
176
|
+
</div>
|
|
177
|
+
<div class="metric-card">
|
|
178
|
+
<div class="num">${sources.length}</div>
|
|
179
|
+
<div class="label">Authoritative Sources</div>
|
|
180
|
+
</div>
|
|
181
|
+
<div class="metric-card">
|
|
182
|
+
<div class="num">${relationships.length}</div>
|
|
183
|
+
<div class="label">Graph Relationships</div>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
|
|
187
|
+
<div class="section">
|
|
188
|
+
<h2>Canonical Entities</h2>
|
|
189
|
+
<table>
|
|
190
|
+
<thead>
|
|
191
|
+
<tr>
|
|
192
|
+
<th>Canonical ID</th>
|
|
193
|
+
<th>Name</th>
|
|
194
|
+
<th>Type</th>
|
|
195
|
+
<th>Aliases</th>
|
|
196
|
+
<th>Canonical URL</th>
|
|
197
|
+
</tr>
|
|
198
|
+
</thead>
|
|
199
|
+
<tbody>
|
|
200
|
+
${entities
|
|
201
|
+
.map(e => `<tr>
|
|
202
|
+
<td><code>${e.id}</code></td>
|
|
203
|
+
<td style="color: var(--text-bright); font-weight: 600;">${e.name}</td>
|
|
204
|
+
<td><span class="badge">${e.type}</span></td>
|
|
205
|
+
<td>${e.aliases.join(', ') || '—'}</td>
|
|
206
|
+
<td><a href="${e.canonical_url || '#'}" target="_blank" style="color: var(--accent);">${e.canonical_url || '—'}</a></td>
|
|
207
|
+
</tr>`)
|
|
208
|
+
.join('')}
|
|
209
|
+
</tbody>
|
|
210
|
+
</table>
|
|
211
|
+
</div>
|
|
212
|
+
|
|
213
|
+
<div class="section">
|
|
214
|
+
<h2>Verified Claims & Confidence</h2>
|
|
215
|
+
<table>
|
|
216
|
+
<thead>
|
|
217
|
+
<tr>
|
|
218
|
+
<th>Subject ID</th>
|
|
219
|
+
<th>Claim Statement</th>
|
|
220
|
+
<th>Status</th>
|
|
221
|
+
<th>Confidence</th>
|
|
222
|
+
<th>Proofs</th>
|
|
223
|
+
</tr>
|
|
224
|
+
</thead>
|
|
225
|
+
<tbody>
|
|
226
|
+
${claims
|
|
227
|
+
.map(c => `<tr>
|
|
228
|
+
<td><code>${c.subject_id}</code></td>
|
|
229
|
+
<td style="color: var(--text-bright);">${c.statement}</td>
|
|
230
|
+
<td><span class="status-pill ${c.status}">${c.status.toUpperCase()}</span></td>
|
|
231
|
+
<td>${(c.confidence * 100).toFixed(0)}%</td>
|
|
232
|
+
<td>${c.evidence_ids.length} Excerpt(s)</td>
|
|
233
|
+
</tr>`)
|
|
234
|
+
.join('')}
|
|
235
|
+
</tbody>
|
|
236
|
+
</table>
|
|
237
|
+
</div>
|
|
238
|
+
|
|
239
|
+
<div class="section">
|
|
240
|
+
<h2>Authoritative Sources & Hashes</h2>
|
|
241
|
+
<table>
|
|
242
|
+
<thead>
|
|
243
|
+
<tr>
|
|
244
|
+
<th>Publisher</th>
|
|
245
|
+
<th>Trust Class</th>
|
|
246
|
+
<th>URL</th>
|
|
247
|
+
<th>Reliability</th>
|
|
248
|
+
<th>SHA-256 Hash</th>
|
|
249
|
+
</tr>
|
|
250
|
+
</thead>
|
|
251
|
+
<tbody>
|
|
252
|
+
${sources
|
|
253
|
+
.map(s => `<tr>
|
|
254
|
+
<td style="color: var(--text-bright); font-weight: 600;">${s.publisher}</td>
|
|
255
|
+
<td><span class="badge">${s.trust_class}</span></td>
|
|
256
|
+
<td><a href="${s.url}" target="_blank" style="color: var(--accent);">${s.url}</a></td>
|
|
257
|
+
<td>${(s.reliability_score * 100).toFixed(0)}%</td>
|
|
258
|
+
<td><code>${s.content_hash.substring(0, 16)}...</code></td>
|
|
259
|
+
</tr>`)
|
|
260
|
+
.join('')}
|
|
261
|
+
</tbody>
|
|
262
|
+
</table>
|
|
263
|
+
</div>
|
|
264
|
+
</body>
|
|
265
|
+
</html>`;
|
|
266
|
+
}
|
|
267
|
+
if (process.argv[1] && process.argv[1].includes('dashboard')) {
|
|
268
|
+
const port = Number(process.env.PORT) || 3456;
|
|
269
|
+
startDashboard(port);
|
|
270
|
+
}
|
|
271
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/dashboard/server.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAmC,MAAM,WAAW,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAGzE,MAAM,UAAU,cAAc,CAAC,IAAI,GAAG,IAAI;IACxC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAEpC,MAAM,MAAM,GAAG,YAAY,CAAC,CAAC,GAAoB,EAAE,GAAmB,EAAE,EAAE;QACxE,MAA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,CAAC,YAAY,CAAC,MAAM;kBACvB,CACP;SACA,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;UAkBT,OAAO;SACN,GAAG,CACF,CAAC,CAAC,EAAE,CAAC;yEACwD,CAAC,CAAC,SAAS;wCAC5C,CAAC,CAAC,WAAW;6BACxB,CAAC,CAAC,GAAG,mDAAmD,CAAC,CAAC,GAAG;oBACtE,CAAC,CAAC,CAAC,iBAAiB,GAAG,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;0BAChC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC;kBACvC,CACP;SACA,IAAI,CAAC,EAAE,CAAC;;;;;QAKX,CAAC;AACT,CAAC;AAED,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;IAC7D,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;IAC9C,cAAc,CAAC,IAAI,CAAC,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProofGraph Standard Verified Seed Dataset
|
|
3
|
+
* Contains realistic factual entities, sources, evidence, claims, and relationships
|
|
4
|
+
*/
|
|
5
|
+
import { computeSha256 } from '../security/safeFetch.js';
|
|
6
|
+
export function seedStandardGraph(store) {
|
|
7
|
+
store.clear();
|
|
8
|
+
// ---------------- 1. Entities ----------------
|
|
9
|
+
store.addEntity({
|
|
10
|
+
id: 'entity:organization:ai-build-infra',
|
|
11
|
+
name: 'AI Build Infra',
|
|
12
|
+
type: 'Organization',
|
|
13
|
+
description: 'Engineering organization dedicated to building production-grade agentic infrastructure, anti-slop tooling, and evidence-first knowledge graph protocols.',
|
|
14
|
+
canonical_url: 'https://aibuildinfra.com/',
|
|
15
|
+
aliases: ['AI BuildInfra', 'AI-Build-Infra', 'aibuildinfra', 'AI Build Infra Org'],
|
|
16
|
+
metadata: {
|
|
17
|
+
github: 'https://github.com/AI-BuildInfra',
|
|
18
|
+
github_org: 'AI-BuildInfra',
|
|
19
|
+
npm_scope: '@aibuildinfra',
|
|
20
|
+
email: 'contact@aibuildinfra.com',
|
|
21
|
+
domain: 'aibuildinfra.com',
|
|
22
|
+
schema_org: true,
|
|
23
|
+
mcp_registry: 'io.github.AI-BuildInfra',
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
store.addEntity({
|
|
27
|
+
id: 'entity:project:proofgraph',
|
|
28
|
+
name: 'ProofGraph',
|
|
29
|
+
type: 'Project',
|
|
30
|
+
description: 'Open-source evidence-first entity and knowledge graph MCP server for AI agents to verify claims and retrieve token-budgeted proof packets.',
|
|
31
|
+
canonical_url: 'https://aibuildinfra.com/proofgraph/',
|
|
32
|
+
aliases: ['proofgraph-mcp', '@aibuildinfra/proofgraph', 'ProofGraph MCP'],
|
|
33
|
+
metadata: {
|
|
34
|
+
github: 'https://github.com/AI-BuildInfra/proofgraph',
|
|
35
|
+
npm: '@aibuildinfra/proofgraph',
|
|
36
|
+
version: '1.0.0',
|
|
37
|
+
category: 'DeveloperApplication',
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
store.addEntity({
|
|
41
|
+
id: 'entity:project:humancraft',
|
|
42
|
+
name: 'HumanCraft',
|
|
43
|
+
type: 'Project',
|
|
44
|
+
description: 'Official Model Context Protocol server for eliminating AI Slop, enforcing E-E-A-T entity reconciliation, and crafting human web design.',
|
|
45
|
+
canonical_url: 'https://aibuildinfra.com/humancraft/',
|
|
46
|
+
aliases: ['HumanCraft-UI', 'humancraft-mcp', '@aibuildinfra/humancraft'],
|
|
47
|
+
metadata: {
|
|
48
|
+
github: 'https://github.com/AI-BuildInfra/Humancraft-UI',
|
|
49
|
+
npm: '@aibuildinfra/humancraft',
|
|
50
|
+
version: '1.0.0',
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
store.addEntity({
|
|
54
|
+
id: 'entity:technology:model-context-protocol',
|
|
55
|
+
name: 'Model Context Protocol',
|
|
56
|
+
type: 'Technology',
|
|
57
|
+
description: 'An open standard developed by Anthropic and open-source contributors that enables AI models to securely interact with external tools and data sources.',
|
|
58
|
+
canonical_url: 'https://modelcontextprotocol.io/',
|
|
59
|
+
aliases: ['MCP', 'ModelContextProtocol', 'mcp-standard'],
|
|
60
|
+
metadata: {
|
|
61
|
+
github: 'https://github.com/modelcontextprotocol',
|
|
62
|
+
standards_body: true,
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
store.addEntity({
|
|
66
|
+
id: 'entity:organization:anthropic',
|
|
67
|
+
name: 'Anthropic',
|
|
68
|
+
type: 'Organization',
|
|
69
|
+
description: 'AI safety and research company that created Claude and initiated the Model Context Protocol open standard.',
|
|
70
|
+
canonical_url: 'https://www.anthropic.com/',
|
|
71
|
+
aliases: ['Anthropic PBC', 'Anthropic AI'],
|
|
72
|
+
metadata: {
|
|
73
|
+
github: 'https://github.com/anthropics',
|
|
74
|
+
domain: 'anthropic.com',
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
store.addEntity({
|
|
78
|
+
id: 'entity:service:agentic-ai-engineering',
|
|
79
|
+
name: 'Agentic Infrastructure Engineering',
|
|
80
|
+
type: 'Service',
|
|
81
|
+
description: 'Specialized software engineering service by AI Build Infra delivering custom Model Context Protocol servers, knowledge graph integrations, and deterministic agent workflows.',
|
|
82
|
+
canonical_url: 'https://aibuildinfra.com/services/',
|
|
83
|
+
aliases: ['AI Build Infra MCP Engineering', 'Agentic Build Infra Services'],
|
|
84
|
+
metadata: {
|
|
85
|
+
provider: 'AI Build Infra',
|
|
86
|
+
serviceType: 'Software Development & AI Architecture',
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
store.addEntity({
|
|
90
|
+
id: 'entity:repository:proofgraph',
|
|
91
|
+
name: 'AI-BuildInfra/proofgraph',
|
|
92
|
+
type: 'Repository',
|
|
93
|
+
description: 'Official GitHub repository for the ProofGraph MCP server.',
|
|
94
|
+
canonical_url: 'https://github.com/AI-BuildInfra/proofgraph',
|
|
95
|
+
aliases: ['proofgraph-repo'],
|
|
96
|
+
metadata: {
|
|
97
|
+
stars: 120,
|
|
98
|
+
license: 'MIT',
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
store.addEntity({
|
|
102
|
+
id: 'entity:package:npm-proofgraph',
|
|
103
|
+
name: '@aibuildinfra/proofgraph',
|
|
104
|
+
type: 'Package',
|
|
105
|
+
description: 'Official npm package distribution for ProofGraph MCP server.',
|
|
106
|
+
canonical_url: 'https://www.npmjs.com/package/@aibuildinfra/proofgraph',
|
|
107
|
+
aliases: ['npm-proofgraph'],
|
|
108
|
+
metadata: {
|
|
109
|
+
publisher: 'AI Build Infra',
|
|
110
|
+
downloads: 4500,
|
|
111
|
+
},
|
|
112
|
+
});
|
|
113
|
+
// ---------------- 2. Sources ----------------
|
|
114
|
+
const srcMcpRegistry = store.addSource({
|
|
115
|
+
id: 'source:registry:mcp-official',
|
|
116
|
+
source_type: 'official_registry',
|
|
117
|
+
url: 'https://registry.modelcontextprotocol.io/servers/io.github.AI-BuildInfra/humancraft-ui',
|
|
118
|
+
domain: 'registry.modelcontextprotocol.io',
|
|
119
|
+
title: 'Model Context Protocol Official Registry - HumanCraft & ProofGraph',
|
|
120
|
+
publisher: 'MCP Registry Working Group',
|
|
121
|
+
trust_class: 'official_registry',
|
|
122
|
+
reliability_score: 0.98,
|
|
123
|
+
retrieved_at: '2026-09-25T12:00:00Z',
|
|
124
|
+
content_hash: computeSha256('MCP Official Registry Listing: io.github.AI-BuildInfra/humancraft-ui verified publisher AI Build Infra.'),
|
|
125
|
+
last_verified: '2026-09-25T12:00:00Z',
|
|
126
|
+
freshness: 'fresh',
|
|
127
|
+
});
|
|
128
|
+
const srcGithubOrg = store.addSource({
|
|
129
|
+
id: 'source:github:ai-build-infra',
|
|
130
|
+
source_type: 'github_repository',
|
|
131
|
+
url: 'https://github.com/AI-BuildInfra',
|
|
132
|
+
domain: 'github.com',
|
|
133
|
+
title: 'AI Build Infra GitHub Organization',
|
|
134
|
+
publisher: 'GitHub',
|
|
135
|
+
trust_class: 'github_repository',
|
|
136
|
+
reliability_score: 0.95,
|
|
137
|
+
retrieved_at: '2026-09-25T12:30:00Z',
|
|
138
|
+
content_hash: computeSha256('AI Build Infra GitHub Organization maintains open-source repositories including Humancraft-UI and proofgraph MCP servers.'),
|
|
139
|
+
last_verified: '2026-09-25T12:30:00Z',
|
|
140
|
+
freshness: 'fresh',
|
|
141
|
+
});
|
|
142
|
+
const srcOfficialSite = store.addSource({
|
|
143
|
+
id: 'source:website:aibuildinfra-about',
|
|
144
|
+
source_type: 'official_source',
|
|
145
|
+
url: 'https://aibuildinfra.com/about/',
|
|
146
|
+
domain: 'aibuildinfra.com',
|
|
147
|
+
title: 'About AI Build Infra - Mission & Core Products',
|
|
148
|
+
publisher: 'AI Build Infra',
|
|
149
|
+
trust_class: 'official_source',
|
|
150
|
+
reliability_score: 0.95,
|
|
151
|
+
retrieved_at: '2026-09-25T10:00:00Z',
|
|
152
|
+
content_hash: computeSha256('AI Build Infra develops high-integrity AI engineering infrastructure, Model Context Protocol servers, and evidence-first tools.'),
|
|
153
|
+
last_verified: '2026-09-25T10:00:00Z',
|
|
154
|
+
freshness: 'fresh',
|
|
155
|
+
});
|
|
156
|
+
const srcNpmRegistry = store.addSource({
|
|
157
|
+
id: 'source:npm:proofgraph-pkg',
|
|
158
|
+
source_type: 'package_registry',
|
|
159
|
+
url: 'https://www.npmjs.com/package/@aibuildinfra/proofgraph',
|
|
160
|
+
domain: 'npmjs.com',
|
|
161
|
+
title: '@aibuildinfra/proofgraph on npm',
|
|
162
|
+
publisher: 'npm Registry',
|
|
163
|
+
trust_class: 'package_registry',
|
|
164
|
+
reliability_score: 0.94,
|
|
165
|
+
retrieved_at: '2026-09-25T11:00:00Z',
|
|
166
|
+
content_hash: computeSha256('npm package @aibuildinfra/proofgraph: Evidence-first entity and knowledge graph MCP server for AI agents.'),
|
|
167
|
+
last_verified: '2026-09-25T11:00:00Z',
|
|
168
|
+
freshness: 'fresh',
|
|
169
|
+
});
|
|
170
|
+
const srcTechPublication = store.addSource({
|
|
171
|
+
id: 'source:publication:agentic-ai-review',
|
|
172
|
+
source_type: 'established_publication',
|
|
173
|
+
url: 'https://techreview.ai/articles/ai-build-infra-knowledge-graphs',
|
|
174
|
+
domain: 'techreview.ai',
|
|
175
|
+
title: 'How AI Build Infra is Redefining Context Efficiency with ProofGraph',
|
|
176
|
+
publisher: 'Tech Review AI',
|
|
177
|
+
trust_class: 'established_publication',
|
|
178
|
+
reliability_score: 0.88,
|
|
179
|
+
retrieved_at: '2026-09-24T18:00:00Z',
|
|
180
|
+
content_hash: computeSha256('Tech Review AI highlights AI Build Infra as an emerging developer of MCP servers that cut context bloat.'),
|
|
181
|
+
last_verified: '2026-09-24T18:00:00Z',
|
|
182
|
+
freshness: 'fresh',
|
|
183
|
+
});
|
|
184
|
+
// ---------------- 3. Claims & Evidence ----------------
|
|
185
|
+
// Claim 1: "AI Build Infra develops MCP servers"
|
|
186
|
+
const claimDevelopsMCP = store.addClaim({
|
|
187
|
+
id: 'claim:aibuildinfra-develops-mcp',
|
|
188
|
+
subject_id: 'entity:organization:ai-build-infra',
|
|
189
|
+
predicate: 'DEVELOPS',
|
|
190
|
+
object_id: 'entity:technology:model-context-protocol',
|
|
191
|
+
statement: 'AI Build Infra develops MCP servers and open-source agent tooling.',
|
|
192
|
+
status: 'supported',
|
|
193
|
+
confidence: 0.98,
|
|
194
|
+
evidence_ids: ['ev:proofgraph-github', 'ev:mcp-registry-humancraft', 'ev:npm-proofgraph-dist'],
|
|
195
|
+
});
|
|
196
|
+
store.addEvidence({
|
|
197
|
+
id: 'ev:proofgraph-github',
|
|
198
|
+
claim_id: claimDevelopsMCP.id,
|
|
199
|
+
source_id: srcGithubOrg.id,
|
|
200
|
+
source_type: 'github_repository',
|
|
201
|
+
url: srcGithubOrg.url,
|
|
202
|
+
title: 'AI Build Infra GitHub Repositories',
|
|
203
|
+
publisher: 'GitHub',
|
|
204
|
+
retrieved_at: '2026-09-25T12:30:00Z',
|
|
205
|
+
content_hash: srcGithubOrg.content_hash,
|
|
206
|
+
excerpt: 'AI Build Infra organization repository catalog features production MCP servers including Humancraft-UI and ProofGraph with full Model Context Protocol SDK compliance.',
|
|
207
|
+
supports_claim: true,
|
|
208
|
+
confidence: 0.96,
|
|
209
|
+
directness: 0.95,
|
|
210
|
+
});
|
|
211
|
+
store.addEvidence({
|
|
212
|
+
id: 'ev:mcp-registry-humancraft',
|
|
213
|
+
claim_id: claimDevelopsMCP.id,
|
|
214
|
+
source_id: srcMcpRegistry.id,
|
|
215
|
+
source_type: 'official_registry',
|
|
216
|
+
url: srcMcpRegistry.url,
|
|
217
|
+
title: 'Official MCP Registry Entry',
|
|
218
|
+
publisher: 'MCP Registry',
|
|
219
|
+
retrieved_at: '2026-09-25T12:00:00Z',
|
|
220
|
+
content_hash: srcMcpRegistry.content_hash,
|
|
221
|
+
excerpt: 'Server identifier io.github.AI-BuildInfra/humancraft-ui registered and verified under AI Build Infra publisher identity.',
|
|
222
|
+
supports_claim: true,
|
|
223
|
+
confidence: 0.99,
|
|
224
|
+
directness: 0.98,
|
|
225
|
+
});
|
|
226
|
+
store.addEvidence({
|
|
227
|
+
id: 'ev:npm-proofgraph-dist',
|
|
228
|
+
claim_id: claimDevelopsMCP.id,
|
|
229
|
+
source_id: srcNpmRegistry.id,
|
|
230
|
+
source_type: 'package_registry',
|
|
231
|
+
url: srcNpmRegistry.url,
|
|
232
|
+
title: 'npm Package Registry Listing',
|
|
233
|
+
publisher: 'npm',
|
|
234
|
+
retrieved_at: '2026-09-25T11:00:00Z',
|
|
235
|
+
content_hash: srcNpmRegistry.content_hash,
|
|
236
|
+
excerpt: 'Package @aibuildinfra/proofgraph published to npm registry providing binary CLI and STDIO MCP server for entity graph verification.',
|
|
237
|
+
supports_claim: true,
|
|
238
|
+
confidence: 0.95,
|
|
239
|
+
directness: 0.92,
|
|
240
|
+
});
|
|
241
|
+
// Claim 2: "HumanCraft is an MCP server"
|
|
242
|
+
const claimHumanCraftIsMcp = store.addClaim({
|
|
243
|
+
id: 'claim:humancraft-is-mcp',
|
|
244
|
+
subject_id: 'entity:project:humancraft',
|
|
245
|
+
predicate: 'IS_A',
|
|
246
|
+
object_value: 'Model Context Protocol Server',
|
|
247
|
+
statement: 'HumanCraft is published as a Model Context Protocol (MCP) server for web design and E-E-A-T reconciliation.',
|
|
248
|
+
status: 'supported',
|
|
249
|
+
confidence: 0.99,
|
|
250
|
+
evidence_ids: ['ev:mcp-registry-humancraft'],
|
|
251
|
+
});
|
|
252
|
+
// Claim 3: "AI Build Infra provides software development services"
|
|
253
|
+
const claimServices = store.addClaim({
|
|
254
|
+
id: 'claim:aibuildinfra-services',
|
|
255
|
+
subject_id: 'entity:organization:ai-build-infra',
|
|
256
|
+
predicate: 'PROVIDES',
|
|
257
|
+
object_id: 'entity:service:agentic-ai-engineering',
|
|
258
|
+
statement: 'AI Build Infra provides software engineering and agentic infrastructure development services.',
|
|
259
|
+
status: 'supported',
|
|
260
|
+
confidence: 0.94,
|
|
261
|
+
evidence_ids: ['ev:official-services-page'],
|
|
262
|
+
});
|
|
263
|
+
store.addEvidence({
|
|
264
|
+
id: 'ev:official-services-page',
|
|
265
|
+
claim_id: claimServices.id,
|
|
266
|
+
source_id: srcOfficialSite.id,
|
|
267
|
+
source_type: 'official_source',
|
|
268
|
+
url: 'https://aibuildinfra.com/services/',
|
|
269
|
+
title: 'AI Build Infra Services',
|
|
270
|
+
publisher: 'AI Build Infra',
|
|
271
|
+
retrieved_at: '2026-09-25T10:00:00Z',
|
|
272
|
+
content_hash: computeSha256('AI Build Infra offers custom MCP server engineering, knowledge graph integration, and LLM context optimization architectures.'),
|
|
273
|
+
excerpt: 'AI Build Infra offers custom MCP server engineering, knowledge graph integration, and LLM context optimization architectures for enterprise AI deployments.',
|
|
274
|
+
supports_claim: true,
|
|
275
|
+
confidence: 0.94,
|
|
276
|
+
directness: 0.95,
|
|
277
|
+
});
|
|
278
|
+
// ---------------- 4. Relationships ----------------
|
|
279
|
+
store.addRelationship({
|
|
280
|
+
source_id: 'entity:organization:ai-build-infra',
|
|
281
|
+
target_id: 'entity:project:humancraft',
|
|
282
|
+
relationship: 'DEVELOPS',
|
|
283
|
+
confidence: 0.99,
|
|
284
|
+
evidence_ids: ['ev:proofgraph-github', 'ev:mcp-registry-humancraft'],
|
|
285
|
+
});
|
|
286
|
+
store.addRelationship({
|
|
287
|
+
source_id: 'entity:organization:ai-build-infra',
|
|
288
|
+
target_id: 'entity:project:proofgraph',
|
|
289
|
+
relationship: 'DEVELOPS',
|
|
290
|
+
confidence: 0.99,
|
|
291
|
+
evidence_ids: ['ev:proofgraph-github', 'ev:npm-proofgraph-dist'],
|
|
292
|
+
});
|
|
293
|
+
store.addRelationship({
|
|
294
|
+
source_id: 'entity:organization:ai-build-infra',
|
|
295
|
+
target_id: 'entity:service:agentic-ai-engineering',
|
|
296
|
+
relationship: 'OPERATES',
|
|
297
|
+
confidence: 0.95,
|
|
298
|
+
evidence_ids: ['ev:official-services-page'],
|
|
299
|
+
});
|
|
300
|
+
store.addRelationship({
|
|
301
|
+
source_id: 'entity:organization:ai-build-infra',
|
|
302
|
+
target_id: 'entity:repository:proofgraph',
|
|
303
|
+
relationship: 'MAINTAINS',
|
|
304
|
+
confidence: 0.98,
|
|
305
|
+
});
|
|
306
|
+
store.addRelationship({
|
|
307
|
+
source_id: 'entity:project:proofgraph',
|
|
308
|
+
target_id: 'entity:technology:model-context-protocol',
|
|
309
|
+
relationship: 'DEPENDS_ON',
|
|
310
|
+
confidence: 0.99,
|
|
311
|
+
});
|
|
312
|
+
store.addRelationship({
|
|
313
|
+
source_id: 'entity:project:humancraft',
|
|
314
|
+
target_id: 'entity:technology:model-context-protocol',
|
|
315
|
+
relationship: 'DEPENDS_ON',
|
|
316
|
+
confidence: 0.99,
|
|
317
|
+
});
|
|
318
|
+
store.addRelationship({
|
|
319
|
+
source_id: 'entity:project:proofgraph',
|
|
320
|
+
target_id: 'entity:package:npm-proofgraph',
|
|
321
|
+
relationship: 'PUBLISHED_ON',
|
|
322
|
+
confidence: 0.98,
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
//# sourceMappingURL=seed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed.js","sourceRoot":"","sources":["../../src/data/seed.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,UAAU,iBAAiB,CAAC,KAAiB;IACjD,KAAK,CAAC,KAAK,EAAE,CAAC;IAEd,gDAAgD;IAChD,KAAK,CAAC,SAAS,CAAC;QACd,EAAE,EAAE,oCAAoC;QACxC,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,0JAA0J;QACvK,aAAa,EAAE,2BAA2B;QAC1C,OAAO,EAAE,CAAC,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,oBAAoB,CAAC;QAClF,QAAQ,EAAE;YACR,MAAM,EAAE,kCAAkC;YAC1C,UAAU,EAAE,eAAe;YAC3B,SAAS,EAAE,eAAe;YAC1B,KAAK,EAAE,0BAA0B;YACjC,MAAM,EAAE,kBAAkB;YAC1B,UAAU,EAAE,IAAI;YAChB,YAAY,EAAE,yBAAyB;SACxC;KACF,CAAC,CAAC;IAEH,KAAK,CAAC,SAAS,CAAC;QACd,EAAE,EAAE,2BAA2B;QAC/B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,4IAA4I;QACzJ,aAAa,EAAE,sCAAsC;QACrD,OAAO,EAAE,CAAC,gBAAgB,EAAE,0BAA0B,EAAE,gBAAgB,CAAC;QACzE,QAAQ,EAAE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QACzB,UAAU,EAAE,IAAI;KACjB,CAAC,CAAC;IAEH,KAAK,CAAC,eAAe,CAAC;QACpB,SAAS,EAAE,2BAA2B;QACtC,SAAS,EAAE,0CAA0C;QACrD,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,IAAI;KACjB,CAAC,CAAC;IAEH,KAAK,CAAC,eAAe,CAAC;QACpB,SAAS,EAAE,2BAA2B;QACtC,SAAS,EAAE,0CAA0C;QACrD,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,IAAI;KACjB,CAAC,CAAC;IAEH,KAAK,CAAC,eAAe,CAAC;QACpB,SAAS,EAAE,2BAA2B;QACtC,SAAS,EAAE,+BAA+B;QAC1C,YAAY,EAAE,cAAc;QAC5B,UAAU,EAAE,IAAI;KACjB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProofGraph AI Discoverability Diagnostic Engine
|
|
3
|
+
* Assesses knowledge completeness for AI agents to accurately synthesize entity information
|
|
4
|
+
*/
|
|
5
|
+
import { AIDiscoverabilityResult } from '../types/index.js';
|
|
6
|
+
import { GraphStore } from '../storage/graphStore.js';
|
|
7
|
+
export declare class AIDiscoverabilityEngine {
|
|
8
|
+
private store;
|
|
9
|
+
constructor(store: GraphStore);
|
|
10
|
+
evaluate(entityIdOrName: string): AIDiscoverabilityResult;
|
|
11
|
+
}
|