@swarmvaultai/engine 0.7.21 → 0.7.22
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/chunk-2CH2WWS4.js +1359 -0
- package/dist/index.d.ts +67 -3
- package/dist/index.js +2734 -2018
- package/dist/registry-MYJX6AEE.js +12 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,9 @@ declare const agentTypeSchema: z.ZodEnum<{
|
|
|
39
39
|
opencode: "opencode";
|
|
40
40
|
aider: "aider";
|
|
41
41
|
copilot: "copilot";
|
|
42
|
+
trae: "trae";
|
|
43
|
+
claw: "claw";
|
|
44
|
+
droid: "droid";
|
|
42
45
|
}>;
|
|
43
46
|
type AgentType = z.infer<typeof agentTypeSchema>;
|
|
44
47
|
type PageKind = "index" | "source" | "module" | "concept" | "entity" | "output" | "insight" | "graph_report" | "community_summary";
|
|
@@ -49,7 +52,7 @@ type Polarity = "positive" | "negative" | "neutral";
|
|
|
49
52
|
type OutputOrigin = "query" | "explore" | "source_brief" | "source_review" | "source_guide" | "source_session";
|
|
50
53
|
type OutputFormat = "markdown" | "report" | "slides" | "chart" | "image";
|
|
51
54
|
type OutputAssetRole = "primary" | "preview" | "manifest" | "poster";
|
|
52
|
-
type GraphExportFormat = "html" | "svg" | "graphml" | "cypher";
|
|
55
|
+
type GraphExportFormat = "html" | "html-standalone" | "svg" | "graphml" | "cypher" | "json" | "obsidian" | "canvas";
|
|
53
56
|
type PageStatus = "draft" | "candidate" | "active" | "archived";
|
|
54
57
|
type PageManager = "system" | "human";
|
|
55
58
|
type ApprovalEntryStatus = "pending" | "accepted" | "rejected";
|
|
@@ -593,6 +596,45 @@ interface GraphExplainResult {
|
|
|
593
596
|
hyperedges: GraphHyperedge[];
|
|
594
597
|
summary: string;
|
|
595
598
|
}
|
|
599
|
+
interface GraphDiffResult {
|
|
600
|
+
addedNodes: Array<{
|
|
601
|
+
id: string;
|
|
602
|
+
label: string;
|
|
603
|
+
type: GraphNode["type"];
|
|
604
|
+
}>;
|
|
605
|
+
removedNodes: Array<{
|
|
606
|
+
id: string;
|
|
607
|
+
label: string;
|
|
608
|
+
type: GraphNode["type"];
|
|
609
|
+
}>;
|
|
610
|
+
addedEdges: Array<{
|
|
611
|
+
id: string;
|
|
612
|
+
source: string;
|
|
613
|
+
target: string;
|
|
614
|
+
relation: string;
|
|
615
|
+
evidenceClass: EvidenceClass;
|
|
616
|
+
}>;
|
|
617
|
+
removedEdges: Array<{
|
|
618
|
+
id: string;
|
|
619
|
+
source: string;
|
|
620
|
+
target: string;
|
|
621
|
+
relation: string;
|
|
622
|
+
evidenceClass: EvidenceClass;
|
|
623
|
+
}>;
|
|
624
|
+
addedPages: Array<{
|
|
625
|
+
id: string;
|
|
626
|
+
path: string;
|
|
627
|
+
title: string;
|
|
628
|
+
kind: PageKind;
|
|
629
|
+
}>;
|
|
630
|
+
removedPages: Array<{
|
|
631
|
+
id: string;
|
|
632
|
+
path: string;
|
|
633
|
+
title: string;
|
|
634
|
+
kind: PageKind;
|
|
635
|
+
}>;
|
|
636
|
+
summary: string;
|
|
637
|
+
}
|
|
596
638
|
interface ApprovalEntry {
|
|
597
639
|
pageId: string;
|
|
598
640
|
title: string;
|
|
@@ -647,6 +689,7 @@ interface CandidateRecord {
|
|
|
647
689
|
}
|
|
648
690
|
interface CompileOptions {
|
|
649
691
|
approve?: boolean;
|
|
692
|
+
codeOnly?: boolean;
|
|
650
693
|
}
|
|
651
694
|
interface InitOptions {
|
|
652
695
|
obsidian?: boolean;
|
|
@@ -977,6 +1020,7 @@ interface SceneSpec {
|
|
|
977
1020
|
interface GraphExportResult {
|
|
978
1021
|
format: GraphExportFormat;
|
|
979
1022
|
outputPath: string;
|
|
1023
|
+
fileCount?: number;
|
|
980
1024
|
}
|
|
981
1025
|
interface Neo4jGraphSinkConfig {
|
|
982
1026
|
uri: string;
|
|
@@ -1168,6 +1212,22 @@ interface GraphReportArtifact {
|
|
|
1168
1212
|
claimB: string;
|
|
1169
1213
|
confidenceDelta: number;
|
|
1170
1214
|
}>;
|
|
1215
|
+
communityCohesion?: Array<{
|
|
1216
|
+
id: string;
|
|
1217
|
+
label: string;
|
|
1218
|
+
nodeCount: number;
|
|
1219
|
+
cohesion: number;
|
|
1220
|
+
}>;
|
|
1221
|
+
knowledgeGaps?: {
|
|
1222
|
+
isolatedNodes: Array<{
|
|
1223
|
+
nodeId: string;
|
|
1224
|
+
label: string;
|
|
1225
|
+
type: GraphNode["type"];
|
|
1226
|
+
}>;
|
|
1227
|
+
thinCommunityCount: number;
|
|
1228
|
+
ambiguousEdgeRatio: number;
|
|
1229
|
+
warnings: string[];
|
|
1230
|
+
};
|
|
1171
1231
|
}
|
|
1172
1232
|
interface ScheduledCompileTask {
|
|
1173
1233
|
type: "compile";
|
|
@@ -1281,7 +1341,9 @@ declare function initWorkspace(rootDir: string, options?: {
|
|
|
1281
1341
|
paths: ResolvedPaths;
|
|
1282
1342
|
}>;
|
|
1283
1343
|
|
|
1284
|
-
declare function exportGraphFormat(rootDir: string, format: Exclude<GraphExportFormat, "html">, outputPath: string): Promise<GraphExportResult>;
|
|
1344
|
+
declare function exportGraphFormat(rootDir: string, format: Exclude<GraphExportFormat, "html" | "obsidian" | "canvas">, outputPath: string): Promise<GraphExportResult>;
|
|
1345
|
+
declare function exportObsidianVault(rootDir: string, outputDir: string): Promise<GraphExportResult>;
|
|
1346
|
+
declare function exportObsidianCanvas(rootDir: string, outputPath: string): Promise<GraphExportResult>;
|
|
1285
1347
|
|
|
1286
1348
|
type PushDriverLike = {
|
|
1287
1349
|
session(options: {
|
|
@@ -1300,6 +1362,8 @@ type GraphPushInternalOptions = GraphPushNeo4jOptions & {
|
|
|
1300
1362
|
};
|
|
1301
1363
|
declare function pushGraphNeo4j(rootDir: string, options?: GraphPushInternalOptions): Promise<GraphPushResult>;
|
|
1302
1364
|
|
|
1365
|
+
declare function graphDiff(oldGraph: GraphArtifact, newGraph: GraphArtifact): GraphDiffResult;
|
|
1366
|
+
|
|
1303
1367
|
declare function getGitHookStatus(rootDir: string): Promise<GitHookStatus>;
|
|
1304
1368
|
declare function installGitHooks(rootDir: string): Promise<GitHookStatus>;
|
|
1305
1369
|
declare function uninstallGitHooks(rootDir: string): Promise<GitHookStatus>;
|
|
@@ -1469,4 +1533,4 @@ declare function getWatchStatus(rootDir: string): Promise<WatchStatusResult>;
|
|
|
1469
1533
|
declare function createWebSearchAdapter(id: string, config: WebSearchProviderConfig, rootDir: string): Promise<WebSearchAdapter>;
|
|
1470
1534
|
declare function getWebSearchAdapterForTask(rootDir: string, task: "deepLintProvider"): Promise<WebSearchAdapter>;
|
|
1471
1535
|
|
|
1472
|
-
export { type AddOptions, type AddResult, type AgentType, type AnalyzedTerm, type ApprovalBundleType, type ApprovalChangeType, type ApprovalDetail, type ApprovalEntry, type ApprovalEntryDetail, type ApprovalEntryLabel, type ApprovalEntryStatus, type ApprovalManifest, type ApprovalSummary, type BenchmarkArtifact, type BenchmarkOptions, type BenchmarkQuestionResult, type BenchmarkSummary, type CandidateRecord, type ChartDatum, type ChartSpec, type ClaimStatus, type CodeAnalysis, type CodeDiagnostic, type CodeImport, type CodeIndexArtifact, type CodeIndexEntry, type CodeLanguage, type CodeSymbol, type CodeSymbolKind, type CommandRoleExecutorConfig, type CompileOptions, type CompileResult, type CompileState, type DirectoryIngestResult, type DirectoryIngestSkip, type EmbeddingCacheArtifact, type EmbeddingCacheEntry, type EvidenceClass, type ExploreOptions, type ExploreResult, type ExploreStepResult, type ExtractionClaim, type ExtractionKind, type ExtractionTerm, type Freshness, type GenerationAttachment, type GenerationRequest, type GenerationResponse, type GitHookStatus, type GraphArtifact, type GraphEdge, type GraphExplainNeighbor, type GraphExplainResult, type GraphExportFormat, type GraphExportResult, type GraphHyperedge, type GraphNode, type GraphPage, type GraphPathResult, type GraphPushCounts, type GraphPushNeo4jOptions, type GraphPushResult, type GraphQueryMatch, type GraphQueryResult, type GraphReportArtifact, type GuidedSessionMode, type GuidedSourceSessionAnswers, type GuidedSourceSessionQuestion, type GuidedSourceSessionRecord, type GuidedSourceSessionStatus, type ImageGenerationRequest, type ImageGenerationResponse, type ImageVisionExtraction, type InboxImportResult, type InboxImportSkip, type IngestOptions, type InitOptions, type InputIngestResult, type InstallAgentOptions, type InstallAgentResult, type LintFinding, type LintOptions, type ManagedSourceAddOptions, type ManagedSourceAddResult, type ManagedSourceDeleteResult, type ManagedSourceKind, type ManagedSourceRecord, type ManagedSourceReloadOptions, type ManagedSourceReloadResult, type ManagedSourceStatus, type ManagedSourceSyncCounts, type ManagedSourcesArtifact, type Neo4jGraphSinkConfig, type OrchestrationConfig, type OrchestrationFinding, type OrchestrationProposal, type OrchestrationRole, type OrchestrationRoleConfig, type OrchestrationRoleResult, type OutputAsset, type OutputAssetRole, type OutputFormat, type OutputOrigin, type PageKind, type PageManager, type PageStatus, type PendingSemanticRefreshEntry, type Polarity, type ProviderAdapter, type ProviderCapability, type ProviderConfig, type ProviderRoleExecutorConfig, type ProviderType, type QueryOptions, type QueryResult, type RepoSyncResult, type ResolvedPaths, type ReviewActionResult, type RoleExecutorConfig, type SceneElement, type SceneSpec, type ScheduleController, type ScheduleJobConfig, type ScheduleStateRecord, type ScheduleTriggerConfig, type ScheduledCompileTask, type ScheduledExploreTask, type ScheduledLintTask, type ScheduledQueryTask, type ScheduledRunResult, type ScheduledTaskConfig, type SearchResult, type SourceAnalysis, type SourceAttachment, type SourceCaptureType, type SourceClaim, type SourceClass, type SourceExtractionArtifact, type SourceGuideResult, type SourceKind, type SourceManifest, type SourceRationale, type SourceReviewResult, type VaultConfig, type VaultDashboardPack, type VaultProfileConfig, type VaultProfilePreset, type WatchController, type WatchOptions, type WatchRepoSyncResult, type WatchRunRecord, type WatchStatusResult, type WebSearchAdapter, type WebSearchProviderConfig, type WebSearchProviderType, type WebSearchResult, acceptApproval, addInput, addManagedSource, agentTypeSchema, archiveCandidate, assertProviderCapability, benchmarkVault, bootstrapDemo, compileVault, createMcpServer, createProvider, createWebSearchAdapter, defaultVaultConfig, defaultVaultSchema, deleteManagedSource, explainGraphVault, exploreVault, exportGraphFormat, exportGraphHtml, getGitHookStatus, getProviderForTask, getWatchStatus, getWebSearchAdapterForTask, getWorkspaceInfo, guideManagedSource, guideSourceScope, importInbox, ingestDirectory, ingestInput, ingestInputDetailed, initVault, initWorkspace, installAgent, installConfiguredAgents, installGitHooks, lintVault, listApprovals, listCandidates, listGodNodes, listGraphHyperedges, listManagedSourceRecords, listManifests, listPages, listSchedules, listTrackedRepoRoots, loadVaultConfig, loadVaultSchema, loadVaultSchemas, pathGraphVault, promoteCandidate, providerCapabilitySchema, providerTypeSchema, pushGraphNeo4j, queryGraphVault, queryVault, readApproval, readExtractedText, readGraphReport, readPage, rejectApproval, reloadManagedSources, resolvePaths, resumeSourceSession, reviewManagedSource, reviewSourceScope, runSchedule, runWatchCycle, searchVault, serveSchedules, stageGeneratedOutputPages, startGraphServer, startMcpServer, syncTrackedRepos, syncTrackedReposForWatch, uninstallGitHooks, watchVault, webSearchProviderTypeSchema };
|
|
1536
|
+
export { type AddOptions, type AddResult, type AgentType, type AnalyzedTerm, type ApprovalBundleType, type ApprovalChangeType, type ApprovalDetail, type ApprovalEntry, type ApprovalEntryDetail, type ApprovalEntryLabel, type ApprovalEntryStatus, type ApprovalManifest, type ApprovalSummary, type BenchmarkArtifact, type BenchmarkOptions, type BenchmarkQuestionResult, type BenchmarkSummary, type CandidateRecord, type ChartDatum, type ChartSpec, type ClaimStatus, type CodeAnalysis, type CodeDiagnostic, type CodeImport, type CodeIndexArtifact, type CodeIndexEntry, type CodeLanguage, type CodeSymbol, type CodeSymbolKind, type CommandRoleExecutorConfig, type CompileOptions, type CompileResult, type CompileState, type DirectoryIngestResult, type DirectoryIngestSkip, type EmbeddingCacheArtifact, type EmbeddingCacheEntry, type EvidenceClass, type ExploreOptions, type ExploreResult, type ExploreStepResult, type ExtractionClaim, type ExtractionKind, type ExtractionTerm, type Freshness, type GenerationAttachment, type GenerationRequest, type GenerationResponse, type GitHookStatus, type GraphArtifact, type GraphDiffResult, type GraphEdge, type GraphExplainNeighbor, type GraphExplainResult, type GraphExportFormat, type GraphExportResult, type GraphHyperedge, type GraphNode, type GraphPage, type GraphPathResult, type GraphPushCounts, type GraphPushNeo4jOptions, type GraphPushResult, type GraphQueryMatch, type GraphQueryResult, type GraphReportArtifact, type GuidedSessionMode, type GuidedSourceSessionAnswers, type GuidedSourceSessionQuestion, type GuidedSourceSessionRecord, type GuidedSourceSessionStatus, type ImageGenerationRequest, type ImageGenerationResponse, type ImageVisionExtraction, type InboxImportResult, type InboxImportSkip, type IngestOptions, type InitOptions, type InputIngestResult, type InstallAgentOptions, type InstallAgentResult, type LintFinding, type LintOptions, type ManagedSourceAddOptions, type ManagedSourceAddResult, type ManagedSourceDeleteResult, type ManagedSourceKind, type ManagedSourceRecord, type ManagedSourceReloadOptions, type ManagedSourceReloadResult, type ManagedSourceStatus, type ManagedSourceSyncCounts, type ManagedSourcesArtifact, type Neo4jGraphSinkConfig, type OrchestrationConfig, type OrchestrationFinding, type OrchestrationProposal, type OrchestrationRole, type OrchestrationRoleConfig, type OrchestrationRoleResult, type OutputAsset, type OutputAssetRole, type OutputFormat, type OutputOrigin, type PageKind, type PageManager, type PageStatus, type PendingSemanticRefreshEntry, type Polarity, type ProviderAdapter, type ProviderCapability, type ProviderConfig, type ProviderRoleExecutorConfig, type ProviderType, type QueryOptions, type QueryResult, type RepoSyncResult, type ResolvedPaths, type ReviewActionResult, type RoleExecutorConfig, type SceneElement, type SceneSpec, type ScheduleController, type ScheduleJobConfig, type ScheduleStateRecord, type ScheduleTriggerConfig, type ScheduledCompileTask, type ScheduledExploreTask, type ScheduledLintTask, type ScheduledQueryTask, type ScheduledRunResult, type ScheduledTaskConfig, type SearchResult, type SourceAnalysis, type SourceAttachment, type SourceCaptureType, type SourceClaim, type SourceClass, type SourceExtractionArtifact, type SourceGuideResult, type SourceKind, type SourceManifest, type SourceRationale, type SourceReviewResult, type VaultConfig, type VaultDashboardPack, type VaultProfileConfig, type VaultProfilePreset, type WatchController, type WatchOptions, type WatchRepoSyncResult, type WatchRunRecord, type WatchStatusResult, type WebSearchAdapter, type WebSearchProviderConfig, type WebSearchProviderType, type WebSearchResult, acceptApproval, addInput, addManagedSource, agentTypeSchema, archiveCandidate, assertProviderCapability, benchmarkVault, bootstrapDemo, compileVault, createMcpServer, createProvider, createWebSearchAdapter, defaultVaultConfig, defaultVaultSchema, deleteManagedSource, explainGraphVault, exploreVault, exportGraphFormat, exportGraphHtml, exportObsidianCanvas, exportObsidianVault, getGitHookStatus, getProviderForTask, getWatchStatus, getWebSearchAdapterForTask, getWorkspaceInfo, graphDiff, guideManagedSource, guideSourceScope, importInbox, ingestDirectory, ingestInput, ingestInputDetailed, initVault, initWorkspace, installAgent, installConfiguredAgents, installGitHooks, lintVault, listApprovals, listCandidates, listGodNodes, listGraphHyperedges, listManagedSourceRecords, listManifests, listPages, listSchedules, listTrackedRepoRoots, loadVaultConfig, loadVaultSchema, loadVaultSchemas, pathGraphVault, promoteCandidate, providerCapabilitySchema, providerTypeSchema, pushGraphNeo4j, queryGraphVault, queryVault, readApproval, readExtractedText, readGraphReport, readPage, rejectApproval, reloadManagedSources, resolvePaths, resumeSourceSession, reviewManagedSource, reviewSourceScope, runSchedule, runWatchCycle, searchVault, serveSchedules, stageGeneratedOutputPages, startGraphServer, startMcpServer, syncTrackedRepos, syncTrackedReposForWatch, uninstallGitHooks, watchVault, webSearchProviderTypeSchema };
|