@knowlearning/agents 0.9.158 → 0.9.159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agents/generic/index.js +2 -2
- package/package.json +1 -1
package/agents/generic/index.js
CHANGED
|
@@ -12,7 +12,7 @@ const UPLOAD_TYPE = 'application/json;type=upload'
|
|
|
12
12
|
const TAG_TYPE = 'application/json;type=tag'
|
|
13
13
|
const DOMAIN_CLAIM_TYPE = 'application/json;type=domain-claim'
|
|
14
14
|
|
|
15
|
-
export default function Agent({ Connection, domain, token, sid, uuid, fetch, applyPatch, login, logout, reboot, handleDomainMessage, log:passedLog=console.log }) {
|
|
15
|
+
export default function Agent({ Connection, domain, token, sid, uuid, fetch, applyPatch, login, logout, reboot, handleDomainMessage, log:passedLog=console.log, variables={} }) {
|
|
16
16
|
const states = {}
|
|
17
17
|
const watchers = {}
|
|
18
18
|
const keyToSubscriptionId = {}
|
|
@@ -27,7 +27,7 @@ export default function Agent({ Connection, domain, token, sid, uuid, fetch, app
|
|
|
27
27
|
reconnect,
|
|
28
28
|
synced,
|
|
29
29
|
environment
|
|
30
|
-
] = messageQueue({ token, sid, domain, Connection, watchers, states, applyPatch, log, login, interact, reboot, trigger, handleDomainMessage })
|
|
30
|
+
] = messageQueue({ token, sid, domain, Connection, watchers, states, applyPatch, log, login, interact, reboot, trigger, handleDomainMessage, variables })
|
|
31
31
|
|
|
32
32
|
// initialize session
|
|
33
33
|
environment()
|