Skip to content

chore(repo): version packages#296

Merged
HugoRCD merged 1 commit intomainfrom
changeset-release/main
Apr 24, 2026
Merged

chore(repo): version packages#296
HugoRCD merged 1 commit intomainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Apr 20, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

evlog@2.14.0

Minor Changes

  • #295 aa9984f Thanks @HugoRCD! - Expose AI SDK execution metadata as a public API on AILogger. Three new methods let app code read the same data that gets attached to wide events: getMetadata() returns an immutable snapshot of the run (model, provider, tokens, calls, steps, tool calls, cost, finish reason, embeddings), getEstimatedCost() returns the dollar cost computed from the configured pricing map, and onUpdate(cb) subscribes to incremental snapshots emitted on every step, embedding, error, and integration finish (returns an unsubscribe function). New types AIMetadata (alias for AIEventData) and AIMetadataListener are exported. model and provider on AIMetadata are now optional to reflect early-snapshot reality (e.g. embedding-only runs).

  • #302 7060006 Thanks @HugoRCD! - Add first-class audit logs as a thin layer over existing evlog primitives. Audit is not a parallel system: it is a typed audit field on the wide event plus a few opt-in helpers and drain wrappers. Companies already running evlog can enable audit logs by adding 1 enricher + 1 drain wrapper + log.audit(), with zero new sub-exports.

    New API on the main evlog entrypoint:

    • AuditFields reserved on BaseWideEvent (action, actor, target, outcome, reason, changes, causationId, correlationId, version, idempotencyKey, context, signature, prevHash, hash) plus AUDIT_SCHEMA_VERSION.
    • log.audit(fields) and log.audit.deny(reason, fields) on RequestLogger and the return value of createLogger(). Sugar over log.set({ audit }) that also force-keeps the event through tail sampling.
    • Standalone audit(fields) for jobs / scripts / CLIs.
    • withAudit({ action, target, actor? })(fn) higher-order wrapper that auto-emits success / failure / denied based on the wrapped function's outcome (with AuditDeniedError for AuthZ refusals).
    • defineAuditAction(name, opts) typed action registry, auditDiff(before, after) redact-aware JSON Patch helper, mockAudit() test utility (expectIncludes, expectActionCount, clear, restore).
    • auditEnricher({ tenantId?, betterAuth? }) enricher that auto-fills event.audit.context (requestId, traceId, ip, userAgent, tenantId) and optionally bridges actor from a session.
    • auditOnly(drain, { await? }) drain wrapper that filters to events with event.audit set, optionally awaiting writes for crash safety. signed(drain, { strategy: 'hmac' | 'hash-chain', ... }) generic tamper-evidence wrapper with pluggable state.{load,save} for hash chains.
    • auditRedactPreset strict PII preset composable with existing RedactConfig.

    Audit events are always force-kept by tail sampling and get a deterministic idempotencyKey derived from action + actor + target + timestamp so retries are safe across drains. Schema is OTEL-compatible and the actor.type === 'agent' slot carries model, tools, reason, promptId for AI agent auditing. No new sub-exports were added.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
evlog-docs Ready Ready Preview, Comment, Open in v0 Apr 24, 2026 4:28pm
just-use-evlog Ready Ready Preview, Comment Apr 24, 2026 4:28pm

@github-actions github-actions Bot force-pushed the changeset-release/main branch from 7384a59 to 5c9f906 Compare April 24, 2026 16:25
@HugoRCD HugoRCD merged commit e33ba92 into main Apr 24, 2026
3 checks passed
@HugoRCD HugoRCD deleted the changeset-release/main branch April 24, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant