Donna-ai / Donna

Donna = Virtual Assistant + Internet of Things, "Donna, the best Virtual Secretary platform" (Work In Progress)
MIT License
44 stars 17 forks source link

Register plugin accept an Object, not a Function #12

Open Glavin001 opened 9 years ago

Glavin001 commented 9 years ago

Instead of having the registerPlugin method accept a Function, have it accept an Object that is formatted as follows:

{
  "name": "donna-plugin-example",
  "description": "Interact with the foobar API; assign foos, list bars, etc.",
  "version": "0.0.1",
  "plugins": {
     "senses": [ ], // array of sense emitters
     "cortices": [ ], // array of cortices / processing units
     "controls": [ ] // array of controllers
  }
}
Glavin001 commented 9 years ago

Consider the Machinepack and Machine Specs: http://node-machine.org/spec/machinepack and http://node-machine.org/spec/machine