mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-10 16:26:08 +00:00
* refactor: consolidate byte-size formatting * fix: stabilize byte formatter import boundary * fix: keep byte formatter within SDK budget * fix: emit byte formatter package entry * refactor: trim byte formatter surface * fix: use narrow byte formatter import * refactor: remove byte formatter dependency changes * fix: refresh rebased byte formatter baseline
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
// Numeric coercion helpers for plugin runtime inputs.
|
|
|
|
export { formatByteSize } from "../../packages/normalization-core/src/format.js";
|
|
export {
|
|
asDateTimestampMs,
|
|
asFiniteNumberInRange,
|
|
asSafeIntegerInRange,
|
|
isFutureDateTimestampMs,
|
|
parseFiniteNumber,
|
|
clampTimerTimeoutMs,
|
|
clampPositiveTimerTimeoutMs,
|
|
addTimerTimeoutGraceMs,
|
|
resolvePositiveTimerTimeoutMs,
|
|
resolveTimerTimeoutMs,
|
|
finiteSecondsToTimerSafeMilliseconds,
|
|
MAX_TIMER_TIMEOUT_MS,
|
|
MAX_TIMER_TIMEOUT_SECONDS,
|
|
MAX_DATE_TIMESTAMP_MS,
|
|
resolveIntegerOption,
|
|
resolveNonNegativeIntegerOption,
|
|
resolveOptionalIntegerOption,
|
|
parseStrictInteger,
|
|
parseStrictFiniteNumber,
|
|
parseStrictNonNegativeInteger,
|
|
parseStrictPositiveInteger,
|
|
positiveSecondsToSafeMilliseconds,
|
|
nonNegativeSecondsToSafeMilliseconds,
|
|
resolveDateTimestampMs,
|
|
resolveTimestampMsToIsoString,
|
|
timestampMsToIsoString,
|
|
resolveExpiresAtMsFromDurationMs,
|
|
resolveExpiresAtMsFromDurationSeconds,
|
|
resolveExpiresAtMsFromDurationOrEpoch,
|
|
resolveExpiresAtMsFromEpochSeconds,
|
|
} from "../../packages/normalization-core/src/number-coercion.js";
|
|
export { MAX_TCP_PORT, parseTcpPort } from "../infra/tcp-port.js";
|