npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@detiq/agents

v1.2.0

Published

AI agents that produce test artifacts grounded in the ZeTa Core, coordinated by orchestrators: - `DualContextOrchestrator` / `SwarmOrchestrator`: Multi-agent pipeline coordinating CAG (Component-Augmented Generation) and KAG (Knowledge-Augmented Generatio

Readme

@detiq/agents — Generation Agents & E2E Evaluation Harness

AI agents that produce test artifacts grounded in the ZeTa Core, coordinated by orchestrators:

  • DualContextOrchestrator / SwarmOrchestrator: Multi-agent pipeline coordinating CAG (Component-Augmented Generation) and KAG (Knowledge-Augmented Generation).
  • test-case-agent.ts: 22-pass test case generation grounded in real crawled elements with semantic dedup.
  • data-agent.ts: Realistic synthetic test data and slot generation matching field constraints.
  • script-agent.ts: Deterministic Playwright test script generation and linting.
  • alignment-agent.ts: Verification of script actions against test case steps.
  • llm.ts: Choke-point wrapper around LLM providers with token tracking, caching, and error sanitization.
  • llm-mock.ts: Mock / record / replay engine for zero-cost, deterministic CI runs.

E2E Evaluation Harness (scripts/agent-e2e.ts)

The E2E harness tests the entire agent pipeline from screen fixture to verified Playwright script without requiring live browser crawling or UI clicks.

Commands

# 1. Run all fixtures in mock mode (CI default, zero token cost)
npm run e2e -- --fixture all --mock --fail-on-assert

# 2. Run a specific fixture
npm run e2e -- --fixture login --mock

# 3. Run against an existing project in the database
npm run e2e -- --project <projectId> --screen <screenId>

# 4. Limit pipeline stages
npm run e2e -- --fixture login --mock --stages cases,data

# 5. Output JSON report for CI/monitoring
npm run e2e -- --fixture all --mock --json report.json

Mock & Record Modes

The mock engine intercepts calls in askTracked and askTrackedWithImages.

| Environment Variable | Value | Description | |---|---|---| | ZETA_LLM_MOCK | 1 or replay | Replays saved fixtures from eval/fixtures/llm/. Falls back to schema-valid deterministic mock if fixture is missing. | | ZETA_LLM_MOCK | record | Hits the live LLM provider and automatically records prompt/response pairs to eval/fixtures/llm/ for future replay. | | ZETA_LLM_MOCK_FAIL | 429 | 503 | malformed-json | empty | Injects synthetic provider failures to test error handling and retry resilience. |

Safety: ZETA_LLM_MOCK immediately throws an exception if NODE_ENV=production.


Golden Set Evaluation (eval/)

eval/
  fixtures/screens/<name>.json     # Screen + elements as captured by crawler
  fixtures/llm/<key>.json          # Recorded LLM responses for deterministic replay
  golden/<name>.golden.json        # Golden assertion criteria (minCases, kinds, title pattern)
  baseline.json                    # Historical score baseline
  run-eval.ts                      # Evaluator runner comparing outputs against baseline

Golden Evaluation Commands

# Run eval across all golden screens
npm run eval

# Accept current scores and update baseline.json
npm run eval:accept

# Run eval for specific screens only
npm run eval -- login checkout

Golden Spec Format (eval/golden/<name>.golden.json)

{
  "screen": "login",
  "minCases": 12,
  "mockMinCases": 1,
  "mustHaveKinds": ["FUNCTIONAL", "SECURITY"],
  "kindMinimums": { "SECURITY": 2 },
  "maxDuplicateRatio": 0.10,
  "titlePattern": "^[^—]+ — [^—]+ — .+$",
  "requiredCoverageTerms": ["invalid password", "empty email", "sql injection"],
  "script": { "minAlignment": 75, "maxLintViolations": 0 }
}

CI Integration

Mock evaluation is automated via GitHub Actions in .github/workflows/agents-eval.yml:

  • Triggers on PRs modifying packages/agents/**, packages/core/**, packages/app-brain/**, or agent prompt seeds.
  • Runs unit tests and npm run e2e -- --fixture all --mock --fail-on-assert.
  • Uploads report.json as a build artifact.