redevpluginintegration

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BundledRuntimeDescriptor added in v0.11.0

func BundledRuntimeDescriptor(filename string) (host.RuntimeArtifactIdentity, error)

func WithRouteRole

func WithRouteRole(r *http.Request, role RouteRole) *http.Request

func WithTrustedOrigin added in v0.11.0

func WithTrustedOrigin(r *http.Request, origin string) (*http.Request, error)

WithTrustedOrigin binds the exact origin already authenticated by the host router. The value is server-only context and is never read from JSON or IPC.

Types

type Integration

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

func New

func New(ctx context.Context, opts Options) (*Integration, error)

func (*Integration) BindActiveGeneration added in v0.11.0

func (i *Integration) BindActiveGeneration(ctx context.Context, generation PluginSessionGeneration) error

func (*Integration) Close

func (i *Integration) Close() error

func (*Integration) DiscardFinalizedGeneration added in v0.11.0

func (i *Integration) DiscardFinalizedGeneration(ctx context.Context, generation PluginSessionGeneration) error

func (*Integration) Handler

func (i *Integration) Handler() http.Handler

func (*Integration) MaintainTerminalGeneration added in v0.11.0

func (i *Integration) MaintainTerminalGeneration(ctx context.Context, generation PluginSessionGeneration) error

MaintainTerminalGeneration delegates the entire durable teardown lifecycle to Host. Redeven retains only its in-process connection generation.

func (*Integration) MarketDetail added in v0.11.0

func (i *Integration) MarketDetail(ctx context.Context, pluginID string) (pluginmarket.PluginDetail, int64, error)

func (*Integration) MarketError added in v0.11.0

func (i *Integration) MarketError() error

func (*Integration) MarketIcon added in v0.11.0

func (i *Integration) MarketIcon(ctx context.Context, pluginID, digest string) (pluginmarket.IconAsset, error)

func (*Integration) MarketSnapshot added in v0.11.0

func (i *Integration) MarketSnapshot() (pluginmarket.Snapshot, bool)

func (*Integration) PluginProcessGeneration added in v0.11.0

func (i *Integration) PluginProcessGeneration() string

func (*Integration) RecordCloseContinuation added in v0.11.0

func (i *Integration) RecordCloseContinuation(ctx context.Context, generation PluginSessionGeneration) error

func (*Integration) RecordTerminalIntent added in v0.11.0

func (i *Integration) RecordTerminalIntent(ctx context.Context, generation PluginSessionGeneration) error

type Options

type Options struct {
	StateDir             string
	AgentHomeDir         string
	ResolveWorkspacePath workspacePathResolver
	PermissionPolicy     *config.PermissionPolicy
	RuntimePath          string
	ResolveSessionMeta   func(channelID string) (*session.Meta, bool)
	Audit                *auditlog.Store
	Diagnostics          *diagnostics.Store
	Containers           *containers.Adapter
	RuntimeAuthority     *RuntimeProcessAuthority
	PluginMarket         *pluginmarket.Service
	// contains filtered or unexported fields
}

type PluginSessionGeneration added in v0.11.0

type PluginSessionGeneration struct {
	Session           sessionctx.Context
	ProcessGeneration string
	SessionGeneration string
}

PluginSessionGeneration is transient Redeven connection identity. Durable session-scope teardown state and its opaque identity are owned by Host.

func PluginSessionGenerationFromMeta added in v0.11.0

func PluginSessionGenerationFromMeta(meta *session.Meta, processGeneration, sessionGeneration string) (PluginSessionGeneration, error)

type RouteRole

type RouteRole string
const RouteRoleEnvTrusted RouteRole = "env_trusted"

type RuntimeProcessAuthority added in v0.11.0

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

func NewRuntimeProcessAuthority added in v0.11.0

func NewRuntimeProcessAuthority(runtimeLock *lockfile.Lock, expectedLockPath, processGeneration string) (*RuntimeProcessAuthority, error)

func (*RuntimeProcessAuthority) ProcessGeneration added in v0.11.0

func (authority *RuntimeProcessAuthority) ProcessGeneration() string

Jump to

Keyboard shortcuts

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