@fortemi/core 2026.7.11 → 2026.7.12

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
@@ -1,6 +1,7 @@
1
1
  import { PGlite } from '@electric-sql/pglite';
2
2
  import { ProbeReport } from '@bytecask/core';
3
3
  import { z, ZodType } from 'zod';
4
+ export { A as AIWG_SCAN_REQUIRED_FIELDS, a as AiwgChunkedIndexBuildOptions, b as AiwgChunkedIndexBuildResult, c as AiwgChunkedIndexDetailLoader, d as AiwgChunkedIndexLoadOptions, e as AiwgChunkedIndexLoader, f as AiwgChunkedIndexProgress, g as AiwgChunkedIndexProgressPhase, h as AiwgChunkedIndexQueryOptions, i as AiwgChunkedIndexQueryResult, j as AiwgChunkedIndexValidationResult, k as AiwgFortemiAttachmentReference, l as AiwgFortemiBinarySource, m as AiwgFortemiChunk, n as AiwgFortemiChunkDetailRef, o as AiwgFortemiChunkManifest, p as AiwgFortemiChunkPart, q as AiwgFortemiChunkPartRef, r as AiwgFortemiIndexExport, s as AiwgFortemiIndexExportSchemaVersion, t as AiwgFortemiProjectedRecord, u as AiwgFortemiProvenance, v as AiwgFortemiProvenanceEvent, w as AiwgFortemiRecord, x as AiwgFortemiRecordEmbedding, y as AiwgFortemiRecordSchemaVersion, z as AiwgFortemiRecordSource, B as AiwgFortemiRecordType, C as AiwgFortemiRelationship, D as AiwgFortemiRelationshipDirection, E as AiwgFortemiSearchProjection, F as AiwgFortemiSkosConcept, G as AiwgFortemiSkosRelation, H as AiwgFortemiSkosRelationType, I as AiwgHeadlessEmbeddingBackend, J as AiwgIndexController, K as AiwgIndexControllerListener, L as AiwgIndexControllerSnapshot, M as AiwgIndexGraphOptions, N as AiwgIndexQueryMatch, O as AiwgIndexQueryOptions, P as AiwgIndexQueryRankedItem, Q as AiwgIndexQueryResult, R as AiwgIndexQueryWeights, S as AiwgIndexValidationResult, T as AiwgKnowledgeShardOptions, U as AiwgPrivacyClassification, V as AiwgPrivacyFilterOptions, W as AiwgProvenanceConfidence, X as AiwgRelationshipDirection, Y as AiwgRelationshipEdgeSummary, Z as AiwgRelationshipNodeSummary, _ as AiwgRelationshipQueryOptions, $ as AiwgRelationshipSetOperation, a0 as AiwgRelationshipSetOptions, a1 as AiwgRelationshipSetResult, a2 as AiwgRelationshipTraversalOptions, a3 as AiwgRelationshipTraversalResult, a4 as AiwgReviewAction, a5 as AiwgReviewDecision, a6 as AiwgReviewDecisionExport, a7 as AiwgReviewInput, a8 as AiwgStaticDuplicatePair, a9 as AiwgStaticEmbeddingRecord, aa as AiwgStaticEmbeddingSet, ab as AiwgStaticHybridQueryOptions, ac as AiwgStaticSemanticQueryOptions, ad as AiwgStaticSemanticResult, ae as BuildAiwgStaticEmbeddingSetOptions, af as aiwgFortemiIndexFromKnowledgeShard, ag as aiwgFortemiIndexToCommunityGraph, ah as aiwgFortemiIndexToKnowledgeShard, ai as assertAiwgFortemiChunkManifest, aj as assertAiwgFortemiChunkPart, ak as assertAiwgFortemiIndexExport, al as assertAiwgStaticEmbeddingSet, am as buildAiwgChunkedIndex, an as buildAiwgStaticEmbeddingSet, ao as createAiwgFetchChunkLoader, ap as createAiwgFetchDetailLoader, aq as createAiwgIndexController, ar as createAiwgReviewDecisionExport, as as filterAiwgRecordsByPrivacy, at as findAiwgStaticDuplicatePairs, au as getAiwgFortemiFacets, av as queryAiwgFortemiIndex, aw as queryAiwgHybridIndex, ax as queryAiwgSemanticIndex, ay as validateAiwgFortemiChunkManifest, az as validateAiwgFortemiChunkPart, aA as validateAiwgFortemiIndexExport, aB as validateAiwgStaticEmbeddingSet } from './aiwg-index-shard-oG45XSCU.js';
4
5
  export { AiwgIndexSchemaValidationResult, getAiwgFortemiIndexExportSchema, validateAiwgFortemiIndexExportSchema, validateAiwgFortemiProjectedRecordSchema } from './aiwg-index-schema.js';
5
6
 
6
7
  /**
@@ -2981,8 +2982,8 @@ declare const CaptureKnowledgeInputSchema: z.ZodObject<{
2981
2982
  }, {
2982
2983
  content: string;
2983
2984
  title?: string | undefined;
2984
- format?: "markdown" | "plain" | "html" | undefined;
2985
2985
  tags?: string[] | undefined;
2986
+ format?: "markdown" | "plain" | "html" | undefined;
2986
2987
  }>, "many">>;
2987
2988
  template: z.ZodOptional<z.ZodString>;
2988
2989
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -2992,32 +2993,32 @@ declare const CaptureKnowledgeInputSchema: z.ZodObject<{
2992
2993
  visibility: "private" | "shared" | "public";
2993
2994
  action: "create" | "bulk_create" | "from_template";
2994
2995
  title?: string | undefined;
2995
- archive_id?: string | undefined;
2996
- tags?: string[] | undefined;
2997
- content?: string | undefined;
2998
2996
  notes?: {
2999
2997
  format: "markdown" | "plain" | "html";
3000
2998
  content: string;
3001
2999
  title?: string | undefined;
3002
3000
  tags?: string[] | undefined;
3003
3001
  }[] | undefined;
3002
+ tags?: string[] | undefined;
3003
+ archive_id?: string | undefined;
3004
+ content?: string | undefined;
3004
3005
  template?: string | undefined;
3005
3006
  variables?: Record<string, string> | undefined;
3006
3007
  }, {
3007
3008
  action: "create" | "bulk_create" | "from_template";
3008
- source?: string | undefined;
3009
3009
  title?: string | undefined;
3010
- archive_id?: string | undefined;
3011
- format?: "markdown" | "plain" | "html" | undefined;
3012
- visibility?: "private" | "shared" | "public" | undefined;
3013
- tags?: string[] | undefined;
3014
- content?: string | undefined;
3015
3010
  notes?: {
3016
3011
  content: string;
3017
3012
  title?: string | undefined;
3018
- format?: "markdown" | "plain" | "html" | undefined;
3019
3013
  tags?: string[] | undefined;
3014
+ format?: "markdown" | "plain" | "html" | undefined;
3020
3015
  }[] | undefined;
3016
+ tags?: string[] | undefined;
3017
+ source?: string | undefined;
3018
+ archive_id?: string | undefined;
3019
+ format?: "markdown" | "plain" | "html" | undefined;
3020
+ visibility?: "private" | "shared" | "public" | undefined;
3021
+ content?: string | undefined;
3021
3022
  template?: string | undefined;
3022
3023
  variables?: Record<string, string> | undefined;
3023
3024
  }>;
@@ -3068,12 +3069,12 @@ declare const SearchInputSchema: z.ZodObject<{
3068
3069
  include_facets: boolean;
3069
3070
  mode: "auto" | "text" | "semantic" | "hybrid";
3070
3071
  query: string;
3072
+ tags?: string[] | undefined;
3071
3073
  source?: string | undefined;
3072
3074
  format?: "markdown" | "plain" | "html" | undefined;
3073
3075
  visibility?: "private" | "shared" | "public" | undefined;
3074
3076
  is_starred?: boolean | undefined;
3075
3077
  is_archived?: boolean | undefined;
3076
- tags?: string[] | undefined;
3077
3078
  collection_id?: string | undefined;
3078
3079
  date_from?: Date | undefined;
3079
3080
  date_to?: Date | undefined;
@@ -3081,12 +3082,12 @@ declare const SearchInputSchema: z.ZodObject<{
3081
3082
  query_embedding?: number[] | undefined;
3082
3083
  }, {
3083
3084
  query: string;
3085
+ tags?: string[] | undefined;
3084
3086
  source?: string | undefined;
3085
3087
  format?: "markdown" | "plain" | "html" | undefined;
3086
3088
  visibility?: "private" | "shared" | "public" | undefined;
3087
3089
  is_starred?: boolean | undefined;
3088
3090
  is_archived?: boolean | undefined;
3089
- tags?: string[] | undefined;
3090
3091
  limit?: number | undefined;
3091
3092
  offset?: number | undefined;
3092
3093
  collection_id?: string | undefined;
@@ -3173,20 +3174,20 @@ declare const ListNotesInputSchema: z.ZodObject<{
3173
3174
  collection_id: z.ZodOptional<z.ZodString>;
3174
3175
  include_deleted: z.ZodOptional<z.ZodBoolean>;
3175
3176
  }, "strip", z.ZodTypeAny, {
3176
- sort: "created_at" | "updated_at" | "title";
3177
+ sort: "title" | "created_at" | "updated_at";
3177
3178
  limit: number;
3178
3179
  offset: number;
3179
3180
  order: "asc" | "desc";
3181
+ tags?: string[] | undefined;
3180
3182
  is_starred?: boolean | undefined;
3181
3183
  is_archived?: boolean | undefined;
3182
- tags?: string[] | undefined;
3183
3184
  include_deleted?: boolean | undefined;
3184
3185
  collection_id?: string | undefined;
3185
3186
  }, {
3186
- sort?: "created_at" | "updated_at" | "title" | undefined;
3187
+ tags?: string[] | undefined;
3188
+ sort?: "title" | "created_at" | "updated_at" | undefined;
3187
3189
  is_starred?: boolean | undefined;
3188
3190
  is_archived?: boolean | undefined;
3189
- tags?: string[] | undefined;
3190
3191
  limit?: number | undefined;
3191
3192
  offset?: number | undefined;
3192
3193
  order?: "asc" | "desc" | undefined;
@@ -3229,16 +3230,16 @@ declare const ManageCollectionsInputSchema: z.ZodObject<{
3229
3230
  note_id: z.ZodOptional<z.ZodString>;
3230
3231
  }, "strip", z.ZodTypeAny, {
3231
3232
  action: "create" | "delete" | "list" | "assign" | "unassign" | "list_tree";
3233
+ name?: string | undefined;
3232
3234
  collection_id?: string | undefined;
3233
3235
  note_id?: string | undefined;
3234
- name?: string | undefined;
3235
3236
  description?: string | undefined;
3236
3237
  parent_id?: string | undefined;
3237
3238
  }, {
3238
3239
  action: "create" | "delete" | "list" | "assign" | "unassign" | "list_tree";
3240
+ name?: string | undefined;
3239
3241
  collection_id?: string | undefined;
3240
3242
  note_id?: string | undefined;
3241
- name?: string | undefined;
3242
3243
  description?: string | undefined;
3243
3244
  parent_id?: string | undefined;
3244
3245
  }>;
@@ -3456,8 +3457,8 @@ declare const ManageAttachmentsInputSchema: z.ZodObject<{
3456
3457
  display_name: z.ZodOptional<z.ZodString>;
3457
3458
  }, "strip", z.ZodTypeAny, {
3458
3459
  action: "delete" | "list" | "attach" | "get" | "get_blob";
3459
- note_id?: string | undefined;
3460
3460
  filename?: string | undefined;
3461
+ note_id?: string | undefined;
3461
3462
  extracted_text?: string | undefined;
3462
3463
  attachment_id?: string | undefined;
3463
3464
  data_base64?: string | undefined;
@@ -3465,8 +3466,8 @@ declare const ManageAttachmentsInputSchema: z.ZodObject<{
3465
3466
  display_name?: string | undefined;
3466
3467
  }, {
3467
3468
  action: "delete" | "list" | "attach" | "get" | "get_blob";
3468
- note_id?: string | undefined;
3469
3469
  filename?: string | undefined;
3470
+ note_id?: string | undefined;
3470
3471
  extracted_text?: string | undefined;
3471
3472
  attachment_id?: string | undefined;
3472
3473
  data_base64?: string | undefined;
@@ -4520,493 +4521,6 @@ declare function getPrefetchedSha256(url: string): string | undefined;
4520
4521
  */
4521
4522
  declare function clearPrefetchedShard(url?: string): void;
4522
4523
 
4523
- type AiwgFortemiRecordType = string;
4524
- type AiwgFortemiRecordSchemaVersion = 'aiwg.fortemi.index.record.v1' | 'aiwg.fortemi.index.record.v2';
4525
- type AiwgFortemiIndexExportSchemaVersion = 'aiwg.fortemi.index.export.v1' | 'aiwg.fortemi.index.export.v2';
4526
- type AiwgPrivacyClassification = 'private' | 'sanitized' | 'public';
4527
- type AiwgProvenanceConfidence = 'source' | 'candidate' | 'reviewed' | 'rejected';
4528
- type AiwgReviewAction = 'accept' | 'reject' | 'defer';
4529
- type AiwgFortemiRelationshipDirection = 'upstream' | 'downstream' | 'related';
4530
- interface AiwgFortemiRecordSource {
4531
- path: string;
4532
- repo_relative_path: string;
4533
- locator: string;
4534
- origin?: string;
4535
- generated?: boolean;
4536
- checksum?: string;
4537
- updated_at?: string;
4538
- }
4539
- interface AiwgFortemiRelationship {
4540
- type: string;
4541
- target_id: string;
4542
- source_path?: string;
4543
- target_path?: string;
4544
- direction?: AiwgFortemiRelationshipDirection;
4545
- label?: string;
4546
- confidence?: number;
4547
- privacy?: AiwgPrivacyClassification;
4548
- metadata?: Record<string, unknown>;
4549
- }
4550
- interface AiwgFortemiProvenance {
4551
- field: string;
4552
- source: string;
4553
- path: string;
4554
- confidence: AiwgProvenanceConfidence;
4555
- privacy: AiwgPrivacyClassification;
4556
- }
4557
- type AiwgFortemiSkosRelationType = 'broader' | 'narrower' | 'related' | string;
4558
- interface AiwgFortemiSkosConcept {
4559
- id: string;
4560
- prefLabel: string;
4561
- definition?: string;
4562
- scheme?: string;
4563
- notation?: string;
4564
- uri?: string;
4565
- altLabels?: string[];
4566
- metadata?: Record<string, unknown>;
4567
- }
4568
- interface AiwgFortemiSkosRelation {
4569
- type: AiwgFortemiSkosRelationType;
4570
- source_id: string;
4571
- target_id: string;
4572
- source_path?: string;
4573
- metadata?: Record<string, unknown>;
4574
- }
4575
- interface AiwgFortemiProvenanceEvent {
4576
- id?: string;
4577
- activity: string;
4578
- agent?: string;
4579
- started_at?: string;
4580
- ended_at?: string;
4581
- source?: string;
4582
- path?: string;
4583
- confidence?: AiwgProvenanceConfidence;
4584
- privacy?: AiwgPrivacyClassification;
4585
- attributes?: Record<string, unknown>;
4586
- }
4587
- interface AiwgFortemiSearchProjection {
4588
- title?: string;
4589
- name?: string;
4590
- summary?: string;
4591
- body?: string;
4592
- triggers?: string[];
4593
- aliases?: string[];
4594
- capability?: string;
4595
- tags?: string[];
4596
- phase?: string;
4597
- type?: string;
4598
- frontmatter?: Record<string, unknown>;
4599
- }
4600
- interface AiwgFortemiChunk {
4601
- id?: string;
4602
- text?: string;
4603
- body?: string;
4604
- summary?: string;
4605
- source_path?: string;
4606
- metadata?: Record<string, unknown>;
4607
- }
4608
- interface AiwgFortemiRecordEmbedding {
4609
- id?: string;
4610
- embedding?: number[];
4611
- vector?: number[];
4612
- model?: string;
4613
- granularity?: string;
4614
- input_hash?: string;
4615
- source_path?: string;
4616
- metadata?: Record<string, unknown>;
4617
- }
4618
- type AiwgFortemiAttachmentReference = ShardAttachmentReference;
4619
- type AiwgFortemiBinarySource = ShardBinarySource;
4620
- interface AiwgFortemiRecord {
4621
- schema_version: AiwgFortemiRecordSchemaVersion;
4622
- id: string;
4623
- type: AiwgFortemiRecordType;
4624
- source: AiwgFortemiRecordSource;
4625
- title?: string;
4626
- text?: string;
4627
- facets: Record<string, string[]>;
4628
- tags: string[];
4629
- concepts: string[];
4630
- relationships: AiwgFortemiRelationship[];
4631
- provenance: AiwgFortemiProvenance[];
4632
- search?: AiwgFortemiSearchProjection;
4633
- chunks?: AiwgFortemiChunk[];
4634
- binary_sources?: AiwgFortemiBinarySource[];
4635
- embeddings?: AiwgFortemiRecordEmbedding[];
4636
- compatibility?: Record<string, unknown>;
4637
- /** Optional rich SKOS metadata for static consumers that need labels/definitions without opening a shard. */
4638
- skos_concepts?: AiwgFortemiSkosConcept[];
4639
- /** Optional SKOS relationship edges among concepts referenced by this record. */
4640
- skos_relations?: AiwgFortemiSkosRelation[];
4641
- /** Optional W3C PROV-style activity chain for this record. */
4642
- provenance_events?: AiwgFortemiProvenanceEvent[];
4643
- privacy: {
4644
- classification: AiwgPrivacyClassification;
4645
- pii: boolean;
4646
- locality?: string;
4647
- };
4648
- updated_at: string;
4649
- }
4650
- interface AiwgFortemiIndexExport {
4651
- schema_version: AiwgFortemiIndexExportSchemaVersion;
4652
- generated_at: string;
4653
- source: {
4654
- repo: string;
4655
- privacy: AiwgPrivacyClassification;
4656
- graph?: string;
4657
- };
4658
- items: AiwgFortemiRecord[];
4659
- compatibility?: {
4660
- previous_schema_version: 'aiwg.fortemi.index.export.v1';
4661
- strategy: 'supported';
4662
- };
4663
- }
4664
- interface AiwgFortemiChunkPartRef {
4665
- href: string;
4666
- offset: number;
4667
- count: number;
4668
- }
4669
- declare const AIWG_SCAN_REQUIRED_FIELDS: Array<keyof AiwgFortemiRecord>;
4670
- type AiwgFortemiProjectedRecord = Pick<AiwgFortemiRecord, 'schema_version' | 'id' | 'type' | 'title' | 'text' | 'facets' | 'tags' | 'concepts' | 'privacy'> & Partial<AiwgFortemiRecord>;
4671
- type AiwgDetailIdEncoding = 'uri' | 'base64url';
4672
- interface AiwgFortemiChunkDetailRef {
4673
- href: string;
4674
- encoding?: AiwgDetailIdEncoding;
4675
- }
4676
- interface AiwgFortemiChunkManifest {
4677
- schema_version: 'aiwg.fortemi.index.chunk-manifest.v1';
4678
- generated_at: string;
4679
- source: AiwgFortemiIndexExport['source'];
4680
- source_export_schema_version?: AiwgFortemiIndexExportSchemaVersion;
4681
- total: number;
4682
- part_size: number;
4683
- facets?: Record<string, Record<string, number>>;
4684
- projection?: Array<keyof AiwgFortemiRecord>;
4685
- detail?: AiwgFortemiChunkDetailRef;
4686
- parts: AiwgFortemiChunkPartRef[];
4687
- }
4688
- interface AiwgFortemiChunkPart {
4689
- schema_version: 'aiwg.fortemi.index.chunk.v1';
4690
- manifest_schema_version: 'aiwg.fortemi.index.chunk-manifest.v1';
4691
- offset: number;
4692
- items: AiwgFortemiRecord[];
4693
- }
4694
- interface AiwgIndexValidationResult {
4695
- valid: boolean;
4696
- errors: string[];
4697
- counts: Partial<Record<string, number>>;
4698
- }
4699
- interface AiwgKnowledgeShardOptions {
4700
- createdAt?: string;
4701
- matricVersion?: string;
4702
- /**
4703
- * Reserved for a future full-v1 converter. Passing true currently fails
4704
- * closed because a partial rich-component inventory is not a valid profile.
4705
- */
4706
- includeNativeRichComponents?: boolean;
4707
- }
4708
- interface AiwgChunkedIndexValidationResult {
4709
- valid: boolean;
4710
- errors: string[];
4711
- }
4712
- interface AiwgIndexQueryOptions {
4713
- types?: AiwgFortemiRecordType[];
4714
- facets?: Record<string, string[]>;
4715
- tags?: string[];
4716
- concepts?: string[];
4717
- privacy?: AiwgPrivacyClassification[];
4718
- relationshipTargetId?: string;
4719
- limit?: number;
4720
- offset?: number;
4721
- rank?: boolean;
4722
- snippets?: boolean;
4723
- snippetLength?: number;
4724
- weights?: Partial<AiwgIndexQueryWeights>;
4725
- includeMatches?: boolean;
4726
- searchProfile?: 'default' | 'aiwg-discovery';
4727
- }
4728
- interface AiwgIndexQueryWeights {
4729
- title: number;
4730
- text: number;
4731
- tag: number;
4732
- concept: number;
4733
- facet: number;
4734
- id: number;
4735
- source: number;
4736
- }
4737
- interface AiwgIndexQueryMatch {
4738
- field: 'title' | 'text' | 'tag' | 'concept' | 'facet' | 'id' | 'source';
4739
- value: string;
4740
- score?: number;
4741
- reason?: string;
4742
- }
4743
- interface AiwgIndexQueryRankedItem {
4744
- item: AiwgFortemiRecord;
4745
- rank: number;
4746
- snippet?: string;
4747
- matches?: AiwgIndexQueryMatch[];
4748
- }
4749
- interface AiwgIndexQueryResult {
4750
- items: AiwgFortemiRecord[];
4751
- total: number;
4752
- facets: Record<string, Record<string, number>>;
4753
- rankedItems?: AiwgIndexQueryRankedItem[];
4754
- }
4755
- type AiwgChunkedIndexLoader = (part: AiwgFortemiChunkPartRef, manifest: AiwgFortemiChunkManifest) => Promise<unknown>;
4756
- type AiwgChunkedIndexDetailLoader = (id: string, manifest: AiwgFortemiChunkManifest) => Promise<unknown>;
4757
- interface AiwgChunkedIndexLoadOptions {
4758
- maxCachedParts?: number;
4759
- detailLoader?: AiwgChunkedIndexDetailLoader;
4760
- maxCachedDetails?: number;
4761
- maxCachedMatches?: number;
4762
- }
4763
- type AiwgChunkedIndexProgressPhase = 'part' | 'query';
4764
- interface AiwgChunkedIndexProgress {
4765
- phase: AiwgChunkedIndexProgressPhase;
4766
- done: number;
4767
- total: number;
4768
- href?: string;
4769
- }
4770
- interface AiwgChunkedIndexQueryOptions extends AiwgIndexQueryOptions {
4771
- onProgress?: (progress: AiwgChunkedIndexProgress) => void;
4772
- }
4773
- interface AiwgChunkedIndexQueryResult extends AiwgIndexQueryResult {
4774
- manifestTotal: number;
4775
- scannedParts: number;
4776
- fetchedParts: number;
4777
- complete: boolean;
4778
- }
4779
- interface AiwgReviewDecision {
4780
- item_id: string;
4781
- action: AiwgReviewAction;
4782
- reason?: string;
4783
- updated_at: string;
4784
- }
4785
- interface AiwgReviewDecisionExport {
4786
- schema_version: 'aiwg.fortemi.review-decisions.v1';
4787
- generated_at: string;
4788
- source_export_schema_version: AiwgFortemiIndexExportSchemaVersion;
4789
- decisions: AiwgReviewDecision[];
4790
- }
4791
- interface AiwgIndexGraphOptions {
4792
- communityFacet?: string;
4793
- communityTagPrefix?: string;
4794
- relationshipWeights?: Record<string, number>;
4795
- includeDanglingRelationships?: boolean;
4796
- }
4797
- type AiwgRelationshipDirection = 'in' | 'out' | 'both';
4798
- type AiwgRelationshipSetOperation = 'intersection' | 'union' | 'difference';
4799
- interface AiwgRelationshipTraversalOptions {
4800
- direction?: AiwgRelationshipDirection;
4801
- relationshipType?: string;
4802
- relationshipDirection?: AiwgFortemiRelationshipDirection;
4803
- limit?: number;
4804
- }
4805
- interface AiwgRelationshipQueryOptions extends AiwgRelationshipTraversalOptions {
4806
- sourceId?: string;
4807
- targetId?: string;
4808
- endpointId?: string;
4809
- type?: string;
4810
- }
4811
- interface AiwgRelationshipEdgeSummary {
4812
- source_id: string;
4813
- target_id: string;
4814
- type: string;
4815
- source_path?: string;
4816
- target_path?: string;
4817
- direction?: AiwgFortemiRelationshipDirection;
4818
- }
4819
- interface AiwgRelationshipNodeSummary {
4820
- id: string;
4821
- type: AiwgFortemiRecordType;
4822
- title: string;
4823
- }
4824
- interface AiwgRelationshipTraversalResult {
4825
- nodes: AiwgRelationshipNodeSummary[];
4826
- edges: AiwgRelationshipEdgeSummary[];
4827
- complete: boolean;
4828
- scannedParts?: number;
4829
- fetchedParts?: number;
4830
- }
4831
- interface AiwgRelationshipSetOptions extends AiwgRelationshipTraversalOptions {
4832
- op: AiwgRelationshipSetOperation;
4833
- a: string;
4834
- b: string;
4835
- }
4836
- interface AiwgRelationshipSetResult {
4837
- ids: string[];
4838
- op: AiwgRelationshipSetOperation;
4839
- }
4840
- interface AiwgStaticEmbeddingRecord {
4841
- record_id: string;
4842
- embedding: number[];
4843
- embedding_id?: string;
4844
- granularity?: string;
4845
- input_hash: string;
4846
- source_path?: string;
4847
- }
4848
- interface AiwgStaticEmbeddingSet {
4849
- schema_version: 'aiwg.fortemi.embedding.set.v1';
4850
- id: string;
4851
- model: string;
4852
- dimensions: number;
4853
- generated_at: string;
4854
- granularity: 'title-summary' | 'body' | 'chunked-body' | string;
4855
- metric?: 'cosine' | 'dot' | 'euclidean';
4856
- input_hash_algorithm?: string;
4857
- embeddings: AiwgStaticEmbeddingRecord[];
4858
- }
4859
- interface AiwgHeadlessEmbeddingBackend {
4860
- model: string;
4861
- dimensions: number;
4862
- embed(input: string, record: AiwgFortemiRecord): number[] | Promise<number[]>;
4863
- }
4864
- interface AiwgPrivacyFilterOptions {
4865
- /** Include records classified `private` (default false). */
4866
- includePrivate?: boolean;
4867
- /** Include records flagged `pii` (default false). */
4868
- includePii?: boolean;
4869
- }
4870
- /** Drop `private`/`pii` records unless explicitly opted in (SEC6, default-safe). */
4871
- declare function filterAiwgRecordsByPrivacy(records: AiwgFortemiRecord[], options?: AiwgPrivacyFilterOptions): AiwgFortemiRecord[];
4872
- interface BuildAiwgStaticEmbeddingSetOptions {
4873
- id: string;
4874
- backend: AiwgHeadlessEmbeddingBackend;
4875
- records?: AiwgFortemiRecord[];
4876
- generatedAt?: string | Date;
4877
- granularity?: AiwgStaticEmbeddingSet['granularity'];
4878
- metric?: AiwgStaticEmbeddingSet['metric'];
4879
- textForRecord?: (record: AiwgFortemiRecord) => string;
4880
- /** Privacy filtering (SEC6). Default-safe: excludes `private`/`pii` records. */
4881
- privacy?: AiwgPrivacyFilterOptions;
4882
- }
4883
- interface AiwgStaticSemanticQueryOptions {
4884
- limit?: number;
4885
- offset?: number;
4886
- minScore?: number;
4887
- }
4888
- interface AiwgStaticSemanticResult {
4889
- item: AiwgFortemiRecord;
4890
- score: number;
4891
- embedding?: AiwgStaticEmbeddingRecord;
4892
- }
4893
- interface AiwgStaticHybridQueryOptions extends AiwgStaticSemanticQueryOptions, AiwgIndexQueryOptions {
4894
- lexicalWeight?: number;
4895
- semanticWeight?: number;
4896
- }
4897
- interface AiwgStaticDuplicatePair {
4898
- left: AiwgFortemiRecord;
4899
- right: AiwgFortemiRecord;
4900
- score: number;
4901
- }
4902
- interface AiwgReviewInput {
4903
- item_id: string;
4904
- action: AiwgReviewAction;
4905
- reason?: string;
4906
- }
4907
- interface AiwgIndexControllerSnapshot {
4908
- index: AiwgFortemiIndexExport | null;
4909
- chunked: {
4910
- manifest: AiwgFortemiChunkManifest;
4911
- cachedParts: number;
4912
- maxCachedParts: number;
4913
- } | null;
4914
- data: AiwgIndexQueryResult | null;
4915
- error: Error | null;
4916
- reviewDecisions: AiwgReviewDecision[];
4917
- }
4918
- type AiwgIndexControllerListener = (snapshot: AiwgIndexControllerSnapshot) => void;
4919
- interface AiwgIndexController {
4920
- loadIndex(value: unknown): AiwgFortemiIndexExport;
4921
- loadChunkedIndex(manifest: unknown, loader: AiwgChunkedIndexLoader, options?: AiwgChunkedIndexLoadOptions): AiwgFortemiChunkManifest;
4922
- getIndex(): AiwgFortemiIndexExport | null;
4923
- getChunkedManifest(): AiwgFortemiChunkManifest | null;
4924
- getSnapshot(): AiwgIndexControllerSnapshot;
4925
- query(query?: string, options?: AiwgIndexQueryOptions): AiwgIndexQueryResult;
4926
- queryChunked(query?: string, options?: AiwgChunkedIndexQueryOptions): Promise<AiwgChunkedIndexQueryResult>;
4927
- getRecord(id: string): Promise<AiwgFortemiRecord>;
4928
- neighbors(id: string, options?: AiwgRelationshipTraversalOptions): Promise<AiwgRelationshipTraversalResult>;
4929
- relationshipQuery(options?: AiwgRelationshipQueryOptions): Promise<AiwgRelationshipTraversalResult>;
4930
- relationshipSet(options: AiwgRelationshipSetOptions): Promise<AiwgRelationshipSetResult>;
4931
- clearChunkCache(): void;
4932
- toCommunityGraph(options?: AiwgIndexGraphOptions): ReturnType<typeof aiwgFortemiIndexToCommunityGraph>;
4933
- toCommunityGraphChunked(options?: AiwgIndexGraphOptions & {
4934
- onProgress?: (progress: AiwgChunkedIndexProgress) => void;
4935
- }): Promise<ReturnType<typeof aiwgFortemiIndexToCommunityGraph>>;
4936
- setReviewDecision(input: AiwgReviewInput): AiwgReviewDecision;
4937
- clearReviewDecision(itemId: string): void;
4938
- createReviewDecisionExport(generatedAt?: string): AiwgReviewDecisionExport;
4939
- subscribe(listener: AiwgIndexControllerListener): () => void;
4940
- }
4941
- declare function validateAiwgFortemiIndexExport(value: unknown): AiwgIndexValidationResult;
4942
- declare function assertAiwgFortemiIndexExport(value: unknown): AiwgFortemiIndexExport;
4943
- declare function validateAiwgFortemiChunkManifest(value: unknown): AiwgChunkedIndexValidationResult;
4944
- declare function assertAiwgFortemiChunkManifest(value: unknown): AiwgFortemiChunkManifest;
4945
- declare function validateAiwgFortemiChunkPart(value: unknown, partRef?: AiwgFortemiChunkPartRef, manifest?: AiwgFortemiChunkManifest): AiwgChunkedIndexValidationResult;
4946
- declare function assertAiwgFortemiChunkPart(value: unknown, partRef?: AiwgFortemiChunkPartRef, manifest?: AiwgFortemiChunkManifest): AiwgFortemiChunkPart;
4947
- declare function createAiwgFetchChunkLoader(baseUrl?: string | URL): AiwgChunkedIndexLoader;
4948
- declare function createAiwgFetchDetailLoader(baseUrl?: string | URL): AiwgChunkedIndexDetailLoader;
4949
- declare function getAiwgFortemiFacets(items: AiwgFortemiRecord[]): Record<string, Record<string, number>>;
4950
- declare function buildAiwgStaticEmbeddingSet(index: AiwgFortemiIndexExport, options: BuildAiwgStaticEmbeddingSetOptions): Promise<AiwgStaticEmbeddingSet>;
4951
- interface AiwgChunkedIndexBuildOptions {
4952
- partSize?: number;
4953
- projection?: Array<keyof AiwgFortemiRecord>;
4954
- detailHref?: string;
4955
- idEncoding?: AiwgDetailIdEncoding;
4956
- generatedAt?: string;
4957
- /** Privacy filtering (SEC6). Default-safe: excludes `private`/`pii` records. */
4958
- privacy?: AiwgPrivacyFilterOptions;
4959
- }
4960
- interface AiwgChunkedIndexBuildResult {
4961
- manifest: AiwgFortemiChunkManifest;
4962
- parts: Array<{
4963
- href: string;
4964
- part: AiwgFortemiChunkPart;
4965
- }>;
4966
- details: Array<{
4967
- id: string;
4968
- href: string;
4969
- record: AiwgFortemiRecord;
4970
- }>;
4971
- }
4972
- declare function buildAiwgChunkedIndex(index: AiwgFortemiIndexExport, options?: AiwgChunkedIndexBuildOptions): AiwgChunkedIndexBuildResult;
4973
- declare function queryAiwgFortemiIndex(index: AiwgFortemiIndexExport, query?: string, options?: AiwgIndexQueryOptions): AiwgIndexQueryResult;
4974
- declare function validateAiwgStaticEmbeddingSet(value: unknown): AiwgChunkedIndexValidationResult;
4975
- declare function assertAiwgStaticEmbeddingSet(value: unknown): AiwgStaticEmbeddingSet;
4976
- declare function queryAiwgSemanticIndex(index: AiwgFortemiIndexExport, embeddingSet: AiwgStaticEmbeddingSet, queryEmbedding: number[], options?: AiwgStaticSemanticQueryOptions): AiwgStaticSemanticResult[];
4977
- declare function queryAiwgHybridIndex(index: AiwgFortemiIndexExport, embeddingSet: AiwgStaticEmbeddingSet, query: string, queryEmbedding: number[], options?: AiwgStaticHybridQueryOptions): AiwgStaticSemanticResult[];
4978
- declare function findAiwgStaticDuplicatePairs(index: AiwgFortemiIndexExport, embeddingSet: AiwgStaticEmbeddingSet, threshold?: number, options?: {
4979
- maxEmbeddings?: number;
4980
- }): AiwgStaticDuplicatePair[];
4981
- declare function createAiwgReviewDecisionExport(source: Pick<AiwgFortemiIndexExport, 'schema_version'>, decisions: AiwgReviewDecision[], generatedAt?: string): AiwgReviewDecisionExport;
4982
- declare function createAiwgIndexController(initialIndex?: AiwgFortemiIndexExport): AiwgIndexController;
4983
- declare function aiwgFortemiIndexToCommunityGraph(index: AiwgFortemiIndexExport, options?: AiwgIndexGraphOptions): {
4984
- nodes: {
4985
- id: string;
4986
- }[];
4987
- edges: {
4988
- source: string;
4989
- target: string;
4990
- kind: string;
4991
- weight: number;
4992
- }[];
4993
- communities: {
4994
- id: string;
4995
- nodes: string[];
4996
- }[];
4997
- };
4998
- /**
4999
- * Convert the static AIWG/Fortemi v2 index contract into a portable Knowledge
5000
- * Shard. Every note retains the complete source envelope and record in metadata,
5001
- * so the native note/link/SKOS/provenance projections are reversible.
5002
- */
5003
- declare function aiwgFortemiIndexToKnowledgeShard(index: AiwgFortemiIndexExport, options?: AiwgKnowledgeShardOptions): Promise<Uint8Array>;
5004
- /**
5005
- * Recover the exact AIWG index envelope and records embedded by
5006
- * {@link aiwgFortemiIndexToKnowledgeShard}.
5007
- */
5008
- declare function aiwgFortemiIndexFromKnowledgeShard(bytes: Uint8Array): AiwgFortemiIndexExport;
5009
-
5010
4524
  /**
5011
4525
  * Canonical RecordStore contract — the writable structured-record layer that
5012
4526
  * exists independently of PGlite (#323, ADR-013 D3).
@@ -5522,6 +5036,6 @@ declare function importShardToRecords(store: RecordStore, data: Uint8Array | Arr
5522
5036
  * @created 2026-07-17
5523
5037
  * @agent Codex
5524
5038
  */
5525
- declare const VERSION = "2026.7.11";
5039
+ declare const VERSION = "2026.7.12";
5526
5040
 
5527
- export { AIWG_SCAN_REQUIRED_FIELDS, type AiwgChunkedIndexBuildOptions, type AiwgChunkedIndexBuildResult, type AiwgChunkedIndexDetailLoader, type AiwgChunkedIndexLoadOptions, type AiwgChunkedIndexLoader, type AiwgChunkedIndexProgress, type AiwgChunkedIndexProgressPhase, type AiwgChunkedIndexQueryOptions, type AiwgChunkedIndexQueryResult, type AiwgChunkedIndexValidationResult, type AiwgFortemiAttachmentReference, type AiwgFortemiBinarySource, type AiwgFortemiChunk, type AiwgFortemiChunkDetailRef, type AiwgFortemiChunkManifest, type AiwgFortemiChunkPart, type AiwgFortemiChunkPartRef, type AiwgFortemiIndexExport, type AiwgFortemiIndexExportSchemaVersion, type AiwgFortemiProjectedRecord, type AiwgFortemiProvenance, type AiwgFortemiProvenanceEvent, type AiwgFortemiRecord, type AiwgFortemiRecordEmbedding, type AiwgFortemiRecordSchemaVersion, type AiwgFortemiRecordSource, type AiwgFortemiRecordType, type AiwgFortemiRelationship, type AiwgFortemiRelationshipDirection, type AiwgFortemiSearchProjection, type AiwgFortemiSkosConcept, type AiwgFortemiSkosRelation, type AiwgFortemiSkosRelationType, type AiwgHeadlessEmbeddingBackend, type AiwgIndexController, type AiwgIndexControllerListener, type AiwgIndexControllerSnapshot, type AiwgIndexGraphOptions, type AiwgIndexQueryMatch, type AiwgIndexQueryOptions, type AiwgIndexQueryRankedItem, type AiwgIndexQueryResult, type AiwgIndexQueryWeights, type AiwgIndexValidationResult, type AiwgKnowledgeShardOptions, type AiwgPrivacyClassification, type AiwgPrivacyFilterOptions, type AiwgProvenanceConfidence, type AiwgRelationshipDirection, type AiwgRelationshipEdgeSummary, type AiwgRelationshipNodeSummary, type AiwgRelationshipQueryOptions, type AiwgRelationshipSetOperation, type AiwgRelationshipSetOptions, type AiwgRelationshipSetResult, type AiwgRelationshipTraversalOptions, type AiwgRelationshipTraversalResult, type AiwgReviewAction, type AiwgReviewDecision, type AiwgReviewDecisionExport, type AiwgReviewInput, type AiwgStaticDuplicatePair, type AiwgStaticEmbeddingRecord, type AiwgStaticEmbeddingSet, type AiwgStaticHybridQueryOptions, type AiwgStaticSemanticQueryOptions, type AiwgStaticSemanticResult, AllowlistTrustStore, 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, type BlobBackendKind, type BlobGcOptions, type BlobGcResult, type BlobReconcileOptions, type BlobReconcileResult, type BlobStore, type BlobStoreDiagnostics, type BridgeCapability, type BridgeProviderInfo, type BrowserNoteExport, type BuildAiwgStaticEmbeddingSetOptions, CORE_V1_COMPONENTS, CURRENT_MIGRATION_HEAD, CURRENT_SHARD_VERSION, 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 ConflictStrategy, type CooldownConfig, type CooldownEvent, type CosineSemanticProviderOptions, type CreateBlobStoreOptions, 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, type ExportOptions, FORTEMI_COMPATIBILITY_PATH, FORTEMI_COMPATIBILITY_STATES, FORTEMI_REQUIRED_COMPATIBILITY_CAPABILITIES, 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, 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, type JournalEntry, type KnowledgeShardProfile, 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, MemoryBlobStore, 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 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, SHARD_FORMAT, SIGNATURE_ENTRY, SIGNING_ENVELOPE_VERSION, SUPPORTED_PGLITE_VERSION, type SWRegistrationResult, type SearchFacets, type SearchInput, SearchInputSchema, type SearchOptions, SearchRepository, type SearchResponse, type SearchResult, type ShardAuthorityStatus, type ShardBackend, type ShardBackendOptions, type ShardCapabilityReport, type ShardClusterRef, type ShardCollection, type ShardComponent, type ShardComponentStore, type ShardEmbedding, type ShardEmbeddingConfig, type ShardEmbeddingSet, type ShardEmbeddingSetMember, type ShardExportResult, type ShardLayout, type ShardLink, type ShardListOptions, type ShardLossEntry, type ShardManifest, type ShardNote, type ShardNoteFull, type ShardNoteSkosTag, type ShardOperation, type ShardProfileRegistryEntry, type ShardProvenanceEdge, type ShardReader, type ShardReaderNote, type ShardReaderSource, type ShardSchemaValidationResult, type ShardSearchOptions, type ShardSearchRankedNote, type ShardSearchResult, type ShardSearchWeights, type ShardSignatureEnvelope, type ShardSignatureVerdict, type ShardSigner, type ShardSigningPayload, type ShardSkosConcept, type ShardSkosRelation, type ShardSkosScheme, type ShardTag, type ShardTemplate, type ShardTrustStore, type SignShardInput, 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, type TrustedKey, TypedEventBus, VERSION, type VectorEntry, type VerifyShardSignatureInput, type VirtualEmbeddingSetDefinition, type VirtualEmbeddingSetSource, type VirtualEmbeddingSetValidationError, type VirtualMaterializationPolicy, type VramTier, type WorkerRequest, type WorkerResponse, aiRevisionHandler, aiwgFortemiIndexFromKnowledgeShard, aiwgFortemiIndexToCommunityGraph, aiwgFortemiIndexToKnowledgeShard, allMigrations, appendPluginScript, assertAiwgFortemiChunkManifest, assertAiwgFortemiChunkPart, assertAiwgFortemiIndexExport, assertAiwgStaticEmbeddingSet, assertShardComponentRecord, buildAiwgChunkedIndex, buildAiwgStaticEmbeddingSet, buildNoteConditions, buildPluginCsp, captureKnowledge, chunkText, classifyError, classifyModel, clearPrefetchedShard, collectionFromShard, collectionToShard, computeBlobHash, computeHash, computeSri, conceptTaggingHandler, cosineSimilarity, createAiwgFetchChunkLoader, createAiwgFetchDetailLoader, createAiwgIndexController, createAiwgReviewDecisionExport, createBlobStore, createCosineSemanticProvider, createCspReportHandler, createFortemi, createLazyBlobStore, 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, filterAiwgRecordsByPrivacy, findAiwgStaticDuplicatePairs, formatFortemiCompatibilitySummary, fortemiCompatibilityUrl, fortemiManifest, fromPrefetched, generateId, getAiwgFortemiFacets, getEmbedFunction, getFortemiBridge, getFortemiSecretStore, getJobQueueStatus, getKnowledgeShardContractReceipt, getKnowledgeShardProfileRegistry, getKnowledgeShardSchema, getLlmFunction, getNote, getPrefetchedSha256, handleEmbedRequests, hasFortemiSecureSecrets, importShard, importShardToRecords, isPluginScriptAllowed, isShardPrefetched, isShardSigningSupported, 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, queryAiwgFortemiIndex, queryAiwgHybridIndex, queryAiwgSemanticIndex, registerLlmCapability, registerSemanticCapability, registerSemanticCapabilityWorker, registerServiceWorker, restoreDbSnapshot, searchTool, selectBackend, selectLlmModel, setEmbedFunction, setLlmFunction, sha256Hex, sidecarBlobDigests, signShard, skosConceptToShard, skosRelationToShard, skosSchemeToShard, suggestTags, tagsToShard, templateToShard, titleGenerationHandler, unpackTarGz, unregisterLlmCapability, unregisterSemanticCapability, urlLinkToShard, validateAiwgFortemiChunkManifest, validateAiwgFortemiChunkPart, validateAiwgFortemiIndexExport, validateAiwgStaticEmbeddingSet, validateChecksums, validateCoreV1ShardArchive, validateFortemiCompatibilityResponse, validateFullV1ShardArchive, validateRecordV1ShardArchive, validateShardArchive, validateShardComponentRecord, validateShardManifest, verifyDbSnapshotMeta, verifyShardSignature, verifySri };
5041
+ export { AllowlistTrustStore, 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, type BlobBackendKind, type BlobGcOptions, type BlobGcResult, type BlobReconcileOptions, type BlobReconcileResult, type BlobStore, type BlobStoreDiagnostics, type BridgeCapability, type BridgeProviderInfo, type BrowserNoteExport, CORE_V1_COMPONENTS, CURRENT_MIGRATION_HEAD, CURRENT_SHARD_VERSION, 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 ConflictStrategy, type CooldownConfig, type CooldownEvent, type CosineSemanticProviderOptions, type CreateBlobStoreOptions, 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, type ExportOptions, FORTEMI_COMPATIBILITY_PATH, FORTEMI_COMPATIBILITY_STATES, FORTEMI_REQUIRED_COMPATIBILITY_CAPABILITIES, 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, 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, type JournalEntry, type KnowledgeShardProfile, 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, MemoryBlobStore, 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 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, SHARD_FORMAT, SIGNATURE_ENTRY, SIGNING_ENVELOPE_VERSION, SUPPORTED_PGLITE_VERSION, type SWRegistrationResult, type SearchFacets, type SearchInput, SearchInputSchema, type SearchOptions, SearchRepository, type SearchResponse, type SearchResult, type ShardAuthorityStatus, type ShardBackend, type ShardBackendOptions, type ShardCapabilityReport, type ShardClusterRef, type ShardCollection, type ShardComponent, type ShardComponentStore, type ShardEmbedding, type ShardEmbeddingConfig, type ShardEmbeddingSet, type ShardEmbeddingSetMember, type ShardExportResult, type ShardLayout, type ShardLink, type ShardListOptions, type ShardLossEntry, type ShardManifest, type ShardNote, type ShardNoteFull, type ShardNoteSkosTag, type ShardOperation, type ShardProfileRegistryEntry, type ShardProvenanceEdge, type ShardReader, type ShardReaderNote, type ShardReaderSource, type ShardSchemaValidationResult, type ShardSearchOptions, type ShardSearchRankedNote, type ShardSearchResult, type ShardSearchWeights, type ShardSignatureEnvelope, type ShardSignatureVerdict, type ShardSigner, type ShardSigningPayload, type ShardSkosConcept, type ShardSkosRelation, type ShardSkosScheme, type ShardTag, type ShardTemplate, type ShardTrustStore, type SignShardInput, 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, type TrustedKey, TypedEventBus, VERSION, type VectorEntry, type VerifyShardSignatureInput, 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, createBlobStore, createCosineSemanticProvider, createCspReportHandler, createFortemi, createLazyBlobStore, 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, isShardSigningSupported, 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, sidecarBlobDigests, signShard, skosConceptToShard, skosRelationToShard, skosSchemeToShard, suggestTags, tagsToShard, templateToShard, titleGenerationHandler, unpackTarGz, unregisterLlmCapability, unregisterSemanticCapability, urlLinkToShard, validateChecksums, validateCoreV1ShardArchive, validateFortemiCompatibilityResponse, validateFullV1ShardArchive, validateRecordV1ShardArchive, validateShardArchive, validateShardComponentRecord, validateShardManifest, verifyDbSnapshotMeta, verifyShardSignature, verifySri };