@olane/o-core 0.7.12-alpha.55 → 0.7.12-alpha.56

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.
@@ -1,4 +1,7 @@
1
1
  import { oAddress } from '../../router/o-address.js';
2
+ import type { oRequest } from '../o-request.js';
3
+ import type { Stream } from '@libp2p/interface';
4
+ import type { RunResult } from '@olane/o-tool';
2
5
  export interface oConnectionConfig {
3
6
  nextHopAddress: oAddress;
4
7
  callerAddress?: oAddress;
@@ -15,5 +18,11 @@ export interface oConnectionConfig {
15
18
  drainTimeoutMs?: number;
16
19
  isStream?: boolean;
17
20
  abortSignal?: AbortSignal;
21
+ /**
22
+ * Optional handler for processing router requests received on outgoing streams
23
+ * This enables bidirectional communication where the client can receive and process
24
+ * router requests while waiting for responses
25
+ */
26
+ requestHandler?: (request: oRequest, stream: Stream) => Promise<RunResult>;
18
27
  }
19
28
  //# sourceMappingURL=connection.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connection.config.d.ts","sourceRoot":"","sources":["../../../../src/connection/interfaces/connection.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,QAAQ,CAAC;IACzB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,OAAO,EAAE,QAAQ,CAAC;IAClB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B"}
1
+ {"version":3,"file":"connection.config.d.ts","sourceRoot":"","sources":["../../../../src/connection/interfaces/connection.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,QAAQ,CAAC;IACzB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,OAAO,EAAE,QAAQ,CAAC;IAClB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;CAC5E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-core",
3
- "version": "0.7.12-alpha.55",
3
+ "version": "0.7.12-alpha.56",
4
4
  "type": "module",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -63,11 +63,11 @@
63
63
  "typescript": "^5.8.3"
64
64
  },
65
65
  "dependencies": {
66
- "@olane/o-protocol": "0.7.12-alpha.55",
66
+ "@olane/o-protocol": "0.7.12-alpha.56",
67
67
  "chalk": "^5.4.1",
68
68
  "debug": "^4.4.1",
69
69
  "dotenv": "^16.5.0",
70
70
  "multiformats": "^13.3.7"
71
71
  },
72
- "gitHead": "f58cf248bdbe2c820ca7dd3f6c2b11eee389966b"
72
+ "gitHead": "e59edf30cd442f528f9b4981ca69572b3777aa4e"
73
73
  }