@nemesis-oss/ollama-sdk 1.5.1 → 1.7.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/CHANGELOG.md +4 -1
- package/README.md +31 -0
- package/dist/generated-api.d.cts +2 -2
- package/dist/generated-api.d.ts +2 -2
- package/dist/generated-runtime.cjs.map +1 -1
- package/dist/generated-runtime.d.cts +1 -1
- package/dist/generated-runtime.d.ts +1 -1
- package/dist/generated-runtime.js.map +1 -1
- package/dist/index.cjs +132 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -5
- package/dist/index.d.ts +20 -5
- package/dist/index.js +132 -6
- package/dist/index.js.map +1 -1
- package/dist/mcp-generated.d.cts +3 -3
- package/dist/mcp-generated.d.ts +3 -3
- package/dist/mcp-http.cjs +43 -4
- package/dist/mcp-http.cjs.map +1 -1
- package/dist/mcp-http.d.cts +5 -1
- package/dist/mcp-http.d.ts +5 -1
- package/dist/mcp-http.js +43 -4
- package/dist/mcp-http.js.map +1 -1
- package/dist/mcp-stdio.cjs +43 -4
- package/dist/mcp-stdio.cjs.map +1 -1
- package/dist/mcp-stdio.d.cts +5 -1
- package/dist/mcp-stdio.d.ts +5 -1
- package/dist/mcp-stdio.js +43 -4
- package/dist/mcp-stdio.js.map +1 -1
- package/dist/{runtime-IxRpUBjN.d.cts → runtime-bQ48I-RC.d.cts} +4 -2
- package/dist/{runtime-CVQkbYgF.d.ts → runtime-qwD72cpn.d.ts} +4 -2
- package/dist/skills.cjs.map +1 -1
- package/dist/skills.js.map +1 -1
- package/dist/types-CI-gM2u5.d.cts +139 -0
- package/dist/types-CI-gM2u5.d.ts +139 -0
- package/package.json +3 -1
- package/dist/types-MOsWXEE7.d.cts +0 -66
- package/dist/types-MOsWXEE7.d.ts +0 -66
package/dist/types-MOsWXEE7.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Duck-typed MCP (Model Context Protocol) client interfaces.
|
|
3
|
-
* Decoupled from any specific MCP SDK.
|
|
4
|
-
*/
|
|
5
|
-
interface McpToolAnnotations {
|
|
6
|
-
readonly title?: string | undefined;
|
|
7
|
-
readonly readOnlyHint?: boolean | undefined;
|
|
8
|
-
readonly destructiveHint?: boolean | undefined;
|
|
9
|
-
readonly idempotentHint?: boolean | undefined;
|
|
10
|
-
readonly openWorldHint?: boolean | undefined;
|
|
11
|
-
readonly [key: string]: unknown;
|
|
12
|
-
}
|
|
13
|
-
interface McpToolExecution {
|
|
14
|
-
readonly taskSupport?: 'forbidden' | 'optional' | 'required' | undefined;
|
|
15
|
-
readonly [key: string]: unknown;
|
|
16
|
-
}
|
|
17
|
-
interface McpIcon {
|
|
18
|
-
readonly src: string;
|
|
19
|
-
readonly mimeType?: string | undefined;
|
|
20
|
-
readonly sizes?: readonly string[] | undefined;
|
|
21
|
-
readonly theme?: 'light' | 'dark' | undefined;
|
|
22
|
-
readonly [key: string]: unknown;
|
|
23
|
-
}
|
|
24
|
-
interface McpRequestOptions {
|
|
25
|
-
readonly signal?: AbortSignal | undefined;
|
|
26
|
-
}
|
|
27
|
-
interface McpToolDescriptor {
|
|
28
|
-
readonly name: string;
|
|
29
|
-
readonly title?: string | undefined;
|
|
30
|
-
readonly description?: string | undefined;
|
|
31
|
-
readonly inputSchema?: Record<string, unknown> | undefined;
|
|
32
|
-
readonly outputSchema?: Record<string, unknown> | undefined;
|
|
33
|
-
readonly annotations?: McpToolAnnotations | undefined;
|
|
34
|
-
readonly execution?: McpToolExecution | undefined;
|
|
35
|
-
readonly icons?: readonly McpIcon[] | undefined;
|
|
36
|
-
readonly _meta?: Record<string, unknown> | undefined;
|
|
37
|
-
}
|
|
38
|
-
interface McpListToolsResult {
|
|
39
|
-
readonly tools: readonly McpToolDescriptor[];
|
|
40
|
-
readonly nextCursor?: string | undefined;
|
|
41
|
-
}
|
|
42
|
-
interface McpListToolsParams {
|
|
43
|
-
readonly cursor?: string | undefined;
|
|
44
|
-
}
|
|
45
|
-
interface McpContentBlock {
|
|
46
|
-
readonly type: string;
|
|
47
|
-
readonly text?: string | undefined;
|
|
48
|
-
readonly annotations?: Record<string, unknown> | undefined;
|
|
49
|
-
readonly _meta?: Record<string, unknown> | undefined;
|
|
50
|
-
readonly [key: string]: unknown;
|
|
51
|
-
}
|
|
52
|
-
interface McpCallToolResult {
|
|
53
|
-
readonly content: readonly McpContentBlock[];
|
|
54
|
-
readonly structuredContent?: unknown;
|
|
55
|
-
readonly isError?: boolean | undefined;
|
|
56
|
-
readonly _meta?: Record<string, unknown> | undefined;
|
|
57
|
-
}
|
|
58
|
-
interface McpClientLike {
|
|
59
|
-
listTools: (params?: McpListToolsParams, options?: McpRequestOptions) => Promise<McpListToolsResult>;
|
|
60
|
-
callTool: (params: {
|
|
61
|
-
readonly name: string;
|
|
62
|
-
readonly arguments?: Record<string, unknown>;
|
|
63
|
-
}, options?: McpRequestOptions) => Promise<McpCallToolResult>;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export type { McpClientLike as M, McpToolDescriptor as a, McpCallToolResult as b, McpContentBlock as c, McpIcon as d, McpListToolsParams as e, McpListToolsResult as f, McpRequestOptions as g, McpToolAnnotations as h, McpToolExecution as i };
|