normalizeIntentText
normalizeIntentText(
intent):string
Defined in: src/idempotency/key.ts:40
Deterministic, non-semantic normalization of an intent string: Unicode NFC, trimmed, internal whitespace runs collapsed to a single space.
Not lowercased — case can be meaning-bearing (identifiers, codes). This
function never attempts semantic equivalence; that is the caller’s job via a
stable stepId.
Parameters
intent
string
Returns
string
Example
import { normalizeIntentText } from "kawasekit/idempotency";
normalizeIntentText(" fetch_weather: Tokyo \n"); // "fetch_weather: Tokyo"