@anvia/core 1.0.0-rc.8 → 1.0.0
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/README.md +99 -77
- package/dist/agent/index.d.ts +11 -16
- package/dist/agent/index.js +4 -4
- package/dist/{agent-XPQBM4rX.d.ts → agent-qRKa3ibC.d.ts} +11 -7
- package/dist/{chunk-YA2655FX.js → chunk-3ZLM6OAZ.js} +304 -100
- package/dist/chunk-3ZLM6OAZ.js.map +1 -0
- package/dist/{chunk-X4LK4ODN.js → chunk-AHLKV6KP.js} +1 -1
- package/dist/chunk-AHLKV6KP.js.map +1 -0
- package/dist/chunk-J6LVLV6P.js +13 -0
- package/dist/chunk-J6LVLV6P.js.map +1 -0
- package/dist/{chunk-QOUPWOGW.js → chunk-SPD4XVR7.js} +1 -1
- package/dist/{chunk-5C6B6ZRH.js → chunk-YA7BMX7D.js} +50 -3
- package/dist/chunk-YA7BMX7D.js.map +1 -0
- package/dist/documents/index.js +26 -1
- package/dist/documents/index.js.map +1 -1
- package/dist/evals/index.d.ts +5 -5
- package/dist/evals/index.js +3 -3
- package/dist/evals/index.js.map +1 -1
- package/dist/index.d.ts +7 -12
- package/dist/index.js +7 -5
- package/dist/internal/agent.d.ts +4 -9
- package/dist/internal/agent.js +4 -4
- package/dist/mcp/index.d.ts +3 -17
- package/dist/mcp/index.js +1 -15
- package/dist/memory/index.d.ts +6 -3
- package/dist/memory/index.js +4 -2
- package/dist/observability/index.d.ts +2 -2
- package/dist/pipeline/index.d.ts +6 -11
- package/dist/pipeline/index.js +3 -3
- package/dist/pipeline/index.js.map +1 -1
- package/dist/{types-Sue2hb_L.d.ts → types-CLCLFpAL.d.ts} +23 -15
- package/dist/{types-DKOXVTcq.d.ts → types-CSYt7-It.d.ts} +18 -3
- package/dist/types-DjqRHeAi.d.ts +31 -0
- package/package.json +10 -4
- package/dist/chunk-5C6B6ZRH.js.map +0 -1
- package/dist/chunk-76JLMBVT.js +0 -716
- package/dist/chunk-76JLMBVT.js.map +0 -1
- package/dist/chunk-X4LK4ODN.js.map +0 -1
- package/dist/chunk-YA2655FX.js.map +0 -1
- package/dist/client-DTPl0hZv.d.ts +0 -84
- /package/dist/{chunk-QOUPWOGW.js.map → chunk-SPD4XVR7.js.map} +0 -0
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { IOType } from 'node:child_process';
|
|
2
|
-
import { Stream } from 'node:stream';
|
|
3
|
-
import { OAuthClientProvider } from '@modelcontextprotocol/sdk/client/auth.js';
|
|
4
|
-
import { StreamableHTTPReconnectionOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
5
|
-
import { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
|
|
6
|
-
import { J as JsonObject } from './types-DgvozfPc.js';
|
|
7
|
-
import { A as AnyTool } from './tool-BpqpoRSE.js';
|
|
8
|
-
|
|
9
|
-
type McpStdioTransport = {
|
|
10
|
-
readonly type: "stdio";
|
|
11
|
-
readonly command: string;
|
|
12
|
-
readonly args?: string[] | undefined;
|
|
13
|
-
readonly env?: Record<string, string> | undefined;
|
|
14
|
-
readonly cwd?: string | undefined;
|
|
15
|
-
readonly stderr?: IOType | Stream | number | undefined;
|
|
16
|
-
readonly maxBufferSize?: number | undefined;
|
|
17
|
-
};
|
|
18
|
-
type McpStreamableHttpTransport = {
|
|
19
|
-
readonly type: "streamableHttp";
|
|
20
|
-
readonly url: string | URL;
|
|
21
|
-
readonly ssrfProtection?: "strict" | "disabled" | undefined;
|
|
22
|
-
readonly headers?: Readonly<Record<string, string>> | undefined;
|
|
23
|
-
readonly authProvider?: OAuthClientProvider | undefined;
|
|
24
|
-
readonly reconnectionOptions?: StreamableHTTPReconnectionOptions | undefined;
|
|
25
|
-
readonly sessionId?: string | undefined;
|
|
26
|
-
};
|
|
27
|
-
type McpTransport = Transport;
|
|
28
|
-
type McpCustomTransport = {
|
|
29
|
-
readonly type: "custom";
|
|
30
|
-
readonly create: (options: {
|
|
31
|
-
abortSignal?: AbortSignal | undefined;
|
|
32
|
-
}) => McpTransport | Promise<McpTransport>;
|
|
33
|
-
};
|
|
34
|
-
type McpClientTransport = McpStdioTransport | McpStreamableHttpTransport | McpCustomTransport;
|
|
35
|
-
type McpClientOptions = {
|
|
36
|
-
readonly name: string;
|
|
37
|
-
readonly transport: McpClientTransport;
|
|
38
|
-
readonly tools?: {
|
|
39
|
-
readonly prefix?: string | undefined;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
type McpConnectOptions = {
|
|
43
|
-
readonly abortSignal?: AbortSignal | undefined;
|
|
44
|
-
};
|
|
45
|
-
type McpServerInfo = {
|
|
46
|
-
readonly name: string;
|
|
47
|
-
readonly version: string;
|
|
48
|
-
readonly title?: string | undefined;
|
|
49
|
-
readonly description?: string | undefined;
|
|
50
|
-
readonly websiteUrl?: string | undefined;
|
|
51
|
-
readonly icons?: readonly {
|
|
52
|
-
readonly src: string;
|
|
53
|
-
readonly mimeType?: string | undefined;
|
|
54
|
-
readonly sizes?: readonly string[] | undefined;
|
|
55
|
-
readonly theme?: "light" | "dark" | undefined;
|
|
56
|
-
}[];
|
|
57
|
-
};
|
|
58
|
-
type McpTool = AnyTool & {
|
|
59
|
-
readonly mcp: {
|
|
60
|
-
readonly serverName: string;
|
|
61
|
-
readonly remoteName: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
type McpServer = {
|
|
65
|
-
readonly name: string;
|
|
66
|
-
readonly tools: readonly McpTool[];
|
|
67
|
-
readonly serverInfo?: McpServerInfo | undefined;
|
|
68
|
-
readonly capabilities?: JsonObject | undefined;
|
|
69
|
-
readonly instructions?: string | undefined;
|
|
70
|
-
};
|
|
71
|
-
type McpClientGroupConnectOptions = {
|
|
72
|
-
readonly clients: readonly McpClient[];
|
|
73
|
-
readonly abortSignal?: AbortSignal | undefined;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
declare class McpClient {
|
|
77
|
-
#private;
|
|
78
|
-
readonly name: string;
|
|
79
|
-
constructor(options: McpClientOptions);
|
|
80
|
-
connect(options?: McpConnectOptions): Promise<McpServer>;
|
|
81
|
-
close(): Promise<void>;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export { McpClient as M, type McpServer as a, type McpClientGroupConnectOptions as b, type McpTool as c, type McpClientOptions as d, type McpClientTransport as e, type McpConnectOptions as f, type McpCustomTransport as g, type McpServerInfo as h, type McpStdioTransport as i, type McpStreamableHttpTransport as j, type McpTransport as k };
|
|
File without changes
|