@letsrunit/executor 0.10.0 → 0.11.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.
package/dist/index.d.ts CHANGED
@@ -6,6 +6,35 @@ import { RequiredAndOptional } from '@letsrunit/utils';
6
6
 
7
7
  declare function refineSuggestion(suggestion: string | Pick<Feature, 'name' | 'description' | 'comments'>): Promise<Required<Pick<Feature, 'name' | 'description' | 'comments'>>>;
8
8
 
9
+ interface ExplainOptions {
10
+ dbPath?: string;
11
+ artifactsDir?: string;
12
+ }
13
+ interface ExplainScenario {
14
+ scenarioId: string;
15
+ scenarioName: string;
16
+ featurePath: string;
17
+ steps: string;
18
+ failureMessage: string;
19
+ update: 'test' | 'code';
20
+ updateMessage: string;
21
+ reason: string;
22
+ advice: string;
23
+ }
24
+ interface ExplainScenarioError {
25
+ scenarioId: string;
26
+ scenarioName: string;
27
+ featurePath: string;
28
+ error: string;
29
+ }
30
+ interface ExplainResult {
31
+ hasRun: boolean;
32
+ totalFailed: number;
33
+ explanations: ExplainScenario[];
34
+ errors: ExplainScenarioError[];
35
+ }
36
+ declare function explain(options?: ExplainOptions): Promise<ExplainResult>;
37
+
9
38
  declare const ActionSchema: z.ZodObject<{
10
39
  name: z.ZodString;
11
40
  description: z.ZodString;
@@ -63,4 +92,4 @@ interface GenerateOptions {
63
92
  }
64
93
  declare function run(target: string, feature: Feature | string, opts?: GenerateOptions): Promise<Result>;
65
94
 
66
- export { type PreparedAction as Action, ActionSchema, type AppInfo, type Assessment, AssessmentSchema, type Result, explore, generate, refineSuggestion, run };
95
+ export { type PreparedAction as Action, ActionSchema, type AppInfo, type Assessment, AssessmentSchema, type ExplainResult, type Result, explain, explore, generate, refineSuggestion, run };