midas-mcp 5.3.9 → 5.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.
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Reality Check Module
3
+ *
4
+ * Analyzes project docs to infer what requirements apply,
5
+ * categorizes them by what AI can/cannot do,
6
+ * and generates context-aware prompts for Cursor.
7
+ */
8
+ /**
9
+ * Three tiers of AI capability:
10
+ * - generatable: AI can draft the document, just needs human review
11
+ * - assistable: AI can help with checklist/guide, but needs professional verification
12
+ * - human_only: Requires real-world action (signup, purchase, certification)
13
+ */
14
+ export type RealityTier = 'generatable' | 'assistable' | 'human_only';
15
+ export interface RealityCheck {
16
+ key: string;
17
+ category: string;
18
+ tier: RealityTier;
19
+ headline: string;
20
+ explanation: string;
21
+ cursorPrompt: string;
22
+ humanSteps?: string[];
23
+ externalLinks?: string[];
24
+ alsoNeeded?: string[];
25
+ priority: 'critical' | 'high' | 'medium' | 'low';
26
+ }
27
+ export interface ProjectProfile {
28
+ collectsUserData: boolean;
29
+ collectsSensitiveData: boolean;
30
+ hasUnder13Users: boolean;
31
+ targetsEU: boolean;
32
+ targetsCalifornia: boolean;
33
+ hasPayments: boolean;
34
+ hasSubscriptions: boolean;
35
+ hasUserContent: boolean;
36
+ usesAI: boolean;
37
+ aiMakesDecisions: boolean;
38
+ isOpenSource: boolean;
39
+ targetAudience: string[];
40
+ businessModel: string;
41
+ industry: string[];
42
+ }
43
+ export interface RealityCheckResult {
44
+ profile: ProjectProfile;
45
+ checks: RealityCheck[];
46
+ summary: {
47
+ total: number;
48
+ critical: number;
49
+ generatable: number;
50
+ assistable: number;
51
+ humanOnly: number;
52
+ };
53
+ }
54
+ /**
55
+ * Infer project profile from brainlift, PRD, and package.json
56
+ */
57
+ export declare function inferProjectProfile(projectPath: string): ProjectProfile;
58
+ /**
59
+ * Get all applicable reality checks for a project
60
+ */
61
+ export declare function getRealityChecks(projectPath: string): RealityCheckResult;
62
+ /**
63
+ * AI-powered reality check filter
64
+ *
65
+ * Conservative defaults may miss edge cases. This AI pass:
66
+ * 1. Reviews the full project context
67
+ * 2. Filters out irrelevant checks (e.g., GDPR for US-only app)
68
+ * 3. Adds missing checks based on nuanced understanding
69
+ *
70
+ * Called only when API key is available, falls back to keyword-based otherwise.
71
+ */
72
+ export declare function filterChecksWithAI(profile: ProjectProfile, checks: RealityCheck[], projectPath: string): Promise<{
73
+ filtered: RealityCheck[];
74
+ additions: string[];
75
+ removals: string[];
76
+ }>;
77
+ /**
78
+ * Get reality checks with AI filtering (async version)
79
+ * Use this when you want the most accurate checks
80
+ */
81
+ export declare function getRealityChecksWithAI(projectPath: string): Promise<RealityCheckResult & {
82
+ aiFiltered: boolean;
83
+ }>;
84
+ /**
85
+ * Get tier symbol for display
86
+ */
87
+ export declare function getTierSymbol(tier: RealityTier): string;
88
+ /**
89
+ * Get tier description
90
+ */
91
+ export declare function getTierDescription(tier: RealityTier): string;
92
+ //# sourceMappingURL=reality.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reality.d.ts","sourceRoot":"","sources":["../src/reality.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAUH;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,YAAY,GAAG,YAAY,CAAC;AAEtE,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;CAClD;AAED,MAA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