@swarmvaultai/engine 0.1.4 → 0.1.7

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
@@ -2,6 +2,9 @@ import { z } from 'zod';
2
2
  import { Readable, Writable } from 'node:stream';
3
3
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
4
4
 
5
+ declare function installAgent(rootDir: string, agent: "codex" | "claude" | "cursor"): Promise<string>;
6
+ declare function installConfiguredAgents(rootDir: string): Promise<string[]>;
7
+
5
8
  declare const providerCapabilitySchema: z.ZodEnum<{
6
9
  responses: "responses";
7
10
  chat: "chat";
@@ -11,6 +14,7 @@ declare const providerCapabilitySchema: z.ZodEnum<{
11
14
  embeddings: "embeddings";
12
15
  streaming: "streaming";
13
16
  local: "local";
17
+ image_generation: "image_generation";
14
18
  }>;
15
19
  type ProviderCapability = z.infer<typeof providerCapabilitySchema>;
16
20
  declare const providerTypeSchema: z.ZodEnum<{
@@ -23,10 +27,26 @@ declare const providerTypeSchema: z.ZodEnum<{
23
27
  custom: "custom";
24
28
  }>;
25
29
  type ProviderType = z.infer<typeof providerTypeSchema>;
26
- type PageKind = "index" | "source" | "concept" | "entity" | "output";
30
+ type PageKind = "index" | "source" | "module" | "concept" | "entity" | "output" | "insight";
27
31
  type Freshness = "fresh" | "stale";
28
32
  type ClaimStatus = "extracted" | "inferred" | "conflicted" | "stale";
29
33
  type Polarity = "positive" | "negative" | "neutral";
34
+ type OutputOrigin = "query" | "explore";
35
+ type OutputFormat = "markdown" | "report" | "slides" | "chart" | "image";
36
+ type OutputAssetRole = "primary" | "preview" | "manifest" | "poster";
37
+ type PageStatus = "draft" | "candidate" | "active" | "archived";
38
+ type PageManager = "system" | "human";
39
+ type ApprovalEntryStatus = "pending" | "accepted" | "rejected";
40
+ type ApprovalChangeType = "create" | "update" | "delete" | "promote";
41
+ type SourceKind = "markdown" | "text" | "pdf" | "image" | "html" | "binary" | "code";
42
+ type CodeLanguage = "javascript" | "jsx" | "typescript" | "tsx";
43
+ type CodeSymbolKind = "function" | "class" | "interface" | "type_alias" | "enum" | "variable";
44
+ type OrchestrationRole = "research" | "audit" | "context" | "safety";
45
+ declare const webSearchProviderTypeSchema: z.ZodEnum<{
46
+ custom: "custom";
47
+ "http-json": "http-json";
48
+ }>;
49
+ type WebSearchProviderType = z.infer<typeof webSearchProviderTypeSchema>;
30
50
  interface GenerationAttachment {
31
51
  mimeType: string;
32
52
  filePath: string;
@@ -44,6 +64,20 @@ interface GenerationResponse {
44
64
  outputTokens?: number;
45
65
  };
46
66
  }
67
+ interface ImageGenerationRequest {
68
+ prompt: string;
69
+ system?: string;
70
+ width?: number;
71
+ height?: number;
72
+ attachments?: GenerationAttachment[];
73
+ }
74
+ interface ImageGenerationResponse {
75
+ mimeType: string;
76
+ bytes: Uint8Array;
77
+ width?: number;
78
+ height?: number;
79
+ revisedPrompt?: string;
80
+ }
47
81
  interface ProviderAdapter {
48
82
  readonly id: string;
49
83
  readonly type: ProviderType;
@@ -51,6 +85,7 @@ interface ProviderAdapter {
51
85
  readonly capabilities: Set<ProviderCapability>;
52
86
  generateText(request: GenerationRequest): Promise<GenerationResponse>;
53
87
  generateStructured<T>(request: GenerationRequest, schema: z.ZodType<T>): Promise<T>;
88
+ generateImage?(request: ImageGenerationRequest): Promise<ImageGenerationResponse>;
54
89
  }
55
90
  interface ProviderConfig {
56
91
  type: ProviderType;
@@ -62,6 +97,32 @@ interface ProviderConfig {
62
97
  capabilities?: ProviderCapability[];
63
98
  apiStyle?: "responses" | "chat";
64
99
  }
100
+ interface WebSearchProviderConfig {
101
+ type: WebSearchProviderType;
102
+ endpoint?: string;
103
+ method?: "GET" | "POST";
104
+ apiKeyEnv?: string;
105
+ apiKeyHeader?: string;
106
+ apiKeyPrefix?: string;
107
+ headers?: Record<string, string>;
108
+ queryParam?: string;
109
+ limitParam?: string;
110
+ resultsPath?: string;
111
+ titleField?: string;
112
+ urlField?: string;
113
+ snippetField?: string;
114
+ module?: string;
115
+ }
116
+ interface WebSearchResult {
117
+ title: string;
118
+ url: string;
119
+ snippet: string;
120
+ }
121
+ interface WebSearchAdapter {
122
+ readonly id: string;
123
+ readonly type: WebSearchProviderType;
124
+ search(query: string, limit?: number): Promise<WebSearchResult[]>;
125
+ }
65
126
  interface VaultConfig {
66
127
  workspace: {
67
128
  rawDir: string;
@@ -76,11 +137,24 @@ interface VaultConfig {
76
137
  queryProvider: string;
77
138
  lintProvider: string;
78
139
  visionProvider: string;
140
+ imageProvider?: string;
79
141
  };
80
142
  viewer: {
81
143
  port: number;
82
144
  };
145
+ projects?: Record<string, {
146
+ roots: string[];
147
+ schemaPath?: string;
148
+ }>;
83
149
  agents: Array<"codex" | "claude" | "cursor">;
150
+ schedules?: Record<string, ScheduleJobConfig>;
151
+ orchestration?: OrchestrationConfig;
152
+ webSearch?: {
153
+ providers: Record<string, WebSearchProviderConfig>;
154
+ tasks: {
155
+ deepLintProvider: string;
156
+ };
157
+ };
84
158
  }
85
159
  interface ResolvedPaths {
86
160
  rootDir: string;
@@ -89,7 +163,13 @@ interface ResolvedPaths {
89
163
  rawSourcesDir: string;
90
164
  rawAssetsDir: string;
91
165
  wikiDir: string;
166
+ outputsAssetsDir: string;
167
+ projectsDir: string;
168
+ candidatesDir: string;
169
+ candidateConceptsDir: string;
170
+ candidateEntitiesDir: string;
92
171
  stateDir: string;
172
+ schedulesDir: string;
93
173
  agentDir: string;
94
174
  inboxDir: string;
95
175
  manifestsDir: string;
@@ -100,6 +180,8 @@ interface ResolvedPaths {
100
180
  searchDbPath: string;
101
181
  compileStatePath: string;
102
182
  jobsLogPath: string;
183
+ sessionsDir: string;
184
+ approvalsDir: string;
103
185
  configPath: string;
104
186
  }
105
187
  interface SourceAttachment {
@@ -111,7 +193,8 @@ interface SourceManifest {
111
193
  sourceId: string;
112
194
  title: string;
113
195
  originType: "file" | "url";
114
- sourceKind: "markdown" | "text" | "pdf" | "image" | "html" | "binary";
196
+ sourceKind: SourceKind;
197
+ language?: CodeLanguage;
115
198
  originalPath?: string;
116
199
  url?: string;
117
200
  storedPath: string;
@@ -135,6 +218,41 @@ interface SourceClaim {
135
218
  polarity: Polarity;
136
219
  citation: string;
137
220
  }
221
+ interface CodeImport {
222
+ specifier: string;
223
+ importedSymbols: string[];
224
+ defaultImport?: string;
225
+ namespaceImport?: string;
226
+ isTypeOnly?: boolean;
227
+ isExternal: boolean;
228
+ reExport: boolean;
229
+ }
230
+ interface CodeDiagnostic {
231
+ code: number;
232
+ category: "warning" | "error" | "message" | "suggestion";
233
+ message: string;
234
+ line: number;
235
+ column: number;
236
+ }
237
+ interface CodeSymbol {
238
+ id: string;
239
+ name: string;
240
+ kind: CodeSymbolKind;
241
+ signature: string;
242
+ exported: boolean;
243
+ calls: string[];
244
+ extends: string[];
245
+ implements: string[];
246
+ }
247
+ interface CodeAnalysis {
248
+ moduleId: string;
249
+ language: CodeLanguage;
250
+ imports: CodeImport[];
251
+ dependencies: string[];
252
+ symbols: CodeSymbol[];
253
+ exports: string[];
254
+ diagnostics: CodeDiagnostic[];
255
+ }
138
256
  interface SourceAnalysis {
139
257
  sourceId: string;
140
258
  sourceHash: string;
@@ -145,16 +263,25 @@ interface SourceAnalysis {
145
263
  entities: AnalyzedTerm[];
146
264
  claims: SourceClaim[];
147
265
  questions: string[];
266
+ code?: CodeAnalysis;
148
267
  producedAt: string;
149
268
  }
150
269
  interface GraphNode {
151
270
  id: string;
152
- type: "source" | "concept" | "entity";
271
+ type: "source" | "concept" | "entity" | "module" | "symbol";
153
272
  label: string;
154
273
  pageId?: string;
155
274
  freshness?: Freshness;
156
275
  confidence?: number;
157
276
  sourceIds: string[];
277
+ projectIds: string[];
278
+ language?: CodeLanguage;
279
+ moduleId?: string;
280
+ symbolKind?: CodeSymbolKind;
281
+ communityId?: string;
282
+ degree?: number;
283
+ bridgeScore?: number;
284
+ isGodNode?: boolean;
158
285
  }
159
286
  interface GraphEdge {
160
287
  id: string;
@@ -171,25 +298,99 @@ interface GraphPage {
171
298
  title: string;
172
299
  kind: PageKind;
173
300
  sourceIds: string[];
301
+ projectIds: string[];
174
302
  nodeIds: string[];
175
303
  freshness: Freshness;
304
+ status: PageStatus;
176
305
  confidence: number;
177
306
  backlinks: string[];
178
307
  schemaHash: string;
179
308
  sourceHashes: Record<string, string>;
309
+ relatedPageIds: string[];
310
+ relatedNodeIds: string[];
311
+ relatedSourceIds: string[];
312
+ createdAt: string;
313
+ updatedAt: string;
314
+ compiledFrom: string[];
315
+ managedBy: PageManager;
316
+ origin?: OutputOrigin;
317
+ question?: string;
318
+ outputFormat?: OutputFormat;
319
+ outputAssets?: OutputAsset[];
180
320
  }
181
321
  interface GraphArtifact {
182
322
  generatedAt: string;
183
323
  nodes: GraphNode[];
184
324
  edges: GraphEdge[];
325
+ communities?: Array<{
326
+ id: string;
327
+ label: string;
328
+ nodeIds: string[];
329
+ }>;
185
330
  sources: SourceManifest[];
186
331
  pages: GraphPage[];
187
332
  }
333
+ interface ApprovalEntry {
334
+ pageId: string;
335
+ title: string;
336
+ kind: PageKind;
337
+ changeType: ApprovalChangeType;
338
+ status: ApprovalEntryStatus;
339
+ sourceIds: string[];
340
+ nextPath?: string;
341
+ previousPath?: string;
342
+ }
343
+ interface ApprovalManifest {
344
+ approvalId: string;
345
+ createdAt: string;
346
+ entries: ApprovalEntry[];
347
+ }
348
+ interface ApprovalSummary {
349
+ approvalId: string;
350
+ createdAt: string;
351
+ entryCount: number;
352
+ pendingCount: number;
353
+ acceptedCount: number;
354
+ rejectedCount: number;
355
+ }
356
+ interface ApprovalEntryDetail extends ApprovalEntry {
357
+ currentContent?: string;
358
+ stagedContent?: string;
359
+ }
360
+ interface ApprovalDetail extends ApprovalSummary {
361
+ entries: ApprovalEntryDetail[];
362
+ }
363
+ interface ReviewActionResult extends ApprovalSummary {
364
+ updatedEntries: string[];
365
+ }
366
+ interface CandidateRecord {
367
+ pageId: string;
368
+ title: string;
369
+ kind: "concept" | "entity";
370
+ path: string;
371
+ activePath: string;
372
+ sourceIds: string[];
373
+ createdAt: string;
374
+ updatedAt: string;
375
+ }
376
+ interface CompileOptions {
377
+ approve?: boolean;
378
+ }
379
+ interface InitOptions {
380
+ obsidian?: boolean;
381
+ }
188
382
  interface CompileResult {
189
383
  graphPath: string;
190
384
  pageCount: number;
191
385
  changedPages: string[];
192
386
  sourceCount: number;
387
+ staged: boolean;
388
+ approvalId?: string;
389
+ approvalDir?: string;
390
+ postPassApprovalId?: string;
391
+ postPassApprovalDir?: string;
392
+ promotedPageIds: string[];
393
+ candidatePageCount: number;
193
394
  }
194
395
  interface SearchResult {
195
396
  pageId: string;
@@ -197,17 +398,41 @@ interface SearchResult {
197
398
  title: string;
198
399
  snippet: string;
199
400
  rank: number;
401
+ kind?: PageKind;
402
+ status?: PageStatus;
403
+ projectIds: string[];
404
+ }
405
+ interface QueryOptions {
406
+ question: string;
407
+ save?: boolean;
408
+ format?: OutputFormat;
409
+ review?: boolean;
200
410
  }
201
411
  interface QueryResult {
202
412
  answer: string;
203
- savedTo?: string;
413
+ savedPath?: string;
414
+ stagedPath?: string;
415
+ savedPageId?: string;
204
416
  citations: string[];
417
+ relatedPageIds: string[];
418
+ relatedNodeIds: string[];
419
+ relatedSourceIds: string[];
420
+ outputFormat: OutputFormat;
421
+ saved: boolean;
422
+ staged: boolean;
423
+ approvalId?: string;
424
+ approvalDir?: string;
425
+ outputAssets: OutputAsset[];
205
426
  }
206
427
  interface LintFinding {
207
428
  severity: "error" | "warning" | "info";
208
429
  code: string;
209
430
  message: string;
210
431
  pagePath?: string;
432
+ relatedSourceIds?: string[];
433
+ relatedPageIds?: string[];
434
+ suggestedQuery?: string;
435
+ evidence?: WebSearchResult[];
211
436
  }
212
437
  interface InboxImportSkip {
213
438
  path: string;
@@ -241,6 +466,201 @@ interface WatchRunRecord {
241
466
  interface WatchController {
242
467
  close(): Promise<void>;
243
468
  }
469
+ interface CompileState {
470
+ generatedAt: string;
471
+ rootSchemaHash: string;
472
+ projectSchemaHashes: Record<string, string>;
473
+ effectiveSchemaHashes: {
474
+ global: string;
475
+ projects: Record<string, string>;
476
+ };
477
+ projectConfigHash: string;
478
+ analyses: Record<string, string>;
479
+ sourceHashes: Record<string, string>;
480
+ sourceProjects: Record<string, string | null>;
481
+ outputHashes: Record<string, string>;
482
+ insightHashes: Record<string, string>;
483
+ candidateHistory: Record<string, {
484
+ sourceIds: string[];
485
+ status: "candidate" | "active";
486
+ }>;
487
+ }
488
+ interface LintOptions {
489
+ deep?: boolean;
490
+ web?: boolean;
491
+ }
492
+ interface ExploreOptions {
493
+ question: string;
494
+ steps?: number;
495
+ format?: OutputFormat;
496
+ review?: boolean;
497
+ }
498
+ interface ExploreStepResult {
499
+ step: number;
500
+ question: string;
501
+ answer: string;
502
+ savedPath?: string;
503
+ stagedPath?: string;
504
+ savedPageId: string;
505
+ citations: string[];
506
+ followUpQuestions: string[];
507
+ outputFormat: OutputFormat;
508
+ outputAssets: OutputAsset[];
509
+ }
510
+ interface ExploreResult {
511
+ rootQuestion: string;
512
+ hubPath?: string;
513
+ stagedHubPath?: string;
514
+ hubPageId: string;
515
+ stepCount: number;
516
+ steps: ExploreStepResult[];
517
+ suggestedQuestions: string[];
518
+ outputFormat: OutputFormat;
519
+ staged: boolean;
520
+ approvalId?: string;
521
+ approvalDir?: string;
522
+ hubAssets: OutputAsset[];
523
+ }
524
+ interface OutputAsset {
525
+ id: string;
526
+ role: OutputAssetRole;
527
+ path: string;
528
+ mimeType: string;
529
+ width?: number;
530
+ height?: number;
531
+ dataPath?: string;
532
+ }
533
+ interface ChartDatum {
534
+ label: string;
535
+ value: number;
536
+ }
537
+ interface ChartSpec {
538
+ kind: "bar" | "line";
539
+ title: string;
540
+ subtitle?: string;
541
+ xLabel?: string;
542
+ yLabel?: string;
543
+ seriesLabel?: string;
544
+ data: ChartDatum[];
545
+ notes?: string[];
546
+ }
547
+ interface SceneElement {
548
+ kind: "shape" | "label";
549
+ shape?: "rect" | "circle" | "line";
550
+ x: number;
551
+ y: number;
552
+ width?: number;
553
+ height?: number;
554
+ radius?: number;
555
+ text?: string;
556
+ fontSize?: number;
557
+ fill?: string;
558
+ stroke?: string;
559
+ strokeWidth?: number;
560
+ opacity?: number;
561
+ }
562
+ interface SceneSpec {
563
+ title: string;
564
+ alt: string;
565
+ background?: string;
566
+ width?: number;
567
+ height?: number;
568
+ elements: SceneElement[];
569
+ }
570
+ interface ScheduledCompileTask {
571
+ type: "compile";
572
+ approve?: boolean;
573
+ }
574
+ interface ScheduledLintTask {
575
+ type: "lint";
576
+ deep?: boolean;
577
+ web?: boolean;
578
+ }
579
+ interface ScheduledQueryTask {
580
+ type: "query";
581
+ question: string;
582
+ format?: OutputFormat;
583
+ save?: boolean;
584
+ }
585
+ interface ScheduledExploreTask {
586
+ type: "explore";
587
+ question: string;
588
+ steps?: number;
589
+ format?: OutputFormat;
590
+ }
591
+ type ScheduledTaskConfig = ScheduledCompileTask | ScheduledLintTask | ScheduledQueryTask | ScheduledExploreTask;
592
+ interface ScheduleTriggerConfig {
593
+ cron?: string;
594
+ every?: string;
595
+ }
596
+ interface ScheduleJobConfig {
597
+ enabled?: boolean;
598
+ when: ScheduleTriggerConfig;
599
+ task: ScheduledTaskConfig;
600
+ }
601
+ interface ProviderRoleExecutorConfig {
602
+ type: "provider";
603
+ provider: string;
604
+ }
605
+ interface CommandRoleExecutorConfig {
606
+ type: "command";
607
+ command: string[];
608
+ cwd?: string;
609
+ env?: Record<string, string>;
610
+ timeoutMs?: number;
611
+ }
612
+ type RoleExecutorConfig = ProviderRoleExecutorConfig | CommandRoleExecutorConfig;
613
+ interface OrchestrationRoleConfig {
614
+ executor: RoleExecutorConfig;
615
+ }
616
+ interface OrchestrationConfig {
617
+ maxParallelRoles?: number;
618
+ compilePostPass?: boolean;
619
+ roles?: Partial<Record<OrchestrationRole, OrchestrationRoleConfig>>;
620
+ }
621
+ interface OrchestrationFinding {
622
+ role: OrchestrationRole;
623
+ severity: "error" | "warning" | "info";
624
+ message: string;
625
+ relatedPageIds?: string[];
626
+ relatedSourceIds?: string[];
627
+ suggestedQuery?: string;
628
+ }
629
+ interface OrchestrationProposal {
630
+ path: string;
631
+ content: string;
632
+ reason: string;
633
+ }
634
+ interface OrchestrationRoleResult {
635
+ role: OrchestrationRole;
636
+ summary?: string;
637
+ findings: OrchestrationFinding[];
638
+ questions: string[];
639
+ proposals: OrchestrationProposal[];
640
+ }
641
+ interface ScheduleStateRecord {
642
+ jobId: string;
643
+ enabled: boolean;
644
+ taskType: ScheduledTaskConfig["type"];
645
+ nextRunAt?: string;
646
+ lastRunAt?: string;
647
+ lastStatus?: "success" | "failed";
648
+ lastSessionId?: string;
649
+ lastApprovalId?: string;
650
+ error?: string;
651
+ }
652
+ interface ScheduledRunResult {
653
+ jobId: string;
654
+ taskType: ScheduledTaskConfig["type"];
655
+ startedAt: string;
656
+ finishedAt: string;
657
+ success: boolean;
658
+ approvalId?: string;
659
+ error?: string;
660
+ }
661
+ interface ScheduleController {
662
+ close(): Promise<void>;
663
+ }
244
664
 
245
665
  declare function defaultVaultConfig(): VaultConfig;
246
666
  declare function defaultVaultSchema(): string;
@@ -259,9 +679,42 @@ declare function importInbox(rootDir: string, inputDir?: string): Promise<InboxI
259
679
  declare function listManifests(rootDir: string): Promise<SourceManifest[]>;
260
680
  declare function readExtractedText(rootDir: string, manifest: SourceManifest): Promise<string | undefined>;
261
681
 
262
- declare function initVault(rootDir: string): Promise<void>;
263
- declare function compileVault(rootDir: string): Promise<CompileResult>;
264
- declare function queryVault(rootDir: string, question: string, save?: boolean): Promise<QueryResult>;
682
+ declare function createMcpServer(rootDir: string): Promise<McpServer>;
683
+ declare function startMcpServer(rootDir: string, stdin?: Readable, stdout?: Writable): Promise<{
684
+ close: () => Promise<void>;
685
+ }>;
686
+
687
+ declare function createProvider(id: string, config: ProviderConfig, rootDir: string): Promise<ProviderAdapter>;
688
+ declare function getProviderForTask(rootDir: string, task: keyof Awaited<ReturnType<typeof loadVaultConfig>>["config"]["tasks"]): Promise<ProviderAdapter>;
689
+ declare function assertProviderCapability(provider: ProviderAdapter, capability: ProviderCapability): void;
690
+
691
+ interface VaultSchema {
692
+ path: string;
693
+ content: string;
694
+ hash: string;
695
+ }
696
+ interface LoadedVaultSchemas {
697
+ root: VaultSchema;
698
+ projects: Record<string, VaultSchema>;
699
+ effective: {
700
+ global: VaultSchema;
701
+ projects: Record<string, VaultSchema>;
702
+ };
703
+ }
704
+ declare function loadVaultSchemas(rootDir: string): Promise<LoadedVaultSchemas>;
705
+ declare function loadVaultSchema(rootDir: string): Promise<VaultSchema>;
706
+
707
+ declare function listApprovals(rootDir: string): Promise<ApprovalSummary[]>;
708
+ declare function readApproval(rootDir: string, approvalId: string): Promise<ApprovalDetail>;
709
+ declare function acceptApproval(rootDir: string, approvalId: string, targets?: string[]): Promise<ReviewActionResult>;
710
+ declare function rejectApproval(rootDir: string, approvalId: string, targets?: string[]): Promise<ReviewActionResult>;
711
+ declare function listCandidates(rootDir: string): Promise<CandidateRecord[]>;
712
+ declare function promoteCandidate(rootDir: string, target: string): Promise<CandidateRecord>;
713
+ declare function archiveCandidate(rootDir: string, target: string): Promise<CandidateRecord>;
714
+ declare function initVault(rootDir: string, options?: InitOptions): Promise<void>;
715
+ declare function compileVault(rootDir: string, options?: CompileOptions): Promise<CompileResult>;
716
+ declare function queryVault(rootDir: string, options: QueryOptions): Promise<QueryResult>;
717
+ declare function exploreVault(rootDir: string, options: ExploreOptions): Promise<ExploreResult>;
265
718
  declare function searchVault(rootDir: string, query: string, limit?: number): Promise<SearchResult[]>;
266
719
  declare function listPages(rootDir: string): Promise<GraphPage[]>;
267
720
  declare function readPage(rootDir: string, relativePath: string): Promise<{
@@ -282,37 +735,25 @@ declare function getWorkspaceInfo(rootDir: string): Promise<{
282
735
  sourceCount: number;
283
736
  pageCount: number;
284
737
  }>;
285
- declare function lintVault(rootDir: string): Promise<LintFinding[]>;
738
+ declare function lintVault(rootDir: string, options?: LintOptions): Promise<LintFinding[]>;
286
739
  declare function bootstrapDemo(rootDir: string, input?: string): Promise<{
287
740
  manifestId?: string;
288
741
  compile?: CompileResult;
289
742
  }>;
290
743
 
291
- declare function installAgent(rootDir: string, agent: "codex" | "claude" | "cursor"): Promise<string>;
292
- declare function installConfiguredAgents(rootDir: string): Promise<string[]>;
293
-
294
- interface VaultSchema {
295
- path: string;
296
- content: string;
297
- hash: string;
298
- isLegacyPath: boolean;
299
- }
300
- declare function loadVaultSchema(rootDir: string): Promise<VaultSchema>;
301
-
302
744
  declare function startGraphServer(rootDir: string, port?: number): Promise<{
303
745
  port: number;
304
746
  close: () => Promise<void>;
305
747
  }>;
748
+ declare function exportGraphHtml(rootDir: string, outputPath: string): Promise<string>;
306
749
 
307
- declare function createMcpServer(rootDir: string): Promise<McpServer>;
308
- declare function startMcpServer(rootDir: string, stdin?: Readable, stdout?: Writable): Promise<{
309
- close: () => Promise<void>;
310
- }>;
750
+ declare function listSchedules(rootDir: string): Promise<ScheduleStateRecord[]>;
751
+ declare function runSchedule(rootDir: string, jobId: string): Promise<ScheduledRunResult>;
752
+ declare function serveSchedules(rootDir: string, pollMs?: number): Promise<ScheduleController>;
311
753
 
312
754
  declare function watchVault(rootDir: string, options?: WatchOptions): Promise<WatchController>;
313
755
 
314
- declare function createProvider(id: string, config: ProviderConfig, rootDir: string): Promise<ProviderAdapter>;
315
- declare function getProviderForTask(rootDir: string, task: keyof Awaited<ReturnType<typeof loadVaultConfig>>["config"]["tasks"]): Promise<ProviderAdapter>;
316
- declare function assertProviderCapability(provider: ProviderAdapter, capability: ProviderCapability): void;
756
+ declare function createWebSearchAdapter(id: string, config: WebSearchProviderConfig, rootDir: string): Promise<WebSearchAdapter>;
757
+ declare function getWebSearchAdapterForTask(rootDir: string, task: "deepLintProvider"): Promise<WebSearchAdapter>;
317
758
 
318
- export { type AnalyzedTerm, type ClaimStatus, type CompileResult, type Freshness, type GenerationAttachment, type GenerationRequest, type GenerationResponse, type GraphArtifact, type GraphEdge, type GraphNode, type GraphPage, type InboxImportResult, type InboxImportSkip, type LintFinding, type PageKind, type Polarity, type ProviderAdapter, type ProviderCapability, type ProviderConfig, type ProviderType, type QueryResult, type ResolvedPaths, type SearchResult, type SourceAnalysis, type SourceAttachment, type SourceClaim, type SourceManifest, type VaultConfig, type WatchController, type WatchOptions, type WatchRunRecord, assertProviderCapability, bootstrapDemo, compileVault, createMcpServer, createProvider, defaultVaultConfig, defaultVaultSchema, getProviderForTask, getWorkspaceInfo, importInbox, ingestInput, initVault, initWorkspace, installAgent, installConfiguredAgents, lintVault, listManifests, listPages, loadVaultConfig, loadVaultSchema, providerCapabilitySchema, providerTypeSchema, queryVault, readExtractedText, readPage, resolvePaths, searchVault, startGraphServer, startMcpServer, watchVault };
759
+ export { 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 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, 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 };