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

@johnhenry/aimatey-wrapper

Latest version: v0.2.5

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: johnhenry
0 Stars
0 Forks
12 Versions
753 Downloads
TypeScript Repo language

Scan summary

@johnhenry/aimatey-wrapper was last scanned on 25 Nov 2026 at version 0.2.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 12 versions; the latest was published on 25 Nov 2026.
  • Findings: No rules fired in version 0.2.5.
  • Downloads: 753 downloads.

Versions

12 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.5 LATEST 25 Nov 2026 No rules fired
0.2.4 31 Oct 2026 No rules fired
0.2.3 28 Oct 2026 No rules fired
0.2.2 23 Oct 2026 Not shown
0.2.1 23 Oct 2026 Not shown

No rules fired in 0.2.5

Findings

Findings for v0.2.5. 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 0.2.5; other versions have their own rules, not their own score.

README

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

@johnhenry/aimatey-wrapper

npm version license

Note: Previously published as aimatey-wrapper@0.2.4.

SDK wrappers and utilities for Aimatey - Universal AI Adapter System.

Part of the aimatey monorepo.

Installation

npm install @johnhenry/aimatey-wrapper

Overview

This package provides SDK-compatible wrappers that let you use familiar SDK patterns (like OpenAI's or Anthropic's) with any Aimatey backend. It also includes IR-native chat utilities for direct usage.

Included Components

SDK Wrappers
  • OpenAI SDK Wrapper - Use OpenAI SDK patterns with any backend
  • Anthropic SDK Wrapper - Use Anthropic SDK patterns with any backend
  • Chrome AI Wrapper - Simplified Chrome AI interface
  • AnyMethod Wrapper - Flexible method-based wrapper
  • TypeSafe SDK Wrapper - createTypeSafeClient(bridge), a @typesafe-ai/sdk-shaped systemOne() client over any decision backend
  • AI SDK decide() Wrapper - createDecide(bridge) / createDecisionModel(bridge, modelId) over any decision backend
IR Utilities
  • Chat - High-level chat interface with conversation management
  • Stream Utilities - Stream processing helpers

Usage

OpenAI SDK Wrapper
import { OpenAI } from '@johnhenry/aimatey-wrapper';

const client = new OpenAI({ backend: yourBackend });

const response = await client.chat.completions.create({
  model: 'gpt-5.6-terra',
  messages: [{ role: 'user', content: 'Hello!' }],
});
Anthropic SDK Wrapper
import { Anthropic } from '@johnhenry/aimatey-wrapper';

const client = new Anthropic({ backend: yourBackend });

const response = await client.messages.create({
  model: 'claude-sonnet-5',
  messages: [{ role: 'user', content: 'Hello!' }],
  max_tokens: 1024,
});
IR Chat Interface
import { Chat, createChat } from '@johnhenry/aimatey-wrapper';

const chat = createChat({ backend: yourBackend });

// Send a message
const response = await chat.send('Hello!');

// Stream a response
for await (const chunk of chat.stream('Tell me a story')) {
  process.stdout.write(chunk.delta);
}
Decision SDK wrappers

Typed-decision models (choice / score / yes-no questions over a state) get the same drop-in treatment. Both wrappers take a Bridge whose backend supports decisions (createMockDecisionBackend, OllamaBackendAdapter, TypeSafeBackendAdapter, ...); the Bridge may use any frontend.

import { Bridge } from '@johnhenry/aimatey-core';
import { TypeSafeFrontendAdapter, VercelDecideFrontendAdapter } from '@johnhenry/aimatey-frontend';
import { createTypeSafeClient, createDecide, createDecisionModel } from '@johnhenry/aimatey-wrapper';

// @typesafe-ai/sdk-shaped client
const client = createTypeSafeClient(new Bridge(new TypeSafeFrontendAdapter(), backend), {
  defaultModel: 'jev-1.13',
});
const { answers, model } = await client.systemOne({
  state: 'I was billed twice, please refund me.',
  questions: { refund: { type: 'noul', instructions: 'Wants a refund?' } },
});

// AI SDK decide()-shaped function
const decide = createDecide(new Bridge(new VercelDecideFrontendAdapter(), backend));
const result = await decide({
  model: 'tev1:0.8b',
  state: 'I was billed twice, please refund me.',
  questions: { refund: { type: 'boolean', instructions: 'Wants a refund?' } },
  abortSignal: AbortSignal.timeout(30_000),
});
result.answers.refund; // { type: 'boolean', probability: 0.99 }

// A model id bound to decide(): shape-compatible with gateway.decisionModel(id),
// NOT an `ai` provider object.
const model = createDecisionModel(bridge, 'tev1:0.8b');
await model.decide({ state, questions });

When the Bridge's frontend is already the matching adapter the call goes through bridge.decideFrom(); with any other frontend the wrapper converts with its own adapter and calls bridge.decide() (image inputs need the matching frontend, since Bridge.decide() carries none). Errors are the Bridge's: UNSUPPORTED_FEATURE for a backend without decisions, provider errors unchanged, and aborts rethrown as-is.

Stream Utilities
import { collectStream, streamToText } from '@johnhenry/aimatey-wrapper';

// Collect all chunks from a stream
const collected = await collectStream(stream);

// Convert stream to text
const text = await streamToText(stream);

API Reference

See the TypeScript definitions for detailed API documentation.

License

MIT - see LICENSE for details.

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 @johnhenry/aimatey-wrapper

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

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

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229