pub fn daemon_entry() -> Result<PathBuf, OrchestratorError>Expand description
Locate the Node daemon entry (sdk/orchestrator/bin/orchestrator.mjs).
Candidates, in order: SUPERCODE_ORCHESTRATOR_ENTRY (an explicit
override, which is also how a test points at a fake), the repo checkout
the running binary sits in, the checkout it was built from, and the
published package’s supercode-orchestrator command on PATH (what npm install -g @volter/supercode-orchestrator puts there), as the Teams entry
is found. A binary built from a checkout runs that checkout’s daemon, never
an older installed one. The current directory is never a candidate: the
code a binary runs does not change with where it is run.