@swarmvaultai/engine 0.1.29 → 0.1.30
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 +13 -0
- package/dist/chunk-IAEYFTUS.js +1159 -0
- package/dist/index.d.ts +60 -1
- package/dist/index.js +994 -673
- 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: {
|
|
@@ -811,6 +814,45 @@ interface GraphExportResult {
|
|
|
811
814
|
format: GraphExportFormat;
|
|
812
815
|
outputPath: string;
|
|
813
816
|
}
|
|
817
|
+
interface Neo4jGraphSinkConfig {
|
|
818
|
+
uri: string;
|
|
819
|
+
username: string;
|
|
820
|
+
passwordEnv: string;
|
|
821
|
+
database?: string;
|
|
822
|
+
vaultId?: string;
|
|
823
|
+
includeClasses?: SourceClass[];
|
|
824
|
+
batchSize?: number;
|
|
825
|
+
}
|
|
826
|
+
interface GraphPushNeo4jOptions {
|
|
827
|
+
uri?: string;
|
|
828
|
+
username?: string;
|
|
829
|
+
passwordEnv?: string;
|
|
830
|
+
database?: string;
|
|
831
|
+
vaultId?: string;
|
|
832
|
+
includeClasses?: SourceClass[];
|
|
833
|
+
batchSize?: number;
|
|
834
|
+
dryRun?: boolean;
|
|
835
|
+
}
|
|
836
|
+
interface GraphPushCounts {
|
|
837
|
+
sources: number;
|
|
838
|
+
pages: number;
|
|
839
|
+
nodes: number;
|
|
840
|
+
relationships: number;
|
|
841
|
+
hyperedges: number;
|
|
842
|
+
groupMembers: number;
|
|
843
|
+
}
|
|
844
|
+
interface GraphPushResult {
|
|
845
|
+
sink: "neo4j";
|
|
846
|
+
uri: string;
|
|
847
|
+
database: string;
|
|
848
|
+
vaultId: string;
|
|
849
|
+
dryRun: boolean;
|
|
850
|
+
graphHash: string;
|
|
851
|
+
includedSourceClasses: SourceClass[];
|
|
852
|
+
counts: GraphPushCounts;
|
|
853
|
+
skipped: GraphPushCounts;
|
|
854
|
+
warnings: string[];
|
|
855
|
+
}
|
|
814
856
|
interface AddOptions extends IngestOptions {
|
|
815
857
|
author?: string;
|
|
816
858
|
contributor?: string;
|
|
@@ -1063,6 +1105,23 @@ declare function initWorkspace(rootDir: string): Promise<{
|
|
|
1063
1105
|
|
|
1064
1106
|
declare function exportGraphFormat(rootDir: string, format: Exclude<GraphExportFormat, "html">, outputPath: string): Promise<GraphExportResult>;
|
|
1065
1107
|
|
|
1108
|
+
type PushDriverLike = {
|
|
1109
|
+
session(options: {
|
|
1110
|
+
database: string;
|
|
1111
|
+
}): {
|
|
1112
|
+
run(query: string, params?: Record<string, unknown>): Promise<unknown>;
|
|
1113
|
+
executeWrite<T>(work: (tx: {
|
|
1114
|
+
run(query: string, params?: Record<string, unknown>): Promise<unknown>;
|
|
1115
|
+
}) => Promise<T>): Promise<T>;
|
|
1116
|
+
close(): Promise<void>;
|
|
1117
|
+
};
|
|
1118
|
+
close(): Promise<void>;
|
|
1119
|
+
};
|
|
1120
|
+
type GraphPushInternalOptions = GraphPushNeo4jOptions & {
|
|
1121
|
+
driverFactory?: (uri: string, username: string, password: string) => PushDriverLike;
|
|
1122
|
+
};
|
|
1123
|
+
declare function pushGraphNeo4j(rootDir: string, options?: GraphPushInternalOptions): Promise<GraphPushResult>;
|
|
1124
|
+
|
|
1066
1125
|
declare function getGitHookStatus(rootDir: string): Promise<GitHookStatus>;
|
|
1067
1126
|
declare function installGitHooks(rootDir: string): Promise<GitHookStatus>;
|
|
1068
1127
|
declare function uninstallGitHooks(rootDir: string): Promise<GitHookStatus>;
|
|
@@ -1180,4 +1239,4 @@ declare function getWatchStatus(rootDir: string): Promise<WatchStatusResult>;
|
|
|
1180
1239
|
declare function createWebSearchAdapter(id: string, config: WebSearchProviderConfig, rootDir: string): Promise<WebSearchAdapter>;
|
|
1181
1240
|
declare function getWebSearchAdapterForTask(rootDir: string, task: "deepLintProvider"): Promise<WebSearchAdapter>;
|
|
1182
1241
|
|
|
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 };
|
|
1242
|
+
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 };
|