diff --git a/.changeset/add-ai-sdk-integration.md b/.changeset/add-ai-sdk-integration.md deleted file mode 100644 index a83c7791..00000000 --- a/.changeset/add-ai-sdk-integration.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"evlog": minor ---- - -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 diff --git a/.changeset/add-vite-plugin.md b/.changeset/add-vite-plugin.md deleted file mode 100644 index f02c4c2d..00000000 --- a/.changeset/add-vite-plugin.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"evlog": minor ---- - -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) diff --git a/packages/evlog/CHANGELOG.md b/packages/evlog/CHANGELOG.md index 44bf115b..bbccc148 100644 --- a/packages/evlog/CHANGELOG.md +++ b/packages/evlog/CHANGELOG.md @@ -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 diff --git a/packages/evlog/package.json b/packages/evlog/package.json index 53fa548a..f42aa019 100644 --- a/packages/evlog/package.json +++ b/packages/evlog/package.json @@ -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 ", "homepage": "https://evlog.dev",