@swarmvaultai/viewer 1.4.0 → 3.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/README.md +3 -1
- package/dist/assets/{index-DwLzGcBF.js → index-DejkTRrx.js} +47 -47
- package/dist/index.html +1 -1
- package/dist/lib.d.ts +19 -1
- package/dist/lib.js +14 -0
- package/package.json +10 -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-DejkTRrx.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-CRcCxyS8.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
package/dist/lib.d.ts
CHANGED
|
@@ -228,6 +228,22 @@ type ViewerCandidateRecord = {
|
|
|
228
228
|
score?: number;
|
|
229
229
|
scoreBreakdown?: Record<string, number>;
|
|
230
230
|
};
|
|
231
|
+
type ViewerMemoryTaskSummary = {
|
|
232
|
+
id: string;
|
|
233
|
+
title: string;
|
|
234
|
+
goal: string;
|
|
235
|
+
status: "active" | "blocked" | "completed" | "archived";
|
|
236
|
+
target?: string;
|
|
237
|
+
agent?: string;
|
|
238
|
+
createdAt: string;
|
|
239
|
+
updatedAt: string;
|
|
240
|
+
contextPackIds: string[];
|
|
241
|
+
changedPaths: string[];
|
|
242
|
+
decisionCount: number;
|
|
243
|
+
followUpCount: number;
|
|
244
|
+
artifactPath: string;
|
|
245
|
+
markdownPath: string;
|
|
246
|
+
};
|
|
231
247
|
type ViewerLintFinding = {
|
|
232
248
|
id: string;
|
|
233
249
|
severity: "error" | "warning" | "info";
|
|
@@ -242,6 +258,7 @@ type ViewerWorkspaceBundle = {
|
|
|
242
258
|
graph: ViewerGraphArtifact;
|
|
243
259
|
approvals: ViewerApprovalSummary[];
|
|
244
260
|
candidates: ViewerCandidateRecord[];
|
|
261
|
+
memoryTasks: ViewerMemoryTaskSummary[];
|
|
245
262
|
watchStatus: ViewerWatchStatus;
|
|
246
263
|
graphReport: ViewerGraphReport | null;
|
|
247
264
|
lintFindings: ViewerLintFinding[];
|
|
@@ -371,6 +388,7 @@ declare function fetchApprovals(): Promise<ViewerApprovalSummary[]>;
|
|
|
371
388
|
declare function fetchApprovalDetail(approvalId: string): Promise<ViewerApprovalDetail>;
|
|
372
389
|
declare function applyReviewAction(approvalId: string, action: "accept" | "reject", targets?: string[]): Promise<ViewerReviewActionResult>;
|
|
373
390
|
declare function fetchCandidates(): Promise<ViewerCandidateRecord[]>;
|
|
391
|
+
declare function fetchMemoryTasks(): Promise<ViewerMemoryTaskSummary[]>;
|
|
374
392
|
declare function applyCandidateAction(target: string, action: "promote" | "archive"): Promise<ViewerCandidateRecord>;
|
|
375
393
|
declare function fetchWatchStatus(): Promise<ViewerWatchStatus>;
|
|
376
394
|
declare function fetchLintFindings(): Promise<ViewerLintFinding[]>;
|
|
@@ -385,4 +403,4 @@ declare function buildSubgraphExport(graph: ViewerGraphArtifact, nodeIds: string
|
|
|
385
403
|
declare function downloadDataUrl(filename: string, dataUrl: string): void;
|
|
386
404
|
declare function downloadText(filename: string, text: string, mime?: string): void;
|
|
387
405
|
|
|
388
|
-
export { type SubgraphExportPayload, type ViewerApprovalDetail, type ViewerApprovalDiffHunk, type ViewerApprovalDiffLine, type ViewerApprovalEntry, type ViewerApprovalFrontmatterChange, type ViewerApprovalStructuredDiff, type ViewerApprovalSummary, type ViewerCandidateRecord, type ViewerGraphArtifact, type ViewerGraphEdge, type ViewerGraphExplainResult, type ViewerGraphHyperedge, type ViewerGraphNode, type ViewerGraphPage, type ViewerGraphPathResult, type ViewerGraphQueryResult, type ViewerGraphReport, type ViewerLintFinding, type ViewerOutputAsset, type ViewerPagePayload, type ViewerReviewActionResult, type ViewerSearchOptions, type ViewerSearchResult, type ViewerWatchStatus, type ViewerWorkspaceBundle, applyCandidateAction, applyReviewAction, buildSubgraphExport, downloadDataUrl, downloadText, fetchApprovalDetail, fetchApprovals, fetchCandidates, fetchGraphArtifact, fetchGraphExplain, fetchGraphPath, fetchGraphQuery, fetchGraphReport, fetchLintFindings, fetchViewerPage, fetchWatchStatus, fetchWorkspaceBundle, searchViewerPages };
|
|
406
|
+
export { type SubgraphExportPayload, type ViewerApprovalDetail, type ViewerApprovalDiffHunk, type ViewerApprovalDiffLine, type ViewerApprovalEntry, type ViewerApprovalFrontmatterChange, type ViewerApprovalStructuredDiff, type ViewerApprovalSummary, type ViewerCandidateRecord, type ViewerGraphArtifact, type ViewerGraphEdge, type ViewerGraphExplainResult, type ViewerGraphHyperedge, type ViewerGraphNode, type ViewerGraphPage, type ViewerGraphPathResult, type ViewerGraphQueryResult, type ViewerGraphReport, type ViewerLintFinding, type ViewerMemoryTaskSummary, type ViewerOutputAsset, type ViewerPagePayload, type ViewerReviewActionResult, type ViewerSearchOptions, type ViewerSearchResult, type ViewerWatchStatus, type ViewerWorkspaceBundle, applyCandidateAction, applyReviewAction, buildSubgraphExport, downloadDataUrl, downloadText, fetchApprovalDetail, fetchApprovals, fetchCandidates, fetchGraphArtifact, fetchGraphExplain, fetchGraphPath, fetchGraphQuery, fetchGraphReport, fetchLintFindings, fetchMemoryTasks, fetchViewerPage, fetchWatchStatus, fetchWorkspaceBundle, searchViewerPages };
|
package/dist/lib.js
CHANGED
|
@@ -509,6 +509,19 @@ async function fetchCandidates() {
|
|
|
509
509
|
}
|
|
510
510
|
return response.json();
|
|
511
511
|
}
|
|
512
|
+
async function fetchMemoryTasks() {
|
|
513
|
+
if (embeddedData()) {
|
|
514
|
+
return [];
|
|
515
|
+
}
|
|
516
|
+
const response = await fetch("/api/memory-tasks");
|
|
517
|
+
if (response.status === 404) {
|
|
518
|
+
return [];
|
|
519
|
+
}
|
|
520
|
+
if (!response.ok) {
|
|
521
|
+
throw new Error(`Failed to load memory tasks: ${response.status} ${response.statusText}`);
|
|
522
|
+
}
|
|
523
|
+
return response.json();
|
|
524
|
+
}
|
|
512
525
|
async function applyCandidateAction(target, action) {
|
|
513
526
|
if (embeddedData()) {
|
|
514
527
|
throw new Error("Candidate actions are unavailable in standalone exports.");
|
|
@@ -602,6 +615,7 @@ export {
|
|
|
602
615
|
fetchGraphQuery,
|
|
603
616
|
fetchGraphReport,
|
|
604
617
|
fetchLintFindings,
|
|
618
|
+
fetchMemoryTasks,
|
|
605
619
|
fetchViewerPage,
|
|
606
620
|
fetchWatchStatus,
|
|
607
621
|
fetchWorkspaceBundle,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swarmvaultai/viewer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Graph viewer package for SwarmVault graph artifacts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/lib.js",
|
|
@@ -37,6 +37,14 @@
|
|
|
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": "vitest run",
|
|
45
|
+
"typecheck": "tsc --noEmit",
|
|
46
|
+
"prepublishOnly": "node ../../scripts/check-release-sync.mjs && node ../../scripts/check-published-manifests.mjs"
|
|
47
|
+
},
|
|
40
48
|
"dependencies": {
|
|
41
49
|
"cytoscape": "^3.33.1",
|
|
42
50
|
"highlight.js": "^11.10.0",
|
|
@@ -61,12 +69,5 @@
|
|
|
61
69
|
"typescript": "^5.9.2",
|
|
62
70
|
"vite": "^7.1.7",
|
|
63
71
|
"vitest": "^3.2.4"
|
|
64
|
-
},
|
|
65
|
-
"scripts": {
|
|
66
|
-
"build": "pnpm run build:lib && pnpm run build:app",
|
|
67
|
-
"build:lib": "tsup src/lib.ts --format esm --dts --out-dir dist --clean",
|
|
68
|
-
"build:app": "vite build",
|
|
69
|
-
"test": "vitest run",
|
|
70
|
-
"typecheck": "tsc --noEmit"
|
|
71
72
|
}
|
|
72
|
-
}
|
|
73
|
+
}
|
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.
|