requiredNodeMajorVersion top-level constant

int const requiredNodeMajorVersion

The lowest Node major version the shipped server and the Agent SDK accept.

The same requirement is declared in node/package.json as engines.node, and the duplication is deliberate: npm needs it there to refuse an install, and the probe needs it here as an int on a path that has to work when a caller has pointed standaloneScriptEnvVar at a bare script with no manifest beside it. Reading the manifest at probe time would have to fall back to a constant for exactly that case, which restores the duplication and hides it.

The engines.node test in server_packaging_test.dart keeps the two in step: it parses engines.node and fails when the numbers disagree, or when the range is written in a form it will not approximate. Bump one and that test names the other.

Both are in turn a claim about what the Agent SDK needs, so a second test requires this floor to be at least the SDK's own declared minimum — directional, because stricter is safe and looser readmits the grandchild failure the floor exists to prevent. This floor is currently above the SDK's, which needs no separate defence: npm enforces the manifest at install time, so a runtime below it cannot install the payload at all.

The number itself is core's llmRequiredNodeMajorVersion, so the discovery that picks a Node and the probe that checks one enforce the same floor.

Implementation

const requiredNodeMajorVersion = llmRequiredNodeMajorVersion;