diff --git a/.changeset/ai-sdk-v7-compat.md b/.changeset/ai-sdk-v7-compat.md deleted file mode 100644 index 555c18ed..00000000 --- a/.changeset/ai-sdk-v7-compat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"evlog": minor ---- - -Add AI SDK v7 compatibility for `evlog/ai`. `createEvlogIntegration()` now implements both v6 hooks (`onToolCallFinish`, `onFinish`) and v7 hooks (`onToolExecutionEnd`, `onEnd`, `onEmbedEnd`, `onAbort`, `onError`). On v7, embeddings are auto-captured via `onEmbedEnd` when telemetry is enabled, and abort/error lifecycle events are written to the wide event. Pass the integration via `telemetry.integrations` (v7) or `experimental_telemetry.integrations` (v6). Exports a new `EvlogTelemetry` type. diff --git a/.changeset/eve-integration.md b/.changeset/eve-integration.md deleted file mode 100644 index 00102a9e..00000000 --- a/.changeset/eve-integration.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"evlog": minor ---- - -Add `evlog/eve` with `defineEvlogHook()` for one wide event per agent turn and `useLogger()` in tools (AsyncLocalStorage on `turn.started`; pass `ctx` only when ALS is unavailable) — full drain, enrich, and tail-sampling pipeline. Tracks tool durations (including post-approval resumes), session context carry-over with LRU eviction (`maxSessions`), slim `eve.phase` / `eve.sessionTurns` fields, and compact HITL `approval`. The turn logger is bound via AsyncLocalStorage on `turn.started`; pass `ctx` when ALS is unavailable. Turn state is shared via `globalThis` when eve bundles hooks and tools separately. `finalizeAudit()` no longer crashes on partial `audit` objects missing `actor` fields. Fixes `_auditForceKeep` leaking on force-kept events and skips Nitro runtime probes on Next.js hosts. diff --git a/.changeset/fix-elysia-workers-asynclocalstorage.md b/.changeset/fix-elysia-workers-asynclocalstorage.md deleted file mode 100644 index 2fef6f7e..00000000 --- a/.changeset/fix-elysia-workers-asynclocalstorage.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"evlog": patch ---- - -# fix(elysia): support Cloudflare Workers without AsyncLocalStorage.enterWith - -Cloudflare Workers omit native `AsyncLocalStorage.enterWith()`. The Elysia integration now installs a small polyfill on load so `useLogger()` keeps working in typical `wrangler dev` flows. `{ log }` from derive remains the safest option when multiple requests may interleave in the same isolate. - -Closes #394 diff --git a/.changeset/fix-nitro-config-replace-comments.md b/.changeset/fix-nitro-config-replace-comments.md deleted file mode 100644 index 36898811..00000000 --- a/.changeset/fix-nitro-config-replace-comments.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"evlog": patch ---- - -# fix(nitro): avoid comment collision when inlining config with `*/` globs - -Nitro's textual `nitro.options.replace` substitution was also rewriting JSDoc that mentioned the inline config token. Route globs containing `*/` (for example `/api/graphs/**/changes`) could terminate block comments early and break production builds with Rolldown parse errors. - -Closes #397 diff --git a/.changeset/fix-pretty-dev-timestamp.md b/.changeset/fix-pretty-dev-timestamp.md deleted file mode 100644 index dbbe8946..00000000 --- a/.changeset/fix-pretty-dev-timestamp.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"evlog": patch ---- - -Fix dev pretty output so structured wide events include a timestamp, matching tagged logs. - -Closes #396 diff --git a/.changeset/stream-eve-proxy-fix.md b/.changeset/stream-eve-proxy-fix.md deleted file mode 100644 index c790b25a..00000000 --- a/.changeset/stream-eve-proxy-fix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"evlog": patch ---- - -Fix stream server mis-detection when co-located with eve dev: return 404 (not SSE 200) for non-root GET paths, and re-bind the turn logger on `actions.requested` so tool handlers can resolve `useLogger()`. diff --git a/examples/community-adapter-skeleton/CHANGELOG.md b/examples/community-adapter-skeleton/CHANGELOG.md index 2e8fb370..1f85934a 100644 --- a/examples/community-adapter-skeleton/CHANGELOG.md +++ b/examples/community-adapter-skeleton/CHANGELOG.md @@ -1,5 +1,12 @@ # evlog-community-adapter-skeleton +## 6.0.0 + +### Patch Changes + +- Updated dependencies [[`f5df8ff`](https://github.com/HugoRCD/evlog/commit/f5df8ffd6a564d3d807caa85838dd479102eee25), [`b1d04d0`](https://github.com/HugoRCD/evlog/commit/b1d04d0ec4d22af3102bc13c252112091fffc8c4), [`a024f4c`](https://github.com/HugoRCD/evlog/commit/a024f4ce8adc5bf2857fc2d077dfeae4827ef519), [`bf5705b`](https://github.com/HugoRCD/evlog/commit/bf5705bcef3f6be9fb2d0a605138cc77a2284058), [`4f80f39`](https://github.com/HugoRCD/evlog/commit/4f80f399bddc832af4ce7e610c9ec5425dde8bd2), [`b1d04d0`](https://github.com/HugoRCD/evlog/commit/b1d04d0ec4d22af3102bc13c252112091fffc8c4)]: + - evlog@2.20.0 + ## 5.0.2 ### Patch Changes diff --git a/examples/community-adapter-skeleton/package.json b/examples/community-adapter-skeleton/package.json index 3b7f3c52..1e9a6078 100644 --- a/examples/community-adapter-skeleton/package.json +++ b/examples/community-adapter-skeleton/package.json @@ -1,6 +1,6 @@ { "name": "evlog-community-adapter-skeleton", - "version": "5.0.2", + "version": "6.0.0", "description": "Reference skeleton for a community evlog drain adapter built on defineHttpDrain.", "private": true, "type": "module", diff --git a/examples/community-enricher-skeleton/CHANGELOG.md b/examples/community-enricher-skeleton/CHANGELOG.md index c80b87f8..4dcda406 100644 --- a/examples/community-enricher-skeleton/CHANGELOG.md +++ b/examples/community-enricher-skeleton/CHANGELOG.md @@ -1,5 +1,12 @@ # evlog-community-enricher-skeleton +## 6.0.0 + +### Patch Changes + +- Updated dependencies [[`f5df8ff`](https://github.com/HugoRCD/evlog/commit/f5df8ffd6a564d3d807caa85838dd479102eee25), [`b1d04d0`](https://github.com/HugoRCD/evlog/commit/b1d04d0ec4d22af3102bc13c252112091fffc8c4), [`a024f4c`](https://github.com/HugoRCD/evlog/commit/a024f4ce8adc5bf2857fc2d077dfeae4827ef519), [`bf5705b`](https://github.com/HugoRCD/evlog/commit/bf5705bcef3f6be9fb2d0a605138cc77a2284058), [`4f80f39`](https://github.com/HugoRCD/evlog/commit/4f80f399bddc832af4ce7e610c9ec5425dde8bd2), [`b1d04d0`](https://github.com/HugoRCD/evlog/commit/b1d04d0ec4d22af3102bc13c252112091fffc8c4)]: + - evlog@2.20.0 + ## 5.0.2 ### Patch Changes diff --git a/examples/community-enricher-skeleton/package.json b/examples/community-enricher-skeleton/package.json index 3a1f7e13..4df0e9e3 100644 --- a/examples/community-enricher-skeleton/package.json +++ b/examples/community-enricher-skeleton/package.json @@ -1,6 +1,6 @@ { "name": "evlog-community-enricher-skeleton", - "version": "5.0.2", + "version": "6.0.0", "description": "Reference skeleton for a community evlog enricher built on defineEnricher.", "private": true, "type": "module", diff --git a/examples/community-framework-skeleton/CHANGELOG.md b/examples/community-framework-skeleton/CHANGELOG.md index 2dc26fab..6471d7c1 100644 --- a/examples/community-framework-skeleton/CHANGELOG.md +++ b/examples/community-framework-skeleton/CHANGELOG.md @@ -1,5 +1,12 @@ # evlog-community-framework-skeleton +## 6.0.0 + +### Patch Changes + +- Updated dependencies [[`f5df8ff`](https://github.com/HugoRCD/evlog/commit/f5df8ffd6a564d3d807caa85838dd479102eee25), [`b1d04d0`](https://github.com/HugoRCD/evlog/commit/b1d04d0ec4d22af3102bc13c252112091fffc8c4), [`a024f4c`](https://github.com/HugoRCD/evlog/commit/a024f4ce8adc5bf2857fc2d077dfeae4827ef519), [`bf5705b`](https://github.com/HugoRCD/evlog/commit/bf5705bcef3f6be9fb2d0a605138cc77a2284058), [`4f80f39`](https://github.com/HugoRCD/evlog/commit/4f80f399bddc832af4ce7e610c9ec5425dde8bd2), [`b1d04d0`](https://github.com/HugoRCD/evlog/commit/b1d04d0ec4d22af3102bc13c252112091fffc8c4)]: + - evlog@2.20.0 + ## 5.0.2 ### Patch Changes diff --git a/examples/community-framework-skeleton/package.json b/examples/community-framework-skeleton/package.json index e01b6719..7b206fb3 100644 --- a/examples/community-framework-skeleton/package.json +++ b/examples/community-framework-skeleton/package.json @@ -1,6 +1,6 @@ { "name": "evlog-community-framework-skeleton", - "version": "5.0.2", + "version": "6.0.0", "description": "Reference skeleton for a community evlog framework integration built on defineFrameworkIntegration.", "private": true, "type": "module", diff --git a/packages/evlog/CHANGELOG.md b/packages/evlog/CHANGELOG.md index eb53899a..f3612528 100644 --- a/packages/evlog/CHANGELOG.md +++ b/packages/evlog/CHANGELOG.md @@ -1,5 +1,33 @@ # evlog +## 2.20.0 + +### Minor Changes + +- [#404](https://github.com/HugoRCD/evlog/pull/404) [`f5df8ff`](https://github.com/HugoRCD/evlog/commit/f5df8ffd6a564d3d807caa85838dd479102eee25) Thanks [@HugoRCD](https://github.com/HugoRCD)! - Add AI SDK v7 compatibility for `evlog/ai`. `createEvlogIntegration()` now implements both v6 hooks (`onToolCallFinish`, `onFinish`) and v7 hooks (`onToolExecutionEnd`, `onEnd`, `onEmbedEnd`, `onAbort`, `onError`). On v7, embeddings are auto-captured via `onEmbedEnd` when telemetry is enabled, and abort/error lifecycle events are written to the wide event. Pass the integration via `telemetry.integrations` (v7) or `experimental_telemetry.integrations` (v6). Exports a new `EvlogTelemetry` type. + +- [#399](https://github.com/HugoRCD/evlog/pull/399) [`b1d04d0`](https://github.com/HugoRCD/evlog/commit/b1d04d0ec4d22af3102bc13c252112091fffc8c4) Thanks [@HugoRCD](https://github.com/HugoRCD)! - Add `evlog/eve` with `defineEvlogHook()` for one wide event per agent turn and `useLogger()` in tools (AsyncLocalStorage on `turn.started`; pass `ctx` only when ALS is unavailable) — full drain, enrich, and tail-sampling pipeline. Tracks tool durations (including post-approval resumes), session context carry-over with LRU eviction (`maxSessions`), slim `eve.phase` / `eve.sessionTurns` fields, and compact HITL `approval`. The turn logger is bound via AsyncLocalStorage on `turn.started`; pass `ctx` when ALS is unavailable. Turn state is shared via `globalThis` when eve bundles hooks and tools separately. `finalizeAudit()` no longer crashes on partial `audit` objects missing `actor` fields. Fixes `_auditForceKeep` leaking on force-kept events and skips Nitro runtime probes on Next.js hosts. + +### Patch Changes + +- [#395](https://github.com/HugoRCD/evlog/pull/395) [`a024f4c`](https://github.com/HugoRCD/evlog/commit/a024f4ce8adc5bf2857fc2d077dfeae4827ef519) Thanks [@HugoRCD](https://github.com/HugoRCD)! - # fix(elysia): support Cloudflare Workers without AsyncLocalStorage.enterWith + + Cloudflare Workers omit native `AsyncLocalStorage.enterWith()`. The Elysia integration now installs a small polyfill on load so `useLogger()` keeps working in typical `wrangler dev` flows. `{ log }` from derive remains the safest option when multiple requests may interleave in the same isolate. + + Closes [#394](https://github.com/HugoRCD/evlog/issues/394) + +- [#401](https://github.com/HugoRCD/evlog/pull/401) [`bf5705b`](https://github.com/HugoRCD/evlog/commit/bf5705bcef3f6be9fb2d0a605138cc77a2284058) Thanks [@HugoRCD](https://github.com/HugoRCD)! - # fix(nitro): avoid comment collision when inlining config with `*/` globs + + Nitro's textual `nitro.options.replace` substitution was also rewriting JSDoc that mentioned the inline config token. Route globs containing `*/` (for example `/api/graphs/**/changes`) could terminate block comments early and break production builds with Rolldown parse errors. + + Closes [#397](https://github.com/HugoRCD/evlog/issues/397) + +- [#402](https://github.com/HugoRCD/evlog/pull/402) [`4f80f39`](https://github.com/HugoRCD/evlog/commit/4f80f399bddc832af4ce7e610c9ec5425dde8bd2) Thanks [@HugoRCD](https://github.com/HugoRCD)! - Fix dev pretty output so structured wide events include a timestamp, matching tagged logs. + + Closes [#396](https://github.com/HugoRCD/evlog/issues/396) + +- [#399](https://github.com/HugoRCD/evlog/pull/399) [`b1d04d0`](https://github.com/HugoRCD/evlog/commit/b1d04d0ec4d22af3102bc13c252112091fffc8c4) Thanks [@HugoRCD](https://github.com/HugoRCD)! - Fix stream server mis-detection when co-located with eve dev: return 404 (not SSE 200) for non-root GET paths, and re-bind the turn logger on `actions.requested` so tool handlers can resolve `useLogger()`. + ## 2.19.2 ### Patch Changes diff --git a/packages/evlog/package.json b/packages/evlog/package.json index d2a30808..fbde74b2 100644 --- a/packages/evlog/package.json +++ b/packages/evlog/package.json @@ -1,6 +1,6 @@ { "name": "evlog", - "version": "2.19.2", + "version": "2.20.0", "description": "Modern TypeScript logger — simple logs, wide events, structured errors. Built for scripts, libraries, jobs, edge, and HTTP. One drain pipeline everywhere.", "author": "HugoRCD ", "homepage": "https://evlog.dev",