build: compile dist/ [auto]

This commit is contained in:
github-actions[bot]
2026-03-20 00:52:54 +00:00
parent cb407d0534
commit 61a3769993
14 changed files with 29 additions and 10 deletions

4
dist/config.js vendored
View File

@@ -42,6 +42,7 @@ export const DEFAULT_CONFIG = {
usageThreshold: 0,
sevenDayThreshold: 80,
environmentThreshold: 0,
customLine: '',
},
usage: {
cacheTtlSeconds: 60,
@@ -212,6 +213,9 @@ export function mergeConfig(userConfig) {
usageThreshold: validateThreshold(migrated.display?.usageThreshold, 100),
sevenDayThreshold: validateThreshold(migrated.display?.sevenDayThreshold, 100),
environmentThreshold: validateThreshold(migrated.display?.environmentThreshold, 100),
customLine: typeof migrated.display?.customLine === 'string'
? migrated.display.customLine.slice(0, 80)
: DEFAULT_CONFIG.display.customLine,
};
const usage = {
cacheTtlSeconds: validatePositiveInt(migrated.usage?.cacheTtlSeconds, DEFAULT_CONFIG.usage.cacheTtlSeconds),