feat(core): Refactor SmartAcme core to centralize interest coordination and update dependencies

This commit is contained in:
2025-05-01 09:15:19 +00:00
parent f814038a6a
commit 6fedf0505e
12 changed files with 96 additions and 118 deletions

View File

@ -1,4 +1,3 @@
import type { InterestMap } from '@push.rocks/lik';
import type { SmartacmeCert } from '../smartacme.classes.cert.js';
// (ICertRecord removed; use SmartacmeCert directly)
@ -9,10 +8,6 @@ import type { SmartacmeCert } from '../smartacme.classes.cert.js';
* file-based, Redis, etc.).
*/
export interface ICertManager {
/**
* Map for coordinating concurrent certificate requests.
*/
interestMap: InterestMap<string, SmartacmeCert>;
/**
* Initialize the store (e.g., connect to database).
*/
@ -37,5 +32,5 @@ export interface ICertManager {
/**
* Optional: wipe all stored certificates (e.g., for integration testing)
*/
wipe?(): Promise<void>;
wipe(): Promise<void>;
}