slopbrick 0.18.1 → 0.18.3

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.
package/dist/index.d.cts CHANGED
@@ -853,6 +853,23 @@ interface ProjectReport {
853
853
  /** Phase 2 §10: ruleId → subscore bucket, used by the composite formula.
854
854
  * Each issue contributes to exactly one bucket. */
855
855
  subscores?: Record<string, number>;
856
+ /** v0.18.2: project-level aggregate of the per-file Bayesian
857
+ * composite scores (worker.ts:98 produces them; previously dropped
858
+ * on the floor). The mean is the headline "is this codebase AI?"
859
+ * signal; max catches the single worst file. Informational, does
860
+ * not affect the 4 headline scores (those are deterministic).
861
+ *
862
+ * Kept optional for backward compat with existing fixtures. */
863
+ compositeScore?: {
864
+ /** Mean across all files that fired at least one rule. */
865
+ mean: number;
866
+ /** Highest per-file probability in the scan. */
867
+ max: number;
868
+ /** Confidence tier of the mean (per Jaeschke 1994 JAMA). */
869
+ tier: 'LIKELY_HUMAN' | 'INCONCLUSIVE' | 'LIKELY_AI' | 'VERY_LIKELY_AI';
870
+ /** Number of files that contributed a composite score. */
871
+ fileCount: number;
872
+ };
856
873
  /** Architecture Consistency Score (0-100). 100 = one modal system, one
857
874
  * button variant, one api client, one state lib, one fetch lib, no
858
875
  * off-scale values. Optional because it requires a deeper scan and
package/dist/index.d.ts CHANGED
@@ -853,6 +853,23 @@ interface ProjectReport {
853
853
  /** Phase 2 §10: ruleId → subscore bucket, used by the composite formula.
854
854
  * Each issue contributes to exactly one bucket. */
855
855
  subscores?: Record<string, number>;
856
+ /** v0.18.2: project-level aggregate of the per-file Bayesian
857
+ * composite scores (worker.ts:98 produces them; previously dropped
858
+ * on the floor). The mean is the headline "is this codebase AI?"
859
+ * signal; max catches the single worst file. Informational, does
860
+ * not affect the 4 headline scores (those are deterministic).
861
+ *
862
+ * Kept optional for backward compat with existing fixtures. */
863
+ compositeScore?: {
864
+ /** Mean across all files that fired at least one rule. */
865
+ mean: number;
866
+ /** Highest per-file probability in the scan. */
867
+ max: number;
868
+ /** Confidence tier of the mean (per Jaeschke 1994 JAMA). */
869
+ tier: 'LIKELY_HUMAN' | 'INCONCLUSIVE' | 'LIKELY_AI' | 'VERY_LIKELY_AI';
870
+ /** Number of files that contributed a composite score. */
871
+ fileCount: number;
872
+ };
856
873
  /** Architecture Consistency Score (0-100). 100 = one modal system, one
857
874
  * button variant, one api client, one state lib, one fetch lib, no
858
875
  * off-scale values. Optional because it requires a deeper scan and