@mks2508/better-logger 5.0.0 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{Logger-Cbi1f10o.js → Logger-CKqzXDh3.js} +2 -2
- package/dist/chunks/{Logger-Cbi1f10o.js.map → Logger-CKqzXDh3.js.map} +1 -1
- package/dist/chunks/{Logger-BZ7B7OXE.js → Logger-D_vuKP4l.js} +2 -2
- package/dist/chunks/{Logger-BZ7B7OXE.js.map → Logger-D_vuKP4l.js.map} +1 -1
- package/dist/chunks/cli-module-B-njrTWb.js +2 -0
- package/dist/chunks/cli-module-B-njrTWb.js.map +1 -0
- package/dist/chunks/{cli-module-ClIJmaT8.js → cli-module-Cx7qotPY.js} +16 -9
- package/dist/chunks/cli-module-Cx7qotPY.js.map +1 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/exports.cjs +1 -1
- package/dist/exports.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/styling.cjs +1 -1
- package/dist/styling.js +2 -2
- package/dist/terminal/formatter.d.ts.map +1 -1
- package/package.json +5 -1
- package/.claude/settings.local.json +0 -48
- package/.github/workflows/ci-quality.yml +0 -357
- package/.github/workflows/docs-demo.yml +0 -119
- package/.github/workflows/releases-core.yml +0 -512
- package/.github/workflows/releases-full.yml +0 -582
- package/.github/workflows-backup/ci.yml +0 -221
- package/.github/workflows-backup/nightly.yml +0 -196
- package/.github/workflows-backup/release-optimized.yml +0 -373
- package/.github/workflows-backup/release.yml +0 -269
- package/.release-notes-0.2.0.md +0 -129
- package/.yamllint +0 -28
- package/CHANGELOG.json +0 -1076
- package/CHANGELOG.md +0 -209
- package/CLAUDE.md +0 -217
- package/bun.lock +0 -333
- package/demo.html +0 -847
- package/dist/chunks/cli-module-CadqgZ1Z.js +0 -2
- package/dist/chunks/cli-module-CadqgZ1Z.js.map +0 -1
- package/dist/chunks/cli-module-ClIJmaT8.js.map +0 -1
- package/docs/API.md +0 -918
- package/docs/CORE.md +0 -264
- package/docs/DEVELOPMENT.md +0 -731
- package/docs/EXPORTS.md +0 -467
- package/docs/PACKAGES.md +0 -244
- package/docs/STYLING.md +0 -405
- package/docs/_config.yml +0 -36
- package/docs/index.md +0 -179
- package/examples/README.md +0 -208
- package/examples/basic-logging.js +0 -75
- package/examples/data-export.js +0 -234
- package/examples/package.json +0 -16
- package/examples/performance-timing.js +0 -170
- package/examples/simplified-api.js +0 -124
- package/examples/styling-themes.js +0 -207
- package/index.html +0 -358
- package/packages/core/package.json +0 -57
- package/packages/exports/package.json +0 -41
- package/packages/nodejs-opentui/README.md +0 -232
- package/packages/nodejs-opentui/package.json +0 -72
- package/packages/nodejs-opentui/src/LogRenderer.ts +0 -171
- package/packages/nodejs-opentui/src/OpenTUILogHandler.ts +0 -178
- package/packages/nodejs-opentui/src/components/LogBadge.tsx +0 -131
- package/packages/nodejs-opentui/src/index.ts +0 -133
- package/packages/nodejs-opentui/src/types.ts +0 -158
- package/packages/nodejs-opentui/tsconfig.json +0 -20
- package/packages/styling/package.json +0 -41
- package/playground/demo-all.ts +0 -95
- package/playground/demo-box.ts +0 -85
- package/playground/demo-levels.ts +0 -56
- package/playground/demo-real-world.ts +0 -98
- package/playground/demo-spinner.ts +0 -77
- package/playground/demo-steps.ts +0 -72
- package/playground/demo-table.ts +0 -83
- package/project-utils/README.md +0 -172
- package/project-utils/auto-release-gemini.ts +0 -1193
- package/project-utils/auto-release-ui.ts +0 -1329
- package/project-utils/commit-generator.ts +0 -1385
- package/project-utils/commit-ui.ts +0 -264
- package/project-utils/git-utils.ts +0 -199
- package/project-utils/github-release-manager.ts +0 -466
- package/project-utils/project-config.ts +0 -260
- package/project-utils/prompt-templates.js +0 -345
- package/project-utils/prompt-templates.ts +0 -422
- package/project-utils/version-manager.ts +0 -1078
- package/public/vite.svg +0 -1
- package/src/Logger.ts +0 -1858
- package/src/ScopedLogger.ts +0 -256
- package/src/cli/CommandProcessor.ts +0 -248
- package/src/cli/commands/ConfigCommand.ts +0 -93
- package/src/cli/commands/ExportCommand.ts +0 -276
- package/src/cli/commands/HistoryCommand.ts +0 -117
- package/src/cli/commands/StatusCommand.ts +0 -112
- package/src/cli/commands/ThemeCommand.ts +0 -88
- package/src/cli/help.ts +0 -127
- package/src/cli/index.ts +0 -71
- package/src/cli-module.ts +0 -21
- package/src/cli-primitives/box.ts +0 -86
- package/src/cli-primitives/cli-table.ts +0 -62
- package/src/cli-primitives/divider.ts +0 -17
- package/src/cli-primitives/header.ts +0 -18
- package/src/cli-primitives/index.ts +0 -13
- package/src/cli-primitives/server-fallback.ts +0 -54
- package/src/cli-primitives/spinner.ts +0 -133
- package/src/cli-primitives/step.ts +0 -22
- package/src/constants.ts +0 -313
- package/src/core.ts +0 -397
- package/src/example.ts +0 -210
- package/src/exports-module.ts +0 -311
- package/src/handlers/AnalyticsLogHandler.ts +0 -22
- package/src/handlers/ExportLogHandler.ts +0 -610
- package/src/handlers/FileLogHandler.ts +0 -169
- package/src/handlers/RemoteLogHandler.ts +0 -42
- package/src/handlers/index.ts +0 -8
- package/src/hooks/HookManager.ts +0 -177
- package/src/hooks/index.ts +0 -1
- package/src/index.ts +0 -395
- package/src/main.ts +0 -196
- package/src/serializers/SerializerRegistry.ts +0 -173
- package/src/serializers/index.ts +0 -1
- package/src/style.css +0 -96
- package/src/styling/LogStyleBuilder.ts +0 -355
- package/src/styling/SemanticStyles.ts +0 -380
- package/src/styling/SmartPresets.ts +0 -288
- package/src/styling/StyleBuilder.ts +0 -319
- package/src/styling/StyleCache.ts +0 -131
- package/src/styling/banners.ts +0 -168
- package/src/styling/index.ts +0 -27
- package/src/styling/themes.ts +0 -235
- package/src/styling-module.ts +0 -244
- package/src/terminal/color-converter.ts +0 -315
- package/src/terminal/formatter.ts +0 -236
- package/src/terminal/terminal-renderer.ts +0 -342
- package/src/transports/ConsoleTransport.ts +0 -28
- package/src/transports/FileTransport.ts +0 -53
- package/src/transports/HttpTransport.ts +0 -56
- package/src/transports/TransportManager.ts +0 -130
- package/src/transports/index.ts +0 -4
- package/src/types/core.ts +0 -417
- package/src/types/handlers.ts +0 -95
- package/src/types/hooks.ts +0 -45
- package/src/types/index.ts +0 -83
- package/src/types/serializers.ts +0 -30
- package/src/types/transports.ts +0 -52
- package/src/typescript.svg +0 -1
- package/src/utils/adapter.ts +0 -291
- package/src/utils/ansi-colors.ts +0 -333
- package/src/utils/environment-detector.ts +0 -170
- package/src/utils/environment.ts +0 -94
- package/src/utils/formatting.ts +0 -332
- package/src/utils/index.ts +0 -33
- package/src/utils/opentui-detection.ts +0 -138
- package/src/utils/output.ts +0 -227
- package/src/utils/stackTrace.ts +0 -144
- package/src/utils/timestamps.ts +0 -80
- package/src/vite-env.d.ts +0 -1
- package/src/writers/BufferWriter.ts +0 -157
- package/src/writers/index.ts +0 -6
- package/test-core-browser.html +0 -237
- package/test-core-node.js +0 -63
- package/tests/test-conflict-resolution.ts +0 -391
- package/tests/validate-workflows.sh +0 -131
- package/tests/yaml-autofix.sh +0 -146
- package/tsconfig.json +0 -50
- package/vite.config.ts +0 -256
package/tsconfig.json
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
5
|
-
"module": "ESNext",
|
|
6
|
-
"moduleResolution": "node",
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
|
|
9
|
-
/* Library Build Configuration */
|
|
10
|
-
"declaration": true,
|
|
11
|
-
"declarationMap": true,
|
|
12
|
-
"outDir": "dist",
|
|
13
|
-
"rootDir": "src",
|
|
14
|
-
"emitDeclarationOnly": false,
|
|
15
|
-
|
|
16
|
-
/* Module System */
|
|
17
|
-
"esModuleInterop": true,
|
|
18
|
-
"allowSyntheticDefaultImports": true,
|
|
19
|
-
"forceConsistentCasingInFileNames": true,
|
|
20
|
-
"isolatedModules": true,
|
|
21
|
-
"moduleDetection": "force",
|
|
22
|
-
"verbatimModuleSyntax": false,
|
|
23
|
-
|
|
24
|
-
/* Type Checking */
|
|
25
|
-
"strict": true,
|
|
26
|
-
"noImplicitAny": true,
|
|
27
|
-
"strictNullChecks": true,
|
|
28
|
-
"strictFunctionTypes": true,
|
|
29
|
-
"noImplicitReturns": true,
|
|
30
|
-
"noFallthroughCasesInSwitch": true,
|
|
31
|
-
"noUncheckedIndexedAccess": true,
|
|
32
|
-
|
|
33
|
-
/* Advanced */
|
|
34
|
-
"resolveJsonModule": true,
|
|
35
|
-
"allowImportingTsExtensions": false,
|
|
36
|
-
"noEmit": false,
|
|
37
|
-
"incremental": true,
|
|
38
|
-
"tsBuildInfoFile": "./dist/.tsbuildinfo"
|
|
39
|
-
},
|
|
40
|
-
"include": [
|
|
41
|
-
"src/**/*"
|
|
42
|
-
],
|
|
43
|
-
"exclude": [
|
|
44
|
-
"node_modules",
|
|
45
|
-
"dist",
|
|
46
|
-
"**/*.test.ts",
|
|
47
|
-
"**/*.spec.ts",
|
|
48
|
-
"**/*.d.ts"
|
|
49
|
-
]
|
|
50
|
-
}
|
package/vite.config.ts
DELETED
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import { defineConfig, UserConfig } from 'vite'
|
|
2
|
-
import { resolve } from 'path'
|
|
3
|
-
import dts from 'vite-plugin-dts'
|
|
4
|
-
|
|
5
|
-
// Configuración base compartida
|
|
6
|
-
const baseConfig = {
|
|
7
|
-
plugins: [
|
|
8
|
-
dts({
|
|
9
|
-
include: ['src/**/*'],
|
|
10
|
-
exclude: ['src/**/*.test.ts', 'src/**/*.spec.ts', 'src/main.ts', 'src/example.ts'],
|
|
11
|
-
rollupTypes: true,
|
|
12
|
-
insertTypesEntry: true,
|
|
13
|
-
})
|
|
14
|
-
],
|
|
15
|
-
define: {
|
|
16
|
-
'process.env.NODE_ENV': JSON.stringify('production')
|
|
17
|
-
},
|
|
18
|
-
build: {
|
|
19
|
-
sourcemap: true,
|
|
20
|
-
minify: 'terser',
|
|
21
|
-
terserOptions: {
|
|
22
|
-
compress: {
|
|
23
|
-
drop_console: false,
|
|
24
|
-
drop_debugger: true,
|
|
25
|
-
pure_funcs: ['console.debug'],
|
|
26
|
-
passes: 2
|
|
27
|
-
},
|
|
28
|
-
mangle: {
|
|
29
|
-
properties: false,
|
|
30
|
-
keep_classnames: true,
|
|
31
|
-
keep_fnames: true
|
|
32
|
-
},
|
|
33
|
-
format: {
|
|
34
|
-
comments: false,
|
|
35
|
-
preserve_annotations: true
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
target: 'es2022'
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
// Configuraciones específicas por build
|
|
43
|
-
const buildConfigs = {
|
|
44
|
-
// Build completa - Incluye todas las funcionalidades
|
|
45
|
-
full: {
|
|
46
|
-
...baseConfig,
|
|
47
|
-
plugins: [
|
|
48
|
-
dts({
|
|
49
|
-
...baseConfig.plugins[0].options,
|
|
50
|
-
outDir: 'dist',
|
|
51
|
-
})
|
|
52
|
-
],
|
|
53
|
-
build: {
|
|
54
|
-
...baseConfig.build,
|
|
55
|
-
outDir: 'dist',
|
|
56
|
-
lib: {
|
|
57
|
-
entry: {
|
|
58
|
-
index: resolve(__dirname, 'src/index.ts'),
|
|
59
|
-
core: resolve(__dirname, 'src/core.ts'),
|
|
60
|
-
cli: resolve(__dirname, 'src/cli-module.ts'),
|
|
61
|
-
styling: resolve(__dirname, 'src/styling-module.ts'),
|
|
62
|
-
exports: resolve(__dirname, 'src/exports-module.ts')
|
|
63
|
-
},
|
|
64
|
-
name: 'BetterLogger',
|
|
65
|
-
formats: ['es', 'cjs'],
|
|
66
|
-
fileName: (format, entryName) => {
|
|
67
|
-
const ext = format === 'cjs' ? 'cjs' : 'js';
|
|
68
|
-
return `${entryName}.${ext}`;
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
rollupOptions: {
|
|
72
|
-
external: [],
|
|
73
|
-
output: {
|
|
74
|
-
globals: {},
|
|
75
|
-
exports: 'named',
|
|
76
|
-
preserveModules: false,
|
|
77
|
-
chunkFileNames: 'chunks/[name]-[hash].js'
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
// Build modular - Solo core (logger básico universal)
|
|
84
|
-
core: {
|
|
85
|
-
...baseConfig,
|
|
86
|
-
plugins: [
|
|
87
|
-
dts({
|
|
88
|
-
...baseConfig.plugins[0].options,
|
|
89
|
-
outDir: 'packages/core/dist/types',
|
|
90
|
-
include: ['src/core.ts', 'src/constants.ts', 'src/types/**/*', 'src/utils/**/*'],
|
|
91
|
-
})
|
|
92
|
-
],
|
|
93
|
-
build: {
|
|
94
|
-
...baseConfig.build,
|
|
95
|
-
outDir: 'packages/core/dist',
|
|
96
|
-
lib: {
|
|
97
|
-
entry: resolve(__dirname, 'src/core.ts'),
|
|
98
|
-
name: 'BetterLoggerCore',
|
|
99
|
-
formats: ['es', 'cjs', 'umd'],
|
|
100
|
-
fileName: (format) => {
|
|
101
|
-
if (format === 'cjs') return 'index.cjs';
|
|
102
|
-
if (format === 'es') return 'index.js';
|
|
103
|
-
if (format === 'umd') return 'index.umd.js';
|
|
104
|
-
return 'index.js';
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
rollupOptions: {
|
|
108
|
-
// External dependencies for Node.js
|
|
109
|
-
external: (id) => {
|
|
110
|
-
// Mark Node.js built-ins as external
|
|
111
|
-
return ['fs', 'path', 'process', 'util'].includes(id);
|
|
112
|
-
},
|
|
113
|
-
output: [
|
|
114
|
-
{
|
|
115
|
-
format: 'es',
|
|
116
|
-
entryFileNames: 'index.js',
|
|
117
|
-
globals: {
|
|
118
|
-
fs: 'fs',
|
|
119
|
-
path: 'path',
|
|
120
|
-
process: 'process',
|
|
121
|
-
util: 'util'
|
|
122
|
-
},
|
|
123
|
-
exports: 'named'
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
format: 'cjs',
|
|
127
|
-
entryFileNames: 'index.cjs',
|
|
128
|
-
globals: {
|
|
129
|
-
fs: 'fs',
|
|
130
|
-
path: 'path',
|
|
131
|
-
process: 'process',
|
|
132
|
-
util: 'util'
|
|
133
|
-
},
|
|
134
|
-
exports: 'named'
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
format: 'umd',
|
|
138
|
-
name: 'BetterLoggerCore',
|
|
139
|
-
entryFileNames: 'index.umd.js',
|
|
140
|
-
globals: {
|
|
141
|
-
fs: 'fs',
|
|
142
|
-
path: 'path',
|
|
143
|
-
process: 'process',
|
|
144
|
-
util: 'util'
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
]
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
// Build modular - Solo styling (características visuales)
|
|
153
|
-
styling: {
|
|
154
|
-
...baseConfig,
|
|
155
|
-
plugins: [
|
|
156
|
-
dts({
|
|
157
|
-
...baseConfig.plugins[0].options,
|
|
158
|
-
outDir: 'packages/styling/dist/types',
|
|
159
|
-
include: ['src/styling-module.ts', 'src/constants.ts', 'src/types/**/*'],
|
|
160
|
-
})
|
|
161
|
-
],
|
|
162
|
-
build: {
|
|
163
|
-
...baseConfig.build,
|
|
164
|
-
outDir: 'packages/styling/dist',
|
|
165
|
-
lib: {
|
|
166
|
-
entry: resolve(__dirname, 'src/styling-module.ts'),
|
|
167
|
-
name: 'BetterLoggerStyling',
|
|
168
|
-
formats: ['es', 'cjs'],
|
|
169
|
-
fileName: (format) => {
|
|
170
|
-
const ext = format === 'cjs' ? 'cjs' : 'js';
|
|
171
|
-
return `index.${ext}`;
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
rollupOptions: {
|
|
175
|
-
external: [],
|
|
176
|
-
output: {
|
|
177
|
-
globals: {},
|
|
178
|
-
exports: 'named'
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
// Build modular - Solo exports (handlers de exportación)
|
|
185
|
-
exports: {
|
|
186
|
-
...baseConfig,
|
|
187
|
-
plugins: [
|
|
188
|
-
dts({
|
|
189
|
-
...baseConfig.plugins[0].options,
|
|
190
|
-
outDir: 'packages/exports/dist/types',
|
|
191
|
-
include: ['src/exports-module.ts', 'src/constants.ts', 'src/types/**/*'],
|
|
192
|
-
})
|
|
193
|
-
],
|
|
194
|
-
build: {
|
|
195
|
-
...baseConfig.build,
|
|
196
|
-
outDir: 'packages/exports/dist',
|
|
197
|
-
lib: {
|
|
198
|
-
entry: resolve(__dirname, 'src/exports-module.ts'),
|
|
199
|
-
name: 'BetterLoggerExports',
|
|
200
|
-
formats: ['es', 'cjs'],
|
|
201
|
-
fileName: (format) => {
|
|
202
|
-
const ext = format === 'cjs' ? 'cjs' : 'js';
|
|
203
|
-
return `index.${ext}`;
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
rollupOptions: {
|
|
207
|
-
external: [],
|
|
208
|
-
output: {
|
|
209
|
-
globals: {},
|
|
210
|
-
exports: 'named'
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
|
|
216
|
-
// Build modular - Solo CLI primitives (spinners, boxes, tables, steps)
|
|
217
|
-
cli: {
|
|
218
|
-
...baseConfig,
|
|
219
|
-
plugins: [
|
|
220
|
-
dts({
|
|
221
|
-
...baseConfig.plugins[0].options,
|
|
222
|
-
outDir: 'packages/cli/dist/types',
|
|
223
|
-
include: ['src/cli-module.ts', 'src/cli-primitives/**/*', 'src/types/**/*', 'src/terminal/**/*', 'src/utils/environment-detector.ts'],
|
|
224
|
-
})
|
|
225
|
-
],
|
|
226
|
-
build: {
|
|
227
|
-
...baseConfig.build,
|
|
228
|
-
outDir: 'packages/cli/dist',
|
|
229
|
-
lib: {
|
|
230
|
-
entry: resolve(__dirname, 'src/cli-module.ts'),
|
|
231
|
-
name: 'BetterLoggerCLI',
|
|
232
|
-
formats: ['es', 'cjs'],
|
|
233
|
-
fileName: (format) => {
|
|
234
|
-
const ext = format === 'cjs' ? 'cjs' : 'js';
|
|
235
|
-
return `index.${ext}`;
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
rollupOptions: {
|
|
239
|
-
external: [],
|
|
240
|
-
output: {
|
|
241
|
-
globals: {},
|
|
242
|
-
exports: 'named'
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
// Determinar configuración según variable de entorno
|
|
250
|
-
const buildMode = process.env.BUILD_MODE || 'full';
|
|
251
|
-
|
|
252
|
-
if (!buildConfigs[buildMode]) {
|
|
253
|
-
throw new Error(`Build mode "${buildMode}" not found. Available modes: ${Object.keys(buildConfigs).join(', ')}`);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export default defineConfig(buildConfigs[buildMode] as UserConfig);
|