@swarmvaultai/engine 0.7.21 → 0.7.23

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/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;
@@ -724,6 +767,7 @@ interface WatchOptions {
724
767
  lint?: boolean;
725
768
  debounceMs?: number;
726
769
  repo?: boolean;
770
+ codeOnly?: boolean;
727
771
  }
728
772
  interface PendingSemanticRefreshEntry {
729
773
  id: string;
@@ -977,6 +1021,7 @@ interface SceneSpec {
977
1021
  interface GraphExportResult {
978
1022
  format: GraphExportFormat;
979
1023
  outputPath: string;
1024
+ fileCount?: number;
980
1025
  }
981
1026
  interface Neo4jGraphSinkConfig {
982
1027
  uri: string;
@@ -1168,6 +1213,22 @@ interface GraphReportArtifact {
1168
1213
  claimB: string;
1169
1214
  confidenceDelta: number;
1170
1215
  }>;
1216
+ communityCohesion?: Array<{
1217
+ id: string;
1218
+ label: string;
1219
+ nodeCount: number;
1220
+ cohesion: number;
1221
+ }>;
1222
+ knowledgeGaps?: {
1223
+ isolatedNodes: Array<{
1224
+ nodeId: string;
1225
+ label: string;
1226
+ type: GraphNode["type"];
1227
+ }>;
1228
+ thinCommunityCount: number;
1229
+ ambiguousEdgeRatio: number;
1230
+ warnings: string[];
1231
+ };
1171
1232
  }
1172
1233
  interface ScheduledCompileTask {
1173
1234
  type: "compile";
@@ -1281,7 +1342,9 @@ declare function initWorkspace(rootDir: string, options?: {
1281
1342
  paths: ResolvedPaths;
1282
1343
  }>;
1283
1344
 
1284
- declare function exportGraphFormat(rootDir: string, format: Exclude<GraphExportFormat, "html">, outputPath: string): Promise<GraphExportResult>;
1345
+ declare function exportGraphFormat(rootDir: string, format: Exclude<GraphExportFormat, "html" | "obsidian" | "canvas">, outputPath: string): Promise<GraphExportResult>;
1346
+ declare function exportObsidianVault(rootDir: string, outputDir: string): Promise<GraphExportResult>;
1347
+ declare function exportObsidianCanvas(rootDir: string, outputPath: string): Promise<GraphExportResult>;
1285
1348
 
1286
1349
  type PushDriverLike = {
1287
1350
  session(options: {
@@ -1300,6 +1363,8 @@ type GraphPushInternalOptions = GraphPushNeo4jOptions & {
1300
1363
  };
1301
1364
  declare function pushGraphNeo4j(rootDir: string, options?: GraphPushInternalOptions): Promise<GraphPushResult>;
1302
1365
 
1366
+ declare function graphDiff(oldGraph: GraphArtifact, newGraph: GraphArtifact): GraphDiffResult;
1367
+
1303
1368
  declare function getGitHookStatus(rootDir: string): Promise<GitHookStatus>;
1304
1369
  declare function installGitHooks(rootDir: string): Promise<GitHookStatus>;
1305
1370
  declare function uninstallGitHooks(rootDir: string): Promise<GitHookStatus>;
@@ -1469,4 +1534,4 @@ declare function getWatchStatus(rootDir: string): Promise<WatchStatusResult>;
1469
1534
  declare function createWebSearchAdapter(id: string, config: WebSearchProviderConfig, rootDir: string): Promise<WebSearchAdapter>;
1470
1535
  declare function getWebSearchAdapterForTask(rootDir: string, task: "deepLintProvider"): Promise<WebSearchAdapter>;
1471
1536
 
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 };
1537
+ 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 };