@swarmvaultai/engine 0.1.16 → 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-333AMRSV.js +1056 -0
- package/dist/chunk-NCSZ4AKP.js +1057 -0
- package/dist/index.d.ts +43 -3
- package/dist/index.js +1775 -1035
- package/dist/registry-JFEW5RUP.js +12 -0
- package/dist/registry-ZNW3FDED.js +12 -0
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ declare const agentTypeSchema: z.ZodEnum<{
|
|
|
36
36
|
cursor: "cursor";
|
|
37
37
|
goose: "goose";
|
|
38
38
|
pi: "pi";
|
|
39
|
+
opencode: "opencode";
|
|
39
40
|
}>;
|
|
40
41
|
type AgentType = z.infer<typeof agentTypeSchema>;
|
|
41
42
|
type PageKind = "index" | "source" | "module" | "concept" | "entity" | "output" | "insight";
|
|
@@ -50,8 +51,8 @@ type PageManager = "system" | "human";
|
|
|
50
51
|
type ApprovalEntryStatus = "pending" | "accepted" | "rejected";
|
|
51
52
|
type ApprovalChangeType = "create" | "update" | "delete" | "promote";
|
|
52
53
|
type SourceKind = "markdown" | "text" | "pdf" | "image" | "html" | "binary" | "code";
|
|
53
|
-
type CodeLanguage = "javascript" | "jsx" | "typescript" | "tsx" | "python" | "go" | "rust" | "java";
|
|
54
|
-
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";
|
|
55
56
|
type OrchestrationRole = "research" | "audit" | "context" | "safety";
|
|
56
57
|
declare const webSearchProviderTypeSchema: z.ZodEnum<{
|
|
57
58
|
custom: "custom";
|
|
@@ -190,6 +191,7 @@ interface ResolvedPaths {
|
|
|
190
191
|
graphPath: string;
|
|
191
192
|
searchDbPath: string;
|
|
192
193
|
compileStatePath: string;
|
|
194
|
+
codeIndexPath: string;
|
|
193
195
|
jobsLogPath: string;
|
|
194
196
|
sessionsDir: string;
|
|
195
197
|
approvalsDir: string;
|
|
@@ -203,6 +205,23 @@ interface SourceAttachment {
|
|
|
203
205
|
interface IngestOptions {
|
|
204
206
|
includeAssets?: boolean;
|
|
205
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[];
|
|
206
225
|
}
|
|
207
226
|
interface SourceManifest {
|
|
208
227
|
sourceId: string;
|
|
@@ -211,6 +230,7 @@ interface SourceManifest {
|
|
|
211
230
|
sourceKind: SourceKind;
|
|
212
231
|
language?: CodeLanguage;
|
|
213
232
|
originalPath?: string;
|
|
233
|
+
repoRelativePath?: string;
|
|
214
234
|
url?: string;
|
|
215
235
|
storedPath: string;
|
|
216
236
|
extractedTextPath?: string;
|
|
@@ -241,6 +261,8 @@ interface CodeImport {
|
|
|
241
261
|
isTypeOnly?: boolean;
|
|
242
262
|
isExternal: boolean;
|
|
243
263
|
reExport: boolean;
|
|
264
|
+
resolvedSourceId?: string;
|
|
265
|
+
resolvedRepoPath?: string;
|
|
244
266
|
}
|
|
245
267
|
interface CodeDiagnostic {
|
|
246
268
|
code: number;
|
|
@@ -262,13 +284,30 @@ interface CodeSymbol {
|
|
|
262
284
|
interface CodeAnalysis {
|
|
263
285
|
moduleId: string;
|
|
264
286
|
language: CodeLanguage;
|
|
287
|
+
moduleName?: string;
|
|
288
|
+
namespace?: string;
|
|
265
289
|
imports: CodeImport[];
|
|
266
290
|
dependencies: string[];
|
|
267
291
|
symbols: CodeSymbol[];
|
|
268
292
|
exports: string[];
|
|
269
293
|
diagnostics: CodeDiagnostic[];
|
|
270
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
|
+
}
|
|
271
309
|
interface SourceAnalysis {
|
|
310
|
+
analysisVersion: number;
|
|
272
311
|
sourceId: string;
|
|
273
312
|
sourceHash: string;
|
|
274
313
|
schemaHash: string;
|
|
@@ -693,6 +732,7 @@ declare function initWorkspace(rootDir: string): Promise<{
|
|
|
693
732
|
}>;
|
|
694
733
|
|
|
695
734
|
declare function ingestInput(rootDir: string, input: string, options?: IngestOptions): Promise<SourceManifest>;
|
|
735
|
+
declare function ingestDirectory(rootDir: string, inputDir: string, options?: IngestOptions): Promise<DirectoryIngestResult>;
|
|
696
736
|
declare function importInbox(rootDir: string, inputDir?: string): Promise<InboxImportResult>;
|
|
697
737
|
declare function listManifests(rootDir: string): Promise<SourceManifest[]>;
|
|
698
738
|
declare function readExtractedText(rootDir: string, manifest: SourceManifest): Promise<string | undefined>;
|
|
@@ -774,4 +814,4 @@ declare function watchVault(rootDir: string, options?: WatchOptions): Promise<Wa
|
|
|
774
814
|
declare function createWebSearchAdapter(id: string, config: WebSearchProviderConfig, rootDir: string): Promise<WebSearchAdapter>;
|
|
775
815
|
declare function getWebSearchAdapterForTask(rootDir: string, task: "deepLintProvider"): Promise<WebSearchAdapter>;
|
|
776
816
|
|
|
777
|
-
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 };
|