@swarmvaultai/engine 0.3.0 → 0.4.0
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 +39 -4
- package/dist/index.js +1457 -132
- package/package.json +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,10 +54,10 @@ type PageStatus = "draft" | "candidate" | "active" | "archived";
|
|
|
54
54
|
type PageManager = "system" | "human";
|
|
55
55
|
type ApprovalEntryStatus = "pending" | "accepted" | "rejected";
|
|
56
56
|
type ApprovalChangeType = "create" | "update" | "delete" | "promote";
|
|
57
|
-
type SourceKind = "markdown" | "text" | "pdf" | "image" | "html" | "docx" | "epub" | "csv" | "xlsx" | "pptx" | "binary" | "code";
|
|
57
|
+
type SourceKind = "markdown" | "text" | "pdf" | "image" | "html" | "docx" | "epub" | "csv" | "xlsx" | "pptx" | "transcript" | "chat_export" | "email" | "calendar" | "binary" | "code";
|
|
58
58
|
type SourceCaptureType = "arxiv" | "doi" | "tweet" | "article" | "url";
|
|
59
59
|
type SourceClass = "first_party" | "third_party" | "resource" | "generated";
|
|
60
|
-
type ManagedSourceKind = "directory" | "github_repo" | "crawl_url";
|
|
60
|
+
type ManagedSourceKind = "directory" | "file" | "github_repo" | "crawl_url";
|
|
61
61
|
type ManagedSourceStatus = "ready" | "missing" | "error";
|
|
62
62
|
type CodeLanguage = "javascript" | "jsx" | "typescript" | "tsx" | "python" | "go" | "rust" | "java" | "kotlin" | "scala" | "lua" | "zig" | "csharp" | "c" | "cpp" | "php" | "ruby" | "powershell";
|
|
63
63
|
type CodeSymbolKind = "function" | "class" | "interface" | "type_alias" | "enum" | "variable" | "struct" | "trait";
|
|
@@ -231,7 +231,7 @@ interface SourceAttachment {
|
|
|
231
231
|
mimeType: string;
|
|
232
232
|
originalPath?: string;
|
|
233
233
|
}
|
|
234
|
-
type ExtractionKind = "plain_text" | "html_readability" | "pdf_text" | "docx_text" | "epub_text" | "csv_text" | "xlsx_text" | "pptx_text" | "image_vision";
|
|
234
|
+
type ExtractionKind = "plain_text" | "html_readability" | "pdf_text" | "docx_text" | "epub_text" | "csv_text" | "xlsx_text" | "pptx_text" | "transcript_text" | "chat_export_text" | "email_text" | "calendar_text" | "image_vision";
|
|
235
235
|
interface ExtractionTerm {
|
|
236
236
|
name: string;
|
|
237
237
|
description: string;
|
|
@@ -762,6 +762,7 @@ interface InstallAgentResult {
|
|
|
762
762
|
interface ManagedSourceAddOptions {
|
|
763
763
|
compile?: boolean;
|
|
764
764
|
brief?: boolean;
|
|
765
|
+
review?: boolean;
|
|
765
766
|
maxPages?: number;
|
|
766
767
|
maxDepth?: number;
|
|
767
768
|
}
|
|
@@ -773,15 +774,25 @@ interface ManagedSourceAddResult {
|
|
|
773
774
|
source: ManagedSourceRecord;
|
|
774
775
|
compile?: CompileResult;
|
|
775
776
|
briefGenerated: boolean;
|
|
777
|
+
review?: SourceReviewResult;
|
|
776
778
|
}
|
|
777
779
|
interface ManagedSourceReloadResult {
|
|
778
780
|
sources: ManagedSourceRecord[];
|
|
779
781
|
compile?: CompileResult;
|
|
780
782
|
briefPaths: string[];
|
|
783
|
+
reviews: SourceReviewResult[];
|
|
781
784
|
}
|
|
782
785
|
interface ManagedSourceDeleteResult {
|
|
783
786
|
removed: ManagedSourceRecord;
|
|
784
787
|
}
|
|
788
|
+
interface SourceReviewResult {
|
|
789
|
+
sourceId: string;
|
|
790
|
+
pageId: string;
|
|
791
|
+
reviewPath: string;
|
|
792
|
+
staged: boolean;
|
|
793
|
+
approvalId?: string;
|
|
794
|
+
approvalDir?: string;
|
|
795
|
+
}
|
|
785
796
|
interface GitHookStatus {
|
|
786
797
|
repoRoot: string | null;
|
|
787
798
|
postCommit: "installed" | "not_installed" | "other_content";
|
|
@@ -1259,11 +1270,35 @@ interface LoadedVaultSchemas {
|
|
|
1259
1270
|
declare function loadVaultSchemas(rootDir: string): Promise<LoadedVaultSchemas>;
|
|
1260
1271
|
declare function loadVaultSchema(rootDir: string): Promise<VaultSchema>;
|
|
1261
1272
|
|
|
1273
|
+
type SourceReviewScope = {
|
|
1274
|
+
id: string;
|
|
1275
|
+
title: string;
|
|
1276
|
+
sourceIds: string[];
|
|
1277
|
+
};
|
|
1278
|
+
declare function reviewSourceScope(rootDir: string, scope: SourceReviewScope): Promise<SourceReviewResult>;
|
|
1279
|
+
declare function reviewManagedSource(rootDir: string, id: string): Promise<SourceReviewResult>;
|
|
1262
1280
|
declare function listManagedSourceRecords(rootDir: string): Promise<ManagedSourceRecord[]>;
|
|
1263
1281
|
declare function addManagedSource(rootDir: string, input: string, options?: ManagedSourceAddOptions): Promise<ManagedSourceAddResult>;
|
|
1264
1282
|
declare function reloadManagedSources(rootDir: string, options?: ManagedSourceReloadOptions): Promise<ManagedSourceReloadResult>;
|
|
1265
1283
|
declare function deleteManagedSource(rootDir: string, id: string): Promise<ManagedSourceDeleteResult>;
|
|
1266
1284
|
|
|
1285
|
+
type GeneratedOutputArtifacts = {
|
|
1286
|
+
answer: string;
|
|
1287
|
+
outputAssets: OutputAsset[];
|
|
1288
|
+
assetFiles: Array<{
|
|
1289
|
+
relativePath: string;
|
|
1290
|
+
content: string | Uint8Array;
|
|
1291
|
+
encoding?: BufferEncoding;
|
|
1292
|
+
}>;
|
|
1293
|
+
};
|
|
1294
|
+
declare function stageGeneratedOutputPages(rootDir: string, stagedPages: Array<{
|
|
1295
|
+
page: GraphPage;
|
|
1296
|
+
content: string;
|
|
1297
|
+
assetFiles?: GeneratedOutputArtifacts["assetFiles"];
|
|
1298
|
+
}>): Promise<{
|
|
1299
|
+
approvalId: string;
|
|
1300
|
+
approvalDir: string;
|
|
1301
|
+
}>;
|
|
1267
1302
|
declare function listApprovals(rootDir: string): Promise<ApprovalSummary[]>;
|
|
1268
1303
|
declare function readApproval(rootDir: string, approvalId: string, options?: {
|
|
1269
1304
|
diff?: boolean;
|
|
@@ -1344,4 +1379,4 @@ declare function getWatchStatus(rootDir: string): Promise<WatchStatusResult>;
|
|
|
1344
1379
|
declare function createWebSearchAdapter(id: string, config: WebSearchProviderConfig, rootDir: string): Promise<WebSearchAdapter>;
|
|
1345
1380
|
declare function getWebSearchAdapterForTask(rootDir: string, task: "deepLintProvider"): Promise<WebSearchAdapter>;
|
|
1346
1381
|
|
|
1347
|
-
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 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 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, addManagedSource, agentTypeSchema, archiveCandidate, assertProviderCapability, benchmarkVault, bootstrapDemo, compileVault, createMcpServer, createProvider, createWebSearchAdapter, defaultVaultConfig, defaultVaultSchema, deleteManagedSource, explainGraphVault, exploreVault, exportGraphFormat, exportGraphHtml, getGitHookStatus, getProviderForTask, getWatchStatus, getWebSearchAdapterForTask, getWorkspaceInfo, 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, runSchedule, runWatchCycle, searchVault, serveSchedules, startGraphServer, startMcpServer, syncTrackedRepos, syncTrackedReposForWatch, uninstallGitHooks, watchVault, webSearchProviderTypeSchema };
|
|
1382
|
+
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 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 SourceKind, type SourceManifest, type SourceRationale, type SourceReviewResult, type VaultConfig, 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, 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, reviewManagedSource, reviewSourceScope, runSchedule, runWatchCycle, searchVault, serveSchedules, stageGeneratedOutputPages, startGraphServer, startMcpServer, syncTrackedRepos, syncTrackedReposForWatch, uninstallGitHooks, watchVault, webSearchProviderTypeSchema };
|