Packages

@flue/cli

2.3.1 · 18 Nov 2026Apache-2.0217.3k / weekRepositoryHomepagenpmAtom feed

Your version

0.5.3

12 May 2026Where it was published

0.11.1 is the newest release of 0.5.x.

In short

1 new

Release note

New Features

  • observe(...) exported from @flue/sdk/app for isolate-global subscriptions to the Flue event stream. Cross-cutting integrations — error reporting, log forwarding, metrics — can now tap every Flue event in the current isolate from a single module-scoped call, without per-agent or per-context wiring. The subscriber receives the fully decorated FlueEvent (with runId, eventIndex, timestamp, and tree-correlation fields) and the originating FlueContext. On the Cloudflare target each Durable Object is its own V8 isolate, so app.ts (and thus the observe registration) is evaluated per-DO — each isolate captures its own events independently, which is the intended shape. See examples/sentry/ for a fully documented Sentry error-reporting integration built on top of this hook.

    // app.ts
    import { flue, observe } from '@flue/sdk/app';
    import * as Sentry from '@sentry/node';
    
    Sentry.init({ dsn: process.env.SENTRY_DSN });
    
    observe((event, ctx) => {
      if (event.type === 'run_end' && event.isError) {
        Sentry.captureException(event.error);
      }
    });

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.