@fortemi/core 2026.6.0 → 2026.6.1

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 CHANGED
@@ -38,7 +38,7 @@ Most browser note and knowledge apps choose between a thin IndexedDB wrapper, a
38
38
  | Queryable knowledge | SQL-backed repositories for notes, links, tags, collections, SKOS concepts, jobs, and search |
39
39
  | Retrieval quality | Full-text search, pgvector-backed semantic search, hybrid ranking, snippets, facets, and filters |
40
40
  | AI-ready workflows | Optional embeddings, local LLM capability discovery, job provenance, and fallback routing |
41
- | Portable archives | Knowledge Shard tar.gz import/export with checksums and JSON format parity |
41
+ | Portable archives | Knowledge Shard tar.gz import/export with set-scoped exports, chunked imports, checksums, and JSON format parity |
42
42
  | Agent integration | Manifest-backed tools and direct helper functions for bridge adapters and automation |
43
43
  | UI freedom | A headless package you can use from React, another framework, a browser extension, or a custom host |
44
44
 
@@ -111,7 +111,7 @@ await registerServiceWorker()
111
111
  | Event bus | Typed subscriptions for note, job, archive, and capability events |
112
112
  | Capability system | Embeddings, local LLM, GPU detection, local-provider discovery, fallback routing |
113
113
  | Job queue | Server-compatible background workflow for revisions, titles, embeddings, concepts, and links |
114
- | Knowledge Shards | Tar.gz import/export with checksums and JSON format parity |
114
+ | Knowledge Shards | Tar.gz import/export with checksums, progress callbacks, yielding imports, set-scoped embedding exports, and JSON format parity |
115
115
  | Service-worker helpers | Route registration primitives for standalone browser integration |
116
116
 
117
117
  ## Search and Knowledge Model
@@ -144,11 +144,11 @@ Use the manifest when a host needs to advertise Fortemi operations to an agent r
144
144
  | `idb` | IndexedDB-backed PGlite data directory | Firefox and broad compatibility |
145
145
  | `memory` | In-memory database | Tests, demos, restricted browser contexts |
146
146
 
147
- Data stays in the selected browser storage mode unless your application explicitly exports it, imports it, or wires external providers. Optional AI capabilities are opt-in and can be routed to local WASM, local provider servers, or host-provided integrations depending on your product requirements.
147
+ Data stays in the selected browser storage mode unless your application explicitly exports it, imports it, or wires external providers. Optional AI capabilities are opt-in and can be routed to local WASM, local provider servers, OpenAI-compatible APIs, or host-provided integrations depending on your product requirements. API keys should live only in browser or machine secure storage; if secure storage is unavailable, do not persist them.
148
148
 
149
149
  ## React Bindings
150
150
 
151
- For React applications, install `@fortemi/react`. It wraps `@fortemi/core` with `FortemiProvider`, context access, and 21 hooks.
151
+ For React applications, install `@fortemi/react`. It wraps `@fortemi/core` with `FortemiProvider`, context access, worker-mode PGlite, graph visualization primitives, and the React hook surface.
152
152
 
153
153
  ```bash
154
154
  pnpm add @fortemi/react @fortemi/core react
package/dist/index.d.ts CHANGED
@@ -132,6 +132,56 @@ declare class TypedEventBus {
132
132
  type PersistenceMode = 'opfs' | 'idb' | 'memory';
133
133
  declare function createPGliteInstance(persistence: PersistenceMode, archiveName?: string): Promise<PGlite>;
134
134
 
135
+ /**
136
+ * Type-safe client for the PGlite Worker.
137
+ *
138
+ * PGliteWorkerClient wraps a Worker instance and exposes the same surface as
139
+ * PGlite (query / exec / transaction) but serialises every call to a typed
140
+ * postMessage exchange. Each outgoing request is tagged with a UUIDv7 `id`;
141
+ * the worker echoes that id in its reply so the client can resolve or reject
142
+ * the matching Promise.
143
+ *
144
+ * TransactionProxy is a lightweight wrapper handed to the callback in
145
+ * transaction(), forwarding TX_QUERY / TX_EXEC messages with the active txId.
146
+ */
147
+ declare class PGliteWorkerClient {
148
+ private worker;
149
+ private pending;
150
+ private readyPromise;
151
+ private resolveReady;
152
+ constructor(worker: Worker);
153
+ /** Resolves when the worker broadcasts READY after database initialisation. */
154
+ waitReady(): Promise<void>;
155
+ private send;
156
+ query<T = Record<string, unknown>>(sql: string, params?: unknown[]): Promise<{
157
+ rows: T[];
158
+ fields?: Array<{
159
+ name: string;
160
+ dataTypeID: number;
161
+ }>;
162
+ }>;
163
+ exec(sql: string): Promise<void>;
164
+ transaction<T>(fn: (tx: TransactionProxy) => Promise<T>): Promise<T>;
165
+ /** Forward TX_QUERY for TransactionProxy — not part of the public surface. */
166
+ _txQuery<T>(txId: string, sql: string, params?: unknown[]): Promise<{
167
+ rows: T[];
168
+ }>;
169
+ /** Forward TX_EXEC for TransactionProxy — not part of the public surface. */
170
+ _txExec(txId: string, sql: string): Promise<void>;
171
+ ping(): Promise<void>;
172
+ close(): Promise<void>;
173
+ }
174
+ /** Proxy passed to the transaction callback — scopes queries to the active txId. */
175
+ declare class TransactionProxy {
176
+ private client;
177
+ private txId;
178
+ constructor(client: PGliteWorkerClient, txId: string);
179
+ query<T = Record<string, unknown>>(sql: string, params?: unknown[]): Promise<{
180
+ rows: T[];
181
+ }>;
182
+ exec(sql: string): Promise<void>;
183
+ }
184
+
135
185
  interface QueryResult<T = Record<string, unknown>> {
136
186
  rows: T[];
137
187
  fields?: Array<{
@@ -177,6 +227,24 @@ declare class PGliteStorageBackendFactory implements StorageBackendFactory {
177
227
  open(input: StorageOpenRequest): Promise<StorageBackend>;
178
228
  }
179
229
  declare const defaultStorageBackendFactory: PGliteStorageBackendFactory;
230
+ declare class PGliteWorkerStorageBackend implements StorageBackend {
231
+ readonly id: string;
232
+ private client;
233
+ readonly mode = "readwrite";
234
+ constructor(id: string, client: PGliteWorkerClient);
235
+ query<T = Record<string, unknown>>(sql: string, params?: unknown[]): Promise<QueryResult<T>>;
236
+ exec(sql: string): Promise<unknown>;
237
+ transaction<T>(fn: (tx: QueryExecutor) => Promise<T>): Promise<T>;
238
+ close(): Promise<void>;
239
+ }
240
+ interface PGliteWorkerStorageBackendFactoryOptions {
241
+ createWorker: () => Worker;
242
+ }
243
+ declare class PGliteWorkerStorageBackendFactory implements StorageBackendFactory {
244
+ private options;
245
+ constructor(options: PGliteWorkerStorageBackendFactoryOptions);
246
+ open(input: StorageOpenRequest): Promise<StorageBackend>;
247
+ }
180
248
 
181
249
  /**
182
250
  * Capability module system (ADR-002).
@@ -289,7 +357,7 @@ declare class ArchiveManager {
289
357
  private archives;
290
358
  private persistence;
291
359
  private backendFactory;
292
- constructor(persistenceOrFactory: PersistenceMode | StorageBackendFactory, events?: TypedEventBus | undefined);
360
+ constructor(persistenceOrFactory: PersistenceMode | StorageBackendFactory, events?: TypedEventBus | undefined, persistenceOverride?: PersistenceMode);
293
361
  getCurrentArchiveName(): string;
294
362
  getDb(): StorageBackend | null;
295
363
  open(archiveName?: string): Promise<StorageBackend>;
@@ -471,56 +539,6 @@ type WorkerResponse = {
471
539
  type: 'READY';
472
540
  };
473
541
 
474
- /**
475
- * Type-safe client for the PGlite Worker.
476
- *
477
- * PGliteWorkerClient wraps a Worker instance and exposes the same surface as
478
- * PGlite (query / exec / transaction) but serialises every call to a typed
479
- * postMessage exchange. Each outgoing request is tagged with a UUIDv7 `id`;
480
- * the worker echoes that id in its reply so the client can resolve or reject
481
- * the matching Promise.
482
- *
483
- * TransactionProxy is a lightweight wrapper handed to the callback in
484
- * transaction(), forwarding TX_QUERY / TX_EXEC messages with the active txId.
485
- */
486
- declare class PGliteWorkerClient {
487
- private worker;
488
- private pending;
489
- private readyPromise;
490
- private resolveReady;
491
- constructor(worker: Worker);
492
- /** Resolves when the worker broadcasts READY after database initialisation. */
493
- waitReady(): Promise<void>;
494
- private send;
495
- query<T = Record<string, unknown>>(sql: string, params?: unknown[]): Promise<{
496
- rows: T[];
497
- fields?: Array<{
498
- name: string;
499
- dataTypeID: number;
500
- }>;
501
- }>;
502
- exec(sql: string): Promise<void>;
503
- transaction<T>(fn: (tx: TransactionProxy) => Promise<T>): Promise<T>;
504
- /** Forward TX_QUERY for TransactionProxy — not part of the public surface. */
505
- _txQuery<T>(txId: string, sql: string, params?: unknown[]): Promise<{
506
- rows: T[];
507
- }>;
508
- /** Forward TX_EXEC for TransactionProxy — not part of the public surface. */
509
- _txExec(txId: string, sql: string): Promise<void>;
510
- ping(): Promise<void>;
511
- close(): Promise<void>;
512
- }
513
- /** Proxy passed to the transaction callback — scopes queries to the active txId. */
514
- declare class TransactionProxy {
515
- private client;
516
- private txId;
517
- constructor(client: PGliteWorkerClient, txId: string);
518
- query<T = Record<string, unknown>>(sql: string, params?: unknown[]): Promise<{
519
- rows: T[];
520
- }>;
521
- exec(sql: string): Promise<void>;
522
- }
523
-
524
542
  /**
525
543
  * EmbeddingSetsRepository - named, filter, and virtual embedding set API.
526
544
  */
@@ -2350,6 +2368,50 @@ declare class FallbackRouter implements InferenceProvider {
2350
2368
  private applyCooldown;
2351
2369
  }
2352
2370
 
2371
+ interface FortemiBridgeCapabilities {
2372
+ secureSecrets: boolean;
2373
+ providerRouting: boolean;
2374
+ localNetworkAccess: boolean;
2375
+ auditLog: boolean;
2376
+ }
2377
+ interface FortemiSecretStore {
2378
+ isAvailable(): boolean | Promise<boolean>;
2379
+ getSecret(key: string): Promise<string | null>;
2380
+ setSecret(key: string, value: string): Promise<void>;
2381
+ deleteSecret(key: string): Promise<void>;
2382
+ }
2383
+ interface BridgeProviderInfo {
2384
+ id: string;
2385
+ name: string;
2386
+ tier: 'remote' | 'local-server' | 'in-browser' | 'chrome-ai';
2387
+ requiresApiKey: boolean;
2388
+ capabilities: {
2389
+ chat?: boolean;
2390
+ embeddings?: boolean;
2391
+ streaming?: boolean;
2392
+ };
2393
+ }
2394
+ interface FortemiInferenceRouter {
2395
+ listProviders(): Promise<BridgeProviderInfo[]>;
2396
+ probeProvider(providerId: string): Promise<ProbeResult>;
2397
+ complete(providerId: string, request: CompletionRequest): Promise<CompletionResponse>;
2398
+ embed(providerId: string, request: EmbedRequest): Promise<EmbedResponse>;
2399
+ stream?(providerId: string, request: CompletionRequest): AsyncIterable<StreamChunk>;
2400
+ }
2401
+ interface FortemiBridge {
2402
+ version: string;
2403
+ capabilities(): Promise<FortemiBridgeCapabilities>;
2404
+ secrets: FortemiSecretStore;
2405
+ inference?: FortemiInferenceRouter;
2406
+ }
2407
+ interface FortemiBridgeHost {
2408
+ fortemiBridge?: FortemiBridge;
2409
+ fortemiSecureStorage?: FortemiSecretStore;
2410
+ }
2411
+ declare function getFortemiBridge(host?: FortemiBridgeHost | undefined): FortemiBridge | null;
2412
+ declare function getFortemiSecretStore(host?: FortemiBridgeHost | undefined): FortemiSecretStore | null;
2413
+ declare function hasFortemiSecureSecrets(host?: FortemiBridgeHost | undefined): Promise<boolean>;
2414
+
2353
2415
  type CspDirectiveName = 'default-src' | 'base-uri' | 'object-src' | 'frame-ancestors' | 'img-src' | 'font-src' | 'style-src' | 'script-src' | 'connect-src' | 'worker-src' | 'manifest-src' | 'report-uri';
2354
2416
  type CspDirectives = Partial<Record<CspDirectiveName, string[]>>;
2355
2417
  interface PluginCspOptions {
@@ -2425,12 +2487,24 @@ interface ExportOptions {
2425
2487
  collectionId?: string;
2426
2488
  /** Filter to notes with this tag (e.g. 'app:research' for app-scoped export). */
2427
2489
  tag?: string;
2490
+ /** Export only these embedding sets and their member/vector rows. */
2491
+ embeddingSetIds?: string[];
2428
2492
  }
2429
2493
  /** Conflict resolution strategy for shard import. */
2430
2494
  type ConflictStrategy = 'skip' | 'replace' | 'error';
2431
2495
  /** Options for shard import. */
2432
2496
  interface ImportOptions {
2433
2497
  conflictStrategy?: ConflictStrategy;
2498
+ /** Rows processed between cooperative yields. Defaults to 250. */
2499
+ batchSize?: number;
2500
+ /** Progress callback for long-running import phases. */
2501
+ onProgress?: (progress: ImportProgress) => void;
2502
+ }
2503
+ type ImportProgressPhase = 'unpack' | 'validate' | 'collections' | 'notes' | 'skos' | 'links' | 'provenance' | 'embedding_sets' | 'embeddings' | 'embedding_set_members' | 'graph' | 'communities' | 'index';
2504
+ interface ImportProgress {
2505
+ phase: ImportProgressPhase;
2506
+ done: number;
2507
+ total: number;
2434
2508
  }
2435
2509
  /** Per-entity import counts. */
2436
2510
  interface ImportCounts {
@@ -2903,12 +2977,33 @@ interface AiwgReviewDecisionExport {
2903
2977
  source_export_schema_version: string;
2904
2978
  decisions: AiwgReviewDecision[];
2905
2979
  }
2980
+ interface AiwgIndexGraphOptions {
2981
+ communityFacet?: string;
2982
+ communityTagPrefix?: string;
2983
+ relationshipWeights?: Record<string, number>;
2984
+ includeDanglingRelationships?: boolean;
2985
+ }
2906
2986
  declare function validateAiwgFortemiIndexExport(value: unknown): AiwgIndexValidationResult;
2907
2987
  declare function assertAiwgFortemiIndexExport(value: unknown): AiwgFortemiIndexExport;
2908
2988
  declare function getAiwgFortemiFacets(items: AiwgFortemiRecord[]): Record<string, Record<string, number>>;
2909
2989
  declare function queryAiwgFortemiIndex(index: AiwgFortemiIndexExport, query?: string, options?: AiwgIndexQueryOptions): AiwgIndexQueryResult;
2910
2990
  declare function createAiwgReviewDecisionExport(source: AiwgFortemiIndexExport, decisions: AiwgReviewDecision[], generatedAt?: string): AiwgReviewDecisionExport;
2991
+ declare function aiwgFortemiIndexToCommunityGraph(index: AiwgFortemiIndexExport, options?: AiwgIndexGraphOptions): {
2992
+ nodes: {
2993
+ id: string;
2994
+ }[];
2995
+ edges: {
2996
+ source: string;
2997
+ target: string;
2998
+ kind: string;
2999
+ weight: number;
3000
+ }[];
3001
+ communities: {
3002
+ id: string;
3003
+ nodes: string[];
3004
+ }[];
3005
+ };
2911
3006
 
2912
- declare const VERSION = "2026.6.0";
3007
+ declare const VERSION = "2026.6.1";
2913
3008
 
2914
- export { type AiwgFortemiIndexExport, type AiwgFortemiProvenance, type AiwgFortemiRecord, type AiwgFortemiRecordSource, type AiwgFortemiRecordType, type AiwgFortemiRelationship, type AiwgIndexQueryOptions, type AiwgIndexQueryResult, type AiwgIndexValidationResult, type AiwgPrivacyClassification, type AiwgProvenanceConfidence, type AiwgReviewAction, type AiwgReviewDecision, type AiwgReviewDecisionExport, type ArchiveInfo, ArchiveManager, type AttachInput, type AttachmentBlobRow, type AttachmentRow, AttachmentsRepository, type BlobStore, type BridgeCapability, type BrowserNoteExport, CURRENT_SHARD_VERSION, type CapabilityInfo, CapabilityManager, type CapabilityName, type CapabilityState, type CaptureKnowledgeInput, CaptureKnowledgeInputSchema, type CaptureKnowledgeResult, type CollectionCreateInput, type CollectionRow, CollectionsRepository, CommunitiesRepository, type CommunityAssignmentView, type CommunityCreateInput, type CommunityFilterDefinition, type CommunityGraph, type CommunityOptions, type CommunitySourceDescriptor, type CommunitySourceType, type CommunitySummary, type CompletionRequest, type CompletionResponse, type ConditionResult, type ConflictStrategy, type CooldownConfig, type CooldownEvent, type CspDirectiveName, type CspDirectives, type CspViolationReport, type DatabaseClient, type DiscoveredProvider, type DiscoveryOptions, type EmbedFunction, type EmbedRequest, type EmbedResponse, type EmbeddingCompatibilityPolicy, type EmbeddingSetCreateInput, type EmbeddingSetCriteria, type EmbeddingSetDescriptor, type EmbeddingSetEmbeddingInput, type EmbeddingSetFreshness, type EmbeddingSetKind, type EmbeddingSetMode, type EmbeddingSetRow, type EmbeddingSetSelector, EmbeddingSetsRepository, type EnqueueJobInput, type ErrorCategory, type EventMap, type ExportOptions, type FallbackEvent, FallbackRouter, type FallbackRouterConfig, type FortemiConfig, type FortemiCore, type FortemiToolDefinition, FortemiToolManifest, type GetNoteInput, GetNoteInputSchema, type GpuCapabilities, type GraphCommunity, type GraphEdge, type GraphNode, GraphRepository, type IDisposable, type ImportCounts, type ImportOptions, type ImportResult, type InferenceCapabilities, type InferenceProvider, JOB_CAPABILITIES, JOB_PRIORITIES, type JobQueueOptions, JobQueueWorker, type JobStatus, type JobType, LOCAL_ENDPOINTS, type LinkRow, LinksRepository, type ListNotesInput, ListNotesInputSchema, type LlmCapabilityOptions, type LlmCompleteFn, type LoadedPluginScript, type LocalEndpoint, type ManageArchiveInput, ManageArchiveInputSchema, type ManageArchiveResult, type ManageAttachmentsInput, ManageAttachmentsInputSchema, type ManageAttachmentsResult, type ManageCapabilitiesInput, ManageCapabilitiesInputSchema, type ManageCapabilitiesResult, type ManageCollectionsInput, ManageCollectionsInputSchema, type ManageCollectionsResult, type ManageLinksInput, ManageLinksInputSchema, type ManageLinksResult, type ManageNoteInput, ManageNoteInputSchema, type ManageNoteResult, type ManageTagsInput, ManageTagsInputSchema, type ManageTagsResult, MemoryBlobStore, type Migration, MigrationRunner, type ModelCategory, type ModelFitResult, type ModelInfo, type NoteCreateInput, type NoteFull, type NoteListOptions, type NoteRevision, type NoteSummary, type NoteUpdateInput, NotesRepository, OpenAICompatibleProvider, type OpenAIProviderConfig, PGliteStorageBackend, PGliteStorageBackendFactory, PGliteWorkerClient, type PaginatedResult, type PersistenceMode, type PluginCspOptions, type PluginScriptDescriptor, type PluginScriptPolicy, type ProbeResult, type ProbeStatus, type ProviderCapabilities, ProviderRegistry, type ProviderTier, type QueryExecutor, type QueryResult, type RecommendedTier, type ResolvedEmbeddingRow, type ResolvedEmbeddingSet, type RouteHandler, SHARD_FORMAT, type SWRegistrationResult, type SearchFacets, type SearchInput, SearchInputSchema, type SearchOptions, SearchRepository, type SearchResponse, type SearchResult, type ShardCollection, type ShardComponent, type ShardEmbedding, type ShardEmbeddingSet, type ShardEmbeddingSetMember, type ShardLink, type ShardManifest, type ShardNote, type ShardNoteSkosTag, type ShardProvenanceEdge, type ShardSkosConcept, type ShardSkosRelation, type ShardSkosScheme, type ShardTag, type SimilarityGraphCacheKey, type SimilarityGraphOptions, type SimilarityGraphRequest, type SimilarityGraphResult, type SkosConcept, type SkosRelation, SkosRepository, type SkosScheme, type StorageBackend, type StorageBackendFactory, type StorageOpenRequest, type StorageTopology, type StreamChunk, TagsRepository, TransactionProxy, TypedEventBus, VERSION, type VirtualEmbeddingSetDefinition, type VirtualEmbeddingSetSource, type VirtualEmbeddingSetValidationError, type VirtualMaterializationPolicy, type VramTier, type WorkerRequest, type WorkerResponse, aiRevisionHandler, allMigrations, appendPluginScript, assertAiwgFortemiIndexExport, buildNoteConditions, buildPluginCsp, captureKnowledge, chunkText, classifyError, classifyModel, collectionFromShard, collectionToShard, computeHash, computeSri, conceptTaggingHandler, cosineSimilarity, createAiwgReviewDecisionExport, createBlobStore, createCspReportHandler, createFortemi, createLegacyProvider, createPGliteInstance, createRoutes, defaultStorageBackendFactory, detectCommunities, detectGpuCapabilities, detectInferenceCapabilities, discoverLocalProviders, embeddingFromShard, embeddingGenerationHandler, embeddingSetFromShard, embeddingSetMemberToShard, embeddingSetToShard, embeddingToShard, enqueueFullWorkflow, enqueueJob, enqueueNoteCreationJobs, estimateModelFit, estimateVramMB, estimateVramTier, exportShard, fetchPluginScript, fortemiManifest, generateId, getAiwgFortemiFacets, getEmbedFunction, getJobQueueStatus, getLlmFunction, getNote, importShard, isPluginScriptAllowed, linkFromShard, linkToShard, linkingHandler, listNotes, manageArchive, manageAttachments, manageCapabilities, manageCollections, manageLinks, manageNote, manageTags, matchRoute, noteFromShard, noteSkosTagToShard, noteToShard, packTarGz, parseCspReport, provenanceEdgeToShard, queryAiwgFortemiIndex, registerLlmCapability, registerSemanticCapability, registerServiceWorker, searchTool, selectLlmModel, setEmbedFunction, setLlmFunction, sha256Hex, skosConceptToShard, skosRelationToShard, skosSchemeToShard, suggestTags, tagsFromShard, tagsToShard, titleGenerationHandler, unpackTarGz, unregisterLlmCapability, unregisterSemanticCapability, validateAiwgFortemiIndexExport, validateChecksums, verifySri };
3009
+ export { type AiwgFortemiIndexExport, type AiwgFortemiProvenance, type AiwgFortemiRecord, type AiwgFortemiRecordSource, type AiwgFortemiRecordType, type AiwgFortemiRelationship, type AiwgIndexGraphOptions, type AiwgIndexQueryOptions, type AiwgIndexQueryResult, type AiwgIndexValidationResult, type AiwgPrivacyClassification, type AiwgProvenanceConfidence, type AiwgReviewAction, type AiwgReviewDecision, type AiwgReviewDecisionExport, type ArchiveInfo, ArchiveManager, type AttachInput, type AttachmentBlobRow, type AttachmentRow, AttachmentsRepository, type BlobStore, type BridgeCapability, type BridgeProviderInfo, type BrowserNoteExport, CURRENT_SHARD_VERSION, type CapabilityInfo, CapabilityManager, type CapabilityName, type CapabilityState, type CaptureKnowledgeInput, CaptureKnowledgeInputSchema, type CaptureKnowledgeResult, type CollectionCreateInput, type CollectionRow, CollectionsRepository, CommunitiesRepository, type CommunityAssignmentView, type CommunityCreateInput, type CommunityFilterDefinition, type CommunityGraph, type CommunityOptions, type CommunitySourceDescriptor, type CommunitySourceType, type CommunitySummary, type CompletionRequest, type CompletionResponse, type ConditionResult, type ConflictStrategy, type CooldownConfig, type CooldownEvent, type CspDirectiveName, type CspDirectives, type CspViolationReport, type DatabaseClient, type DiscoveredProvider, type DiscoveryOptions, type EmbedFunction, type EmbedRequest, type EmbedResponse, type EmbeddingCompatibilityPolicy, type EmbeddingSetCreateInput, type EmbeddingSetCriteria, type EmbeddingSetDescriptor, type EmbeddingSetEmbeddingInput, type EmbeddingSetFreshness, type EmbeddingSetKind, type EmbeddingSetMode, type EmbeddingSetRow, type EmbeddingSetSelector, EmbeddingSetsRepository, type EnqueueJobInput, type ErrorCategory, type EventMap, type ExportOptions, type FallbackEvent, FallbackRouter, type FallbackRouterConfig, type FortemiBridge, type FortemiBridgeCapabilities, type FortemiBridgeHost, type FortemiConfig, type FortemiCore, type FortemiInferenceRouter, type FortemiSecretStore, type FortemiToolDefinition, FortemiToolManifest, type GetNoteInput, GetNoteInputSchema, type GpuCapabilities, type GraphCommunity, type GraphEdge, type GraphNode, GraphRepository, type IDisposable, type ImportCounts, type ImportOptions, type ImportProgress, type ImportProgressPhase, type ImportResult, type InferenceCapabilities, type InferenceProvider, JOB_CAPABILITIES, JOB_PRIORITIES, type JobQueueOptions, JobQueueWorker, type JobStatus, type JobType, LOCAL_ENDPOINTS, type LinkRow, LinksRepository, type ListNotesInput, ListNotesInputSchema, type LlmCapabilityOptions, type LlmCompleteFn, type LoadedPluginScript, type LocalEndpoint, type ManageArchiveInput, ManageArchiveInputSchema, type ManageArchiveResult, type ManageAttachmentsInput, ManageAttachmentsInputSchema, type ManageAttachmentsResult, type ManageCapabilitiesInput, ManageCapabilitiesInputSchema, type ManageCapabilitiesResult, type ManageCollectionsInput, ManageCollectionsInputSchema, type ManageCollectionsResult, type ManageLinksInput, ManageLinksInputSchema, type ManageLinksResult, type ManageNoteInput, ManageNoteInputSchema, type ManageNoteResult, type ManageTagsInput, ManageTagsInputSchema, type ManageTagsResult, MemoryBlobStore, type Migration, MigrationRunner, type ModelCategory, type ModelFitResult, type ModelInfo, type NoteCreateInput, type NoteFull, type NoteListOptions, type NoteRevision, type NoteSummary, type NoteUpdateInput, NotesRepository, OpenAICompatibleProvider, type OpenAIProviderConfig, PGliteStorageBackend, PGliteStorageBackendFactory, PGliteWorkerClient, PGliteWorkerStorageBackend, PGliteWorkerStorageBackendFactory, type PGliteWorkerStorageBackendFactoryOptions, type PaginatedResult, type PersistenceMode, type PluginCspOptions, type PluginScriptDescriptor, type PluginScriptPolicy, type ProbeResult, type ProbeStatus, type ProviderCapabilities, ProviderRegistry, type ProviderTier, type QueryExecutor, type QueryResult, type RecommendedTier, type ResolvedEmbeddingRow, type ResolvedEmbeddingSet, type RouteHandler, SHARD_FORMAT, type SWRegistrationResult, type SearchFacets, type SearchInput, SearchInputSchema, type SearchOptions, SearchRepository, type SearchResponse, type SearchResult, type ShardCollection, type ShardComponent, type ShardEmbedding, type ShardEmbeddingSet, type ShardEmbeddingSetMember, type ShardLink, type ShardManifest, type ShardNote, type ShardNoteSkosTag, type ShardProvenanceEdge, type ShardSkosConcept, type ShardSkosRelation, type ShardSkosScheme, type ShardTag, type SimilarityGraphCacheKey, type SimilarityGraphOptions, type SimilarityGraphRequest, type SimilarityGraphResult, type SkosConcept, type SkosRelation, SkosRepository, type SkosScheme, type StorageBackend, type StorageBackendFactory, type StorageOpenRequest, type StorageTopology, type StreamChunk, TagsRepository, TransactionProxy, TypedEventBus, VERSION, type VirtualEmbeddingSetDefinition, type VirtualEmbeddingSetSource, type VirtualEmbeddingSetValidationError, type VirtualMaterializationPolicy, type VramTier, type WorkerRequest, type WorkerResponse, aiRevisionHandler, aiwgFortemiIndexToCommunityGraph, allMigrations, appendPluginScript, assertAiwgFortemiIndexExport, buildNoteConditions, buildPluginCsp, captureKnowledge, chunkText, classifyError, classifyModel, collectionFromShard, collectionToShard, computeHash, computeSri, conceptTaggingHandler, cosineSimilarity, createAiwgReviewDecisionExport, createBlobStore, createCspReportHandler, createFortemi, createLegacyProvider, createPGliteInstance, createRoutes, defaultStorageBackendFactory, detectCommunities, detectGpuCapabilities, detectInferenceCapabilities, discoverLocalProviders, embeddingFromShard, embeddingGenerationHandler, embeddingSetFromShard, embeddingSetMemberToShard, embeddingSetToShard, embeddingToShard, enqueueFullWorkflow, enqueueJob, enqueueNoteCreationJobs, estimateModelFit, estimateVramMB, estimateVramTier, exportShard, fetchPluginScript, fortemiManifest, generateId, getAiwgFortemiFacets, getEmbedFunction, getFortemiBridge, getFortemiSecretStore, getJobQueueStatus, getLlmFunction, getNote, hasFortemiSecureSecrets, importShard, isPluginScriptAllowed, linkFromShard, linkToShard, linkingHandler, listNotes, manageArchive, manageAttachments, manageCapabilities, manageCollections, manageLinks, manageNote, manageTags, matchRoute, noteFromShard, noteSkosTagToShard, noteToShard, packTarGz, parseCspReport, provenanceEdgeToShard, queryAiwgFortemiIndex, registerLlmCapability, registerSemanticCapability, registerServiceWorker, searchTool, selectLlmModel, setEmbedFunction, setLlmFunction, sha256Hex, skosConceptToShard, skosRelationToShard, skosSchemeToShard, suggestTags, tagsFromShard, tagsToShard, titleGenerationHandler, unpackTarGz, unregisterLlmCapability, unregisterSemanticCapability, validateAiwgFortemiIndexExport, validateChecksums, verifySri };