Common
- Updated libs: getset, entry, ocelot. Three different bugs are fixed thanks to this!
- Added missing require('fs') in lib/system. Another nasty bug gone.
Agent
- Updated strategy for persisting running commands. We no longer wait for a shutdown to store them, we do this once an action is requested. This allows restoring the state from an unclean shutdown.
- Trigger 'stopped' events for actions that do not return emitter instances. Also emit 'trigger' events too.
- Add config.global.save support for plugins.
- CP plugin: Perform an instruction fetch on load. Added semaphore to avoid duplicate calls.
- CP plugin: Fixed error when attempts where maxed in API request module.
- CP plugin: Updated sync() logic. It should handle updating local/global settings and restore running actions too.
Conf
- Handle outdated config files instead of simply exploding.
- Ensure device_key is cleared when calling keys.set_api_key(). Also ensure it is cleared when running 'config account setup', in case the user changed the linked account.