@knowlearning/agents 0.9.85 → 0.9.87

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.
@@ -13,7 +13,7 @@ const POSTGRES_QUERY_TYPE = 'application/json;type=postgres-query'
13
13
  const TAG_TYPE = 'application/json;type=tag'
14
14
  const DOMAIN_CLAIM_TYPE = 'application/json;type=domain-claim'
15
15
 
16
- export default function Agent({ Connection, token, uuid, fetch, applyPatch, login, logout, reboot, handleDomainInteraction }) {
16
+ export default function Agent({ Connection, token, uuid, fetch, applyPatch, login, logout, reboot, handleDomainMessage }) {
17
17
  const states = {}
18
18
  const watchers = {}
19
19
  const keyToSubscriptionId = {}
@@ -29,7 +29,7 @@ export default function Agent({ Connection, token, uuid, fetch, applyPatch, logi
29
29
  reconnect,
30
30
  synced,
31
31
  environment
32
- ] = messageQueue({ token, Connection, watchers, states, applyPatch, log, login, interact, reboot, trigger })
32
+ ] = messageQueue({ token, Connection, watchers, states, applyPatch, log, login, interact, reboot, trigger, handleDomainMessage })
33
33
 
34
34
  // initialize session
35
35
  environment()
package/deno.js CHANGED
@@ -21,7 +21,7 @@ function Connection() {
21
21
  const children = {}
22
22
  const listeners = {}
23
23
 
24
- const agent new Agent({
24
+ const agent = new Agent({
25
25
  Connection,
26
26
  token: () => AGENT_TOKEN,
27
27
  uuid: () => crypto.randomUUID(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.9.85",
3
+ "version": "0.9.87",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",