extbridge

package
v0.70.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package extbridge wires the public Kit SDK to the internal extensions package. It exists so that cmd/ and internal/acpserver/ don't both reimplement the same SDK→extension event/subagent conversions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SDKEventToSubagentEvent

func SDKEventToSubagentEvent(e kit.Event) extensions.SubagentEvent

SDKEventToSubagentEvent converts an SDK kit.Event into the extension-facing extensions.SubagentEvent. Returns a zero-value event (Type=="") for events that don't map to anything useful — callers should drop those.

func SpawnSubagent

SpawnSubagent runs a subagent in-process via the Kit SDK and translates the result/events back into the extension-facing types. The returned handle is always nil — the SDK path runs synchronously and does not expose a separate process handle. Callers that need non-blocking behaviour should run this in their own goroutine.

This function consolidates the previously-duplicated wiring in cmd/root.go (interactive + runtime contexts) and internal/acpserver/session.go.

Types

This section is empty.

Jump to

Keyboard shortcuts

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