@swarmvaultai/engine 0.1.29 → 0.1.31
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 +15 -1
- package/dist/chunk-IAEYFTUS.js +1159 -0
- package/dist/index.d.ts +75 -2
- package/dist/index.js +1209 -699
- package/dist/registry-G7NSRYCO.js +12 -0
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -178,6 +178,9 @@ interface VaultConfig {
|
|
|
178
178
|
classifyGlobs?: Partial<Record<SourceClass, string[]>>;
|
|
179
179
|
extractClasses?: SourceClass[];
|
|
180
180
|
};
|
|
181
|
+
graphSinks?: {
|
|
182
|
+
neo4j?: Neo4jGraphSinkConfig;
|
|
183
|
+
};
|
|
181
184
|
webSearch?: {
|
|
182
185
|
providers: Record<string, WebSearchProviderConfig>;
|
|
183
186
|
tasks: {
|
|
@@ -383,6 +386,7 @@ interface SourceAnalysis {
|
|
|
383
386
|
entities: AnalyzedTerm[];
|
|
384
387
|
claims: SourceClaim[];
|
|
385
388
|
questions: string[];
|
|
389
|
+
tags: string[];
|
|
386
390
|
rationales: SourceRationale[];
|
|
387
391
|
code?: CodeAnalysis;
|
|
388
392
|
producedAt: string;
|
|
@@ -404,6 +408,7 @@ interface GraphNode {
|
|
|
404
408
|
degree?: number;
|
|
405
409
|
bridgeScore?: number;
|
|
406
410
|
isGodNode?: boolean;
|
|
411
|
+
tags?: string[];
|
|
407
412
|
}
|
|
408
413
|
interface GraphEdge {
|
|
409
414
|
id: string;
|
|
@@ -546,6 +551,8 @@ interface ApprovalSummary {
|
|
|
546
551
|
interface ApprovalEntryDetail extends ApprovalEntry {
|
|
547
552
|
currentContent?: string;
|
|
548
553
|
stagedContent?: string;
|
|
554
|
+
changeSummary?: string;
|
|
555
|
+
diff?: string;
|
|
549
556
|
}
|
|
550
557
|
interface ApprovalDetail extends ApprovalSummary {
|
|
551
558
|
entries: ApprovalEntryDetail[];
|
|
@@ -728,6 +735,7 @@ interface CompileState {
|
|
|
728
735
|
interface LintOptions {
|
|
729
736
|
deep?: boolean;
|
|
730
737
|
web?: boolean;
|
|
738
|
+
conflicts?: boolean;
|
|
731
739
|
}
|
|
732
740
|
interface ExploreOptions {
|
|
733
741
|
question: string;
|
|
@@ -811,6 +819,45 @@ interface GraphExportResult {
|
|
|
811
819
|
format: GraphExportFormat;
|
|
812
820
|
outputPath: string;
|
|
813
821
|
}
|
|
822
|
+
interface Neo4jGraphSinkConfig {
|
|
823
|
+
uri: string;
|
|
824
|
+
username: string;
|
|
825
|
+
passwordEnv: string;
|
|
826
|
+
database?: string;
|
|
827
|
+
vaultId?: string;
|
|
828
|
+
includeClasses?: SourceClass[];
|
|
829
|
+
batchSize?: number;
|
|
830
|
+
}
|
|
831
|
+
interface GraphPushNeo4jOptions {
|
|
832
|
+
uri?: string;
|
|
833
|
+
username?: string;
|
|
834
|
+
passwordEnv?: string;
|
|
835
|
+
database?: string;
|
|
836
|
+
vaultId?: string;
|
|
837
|
+
includeClasses?: SourceClass[];
|
|
838
|
+
batchSize?: number;
|
|
839
|
+
dryRun?: boolean;
|
|
840
|
+
}
|
|
841
|
+
interface GraphPushCounts {
|
|
842
|
+
sources: number;
|
|
843
|
+
pages: number;
|
|
844
|
+
nodes: number;
|
|
845
|
+
relationships: number;
|
|
846
|
+
hyperedges: number;
|
|
847
|
+
groupMembers: number;
|
|
848
|
+
}
|
|
849
|
+
interface GraphPushResult {
|
|
850
|
+
sink: "neo4j";
|
|
851
|
+
uri: string;
|
|
852
|
+
database: string;
|
|
853
|
+
vaultId: string;
|
|
854
|
+
dryRun: boolean;
|
|
855
|
+
graphHash: string;
|
|
856
|
+
includedSourceClasses: SourceClass[];
|
|
857
|
+
counts: GraphPushCounts;
|
|
858
|
+
skipped: GraphPushCounts;
|
|
859
|
+
warnings: string[];
|
|
860
|
+
}
|
|
814
861
|
interface AddOptions extends IngestOptions {
|
|
815
862
|
author?: string;
|
|
816
863
|
contributor?: string;
|
|
@@ -950,6 +997,13 @@ interface GraphReportArtifact {
|
|
|
950
997
|
sourceType: SourceCaptureType;
|
|
951
998
|
updatedAt: string;
|
|
952
999
|
}>;
|
|
1000
|
+
contradictions: Array<{
|
|
1001
|
+
sourceIdA: string;
|
|
1002
|
+
sourceIdB: string;
|
|
1003
|
+
claimA: string;
|
|
1004
|
+
claimB: string;
|
|
1005
|
+
confidenceDelta: number;
|
|
1006
|
+
}>;
|
|
953
1007
|
}
|
|
954
1008
|
interface ScheduledCompileTask {
|
|
955
1009
|
type: "compile";
|
|
@@ -1063,6 +1117,23 @@ declare function initWorkspace(rootDir: string): Promise<{
|
|
|
1063
1117
|
|
|
1064
1118
|
declare function exportGraphFormat(rootDir: string, format: Exclude<GraphExportFormat, "html">, outputPath: string): Promise<GraphExportResult>;
|
|
1065
1119
|
|
|
1120
|
+
type PushDriverLike = {
|
|
1121
|
+
session(options: {
|
|
1122
|
+
database: string;
|
|
1123
|
+
}): {
|
|
1124
|
+
run(query: string, params?: Record<string, unknown>): Promise<unknown>;
|
|
1125
|
+
executeWrite<T>(work: (tx: {
|
|
1126
|
+
run(query: string, params?: Record<string, unknown>): Promise<unknown>;
|
|
1127
|
+
}) => Promise<T>): Promise<T>;
|
|
1128
|
+
close(): Promise<void>;
|
|
1129
|
+
};
|
|
1130
|
+
close(): Promise<void>;
|
|
1131
|
+
};
|
|
1132
|
+
type GraphPushInternalOptions = GraphPushNeo4jOptions & {
|
|
1133
|
+
driverFactory?: (uri: string, username: string, password: string) => PushDriverLike;
|
|
1134
|
+
};
|
|
1135
|
+
declare function pushGraphNeo4j(rootDir: string, options?: GraphPushInternalOptions): Promise<GraphPushResult>;
|
|
1136
|
+
|
|
1066
1137
|
declare function getGitHookStatus(rootDir: string): Promise<GitHookStatus>;
|
|
1067
1138
|
declare function installGitHooks(rootDir: string): Promise<GitHookStatus>;
|
|
1068
1139
|
declare function uninstallGitHooks(rootDir: string): Promise<GitHookStatus>;
|
|
@@ -1107,7 +1178,9 @@ declare function loadVaultSchemas(rootDir: string): Promise<LoadedVaultSchemas>;
|
|
|
1107
1178
|
declare function loadVaultSchema(rootDir: string): Promise<VaultSchema>;
|
|
1108
1179
|
|
|
1109
1180
|
declare function listApprovals(rootDir: string): Promise<ApprovalSummary[]>;
|
|
1110
|
-
declare function readApproval(rootDir: string, approvalId: string
|
|
1181
|
+
declare function readApproval(rootDir: string, approvalId: string, options?: {
|
|
1182
|
+
diff?: boolean;
|
|
1183
|
+
}): Promise<ApprovalDetail>;
|
|
1111
1184
|
declare function acceptApproval(rootDir: string, approvalId: string, targets?: string[]): Promise<ReviewActionResult>;
|
|
1112
1185
|
declare function rejectApproval(rootDir: string, approvalId: string, targets?: string[]): Promise<ReviewActionResult>;
|
|
1113
1186
|
declare function listCandidates(rootDir: string): Promise<CandidateRecord[]>;
|
|
@@ -1180,4 +1253,4 @@ declare function getWatchStatus(rootDir: string): Promise<WatchStatusResult>;
|
|
|
1180
1253
|
declare function createWebSearchAdapter(id: string, config: WebSearchProviderConfig, rootDir: string): Promise<WebSearchAdapter>;
|
|
1181
1254
|
declare function getWebSearchAdapterForTask(rootDir: string, task: "deepLintProvider"): Promise<WebSearchAdapter>;
|
|
1182
1255
|
|
|
1183
|
-
export { type AddOptions, type AddResult, type AgentType, type AnalyzedTerm, type ApprovalChangeType, type ApprovalDetail, type ApprovalEntry, type ApprovalEntryDetail, 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 GraphQueryMatch, type GraphQueryResult, type GraphReportArtifact, type ImageGenerationRequest, type ImageGenerationResponse, type ImageVisionExtraction, type InboxImportResult, type InboxImportSkip, type IngestOptions, type InitOptions, type InstallAgentOptions, type InstallAgentResult, type LintFinding, type LintOptions, 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 SourceKind, type SourceManifest, type SourceRationale, type VaultConfig, type WatchController, type WatchOptions, type WatchRepoSyncResult, type WatchRunRecord, type WatchStatusResult, type WebSearchAdapter, type WebSearchProviderConfig, type WebSearchProviderType, type WebSearchResult, acceptApproval, addInput, agentTypeSchema, archiveCandidate, assertProviderCapability, benchmarkVault, bootstrapDemo, compileVault, createMcpServer, createProvider, createWebSearchAdapter, defaultVaultConfig, defaultVaultSchema, explainGraphVault, exploreVault, exportGraphFormat, exportGraphHtml, getGitHookStatus, getProviderForTask, getWatchStatus, getWebSearchAdapterForTask, getWorkspaceInfo, importInbox, ingestDirectory, ingestInput, initVault, initWorkspace, installAgent, installConfiguredAgents, installGitHooks, lintVault, listApprovals, listCandidates, listGodNodes, listGraphHyperedges, listManifests, listPages, listSchedules, listTrackedRepoRoots, loadVaultConfig, loadVaultSchema, loadVaultSchemas, pathGraphVault, promoteCandidate, providerCapabilitySchema, providerTypeSchema, queryGraphVault, queryVault, readApproval, readExtractedText, readGraphReport, readPage, rejectApproval, resolvePaths, runSchedule, runWatchCycle, searchVault, serveSchedules, startGraphServer, startMcpServer, syncTrackedRepos, syncTrackedReposForWatch, uninstallGitHooks, watchVault, webSearchProviderTypeSchema };
|
|
1256
|
+
export { type AddOptions, type AddResult, type AgentType, type AnalyzedTerm, type ApprovalChangeType, type ApprovalDetail, type ApprovalEntry, type ApprovalEntryDetail, 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 ImageGenerationRequest, type ImageGenerationResponse, type ImageVisionExtraction, type InboxImportResult, type InboxImportSkip, type IngestOptions, type InitOptions, type InstallAgentOptions, type InstallAgentResult, type LintFinding, type LintOptions, 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 SourceKind, type SourceManifest, type SourceRationale, type VaultConfig, type WatchController, type WatchOptions, type WatchRepoSyncResult, type WatchRunRecord, type WatchStatusResult, type WebSearchAdapter, type WebSearchProviderConfig, type WebSearchProviderType, type WebSearchResult, acceptApproval, addInput, agentTypeSchema, archiveCandidate, assertProviderCapability, benchmarkVault, bootstrapDemo, compileVault, createMcpServer, createProvider, createWebSearchAdapter, defaultVaultConfig, defaultVaultSchema, explainGraphVault, exploreVault, exportGraphFormat, exportGraphHtml, getGitHookStatus, getProviderForTask, getWatchStatus, getWebSearchAdapterForTask, getWorkspaceInfo, importInbox, ingestDirectory, ingestInput, initVault, initWorkspace, installAgent, installConfiguredAgents, installGitHooks, lintVault, listApprovals, listCandidates, listGodNodes, listGraphHyperedges, listManifests, listPages, listSchedules, listTrackedRepoRoots, loadVaultConfig, loadVaultSchema, loadVaultSchemas, pathGraphVault, promoteCandidate, providerCapabilitySchema, providerTypeSchema, pushGraphNeo4j, queryGraphVault, queryVault, readApproval, readExtractedText, readGraphReport, readPage, rejectApproval, resolvePaths, runSchedule, runWatchCycle, searchVault, serveSchedules, startGraphServer, startMcpServer, syncTrackedRepos, syncTrackedReposForWatch, uninstallGitHooks, watchVault, webSearchProviderTypeSchema };
|