@xyo-network/bridge-pub-sub 2.94.10 → 2.94.12

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.
Files changed (42) hide show
  1. package/dist/browser/AsyncQueryBus/AsyncQueryBusBase.d.cts +66 -6
  2. package/dist/browser/AsyncQueryBus/AsyncQueryBusBase.d.cts.map +1 -1
  3. package/dist/browser/AsyncQueryBus/AsyncQueryBusBase.d.mts +66 -6
  4. package/dist/browser/AsyncQueryBus/AsyncQueryBusBase.d.mts.map +1 -1
  5. package/dist/browser/AsyncQueryBus/AsyncQueryBusBase.d.ts +66 -6
  6. package/dist/browser/AsyncQueryBus/AsyncQueryBusBase.d.ts.map +1 -1
  7. package/dist/browser/AsyncQueryBus/AsyncQueryBusClient.d.cts.map +1 -1
  8. package/dist/browser/AsyncQueryBus/AsyncQueryBusClient.d.mts.map +1 -1
  9. package/dist/browser/AsyncQueryBus/AsyncQueryBusClient.d.ts.map +1 -1
  10. package/dist/browser/AsyncQueryBus/AsyncQueryBusHost.d.cts +1 -1
  11. package/dist/browser/AsyncQueryBus/AsyncQueryBusHost.d.cts.map +1 -1
  12. package/dist/browser/AsyncQueryBus/AsyncQueryBusHost.d.mts +1 -1
  13. package/dist/browser/AsyncQueryBus/AsyncQueryBusHost.d.mts.map +1 -1
  14. package/dist/browser/AsyncQueryBus/AsyncQueryBusHost.d.ts +1 -1
  15. package/dist/browser/AsyncQueryBus/AsyncQueryBusHost.d.ts.map +1 -1
  16. package/dist/browser/index.cjs +133 -91
  17. package/dist/browser/index.cjs.map +1 -1
  18. package/dist/browser/index.js +133 -91
  19. package/dist/browser/index.js.map +1 -1
  20. package/dist/node/AsyncQueryBus/AsyncQueryBusBase.d.cts +66 -6
  21. package/dist/node/AsyncQueryBus/AsyncQueryBusBase.d.cts.map +1 -1
  22. package/dist/node/AsyncQueryBus/AsyncQueryBusBase.d.mts +66 -6
  23. package/dist/node/AsyncQueryBus/AsyncQueryBusBase.d.mts.map +1 -1
  24. package/dist/node/AsyncQueryBus/AsyncQueryBusBase.d.ts +66 -6
  25. package/dist/node/AsyncQueryBus/AsyncQueryBusBase.d.ts.map +1 -1
  26. package/dist/node/AsyncQueryBus/AsyncQueryBusClient.d.cts.map +1 -1
  27. package/dist/node/AsyncQueryBus/AsyncQueryBusClient.d.mts.map +1 -1
  28. package/dist/node/AsyncQueryBus/AsyncQueryBusClient.d.ts.map +1 -1
  29. package/dist/node/AsyncQueryBus/AsyncQueryBusHost.d.cts +1 -1
  30. package/dist/node/AsyncQueryBus/AsyncQueryBusHost.d.cts.map +1 -1
  31. package/dist/node/AsyncQueryBus/AsyncQueryBusHost.d.mts +1 -1
  32. package/dist/node/AsyncQueryBus/AsyncQueryBusHost.d.mts.map +1 -1
  33. package/dist/node/AsyncQueryBus/AsyncQueryBusHost.d.ts +1 -1
  34. package/dist/node/AsyncQueryBus/AsyncQueryBusHost.d.ts.map +1 -1
  35. package/dist/node/index.cjs +139 -120
  36. package/dist/node/index.cjs.map +1 -1
  37. package/dist/node/index.js +139 -120
  38. package/dist/node/index.js.map +1 -1
  39. package/package.json +18 -17
  40. package/src/AsyncQueryBus/AsyncQueryBusBase.ts +69 -40
  41. package/src/AsyncQueryBus/AsyncQueryBusClient.ts +24 -26
  42. package/src/AsyncQueryBus/AsyncQueryBusHost.ts +20 -19
@@ -1 +1 @@
1
- {"version":3,"file":"AsyncQueryBusBase.d.ts","sourceRoot":"","sources":["../../../src/AsyncQueryBus/AsyncQueryBusBase.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,IAAI,EAAgB,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAuB,MAAM,8BAA8B,CAAA;AAGrF,OAAO,EAAqB,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,QAA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undwitness";
33
33
  }, "schema"> & {
34
34
  schema: "network.xyo.boundwitness";
35
- }>[]>;
35
+ }>[] | undefined>;
36
36
  /**
37
37
  * Runs the background divine process on a loop with a delay
38
38
  * specified by the `config.pollFrequency`
@@ -1 +1 @@
1
- {"version":3,"file":"AsyncQueryBusHost.d.ts","sourceRoot":"","sources":["../../../src/AsyncQueryBus/AsyncQueryBusHost.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,OAAO,EAA+B,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAEhG,OAAO,EAAwC,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAEhG,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAEjD,MAAM,WAAW,aAAa;IAC5B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAED,qBAAa,iBAAiB,CAAC,OAAO,SAAS,uBAAuB,GAAG,uBAAuB,CAAE,SAAQ,iBAAiB,CAAC,OAAO,CAAC;IAClI,SAAS,CAAC,iBAAiB,yBAAqB;IAChD,OAAO,CAAC,cAAc,CAAqC;IAC3D,OAAO,CAAC,OAAO,CAAC,CAAQ;gBAEZ,MAAM,EAAE,OAAO;IAI3B,IAAI,gBAAgB,2BAEnB;IAED,IAAI,yBAAyB,IAAI,MAAM,CAEtC;IAED,IAAI,OAAO,YAEV;IAED,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,aAAkB;IAQ9C,gBAAgB,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;IAUnD,KAAK;IAOL,IAAI;IAQJ,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,UAAO;IAO1C,SAAS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,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,UAAO;IAO1C,SAAS,CAAC,eAAe,gBAAuB,cAAc,SAAS,SAAS,iBAAiB,CAAC,mBAyDjG;IAED;;;OAGG;IACH,SAAS,CAAC,oBAAoB,YAAmB,OAAO;;;;;;sBAoBvD;IAED;;;OAGG;IACH,OAAO,CAAC,IAAI;IAcZ;;OAEG;IACH,OAAO,CAAC,sBAAsB,CAsB7B;CACF"}
@@ -32,7 +32,7 @@ export declare class AsyncQueryBusHost<TParams extends AsyncQueryBusHostParams =
32
32
  schema: "network.xyo.boundwitness";
33
33
  }, "schema"> & {
34
34
  schema: "network.xyo.boundwitness";
35
- }>[]>;
35
+ }>[] | undefined>;
36
36
  /**
37
37
  * Runs the background divine process on a loop with a delay
38
38
  * specified by the `config.pollFrequency`
@@ -1 +1 @@
1
- {"version":3,"file":"AsyncQueryBusHost.d.ts","sourceRoot":"","sources":["../../../src/AsyncQueryBus/AsyncQueryBusHost.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,OAAO,EAA+B,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAEhG,OAAO,EAAwC,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAEhG,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAEjD,MAAM,WAAW,aAAa;IAC5B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAED,qBAAa,iBAAiB,CAAC,OAAO,SAAS,uBAAuB,GAAG,uBAAuB,CAAE,SAAQ,iBAAiB,CAAC,OAAO,CAAC;IAClI,SAAS,CAAC,iBAAiB,yBAAqB;IAChD,OAAO,CAAC,cAAc,CAA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;IAClI,SAAS,CAAC,iBAAiB,yBAAqB;IAChD,OAAO,CAAC,cAAc,CAAqC;IAC3D,OAAO,CAAC,OAAO,CAAC,CAAQ;gBAEZ,MAAM,EAAE,OAAO;IAI3B,IAAI,gBAAgB,2BAEnB;IAED,IAAI,yBAAyB,IAAI,MAAM,CAEtC;IAED,IAAI,OAAO,YAEV;IAED,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,aAAkB;IAQ9C,gBAAgB,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;IAUnD,KAAK;IAOL,IAAI;IAQJ,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,UAAO;IAO1C,SAAS,CAAC,eAAe,gBAAuB,cAAc,SAAS,SAAS,iBAAiB,CAAC,mBAyDjG;IAED;;;OAGG;IACH,SAAS,CAAC,oBAAoB,YAAmB,OAAO;;;;;;sBAoBvD;IAED;;;OAGG;IACH,OAAO,CAAC,IAAI;IAcZ;;OAEG;IACH,OAAO,CAAC,sBAAsB,CAsB7B;CACF"}
@@ -32,7 +32,7 @@ export declare class AsyncQueryBusHost<TParams extends AsyncQueryBusHostParams =
32
32
  schema: "network.xyo.boundwitness";
33
33
  }, "schema"> & {
34
34
  schema: "network.xyo.boundwitness";
35
- }>[]>;
35
+ }>[] | undefined>;
36
36
  /**
37
37
  * Runs the background divine process on a loop with a delay
38
38
  * specified by the `config.pollFrequency`
@@ -1 +1 @@
1
- {"version":3,"file":"AsyncQueryBusHost.d.ts","sourceRoot":"","sources":["../../../src/AsyncQueryBus/AsyncQueryBusHost.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,OAAO,EAA+B,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAEhG,OAAO,EAAwC,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAEhG,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,E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AE,MAAM,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAEjD,MAAM,WAAW,aAAa;IAC5B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAED,qBAAa,iBAAiB,CAAC,OAAO,SAAS,uBAAuB,GAAG,uBAAuB,CAAE,SAAQ,iBAAiB,CAAC,OAAO,CAAC;IAClI,SAAS,CAAC,iBAAiB,yBAAqB;IAChD,OAAO,CAAC,cAAc,CAAqC;IAC3D,OAAO,CAAC,OAAO,CAAC,CAAQ;gBAEZ,MAAM,EAAE,OAAO;IAI3B,IAAI,gBAAgB,2BAEnB;IAED,IAAI,yBAAyB,IAAI,MAAM,CAEtC;IAED,IAAI,OAAO,YAEV;IAED,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,aAAkB;IAQ9C,gBAAgB,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;IAUnD,KAAK;IAOL,IAAI;IAQJ,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,UAAO;IAO1C,SAAS,CAAC,eAAe,gBAAuB,cAAc,SAAS,SAAS,iBAAiB,CAAC,mBAyDjG;IAED;;;OAGG;IACH,SAAS,CAAC,oBAAoB,YAAmB,OAAO;;;;;;sBAoBvD;IAED;;;OAGG;IACH,OAAO,CAAC,IAAI;IAcZ;;OAEG;IACH,OAAO,CAAC,sBAAsB,CAsB7B;CACF"}
@@ -47,7 +47,7 @@ __name(_AbstractModuleHost, "AbstractModuleHost");
47
47
  var AbstractModuleHost = _AbstractModuleHost;
48
48
 
49
49
  // src/AsyncQueryBus/AsyncQueryBusClient.ts
50
- var import_assert2 = require("@xylabs/assert");
50
+ var import_assert = require("@xylabs/assert");
51
51
  var import_delay = require("@xylabs/delay");
52
52
  var import_forget = require("@xylabs/forget");
53
53
  var import_timer = require("@xylabs/timer");
@@ -57,7 +57,6 @@ var import_payload_builder = require("@xyo-network/payload-builder");
57
57
  var import_lru_cache2 = require("lru-cache");
58
58
 
59
59
  // src/AsyncQueryBus/AsyncQueryBusBase.ts
60
- var import_assert = require("@xylabs/assert");
61
60
  var import_object2 = require("@xylabs/object");
62
61
  var import_archivist_model = require("@xyo-network/archivist-model");
63
62
  var import_diviner_model = require("@xyo-network/diviner-model");
@@ -68,13 +67,13 @@ var _AsyncQueryBusBase = class _AsyncQueryBusBase extends import_object2.Base {
68
67
  _targetQueries = {};
69
68
  _lastQueriesArchivistAttempt;
70
69
  _lastQueriesDivinerAttempt;
71
- _lastResponseArchivistAttempt;
72
- _lastResponseDivinerAttempt;
70
+ _lastResponsesArchivistAttempt;
71
+ _lastResponsesDivinerAttempt;
73
72
  _queriesArchivist;
74
73
  _queriesDiviner;
75
- _reResolveDelay = 5e3;
76
- _responseArchivist;
77
- _responseDiviner;
74
+ _reResolveDelay = 5e4;
75
+ _responsesArchivist;
76
+ _responsesDiviner;
78
77
  constructor(params) {
79
78
  super(params);
80
79
  }
@@ -100,68 +99,88 @@ var _AsyncQueryBusBase = class _AsyncQueryBusBase extends import_object2.Base {
100
99
  return this._lastState;
101
100
  }
102
101
  async queriesArchivist() {
103
- var _a, _b, _c;
102
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
104
103
  if (this._queriesArchivist) {
105
104
  return this._queriesArchivist;
106
105
  }
107
- if (this._lastQueriesArchivistAttempt && Date.now() - this._lastQueriesArchivistAttempt < this._reResolveDelay) {
106
+ if (Date.now() - (this._lastQueriesArchivistAttempt ?? 0) < this._reResolveDelay) {
108
107
  return;
109
108
  }
110
- const resolved = await this.resolver.resolve((_c = (_b = (_a = this.config) == null ? void 0 : _a.intersect) == null ? void 0 : _b.queries) == null ? void 0 : _c.archivist, {
111
- direction: "up"
112
- });
113
- const existingResolved = (0, import_assert.assertEx)(resolved, () => {
114
- var _a2, _b2, _c2;
115
- return `Unable to resolve queriesArchivist [${(_c2 = (_b2 = (_a2 = this.config) == null ? void 0 : _a2.intersect) == null ? void 0 : _b2.queries) == null ? void 0 : _c2.archivist}]`;
116
- });
117
- const result = (0, import_archivist_model.asArchivistInstance)(existingResolved, () => {
118
- var _a2, _b2, _c2, _d;
119
- return `Unable to resolve queriesArchivist as correct type [${(_c2 = (_b2 = (_a2 = this.config) == null ? void 0 : _a2.intersect) == null ? void 0 : _b2.queries) == null ? void 0 : _c2.archivist}][${(_d = existingResolved == null ? void 0 : existingResolved.constructor) == null ? void 0 : _d.name}]: ${(0, import_object2.toJsonString)(existingResolved)}`;
120
- });
121
- this._queriesArchivist = result;
122
- return result;
109
+ this._lastQueriesArchivistAttempt = Date.now();
110
+ const resolved = await this.resolver.resolve((_c = (_b = (_a = this.config) == null ? void 0 : _a.intersect) == null ? void 0 : _b.queries) == null ? void 0 : _c.archivist);
111
+ if (resolved) {
112
+ const typedResolve = (0, import_archivist_model.asArchivistInstance)(resolved);
113
+ if (typedResolve) {
114
+ return typedResolve;
115
+ } else {
116
+ (_h = this.logger) == null ? void 0 : _h.warn(`Unable to resolve queriesArchivist as correct type [${(_f = (_e = (_d = this.config) == null ? void 0 : _d.intersect) == null ? void 0 : _e.queries) == null ? void 0 : _f.archivist}][${(_g = resolved == null ? void 0 : resolved.constructor) == null ? void 0 : _g.name}]: ${(0, import_object2.toJsonString)(resolved)}`);
117
+ }
118
+ } else {
119
+ (_l = this.logger) == null ? void 0 : _l.log(`Unable to resolve queriesArchivist [${(_k = (_j = (_i = this.config) == null ? void 0 : _i.intersect) == null ? void 0 : _j.queries) == null ? void 0 : _k.archivist}]`);
120
+ }
123
121
  }
124
122
  async queriesDiviner() {
125
- var _a, _b, _c;
123
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
126
124
  if (this._queriesDiviner) {
127
125
  return this._queriesDiviner;
128
126
  }
129
- if (this._lastQueriesDivinerAttempt && Date.now() - this._lastQueriesDivinerAttempt < this._reResolveDelay) {
127
+ if (Date.now() - (this._lastQueriesDivinerAttempt ?? 0) < this._reResolveDelay) {
130
128
  return;
131
129
  }
132
- this._queriesDiviner = (0, import_assert.assertEx)((0, import_diviner_model.asDivinerInstance)(await this.resolver.resolve((_c = (_b = (_a = this.config) == null ? void 0 : _a.intersect) == null ? void 0 : _b.queries) == null ? void 0 : _c.boundWitnessDiviner)), () => {
133
- var _a2, _b2, _c2;
134
- return `Unable to resolve queriesDiviner [${(_c2 = (_b2 = (_a2 = this.config) == null ? void 0 : _a2.intersect) == null ? void 0 : _b2.queries) == null ? void 0 : _c2.boundWitnessDiviner}]`;
135
- });
136
- return this._queriesDiviner;
130
+ this._lastQueriesDivinerAttempt = Date.now();
131
+ const resolved = await this.resolver.resolve((_c = (_b = (_a = this.config) == null ? void 0 : _a.intersect) == null ? void 0 : _b.queries) == null ? void 0 : _c.boundWitnessDiviner);
132
+ if (resolved) {
133
+ const typedResolve = (0, import_diviner_model.asDivinerInstance)(resolved);
134
+ if (typedResolve) {
135
+ return typedResolve;
136
+ } else {
137
+ (_h = this.logger) == null ? void 0 : _h.warn(`Unable to resolve queriesDiviner as correct type [${(_f = (_e = (_d = this.config) == null ? void 0 : _d.intersect) == null ? void 0 : _e.queries) == null ? void 0 : _f.boundWitnessDiviner}][${(_g = resolved == null ? void 0 : resolved.constructor) == null ? void 0 : _g.name}]: ${(0, import_object2.toJsonString)(resolved)}`);
138
+ }
139
+ } else {
140
+ (_l = this.logger) == null ? void 0 : _l.log(`Unable to resolve queriesDiviner [${(_k = (_j = (_i = this.config) == null ? void 0 : _i.intersect) == null ? void 0 : _j.queries) == null ? void 0 : _k.boundWitnessDiviner}]`);
141
+ }
137
142
  }
138
143
  async responsesArchivist() {
139
- var _a, _b, _c;
140
- if (this._responseArchivist) {
141
- return this._responseArchivist;
144
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
145
+ if (this._responsesArchivist) {
146
+ return this._responsesArchivist;
142
147
  }
143
- if (this._lastResponseArchivistAttempt && Date.now() - this._lastResponseArchivistAttempt < this._reResolveDelay) {
148
+ if (Date.now() - (this._lastResponsesArchivistAttempt ?? 0) < this._reResolveDelay) {
144
149
  return;
145
150
  }
146
- this._responseArchivist = (0, import_assert.assertEx)((0, import_archivist_model.asArchivistInstance)(await this.resolver.resolve((_c = (_b = (_a = this.config) == null ? void 0 : _a.intersect) == null ? void 0 : _b.responses) == null ? void 0 : _c.archivist)), () => {
147
- var _a2, _b2, _c2;
148
- return `Unable to resolve responsesArchivist [${(_c2 = (_b2 = (_a2 = this.config) == null ? void 0 : _a2.intersect) == null ? void 0 : _b2.responses) == null ? void 0 : _c2.archivist}]`;
149
- });
150
- return this._responseArchivist;
151
+ this._lastResponsesArchivistAttempt = Date.now();
152
+ const resolved = await this.resolver.resolve((_c = (_b = (_a = this.config) == null ? void 0 : _a.intersect) == null ? void 0 : _b.responses) == null ? void 0 : _c.archivist);
153
+ if (resolved) {
154
+ const typedResolve = (0, import_archivist_model.asArchivistInstance)(resolved);
155
+ if (typedResolve) {
156
+ return typedResolve;
157
+ } else {
158
+ (_h = this.logger) == null ? void 0 : _h.warn(`Unable to resolve responseArchivist as correct type [${(_f = (_e = (_d = this.config) == null ? void 0 : _d.intersect) == null ? void 0 : _e.responses) == null ? void 0 : _f.archivist}][${(_g = resolved == null ? void 0 : resolved.constructor) == null ? void 0 : _g.name}]: ${(0, import_object2.toJsonString)(resolved)}`);
159
+ }
160
+ } else {
161
+ (_l = this.logger) == null ? void 0 : _l.log(`Unable to resolve responseArchivist [${(_k = (_j = (_i = this.config) == null ? void 0 : _i.intersect) == null ? void 0 : _j.responses) == null ? void 0 : _k.archivist}]`);
162
+ }
151
163
  }
152
164
  async responsesDiviner() {
153
- var _a, _b, _c;
154
- if (this._responseDiviner) {
155
- return this._responseDiviner;
165
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
166
+ if (this._responsesDiviner) {
167
+ return this._responsesDiviner;
156
168
  }
157
- if (this._lastResponseDivinerAttempt && Date.now() - this._lastResponseDivinerAttempt < this._reResolveDelay) {
169
+ if (Date.now() - (this._lastResponsesDivinerAttempt ?? 0) < this._reResolveDelay) {
158
170
  return;
159
171
  }
160
- this._responseDiviner = (0, import_assert.assertEx)((0, import_diviner_model.asDivinerInstance)(await this.resolver.resolve((_c = (_b = (_a = this.config) == null ? void 0 : _a.intersect) == null ? void 0 : _b.responses) == null ? void 0 : _c.boundWitnessDiviner)), () => {
161
- var _a2, _b2, _c2;
162
- return `Unable to resolve responsesDiviner [${(_c2 = (_b2 = (_a2 = this.config) == null ? void 0 : _a2.intersect) == null ? void 0 : _b2.responses) == null ? void 0 : _c2.boundWitnessDiviner}]`;
163
- });
164
- return this._responseDiviner;
172
+ this._lastResponsesDivinerAttempt = Date.now();
173
+ const resolved = await this.resolver.resolve((_c = (_b = (_a = this.config) == null ? void 0 : _a.intersect) == null ? void 0 : _b.responses) == null ? void 0 : _c.boundWitnessDiviner);
174
+ if (resolved) {
175
+ const typedResolve = (0, import_diviner_model.asDivinerInstance)(resolved);
176
+ if (typedResolve) {
177
+ return typedResolve;
178
+ } else {
179
+ (_h = this.logger) == null ? void 0 : _h.warn(`Unable to resolve responsesDiviner as correct type [${(_f = (_e = (_d = this.config) == null ? void 0 : _d.intersect) == null ? void 0 : _e.responses) == null ? void 0 : _f.boundWitnessDiviner}][${(_g = resolved == null ? void 0 : resolved.constructor) == null ? void 0 : _g.name}]: ${(0, import_object2.toJsonString)(resolved)}`);
180
+ }
181
+ } else {
182
+ (_l = this.logger) == null ? void 0 : _l.log(`Unable to resolve responsesDiviner [${(_k = (_j = (_i = this.config) == null ? void 0 : _i.intersect) == null ? void 0 : _j.responses) == null ? void 0 : _k.boundWitnessDiviner}]`);
183
+ }
165
184
  }
166
185
  /**
167
186
  * Commit the internal state of the process. This is similar
@@ -252,7 +271,7 @@ var _AsyncQueryBusClient = class _AsyncQueryBusClient extends AsyncQueryBusBase
252
271
  ...query,
253
272
  $meta
254
273
  });
255
- const queryArchivist = (0, import_assert2.assertEx)(await this.queriesArchivist(), () => {
274
+ const queryArchivist = (0, import_assert.assertEx)(await this.queriesArchivist(), () => {
256
275
  var _a2, _b2, _c2;
257
276
  return `Unable to contact queriesArchivist [${(_c2 = (_b2 = (_a2 = this.config) == null ? void 0 : _a2.intersect) == null ? void 0 : _b2.queries) == null ? void 0 : _c2.archivist}]`;
258
277
  });
@@ -334,41 +353,39 @@ var _AsyncQueryBusClient = class _AsyncQueryBusClient extends AsyncQueryBusBase
334
353
  * Background process for processing incoming responses to previously issued queries
335
354
  */
336
355
  processIncomingResponses = async () => {
337
- const responseArchivist = (0, import_assert2.assertEx)(await this.responsesArchivist(), () => {
338
- var _a, _b, _c;
339
- return `Unable to contact the responsesArchivist [${(_c = (_b = (_a = this.config) == null ? void 0 : _a.intersect) == null ? void 0 : _b.responses) == null ? void 0 : _c.archivist}]`;
340
- });
341
- const responseBoundWitnessDiviner = (0, import_assert2.assertEx)(await this.responsesDiviner(), () => {
342
- var _a, _b, _c;
343
- return `Unable to contact responsesDiviner [${(_c = (_b = (_a = this.config) == null ? void 0 : _a.intersect) == null ? void 0 : _b.responses) == null ? void 0 : _c.boundWitnessDiviner}]`;
344
- });
345
- const pendingCommands = [
346
- ...this.queryCache.entries()
347
- ].filter(([_, status]) => status === Pending);
348
- await Promise.allSettled(pendingCommands.map(async ([sourceQuery, status]) => {
349
- var _a, _b, _c;
350
- if (status === Pending) {
351
- const divinerQuery = {
352
- schema: import_diviner_boundwitness_model.BoundWitnessDivinerQuerySchema,
353
- sourceQuery
354
- };
355
- const result = await responseBoundWitnessDiviner.divine([
356
- divinerQuery
357
- ]);
358
- if (result && result.length > 0) {
359
- const response = result.find(import_boundwitness_model.isBoundWitnessWithMeta);
360
- if (response && ((_a = response == null ? void 0 : response.$meta) == null ? void 0 : _a.sourceQuery) === sourceQuery) {
361
- (_b = this.logger) == null ? void 0 : _b.debug(`Found response to query: ${sourceQuery}`);
362
- const payloads = ((_c = response.payload_hashes) == null ? void 0 : _c.length) > 0 ? await responseArchivist.get(response.payload_hashes) : [];
363
- this.queryCache.set(sourceQuery, [
364
- response,
365
- payloads,
366
- []
356
+ const responseArchivist = await this.responsesArchivist();
357
+ if (responseArchivist) {
358
+ const responseBoundWitnessDiviner = await this.responsesDiviner();
359
+ if (responseBoundWitnessDiviner) {
360
+ const pendingCommands = [
361
+ ...this.queryCache.entries()
362
+ ].filter(([_, status]) => status === Pending);
363
+ await Promise.allSettled(pendingCommands.map(async ([sourceQuery, status]) => {
364
+ var _a, _b, _c;
365
+ if (status === Pending) {
366
+ const divinerQuery = {
367
+ schema: import_diviner_boundwitness_model.BoundWitnessDivinerQuerySchema,
368
+ sourceQuery
369
+ };
370
+ const result = await responseBoundWitnessDiviner.divine([
371
+ divinerQuery
367
372
  ]);
373
+ if (result && result.length > 0) {
374
+ const response = result.find(import_boundwitness_model.isBoundWitnessWithMeta);
375
+ if (response && ((_a = response == null ? void 0 : response.$meta) == null ? void 0 : _a.sourceQuery) === sourceQuery) {
376
+ (_b = this.logger) == null ? void 0 : _b.debug(`Found response to query: ${sourceQuery}`);
377
+ const payloads = ((_c = response.payload_hashes) == null ? void 0 : _c.length) > 0 ? await responseArchivist.get(response.payload_hashes) : [];
378
+ this.queryCache.set(sourceQuery, [
379
+ response,
380
+ payloads,
381
+ []
382
+ ]);
383
+ }
384
+ }
368
385
  }
369
- }
386
+ }));
370
387
  }
371
- }));
388
+ }
372
389
  };
373
390
  start() {
374
391
  if (this._pollCount === 0) {
@@ -391,7 +408,7 @@ var AsyncQueryBusClient = _AsyncQueryBusClient;
391
408
 
392
409
  // src/AsyncQueryBus/AsyncQueryBusHost.ts
393
410
  var import_array = require("@xylabs/array");
394
- var import_assert3 = require("@xylabs/assert");
411
+ var import_assert2 = require("@xylabs/assert");
395
412
  var import_timer2 = require("@xylabs/timer");
396
413
  var import_boundwitness_model2 = require("@xyo-network/boundwitness-model");
397
414
  var import_diviner_boundwitness_model2 = require("@xyo-network/diviner-boundwitness-model");
@@ -417,7 +434,7 @@ var _AsyncQueryBusHost = class _AsyncQueryBusHost extends AsyncQueryBusBase {
417
434
  expose(address, options = {}) {
418
435
  var _a;
419
436
  const { failOnAlreadyExposed } = options;
420
- (0, import_assert3.assertEx)(!failOnAlreadyExposed || !this._exposedAddresses.has(address), () => `Address already exposed [${address}]`);
437
+ (0, import_assert2.assertEx)(!failOnAlreadyExposed || !this._exposedAddresses.has(address), () => `Address already exposed [${address}]`);
421
438
  this._exposedAddresses.add(address);
422
439
  this._exposeOptions[address] = {
423
440
  ...options
@@ -430,7 +447,7 @@ var _AsyncQueryBusHost = class _AsyncQueryBusHost extends AsyncQueryBusBase {
430
447
  ...((_a = this.config) == null ? void 0 : _a.listeningModules) ?? [],
431
448
  ...this.exposedAddresses.values()
432
449
  ];
433
- const mods = await Promise.all(exposedModules.map(async (listeningModule) => (0, import_assert3.assertEx)((0, import_module_model.asModuleInstance)(await this.resolver.resolve(listeningModule)), () => `Unable to resolve listeningModule [${listeningModule}]`)));
450
+ const mods = await Promise.all(exposedModules.map(async (listeningModule) => (0, import_assert2.assertEx)((0, import_module_model.asModuleInstance)(await this.resolver.resolve(listeningModule)), () => `Unable to resolve listeningModule [${listeningModule}]`)));
434
451
  return mods;
435
452
  }
436
453
  start() {
@@ -449,7 +466,7 @@ var _AsyncQueryBusHost = class _AsyncQueryBusHost extends AsyncQueryBusBase {
449
466
  }
450
467
  unexpose(address, validate = true) {
451
468
  var _a;
452
- (0, import_assert3.assertEx)(!validate || this._exposedAddresses.has(address), () => `Address not exposed [${address}]`);
469
+ (0, import_assert2.assertEx)(!validate || this._exposedAddresses.has(address), () => `Address not exposed [${address}]`);
453
470
  this._exposedAddresses.delete(address);
454
471
  delete this._exposeOptions[address];
455
472
  (_a = this.logger) == null ? void 0 : _a.debug(`${address} unexposed`);
@@ -457,11 +474,11 @@ var _AsyncQueryBusHost = class _AsyncQueryBusHost extends AsyncQueryBusBase {
457
474
  callLocalModule = async (localModule, query) => {
458
475
  var _a, _b, _c, _d, _e, _f, _g;
459
476
  const localModuleName = localModule.config.name ?? localModule.address;
460
- const queryArchivist = (0, import_assert3.assertEx)(await this.queriesArchivist(), () => {
477
+ const queryArchivist = (0, import_assert2.assertEx)(await this.queriesArchivist(), () => {
461
478
  var _a2, _b2, _c2;
462
479
  return `Unable to contact queriesArchivist [${(_c2 = (_b2 = (_a2 = this.config) == null ? void 0 : _a2.intersect) == null ? void 0 : _b2.queries) == null ? void 0 : _c2.archivist}]`;
463
480
  });
464
- const responsesArchivist = (0, import_assert3.assertEx)(await this.responsesArchivist(), () => {
481
+ const responsesArchivist = (0, import_assert2.assertEx)(await this.responsesArchivist(), () => {
465
482
  var _a2, _b2, _c2;
466
483
  return `Unable to contact responsesArchivist [${(_c2 = (_b2 = (_a2 = this.config) == null ? void 0 : _a2.intersect) == null ? void 0 : _b2.queries) == null ? void 0 : _c2.archivist}]`;
467
484
  });
@@ -511,29 +528,31 @@ var _AsyncQueryBusHost = class _AsyncQueryBusHost extends AsyncQueryBusBase {
511
528
  * @param address The address to find commands for
512
529
  */
513
530
  findQueriesToAddress = async (address) => {
514
- const queryBoundWitnessDiviner = (0, import_assert3.assertEx)(await this.queriesDiviner(), () => {
515
- var _a, _b, _c;
516
- return `Unable to resolve queriesDiviner [${(_c = (_b = (_a = this.config) == null ? void 0 : _a.intersect) == null ? void 0 : _b.queries) == null ? void 0 : _c.boundWitnessDiviner}]`;
517
- });
518
- const timestamp = await this.retrieveState(address);
519
- const destination = [
520
- address
521
- ];
522
- const limit = this.perAddressBatchQueryLimit;
523
- const divinerQuery = {
524
- destination,
525
- limit,
526
- schema: import_diviner_boundwitness_model2.BoundWitnessDivinerQuerySchema,
527
- sort: "asc",
528
- timestamp
529
- };
530
- const result = await queryBoundWitnessDiviner.divine([
531
- divinerQuery
532
- ]);
533
- const queries = result.filter(import_boundwitness_model2.isQueryBoundWitnessWithMeta);
534
- const nextState = queries.length > 0 ? Math.max(...queries.map((c) => c.timestamp ?? 0)) + 1 : timestamp;
535
- await this.commitState(address, nextState);
536
- return queries;
531
+ var _a, _b, _c, _d;
532
+ const queryBoundWitnessDiviner = await this.queriesDiviner();
533
+ if (queryBoundWitnessDiviner) {
534
+ const timestamp = await this.retrieveState(address);
535
+ const destination = [
536
+ address
537
+ ];
538
+ const limit = this.perAddressBatchQueryLimit;
539
+ const divinerQuery = {
540
+ destination,
541
+ limit,
542
+ schema: import_diviner_boundwitness_model2.BoundWitnessDivinerQuerySchema,
543
+ sort: "asc",
544
+ timestamp
545
+ };
546
+ const result = await queryBoundWitnessDiviner.divine([
547
+ divinerQuery
548
+ ]);
549
+ const queries = result.filter(import_boundwitness_model2.isQueryBoundWitnessWithMeta);
550
+ const nextState = queries.length > 0 ? Math.max(...queries.map((c) => c.timestamp ?? 0)) + 1 : timestamp;
551
+ await this.commitState(address, nextState);
552
+ return queries;
553
+ } else {
554
+ (_d = this.logger) == null ? void 0 : _d.warn(`Unable to resolve queryBoundWitnessDiviner [${(_c = (_b = (_a = this.config) == null ? void 0 : _a.intersect) == null ? void 0 : _b.queries) == null ? void 0 : _c.boundWitnessDiviner}]`);
555
+ }
537
556
  };
538
557
  /**
539
558
  * Runs the background divine process on a loop with a delay
@@ -566,7 +585,7 @@ var _AsyncQueryBusHost = class _AsyncQueryBusHost extends AsyncQueryBusBase {
566
585
  try {
567
586
  const localModuleName = localModule.config.name ?? localModule.address;
568
587
  (_a2 = this.logger) == null ? void 0 : _a2.debug(`Checking for inbound queries to ${localModuleName} [${localModule.address}]`);
569
- const queries = await this.findQueriesToAddress(localModule.address);
588
+ const queries = await this.findQueriesToAddress(localModule.address) ?? [];
570
589
  if (queries.length === 0)
571
590
  return;
572
591
  (_b = this.logger) == null ? void 0 : _b.debug(`Found queries addressed to local module: ${localModuleName}`);
@@ -631,13 +650,13 @@ var PubSubBridgeSchema = "network.xyo.bridge.pubsub";
631
650
  var PubSubBridgeConfigSchema = `${PubSubBridgeSchema}.config`;
632
651
 
633
652
  // src/PubSubBridge.ts
634
- var import_assert5 = require("@xylabs/assert");
653
+ var import_assert4 = require("@xylabs/assert");
635
654
  var import_exists = require("@xylabs/exists");
636
655
  var import_abstract_bridge3 = require("@xyo-network/abstract-bridge");
637
656
  var import_module_model3 = require("@xyo-network/module-model");
638
657
 
639
658
  // src/PubSubBridgeModuleResolver.ts
640
- var import_assert4 = require("@xylabs/assert");
659
+ var import_assert3 = require("@xylabs/assert");
641
660
  var import_hex = require("@xylabs/hex");
642
661
  var import_abstract_bridge2 = require("@xyo-network/abstract-bridge");
643
662
  var import_account = require("@xyo-network/account");
@@ -652,7 +671,7 @@ var _PubSubBridgeModuleResolver = class _PubSubBridgeModuleResolver extends impo
652
671
  }
653
672
  const idParts = id.split(":");
654
673
  const firstPart = idParts.shift();
655
- (0, import_assert4.assertEx)((0, import_hex.isAddress)(firstPart), () => `Invalid module address: ${firstPart}`);
674
+ (0, import_assert3.assertEx)((0, import_hex.isAddress)(firstPart), () => `Invalid module address: ${firstPart}`);
656
675
  const remainderParts = idParts.join(":");
657
676
  const account = import_account.Account.randomSync();
658
677
  const params = {
@@ -669,13 +688,13 @@ var _PubSubBridgeModuleResolver = class _PubSubBridgeModuleResolver extends impo
669
688
  const state = await proxy.state();
670
689
  if (state) {
671
690
  const configSchema = (_a = state.find((payload) => payload.schema === import_config_payload_plugin.ConfigSchema)) == null ? void 0 : _a.config;
672
- const config = (0, import_assert4.assertEx)(state.find((payload) => payload.schema === configSchema), () => "Unable to locate config");
691
+ const config = (0, import_assert3.assertEx)(state.find((payload) => payload.schema === configSchema), () => "Unable to locate config");
673
692
  proxy.setConfig(config);
674
693
  }
675
694
  }
676
695
  await ((_b = proxy.start) == null ? void 0 : _b.call(proxy));
677
696
  const wrapped = (0, import_abstract_bridge2.wrapModuleWithType)(proxy, account);
678
- const as = (0, import_assert4.assertEx)((0, import_module_model2.asModuleInstance)(wrapped, {}), () => `Failed to asModuleInstance [${id}]`);
697
+ const as = (0, import_assert3.assertEx)((0, import_module_model2.asModuleInstance)(wrapped, {}), () => `Failed to asModuleInstance [${id}]`);
679
698
  proxy.upResolver.add(as);
680
699
  proxy.downResolver.add(as);
681
700
  this.add(as);
@@ -710,7 +729,7 @@ var _PubSubBridge = class _PubSubBridge extends import_abstract_bridge3.Abstract
710
729
  get resolver() {
711
730
  this._resolver = this._resolver ?? new PubSubBridgeModuleResolver({
712
731
  bridge: this,
713
- busClient: (0, import_assert5.assertEx)(this.busClient(), () => "busClient not configured"),
732
+ busClient: (0, import_assert4.assertEx)(this.busClient(), () => "busClient not configured"),
714
733
  wrapperAccount: this.account
715
734
  });
716
735
  return this._resolver;
@@ -719,7 +738,7 @@ var _PubSubBridge = class _PubSubBridge extends import_abstract_bridge3.Abstract
719
738
  return `${this.config.name ?? moduleName}`;
720
739
  }
721
740
  get roots() {
722
- return (0, import_assert5.assertEx)(this.config.roots, () => "roots not configured");
741
+ return (0, import_assert4.assertEx)(this.config.roots, () => "roots not configured");
723
742
  }
724
743
  async discoverRoots() {
725
744
  const rootInstances = (await Promise.all(this.roots.map(async (root) => await this.resolver.resolve(root)))).filter(import_exists.exists);
@@ -730,9 +749,9 @@ var _PubSubBridge = class _PubSubBridge extends import_abstract_bridge3.Abstract
730
749
  }
731
750
  async exposeHandler(id, options) {
732
751
  const { maxDepth = 2, direction = "all" } = options ?? {};
733
- const module2 = (0, import_assert5.assertEx)(await super.resolve(id), () => `Expose failed to locate module [${id}]`);
752
+ const module2 = (0, import_assert4.assertEx)(await super.resolve(id), () => `Expose failed to locate module [${id}]`);
734
753
  if (module2) {
735
- const host = (0, import_assert5.assertEx)(this.busHost(), () => "Not configured as a host");
754
+ const host = (0, import_assert4.assertEx)(this.busHost(), () => "Not configured as a host");
736
755
  host.expose(module2.address);
737
756
  const children = await module2.resolve("*", {
738
757
  direction,
@@ -768,7 +787,7 @@ var _PubSubBridge = class _PubSubBridge extends import_abstract_bridge3.Abstract
768
787
  };
769
788
  const module2 = await super.resolve(id, filterOptions);
770
789
  if (module2) {
771
- const host = (0, import_assert5.assertEx)(this.busHost(), () => "Not configured as a host");
790
+ const host = (0, import_assert4.assertEx)(this.busHost(), () => "Not configured as a host");
772
791
  host.unexpose(module2.address);
773
792
  const children = await module2.resolve("*", {
774
793
  direction,