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-core

v3.89.0-beta.20260611074114

Published

Cline Core SDK for Node Runtime

Readme

[experimental] @sctg/cline-core

@sctg/cline-core is the stateful orchestration layer of the Cline SDK. It connects the agent runtime, provider settings, storage, default tools, and session lifecycle into a host-ready runtime.

What You Get

  • session lifecycle and orchestration primitives
  • provider settings and account services
  • default runtime tools and MCP integration
  • storage-backed session and team state helpers
  • host-facing Node helpers through @sctg/cline-core

Installation

npm install @sctg/cline-core

Entry Points

  • @sctg/cline-core: core contracts, shared utilities, and Node/server helpers for building hosts and runtimes

Typical Usage

Most host apps should start with @sctg/cline-core.

import { ClineCore } from "@sctg/cline-core";

const cline = await ClineCore.create({});

const result = await cline.start({
	config: {
		providerId: "anthropic",
		modelId: "claude-sonnet-4-6",
		apiKey: process.env.ANTHROPIC_API_KEY ?? "",
		cwd: process.cwd(),
		mode: "act",
		enableTools: true,
		enableSpawnAgent: false,
		enableAgentTeams: false,
		systemPrompt: "You are a concise assistant.",
	},
	prompt: "Summarize this project.",
	interactive: false,
});

console.log(result.result?.text);
await cline.dispose();

Session Bootstrap

ClineCore.create(...) also accepts prepare(input).

Use it when a host needs to prepare workspace-scoped runtime state before each session starts, then apply watcher/extensions/telemetry inputs through explicit localRuntime bootstrap fields without widening the shared host contract.

Main APIs

Runtime and Sessions

Use @sctg/cline-core for host-facing runtime assembly:

  • ClineCore.create(...)
  • createRuntimeHost(...)
  • LocalRuntimeHost
  • HubRuntimeHost and RemoteRuntimeHost
  • DefaultRuntimeBuilder

ClineCore is the app-facing session API. The lower-level RuntimeHost boundary uses runtime-primitive names such as startSession and runTurn so transport adapters stay distinct from product methods like start and send. Service-style operations such as pending prompt edits, accumulated usage lookup, and active-session model switching are exposed through ClineCore when the selected transport supports them rather than being part of the minimal host primitive vocabulary.

Default Tools

@sctg/cline-core owns the built-in host tools and executors:

  • createBuiltinTools(...)
  • createDefaultTools(...)
  • createDefaultExecutors(...)

Storage and Settings

The package also exports storage and settings helpers such as:

  • ProviderSettingsManager
  • CoreSettingsService and createCoreSettingsService
  • MCP settings helpers such as setMcpServerDisabled
  • SqliteTeamStore
  • SQLite-backed local session stores and artifacts through @sctg/cline-core

Related Packages

  • @sctg/cline-agents: stateless agent loop and tool primitives
  • @sctg/cline-llms: provider/model configuration and handlers

More Examples