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 ¶
func SpawnSubagent(ctx context.Context, k *kit.Kit, cfg extensions.SubagentConfig) (*extensions.SubagentHandle, *extensions.SubagentResult, error)
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.