@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/dist/index.d.cts CHANGED
@@ -1,13 +1,13 @@
1
- import { Vault, SealingKeyProvider, PublicEnvelope, Noydb } from '@noy-db/hub';
2
- export { CustodyApi, DeedMarker, GrantCustodianOptions, LiberateOptions, LiberateResult, createDeedOwner, isDeedVault, liberateVault, loadDeedMarker } from '@noy-db/hub';
3
- import { a as VaultTemplate, S as StateManagementVault, V as VaultGroup, b as SkippedVault, M as MergeCompartmentOptions, c as MergeReport, d as SurfaceDirection, e as SurfaceConflictPolicy, f as SurfaceRow, g as VaultGroupOptions } from './vault-group-SfkQJ3CM.cjs';
4
- export { C as CapturedBlueprint, h as CrossVaultAggregation, i as CrossVaultDerivationContext, j as CrossVaultDerivationSpec, k as CrossVaultGroupedAggregation, G as CrossVaultGroupedRow, l as CrossVaultLiveAggregation, m as CrossVaultLiveQuery, D as DecryptedMergeOptions, n as DeploymentEvent, F as FanoutQueryOptions, o as FanoutResult, p as FederatedRetrieveHit, q as FederatedRetrieveOptions, r as FederatedRetrieveResult, s as FederationMeta, t as FieldAuthorityInputs, u as FieldAuthorityPolicy, v as FieldAuthorityPolicyMissingError, w as FieldAuthorityRule, x as FieldLevelDeferredError, y as GroupMeta, I as InsightAutoPushConfig, L as LiveQueryOptions, z as MergeConflict, A as MergeStrategy, B as MigrationStatusRow, R as RefreshInsightsResult, E as SchemaManifestRow, H as SchemaRolloutResult, J as ShardedCollection, K as ShardedGroupedQuery, N as ShardedQuery, O as ShardingConfig, P as SurfaceStatus, Q as VaultRegistryRow, T as mergeCompartment, U as mergeDecryptedRecords, W as resolveFieldAuthority, X as resolveRecordByFieldAuthority } from './vault-group-SfkQJ3CM.cjs';
1
+ import { Vault, SealingKeyProvider, Noydb } from '@noy-db/hub/cargo';
2
+ export { CrossShardJoinError, CustodyApi, DataResidencyError, DeedMarker, GrantCustodianOptions, LiberateOptions, LiberateResult, ReservedVaultNameError, ShardProvisioningError, UnknownShardError, VaultTemplateNotFoundError, createDeedOwner, isDeedVault, liberateVault, loadDeedMarker } from '@noy-db/hub/cargo';
3
+ import { a as VaultTemplate, S as StateManagementVault, V as VaultGroup, b as SkippedVault, M as MergeCompartmentOptions, c as MergeReport, d as SurfaceDirection, e as SurfaceConflictPolicy, f as SurfaceRow, g as VaultGroupOptions } from './vault-group-D0EC-D5c.cjs';
4
+ export { C as CapturedBlueprint, h as CrossVaultAggregation, i as CrossVaultDerivationContext, j as CrossVaultDerivationSpec, k as CrossVaultGroupedAggregation, G as CrossVaultGroupedRow, l as CrossVaultLiveAggregation, m as CrossVaultLiveQuery, D as DecryptedMergeOptions, n as DeploymentEvent, F as FanoutQueryOptions, o as FanoutResult, p as FederatedRetrieveHit, q as FederatedRetrieveOptions, r as FederatedRetrieveResult, s as FederationMeta, t as FieldAuthorityInputs, u as FieldAuthorityPolicy, v as FieldAuthorityPolicyMissingError, w as FieldAuthorityRule, x as FieldLevelDeferredError, y as GroupMeta, I as InsightAutoPushConfig, L as LiveQueryOptions, z as MergeConflict, A as MergeStrategy, B as MigrationStatusRow, R as RefreshInsightsResult, E as SchemaManifestRow, H as SchemaRolloutResult, J as ShardedCollection, K as ShardedGroupedQuery, N as ShardedQuery, O as ShardingConfig, P as SurfaceStatus, Q as VaultRegistryRow, T as mergeCompartment, U as mergeDecryptedRecords, W as resolveFieldAuthority, X as resolveRecordByFieldAuthority } from './vault-group-D0EC-D5c.cjs';
5
5
  import { AsXlsxSheetOptions } from '@noy-db/as-xlsx';
6
6
  export { MultiVaultDenormColumn, MultiVaultXlsxEntry, MultiVaultXlsxOptions } from '@noy-db/as-xlsx';
7
- import { ExtractionPreview, WriteNoydbBundleOptions } from '@noy-db/hub/bundle';
8
- import { Vault as Vault$1 } from '@noy-db/hub/kernel';
9
- export { CrossShardJoinError, DataResidencyError, ReservedVaultNameError, ShardProvisioningError, UnknownShardError, VaultTemplateNotFoundError } from '@noy-db/hub/kernel';
7
+ import { ExtractionPreview } from '@noy-db/hub/bundle';
10
8
  import { InspectableContainer } from '@noy-db/in-devtools';
9
+ import { WritePodOptions } from '@noy-db/hub/pod';
10
+ import { PublicEnvelope } from '@noy-db/hub';
11
11
 
12
12
  /**
13
13
  * @klum-db/lobby interchange — cross-vault FK-closure extraction.
@@ -284,7 +284,7 @@ declare function meterGroup<T>(group: VaultGroup<T>, opts?: {
284
284
  * that embeds N standard single-vault `.noydb` bundles plus an
285
285
  * unencrypted, owner-curated **manifest**. The v1 single-vault format
286
286
  * is untouched; each compartment is a complete v1 bundle, produced by
287
- * `writeNoydbBundle` and read by `readNoydbBundle`.
287
+ * `writePod` and read by `readNoydbBundle`.
288
288
  *
289
289
  * Layout: magic 'NDBM'(4) · version(1) · reserved(1) · manifestLen(4 BE)
290
290
  * · manifest JSON · concat(inner v1 bundles, in manifest order).
@@ -338,7 +338,7 @@ declare function decodeMultiBundle(bytes: Uint8Array): {
338
338
  };
339
339
  /** Per-compartment input to {@link writeMultiVaultBundle}. */
340
340
  interface MultiVaultCompartmentInput {
341
- readonly vault: Vault$1;
341
+ readonly vault: Vault;
342
342
  /** Owner-curated classification surfaced in the manifest (e.g. 'shard', 'pool'). */
343
343
  readonly roleTag?: string;
344
344
  /** ISO timestamp for the manifest; defaults to now. */
@@ -352,8 +352,8 @@ interface MultiVaultCompartmentInput {
352
352
  /** `true` → surface the inner bundle's public envelope into the manifest. */
353
353
  readonly publicEnvelope?: boolean;
354
354
  };
355
- /** Options forwarded to `writeNoydbBundle` for this compartment's inner bundle. */
356
- readonly bundleOptions?: WriteNoydbBundleOptions;
355
+ /** Options forwarded to `writePod` for this compartment's inner bundle. */
356
+ readonly bundleOptions?: WritePodOptions;
357
357
  }
358
358
  /** Write N vaults into one `NDBM` multi-compartment bundle. */
359
359
  declare function writeMultiVaultBundle(compartments: readonly MultiVaultCompartmentInput[], opts?: {
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { Vault, SealingKeyProvider, PublicEnvelope, Noydb } from '@noy-db/hub';
2
- export { CustodyApi, DeedMarker, GrantCustodianOptions, LiberateOptions, LiberateResult, createDeedOwner, isDeedVault, liberateVault, loadDeedMarker } from '@noy-db/hub';
3
- import { a as VaultTemplate, S as StateManagementVault, V as VaultGroup, b as SkippedVault, M as MergeCompartmentOptions, c as MergeReport, d as SurfaceDirection, e as SurfaceConflictPolicy, f as SurfaceRow, g as VaultGroupOptions } from './vault-group-SfkQJ3CM.js';
4
- export { C as CapturedBlueprint, h as CrossVaultAggregation, i as CrossVaultDerivationContext, j as CrossVaultDerivationSpec, k as CrossVaultGroupedAggregation, G as CrossVaultGroupedRow, l as CrossVaultLiveAggregation, m as CrossVaultLiveQuery, D as DecryptedMergeOptions, n as DeploymentEvent, F as FanoutQueryOptions, o as FanoutResult, p as FederatedRetrieveHit, q as FederatedRetrieveOptions, r as FederatedRetrieveResult, s as FederationMeta, t as FieldAuthorityInputs, u as FieldAuthorityPolicy, v as FieldAuthorityPolicyMissingError, w as FieldAuthorityRule, x as FieldLevelDeferredError, y as GroupMeta, I as InsightAutoPushConfig, L as LiveQueryOptions, z as MergeConflict, A as MergeStrategy, B as MigrationStatusRow, R as RefreshInsightsResult, E as SchemaManifestRow, H as SchemaRolloutResult, J as ShardedCollection, K as ShardedGroupedQuery, N as ShardedQuery, O as ShardingConfig, P as SurfaceStatus, Q as VaultRegistryRow, T as mergeCompartment, U as mergeDecryptedRecords, W as resolveFieldAuthority, X as resolveRecordByFieldAuthority } from './vault-group-SfkQJ3CM.js';
1
+ import { Vault, SealingKeyProvider, Noydb } from '@noy-db/hub/cargo';
2
+ export { CrossShardJoinError, CustodyApi, DataResidencyError, DeedMarker, GrantCustodianOptions, LiberateOptions, LiberateResult, ReservedVaultNameError, ShardProvisioningError, UnknownShardError, VaultTemplateNotFoundError, createDeedOwner, isDeedVault, liberateVault, loadDeedMarker } from '@noy-db/hub/cargo';
3
+ import { a as VaultTemplate, S as StateManagementVault, V as VaultGroup, b as SkippedVault, M as MergeCompartmentOptions, c as MergeReport, d as SurfaceDirection, e as SurfaceConflictPolicy, f as SurfaceRow, g as VaultGroupOptions } from './vault-group-D0EC-D5c.js';
4
+ export { C as CapturedBlueprint, h as CrossVaultAggregation, i as CrossVaultDerivationContext, j as CrossVaultDerivationSpec, k as CrossVaultGroupedAggregation, G as CrossVaultGroupedRow, l as CrossVaultLiveAggregation, m as CrossVaultLiveQuery, D as DecryptedMergeOptions, n as DeploymentEvent, F as FanoutQueryOptions, o as FanoutResult, p as FederatedRetrieveHit, q as FederatedRetrieveOptions, r as FederatedRetrieveResult, s as FederationMeta, t as FieldAuthorityInputs, u as FieldAuthorityPolicy, v as FieldAuthorityPolicyMissingError, w as FieldAuthorityRule, x as FieldLevelDeferredError, y as GroupMeta, I as InsightAutoPushConfig, L as LiveQueryOptions, z as MergeConflict, A as MergeStrategy, B as MigrationStatusRow, R as RefreshInsightsResult, E as SchemaManifestRow, H as SchemaRolloutResult, J as ShardedCollection, K as ShardedGroupedQuery, N as ShardedQuery, O as ShardingConfig, P as SurfaceStatus, Q as VaultRegistryRow, T as mergeCompartment, U as mergeDecryptedRecords, W as resolveFieldAuthority, X as resolveRecordByFieldAuthority } from './vault-group-D0EC-D5c.js';
5
5
  import { AsXlsxSheetOptions } from '@noy-db/as-xlsx';
6
6
  export { MultiVaultDenormColumn, MultiVaultXlsxEntry, MultiVaultXlsxOptions } from '@noy-db/as-xlsx';
7
- import { ExtractionPreview, WriteNoydbBundleOptions } from '@noy-db/hub/bundle';
8
- import { Vault as Vault$1 } from '@noy-db/hub/kernel';
9
- export { CrossShardJoinError, DataResidencyError, ReservedVaultNameError, ShardProvisioningError, UnknownShardError, VaultTemplateNotFoundError } from '@noy-db/hub/kernel';
7
+ import { ExtractionPreview } from '@noy-db/hub/bundle';
10
8
  import { InspectableContainer } from '@noy-db/in-devtools';
9
+ import { WritePodOptions } from '@noy-db/hub/pod';
10
+ import { PublicEnvelope } from '@noy-db/hub';
11
11
 
12
12
  /**
13
13
  * @klum-db/lobby interchange — cross-vault FK-closure extraction.
@@ -284,7 +284,7 @@ declare function meterGroup<T>(group: VaultGroup<T>, opts?: {
284
284
  * that embeds N standard single-vault `.noydb` bundles plus an
285
285
  * unencrypted, owner-curated **manifest**. The v1 single-vault format
286
286
  * is untouched; each compartment is a complete v1 bundle, produced by
287
- * `writeNoydbBundle` and read by `readNoydbBundle`.
287
+ * `writePod` and read by `readNoydbBundle`.
288
288
  *
289
289
  * Layout: magic 'NDBM'(4) · version(1) · reserved(1) · manifestLen(4 BE)
290
290
  * · manifest JSON · concat(inner v1 bundles, in manifest order).
@@ -338,7 +338,7 @@ declare function decodeMultiBundle(bytes: Uint8Array): {
338
338
  };
339
339
  /** Per-compartment input to {@link writeMultiVaultBundle}. */
340
340
  interface MultiVaultCompartmentInput {
341
- readonly vault: Vault$1;
341
+ readonly vault: Vault;
342
342
  /** Owner-curated classification surfaced in the manifest (e.g. 'shard', 'pool'). */
343
343
  readonly roleTag?: string;
344
344
  /** ISO timestamp for the manifest; defaults to now. */
@@ -352,8 +352,8 @@ interface MultiVaultCompartmentInput {
352
352
  /** `true` → surface the inner bundle's public envelope into the manifest. */
353
353
  readonly publicEnvelope?: boolean;
354
354
  };
355
- /** Options forwarded to `writeNoydbBundle` for this compartment's inner bundle. */
356
- readonly bundleOptions?: WriteNoydbBundleOptions;
355
+ /** Options forwarded to `writePod` for this compartment's inner bundle. */
356
+ readonly bundleOptions?: WritePodOptions;
357
357
  }
358
358
  /** Write N vaults into one `NDBM` multi-compartment bundle. */
359
359
  declare function writeMultiVaultBundle(compartments: readonly MultiVaultCompartmentInput[], opts?: {
package/dist/index.js CHANGED
@@ -25,11 +25,11 @@ var init_uint32 = __esm({
25
25
  });
26
26
 
27
27
  // src/bundle/multi-bundle.ts
28
- import { sha256Hex, generateULID } from "@noy-db/hub/kernel";
28
+ import { sha256Hex, generateULID } from "@noy-db/hub/cargo";
29
29
  import {
30
- writeNoydbBundle,
31
- readNoydbBundleHeader
32
- } from "@noy-db/hub/bundle";
30
+ writePod,
31
+ readPodHeader
32
+ } from "@noy-db/hub/pod";
33
33
  import {
34
34
  readNoydbBundlePublicEnvelope,
35
35
  hasNoydbBundleMagic
@@ -116,8 +116,8 @@ async function writeMultiVaultBundle(compartments, opts = {}) {
116
116
  const inner = [];
117
117
  const entries = [];
118
118
  for (const c of compartments) {
119
- const innerBytes = await writeNoydbBundle(c.vault, c.bundleOptions ?? {});
120
- const header = readNoydbBundleHeader(innerBytes);
119
+ const innerBytes = await writePod(c.vault, c.bundleOptions ?? {});
120
+ const header = readPodHeader(innerBytes);
121
121
  const entry = {
122
122
  handle: header.handle,
123
123
  exportedAt: c.exportedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
@@ -153,7 +153,7 @@ async function writeMultiVaultBundle(compartments, opts = {}) {
153
153
  async function readNoydbBundleManifest(bytes) {
154
154
  if (hasMultiMagic(bytes)) return [...decodeMultiBundle(bytes).manifest.compartments];
155
155
  if (hasNoydbBundleMagic(bytes)) {
156
- const header = readNoydbBundleHeader(bytes);
156
+ const header = readPodHeader(bytes);
157
157
  const env = readNoydbBundlePublicEnvelope(bytes);
158
158
  const entry = {
159
159
  handle: header.handle,
@@ -170,7 +170,7 @@ function readMultiVaultBundleCompartment(bytes, selector) {
170
170
  throw new Error(`readMultiVaultBundleCompartment: numeric selector must be an integer, got ${selector}.`);
171
171
  }
172
172
  if (hasNoydbBundleMagic(bytes) && !hasMultiMagic(bytes)) {
173
- const header = readNoydbBundleHeader(bytes);
173
+ const header = readPodHeader(bytes);
174
174
  if (selector === 0 || selector === header.handle) return bytes;
175
175
  throw new Error(`readMultiVaultBundleCompartment: single v1 bundle has only compartment "${header.handle}".`);
176
176
  }
@@ -201,10 +201,10 @@ __export(extract_cross_vault_exports, {
201
201
  import {
202
202
  walkClosure,
203
203
  extractPartition,
204
- readNoydbBundleHeader as readNoydbBundleHeader2,
205
204
  describeExtraction
206
205
  } from "@noy-db/hub/bundle";
207
- import { sha256Hex as sha256Hex2, generateULID as generateULID2 } from "@noy-db/hub/kernel";
206
+ import { readPodHeader as readPodHeader2 } from "@noy-db/hub/pod";
207
+ import { sha256Hex as sha256Hex2, generateULID as generateULID2 } from "@noy-db/hub/cargo";
208
208
  function asIdArray(v) {
209
209
  if (v === null || v === void 0) return [];
210
210
  if (Array.isArray(v)) return v.filter((x) => typeof x === "string" || typeof x === "number").map(String);
@@ -321,7 +321,7 @@ async function extractCrossVaultPartition(openVault, opts) {
321
321
  carryLedger: opts.carryLedger ?? false,
322
322
  ...opts.compression !== void 0 ? { compression: opts.compression } : {}
323
323
  });
324
- const header = readNoydbBundleHeader2(bundleBytes);
324
+ const header = readPodHeader2(bundleBytes);
325
325
  const meta = opts.compartmentMeta?.[vaultName];
326
326
  const entry = {
327
327
  handle: header.handle,
@@ -429,7 +429,7 @@ var init_field_authority = __esm({
429
429
  });
430
430
 
431
431
  // src/interchange/merge-compartment.ts
432
- import { diffVault } from "@noy-db/hub";
432
+ import { diffVault } from "@noy-db/hub/cargo";
433
433
  import { decryptExtractedPartition } from "@noy-db/hub/bundle";
434
434
  function strategyFor(opts, collection) {
435
435
  if (typeof opts === "string") return opts;
@@ -638,7 +638,7 @@ __export(graduate_exports, {
638
638
  UnitGraduationError: () => UnitGraduationError,
639
639
  graduate: () => graduate
640
640
  });
641
- import { createDeedOwner } from "@noy-db/hub";
641
+ import { createDeedOwner } from "@noy-db/hub/cargo";
642
642
  async function graduate(noydb, docked, opts) {
643
643
  const vault = await noydb.openVault(opts.vaultName);
644
644
  opts.template.configure(vault);
@@ -724,7 +724,7 @@ __export(surface_exports, {
724
724
  markSynced: () => markSynced,
725
725
  proposeSurface: () => proposeSurface
726
726
  });
727
- import { generateULID as generateULID3 } from "@noy-db/hub/kernel";
727
+ import { generateULID as generateULID3 } from "@noy-db/hub/cargo";
728
728
  import { extractPartition as extractPartition2 } from "@noy-db/hub/bundle";
729
729
  async function proposeSurface(smv, def, proposedBy, now) {
730
730
  const row = {
@@ -846,7 +846,7 @@ var init_surface = __esm({
846
846
  });
847
847
 
848
848
  // src/federation/schema-manifest.ts
849
- import { sha256Hex as sha256Hex3 } from "@noy-db/hub/kernel";
849
+ import { sha256Hex as sha256Hex3 } from "@noy-db/hub/cargo";
850
850
  function captureBlueprint(configure) {
851
851
  const recorded = [];
852
852
  const collectionStub = new Proxy(
@@ -906,7 +906,7 @@ var init_schema_manifest = __esm({
906
906
  });
907
907
 
908
908
  // src/federation/constants.ts
909
- import { STATE_VAULT_NAME } from "@noy-db/hub";
909
+ import { STATE_VAULT_NAME } from "@noy-db/hub/cargo";
910
910
  var init_constants = __esm({
911
911
  "src/federation/constants.ts"() {
912
912
  "use strict";
@@ -919,7 +919,7 @@ __export(state_vault_exports, {
919
919
  STATE_VAULT_NAME: () => STATE_VAULT_NAME,
920
920
  StateManagementVault: () => StateManagementVault
921
921
  });
922
- import { generateULID as generateULID4 } from "@noy-db/hub/kernel";
922
+ import { generateULID as generateULID4 } from "@noy-db/hub/cargo";
923
923
  var REGISTRY, MANIFEST, EVENTS, MIGRATION_STATUS, SURFACES, StateManagementVault;
924
924
  var init_state_vault = __esm({
925
925
  "src/federation/state-vault.ts"() {
@@ -1056,7 +1056,7 @@ var init_state_vault = __esm({
1056
1056
  });
1057
1057
 
1058
1058
  // src/federation/classify-skip.ts
1059
- import { NoAccessError } from "@noy-db/hub/kernel";
1059
+ import { NoAccessError } from "@noy-db/hub/cargo";
1060
1060
  function classifyShardSkip(err) {
1061
1061
  return err instanceof NoAccessError ? "no-grant" : "error";
1062
1062
  }
@@ -1067,7 +1067,7 @@ var init_classify_skip = __esm({
1067
1067
  });
1068
1068
 
1069
1069
  // src/federation/cross-shard-join.ts
1070
- import { readPath } from "@noy-db/hub/kernel";
1070
+ import { readPath } from "@noy-db/hub/cargo";
1071
1071
  function coerceKey(value) {
1072
1072
  if (value === null || value === void 0) return null;
1073
1073
  if (typeof value === "string") return value;
@@ -1320,8 +1320,8 @@ var init_partial_reduce = __esm({
1320
1320
  });
1321
1321
 
1322
1322
  // src/federation/aggregate-across.ts
1323
- import { reduceRecords } from "@noy-db/hub/kernel";
1324
- import { groupAndReduce } from "@noy-db/hub/kernel";
1323
+ import { reduceRecords } from "@noy-db/hub/cargo";
1324
+ import { groupAndReduce } from "@noy-db/hub/cargo";
1325
1325
  var CrossVaultAggregation, CrossVaultGroupedAggregation;
1326
1326
  var init_aggregate_across = __esm({
1327
1327
  "src/federation/aggregate-across.ts"() {
@@ -1431,7 +1431,7 @@ var init_aggregate_across = __esm({
1431
1431
  });
1432
1432
 
1433
1433
  // src/federation/retrieve-across.ts
1434
- import { fuseRetrieval } from "@noy-db/hub/kernel";
1434
+ import { fuseRetrieval } from "@noy-db/hub/cargo";
1435
1435
  async function retrieveAcross(group, collectionName, query, opts = {}) {
1436
1436
  const { eligible, skipped } = await group.resolveEligible({
1437
1437
  ...opts.minVersion !== void 0 ? { minVersion: opts.minVersion } : {},
@@ -1505,7 +1505,7 @@ __export(vault_group_exports, {
1505
1505
  ShardedQuery: () => ShardedQuery,
1506
1506
  VaultGroup: () => VaultGroup
1507
1507
  });
1508
- import { CrossShardJoinError, DataResidencyError, ReservedVaultNameError, ShardProvisioningError, UnknownShardError, ValidationError } from "@noy-db/hub/kernel";
1508
+ import { CrossShardJoinError, DataResidencyError, ReservedVaultNameError, ShardProvisioningError, UnknownShardError, ValidationError } from "@noy-db/hub/cargo";
1509
1509
  function autoPushConfig(spec) {
1510
1510
  if (!spec.autoPush) return null;
1511
1511
  return spec.autoPush === true ? {} : spec.autoPush;
@@ -2222,8 +2222,7 @@ var init_vault_group = __esm({
2222
2222
  });
2223
2223
 
2224
2224
  // src/index.ts
2225
- import { ValidationError as ValidationError2, ReservedVaultNameError as ReservedVaultNameError2, VaultTemplateNotFoundError } from "@noy-db/hub/kernel";
2226
- import { STATE_VAULT_NAME as STATE_VAULT_NAME2 } from "@noy-db/hub";
2225
+ import { ValidationError as ValidationError2, ReservedVaultNameError as ReservedVaultNameError2, VaultTemplateNotFoundError, STATE_VAULT_NAME as STATE_VAULT_NAME2 } from "@noy-db/hub/cargo";
2227
2226
 
2228
2227
  // src/dock/docked-unit.ts
2229
2228
  var DockedUnit = class {
@@ -2315,7 +2314,7 @@ import {
2315
2314
  VaultTemplateNotFoundError as VaultTemplateNotFoundError2,
2316
2315
  ReservedVaultNameError as ReservedVaultNameError3,
2317
2316
  DataResidencyError as DataResidencyError2
2318
- } from "@noy-db/hub/kernel";
2317
+ } from "@noy-db/hub/cargo";
2319
2318
 
2320
2319
  // src/interchange/migrate-then-merge.ts
2321
2320
  init_merge_compartment();
@@ -2366,7 +2365,7 @@ async function migrateThenMerge(receiver, compartmentBytes, opts) {
2366
2365
 
2367
2366
  // src/index.ts
2368
2367
  init_field_authority();
2369
- import { CustodyApi, liberateVault, createDeedOwner as createDeedOwner2, loadDeedMarker, isDeedVault } from "@noy-db/hub";
2368
+ import { CustodyApi, liberateVault, createDeedOwner as createDeedOwner2, loadDeedMarker, isDeedVault } from "@noy-db/hub/cargo";
2370
2369
 
2371
2370
  // src/dock/unit-driver.ts
2372
2371
  var InMemoryUnitDriver = class {