@mks2508/better-logger 0.14.0-alpha.2 β 0.18.2-alpha.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/README.md +50 -244
- package/dist/Logger.d.ts +662 -202
- package/dist/Logger.d.ts.map +1 -1
- package/dist/ScopedLogger.d.ts +434 -175
- package/dist/ScopedLogger.d.ts.map +1 -1
- package/dist/chunks/HookBridge-C-AvXmPD.cjs +504 -0
- package/dist/chunks/HookBridge-C-AvXmPD.cjs.map +1 -0
- package/dist/chunks/HookBridge-CI2PH79S.js +487 -0
- package/dist/chunks/HookBridge-CI2PH79S.js.map +1 -0
- package/dist/chunks/LogContext-BaMXleWj.cjs +105 -0
- package/dist/chunks/LogContext-BaMXleWj.cjs.map +1 -0
- package/dist/chunks/LogContext-DjlITOzZ.js +100 -0
- package/dist/chunks/LogContext-DjlITOzZ.js.map +1 -0
- package/dist/chunks/SerializerBridge-Ba43Mk7j.js +393 -0
- package/dist/chunks/SerializerBridge-Ba43Mk7j.js.map +1 -0
- package/dist/chunks/SerializerBridge-C4a9Z37F.cjs +410 -0
- package/dist/chunks/SerializerBridge-C4a9Z37F.cjs.map +1 -0
- package/dist/chunks/StyleManager-DQ6UNRB-.cjs +118 -0
- package/dist/chunks/StyleManager-DQ6UNRB-.cjs.map +1 -0
- package/dist/chunks/StyleManager-DjwAYbxE.js +113 -0
- package/dist/chunks/StyleManager-DjwAYbxE.js.map +1 -0
- package/dist/chunks/core-Blfi2klP.js +31 -0
- package/dist/chunks/core-Blfi2klP.js.map +1 -0
- package/dist/chunks/core-CqS_UBzJ.cjs +36 -0
- package/dist/chunks/core-CqS_UBzJ.cjs.map +1 -0
- package/dist/chunks/environment-detector-7NvnYUfr.js +110 -0
- package/dist/chunks/environment-detector-7NvnYUfr.js.map +1 -0
- package/dist/chunks/environment-detector-D-tHkKWA.cjs +163 -0
- package/dist/chunks/environment-detector-D-tHkKWA.cjs.map +1 -0
- package/dist/chunks/server-fallback-CaCPjWby.cjs +119 -0
- package/dist/chunks/server-fallback-CaCPjWby.cjs.map +1 -0
- package/dist/chunks/server-fallback-jj0T6XaK.js +114 -0
- package/dist/chunks/server-fallback-jj0T6XaK.js.map +1 -0
- package/dist/chunks/spinner-BHyYEXsM.cjs +1029 -0
- package/dist/chunks/spinner-BHyYEXsM.cjs.map +1 -0
- package/dist/chunks/spinner-BtkwpzYv.js +982 -0
- package/dist/chunks/spinner-BtkwpzYv.js.map +1 -0
- package/dist/chunks/styling-CRw3KQW4.js +1592 -0
- package/dist/chunks/styling-CRw3KQW4.js.map +1 -0
- package/dist/chunks/styling-Cel2wPRy.cjs +1645 -0
- package/dist/chunks/styling-Cel2wPRy.cjs.map +1 -0
- package/dist/chunks/transports-BGfwwakw.js +1237 -0
- package/dist/chunks/transports-BGfwwakw.js.map +1 -0
- package/dist/chunks/transports-yK6CL0Ml.cjs +1278 -0
- package/dist/chunks/transports-yK6CL0Ml.cjs.map +1 -0
- package/dist/chunks/utils-W_cxqriN.cjs +705 -0
- package/dist/chunks/utils-W_cxqriN.cjs.map +1 -0
- package/dist/chunks/utils-tKfBAWUM.js +586 -0
- package/dist/chunks/utils-tKfBAWUM.js.map +1 -0
- package/dist/cli/CommandProcessor.d.ts +166 -19
- package/dist/cli/CommandProcessor.d.ts.map +1 -1
- package/dist/cli/commands/ConfigCommand.d.ts +36 -1
- package/dist/cli/commands/ConfigCommand.d.ts.map +1 -1
- package/dist/cli/commands/ExportCommand.d.ts +54 -26
- package/dist/cli/commands/ExportCommand.d.ts.map +1 -1
- package/dist/cli/commands/ThemeCommand.d.ts +62 -3
- package/dist/cli/commands/ThemeCommand.d.ts.map +1 -1
- package/dist/cli/help.d.ts +30 -2
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/index.d.ts +30 -4
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli-module.d.ts +13 -0
- package/dist/cli-module.d.ts.map +1 -0
- package/dist/cli.cjs +11 -0
- package/dist/cli.js +3 -0
- package/dist/constants.d.ts +16 -47
- package/dist/constants.d.ts.map +1 -1
- package/dist/context/LogContext.d.ts +245 -0
- package/dist/context/LogContext.d.ts.map +1 -0
- package/dist/context/index.d.ts +6 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context-module.d.ts +6 -0
- package/dist/context-module.d.ts.map +1 -0
- package/dist/context.cjs +3 -0
- package/dist/context.js +2 -0
- package/dist/core.cjs +304 -2
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.ts +56 -34
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +281 -314
- package/dist/core.js.map +1 -1
- package/dist/hooks/HookBridge.d.ts +32 -0
- package/dist/hooks/HookBridge.d.ts.map +1 -0
- package/dist/hooks/HookManager.d.ts +319 -0
- package/dist/hooks/HookManager.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks-module.d.ts +7 -0
- package/dist/hooks-module.d.ts.map +1 -0
- package/dist/hooks.cjs +5 -0
- package/dist/hooks.js +2 -0
- package/dist/index.cjs +3402 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +42 -130
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3327 -158
- package/dist/index.js.map +1 -1
- package/dist/node-module.d.ts +10 -0
- package/dist/node-module.d.ts.map +1 -0
- package/dist/node.cjs +13 -0
- package/dist/node.cjs.map +1 -0
- package/dist/node.js +12 -0
- package/dist/node.js.map +1 -0
- package/dist/playground/TerminalBridge.d.ts +53 -0
- package/dist/playground/TerminalBridge.d.ts.map +1 -0
- package/dist/playground/box.d.ts +45 -0
- package/dist/playground/box.d.ts.map +1 -0
- package/dist/playground/cli-table.d.ts +50 -0
- package/dist/playground/cli-table.d.ts.map +1 -0
- package/dist/playground/divider.d.ts +29 -0
- package/dist/playground/divider.d.ts.map +1 -0
- package/dist/playground/header.d.ts +28 -0
- package/dist/playground/header.d.ts.map +1 -0
- package/dist/playground/index.d.ts +11 -0
- package/dist/playground/index.d.ts.map +1 -0
- package/dist/playground/server-fallback.d.ts +114 -0
- package/dist/playground/server-fallback.d.ts.map +1 -0
- package/dist/playground/spinner.d.ts +197 -0
- package/dist/playground/spinner.d.ts.map +1 -0
- package/dist/playground/step.d.ts +33 -0
- package/dist/playground/step.d.ts.map +1 -0
- package/dist/playground-module.d.ts +11 -0
- package/dist/playground-module.d.ts.map +1 -0
- package/dist/playground.cjs +9 -0
- package/dist/playground.js +2 -0
- package/dist/serializers/SerializerBridge.d.ts +28 -0
- package/dist/serializers/SerializerBridge.d.ts.map +1 -0
- package/dist/serializers/SerializerRegistry.d.ts +252 -0
- package/dist/serializers/SerializerRegistry.d.ts.map +1 -0
- package/dist/serializers/index.d.ts +7 -0
- package/dist/serializers/index.d.ts.map +1 -0
- package/dist/serializers-module.d.ts +7 -0
- package/dist/serializers-module.d.ts.map +1 -0
- package/dist/serializers.cjs +5 -0
- package/dist/serializers.js +2 -0
- package/dist/styles/StyleManager.d.ts +190 -0
- package/dist/styles/StyleManager.d.ts.map +1 -0
- package/dist/styles/index.d.ts +7 -0
- package/dist/styles/index.d.ts.map +1 -0
- package/dist/styles-module.d.ts +7 -0
- package/dist/styles-module.d.ts.map +1 -0
- package/dist/styles.cjs +7 -0
- package/dist/styles.js +3 -0
- package/dist/styling/SmartPresets.d.ts +100 -6
- package/dist/styling/SmartPresets.d.ts.map +1 -1
- package/dist/styling/StyleBuilder.d.ts +453 -32
- package/dist/styling/StyleBuilder.d.ts.map +1 -1
- package/dist/styling/banners.d.ts +85 -5
- package/dist/styling/banners.d.ts.map +1 -1
- package/dist/styling/index.d.ts +8 -3
- package/dist/styling/index.d.ts.map +1 -1
- package/dist/styling/themes.d.ts +41 -2
- package/dist/styling/themes.d.ts.map +1 -1
- 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 +23 -0
- package/dist/terminal/formatter.d.ts.map +1 -0
- package/dist/transports/ConsoleTransport.d.ts +104 -0
- package/dist/transports/ConsoleTransport.d.ts.map +1 -0
- package/dist/transports/FileTransport.d.ts +137 -0
- package/dist/transports/FileTransport.d.ts.map +1 -0
- package/dist/transports/HttpTransport.d.ts +180 -0
- package/dist/transports/HttpTransport.d.ts.map +1 -0
- package/dist/transports/OtlpTransport.d.ts +165 -0
- package/dist/transports/OtlpTransport.d.ts.map +1 -0
- package/dist/transports/TransportBridge.d.ts +43 -0
- package/dist/transports/TransportBridge.d.ts.map +1 -0
- package/dist/transports/TransportManager.d.ts +251 -0
- package/dist/transports/TransportManager.d.ts.map +1 -0
- package/dist/transports/index.d.ts +6 -0
- package/dist/transports/index.d.ts.map +1 -0
- package/dist/transports-module.d.ts +10 -0
- package/dist/transports-module.d.ts.map +1 -0
- package/dist/transports.cjs +7 -0
- package/dist/transports.js +2 -0
- package/dist/types/core.d.ts +295 -17
- package/dist/types/core.d.ts.map +1 -1
- package/dist/types/handlers.d.ts +0 -67
- package/dist/types/handlers.d.ts.map +1 -1
- package/dist/types/hooks.d.ts +138 -0
- package/dist/types/hooks.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/serializers.d.ts +97 -0
- package/dist/types/serializers.d.ts.map +1 -0
- package/dist/types/transports.d.ts +132 -0
- package/dist/types/transports.d.ts.map +1 -0
- package/dist/utils/ansi-colors.d.ts +115 -0
- package/dist/utils/ansi-colors.d.ts.map +1 -0
- package/dist/utils/environment-detector.d.ts +53 -0
- package/dist/utils/environment-detector.d.ts.map +1 -0
- package/dist/utils/formatting.d.ts +9 -8
- package/dist/utils/formatting.d.ts.map +1 -1
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/output.d.ts +14 -17
- package/dist/utils/output.d.ts.map +1 -1
- package/dist/utils/stackTrace.d.ts +2 -2
- package/dist/utils/stackTrace.d.ts.map +1 -1
- package/dist/utils/timestamps.d.ts +0 -12
- package/dist/utils/timestamps.d.ts.map +1 -1
- package/package.json +95 -21
- package/.claude/settings.local.json +0 -39
- 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 -865
- package/CLAUDE.md +0 -204
- package/bun.lock +0 -323
- package/demo.html +0 -847
- package/dist/.tsbuildinfo +0 -1
- package/dist/Logger.js +0 -1124
- package/dist/ScopedLogger.js +0 -426
- package/dist/chunks/Logger-Crw1woqR.js +0 -3464
- package/dist/chunks/Logger-Crw1woqR.js.map +0 -1
- package/dist/chunks/Logger-D_p3xnbq.js +0 -2
- package/dist/chunks/Logger-D_p3xnbq.js.map +0 -1
- package/dist/chunks/RemoteLogHandler-CjWpWZGl.js +0 -33
- package/dist/chunks/RemoteLogHandler-CjWpWZGl.js.map +0 -1
- package/dist/chunks/RemoteLogHandler-ymkQ97xl.js +0 -2
- package/dist/chunks/RemoteLogHandler-ymkQ97xl.js.map +0 -1
- package/dist/chunks/environment-Bxbnw4pd.js +0 -544
- package/dist/chunks/environment-Bxbnw4pd.js.map +0 -1
- package/dist/chunks/environment-Dm66zOML.js +0 -4
- package/dist/chunks/environment-Dm66zOML.js.map +0 -1
- package/dist/chunks/formatting-C0riPC5_.js +0 -95
- package/dist/chunks/formatting-C0riPC5_.js.map +0 -1
- package/dist/chunks/formatting-DNCAV66-.js +0 -2
- package/dist/chunks/formatting-DNCAV66-.js.map +0 -1
- package/dist/cli/CommandProcessor.js +0 -184
- package/dist/cli/commands/ConfigCommand.js +0 -88
- package/dist/cli/commands/ExportCommand.js +0 -243
- package/dist/cli/commands/HistoryCommand.d.ts +0 -50
- package/dist/cli/commands/HistoryCommand.d.ts.map +0 -1
- package/dist/cli/commands/HistoryCommand.js +0 -96
- package/dist/cli/commands/StatusCommand.d.ts +0 -33
- package/dist/cli/commands/StatusCommand.d.ts.map +0 -1
- package/dist/cli/commands/StatusCommand.js +0 -93
- package/dist/cli/commands/ThemeCommand.js +0 -79
- package/dist/cli/help.js +0 -118
- package/dist/cli/index.js +0 -46
- package/dist/constants.js +0 -159
- package/dist/example.d.ts +0 -18
- package/dist/example.d.ts.map +0 -1
- package/dist/example.js +0 -154
- package/dist/exports-module.d.ts +0 -203
- package/dist/exports-module.d.ts.map +0 -1
- package/dist/exports-module.js +0 -260
- package/dist/exports.cjs +0 -2
- package/dist/exports.cjs.map +0 -1
- package/dist/exports.js +0 -238
- package/dist/exports.js.map +0 -1
- package/dist/handlers/AnalyticsLogHandler.d.ts +0 -11
- package/dist/handlers/AnalyticsLogHandler.d.ts.map +0 -1
- package/dist/handlers/AnalyticsLogHandler.js +0 -19
- package/dist/handlers/ExportLogHandler.d.ts +0 -103
- package/dist/handlers/ExportLogHandler.d.ts.map +0 -1
- package/dist/handlers/ExportLogHandler.js +0 -516
- package/dist/handlers/FileLogHandler.d.ts +0 -36
- package/dist/handlers/FileLogHandler.d.ts.map +0 -1
- package/dist/handlers/FileLogHandler.js +0 -156
- package/dist/handlers/RemoteLogHandler.d.ts +0 -14
- package/dist/handlers/RemoteLogHandler.d.ts.map +0 -1
- package/dist/handlers/RemoteLogHandler.js +0 -37
- package/dist/handlers/index.d.ts +0 -8
- package/dist/handlers/index.d.ts.map +0 -1
- package/dist/handlers/index.js +0 -7
- package/dist/main.d.ts +0 -2
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js +0 -139
- package/dist/styling/LogStyleBuilder.d.ts +0 -149
- package/dist/styling/LogStyleBuilder.d.ts.map +0 -1
- package/dist/styling/LogStyleBuilder.js +0 -289
- package/dist/styling/SemanticStyles.d.ts +0 -181
- package/dist/styling/SemanticStyles.d.ts.map +0 -1
- package/dist/styling/SemanticStyles.js +0 -339
- package/dist/styling/SmartPresets.js +0 -276
- package/dist/styling/StyleBuilder.js +0 -280
- package/dist/styling/banners.js +0 -155
- package/dist/styling/index.js +0 -9
- package/dist/styling/themes.js +0 -231
- package/dist/styling-module.d.ts +0 -185
- package/dist/styling-module.d.ts.map +0 -1
- package/dist/styling-module.js +0 -199
- package/dist/styling.cjs +0 -2
- package/dist/styling.cjs.map +0 -1
- package/dist/styling.js +0 -146
- package/dist/styling.js.map +0 -1
- package/dist/types/Logger.d.ts +0 -700
- package/dist/types/Logger.d.ts.map +0 -1
- package/dist/types/ScopedLogger.d.ts +0 -310
- package/dist/types/ScopedLogger.d.ts.map +0 -1
- package/dist/types/cli/CommandProcessor.d.ts +0 -100
- package/dist/types/cli/CommandProcessor.d.ts.map +0 -1
- package/dist/types/cli/commands/ConfigCommand.d.ts +0 -14
- package/dist/types/cli/commands/ConfigCommand.d.ts.map +0 -1
- package/dist/types/cli/commands/ExportCommand.d.ts +0 -48
- package/dist/types/cli/commands/ExportCommand.d.ts.map +0 -1
- package/dist/types/cli/commands/HistoryCommand.d.ts +0 -47
- package/dist/types/cli/commands/HistoryCommand.d.ts.map +0 -1
- package/dist/types/cli/commands/StatusCommand.d.ts +0 -30
- package/dist/types/cli/commands/StatusCommand.d.ts.map +0 -1
- package/dist/types/cli/commands/ThemeCommand.d.ts +0 -30
- package/dist/types/cli/commands/ThemeCommand.d.ts.map +0 -1
- package/dist/types/cli/help.d.ts +0 -12
- package/dist/types/cli/help.d.ts.map +0 -1
- package/dist/types/cli/index.d.ts +0 -15
- package/dist/types/cli/index.d.ts.map +0 -1
- package/dist/types/constants.d.ts +0 -119
- package/dist/types/constants.d.ts.map +0 -1
- package/dist/types/core.js +0 -28
- package/dist/types/example.d.ts +0 -18
- package/dist/types/example.d.ts.map +0 -1
- package/dist/types/exports-module.d.ts +0 -196
- package/dist/types/exports-module.d.ts.map +0 -1
- package/dist/types/handlers/AnalyticsLogHandler.d.ts +0 -8
- package/dist/types/handlers/AnalyticsLogHandler.d.ts.map +0 -1
- package/dist/types/handlers/ExportLogHandler.d.ts +0 -100
- package/dist/types/handlers/ExportLogHandler.d.ts.map +0 -1
- package/dist/types/handlers/FileLogHandler.d.ts +0 -33
- package/dist/types/handlers/FileLogHandler.d.ts.map +0 -1
- package/dist/types/handlers/RemoteLogHandler.d.ts +0 -11
- package/dist/types/handlers/RemoteLogHandler.d.ts.map +0 -1
- package/dist/types/handlers/index.d.ts +0 -8
- package/dist/types/handlers/index.d.ts.map +0 -1
- package/dist/types/handlers.js +0 -4
- package/dist/types/index.js +0 -4
- package/dist/types/main.d.ts +0 -2
- package/dist/types/main.d.ts.map +0 -1
- package/dist/types/styling/LogStyleBuilder.d.ts +0 -146
- package/dist/types/styling/LogStyleBuilder.d.ts.map +0 -1
- package/dist/types/styling/SemanticStyles.d.ts +0 -178
- package/dist/types/styling/SemanticStyles.d.ts.map +0 -1
- package/dist/types/styling/SmartPresets.d.ts +0 -22
- package/dist/types/styling/SmartPresets.d.ts.map +0 -1
- package/dist/types/styling/StyleBuilder.d.ts +0 -140
- package/dist/types/styling/StyleBuilder.d.ts.map +0 -1
- package/dist/types/styling/banners.d.ts +0 -42
- package/dist/types/styling/banners.d.ts.map +0 -1
- package/dist/types/styling/index.d.ts +0 -10
- package/dist/types/styling/index.d.ts.map +0 -1
- package/dist/types/styling/themes.d.ts +0 -7
- package/dist/types/styling/themes.d.ts.map +0 -1
- package/dist/types/styling-module.d.ts +0 -178
- package/dist/types/styling-module.d.ts.map +0 -1
- package/dist/types/types/core.d.ts +0 -221
- package/dist/types/types/core.d.ts.map +0 -1
- package/dist/types/types/handlers.d.ts +0 -85
- package/dist/types/types/handlers.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -7
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/utils/environment.d.ts +0 -47
- package/dist/types/utils/environment.d.ts.map +0 -1
- package/dist/types/utils/formatting.d.ts +0 -37
- package/dist/types/utils/formatting.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -7
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/opentui-detection.d.ts +0 -34
- package/dist/types/utils/opentui-detection.d.ts.map +0 -1
- package/dist/types/utils/output.d.ts +0 -41
- package/dist/types/utils/output.d.ts.map +0 -1
- package/dist/types/utils/stackTrace.d.ts +0 -6
- package/dist/types/utils/stackTrace.d.ts.map +0 -1
- package/dist/types/utils/timestamps.d.ts +0 -20
- package/dist/types/utils/timestamps.d.ts.map +0 -1
- package/dist/utils/environment.d.ts +0 -47
- package/dist/utils/environment.d.ts.map +0 -1
- package/dist/utils/environment.js +0 -85
- package/dist/utils/formatting.js +0 -117
- package/dist/utils/index.js +0 -6
- package/dist/utils/opentui-detection.d.ts +0 -34
- package/dist/utils/opentui-detection.d.ts.map +0 -1
- package/dist/utils/opentui-detection.js +0 -116
- package/dist/utils/output.js +0 -150
- package/dist/utils/stackTrace.js +0 -81
- package/dist/utils/timestamps.js +0 -71
- package/dist/vite.svg +0 -1
- package/docs/API.md +0 -691
- 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/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/public/vite.svg +0 -1
- package/src/Logger.ts +0 -1276
- package/src/ScopedLogger.ts +0 -454
- 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/constants.ts +0 -171
- package/src/core.ts +0 -393
- 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 -609
- package/src/handlers/FileLogHandler.ts +0 -169
- package/src/handlers/RemoteLogHandler.ts +0 -42
- package/src/handlers/index.ts +0 -8
- package/src/index.ts +0 -209
- package/src/main.ts +0 -196
- 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/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/types/core.ts +0 -236
- package/src/types/handlers.ts +0 -95
- package/src/types/index.ts +0 -35
- package/src/typescript.svg +0 -1
- package/src/utils/environment.ts +0 -94
- package/src/utils/formatting.ts +0 -142
- package/src/utils/index.ts +0 -21
- package/src/utils/opentui-detection.ts +0 -138
- package/src/utils/output.ts +0 -185
- package/src/utils/stackTrace.ts +0 -95
- 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 -223
|
@@ -1,582 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Full Release Pipeline - Granular AI Steps
|
|
3
|
-
|
|
4
|
-
on:
|
|
5
|
-
workflow_dispatch:
|
|
6
|
-
inputs:
|
|
7
|
-
version_type:
|
|
8
|
-
description: 'Tipo de versiΓ³n'
|
|
9
|
-
required: false
|
|
10
|
-
default: 'auto'
|
|
11
|
-
type: choice
|
|
12
|
-
options:
|
|
13
|
-
- auto
|
|
14
|
-
- patch
|
|
15
|
-
- minor
|
|
16
|
-
- major
|
|
17
|
-
version_prefix:
|
|
18
|
-
description: 'Prefijo de versiΓ³n'
|
|
19
|
-
required: false
|
|
20
|
-
default: 'stable'
|
|
21
|
-
type: choice
|
|
22
|
-
options:
|
|
23
|
-
- stable
|
|
24
|
-
- alpha
|
|
25
|
-
- beta
|
|
26
|
-
- rc
|
|
27
|
-
target_registry:
|
|
28
|
-
description: 'Registro objetivo'
|
|
29
|
-
required: false
|
|
30
|
-
default: 'both'
|
|
31
|
-
type: choice
|
|
32
|
-
options:
|
|
33
|
-
- npm
|
|
34
|
-
- github
|
|
35
|
-
- both
|
|
36
|
-
skip_tests:
|
|
37
|
-
description: 'Saltar tests (no recomendado)'
|
|
38
|
-
required: false
|
|
39
|
-
default: false
|
|
40
|
-
type: boolean
|
|
41
|
-
dry_run:
|
|
42
|
-
description: 'Solo mostrar quΓ© harΓa (dry run)'
|
|
43
|
-
required: false
|
|
44
|
-
default: false
|
|
45
|
-
type: boolean
|
|
46
|
-
push:
|
|
47
|
-
branches: [main]
|
|
48
|
-
paths-ignore:
|
|
49
|
-
- '*.md'
|
|
50
|
-
- '.github/workflows/docs-demo.yml'
|
|
51
|
-
|
|
52
|
-
# Concurrency control para evitar conflictos entre workflows de release
|
|
53
|
-
concurrency:
|
|
54
|
-
group: release-pipeline-${{ github.ref }}
|
|
55
|
-
cancel-in-progress: true
|
|
56
|
-
|
|
57
|
-
env:
|
|
58
|
-
NODE_VERSION: '20'
|
|
59
|
-
|
|
60
|
-
jobs:
|
|
61
|
-
# ===== STEP 1: AI VERSION ANALYSIS & GENERATION =====
|
|
62
|
-
ai-version-generation:
|
|
63
|
-
runs-on: ubuntu-latest
|
|
64
|
-
if: github.actor != 'github-actions[bot]'
|
|
65
|
-
permissions:
|
|
66
|
-
contents: write
|
|
67
|
-
|
|
68
|
-
outputs:
|
|
69
|
-
version: ${{ steps.version.outputs.version }}
|
|
70
|
-
tag: ${{ steps.version.outputs.tag }}
|
|
71
|
-
is_prerelease: ${{ steps.version.outputs.is_prerelease }}
|
|
72
|
-
release_channel: ${{ steps.version.outputs.release_channel }}
|
|
73
|
-
should_skip: ${{ steps.version.outputs.should_skip }}
|
|
74
|
-
|
|
75
|
-
steps:
|
|
76
|
-
- name: "π₯ Checkout code"
|
|
77
|
-
uses: actions/checkout@v4
|
|
78
|
-
with:
|
|
79
|
-
fetch-depth: 0
|
|
80
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
81
|
-
|
|
82
|
-
- name: "π¦ Setup Bun"
|
|
83
|
-
uses: oven-sh/setup-bun@v2
|
|
84
|
-
with:
|
|
85
|
-
bun-version: latest
|
|
86
|
-
|
|
87
|
-
- name: "π§ Install dependencies"
|
|
88
|
-
run: bun install --frozen-lockfile
|
|
89
|
-
|
|
90
|
-
- name: "π€ Setup Gemini CLI"
|
|
91
|
-
run: |
|
|
92
|
-
echo "π€ Configurando Gemini CLI..."
|
|
93
|
-
# Install Gemini CLI
|
|
94
|
-
npm install -g @google/generative-ai
|
|
95
|
-
# Verificar instalaciΓ³n
|
|
96
|
-
echo "β
Gemini CLI configurado"
|
|
97
|
-
env:
|
|
98
|
-
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
|
99
|
-
|
|
100
|
-
- name: "π€ Step 1: AI Version Analysis & Generation"
|
|
101
|
-
id: version
|
|
102
|
-
env:
|
|
103
|
-
VERSION_TYPE: ${{ inputs.version_type || 'auto' }}
|
|
104
|
-
VERSION_PREFIX: ${{ inputs.version_prefix || 'stable' }}
|
|
105
|
-
TARGET_REGISTRY: ${{ inputs.target_registry || 'npm' }}
|
|
106
|
-
DRY_RUN: ${{ inputs.dry_run || 'false' }}
|
|
107
|
-
run: |
|
|
108
|
-
echo "π€ === PASO 1: ANΓLISIS Y GENERACIΓN DE VERSIΓN CON AI ==="
|
|
109
|
-
|
|
110
|
-
# Mostrar contexto de ejecuciΓ³n
|
|
111
|
-
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
|
112
|
-
echo "π Ejecutando en modo manual con parΓ‘metros especificados"
|
|
113
|
-
else
|
|
114
|
-
echo "π Ejecutando automΓ‘ticamente desde push - usando defaults"
|
|
115
|
-
fi
|
|
116
|
-
|
|
117
|
-
# Preparar argumentos para version-manager usando variables de entorno
|
|
118
|
-
ARGS="--auto-approve"
|
|
119
|
-
|
|
120
|
-
if [ "$VERSION_TYPE" != "auto" ]; then
|
|
121
|
-
ARGS="$ARGS --type $VERSION_TYPE"
|
|
122
|
-
fi
|
|
123
|
-
|
|
124
|
-
if [ "$VERSION_PREFIX" != "stable" ]; then
|
|
125
|
-
ARGS="$ARGS --prefix $VERSION_PREFIX"
|
|
126
|
-
fi
|
|
127
|
-
|
|
128
|
-
# Mostrar comando que se ejecutarΓ‘
|
|
129
|
-
echo "π Ejecutando: bun project-utils/version-manager.ts $ARGS"
|
|
130
|
-
|
|
131
|
-
if [ "$DRY_RUN" = "true" ]; then
|
|
132
|
-
echo "π [DRY RUN] Se generarΓa nueva versiΓ³n con: $ARGS"
|
|
133
|
-
echo "should_skip=true" >> $GITHUB_OUTPUT
|
|
134
|
-
echo "version=dry-run" >> $GITHUB_OUTPUT
|
|
135
|
-
echo "tag=dry-run" >> $GITHUB_OUTPUT
|
|
136
|
-
echo "is_prerelease=false" >> $GITHUB_OUTPUT
|
|
137
|
-
echo "release_channel=dry-run" >> $GITHUB_OUTPUT
|
|
138
|
-
else
|
|
139
|
-
# Ejecutar version-manager con AI
|
|
140
|
-
echo "π Ejecutando version-manager con anΓ‘lisis AI..."
|
|
141
|
-
bun project-utils/version-manager.ts $ARGS
|
|
142
|
-
|
|
143
|
-
# Obtener nueva versiΓ³n del package.json
|
|
144
|
-
NEW_VERSION=$(node -p "require('./package.json').version")
|
|
145
|
-
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
|
|
146
|
-
echo "tag=v$NEW_VERSION" >> $GITHUB_OUTPUT
|
|
147
|
-
|
|
148
|
-
# Determinar si es prerelease y canal
|
|
149
|
-
case "$NEW_VERSION" in
|
|
150
|
-
*alpha*)
|
|
151
|
-
echo "is_prerelease=true" >> $GITHUB_OUTPUT
|
|
152
|
-
echo "release_channel=alpha" >> $GITHUB_OUTPUT
|
|
153
|
-
;;
|
|
154
|
-
*beta*)
|
|
155
|
-
echo "is_prerelease=true" >> $GITHUB_OUTPUT
|
|
156
|
-
echo "release_channel=beta" >> $GITHUB_OUTPUT
|
|
157
|
-
;;
|
|
158
|
-
*rc*)
|
|
159
|
-
echo "is_prerelease=true" >> $GITHUB_OUTPUT
|
|
160
|
-
echo "release_channel=rc" >> $GITHUB_OUTPUT
|
|
161
|
-
;;
|
|
162
|
-
*)
|
|
163
|
-
echo "is_prerelease=false" >> $GITHUB_OUTPUT
|
|
164
|
-
echo "release_channel=latest" >> $GITHUB_OUTPUT
|
|
165
|
-
;;
|
|
166
|
-
esac
|
|
167
|
-
|
|
168
|
-
echo "should_skip=false" >> $GITHUB_OUTPUT
|
|
169
|
-
echo "β
Nueva versiΓ³n generada: $NEW_VERSION"
|
|
170
|
-
fi
|
|
171
|
-
|
|
172
|
-
- name: "π·οΈ Commit and push version changes"
|
|
173
|
-
if: steps.version.outputs.should_skip != 'true'
|
|
174
|
-
run: |
|
|
175
|
-
echo "π·οΈ Commiteando cambios de versiΓ³n usando project-utils con resoluciΓ³n automΓ‘tica de conflictos..."
|
|
176
|
-
|
|
177
|
-
# Configurar environment variables para detectar contexto de release
|
|
178
|
-
export RELEASE_WORKFLOW=true
|
|
179
|
-
export GITHUB_WORKFLOW="${{ github.workflow }}"
|
|
180
|
-
|
|
181
|
-
# Usar commit-generator con contexto especΓfico de release
|
|
182
|
-
echo "π€ Usando commit-generator con detecciΓ³n automΓ‘tica de conflictos..."
|
|
183
|
-
bun project-utils/commit-generator.ts \
|
|
184
|
-
--context "release ${{ steps.version.outputs.version }}" \
|
|
185
|
-
--work-type "release" \
|
|
186
|
-
--affected-components "core,styling,exports,changelog" \
|
|
187
|
-
--auto-approve \
|
|
188
|
-
--quiet \
|
|
189
|
-
|| {
|
|
190
|
-
echo "β οΈ Commit-generator fallΓ³, usando estrategia de fallback..."
|
|
191
|
-
|
|
192
|
-
# Fallback: estrategia manual con pull-rebase-push
|
|
193
|
-
git config user.name "github-actions[bot]"
|
|
194
|
-
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
195
|
-
|
|
196
|
-
MAX_RETRIES=3
|
|
197
|
-
RETRY_COUNT=0
|
|
198
|
-
|
|
199
|
-
while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
|
|
200
|
-
echo "π Intento fallback $((RETRY_COUNT + 1))/$MAX_RETRIES"
|
|
201
|
-
|
|
202
|
-
git fetch origin main
|
|
203
|
-
if ! git merge-base --is-ancestor origin/main HEAD; then
|
|
204
|
-
echo "π Aplicando rebase..."
|
|
205
|
-
git rebase origin/main || {
|
|
206
|
-
echo "β οΈ Conflictos en rebase, aplicando reset hard"
|
|
207
|
-
git rebase --abort
|
|
208
|
-
git reset --hard origin/main
|
|
209
|
-
}
|
|
210
|
-
fi
|
|
211
|
-
|
|
212
|
-
git add package.json CHANGELOG.json packages/*/package.json
|
|
213
|
-
git commit -m "chore: release ${{ steps.version.outputs.version }} [skip ci]" || {
|
|
214
|
-
echo "βΉοΈ No hay cambios para commit"
|
|
215
|
-
break
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
if git push origin main; then
|
|
219
|
-
echo "β
Push exitoso en intento fallback $((RETRY_COUNT + 1))"
|
|
220
|
-
break
|
|
221
|
-
else
|
|
222
|
-
RETRY_COUNT=$((RETRY_COUNT + 1))
|
|
223
|
-
if [ $RETRY_COUNT -lt $MAX_RETRIES ]; then
|
|
224
|
-
sleep 5
|
|
225
|
-
git reset --hard HEAD~1
|
|
226
|
-
fi
|
|
227
|
-
fi
|
|
228
|
-
done
|
|
229
|
-
|
|
230
|
-
if [ $RETRY_COUNT -ge $MAX_RETRIES ]; then
|
|
231
|
-
echo "β Push fallΓ³ despuΓ©s de $MAX_RETRIES intentos"
|
|
232
|
-
exit 1
|
|
233
|
-
fi
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
- name: "π€ Upload version artifacts"
|
|
237
|
-
uses: actions/upload-artifact@v4
|
|
238
|
-
if: always()
|
|
239
|
-
with:
|
|
240
|
-
name: version-artifacts
|
|
241
|
-
path: |
|
|
242
|
-
project-utils/.temp/
|
|
243
|
-
CHANGELOG.json
|
|
244
|
-
package.json
|
|
245
|
-
retention-days: 7
|
|
246
|
-
|
|
247
|
-
# ===== STEP 2: BUILD & PREPARE =====
|
|
248
|
-
build-and-prepare:
|
|
249
|
-
runs-on: ubuntu-latest
|
|
250
|
-
needs: ai-version-generation
|
|
251
|
-
if: needs.ai-version-generation.outputs.should_skip != 'true'
|
|
252
|
-
|
|
253
|
-
steps:
|
|
254
|
-
- name: "π₯ Checkout code with version changes"
|
|
255
|
-
uses: actions/checkout@v4
|
|
256
|
-
with:
|
|
257
|
-
fetch-depth: 0
|
|
258
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
259
|
-
ref: main
|
|
260
|
-
|
|
261
|
-
- name: "π Pull latest changes"
|
|
262
|
-
run: git pull origin main
|
|
263
|
-
|
|
264
|
-
- name: "π¦ Setup Bun"
|
|
265
|
-
uses: oven-sh/setup-bun@v2
|
|
266
|
-
with:
|
|
267
|
-
bun-version: latest
|
|
268
|
-
|
|
269
|
-
- name: "π§ Install dependencies"
|
|
270
|
-
run: bun install --frozen-lockfile
|
|
271
|
-
|
|
272
|
-
- name: "π§ͺ Step 2: Run tests (unless skipped)"
|
|
273
|
-
if: github.event_name == 'workflow_dispatch' && github.event.inputs.skip_tests != 'true'
|
|
274
|
-
run: |
|
|
275
|
-
echo "π§ͺ === PASO 2: EJECUTANDO TESTS Y VALIDACIONES ==="
|
|
276
|
-
bun run type-check
|
|
277
|
-
bun run test
|
|
278
|
-
echo "β
Tests completados exitosamente"
|
|
279
|
-
|
|
280
|
-
- name: "ποΈ Step 3: Build all modules"
|
|
281
|
-
run: |
|
|
282
|
-
echo "ποΈ === PASO 3: COMPILANDO TODOS LOS MΓDULOS ==="
|
|
283
|
-
bun run build:all
|
|
284
|
-
echo "β
Build completado exitosamente"
|
|
285
|
-
|
|
286
|
-
# Mostrar archivos generados
|
|
287
|
-
echo "π Archivos generados:"
|
|
288
|
-
ls -la dist/
|
|
289
|
-
|
|
290
|
-
- name: "π€ Upload build artifacts"
|
|
291
|
-
uses: actions/upload-artifact@v4
|
|
292
|
-
with:
|
|
293
|
-
name: build-artifacts-${{ needs.ai-version-generation.outputs.version }}
|
|
294
|
-
path: dist/
|
|
295
|
-
retention-days: 30
|
|
296
|
-
|
|
297
|
-
# ===== STEP 3: PUBLISH SUB-PACKAGES =====
|
|
298
|
-
publish-subpackages:
|
|
299
|
-
runs-on: ubuntu-latest
|
|
300
|
-
needs: [ai-version-generation, build-and-prepare]
|
|
301
|
-
if: needs.ai-version-generation.outputs.should_skip != 'true'
|
|
302
|
-
|
|
303
|
-
steps:
|
|
304
|
-
- name: "π₯ Checkout code"
|
|
305
|
-
uses: actions/checkout@v4
|
|
306
|
-
with:
|
|
307
|
-
ref: main
|
|
308
|
-
|
|
309
|
-
- name: "π¦ Setup Node.js with NPM registry"
|
|
310
|
-
uses: actions/setup-node@v4
|
|
311
|
-
with:
|
|
312
|
-
node-version: '20'
|
|
313
|
-
registry-url: 'https://registry.npmjs.org'
|
|
314
|
-
|
|
315
|
-
- name: "π₯ Download build artifacts"
|
|
316
|
-
uses: actions/download-artifact@v4
|
|
317
|
-
with:
|
|
318
|
-
name: build-artifacts-${{ needs.ai-version-generation.outputs.version }}
|
|
319
|
-
path: dist/
|
|
320
|
-
|
|
321
|
-
- name: "π Step 3a: Publish Sub-Packages to NPM"
|
|
322
|
-
run: |
|
|
323
|
-
echo "π === PASO 3a: PUBLICANDO SUB-PACKAGES EN NPM ==="
|
|
324
|
-
|
|
325
|
-
# Core package
|
|
326
|
-
echo "π¦ Publishing @mks2508/better-logger-core"
|
|
327
|
-
cd packages/core
|
|
328
|
-
if [ "${{ needs.ai-version-generation.outputs.is_prerelease }}" = "true" ]; then
|
|
329
|
-
npm publish --access public --tag ${{ needs.ai-version-generation.outputs.release_channel }}
|
|
330
|
-
else
|
|
331
|
-
npm publish --access public
|
|
332
|
-
fi
|
|
333
|
-
cd ../..
|
|
334
|
-
|
|
335
|
-
# Styling package
|
|
336
|
-
echo "π¦ Publishing @mks2508/better-logger-styling"
|
|
337
|
-
cd packages/styling
|
|
338
|
-
if [ "${{ needs.ai-version-generation.outputs.is_prerelease }}" = "true" ]; then
|
|
339
|
-
npm publish --access public --tag ${{ needs.ai-version-generation.outputs.release_channel }}
|
|
340
|
-
else
|
|
341
|
-
npm publish --access public
|
|
342
|
-
fi
|
|
343
|
-
cd ../..
|
|
344
|
-
|
|
345
|
-
# Exports package
|
|
346
|
-
echo "π¦ Publishing @mks2508/better-logger-exports"
|
|
347
|
-
cd packages/exports
|
|
348
|
-
if [ "${{ needs.ai-version-generation.outputs.is_prerelease }}" = "true" ]; then
|
|
349
|
-
npm publish --access public --tag ${{ needs.ai-version-generation.outputs.release_channel }}
|
|
350
|
-
else
|
|
351
|
-
npm publish --access public
|
|
352
|
-
fi
|
|
353
|
-
cd ../..
|
|
354
|
-
|
|
355
|
-
echo "β
Sub-packages published successfully"
|
|
356
|
-
env:
|
|
357
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
358
|
-
|
|
359
|
-
# ===== STEP 4: NPM MAIN PACKAGE PUBLISHING =====
|
|
360
|
-
publish-npm:
|
|
361
|
-
runs-on: ubuntu-latest
|
|
362
|
-
needs: [ai-version-generation, build-and-prepare, publish-subpackages]
|
|
363
|
-
if: needs.ai-version-generation.outputs.should_skip != 'true' && (github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && (github.event.inputs.target_registry == 'npm' || github.event.inputs.target_registry == 'both')))
|
|
364
|
-
|
|
365
|
-
steps:
|
|
366
|
-
- name: "π₯ Checkout code"
|
|
367
|
-
uses: actions/checkout@v4
|
|
368
|
-
with:
|
|
369
|
-
ref: main
|
|
370
|
-
|
|
371
|
-
- name: "π¦ Setup Node.js with NPM registry"
|
|
372
|
-
uses: actions/setup-node@v4
|
|
373
|
-
with:
|
|
374
|
-
node-version: '20'
|
|
375
|
-
registry-url: 'https://registry.npmjs.org'
|
|
376
|
-
|
|
377
|
-
- name: "π₯ Download build artifacts"
|
|
378
|
-
uses: actions/download-artifact@v4
|
|
379
|
-
with:
|
|
380
|
-
name: build-artifacts-${{ needs.ai-version-generation.outputs.version }}
|
|
381
|
-
path: dist/
|
|
382
|
-
|
|
383
|
-
- name: "π Step 4: Publish to NPM Registry"
|
|
384
|
-
run: |
|
|
385
|
-
echo "π === PASO 4: PUBLICANDO EN NPM REGISTRY ==="
|
|
386
|
-
if [ "${{ needs.ai-version-generation.outputs.is_prerelease }}" = "true" ]; then
|
|
387
|
-
echo "π¦ Publishing prerelease to NPM with tag: ${{ needs.ai-version-generation.outputs.release_channel }}"
|
|
388
|
-
npm publish --access public --tag ${{ needs.ai-version-generation.outputs.release_channel }}
|
|
389
|
-
else
|
|
390
|
-
echo "π¦ Publishing stable release to NPM"
|
|
391
|
-
npm publish --access public
|
|
392
|
-
fi
|
|
393
|
-
echo "β
PublicaciΓ³n en NPM completada"
|
|
394
|
-
env:
|
|
395
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
396
|
-
|
|
397
|
-
# ===== STEP 4.5: DOCS & DEMO DEPLOYMENT =====
|
|
398
|
-
deploy-docs-demo:
|
|
399
|
-
runs-on: ubuntu-latest
|
|
400
|
-
needs: [ai-version-generation, build-and-prepare]
|
|
401
|
-
if: needs.ai-version-generation.outputs.should_skip != 'true'
|
|
402
|
-
|
|
403
|
-
steps:
|
|
404
|
-
- name: "π₯ Checkout code"
|
|
405
|
-
uses: actions/checkout@v4
|
|
406
|
-
|
|
407
|
-
- name: "π¦ Setup Bun"
|
|
408
|
-
uses: oven-sh/setup-bun@v2
|
|
409
|
-
with:
|
|
410
|
-
bun-version: latest
|
|
411
|
-
|
|
412
|
-
- name: "π§ Install dependencies"
|
|
413
|
-
run: bun install --frozen-lockfile
|
|
414
|
-
|
|
415
|
-
- name: "ποΈ Build library for demo"
|
|
416
|
-
run: bun run build:full
|
|
417
|
-
|
|
418
|
-
- name: "ποΈ Setup demo structure"
|
|
419
|
-
run: |
|
|
420
|
-
mkdir -p _site/docs
|
|
421
|
-
cp demo.html _site/index.html
|
|
422
|
-
cp index.html _site/dev.html
|
|
423
|
-
cp -r dist/ _site/dist/
|
|
424
|
-
|
|
425
|
-
- name: "π€ Build Jekyll documentation"
|
|
426
|
-
uses: actions/jekyll-build-pages@v1
|
|
427
|
-
with:
|
|
428
|
-
source: ./docs
|
|
429
|
-
destination: ./_site/docs
|
|
430
|
-
|
|
431
|
-
- name: "π€ Setup Pages"
|
|
432
|
-
uses: actions/configure-pages@v4
|
|
433
|
-
|
|
434
|
-
- name: "π€ Upload to Pages"
|
|
435
|
-
uses: actions/upload-pages-artifact@v3
|
|
436
|
-
with:
|
|
437
|
-
path: ./_site
|
|
438
|
-
|
|
439
|
-
- name: "π Deploy to GitHub Pages"
|
|
440
|
-
id: deployment
|
|
441
|
-
uses: actions/deploy-pages@v4
|
|
442
|
-
|
|
443
|
-
permissions:
|
|
444
|
-
contents: read
|
|
445
|
-
pages: write
|
|
446
|
-
id-token: write
|
|
447
|
-
|
|
448
|
-
# ===== STEP 4: GITHUB PACKAGES PUBLISHING =====
|
|
449
|
-
publish-github:
|
|
450
|
-
runs-on: ubuntu-latest
|
|
451
|
-
needs: [ai-version-generation, build-and-prepare, publish-subpackages]
|
|
452
|
-
if: needs.ai-version-generation.outputs.should_skip != 'true' && github.event_name == 'workflow_dispatch' && (github.event.inputs.target_registry == 'github' || github.event.inputs.target_registry == 'both')
|
|
453
|
-
|
|
454
|
-
steps:
|
|
455
|
-
- name: "π₯ Checkout code"
|
|
456
|
-
uses: actions/checkout@v4
|
|
457
|
-
with:
|
|
458
|
-
ref: main
|
|
459
|
-
|
|
460
|
-
- name: "π¦ Setup Node.js with GitHub registry"
|
|
461
|
-
uses: actions/setup-node@v4
|
|
462
|
-
with:
|
|
463
|
-
node-version: '20'
|
|
464
|
-
registry-url: 'https://npm.pkg.github.com'
|
|
465
|
-
|
|
466
|
-
- name: "π₯ Download build artifacts"
|
|
467
|
-
uses: actions/download-artifact@v4
|
|
468
|
-
with:
|
|
469
|
-
name: build-artifacts-${{ needs.ai-version-generation.outputs.version }}
|
|
470
|
-
path: dist/
|
|
471
|
-
|
|
472
|
-
- name: "π¦ Step 5: Publish to GitHub Packages"
|
|
473
|
-
run: |
|
|
474
|
-
echo "π¦ === PASO 5: PUBLICANDO EN GITHUB PACKAGES ==="
|
|
475
|
-
if [ "${{ needs.ai-version-generation.outputs.is_prerelease }}" = "true" ]; then
|
|
476
|
-
echo "π¦ Publishing prerelease to GitHub Packages with tag: ${{ needs.ai-version-generation.outputs.release_channel }}"
|
|
477
|
-
npm publish --access public --tag ${{ needs.ai-version-generation.outputs.release_channel }}
|
|
478
|
-
else
|
|
479
|
-
echo "π¦ Publishing stable release to GitHub Packages"
|
|
480
|
-
npm publish --access public
|
|
481
|
-
fi
|
|
482
|
-
echo "β
PublicaciΓ³n en GitHub Packages completada"
|
|
483
|
-
env:
|
|
484
|
-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
485
|
-
|
|
486
|
-
# ===== STEP 5: GITHUB RELEASE WITH AI =====
|
|
487
|
-
create-github-release:
|
|
488
|
-
runs-on: ubuntu-latest
|
|
489
|
-
needs: [ai-version-generation, build-and-prepare, publish-subpackages, publish-npm, publish-github, deploy-docs-demo]
|
|
490
|
-
if: always() && needs.ai-version-generation.outputs.should_skip != 'true' && needs.build-and-prepare.result == 'success'
|
|
491
|
-
|
|
492
|
-
permissions:
|
|
493
|
-
contents: write
|
|
494
|
-
|
|
495
|
-
steps:
|
|
496
|
-
- name: "π₯ Checkout code"
|
|
497
|
-
uses: actions/checkout@v4
|
|
498
|
-
with:
|
|
499
|
-
fetch-depth: 0
|
|
500
|
-
ref: main
|
|
501
|
-
|
|
502
|
-
- name: "π¦ Setup Bun"
|
|
503
|
-
uses: oven-sh/setup-bun@v2
|
|
504
|
-
with:
|
|
505
|
-
bun-version: latest
|
|
506
|
-
|
|
507
|
-
- name: "π§ Install dependencies"
|
|
508
|
-
run: bun install --frozen-lockfile
|
|
509
|
-
|
|
510
|
-
- name: "π₯ Download build artifacts"
|
|
511
|
-
uses: actions/download-artifact@v4
|
|
512
|
-
with:
|
|
513
|
-
name: build-artifacts-${{ needs.ai-version-generation.outputs.version }}
|
|
514
|
-
path: dist/
|
|
515
|
-
|
|
516
|
-
- name: "π·οΈ Create git tag"
|
|
517
|
-
run: |
|
|
518
|
-
echo "π·οΈ Creando tag de git..."
|
|
519
|
-
git config user.name "github-actions[bot]"
|
|
520
|
-
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
521
|
-
git tag -a "${{ needs.ai-version-generation.outputs.tag }}" -m "Release ${{ needs.ai-version-generation.outputs.version }}"
|
|
522
|
-
git push origin --tags
|
|
523
|
-
|
|
524
|
-
- name: "π Step 6: Create GitHub Release with AI"
|
|
525
|
-
run: |
|
|
526
|
-
echo "π === PASO 6: CREANDO GITHUB RELEASE CON AI ==="
|
|
527
|
-
bun project-utils/github-release-manager.ts --auto-approve
|
|
528
|
-
echo "β
GitHub Release creado exitosamente"
|
|
529
|
-
env:
|
|
530
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
531
|
-
|
|
532
|
-
# ===== RELEASE SUMMARY =====
|
|
533
|
-
release-summary:
|
|
534
|
-
runs-on: ubuntu-latest
|
|
535
|
-
needs: [ai-version-generation, build-and-prepare, publish-subpackages, publish-npm, publish-github, deploy-docs-demo, create-github-release]
|
|
536
|
-
if: always() && needs.ai-version-generation.outputs.should_skip != 'true'
|
|
537
|
-
|
|
538
|
-
steps:
|
|
539
|
-
- name: "π Comprehensive Release Summary"
|
|
540
|
-
run: |
|
|
541
|
-
VERSION="${{ needs.ai-version-generation.outputs.version }}"
|
|
542
|
-
TAG="${{ needs.ai-version-generation.outputs.tag }}"
|
|
543
|
-
CHANNEL="${{ needs.ai-version-generation.outputs.release_channel }}"
|
|
544
|
-
IS_PRERELEASE="${{ needs.ai-version-generation.outputs.is_prerelease }}"
|
|
545
|
-
|
|
546
|
-
echo "## π Full Release Pipeline Complete!" >> $GITHUB_STEP_SUMMARY
|
|
547
|
-
echo "- **Version**: $VERSION" >> $GITHUB_STEP_SUMMARY
|
|
548
|
-
echo "- **Channel**: $CHANNEL" >> $GITHUB_STEP_SUMMARY
|
|
549
|
-
echo "- **Prerelease**: $IS_PRERELEASE" >> $GITHUB_STEP_SUMMARY
|
|
550
|
-
echo "" >> $GITHUB_STEP_SUMMARY
|
|
551
|
-
|
|
552
|
-
echo "### π Pipeline Steps Results" >> $GITHUB_STEP_SUMMARY
|
|
553
|
-
echo "1. **AI Version Generation**: β
$VERSION" >> $GITHUB_STEP_SUMMARY
|
|
554
|
-
echo "2. **Build & Prepare**: ${{ needs.build-and-prepare.result }}" >> $GITHUB_STEP_SUMMARY
|
|
555
|
-
echo "3. **Sub-Packages Publishing**: ${{ needs.publish-subpackages.result }}" >> $GITHUB_STEP_SUMMARY
|
|
556
|
-
echo "4. **Main NPM Publishing**: ${{ needs.publish-npm.result }}" >> $GITHUB_STEP_SUMMARY
|
|
557
|
-
echo "5. **GitHub Packages**: ${{ needs.publish-github.result }}" >> $GITHUB_STEP_SUMMARY
|
|
558
|
-
echo "6. **Docs & Demo Deployment**: ${{ needs.deploy-docs-demo.result }}" >> $GITHUB_STEP_SUMMARY
|
|
559
|
-
echo "7. **GitHub Release**: ${{ needs.create-github-release.result }}" >> $GITHUB_STEP_SUMMARY
|
|
560
|
-
echo "" >> $GITHUB_STEP_SUMMARY
|
|
561
|
-
|
|
562
|
-
echo "### π Links" >> $GITHUB_STEP_SUMMARY
|
|
563
|
-
if [ "${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && (github.event.inputs.target_registry == 'npm' || github.event.inputs.target_registry == 'both')) }}" = "true" ]; then
|
|
564
|
-
echo "- **Main Package**: https://www.npmjs.com/package/@mks2508/better-logger" >> $GITHUB_STEP_SUMMARY
|
|
565
|
-
echo "- **Core Package**: https://www.npmjs.com/package/@mks2508/better-logger-core" >> $GITHUB_STEP_SUMMARY
|
|
566
|
-
echo "- **Styling Package**: https://www.npmjs.com/package/@mks2508/better-logger-styling" >> $GITHUB_STEP_SUMMARY
|
|
567
|
-
echo "- **Exports Package**: https://www.npmjs.com/package/@mks2508/better-logger-exports" >> $GITHUB_STEP_SUMMARY
|
|
568
|
-
fi
|
|
569
|
-
if [ "${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.target_registry == 'github' || github.event.inputs.target_registry == 'both') }}" = "true" ]; then
|
|
570
|
-
echo "- **GitHub Packages**: https://github.com/MKS2508/advanced-logger/packages/" >> $GITHUB_STEP_SUMMARY
|
|
571
|
-
fi
|
|
572
|
-
echo "- **GitHub Release**: https://github.com/MKS2508/advanced-logger/releases/tag/$TAG" >> $GITHUB_STEP_SUMMARY
|
|
573
|
-
echo "" >> $GITHUB_STEP_SUMMARY
|
|
574
|
-
|
|
575
|
-
echo "### π¦ Installation" >> $GITHUB_STEP_SUMMARY
|
|
576
|
-
echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
|
|
577
|
-
if [ "$IS_PRERELEASE" = "true" ]; then
|
|
578
|
-
echo "npm install @mks2508/better-logger@$CHANNEL" >> $GITHUB_STEP_SUMMARY
|
|
579
|
-
else
|
|
580
|
-
echo "npm install @mks2508/better-logger" >> $GITHUB_STEP_SUMMARY
|
|
581
|
-
fi
|
|
582
|
-
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
|