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

@zerotal/ai

Latest version: v1.18.0

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: mbilisphe13
2 Stars
0 Forks
43 Versions
2.2K Downloads
TypeScript Repo language

Scan summary

@zerotal/ai was last scanned on 26 Nov 2026 at version 1.18.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 43 versions; the latest 5 were published within 3 days (24–26 Nov 2026).
  • Findings: No rules fired in version 1.18.0.
  • Downloads: 2,161 downloads.

Versions

43 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.18.0 LATEST 26 Nov 2026 No rules fired
1.17.4 26 Nov 2026 No rules fired
1.17.3 25 Nov 2026 No rules fired
1.17.2 25 Nov 2026 Not shown
1.17.1 24 Nov 2026 Not shown

No rules fired in 1.18.0

Findings

Findings for v1.18.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 1.18.0; other versions have their own rules, not their own score.

README

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

@zerotal/ai

Text, streaming, structured output, typed tools, and an agent loop — behind one provider-agnostic facade.

One way to talk to a language model: Ai.text() for a completion, Ai.stream() for tokens as they arrive, Ai.object() for a value that satisfies a validator schema, and Ai.agent() for a loop that calls your tools until the model is done. The provider is chosen in config/ai.ts, not at each call site.

Part of the Zerotal framework. Requires Bun ≥ 1.3.14.

Maturity: stable — the public API follows the compatibility promise in the support policy. Anything importable that does not carry an @internal marker is covered.

Installation

bun add @zerotal/ai

Provider SDKs are optional peers, imported lazily. Install only the one you use:

bun add @anthropic-ai/sdk    # only for the anthropic driver

The OpenAI and Ollama drivers use fetch directly and need nothing extra.

Setup

Register the provider in bootstrap/providers.ts:

import { AiProvider } from "@zerotal/ai";

Then configure it:

// config/ai.ts
import { AiConfig } from "@zerotal/ai";

export default AiConfig({
  default: "anthropic",
  drivers: {
    anthropic: { apiKey: Bun.env["ANTHROPIC_API_KEY"] ?? "" },
  },
  limits: { perRequestUsd: 0.5, perDayUsd: 25 },
});

Usage

import { Ai, tool } from "@zerotal/ai";

// A completion.
const summary = await Ai.text(`Summarize in one sentence:\n\n${article}`);

// Tokens as they arrive, cancellable.
for await (const chunk of Ai.stream({ prompt, signal })) {
  if (chunk.type === "text") process.stdout.write(chunk.text);
}

// A value that satisfies a validator schema — the same schema you use for forms.
const review = await Ai.object({ prompt }, (rule) => ({
  sentiment: rule.string().in(["positive", "neutral", "negative"]),
  score: rule.number().min(1).max(5),
}));

// A tool-calling loop, exclusive for the work it names.
const lookupOrder = tool({
  name: "lookup_order",
  description: "Fetch one order by id. Call this whenever the user mentions an order number.",
  input: (rule) => ({ id: rule.string() }),
  handle: async ({ id }) => await Order.find(id),
});

const result = await Ai.agent({
  prompt: "Where is order 4821?",
  tools: [lookupOrder],
  lock: "order:4821",
});

Testing

import { AiFake } from "@zerotal/ai";

const ai = AiFake.install();
ai.respondWith("A one-sentence summary.");

await service.summarize(article);

ai.assertPrompted(/Summarize/);
ai.restore();

No API key, no network. The suite for this package passes with neither.

Commands

Command What it does
zt ai:test [driver] Reach the provider once and print the resolved model
zt ai:spend This process's token spend today, by model

Documentation

Full documentation: zerotal.dev/docs/ai.

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 @zerotal/ai

References

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

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229