feat(api): integrate identity, notification scope and connection settings into control plane

- Wire identity, metrics and update services into the assembled API.

- Add connection authorization modes and scoped console authorization.

- Preserve notification group IDs for filtered delivery.

- Extend maintenance, backup, resource and module flows with runtime metadata and upstream safety.
This commit is contained in:
chick
2026-09-07 00:45:18 +08:00
parent 7168e9dba2
commit 635527dd26
22 changed files with 754 additions and 46 deletions
@@ -30,6 +30,8 @@ export interface MaintenanceOverview {
};
readonly storage: {
readonly databaseBytes: number;
/** SQLite file path; empty for in-memory databases. */
readonly databasePath: string;
/** Write-ahead log file size; 0 when the database is not in WAL mode. */
readonly walBytes: number;
/** Total size of the retained backup files. */
@@ -195,6 +197,7 @@ export class SystemMaintenanceService {
},
storage: {
databaseBytes: pageCount * pageSize,
databasePath: databaseFile,
walBytes,
backupBytes: await this.#backupBytes(),
reclaimableBytes: freelist * pageSize,