@swarmvaultai/engine 0.5.0 → 0.6.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-FD3LJQ4T.js +1216 -0
- package/dist/index.d.ts +54 -8
- package/dist/index.js +909 -315
- package/dist/registry-XOPLQNZY.js +12 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,8 +54,9 @@ 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";
|
|
57
|
+
type ApprovalBundleType = "compile" | "generated_output" | "source_review" | "guided_source" | "guided_session";
|
|
58
58
|
type ApprovalEntryLabel = "source-brief" | "source-review" | "source-guide" | "guided-update";
|
|
59
|
+
type GuidedSourceSessionStatus = "awaiting_input" | "ready_to_stage" | "staged" | "accepted" | "rejected";
|
|
59
60
|
type SourceKind = "markdown" | "text" | "pdf" | "image" | "html" | "docx" | "epub" | "csv" | "xlsx" | "pptx" | "transcript" | "chat_export" | "email" | "calendar" | "binary" | "code";
|
|
60
61
|
type SourceCaptureType = "arxiv" | "doi" | "tweet" | "article" | "url";
|
|
61
62
|
type SourceClass = "first_party" | "third_party" | "resource" | "generated";
|
|
@@ -220,6 +221,7 @@ interface ResolvedPaths {
|
|
|
220
221
|
benchmarkPath: string;
|
|
221
222
|
jobsLogPath: string;
|
|
222
223
|
sessionsDir: string;
|
|
224
|
+
sourceSessionsDir: string;
|
|
223
225
|
approvalsDir: string;
|
|
224
226
|
watchDir: string;
|
|
225
227
|
watchStatusPath: string;
|
|
@@ -594,6 +596,7 @@ interface ApprovalManifest {
|
|
|
594
596
|
createdAt: string;
|
|
595
597
|
bundleType?: ApprovalBundleType;
|
|
596
598
|
title?: string;
|
|
599
|
+
sourceSessionId?: string;
|
|
597
600
|
entries: ApprovalEntry[];
|
|
598
601
|
}
|
|
599
602
|
interface ApprovalSummary {
|
|
@@ -601,6 +604,7 @@ interface ApprovalSummary {
|
|
|
601
604
|
createdAt: string;
|
|
602
605
|
bundleType?: ApprovalBundleType;
|
|
603
606
|
title?: string;
|
|
607
|
+
sourceSessionId?: string;
|
|
604
608
|
entryCount: number;
|
|
605
609
|
pendingCount: number;
|
|
606
610
|
acceptedCount: number;
|
|
@@ -772,6 +776,7 @@ interface ManagedSourceAddOptions {
|
|
|
772
776
|
brief?: boolean;
|
|
773
777
|
review?: boolean;
|
|
774
778
|
guide?: boolean;
|
|
779
|
+
guideAnswers?: GuidedSourceSessionAnswers;
|
|
775
780
|
maxPages?: number;
|
|
776
781
|
maxDepth?: number;
|
|
777
782
|
}
|
|
@@ -796,6 +801,31 @@ interface ManagedSourceReloadResult {
|
|
|
796
801
|
interface ManagedSourceDeleteResult {
|
|
797
802
|
removed: ManagedSourceRecord;
|
|
798
803
|
}
|
|
804
|
+
interface GuidedSourceSessionQuestion {
|
|
805
|
+
id: string;
|
|
806
|
+
prompt: string;
|
|
807
|
+
answer?: string;
|
|
808
|
+
}
|
|
809
|
+
type GuidedSourceSessionAnswers = Record<string, string> | string[];
|
|
810
|
+
interface GuidedSourceSessionRecord {
|
|
811
|
+
sessionId: string;
|
|
812
|
+
scopeId: string;
|
|
813
|
+
scopeTitle: string;
|
|
814
|
+
sourceIds: string[];
|
|
815
|
+
kind?: string;
|
|
816
|
+
status: GuidedSourceSessionStatus;
|
|
817
|
+
createdAt: string;
|
|
818
|
+
updatedAt: string;
|
|
819
|
+
questions: GuidedSourceSessionQuestion[];
|
|
820
|
+
briefPath?: string;
|
|
821
|
+
reviewPath?: string;
|
|
822
|
+
guidePath?: string;
|
|
823
|
+
sessionPath?: string;
|
|
824
|
+
approvalId?: string;
|
|
825
|
+
approvalDir?: string;
|
|
826
|
+
targetedPagePaths: string[];
|
|
827
|
+
stagedUpdatePaths: string[];
|
|
828
|
+
}
|
|
799
829
|
interface SourceReviewResult {
|
|
800
830
|
sourceId: string;
|
|
801
831
|
pageId: string;
|
|
@@ -806,10 +836,18 @@ interface SourceReviewResult {
|
|
|
806
836
|
}
|
|
807
837
|
interface SourceGuideResult {
|
|
808
838
|
sourceId: string;
|
|
809
|
-
pageId
|
|
810
|
-
guidePath
|
|
811
|
-
reviewPageId
|
|
812
|
-
reviewPath
|
|
839
|
+
pageId?: string;
|
|
840
|
+
guidePath?: string;
|
|
841
|
+
reviewPageId?: string;
|
|
842
|
+
reviewPath?: string;
|
|
843
|
+
sessionId: string;
|
|
844
|
+
sessionPath: string;
|
|
845
|
+
sessionStatePath: string;
|
|
846
|
+
status: GuidedSourceSessionStatus;
|
|
847
|
+
questions: GuidedSourceSessionQuestion[];
|
|
848
|
+
awaitingInput?: boolean;
|
|
849
|
+
targetedPagePaths: string[];
|
|
850
|
+
stagedUpdatePaths: string[];
|
|
813
851
|
briefPath?: string;
|
|
814
852
|
staged: boolean;
|
|
815
853
|
approvalId?: string;
|
|
@@ -1302,9 +1340,16 @@ type SourceScope = {
|
|
|
1302
1340
|
briefPath?: string;
|
|
1303
1341
|
};
|
|
1304
1342
|
declare function reviewSourceScope(rootDir: string, scope: SourceScope): Promise<SourceReviewResult>;
|
|
1305
|
-
declare function guideSourceScope(rootDir: string, scope: SourceScope
|
|
1343
|
+
declare function guideSourceScope(rootDir: string, scope: SourceScope, options?: {
|
|
1344
|
+
answers?: GuidedSourceSessionAnswers;
|
|
1345
|
+
}): Promise<SourceGuideResult>;
|
|
1306
1346
|
declare function reviewManagedSource(rootDir: string, id: string): Promise<SourceReviewResult>;
|
|
1307
|
-
declare function guideManagedSource(rootDir: string, id: string
|
|
1347
|
+
declare function guideManagedSource(rootDir: string, id: string, options?: {
|
|
1348
|
+
answers?: GuidedSourceSessionAnswers;
|
|
1349
|
+
}): Promise<SourceGuideResult>;
|
|
1350
|
+
declare function resumeSourceSession(rootDir: string, id: string, options?: {
|
|
1351
|
+
answers?: GuidedSourceSessionAnswers;
|
|
1352
|
+
}): Promise<SourceGuideResult>;
|
|
1308
1353
|
declare function listManagedSourceRecords(rootDir: string): Promise<ManagedSourceRecord[]>;
|
|
1309
1354
|
declare function addManagedSource(rootDir: string, input: string, options?: ManagedSourceAddOptions): Promise<ManagedSourceAddResult>;
|
|
1310
1355
|
declare function reloadManagedSources(rootDir: string, options?: ManagedSourceReloadOptions): Promise<ManagedSourceReloadResult>;
|
|
@@ -1327,6 +1372,7 @@ declare function stageGeneratedOutputPages(rootDir: string, stagedPages: Array<{
|
|
|
1327
1372
|
}>, options?: {
|
|
1328
1373
|
bundleType?: ApprovalBundleType;
|
|
1329
1374
|
title?: string;
|
|
1375
|
+
sourceSessionId?: string;
|
|
1330
1376
|
}): Promise<{
|
|
1331
1377
|
approvalId: string;
|
|
1332
1378
|
approvalDir: string;
|
|
@@ -1411,4 +1457,4 @@ declare function getWatchStatus(rootDir: string): Promise<WatchStatusResult>;
|
|
|
1411
1457
|
declare function createWebSearchAdapter(id: string, config: WebSearchProviderConfig, rootDir: string): Promise<WebSearchAdapter>;
|
|
1412
1458
|
declare function getWebSearchAdapterForTask(rootDir: string, task: "deepLintProvider"): Promise<WebSearchAdapter>;
|
|
1413
1459
|
|
|
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 };
|
|
1460
|
+
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 GuidedSourceSessionAnswers, type GuidedSourceSessionQuestion, type GuidedSourceSessionRecord, type GuidedSourceSessionStatus, 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, resumeSourceSession, reviewManagedSource, reviewSourceScope, runSchedule, runWatchCycle, searchVault, serveSchedules, stageGeneratedOutputPages, startGraphServer, startMcpServer, syncTrackedRepos, syncTrackedReposForWatch, uninstallGitHooks, watchVault, webSearchProviderTypeSchema };
|