@nemesis-oss/ollama-sdk 1.9.0 → 1.10.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 +24 -0
- package/README.md +66 -1
- package/dist/{anthropic-5oYIRS6D.d.ts → anthropic-CPaoxeLX.d.ts} +1 -1
- package/dist/{anthropic-BIh45UXj.d.cts → anthropic-DuE8M6Tz.d.cts} +1 -1
- package/dist/{compose-DCVYMvOL.d.ts → compose-BQYXdpar.d.ts} +1 -1
- package/dist/{compose-Dj6FdF2n.d.cts → compose-lt-Qz3lI.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 +260 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +203 -9
- package/dist/index.d.ts +203 -9
- package/dist/index.js +256 -4
- 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-C3rfpkZw.d.ts → runtime-BV9SK_cf.d.ts} +1 -1
- package/dist/{runtime-D2W9TfCJ.d.cts → runtime-BsdBbuOv.d.cts} +1 -1
- package/dist/skills.d.cts +3 -3
- package/dist/skills.d.ts +3 -3
- package/dist/{types-DVcX_zMp.d.cts → types-BtQexFpT.d.cts} +5 -2
- package/dist/{types-DVcX_zMp.d.ts → types-BtQexFpT.d.ts} +5 -2
- package/package.json +4 -2
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-BsdBbuOv.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-BtQexFpT.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-BV9SK_cf.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-BtQexFpT.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-BtQexFpT.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-BtQexFpT.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-lt-Qz3lI.cjs';
|
|
2
|
+
export { d as AppliedSkillResult, e as ApplySkillOptions, P as ParsedFrontmatter, f as SkillFrontmatter, l as applySkill, p as parseFrontmatter } from './compose-lt-Qz3lI.cjs';
|
|
3
|
+
import './types-BtQexFpT.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-BQYXdpar.js';
|
|
2
|
+
export { d as AppliedSkillResult, e as ApplySkillOptions, P as ParsedFrontmatter, f as SkillFrontmatter, l as applySkill, p as parseFrontmatter } from './compose-BQYXdpar.js';
|
|
3
|
+
import './types-BtQexFpT.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -38,9 +38,12 @@
|
|
|
38
38
|
*
|
|
39
39
|
* - `string` — a raw base64 payload, a `data:image/...;base64,` data URI, an
|
|
40
40
|
* `http(s)://` URL, or (on Node.js) a local file path.
|
|
41
|
-
* - `
|
|
41
|
+
* - `Uint8Array` — raw image bytes, base64-encoded automatically. Node
|
|
42
|
+
* `Buffer` is a `Uint8Array` subclass, so buffers are accepted everywhere
|
|
43
|
+
* bytes are — without importing Node types into consumer compilations: the
|
|
44
|
+
* published declarations stay free of `@types/node` globals (audit TYP-03).
|
|
42
45
|
*/
|
|
43
|
-
type VisionInput = string |
|
|
46
|
+
type VisionInput = string | Uint8Array;
|
|
44
47
|
/**
|
|
45
48
|
* Cheap synchronous check: does this string input require async resolution
|
|
46
49
|
* (data-URI stripping, URL fetch, or file read), or is it already wire-ready
|
|
@@ -38,9 +38,12 @@
|
|
|
38
38
|
*
|
|
39
39
|
* - `string` — a raw base64 payload, a `data:image/...;base64,` data URI, an
|
|
40
40
|
* `http(s)://` URL, or (on Node.js) a local file path.
|
|
41
|
-
* - `
|
|
41
|
+
* - `Uint8Array` — raw image bytes, base64-encoded automatically. Node
|
|
42
|
+
* `Buffer` is a `Uint8Array` subclass, so buffers are accepted everywhere
|
|
43
|
+
* bytes are — without importing Node types into consumer compilations: the
|
|
44
|
+
* published declarations stay free of `@types/node` globals (audit TYP-03).
|
|
42
45
|
*/
|
|
43
|
-
type VisionInput = string |
|
|
46
|
+
type VisionInput = string | Uint8Array;
|
|
44
47
|
/**
|
|
45
48
|
* Cheap synchronous check: does this string input require async resolution
|
|
46
49
|
* (data-URI stripping, URL fetch, or file read), or is it already wire-ready
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nemesis-oss/ollama-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.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",
|
|
@@ -184,8 +184,10 @@
|
|
|
184
184
|
"bench": "vitest bench --run",
|
|
185
185
|
"bench:watch": "vitest bench",
|
|
186
186
|
"check:types": "npx --yes @arethetypeswrong/cli@latest --pack .",
|
|
187
|
+
"verify:consumer-types": "bash scripts/verify-consumer-types.sh",
|
|
187
188
|
"verify": "npm run typecheck && npm run lint && npm run test && npm run build && npm run verify:edge-runtime && npm run verify:contract-parity",
|
|
188
|
-
"
|
|
189
|
+
"smoke": "npm run contract:validate && npm run contract:diff && npm run contract:drift -- --strict && npm run verify && npm run check:types && npm run verify:consumer-types",
|
|
190
|
+
"verify:release": "npm run clean && npm run contract:validate && npm run contract:diff && npm run contract:generate && npm run contract:drift -- --strict && npm run typecheck && npm run lint && npm run test && npm run build && npm run verify:edge-runtime && npm run verify:contract-parity -- --skip-live-docs && npm run check:types && npm run verify:consumer-types",
|
|
189
191
|
"example": "tsx",
|
|
190
192
|
"lab": "tsx lab/run.ts",
|
|
191
193
|
"lab:live": "npm run build && tsx lab/live-tour.ts",
|