mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 12:42:51 +00:00
Extract shared normalization/coercion helpers into private @openclaw/normalization-core workspace package while preserving existing plugin SDK helper subpaths.\n\nAlso keeps direct normalization-core imports internal, wires UI/build/loader resolution, and replaces the slow PR network CodeQL lane with a fast added-line boundary scan while retaining full CodeQL for scheduled/manual runs.\n\nVerification: local moved tests, plugin SDK boundary tests, extension loader tests, agents-support shard, UI build/test, build artifacts, lint, workflow guards, autoreview, and GitHub CI passed on PR head 963d893715.
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
// Numeric coercion helpers for plugin runtime inputs.
|
|
|
|
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";
|