@gullabs/any-llm 0.2.0 → 0.4.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/LICENSE +1 -1
- package/README.md +15 -8
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -5
package/LICENSE
CHANGED
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
comment syntax for the file format in please. Also attach a copy of
|
|
177
177
|
this License to your work.
|
|
178
178
|
|
|
179
|
-
Copyright 2026
|
|
179
|
+
Copyright 2026 Gul Labs
|
|
180
180
|
|
|
181
181
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
182
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -8,27 +8,34 @@ The default, batteries-included any-llm client package.
|
|
|
8
8
|
pnpm add @gullabs/any-llm
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
This installs the core engine, Gemini adapter, `@google/genai
|
|
11
|
+
This installs the core engine, Gemini adapter, and `@google/genai`.
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
createClient,
|
|
18
|
+
defineCallSite,
|
|
19
|
+
geminiAdapter,
|
|
20
|
+
geminiPricingSource,
|
|
21
|
+
} from '@gullabs/any-llm'
|
|
17
22
|
|
|
18
23
|
const client = createClient({
|
|
19
24
|
adapters: [geminiAdapter()],
|
|
20
25
|
pricing: geminiPricingSource(),
|
|
21
26
|
})
|
|
22
27
|
|
|
23
|
-
const Summary = z.object({
|
|
24
|
-
title: z.string(),
|
|
25
|
-
bullets: z.array(z.string()),
|
|
26
|
-
})
|
|
27
|
-
|
|
28
28
|
const summarize = defineCallSite({
|
|
29
29
|
id: 'summarize',
|
|
30
30
|
model: 'gemini-2.5-flash',
|
|
31
|
-
|
|
31
|
+
jsonSchema: {
|
|
32
|
+
type: 'object',
|
|
33
|
+
properties: {
|
|
34
|
+
title: { type: 'string' },
|
|
35
|
+
bullets: { type: 'array', items: { type: 'string' } },
|
|
36
|
+
},
|
|
37
|
+
required: ['title', 'bullets'],
|
|
38
|
+
},
|
|
32
39
|
userTemplate: 'Summarize this:\n\n{{text}}',
|
|
33
40
|
})
|
|
34
41
|
|
package/dist/index.cjs
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
var core = require('@gullabs/core');
|
|
4
4
|
var google = require('@gullabs/google');
|
|
5
|
-
var zod = require('zod');
|
|
6
5
|
|
|
7
6
|
// src/index.ts
|
|
8
|
-
var ANY_LLM_VERSION = "0.1.0";
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
// package.json
|
|
9
|
+
var version = "0.4.0";
|
|
10
|
+
|
|
11
|
+
// src/index.ts
|
|
12
|
+
var ANY_LLM_VERSION = version;
|
|
13
|
+
|
|
14
14
|
exports.ANY_LLM_VERSION = ANY_LLM_VERSION;
|
|
15
15
|
Object.keys(core).forEach(function (k) {
|
|
16
16
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"
|
|
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.4.0\",\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 ],\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.d.cts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
export * from '@gullabs/core';
|
|
2
2
|
export * from '@gullabs/google';
|
|
3
|
-
export { ZodType, ZodTypeAny, z } from 'zod';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* @gullabs/any-llm — batteries-included public entrypoint.
|
|
7
6
|
*
|
|
8
7
|
* This package is the default client install path. It re-exports the core
|
|
9
|
-
* engine and Gemini adapter while depending on the Gemini SDK
|
|
10
|
-
*
|
|
8
|
+
* engine and Gemini adapter while depending on the Gemini SDK for a one-package
|
|
9
|
+
* setup.
|
|
11
10
|
*
|
|
12
11
|
* @module
|
|
13
12
|
*/
|
|
14
13
|
|
|
15
|
-
/** Library version
|
|
16
|
-
declare const ANY_LLM_VERSION
|
|
14
|
+
/** Library version, sourced from package.json at build time. */
|
|
15
|
+
declare const ANY_LLM_VERSION: string;
|
|
17
16
|
|
|
18
17
|
export { ANY_LLM_VERSION };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
export * from '@gullabs/core';
|
|
2
2
|
export * from '@gullabs/google';
|
|
3
|
-
export { ZodType, ZodTypeAny, z } from 'zod';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* @gullabs/any-llm — batteries-included public entrypoint.
|
|
7
6
|
*
|
|
8
7
|
* This package is the default client install path. It re-exports the core
|
|
9
|
-
* engine and Gemini adapter while depending on the Gemini SDK
|
|
10
|
-
*
|
|
8
|
+
* engine and Gemini adapter while depending on the Gemini SDK for a one-package
|
|
9
|
+
* setup.
|
|
11
10
|
*
|
|
12
11
|
* @module
|
|
13
12
|
*/
|
|
14
13
|
|
|
15
|
-
/** Library version
|
|
16
|
-
declare const ANY_LLM_VERSION
|
|
14
|
+
/** Library version, sourced from package.json at build time. */
|
|
15
|
+
declare const ANY_LLM_VERSION: string;
|
|
17
16
|
|
|
18
17
|
export { ANY_LLM_VERSION };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export * from '@gullabs/core';
|
|
2
2
|
export * from '@gullabs/google';
|
|
3
|
-
export { z } from 'zod';
|
|
4
3
|
|
|
5
4
|
// src/index.ts
|
|
6
|
-
|
|
5
|
+
|
|
6
|
+
// package.json
|
|
7
|
+
var version = "0.4.0";
|
|
8
|
+
|
|
9
|
+
// src/index.ts
|
|
10
|
+
var ANY_LLM_VERSION = version;
|
|
7
11
|
|
|
8
12
|
export { ANY_LLM_VERSION };
|
|
9
13
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"
|
|
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.4.0\",\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 ],\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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gullabs/any-llm",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Batteries-included any-llm client for Gemini: engine, adapter, Google SDK
|
|
3
|
+
"version": "0.4.0",
|
|
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": {
|
|
@@ -24,9 +24,8 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@google/genai": "^1.45.0 || ^2",
|
|
27
|
-
"
|
|
28
|
-
"@gullabs/
|
|
29
|
-
"@gullabs/google": "0.2.0"
|
|
27
|
+
"@gullabs/core": "0.4.0",
|
|
28
|
+
"@gullabs/google": "0.4.0"
|
|
30
29
|
},
|
|
31
30
|
"engines": {
|
|
32
31
|
"node": ">=20.9.0"
|