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

@uncarved/store-jsonl

Latest version: v0.1.3

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: mochineko
1 Stars
0 Forks
5 Versions
676 Downloads
TypeScript Repo language

Scan summary

@uncarved/store-jsonl was last scanned on 1 Dec 2026 at version 0.1.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions; the latest 3 were published within 7 days (25 Nov – 1 Dec 2026).
  • Findings: No rules fired in version 0.1.3.
  • Downloads: 676 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.3 LATEST 1 Dec 2026 No rules fired
0.1.2 27 Nov 2026 No rules fired
0.1.1 25 Nov 2026 No rules fired
0.1.0 30 Oct 2026 Not shown
0.0.0-stage 30 Oct 2026 Not shown

No rules fired in 0.1.3

Findings

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

README

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

@uncarved/store-jsonl

uncarved 的文件存储:每个会话一个 .jsonl 文件,一行一个事件。另有信任确认记录的文件存储。

安装

npm install uncarved @uncarved/store-jsonl

用法

import { Runtime } from "uncarved";
import { JsonlLogStore, JsonlTrustStore } from "@uncarved/store-jsonl";

const store = new JsonlLogStore(".sessions"); // 目录,不存在时自动创建

const rt = await Runtime.create({ store, provider, plugins, sessionId: "demo" });
// ……进程重启后:
const resumed = await Runtime.resume({ store, provider, plugins, sessionId: "demo" });

// 项目层插件的信任确认记录
const trust = new JsonlTrustStore(".uncarved/trust.jsonl");

保证

  • 持久化:append 写入后 fsync(新建文件时还会 fsync 所在目录),resolve 即代表已落盘。
  • 只追加:不提供删除,已写入的事件不会被修改。
  • 崩溃安全:崩溃可能在文件末尾留下不完整的一行。那次写入从未 resolve,读取时忽略它,下次 append 前截掉。中间某行损坏则抛出 CorruptLog,不做任何修复。
  • 单写入者:每次 append 持有 <id>.jsonl.lock(独占创建)。另一个进程或实例也在写同一个会话时抛出 ConcurrentWrite。持锁进程已经不在、或者锁超过 60 秒没有释放时,锁视为失效并被接管。
  • 内存占用与日志长度无关:read 分块读取;append 前检查末尾残行时只从文件末尾往前读。

限制

  • 只支持本机文件系统。 锁是否失效靠锁文件里的 pid 判断(process.kill(pid, 0)),pid 只在同一台机器、同一个 pid 命名空间里有意义。不要把存储目录放在 NFS、SMB 等网络文件系统上,也不要让不同容器(各自的 pid 命名空间)共享同一个目录:别的机器或容器上的写入者会被误判为已退出,锁被接管,单写入者的保证就失效了。
  • 崩溃后 pid 被别的进程占用。 持锁进程崩溃后,如果它的 pid 恰好分给了另一个仍在运行的进程,锁要等到超过 60 秒才会被接管,在此之前 append 等待 10 秒后抛出 ConcurrentWrite。急用时可以手动删除 <id>.jsonl.lock。(重启后 pid 和崩溃前相同的情况,例如容器里的 pid 1,会立即被识别为失效的锁。)
  • 会话 ID 不区分大小写。 文件名一律用小写,abc 和 ABC 在所有平台上都是同一个会话(Windows、macOS 默认的文件系统本来就不区分大小写,统一之后各平台行为一致)。Windows 的设备名(con、nul、com1 等)不能用作会话 ID。

错误

类 何时抛出
CorruptLog 日志中间某行无法解析。带 sessionId、line
ConcurrentWrite 同一个会话有另一个写入者。带 sessionId

许可证

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 @uncarved/store-jsonl

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

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?

Microsoft's Official agent framework Hijacked
AI & VibeSec

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

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?

Frame 2085668439 (1)
Group 1261154229