@swarmvaultai/engine 0.3.0 → 0.5.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/chunk-B3FC4J3P.js +1214 -0
- package/dist/index.d.ts +73 -6
- package/dist/index.js +1941 -149
- package/dist/registry-KVJAO5DF.js +12 -0
- package/package.json +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,10 +54,12 @@ 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
|
|
57
|
+
type ApprovalBundleType = "compile" | "generated_output" | "source_review" | "guided_source";
|
|
58
|
+
type ApprovalEntryLabel = "source-brief" | "source-review" | "source-guide" | "guided-update";
|
|
59
|
+
type SourceKind = "markdown" | "text" | "pdf" | "image" | "html" | "docx" | "epub" | "csv" | "xlsx" | "pptx" | "transcript" | "chat_export" | "email" | "calendar" | "binary" | "code";
|
|
58
60
|
type SourceCaptureType = "arxiv" | "doi" | "tweet" | "article" | "url";
|
|
59
61
|
type SourceClass = "first_party" | "third_party" | "resource" | "generated";
|
|
60
|
-
type ManagedSourceKind = "directory" | "github_repo" | "crawl_url";
|
|
62
|
+
type ManagedSourceKind = "directory" | "file" | "github_repo" | "crawl_url";
|
|
61
63
|
type ManagedSourceStatus = "ready" | "missing" | "error";
|
|
62
64
|
type CodeLanguage = "javascript" | "jsx" | "typescript" | "tsx" | "python" | "go" | "rust" | "java" | "kotlin" | "scala" | "lua" | "zig" | "csharp" | "c" | "cpp" | "php" | "ruby" | "powershell";
|
|
63
65
|
type CodeSymbolKind = "function" | "class" | "interface" | "type_alias" | "enum" | "variable" | "struct" | "trait";
|
|
@@ -231,7 +233,7 @@ interface SourceAttachment {
|
|
|
231
233
|
mimeType: string;
|
|
232
234
|
originalPath?: string;
|
|
233
235
|
}
|
|
234
|
-
type ExtractionKind = "plain_text" | "html_readability" | "pdf_text" | "docx_text" | "epub_text" | "csv_text" | "xlsx_text" | "pptx_text" | "image_vision";
|
|
236
|
+
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
237
|
interface ExtractionTerm {
|
|
236
238
|
name: string;
|
|
237
239
|
description: string;
|
|
@@ -585,15 +587,20 @@ interface ApprovalEntry {
|
|
|
585
587
|
sourceIds: string[];
|
|
586
588
|
nextPath?: string;
|
|
587
589
|
previousPath?: string;
|
|
590
|
+
label?: ApprovalEntryLabel;
|
|
588
591
|
}
|
|
589
592
|
interface ApprovalManifest {
|
|
590
593
|
approvalId: string;
|
|
591
594
|
createdAt: string;
|
|
595
|
+
bundleType?: ApprovalBundleType;
|
|
596
|
+
title?: string;
|
|
592
597
|
entries: ApprovalEntry[];
|
|
593
598
|
}
|
|
594
599
|
interface ApprovalSummary {
|
|
595
600
|
approvalId: string;
|
|
596
601
|
createdAt: string;
|
|
602
|
+
bundleType?: ApprovalBundleType;
|
|
603
|
+
title?: string;
|
|
597
604
|
entryCount: number;
|
|
598
605
|
pendingCount: number;
|
|
599
606
|
acceptedCount: number;
|
|
@@ -626,6 +633,7 @@ interface CompileOptions {
|
|
|
626
633
|
}
|
|
627
634
|
interface InitOptions {
|
|
628
635
|
obsidian?: boolean;
|
|
636
|
+
profile?: "default" | "personal-research";
|
|
629
637
|
}
|
|
630
638
|
interface CompileResult {
|
|
631
639
|
graphPath: string;
|
|
@@ -762,6 +770,8 @@ interface InstallAgentResult {
|
|
|
762
770
|
interface ManagedSourceAddOptions {
|
|
763
771
|
compile?: boolean;
|
|
764
772
|
brief?: boolean;
|
|
773
|
+
review?: boolean;
|
|
774
|
+
guide?: boolean;
|
|
765
775
|
maxPages?: number;
|
|
766
776
|
maxDepth?: number;
|
|
767
777
|
}
|
|
@@ -773,15 +783,38 @@ interface ManagedSourceAddResult {
|
|
|
773
783
|
source: ManagedSourceRecord;
|
|
774
784
|
compile?: CompileResult;
|
|
775
785
|
briefGenerated: boolean;
|
|
786
|
+
review?: SourceReviewResult;
|
|
787
|
+
guide?: SourceGuideResult;
|
|
776
788
|
}
|
|
777
789
|
interface ManagedSourceReloadResult {
|
|
778
790
|
sources: ManagedSourceRecord[];
|
|
779
791
|
compile?: CompileResult;
|
|
780
792
|
briefPaths: string[];
|
|
793
|
+
reviews: SourceReviewResult[];
|
|
794
|
+
guides: SourceGuideResult[];
|
|
781
795
|
}
|
|
782
796
|
interface ManagedSourceDeleteResult {
|
|
783
797
|
removed: ManagedSourceRecord;
|
|
784
798
|
}
|
|
799
|
+
interface SourceReviewResult {
|
|
800
|
+
sourceId: string;
|
|
801
|
+
pageId: string;
|
|
802
|
+
reviewPath: string;
|
|
803
|
+
staged: boolean;
|
|
804
|
+
approvalId?: string;
|
|
805
|
+
approvalDir?: string;
|
|
806
|
+
}
|
|
807
|
+
interface SourceGuideResult {
|
|
808
|
+
sourceId: string;
|
|
809
|
+
pageId: string;
|
|
810
|
+
guidePath: string;
|
|
811
|
+
reviewPageId: string;
|
|
812
|
+
reviewPath: string;
|
|
813
|
+
briefPath?: string;
|
|
814
|
+
staged: boolean;
|
|
815
|
+
approvalId?: string;
|
|
816
|
+
approvalDir?: string;
|
|
817
|
+
}
|
|
785
818
|
interface GitHookStatus {
|
|
786
819
|
repoRoot: string | null;
|
|
787
820
|
postCommit: "installed" | "not_installed" | "other_content";
|
|
@@ -1185,13 +1218,15 @@ declare function installAgent(rootDir: string, agent: AgentType, options?: Insta
|
|
|
1185
1218
|
declare function installConfiguredAgents(rootDir: string): Promise<InstallAgentResult[]>;
|
|
1186
1219
|
|
|
1187
1220
|
declare function defaultVaultConfig(): VaultConfig;
|
|
1188
|
-
declare function defaultVaultSchema(): string;
|
|
1221
|
+
declare function defaultVaultSchema(profile?: "default" | "personal-research"): string;
|
|
1189
1222
|
declare function resolvePaths(rootDir: string, config?: VaultConfig, configPath?: string, schemaPath?: string): ResolvedPaths;
|
|
1190
1223
|
declare function loadVaultConfig(rootDir: string): Promise<{
|
|
1191
1224
|
config: VaultConfig;
|
|
1192
1225
|
paths: ResolvedPaths;
|
|
1193
1226
|
}>;
|
|
1194
|
-
declare function initWorkspace(rootDir: string
|
|
1227
|
+
declare function initWorkspace(rootDir: string, options?: {
|
|
1228
|
+
profile?: "default" | "personal-research";
|
|
1229
|
+
}): Promise<{
|
|
1195
1230
|
config: VaultConfig;
|
|
1196
1231
|
paths: ResolvedPaths;
|
|
1197
1232
|
}>;
|
|
@@ -1259,11 +1294,43 @@ interface LoadedVaultSchemas {
|
|
|
1259
1294
|
declare function loadVaultSchemas(rootDir: string): Promise<LoadedVaultSchemas>;
|
|
1260
1295
|
declare function loadVaultSchema(rootDir: string): Promise<VaultSchema>;
|
|
1261
1296
|
|
|
1297
|
+
type SourceScope = {
|
|
1298
|
+
id: string;
|
|
1299
|
+
title: string;
|
|
1300
|
+
sourceIds: string[];
|
|
1301
|
+
kind?: string;
|
|
1302
|
+
briefPath?: string;
|
|
1303
|
+
};
|
|
1304
|
+
declare function reviewSourceScope(rootDir: string, scope: SourceScope): Promise<SourceReviewResult>;
|
|
1305
|
+
declare function guideSourceScope(rootDir: string, scope: SourceScope): Promise<SourceGuideResult>;
|
|
1306
|
+
declare function reviewManagedSource(rootDir: string, id: string): Promise<SourceReviewResult>;
|
|
1307
|
+
declare function guideManagedSource(rootDir: string, id: string): Promise<SourceGuideResult>;
|
|
1262
1308
|
declare function listManagedSourceRecords(rootDir: string): Promise<ManagedSourceRecord[]>;
|
|
1263
1309
|
declare function addManagedSource(rootDir: string, input: string, options?: ManagedSourceAddOptions): Promise<ManagedSourceAddResult>;
|
|
1264
1310
|
declare function reloadManagedSources(rootDir: string, options?: ManagedSourceReloadOptions): Promise<ManagedSourceReloadResult>;
|
|
1265
1311
|
declare function deleteManagedSource(rootDir: string, id: string): Promise<ManagedSourceDeleteResult>;
|
|
1266
1312
|
|
|
1313
|
+
type GeneratedOutputArtifacts = {
|
|
1314
|
+
answer: string;
|
|
1315
|
+
outputAssets: OutputAsset[];
|
|
1316
|
+
assetFiles: Array<{
|
|
1317
|
+
relativePath: string;
|
|
1318
|
+
content: string | Uint8Array;
|
|
1319
|
+
encoding?: BufferEncoding;
|
|
1320
|
+
}>;
|
|
1321
|
+
};
|
|
1322
|
+
declare function stageGeneratedOutputPages(rootDir: string, stagedPages: Array<{
|
|
1323
|
+
page: GraphPage;
|
|
1324
|
+
content: string;
|
|
1325
|
+
assetFiles?: GeneratedOutputArtifacts["assetFiles"];
|
|
1326
|
+
label?: ApprovalEntryLabel;
|
|
1327
|
+
}>, options?: {
|
|
1328
|
+
bundleType?: ApprovalBundleType;
|
|
1329
|
+
title?: string;
|
|
1330
|
+
}): Promise<{
|
|
1331
|
+
approvalId: string;
|
|
1332
|
+
approvalDir: string;
|
|
1333
|
+
}>;
|
|
1267
1334
|
declare function listApprovals(rootDir: string): Promise<ApprovalSummary[]>;
|
|
1268
1335
|
declare function readApproval(rootDir: string, approvalId: string, options?: {
|
|
1269
1336
|
diff?: boolean;
|
|
@@ -1344,4 +1411,4 @@ declare function getWatchStatus(rootDir: string): Promise<WatchStatusResult>;
|
|
|
1344
1411
|
declare function createWebSearchAdapter(id: string, config: WebSearchProviderConfig, rootDir: string): Promise<WebSearchAdapter>;
|
|
1345
1412
|
declare function getWebSearchAdapterForTask(rootDir: string, task: "deepLintProvider"): Promise<WebSearchAdapter>;
|
|
1346
1413
|
|
|
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 };
|
|
1414
|
+
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 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 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, reviewManagedSource, reviewSourceScope, runSchedule, runWatchCycle, searchVault, serveSchedules, stageGeneratedOutputPages, startGraphServer, startMcpServer, syncTrackedRepos, syncTrackedReposForWatch, uninstallGitHooks, watchVault, webSearchProviderTypeSchema };
|