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

@adelie/amsp

Latest version: v0.8.2

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: lmliheng
163 Stars
4 Forks
27 Versions
4.2K Downloads
TypeScript Repo language

Scan summary

@adelie/amsp was last scanned on 24 Nov 2026 at version 0.8.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 27 versions; the latest 5 were published within 3 days (22–24 Nov 2026).
  • Findings: No rules fired in version 0.8.2.
  • Downloads: 4,153 downloads.

Versions

27 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.8.2 LATEST 24 Nov 2026 No rules fired
0.8.1 23 Nov 2026 No rules fired
0.8.0 23 Nov 2026 No rules fired
0.7.0 22 Nov 2026 Not shown
0.6.12 22 Nov 2026 Not shown

No rules fired in 0.8.2

Findings

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

README

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

@adelie/amsp

The client of a Adelie agent's API, and the types of AMSP (Agent Message Stream Protocol), the event stream that API serves. No runtime dependencies; runs in Node 24 and in current browsers on fetch, ReadableStream, TextDecoder and AbortController.

A Project owner turns an agent's API on in the Adelie Web App (the agent's API tab) and mints a key there. A program then runs the agent, reads the run as it happens, and continues the conversation by its Session id:

import { AgentClient } from "@adelie/amsp";

const client = new AgentClient({
  baseUrl: "http://localhost:7364/api/amsp/v1",
  agent: "demo/coder", // <projectId>/<agentId>
  apiKey: process.env.PENGUIN_AGENT_KEY,
});

const run = client.run({ input: "Summarize README.md" });
for await (const event of run) {
  if (event.type === "text.delta") process.stdout.write(event.text);
}
const first = await run.result();

const second = await client.ask({
  sessionId: first.sessionId,
  input: "Now list its headings",
  onApproval: () => "allow", // without a callback, approval requests are denied
});
console.log(second.text, second.usage.total);
  • run() starts the run and returns it: iterate it once for the events, await session for the Session id, result() for the outcome, and call abort() to have the server abort it. ask() returns the result alone.
  • result() resolves for every run that reached run.done, whatever its status. A refusal before the stream rejects with AmspHttpError (status, code, message); a stream that ends or breaks before run.done rejects with AmspStreamError; aborting the signal rejects with its reason.
  • onApproval answers each approval.requested, and the client posts the answer; parseArguments reads a tool call's JSON arguments.
  • agent(), session(id), abort(id) and approve(id, toolCallId, decision) call the API's other routes; readSse is the SSE reader, for a program that reads a run's body itself.
  • Every AMSP event type is exported (AmspEvent, RunDone, ToolCallDone, …). Events of a type the client does not know are passed through.

The reader without the client

A program that sends the request itself — its own fetch, its own credentials or URL — reads the body with readSse and folds the events with RunCollector, which AgentClient uses for result():

import { readSse, RunCollector } from "@adelie/amsp";
import type { AmspEvent } from "@adelie/amsp";

const collector = new RunCollector();
for await (const data of readSse(response.body!)) {
  if (data === "[DONE]") break;
  collector.add(JSON.parse(data) as AmspEvent);
}
const result = collector.result(); // throws AmspStreamError when the stream ended before run.done

Documentation

  • Agent API: turning an agent's API on, keys, approval modes, routes, errors, the client in Node and browsers
  • AMSP: the protocol, event by event

Development

pnpm --filter @adelie/amsp build       # tsup → dist/ (exports point at dist)
pnpm --filter @adelie/amsp typecheck
pnpm --filter @adelie/amsp test

Part of Adelie · Apache-2.0

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 @adelie/amsp

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

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229