@kl-c/matrixos 0.2.1 → 0.2.6

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.
@@ -0,0 +1,53 @@
1
+ /**
2
+ * A2 — Auto-audit hebdomadaire
3
+ *
4
+ * Génère un rapport de performance basé sur le Task Ledger et les signaux du
5
+ * Scanner. Stocké dans .matrixos/audits/YYYY-WXX.md.
6
+ */
7
+ export interface AuditTask {
8
+ readonly id: string;
9
+ readonly title: string;
10
+ readonly status: "done" | "failed" | "in-progress" | "blocked" | string;
11
+ readonly project?: string;
12
+ readonly errorCount?: number;
13
+ }
14
+ export interface AuditSignal {
15
+ readonly type: "error" | "timeout" | "validation" | "feedback";
16
+ readonly message: string;
17
+ readonly project?: string;
18
+ readonly count?: number;
19
+ }
20
+ export interface WeeklyAuditReport {
21
+ readonly week: string;
22
+ readonly period: {
23
+ from: string;
24
+ to: string;
25
+ };
26
+ readonly summary: {
27
+ total: number;
28
+ done: number;
29
+ failed: number;
30
+ inProgress: number;
31
+ blocked: number;
32
+ };
33
+ readonly byProject: Record<string, {
34
+ done: number;
35
+ failed: number;
36
+ blocked: number;
37
+ }>;
38
+ readonly topErrors: AuditSignal[];
39
+ readonly recommendations: string[];
40
+ }
41
+ export declare function getAuditDir(cwd?: string): string;
42
+ export declare function getWeekString(date?: Date): string;
43
+ export declare function parseWeekDateRange(weekStr: string): {
44
+ from: string;
45
+ to: string;
46
+ };
47
+ export declare function generateAuditReport(tasks: AuditTask[], signals: AuditSignal[], weekStr?: string): WeeklyAuditReport;
48
+ export declare function formatAuditReport(report: WeeklyAuditReport): string;
49
+ export declare function writeAuditReport(report: WeeklyAuditReport, cwd?: string): string;
50
+ export declare function loadLatestAuditReport(cwd?: string): {
51
+ path: string;
52
+ content: string;
53
+ } | null;