@bivelio/savings-layer 0.4.25 → 0.4.28
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/README.md +328 -23
- package/dist/adapters/ai-sdk.js +73 -73
- package/dist/adapters/anthropic-sdk.js +69 -67
- package/dist/adapters/langchain.js +55 -52
- package/dist/adapters/mastra.js +65 -65
- package/dist/gateway/bin.js +906 -623
- package/dist/index.d.ts +928 -11
- package/dist/index.js +1398 -1004
- package/docs/terminales/README.md +59 -11
- package/docs/terminales/aider.md +74 -0
- package/docs/terminales/continue.md +47 -0
- package/docs/terminales/copilot.md +114 -0
- package/docs/terminales/kilo.md +54 -31
- package/docs/terminales/no-soportados.md +41 -0
- package/docs/terminales/opencode.md +33 -11
- package/package.json +24 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bivelio/savings-layer",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.28",
|
|
4
4
|
"description": "The savings layer for your LLM bill: a library inside your code that lets through only what has to be paid for and returns a SavingsReport per call, measured with your provider's own meter and kept apart from estimates. Commercial license, paid per seat, commission only on measured savings. Your prompts never leave your infrastructure.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"llm",
|
|
@@ -76,7 +76,8 @@
|
|
|
76
76
|
"build:all": "pnpm run build:packages && pnpm run build:services && pnpm run build",
|
|
77
77
|
"typecheck": "tsc --noEmit",
|
|
78
78
|
"typecheck:packages": "pnpm -r --filter=./packages/* --filter=./services/* typecheck",
|
|
79
|
-
"typecheck:all": "pnpm run typecheck && pnpm run typecheck:packages",
|
|
79
|
+
"typecheck:all": "pnpm run typecheck && pnpm run typecheck:packages && pnpm run typecheck:ejemplos",
|
|
80
|
+
"typecheck:ejemplos": "tsc -p examples/stacks/tsconfig.json",
|
|
80
81
|
"test": "vitest run",
|
|
81
82
|
"test:watch": "vitest",
|
|
82
83
|
"lint": "tsc --noEmit",
|
|
@@ -85,6 +86,14 @@
|
|
|
85
86
|
"example:serialization": "BVSALA_DEV_OPEN=1 tsx examples/serialization/format-selector.ts",
|
|
86
87
|
"example:otel": "BVSALA_DEV_OPEN=1 tsx examples/exporters/otel.ts",
|
|
87
88
|
"example:focus": "BVSALA_DEV_OPEN=1 tsx examples/exporters/focus.ts",
|
|
89
|
+
"example:nextjs": "BVSALA_DEV_OPEN=1 tsx examples/stacks/nextjs/run.ts",
|
|
90
|
+
"example:express": "BVSALA_DEV_OPEN=1 tsx examples/stacks/express/server.ts",
|
|
91
|
+
"example:ai-sdk": "BVSALA_DEV_OPEN=1 tsx examples/stacks/ai-sdk/bivelio-check.ts",
|
|
92
|
+
"example:mastra": "BVSALA_DEV_OPEN=1 tsx examples/stacks/mastra/bivelio-check.ts",
|
|
93
|
+
"example:langchain": "BVSALA_DEV_OPEN=1 tsx examples/stacks/langchain/bivelio-check.ts",
|
|
94
|
+
"example:anthropic-sdk": "BVSALA_DEV_OPEN=1 tsx examples/stacks/anthropic-sdk/bivelio-check.ts",
|
|
95
|
+
"example:litellm": "BVSALA_DEV_OPEN=1 tsx examples/litellm/check.ts",
|
|
96
|
+
"init:ejemplos": "tsx scripts/ejemplos-de-init.ts",
|
|
88
97
|
"example:licensed": "tsx examples/licensing/licensed.ts",
|
|
89
98
|
"license:demo": "tsx examples/licensing/demo.ts",
|
|
90
99
|
"example:revocation": "tsx examples/licensing/revocation.ts",
|
|
@@ -104,6 +113,7 @@
|
|
|
104
113
|
"corpus:arnes": "tsx corpus/arnes/informe.ts",
|
|
105
114
|
"corpus:auditar": "tsx corpus/auditoria/auditar.ts",
|
|
106
115
|
"sombra:corpus": "tsx benchmarks/sombra-corpus.ts",
|
|
116
|
+
"compactacion:banco": "tsx benchmarks/compactacion-de-cola/banco.ts",
|
|
107
117
|
"sombra:diales": "tsx --env-file-if-exists=.env.bench benchmarks/sombra-diales.ts",
|
|
108
118
|
"anillo1": "tsx --env-file-if-exists=.env.bench benchmarks/anillo1/arnes.ts",
|
|
109
119
|
"anillo2": "tsx benchmarks/anillo2/arnes.ts",
|
|
@@ -112,11 +122,18 @@
|
|
|
112
122
|
"salida": "tsx --env-file-if-exists=.env.bench benchmarks/salida/arnes.ts",
|
|
113
123
|
"salida:anatomia": "tsx benchmarks/salida/anatomia.ts",
|
|
114
124
|
"salida:por-clase": "tsx benchmarks/salida/por-clase.ts",
|
|
125
|
+
"esfuerzo": "tsx --env-file-if-exists=.env.bench benchmarks/esfuerzo/banco.ts",
|
|
115
126
|
"luz-verde": "bash scripts/luz-verde.sh",
|
|
116
127
|
"sonda:sdk": "BVSALA_DEV_OPEN=1 tsx --env-file-if-exists=.env.bench benchmarks/sdk/sonda.ts",
|
|
117
128
|
"sbom:tarball": "tsx scripts/sbom.ts",
|
|
118
129
|
"cache-semantica": "BVSALA_DEV_OPEN=1 tsx benchmarks/cache-semantica/arnes.ts",
|
|
119
|
-
"cache-semantica:publicar": "tsx benchmarks/cache-semantica/publicar.ts"
|
|
130
|
+
"cache-semantica:publicar": "tsx benchmarks/cache-semantica/publicar.ts",
|
|
131
|
+
"latencia:gateways": "tsx benchmarks/latencia-gateways/arnes.ts",
|
|
132
|
+
"vigia:conexiones": "tsx benchmarks/latencia-gateways/vigia-conexiones.ts",
|
|
133
|
+
"litellm:e2e": "tsx benchmarks/delante-de-litellm/e2e.ts",
|
|
134
|
+
"catalogo:contraste": "tsx scripts/contraste-catalogo.ts",
|
|
135
|
+
"cache-semantica:calibrada": "BVSALA_DEV_OPEN=1 tsx benchmarks/cache-semantica/calibrada.ts",
|
|
136
|
+
"cache-semantica:simulacion": "tsx benchmarks/cache-semantica/simulacion.ts"
|
|
120
137
|
},
|
|
121
138
|
"devDependencies": {
|
|
122
139
|
"@noble/curves": "^2.2.0",
|
|
@@ -129,12 +146,16 @@
|
|
|
129
146
|
"tsx": "^4.19.2",
|
|
130
147
|
"typescript": "^5.7.2",
|
|
131
148
|
"vitest": "^2.1.8",
|
|
149
|
+
"@ai-sdk/anthropic": "4.0.65",
|
|
132
150
|
"@ai-sdk/openai": "4.0.78",
|
|
133
151
|
"@anthropic-ai/sdk": "0.128.0",
|
|
134
152
|
"@langchain/core": "1.2.13",
|
|
153
|
+
"@langchain/openai": "1.6.0",
|
|
135
154
|
"@mastra/core": "1.71.0",
|
|
136
155
|
"ai": "7.0.118",
|
|
137
156
|
"ai-v6": "npm:ai@6.0.293",
|
|
157
|
+
"@types/express": "5.0.6",
|
|
158
|
+
"express": "5.2.1",
|
|
138
159
|
"langchain": "1.5.14",
|
|
139
160
|
"zod": "4.6.5"
|
|
140
161
|
},
|