@swarmvaultai/engine 0.4.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/index.d.ts CHANGED
@@ -54,6 +54,8 @@ 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 ApprovalBundleType = "compile" | "generated_output" | "source_review" | "guided_source";
58
+ type ApprovalEntryLabel = "source-brief" | "source-review" | "source-guide" | "guided-update";
57
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";
@@ -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;
@@ -763,6 +771,7 @@ interface ManagedSourceAddOptions {
763
771
  compile?: boolean;
764
772
  brief?: boolean;
765
773
  review?: boolean;
774
+ guide?: boolean;
766
775
  maxPages?: number;
767
776
  maxDepth?: number;
768
777
  }
@@ -775,12 +784,14 @@ interface ManagedSourceAddResult {
775
784
  compile?: CompileResult;
776
785
  briefGenerated: boolean;
777
786
  review?: SourceReviewResult;
787
+ guide?: SourceGuideResult;
778
788
  }
779
789
  interface ManagedSourceReloadResult {
780
790
  sources: ManagedSourceRecord[];
781
791
  compile?: CompileResult;
782
792
  briefPaths: string[];
783
793
  reviews: SourceReviewResult[];
794
+ guides: SourceGuideResult[];
784
795
  }
785
796
  interface ManagedSourceDeleteResult {
786
797
  removed: ManagedSourceRecord;
@@ -793,6 +804,17 @@ interface SourceReviewResult {
793
804
  approvalId?: string;
794
805
  approvalDir?: string;
795
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
+ }
796
818
  interface GitHookStatus {
797
819
  repoRoot: string | null;
798
820
  postCommit: "installed" | "not_installed" | "other_content";
@@ -1196,13 +1218,15 @@ declare function installAgent(rootDir: string, agent: AgentType, options?: Insta
1196
1218
  declare function installConfiguredAgents(rootDir: string): Promise<InstallAgentResult[]>;
1197
1219
 
1198
1220
  declare function defaultVaultConfig(): VaultConfig;
1199
- declare function defaultVaultSchema(): string;
1221
+ declare function defaultVaultSchema(profile?: "default" | "personal-research"): string;
1200
1222
  declare function resolvePaths(rootDir: string, config?: VaultConfig, configPath?: string, schemaPath?: string): ResolvedPaths;
1201
1223
  declare function loadVaultConfig(rootDir: string): Promise<{
1202
1224
  config: VaultConfig;
1203
1225
  paths: ResolvedPaths;
1204
1226
  }>;
1205
- declare function initWorkspace(rootDir: string): Promise<{
1227
+ declare function initWorkspace(rootDir: string, options?: {
1228
+ profile?: "default" | "personal-research";
1229
+ }): Promise<{
1206
1230
  config: VaultConfig;
1207
1231
  paths: ResolvedPaths;
1208
1232
  }>;
@@ -1270,13 +1294,17 @@ interface LoadedVaultSchemas {
1270
1294
  declare function loadVaultSchemas(rootDir: string): Promise<LoadedVaultSchemas>;
1271
1295
  declare function loadVaultSchema(rootDir: string): Promise<VaultSchema>;
1272
1296
 
1273
- type SourceReviewScope = {
1297
+ type SourceScope = {
1274
1298
  id: string;
1275
1299
  title: string;
1276
1300
  sourceIds: string[];
1301
+ kind?: string;
1302
+ briefPath?: string;
1277
1303
  };
1278
- declare function reviewSourceScope(rootDir: string, scope: SourceReviewScope): Promise<SourceReviewResult>;
1304
+ declare function reviewSourceScope(rootDir: string, scope: SourceScope): Promise<SourceReviewResult>;
1305
+ declare function guideSourceScope(rootDir: string, scope: SourceScope): Promise<SourceGuideResult>;
1279
1306
  declare function reviewManagedSource(rootDir: string, id: string): Promise<SourceReviewResult>;
1307
+ declare function guideManagedSource(rootDir: string, id: string): Promise<SourceGuideResult>;
1280
1308
  declare function listManagedSourceRecords(rootDir: string): Promise<ManagedSourceRecord[]>;
1281
1309
  declare function addManagedSource(rootDir: string, input: string, options?: ManagedSourceAddOptions): Promise<ManagedSourceAddResult>;
1282
1310
  declare function reloadManagedSources(rootDir: string, options?: ManagedSourceReloadOptions): Promise<ManagedSourceReloadResult>;
@@ -1295,7 +1323,11 @@ declare function stageGeneratedOutputPages(rootDir: string, stagedPages: Array<{
1295
1323
  page: GraphPage;
1296
1324
  content: string;
1297
1325
  assetFiles?: GeneratedOutputArtifacts["assetFiles"];
1298
- }>): Promise<{
1326
+ label?: ApprovalEntryLabel;
1327
+ }>, options?: {
1328
+ bundleType?: ApprovalBundleType;
1329
+ title?: string;
1330
+ }): Promise<{
1299
1331
  approvalId: string;
1300
1332
  approvalDir: string;
1301
1333
  }>;
@@ -1379,4 +1411,4 @@ declare function getWatchStatus(rootDir: string): Promise<WatchStatusResult>;
1379
1411
  declare function createWebSearchAdapter(id: string, config: WebSearchProviderConfig, rootDir: string): Promise<WebSearchAdapter>;
1380
1412
  declare function getWebSearchAdapterForTask(rootDir: string, task: "deepLintProvider"): Promise<WebSearchAdapter>;
1381
1413
 
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 };
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 };