@nemesis-oss/ollama-sdk 1.11.0 → 1.12.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 +28 -0
- package/README.md +120 -0
- package/dist/{anthropic-CfricAhK.d.ts → anthropic-CKp5TmAP.d.ts} +1 -1
- package/dist/{anthropic-DinrABof.d.cts → anthropic-Did0lQxP.d.cts} +1 -1
- package/dist/{compose-BQYXdpar.d.ts → compose-6UOPEknN.d.ts} +1 -1
- package/dist/{compose-lt-Qz3lI.d.cts → compose-DhvoUrWa.d.cts} +1 -1
- package/dist/generated-api.d.cts +5 -5
- package/dist/generated-api.d.ts +5 -5
- package/dist/generated-runtime.d.cts +2 -2
- package/dist/generated-runtime.d.ts +2 -2
- package/dist/index.cjs +397 -147
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +293 -9
- package/dist/index.d.ts +293 -9
- package/dist/index.js +395 -148
- package/dist/index.js.map +1 -1
- package/dist/mcp-generated.d.cts +2 -2
- package/dist/mcp-generated.d.ts +2 -2
- package/dist/{runtime-CCm4CtU_.d.ts → runtime-CIQYCRL3.d.ts} +1 -1
- package/dist/{runtime-DTtWCxDs.d.cts → runtime-DmI1cOEq.d.cts} +1 -1
- package/dist/skills.d.cts +3 -3
- package/dist/skills.d.ts +3 -3
- package/dist/{types-BtQexFpT.d.cts → types-B57ZZfp3.d.cts} +15 -1
- package/dist/{types-BtQexFpT.d.ts → types-B57ZZfp3.d.ts} +15 -1
- package/package.json +1 -1
package/dist/mcp-generated.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as McpToolDescriptor } from './types-CI-gM2u5.cjs';
|
|
2
|
-
import { O as OllamaRuntime } from './runtime-
|
|
2
|
+
import { O as OllamaRuntime } from './runtime-DmI1cOEq.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-B57ZZfp3.cjs';
|
|
5
5
|
|
|
6
6
|
interface GeneratedToolEntry extends McpToolDescriptor {
|
|
7
7
|
readonly _operationId: string;
|
package/dist/mcp-generated.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as McpToolDescriptor } from './types-CI-gM2u5.js';
|
|
2
|
-
import { O as OllamaRuntime } from './runtime-
|
|
2
|
+
import { O as OllamaRuntime } from './runtime-CIQYCRL3.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-B57ZZfp3.js';
|
|
5
5
|
|
|
6
6
|
interface GeneratedToolEntry extends McpToolDescriptor {
|
|
7
7
|
readonly _operationId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Message, m as ChatResponse, i as ToolCall, b as ProgressResponse, o as GenerateResponse } from './types-
|
|
1
|
+
import { n as Message, m as ChatResponse, i as ToolCall, b as ProgressResponse, o as GenerateResponse } from './types-B57ZZfp3.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Message, m as ChatResponse, i as ToolCall, b as ProgressResponse, o as GenerateResponse } from './types-
|
|
1
|
+
import { n as Message, m as ChatResponse, i as ToolCall, b as ProgressResponse, o as GenerateResponse } from './types-B57ZZfp3.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
package/dist/skills.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as SkillSummary, S as Skill } from './compose-
|
|
2
|
-
export { d as AppliedSkillResult, e as ApplySkillOptions, P as ParsedFrontmatter, f as SkillFrontmatter, l as applySkill, p as parseFrontmatter } from './compose-
|
|
3
|
-
import './types-
|
|
1
|
+
import { g as SkillSummary, S as Skill } from './compose-DhvoUrWa.cjs';
|
|
2
|
+
export { d as AppliedSkillResult, e as ApplySkillOptions, P as ParsedFrontmatter, f as SkillFrontmatter, l as applySkill, p as parseFrontmatter } from './compose-DhvoUrWa.cjs';
|
|
3
|
+
import './types-B57ZZfp3.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/skills.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as SkillSummary, S as Skill } from './compose-
|
|
2
|
-
export { d as AppliedSkillResult, e as ApplySkillOptions, P as ParsedFrontmatter, f as SkillFrontmatter, l as applySkill, p as parseFrontmatter } from './compose-
|
|
3
|
-
import './types-
|
|
1
|
+
import { g as SkillSummary, S as Skill } from './compose-6UOPEknN.js';
|
|
2
|
+
export { d as AppliedSkillResult, e as ApplySkillOptions, P as ParsedFrontmatter, f as SkillFrontmatter, l as applySkill, p as parseFrontmatter } from './compose-6UOPEknN.js';
|
|
3
|
+
import './types-B57ZZfp3.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -199,6 +199,20 @@ interface RequestCancellationOptions {
|
|
|
199
199
|
readonly signal?: AbortSignal | undefined;
|
|
200
200
|
readonly timeoutMs?: number | undefined;
|
|
201
201
|
}
|
|
202
|
+
/**
|
|
203
|
+
* Result of {@link OllamaClient.ping} — the ultra-lightweight `HEAD /` root
|
|
204
|
+
* liveness probe Ollama's documentation defines for load-balancer health checks.
|
|
205
|
+
* `healthy: false` carries a human-readable `error` (connection refused, timeout,
|
|
206
|
+
* …); the probe resolves instead of throwing so monitoring loops can treat it as
|
|
207
|
+
* a datapoint rather than an exception path.
|
|
208
|
+
*/
|
|
209
|
+
interface PingResult {
|
|
210
|
+
readonly healthy: boolean;
|
|
211
|
+
readonly latencyMs: number;
|
|
212
|
+
/** Base URL of the concrete endpoint that was probed. */
|
|
213
|
+
readonly baseUrl: string;
|
|
214
|
+
readonly error?: string | undefined;
|
|
215
|
+
}
|
|
202
216
|
interface ChatRequestOptions extends RequestCancellationOptions {
|
|
203
217
|
readonly model: string;
|
|
204
218
|
readonly messages: readonly Message[];
|
|
@@ -503,4 +517,4 @@ type UsageScope = 'self' | 'team';
|
|
|
503
517
|
*/
|
|
504
518
|
type BalanceRequestOptions = RequestCancellationOptions;
|
|
505
519
|
|
|
506
|
-
export { type
|
|
520
|
+
export { type Role as A, type BalanceRequestOptions as B, type CreateRequestOptions as C, type DeleteRequestOptions as D, type EmbedRequestOptions as E, type FormatOption as F, type GenerateRequestOptions as G, type ToolCallFunction as H, type ToolFunctionDefinition as I, type ToolProperty as J, type UsageRange as K, type ListResponse as L, type ModelResponse as M, type UsageScope as N, type WebSearchResult as O, type PullRequestOptions as P, imageStringNeedsResolution as Q, type RequestCancellationOptions as R, type ShowRequestOptions as S, type ThinkingMetadata as T, type UsageRequestOptions as U, type VersionResponse as V, type WebSearchRequestOptions as W, resolveImageInput as X, type ShowResponse as a, type ProgressResponse as b, type PushRequestOptions as c, type StatusResponse as d, type CopyRequestOptions as e, type PsResponse as f, type ToolParameters as g, type ThinkValue as h, type ToolCall as i, type ChatRequestOptions as j, type ModelOptions as k, type ToolDefinition as l, type ChatResponse as m, type Message as n, type GenerateResponse as o, type EmbedResponse as p, type EmbeddingsRequestOptions as q, type EmbeddingsResponse as r, type WebSearchResponse as s, type WebFetchRequestOptions as t, type WebFetchResponse as u, type PingResult as v, type VisionInput as w, type Logprob as x, type LogprobToken as y, type ModelDetails as z };
|
|
@@ -199,6 +199,20 @@ interface RequestCancellationOptions {
|
|
|
199
199
|
readonly signal?: AbortSignal | undefined;
|
|
200
200
|
readonly timeoutMs?: number | undefined;
|
|
201
201
|
}
|
|
202
|
+
/**
|
|
203
|
+
* Result of {@link OllamaClient.ping} — the ultra-lightweight `HEAD /` root
|
|
204
|
+
* liveness probe Ollama's documentation defines for load-balancer health checks.
|
|
205
|
+
* `healthy: false` carries a human-readable `error` (connection refused, timeout,
|
|
206
|
+
* …); the probe resolves instead of throwing so monitoring loops can treat it as
|
|
207
|
+
* a datapoint rather than an exception path.
|
|
208
|
+
*/
|
|
209
|
+
interface PingResult {
|
|
210
|
+
readonly healthy: boolean;
|
|
211
|
+
readonly latencyMs: number;
|
|
212
|
+
/** Base URL of the concrete endpoint that was probed. */
|
|
213
|
+
readonly baseUrl: string;
|
|
214
|
+
readonly error?: string | undefined;
|
|
215
|
+
}
|
|
202
216
|
interface ChatRequestOptions extends RequestCancellationOptions {
|
|
203
217
|
readonly model: string;
|
|
204
218
|
readonly messages: readonly Message[];
|
|
@@ -503,4 +517,4 @@ type UsageScope = 'self' | 'team';
|
|
|
503
517
|
*/
|
|
504
518
|
type BalanceRequestOptions = RequestCancellationOptions;
|
|
505
519
|
|
|
506
|
-
export { type
|
|
520
|
+
export { type Role as A, type BalanceRequestOptions as B, type CreateRequestOptions as C, type DeleteRequestOptions as D, type EmbedRequestOptions as E, type FormatOption as F, type GenerateRequestOptions as G, type ToolCallFunction as H, type ToolFunctionDefinition as I, type ToolProperty as J, type UsageRange as K, type ListResponse as L, type ModelResponse as M, type UsageScope as N, type WebSearchResult as O, type PullRequestOptions as P, imageStringNeedsResolution as Q, type RequestCancellationOptions as R, type ShowRequestOptions as S, type ThinkingMetadata as T, type UsageRequestOptions as U, type VersionResponse as V, type WebSearchRequestOptions as W, resolveImageInput as X, type ShowResponse as a, type ProgressResponse as b, type PushRequestOptions as c, type StatusResponse as d, type CopyRequestOptions as e, type PsResponse as f, type ToolParameters as g, type ThinkValue as h, type ToolCall as i, type ChatRequestOptions as j, type ModelOptions as k, type ToolDefinition as l, type ChatResponse as m, type Message as n, type GenerateResponse as o, type EmbedResponse as p, type EmbeddingsRequestOptions as q, type EmbeddingsResponse as r, type WebSearchResponse as s, type WebFetchRequestOptions as t, type WebFetchResponse as u, type PingResult as v, type VisionInput as w, type Logprob as x, type LogprobToken as y, type ModelDetails as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nemesis-oss/ollama-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "Production-grade TypeScript SDK for Ollama with native fetch, high availability failover, multi-turn tool calling, structured outputs, reasoning stream tokens, OpenAI/Anthropic bridges, MCP, Web Stream adapters, and a contract-first hybrid architecture that generates TypeScript types, API classes, MCP tools, and Zod schemas from a single canonical IR.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ollama",
|