This moves the runtime behavior of the agent to a Runtime class, now
under lib/agent/runtime.ts, making the code easier to read. The agent
interface definition is now under lib/agent/index.ts
This also modifies the behavior of the agent from polling to being
influenced by sensors. Configuring an agent with follow true, means
that new state changes coming from sensors will trigger re-plans to
check if the state has gone off-target.
This moves the runtime behavior of the agent to a
Runtime
class, now underlib/agent/runtime.ts
, making the code easier to read. The agent interface definition is now underlib/agent/index.ts
This also modifies the behavior of the agent from polling to being influenced by sensors. Configuring an agent with
follow
true, means that new state changes coming from sensors will trigger re-plans to check if the state has gone off-target.Change-type: minor