@promptowl/contextnest-community 1.17.0 → 1.19.0

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 (29) hide show
  1. package/CONFIGURATION.md +1 -1
  2. package/README.md +6 -2
  3. package/dist/{chunk-YF4OFT2V.js → chunk-3GMGLYTZ.js} +36 -5
  4. package/dist/{chunk-UXJSO54R.js → chunk-BXUVIAMP.js} +59 -14
  5. package/dist/{chunk-SNFGU5Q7.js → chunk-ENDHMQPD.js} +602 -327
  6. package/dist/chunk-F66VCBLA.js +136 -0
  7. package/dist/{chunk-4YGJSUJC.js → chunk-FBDEESNJ.js} +30 -22
  8. package/dist/{chunk-HWDPCPYT.js → chunk-GSYMJ3A4.js} +2 -2
  9. package/dist/{chunk-JMJLNEXE.js → chunk-HYSTFMFG.js} +43 -2
  10. package/dist/chunk-TNAZJYL5.js +379 -0
  11. package/dist/{chunk-SLTQACJW.js → chunk-YB3LKF7U.js} +3 -1
  12. package/dist/{chunk-GUNJTORH.js → chunk-YVMSM7LS.js} +14 -1
  13. package/dist/{client-OBS5HOTA.js → client-SW5I6ZBK.js} +2 -2
  14. package/dist/engine-V4DY4PYN.js +14 -0
  15. package/dist/external-edit-service-3NK5DGLA.js +33 -0
  16. package/dist/{grants-service-4NXPBYWD.js → grants-service-CADI6LIB.js} +4 -4
  17. package/dist/index.js +580 -513
  18. package/dist/{keys-73STFJJB.js → keys-CTOGAG3W.js} +5 -1
  19. package/dist/{migrations.postgres-CYKO5CFV.js → migrations.postgres-5VI4RDTS.js} +41 -4
  20. package/dist/{review-service-3CCKDO5N.js → review-service-LK4M2C43.js} +8 -8
  21. package/dist/{stewardship-service-OHTTZFND.js → stewardship-service-JAFSU5GN.js} +9 -5
  22. package/dist/{version-service-EFZGGL3Y.js → version-service-G7SFFKFO.js} +7 -5
  23. package/dist/web3/assets/index-C26nM5Kn.css +1 -0
  24. package/dist/web3/assets/index-C4oalc2K.js +1065 -0
  25. package/dist/web3/index.html +2 -2
  26. package/package.json +3 -3
  27. package/dist/chunk-XRK6SQSC.js +0 -58
  28. package/dist/web3/assets/index-D1299AIf.css +0 -1
  29. package/dist/web3/assets/index-W6tEA3RK.js +0 -1046
@@ -1,8 +1,10 @@
1
1
  // src/shared/constants.ts
2
2
  var ANON_USER_ID = "00000000-0000-0000-0000-000000000000";
3
3
  var ANON_EMAIL = "admin@localhost";
4
+ var MAX_FOLDER_DEPTH = 8;
4
5
 
5
6
  export {
6
7
  ANON_USER_ID,
7
- ANON_EMAIL
8
+ ANON_EMAIL,
9
+ MAX_FOLDER_DEPTH
8
10
  };
@@ -43,6 +43,17 @@ var LockedError = class extends AppError {
43
43
  this.name = "LockedError";
44
44
  }
45
45
  };
46
+ var VaultBusyError = class extends AppError {
47
+ retryAfterSeconds = 5;
48
+ constructor(message = "The vault is busy with another write. Retry shortly.") {
49
+ super(503, message);
50
+ this.name = "VaultBusyError";
51
+ }
52
+ };
53
+ function isVaultLockTimeout(err) {
54
+ const e = err;
55
+ return e?.name === "VaultLockTimeoutError" || e?.code === "VAULT_LOCK_TIMEOUT";
56
+ }
46
57
 
47
58
  export {
48
59
  AppError,
@@ -51,5 +62,7 @@ export {
51
62
  UnauthorizedError,
52
63
  ValidationError,
53
64
  ConflictError,
54
- LockedError
65
+ LockedError,
66
+ VaultBusyError,
67
+ isVaultLockTimeout
55
68
  };
@@ -2,8 +2,8 @@ import {
2
2
  getDb,
3
3
  initDb,
4
4
  resetDb
5
- } from "./chunk-JMJLNEXE.js";
6
- import "./chunk-SLTQACJW.js";
5
+ } from "./chunk-HYSTFMFG.js";
6
+ import "./chunk-YB3LKF7U.js";
7
7
  export {
8
8
  getDb,
9
9
  initDb,
@@ -0,0 +1,14 @@
1
+ import {
2
+ engineApi,
3
+ engineCache,
4
+ opContext
5
+ } from "./chunk-ENDHMQPD.js";
6
+ import "./chunk-YVMSM7LS.js";
7
+ import "./chunk-HYSTFMFG.js";
8
+ import "./chunk-YB3LKF7U.js";
9
+ import "./chunk-FRQJWGN3.js";
10
+ export {
11
+ engineApi,
12
+ engineCache,
13
+ opContext
14
+ };
@@ -0,0 +1,33 @@
1
+ import {
2
+ approveExternalEdit,
3
+ documentsWithSuggestions,
4
+ getExternalEditDetail,
5
+ getPendingChange,
6
+ listExternalEditVerdicts,
7
+ listNestExternalEdits,
8
+ loadLatestApprovedNode,
9
+ rejectExternalEdit,
10
+ scanDocumentForDrift,
11
+ scanNestForDrift,
12
+ startDriftScanner,
13
+ stopDriftScanner
14
+ } from "./chunk-TNAZJYL5.js";
15
+ import "./chunk-ENDHMQPD.js";
16
+ import "./chunk-YVMSM7LS.js";
17
+ import "./chunk-HYSTFMFG.js";
18
+ import "./chunk-YB3LKF7U.js";
19
+ import "./chunk-FRQJWGN3.js";
20
+ export {
21
+ approveExternalEdit,
22
+ documentsWithSuggestions,
23
+ getExternalEditDetail,
24
+ getPendingChange,
25
+ listExternalEditVerdicts,
26
+ listNestExternalEdits,
27
+ loadLatestApprovedNode,
28
+ rejectExternalEdit,
29
+ scanDocumentForDrift,
30
+ scanNestForDrift,
31
+ startDriftScanner,
32
+ stopDriftScanner
33
+ };
@@ -6,10 +6,10 @@ import {
6
6
  listGrants,
7
7
  listUserGrants,
8
8
  resolveNodeGrant
9
- } from "./chunk-HWDPCPYT.js";
10
- import "./chunk-GUNJTORH.js";
11
- import "./chunk-JMJLNEXE.js";
12
- import "./chunk-SLTQACJW.js";
9
+ } from "./chunk-GSYMJ3A4.js";
10
+ import "./chunk-YVMSM7LS.js";
11
+ import "./chunk-HYSTFMFG.js";
12
+ import "./chunk-YB3LKF7U.js";
13
13
  export {
14
14
  createGrant,
15
15
  deleteGrant,