@utilix-tech/sdk 0.32.0 → 0.33.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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Full release notes for all Utilix surfaces (browser tools, REST API, SDKs, MCP server) live at [utilix.tech/changelog](https://utilix.tech/changelog). This file tracks just this package.
4
4
 
5
+ ## 0.33.0
6
+ - Add `lintConventionalCommit` (conventional-commit-linter): lint a git commit message against the Conventional Commits v1.0.0 spec, checking header format, blank-line separation, footer tokens, and BREAKING CHANGE casing.
7
+ - Add `calculateSavingsGoal` (savings-goal-calculator): solve for months to reach a savings goal at a fixed monthly contribution, or the monthly contribution required to hit a goal by a target month count.
8
+
5
9
  ## 0.32.0
6
10
  - Add `analyzeSentenceLengths` (sentence-length-distribution): histogram of sentence lengths in words, plus mean, median, standard deviation, and a coefficient-of-variation consistency label, distinct from readability grade scores.
7
11
  - Add `formatFewShotExamples` (few-shot-formatter): format input/output example pairs into a numbered, XML-tagged, or delimiter-separated few-shot prompt template.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @utilix-tech/sdk
2
2
 
3
- **585 developer utility functions for Node.js: runs locally, no API key required.**
3
+ **590 developer utility functions for Node.js: runs locally, no API key required.**
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@utilix-tech/sdk?style=flat-square&color=cb3837)](https://www.npmjs.com/package/@utilix-tech/sdk)
6
6
  [![npm downloads](https://img.shields.io/npm/dm/@utilix-tech/sdk?style=flat-square)](https://www.npmjs.com/package/@utilix-tech/sdk)
@@ -662,10 +662,10 @@ readVideoInfo(new Uint8Array(videoBytes));
662
662
  | `@utilix-tech/sdk/data` | CSV, YAML, TOML, XML, INI, NDJSON parse and convert, SRT/WebVTT subtitles, Markdown front matter parser |
663
663
  | `@utilix-tech/sdk/generators` | UUID v4/v7, ULID, passwords, strength check, entropy estimator, fake data |
664
664
  | `@utilix-tech/sdk/time` | Date diff, timezone convert, cron parse, relative time |
665
- | `@utilix-tech/sdk/units` | Bytes, CSS px/rem, number bases, currency format, credit card/IBAN/barcode/ISBN validation, loan calculator, EMI calculator, compound/simple interest calculators, VAT/sales tax calculator, tip/bill split calculator, break-even point calculator, Rule of 72 calculator |
665
+ | `@utilix-tech/sdk/units` | Bytes, CSS px/rem, number bases, currency format, credit card/IBAN/barcode/ISBN validation, loan calculator, EMI calculator, compound/simple interest calculators, VAT/sales tax calculator, tip/bill split calculator, break-even point calculator, Rule of 72 calculator, savings goal calculator |
666
666
  | `@utilix-tech/sdk/network` | HTTP status codes, IP validation, country flags, geolocation URLs, HAR file parsing, User-Agent parsing, IPv6 address compress/expand |
667
667
  | `@utilix-tech/sdk/api` | cURL build/parse, JWT decode/sign, JWKS parse, CORS headers, CSP header |
668
- | `@utilix-tech/sdk/code` | SQL format/minify, HTML format/minify, regex tester, GraphQL format, MIME type lookup, GitHub URL parsing |
668
+ | `@utilix-tech/sdk/code` | SQL format/minify, HTML format/minify, regex tester, GraphQL format, MIME type lookup, GitHub URL parsing, regex ReDoS detector, Conventional Commits linter |
669
669
  | `@utilix-tech/sdk/color` | Hex/RGB/HSL/HSV/CMYK convert, palette generation, contrast check |
670
670
  | `@utilix-tech/sdk/css` | CSS gradient, box-shadow, border-radius, keyframe animation generators |
671
671
  | `@utilix-tech/sdk/misc` | SVG optimize/sanitize, file size format, Unicode inspector |
@@ -6,6 +6,7 @@ var code_exports = {};
6
6
  __export(code_exports, {
7
7
  ALL_FLAGS: () => ALL_FLAGS,
8
8
  CHEATSHEET: () => CHEATSHEET,
9
+ DEFAULT_COMMIT_TYPES: () => DEFAULT_COMMIT_TYPES,
9
10
  MIME_TABLE: () => MIME_TABLE,
10
11
  OPERATIONS: () => OPERATIONS,
11
12
  SQL_DEFAULT_OPTIONS: () => SQL_DEFAULT_OPTIONS,
@@ -30,6 +31,7 @@ __export(code_exports, {
30
31
  getJsStats: () => getJsStats,
31
32
  getMethodColor: () => getMethodColor,
32
33
  isValidTag: () => isValidTag,
34
+ lintConventionalCommit: () => lintConventionalCommit,
33
35
  lookupMime: () => lookupMime,
34
36
  minifyCss: () => minifyCss,
35
37
  minifyGql: () => minifyGql,
@@ -2740,5 +2742,123 @@ function detectRedos(pattern) {
2740
2742
  findings: unique
2741
2743
  };
2742
2744
  }
2745
+ var DEFAULT_COMMIT_TYPES = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test"];
2746
+ var _DEFAULT_MAX_HEADER_LENGTH = 100;
2747
+ var _COMMIT_HEADER_RE = /^([A-Za-z][A-Za-z0-9-]*)(\(([^()]*)\))?(!)?: (.+)$/;
2748
+ var _COMMIT_FOOTER_LINE_RE = /^([A-Za-z][A-Za-z0-9-]*|BREAKING CHANGE)(: ?| #)(.*)$/;
2749
+ var _COMMIT_BREAKING_LOOKALIKE_RE = /^([A-Za-z][A-Za-z -]*?)(: | #)(.*)$/;
2750
+ var _COMMIT_BREAKING_TOKEN_RE = /^breaking[- ]change$/i;
2751
+ function lintConventionalCommit(message, options = {}) {
2752
+ if (typeof message !== "string" || message.trim() === "") {
2753
+ return { error: "message is required" };
2754
+ }
2755
+ if (message.length > 2e4) {
2756
+ return { error: "message too long (max 20,000 chars)" };
2757
+ }
2758
+ const types = options.types && options.types.length > 0 ? options.types : DEFAULT_COMMIT_TYPES;
2759
+ const maxHeaderLength = options.maxHeaderLength ?? _DEFAULT_MAX_HEADER_LENGTH;
2760
+ const findings = [];
2761
+ const lines = message.replace(/\r\n/g, "\n").split("\n");
2762
+ const header = lines[0];
2763
+ const match = header.match(_COMMIT_HEADER_RE);
2764
+ const parsed = {
2765
+ header,
2766
+ type: null,
2767
+ scope: null,
2768
+ breaking: false,
2769
+ description: null,
2770
+ body: null,
2771
+ footers: []
2772
+ };
2773
+ if (!match) {
2774
+ findings.push({
2775
+ rule: "header-format",
2776
+ severity: "error",
2777
+ message: "Header must match '<type>[(scope)][!]: <description>', e.g. 'feat(auth): add OAuth2 login'. A single space must follow the colon."
2778
+ });
2779
+ return { message, valid: false, parsed, findings };
2780
+ }
2781
+ const [, type, scopeGroup, scope, bang, description] = match;
2782
+ parsed.type = type;
2783
+ if (scopeGroup !== void 0) {
2784
+ const scopeContent = (scope ?? "").trim();
2785
+ if (scopeContent === "") {
2786
+ findings.push({ rule: "scope-empty", severity: "error", message: "Scope parentheses are present but empty; either remove the parentheses or put a scope inside them, e.g. fix(parser):." });
2787
+ } else {
2788
+ parsed.scope = scopeContent;
2789
+ }
2790
+ }
2791
+ const trimmedDescription = description.trim();
2792
+ if (trimmedDescription === "") {
2793
+ findings.push({ rule: "subject-empty", severity: "error", message: "The description after the colon must not be empty." });
2794
+ } else {
2795
+ parsed.description = trimmedDescription;
2796
+ if (trimmedDescription.endsWith(".")) {
2797
+ findings.push({ rule: "subject-full-stop", severity: "warning", message: "The description should not end with a period." });
2798
+ }
2799
+ }
2800
+ if (!types.includes(type.toLowerCase())) {
2801
+ findings.push({
2802
+ rule: "type-unknown",
2803
+ severity: "warning",
2804
+ message: `'${type}' is not one of the recognized types (${types.join(", ")}). This is only a convention, not a spec requirement, so a custom type is fine if your team has agreed on it.`
2805
+ });
2806
+ }
2807
+ if (type !== type.toLowerCase()) {
2808
+ findings.push({ rule: "type-case", severity: "warning", message: "The type is conventionally lower-case. The spec itself is not case-sensitive about this, but nearly every tool and team defaults to lower-case." });
2809
+ }
2810
+ if (header.length > maxHeaderLength) {
2811
+ findings.push({ rule: "header-max-length", severity: "warning", message: `Header is ${header.length} characters, longer than the recommended maximum of ${maxHeaderLength}.` });
2812
+ }
2813
+ let breaking = bang === "!";
2814
+ if (lines.length > 1) {
2815
+ if (lines[1].trim() !== "") {
2816
+ findings.push({ rule: "missing-blank-line-before-body", severity: "error", message: "A blank line must separate the header from the body or footer." });
2817
+ }
2818
+ const rest = lines.slice(1).join("\n");
2819
+ const paragraphs = rest.split(/\n{2,}/).map((p) => p.trim()).filter((p) => p !== "");
2820
+ let footerParagraph = null;
2821
+ if (paragraphs.length > 0) {
2822
+ const last = paragraphs[paragraphs.length - 1];
2823
+ const lastLines = last.split("\n");
2824
+ if (lastLines.every((l) => _COMMIT_FOOTER_LINE_RE.test(l.trim()))) {
2825
+ footerParagraph = last;
2826
+ paragraphs.pop();
2827
+ }
2828
+ }
2829
+ parsed.body = paragraphs.length > 0 ? paragraphs.join("\n\n") : null;
2830
+ if (footerParagraph) {
2831
+ for (const line of footerParagraph.split("\n")) {
2832
+ const fm = line.trim().match(_COMMIT_FOOTER_LINE_RE);
2833
+ if (!fm) continue;
2834
+ const [, token, , value] = fm;
2835
+ parsed.footers.push({ token, value: value.trim() });
2836
+ }
2837
+ }
2838
+ for (const f of parsed.footers) {
2839
+ if (_COMMIT_BREAKING_TOKEN_RE.test(f.token) && f.token !== "BREAKING CHANGE" && f.token !== "BREAKING-CHANGE") {
2840
+ findings.push({ rule: "breaking-change-casing", severity: "error", message: `Found '${f.token}:' as a footer, but the spec requires the breaking-change token to be exactly 'BREAKING CHANGE' or 'BREAKING-CHANGE' (uppercase).` });
2841
+ }
2842
+ }
2843
+ for (const p of paragraphs) {
2844
+ for (const line of p.split("\n")) {
2845
+ const bm = line.trim().match(_COMMIT_BREAKING_LOOKALIKE_RE);
2846
+ if (bm && _COMMIT_BREAKING_TOKEN_RE.test(bm[1]) && bm[1] !== "BREAKING CHANGE") {
2847
+ findings.push({ rule: "breaking-change-casing", severity: "error", message: `Found '${bm[1]}' near the end of the message, but it wasn't recognized as a breaking-change footer. The spec requires the exact uppercase token 'BREAKING CHANGE' (or 'BREAKING-CHANGE'), immediately followed by ': '.` });
2848
+ }
2849
+ }
2850
+ }
2851
+ }
2852
+ const breakingFooter = parsed.footers.find((f) => f.token === "BREAKING CHANGE" || f.token === "BREAKING-CHANGE");
2853
+ if (breakingFooter) {
2854
+ breaking = true;
2855
+ if (breakingFooter.value === "") {
2856
+ findings.push({ rule: "breaking-change-empty", severity: "error", message: "A 'BREAKING CHANGE:' footer must be followed by a description of the breaking change." });
2857
+ }
2858
+ }
2859
+ parsed.breaking = breaking;
2860
+ const valid = !findings.some((f) => f.severity === "error");
2861
+ return { message, valid, parsed, findings };
2862
+ }
2743
2863
 
2744
- export { ALL_FLAGS, CHEATSHEET, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, buildDockerPull, buildDockerRun, buildGitCommand, code_exports, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testPattern, testRegex, validateEnvKey };
2864
+ export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, buildDockerPull, buildDockerRun, buildGitCommand, code_exports, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testPattern, testRegex, validateEnvKey };
@@ -27,6 +27,7 @@ __export(units_exports, {
27
27
  calculateMarginMarkup: () => calculateMarginMarkup,
28
28
  calculatePercentageChange: () => calculatePercentageChange,
29
29
  calculateRuleOf72: () => calculateRuleOf72,
30
+ calculateSavingsGoal: () => calculateSavingsGoal,
30
31
  calculateSimpleInterest: () => calculateSimpleInterest,
31
32
  calculateTax: () => calculateTax,
32
33
  calculateTimeValue: () => calculateTimeValue,
@@ -1732,5 +1733,81 @@ function calculateEmi(principal, annualRatePercent, tenure, tenureUnit = "years"
1732
1733
  yearlyBreakdown
1733
1734
  };
1734
1735
  }
1736
+ function calculateSavingsGoal(input) {
1737
+ const { mode, goalAmount, currentSavings, annualInterestRatePercent, monthlyContribution, months } = input;
1738
+ if (mode !== "time-to-goal" && mode !== "contribution-for-target") {
1739
+ return { error: "mode must be 'time-to-goal' or 'contribution-for-target'" };
1740
+ }
1741
+ if (!Number.isFinite(goalAmount) || goalAmount <= 0) return { error: "goalAmount must be a finite number greater than zero" };
1742
+ if (!Number.isFinite(currentSavings) || currentSavings < 0) return { error: "currentSavings must be a finite, non-negative number" };
1743
+ if (!Number.isFinite(annualInterestRatePercent) || annualInterestRatePercent < 0) {
1744
+ return { error: "annualInterestRatePercent must be a finite, non-negative number" };
1745
+ }
1746
+ const round4 = (n) => Math.round(n * 1e4) / 1e4;
1747
+ const r = annualInterestRatePercent / 100 / 12;
1748
+ if (mode === "time-to-goal") {
1749
+ if (typeof monthlyContribution !== "number" || !Number.isFinite(monthlyContribution) || monthlyContribution < 0) {
1750
+ return { error: "monthlyContribution must be a finite, non-negative number" };
1751
+ }
1752
+ let exactMonths;
1753
+ if (currentSavings >= goalAmount) {
1754
+ exactMonths = 0;
1755
+ } else if (monthlyContribution === 0) {
1756
+ if (r === 0) return { error: "monthlyContribution must be greater than zero when annualInterestRatePercent is zero, since savings would never grow toward the goal" };
1757
+ if (currentSavings <= 0) return { error: "monthlyContribution must be greater than zero when currentSavings is zero, since there is nothing to compound" };
1758
+ exactMonths = Math.log(goalAmount / currentSavings) / Math.log(1 + r);
1759
+ } else if (r === 0) {
1760
+ exactMonths = (goalAmount - currentSavings) / monthlyContribution;
1761
+ } else {
1762
+ const denom = currentSavings + monthlyContribution / r;
1763
+ const x = (goalAmount + monthlyContribution / r) / denom;
1764
+ exactMonths = Math.log(x) / Math.log(1 + r);
1765
+ }
1766
+ const monthsRounded = Math.max(0, Math.ceil(exactMonths));
1767
+ const finalBalance = r === 0 ? currentSavings + monthlyContribution * monthsRounded : currentSavings * Math.pow(1 + r, monthsRounded) + monthlyContribution * ((Math.pow(1 + r, monthsRounded) - 1) / r);
1768
+ const totalContributed2 = monthlyContribution * monthsRounded;
1769
+ const totalInterestEarned2 = finalBalance - currentSavings - totalContributed2;
1770
+ return {
1771
+ mode,
1772
+ goalAmount: round4(goalAmount),
1773
+ currentSavings: round4(currentSavings),
1774
+ annualInterestRatePercent: round4(annualInterestRatePercent),
1775
+ monthlyContribution: round4(monthlyContribution),
1776
+ months: round4(exactMonths),
1777
+ monthsRounded,
1778
+ years: round4(monthsRounded / 12),
1779
+ totalContributed: round4(totalContributed2),
1780
+ totalInterestEarned: round4(totalInterestEarned2),
1781
+ finalBalance: round4(finalBalance)
1782
+ };
1783
+ }
1784
+ if (typeof months !== "number" || !Number.isFinite(months) || !Number.isInteger(months) || months <= 0) {
1785
+ return { error: "months must be a positive integer" };
1786
+ }
1787
+ const growthOfCurrentSavings = r === 0 ? currentSavings : currentSavings * Math.pow(1 + r, months);
1788
+ let requiredMonthlyContribution;
1789
+ if (growthOfCurrentSavings >= goalAmount) {
1790
+ requiredMonthlyContribution = 0;
1791
+ } else if (r === 0) {
1792
+ requiredMonthlyContribution = (goalAmount - currentSavings) / months;
1793
+ } else {
1794
+ requiredMonthlyContribution = (goalAmount - growthOfCurrentSavings) * r / (Math.pow(1 + r, months) - 1);
1795
+ }
1796
+ const totalContributed = requiredMonthlyContribution * months;
1797
+ const totalInterestEarned = goalAmount - currentSavings - totalContributed;
1798
+ return {
1799
+ mode,
1800
+ goalAmount: round4(goalAmount),
1801
+ currentSavings: round4(currentSavings),
1802
+ annualInterestRatePercent: round4(annualInterestRatePercent),
1803
+ monthlyContribution: round4(requiredMonthlyContribution),
1804
+ months,
1805
+ monthsRounded: months,
1806
+ years: round4(months / 12),
1807
+ totalContributed: round4(totalContributed),
1808
+ totalInterestEarned: round4(totalInterestEarned),
1809
+ finalBalance: round4(goalAmount)
1810
+ };
1811
+ }
1735
1812
 
1736
- export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateBreakEven, calculateCompoundInterest, calculateDiscount, calculateEmi, calculateLoan, calculateMarginMarkup, calculatePercentageChange, calculateRuleOf72, calculateSimpleInterest, calculateTax, calculateTimeValue, calculateTipSplit, calculateVideoBitrate, compareSemver, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, units_exports, validateBarcode, validateCardNumber, validateIban, validateIsbn, viewportToPx };
1813
+ export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateBreakEven, calculateCompoundInterest, calculateDiscount, calculateEmi, calculateLoan, calculateMarginMarkup, calculatePercentageChange, calculateRuleOf72, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTimeValue, calculateTipSplit, calculateVideoBitrate, compareSemver, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, units_exports, validateBarcode, validateCardNumber, validateIban, validateIsbn, viewportToPx };
@@ -20,6 +20,7 @@
20
20
  * - mime-lookup (lookupMime, MIME_TABLE)
21
21
  * - github-url-parser (parseGithubUrl)
22
22
  * - redos-detector (detectRedos)
23
+ * - conventional-commit-linter (lintConventionalCommit)
23
24
  */
24
25
  type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
25
26
  declare const ALL_FLAGS: RegexFlag[];
@@ -334,13 +335,60 @@ interface RedosResult {
334
335
  declare function detectRedos(pattern: string): RedosResult | {
335
336
  error: string;
336
337
  };
338
+ type ConventionalCommitSeverity = 'error' | 'warning';
339
+ interface ConventionalCommitFinding {
340
+ rule: string;
341
+ severity: ConventionalCommitSeverity;
342
+ message: string;
343
+ }
344
+ interface ConventionalCommitFooter {
345
+ token: string;
346
+ value: string;
347
+ }
348
+ interface ConventionalCommitParsed {
349
+ header: string;
350
+ type: string | null;
351
+ scope: string | null;
352
+ breaking: boolean;
353
+ description: string | null;
354
+ body: string | null;
355
+ footers: ConventionalCommitFooter[];
356
+ }
357
+ interface ConventionalCommitOptions {
358
+ types?: string[];
359
+ maxHeaderLength?: number;
360
+ }
361
+ interface ConventionalCommitResult {
362
+ message: string;
363
+ valid: boolean;
364
+ parsed: ConventionalCommitParsed;
365
+ findings: ConventionalCommitFinding[];
366
+ }
367
+ declare const DEFAULT_COMMIT_TYPES: string[];
368
+ /**
369
+ * Lint a commit message against the Conventional Commits v1.0.0 spec. Pass
370
+ * the full message (header, optional blank line, optional body, optional
371
+ * footers). Returns the parsed type/scope/description/body/footers plus a
372
+ * list of findings; `valid` is true iff there are no error-severity findings.
373
+ * This is a heuristic linter: multi-line footer values are not supported.
374
+ */
375
+ declare function lintConventionalCommit(message: string, options?: ConventionalCommitOptions): ConventionalCommitResult | {
376
+ error: string;
377
+ };
337
378
 
338
379
  declare const code_ALL_FLAGS: typeof ALL_FLAGS;
339
380
  type code_ApiEndpoint = ApiEndpoint;
340
381
  type code_ApiInfo = ApiInfo;
341
382
  declare const code_CHEATSHEET: typeof CHEATSHEET;
342
383
  type code_CheatsheetEntry = CheatsheetEntry;
384
+ type code_ConventionalCommitFinding = ConventionalCommitFinding;
385
+ type code_ConventionalCommitFooter = ConventionalCommitFooter;
386
+ type code_ConventionalCommitOptions = ConventionalCommitOptions;
387
+ type code_ConventionalCommitParsed = ConventionalCommitParsed;
388
+ type code_ConventionalCommitResult = ConventionalCommitResult;
389
+ type code_ConventionalCommitSeverity = ConventionalCommitSeverity;
343
390
  type code_CssResult = CssResult;
391
+ declare const code_DEFAULT_COMMIT_TYPES: typeof DEFAULT_COMMIT_TYPES;
344
392
  type code_DockerImageRef = DockerImageRef;
345
393
  type code_EnvEntry = EnvEntry;
346
394
  type code_EnvParseResult = EnvParseResult;
@@ -396,6 +444,7 @@ declare const code_getHtmlStats: typeof getHtmlStats;
396
444
  declare const code_getJsStats: typeof getJsStats;
397
445
  declare const code_getMethodColor: typeof getMethodColor;
398
446
  declare const code_isValidTag: typeof isValidTag;
447
+ declare const code_lintConventionalCommit: typeof lintConventionalCommit;
399
448
  declare const code_lookupMime: typeof lookupMime;
400
449
  declare const code_minifyCss: typeof minifyCss;
401
450
  declare const code_minifyGql: typeof minifyGql;
@@ -420,7 +469,7 @@ declare const code_testPattern: typeof testPattern;
420
469
  declare const code_testRegex: typeof testRegex;
421
470
  declare const code_validateEnvKey: typeof validateEnvKey;
422
471
  declare namespace code {
423
- export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_CssResult as CssResult, type code_DockerImageRef as DockerImageRef, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_TestPatternResult as TestPatternResult, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_formatCss as formatCss, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_lookupMime as lookupMime, code_minifyCss as minifyCss, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseGithubUrl as parseGithubUrl, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEnvKey as validateEnvKey };
472
+ export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DockerImageRef as DockerImageRef, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_TestPatternResult as TestPatternResult, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_formatCss as formatCss, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseGithubUrl as parseGithubUrl, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEnvKey as validateEnvKey };
424
473
  }
425
474
 
426
- export { formatCss as $, ALL_FLAGS as A, type SqlDialect as B, CHEATSHEET as C, type DockerImageRef as D, type EnvEntry as E, type SqlFormatOptions as F, type GitCommandConfig as G, type HtmlFormatResult as H, buildDockerPull as I, type JsMinifyOptions as J, buildDockerRun as K, buildGitCommand as L, MIME_TABLE as M, collapseHtmlWhitespace as N, OPERATIONS as O, type ParsedSpec as P, collapseJsWhitespace as Q, type RedosFinding as R, SQL_DEFAULT_OPTIONS as S, type TestPatternResult as T, countProperties as U, countRules as V, detectDialect as W, detectOperationType as X, detectRedos as Y, envToExport as Z, envToJson as _, type ApiEndpoint as a, formatGql as a0, formatHtml as a1, formatSql as a2, getEndpointsByTag as a3, getHtmlStats as a4, getJsStats as a5, getMethodColor as a6, isValidTag as a7, lookupMime as a8, minifyCss as a9, minifyGql as aa, minifyHtml as ab, minifyJs as ac, minifySql as ad, normalizeRef as ae, parseDockerImage as af, parseEnv as ag, parseGitCommand as ah, parseGithubUrl as ai, parseSpec as aj, removeConsoleCalls as ak, removeEmptyAttributes as al, removeHtmlComments as am, removeJsComments as an, removeRedundantAttributes as ao, searchCheatsheet as ap, searchEndpoints as aq, splitStatements as ar, testPattern as as, testRegex as at, validateEnvKey as au, type ApiInfo as b, code as c, type CheatsheetEntry as d, type CssResult as e, type EnvParseResult as f, type GitCommandResult as g, type GitOperation as h, type GithubUrlInfo as i, type GithubUrlType as j, type GqlFormatResult as k, type HtmlMinifyOptions as l, type HtmlMinifyResult as m, type JsMinifyResult as n, type MatchResult as o, type MimeEntry as p, type MimeLookupResult as q, type RedosResult as r, type RedosSeverity as s, type RegexError as t, type RegexFlag as u, type RegexMatch as v, type RegexResult as w, type RegexSuccess as x, type Segment as y, type SpecVersion as z };
475
+ export { countProperties as $, ALL_FLAGS as A, type RegexError as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type EnvEntry as E, type RegexFlag as F, type GitCommandConfig as G, type HtmlFormatResult as H, type RegexMatch as I, type JsMinifyOptions as J, type RegexResult as K, type RegexSuccess as L, MIME_TABLE as M, type Segment as N, OPERATIONS as O, type ParsedSpec as P, type SpecVersion as Q, type RedosFinding as R, SQL_DEFAULT_OPTIONS as S, type SqlDialect as T, type SqlFormatOptions as U, type TestPatternResult as V, buildDockerPull as W, buildDockerRun as X, buildGitCommand as Y, collapseHtmlWhitespace as Z, collapseJsWhitespace as _, type ApiEndpoint as a, countRules as a0, detectDialect as a1, detectOperationType as a2, detectRedos as a3, envToExport as a4, envToJson as a5, formatCss as a6, formatGql as a7, formatHtml as a8, formatSql as a9, testPattern as aA, testRegex as aB, validateEnvKey as aC, getEndpointsByTag as aa, getHtmlStats as ab, getJsStats as ac, getMethodColor as ad, isValidTag as ae, lintConventionalCommit as af, lookupMime as ag, minifyCss as ah, minifyGql as ai, minifyHtml as aj, minifyJs as ak, minifySql as al, normalizeRef as am, parseDockerImage as an, parseEnv as ao, parseGitCommand as ap, parseGithubUrl as aq, parseSpec as ar, removeConsoleCalls as as, removeEmptyAttributes as at, removeHtmlComments as au, removeJsComments as av, removeRedundantAttributes as aw, searchCheatsheet as ax, searchEndpoints as ay, splitStatements as az, type ApiInfo as b, code as c, type CheatsheetEntry as d, type ConventionalCommitFinding as e, type ConventionalCommitFooter as f, type ConventionalCommitOptions as g, type ConventionalCommitParsed as h, type ConventionalCommitResult as i, type ConventionalCommitSeverity as j, type CssResult as k, type DockerImageRef as l, type EnvParseResult as m, type GitCommandResult as n, type GitOperation as o, type GithubUrlInfo as p, type GithubUrlType as q, type GqlFormatResult as r, type HtmlMinifyOptions as s, type HtmlMinifyResult as t, type JsMinifyResult as u, type MatchResult as v, type MimeEntry as w, type MimeLookupResult as x, type RedosResult as y, type RedosSeverity as z };
@@ -20,6 +20,7 @@
20
20
  * - mime-lookup (lookupMime, MIME_TABLE)
21
21
  * - github-url-parser (parseGithubUrl)
22
22
  * - redos-detector (detectRedos)
23
+ * - conventional-commit-linter (lintConventionalCommit)
23
24
  */
24
25
  type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
25
26
  declare const ALL_FLAGS: RegexFlag[];
@@ -334,13 +335,60 @@ interface RedosResult {
334
335
  declare function detectRedos(pattern: string): RedosResult | {
335
336
  error: string;
336
337
  };
338
+ type ConventionalCommitSeverity = 'error' | 'warning';
339
+ interface ConventionalCommitFinding {
340
+ rule: string;
341
+ severity: ConventionalCommitSeverity;
342
+ message: string;
343
+ }
344
+ interface ConventionalCommitFooter {
345
+ token: string;
346
+ value: string;
347
+ }
348
+ interface ConventionalCommitParsed {
349
+ header: string;
350
+ type: string | null;
351
+ scope: string | null;
352
+ breaking: boolean;
353
+ description: string | null;
354
+ body: string | null;
355
+ footers: ConventionalCommitFooter[];
356
+ }
357
+ interface ConventionalCommitOptions {
358
+ types?: string[];
359
+ maxHeaderLength?: number;
360
+ }
361
+ interface ConventionalCommitResult {
362
+ message: string;
363
+ valid: boolean;
364
+ parsed: ConventionalCommitParsed;
365
+ findings: ConventionalCommitFinding[];
366
+ }
367
+ declare const DEFAULT_COMMIT_TYPES: string[];
368
+ /**
369
+ * Lint a commit message against the Conventional Commits v1.0.0 spec. Pass
370
+ * the full message (header, optional blank line, optional body, optional
371
+ * footers). Returns the parsed type/scope/description/body/footers plus a
372
+ * list of findings; `valid` is true iff there are no error-severity findings.
373
+ * This is a heuristic linter: multi-line footer values are not supported.
374
+ */
375
+ declare function lintConventionalCommit(message: string, options?: ConventionalCommitOptions): ConventionalCommitResult | {
376
+ error: string;
377
+ };
337
378
 
338
379
  declare const code_ALL_FLAGS: typeof ALL_FLAGS;
339
380
  type code_ApiEndpoint = ApiEndpoint;
340
381
  type code_ApiInfo = ApiInfo;
341
382
  declare const code_CHEATSHEET: typeof CHEATSHEET;
342
383
  type code_CheatsheetEntry = CheatsheetEntry;
384
+ type code_ConventionalCommitFinding = ConventionalCommitFinding;
385
+ type code_ConventionalCommitFooter = ConventionalCommitFooter;
386
+ type code_ConventionalCommitOptions = ConventionalCommitOptions;
387
+ type code_ConventionalCommitParsed = ConventionalCommitParsed;
388
+ type code_ConventionalCommitResult = ConventionalCommitResult;
389
+ type code_ConventionalCommitSeverity = ConventionalCommitSeverity;
343
390
  type code_CssResult = CssResult;
391
+ declare const code_DEFAULT_COMMIT_TYPES: typeof DEFAULT_COMMIT_TYPES;
344
392
  type code_DockerImageRef = DockerImageRef;
345
393
  type code_EnvEntry = EnvEntry;
346
394
  type code_EnvParseResult = EnvParseResult;
@@ -396,6 +444,7 @@ declare const code_getHtmlStats: typeof getHtmlStats;
396
444
  declare const code_getJsStats: typeof getJsStats;
397
445
  declare const code_getMethodColor: typeof getMethodColor;
398
446
  declare const code_isValidTag: typeof isValidTag;
447
+ declare const code_lintConventionalCommit: typeof lintConventionalCommit;
399
448
  declare const code_lookupMime: typeof lookupMime;
400
449
  declare const code_minifyCss: typeof minifyCss;
401
450
  declare const code_minifyGql: typeof minifyGql;
@@ -420,7 +469,7 @@ declare const code_testPattern: typeof testPattern;
420
469
  declare const code_testRegex: typeof testRegex;
421
470
  declare const code_validateEnvKey: typeof validateEnvKey;
422
471
  declare namespace code {
423
- export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_CssResult as CssResult, type code_DockerImageRef as DockerImageRef, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_TestPatternResult as TestPatternResult, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_formatCss as formatCss, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_lookupMime as lookupMime, code_minifyCss as minifyCss, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseGithubUrl as parseGithubUrl, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEnvKey as validateEnvKey };
472
+ export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DockerImageRef as DockerImageRef, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_TestPatternResult as TestPatternResult, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_formatCss as formatCss, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseGithubUrl as parseGithubUrl, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEnvKey as validateEnvKey };
424
473
  }
425
474
 
426
- export { formatCss as $, ALL_FLAGS as A, type SqlDialect as B, CHEATSHEET as C, type DockerImageRef as D, type EnvEntry as E, type SqlFormatOptions as F, type GitCommandConfig as G, type HtmlFormatResult as H, buildDockerPull as I, type JsMinifyOptions as J, buildDockerRun as K, buildGitCommand as L, MIME_TABLE as M, collapseHtmlWhitespace as N, OPERATIONS as O, type ParsedSpec as P, collapseJsWhitespace as Q, type RedosFinding as R, SQL_DEFAULT_OPTIONS as S, type TestPatternResult as T, countProperties as U, countRules as V, detectDialect as W, detectOperationType as X, detectRedos as Y, envToExport as Z, envToJson as _, type ApiEndpoint as a, formatGql as a0, formatHtml as a1, formatSql as a2, getEndpointsByTag as a3, getHtmlStats as a4, getJsStats as a5, getMethodColor as a6, isValidTag as a7, lookupMime as a8, minifyCss as a9, minifyGql as aa, minifyHtml as ab, minifyJs as ac, minifySql as ad, normalizeRef as ae, parseDockerImage as af, parseEnv as ag, parseGitCommand as ah, parseGithubUrl as ai, parseSpec as aj, removeConsoleCalls as ak, removeEmptyAttributes as al, removeHtmlComments as am, removeJsComments as an, removeRedundantAttributes as ao, searchCheatsheet as ap, searchEndpoints as aq, splitStatements as ar, testPattern as as, testRegex as at, validateEnvKey as au, type ApiInfo as b, code as c, type CheatsheetEntry as d, type CssResult as e, type EnvParseResult as f, type GitCommandResult as g, type GitOperation as h, type GithubUrlInfo as i, type GithubUrlType as j, type GqlFormatResult as k, type HtmlMinifyOptions as l, type HtmlMinifyResult as m, type JsMinifyResult as n, type MatchResult as o, type MimeEntry as p, type MimeLookupResult as q, type RedosResult as r, type RedosSeverity as s, type RegexError as t, type RegexFlag as u, type RegexMatch as v, type RegexResult as w, type RegexSuccess as x, type Segment as y, type SpecVersion as z };
475
+ export { countProperties as $, ALL_FLAGS as A, type RegexError as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type EnvEntry as E, type RegexFlag as F, type GitCommandConfig as G, type HtmlFormatResult as H, type RegexMatch as I, type JsMinifyOptions as J, type RegexResult as K, type RegexSuccess as L, MIME_TABLE as M, type Segment as N, OPERATIONS as O, type ParsedSpec as P, type SpecVersion as Q, type RedosFinding as R, SQL_DEFAULT_OPTIONS as S, type SqlDialect as T, type SqlFormatOptions as U, type TestPatternResult as V, buildDockerPull as W, buildDockerRun as X, buildGitCommand as Y, collapseHtmlWhitespace as Z, collapseJsWhitespace as _, type ApiEndpoint as a, countRules as a0, detectDialect as a1, detectOperationType as a2, detectRedos as a3, envToExport as a4, envToJson as a5, formatCss as a6, formatGql as a7, formatHtml as a8, formatSql as a9, testPattern as aA, testRegex as aB, validateEnvKey as aC, getEndpointsByTag as aa, getHtmlStats as ab, getJsStats as ac, getMethodColor as ad, isValidTag as ae, lintConventionalCommit as af, lookupMime as ag, minifyCss as ah, minifyGql as ai, minifyHtml as aj, minifyJs as ak, minifySql as al, normalizeRef as am, parseDockerImage as an, parseEnv as ao, parseGitCommand as ap, parseGithubUrl as aq, parseSpec as ar, removeConsoleCalls as as, removeEmptyAttributes as at, removeHtmlComments as au, removeJsComments as av, removeRedundantAttributes as aw, searchCheatsheet as ax, searchEndpoints as ay, splitStatements as az, type ApiInfo as b, code as c, type CheatsheetEntry as d, type ConventionalCommitFinding as e, type ConventionalCommitFooter as f, type ConventionalCommitOptions as g, type ConventionalCommitParsed as h, type ConventionalCommitResult as i, type ConventionalCommitSeverity as j, type CssResult as k, type DockerImageRef as l, type EnvParseResult as m, type GitCommandResult as n, type GitOperation as o, type GithubUrlInfo as p, type GithubUrlType as q, type GqlFormatResult as r, type HtmlMinifyOptions as s, type HtmlMinifyResult as t, type JsMinifyResult as u, type MatchResult as v, type MimeEntry as w, type MimeLookupResult as x, type RedosResult as y, type RedosSeverity as z };