@fortemi/core 2026.7.15 → 2026.8.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/README.md CHANGED
@@ -39,7 +39,8 @@ Most browser note and knowledge apps choose between a thin IndexedDB wrapper, a
39
39
  | Queryable knowledge | SQL-backed repositories for notes, links, tags, collections, SKOS concepts, jobs, and search |
40
40
  | Retrieval quality | Full-text search, pgvector-backed semantic search, hybrid ranking, snippets, facets, and filters |
41
41
  | AI-ready workflows | Optional embeddings, local LLM capability discovery, job provenance, and fallback routing |
42
- | Portable archives | Knowledge Shard tar.gz import/export with set-scoped exports, chunked imports, checksums, BLAKE3-addressed blob sidecars, and profile-scoped conformance |
42
+ | Portable archives | Knowledge Shard tar.gz import/export with set-scoped exports, chunked imports, checksums, BLAKE3-addressed blob sidecars, profile-scoped conformance, and typed loss reports for omitted source identities |
43
+ | Source-addressed ingest | Atomic batch upsert keyed by tenant, archive, namespace, and external id, with replay-safe outcomes for PGlite and RecordStore |
43
44
  | Agent integration | Manifest-backed tools and direct helper functions for bridge adapters and automation |
44
45
  | UI freedom | A headless package you can use from React, another framework, a browser extension, or a custom host |
45
46
 
@@ -352,6 +353,7 @@ bytes.
352
353
  | Capability system | Embeddings, local LLM, GPU detection, local-provider discovery, fallback routing |
353
354
  | Job queue | Server-compatible background workflow for revisions, titles, embeddings, concepts, and links |
354
355
  | Knowledge Shards | Tar.gz import/export with checksums, BLAKE3-addressed blob sidecars, progress callbacks, yielding imports, set-scoped embedding exports, and profile-scoped conformance |
356
+ | Lifecycle controls | Source-addressed import, metadata-scoped search locators, and terminal purge receipts that omit raw external ids and content |
355
357
  | Service-worker helpers | Route registration primitives for standalone browser integration |
356
358
 
357
359
  ## Search and Knowledge Model
package/dist/index.d.ts CHANGED
@@ -40,6 +40,14 @@ interface EventMap {
40
40
  id: string;
41
41
  revisionNumber: number;
42
42
  };
43
+ 'source.upserted': {
44
+ counts: Record<string, number>;
45
+ importRunId: string;
46
+ };
47
+ 'purge.completed': {
48
+ counts: Record<string, number>;
49
+ receiptId: string;
50
+ };
43
51
  'search.reindexed': Record<string, never>;
44
52
  'embedding.ready': {
45
53
  noteId: string;
@@ -1542,6 +1550,58 @@ declare class EmbeddingSetsRepository {
1542
1550
  private inferDefinitionModel;
1543
1551
  private inferDefinitionDimension;
1544
1552
  }
1553
+ declare const REGISTERED_METADATA_PATHS: readonly [
1554
+ "provider",
1555
+ "model",
1556
+ "role",
1557
+ "event_kind",
1558
+ "sensitivity",
1559
+ "import_run_id"
1560
+ ];
1561
+ type RegisteredMetadataPath = typeof REGISTERED_METADATA_PATHS[number];
1562
+ type MetadataPredicate = {
1563
+ gte?: number | string;
1564
+ lte?: number | string;
1565
+ op: 'range';
1566
+ path: RegisteredMetadataPath;
1567
+ } | {
1568
+ op: 'eq';
1569
+ path: RegisteredMetadataPath;
1570
+ value: boolean | null | number | string;
1571
+ } | {
1572
+ op: 'exists';
1573
+ path: RegisteredMetadataPath;
1574
+ value?: boolean;
1575
+ } | {
1576
+ op: 'in';
1577
+ path: RegisteredMetadataPath;
1578
+ value: readonly (boolean | null | number | string)[];
1579
+ };
1580
+ interface EvidenceLocator {
1581
+ note_id: string;
1582
+ chunk?: {
1583
+ index: number;
1584
+ kind: 'attachment' | 'current' | 'title';
1585
+ };
1586
+ span?: {
1587
+ end: number;
1588
+ start: number;
1589
+ };
1590
+ source?: {
1591
+ external_id_hash: string;
1592
+ import_run_id: string;
1593
+ namespace: string;
1594
+ schema_version: string;
1595
+ };
1596
+ metadata_paths: RegisteredMetadataPath[];
1597
+ }
1598
+ interface MetadataPredicateConditionResult {
1599
+ conditions: string[];
1600
+ joins: string[];
1601
+ params: unknown[];
1602
+ nextIdx: number;
1603
+ }
1604
+ declare function buildMetadataPredicateConditions(options: Pick<SearchOptions, 'archive_id' | 'metadataPredicates' | 'tenant_id'>, startIdx: number): MetadataPredicateConditionResult;
1545
1605
  /**
1546
1606
  * Shared types for repository layer.
1547
1607
  * All repository methods use these types as inputs and outputs.
@@ -1628,6 +1688,7 @@ interface SearchResult {
1628
1688
  updated_at: Date;
1629
1689
  tags: string[];
1630
1690
  has_embedding?: boolean;
1691
+ locators?: EvidenceLocator[];
1631
1692
  }
1632
1693
  interface SearchFacets {
1633
1694
  tags: {
@@ -1662,6 +1723,9 @@ interface SearchOptions {
1662
1723
  format?: string;
1663
1724
  source?: string;
1664
1725
  visibility?: string;
1726
+ tenant_id?: string;
1727
+ archive_id?: null | string;
1728
+ metadataPredicates?: readonly MetadataPredicate[];
1665
1729
  include_facets?: boolean;
1666
1730
  mode?: 'auto' | 'hybrid' | 'semantic' | 'text';
1667
1731
  embeddingSetId?: string;
@@ -1756,6 +1820,8 @@ declare class SearchRepository {
1756
1820
  private scopeToResolvedEmbeddingRows;
1757
1821
  private fetchEmbeddingStatus;
1758
1822
  private attachEmbeddingStatus;
1823
+ private fetchLocatorMap;
1824
+ private metadataPaths;
1759
1825
  search(query: string, options?: SearchOptions, queryEmbedding?: number[]): Promise<SearchResponse>;
1760
1826
  semanticSearch(queryEmbedding: number[], options?: SearchOptions): Promise<SearchResponse>;
1761
1827
  hybridSearch(query: string, queryEmbedding: number[], options?: SearchOptions): Promise<SearchResponse>;
@@ -1763,6 +1829,100 @@ declare class SearchRepository {
1763
1829
  private fetchFacets;
1764
1830
  private fetchTagMap;
1765
1831
  }
1832
+ type SourceUpsertPolicy = 'conflict' | 'replace' | 'version';
1833
+ type SourceUpsertOutcome = 'conflict' | 'inserted' | 'rejected' | 'replaced' | 'unchanged' | 'versioned';
1834
+ interface SourceIdentityInput {
1835
+ tenant_id?: string;
1836
+ archive_id?: null | string;
1837
+ namespace: string;
1838
+ external_id: string;
1839
+ source_schema_version: string;
1840
+ import_run_id: string;
1841
+ caller_stable_id?: string;
1842
+ }
1843
+ interface SourceUpsertItem {
1844
+ source: SourceIdentityInput;
1845
+ title?: null | string;
1846
+ content: string;
1847
+ format?: string;
1848
+ visibility?: string;
1849
+ metadata?: null | Record<string, unknown>;
1850
+ policy?: SourceUpsertPolicy;
1851
+ }
1852
+ interface SourceUpsertOptions {
1853
+ dryRun?: boolean;
1854
+ maxItems?: number;
1855
+ }
1856
+ interface SourceUpsertItemResult {
1857
+ index: number;
1858
+ outcome: SourceUpsertOutcome;
1859
+ note_id?: string;
1860
+ external_id_hash: string;
1861
+ content_digest: string;
1862
+ reason?: string;
1863
+ }
1864
+ interface SourceUpsertBatchResult {
1865
+ import_run_id: string;
1866
+ dry_run: boolean;
1867
+ outcomes: SourceUpsertItemResult[];
1868
+ counts: Record<SourceUpsertOutcome, number>;
1869
+ }
1870
+ declare class SourceUpsertRepository {
1871
+ private db;
1872
+ private events?;
1873
+ constructor(db: DatabaseClient, events?: TypedEventBus | undefined);
1874
+ upsertBatch(items: readonly SourceUpsertItem[], options?: SourceUpsertOptions): Promise<SourceUpsertBatchResult>;
1875
+ private finish;
1876
+ }
1877
+ interface PurgeSelector {
1878
+ tenant_id?: string;
1879
+ archive_id?: null | string;
1880
+ note_ids?: readonly string[];
1881
+ source?: {
1882
+ external_id?: string;
1883
+ namespace: string;
1884
+ };
1885
+ }
1886
+ interface PurgeCounts {
1887
+ notes: number;
1888
+ revisions: number;
1889
+ links: number;
1890
+ tags: number;
1891
+ embeddings: number;
1892
+ attachments: number;
1893
+ blobs: number;
1894
+ graph_edges: number;
1895
+ provenance_edges: number;
1896
+ source_identities: number;
1897
+ }
1898
+ interface DeletionReceipt {
1899
+ id: string;
1900
+ operation_key: string;
1901
+ tenant_id: string;
1902
+ archive_id: null | string;
1903
+ selector_hash: string;
1904
+ outcome: 'completed';
1905
+ counts: PurgeCounts;
1906
+ completed_at: string;
1907
+ policy: {
1908
+ authority: 'fortemi#1092';
1909
+ mode: 'terminal-purge';
1910
+ receipt_contains_content: false;
1911
+ };
1912
+ }
1913
+ interface PurgePreview {
1914
+ selector_hash: string;
1915
+ counts: PurgeCounts;
1916
+ }
1917
+ declare class LifecyclePurgeRepository {
1918
+ private db;
1919
+ private events?;
1920
+ constructor(db: DatabaseClient, events?: TypedEventBus | undefined);
1921
+ preview(selector: PurgeSelector): Promise<PurgePreview>;
1922
+ purge(selector: PurgeSelector, operationKey: string): Promise<DeletionReceipt>;
1923
+ private count;
1924
+ private deleteSelected;
1925
+ }
1766
1926
  interface GraphNode {
1767
1927
  id: string;
1768
1928
  }
@@ -3956,6 +4116,42 @@ interface ShardManifestRecord extends PresenceTrackedRecord {
3956
4116
  id: string;
3957
4117
  manifest: Record<string, unknown>;
3958
4118
  }
4119
+ interface SourceIdentityRecord extends PresenceTrackedRecord {
4120
+ id: string;
4121
+ tenant_id: string;
4122
+ archive_id: null | string;
4123
+ namespace: string;
4124
+ external_id: string;
4125
+ external_id_hash: string;
4126
+ source_schema_version: string;
4127
+ content_digest: string;
4128
+ import_run_id: string;
4129
+ caller_stable_id: null | string;
4130
+ note_id: string;
4131
+ created_at: string;
4132
+ updated_at: string;
4133
+ }
4134
+ interface SourceImportRunRecord extends PresenceTrackedRecord {
4135
+ id: string;
4136
+ tenant_id: string;
4137
+ archive_id: null | string;
4138
+ namespace: string;
4139
+ started_at: string;
4140
+ completed_at: null | string;
4141
+ checkpoint: Record<string, unknown>;
4142
+ receipt: Record<string, unknown>;
4143
+ }
4144
+ interface DeletionReceiptRecord extends PresenceTrackedRecord {
4145
+ id: string;
4146
+ operation_key: string;
4147
+ tenant_id: string;
4148
+ archive_id: null | string;
4149
+ selector_hash: string;
4150
+ outcome: string;
4151
+ counts: Record<string, number>;
4152
+ completed_at: string;
4153
+ policy: Record<string, unknown>;
4154
+ }
3959
4155
  /** Collection name → record type. The store is generic over this map. */
3960
4156
  interface RecordCollections {
3961
4157
  note: NoteRecord0;
@@ -3968,6 +4164,9 @@ interface RecordCollections {
3968
4164
  attachment: AttachmentRecord;
3969
4165
  attachment_blob: AttachmentBlobRecord;
3970
4166
  shard_manifest: ShardManifestRecord;
4167
+ source_identity: SourceIdentityRecord;
4168
+ source_import_run: SourceImportRunRecord;
4169
+ deletion_receipt: DeletionReceiptRecord;
3971
4170
  }
3972
4171
  type RecordCollectionName = keyof RecordCollections;
3973
4172
  declare const RECORD_COLLECTIONS: readonly RecordCollectionName[];
@@ -3999,6 +4198,10 @@ interface RecordStoreCapabilities {
3999
4198
  atomicBatch?: true;
4000
4199
  /** Bounded substring scan over titles/content — not ranked FTS. */
4001
4200
  boundedTextScan: true;
4201
+ sourceAddressedUpsert?: true;
4202
+ deletionReceipts?: true;
4203
+ typedMetadataPredicates?: false;
4204
+ evidenceLocators?: true;
4002
4205
  fullTextSearch: false;
4003
4206
  vectorSearch: false;
4004
4207
  sqlJoins: false;
@@ -4359,11 +4562,14 @@ declare function exportShardFromRecords(store: RecordStore, options?: ExportOpti
4359
4562
  * explicit warnings and reported under `skipped`.
4360
4563
  */
4361
4564
  declare function importShardToRecords(store: RecordStore, data: ArrayBuffer | Uint8Array, options?: ImportOptions): Promise<ImportResult>;
4565
+ declare function upsertRecordStoreSources(store: RecordStore, items: readonly SourceUpsertItem[], options?: SourceUpsertOptions): Promise<SourceUpsertBatchResult>;
4566
+ declare function previewRecordStorePurge(store: RecordStore, selector: PurgeSelector): Promise<PurgePreview>;
4567
+ declare function purgeRecordStoreGraph(store: RecordStore, selector: PurgeSelector, operationKey: string): Promise<DeletionReceipt>;
4362
4568
  /**
4363
4569
  * @implements @.aiwg/adrs/ADR-011-shard-server-conformance-and-version-negotiation.md
4364
4570
  * @source @packages/core/src/shard/schema-validator.ts
4365
4571
  * @created 2026-07-17
4366
4572
  * @agent Codex
4367
4573
  */
4368
- declare const VERSION = "2026.7.15";
4369
- export { type ArchiveInfo, ArchiveManager, type AttachInput, type AttachmentBlobRecord, type AttachmentBlobRow, type AttachmentProjectionResult, type AttachmentRecord, type AttachmentRow, AttachmentsRepository, type BackendCandidate, type BackendCapabilities, type BackendConcept, type BackendLink, type BackendListOptions, type BackendNote, type BackendNoteFull, type BackendProvenanceEdge, type BackendRequest, type BackendSearchHit, type BackendSearchQueryOptions, type BackendSearchResult, type BackendSelection, type BackendSemanticTier, type BackendStartupCost, BlobGcOptions, BlobGcResult, BlobReconcileOptions, BlobReconcileResult, BlobStore, type BridgeCapability, type BridgeProviderInfo, type BrowserNoteExport, CORE_V1_COMPONENTS, CURRENT_MIGRATION_HEAD, type CanonicalAttachInput, CanonicalAttachmentsRepository, type CanonicalNoteCreateInput, type CanonicalNoteUpdateInput, type CanonicalNoteView, CanonicalNotesRepository, type CapabilityInfo, CapabilityManager, type CapabilityName, type CapabilityState, type CaptureKnowledgeInput, CaptureKnowledgeInputSchema, type CaptureKnowledgeResult, type CollectionCreateInput, type CollectionNoteRecord, type CollectionRecord, 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 CooldownConfig, type CooldownEvent, type CosineSemanticProviderOptions, type CreatePGliteOptions, type CreateRecordStoreOptions, type CspDirectiveName, type CspDirectives, type CspViolationReport, DB_SNAPSHOT_SCHEMA_VERSION, type DataBackend, type DatabaseClient, type DbSnapshot, type DbSnapshotCompat, type DbSnapshotCompression, type DbSnapshotExpectations, type DbSnapshotMeta, type DbSnapshotSource, DbSnapshotVersionError, type DiscoveredProvider, type DiscoveryOptions, type DumpDbSnapshotOptions, type DumpableDb, EMBED_REQUEST_KIND, EMBED_RESPONSE_KIND, type EmbedFunction, type EmbedRequest, type EmbedRequestMessage, type EmbedResponse, type EmbedResponseMessage, type EmbedTransportPort, type EmbedWorkerOptions, 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, ExportOptions, FORTEMI_COMPATIBILITY_PATH, FORTEMI_COMPATIBILITY_STATES, FORTEMI_REQUIRED_COMPATIBILITY_CAPABILITIES, FORTEMI_SERVER_COMPATIBILITY_REVISION, type FallbackEvent, FallbackRouter, type FallbackRouterConfig, type FetchFortemiCompatibilityOptions, type FortemiBridge, type FortemiBridgeCapabilities, type FortemiBridgeHost, type FortemiCompatibilityCapability, type FortemiCompatibilityResponse, type FortemiCompatibilityState, type FortemiCompatibilityValidationResult, type FortemiConfig, type FortemiCore, type FortemiInferenceRouter, type FortemiRequiredCompatibilityCapability, type FortemiSecretStore, type FortemiToolDefinition, FortemiToolManifest, type GetNoteInput, GetNoteInputSchema, type GpuCapabilities, type GraphCommunity, type GraphEdge, type GraphNode, GraphRepository, type IDisposable, IdbRecordStore, ImportOptions, ImportResult, type InferenceCapabilities, type InferenceProvider, JOB_CAPABILITIES, JOB_PRIORITIES, type JobQueueOptions, JobQueueWorker, type JobStatus, type JobType, type JournalEntry, LOCAL_ENDPOINTS, type LegacyMigrationReport, type LinkRecord0, 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, MemoryRecordStore, type Migration, MigrationRunner, type ModelCategory, type ModelFitResult, type ModelInfo, type NoteCreateInput, type NoteFull, type NoteListOptions, type NoteOriginalRecord, type NoteProjectionResult, type NoteRecord0, type NoteRevisedCurrentRecord, type NoteRevision, type NoteSkosTag, type NoteSummary, type NoteTagRecord, type NoteUpdateInput, NotesRepository, OpenAICompatibleProvider, type OpenAIProviderConfig, type OpenShardOptions, type PGliteBackendOptions, PGliteStorageBackend, PGliteStorageBackendFactory, PGliteWorkerClient, PGliteWorkerStorageBackend, PGliteWorkerStorageBackendFactory, type PGliteWorkerStorageBackendFactoryOptions, type PaginatedResult, type PersistenceMode, type PluginCspOptions, type PluginScriptDescriptor, type PluginScriptPolicy, type PrefetchOptions, type PrefetchResult, type PresenceTrackedRecord, type ProbeResult, type ProbeStatus, type ProvenanceEdge, ProvenanceRepository, type ProviderCapabilities, ProviderRegistry, type ProviderTier, type QueryExecutor, type QueryResult, RECORD_COLLECTIONS, RECORD_SCHEMA_VERSION, RECORD_STORE_CAPABILITIES, type RecommendedTier, type RecordBackendManageNoteResult, type RecordBackendOptions, type RecordCollectionName, type RecordCollections, type RecordListOptions, type RecordMutation, type RecordProjectionResult, type RecordProvenanceInput, type RecordStore, type RecordStoreCapabilities, type RemoteBackendConfig, type RemoteBackendPaths, type ResolvedEmbeddingRow, type ResolvedEmbeddingSet, type RestoreDbSnapshotOptions, type RouteHandler, SUPPORTED_PGLITE_VERSION, type SWRegistrationResult, type SearchFacets, type SearchInput, SearchInputSchema, type SearchOptions, SearchRepository, type SearchResponse, type SearchResult, ShardBackend, type ShardBackendOptions, ShardCapabilityReport, ShardCollection, ShardComponent, type ShardComponentStore, ShardEmbedding, ShardEmbeddingConfig, ShardEmbeddingSet, ShardEmbeddingSetMember, ShardExportResult, ShardLink, type ShardListOptions, ShardLossEntry, ShardManifest, ShardNote, type ShardNoteFull, ShardNoteSkosTag, ShardOperation, ShardProfileRegistryEntry, ShardProvenanceEdge, type ShardReader, type ShardReaderNote, type ShardReaderSource, type ShardSchemaValidationResult, type ShardSearchOptions, type ShardSearchRankedNote, type ShardSearchResult, type ShardSearchWeights, ShardSkosConcept, ShardSkosRelation, ShardSkosScheme, ShardTag, ShardTemplate, type SimilarityGraphCacheKey, type SimilarityGraphOptions, type SimilarityGraphRequest, type SimilarityGraphResult, type SkosConcept, type SkosRelation, SkosRepository, type SkosScheme, type StaticSemanticProvider, type StorageBackend, type StorageBackendFactory, type StorageOpenRequest, type StorageTopology, type StreamChunk, TagsRepository, TransactionProxy, TypedEventBus, VERSION, type VectorEntry, type VirtualEmbeddingSetDefinition, type VirtualEmbeddingSetSource, type VirtualEmbeddingSetValidationError, type VirtualMaterializationPolicy, type VramTier, type WorkerRequest, type WorkerResponse, aiRevisionHandler, allMigrations, appendPluginScript, assertShardComponentRecord, buildNoteConditions, buildPluginCsp, captureKnowledge, chunkText, classifyError, classifyModel, clearPrefetchedShard, collectionFromShard, collectionToShard, computeBlobHash, computeHash, computeSri, conceptTaggingHandler, cosineSimilarity, createCosineSemanticProvider, createCspReportHandler, createFortemi, createLegacyProvider, createPGliteBackend, createPGliteInstance, createRecordBackend, createRecordStore, createRemoteBackend, createRoutes, createShardBackend, createShardCapabilityReport, createWorkerEmbedFunction, defaultStorageBackendFactory, detectCommunities, detectGpuCapabilities, detectInferenceCapabilities, discoverLocalProviders, dropAttachmentProjection, dropNoteProjection, dumpDbSnapshot, embeddingConfigToShard, embeddingFromShard, embeddingGenerationHandler, embeddingSetFromShard, embeddingSetMemberToShard, embeddingSetToShard, embeddingToShard, enqueueFullWorkflow, enqueueJob, enqueueNoteCreationJobs, estimateModelFit, estimateVramMB, estimateVramTier, exportShard, exportShardFromRecords, exportShardFromRecordsWithReport, exportShardWithReport, fetchAndValidateFortemiCompatibility, fetchPluginScript, formatFortemiCompatibilitySummary, fortemiCompatibilityUrl, fortemiManifest, fromPrefetched, generateId, getEmbedFunction, getFortemiBridge, getFortemiSecretStore, getJobQueueStatus, getKnowledgeShardContractReceipt, getKnowledgeShardProfileRegistry, getKnowledgeShardSchema, getLlmFunction, getNote, getPrefetchedSha256, handleEmbedRequests, hasFortemiSecureSecrets, importShard, importShardToRecords, isPluginScriptAllowed, isShardPrefetched, linkFromShard, linkToShard, linkingHandler, listNotes, manageArchive, manageAttachments, manageCapabilities, manageCollections, manageLinks, manageNote, manageTags, matchRoute, migrateLegacyBlobStore, noteFromShard, noteSkosTagToShard, noteToShard, openShard, packTarGz, parseCspReport, prefetchShard, profileSupportError, projectAttachments, projectNotes, projectRecords, provenanceEdgeToShard, registerLlmCapability, registerSemanticCapability, registerSemanticCapabilityWorker, registerServiceWorker, restoreDbSnapshot, searchTool, selectBackend, selectLlmModel, setEmbedFunction, setLlmFunction, sha256Hex, skosConceptToShard, skosRelationToShard, skosSchemeToShard, suggestTags, tagsToShard, templateToShard, titleGenerationHandler, unpackTarGz, unregisterLlmCapability, unregisterSemanticCapability, urlLinkToShard, validateChecksums, validateCoreV1ShardArchive, validateFortemiCompatibilityResponse, validateFullV1ShardArchive, validateRecordV1ShardArchive, validateShardArchive, validateShardComponentRecord, validateShardManifest, verifyDbSnapshotMeta, verifySri };
4574
+ declare const VERSION = "2026.8.0";
4575
+ export { type ArchiveInfo, ArchiveManager, type AttachInput, type AttachmentBlobRecord, type AttachmentBlobRow, type AttachmentProjectionResult, type AttachmentRecord, type AttachmentRow, AttachmentsRepository, type BackendCandidate, type BackendCapabilities, type BackendConcept, type BackendLink, type BackendListOptions, type BackendNote, type BackendNoteFull, type BackendProvenanceEdge, type BackendRequest, type BackendSearchHit, type BackendSearchQueryOptions, type BackendSearchResult, type BackendSelection, type BackendSemanticTier, type BackendStartupCost, BlobGcOptions, BlobGcResult, BlobReconcileOptions, BlobReconcileResult, BlobStore, type BridgeCapability, type BridgeProviderInfo, type BrowserNoteExport, CORE_V1_COMPONENTS, CURRENT_MIGRATION_HEAD, type CanonicalAttachInput, CanonicalAttachmentsRepository, type CanonicalNoteCreateInput, type CanonicalNoteUpdateInput, type CanonicalNoteView, CanonicalNotesRepository, type CapabilityInfo, CapabilityManager, type CapabilityName, type CapabilityState, type CaptureKnowledgeInput, CaptureKnowledgeInputSchema, type CaptureKnowledgeResult, type CollectionCreateInput, type CollectionNoteRecord, type CollectionRecord, 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 CooldownConfig, type CooldownEvent, type CosineSemanticProviderOptions, type CreatePGliteOptions, type CreateRecordStoreOptions, type CspDirectiveName, type CspDirectives, type CspViolationReport, DB_SNAPSHOT_SCHEMA_VERSION, type DataBackend, type DatabaseClient, type DbSnapshot, type DbSnapshotCompat, type DbSnapshotCompression, type DbSnapshotExpectations, type DbSnapshotMeta, type DbSnapshotSource, DbSnapshotVersionError, type DeletionReceipt, type DeletionReceiptRecord, type DiscoveredProvider, type DiscoveryOptions, type DumpDbSnapshotOptions, type DumpableDb, EMBED_REQUEST_KIND, EMBED_RESPONSE_KIND, type EmbedFunction, type EmbedRequest, type EmbedRequestMessage, type EmbedResponse, type EmbedResponseMessage, type EmbedTransportPort, type EmbedWorkerOptions, 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 EvidenceLocator, ExportOptions, FORTEMI_COMPATIBILITY_PATH, FORTEMI_COMPATIBILITY_STATES, FORTEMI_REQUIRED_COMPATIBILITY_CAPABILITIES, FORTEMI_SERVER_COMPATIBILITY_REVISION, type FallbackEvent, FallbackRouter, type FallbackRouterConfig, type FetchFortemiCompatibilityOptions, type FortemiBridge, type FortemiBridgeCapabilities, type FortemiBridgeHost, type FortemiCompatibilityCapability, type FortemiCompatibilityResponse, type FortemiCompatibilityState, type FortemiCompatibilityValidationResult, type FortemiConfig, type FortemiCore, type FortemiInferenceRouter, type FortemiRequiredCompatibilityCapability, type FortemiSecretStore, type FortemiToolDefinition, FortemiToolManifest, type GetNoteInput, GetNoteInputSchema, type GpuCapabilities, type GraphCommunity, type GraphEdge, type GraphNode, GraphRepository, type IDisposable, IdbRecordStore, ImportOptions, ImportResult, type InferenceCapabilities, type InferenceProvider, JOB_CAPABILITIES, JOB_PRIORITIES, type JobQueueOptions, JobQueueWorker, type JobStatus, type JobType, type JournalEntry, LOCAL_ENDPOINTS, type LegacyMigrationReport, LifecyclePurgeRepository, type LinkRecord0, 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, MemoryRecordStore, type MetadataPredicate, type Migration, MigrationRunner, type ModelCategory, type ModelFitResult, type ModelInfo, type NoteCreateInput, type NoteFull, type NoteListOptions, type NoteOriginalRecord, type NoteProjectionResult, type NoteRecord0, type NoteRevisedCurrentRecord, type NoteRevision, type NoteSkosTag, type NoteSummary, type NoteTagRecord, type NoteUpdateInput, NotesRepository, OpenAICompatibleProvider, type OpenAIProviderConfig, type OpenShardOptions, type PGliteBackendOptions, PGliteStorageBackend, PGliteStorageBackendFactory, PGliteWorkerClient, PGliteWorkerStorageBackend, PGliteWorkerStorageBackendFactory, type PGliteWorkerStorageBackendFactoryOptions, type PaginatedResult, type PersistenceMode, type PluginCspOptions, type PluginScriptDescriptor, type PluginScriptPolicy, type PrefetchOptions, type PrefetchResult, type PresenceTrackedRecord, type ProbeResult, type ProbeStatus, type ProvenanceEdge, ProvenanceRepository, type ProviderCapabilities, ProviderRegistry, type ProviderTier, type PurgeCounts, type PurgePreview, type PurgeSelector, type QueryExecutor, type QueryResult, RECORD_COLLECTIONS, RECORD_SCHEMA_VERSION, RECORD_STORE_CAPABILITIES, REGISTERED_METADATA_PATHS, type RecommendedTier, type RecordBackendManageNoteResult, type RecordBackendOptions, type RecordCollectionName, type RecordCollections, type RecordListOptions, type RecordMutation, type RecordProjectionResult, type RecordProvenanceInput, type RecordStore, type RecordStoreCapabilities, type RegisteredMetadataPath, type RemoteBackendConfig, type RemoteBackendPaths, type ResolvedEmbeddingRow, type ResolvedEmbeddingSet, type RestoreDbSnapshotOptions, type RouteHandler, SUPPORTED_PGLITE_VERSION, type SWRegistrationResult, type SearchFacets, type SearchInput, SearchInputSchema, type SearchOptions, SearchRepository, type SearchResponse, type SearchResult, ShardBackend, type ShardBackendOptions, ShardCapabilityReport, ShardCollection, ShardComponent, type ShardComponentStore, ShardEmbedding, ShardEmbeddingConfig, ShardEmbeddingSet, ShardEmbeddingSetMember, ShardExportResult, ShardLink, type ShardListOptions, ShardLossEntry, ShardManifest, ShardNote, type ShardNoteFull, ShardNoteSkosTag, ShardOperation, ShardProfileRegistryEntry, ShardProvenanceEdge, type ShardReader, type ShardReaderNote, type ShardReaderSource, type ShardSchemaValidationResult, type ShardSearchOptions, type ShardSearchRankedNote, type ShardSearchResult, type ShardSearchWeights, ShardSkosConcept, ShardSkosRelation, ShardSkosScheme, ShardTag, ShardTemplate, type SimilarityGraphCacheKey, type SimilarityGraphOptions, type SimilarityGraphRequest, type SimilarityGraphResult, type SkosConcept, type SkosRelation, SkosRepository, type SkosScheme, type SourceIdentityInput, type SourceIdentityRecord, type SourceImportRunRecord, type SourceUpsertBatchResult, type SourceUpsertItem, type SourceUpsertItemResult, type SourceUpsertOptions, type SourceUpsertOutcome, type SourceUpsertPolicy, SourceUpsertRepository, type StaticSemanticProvider, type StorageBackend, type StorageBackendFactory, type StorageOpenRequest, type StorageTopology, type StreamChunk, TagsRepository, TransactionProxy, TypedEventBus, VERSION, type VectorEntry, type VirtualEmbeddingSetDefinition, type VirtualEmbeddingSetSource, type VirtualEmbeddingSetValidationError, type VirtualMaterializationPolicy, type VramTier, type WorkerRequest, type WorkerResponse, aiRevisionHandler, allMigrations, appendPluginScript, assertShardComponentRecord, buildMetadataPredicateConditions, buildNoteConditions, buildPluginCsp, captureKnowledge, chunkText, classifyError, classifyModel, clearPrefetchedShard, collectionFromShard, collectionToShard, computeBlobHash, computeHash, computeSri, conceptTaggingHandler, cosineSimilarity, createCosineSemanticProvider, createCspReportHandler, createFortemi, createLegacyProvider, createPGliteBackend, createPGliteInstance, createRecordBackend, createRecordStore, createRemoteBackend, createRoutes, createShardBackend, createShardCapabilityReport, createWorkerEmbedFunction, defaultStorageBackendFactory, detectCommunities, detectGpuCapabilities, detectInferenceCapabilities, discoverLocalProviders, dropAttachmentProjection, dropNoteProjection, dumpDbSnapshot, embeddingConfigToShard, embeddingFromShard, embeddingGenerationHandler, embeddingSetFromShard, embeddingSetMemberToShard, embeddingSetToShard, embeddingToShard, enqueueFullWorkflow, enqueueJob, enqueueNoteCreationJobs, estimateModelFit, estimateVramMB, estimateVramTier, exportShard, exportShardFromRecords, exportShardFromRecordsWithReport, exportShardWithReport, fetchAndValidateFortemiCompatibility, fetchPluginScript, formatFortemiCompatibilitySummary, fortemiCompatibilityUrl, fortemiManifest, fromPrefetched, generateId, getEmbedFunction, getFortemiBridge, getFortemiSecretStore, getJobQueueStatus, getKnowledgeShardContractReceipt, getKnowledgeShardProfileRegistry, getKnowledgeShardSchema, getLlmFunction, getNote, getPrefetchedSha256, handleEmbedRequests, hasFortemiSecureSecrets, importShard, importShardToRecords, isPluginScriptAllowed, isShardPrefetched, linkFromShard, linkToShard, linkingHandler, listNotes, manageArchive, manageAttachments, manageCapabilities, manageCollections, manageLinks, manageNote, manageTags, matchRoute, migrateLegacyBlobStore, noteFromShard, noteSkosTagToShard, noteToShard, openShard, packTarGz, parseCspReport, prefetchShard, previewRecordStorePurge, profileSupportError, projectAttachments, projectNotes, projectRecords, provenanceEdgeToShard, purgeRecordStoreGraph, registerLlmCapability, registerSemanticCapability, registerSemanticCapabilityWorker, registerServiceWorker, restoreDbSnapshot, searchTool, selectBackend, selectLlmModel, setEmbedFunction, setLlmFunction, sha256Hex, skosConceptToShard, skosRelationToShard, skosSchemeToShard, suggestTags, tagsToShard, templateToShard, titleGenerationHandler, unpackTarGz, unregisterLlmCapability, unregisterSemanticCapability, upsertRecordStoreSources, urlLinkToShard, validateChecksums, validateCoreV1ShardArchive, validateFortemiCompatibilityResponse, validateFullV1ShardArchive, validateRecordV1ShardArchive, validateShardArchive, validateShardComponentRecord, validateShardManifest, verifyDbSnapshotMeta, verifySri };