Files
openclaw/src/plugin-sdk/number-runtime.ts
Dallin Romney 5af7ba92ce refactor: consolidate byte-size formatting (#99768)
* 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
2026-07-06 09:26:04 -07:00

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";