Function: isValidNodeId()
ts
function isValidNodeId(id: string): boolean;Defined in: src/batteries/orchestration/plan.ts:514
Whether a string is a valid node id.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The string to test. |
Returns
boolean
True when id is a valid node id.
Remarks
A valid node id is snake_case: lowercase ASCII letters, digits and underscores, with no / and no leading .. The / and leading-. rules are load-bearing: a path-shaped id gets copied by small models as a citation, which cost a real 35–57 dispatch re-cite loop in this repo. Keeping node ids out of path shape means a model cannot mistake one for a file path and re-cite it.