channel

package
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 44 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package channel bridges a local broker to Claude's official stdio channel.

Index

Constants

This section is empty.

Variables

View Source
var ErrCodexResumeIncomplete = errors.New("Codex resume readiness was not confirmed")

Functions

func RunClient

func RunClient(ctx context.Context, args []string, version ...string) error

func RunCodexResumeHelper

func RunCodexResumeHelper(ctx context.Context, args []string) error

func RunKimiHook

func RunKimiHook(ctx context.Context, args []string, input io.Reader, output io.Writer) error

RunKimiHook never receives a broker token. Missing/unavailable IPC fails open.

func ServeDurableChannel

func ServeDurableChannel(ctx context.Context, transport mcp.Transport, upstream Upstream, tools []*mcp.Tool, identity broker.AttachRequest, opts durableOptions) error

ServeDurableChannel is the durable client for a Claude session without the native messaging socket: broker messages arrive as official channel events after the model acknowledges the activation token, while registration, recovery and probes work exactly as in ServeDurableIngress.

func ServeDurableIngress

func ServeDurableIngress(ctx context.Context, transport mcp.Transport, upstream Upstream, tools []*mcp.Tool, identify func(context.Context, *mcp.CallToolRequest) (broker.AttachRequest, error), opts durableOptions) error

ServeDurableIngress is ServeIngress for brokers with durable registrations: the client owns a resume secret per session, reconnects automatically after a server restart and answers identity probes without the model. It returns only after every receiver has stopped and the registration locks are released.

func ServeIngress

func ServeIngress(ctx context.Context, transport mcp.Transport, upstream Upstream, tools []*mcp.Tool, identify func(context.Context, *mcp.CallToolRequest) (broker.AttachRequest, error)) error

Types

type Upstream

type Upstream interface {
	CallTool(context.Context, *mcp.CallToolParams) (*mcp.CallToolResult, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL