Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@llmist/testing

Latest version: v19.0.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: zbigniew-sobiecki
9 Stars
1 Forks
4 Versions
371 Downloads
TypeScript Repo language

Scan summary

@llmist/testing was last scanned on 23 Nov 2026 at version 19.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest was published on 23 Nov 2026.
  • Findings: No rules fired in version 19.0.0.
  • Downloads: 371 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
19.0.0 LATEST 23 Nov 2026 No rules fired
18.4.3 3 Nov 2026 No rules fired
18.4.2 3 Nov 2026 No rules fired
18.4.1 27 Oct 2026 Not shown

No rules fired in 19.0.0

Findings

Findings for v19.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 19.0.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@llmist/testing

Testing utilities for llmist - mock LLM responses and test agents deterministically.

Installation

npm install -D @llmist/testing

Requires llmist as a peer dependency.

Quick Start

Testing Gadgets

Test gadgets in isolation without any LLM calls:

import { testGadget } from '@llmist/testing';
import { Calculator } from './gadgets';

const result = await testGadget(new Calculator(), {
  operation: 'add',
  a: 5,
  b: 3,
});

expect(result.result).toBe('8');
expect(result.error).toBeUndefined();
Mocking LLM Responses

Use the fluent MockBuilder API to script LLM responses:

import { mockLLM, createMockClient, resetMocks } from '@llmist/testing';
import { LLMist } from 'llmist';

// Set up mock responses
mockLLM()
  .whenMessageContains('hello')
  .returns('Hi there! How can I help?')
  .register();

mockLLM()
  .whenMessageContains('calculate')
  .returnsGadgetCall('Calculator', { operation: 'add', a: 1, b: 2 })
  .register();

// Create agent with mock client
const agent = LLMist.createAgent()
  .withClient(createMockClient())
  .withGadgets(Calculator);

const response = await agent.askAndCollect('hello');
// Returns "Hi there! How can I help?" - no API calls made

// Clean up after tests
resetMocks();
Conditional Mocking

Match responses based on model, provider, or custom conditions:

mockLLM()
  .forModel('gpt-4o')
  .forProvider('openai')
  .whenMessageContains('complex task')
  .returns('Handled by GPT-4o')
  .register();

mockLLM()
  .forModel('haiku')
  .whenMessageContains('complex task')
  .returns('Handled by Haiku')
  .register();
One-Time Responses

Use .once() for responses that should only match once:

mockLLM()
  .whenMessageContains('first')
  .returns('First response')
  .once()
  .register();

mockLLM()
  .whenMessageContains('first')
  .returns('Second response')
  .register();

// First call returns "First response"
// Subsequent calls return "Second response"

API Reference

testGadget(gadget, params, options?)

Test a gadget with given parameters.

mockLLM()

Create a new mock builder with fluent API.

createMockClient()

Create a mock LLMist client that uses registered mocks.

resetMocks()

Clear all registered mocks (call in afterEach).

Documentation

Full documentation at llmist.dev/testing

Related Packages

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @llmist/testing

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229