@olane/o-tool-registry 0.1.1 → 0.1.2
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/dist/apple/apple.tool.d.ts +2 -67
- package/dist/apple/apple.tool.d.ts.map +1 -1
- package/dist/apple/apple.tool.js +4 -8
- package/dist/apple/index.d.ts +0 -1
- package/dist/apple/index.js +0 -1
- package/dist/apple/notes.tool.d.ts +3 -67
- package/dist/apple/notes.tool.d.ts.map +1 -1
- package/dist/apple/notes.tool.js +8 -36
- package/dist/auth/index.js +3 -19
- package/dist/auth/interfaces/index.js +3 -19
- package/dist/auth/interfaces/oAuth-tokens.interface.js +1 -2
- package/dist/auth/interfaces/oAuth-user-info.interface.js +1 -2
- package/dist/auth/interfaces/oAuth.config.js +1 -2
- package/dist/auth/methods/auth.methods.js +1 -4
- package/dist/auth/oAuth.tool.js +8 -12
- package/dist/embeddings/embeddings.tool.d.ts +2 -66
- package/dist/embeddings/embeddings.tool.d.ts.map +1 -1
- package/dist/embeddings/embeddings.tool.js +4 -8
- package/dist/embeddings/huggingface-text-embeddings.tool.js +4 -9
- package/dist/embeddings/index.js +3 -19
- package/dist/embeddings/methods/text-embeddings.method.js +1 -4
- package/dist/embeddings/text-embeddings.tool.d.ts +3 -66
- package/dist/embeddings/text-embeddings.tool.d.ts.map +1 -1
- package/dist/embeddings/text-embeddings.tool.js +6 -10
- package/dist/index.js +6 -22
- package/dist/init.js +11 -15
- package/dist/intelligence/anthropic-intelligence.tool.d.ts +3 -67
- package/dist/intelligence/anthropic-intelligence.tool.d.ts.map +1 -1
- package/dist/intelligence/anthropic-intelligence.tool.js +7 -11
- package/dist/intelligence/gemini-intelligence.tool.d.ts +3 -67
- package/dist/intelligence/gemini-intelligence.tool.d.ts.map +1 -1
- package/dist/intelligence/gemini-intelligence.tool.js +6 -13
- package/dist/intelligence/index.js +5 -21
- package/dist/intelligence/intelligence.tool.d.ts +2 -67
- package/dist/intelligence/intelligence.tool.d.ts.map +1 -1
- package/dist/intelligence/intelligence.tool.js +17 -21
- package/dist/intelligence/methods/intelligence.methods.js +1 -4
- package/dist/intelligence/ollama-intelligence.tool.d.ts +3 -67
- package/dist/intelligence/ollama-intelligence.tool.d.ts.map +1 -1
- package/dist/intelligence/ollama-intelligence.tool.js +8 -12
- package/dist/intelligence/openai-intelligence.tool.d.ts +3 -67
- package/dist/intelligence/openai-intelligence.tool.d.ts.map +1 -1
- package/dist/intelligence/openai-intelligence.tool.js +6 -14
- package/dist/intelligence/perplexity-intelligence.tool.d.ts +3 -67
- package/dist/intelligence/perplexity-intelligence.tool.d.ts.map +1 -1
- package/dist/intelligence/perplexity-intelligence.tool.js +6 -11
- package/dist/mcp/index.js +2 -18
- package/dist/mcp/mcp-bridge.tool.d.ts +3 -67
- package/dist/mcp/mcp-bridge.tool.d.ts.map +1 -1
- package/dist/mcp/mcp-bridge.tool.js +18 -22
- package/dist/mcp/mcp.tool.d.ts +3 -68
- package/dist/mcp/mcp.tool.d.ts.map +1 -1
- package/dist/mcp/mcp.tool.js +6 -11
- package/dist/mcp/methods/mcp-bridge.methods.js +1 -4
- package/dist/nlp/index.js +1 -17
- package/dist/nlp/methods/nlp.methods.js +1 -4
- package/dist/nlp/ner.tool.d.ts +3 -67
- package/dist/nlp/ner.tool.d.ts.map +1 -1
- package/dist/nlp/ner.tool.js +7 -11
- package/dist/vector-store/index.js +2 -18
- package/dist/vector-store/langchain-memory.vector-store.tool.js +9 -14
- package/dist/vector-store/methods/vector-store.methods.js +1 -4
- package/dist/vector-store/vector-memory.tool.d.ts +3 -67
- package/dist/vector-store/vector-memory.tool.d.ts.map +1 -1
- package/dist/vector-store/vector-memory.tool.js +6 -10
- package/package.json +14 -13
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const o_tool_1 = require("@olane/o-tool");
|
|
6
|
-
const intelligence_methods_1 = require("./methods/intelligence.methods");
|
|
7
|
-
class OllamaIntelligenceTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNode) {
|
|
8
|
-
static defaultModel = 'llama3.2:latest';
|
|
9
|
-
static defaultUrl = 'http://localhost:11434';
|
|
1
|
+
import { oAddress } from '@olane/o-core';
|
|
2
|
+
import { oVirtualTool } from '@olane/o-tool';
|
|
3
|
+
import { INTELLIGENCE_PARAMS } from './methods/intelligence.methods';
|
|
4
|
+
export class OllamaIntelligenceTool extends oVirtualTool {
|
|
10
5
|
constructor(config) {
|
|
11
6
|
super({
|
|
12
7
|
...config,
|
|
13
|
-
address: new
|
|
8
|
+
address: new oAddress('o://ollama'),
|
|
14
9
|
description: 'Intelligence tool using Ollama LLM suite of models',
|
|
15
|
-
methods:
|
|
10
|
+
methods: INTELLIGENCE_PARAMS,
|
|
16
11
|
dependencies: [],
|
|
17
12
|
});
|
|
18
13
|
// this.baseUrl = config.ollamaUrl || 'http://localhost:11434';
|
|
@@ -313,4 +308,5 @@ class OllamaIntelligenceTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNode)
|
|
|
313
308
|
}
|
|
314
309
|
}
|
|
315
310
|
}
|
|
316
|
-
|
|
311
|
+
OllamaIntelligenceTool.defaultModel = 'llama3.2:latest';
|
|
312
|
+
OllamaIntelligenceTool.defaultUrl = 'http://localhost:11434';
|
|
@@ -1,69 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { oToolConfig, ToolResult } from '@olane/o-tool';
|
|
3
|
-
declare
|
|
4
|
-
validateToolCall(oRequest: oRequest): boolean;
|
|
5
|
-
handleProtocol(address: oAddress): Promise<void>;
|
|
6
|
-
initialize(): Promise<void>;
|
|
7
|
-
use(address: oAddress, data: {
|
|
8
|
-
[key: string]: unknown;
|
|
9
|
-
}, config?: import("@olane/o-core").UseOptions | undefined): Promise<import("@olane/o-core").oResponse>;
|
|
10
|
-
handleStream(streamData: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).IncomingStreamData): Promise<void>;
|
|
11
|
-
execute(req: oRequest, stream?: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).Stream | undefined): Promise<import("@olane/o-tool").RunResult>;
|
|
12
|
-
run(request: oRequest, stream?: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).Stream | undefined): Promise<import("@olane/o-tool").RunResult>;
|
|
13
|
-
myTools(): string[];
|
|
14
|
-
myToolParams(tool: string): Record<string, any>;
|
|
15
|
-
callMyTool(request: oRequest, stream?: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).Stream | undefined): Promise<ToolResult>;
|
|
16
|
-
index(): Promise<{
|
|
17
|
-
provider: string;
|
|
18
|
-
summary: string;
|
|
19
|
-
} | {
|
|
20
|
-
summary: string | null;
|
|
21
|
-
provider?: undefined;
|
|
22
|
-
}>;
|
|
23
|
-
_tool_index_network(request: oRequest): Promise<ToolResult>;
|
|
24
|
-
whoami(): Promise<{
|
|
25
|
-
tools: string[];
|
|
26
|
-
description: string;
|
|
27
|
-
}>;
|
|
28
|
-
findMissingParams(methodName: string, params: any): import("@olane/o-protocol").oParameter[];
|
|
29
|
-
readonly config: import("@olane/o-core").CoreConfig;
|
|
30
|
-
p2pNode: import("libp2p", { with: { "resolution-mode": "import" } }).Libp2p<import("@libp2p/interface", { with: { "resolution-mode": "import" } }).ServiceMap>;
|
|
31
|
-
logger: import("@olane/o-core").Logger;
|
|
32
|
-
networkConfig: import("@olane/o-config").Libp2pConfig;
|
|
33
|
-
address: oAddress;
|
|
34
|
-
readonly staticAddress: oAddress;
|
|
35
|
-
peerId: import("@libp2p/interface-peer-id", { with: { "resolution-mode": "import" } }).PeerId;
|
|
36
|
-
state: import("@olane/o-core").NodeState;
|
|
37
|
-
errors: Error[];
|
|
38
|
-
connectionManager: import("@olane/o-core").oConnectionManager;
|
|
39
|
-
leaders: import("@multiformats/multiaddr", { with: { "resolution-mode": "import" } }).Multiaddr[];
|
|
40
|
-
addressResolution: import("@olane/o-core").oAddressResolution;
|
|
41
|
-
readonly description: string;
|
|
42
|
-
dependencies: import("@olane/o-core").oDependency[];
|
|
43
|
-
methods: {
|
|
44
|
-
[key: string]: import("@olane/o-protocol").oMethod;
|
|
45
|
-
};
|
|
46
|
-
successCount: number;
|
|
47
|
-
errorCount: number;
|
|
48
|
-
readonly type: import("@olane/o-core").NodeType;
|
|
49
|
-
readonly transports: string[];
|
|
50
|
-
readonly parent: oAddress | null;
|
|
51
|
-
readonly parentTransports: import("@multiformats/multiaddr", { with: { "resolution-mode": "import" } }).Multiaddr[];
|
|
52
|
-
getTransports(address: oAddress): import("@multiformats/multiaddr", { with: { "resolution-mode": "import" } }).Multiaddr[];
|
|
53
|
-
handleStaticAddressTranslation(addressInput: oAddress): Promise<oAddress>;
|
|
54
|
-
translateAddress(addressWithLeaderTransports: oAddress): Promise<{
|
|
55
|
-
nextHopAddress: oAddress;
|
|
56
|
-
targetAddress: oAddress;
|
|
57
|
-
}>;
|
|
58
|
-
advertiseToNetwork(): Promise<void>;
|
|
59
|
-
connectToParent(): Promise<void>;
|
|
60
|
-
register(): Promise<void>;
|
|
61
|
-
connect(nextHopAddress: oAddress, targetAddress: oAddress): Promise<import("@olane/o-core").oConnection>;
|
|
62
|
-
teardown(): Promise<void>;
|
|
63
|
-
start(): Promise<void>;
|
|
64
|
-
stop(): Promise<void>;
|
|
65
|
-
}) & typeof oVirtualNode;
|
|
66
|
-
export declare class OpenAIIntelligenceTool extends OpenAIIntelligenceTool_base {
|
|
1
|
+
import { oRequest } from '@olane/o-core';
|
|
2
|
+
import { oToolConfig, oVirtualTool, ToolResult } from '@olane/o-tool';
|
|
3
|
+
export declare class OpenAIIntelligenceTool extends oVirtualTool {
|
|
67
4
|
private apiKey;
|
|
68
5
|
private baseUrl;
|
|
69
6
|
private defaultModel;
|
|
@@ -90,5 +27,4 @@ export declare class OpenAIIntelligenceTool extends OpenAIIntelligenceTool_base
|
|
|
90
27
|
*/
|
|
91
28
|
_tool_status(request: oRequest): Promise<ToolResult>;
|
|
92
29
|
}
|
|
93
|
-
export {};
|
|
94
30
|
//# sourceMappingURL=openai-intelligence.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai-intelligence.tool.d.ts","sourceRoot":"","sources":["../../src/intelligence/openai-intelligence.tool.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"openai-intelligence.tool.d.ts","sourceRoot":"","sources":["../../src/intelligence/openai-intelligence.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAoHtE,qBAAa,sBAAuB,SAAQ,YAAY;IACtD,OAAO,CAAC,MAAM,CAAU;IACxB,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,YAAY,CAAU;IAC9B,OAAO,CAAC,YAAY,CAAC,CAAS;gBAElB,MAAM,EAAE,WAAW;IAU/B;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAoE9D;;OAEG;IACG,cAAc,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAmE5D;;OAEG;IACG,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA6C/D;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA+C9D;;OAEG;IACG,YAAY,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;CAoC3D"}
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const o_tool_1 = require("@olane/o-tool");
|
|
6
|
-
const intelligence_methods_1 = require("./methods/intelligence.methods");
|
|
7
|
-
class OpenAIIntelligenceTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNode) {
|
|
8
|
-
apiKey;
|
|
9
|
-
baseUrl;
|
|
10
|
-
defaultModel;
|
|
11
|
-
organization;
|
|
1
|
+
import { oAddress } from '@olane/o-core';
|
|
2
|
+
import { oVirtualTool } from '@olane/o-tool';
|
|
3
|
+
import { INTELLIGENCE_PARAMS } from './methods/intelligence.methods';
|
|
4
|
+
export class OpenAIIntelligenceTool extends oVirtualTool {
|
|
12
5
|
constructor(config) {
|
|
13
6
|
super({
|
|
14
7
|
...config,
|
|
15
|
-
address: new
|
|
8
|
+
address: new oAddress('o://openai'),
|
|
16
9
|
description: "Open AI's suite of intelligence models.",
|
|
17
|
-
methods:
|
|
10
|
+
methods: INTELLIGENCE_PARAMS,
|
|
18
11
|
dependencies: [],
|
|
19
12
|
});
|
|
20
13
|
}
|
|
@@ -260,4 +253,3 @@ class OpenAIIntelligenceTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNode)
|
|
|
260
253
|
}
|
|
261
254
|
}
|
|
262
255
|
}
|
|
263
|
-
exports.OpenAIIntelligenceTool = OpenAIIntelligenceTool;
|
|
@@ -1,69 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { oToolConfig, ToolResult } from '@olane/o-tool';
|
|
3
|
-
declare
|
|
4
|
-
validateToolCall(oRequest: oRequest): boolean;
|
|
5
|
-
handleProtocol(address: oAddress): Promise<void>;
|
|
6
|
-
initialize(): Promise<void>;
|
|
7
|
-
use(address: oAddress, data: {
|
|
8
|
-
[key: string]: unknown;
|
|
9
|
-
}, config?: import("@olane/o-core").UseOptions | undefined): Promise<import("@olane/o-core").oResponse>;
|
|
10
|
-
handleStream(streamData: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).IncomingStreamData): Promise<void>;
|
|
11
|
-
execute(req: oRequest, stream?: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).Stream | undefined): Promise<import("@olane/o-tool").RunResult>;
|
|
12
|
-
run(request: oRequest, stream?: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).Stream | undefined): Promise<import("@olane/o-tool").RunResult>;
|
|
13
|
-
myTools(): string[];
|
|
14
|
-
myToolParams(tool: string): Record<string, any>;
|
|
15
|
-
callMyTool(request: oRequest, stream?: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).Stream | undefined): Promise<ToolResult>;
|
|
16
|
-
index(): Promise<{
|
|
17
|
-
provider: string;
|
|
18
|
-
summary: string;
|
|
19
|
-
} | {
|
|
20
|
-
summary: string | null;
|
|
21
|
-
provider?: undefined;
|
|
22
|
-
}>;
|
|
23
|
-
_tool_index_network(request: oRequest): Promise<ToolResult>;
|
|
24
|
-
whoami(): Promise<{
|
|
25
|
-
tools: string[];
|
|
26
|
-
description: string;
|
|
27
|
-
}>;
|
|
28
|
-
findMissingParams(methodName: string, params: any): import("@olane/o-protocol").oParameter[];
|
|
29
|
-
readonly config: import("@olane/o-core").CoreConfig;
|
|
30
|
-
p2pNode: import("libp2p", { with: { "resolution-mode": "import" } }).Libp2p<import("@libp2p/interface", { with: { "resolution-mode": "import" } }).ServiceMap>;
|
|
31
|
-
logger: import("@olane/o-core").Logger;
|
|
32
|
-
networkConfig: import("@olane/o-config").Libp2pConfig;
|
|
33
|
-
address: oAddress;
|
|
34
|
-
readonly staticAddress: oAddress;
|
|
35
|
-
peerId: import("@libp2p/interface-peer-id", { with: { "resolution-mode": "import" } }).PeerId;
|
|
36
|
-
state: import("@olane/o-core").NodeState;
|
|
37
|
-
errors: Error[];
|
|
38
|
-
connectionManager: import("@olane/o-core").oConnectionManager;
|
|
39
|
-
leaders: import("@multiformats/multiaddr", { with: { "resolution-mode": "import" } }).Multiaddr[];
|
|
40
|
-
addressResolution: import("@olane/o-core").oAddressResolution;
|
|
41
|
-
readonly description: string;
|
|
42
|
-
dependencies: import("@olane/o-core").oDependency[];
|
|
43
|
-
methods: {
|
|
44
|
-
[key: string]: import("@olane/o-protocol").oMethod;
|
|
45
|
-
};
|
|
46
|
-
successCount: number;
|
|
47
|
-
errorCount: number;
|
|
48
|
-
readonly type: import("@olane/o-core").NodeType;
|
|
49
|
-
readonly transports: string[];
|
|
50
|
-
readonly parent: oAddress | null;
|
|
51
|
-
readonly parentTransports: import("@multiformats/multiaddr", { with: { "resolution-mode": "import" } }).Multiaddr[];
|
|
52
|
-
getTransports(address: oAddress): import("@multiformats/multiaddr", { with: { "resolution-mode": "import" } }).Multiaddr[];
|
|
53
|
-
handleStaticAddressTranslation(addressInput: oAddress): Promise<oAddress>;
|
|
54
|
-
translateAddress(addressWithLeaderTransports: oAddress): Promise<{
|
|
55
|
-
nextHopAddress: oAddress;
|
|
56
|
-
targetAddress: oAddress;
|
|
57
|
-
}>;
|
|
58
|
-
advertiseToNetwork(): Promise<void>;
|
|
59
|
-
connectToParent(): Promise<void>;
|
|
60
|
-
register(): Promise<void>;
|
|
61
|
-
connect(nextHopAddress: oAddress, targetAddress: oAddress): Promise<import("@olane/o-core").oConnection>;
|
|
62
|
-
teardown(): Promise<void>;
|
|
63
|
-
start(): Promise<void>;
|
|
64
|
-
stop(): Promise<void>;
|
|
65
|
-
}) & typeof oVirtualNode;
|
|
66
|
-
export declare class PerplexityIntelligenceTool extends PerplexityIntelligenceTool_base {
|
|
1
|
+
import { oRequest } from '@olane/o-core';
|
|
2
|
+
import { oToolConfig, oVirtualTool, ToolResult } from '@olane/o-tool';
|
|
3
|
+
export declare class PerplexityIntelligenceTool extends oVirtualTool {
|
|
67
4
|
private defaultModel;
|
|
68
5
|
constructor(config: oToolConfig);
|
|
69
6
|
/**
|
|
@@ -87,5 +24,4 @@ export declare class PerplexityIntelligenceTool extends PerplexityIntelligenceTo
|
|
|
87
24
|
*/
|
|
88
25
|
_tool_status(request: oRequest): Promise<ToolResult>;
|
|
89
26
|
}
|
|
90
|
-
export {};
|
|
91
27
|
//# sourceMappingURL=perplexity-intelligence.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perplexity-intelligence.tool.d.ts","sourceRoot":"","sources":["../../src/intelligence/perplexity-intelligence.tool.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"perplexity-intelligence.tool.d.ts","sourceRoot":"","sources":["../../src/intelligence/perplexity-intelligence.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAqFtE,qBAAa,0BAA2B,SAAQ,YAAY;IAC1D,OAAO,CAAC,YAAY,CAAU;gBAElB,MAAM,EAAE,WAAW;IAU/B;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA+F9D;;OAEG;IACG,cAAc,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAuG5D;;OAEG;IACG,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAyC/D;;OAEG;IACG,YAAY,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA6E1D;;OAEG;IACG,YAAY,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;CAgC3D"}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const o_tool_1 = require("@olane/o-tool");
|
|
6
|
-
const intelligence_methods_1 = require("./methods/intelligence.methods");
|
|
7
|
-
class PerplexityIntelligenceTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNode) {
|
|
8
|
-
defaultModel;
|
|
1
|
+
import { oAddress } from '@olane/o-core';
|
|
2
|
+
import { oVirtualTool } from '@olane/o-tool';
|
|
3
|
+
import { INTELLIGENCE_PARAMS } from './methods/intelligence.methods';
|
|
4
|
+
export class PerplexityIntelligenceTool extends oVirtualTool {
|
|
9
5
|
constructor(config) {
|
|
10
6
|
super({
|
|
11
7
|
...config,
|
|
12
|
-
address: new
|
|
8
|
+
address: new oAddress('o://perplexity'),
|
|
13
9
|
description: 'Intelligence tool using Perplexity LLM suite of models',
|
|
14
|
-
methods:
|
|
10
|
+
methods: INTELLIGENCE_PARAMS,
|
|
15
11
|
dependencies: [],
|
|
16
12
|
});
|
|
17
13
|
}
|
|
@@ -311,4 +307,3 @@ class PerplexityIntelligenceTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNo
|
|
|
311
307
|
}
|
|
312
308
|
}
|
|
313
309
|
}
|
|
314
|
-
exports.PerplexityIntelligenceTool = PerplexityIntelligenceTool;
|
package/dist/mcp/index.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./mcp-bridge.tool"), exports);
|
|
18
|
-
__exportStar(require("./mcp.tool"), exports);
|
|
1
|
+
export * from './mcp-bridge.tool';
|
|
2
|
+
export * from './mcp.tool';
|
|
@@ -1,76 +1,12 @@
|
|
|
1
|
-
import { oToolConfig, ToolResult } from '@olane/o-tool';
|
|
2
|
-
import {
|
|
1
|
+
import { oToolConfig, oVirtualTool, ToolResult } from '@olane/o-tool';
|
|
2
|
+
import { oRequest } from '@olane/o-core';
|
|
3
3
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
4
4
|
import { McpTool } from './mcp.tool';
|
|
5
|
-
declare
|
|
6
|
-
validateToolCall(oRequest: oRequest): boolean;
|
|
7
|
-
handleProtocol(address: oAddress): Promise<void>;
|
|
8
|
-
initialize(): Promise<void>;
|
|
9
|
-
use(address: oAddress, data: {
|
|
10
|
-
[key: string]: unknown;
|
|
11
|
-
}, config?: import("@olane/o-core").UseOptions | undefined): Promise<import("@olane/o-core").oResponse>;
|
|
12
|
-
handleStream(streamData: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).IncomingStreamData): Promise<void>;
|
|
13
|
-
execute(req: oRequest, stream?: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).Stream | undefined): Promise<import("@olane/o-tool").RunResult>;
|
|
14
|
-
run(request: oRequest, stream?: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).Stream | undefined): Promise<import("@olane/o-tool").RunResult>;
|
|
15
|
-
myTools(): string[];
|
|
16
|
-
myToolParams(tool: string): Record<string, any>;
|
|
17
|
-
callMyTool(request: oRequest, stream?: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).Stream | undefined): Promise<ToolResult>;
|
|
18
|
-
index(): Promise<{
|
|
19
|
-
provider: string;
|
|
20
|
-
summary: string;
|
|
21
|
-
} | {
|
|
22
|
-
summary: string | null;
|
|
23
|
-
provider?: undefined;
|
|
24
|
-
}>;
|
|
25
|
-
_tool_index_network(request: oRequest): Promise<ToolResult>;
|
|
26
|
-
whoami(): Promise<{
|
|
27
|
-
tools: string[];
|
|
28
|
-
description: string;
|
|
29
|
-
}>;
|
|
30
|
-
findMissingParams(methodName: string, params: any): import("@olane/o-protocol").oParameter[];
|
|
31
|
-
readonly config: import("@olane/o-core").CoreConfig;
|
|
32
|
-
p2pNode: import("libp2p", { with: { "resolution-mode": "import" } }).Libp2p<import("@libp2p/interface", { with: { "resolution-mode": "import" } }).ServiceMap>;
|
|
33
|
-
logger: import("@olane/o-core").Logger;
|
|
34
|
-
networkConfig: import("@olane/o-config").Libp2pConfig;
|
|
35
|
-
address: oAddress;
|
|
36
|
-
readonly staticAddress: oAddress;
|
|
37
|
-
peerId: import("@libp2p/interface-peer-id", { with: { "resolution-mode": "import" } }).PeerId;
|
|
38
|
-
state: import("@olane/o-core").NodeState;
|
|
39
|
-
errors: Error[];
|
|
40
|
-
connectionManager: import("@olane/o-core").oConnectionManager;
|
|
41
|
-
leaders: import("@multiformats/multiaddr", { with: { "resolution-mode": "import" } }).Multiaddr[];
|
|
42
|
-
addressResolution: import("@olane/o-core").oAddressResolution;
|
|
43
|
-
readonly description: string;
|
|
44
|
-
dependencies: oDependency[];
|
|
45
|
-
methods: {
|
|
46
|
-
[key: string]: import("@olane/o-protocol").oMethod;
|
|
47
|
-
};
|
|
48
|
-
successCount: number;
|
|
49
|
-
errorCount: number;
|
|
50
|
-
readonly type: import("@olane/o-core").NodeType;
|
|
51
|
-
readonly transports: string[];
|
|
52
|
-
readonly parent: oAddress | null;
|
|
53
|
-
readonly parentTransports: import("@multiformats/multiaddr", { with: { "resolution-mode": "import" } }).Multiaddr[];
|
|
54
|
-
getTransports(address: oAddress): import("@multiformats/multiaddr", { with: { "resolution-mode": "import" } }).Multiaddr[];
|
|
55
|
-
handleStaticAddressTranslation(addressInput: oAddress): Promise<oAddress>;
|
|
56
|
-
translateAddress(addressWithLeaderTransports: oAddress): Promise<{
|
|
57
|
-
nextHopAddress: oAddress;
|
|
58
|
-
targetAddress: oAddress;
|
|
59
|
-
}>;
|
|
60
|
-
advertiseToNetwork(): Promise<void>;
|
|
61
|
-
connectToParent(): Promise<void>;
|
|
62
|
-
register(): Promise<void>;
|
|
63
|
-
connect(nextHopAddress: oAddress, targetAddress: oAddress): Promise<import("@olane/o-core").oConnection>;
|
|
64
|
-
teardown(): Promise<void>;
|
|
65
|
-
start(): Promise<void>;
|
|
66
|
-
stop(): Promise<void>;
|
|
67
|
-
}) & typeof oVirtualNode;
|
|
68
|
-
export declare class McpBridgeTool extends McpBridgeTool_base {
|
|
5
|
+
export declare class McpBridgeTool extends oVirtualTool {
|
|
69
6
|
constructor(config: oToolConfig);
|
|
70
7
|
_tool_add_remote_server(request: oRequest): Promise<ToolResult>;
|
|
71
8
|
_tool_add_remote_server_with_api_key(request: oRequest): Promise<ToolResult>;
|
|
72
9
|
_tool_add_local_server(request: oRequest): Promise<ToolResult>;
|
|
73
10
|
createMcpTool(mcpClient: Client, url: string, name?: string): Promise<McpTool>;
|
|
74
11
|
}
|
|
75
|
-
export {};
|
|
76
12
|
//# sourceMappingURL=mcp-bridge.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-bridge.tool.d.ts","sourceRoot":"","sources":["../../src/mcp/mcp-bridge.tool.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"mcp-bridge.tool.d.ts","sourceRoot":"","sources":["../../src/mcp/mcp-bridge.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,qBAAa,aAAc,SAAQ,YAAY;gBACjC,MAAM,EAAE,WAAW;IASzB,uBAAuB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAiC/D,oCAAoC,CACxC,OAAO,EAAE,QAAQ,GAChB,OAAO,CAAC,UAAU,CAAC;IAmDhB,sBAAsB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA+B9D,aAAa,CACjB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,MAAM,GACZ,OAAO,CAAC,OAAO,CAAC;CA4BpB"}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const mcp_bridge_methods_1 = require("./methods/mcp-bridge.methods");
|
|
10
|
-
const stdio_js_1 = require("@modelcontextprotocol/sdk/client/stdio.js");
|
|
11
|
-
class McpBridgeTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNode) {
|
|
1
|
+
import { oVirtualTool } from '@olane/o-tool';
|
|
2
|
+
import { oAddress } from '@olane/o-core';
|
|
3
|
+
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
4
|
+
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
5
|
+
import { McpTool } from './mcp.tool';
|
|
6
|
+
import { MCP_BRIDGE_METHODS } from './methods/mcp-bridge.methods';
|
|
7
|
+
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
|
|
8
|
+
export class McpBridgeTool extends oVirtualTool {
|
|
12
9
|
constructor(config) {
|
|
13
10
|
super({
|
|
14
11
|
...config,
|
|
15
|
-
address: new
|
|
12
|
+
address: new oAddress('o://mcp'),
|
|
16
13
|
description: 'Tool to help add MCP servers to the network',
|
|
17
|
-
methods:
|
|
14
|
+
methods: MCP_BRIDGE_METHODS,
|
|
18
15
|
});
|
|
19
16
|
}
|
|
20
17
|
async _tool_add_remote_server(request) {
|
|
@@ -23,8 +20,8 @@ class McpBridgeTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNode) {
|
|
|
23
20
|
const { mcpServerUrl } = params;
|
|
24
21
|
try {
|
|
25
22
|
this.logger.debug('Adding MCP server: ' + mcpServerUrl);
|
|
26
|
-
const transport = new
|
|
27
|
-
const mcpClient = new
|
|
23
|
+
const transport = new StreamableHTTPClientTransport(new URL(mcpServerUrl));
|
|
24
|
+
const mcpClient = new Client({
|
|
28
25
|
name: 'o-node:mcp:' + this.peerId.toString(),
|
|
29
26
|
version: '1.0.0',
|
|
30
27
|
});
|
|
@@ -59,14 +56,14 @@ class McpBridgeTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNode) {
|
|
|
59
56
|
// apiKey = data.value;
|
|
60
57
|
// }
|
|
61
58
|
this.logger.debug('Adding API keyed MCP server: ' + mcpServerUrl, apiKey);
|
|
62
|
-
const transport = new
|
|
59
|
+
const transport = new StreamableHTTPClientTransport(new URL(mcpServerUrl), {
|
|
63
60
|
requestInit: {
|
|
64
61
|
headers: {
|
|
65
62
|
Authorization: `Bearer ${apiKey}`,
|
|
66
63
|
},
|
|
67
64
|
},
|
|
68
65
|
});
|
|
69
|
-
const mcpClient = new
|
|
66
|
+
const mcpClient = new Client({
|
|
70
67
|
name: 'o-node:mcp:' + this.peerId.toString(),
|
|
71
68
|
version: '1.0.0',
|
|
72
69
|
});
|
|
@@ -92,11 +89,11 @@ class McpBridgeTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNode) {
|
|
|
92
89
|
// params have already been validated
|
|
93
90
|
const { command, args, name } = params;
|
|
94
91
|
// this.logger.debug('Adding local MCP server: ' + mcpServerUrl);
|
|
95
|
-
const transport = new
|
|
92
|
+
const transport = new StdioClientTransport({
|
|
96
93
|
command: command,
|
|
97
94
|
args: args,
|
|
98
95
|
});
|
|
99
|
-
const mcpClient = new
|
|
96
|
+
const mcpClient = new Client({
|
|
100
97
|
name: 'o-node:mcp:' + this.peerId.toString(),
|
|
101
98
|
version: '1.0.0',
|
|
102
99
|
});
|
|
@@ -109,10 +106,10 @@ class McpBridgeTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNode) {
|
|
|
109
106
|
}
|
|
110
107
|
async createMcpTool(mcpClient, url, name) {
|
|
111
108
|
this.logger.debug('Creating MCP tool: ', name, url);
|
|
112
|
-
const mcpTool = new
|
|
109
|
+
const mcpTool = new McpTool({
|
|
113
110
|
name: name || 'mcp-' + Date.now(),
|
|
114
111
|
description: 'MCP server for ' + url,
|
|
115
|
-
address: new
|
|
112
|
+
address: new oAddress(`o://${name || `mcp-${Date.now()}`}`),
|
|
116
113
|
mcpClient: mcpClient,
|
|
117
114
|
dependencies: [],
|
|
118
115
|
leader: this.config.leader,
|
|
@@ -129,4 +126,3 @@ class McpBridgeTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNode) {
|
|
|
129
126
|
return mcpTool;
|
|
130
127
|
}
|
|
131
128
|
}
|
|
132
|
-
exports.McpBridgeTool = McpBridgeTool;
|
package/dist/mcp/mcp.tool.d.ts
CHANGED
|
@@ -1,71 +1,7 @@
|
|
|
1
|
-
import { oToolConfig } from '@olane/o-tool';
|
|
2
|
-
import { oAddress
|
|
3
|
-
import { oParameter } from '@olane/o-protocol';
|
|
1
|
+
import { oToolConfig, oVirtualTool } from '@olane/o-tool';
|
|
2
|
+
import { oAddress } from '@olane/o-core';
|
|
4
3
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
5
|
-
declare
|
|
6
|
-
validateToolCall(oRequest: oRequest): boolean;
|
|
7
|
-
handleProtocol(address: oAddress): Promise<void>;
|
|
8
|
-
initialize(): Promise<void>;
|
|
9
|
-
use(address: oAddress, data: {
|
|
10
|
-
[key: string]: unknown;
|
|
11
|
-
}, config?: import("@olane/o-core").UseOptions | undefined): Promise<import("@olane/o-core").oResponse>;
|
|
12
|
-
handleStream(streamData: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).IncomingStreamData): Promise<void>;
|
|
13
|
-
execute(req: oRequest, stream?: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).Stream | undefined): Promise<import("@olane/o-tool").RunResult>;
|
|
14
|
-
run(request: oRequest, stream?: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).Stream | undefined): Promise<import("@olane/o-tool").RunResult>;
|
|
15
|
-
myTools(): string[];
|
|
16
|
-
myToolParams(tool: string): Record<string, any>;
|
|
17
|
-
callMyTool(request: oRequest, stream?: import("@libp2p/interface", { with: { "resolution-mode": "import" } }).Stream | undefined): Promise<import("@olane/o-tool").ToolResult>;
|
|
18
|
-
index(): Promise<{
|
|
19
|
-
provider: string;
|
|
20
|
-
summary: string;
|
|
21
|
-
} | {
|
|
22
|
-
summary: string | null;
|
|
23
|
-
provider?: undefined;
|
|
24
|
-
}>;
|
|
25
|
-
_tool_index_network(request: oRequest): Promise<import("@olane/o-tool").ToolResult>;
|
|
26
|
-
whoami(): Promise<{
|
|
27
|
-
tools: string[];
|
|
28
|
-
description: string;
|
|
29
|
-
}>;
|
|
30
|
-
findMissingParams(methodName: string, params: any): oParameter[];
|
|
31
|
-
readonly config: import("@olane/o-core").CoreConfig;
|
|
32
|
-
p2pNode: import("libp2p", { with: { "resolution-mode": "import" } }).Libp2p<import("@libp2p/interface", { with: { "resolution-mode": "import" } }).ServiceMap>;
|
|
33
|
-
logger: import("@olane/o-core").Logger;
|
|
34
|
-
networkConfig: import("@olane/o-config").Libp2pConfig;
|
|
35
|
-
address: oAddress;
|
|
36
|
-
readonly staticAddress: oAddress;
|
|
37
|
-
peerId: import("@libp2p/interface-peer-id", { with: { "resolution-mode": "import" } }).PeerId;
|
|
38
|
-
state: import("@olane/o-core").NodeState;
|
|
39
|
-
errors: Error[];
|
|
40
|
-
connectionManager: import("@olane/o-core").oConnectionManager;
|
|
41
|
-
leaders: import("@multiformats/multiaddr", { with: { "resolution-mode": "import" } }).Multiaddr[];
|
|
42
|
-
addressResolution: import("@olane/o-core").oAddressResolution;
|
|
43
|
-
readonly description: string;
|
|
44
|
-
dependencies: oDependency[];
|
|
45
|
-
methods: {
|
|
46
|
-
[key: string]: import("@olane/o-protocol").oMethod;
|
|
47
|
-
};
|
|
48
|
-
successCount: number;
|
|
49
|
-
errorCount: number;
|
|
50
|
-
readonly type: import("@olane/o-core").NodeType;
|
|
51
|
-
readonly transports: string[];
|
|
52
|
-
readonly parent: oAddress | null;
|
|
53
|
-
readonly parentTransports: import("@multiformats/multiaddr", { with: { "resolution-mode": "import" } }).Multiaddr[];
|
|
54
|
-
getTransports(address: oAddress): import("@multiformats/multiaddr", { with: { "resolution-mode": "import" } }).Multiaddr[];
|
|
55
|
-
handleStaticAddressTranslation(addressInput: oAddress): Promise<oAddress>;
|
|
56
|
-
translateAddress(addressWithLeaderTransports: oAddress): Promise<{
|
|
57
|
-
nextHopAddress: oAddress;
|
|
58
|
-
targetAddress: oAddress;
|
|
59
|
-
}>;
|
|
60
|
-
advertiseToNetwork(): Promise<void>;
|
|
61
|
-
connectToParent(): Promise<void>;
|
|
62
|
-
register(): Promise<void>;
|
|
63
|
-
connect(nextHopAddress: oAddress, targetAddress: oAddress): Promise<import("@olane/o-core").oConnection>;
|
|
64
|
-
teardown(): Promise<void>;
|
|
65
|
-
start(): Promise<void>;
|
|
66
|
-
stop(): Promise<void>;
|
|
67
|
-
}) & typeof oVirtualNode;
|
|
68
|
-
export declare class McpTool extends McpTool_base {
|
|
4
|
+
export declare class McpTool extends oVirtualTool {
|
|
69
5
|
private mcpClient;
|
|
70
6
|
constructor(config: oToolConfig & {
|
|
71
7
|
address: oAddress;
|
|
@@ -81,5 +17,4 @@ export declare class McpTool extends McpTool_base {
|
|
|
81
17
|
}>;
|
|
82
18
|
whoami(): Promise<any>;
|
|
83
19
|
}
|
|
84
|
-
export {};
|
|
85
20
|
//# sourceMappingURL=mcp.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.tool.d.ts","sourceRoot":"","sources":["../../src/mcp/mcp.tool.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"mcp.tool.d.ts","sourceRoot":"","sources":["../../src/mcp/mcp.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAY,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAGnE,qBAAa,OAAQ,SAAQ,YAAY;IACvC,OAAO,CAAC,SAAS,CAAS;gBAEd,MAAM,EAAE,WAAW,GAAG;QAAE,OAAO,EAAE,QAAQ,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE;IAepE,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA2B5C,KAAK;;;;;;;IA2BL,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC;CAe7B"}
|
package/dist/mcp/mcp.tool.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const o_core_1 = require("@olane/o-core");
|
|
6
|
-
const uuid_1 = require("uuid");
|
|
7
|
-
class McpTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNode) {
|
|
8
|
-
mcpClient;
|
|
1
|
+
import { oVirtualTool } from '@olane/o-tool';
|
|
2
|
+
import { oAddress } from '@olane/o-core';
|
|
3
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
4
|
+
export class McpTool extends oVirtualTool {
|
|
9
5
|
constructor(config) {
|
|
10
6
|
super({
|
|
11
7
|
...config,
|
|
@@ -50,7 +46,7 @@ class McpTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNode) {
|
|
|
50
46
|
// add each mcp tool to the vector store
|
|
51
47
|
const tools = await this.mcpClient.listTools();
|
|
52
48
|
await Promise.all(tools.tools.map((tool) => {
|
|
53
|
-
return this.use(new
|
|
49
|
+
return this.use(new oAddress('o://vector-store'), {
|
|
54
50
|
method: 'add_documents',
|
|
55
51
|
params: {
|
|
56
52
|
documents: [
|
|
@@ -58,7 +54,7 @@ class McpTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNode) {
|
|
|
58
54
|
pageContent: tool.description,
|
|
59
55
|
metadata: {
|
|
60
56
|
address: this.address?.toString() + '/' + tool.name,
|
|
61
|
-
id: (
|
|
57
|
+
id: uuidv4(),
|
|
62
58
|
},
|
|
63
59
|
},
|
|
64
60
|
],
|
|
@@ -85,4 +81,3 @@ class McpTool extends (0, o_tool_1.oTool)(o_core_1.oVirtualNode) {
|
|
|
85
81
|
};
|
|
86
82
|
}
|
|
87
83
|
}
|
|
88
|
-
exports.McpTool = McpTool;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MCP_BRIDGE_METHODS = void 0;
|
|
4
|
-
exports.MCP_BRIDGE_METHODS = {
|
|
1
|
+
export const MCP_BRIDGE_METHODS = {
|
|
5
2
|
add_remote_server_with_api_key: {
|
|
6
3
|
name: 'add_remote_server_with_api_key',
|
|
7
4
|
description: 'Add a MCP server that requires an API key to the bridge',
|
package/dist/nlp/index.js
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ner.tool"), exports);
|
|
1
|
+
export * from './ner.tool';
|