@bivelio/savings-layer 0.4.25 → 0.4.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bivelio/savings-layer",
3
- "version": "0.4.25",
3
+ "version": "0.4.26",
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,13 @@
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
+ "init:ejemplos": "tsx scripts/ejemplos-de-init.ts",
88
96
  "example:licensed": "tsx examples/licensing/licensed.ts",
89
97
  "license:demo": "tsx examples/licensing/demo.ts",
90
98
  "example:revocation": "tsx examples/licensing/revocation.ts",
@@ -104,6 +112,7 @@
104
112
  "corpus:arnes": "tsx corpus/arnes/informe.ts",
105
113
  "corpus:auditar": "tsx corpus/auditoria/auditar.ts",
106
114
  "sombra:corpus": "tsx benchmarks/sombra-corpus.ts",
115
+ "compactacion:banco": "tsx benchmarks/compactacion-de-cola/banco.ts",
107
116
  "sombra:diales": "tsx --env-file-if-exists=.env.bench benchmarks/sombra-diales.ts",
108
117
  "anillo1": "tsx --env-file-if-exists=.env.bench benchmarks/anillo1/arnes.ts",
109
118
  "anillo2": "tsx benchmarks/anillo2/arnes.ts",
@@ -112,11 +121,16 @@
112
121
  "salida": "tsx --env-file-if-exists=.env.bench benchmarks/salida/arnes.ts",
113
122
  "salida:anatomia": "tsx benchmarks/salida/anatomia.ts",
114
123
  "salida:por-clase": "tsx benchmarks/salida/por-clase.ts",
124
+ "esfuerzo": "tsx --env-file-if-exists=.env.bench benchmarks/esfuerzo/banco.ts",
115
125
  "luz-verde": "bash scripts/luz-verde.sh",
116
126
  "sonda:sdk": "BVSALA_DEV_OPEN=1 tsx --env-file-if-exists=.env.bench benchmarks/sdk/sonda.ts",
117
127
  "sbom:tarball": "tsx scripts/sbom.ts",
118
128
  "cache-semantica": "BVSALA_DEV_OPEN=1 tsx benchmarks/cache-semantica/arnes.ts",
119
- "cache-semantica:publicar": "tsx benchmarks/cache-semantica/publicar.ts"
129
+ "cache-semantica:publicar": "tsx benchmarks/cache-semantica/publicar.ts",
130
+ "latencia:gateways": "tsx benchmarks/latencia-gateways/arnes.ts",
131
+ "vigia:conexiones": "tsx benchmarks/latencia-gateways/vigia-conexiones.ts",
132
+ "cache-semantica:calibrada": "BVSALA_DEV_OPEN=1 tsx benchmarks/cache-semantica/calibrada.ts",
133
+ "cache-semantica:simulacion": "tsx benchmarks/cache-semantica/simulacion.ts"
120
134
  },
121
135
  "devDependencies": {
122
136
  "@noble/curves": "^2.2.0",
@@ -129,12 +143,16 @@
129
143
  "tsx": "^4.19.2",
130
144
  "typescript": "^5.7.2",
131
145
  "vitest": "^2.1.8",
146
+ "@ai-sdk/anthropic": "4.0.65",
132
147
  "@ai-sdk/openai": "4.0.78",
133
148
  "@anthropic-ai/sdk": "0.128.0",
134
149
  "@langchain/core": "1.2.13",
150
+ "@langchain/openai": "1.6.0",
135
151
  "@mastra/core": "1.71.0",
136
152
  "ai": "7.0.118",
137
153
  "ai-v6": "npm:ai@6.0.293",
154
+ "@types/express": "5.0.6",
155
+ "express": "5.2.1",
138
156
  "langchain": "1.5.14",
139
157
  "zod": "4.6.5"
140
158
  },