Documentation
¶
Overview ¶
Package channel bridges a local broker to Claude's official stdio channel.
Index ¶
- Variables
- func RunClient(ctx context.Context, args []string, version ...string) error
- func RunCodexResumeHelper(ctx context.Context, args []string) error
- func RunKimiHook(ctx context.Context, args []string, input io.Reader, output io.Writer) error
- func ServeDurableChannel(ctx context.Context, transport mcp.Transport, upstream Upstream, ...) error
- func ServeDurableIngress(ctx context.Context, transport mcp.Transport, upstream Upstream, ...) error
- func ServeIngress(ctx context.Context, transport mcp.Transport, upstream Upstream, ...) error
- type Upstream
Constants ¶
This section is empty.
Variables ¶
var ErrCodexResumeIncomplete = errors.New("Codex resume readiness was not confirmed")
Functions ¶
func RunKimiHook ¶
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.
Types ¶
type Upstream ¶
type Upstream interface {
CallTool(context.Context, *mcp.CallToolParams) (*mcp.CallToolResult, error)
}
Source Files
¶
- activity_client.go
- admission_source.go
- attachment.go
- auth_scopes.go
- bugreport.go
- bugreport_management.go
- channel.go
- claude_identity.go
- claude_inbox.go
- claude_parent_file.go
- claude_process_other.go
- client.go
- client_options.go
- client_startup.go
- codex_claim.go
- codex_claim_linux.go
- codex_claim_unix.go
- codex_control_posix.go
- codex_ingress.go
- codex_resume_helper.go
- codex_resume_helper_posix.go
- codex_steer.go
- codex_yield.go
- codex_yield_unix.go
- compatibility.go
- conversation_handover.go
- credential_guidance.go
- credential_scopes.go
- device_identity_diagnostics.go
- deviceauth.go
- deviceflow.go
- directauth.go
- directflow.go
- docs.go
- durable.go
- explicit_attach.go
- holder.go
- hook_identity.go
- hook_write.go
- http_policy.go
- ingress_client.go
- ingress_device.go
- ingress_hooks.go
- ingress_identity.go
- ingress_recovery.go
- ingress_register.go
- ingress_server.go
- initial_registration.go
- kimi.go
- kimi_errors.go
- kimi_ingress.go
- kimi_peer_linux.go
- kimi_process_linux.go
- kimi_socket_unix.go
- kimi_status.go
- liveness_diagnostics.go
- local_lock.go
- manual_token_handover.go
- message_ack.go
- parent_observation.go
- parents_executable.go
- parents_linux.go
- project_refusal.go
- reauthorize.go
- receive_scope.go
- recipient_expectation.go
- refused_handover_recovery.go
- rename_rejection.go
- resume_follow.go
- resume_follow_fast.go
- resume_follow_unregistered.go
- retire.go
- run.go
- runtime_info_client.go
- steer_recovery.go
- steer_scan.go
- tool_catalog.go
- tool_profile.go
- tooldefs.go
- upstream.go
- version.go