@swarmvaultai/viewer 1.4.0 → 3.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/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 +1 -1
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,
|