@fortemi/core 2026.7.7 → 2026.7.8
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 +235 -98
- package/dist/index.js +794 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -975,79 +975,6 @@ interface ShardArtifactFreshness {
|
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
977
|
|
|
978
|
-
/**
|
|
979
|
-
* LinksRepository — bidirectional note link management.
|
|
980
|
-
*
|
|
981
|
-
* Responsibilities:
|
|
982
|
-
* - Create typed links between notes with duplicate prevention
|
|
983
|
-
* - Soft-delete links
|
|
984
|
-
* - Query outbound, inbound, and backlinks for a note
|
|
985
|
-
*/
|
|
986
|
-
|
|
987
|
-
interface LinkRow {
|
|
988
|
-
id: string;
|
|
989
|
-
source_note_id: string;
|
|
990
|
-
target_note_id: string;
|
|
991
|
-
link_type: string;
|
|
992
|
-
confidence: number | null;
|
|
993
|
-
created_at: Date;
|
|
994
|
-
updated_at: Date | null;
|
|
995
|
-
deleted_at: Date | null;
|
|
996
|
-
}
|
|
997
|
-
declare class LinksRepository {
|
|
998
|
-
private db;
|
|
999
|
-
constructor(db: DatabaseClient);
|
|
1000
|
-
create(sourceNoteId: string, targetNoteId: string, linkType?: string): Promise<LinkRow>;
|
|
1001
|
-
get(id: string): Promise<LinkRow>;
|
|
1002
|
-
listForNote(noteId: string): Promise<{
|
|
1003
|
-
outbound: LinkRow[];
|
|
1004
|
-
inbound: LinkRow[];
|
|
1005
|
-
}>;
|
|
1006
|
-
getBacklinks(noteId: string): Promise<string[]>;
|
|
1007
|
-
delete(id: string): Promise<void>;
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
/**
|
|
1011
|
-
* CollectionsRepository — folder/category management for notes.
|
|
1012
|
-
*
|
|
1013
|
-
* Responsibilities:
|
|
1014
|
-
* - Create, read, update, and soft-delete collections
|
|
1015
|
-
* - Prevent circular parent references
|
|
1016
|
-
* - Assign and unassign notes from collections
|
|
1017
|
-
* - Return flat list and shallow tree views
|
|
1018
|
-
*/
|
|
1019
|
-
|
|
1020
|
-
interface CollectionRow {
|
|
1021
|
-
id: string;
|
|
1022
|
-
name: string;
|
|
1023
|
-
description: string | null;
|
|
1024
|
-
parent_id: string | null;
|
|
1025
|
-
position: number;
|
|
1026
|
-
created_at: Date;
|
|
1027
|
-
updated_at: Date;
|
|
1028
|
-
deleted_at: Date | null;
|
|
1029
|
-
}
|
|
1030
|
-
interface CollectionCreateInput {
|
|
1031
|
-
name: string;
|
|
1032
|
-
description?: string;
|
|
1033
|
-
parent_id?: string;
|
|
1034
|
-
}
|
|
1035
|
-
declare class CollectionsRepository {
|
|
1036
|
-
private db;
|
|
1037
|
-
constructor(db: DatabaseClient);
|
|
1038
|
-
create(input: CollectionCreateInput): Promise<CollectionRow>;
|
|
1039
|
-
get(id: string): Promise<CollectionRow>;
|
|
1040
|
-
list(): Promise<CollectionRow[]>;
|
|
1041
|
-
listTree(): Promise<Array<CollectionRow & {
|
|
1042
|
-
children: CollectionRow[];
|
|
1043
|
-
}>>;
|
|
1044
|
-
update(id: string, fields: Partial<Pick<CollectionRow, 'name' | 'description' | 'parent_id' | 'position'>>): Promise<CollectionRow>;
|
|
1045
|
-
delete(id: string): Promise<void>;
|
|
1046
|
-
assignNote(collectionId: string, noteId: string): Promise<void>;
|
|
1047
|
-
unassignNote(collectionId: string, noteId: string): Promise<void>;
|
|
1048
|
-
getNotesInCollection(collectionId: string): Promise<string[]>;
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
978
|
/**
|
|
1052
979
|
* Field mapper — converts between browser schema and shard (server) schema.
|
|
1053
980
|
*
|
|
@@ -1077,8 +1004,15 @@ interface BrowserNoteExport {
|
|
|
1077
1004
|
declare function noteToShard(note: BrowserNoteExport): ShardNote;
|
|
1078
1005
|
/** Convert a shard note back to browser-insertable format. */
|
|
1079
1006
|
declare function noteFromShard(shard: ShardNote): BrowserNoteExport;
|
|
1080
|
-
/** Convert a browser link to shard format. */
|
|
1081
|
-
declare function linkToShard(link:
|
|
1007
|
+
/** Convert a browser link to shard format (accepts SQL rows or canonical ISO-string records). */
|
|
1008
|
+
declare function linkToShard(link: {
|
|
1009
|
+
id: string;
|
|
1010
|
+
source_note_id: string;
|
|
1011
|
+
target_note_id: string;
|
|
1012
|
+
link_type: string;
|
|
1013
|
+
confidence: number | null;
|
|
1014
|
+
created_at: Date | string;
|
|
1015
|
+
}): ShardLink;
|
|
1082
1016
|
/** Convert a browser URL-target link row to shard format. */
|
|
1083
1017
|
declare function urlLinkToShard(link: {
|
|
1084
1018
|
id: string;
|
|
@@ -1100,8 +1034,14 @@ declare function linkFromShard(shard: ShardLink): {
|
|
|
1100
1034
|
created_at: string;
|
|
1101
1035
|
metadata: Record<string, unknown> | null;
|
|
1102
1036
|
};
|
|
1103
|
-
/** Convert a browser collection to shard format. */
|
|
1104
|
-
declare function collectionToShard(collection:
|
|
1037
|
+
/** Convert a browser collection to shard format (accepts SQL rows or canonical ISO-string records). */
|
|
1038
|
+
declare function collectionToShard(collection: {
|
|
1039
|
+
id: string;
|
|
1040
|
+
name: string;
|
|
1041
|
+
description: string | null;
|
|
1042
|
+
parent_id: string | null;
|
|
1043
|
+
created_at: Date | string;
|
|
1044
|
+
}, noteCount?: number): ShardCollection;
|
|
1105
1045
|
/** Convert a shard collection back to browser-insertable format. */
|
|
1106
1046
|
declare function collectionFromShard(shard: ShardCollection): {
|
|
1107
1047
|
id: string;
|
|
@@ -2714,6 +2654,79 @@ declare class TagsRepository {
|
|
|
2714
2654
|
}>>;
|
|
2715
2655
|
}
|
|
2716
2656
|
|
|
2657
|
+
/**
|
|
2658
|
+
* CollectionsRepository — folder/category management for notes.
|
|
2659
|
+
*
|
|
2660
|
+
* Responsibilities:
|
|
2661
|
+
* - Create, read, update, and soft-delete collections
|
|
2662
|
+
* - Prevent circular parent references
|
|
2663
|
+
* - Assign and unassign notes from collections
|
|
2664
|
+
* - Return flat list and shallow tree views
|
|
2665
|
+
*/
|
|
2666
|
+
|
|
2667
|
+
interface CollectionRow {
|
|
2668
|
+
id: string;
|
|
2669
|
+
name: string;
|
|
2670
|
+
description: string | null;
|
|
2671
|
+
parent_id: string | null;
|
|
2672
|
+
position: number;
|
|
2673
|
+
created_at: Date;
|
|
2674
|
+
updated_at: Date;
|
|
2675
|
+
deleted_at: Date | null;
|
|
2676
|
+
}
|
|
2677
|
+
interface CollectionCreateInput {
|
|
2678
|
+
name: string;
|
|
2679
|
+
description?: string;
|
|
2680
|
+
parent_id?: string;
|
|
2681
|
+
}
|
|
2682
|
+
declare class CollectionsRepository {
|
|
2683
|
+
private db;
|
|
2684
|
+
constructor(db: DatabaseClient);
|
|
2685
|
+
create(input: CollectionCreateInput): Promise<CollectionRow>;
|
|
2686
|
+
get(id: string): Promise<CollectionRow>;
|
|
2687
|
+
list(): Promise<CollectionRow[]>;
|
|
2688
|
+
listTree(): Promise<Array<CollectionRow & {
|
|
2689
|
+
children: CollectionRow[];
|
|
2690
|
+
}>>;
|
|
2691
|
+
update(id: string, fields: Partial<Pick<CollectionRow, 'name' | 'description' | 'parent_id' | 'position'>>): Promise<CollectionRow>;
|
|
2692
|
+
delete(id: string): Promise<void>;
|
|
2693
|
+
assignNote(collectionId: string, noteId: string): Promise<void>;
|
|
2694
|
+
unassignNote(collectionId: string, noteId: string): Promise<void>;
|
|
2695
|
+
getNotesInCollection(collectionId: string): Promise<string[]>;
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
/**
|
|
2699
|
+
* LinksRepository — bidirectional note link management.
|
|
2700
|
+
*
|
|
2701
|
+
* Responsibilities:
|
|
2702
|
+
* - Create typed links between notes with duplicate prevention
|
|
2703
|
+
* - Soft-delete links
|
|
2704
|
+
* - Query outbound, inbound, and backlinks for a note
|
|
2705
|
+
*/
|
|
2706
|
+
|
|
2707
|
+
interface LinkRow {
|
|
2708
|
+
id: string;
|
|
2709
|
+
source_note_id: string;
|
|
2710
|
+
target_note_id: string;
|
|
2711
|
+
link_type: string;
|
|
2712
|
+
confidence: number | null;
|
|
2713
|
+
created_at: Date;
|
|
2714
|
+
updated_at: Date | null;
|
|
2715
|
+
deleted_at: Date | null;
|
|
2716
|
+
}
|
|
2717
|
+
declare class LinksRepository {
|
|
2718
|
+
private db;
|
|
2719
|
+
constructor(db: DatabaseClient);
|
|
2720
|
+
create(sourceNoteId: string, targetNoteId: string, linkType?: string): Promise<LinkRow>;
|
|
2721
|
+
get(id: string): Promise<LinkRow>;
|
|
2722
|
+
listForNote(noteId: string): Promise<{
|
|
2723
|
+
outbound: LinkRow[];
|
|
2724
|
+
inbound: LinkRow[];
|
|
2725
|
+
}>;
|
|
2726
|
+
getBacklinks(noteId: string): Promise<string[]>;
|
|
2727
|
+
delete(id: string): Promise<void>;
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2717
2730
|
/**
|
|
2718
2731
|
* SkosRepository — SKOS taxonomy management (schemes, concepts, relations).
|
|
2719
2732
|
*
|
|
@@ -2871,19 +2884,19 @@ declare const CaptureKnowledgeInputSchema: z.ZodObject<{
|
|
|
2871
2884
|
}, {
|
|
2872
2885
|
content: string;
|
|
2873
2886
|
title?: string | undefined;
|
|
2874
|
-
format?: "markdown" | "plain" | "html" | undefined;
|
|
2875
2887
|
tags?: string[] | undefined;
|
|
2888
|
+
format?: "markdown" | "plain" | "html" | undefined;
|
|
2876
2889
|
}>, "many">>;
|
|
2877
2890
|
template: z.ZodOptional<z.ZodString>;
|
|
2878
2891
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2879
2892
|
}, "strip", z.ZodTypeAny, {
|
|
2880
2893
|
source: string;
|
|
2881
2894
|
format: "markdown" | "plain" | "html";
|
|
2882
|
-
visibility: "private" | "
|
|
2895
|
+
visibility: "private" | "public" | "shared";
|
|
2883
2896
|
action: "create" | "bulk_create" | "from_template";
|
|
2884
2897
|
title?: string | undefined;
|
|
2885
|
-
archive_id?: string | undefined;
|
|
2886
2898
|
tags?: string[] | undefined;
|
|
2899
|
+
archive_id?: string | undefined;
|
|
2887
2900
|
content?: string | undefined;
|
|
2888
2901
|
notes?: {
|
|
2889
2902
|
format: "markdown" | "plain" | "html";
|
|
@@ -2897,16 +2910,16 @@ declare const CaptureKnowledgeInputSchema: z.ZodObject<{
|
|
|
2897
2910
|
action: "create" | "bulk_create" | "from_template";
|
|
2898
2911
|
source?: string | undefined;
|
|
2899
2912
|
title?: string | undefined;
|
|
2900
|
-
archive_id?: string | undefined;
|
|
2901
|
-
format?: "markdown" | "plain" | "html" | undefined;
|
|
2902
|
-
visibility?: "private" | "shared" | "public" | undefined;
|
|
2903
2913
|
tags?: string[] | undefined;
|
|
2914
|
+
format?: "markdown" | "plain" | "html" | undefined;
|
|
2915
|
+
archive_id?: string | undefined;
|
|
2916
|
+
visibility?: "private" | "public" | "shared" | undefined;
|
|
2904
2917
|
content?: string | undefined;
|
|
2905
2918
|
notes?: {
|
|
2906
2919
|
content: string;
|
|
2907
2920
|
title?: string | undefined;
|
|
2908
|
-
format?: "markdown" | "plain" | "html" | undefined;
|
|
2909
2921
|
tags?: string[] | undefined;
|
|
2922
|
+
format?: "markdown" | "plain" | "html" | undefined;
|
|
2910
2923
|
}[] | undefined;
|
|
2911
2924
|
template?: string | undefined;
|
|
2912
2925
|
variables?: Record<string, string> | undefined;
|
|
@@ -2956,14 +2969,14 @@ declare const SearchInputSchema: z.ZodObject<{
|
|
|
2956
2969
|
limit: number;
|
|
2957
2970
|
offset: number;
|
|
2958
2971
|
include_facets: boolean;
|
|
2959
|
-
mode: "
|
|
2972
|
+
mode: "text" | "auto" | "semantic" | "hybrid";
|
|
2960
2973
|
query: string;
|
|
2961
2974
|
source?: string | undefined;
|
|
2975
|
+
tags?: string[] | undefined;
|
|
2962
2976
|
format?: "markdown" | "plain" | "html" | undefined;
|
|
2963
|
-
visibility?: "private" | "
|
|
2977
|
+
visibility?: "private" | "public" | "shared" | undefined;
|
|
2964
2978
|
is_starred?: boolean | undefined;
|
|
2965
2979
|
is_archived?: boolean | undefined;
|
|
2966
|
-
tags?: string[] | undefined;
|
|
2967
2980
|
collection_id?: string | undefined;
|
|
2968
2981
|
date_from?: Date | undefined;
|
|
2969
2982
|
date_to?: Date | undefined;
|
|
@@ -2972,18 +2985,18 @@ declare const SearchInputSchema: z.ZodObject<{
|
|
|
2972
2985
|
}, {
|
|
2973
2986
|
query: string;
|
|
2974
2987
|
source?: string | undefined;
|
|
2988
|
+
tags?: string[] | undefined;
|
|
2975
2989
|
format?: "markdown" | "plain" | "html" | undefined;
|
|
2976
|
-
visibility?: "private" | "
|
|
2990
|
+
visibility?: "private" | "public" | "shared" | undefined;
|
|
2977
2991
|
is_starred?: boolean | undefined;
|
|
2978
2992
|
is_archived?: boolean | undefined;
|
|
2979
|
-
tags?: string[] | undefined;
|
|
2980
2993
|
limit?: number | undefined;
|
|
2981
2994
|
offset?: number | undefined;
|
|
2982
2995
|
collection_id?: string | undefined;
|
|
2983
2996
|
date_from?: Date | undefined;
|
|
2984
2997
|
date_to?: Date | undefined;
|
|
2985
2998
|
include_facets?: boolean | undefined;
|
|
2986
|
-
mode?: "
|
|
2999
|
+
mode?: "text" | "auto" | "semantic" | "hybrid" | undefined;
|
|
2987
3000
|
embeddingSetId?: string | undefined;
|
|
2988
3001
|
query_embedding?: number[] | undefined;
|
|
2989
3002
|
}>;
|
|
@@ -3063,20 +3076,20 @@ declare const ListNotesInputSchema: z.ZodObject<{
|
|
|
3063
3076
|
collection_id: z.ZodOptional<z.ZodString>;
|
|
3064
3077
|
include_deleted: z.ZodOptional<z.ZodBoolean>;
|
|
3065
3078
|
}, "strip", z.ZodTypeAny, {
|
|
3066
|
-
sort: "
|
|
3079
|
+
sort: "updated_at" | "title" | "created_at";
|
|
3067
3080
|
limit: number;
|
|
3068
3081
|
offset: number;
|
|
3069
3082
|
order: "asc" | "desc";
|
|
3083
|
+
tags?: string[] | undefined;
|
|
3070
3084
|
is_starred?: boolean | undefined;
|
|
3071
3085
|
is_archived?: boolean | undefined;
|
|
3072
|
-
tags?: string[] | undefined;
|
|
3073
3086
|
include_deleted?: boolean | undefined;
|
|
3074
3087
|
collection_id?: string | undefined;
|
|
3075
3088
|
}, {
|
|
3076
|
-
|
|
3089
|
+
tags?: string[] | undefined;
|
|
3090
|
+
sort?: "updated_at" | "title" | "created_at" | undefined;
|
|
3077
3091
|
is_starred?: boolean | undefined;
|
|
3078
3092
|
is_archived?: boolean | undefined;
|
|
3079
|
-
tags?: string[] | undefined;
|
|
3080
3093
|
limit?: number | undefined;
|
|
3081
3094
|
offset?: number | undefined;
|
|
3082
3095
|
order?: "asc" | "desc" | undefined;
|
|
@@ -3119,16 +3132,16 @@ declare const ManageCollectionsInputSchema: z.ZodObject<{
|
|
|
3119
3132
|
note_id: z.ZodOptional<z.ZodString>;
|
|
3120
3133
|
}, "strip", z.ZodTypeAny, {
|
|
3121
3134
|
action: "create" | "delete" | "list" | "assign" | "unassign" | "list_tree";
|
|
3135
|
+
name?: string | undefined;
|
|
3122
3136
|
collection_id?: string | undefined;
|
|
3123
3137
|
note_id?: string | undefined;
|
|
3124
|
-
name?: string | undefined;
|
|
3125
3138
|
description?: string | undefined;
|
|
3126
3139
|
parent_id?: string | undefined;
|
|
3127
3140
|
}, {
|
|
3128
3141
|
action: "create" | "delete" | "list" | "assign" | "unassign" | "list_tree";
|
|
3142
|
+
name?: string | undefined;
|
|
3129
3143
|
collection_id?: string | undefined;
|
|
3130
3144
|
note_id?: string | undefined;
|
|
3131
|
-
name?: string | undefined;
|
|
3132
3145
|
description?: string | undefined;
|
|
3133
3146
|
parent_id?: string | undefined;
|
|
3134
3147
|
}>;
|
|
@@ -5099,6 +5112,8 @@ interface CanonicalNoteCreateInput {
|
|
|
5099
5112
|
interface CanonicalNoteUpdateInput {
|
|
5100
5113
|
title?: string;
|
|
5101
5114
|
content?: string;
|
|
5115
|
+
format?: string;
|
|
5116
|
+
visibility?: string;
|
|
5102
5117
|
is_starred?: boolean;
|
|
5103
5118
|
is_pinned?: boolean;
|
|
5104
5119
|
is_archived?: boolean;
|
|
@@ -5214,6 +5229,128 @@ declare function projectAttachments(db: DatabaseClient, store: RecordStore): Pro
|
|
|
5214
5229
|
*/
|
|
5215
5230
|
declare function dropAttachmentProjection(db: DatabaseClient): Promise<void>;
|
|
5216
5231
|
|
|
5217
|
-
|
|
5232
|
+
/**
|
|
5233
|
+
* PGlite record projection — notes tier (#323 cycle 2, ADR-013 D3).
|
|
5234
|
+
*
|
|
5235
|
+
* Projects canonical note / tag / link / collection state (RecordStore) into
|
|
5236
|
+
* the optional PGlite tables, completing the projection the attachment tier
|
|
5237
|
+
* (#320, attachment-projection.ts) deferred to this cycle. Properties:
|
|
5238
|
+
*
|
|
5239
|
+
* - Idempotent: rows upsert on their primary keys; re-running with the same
|
|
5240
|
+
* canonical state changes nothing.
|
|
5241
|
+
* - Rebuildable: dropping the projection rows and re-projecting yields
|
|
5242
|
+
* equivalent query results — canonical records are the source of truth.
|
|
5243
|
+
* - Reconciling: canonically hard-removed rows (note_tag, collection_note)
|
|
5244
|
+
* are deleted from the projection so parity holds after removals, not just
|
|
5245
|
+
* after inserts.
|
|
5246
|
+
* - Bytes never enter PGlite; `projectRecords` composes this pass with the
|
|
5247
|
+
* attachment projection for a full canonical → PGlite rebuild.
|
|
5248
|
+
*/
|
|
5249
|
+
|
|
5250
|
+
interface NoteProjectionResult {
|
|
5251
|
+
notes: number;
|
|
5252
|
+
tags: number;
|
|
5253
|
+
links: number;
|
|
5254
|
+
collections: number;
|
|
5255
|
+
memberships: number;
|
|
5256
|
+
}
|
|
5257
|
+
interface RecordProjectionResult extends NoteProjectionResult {
|
|
5258
|
+
attachments: AttachmentProjectionResult;
|
|
5259
|
+
}
|
|
5260
|
+
/**
|
|
5261
|
+
* Project all canonical note-tier records into PGlite. Safe to run at any
|
|
5262
|
+
* time: startup, after journal consumption, or as a full rebuild after the
|
|
5263
|
+
* projection was dropped. Parent rows land before children (note before
|
|
5264
|
+
* note_original / tags / links / memberships) so FKs hold.
|
|
5265
|
+
*/
|
|
5266
|
+
declare function projectNotes(db: DatabaseClient, store: RecordStore): Promise<NoteProjectionResult>;
|
|
5267
|
+
/**
|
|
5268
|
+
* Full canonical → PGlite projection: note tier, then attachment tier
|
|
5269
|
+
* (parents before children). This is the "PGlite is a derived, rebuildable
|
|
5270
|
+
* projection" invariant (#322 acceptance) made executable.
|
|
5271
|
+
*/
|
|
5272
|
+
declare function projectRecords(db: DatabaseClient, store: RecordStore): Promise<RecordProjectionResult>;
|
|
5273
|
+
/**
|
|
5274
|
+
* Drop the note-tier projection rows (test/rebuild support). Canonical
|
|
5275
|
+
* records are untouched. Callers must drop dependent projections first
|
|
5276
|
+
* (attachments via `dropAttachmentProjection`, plus any embedding/SKOS rows
|
|
5277
|
+
* created outside the canonical tier) so FKs allow the deletes.
|
|
5278
|
+
*/
|
|
5279
|
+
declare function dropNoteProjection(db: DatabaseClient): Promise<void>;
|
|
5280
|
+
|
|
5281
|
+
/**
|
|
5282
|
+
* Writable non-PGlite `DataBackend` over the canonical RecordStore
|
|
5283
|
+
* (#323 cycle 2, ADR-013 D3) — the record tier in the backend seam.
|
|
5284
|
+
*
|
|
5285
|
+
* Fills the seam's historical gap: the static shard backend is read-only and
|
|
5286
|
+
* the PGlite backend needs a database. This adapter serves the canonical
|
|
5287
|
+
* repositories' full write surface plus the bounded read tier (id / recent /
|
|
5288
|
+
* tag / link lookups and a bounded substring scan) with instant startup.
|
|
5289
|
+
*
|
|
5290
|
+
* Capability boundary, reported honestly: `semantic: 'none'` (no vectors) and
|
|
5291
|
+
* search is a bounded scan, not ranked FTS. SKOS concepts and provenance
|
|
5292
|
+
* edges are not part of the canonical record collections, so `conceptsOf` /
|
|
5293
|
+
* `provenanceOf` are deliberately absent — callers feature-detect via the
|
|
5294
|
+
* optional methods rather than receiving silently empty emulations.
|
|
5295
|
+
* `merge: true` is served by `importShardToRecords` (record-shard.ts).
|
|
5296
|
+
*/
|
|
5297
|
+
|
|
5298
|
+
interface RecordBackendOptions {
|
|
5299
|
+
id?: string;
|
|
5300
|
+
}
|
|
5301
|
+
interface RecordBackendManageNoteResult {
|
|
5302
|
+
action: string;
|
|
5303
|
+
note_id: string;
|
|
5304
|
+
note?: CanonicalNoteView;
|
|
5305
|
+
}
|
|
5306
|
+
/**
|
|
5307
|
+
* Wrap a canonical `RecordStore` as a writable `DataBackend`. Reads and
|
|
5308
|
+
* writes delegate to `CanonicalNotesRepository`; `manageNote` accepts the
|
|
5309
|
+
* same Zod-validated input as the PGlite tool (update / delete / restore /
|
|
5310
|
+
* archive / unarchive / star / unstar).
|
|
5311
|
+
*/
|
|
5312
|
+
declare function createRecordBackend(store: RecordStore, options?: RecordBackendOptions): DataBackend;
|
|
5313
|
+
|
|
5314
|
+
/**
|
|
5315
|
+
* DB-free Knowledge Shard export/import over the canonical RecordStore
|
|
5316
|
+
* (#323 cycle 2, ADR-013 D3/D6) — the same `.shard` archive format as the
|
|
5317
|
+
* PGlite pipeline (`shard/shard-export.ts` / `shard/shard-import.ts`), built
|
|
5318
|
+
* from and applied to canonical records with zero PGlite.
|
|
5319
|
+
*
|
|
5320
|
+
* Capability boundary (reported, never emulated): the canonical tier holds
|
|
5321
|
+
* notes, tags, note-to-note links, collections, and attachment manifests.
|
|
5322
|
+
* Shard components outside that set (templates, embeddings, SKOS, provenance,
|
|
5323
|
+
* graph/community artifacts, URL links) are skipped on import with explicit
|
|
5324
|
+
* warnings, and are never emitted on export.
|
|
5325
|
+
*
|
|
5326
|
+
* Atomicity: manifest, version, signature (ADR-014 verify-before-persist),
|
|
5327
|
+
* and checksum validation all run BEFORE any record or byte is written, and
|
|
5328
|
+
* `error`-strategy conflicts are pre-scanned so a conflicting archive writes
|
|
5329
|
+
* nothing. Each record commit is then individually atomic and journaled; an
|
|
5330
|
+
* interrupted import leaves a recoverable prefix that a re-import with
|
|
5331
|
+
* `conflictStrategy: 'skip'` completes idempotently.
|
|
5332
|
+
*/
|
|
5333
|
+
|
|
5334
|
+
/**
|
|
5335
|
+
* Export canonical records as a `.shard` archive (Uint8Array), format-parity
|
|
5336
|
+
* with the PGlite `exportShard`. Honored options: `collectionId` / `tag`
|
|
5337
|
+
* filters, `clusterNotesSize`, and the portable byte sidecar
|
|
5338
|
+
* (`includeBlobs` + `blobStore`). Embedding options are inert — the canonical
|
|
5339
|
+
* tier stores no embeddings, so there is nothing to include.
|
|
5340
|
+
*/
|
|
5341
|
+
declare function exportShardFromRecords(store: RecordStore, options?: ExportOptions): Promise<Uint8Array>;
|
|
5342
|
+
/**
|
|
5343
|
+
* Import a `.shard` archive into the canonical RecordStore (and optionally
|
|
5344
|
+
* hydrate attachment bytes into a Bytecask BlobStore) with zero PGlite.
|
|
5345
|
+
*
|
|
5346
|
+
* Honors `conflictStrategy` (`skip` default / `replace` / `error` — `error`
|
|
5347
|
+
* conflicts are pre-scanned so nothing is written), the ADR-014
|
|
5348
|
+
* `verifySignature`/`trustStore` policy, and byte-sidecar hydration via
|
|
5349
|
+
* `blobStore`. Components the canonical tier cannot persist are skipped with
|
|
5350
|
+
* explicit warnings and reported under `skipped`.
|
|
5351
|
+
*/
|
|
5352
|
+
declare function importShardToRecords(store: RecordStore, data: Uint8Array | ArrayBuffer, options?: ImportOptions): Promise<ImportResult>;
|
|
5353
|
+
|
|
5354
|
+
declare const VERSION = "2026.7.8";
|
|
5218
5355
|
|
|
5219
|
-
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, 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, 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 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 RecordCollectionName, type RecordCollections, type RecordListOptions, 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 ShardBackendOptions, type ShardClusterRef, type ShardCollection, type ShardComponent, type ShardComponentStore, type ShardEmbedding, type ShardEmbeddingConfig, type ShardEmbeddingSet, type ShardEmbeddingSetMember, type ShardLayout, type ShardLink, type ShardListOptions, type ShardManifest, type ShardNote, type ShardNoteFull, type ShardNoteSkosTag, 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, createRecordStore, createRemoteBackend, createRoutes, createShardBackend, createWorkerEmbedFunction, defaultStorageBackendFactory, detectCommunities, detectGpuCapabilities, detectInferenceCapabilities, discoverLocalProviders, dropAttachmentProjection, dumpDbSnapshot, embeddingConfigToShard, embeddingFromShard, embeddingGenerationHandler, embeddingSetFromShard, embeddingSetMemberToShard, embeddingSetToShard, embeddingToShard, enqueueFullWorkflow, enqueueJob, enqueueNoteCreationJobs, estimateModelFit, estimateVramMB, estimateVramTier, exportShard, fetchAndValidateFortemiCompatibility, fetchPluginScript, filterAiwgRecordsByPrivacy, findAiwgStaticDuplicatePairs, formatFortemiCompatibilitySummary, fortemiCompatibilityUrl, fortemiManifest, fromPrefetched, generateId, getAiwgFortemiFacets, getEmbedFunction, getFortemiBridge, getFortemiSecretStore, getJobQueueStatus, getKnowledgeShardSchema, getLlmFunction, getNote, getPrefetchedSha256, handleEmbedRequests, hasFortemiSecureSecrets, importShard, isPluginScriptAllowed, isShardPrefetched, isShardSigningSupported, linkFromShard, linkToShard, linkingHandler, listNotes, manageArchive, manageAttachments, manageCapabilities, manageCollections, manageLinks, manageNote, manageTags, matchRoute, migrateLegacyBlobStore, noteFromShard, noteSkosTagToShard, noteToShard, openShard, packTarGz, parseCspReport, prefetchShard, projectAttachments, 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, validateFortemiCompatibilityResponse, validateShardArchive, validateShardComponentRecord, validateShardManifest, verifyDbSnapshotMeta, verifyShardSignature, verifySri };
|
|
5356
|
+
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, 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, 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 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 ShardBackendOptions, type ShardClusterRef, type ShardCollection, type ShardComponent, type ShardComponentStore, type ShardEmbedding, type ShardEmbeddingConfig, type ShardEmbeddingSet, type ShardEmbeddingSetMember, type ShardLayout, type ShardLink, type ShardListOptions, type ShardManifest, type ShardNote, type ShardNoteFull, type ShardNoteSkosTag, 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, createWorkerEmbedFunction, defaultStorageBackendFactory, detectCommunities, detectGpuCapabilities, detectInferenceCapabilities, discoverLocalProviders, dropAttachmentProjection, dropNoteProjection, dumpDbSnapshot, embeddingConfigToShard, embeddingFromShard, embeddingGenerationHandler, embeddingSetFromShard, embeddingSetMemberToShard, embeddingSetToShard, embeddingToShard, enqueueFullWorkflow, enqueueJob, enqueueNoteCreationJobs, estimateModelFit, estimateVramMB, estimateVramTier, exportShard, exportShardFromRecords, fetchAndValidateFortemiCompatibility, fetchPluginScript, filterAiwgRecordsByPrivacy, findAiwgStaticDuplicatePairs, formatFortemiCompatibilitySummary, fortemiCompatibilityUrl, fortemiManifest, fromPrefetched, generateId, getAiwgFortemiFacets, getEmbedFunction, getFortemiBridge, getFortemiSecretStore, getJobQueueStatus, 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, 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, validateFortemiCompatibilityResponse, validateShardArchive, validateShardComponentRecord, validateShardManifest, verifyDbSnapshotMeta, verifyShardSignature, verifySri };
|