@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.
@@ -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-38`).
18
+ * It follows semantic versioning (e.g., `0.112.0-39`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/cli",
3
- "version": "0.112.0-39",
3
+ "version": "0.112.0-40",
4
4
  "description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
5
5
  "private": false,
6
6
  "sideEffects": false,
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-39';
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: 'Very benevolent scan that only flags the most obvious refactor targets.',
1750
- maxLineCount: 4200,
1751
- maxEntityCountPerFile: 36,
1752
- maxFunctionCountPerFile: 24,
1753
- maxFunctionComplexity: 24,
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: 2800,
1758
- maxEntityCountPerFile: 28,
1759
- maxFunctionCountPerFile: 18,
1760
- maxFunctionComplexity: 20,
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: 2000,
1765
- maxEntityCountPerFile: 20,
1766
- maxFunctionCountPerFile: 14,
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: 1400,
1772
- maxEntityCountPerFile: 15,
1773
- maxFunctionCountPerFile: 10,
1774
- maxFunctionComplexity: 12,
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: 900,
1779
- maxEntityCountPerFile: 10,
1780
- maxFunctionCountPerFile: 7,
1781
- maxFunctionComplexity: 8,
1778
+ maxLineCount: 450,
1779
+ maxEntityCountPerFile: 5,
1780
+ maxFunctionCountPerFile: 5,
1781
+ maxFunctionComplexity: 7,
1782
1782
  }),
1783
1783
  extreme: createRefactorCandidateLevelDetails({
1784
- description: 'Most aggressive scan that also surfaces weaker refactor opportunities.',
1785
- maxLineCount: 600,
1786
- maxEntityCountPerFile: 6,
1787
- maxFunctionCountPerFile: 4,
1788
- maxFunctionComplexity: 6,
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
  /**