@swarmvaultai/engine 0.7.2 → 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/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";
@@ -156,6 +159,7 @@ interface VaultProfileConfig {
156
159
  guidedSessionMode: GuidedSessionMode;
157
160
  dataviewBlocks: boolean;
158
161
  guidedIngestDefault: boolean;
162
+ deepLintDefault: boolean;
159
163
  }
160
164
  interface VaultConfig {
161
165
  workspace: {
@@ -592,6 +596,45 @@ interface GraphExplainResult {
592
596
  hyperedges: GraphHyperedge[];
593
597
  summary: string;
594
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
+ }
595
638
  interface ApprovalEntry {
596
639
  pageId: string;
597
640
  title: string;
@@ -646,6 +689,7 @@ interface CandidateRecord {
646
689
  }
647
690
  interface CompileOptions {
648
691
  approve?: boolean;
692
+ codeOnly?: boolean;
649
693
  }
650
694
  interface InitOptions {
651
695
  obsidian?: boolean;
@@ -976,6 +1020,7 @@ interface SceneSpec {
976
1020
  interface GraphExportResult {
977
1021
  format: GraphExportFormat;
978
1022
  outputPath: string;
1023
+ fileCount?: number;
979
1024
  }
980
1025
  interface Neo4jGraphSinkConfig {
981
1026
  uri: string;
@@ -1167,6 +1212,22 @@ interface GraphReportArtifact {
1167
1212
  claimB: string;
1168
1213
  confidenceDelta: number;
1169
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
+ };
1170
1231
  }
1171
1232
  interface ScheduledCompileTask {
1172
1233
  type: "compile";
@@ -1280,7 +1341,9 @@ declare function initWorkspace(rootDir: string, options?: {
1280
1341
  paths: ResolvedPaths;
1281
1342
  }>;
1282
1343
 
1283
- 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>;
1284
1347
 
1285
1348
  type PushDriverLike = {
1286
1349
  session(options: {
@@ -1299,6 +1362,8 @@ type GraphPushInternalOptions = GraphPushNeo4jOptions & {
1299
1362
  };
1300
1363
  declare function pushGraphNeo4j(rootDir: string, options?: GraphPushInternalOptions): Promise<GraphPushResult>;
1301
1364
 
1365
+ declare function graphDiff(oldGraph: GraphArtifact, newGraph: GraphArtifact): GraphDiffResult;
1366
+
1302
1367
  declare function getGitHookStatus(rootDir: string): Promise<GitHookStatus>;
1303
1368
  declare function installGitHooks(rootDir: string): Promise<GitHookStatus>;
1304
1369
  declare function uninstallGitHooks(rootDir: string): Promise<GitHookStatus>;
@@ -1468,4 +1533,4 @@ declare function getWatchStatus(rootDir: string): Promise<WatchStatusResult>;
1468
1533
  declare function createWebSearchAdapter(id: string, config: WebSearchProviderConfig, rootDir: string): Promise<WebSearchAdapter>;
1469
1534
  declare function getWebSearchAdapterForTask(rootDir: string, task: "deepLintProvider"): Promise<WebSearchAdapter>;
1470
1535
 
1471
- 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 };