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