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

@sctg/cline-shared

v3.89.2-beta.20260613190204

Published

Shared utilities, types, and schemas for Cline packages

Readme

[experimental] @sctg/cline-shared

Package-level docs are centralized:

@sctg/cline-shared owns shared cross-package primitives (session common types/utilities).

Node-only filesystem path resolvers live under the storage subpath export:

  • @sctg/cline-shared/storage
  • examples: resolveClineDataDir, resolveDbDataDir, resolveSessionDataDir, resolveTeamDataDir

It also exports cross-client logging contracts, including BasicLogger, so runtime, SDK, and host applications can share a single logger type.

Session config primitives are also centralized here so hosts/runtimes can compose one base shape instead of redefining similar fields repeatedly:

  • AgentMode
  • SessionPromptConfig
  • SessionWorkspaceConfig
  • SessionExecutionConfig (includes canonical ToolPolicy map shape)

It now also exports hook session context primitives used across agents/core/CLI:

  • HookSessionContext
  • resolveHookSessionContext(...)
  • resolveRootSessionId(...)
  • resolveHookLogPath(...)

It also exports cross-client runtime payload DTOs used by multiple hosts (@sctg/cline-cli, @sctg/cline-code) so request/response contracts are not duplicated outside transport wiring:

  • chat runtime payloads (ChatStartSessionRequest, ChatRunTurnRequest, ChatTurnResult)
  • provider runtime payloads (ProviderActionRequest, ProviderCatalogResponse, ProviderOAuthLoginResponse)
  • Cline account action payloads (ClineAccountActionRequest)
  • provider action requests include provider catalog/model operations plus provider add/save operations for settings hosts
  • provider action payloads now expose granular request/type contracts for reuse: AddProviderActionRequest, SaveProviderSettingsActionRequest, ProviderCapability, and OAuthProviderId

Chat runtime payload notes:

  • ChatStartSessionRequest supports initialMessages, optional toolPolicies, optional rules for default system prompt assembly, and optional logger runtime config (RuntimeLoggerConfig) so hosts can pass serialized logger settings across transport boundaries.
  • RuntimeLoggerConfig.bindings lets hosts attach stable context fields (for example clientId, clientType, clientApp) to all runtime log records.