@noy-db/hub 0.3.0-pre.4 → 0.3.0-pre.5

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.
Files changed (60) hide show
  1. package/dist/{backup-MOB27UUN.js → backup-OPONO6Q5.js} +2 -2
  2. package/dist/bundle/index.js +4 -4
  3. package/dist/cargo/index.js +4 -4
  4. package/dist/{chunk-SEQ2JI3Y.js → chunk-44UTIDE2.js} +2 -2
  5. package/dist/{chunk-5CY35H55.js → chunk-6UOSONVI.js} +3 -3
  6. package/dist/{chunk-P3V7JTB6.js → chunk-7SY3PTED.js} +2 -2
  7. package/dist/{chunk-GOUNIHFA.js → chunk-A4DWPOP3.js} +8 -8
  8. package/dist/{chunk-ZPHDGUZZ.js → chunk-IEUIUSBO.js} +20 -16
  9. package/dist/chunk-IEUIUSBO.js.map +1 -0
  10. package/dist/{chunk-K5P46KB3.js → chunk-LEA7WJEZ.js} +2 -2
  11. package/dist/{chunk-TVRQ3RYH.js → chunk-NQVZB3S7.js} +3 -4
  12. package/dist/chunk-NQVZB3S7.js.map +1 -0
  13. package/dist/{chunk-NB47TXGP.js → chunk-OJU3CPFA.js} +2 -2
  14. package/dist/{chunk-7J7JRYXW.js → chunk-PI5CG2OV.js} +3 -3
  15. package/dist/{chunk-5W7AOFWA.js → chunk-S2WKOCTU.js} +2 -2
  16. package/dist/{chunk-KYY7L72M.js → chunk-SAJJWVNQ.js} +58 -29
  17. package/dist/chunk-SAJJWVNQ.js.map +1 -0
  18. package/dist/{chunk-CPXPHQGX.js → chunk-TL7QR5T6.js} +15 -10
  19. package/dist/chunk-TL7QR5T6.js.map +1 -0
  20. package/dist/{chunk-HLUKZ36Q.js → chunk-ZBDK7T6X.js} +2 -2
  21. package/dist/{chunk-VAWY44JW.js → chunk-ZT4GWVTX.js} +22 -7
  22. package/dist/chunk-ZT4GWVTX.js.map +1 -0
  23. package/dist/{collection-facade-MKEBZDWW.js → collection-facade-THH4ASGX.js} +4 -4
  24. package/dist/{config-drift-KGM7ZRW4.js → config-drift-3UIJVI5G.js} +3 -3
  25. package/dist/{extract-partition-RNVSFHAB.js → extract-partition-6JGY3KYR.js} +3 -3
  26. package/dist/i18n/index.js +2 -2
  27. package/dist/index.d.ts +8 -1
  28. package/dist/index.js +14 -14
  29. package/dist/{liberate-GMGCHIND.js → liberate-AQ7OWBZZ.js} +3 -3
  30. package/dist/{noydb-KS2O2MRI.js → noydb-WQZNAECY.js} +8 -8
  31. package/dist/{register-K6DDSIXN.js → register-V5AQTXNI.js} +3 -3
  32. package/dist/{storage-5E6YB2JY.js → storage-3FKGLQMC.js} +4 -2
  33. package/dist/team/index.d.ts +27 -2
  34. package/dist/team/index.js +4 -4
  35. package/dist/{walk-5C3GPKT2.js → walk-T65TZDN2.js} +2 -2
  36. package/dist/with/index.js +2 -2
  37. package/package.json +3 -3
  38. package/dist/chunk-CPXPHQGX.js.map +0 -1
  39. package/dist/chunk-KYY7L72M.js.map +0 -1
  40. package/dist/chunk-TVRQ3RYH.js.map +0 -1
  41. package/dist/chunk-VAWY44JW.js.map +0 -1
  42. package/dist/chunk-ZPHDGUZZ.js.map +0 -1
  43. /package/dist/{backup-MOB27UUN.js.map → backup-OPONO6Q5.js.map} +0 -0
  44. /package/dist/{chunk-SEQ2JI3Y.js.map → chunk-44UTIDE2.js.map} +0 -0
  45. /package/dist/{chunk-5CY35H55.js.map → chunk-6UOSONVI.js.map} +0 -0
  46. /package/dist/{chunk-P3V7JTB6.js.map → chunk-7SY3PTED.js.map} +0 -0
  47. /package/dist/{chunk-GOUNIHFA.js.map → chunk-A4DWPOP3.js.map} +0 -0
  48. /package/dist/{chunk-K5P46KB3.js.map → chunk-LEA7WJEZ.js.map} +0 -0
  49. /package/dist/{chunk-NB47TXGP.js.map → chunk-OJU3CPFA.js.map} +0 -0
  50. /package/dist/{chunk-7J7JRYXW.js.map → chunk-PI5CG2OV.js.map} +0 -0
  51. /package/dist/{chunk-5W7AOFWA.js.map → chunk-S2WKOCTU.js.map} +0 -0
  52. /package/dist/{chunk-HLUKZ36Q.js.map → chunk-ZBDK7T6X.js.map} +0 -0
  53. /package/dist/{collection-facade-MKEBZDWW.js.map → collection-facade-THH4ASGX.js.map} +0 -0
  54. /package/dist/{config-drift-KGM7ZRW4.js.map → config-drift-3UIJVI5G.js.map} +0 -0
  55. /package/dist/{extract-partition-RNVSFHAB.js.map → extract-partition-6JGY3KYR.js.map} +0 -0
  56. /package/dist/{liberate-GMGCHIND.js.map → liberate-AQ7OWBZZ.js.map} +0 -0
  57. /package/dist/{noydb-KS2O2MRI.js.map → noydb-WQZNAECY.js.map} +0 -0
  58. /package/dist/{register-K6DDSIXN.js.map → register-V5AQTXNI.js.map} +0 -0
  59. /package/dist/{storage-5E6YB2JY.js.map → storage-3FKGLQMC.js.map} +0 -0
  60. /package/dist/{walk-5C3GPKT2.js.map → walk-T65TZDN2.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-P27Z66EB.js";
4
4
  import {
5
5
  SCHEMAS_COLLECTION
6
- } from "./chunk-CPXPHQGX.js";
6
+ } from "./chunk-TL7QR5T6.js";
7
7
  import {
8
8
  LEDGER_COLLECTION,
9
9
  LEDGER_DELTAS_COLLECTION
@@ -222,4 +222,4 @@ export {
222
222
  loadVault,
223
223
  verifyBackupIntegrity
224
224
  };
225
- //# sourceMappingURL=backup-MOB27UUN.js.map
225
+ //# sourceMappingURL=backup-OPONO6Q5.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  extractPartition,
3
3
  walkClosure
4
- } from "../chunk-NB47TXGP.js";
4
+ } from "../chunk-OJU3CPFA.js";
5
5
  import "../chunk-CHFZDSE4.js";
6
6
  import {
7
7
  adoptPartition,
8
8
  createOwnerOnAdoptedPartition,
9
9
  decryptExtractedPartition,
10
10
  unsealDeks
11
- } from "../chunk-5CY35H55.js";
12
- import "../chunk-CPXPHQGX.js";
11
+ } from "../chunk-6UOSONVI.js";
12
+ import "../chunk-TL7QR5T6.js";
13
13
  import "../chunk-VWGCJUTV.js";
14
14
  import "../chunk-Z5PIUYNB.js";
15
15
  import "../chunk-SW56GSYC.js";
@@ -33,7 +33,7 @@ import {
33
33
  writePod
34
34
  } from "../chunk-EWR7HL3K.js";
35
35
  import "../chunk-3QRQOBS7.js";
36
- import "../chunk-VAWY44JW.js";
36
+ import "../chunk-ZT4GWVTX.js";
37
37
  import "../chunk-TB5RNNJ4.js";
38
38
  import {
39
39
  generateULID,
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  withCargo
3
- } from "../chunk-5W7AOFWA.js";
3
+ } from "../chunk-S2WKOCTU.js";
4
4
  import {
5
5
  CustodyApi,
6
6
  NO_CARGO
7
- } from "../chunk-7J7JRYXW.js";
7
+ } from "../chunk-PI5CG2OV.js";
8
8
  import {
9
9
  createDeedOwner,
10
10
  isDeedVault,
11
11
  liberateVault,
12
12
  loadDeedMarker
13
- } from "../chunk-HLUKZ36Q.js";
13
+ } from "../chunk-ZBDK7T6X.js";
14
14
  import {
15
15
  diffVault
16
16
  } from "../chunk-LB7FD65R.js";
@@ -27,7 +27,7 @@ import {
27
27
  import "../chunk-VWGCJUTV.js";
28
28
  import "../chunk-EWR7HL3K.js";
29
29
  import "../chunk-3QRQOBS7.js";
30
- import "../chunk-VAWY44JW.js";
30
+ import "../chunk-ZT4GWVTX.js";
31
31
  import "../chunk-TB5RNNJ4.js";
32
32
  import {
33
33
  generateULID
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ensureCollectionDEK
3
- } from "./chunk-VAWY44JW.js";
3
+ } from "./chunk-ZT4GWVTX.js";
4
4
  import {
5
5
  envelopePayloadHash
6
6
  } from "./chunk-M66NAZA4.js";
@@ -413,4 +413,4 @@ export {
413
413
  isStaticDictDescriptor,
414
414
  DictionaryHandle
415
415
  };
416
- //# sourceMappingURL=chunk-SEQ2JI3Y.js.map
416
+ //# sourceMappingURL=chunk-44UTIDE2.js.map
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-EWR7HL3K.js";
9
9
  import {
10
10
  createOwnerKeyring
11
- } from "./chunk-VAWY44JW.js";
11
+ } from "./chunk-ZT4GWVTX.js";
12
12
  import {
13
13
  LedgerStore
14
14
  } from "./chunk-GQOT6QJR.js";
@@ -179,7 +179,7 @@ async function createOwnerOnAdoptedPartition(store, vaultName, opts) {
179
179
  }
180
180
  }
181
181
  if (isManaged(opts)) {
182
- const { createNoydb } = await import("./noydb-KS2O2MRI.js");
182
+ const { createNoydb } = await import("./noydb-WQZNAECY.js");
183
183
  const db = await createNoydb({
184
184
  store,
185
185
  user: userId,
@@ -232,4 +232,4 @@ export {
232
232
  createOwnerOnAdoptedPartition,
233
233
  decryptExtractedPartition
234
234
  };
235
- //# sourceMappingURL=chunk-5CY35H55.js.map
235
+ //# sourceMappingURL=chunk-6UOSONVI.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  hasExportCapability,
3
3
  hasImportCapability
4
- } from "./chunk-VAWY44JW.js";
4
+ } from "./chunk-ZT4GWVTX.js";
5
5
  import {
6
6
  ExportCapabilityError,
7
7
  ImportCapabilityError
@@ -252,4 +252,4 @@ export {
252
252
  ServiceBus,
253
253
  SubsystemBus
254
254
  };
255
- //# sourceMappingURL=chunk-P3V7JTB6.js.map
255
+ //# sourceMappingURL=chunk-7SY3PTED.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-AURFOK3D.js";
4
4
  import {
5
5
  isStaticDictDescriptor
6
- } from "./chunk-SEQ2JI3Y.js";
6
+ } from "./chunk-44UTIDE2.js";
7
7
  import {
8
8
  getAtPath,
9
9
  stripI18nFilled
@@ -357,27 +357,27 @@ function buildBlobFieldEntries(filenamesByField) {
357
357
  function withSearch() {
358
358
  return {
359
359
  async search(ctx, field, query, opts) {
360
- const { search: search2 } = await import("./collection-facade-MKEBZDWW.js");
360
+ const { search: search2 } = await import("./collection-facade-THH4ASGX.js");
361
361
  return search2(ctx, field, query, opts);
362
362
  },
363
363
  async retrieve(ctx, query, opts) {
364
- const { retrieve: retrieve2 } = await import("./collection-facade-MKEBZDWW.js");
364
+ const { retrieve: retrieve2 } = await import("./collection-facade-THH4ASGX.js");
365
365
  return retrieve2(ctx, query, opts);
366
366
  },
367
367
  async similarTo(ctx, vector, opts) {
368
- const { similarTo: similarTo2 } = await import("./collection-facade-MKEBZDWW.js");
368
+ const { similarTo: similarTo2 } = await import("./collection-facade-THH4ASGX.js");
369
369
  return similarTo2(ctx, vector, opts);
370
370
  },
371
371
  async warmIndex(ctx) {
372
- const { warmIndex: warmIndex2 } = await import("./collection-facade-MKEBZDWW.js");
372
+ const { warmIndex: warmIndex2 } = await import("./collection-facade-THH4ASGX.js");
373
373
  return warmIndex2(ctx);
374
374
  },
375
375
  async flushIndex(ctx) {
376
- const { flushIndex: flushIndex2 } = await import("./collection-facade-MKEBZDWW.js");
376
+ const { flushIndex: flushIndex2 } = await import("./collection-facade-THH4ASGX.js");
377
377
  return flushIndex2(ctx);
378
378
  },
379
379
  async embedOnWrite(ctx, id, record, version) {
380
- const { embedOnWrite: embedOnWrite2 } = await import("./collection-facade-MKEBZDWW.js");
380
+ const { embedOnWrite: embedOnWrite2 } = await import("./collection-facade-THH4ASGX.js");
381
381
  return embedOnWrite2(ctx, id, record, version);
382
382
  }
383
383
  };
@@ -661,4 +661,4 @@ export {
661
661
  similarTo,
662
662
  embedOnWrite
663
663
  };
664
- //# sourceMappingURL=chunk-GOUNIHFA.js.map
664
+ //# sourceMappingURL=chunk-A4DWPOP3.js.map
@@ -29,7 +29,7 @@ import {
29
29
  NO_SEARCH,
30
30
  VectorSet,
31
31
  buildPersistedIndexCallbacks
32
- } from "./chunk-GOUNIHFA.js";
32
+ } from "./chunk-A4DWPOP3.js";
33
33
  import {
34
34
  ServiceBus,
35
35
  WriteHookRegistry,
@@ -37,7 +37,7 @@ import {
37
37
  assertCanImport,
38
38
  canExport,
39
39
  canImport
40
- } from "./chunk-P3V7JTB6.js";
40
+ } from "./chunk-7SY3PTED.js";
41
41
  import {
42
42
  NO_ATTESTATION
43
43
  } from "./chunk-Z7KI4WHR.js";
@@ -57,7 +57,7 @@ import {
57
57
  CustodyApi,
58
58
  NO_CARGO,
59
59
  NO_CUSTODY
60
- } from "./chunk-7J7JRYXW.js";
60
+ } from "./chunk-PI5CG2OV.js";
61
61
  import {
62
62
  runDrainBarrier
63
63
  } from "./chunk-3Y4QLJ6K.js";
@@ -93,7 +93,7 @@ import {
93
93
  import {
94
94
  isDictCollectionName,
95
95
  isStaticDictDescriptor
96
- } from "./chunk-SEQ2JI3Y.js";
96
+ } from "./chunk-44UTIDE2.js";
97
97
  import {
98
98
  NO_TEAM,
99
99
  enrollAuthenticator,
@@ -104,7 +104,7 @@ import {
104
104
  rotatePassphrase,
105
105
  updateAuthenticator,
106
106
  writeMagicLinkGrant
107
- } from "./chunk-K5P46KB3.js";
107
+ } from "./chunk-LEA7WJEZ.js";
108
108
  import {
109
109
  hasRecoveryEnrolled,
110
110
  hasStrongRecoveryEnrolled,
@@ -126,10 +126,11 @@ import {
126
126
  ensureCollectionDEK,
127
127
  hasAccess,
128
128
  hasWritePermission,
129
+ isSecretBearingReservedCollection,
129
130
  listUsers,
130
131
  loadKeyring,
131
132
  updateKeyringIdentity
132
- } from "./chunk-VAWY44JW.js";
133
+ } from "./chunk-ZT4GWVTX.js";
133
134
  import {
134
135
  persistDirectoryConfig,
135
136
  readDirectoryConfig
@@ -4703,14 +4704,14 @@ var Collection = class {
4703
4704
  /** C-A/R10: persist the classified marker once per classified handle (store I/O in config-drift.ts). */
4704
4705
  async _ensureClassifiedMarker() {
4705
4706
  if (this._markerPersisted || this.vdigFields === null) return;
4706
- const { persistClassifiedMarkerForFields } = await import("./config-drift-KGM7ZRW4.js");
4707
+ const { persistClassifiedMarkerForFields } = await import("./config-drift-3UIJVI5G.js");
4707
4708
  await persistClassifiedMarkerForFields(this.adapter, this.vault, this.name, this.vdigFields, await this.getDEK(this.name));
4708
4709
  this._markerPersisted = true;
4709
4710
  }
4710
4711
  /** C-A/R10 drift signal — the marker's declared digest-only set, memoized to one store read per handle (see config-drift.ts). */
4711
4712
  async _classifiedMarkerDigestOnly() {
4712
4713
  if (this._markerDigestOnlyCache !== void 0) return this._markerDigestOnlyCache;
4713
- const { readClassifiedMarkerDigestOnly } = await import("./config-drift-KGM7ZRW4.js");
4714
+ const { readClassifiedMarkerDigestOnly } = await import("./config-drift-3UIJVI5G.js");
4714
4715
  this._markerDigestOnlyCache = await readClassifiedMarkerDigestOnly(this.adapter, this.vault, this.name, await this.getDEK(this.name));
4715
4716
  return this._markerDigestOnlyCache;
4716
4717
  }
@@ -6397,6 +6398,9 @@ var Vault = class {
6397
6398
  if (isLinkCollectionName(collectionName)) {
6398
6399
  throw new ReservedCollectionNameError(collectionName);
6399
6400
  }
6401
+ if (isSecretBearingReservedCollection(collectionName)) {
6402
+ throw new ReservedCollectionNameError(collectionName);
6403
+ }
6400
6404
  let coll = this.collectionCache.get(collectionName);
6401
6405
  if (coll && options?.moneyFields) {
6402
6406
  coll._applyMoneyFields(options.moneyFields);
@@ -6457,7 +6461,7 @@ var Vault = class {
6457
6461
  const strategies = options.schemaUpdate ?? [];
6458
6462
  const work = (async () => {
6459
6463
  const dek = await this.getDEK(collectionName);
6460
- const { persistSchemaIfNeeded } = await import("./register-K6DDSIXN.js");
6464
+ const { persistSchemaIfNeeded } = await import("./register-V5AQTXNI.js");
6461
6465
  const result = await persistSchemaIfNeeded({
6462
6466
  store: this.adapter,
6463
6467
  vault: this.name,
@@ -6636,7 +6640,7 @@ var Vault = class {
6636
6640
  const work = (async () => {
6637
6641
  try {
6638
6642
  const dek = await this.getDEK(collectionName);
6639
- await (await import("./register-K6DDSIXN.js")).persistSchemaIfNeeded({
6643
+ await (await import("./register-V5AQTXNI.js")).persistSchemaIfNeeded({
6640
6644
  store: this.adapter,
6641
6645
  vault: this.name,
6642
6646
  collectionName,
@@ -8328,7 +8332,7 @@ var Vault = class {
8328
8332
  * @see docs/superpowers/specs/2026-05-22-schema-dump-design.md
8329
8333
  */
8330
8334
  async dumpSchema(opts = {}) {
8331
- const { dumpVaultSchema } = await import("./walk-5C3GPKT2.js");
8335
+ const { dumpVaultSchema } = await import("./walk-T65TZDN2.js");
8332
8336
  return dumpVaultSchema(this, opts);
8333
8337
  }
8334
8338
  /**
@@ -8478,7 +8482,7 @@ var Vault = class {
8478
8482
  * both modes round-trip cleanly.
8479
8483
  */
8480
8484
  async dump() {
8481
- const { dumpVault } = await import("./backup-MOB27UUN.js");
8485
+ const { dumpVault } = await import("./backup-OPONO6Q5.js");
8482
8486
  return dumpVault(this.backupContext());
8483
8487
  }
8484
8488
  /**
@@ -8530,7 +8534,7 @@ var Vault = class {
8530
8534
  * — there's no chain to verify against.
8531
8535
  */
8532
8536
  async load(backupJson) {
8533
- const { loadVault } = await import("./backup-MOB27UUN.js");
8537
+ const { loadVault } = await import("./backup-OPONO6Q5.js");
8534
8538
  return loadVault(this.backupContext(), backupJson);
8535
8539
  }
8536
8540
  /**
@@ -8562,7 +8566,7 @@ var Vault = class {
8562
8566
  * way to detect tampering of an in-place vault.
8563
8567
  */
8564
8568
  async verifyBackupIntegrity() {
8565
- const { verifyBackupIntegrity } = await import("./backup-MOB27UUN.js");
8569
+ const { verifyBackupIntegrity } = await import("./backup-OPONO6Q5.js");
8566
8570
  return verifyBackupIntegrity(this.backupContext());
8567
8571
  }
8568
8572
  /**
@@ -8780,7 +8784,7 @@ var Vault = class {
8780
8784
  * is the live validator object, not a serialization of it).
8781
8785
  */
8782
8786
  async exportJSON(opts = {}) {
8783
- const { exportVaultJSON } = await import("./backup-MOB27UUN.js");
8787
+ const { exportVaultJSON } = await import("./backup-OPONO6Q5.js");
8784
8788
  return exportVaultJSON(this.backupContext(), opts);
8785
8789
  }
8786
8790
  };
@@ -12162,4 +12166,4 @@ export {
12162
12166
  Noydb,
12163
12167
  createNoydb
12164
12168
  };
12165
- //# sourceMappingURL=chunk-ZPHDGUZZ.js.map
12169
+ //# sourceMappingURL=chunk-IEUIUSBO.js.map