docs: rename the native provider to @soulcraft/cor across public docs and JSDoc
The 3.0 native engine ships as @soulcraft/cor (brainy 8.x <-> cor 3.x are a version-matched pair); the old @soulcraft/cortex package stays on the 2.x/7.x line. Public docs and .d.ts-visible comments now name the correct package. Historical 2.x contract references (e.g. the 2.3.1 read-side fallback) keep the old name deliberately.
This commit is contained in:
parent
a3c2717ddb
commit
bf4a333f9b
38 changed files with 104 additions and 104 deletions
|
|
@ -40,7 +40,7 @@ import type { EntityIdMapperProvider } from '../plugin.js'
|
|||
* The largest entity int the JS fallback `EntityIdMapper` will allocate.
|
||||
* The metadata index's roaring bitmaps are 32-bit-keyed (`Roaring32`), so
|
||||
* allowing the JS counter past this point would silently corrupt every
|
||||
* downstream bitmap. The cortex 3.0 binary mapper supports a U64 IdSpace
|
||||
* downstream bitmap. The cor 3.0 binary mapper supports a U64 IdSpace
|
||||
* for brains above this ceiling — see the
|
||||
* [`EntityIdSpaceExceeded`](#EntityIdSpaceExceeded) message for the
|
||||
* migration pointer.
|
||||
|
|
@ -50,8 +50,8 @@ export const U32_ENTITY_ID_MAX = 0xffff_ffff
|
|||
/**
|
||||
* Thrown by the JS fallback `EntityIdMapper` when `nextId` would exceed
|
||||
* [`U32_ENTITY_ID_MAX`](#U32_ENTITY_ID_MAX). The JS path is the
|
||||
* cortex-free fallback; once a brain has more than ~4.29 B entities,
|
||||
* callers MUST install the cortex 3.0 `NativeBinaryEntityIdMapper` with
|
||||
* cor-free fallback; once a brain has more than ~4.29 B entities,
|
||||
* callers MUST install the cor 3.0 `NativeBinaryEntityIdMapper` with
|
||||
* `idSpace: 'u64'` (mmap-backed extendible-hash KV; persists the full
|
||||
* u64 range losslessly).
|
||||
*
|
||||
|
|
@ -96,7 +96,7 @@ export interface EntityIdMapperData {
|
|||
* Maps entity UUIDs to integer IDs for use with Roaring Bitmaps.
|
||||
*
|
||||
* Implements {@link EntityIdMapperProvider}: the surface a registered
|
||||
* `'entityIdMapper'` provider (e.g. Cortex's native mapper) must also satisfy.
|
||||
* `'entityIdMapper'` provider (e.g. Cor's native mapper) must also satisfy.
|
||||
*/
|
||||
export class EntityIdMapper implements EntityIdMapperProvider {
|
||||
private storage: StorageAdapter
|
||||
|
|
@ -162,7 +162,7 @@ export class EntityIdMapper implements EntityIdMapperProvider {
|
|||
* The JS fallback mapper caps at [`U32_ENTITY_ID_MAX`](#U32_ENTITY_ID_MAX)
|
||||
* to match the metadata index's Roaring32 bitmap width — once `nextId`
|
||||
* would exceed that, throws {@link EntityIdSpaceExceeded} so the caller
|
||||
* loudly migrates to cortex's binary mapper with `idSpace: 'u64'`
|
||||
* loudly migrates to cor's binary mapper with `idSpace: 'u64'`
|
||||
* rather than silently truncating entity ids.
|
||||
*/
|
||||
getOrAssign(uuid: string): number {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue