@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.
@@ -1,7 +1,7 @@
1
1
  import { a as McpToolDescriptor } from './types-CI-gM2u5.cjs';
2
- import { O as OllamaRuntime } from './runtime-D2W9TfCJ.cjs';
2
+ import { O as OllamaRuntime } from './runtime-BsdBbuOv.cjs';
3
3
  import 'zod';
4
- import './types-DVcX_zMp.cjs';
4
+ import './types-BtQexFpT.cjs';
5
5
 
6
6
  interface GeneratedToolEntry extends McpToolDescriptor {
7
7
  readonly _operationId: string;
@@ -1,7 +1,7 @@
1
1
  import { a as McpToolDescriptor } from './types-CI-gM2u5.js';
2
- import { O as OllamaRuntime } from './runtime-C3rfpkZw.js';
2
+ import { O as OllamaRuntime } from './runtime-BV9SK_cf.js';
3
3
  import 'zod';
4
- import './types-DVcX_zMp.js';
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-DVcX_zMp.js';
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-DVcX_zMp.cjs';
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-Dj6FdF2n.cjs';
2
- export { d as AppliedSkillResult, e as ApplySkillOptions, P as ParsedFrontmatter, f as SkillFrontmatter, l as applySkill, p as parseFrontmatter } from './compose-Dj6FdF2n.cjs';
3
- import './types-DVcX_zMp.cjs';
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-DCVYMvOL.js';
2
- export { d as AppliedSkillResult, e as ApplySkillOptions, P as ParsedFrontmatter, f as SkillFrontmatter, l as applySkill, p as parseFrontmatter } from './compose-DCVYMvOL.js';
3
- import './types-DVcX_zMp.js';
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
- * - `Buffer` / `Uint8Array` — raw image bytes, base64-encoded automatically.
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 | Buffer | Uint8Array;
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
- * - `Buffer` / `Uint8Array` — raw image bytes, base64-encoded automatically.
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 | Buffer | Uint8Array;
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.9.0",
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
- "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",
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",