@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.
Files changed (472) hide show
  1. package/README.md +50 -244
  2. package/dist/Logger.d.ts +662 -202
  3. package/dist/Logger.d.ts.map +1 -1
  4. package/dist/ScopedLogger.d.ts +434 -175
  5. package/dist/ScopedLogger.d.ts.map +1 -1
  6. package/dist/chunks/HookBridge-C-AvXmPD.cjs +504 -0
  7. package/dist/chunks/HookBridge-C-AvXmPD.cjs.map +1 -0
  8. package/dist/chunks/HookBridge-CI2PH79S.js +487 -0
  9. package/dist/chunks/HookBridge-CI2PH79S.js.map +1 -0
  10. package/dist/chunks/LogContext-BaMXleWj.cjs +105 -0
  11. package/dist/chunks/LogContext-BaMXleWj.cjs.map +1 -0
  12. package/dist/chunks/LogContext-DjlITOzZ.js +100 -0
  13. package/dist/chunks/LogContext-DjlITOzZ.js.map +1 -0
  14. package/dist/chunks/SerializerBridge-Ba43Mk7j.js +393 -0
  15. package/dist/chunks/SerializerBridge-Ba43Mk7j.js.map +1 -0
  16. package/dist/chunks/SerializerBridge-C4a9Z37F.cjs +410 -0
  17. package/dist/chunks/SerializerBridge-C4a9Z37F.cjs.map +1 -0
  18. package/dist/chunks/StyleManager-DQ6UNRB-.cjs +118 -0
  19. package/dist/chunks/StyleManager-DQ6UNRB-.cjs.map +1 -0
  20. package/dist/chunks/StyleManager-DjwAYbxE.js +113 -0
  21. package/dist/chunks/StyleManager-DjwAYbxE.js.map +1 -0
  22. package/dist/chunks/core-Blfi2klP.js +31 -0
  23. package/dist/chunks/core-Blfi2klP.js.map +1 -0
  24. package/dist/chunks/core-CqS_UBzJ.cjs +36 -0
  25. package/dist/chunks/core-CqS_UBzJ.cjs.map +1 -0
  26. package/dist/chunks/environment-detector-7NvnYUfr.js +110 -0
  27. package/dist/chunks/environment-detector-7NvnYUfr.js.map +1 -0
  28. package/dist/chunks/environment-detector-D-tHkKWA.cjs +163 -0
  29. package/dist/chunks/environment-detector-D-tHkKWA.cjs.map +1 -0
  30. package/dist/chunks/server-fallback-CaCPjWby.cjs +119 -0
  31. package/dist/chunks/server-fallback-CaCPjWby.cjs.map +1 -0
  32. package/dist/chunks/server-fallback-jj0T6XaK.js +114 -0
  33. package/dist/chunks/server-fallback-jj0T6XaK.js.map +1 -0
  34. package/dist/chunks/spinner-BHyYEXsM.cjs +1029 -0
  35. package/dist/chunks/spinner-BHyYEXsM.cjs.map +1 -0
  36. package/dist/chunks/spinner-BtkwpzYv.js +982 -0
  37. package/dist/chunks/spinner-BtkwpzYv.js.map +1 -0
  38. package/dist/chunks/styling-CRw3KQW4.js +1592 -0
  39. package/dist/chunks/styling-CRw3KQW4.js.map +1 -0
  40. package/dist/chunks/styling-Cel2wPRy.cjs +1645 -0
  41. package/dist/chunks/styling-Cel2wPRy.cjs.map +1 -0
  42. package/dist/chunks/transports-BGfwwakw.js +1237 -0
  43. package/dist/chunks/transports-BGfwwakw.js.map +1 -0
  44. package/dist/chunks/transports-yK6CL0Ml.cjs +1278 -0
  45. package/dist/chunks/transports-yK6CL0Ml.cjs.map +1 -0
  46. package/dist/chunks/utils-W_cxqriN.cjs +705 -0
  47. package/dist/chunks/utils-W_cxqriN.cjs.map +1 -0
  48. package/dist/chunks/utils-tKfBAWUM.js +586 -0
  49. package/dist/chunks/utils-tKfBAWUM.js.map +1 -0
  50. package/dist/cli/CommandProcessor.d.ts +166 -19
  51. package/dist/cli/CommandProcessor.d.ts.map +1 -1
  52. package/dist/cli/commands/ConfigCommand.d.ts +36 -1
  53. package/dist/cli/commands/ConfigCommand.d.ts.map +1 -1
  54. package/dist/cli/commands/ExportCommand.d.ts +54 -26
  55. package/dist/cli/commands/ExportCommand.d.ts.map +1 -1
  56. package/dist/cli/commands/ThemeCommand.d.ts +62 -3
  57. package/dist/cli/commands/ThemeCommand.d.ts.map +1 -1
  58. package/dist/cli/help.d.ts +30 -2
  59. package/dist/cli/help.d.ts.map +1 -1
  60. package/dist/cli/index.d.ts +30 -4
  61. package/dist/cli/index.d.ts.map +1 -1
  62. package/dist/cli-module.d.ts +13 -0
  63. package/dist/cli-module.d.ts.map +1 -0
  64. package/dist/cli.cjs +11 -0
  65. package/dist/cli.js +3 -0
  66. package/dist/constants.d.ts +16 -47
  67. package/dist/constants.d.ts.map +1 -1
  68. package/dist/context/LogContext.d.ts +245 -0
  69. package/dist/context/LogContext.d.ts.map +1 -0
  70. package/dist/context/index.d.ts +6 -0
  71. package/dist/context/index.d.ts.map +1 -0
  72. package/dist/context-module.d.ts +6 -0
  73. package/dist/context-module.d.ts.map +1 -0
  74. package/dist/context.cjs +3 -0
  75. package/dist/context.js +2 -0
  76. package/dist/core.cjs +304 -2
  77. package/dist/core.cjs.map +1 -1
  78. package/dist/core.d.ts +56 -34
  79. package/dist/core.d.ts.map +1 -1
  80. package/dist/core.js +281 -314
  81. package/dist/core.js.map +1 -1
  82. package/dist/hooks/HookBridge.d.ts +32 -0
  83. package/dist/hooks/HookBridge.d.ts.map +1 -0
  84. package/dist/hooks/HookManager.d.ts +319 -0
  85. package/dist/hooks/HookManager.d.ts.map +1 -0
  86. package/dist/hooks/index.d.ts +7 -0
  87. package/dist/hooks/index.d.ts.map +1 -0
  88. package/dist/hooks-module.d.ts +7 -0
  89. package/dist/hooks-module.d.ts.map +1 -0
  90. package/dist/hooks.cjs +5 -0
  91. package/dist/hooks.js +2 -0
  92. package/dist/index.cjs +3402 -2
  93. package/dist/index.cjs.map +1 -1
  94. package/dist/index.d.ts +42 -130
  95. package/dist/index.d.ts.map +1 -1
  96. package/dist/index.js +3327 -158
  97. package/dist/index.js.map +1 -1
  98. package/dist/node-module.d.ts +10 -0
  99. package/dist/node-module.d.ts.map +1 -0
  100. package/dist/node.cjs +13 -0
  101. package/dist/node.cjs.map +1 -0
  102. package/dist/node.js +12 -0
  103. package/dist/node.js.map +1 -0
  104. package/dist/playground/TerminalBridge.d.ts +53 -0
  105. package/dist/playground/TerminalBridge.d.ts.map +1 -0
  106. package/dist/playground/box.d.ts +45 -0
  107. package/dist/playground/box.d.ts.map +1 -0
  108. package/dist/playground/cli-table.d.ts +50 -0
  109. package/dist/playground/cli-table.d.ts.map +1 -0
  110. package/dist/playground/divider.d.ts +29 -0
  111. package/dist/playground/divider.d.ts.map +1 -0
  112. package/dist/playground/header.d.ts +28 -0
  113. package/dist/playground/header.d.ts.map +1 -0
  114. package/dist/playground/index.d.ts +11 -0
  115. package/dist/playground/index.d.ts.map +1 -0
  116. package/dist/playground/server-fallback.d.ts +114 -0
  117. package/dist/playground/server-fallback.d.ts.map +1 -0
  118. package/dist/playground/spinner.d.ts +197 -0
  119. package/dist/playground/spinner.d.ts.map +1 -0
  120. package/dist/playground/step.d.ts +33 -0
  121. package/dist/playground/step.d.ts.map +1 -0
  122. package/dist/playground-module.d.ts +11 -0
  123. package/dist/playground-module.d.ts.map +1 -0
  124. package/dist/playground.cjs +9 -0
  125. package/dist/playground.js +2 -0
  126. package/dist/serializers/SerializerBridge.d.ts +28 -0
  127. package/dist/serializers/SerializerBridge.d.ts.map +1 -0
  128. package/dist/serializers/SerializerRegistry.d.ts +252 -0
  129. package/dist/serializers/SerializerRegistry.d.ts.map +1 -0
  130. package/dist/serializers/index.d.ts +7 -0
  131. package/dist/serializers/index.d.ts.map +1 -0
  132. package/dist/serializers-module.d.ts +7 -0
  133. package/dist/serializers-module.d.ts.map +1 -0
  134. package/dist/serializers.cjs +5 -0
  135. package/dist/serializers.js +2 -0
  136. package/dist/styles/StyleManager.d.ts +190 -0
  137. package/dist/styles/StyleManager.d.ts.map +1 -0
  138. package/dist/styles/index.d.ts +7 -0
  139. package/dist/styles/index.d.ts.map +1 -0
  140. package/dist/styles-module.d.ts +7 -0
  141. package/dist/styles-module.d.ts.map +1 -0
  142. package/dist/styles.cjs +7 -0
  143. package/dist/styles.js +3 -0
  144. package/dist/styling/SmartPresets.d.ts +100 -6
  145. package/dist/styling/SmartPresets.d.ts.map +1 -1
  146. package/dist/styling/StyleBuilder.d.ts +453 -32
  147. package/dist/styling/StyleBuilder.d.ts.map +1 -1
  148. package/dist/styling/banners.d.ts +85 -5
  149. package/dist/styling/banners.d.ts.map +1 -1
  150. package/dist/styling/index.d.ts +8 -3
  151. package/dist/styling/index.d.ts.map +1 -1
  152. package/dist/styling/themes.d.ts +41 -2
  153. package/dist/styling/themes.d.ts.map +1 -1
  154. package/dist/terminal/color-converter.d.ts +73 -0
  155. package/dist/terminal/color-converter.d.ts.map +1 -0
  156. package/dist/terminal/formatter.d.ts +23 -0
  157. package/dist/terminal/formatter.d.ts.map +1 -0
  158. package/dist/transports/ConsoleTransport.d.ts +104 -0
  159. package/dist/transports/ConsoleTransport.d.ts.map +1 -0
  160. package/dist/transports/FileTransport.d.ts +137 -0
  161. package/dist/transports/FileTransport.d.ts.map +1 -0
  162. package/dist/transports/HttpTransport.d.ts +180 -0
  163. package/dist/transports/HttpTransport.d.ts.map +1 -0
  164. package/dist/transports/OtlpTransport.d.ts +165 -0
  165. package/dist/transports/OtlpTransport.d.ts.map +1 -0
  166. package/dist/transports/TransportBridge.d.ts +43 -0
  167. package/dist/transports/TransportBridge.d.ts.map +1 -0
  168. package/dist/transports/TransportManager.d.ts +251 -0
  169. package/dist/transports/TransportManager.d.ts.map +1 -0
  170. package/dist/transports/index.d.ts +6 -0
  171. package/dist/transports/index.d.ts.map +1 -0
  172. package/dist/transports-module.d.ts +10 -0
  173. package/dist/transports-module.d.ts.map +1 -0
  174. package/dist/transports.cjs +7 -0
  175. package/dist/transports.js +2 -0
  176. package/dist/types/core.d.ts +295 -17
  177. package/dist/types/core.d.ts.map +1 -1
  178. package/dist/types/handlers.d.ts +0 -67
  179. package/dist/types/handlers.d.ts.map +1 -1
  180. package/dist/types/hooks.d.ts +138 -0
  181. package/dist/types/hooks.d.ts.map +1 -0
  182. package/dist/types/index.d.ts +7 -3
  183. package/dist/types/index.d.ts.map +1 -1
  184. package/dist/types/serializers.d.ts +97 -0
  185. package/dist/types/serializers.d.ts.map +1 -0
  186. package/dist/types/transports.d.ts +132 -0
  187. package/dist/types/transports.d.ts.map +1 -0
  188. package/dist/utils/ansi-colors.d.ts +115 -0
  189. package/dist/utils/ansi-colors.d.ts.map +1 -0
  190. package/dist/utils/environment-detector.d.ts +53 -0
  191. package/dist/utils/environment-detector.d.ts.map +1 -0
  192. package/dist/utils/formatting.d.ts +9 -8
  193. package/dist/utils/formatting.d.ts.map +1 -1
  194. package/dist/utils/index.d.ts +3 -2
  195. package/dist/utils/index.d.ts.map +1 -1
  196. package/dist/utils/output.d.ts +14 -17
  197. package/dist/utils/output.d.ts.map +1 -1
  198. package/dist/utils/stackTrace.d.ts +2 -2
  199. package/dist/utils/stackTrace.d.ts.map +1 -1
  200. package/dist/utils/timestamps.d.ts +0 -12
  201. package/dist/utils/timestamps.d.ts.map +1 -1
  202. package/package.json +95 -21
  203. package/.claude/settings.local.json +0 -39
  204. package/.github/workflows/ci-quality.yml +0 -357
  205. package/.github/workflows/docs-demo.yml +0 -119
  206. package/.github/workflows/releases-core.yml +0 -512
  207. package/.github/workflows/releases-full.yml +0 -582
  208. package/.github/workflows-backup/ci.yml +0 -221
  209. package/.github/workflows-backup/nightly.yml +0 -196
  210. package/.github/workflows-backup/release-optimized.yml +0 -373
  211. package/.github/workflows-backup/release.yml +0 -269
  212. package/.release-notes-0.2.0.md +0 -129
  213. package/.yamllint +0 -28
  214. package/CHANGELOG.json +0 -865
  215. package/CLAUDE.md +0 -204
  216. package/bun.lock +0 -323
  217. package/demo.html +0 -847
  218. package/dist/.tsbuildinfo +0 -1
  219. package/dist/Logger.js +0 -1124
  220. package/dist/ScopedLogger.js +0 -426
  221. package/dist/chunks/Logger-Crw1woqR.js +0 -3464
  222. package/dist/chunks/Logger-Crw1woqR.js.map +0 -1
  223. package/dist/chunks/Logger-D_p3xnbq.js +0 -2
  224. package/dist/chunks/Logger-D_p3xnbq.js.map +0 -1
  225. package/dist/chunks/RemoteLogHandler-CjWpWZGl.js +0 -33
  226. package/dist/chunks/RemoteLogHandler-CjWpWZGl.js.map +0 -1
  227. package/dist/chunks/RemoteLogHandler-ymkQ97xl.js +0 -2
  228. package/dist/chunks/RemoteLogHandler-ymkQ97xl.js.map +0 -1
  229. package/dist/chunks/environment-Bxbnw4pd.js +0 -544
  230. package/dist/chunks/environment-Bxbnw4pd.js.map +0 -1
  231. package/dist/chunks/environment-Dm66zOML.js +0 -4
  232. package/dist/chunks/environment-Dm66zOML.js.map +0 -1
  233. package/dist/chunks/formatting-C0riPC5_.js +0 -95
  234. package/dist/chunks/formatting-C0riPC5_.js.map +0 -1
  235. package/dist/chunks/formatting-DNCAV66-.js +0 -2
  236. package/dist/chunks/formatting-DNCAV66-.js.map +0 -1
  237. package/dist/cli/CommandProcessor.js +0 -184
  238. package/dist/cli/commands/ConfigCommand.js +0 -88
  239. package/dist/cli/commands/ExportCommand.js +0 -243
  240. package/dist/cli/commands/HistoryCommand.d.ts +0 -50
  241. package/dist/cli/commands/HistoryCommand.d.ts.map +0 -1
  242. package/dist/cli/commands/HistoryCommand.js +0 -96
  243. package/dist/cli/commands/StatusCommand.d.ts +0 -33
  244. package/dist/cli/commands/StatusCommand.d.ts.map +0 -1
  245. package/dist/cli/commands/StatusCommand.js +0 -93
  246. package/dist/cli/commands/ThemeCommand.js +0 -79
  247. package/dist/cli/help.js +0 -118
  248. package/dist/cli/index.js +0 -46
  249. package/dist/constants.js +0 -159
  250. package/dist/example.d.ts +0 -18
  251. package/dist/example.d.ts.map +0 -1
  252. package/dist/example.js +0 -154
  253. package/dist/exports-module.d.ts +0 -203
  254. package/dist/exports-module.d.ts.map +0 -1
  255. package/dist/exports-module.js +0 -260
  256. package/dist/exports.cjs +0 -2
  257. package/dist/exports.cjs.map +0 -1
  258. package/dist/exports.js +0 -238
  259. package/dist/exports.js.map +0 -1
  260. package/dist/handlers/AnalyticsLogHandler.d.ts +0 -11
  261. package/dist/handlers/AnalyticsLogHandler.d.ts.map +0 -1
  262. package/dist/handlers/AnalyticsLogHandler.js +0 -19
  263. package/dist/handlers/ExportLogHandler.d.ts +0 -103
  264. package/dist/handlers/ExportLogHandler.d.ts.map +0 -1
  265. package/dist/handlers/ExportLogHandler.js +0 -516
  266. package/dist/handlers/FileLogHandler.d.ts +0 -36
  267. package/dist/handlers/FileLogHandler.d.ts.map +0 -1
  268. package/dist/handlers/FileLogHandler.js +0 -156
  269. package/dist/handlers/RemoteLogHandler.d.ts +0 -14
  270. package/dist/handlers/RemoteLogHandler.d.ts.map +0 -1
  271. package/dist/handlers/RemoteLogHandler.js +0 -37
  272. package/dist/handlers/index.d.ts +0 -8
  273. package/dist/handlers/index.d.ts.map +0 -1
  274. package/dist/handlers/index.js +0 -7
  275. package/dist/main.d.ts +0 -2
  276. package/dist/main.d.ts.map +0 -1
  277. package/dist/main.js +0 -139
  278. package/dist/styling/LogStyleBuilder.d.ts +0 -149
  279. package/dist/styling/LogStyleBuilder.d.ts.map +0 -1
  280. package/dist/styling/LogStyleBuilder.js +0 -289
  281. package/dist/styling/SemanticStyles.d.ts +0 -181
  282. package/dist/styling/SemanticStyles.d.ts.map +0 -1
  283. package/dist/styling/SemanticStyles.js +0 -339
  284. package/dist/styling/SmartPresets.js +0 -276
  285. package/dist/styling/StyleBuilder.js +0 -280
  286. package/dist/styling/banners.js +0 -155
  287. package/dist/styling/index.js +0 -9
  288. package/dist/styling/themes.js +0 -231
  289. package/dist/styling-module.d.ts +0 -185
  290. package/dist/styling-module.d.ts.map +0 -1
  291. package/dist/styling-module.js +0 -199
  292. package/dist/styling.cjs +0 -2
  293. package/dist/styling.cjs.map +0 -1
  294. package/dist/styling.js +0 -146
  295. package/dist/styling.js.map +0 -1
  296. package/dist/types/Logger.d.ts +0 -700
  297. package/dist/types/Logger.d.ts.map +0 -1
  298. package/dist/types/ScopedLogger.d.ts +0 -310
  299. package/dist/types/ScopedLogger.d.ts.map +0 -1
  300. package/dist/types/cli/CommandProcessor.d.ts +0 -100
  301. package/dist/types/cli/CommandProcessor.d.ts.map +0 -1
  302. package/dist/types/cli/commands/ConfigCommand.d.ts +0 -14
  303. package/dist/types/cli/commands/ConfigCommand.d.ts.map +0 -1
  304. package/dist/types/cli/commands/ExportCommand.d.ts +0 -48
  305. package/dist/types/cli/commands/ExportCommand.d.ts.map +0 -1
  306. package/dist/types/cli/commands/HistoryCommand.d.ts +0 -47
  307. package/dist/types/cli/commands/HistoryCommand.d.ts.map +0 -1
  308. package/dist/types/cli/commands/StatusCommand.d.ts +0 -30
  309. package/dist/types/cli/commands/StatusCommand.d.ts.map +0 -1
  310. package/dist/types/cli/commands/ThemeCommand.d.ts +0 -30
  311. package/dist/types/cli/commands/ThemeCommand.d.ts.map +0 -1
  312. package/dist/types/cli/help.d.ts +0 -12
  313. package/dist/types/cli/help.d.ts.map +0 -1
  314. package/dist/types/cli/index.d.ts +0 -15
  315. package/dist/types/cli/index.d.ts.map +0 -1
  316. package/dist/types/constants.d.ts +0 -119
  317. package/dist/types/constants.d.ts.map +0 -1
  318. package/dist/types/core.js +0 -28
  319. package/dist/types/example.d.ts +0 -18
  320. package/dist/types/example.d.ts.map +0 -1
  321. package/dist/types/exports-module.d.ts +0 -196
  322. package/dist/types/exports-module.d.ts.map +0 -1
  323. package/dist/types/handlers/AnalyticsLogHandler.d.ts +0 -8
  324. package/dist/types/handlers/AnalyticsLogHandler.d.ts.map +0 -1
  325. package/dist/types/handlers/ExportLogHandler.d.ts +0 -100
  326. package/dist/types/handlers/ExportLogHandler.d.ts.map +0 -1
  327. package/dist/types/handlers/FileLogHandler.d.ts +0 -33
  328. package/dist/types/handlers/FileLogHandler.d.ts.map +0 -1
  329. package/dist/types/handlers/RemoteLogHandler.d.ts +0 -11
  330. package/dist/types/handlers/RemoteLogHandler.d.ts.map +0 -1
  331. package/dist/types/handlers/index.d.ts +0 -8
  332. package/dist/types/handlers/index.d.ts.map +0 -1
  333. package/dist/types/handlers.js +0 -4
  334. package/dist/types/index.js +0 -4
  335. package/dist/types/main.d.ts +0 -2
  336. package/dist/types/main.d.ts.map +0 -1
  337. package/dist/types/styling/LogStyleBuilder.d.ts +0 -146
  338. package/dist/types/styling/LogStyleBuilder.d.ts.map +0 -1
  339. package/dist/types/styling/SemanticStyles.d.ts +0 -178
  340. package/dist/types/styling/SemanticStyles.d.ts.map +0 -1
  341. package/dist/types/styling/SmartPresets.d.ts +0 -22
  342. package/dist/types/styling/SmartPresets.d.ts.map +0 -1
  343. package/dist/types/styling/StyleBuilder.d.ts +0 -140
  344. package/dist/types/styling/StyleBuilder.d.ts.map +0 -1
  345. package/dist/types/styling/banners.d.ts +0 -42
  346. package/dist/types/styling/banners.d.ts.map +0 -1
  347. package/dist/types/styling/index.d.ts +0 -10
  348. package/dist/types/styling/index.d.ts.map +0 -1
  349. package/dist/types/styling/themes.d.ts +0 -7
  350. package/dist/types/styling/themes.d.ts.map +0 -1
  351. package/dist/types/styling-module.d.ts +0 -178
  352. package/dist/types/styling-module.d.ts.map +0 -1
  353. package/dist/types/types/core.d.ts +0 -221
  354. package/dist/types/types/core.d.ts.map +0 -1
  355. package/dist/types/types/handlers.d.ts +0 -85
  356. package/dist/types/types/handlers.d.ts.map +0 -1
  357. package/dist/types/types/index.d.ts +0 -7
  358. package/dist/types/types/index.d.ts.map +0 -1
  359. package/dist/types/utils/environment.d.ts +0 -47
  360. package/dist/types/utils/environment.d.ts.map +0 -1
  361. package/dist/types/utils/formatting.d.ts +0 -37
  362. package/dist/types/utils/formatting.d.ts.map +0 -1
  363. package/dist/types/utils/index.d.ts +0 -7
  364. package/dist/types/utils/index.d.ts.map +0 -1
  365. package/dist/types/utils/opentui-detection.d.ts +0 -34
  366. package/dist/types/utils/opentui-detection.d.ts.map +0 -1
  367. package/dist/types/utils/output.d.ts +0 -41
  368. package/dist/types/utils/output.d.ts.map +0 -1
  369. package/dist/types/utils/stackTrace.d.ts +0 -6
  370. package/dist/types/utils/stackTrace.d.ts.map +0 -1
  371. package/dist/types/utils/timestamps.d.ts +0 -20
  372. package/dist/types/utils/timestamps.d.ts.map +0 -1
  373. package/dist/utils/environment.d.ts +0 -47
  374. package/dist/utils/environment.d.ts.map +0 -1
  375. package/dist/utils/environment.js +0 -85
  376. package/dist/utils/formatting.js +0 -117
  377. package/dist/utils/index.js +0 -6
  378. package/dist/utils/opentui-detection.d.ts +0 -34
  379. package/dist/utils/opentui-detection.d.ts.map +0 -1
  380. package/dist/utils/opentui-detection.js +0 -116
  381. package/dist/utils/output.js +0 -150
  382. package/dist/utils/stackTrace.js +0 -81
  383. package/dist/utils/timestamps.js +0 -71
  384. package/dist/vite.svg +0 -1
  385. package/docs/API.md +0 -691
  386. package/docs/CORE.md +0 -264
  387. package/docs/DEVELOPMENT.md +0 -731
  388. package/docs/EXPORTS.md +0 -467
  389. package/docs/PACKAGES.md +0 -244
  390. package/docs/STYLING.md +0 -405
  391. package/docs/_config.yml +0 -36
  392. package/docs/index.md +0 -179
  393. package/examples/README.md +0 -208
  394. package/examples/basic-logging.js +0 -75
  395. package/examples/data-export.js +0 -234
  396. package/examples/package.json +0 -16
  397. package/examples/performance-timing.js +0 -170
  398. package/examples/simplified-api.js +0 -124
  399. package/examples/styling-themes.js +0 -207
  400. package/index.html +0 -358
  401. package/packages/core/package.json +0 -57
  402. package/packages/exports/package.json +0 -41
  403. package/packages/nodejs-opentui/README.md +0 -232
  404. package/packages/nodejs-opentui/package.json +0 -72
  405. package/packages/nodejs-opentui/src/LogRenderer.ts +0 -171
  406. package/packages/nodejs-opentui/src/OpenTUILogHandler.ts +0 -178
  407. package/packages/nodejs-opentui/src/components/LogBadge.tsx +0 -131
  408. package/packages/nodejs-opentui/src/index.ts +0 -133
  409. package/packages/nodejs-opentui/src/types.ts +0 -158
  410. package/packages/nodejs-opentui/tsconfig.json +0 -20
  411. package/packages/styling/package.json +0 -41
  412. package/project-utils/README.md +0 -172
  413. package/project-utils/auto-release-gemini.ts +0 -1193
  414. package/project-utils/auto-release-ui.ts +0 -1329
  415. package/project-utils/commit-generator.ts +0 -1385
  416. package/project-utils/commit-ui.ts +0 -264
  417. package/project-utils/git-utils.ts +0 -199
  418. package/project-utils/github-release-manager.ts +0 -466
  419. package/project-utils/project-config.ts +0 -260
  420. package/project-utils/prompt-templates.js +0 -345
  421. package/project-utils/prompt-templates.ts +0 -422
  422. package/project-utils/version-manager.ts +0 -1078
  423. package/public/vite.svg +0 -1
  424. package/src/Logger.ts +0 -1276
  425. package/src/ScopedLogger.ts +0 -454
  426. package/src/cli/CommandProcessor.ts +0 -248
  427. package/src/cli/commands/ConfigCommand.ts +0 -93
  428. package/src/cli/commands/ExportCommand.ts +0 -276
  429. package/src/cli/commands/HistoryCommand.ts +0 -117
  430. package/src/cli/commands/StatusCommand.ts +0 -112
  431. package/src/cli/commands/ThemeCommand.ts +0 -88
  432. package/src/cli/help.ts +0 -127
  433. package/src/cli/index.ts +0 -71
  434. package/src/constants.ts +0 -171
  435. package/src/core.ts +0 -393
  436. package/src/example.ts +0 -210
  437. package/src/exports-module.ts +0 -311
  438. package/src/handlers/AnalyticsLogHandler.ts +0 -22
  439. package/src/handlers/ExportLogHandler.ts +0 -609
  440. package/src/handlers/FileLogHandler.ts +0 -169
  441. package/src/handlers/RemoteLogHandler.ts +0 -42
  442. package/src/handlers/index.ts +0 -8
  443. package/src/index.ts +0 -209
  444. package/src/main.ts +0 -196
  445. package/src/style.css +0 -96
  446. package/src/styling/LogStyleBuilder.ts +0 -355
  447. package/src/styling/SemanticStyles.ts +0 -380
  448. package/src/styling/SmartPresets.ts +0 -288
  449. package/src/styling/StyleBuilder.ts +0 -319
  450. package/src/styling/banners.ts +0 -168
  451. package/src/styling/index.ts +0 -27
  452. package/src/styling/themes.ts +0 -235
  453. package/src/styling-module.ts +0 -244
  454. package/src/types/core.ts +0 -236
  455. package/src/types/handlers.ts +0 -95
  456. package/src/types/index.ts +0 -35
  457. package/src/typescript.svg +0 -1
  458. package/src/utils/environment.ts +0 -94
  459. package/src/utils/formatting.ts +0 -142
  460. package/src/utils/index.ts +0 -21
  461. package/src/utils/opentui-detection.ts +0 -138
  462. package/src/utils/output.ts +0 -185
  463. package/src/utils/stackTrace.ts +0 -95
  464. package/src/utils/timestamps.ts +0 -80
  465. package/src/vite-env.d.ts +0 -1
  466. package/test-core-browser.html +0 -237
  467. package/test-core-node.js +0 -63
  468. package/tests/test-conflict-resolution.ts +0 -391
  469. package/tests/validate-workflows.sh +0 -131
  470. package/tests/yaml-autofix.sh +0 -146
  471. package/tsconfig.json +0 -50
  472. package/vite.config.ts +0 -223
package/package.json CHANGED
@@ -1,10 +1,66 @@
1
1
  {
2
2
  "name": "@mks2508/better-logger",
3
- "version": "0.14.0-alpha.2",
3
+ "version": "0.18.2-alpha.2",
4
4
  "type": "module",
5
- "description": "Logger avanzado para consola con estilos CSS, temas adaptativos, badges automáticos, SVG, animaciones y CLI integrado",
5
+ "files": [
6
+ "dist",
7
+ "README.md"
8
+ ],
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",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/index.js",
15
+ "require": "./dist/index.cjs",
16
+ "types": "./dist/index.d.ts"
17
+ },
18
+ "./core": {
19
+ "import": "./dist/core.js",
20
+ "require": "./dist/core.cjs",
21
+ "types": "./dist/core.d.ts"
22
+ },
23
+ "./cli": {
24
+ "import": "./dist/cli.js",
25
+ "require": "./dist/cli.cjs",
26
+ "types": "./dist/cli-module.d.ts"
27
+ },
28
+ "./transports": {
29
+ "import": "./dist/transports.js",
30
+ "require": "./dist/transports.cjs",
31
+ "types": "./dist/transports-module.d.ts"
32
+ },
33
+ "./context": {
34
+ "import": "./dist/context.js",
35
+ "require": "./dist/context.cjs",
36
+ "types": "./dist/context-module.d.ts"
37
+ },
38
+ "./hooks": {
39
+ "import": "./dist/hooks.js",
40
+ "require": "./dist/hooks.cjs",
41
+ "types": "./dist/hooks-module.d.ts"
42
+ },
43
+ "./serializers": {
44
+ "import": "./dist/serializers.js",
45
+ "require": "./dist/serializers.cjs",
46
+ "types": "./dist/serializers-module.d.ts"
47
+ },
48
+ "./styles": {
49
+ "import": "./dist/styles.js",
50
+ "require": "./dist/styles.cjs",
51
+ "types": "./dist/styles-module.d.ts"
52
+ },
53
+ "./playground": {
54
+ "import": "./dist/playground.js",
55
+ "require": "./dist/playground.cjs",
56
+ "types": "./dist/playground-module.d.ts"
57
+ },
58
+ "./node": {
59
+ "import": "./dist/node.js",
60
+ "require": "./dist/node.cjs",
61
+ "types": "./dist/node-module.d.ts"
62
+ }
63
+ },
8
64
  "keywords": [
9
65
  "logger",
10
66
  "console",
@@ -18,6 +74,11 @@
18
74
  "debug",
19
75
  "consola",
20
76
  "registro",
77
+ "terminal",
78
+ "ansi",
79
+ "chalk",
80
+ "server",
81
+ "nodejs",
21
82
  "depuración",
22
83
  "temas",
23
84
  "badges",
@@ -35,18 +96,27 @@
35
96
  },
36
97
  "homepage": "https://mks2508.github.io/advanced-logger/",
37
98
  "scripts": {
38
- "dev": "vite",
39
- "build": "tsc && BUILD_MODE=full vite build",
40
- "build:full": "tsc && BUILD_MODE=full vite build",
41
- "build:core": "tsc && BUILD_MODE=core vite build",
42
- "build:styling": "tsc && BUILD_MODE=styling vite build",
43
- "build:exports": "tsc && BUILD_MODE=exports vite build",
44
- "build:all": "npm run build:full && npm run build:core && npm run build:styling && npm run build:exports",
99
+ "dev": "vite --config vite.config.demo.ts",
100
+ "demo:dev": "vite --config vite.config.demo.ts",
101
+ "demo:build": "vite build --config vite.config.demo.ts",
102
+ "build": "rolldown --config rolldown.config.ts && tsc --emitDeclarationOnly",
103
+ "build:full": "rolldown --config rolldown.config.ts && tsc --emitDeclarationOnly",
104
+ "build:core": "BUILD_MODE=core rolldown --config rolldown.config.ts && tsc --emitDeclarationOnly --project tsconfig.node.json",
105
+ "build:styling": "BUILD_MODE=styling rolldown --config rolldown.config.ts && tsc --emitDeclarationOnly",
106
+ "build:exports": "BUILD_MODE=exports rolldown --config rolldown.config.ts && tsc --emitDeclarationOnly",
107
+ "build:cli": "BUILD_MODE=cli rolldown --config rolldown.config.ts && tsc --emitDeclarationOnly --project tsconfig.node.json",
108
+ "build:all": "npm run build:full && npm run build:core && npm run build:styling && npm run build:exports && npm run build:cli",
45
109
  "clean": "rm -rf dist node_modules/.vite",
46
- "type-check": "tsc --noEmit",
47
- "test": "echo 'Running tests...' && exit 0",
48
- "test:performance": "echo 'Running performance benchmarks...' && exit 0",
49
- "test:visual": "echo 'Running visual tests...' && exit 0",
110
+ "typecheck": "tsc --noEmit",
111
+ "lint": "oxlint src/",
112
+ "format": "prettier --write \"src/**/*.ts\"",
113
+ "format:check": "prettier --check \"src/**/*.ts\"",
114
+ "docs:api": "typedoc",
115
+ "docs:md-serve": "bun scripts/build-md-serve.ts",
116
+ "test": "bunx vitest run",
117
+ "test:watch": "bunx vitest",
118
+ "test:performance": "bunx vitest bench",
119
+ "test:visual": "bunx vitest run --reporter=visual",
50
120
  "test:workflows": "bun tests/test-conflict-resolution.ts",
51
121
  "lint:yaml": "yamllint -c .yamllint .github/workflows/",
52
122
  "fix:yaml": "./tests/yaml-autofix.sh",
@@ -74,18 +144,22 @@
74
144
  "release:feature": "bun project-utils/auto-release-ui.ts --feature",
75
145
  "release:alpha": "bun project-utils/auto-release-ui.ts --alpha",
76
146
  "release:major": "bun project-utils/auto-release-ui.ts --major",
77
- "publish:core": "cd packages/core && npm publish --access public",
78
- "publish:styling": "cd packages/styling && npm publish --access public",
79
- "publish:exports": "cd packages/exports && npm publish --access public",
80
- "publish:all-packages": "npm run publish:core && npm run publish:styling && npm run publish:exports",
81
147
  "workflow:full": "npm run commit:auto && npm run release:full",
82
148
  "workflow:commit": "npm run commit:auto",
83
149
  "workflow:release": "npm run version:auto && npm run build:all && npm run release:github"
84
150
  },
85
151
  "devDependencies": {
86
- "terser": "^5.43.1",
87
- "typescript": "~5.8.3",
88
- "vite": "^7.1.2",
89
- "vite-plugin-dts": "^4.5.4"
152
+ "@types/node": "^26.1.0",
153
+ "oxlint": "^0.11.1",
154
+ "prettier": "^3.4.2",
155
+ "rolldown": "^1.0.0-beta.58",
156
+ "terser": "^5.48.0",
157
+ "typedoc": "^0.28.19",
158
+ "typedoc-plugin-frontmatter": "^1.3.1",
159
+ "typedoc-plugin-markdown": "^4.12.0",
160
+ "typescript": "~6.0.3",
161
+ "vite": "^8.1.2",
162
+ "vite-plugin-dts": "^5.0.3",
163
+ "vitest": "^2.1.0"
90
164
  }
91
165
  }
@@ -1,39 +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
- ],
33
- "deny": [],
34
- "ask": [],
35
- "additionalDirectories": [
36
- "/Users/mks/gemini-commit-wizard"
37
- ]
38
- }
39
- }
@@ -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
@@ -1,119 +0,0 @@
1
- ---
2
- name: Docs & Demo Deployment
3
-
4
- on:
5
- workflow_dispatch:
6
- # Solo se ejecuta manualmente o cuando se llama desde otro workflow
7
- workflow_call:
8
-
9
- env:
10
- NODE_VERSION: '20'
11
-
12
- jobs:
13
- # ===== BUILD DEMO =====
14
- build-demo:
15
- runs-on: ubuntu-latest
16
-
17
- steps:
18
- - name: "📥 Checkout code"
19
- uses: actions/checkout@v4
20
-
21
- - name: "📦 Setup Bun"
22
- uses: oven-sh/setup-bun@v2
23
- with:
24
- bun-version: latest
25
- - name: "🔧 Install dependencies"
26
- run: bun install --frozen-lockfile
27
-
28
- - name: "🏗️ Build library for demo"
29
- run: bun run build:full
30
-
31
- - name: "🏗️ Setup demo structure"
32
- run: |
33
- mkdir -p _site/docs
34
- # Copy demo as root
35
- cp demo.html _site/index.html
36
- cp index.html _site/dev.html
37
- cp -r dist/ _site/dist/
38
-
39
- # Create demo metadata
40
- echo "## 📦 Demo Build Info" > _site/build-info.md
41
- echo "- **Build Date**: $(date)" >> _site/build-info.md
42
- echo "- **Commit**: ${{ github.sha }}" >> _site/build-info.md
43
- echo "- **Version**: $(node -p 'require("./package.json").version')" >> _site/build-info.md
44
-
45
- - name: "📤 Upload demo artifacts"
46
- uses: actions/upload-artifact@v4
47
- with:
48
- name: demo-site
49
- path: _site/
50
- retention-days: 30
51
-
52
- # ===== BUILD DOCS =====
53
- build-docs:
54
- runs-on: ubuntu-latest
55
-
56
- steps:
57
- - name: "📥 Checkout code"
58
- uses: actions/checkout@v4
59
-
60
- - name: "📤 Build Jekyll documentation"
61
- uses: actions/jekyll-build-pages@v1
62
- with:
63
- source: ./docs
64
- destination: ./_site/docs
65
-
66
- - name: "📤 Upload docs artifacts"
67
- uses: actions/upload-artifact@v4
68
- with:
69
- name: docs-site
70
- path: _site/docs/
71
- retention-days: 30
72
-
73
- # ===== DEPLOY TO GITHUB PAGES =====
74
- deploy-pages:
75
- runs-on: ubuntu-latest
76
- needs: [build-demo, build-docs]
77
- if: github.ref == 'refs/heads/main'
78
-
79
- permissions:
80
- contents: read
81
- pages: write
82
- id-token: write
83
-
84
- environment:
85
- name: github-pages
86
- url: ${{ steps.deployment.outputs.page_url }}
87
-
88
- steps:
89
- - name: "📥 Download demo artifacts"
90
- uses: actions/download-artifact@v4
91
- with:
92
- name: demo-site
93
- path: _site/
94
-
95
- - name: "📥 Download docs artifacts"
96
- uses: actions/download-artifact@v4
97
- with:
98
- name: docs-site
99
- path: _site/docs/
100
-
101
- - name: "📤 Setup Pages"
102
- uses: actions/configure-pages@v4
103
-
104
- - name: "📤 Upload to Pages"
105
- uses: actions/upload-pages-artifact@v3
106
- with:
107
- path: ./_site
108
-
109
- - name: "🚀 Deploy to GitHub Pages"
110
- id: deployment
111
- uses: actions/deploy-pages@v4
112
-
113
- - name: 📊 Deployment summary
114
- run: |
115
- echo "## 📝 Documentation & Demo Deployed!" >> $GITHUB_STEP_SUMMARY
116
- echo "- **Demo URL**: ${{ steps.deployment.outputs.page_url }}" >> $GITHUB_STEP_SUMMARY
117
- echo "- **Docs URL**: ${{ steps.deployment.outputs.page_url }}docs/" >> $GITHUB_STEP_SUMMARY
118
- echo "- **Dev Demo**: ${{ steps.deployment.outputs.page_url }}dev.html" >> $GITHUB_STEP_SUMMARY
119
- echo "- **Build Info**: ${{ steps.deployment.outputs.page_url }}build-info.md" >> $GITHUB_STEP_SUMMARY