assembly

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package assembly owns the ordered list of plugins sidecar registers, and therefore the tab order.

It exists so tab order is data rather than the sequence of `if enabled { register(...) }` statements it used to be in cmd/sidecar/main.go. Plan is a pure function of config plus feature flags, so every enabled/disabled combination is unit-testable without booting the application.

It lives under internal/plugins rather than internal/app because the plugin packages themselves import internal/app; an assembly there would be an import cycle.

Index

Constants

View Source
const (
	IDTDMonitor     = "td-monitor"
	IDGitStatus     = "git-status"
	IDFileBrowser   = "file-browser"
	IDConversations = "conversations"
	IDWorkspace     = "workspace-manager"
	IDNotes         = "notes"
)

Plugin IDs used as ordering anchors. They mirror each plugin's own ID().

Variables

This section is empty.

Functions

func ConversationsWanted added in v0.97.0

func ConversationsWanted(cfg *config.Config) bool

ConversationsWanted reports whether the Conversations plugin should be registered and whether history adapters should be constructed.

Both the conversations_plugin feature flag and plugins.conversations.enabled must be true. When false, Sidecar must not construct adapters, run Detect, open session-store watchers, or show the Conversations tab.

func Register

func Register(reg *plugin.Registry, cfg *config.Config, logger *slog.Logger)

Register registers the planned plugins with the registry, in order. Registration failures degrade silently (the registry records them as unavailable); anything unexpected is logged.

Types

type Entry

type Entry struct {
	ID  string
	New func() plugin.Plugin
}

Entry is one plugin slot in tab order. New is deferred so Plan stays free of plugin construction and callers that only care about order (tests, tooling) never build a plugin.

func Plan

func Plan(cfg *config.Config) []Entry

Plan returns the plugins to register, in tab order.

Tab shortcut numbers are derived from this list. Nothing may assume a plugin occupies a fixed position: any of the preceding plugins can be disabled.

Jump to

Keyboard shortcuts

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