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

@mearl/cloud-types

Latest version: v3.1.11

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: f-loat, tuyan
11 Stars
1 Forks
92 Versions
10.7K Downloads
TypeScript Repo language

Scan summary

@mearl/cloud-types was last scanned on 24 Nov 2026 at version 3.1.11. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 92 versions; the latest 5 were published on 24 Nov 2026.
  • Findings: No rules fired in version 3.1.11.
  • Downloads: 10,708 downloads.

Versions

92 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.1.11 LATEST 24 Nov 2026 No rules fired
3.1.10 24 Nov 2026 No rules fired
3.1.9 24 Nov 2026 No rules fired
3.1.8 24 Nov 2026 Not shown
3.1.8-beta.4 24 Nov 2026 Not shown

No rules fired in 3.1.11

Findings

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

README

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

@mearl/cloud-types

简体中文 | English

Mearl 云端通信链路的共享类型与常量。

@mearl/client、cloud-server、cloud-connector 三端通过 WebSocket 互通,本包定义它们之间消息的统一协议(消息结构、心跳、缓冲区上限、各类超时默认值),确保三端对线上格式始终一致。

仅供 monorepo 内部使用。

导出

消息类型
interface CloudMessage {
  id: string;
  action: string;
  data: Record<string, any>;
  connector?: string;
  browser?: string;
  timeoutSec?: number;
}

interface CloudResponse {
  id: string;
  success: boolean;
  data?: any;
  error?: string;
  versionWarning?: string;
}

interface HeartbeatMessage {
  type: 'ping' | 'pong';
  timestamp: number;
}

interface AgentHelloMessage {
  type: 'agent_hello';
}

interface ConnectorHelloMessage {
  type: 'connector_hello';
  connectorId: string;
  name: string;
  version?: string;
}
类型守卫
isAgentHelloMessage(msg): msg is AgentHelloMessage
isConnectorHelloMessage(msg): msg is ConnectorHelloMessage
isHeartbeatMessage(msg): msg is HeartbeatMessage
isCloudMessage(msg): msg is CloudMessage
isCloudResponse(msg): msg is CloudResponse

resolveCloudConnectorSelector(connectors, selector) 按精确 ID、精确名称、唯一模糊匹配的 顺序解析 connector 目标,并区分匹配、歧义和未找到。

常量
MAX_BUFFER_SIZE; // 10 MB,单条消息缓冲上限
DEFAULT_REQUEST_TIMEOUT; // 60s
DEFAULT_CONNECT_TIMEOUT; // 30s
DEFAULT_HEARTBEAT_INTERVAL; // 30s
DEFAULT_HEARTBEAT_TIMEOUT; // 90s

使用

import { type CloudMessage, isCloudResponse, DEFAULT_REQUEST_TIMEOUT } from '@mearl/cloud-types';

构建

pnpm build      # tsc 编译到 dist/
pnpm dev        # tsc --watch
pnpm typecheck  # 仅类型检查

License

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 @mearl/cloud-types

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

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Microsoft's Official agent framework Hijacked
AI & VibeSec

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

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229