@knowlearning/agents 0.5.8 → 0.5.9
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.js +10 -0
- package/package.json +1 -1
package/agents/generic.js
CHANGED
|
@@ -450,6 +450,15 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
|
|
|
450
450
|
mode = 'debug'
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
+
function query(query, params) {
|
|
454
|
+
initialize(
|
|
455
|
+
uuid(),
|
|
456
|
+
'application/json;type=postgres-query',
|
|
457
|
+
{ query, params }
|
|
458
|
+
)
|
|
459
|
+
return lastMessageResponse()
|
|
460
|
+
}
|
|
461
|
+
|
|
453
462
|
return {
|
|
454
463
|
uuid,
|
|
455
464
|
environment,
|
|
@@ -464,6 +473,7 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
|
|
|
464
473
|
claim,
|
|
465
474
|
reset,
|
|
466
475
|
metadata,
|
|
476
|
+
query,
|
|
467
477
|
synced,
|
|
468
478
|
disconnect,
|
|
469
479
|
reconnect,
|