lib/agent/commands.js
function(type, name, opts) {
  if (!watching) return;

  var storable = ['start', 'watch', 'report'];

  if (type == 'cancel') // report cancelled
    remove('report', name);
  else if (storable.indexOf(type) !== -1) // ok for launch
    store(type, name, opts);
}
function(type, name, opts) {
  if (!watching) return;

  var storable = ['start', 'watch', 'report'];

  if (type == 'cancel') // report cancelled
    remove('report', name);
  else if (storable.indexOf(type) !== -1) // ok for launch
    store(type, name, opts);
}
function ( type , name , opts ) { if ( ! watching ) return ; var storable = [ 'start' , 'watch' , 'report' ] ; if ( type == 'cancel' ) // report cancelled remove ( 'report' , name ) ; else if ( storable . indexOf ( type ) !== - 1 ) // ok for launch store ( type , name , opts ) ; }
record when actions, triggers and reports are started
record when actions triggers and reports are started