Documentation
¶
Overview ¶
Package scene hosts the nexus.scene plugin — the runtime that owns the Scene store, persists scene state into the session workspace, and exposes scene_create / scene_patch / scene_get / scene_list / scene_delete tools the LLM uses to build durable visual output. Patches are journaled to the session's plugin data dir as JSONL so the replay primitive can reconstruct historical scene state.
Index ¶
- func New() engine.Plugin
- type Plugin
- func (p *Plugin) Capabilities() []engine.Capability
- func (p *Plugin) ConfigSchema() []byte
- func (p *Plugin) Dependencies() []string
- func (p *Plugin) Emissions() []string
- func (p *Plugin) ID() string
- func (p *Plugin) Init(ctx engine.PluginContext) error
- func (p *Plugin) Name() string
- func (p *Plugin) Ready() error
- func (p *Plugin) Requires() []engine.Requirement
- func (p *Plugin) Shutdown(_ context.Context) error
- func (p *Plugin) Store() scene.Store
- func (p *Plugin) Subscriptions() []engine.EventSubscription
- func (p *Plugin) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin wires a scene.Store to the bus and persists state into the session plugin dir. Exposes a Store() accessor so other in-process plugins (the replay primitive) can read scene state without going through tools.
func (*Plugin) Capabilities ¶
func (p *Plugin) Capabilities() []engine.Capability
func (*Plugin) ConfigSchema ¶
ConfigSchema implements engine.ConfigSchemaProvider.
func (*Plugin) Dependencies ¶
func (*Plugin) Requires ¶
func (p *Plugin) Requires() []engine.Requirement
func (*Plugin) Store ¶
Store returns the underlying scene store. Consumers (replay primitive) use this to walk a session's scenes without going through tool calls.
func (*Plugin) Subscriptions ¶
func (p *Plugin) Subscriptions() []engine.EventSubscription