@promptbook/cli 0.112.0-39 → 0.112.0-40
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/esm/index.es.js +26 -26
- package/esm/index.es.js.map +1 -1
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +26 -26
- package/umd/index.umd.js.map +1 -1
- package/umd/src/version.d.ts +1 -1
package/esm/src/version.d.ts
CHANGED
|
@@ -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-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.112.0-39`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
* @generated
|
|
62
62
|
* @see https://github.com/webgptorg/promptbook
|
|
63
63
|
*/
|
|
64
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
64
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-40';
|
|
65
65
|
/**
|
|
66
66
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
67
67
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1746,46 +1746,46 @@
|
|
|
1746
1746
|
*/
|
|
1747
1747
|
const REFACTOR_CANDIDATE_LEVEL_DETAILS_BY_LEVEL = {
|
|
1748
1748
|
xlow: createRefactorCandidateLevelDetails({
|
|
1749
|
-
description: '
|
|
1750
|
-
maxLineCount:
|
|
1751
|
-
maxEntityCountPerFile:
|
|
1752
|
-
maxFunctionCountPerFile:
|
|
1753
|
-
maxFunctionComplexity:
|
|
1749
|
+
description: 'Extremely benevolent scan that flags only very obvious refactor targets.',
|
|
1750
|
+
maxLineCount: 9600,
|
|
1751
|
+
maxEntityCountPerFile: 72,
|
|
1752
|
+
maxFunctionCountPerFile: 48,
|
|
1753
|
+
maxFunctionComplexity: 40,
|
|
1754
1754
|
}),
|
|
1755
1755
|
low: createRefactorCandidateLevelDetails({
|
|
1756
1756
|
description: 'Conservative scan for only the most obvious refactor targets.',
|
|
1757
|
-
maxLineCount:
|
|
1758
|
-
maxEntityCountPerFile:
|
|
1759
|
-
maxFunctionCountPerFile:
|
|
1760
|
-
maxFunctionComplexity:
|
|
1757
|
+
maxLineCount: 3600,
|
|
1758
|
+
maxEntityCountPerFile: 30,
|
|
1759
|
+
maxFunctionCountPerFile: 20,
|
|
1760
|
+
maxFunctionComplexity: 24,
|
|
1761
1761
|
}),
|
|
1762
1762
|
medium: createRefactorCandidateLevelDetails({
|
|
1763
1763
|
description: 'Default scan using the current standard thresholds.',
|
|
1764
|
-
maxLineCount:
|
|
1765
|
-
maxEntityCountPerFile:
|
|
1766
|
-
maxFunctionCountPerFile:
|
|
1764
|
+
maxLineCount: 1800,
|
|
1765
|
+
maxEntityCountPerFile: 16,
|
|
1766
|
+
maxFunctionCountPerFile: 12,
|
|
1767
1767
|
maxFunctionComplexity: 16,
|
|
1768
1768
|
}),
|
|
1769
1769
|
high: createRefactorCandidateLevelDetails({
|
|
1770
1770
|
description: 'Strict scan that finds more crowded or complex files.',
|
|
1771
|
-
maxLineCount:
|
|
1772
|
-
maxEntityCountPerFile:
|
|
1773
|
-
maxFunctionCountPerFile:
|
|
1774
|
-
maxFunctionComplexity:
|
|
1771
|
+
maxLineCount: 900,
|
|
1772
|
+
maxEntityCountPerFile: 9,
|
|
1773
|
+
maxFunctionCountPerFile: 8,
|
|
1774
|
+
maxFunctionComplexity: 11,
|
|
1775
1775
|
}),
|
|
1776
1776
|
xhigh: createRefactorCandidateLevelDetails({
|
|
1777
1777
|
description: 'Very strict scan for denser and more complex candidates.',
|
|
1778
|
-
maxLineCount:
|
|
1779
|
-
maxEntityCountPerFile:
|
|
1780
|
-
maxFunctionCountPerFile:
|
|
1781
|
-
maxFunctionComplexity:
|
|
1778
|
+
maxLineCount: 450,
|
|
1779
|
+
maxEntityCountPerFile: 5,
|
|
1780
|
+
maxFunctionCountPerFile: 5,
|
|
1781
|
+
maxFunctionComplexity: 7,
|
|
1782
1782
|
}),
|
|
1783
1783
|
extreme: createRefactorCandidateLevelDetails({
|
|
1784
|
-
description: 'Most aggressive scan that
|
|
1785
|
-
maxLineCount:
|
|
1786
|
-
maxEntityCountPerFile:
|
|
1787
|
-
maxFunctionCountPerFile:
|
|
1788
|
-
maxFunctionComplexity:
|
|
1784
|
+
description: 'Most aggressive scan that surfaces even weak refactor opportunities.',
|
|
1785
|
+
maxLineCount: 180,
|
|
1786
|
+
maxEntityCountPerFile: 2,
|
|
1787
|
+
maxFunctionCountPerFile: 2,
|
|
1788
|
+
maxFunctionComplexity: 4,
|
|
1789
1789
|
}),
|
|
1790
1790
|
};
|
|
1791
1791
|
/**
|