@swarmvaultai/engine 0.1.17 → 0.1.18
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 +5 -2
- package/dist/chunk-NCSZ4AKP.js +1057 -0
- package/dist/index.d.ts +42 -3
- package/dist/index.js +1773 -1035
- package/dist/registry-JFEW5RUP.js +12 -0
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -51,8 +51,8 @@ type PageManager = "system" | "human";
|
|
|
51
51
|
type ApprovalEntryStatus = "pending" | "accepted" | "rejected";
|
|
52
52
|
type ApprovalChangeType = "create" | "update" | "delete" | "promote";
|
|
53
53
|
type SourceKind = "markdown" | "text" | "pdf" | "image" | "html" | "binary" | "code";
|
|
54
|
-
type CodeLanguage = "javascript" | "jsx" | "typescript" | "tsx" | "python" | "go" | "rust" | "java";
|
|
55
|
-
type CodeSymbolKind = "function" | "class" | "interface" | "type_alias" | "enum" | "variable";
|
|
54
|
+
type CodeLanguage = "javascript" | "jsx" | "typescript" | "tsx" | "python" | "go" | "rust" | "java" | "csharp" | "c" | "cpp" | "php";
|
|
55
|
+
type CodeSymbolKind = "function" | "class" | "interface" | "type_alias" | "enum" | "variable" | "struct" | "trait";
|
|
56
56
|
type OrchestrationRole = "research" | "audit" | "context" | "safety";
|
|
57
57
|
declare const webSearchProviderTypeSchema: z.ZodEnum<{
|
|
58
58
|
custom: "custom";
|
|
@@ -191,6 +191,7 @@ interface ResolvedPaths {
|
|
|
191
191
|
graphPath: string;
|
|
192
192
|
searchDbPath: string;
|
|
193
193
|
compileStatePath: string;
|
|
194
|
+
codeIndexPath: string;
|
|
194
195
|
jobsLogPath: string;
|
|
195
196
|
sessionsDir: string;
|
|
196
197
|
approvalsDir: string;
|
|
@@ -204,6 +205,23 @@ interface SourceAttachment {
|
|
|
204
205
|
interface IngestOptions {
|
|
205
206
|
includeAssets?: boolean;
|
|
206
207
|
maxAssetSize?: number;
|
|
208
|
+
repoRoot?: string;
|
|
209
|
+
include?: string[];
|
|
210
|
+
exclude?: string[];
|
|
211
|
+
maxFiles?: number;
|
|
212
|
+
gitignore?: boolean;
|
|
213
|
+
}
|
|
214
|
+
interface DirectoryIngestSkip {
|
|
215
|
+
path: string;
|
|
216
|
+
reason: string;
|
|
217
|
+
}
|
|
218
|
+
interface DirectoryIngestResult {
|
|
219
|
+
inputDir: string;
|
|
220
|
+
repoRoot: string;
|
|
221
|
+
scannedCount: number;
|
|
222
|
+
imported: SourceManifest[];
|
|
223
|
+
updated: SourceManifest[];
|
|
224
|
+
skipped: DirectoryIngestSkip[];
|
|
207
225
|
}
|
|
208
226
|
interface SourceManifest {
|
|
209
227
|
sourceId: string;
|
|
@@ -212,6 +230,7 @@ interface SourceManifest {
|
|
|
212
230
|
sourceKind: SourceKind;
|
|
213
231
|
language?: CodeLanguage;
|
|
214
232
|
originalPath?: string;
|
|
233
|
+
repoRelativePath?: string;
|
|
215
234
|
url?: string;
|
|
216
235
|
storedPath: string;
|
|
217
236
|
extractedTextPath?: string;
|
|
@@ -242,6 +261,8 @@ interface CodeImport {
|
|
|
242
261
|
isTypeOnly?: boolean;
|
|
243
262
|
isExternal: boolean;
|
|
244
263
|
reExport: boolean;
|
|
264
|
+
resolvedSourceId?: string;
|
|
265
|
+
resolvedRepoPath?: string;
|
|
245
266
|
}
|
|
246
267
|
interface CodeDiagnostic {
|
|
247
268
|
code: number;
|
|
@@ -263,13 +284,30 @@ interface CodeSymbol {
|
|
|
263
284
|
interface CodeAnalysis {
|
|
264
285
|
moduleId: string;
|
|
265
286
|
language: CodeLanguage;
|
|
287
|
+
moduleName?: string;
|
|
288
|
+
namespace?: string;
|
|
266
289
|
imports: CodeImport[];
|
|
267
290
|
dependencies: string[];
|
|
268
291
|
symbols: CodeSymbol[];
|
|
269
292
|
exports: string[];
|
|
270
293
|
diagnostics: CodeDiagnostic[];
|
|
271
294
|
}
|
|
295
|
+
interface CodeIndexEntry {
|
|
296
|
+
sourceId: string;
|
|
297
|
+
moduleId: string;
|
|
298
|
+
language: CodeLanguage;
|
|
299
|
+
repoRelativePath?: string;
|
|
300
|
+
originalPath?: string;
|
|
301
|
+
moduleName?: string;
|
|
302
|
+
namespace?: string;
|
|
303
|
+
aliases: string[];
|
|
304
|
+
}
|
|
305
|
+
interface CodeIndexArtifact {
|
|
306
|
+
generatedAt: string;
|
|
307
|
+
entries: CodeIndexEntry[];
|
|
308
|
+
}
|
|
272
309
|
interface SourceAnalysis {
|
|
310
|
+
analysisVersion: number;
|
|
273
311
|
sourceId: string;
|
|
274
312
|
sourceHash: string;
|
|
275
313
|
schemaHash: string;
|
|
@@ -694,6 +732,7 @@ declare function initWorkspace(rootDir: string): Promise<{
|
|
|
694
732
|
}>;
|
|
695
733
|
|
|
696
734
|
declare function ingestInput(rootDir: string, input: string, options?: IngestOptions): Promise<SourceManifest>;
|
|
735
|
+
declare function ingestDirectory(rootDir: string, inputDir: string, options?: IngestOptions): Promise<DirectoryIngestResult>;
|
|
697
736
|
declare function importInbox(rootDir: string, inputDir?: string): Promise<InboxImportResult>;
|
|
698
737
|
declare function listManifests(rootDir: string): Promise<SourceManifest[]>;
|
|
699
738
|
declare function readExtractedText(rootDir: string, manifest: SourceManifest): Promise<string | undefined>;
|
|
@@ -775,4 +814,4 @@ declare function watchVault(rootDir: string, options?: WatchOptions): Promise<Wa
|
|
|
775
814
|
declare function createWebSearchAdapter(id: string, config: WebSearchProviderConfig, rootDir: string): Promise<WebSearchAdapter>;
|
|
776
815
|
declare function getWebSearchAdapterForTask(rootDir: string, task: "deepLintProvider"): Promise<WebSearchAdapter>;
|
|
777
816
|
|
|
778
|
-
export { type AgentType, type AnalyzedTerm, type ApprovalChangeType, type ApprovalDetail, type ApprovalEntry, type ApprovalEntryDetail, type ApprovalEntryStatus, type ApprovalManifest, type ApprovalSummary, type CandidateRecord, type ChartDatum, type ChartSpec, type ClaimStatus, type CodeAnalysis, type CodeDiagnostic, type CodeImport, type CodeLanguage, type CodeSymbol, type CodeSymbolKind, type CommandRoleExecutorConfig, type CompileOptions, type CompileResult, type CompileState, type ExploreOptions, type ExploreResult, type ExploreStepResult, type Freshness, type GenerationAttachment, type GenerationRequest, type GenerationResponse, type GraphArtifact, type GraphEdge, type GraphNode, type GraphPage, type ImageGenerationRequest, type ImageGenerationResponse, type InboxImportResult, type InboxImportSkip, type IngestOptions, type InitOptions, 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 Polarity, type ProviderAdapter, type ProviderCapability, type ProviderConfig, type ProviderRoleExecutorConfig, type ProviderType, type QueryOptions, type QueryResult, 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 SourceClaim, type SourceKind, type SourceManifest, type VaultConfig, type WatchController, type WatchOptions, type WatchRunRecord, type WebSearchAdapter, type WebSearchProviderConfig, type WebSearchProviderType, type WebSearchResult, acceptApproval, agentTypeSchema, archiveCandidate, assertProviderCapability, bootstrapDemo, compileVault, createMcpServer, createProvider, createWebSearchAdapter, defaultVaultConfig, defaultVaultSchema, exploreVault, exportGraphHtml, getProviderForTask, getWebSearchAdapterForTask, getWorkspaceInfo, importInbox, ingestInput, initVault, initWorkspace, installAgent, installConfiguredAgents, lintVault, listApprovals, listCandidates, listManifests, listPages, listSchedules, loadVaultConfig, loadVaultSchema, loadVaultSchemas, promoteCandidate, providerCapabilitySchema, providerTypeSchema, queryVault, readApproval, readExtractedText, readPage, rejectApproval, resolvePaths, runSchedule, searchVault, serveSchedules, startGraphServer, startMcpServer, watchVault, webSearchProviderTypeSchema };
|
|
817
|
+
export { type AgentType, type AnalyzedTerm, type ApprovalChangeType, type ApprovalDetail, type ApprovalEntry, type ApprovalEntryDetail, type ApprovalEntryStatus, type ApprovalManifest, type ApprovalSummary, 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 ExploreOptions, type ExploreResult, type ExploreStepResult, type Freshness, type GenerationAttachment, type GenerationRequest, type GenerationResponse, type GraphArtifact, type GraphEdge, type GraphNode, type GraphPage, type ImageGenerationRequest, type ImageGenerationResponse, type InboxImportResult, type InboxImportSkip, type IngestOptions, type InitOptions, 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 Polarity, type ProviderAdapter, type ProviderCapability, type ProviderConfig, type ProviderRoleExecutorConfig, type ProviderType, type QueryOptions, type QueryResult, 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 SourceClaim, type SourceKind, type SourceManifest, type VaultConfig, type WatchController, type WatchOptions, type WatchRunRecord, type WebSearchAdapter, type WebSearchProviderConfig, type WebSearchProviderType, type WebSearchResult, acceptApproval, agentTypeSchema, archiveCandidate, assertProviderCapability, bootstrapDemo, compileVault, createMcpServer, createProvider, createWebSearchAdapter, defaultVaultConfig, defaultVaultSchema, exploreVault, exportGraphHtml, getProviderForTask, getWebSearchAdapterForTask, getWorkspaceInfo, importInbox, ingestDirectory, ingestInput, initVault, initWorkspace, installAgent, installConfiguredAgents, lintVault, listApprovals, listCandidates, listManifests, listPages, listSchedules, loadVaultConfig, loadVaultSchema, loadVaultSchemas, promoteCandidate, providerCapabilitySchema, providerTypeSchema, queryVault, readApproval, readExtractedText, readPage, rejectApproval, resolvePaths, runSchedule, searchVault, serveSchedules, startGraphServer, startMcpServer, watchVault, webSearchProviderTypeSchema };
|