@easytocloud/sessionscope-core
v0.1.2
Published
Pure parser: Claude Code JSONL session logs -> SessionScope records. Zero runtime dependencies.
Readme
@easytocloud/sessionscope-core
Pure parser: Claude Code JSONL session logs → SessionScope records. Zero
runtime dependencies, no fs, no http — it runs anywhere (Node, browser,
webview) and is trivially testable.
import { parseSession } from "@easytocloud/sessionscope-core";
const { records, t0, systems, totalT } = parseSession(rawJsonlObjects);raw is an array of parsed JSONL objects from one logical Claude Code
session (main-agent records interleaved with isSidechain:true subagent
records). See src/types.js for the full Record/Call
shape emitted.
Claude Code's transcript format drifts across versions. Fragile inferences
are tagged // HEURISTIC in src/parse.js — check there
first if a real transcript parses wrong.
