npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tutti-os/agent-session-replay-runner

v0.0.414

Published

Product-neutral Agent Session Replay JS runner kernel.

Readme

@tutti-os/agent-session-replay-runner

Product-neutral JS runner kernel for Agent Session Replay.

Status

This is a public npm package in Tutti's fixed @tutti-os/* release cohort. External products install the same exact cohort version as their other Tutti dependencies:

pnpm add --save-exact @tutti-os/agent-session-replay-runner@<version>
import {
  createReplayProductPorts,
  runReplayCassetteBatch
} from "@tutti-os/agent-session-replay-runner";

Shared Go Cassette / Replay contracts stay in packages/agent/session-replay. This package owns Node orchestration helpers that must stay isomorphic across products.

Bundled contracts

The published tarball carries the canonical cross-language contracts from the Go core at these public subpaths:

  • @tutti-os/agent-session-replay-runner/cassette-policy.json
  • @tutti-os/agent-session-replay-runner/activity-contract.json

Consumers resolve those package subpaths and read the files from the installed package. They do not locate or read a Tutti source checkout.

What products must supply

  • Desktop / Electron launch + ports (CDP, daemon listener, control path).
  • Room / Workspace / shared-agent product surfaces (TSH Room bootstrap, Tutti workspace rail, ui-drive product adapters).
  • A ReplayProductPorts object via createReplayProductPorts(...) for path scope, transport command dialect, and session-observation mode.

Vertical slice (current)

Extracted and wired from both runners:

  • cassette policy loader (loadCassettePolicy) — path-agnostic bytes + shape
  • managed replay log prefixes + control router document helper
  • serial async queue
  • checkpoint plan load / validate (schemaVersion injected by product)
  • stimulus idle precondition + duplicate engine-send guard + replayStimulusRequest (scope segment: workspaces / rooms)
  • recording helpers (resolveRecordScenarioProject, binding verify, assertForbiddenPathAbsent, seedRecordingUserProject)
  • playback sub-helpers (activity clock, provider cursor math, status/failure log routing, submit-idle gate, retryable stimulus statuses, registration validation, hydration/session-terminal diagnostics, transport health GET)
  • turn freshness / pending-interaction identity helpers + renderer snapshot collapse (activityTurnFromRendererSnapshot)
  • evidence helpers (checkpoint PNG path, clip/label, settle predicates)
  • managed Desktop shutdown binder (bindManagedReplayShutdown; products inject stopDesktop)
  • wait diagnostics (configureReplayWaitDiagnostics, pollUntilReady, compact/format helpers) — no CDP/Room embedding
  • ui-drive scenario shell (loadUiScenario, runUiDriveScenario, checkpoint screenshot/plan helpers) — products inject prepare/launch/surface ports
  • createReplayPlaybackController / createReplayTurnIdentityTracker / runReplayCassetteBatch / replayStimuli / waitForSessionIdle — parameterized by ReplayProductPorts (no product-named forks); a cassette wave preserves the first failure as the shared abort cause and emits one terminal outcome per cassette
  • cassette verify / parse / blobs / portable activity payload / turn-identity plan (createCassetteHelpers, verifyCassette, parseActivityEvents, materializeReplayWorkspaceBlobs, …) — products bind policy + optional ports (TSH shared-agent prerequisite fork, Tutti realpath canonicalization)

Product ports (dialect injection)

Build ports with createReplayProductPorts. Command name helpers:

| Concern | Typical Tutti wiring | Typical Room/TSH wiring | | ------------------------ | ----------------------------------------- | ---------------------------------------- | | Timing / cursor commands | KEBAB_REPLAY_TRANSPORT_COMMANDS | CAMEL_REPLAY_TRANSPORT_COMMANDS | | Timing wire values | encodeKebabTimingModeValue | encodeCamelTimingModeValue | | Playback state | normalizePlaybackStateRequireTimingMode | normalizePlaybackStateDeriveTimingMode | | HTTP scope | workspaces | rooms | | Session GET | no /state | agentSessionStateSuffix: true | | Observation | sessionObservation: "canonical" | "lean-activity" (+ baselines) | | Session watch | off | watchSessionsDuringPlayback: true |

Products keep a thin wrapper that injects their ports; shared modules must not hardcode product names.

Still product-local:

  • runtime / ui-drive / Room bootstrap / Electron launch / CDP evaluate waits
  • TSH shared-agent target rewrite + Room project-binding helpers that sit beside the shared cassette kernel ports