@gullabs/any-llm 0.8.7 → 0.9.1

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/dist/index.cjs CHANGED
@@ -6,7 +6,7 @@ var google = require('@gullabs/google');
6
6
  // src/index.ts
7
7
 
8
8
  // package.json
9
- var version = "0.8.7";
9
+ var version = "0.9.1";
10
10
 
11
11
  // src/index.ts
12
12
  var ANY_LLM_VERSION = version;
@@ -1 +1 @@
1
- {"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";;;;;;;;AAEE,IAAA,OAAA,GAAW,OAAA;;;ACcN,IAAM,eAAA,GAA0B","file":"index.cjs","sourcesContent":["{\n \"name\": \"@gullabs/any-llm\",\n \"version\": \"0.8.7\",\n \"description\": \"Batteries-included any-llm client for Gemini: engine, adapter, and Google SDK in one install.\",\n \"type\": \"module\",\n \"license\": \"Apache-2.0\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/gullabs/any-llm.git\",\n \"directory\": \"packages/any-llm\"\n },\n \"main\": \"./dist/index.cjs\",\n \"module\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\",\n \"require\": \"./dist/index.cjs\"\n }\n },\n \"files\": [\n \"dist\",\n \"skills\"\n ],\n \"scripts\": {\n \"build\": \"tsup\"\n },\n \"dependencies\": {\n \"@google/genai\": \"^1.45.0 || ^2\",\n \"@gullabs/core\": \"workspace:*\",\n \"@gullabs/google\": \"workspace:*\"\n },\n \"engines\": {\n \"node\": \">=20.9.0\"\n },\n \"sideEffects\": false,\n \"keywords\": [\n \"llm\",\n \"gemini\",\n \"google-genai\",\n \"ai\",\n \"tokens\",\n \"cost\",\n \"usage\",\n \"observability\",\n \"typescript\"\n ],\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"homepage\": \"https://github.com/gullabs/any-llm/tree/main/packages/any-llm#readme\",\n \"bugs\": \"https://github.com/gullabs/any-llm/issues\"\n}\n","/**\n * @gullabs/any-llm — batteries-included public entrypoint.\n *\n * This package is the default client install path. It re-exports the core\n * engine and Gemini adapter while depending on the Gemini SDK for a one-package\n * setup.\n *\n * @module\n */\n\nexport * from '@gullabs/core'\nexport * from '@gullabs/google'\n\nimport { version } from '../package.json'\n\n/** Library version, sourced from package.json at build time. */\nexport const ANY_LLM_VERSION: string = version\n"]}
1
+ {"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";;;;;;;;AAEE,IAAA,OAAA,GAAW,OAAA;;;ACcN,IAAM,eAAA,GAA0B","file":"index.cjs","sourcesContent":["{\n \"name\": \"@gullabs/any-llm\",\n \"version\": \"0.9.1\",\n \"description\": \"Batteries-included any-llm client for Gemini: engine, adapter, and Google SDK in one install.\",\n \"type\": \"module\",\n \"license\": \"Apache-2.0\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/GulLabs/any-llm.git\",\n \"directory\": \"packages/any-llm\"\n },\n \"main\": \"./dist/index.cjs\",\n \"module\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\",\n \"require\": \"./dist/index.cjs\"\n }\n },\n \"files\": [\n \"dist\",\n \"skills\"\n ],\n \"scripts\": {\n \"build\": \"tsup\"\n },\n \"dependencies\": {\n \"@google/genai\": \"^1.45.0 || ^2\",\n \"@gullabs/core\": \"workspace:*\",\n \"@gullabs/google\": \"workspace:*\"\n },\n \"engines\": {\n \"node\": \">=20.9.0\"\n },\n \"sideEffects\": false,\n \"keywords\": [\n \"llm\",\n \"gemini\",\n \"google-genai\",\n \"ai\",\n \"tokens\",\n \"cost\",\n \"usage\",\n \"observability\",\n \"typescript\"\n ],\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"homepage\": \"https://github.com/GulLabs/any-llm/tree/main/packages/any-llm#readme\",\n \"bugs\": \"https://github.com/GulLabs/any-llm/issues\"\n}\n","/**\n * @gullabs/any-llm — batteries-included public entrypoint.\n *\n * This package is the default client install path. It re-exports the core\n * engine and Gemini adapter while depending on the Gemini SDK for a one-package\n * setup.\n *\n * @module\n */\n\nexport * from '@gullabs/core'\nexport * from '@gullabs/google'\n\nimport { version } from '../package.json'\n\n/** Library version, sourced from package.json at build time. */\nexport const ANY_LLM_VERSION: string = version\n"]}
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ export * from '@gullabs/google';
4
4
  // src/index.ts
5
5
 
6
6
  // package.json
7
- var version = "0.8.7";
7
+ var version = "0.9.1";
8
8
 
9
9
  // src/index.ts
10
10
  var ANY_LLM_VERSION = version;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";;;;;;AAEE,IAAA,OAAA,GAAW,OAAA;;;ACcN,IAAM,eAAA,GAA0B","file":"index.js","sourcesContent":["{\n \"name\": \"@gullabs/any-llm\",\n \"version\": \"0.8.7\",\n \"description\": \"Batteries-included any-llm client for Gemini: engine, adapter, and Google SDK in one install.\",\n \"type\": \"module\",\n \"license\": \"Apache-2.0\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/gullabs/any-llm.git\",\n \"directory\": \"packages/any-llm\"\n },\n \"main\": \"./dist/index.cjs\",\n \"module\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\",\n \"require\": \"./dist/index.cjs\"\n }\n },\n \"files\": [\n \"dist\",\n \"skills\"\n ],\n \"scripts\": {\n \"build\": \"tsup\"\n },\n \"dependencies\": {\n \"@google/genai\": \"^1.45.0 || ^2\",\n \"@gullabs/core\": \"workspace:*\",\n \"@gullabs/google\": \"workspace:*\"\n },\n \"engines\": {\n \"node\": \">=20.9.0\"\n },\n \"sideEffects\": false,\n \"keywords\": [\n \"llm\",\n \"gemini\",\n \"google-genai\",\n \"ai\",\n \"tokens\",\n \"cost\",\n \"usage\",\n \"observability\",\n \"typescript\"\n ],\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"homepage\": \"https://github.com/gullabs/any-llm/tree/main/packages/any-llm#readme\",\n \"bugs\": \"https://github.com/gullabs/any-llm/issues\"\n}\n","/**\n * @gullabs/any-llm — batteries-included public entrypoint.\n *\n * This package is the default client install path. It re-exports the core\n * engine and Gemini adapter while depending on the Gemini SDK for a one-package\n * setup.\n *\n * @module\n */\n\nexport * from '@gullabs/core'\nexport * from '@gullabs/google'\n\nimport { version } from '../package.json'\n\n/** Library version, sourced from package.json at build time. */\nexport const ANY_LLM_VERSION: string = version\n"]}
1
+ {"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";;;;;;AAEE,IAAA,OAAA,GAAW,OAAA;;;ACcN,IAAM,eAAA,GAA0B","file":"index.js","sourcesContent":["{\n \"name\": \"@gullabs/any-llm\",\n \"version\": \"0.9.1\",\n \"description\": \"Batteries-included any-llm client for Gemini: engine, adapter, and Google SDK in one install.\",\n \"type\": \"module\",\n \"license\": \"Apache-2.0\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/GulLabs/any-llm.git\",\n \"directory\": \"packages/any-llm\"\n },\n \"main\": \"./dist/index.cjs\",\n \"module\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\",\n \"require\": \"./dist/index.cjs\"\n }\n },\n \"files\": [\n \"dist\",\n \"skills\"\n ],\n \"scripts\": {\n \"build\": \"tsup\"\n },\n \"dependencies\": {\n \"@google/genai\": \"^1.45.0 || ^2\",\n \"@gullabs/core\": \"workspace:*\",\n \"@gullabs/google\": \"workspace:*\"\n },\n \"engines\": {\n \"node\": \">=20.9.0\"\n },\n \"sideEffects\": false,\n \"keywords\": [\n \"llm\",\n \"gemini\",\n \"google-genai\",\n \"ai\",\n \"tokens\",\n \"cost\",\n \"usage\",\n \"observability\",\n \"typescript\"\n ],\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"homepage\": \"https://github.com/GulLabs/any-llm/tree/main/packages/any-llm#readme\",\n \"bugs\": \"https://github.com/GulLabs/any-llm/issues\"\n}\n","/**\n * @gullabs/any-llm — batteries-included public entrypoint.\n *\n * This package is the default client install path. It re-exports the core\n * engine and Gemini adapter while depending on the Gemini SDK for a one-package\n * setup.\n *\n * @module\n */\n\nexport * from '@gullabs/core'\nexport * from '@gullabs/google'\n\nimport { version } from '../package.json'\n\n/** Library version, sourced from package.json at build time. */\nexport const ANY_LLM_VERSION: string = version\n"]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@gullabs/any-llm",
3
- "version": "0.8.7",
3
+ "version": "0.9.1",
4
4
  "description": "Batteries-included any-llm client for Gemini: engine, adapter, and Google SDK in one install.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/gullabs/any-llm.git",
9
+ "url": "git+https://github.com/GulLabs/any-llm.git",
10
10
  "directory": "packages/any-llm"
11
11
  },
12
12
  "main": "./dist/index.cjs",
@@ -25,8 +25,8 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "@google/genai": "^1.45.0 || ^2",
28
- "@gullabs/core": "0.11.0",
29
- "@gullabs/google": "0.9.1"
28
+ "@gullabs/core": "0.12.1",
29
+ "@gullabs/google": "0.10.1"
30
30
  },
31
31
  "engines": {
32
32
  "node": ">=20.9.0"
@@ -46,8 +46,8 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "homepage": "https://github.com/gullabs/any-llm/tree/main/packages/any-llm#readme",
50
- "bugs": "https://github.com/gullabs/any-llm/issues",
49
+ "homepage": "https://github.com/GulLabs/any-llm/tree/main/packages/any-llm#readme",
50
+ "bugs": "https://github.com/GulLabs/any-llm/issues",
51
51
  "scripts": {
52
52
  "build": "tsup"
53
53
  }
@@ -150,7 +150,7 @@ const client = createClient({
150
150
  const result = await client.generate(
151
151
  {
152
152
  provider: 'xai',
153
- model: 'grok-4.5',
153
+ model: 'grok-4.6',
154
154
  messages: [{ role: 'user', parts: [{ kind: 'text', text: 'Hello, Grok.' }] }],
155
155
  config: { reasoning: { effort: 'high' } },
156
156
  },
@@ -158,10 +158,11 @@ const result = await client.generate(
158
158
  )
159
159
  ```
160
160
 
161
- `grok-4.5`'s `reasoning.effort` admits only `'low' | 'high'` (live-verified) —
162
- `'none'`, `'medium'`, and `'xhigh'` are rejected by both the live API and
163
- `Grok45ConfigSchema`. Unlike Gemini, xai has no `serviceTier` concept and no `topK`;
164
- its config schema is a single strict object with no tier branching.
161
+ `grok-4.5`'s `reasoning.effort` admits only `'low' | 'high'` (`Grok45ConfigSchema`).
162
+ `grok-4.6` admits `'low' | 'medium' | 'high' | 'xhigh'` (live-verified 2026-08-12);
163
+ `'none'` is rejected. `grok-4.6` also admits `serviceTier: 'priority'` (2× list
164
+ price, confirmed by live `cost_in_usd_ticks`). `grok-4.5` still rejects every
165
+ `serviceTier`. No `topK`.
165
166
 
166
167
  ## xAI structured-output schemas vs. OpenAI-strict / codex-cli schemas
167
168
 
@@ -482,16 +483,16 @@ source repo (see "For more detail" below — this file may not ship in `node_mod
482
483
  Every rejection from `generate()` / `runStructured()` is an `LlmError` with a `.kind`
483
484
  discriminant (from `packages/core/src/errors.ts`):
484
485
 
485
- | `kind` | Meaning | Retryable |
486
- | ---------------- | ----------------------------------------------------- | --------- |
487
- | `invalid_auth` | 401/403, or missing/empty `apiKey` | No |
488
- | `rate_limited` | 429 — provider quota exceeded | Yes |
489
- | `server` | 5xx — transient provider error | Yes |
490
- | `timeout` | exceeded `config.timeoutMs` or a network timeout | Yes |
491
- | `aborted` | caller's `AbortSignal` fired | No |
492
- | `bad_request` | 400/422, or a request the library rejected before I/O | No |
493
- | `content_filter` | provider refused output for safety reasons | No |
494
- | `unknown` | uncategorized — inspect `.cause` | No |
486
+ | `kind` | Meaning | Retryable |
487
+ | ---------------- | ------------------------------------------------------------------------------------------------- | --------- |
488
+ | `invalid_auth` | 401, missing/empty `apiKey`, or a 403 the adapter did not reclassify | No |
489
+ | `rate_limited` | 429 — provider quota exceeded | Yes |
490
+ | `server` | 5xx — transient provider error | Yes |
491
+ | `timeout` | exceeded `config.timeoutMs` or a network timeout | Yes |
492
+ | `aborted` | caller's `AbortSignal` fired | No |
493
+ | `bad_request` | 400/422, or a request the library rejected before I/O | No |
494
+ | `content_filter` | provider refused the call for safety / AUP (Gemini 200-path blocks; xAI 403 input-safety overlay) | No |
495
+ | `unknown` | uncategorized — inspect `.cause` | No |
495
496
 
496
497
  ```ts
497
498
  import { LlmError } from '@gullabs/core'
@@ -537,14 +538,16 @@ config: {
537
538
  }
538
539
  ```
539
540
 
540
- `ReasoningEffort` is `'none' | 'low' | 'medium' | 'high'`. Two provider APIs exist
541
- under the hood: Gemini 2.5 models take a token `budgetTokens`; Gemini 3.x / Gemma 4
542
- models take a discrete `effort` level (`thinkingLevel`).
541
+ `ReasoningEffort` is `'none' | 'low' | 'medium' | 'high' | 'xhigh'`. Admitted values
542
+ are per-model. Two provider APIs exist under the hood: Gemini 2.5 models take a
543
+ token `budgetTokens`; Gemini 3.x / Gemma 4 / xAI take a discrete `effort` level.
543
544
 
544
545
  Use the model-native boundary directly:
545
546
 
546
- - Gemini 2.5: `reasoning.budgetTokens` or admitted `reasoning.effort`
547
- - Gemini 3 / Gemma 4: `reasoning.effort`
547
+ - Gemini 2.5: `reasoning.budgetTokens` or admitted `reasoning.effort` (not `xhigh`)
548
+ - Gemini 3 / Gemma 4: `reasoning.effort` (not `xhigh`)
549
+ - xAI `grok-4.5`: `reasoning.effort` `'low' | 'high'`
550
+ - xAI `grok-4.6`: `reasoning.effort` `'low' | 'medium' | 'high' | 'xhigh'`
548
551
 
549
552
  Exact model reminders:
550
553