The problem folder. Every worker works inside it.
The workflow bus. Gets the workers' usage events, and their tool events
(tool_call, tool_progress, tool_result) tagged with the task id.
The tools a worker may get, usually [...fsTools(), ...cliTools()].
Each task gets only the ones its kind needs. load_skill is added from
skillTools() when it is not in the list.
OptionalmaxUpper bound on generated tokens per call, 8000 by default.
OptionalcontextContext budget of a worker, WORKER_CONTEXT_TOKENS by default. The chat gives a smaller one for a model with a small window.
OptionaltemperatureSampling temperature, 0.3 by default.
OptionalprecheckChecks the task when the worker calls finish_task. A failed check is
sent back to the worker as the tool result and the task goes on. Without
it, finish_task always ends the task.
Makes a registry, new DefaultToolRegistry({ permissions }).
Makes a sandbox, new FolderSandbox(root, { allowWrite }).
Makes a gate, new DefaultPermissionGate(bus, mode).
OptionalsecretsKeys to redact from errors.
What the worker needs. The factories let W0b pass the real classes.