@swarmvaultai/viewer 0.1.23 → 0.1.24
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/dist/assets/{index-f8JPYMw_.js → index-CmEm2Pd_.js} +11 -11
- package/dist/index.html +1 -1
- package/dist/lib.d.ts +20 -2
- package/package.json +9 -9
- package/LICENSE +0 -21
package/dist/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>SwarmVault Graph</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-CmEm2Pd_.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-mRA-6D-Z.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
package/dist/lib.d.ts
CHANGED
|
@@ -31,6 +31,17 @@ type ViewerGraphEdge = {
|
|
|
31
31
|
status: string;
|
|
32
32
|
evidenceClass?: string;
|
|
33
33
|
confidence?: number;
|
|
34
|
+
similarityReasons?: string[];
|
|
35
|
+
};
|
|
36
|
+
type ViewerGraphHyperedge = {
|
|
37
|
+
id: string;
|
|
38
|
+
label: string;
|
|
39
|
+
relation: string;
|
|
40
|
+
nodeIds: string[];
|
|
41
|
+
evidenceClass: string;
|
|
42
|
+
confidence: number;
|
|
43
|
+
sourcePageIds: string[];
|
|
44
|
+
why: string;
|
|
34
45
|
};
|
|
35
46
|
type ViewerGraphPage = {
|
|
36
47
|
pageId: string;
|
|
@@ -47,6 +58,7 @@ type ViewerGraphArtifact = {
|
|
|
47
58
|
generatedAt: string;
|
|
48
59
|
nodes: ViewerGraphNode[];
|
|
49
60
|
edges: ViewerGraphEdge[];
|
|
61
|
+
hyperedges: ViewerGraphHyperedge[];
|
|
50
62
|
communities?: Array<{
|
|
51
63
|
id: string;
|
|
52
64
|
label: string;
|
|
@@ -90,11 +102,12 @@ type ViewerGraphQueryResult = {
|
|
|
90
102
|
seedPageIds: string[];
|
|
91
103
|
visitedNodeIds: string[];
|
|
92
104
|
visitedEdgeIds: string[];
|
|
105
|
+
hyperedgeIds: string[];
|
|
93
106
|
pageIds: string[];
|
|
94
107
|
communities: string[];
|
|
95
108
|
summary: string;
|
|
96
109
|
matches: Array<{
|
|
97
|
-
type: "node" | "page";
|
|
110
|
+
type: "node" | "page" | "hyperedge";
|
|
98
111
|
id: string;
|
|
99
112
|
label: string;
|
|
100
113
|
score: number;
|
|
@@ -133,6 +146,7 @@ type ViewerGraphExplainResult = {
|
|
|
133
146
|
confidence: number;
|
|
134
147
|
evidenceClass: string;
|
|
135
148
|
}>;
|
|
149
|
+
hyperedges: ViewerGraphHyperedge[];
|
|
136
150
|
summary: string;
|
|
137
151
|
};
|
|
138
152
|
type ViewerApprovalSummary = {
|
|
@@ -237,9 +251,13 @@ type ViewerGraphReport = {
|
|
|
237
251
|
confidence: number;
|
|
238
252
|
pathNodeIds: string[];
|
|
239
253
|
pathEdgeIds: string[];
|
|
254
|
+
pathRelations: string[];
|
|
255
|
+
pathEvidenceClasses: string[];
|
|
240
256
|
pathSummary: string;
|
|
257
|
+
why: string;
|
|
241
258
|
explanation: string;
|
|
242
259
|
}>;
|
|
260
|
+
groupPatterns: ViewerGraphHyperedge[];
|
|
243
261
|
suggestedQuestions: string[];
|
|
244
262
|
recentResearchSources: Array<{
|
|
245
263
|
pageId: string;
|
|
@@ -282,4 +300,4 @@ declare function fetchCandidates(): Promise<ViewerCandidateRecord[]>;
|
|
|
282
300
|
declare function applyCandidateAction(target: string, action: "promote" | "archive"): Promise<ViewerCandidateRecord>;
|
|
283
301
|
declare function fetchWatchStatus(): Promise<ViewerWatchStatus>;
|
|
284
302
|
|
|
285
|
-
export { type ViewerApprovalDetail, type ViewerApprovalEntry, type ViewerApprovalSummary, type ViewerCandidateRecord, type ViewerGraphArtifact, type ViewerGraphEdge, type ViewerGraphExplainResult, type ViewerGraphNode, type ViewerGraphPage, type ViewerGraphPathResult, type ViewerGraphQueryResult, type ViewerGraphReport, type ViewerOutputAsset, type ViewerPagePayload, type ViewerReviewActionResult, type ViewerSearchOptions, type ViewerSearchResult, type ViewerWatchStatus, applyCandidateAction, applyReviewAction, fetchApprovalDetail, fetchApprovals, fetchCandidates, fetchGraphArtifact, fetchGraphExplain, fetchGraphPath, fetchGraphQuery, fetchGraphReport, fetchViewerPage, fetchWatchStatus, searchViewerPages };
|
|
303
|
+
export { type ViewerApprovalDetail, type ViewerApprovalEntry, type ViewerApprovalSummary, type ViewerCandidateRecord, type ViewerGraphArtifact, type ViewerGraphEdge, type ViewerGraphExplainResult, type ViewerGraphHyperedge, type ViewerGraphNode, type ViewerGraphPage, type ViewerGraphPathResult, type ViewerGraphQueryResult, type ViewerGraphReport, type ViewerOutputAsset, type ViewerPagePayload, type ViewerReviewActionResult, type ViewerSearchOptions, type ViewerSearchResult, type ViewerWatchStatus, applyCandidateAction, applyReviewAction, fetchApprovalDetail, fetchApprovals, fetchCandidates, fetchGraphArtifact, fetchGraphExplain, fetchGraphPath, fetchGraphQuery, fetchGraphReport, fetchViewerPage, fetchWatchStatus, searchViewerPages };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swarmvaultai/viewer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"description": "Graph viewer package for SwarmVault graph artifacts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/lib.js",
|
|
@@ -37,6 +37,13 @@
|
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=24.0.0"
|
|
39
39
|
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "pnpm run build:lib && pnpm run build:app",
|
|
42
|
+
"build:lib": "tsup src/lib.ts --format esm --dts --out-dir dist --clean",
|
|
43
|
+
"build:app": "vite build",
|
|
44
|
+
"test": "node -e \"process.exit(0)\"",
|
|
45
|
+
"typecheck": "tsc --noEmit"
|
|
46
|
+
},
|
|
40
47
|
"dependencies": {
|
|
41
48
|
"cytoscape": "^3.33.1",
|
|
42
49
|
"react": "^19.1.1",
|
|
@@ -50,12 +57,5 @@
|
|
|
50
57
|
"tsup": "^8.5.0",
|
|
51
58
|
"typescript": "^5.9.2",
|
|
52
59
|
"vite": "^7.1.7"
|
|
53
|
-
},
|
|
54
|
-
"scripts": {
|
|
55
|
-
"build": "pnpm run build:lib && pnpm run build:app",
|
|
56
|
-
"build:lib": "tsup src/lib.ts --format esm --dts --out-dir dist --clean",
|
|
57
|
-
"build:app": "vite build",
|
|
58
|
-
"test": "node -e \"process.exit(0)\"",
|
|
59
|
-
"typecheck": "tsc --noEmit"
|
|
60
60
|
}
|
|
61
|
-
}
|
|
61
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 SwarmVault
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|