@mailwoman/core 8.3.0 → 8.5.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 (53) hide show
  1. package/api/APIClient.ts +207 -42
  2. package/api/clock.ts +43 -0
  3. package/api/disk-storage.ts +239 -0
  4. package/api/index.ts +7 -0
  5. package/api/pacer.ts +98 -0
  6. package/api/responses.ts +227 -44
  7. package/api/retry.ts +227 -0
  8. package/api/test-clocks.ts +234 -0
  9. package/data/libpostal/README.md +62 -0
  10. package/env/schema.ts +7 -0
  11. package/out/api/APIClient.d.ts +60 -8
  12. package/out/api/APIClient.d.ts.map +1 -1
  13. package/out/api/APIClient.js +149 -35
  14. package/out/api/APIClient.js.map +1 -1
  15. package/out/api/clock.d.ts +36 -0
  16. package/out/api/clock.d.ts.map +1 -0
  17. package/out/api/clock.js +27 -0
  18. package/out/api/clock.js.map +1 -0
  19. package/out/api/disk-storage.d.ts +64 -0
  20. package/out/api/disk-storage.d.ts.map +1 -0
  21. package/out/api/disk-storage.js +185 -0
  22. package/out/api/disk-storage.js.map +1 -0
  23. package/out/api/index.d.ts +3 -0
  24. package/out/api/index.d.ts.map +1 -1
  25. package/out/api/index.js +6 -0
  26. package/out/api/index.js.map +1 -1
  27. package/out/api/pacer.d.ts +68 -0
  28. package/out/api/pacer.d.ts.map +1 -0
  29. package/out/api/pacer.js +88 -0
  30. package/out/api/pacer.js.map +1 -0
  31. package/out/api/responses.d.ts +71 -2
  32. package/out/api/responses.d.ts.map +1 -1
  33. package/out/api/responses.js +160 -34
  34. package/out/api/responses.js.map +1 -1
  35. package/out/api/retry.d.ts +119 -0
  36. package/out/api/retry.d.ts.map +1 -0
  37. package/out/api/retry.js +158 -0
  38. package/out/api/retry.js.map +1 -0
  39. package/out/api/test-clocks.d.ts +87 -0
  40. package/out/api/test-clocks.d.ts.map +1 -0
  41. package/out/api/test-clocks.js +175 -0
  42. package/out/api/test-clocks.js.map +1 -0
  43. package/out/env/index.d.ts +3 -0
  44. package/out/env/index.d.ts.map +1 -1
  45. package/out/env/schema.d.ts +3 -0
  46. package/out/env/schema.d.ts.map +1 -1
  47. package/out/env/schema.js +5 -0
  48. package/out/env/schema.js.map +1 -1
  49. package/out/vitest.config.d.ts.map +1 -1
  50. package/out/vitest.config.js +2 -0
  51. package/out/vitest.config.js.map +1 -1
  52. package/package.json +18 -2
  53. package/vitest.config.ts +2 -0
@@ -0,0 +1,87 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ * @file Deterministic {@linkcode ClockLike} implementations shared by the `core/api` suites and by
6
+ * downstream clients' tests (`filer/sdk/sec-client.test.ts`).
7
+ *
8
+ * Lifted from `98c4dda1:filer/sdk/sec-client.test.ts`, where the two-clock split was worked out: a
9
+ * naive clock is fine for sequential assertions and actively MASKS concurrency bugs, so anything
10
+ * testing how concurrent waiters interleave needs the deadline-ordered one.
11
+ */
12
+ import type { ClockLike } from "./clock.ts";
13
+ /**
14
+ * Run every queued microtask to quiescence. A `setImmediate` is scheduled behind the entire microtask queue, so
15
+ * awaiting one guarantees any in-flight promise chain has settled as far as it can without more real time.
16
+ */
17
+ export declare function drainMicrotasks(): Promise<void>;
18
+ /**
19
+ * A {@linkcode ClockLike} whose `sleep()` bumps `now()` and resolves immediately.
20
+ */
21
+ export interface FakeClock extends ClockLike {
22
+ /**
23
+ * Every `ms` value awaited via `sleep`, in call order.
24
+ */
25
+ sleepCalls: number[];
26
+ /**
27
+ * Advance the clock WITHOUT recording a `sleepCalls` entry — simulates wall-clock time passing between two calls
28
+ * (e.g. "a day later") without the code under test having awaited anything.
29
+ */
30
+ advance(ms: number): void;
31
+ }
32
+ /**
33
+ * A simple, immediately-resolving fake clock. Fine for every SEQUENTIAL assertion (nothing racing the clock), but NOT
34
+ * sufficient for a concurrency test — see {@linkcode VirtualClock}.
35
+ */
36
+ export declare function createFakeClock(startAt?: number): FakeClock;
37
+ /**
38
+ * A virtual-time clock that resolves concurrent `sleep()`s ONE AT A TIME, strictly in deadline order, only when
39
+ * explicitly driven via {@linkcode VirtualClock.advance} — unlike {@linkcode createFakeClock}, which bumps `now()`
40
+ * synchronously the INSTANT `sleep()` is called (fine when nothing else races the clock, but not a faithful model of "N
41
+ * callers all waiting on the same deadline").
42
+ *
43
+ * This fidelity is exactly what a pacing regression needs: a coarser clock that resolves every same-deadline sleeper
44
+ * "at once" cannot distinguish a fixed pacer from a broken one — under such a clock BOTH let a whole cohort through
45
+ * together, because the naive clock's call-time (not wake-time) mutation of `now()` interleaves in a way that masks the
46
+ * bug. Here each pending `sleep()` resolves only when `advance()` reaches its deadline, and the woken continuation
47
+ * (which may register a NEW `sleep()`, pushing its own deadline further out) runs to completion before the next
48
+ * same-deadline sleeper is resolved — reproducing how N real, independent timers settle.
49
+ */
50
+ export declare class VirtualClock implements ClockLike {
51
+ #private;
52
+ readonly sleepCalls: number[];
53
+ now(): number;
54
+ sleep(ms: number): Promise<void>;
55
+ /**
56
+ * Advance virtual time to `now() + ms`, waking every pending `sleep()` due at or before that instant — one at a time,
57
+ * earliest deadline first (ties broken by registration order), draining the microtask queue after each wakeup so the
58
+ * woken continuation runs to quiescence before the next deadline is considered.
59
+ *
60
+ * The drain is a `setImmediate` (a MACROTASK), not a fixed number of `await Promise.resolve()` turns. A woken
61
+ * continuation that runs through a library's own promise chain — Axios's request/response interceptors, say — needs
62
+ * more microtask turns than any hardcoded count, and coming up short lets the clock run ahead of an in-flight
63
+ * dispatch: the request then records a LATER deadline's timestamp, and two dispatches appear to share an instant when
64
+ * they didn't.
65
+ */
66
+ advance(ms: number): Promise<void>;
67
+ /**
68
+ * Drive `work` to completion, jumping virtual time to the next pending deadline whenever the REAL event loop goes
69
+ * idle.
70
+ *
71
+ * {@linkcode advance} alone is not enough once the code under test interleaves virtual sleeps with real asynchrony —
72
+ * a paced client whose gate sits downstream of an on-disk cache spends several real event-loop turns in `readFile`
73
+ * before it ever registers its `sleep()`. A caller that drains once and then advances finds nothing pending, jumps
74
+ * the clock past the deadlines that are registered a moment later, and the test hangs. This polls instead: drain, and
75
+ * if any sleep is pending, advance to the earliest deadline; if none is, yield and look again.
76
+ *
77
+ * Throws rather than hanging when the work neither settles nor schedules anything for {@linkcode MAX_IDLE_TURNS}
78
+ * consecutive turns — a diagnosable failure beats a test-timeout stack trace pointing at the `it()`.
79
+ */
80
+ runUntilSettled<T>(work: Promise<T>): Promise<T>;
81
+ }
82
+ /**
83
+ * The maximum number of `timestamps` falling within any sliding window of `windowMs`, using a trailing half-open window
84
+ * `(anchor - windowMs, anchor]` at each timestamp — the conventional "requests in the last N ms" definition.
85
+ */
86
+ export declare function maxCountInSlidingWindow(timestamps: number[], windowMs: number): number;
87
+ //# sourceMappingURL=test-clocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-clocks.d.ts","sourceRoot":"","sources":["../../api/test-clocks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAS3C;;;GAGG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CAI/C;AAED;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,SAAS;IAC3C;;OAEG;IACH,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,SAAI,GAAG,SAAS,CAetD;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,YAAa,YAAW,SAAS;;IAG7C,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,CAAK;IAE3B,GAAG,IAAI,MAAM;IAIb,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQvC;;;;;;;;;;OAUG;IACU,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAmB/C;;;;;;;;;;;;OAYG;IACU,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CA6E7D;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAUtF"}
@@ -0,0 +1,175 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ * @file Deterministic {@linkcode ClockLike} implementations shared by the `core/api` suites and by
6
+ * downstream clients' tests (`filer/sdk/sec-client.test.ts`).
7
+ *
8
+ * Lifted from `98c4dda1:filer/sdk/sec-client.test.ts`, where the two-clock split was worked out: a
9
+ * naive clock is fine for sequential assertions and actively MASKS concurrency bugs, so anything
10
+ * testing how concurrent waiters interleave needs the deadline-ordered one.
11
+ */
12
+ /**
13
+ * How many consecutive event-loop turns {@linkcode VirtualClock.runUntilSettled} tolerates with nothing pending before
14
+ * declaring the work stuck. Generous — a real `readFile` resolves in a handful of turns — but finite, so a genuinely
15
+ * blocked test reports what happened instead of timing out.
16
+ */
17
+ const MAX_IDLE_TURNS = 1000;
18
+ /**
19
+ * Run every queued microtask to quiescence. A `setImmediate` is scheduled behind the entire microtask queue, so
20
+ * awaiting one guarantees any in-flight promise chain has settled as far as it can without more real time.
21
+ */
22
+ export function drainMicrotasks() {
23
+ return new Promise((resolve) => {
24
+ setImmediate(resolve);
25
+ });
26
+ }
27
+ /**
28
+ * A simple, immediately-resolving fake clock. Fine for every SEQUENTIAL assertion (nothing racing the clock), but NOT
29
+ * sufficient for a concurrency test — see {@linkcode VirtualClock}.
30
+ */
31
+ export function createFakeClock(startAt = 0) {
32
+ let current = startAt;
33
+ const sleepCalls = [];
34
+ return {
35
+ sleepCalls,
36
+ now: () => current,
37
+ sleep: async (ms) => {
38
+ sleepCalls.push(ms);
39
+ current += ms;
40
+ },
41
+ advance: (ms) => {
42
+ current += ms;
43
+ },
44
+ };
45
+ }
46
+ /**
47
+ * A virtual-time clock that resolves concurrent `sleep()`s ONE AT A TIME, strictly in deadline order, only when
48
+ * explicitly driven via {@linkcode VirtualClock.advance} — unlike {@linkcode createFakeClock}, which bumps `now()`
49
+ * synchronously the INSTANT `sleep()` is called (fine when nothing else races the clock, but not a faithful model of "N
50
+ * callers all waiting on the same deadline").
51
+ *
52
+ * This fidelity is exactly what a pacing regression needs: a coarser clock that resolves every same-deadline sleeper
53
+ * "at once" cannot distinguish a fixed pacer from a broken one — under such a clock BOTH let a whole cohort through
54
+ * together, because the naive clock's call-time (not wake-time) mutation of `now()` interleaves in a way that masks the
55
+ * bug. Here each pending `sleep()` resolves only when `advance()` reaches its deadline, and the woken continuation
56
+ * (which may register a NEW `sleep()`, pushing its own deadline further out) runs to completion before the next
57
+ * same-deadline sleeper is resolved — reproducing how N real, independent timers settle.
58
+ */
59
+ export class VirtualClock {
60
+ #now = 0;
61
+ #pending = [];
62
+ sleepCalls = [];
63
+ now() {
64
+ return this.#now;
65
+ }
66
+ sleep(ms) {
67
+ this.sleepCalls.push(ms);
68
+ return new Promise((resolve) => {
69
+ this.#pending.push({ deadline: this.#now + ms, resolve });
70
+ });
71
+ }
72
+ /**
73
+ * Advance virtual time to `now() + ms`, waking every pending `sleep()` due at or before that instant — one at a time,
74
+ * earliest deadline first (ties broken by registration order), draining the microtask queue after each wakeup so the
75
+ * woken continuation runs to quiescence before the next deadline is considered.
76
+ *
77
+ * The drain is a `setImmediate` (a MACROTASK), not a fixed number of `await Promise.resolve()` turns. A woken
78
+ * continuation that runs through a library's own promise chain — Axios's request/response interceptors, say — needs
79
+ * more microtask turns than any hardcoded count, and coming up short lets the clock run ahead of an in-flight
80
+ * dispatch: the request then records a LATER deadline's timestamp, and two dispatches appear to share an instant when
81
+ * they didn't.
82
+ */
83
+ async advance(ms) {
84
+ const target = this.#now + ms;
85
+ for (;;) {
86
+ const earliestIndex = this.#earliestDueIndex(target);
87
+ if (earliestIndex === -1)
88
+ break;
89
+ const [due] = this.#pending.splice(earliestIndex, 1);
90
+ this.#now = due.deadline;
91
+ due.resolve();
92
+ await drainMicrotasks();
93
+ }
94
+ this.#now = target;
95
+ }
96
+ /**
97
+ * Drive `work` to completion, jumping virtual time to the next pending deadline whenever the REAL event loop goes
98
+ * idle.
99
+ *
100
+ * {@linkcode advance} alone is not enough once the code under test interleaves virtual sleeps with real asynchrony —
101
+ * a paced client whose gate sits downstream of an on-disk cache spends several real event-loop turns in `readFile`
102
+ * before it ever registers its `sleep()`. A caller that drains once and then advances finds nothing pending, jumps
103
+ * the clock past the deadlines that are registered a moment later, and the test hangs. This polls instead: drain, and
104
+ * if any sleep is pending, advance to the earliest deadline; if none is, yield and look again.
105
+ *
106
+ * Throws rather than hanging when the work neither settles nor schedules anything for {@linkcode MAX_IDLE_TURNS}
107
+ * consecutive turns — a diagnosable failure beats a test-timeout stack trace pointing at the `it()`.
108
+ */
109
+ async runUntilSettled(work) {
110
+ let settled = false;
111
+ const observed = work.then((value) => {
112
+ settled = true;
113
+ return value;
114
+ }, (error) => {
115
+ settled = true;
116
+ throw error;
117
+ });
118
+ // Keep the rejection from surfacing as an unhandled rejection while we drive the clock; the real
119
+ // one is still delivered to whoever awaits the returned promise.
120
+ observed.catch(() => undefined);
121
+ let idleTurns = 0;
122
+ for (;;) {
123
+ await drainMicrotasks();
124
+ // `settled` is flipped by the callbacks above, not by this loop body — hence the explicit
125
+ // break rather than a loop condition (which reads as unmodified to a static analyzer).
126
+ if (settled)
127
+ break;
128
+ const earliest = this.#earliestPendingDeadline();
129
+ if (earliest === null) {
130
+ idleTurns++;
131
+ if (idleTurns > MAX_IDLE_TURNS) {
132
+ throw new Error(`VirtualClock.runUntilSettled: no pending sleep and no progress for ${MAX_IDLE_TURNS} turns at ` +
133
+ `t=${this.#now}. The work is blocked on something this clock does not drive.`);
134
+ }
135
+ continue;
136
+ }
137
+ idleTurns = 0;
138
+ await this.advance(Math.max(earliest - this.#now, 0));
139
+ }
140
+ return observed;
141
+ }
142
+ #earliestPendingDeadline() {
143
+ let earliest = null;
144
+ for (const { deadline } of this.#pending) {
145
+ if (earliest === null || deadline < earliest) {
146
+ earliest = deadline;
147
+ }
148
+ }
149
+ return earliest;
150
+ }
151
+ #earliestDueIndex(target) {
152
+ let earliestIndex = -1;
153
+ for (let i = 0; i < this.#pending.length; i++) {
154
+ if (this.#pending[i].deadline > target)
155
+ continue;
156
+ if (earliestIndex === -1 || this.#pending[i].deadline < this.#pending[earliestIndex].deadline) {
157
+ earliestIndex = i;
158
+ }
159
+ }
160
+ return earliestIndex;
161
+ }
162
+ }
163
+ /**
164
+ * The maximum number of `timestamps` falling within any sliding window of `windowMs`, using a trailing half-open window
165
+ * `(anchor - windowMs, anchor]` at each timestamp — the conventional "requests in the last N ms" definition.
166
+ */
167
+ export function maxCountInSlidingWindow(timestamps, windowMs) {
168
+ let max = 0;
169
+ for (const anchor of timestamps) {
170
+ const count = timestamps.filter((t) => t > anchor - windowMs && t <= anchor).length;
171
+ max = Math.max(max, count);
172
+ }
173
+ return max;
174
+ }
175
+ //# sourceMappingURL=test-clocks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-clocks.js","sourceRoot":"","sources":["../../api/test-clocks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,cAAc,GAAG,IAAI,CAAA;AAE3B;;;GAGG;AACH,MAAM,UAAU,eAAe;IAC9B,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;QACpC,YAAY,CAAC,OAAO,CAAC,CAAA;IACtB,CAAC,CAAC,CAAA;AACH,CAAC;AAiBD;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,OAAO,GAAG,CAAC;IAC1C,IAAI,OAAO,GAAG,OAAO,CAAA;IACrB,MAAM,UAAU,GAAa,EAAE,CAAA;IAE/B,OAAO;Q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,8 @@ export declare const $private: {
84
84
  RCLONE_S3_SECRET_ACCESS_KEY?: string | undefined;
85
85
  OA_BATCH_TOKEN?: string | undefined;
86
86
  RELEASE_IT_WORKSPACES_OTP?: string | undefined;
87
+ FCC_MAP_USERNAME?: string | undefined;
88
+ FCC_MAP_API_KEY?: string | undefined;
89
+ SEC_EDGAR_USER_AGENT?: string | undefined;
87
90
  };
88
91
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../env/index.ts"],"names":[],"mappings":"AA2BA;;;;;GAKG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2B,CAAA;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;CAA4B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../env/index.ts"],"names":[],"mappings":"AA2BA;;;;;GAKG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2B,CAAA;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;CAA4B,CAAA"}
@@ -85,5 +85,8 @@ export declare const PrivateEnvSchema: z.ZodObject<{
85
85
  RCLONE_S3_SECRET_ACCESS_KEY: z.ZodOptional<z.ZodString>;
86
86
  OA_BATCH_TOKEN: z.ZodOptional<z.ZodString>;
87
87
  RELEASE_IT_WORKSPACES_OTP: z.ZodOptional<z.ZodString>;
88
+ FCC_MAP_USERNAME: z.ZodOptional<z.ZodString>;
89
+ FCC_MAP_API_KEY: z.ZodOptional<z.ZodString>;
90
+ SEC_EDGAR_USER_AGENT: z.ZodOptional<z.ZodString>;
88
91
  }, z.core.$strip>;
89
92
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../env/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgG1B,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;iBA2B3B,CAAA"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../env/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgG1B,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;iBAkC3B,CAAA"}
package/out/env/schema.js CHANGED
@@ -116,5 +116,10 @@ export const PrivateEnvSchema = z.object({
116
116
  OA_BATCH_TOKEN: z.string().optional(),
117
117
  // npm 2FA OTP for the release publish flow (`scripts/publish-workspace.ts`).
118
118
  RELEASE_IT_WORKSPACES_OTP: z.string().optional(),
119
+ // FCC Broadband Map (BDC) public-API credentials (`bdc/sdk/client.ts`) — username + hash_value header auth.
120
+ FCC_MAP_USERNAME: z.string().optional(),
121
+ FCC_MAP_API_KEY: z.string().optional(),
122
+ // SEC EDGAR fair-access User-Agent (`filer/sdk/sec-client.ts`) — "Company Name AdminContact@domain.com".
123
+ SEC_EDGAR_USER_AGENT: z.string().optional(),
119
124
  });
120
125
  //# sourceMappingURL=schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../env/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;GAGG;AACH,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AE,mBAAmB,CAAC,CAAC,QAAQ,EAAE;IAE3D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAE5C,wFAAwF;IACxF,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEnC,wDAAwD;IACxD,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAExC,uEAAuE;IACvE,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9C,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAElD,sFAAsF;IACtF,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAErC,6EAA6E;IAC7E,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEhD,4GAA4G;IAC5G,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEtC,yGAAyG;IACzG,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;;AAWH,wBA4BE"}
1
+ {"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;;AAWH,wBA8BE"}
@@ -27,6 +27,8 @@ export default defineConfig({
27
27
  { find: /^@mailwoman\/core\/coarse-placer$/, replacement: resolve(here, "coarse-placer/coarse-placer.ts") },
28
28
  { find: /^@mailwoman\/core\/objects$/, replacement: resolve(here, "objects.ts") },
29
29
  { find: /^@mailwoman\/core\/fs$/, replacement: resolve(here, "fs/node.ts") },
30
+ { find: /^@mailwoman\/core\/api\/disk-storage$/, replacement: resolve(here, "api/disk-storage.ts") },
31
+ { find: /^@mailwoman\/core\/api\/test-clocks$/, replacement: resolve(here, "api/test-clocks.ts") },
30
32
  // Every other @mailwoman/core/<subpath> resolves to the index.ts of the matching subdir.
31
33
  { find: /^@mailwoman\/core\/(.+)$/, replacement: resolve(here, "$1/index.ts") },
32
34
  { find: /^@mailwoman\/core$/, replacement: resolve(here, "index.ts") },
@@ -1 +1 @@
1
- {"version":3,"file":"vitest.config.js","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,gGAAgG;AAChG,mGAAmG;AACnG,8FAA8F;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAA;AAEhC,eAAe,YAAY,CAAC;IAC3B,OAAO,EAAE;QACR,KAAK,EAAE;YACN,yFAAyF;YACzF,yDAAyD;YACzD,EAAE,IAAI,EAAE,kCAAkC,EAAE,WAAW,EAAE,OAAO,CAAC,IAAI,EAAE,cAAc,CAAC,EAAE;YACxF,EAAE,IAAI,EAAE,mCAAmC,EAAE,WAAW,EAAE,OAAO,CAAC,IAAI,EAAE,gCAAgC,CAAC,EAAE;YAC3G,EAAE,IAAI,EAAE,6BAA6B,EAAE,WAAW,EAAE,OAAO,CAAC,IAAI,EAAE,YAAY,CAAC,EAAE;YACjF,EAAE,IAAI,EAAE,wBAAwB,EAAE,WAAW,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,uFAAuF;QACvF,mFAAmF;QACnF,uDAAuD;QACvD,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,CAAC,oBAAoB,EAAE,WAAW,EAAE,YAAY,CAAC;KAC1D;CACD,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailwoman/core",
3
- "version": "8.3.0",
3
+ "version": "8.5.0",
4
4
  "description": "Mailwoman core: tokenization, decoder, formatter, resources, filters, utils.",
5
5
  "license": "AGPL-3.0-only OR LicenseRef-Commercial",
6
6
  "repository": {
@@ -99,6 +99,14 @@
99
99
  "types": "./out/api/index.d.ts",
100
100
  "default": "./out/api/index.js"
101
101
  },
102
+ "./api/disk-storage": {
103
+ "types": "./out/api/disk-storage.d.ts",
104
+ "default": "./out/api/disk-storage.js"
105
+ },
106
+ "./api/test-clocks": {
107
+ "types": "./out/api/test-clocks.d.ts",
108
+ "default": "./out/api/test-clocks.js"
109
+ },
102
110
  "./logging": {
103
111
  "types": "./out/logging/index.d.ts",
104
112
  "default": "./out/logging/index.js"
@@ -220,6 +228,14 @@
220
228
  "types": "./out/api/index.d.ts",
221
229
  "default": "./out/api/index.js"
222
230
  },
231
+ "./api/disk-storage": {
232
+ "types": "./out/api/disk-storage.d.ts",
233
+ "default": "./out/api/disk-storage.js"
234
+ },
235
+ "./api/test-clocks": {
236
+ "types": "./out/api/test-clocks.d.ts",
237
+ "default": "./out/api/test-clocks.js"
238
+ },
223
239
  "./logging": {
224
240
  "types": "./out/logging/index.d.ts",
225
241
  "default": "./out/logging/index.js"
@@ -288,7 +304,7 @@
288
304
  },
289
305
  "devDependencies": {
290
306
  "@duckdb/node-api": "1.5.3-r.3",
291
- "@mailwoman/codex": "8.3.0",
307
+ "@mailwoman/codex": "8.5.0",
292
308
  "@types/d3-color": "^3.1.3",
293
309
  "@types/d3-scale-chromatic": "^3.1.0"
294
310
  }
package/vitest.config.ts CHANGED
@@ -31,6 +31,8 @@ export default defineConfig({
31
31
  { find: /^@mailwoman\/core\/coarse-placer$/, replacement: resolve(here, "coarse-placer/coarse-placer.ts") },
32
32
  { find: /^@mailwoman\/core\/objects$/, replacement: resolve(here, "objects.ts") },
33
33
  { find: /^@mailwoman\/core\/fs$/, replacement: resolve(here, "fs/node.ts") },
34
+ { find: /^@mailwoman\/core\/api\/disk-storage$/, replacement: resolve(here, "api/disk-storage.ts") },
35
+ { find: /^@mailwoman\/core\/api\/test-clocks$/, replacement: resolve(here, "api/test-clocks.ts") },
34
36
  // Every other @mailwoman/core/<subpath> resolves to the index.ts of the matching subdir.
35
37
  { find: /^@mailwoman\/core\/(.+)$/, replacement: resolve(here, "$1/index.ts") },
36
38
  { find: /^@mailwoman\/core$/, replacement: resolve(here, "index.ts") },