@promptbook/cli 0.112.0-38 → 0.112.0-39

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Supported aggressiveness levels for refactor-candidate scanning.
3
3
  */
4
- export declare const REFACTOR_CANDIDATE_LEVEL_VALUES: readonly ["low", "medium", "high", "xhigh"];
4
+ export declare const REFACTOR_CANDIDATE_LEVEL_VALUES: readonly ["xlow", "low", "medium", "high", "xhigh", "extreme"];
5
5
  /**
6
6
  * Supported aggressiveness levels for refactor-candidate scanning.
7
7
  */
@@ -39,3 +39,7 @@ export declare const DEFAULT_REFACTOR_CANDIDATE_LEVEL: RefactorCandidateLevel;
39
39
  * Resolves the thresholds for a selected refactor-candidate scanning level.
40
40
  */
41
41
  export declare function getRefactorCandidateLevelConfiguration(level?: RefactorCandidateLevel): RefactorCandidateLevelConfiguration;
42
+ /**
43
+ * Resolves the user-facing description for a selected refactor-candidate scanning level.
44
+ */
45
+ export declare function getRefactorCandidateLevelDescription(level: RefactorCandidateLevel): string;
@@ -1,5 +1,6 @@
1
1
  import type { RefactorCandidate } from './RefactorCandidate';
2
2
  import type { RefactorCandidateLevelConfiguration } from './RefactorCandidateLevel';
3
+ import type { IsIgnoredRelativePath } from './resolveRefactorCandidateProject';
3
4
  /**
4
5
  * Input required to scan one project for refactor candidates.
5
6
  *
@@ -14,6 +15,10 @@ type FindRefactorCandidatesInProjectOptions = {
14
15
  * Thresholds used to score files.
15
16
  */
16
17
  readonly heuristics: RefactorCandidateLevelConfiguration;
18
+ /**
19
+ * Matcher for project-relative paths that should be skipped because they are matched by `.gitignore`.
20
+ */
21
+ readonly isIgnoredRelativePath?: IsIgnoredRelativePath;
17
22
  };
18
23
  /**
19
24
  * Scans the repository and returns all files that qualify as refactor candidates.
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Project-relative path matcher used to skip paths matched by `.gitignore`.
3
+ */
4
+ export type IsIgnoredRelativePath = (relativePath: string) => boolean;
5
+ /**
6
+ * Project metadata resolved before scanning for refactor candidates.
7
+ */
8
+ export type ResolvedRefactorCandidateProject = {
9
+ /**
10
+ * Absolute directory used as the scan root.
11
+ */
12
+ readonly rootDir: string;
13
+ /**
14
+ * Matcher used to skip project-relative paths covered by `.gitignore`.
15
+ */
16
+ readonly isIgnoredRelativePath: IsIgnoredRelativePath;
17
+ };
18
+ /**
19
+ * Resolves the project root and `.gitignore` matcher for refactor-candidate scanning.
20
+ *
21
+ * @private function of findRefactorCandidates
22
+ */
23
+ export declare function resolveRefactorCandidateProject(startDir: string): Promise<ResolvedRefactorCandidateProject>;
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
15
15
  export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
16
16
  /**
17
17
  * Represents the version string of the Promptbook engine.
18
- * It follows semantic versioning (e.g., `0.112.0-37`).
18
+ * It follows semantic versioning (e.g., `0.112.0-38`).
19
19
  *
20
20
  * @generated
21
21
  */