Function: normalizeActor()¶
Defined in: rine-core/dist/src/actor.d.ts:98
The one normalisation rule for an actor value, applied once per rung.
Trims, and treats empty-after-trim as absent so the rung falls through
rather than refusing: rine-eve's scaffolder writes a bare RINE_AGENT=
line into every generated project, so an empty value is the shipped shape of
"no actor set". No case folding — bare names already match
case-insensitively and handles normalise in normalizeHandle, so a third
rule here could only disagree with them.
A non-string that is not null/undefined refuses rather than stringifying:
String({}) is "[object Object]", and hunting for an agent by that name
either finds nobody or, worse, finds somebody.
Parameters¶
| Parameter | Type |
|---|---|
value |
unknown |
Returns¶
string | undefined