@fortemi/core 2026.7.1 → 2026.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -2
- package/dist/aiwg-index.d.ts +48 -7
- package/dist/aiwg-index.js +184 -10
- package/dist/aiwg-index.js.map +1 -1
- package/dist/index.d.ts +69 -32
- package/dist/index.js +346 -41
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PGlite } from '@electric-sql/pglite';
|
|
2
2
|
import { z, ZodType } from 'zod';
|
|
3
|
-
export { AIWG_SCAN_REQUIRED_FIELDS, AiwgChunkedIndexBuildOptions, AiwgChunkedIndexBuildResult, AiwgChunkedIndexDetailLoader, AiwgChunkedIndexLoadOptions, AiwgChunkedIndexLoader, AiwgChunkedIndexProgress, AiwgChunkedIndexProgressPhase, AiwgChunkedIndexQueryOptions, AiwgChunkedIndexQueryResult, AiwgChunkedIndexValidationResult, AiwgFortemiChunk, AiwgFortemiChunkDetailRef, AiwgFortemiChunkManifest, AiwgFortemiChunkPart, AiwgFortemiChunkPartRef, AiwgFortemiIndexExport, AiwgFortemiIndexExportSchemaVersion, AiwgFortemiKnownRecordType, AiwgFortemiProjectedRecord, AiwgFortemiProvenance, AiwgFortemiProvenanceEvent, AiwgFortemiRecord, AiwgFortemiRecordEmbedding, AiwgFortemiRecordSchemaVersion, AiwgFortemiRecordSource, AiwgFortemiRecordType, AiwgFortemiRelationship, AiwgFortemiRelationshipDirection, AiwgFortemiSearchProjection, AiwgFortemiSkosConcept, AiwgFortemiSkosRelation, AiwgFortemiSkosRelationType, AiwgIndexController, AiwgIndexControllerListener, AiwgIndexControllerSnapshot, AiwgIndexGraphOptions, AiwgIndexQueryMatch, AiwgIndexQueryOptions, AiwgIndexQueryRankedItem, AiwgIndexQueryResult, AiwgIndexQueryWeights, AiwgIndexValidationResult, AiwgPrivacyClassification, AiwgProvenanceConfidence, AiwgRelationshipDirection, AiwgRelationshipEdgeSummary, AiwgRelationshipNodeSummary, AiwgRelationshipQueryOptions, AiwgRelationshipSetOperation, AiwgRelationshipSetOptions, AiwgRelationshipSetResult, AiwgRelationshipTraversalOptions, AiwgRelationshipTraversalResult, AiwgReviewAction, AiwgReviewDecision, AiwgReviewDecisionExport, AiwgReviewInput, AiwgStaticDuplicatePair, AiwgStaticEmbeddingRecord, AiwgStaticEmbeddingSet, AiwgStaticHybridQueryOptions, AiwgStaticSemanticQueryOptions, AiwgStaticSemanticResult, aiwgFortemiIndexToCommunityGraph, assertAiwgFortemiChunkManifest, assertAiwgFortemiChunkPart, assertAiwgFortemiIndexExport, assertAiwgStaticEmbeddingSet, buildAiwgChunkedIndex, createAiwgFetchChunkLoader, createAiwgFetchDetailLoader, createAiwgIndexController, createAiwgReviewDecisionExport, findAiwgStaticDuplicatePairs, getAiwgFortemiFacets, queryAiwgFortemiIndex, queryAiwgHybridIndex, queryAiwgSemanticIndex, validateAiwgFortemiChunkManifest, validateAiwgFortemiChunkPart, validateAiwgFortemiIndexExport, validateAiwgStaticEmbeddingSet } from './aiwg-index.js';
|
|
3
|
+
export { AIWG_SCAN_REQUIRED_FIELDS, AiwgChunkedIndexBuildOptions, AiwgChunkedIndexBuildResult, AiwgChunkedIndexDetailLoader, AiwgChunkedIndexLoadOptions, AiwgChunkedIndexLoader, AiwgChunkedIndexProgress, AiwgChunkedIndexProgressPhase, AiwgChunkedIndexQueryOptions, AiwgChunkedIndexQueryResult, AiwgChunkedIndexValidationResult, AiwgFortemiAttachmentReference, AiwgFortemiBinarySource, AiwgFortemiChunk, AiwgFortemiChunkDetailRef, AiwgFortemiChunkManifest, AiwgFortemiChunkPart, AiwgFortemiChunkPartRef, AiwgFortemiIndexExport, AiwgFortemiIndexExportSchemaVersion, AiwgFortemiKnownRecordType, AiwgFortemiProjectedRecord, AiwgFortemiProvenance, AiwgFortemiProvenanceEvent, AiwgFortemiRecord, AiwgFortemiRecordEmbedding, AiwgFortemiRecordSchemaVersion, AiwgFortemiRecordSource, AiwgFortemiRecordType, AiwgFortemiRelationship, AiwgFortemiRelationshipDirection, AiwgFortemiSearchProjection, AiwgFortemiSkosConcept, AiwgFortemiSkosRelation, AiwgFortemiSkosRelationType, AiwgHeadlessEmbeddingBackend, AiwgIndexController, AiwgIndexControllerListener, AiwgIndexControllerSnapshot, AiwgIndexGraphOptions, AiwgIndexQueryMatch, AiwgIndexQueryOptions, AiwgIndexQueryRankedItem, AiwgIndexQueryResult, AiwgIndexQueryWeights, AiwgIndexValidationResult, AiwgPrivacyClassification, AiwgPrivacyFilterOptions, AiwgProvenanceConfidence, AiwgRelationshipDirection, AiwgRelationshipEdgeSummary, AiwgRelationshipNodeSummary, AiwgRelationshipQueryOptions, AiwgRelationshipSetOperation, AiwgRelationshipSetOptions, AiwgRelationshipSetResult, AiwgRelationshipTraversalOptions, AiwgRelationshipTraversalResult, AiwgReviewAction, AiwgReviewDecision, AiwgReviewDecisionExport, AiwgReviewInput, AiwgStaticDuplicatePair, AiwgStaticEmbeddingRecord, AiwgStaticEmbeddingSet, AiwgStaticHybridQueryOptions, AiwgStaticSemanticQueryOptions, AiwgStaticSemanticResult, BuildAiwgStaticEmbeddingSetOptions, aiwgFortemiIndexToCommunityGraph, assertAiwgFortemiChunkManifest, assertAiwgFortemiChunkPart, assertAiwgFortemiIndexExport, assertAiwgStaticEmbeddingSet, buildAiwgChunkedIndex, buildAiwgStaticEmbeddingSet, createAiwgFetchChunkLoader, createAiwgFetchDetailLoader, createAiwgIndexController, createAiwgReviewDecisionExport, filterAiwgRecordsByPrivacy, findAiwgStaticDuplicatePairs, getAiwgFortemiFacets, queryAiwgFortemiIndex, queryAiwgHybridIndex, queryAiwgSemanticIndex, validateAiwgFortemiChunkManifest, validateAiwgFortemiChunkPart, validateAiwgFortemiIndexExport, validateAiwgStaticEmbeddingSet } from './aiwg-index.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Generate a RFC 9562 UUIDv7 identifier.
|
|
@@ -386,6 +386,17 @@ declare const CURRENT_SHARD_VERSION = "1.0.0";
|
|
|
386
386
|
declare const SHARD_FORMAT = "matric-shard";
|
|
387
387
|
/** Components that can appear in a shard archive. */
|
|
388
388
|
type ShardComponent = 'notes' | 'collections' | 'tags' | 'links' | 'embedding_sets' | 'embedding_set_members' | 'embedding_configs' | 'embeddings' | 'skos_schemes' | 'skos_concepts' | 'skos_relations' | 'note_skos_tags' | 'provenance_edges' | 'community_assignments' | 'communities' | 'graph_edges' | 'graph_sources';
|
|
389
|
+
interface ShardAttachmentReference {
|
|
390
|
+
id: string;
|
|
391
|
+
path: string;
|
|
392
|
+
mime: string | null;
|
|
393
|
+
checksum: string;
|
|
394
|
+
bytes: number;
|
|
395
|
+
}
|
|
396
|
+
interface ShardBinarySource {
|
|
397
|
+
extracted_text: string;
|
|
398
|
+
attachment: ShardAttachmentReference;
|
|
399
|
+
}
|
|
389
400
|
/**
|
|
390
401
|
* Reference to one cluster file of a component split across addressable files
|
|
391
402
|
* (`notes/000.jsonl`, `notes/001.jsonl`, …). `offset`/`count` are the record
|
|
@@ -489,6 +500,7 @@ interface ShardNote {
|
|
|
489
500
|
title: string | null;
|
|
490
501
|
original_content: string;
|
|
491
502
|
revised_content: string | null;
|
|
503
|
+
binary_sources?: ShardBinarySource[];
|
|
492
504
|
format: string;
|
|
493
505
|
source: string;
|
|
494
506
|
starred: boolean;
|
|
@@ -705,6 +717,7 @@ interface BrowserNoteExport {
|
|
|
705
717
|
deleted_at: Date | string | null;
|
|
706
718
|
original_content: string;
|
|
707
719
|
revised_content: string | null;
|
|
720
|
+
binary_sources?: ShardBinarySource[];
|
|
708
721
|
tags: string[];
|
|
709
722
|
}
|
|
710
723
|
/** Convert a browser note to shard format. */
|
|
@@ -2365,19 +2378,19 @@ declare const CaptureKnowledgeInputSchema: z.ZodObject<{
|
|
|
2365
2378
|
}, {
|
|
2366
2379
|
content: string;
|
|
2367
2380
|
title?: string | undefined;
|
|
2368
|
-
format?: "markdown" | "plain" | "html" | undefined;
|
|
2369
2381
|
tags?: string[] | undefined;
|
|
2382
|
+
format?: "markdown" | "plain" | "html" | undefined;
|
|
2370
2383
|
}>, "many">>;
|
|
2371
2384
|
template: z.ZodOptional<z.ZodString>;
|
|
2372
2385
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2373
2386
|
}, "strip", z.ZodTypeAny, {
|
|
2374
2387
|
source: string;
|
|
2375
2388
|
format: "markdown" | "plain" | "html";
|
|
2376
|
-
visibility: "private" | "
|
|
2389
|
+
visibility: "private" | "public" | "shared";
|
|
2377
2390
|
action: "create" | "bulk_create" | "from_template";
|
|
2378
2391
|
title?: string | undefined;
|
|
2379
|
-
archive_id?: string | undefined;
|
|
2380
2392
|
tags?: string[] | undefined;
|
|
2393
|
+
archive_id?: string | undefined;
|
|
2381
2394
|
content?: string | undefined;
|
|
2382
2395
|
notes?: {
|
|
2383
2396
|
format: "markdown" | "plain" | "html";
|
|
@@ -2391,16 +2404,16 @@ declare const CaptureKnowledgeInputSchema: z.ZodObject<{
|
|
|
2391
2404
|
action: "create" | "bulk_create" | "from_template";
|
|
2392
2405
|
source?: string | undefined;
|
|
2393
2406
|
title?: string | undefined;
|
|
2407
|
+
tags?: string[] | undefined;
|
|
2394
2408
|
archive_id?: string | undefined;
|
|
2395
2409
|
format?: "markdown" | "plain" | "html" | undefined;
|
|
2396
|
-
visibility?: "private" | "
|
|
2397
|
-
tags?: string[] | undefined;
|
|
2410
|
+
visibility?: "private" | "public" | "shared" | undefined;
|
|
2398
2411
|
content?: string | undefined;
|
|
2399
2412
|
notes?: {
|
|
2400
2413
|
content: string;
|
|
2401
2414
|
title?: string | undefined;
|
|
2402
|
-
format?: "markdown" | "plain" | "html" | undefined;
|
|
2403
2415
|
tags?: string[] | undefined;
|
|
2416
|
+
format?: "markdown" | "plain" | "html" | undefined;
|
|
2404
2417
|
}[] | undefined;
|
|
2405
2418
|
template?: string | undefined;
|
|
2406
2419
|
variables?: Record<string, string> | undefined;
|
|
@@ -2447,17 +2460,17 @@ declare const SearchInputSchema: z.ZodObject<{
|
|
|
2447
2460
|
visibility: z.ZodOptional<z.ZodEnum<["private", "shared", "public"]>>;
|
|
2448
2461
|
include_facets: z.ZodDefault<z.ZodBoolean>;
|
|
2449
2462
|
}, "strip", z.ZodTypeAny, {
|
|
2450
|
-
|
|
2463
|
+
query: string;
|
|
2451
2464
|
offset: number;
|
|
2465
|
+
limit: number;
|
|
2452
2466
|
include_facets: boolean;
|
|
2453
|
-
mode: "
|
|
2454
|
-
query: string;
|
|
2467
|
+
mode: "text" | "auto" | "semantic" | "hybrid";
|
|
2455
2468
|
source?: string | undefined;
|
|
2469
|
+
tags?: string[] | undefined;
|
|
2456
2470
|
format?: "markdown" | "plain" | "html" | undefined;
|
|
2457
|
-
visibility?: "private" | "
|
|
2471
|
+
visibility?: "private" | "public" | "shared" | undefined;
|
|
2458
2472
|
is_starred?: boolean | undefined;
|
|
2459
2473
|
is_archived?: boolean | undefined;
|
|
2460
|
-
tags?: string[] | undefined;
|
|
2461
2474
|
collection_id?: string | undefined;
|
|
2462
2475
|
date_from?: Date | undefined;
|
|
2463
2476
|
date_to?: Date | undefined;
|
|
@@ -2466,18 +2479,18 @@ declare const SearchInputSchema: z.ZodObject<{
|
|
|
2466
2479
|
}, {
|
|
2467
2480
|
query: string;
|
|
2468
2481
|
source?: string | undefined;
|
|
2482
|
+
tags?: string[] | undefined;
|
|
2483
|
+
offset?: number | undefined;
|
|
2484
|
+
limit?: number | undefined;
|
|
2469
2485
|
format?: "markdown" | "plain" | "html" | undefined;
|
|
2470
|
-
visibility?: "private" | "
|
|
2486
|
+
visibility?: "private" | "public" | "shared" | undefined;
|
|
2471
2487
|
is_starred?: boolean | undefined;
|
|
2472
2488
|
is_archived?: boolean | undefined;
|
|
2473
|
-
tags?: string[] | undefined;
|
|
2474
|
-
limit?: number | undefined;
|
|
2475
|
-
offset?: number | undefined;
|
|
2476
2489
|
collection_id?: string | undefined;
|
|
2477
2490
|
date_from?: Date | undefined;
|
|
2478
2491
|
date_to?: Date | undefined;
|
|
2479
2492
|
include_facets?: boolean | undefined;
|
|
2480
|
-
mode?: "
|
|
2493
|
+
mode?: "text" | "auto" | "semantic" | "hybrid" | undefined;
|
|
2481
2494
|
embeddingSetId?: string | undefined;
|
|
2482
2495
|
query_embedding?: number[] | undefined;
|
|
2483
2496
|
}>;
|
|
@@ -2557,22 +2570,22 @@ declare const ListNotesInputSchema: z.ZodObject<{
|
|
|
2557
2570
|
collection_id: z.ZodOptional<z.ZodString>;
|
|
2558
2571
|
include_deleted: z.ZodOptional<z.ZodBoolean>;
|
|
2559
2572
|
}, "strip", z.ZodTypeAny, {
|
|
2560
|
-
sort: "
|
|
2561
|
-
limit: number;
|
|
2573
|
+
sort: "title" | "updated_at" | "created_at";
|
|
2562
2574
|
offset: number;
|
|
2575
|
+
limit: number;
|
|
2563
2576
|
order: "asc" | "desc";
|
|
2577
|
+
tags?: string[] | undefined;
|
|
2564
2578
|
is_starred?: boolean | undefined;
|
|
2565
2579
|
is_archived?: boolean | undefined;
|
|
2566
|
-
tags?: string[] | undefined;
|
|
2567
2580
|
include_deleted?: boolean | undefined;
|
|
2568
2581
|
collection_id?: string | undefined;
|
|
2569
2582
|
}, {
|
|
2570
|
-
sort?: "created_at" | "updated_at" | "title" | undefined;
|
|
2571
|
-
is_starred?: boolean | undefined;
|
|
2572
|
-
is_archived?: boolean | undefined;
|
|
2573
2583
|
tags?: string[] | undefined;
|
|
2574
|
-
|
|
2584
|
+
sort?: "title" | "updated_at" | "created_at" | undefined;
|
|
2575
2585
|
offset?: number | undefined;
|
|
2586
|
+
limit?: number | undefined;
|
|
2587
|
+
is_starred?: boolean | undefined;
|
|
2588
|
+
is_archived?: boolean | undefined;
|
|
2576
2589
|
order?: "asc" | "desc" | undefined;
|
|
2577
2590
|
include_deleted?: boolean | undefined;
|
|
2578
2591
|
collection_id?: string | undefined;
|
|
@@ -2586,12 +2599,12 @@ declare const ManageTagsInputSchema: z.ZodObject<{
|
|
|
2586
2599
|
tag: z.ZodOptional<z.ZodString>;
|
|
2587
2600
|
}, "strip", z.ZodTypeAny, {
|
|
2588
2601
|
action: "add" | "remove" | "list_for_note" | "list_all";
|
|
2589
|
-
note_id?: string | undefined;
|
|
2590
2602
|
tag?: string | undefined;
|
|
2603
|
+
note_id?: string | undefined;
|
|
2591
2604
|
}, {
|
|
2592
2605
|
action: "add" | "remove" | "list_for_note" | "list_all";
|
|
2593
|
-
note_id?: string | undefined;
|
|
2594
2606
|
tag?: string | undefined;
|
|
2607
|
+
note_id?: string | undefined;
|
|
2595
2608
|
}>;
|
|
2596
2609
|
type ManageTagsInput = z.infer<typeof ManageTagsInputSchema>;
|
|
2597
2610
|
interface ManageTagsResult {
|
|
@@ -2613,17 +2626,17 @@ declare const ManageCollectionsInputSchema: z.ZodObject<{
|
|
|
2613
2626
|
note_id: z.ZodOptional<z.ZodString>;
|
|
2614
2627
|
}, "strip", z.ZodTypeAny, {
|
|
2615
2628
|
action: "create" | "delete" | "list" | "assign" | "unassign" | "list_tree";
|
|
2616
|
-
collection_id?: string | undefined;
|
|
2617
|
-
note_id?: string | undefined;
|
|
2618
2629
|
name?: string | undefined;
|
|
2619
2630
|
description?: string | undefined;
|
|
2631
|
+
collection_id?: string | undefined;
|
|
2632
|
+
note_id?: string | undefined;
|
|
2620
2633
|
parent_id?: string | undefined;
|
|
2621
2634
|
}, {
|
|
2622
2635
|
action: "create" | "delete" | "list" | "assign" | "unassign" | "list_tree";
|
|
2623
|
-
collection_id?: string | undefined;
|
|
2624
|
-
note_id?: string | undefined;
|
|
2625
2636
|
name?: string | undefined;
|
|
2626
2637
|
description?: string | undefined;
|
|
2638
|
+
collection_id?: string | undefined;
|
|
2639
|
+
note_id?: string | undefined;
|
|
2627
2640
|
parent_id?: string | undefined;
|
|
2628
2641
|
}>;
|
|
2629
2642
|
type ManageCollectionsInput = z.infer<typeof ManageCollectionsInputSchema>;
|
|
@@ -2733,6 +2746,8 @@ interface AttachmentRow {
|
|
|
2733
2746
|
note_id: string;
|
|
2734
2747
|
blob_id: string;
|
|
2735
2748
|
document_type_id: string | null;
|
|
2749
|
+
mime_type: string | null;
|
|
2750
|
+
extracted_text: string | null;
|
|
2736
2751
|
filename: string;
|
|
2737
2752
|
display_name: string | null;
|
|
2738
2753
|
position: number;
|
|
@@ -2751,6 +2766,7 @@ interface AttachInput {
|
|
|
2751
2766
|
data: Uint8Array;
|
|
2752
2767
|
filename: string;
|
|
2753
2768
|
mimeType?: string;
|
|
2769
|
+
extractedText?: string;
|
|
2754
2770
|
displayName?: string;
|
|
2755
2771
|
}
|
|
2756
2772
|
declare class AttachmentsRepository {
|
|
@@ -2797,11 +2813,13 @@ declare const ManageAttachmentsInputSchema: z.ZodObject<{
|
|
|
2797
2813
|
data_base64: z.ZodOptional<z.ZodString>;
|
|
2798
2814
|
filename: z.ZodOptional<z.ZodString>;
|
|
2799
2815
|
mime_type: z.ZodOptional<z.ZodString>;
|
|
2816
|
+
extracted_text: z.ZodOptional<z.ZodString>;
|
|
2800
2817
|
display_name: z.ZodOptional<z.ZodString>;
|
|
2801
2818
|
}, "strip", z.ZodTypeAny, {
|
|
2802
2819
|
action: "delete" | "list" | "attach" | "get" | "get_blob";
|
|
2803
2820
|
note_id?: string | undefined;
|
|
2804
2821
|
filename?: string | undefined;
|
|
2822
|
+
extracted_text?: string | undefined;
|
|
2805
2823
|
attachment_id?: string | undefined;
|
|
2806
2824
|
data_base64?: string | undefined;
|
|
2807
2825
|
mime_type?: string | undefined;
|
|
@@ -2810,6 +2828,7 @@ declare const ManageAttachmentsInputSchema: z.ZodObject<{
|
|
|
2810
2828
|
action: "delete" | "list" | "attach" | "get" | "get_blob";
|
|
2811
2829
|
note_id?: string | undefined;
|
|
2812
2830
|
filename?: string | undefined;
|
|
2831
|
+
extracted_text?: string | undefined;
|
|
2813
2832
|
attachment_id?: string | undefined;
|
|
2814
2833
|
data_base64?: string | undefined;
|
|
2815
2834
|
mime_type?: string | undefined;
|
|
@@ -3559,10 +3578,19 @@ declare function packTarGz(files: Map<string, Uint8Array>): Uint8Array;
|
|
|
3559
3578
|
/**
|
|
3560
3579
|
* Unpack a gzip-compressed tar archive.
|
|
3561
3580
|
*
|
|
3581
|
+
* Before decompressing, the gzip ISIZE footer (declared uncompressed size) is
|
|
3582
|
+
* checked against `maxDecompressedBytes` and rejected if it exceeds the cap.
|
|
3583
|
+
* fflate independently verifies the actual output length against ISIZE, so a
|
|
3584
|
+
* lying footer fails during decompression — together this bounds the memory a
|
|
3585
|
+
* malicious archive can force us to allocate.
|
|
3586
|
+
*
|
|
3562
3587
|
* @param data Compressed archive bytes
|
|
3588
|
+
* @param opts.maxDecompressedBytes Cap on decompressed size (default 256 MiB)
|
|
3563
3589
|
* @returns Map of filename → file contents
|
|
3564
3590
|
*/
|
|
3565
|
-
declare function unpackTarGz(data: Uint8Array
|
|
3591
|
+
declare function unpackTarGz(data: Uint8Array, opts?: {
|
|
3592
|
+
maxDecompressedBytes?: number;
|
|
3593
|
+
}): Map<string, Uint8Array>;
|
|
3566
3594
|
|
|
3567
3595
|
/**
|
|
3568
3596
|
* SHA-256 checksum utilities for shard integrity verification.
|
|
@@ -3576,6 +3604,15 @@ declare function sha256Hex(data: Uint8Array): Promise<string>;
|
|
|
3576
3604
|
/**
|
|
3577
3605
|
* Validate checksums listed in a shard manifest against actual file contents.
|
|
3578
3606
|
*
|
|
3607
|
+
* SECURITY (SEC7 — trust model): these checksums live *inside* the same archive
|
|
3608
|
+
* as the files they hash, so they detect **transport corruption**, not
|
|
3609
|
+
* **tampering**. An attacker who controls the archive controls both the file
|
|
3610
|
+
* bytes and the manifest hashes, so a passing result proves the archive is
|
|
3611
|
+
* internally consistent — nothing more. For provenance-sensitive imports, verify
|
|
3612
|
+
* integrity out-of-band: a signed manifest, or a caller-supplied expected digest
|
|
3613
|
+
* checked against the whole archive (see `prefetchShard`'s `expectedSha256`,
|
|
3614
|
+
* which is real integrity because the hash arrives on a separate channel).
|
|
3615
|
+
*
|
|
3579
3616
|
* @returns Object with `valid` flag and list of failed filenames.
|
|
3580
3617
|
*/
|
|
3581
3618
|
declare function validateChecksums(checksums: Record<string, string>, files: Map<string, Uint8Array>): Promise<{
|
|
@@ -3784,6 +3821,6 @@ declare function getPrefetchedSha256(url: string): string | undefined;
|
|
|
3784
3821
|
*/
|
|
3785
3822
|
declare function clearPrefetchedShard(url?: string): void;
|
|
3786
3823
|
|
|
3787
|
-
declare const VERSION = "2026.7.
|
|
3824
|
+
declare const VERSION = "2026.7.3";
|
|
3788
3825
|
|
|
3789
3826
|
export { type ArchiveInfo, ArchiveManager, type AttachInput, type AttachmentBlobRow, 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 BlobStore, type BridgeCapability, type BridgeProviderInfo, type BrowserNoteExport, CURRENT_MIGRATION_HEAD, CURRENT_SHARD_VERSION, type CapabilityInfo, CapabilityManager, type CapabilityName, type CapabilityState, type CaptureKnowledgeInput, CaptureKnowledgeInputSchema, type CaptureKnowledgeResult, type CollectionCreateInput, type CollectionRow, CollectionsRepository, CommunitiesRepository, type CommunityAssignmentView, type CommunityCreateInput, type CommunityFilterDefinition, type CommunityGraph, type CommunityOptions, type CommunitySourceDescriptor, type CommunitySourceType, type CommunitySummary, type CompletionRequest, type CompletionResponse, type ConditionResult, type ConflictStrategy, type CooldownConfig, type CooldownEvent, type CosineSemanticProviderOptions, type CreatePGliteOptions, 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, type FallbackEvent, FallbackRouter, type FallbackRouterConfig, type FortemiBridge, type FortemiBridgeCapabilities, type FortemiBridgeHost, type FortemiConfig, type FortemiCore, type FortemiInferenceRouter, type FortemiSecretStore, type FortemiToolDefinition, FortemiToolManifest, type GetNoteInput, GetNoteInputSchema, type GpuCapabilities, type GraphCommunity, type GraphEdge, type GraphNode, GraphRepository, type IDisposable, type ImportCounts, type ImportOptions, type ImportProgress, type ImportProgressPhase, type ImportResult, type InferenceCapabilities, type InferenceProvider, JOB_CAPABILITIES, JOB_PRIORITIES, type JobQueueOptions, JobQueueWorker, type JobStatus, type JobType, LOCAL_ENDPOINTS, type LinkRow, LinksRepository, type ListNotesInput, ListNotesInputSchema, type LlmCapabilityOptions, type LlmCompleteFn, type LoadedPluginScript, type LocalEndpoint, type ManageArchiveInput, ManageArchiveInputSchema, type ManageArchiveResult, type ManageAttachmentsInput, ManageAttachmentsInputSchema, type ManageAttachmentsResult, type ManageCapabilitiesInput, ManageCapabilitiesInputSchema, type ManageCapabilitiesResult, type ManageCollectionsInput, ManageCollectionsInputSchema, type ManageCollectionsResult, type ManageLinksInput, ManageLinksInputSchema, type ManageLinksResult, type ManageNoteInput, ManageNoteInputSchema, type ManageNoteResult, type ManageTagsInput, ManageTagsInputSchema, type ManageTagsResult, MemoryBlobStore, type Migration, MigrationRunner, type ModelCategory, type ModelFitResult, type ModelInfo, type NoteCreateInput, type NoteFull, type NoteListOptions, type NoteRevision, type NoteSkosTag, type NoteSummary, 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, type RecommendedTier, type RecordProvenanceInput, type RemoteBackendConfig, type RemoteBackendPaths, type ResolvedEmbeddingRow, type ResolvedEmbeddingSet, type RestoreDbSnapshotOptions, type RouteHandler, SHARD_FORMAT, 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 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 ShardSearchOptions, type ShardSearchRankedNote, type ShardSearchResult, type ShardSearchWeights, type ShardSkosConcept, type ShardSkosRelation, type ShardSkosScheme, type ShardTag, type SimilarityGraphCacheKey, type SimilarityGraphOptions, type SimilarityGraphRequest, type SimilarityGraphResult, type SkosConcept, type SkosRelation, SkosRepository, type SkosScheme, type StaticSemanticProvider, type StorageBackend, type StorageBackendFactory, type StorageOpenRequest, type StorageTopology, type StreamChunk, TagsRepository, TransactionProxy, TypedEventBus, VERSION, type VectorEntry, type VirtualEmbeddingSetDefinition, type VirtualEmbeddingSetSource, type VirtualEmbeddingSetValidationError, type VirtualMaterializationPolicy, type VramTier, type WorkerRequest, type WorkerResponse, aiRevisionHandler, allMigrations, appendPluginScript, buildNoteConditions, buildPluginCsp, captureKnowledge, chunkText, classifyError, classifyModel, clearPrefetchedShard, collectionFromShard, collectionToShard, computeHash, computeSri, conceptTaggingHandler, cosineSimilarity, createBlobStore, createCosineSemanticProvider, createCspReportHandler, createFortemi, createLegacyProvider, createPGliteBackend, createPGliteInstance, createRemoteBackend, createRoutes, createShardBackend, createWorkerEmbedFunction, defaultStorageBackendFactory, detectCommunities, detectGpuCapabilities, detectInferenceCapabilities, discoverLocalProviders, dumpDbSnapshot, embeddingFromShard, embeddingGenerationHandler, embeddingSetFromShard, embeddingSetMemberToShard, embeddingSetToShard, embeddingToShard, enqueueFullWorkflow, enqueueJob, enqueueNoteCreationJobs, estimateModelFit, estimateVramMB, estimateVramTier, exportShard, fetchPluginScript, fortemiManifest, fromPrefetched, generateId, getEmbedFunction, getFortemiBridge, getFortemiSecretStore, getJobQueueStatus, getLlmFunction, getNote, getPrefetchedSha256, handleEmbedRequests, hasFortemiSecureSecrets, importShard, isPluginScriptAllowed, isShardPrefetched, linkFromShard, linkToShard, linkingHandler, listNotes, manageArchive, manageAttachments, manageCapabilities, manageCollections, manageLinks, manageNote, manageTags, matchRoute, noteFromShard, noteSkosTagToShard, noteToShard, openShard, packTarGz, parseCspReport, prefetchShard, provenanceEdgeToShard, registerLlmCapability, registerSemanticCapability, registerSemanticCapabilityWorker, registerServiceWorker, restoreDbSnapshot, searchTool, selectBackend, selectLlmModel, setEmbedFunction, setLlmFunction, sha256Hex, skosConceptToShard, skosRelationToShard, skosSchemeToShard, suggestTags, tagsFromShard, tagsToShard, titleGenerationHandler, unpackTarGz, unregisterLlmCapability, unregisterSemanticCapability, validateChecksums, verifyDbSnapshotMeta, verifySri };
|