@fortemi/core 2026.7.14 → 2026.7.15
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 +21 -0
- package/dist/aiwg-index-schema.d.ts +0 -1
- package/dist/aiwg-index.d.ts +29 -30
- package/dist/index.d.ts +550 -579
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -177,6 +177,27 @@ receipt disables the claim, while the verifier requires the packaged receipt
|
|
|
177
177
|
bytes to match their declared digests. RecordStore remains `record-v1` only.
|
|
178
178
|
This receipt does not establish suite-wide portability or complete backup.
|
|
179
179
|
|
|
180
|
+
### Supported-platform conformance
|
|
181
|
+
|
|
182
|
+
The authority-owned suite matrix treats Fortemi as the schema/API/runtime
|
|
183
|
+
authority, `@fortemi/core` as the reusable conformance consumer, and HotM as an
|
|
184
|
+
application consumer. [Fortemi run
|
|
185
|
+
6393](https://git.integrolabs.net/Fortemi/fortemi/actions/runs/6393) passed the
|
|
186
|
+
same receipt-bound contract on Linux x86_64, Linux arm64, and macOS arm64. Its
|
|
187
|
+
React/Core participant is commit
|
|
188
|
+
`ccf96fad6025025293e40e250c85f088c8999d86`,
|
|
189
|
+
`@fortemi/core@2026.7.14`, with tgz SHA-256
|
|
190
|
+
`e282f504a842261c3f598a7f2ee0d6a85e03dc213ddf545a18daf5f603a742cc`
|
|
191
|
+
and tar payload SHA-256
|
|
192
|
+
`47482320b543307c2d44f3a87a2268ead6faf265c6bd38cf33011e0ac7f8e77a`.
|
|
193
|
+
|
|
194
|
+
The supported claim is limited to the declared contract surface and exact
|
|
195
|
+
Knowledge Shard `2.0.0/full-v1` tuple on those platform cells. Windows remains
|
|
196
|
+
deferred to [Fortemi
|
|
197
|
+
#1096](https://git.integrolabs.net/Fortemi/fortemi/issues/1096). This does not
|
|
198
|
+
change the Fortemi #1081 `NO-GO` audit or prove complete backup, universal
|
|
199
|
+
portability, launched GUI/native-dialog behavior, or RecordStore `full-v1`.
|
|
200
|
+
|
|
180
201
|
Knowledge Shard 2.0 treats absent, `null`, empty, and non-empty values as
|
|
181
202
|
distinct authority states. PGlite persists `core-v1` field presence in a
|
|
182
203
|
transactional sidecar, while RecordStore carries its `record-v1` projection and
|
|
@@ -5,5 +5,4 @@ interface AiwgIndexSchemaValidationResult {
|
|
|
5
5
|
declare function getAiwgFortemiIndexExportSchema(): unknown;
|
|
6
6
|
declare function validateAiwgFortemiIndexExportSchema(value: unknown): AiwgIndexSchemaValidationResult;
|
|
7
7
|
declare function validateAiwgFortemiProjectedRecordSchema(value: unknown): AiwgIndexSchemaValidationResult;
|
|
8
|
-
|
|
9
8
|
export { type AiwgIndexSchemaValidationResult, getAiwgFortemiIndexExportSchema, validateAiwgFortemiIndexExportSchema, validateAiwgFortemiProjectedRecordSchema };
|
package/dist/aiwg-index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
type AiwgFortemiRecordType = string;
|
|
2
2
|
type AiwgFortemiRecordSchemaVersion = 'aiwg.fortemi.index.record.v1' | 'aiwg.fortemi.index.record.v2';
|
|
3
3
|
type AiwgFortemiIndexExportSchemaVersion = 'aiwg.fortemi.index.export.v1' | 'aiwg.fortemi.index.export.v2';
|
|
4
|
-
type AiwgPrivacyClassification = 'private' | '
|
|
5
|
-
type AiwgProvenanceConfidence = '
|
|
6
|
-
type AiwgReviewAction = 'accept' | '
|
|
7
|
-
type AiwgFortemiRelationshipDirection = '
|
|
8
|
-
type AiwgOperationalStateClassification = '
|
|
9
|
-
type AiwgOperationalStateConfidence = '
|
|
4
|
+
type AiwgPrivacyClassification = 'private' | 'public' | 'sanitized';
|
|
5
|
+
type AiwgProvenanceConfidence = 'candidate' | 'rejected' | 'reviewed' | 'source';
|
|
6
|
+
type AiwgReviewAction = 'accept' | 'defer' | 'reject';
|
|
7
|
+
type AiwgFortemiRelationshipDirection = 'downstream' | 'related' | 'upstream';
|
|
8
|
+
type AiwgOperationalStateClassification = 'contradicted' | 'fresh' | 'historical' | 'needs-source' | 'superseded';
|
|
9
|
+
type AiwgOperationalStateConfidence = 'candidate' | 'rejected' | 'reviewed' | 'source';
|
|
10
10
|
interface AiwgFortemiRecordSource {
|
|
11
11
|
path: string;
|
|
12
12
|
repo_relative_path: string;
|
|
@@ -98,16 +98,16 @@ interface AiwgFortemiRecordEmbedding {
|
|
|
98
98
|
interface AiwgFortemiAttachmentReference {
|
|
99
99
|
id: string;
|
|
100
100
|
path: string;
|
|
101
|
-
mime:
|
|
101
|
+
mime: null | string;
|
|
102
102
|
checksum: string;
|
|
103
103
|
bytes: number;
|
|
104
104
|
}
|
|
105
105
|
interface AiwgFortemiBinarySource {
|
|
106
|
-
extracted_text:
|
|
106
|
+
extracted_text: null | string;
|
|
107
107
|
created_at?: string;
|
|
108
|
-
deleted_at?:
|
|
109
|
-
extraction_status?: '
|
|
110
|
-
reason?:
|
|
108
|
+
deleted_at?: null | string;
|
|
109
|
+
extraction_status?: 'blocked' | 'deferred' | 'extracted' | 'failed' | 'pending';
|
|
110
|
+
reason?: 'extraction_pending' | 'extractor_failed' | 'large_binary' | 'no_extracted_text' | 'quarantined' | 'unsupported_mime' | null;
|
|
111
111
|
attachment: AiwgFortemiAttachmentReference;
|
|
112
112
|
}
|
|
113
113
|
interface AiwgOperationalState {
|
|
@@ -128,7 +128,7 @@ interface AiwgOperationalState {
|
|
|
128
128
|
current_action_selector?: boolean;
|
|
129
129
|
}
|
|
130
130
|
interface AiwgStateTransfer {
|
|
131
|
-
deleted_at:
|
|
131
|
+
deleted_at: null | string;
|
|
132
132
|
}
|
|
133
133
|
interface AiwgFortemiRecord {
|
|
134
134
|
schema_version: AiwgFortemiRecordSchemaVersion;
|
|
@@ -159,8 +159,8 @@ interface AiwgFortemiRecord {
|
|
|
159
159
|
state_transfer?: AiwgStateTransfer;
|
|
160
160
|
privacy: {
|
|
161
161
|
classification: AiwgPrivacyClassification;
|
|
162
|
-
pii: boolean;
|
|
163
162
|
locality?: string;
|
|
163
|
+
pii: boolean;
|
|
164
164
|
};
|
|
165
165
|
updated_at: string;
|
|
166
166
|
}
|
|
@@ -168,9 +168,9 @@ interface AiwgFortemiIndexExport {
|
|
|
168
168
|
schema_version: AiwgFortemiIndexExportSchemaVersion;
|
|
169
169
|
generated_at: string;
|
|
170
170
|
source: {
|
|
171
|
-
repo: string;
|
|
172
|
-
privacy: AiwgPrivacyClassification;
|
|
173
171
|
graph?: string;
|
|
172
|
+
privacy: AiwgPrivacyClassification;
|
|
173
|
+
repo: string;
|
|
174
174
|
};
|
|
175
175
|
items: AiwgFortemiRecord[];
|
|
176
176
|
compatibility?: {
|
|
@@ -184,8 +184,8 @@ interface AiwgFortemiChunkPartRef {
|
|
|
184
184
|
count: number;
|
|
185
185
|
}
|
|
186
186
|
declare const AIWG_SCAN_REQUIRED_FIELDS: Array<keyof AiwgFortemiRecord>;
|
|
187
|
-
type AiwgFortemiProjectedRecord = Pick<AiwgFortemiRecord, '
|
|
188
|
-
type AiwgDetailIdEncoding = '
|
|
187
|
+
type AiwgFortemiProjectedRecord = Pick<AiwgFortemiRecord, 'concepts' | 'facets' | 'id' | 'privacy' | 'schema_version' | 'tags' | 'text' | 'title' | 'type'> & Partial<AiwgFortemiRecord>;
|
|
188
|
+
type AiwgDetailIdEncoding = 'base64url' | 'uri';
|
|
189
189
|
interface AiwgFortemiChunkDetailRef {
|
|
190
190
|
href: string;
|
|
191
191
|
encoding?: AiwgDetailIdEncoding;
|
|
@@ -231,7 +231,7 @@ interface AiwgIndexQueryOptions {
|
|
|
231
231
|
snippetLength?: number;
|
|
232
232
|
weights?: Partial<AiwgIndexQueryWeights>;
|
|
233
233
|
includeMatches?: boolean;
|
|
234
|
-
searchProfile?: '
|
|
234
|
+
searchProfile?: 'aiwg-discovery' | 'default';
|
|
235
235
|
}
|
|
236
236
|
interface AiwgIndexQueryWeights {
|
|
237
237
|
title: number;
|
|
@@ -243,7 +243,7 @@ interface AiwgIndexQueryWeights {
|
|
|
243
243
|
source: number;
|
|
244
244
|
}
|
|
245
245
|
interface AiwgIndexQueryMatch {
|
|
246
|
-
field: '
|
|
246
|
+
field: 'concept' | 'facet' | 'id' | 'source' | 'tag' | 'text' | 'title';
|
|
247
247
|
value: string;
|
|
248
248
|
score?: number;
|
|
249
249
|
reason?: string;
|
|
@@ -302,8 +302,8 @@ interface AiwgIndexGraphOptions {
|
|
|
302
302
|
relationshipWeights?: Record<string, number>;
|
|
303
303
|
includeDanglingRelationships?: boolean;
|
|
304
304
|
}
|
|
305
|
-
type AiwgRelationshipDirection = '
|
|
306
|
-
type AiwgRelationshipSetOperation = '
|
|
305
|
+
type AiwgRelationshipDirection = 'both' | 'in' | 'out';
|
|
306
|
+
type AiwgRelationshipSetOperation = 'difference' | 'intersection' | 'union';
|
|
307
307
|
interface AiwgRelationshipTraversalOptions {
|
|
308
308
|
direction?: AiwgRelationshipDirection;
|
|
309
309
|
relationshipType?: string;
|
|
@@ -359,7 +359,7 @@ interface AiwgStaticEmbeddingSet {
|
|
|
359
359
|
model: string;
|
|
360
360
|
dimensions: number;
|
|
361
361
|
generated_at: string;
|
|
362
|
-
granularity: '
|
|
362
|
+
granularity: 'body' | 'chunked-body' | 'title-summary' | string;
|
|
363
363
|
metric?: 'cosine' | 'dot' | 'euclidean';
|
|
364
364
|
input_hash_algorithm?: string;
|
|
365
365
|
embeddings: AiwgStaticEmbeddingRecord[];
|
|
@@ -381,7 +381,7 @@ interface BuildAiwgStaticEmbeddingSetOptions {
|
|
|
381
381
|
id: string;
|
|
382
382
|
backend: AiwgHeadlessEmbeddingBackend;
|
|
383
383
|
records?: AiwgFortemiRecord[];
|
|
384
|
-
generatedAt?:
|
|
384
|
+
generatedAt?: Date | string;
|
|
385
385
|
granularity?: AiwgStaticEmbeddingSet['granularity'];
|
|
386
386
|
metric?: AiwgStaticEmbeddingSet['metric'];
|
|
387
387
|
textForRecord?: (record: AiwgFortemiRecord) => string;
|
|
@@ -415,8 +415,8 @@ interface AiwgReviewInput {
|
|
|
415
415
|
interface AiwgIndexControllerSnapshot {
|
|
416
416
|
index: AiwgFortemiIndexExport | null;
|
|
417
417
|
chunked: {
|
|
418
|
-
manifest: AiwgFortemiChunkManifest;
|
|
419
418
|
cachedParts: number;
|
|
419
|
+
manifest: AiwgFortemiChunkManifest;
|
|
420
420
|
maxCachedParts: number;
|
|
421
421
|
} | null;
|
|
422
422
|
data: AiwgIndexQueryResult | null;
|
|
@@ -475,8 +475,8 @@ interface AiwgChunkedIndexBuildResult {
|
|
|
475
475
|
part: AiwgFortemiChunkPart;
|
|
476
476
|
}>;
|
|
477
477
|
details: Array<{
|
|
478
|
-
id: string;
|
|
479
478
|
href: string;
|
|
479
|
+
id: string;
|
|
480
480
|
record: AiwgFortemiRecord;
|
|
481
481
|
}>;
|
|
482
482
|
}
|
|
@@ -493,19 +493,18 @@ declare function findAiwgStaticDuplicatePairs(index: AiwgFortemiIndexExport, emb
|
|
|
493
493
|
declare function createAiwgReviewDecisionExport(source: Pick<AiwgFortemiIndexExport, 'schema_version'>, decisions: AiwgReviewDecision[], generatedAt?: string): AiwgReviewDecisionExport;
|
|
494
494
|
declare function createAiwgIndexController(initialIndex?: AiwgFortemiIndexExport): AiwgIndexController;
|
|
495
495
|
declare function aiwgFortemiIndexToCommunityGraph(index: AiwgFortemiIndexExport, options?: AiwgIndexGraphOptions): {
|
|
496
|
-
|
|
496
|
+
communities: {
|
|
497
497
|
id: string;
|
|
498
|
+
nodes: string[];
|
|
498
499
|
}[];
|
|
499
500
|
edges: {
|
|
501
|
+
kind: string;
|
|
500
502
|
source: string;
|
|
501
503
|
target: string;
|
|
502
|
-
kind: string;
|
|
503
504
|
weight: number;
|
|
504
505
|
}[];
|
|
505
|
-
|
|
506
|
+
nodes: {
|
|
506
507
|
id: string;
|
|
507
|
-
nodes: string[];
|
|
508
508
|
}[];
|
|
509
509
|
};
|
|
510
|
-
|
|
511
510
|
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 AiwgDetailIdEncoding, 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 AiwgOperationalState, type AiwgOperationalStateClassification, type AiwgOperationalStateConfidence, 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 AiwgStateTransfer, type AiwgStaticDuplicatePair, type AiwgStaticEmbeddingRecord, type AiwgStaticEmbeddingSet, type AiwgStaticHybridQueryOptions, type AiwgStaticSemanticQueryOptions, type AiwgStaticSemanticResult, type BuildAiwgStaticEmbeddingSetOptions, DEFAULT_AIWG_DUPLICATE_SCAN_MAX_EMBEDDINGS, aiwgDetailHrefForId, aiwgFortemiIndexToCommunityGraph, assertAiwgFortemiChunkManifest, assertAiwgFortemiChunkPart, assertAiwgFortemiIndexExport, assertAiwgStaticEmbeddingSet, buildAiwgChunkedIndex, buildAiwgStaticEmbeddingSet, createAiwgFetchChunkLoader, createAiwgFetchDetailLoader, createAiwgIndexController, createAiwgReviewDecisionExport, encodeAiwgDetailId, filterAiwgRecordsByPrivacy, findAiwgStaticDuplicatePairs, getAiwgFortemiFacets, queryAiwgFortemiIndex, queryAiwgHybridIndex, queryAiwgSemanticIndex, resolveAiwgFetchUrl, validateAiwgFortemiChunkManifest, validateAiwgFortemiChunkPart, validateAiwgFortemiIndexExport, validateAiwgStaticEmbeddingSet };
|