• v0.2.0 61268f870f

    repi released this 2026-02-10 15:37:56 +00:00 | 8 commits to main since this release

    What's New

    AgentLens is now a production SaaS with user accounts, API key authentication, and Stripe-powered subscription billing.

    User Authentication

    • Email + password registration and login (NextAuth v5)
    • JWT sessions with bcrypt password hashing (12 rounds)
    • Protected dashboard — login required, each user sees only their own traces
    • Middleware-enforced route protection

    API Key System

    • Generate API keys from the dashboard (al_ prefix, SHA-256 hashed)
    • One-time plaintext display on creation with copy-to-clipboard
    • Revoke keys instantly from the dashboard
    • Every trace ingestion request validated against API key

    Subscription Tiers & Rate Limiting

    Tier Price Sessions
    Free $0 20 / day
    Starter $5/mo 1,000 / month
    Pro $20/mo 100,000 / month
    • Rate limiting enforced per tier on trace ingestion
    • Usage tracking with automatic reset on billing cycle

    Stripe Billing Integration

    • Checkout sessions for tier upgrades
    • Webhook handling for subscription lifecycle (create, update, cancel, invoice)
    • Self-service billing portal for subscription management
    • Security hardened: no secrets exposed to client, webhook signature verification

    Dashboard Scoping

    • All API endpoints scoped to authenticated user
    • Traces, decisions, stats, and SSE streams filtered by ownership
    • Settings page rewritten with account info, subscription tiers, and billing UI

    Security

    • Stripe secret key never exposed to client
    • stripeCustomerId sanitized from API responses
    • Webhook error logs scrubbed of sensitive data
    • API key comparison via SHA-256 hash (not plaintext)

    Full Changelog: https://gitea.repi.fun/repi/agentlens/compare/v0.1.6...v0.2.0

    Downloads
  • v0.1.2 bdd6362c1a

    repi released this 2026-02-10 11:45:15 +00:00 | 13 commits to main since this release

    What's Changed

    Bug Fix: Duplicate Trace ID Handling

    Fixed 409 errors caused by intermediate SDK flushes sending duplicate trace IDs to the ingestion API.

    Changes:

    • apps/web/src/app/api/traces/route.ts — Changed INSERT to UPSERT for trace ingestion, so duplicate trace IDs are updated instead of rejected
    • packages/sdk-ts/src/transport.ts — Added buffer dedup by trace ID in add() method to prevent redundant payloads

    Version Bumps

    • agentlens-sdk → 0.1.2 (npm)
    • opencode-agentlens → 0.1.2 (npm)
    • vectry-agentlens → 0.1.2 (PyPI)
    Downloads
  • v0.1.1 ff5bf05a47

    repi released this 2026-02-10 11:26:08 +00:00 | 14 commits to main since this release

    What's Changed

    Bug Fixes

    • OpenCode Plugin: Fixed event property shape mismatches that prevented traces from being captured
      • session.created / session.deleted now correctly reads properties.info.id (Session object) instead of properties.id
      • session.diff now reads properties.diff as FileDiff[] array instead of string
      • file.edited now reads properties.file instead of properties.filePath
    • Dashboard Navigation: Fixed highlight staying on "Traces" when visiting Decisions or Settings pages
    • Plugin Resilience: Added auto-session creation fallback from tool.execute.before and chat.message hooks
    • Plugin Flush: Added flushSession() for intermediate trace sends on session.idle to prevent data loss

    New Features

    • Docs Syntax Highlighting: All 10 documentation pages now use Shiki with github-dark theme for proper code highlighting
    • Copy-to-Clipboard: Every code block in docs has a one-click copy button
    • README: Updated with TypeScript SDK and OpenCode plugin sections

    Published Packages

    • opencode-agentlens@0.1.1 on npm
    • agentlens-sdk@0.1.0 on npm (unchanged)
    • vectry-agentlens@0.1.1 on PyPI

    Full Changelog

    https://gitea.repi.fun/repi/agentlens/compare/v0.1.0...v0.1.1

    Downloads
  • v0.1.0 98bfa968ce

    repi released this 2026-02-10 01:52:20 +00:00 | 27 commits to main since this release

    AgentLens v0.1.0

    Agent observability that traces decisions, not just API calls. See why your AI agents chose what they chose.

    Install

    pip install vectry-agentlens
    

    Quick Start

    import agentlens
    
    agentlens.init(api_key="your-key", endpoint="https://agentlens.vectry.tech")
    
    with agentlens.trace("my-agent-task"):
        agentlens.log_decision(
            type="TOOL_SELECTION",
            chosen={"name": "search_web", "confidence": 0.92},
            alternatives=[{"name": "search_docs", "reason_rejected": "query too broad"}],
            reasoning="User query requires real-time data"
        )
    

    What's Included

    Python SDK

    • Decision tracing with 7 decision types (TOOL_SELECTION, ROUTING, PLANNING, RETRY, ESCALATION, MEMORY_RETRIEVAL, CUSTOM)
    • OpenAI auto-instrumentation: wrap_openai(client)
    • LangChain callback handler
    • Nested trace contexts for multi-agent workflows
    • Async batch transport with automatic flushing

    Dashboard

    • Real-time trace streaming via SSE
    • Decision tree visualization (React Flow + Dagre)
    • Analytics: token usage, cost tracking, duration timelines
    • Advanced filtering: status, tags, date range, full-text search
    • Trace detail with tabs: Tree, Analytics, Decisions, Spans, Events

    Infrastructure

    • Docker Compose one-command deployment
    • PostgreSQL 16 + Redis 7
    • Health checks on all services
    • Memory limits and log rotation
    Downloads