@bazariodev/docket 0.0.0 → 1.0.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 (51) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +715 -173
  3. package/dist/{chunk-B-SP8Od_.js → chunk-DkvWLziD.js} +3 -3
  4. package/dist/{chunk-B-SP8Od_.js.map → chunk-DkvWLziD.js.map} +1 -1
  5. package/dist/{chunk-Bvq4tF_F.cjs → chunk-ieB8yTEn.cjs} +2 -3
  6. package/dist/{chunk-Bvq4tF_F.cjs.map → chunk-ieB8yTEn.cjs.map} +1 -1
  7. package/dist/client/index.cjs +167 -0
  8. package/dist/client/index.cjs.map +1 -0
  9. package/dist/client/index.d.cts +40 -0
  10. package/dist/client/index.d.ts +40 -0
  11. package/dist/client/index.js +165 -0
  12. package/dist/client/index.js.map +1 -0
  13. package/dist/constants.d.cts +2 -4
  14. package/dist/constants.d.ts +2 -4
  15. package/dist/export/index.cjs +39 -11
  16. package/dist/export/index.cjs.map +1 -1
  17. package/dist/export/index.js +39 -11
  18. package/dist/export/index.js.map +1 -1
  19. package/dist/history/index.cjs +21 -1187
  20. package/dist/history/index.cjs.map +1 -1
  21. package/dist/history/index.d.cts +10 -112
  22. package/dist/history/index.d.ts +10 -112
  23. package/dist/history/index.js +22 -1188
  24. package/dist/history/index.js.map +1 -1
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.d.cts +1 -0
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.js +1 -1
  29. package/dist/indexeddb/index.cjs +18 -7
  30. package/dist/indexeddb/index.cjs.map +1 -1
  31. package/dist/indexeddb/index.d.cts +19 -4
  32. package/dist/indexeddb/index.d.ts +19 -4
  33. package/dist/indexeddb/index.js +18 -8
  34. package/dist/indexeddb/index.js.map +1 -1
  35. package/dist/storage/contracts.d.cts +0 -4
  36. package/dist/storage/contracts.d.ts +0 -4
  37. package/dist/upload/constants.d.cts +17 -0
  38. package/dist/upload/constants.d.ts +17 -0
  39. package/dist/upload/index.cjs +246 -0
  40. package/dist/upload/index.cjs.map +1 -0
  41. package/dist/upload/index.d.cts +51 -0
  42. package/dist/upload/index.d.ts +51 -0
  43. package/dist/upload/index.js +244 -0
  44. package/dist/upload/index.js.map +1 -0
  45. package/package.json +25 -2
  46. package/dist/core/errors.d.cts +0 -8
  47. package/dist/core/errors.d.ts +0 -8
  48. package/dist/history/constants.d.cts +0 -35
  49. package/dist/history/constants.d.ts +0 -35
  50. package/dist/sip/constants.d.cts +0 -5
  51. package/dist/sip/constants.d.ts +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bazariodev/docket",
3
- "version": "0.0.0",
3
+ "version": "1.0.0",
4
4
  "description": "Structured diagnostic logging with injected redaction, storage, history, and archive capabilities.",
5
5
  "keywords": [
6
6
  "logging",
@@ -102,6 +102,26 @@
102
102
  "types": "./dist/devtools/index.d.cts",
103
103
  "default": "./dist/devtools/index.cjs"
104
104
  }
105
+ },
106
+ "./upload": {
107
+ "import": {
108
+ "types": "./dist/upload/index.d.ts",
109
+ "default": "./dist/upload/index.js"
110
+ },
111
+ "require": {
112
+ "types": "./dist/upload/index.d.cts",
113
+ "default": "./dist/upload/index.cjs"
114
+ }
115
+ },
116
+ "./client": {
117
+ "import": {
118
+ "types": "./dist/client/index.d.ts",
119
+ "default": "./dist/client/index.js"
120
+ },
121
+ "require": {
122
+ "types": "./dist/client/index.d.cts",
123
+ "default": "./dist/client/index.cjs"
124
+ }
105
125
  }
106
126
  },
107
127
  "files": [
@@ -111,6 +131,9 @@
111
131
  "LICENSE"
112
132
  ],
113
133
  "sideEffects": false,
134
+ "dependencies": {
135
+ "@bazariodev/coordination": "^1.2.0"
136
+ },
114
137
  "publishConfig": {
115
138
  "access": "public"
116
139
  },
@@ -118,7 +141,7 @@
118
141
  "fake-indexeddb": "^6.2.5",
119
142
  "fflate": "^0.8.2",
120
143
  "@bazariodev/baler": "^0.1.0",
121
- "@bazariodev/hopper": "^0.1.0",
144
+ "@bazariodev/hopper": "^0.2.0",
122
145
  "@bazariodev/winnow": "^0.1.0"
123
146
  },
124
147
  "scripts": {
@@ -1,8 +0,0 @@
1
- export function loggingError(code: any): Error & {
2
- code: any;
3
- };
4
- export const LOGGING_ERRORS: Readonly<{
5
- "recursive-logging": "Recursive logging is rejected";
6
- "root-logger-cache-limit": "Root logger cache exceeds 1000 pairs";
7
- stopped: "Logging is stopped";
8
- }>;
@@ -1,8 +0,0 @@
1
- export function loggingError(code: any): Error & {
2
- code: any;
3
- };
4
- export const LOGGING_ERRORS: Readonly<{
5
- "recursive-logging": "Recursive logging is rejected";
6
- "root-logger-cache-limit": "Root logger cache exceeds 1000 pairs";
7
- stopped: "Logging is stopped";
8
- }>;
@@ -1,35 +0,0 @@
1
- export const HISTORY_MODES: Readonly<{
2
- OFF: "off";
3
- MEMORY: "memory";
4
- PERSISTENT: "persistent";
5
- }>;
6
- export const HISTORY_STATES: Readonly<{
7
- IDLE: "idle";
8
- ACTIVE: "active";
9
- TRANSITIONING: "transitioning";
10
- BLOCKED: "blocked";
11
- STALE: "stale";
12
- STOPPED: "stopped";
13
- }>;
14
- export const HISTORY_ERROR_CODES: Readonly<{
15
- METADATA: "metadata";
16
- CLEANUP: "cleanup";
17
- STALE: "stale";
18
- SETUP: "setup";
19
- MIGRATION: "migration";
20
- STOPPED: "stopped";
21
- ROTATION: "rotation";
22
- }>;
23
- export const HISTORY_ERRORS: Readonly<{
24
- metadata: "Log history metadata failed";
25
- cleanup: "Log history cleanup failed";
26
- stale: "Log history stale failed";
27
- setup: "Log history setup failed";
28
- migration: "Log history migration failed";
29
- stopped: "Log history stopped failed";
30
- rotation: "Log history rotation failed";
31
- }>;
32
- export const HISTORY_LIMITS: Readonly<{
33
- STARTUP_DEFAULT_MAX_SIZE_PER_AREA: 250000;
34
- STARTUP_MAX_TOTAL_SIZE: 1000000;
35
- }>;
@@ -1,35 +0,0 @@
1
- export const HISTORY_MODES: Readonly<{
2
- OFF: "off";
3
- MEMORY: "memory";
4
- PERSISTENT: "persistent";
5
- }>;
6
- export const HISTORY_STATES: Readonly<{
7
- IDLE: "idle";
8
- ACTIVE: "active";
9
- TRANSITIONING: "transitioning";
10
- BLOCKED: "blocked";
11
- STALE: "stale";
12
- STOPPED: "stopped";
13
- }>;
14
- export const HISTORY_ERROR_CODES: Readonly<{
15
- METADATA: "metadata";
16
- CLEANUP: "cleanup";
17
- STALE: "stale";
18
- SETUP: "setup";
19
- MIGRATION: "migration";
20
- STOPPED: "stopped";
21
- ROTATION: "rotation";
22
- }>;
23
- export const HISTORY_ERRORS: Readonly<{
24
- metadata: "Log history metadata failed";
25
- cleanup: "Log history cleanup failed";
26
- stale: "Log history stale failed";
27
- setup: "Log history setup failed";
28
- migration: "Log history migration failed";
29
- stopped: "Log history stopped failed";
30
- rotation: "Log history rotation failed";
31
- }>;
32
- export const HISTORY_LIMITS: Readonly<{
33
- STARTUP_DEFAULT_MAX_SIZE_PER_AREA: 250000;
34
- STARTUP_MAX_TOTAL_SIZE: 1000000;
35
- }>;
@@ -1,5 +0,0 @@
1
- export const SIP_ERRORS: Readonly<{
2
- CALLBACK: "SIP display-name callback must return a string without controls";
3
- RESULT_LIMIT: "SIP display name exceeds maxStringLength";
4
- OUTPUT_LIMIT: "SIP output exceeds its size limit";
5
- }>;
@@ -1,5 +0,0 @@
1
- export const SIP_ERRORS: Readonly<{
2
- CALLBACK: "SIP display-name callback must return a string without controls";
3
- RESULT_LIMIT: "SIP display name exceeds maxStringLength";
4
- OUTPUT_LIMIT: "SIP output exceeds its size limit";
5
- }>;