Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .changeset/add-ai-sdk-integration.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/add-vite-plugin.md

This file was deleted.

28 changes: 28 additions & 0 deletions packages/evlog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# evlog

## 2.8.0

### Minor Changes

- [#196](https://github.com/HugoRCD/evlog/pull/196) [`abda28c`](https://github.com/HugoRCD/evlog/commit/abda28cc00b6276a59c2cf9dcfca295f4d7b878c) Thanks [@HugoRCD](https://github.com/HugoRCD)! - Add `evlog/ai` integration for AI SDK v6+ observability.

- `createAILogger(log)` returns an `AILogger` with `wrap()` and `captureEmbed()`
- Model middleware captures token usage, tool calls, finish reason, and streaming metrics
- Supports `generateText`, `streamText`, `generateObject`, `streamObject`, and `ToolLoopAgent`
- Accumulates data across multi-step agent runs (steps, models, tokens)
- String model IDs resolved via `gateway()` with full autocompletion
- Gateway provider parsing extracts actual provider and model name
- Streaming metrics: `msToFirstChunk`, `msToFinish`, `tokensPerSecond`
- Cache tokens (`cacheReadTokens`, `cacheWriteTokens`) and reasoning tokens tracked
- Error capture from failed model calls and stream error chunks
- `captureEmbed()` for embedding calls (`embed`, `embedMany`)
- `ai` is an optional peer dependency

- [#189](https://github.com/HugoRCD/evlog/pull/189) [`d92fb46`](https://github.com/HugoRCD/evlog/commit/d92fb46b2d272dca0de73a0ffedda746304f57b6) Thanks [@HugoRCD](https://github.com/HugoRCD)! - Add `evlog/vite` plugin for build-time DX enhancements in any Vite-based framework.

- Zero-config auto-initialization via Vite `define` (no `initLogger()` needed)
- Build-time `log.debug()` stripping in production builds (default)
- Source location injection (`__source: 'file:line'`) for object-form log calls
- Opt-in auto-imports for `log`, `createEvlogError`, `parseError`
- Client-side logger injection via `transformIndexHtml`
- New `evlog/client` public entrypoint
- Nuxt module gains `strip` and `sourceLocation` options (no breaking changes)

## 2.7.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/evlog/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "evlog",
"version": "2.7.0",
"version": "2.8.0",
"description": "Wide event logging library with structured error handling. Inspired by LoggingSucks.",
"author": "HugoRCD <contact@hrcd.fr>",
"homepage": "https://evlog.dev",
Expand Down