@klum-db/lobby 0.2.0-pre.33 → 0.3.0-pre.1
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 +18 -0
- package/dist/bin/klum.cjs.map +1 -1
- package/dist/bin/klum.d.cts +2 -3
- package/dist/bin/klum.d.ts +2 -3
- package/dist/bin/klum.js.map +1 -1
- package/dist/index.cjs +97 -97
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +26 -27
- package/dist/index.js.map +1 -1
- package/dist/{vault-group-SfkQJ3CM.d.cts → vault-group-D0EC-D5c.d.cts} +5 -6
- package/dist/{vault-group-SfkQJ3CM.d.ts → vault-group-D0EC-D5c.d.ts} +5 -6
- package/package.json +15 -14
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Vault
|
|
2
|
-
import { Vault } from '@noy-db/hub';
|
|
1
|
+
import { Vault, VaultMeta, IndexDef, Operator, LiveQuery, LiveAggregation, AggregateSpec, AggregateResult, RetrieveHit, Collection, Noydb, Query, JoinStrategy, ChangeEvent } from '@noy-db/hub/cargo';
|
|
3
2
|
import { DecryptedRecord } from '@noy-db/hub/bundle';
|
|
4
3
|
|
|
5
4
|
/**
|
|
@@ -174,7 +173,7 @@ interface FederationMeta {
|
|
|
174
173
|
*/
|
|
175
174
|
interface VaultTemplate {
|
|
176
175
|
readonly version: number;
|
|
177
|
-
readonly configure: (vault: Vault
|
|
176
|
+
readonly configure: (vault: Vault) => void;
|
|
178
177
|
}
|
|
179
178
|
/** One row in the StateManagement `vault-registry` collection. */
|
|
180
179
|
interface VaultRegistryRow {
|
|
@@ -681,7 +680,7 @@ declare class VaultGroup<T> {
|
|
|
681
680
|
* (#271) and the shard's registry version is behind the template, its cutover
|
|
682
681
|
* runs inline first — so a behind shard never surfaces a stale handle.
|
|
683
682
|
*/
|
|
684
|
-
openShard(partitionKey: string): Promise<Vault
|
|
683
|
+
openShard(partitionKey: string): Promise<Vault>;
|
|
685
684
|
/** @internal — open + configure with no cutover-on-open hook (used by the migration path itself to avoid recursion). */
|
|
686
685
|
private _openShardRaw;
|
|
687
686
|
/**
|
|
@@ -696,13 +695,13 @@ declare class VaultGroup<T> {
|
|
|
696
695
|
* the candidate backend's `capabilities.region` must match or this throws
|
|
697
696
|
* `DataResidencyError` BEFORE provisioning (#271 data-residency guard).
|
|
698
697
|
*/
|
|
699
|
-
createShard(partitionKey: string, region?: string): Promise<Vault
|
|
698
|
+
createShard(partitionKey: string, region?: string): Promise<Vault>;
|
|
700
699
|
/**
|
|
701
700
|
* Drill down to a single shard's full Collection API. Throws if the shard is unknown.
|
|
702
701
|
* Also throws ShardProvisioningError if the registry row exists but the vault has been deleted
|
|
703
702
|
* (registry/store divergence).
|
|
704
703
|
*/
|
|
705
|
-
shard(partitionKey: string): Promise<Vault
|
|
704
|
+
shard(partitionKey: string): Promise<Vault>;
|
|
706
705
|
/** A sharded view over one logical collection across all shards. */
|
|
707
706
|
collection<R = T>(collectionName: string): ShardedCollection<T, R>;
|
|
708
707
|
/** @internal — eligible (openable-candidate) rows + drift/divergence/unreachable skips. */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Vault
|
|
2
|
-
import { Vault } from '@noy-db/hub';
|
|
1
|
+
import { Vault, VaultMeta, IndexDef, Operator, LiveQuery, LiveAggregation, AggregateSpec, AggregateResult, RetrieveHit, Collection, Noydb, Query, JoinStrategy, ChangeEvent } from '@noy-db/hub/cargo';
|
|
3
2
|
import { DecryptedRecord } from '@noy-db/hub/bundle';
|
|
4
3
|
|
|
5
4
|
/**
|
|
@@ -174,7 +173,7 @@ interface FederationMeta {
|
|
|
174
173
|
*/
|
|
175
174
|
interface VaultTemplate {
|
|
176
175
|
readonly version: number;
|
|
177
|
-
readonly configure: (vault: Vault
|
|
176
|
+
readonly configure: (vault: Vault) => void;
|
|
178
177
|
}
|
|
179
178
|
/** One row in the StateManagement `vault-registry` collection. */
|
|
180
179
|
interface VaultRegistryRow {
|
|
@@ -681,7 +680,7 @@ declare class VaultGroup<T> {
|
|
|
681
680
|
* (#271) and the shard's registry version is behind the template, its cutover
|
|
682
681
|
* runs inline first — so a behind shard never surfaces a stale handle.
|
|
683
682
|
*/
|
|
684
|
-
openShard(partitionKey: string): Promise<Vault
|
|
683
|
+
openShard(partitionKey: string): Promise<Vault>;
|
|
685
684
|
/** @internal — open + configure with no cutover-on-open hook (used by the migration path itself to avoid recursion). */
|
|
686
685
|
private _openShardRaw;
|
|
687
686
|
/**
|
|
@@ -696,13 +695,13 @@ declare class VaultGroup<T> {
|
|
|
696
695
|
* the candidate backend's `capabilities.region` must match or this throws
|
|
697
696
|
* `DataResidencyError` BEFORE provisioning (#271 data-residency guard).
|
|
698
697
|
*/
|
|
699
|
-
createShard(partitionKey: string, region?: string): Promise<Vault
|
|
698
|
+
createShard(partitionKey: string, region?: string): Promise<Vault>;
|
|
700
699
|
/**
|
|
701
700
|
* Drill down to a single shard's full Collection API. Throws if the shard is unknown.
|
|
702
701
|
* Also throws ShardProvisioningError if the registry row exists but the vault has been deleted
|
|
703
702
|
* (registry/store divergence).
|
|
704
703
|
*/
|
|
705
|
-
shard(partitionKey: string): Promise<Vault
|
|
704
|
+
shard(partitionKey: string): Promise<Vault>;
|
|
706
705
|
/** A sharded view over one logical collection across all shards. */
|
|
707
706
|
collection<R = T>(collectionName: string): ShardedCollection<T, R>;
|
|
708
707
|
/** @internal — eligible (openable-candidate) rows + drift/divergence/unreachable skips. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@klum-db/lobby",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-pre.1",
|
|
4
4
|
"description": "klum-db Lobby — orchestrates a group of sovereign noy-db vaults (federation, interchange, custody). The outward framework to noy-db's inward vault.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "vLannaAi <vicio@lanna.ai>",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"LICENSE"
|
|
39
39
|
],
|
|
40
40
|
"engines": {
|
|
41
|
-
"node": ">=
|
|
41
|
+
"node": ">=22.0.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@noy-db/as-xlsx": "^0.
|
|
45
|
-
"@noy-db/hub": "^0.
|
|
46
|
-
"@noy-db/in-devtools": "^0.
|
|
47
|
-
"@noy-db/to-meter": "^0.
|
|
44
|
+
"@noy-db/as-xlsx": "^0.3.0-pre.1",
|
|
45
|
+
"@noy-db/hub": "^0.3.0-pre.1",
|
|
46
|
+
"@noy-db/in-devtools": "^0.3.0-pre.1",
|
|
47
|
+
"@noy-db/to-meter": "^0.3.0-pre.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
50
50
|
"@noy-db/in-devtools": {
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@eslint/js": "^9.18.0",
|
|
59
|
-
"@noy-db/as-xlsx": "0.
|
|
60
|
-
"@noy-db/as-zip": "0.
|
|
61
|
-
"@noy-db/hub": "0.
|
|
62
|
-
"@noy-db/in-devtools": "0.
|
|
63
|
-
"@noy-db/to-memory": "0.
|
|
64
|
-
"@noy-db/to-meter": "0.
|
|
59
|
+
"@noy-db/as-xlsx": "0.3.0-pre.1",
|
|
60
|
+
"@noy-db/as-zip": "0.3.0-pre.1",
|
|
61
|
+
"@noy-db/hub": "0.3.0-pre.1",
|
|
62
|
+
"@noy-db/in-devtools": "0.3.0-pre.1",
|
|
63
|
+
"@noy-db/to-memory": "0.3.0-pre.1",
|
|
64
|
+
"@noy-db/to-meter": "0.3.0-pre.1",
|
|
65
65
|
"@types/node": "^22.0.0",
|
|
66
66
|
"eslint": "^9.18.0",
|
|
67
67
|
"tsup": "^8.4.0",
|
|
@@ -87,7 +87,8 @@
|
|
|
87
87
|
"scripts": {
|
|
88
88
|
"build": "tsup",
|
|
89
89
|
"test": "vitest run",
|
|
90
|
-
"lint": "eslint src/",
|
|
91
|
-
"typecheck": "tsc --noEmit"
|
|
90
|
+
"lint": "eslint src/ && pnpm check:architecture",
|
|
91
|
+
"typecheck": "tsc --noEmit",
|
|
92
|
+
"check:architecture": "node scripts/check-architecture.mjs"
|
|
92
93
|
}
|
|
93
94
|
}
|