@olane/o-tool 0.7.12-alpha.23 → 0.7.12-alpha.25

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,5 +1,4 @@
1
- import { ToolResult } from './tool-result.interface.js';
2
- export type RunResult = {
1
+ export interface RunResult {
3
2
  [key: string]: unknown;
4
- } | AsyncGenerator<ToolResult>;
3
+ }
5
4
  //# sourceMappingURL=run-result.interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"run-result.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/run-result.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,MAAM,MAAM,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,GAAG,cAAc,CAAC,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"run-result.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/run-result.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
@@ -1,4 +1,4 @@
1
- import { oAddress, oConnection, oCore, oRequest, oNotificationManager } from '@olane/o-core';
1
+ import { oConnection, oCore, oRequest, oNotificationManager, oConnectionConfig } from '@olane/o-core';
2
2
  import { Stream } from '@olane/o-config';
3
3
  import { RunResult } from './interfaces/run-result.interface.js';
4
4
  import { ToolResult } from './interfaces/tool-result.interface.js';
@@ -11,7 +11,7 @@ export declare class oToolBase extends oCore {
11
11
  private indexed;
12
12
  validateToolCall(oRequest: oRequest): boolean;
13
13
  configureTransports(): any[];
14
- connect(nextHopAddress: oAddress, targetAddress: oAddress): Promise<oConnection>;
14
+ connect(config: oConnectionConfig): Promise<oConnection>;
15
15
  initializeRouter(): Promise<void>;
16
16
  unregister(): Promise<void>;
17
17
  register(): Promise<void>;
@@ -20,7 +20,7 @@ export declare class oToolBase extends oCore {
20
20
  run(request: oRequest, stream?: Stream): Promise<RunResult>;
21
21
  myTools(obj?: any): Promise<string[]>;
22
22
  findMethod(method: string): Promise<string | undefined>;
23
- callMyTool(request: oRequest, stream?: Stream): Promise<ToolResult | AsyncGenerator<ToolResult>>;
23
+ callMyTool(request: oRequest, stream?: Stream): Promise<ToolResult>;
24
24
  index(): Promise<{
25
25
  provider: string;
26
26
  summary: string;
@@ -1 +1 @@
1
- {"version":3,"file":"o-tool.base.d.ts","sourceRoot":"","sources":["../../src/o-tool.base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,WAAW,EACX,KAAK,EAGL,QAAQ,EAER,oBAAoB,EACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAInE;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAClC,OAAO,CAAC,OAAO,CAAkB;IAEjC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO;IAY7C,mBAAmB,IAAI,GAAG,EAAE;IAI5B,OAAO,CACL,cAAc,EAAE,QAAQ,EACxB,aAAa,EAAE,QAAQ,GACtB,OAAO,CAAC,WAAW,CAAC;IAGvB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAMjC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAG3B,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAIzB,SAAS,CAAC,yBAAyB,IAAI,oBAAoB;IAOrD,OAAO,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IA8B3D,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,S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AAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IA2BjE,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAS/B,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAIvD,UAAU,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAiBnE,KAAK;;;;;;;IA4FL,MAAM;;;;CAQb"}
@@ -26,7 +26,7 @@ export class oToolBase extends oCore {
26
26
  configureTransports() {
27
27
  return [];
28
28
  }
29
- connect(nextHopAddress, targetAddress) {
29
+ connect(config) {
30
30
  throw new oError(oErrorCodes.NOT_IMPLEMENTED, 'Connect not implemented');
31
31
  }
32
32
  initializeRouter() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-tool",
3
- "version": "0.7.12-alpha.23",
3
+ "version": "0.7.12-alpha.25",
4
4
  "type": "module",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -54,11 +54,11 @@
54
54
  "typescript": "^5.8.3"
55
55
  },
56
56
  "dependencies": {
57
- "@olane/o-config": "0.7.12-alpha.23",
58
- "@olane/o-core": "0.7.12-alpha.23",
59
- "@olane/o-protocol": "0.7.12-alpha.23",
57
+ "@olane/o-config": "0.7.12-alpha.25",
58
+ "@olane/o-core": "0.7.12-alpha.25",
59
+ "@olane/o-protocol": "0.7.12-alpha.25",
60
60
  "debug": "^4.4.1",
61
61
  "dotenv": "^16.5.0"
62
62
  },
63
- "gitHead": "26031c23b8802d7ad89ec333f2c5c5b082333119"
63
+ "gitHead": "4d9d078b894c03839e77313a6653840b7c7acc6f"
64
64
  }