uilint-core 0.2.97 → 0.2.99

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/dist/node.js CHANGED
@@ -11,10 +11,14 @@ import {
11
11
  createColorRule,
12
12
  createComponentRule,
13
13
  createEmptyStyleGuide,
14
+ createProgress,
14
15
  createSpacingRule,
15
16
  createStyleSummary,
16
17
  createTypographyRule,
17
18
  deserializeStyles,
19
+ devError,
20
+ devLog,
21
+ devWarn,
18
22
  extractStyleValues,
19
23
  extractStyles,
20
24
  extractStylesFromDOM,
@@ -24,68 +28,24 @@ import {
24
28
  generateStyleGuideFromStyles,
25
29
  getOllamaClient,
26
30
  hasAnalyzableGroups,
31
+ logDebug,
32
+ logError,
33
+ logInfo,
34
+ logSuccess,
35
+ logWarning,
27
36
  mergeStyleGuides,
28
37
  parseGroupedSnapshot,
29
38
  parseStyleGuide,
30
39
  parseStyleGuideSections,
31
40
  parseViolationsResponse,
41
+ pc,
32
42
  sanitizeIssues,
33
43
  serializeStyles,
34
44
  styleGuideToMarkdown,
35
45
  truncateHTML,
36
46
  validateStyleGuide,
37
47
  validateViolations
38
- } from "./chunk-23BX6XC7.js";
39
-
40
- // src/logger.ts
41
- import pc from "picocolors";
42
- var PREFIX = pc.cyan("[uilint]");
43
- function logInfo(message) {
44
- console.error(`${PREFIX} ${pc.blue("\u2139")} ${message}`);
45
- }
46
- function logSuccess(message) {
47
- console.error(`${PREFIX} ${pc.green("\u2713")} ${message}`);
48
- }
49
- function logWarning(message) {
50
- console.error(`${PREFIX} ${pc.yellow("\u26A0")} ${message}`);
51
- }
52
- function logError(message) {
53
- console.error(`${PREFIX} ${pc.red("\u2717")} ${message}`);
54
- }
55
- function logDebug(message) {
56
- console.error(`${PREFIX} ${pc.dim(message)}`);
57
- }
58
- function createProgress(initialMessage) {
59
- let lastLength = 0;
60
- const write = (message) => {
61
- if (lastLength > 0) {
62
- process.stderr.write("\r" + " ".repeat(lastLength) + "\r");
63
- }
64
- const line = `${PREFIX} ${pc.magenta("\u27F3")} ${message}`;
65
- process.stderr.write(line);
66
- lastLength = line.length;
67
- };
68
- write(initialMessage);
69
- return {
70
- update: (message) => {
71
- write(message);
72
- },
73
- succeed: (message) => {
74
- if (lastLength > 0) {
75
- process.stderr.write("\r" + " ".repeat(lastLength) + "\r");
76
- }
77
- console.error(`${PREFIX} ${pc.green("\u2713")} ${message}`);
78
- lastLength = 0;
79
- },
80
- fail: (message) => {
81
- if (lastLength > 0) {
82
- process.stderr.write("\r" + " ".repeat(lastLength) + "\r");
83
- }
84
- console.error(`${PREFIX} ${pc.red("\u2717")} ${message}`);
85
- lastLength = 0;
86
- }
87
- };
88
- }
48
+ } from "./chunk-TNIFMF2P.js";
89
49
 
90
50
  // src/ollama/bootstrap.ts
91
51
  import { spawn, spawnSync } from "child_process";
@@ -1983,6 +1943,9 @@ export {
1983
1943
  createStyleSummary,
1984
1944
  createTypographyRule,
1985
1945
  deserializeStyles,
1946
+ devError,
1947
+ devLog,
1948
+ devWarn,
1986
1949
  ensureOllamaInstalledOrExplain,
1987
1950
  ensureOllamaModelPulled,
1988
1951
  ensureOllamaReady,