customharness

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package customharness is a complete harness implementation compiled outside the deploy source tree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

Factory constructs the external echo runtime around this repository's own steering service.

func NewFactory

func NewFactory(steeringService *steering.Service) Factory

NewFactory returns the custom factory installed by the external binary. The steering service is a component this repository composes alongside Core, so the harness captures a value Core only ordered.

func (Factory) New

func (factory Factory) New(
	harnessContext *deployv1.HarnessContext,
	host harness.IHost,
) (*harness.Instance, error)

New binds the custom runtime to Core's host capabilities.

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

Runtime publishes an assistant echo and returns to idle for every prompt.

func (*Runtime) Abort

func (runtime *Runtime) Abort(ctx context.Context) error

Abort has no provider-side operation to cancel.

func (*Runtime) Activate

func (runtime *Runtime) Activate(ctx context.Context) error

Activate has no replay to publish.

func (*Runtime) Close

func (runtime *Runtime) Close() error

Close prevents later prompts from publishing events.

func (*Runtime) Send

func (runtime *Runtime) Send(
	ctx context.Context,
	prompt *deployv1.HarnessPrompt,
) error

Send publishes the custom reply through Core's event boundary.

func (*Runtime) Start

func (runtime *Runtime) Start(ctx context.Context) (*deployv1.HarnessSession, error)

Start creates the external harness session.

Jump to

Keyboard shortcuts

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