@mks2508/better-logger 5.0.1 → 5.0.2
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/Logger.d.ts +976 -0
- package/dist/Logger.d.ts.map +1 -0
- package/dist/ScopedLogger.d.ts +74 -0
- package/dist/ScopedLogger.d.ts.map +1 -0
- package/dist/chunks/Logger-CKqzXDh3.js +2 -0
- package/dist/chunks/Logger-CKqzXDh3.js.map +1 -0
- package/dist/chunks/Logger-D_vuKP4l.js +4511 -0
- package/dist/chunks/Logger-D_vuKP4l.js.map +1 -0
- package/dist/chunks/RemoteLogHandler-CjWpWZGl.js +33 -0
- package/dist/chunks/RemoteLogHandler-CjWpWZGl.js.map +1 -0
- package/dist/chunks/RemoteLogHandler-ymkQ97xl.js +2 -0
- package/dist/chunks/RemoteLogHandler-ymkQ97xl.js.map +1 -0
- package/dist/chunks/cli-module-B-njrTWb.js +2 -0
- package/dist/chunks/cli-module-B-njrTWb.js.map +1 -0
- package/dist/chunks/cli-module-Cx7qotPY.js +390 -0
- package/dist/chunks/cli-module-Cx7qotPY.js.map +1 -0
- package/dist/chunks/color-converter-CCSQRztd.js +2 -0
- package/dist/chunks/color-converter-CCSQRztd.js.map +1 -0
- package/dist/chunks/color-converter-_Xdmsy7E.js +462 -0
- package/dist/chunks/color-converter-_Xdmsy7E.js.map +1 -0
- package/dist/chunks/environment-C1xxvc8l.js +1127 -0
- package/dist/chunks/environment-C1xxvc8l.js.map +1 -0
- package/dist/chunks/environment-Cprkw3g9.js +4 -0
- package/dist/chunks/environment-Cprkw3g9.js.map +1 -0
- package/dist/chunks/formatting-DMJxYq9o.js +380 -0
- package/dist/chunks/formatting-DMJxYq9o.js.map +1 -0
- package/dist/chunks/formatting-DpKxCsXq.js +2 -0
- package/dist/chunks/formatting-DpKxCsXq.js.map +1 -0
- package/dist/cli/CommandProcessor.d.ts +100 -0
- package/dist/cli/CommandProcessor.d.ts.map +1 -0
- package/dist/cli/commands/ConfigCommand.d.ts +14 -0
- package/dist/cli/commands/ConfigCommand.d.ts.map +1 -0
- package/dist/cli/commands/ExportCommand.d.ts +48 -0
- package/dist/cli/commands/ExportCommand.d.ts.map +1 -0
- package/dist/cli/commands/HistoryCommand.d.ts +47 -0
- package/dist/cli/commands/HistoryCommand.d.ts.map +1 -0
- package/dist/cli/commands/StatusCommand.d.ts +30 -0
- package/dist/cli/commands/StatusCommand.d.ts.map +1 -0
- package/dist/cli/commands/ThemeCommand.d.ts +30 -0
- package/dist/cli/commands/ThemeCommand.d.ts.map +1 -0
- package/dist/cli/help.d.ts +12 -0
- package/dist/cli/help.d.ts.map +1 -0
- package/dist/cli/index.d.ts +15 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/{src/cli-module.ts → dist/cli-module.d.ts} +2 -8
- package/dist/cli-module.d.ts.map +1 -0
- package/dist/cli-primitives/box.d.ts +11 -0
- package/dist/cli-primitives/box.d.ts.map +1 -0
- package/dist/cli-primitives/cli-table.d.ts +11 -0
- package/dist/cli-primitives/cli-table.d.ts.map +1 -0
- package/dist/cli-primitives/divider.d.ts +11 -0
- package/dist/cli-primitives/divider.d.ts.map +1 -0
- package/dist/cli-primitives/header.d.ts +12 -0
- package/dist/cli-primitives/header.d.ts.map +1 -0
- package/{src/cli-primitives/index.ts → dist/cli-primitives/index.d.ts} +1 -1
- package/dist/cli-primitives/index.d.ts.map +1 -0
- package/dist/cli-primitives/server-fallback.d.ts +25 -0
- package/dist/cli-primitives/server-fallback.d.ts.map +1 -0
- package/dist/cli-primitives/spinner.d.ts +47 -0
- package/dist/cli-primitives/spinner.d.ts.map +1 -0
- package/dist/cli-primitives/step.d.ts +11 -0
- package/dist/cli-primitives/step.d.ts.map +1 -0
- package/dist/cli.cjs +2 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.js +12 -0
- package/dist/cli.js.map +1 -0
- package/dist/constants.d.ts +235 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/core.cjs +2 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.d.ts +127 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +291 -0
- package/dist/core.js.map +1 -0
- package/dist/example.d.ts +18 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/exports-module.d.ts +196 -0
- package/dist/exports-module.d.ts.map +1 -0
- package/dist/exports.cjs +2 -0
- package/dist/exports.cjs.map +1 -0
- package/dist/exports.js +238 -0
- package/dist/exports.js.map +1 -0
- package/dist/handlers/AnalyticsLogHandler.d.ts +8 -0
- package/dist/handlers/AnalyticsLogHandler.d.ts.map +1 -0
- package/dist/handlers/ExportLogHandler.d.ts +100 -0
- package/dist/handlers/ExportLogHandler.d.ts.map +1 -0
- package/dist/handlers/FileLogHandler.d.ts +33 -0
- package/dist/handlers/FileLogHandler.d.ts.map +1 -0
- package/dist/handlers/RemoteLogHandler.d.ts +11 -0
- package/dist/handlers/RemoteLogHandler.d.ts.map +1 -0
- package/{src/handlers/index.ts → dist/handlers/index.d.ts} +2 -2
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/hooks/HookManager.d.ts +21 -0
- package/dist/hooks/HookManager.d.ts.map +1 -0
- package/{src/hooks/index.ts → dist/hooks/index.d.ts} +1 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +161 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +627 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/serializers/SerializerRegistry.d.ts +16 -0
- package/dist/serializers/SerializerRegistry.d.ts.map +1 -0
- package/{src/serializers/index.ts → dist/serializers/index.d.ts} +1 -0
- package/dist/serializers/index.d.ts.map +1 -0
- package/dist/styling/LogStyleBuilder.d.ts +146 -0
- package/dist/styling/LogStyleBuilder.d.ts.map +1 -0
- package/dist/styling/SemanticStyles.d.ts +178 -0
- package/dist/styling/SemanticStyles.d.ts.map +1 -0
- package/dist/styling/SmartPresets.d.ts +22 -0
- package/dist/styling/SmartPresets.d.ts.map +1 -0
- package/dist/styling/StyleBuilder.d.ts +140 -0
- package/dist/styling/StyleBuilder.d.ts.map +1 -0
- package/dist/styling/StyleCache.d.ts +42 -0
- package/dist/styling/StyleCache.d.ts.map +1 -0
- package/dist/styling/banners.d.ts +42 -0
- package/dist/styling/banners.d.ts.map +1 -0
- package/dist/styling/index.d.ts +10 -0
- package/dist/styling/index.d.ts.map +1 -0
- package/dist/styling/themes.d.ts +7 -0
- package/dist/styling/themes.d.ts.map +1 -0
- package/dist/styling-module.d.ts +178 -0
- package/dist/styling-module.d.ts.map +1 -0
- package/dist/styling.cjs +2 -0
- package/dist/styling.cjs.map +1 -0
- package/dist/styling.js +146 -0
- package/dist/styling.js.map +1 -0
- package/dist/terminal/color-converter.d.ts +73 -0
- package/dist/terminal/color-converter.d.ts.map +1 -0
- package/dist/terminal/formatter.d.ts +20 -0
- package/dist/terminal/formatter.d.ts.map +1 -0
- package/dist/terminal/terminal-renderer.d.ts +77 -0
- package/dist/terminal/terminal-renderer.d.ts.map +1 -0
- package/dist/transports/ConsoleTransport.d.ts +9 -0
- package/dist/transports/ConsoleTransport.d.ts.map +1 -0
- package/dist/transports/FileTransport.d.ts +15 -0
- package/dist/transports/FileTransport.d.ts.map +1 -0
- package/dist/transports/HttpTransport.d.ts +16 -0
- package/dist/transports/HttpTransport.d.ts.map +1 -0
- package/dist/transports/TransportManager.d.ts +14 -0
- package/dist/transports/TransportManager.d.ts.map +1 -0
- package/{src/transports/index.ts → dist/transports/index.d.ts} +1 -0
- package/dist/transports/index.d.ts.map +1 -0
- package/{src/types/core.ts → dist/types/core.d.ts} +25 -62
- package/dist/types/core.d.ts.map +1 -0
- package/{src/types/handlers.ts → dist/types/handlers.d.ts} +5 -15
- package/dist/types/handlers.d.ts.map +1 -0
- package/{src/types/hooks.ts → dist/types/hooks.d.ts} +3 -12
- package/dist/types/hooks.d.ts.map +1 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/index.d.ts.map +1 -0
- package/{src/types/serializers.ts → dist/types/serializers.d.ts} +1 -6
- package/dist/types/serializers.d.ts.map +1 -0
- package/{src/types/transports.ts → dist/types/transports.d.ts} +2 -7
- package/dist/types/transports.d.ts.map +1 -0
- package/dist/utils/adapter.d.ts +48 -0
- package/dist/utils/adapter.d.ts.map +1 -0
- package/dist/utils/ansi-colors.d.ts +156 -0
- package/dist/utils/ansi-colors.d.ts.map +1 -0
- package/dist/utils/environment-detector.d.ts +45 -0
- package/dist/utils/environment-detector.d.ts.map +1 -0
- package/dist/utils/environment.d.ts +47 -0
- package/dist/utils/environment.d.ts.map +1 -0
- package/dist/utils/formatting.d.ts +58 -0
- package/dist/utils/formatting.d.ts.map +1 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/opentui-detection.d.ts +34 -0
- package/dist/utils/opentui-detection.d.ts.map +1 -0
- package/dist/utils/output.d.ts +46 -0
- package/dist/utils/output.d.ts.map +1 -0
- package/dist/utils/stackTrace.d.ts +6 -0
- package/dist/utils/stackTrace.d.ts.map +1 -0
- package/dist/utils/timestamps.d.ts +20 -0
- package/dist/utils/timestamps.d.ts.map +1 -0
- package/{src/writers/BufferWriter.ts → dist/writers/BufferWriter.d.ts} +16 -77
- package/dist/writers/BufferWriter.d.ts.map +1 -0
- package/{src/writers/index.ts → dist/writers/index.d.ts} +1 -1
- package/dist/writers/index.d.ts.map +1 -0
- package/package.json +5 -1
- package/.claude/settings.local.json +0 -48
- package/.github/workflows/ci-quality.yml +0 -357
- package/.github/workflows/docs-demo.yml +0 -119
- package/.github/workflows/releases-core.yml +0 -512
- package/.github/workflows/releases-full.yml +0 -582
- package/.github/workflows-backup/ci.yml +0 -221
- package/.github/workflows-backup/nightly.yml +0 -196
- package/.github/workflows-backup/release-optimized.yml +0 -373
- package/.github/workflows-backup/release.yml +0 -269
- package/.release-notes-0.2.0.md +0 -129
- package/.yamllint +0 -28
- package/CHANGELOG.json +0 -1120
- package/CHANGELOG.md +0 -209
- package/CLAUDE.md +0 -217
- package/demo.html +0 -847
- package/docs/API.md +0 -918
- package/docs/CORE.md +0 -264
- package/docs/DEVELOPMENT.md +0 -731
- package/docs/EXPORTS.md +0 -467
- package/docs/PACKAGES.md +0 -244
- package/docs/STYLING.md +0 -405
- package/docs/_config.yml +0 -36
- package/docs/index.md +0 -179
- package/examples/README.md +0 -208
- package/examples/basic-logging.js +0 -75
- package/examples/data-export.js +0 -234
- package/examples/package.json +0 -16
- package/examples/performance-timing.js +0 -170
- package/examples/simplified-api.js +0 -124
- package/examples/styling-themes.js +0 -207
- package/index.html +0 -358
- package/packages/core/package.json +0 -57
- package/packages/exports/package.json +0 -41
- package/packages/nodejs-opentui/README.md +0 -232
- package/packages/nodejs-opentui/package.json +0 -72
- package/packages/nodejs-opentui/src/LogRenderer.ts +0 -171
- package/packages/nodejs-opentui/src/OpenTUILogHandler.ts +0 -178
- package/packages/nodejs-opentui/src/components/LogBadge.tsx +0 -131
- package/packages/nodejs-opentui/src/index.ts +0 -133
- package/packages/nodejs-opentui/src/types.ts +0 -158
- package/packages/nodejs-opentui/tsconfig.json +0 -20
- package/packages/styling/package.json +0 -41
- package/playground/demo-all.ts +0 -95
- package/playground/demo-box.ts +0 -85
- package/playground/demo-levels.ts +0 -56
- package/playground/demo-real-world.ts +0 -98
- package/playground/demo-spinner.ts +0 -77
- package/playground/demo-steps.ts +0 -72
- package/playground/demo-table.ts +0 -83
- package/project-utils/README.md +0 -172
- package/project-utils/auto-release-gemini.ts +0 -1193
- package/project-utils/auto-release-ui.ts +0 -1329
- package/project-utils/commit-generator.ts +0 -1385
- package/project-utils/commit-ui.ts +0 -264
- package/project-utils/git-utils.ts +0 -199
- package/project-utils/github-release-manager.ts +0 -466
- package/project-utils/project-config.ts +0 -260
- package/project-utils/prompt-templates.js +0 -345
- package/project-utils/prompt-templates.ts +0 -422
- package/project-utils/version-manager.ts +0 -1078
- package/src/Logger.ts +0 -1858
- package/src/ScopedLogger.ts +0 -256
- package/src/cli/CommandProcessor.ts +0 -248
- package/src/cli/commands/ConfigCommand.ts +0 -93
- package/src/cli/commands/ExportCommand.ts +0 -276
- package/src/cli/commands/HistoryCommand.ts +0 -117
- package/src/cli/commands/StatusCommand.ts +0 -112
- package/src/cli/commands/ThemeCommand.ts +0 -88
- package/src/cli/help.ts +0 -127
- package/src/cli/index.ts +0 -71
- package/src/cli-primitives/box.ts +0 -86
- package/src/cli-primitives/cli-table.ts +0 -62
- package/src/cli-primitives/divider.ts +0 -17
- package/src/cli-primitives/header.ts +0 -18
- package/src/cli-primitives/server-fallback.ts +0 -54
- package/src/cli-primitives/spinner.ts +0 -133
- package/src/cli-primitives/step.ts +0 -22
- package/src/constants.ts +0 -313
- package/src/core.ts +0 -397
- package/src/example.ts +0 -210
- package/src/exports-module.ts +0 -311
- package/src/handlers/AnalyticsLogHandler.ts +0 -22
- package/src/handlers/ExportLogHandler.ts +0 -610
- package/src/handlers/FileLogHandler.ts +0 -169
- package/src/handlers/RemoteLogHandler.ts +0 -42
- package/src/hooks/HookManager.ts +0 -177
- package/src/index.ts +0 -395
- package/src/main.ts +0 -196
- package/src/serializers/SerializerRegistry.ts +0 -173
- package/src/style.css +0 -96
- package/src/styling/LogStyleBuilder.ts +0 -355
- package/src/styling/SemanticStyles.ts +0 -380
- package/src/styling/SmartPresets.ts +0 -288
- package/src/styling/StyleBuilder.ts +0 -319
- package/src/styling/StyleCache.ts +0 -131
- package/src/styling/banners.ts +0 -168
- package/src/styling/index.ts +0 -27
- package/src/styling/themes.ts +0 -235
- package/src/styling-module.ts +0 -244
- package/src/terminal/color-converter.ts +0 -315
- package/src/terminal/formatter.ts +0 -242
- package/src/terminal/terminal-renderer.ts +0 -342
- package/src/transports/ConsoleTransport.ts +0 -28
- package/src/transports/FileTransport.ts +0 -53
- package/src/transports/HttpTransport.ts +0 -56
- package/src/transports/TransportManager.ts +0 -130
- package/src/types/index.ts +0 -83
- package/src/typescript.svg +0 -1
- package/src/utils/adapter.ts +0 -291
- package/src/utils/ansi-colors.ts +0 -333
- package/src/utils/environment-detector.ts +0 -170
- package/src/utils/environment.ts +0 -94
- package/src/utils/formatting.ts +0 -332
- package/src/utils/index.ts +0 -33
- package/src/utils/opentui-detection.ts +0 -138
- package/src/utils/output.ts +0 -227
- package/src/utils/stackTrace.ts +0 -144
- package/src/utils/timestamps.ts +0 -80
- package/src/vite-env.d.ts +0 -1
- package/test-core-browser.html +0 -237
- package/test-core-node.js +0 -63
- package/tests/test-conflict-resolution.ts +0 -391
- package/tests/validate-workflows.sh +0 -131
- package/tests/yaml-autofix.sh +0 -146
- package/tsconfig.json +0 -50
- package/vite.config.ts +0 -256
- /package/{public → dist}/vite.svg +0 -0
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @fileoverview BufferWriter - Collects log output in memory for later use
|
|
3
|
-
* @version 4.0.0
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type { LogLevel, OutputWriter } from '../types/core.js';
|
|
7
|
-
|
|
1
|
+
import { LogLevel, OutputWriter } from '../types/core.js';
|
|
8
2
|
/**
|
|
9
3
|
* Entry in the log buffer
|
|
10
4
|
*/
|
|
@@ -14,7 +8,6 @@ export interface BufferEntry {
|
|
|
14
8
|
styles: string[];
|
|
15
9
|
timestamp: number;
|
|
16
10
|
}
|
|
17
|
-
|
|
18
11
|
/**
|
|
19
12
|
* BufferWriter collects log messages in memory instead of outputting to console.
|
|
20
13
|
* Useful for:
|
|
@@ -44,114 +37,60 @@ export interface BufferEntry {
|
|
|
44
37
|
* logger.updateConfig({ outputMode: 'console' });
|
|
45
38
|
* buffer.flush(); // Outputs all buffered logs to console
|
|
46
39
|
*/
|
|
47
|
-
export class BufferWriter implements OutputWriter {
|
|
48
|
-
private buffer
|
|
49
|
-
private maxSize
|
|
50
|
-
|
|
40
|
+
export declare class BufferWriter implements OutputWriter {
|
|
41
|
+
private buffer;
|
|
42
|
+
private maxSize;
|
|
51
43
|
/**
|
|
52
44
|
* Creates a new BufferWriter
|
|
53
45
|
* @param maxSize - Maximum number of entries to buffer (default: 1000)
|
|
54
46
|
*/
|
|
55
|
-
constructor(maxSize
|
|
56
|
-
this.maxSize = maxSize;
|
|
57
|
-
}
|
|
58
|
-
|
|
47
|
+
constructor(maxSize?: number);
|
|
59
48
|
/**
|
|
60
49
|
* Writes a log entry to the buffer
|
|
61
50
|
* @param message - Formatted log message
|
|
62
51
|
* @param level - Log level
|
|
63
52
|
* @param styles - CSS styles (for browser console)
|
|
64
53
|
*/
|
|
65
|
-
write(message: string, level: LogLevel, styles: string[]): void
|
|
66
|
-
if (this.buffer.length >= this.maxSize) {
|
|
67
|
-
this.buffer.shift(); // Remove oldest entry
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
this.buffer.push({
|
|
71
|
-
message,
|
|
72
|
-
level,
|
|
73
|
-
styles,
|
|
74
|
-
timestamp: Date.now()
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
|
|
54
|
+
write(message: string, level: LogLevel, styles: string[]): void;
|
|
78
55
|
/**
|
|
79
56
|
* Returns all buffered entries
|
|
80
57
|
* @returns Copy of the buffer array
|
|
81
58
|
*/
|
|
82
|
-
getBuffer(): BufferEntry[]
|
|
83
|
-
return [...this.buffer];
|
|
84
|
-
}
|
|
85
|
-
|
|
59
|
+
getBuffer(): BufferEntry[];
|
|
86
60
|
/**
|
|
87
61
|
* Returns buffered entries filtered by log level
|
|
88
62
|
* @param levels - Log levels to include
|
|
89
63
|
* @returns Filtered buffer entries
|
|
90
64
|
*/
|
|
91
|
-
getByLevel(...levels: LogLevel[]): BufferEntry[]
|
|
92
|
-
return this.buffer.filter(entry => levels.includes(entry.level));
|
|
93
|
-
}
|
|
94
|
-
|
|
65
|
+
getByLevel(...levels: LogLevel[]): BufferEntry[];
|
|
95
66
|
/**
|
|
96
67
|
* Returns the number of buffered entries
|
|
97
68
|
*/
|
|
98
|
-
get size(): number
|
|
99
|
-
return this.buffer.length;
|
|
100
|
-
}
|
|
101
|
-
|
|
69
|
+
get size(): number;
|
|
102
70
|
/**
|
|
103
71
|
* Checks if buffer is empty
|
|
104
72
|
*/
|
|
105
|
-
get isEmpty(): boolean
|
|
106
|
-
return this.buffer.length === 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
73
|
+
get isEmpty(): boolean;
|
|
109
74
|
/**
|
|
110
75
|
* Clears all buffered entries
|
|
111
76
|
*/
|
|
112
|
-
clear(): void
|
|
113
|
-
this.buffer = [];
|
|
114
|
-
}
|
|
115
|
-
|
|
77
|
+
clear(): void;
|
|
116
78
|
/**
|
|
117
79
|
* Outputs all buffered entries to console and clears the buffer
|
|
118
80
|
*/
|
|
119
|
-
flush(): void
|
|
120
|
-
this.buffer.forEach(entry => {
|
|
121
|
-
if (entry.styles.length > 0) {
|
|
122
|
-
console.log(entry.message, ...entry.styles);
|
|
123
|
-
} else {
|
|
124
|
-
console.log(entry.message);
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
this.clear();
|
|
128
|
-
}
|
|
129
|
-
|
|
81
|
+
flush(): void;
|
|
130
82
|
/**
|
|
131
83
|
* Outputs buffered entries to console without clearing
|
|
132
84
|
*/
|
|
133
|
-
replay(): void
|
|
134
|
-
this.buffer.forEach(entry => {
|
|
135
|
-
if (entry.styles.length > 0) {
|
|
136
|
-
console.log(entry.message, ...entry.styles);
|
|
137
|
-
} else {
|
|
138
|
-
console.log(entry.message);
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
|
|
85
|
+
replay(): void;
|
|
143
86
|
/**
|
|
144
87
|
* Returns all messages as an array of strings
|
|
145
88
|
*/
|
|
146
|
-
toArray(): string[]
|
|
147
|
-
return this.buffer.map(entry => entry.message);
|
|
148
|
-
}
|
|
149
|
-
|
|
89
|
+
toArray(): string[];
|
|
150
90
|
/**
|
|
151
91
|
* Returns all messages joined as a single string
|
|
152
92
|
* @param separator - String to join messages with (default: newline)
|
|
153
93
|
*/
|
|
154
|
-
toString(separator
|
|
155
|
-
return this.toArray().join(separator);
|
|
156
|
-
}
|
|
94
|
+
toString(separator?: string): string;
|
|
157
95
|
}
|
|
96
|
+
//# sourceMappingURL=BufferWriter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BufferWriter.d.ts","sourceRoot":"","sources":["../../src/writers/BufferWriter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,QAAQ,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,YAAa,YAAW,YAAY;IAC7C,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,OAAO,CAAS;IAExB;;;OAGG;gBACS,OAAO,GAAE,MAAa;IAIlC;;;;;OAKG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI;IAa/D;;;OAGG;IACH,SAAS,IAAI,WAAW,EAAE;IAI1B;;;;OAIG;IACH,UAAU,CAAC,GAAG,MAAM,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE;IAIhD;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;OAEG;IACH,KAAK,IAAI,IAAI;IAWb;;OAEG;IACH,MAAM,IAAI,IAAI;IAUd;;OAEG;IACH,OAAO,IAAI,MAAM,EAAE;IAInB;;;OAGG;IACH,QAAQ,CAAC,SAAS,GAAE,MAAa,GAAG,MAAM;CAG7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/writers/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mks2508/better-logger",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist",
|
|
7
|
+
"README.md"
|
|
8
|
+
],
|
|
5
9
|
"description": "Logger avanzado para consola con estilos CSS, temas adaptativos, badges automáticos, SVG, animaciones, CLI integrado y soporte dual browser/terminal con colores ANSI",
|
|
6
10
|
"main": "dist/index.js",
|
|
7
11
|
"types": "dist/index.d.ts",
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"permissions": {
|
|
3
|
-
"allow": [
|
|
4
|
-
"Bash(npm run build:*)",
|
|
5
|
-
"Bash(npm run dev:*)",
|
|
6
|
-
"WebSearch",
|
|
7
|
-
"Bash(git add:*)",
|
|
8
|
-
"Bash(npm publish:*)",
|
|
9
|
-
"Bash(git commit:*)",
|
|
10
|
-
"Bash(git push:*)",
|
|
11
|
-
"Bash(npm install:*)",
|
|
12
|
-
"Bash(gh workflow view:*)",
|
|
13
|
-
"Bash(gh run list:*)",
|
|
14
|
-
"Bash(gh run view:*)",
|
|
15
|
-
"Bash(gh api:*)",
|
|
16
|
-
"Bash(gh run rerun:*)",
|
|
17
|
-
"Bash(gh workflow run:*)",
|
|
18
|
-
"Bash(bun:*)",
|
|
19
|
-
"Bash(npm view:*)",
|
|
20
|
-
"WebFetch(domain:github.com)",
|
|
21
|
-
"Bash(sed:*)",
|
|
22
|
-
"Bash(python3:*)",
|
|
23
|
-
"Bash(gh workflow:*)",
|
|
24
|
-
"Bash(yamllint:*)",
|
|
25
|
-
"Bash(git stash:*)",
|
|
26
|
-
"Bash(git pull:*)",
|
|
27
|
-
"Bash(npm config set:*)",
|
|
28
|
-
"Bash(git rebase:*)",
|
|
29
|
-
"Bash(find:*)",
|
|
30
|
-
"Bash(npm run type-check:*)",
|
|
31
|
-
"Bash(git tag:*)",
|
|
32
|
-
"Bash(npx tsc:*)",
|
|
33
|
-
"Bash(ls -la /Volumes/KODAK1TB/REPOS y PROYECTOS/nodejs/advanced-logger/dist/*.d.ts)",
|
|
34
|
-
"Bash(wc:*)",
|
|
35
|
-
"mcp__plugin_context7_context7__resolve-library-id",
|
|
36
|
-
"mcp__plugin_context7_context7__get-library-docs",
|
|
37
|
-
"WebFetch(domain:www.nearform.com)",
|
|
38
|
-
"Bash(grep:*)",
|
|
39
|
-
"Bash(cat:*)"
|
|
40
|
-
],
|
|
41
|
-
"deny": [],
|
|
42
|
-
"ask": [],
|
|
43
|
-
"additionalDirectories": [
|
|
44
|
-
"/Users/mks/gemini-commit-wizard",
|
|
45
|
-
"/Volumes/KODAK1TB/REPOS y PROYECTOS/nodejs/new-medmoderna-2025"
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,357 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: CI Quality & Testing
|
|
3
|
-
|
|
4
|
-
on:
|
|
5
|
-
push:
|
|
6
|
-
branches: [main, develop]
|
|
7
|
-
pull_request:
|
|
8
|
-
branches: [main, develop]
|
|
9
|
-
workflow_dispatch:
|
|
10
|
-
inputs:
|
|
11
|
-
run_performance:
|
|
12
|
-
description: 'Ejecutar tests de performance'
|
|
13
|
-
required: false
|
|
14
|
-
default: true
|
|
15
|
-
type: boolean
|
|
16
|
-
run_visual:
|
|
17
|
-
description: 'Ejecutar tests visuales'
|
|
18
|
-
required: false
|
|
19
|
-
default: false
|
|
20
|
-
type: boolean
|
|
21
|
-
|
|
22
|
-
env:
|
|
23
|
-
NODE_VERSION: '20'
|
|
24
|
-
|
|
25
|
-
jobs:
|
|
26
|
-
# ===== MATRIX TESTING =====
|
|
27
|
-
test-matrix:
|
|
28
|
-
runs-on: ubuntu-latest
|
|
29
|
-
|
|
30
|
-
strategy:
|
|
31
|
-
fail-fast: false
|
|
32
|
-
matrix:
|
|
33
|
-
bun-version: ["1.0", "latest"]
|
|
34
|
-
build-mode: [full, core, styling, exports]
|
|
35
|
-
|
|
36
|
-
name: Test Bun ${{ matrix.bun-version }} - ${{ matrix.build-mode }}
|
|
37
|
-
|
|
38
|
-
steps:
|
|
39
|
-
- name: "📥 Checkout code"
|
|
40
|
-
uses: actions/checkout@v4
|
|
41
|
-
with:
|
|
42
|
-
fetch-depth: 0
|
|
43
|
-
|
|
44
|
-
- name: "📦 Setup Bun ${{ matrix.bun-version }}"
|
|
45
|
-
uses: oven-sh/setup-bun@v2
|
|
46
|
-
with:
|
|
47
|
-
bun-version: ${{ matrix.bun-version }}
|
|
48
|
-
|
|
49
|
-
- name: "🔧 Install dependencies"
|
|
50
|
-
run: bun install --frozen-lockfile
|
|
51
|
-
|
|
52
|
-
- name: 🔍 Type checking
|
|
53
|
-
run: bun run type-check
|
|
54
|
-
|
|
55
|
-
- name: "🏗️ Build ${{ matrix.build-mode }}"
|
|
56
|
-
run: |
|
|
57
|
-
if [ "${{ matrix.build-mode }}" = "full" ]; then
|
|
58
|
-
bun run build:all
|
|
59
|
-
else
|
|
60
|
-
bun run build:${{ matrix.build-mode }}
|
|
61
|
-
fi
|
|
62
|
-
|
|
63
|
-
- name: "🧪 Run tests"
|
|
64
|
-
run: bun run ci:test
|
|
65
|
-
|
|
66
|
-
- name: 📊 Check bundle sizes
|
|
67
|
-
run: bun run size-limit
|
|
68
|
-
|
|
69
|
-
- name: "📤 Upload build artifacts (Node 20 only)"
|
|
70
|
-
uses: actions/upload-artifact@v4
|
|
71
|
-
if: matrix.node-version == 20
|
|
72
|
-
with:
|
|
73
|
-
name: build-${{ matrix.build-mode }}-node${{ matrix.node-version }}
|
|
74
|
-
path: dist/
|
|
75
|
-
retention-days: 7
|
|
76
|
-
|
|
77
|
-
# ===== PERFORMANCE TESTING =====
|
|
78
|
-
performance-tests:
|
|
79
|
-
runs-on: ubuntu-latest
|
|
80
|
-
needs: test-matrix
|
|
81
|
-
if: ${{ inputs.run_performance != false }}
|
|
82
|
-
|
|
83
|
-
steps:
|
|
84
|
-
- name: "📥 Checkout code"
|
|
85
|
-
uses: actions/checkout@v4
|
|
86
|
-
|
|
87
|
-
- name: "📦 Setup Node.js"
|
|
88
|
-
uses: actions/setup-node@v4
|
|
89
|
-
with:
|
|
90
|
-
node-version: ${{ env.NODE_VERSION }}
|
|
91
|
-
cache: 'npm'
|
|
92
|
-
|
|
93
|
-
- name: "🔧 Install dependencies"
|
|
94
|
-
run: bun install --frozen-lockfile
|
|
95
|
-
|
|
96
|
-
- name: "📥 Download build artifacts"
|
|
97
|
-
uses: actions/download-artifact@v4
|
|
98
|
-
with:
|
|
99
|
-
name: build-full-node20
|
|
100
|
-
path: dist/
|
|
101
|
-
|
|
102
|
-
- name: ⚡ Performance benchmarks
|
|
103
|
-
run: bun run test:performance
|
|
104
|
-
|
|
105
|
-
- name: 📊 Bundle analysis
|
|
106
|
-
run: |
|
|
107
|
-
echo "## 📦 Bundle Analysis Report" > performance-report.md
|
|
108
|
-
echo "### Size Breakdown" >> performance-report.md
|
|
109
|
-
echo "\`\`\`" >> performance-report.md
|
|
110
|
-
ls -la dist/ >> performance-report.md
|
|
111
|
-
echo "\`\`\`" >> performance-report.md
|
|
112
|
-
|
|
113
|
-
echo "### File Sizes by Module" >> performance-report.md
|
|
114
|
-
for module in core styling exports; do
|
|
115
|
-
if [ -d "dist/modular/$module" ]; then
|
|
116
|
-
echo "#### $module Module" >> performance-report.md
|
|
117
|
-
echo "\`\`\`" >> performance-report.md
|
|
118
|
-
ls -la dist/modular/$module/ >> performance-report.md
|
|
119
|
-
echo "\`\`\`" >> performance-report.md
|
|
120
|
-
fi
|
|
121
|
-
done
|
|
122
|
-
|
|
123
|
-
echo "### Performance Metrics" >> performance-report.md
|
|
124
|
-
echo "- **Build Time**: $(date)" >> performance-report.md
|
|
125
|
-
echo "- **Node Version**: ${{ env.NODE_VERSION }}" >> performance-report.md
|
|
126
|
-
|
|
127
|
-
- name: "📤 Upload performance report"
|
|
128
|
-
uses: actions/upload-artifact@v4
|
|
129
|
-
with:
|
|
130
|
-
name: performance-report
|
|
131
|
-
path: performance-report.md
|
|
132
|
-
retention-days: 30
|
|
133
|
-
|
|
134
|
-
# ===== VISUAL TESTING =====
|
|
135
|
-
visual-tests:
|
|
136
|
-
runs-on: ubuntu-latest
|
|
137
|
-
needs: test-matrix
|
|
138
|
-
if: ${{ inputs.run_visual == true }}
|
|
139
|
-
|
|
140
|
-
steps:
|
|
141
|
-
- name: "📥 Checkout code"
|
|
142
|
-
uses: actions/checkout@v4
|
|
143
|
-
|
|
144
|
-
- name: "📦 Setup Node.js"
|
|
145
|
-
uses: actions/setup-node@v4
|
|
146
|
-
with:
|
|
147
|
-
node-version: ${{ env.NODE_VERSION }}
|
|
148
|
-
cache: 'npm'
|
|
149
|
-
|
|
150
|
-
- name: "🔧 Install dependencies"
|
|
151
|
-
run: bun install --frozen-lockfile
|
|
152
|
-
|
|
153
|
-
- name: "📥 Download build artifacts"
|
|
154
|
-
uses: actions/download-artifact@v4
|
|
155
|
-
with:
|
|
156
|
-
name: build-full-node20
|
|
157
|
-
path: dist/
|
|
158
|
-
|
|
159
|
-
- name: 🎭 Install Playwright
|
|
160
|
-
run: npx playwright install --with-deps chromium
|
|
161
|
-
|
|
162
|
-
- name: "🖼️ Run visual tests"
|
|
163
|
-
run: bun run test:visual
|
|
164
|
-
|
|
165
|
-
- name: "📤 Upload test results"
|
|
166
|
-
uses: actions/upload-artifact@v4
|
|
167
|
-
if: always()
|
|
168
|
-
with:
|
|
169
|
-
name: visual-test-results
|
|
170
|
-
path: test-results/
|
|
171
|
-
retention-days: 30
|
|
172
|
-
|
|
173
|
-
- name: "📤 Upload screenshots"
|
|
174
|
-
uses: actions/upload-artifact@v4
|
|
175
|
-
if: failure()
|
|
176
|
-
with:
|
|
177
|
-
name: visual-test-failures
|
|
178
|
-
path: test-results/
|
|
179
|
-
retention-days: 30
|
|
180
|
-
|
|
181
|
-
# ===== SECURITY AUDIT =====
|
|
182
|
-
security-audit:
|
|
183
|
-
runs-on: ubuntu-latest
|
|
184
|
-
|
|
185
|
-
steps:
|
|
186
|
-
- name: "📥 Checkout code"
|
|
187
|
-
uses: actions/checkout@v4
|
|
188
|
-
|
|
189
|
-
- name: "📦 Setup Node.js"
|
|
190
|
-
uses: actions/setup-node@v4
|
|
191
|
-
with:
|
|
192
|
-
node-version: ${{ env.NODE_VERSION }}
|
|
193
|
-
cache: 'npm'
|
|
194
|
-
|
|
195
|
-
- name: 🔒 Security audit
|
|
196
|
-
run: |
|
|
197
|
-
echo "🔒 Running security audit..."
|
|
198
|
-
npm audit --audit-level=high || echo "Security issues detected, review required"
|
|
199
|
-
|
|
200
|
-
- name: 📊 Check for outdated packages
|
|
201
|
-
run: |
|
|
202
|
-
echo "📊 Checking for outdated packages..."
|
|
203
|
-
npm outdated || true
|
|
204
|
-
|
|
205
|
-
- name: 🔍 Vulnerability report
|
|
206
|
-
run: |
|
|
207
|
-
echo "## 🔒 Security Audit Report" > security-report.md
|
|
208
|
-
echo "### NPM Audit Results" >> security-report.md
|
|
209
|
-
echo "\`\`\`" >> security-report.md
|
|
210
|
-
npm audit --audit-level=moderate >> security-report.md || echo "No critical vulnerabilities" >> security-report.md
|
|
211
|
-
echo "\`\`\`" >> security-report.md
|
|
212
|
-
|
|
213
|
-
echo "### Outdated Packages" >> security-report.md
|
|
214
|
-
echo "\`\`\`" >> security-report.md
|
|
215
|
-
npm outdated >> security-report.md || echo "All packages up to date" >> security-report.md
|
|
216
|
-
echo "\`\`\`" >> security-report.md
|
|
217
|
-
|
|
218
|
-
- name: "📤 Upload security report"
|
|
219
|
-
uses: actions/upload-artifact@v4
|
|
220
|
-
with:
|
|
221
|
-
name: security-report
|
|
222
|
-
path: security-report.md
|
|
223
|
-
retention-days: 30
|
|
224
|
-
|
|
225
|
-
# ===== CODE QUALITY ANALYSIS =====
|
|
226
|
-
code-quality:
|
|
227
|
-
runs-on: ubuntu-latest
|
|
228
|
-
needs: test-matrix
|
|
229
|
-
|
|
230
|
-
steps:
|
|
231
|
-
- name: "📥 Checkout code"
|
|
232
|
-
uses: actions/checkout@v4
|
|
233
|
-
|
|
234
|
-
- name: "📦 Setup Node.js"
|
|
235
|
-
uses: actions/setup-node@v4
|
|
236
|
-
with:
|
|
237
|
-
node-version: ${{ env.NODE_VERSION }}
|
|
238
|
-
cache: 'npm'
|
|
239
|
-
|
|
240
|
-
- name: "🔧 Install dependencies"
|
|
241
|
-
run: bun install --frozen-lockfile
|
|
242
|
-
|
|
243
|
-
- name: 🔍 Code analysis
|
|
244
|
-
run: |
|
|
245
|
-
echo "🔍 Analyzing code quality..."
|
|
246
|
-
|
|
247
|
-
# Análisis básico de código
|
|
248
|
-
echo "## 📊 Code Quality Report" > quality-report.md
|
|
249
|
-
echo "### TypeScript Analysis" >> quality-report.md
|
|
250
|
-
echo "\`\`\`" >> quality-report.md
|
|
251
|
-
bun run type-check >> quality-report.md 2>&1 || echo "TypeScript issues detected" >> quality-report.md
|
|
252
|
-
echo "\`\`\`" >> quality-report.md
|
|
253
|
-
|
|
254
|
-
echo "### File Statistics" >> quality-report.md
|
|
255
|
-
echo "- **Total TypeScript files**: $(find src/ -name '*.ts' | wc -l)" >> quality-report.md
|
|
256
|
-
echo "- **Total lines of code**: $(find src/ -name '*.ts' -exec wc -l {} + | tail -1 | awk '{print $1}')" >> quality-report.md
|
|
257
|
-
echo "- **Build date**: $(date)" >> quality-report.md
|
|
258
|
-
|
|
259
|
-
- name: "📤 Upload quality report"
|
|
260
|
-
uses: actions/upload-artifact@v4
|
|
261
|
-
with:
|
|
262
|
-
name: code-quality-report
|
|
263
|
-
path: quality-report.md
|
|
264
|
-
retention-days: 30
|
|
265
|
-
|
|
266
|
-
# ===== PROJECT UTILS VALIDATION =====
|
|
267
|
-
validate-project-utils:
|
|
268
|
-
runs-on: ubuntu-latest
|
|
269
|
-
|
|
270
|
-
steps:
|
|
271
|
-
- name: "📥 Checkout code"
|
|
272
|
-
uses: actions/checkout@v4
|
|
273
|
-
|
|
274
|
-
- name: "📦 Setup Node.js"
|
|
275
|
-
uses: actions/setup-node@v4
|
|
276
|
-
with:
|
|
277
|
-
node-version: ${{ env.NODE_VERSION }}
|
|
278
|
-
cache: 'npm'
|
|
279
|
-
|
|
280
|
-
- name: "🔧 Install dependencies"
|
|
281
|
-
run: bun install --frozen-lockfile
|
|
282
|
-
|
|
283
|
-
- name: "🧪 Test project-utils scripts"
|
|
284
|
-
run: |
|
|
285
|
-
echo "🧪 Validating project-utils scripts..."
|
|
286
|
-
|
|
287
|
-
# Verificar que los scripts existan y sean ejecutables
|
|
288
|
-
SCRIPTS=("commit-generator.ts" "version-manager.ts" "github-release-manager.ts" "auto-release-gemini.ts")
|
|
289
|
-
|
|
290
|
-
for script in "${SCRIPTS[@]}"; do
|
|
291
|
-
if [ -f "project-utils/$script" ]; then
|
|
292
|
-
echo "✅ $script exists"
|
|
293
|
-
# Verificar sintaxis básica
|
|
294
|
-
node --check "project-utils/$script" && echo "✅ $script syntax OK" || echo "❌ $script syntax error"
|
|
295
|
-
else
|
|
296
|
-
echo "❌ $script missing"
|
|
297
|
-
fi
|
|
298
|
-
done
|
|
299
|
-
|
|
300
|
-
- name: 📊 Validate package.json scripts
|
|
301
|
-
run: |
|
|
302
|
-
echo "📊 Validating package.json scripts..."
|
|
303
|
-
|
|
304
|
-
# Verificar scripts críticos
|
|
305
|
-
CRITICAL_SCRIPTS=("build" "build:all" "commit:auto" "version:auto" "workflow:full")
|
|
306
|
-
|
|
307
|
-
for script in "${CRITICAL_SCRIPTS[@]}"; do
|
|
308
|
-
if bun run --silent "$script" --help >/dev/null 2>&1; then
|
|
309
|
-
echo "✅ Script '$script' is valid"
|
|
310
|
-
else
|
|
311
|
-
echo "❌ Script '$script' has issues"
|
|
312
|
-
fi
|
|
313
|
-
done
|
|
314
|
-
|
|
315
|
-
# ===== COMPREHENSIVE SUMMARY =====
|
|
316
|
-
ci-summary:
|
|
317
|
-
runs-on: ubuntu-latest
|
|
318
|
-
needs: [test-matrix, performance-tests, visual-tests, security-audit, code-quality, validate-project-utils]
|
|
319
|
-
if: always()
|
|
320
|
-
|
|
321
|
-
steps:
|
|
322
|
-
- name: 📊 CI Quality Summary
|
|
323
|
-
run: |
|
|
324
|
-
echo "## 📊 CI Quality & Testing Summary" >> $GITHUB_STEP_SUMMARY
|
|
325
|
-
echo "" >> $GITHUB_STEP_SUMMARY
|
|
326
|
-
|
|
327
|
-
# Status de cada job
|
|
328
|
-
echo "### 🧪 Test Results" >> $GITHUB_STEP_SUMMARY
|
|
329
|
-
echo "- **Matrix Testing**: ${{ needs.test-matrix.result }}" >> $GITHUB_STEP_SUMMARY
|
|
330
|
-
echo "- **Performance Tests**: ${{ needs.performance-tests.result }}" >> $GITHUB_STEP_SUMMARY
|
|
331
|
-
echo "- **Visual Tests**: ${{ needs.visual-tests.result }}" >> $GITHUB_STEP_SUMMARY
|
|
332
|
-
echo "- **Security Audit**: ${{ needs.security-audit.result }}" >> $GITHUB_STEP_SUMMARY
|
|
333
|
-
echo "- **Code Quality**: ${{ needs.code-quality.result }}" >> $GITHUB_STEP_SUMMARY
|
|
334
|
-
echo "- **Project Utils**: ${{ needs.validate-project-utils.result }}" >> $GITHUB_STEP_SUMMARY
|
|
335
|
-
echo "" >> $GITHUB_STEP_SUMMARY
|
|
336
|
-
|
|
337
|
-
echo "### 📋 Coverage Matrix" >> $GITHUB_STEP_SUMMARY
|
|
338
|
-
echo "- **Node Versions**: 18, 20, 21" >> $GITHUB_STEP_SUMMARY
|
|
339
|
-
echo "- **Build Modes**: full, core, styling, exports" >> $GITHUB_STEP_SUMMARY
|
|
340
|
-
echo "- **Test Types**: unit, performance, visual, security" >> $GITHUB_STEP_SUMMARY
|
|
341
|
-
echo "" >> $GITHUB_STEP_SUMMARY
|
|
342
|
-
|
|
343
|
-
# Determinar estado general
|
|
344
|
-
if [ "${{ needs.test-matrix.result }}" = "success" ] && ["${{ needs.security-audit.result }}" = "success"] && ["${{ needs.code-quality.result }}" = "success"]; then
|
|
345
|
-
echo "### ✅ Overall Status: PASSED" >> $GITHUB_STEP_SUMMARY
|
|
346
|
-
echo "All critical quality checks passed successfully." >> $GITHUB_STEP_SUMMARY
|
|
347
|
-
else
|
|
348
|
-
echo "### ⚠️ Overall Status: ATTENTION REQUIRED" >> $GITHUB_STEP_SUMMARY
|
|
349
|
-
echo "Some quality checks require attention. Review individual job results." >> $GITHUB_STEP_SUMMARY
|
|
350
|
-
fi
|
|
351
|
-
|
|
352
|
-
echo "" >> $GITHUB_STEP_SUMMARY
|
|
353
|
-
echo "### 📎 Artifacts Generated" >> $GITHUB_STEP_SUMMARY
|
|
354
|
-
echo "- Build artifacts for all modules" >> $GITHUB_STEP_SUMMARY
|
|
355
|
-
echo "- Performance analysis report" >> $GITHUB_STEP_SUMMARY
|
|
356
|
-
echo "- Security audit report" >> $GITHUB_STEP_SUMMARY
|
|
357
|
-
echo "- Code quality metrics" >> $GITHUB_STEP_SUMMARY
|